restartIndex.uvue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797
  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">{{ workOrderProjectNo ?? '' }}</text>
  13. </view>
  14. <view class="info-item">
  15. <text class="info-label">风机编号</text>
  16. <text class="info-value">{{ pcsDeviceName ?? '' }}</text>
  17. </view>
  18. <view class="info-item">
  19. <text class="info-label">维保中心</text>
  20. <text class="info-value">{{ gxtCenter ?? '' }}</text>
  21. </view>
  22. <view class="info-item">
  23. <text class="info-label">场站</text>
  24. <text class="info-value">{{ pcsStationName ?? '' }}</text>
  25. </view>
  26. <view class="info-item">
  27. <text class="info-label">机型</text>
  28. <text class="info-value">{{ brand ?? '' }} {{ model ?? '' }}</text>
  29. </view>
  30. <view class="info-item">
  31. <text class="info-label">下发时间</text>
  32. <text class="info-value">{{ assignTime ?? '' }}</text>
  33. </view>
  34. <view class="info-item" v-if="realStartTime != ''">
  35. <text class="info-label">开始时间</text>
  36. <text class="info-value">{{ realStartTime ?? '' }}</text>
  37. </view>
  38. <view class="info-item" v-if="realStartTime != ''">
  39. <text class="info-label">结束时间</text>
  40. <text class="info-value">{{ realEndTime ?? '' }}</text>
  41. </view>
  42. <view class="info-item" v-if="orderType == '1'">
  43. <text class="info-label">发生时间</text>
  44. <text class="info-value">{{ occurTime ?? '' }}</text>
  45. </view>
  46. <view class="info-item" v-if="orderType == '2'">
  47. <text class="info-label">停机时间</text>
  48. <text class="info-value">{{ pauseTime ?? '' }}</text>
  49. </view>
  50. </view>
  51. </view>
  52. <view class="info-section">
  53. <view class="info-card">
  54. <view class="info-item">
  55. <view class="info-label">
  56. <text class="form-label required">恢复运行时间<text style="color: red;">*</text></text>
  57. </view>
  58. <view class="info-value">
  59. <view class="form-picker" @click="showshutdownTimePicker = true">
  60. <input
  61. class="input-field"
  62. placeholder="请选择恢复运行时间"
  63. v-model="restartTime"
  64. type="none"
  65. />
  66. </view>
  67. </view>
  68. </view>
  69. <view class="info-item">
  70. <view class="info-label">
  71. <text class="form-label required">损失电量(kWh)<text style="color: red;" v-if="orderType == '1'">*</text></text>
  72. </view>
  73. <view class="info-value">
  74. <input
  75. class="input-field"
  76. placeholder="请输入损失电量"
  77. v-model="lostPower"
  78. type="digit"
  79. @input="handleLostPowerInput"
  80. @blur="validateLostPower"
  81. />
  82. </view>
  83. </view>
  84. </view>
  85. </view>
  86. <!-- 时间选择器弹窗 -->
  87. <!-- Start Date Picker -->
  88. <l-popup v-model="showshutdownTimePicker" position="bottom">
  89. <l-date-time-picker
  90. title="选择恢复运行时间"
  91. :mode="1 | 2 | 4 | 8 | 16"
  92. format="YYYY-MM-DD HH:mm"
  93. :modelValue="restartTime"
  94. confirm-btn="确定"
  95. cancel-btn="取消"
  96. @confirm="onStartDateConfirm"
  97. @cancel="showshutdownTimePicker = false">
  98. </l-date-time-picker>
  99. </l-popup>
  100. </scroll-view>
  101. <!-- 接单按钮 -->
  102. <view class="accept-button-container" v-if="checkPermi(orderType == '2' ? ['gxt:maintenance:order:restart'] : ['gxt:repairOrder:restart'])">
  103. <button class="accept-button" @click="handleRestartOrder">{{ isDealing ? '复运中...' : '复 运' }}</button>
  104. </view>
  105. <!-- 加载中状态 -->
  106. <view v-if="loading" class="loading-mask">
  107. <text class="loading-text">加载中...</text>
  108. </view>
  109. </view>
  110. </template>
  111. <script setup lang="uts">
  112. import { ref } from 'vue'
  113. import type { acceptOrderInfo } from '../../../types/order'
  114. import type { WorkOrderFlow } from '../../../types/flow'
  115. import { getOrderInfoById, getRepairOrderInfoById, restartOrder } from '../../../api/order/detail'
  116. import type { SysDictData } from '../../../types/dict'
  117. import { getDictDataByType } from '../../../api/dict/index'
  118. import type { UserInfo } from '../../../types/user'
  119. import {checkPermi} from '../../../utils/storage'
  120. const teamLeaderName = ref<string>("")
  121. const statusDictList = ref<SysDictData[]>([]) // 工单状态字典列表
  122. // 添加字典加载状态
  123. const dictLoaded = ref<boolean>(false)
  124. const restartTime = ref<string>("")
  125. const lostPower = ref<string>("")
  126. // 工单信息
  127. const orderId = ref<string>('')
  128. const workOrderProjectNo = ref<string>('')
  129. const workOrderStatus = ref<string>('')
  130. const orderType = ref<string>('')
  131. const pcsDeviceName = ref<string>('')
  132. const gxtCenter = ref<string>('')
  133. const pcsStationName = ref<string>('')
  134. const brand = ref<string>('')
  135. const model = ref<string>('')
  136. const assignTime = ref<string>('')
  137. const occurTime = ref<string>('')
  138. const pauseTime = ref<string>('')
  139. const realStartTime = ref<string>('')
  140. const realEndTime = ref<string>('')
  141. const showshutdownTimePicker = ref<boolean>(false)
  142. // 输入过滤方法,只允许数字和小数点,并确保值大于0
  143. const handleLostPowerInput = () => {
  144. let value = lostPower.value;
  145. // 只保留数字和小数点
  146. value = value.replace(/[^\d.]/g, '');
  147. // 防止出现多个小数点
  148. const parts = value.split('.');
  149. if (parts.length > 2) {
  150. // 如果有多个小数点,只保留第一个小数点
  151. value = parts[0] + '.' + parts.slice(1).join('');
  152. }
  153. // 防止以多个小数点开头
  154. if (value.startsWith('..')) {
  155. value = value.substring(1);
  156. }
  157. // 防止以小数点开头但后面没有数字的情况(如单独的小数点)
  158. if (value === '.') {
  159. value = '';
  160. }
  161. // 更新值
  162. lostPower.value = value;
  163. };
  164. // 验证损失电量是否大于0
  165. const validateLostPower = () => {
  166. if (lostPower.value.trim() !== '') {
  167. const lostPowerNum = parseFloat(lostPower.value);
  168. if (isNaN(lostPowerNum) || lostPowerNum <= 0) {
  169. uni.showToast({
  170. title: '损失电量必须大于0',
  171. icon: 'none'
  172. });
  173. }
  174. }
  175. };
  176. function onStartDateConfirm(value: string) {
  177. // 检查结束时间是否小于新的恢复运行时间
  178. restartTime.value = value
  179. showshutdownTimePicker.value = false
  180. }
  181. // 获取工单状态字典列表
  182. const loadStatusDictList = async (): Promise<void> => {
  183. try {
  184. const result = await getDictDataByType('gxt_repair_order_flow_action_type')
  185. const resultObj = result as UTSJSONObject
  186. if (resultObj['code'] == 200) {
  187. const data = resultObj['data'] as any[]
  188. const dictData: SysDictData[] = []
  189. if (data.length > 0) {
  190. for (let i = 0; i < data.length; i++) {
  191. const item = data[i] as UTSJSONObject
  192. // 只提取需要的字段
  193. const dictItem: SysDictData = {
  194. dictValue: item['dictValue'] as string | null,
  195. dictLabel: item['dictLabel'] as string | null,
  196. dictCode: null,
  197. dictSort: null,
  198. dictType: null,
  199. cssClass: null,
  200. listClass: null,
  201. isDefault: null,
  202. status: null,
  203. default: null,
  204. createTime: null,
  205. remark: null
  206. }
  207. dictData.push(dictItem)
  208. }
  209. }
  210. statusDictList.value = dictData
  211. dictLoaded.value = true
  212. }
  213. } catch (e: any) {
  214. console.error('获取工单状态字典失败:', e.message)
  215. dictLoaded.value = true
  216. }
  217. }
  218. const isDealing = ref(false)
  219. const hasDealed = ref(false)
  220. // 处理接单操作
  221. const handleRestartOrder = async (): Promise<void> => {
  222. if (restartTime.value.trim() === '') {
  223. uni.showToast({
  224. title: '请选择恢复运行时间',
  225. icon: 'none'
  226. })
  227. return
  228. }
  229. // 添加时间验证逻辑(统一用时间戳对比,避免格式问题)
  230. const restartTimeStamp = new Date(restartTime.value).getTime(); // 恢复运行时间戳
  231. const currentTimeStamp = new Date().getTime(); // 当前时间戳
  232. const realStartTimeStamp = realStartTime.value != '' ? new Date(realStartTime.value).getTime() : 0; // 开工时间戳
  233. const realEndTimeStamp = realEndTime.value != '' ? new Date(realEndTime.value).getTime() : 0; // 收工时间戳
  234. // 验证1:恢复运行时间不能大于当前时间
  235. if (restartTimeStamp > currentTimeStamp) {
  236. uni.showToast({
  237. title: '恢复运行时间不能大于当前时间',
  238. icon: 'none'
  239. });
  240. return;
  241. }
  242. if (orderType.value == '1') {
  243. // 维修工单:恢复运行时间不能小于发生时间
  244. if (occurTime.value != '') {
  245. const occurTimeStamp = new Date(occurTime.value).getTime();
  246. if (restartTimeStamp < occurTimeStamp) {
  247. uni.showToast({
  248. title: '恢复运行时间不能早于发生时间',
  249. icon: 'none'
  250. });
  251. return;
  252. }
  253. }
  254. // 2. 开工时间不为空时,恢复运行时间不能小于开工时间
  255. if (realStartTimeStamp > 0) { // 开工时间戳>0表示非空且有效
  256. if (restartTimeStamp < realStartTimeStamp) {
  257. uni.showToast({
  258. title: '恢复运行时间不能早于开始时间',
  259. icon: 'none'
  260. });
  261. return;
  262. }
  263. }
  264. // 3. 收工时间不为空时,恢复运行时间不能大于收工时间
  265. if (realEndTimeStamp > 0) { // 收工时间戳>0表示非空且有效
  266. if (restartTimeStamp > realEndTimeStamp) {
  267. uni.showToast({
  268. title: '恢复运行时间不能晚于结束时间',
  269. icon: 'none'
  270. });
  271. return;
  272. }
  273. }
  274. } else if (orderType.value == '2') {
  275. // 维保工单校验逻辑
  276. // 1. 恢复运行时间不能小于停机时间(原有逻辑,改为时间戳对比)
  277. if (pauseTime.value != '') {
  278. const pauseTimeStamp = new Date(pauseTime.value).getTime();
  279. if (restartTimeStamp < pauseTimeStamp) {
  280. uni.showToast({
  281. title: '恢复运行时间不能早于停机时间',
  282. icon: 'none'
  283. });
  284. return;
  285. }
  286. }
  287. // 2. 开工时间不为空时,恢复运行时间不能小于开工时间
  288. if (realStartTimeStamp > 0) { // 开工时间戳>0表示非空且有效
  289. if (restartTimeStamp < realStartTimeStamp) {
  290. uni.showToast({
  291. title: '恢复运行时间不能早于开始时间',
  292. icon: 'none'
  293. });
  294. return;
  295. }
  296. }
  297. // 3. 收工时间不为空时,恢复运行时间不能大于收工时间
  298. if (realEndTimeStamp > 0) { // 收工时间戳>0表示非空且有效
  299. if (restartTimeStamp > realEndTimeStamp) {
  300. uni.showToast({
  301. title: '恢复运行时间不能晚于结束时间',
  302. icon: 'none'
  303. });
  304. return;
  305. }
  306. }
  307. }
  308. if (orderType.value == '1' && lostPower.value.trim() === '') {
  309. uni.showToast({
  310. title: '请输入损失电量',
  311. icon: 'none'
  312. })
  313. return
  314. }
  315. if(lostPower.value.trim() != '') {
  316. // 验证损失电量必须大于0
  317. const lostPowerNum = parseFloat(lostPower.value);
  318. if (isNaN(lostPowerNum) || lostPowerNum <= 0) {
  319. uni.showToast({
  320. title: '损失电量必须大于0',
  321. icon: 'none'
  322. })
  323. return
  324. }
  325. }
  326. if (isDealing.value || hasDealed.value) return // 双重保险
  327. isDealing.value = true
  328. try {
  329. const submitData = {
  330. id: orderId.value,
  331. orderType: orderType.value,
  332. workOrderProjectNo: workOrderProjectNo.value,
  333. workOrderStatus: workOrderStatus.value,
  334. restartTime: restartTime.value,
  335. lostPower: lostPower.value
  336. } as UTSJSONObject;
  337. const result = await restartOrder(submitData)
  338. const resultObj = result as UTSJSONObject
  339. const code = resultObj['code'] as number
  340. if (code == 200) {
  341. uni.showToast({
  342. title: '复运成功',
  343. icon: 'success'
  344. })
  345. hasDealed.value = true
  346. // 使用事件总线通知列表页面刷新
  347. uni.$emit('refreshOrderList', {})
  348. uni.$emit('refreshAssignedCount')
  349. uni.$emit('refreshOverdueCount')
  350. uni.$emit('refreshApproveCount')
  351. uni.$emit('refreshSuspendedCount')
  352. // 接单成功后返回上一页
  353. setTimeout(() => {
  354. uni.navigateBack()
  355. }, 800)
  356. } else {
  357. // 处理业务错误
  358. uni.showToast({
  359. title: resultObj['msg'] as string,
  360. icon: 'none'
  361. })
  362. }
  363. } catch (error: any) {
  364. console.error('请求失败:', error);
  365. uni.showToast({
  366. title: error.message ?? '挂起失败',
  367. icon: 'none'
  368. })
  369. } finally {
  370. isDealing.value = false // 无论成功失败都解锁
  371. }
  372. }
  373. const loading = ref<boolean>(false)
  374. // 获取操作类型名称
  375. const getActionTypeName = (item: string | null): string | null => {
  376. if (item == null) return ''
  377. // const orderInfoItem = item as orderInfo
  378. const rawStatus = item
  379. if (rawStatus==null) return ''
  380. // 如果字典尚未加载,返回原始值
  381. if (!dictLoaded.value) {
  382. return rawStatus
  383. }
  384. // 查找字典中对应的标签
  385. const dictItem = statusDictList.value.find(dict => dict.dictValue == rawStatus)
  386. return dictItem!=null ? dictItem.dictLabel : rawStatus
  387. }
  388. // 加载详情数据
  389. const loadDetail = async (id: string, orderType?: number): Promise<void> => {
  390. try {
  391. loading.value = true
  392. let result: any;
  393. // 根据orderType决定调用哪个API
  394. if (orderType == 1) {
  395. // 维修工单
  396. result = await getRepairOrderInfoById(id)
  397. } else {
  398. // 维保工单
  399. result = await getOrderInfoById(id)
  400. }
  401. // 提取响应数据
  402. const resultObj = result as UTSJSONObject
  403. const code = resultObj['code'] as number
  404. const data = resultObj['data'] as UTSJSONObject | null
  405. if (code == 200 && data != null) {
  406. orderId.value = id
  407. workOrderStatus.value = (data['workOrderStatus'] as string | null) ?? ''
  408. workOrderProjectNo.value = (data['workOrderProjectNo'] as string | null) ?? ''
  409. pcsDeviceName.value = (data['pcsDeviceName'] as string | null) ?? ''
  410. gxtCenter.value = (data['gxtCenter'] as string | null) ?? ''
  411. pcsStationName.value = (data['pcsStationName'] as string | null) ?? ''
  412. brand.value = (data['brand'] as string | null) ?? ''
  413. model.value = (data['model'] as string | null) ?? ''
  414. assignTime.value = (data['assignTime'] as string | null) ?? ''
  415. occurTime.value = (data['occurTime'] as string | null) ?? ''
  416. pauseTime.value = (data['pauseTime'] as string | null) ?? ''
  417. realStartTime.value = (data['realStartTime'] as string | null) ?? ''
  418. realEndTime.value = (data['realEndTime'] as string | null) ?? ''
  419. if(orderType == 2 && pauseTime.value == '') {
  420. uni.showModal({
  421. title: '提示',
  422. content: '请先进行停机操作。',
  423. showCancel: false, // 只显示确定按钮
  424. confirmText: '确定',
  425. confirmColor: '#007aff',
  426. success: (res) => {
  427. // uni.$emit('refreshOrderList', {})
  428. setTimeout(() => {
  429. uni.navigateBack()
  430. }, 500)
  431. }
  432. });
  433. }
  434. } else {
  435. const msg = resultObj['msg'] as string | null
  436. uni.showToast({
  437. title: msg ?? '加载失败',
  438. icon: 'none'
  439. })
  440. }
  441. } catch (e: any) {
  442. uni.showToast({
  443. title: e.message ?? '加载失败',
  444. icon: 'none'
  445. })
  446. } finally {
  447. loading.value = false
  448. }
  449. }
  450. // 页面加载
  451. onLoad((options: any) => {
  452. const params = options as UTSJSONObject
  453. const id = params['id'] as string | null
  454. const orderTypeParam = params['orderType'] as string | null
  455. if (id != null && orderTypeParam != null) {
  456. // 先尝试从参数中获取orderType
  457. orderType.value = orderTypeParam
  458. const orderTypeNumber = parseInt(orderTypeParam)
  459. loadDetail(id, orderTypeNumber)
  460. }
  461. })
  462. // 初始化
  463. onMounted(() => {
  464. // loadStatusDictList()
  465. })
  466. </script>
  467. <style lang="scss">
  468. .detail-page {
  469. flex: 1;
  470. background-color: #e8f0f9;
  471. }
  472. .detail-content {
  473. flex: 1;
  474. padding: 20rpx 0;
  475. }
  476. .info-section {
  477. margin: 0 30rpx 24rpx;
  478. .section-title {
  479. position: relative;
  480. padding-left: 20rpx;
  481. margin-bottom: 20rpx;
  482. &::before {
  483. // content: '';
  484. position: absolute;
  485. left: 0;
  486. top: 50%;
  487. transform: translateY(-50%);
  488. width: 8rpx;
  489. height: 32rpx;
  490. background-color: #007aff;
  491. border-radius: 4rpx;
  492. }
  493. &-text {
  494. font-size: 32rpx;
  495. font-weight: bold;
  496. color: #333333;
  497. }
  498. }
  499. .info-card {
  500. background-color: #ffffff;
  501. border-radius: 16rpx;
  502. padding: 30rpx;
  503. .info-item {
  504. flex-direction: row;
  505. padding: 20rpx 0;
  506. border-bottom: 1rpx solid #f0f0f0;
  507. &:last-child {
  508. border-bottom: none;
  509. }
  510. &.full-width {
  511. flex-direction: column;
  512. .info-label {
  513. margin-bottom: 12rpx;
  514. }
  515. .info-value {
  516. line-height: 44rpx;
  517. }
  518. }
  519. .info-label {
  520. width: 240rpx;
  521. font-size: 28rpx;
  522. color: #666666;
  523. white-space: nowrap;
  524. }
  525. .info-value {
  526. flex: 1;
  527. font-size: 28rpx;
  528. color: #333333;
  529. text-align: left;
  530. &.highlight {
  531. color: #007aff;
  532. font-weight: bold;
  533. }
  534. &.input {
  535. text-align: left;
  536. border: 1rpx solid #e0e0e0;
  537. border-radius: 8rpx;
  538. padding: 10rpx;
  539. }
  540. }
  541. }
  542. .flow-item {
  543. padding: 20rpx 0;
  544. border-bottom: 1rpx solid #f0f0f0;
  545. &:last-child {
  546. border-bottom: none;
  547. }
  548. .flow-header {
  549. flex-direction: row;
  550. justify-content: space-between;
  551. margin-bottom: 10rpx;
  552. .flow-operator {
  553. font-size: 28rpx;
  554. color: #333333;
  555. font-weight: bold;
  556. }
  557. .flow-time {
  558. font-size: 24rpx;
  559. color: #999999;
  560. }
  561. }
  562. .flow-content {
  563. flex-direction: column;
  564. .flow-action {
  565. font-size: 26rpx;
  566. color: #666666;
  567. margin-bottom: 8rpx;
  568. }
  569. .flow-remark {
  570. font-size: 24rpx;
  571. color: #999999;
  572. background-color: #f5f5f5;
  573. padding: 10rpx;
  574. border-radius: 8rpx;
  575. }
  576. }
  577. }
  578. .no-data {
  579. text-align: center;
  580. padding: 40rpx 0;
  581. font-size: 28rpx;
  582. color: #999999;
  583. }
  584. }
  585. }
  586. .accept-button-container {
  587. padding: 30rpx 30rpx 50rpx;
  588. background-color: #ffffff;
  589. .accept-button {
  590. width: 100%;
  591. height: 80rpx;
  592. background-color: #007aff;
  593. color: #ffffff;
  594. font-size: 32rpx;
  595. border-radius: 16rpx;
  596. border: none;
  597. &:active {
  598. background-color: #0062cc;
  599. }
  600. }
  601. }
  602. .loading-mask {
  603. position: absolute;
  604. top: 0;
  605. left: 0;
  606. right: 0;
  607. bottom: 0;
  608. justify-content: center;
  609. align-items: center;
  610. background-color: rgba(0, 0, 0, 0.3);
  611. .loading-text {
  612. padding: 30rpx 60rpx;
  613. background-color: rgba(0, 0, 0, 0.7);
  614. color: #ffffff;
  615. font-size: 28rpx;
  616. border-radius: 12rpx;
  617. }
  618. }
  619. .picker-modal {
  620. position: fixed;
  621. top: 0;
  622. left: 0;
  623. right: 0;
  624. bottom: 0;
  625. z-index: 1000;
  626. }
  627. .modal-mask {
  628. position: absolute;
  629. top: 0;
  630. left: 0;
  631. right: 0;
  632. bottom: 0;
  633. background-color: rgba(0, 0, 0, 0.5);
  634. }
  635. .modal-content {
  636. position: absolute;
  637. bottom: 0;
  638. left: 0;
  639. right: 0;
  640. background-color: #ffffff;
  641. border-top-left-radius: 16rpx;
  642. border-top-right-radius: 16rpx;
  643. max-height: 700rpx;
  644. }
  645. .modal-header {
  646. flex-direction: row;
  647. justify-content: space-between;
  648. align-items: center;
  649. padding: 30rpx;
  650. border-bottom: 1rpx solid #f0f0f0;
  651. }
  652. .modal-title {
  653. font-size: 32rpx;
  654. font-weight: bold;
  655. color: #333333;
  656. }
  657. .modal-close {
  658. font-size: 28rpx;
  659. color: #007aff;
  660. }
  661. .modal-body {
  662. max-height: 600rpx;
  663. }
  664. .picker-option {
  665. flex-direction: row;
  666. justify-content: space-between;
  667. align-items: center;
  668. padding: 24rpx 30rpx;
  669. border-bottom: 1rpx solid #f0f0f0;
  670. }
  671. .picker-option.selected {
  672. background-color: #f8f9fa;
  673. }
  674. .option-text {
  675. font-size: 28rpx;
  676. color: #333333;
  677. }
  678. .option-check {
  679. font-size: 28rpx;
  680. color: #007aff;
  681. }
  682. .form-picker {
  683. flex: 1;
  684. }
  685. .picker-display {
  686. flex-direction: row;
  687. justify-content: space-between;
  688. align-items: center;
  689. min-height: 40rpx;
  690. }
  691. .selected-value {
  692. font-size: 28rpx;
  693. color: #333333;
  694. }
  695. .placeholder {
  696. font-size: 28rpx;
  697. color: #999999;
  698. }
  699. .arrow {
  700. font-size: 24rpx;
  701. color: #999999;
  702. margin-left: 12rpx;
  703. }
  704. .reject-reason-textarea {
  705. width: 100%;
  706. min-height: 100rpx;
  707. line-height: 1.5;
  708. }
  709. </style>