|
@@ -20,8 +20,24 @@
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="6">
|
|
<el-col :span="6">
|
|
|
- <el-form-item label="检验标准:" prop="inspectionStandards">
|
|
|
|
|
- <el-select v-model="form.inspectionStandards" placeholder="请选择" style="width: 100%" clearable></el-select>
|
|
|
|
|
|
|
+<!-- <el-form-item label="检验标准:" prop="inspectionStandards">-->
|
|
|
|
|
+<!-- <el-select v-model="form.inspectionStandards" placeholder="请选择" style="width: 100%" clearable></el-select>-->
|
|
|
|
|
+<!-- </el-form-item>-->
|
|
|
|
|
+ <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-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
</el-row>
|
|
</el-row>
|
|
@@ -189,7 +205,7 @@ import EquipmentDialog from '@/views/inspectionWork/components/EquipmentDialog';
|
|
|
|
|
|
|
|
//接口
|
|
//接口
|
|
|
import { getUserPage } from '@/api/system/organization';
|
|
import { getUserPage } from '@/api/system/organization';
|
|
|
-
|
|
|
|
|
|
|
+import { getByCode } from '@/api/system/dictionary-data';
|
|
|
import { rules } from 'eslint-config-prettier';
|
|
import { rules } from 'eslint-config-prettier';
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
@@ -285,6 +301,7 @@ export default {
|
|
|
return {
|
|
return {
|
|
|
executorList: [],
|
|
executorList: [],
|
|
|
sourceList: [],
|
|
sourceList: [],
|
|
|
|
|
+ inspectionStandardsList: [],
|
|
|
rules: {
|
|
rules: {
|
|
|
name: [{ required: true, message: '请输入', trigger: 'blur' }],
|
|
name: [{ required: true, message: '请输入', trigger: 'blur' }],
|
|
|
qualityMode: [
|
|
qualityMode: [
|
|
@@ -300,7 +317,20 @@ export default {
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
|
|
+ created() {
|
|
|
|
|
+ this.getDictListIqoCode('iqo_code');
|
|
|
|
|
+ },
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ 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]]
|
|
|
|
|
+ };
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
//质检计划类型
|
|
//质检计划类型
|
|
|
planChange(value) {
|
|
planChange(value) {
|
|
|
if (value == 1) {
|
|
if (value == 1) {
|
|
@@ -381,11 +411,13 @@ export default {
|
|
|
this.form.qualificationRate = val.qualificationRate;
|
|
this.form.qualificationRate = val.qualificationRate;
|
|
|
this.form.totalWeight = val.totalWeight;
|
|
this.form.totalWeight = val.totalWeight;
|
|
|
this.form.sampleNumber = val.sampleNumber;
|
|
this.form.sampleNumber = val.sampleNumber;
|
|
|
-
|
|
|
|
|
|
|
+ this.form.inspectionStandards = val.inspectionStandards;
|
|
|
let receiveNo = val.receiveNo;
|
|
let receiveNo = val.receiveNo;
|
|
|
let categoryCode = val.productCode;
|
|
let categoryCode = val.productCode;
|
|
|
|
|
+ let productCategoryId = val.productCategoryId;
|
|
|
|
|
+ let productCategoryName = val.productCategoryName;
|
|
|
if (receiveNo && categoryCode) {
|
|
if (receiveNo && categoryCode) {
|
|
|
- this.$emit('getList', receiveNo, categoryCode);
|
|
|
|
|
|
|
+ this.$emit('getList', receiveNo, categoryCode,productCategoryId,productCategoryName);
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
|