acceptIndex.uvue 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835
  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(['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. })
  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 getUserList(-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. // 处理接单操作
  298. const handleAcceptOrder = async (): Promise<void> => {
  299. if (selectedTeamLeaderName.value.trim() === '') {
  300. uni.showToast({
  301. title: '请选择工作负责人',
  302. icon: 'none'
  303. })
  304. return
  305. }
  306. // const subOrder = {
  307. // id: detailData.value.id,
  308. // orderType: detailData.value.orderType,
  309. // teamLeaderId: (selectedTeamLeaderId.value != null && selectedTeamLeaderId.value.length > 0) ? parseInt(selectedTeamLeaderId.value) : 0,
  310. // teamLeaderName: selectedTeamLeaderName.value,
  311. // workOrderProjectNo: detailData.value.workOrderProjectNo,
  312. // // gxtRepairOrder:
  313. // } as UTSJSONObject
  314. detailData.value.workOrderStatus = 'to_finish'
  315. try {
  316. const result = await acceptOrder(detailData.value)
  317. const resultObj = result as UTSJSONObject
  318. const code = resultObj['code'] as number
  319. if (code == 200) {
  320. uni.showToast({
  321. title: '接单成功',
  322. icon: 'success'
  323. })
  324. // 使用事件总线通知列表页面刷新
  325. uni.$emit('refreshOrderList', {})
  326. // 通知首页刷新待接单数量
  327. uni.$emit('refreshAssignedCount')
  328. // 接单成功后返回上一页
  329. setTimeout(() => {
  330. uni.navigateBack()
  331. }, 1000)
  332. }
  333. } catch (error) {
  334. console.error('请求失败:', error);
  335. }
  336. }
  337. const loading = ref<boolean>(false)
  338. // 获取操作类型名称
  339. const getActionTypeName = (item: string | null): string | null => {
  340. if (item == null) return ''
  341. // const orderInfoItem = item as orderInfo
  342. const rawStatus = item
  343. if (rawStatus==null) return ''
  344. // 如果字典尚未加载,返回原始值
  345. if (!dictLoaded.value) {
  346. return rawStatus
  347. }
  348. // 查找字典中对应的标签
  349. const dictItem = statusDictList.value.find(dict => dict.dictValue == rawStatus)
  350. return dictItem!=null ? dictItem.dictLabel : rawStatus
  351. }
  352. // 加载详情数据
  353. const loadDetail = async (id: string, orderType?: number): Promise<void> => {
  354. try {
  355. loading.value = true
  356. let result: any;
  357. // 根据orderType决定调用哪个API
  358. if (orderType == 1) {
  359. // 维修工单
  360. result = await getRepairOrderInfoById(id)
  361. } else {
  362. // 维保工单
  363. result = await getOrderInfoById(id)
  364. }
  365. // 提取响应数据
  366. const resultObj = result as UTSJSONObject
  367. const code = resultObj['code'] as number
  368. const data = resultObj['data'] as UTSJSONObject | null
  369. if (code == 200 && data != null) {
  370. // 处理工单流转列表
  371. let workOrderFlowList: WorkOrderFlow[] | null = null
  372. let flowList: UTSJSONObject[] = []
  373. if (orderType == 1) {
  374. // 维修工单
  375. flowList = data['repairOrderFlowList'] as UTSJSONObject[]
  376. } else {
  377. // 维保工单
  378. flowList = data['workOrderFlowList'] as UTSJSONObject[]
  379. }
  380. if (flowList.length > 0) {
  381. workOrderFlowList = []
  382. for (let i = 0; i < flowList.length; i++) {
  383. const flowItem = flowList[i]
  384. const flow: WorkOrderFlow = {
  385. id: flowItem['id'] as Number,
  386. orderId: flowItem['orderId'] as Number,
  387. orderCode: flowItem['orderCode'] as string,
  388. actionType: flowItem['actionType'] as string,
  389. fromStatus: flowItem['fromStatus'] as string | null,
  390. toStatus: flowItem['toStatus'] as string,
  391. operatorId: flowItem['operatorId'] as Number | null,
  392. operatorName: flowItem['operatorName'] as string | null,
  393. actionTime: flowItem['actionTime'] as string,
  394. actionRemark: flowItem['actionRemark'] as string | null,
  395. createBy: flowItem['createBy'] as string | null,
  396. createTime: flowItem['createTime'] as string | null
  397. }
  398. workOrderFlowList.push(flow)
  399. }
  400. }
  401. // 转换数据
  402. const orderDtail: acceptOrderInfo2 = {
  403. orderType: data['orderType'] as Number,
  404. id: data['id'] as Number,
  405. teamLeaderId: data['teamLeaderId'] != null ? (data['teamLeaderId'] as Number) : 0,
  406. acceptUserId: data['acceptUserId'] != null ? (data['acceptUserId'] as Number) : 0,
  407. teamLeaderName: data['teamLeaderName'] as string | null,
  408. acceptUserName: data['acceptUserName'] as string | null,
  409. acceptTime: data['acceptTime'] as string | null,
  410. assignTime: data['assignTime'] as string | null,
  411. assignUserName: data['assignUserName'] as string | null,
  412. status: (data['status']==null)?0:data['status'] as Number,
  413. workOrderProjectNo: data['workOrderProjectNo'] as string | null,
  414. workOrderStatus: data['workOrderStatus'] as string | null,
  415. gxtCenterId: data['gxtCenterId'] as Number | 0,
  416. gxtCenter: data['gxtCenter'] as string | null,
  417. pcsStationId: data['pcsStationId'] as Number | 0,
  418. pcsStationName: data['pcsStationName'] as string | null,
  419. pcsDeviceId: data['pcsDeviceId'] as Number | 0,
  420. pcsDeviceName: data['pcsDeviceName'] as string | null,
  421. brand: data['brand'] as string | null,
  422. model: data['model'] as string | null,
  423. createTime: data['createTime'] as string | null,
  424. workOrderFlowList: workOrderFlowList,
  425. suspendReason: data['suspendReason'] as string | null,
  426. rejectionReason: data['rejectionReason'] as string | null,
  427. misNo: data['misNo'] as string | null,
  428. content: data['content'] as string | null,
  429. faultCode: data['faultCode'] as string | null,
  430. faultBarcode: data['faultBarcode'] as string | null
  431. }
  432. detailData.value = orderDtail
  433. // 如果工单数据中已有负责人信息,设置到输入框中
  434. if (orderDtail.teamLeaderName != null && orderDtail.teamLeaderName.length > 0) {
  435. teamLeaderName.value = orderDtail.teamLeaderName as string
  436. }
  437. loadTeamLeaderList()
  438. } else {
  439. const msg = resultObj['msg'] as string | null
  440. uni.showToast({
  441. title: msg ?? '加载失败',
  442. icon: 'none'
  443. })
  444. }
  445. } catch (e: any) {
  446. uni.showToast({
  447. title: e.message ?? '加载失败',
  448. icon: 'none'
  449. })
  450. } finally {
  451. loading.value = false
  452. }
  453. }
  454. // 搜索
  455. const handleSearch = (): void => {
  456. teamLeaderList.value = teamAllLeaderList.value.filter(leader =>
  457. leader.nickName.includes(keyword.value)
  458. )
  459. }
  460. // 清空搜索
  461. const clearSearch = (): void => {
  462. keyword.value = ""
  463. teamLeaderList.value = teamAllLeaderList.value
  464. }
  465. // 页面加载
  466. onLoad((options: any) => {
  467. const params = options as UTSJSONObject
  468. const id = params['id'] as string | null
  469. const orderTypeParam = params['orderType'] as string | null
  470. if (id != null && orderTypeParam != null) {
  471. // 先尝试从参数中获取orderType
  472. const orderTypeNumber = parseInt(orderTypeParam)
  473. loadDetail(id, orderTypeNumber)
  474. }
  475. })
  476. // 初始化
  477. onMounted(() => {
  478. loadStatusDictList()
  479. })
  480. </script>
  481. <style lang="scss">
  482. .detail-page {
  483. flex: 1;
  484. background-color: #e8f0f9;
  485. }
  486. .detail-content {
  487. flex: 1;
  488. padding: 20rpx 0;
  489. }
  490. .info-section {
  491. margin: 0 30rpx 24rpx;
  492. .section-title {
  493. position: relative;
  494. padding-left: 20rpx;
  495. margin-bottom: 20rpx;
  496. &::before {
  497. // content: '';
  498. position: absolute;
  499. left: 0;
  500. top: 50%;
  501. transform: translateY(-50%);
  502. width: 8rpx;
  503. height: 32rpx;
  504. background-color: #007aff;
  505. border-radius: 4rpx;
  506. }
  507. &-text {
  508. font-size: 32rpx;
  509. font-weight: bold;
  510. color: #333333;
  511. }
  512. }
  513. .info-card {
  514. background-color: #ffffff;
  515. border-radius: 16rpx;
  516. padding: 30rpx;
  517. .info-item {
  518. flex-direction: row;
  519. padding: 20rpx 0;
  520. border-bottom: 1rpx solid #f0f0f0;
  521. &:last-child {
  522. border-bottom: none;
  523. }
  524. &.full-width {
  525. flex-direction: column;
  526. .info-label {
  527. margin-bottom: 12rpx;
  528. }
  529. .info-value {
  530. line-height: 44rpx;
  531. }
  532. }
  533. .info-label {
  534. width: 240rpx;
  535. font-size: 28rpx;
  536. color: #666666;
  537. white-space: nowrap;
  538. }
  539. .info-value {
  540. flex: 1;
  541. font-size: 28rpx;
  542. color: #333333;
  543. text-align: right;
  544. &.highlight {
  545. color: #007aff;
  546. font-weight: bold;
  547. }
  548. &.input {
  549. text-align: left;
  550. border: 1rpx solid #e0e0e0;
  551. border-radius: 8rpx;
  552. padding: 10rpx;
  553. }
  554. }
  555. }
  556. .flow-item {
  557. padding: 20rpx 0;
  558. border-bottom: 1rpx solid #f0f0f0;
  559. &:last-child {
  560. border-bottom: none;
  561. }
  562. .flow-header {
  563. flex-direction: row;
  564. justify-content: space-between;
  565. margin-bottom: 10rpx;
  566. .flow-operator {
  567. font-size: 28rpx;
  568. color: #333333;
  569. font-weight: bold;
  570. }
  571. .flow-time {
  572. font-size: 24rpx;
  573. color: #999999;
  574. }
  575. }
  576. .flow-content {
  577. flex-direction: column;
  578. .flow-action {
  579. font-size: 26rpx;
  580. color: #666666;
  581. margin-bottom: 8rpx;
  582. }
  583. .flow-remark {
  584. font-size: 24rpx;
  585. color: #999999;
  586. background-color: #f5f5f5;
  587. padding: 10rpx;
  588. border-radius: 8rpx;
  589. }
  590. }
  591. }
  592. .no-data {
  593. text-align: center;
  594. padding: 40rpx 0;
  595. font-size: 28rpx;
  596. color: #999999;
  597. }
  598. }
  599. }
  600. .accept-button-container {
  601. padding: 30rpx 30rpx 50rpx;
  602. background-color: #ffffff;
  603. .accept-button {
  604. width: 100%;
  605. height: 80rpx;
  606. background-color: #007aff;
  607. color: #ffffff;
  608. font-size: 32rpx;
  609. border-radius: 16rpx;
  610. border: none;
  611. &:active {
  612. background-color: #0062cc;
  613. }
  614. }
  615. }
  616. .loading-mask {
  617. position: absolute;
  618. top: 0;
  619. left: 0;
  620. right: 0;
  621. bottom: 0;
  622. justify-content: center;
  623. align-items: center;
  624. background-color: rgba(0, 0, 0, 0.3);
  625. .loading-text {
  626. padding: 30rpx 60rpx;
  627. background-color: rgba(0, 0, 0, 0.7);
  628. color: #ffffff;
  629. font-size: 28rpx;
  630. border-radius: 12rpx;
  631. }
  632. }
  633. .picker-modal {
  634. position: fixed;
  635. top: 0;
  636. left: 0;
  637. right: 0;
  638. bottom: 0;
  639. z-index: 1000;
  640. }
  641. .modal-mask {
  642. position: absolute;
  643. top: 0;
  644. left: 0;
  645. right: 0;
  646. bottom: 0;
  647. background-color: rgba(0, 0, 0, 0.5);
  648. }
  649. .modal-content {
  650. position: absolute;
  651. bottom: 0;
  652. left: 0;
  653. right: 0;
  654. background-color: #ffffff;
  655. border-top-left-radius: 16rpx;
  656. border-top-right-radius: 16rpx;
  657. max-height: 700rpx;
  658. }
  659. .modal-header {
  660. flex-direction: row;
  661. justify-content: space-between;
  662. align-items: center;
  663. padding: 30rpx;
  664. border-bottom: 1rpx solid #f0f0f0;
  665. }
  666. .modal-title {
  667. font-size: 32rpx;
  668. font-weight: bold;
  669. color: #333333;
  670. }
  671. .modal-close {
  672. font-size: 28rpx;
  673. color: #007aff;
  674. }
  675. .modal-body {
  676. max-height: 600rpx;
  677. }
  678. .picker-option {
  679. flex-direction: row;
  680. justify-content: space-between;
  681. align-items: center;
  682. padding: 24rpx 30rpx;
  683. border-bottom: 1rpx solid #f0f0f0;
  684. }
  685. .picker-option.selected {
  686. background-color: #f8f9fa;
  687. }
  688. .option-text {
  689. font-size: 28rpx;
  690. color: #333333;
  691. }
  692. .option-check {
  693. font-size: 28rpx;
  694. color: #007aff;
  695. }
  696. .form-picker {
  697. flex: 1;
  698. }
  699. .picker-display {
  700. flex-direction: row;
  701. justify-content: space-between;
  702. align-items: center;
  703. min-height: 40rpx;
  704. }
  705. .selected-value {
  706. font-size: 28rpx;
  707. color: #333333;
  708. }
  709. .placeholder {
  710. font-size: 28rpx;
  711. color: #999999;
  712. }
  713. .arrow {
  714. font-size: 24rpx;
  715. color: #999999;
  716. margin-left: 12rpx;
  717. }
  718. .search-bar {
  719. padding: 20rpx 30rpx;
  720. background-color: #d7eafe;
  721. }
  722. .search-box {
  723. flex-direction: row;
  724. align-items: center;
  725. height: 72rpx;
  726. padding: 0 24rpx;
  727. background-color: #f5f5f5;
  728. border-radius: 36rpx;
  729. .search-icon {
  730. width: 32rpx;
  731. height: 32rpx;
  732. margin-right: 12rpx;
  733. }
  734. .search-input {
  735. flex: 1;
  736. font-size: 28rpx;
  737. color: #333333;
  738. }
  739. .clear-icon {
  740. margin-left: 12rpx;
  741. font-size: 28rpx;
  742. color: #999999;
  743. }
  744. }
  745. </style>