wbFinalize.uvue 67 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937
  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">{{ detailData.model ?? '' }}</text>
  33. </view> -->
  34. <view class="info-item">
  35. <text class="info-label">机型</text>
  36. <text class="info-value">{{ brand ?? '' }} {{ model ?? '' }}</text>
  37. </view>
  38. <view class="info-item">
  39. <text class="info-label">接单时间</text>
  40. <text class="info-value">{{ acceptTime ?? '' }}</text>
  41. </view>
  42. </view>
  43. </view>
  44. <!-- 结单表单 -->
  45. <view class="info-section">
  46. <view class="section-title">
  47. <text class="section-title-text">结单信息</text>
  48. </view>
  49. <view class="info-card">
  50. <!-- 信息录入 -->
  51. <view class="info-item">
  52. <view class="info-label">
  53. <text class="form-label required">信息录入<text style="color: red;">*</text></text>
  54. </view>
  55. <view class="info-value">
  56. <radio-group @change="handleInfoEntryChange" :disabled="infoEntryDisabled" class="uni-flex uni-row radio-group">
  57. <view v-for="(option, index) in infoEntryOptions" :key="index" class="radio-label">
  58. <radio :value="option.dictValue" :checked="infoEntry == option.dictValue">{{ option.dictLabel }}</radio>
  59. <!-- <text></text> -->
  60. </view>
  61. </radio-group>
  62. </view>
  63. </view>
  64. <!-- MIS工单编码选择(当信息录入为1时显示) -->
  65. <view class="info-item" v-if="infoEntry == '1'">
  66. <view class="info-label">
  67. <text class="form-label required">MIS工单编码<text style="color: red;">*</text></text>
  68. </view>
  69. <view class="info-value">
  70. <view class="input-with-select">
  71. <input
  72. class="input-field"
  73. placeholder="请输入或选择MIS工单编码"
  74. v-model="misNo"
  75. @focus="handleMisNoInputFocus"
  76. @blur="handleMisNoInputBlur"
  77. @input="handleMisNoInput"
  78. :readonly="infoEntry == '1'"
  79. :style="{ paddingRight: '120rpx' }" />
  80. <text class="select-mis-btn" @click="openMisListModal">选择</text>
  81. </view>
  82. </view>
  83. </view>
  84. <!-- 工作票编号(当信息录入为2时可编辑) -->
  85. <view class="info-item">
  86. <view class="info-label">
  87. <text class="form-label required">工作票编号<text style="color: red;">*</text></text>
  88. </view>
  89. <view class="info-value">
  90. <input
  91. class="input-field"
  92. placeholder="请输入工作票编号"
  93. v-model="workPermitNum"
  94. maxlength="20"
  95. :disabled="infoEntry == '1'"
  96. @change="handleWorkPermitNumChange"
  97. />
  98. </view>
  99. </view>
  100. <!-- 开始时间 -->
  101. <view class="info-item">
  102. <view class="info-label">
  103. <text class="form-label required">开始时间<text style="color: red;">*</text></text>
  104. </view>
  105. <view class="info-value">
  106. <view class="form-picker" @click="infoEntry == '1' ? showStartTimePicker = false : showStartTimePicker = true">
  107. <input
  108. class="input-field"
  109. placeholder="请选择开始时间"
  110. v-model="realStartTime"
  111. type="none"
  112. style="pointer-events: none;"
  113. />
  114. </view>
  115. </view>
  116. </view>
  117. <!-- 结束时间 -->
  118. <view class="info-item">
  119. <view class="info-label">
  120. <text class="form-label required">结束时间<text style="color: red;">*</text></text>
  121. </view>
  122. <view class="info-value">
  123. <view class="form-picker" @click="infoEntry == '1' ? showEndTimePicker = false : showEndTimePicker = true">
  124. <input
  125. class="input-field"
  126. placeholder="请选择结束时间"
  127. v-model="realEndTime"
  128. type="none"
  129. style="pointer-events: none;"
  130. />
  131. </view>
  132. </view>
  133. </view>
  134. <!-- 挂起结束时间 -->
  135. <view class="info-item" v-if="resumeInfo != null && resumeShow">
  136. <view class="info-label">
  137. <text class="form-label required">挂起结束时间<text style="color: red;">*</text></text>
  138. </view>
  139. <view class="info-value">
  140. <view class="form-picker" @click="showResumeTimePicker = true">
  141. <input
  142. class="input-field"
  143. placeholder="请选择挂起结束时间"
  144. v-model="resumeTime"
  145. type="none"
  146. />
  147. </view>
  148. </view>
  149. </view>
  150. <!-- 外委人员数 -->
  151. <view class="info-item">
  152. <view class="info-label">
  153. <text class="form-label required">外委人员数(人)</text>
  154. </view>
  155. <view class="info-value">
  156. <input
  157. type="number"
  158. class="input-field"
  159. placeholder="请输入外委人员数"
  160. v-model="wwryNum"
  161. @input="onWwryNumInput"
  162. />
  163. </view>
  164. </view>
  165. <!-- 外来人员数 -->
  166. <view class="info-item">
  167. <view class="info-label">
  168. <text class="form-label required">外来人员数(人)</text>
  169. </view>
  170. <view class="info-value">
  171. <input
  172. type="number"
  173. class="input-field"
  174. placeholder="请输入外来人员数"
  175. v-model="wlryNum"
  176. @input="onWlryNumInput"
  177. />
  178. </view>
  179. </view>
  180. <!-- 工作负责人 -->
  181. <view class="info-item">
  182. <view class="info-label">
  183. <text class="form-label required">工作负责人<text style="color: red;">*</text></text>
  184. </view>
  185. <view class="info-value">
  186. <view class="input-with-clear">
  187. <input
  188. class="input-field"
  189. placeholder="请选择工作负责人"
  190. v-model="teamLeaderName"
  191. @click="showLeaderPicker = true"
  192. :disabled="infoEntry == '1'"
  193. />
  194. </view>
  195. </view>
  196. </view>
  197. <!-- 工作班成员选择(当信息录入为2时可编辑) -->
  198. <view class="info-item">
  199. <view class="info-label">
  200. <text class="form-label required">工作班成员<text style="color: red;">*</text></text>
  201. </view>
  202. <view class="info-value">
  203. <view class="input-with-clear">
  204. <input
  205. class="input-field"
  206. placeholder="请选择工作班成员"
  207. v-model="workGroupMemberName"
  208. @click="showUserSelect = true"
  209. :disabled="infoEntry == '1'"
  210. />
  211. <!-- <text class="select-users-count" v-if="selectedUserIds.length > 0" :style="{ marginRight: selectedUserIds.length > 0 ? '60rpx' : '0' }">({{ selectedUserIds.length }}人)</text> -->
  212. <text class="select-clear" v-if="selectedUserIds.length > 0" @click="clearSelectedUsers">×</text>
  213. </view>
  214. </view>
  215. </view>
  216. <!-- 维保内容 -->
  217. <view class="info-item full-width">
  218. <view class="info-label">
  219. <text class="form-label required">维保内容<text style="color: red;">*</text></text>
  220. </view>
  221. <view class="info-value">
  222. <textarea
  223. class="textarea-field"
  224. placeholder="请输入维保内容"
  225. v-model="content"
  226. maxlength="500"
  227. :disabled="infoEntry == '1'"
  228. :show-confirm-bar="false"
  229. auto-height
  230. ></textarea>
  231. </view>
  232. </view>
  233. <!-- 附件上传 -->
  234. <view class="info-item full-width">
  235. <view class="info-label">
  236. <text class="form-label">附件(可选)</text>
  237. </view>
  238. <view class="info-value">
  239. <upload-image
  240. :limit="8"
  241. :modelValue="uploadedFiles"
  242. :businessType="'workOrder'"
  243. @update:modelValue="uploadedFiles = $event as UTSArray<UploadResponse>"
  244. />
  245. </view>
  246. </view>
  247. </view>
  248. </view>
  249. <!-- 时间选择器弹窗 -->
  250. <!-- Start Date Picker -->
  251. <l-popup v-model="showStartTimePicker" position="bottom">
  252. <l-date-time-picker
  253. title="选择开始时间"
  254. :mode="1 | 2 | 4 | 8 | 16"
  255. format="YYYY-MM-DD HH:mm"
  256. :modelValue="realStartTime"
  257. confirm-btn="确定"
  258. cancel-btn="取消"
  259. @confirm="onStartDateConfirm"
  260. @cancel="showStartTimePicker = false">
  261. </l-date-time-picker>
  262. </l-popup>
  263. <!-- End Date Picker -->
  264. <l-popup v-model="showEndTimePicker" position="bottom">
  265. <l-date-time-picker
  266. title="选择结束时间"
  267. :mode="31"
  268. format="YYYY-MM-DD HH:mm"
  269. :modelValue="realEndTime"
  270. confirm-btn="确定"
  271. cancel-btn="取消"
  272. @confirm="onEndDateConfirm"
  273. @cancel="showEndTimePicker = false">
  274. </l-date-time-picker>
  275. </l-popup>
  276. <l-popup v-model="showResumeTimePicker" position="bottom" :safe-area-inset-bottom="true" :z-index="10000">
  277. <l-date-time-picker
  278. title="选择挂起结束时间"
  279. :mode="31"
  280. format="YYYY-MM-DD HH:mm"
  281. :modelValue="resumeTime"
  282. confirm-btn="确定"
  283. cancel-btn="取消"
  284. @confirm="onResumeTimeConfirm"
  285. @cancel="showResumeTimePicker = false">
  286. </l-date-time-picker>
  287. </l-popup>
  288. <!-- 人员选择弹窗 -->
  289. <view v-if="showUserSelect" class="picker-modal">
  290. <view class="modal-mask" @click="showUserSelect = false"></view>
  291. <view class="modal-content">
  292. <view class="modal-header">
  293. <text class="modal-title">选择工作班成员</text>
  294. <text class="modal-close" @click="confirmSelectedUsers">确定</text>
  295. </view>
  296. <view class="search-bar">
  297. <view class="search-box">
  298. <image class="search-icon" src="/static/images/workbench/list/1.png" mode="aspectFit"></image>
  299. <input class="search-input" type="text" placeholder="搜索姓名" v-model="userKeyword" @input="handleUserSearch" />
  300. <text v-if="userKeyword.length > 0" class="clear-icon" @click="clearUserSearch">✕</text>
  301. </view>
  302. </view>
  303. <scroll-view class="modal-body" scroll-y="true">
  304. <view
  305. v-for="(user, index) in userList"
  306. :key="index"
  307. class="picker-option"
  308. @click="toggleUserSelection(user)"
  309. >
  310. <text class="option-text">{{ (user['nickName'] as string | null) ?? '' }}</text>
  311. <text class="option-text">{{ ((user['dept'] as UTSJSONObject | null)?.['deptName'] as string | null) ?? '' }}</text>
  312. <text class="option-check" v-if="isSelected(user)">✓</text>
  313. </view>
  314. </scroll-view>
  315. </view>
  316. </view>
  317. <!-- MIS工单列表弹窗 -->
  318. <view v-if="showMisListModal" class="picker-modal">
  319. <view class="modal-mask" @click="closeMisListModal"></view>
  320. <view class="modal-content">
  321. <view class="modal-header">
  322. <text class="modal-title">选择MIS工单</text>
  323. <text class="modal-close" @click="closeMisListModal">取消</text>
  324. </view>
  325. <!-- 搜索栏 -->
  326. <view class="search-bar">
  327. <view class="search-box">
  328. <image class="search-icon" src="/static/images/workbench/list/1.png" mode="aspectFit"></image>
  329. <input class="search-input" type="text" placeholder="搜索 MIS工单编码" v-model="misListKeyword" @input="searchMisList" />
  330. <text v-if="misListKeyword.length > 0" class="clear-icon" @click="clearMisListSearch">✕</text>
  331. </view>
  332. </view>
  333. <!-- 列表内容 -->
  334. <scroll-view class="modal-body" scroll-y="true">
  335. <!-- 有数据时显示列表 -->
  336. <view v-if="misList.length > 0">
  337. <view
  338. v-for="(item, index) in misList"
  339. :key="index"
  340. class="picker-option"
  341. @click="selectMisItem(item, index)"
  342. >
  343. <view>
  344. <text class="option-text">MIS工单编码</text>
  345. <text class="option-text">工作票编号</text>
  346. </view>
  347. <view>
  348. <text class="option-text">{{ ((item['misNo'] as string | null) ?? '-')}}</text>
  349. <text class="option-text">{{ item['workPermitNum'] as string | null ?? '-' }}</text>
  350. </view>
  351. <text v-if="index === selectedMisInfoIndex" class="option-check">✓</text>
  352. </view>
  353. </view>
  354. <!-- 无数据时显示提示 -->
  355. <view v-else class="empty-tip">
  356. <text>未找到匹配的MIS工单</text>
  357. </view>
  358. </scroll-view>
  359. </view>
  360. </view>
  361. <!-- 工作负责人弹窗 -->
  362. <view v-if="showLeaderPicker" class="picker-modal">
  363. <view class="modal-mask" @click="showLeaderPicker = false"></view>
  364. <view class="modal-content">
  365. <view class="modal-header">
  366. <text class="modal-title">选择工作负责人</text>
  367. <text class="modal-close" @click="showLeaderPicker = false">取消</text>
  368. </view>
  369. <view class="search-bar">
  370. <view class="search-box">
  371. <image class="search-icon" src="/static/images/workbench/list/1.png" mode="aspectFit"></image>
  372. <input class="search-input" type="text" placeholder="搜索姓名" v-model="teamKeyword" @input="handleSearch" />
  373. <text v-if="teamKeyword.length > 0" class="clear-icon" @click="clearSearch">✕</text>
  374. </view>
  375. </view>
  376. <scroll-view class="modal-body" scroll-y="true">
  377. <!-- 有数据时显示列表 -->
  378. <view v-if="teamLeaderList.length > 0">
  379. <view
  380. v-for="(user, index) in teamLeaderList"
  381. :key="index"
  382. class="picker-option"
  383. :class="{ 'selected': index === selectedTeamLeaderIndex }"
  384. @click="selectLeaderManually(user, index)"
  385. >
  386. <view class="info-row">
  387. <text class="option-text">{{ (user['nickName'] as string | null) ?? '' }}</text>
  388. </view>
  389. <text class="option-text">{{ ((user['dept'] as UTSJSONObject | null)?.['deptName'] as string | null) ?? '' }}</text>
  390. <text v-if="index === selectedTeamLeaderIndex" class="option-check">✓</text>
  391. </view>
  392. </view>
  393. <!-- 无数据时显示提示 -->
  394. <view v-else class="empty-tip">
  395. <text>未找到匹配的人员</text>
  396. </view>
  397. </scroll-view>
  398. </view>
  399. </view>
  400. </scroll-view>
  401. <!-- 确认结单按钮 -->
  402. <view class="accept-button-container">
  403. <button class="accept-button" @click="handleSubmit" :loading="submitLoading">{{ submitLoading ? '提交中...' : '确认结单' }}</button>
  404. </view>
  405. <!-- 加载中状态 -->
  406. <view v-if="loading" class="loading-mask">
  407. <text class="loading-text">加载中...</text>
  408. </view>
  409. </view>
  410. </template>
  411. <script setup lang="uts">
  412. import { ref, watch } from 'vue'
  413. import type { acceptOrderInfo } from '../../../types/order'
  414. import type { WorkOrderFlow } from '../../../types/flow'
  415. import { getOrderInfoById, getRepairOrderInfoById, returnRepairOrder, finishOrder } from '../../../api/order/detail'
  416. import { getMisInfoList, listWorkPerson, getOrderList, listAutoMisInfo, allListOrder } from '../../../api/order/list'
  417. import type { SysDictData } from '../../../types/dict'
  418. import { getDictDataByType } from '../../../api/dict/index'
  419. import type { UserInfo } from '../../../types/user'
  420. import type { UploadResponse } from '../../../types/workbench'
  421. import {checkPermi} from '../../../utils/storage'
  422. import { getUserList, getLeaderList } from '../../../api/user/list'
  423. import uploadImage from '../../../components/upload-image/upload-image.uvue'
  424. // 工单信息
  425. const orderId = ref<string>('')
  426. const workOrderProjectNo = ref<string>('')
  427. const workOrderStatus = ref<string>('')
  428. const orderType = ref<string>('')
  429. const pcsDeviceName = ref<string>('')
  430. const gxtCenter = ref<string>('')
  431. const pcsStationName = ref<string>('')
  432. const brand = ref<string>('')
  433. const model = ref<string>('')
  434. const acceptTime = ref<string>('')
  435. const returnType = ref<string>('')
  436. const returnReason = ref<string>("")
  437. const returnTypeLabel = ref<string>("")
  438. const acceptReturnType = ref<string>('')
  439. const acceptReturnReason = ref<string>("")
  440. const teamLeaderId = ref<Number | null>(null)
  441. const teamLeaderName = ref<string>('')
  442. const pauseTime = ref<string>('')
  443. const restartTime = ref<string>('')
  444. // 添加字典加载状态
  445. const dictLoaded = ref<boolean>(false)
  446. // 结单表单相关变量
  447. const infoEntry = ref<string>('') // 信息录入
  448. const misNo = ref<string>('') // MIS工单编码
  449. const workPermitNum = ref<string>('') // 工作票编号
  450. const realStartTime = ref<string>('') // 开始时间
  451. const realEndTime = ref<string>('') // 结束时间
  452. const wwryNum = ref<string>('') // 外委人员数
  453. const wlryNum = ref<string>('') // 外来人员数
  454. const workGroupMemberName = ref<string>('') // 工作班成员
  455. const content = ref<string>('') // 维保内容
  456. const attachmentUrls = ref<string>('') // 附件URLs(逗号分隔的字符串格式)
  457. const uploadedFiles = ref<UploadResponse[]>([]) // 上传的文件对象数组
  458. const workOrderPersonList = ref<UTSJSONObject[]>([]) // 工作班成员数组
  459. const selectedUserIds = ref<string[]>([]) // 选中的用户ID数组
  460. const selectedUsers = ref<UTSJSONObject[]>([]) // 选中的用户对象数组
  461. // 时间选择器相关变量
  462. const showStartTimePicker = ref<boolean>(false)
  463. const showEndTimePicker = ref<boolean>(false)
  464. const startTimeDate = ref<string>('')
  465. const startTimeTime = ref<string>('')
  466. const endTimeDate = ref<string>('')
  467. const endTimeTime = ref<string>('')
  468. // MIS工单选择相关变量
  469. const showMisNoQuickSelect = ref<boolean>(false)
  470. const quickMisNoList = ref<UTSJSONObject[]>([])
  471. // 添加MIS工单列表弹窗显示状态
  472. const showMisListModal = ref<boolean>(false)
  473. // MIS工单列表数据
  474. const misList = ref<UTSJSONObject[]>([])
  475. const allMisList = ref<UTSJSONObject[]>([])
  476. // 分页信息
  477. const misListPage = ref<number>(1)
  478. const misListPageSize = ref<number>(999)
  479. const misListTotal = ref<number>(0)
  480. // 搜索关键词
  481. const misListKeyword = ref<string>('')
  482. const userKeyword = ref<string>('')
  483. // 人员选择相关变量
  484. const showUserSelect = ref<boolean>(false)
  485. const userList = ref<UTSJSONObject[]>([])
  486. const userAllList = ref<UTSJSONObject[]>([])
  487. // 信息录入选项
  488. const infoEntryOptions = ref<SysDictData[]>([])
  489. const selectedMisInfoIndex = ref<number>(-1)
  490. // 选中的负责人信息
  491. const selectedTeamLeaderName = ref<string>('')
  492. const selectedTeamLeaderIndex = ref<number>(-1)
  493. const showLeaderPicker = ref<boolean>(false)
  494. const teamLeaderList = ref<UTSJSONObject[]>([])
  495. const teamAllLeaderList = ref<UTSJSONObject[]>([])
  496. let teamKeyword = ref<string>("")
  497. //挂起结束时间
  498. const suspendReason = ref<string>('') // 挂起原因
  499. const flowList = ref<UTSJSONObject[]>([]) //流转过程
  500. const suspendInfo = ref<UTSJSONObject | null>(null)
  501. const resumeInfo = ref<UTSJSONObject | null>(null)
  502. const resumeShow = ref<boolean>(false)
  503. const resumeTime = ref<string>('') // 挂起结束时间
  504. const showResumeTimePicker = ref<boolean>(false)
  505. // 监听开始时间和结束时间变化
  506. watch(realStartTime, (value: string) => {
  507. console.log('开始时间变化:', value)
  508. // 在这里添加开始时间变化时的处理逻辑
  509. if (resumeInfo.value != null && value != '') {
  510. const suspendTime = (suspendInfo.value?.['actionTime'] as string | null) ?? ''
  511. if (suspendTime != '' && value != '') {
  512. const suspendDate = new Date(suspendTime)
  513. const startDate = new Date(value)
  514. if (suspendDate.getTime() < startDate.getTime()) { // 开工前挂起
  515. const resumeDate = new Date(resumeTime.value)
  516. const endDate = new Date(realEndTime.value)
  517. if (resumeDate.getTime() > startDate.getTime() || (realEndTime.value != '' && resumeDate.getTime() > endDate.getTime())) {
  518. resumeShow.value = true
  519. } else {
  520. resumeShow.value = false
  521. }
  522. } else if (suspendDate.getTime() >= startDate.getTime()) { // 作业中挂起
  523. const resumeDate = new Date(resumeTime.value)
  524. const endDate = new Date(realEndTime.value)
  525. if (resumeDate.getTime() < startDate.getTime() || (realEndTime.value != '' && resumeDate.getTime() > endDate.getTime())) {
  526. resumeShow.value = true
  527. } else {
  528. resumeShow.value = false
  529. }
  530. } else {
  531. resumeShow.value = false
  532. }
  533. } else {
  534. resumeShow.value = false
  535. }
  536. }
  537. })
  538. watch(realEndTime, (value: string) => {
  539. console.log('结束时间变化:', value)
  540. // 在这里添加结束时间变化时的处理逻辑
  541. if (resumeInfo.value != null && value != '') {
  542. const suspendTime = (suspendInfo.value?.['actionTime'] as string | null) ?? ''
  543. if (suspendTime != '' && realStartTime.value != '' && new Date(suspendTime).getTime() < new Date(realStartTime.value).getTime()) { // 开工前挂起
  544. if (value != '' && resumeTime.value != '' && new Date(resumeTime.value).getTime() > new Date(realStartTime.value).getTime()) {
  545. resumeShow.value = true
  546. } else if(value != '' && resumeTime.value != '' && new Date(resumeTime.value).getTime() > new Date(value).getTime()) {
  547. resumeShow.value = true
  548. } else {
  549. resumeShow.value = false
  550. }
  551. } else if(suspendTime != '' && realStartTime.value != '' && new Date(suspendTime).getTime() >= new Date(realStartTime.value).getTime()) { // 作业中挂起
  552. if (realStartTime.value != '' && resumeTime.value != '' && new Date(resumeTime.value).getTime() < new Date(realStartTime.value).getTime()) {
  553. resumeShow.value = true
  554. } else if(value != '' && resumeTime.value != '' && new Date(resumeTime.value).getTime() > new Date(value).getTime()) {
  555. resumeShow.value = true
  556. } else {
  557. resumeShow.value = false
  558. }
  559. } else {
  560. resumeShow.value = false
  561. }
  562. }
  563. })
  564. // 获取信息录入字典列表
  565. const loadInfoEntryDictList = async (): Promise<void> => {
  566. try {
  567. const result = await getDictDataByType('gxt_info_entry') // 假设信息录入类型字典类型为gxt_info_entry
  568. const resultObj = result as UTSJSONObject
  569. if (resultObj['code'] == 200) {
  570. const data = resultObj['data'] as any[]
  571. const dictData: SysDictData[] = []
  572. if (data.length > 0) {
  573. for (let i = 0; i < data.length; i++) {
  574. const item = data[i] as UTSJSONObject
  575. // 只提取需要的字段
  576. const dictItem: SysDictData = {
  577. dictValue: item['dictValue'] as string | null,
  578. dictLabel: item['dictLabel'] as string | null,
  579. dictCode: null,
  580. dictSort: null,
  581. dictType: null,
  582. cssClass: null,
  583. listClass: null,
  584. isDefault: null,
  585. status: null,
  586. default: null,
  587. createTime: null,
  588. remark: null
  589. }
  590. dictData.push(dictItem)
  591. }
  592. }
  593. infoEntryOptions.value = dictData
  594. }
  595. } catch (e: any) {
  596. console.error('获取信息录入类型字典失败:', e.message)
  597. // 设置默认值
  598. infoEntryOptions.value = [
  599. { dictValue: '1', dictLabel: 'MIS工单', dictCode: null, dictSort: null, dictType: null, cssClass: null, listClass: null, isDefault: null, status: null, default: null, createTime: null, remark: null },
  600. { dictValue: '2', dictLabel: '手工录入', dictCode: null, dictSort: null, dictType: null, cssClass: null, listClass: null, isDefault: null, status: null, default: null, createTime: null, remark: null }
  601. ];
  602. }
  603. }
  604. // 获取用户列表
  605. const getUserAllList = async (): Promise<void> => {
  606. try {
  607. // 这里应该调用获取用户列表的API
  608. const result = await getLeaderList(-1); // 空参数调用
  609. const resultObj = result as UTSJSONObject;
  610. const code = resultObj['code'] as number
  611. const users = resultObj['data'] as UTSJSONObject[] | null
  612. if (code == 200 && users != null ) {
  613. // 解析列表数据
  614. // const rows = resultObj['rows'] as UTSJSONObject[]
  615. userList.value = users;
  616. userAllList.value = users
  617. teamLeaderList.value = users
  618. teamAllLeaderList.value = users
  619. // userList.value = result.data || [];
  620. }
  621. } catch (error) {
  622. console.error('获取用户列表失败:', error);
  623. uni.showToast({
  624. title: '获取用户列表失败',
  625. icon: 'none'
  626. });
  627. }
  628. };
  629. // 外委人员数输入处理
  630. const onWwryNumInput = (): void => {
  631. let value = wwryNum.value;
  632. // 移除非数字字符,包括负号和小数点
  633. value = value.replace(/[^0-9]/g, '');
  634. wwryNum.value = value;
  635. };
  636. // 外来人员数输入处理
  637. const onWlryNumInput = (): void => {
  638. let value = wlryNum.value;
  639. // 移除非数字字符,包括负号和小数点
  640. value = value.replace(/[^0-9]/g, '');
  641. wlryNum.value = value;
  642. };
  643. // 验证和提交
  644. const submitLoading = ref<boolean>(false)
  645. // 信息录入禁用状态
  646. const infoEntryDisabled = ref<boolean>(false)
  647. // 接受用户名
  648. const acceptUserName = ref<string>('')
  649. // 选择器选项类型
  650. type PickerOption = {
  651. label: string
  652. value: string
  653. }
  654. // 手动选择负责人
  655. const selectLeaderManually = (user: UTSJSONObject, index: number): void => {
  656. selectedTeamLeaderIndex.value = index
  657. const uid = user['userId']
  658. if (uid != null) {
  659. teamLeaderId.value = uid as Number
  660. }
  661. const name = user['nickName']
  662. teamLeaderName.value = name != null ? name.toString() : ''
  663. showLeaderPicker.value = false
  664. }
  665. // 信息录入变化处理
  666. const handleInfoEntryChange = (e: UniRadioGroupChangeEvent): void => {
  667. // 兼容 radio-group 事件:detail 可能不存在,直接取 e.value
  668. const val = e.detail?.value as string | null
  669. infoEntry.value = val ?? ''
  670. if (infoEntry.value == '1') {
  671. // 当选择MIS工单时,清空手工录入的字段
  672. workPermitNum.value = '';
  673. realStartTime.value = '';
  674. realEndTime.value = '';
  675. workGroupMemberName.value = '';
  676. }
  677. };
  678. // 工作票编号变化处理
  679. const handleWorkPermitNumChange = async(): Promise<void> => {
  680. if (infoEntry.value == '2') {
  681. // 查询工作票编号是否已存在
  682. const queryParams = {
  683. workPermitNum: workPermitNum.value,
  684. } as UTSJSONObject;
  685. const response = await allListOrder(queryParams)
  686. const responseObj = response as UTSJSONObject
  687. const rows = responseObj['rows'] as UTSJSONObject[] | null
  688. if (rows != null && rows.length > 0) {
  689. uni.showToast({ title: '工作票编号:' + workPermitNum.value + '已存在', icon: 'none' })
  690. workPermitNum.value = ''
  691. return
  692. }
  693. }
  694. };
  695. // MIS工单编码输入处理
  696. const handleMisNoInputFocus = (): void => {
  697. showMisNoQuickSelect.value = true;
  698. };
  699. const handleMisNoInputBlur = (): void => {
  700. setTimeout(() => {
  701. showMisNoQuickSelect.value = false;
  702. }, 200);
  703. };
  704. const handleMisNoInput = (e: SysDictData): void => {
  705. // misNo.value = (e['detail'] as string | null) ?? '';
  706. // 这里可以添加实时搜索MIS工单的逻辑
  707. };
  708. const handleMisNoClear = (): void => {
  709. misNo.value = '';
  710. showMisNoQuickSelect.value = false;
  711. };
  712. const handleMisNoQuickSelect = (item: UTSJSONObject): void => {
  713. misNo.value = (item['misNo'] as string | null) ?? '';
  714. showMisNoQuickSelect.value = false;
  715. };
  716. // 获取MIS工单列表
  717. const getMisList = async (): Promise<void> => {
  718. try {
  719. const queryParams = {
  720. pcsDeviceName: pcsDeviceName.value,
  721. pcsStationName: pcsStationName.value,
  722. workOrderStatus: '结束'
  723. } as UTSJSONObject;
  724. // 调用获取MIS工单列表的API
  725. const result = await getMisInfoList(queryParams);
  726. const resultObj = result as UTSJSONObject;
  727. if (resultObj['code'] == 200) {
  728. // 解析列表数据
  729. const rows = resultObj['rows'] as UTSJSONObject[]
  730. misList.value = rows;
  731. allMisList.value = rows
  732. // 解析总数
  733. misListTotal.value = resultObj['total'] as number;
  734. } else {
  735. const msg = resultObj['msg'] as string | null
  736. uni.showToast({
  737. title: msg ?? '获取MIS工单列表失败',
  738. icon: 'none'
  739. })
  740. }
  741. } catch (error: any) {
  742. console.error('获取MIS工单列表失败:', error);
  743. uni.showToast({
  744. title: error.message ?? '获取MIS工单列表失败',
  745. icon: 'none'
  746. });
  747. }
  748. };
  749. // 打开MIS工单选择弹窗
  750. const openMisListModal = (): void => {
  751. showMisListModal.value = true;
  752. misListPage.value = 1; // 重置为第一页
  753. getMisList(); // 获取列表数据
  754. };
  755. // 选择MIS工单
  756. const selectMisItem = async (item: UTSJSONObject, index: number): Promise<void> => {
  757. selectedMisInfoIndex.value = index
  758. // 回填MIS工单相关信息
  759. misNo.value = item['misNo'] as string | '';
  760. // 查询MIS工单是否已存在
  761. const response = await getOrderList(1, 10, misNo.value, '')
  762. const responseObj = response as UTSJSONObject
  763. const rows = responseObj['rows'] as UTSJSONObject[] | null
  764. if (rows != null && rows.length > 0) {
  765. uni.showToast({ title: '该MIS工单已被其他工单关联!请重新选择!', icon: 'none' })
  766. misNo.value = ''
  767. return
  768. }
  769. // 查询相关工作班成员
  770. await listWorkPerson(misNo.value).then(response => {
  771. const responseObj = response as UTSJSONObject
  772. const rows = responseObj['rows'] as UTSJSONObject[] | null
  773. workOrderPersonList.value = rows ?? []
  774. if (rows != null && rows.length > 0) {
  775. // 查找 isLeader 等于 1 的负责人(优先获取第一个符合条件的,贴合常规单负责人场景)
  776. const leaderPerson = rows.find(person => person.isLeader == 1);
  777. if(leaderPerson != null) {
  778. teamLeaderId.value = (leaderPerson['userId'] as Number | null) ?? null
  779. teamLeaderName.value = (leaderPerson['nickName'] as string | null) ?? ''
  780. }
  781. const nickNames = rows
  782. .filter(person => person.isLeader != 1)
  783. .map(person => (person.nickName as string | null) ?? '')
  784. .join(',');
  785. workGroupMemberName.value = nickNames;
  786. }
  787. })
  788. workPermitNum.value = item['workPermitNum'] as string | '';
  789. realStartTime.value = item['realStartTime'] as string | '';
  790. realEndTime.value = item['realEndTime'] as string | '';
  791. // 关闭弹窗
  792. showMisListModal.value = false;
  793. };
  794. // 搜索
  795. const handleUserSearch = (): void => {
  796. const keyword = userKeyword.value
  797. userList.value = userAllList.value.filter(leader => {
  798. const nickName = leader['nickName'] as string | null
  799. return nickName != null && nickName.indexOf(keyword) >= 0
  800. })
  801. }
  802. // 关闭MIS工单选择弹窗
  803. const closeMisListModal = (): void => {
  804. showMisListModal.value = false;
  805. };
  806. // 搜索
  807. const searchMisList = (): void => {
  808. const keyword = misListKeyword.value
  809. misList.value = allMisList.value.filter(misInfo => {
  810. const misNo = misInfo['misNo'] as string | null
  811. // return misNo != null && misNo.indexOf(keyword) >= 0
  812. const workPermitNum = misInfo['workPermitNum'] as string | null
  813. // 逻辑或(||)连接两个条件,满足其一即可
  814. const misNoMatch = misNo != null && misNo.indexOf(keyword) >= 0
  815. const workPermitNumMatch = workPermitNum != null && workPermitNum.indexOf(keyword) >= 0
  816. return misNoMatch || workPermitNumMatch
  817. })
  818. }
  819. // 清除MIS工单搜索
  820. const clearMisListSearch = (): void => {
  821. misListKeyword.value = "";
  822. misList.value = allMisList.value
  823. };
  824. // 清除用户搜索
  825. const clearUserSearch = (): void => {
  826. userKeyword.value = "";
  827. userList.value = userAllList.value
  828. };
  829. // 搜索工作负责人
  830. const handleSearch = (): void => {
  831. const keyword = teamKeyword.value
  832. teamLeaderList.value = teamAllLeaderList.value.filter(leader => {
  833. const nickName = leader['nickName'] as string | null
  834. return nickName != null && nickName.indexOf(keyword) >= 0
  835. })
  836. }
  837. // 清空搜索工作负责人
  838. const clearSearch = (): void => {
  839. teamKeyword.value = ""
  840. teamLeaderList.value = teamAllLeaderList.value
  841. }
  842. function onStartDateConfirm(value: string) {
  843. // 检查结束时间是否小于新的开始时间
  844. if (realEndTime.value != '' && new Date(value) > new Date(realEndTime.value as string)) {
  845. uni.showToast({ title: '开始时间不能大于结束时间', icon: 'none' })
  846. return
  847. }
  848. realStartTime.value = value
  849. showStartTimePicker.value = false
  850. }
  851. function onEndDateConfirm(value: string) {
  852. // 检查新的结束时间是否小于开始时间
  853. if (realStartTime.value != '' && new Date(realStartTime.value as string) > new Date(value)) {
  854. uni.showToast({ title: '结束时间不能小于开始时间', icon: 'none' })
  855. return
  856. }
  857. realEndTime.value = value
  858. showEndTimePicker.value = false
  859. }
  860. function onResumeTimeConfirm(value: string) {
  861. // 检查新的结束时间是否小于开始时间
  862. if (resumeTime.value != '' && new Date(realStartTime.value as string) > new Date(value)) {
  863. uni.showToast({ title: '结束时间不能小于开始时间', icon: 'none' })
  864. return
  865. }
  866. resumeTime.value = value
  867. showResumeTimePicker.value = false
  868. }
  869. // 检查用户是否已被选中
  870. const isSelected = (user: UTSJSONObject): boolean => {
  871. const userId = user['userId'] as string | number | null;
  872. if (userId !== null) {
  873. return selectedUserIds.value.includes(userId.toString());
  874. }
  875. // 如果没有userId,则比较nickName
  876. const nickName = user['nickName'] as string | null;
  877. if (nickName !== null) {
  878. return selectedUsers.value.some(selected =>
  879. (selected['nickName'] as string | null) === nickName
  880. );
  881. }
  882. return false;
  883. };
  884. // 切换用户选择状态
  885. const toggleUserSelection = (user: UTSJSONObject): void => {
  886. const userId = user['userId'] as string | number | null;
  887. const nickName = user['nickName'] as string | null;
  888. if (userId !== null) {
  889. const userIdStr = userId.toString();
  890. const index = selectedUserIds.value.indexOf(userIdStr);
  891. if (index > -1) {
  892. // 取消选择
  893. selectedUserIds.value.splice(index, 1);
  894. selectedUsers.value = selectedUsers.value.filter(selected =>
  895. (selected['userId'] as string | number | null)?.toString() !== userIdStr
  896. );
  897. } else {
  898. // 添加选择
  899. selectedUserIds.value.push(userIdStr);
  900. selectedUsers.value.push(user);
  901. }
  902. } else if (nickName !== null) {
  903. // 如果没有userId,通过nickName来识别
  904. const index = selectedUsers.value.findIndex(selected =>
  905. (selected['nickName'] as string | null) === nickName
  906. );
  907. if (index > -1) {
  908. // 取消选择
  909. selectedUsers.value.splice(index, 1);
  910. // 同时移除对应的userId(如果有的话)
  911. const userToRemoveId = user['userId'] as string | number | null;
  912. if (userToRemoveId !== null) {
  913. const idIndex = selectedUserIds.value.indexOf(userToRemoveId.toString());
  914. if (idIndex > -1) {
  915. selectedUserIds.value.splice(idIndex, 1);
  916. }
  917. }
  918. } else {
  919. // 添加选择
  920. selectedUsers.value.push(user);
  921. const userToAddId = user['userId'] as string | number | null;
  922. if (userToAddId !== null) {
  923. selectedUserIds.value.push(userToAddId.toString());
  924. }
  925. }
  926. }
  927. };
  928. // 确认选择的用户
  929. const confirmSelectedUsers = (): void => {
  930. // 将选中的用户姓名拼接成字符串
  931. const nickNames = selectedUsers.value
  932. .map(user => (user['nickName'] as string | null) ?? '')
  933. .filter(name => name !== '')
  934. .join(',');
  935. workGroupMemberName.value = nickNames;
  936. // 更新workOrderPersonList为选中的用户
  937. workOrderPersonList.value = [...selectedUsers.value];
  938. showUserSelect.value = false;
  939. };
  940. // 清空已选择的用户
  941. const clearSelectedUsers = (): void => {
  942. // 清空选中的用户数组
  943. selectedUsers.value = [];
  944. selectedUserIds.value = [];
  945. // 清空显示的用户名
  946. workGroupMemberName.value = '';
  947. // 清空工作班成员列表
  948. workOrderPersonList.value = [];
  949. };
  950. // 表单验证
  951. const validateForm = (): boolean => {
  952. if (infoEntry.value == '') {
  953. uni.showToast({
  954. title: '请选择信息录入方式',
  955. icon: 'none'
  956. });
  957. return false;
  958. }
  959. if (infoEntry.value == '1' && (misNo.value == '')) {
  960. uni.showToast({
  961. title: '请输入MIS工单编码',
  962. icon: 'none'
  963. });
  964. return false;
  965. }
  966. if (workPermitNum.value == '') {
  967. uni.showToast({
  968. title: '请输入工作票编号',
  969. icon: 'none'
  970. });
  971. return false;
  972. }
  973. if (realStartTime.value == '') {
  974. uni.showToast({
  975. title: '请选择开始时间',
  976. icon: 'none'
  977. });
  978. return false;
  979. }
  980. if (realEndTime.value == '') {
  981. uni.showToast({
  982. title: '请选择结束时间',
  983. icon: 'none'
  984. });
  985. return false;
  986. }
  987. if (new Date(realEndTime.value) <= new Date(realStartTime.value)) {
  988. uni.showToast({
  989. title: '结束时间必须大于开始时间',
  990. icon: 'none'
  991. });
  992. return false;
  993. }
  994. if (teamLeaderName.value == '') {
  995. uni.showToast({
  996. title: '请选择工作负责人',
  997. icon: 'none'
  998. });
  999. return false;
  1000. }
  1001. if (workGroupMemberName.value == '') {
  1002. uni.showToast({
  1003. title: '请选择工作班成员',
  1004. icon: 'none'
  1005. });
  1006. return false;
  1007. }
  1008. if(resumeShow.value) {
  1009. if(resumeTime.value == '') {
  1010. uni.showToast({
  1011. title: '请选挂起结束时间',
  1012. icon: 'none'
  1013. });
  1014. return false;
  1015. } else {
  1016. const suspendTime = (suspendInfo.value?.['actionTime'] as string | null) ?? ''
  1017. if (suspendTime != '' && realStartTime.value != '' && new Date(suspendTime) < new Date(realStartTime.value)) { // 开工前挂起
  1018. if (resumeTime.value != '' && new Date(resumeTime.value) > new Date(realStartTime.value)) {
  1019. uni.showToast({
  1020. title: '开工前挂起结束时间晚于实际开始时间,请调整',
  1021. icon: 'none'
  1022. });
  1023. return false;
  1024. } else if(realEndTime.value != '' && resumeTime.value != '' && new Date(resumeTime.value) > new Date(realEndTime.value)) {
  1025. uni.showToast({
  1026. title: '开工前挂起结束时间晚于实际结束时间,请调整',
  1027. icon: 'none'
  1028. });
  1029. return false;
  1030. }
  1031. } else if(suspendTime != '' && realStartTime.value != '' && new Date(suspendTime) >= new Date(realStartTime.value)) { // 作业中挂起
  1032. if (resumeTime.value != '' && new Date(resumeTime.value) < new Date(realStartTime.value)) {
  1033. uni.showToast({
  1034. title: '作业中挂起结束时间早于实际开始时间,请调整',
  1035. icon: 'none'
  1036. });
  1037. return false;
  1038. } else if(realEndTime.value != '' && resumeTime.value != '' && new Date(resumeTime.value) > new Date(realEndTime.value)) {
  1039. uni.showToast({
  1040. title: '作业中挂起结束时间晚于实际结束时间,请调整',
  1041. icon: 'none'
  1042. });
  1043. return false;
  1044. }
  1045. }
  1046. }
  1047. }
  1048. return true;
  1049. };
  1050. const isDealing = ref(false)
  1051. const hasDealed = ref(false)
  1052. // 提交表单
  1053. const handleSubmit = async (): Promise<void> => {
  1054. if (!validateForm()) {
  1055. return;
  1056. }
  1057. submitLoading.value = true;
  1058. try {
  1059. if (isDealing.value || hasDealed.value) return // 双重保险
  1060. isDealing.value = true
  1061. // 确保附件URLs是最新的逗号分隔格式
  1062. attachmentUrls.value = uploadedFiles.value.map(file => file.fileName).join(',');
  1063. flowList.value = []
  1064. if (resumeTime.value != '' && resumeInfo.value != null && resumeTime.value != (resumeInfo.value['actionTime'] as string | null)) { //存入新的挂起结束时间
  1065. resumeInfo.value['actionTime'] = resumeTime.value
  1066. flowList.value.push(resumeInfo.value as UTSJSONObject)
  1067. }
  1068. const finishData = {
  1069. id: orderId.value,
  1070. orderType: orderType.value,
  1071. workOrderProjectNo: workOrderProjectNo.value,
  1072. infoEntry: infoEntry.value,
  1073. misNo: infoEntry.value == '1' ? misNo.value : null,
  1074. workPermitNum: workPermitNum.value,
  1075. realStartTime: realStartTime.value,
  1076. realEndTime: realEndTime.value,
  1077. wwryNum: wwryNum.value,
  1078. wlryNum: wlryNum.value,
  1079. workGroupMemberName: workGroupMemberName.value,
  1080. content: content.value,
  1081. attachmentUrls: attachmentUrls.value,
  1082. workOrderPersonList: workOrderPersonList.value,
  1083. teamLeaderId: teamLeaderId.value,
  1084. teamLeaderName: teamLeaderName.value,
  1085. finalizeMethod: '2',
  1086. workOrderStatus: 'completed',
  1087. workOrderFlowList: flowList.value
  1088. } as UTSJSONObject;
  1089. const result = await finishOrder(finishData);
  1090. const resultObj = result as UTSJSONObject;
  1091. const code = resultObj['code'] as number;
  1092. if (code == 200) {
  1093. uni.showToast({
  1094. title: '结单成功',
  1095. icon: 'success'
  1096. });
  1097. hasDealed.value = true
  1098. // 使用事件总线通知列表页面刷新
  1099. uni.$emit('refreshOrderList', {});
  1100. uni.$emit('refreshAssignedCount');
  1101. uni.$emit('refreshOverdueCount');
  1102. setTimeout(() => {
  1103. uni.navigateBack();
  1104. }, 800);
  1105. } else {
  1106. const msg = resultObj['msg'] as string;
  1107. uni.showToast({
  1108. title: msg.length > 0 ? msg : '结单失败',
  1109. icon: 'none'
  1110. });
  1111. }
  1112. } catch (error: Error) {
  1113. uni.showToast({
  1114. title: error.message,
  1115. icon: 'none'
  1116. });
  1117. } finally {
  1118. submitLoading.value = false;
  1119. isDealing.value = false // 无论成功失败都解锁
  1120. }
  1121. };
  1122. const loading = ref<boolean>(false)
  1123. // 加载详情数据
  1124. const loadDetail = async (id: string, orderType?: string): Promise<void> => {
  1125. try {
  1126. loading.value = true
  1127. let result: any;
  1128. // 根据orderType决定调用哪个API
  1129. if (orderType == '1') {
  1130. // 维修工单
  1131. result = await getRepairOrderInfoById(id)
  1132. } else {
  1133. // 维保工单
  1134. result = await getOrderInfoById(id)
  1135. }
  1136. // 提取响应数据
  1137. const resultObj = result as UTSJSONObject
  1138. const code = resultObj['code'] as number
  1139. const data = resultObj['data'] as UTSJSONObject | null
  1140. if (code == 200 && data != null) {
  1141. workOrderStatus.value = (data['workOrderStatus'] as string | null) ?? ''
  1142. workOrderProjectNo.value = (data['workOrderProjectNo'] as string | null) ?? ''
  1143. pcsDeviceName.value = (data['pcsDeviceName'] as string | null) ?? ''
  1144. gxtCenter.value = (data['gxtCenter'] as string | null) ?? ''
  1145. pcsStationName.value = (data['pcsStationName'] as string | null) ?? ''
  1146. brand.value = (data['brand'] as string | null) ?? ''
  1147. model.value = (data['model'] as string | null) ?? ''
  1148. acceptTime.value = (data['acceptTime'] as string | null) ?? ''
  1149. acceptUserName.value = (data['acceptUserName'] as string | null) ?? ''
  1150. // 初始化结单表单默认值
  1151. infoEntry.value = '1' // 默认为手工录入
  1152. teamLeaderId.value = (data['teamLeaderId'] as Number | null) ?? null
  1153. teamLeaderName.value = (data['teamLeaderName'] as string | null) ?? ''
  1154. returnType.value = workOrderStatus.value == 'to_finish' ? '1' : ''
  1155. content.value = (data['content'] as string | null) ?? ''
  1156. suspendReason.value = (data['suspendReason'] as string | null) ?? ''
  1157. // 初始化附件数据
  1158. const attachmentUrlsFromServer = (data['attachmentUrls'] as string | null) ?? ''
  1159. if (attachmentUrlsFromServer.length > 0) {
  1160. attachmentUrls.value = attachmentUrlsFromServer
  1161. // 将逗号分隔的URL字符串转换为UploadResponse对象数组
  1162. const urls = attachmentUrlsFromServer.split(',')
  1163. const fileArr : UploadResponse[] = []
  1164. for (let i = 0; i < urls.length; i++) {
  1165. const url = urls[i]
  1166. const item : UploadResponse = {
  1167. url: url,
  1168. fileId: '',
  1169. fileName: url.substring(url.lastIndexOf('/') + 1),
  1170. filePath: url,
  1171. fileSize: 0,
  1172. fileExt: url.substring(url.lastIndexOf('.') + 1),
  1173. businessType: 'workOrder'
  1174. }
  1175. fileArr.push(item)
  1176. }
  1177. uploadedFiles.value = fileArr
  1178. }
  1179. pauseTime.value = (data['pauseTime'] as string | null) ?? ''
  1180. restartTime.value = (data['restartTime'] as string | null) ?? ''
  1181. if(pauseTime.value != '' && restartTime.value != '') {
  1182. const queryParams = {
  1183. pauseTime: pauseTime.value,
  1184. restartTime: restartTime.value,
  1185. pcsDeviceName: pcsDeviceName.value,
  1186. pcsStationName: pcsStationName.value,
  1187. workOrderStatus: '结束',
  1188. orderType: 2
  1189. } as UTSJSONObject;
  1190. const result = await listAutoMisInfo(queryParams)
  1191. // 提取响应数据
  1192. const resultObj = result as UTSJSONObject
  1193. const code = resultObj['code'] as number
  1194. const misInfo = resultObj['rows'] as UTSJSONObject[] | null
  1195. if (code == 200 && misInfo != null) {
  1196. if(misInfo.length > 0 && misInfo.length == 1) {
  1197. // 有工作票号提示
  1198. const workPermitNum2 = misInfo[0]['workPermitNum'] as string | null
  1199. const misNo2 = misInfo[0]['misNo'] as string | null
  1200. if (workPermitNum2 != null && workPermitNum2.length > 0) {
  1201. const response = await getOrderList(1, 10, misNo2 ?? '', '')
  1202. const responseObj = response as UTSJSONObject
  1203. const rows = responseObj['rows'] as UTSJSONObject[] | null
  1204. if (rows != null && rows.length > 0) {
  1205. misNo.value = ''
  1206. // infoEntry.value = '2'
  1207. uni.showModal({
  1208. title: '提示',
  1209. content: '已匹配到' + misNo2 + '工单,但该MIS工单已被其他工单关联,请检查是否重复操作。',
  1210. showCancel: false, // 只显示确定按钮
  1211. confirmText: '确定',
  1212. confirmColor: '#007aff', // 自定义按钮颜色,匹配你的UI风格
  1213. success: (res) => {
  1214. }
  1215. });
  1216. } else {
  1217. misNo.value = (misInfo[0]['misNo'] as string | null) ?? ''
  1218. realStartTime.value = (misInfo[0]['realStartTime'] as string | null) ?? ''
  1219. realEndTime.value = (misInfo[0]['realEndTime'] as string | null) ?? ''
  1220. workPermitNum.value = (misInfo[0]['workPermitNum'] as string | null) ?? ''
  1221. // 查询相关工作班成员
  1222. listWorkPerson(misNo.value).then(response => {
  1223. const responseObj = response as UTSJSONObject
  1224. const rows = responseObj['rows'] as UTSJSONObject[] | null
  1225. workOrderPersonList.value = rows ?? []
  1226. if (rows != null && rows.length > 0) {
  1227. // 查询负责人信息并回填
  1228. for (const person of workOrderPersonList.value) {
  1229. // 严格判断isLeader为1(兼容数字/字符串类型)
  1230. if (person.isLeader == 1) {
  1231. teamLeaderId.value = (person.userId as Number | null) ?? null;
  1232. teamLeaderName.value = (person.nickName as string | null) ?? '';
  1233. break; // 找到后立即停止循环
  1234. }
  1235. }
  1236. const nickNames = rows
  1237. .filter(person => person.isLeader != 1)
  1238. .map(person => (person.nickName as string | null) ?? '')
  1239. .join(',');
  1240. workGroupMemberName.value = nickNames;
  1241. workOrderPersonList.value.map(person => {
  1242. // 构造查询参数:username 和 nickName
  1243. const queryParams = {
  1244. userName: person.userName, // 假设person对象有username字段
  1245. nickName: person.nickName // 假设person对象有nickName字段
  1246. };
  1247. getUserList(queryParams).then(response => {
  1248. const responseObj = response as UTSJSONObject
  1249. const rows = responseObj['rows'] as UTSJSONObject[] | null
  1250. if (rows == null || rows.length == 0) {
  1251. let msg = "已匹配到MIS工单,但工作班成员'" + person.nickName + "'在系统中不存在,系统无法自动结单,请检查"
  1252. if (person.isLeader == 1) {
  1253. msg = "已匹配到MIS工单,但工作负责人'" + person.nickName + "'在系统中不存在,系统无法自动结单,请检查"
  1254. }
  1255. uni.showModal({
  1256. title: '提示',
  1257. content: msg,
  1258. showCancel: false, // 只显示确定按钮
  1259. confirmText: '确定',
  1260. confirmColor: '#007aff',
  1261. success: (res) => {
  1262. }
  1263. });
  1264. }
  1265. });
  1266. })
  1267. }
  1268. })
  1269. }
  1270. } else {
  1271. misNo.value = ''
  1272. // infoEntry.value = '2'
  1273. uni.showModal({
  1274. title: '提示',
  1275. content: '已匹配到MIS工单,但未关联工作票号,系统无法自动结单,请进入工作票录入方式。',
  1276. showCancel: false, // 只显示确定按钮
  1277. confirmText: '确定',
  1278. confirmColor: '#007aff',
  1279. success: (res) => {
  1280. }
  1281. });
  1282. }
  1283. } else if(misInfo.length == 0) {
  1284. misNo.value = ''
  1285. // infoEntry.value = '2'
  1286. uni.showModal({
  1287. title: '提示',
  1288. content: '未找到匹配的MIS工单,请确认开始时间是否早于停机时间且与停机时间相差不超过60分钟,并且结束时间晚于恢复运行时间。',
  1289. showCancel: false, // 只显示确定按钮
  1290. confirmText: '确定',
  1291. confirmColor: '#007aff',
  1292. success: (res) => {
  1293. }
  1294. });
  1295. } else if(misInfo.length > 1) {
  1296. misNo.value = ''
  1297. // infoEntry.value = '2'
  1298. uni.showModal({
  1299. title: '提示',
  1300. content: '已匹配到多个MIS工单,请手动结单,信息录入选择关联MIS。',
  1301. showCancel: false, // 只显示确定按钮
  1302. confirmText: '确定',
  1303. confirmColor: '#007aff',
  1304. success: (res) => {
  1305. }
  1306. });
  1307. }
  1308. }
  1309. } else {
  1310. // infoEntryDisabled.value = true
  1311. misNo.value = ''
  1312. // infoEntry.value = '2'
  1313. uni.showModal({
  1314. title: '提示',
  1315. content: '未找到匹配的MIS工单,请确认风机停复机时间是否已录入工效通系统或请进入工作票录入方式。',
  1316. showCancel: false, // 只显示确定按钮
  1317. confirmText: '确定',
  1318. confirmColor: '#007aff',
  1319. success: (res) => {
  1320. }
  1321. });
  1322. }
  1323. flowList.value = data['workOrderFlowList'] as UTSJSONObject[]
  1324. if (suspendReason.value != '' && flowList.value.length > 0) {
  1325. // 获取最后一个 actionType 等于 'resume' 的项
  1326. const lastResumeItem = flowList.value.findLast(item => item['actionType'] === 'resume') as UTSJSONObject | null
  1327. if (lastResumeItem != null) {
  1328. resumeInfo.value = lastResumeItem
  1329. // 直接给 resumeTime 赋值,无需 formData
  1330. resumeTime.value = (lastResumeItem['actionTime'] as string | null) ?? ''
  1331. }
  1332. const lastSuspendItem = flowList.value.findLast(item => (item['actionType'] as string | null) === 'to_approve') as UTSJSONObject | null
  1333. if (lastSuspendItem != null) {
  1334. suspendInfo.value = lastSuspendItem
  1335. }
  1336. }
  1337. } else {
  1338. const msg = resultObj['msg'] as string | null
  1339. uni.showToast({
  1340. title: msg ?? '加载失败',
  1341. icon: 'none'
  1342. })
  1343. }
  1344. } catch (e: any) {
  1345. uni.showToast({
  1346. title: e.message ?? '加载失败',
  1347. icon: 'none'
  1348. })
  1349. } finally {
  1350. loading.value = false
  1351. }
  1352. }
  1353. // 页面加载
  1354. onLoad((options: any) => {
  1355. const params = options as UTSJSONObject
  1356. const id = params['id'] as string | null
  1357. const orderTypeParam = params['orderType'] as string | null
  1358. if (id != null && orderTypeParam != null) {
  1359. // 先尝试从参数中获取orderType
  1360. // const orderTypeNumber = parseInt(orderTypeParam)
  1361. orderType.value = orderTypeParam
  1362. orderId.value = id
  1363. loadDetail(id, orderTypeParam)
  1364. }
  1365. })
  1366. // 初始化
  1367. onMounted(() => {
  1368. getUserAllList();
  1369. loadInfoEntryDictList();
  1370. })
  1371. </script>
  1372. <style lang="scss">
  1373. .detail-page {
  1374. flex: 1;
  1375. background-color: #e8f0f9;
  1376. }
  1377. .detail-content {
  1378. flex: 1;
  1379. padding: 20rpx 0;
  1380. }
  1381. .info-section {
  1382. margin: 0 30rpx 24rpx;
  1383. .section-title {
  1384. position: relative;
  1385. padding-left: 20rpx;
  1386. margin-bottom: 20rpx;
  1387. &::before {
  1388. // content: '';
  1389. position: absolute;
  1390. left: 0;
  1391. top: 50%;
  1392. transform: translateY(-50%);
  1393. width: 8rpx;
  1394. height: 32rpx;
  1395. background-color: #007aff;
  1396. border-radius: 4rpx;
  1397. }
  1398. &-text {
  1399. font-size: 32rpx;
  1400. font-weight: bold;
  1401. color: #333333;
  1402. }
  1403. }
  1404. .info-card {
  1405. background-color: #ffffff;
  1406. border-radius: 16rpx;
  1407. padding: 30rpx;
  1408. .info-item {
  1409. flex-direction: row;
  1410. padding: 20rpx 0;
  1411. border-bottom: 1rpx solid #f0f0f0;
  1412. &:last-child {
  1413. border-bottom: none;
  1414. }
  1415. &.full-width {
  1416. flex-direction: column;
  1417. .info-label {
  1418. margin-bottom: 12rpx;
  1419. }
  1420. .info-value {
  1421. line-height: 44rpx;
  1422. }
  1423. }
  1424. .info-label {
  1425. width: 240rpx;
  1426. font-size: 28rpx;
  1427. color: #666666;
  1428. white-space: nowrap;
  1429. }
  1430. .info-value {
  1431. flex: 1;
  1432. font-size: 28rpx;
  1433. color: #333333;
  1434. text-align: left;
  1435. &.highlight {
  1436. color: #007aff;
  1437. font-weight: bold;
  1438. }
  1439. &.input {
  1440. text-align: left;
  1441. border: 1rpx solid #e0e0e0;
  1442. border-radius: 8rpx;
  1443. padding: 10rpx;
  1444. }
  1445. .input-with-clear {
  1446. position: relative;
  1447. display: flex;
  1448. align-items: center;
  1449. }
  1450. .select-clear {
  1451. position: absolute;
  1452. right: 20rpx;
  1453. color: #ccc;
  1454. text-align: center;
  1455. font-size: 40rpx;
  1456. font-weight: bold;
  1457. z-index: 1;
  1458. }
  1459. .input-with-select {
  1460. position: relative;
  1461. display: flex;
  1462. align-items: center;
  1463. }
  1464. .select-mis-btn {
  1465. line-height: 50rpx;
  1466. text-align: center;
  1467. position: absolute;
  1468. right: 0rpx;
  1469. padding: 6rpx 12rpx;
  1470. background-color: #007aff;
  1471. color: #fff;
  1472. border-radius: 6rpx;
  1473. font-size: 26rpx;
  1474. z-index: 1;
  1475. max-width: 100rpx;
  1476. overflow: hidden;
  1477. text-overflow: ellipsis;
  1478. white-space: nowrap;
  1479. }
  1480. }
  1481. }
  1482. .flow-item {
  1483. padding: 20rpx 0;
  1484. border-bottom: 1rpx solid #f0f0f0;
  1485. &:last-child {
  1486. border-bottom: none;
  1487. }
  1488. .flow-header {
  1489. flex-direction: row;
  1490. justify-content: space-between;
  1491. margin-bottom: 10rpx;
  1492. .flow-operator {
  1493. font-size: 28rpx;
  1494. color: #333333;
  1495. font-weight: bold;
  1496. }
  1497. .flow-time {
  1498. font-size: 24rpx;
  1499. color: #999999;
  1500. }
  1501. }
  1502. .flow-content {
  1503. flex-direction: column;
  1504. .flow-action {
  1505. font-size: 26rpx;
  1506. color: #666666;
  1507. margin-bottom: 8rpx;
  1508. }
  1509. .flow-remark {
  1510. font-size: 24rpx;
  1511. color: #999999;
  1512. background-color: #f5f5f5;
  1513. padding: 10rpx;
  1514. border-radius: 8rpx;
  1515. }
  1516. }
  1517. }
  1518. .no-data {
  1519. text-align: center;
  1520. padding: 40rpx 0;
  1521. font-size: 28rpx;
  1522. color: #999999;
  1523. }
  1524. }
  1525. }
  1526. .accept-button-container {
  1527. padding: 30rpx 30rpx 50rpx;
  1528. background-color: #ffffff;
  1529. .accept-button {
  1530. width: 100%;
  1531. height: 80rpx;
  1532. background-color: #007aff;
  1533. color: #ffffff;
  1534. font-size: 32rpx;
  1535. border-radius: 16rpx;
  1536. border: none;
  1537. &:active {
  1538. background-color: #0062cc;
  1539. }
  1540. }
  1541. }
  1542. .loading-mask {
  1543. position: absolute;
  1544. top: 0;
  1545. left: 0;
  1546. right: 0;
  1547. bottom: 0;
  1548. justify-content: center;
  1549. align-items: center;
  1550. background-color: rgba(0, 0, 0, 0.3);
  1551. .loading-text {
  1552. padding: 30rpx 60rpx;
  1553. background-color: rgba(0, 0, 0, 0.7);
  1554. color: #ffffff;
  1555. font-size: 28rpx;
  1556. border-radius: 12rpx;
  1557. }
  1558. }
  1559. .picker-modal {
  1560. position: fixed;
  1561. top: 0;
  1562. left: 0;
  1563. right: 0;
  1564. bottom: 0;
  1565. z-index: 1000;
  1566. }
  1567. .modal-mask {
  1568. position: absolute;
  1569. top: 0;
  1570. left: 0;
  1571. right: 0;
  1572. bottom: 0;
  1573. background-color: rgba(0, 0, 0, 0.5);
  1574. }
  1575. .modal-content {
  1576. position: absolute;
  1577. bottom: 0;
  1578. left: 0;
  1579. right: 0;
  1580. background-color: #ffffff;
  1581. border-top-left-radius: 16rpx;
  1582. border-top-right-radius: 16rpx;
  1583. min-height: 700rpx;
  1584. }
  1585. .modal-header {
  1586. flex-direction: row;
  1587. justify-content: space-between;
  1588. align-items: center;
  1589. padding: 30rpx;
  1590. border-bottom: 1rpx solid #f0f0f0;
  1591. }
  1592. .modal-title {
  1593. font-size: 32rpx;
  1594. font-weight: bold;
  1595. color: #333333;
  1596. }
  1597. .modal-close {
  1598. font-size: 28rpx;
  1599. color: #007aff;
  1600. }
  1601. .modal-body {
  1602. max-height: 800rpx;
  1603. min-height: 800rpx;
  1604. }
  1605. .picker-option {
  1606. flex-direction: row;
  1607. justify-content: space-between;
  1608. align-items: center;
  1609. padding: 24rpx 30rpx;
  1610. border-bottom: 1rpx solid #f0f0f0;
  1611. }
  1612. .picker-option.selected {
  1613. background-color: #f8f9fa;
  1614. }
  1615. .picker-option:last-child {
  1616. border-bottom: none;
  1617. }
  1618. .info-row {
  1619. flex-direction: row;
  1620. justify-content: space-between;
  1621. align-items: center;
  1622. }
  1623. .option-text {
  1624. font-size: 28rpx;
  1625. color: #333333;
  1626. margin-bottom: 10rpx;
  1627. }
  1628. .option-text:last-child {
  1629. margin-bottom: 0;
  1630. }
  1631. .option-check {
  1632. font-size: 28rpx;
  1633. color: #007aff;
  1634. }
  1635. .empty-tip {
  1636. justify-content: space-between;
  1637. padding: 24rpx 30rpx;
  1638. display: flex;
  1639. align-items: center;
  1640. justify-content: center;
  1641. color: #999;
  1642. }
  1643. .mis-list {
  1644. flex: 1;
  1645. height: 100%;
  1646. display: flex;
  1647. flex-direction: column;
  1648. }
  1649. .form-item {
  1650. flex-direction: row;
  1651. padding: 20rpx 0;
  1652. border-bottom: 1rpx solid #f0f0f0;
  1653. }
  1654. .reject-reason-textarea {
  1655. width: 100%;
  1656. min-height: 100rpx;
  1657. line-height: 1.5;
  1658. }
  1659. .input-field {
  1660. width: 100%;
  1661. height: 60rpx;
  1662. padding: 0 20rpx;
  1663. border: 1rpx solid #e0e0e0;
  1664. border-radius: 8rpx;
  1665. font-size: 28rpx;
  1666. background-color: #f8f9fa;
  1667. }
  1668. .select-mis-btn {
  1669. width: 150rpx;
  1670. height: 60rpx;
  1671. margin-left: 10rpx;
  1672. background-color: #007aff;
  1673. color: #fff;
  1674. border: none;
  1675. border-radius: 8rpx;
  1676. font-size: 24rpx;
  1677. }
  1678. .textarea-field {
  1679. width: 100%;
  1680. min-height: 120rpx;
  1681. padding: 20rpx;
  1682. border: 1rpx solid #e0e0e0;
  1683. border-radius: 8rpx;
  1684. font-size: 28rpx;
  1685. background-color: #f8f9fa;
  1686. }
  1687. .radio-label {
  1688. display: flex;
  1689. align-items: center;
  1690. margin-right: 30rpx;
  1691. }
  1692. .quick-select-dropdown {
  1693. position: absolute;
  1694. top: 100%;
  1695. left: 0;
  1696. right: 0;
  1697. background: #fff;
  1698. border: 1rpx solid #ddd;
  1699. border-top: none;
  1700. z-index: 1000;
  1701. max-height: 300rpx;
  1702. }
  1703. .quick-select-item {
  1704. padding: 20rpx;
  1705. border-bottom: 1rpx solid #eee;
  1706. }
  1707. .mis-no {
  1708. font-size: 28rpx;
  1709. color: #333;
  1710. }
  1711. .search-bar {
  1712. padding: 20rpx 30rpx;
  1713. background-color: #d7eafe;
  1714. }
  1715. .search-box {
  1716. flex-direction: row;
  1717. align-items: center;
  1718. height: 72rpx;
  1719. padding: 0 24rpx;
  1720. background-color: #f5f5f5;
  1721. border-radius: 36rpx;
  1722. .search-icon {
  1723. width: 32rpx;
  1724. height: 32rpx;
  1725. margin-right: 12rpx;
  1726. }
  1727. .search-input {
  1728. flex: 1;
  1729. font-size: 28rpx;
  1730. color: #333333;
  1731. }
  1732. .clear-icon {
  1733. margin-left: 12rpx;
  1734. font-size: 28rpx;
  1735. color: #999999;
  1736. }
  1737. }
  1738. .mis-list {
  1739. flex: 1;
  1740. height: 100%;
  1741. display: flex;
  1742. flex-direction: column;
  1743. }
  1744. .select-users-count {
  1745. margin-left: 10rpx;
  1746. font-size: 24rpx;
  1747. color: #666;
  1748. }
  1749. </style>