approveIndex.uvue 24 KB

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