|
|
@@ -161,7 +161,7 @@
|
|
|
v-if="
|
|
|
row.status == 1 &&
|
|
|
$hasPermission('qms:quality_work_order:qualityReport') &&
|
|
|
- !isReportApproval
|
|
|
+ isReportApproval != 1
|
|
|
"
|
|
|
text="检测报告"
|
|
|
:businessId="row.id"
|
|
|
@@ -664,21 +664,19 @@
|
|
|
this.requestDict('取样类型');
|
|
|
this.getCode();
|
|
|
this.getReportTemplateList();
|
|
|
-
|
|
|
},
|
|
|
mounted() {
|
|
|
const isWt = this.$route.query?.isWt;
|
|
|
-
|
|
|
+
|
|
|
if (isWt) {
|
|
|
const id = JSON.parse(this.$route.query?.businessId);
|
|
|
console.log(id);
|
|
|
- getList({qualityWorkerId: id}).then(res => {
|
|
|
+ getList({ qualityWorkerId: id }).then((res) => {
|
|
|
const rowData = res.list[0];
|
|
|
this.$nextTick(() => {
|
|
|
- this.openEdit('edit', rowData)
|
|
|
- })
|
|
|
-
|
|
|
- })
|
|
|
+ this.openEdit('edit', rowData);
|
|
|
+ });
|
|
|
+ });
|
|
|
}
|
|
|
},
|
|
|
computed: {
|