From 2e4498069ccf74714a42e0bb434d389f360e6695 Mon Sep 17 00:00:00 2001 From: lixuan Date: Thu, 2 Mar 2023 11:32:19 +0800 Subject: [PATCH 1/2] xiugai --- src/views/product/components/create.vue | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/views/product/components/create.vue b/src/views/product/components/create.vue index 76e91ad..bcb5ac2 100644 --- a/src/views/product/components/create.vue +++ b/src/views/product/components/create.vue @@ -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); From 10047d1f4a8cfb43f18eb0d80f468342a6a442aa Mon Sep 17 00:00:00 2001 From: lixuan Date: Thu, 2 Mar 2023 17:38:02 +0800 Subject: [PATCH 2/2] xiugai --- src/utils/request.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/request.js b/src/utils/request.js index 3ec6f2b..4b10a73 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -21,7 +21,7 @@ service.interceptors.request.use( const JSESSIONID = utils.uuid(); config.headers["JSESSIONID"] = JSESSIONID; config.headers["token"] = utils.bcrypt(JSESSIONID); - + config.headers['dataSources'] = 'WEB' if (env === "development") { return config; }