|
@@ -1897,6 +1897,8 @@
|
|
|
this.$set(parasm, 'taxRate', item.taxRate);
|
|
this.$set(parasm, 'taxRate', item.taxRate);
|
|
|
this.$set(parasm, 'discountSinglePrice', item.singlePrice);
|
|
this.$set(parasm, 'discountSinglePrice', item.singlePrice);
|
|
|
this.$set(parasm, 'totalCount', '');
|
|
this.$set(parasm, 'totalCount', '');
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.$set(parasm, 'singlePrice', 0); // 新增物品清单时,单价默认设为0
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
if (this.isSupplier) {
|
|
if (this.isSupplier) {
|
|
@@ -1962,7 +1964,7 @@
|
|
|
this.$set(parasm, 'goodsId', goodsData[0].id);
|
|
this.$set(parasm, 'goodsId', goodsData[0].id);
|
|
|
this.$set(parasm, 'goodsPriceId', goodsPriceList.id);
|
|
this.$set(parasm, 'goodsPriceId', goodsPriceList.id);
|
|
|
this.$set(parasm, 'goodsPriceType', goodsPriceList.priceType);
|
|
this.$set(parasm, 'goodsPriceType', goodsPriceList.priceType);
|
|
|
- this.$set(parasm, 'singlePrice', goodsPriceList.unitPrice);
|
|
|
|
|
|
|
+ this.$set(parasm, 'singlePrice', goodsPriceList.unitPrice || 0);
|
|
|
this.$set(
|
|
this.$set(
|
|
|
parasm,
|
|
parasm,
|
|
|
'notaxSinglePrice',
|
|
'notaxSinglePrice',
|
|
@@ -1971,6 +1973,8 @@
|
|
|
this.$set(parasm, 'taxRate', goodsPriceList.taxRate);
|
|
this.$set(parasm, 'taxRate', goodsPriceList.taxRate);
|
|
|
this.$set(parasm, 'discountSinglePrice', goodsPriceList.unitPrice);
|
|
this.$set(parasm, 'discountSinglePrice', goodsPriceList.unitPrice);
|
|
|
this.$set(parasm, 'totalCount', '');
|
|
this.$set(parasm, 'totalCount', '');
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.$set(parasm, 'singlePrice', 0); // 新增物品清单时,单价默认设为0
|
|
|
}
|
|
}
|
|
|
if (item.modelKey) {
|
|
if (item.modelKey) {
|
|
|
this.$set(parasm, 'modelKey', item.modelKey.split(','));
|
|
this.$set(parasm, 'modelKey', item.modelKey.split(','));
|