|
|
@@ -43,6 +43,7 @@
|
|
|
placeholder="请选择业务分类"
|
|
|
style="width: 100%"
|
|
|
@change="businessTypeChange"
|
|
|
+ :disabled="!!businessType"
|
|
|
>
|
|
|
<el-option
|
|
|
v-for="item in businessTypeList"
|
|
|
@@ -122,7 +123,7 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
- <el-form-item label="名称" prop="name">
|
|
|
+ <el-form-item label="名称" prop="name">
|
|
|
<el-input
|
|
|
v-model="formData.name"
|
|
|
placeholder="请输入"
|
|
|
@@ -595,7 +596,7 @@
|
|
|
>
|
|
|
</header-title>
|
|
|
<experimentationProcess
|
|
|
- :edit="type!='detail'"
|
|
|
+ :edit="type != 'detail'"
|
|
|
v-if="qmsReportWorkType.includes(formData.reportWorkType)"
|
|
|
ref="experimentationProcess"
|
|
|
></experimentationProcess>
|
|
|
@@ -701,6 +702,7 @@
|
|
|
type: Object,
|
|
|
default: () => null
|
|
|
},
|
|
|
+ businessType:''
|
|
|
},
|
|
|
computed: {
|
|
|
bankColumns() {
|
|
|
@@ -1041,9 +1043,7 @@
|
|
|
formDateBase,
|
|
|
formData: JSON.parse(JSON.stringify(formDateBase)),
|
|
|
formRules: {
|
|
|
- name: [
|
|
|
- { required: true, message: '请输入名称', trigger: 'blur' }
|
|
|
- ],
|
|
|
+ name: [{ required: true, message: '请输入名称', trigger: 'blur' }],
|
|
|
frequencyValue: [
|
|
|
{ required: true, message: '请选择周期', trigger: 'blur' },
|
|
|
{ required: true, message: '请选择周期', trigger: 'change' }
|
|
|
@@ -1158,7 +1158,11 @@
|
|
|
if (this.typeInfo) {
|
|
|
const node = this.typeInfo;
|
|
|
const item = node.item || node;
|
|
|
-
|
|
|
+ if (this.businessType) {
|
|
|
+ this.formData.businessType = this.businessType + '';
|
|
|
+ this.formData.businessName =
|
|
|
+ this.businessType == '1' ? '生产' : '质检';
|
|
|
+ }
|
|
|
switch (node.type) {
|
|
|
case 'industry':
|
|
|
this.formData.industryType = item.industryType + '';
|