From 62eb5ecf81f59068e760b464d431e13d79d6963e Mon Sep 17 00:00:00 2001 From: lixuan Date: Thu, 2 Mar 2023 11:35:23 +0800 Subject: [PATCH] xiugai --- src/views/order/index.vue | 5 ++++- src/views/product/components/create.vue | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/views/order/index.vue b/src/views/order/index.vue index 3873730..4f31100 100644 --- a/src/views/order/index.vue +++ b/src/views/order/index.vue @@ -253,7 +253,9 @@ export default { currentPage: 1, pageSize: 10, total: 0, - params: {}, + params: { + + }, }, oilCompanyMatch: {}, billData:[], @@ -335,6 +337,7 @@ export default { }, //table list getByPage() { + this.parameter.params.customerId=this.$store.state.user.companyId order.getByPage(this.parameter).then((res) => { this.tableData = res.data.list; this.total = res.data.totalCount; diff --git a/src/views/product/components/create.vue b/src/views/product/components/create.vue index 0963af9..c580c26 100644 --- a/src/views/product/components/create.vue +++ b/src/views/product/components/create.vue @@ -107,14 +107,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) } }, }