approveIndex.uvue 24 KB

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