quality.vue 48 KB

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