From 0127a22acd44d5e9383192f271417bb113f5cf6d Mon Sep 17 00:00:00 2001 From: fengyuan_yang <1976974459@qq.com> Date: Thu, 6 Aug 2026 13:54:42 +0800 Subject: [PATCH] =?UTF-8?q?2026-08-06=20Lab=EF=BC=9A=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E5=8D=95=E6=8D=AE=E6=97=B6=E8=AE=BE=E7=BD=AE=E2=80=9C=E7=94=B3?= =?UTF-8?q?=E8=AF=B7=E4=BA=BA=E2=80=9D=E3=80=81=E2=80=9C=E7=94=B3=E8=AF=B7?= =?UTF-8?q?=E5=B7=A5=E5=8E=82=E2=80=9D=E3=80=81=E2=80=9C=E7=94=B3=E8=AF=B7?= =?UTF-8?q?=E9=83=A8=E9=97=A8=E2=80=9D=E3=80=81=E2=80=9C=E5=AE=A2=E6=88=B7?= =?UTF-8?q?=E2=80=9D=E3=80=81=E2=80=9C=E9=A1=B9=E7=9B=AE=E2=80=9D=E3=80=81?= =?UTF-8?q?=E2=80=9C=E6=A0=B7=E5=93=81=E5=90=8D=E7=A7=B0=E2=80=9D=E5=B1=9E?= =?UTF-8?q?=E6=80=A7=E5=BF=85=E5=A1=AB=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/lab/labRecord.vue | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/src/views/modules/lab/labRecord.vue b/src/views/modules/lab/labRecord.vue index 014b6b0..7e65655 100644 --- a/src/views/modules/lab/labRecord.vue +++ b/src/views/modules/lab/labRecord.vue @@ -2827,6 +2827,31 @@ export default { this.$message.warning('当前状态不允许保存') return } + const isAddMode = !this.isEditMode + if (isAddMode && !String(this.modalData.applicant || '').trim()) { + this.$message.warning('申请人不能为空') + return + } + if (isAddMode && !String(this.modalData.site || '').trim()) { + this.$message.warning('申请工厂不能为空') + return + } + if (isAddMode && !String(this.modalData.applyDepartment || '').trim()) { + this.$message.warning('申请部门不能为空') + return + } + if (isAddMode && !String(this.modalData.customerId || '').trim()) { + this.$message.warning('客户不能为空') + return + } + if (isAddMode && !String(this.modalData.projectId || '').trim()) { + this.$message.warning('项目不能为空') + return + } + if (isAddMode && !String(this.modalData.sampleName || '').trim()) { + this.$message.warning('样品名称不能为空') + return + } this.syncTesterField() this.syncPropertyItemList() const payload = this.buildLabPayload(this.modalData)