|
@@ -67,7 +67,8 @@
|
|
|
import {
|
|
import {
|
|
|
getList,
|
|
getList,
|
|
|
sampleCollection,
|
|
sampleCollection,
|
|
|
- getById
|
|
|
|
|
|
|
+ getById,
|
|
|
|
|
+ verificationQualityInspector
|
|
|
} from '@/api/inspectionProjectTask';
|
|
} from '@/api/inspectionProjectTask';
|
|
|
import dictMixins from '@/mixins/dictMixins';
|
|
import dictMixins from '@/mixins/dictMixins';
|
|
|
export default {
|
|
export default {
|
|
@@ -284,17 +285,25 @@
|
|
|
this.$refs.table.reload({ page: 1, where: where });
|
|
this.$refs.table.reload({ page: 1, where: where });
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
- sampleCollection(row) {
|
|
|
|
|
|
|
+ async sampleCollection(row) {
|
|
|
|
|
+ const code = await verificationQualityInspector(row.id);
|
|
|
|
|
+ if (code == '-1') {
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
sampleCollection({ id: row.id }).then((res) => {
|
|
sampleCollection({ id: row.id }).then((res) => {
|
|
|
this.$message.success('收样成功');
|
|
this.$message.success('收样成功');
|
|
|
-
|
|
|
|
|
this.reload();
|
|
this.reload();
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
/* 报工 */
|
|
/* 报工 */
|
|
|
async report(row, type) {
|
|
async report(row, type) {
|
|
|
|
|
+ if (type != 'detail') {
|
|
|
|
|
+ const code = await verificationQualityInspector(row.id);
|
|
|
|
|
+ if (code == '-1') {
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
const res = await getById(row.id);
|
|
const res = await getById(row.id);
|
|
|
-
|
|
|
|
|
this.$refs.inspectionProjectReportRef.open(
|
|
this.$refs.inspectionProjectReportRef.open(
|
|
|
{ workData: res.data, list: res.data.templateList },
|
|
{ workData: res.data, list: res.data.templateList },
|
|
|
type,
|
|
type,
|