quality.vue 46 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444
  1. <template>
  2. <div class="ele-body">
  3. <el-card shadow="never">
  4. <div>
  5. <div class="content-detail">
  6. <header-title title="基本信息" size="16px"></header-title>
  7. <div class="mt20">
  8. <el-form label-width="120px">
  9. <el-col :span="8">
  10. <el-form-item label="入库单:">
  11. <span>{{ infoData.bizNo }}</span>
  12. </el-form-item>
  13. </el-col>
  14. <el-col :span="8">
  15. <el-form-item label="入库物品类型:">
  16. <span>{{ handleAssetType(extInfo.assetType) }}</span>
  17. </el-form-item>
  18. </el-col>
  19. <el-col :span="8">
  20. <el-form-item label="入库场景:">
  21. <span>{{ getSceneState(infoData.bizType) }}</span>
  22. </el-form-item>
  23. </el-col>
  24. <el-col :span="8">
  25. <el-form-item label="关联订单:">
  26. <span>{{ extInfo.documentSource }}</span>
  27. </el-form-item>
  28. </el-col>
  29. <el-col :span="8">
  30. <el-form-item label="权属部门:">
  31. <span>{{ extInfo.deptName }}</span>
  32. </el-form-item>
  33. </el-col>
  34. <el-col :span="8">
  35. <el-form-item label="入库登记人:">
  36. <span>{{ extInfo.createUserName }}</span>
  37. </el-form-item>
  38. </el-col>
  39. <el-col :span="8">
  40. <el-form-item label="入库时间:">
  41. <span>{{ infoData.createTime }}</span>
  42. </el-form-item>
  43. </el-col>
  44. <el-col :span="8">
  45. <el-form-item label="状态:">
  46. <span>{{ stepsTitle }}</span>
  47. </el-form-item>
  48. </el-col>
  49. <el-col :span="8">
  50. <el-form-item label="审核人:">
  51. <span>{{ infoData.verifyName }}</span>
  52. </el-form-item>
  53. </el-col>
  54. <el-col :span="8" v-if="infoData.bizType == 2">
  55. <el-form-item label="客户:">
  56. <span>{{ infoData.clientName }}</span>
  57. </el-form-item>
  58. </el-col>
  59. <el-col :span="8" v-if="infoData.bizType == 2">
  60. <el-form-item label="供应商:">
  61. <span>{{ extInfo.supplierName }}</span>
  62. </el-form-item>
  63. </el-col>
  64. <el-col :span="8">
  65. <el-form-item label="送货人:">
  66. <span>{{ infoData.fromUser }}</span>
  67. </el-form-item>
  68. </el-col>
  69. <el-col :span="8">
  70. <el-form-item label="送货人联系方式:">
  71. <span>{{ extInfo.deliveryPhone }}</span>
  72. </el-form-item>
  73. </el-col>
  74. <el-col :span="8">
  75. <el-form-item label="附件:">
  76. <el-link
  77. type="primary"
  78. v-for="item in infoData.qualityFile"
  79. @click="download(item)"
  80. :key="item.name"
  81. >{{ item.name }}</el-link
  82. >
  83. </el-form-item>
  84. </el-col>
  85. <el-col :span="24">
  86. <el-form-item label="备注:">
  87. <span>{{ infoData.remark }}</span>
  88. </el-form-item>
  89. </el-col>
  90. </el-form>
  91. </div>
  92. </div>
  93. <div class="content-detail mt20">
  94. <header-title title="产品信息" size="16px"></header-title>
  95. <el-table
  96. ref="productListTable"
  97. :data="productList"
  98. tooltip-effect="dark"
  99. :max-height="300"
  100. :header-cell-style="rowClass"
  101. border
  102. >
  103. <el-table-column label="序号" type="index" width="50">
  104. </el-table-column>
  105. <el-table-column
  106. label="编码"
  107. prop="categoryCode"
  108. align="center"
  109. :show-overflow-tooltip="true"
  110. ></el-table-column>
  111. <el-table-column
  112. label="名称"
  113. align="center"
  114. prop="categoryName"
  115. :show-overflow-tooltip="true"
  116. ></el-table-column>
  117. <el-table-column
  118. v-if="clientEnvironmentId == 4"
  119. label="级别"
  120. prop="level"
  121. align="center"
  122. >
  123. </el-table-column>
  124. <el-table-column
  125. label="型号"
  126. align="center"
  127. prop="categoryModel"
  128. :show-overflow-tooltip="true"
  129. ></el-table-column>
  130. <el-table-column
  131. label="规格"
  132. align="center"
  133. prop="specification"
  134. :show-overflow-tooltip="true"
  135. ></el-table-column>
  136. <el-table-column
  137. label="牌号"
  138. align="center"
  139. prop="brandNum"
  140. :show-overflow-tooltip="true"
  141. ></el-table-column>
  142. <el-table-column
  143. v-for="(item, index) in newColumns"
  144. :label="item.label"
  145. :align="item.align"
  146. :prop="item.prop"
  147. :show-overflow-tooltip="item.showOverflowTooltip"
  148. ></el-table-column>
  149. <el-table-column
  150. label="批次号"
  151. prop="batchNo"
  152. align="center"
  153. :show-overflow-tooltip="true"
  154. >
  155. </el-table-column>
  156. <el-table-column
  157. label="最小包装单元"
  158. align="center"
  159. width="120"
  160. prop="minPackingQuantity"
  161. >
  162. <template slot-scope="{ row, $index }">
  163. {{ row.minPackingQuantity }} {{ row.measureUnit }} /{{
  164. row.packingUnit
  165. }}
  166. </template>
  167. </el-table-column>
  168. <el-table-column
  169. label="包装数量"
  170. prop="packingQuantity"
  171. align="center"
  172. >
  173. <template slot-scope="{ row, $index }">
  174. {{ row.packingQuantity }} {{ row.packingUnit }}
  175. </template>
  176. </el-table-column>
  177. <el-table-column
  178. label="计量数量"
  179. prop="measureQuantity"
  180. width="100"
  181. align="center"
  182. >
  183. <template slot-scope="{ row, $index }">
  184. <template>
  185. {{
  186. $math.format(
  187. row.minPackingQuantity * row.packingQuantity,
  188. 14
  189. )
  190. }}
  191. </template>
  192. </template>
  193. </el-table-column>
  194. <el-table-column label="计量单位" prop="measureUnit" align="center">
  195. <template slot-scope="{ row, $index }">
  196. <template>
  197. {{ row.measureUnit }}
  198. </template>
  199. </template>
  200. </el-table-column>
  201. <el-table-column
  202. label="重量"
  203. prop="weight"
  204. align="center"
  205. :show-overflow-tooltip="true"
  206. >
  207. </el-table-column>
  208. <el-table-column
  209. label="重量单位"
  210. prop="weightUnit"
  211. align="center"
  212. :show-overflow-tooltip="true"
  213. >
  214. </el-table-column>
  215. <el-table-column label="单价" prop="price" align="center">
  216. <template slot-scope="{ row }">
  217. <template>
  218. {{ row.price ? row.price : '-' + '元' }}/{{ row.measureUnit }}
  219. </template>
  220. </template>
  221. </el-table-column>
  222. <el-table-column
  223. label="金额"
  224. align="center"
  225. prop="contentImage"
  226. :show-overflow-tooltip="true"
  227. >
  228. <template slot-scope="{ row, $index }">
  229. {{ row.totalMoney ? row.totalMoney : 0 }}
  230. </template>
  231. </el-table-column>
  232. <el-table-column
  233. v-if="clientEnvironmentId == 4"
  234. label="采购原因"
  235. align="center"
  236. prop="purpose"
  237. :show-overflow-tooltip="true"
  238. ></el-table-column>
  239. <el-table-column
  240. label="供应商"
  241. prop="supplierName"
  242. :show-overflow-tooltip="true"
  243. >
  244. </el-table-column>
  245. <el-table-column
  246. label="仓库"
  247. prop="warehouseName"
  248. :show-overflow-tooltip="true"
  249. >
  250. </el-table-column>
  251. </el-table>
  252. </div>
  253. <div class="mt20">
  254. <header-title :title="`包装明细`" size="16px"></header-title>
  255. <el-table
  256. ref="showPackingListTable"
  257. :data="showPackingList"
  258. tooltip-effect="dark"
  259. :max-height="300"
  260. :row-class-name="tableRowClassName"
  261. :header-cell-style="rowClass"
  262. border
  263. v-el-table-infinite-scroll="pickingHandleScroll"
  264. >
  265. <el-table-column label="序号" type="index" width="50">
  266. </el-table-column>
  267. <el-table-column
  268. label="编码"
  269. prop="categoryCode"
  270. :show-overflow-tooltip="true"
  271. ></el-table-column>
  272. <el-table-column
  273. label="名称"
  274. prop="categoryName"
  275. :show-overflow-tooltip="true"
  276. ></el-table-column>
  277. <el-table-column
  278. label="批次号"
  279. prop="batchNo"
  280. :show-overflow-tooltip="true"
  281. ></el-table-column>
  282. <el-table-column
  283. label="发货条码"
  284. prop="barcodes"
  285. :show-overflow-tooltip="true"
  286. ></el-table-column>
  287. <el-table-column
  288. label="包装编码"
  289. prop="packageNo"
  290. :show-overflow-tooltip="true"
  291. ></el-table-column>
  292. <el-table-column
  293. label="包装数量"
  294. prop="packingQuantity"
  295. :show-overflow-tooltip="true"
  296. ></el-table-column>
  297. <el-table-column
  298. label="包装单位"
  299. prop="packingUnit"
  300. :show-overflow-tooltip="true"
  301. ></el-table-column>
  302. <el-table-column
  303. label="计量数量"
  304. prop="measureQuantity"
  305. :show-overflow-tooltip="true"
  306. ></el-table-column>
  307. <el-table-column
  308. label="计量单位"
  309. prop="measureUnit"
  310. :show-overflow-tooltip="true"
  311. ></el-table-column>
  312. <el-table-column
  313. label="物料代号"
  314. width="200"
  315. prop="materielDesignation"
  316. :show-overflow-tooltip="true"
  317. >
  318. <template slot-scope="{ row, $index }">
  319. <el-input
  320. v-if="qualityInspectionItems.includes('materielDesignation')"
  321. :ref="'packing_materielDesignation' + $index"
  322. @keyup.native="
  323. moveFocus(
  324. $event,
  325. $index,
  326. 'packing_materielDesignation',
  327. '包装',
  328. row
  329. )
  330. "
  331. v-model="row.materielDesignation"
  332. ></el-input>
  333. <span v-else>{{ row.materielDesignation }}</span>
  334. </template>
  335. </el-table-column>
  336. <el-table-column
  337. label="客户代号"
  338. prop="clientCode"
  339. width="200"
  340. :show-overflow-tooltip="true"
  341. >
  342. <template slot-scope="{ row, $index }">
  343. <el-input
  344. v-if="qualityInspectionItems.includes('clientCode')"
  345. :ref="'packing_clientCode' + $index"
  346. @keyup.native="
  347. moveFocus($event, $index, 'packing_clientCode', '包装', row)
  348. "
  349. v-model="row.clientCode"
  350. ></el-input>
  351. <span v-else>{{ row.clientCode }}</span>
  352. </template>
  353. </el-table-column>
  354. <el-table-column
  355. label="刻码"
  356. prop="engrave"
  357. width="200"
  358. :show-overflow-tooltip="true"
  359. >
  360. <template slot-scope="{ row, $index }">
  361. <el-input
  362. v-if="qualityInspectionItems.includes('engrave')"
  363. :ref="'packing_engrave' + $index"
  364. @keyup.native="
  365. moveFocus($event, $index, 'packing_engrave', '包装', row)
  366. "
  367. v-model="row.engrave"
  368. ></el-input>
  369. <span v-else>{{ row.engrave }}</span>
  370. </template>
  371. </el-table-column>
  372. <el-table-column label="重量" prop="weight" width="100">
  373. <template slot-scope="{ row, $index }">
  374. <el-input
  375. v-if="
  376. row.measureUnit != row.weightUnit &&
  377. qualityInspectionItems.includes('weight')
  378. "
  379. :ref="'packing_weight' + $index"
  380. @keyup.native="
  381. moveFocus($event, $index, 'packing_weight', '包装', row)
  382. "
  383. v-model.number="row.weight"
  384. @input="weightInput($event, row, '包装')"
  385. ></el-input>
  386. <span v-else>{{ row.weight }}</span>
  387. </template>
  388. </el-table-column>
  389. <el-table-column
  390. label="重量单位"
  391. prop="weightUnit"
  392. :show-overflow-tooltip="true"
  393. >
  394. </el-table-column>
  395. <el-table-column label="质检结果" prop="result" width="120">
  396. <template slot-scope="{ row }">
  397. <el-select
  398. v-if="qualityInspectionItems.includes('result')"
  399. @change="changeWrapStatus($event, row, '包装')"
  400. v-model="row.result"
  401. placeholder="请选择"
  402. >
  403. <el-option
  404. v-for="item in qualityResultsOptions"
  405. :label="item.label"
  406. :value="item.value"
  407. :key="item.value"
  408. >
  409. </el-option>
  410. </el-select>
  411. <span v-else>{{ qualityResults[row.result] }}</span>
  412. </template>
  413. </el-table-column>
  414. <el-table-column
  415. label="质检状态"
  416. prop="status"
  417. :show-overflow-tooltip="true"
  418. >
  419. <template slot-scope="{ row }">
  420. <span>{{ qualityStatus[row.status] }}</span>
  421. </template>
  422. </el-table-column>
  423. <el-table-column
  424. label="生产日期"
  425. prop="productionDate"
  426. :show-overflow-tooltip="true"
  427. >
  428. </el-table-column>
  429. <el-table-column
  430. label="采购日期"
  431. prop="purchaseDate"
  432. :show-overflow-tooltip="true"
  433. >
  434. </el-table-column>
  435. </el-table>
  436. </div>
  437. <div class="mt20">
  438. <header-title :title="`物料明细`" size="16px"> </header-title>
  439. <el-table
  440. ref="multipleTable"
  441. :data="showMaterialList"
  442. tooltip-effect="dark"
  443. :max-height="300"
  444. :row-class-name="tableRowClassName"
  445. :header-cell-style="rowClass"
  446. border
  447. style="width: 100%"
  448. stripe
  449. height="300px"
  450. v-el-table-infinite-scroll="materielHandleScroll"
  451. >
  452. <el-table-column label="序号" type="index" width="50">
  453. </el-table-column>
  454. <el-table-column
  455. label="编码"
  456. prop="categoryCode"
  457. :show-overflow-tooltip="true"
  458. ></el-table-column>
  459. <el-table-column
  460. label="名称"
  461. prop="categoryName"
  462. :show-overflow-tooltip="true"
  463. ></el-table-column>
  464. <el-table-column label="批次号" prop="batchNo"></el-table-column>
  465. <el-table-column
  466. label="物料编码"
  467. prop="materialCode"
  468. :show-overflow-tooltip="true"
  469. ></el-table-column>
  470. <el-table-column
  471. label="发货条码"
  472. prop="barcodes"
  473. :show-overflow-tooltip="true"
  474. ></el-table-column>
  475. <el-table-column
  476. label="计量数量"
  477. prop="measureQuantity"
  478. ></el-table-column>
  479. <el-table-column
  480. label="计量单位"
  481. prop="measureUnit"
  482. ></el-table-column>
  483. <el-table-column
  484. label="物料代号"
  485. prop="materielDesignation"
  486. width="200"
  487. >
  488. <template slot-scope="{ row, $index }">
  489. <el-input
  490. v-if="qualityInspectionItems.includes('materielDesignation')"
  491. :ref="'material_materielDesignation' + $index"
  492. @keyup.native="
  493. moveFocus(
  494. $event,
  495. $index,
  496. 'material_materielDesignation',
  497. '物料',
  498. row
  499. )
  500. "
  501. v-model="row.materielDesignation"
  502. ></el-input>
  503. <span v-else>{{ row.materielDesignation }}</span>
  504. </template>
  505. </el-table-column>
  506. <el-table-column label="客户代号" prop="clientCode" width="200">
  507. <template slot-scope="{ row, $index }">
  508. <el-input
  509. v-if="qualityInspectionItems.includes('clientCode')"
  510. :ref="'material_clientCode' + $index"
  511. @keyup.native="
  512. moveFocus(
  513. $event,
  514. $index,
  515. 'material_clientCode',
  516. '物料',
  517. row
  518. )
  519. "
  520. v-model="row.clientCode"
  521. ></el-input>
  522. <span v-else>{{ row.clientCode }}</span>
  523. </template>
  524. </el-table-column>
  525. <el-table-column label="刻码" prop="engrave" width="200">
  526. <template slot-scope="{ row, $index }">
  527. <el-input
  528. v-if="qualityInspectionItems.includes('engrave')"
  529. :ref="'material_engrave' + $index"
  530. @keyup.native="
  531. moveFocus($event, $index, 'material_engrave', '物料', row)
  532. "
  533. v-model="row.engrave"
  534. ></el-input>
  535. <span v-else>{{ row.engrave }}</span>
  536. </template>
  537. </el-table-column>
  538. <el-table-column label="重量" prop="weight" width="100">
  539. <template slot-scope="{ row, $index }">
  540. <el-input
  541. v-if="
  542. row.measureUnit != row.weightUnit &&
  543. qualityInspectionItems.includes('weight')
  544. "
  545. :ref="'material_weight' + $index"
  546. @keyup.native="
  547. moveFocus($event, $index, 'material_weight', '物料', row)
  548. "
  549. v-model.number="row.weight"
  550. @input="weightInput($event, row, '物料')"
  551. ></el-input>
  552. <span v-else>{{ row.weight }}</span>
  553. </template>
  554. </el-table-column>
  555. <el-table-column label="重量单位" prop="weightUnit">
  556. </el-table-column>
  557. <el-table-column label="质检结果" prop="result" width="120">
  558. <template slot-scope="{ row }">
  559. <el-select
  560. v-if="qualityInspectionItems.includes('result')"
  561. @change="changeWrapStatus($event, row, '物料')"
  562. v-model="row.result"
  563. placeholder="请选择"
  564. >
  565. <el-option
  566. v-for="item in qualityResultsOptions"
  567. :label="item.label"
  568. :value="item.value"
  569. :key="item.value"
  570. >
  571. </el-option>
  572. </el-select>
  573. <span v-else>{{ qualityResults[row.result] }}</span>
  574. </template>
  575. </el-table-column>
  576. <el-table-column label="质检状态" prop="status" width="120">
  577. <template slot-scope="{ row }">
  578. <span>{{ qualityStatus[row.status] }}</span>
  579. </template>
  580. </el-table-column>
  581. </el-table>
  582. </div>
  583. </div>
  584. </el-card>
  585. </div>
  586. </template>
  587. <script>
  588. import elTableInfiniteScroll from 'el-table-infinite-scroll';
  589. import { getFile } from '@/api/system/file/index.js';
  590. import storageApi from '@/api/warehouseManagement';
  591. import { allCategoryLevel } from '@/api/classifyManage';
  592. import { useDictLabel, sceneState } from '@/utils/dict/index';
  593. import { mapGetters, mapActions } from 'vuex';
  594. import fileUpload from '@/components/upload/fileUpload';
  595. import { deepClone } from '@/utils';
  596. export default {
  597. directives: {
  598. 'el-table-infinite-scroll': elTableInfiniteScroll
  599. },
  600. components: { fileUpload },
  601. props: {
  602. businessId: {
  603. type: String,
  604. default: ''
  605. },
  606. qualityInspectionItems: {
  607. type: Array,
  608. default: () => {
  609. return ['result'];
  610. }
  611. }
  612. },
  613. data() {
  614. return {
  615. newColumns: [], // 动态表头
  616. qualityFile: [], // 回执附件
  617. qualityResultsOptions: [
  618. {
  619. label: '合格',
  620. value: 1
  621. },
  622. {
  623. label: '不合格',
  624. value: 2
  625. }
  626. ],
  627. qualityStatus: {
  628. 0: '未质检',
  629. 1: '已质检'
  630. }, // 质检状态 0未检 1已检
  631. qualityResults: {
  632. 1: '合格',
  633. 2: '不合格'
  634. }, // 质检结果 1合格 2不合格
  635. productList: [], // 产品列表
  636. showPackingList: [], // 展示的包装列表
  637. packingList: [], // 包装列表
  638. showMaterialList: [], // 展示物料列表
  639. materialList: [], // 物料列表
  640. extInfo: {}, // 扩展信息
  641. pageSize: 20,
  642. pickingPageNum: 1,
  643. materielPageNum: 1,
  644. codeList: [],
  645. infoData: {},
  646. stepsTitle: '已完成',
  647. stepsStatus: 'success',
  648. active: 0
  649. };
  650. },
  651. watch: {
  652. 'infoData.verifyStatus': {
  653. immediate: true,
  654. handler(val) {
  655. if (val == 0) {
  656. this.active = 1;
  657. this.stepsTitle = '未审核';
  658. this.stepsStatus = 'wait';
  659. } else if (val == 1) {
  660. this.active = 2;
  661. this.stepsTitle = '审核中';
  662. this.stepsStatus = 'process';
  663. } else if (val == 2) {
  664. this.active = 2;
  665. this.stepsTitle = '审核通过';
  666. this.stepsStatus = 'success';
  667. } else if (val == 3) {
  668. this.active = 2;
  669. this.stepsTitle = '驳回';
  670. this.stepsStatus = 'error';
  671. }
  672. }
  673. }
  674. },
  675. computed: {
  676. ...mapGetters(['getDictValue']),
  677. clientEnvironmentId() {
  678. return this.$store.state.user.info.clientEnvironmentId;
  679. }
  680. },
  681. watch: {
  682. packingList: {
  683. handler(newVal) {
  684. console.log('包装列表', newVal);
  685. console.log('当前包装列表加载页数', this.pickingPageNum);
  686. this.showPackingList = newVal.slice(
  687. 0,
  688. this.pageSize * (this.pickingPageNum > 0 ? this.pickingPageNum : 1)
  689. );
  690. },
  691. deep: true
  692. },
  693. materialList: {
  694. handler(newVal) {
  695. console.log('物料列表', newVal);
  696. console.log('当前物料列表加载页数', this.materielPageNum);
  697. this.showMaterialList = newVal.slice(
  698. 0,
  699. this.pageSize *
  700. (this.materielPageNum > 0 ? this.materielPageNum : 1)
  701. );
  702. },
  703. deep: true
  704. }
  705. },
  706. created() {
  707. this.getFieldModel();
  708. this.requestDict('类型用途');
  709. this.getAllCategoryType();
  710. this._getInfo(this.businessId);
  711. console.log(
  712. 'qualityInspectionItems-----------',
  713. this.qualityInspectionItems
  714. );
  715. },
  716. methods: {
  717. // 获取动态表头
  718. getFieldModel() {
  719. storageApi.fieldModel({ fieldModel: 't_main_category' }).then((res) => {
  720. let newRes = res.map((m) => {
  721. return {
  722. prop: 'extField.' + m.prop,
  723. label: m.label,
  724. align: 'center',
  725. showOverflowTooltip: true
  726. };
  727. });
  728. this.newColumns = [...newRes];
  729. });
  730. },
  731. pickingHandleScroll() {
  732. console.log('---------pickingHandleScroll------------');
  733. if (this.showPackingList.length < this.packingList.length) {
  734. if (this.packingList.length > this.pageSize) {
  735. this.pickingPageNum += 1;
  736. }
  737. this.pickingFetchData();
  738. }
  739. },
  740. pickingFetchData() {
  741. const start = (this.pickingPageNum - 1) * this.pageSize;
  742. const end = start + this.pageSize;
  743. this.showPackingList = this.showPackingList.concat(
  744. this.packingList.slice(start, end)
  745. );
  746. },
  747. materielHandleScroll() {
  748. console.log('---------materielHandleScroll------------');
  749. if (this.showMaterialList.length < this.materialList.length) {
  750. if (this.materialList.length > this.pageSize) {
  751. this.materielPageNum += 1;
  752. }
  753. this.materielFetchData();
  754. }
  755. },
  756. materielFetchData() {
  757. const start = (this.materielPageNum - 1) * this.pageSize;
  758. const end = start + this.pageSize;
  759. this.showMaterialList = this.showMaterialList.concat(
  760. this.materialList.slice(start, end)
  761. );
  762. console.log(this.showMaterialList);
  763. },
  764. ...mapActions('dict', ['requestDict']),
  765. getSceneState: useDictLabel(sceneState),
  766. handleAssetType(r) {
  767. const code = this.codeList.find((item) => item.dictCode == r);
  768. return code?.dictValue;
  769. },
  770. tableRowClassName({ row, rowIndex }) {
  771. console.log(row);
  772. if (row.result == 2) {
  773. return 'warning-row';
  774. } else {
  775. return '';
  776. }
  777. },
  778. rowClass({ row, column, rowIndex, columnIndex }) {
  779. if (rowIndex === 1) {
  780. return {
  781. display: 'none',
  782. background: '#EEEEEE'
  783. };
  784. }
  785. return { background: '#0000' };
  786. },
  787. async getAllCategoryType() {
  788. const { data } = await allCategoryLevel();
  789. this.codeList = data.map((item) => {
  790. return { dictCode: item.id, dictValue: item.name };
  791. });
  792. },
  793. //获取质检状态(全部已检)
  794. async getStatus() {
  795. let packingAllChecked = true;
  796. let materialAllChecked = true;
  797. if (this.packingList?.length > 0) {
  798. packingAllChecked = this.packingList.every(
  799. (item) => item.status == 1
  800. );
  801. }
  802. if (this.materialList?.length > 0) {
  803. materialAllChecked = this.materialList.every(
  804. (item) => item.status == 1
  805. );
  806. }
  807. if (packingAllChecked && materialAllChecked) {
  808. // 处理包装数据
  809. this.packingList = this.packingList.map((packingItem) => {
  810. return {
  811. ...packingItem,
  812. materialDetailList: this.materialList.filter(
  813. (item) => item.parentIndex === packingItem.index
  814. )
  815. };
  816. });
  817. // 处理产品数据
  818. this.productList = this.productList.map((productItem) => {
  819. return {
  820. ...productItem,
  821. outInDetailRecordRequestList: this.packingList.filter(
  822. (item) => item.parentIndex === productItem.index
  823. )
  824. };
  825. });
  826. this.infoData.outInDetailList = this.productList;
  827. let obj = deepClone(this.infoData);
  828. // 处理仓库id
  829. let warehouseId = [];
  830. let warehouseName = [];
  831. let warehouseIds = this.productList
  832. .map((item) => item.warehouseId)
  833. .flat();
  834. let warehouseNames = this.productList
  835. .map((item) => item.warehouseName)
  836. .flat();
  837. warehouseIds.forEach((item, index) => {
  838. if (!warehouseId.includes(item)) {
  839. warehouseId.push(item);
  840. warehouseName.push(warehouseNames[index]);
  841. }
  842. });
  843. obj.warehouseIds = warehouseId;
  844. obj.warehouseNames = warehouseName;
  845. console.log(obj);
  846. try {
  847. await storageApi.qualityInspection(obj);
  848. return true;
  849. } catch (error) {
  850. this.$message.error('质检失败');
  851. return false;
  852. }
  853. } else {
  854. this.$message.error('请先完成包装和物料质检');
  855. }
  856. },
  857. // 选择质检结果改变质检状态
  858. changeWrapStatus(resultValue, row, type) {
  859. console.log(resultValue);
  860. switch (resultValue) {
  861. case '0':
  862. // 清空质检状态
  863. row.status = 0;
  864. break;
  865. default:
  866. // 默认已检质检状态
  867. row.status = 1;
  868. break;
  869. }
  870. if (type === '包装') {
  871. this.packingResultCahnge(resultValue, row);
  872. } else {
  873. this.materialResultCahnge(resultValue, row);
  874. }
  875. },
  876. // 包装质检结果修改
  877. packingResultCahnge(value, row) {
  878. // 修改物料质检结果( 1合格 2不合格)
  879. this.materialList.map((item, index) => {
  880. if (item.parentIndex === row.index) {
  881. this.$set(this.materialList[index], 'result', value);
  882. }
  883. });
  884. },
  885. // 物料质量结果修改
  886. materialResultCahnge(value, row) {
  887. // 修改包装质检结果
  888. let filterMaterialList = this.materialList.filter((item) => {
  889. return item.parentIndex === row.parentIndex;
  890. });
  891. let packingIndex = this.packingList.findIndex((item) => {
  892. return item.index === row.parentIndex;
  893. });
  894. let boolen = filterMaterialList.every((item) => {
  895. return item.result === 1;
  896. });
  897. this.$set(this.packingList[packingIndex], 'result', boolen ? 1 : 2);
  898. },
  899. // 重量限制
  900. weightInput(value, row, type) {
  901. const newValue = value.replace(/[^\d.]/g, ''); // 保留数字和小数点
  902. const decimalCount = (newValue.match(/\./g) || []).length; // 计算小数点的个数
  903. if (row.weight < 0) {
  904. row.weight = 0;
  905. } else if (row.weight > 9999) {
  906. row.weight = 9999;
  907. } else {
  908. if (decimalCount > 1) {
  909. // 如果小数点个数大于1,移除多余的小数点
  910. const lastIndex = newValue.lastIndexOf('.');
  911. row.weight =
  912. newValue.slice(0, lastIndex) + newValue.slice(lastIndex + 1);
  913. } else if (decimalCount === 1) {
  914. // 如果小数点个数等于1,允许小数点的输入
  915. row.weight = newValue;
  916. } else {
  917. row.weight = newValue === '' ? 0 : parseFloat(newValue); // 如果输入为空,则设为0
  918. }
  919. }
  920. if (type === '包装') {
  921. this.packingWeightCahnge(value, row);
  922. } else {
  923. this.materialWeightCahnge(row);
  924. }
  925. },
  926. // 包装重量修改
  927. packingWeightCahnge(value, row) {
  928. // 修改物品重量
  929. let filterPackingList = this.packingList.filter((item) => {
  930. return item.parentIndex === row.parentIndex;
  931. });
  932. let productIndex = this.productList.findIndex((item) => {
  933. return item.index === row.parentIndex;
  934. });
  935. let totalWeight = filterPackingList.reduce(
  936. (accumulator, currentValue) => {
  937. return this.$math.format(+accumulator + +currentValue.weight, 14);
  938. },
  939. 0
  940. );
  941. this.$set(this.productList[productIndex], 'weight', totalWeight);
  942. // 修改拆分物料
  943. this.materialList.map((item, index) => {
  944. if (item.parentIndex === row.index) {
  945. console.log(value / row.measureQuantity);
  946. this.$set(
  947. this.materialList[index],
  948. 'weight',
  949. this.$math.format(value / row.measureQuantity, 14) >= 0
  950. ? this.$math.format(value / row.measureQuantity, 14)
  951. : 0
  952. );
  953. }
  954. });
  955. },
  956. // 物料重量修改
  957. materialWeightCahnge(row) {
  958. // 修改包装重量
  959. let filterMaterialList = this.materialList.filter((item) => {
  960. return item.parentIndex === row.parentIndex;
  961. });
  962. let packingIndex = this.packingList.findIndex((item) => {
  963. return item.index === row.parentIndex;
  964. });
  965. let totalMaterialWeight = filterMaterialList.reduce(
  966. (accumulator, currentValue) => {
  967. return this.$math.format(+accumulator + +currentValue.weight, 14);
  968. },
  969. 0
  970. );
  971. this.$set(
  972. this.packingList[packingIndex],
  973. 'weight',
  974. totalMaterialWeight
  975. );
  976. // 修改物品重量
  977. let filterPackingList = this.packingList.filter((item) => {
  978. return (
  979. item.parentIndex === this.packingList[packingIndex].parentIndex
  980. );
  981. });
  982. let productIndex = this.productList.findIndex((item) => {
  983. return item.index === this.packingList[packingIndex].parentIndex;
  984. });
  985. let totalWeight = filterPackingList.reduce(
  986. (accumulator, currentValue) => {
  987. return this.$math.format(+accumulator + +currentValue.weight, 14);
  988. },
  989. 0
  990. );
  991. this.$set(this.productList[productIndex], 'weight', totalWeight);
  992. },
  993. async _getInfo(id) {
  994. if (!id) return;
  995. const res = await storageApi.getInfoBySourceBizNo(id);
  996. console.log('===', res);
  997. this.infoData = res;
  998. this.extInfo = res.extInfo;
  999. this.productList = res.outInDetailList.map(
  1000. (productItem, productIndex) => {
  1001. return {
  1002. ...productItem,
  1003. index: this.productList.length + productIndex,
  1004. outInDetailRecordRequestList:
  1005. productItem.outInDetailRecordRequestList.map(
  1006. (packingItem, packingIndex) => {
  1007. return {
  1008. ...packingItem,
  1009. index:
  1010. this.productList.length +
  1011. productIndex +
  1012. '-' +
  1013. packingIndex, // 包装索引
  1014. parentIndex: this.productList.length + productIndex, // 物品索引
  1015. categoryName: productItem.categoryName,
  1016. categoryCode: productItem.categoryCode,
  1017. materialDetailList: packingItem.materialDetailList.map(
  1018. (materialItem, materialIndex) => {
  1019. return {
  1020. ...materialItem,
  1021. index:
  1022. this.productList.length +
  1023. productIndex +
  1024. '-' +
  1025. packingIndex +
  1026. '——' +
  1027. materialIndex, // 包装索引
  1028. parentIndex:
  1029. this.productList.length +
  1030. productIndex +
  1031. '-' +
  1032. packingIndex, // 物品索引
  1033. categoryName: productItem.categoryName,
  1034. categoryCode: productItem.categoryCode
  1035. };
  1036. }
  1037. )
  1038. };
  1039. }
  1040. )
  1041. };
  1042. }
  1043. );
  1044. // 获取包装维度数据
  1045. const arr = [];
  1046. for (const key in this.productList) {
  1047. for (const k in this.productList[key].outInDetailRecordRequestList) {
  1048. arr.push({
  1049. ...this.productList[key].outInDetailRecordRequestList[k]
  1050. });
  1051. }
  1052. }
  1053. this.packingList = arr;
  1054. // 获取物料维度数据
  1055. let iArr = [];
  1056. arr.forEach((item) => {
  1057. item.materialDetailList.forEach((ele) => {
  1058. iArr.push({ ...ele });
  1059. });
  1060. });
  1061. this.materialList = iArr;
  1062. console.log(this.packingList);
  1063. console.log(this.materialList);
  1064. // this.pickingFetchData();
  1065. // this.materielFetchData();
  1066. },
  1067. download(row) {
  1068. if (row.storePath) {
  1069. getFile({ objectName: row.storePath }, row.name);
  1070. }
  1071. },
  1072. // 键盘移动
  1073. moveFocus(event, index, key, type, row) {
  1074. let keyfield = [];
  1075. let listLength = 0;
  1076. switch (type) {
  1077. case '包装':
  1078. listLength = this.showPackingList.length;
  1079. if (row.measureUnit != row.weightUnit) {
  1080. keyfield = [
  1081. 'packing_materielDesignation',
  1082. 'packing_clientCode',
  1083. 'packing_engrave',
  1084. 'packing_weight'
  1085. ];
  1086. } else {
  1087. keyfield = [
  1088. 'packing_materielDesignation',
  1089. 'packing_clientCode',
  1090. 'packing_engrave'
  1091. ];
  1092. }
  1093. break;
  1094. case '物料':
  1095. listLength = this.showMaterialList.length;
  1096. if (row.measureUnit != row.weightUnit) {
  1097. keyfield = [
  1098. 'material_materielDesignation',
  1099. 'material_clientCode',
  1100. 'material_engrave',
  1101. 'material_weight'
  1102. ];
  1103. } else {
  1104. keyfield = [
  1105. 'material_materielDesignation',
  1106. 'material_clientCode',
  1107. 'material_engrave'
  1108. ];
  1109. }
  1110. break;
  1111. }
  1112. if (event.keyCode === 13) {
  1113. // 回车
  1114. if (
  1115. index === listLength - 1 &&
  1116. key === keyfield[keyfield.length - 1]
  1117. ) {
  1118. // 最后一行最后一个
  1119. return;
  1120. }
  1121. this.$refs[key + index].blur();
  1122. if (key === keyfield[keyfield.length - 1]) {
  1123. // 当前行最后一个,跳转下一行第一个
  1124. if (this.$refs[keyfield[0] + (index + 1)].value == 0) {
  1125. this.$refs[keyfield[0] + (index + 1)].value = '';
  1126. }
  1127. this.$refs[keyfield[0] + (index + 1)].focus();
  1128. } else {
  1129. // 跳转下一个
  1130. const nextkeyindex = keyfield.findIndex((k) => k === key) + 1;
  1131. this.$nextTick(() => {
  1132. if (this.$refs[keyfield[nextkeyindex] + index].value == 0) {
  1133. this.$refs[keyfield[nextkeyindex] + index].value = '';
  1134. }
  1135. this.$refs[keyfield[nextkeyindex] + index].focus();
  1136. });
  1137. }
  1138. }
  1139. // 向上 =38
  1140. if (event.keyCode === 38) {
  1141. console.log('向上');
  1142. if (index === 0) {
  1143. // 第一行
  1144. console.log('第一行无法向上');
  1145. return;
  1146. }
  1147. this.$refs[key + index].blur();
  1148. this.$nextTick(() => {
  1149. if (this.$refs[key + (index - 1)].value == 0) {
  1150. this.$refs[key + (index - 1)].value = '';
  1151. }
  1152. this.$refs[key + (index - 1)].focus();
  1153. });
  1154. }
  1155. // 下 = 40
  1156. if (event.keyCode === 40) {
  1157. console.log('向下');
  1158. if (index === listLength - 1) {
  1159. // 最后一行
  1160. console.log('最后一行无法向下');
  1161. return;
  1162. }
  1163. this.$refs[key + index].blur();
  1164. this.$nextTick(() => {
  1165. if (this.$refs[key + (index + 1)].value == 0) {
  1166. this.$refs[key + (index + 1)].value = '';
  1167. }
  1168. this.$refs[key + (index + 1)].focus();
  1169. });
  1170. }
  1171. // 左 = 37
  1172. if (event.keyCode === 37) {
  1173. console.log('向左');
  1174. if (index === 0 && key === keyfield[0]) {
  1175. // 第一行第一个
  1176. console.log('第一行第一个无法向左');
  1177. return;
  1178. }
  1179. this.$refs[key + index].blur();
  1180. if (key === keyfield[0]) {
  1181. if (
  1182. this.$refs[keyfield[keyfield.length - 1] + (index - 1)].value == 0
  1183. ) {
  1184. this.$refs[keyfield[keyfield.length - 1] + (index - 1)].value =
  1185. '';
  1186. }
  1187. // 当前行第一个,跳转上一行最后一个
  1188. this.$refs[keyfield[keyfield.length - 1] + (index - 1)].focus();
  1189. } else {
  1190. // 跳转上一个
  1191. const prevkeyindex = keyfield.findIndex((k) => k === key) - 1;
  1192. this.$nextTick(() => {
  1193. if (this.$refs[keyfield[prevkeyindex] + index].value == 0) {
  1194. this.$refs[keyfield[prevkeyindex] + index].value = '';
  1195. }
  1196. this.$refs[keyfield[prevkeyindex] + index].focus();
  1197. });
  1198. }
  1199. }
  1200. // 右 = 39
  1201. if (event.keyCode === 39) {
  1202. console.log('向右');
  1203. if (
  1204. index === listLength - 1 &&
  1205. key === keyfield[keyfield.length - 1]
  1206. ) {
  1207. // 最后一行最后一个
  1208. console.log('最后一行最后一个无法向左');
  1209. return;
  1210. }
  1211. console.log(this.$refs);
  1212. this.$refs[key + index].blur();
  1213. if (key === keyfield[keyfield.length - 1]) {
  1214. // 当前行最后一个,跳转下一行第一个
  1215. if (this.$refs[keyfield[0] + (index + 1)].value == 0) {
  1216. this.$refs[keyfield[0] + (index + 1)].value = '';
  1217. }
  1218. this.$refs[keyfield[0] + (index + 1)].focus();
  1219. } else {
  1220. // 跳转下一个
  1221. const nextkeyindex = keyfield.findIndex((k) => k === key) + 1;
  1222. this.$nextTick(() => {
  1223. if (this.$refs[keyfield[nextkeyindex] + index].value == 0) {
  1224. this.$refs[keyfield[nextkeyindex] + index].value = '';
  1225. }
  1226. this.$refs[keyfield[nextkeyindex] + index].focus();
  1227. });
  1228. }
  1229. }
  1230. }
  1231. }
  1232. };
  1233. </script>
  1234. <style lang="scss" scoped>
  1235. ::v-deep .warning-row {
  1236. color: red;
  1237. }
  1238. ::v-deep .page-title {
  1239. border-bottom: none;
  1240. }
  1241. ::v-deep .page-title-div {
  1242. width: 100%;
  1243. }
  1244. .stepsStatus {
  1245. width: 40%;
  1246. margin: 0 auto;
  1247. }
  1248. .el-form-item {
  1249. margin-bottom: 10px;
  1250. }
  1251. .p20 {
  1252. padding: 20px;
  1253. }
  1254. .flex {
  1255. display: flex;
  1256. }
  1257. .title {
  1258. justify-content: space-between;
  1259. border-bottom: 1px solid #ccc;
  1260. padding-bottom: 5px;
  1261. span {
  1262. font-size: 16px;
  1263. }
  1264. .col {
  1265. padding-left: 40px;
  1266. font-size: 14px;
  1267. color: #aaaaaa;
  1268. }
  1269. }
  1270. .degree {
  1271. margin-right: 10px;
  1272. padding: 0px 15px;
  1273. color: #fff;
  1274. font-size: 13px;
  1275. line-height: 23px;
  1276. border-radius: 23px;
  1277. display: flex;
  1278. align-items: center;
  1279. justify-content: space-between;
  1280. span {
  1281. width: 5px;
  1282. height: 5px;
  1283. border-radius: 100%;
  1284. margin-right: 6px;
  1285. background-color: #fff;
  1286. }
  1287. }
  1288. .red {
  1289. background-color: rgb(163, 0, 20);
  1290. }
  1291. .blue {
  1292. background-color: #1989fa;
  1293. }
  1294. .createdInfo {
  1295. justify-content: space-around;
  1296. margin-top: 10px;
  1297. font-size: 14px;
  1298. .col {
  1299. color: #6e6e6e;
  1300. padding-right: 10px;
  1301. }
  1302. }
  1303. .mt40 {
  1304. margin-top: 40px;
  1305. }
  1306. .custSteps {
  1307. margin-top: 20px;
  1308. margin-left: 70px;
  1309. .box {
  1310. width: 158px;
  1311. border: 1px solid #ccc;
  1312. padding: 10px;
  1313. flex-direction: row;
  1314. flex-wrap: wrap;
  1315. // justify-content: space-between;
  1316. font-size: 12px;
  1317. color: #9e9e9e;
  1318. .x {
  1319. width: 20px;
  1320. height: 15px;
  1321. margin-right: 5px;
  1322. }
  1323. .q {
  1324. background-color: #d0e4d5;
  1325. }
  1326. .b {
  1327. background-color: #1989fa;
  1328. }
  1329. .g {
  1330. background-color: #157a2c;
  1331. }
  1332. .r {
  1333. background-color: #a30014;
  1334. }
  1335. .a {
  1336. align-items: center;
  1337. margin-bottom: 10px;
  1338. }
  1339. .mr10 {
  1340. margin-right: 10px;
  1341. }
  1342. .mb0 {
  1343. margin-bottom: 0;
  1344. }
  1345. }
  1346. .stepsInfo {
  1347. // flex: 1;
  1348. width: 483px;
  1349. }
  1350. }
  1351. .mt20 {
  1352. margin-top: 20px;
  1353. }
  1354. .content-detail {
  1355. overflow: hidden;
  1356. }
  1357. .executor {
  1358. font-size: 14px;
  1359. .col {
  1360. color: #6e6e6e;
  1361. padding-right: 10px;
  1362. }
  1363. }
  1364. .result {
  1365. justify-content: space-around;
  1366. }
  1367. .mr20 {
  1368. margin-right: 20px;
  1369. }
  1370. .details {
  1371. font-size: 14px;
  1372. margin-bottom: 10px;
  1373. }
  1374. .customSteps {
  1375. margin-top: 40px;
  1376. font-size: 14px;
  1377. margin-left: 80px;
  1378. .time {
  1379. font-size: 12px;
  1380. color: #6e6e6e;
  1381. margin-right: 20px;
  1382. position: relative;
  1383. &::after {
  1384. content: '';
  1385. width: 1px;
  1386. height: 100%;
  1387. background-color: #157a2c;
  1388. position: absolute;
  1389. right: -26px;
  1390. }
  1391. }
  1392. .flex:last-child {
  1393. .time {
  1394. &::after {
  1395. display: none;
  1396. }
  1397. }
  1398. }
  1399. .round {
  1400. margin-right: 20px;
  1401. width: 10px;
  1402. height: 10px;
  1403. border-radius: 100%;
  1404. background-color: #157a2c;
  1405. position: relative;
  1406. span {
  1407. position: absolute;
  1408. top: 50%;
  1409. left: 50%;
  1410. width: 4px;
  1411. height: 4px;
  1412. background-color: #fff;
  1413. border-radius: 100%;
  1414. transform: translate(-2px, -2px);
  1415. }
  1416. }
  1417. .text {
  1418. .info {
  1419. margin-top: 10px;
  1420. width: 955px;
  1421. background-color: #f0f3f3;
  1422. overflow: hidden;
  1423. padding: 10px;
  1424. margin-bottom: 10px;
  1425. }
  1426. }
  1427. }
  1428. .switch_left li {
  1429. border-right: 1px solid rgba(222, 222, 222, 1);
  1430. border-left: 1px solid rgba(222, 222, 222, 1);
  1431. }
  1432. </style>