restartIndex.uvue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861
  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">{{ workOrderProjectNo ?? '' }}</text>
  13. </view>
  14. <view class="info-item">
  15. <text class="info-label">风机编号</text>
  16. <text class="info-value">{{ pcsDeviceName ?? '' }}</text>
  17. </view>
  18. <view class="info-item">
  19. <text class="info-label">维保中心</text>
  20. <text class="info-value">{{ gxtCenter ?? '' }}</text>
  21. </view>
  22. <view class="info-item">
  23. <text class="info-label">场站</text>
  24. <text class="info-value">{{ pcsStationName ?? '' }}</text>
  25. </view>
  26. <view class="info-item">
  27. <text class="info-label">机型</text>
  28. <text class="info-value">{{ brand ?? '' }} {{ model ?? '' }}</text>
  29. </view>
  30. <view class="info-item">
  31. <text class="info-label">下发时间</text>
  32. <text class="info-value">{{ assignTime ?? '' }}</text>
  33. </view>
  34. <view class="info-item" v-if="realStartTime != ''">
  35. <text class="info-label">开始时间</text>
  36. <text class="info-value">{{ realStartTime ?? '' }}</text>
  37. </view>
  38. <view class="info-item" v-if="realStartTime != ''">
  39. <text class="info-label">结束时间</text>
  40. <text class="info-value">{{ realEndTime ?? '' }}</text>
  41. </view>
  42. <view class="info-item" v-if="orderType == '1'">
  43. <text class="info-label">发生时间</text>
  44. <text class="info-value">{{ occurTime ?? '' }}</text>
  45. </view>
  46. <!-- <view class="info-item" v-if="orderType == '2'">
  47. <text class="info-label">停机时间</text>
  48. <text class="info-value">{{ pauseTime ?? '' }}</text>
  49. </view> -->
  50. </view>
  51. </view>
  52. <view class="info-section">
  53. <view class="info-card">
  54. <view class="info-item">
  55. <view class="info-label">
  56. <text class="form-label required">停机时间<text style="color: red;">*</text></text>
  57. </view>
  58. <view class="info-value">
  59. <view class="form-picker" @click="showPauseTimePicker = true">
  60. <input
  61. class="input-field"
  62. placeholder="请选择停机时间"
  63. v-model="pauseTime"
  64. type="none"
  65. />
  66. </view>
  67. </view>
  68. </view>
  69. <view class="info-item">
  70. <view class="info-label">
  71. <text class="form-label required">恢复运行时间<text style="color: red;">*</text></text>
  72. </view>
  73. <view class="info-value">
  74. <view class="form-picker" @click="showshutdownTimePicker = true">
  75. <input
  76. class="input-field"
  77. placeholder="请选择恢复运行时间"
  78. v-model="restartTime"
  79. type="none"
  80. />
  81. </view>
  82. </view>
  83. </view>
  84. <view class="info-item">
  85. <view class="info-label">
  86. <text class="form-label required">损失电量(kWh)<text style="color: red;" v-if="orderType == '1'">*</text></text>
  87. </view>
  88. <view class="info-value">
  89. <input
  90. class="input-field"
  91. placeholder="请输入损失电量"
  92. v-model="lostPower"
  93. type="digit"
  94. @input="handleLostPowerInput"
  95. @blur="validateLostPower"
  96. />
  97. </view>
  98. </view>
  99. </view>
  100. </view>
  101. <!-- 时间选择器弹窗 -->
  102. <!-- Start Date Picker -->
  103. <l-popup v-model="showshutdownTimePicker" position="bottom">
  104. <l-date-time-picker
  105. title="选择恢复运行时间"
  106. :mode="1 | 2 | 4 | 8 | 16"
  107. format="YYYY-MM-DD HH:mm"
  108. :modelValue="restartTime"
  109. confirm-btn="确定"
  110. cancel-btn="取消"
  111. @confirm="onStartDateConfirm"
  112. @cancel="showshutdownTimePicker = false">
  113. </l-date-time-picker>
  114. </l-popup>
  115. <l-popup v-model="showPauseTimePicker" position="bottom">
  116. <l-date-time-picker
  117. title="选择停机时间"
  118. :mode="1 | 2 | 4 | 8 | 16"
  119. format="YYYY-MM-DD HH:mm"
  120. :modelValue="pauseTime"
  121. confirm-btn="确定"
  122. cancel-btn="取消"
  123. @confirm="onStartDateConfirm2"
  124. @cancel="showPauseTimePicker = false">
  125. </l-date-time-picker>
  126. </l-popup>
  127. </scroll-view>
  128. <!-- 接单按钮 -->
  129. <view class="accept-button-container" v-if="checkPermi(orderType == '2' ? ['gxt:maintenance:order:restart'] : ['gxt:repairOrder:restart'])">
  130. <button class="accept-button" @click="handleRestartOrder">{{ isDealing ? '复运中...' : '复 运' }}</button>
  131. </view>
  132. <!-- 加载中状态 -->
  133. <view v-if="loading" class="loading-mask">
  134. <text class="loading-text">加载中...</text>
  135. </view>
  136. </view>
  137. </template>
  138. <script setup lang="uts">
  139. import { ref } from 'vue'
  140. import type { acceptOrderInfo } from '../../../types/order'
  141. import type { WorkOrderFlow } from '../../../types/flow'
  142. import { getOrderInfoById, getRepairOrderInfoById, restartOrder } from '../../../api/order/detail'
  143. import type { SysDictData } from '../../../types/dict'
  144. import { getDictDataByType } from '../../../api/dict/index'
  145. import type { UserInfo } from '../../../types/user'
  146. import {checkPermi} from '../../../utils/storage'
  147. const teamLeaderName = ref<string>("")
  148. const statusDictList = ref<SysDictData[]>([]) // 工单状态字典列表
  149. // 添加字典加载状态
  150. const dictLoaded = ref<boolean>(false)
  151. const restartTime = ref<string>("")
  152. const lostPower = ref<string>("")
  153. // 工单信息
  154. const orderId = ref<string>('')
  155. const workOrderProjectNo = ref<string>('')
  156. const workOrderStatus = ref<string>('')
  157. const orderType = ref<string>('')
  158. const pcsDeviceName = ref<string>('')
  159. const gxtCenter = ref<string>('')
  160. const pcsStationName = ref<string>('')
  161. const brand = ref<string>('')
  162. const model = ref<string>('')
  163. const assignTime = ref<string>('')
  164. const occurTime = ref<string>('')
  165. const pauseTime = ref<string>('')
  166. const realStartTime = ref<string>('')
  167. const realEndTime = ref<string>('')
  168. const showshutdownTimePicker = ref<boolean>(false)
  169. const showPauseTimePicker = ref<boolean>(false)
  170. // 输入过滤方法,只允许数字和小数点,并确保值大于0
  171. const handleLostPowerInput = () => {
  172. let value = lostPower.value;
  173. // 只保留数字和小数点
  174. value = value.replace(/[^\d.]/g, '');
  175. // 防止出现多个小数点
  176. const parts = value.split('.');
  177. if (parts.length > 2) {
  178. // 如果有多个小数点,只保留第一个小数点
  179. value = parts[0] + '.' + parts.slice(1).join('');
  180. }
  181. // 防止以多个小数点开头
  182. if (value.startsWith('..')) {
  183. value = value.substring(1);
  184. }
  185. // 防止以小数点开头但后面没有数字的情况(如单独的小数点)
  186. if (value === '.') {
  187. value = '';
  188. }
  189. // 更新值
  190. lostPower.value = value;
  191. };
  192. // 验证损失电量是否大于0
  193. const validateLostPower = () => {
  194. if (lostPower.value.trim() !== '') {
  195. const lostPowerNum = parseFloat(lostPower.value);
  196. if (isNaN(lostPowerNum) || lostPowerNum <= 0) {
  197. uni.showToast({
  198. title: '损失电量必须大于0',
  199. icon: 'none'
  200. });
  201. }
  202. }
  203. };
  204. function onStartDateConfirm(value: string) {
  205. restartTime.value = value
  206. showshutdownTimePicker.value = false
  207. }
  208. function onStartDateConfirm2(value: string) {
  209. pauseTime.value = value
  210. showPauseTimePicker.value = false
  211. }
  212. // 获取工单状态字典列表
  213. const loadStatusDictList = async (): Promise<void> => {
  214. try {
  215. const result = await getDictDataByType('gxt_repair_order_flow_action_type')
  216. const resultObj = result as UTSJSONObject
  217. if (resultObj['code'] == 200) {
  218. const data = resultObj['data'] as any[]
  219. const dictData: SysDictData[] = []
  220. if (data.length > 0) {
  221. for (let i = 0; i < data.length; i++) {
  222. const item = data[i] as UTSJSONObject
  223. // 只提取需要的字段
  224. const dictItem: SysDictData = {
  225. dictValue: item['dictValue'] as string | null,
  226. dictLabel: item['dictLabel'] as string | null,
  227. dictCode: null,
  228. dictSort: null,
  229. dictType: null,
  230. cssClass: null,
  231. listClass: null,
  232. isDefault: null,
  233. status: null,
  234. default: null,
  235. createTime: null,
  236. remark: null
  237. }
  238. dictData.push(dictItem)
  239. }
  240. }
  241. statusDictList.value = dictData
  242. dictLoaded.value = true
  243. }
  244. } catch (e: any) {
  245. console.error('获取工单状态字典失败:', e.message)
  246. dictLoaded.value = true
  247. }
  248. }
  249. const isDealing = ref(false)
  250. const hasDealed = ref(false)
  251. // 处理接单操作
  252. const handleRestartOrder = async (): Promise<void> => {
  253. if (restartTime.value.trim() === '') {
  254. uni.showToast({
  255. title: '请选择恢复运行时间',
  256. icon: 'none'
  257. })
  258. return
  259. }
  260. // 添加时间验证逻辑(统一用时间戳对比,避免格式问题)
  261. const restartTimeStamp = new Date(restartTime.value).getTime(); // 恢复运行时间戳
  262. // const pauseTimeStamp = new Date(pauseTime.value).getTime(); // 停机时间戳
  263. const currentTimeStamp = new Date().getTime(); // 当前时间戳
  264. const realStartTimeStamp = realStartTime.value != '' ? new Date(realStartTime.value).getTime() : 0; // 开工时间戳
  265. const realEndTimeStamp = realEndTime.value != '' ? new Date(realEndTime.value).getTime() : 0; // 收工时间戳
  266. // 验证1:恢复运行时间不能大于当前时间
  267. if (restartTimeStamp > currentTimeStamp) {
  268. uni.showToast({
  269. title: '恢复运行时间不能大于当前时间',
  270. icon: 'none'
  271. });
  272. return;
  273. }
  274. if (orderType.value == '1') {
  275. // 维修工单:恢复运行时间不能小于发生时间
  276. if (occurTime.value != '') {
  277. const occurTimeStamp = new Date(occurTime.value).getTime();
  278. if (restartTimeStamp < occurTimeStamp) {
  279. uni.showToast({
  280. title: '恢复运行时间不能早于发生时间',
  281. icon: 'none'
  282. });
  283. return;
  284. }
  285. }
  286. // 2. 开工时间不为空时,恢复运行时间不能小于开工时间
  287. if (realStartTimeStamp > 0) { // 开工时间戳>0表示非空且有效
  288. if (restartTimeStamp < realStartTimeStamp) {
  289. uni.showToast({
  290. title: '恢复运行时间不能早于开始时间',
  291. icon: 'none'
  292. });
  293. return;
  294. }
  295. }
  296. // 3. 收工时间不为空时,恢复运行时间不能大于收工时间
  297. if (realEndTimeStamp > 0) { // 收工时间戳>0表示非空且有效
  298. if (restartTimeStamp > realEndTimeStamp) {
  299. uni.showToast({
  300. title: '恢复运行时间不能晚于结束时间',
  301. icon: 'none'
  302. });
  303. return;
  304. }
  305. }
  306. } else if (orderType.value == '2') {
  307. // 维保工单校验逻辑
  308. if (pauseTime.value.trim() === '') {
  309. uni.showToast({
  310. title: '请选择停机时间',
  311. icon: 'none'
  312. })
  313. return
  314. }
  315. const pauseTimeStamp = new Date(pauseTime.value).getTime();
  316. // 1. 恢复运行时间不能小于停机时间(原有逻辑,改为时间戳对比)
  317. if (restartTimeStamp < pauseTimeStamp) {
  318. uni.showToast({
  319. title: '恢复运行时间不能早于停机时间',
  320. icon: 'none'
  321. });
  322. return;
  323. }
  324. // 2. 开工时间不为空时,恢复运行时间不能小于开工时间
  325. if (realStartTimeStamp > 0) { // 开工时间戳>0表示非空且有效
  326. if (restartTimeStamp < realStartTimeStamp) {
  327. uni.showToast({
  328. title: '恢复运行时间不能早于开始时间',
  329. icon: 'none'
  330. });
  331. return;
  332. }
  333. }
  334. // 3. 收工时间不为空时,恢复运行时间不能大于收工时间
  335. if (realEndTimeStamp > 0) { // 收工时间戳>0表示非空且有效
  336. if (restartTimeStamp > realEndTimeStamp) {
  337. uni.showToast({
  338. title: '恢复运行时间不能晚于结束时间',
  339. icon: 'none'
  340. });
  341. return;
  342. }
  343. }
  344. // 4. 开工时间不为空时,停机时间不能小于开工时间
  345. if (realStartTimeStamp > 0) { // 开工时间戳>0表示非空且有效
  346. if (pauseTimeStamp < realStartTimeStamp) {
  347. uni.showToast({
  348. title: '停机不能早于开始时间',
  349. icon: 'none'
  350. });
  351. return;
  352. }
  353. }
  354. // 5. 收工时间不为空时,停机时间不能大于收工时间
  355. if (realEndTimeStamp > 0) { // 收工时间戳>0表示非空且有效
  356. if (pauseTimeStamp > realEndTimeStamp) {
  357. uni.showToast({
  358. title: '停机时间不能晚于结束时间',
  359. icon: 'none'
  360. });
  361. return;
  362. }
  363. }
  364. }
  365. if (orderType.value == '1' && lostPower.value.trim() === '') {
  366. uni.showToast({
  367. title: '请输入损失电量',
  368. icon: 'none'
  369. })
  370. return
  371. }
  372. if(lostPower.value.trim() != '') {
  373. // 验证损失电量必须大于0
  374. const lostPowerNum = parseFloat(lostPower.value);
  375. if (isNaN(lostPowerNum) || lostPowerNum <= 0) {
  376. uni.showToast({
  377. title: '损失电量必须大于0',
  378. icon: 'none'
  379. })
  380. return
  381. }
  382. }
  383. if (isDealing.value || hasDealed.value) return // 双重保险
  384. isDealing.value = true
  385. try {
  386. const submitData = {
  387. id: orderId.value,
  388. orderType: orderType.value,
  389. workOrderProjectNo: workOrderProjectNo.value,
  390. workOrderStatus: workOrderStatus.value,
  391. restartTime: restartTime.value,
  392. lostPower: lostPower.value,
  393. occurTime: orderType.value == '1' ? occurTime.value : pauseTime.value
  394. } as UTSJSONObject;
  395. const result = await restartOrder(submitData)
  396. const resultObj = result as UTSJSONObject
  397. const code = resultObj['code'] as number
  398. if (code == 200) {
  399. uni.showToast({
  400. title: '复运成功',
  401. icon: 'success'
  402. })
  403. hasDealed.value = true
  404. // 使用事件总线通知列表页面刷新
  405. uni.$emit('refreshOrderList', {})
  406. uni.$emit('refreshAssignedCount')
  407. uni.$emit('refreshOverdueCount')
  408. uni.$emit('refreshApproveCount')
  409. uni.$emit('refreshSuspendedCount')
  410. // 接单成功后返回上一页
  411. setTimeout(() => {
  412. uni.navigateBack()
  413. }, 800)
  414. } else {
  415. // 处理业务错误
  416. uni.showToast({
  417. title: resultObj['msg'] as string,
  418. icon: 'none'
  419. })
  420. }
  421. } catch (error: any) {
  422. console.error('请求失败:', error);
  423. uni.showToast({
  424. title: error.message ?? '挂起失败',
  425. icon: 'none'
  426. })
  427. } finally {
  428. isDealing.value = false // 无论成功失败都解锁
  429. }
  430. }
  431. const loading = ref<boolean>(false)
  432. // 获取操作类型名称
  433. const getActionTypeName = (item: string | null): string | null => {
  434. if (item == null) return ''
  435. // const orderInfoItem = item as orderInfo
  436. const rawStatus = item
  437. if (rawStatus==null) return ''
  438. // 如果字典尚未加载,返回原始值
  439. if (!dictLoaded.value) {
  440. return rawStatus
  441. }
  442. // 查找字典中对应的标签
  443. const dictItem = statusDictList.value.find(dict => dict.dictValue == rawStatus)
  444. return dictItem!=null ? dictItem.dictLabel : rawStatus
  445. }
  446. // 加载详情数据
  447. const loadDetail = async (id: string, orderType?: number): Promise<void> => {
  448. try {
  449. loading.value = true
  450. let result: any;
  451. // 根据orderType决定调用哪个API
  452. if (orderType == 1) {
  453. // 维修工单
  454. result = await getRepairOrderInfoById(id)
  455. } else {
  456. // 维保工单
  457. result = await getOrderInfoById(id)
  458. }
  459. // 提取响应数据
  460. const resultObj = result as UTSJSONObject
  461. const code = resultObj['code'] as number
  462. const data = resultObj['data'] as UTSJSONObject | null
  463. if (code == 200 && data != null) {
  464. orderId.value = id
  465. workOrderStatus.value = (data['workOrderStatus'] as string | null) ?? ''
  466. workOrderProjectNo.value = (data['workOrderProjectNo'] as string | null) ?? ''
  467. pcsDeviceName.value = (data['pcsDeviceName'] as string | null) ?? ''
  468. gxtCenter.value = (data['gxtCenter'] as string | null) ?? ''
  469. pcsStationName.value = (data['pcsStationName'] as string | null) ?? ''
  470. brand.value = (data['brand'] as string | null) ?? ''
  471. model.value = (data['model'] as string | null) ?? ''
  472. assignTime.value = (data['assignTime'] as string | null) ?? ''
  473. occurTime.value = (data['occurTime'] as string | null) ?? ''
  474. pauseTime.value = (data['pauseTime'] as string | null) ?? ''
  475. realStartTime.value = (data['realStartTime'] as string | null) ?? ''
  476. realEndTime.value = (data['realEndTime'] as string | null) ?? ''
  477. if(orderType == 2 && pauseTime.value == '') {
  478. uni.showModal({
  479. title: '提示',
  480. content: '请先进行停机操作。',
  481. showCancel: false, // 只显示确定按钮
  482. confirmText: '确定',
  483. confirmColor: '#007aff',
  484. success: (res) => {
  485. // uni.$emit('refreshOrderList', {})
  486. // setTimeout(() => {
  487. // uni.navigateBack()
  488. // }, 500)
  489. }
  490. });
  491. }
  492. } else {
  493. const msg = resultObj['msg'] as string | null
  494. uni.showToast({
  495. title: msg ?? '加载失败',
  496. icon: 'none'
  497. })
  498. }
  499. } catch (e: any) {
  500. uni.showToast({
  501. title: e.message ?? '加载失败',
  502. icon: 'none'
  503. })
  504. } finally {
  505. loading.value = false
  506. }
  507. }
  508. // 页面加载
  509. onLoad((options: any) => {
  510. const params = options as UTSJSONObject
  511. const id = params['id'] as string | null
  512. const orderTypeParam = params['orderType'] as string | null
  513. if (id != null && orderTypeParam != null) {
  514. // 先尝试从参数中获取orderType
  515. orderType.value = orderTypeParam
  516. const orderTypeNumber = parseInt(orderTypeParam)
  517. loadDetail(id, orderTypeNumber)
  518. }
  519. })
  520. // 初始化
  521. onMounted(() => {
  522. // loadStatusDictList()
  523. })
  524. </script>
  525. <style lang="scss">
  526. .detail-page {
  527. flex: 1;
  528. background-color: #e8f0f9;
  529. }
  530. .detail-content {
  531. flex: 1;
  532. padding: 20rpx 0;
  533. }
  534. .info-section {
  535. margin: 0 30rpx 24rpx;
  536. .section-title {
  537. position: relative;
  538. padding-left: 20rpx;
  539. margin-bottom: 20rpx;
  540. &::before {
  541. // content: '';
  542. position: absolute;
  543. left: 0;
  544. top: 50%;
  545. transform: translateY(-50%);
  546. width: 8rpx;
  547. height: 32rpx;
  548. background-color: #007aff;
  549. border-radius: 4rpx;
  550. }
  551. &-text {
  552. font-size: 32rpx;
  553. font-weight: bold;
  554. color: #333333;
  555. }
  556. }
  557. .info-card {
  558. background-color: #ffffff;
  559. border-radius: 16rpx;
  560. padding: 30rpx;
  561. .info-item {
  562. flex-direction: row;
  563. padding: 20rpx 0;
  564. border-bottom: 1rpx solid #f0f0f0;
  565. &:last-child {
  566. border-bottom: none;
  567. }
  568. &.full-width {
  569. flex-direction: column;
  570. .info-label {
  571. margin-bottom: 12rpx;
  572. }
  573. .info-value {
  574. line-height: 44rpx;
  575. }
  576. }
  577. .info-label {
  578. width: 240rpx;
  579. font-size: 28rpx;
  580. color: #666666;
  581. white-space: nowrap;
  582. }
  583. .info-value {
  584. flex: 1;
  585. font-size: 28rpx;
  586. color: #333333;
  587. text-align: left;
  588. &.highlight {
  589. color: #007aff;
  590. font-weight: bold;
  591. }
  592. &.input {
  593. text-align: left;
  594. border: 1rpx solid #e0e0e0;
  595. border-radius: 8rpx;
  596. padding: 10rpx;
  597. }
  598. }
  599. }
  600. .flow-item {
  601. padding: 20rpx 0;
  602. border-bottom: 1rpx solid #f0f0f0;
  603. &:last-child {
  604. border-bottom: none;
  605. }
  606. .flow-header {
  607. flex-direction: row;
  608. justify-content: space-between;
  609. margin-bottom: 10rpx;
  610. .flow-operator {
  611. font-size: 28rpx;
  612. color: #333333;
  613. font-weight: bold;
  614. }
  615. .flow-time {
  616. font-size: 24rpx;
  617. color: #999999;
  618. }
  619. }
  620. .flow-content {
  621. flex-direction: column;
  622. .flow-action {
  623. font-size: 26rpx;
  624. color: #666666;
  625. margin-bottom: 8rpx;
  626. }
  627. .flow-remark {
  628. font-size: 24rpx;
  629. color: #999999;
  630. background-color: #f5f5f5;
  631. padding: 10rpx;
  632. border-radius: 8rpx;
  633. }
  634. }
  635. }
  636. .no-data {
  637. text-align: center;
  638. padding: 40rpx 0;
  639. font-size: 28rpx;
  640. color: #999999;
  641. }
  642. }
  643. }
  644. .accept-button-container {
  645. padding: 30rpx 30rpx 50rpx;
  646. background-color: #ffffff;
  647. .accept-button {
  648. width: 100%;
  649. height: 80rpx;
  650. background-color: #007aff;
  651. color: #ffffff;
  652. font-size: 32rpx;
  653. border-radius: 16rpx;
  654. border: none;
  655. &:active {
  656. background-color: #0062cc;
  657. }
  658. }
  659. }
  660. .loading-mask {
  661. position: absolute;
  662. top: 0;
  663. left: 0;
  664. right: 0;
  665. bottom: 0;
  666. justify-content: center;
  667. align-items: center;
  668. background-color: rgba(0, 0, 0, 0.3);
  669. .loading-text {
  670. padding: 30rpx 60rpx;
  671. background-color: rgba(0, 0, 0, 0.7);
  672. color: #ffffff;
  673. font-size: 28rpx;
  674. border-radius: 12rpx;
  675. }
  676. }
  677. .picker-modal {
  678. position: fixed;
  679. top: 0;
  680. left: 0;
  681. right: 0;
  682. bottom: 0;
  683. z-index: 1000;
  684. }
  685. .modal-mask {
  686. position: absolute;
  687. top: 0;
  688. left: 0;
  689. right: 0;
  690. bottom: 0;
  691. background-color: rgba(0, 0, 0, 0.5);
  692. }
  693. .modal-content {
  694. position: absolute;
  695. bottom: 0;
  696. left: 0;
  697. right: 0;
  698. background-color: #ffffff;
  699. border-top-left-radius: 16rpx;
  700. border-top-right-radius: 16rpx;
  701. max-height: 700rpx;
  702. }
  703. .modal-header {
  704. flex-direction: row;
  705. justify-content: space-between;
  706. align-items: center;
  707. padding: 30rpx;
  708. border-bottom: 1rpx solid #f0f0f0;
  709. }
  710. .modal-title {
  711. font-size: 32rpx;
  712. font-weight: bold;
  713. color: #333333;
  714. }
  715. .modal-close {
  716. font-size: 28rpx;
  717. color: #007aff;
  718. }
  719. .modal-body {
  720. max-height: 600rpx;
  721. }
  722. .picker-option {
  723. flex-direction: row;
  724. justify-content: space-between;
  725. align-items: center;
  726. padding: 24rpx 30rpx;
  727. border-bottom: 1rpx solid #f0f0f0;
  728. }
  729. .picker-option.selected {
  730. background-color: #f8f9fa;
  731. }
  732. .option-text {
  733. font-size: 28rpx;
  734. color: #333333;
  735. }
  736. .option-check {
  737. font-size: 28rpx;
  738. color: #007aff;
  739. }
  740. .form-picker {
  741. flex: 1;
  742. }
  743. .picker-display {
  744. flex-direction: row;
  745. justify-content: space-between;
  746. align-items: center;
  747. min-height: 40rpx;
  748. }
  749. .selected-value {
  750. font-size: 28rpx;
  751. color: #333333;
  752. }
  753. .placeholder {
  754. font-size: 28rpx;
  755. color: #999999;
  756. }
  757. .arrow {
  758. font-size: 24rpx;
  759. color: #999999;
  760. margin-left: 12rpx;
  761. }
  762. .reject-reason-textarea {
  763. width: 100%;
  764. min-height: 100rpx;
  765. line-height: 1.5;
  766. }
  767. </style>