inventoryTable.vue 44 KB

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