|
@@ -305,7 +305,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'&&isSamplingApproval==1"
|
|
|
>提交</el-button
|
|
>提交</el-button
|
|
|
>
|
|
>
|
|
|
|
|
|
|
@@ -359,6 +359,8 @@
|
|
|
import bpmDetail from '@/views/bpm/processInstance/detail.vue';
|
|
import bpmDetail from '@/views/bpm/processInstance/detail.vue';
|
|
|
import inspectionWorkDialog from '@/views/inspectionWork/components/inspectionWorkDialog.vue';
|
|
import inspectionWorkDialog from '@/views/inspectionWork/components/inspectionWorkDialog.vue';
|
|
|
import { getCodeList, getCode } from '@/api/login';
|
|
import { getCodeList, getCode } from '@/api/login';
|
|
|
|
|
+ import { parameterGetByCode } from '@/api/main/index';
|
|
|
|
|
+
|
|
|
export default {
|
|
export default {
|
|
|
components: { bpmDetail, inspectionWorkDialog, processSubmitDialog },
|
|
components: { bpmDetail, inspectionWorkDialog, processSubmitDialog },
|
|
|
props: {
|
|
props: {
|
|
@@ -612,7 +614,8 @@
|
|
|
schemeList: [],
|
|
schemeList: [],
|
|
|
tableList: [],
|
|
tableList: [],
|
|
|
type: 'add',
|
|
type: 'add',
|
|
|
- title: ''
|
|
|
|
|
|
|
+ title: '',
|
|
|
|
|
+ isSamplingApproval: 0
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
|
|
|
|
@@ -626,6 +629,7 @@
|
|
|
this.activeComp = 'main';
|
|
this.activeComp = 'main';
|
|
|
this.visible = true;
|
|
this.visible = true;
|
|
|
this.type = type;
|
|
this.type = type;
|
|
|
|
|
+ this.parameterGetByCode();
|
|
|
this.title =
|
|
this.title =
|
|
|
type == 'add' ? '请样' : type == 'edit' ? '修改请样' : '详情';
|
|
type == 'add' ? '请样' : type == 'edit' ? '修改请样' : '详情';
|
|
|
if (type == 'add') {
|
|
if (type == 'add') {
|
|
@@ -636,6 +640,13 @@
|
|
|
this.getById(row.id);
|
|
this.getById(row.id);
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
+ parameterGetByCode() {
|
|
|
|
|
+ parameterGetByCode({
|
|
|
|
|
+ code: 'sampling_approval'
|
|
|
|
|
+ }).then((res) => {
|
|
|
|
|
+ this.isSamplingApproval = res.value;
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
async init(row) {
|
|
async init(row) {
|
|
|
let data = await samplingRecordsPage({
|
|
let data = await samplingRecordsPage({
|
|
|
qualityWorkOrderId: row.id
|
|
qualityWorkOrderId: row.id
|
|
@@ -1268,7 +1279,8 @@
|
|
|
variables: {
|
|
variables: {
|
|
|
businessCode: res.code,
|
|
businessCode: res.code,
|
|
|
businessName: '请样',
|
|
businessName: '请样',
|
|
|
- businessType: res.qualityWorkOrderVO.conditionType == 1 ? '整样' : '小样'
|
|
|
|
|
|
|
+ businessType:
|
|
|
|
|
+ res.qualityWorkOrderVO.conditionType == 1 ? '整样' : '小样'
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
this.$refs.processSubmitDialogRef.init(params);
|
|
this.$refs.processSubmitDialogRef.init(params);
|