From 7a22b771f5af4010f128af339384fd4f048a0e49 Mon Sep 17 00:00:00 2001 From: fengyuan_yang <1976974459@qq.com> Date: Mon, 22 Dec 2025 16:45:18 +0800 Subject: [PATCH] =?UTF-8?q?2025-12-22=20=E6=8B=A3=E8=B4=A7=E5=87=BA?= =?UTF-8?q?=E5=BA=93=E4=BB=BB=E5=8A=A1=E9=80=9A=E7=9F=A5=EF=BC=8C=E4=B8=BB?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=E6=96=B0=E5=A2=9E=E5=92=8C=E7=BC=96=E8=BE=91?= =?UTF-8?q?=E6=97=B6=E6=A0=B9=E6=8D=AE=E6=89=80=E9=80=89=E5=8D=95=E6=8D=AE?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E6=9D=A5=E6=98=BE=E7=A4=BA=E6=98=AF=E9=80=89?= =?UTF-8?q?=E5=AE=A2=E6=88=B7=E8=BF=98=E6=98=AF=E4=BE=9B=E5=BA=94=E5=95=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/qc/outboundNotification.vue | 51 ++++++++++++++++--- 1 file changed, 44 insertions(+), 7 deletions(-) diff --git a/src/views/modules/qc/outboundNotification.vue b/src/views/modules/qc/outboundNotification.vue index 7b77aea..0933787 100644 --- a/src/views/modules/qc/outboundNotification.vue +++ b/src/views/modules/qc/outboundNotification.vue @@ -140,7 +140,7 @@ - + @@ -155,7 +155,14 @@ - + + + 供应商 + + + + + 直接客户 @@ -1143,7 +1150,7 @@ bu: this.userBuList[0].buNo, buNo: '', orderNo: '', - orderType: '', + orderType: '采购退货', // 默认为采购退货 orderStatus: '草稿', requiredOutboundDate: '', customerId: '', @@ -1610,17 +1617,29 @@ this.detailModal2 = true }, - // 库位输入校验 + // 客户/供应商输入校验 customerBlur (tagNo) { let tempData = { tagno: tagNo, - conditionSql: " and CustomerID = '" + this.modalData.customerId + "'" + " and site = '" + this.modalData.site + "'" + conditionSql: '' + } + if (tagNo === 506) { + // 供应商校验 + tempData.conditionSql = " and SupplierID = '" + this.modalData.customerId + "'" + " and site = '" + this.modalData.site + "'" + } else if (tagNo === 507) { + // 客户校验 + tempData.conditionSql = " and CustomerID = '" + this.modalData.customerId + "'" + " and site = '" + this.modalData.site + "'" } verifyData(tempData).then(({data}) => { if (data && data.code === 0) { if (data.baseListData.length > 0) { - this.modalData.customerId = data.baseListData[0].CustomerID - this.modalData.customerName = data.baseListData[0].CustomerName + if (tagNo === 506) { + this.modalData.customerId = data.baseListData[0].SupplierID + this.modalData.customerName = data.baseListData[0].SupplierName + } else if (tagNo === 507) { + this.modalData.customerId = data.baseListData[0].CustomerID + this.modalData.customerName = data.baseListData[0].CustomerName + } } else { this.modalData.customerName = '' } @@ -1628,6 +1647,12 @@ }) }, + // 单据类型变更时清空客户/供应商信息 + onOrderTypeChange () { + this.modalData.customerId = '' + this.modalData.customerName = '' + }, + chooseWareHouse (row) { this.tempWareHouseRow = row this.getBaseList(20) @@ -1639,7 +1664,13 @@ this.tagType = type this.$nextTick(() => { let strVal = '' + if (val === 506) { + // 供应商列表 + strVal = this.modalData.customerId + this.$refs.baseList.init(val, strVal) + } if (val === 507) { + // 直接客户列表 strVal = this.modalData.customerId this.$refs.baseList.init(val, strVal) } @@ -1652,7 +1683,13 @@ // 列表方法的回调 getBaseData (val) { + if (this.tagNo === 506) { + // 供应商回调 + this.modalData.customerId = val.SupplierID + this.modalData.customerName = val.SupplierName + } if (this.tagNo === 507) { + // 直接客户回调 this.modalData.customerId = val.CustomerID this.modalData.customerName = val.CustomerName }