|
|
@ -120,7 +120,6 @@
|
|
|
|
v-hasPermi="['quality:qcWarehousing:add']"
|
|
|
|
v-hasPermi="['quality:qcWarehousing:add']"
|
|
|
|
>新增</el-button>
|
|
|
|
>新增</el-button>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<!--
|
|
|
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
<el-col :span="1.5">
|
|
|
|
<el-button
|
|
|
|
<el-button
|
|
|
|
type="success"
|
|
|
|
type="success"
|
|
|
@ -132,7 +131,7 @@
|
|
|
|
v-hasPermi="['quality:qcWarehousing:edit']"
|
|
|
|
v-hasPermi="['quality:qcWarehousing:edit']"
|
|
|
|
>修改</el-button>
|
|
|
|
>修改</el-button>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="1.5">
|
|
|
|
<!-- <el-col :span="1.5">
|
|
|
|
<el-button
|
|
|
|
<el-button
|
|
|
|
type="danger"
|
|
|
|
type="danger"
|
|
|
|
plain
|
|
|
|
plain
|
|
|
@ -301,9 +300,9 @@
|
|
|
|
<el-input type="number" v-model="form.sampleQuality" placeholder="请输入抽样数量" />
|
|
|
|
<el-input type="number" v-model="form.sampleQuality" placeholder="请输入抽样数量" />
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="6">
|
|
|
|
<el-col :span="6" v-for="(item,index) in form.defects" :key="index">
|
|
|
|
<el-form-item label="不合格数量" prop="noOkQuality">
|
|
|
|
<el-form-item :label="item.defectSubclass" prop="">
|
|
|
|
<el-input type="number" v-model="form.noOkQuality" placeholder="请输入不合格数量" />
|
|
|
|
<el-input type="number" v-model="item.noOkQuality" placeholder="请输入不合格数量" />
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
<el-col :span="6">
|
|
|
|
<el-col :span="6">
|
|
|
@ -409,6 +408,7 @@ import ItemSelectLoc from "./selectLoc.vue";
|
|
|
|
import ItemSelectUser from "../qcIncome/selectUser.vue";
|
|
|
|
import ItemSelectUser from "../qcIncome/selectUser.vue";
|
|
|
|
import ItemSelectProject from "../qcIncome/checkProjectType.vue";
|
|
|
|
import ItemSelectProject from "../qcIncome/checkProjectType.vue";
|
|
|
|
import moment from 'moment';
|
|
|
|
import moment from 'moment';
|
|
|
|
|
|
|
|
import { getDefectTypeListByDefectType } from "@/api/quality/defectType.js";
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
name: "Warehousing",
|
|
|
|
name: "Warehousing",
|
|
|
|
components: { ItemSelectMaterial,ItemSelectLoc,ItemSelectUser,ItemSelectProject,ItemSelectWorkOrder},
|
|
|
|
components: { ItemSelectMaterial,ItemSelectLoc,ItemSelectUser,ItemSelectProject,ItemSelectWorkOrder},
|
|
|
@ -430,6 +430,7 @@ export default {
|
|
|
|
// 成品入库检验任务表格数据
|
|
|
|
// 成品入库检验任务表格数据
|
|
|
|
warehousingList: [],
|
|
|
|
warehousingList: [],
|
|
|
|
batchList:[],
|
|
|
|
batchList:[],
|
|
|
|
|
|
|
|
defectTypeList: [],
|
|
|
|
// 弹出层标题
|
|
|
|
// 弹出层标题
|
|
|
|
title: "",
|
|
|
|
title: "",
|
|
|
|
// 是否显示弹出层
|
|
|
|
// 是否显示弹出层
|
|
|
@ -502,6 +503,7 @@ export default {
|
|
|
|
this.getDate();
|
|
|
|
this.getDate();
|
|
|
|
this.getList();
|
|
|
|
this.getList();
|
|
|
|
this.getCheckTypes();
|
|
|
|
this.getCheckTypes();
|
|
|
|
|
|
|
|
this.handleDefectType();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
/****/
|
|
|
|
/****/
|
|
|
@ -582,7 +584,8 @@ export default {
|
|
|
|
updateBy: null,
|
|
|
|
updateBy: null,
|
|
|
|
updateTime: null,
|
|
|
|
updateTime: null,
|
|
|
|
factoryCode: null,
|
|
|
|
factoryCode: null,
|
|
|
|
delFlag: null
|
|
|
|
delFlag: null,
|
|
|
|
|
|
|
|
defects: []
|
|
|
|
};
|
|
|
|
};
|
|
|
|
this.resetForm("form");
|
|
|
|
this.resetForm("form");
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -605,6 +608,7 @@ export default {
|
|
|
|
/** 新增按钮操作 */
|
|
|
|
/** 新增按钮操作 */
|
|
|
|
handleAdd() {
|
|
|
|
handleAdd() {
|
|
|
|
this.reset();
|
|
|
|
this.reset();
|
|
|
|
|
|
|
|
this.form.defects = this.defectTypeList;
|
|
|
|
this.open = true;
|
|
|
|
this.open = true;
|
|
|
|
this.title = "添加成品入库检验任务";
|
|
|
|
this.title = "添加成品入库检验任务";
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -614,6 +618,9 @@ export default {
|
|
|
|
const recordId = row.recordId || this.ids
|
|
|
|
const recordId = row.recordId || this.ids
|
|
|
|
getWarehousing(recordId).then(response => {
|
|
|
|
getWarehousing(recordId).then(response => {
|
|
|
|
this.form = response.data;
|
|
|
|
this.form = response.data;
|
|
|
|
|
|
|
|
if (this.form.defects == null) {
|
|
|
|
|
|
|
|
this.form.defects = this.defectTypeList;
|
|
|
|
|
|
|
|
}
|
|
|
|
this.open = true;
|
|
|
|
this.open = true;
|
|
|
|
this.title = "修改成品入库检验任务";
|
|
|
|
this.title = "修改成品入库检验任务";
|
|
|
|
});
|
|
|
|
});
|
|
|
@ -724,11 +731,17 @@ export default {
|
|
|
|
//查看检验项目弹窗
|
|
|
|
//查看检验项目弹窗
|
|
|
|
handleView(row){
|
|
|
|
handleView(row){
|
|
|
|
this.$refs.itemSelectProject.showFlag = true;
|
|
|
|
this.$refs.itemSelectProject.showFlag = true;
|
|
|
|
this.$refs.itemSelectProject.view(row,'produce');
|
|
|
|
this.$refs.itemSelectProject.view(row,'product');
|
|
|
|
},
|
|
|
|
},
|
|
|
|
//提交检测结果
|
|
|
|
//提交检测结果
|
|
|
|
saveCheck(){
|
|
|
|
saveCheck(){
|
|
|
|
this.getList();
|
|
|
|
this.getList();
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
handleDefectType() {
|
|
|
|
|
|
|
|
const defectType = "product";
|
|
|
|
|
|
|
|
getDefectTypeListByDefectType(defectType).then(response => {
|
|
|
|
|
|
|
|
this.defectTypeList = response.rows;
|
|
|
|
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|