From b288a95f3cfc56f762810a07970f93845520b9a8 Mon Sep 17 00:00:00 2001 From: shijing Date: Wed, 30 Mar 2022 11:02:38 +0800 Subject: [PATCH] =?UTF-8?q?=E9=AA=8C=E8=AF=81PPT1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hb_client/.env.production | 2 +- hb_client/src/views/wpm/firstCheck.vue | 65 ++++++++++++----- hb_client/src/views/wpm/need.vue | 97 +++++++++++++++++++++---- hb_client/src/views/wpm/operation.vue | 14 +++- hb_client/src/views/wpm/operationdo.vue | 1 - 5 files changed, 143 insertions(+), 36 deletions(-) diff --git a/hb_client/.env.production b/hb_client/.env.production index a6efc10..6bcb5e1 100644 --- a/hb_client/.env.production +++ b/hb_client/.env.production @@ -2,6 +2,6 @@ ENV = 'production' # base api -VUE_APP_BASE_API = 'http://49.232.14.174:2222/api' +VUE_APP_BASE_API = 'http://192.168.1.250/api' #VUE_APP_BASE_API = 'http://127.0.0.1:8000/api' diff --git a/hb_client/src/views/wpm/firstCheck.vue b/hb_client/src/views/wpm/firstCheck.vue index cf8c402..2b4232c 100644 --- a/hb_client/src/views/wpm/firstCheck.vue +++ b/hb_client/src/views/wpm/firstCheck.vue @@ -215,12 +215,19 @@ +
审核人员确认
+ +
审核人员确认
+
+ +
+
@@ -256,6 +263,11 @@ enabled:true, material:null }, + checkParams:{ + id:null, + is_testok:true, + record_data:null, + }, planId:null, leader:null, recordId: null, @@ -272,6 +284,7 @@ reviewVisible:false, recordVisible:false, is_midtesting:false, + limitedUserCheck:false, is_testok:false, formName:'首件确认检查表', update_time:'', @@ -445,27 +458,45 @@ }); }, - //提交首件检查 + //提交首件检查:需要人脸识别进行身份验证 recordSubmit(value) { let that = this; - let id = value.id; let params = {}; - params.record_data = value.record_data; + params.id = value.id; params.is_testok = value.is_testok; - putTestRecordItem(id, params).then((res) => { - if (res.code >= 200) { - subTestRecordItem(id, params).then((res) => { - if (res.code >= 200) { - that.recordVisible = false; - that.getTableData(); - } - }); - } else { - that.$message.error(res.msg) - } - }).catch((err) => { - that.$message.error(err); - }); + params.record_data = value.record_data; + that.checkParams = params; + that.limitedUserCheck = true; + }, + checkSubmit(data){ + let that =this; + let id = that.checkParams.id; + let params = new Object(); + params.is_testok = that.checkParams.is_testok; + params.record_data = that.checkParams.record_data; + params.token = data.token; + if(data.token!==''&&data.token!==null&&data.token!==undefined) { + putTestRecordItem(id, params).then((res) => { + if (res.code >= 200) { + subTestRecordItem(id, params).then((res) => { + debugger; + that.limitedUserCheck = false; + if (res.code >= 200) { + that.recordVisible = false; + that.getTableData(); + }else{ + that.$message.error(res.msg) + } + }).catch(()=>{ + that.limitedUserCheck = false; + }); + } else { + that.$message.error(res.msg) + } + }).catch((err) => { + that.$message.error(err); + }); + } }, //再次点击首件检验 diff --git a/hb_client/src/views/wpm/need.vue b/hb_client/src/views/wpm/need.vue index 27b5bfa..4849653 100644 --- a/hb_client/src/views/wpm/need.vue +++ b/hb_client/src/views/wpm/need.vue @@ -76,7 +76,6 @@ 检验记录 @@ -267,7 +266,10 @@ - +