suspendIndex.uvue 24 KB

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