|
@@ -763,7 +763,7 @@
|
|
|
item['modelKey'] = val.modelKey;
|
|
item['modelKey'] = val.modelKey;
|
|
|
item['colorKey'] = val.colorKey;
|
|
item['colorKey'] = val.colorKey;
|
|
|
|
|
|
|
|
- item.totalPrice = item.singlePrice * item.measureQuantity;
|
|
|
|
|
|
|
+ item.totalPrice = (item.singlePrice * item.measureQuantity).toFixed(2);
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
});
|
|
});
|
|
@@ -868,11 +868,25 @@
|
|
|
this.$set(this.form.productList[index], 'totalCount', 0);
|
|
this.$set(this.form.productList[index], 'totalCount', 0);
|
|
|
}
|
|
}
|
|
|
if (row.totalCount && row.singlePrice) {
|
|
if (row.totalCount && row.singlePrice) {
|
|
|
- console.log(row.totalCount * row.singlePrice);
|
|
|
|
|
|
|
+ // console.log(row.totalCount * row.singlePrice);
|
|
|
this.$set(
|
|
this.$set(
|
|
|
this.form.productList[index],
|
|
this.form.productList[index],
|
|
|
'totalPrice',
|
|
'totalPrice',
|
|
|
- row.totalCount * row.singlePrice
|
|
|
|
|
|
|
+ (row.totalCount * row.singlePrice).toFixed(2)
|
|
|
|
|
+ );
|
|
|
|
|
+ }
|
|
|
|
|
+ // console.log(row.totalCount, row.saleCount);
|
|
|
|
|
+ if(+row.totalCount === +row.saleCount) {
|
|
|
|
|
+ this.$set(
|
|
|
|
|
+ this.form.productList[index],
|
|
|
|
|
+ 'isException',
|
|
|
|
|
+ 0
|
|
|
|
|
+ );
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.$set(
|
|
|
|
|
+ this.form.productList[index],
|
|
|
|
|
+ 'isException',
|
|
|
|
|
+ 1
|
|
|
);
|
|
);
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|