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