|
|
@ -132,6 +132,13 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
"form.productId": { |
|
|
|
|
|
|
|
handler(n, o) { |
|
|
|
|
|
|
|
if (n) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
}, |
|
|
|
"form.preQuantity": { |
|
|
|
"form.preQuantity": { |
|
|
|
handler(n, o) { |
|
|
|
handler(n, o) { |
|
|
|
if (n) { |
|
|
|
if (n) { |
|
|
@ -209,6 +216,7 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
productDataList(e) { |
|
|
|
productDataList(e) { |
|
|
|
|
|
|
|
console.log(e,'******************') |
|
|
|
this.productRowData = this.productNameList.filter((item) => item.id == e); |
|
|
|
this.productRowData = this.productNameList.filter((item) => item.id == e); |
|
|
|
this.form.salePrice = this.productRowData[0].salePrice2company; |
|
|
|
this.form.salePrice = this.productRowData[0].salePrice2company; |
|
|
|
this.form.floorPrice = this.productRowData[0].floorPrice; |
|
|
|
this.form.floorPrice = this.productRowData[0].floorPrice; |
|
|
@ -245,7 +253,9 @@ export default { |
|
|
|
submit() { |
|
|
|
submit() { |
|
|
|
this.$refs["form"].validate((valid) => { |
|
|
|
this.$refs["form"].validate((valid) => { |
|
|
|
if (valid) { |
|
|
|
if (valid) { |
|
|
|
|
|
|
|
this.productDataList(this.form.productId); |
|
|
|
this.form.productMeasurement = this.productRowData[0].measurement; |
|
|
|
this.form.productMeasurement = this.productRowData[0].measurement; |
|
|
|
|
|
|
|
delete this.form.id; |
|
|
|
this.judgeInterface(this.form).then((res) => { |
|
|
|
this.judgeInterface(this.form).then((res) => { |
|
|
|
if (res.code === 20000) { |
|
|
|
if (res.code === 20000) { |
|
|
|
this.$message.success(res.msg); |
|
|
|
this.$message.success(res.msg); |
|
|
|