wbBackfillFinalize.uvue 47 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424
  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.showModal({
  833. title: '提示',
  834. content: msg,
  835. showCancel: false, // 只显示确定按钮
  836. confirmText: '确定',
  837. confirmColor: '#007aff',
  838. success: (res) => {
  839. }
  840. });
  841. }
  842. });
  843. })
  844. }
  845. })
  846. }
  847. flowList.value = data['workOrderFlowList'] as UTSJSONObject[]
  848. if (suspendReason.value != '' && flowList.value.length > 0) {
  849. // 获取最后一个 actionType 等于 'resume' 的项
  850. const lastResumeItem = flowList.value.findLast(item => item['actionType'] === 'resume') as UTSJSONObject | null
  851. if (lastResumeItem != null) {
  852. resumeInfo.value = lastResumeItem
  853. // 直接给 resumeTime 赋值,无需 formData
  854. resumeTime.value = (lastResumeItem['actionTime'] as string | null) ?? ''
  855. }
  856. const lastSuspendItem = flowList.value.findLast(item => (item['actionType'] as string | null) === 'to_approve') as UTSJSONObject | null
  857. if (lastSuspendItem != null) {
  858. suspendInfo.value = lastSuspendItem
  859. }
  860. }
  861. }
  862. } else {
  863. const msg = resultObj['msg'] as string | null
  864. uni.showToast({
  865. title: msg ?? '加载失败',
  866. icon: 'none'
  867. })
  868. }
  869. } catch (e) {
  870. uni.showToast({
  871. title: (e as Error).message ?? '加载失败',
  872. icon: 'none'
  873. })
  874. } finally {
  875. loading.value = false
  876. }
  877. }
  878. // 页面加载
  879. onLoad((options: any) => {
  880. const params = options as UTSJSONObject
  881. const id = params['id'] as string | null
  882. const orderTypeParam = params['orderType'] as string | null
  883. if (id != null && orderTypeParam != null) {
  884. // 先尝试从参数中获取orderType
  885. // const orderTypeNumber = parseInt(orderTypeParam)
  886. orderType.value = orderTypeParam
  887. orderId.value = id
  888. loadDetail(id, orderTypeParam)
  889. }
  890. })
  891. // 初始化
  892. onMounted(() => {
  893. getUserAllList();
  894. })
  895. </script>
  896. <style lang="scss">
  897. .detail-page {
  898. flex: 1;
  899. background-color: #e8f0f9;
  900. }
  901. .detail-content {
  902. flex: 1;
  903. padding: 20rpx 0;
  904. }
  905. .info-section {
  906. margin: 0 30rpx 24rpx;
  907. .section-title {
  908. position: relative;
  909. padding-left: 20rpx;
  910. margin-bottom: 20rpx;
  911. &::before {
  912. // content: '';
  913. position: absolute;
  914. left: 0;
  915. top: 50%;
  916. transform: translateY(-50%);
  917. width: 8rpx;
  918. height: 32rpx;
  919. background-color: #007aff;
  920. border-radius: 4rpx;
  921. }
  922. &-text {
  923. font-size: 32rpx;
  924. font-weight: bold;
  925. color: #333333;
  926. }
  927. }
  928. .info-card {
  929. background-color: #ffffff;
  930. border-radius: 16rpx;
  931. padding: 30rpx;
  932. .info-item {
  933. flex-direction: row;
  934. padding: 20rpx 0;
  935. border-bottom: 1rpx solid #f0f0f0;
  936. &:last-child {
  937. border-bottom: none;
  938. }
  939. &.full-width {
  940. flex-direction: column;
  941. .info-label {
  942. margin-bottom: 12rpx;
  943. }
  944. .info-value {
  945. line-height: 44rpx;
  946. }
  947. }
  948. .info-label {
  949. width: 240rpx;
  950. font-size: 28rpx;
  951. color: #666666;
  952. white-space: nowrap;
  953. }
  954. .info-value {
  955. flex: 1;
  956. font-size: 28rpx;
  957. color: #333333;
  958. text-align: left;
  959. &.highlight {
  960. color: #007aff;
  961. font-weight: bold;
  962. }
  963. &.input {
  964. text-align: left;
  965. border: 1rpx solid #e0e0e0;
  966. border-radius: 8rpx;
  967. padding: 10rpx;
  968. }
  969. .input-with-clear {
  970. position: relative;
  971. display: flex;
  972. align-items: center;
  973. }
  974. .select-clear {
  975. position: absolute;
  976. right: 20rpx;
  977. color: #ccc;
  978. text-align: center;
  979. font-size: 40rpx;
  980. font-weight: bold;
  981. z-index: 1;
  982. }
  983. }
  984. }
  985. .flow-item {
  986. padding: 20rpx 0;
  987. border-bottom: 1rpx solid #f0f0f0;
  988. &:last-child {
  989. border-bottom: none;
  990. }
  991. .flow-header {
  992. flex-direction: row;
  993. justify-content: space-between;
  994. margin-bottom: 10rpx;
  995. .flow-operator {
  996. font-size: 28rpx;
  997. color: #333333;
  998. font-weight: bold;
  999. }
  1000. .flow-time {
  1001. font-size: 24rpx;
  1002. color: #999999;
  1003. }
  1004. }
  1005. .flow-content {
  1006. flex-direction: column;
  1007. .flow-action {
  1008. font-size: 26rpx;
  1009. color: #666666;
  1010. margin-bottom: 8rpx;
  1011. }
  1012. .flow-remark {
  1013. font-size: 24rpx;
  1014. color: #999999;
  1015. background-color: #f5f5f5;
  1016. padding: 10rpx;
  1017. border-radius: 8rpx;
  1018. }
  1019. }
  1020. }
  1021. .no-data {
  1022. text-align: center;
  1023. padding: 40rpx 0;
  1024. font-size: 28rpx;
  1025. color: #999999;
  1026. }
  1027. }
  1028. }
  1029. .accept-button-container {
  1030. padding: 30rpx 30rpx 50rpx;
  1031. background-color: #ffffff;
  1032. .accept-button {
  1033. width: 100%;
  1034. height: 80rpx;
  1035. background-color: #007aff;
  1036. color: #ffffff;
  1037. font-size: 32rpx;
  1038. border-radius: 16rpx;
  1039. border: none;
  1040. &:active {
  1041. background-color: #0062cc;
  1042. }
  1043. }
  1044. }
  1045. .loading-mask {
  1046. position: absolute;
  1047. top: 0;
  1048. left: 0;
  1049. right: 0;
  1050. bottom: 0;
  1051. justify-content: center;
  1052. align-items: center;
  1053. background-color: rgba(0, 0, 0, 0.3);
  1054. .loading-text {
  1055. padding: 30rpx 60rpx;
  1056. background-color: rgba(0, 0, 0, 0.7);
  1057. color: #ffffff;
  1058. font-size: 28rpx;
  1059. border-radius: 12rpx;
  1060. }
  1061. }
  1062. .picker-modal {
  1063. position: fixed;
  1064. top: 0;
  1065. left: 0;
  1066. right: 0;
  1067. bottom: 0;
  1068. z-index: 1000;
  1069. }
  1070. .modal-mask {
  1071. position: absolute;
  1072. top: 0;
  1073. left: 0;
  1074. right: 0;
  1075. bottom: 0;
  1076. background-color: rgba(0, 0, 0, 0.5);
  1077. }
  1078. .modal-content {
  1079. position: absolute;
  1080. bottom: 0;
  1081. left: 0;
  1082. right: 0;
  1083. background-color: #ffffff;
  1084. border-top-left-radius: 16rpx;
  1085. border-top-right-radius: 16rpx;
  1086. min-height: 700rpx;
  1087. }
  1088. .modal-header {
  1089. flex-direction: row;
  1090. justify-content: space-between;
  1091. align-items: center;
  1092. padding: 30rpx;
  1093. border-bottom: 1rpx solid #f0f0f0;
  1094. }
  1095. .modal-title {
  1096. font-size: 32rpx;
  1097. font-weight: bold;
  1098. color: #333333;
  1099. }
  1100. .modal-close {
  1101. font-size: 28rpx;
  1102. color: #007aff;
  1103. }
  1104. .modal-body {
  1105. max-height: 800rpx;
  1106. min-height: 800rpx;
  1107. }
  1108. .picker-option {
  1109. flex-direction: row;
  1110. justify-content: space-between;
  1111. align-items: center;
  1112. padding: 24rpx 30rpx;
  1113. border-bottom: 1rpx solid #f0f0f0;
  1114. }
  1115. .picker-option.selected {
  1116. background-color: #f8f9fa;
  1117. }
  1118. .picker-option:last-child {
  1119. border-bottom: none;
  1120. }
  1121. .option-text {
  1122. font-size: 28rpx;
  1123. color: #333333;
  1124. margin-bottom: 10rpx;
  1125. }
  1126. .option-text:last-child {
  1127. margin-bottom: 0;
  1128. }
  1129. .option-check {
  1130. font-size: 28rpx;
  1131. color: #007aff;
  1132. }
  1133. .empty-tip {
  1134. justify-content: space-between;
  1135. padding: 24rpx 30rpx;
  1136. display: flex;
  1137. align-items: center;
  1138. justify-content: center;
  1139. color: #999;
  1140. }
  1141. .picker-option {
  1142. flex-direction: row;
  1143. justify-content: space-between;
  1144. align-items: center;
  1145. padding: 24rpx 30rpx;
  1146. border-bottom: 1rpx solid #f0f0f0;
  1147. }
  1148. .picker-option:last-child {
  1149. border-bottom: none;
  1150. }
  1151. .picker-option.selected {
  1152. background-color: #f8f9fa;
  1153. }
  1154. .option-text {
  1155. font-size: 28rpx;
  1156. color: #333333;
  1157. }
  1158. .mis-list {
  1159. flex: 1;
  1160. height: 100%;
  1161. display: flex;
  1162. flex-direction: column;
  1163. }
  1164. .empty-tip {
  1165. text-align: center;
  1166. padding: 40rpx;
  1167. color: #999;
  1168. font-size: 28rpx;
  1169. }
  1170. .form-item {
  1171. flex-direction: row;
  1172. padding: 20rpx 0;
  1173. border-bottom: 1rpx solid #f0f0f0;
  1174. }
  1175. .reject-reason-textarea {
  1176. width: 100%;
  1177. min-height: 100rpx;
  1178. line-height: 1.5;
  1179. }
  1180. .input-field {
  1181. width: 100%;
  1182. height: 60rpx;
  1183. padding: 0 20rpx;
  1184. border: 1rpx solid #e0e0e0;
  1185. border-radius: 8rpx;
  1186. font-size: 28rpx;
  1187. background-color: #f8f9fa;
  1188. }
  1189. .select-mis-btn {
  1190. width: 150rpx;
  1191. height: 60rpx;
  1192. margin-left: 10rpx;
  1193. background-color: #007aff;
  1194. color: #fff;
  1195. border: none;
  1196. border-radius: 8rpx;
  1197. font-size: 24rpx;
  1198. }
  1199. .textarea-field {
  1200. width: 100%;
  1201. min-height: 120rpx;
  1202. padding: 20rpx;
  1203. border: 1rpx solid #e0e0e0;
  1204. border-radius: 8rpx;
  1205. font-size: 28rpx;
  1206. background-color: #f8f9fa;
  1207. }
  1208. .radio-label {
  1209. display: flex;
  1210. align-items: center;
  1211. margin-right: 30rpx;
  1212. }
  1213. .quick-select-dropdown {
  1214. position: absolute;
  1215. top: 100%;
  1216. left: 0;
  1217. right: 0;
  1218. background: #fff;
  1219. border: 1rpx solid #ddd;
  1220. border-top: none;
  1221. z-index: 1000;
  1222. max-height: 300rpx;
  1223. }
  1224. .quick-select-item {
  1225. padding: 20rpx;
  1226. border-bottom: 1rpx solid #eee;
  1227. }
  1228. .mis-no {
  1229. font-size: 28rpx;
  1230. color: #333;
  1231. }
  1232. .search-bar {
  1233. padding: 20rpx 30rpx;
  1234. background-color: #d7eafe;
  1235. }
  1236. .search-box {
  1237. flex-direction: row;
  1238. align-items: center;
  1239. height: 72rpx;
  1240. padding: 0 24rpx;
  1241. background-color: #f5f5f5;
  1242. border-radius: 36rpx;
  1243. .search-icon {
  1244. width: 32rpx;
  1245. height: 32rpx;
  1246. margin-right: 12rpx;
  1247. }
  1248. .search-input {
  1249. flex: 1;
  1250. font-size: 28rpx;
  1251. color: #333333;
  1252. }
  1253. .clear-icon {
  1254. margin-left: 12rpx;
  1255. font-size: 28rpx;
  1256. color: #999999;
  1257. }
  1258. }
  1259. .mis-list {
  1260. flex: 1;
  1261. height: 100%;
  1262. display: flex;
  1263. flex-direction: column;
  1264. }
  1265. .select-users-count {
  1266. margin-left: 10rpx;
  1267. font-size: 24rpx;
  1268. color: #666;
  1269. }
  1270. </style>