acceptIndex.uvue 27 KB

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