index.uvue 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667
  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.teamLeaderName ?? '' }}</text>
  29. </view>
  30. <view class="info-item">
  31. <text class="info-label">工作结束时间</text>
  32. <text class="info-value">{{ detailData.realEndTime ?? '' }}</text>
  33. </view>
  34. <view class="info-item">
  35. <text class="info-label">状态</text>
  36. <text class="info-value">{{ getScoringStatusText(detailData.scoringStatus) }}</text>
  37. </view>
  38. <view class="info-item" v-if="detailData.orderType == 1 && detailData.maintenanceType != null && detailData.maintenanceType != ''">
  39. <text class="info-label">检修类型</text>
  40. <text class="info-value">{{ getMaintenanceTypeText(detailData.maintenanceType) }}</text>
  41. </view>
  42. <view class="info-item" v-if="detailData.orderType == 2 && detailData.inspectionType != null && detailData.inspectionType != ''">
  43. <text class="info-label">维保类型</text>
  44. <text class="info-value">{{ getInspectionTypeText(detailData.inspectionType) }}</text>
  45. </view>
  46. <!-- <view class="info-item" v-if="detailData.workSummary != null && detailData.workSummary != ''">
  47. <text class="info-label">{{ detailData.orderType == 1 ? '维修总结' : '维保总结' }}</text>
  48. <text class="info-value">{{ detailData.workSummary ?? '' }}</text>
  49. </view> -->
  50. <view class="info-item" v-if="detailData.orderType == 1">
  51. <text class="info-label">故障代码</text>
  52. <text class="info-value">{{ detailData.faultCode ?? '' }}</text>
  53. </view>
  54. <view class="info-item" v-if="detailData.orderType == 1">
  55. <text class="info-label">故障条文</text>
  56. <text class="info-value">{{ detailData.faultBarcode ?? '' }}</text>
  57. </view>
  58. <view class="info-item" v-if="detailData.orderType == 1">
  59. <text class="info-label">故障描述</text>
  60. <text class="info-value">{{ detailData.faultDesc ?? '' }}</text>
  61. </view>
  62. </view>
  63. </view>
  64. <!-- 工作总结 -->
  65. <view class="info-section" v-if="detailData.workSummary != null && detailData.workSummary != ''">
  66. <view class="section-title">
  67. <text class="section-title-text">{{ detailData.orderType == 1 ? '维修总结' : '维保总结' }}</text>
  68. </view>
  69. <view class="info-card">
  70. <view class="summary-content">
  71. <text class="summary-text">{{ detailData.workSummary ?? '' }}</text>
  72. </view>
  73. </view>
  74. </view>
  75. <!-- 额外工作总结 -->
  76. <view class="info-section" v-if="detailData.orderType == 1 && detailData.extraWork != null && detailData.extraWork != ''">
  77. <view class="section-title">
  78. <text class="section-title-text">额外工作总结</text>
  79. </view>
  80. <view class="info-card">
  81. <view class="summary-content">
  82. <text class="summary-text">{{ detailData.extraWork ?? '' }}</text>
  83. </view>
  84. </view>
  85. </view>
  86. <!-- 退回理由 -->
  87. <view class="info-section" v-if="detailData.orderType == 1 && detailData.scoringStatus == 'returned'">
  88. <view class="section-title">
  89. <text class="section-title-text">退回理由</text>
  90. </view>
  91. <view class="info-card">
  92. <view class="summary-content">
  93. <text class="summary-text">{{ detailData.scoreReturnReason ?? '' }}</text>
  94. </view>
  95. </view>
  96. </view>
  97. <!-- 得分明细 -->
  98. <view class="info-section">
  99. <view class="section-title">
  100. <text class="section-title-text">得分明细</text>
  101. </view>
  102. <view class="info-card">
  103. <!-- 表格头部 -->
  104. <view class="table-header">
  105. <text class="table-cell score-col">检修员</text>
  106. <text class="table-cell score-col">自评得分</text>
  107. <text class="table-cell score-col">复评得分</text>
  108. <!-- <text class="table-cell score-col">终评得分</text> -->
  109. <text class="table-cell score-col" v-if="detailData.orderType == 1 && detailData.extraWork != null && detailData.extraWork != ''">额外工分</text>
  110. <text class="table-cell score-col" v-if="detailData.orderType == 1 && detailData.extraWork != null && detailData.extraWork != ''">工单得分</text>
  111. <text class="table-cell score-col" v-if="detailData.orderType == 2 && hasOtherOrQitaInspectionType()">额外工分</text>
  112. <text class="table-cell score-col" v-if="detailData.orderType == 2 && hasOtherOrQitaInspectionType()">工单得分</text>
  113. <!-- 如果是重启时间不为空且不为undefined,则显示奖励得分列 -->
  114. <text class="table-cell score-col" v-if="detailData.restartTime !== null">奖励得分</text>
  115. <!-- <text class="table-cell score-col">确认状态</text> -->
  116. </view>
  117. <!-- 表格行数据 -->
  118. <view class="table-row" v-for="(person, index) in detailData.scorePersonList" :key="index">
  119. <text class="table-cell score-col">
  120. {{ person.nickName }}
  121. <text class="table-cell score-col" v-if="person.isLeader == 1">(负责人)</text>
  122. </text>
  123. <text class="table-cell score-col">{{ person.selfScore !== null ? formatNumber(person.selfScore) : '-' }}</text>
  124. <text class="table-cell score-col">{{ person.reviewScore !== null ? formatNumber(person.reviewScore) : '-' }}</text>
  125. <!-- <text class="table-cell score-col">{{ person.finalScore !== null ? formatNumber(person.finalScore) : '-' }}</text> -->
  126. <text class="table-cell score-col" v-if="detailData.orderType == 1 && detailData.extraWork != null && detailData.extraWork != ''">{{ person.extraScore !== null ? formatNumber(person.extraScore) : '-' }}</text>
  127. <text class="table-cell score-col" v-if="detailData.orderType == 1 && detailData.extraWork != null && detailData.extraWork != ''">{{ person.totalScore !== null ? formatNumber(person.totalScore) : '-' }}</text>
  128. <text class="table-cell score-col" v-if="detailData.orderType == 2 && hasOtherOrQitaInspectionType()">{{ person.extraScore !== null ? formatNumber(person.extraScore) : '-' }}</text>
  129. <text class="table-cell score-col" v-if="detailData.orderType == 2 && hasOtherOrQitaInspectionType()">{{ person.totalScore !== null ? formatNumber(person.totalScore) : '-' }}</text>
  130. <!-- 显示奖励得分 -->
  131. <text class="table-cell score-col" v-if="detailData.restartTime !== null">{{ person.runScore !== null ? formatNumber(person.runScore) : '-' }}</text>
  132. <!-- <text class="table-cell score-col">{{ person.confirmStatus !== null ? getConfirmStatusText(person.confirmStatus) : '-' }}</text> -->
  133. </view>
  134. </view>
  135. </view>
  136. </scroll-view>
  137. <!-- 加载中状态 -->
  138. <view v-if="loading" class="loading-mask">
  139. <text class="loading-text">加载中...</text>
  140. </view>
  141. </view>
  142. </template>
  143. <script setup lang="uts">
  144. import { ref, reactive } from 'vue'
  145. import { getOrderScoreDetail } from '../../../api/score/index'
  146. import { getDictDataByType } from '@/api/dict/index'
  147. import type { SysDictData } from '@/types/dict'
  148. // 人员得分对象
  149. type ScorePersonItem = {
  150. nickName: string | null
  151. selfScore: number | null
  152. reviewScore: number | null
  153. finalScore: number | null
  154. confirmStatus: number | null
  155. isLeader: number | null
  156. extraScore: number | null
  157. totalScore: number | null
  158. runScore: number | null // 添加奖励得分字段
  159. }
  160. // 详情数据
  161. type DetailDataType = {
  162. orderType: Number
  163. id: Number
  164. workOrderProjectNo: string | null
  165. pcsDeviceName: string | null
  166. pcsStationName: string | null
  167. teamLeaderName: string | null
  168. realEndTime: string | null
  169. scoringStatus: string | null
  170. workSummary: string | null
  171. maintenanceType: string | null
  172. inspectionType: string | null
  173. itemCompletionFactor: number | null
  174. itemCompletionFactorSum: number | null
  175. extraWork: string | null
  176. scoreReturnReason: string | null
  177. restartTime: string | null // 添加重启时间字段,用于控制奖励得分列显示
  178. scorePersonList: ScorePersonItem[]
  179. faultCode: string | null
  180. faultBarcode: string | null
  181. faultDesc: string | null
  182. }
  183. const detailData = reactive<DetailDataType>({
  184. orderType: 0 as Number,
  185. id: 0 as Number,
  186. workOrderProjectNo: null,
  187. pcsDeviceName: null,
  188. pcsStationName: null,
  189. teamLeaderName: null,
  190. realEndTime: null,
  191. scoringStatus: null,
  192. workSummary: null,
  193. maintenanceType: null,
  194. inspectionType: null,
  195. itemCompletionFactor: null,
  196. itemCompletionFactorSum: null,
  197. extraWork: null,
  198. scoreReturnReason: null,
  199. restartTime: null, // 添加重启时间字段
  200. scorePersonList: [],
  201. faultCode: null,
  202. faultBarcode: null,
  203. faultDesc: null
  204. })
  205. const loading = ref<boolean>(false)
  206. // 字典数据
  207. const scoringStatusDictList = ref<SysDictData[]>([])
  208. const maintenanceTypeDictList = ref<SysDictData[]>([])
  209. const inspectionTypeDictList = ref<SysDictData[]>([])
  210. // 获取工单评分状态字典
  211. const loadScoringStatusDictList = async (): Promise<void> => {
  212. try {
  213. const result = await getDictDataByType('gxt_scoring_status')
  214. const resultObj = result as UTSJSONObject
  215. if (resultObj['code'] == 200) {
  216. const data = resultObj['data'] as any[]
  217. const dictData: SysDictData[] = []
  218. if (data != null && data.length > 0) {
  219. for (let i = 0; i < data.length; i++) {
  220. const item = data[i] as UTSJSONObject
  221. const dictItem: SysDictData = {
  222. dictValue: item['dictValue'] as string | null,
  223. dictLabel: item['dictLabel'] as string | null,
  224. dictCode: null,
  225. dictSort: null,
  226. dictType: null,
  227. cssClass: null,
  228. listClass: null,
  229. isDefault: null,
  230. status: null,
  231. default: null,
  232. createTime: null,
  233. remark: null
  234. }
  235. dictData.push(dictItem)
  236. }
  237. }
  238. scoringStatusDictList.value = dictData
  239. }
  240. } catch (e: any) {
  241. console.error('获取工单评分状态字典失败:', e.message)
  242. }
  243. }
  244. // 获取检修类型字典
  245. const loadMaintenanceTypeDictList = async (): Promise<void> => {
  246. try {
  247. const result = await getDictDataByType('gxt_maintenance_type')
  248. const resultObj = result as UTSJSONObject
  249. if (resultObj['code'] == 200) {
  250. const data = resultObj['data'] as any[]
  251. const dictData: SysDictData[] = []
  252. if (data != null && data.length > 0) {
  253. for (let i = 0; i < data.length; i++) {
  254. const item = data[i] as UTSJSONObject
  255. const dictItem: SysDictData = {
  256. dictValue: item['dictValue'] as string | null,
  257. dictLabel: item['dictLabel'] as string | null,
  258. dictCode: null,
  259. dictSort: null,
  260. dictType: null,
  261. cssClass: null,
  262. listClass: null,
  263. isDefault: null,
  264. status: null,
  265. default: null,
  266. createTime: null,
  267. remark: null
  268. }
  269. dictData.push(dictItem)
  270. }
  271. }
  272. maintenanceTypeDictList.value = dictData
  273. }
  274. } catch (e: any) {
  275. console.error('获取检修类型字典失败:', e.message)
  276. }
  277. }
  278. // 获取维保类型字典
  279. const loadInspectionTypeDictList = async (): Promise<void> => {
  280. try {
  281. const result = await getDictDataByType('gxt_inspection_type')
  282. const resultObj = result as UTSJSONObject
  283. if (resultObj['code'] == 200) {
  284. const data = resultObj['data'] as any[]
  285. const dictData: SysDictData[] = []
  286. if (data != null && data.length > 0) {
  287. for (let i = 0; i < data.length; i++) {
  288. const item = data[i] as UTSJSONObject
  289. const dictItem: SysDictData = {
  290. dictValue: item['dictValue'] as string | null,
  291. dictLabel: item['dictLabel'] as string | null,
  292. dictCode: null,
  293. dictSort: null,
  294. dictType: null,
  295. cssClass: null,
  296. listClass: null,
  297. isDefault: null,
  298. status: null,
  299. default: null,
  300. createTime: null,
  301. remark: null
  302. }
  303. dictData.push(dictItem)
  304. }
  305. }
  306. inspectionTypeDictList.value = dictData
  307. }
  308. } catch (e: any) {
  309. console.error('获取维保类型字典失败:', e.message)
  310. }
  311. }
  312. // 获取工单评分状态文本
  313. const getScoringStatusText = (status: string | null): string => {
  314. if (status == null || status == '') return ''
  315. const dictItem = scoringStatusDictList.value.find(dict => dict.dictValue == status)
  316. return dictItem != null ? (dictItem.dictLabel ?? status) : status
  317. }
  318. // 获取检修类型文本
  319. const getMaintenanceTypeText = (type: string | null): string => {
  320. if (type == null || type == '') return ''
  321. const dictItem = maintenanceTypeDictList.value.find(dict => dict.dictValue == type)
  322. return dictItem != null ? (dictItem.dictLabel ?? type) : type
  323. }
  324. // 获取维保类型文本(处理逗号分隔的多个类型)
  325. const getInspectionTypeText = (type: string | null): string => {
  326. if (type == null || type == '') return ''
  327. // 如果是逗号分隔的多个类型,将其分割并转换为标签
  328. if (type.includes(',')) {
  329. const typeIds = type.split(',')
  330. const labels: string[] = []
  331. for (const typeId of typeIds) {
  332. const dictItem = inspectionTypeDictList.value.find(dict => dict.dictValue == typeId.trim())
  333. labels.push(dictItem != null ? (dictItem.dictLabel ?? typeId) : typeId)
  334. }
  335. return labels.join(', ')
  336. } else {
  337. // 单个类型的情况
  338. const dictItem = inspectionTypeDictList.value.find(dict => dict.dictValue == type)
  339. return dictItem != null ? (dictItem.dictLabel ?? type) : type
  340. }
  341. }
  342. // 获取确认状态文本
  343. const getConfirmStatusText = (status: number | null): string => {
  344. if (status == null) return '未知'
  345. switch (status) {
  346. case 0: return '未确认'
  347. case 1: return '已确认'
  348. case 2: return '已反馈'
  349. default: return '未知状态'
  350. }
  351. }
  352. // Format number to fixed 2 decimal places
  353. const formatNumber = (value: number | string | null): string => {
  354. if (value == null) return '0.00'
  355. // Convert value to string properly to avoid ClassCastException
  356. const stringValue = value.toString()
  357. const num = parseFloat(stringValue)
  358. if (isNaN(num)) return '0.00'
  359. return num.toFixed(2)
  360. }
  361. // 检查维保类型是否包含'其他'或'其它'选项
  362. const hasOtherOrQitaInspectionType = (): boolean => {
  363. // 如果是维保工单且inspectionType不为空
  364. if (detailData.orderType == 2 && detailData.inspectionType != null) {
  365. let inspectionTypes: string[] = [];
  366. // 检查inspectionType是字符串还是数组
  367. if (typeof detailData.inspectionType === 'string') {
  368. if (detailData.inspectionType !== '') {
  369. inspectionTypes = detailData.inspectionType.split(',');
  370. }
  371. } else if (Array.isArray(detailData.inspectionType)) {
  372. // 如果是数组,直接使用
  373. inspectionTypes = detailData.inspectionType as string[];
  374. }
  375. // 遍历维保类型字典,检查是否包含'其他'或'其它'
  376. for (const typeId of inspectionTypes) {
  377. const dictItem = inspectionTypeDictList.value.find(item => item.dictValue == typeId);
  378. if (dictItem != null && dictItem.dictLabel != null) {
  379. const labelName = dictItem.dictLabel.trim();
  380. if (labelName == '其他' || labelName == '其它') {
  381. return true;
  382. }
  383. }
  384. }
  385. }
  386. return false;
  387. }
  388. // 加载详情数据
  389. const loadDetail = async (id: string, orderType: string): Promise<void> => {
  390. try {
  391. loading.value = true
  392. const result = await getOrderScoreDetail(orderType, id)
  393. // 提取响应数据
  394. const resultObj = result as UTSJSONObject
  395. const code = resultObj.get('code') as number
  396. const data = resultObj.get('data') as UTSJSONObject | null
  397. if (code == 200 && data != null) {
  398. // 填充基本数据
  399. const orderTypeValue = data.get('orderType')
  400. detailData.orderType = (orderTypeValue != null ? (orderTypeValue as number) : 0) as Number
  401. const idValue = data.get('id')
  402. detailData.id = (idValue != null ? (idValue as number) : 0) as Number
  403. detailData.workOrderProjectNo = data.get('workOrderProjectNo') as string | null
  404. detailData.pcsDeviceName = data.get('pcsDeviceName') as string | null
  405. detailData.pcsStationName = data.get('pcsStationName') as string | null
  406. detailData.teamLeaderName = data.get('teamLeaderName') as string | null
  407. detailData.realEndTime = data.get('realEndTime') as string | null
  408. detailData.scoringStatus = data.get('scoringStatus') as string | null
  409. // 根据工单类型设置总结内容
  410. detailData.workSummary = (detailData.orderType == 1 ?
  411. data.get('content') :
  412. data.get('realContent')) as string | null
  413. // 类型信息
  414. detailData.maintenanceType = data.get('maintenanceType') as string | null
  415. detailData.inspectionType = data.get('inspectionType') as string | null
  416. const itemCompletionFactorValue = data.get('itemCompletionFactor')
  417. detailData.itemCompletionFactor = itemCompletionFactorValue != null ?
  418. (itemCompletionFactorValue as number) : null
  419. const itemCompletionFactorSumValue = data.get('itemCompletionFactorSum')
  420. detailData.itemCompletionFactorSum = itemCompletionFactorSumValue != null ?
  421. (itemCompletionFactorSumValue as number) : null
  422. // 根据工单类型设置总结内容
  423. detailData.extraWork = (detailData.orderType == 1 ?
  424. data.get('extraWork') :
  425. null) as string | null
  426. detailData.scoreReturnReason = (detailData.orderType == 1 ?
  427. data.get('scoreReturnReason') :
  428. null) as string | null
  429. // 添加重启时间字段
  430. detailData.restartTime = data.get('restartTime') as string | null
  431. // 人员得分列表
  432. const scorePersonList = (detailData.orderType == 1 ?
  433. data.get('repairOrderPersonList') :
  434. data.get('workOrderPersonList')) as UTSJSONObject[] | null
  435. detailData.faultCode = data.get('faultCode') as string | null
  436. detailData.faultBarcode = data.get('faultBarcode') as string | null
  437. detailData.faultDesc = data.get('faultDesc') as string | null
  438. if (scorePersonList != null) {
  439. const processedList: ScorePersonItem[] = []
  440. for (let i = 0; i < scorePersonList.length; i++) {
  441. const person = scorePersonList[i]
  442. const item: ScorePersonItem = {
  443. nickName: person.get('nickName') as string | null,
  444. selfScore: (person.get('selfScore') != null ? person.get('selfScore') as number : null),
  445. reviewScore: (person.get('reviewScore') != null ? person.get('reviewScore') as number : null),
  446. finalScore: (person.get('finalScore') != null ? person.get('finalScore') as number : null),
  447. extraScore: (person.get('extraScore') != null ? person.get('extraScore') as number : null),
  448. totalScore: (person.get('totalScore') != null ? person.get('totalScore') as number : null),
  449. // 添加奖励得分字段
  450. runScore: (person.get('runScore') != null ? person.get('runScore') as number : null),
  451. confirmStatus: (person.get('confirmStatus') != null ? person.get('confirmStatus') as number : null),
  452. isLeader: (person.get('isLeader') != null ? person.get('isLeader') as number : null)
  453. }
  454. processedList.push(item)
  455. }
  456. detailData.scorePersonList = processedList
  457. } else {
  458. detailData.scorePersonList = []
  459. }
  460. } else {
  461. const msg = (resultObj.get('msg') as string | null) ?? '加载失败'
  462. uni.showToast({
  463. title: msg,
  464. icon: 'none'
  465. })
  466. }
  467. } catch (e: any) {
  468. uni.showToast({
  469. title: e.message ?? '加载失败',
  470. icon: 'none'
  471. })
  472. } finally {
  473. loading.value = false
  474. }
  475. }
  476. // 页面加载
  477. onLoad((options: any) => {
  478. const params = options as UTSJSONObject
  479. const id = params.get('id') as string | null
  480. const orderType = params.get('orderType') as string | null
  481. if (id != null && orderType != null) {
  482. loadScoringStatusDictList()
  483. loadMaintenanceTypeDictList()
  484. loadInspectionTypeDictList()
  485. loadDetail(id, orderType)
  486. }
  487. })
  488. </script>
  489. <style lang="scss">
  490. .detail-page {
  491. flex: 1;
  492. background-color: #e8f0f9;
  493. }
  494. .detail-content {
  495. flex: 1;
  496. padding: 20rpx 0;
  497. }
  498. .info-section {
  499. margin: 0 30rpx 24rpx;
  500. .section-title {
  501. position: relative;
  502. padding-left: 20rpx;
  503. margin-bottom: 20rpx;
  504. &::before {
  505. position: absolute;
  506. left: 0;
  507. top: 50%;
  508. transform: translateY(-50%);
  509. width: 8rpx;
  510. height: 32rpx;
  511. background-color: #007aff;
  512. border-radius: 4rpx;
  513. }
  514. &-text {
  515. font-size: 32rpx;
  516. font-weight: bold;
  517. color: #333333;
  518. }
  519. }
  520. .info-card {
  521. background-color: #ffffff;
  522. border-radius: 16rpx;
  523. padding: 30rpx;
  524. .info-item {
  525. flex-direction: row;
  526. padding: 20rpx 0;
  527. border-bottom: 1rpx solid #f0f0f0;
  528. &:last-child {
  529. border-bottom: none;
  530. }
  531. .info-label {
  532. width: 240rpx;
  533. font-size: 28rpx;
  534. color: #666666;
  535. white-space: nowrap;
  536. }
  537. .info-value {
  538. flex: 1;
  539. font-size: 28rpx;
  540. color: #333333;
  541. text-align: right;
  542. }
  543. }
  544. .summary-content {
  545. .summary-text {
  546. font-size: 28rpx;
  547. color: #333333;
  548. line-height: 44rpx;
  549. }
  550. }
  551. /* 表格样式 */
  552. .table-header, .table-row {
  553. flex-direction: row;
  554. padding: 20rpx 0;
  555. border-bottom: 1rpx solid #f0f0f0;
  556. &:last-child {
  557. border-bottom: none;
  558. }
  559. }
  560. .table-header {
  561. background-color: #f8f8f8;
  562. font-weight: bold;
  563. }
  564. .table-cell {
  565. font-size: 26rpx;
  566. color: #333;
  567. text-align: center;
  568. &.name-col {
  569. flex: 2;
  570. text-align: left;
  571. }
  572. &.score-col {
  573. flex: 1;
  574. }
  575. &.status-col {
  576. flex: 1;
  577. }
  578. }
  579. }
  580. }
  581. .loading-mask {
  582. position: absolute;
  583. top: 0;
  584. left: 0;
  585. right: 0;
  586. bottom: 0;
  587. justify-content: center;
  588. align-items: center;
  589. background-color: rgba(0, 0, 0, 0.3);
  590. .loading-text {
  591. padding: 30rpx 60rpx;
  592. background-color: rgba(0, 0, 0, 0.7);
  593. color: #ffffff;
  594. font-size: 28rpx;
  595. border-radius: 12rpx;
  596. }
  597. }
  598. </style>