|
@@ -130,7 +130,7 @@
|
|
|
<el-popconfirm
|
|
<el-popconfirm
|
|
|
class="ele-action"
|
|
class="ele-action"
|
|
|
title="确定要关闭吗?"
|
|
title="确定要关闭吗?"
|
|
|
- @confirm="close(row)"
|
|
|
|
|
|
|
+ @confirm="closeWork(row)"
|
|
|
v-if="row.status == 0 && row.qualityType == 2"
|
|
v-if="row.status == 0 && row.qualityType == 2"
|
|
|
>
|
|
>
|
|
|
<template v-slot:reference>
|
|
<template v-slot:reference>
|
|
@@ -208,7 +208,8 @@
|
|
|
getList,
|
|
getList,
|
|
|
removeItem,
|
|
removeItem,
|
|
|
updateCertificateNumber,
|
|
updateCertificateNumber,
|
|
|
- verificationQualityInspector
|
|
|
|
|
|
|
+ verificationQualityInspector,
|
|
|
|
|
+ closeWork
|
|
|
} from '@/api/inspectionWork';
|
|
} from '@/api/inspectionWork';
|
|
|
import dictMixins from '@/mixins/dictMixins';
|
|
import dictMixins from '@/mixins/dictMixins';
|
|
|
import tabMixins from '@/mixins/tableColumnsMixin';
|
|
import tabMixins from '@/mixins/tableColumnsMixin';
|
|
@@ -400,7 +401,13 @@
|
|
|
align: 'center',
|
|
align: 'center',
|
|
|
width: 80,
|
|
width: 80,
|
|
|
formatter: (row, column, cellValue) => {
|
|
formatter: (row, column, cellValue) => {
|
|
|
- return cellValue == 0 ? '未报工' : cellValue == 1 ? '已报工' : '';
|
|
|
|
|
|
|
+ return cellValue == 0
|
|
|
|
|
+ ? '未报工'
|
|
|
|
|
+ : cellValue == 1
|
|
|
|
|
+ ? '已报工'
|
|
|
|
|
+ : cellValue == 2
|
|
|
|
|
+ ? '已关闭'
|
|
|
|
|
+ : '';
|
|
|
},
|
|
},
|
|
|
fixed: 'right'
|
|
fixed: 'right'
|
|
|
},
|
|
},
|
|
@@ -626,9 +633,11 @@
|
|
|
this.visible = false;
|
|
this.visible = false;
|
|
|
this.$emit('closeWorkPlan', '1');
|
|
this.$emit('closeWorkPlan', '1');
|
|
|
},
|
|
},
|
|
|
-
|
|
|
|
|
|
|
+ async closeWork(row) {
|
|
|
|
|
+ await closeWork(row);
|
|
|
|
|
+ this.done();
|
|
|
|
|
+ },
|
|
|
close() {
|
|
close() {
|
|
|
- console.log('关闭报工界面');
|
|
|
|
|
this.done();
|
|
this.done();
|
|
|
},
|
|
},
|
|
|
|
|
|