From 9677aa81fddce6a24e9ae056a9eb5da34a8b0960 Mon Sep 17 00:00:00 2001 From: fengyuan_yang <1976974459@qq.com> Date: Mon, 26 Oct 2026 15:56:03 +0800 Subject: [PATCH] =?UTF-8?q?2026-10-26=20=E6=89=93=E6=A0=B7=E7=94=B3?= =?UTF-8?q?=E8=AF=B7=E5=A2=9E=E5=8A=A0=E9=A1=B9=E7=9B=AE=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/proofing/requestForProofing.vue | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/views/modules/proofing/requestForProofing.vue b/src/views/modules/proofing/requestForProofing.vue index 4adb492..966b32c 100644 --- a/src/views/modules/proofing/requestForProofing.vue +++ b/src/views/modules/proofing/requestForProofing.vue @@ -2143,6 +2143,7 @@ export default { projectId: undefined, projectName: undefined, customerId: undefined, + status: '已完成', }, // 项目集合 projectList: [], @@ -3786,6 +3787,7 @@ export default { searchProjectInfoList() { this.projectList = []; this.searchProjectData.customerId = this.modalData.customerNo + this.searchProjectData.status = '已完成' searchProjectInfoList(this.searchProjectData).then(({data}) => { if (data && data.code === 0) { this.projectList = data.rows @@ -3803,6 +3805,7 @@ export default { projectId: undefined, projectName: undefined, customerId: undefined, + status: '已完成', } }, rowStyle({row}) { @@ -4057,6 +4060,8 @@ export default { this.lookupProject().then(ok => { if (ok === false) { this.$message.warning('项目号不存在,或不属于该客户') + } else if (ok && ok.result === 'status') { + this.$message.warning('仅项目单据状态为已完成时允许新增打样,当前状态:' + ok.status) } }) }, @@ -4106,6 +4111,12 @@ export default { } const rows = (data && data.rows) || [] if (rows.length === 1) { + if (this.modalData.flag === '1' && rows[0].status !== '已完成') { + const status = rows[0].status + this.modalData.projectId = '' + this.modalData.projectName = '' + return { result: 'status', status } + } this.modalData.projectName = rows[0].projectName return true } @@ -4139,6 +4150,8 @@ export default { if (projectOk !== true) { if (projectOk === false) { this.$message.warning('项目号不存在,或不属于该客户') + } else if (projectOk && projectOk.result === 'status') { + this.$message.warning('仅项目单据状态为已完成时允许新增打样,当前状态:' + projectOk.status) } return false }