inventoryTable.vue 43 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456
  1. <template>
  2. <el-form ref="form" :model="form" :rules="rules">
  3. <ele-pro-table
  4. ref="table"
  5. :needPage="false"
  6. :columns="columns"
  7. :datasource="form.datasource"
  8. class="time-form"
  9. @columns-change="handleColumnChange"
  10. :cache-key="cacheKeyUrl"
  11. height="350"
  12. full-height="calc(100vh - 76px)"
  13. :show-summary="clientEnvironmentId == 4"
  14. :summary-method="getSummaries"
  15. >
  16. <!-- 表头工具栏 -->
  17. <template v-slot:toolbar>
  18. <div class="headbox">
  19. <el-button
  20. v-if="isShowAdd && needProduce != 4"
  21. size="small"
  22. type="primary"
  23. icon="el-icon-plus"
  24. class="ele-btn-icon"
  25. @click="handlAdd"
  26. >
  27. 新增
  28. </el-button>
  29. <el-button
  30. size="small"
  31. type="primary"
  32. icon="el-icon-plus"
  33. class="ele-btn-icon"
  34. @click="handParent()"
  35. v-if="isShowAdd && needProduce == 4"
  36. >
  37. 新增
  38. </el-button>
  39. </div>
  40. </template>
  41. <template v-slot:technicalDrawings="{ row, $index }">
  42. <el-form-item :prop="'datasource.' + $index + '.technicalDrawings'">
  43. <fileMain v-model="row.technicalDrawings" type="view"></fileMain>
  44. </el-form-item>
  45. </template>
  46. <template v-slot:remark="{ row, $index }">
  47. <el-form-item :prop="'datasource.' + $index + '.remark'">
  48. <el-input
  49. clearable
  50. v-model="row.remark"
  51. type="textarea"
  52. placeholder="请输入"
  53. />
  54. </el-form-item>
  55. </template>
  56. <template v-slot:packagingStrength="scope">
  57. <el-form-item>
  58. <DictSelection
  59. dict-name="包装强度"
  60. @change="keyChange(scope.$index, scope.row, 'packagingStrength')"
  61. v-model="scope.row.extField.packagingStrength"
  62. :isOne="scope.$index === 0"
  63. ></DictSelection>
  64. </el-form-item>
  65. </template>
  66. <template v-slot:packagingDensity="scope">
  67. <el-form-item>
  68. <DictSelection
  69. dict-name="包装密度"
  70. @change="keyChange(scope.$index, scope.row, 'packagingDensity')"
  71. v-model="scope.row.extField.packagingDensity"
  72. :isOne="scope.$index === 0"
  73. ></DictSelection>
  74. </el-form-item>
  75. </template>
  76. <template v-slot:batchNo="scope">
  77. <el-form-item :prop="'datasource.' + scope.$index + '.batchNo'">
  78. <el-input v-model="scope.row.batchNo" v-no-chinese></el-input>
  79. </el-form-item>
  80. </template>
  81. <!-- 生产编号 可编辑 -->
  82. <template v-slot:productionCodes="{ row }">
  83. <el-form-item>
  84. <el-input v-model="row.productionCodes" v-no-chinese></el-input>
  85. </el-form-item>
  86. </template>
  87. <template v-slot:blockCount="scope">
  88. <el-form-item
  89. :prop="'datasource.' + scope.$index + '.blockCount'"
  90. :rules="[{ required: true, message: '请输入', trigger: 'blur' }]"
  91. >
  92. <el-input
  93. v-model="scope.row.blockCount"
  94. @input="
  95. (val) => tableHandleKeyUp(scope.row, scope.$index, 'blockCount')
  96. "
  97. ></el-input>
  98. </el-form-item>
  99. </template>
  100. <template v-slot:receiveTotalWeight="scope">
  101. <el-form-item
  102. :prop="'datasource.' + scope.$index + '.receiveTotalWeight'"
  103. >
  104. <el-input-number
  105. :controls="false"
  106. v-model="scope.row.receiveTotalWeight"
  107. @input="changeSendTotalWeight(scope.row, scope.$index)"
  108. style="width: 60%; margin-right: 10px"
  109. >
  110. </el-input-number>
  111. <el-button
  112. size="small"
  113. type="primary"
  114. v-if="entrustedCode"
  115. @click.native="(e) => handleInnerBound(e, scope.row, scope.$index)"
  116. >选择
  117. </el-button>
  118. </el-form-item>
  119. </template>
  120. <template v-slot:sendTotalWeight="scope">
  121. <el-form-item :prop="'datasource.' + scope.$index + '.sendTotalWeight'">
  122. <el-input-number
  123. :controls="false"
  124. v-model="scope.row.sendTotalWeight"
  125. style="width: 100%"
  126. @input="changeSendTotalWeight(scope.row, scope.$index)"
  127. >
  128. </el-input-number>
  129. </el-form-item>
  130. </template>
  131. <template v-slot:increaseTotalWeight="scope">
  132. <el-form-item
  133. :prop="'datasource.' + scope.$index + '.increaseTotalWeight'"
  134. >
  135. <el-input-number
  136. :controls="false"
  137. v-model="scope.row.increaseTotalWeight"
  138. style="width: 100%"
  139. >
  140. </el-input-number>
  141. </el-form-item>
  142. </template>
  143. <template v-slot:warehouseId="scope">
  144. <el-form-item
  145. :prop="'datasource.' + scope.$index + '.warehouseId'"
  146. :rules="[
  147. {
  148. required: isWarehouseId == 1 ? true : false,
  149. message: '请选择仓库',
  150. trigger: 'blur'
  151. }
  152. ]"
  153. >
  154. <el-select
  155. v-model="scope.row.warehouseId"
  156. placeholder="请选择"
  157. @change="warehouseChange(scope.$index, scope.row)"
  158. >
  159. <el-option
  160. v-for="item in scope.row.warehouseList"
  161. :key="item.warehouseId"
  162. :label="item.warehouseName"
  163. :value="item.warehouseId"
  164. >
  165. </el-option>
  166. </el-select>
  167. </el-form-item>
  168. </template>
  169. <template v-slot:singlePrice="scope">
  170. <el-form-item
  171. style="margin-bottom: 20px"
  172. :prop="'datasource.' + scope.$index + '.singlePrice'"
  173. :rules="{
  174. required: true,
  175. message: '请输入正确的单价',
  176. trigger: 'change'
  177. }"
  178. >
  179. <el-input
  180. v-model="scope.row.singlePrice"
  181. placeholder="请输入"
  182. @input="changeCount(scope.row, scope.$index)"
  183. type="number"
  184. >
  185. <template slot="append">元</template>
  186. </el-input>
  187. </el-form-item>
  188. </template>
  189. <template v-slot:singleWeight="scope" v-if="needProduce == 4">
  190. <el-form-item
  191. style="margin-bottom: 20px"
  192. :rules="{
  193. required: false,
  194. trigger: 'change'
  195. }"
  196. :prop="'datasource.' + scope.$index + '.singleWeight'"
  197. >
  198. <el-input
  199. v-model="scope.row.singleWeight"
  200. type="number"
  201. placeholder="请输入"
  202. ></el-input>
  203. </el-form-item>
  204. </template>
  205. <template v-slot:headerWarehouseNum="{ column }">
  206. <span class="is-required">{{ column.label }}</span>
  207. </template>
  208. <template v-slot:headerWarehouseId="{ column }">
  209. <span :class="isWarehouseId == 1 ? 'is-required' : ''">{{
  210. column.label
  211. }}</span>
  212. </template>
  213. <template v-slot:headerTotalCount="{ column }">
  214. <span class="is-required">{{ column.label }}</span>
  215. </template>
  216. <template v-slot:headerReceiveTotalWeight="{ column }">
  217. <span :class="{ 'is-required': entrustedCode && pricingWay == 2 }">{{
  218. column.label
  219. }}</span>
  220. </template>
  221. <template v-slot:saleCount="scope">
  222. <el-form-item
  223. style="margin-bottom: 20px"
  224. :prop="'datasource.' + scope.$index + '.saleCount'"
  225. :rules="{
  226. required: true,
  227. message: '请输入数量',
  228. trigger: 'change'
  229. }"
  230. >
  231. <el-input
  232. v-model="scope.row.saleCount"
  233. placeholder="请输入"
  234. type="number"
  235. :min="0"
  236. @input="changeCount(scope.row, scope.$index, false)"
  237. >
  238. </el-input>
  239. </el-form-item>
  240. </template>
  241. <template v-slot:saleUnit="scope">
  242. <el-form-item
  243. style="margin-bottom: 20px"
  244. :prop="'datasource.' + scope.$index + '.saleUnitId'"
  245. >
  246. <el-select
  247. v-model="scope.row.saleUnitId"
  248. style="width: 100%"
  249. @change="changeCount(scope.row, scope.$index)"
  250. :disabled="clientEnvironmentId == 4"
  251. >
  252. <el-option
  253. :label="item.conversionUnit"
  254. :value="item.id"
  255. @click.native="packingChange(item, scope.$index)"
  256. v-for="(item, index) in scope.row.packageDispositionList"
  257. :key="index"
  258. ></el-option>
  259. </el-select>
  260. </el-form-item>
  261. </template>
  262. <template v-slot:modelKey="scope">
  263. <el-form-item :prop="'datasource.' + scope.$index + '.' + 'modelKey'">
  264. <DictSelection
  265. dictName="物品机型"
  266. clearable
  267. v-model="scope.row.modelKey"
  268. :isOne="scope.$index === 0"
  269. filterable
  270. allow-create
  271. default-first-option
  272. multiple
  273. >
  274. </DictSelection>
  275. </el-form-item>
  276. </template>
  277. <template v-slot:colorKey="scope">
  278. <el-form-item :prop="'datasource.' + scope.$index + '.' + 'colorKey'">
  279. <DictSelection
  280. dictName="物品颜色"
  281. clearable
  282. v-model="scope.row.colorKey"
  283. :isOne="scope.$index === 0"
  284. filterable
  285. allow-create
  286. default-first-option
  287. multiple
  288. >
  289. </DictSelection>
  290. </el-form-item>
  291. </template>
  292. <!-- 操作列 -->
  293. <template v-slot:action="scope">
  294. <el-popconfirm
  295. class="ele-action"
  296. title="确定要删除吗?"
  297. @confirm="remove(scope.$index)"
  298. >
  299. <template v-slot:reference>
  300. <el-link type="danger" :underline="false" icon="el-icon-delete">
  301. 删除
  302. </el-link>
  303. </template>
  304. </el-popconfirm>
  305. <el-link
  306. type="primary"
  307. :underline="false"
  308. icon="el-icon-edit"
  309. @click="selectStockLedgerDialogOpen(scope.row)"
  310. >
  311. 替代料
  312. </el-link>
  313. </template>
  314. </ele-pro-table>
  315. <productListNew
  316. ref="productListRef"
  317. @changeParent="changeParent"
  318. ></productListNew>
  319. <!--入库详情-->
  320. <innertboundDetailsDialog
  321. v-if="innerboundDetailsDialogFlag"
  322. ref="innerboundDetailsDialogRef"
  323. :innerboundDetailsDialogFlag.sync="innerboundDetailsDialogFlag"
  324. @saveDate="saveInnerDate"
  325. ></innertboundDetailsDialog>
  326. <!-- 库存台账 -->
  327. <stock-ledger-dialog
  328. v-if="stockLedgerDialogFlag"
  329. :stock-ledger-dialog-flag.sync="stockLedgerDialogFlag"
  330. ref="stockLedgerDialogRef"
  331. @getStockLedger="getStockLedger"
  332. ></stock-ledger-dialog>
  333. <selectStockLedgerDialog
  334. ref="selectStockLedgerDialogRef"
  335. @changeParent="replaceTable"
  336. ></selectStockLedgerDialog>
  337. <BIZproductList
  338. ref="BIZproductListRef"
  339. classType="1"
  340. :isGetInventoryTotal="true"
  341. @changeParent="changeParentBiz"
  342. :typeIds="typeIds"
  343. :isFirstRefreshTable="true"
  344. ></BIZproductList>
  345. </el-form>
  346. </template>
  347. <script>
  348. import { numberReg } from 'ele-admin';
  349. import dictMixins from '@/mixins/dictMixins';
  350. import productListNew from './product-listNew.vue';
  351. import {
  352. getWarehouseOutStock,
  353. getIdWarehouseList
  354. } from '@/api/saleManage/saleorder';
  355. import { copyObj } from '@/utils/util';
  356. import { getFile } from '@/api/system/file';
  357. import innertboundDetailsDialog from '@/BIZComponents/innerboundDetailsDialog.vue';
  358. import stockLedgerDialog from './stockLedger/stockLedgerDialog.vue';
  359. import getDynamicsColumns from '@/mixins/getDynamicsColumns';
  360. // import fileMain from '@/components/addDoc/index.vue';
  361. import selectStockLedgerDialog from '@/BIZComponents/selectStockLedger/selectStockLedgerDialog.vue'; //库存台账
  362. import BIZproductList from '@/BIZComponents/product-list.vue';
  363. import { lbjtList } from '@/enum/dict.js';
  364. import tabMixins from '@/mixins/tableColumnsMixin';
  365. import { levelList } from '@/enum/dict.js';
  366. import { changeCount } from '@/BIZComponents/setProduct.js';
  367. import { parameterGetByCode } from '@/api/main/index.js';
  368. import { getSummaries } from '@/utils/util.js';
  369. export default {
  370. mixins: [dictMixins, getDynamicsColumns, tabMixins],
  371. props: {
  372. orderId: String,
  373. orderIds: String,
  374. needProduce: [String, Number],
  375. entrustedCode: String,
  376. pricingWay: [String, Number],
  377. isShowAdd: {
  378. type: Boolean,
  379. default: true
  380. },
  381. typeIds: {
  382. type: Array,
  383. default: () => []
  384. },
  385. oldProductList: {
  386. type: Array,
  387. default: () => []
  388. },
  389. isTotalCount: {
  390. default: 0
  391. }
  392. },
  393. components: {
  394. // fileMain,
  395. innertboundDetailsDialog,
  396. productListNew,
  397. stockLedgerDialog,
  398. selectStockLedgerDialog,
  399. BIZproductList
  400. },
  401. data() {
  402. const defaultForm = {
  403. key: null,
  404. endTime: '',
  405. isFirst: 0,
  406. name: '',
  407. startTime: '',
  408. workHour: '',
  409. technicalDrawings: []
  410. // warehouseCode:"",
  411. // warehouseId:'',
  412. // warehouseName:'',
  413. };
  414. return {
  415. cacheKeyUrl: 'eos-saleManage-invoice-inventoryTable',
  416. current: {},
  417. childrenColumns: [
  418. {
  419. width: 45,
  420. type: 'selection',
  421. columnKey: 'selection',
  422. align: 'center'
  423. },
  424. {
  425. width: 45,
  426. type: 'index',
  427. columnKey: 'index',
  428. align: 'center',
  429. fixed: 'left'
  430. },
  431. {
  432. minWidth: 100,
  433. prop: 'code',
  434. label: '编码',
  435. align: 'center'
  436. },
  437. {
  438. minWidth: 140,
  439. prop: 'barcodes',
  440. label: '发货条码',
  441. align: 'center'
  442. },
  443. {
  444. minWidth: 100,
  445. prop: 'engrave',
  446. label: '刻码',
  447. align: 'center'
  448. }
  449. ],
  450. selection: [],
  451. discountTotalPrice: 0.0,
  452. allPrice: 0.0,
  453. curIndex: null,
  454. innerboundDetailsDialogFlag: false,
  455. stockLedgerDialogFlag: false,
  456. numberReg,
  457. defaultForm,
  458. warehouseList: [],
  459. dynamicsColumns: [],
  460. columnsVersion: 1,
  461. isWarehouseId: 0,
  462. blockCountColumn: {},
  463. form: {
  464. datasource: []
  465. },
  466. rules: {}
  467. };
  468. },
  469. created() {
  470. this.getColumns();
  471. this.requestDict('产地');
  472. this.requestDict('生产类型');
  473. parameterGetByCode({
  474. code: 'eom_saleManage_invoice_warehouseId'
  475. }).then((res) => {
  476. if (res.value) {
  477. this.isWarehouseId = res.value;
  478. }
  479. });
  480. },
  481. computed: {
  482. canHandl() {
  483. return this.form.datasource.length;
  484. },
  485. clientEnvironmentId() {
  486. return this.$store.state.user.info.clientEnvironmentId;
  487. },
  488. columns() {
  489. return [
  490. {
  491. width: 60,
  492. type: 'index',
  493. columnKey: 'index',
  494. align: 'center',
  495. fixed: 'left'
  496. },
  497. {
  498. minWidth: 150,
  499. prop: 'orderNo',
  500. label: '订单编码',
  501. align: 'center',
  502. fixed: 'left'
  503. },
  504. {
  505. width: 200,
  506. prop: 'productName',
  507. label: '名称',
  508. slot: 'productName',
  509. align: 'center'
  510. },
  511. {
  512. width: 120,
  513. prop: 'productCode',
  514. label: '编码',
  515. slot: 'productCode',
  516. align: 'center'
  517. },
  518. {
  519. width: 200,
  520. prop: 'productCategoryName',
  521. label: '类型',
  522. slot: 'productCategoryName',
  523. align: 'center'
  524. },
  525. {
  526. width: 160,
  527. prop: 'batchNo',
  528. label: '批次号',
  529. slot: 'batchNo',
  530. align: 'center'
  531. },
  532. {
  533. width: 160,
  534. prop: 'productBrand',
  535. label: '牌号',
  536. slot: 'productBrand',
  537. align: 'center'
  538. },
  539. {
  540. width: 120,
  541. prop: 'modelType',
  542. label: '型号',
  543. slot: 'modelType',
  544. align: 'center'
  545. },
  546. {
  547. width: 120,
  548. prop: 'specification',
  549. label: '规格',
  550. slot: 'specification',
  551. align: 'center'
  552. },
  553. {
  554. width: 160,
  555. prop: 'modelKey',
  556. label: '机型',
  557. slot: 'modelKey',
  558. align: 'center'
  559. },
  560. {
  561. width: 160,
  562. prop: 'colorKey',
  563. label: '颜色',
  564. slot: 'colorKey',
  565. align: 'center'
  566. },
  567. {
  568. minWidth: 160,
  569. prop: 'productionCodes',
  570. label: '生产编号',
  571. align: 'center',
  572. slot: 'productionCodes'
  573. },
  574. {
  575. minWidth: 120,
  576. prop: 'goodsLevel',
  577. label: '物品级别',
  578. formatter: (_row, _column, cellValue) => {
  579. return levelList.find((item) => item.value == _row.goodsLevel)
  580. ?.label;
  581. },
  582. align: 'center'
  583. },
  584. ...this.dynamicsColumns,
  585. {
  586. width: 120,
  587. prop: 'customerMark',
  588. label: '客户代号',
  589. slot: 'customerMark',
  590. align: 'center'
  591. },
  592. {
  593. width: 200,
  594. prop: 'warehouseId',
  595. label: '仓库名称',
  596. slot: 'warehouseId',
  597. headerSlot: 'headerWarehouseId',
  598. align: 'center'
  599. },
  600. {
  601. width: 100,
  602. prop: 'warehouseNum',
  603. label: '库存',
  604. align: 'center',
  605. slot: 'warehouseNum'
  606. },
  607. // {
  608. // width: 100,
  609. // prop: 'stockLedger',
  610. // label: '发货明细',
  611. // slot: 'stockLedger',
  612. // align: 'center'
  613. // },
  614. {
  615. width: 150,
  616. prop: 'saleCount',
  617. label: '发货数量',
  618. slot: 'saleCount',
  619. headerSlot: 'headerTotalCount',
  620. align: 'center'
  621. },
  622. {
  623. width: 150,
  624. prop: 'saleUnit',
  625. label: '单位',
  626. slot: 'saleUnit',
  627. align: 'center'
  628. },
  629. {
  630. width: 120,
  631. prop: 'packingSpecification',
  632. align: 'center',
  633. label: '包装规格',
  634. showOverflowTooltip: true
  635. },
  636. {
  637. width: 120,
  638. prop: 'totalCount',
  639. label: '计量数量',
  640. // slot: 'totalCount',
  641. // headerSlot: 'headerTotalCount',
  642. align: 'center'
  643. },
  644. {
  645. width: 120,
  646. prop: 'orderTotalCount',
  647. label: '订单数量',
  648. slot: 'orderTotalCount',
  649. align: 'center'
  650. },
  651. {
  652. width: 80,
  653. prop: 'measuringUnit',
  654. label: '计量单位',
  655. slot: 'measuringUnit',
  656. align: 'center'
  657. },
  658. this.clientEnvironmentId == 4
  659. ? {
  660. width: 150,
  661. prop: 'blockCount',
  662. label: '发货块数',
  663. slot: 'blockCount',
  664. align: 'center'
  665. }
  666. : { width: 1 },
  667. {
  668. width: 120,
  669. prop: 'singleWeight',
  670. label: '单重',
  671. slot: 'singleWeight',
  672. align: 'center'
  673. },
  674. {
  675. width: 200,
  676. prop: 'receiveTotalWeight',
  677. label: '收货总重',
  678. slot: 'receiveTotalWeight',
  679. align: 'center',
  680. headerSlot: 'headerReceiveTotalWeight'
  681. },
  682. {
  683. width: 100,
  684. prop: 'sendTotalWeight',
  685. label: '发货总重',
  686. slot: 'sendTotalWeight',
  687. align: 'center'
  688. },
  689. {
  690. width: 100,
  691. prop: 'increaseTotalWeight',
  692. label: '增重重量',
  693. slot: 'increaseTotalWeight',
  694. align: 'center'
  695. },
  696. {
  697. width: 100,
  698. prop: 'weightUnit',
  699. label: '重量单位',
  700. slot: 'weightUnit',
  701. align: 'center'
  702. },
  703. // {
  704. // width: 160,
  705. // prop: 'pricingWay',
  706. // label: '计价方式',
  707. // slot: 'pricingWay',
  708. // align: 'center',
  709. // formatter: (row, column) => {
  710. // return row.pricingWay == 1
  711. // ? '按数量计费'
  712. // : row.pricingWay == 2
  713. // ? '按重量计费'
  714. // : '';
  715. // }
  716. // },
  717. {
  718. width: 180,
  719. prop: 'singlePrice',
  720. label: '单价',
  721. slot: 'singlePrice',
  722. align: 'center'
  723. },
  724. {
  725. width: 160,
  726. prop: 'taxRate',
  727. label: '税率',
  728. formatter: (_row, _column, cellValue) => {
  729. return _row.taxRate ? _row.taxRate + '%' : '';
  730. },
  731. align: 'center'
  732. },
  733. {
  734. width: 180,
  735. prop: 'notaxSinglePrice',
  736. label: '不含税单价',
  737. align: 'center'
  738. },
  739. {
  740. width: 160,
  741. prop: 'discountSinglePrice',
  742. label: '折后单价',
  743. slot: 'discountSinglePrice',
  744. align: 'center'
  745. },
  746. {
  747. width: 120,
  748. prop: 'totalPrice',
  749. label: '合计',
  750. slot: 'totalPrice',
  751. align: 'center'
  752. },
  753. {
  754. width: 160,
  755. prop: 'notaxTotalPrice',
  756. label: '含税合计',
  757. align: 'center'
  758. },
  759. {
  760. width: 120,
  761. prop: 'discountTotalPrice',
  762. label: '折后合计',
  763. slot: 'discountTotalPrice',
  764. align: 'center'
  765. },
  766. {
  767. width: 120,
  768. prop: 'imgCode',
  769. align: 'center',
  770. label: '图号/件号',
  771. showOverflowTooltip: true
  772. },
  773. {
  774. width: 120,
  775. prop: 'produceType',
  776. align: 'center',
  777. label: '属性类型',
  778. formatter: (row, column) => {
  779. if (row.produceType) {
  780. return row.produceType
  781. .map((item) => {
  782. return lbjtList[item];
  783. })
  784. .toString();
  785. }
  786. },
  787. showOverflowTooltip: true
  788. },
  789. {
  790. width: 200,
  791. prop: 'guaranteePeriod',
  792. label: '有效期',
  793. slot: 'guaranteePeriod',
  794. formatter: (_row, _column, cellValue) => {
  795. let val = '';
  796. if (_row.guaranteePeriod) {
  797. val += _row.guaranteePeriod;
  798. }
  799. if (_row.guaranteePeriodUnitName) {
  800. val += _row.guaranteePeriodUnitName;
  801. }
  802. return val;
  803. },
  804. align: 'center'
  805. },
  806. {
  807. width: 200,
  808. prop: 'guaranteePeriodDeadline',
  809. label: '有效期截止日期',
  810. slot: 'guaranteePeriodDeadline',
  811. align: 'center'
  812. },
  813. {
  814. prop: 'provenance',
  815. label: '产地',
  816. slot: 'provenance',
  817. align: 'center',
  818. // show:this.contractBookType==2,
  819. minWidth: 200,
  820. showOverflowTooltip: true,
  821. formatter: (row, column) => {
  822. return row.provenance && row.provenance.length
  823. ? row.provenance
  824. .map((item) => this.getDictValue('产地', item))
  825. .join(',')
  826. : '';
  827. }
  828. },
  829. {
  830. width: 130,
  831. prop: 'technicalAnswerName',
  832. label: '技术答疑人',
  833. slot: 'technicalAnswerName',
  834. align: 'center'
  835. },
  836. {
  837. width: 220,
  838. prop: 'technicalParams',
  839. label: '技术参数',
  840. slot: 'technicalParams',
  841. align: 'center'
  842. },
  843. {
  844. width: 240,
  845. prop: 'technicalDrawings',
  846. label: '技术图纸',
  847. slot: 'technicalDrawings',
  848. align: 'center'
  849. },
  850. {
  851. width: 220,
  852. prop: 'remark',
  853. label: '备注',
  854. slot: 'remark',
  855. align: 'center'
  856. },
  857. {
  858. columnKey: 'action',
  859. label: '操作',
  860. width: 180,
  861. align: 'center',
  862. resizable: false,
  863. slot: 'action',
  864. fixed: 'right',
  865. showOverflowTooltip: true
  866. }
  867. ];
  868. }
  869. },
  870. mounted() {
  871. // this.clientEnvironmentId =
  872. },
  873. methods: {
  874. getSummaries(param) {
  875. if (this.clientEnvironmentId != 4) {
  876. return;
  877. }
  878. return getSummaries(
  879. param,
  880. ['saleCount', 'blockCount', 'totalCount'],
  881. ' '
  882. );
  883. },
  884. downloadFile(file) {
  885. getFile({ objectName: file.storePath }, file.name);
  886. },
  887. //发货明细选择
  888. stockLedgerSelect(row, index) {
  889. this.curIndex = index;
  890. this.stockLedgerDialogFlag = true;
  891. this.$nextTick(() => {
  892. this.$refs.stockLedgerDialogRef.init(row.sendProductDetail, row);
  893. });
  894. },
  895. // changeCount1(row, index) {
  896. // this.tableHandleKeyUp(row, index, 'sum');
  897. // this.changeCount(row, index);
  898. // },
  899. packingChange(item, index) {
  900. this.$set(this.form.datasource[index], 'saleUnit', item.conversionUnit);
  901. },
  902. //改变数量
  903. // changeCount() {
  904. // this.form.datasource.forEach((item, index) => {
  905. // if (item.pricingWay == 1) {
  906. // this.$set(
  907. // this.form.datasource[index],
  908. // 'discountTotalPrice',
  909. // item.discountSinglePrice * item.totalCount
  910. // );
  911. // this.$set(
  912. // this.form.datasource[index],
  913. // 'totalPrice',
  914. // item.singlePrice * item.totalCount
  915. // );
  916. // }
  917. // if (item.pricingWay == 2) {
  918. // this.$set(
  919. // this.form.datasource[index],
  920. // 'discountTotalPrice',
  921. // item.discountSinglePrice *
  922. // item.totalCount *
  923. // (item.singleWeight || 0)
  924. // );
  925. // this.$set(
  926. // this.form.datasource[index],
  927. // 'totalPrice',
  928. // item.singlePrice * item.totalCount * (item.singleWeight || 0)
  929. // );
  930. // }
  931. // });
  932. // },
  933. //获取
  934. getStockLedger(sendProductDetail) {
  935. if (!this.form.datasource[this.curIndex].sendProductDetail)
  936. this.form.datasource[this.curIndex].sendProductDetail = [];
  937. let row = this.form.datasource[this.curIndex];
  938. row.sendProductDetail.push(...sendProductDetail);
  939. this.form.datasource[this.curIndex] = row;
  940. this.$refs['childrenTable' + this.curIndex].reload();
  941. this.$refs.table.reload();
  942. },
  943. //删除发货明细
  944. stockLedgerRemove(PIndex) {
  945. let row = this.form.datasource[PIndex];
  946. this.selection.forEach((item) => {
  947. let index = row.sendProductDetail.findIndex((i) => i.id == item.id);
  948. row.sendProductDetail.splice(index, 1);
  949. });
  950. this.form.datasource[PIndex] = row;
  951. this.$refs['childrenTable' + PIndex].reload();
  952. this.$refs.table.reload();
  953. this.selection = [];
  954. },
  955. async warehouseChange(index, row) {
  956. const data = row.warehouseList.find(
  957. (item) => item.warehouseId == row.warehouseId
  958. );
  959. this.$set(
  960. this.form.datasource[index],
  961. 'warehouseName',
  962. data.warehouseName
  963. );
  964. this.$set(
  965. this.form.datasource[index],
  966. 'warehouseCode',
  967. data.warehouseCode
  968. );
  969. const warehouseOutStock = await getWarehouseOutStock({
  970. warehouseId: data.warehouseId,
  971. code: row.productCode
  972. });
  973. this.$set(
  974. this.form.datasource[index],
  975. 'warehouseNum',
  976. warehouseOutStock || 0
  977. );
  978. },
  979. //改变数量
  980. changeCount(row, index, isBlockCount = true) {
  981. this.$set(
  982. this.form,
  983. 'datasource[' + index + ']',
  984. changeCount(row, {
  985. countKey: 'saleCount',
  986. unitKey: 'saleUnit',
  987. unitIdKey: 'saleUnitId'
  988. })
  989. );
  990. this.$set(
  991. this.form.datasource[index],
  992. 'sendTotalWeight',
  993. this.form.datasource[index].totalWeight
  994. );
  995. this.changeSendTotalWeight(row, index);
  996. this.getNotaxSinglePrice();
  997. this.$forceUpdate();
  998. if (this.clientEnvironmentId == 4 && !isBlockCount) {
  999. this.tableHandleKeyUp(row, index, 'sum');
  1000. }
  1001. },
  1002. //修改发货总重
  1003. changeSendTotalWeight(row, index) {
  1004. this.curIndex = index;
  1005. this.setIcreaseTotalWeight(row);
  1006. },
  1007. keyChange(index, row, key) {
  1008. this.$set(
  1009. this.form.datasource[index],
  1010. 'extField.' + key,
  1011. row.extField[key]
  1012. );
  1013. this.$forceUpdate();
  1014. },
  1015. //设置增重总重
  1016. setIcreaseTotalWeight(row) {
  1017. let receiveTotalWeight = Number(
  1018. this.form.datasource[this.curIndex]?.receiveTotalWeight
  1019. );
  1020. let sendTotalWeight = Number(
  1021. this.form.datasource[this.curIndex]?.sendTotalWeight
  1022. );
  1023. if (sendTotalWeight && receiveTotalWeight) {
  1024. this.$set(
  1025. this.form.datasource[this.curIndex],
  1026. 'increaseTotalWeight',
  1027. (sendTotalWeight - receiveTotalWeight).toFixed(2)
  1028. );
  1029. }
  1030. this.$refs.table.reload();
  1031. this.$forceUpdate();
  1032. },
  1033. //计算不含税单价
  1034. getNotaxSinglePrice() {
  1035. this.form.datasource.forEach((item, index) => {
  1036. if (item.singlePrice && item.taxRate) {
  1037. this.$set(
  1038. this.form.datasource[index],
  1039. 'notaxSinglePrice',
  1040. parseFloat(
  1041. (item.singlePrice / (1 + item.taxRate / 100)).toFixed(2)
  1042. )
  1043. );
  1044. } else {
  1045. this.$set(this.form.datasource[index], 'notaxSinglePrice', '');
  1046. }
  1047. });
  1048. },
  1049. //入库单详情
  1050. handleInnerBound(e, rows, index) {
  1051. this.curIndex = index;
  1052. this.innerboundDetailsDialogFlag = true;
  1053. this.$nextTick(() => {
  1054. let row = {
  1055. code: this.entrustedCode
  1056. };
  1057. this.$refs.innerboundDetailsDialogRef.init(row);
  1058. });
  1059. },
  1060. //选择入库单信息
  1061. saveInnerDate(data = []) {
  1062. let totalWeight = data.reduce((num, row) => {
  1063. num += Number(row.weight);
  1064. return num;
  1065. }, 0);
  1066. this.$set(
  1067. this.form.datasource[this.curIndex],
  1068. 'receiveTotalWeight',
  1069. totalWeight
  1070. );
  1071. console.log(totalWeight, 'totalWeight');
  1072. this.setIcreaseTotalWeight(this.form.datasource[this.curIndex]);
  1073. },
  1074. // getWeightPrice() {
  1075. // let increaseTotalWeight =
  1076. // this.form.datasource[this.curIndex].increaseTotalWeight;
  1077. // let singlePrice = this.form.datasource[this.curIndex].singlePrice;
  1078. // let discountSinglePrice =
  1079. // this.form.datasource[this.curIndex].discountSinglePrice;
  1080. // this.$set(
  1081. // this.form.datasource[this.curIndex],
  1082. // 'totalPrice',
  1083. // (Number(increaseTotalWeight) * Number(singlePrice)).toFixed(2)
  1084. // );
  1085. // this.$set(
  1086. // this.form.datasource[this.curIndex],
  1087. // 'discountTotalPrice',
  1088. // (Number(discountSinglePrice) * Number(increaseTotalWeight)).toFixed(2)
  1089. // );
  1090. // },
  1091. // 表格:模数、数量(方)、块数输入框 输入事件
  1092. tableHandleKeyUp(row, index, name) {
  1093. if (row.specification) {
  1094. let modelArr = row.specification.split('*');
  1095. let modelLong = modelArr[0]; // model规格长度
  1096. let modeWide = modelArr[1]; // model规格宽度
  1097. let modeHight = modelArr[2].substr(0, modelArr[2].indexOf('cm')); // model规格高度
  1098. modeHight = Number(modeHight);
  1099. if (name === 'sum') {
  1100. row.blockCount = Math.floor(
  1101. row.totalCount / ((modelLong * modeWide * modeHight) / 1000000)
  1102. );
  1103. } else if (name === 'blockCount') {
  1104. row.totalCount =
  1105. (Number(row.blockCount) * modelLong * modeWide * modeHight) /
  1106. 1000000;
  1107. row.saleCount = row.totalCount;
  1108. this.changeCount(row, index, true);
  1109. }
  1110. }
  1111. },
  1112. //选择产品回调
  1113. async changeParent(obj) {
  1114. console.log(obj,'obj')
  1115. obj.forEach((item) => {
  1116. item.orderTotalCount = item.totalCount;
  1117. item.id = '';
  1118. });
  1119. this.putTableValue(copyObj(obj));
  1120. },
  1121. //选择产品回调
  1122. changeParentBiz(obj = [], idx) {
  1123. obj.forEach(async (item, index) => {
  1124. let i = idx == -1 ? index : idx;
  1125. let row = JSON.parse(JSON.stringify(this.defaultForm));
  1126. row.key = this.form.datasource.length + 1;
  1127. row['tempId'] = this.form.datasource.length + 1;
  1128. let parasm = idx == -1 ? row : this.form.datasource[i];
  1129. this.$set(parasm, 'productId', item.id);
  1130. this.$set(parasm, 'categoryName', item.name);
  1131. this.$set(parasm, 'productCategoryId', item.categoryLevelId);
  1132. this.$set(parasm, 'productBrand', item.brandNum);
  1133. this.$set(parasm, 'productCategoryName', item.categoryLevelPath);
  1134. this.$set(parasm, 'productCode', item.code);
  1135. this.$set(parasm, 'productName', item.name);
  1136. this.$set(parasm, 'modelType', item.modelType);
  1137. this.$set(parasm, 'availableCountBase', item.availableCountBase);
  1138. this.$set(parasm, 'measuringUnit', item.measuringUnit);
  1139. this.$set(parasm, 'specification', item.specification);
  1140. this.$set(parasm, 'weightUnit', item.weightUnit);
  1141. this.$set(parasm, 'imgCode', item.imgCode);
  1142. this.$set(parasm, 'produceType', item.componentAttribute);
  1143. this.$set(parasm, 'approvalNumber', item.extField?.approvalNumber);
  1144. this.$set(parasm, 'extField', item.extField || {});
  1145. this.$set(parasm, 'singleWeight', item.netWeight);
  1146. this.$set(parasm, 'pricingWay', item.pricingWay || 1);
  1147. this.$set(parasm, 'singlePrice', 0);
  1148. this.$set(parasm, 'discountSinglePrice', 0);
  1149. this.$set(parasm, 'goodsLevel', item.goodsLevel);
  1150. if (item.modelKey) {
  1151. this.$set(parasm, 'modelKey', item.modelKey.split(','));
  1152. }
  1153. if (item.colorKey) {
  1154. this.$set(parasm, 'colorKey', item.colorKey.split(','));
  1155. }
  1156. this.$set(parasm, 'receiveTotalWeight', 0);
  1157. this.$set(parasm, 'sendTotalWeight', 0);
  1158. this.$set(parasm, 'increaseTotalWeight', 0);
  1159. this.$set(
  1160. parasm,
  1161. 'packageDispositionList',
  1162. item.packageDispositionList
  1163. );
  1164. if (item.packageDispositionList?.length) {
  1165. this.$set(parasm, 'saleUnitId', item.packageDispositionList[0].id);
  1166. this.$set(
  1167. parasm,
  1168. 'saleUnit',
  1169. item.packageDispositionList[0].conversionUnit
  1170. );
  1171. }
  1172. this.$set(
  1173. parasm,
  1174. 'warehouseList',
  1175. await getIdWarehouseList({
  1176. categoryId: item.id
  1177. })
  1178. );
  1179. this.$set(
  1180. parasm,
  1181. 'packingSpecification',
  1182. item.extField?.packingSpecification
  1183. );
  1184. this.$set(
  1185. parasm,
  1186. 'supplierMark',
  1187. this.form.datasource[0]?.supplierMark
  1188. );
  1189. if (item.purchaseOrigins?.length > 0) {
  1190. item.purchaseOrigins = item.purchaseOrigins.map((val) => val + '');
  1191. }
  1192. this.$set(parasm, 'provenance', item.purchaseOrigins || []);
  1193. if (idx == -1) {
  1194. this.form.datasource.push(row);
  1195. }
  1196. });
  1197. },
  1198. replaceTable(list) {
  1199. list.forEach((item) => {
  1200. item['relationId'] = this.current.tempId;
  1201. });
  1202. this.$emit('replaceTableChange', list);
  1203. },
  1204. // validateTotalCount(row) {
  1205. // return (rule, value, callback) => {
  1206. // if (isNaN(value) || Number(value) <= 0) {
  1207. // this.$message.error('请输入大于0的数');
  1208. // callback(false);
  1209. // } else else {
  1210. // callback();
  1211. // }
  1212. // };
  1213. // },
  1214. // 返回列表数据
  1215. getTableValue() {
  1216. let comitDatasource = this.form.datasource;
  1217. if (comitDatasource.length === 0) return [];
  1218. comitDatasource.forEach(async (v) => {
  1219. if (v.modelKey) {
  1220. v.modelKey = v.modelKey.toString();
  1221. }
  1222. if (v.colorKey) {
  1223. v.colorKey = v.colorKey.toString();
  1224. }
  1225. v.totalCount = Number(v.totalCount);
  1226. v.technicalDrawings = Array.isArray(v.technicalDrawings)
  1227. ? v.technicalDrawings
  1228. : [];
  1229. v.customerReqFiles = Array.isArray(v.customerReqFiles)
  1230. ? v.customerReqFiles
  1231. : [];
  1232. v.industryArtFiles = v.industryArtFiles || [];
  1233. v.otherFiles = v.otherFiles || [];
  1234. });
  1235. return comitDatasource;
  1236. },
  1237. getPrice() {
  1238. return [this.allPrice];
  1239. },
  1240. //修改回显
  1241. putTableValue(data,isInit) {
  1242. if(isInit){
  1243. this.form.datasource= []
  1244. }
  1245. if (data) {
  1246. this.setValue(data);
  1247. }
  1248. },
  1249. setValue(data) {
  1250. let indexS = [];
  1251. data.forEach((item, index) => {
  1252. if (item.modelKey) {
  1253. item.modelKey = item.modelKey.toString();
  1254. }
  1255. if (item.colorKey) {
  1256. item.colorKey = item.colorKey.toString();
  1257. }
  1258. item.receiveTotalWeight = item.receiveTotalWeight || 0;
  1259. if (item.weightUnit == item.measuringUnit) {
  1260. item.sendTotalWeight = item.sendTotalWeight || item.totalCount;
  1261. } else {
  1262. item.sendTotalWeight =
  1263. item.sendTotalWeight ||
  1264. Number(item.totalCount) * Number(item.singleWeight) ||
  1265. 0;
  1266. }
  1267. if (this.outsourceSendCode) {
  1268. item.increaseTotalWeight =
  1269. Number(item.receiveTotalWeight) - Number(item.sendTotalWeight);
  1270. item.increaseTotalWeight;
  1271. } else {
  1272. item.increaseTotalWeight =
  1273. item.increaseTotalWeight || item.receiveTotalWeight || 0;
  1274. }
  1275. item['sendTotalWeight'] = item.sendTotalWeigh;
  1276. item['increaseTotalWeight'] = item.increaseTotalWeight;
  1277. item['tempId'] = this.form.datasource.length;
  1278. indexS.push(this.form.datasource.length);
  1279. this.$set(
  1280. this.form.datasource,
  1281. this.form.datasource.length,
  1282. copyObj(item)
  1283. );
  1284. // this.form.datasource.push(item);
  1285. });
  1286. this.form.datasource.forEach(async (item, index) => {
  1287. if (indexS.includes(index)) {
  1288. this.$set(
  1289. this.form.datasource[index],
  1290. 'warehouseList',
  1291. await getIdWarehouseList({
  1292. categoryId: item.productId
  1293. })
  1294. );
  1295. if (item.warehouseId) {
  1296. this.$set(
  1297. this.form.datasource[index],
  1298. 'warehouseNum',
  1299. await getWarehouseOutStock({
  1300. warehouseId: item.warehouseId,
  1301. code: item.productCode
  1302. })
  1303. );
  1304. } else if (this.form.datasource[index]?.warehouseList?.length) {
  1305. this.$set(
  1306. this.form.datasource[index],
  1307. 'warehouseId',
  1308. this.form.datasource[index]?.warehouseList[0].warehouseId
  1309. );
  1310. await this.warehouseChange(index, this.form.datasource[index]);
  1311. }
  1312. }
  1313. });
  1314. },
  1315. remove(i) {
  1316. this.form.datasource.splice(i, 1);
  1317. this.setSort();
  1318. },
  1319. // 重新排序
  1320. setSort() {
  1321. this.form.datasource.forEach((n, index) => {
  1322. n.key = index + 1;
  1323. });
  1324. },
  1325. //选择产品
  1326. handParent() {
  1327. if (!this.orderId && !this.orderIds)
  1328. return this.$message.error('请先选择订单');
  1329. this.$refs.BIZproductListRef.open('', -1);
  1330. },
  1331. // 添加
  1332. handlAdd() {
  1333. if (!this.orderId && !this.orderIds)
  1334. return this.$message.error('请先选择订单');
  1335. this.$refs.productListRef.open(this.oldProductList);
  1336. },
  1337. //库存台账
  1338. selectStockLedgerDialogOpen(row) {
  1339. this.current = row;
  1340. this.$refs.selectStockLedgerDialogRef.open();
  1341. },
  1342. validateForm(callback) {
  1343. //开始表单校验
  1344. this.$refs.form.validate((valid, obj) => {
  1345. let is = false;
  1346. this.form.datasource.forEach((item) => {
  1347. if (Number(item.totalCount) > item.orderTotalCount) {
  1348. is = true;
  1349. }
  1350. });
  1351. if (is) {
  1352. this.$message.warning('发货数量大于订单总数量');
  1353. if (this.isTotalCount == 1) {
  1354. callback(false);
  1355. }
  1356. }
  1357. if (obj) {
  1358. let messages = Object.keys(obj).map((key) => obj[key][0]);
  1359. if (messages.length > 0) {
  1360. this.$message.warning(messages[0].message);
  1361. }
  1362. }
  1363. callback(valid);
  1364. });
  1365. }
  1366. }
  1367. };
  1368. </script>
  1369. <style lang="scss" scoped>
  1370. .headbox {
  1371. display: flex;
  1372. justify-content: flex-start;
  1373. align-items: center;
  1374. .amount {
  1375. font-size: 14px;
  1376. font-weight: bold;
  1377. padding-right: 30px;
  1378. }
  1379. }
  1380. .time-form .el-form-item {
  1381. margin-bottom: 0 !important;
  1382. }
  1383. ::v-deep .period {
  1384. display: flex;
  1385. .borderleftnone {
  1386. .el-input--medium .el-input__inner {
  1387. border-top-right-radius: 0;
  1388. border-bottom-right-radius: 0;
  1389. }
  1390. }
  1391. .borderrightnone {
  1392. .el-input--medium .el-input__inner {
  1393. border-top-left-radius: 0;
  1394. border-bottom-left-radius: 0;
  1395. }
  1396. }
  1397. }
  1398. ::v-deep .time-form tbody > tr:hover > td {
  1399. background-color: transparent !important;
  1400. }
  1401. ::v-deep .time-form .el-table tr {
  1402. background-color: #ffffff;
  1403. }
  1404. .pricebox {
  1405. display: flex;
  1406. justify-content: flex-start;
  1407. align-items: center;
  1408. font-weight: bold;
  1409. }
  1410. </style>