|
@@ -320,7 +320,7 @@
|
|
|
type="primary"
|
|
type="primary"
|
|
|
@click="save('submit')"
|
|
@click="save('submit')"
|
|
|
v-loading="loading"
|
|
v-loading="loading"
|
|
|
- v-if="type != 'view'"
|
|
|
|
|
|
|
+ v-if="type != 'view' && isProcess"
|
|
|
>提交</el-button
|
|
>提交</el-button
|
|
|
>
|
|
>
|
|
|
|
|
|
|
@@ -342,6 +342,7 @@
|
|
|
<script>
|
|
<script>
|
|
|
import processSubmitDialog from '@/components/processSubmitDialog/processSubmitDialog.vue';
|
|
import processSubmitDialog from '@/components/processSubmitDialog/processSubmitDialog.vue';
|
|
|
import { recordingMethodList } from '@/utils/util.js';
|
|
import { recordingMethodList } from '@/utils/util.js';
|
|
|
|
|
+ import { parameterGetByCode } from '@/api/system/dictionary-data';
|
|
|
|
|
|
|
|
const defForm = {
|
|
const defForm = {
|
|
|
code: '', //编码
|
|
code: '', //编码
|
|
@@ -629,7 +630,8 @@
|
|
|
tableList: [],
|
|
tableList: [],
|
|
|
type: 'add',
|
|
type: 'add',
|
|
|
title: '',
|
|
title: '',
|
|
|
- qualityMode: []
|
|
|
|
|
|
|
+ qualityMode: [],
|
|
|
|
|
+ isProcess: true
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
|
|
|
|
@@ -643,6 +645,7 @@
|
|
|
this.activeComp = 'main';
|
|
this.activeComp = 'main';
|
|
|
this.visible = true;
|
|
this.visible = true;
|
|
|
await this.getQualityMethodCode();
|
|
await this.getQualityMethodCode();
|
|
|
|
|
+ await this.getProcess();
|
|
|
this.type = type;
|
|
this.type = type;
|
|
|
this.title =
|
|
this.title =
|
|
|
type == 'add' ? '请样' : type == 'edit' ? '修改请样' : '详情';
|
|
type == 'add' ? '请样' : type == 'edit' ? '修改请样' : '详情';
|
|
@@ -654,6 +657,13 @@
|
|
|
this.getById(row.id);
|
|
this.getById(row.id);
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
+
|
|
|
|
|
+ async getProcess() {
|
|
|
|
|
+ await parameterGetByCode({ code: 'sampling_approval' }).then((res) => {
|
|
|
|
|
+ this.isProcess = res.value == '1' ? true : false;
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
async init(row) {
|
|
async init(row) {
|
|
|
let data = await samplingRecordsPage({
|
|
let data = await samplingRecordsPage({
|
|
|
qualityWorkOrderId: row.id
|
|
qualityWorkOrderId: row.id
|