Merge branch 'develop' of https://e.coding.net/ctcdevteam/hberp/hberp into develop
This commit is contained in:
commit
0b395b98cd
|
@ -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'
|
||||
|
||||
|
|
|
@ -215,12 +215,19 @@
|
|||
</div>
|
||||
</el-row>
|
||||
</el-dialog>
|
||||
|
||||
<el-dialog :visible.sync="limitedPhoto" @close="closeCamera" id="loginFaceWrap">
|
||||
<div style="font-size: 28px;color: #333333;text-align: center;font-weight: bold;">审核人员确认</div>
|
||||
<div class="testTracking">
|
||||
<faceLogin v-if="limitedPhoto" ref="faceTracking" name="faceLogin" @func="getMsgFormSon"></faceLogin>
|
||||
</div>
|
||||
</el-dialog>
|
||||
<el-dialog :visible.sync="limitedUserCheck" @close="closeCamera" id="userCheckWrap">
|
||||
<div style="font-size: 28px;color: #333333;text-align: center;font-weight: bold;">审核人员确认</div>
|
||||
<div class="testTracking">
|
||||
<faceLogin v-if="limitedUserCheck" ref="faceTracking" name="userCheck" @func="checkSubmit"></faceLogin>
|
||||
</div>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
@ -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,20 +458,37 @@
|
|||
});
|
||||
},
|
||||
|
||||
//提交首件检查
|
||||
//提交首件检查:需要人脸识别进行身份验证
|
||||
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;
|
||||
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)
|
||||
|
@ -466,6 +496,7 @@
|
|||
}).catch((err) => {
|
||||
that.$message.error(err);
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
//再次点击首件检验
|
||||
|
|
|
@ -76,7 +76,6 @@
|
|||
检验记录
|
||||
</el-link>
|
||||
<el-link
|
||||
v-if="checkPermission(['wp_scrap'])"
|
||||
type="danger"
|
||||
@click="handleScrapbcp(scope)"
|
||||
>
|
||||
|
@ -267,7 +266,10 @@
|
|||
<template slot-scope="scope">{{ scope.row.step_.name }}</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="检验员">
|
||||
<!--<template slot-scope="scope">{{}}</template>-->
|
||||
<!--<template slot-scope="scope">
|
||||
<span v-if="scope.row.update_by_!==null">{{scope.row.update_by_.username}}</span>
|
||||
<span v-else>{{scope.row.create_by_.username}}</span>
|
||||
</template>-->
|
||||
</el-table-column>
|
||||
<el-table-column align="center" label="操作" width="220px">
|
||||
<template slot-scope="scope">
|
||||
|
@ -360,19 +362,22 @@
|
|||
<template slot-scope="scope">{{ scope.row.subproduction_plan_.number }}</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="检验员">
|
||||
<!--<template slot-scope="scope">{{}}</template>-->
|
||||
<!--<template slot-scope="scope">
|
||||
<span v-if="scope.row.update_by_!==null">{{scope.row.update_by_.username}}</span>
|
||||
<span v-else>{{scope.row.create_by_.username}}</span>
|
||||
</template>-->
|
||||
</el-table-column>
|
||||
<el-table-column align="center" label="操作" width="220px">
|
||||
<template slot-scope="scope">
|
||||
<el-link
|
||||
v-if="checkPermission(['wmaterial_scrap'])"
|
||||
v-if="checkPermission(['wp_scrap'])"
|
||||
type="danger"
|
||||
@click="handleScrap(scope)"
|
||||
>
|
||||
报废
|
||||
</el-link>
|
||||
<el-link
|
||||
v-if="checkPermission(['operation_hear'])&&!scope.row.ticket"
|
||||
v-if="checkPermission(['operation_hear'])&&scope.row.ticket==null"
|
||||
type="primary"
|
||||
@click="handleRetrial(scope)"
|
||||
>
|
||||
|
@ -491,7 +496,7 @@
|
|||
@recordCancel="recordCancel"
|
||||
/>
|
||||
</el-dialog>
|
||||
<!--非检查表显示-->
|
||||
<!--非复检检验表单-->
|
||||
<el-dialog
|
||||
width="60%"
|
||||
:title="formName"
|
||||
|
@ -584,7 +589,7 @@
|
|||
查看
|
||||
</el-link>
|
||||
<el-link
|
||||
v-if="checkPermission(['wp_test_init'])"
|
||||
v-if="checkPermission(['testrecord_delete'])"
|
||||
@click="delTestRecord(scope)"
|
||||
>
|
||||
删除
|
||||
|
@ -739,6 +744,13 @@
|
|||
</el-col>
|
||||
</el-row>
|
||||
</el-dialog>
|
||||
<!--刷脸验证-->
|
||||
<el-dialog :visible.sync="limitedPhoto" @close="closeCamera" id="loginFaceWrap">
|
||||
<div style="font-size: 28px;color: #333333;text-align: center;font-weight: bold;">审核人员确认</div>
|
||||
<div class="testTracking">
|
||||
<faceLogin v-if="limitedPhoto" ref="faceTracking" name="faceLogin" @func="checkSubmit"></faceLogin>
|
||||
</div>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
|
@ -748,6 +760,7 @@
|
|||
import checkPermission from "@/utils/permission";
|
||||
import customForm from '@/components/customForm/index';
|
||||
import reviewForm from '@/components/customForm/review';
|
||||
import faceLogin from '@/components/faceLogin/review.vue';
|
||||
import {createTicket, getWorkflowInit} from "@/api/workflow";
|
||||
import {getrecordformList, getrffieldList} from "@/api/mtm";
|
||||
import {getwproductList, wproductPutin, createputins, testInit, scrap, getRetrial} from "@/api/wpm";
|
||||
|
@ -757,7 +770,7 @@
|
|||
const defaultetestitem = {};
|
||||
export default {
|
||||
inject: ['reload'],
|
||||
components: {Pagination, customForm, reviewForm},
|
||||
components: {Pagination, customForm, reviewForm,faceLogin},
|
||||
data() {
|
||||
return {
|
||||
testitem: defaultetestitem,
|
||||
|
@ -798,6 +811,11 @@
|
|||
page: 1,
|
||||
page_size: 20,
|
||||
},
|
||||
params:{
|
||||
id:null,
|
||||
is_testok:true,
|
||||
record_data:null
|
||||
},
|
||||
activeName: "1",
|
||||
create_by_: '',
|
||||
update_time: '',
|
||||
|
@ -874,6 +892,7 @@
|
|||
mutipID: [],
|
||||
wproduct: null,
|
||||
isPost: false,
|
||||
limitedPhoto: false,
|
||||
is_midtesting: false,
|
||||
isDisabled: false,
|
||||
origin_test: null,
|
||||
|
@ -1466,14 +1485,16 @@
|
|||
});
|
||||
},
|
||||
|
||||
//记录提交检查项目
|
||||
//记录提交检查项目:出现人脸验证弹窗
|
||||
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) => {
|
||||
params.record_data = value.record_data;
|
||||
that.params = params;
|
||||
that.limitedPhoto = true;
|
||||
/*putTestRecordItem(id, params).then((res) => {
|
||||
if (res.code >= 200) {
|
||||
subTestRecordItem(id, params).then((res) => {
|
||||
if (res.code >= 200) {
|
||||
|
@ -1492,7 +1513,44 @@
|
|||
}
|
||||
}).catch((err) => {
|
||||
this.$message.error(err);
|
||||
});*/
|
||||
},
|
||||
checkSubmit(data){
|
||||
debugger;
|
||||
let that =this;
|
||||
let id = that.params.id;
|
||||
let params = new Object();
|
||||
params.is_testok = that.params.is_testok;
|
||||
params.record_data = that.params.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.limitedPhoto = false;
|
||||
if (res.code >= 200) {
|
||||
that.recordVisible = false;
|
||||
that.limitedReview = false;
|
||||
that.limitedCheckRecord = false;
|
||||
that.getList();
|
||||
that.getList2();
|
||||
that.getList1();
|
||||
that.getList3();
|
||||
that.refreshRecord();
|
||||
}else{
|
||||
that.$message.error(res.msg)
|
||||
}
|
||||
}).catch(()=>{
|
||||
that.limitedPhoto = false;
|
||||
});
|
||||
} else {
|
||||
that.$message.error(res.msg)
|
||||
}
|
||||
}).catch((err) => {
|
||||
that.$message.error(err);
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
//第一次保存提交检查项目
|
||||
|
@ -1504,6 +1562,19 @@
|
|||
this.getList1();
|
||||
this.getList3();
|
||||
},
|
||||
|
||||
/*关闭相机*/
|
||||
closeCamera () {
|
||||
this.$refs.faceTracking.closeCamera();
|
||||
let video = document.getElementById('video');
|
||||
let stream = video.srcObject;
|
||||
// console.log(stream);
|
||||
let tracks = stream.getTracks();
|
||||
tracks.forEach(track => {
|
||||
track.stop()
|
||||
});
|
||||
video.srcObject = null;
|
||||
},
|
||||
},
|
||||
mounted() {
|
||||
getUserList({page: 0}).then(response => {
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
<el-card class="box-card">
|
||||
<el-tabs
|
||||
type="border-card"
|
||||
v-model="activeName"
|
||||
@tab-click="handleClick"
|
||||
>
|
||||
<el-tab-pane
|
||||
|
@ -28,13 +29,14 @@
|
|||
</el-table-column>
|
||||
<el-table-column label="是否提交">
|
||||
<template slot-scope="scope">
|
||||
<el-span v-if="scope.row.is_submited">是</el-span>
|
||||
<el-span v-else>否</el-span>
|
||||
<span v-if="scope.row.is_submited">是</span>
|
||||
<span v-else>否</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作人">
|
||||
<template slot-scope="scope">
|
||||
{{scope.row.create_by_.username}}
|
||||
<span v-if="scope.row.update_by_!==null">{{scope.row.update_by_.username}}</span>
|
||||
<span v-else>{{scope.row.create_by_.username}}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="过程记录表">
|
||||
|
@ -122,6 +124,7 @@
|
|||
page: 1,
|
||||
page_size: 20,
|
||||
},
|
||||
activeName: "",
|
||||
processOption: "",
|
||||
};
|
||||
},
|
||||
|
@ -143,6 +146,10 @@
|
|||
getProcessList({page: 0}).then((response) => {
|
||||
if (response.data) {
|
||||
this.processOption = response.data;
|
||||
this.activeName = response.data[0].id;
|
||||
this.process = response.data[0].id;
|
||||
this.listQuery.step__process = response.data[0].id;
|
||||
this.getList();
|
||||
}
|
||||
});
|
||||
},
|
||||
|
@ -160,7 +167,6 @@
|
|||
this.process = tab.name;
|
||||
this.listQuery.step__process = tab.name;
|
||||
this.getList();
|
||||
|
||||
},
|
||||
|
||||
//操作记录删除
|
||||
|
|
|
@ -249,7 +249,6 @@
|
|||
<el-table-column align="center" label="操作" width="100px">
|
||||
<template slot-scope="scope">
|
||||
<el-link
|
||||
v-if="checkPermission(['warehouse_update'])"
|
||||
type="primary"
|
||||
@click="handlerecord(scope)"
|
||||
>填写表单
|
||||
|
|
Loading…
Reference in New Issue