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