From 03512a6cf110c1167419000802eb858e6088f1d0 Mon Sep 17 00:00:00 2001 From: fengyuan_yang <1976974459@qq.com> Date: Thu, 12 Feb 2026 10:05:41 +0800 Subject: [PATCH] =?UTF-8?q?2026-02-12=20=E6=96=B0=E5=A2=9E=E6=97=B6?= =?UTF-8?q?=E6=88=96=E7=BC=96=E8=BE=91=E6=97=B6=EF=BC=8C=E5=8D=95=E6=8D=AE?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E4=B8=BA=E2=80=9C=E9=87=87=E8=B4=AD=E9=80=80?= =?UTF-8?q?=E8=B4=A7=E2=80=9D=E6=97=B6=E5=87=BA=E5=BA=93=E7=B1=BB=E5=88=AB?= =?UTF-8?q?=E4=B8=8D=E5=86=8D=E6=A0=A1=E9=AA=8C=E5=BF=85=E5=A1=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../soIssueNotify/searchIssureNotify.vue | 12 +++++-- src/views/modules/qc/inboundNotification.vue | 9 ++++++ src/views/modules/qc/outboundNotification.vue | 32 +++++++++++++++++-- 3 files changed, 48 insertions(+), 5 deletions(-) diff --git a/src/views/modules/orderIssure/soIssueNotify/searchIssureNotify.vue b/src/views/modules/orderIssure/soIssueNotify/searchIssureNotify.vue index 1e56aac..122e1b1 100644 --- a/src/views/modules/orderIssure/soIssueNotify/searchIssureNotify.vue +++ b/src/views/modules/orderIssure/soIssueNotify/searchIssureNotify.vue @@ -2959,6 +2959,9 @@ }); }, closeNotifyModel(row){ + // 先更新当前行数据 + this.currentRow = JSON.parse(JSON.stringify(row)) + this.closeData.site=row.site this.closeData.notifyNo=row.notifyNo this.closeData.closeRemark='' @@ -2997,6 +3000,9 @@ }) }, deleteNotifyConfirm(row){ + // 先更新当前行数据 + this.currentRow = JSON.parse(JSON.stringify(row)) + this.$confirm('确认删除?', '提示', { confirmButtonText: '确定', cancelButtonText: '取消', @@ -3948,6 +3954,9 @@ }, editNotifyMaterialFun(row){ + // 先更新当前行数据,确保使用的是点击行的数据 + this.currentRow = JSON.parse(JSON.stringify(row)) + // 先查询该行的材料汇总数据,校验是否有合计已发数量大于零 searchSumNotifyMaterialList(row).then(({data}) => { if (data && data.code === 0 && data.rows && data.rows.length > 0) { @@ -3963,9 +3972,6 @@ } // 校验通过,继续执行编辑操作 - // 设置当前行为要编辑的行 - this.currentRow = JSON.parse(JSON.stringify(row)); - editNotifyMaterial(row).then(({data})=>{ if (data.code === 0) { //刷新主表数据 diff --git a/src/views/modules/qc/inboundNotification.vue b/src/views/modules/qc/inboundNotification.vue index b911c3a..7f10b3d 100644 --- a/src/views/modules/qc/inboundNotification.vue +++ b/src/views/modules/qc/inboundNotification.vue @@ -1538,6 +1538,9 @@ }, updateModal (row) { + // 先更新当前行数据,确保使用的是点击行的数据 + this.currentRow = JSON.parse(JSON.stringify(row)) + if (this.currentRow.orderType === '采购入库' || this.currentRow.orderType === '销售退货') { this.$message.warning('该类型单据不能编辑!') return @@ -1678,6 +1681,9 @@ // 关闭 closeModal (row) { + // 先更新当前行数据 + this.currentRow = JSON.parse(JSON.stringify(row)) + if (this.currentRow.orderType === '采购入库' || this.currentRow.orderType === '销售退货') { this.$message.warning('该类型单据不能编辑!') return @@ -1694,6 +1700,9 @@ // 下达 issueModal (row) { + // 先更新当前行数据 + this.currentRow = JSON.parse(JSON.stringify(row)) + if (this.currentRow.orderType === '采购入库' || this.currentRow.orderType === '销售退货') { this.$message.warning('该类型单据不能编辑!') return diff --git a/src/views/modules/qc/outboundNotification.vue b/src/views/modules/qc/outboundNotification.vue index e9b5ded..3b583da 100644 --- a/src/views/modules/qc/outboundNotification.vue +++ b/src/views/modules/qc/outboundNotification.vue @@ -248,7 +248,7 @@ - + { + if (this.modalData.orderType === '采购退货') { + callback() + } else if (!value || value === '') { + callback(new Error(' ')) + } else { + callback() + } + } } ], departmentNo: [ @@ -1502,6 +1512,9 @@ }, updateModal (row) { + // 先更新当前行数据,确保使用的是点击行的数据 + this.currentRow = JSON.parse(JSON.stringify(row)) + if (this.currentRow.orderType === '销售出库') { this.$message.warning('销售出库单据不能编辑!') return @@ -1611,6 +1624,11 @@ // 删除 deleteModal () { + // 先更新当前行数据,确保校验的是当前选中行的数据 + if (this.outboundSelection.length > 0) { + this.currentRow = JSON.parse(JSON.stringify(this.outboundSelection[0])) + } + if (this.currentRow.orderType === '销售出库') { this.$message.warning('销售出库单据不能编辑!') return @@ -1718,6 +1736,9 @@ // 关闭 closeModal (row) { + // 先更新当前行数据 + this.currentRow = JSON.parse(JSON.stringify(row)) + if (this.currentRow.orderType === '销售出库') { this.$message.warning('销售出库单据不能编辑!') return @@ -1734,6 +1755,9 @@ // 下达 issueModal (row) { + // 先更新当前行数据 + this.currentRow = JSON.parse(JSON.stringify(row)) + if (this.currentRow.orderType === '销售出库') { this.$message.warning('销售出库单据不能编辑!') return @@ -2074,6 +2098,10 @@ onOrderTypeChange () { this.modalData.customerId = '' this.modalData.customerName = '' + // 如果是采购退货,清空出库类别 + if (this.modalData.orderType === '采购退货') { + this.modalData.category = '' + } }, chooseWareHouse (row) {