|
|
@@ -88,7 +88,7 @@
|
|
|
</div>
|
|
|
</div> -->
|
|
|
<!-- v-if="isExpanded" -->
|
|
|
- <div >
|
|
|
+ <div>
|
|
|
<el-row>
|
|
|
<el-col :span="6">
|
|
|
<el-form-item label="质检部门" prop="groupId">
|
|
|
@@ -211,6 +211,7 @@
|
|
|
<el-form-item label="检验方式:" prop="qualityMode">
|
|
|
<!-- <DictSelection dictName="取样类型" v-model="form.qualityMode" :disabled="qualityType == 1"></DictSelection> -->
|
|
|
<el-select
|
|
|
+ @change="changeQualityMode"
|
|
|
style="width: 100%"
|
|
|
v-model="form.qualityMode"
|
|
|
placeholder="请选择"
|
|
|
@@ -467,7 +468,7 @@
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
- this.getDictListIqoCode('iqo_code');
|
|
|
+ this.getDictListIqoCode('measurement_type');
|
|
|
this.getQualityModeList('quality_method_code');
|
|
|
},
|
|
|
methods: {
|
|
|
@@ -510,6 +511,8 @@
|
|
|
label: item[values[0]]
|
|
|
};
|
|
|
});
|
|
|
+
|
|
|
+ console.log(this.inspectionStandardsList, '2222222222222222');
|
|
|
},
|
|
|
async getQualityModeList(code) {
|
|
|
let { data: res } = await getByCode(code);
|
|
|
@@ -621,6 +624,16 @@
|
|
|
this.form.noQualifiedNumber = noQualifiedNumber;
|
|
|
this.form.qualificationRate = qualificationRate + '%';
|
|
|
this.form.noQualificationRate = noQualificationRate + '%';
|
|
|
+ },
|
|
|
+ //解决换检验方式的时候
|
|
|
+ changeQualityMode(val) {
|
|
|
+ console.log(val, 'isInfoChangeModel');
|
|
|
+ if (val) {
|
|
|
+ this.$emit('changeModel', val);
|
|
|
+ } else {
|
|
|
+ console.log('清空table2数据');
|
|
|
+ this.$emit('table2');
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
};
|