wbBackfillFinalize.uvue 46 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420
  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">{{ orderType == '1' ? '维修工单' : '维保工单' }}</text>
  17. </view>
  18. <view class="info-item">
  19. <text class="info-label">风机编号</text>
  20. <text class="info-value">{{ pcsDeviceName ?? '' }}</text>
  21. </view>
  22. <view class="info-item">
  23. <text class="info-label">维保中心</text>
  24. <text class="info-value">{{ gxtCenter ?? '' }}</text>
  25. </view>
  26. <view class="info-item">
  27. <text class="info-label">场站</text>
  28. <text class="info-value">{{ pcsStationName ?? '' }}</text>
  29. </view>
  30. <view class="info-item">
  31. <text class="info-label">机型</text>
  32. <text class="info-value">{{ brand ?? '' }} {{ model ?? '' }}</text>
  33. </view>
  34. <view class="info-item">
  35. <text class="info-label">MIS工单</text>
  36. <text class="info-value">{{ misNo ?? '' }}</text>
  37. </view>
  38. <view class="info-item">
  39. <text class="info-label">工作票编号</text>
  40. <text class="info-value">{{ workPermitNum ?? '' }}</text>
  41. </view>
  42. <view class="info-item">
  43. <text class="info-label">接单时间</text>
  44. <text class="info-value">{{ acceptTime ?? '' }}</text>
  45. </view>
  46. </view>
  47. </view>
  48. <!-- 结单表单 -->
  49. <view class="info-section">
  50. <view class="section-title">
  51. <text class="section-title-text">结单信息</text>
  52. </view>
  53. <view class="info-card">
  54. <!-- 开始时间 -->
  55. <view class="info-item">
  56. <view class="info-label">
  57. <text class="form-label required">开始时间<text style="color: red;">*</text></text>
  58. </view>
  59. <view class="info-value">
  60. <view class="form-picker" @click="infoEntry == '1' ? showStartTimePicker = false : showStartTimePicker = true">
  61. <input
  62. class="input-field"
  63. placeholder="请选择开始时间"
  64. v-model="realStartTime"
  65. type="none"
  66. style="pointer-events: none;"
  67. />
  68. </view>
  69. </view>
  70. </view>
  71. <!-- 结束时间 -->
  72. <view class="info-item">
  73. <view class="info-label">
  74. <text class="form-label required">结束时间<text style="color: red;">*</text></text>
  75. </view>
  76. <view class="info-value">
  77. <view class="form-picker" @click="infoEntry == '1' ? showEndTimePicker = false : showEndTimePicker = true">
  78. <input
  79. class="input-field"
  80. placeholder="请选择结束时间"
  81. v-model="realEndTime"
  82. type="none"
  83. style="pointer-events: none;"
  84. />
  85. </view>
  86. </view>
  87. </view>
  88. <!-- 挂起结束时间 -->
  89. <view class="info-item" v-if="resumeInfo != null && resumeShow">
  90. <view class="info-label">
  91. <text class="form-label required">挂起结束时间<text style="color: red;">*</text></text>
  92. </view>
  93. <view class="info-value">
  94. <view class="form-picker" @click="showResumeTimePicker = true">
  95. <input
  96. class="input-field"
  97. placeholder="请选择挂起结束时间"
  98. v-model="resumeTime"
  99. type="none"
  100. />
  101. </view>
  102. </view>
  103. </view>
  104. <!-- 外委人员数 -->
  105. <view class="info-item">
  106. <view class="info-label">
  107. <text class="form-label required">外委人员数(人)</text>
  108. </view>
  109. <view class="info-value">
  110. <input
  111. type="number"
  112. class="input-field"
  113. placeholder="请输入外委人员数"
  114. v-model="wwryNum"
  115. @input="onWwryNumInput"
  116. />
  117. </view>
  118. </view>
  119. <!-- 外来人员数 -->
  120. <view class="info-item">
  121. <view class="info-label">
  122. <text class="form-label required">外来人员数(人)</text>
  123. </view>
  124. <view class="info-value">
  125. <input
  126. type="number"
  127. class="input-field"
  128. placeholder="请输入外来人员数"
  129. v-model="wlryNum"
  130. @input="onWlryNumInput"
  131. />
  132. </view>
  133. </view>
  134. <!-- 工作负责人 -->
  135. <view class="info-item">
  136. <view class="info-label">
  137. <text class="form-label required">工作负责人</text>
  138. </view>
  139. <view class="info-value">
  140. <input
  141. class="input-field"
  142. placeholder="请选择工作负责人"
  143. v-model="teamLeaderName"
  144. :disabled="true"
  145. />
  146. </view>
  147. </view>
  148. <!-- 工作班成员选择(当信息录入为2时可编辑) -->
  149. <view class="info-item">
  150. <view class="info-label">
  151. <text class="form-label required">工作班成员</text>
  152. </view>
  153. <view class="info-value">
  154. <view class="input-with-clear">
  155. <input
  156. class="input-field"
  157. placeholder="请选择工作班成员"
  158. v-model="workGroupMemberName"
  159. @click="showUserSelect = true"
  160. :disabled="infoEntry == '1'"
  161. />
  162. <text class="select-users-count" v-if="selectedUserIds.length > 0" :style="{ marginRight: selectedUserIds.length > 0 ? '60rpx' : '0' }">({{ selectedUserIds.length }}人)</text>
  163. <text class="select-clear" v-if="selectedUserIds.length > 0" @click="clearSelectedUsers">×</text>
  164. </view>
  165. </view>
  166. </view>
  167. <!-- 维保内容 -->
  168. <view class="info-item full-width">
  169. <view class="info-label">
  170. <text class="form-label required">维保内容<text style="color: red;">*</text></text>
  171. </view>
  172. <view class="info-value">
  173. <textarea
  174. class="textarea-field"
  175. placeholder="请输入维保内容"
  176. v-model="content"
  177. maxlength="500"
  178. :disabled="infoEntry == '1'"
  179. :show-confirm-bar="false"
  180. auto-height
  181. ></textarea>
  182. </view>
  183. </view>
  184. <!-- 附件上传 -->
  185. <view class="info-item full-width">
  186. <view class="info-label">
  187. <text class="form-label">附件(可选)</text>
  188. </view>
  189. <view class="info-value">
  190. <upload-image
  191. :limit="8"
  192. :modelValue="uploadedFiles"
  193. :businessType="'workOrder'"
  194. @update:modelValue="uploadedFiles = $event as UTSArray<UploadResponse>"
  195. />
  196. </view>
  197. </view>
  198. </view>
  199. </view>
  200. <!-- 时间选择器弹窗 -->
  201. <!-- Start Date Picker -->
  202. <l-popup v-model="showStartTimePicker" position="bottom">
  203. <l-date-time-picker
  204. title="选择开始时间"
  205. :mode="1 | 2 | 4 | 8 | 16"
  206. format="YYYY-MM-DD HH:mm"
  207. :modelValue="realStartTime"
  208. confirm-btn="确定"
  209. cancel-btn="取消"
  210. @confirm="onStartDateConfirm"
  211. @cancel="showStartTimePicker = false">
  212. </l-date-time-picker>
  213. </l-popup>
  214. <!-- End Date Picker -->
  215. <l-popup v-model="showEndTimePicker" position="bottom">
  216. <l-date-time-picker
  217. title="选择结束时间"
  218. :mode="31"
  219. format="YYYY-MM-DD HH:mm"
  220. :modelValue="realEndTime"
  221. confirm-btn="确定"
  222. cancel-btn="取消"
  223. @confirm="onEndDateConfirm"
  224. @cancel="showEndTimePicker = false">
  225. </l-date-time-picker>
  226. </l-popup>
  227. <l-popup v-model="showResumeTimePicker" position="bottom" :safe-area-inset-bottom="true" :z-index="10000">
  228. <l-date-time-picker
  229. title="选择挂起结束时间"
  230. :mode="31"
  231. format="YYYY-MM-DD HH:mm"
  232. :modelValue="resumeTime"
  233. confirm-btn="确定"
  234. cancel-btn="取消"
  235. @confirm="onResumeTimeConfirm"
  236. @cancel="showResumeTimePicker = false">
  237. </l-date-time-picker>
  238. </l-popup>
  239. <!-- 人员选择弹窗 -->
  240. <view v-if="showUserSelect" class="picker-modal">
  241. <view class="modal-mask" @click="showUserSelect = false"></view>
  242. <view class="modal-content">
  243. <view class="modal-header">
  244. <text class="modal-title">选择工作班成员</text>
  245. <text class="modal-close" @click="confirmSelectedUsers">确定</text>
  246. </view>
  247. <view class="search-bar">
  248. <view class="search-box">
  249. <image class="search-icon" src="/static/images/workbench/list/1.png" mode="aspectFit"></image>
  250. <input class="search-input" type="text" placeholder="搜索姓名" v-model="userKeyword" @input="handleSearch" />
  251. <text v-if="userKeyword.length > 0" class="clear-icon" @click="clearSearch">✕</text>
  252. </view>
  253. </view>
  254. <scroll-view class="modal-body" scroll-y="true">
  255. <view
  256. v-for="(user, index) in userList"
  257. :key="index"
  258. class="picker-option"
  259. @click="toggleUserSelection(user)"
  260. >
  261. <text class="option-text">{{ (user['nickName'] as string | null) ?? '' }}</text>
  262. <text class="option-text">{{ ((user['dept'] as UTSJSONObject | null)?.['deptName'] as string | null) ?? '' }}</text>
  263. <text class="option-check" v-if="isSelected(user)">✓</text>
  264. </view>
  265. </scroll-view>
  266. </view>
  267. </view>
  268. </scroll-view>
  269. <!-- 确认结单按钮 -->
  270. <view class="accept-button-container">
  271. <button class="accept-button" @click="handleSubmit" :loading="submitLoading">{{ submitLoading ? '提交中...' : '确认结单' }}</button>
  272. </view>
  273. <!-- 加载中状态 -->
  274. <view v-if="loading" class="loading-mask">
  275. <text class="loading-text">加载中...</text>
  276. </view>
  277. </view>
  278. </template>
  279. <script setup lang="uts">
  280. import { ref, watch } from 'vue'
  281. import type { acceptOrderInfo } from '../../../types/order'
  282. import type { WorkOrderFlow } from '../../../types/flow'
  283. import { getOrderInfoById, getRepairOrderInfoById, returnRepairOrder, finishOrder } from '../../../api/order/detail'
  284. import { getMisInfoList, listWorkPerson, getOrderList, listAutoMisInfo } from '../../../api/order/list'
  285. import type { SysDictData } from '../../../types/dict'
  286. import { getDictDataByType } from '../../../api/dict/index'
  287. import type { UserInfo } from '../../../types/user'
  288. import type { UploadResponse } from '../../../types/workbench'
  289. import {checkPermi} from '../../../utils/storage'
  290. import { getUserList, getLeaderList } from '../../../api/user/list'
  291. // import uploadImage from '../../../components/upload-image/upload-image.uvue'
  292. // 工单信息
  293. const orderId = ref<string>('')
  294. const workOrderProjectNo = ref<string>('')
  295. const workOrderStatus = ref<string>('')
  296. const orderType = ref<string>('')
  297. const pcsDeviceName = ref<string>('')
  298. const gxtCenter = ref<string>('')
  299. const pcsStationName = ref<string>('')
  300. const brand = ref<string>('')
  301. const model = ref<string>('')
  302. const acceptTime = ref<string>('')
  303. const returnType = ref<string>('')
  304. const returnReason = ref<string>("")
  305. const returnTypeLabel = ref<string>("")
  306. const acceptReturnType = ref<string>('')
  307. const acceptReturnReason = ref<string>("")
  308. const teamLeaderId = ref<Number | null>(null)
  309. const teamLeaderName = ref<string>('')
  310. const pauseTime = ref<string>('')
  311. const restartTime = ref<string>('')
  312. const misNo = ref<string>('') // MIS工单编码
  313. // 添加字典加载状态
  314. const dictLoaded = ref<boolean>(false)
  315. // 结单表单相关变量
  316. const infoEntry = ref<string>('') // 信息录入
  317. const workPermitNum = ref<string>('') // 工作票编号
  318. const realStartTime = ref<string>('') // 开始时间
  319. const realEndTime = ref<string>('') // 结束时间
  320. const wwryNum = ref<string>('') // 外委人员数
  321. const wlryNum = ref<string>('') // 外来人员数
  322. const workGroupMemberName = ref<string>('') // 工作班成员
  323. const content = ref<string>('') // 维保内容
  324. const attachmentUrls = ref<string>('') // 附件URLs(逗号分隔的字符串格式)
  325. const uploadedFiles = ref<UploadResponse[]>([]) // 上传的文件对象数组
  326. const workOrderPersonList = ref<UTSJSONObject[]>([]) // 工作班成员数组
  327. const selectedUserIds = ref<string[]>([]) // 选中的用户ID数组
  328. const selectedUsers = ref<UTSJSONObject[]>([]) // 选中的用户对象数组
  329. // 时间选择器相关变量
  330. const showStartTimePicker = ref<boolean>(false)
  331. const showEndTimePicker = ref<boolean>(false)
  332. const startTimeDate = ref<string>('')
  333. const startTimeTime = ref<string>('')
  334. const endTimeDate = ref<string>('')
  335. const endTimeTime = ref<string>('')
  336. // 搜索关键词
  337. const userKeyword = ref<string>('')
  338. // 人员选择相关变量
  339. const showUserSelect = ref<boolean>(false)
  340. const userList = ref<UTSJSONObject[]>([])
  341. const userAllList = ref<UTSJSONObject[]>([])
  342. // 信息录入选项
  343. const selectedMisInfoIndex = ref<number>(-1)
  344. //挂起结束时间
  345. const suspendReason = ref<string>('') // 挂起原因
  346. const flowList = ref<UTSJSONObject[]>([]) //流转过程
  347. const suspendInfo = ref<UTSJSONObject | null>(null)
  348. const resumeInfo = ref<UTSJSONObject | null>(null)
  349. const resumeShow = ref<boolean>(false)
  350. const resumeTime = ref<string>('') // 挂起结束时间
  351. const showResumeTimePicker = ref<boolean>(false)
  352. // 监听开始时间和结束时间变化
  353. watch(realStartTime, (value: string) => {
  354. console.log('开始时间变化:', value)
  355. // 在这里添加开始时间变化时的处理逻辑
  356. if (resumeInfo.value != null && value != '') {
  357. const suspendTime = (suspendInfo.value?.['actionTime'] as string | null) ?? ''
  358. if (suspendTime != '' && value != '') {
  359. const suspendDate = new Date(suspendTime)
  360. const startDate = new Date(value)
  361. if (suspendDate.getTime() < startDate.getTime()) { // 开工前挂起
  362. const resumeDate = new Date(resumeTime.value)
  363. const endDate = new Date(realEndTime.value)
  364. if (resumeDate.getTime() > startDate.getTime() || (realEndTime.value != '' && resumeDate.getTime() > endDate.getTime())) {
  365. resumeShow.value = true
  366. } else {
  367. resumeShow.value = false
  368. }
  369. } else if (suspendDate.getTime() >= startDate.getTime()) { // 作业中挂起
  370. const resumeDate = new Date(resumeTime.value)
  371. const endDate = new Date(realEndTime.value)
  372. if (resumeDate.getTime() < startDate.getTime() || (realEndTime.value != '' && resumeDate.getTime() > endDate.getTime())) {
  373. resumeShow.value = true
  374. } else {
  375. resumeShow.value = false
  376. }
  377. } else {
  378. resumeShow.value = false
  379. }
  380. } else {
  381. resumeShow.value = false
  382. }
  383. }
  384. })
  385. watch(realEndTime, (value: string) => {
  386. console.log('结束时间变化:', value)
  387. // 在这里添加结束时间变化时的处理逻辑
  388. if (resumeInfo.value != null && value != '') {
  389. const suspendTime = (suspendInfo.value?.['actionTime'] as string | null) ?? ''
  390. if (suspendTime != '' && realStartTime.value != '' && new Date(suspendTime).getTime() < new Date(realStartTime.value).getTime()) { // 开工前挂起
  391. if (value != '' && resumeTime.value != '' && new Date(resumeTime.value).getTime() > new Date(realStartTime.value).getTime()) {
  392. resumeShow.value = true
  393. } else if(value != '' && resumeTime.value != '' && new Date(resumeTime.value).getTime() > new Date(value).getTime()) {
  394. resumeShow.value = true
  395. } else {
  396. resumeShow.value = false
  397. }
  398. } else if(suspendTime != '' && realStartTime.value != '' && new Date(suspendTime).getTime() >= new Date(realStartTime.value).getTime()) { // 作业中挂起
  399. if (realStartTime.value != '' && resumeTime.value != '' && new Date(resumeTime.value).getTime() < new Date(realStartTime.value).getTime()) {
  400. resumeShow.value = true
  401. } else if(value != '' && resumeTime.value != '' && new Date(resumeTime.value).getTime() > new Date(value).getTime()) {
  402. resumeShow.value = true
  403. } else {
  404. resumeShow.value = false
  405. }
  406. } else {
  407. resumeShow.value = false
  408. }
  409. }
  410. })
  411. // 获取用户列表
  412. const getUserAllList = async (): Promise<void> => {
  413. try {
  414. // 这里应该调用获取用户列表的API
  415. const result = await getLeaderList(-1); // 空参数调用
  416. const resultObj = result as UTSJSONObject;
  417. const code = resultObj['code'] as number
  418. const users = resultObj['data'] as UTSJSONObject[] | null
  419. if (code == 200 && users != null ) {
  420. // 解析列表数据
  421. // const rows = resultObj['rows'] as UTSJSONObject[]
  422. userList.value = users;
  423. userAllList.value = users
  424. // userList.value = result.data || [];
  425. }
  426. } catch (error) {
  427. console.error('获取用户列表失败:', error);
  428. uni.showToast({
  429. title: '获取用户列表失败',
  430. icon: 'none'
  431. });
  432. }
  433. };
  434. // 外委人员数输入处理
  435. const onWwryNumInput = (): void => {
  436. let value = wwryNum.value;
  437. // 移除非数字字符,包括负号和小数点
  438. value = value.replace(/[^0-9]/g, '');
  439. wwryNum.value = value;
  440. };
  441. // 外来人员数输入处理
  442. const onWlryNumInput = (): void => {
  443. let value = wlryNum.value;
  444. // 移除非数字字符,包括负号和小数点
  445. value = value.replace(/[^0-9]/g, '');
  446. wlryNum.value = value;
  447. };
  448. // 验证和提交
  449. const submitLoading = ref<boolean>(false)
  450. // 接受用户名
  451. const acceptUserName = ref<string>('')
  452. // 选择器选项类型
  453. type PickerOption = {
  454. label: string
  455. value: string
  456. }
  457. // 搜索
  458. const handleSearch = (): void => {
  459. const keyword = userKeyword.value
  460. userList.value = userAllList.value.filter(leader => {
  461. const nickName = leader['nickName'] as string | null
  462. return nickName != null && nickName.indexOf(keyword) >= 0
  463. })
  464. }
  465. // 清除用户搜索
  466. const clearSearch = (): void => {
  467. userKeyword.value = "";
  468. userList.value = userAllList.value
  469. };
  470. function onStartDateConfirm(value: string) {
  471. // 检查结束时间是否小于新的开始时间
  472. if (realEndTime.value != '' && new Date(value) > new Date(realEndTime.value as string)) {
  473. uni.showToast({ title: '开始时间不能大于结束时间', icon: 'none' })
  474. return
  475. }
  476. realStartTime.value = value
  477. showStartTimePicker.value = false
  478. }
  479. function onEndDateConfirm(value: string) {
  480. // 检查新的结束时间是否小于开始时间
  481. if (realStartTime.value != '' && new Date(realStartTime.value as string) > new Date(value)) {
  482. uni.showToast({ title: '结束时间不能小于开始时间', icon: 'none' })
  483. return
  484. }
  485. realEndTime.value = value
  486. showEndTimePicker.value = false
  487. }
  488. function onResumeTimeConfirm(value: string) {
  489. // 检查新的结束时间是否小于开始时间
  490. if (resumeTime.value != '' && new Date(realStartTime.value as string) > new Date(value)) {
  491. uni.showToast({ title: '结束时间不能小于开始时间', icon: 'none' })
  492. return
  493. }
  494. resumeTime.value = value
  495. showResumeTimePicker.value = false
  496. }
  497. // 检查用户是否已被选中
  498. const isSelected = (user: UTSJSONObject): boolean => {
  499. const userId = user['userId'] as string | number | null;
  500. if (userId !== null) {
  501. return selectedUserIds.value.includes(userId.toString());
  502. }
  503. // 如果没有userId,则比较nickName
  504. const nickName = user['nickName'] as string | null;
  505. if (nickName !== null) {
  506. return selectedUsers.value.some(selected =>
  507. (selected['nickName'] as string | null) === nickName
  508. );
  509. }
  510. return false;
  511. };
  512. // 切换用户选择状态
  513. const toggleUserSelection = (user: UTSJSONObject): void => {
  514. const userId = user['userId'] as string | number | null;
  515. const nickName = user['nickName'] as string | null;
  516. if (userId !== null) {
  517. const userIdStr = userId.toString();
  518. const index = selectedUserIds.value.indexOf(userIdStr);
  519. if (index > -1) {
  520. // 取消选择
  521. selectedUserIds.value.splice(index, 1);
  522. selectedUsers.value = selectedUsers.value.filter(selected =>
  523. (selected['userId'] as string | number | null)?.toString() !== userIdStr
  524. );
  525. } else {
  526. // 添加选择
  527. selectedUserIds.value.push(userIdStr);
  528. selectedUsers.value.push(user);
  529. }
  530. } else if (nickName !== null) {
  531. // 如果没有userId,通过nickName来识别
  532. const index = selectedUsers.value.findIndex(selected =>
  533. (selected['nickName'] as string | null) === nickName
  534. );
  535. if (index > -1) {
  536. // 取消选择
  537. selectedUsers.value.splice(index, 1);
  538. // 同时移除对应的userId(如果有的话)
  539. const userToRemoveId = user['userId'] as string | number | null;
  540. if (userToRemoveId !== null) {
  541. const idIndex = selectedUserIds.value.indexOf(userToRemoveId.toString());
  542. if (idIndex > -1) {
  543. selectedUserIds.value.splice(idIndex, 1);
  544. }
  545. }
  546. } else {
  547. // 添加选择
  548. selectedUsers.value.push(user);
  549. const userToAddId = user['userId'] as string | number | null;
  550. if (userToAddId !== null) {
  551. selectedUserIds.value.push(userToAddId.toString());
  552. }
  553. }
  554. }
  555. };
  556. // 确认选择的用户
  557. const confirmSelectedUsers = (): void => {
  558. // 将选中的用户姓名拼接成字符串
  559. const nickNames = selectedUsers.value
  560. .map(user => (user['nickName'] as string | null) ?? '')
  561. .filter(name => name !== '')
  562. .join(',');
  563. workGroupMemberName.value = nickNames;
  564. // 更新workOrderPersonList为选中的用户
  565. workOrderPersonList.value = [...selectedUsers.value];
  566. showUserSelect.value = false;
  567. };
  568. // 清空已选择的用户
  569. const clearSelectedUsers = (): void => {
  570. // 清空选中的用户数组
  571. selectedUsers.value = [];
  572. selectedUserIds.value = [];
  573. // 清空显示的用户名
  574. workGroupMemberName.value = '';
  575. // 清空工作班成员列表
  576. workOrderPersonList.value = [];
  577. };
  578. // 表单验证
  579. const validateForm = (): boolean => {
  580. if (infoEntry.value == '') {
  581. uni.showToast({
  582. title: '请选择信息录入方式',
  583. icon: 'none'
  584. });
  585. return false;
  586. }
  587. if (realStartTime.value == '') {
  588. uni.showToast({
  589. title: '请选择开始时间',
  590. icon: 'none'
  591. });
  592. return false;
  593. }
  594. if (realEndTime.value == '') {
  595. uni.showToast({
  596. title: '请选择结束时间',
  597. icon: 'none'
  598. });
  599. return false;
  600. }
  601. if (new Date(realEndTime.value) <= new Date(realStartTime.value)) {
  602. uni.showToast({
  603. title: '结束时间必须大于开始时间',
  604. icon: 'none'
  605. });
  606. return false;
  607. }
  608. if(resumeShow.value) {
  609. if(resumeTime.value == '') {
  610. uni.showToast({
  611. title: '请选挂起结束时间',
  612. icon: 'none'
  613. });
  614. return false;
  615. } else {
  616. const suspendTime = (suspendInfo.value?.['actionTime'] as string | null) ?? ''
  617. if (suspendTime != '' && realStartTime.value != '' && new Date(suspendTime) < new Date(realStartTime.value)) { // 开工前挂起
  618. if (resumeTime.value != '' && new Date(resumeTime.value) > new Date(realStartTime.value)) {
  619. uni.showToast({
  620. title: '开工前挂起结束时间晚于实际开始时间,请调整',
  621. icon: 'none'
  622. });
  623. return false;
  624. } else if(realEndTime.value != '' && resumeTime.value != '' && new Date(resumeTime.value) > new Date(realEndTime.value)) {
  625. uni.showToast({
  626. title: '开工前挂起结束时间晚于实际结束时间,请调整',
  627. icon: 'none'
  628. });
  629. return false;
  630. }
  631. } else if(suspendTime != '' && realStartTime.value != '' && new Date(suspendTime) >= new Date(realStartTime.value)) { // 作业中挂起
  632. if (resumeTime.value != '' && new Date(resumeTime.value) < new Date(realStartTime.value)) {
  633. uni.showToast({
  634. title: '作业中挂起结束时间早于实际开始时间,请调整',
  635. icon: 'none'
  636. });
  637. return false;
  638. } else if(realEndTime.value != '' && resumeTime.value != '' && new Date(resumeTime.value) > new Date(realEndTime.value)) {
  639. uni.showToast({
  640. title: '作业中挂起结束时间晚于实际结束时间,请调整',
  641. icon: 'none'
  642. });
  643. return false;
  644. }
  645. }
  646. }
  647. }
  648. // if (infoEntry.value == '2' && (workGroupMemberName.value == '' || selectedUsers.value.length == 0)) {
  649. // uni.showToast({
  650. // title: '请选择工作班成员',
  651. // icon: 'none'
  652. // });
  653. // return false;
  654. // }
  655. return true;
  656. };
  657. const isDealing = ref(false)
  658. const hasDealed = ref(false)
  659. // 提交表单
  660. const handleSubmit = async (): Promise<void> => {
  661. if (!validateForm()) {
  662. return;
  663. }
  664. submitLoading.value = true;
  665. try {
  666. if (isDealing.value || hasDealed.value) return // 双重保险
  667. isDealing.value = true
  668. // 确保附件URLs是最新的逗号分隔格式
  669. attachmentUrls.value = uploadedFiles.value.map(file => file.fileName).join(',');
  670. flowList.value = []
  671. if (resumeTime.value != '' && resumeInfo.value != null && resumeTime.value != (resumeInfo.value['actionTime'] as string | null)) { //存入新的挂起结束时间
  672. resumeInfo.value['actionTime'] = resumeTime.value
  673. flowList.value.push(resumeInfo.value as UTSJSONObject)
  674. }
  675. const finishData = {
  676. id: orderId.value,
  677. orderType: orderType.value,
  678. workOrderProjectNo: workOrderProjectNo.value,
  679. infoEntry: infoEntry.value,
  680. misNo: misNo.value,
  681. workPermitNum: workPermitNum.value,
  682. realStartTime: realStartTime.value,
  683. realEndTime: realEndTime.value,
  684. wwryNum: wwryNum.value,
  685. wlryNum: wlryNum.value,
  686. workGroupMemberName: workGroupMemberName.value,
  687. content: content.value,
  688. attachmentUrls: attachmentUrls.value,
  689. workOrderPersonList: workOrderPersonList.value,
  690. teamLeaderId: teamLeaderId.value,
  691. teamLeaderName: teamLeaderName.value,
  692. finalizeMethod: '2',
  693. workOrderStatus: 'completed',
  694. workOrderFlowList: flowList.value
  695. } as UTSJSONObject;
  696. const result = await finishOrder(finishData);
  697. const resultObj = result as UTSJSONObject;
  698. const code = resultObj['code'] as number;
  699. if (code == 200) {
  700. uni.showToast({
  701. title: '结单成功',
  702. icon: 'success'
  703. });
  704. hasDealed.value = true
  705. // 使用事件总线通知列表页面刷新
  706. uni.$emit('refreshOrderList', {});
  707. uni.$emit('refreshAssignedCount');
  708. uni.$emit('refreshOverdueCount');
  709. setTimeout(() => {
  710. uni.navigateBack();
  711. }, 800);
  712. } else {
  713. const msg = resultObj['msg'] as string;
  714. uni.showToast({
  715. title: msg.length > 0 ? msg : '结单失败',
  716. icon: 'none'
  717. });
  718. }
  719. } catch (error: Error) {
  720. uni.showToast({
  721. title: error.message,
  722. icon: 'none'
  723. });
  724. } finally {
  725. submitLoading.value = false;
  726. isDealing.value = false // 无论成功失败都解锁
  727. }
  728. };
  729. const loading = ref<boolean>(false)
  730. // 加载详情数据
  731. const loadDetail = async (id: string, orderType?: string): Promise<void> => {
  732. try {
  733. loading.value = true
  734. let result: any;
  735. // 根据orderType决定调用哪个API
  736. if (orderType == '1') {
  737. // 维修工单
  738. result = await getRepairOrderInfoById(id)
  739. } else {
  740. // 维保工单
  741. result = await getOrderInfoById(id)
  742. }
  743. // 提取响应数据
  744. const resultObj = result as UTSJSONObject
  745. const code = resultObj['code'] as number
  746. const data = resultObj['data'] as UTSJSONObject | null
  747. if (code == 200 && data != null) {
  748. workOrderStatus.value = (data['workOrderStatus'] as string | null) ?? ''
  749. workOrderProjectNo.value = (data['workOrderProjectNo'] as string | null) ?? ''
  750. pcsDeviceName.value = (data['pcsDeviceName'] as string | null) ?? ''
  751. gxtCenter.value = (data['gxtCenter'] as string | null) ?? ''
  752. pcsStationName.value = (data['pcsStationName'] as string | null) ?? ''
  753. brand.value = (data['brand'] as string | null) ?? ''
  754. model.value = (data['model'] as string | null) ?? ''
  755. acceptTime.value = (data['acceptTime'] as string | null) ?? ''
  756. acceptUserName.value = (data['acceptUserName'] as string | null) ?? ''
  757. // 初始化结单表单默认值
  758. infoEntry.value = '1' // 默认为手工录入
  759. teamLeaderId.value = (data['teamLeaderId'] as Number | null) ?? null
  760. teamLeaderName.value = (data['teamLeaderName'] as string | null) ?? ''
  761. returnType.value = workOrderStatus.value == 'to_finish' ? '1' : ''
  762. content.value = (data['content'] as string | null) ?? ''
  763. misNo.value = (data['misNo'] as string | null) ?? ''
  764. workPermitNum.value = (data['workPermitNum'] as string | null) ?? ''
  765. suspendReason.value = (data['suspendReason'] as string | null) ?? ''
  766. const queryParams = {
  767. misNo: misNo.value,
  768. } as UTSJSONObject;
  769. const result = await getMisInfoList(queryParams)
  770. // 提取响应数据
  771. const resultObj = result as UTSJSONObject
  772. const code = resultObj['code'] as number
  773. const misInfo = resultObj['rows'] as UTSJSONObject[] | null
  774. if (code == 200 && misInfo != null) {
  775. if(misInfo.length > 0) {
  776. realStartTime.value = (misInfo[0]['realStartTime'] as string | null) ?? ''
  777. realEndTime.value = (misInfo[0]['realEndTime'] as string | null) ?? ''
  778. // 查询相关工作班成员
  779. // await listWorkPerson(misNo.value).then(response => {
  780. // const responseObj = response as UTSJSONObject
  781. // const rows = responseObj['rows'] as UTSJSONObject[] | null
  782. // workOrderPersonList.value = rows ?? []
  783. // if (rows != null && rows.length > 0) {
  784. // // 查询负责人信息并回填
  785. // for (const person of workOrderPersonList.value) {
  786. // // 严格判断isLeader为1(兼容数字/字符串类型)
  787. // if (person.isLeader == 1) {
  788. // teamLeaderName.value = (person.nickName as string | null) ?? '';
  789. // break; // 找到后立即停止循环
  790. // }
  791. // }
  792. // const nickNames = rows
  793. // .map((person: UTSJSONObject) => (person['nickName'] as string | null) ?? '')
  794. // .join(',');
  795. // workGroupMemberName.value = nickNames;
  796. // }
  797. // })
  798. // 查询相关工作班成员
  799. listWorkPerson(misNo.value).then(response => {
  800. const responseObj = response as UTSJSONObject
  801. const rows = responseObj['rows'] as UTSJSONObject[] | null
  802. workOrderPersonList.value = rows ?? []
  803. if (rows != null && rows.length > 0) {
  804. // 查询负责人信息并回填
  805. for (const person of workOrderPersonList.value) {
  806. // 严格判断isLeader为1(兼容数字/字符串类型)
  807. if (person.isLeader == 1) {
  808. teamLeaderId.value = (person.userId as Number | null) ?? null;
  809. teamLeaderName.value = (person.nickName as string | null) ?? '';
  810. break; // 找到后立即停止循环
  811. }
  812. }
  813. const nickNames = rows
  814. .filter(person => person.isLeader != 1)
  815. .map(person => (person.nickName as string | null) ?? '')
  816. .join(',');
  817. workGroupMemberName.value = nickNames;
  818. workOrderPersonList.value.map(person => {
  819. // 构造查询参数:username 和 nickName
  820. const queryParams = {
  821. userName: person.userName, // 假设person对象有username字段
  822. nickName: person.nickName // 假设person对象有nickName字段
  823. };
  824. getUserList(queryParams).then(response => {
  825. const responseObj = response as UTSJSONObject
  826. const rows = responseObj['rows'] as UTSJSONObject[] | null
  827. if (rows == null || rows.length == 0) {
  828. let msg = "已匹配到MIS工单,但工作班成员'" + person.nickName + "'在系统中不存在,系统无法自动结单,请检查"
  829. if (person.isLeader == 1) {
  830. msg = "已匹配到MIS工单,但工作负责人'" + person.nickName + "'在系统中不存在,系统无法自动结单,请检查"
  831. }
  832. uni.showToast({
  833. title: msg,
  834. icon: 'none',
  835. duration: 3000 // 自定义显示时间,单位ms
  836. });
  837. }
  838. });
  839. })
  840. }
  841. })
  842. }
  843. flowList.value = data['workOrderFlowList'] as UTSJSONObject[]
  844. if (suspendReason.value != '' && flowList.value.length > 0) {
  845. // 获取最后一个 actionType 等于 'resume' 的项
  846. const lastResumeItem = flowList.value.findLast(item => item['actionType'] === 'resume') as UTSJSONObject | null
  847. if (lastResumeItem != null) {
  848. resumeInfo.value = lastResumeItem
  849. // 直接给 resumeTime 赋值,无需 formData
  850. resumeTime.value = (lastResumeItem['actionTime'] as string | null) ?? ''
  851. }
  852. const lastSuspendItem = flowList.value.findLast(item => (item['actionType'] as string | null) === 'to_approve') as UTSJSONObject | null
  853. if (lastSuspendItem != null) {
  854. suspendInfo.value = lastSuspendItem
  855. }
  856. }
  857. }
  858. } else {
  859. const msg = resultObj['msg'] as string | null
  860. uni.showToast({
  861. title: msg ?? '加载失败',
  862. icon: 'none'
  863. })
  864. }
  865. } catch (e) {
  866. uni.showToast({
  867. title: (e as Error).message ?? '加载失败',
  868. icon: 'none'
  869. })
  870. } finally {
  871. loading.value = false
  872. }
  873. }
  874. // 页面加载
  875. onLoad((options: any) => {
  876. const params = options as UTSJSONObject
  877. const id = params['id'] as string | null
  878. const orderTypeParam = params['orderType'] as string | null
  879. if (id != null && orderTypeParam != null) {
  880. // 先尝试从参数中获取orderType
  881. // const orderTypeNumber = parseInt(orderTypeParam)
  882. orderType.value = orderTypeParam
  883. orderId.value = id
  884. loadDetail(id, orderTypeParam)
  885. }
  886. })
  887. // 初始化
  888. onMounted(() => {
  889. getUserAllList();
  890. })
  891. </script>
  892. <style lang="scss">
  893. .detail-page {
  894. flex: 1;
  895. background-color: #e8f0f9;
  896. }
  897. .detail-content {
  898. flex: 1;
  899. padding: 20rpx 0;
  900. }
  901. .info-section {
  902. margin: 0 30rpx 24rpx;
  903. .section-title {
  904. position: relative;
  905. padding-left: 20rpx;
  906. margin-bottom: 20rpx;
  907. &::before {
  908. // content: '';
  909. position: absolute;
  910. left: 0;
  911. top: 50%;
  912. transform: translateY(-50%);
  913. width: 8rpx;
  914. height: 32rpx;
  915. background-color: #007aff;
  916. border-radius: 4rpx;
  917. }
  918. &-text {
  919. font-size: 32rpx;
  920. font-weight: bold;
  921. color: #333333;
  922. }
  923. }
  924. .info-card {
  925. background-color: #ffffff;
  926. border-radius: 16rpx;
  927. padding: 30rpx;
  928. .info-item {
  929. flex-direction: row;
  930. padding: 20rpx 0;
  931. border-bottom: 1rpx solid #f0f0f0;
  932. &:last-child {
  933. border-bottom: none;
  934. }
  935. &.full-width {
  936. flex-direction: column;
  937. .info-label {
  938. margin-bottom: 12rpx;
  939. }
  940. .info-value {
  941. line-height: 44rpx;
  942. }
  943. }
  944. .info-label {
  945. width: 240rpx;
  946. font-size: 28rpx;
  947. color: #666666;
  948. white-space: nowrap;
  949. }
  950. .info-value {
  951. flex: 1;
  952. font-size: 28rpx;
  953. color: #333333;
  954. text-align: left;
  955. &.highlight {
  956. color: #007aff;
  957. font-weight: bold;
  958. }
  959. &.input {
  960. text-align: left;
  961. border: 1rpx solid #e0e0e0;
  962. border-radius: 8rpx;
  963. padding: 10rpx;
  964. }
  965. .input-with-clear {
  966. position: relative;
  967. display: flex;
  968. align-items: center;
  969. }
  970. .select-clear {
  971. position: absolute;
  972. right: 20rpx;
  973. color: #ccc;
  974. text-align: center;
  975. font-size: 40rpx;
  976. font-weight: bold;
  977. z-index: 1;
  978. }
  979. }
  980. }
  981. .flow-item {
  982. padding: 20rpx 0;
  983. border-bottom: 1rpx solid #f0f0f0;
  984. &:last-child {
  985. border-bottom: none;
  986. }
  987. .flow-header {
  988. flex-direction: row;
  989. justify-content: space-between;
  990. margin-bottom: 10rpx;
  991. .flow-operator {
  992. font-size: 28rpx;
  993. color: #333333;
  994. font-weight: bold;
  995. }
  996. .flow-time {
  997. font-size: 24rpx;
  998. color: #999999;
  999. }
  1000. }
  1001. .flow-content {
  1002. flex-direction: column;
  1003. .flow-action {
  1004. font-size: 26rpx;
  1005. color: #666666;
  1006. margin-bottom: 8rpx;
  1007. }
  1008. .flow-remark {
  1009. font-size: 24rpx;
  1010. color: #999999;
  1011. background-color: #f5f5f5;
  1012. padding: 10rpx;
  1013. border-radius: 8rpx;
  1014. }
  1015. }
  1016. }
  1017. .no-data {
  1018. text-align: center;
  1019. padding: 40rpx 0;
  1020. font-size: 28rpx;
  1021. color: #999999;
  1022. }
  1023. }
  1024. }
  1025. .accept-button-container {
  1026. padding: 30rpx 30rpx 50rpx;
  1027. background-color: #ffffff;
  1028. .accept-button {
  1029. width: 100%;
  1030. height: 80rpx;
  1031. background-color: #007aff;
  1032. color: #ffffff;
  1033. font-size: 32rpx;
  1034. border-radius: 16rpx;
  1035. border: none;
  1036. &:active {
  1037. background-color: #0062cc;
  1038. }
  1039. }
  1040. }
  1041. .loading-mask {
  1042. position: absolute;
  1043. top: 0;
  1044. left: 0;
  1045. right: 0;
  1046. bottom: 0;
  1047. justify-content: center;
  1048. align-items: center;
  1049. background-color: rgba(0, 0, 0, 0.3);
  1050. .loading-text {
  1051. padding: 30rpx 60rpx;
  1052. background-color: rgba(0, 0, 0, 0.7);
  1053. color: #ffffff;
  1054. font-size: 28rpx;
  1055. border-radius: 12rpx;
  1056. }
  1057. }
  1058. .picker-modal {
  1059. position: fixed;
  1060. top: 0;
  1061. left: 0;
  1062. right: 0;
  1063. bottom: 0;
  1064. z-index: 1000;
  1065. }
  1066. .modal-mask {
  1067. position: absolute;
  1068. top: 0;
  1069. left: 0;
  1070. right: 0;
  1071. bottom: 0;
  1072. background-color: rgba(0, 0, 0, 0.5);
  1073. }
  1074. .modal-content {
  1075. position: absolute;
  1076. bottom: 0;
  1077. left: 0;
  1078. right: 0;
  1079. background-color: #ffffff;
  1080. border-top-left-radius: 16rpx;
  1081. border-top-right-radius: 16rpx;
  1082. min-height: 700rpx;
  1083. }
  1084. .modal-header {
  1085. flex-direction: row;
  1086. justify-content: space-between;
  1087. align-items: center;
  1088. padding: 30rpx;
  1089. border-bottom: 1rpx solid #f0f0f0;
  1090. }
  1091. .modal-title {
  1092. font-size: 32rpx;
  1093. font-weight: bold;
  1094. color: #333333;
  1095. }
  1096. .modal-close {
  1097. font-size: 28rpx;
  1098. color: #007aff;
  1099. }
  1100. .modal-body {
  1101. max-height: 800rpx;
  1102. min-height: 800rpx;
  1103. }
  1104. .picker-option {
  1105. flex-direction: row;
  1106. justify-content: space-between;
  1107. align-items: center;
  1108. padding: 24rpx 30rpx;
  1109. border-bottom: 1rpx solid #f0f0f0;
  1110. }
  1111. .picker-option.selected {
  1112. background-color: #f8f9fa;
  1113. }
  1114. .picker-option:last-child {
  1115. border-bottom: none;
  1116. }
  1117. .option-text {
  1118. font-size: 28rpx;
  1119. color: #333333;
  1120. margin-bottom: 10rpx;
  1121. }
  1122. .option-text:last-child {
  1123. margin-bottom: 0;
  1124. }
  1125. .option-check {
  1126. font-size: 28rpx;
  1127. color: #007aff;
  1128. }
  1129. .empty-tip {
  1130. justify-content: space-between;
  1131. padding: 24rpx 30rpx;
  1132. display: flex;
  1133. align-items: center;
  1134. justify-content: center;
  1135. color: #999;
  1136. }
  1137. .picker-option {
  1138. flex-direction: row;
  1139. justify-content: space-between;
  1140. align-items: center;
  1141. padding: 24rpx 30rpx;
  1142. border-bottom: 1rpx solid #f0f0f0;
  1143. }
  1144. .picker-option:last-child {
  1145. border-bottom: none;
  1146. }
  1147. .picker-option.selected {
  1148. background-color: #f8f9fa;
  1149. }
  1150. .option-text {
  1151. font-size: 28rpx;
  1152. color: #333333;
  1153. }
  1154. .mis-list {
  1155. flex: 1;
  1156. height: 100%;
  1157. display: flex;
  1158. flex-direction: column;
  1159. }
  1160. .empty-tip {
  1161. text-align: center;
  1162. padding: 40rpx;
  1163. color: #999;
  1164. font-size: 28rpx;
  1165. }
  1166. .form-item {
  1167. flex-direction: row;
  1168. padding: 20rpx 0;
  1169. border-bottom: 1rpx solid #f0f0f0;
  1170. }
  1171. .reject-reason-textarea {
  1172. width: 100%;
  1173. min-height: 100rpx;
  1174. line-height: 1.5;
  1175. }
  1176. .input-field {
  1177. width: 100%;
  1178. height: 60rpx;
  1179. padding: 0 20rpx;
  1180. border: 1rpx solid #e0e0e0;
  1181. border-radius: 8rpx;
  1182. font-size: 28rpx;
  1183. background-color: #f8f9fa;
  1184. }
  1185. .select-mis-btn {
  1186. width: 150rpx;
  1187. height: 60rpx;
  1188. margin-left: 10rpx;
  1189. background-color: #007aff;
  1190. color: #fff;
  1191. border: none;
  1192. border-radius: 8rpx;
  1193. font-size: 24rpx;
  1194. }
  1195. .textarea-field {
  1196. width: 100%;
  1197. min-height: 120rpx;
  1198. padding: 20rpx;
  1199. border: 1rpx solid #e0e0e0;
  1200. border-radius: 8rpx;
  1201. font-size: 28rpx;
  1202. background-color: #f8f9fa;
  1203. }
  1204. .radio-label {
  1205. display: flex;
  1206. align-items: center;
  1207. margin-right: 30rpx;
  1208. }
  1209. .quick-select-dropdown {
  1210. position: absolute;
  1211. top: 100%;
  1212. left: 0;
  1213. right: 0;
  1214. background: #fff;
  1215. border: 1rpx solid #ddd;
  1216. border-top: none;
  1217. z-index: 1000;
  1218. max-height: 300rpx;
  1219. }
  1220. .quick-select-item {
  1221. padding: 20rpx;
  1222. border-bottom: 1rpx solid #eee;
  1223. }
  1224. .mis-no {
  1225. font-size: 28rpx;
  1226. color: #333;
  1227. }
  1228. .search-bar {
  1229. padding: 20rpx 30rpx;
  1230. background-color: #d7eafe;
  1231. }
  1232. .search-box {
  1233. flex-direction: row;
  1234. align-items: center;
  1235. height: 72rpx;
  1236. padding: 0 24rpx;
  1237. background-color: #f5f5f5;
  1238. border-radius: 36rpx;
  1239. .search-icon {
  1240. width: 32rpx;
  1241. height: 32rpx;
  1242. margin-right: 12rpx;
  1243. }
  1244. .search-input {
  1245. flex: 1;
  1246. font-size: 28rpx;
  1247. color: #333333;
  1248. }
  1249. .clear-icon {
  1250. margin-left: 12rpx;
  1251. font-size: 28rpx;
  1252. color: #999999;
  1253. }
  1254. }
  1255. .mis-list {
  1256. flex: 1;
  1257. height: 100%;
  1258. display: flex;
  1259. flex-direction: column;
  1260. }
  1261. .select-users-count {
  1262. margin-left: 10rpx;
  1263. font-size: 24rpx;
  1264. color: #666;
  1265. }
  1266. </style>