|
|
@@ -879,18 +879,14 @@ export default {
|
|
|
|
|
|
// --------------------------------------------------------------------
|
|
|
//计量单位不是数量时,配置了单重的重量计算
|
|
|
-
|
|
|
- if (row.measureType != 1 && row.singleWeight) {
|
|
|
- //计量数量*单重
|
|
|
- let weight = row.measureQuantity * Number(row.singleWeight);
|
|
|
-
|
|
|
- if(row.measureUnit==row.weightUnit){
|
|
|
+ // row.measureType != 1 &&
|
|
|
+ let weight = 0
|
|
|
+ if(row.measureUnit==row.weightUnit){
|
|
|
weight = row.measureQuantity
|
|
|
- }else{
|
|
|
+ }else if(row.singleWeight){
|
|
|
weight = row.measureQuantity * Number(row.singleWeight);
|
|
|
}
|
|
|
this.$set(this.productList[index], 'weight', weight)
|
|
|
- }
|
|
|
}
|
|
|
},
|
|
|
//出入库申请列表操作直接入库
|