approveIndex.uvue 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834
  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
  480. const orderTypeNumber = parseInt(orderTypeParam)
  481. loadDetail(id, orderTypeNumber)
  482. }
  483. })
  484. // 初始化
  485. onMounted(() => {
  486. loadStatusDictList()
  487. })
  488. </script>
  489. <style lang="scss">
  490. .detail-page {
  491. flex: 1;
  492. background-color: #e8f0f9;
  493. }
  494. .detail-content {
  495. flex: 1;
  496. padding: 20rpx 0;
  497. }
  498. .info-section {
  499. margin: 0 30rpx 24rpx;
  500. .section-title {
  501. position: relative;
  502. padding-left: 20rpx;
  503. margin-bottom: 20rpx;
  504. &::before {
  505. // content: '';
  506. position: absolute;
  507. left: 0;
  508. top: 50%;
  509. transform: translateY(-50%);
  510. width: 8rpx;
  511. height: 32rpx;
  512. background-color: #007aff;
  513. border-radius: 4rpx;
  514. }
  515. &-text {
  516. font-size: 32rpx;
  517. font-weight: bold;
  518. color: #333333;
  519. }
  520. }
  521. .info-card {
  522. background-color: #ffffff;
  523. border-radius: 16rpx;
  524. padding: 30rpx;
  525. .info-item {
  526. flex-direction: row;
  527. padding: 20rpx 0;
  528. border-bottom: 1rpx solid #f0f0f0;
  529. &:last-child {
  530. border-bottom: none;
  531. }
  532. &.full-width {
  533. flex-direction: column;
  534. .info-label {
  535. margin-bottom: 12rpx;
  536. }
  537. .info-value {
  538. line-height: 44rpx;
  539. }
  540. }
  541. .info-label {
  542. width: 240rpx;
  543. font-size: 28rpx;
  544. color: #666666;
  545. white-space: nowrap;
  546. }
  547. .info-value {
  548. flex: 1;
  549. font-size: 28rpx;
  550. color: #333333;
  551. text-align: left;
  552. &.highlight {
  553. color: #007aff;
  554. font-weight: bold;
  555. }
  556. &.input {
  557. text-align: left;
  558. border: 1rpx solid #e0e0e0;
  559. border-radius: 8rpx;
  560. padding: 10rpx;
  561. }
  562. }
  563. }
  564. .flow-item {
  565. padding: 20rpx 0;
  566. border-bottom: 1rpx solid #f0f0f0;
  567. &:last-child {
  568. border-bottom: none;
  569. }
  570. .flow-header {
  571. flex-direction: row;
  572. justify-content: space-between;
  573. margin-bottom: 10rpx;
  574. .flow-operator {
  575. font-size: 28rpx;
  576. color: #333333;
  577. font-weight: bold;
  578. }
  579. .flow-time {
  580. font-size: 24rpx;
  581. color: #999999;
  582. }
  583. }
  584. .flow-content {
  585. flex-direction: column;
  586. .flow-action {
  587. font-size: 26rpx;
  588. color: #666666;
  589. margin-bottom: 8rpx;
  590. }
  591. .flow-remark {
  592. font-size: 24rpx;
  593. color: #999999;
  594. background-color: #f5f5f5;
  595. padding: 10rpx;
  596. border-radius: 8rpx;
  597. }
  598. }
  599. }
  600. .no-data {
  601. text-align: center;
  602. padding: 40rpx 0;
  603. font-size: 28rpx;
  604. color: #999999;
  605. }
  606. }
  607. }
  608. .accept-button-container {
  609. padding: 30rpx 30rpx 50rpx;
  610. background-color: #ffffff;
  611. display: flex;
  612. flex-direction: row;
  613. justify-content: space-between;
  614. align-items: center;
  615. .accept-button {
  616. width: 45%;
  617. height: 80rpx;
  618. background-color: #007aff;
  619. color: #ffffff;
  620. font-size: 32rpx;
  621. border-radius: 16rpx;
  622. border: none;
  623. &:active {
  624. background-color: #0062cc;
  625. }
  626. }
  627. .reject-btn {
  628. width: 45%;
  629. height: 80rpx;
  630. background-color: #ff4d4f;
  631. color: #ffffff;
  632. font-size: 32rpx;
  633. border-radius: 16rpx;
  634. border: none;
  635. &:active {
  636. background-color: #d9363e;
  637. }
  638. }
  639. }
  640. .loading-mask {
  641. position: absolute;
  642. top: 0;
  643. left: 0;
  644. right: 0;
  645. bottom: 0;
  646. justify-content: center;
  647. align-items: center;
  648. background-color: rgba(0, 0, 0, 0.3);
  649. .loading-text {
  650. padding: 30rpx 60rpx;
  651. background-color: rgba(0, 0, 0, 0.7);
  652. color: #ffffff;
  653. font-size: 28rpx;
  654. border-radius: 12rpx;
  655. }
  656. }
  657. .picker-modal {
  658. position: fixed;
  659. top: 0;
  660. left: 0;
  661. right: 0;
  662. bottom: 0;
  663. z-index: 1000;
  664. }
  665. .modal-mask {
  666. position: absolute;
  667. top: 0;
  668. left: 0;
  669. right: 0;
  670. bottom: 0;
  671. background-color: rgba(0, 0, 0, 0.5);
  672. }
  673. .modal-content {
  674. position: absolute;
  675. bottom: 0;
  676. left: 0;
  677. right: 0;
  678. background-color: #ffffff;
  679. border-top-left-radius: 16rpx;
  680. border-top-right-radius: 16rpx;
  681. max-height: 700rpx;
  682. }
  683. .modal-header {
  684. flex-direction: row;
  685. justify-content: space-between;
  686. align-items: center;
  687. padding: 30rpx;
  688. border-bottom: 1rpx solid #f0f0f0;
  689. }
  690. .modal-title {
  691. font-size: 32rpx;
  692. font-weight: bold;
  693. color: #333333;
  694. }
  695. .modal-close {
  696. font-size: 28rpx;
  697. color: #007aff;
  698. }
  699. .modal-body {
  700. max-height: 600rpx;
  701. }
  702. .picker-option {
  703. flex-direction: row;
  704. justify-content: space-between;
  705. align-items: center;
  706. padding: 24rpx 30rpx;
  707. border-bottom: 1rpx solid #f0f0f0;
  708. }
  709. .picker-option.selected {
  710. background-color: #f8f9fa;
  711. }
  712. .option-text {
  713. font-size: 28rpx;
  714. color: #333333;
  715. }
  716. .option-check {
  717. font-size: 28rpx;
  718. color: #007aff;
  719. }
  720. .form-picker {
  721. flex: 1;
  722. }
  723. .picker-display {
  724. flex-direction: row;
  725. justify-content: space-between;
  726. align-items: center;
  727. min-height: 40rpx;
  728. }
  729. .selected-value {
  730. font-size: 28rpx;
  731. color: #333333;
  732. }
  733. .placeholder {
  734. font-size: 28rpx;
  735. color: #999999;
  736. }
  737. .arrow {
  738. font-size: 24rpx;
  739. color: #999999;
  740. margin-left: 12rpx;
  741. }
  742. .reject-reason-textarea {
  743. width: 100%;
  744. min-height: 100rpx;
  745. line-height: 1.5;
  746. }
  747. </style>