|
|
|
@ -196,7 +196,7 @@
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="检验节点" align="center" prop="checkName" />
|
|
|
|
|
<el-table-column label="创建时间" align="center" prop="createTime" width="180">
|
|
|
|
|
<el-table-column label="创建时间" align="center" prop="createTime" width="180">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<span>{{ parseTime(scope.row.createTime, '{y}-{m}-{d} {h}:{i}:{s}') }}</span>
|
|
|
|
|
</template>
|
|
|
|
@ -332,19 +332,9 @@
|
|
|
|
|
<el-input type="number" v-model="form.sampleQuality" placeholder="请输入抽样数量" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="6">
|
|
|
|
|
<el-form-item label="A类不良数量" prop="aNoOkquality">
|
|
|
|
|
<el-input type="number" v-model="form.aNoOkquality" placeholder="请输入不良数量" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="6">
|
|
|
|
|
<el-form-item label="B类不良数量" prop="bNoOkquality">
|
|
|
|
|
<el-input type="number" v-model="form.bNoOkquality" placeholder="请输入不良数量" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="6">
|
|
|
|
|
<el-form-item label="C类不良数量" prop="cNoOkquality">
|
|
|
|
|
<el-input type="number" v-model="form.cNoOkquality" 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>
|
|
|
|
@ -424,6 +414,7 @@ import ItemSelectWorkOrder from "./selectWorkOrder.vue";
|
|
|
|
|
import ItemSelectWorkCenter from "./selectWorkCenter.vue";
|
|
|
|
|
import ItemSelectUser from "../qcIncome/selectUser.vue";
|
|
|
|
|
import ItemSelectProject from "../qcIncome/checkProjectType.vue";
|
|
|
|
|
import { getDefectTypeListByDefectType } from "@/api/quality/defectType.js";
|
|
|
|
|
export default {
|
|
|
|
|
name: "QcProduce",
|
|
|
|
|
components: { ItemSelectWorkCenter,ItemSelectUser,ItemSelectProject,ItemSelectWorkOrder},
|
|
|
|
@ -445,6 +436,7 @@ export default {
|
|
|
|
|
// 生产过程检验任务表格数据
|
|
|
|
|
qcProduceList: [],
|
|
|
|
|
checkTypeList:[],
|
|
|
|
|
defectTypeList: [],
|
|
|
|
|
// 弹出层标题
|
|
|
|
|
title: "",
|
|
|
|
|
// 是否显示弹出层
|
|
|
|
@ -522,6 +514,7 @@ export default {
|
|
|
|
|
this.getDate();
|
|
|
|
|
this.getList();
|
|
|
|
|
this.getCheckTypes();
|
|
|
|
|
this.handleDefectType();
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
/****/
|
|
|
|
@ -602,7 +595,8 @@ export default {
|
|
|
|
|
updateBy: null,
|
|
|
|
|
updateTime: null,
|
|
|
|
|
factoryCode: null,
|
|
|
|
|
delFlag: null
|
|
|
|
|
delFlag: null,
|
|
|
|
|
defects: []
|
|
|
|
|
};
|
|
|
|
|
this.resetForm("form");
|
|
|
|
|
},
|
|
|
|
@ -625,8 +619,10 @@ export default {
|
|
|
|
|
/** 新增按钮操作 */
|
|
|
|
|
handleAdd() {
|
|
|
|
|
this.reset();
|
|
|
|
|
this.form.defects = this.defectTypeList;
|
|
|
|
|
this.open = true;
|
|
|
|
|
this.title = "添加生产过程检验任务";
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
/** 修改按钮操作 */
|
|
|
|
|
handleUpdate(row) {
|
|
|
|
@ -735,6 +731,12 @@ export default {
|
|
|
|
|
//提交检测结果
|
|
|
|
|
saveCheck(){
|
|
|
|
|
this.getList();
|
|
|
|
|
},
|
|
|
|
|
handleDefectType() {
|
|
|
|
|
const defectType = "produce"
|
|
|
|
|
getDefectTypeListByDefectType(defectType).then(response => {
|
|
|
|
|
this.defectTypeList = response.rows;
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|