acceptIndex.uvue 24 KB

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