acceptIndex.uvue 27 KB

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