From cba8576e30cadff62d1133a59e486eb422e3b7b8 Mon Sep 17 00:00:00 2001 From: lixuan Date: Mon, 27 Feb 2023 09:20:14 +0800 Subject: [PATCH] xiugai --- src/views/order/components/billOfLading.vue | 2 +- src/views/order/index.vue | 11 +++++++++-- src/views/product/components/create.vue | 20 ++++++++++++++++---- src/views/product/index.vue | 15 +++++++++++---- 4 files changed, 37 insertions(+), 11 deletions(-) diff --git a/src/views/order/components/billOfLading.vue b/src/views/order/components/billOfLading.vue index 9562b58..22e417a 100644 --- a/src/views/order/components/billOfLading.vue +++ b/src/views/order/components/billOfLading.vue @@ -368,7 +368,7 @@ export default { this.$emit("closeWindow"); this.form = {}; this.$refs.form.clearValidate(); - this.controlWindows.create = false; + this.controlWindows.bill = false; }, }, }; diff --git a/src/views/order/index.vue b/src/views/order/index.vue index dfc757a..1d83b14 100644 --- a/src/views/order/index.vue +++ b/src/views/order/index.vue @@ -106,7 +106,7 @@ minWidth="180" > @@ -116,7 +116,7 @@ minWidth="180" > @@ -204,6 +204,13 @@ import autocomplete from "components/autocomplete/index.vue"; import billOfLading from "./components/billOfLading.vue"; export default { + filters:{ + toNumberFixed(val){ + if(val){ + return Number(val).toFixed(2) + }else{return '--'} + } + }, data() { return { controlWindows: { diff --git a/src/views/product/components/create.vue b/src/views/product/components/create.vue index 5c0e0cd..6ea0141 100644 --- a/src/views/product/components/create.vue +++ b/src/views/product/components/create.vue @@ -37,6 +37,7 @@ + - + item.id == e ); @@ -206,16 +209,17 @@ export default { } }, //搜索产品 - productData(){ + async productData(){ let data = { refineryId:this.form.refineryId, productType:this.form.productType, enableMark:'ENABLE' } - serve.getRefineryProductList(data).then((res) => { + await serve.getRefineryProductList(data).then((res) => { this.productNameList = res.data; }) - console.log(this.productRowData,'aaaaaaaaaa') + // this.form.productId = this.productNameList[0].productId + console.log(this.productRowData,this.productNameList,'aaaaaaaaaa') }, //搜索客户 customData(value){ @@ -234,9 +238,14 @@ export default { this.configAutocomplete.echoId = id; this.configAutocomplete.echoName = this.form.refineryName; this.form.salePrice = this.form.salePrice2company + this.form.productId = this.form.id + delete this.form.id + this.rowCreate = true this.productChange() console.log("this.form", this.form); + }else{ + this.rowCreate = false } }, submit() { @@ -261,7 +270,10 @@ export default { closeWindow() { this.$emit("closeWindow"); this.form = {}; + this.customList = [] this.controlWindows.addInfo = {}; + this.configAutocomplete = {} + this.productNameList = [] this.$refs.form.clearValidate(); this.controlWindows.create = false; }, diff --git a/src/views/product/index.vue b/src/views/product/index.vue index 0bd238e..2f9684a 100644 --- a/src/views/product/index.vue +++ b/src/views/product/index.vue @@ -99,17 +99,17 @@ @@ -142,7 +142,7 @@ 调价记录 - 下单 + 下单