Commit 23d22340 by 米嘉伟

质量检查,检查详情页,“一键合格”按钮现在可以无限点击

parent c843b15e
...@@ -18,13 +18,13 @@ ...@@ -18,13 +18,13 @@
<div class="headRight"> <div class="headRight">
<el-button <el-button
:class="[ :class="[
rowClick yjhgClick
? 'hg zh' ? 'hg zh'
: 'hg ', : 'hg ',
]" ]"
@click="yjhg" @click="yjhg"
v-if="roleArr.includes('D-1-9')" v-if="roleArr.includes('D-1-9')"
:disabled="rowClick" :disabled="yjhgClick"
>{{$t('Zljc.all_qualified')}}</el-button> >{{$t('Zljc.all_qualified')}}</el-button>
<el-button <el-button
:class="[ :class="[
...@@ -299,6 +299,7 @@ export default { ...@@ -299,6 +299,7 @@ export default {
this.rowData.id = this.$route.params.id; this.rowData.id = this.$route.params.id;
// console.log(this.$route); // console.log(this.$route);
this.rowClick = this.$route.params.type == 1 ? true : false; this.rowClick = this.$route.params.type == 1 ? true : false;
this.yjhgClick = this.$route.params.type == 1 ? true : false;
this.hqyhxx(); this.hqyhxx();
}, },
computed: { computed: {
...@@ -319,6 +320,7 @@ export default { ...@@ -319,6 +320,7 @@ export default {
palmStatus: null, // 掌纹检查结果 palmStatus: null, // 掌纹检查结果
faceStatus: null, // 人像检查结果 faceStatus: null, // 人像检查结果
rowClick: false, //是否禁用选择 rowClick: false, //是否禁用选择
yjhgClick: false, //是否禁用一键合格
}; };
}, },
methods: { methods: {
...@@ -334,10 +336,25 @@ export default { ...@@ -334,10 +336,25 @@ export default {
}).then((response) => { }).then((response) => {
// console.log(response) // console.log(response)
this.personStatus = response.data.ret.personStatus; this.personStatus = response.data.ret.personStatus;
if (this.personStatus == 0) {
this.yjhgClick = false;
}
this.leftStatus = response.data.ret.leftStatus; this.leftStatus = response.data.ret.leftStatus;
if (this.leftStatus == 0) {
this.yjhgClick = false;
}
this.rightStatus = response.data.ret.rightStatus; this.rightStatus = response.data.ret.rightStatus;
if (this.rightStatus == 0) {
this.yjhgClick = false;
}
this.palmStatus = response.data.ret.palmStatus; this.palmStatus = response.data.ret.palmStatus;
if (this.palmStatus == 0) {
this.yjhgClick = false;
}
this.faceStatus = response.data.ret.faceStatus; this.faceStatus = response.data.ret.faceStatus;
if (this.faceStatus == 0) {
this.yjhgClick = false;
}
}); });
}, },
// 人员信息提交 // 人员信息提交
...@@ -348,9 +365,13 @@ export default { ...@@ -348,9 +365,13 @@ export default {
tjRyxx0 () { tjRyxx0 () {
if (this.rowClick) return; if (this.rowClick) return;
this.$refs.ryxx.saveRyxx(0); this.$refs.ryxx.saveRyxx(0);
this.yjhgClick = false;
}, },
changePersonStatus (data) { changePersonStatus (data) {
this.personStatus = data; this.personStatus = data;
if (data == 0) {
this.yjhgClick = false;
}
}, },
// 左手指纹信息提交 // 左手指纹信息提交
tjZsNyzw1 () { tjZsNyzw1 () {
...@@ -360,9 +381,13 @@ export default { ...@@ -360,9 +381,13 @@ export default {
tjZsNyzw0 () { tjZsNyzw0 () {
if (this.rowClick) return; if (this.rowClick) return;
this.$refs.zsnyzw.saveZsNyAll(0); this.$refs.zsnyzw.saveZsNyAll(0);
this.yjhgClick = false;
}, },
changeLeftStatus (data) { changeLeftStatus (data) {
this.leftStatus = data; this.leftStatus = data;
if (data == 0) {
this.yjhgClick = false;
}
}, },
// 右手指纹信息提交 // 右手指纹信息提交
tjYsNyzw1 () { tjYsNyzw1 () {
...@@ -372,9 +397,13 @@ export default { ...@@ -372,9 +397,13 @@ export default {
tjYsNyzw0 () { tjYsNyzw0 () {
if (this.rowClick) return; if (this.rowClick) return;
this.$refs.ysnyzw.saveYsNyAll(0); this.$refs.ysnyzw.saveYsNyAll(0);
this.yjhgClick = false;
}, },
changeRightStatus (data) { changeRightStatus (data) {
this.rightStatus = data; this.rightStatus = data;
if (data == 0) {
this.yjhgClick = false;
}
}, },
// 掌纹信息提交 // 掌纹信息提交
tjZw1 () { tjZw1 () {
...@@ -384,9 +413,13 @@ export default { ...@@ -384,9 +413,13 @@ export default {
tjZw0 () { tjZw0 () {
if (this.rowClick) return; if (this.rowClick) return;
this.$refs.zw.saveZw(0); this.$refs.zw.saveZw(0);
this.yjhgClick = false;
}, },
changePalmStatus (data) { changePalmStatus (data) {
this.palmStatus = data; this.palmStatus = data;
if (data == 0) {
this.yjhgClick = false;
}
}, },
// 人像信息提交 // 人像信息提交
tjRx1 () { tjRx1 () {
...@@ -396,9 +429,13 @@ export default { ...@@ -396,9 +429,13 @@ export default {
tjRx0 () { tjRx0 () {
if (this.rowClick) return; if (this.rowClick) return;
this.$refs.rx.saveRx(0); this.$refs.rx.saveRx(0);
this.yjhgClick = false;
}, },
changeFaceStatus (data) { changeFaceStatus (data) {
this.faceStatus = data; this.faceStatus = data;
if (data == 0) {
this.yjhgClick = false;
}
}, },
// 一键合格 // 一键合格
yjhg () { yjhg () {
...@@ -442,6 +479,7 @@ export default { ...@@ -442,6 +479,7 @@ export default {
reqParam.personId = this.rowData.id; reqParam.personId = this.rowData.id;
this.$axios.post("/api/zljc/result/save", reqParam).then((response) => { this.$axios.post("/api/zljc/result/save", reqParam).then((response) => {
console.log(response); console.log(response);
this.yjhgClick = true
this.personStatus = response.data.ret.personStatus; this.personStatus = response.data.ret.personStatus;
this.leftStatus = response.data.ret.leftStatus; this.leftStatus = response.data.ret.leftStatus;
this.rightStatus = response.data.ret.rightStatus; this.rightStatus = response.data.ret.rightStatus;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment