Merge pull request 'lixuan' (#5) from lixuan into master
Reviewed-on: #5
This commit was merged in pull request #5.
This commit is contained in:
@@ -112,14 +112,14 @@ export default {
|
||||
"form.salePrice": {
|
||||
handler(n, o) {
|
||||
if(n){
|
||||
this.form.preAmount = this.form.salePrice*(this.form.preQuantity?this.form.preQuantity:0)
|
||||
this.form.preAmount = (this.form.salePrice*(this.form.preQuantity?this.form.preQuantity:0)).toFixed(2)
|
||||
}
|
||||
},
|
||||
},
|
||||
"form.preQuantity": {
|
||||
handler(n, o) {
|
||||
if(n){
|
||||
this.form.preAmount = this.form.preQuantity*(this.form.salePrice?this.form.salePrice:0)
|
||||
this.form.preAmount = (this.form.preQuantity*(this.form.salePrice?this.form.salePrice:0)).toFixed(2)
|
||||
}
|
||||
},
|
||||
}
|
||||
@@ -193,7 +193,6 @@ export default {
|
||||
);
|
||||
this.form.salePrice = this.productRowData[0].salePrice2company
|
||||
this.form.floorPrice = this.productRowData[0].floorPrice
|
||||
this.form.productMeasurement = this.productRowData[0].measurement
|
||||
},
|
||||
productChange(){
|
||||
this.productData()
|
||||
@@ -256,7 +255,7 @@ export default {
|
||||
submit() {
|
||||
this.$refs["form"].validate((valid) => {
|
||||
if (valid) {
|
||||
|
||||
this.form.productMeasurement = this.productRowData[0].measurement
|
||||
this.judgeInterface(this.form).then((res) => {
|
||||
if (res.code === 20000) {
|
||||
this.$message.success(res.msg);
|
||||
|
||||
Reference in New Issue
Block a user