acceptIndex.uvue 28 KB

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