suspendIndex.uvue 24 KB

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