acceptIndex.uvue 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892
  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.gxtCenter ?? '' }}</text>
  25. </view>
  26. <view class="info-item">
  27. <text class="info-label">场站</text>
  28. <text class="info-value">{{ detailData.pcsStationName ?? '' }}</text>
  29. </view>
  30. <!-- <view class="info-item">
  31. <text class="info-label">品牌</text>
  32. <text class="info-value">{{ detailData.model ?? '' }}</text>
  33. </view> -->
  34. <view class="info-item">
  35. <text class="info-label">机型</text>
  36. <text class="info-value">{{ detailData.brand ?? '' }} {{ detailData.model ?? '' }}</text>
  37. </view>
  38. <view class="info-item">
  39. <text class="info-label">下发时间</text>
  40. <text class="info-value">{{ detailData.assignTime ?? '' }}</text>
  41. </view>
  42. <view class="info-item" v-if="detailData.orderType == 2 && detailData.misNo != null">
  43. <text class="info-label">MIS工单编码</text>
  44. <text class="info-value">{{ detailData.misNo ?? '' }}</text>
  45. </view>
  46. <view class="info-item" v-if="detailData.orderType == 2">
  47. <text class="info-label">维保类型</text>
  48. <text class="info-value">{{ inspectionTypeLabel }}</text>
  49. </view>
  50. <view class="info-item" v-if="detailData.orderType == 2">
  51. <text class="info-label">维保内容</text>
  52. <text class="info-value">{{ detailData.content ?? '' }}</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.faultCode ?? '' }}</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.faultBarcode ?? '' }}</text>
  61. </view>
  62. <view class="info-item" v-if="detailData.orderType == 1 && faultDesc != ''">
  63. <text class="info-label">故障描述</text>
  64. <text class="info-value">{{ faultDesc }}</text>
  65. </view>
  66. <!-- <view class="info-item" v-if="detailData.orderType == 1">
  67. <text class="info-label">工作负责人</text>
  68. <view class="form-picker" @click="showLeaderPicker = true">
  69. <view class="picker-display">
  70. <text v-if="selectedTeamLeaderName" class="selected-value">{{ selectedTeamLeaderName }}</text>
  71. <text v-else class="placeholder">请选择工作负责人</text>
  72. <text class="arrow">▼</text>
  73. </view>
  74. </view>
  75. </view> -->
  76. </view>
  77. </view>
  78. <!-- <view class="info-section">
  79. <view class="section-title">
  80. <text class="section-title-text">工作负责人</text>
  81. </view>
  82. <view class="info-card">
  83. <view class="info-item">
  84. <input class="input" type="text" placeholder="请输入工作负责人" v-model="teamLeaderName" />
  85. </view>
  86. </view>
  87. </view> -->
  88. <!-- 工作负责人选择 -->
  89. <view class="info-section">
  90. <view class="section-title">
  91. <text class="section-title-text">工作负责人</text>
  92. </view>
  93. <view class="info-card">
  94. <view class="form-item">
  95. <!-- <text class="form-label required">工作负责人</text> -->
  96. <view class="form-picker" @click="showLeaderPicker = true">
  97. <view class="picker-display">
  98. <text v-if="selectedTeamLeaderName" class="selected-value">{{ selectedTeamLeaderName }}</text>
  99. <text v-else class="placeholder">
  100. 请选择工作负责人
  101. </text>
  102. <text class="arrow">▼</text>
  103. </view>
  104. </view>
  105. </view>
  106. </view>
  107. </view>
  108. <!-- 自定义选择器弹窗 -->
  109. <view v-if="showLeaderPicker" class="picker-modal">
  110. <view class="modal-mask" @click="showLeaderPicker = false"></view>
  111. <view class="modal-content">
  112. <view class="modal-header">
  113. <text class="modal-title">选择工作负责人</text>
  114. <text class="modal-close" @click="showLeaderPicker = false">取消</text>
  115. </view>
  116. <view class="search-bar">
  117. <view class="search-box">
  118. <image class="search-icon" src="/static/images/workbench/list/1.png" mode="aspectFit"></image>
  119. <input class="search-input" type="text" placeholder="搜索姓名" v-model="keyword" @input="handleSearch" />
  120. <text v-if="keyword.length > 0" class="clear-icon" @click="clearSearch">✕</text>
  121. </view>
  122. </view>
  123. <scroll-view class="modal-body" scroll-y="true">
  124. <!-- 有数据时显示列表 -->
  125. <view v-if="teamLeaderList.length > 0">
  126. <view
  127. v-for="(option, index) in teamLeaderList"
  128. :key="index"
  129. class="picker-option"
  130. :class="{ 'selected': index === selectedTeamLeaderIndex }"
  131. @click="selectLeaderManually(index)"
  132. >
  133. <!-- <text class="option-text">{{ option.label }}</text>
  134. <text class="option-text">{{ option.value }}</text> -->
  135. <text class="option-text">{{ option.nickName }}</text>
  136. <text class="option-text">{{ option.deptName }}</text>
  137. <text v-if="index === selectedTeamLeaderIndex" class="option-check">✓</text>
  138. </view>
  139. </view>
  140. <!-- 无数据时显示提示 -->
  141. <view v-else class="empty-tip">
  142. <text>未找到匹配的人员</text>
  143. </view>
  144. </scroll-view>
  145. </view>
  146. </view>
  147. </scroll-view>
  148. <!-- 接单按钮 -->
  149. <view class="accept-button-container" v-if="checkPermi(detailData.orderType == 2 ? ['gxt:maintenance:order:accept'] : ['gxt:repairOrder:accept'] )">
  150. <button class="accept-button" @click.stop="handleAcceptOrder">{{ isDealing ? '接单中...' : '接 单' }}</button>
  151. </view>
  152. <!-- 加载中状态 -->
  153. <view v-if="loading" class="loading-mask">
  154. <text class="loading-text">加载中...</text>
  155. </view>
  156. </view>
  157. </template>
  158. <script setup lang="uts">
  159. import { ref } from 'vue'
  160. import type { acceptOrderInfo2 } from '../../../types/order'
  161. import type { WorkOrderFlow } from '../../../types/flow'
  162. import { getOrderInfoById, getRepairOrderInfoById, acceptOrder } from '../../../api/order/detail'
  163. import type { SysDictData } from '../../../types/dict'
  164. import { getDictDataByType } from '../../../api/dict/index'
  165. import { getLeaderList } from '../../../api/user/list'
  166. import type { UserInfo } from '../../../types/user'
  167. import {checkPermi} from '../../../utils/storage'
  168. const teamLeaderName = ref<string>("")
  169. const statusDictList = ref<SysDictData[]>([]) // 工单状态字典列表
  170. // 添加字典加载状态
  171. const dictLoaded = ref<boolean>(false)
  172. let keyword = ref<string>("")
  173. const inspectionTypeLabel = ref<string>("") //维保类型
  174. const faultDesc = ref<string>("") //故障描述
  175. // 详情数据
  176. const detailData = ref<acceptOrderInfo2>({
  177. orderType: 0,
  178. id: 0,
  179. teamLeaderId: 0,
  180. acceptUserId: 0,
  181. teamLeaderName: null,
  182. acceptUserName: null,
  183. acceptTime: null,
  184. assignTime: null,
  185. assignUserName: null,
  186. status: 0,
  187. workOrderProjectNo: null,
  188. workOrderStatus: null,
  189. gxtCenterId: 0,
  190. gxtCenter: null,
  191. pcsStationId: 0,
  192. pcsStationName: null,
  193. pcsDeviceId: 0,
  194. pcsDeviceName: null,
  195. brand: null,
  196. model: null,
  197. createTime: null,
  198. workOrderFlowList: null,
  199. suspendReason: null,
  200. rejectionReason: null,
  201. misNo: null,
  202. content: null,
  203. faultCode: null,
  204. faultBarcode: null,
  205. updateTime: null, // 新增字段
  206. workEndTime: null // 新增字段
  207. })
  208. // 选择器选项类型
  209. type PickerOption = {
  210. label: string
  211. value: string
  212. }
  213. // 选中的负责人信息
  214. const selectedTeamLeaderName = ref<string>('')
  215. const selectedTeamLeaderIndex = ref<number>(-1)
  216. const showLeaderPicker = ref<boolean>(false)
  217. const teamLeaderList = ref<UserInfo[]>([])
  218. const teamAllLeaderList = ref<UserInfo[]>([])
  219. // 获取负责人列表(使用用户列表接口)
  220. const loadTeamLeaderList = async (): Promise<void> => {
  221. try {
  222. const deptId = detailData.value.gxtCenterId
  223. const result = await getLeaderList(-1)
  224. const resultObj = result as UTSJSONObject
  225. if (resultObj['code'] == 200) {
  226. const data = resultObj['data'] as any[]
  227. const leaders: UserInfo[] = []
  228. if (data.length > 0) {
  229. for (let i = 0; i < data.length; i++) {
  230. const item = data[i] as UTSJSONObject
  231. const deptObj = item['dept'] as UTSJSONObject
  232. let leader: UserInfo = {
  233. userName: item['userName'] as string,
  234. nickName: item['nickName'] as string,
  235. userId: new Int32Array([item['userId'] != null ? (item['userId'] as number) : 0]),
  236. phone: item['phonenumber'] as string,
  237. deptName : (deptObj['deptName'] != null) ? (deptObj['deptName'] as string) : ''
  238. }
  239. leaders.push(leader)
  240. }
  241. }
  242. teamLeaderList.value = leaders
  243. teamAllLeaderList.value = teamLeaderList.value
  244. }
  245. } catch (e: any) {
  246. console.error('获取负责人列表失败:', e.message)
  247. }
  248. }
  249. // 手动选择负责人
  250. const selectLeaderManually = (index: number): void => {
  251. selectedTeamLeaderIndex.value = index
  252. if (index >= 0 && index < teamLeaderList.value.length) {
  253. const selectedOption = teamLeaderList.value[index]
  254. selectedTeamLeaderName.value = selectedOption.nickName
  255. detailData.value.teamLeaderId = selectedOption.userId[0] as number
  256. detailData.value.teamLeaderName = selectedOption.nickName
  257. }
  258. showLeaderPicker.value = false
  259. }
  260. // 获取工单状态字典列表
  261. const loadStatusDictList = async (): Promise<void> => {
  262. try {
  263. const result = await getDictDataByType('gxt_repair_order_flow_action_type')
  264. const resultObj = result as UTSJSONObject
  265. if (resultObj['code'] == 200) {
  266. const data = resultObj['data'] as any[]
  267. const dictData: SysDictData[] = []
  268. if (data.length > 0) {
  269. for (let i = 0; i < data.length; i++) {
  270. const item = data[i] as UTSJSONObject
  271. // 只提取需要的字段
  272. const dictItem: SysDictData = {
  273. dictValue: item['dictValue'] as string | null,
  274. dictLabel: item['dictLabel'] as string | null,
  275. dictCode: null,
  276. dictSort: null,
  277. dictType: null,
  278. cssClass: null,
  279. listClass: null,
  280. isDefault: null,
  281. status: null,
  282. default: null,
  283. createTime: null,
  284. remark: null
  285. }
  286. dictData.push(dictItem)
  287. }
  288. }
  289. statusDictList.value = dictData
  290. dictLoaded.value = true
  291. }
  292. } catch (e: any) {
  293. console.error('获取工单状态字典失败:', e.message)
  294. dictLoaded.value = true
  295. }
  296. }
  297. const isDealing = ref(false)
  298. const hasDealed = ref(false)
  299. // 处理接单操作
  300. const handleAcceptOrder = async (): Promise<void> => {
  301. // if (selectedTeamLeaderName.value.trim() === '') {
  302. // uni.showToast({
  303. // title: '请选择工作负责人',
  304. // icon: 'none'
  305. // })
  306. // return
  307. // }
  308. if (isDealing.value || hasDealed.value) return // 双重保险
  309. isDealing.value = true
  310. // const subOrder = {
  311. // id: detailData.value.id,
  312. // orderType: detailData.value.orderType,
  313. // teamLeaderId: (selectedTeamLeaderId.value != null && selectedTeamLeaderId.value.length > 0) ? parseInt(selectedTeamLeaderId.value) : 0,
  314. // teamLeaderName: selectedTeamLeaderName.value,
  315. // workOrderProjectNo: detailData.value.workOrderProjectNo,
  316. // // gxtRepairOrder:
  317. // } as UTSJSONObject
  318. detailData.value.workOrderStatus = 'to_finish'
  319. try {
  320. const result = await acceptOrder(detailData.value)
  321. const resultObj = result as UTSJSONObject
  322. const code = resultObj['code'] as number
  323. if (code == 200) {
  324. uni.showToast({
  325. title: '接单成功',
  326. icon: 'success'
  327. })
  328. hasDealed.value = true
  329. // 使用事件总线通知列表页面刷新
  330. uni.$emit('refreshOrderList', {})
  331. // 通知首页刷新待处理工单数量
  332. uni.$emit('refreshAssignedCount')
  333. // 通知首页刷新超时工单数量
  334. uni.$emit('refreshOverdueCount')
  335. // 接单成功后返回上一页
  336. setTimeout(() => {
  337. uni.navigateBack()
  338. }, 800)
  339. } else {
  340. // 处理业务错误
  341. uni.showToast({
  342. title: resultObj['msg'] as string,
  343. icon: 'none'
  344. })
  345. }
  346. } catch (error: any) {
  347. console.error('请求失败:', error);
  348. uni.showToast({
  349. title: error.message ?? '接单失败',
  350. icon: 'none'
  351. })
  352. } finally {
  353. isDealing.value = false // 无论成功失败都解锁
  354. }
  355. }
  356. const loading = ref<boolean>(false)
  357. // 获取操作类型名称
  358. const getActionTypeName = (item: string | null): string | null => {
  359. if (item == null) return ''
  360. // const orderInfoItem = item as orderInfo
  361. const rawStatus = item
  362. if (rawStatus==null) return ''
  363. // 如果字典尚未加载,返回原始值
  364. if (!dictLoaded.value) {
  365. return rawStatus
  366. }
  367. // 查找字典中对应的标签
  368. const dictItem = statusDictList.value.find(dict => dict.dictValue == rawStatus)
  369. return dictItem!=null ? dictItem.dictLabel : rawStatus
  370. }
  371. // 加载详情数据
  372. const loadDetail = async (id: string, orderType?: number): Promise<void> => {
  373. try {
  374. loading.value = true
  375. let result: any;
  376. // 根据orderType决定调用哪个API
  377. if (orderType == 1) {
  378. // 维修工单
  379. result = await getRepairOrderInfoById(id)
  380. } else {
  381. // 维保工单
  382. result = await getOrderInfoById(id)
  383. }
  384. // 提取响应数据
  385. const resultObj = result as UTSJSONObject
  386. const code = resultObj['code'] as number
  387. const data = resultObj['data'] as UTSJSONObject | null
  388. if (code == 200 && data != null) {
  389. // 处理工单流转列表
  390. let workOrderFlowList: WorkOrderFlow[] | null = null
  391. let flowList: UTSJSONObject[] = []
  392. if (orderType == 1) {
  393. // 维修工单
  394. flowList = data['repairOrderFlowList'] as UTSJSONObject[]
  395. } else {
  396. // 维保工单
  397. flowList = data['workOrderFlowList'] as UTSJSONObject[]
  398. }
  399. if (flowList.length > 0) {
  400. workOrderFlowList = []
  401. for (let i = 0; i < flowList.length; i++) {
  402. const flowItem = flowList[i]
  403. const flow: WorkOrderFlow = {
  404. id: flowItem['id'] as Number,
  405. orderId: flowItem['orderId'] as Number,
  406. orderCode: flowItem['orderCode'] as string,
  407. actionType: flowItem['actionType'] as string,
  408. fromStatus: flowItem['fromStatus'] as string | null,
  409. toStatus: flowItem['toStatus'] as string,
  410. operatorId: flowItem['operatorId'] as Number | null,
  411. operatorName: flowItem['operatorName'] as string | null,
  412. actionTime: flowItem['actionTime'] as string,
  413. actionRemark: flowItem['actionRemark'] as string | null,
  414. createBy: flowItem['createBy'] as string | null,
  415. createTime: flowItem['createTime'] as string | null
  416. }
  417. workOrderFlowList.push(flow)
  418. }
  419. }
  420. // 转换数据
  421. const orderDtail: acceptOrderInfo2 = {
  422. orderType: data['orderType'] as Number,
  423. id: data['id'] as Number,
  424. teamLeaderId: data['teamLeaderId'] != null ? (data['teamLeaderId'] as Number) : 0,
  425. acceptUserId: data['acceptUserId'] != null ? (data['acceptUserId'] as Number) : 0,
  426. teamLeaderName: data['teamLeaderName'] as string | null,
  427. acceptUserName: data['acceptUserName'] as string | null,
  428. acceptTime: data['acceptTime'] as string | null,
  429. assignTime: data['assignTime'] as string | null,
  430. assignUserName: data['assignUserName'] as string | null,
  431. status: (data['status']==null)?0:data['status'] as Number,
  432. workOrderProjectNo: data['workOrderProjectNo'] as string | null,
  433. workOrderStatus: data['workOrderStatus'] as string | null,
  434. gxtCenterId: data['gxtCenterId'] as Number | 0,
  435. gxtCenter: data['gxtCenter'] as string | null,
  436. pcsStationId: data['pcsStationId'] as Number | 0,
  437. pcsStationName: data['pcsStationName'] as string | null,
  438. pcsDeviceId: data['pcsDeviceId'] as Number | 0,
  439. pcsDeviceName: data['pcsDeviceName'] as string | null,
  440. brand: data['brand'] as string | null,
  441. model: data['model'] as string | null,
  442. createTime: data['createTime'] as string | null,
  443. workOrderFlowList: workOrderFlowList,
  444. suspendReason: data['suspendReason'] as string | null,
  445. rejectionReason: data['rejectionReason'] as string | null,
  446. misNo: data['misNo'] as string | null,
  447. content: data['content'] as string | null,
  448. faultCode: data['faultCode'] as string | null,
  449. faultBarcode: data['faultBarcode'] as string | null,
  450. updateTime: data['updateTime'] as string | null, // 新增字段
  451. workEndTime: data['workEndTime'] as string | null // 新增字段
  452. }
  453. detailData.value = orderDtail
  454. faultDesc.value = (data['faultDesc'] as string | null) ?? ''
  455. // 如果工单数据中已有负责人信息,设置到输入框中
  456. if (orderDtail.teamLeaderName != null && orderDtail.teamLeaderName.length > 0) {
  457. teamLeaderName.value = orderDtail.teamLeaderName as string
  458. }
  459. loadTeamLeaderList()
  460. if(data['orderType'] == 2 && data['inspectionType'] != null) {
  461. const result = await getDictDataByType("gxt_inspection_type")
  462. const resultObj = result as UTSJSONObject
  463. const dictList = resultObj['data'] as any[]
  464. if (dictList.length > 0) {
  465. const targetValueStr = data['inspectionType'] as string;
  466. const targetValueArray = targetValueStr
  467. .split(',') // 分割逗号,转为数组(单值分割后仍为长度1的数组)
  468. .map(item => item.trim());
  469. const matchedLabels = dictList.filter(dictItem => {
  470. // 统一转换为字符串匹配,避免数字/字符串类型不匹配问题
  471. const dictItemObj = dictItem as UTSJSONObject;
  472. const dictValueStr = dictItemObj['dictValue'] as string | null;
  473. // 判断当前字典项的value是否在目标值数组中
  474. if (dictValueStr == null) return false;
  475. return targetValueArray.includes(dictValueStr);
  476. }).map(dictItem => {
  477. const dictItemObj = dictItem as UTSJSONObject;
  478. const label = dictItemObj['dictLabel'] as string | null;
  479. return label ?? '';
  480. }); // 提取匹配项的label,形成label数组
  481. // 步骤4:将label数组用逗号分隔拼接,赋值给inspectionTypeLabel
  482. inspectionTypeLabel.value = matchedLabels.join(',');
  483. }
  484. }
  485. } else {
  486. const msg = resultObj['msg'] as string | null
  487. uni.showToast({
  488. title: msg ?? '加载失败',
  489. icon: 'none'
  490. })
  491. }
  492. } catch (e: any) {
  493. uni.showToast({
  494. title: e.message ?? '加载失败',
  495. icon: 'none'
  496. })
  497. } finally {
  498. loading.value = false
  499. }
  500. }
  501. // 搜索
  502. const handleSearch = (): void => {
  503. teamLeaderList.value = teamAllLeaderList.value.filter(leader =>
  504. leader.nickName.includes(keyword.value)
  505. )
  506. }
  507. // 清空搜索
  508. const clearSearch = (): void => {
  509. keyword.value = ""
  510. teamLeaderList.value = teamAllLeaderList.value
  511. }
  512. // 页面加载
  513. onLoad((options: any) => {
  514. const params = options as UTSJSONObject
  515. const id = params['id'] as string | null
  516. const orderTypeParam = params['orderType'] as string | null
  517. if (id != null && orderTypeParam != null) {
  518. orderType.value = orderTypeParam
  519. // 先尝试从参数中获取orderType
  520. const orderTypeNumber = parseInt(orderTypeParam)
  521. loadDetail(id, orderTypeNumber)
  522. }
  523. })
  524. // 初始化
  525. onMounted(() => {
  526. loadStatusDictList()
  527. })
  528. </script>
  529. <style lang="scss">
  530. .detail-page {
  531. flex: 1;
  532. background-color: #e8f0f9;
  533. }
  534. .detail-content {
  535. flex: 1;
  536. padding: 20rpx 0;
  537. }
  538. .info-section {
  539. margin: 0 30rpx 24rpx;
  540. .section-title {
  541. position: relative;
  542. padding-left: 20rpx;
  543. margin-bottom: 20rpx;
  544. &::before {
  545. // content: '';
  546. position: absolute;
  547. left: 0;
  548. top: 50%;
  549. transform: translateY(-50%);
  550. width: 8rpx;
  551. height: 32rpx;
  552. background-color: #007aff;
  553. border-radius: 4rpx;
  554. }
  555. &-text {
  556. font-size: 32rpx;
  557. font-weight: bold;
  558. color: #333333;
  559. }
  560. }
  561. .info-card {
  562. background-color: #ffffff;
  563. border-radius: 16rpx;
  564. padding: 30rpx;
  565. .info-item {
  566. flex-direction: row;
  567. padding: 20rpx 0;
  568. border-bottom: 1rpx solid #f0f0f0;
  569. &:last-child {
  570. border-bottom: none;
  571. }
  572. &.full-width {
  573. flex-direction: column;
  574. .info-label {
  575. margin-bottom: 12rpx;
  576. }
  577. .info-value {
  578. line-height: 44rpx;
  579. }
  580. }
  581. .info-label {
  582. width: 240rpx;
  583. font-size: 28rpx;
  584. color: #666666;
  585. white-space: nowrap;
  586. }
  587. .info-value {
  588. flex: 1;
  589. font-size: 28rpx;
  590. color: #333333;
  591. text-align: left;
  592. &.highlight {
  593. color: #007aff;
  594. font-weight: bold;
  595. }
  596. &.input {
  597. text-align: left;
  598. border: 1rpx solid #e0e0e0;
  599. border-radius: 8rpx;
  600. padding: 10rpx;
  601. }
  602. }
  603. }
  604. .flow-item {
  605. padding: 20rpx 0;
  606. border-bottom: 1rpx solid #f0f0f0;
  607. &:last-child {
  608. border-bottom: none;
  609. }
  610. .flow-header {
  611. flex-direction: row;
  612. justify-content: space-between;
  613. margin-bottom: 10rpx;
  614. .flow-operator {
  615. font-size: 28rpx;
  616. color: #333333;
  617. font-weight: bold;
  618. }
  619. .flow-time {
  620. font-size: 24rpx;
  621. color: #999999;
  622. }
  623. }
  624. .flow-content {
  625. flex-direction: column;
  626. .flow-action {
  627. font-size: 26rpx;
  628. color: #666666;
  629. margin-bottom: 8rpx;
  630. }
  631. .flow-remark {
  632. font-size: 24rpx;
  633. color: #999999;
  634. background-color: #f5f5f5;
  635. padding: 10rpx;
  636. border-radius: 8rpx;
  637. }
  638. }
  639. }
  640. .no-data {
  641. text-align: center;
  642. padding: 40rpx 0;
  643. font-size: 28rpx;
  644. color: #999999;
  645. }
  646. }
  647. }
  648. .accept-button-container {
  649. padding: 30rpx 30rpx 50rpx;
  650. background-color: #ffffff;
  651. .accept-button {
  652. width: 100%;
  653. height: 80rpx;
  654. background-color: #007aff;
  655. color: #ffffff;
  656. font-size: 32rpx;
  657. border-radius: 16rpx;
  658. border: none;
  659. &:active {
  660. background-color: #0062cc;
  661. }
  662. }
  663. }
  664. .loading-mask {
  665. position: absolute;
  666. top: 0;
  667. left: 0;
  668. right: 0;
  669. bottom: 0;
  670. justify-content: center;
  671. align-items: center;
  672. background-color: rgba(0, 0, 0, 0.3);
  673. .loading-text {
  674. padding: 30rpx 60rpx;
  675. background-color: rgba(0, 0, 0, 0.7);
  676. color: #ffffff;
  677. font-size: 28rpx;
  678. border-radius: 12rpx;
  679. }
  680. }
  681. .picker-modal {
  682. position: fixed;
  683. top: 0;
  684. left: 0;
  685. right: 0;
  686. bottom: 0;
  687. z-index: 1000;
  688. }
  689. .modal-mask {
  690. position: absolute;
  691. top: 0;
  692. left: 0;
  693. right: 0;
  694. bottom: 0;
  695. background-color: rgba(0, 0, 0, 0.5);
  696. }
  697. .modal-content {
  698. position: absolute;
  699. bottom: 0;
  700. left: 0;
  701. right: 0;
  702. background-color: #ffffff;
  703. border-top-left-radius: 16rpx;
  704. border-top-right-radius: 16rpx;
  705. max-height: 1000rpx;
  706. }
  707. .modal-header {
  708. flex-direction: row;
  709. justify-content: space-between;
  710. align-items: center;
  711. padding: 30rpx;
  712. border-bottom: 1rpx solid #f0f0f0;
  713. }
  714. .modal-title {
  715. font-size: 32rpx;
  716. font-weight: bold;
  717. color: #333333;
  718. }
  719. .modal-close {
  720. font-size: 28rpx;
  721. color: #007aff;
  722. }
  723. .modal-body {
  724. max-height: 800rpx;
  725. min-height: 800rpx;
  726. }
  727. .picker-option {
  728. flex-direction: row;
  729. justify-content: space-between;
  730. align-items: center;
  731. padding: 24rpx 30rpx;
  732. border-bottom: 1rpx solid #f0f0f0;
  733. }
  734. .picker-option.selected {
  735. background-color: #f8f9fa;
  736. }
  737. .option-text {
  738. font-size: 28rpx;
  739. color: #333333;
  740. }
  741. .option-check {
  742. font-size: 28rpx;
  743. color: #007aff;
  744. }
  745. .form-picker {
  746. flex: 1;
  747. }
  748. .picker-display {
  749. flex-direction: row;
  750. justify-content: space-between;
  751. align-items: center;
  752. min-height: 40rpx;
  753. }
  754. .selected-value {
  755. font-size: 28rpx;
  756. color: #333333;
  757. }
  758. .placeholder {
  759. font-size: 28rpx;
  760. color: #999999;
  761. }
  762. .arrow {
  763. font-size: 24rpx;
  764. color: #999999;
  765. margin-left: 12rpx;
  766. }
  767. .search-bar {
  768. padding: 20rpx 30rpx;
  769. background-color: #d7eafe;
  770. }
  771. .search-box {
  772. flex-direction: row;
  773. align-items: center;
  774. height: 72rpx;
  775. padding: 0 24rpx;
  776. background-color: #f5f5f5;
  777. border-radius: 36rpx;
  778. .search-icon {
  779. width: 32rpx;
  780. height: 32rpx;
  781. margin-right: 12rpx;
  782. }
  783. .search-input {
  784. flex: 1;
  785. font-size: 28rpx;
  786. color: #333333;
  787. }
  788. .clear-icon {
  789. margin-left: 12rpx;
  790. font-size: 28rpx;
  791. color: #999999;
  792. }
  793. }
  794. .empty-tip {
  795. justify-content: space-between;
  796. // text-align: center;
  797. padding: 24rpx 30rpx;
  798. display: flex;
  799. align-items: center;
  800. justify-content: center;
  801. color: #999;
  802. }
  803. </style>