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 @@
{{ scope.row.step_.name }}
-
+
@@ -360,19 +362,22 @@
{{ scope.row.subproduction_plan_.number }}
-
+
报废
@@ -491,7 +496,7 @@
@recordCancel="recordCancel"
/>
-
+
删除
@@ -739,6 +744,13 @@
+
+
+ 审核人员确认
+
+
+
+