approveIndex.uvue 25 KB

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