|
|
@@ -15,9 +15,22 @@
|
|
|
<el-radio v-model="form.isComeCheck" :label="0">否</el-radio>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :span="4">
|
|
|
- <el-form-item label="检验标准" prop="">
|
|
|
+ <el-col :span="6" v-if="form.isComeCheck == 1">
|
|
|
+ <el-form-item label="检验标准" prop="inspectionStandards">
|
|
|
<!-- 计量 计重 -->
|
|
|
+ <el-select
|
|
|
+ style="width: 100%"
|
|
|
+ v-model="form.inspectionStandards"
|
|
|
+ placeholder="请选择"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="item in inspectionStandardsList"
|
|
|
+ :label="item.label"
|
|
|
+ :value="item.value"
|
|
|
+ :key="item.value"
|
|
|
+ >
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="6" v-if="form.isComeCheck == 1">
|
|
|
@@ -101,13 +114,15 @@
|
|
|
data() {
|
|
|
return {
|
|
|
qualityTemplateList: [],
|
|
|
- levelOptions: []
|
|
|
+ levelOptions: [],
|
|
|
+ inspectionStandardsList: []
|
|
|
};
|
|
|
},
|
|
|
watch: {},
|
|
|
created() {
|
|
|
this.getQualityTemplateList();
|
|
|
this.getDictList('level_type');
|
|
|
+ this.getDictListIqoCode('iqo_code');
|
|
|
},
|
|
|
methods: {
|
|
|
async getDictList(code) {
|
|
|
@@ -121,6 +136,16 @@
|
|
|
};
|
|
|
});
|
|
|
},
|
|
|
+ async getDictListIqoCode(code) {
|
|
|
+ let { data: res } = await getByCode(code);
|
|
|
+ this.inspectionStandardsList = res.map((item) => {
|
|
|
+ let values = Object.keys(item);
|
|
|
+ return {
|
|
|
+ value: Number(values[0]),
|
|
|
+ label: item[values[0]]
|
|
|
+ };
|
|
|
+ });
|
|
|
+ },
|
|
|
getQualityTemplateList() {
|
|
|
getQualityTemplate().then((res) => {
|
|
|
this.qualityTemplateList = res;
|