index.uvue 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713
  1. <template>
  2. <view class="detail-page">
  3. <scroll-view class="detail-content" :scroll-y="true">
  4. <!-- 工单信息 -->
  5. <view class="info-section">
  6. <view class="section-title">
  7. <text class="section-title-text">工单信息</text>
  8. </view>
  9. <view class="info-card">
  10. <view class="info-item">
  11. <text class="info-label">工单编码</text>
  12. <text class="info-value">{{ detailData.workOrderProjectNo ?? '' }}</text>
  13. </view>
  14. <view class="info-item">
  15. <text class="info-label">工单类型</text>
  16. <text class="info-value">{{ detailData.orderType == 1 ? '维修工单' : '维保工单' }}</text>
  17. </view>
  18. <view class="info-item">
  19. <text class="info-label">风机编号</text>
  20. <text class="info-value">{{ detailData.pcsDeviceName ?? '' }}</text>
  21. </view>
  22. <view class="info-item">
  23. <text class="info-label">场站</text>
  24. <text class="info-value">{{ detailData.pcsStationName ?? '' }}</text>
  25. </view>
  26. <view class="info-item">
  27. <text class="info-label">机型</text>
  28. <text class="info-value">{{ detailData.brand ?? '' }} {{ detailData.model ?? '' }}</text>
  29. </view>
  30. <view class="info-item" v-if="returnType">
  31. <text class="info-label">结单退回原因</text>
  32. <text class="info-value">{{ getReturnTypeName(returnType)}}</text>
  33. </view>
  34. <view class="info-item" v-if="returnReason">
  35. <text class="info-label">结单退回说明</text>
  36. <text class="info-value">{{ returnReason}}</text>
  37. </view>
  38. <view class="info-item" v-if="acceptReturnType">
  39. <text class="info-label">接单退回原因</text>
  40. <text class="info-value">{{ getAcceptReturnTypeName(acceptReturnType)}}</text>
  41. </view>
  42. <view class="info-item" v-if="acceptReturnReason">
  43. <text class="info-label">接单退回说明</text>
  44. <text class="info-value">{{ acceptReturnReason}}</text>
  45. </view>
  46. <view class="info-item" v-if="detailData.pauseTime != null && detailData.orderType == 1">
  47. <text class="info-label">发生时间</text>
  48. <text class="info-value">{{ detailData.pauseTime ?? '' }}</text>
  49. </view>
  50. <view class="info-item" v-if="detailData.pauseTime != null && detailData.orderType == 2">
  51. <text class="info-label">停机时间</text>
  52. <text class="info-value">{{ detailData.pauseTime ?? '' }}</text>
  53. </view>
  54. <view class="info-item" v-if="detailData.restartTime != null">
  55. <text class="info-label">恢复运行时间</text>
  56. <text class="info-value">{{ detailData.restartTime ?? '' }}</text>
  57. </view>
  58. <view class="info-item">
  59. <text class="info-label">{{getLabel(detailData)}}</text>
  60. <text class="info-value">{{ getDisplayTime(detailData) }}</text>
  61. </view>
  62. <view class="info-item" v-if="detailData.orderType == 1">
  63. <text class="info-label">故障代码</text>
  64. <text class="info-value">{{ detailData.faultCode ?? '' }}</text>
  65. </view>
  66. <view class="info-item" v-if="detailData.orderType == 1">
  67. <text class="info-label">故障条纹</text>
  68. <text class="info-value">{{ detailData.faultBarcode ?? '' }}</text>
  69. </view>
  70. <view class="info-item" v-if="detailData.orderType == 1">
  71. <text class="info-label">故障描述</text>
  72. <text class="info-value">{{ detailData.faultDesc ?? '' }}</text>
  73. </view>
  74. </view>
  75. </view>
  76. <!-- 工单流转 -->
  77. <view class="info-section">
  78. <view class="section-title">
  79. <text class="section-title-text">工单流转</text>
  80. <text @click="toggleFlowList" v-if="detailData.workOrderFlowList != null && detailData.workOrderFlowList.length > 1" class="toggle-btn">{{ isFlowListExpanded ? '收起' : '展开' }}</text>
  81. </view>
  82. <view class="info-card" v-if="detailData.workOrderFlowList != null && detailData.workOrderFlowList.length > 0">
  83. <view class="flow-item" v-for="(flow, index) in displayedFlowList" :key="index">
  84. <view class="flow-header">
  85. <text class="flow-operator">{{ flow.operatorName ?? '未知操作人' }}</text>
  86. <text class="flow-time">{{ flow.actionTime ?? '' }}</text>
  87. </view>
  88. <view class="flow-content">
  89. <text class="flow-action">{{ getActionTypeName(flow.actionType) }}</text>
  90. <!-- <text class="flow-remark" v-if="flow.actionRemark">{{ flow.actionRemark }}</text> -->
  91. </view>
  92. </view>
  93. </view>
  94. <view class="info-card" v-else>
  95. <view class="no-data">暂无流转记录</view>
  96. </view>
  97. </view>
  98. </scroll-view>
  99. <!-- 加载中状态 -->
  100. <view v-if="loading" class="loading-mask">
  101. <text class="loading-text">加载中...</text>
  102. </view>
  103. </view>
  104. </template>
  105. <script setup lang="uts">
  106. import { ref, computed } from 'vue'
  107. //import type { acceptOrderInfo } from '../../../types/order'
  108. import type { WorkOrderFlow,WorkOrderFlowList } from '../../../types/flow'
  109. import { getOrderInfoById, getRepairOrderInfoById } from '../../../api/order/detail'
  110. import type { SysDictData } from '../../../types/dict'
  111. import { getDictDataByType } from '../../../api/dict/index'
  112. type OrderInfoForDetail = {
  113. orderType: Number
  114. id: Number
  115. teamLeaderId: Number | 0
  116. teamLeaderName: string | null
  117. acceptUserId: Number | 0
  118. acceptUserName: string | null
  119. acceptTime: string | null
  120. assignTime: string | null
  121. assignUserName: string | null
  122. status: Number
  123. workOrderProjectNo: string | null
  124. workOrderStatus: string | null
  125. gxtCenterId: Number | 0
  126. gxtCenter: string | null
  127. pcsStationId: Number | 0
  128. pcsStationName: string | null
  129. pcsDeviceId: Number | 0
  130. pcsDeviceName: string | null
  131. brand: string | null
  132. model: string | null
  133. createTime: string | null
  134. workOrderFlowList?: WorkOrderFlowList | null
  135. suspendReason: string | null
  136. rejectionReason: string | null
  137. updateTime: string | null // 新增字段
  138. workEndTime: string | null // 新增字段
  139. faultCode: string | null
  140. faultBarcode: string | null
  141. faultDesc: string | null
  142. pauseTime: string | null,
  143. restartTime: string | null
  144. }
  145. // 详情数据
  146. const detailData = ref<OrderInfoForDetail>({
  147. orderType: 0,
  148. id: 0,
  149. teamLeaderId: 0,
  150. acceptUserId: 0,
  151. teamLeaderName: null,
  152. acceptUserName: null,
  153. acceptTime: null,
  154. assignTime: null,
  155. assignUserName: null,
  156. status: 0,
  157. workOrderProjectNo: null,
  158. workOrderStatus: null,
  159. gxtCenterId: 0,
  160. gxtCenter: null,
  161. pcsStationId: 0,
  162. pcsStationName: null,
  163. pcsDeviceId: 0,
  164. pcsDeviceName: null,
  165. brand: null,
  166. model: null,
  167. createTime: null,
  168. workOrderFlowList: null,
  169. suspendReason: null,
  170. rejectionReason: null,
  171. updateTime: null, // 新增字段
  172. workEndTime: null, // 新增字段
  173. faultCode: null,
  174. faultBarcode: null,
  175. faultDesc: null,
  176. pauseTime: null,
  177. restartTime: null
  178. })
  179. const statusDictList = ref<SysDictData[]>([]) // 工单状态字典列表
  180. // 添加字典加载状态
  181. const dictLoaded = ref<boolean>(false)
  182. const returnType = ref<string>("")
  183. const returnReason = ref<string>("")
  184. const acceptReturnType = ref<string>("")
  185. const acceptReturnReason = ref<string>("")
  186. const returnTypeDictList = ref<SysDictData[]>([]) // 退回原因字典列表
  187. const acceptReturnTypeDictList = ref<SysDictData[]>([]) // 退回原因字典列表
  188. const formatDate = (dateString: string): string => {
  189. if (dateString == '' || dateString == null) return ''
  190. const date = new Date(dateString)
  191. const year = date.getFullYear()
  192. const month = (date.getMonth() + 1).toString().padStart(2, '0')
  193. const day = date.getDate().toString().padStart(2, '0')
  194. const hours = date.getHours().toString().padStart(2, '0')
  195. const minutes = date.getMinutes().toString().padStart(2, '0')
  196. return `${year}-${month}-${day} ${hours}:${minutes}`
  197. }
  198. // 根据状态显示不同的时间label
  199. const getLabel = (item : OrderInfoForDetail | null): string|null => {
  200. if (item == null) return null
  201. // 如果是"待接单"状态,显示派单时间
  202. if (item.workOrderStatus == 'assigned') {
  203. return '下发时间'
  204. } else if(item.workOrderStatus == 'to_finish') {
  205. if(item.workEndTime != null) {
  206. return '结束时间'
  207. }
  208. return '接单时间'
  209. } else if(item.workOrderStatus == 'to_approve') {
  210. return '申请挂起时间'
  211. } else if(item.workOrderStatus == 'suspended') {
  212. return '审批通过时间'
  213. } else if(item.workOrderStatus == 'return' || item.workOrderStatus == 'accept_return') {
  214. return '退回时间'
  215. } else if(item.workOrderStatus == 'completed') {
  216. return '结单时间'
  217. } else if(item.workOrderStatus == "archived") {
  218. return '归档时间'
  219. }
  220. // 默认显示创建时间
  221. return '创建时间'
  222. }
  223. // 根据状态显示不同的时间
  224. const getDisplayTime = (item : OrderInfoForDetail | null): string|null => {
  225. if (item == null) return null
  226. let showTime = ref<string|null>('')
  227. // 如果是"待接单"状态,显示派单时间
  228. if (item.workOrderStatus == 'assigned') {
  229. showTime.value = item.assignTime
  230. } else if(item.workOrderStatus == 'to_finish') {
  231. showTime.value = item.acceptTime
  232. } else if(item.workOrderStatus == 'to_approve') {
  233. showTime.value = item.updateTime
  234. } else if(item.workOrderStatus == 'suspended') {
  235. showTime.value = item.updateTime
  236. } else if(item.workOrderStatus == 'return' || item.workOrderStatus == 'accept_return') {
  237. showTime.value = item.updateTime
  238. } else if(item.workOrderStatus == 'completed') {
  239. showTime.value = item.updateTime
  240. } else if(item.workOrderStatus == "archived") {
  241. showTime.value = item.updateTime
  242. } else {
  243. if (item.createTime != null && item.createTime.length >= 3) {
  244. showTime.value = item.createTime.slice(0, -3);
  245. } else {
  246. showTime.value = item.createTime != null ? item.createTime : '';
  247. }
  248. }
  249. return showTime.value
  250. // return formatDate(showTime.value ?? '')
  251. }
  252. // 获取工单状态字典列表
  253. const loadStatusDictList = async (): Promise<void> => {
  254. try {
  255. const result = await getDictDataByType('gxt_repair_order_flow_action_type')
  256. const resultObj = result as UTSJSONObject
  257. if (resultObj['code'] == 200) {
  258. const data = resultObj['data'] as any[]
  259. const dictData: SysDictData[] = []
  260. if (data.length > 0) {
  261. for (let i = 0; i < data.length; i++) {
  262. const item = data[i] as UTSJSONObject
  263. // 只提取需要的字段
  264. const dictItem: SysDictData = {
  265. dictValue: item['dictValue'] as string | null,
  266. dictLabel: item['dictLabel'] as string | null,
  267. dictCode: null,
  268. dictSort: null,
  269. dictType: null,
  270. cssClass: null,
  271. listClass: null,
  272. isDefault: null,
  273. status: null,
  274. default: null,
  275. createTime: null,
  276. remark: null
  277. }
  278. dictData.push(dictItem)
  279. }
  280. }
  281. statusDictList.value = dictData
  282. dictLoaded.value = true
  283. }
  284. } catch (e: any) {
  285. console.error('获取工单状态字典失败:', e.message)
  286. dictLoaded.value = true
  287. }
  288. }
  289. const loading = ref<boolean>(false)
  290. // 控制工单流转列表是否展开
  291. const isFlowListExpanded = ref<boolean>(false)
  292. // 计算显示的工单流转列表
  293. const displayedFlowList = computed(() => {
  294. if (detailData.value.workOrderFlowList == null) return []
  295. // 如果已经展开,则显示全部
  296. if (isFlowListExpanded.value) {
  297. return detailData.value.workOrderFlowList
  298. }
  299. // 默认只显示最后一条
  300. const length = detailData.value.workOrderFlowList.length
  301. return length > 0 ? [detailData.value.workOrderFlowList[length - 1]] : []
  302. })
  303. // 切换工单流转列表的展开/收起状态
  304. const toggleFlowList = () => {
  305. isFlowListExpanded.value = !isFlowListExpanded.value
  306. }
  307. // 获取操作类型名称
  308. const getActionTypeName = (item: string | null): string | null => {
  309. if (item == null) return ''
  310. // const orderInfoItem = item as orderInfo
  311. const rawStatus = item
  312. // 如果字典尚未加载,返回原始值
  313. if (dictLoaded.value == false) {
  314. return rawStatus
  315. }
  316. // 查找字典中对应的标签
  317. const dictItem = statusDictList.value.find(dict => dict.dictValue == rawStatus)
  318. return dictItem!=null ? dictItem.dictLabel : rawStatus
  319. }
  320. const getReturnTypeName = (item: string | null): string | null => {
  321. if (item == null) return ''
  322. // const orderInfoItem = item as orderInfo
  323. const rawStatus = item
  324. // 如果字典尚未加载,返回原始值
  325. if (dictLoaded.value == false) {
  326. return rawStatus
  327. }
  328. // 查找字典中对应的标签
  329. const dictItem = returnTypeDictList.value.find(dict => dict.dictValue == rawStatus)
  330. return dictItem!=null ? dictItem.dictLabel : rawStatus
  331. }
  332. const getAcceptReturnTypeName = (item: string | null): string | null => {
  333. if (item == null) return ''
  334. // const orderInfoItem = item as orderInfo
  335. const rawStatus = item
  336. // 如果字典尚未加载,返回原始值
  337. if (dictLoaded.value == false) {
  338. return rawStatus
  339. }
  340. // 查找字典中对应的标签
  341. const dictItem = acceptReturnTypeDictList.value.find(dict => dict.dictValue == rawStatus)
  342. return dictItem!=null ? dictItem.dictLabel : rawStatus
  343. }
  344. const loadReturnDictList = async (returnTypeDict: string): Promise<void> => {
  345. try {
  346. const result = await getDictDataByType(returnTypeDict)
  347. const resultObj = result as UTSJSONObject
  348. if (resultObj['code'] == 200) {
  349. const data = resultObj['data'] as any[]
  350. const dictData: SysDictData[] = []
  351. if (data.length > 0) {
  352. for (let i = 0; i < data.length; i++) {
  353. const item = data[i] as UTSJSONObject
  354. // 只提取需要的字段
  355. const dictItem: SysDictData = {
  356. dictValue: item['dictValue'] as string | null,
  357. dictLabel: item['dictLabel'] as string | null,
  358. dictCode: null,
  359. dictSort: null,
  360. dictType: null,
  361. cssClass: null,
  362. listClass: null,
  363. isDefault: null,
  364. status: null,
  365. default: null,
  366. createTime: null,
  367. remark: null
  368. }
  369. dictData.push(dictItem)
  370. }
  371. }
  372. if(returnTypeDict == 'gxt_return_type') {
  373. returnTypeDictList.value = dictData
  374. } else {
  375. acceptReturnTypeDictList.value = dictData
  376. }
  377. }
  378. } catch (e: any) {
  379. console.error('获取工单状态字典失败:', e.message)
  380. }
  381. }
  382. // 加载详情数据
  383. const loadDetail = async (id: string, orderType?: number): Promise<void> => {
  384. try {
  385. loading.value = true
  386. let result: any;
  387. // 根据orderType决定调用哪个API
  388. if (orderType == 1) {
  389. // 维修工单
  390. result = await getRepairOrderInfoById(id)
  391. } else {
  392. // 维保工单
  393. result = await getOrderInfoById(id)
  394. }
  395. // 提取响应数据
  396. const resultObj = result as UTSJSONObject
  397. const code = resultObj['code'] as number
  398. const data = resultObj['data'] as UTSJSONObject | null
  399. if (code == 200 && data != null) {
  400. // 处理工单流转列表
  401. let workOrderFlowList: WorkOrderFlow[] | null = null
  402. let flowList: UTSJSONObject[] = []
  403. if (orderType == 1) {
  404. // 维修工单
  405. flowList = data['repairOrderFlowList'] as UTSJSONObject[]
  406. } else {
  407. // 维保工单
  408. flowList = data['workOrderFlowList'] as UTSJSONObject[]
  409. }
  410. if (flowList.length > 0) {
  411. workOrderFlowList = []
  412. for (let i = 0; i < flowList.length; i++) {
  413. const flowItem = flowList[i]
  414. const flow: WorkOrderFlow = {
  415. id: flowItem['id'] as Number,
  416. orderId: flowItem['orderId'] as Number,
  417. orderCode: flowItem['orderCode'] as string,
  418. actionType: flowItem['actionType'] as string,
  419. fromStatus: flowItem['fromStatus'] as string | null,
  420. toStatus: flowItem['toStatus'] as string,
  421. operatorId: flowItem['operatorId'] as Number | null,
  422. operatorName: flowItem['operatorName'] as string | null,
  423. actionTime: flowItem['actionTime'] as string,
  424. actionRemark: flowItem['actionRemark'] as string | null,
  425. createBy: flowItem['createBy'] as string | null,
  426. createTime: flowItem['createTime'] as string | null
  427. }
  428. workOrderFlowList.push(flow)
  429. }
  430. }
  431. // 转换数据
  432. const orderDtail: OrderInfoForDetail = {
  433. orderType: data['orderType'] as Number,
  434. id: data['id'] as Number,
  435. teamLeaderId: data['teamLeaderId'] != null ? (data['teamLeaderId'] as Number) : 0,
  436. acceptUserId: data['acceptUserId'] != null ? (data['acceptUserId'] as Number) : 0,
  437. teamLeaderName: data['teamLeaderName'] as string | null,
  438. acceptUserName: data['acceptUserName'] as string | null,
  439. acceptTime: data['acceptTime'] as string | null,
  440. assignTime: data['assignTime'] as string | null,
  441. assignUserName: data['assignUserName'] as string | null,
  442. status: (data['status']==null)?0:data['status'] as Number,
  443. workOrderProjectNo: data['workOrderProjectNo'] as string | null,
  444. workOrderStatus: data['workOrderStatus'] as string | null,
  445. gxtCenterId: data['gxtCenterId'] as Number | 0,
  446. gxtCenter: data['gxtCenter'] as string | null,
  447. pcsStationId: data['pcsStationId'] as Number | 0,
  448. pcsStationName: data['pcsStationName'] as string | null,
  449. pcsDeviceId: data['pcsDeviceId'] as Number | 0,
  450. pcsDeviceName: data['pcsDeviceName'] as string | null,
  451. brand: data['brand'] as string | null,
  452. model: data['model'] as string | null,
  453. createTime: data['createTime'] as string | null,
  454. workOrderFlowList: workOrderFlowList,
  455. suspendReason: data['suspendReason'] as string | null,
  456. rejectionReason: data['rejectionReason'] as string | null,
  457. updateTime: data['updateTime'] as string | null, // 新增字段
  458. workEndTime: data['workEndTime'] as string | null, // 新增字段
  459. faultCode: data['faultCode'] as string | null,
  460. faultBarcode: data['faultBarcode'] as string | null,
  461. faultDesc: data['faultDesc'] as string | null,
  462. pauseTime: data['pauseTime'] as string | null,
  463. restartTime: data['restartTime'] as string | null
  464. }
  465. detailData.value = orderDtail
  466. await loadReturnDictList('gxt_return_type')
  467. await loadReturnDictList('gxt_accept_return_type')
  468. returnType.value = (data['returnType'] as string | null) ?? ''
  469. returnReason.value = (data['returnReason'] as string | null) ?? ''
  470. acceptReturnType.value = (data['acceptReturnType'] as string | null) ?? ''
  471. acceptReturnReason.value = (data['acceptReturnReason'] as string | null) ?? ''
  472. } else {
  473. const msg = resultObj['msg'] as string | null
  474. uni.showToast({
  475. title: msg ?? '加载失败',
  476. icon: 'none'
  477. })
  478. }
  479. } catch (e: any) {
  480. uni.showToast({
  481. title: e.message ?? '加载失败',
  482. icon: 'none'
  483. })
  484. } finally {
  485. loading.value = false
  486. }
  487. }
  488. // 页面加载
  489. onLoad((options: any) => {
  490. const params = options as UTSJSONObject
  491. const id = params['id'] as string | null
  492. const orderTypeParam = params['orderType'] as string | null
  493. if (id != null && orderTypeParam != null) {
  494. // 先尝试从参数中获取orderType
  495. const orderTypeNumber = parseInt(orderTypeParam)
  496. loadDetail(id, orderTypeNumber)
  497. }
  498. })
  499. // 初始化
  500. onMounted(() => {
  501. loadStatusDictList()
  502. })
  503. </script>
  504. <style lang="scss">
  505. .detail-page {
  506. flex: 1;
  507. background-color: #e8f0f9;
  508. }
  509. .detail-content {
  510. flex: 1;
  511. padding: 20rpx 0;
  512. }
  513. .info-section {
  514. margin: 0 30rpx 24rpx;
  515. .section-title {
  516. position: relative;
  517. padding-left: 20rpx;
  518. margin-bottom: 20rpx;
  519. flex-direction: row;
  520. justify-content: space-between;
  521. align-items: center;
  522. &::before {
  523. // content: '';
  524. position: absolute;
  525. left: 0;
  526. top: 50%;
  527. transform: translateY(-50%);
  528. width: 8rpx;
  529. height: 32rpx;
  530. background-color: #007aff;
  531. border-radius: 4rpx;
  532. }
  533. &-text {
  534. font-size: 32rpx;
  535. font-weight: bold;
  536. color: #333333;
  537. }
  538. .toggle-btn {
  539. padding-right: 20rpx;
  540. font-size: 28rpx;
  541. color: #165dff;
  542. }
  543. }
  544. .info-card {
  545. background-color: #ffffff;
  546. border-radius: 16rpx;
  547. padding: 30rpx;
  548. .info-item {
  549. flex-direction: row;
  550. padding: 20rpx 0;
  551. border-bottom: 1rpx solid #f0f0f0;
  552. &:last-child {
  553. border-bottom: none;
  554. }
  555. &.full-width {
  556. flex-direction: column;
  557. .info-label {
  558. margin-bottom: 12rpx;
  559. }
  560. .info-value {
  561. line-height: 44rpx;
  562. }
  563. }
  564. .info-label {
  565. width: 240rpx;
  566. font-size: 28rpx;
  567. color: #666666;
  568. white-space: nowrap;
  569. }
  570. .info-value {
  571. flex: 1;
  572. font-size: 28rpx;
  573. color: #333333;
  574. text-align: right;
  575. &.highlight {
  576. color: #007aff;
  577. font-weight: bold;
  578. }
  579. }
  580. }
  581. .flow-item {
  582. padding: 20rpx 0;
  583. border-bottom: 1rpx solid #f0f0f0;
  584. &:last-child {
  585. border-bottom: none;
  586. }
  587. .flow-header {
  588. flex-direction: row;
  589. justify-content: space-between;
  590. margin-bottom: 10rpx;
  591. .flow-operator {
  592. font-size: 28rpx;
  593. color: #333333;
  594. font-weight: bold;
  595. }
  596. .flow-time {
  597. font-size: 24rpx;
  598. color: #999999;
  599. }
  600. }
  601. .flow-content {
  602. flex-direction: column;
  603. .flow-action {
  604. font-size: 26rpx;
  605. color: #666666;
  606. margin-bottom: 8rpx;
  607. }
  608. .flow-remark {
  609. font-size: 24rpx;
  610. color: #999999;
  611. background-color: #f5f5f5;
  612. padding: 10rpx;
  613. border-radius: 8rpx;
  614. }
  615. }
  616. }
  617. .no-data {
  618. text-align: center;
  619. padding: 40rpx 0;
  620. font-size: 28rpx;
  621. color: #999999;
  622. }
  623. }
  624. }
  625. .loading-mask {
  626. position: absolute;
  627. top: 0;
  628. left: 0;
  629. right: 0;
  630. bottom: 0;
  631. justify-content: center;
  632. align-items: center;
  633. background-color: rgba(0, 0, 0, 0.3);
  634. .loading-text {
  635. padding: 30rpx 60rpx;
  636. background-color: rgba(0, 0, 0, 0.7);
  637. color: #ffffff;
  638. font-size: 28rpx;
  639. border-radius: 12rpx;
  640. }
  641. }
  642. </style>