acceptIndex.uvue 28 KB

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