suspendIndex.uvue 26 KB

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