From fd9b53be9c65d6bfaaf7d037d49760a15b8c254e Mon Sep 17 00:00:00 2001 From: "0.0" <1092404103.qq.com> Date: Mon, 18 Sep 2023 17:22:07 +0800 Subject: [PATCH] =?UTF-8?q?1.=E5=9B=9E=E6=98=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../warehouseWarehouseingAddReceipt.vue | 31 +++++++++++++------ .../warehouseWarehousingEntry.vue | 1 - 2 files changed, 21 insertions(+), 11 deletions(-) diff --git a/src/views/warehouse/warehousingentry/warehouseWarehouseingAddReceipt.vue b/src/views/warehouse/warehousingentry/warehouseWarehouseingAddReceipt.vue index c5785915..3c819182 100644 --- a/src/views/warehouse/warehousingentry/warehouseWarehouseingAddReceipt.vue +++ b/src/views/warehouse/warehousingentry/warehouseWarehouseingAddReceipt.vue @@ -453,12 +453,12 @@ export default { deep: true, immediate: true }, - 'form.clientId': { - handler(newVal) { - console.log("newVal>>>>>>>>>>>>>>>",newVal) - console.log("this.options>>>>>>>>>>>>>>>",this.options) - }, -} +// 'form.clientId': { +// handler(newVal) { +// console.log("newVal>>>>>>>>>>>>>>>",newVal) +// console.log("this.options>>>>>>>>>>>>>>>",this.options) +// }, +// } }, computed: { @@ -490,13 +490,17 @@ export default { this.store = []; let b = await getWarehouseDetail(a); - console.log('bbbb', b.data.data); + console.log('bbbb>>>>', b.data.data); const da = b.data.data; this.options.push({ label: da.customerName, value: da.clientId, }); + this.optionCodes.push({ + label: da.customerCode, + value: da.clientId, + }); if (!!da.storeId && da.storeId != '-1') { console.log('门店》》》》'); @@ -689,7 +693,6 @@ export default { this.form.clientId = obj.value; } this.form.serviceType =null; - console.log(""); let aa = ''; this.options.some(i => { // console.log(">><><><<>",i); @@ -699,6 +702,14 @@ export default { aa = i.value; } }); + this.optionCodes.some(i => { + console.log(">><><><<>",i); + if (i.value == row) { + this.form.clientCode = i.label; + //查询客户服务类型 + aa = i.value; + } + }); let bu = await getListName(this.page.currentPage, this.page.pageSize, { clientId: aa, typeService: '3', @@ -878,7 +889,7 @@ export default { this.$refs.form.validate(valid => { if (valid) { if (!this.form.id) { - // console.log("this.form111",this.form); + console.log("this.form111",this.form); if (this.data.length > 0) { this.form.list = this.data; add(this.form).then(() => { @@ -903,7 +914,7 @@ export default { // if(parseInt(this.$route.query.type) == 3){ // // } - // console.log("this.form222",this.form); + console.log("this.form222",this.form); if (!!this.form.totalInput && parseInt(this.form.totalInput) == '-1') { this.form.totalInput = null; } diff --git a/src/views/warehouse/warehousingentry/warehouseWarehousingEntry.vue b/src/views/warehouse/warehousingentry/warehouseWarehousingEntry.vue index 88065123..2b9e8d44 100644 --- a/src/views/warehouse/warehousingentry/warehouseWarehousingEntry.vue +++ b/src/views/warehouse/warehousingentry/warehouseWarehousingEntry.vue @@ -575,7 +575,6 @@ export default { this.onLoad(this.page); }, handleEditOwn (row) { - this.$router.push({ path: '/warehouse/warehousingentry/warehouseWarehouseingAddReceipt', query:{