NewMarsJob.vue 66 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940
  1. <template>
  2. <div>
  3. <el-radio-group v-model="tabPosition" style="margin: 5px">
  4. <el-radio-button label="first">选择岗位</el-radio-button>
  5. <el-radio-button label="second">选择SOP</el-radio-button>
  6. <el-radio-button label="third">作业详情</el-radio-button>
  7. </el-radio-group>
  8. <div
  9. style="
  10. display: flex;
  11. justify-content: center;
  12. align-items: center;
  13. position: relative;
  14. "
  15. v-show="tabPosition == 'first'"
  16. >
  17. <!-- 缩放容器 -->
  18. <div
  19. ref="mapContainer"
  20. :style="{
  21. transform: `scale(${scaleFactor})`,
  22. transformOrigin: 'top left',
  23. width: '1250px',
  24. height: '700px',
  25. position: 'relative',
  26. }"
  27. >
  28. <img
  29. :style="{width:jobconfig.width+'px',height:jobconfig.height+'px'}"
  30. :src="jobconfig.imageUrl"
  31. alt=""
  32. />
  33. <div v-for="(item, index) in jobconfigPoint.records" :key="item.id">
  34. <!-- 绿色盒子 -->
  35. <div
  36. class="deptGreen"
  37. :style="{left:item.x+'px',top:item.y+'px'}"
  38. @click="handelChange('second', item.entityId, item.entityName)"
  39. >
  40. {{ item.entityName }}
  41. </div>
  42. <!-- // 使图标位于岗位上方-->
  43. <div
  44. v-for="(ticket, i) in (TicketListPage[item.entityId] && TicketListPage[item.entityId].slice(0, 3)) || []"
  45. :key="'btn-' + i"
  46. @click="handleTicketDialogVisible(item.entityId, item.entityName)"
  47. :style="{
  48. width: '28px',
  49. height: '28px',
  50. background: 'rgb(4, 134, 241)',
  51. textAlign: 'center',
  52. lineHeight: '28px',
  53. fontSize: '20px',
  54. color: 'white',
  55. borderRadius: '5px',
  56. position: 'absolute',
  57. top: (item.y - 70) + 'px',
  58. left: (item.x - ((TicketListPage[item.entityId] ? Math.min(TicketListPage[item.entityId].length, 3) * 35 : 0) - 60) / 2 + i * 40) + 'px', // 动态计算宽度
  59. cursor: 'pointer'
  60. }"
  61. >
  62. {{ (i === 2 && TicketListPage[item.entityId] && TicketListPage[item.entityId].length > 3) ? '3+' : (i + 1) }}
  63. </div>
  64. <img
  65. v-for="(ticket, index) in (TicketListPage[item.entityId] && TicketListPage[item.entityId].slice(0, 3)) || []"
  66. :key="ticket.ticketId"
  67. :style="{
  68. width: '35px',
  69. height: '35px',
  70. position: 'absolute',
  71. cursor: 'pointer',
  72. top: (item.y - 40) + 'px',
  73. left: (item.x - ((TicketListPage[item.entityId] ? Math.min(TicketListPage[item.entityId].length, 3) * 35 : 0) - 53) / 2 + index * 40) + 'px' // 动态计算宽度
  74. }"
  75. :src="index === 2 && (TicketListPage[item.entityId] && TicketListPage[item.entityId].length > 3) ? imageMap[5] : imageMap[ticket.ticketType]"
  76. alt=""
  77. @click="index === 2 && (TicketListPage[item.entityId] && TicketListPage[item.entityId].length > 3) ? handleTicketDialogVisible(item.entityId, item.entityName) : handleTicketClick(ticket)"
  78. />
  79. <!-- <div-->
  80. <!-- v-for="(ticket, i) in (TicketListPage[item.entityId] && TicketListPage[item.entityId].slice(0, 3)) || []"-->
  81. <!-- :key="'btn-' + i"-->
  82. <!-- @click="handleTicketDialogVisible(item.entityId, item.entityName)"-->
  83. <!-- :style="{-->
  84. <!-- width: '28px',-->
  85. <!-- height: '28px',-->
  86. <!-- background: 'rgb(4, 134, 241)',-->
  87. <!-- textAlign: 'center',-->
  88. <!-- lineHeight: '28px',-->
  89. <!-- fontSize: '20px',-->
  90. <!-- color: 'white',-->
  91. <!-- borderRadius: '5px',-->
  92. <!-- position: 'absolute',-->
  93. <!-- top: (item.y - 70) + 'px',-->
  94. <!-- left: (item.x - ((TicketListPage[item.entityId] ? 3 * 35 : 0) - 53) / 2 + i * 40) + 'px',-->
  95. <!-- cursor: 'pointer'-->
  96. <!-- }"-->
  97. <!-- >-->
  98. <!-- {{ i + 1 }}-->
  99. <!-- </div>-->
  100. <!-- &lt;!&ndash; 显示作业票图标,最多 3 个图标 &ndash;&gt;-->
  101. <!-- <img-->
  102. <!-- v-for="(ticket, index) in (TicketListPage[item.entityId] && TicketListPage[item.entityId].slice(0, 3)) || []"-->
  103. <!-- :key="ticket.ticketId"-->
  104. <!-- :style="{-->
  105. <!-- width: '35px',-->
  106. <!-- height: '35px',-->
  107. <!-- position: 'absolute',-->
  108. <!-- cursor: 'pointer',-->
  109. <!-- top: (item.y - 40) + 'px', // 让图标浮在岗位的上方-->
  110. <!-- left: (-->
  111. <!-- item.x - -->
  112. <!-- ((TicketListPage[item.entityId] ? TicketListPage[item.entityId].length * 35 : 0) - 53) / 2 + // 计算总宽度并居中,减去单个图标宽度,确保居中-->
  113. <!-- index * 40 // 处理图标间隔-->
  114. <!-- ) + 'px'-->
  115. <!-- }"-->
  116. <!-- :src="index === 2 && (TicketListPage[item.entityId] && TicketListPage[item.entityId].length > 3) ? imageMap[5] : imageMap[ticket.ticketType]"-->
  117. <!-- alt=""-->
  118. <!-- @click="index === 2 && (TicketListPage[item.entityId] && TicketListPage[item.entityId].length > 3) ? handleTicketDialogVisible(item.entityId, item.entityName) : handleTicketClick(ticket)"-->
  119. <!-- />-->
  120. </div>
  121. </div>
  122. </div>
  123. <div
  124. style="
  125. display: flex;
  126. flex-direction: column;
  127. justify-content: flex-start;
  128. align-items: flex-start;
  129. position: relative;
  130. "
  131. v-show="tabPosition == 'second'"
  132. >
  133. <h3 style="margin-left: 20px">{{ this.marsSopTitle }} SOP</h3>
  134. <span style="margin-left: 20px">选择 工艺/设备</span>
  135. <!-- :data="marsSopPage"-->
  136. <el-table
  137. style="width: 50%; margin: 20px"
  138. :header-cell-style="{ background: '#004d8c', color: '#FFFFFF' }"
  139. :data="technologyList"
  140. highlight-current-row
  141. @current-change="handleSelectionChange"
  142. >
  143. <!-- <el-table-column type="selection" width="55" align="center"/>-->
  144. <!-- <el-table-column-->
  145. <!-- label="sop名称"-->
  146. <!-- align="center"-->
  147. <!-- prop="sopName"-->
  148. <!-- ></el-table-column>-->
  149. <el-table-column
  150. label="设备/工艺名称"
  151. align="center"
  152. prop="machineryName"
  153. ></el-table-column>
  154. <!-- <el-table-column-->
  155. <!-- label="所属岗位"-->
  156. <!-- align="center"-->
  157. <!-- prop="workstationName"-->
  158. <!-- ></el-table-column>-->
  159. </el-table>
  160. <h2 style="margin-left: 20px">sop类型</h2>
  161. <el-radio-group
  162. v-model="selectedOption"
  163. size="small"
  164. style="display: flex; flex-direction: column; align-items: flex-start"
  165. @change="handleSopchange"
  166. >
  167. <!-- v-for="(option, index) in filteredSopTypes"-->
  168. <el-radio
  169. v-for="item in sopTypeOption"
  170. :key="item.value"
  171. :label="item.label"
  172. border
  173. style="margin: 10px"
  174. >
  175. {{ item.label }}
  176. </el-radio>
  177. </el-radio-group>
  178. <el-button
  179. type="primary"
  180. style="margin-left: 140px"
  181. @click="handelChange('third')"
  182. >开始执行
  183. </el-button>
  184. </div>
  185. <div
  186. style="position: relative; display: flex"
  187. v-show="tabPosition == 'third'"
  188. >
  189. <div
  190. class="left"
  191. style="width: 35%; display: flex; flex-direction: column"
  192. >
  193. <div class="left-top">
  194. <el-card class="box-card" style="margin: 10px" v-loading="loading">
  195. <div slot="header" class="clearfix">
  196. <span>工艺/设备 工艺图</span>
  197. </div>
  198. <img style="margin-left: 25%;width: 200px;height: 230px" :src="this.machineryImg" alt=""/>
  199. </el-card>
  200. </div>
  201. <div class="left-bottom">
  202. <el-card class="box-card" style="height: 102%; margin: 10px" v-loading="loading">
  203. <div slot="header" class="clearfix">
  204. <span>锁定站信息</span>
  205. <i
  206. class="el-icon-search"
  207. style="
  208. float: right;
  209. padding: 3px 0;
  210. cursor: pointer;
  211. color: #189eff;
  212. "
  213. @click="goLockDetail"
  214. ></i>
  215. </div>
  216. <el-row>
  217. <MapData
  218. :machineryId="this.machineryId"
  219. ></MapData>
  220. <!-- <el-col :span="9">-->
  221. <!-- <el-table-->
  222. <!-- :data="selectPointList"-->
  223. <!-- :show-header="false"-->
  224. <!-- height="200"-->
  225. <!-- @row-click="handleChangeTable"-->
  226. <!-- v-if="tableVisible"-->
  227. <!-- >-->
  228. <!-- <el-table-column prop="pointName" label=""></el-table-column>-->
  229. <!-- <el-table-column prop="remark" label=""></el-table-column>-->
  230. <!-- </el-table>-->
  231. <!-- <span-->
  232. <!-- v-if="!tableVisible"-->
  233. <!-- style="color: #53a3ef; cursor: pointer"-->
  234. <!-- @click="handleChangeTable"-->
  235. <!-- >锁定站</span-->
  236. <!-- >-->
  237. <!-- <img-->
  238. <!-- src="@/assets/images/MapImage.png"-->
  239. <!-- style="width: 200px; height: 130px; margin-top: 10px"-->
  240. <!-- />-->
  241. <!-- </el-col>-->
  242. <!-- <el-col :span="8">-->
  243. <!-- </el-col>-->
  244. </el-row>
  245. </el-card>
  246. </div>
  247. </div>
  248. <div class="right" style="flex: 1">
  249. <el-card class="box-card" style="margin: 10px; height: 800px;">
  250. <!-- <div slot="header" class="clearfix">-->
  251. <!-- <span>八大步骤</span>-->
  252. <!-- </div>-->
  253. <el-tabs v-model="activeName" type="card" @tab-click="handleTabClick">
  254. <el-tab-pane label="八大步骤" name="eightSteps">
  255. <div
  256. style="
  257. width: 100%;
  258. height: 100%;
  259. display: flex;
  260. justify-content: center;
  261. align-items: center;
  262. "
  263. >
  264. <div style="width: 700px; height: 600px">
  265. <div style="width: 100%; height: 100px">
  266. <div>
  267. <!-- :show-header="false"-->
  268. <el-table :data="EightStepForm" style="margin-top: 60px">
  269. <el-table-column label="步骤" prop="stepIndex">
  270. <template slot-scope="scope">
  271. <span>第{{ scope.row.stepIndex }}步</span>
  272. </template>
  273. </el-table-column>
  274. <el-table-column label="步骤" prop="number">
  275. <template slot-scope="scope">
  276. <span v-if="scope.row.lockNum !== null">
  277. <!-- <img src="@/assets/images/lockImg.png" alt="" style="width: 12px;height:13px;margin-top: 5px;">-->
  278. <i class="el-icon-lock">{{ scope.row.lockNum }}</i>
  279. </span>
  280. <span v-if="scope.row.userNum !== null">
  281. <i class="el-icon-user">{{ scope.row.userNum }}</i>
  282. </span>
  283. <span v-if="scope.row.conflictJobNum !== null">
  284. <i class="el-icon-s-claim">{{
  285. scope.row.conflictJobNum
  286. }}</i>
  287. </span>
  288. </template>
  289. </el-table-column>
  290. <el-table-column label="状态" prop="stepStatus">
  291. <template slot-scope="scope">
  292. <!-- 判断逻辑 -->
  293. <span
  294. v-if="
  295. scope.row.stepIndex == '3' &&
  296. (scope.row.stepStatus !== '1' ||
  297. !isStepFourExecuted)
  298. "
  299. >
  300. <el-button
  301. disabled
  302. type="primary"
  303. plain
  304. size="small"
  305. @click="addInside(scope.row)"
  306. >
  307. 分配
  308. </el-button>
  309. </span>
  310. <span
  311. v-if="
  312. scope.row.stepIndex == '3' &&
  313. scope.row.stepStatus === '1' &&
  314. isStepFourExecuted
  315. "
  316. >
  317. <span
  318. style="
  319. display: inline-block;
  320. width: 8px;
  321. height: 8px;
  322. margin: 1%;
  323. border-radius: 50%;
  324. background: #6aabfb;
  325. "
  326. ></span>
  327. <span>已执行</span>
  328. </span>
  329. <!-- 其他步骤 -->
  330. <span
  331. v-if="
  332. scope.row.stepIndex != '3' &&
  333. scope.row.stepStatus !== '1'
  334. "
  335. >
  336. <el-button
  337. disabled
  338. type="primary"
  339. plain
  340. size="small"
  341. @click="addInside(scope.row)"
  342. >
  343. 执行
  344. </el-button>
  345. </span>
  346. <span
  347. v-if="
  348. scope.row.stepIndex != '3' &&
  349. scope.row.stepStatus === '1'
  350. "
  351. >
  352. <span
  353. style="
  354. display: inline-block;
  355. width: 8px;
  356. height: 8px;
  357. margin: 1%;
  358. border-radius: 50%;
  359. background: #6aabfb;
  360. "
  361. ></span>
  362. <span>已执行</span>
  363. </span>
  364. </template>
  365. </el-table-column>
  366. <el-table-column
  367. label="内容"
  368. prop="stepContent"
  369. width="300"
  370. ></el-table-column>
  371. <el-table-column label="详情" prop="">
  372. <template slot-scope="scope">
  373. <span
  374. v-if="
  375. scope.row.stepIndex == '5' ||
  376. scope.row.stepIndex == '1' ||
  377. scope.row.stepIndex == '8'
  378. "
  379. >
  380. <el-button
  381. type="text"
  382. size="small"
  383. @click="checkDetail(scope.row)"
  384. >查看</el-button
  385. >
  386. </span>
  387. </template>
  388. </el-table-column>
  389. </el-table>
  390. </div>
  391. </div>
  392. </div>
  393. </div>
  394. </el-tab-pane>
  395. <el-tab-pane label="作业日志" name="jobLogs">
  396. <div class="joblogBox">
  397. <div class="joblogCon">
  398. <!--顶部日志内容-->
  399. <div class="joblogTop">
  400. <p v-for="(item, index) in filteredJoblogList" :key="index">
  401. <span v-html="renderLogContent(item.operationContent)"></span>
  402. </p>
  403. </div>
  404. <!-- 底部过滤条件-->
  405. <div class="bottomCheck">
  406. <el-checkbox
  407. :indeterminate="isIndeterminate"
  408. :checked="checkAlljoblog"
  409. @change="handleCheckAllChange"
  410. style="margin:3px 25px;font-size: 16px"
  411. >
  412. 全部
  413. </el-checkbox>
  414. <!-- 多选项 -->
  415. <el-checkbox-group
  416. v-model="checkedJoblogs"
  417. @change="handleCheckedJoblogsChange"
  418. class="big-checkbox"
  419. >
  420. <el-checkbox
  421. v-for="item in jobLogtypes"
  422. :label="item.value"
  423. :key="item.value"
  424. class="big-checkbox"
  425. >
  426. {{ item.label }}
  427. </el-checkbox>
  428. </el-checkbox-group>
  429. </div>
  430. </div>
  431. </div>
  432. </el-tab-pane>
  433. </el-tabs>
  434. <el-button style="float: right" type="primary" @click="finshJobticket"
  435. >结束作业
  436. </el-button>
  437. <el-button
  438. style="float: right; margin-right: 10px"
  439. type="danger"
  440. @click="cancelJobticket"
  441. >取消作业
  442. </el-button>
  443. </el-card>
  444. </div>
  445. </div>
  446. <!-- 作业日志检索内容中未选中类型的新消息-->
  447. <el-dialog
  448. :visible.sync="JoblogdialogVisible"
  449. title="新日志提醒"
  450. width="50%"
  451. :close-on-click-modal="true"
  452. >
  453. <div class="joblogTop1">
  454. <p>
  455. <span v-html="renderLogContent(dialogLog.operationContent)"></span>
  456. </p>
  457. </div>
  458. </el-dialog>
  459. <!-- 添加或修改外部人员对话框 -->
  460. <el-dialog :visible.sync="open" width="1400px" append-to-body>
  461. <div slot="title" class="dialog-title">
  462. <i></i>
  463. <span class="title">添加人员</span>
  464. </div>
  465. <el-form
  466. ref="dialogForm"
  467. :model="dialogForm"
  468. :rules="rules"
  469. label-width="70px"
  470. >
  471. <el-row>
  472. <el-form-item label="上锁人" prop="locker">
  473. <el-select
  474. v-model="dialogForm.locker"
  475. placeholder="上锁人"
  476. clearable
  477. style="width: 230px"
  478. @change="handlelockerChage"
  479. @clear="handlelockerClear"
  480. >
  481. <el-option
  482. v-for="dict in this.listLockerOption"
  483. :key="dict.value"
  484. :label="dict.label"
  485. :value="dict.value"
  486. />
  487. </el-select>
  488. </el-form-item>
  489. </el-row>
  490. <el-row style="display: flex; justify-content: space-between">
  491. <el-col :span="7">
  492. <h3>选中人员列表</h3>
  493. <el-table :data="AllUserTable" stripe height="400">
  494. <!-- <el-table-column type="selection" width="55" align="center"/>-->
  495. <!-- <el-table-column prop="userId" label="外部人员Id">-->
  496. <!-- </el-table-column>-->
  497. <el-table-column prop="userName" label="姓名">
  498. <template slot-scope="scope">
  499. <span style="color: #2a87ff">{{ scope.row.userName }}</span>
  500. </template>
  501. </el-table-column>
  502. <el-table-column prop="userType" label="来源">
  503. <template slot-scope="scope">
  504. <span style="color: #2a87ff">{{
  505. scope.row.userType == '0' ? '内部' : '外部'
  506. }}</span>
  507. </template>
  508. </el-table-column>
  509. <!-- <el-table-column label="操作" width="80">-->
  510. <!-- <template slot-scope="scope">-->
  511. <!-- <el-button-->
  512. <!-- v-no-more-click-->
  513. <!-- @click.native.prevent="-->
  514. <!-- deleteRow(scope.$index, AllUserTable)-->
  515. <!-- "-->
  516. <!-- type="text"-->
  517. <!-- size="small"-->
  518. <!-- >-->
  519. <!-- 移除-->
  520. <!-- </el-button>-->
  521. <!-- </template>-->
  522. <!-- </el-table-column>-->
  523. </el-table>
  524. </el-col>
  525. <!-- 内部共锁人-->
  526. <el-col :span="7">
  527. <h3>内部共锁人列表</h3>
  528. <el-table
  529. :data="insideTableData"
  530. stripe
  531. ref="insideTable"
  532. height="400"
  533. @selection-change="InSelectionChange"
  534. :header-cell-style="{
  535. 'background-color': '#afccfd',
  536. color: 'white',
  537. }"
  538. >
  539. <el-table-column type="selection" width="55" align="center"/>
  540. <el-table-column
  541. prop="userId"
  542. label="内部人员Id"
  543. ></el-table-column>
  544. <el-table-column prop="nickName" label="姓名">
  545. <template slot-scope="scope">
  546. <span style="color: #2a87ff">{{ scope.row.nickName }}</span>
  547. </template>
  548. </el-table-column>
  549. <!-- 添加搜索条件的列 -->
  550. <el-table-column label="搜索">
  551. <template slot="header">
  552. <el-input
  553. placeholder="搜索姓名"
  554. v-model="insideSearchQuery"
  555. size="small"
  556. @input="filterInsideTable"
  557. style="width: 90px"
  558. />
  559. </template>
  560. </el-table-column>
  561. </el-table>
  562. </el-col>
  563. <el-col :span="7">
  564. <h3>外部共锁人列表</h3>
  565. <el-table
  566. :data="outsideTableData"
  567. stripe
  568. ref="outsideTable"
  569. height="400"
  570. @selection-change="OutSelectionChange"
  571. :header-cell-style="{
  572. 'background-color': '#fc3d49',
  573. color: 'white',
  574. }"
  575. >
  576. <el-table-column type="selection" width="55" align="center"/>
  577. <el-table-column
  578. prop="userId"
  579. label="外部人员Id"
  580. ></el-table-column>
  581. <el-table-column prop="nickName" label="姓名">
  582. <template slot-scope="scope">
  583. <span style="color: #2a87ff">{{ scope.row.nickName }}</span>
  584. </template>
  585. </el-table-column>
  586. <!-- 添加搜索条件的列 -->
  587. <el-table-column label="搜索">
  588. <template slot="header">
  589. <el-input
  590. placeholder="搜索姓名"
  591. v-model="outsideSearchQuery"
  592. size="small"
  593. @input="filterOutsideTable"
  594. style="width: 90px"
  595. />
  596. </template>
  597. </el-table-column>
  598. </el-table>
  599. </el-col>
  600. </el-row>
  601. </el-form>
  602. <div slot="footer" class="dialog-footer">
  603. <el-button v-no-more-click type="primary" @click="confirmAddUser"
  604. >确认
  605. </el-button>
  606. <el-button v-no-more-click @click="cancel">取 消</el-button>
  607. </div>
  608. </el-dialog>
  609. <!-- 第五步查看作业详情弹窗-->
  610. <el-dialog :visible.sync="FiveDetailvisible" width="1000px" append-to-body>
  611. <el-row>
  612. <el-card class="box-cardStatus">
  613. <div slot="header" class="clearfix">
  614. <span style="font-weight: bolder">作业状态</span>
  615. </div>
  616. <el-table
  617. :data="jobTicket"
  618. :header-cell-style="{ 'text-align': 'center' }"
  619. :cell-style="{ 'text-align': 'center' }"
  620. >
  621. <el-table-column label="作业编号" prop="ticketId">
  622. </el-table-column>
  623. <el-table-column label="作业名称" prop="ticketName">
  624. </el-table-column>
  625. <el-table-column label="状态" align="center" prop="ticketStatus">
  626. <template slot-scope="scope">
  627. <dict-tag
  628. :options="dict.type.ticket_status"
  629. :value="scope.row.ticketStatus"
  630. />
  631. </template>
  632. </el-table-column>
  633. <el-table-column label="上锁钥匙" prop="lockKeyName">
  634. </el-table-column>
  635. <el-table-column label="解锁钥匙" prop="colockKeyName">
  636. </el-table-column>
  637. </el-table>
  638. </el-card>
  639. </el-row>
  640. <el-row>
  641. <el-col :span="7" style="height: 400px">
  642. <el-card class="box-card1">
  643. <div slot="header" class="clearfix">
  644. <span style="font-weight: bolder">人员状态</span>
  645. </div>
  646. <el-table :data="lockUserList">
  647. <el-table-column label="上锁人" prop="userName"></el-table-column>
  648. <el-table-column label="状态" align="center" prop="jobStatus">
  649. <template slot-scope="scope">
  650. <div
  651. class="box"
  652. style="
  653. width: 30px;
  654. height: 30px;
  655. border: 1px solid black;
  656. background-color: white;
  657. margin: 0 auto;
  658. "
  659. >
  660. <span
  661. v-if="
  662. scope.row.jobStatus == 0 ||
  663. scope.row.jobStatus == 1 ||
  664. scope.row.jobStatus == 2 ||
  665. scope.row.jobStatus == 3
  666. "
  667. ></span>
  668. <!-- 显示错号 -->
  669. <span
  670. v-else-if="scope.row.jobStatus == 4"
  671. style="font-size: 20px; line-height: 30px"
  672. >🔒</span
  673. >
  674. <!-- 显示对号 -->
  675. <span
  676. v-else-if="scope.row.jobStatus == 5"
  677. style="font-size: 20px; line-height: 30px"
  678. >✓</span
  679. >
  680. </div>
  681. </template>
  682. </el-table-column>
  683. </el-table>
  684. </el-card>
  685. <el-card class="box-cardgsr">
  686. <el-table :data="colockUserList">
  687. <el-table-column label="共锁人" prop="userName"></el-table-column>
  688. <el-table-column label="状态" align="center" prop="jobStatus">
  689. <template slot-scope="scope">
  690. <div
  691. class="box"
  692. style="
  693. width: 30px;
  694. height: 30px;
  695. border: 1px solid black;
  696. background-color: white;
  697. margin: 0 auto;
  698. "
  699. >
  700. <span
  701. v-if="
  702. scope.row.jobStatus == 0 ||
  703. scope.row.jobStatus == 1 ||
  704. scope.row.jobStatus == 2 ||
  705. scope.row.jobStatus == 3
  706. "
  707. ></span>
  708. <!-- 显示错号 -->
  709. <span
  710. v-else-if="scope.row.jobStatus == 4"
  711. style="font-size: 20px; line-height: 30px"
  712. >🔒</span
  713. >
  714. <!-- 显示对号 -->
  715. <span
  716. v-else-if="scope.row.jobStatus == 5"
  717. style="font-size: 20px; line-height: 30px"
  718. >✓</span
  719. >
  720. </div>
  721. </template>
  722. </el-table-column>
  723. </el-table>
  724. </el-card>
  725. </el-col>
  726. <el-col :span="6">
  727. <el-card class="box-card2">
  728. <div slot="header" class="clearfix">
  729. <span style="font-weight: bolder">隔离点状态</span>
  730. </div>
  731. <el-table :data="ticketPointsList">
  732. <el-table-column label="隔离点" prop="pointName" width="80">
  733. </el-table-column>
  734. <el-table-column label="状态" align="center" prop="pointStatus">
  735. <template slot-scope="scope">
  736. <div
  737. class="box"
  738. style="
  739. width: 30px;
  740. height: 30px;
  741. border: 1px solid black;
  742. background-color: white;
  743. margin: 0 auto;
  744. "
  745. >
  746. <span v-if="scope.row.pointStatus == 0" style=""></span>
  747. <!-- 显示错号 -->
  748. <span
  749. v-else-if="scope.row.pointStatus == 1"
  750. style="font-size: 20px; line-height: 30px"
  751. >🔒</span
  752. >
  753. <!-- 显示对号 -->
  754. <span
  755. v-else-if="scope.row.pointStatus == 2"
  756. style="font-size: 20px; line-height: 30px"
  757. >✓</span
  758. >
  759. </div>
  760. </template>
  761. </el-table-column>
  762. <el-table-column label="挂锁名称" prop="lockName">
  763. </el-table-column>
  764. <el-table-column
  765. label="锁具机构"
  766. prop="locksetName"
  767. ></el-table-column>
  768. </el-table>
  769. </el-card>
  770. </el-col>
  771. </el-row>
  772. <div slot="footer" class="dialog-footer">
  773. <el-button v-no-more-click @click="cancel">关 闭</el-button>
  774. </div>
  775. </el-dialog>
  776. <!-- 第八步查看影响作业票-->
  777. <el-dialog
  778. :visible.sync="EightDetailvisible"
  779. title="受影响作业票"
  780. width="650px"
  781. append-to-body
  782. >
  783. <el-table :data="AffectedTickets">
  784. <el-table-column label="作业票编号" prop="ticketId"></el-table-column>
  785. <el-table-column label="作业票名称" prop="ticketName" width="220">
  786. </el-table-column>
  787. <el-table-column label="作业票状态" prop="ticketStatus">
  788. <template slot-scope="scope">
  789. <dict-tag
  790. :options="dict.type.ticket_status"
  791. :value="scope.row.ticketStatus"
  792. />
  793. </template>
  794. </el-table-column>
  795. <el-table-column label="作业票类型" prop="ticketType">
  796. <template slot-scope="scope">
  797. <dict-tag
  798. :options="dict.type.sop_type"
  799. :value="scope.row.ticketType"
  800. />
  801. </template>
  802. </el-table-column>
  803. </el-table>
  804. <div slot="footer" class="dialog-footer">
  805. <el-button v-no-more-click @click="cancel">关 闭</el-button>
  806. </div>
  807. </el-dialog>
  808. <!-- 锁定站放大按钮呈现diaolog-->
  809. <el-dialog
  810. :visible.sync="LockDetailvisible"
  811. title="锁定站信息"
  812. width="1200px"
  813. append-to-body
  814. class="elDialog"
  815. >
  816. <!-- 这里为了没有地图数据而设置的-->
  817. <el-row>
  818. <el-col :span="6">
  819. <div>
  820. <el-table :data="selectPointList" :show-header="false" style="width: 200px;height: 175px;">
  821. <el-table-column
  822. prop="pointName"
  823. label=""
  824. ></el-table-column>
  825. <el-table-column
  826. prop="remark"
  827. label=""
  828. ></el-table-column>
  829. </el-table>
  830. </div>
  831. </el-col>
  832. <el-col :span="18">
  833. <LockDetail
  834. :machineryId="this.machineryId"
  835. ></LockDetail>
  836. </el-col>
  837. </el-row>
  838. </el-dialog>
  839. <!-- 地图数字打开正在执行作业票页面-->
  840. <el-dialog
  841. :visible.sync="ticketVisible"
  842. :title="`${currentWorkstationName} 进行中的作业`"
  843. width="700px"
  844. append-to-body
  845. class="elDialog"
  846. >
  847. <el-table :data="TicketListPage[currentWorkstationId] || []">
  848. <el-table-column label="岗位" prop="workstationId" width="70">
  849. <template slot-scope="scope">
  850. {{ currentWorkstationName }}
  851. </template>
  852. </el-table-column>
  853. <el-table-column label="编号" prop="ticketName" width="50">
  854. <template slot-scope="scope" style="width: 50px">
  855. {{ scope.$index + 1 }}
  856. </template>
  857. </el-table-column>
  858. <el-table-column label="图标" prop="ticketType" width="100">
  859. <template slot-scope="scope">
  860. <img :src="imageMap[scope.row.ticketType]" style="width:30px;height:30px"/>
  861. </template>
  862. </el-table-column>
  863. <el-table-column label="作业票名称" prop="ticketName"></el-table-column>
  864. <el-table-column label="操作" width="80">
  865. <template slot-scope="scope">
  866. <el-button type="text" @click="handleTicketClick(scope.row)">查看</el-button>
  867. </template>
  868. </el-table-column>
  869. </el-table>
  870. </el-dialog>
  871. </div>
  872. </template>
  873. <script>
  874. import { listMarsDept } from '@/api/system/marsdept'
  875. import { getTechnologyInfo, listTechnology } from '@/api/system/machinery'
  876. import Template from '@/views/print/printtemplate/list.vue'
  877. import { getIsMarsSopPage } from '@/api/mes/sop/sopindex'
  878. import {
  879. addJobTicket,
  880. addJobUsers,
  881. getJobTicketInfo,
  882. getStepEight,
  883. getStepInfo,
  884. getWorkstationTicketList,
  885. listJobTicket,
  886. selectSopTypeByMachineryId,
  887. updateJobStep,
  888. updateJobToCancel,
  889. updateJobToFinish,
  890. getIsTicketOperLogPage
  891. } from '@/api/mes/job/job'
  892. import MapData from '@/views/mes/job/jobm/Mapdata.vue'
  893. import { getUserList } from '@/api/mes/workCard'
  894. import { getJobPlayTicketInfo } from '@/api/mes/jobplay/jobplay'
  895. import { selectIsLotoStationById, selectLotoMapById } from '@/api/mes/lotoStation/lotoStation'
  896. import LockDetail from '@/views/mes/job/jobm/LockDetail.vue'
  897. import { selectIsMapById } from '@/api/system/mapconfig'
  898. import { getIsMapPointPage } from '@/api/system/mappoint'
  899. import { getIsSystemAttributeByKey } from '@/api/system/configuration'
  900. import { getDicts } from '@/api/system/dict/data'
  901. import {connectWebsocket} from "@/utils/websocket";
  902. import { nextTick } from 'vue';
  903. const joblogsOptions = [];
  904. export default {
  905. name: 'NewSop',
  906. components: { Template, MapData, LockDetail },
  907. dicts: ['sop_type', 'ticket_status', 'ticket_user_type'],
  908. data() {
  909. return {
  910. ticketVisible: false,//正在进行作业票的弹窗标记
  911. currentWorkstationId: null,//当前点击的岗位Id
  912. currentWorkstationName: null,//当前点击的岗位的名称
  913. jobconfig: null,//接口传递地图与宽高数据
  914. jobconfigPoint: null,//接口传递的岗位位置信息
  915. imageMap: {
  916. 0: 'ticketType0', //维修
  917. 1: 'ticketType1', //Pm
  918. 2: 'ticketType2', //开收班
  919. 3: 'ticketType3', //清洁
  920. 4: 'ticketType4', //换产
  921. 5: 'ticketType5'//更多
  922. },
  923. tabPosition: 'first',
  924. selectedOption: '',
  925. selectedRow: null, //设备工艺 单选表格
  926. marsSopPage: [], //岗位对应sop列表--现在准备存放设备工艺 而不是选设备工艺的sop
  927. technologyList: [], //设备工艺表格数据
  928. marsSopTitle: '', //岗位后 对应展示sop
  929. marsDeptList: [],
  930. listLockerOption: [], //上锁人下拉数据
  931. form: null, //存储选中的设备工艺sop列表数据
  932. machineryImg: null, //第三步作业执行渲染设备工艺图片
  933. machineryId: null, //第三步作业执行渲染电柜的数据
  934. EightStepForm: null, //八大步骤详细内容
  935. ticketId: null, //新增之后 编辑需要使用的id
  936. open: false, //添加人员
  937. openColocker: false, //添加内外部人员
  938. outsideTableData: [], //外部人员表格
  939. insideTableData: [], //内部人员表格
  940. insideTableDataOrign: [], //内部原始数据
  941. outsideTableDataOrign: [], //外部原始数据
  942. selectedInsideRows: [], // 存储选中的内部人员的 userId
  943. selectedOutsideRows: [], // 存储选中的外部人员的 userId
  944. insideSearchQuery: '', // 内部搜索条件
  945. outsideSearchQuery: '', // 外部搜索条件
  946. AllUserTable: [], //所有选中人员列表
  947. dialogForm: {
  948. nickName: '',
  949. username: ''
  950. },
  951. // 弹出层标题
  952. title: '',
  953. // 弹框中显示的form表单内容
  954. newticketUserDTOList: [], //为了上锁人单独传递数据
  955. FiveDetailvisible: false, //第五步详情弹窗
  956. ticketPointsList: [], //第五步详情的隔离点信息
  957. colockUserList: [], //第五步详情的共锁人信息
  958. lockUserList: [], //第五步详情的上锁人信息
  959. jobTicket: [], //第五步详情的作业票信息
  960. TicketListPage: [], //作业票列表page接口传递的数据 底图循环渲染图标 RR岗位作业票
  961. selectPointList: [], //隔离点选中的表格渲染
  962. scaleFactor: 1, // 缩放比例,初始值为1
  963. EightDetailvisible: false, //第八步受影响作业票
  964. AffectedTickets: [], //第八步查看详情信息表格
  965. sopTypeOption: [],
  966. sopId: null,
  967. workstationId: null, //岗位Id
  968. rules: {
  969. locker: [
  970. { required: true, message: '上锁人不能为空', trigger: 'change' }
  971. ]
  972. },
  973. tableVisible: true, //表格显示
  974. LockDetailvisible: false, //锁定站详情'
  975. deptXLGPosition: {
  976. left: 500,
  977. top: 260,
  978. width: 65,
  979. height: 25
  980. },
  981. deptCCOPosition: {
  982. left: 670,
  983. top: 480,
  984. width: 65,
  985. height: 25
  986. },
  987. loading: false,
  988. LoadStatus: '',//给LockDetail加弹窗加载
  989. activeName: 'eightSteps', // 默认展示“八大步骤”
  990. joblogList:[],//原始作业日志数据列表
  991. filteredJoblogList: [], // 过滤后日志
  992. // 作业日志底部查询
  993. isIndeterminate: false,
  994. checkedJoblogs: [],
  995. jobLogtypes: [],
  996. joblogsOptions: [], // 只存所有 dictValue,用于全选逻辑,
  997. checkAlljoblog: true,
  998. JoblogdialogVisible: false,
  999. dialogLog: '',
  1000. }
  1001. },
  1002. computed: {
  1003. isStepFourExecuted() {
  1004. const stepFour = this.EightStepForm.find((step) => step.stepIndex == '4')
  1005. return stepFour && stepFour.stepStatus === '1'
  1006. },
  1007. },
  1008. watch: {
  1009. tabPosition: function(val, oldVal) {
  1010. if (val == 'first') {
  1011. this.sopTypeOption = []
  1012. this.technologyList = []
  1013. this.sopId = null
  1014. this.getList()
  1015. }
  1016. if (val == 'third') {
  1017. this.loading = true
  1018. setTimeout(() => {
  1019. this.loading = false
  1020. }, 3000)
  1021. }
  1022. },
  1023. 'dialogForm.locker': function(val) {
  1024. if (val) {
  1025. this.handlelockerChage(val)
  1026. console.log('我制定了')
  1027. }
  1028. },
  1029. "ticketId": function(val) {
  1030. if(val){
  1031. console.log(this.ticketId,val,'JIANRT')
  1032. this.initWebSocket()
  1033. }
  1034. }
  1035. },
  1036. mounted() {
  1037. this.getList()
  1038. },
  1039. methods: {
  1040. // 正在进行中作业票点击数字打开弹窗
  1041. handleTicketDialogVisible(entityId, entityName) {
  1042. this.ticketVisible = true
  1043. this.currentWorkstationId = entityId
  1044. this.currentWorkstationName = entityName
  1045. },
  1046. // 锁定站信息部分表格收缩
  1047. // handleChangeTable() {
  1048. // this.tableVisible = !this.tableVisible
  1049. // },
  1050. // 锁定站进入详细页面
  1051. goLockDetail() {
  1052. // this.$router.push({
  1053. // name:'LockDetail',params: { machineryId: this.machineryId }
  1054. // },)
  1055. this.LockDetailvisible = true
  1056. this.LoadStatus = this.$loading({
  1057. target: '.elDialog .el-dialog '
  1058. })
  1059. setTimeout(() => {
  1060. this.LoadStatus.close()
  1061. }, 3000)
  1062. },
  1063. // 内部人员搜索
  1064. filterInsideTable() {
  1065. const query = this.insideSearchQuery.trim().toLowerCase()
  1066. const filteredData = this.insideTableDataOrign.filter((item) =>
  1067. item.nickName.toLowerCase().includes(query)
  1068. )
  1069. this.insideTableData = filteredData
  1070. // 如果输入框为空或null,回显选中状态
  1071. if (!this.insideSearchQuery) {
  1072. // 筛选完毕后,勾选 AllUserTable 中有的用户
  1073. this.insideTableData.forEach((user) => {
  1074. const matchingUser = this.AllUserTable.find(
  1075. (u) => u.userId == user.userId
  1076. )
  1077. console.log('Matching User:', matchingUser) // 输出匹配结果
  1078. if (matchingUser) {
  1079. this.$nextTick(() => {
  1080. console.log(`Selecting user: ${user.nickName}`)
  1081. this.$refs.insideTable.toggleRowSelection(user, true)
  1082. })
  1083. } else {
  1084. this.$nextTick(() => {
  1085. console.log(`Deselecting user: ${user.nickName}`)
  1086. this.$refs.insideTable.toggleRowSelection(user, false)
  1087. })
  1088. }
  1089. })
  1090. }
  1091. },
  1092. // 外部人员搜索
  1093. filterOutsideTable() {
  1094. const query = this.outsideSearchQuery.trim().toLowerCase()
  1095. const filteredData = this.outsideTableDataOrign.filter((item) =>
  1096. item.nickName.toLowerCase().includes(query)
  1097. )
  1098. this.outsideTableData = filteredData
  1099. // 如果输入框为空或null,回显选中状态
  1100. if (!this.outsideSearchQuery) {
  1101. // 筛选完毕后,勾选 AllUserTable 中有的用户
  1102. this.outsideTableData.forEach((user) => {
  1103. const matchingUser = this.AllUserTable.find(
  1104. (u) => u.userId == user.userId
  1105. )
  1106. console.log('Matching User:', matchingUser) // 输出匹配结果
  1107. if (matchingUser) {
  1108. this.$nextTick(() => {
  1109. console.log(`Selecting user: ${user.nickName}`)
  1110. this.$refs.outsideTable.toggleRowSelection(user, true)
  1111. })
  1112. } else {
  1113. this.$nextTick(() => {
  1114. console.log(`Deselecting user: ${user.nickName}`)
  1115. this.$refs.outsideTable.toggleRowSelection(user, false)
  1116. })
  1117. }
  1118. })
  1119. }
  1120. },
  1121. handleTicketClick(data) {
  1122. console.log(data, '查看作业票详情')
  1123. this.ticketVisible = false
  1124. this.ticketId = data.ticketId
  1125. this.tabPosition = 'third'
  1126. this.workstationId = data.workstationId
  1127. getStepInfo(this.ticketId).then((res) => {
  1128. this.EightStepForm = res.data
  1129. console.log(res, '作业票-详细信息')
  1130. })
  1131. this.machineryId = data.machineryId
  1132. // 获取设备工艺图
  1133. getTechnologyInfo(data.machineryId).then((res) => {
  1134. this.machineryImg = res.data.machineryImg
  1135. // 获取电柜选中隔离点
  1136. const lotoId = res.data.lotoId
  1137. const selectPointsIds = res.data.pointIdList
  1138. selectLotoMapById(lotoId).then((response) => {
  1139. console.log(response, '电柜信息--NewMarsJob')
  1140. this.selectPointList = response.data.filter((item) =>
  1141. selectPointsIds.includes(item.pointId)
  1142. )
  1143. console.log(this.selectPointList, '拿到的选中隔离点数据')
  1144. })
  1145. })
  1146. },
  1147. getList() {
  1148. const data = {
  1149. pages: 1,
  1150. size: -1
  1151. }
  1152. getWorkstationTicketList(data).then((res) => {
  1153. console.log(res, '查看-正在进行中作业票列表')
  1154. let ticketsByWorkstation = {}
  1155. res.data.forEach((ticket) => {
  1156. if (!ticketsByWorkstation[ticket.workstationId]) {
  1157. ticketsByWorkstation[ticket.workstationId] = []
  1158. }
  1159. ticketsByWorkstation[ticket.workstationId].push(ticket)
  1160. })
  1161. this.TicketListPage = ticketsByWorkstation
  1162. })
  1163. const sysAttrKey1 = 'icon.permit.maintenance'//维修
  1164. const sysAttrKey2 = 'icon.permit.pm'//Pm
  1165. const sysAttrKey3 = 'icon.permit.shift'//开收班
  1166. const sysAttrKey4 = 'icon.permit.clean'//清洁
  1167. const sysAttrKey5 = 'icon.permit.changeover'//换产
  1168. const sysAttrKey6 = 'icon.permit.more'//更多
  1169. Promise.all([
  1170. getIsSystemAttributeByKey(sysAttrKey1),
  1171. getIsSystemAttributeByKey(sysAttrKey2),
  1172. getIsSystemAttributeByKey(sysAttrKey3),
  1173. getIsSystemAttributeByKey(sysAttrKey4),
  1174. getIsSystemAttributeByKey(sysAttrKey5),
  1175. getIsSystemAttributeByKey(sysAttrKey6)
  1176. ]).then((responses) => {
  1177. this.imageMap[0] = responses[0].data.sysAttrValue // 维修
  1178. this.imageMap[1] = responses[1].data.sysAttrValue // Pm
  1179. this.imageMap[2] = responses[2].data.sysAttrValue // 开收班
  1180. this.imageMap[3] = responses[3].data.sysAttrValue // 清洁
  1181. this.imageMap[4] = responses[4].data.sysAttrValue // 换产
  1182. this.imageMap[5] = responses[5].data.sysAttrValue//更多
  1183. console.log(this.imageMap, 'imageMap')
  1184. })
  1185. // 这里注释掉是为了 初始化跳转数据为空
  1186. const data1 = {
  1187. pages: 1,
  1188. size: -1,
  1189. machineryType: '工艺'
  1190. }
  1191. // listTechnology(data1).then((res) => {
  1192. // console.log(res, 'technologyList')
  1193. // this.technologyList = res.data.records
  1194. // })
  1195. listMarsDept(data).then((res) => {
  1196. console.log(res, 'marsDeptList')
  1197. this.marsDeptList = res.data.records
  1198. })
  1199. // 获取基础数据里配置的作业票地图获取mapId
  1200. const sysAttrKey = 'sys.map.permit'
  1201. getIsSystemAttributeByKey(sysAttrKey).then((response) => {
  1202. const sysAttrValue = response.data.sysAttrValue
  1203. // 这里获取全局配置地图参数里的作业票地图
  1204. selectIsMapById(sysAttrValue).then((res) => {
  1205. console.log(res, '作业票地图 图片数据')
  1206. this.jobconfig = res.data
  1207. })
  1208. })
  1209. const dataMap = {
  1210. pages: 1,
  1211. size: -1,
  1212. mapId: 1
  1213. }
  1214. getIsMapPointPage(dataMap).then((res) => {
  1215. console.log(res, '作业票地图岗位位置信息接口')
  1216. this.jobconfigPoint = res.data
  1217. })
  1218. },
  1219. // sop类型 el-radio
  1220. handleSopchange(data) {
  1221. const sopType = this.sopTypeOption.find((item) => item.label == data)
  1222. const data1 = {
  1223. pages: 1,
  1224. size: -1,
  1225. machineryId: this.machineryId,
  1226. sopType: sopType.value
  1227. }
  1228. getIsMarsSopPage(data1).then((res) => {
  1229. console.log(res, 'SopPage')
  1230. this.sopId = res.data.records[0].sopId
  1231. })
  1232. },
  1233. // 作业票切换
  1234. handelChange(val, workstationId, workstationName) {
  1235. console.log(val)
  1236. this.marsSopTitle = workstationName
  1237. this.workstationId = workstationId
  1238. if (workstationId) {
  1239. const data = {
  1240. pages: 1,
  1241. size: -1,
  1242. workstationId: workstationId,
  1243. machineryType: '工艺'
  1244. }
  1245. listTechnology(data).then((res) => {
  1246. console.log(res, '设备工艺---列表')
  1247. this.technologyList = res.data.records
  1248. })
  1249. // getIsMarsSopPage(data).then((res) => {
  1250. // console.log(res, 'SopPage')
  1251. // this.marsSopPage = res.data.records
  1252. // })
  1253. }
  1254. if (!this.sopId && val == 'third') {
  1255. this.$message.error('请先选择对应设备工艺或sop类型')
  1256. return
  1257. }
  1258. this.tabPosition = val
  1259. if (val == 'third') {
  1260. this.selectedOption = ''
  1261. this.sopTypeOption = []
  1262. console.log(this.sopId, 'this.sopId')
  1263. if (this.sopId) {
  1264. const data = {
  1265. sopId: this.sopId
  1266. }
  1267. addJobTicket(data).then((res) => {
  1268. console.log(res, '作业票新增')
  1269. this.$message.success('作业开始执行')
  1270. this.ticketId = res.data
  1271. getStepInfo(this.ticketId).then((res) => {
  1272. this.EightStepForm = res.data
  1273. console.log(res, '作业票-详细信息')
  1274. })
  1275. // 获取设备工艺图
  1276. getTechnologyInfo(this.machineryId).then((res) => {
  1277. this.machineryImg = res.data.machineryImg
  1278. // 获取电柜选中隔离点
  1279. const lotoId = res.data.lotoId
  1280. const selectPointsIds = res.data.pointIdList
  1281. selectLotoMapById(lotoId).then((response) => {
  1282. console.log(response, '电柜信息--NewMarsJob')
  1283. this.selectPointList = response.data.filter((item) =>
  1284. selectPointsIds.includes(item.pointId)
  1285. )
  1286. console.log(this.selectPointList, '拿到的选中隔离点数据')
  1287. })
  1288. })
  1289. })
  1290. }
  1291. }
  1292. },
  1293. // 单选选中数据
  1294. handleSelectionChange(selection) {
  1295. console.log(selection, 'mars设备工艺表格多选拿到的数据')
  1296. this.form = selection
  1297. this.machineryId = selection.machineryId
  1298. getTechnologyInfo(selection.machineryId).then((res) => {
  1299. this.machineryImg = res.data.machineryImg
  1300. })
  1301. selectSopTypeByMachineryId(selection.machineryId).then((res) => {
  1302. console.log(res, 'SopTypeByMachineryId')
  1303. this.sopTypeOption = res.data.map((item) => {
  1304. return {
  1305. label: item.dictLabel,
  1306. value: item.dictValue
  1307. }
  1308. })
  1309. })
  1310. },
  1311. // 添加内部人员
  1312. addInside(row) {
  1313. if (row.stepIndex == '3') {
  1314. this.dialogForm.locker = ''
  1315. this.AllUserTable = []
  1316. this.newticketUserDTOList = []
  1317. const roleId = this.dict.type.ticket_user_type.find(
  1318. (item) => item.label == 'jtlocker'
  1319. ) //利用字典值来记录上锁人 共锁人 方便如果修改了值 直接系统更改
  1320. const query1 = {
  1321. pageSize: 10000,
  1322. pageNum: 1,
  1323. workstationId: this.workstationId,
  1324. roleId: roleId.value,
  1325. unitId: 9
  1326. }
  1327. // 上锁人赋值 上锁人 共锁人都要遵循 属于当前工艺 当前作业负责人或者执行人的角色属性
  1328. getUserList(query1).then((res) => {
  1329. // 上锁人下拉数据
  1330. this.listLockerOption = res.rows.map((item) => ({
  1331. label: item.nickName,
  1332. value: item.userId
  1333. }))
  1334. })
  1335. const roleIdColocker = this.dict.type.ticket_user_type.find(
  1336. (item) => item.label == 'jtcolocker'
  1337. ) //利用字典值来记录上锁人 共锁人 方便如果修改了值 直接系统更改
  1338. const query = {
  1339. pageSize: 10000,
  1340. pageNum: 1,
  1341. workstationId: this.workstationId,
  1342. roleId: roleIdColocker.value
  1343. }
  1344. // 共锁人赋值
  1345. getUserList(query).then((res) => {
  1346. // 内部共锁人
  1347. this.insideTableData = res.rows.filter((item) => item.unitId == 9)
  1348. // 外部共锁人
  1349. this.outsideTableData = res.rows.filter((item) => item.unitId != '9')
  1350. // 获取已分配人员数据
  1351. getJobTicketInfo(this.ticketId).then((res) => {
  1352. const assignedUsers = res.data.jobTicketUserList || []
  1353. console.log(assignedUsers, '已分配人员')
  1354. this.dialogForm.locker = assignedUsers
  1355. .filter((item) => item.userRole == 'jtlocker')
  1356. .map((item) => item.userName)
  1357. const newUser = res.data.jobTicketUserList.filter(
  1358. (item) => item.userRole == 'jtlocker'
  1359. )
  1360. this.newticketUserDTOList = [
  1361. ...this.newticketUserDTOList,
  1362. ...newUser
  1363. ]
  1364. // 更新内部和外部用户的选中状态
  1365. this.$nextTick(() => {
  1366. // 手动选中内部人员
  1367. this.insideTableData.forEach((user) => {
  1368. const isAssigned = assignedUsers.some(
  1369. (assigned) =>
  1370. assigned.userId == user.userId &&
  1371. assigned.userType == '0' &&
  1372. assigned.userRole !== 'jtlocker'
  1373. )
  1374. if (isAssigned) {
  1375. this.$refs.insideTable.toggleRowSelection(user, true)
  1376. }
  1377. })
  1378. // 手动选中外部人员
  1379. this.outsideTableData.forEach((user) => {
  1380. const isAssigned = assignedUsers.some(
  1381. (assigned) =>
  1382. assigned.userId == user.userId &&
  1383. assigned.userType == '1' &&
  1384. assigned.userRole !== 'jtlocker'
  1385. )
  1386. if (isAssigned) {
  1387. this.$refs.outsideTable.toggleRowSelection(user, true)
  1388. }
  1389. })
  1390. this.insideTableDataOrign = [...this.insideTableData]
  1391. this.outsideTableDataOrign = [...this.outsideTableData]
  1392. this.open = true
  1393. })
  1394. })
  1395. })
  1396. } else {
  1397. const data = {
  1398. stepId: row.stepId,
  1399. stepStatus: '1'
  1400. }
  1401. updateJobStep(data).then((res) => {
  1402. this.$message.success('执行成功')
  1403. getStepInfo(this.ticketId).then((res) => {
  1404. this.EightStepForm = res.data
  1405. console.log(res, '作业票-详细信息')
  1406. })
  1407. })
  1408. }
  1409. },
  1410. // 上锁人下拉选择change事件
  1411. handlelockerChage(val) {
  1412. console.log(val, '上锁人chage')
  1413. if (val) {
  1414. // 操作选中角色发生变化
  1415. this.newticketUserDTOList = []
  1416. this.$set(this.dialogForm, this.dialogForm.locker, val)
  1417. } else {
  1418. this.$set(this.dialogForm, this.dialogForm.locker, val)
  1419. }
  1420. this.$forceUpdate()
  1421. const user = this.listLockerOption.find((item) => item.value == val)
  1422. if (user && this.dialogForm.locker !== '') {
  1423. const existingUser = this.listLockerOption.find(
  1424. (u) => u.userName === user.label
  1425. )
  1426. if (!existingUser) {
  1427. this.newticketUserDTOList.push({
  1428. userName: user.label,
  1429. userId: user.value,
  1430. userType: 0,
  1431. userRole: 'jtlocker'
  1432. })
  1433. console.log(this.newticketUserDTOList, '用户')
  1434. } else {
  1435. // console.log('用户已存在', user.label)
  1436. }
  1437. }
  1438. },
  1439. handlelockerClear() {
  1440. this.newticketUserDTOList = []
  1441. console.log(this.newticketUserDTOList, '清除后的用户')
  1442. },
  1443. InSelectionChange(selection) {
  1444. // 移除未选中的内部用户
  1445. this.AllUserTable = this.AllUserTable.filter(
  1446. (user) =>
  1447. user.userType !== 0 ||
  1448. selection.some((item) => item.userId === user.userId)
  1449. )
  1450. // 添加新的内部用户
  1451. selection.forEach((item) => {
  1452. if (
  1453. !this.AllUserTable.some(
  1454. (user) => user.userId === item.userId && user.userType === 0
  1455. )
  1456. ) {
  1457. this.AllUserTable.push({
  1458. userName: item.nickName,
  1459. userId: item.userId,
  1460. userType: 0,
  1461. userRole: 'jtcolocker'
  1462. })
  1463. }
  1464. })
  1465. console.log(this.AllUserTable, '内部人员')
  1466. },
  1467. OutSelectionChange(selection) {
  1468. // 移除未选中的外部用户
  1469. this.AllUserTable = this.AllUserTable.filter(
  1470. (user) =>
  1471. user.userType !== 1 ||
  1472. selection.some((item) => item.userId === user.userId)
  1473. )
  1474. // 添加新的外部用户
  1475. selection.forEach((item) => {
  1476. if (
  1477. !this.AllUserTable.some(
  1478. (user) => user.userId === item.userId && user.userType === 1
  1479. )
  1480. ) {
  1481. this.AllUserTable.push({
  1482. userName: item.nickName,
  1483. userId: item.userId,
  1484. userType: 1,
  1485. userRole: 'jtcolocker'
  1486. })
  1487. }
  1488. })
  1489. console.log(this.AllUserTable, '外部人员')
  1490. },
  1491. confirmAddUser() {
  1492. const data = {
  1493. ticketId: this.ticketId,
  1494. ticketUserDTOList: [...this.AllUserTable, ...this.newticketUserDTOList]
  1495. }
  1496. console.log(data, '添加人员')
  1497. this.$refs.dialogForm.validate((valid) => {
  1498. if (valid) {
  1499. addJobUsers(data).then((res) => {
  1500. console.log(res, '添加人员')
  1501. if (res.data) {
  1502. this.$message.success('分配人员成功')
  1503. this.open = false
  1504. this.AllUserTable = []
  1505. this.dialogForm.locker = ''
  1506. getStepInfo(this.ticketId).then((res) => {
  1507. this.EightStepForm = res.data
  1508. console.log(res, '作业票-详细信息')
  1509. })
  1510. }
  1511. })
  1512. }
  1513. })
  1514. },
  1515. // 人员列表删除
  1516. deleteRow(index, rows) {
  1517. console.log(index, rows, '删除的行')
  1518. const deletedItem = rows[index] // 获取要删除的项
  1519. rows.splice(index, 1) // 从显示的列表中删除
  1520. const formIndex = this.dialogForm.ticketUserDTOList.findIndex(
  1521. (item) => item.userName == deletedItem.userName
  1522. )
  1523. if (formIndex !== -1) {
  1524. this.dialogForm.ticketUserDTOList.splice(formIndex, 1) // 从 form.ticketUserDTOList 中删除
  1525. }
  1526. },
  1527. // 取消按钮
  1528. cancel() {
  1529. this.open = false
  1530. this.FiveDetailvisible = false
  1531. this.EightDetailvisible = false
  1532. },
  1533. // 作业票结束
  1534. finshJobticket() {
  1535. const data = {
  1536. ticketId: this.ticketId
  1537. }
  1538. updateJobToFinish(data).then((res) => {
  1539. console.log(res, '结束作业票')
  1540. if (res.data) {
  1541. this.$message.success('作业票结束')
  1542. this.tabPosition = 'first'
  1543. this.getList()
  1544. }
  1545. })
  1546. },
  1547. // 作业票取消
  1548. cancelJobticket() {
  1549. const data = {
  1550. ticketId: this.ticketId
  1551. }
  1552. updateJobToCancel(data).then((res) => {
  1553. console.log(res, '取消作业票')
  1554. if (res.data) {
  1555. this.$message.success('作业票取消')
  1556. this.tabPosition = 'first'
  1557. this.getList()
  1558. }
  1559. })
  1560. },
  1561. // 查看详情八大步骤
  1562. checkDetail(row) {
  1563. if (row.stepIndex == '5') {
  1564. this.FiveDetailvisible = true
  1565. let ticketId = this.ticketId
  1566. getJobPlayTicketInfo(ticketId).then((res) => {
  1567. console.log(res, '作业执行详细信息')
  1568. this.jobTicket = [res.data.jobTicket].map((item) => ({
  1569. ...item,
  1570. lockKeyName: res.data.lockKeyName,
  1571. colockKeyName: res.data.colockKeyName
  1572. }))
  1573. this.lockUserList = res.data.lockUserList
  1574. this.colockUserList = res.data.colockUserList
  1575. this.ticketPointsList = res.data.ticketPointsList
  1576. })
  1577. } else if (row.stepIndex == '8') {
  1578. let ticketId = this.ticketId
  1579. this.EightDetailvisible = true
  1580. getStepEight(ticketId).then((res) => {
  1581. console.log(res, '第八步查看作业票数据')
  1582. this.AffectedTickets = res.data
  1583. })
  1584. } else if (row.stepIndex == '1') {
  1585. this.$router.push({
  1586. path: '/mes/dv/technology/technologyDetail/CraftDetail',
  1587. query: { machineryId: this.machineryId }
  1588. })
  1589. }
  1590. },
  1591. // 作业日志连接socket获取数据
  1592. initWebSocket(){
  1593. const code= this.ticketId;
  1594. const address='sys.websocket.address'
  1595. getIsSystemAttributeByKey(address).then((res) => {
  1596. // console.log(res, 'websocket地址');
  1597. this.websocketAddress = res.data.sysAttrValue
  1598. const isLocalDev = window.location.hostname === 'localhost'
  1599. const baseAddress = isLocalDev
  1600. ? 'ws://192.168.0.10:9190'
  1601. : this.websocketAddress;
  1602. connectWebsocket(
  1603. `${baseAddress}/websocket/jobTicketLog/${code}`,
  1604. { w: 'S' },
  1605. async (res) => {
  1606. console.log(res, 'websocket接收服务器的作业日志数据');
  1607. if (res !== 'heartbeat') {
  1608. // 判断是否需要弹窗显示
  1609. await this.onNewSocketLog(res); // 👈传入最新的 WebSocket 消息
  1610. await this.getJoblogs(); // 抽出专用接口函数
  1611. }
  1612. },
  1613. (err) => {
  1614. console.log('断开重连');
  1615. }
  1616. );
  1617. }).catch(err => {
  1618. console.error('获取WebSocket地址失败:', err);
  1619. });
  1620. },
  1621. // 查询作业日志接口获取
  1622. async getJoblogs() {
  1623. const joblogdata = {
  1624. ticketId: this.ticketId,
  1625. current: 1,
  1626. size: -1,
  1627. };
  1628. const res = await getIsTicketOperLogPage(joblogdata);
  1629. // console.log('接口返回日志:', res.data.records);
  1630. this.joblogList = res.data.records;
  1631. // ✨强制刷新筛选后的列表
  1632. this.filterJoblogs();
  1633. },
  1634. // 作业日志tab点击事件
  1635. async handleTabClick(tab) {
  1636. if (tab.name === 'jobLogs') {
  1637. await this.getJoblogs()
  1638. }
  1639. const dictRes = await getDicts('job_log_type');
  1640. const dicts = dictRes.data.map(item => ({
  1641. label: item.dictLabel,
  1642. value: String(item.dictValue), // 确保是字符串类型
  1643. }));
  1644. this.jobLogtypes = dicts;
  1645. this.joblogsOptions = dicts.map(item => item.value);
  1646. this.checkedJoblogs = [...this.joblogsOptions]; // 初始化全选
  1647. console.log(this.checkAlljoblog,'选中状态');
  1648. this.checkAlljoblog = true;
  1649. console.log(this.checkAlljoblog,'是否选中');
  1650. this.isIndeterminate = false;
  1651. this.filterJoblogs();
  1652. },
  1653. // 作业日志页面数据展示样式分割
  1654. renderLogContent(content) {
  1655. if (!content) return ''
  1656. // 第一步:先处理 <url>[label] 为 <img> + label
  1657. content = content.replace(/<([^>]+)>\[([^\]]+)\]/g, (match, url, label) => {
  1658. return `<img src="${url}" style="height: 25px; vertical-align: middle;"> <span style="color:#007BFF;margin: 0 3px">${label}</span>`
  1659. })
  1660. // 第二步:处理剩下的 [label],转成蓝色字体
  1661. content = content.replace(/\[([^\]]+)\]/g, '<span style="color:#007BFF;margin: 0 5px">$1</span>')
  1662. return content
  1663. },
  1664. // 作业日志底部筛选功能
  1665. handleCheckedJoblogsChange(val) {
  1666. const checkedCount = val.length;
  1667. this.checkAlljoblog = checkedCount === this.joblogsOptions.length;
  1668. this.isIndeterminate = checkedCount > 0 && checkedCount < this.joblogsOptions.length;
  1669. this.filterJoblogs();
  1670. },
  1671. handleCheckAllChange(val) {
  1672. this.checkedJoblogs = val ? [...this.joblogsOptions] : [];
  1673. this.isIndeterminate = false;
  1674. this.filterJoblogs();
  1675. },
  1676. // 实际日志筛选逻辑
  1677. filterJoblogs() {
  1678. if (this.checkedJoblogs.includes('ALL')) {
  1679. this.filteredJoblogList = this.joblogList;
  1680. } else {
  1681. this.filteredJoblogList = this.joblogList.filter(log =>
  1682. this.checkedJoblogs.includes(String(log.operationType))
  1683. );
  1684. }
  1685. },
  1686. // 作业日志弹框
  1687. parseLogString(logStr) {
  1688. const obj = {};
  1689. const match = logStr.match(/^[^(]+?\((.*)\)$/);
  1690. if (!match) return obj;
  1691. const keyValuePairs = match[1].split(/,\s*(?=\w+=)/); // 处理 "key=value" 中的逗号
  1692. keyValuePairs.forEach(pair => {
  1693. const [key, value] = pair.split('=');
  1694. if (value === 'null') {
  1695. obj[key] = null;
  1696. } else if (!isNaN(value)) {
  1697. obj[key] = Number(value);
  1698. } else {
  1699. obj[key] = value;
  1700. }
  1701. });
  1702. return obj;
  1703. },
  1704. // 判断某条日志是否在当前筛选之外(即是否未被选中)
  1705. async onNewSocketLog(rawLogStr) {
  1706. // 1. 将字符串解析为对象
  1707. const newLog = this.parseLogString(rawLogStr);
  1708. // 2. 获取当前勾选的类型(都转成字符串)
  1709. const selectedTypes = this.checkedJoblogs.map(String);
  1710. const newLogType = String(newLog.operationType);
  1711. // console.log('新日志类型:', newLogType, '勾选类型:', selectedTypes);
  1712. // 3. 判断是否未被选中 → 弹窗
  1713. if (!selectedTypes.includes(newLogType)) {
  1714. this.dialogLog = newLog;
  1715. this.JoblogdialogVisible = true;
  1716. // console.log('弹框内容:', newLog);
  1717. } else {
  1718. this.JoblogdialogVisible = false;
  1719. // console.log('该类型已勾选,不弹框');
  1720. }
  1721. }
  1722. }
  1723. }
  1724. </script>
  1725. <style scoped lang="scss">
  1726. .deptGreen {
  1727. position: absolute;
  1728. min-width: 65px;
  1729. height: 25px;
  1730. background: #70b26f;
  1731. line-height: 25px;
  1732. text-align: center;
  1733. border-radius: 5px;
  1734. color: #fff;
  1735. cursor: pointer;
  1736. padding: 0 10px;
  1737. }
  1738. .box-cardStatus {
  1739. width: 850px;
  1740. margin: 15px;
  1741. }
  1742. .box-card1 {
  1743. width: 250px;
  1744. margin: 15px;
  1745. }
  1746. .box-cardgsr {
  1747. width: 250px;
  1748. height: auto;
  1749. margin: 15px;
  1750. }
  1751. .box-card2 {
  1752. width: 560px;
  1753. margin: 15px;
  1754. }
  1755. .status-container {
  1756. width: 100%;
  1757. height: 100%;
  1758. background: pink;
  1759. display: flex;
  1760. }
  1761. .box {
  1762. width: 30px;
  1763. height: 30px;
  1764. border: 1px solid #e7e5e5;
  1765. background-color: rgb(209, 77, 77);
  1766. }
  1767. .error-icon {
  1768. color: red;
  1769. font-weight: bold;
  1770. }
  1771. .success-icon {
  1772. color: green;
  1773. font-weight: bold;
  1774. }
  1775. //滚动条的宽度
  1776. ::-webkit-scrollbar {
  1777. width: 8px;
  1778. height: 8px;
  1779. background-color: #e4e4e4;
  1780. border-radius: 6px;
  1781. }
  1782. //滚动条的滑块
  1783. ::-webkit-scrollbar-thumb {
  1784. background-color: #a1a3a9;
  1785. border-radius: 6px;
  1786. }
  1787. div[ref="mapContainer"] {
  1788. transition: transform 0.2s ease;
  1789. }
  1790. .left-bottom {
  1791. height: 460px;
  1792. // background: blue;
  1793. }
  1794. //作业日志
  1795. .joblogBox {
  1796. width: 100%;
  1797. height: 80%;
  1798. margin: 0 auto 20px;
  1799. box-sizing: border-box;
  1800. //background: pink;
  1801. .joblogCon{
  1802. width: 98%;
  1803. height: 80%;
  1804. margin: auto;
  1805. //background: greenyellow;
  1806. .joblogTop{
  1807. width: 100%;
  1808. height: 600px;
  1809. margin: auto;
  1810. overflow-y: auto;
  1811. //background: cadetblue;
  1812. p{
  1813. font-size: 16px;
  1814. line-height: 20px;
  1815. }
  1816. }
  1817. .bottomCheck{
  1818. width:100%;
  1819. height: 50px;
  1820. line-height: 50px;
  1821. font-size: 23px;
  1822. display: flex;
  1823. margin: auto;
  1824. //background: forestgreen;
  1825. .big-checkbox {
  1826. font-size: 23px; /* 字体大小 */
  1827. }
  1828. /* 调整实际复选框的大小 */
  1829. //.big-checkbox >>> .el-checkbox__inner {
  1830. // width: 25px;
  1831. // height: 25px;
  1832. //}
  1833. .big-checkbox ::v-deep(.el-checkbox__inner) {
  1834. width: 25px;
  1835. height: 25px;
  1836. }
  1837. .big-checkbox >>> .el-checkbox__label {
  1838. font-size: 23px;
  1839. padding-left: 8px;
  1840. }
  1841. }
  1842. }
  1843. }
  1844. </style>