acceptIndex.uvue 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891
  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
  519. const orderTypeNumber = parseInt(orderTypeParam)
  520. loadDetail(id, orderTypeNumber)
  521. }
  522. })
  523. // 初始化
  524. onMounted(() => {
  525. loadStatusDictList()
  526. })
  527. </script>
  528. <style lang="scss">
  529. .detail-page {
  530. flex: 1;
  531. background-color: #e8f0f9;
  532. }
  533. .detail-content {
  534. flex: 1;
  535. padding: 20rpx 0;
  536. }
  537. .info-section {
  538. margin: 0 30rpx 24rpx;
  539. .section-title {
  540. position: relative;
  541. padding-left: 20rpx;
  542. margin-bottom: 20rpx;
  543. &::before {
  544. // content: '';
  545. position: absolute;
  546. left: 0;
  547. top: 50%;
  548. transform: translateY(-50%);
  549. width: 8rpx;
  550. height: 32rpx;
  551. background-color: #007aff;
  552. border-radius: 4rpx;
  553. }
  554. &-text {
  555. font-size: 32rpx;
  556. font-weight: bold;
  557. color: #333333;
  558. }
  559. }
  560. .info-card {
  561. background-color: #ffffff;
  562. border-radius: 16rpx;
  563. padding: 30rpx;
  564. .info-item {
  565. flex-direction: row;
  566. padding: 20rpx 0;
  567. border-bottom: 1rpx solid #f0f0f0;
  568. &:last-child {
  569. border-bottom: none;
  570. }
  571. &.full-width {
  572. flex-direction: column;
  573. .info-label {
  574. margin-bottom: 12rpx;
  575. }
  576. .info-value {
  577. line-height: 44rpx;
  578. }
  579. }
  580. .info-label {
  581. width: 240rpx;
  582. font-size: 28rpx;
  583. color: #666666;
  584. white-space: nowrap;
  585. }
  586. .info-value {
  587. flex: 1;
  588. font-size: 28rpx;
  589. color: #333333;
  590. text-align: left;
  591. &.highlight {
  592. color: #007aff;
  593. font-weight: bold;
  594. }
  595. &.input {
  596. text-align: left;
  597. border: 1rpx solid #e0e0e0;
  598. border-radius: 8rpx;
  599. padding: 10rpx;
  600. }
  601. }
  602. }
  603. .flow-item {
  604. padding: 20rpx 0;
  605. border-bottom: 1rpx solid #f0f0f0;
  606. &:last-child {
  607. border-bottom: none;
  608. }
  609. .flow-header {
  610. flex-direction: row;
  611. justify-content: space-between;
  612. margin-bottom: 10rpx;
  613. .flow-operator {
  614. font-size: 28rpx;
  615. color: #333333;
  616. font-weight: bold;
  617. }
  618. .flow-time {
  619. font-size: 24rpx;
  620. color: #999999;
  621. }
  622. }
  623. .flow-content {
  624. flex-direction: column;
  625. .flow-action {
  626. font-size: 26rpx;
  627. color: #666666;
  628. margin-bottom: 8rpx;
  629. }
  630. .flow-remark {
  631. font-size: 24rpx;
  632. color: #999999;
  633. background-color: #f5f5f5;
  634. padding: 10rpx;
  635. border-radius: 8rpx;
  636. }
  637. }
  638. }
  639. .no-data {
  640. text-align: center;
  641. padding: 40rpx 0;
  642. font-size: 28rpx;
  643. color: #999999;
  644. }
  645. }
  646. }
  647. .accept-button-container {
  648. padding: 30rpx 30rpx 50rpx;
  649. background-color: #ffffff;
  650. .accept-button {
  651. width: 100%;
  652. height: 80rpx;
  653. background-color: #007aff;
  654. color: #ffffff;
  655. font-size: 32rpx;
  656. border-radius: 16rpx;
  657. border: none;
  658. &:active {
  659. background-color: #0062cc;
  660. }
  661. }
  662. }
  663. .loading-mask {
  664. position: absolute;
  665. top: 0;
  666. left: 0;
  667. right: 0;
  668. bottom: 0;
  669. justify-content: center;
  670. align-items: center;
  671. background-color: rgba(0, 0, 0, 0.3);
  672. .loading-text {
  673. padding: 30rpx 60rpx;
  674. background-color: rgba(0, 0, 0, 0.7);
  675. color: #ffffff;
  676. font-size: 28rpx;
  677. border-radius: 12rpx;
  678. }
  679. }
  680. .picker-modal {
  681. position: fixed;
  682. top: 0;
  683. left: 0;
  684. right: 0;
  685. bottom: 0;
  686. z-index: 1000;
  687. }
  688. .modal-mask {
  689. position: absolute;
  690. top: 0;
  691. left: 0;
  692. right: 0;
  693. bottom: 0;
  694. background-color: rgba(0, 0, 0, 0.5);
  695. }
  696. .modal-content {
  697. position: absolute;
  698. bottom: 0;
  699. left: 0;
  700. right: 0;
  701. background-color: #ffffff;
  702. border-top-left-radius: 16rpx;
  703. border-top-right-radius: 16rpx;
  704. max-height: 1000rpx;
  705. }
  706. .modal-header {
  707. flex-direction: row;
  708. justify-content: space-between;
  709. align-items: center;
  710. padding: 30rpx;
  711. border-bottom: 1rpx solid #f0f0f0;
  712. }
  713. .modal-title {
  714. font-size: 32rpx;
  715. font-weight: bold;
  716. color: #333333;
  717. }
  718. .modal-close {
  719. font-size: 28rpx;
  720. color: #007aff;
  721. }
  722. .modal-body {
  723. max-height: 800rpx;
  724. min-height: 800rpx;
  725. }
  726. .picker-option {
  727. flex-direction: row;
  728. justify-content: space-between;
  729. align-items: center;
  730. padding: 24rpx 30rpx;
  731. border-bottom: 1rpx solid #f0f0f0;
  732. }
  733. .picker-option.selected {
  734. background-color: #f8f9fa;
  735. }
  736. .option-text {
  737. font-size: 28rpx;
  738. color: #333333;
  739. }
  740. .option-check {
  741. font-size: 28rpx;
  742. color: #007aff;
  743. }
  744. .form-picker {
  745. flex: 1;
  746. }
  747. .picker-display {
  748. flex-direction: row;
  749. justify-content: space-between;
  750. align-items: center;
  751. min-height: 40rpx;
  752. }
  753. .selected-value {
  754. font-size: 28rpx;
  755. color: #333333;
  756. }
  757. .placeholder {
  758. font-size: 28rpx;
  759. color: #999999;
  760. }
  761. .arrow {
  762. font-size: 24rpx;
  763. color: #999999;
  764. margin-left: 12rpx;
  765. }
  766. .search-bar {
  767. padding: 20rpx 30rpx;
  768. background-color: #d7eafe;
  769. }
  770. .search-box {
  771. flex-direction: row;
  772. align-items: center;
  773. height: 72rpx;
  774. padding: 0 24rpx;
  775. background-color: #f5f5f5;
  776. border-radius: 36rpx;
  777. .search-icon {
  778. width: 32rpx;
  779. height: 32rpx;
  780. margin-right: 12rpx;
  781. }
  782. .search-input {
  783. flex: 1;
  784. font-size: 28rpx;
  785. color: #333333;
  786. }
  787. .clear-icon {
  788. margin-left: 12rpx;
  789. font-size: 28rpx;
  790. color: #999999;
  791. }
  792. }
  793. .empty-tip {
  794. justify-content: space-between;
  795. // text-align: center;
  796. padding: 24rpx 30rpx;
  797. display: flex;
  798. align-items: center;
  799. justify-content: center;
  800. color: #999;
  801. }
  802. </style>