approveIndex.uvue 26 KB

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