acceptIndex.uvue 27 KB

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