diff --git a/src/views/quality/qcIncome/index.vue b/src/views/quality/qcIncome/index.vue
index 6d74e87..d690793 100644
--- a/src/views/quality/qcIncome/index.vue
+++ b/src/views/quality/qcIncome/index.vue
@@ -269,9 +269,9 @@
-
-
-
+
+
+
@@ -367,6 +367,7 @@ import ItemSelectSupplier from "./selectSupplier.vue";
import ItemSelectUser from "./selectUser.vue";
import ItemSelectProject from "./checkProjectType.vue";
import moment from 'moment';
+import { getDefectTypeListByDefectType } from "@/api/quality/defectType.js";
export default {
name: "Income",
components: { ItemSelectWorkOrder,ItemSelectSupplier,ItemSelectUser,ItemSelectProject},
@@ -387,6 +388,7 @@ export default {
total: 0,
// 来料检验表格数据
incomeList: [],
+ defectTypeList: [],
// 弹出层标题
title: "",
// 是否显示弹出层
@@ -462,6 +464,7 @@ export default {
this.getDate();
this.getList();
this.getCheckTypes();
+ this.handleDefectType();
},
methods: {
/****/
@@ -541,7 +544,8 @@ export default {
updateBy: null,
updateTime: null,
factoryCode: null,
- delFlag: null
+ delFlag: null,
+ defects: []
};
this.resetForm("form");
},
@@ -564,6 +568,7 @@ export default {
/** 新增按钮操作 */
handleAdd() {
this.reset();
+ this.form.defects = this.defectTypeList;
this.open = true;
this.title = "添加来料检验";
},
@@ -573,6 +578,9 @@ export default {
const recordId = row.recordId || this.ids
getIncome(recordId).then(response => {
this.form = response.data;
+ if (this.form.defects == null) {
+ this.form.defects = this.defectTypeList;
+ }
this.open = true;
this.title = "修改来料检验";
});
@@ -675,11 +683,17 @@ export default {
//查看检验项目弹窗
handleView(row){
this.$refs.itemSelectProject.showFlag = true;
- this.$refs.itemSelectProject.view(row,'produce');
+ this.$refs.itemSelectProject.view(row,'material');
},
//提交检测结果
saveCheck(){
this.getList();
+ },
+ handleDefectType() {
+ const defectType = "material";
+ getDefectTypeListByDefectType(defectType).then(response => {
+ this.defectTypeList = response.rows;
+ });
}
}
};
diff --git a/src/views/quality/qcWarehousing/index.vue b/src/views/quality/qcWarehousing/index.vue
index 889c580..4b494f1 100644
--- a/src/views/quality/qcWarehousing/index.vue
+++ b/src/views/quality/qcWarehousing/index.vue
@@ -120,7 +120,6 @@
v-hasPermi="['quality:qcWarehousing:add']"
>新增
-