From b1421d227b7cf71ee867067ed2c19c0261afd8e9 Mon Sep 17 00:00:00 2001 From: weitingdong <2480899115@qq.com> Date: Thu, 18 Jul 2024 09:18:17 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A1=E6=A3=80=E5=AF=B9=E8=B1=A1=20?= =?UTF-8?q?=E5=B7=A5=E5=99=A8=E5=85=B7=E7=BC=96=E7=A0=81=E5=AF=B9=E5=BA=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/inspection/inspectionobject.vue | 4 ++++ src/views/inspection/inspectionobjectDetail.vue | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/views/inspection/inspectionobject.vue b/src/views/inspection/inspectionobject.vue index dc54223..c641c45 100644 --- a/src/views/inspection/inspectionobject.vue +++ b/src/views/inspection/inspectionobject.vue @@ -200,6 +200,10 @@ trigger: "blur" }] }, + { + label: "工器具编码", + prop: "toolsCodeId" + } ] }, cancelForm: {}, diff --git a/src/views/inspection/inspectionobjectDetail.vue b/src/views/inspection/inspectionobjectDetail.vue index 55ae764..24dd401 100644 --- a/src/views/inspection/inspectionobjectDetail.vue +++ b/src/views/inspection/inspectionobjectDetail.vue @@ -107,7 +107,6 @@ export default { } }else{ const toolsCodeId = this.findObject(this.option.column, "toolsCodeId"); - this.form.toolsCodeId=' '; toolsCodeId.display = false; const kksNo = this.findObject(this.option.column, "kksNo"); kksNo.disabled = false; @@ -207,6 +206,11 @@ export default { label: "toolsCodeId", value: "toolsCodeId", }, + rules: [{ + required: true, + message: "请输入工器具编码", + trigger: "blur" + }], event: { change: (val) => { if (!val) return