|
@@ -449,6 +449,15 @@ export default {
|
449
|
449
|
is_check: 2,
|
450
|
450
|
};
|
451
|
451
|
},
|
|
452
|
+
|
|
453
|
+ watch: {
|
|
454
|
+ total_price: function (newval, oldval) {
|
|
455
|
+ if (this.rate_of_concession != "") {
|
|
456
|
+ this.addressChange();
|
|
457
|
+ }
|
|
458
|
+ },
|
|
459
|
+ },
|
|
460
|
+
|
452
|
461
|
methods: {
|
453
|
462
|
getInitOrder() {
|
454
|
463
|
getInitOrder().then((response) => {
|
|
@@ -874,6 +883,8 @@ export default {
|
874
|
883
|
}
|
875
|
884
|
});
|
876
|
885
|
},
|
|
886
|
+
|
|
887
|
+
|
877
|
888
|
getAllPrice() {
|
878
|
889
|
var total_price = 0;
|
879
|
890
|
for (let i = 0; i < this.recordInfo.tableList.length; i++) {
|
|
@@ -882,9 +893,11 @@ export default {
|
882
|
893
|
this.recordInfo.tableList[i].supply_count;
|
883
|
894
|
}
|
884
|
895
|
this.total_price = total_price;
|
885
|
|
- this.discount_amount = (this.total_price * this.rate_of_concession * 0.01).toFixed(2);
|
|
896
|
+ // this.discount_amount = (this.total_price * this.rate_of_concession * 0.01).toFixed(2);
|
886
|
897
|
return total_price.toFixed(2);
|
887
|
898
|
},
|
|
899
|
+
|
|
900
|
+
|
888
|
901
|
count_discount() {
|
889
|
902
|
this.rate_of_concession = (
|
890
|
903
|
this.discount_amount /
|