From 0f0620e8dbbfe5b8552182a88391b1a972854f76 Mon Sep 17 00:00:00 2001 From: shijing Date: Wed, 21 Jan 2026 15:27:48 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=A6=85=E9=81=93323?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/wpm_bx/mlog_detail.vue | 14 ++++++++++++++ src/views/wpm_bx/mlogbw_check_table.vue | 12 ++++++++++++ 2 files changed, 26 insertions(+) diff --git a/src/views/wpm_bx/mlog_detail.vue b/src/views/wpm_bx/mlog_detail.vue index 7fce2a5f..f9450d48 100644 --- a/src/views/wpm_bx/mlog_detail.vue +++ b/src/views/wpm_bx/mlog_detail.vue @@ -919,6 +919,20 @@ export default { }, //表单提交方法 mlogSubmit() { + let that = this; + if(that.route_code=='tuomoceliang'){ + let canSubmit = this.$refs.checkTable.hasNull(); + console.log('canSubmit',canSubmit) + if(canSubmit){ + that.submitFun(); + }else{ + that.$message.error('有未填的检测项,请完善后提交。'); + } + }else{ + that.submitFun(); + } + }, + submitFun(){ let that = this; that.isSaveing = true; that.$API.wpm.mlog.submit.req(that.mlogItem.id).then((res) => { diff --git a/src/views/wpm_bx/mlogbw_check_table.vue b/src/views/wpm_bx/mlogbw_check_table.vue index 08c63a0f..059cd0a6 100644 --- a/src/views/wpm_bx/mlogbw_check_table.vue +++ b/src/views/wpm_bx/mlogbw_check_table.vue @@ -1100,6 +1100,18 @@ that.$API.wpm.prints.req(printer_ip, obj).then((response) => { this.$message.error("导入失败,请重新尝试"); }); }, + hasNull(){ + let that = this; + let canSubmit = true; + that.mlogbwlist.forEach(item=>{ + that.qct_testitems.forEach(testitem=>{ + if(item[testitem.testitem_name]==null||item[testitem.testitem_name]==''||item[testitem.testitem_name]==undefined){ + canSubmit = false; + } + }) + }) + return canSubmit; + }, }, };