|
@@ -1137,8 +1137,10 @@ export default {
|
|
|
},
|
|
|
async number_change(e, key) {
|
|
|
this.ruleForm[key] = e + "" || "0";
|
|
|
- console.log(key);
|
|
|
- console.log(this.ruleForm.new_good_price);
|
|
|
+ if (key === "new_good_price") {
|
|
|
+ console.log(key + "----" + this.ruleForm.new_good_price);
|
|
|
+ }
|
|
|
+
|
|
|
this.$refs.ruleForm.validateField(key);
|
|
|
if (key === "good_num") {
|
|
|
await this.get_new_price();
|
|
@@ -1328,10 +1330,11 @@ export default {
|
|
|
let model = JSON.parse(JSON.stringify(this.ruleForm));
|
|
|
model.addrlist = [];
|
|
|
model.customer_code = model.customer_code.toString();
|
|
|
- const {good_price,new_good_price}=model
|
|
|
- let a=this.accMul(good_price, '1'),b=this.accMul(new_good_price, '1')
|
|
|
- if(a!==b){
|
|
|
- model.good_price
|
|
|
+ const { good_price, new_good_price } = model;
|
|
|
+ let a = this.accMul(good_price, "1"),
|
|
|
+ b = this.accMul(new_good_price, "1");
|
|
|
+ if (a !== b) {
|
|
|
+ model.good_price;
|
|
|
}
|
|
|
// if (model.new_good_price == model.good_price) {
|
|
|
// model.good_price = model.new_good_price;F
|