|
|
|
@ -255,9 +255,9 @@
|
|
|
|
|
<el-input type="number" v-model="form.sampleQuality" placeholder="请输入抽样数量" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="6">
|
|
|
|
|
<el-form-item label="不合格数量" prop="noOkQuality">
|
|
|
|
|
<el-input type="number" v-model="form.noOkQuality" placeholder="请输入不合格数量" />
|
|
|
|
|
<el-col :span="6" v-for="(item,index) in form.defects" :key="index">
|
|
|
|
|
<el-form-item :label="item.defectSubclass" prop="">
|
|
|
|
|
<el-input type="number" v-model="item.noOkQuality" placeholder="请输入不合格数量" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
@ -321,11 +321,12 @@
|
|
|
|
|
<script>
|
|
|
|
|
import { listQcInventory, getQcInventory, addQcInventory, updateQcInventory, delQcInventory } from "@/api/quality/qcInventory.js";
|
|
|
|
|
import { getCheckTypes } from "@/api/quality/qcProduce";
|
|
|
|
|
import ItemSelectWorkOrder from "./selectLLWorkOrder.vue";
|
|
|
|
|
import ItemSelectSupplier from "./selectSupplier.vue";
|
|
|
|
|
import ItemSelectWorkOrder from "./selectLLWorkOrder";
|
|
|
|
|
import ItemSelectSupplier from "./selectSupplier";
|
|
|
|
|
import ItemSelectUser from "../qcIncome/selectUser.vue";
|
|
|
|
|
import ItemSelectProject from "../qcIncome/checkProjectType.vue";
|
|
|
|
|
import moment from 'moment';
|
|
|
|
|
import { getDefectTypeListByDefectType } from "@/api/quality/defectType.js";
|
|
|
|
|
export default {
|
|
|
|
|
name: "Inventory",
|
|
|
|
|
components: { ItemSelectWorkOrder,ItemSelectSupplier,ItemSelectUser,ItemSelectProject},
|
|
|
|
@ -346,6 +347,7 @@ export default {
|
|
|
|
|
total: 0,
|
|
|
|
|
// 库存检验表格数据
|
|
|
|
|
incomeList: [],
|
|
|
|
|
defectTypeList: [],
|
|
|
|
|
// 弹出层标题
|
|
|
|
|
title: "",
|
|
|
|
|
// 是否显示弹出层
|
|
|
|
@ -421,6 +423,7 @@ export default {
|
|
|
|
|
this.getDate();
|
|
|
|
|
this.getList();
|
|
|
|
|
this.getCheckTypes();
|
|
|
|
|
this.handleDefectType();
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
/****/
|
|
|
|
@ -500,7 +503,8 @@ export default {
|
|
|
|
|
updateBy: null,
|
|
|
|
|
updateTime: null,
|
|
|
|
|
factoryCode: null,
|
|
|
|
|
delFlag: null
|
|
|
|
|
delFlag: null,
|
|
|
|
|
defects: []
|
|
|
|
|
};
|
|
|
|
|
this.resetForm("form");
|
|
|
|
|
},
|
|
|
|
@ -523,6 +527,7 @@ export default {
|
|
|
|
|
/** 新增按钮操作 */
|
|
|
|
|
handleAdd() {
|
|
|
|
|
this.reset();
|
|
|
|
|
this.form.defects = this.defectTypeList;
|
|
|
|
|
this.open = true;
|
|
|
|
|
this.title = "添加库存检验";
|
|
|
|
|
},
|
|
|
|
@ -532,6 +537,9 @@ export default {
|
|
|
|
|
const recordId = row.recordId || this.ids
|
|
|
|
|
getQcInventory(recordId).then(response => {
|
|
|
|
|
this.form = response.data;
|
|
|
|
|
if (this.form.defects == null) {
|
|
|
|
|
this.form.defects = this.defectTypeList;
|
|
|
|
|
}
|
|
|
|
|
this.open = true;
|
|
|
|
|
this.title = "修改库存检验";
|
|
|
|
|
});
|
|
|
|
@ -634,6 +642,12 @@ export default {
|
|
|
|
|
//提交检测结果
|
|
|
|
|
saveCheck(){
|
|
|
|
|
this.getList();
|
|
|
|
|
},
|
|
|
|
|
handleDefectType() {
|
|
|
|
|
const defectType = "inventory"
|
|
|
|
|
getDefectTypeListByDefectType(defectType).then(response => {
|
|
|
|
|
this.defectTypeList = response.rows;
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|