|
|
@@ -460,7 +460,7 @@
|
|
|
<el-form-item :prop="'datasource.' + scope.$index + '.singleWeight'">
|
|
|
<el-input
|
|
|
v-model="scope.row.singleWeight"
|
|
|
- @input="changeCount(scope.row, scope.$index)"
|
|
|
+ @input="handleCountChange(scope.row, scope.$index)"
|
|
|
placeholder="请输入"
|
|
|
>
|
|
|
<template slot="append">
|
|
|
@@ -1222,8 +1222,7 @@
|
|
|
label: '单重',
|
|
|
slot: 'singleWeight',
|
|
|
headerSlot: 'headerSingleWeight',
|
|
|
- align: 'center',
|
|
|
- isNone: this.quoteType === 2
|
|
|
+ align: 'center'
|
|
|
},
|
|
|
{
|
|
|
minWidth: 120,
|
|
|
@@ -1483,7 +1482,7 @@
|
|
|
prop: 'guaranteePeriodDeadline',
|
|
|
label: '有效期截止日期',
|
|
|
slot: 'guaranteePeriodDeadline',
|
|
|
- isNone: !this.isGuaranteePeriod,
|
|
|
+ isNone: !this.isGuaranteePeriod || this.quoteType === 2,
|
|
|
align: 'center'
|
|
|
},
|
|
|
{
|
|
|
@@ -1776,7 +1775,6 @@
|
|
|
|
|
|
// 计算含税小计(原含税单价逻辑)
|
|
|
calculateIncludingTaxPrice(row, index) {
|
|
|
- console.log('row', row);
|
|
|
if (!row) return;
|
|
|
|
|
|
// 计算未税小记
|
|
|
@@ -1805,6 +1803,22 @@
|
|
|
const quantity = Number(row[this.countObj.countKey]) || 1;
|
|
|
const totalPrice = quotationSubtotalTax * quantity;
|
|
|
this.$set(row, 'totalPrice', totalPrice.toFixed(2));
|
|
|
+ if (row[this.countObj.unitKey] == row.weightUnit) {
|
|
|
+ this.$set(
|
|
|
+ row,
|
|
|
+ 'totalWeight',
|
|
|
+ quantity
|
|
|
+ );
|
|
|
+ } else {
|
|
|
+ if (quantity && row.singleWeight) {
|
|
|
+ this.$set(
|
|
|
+ row,
|
|
|
+ 'totalWeight',
|
|
|
+ (quantity *row.singleWeight).toFixed(2)
|
|
|
+ );
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
this.changeAll();
|
|
|
});
|
|
|
},
|