|
|
|
@ -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,9 +332,19 @@
|
|
|
|
|
<el-input type="number" v-model="form.sampleQuality" placeholder="请输入抽样数量" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<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-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-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
@ -435,8 +445,6 @@ export default {
|
|
|
|
|
total: 0,
|
|
|
|
|
// 生产过程检验任务表格数据
|
|
|
|
|
qcProduceList: [],
|
|
|
|
|
checkTypeList:[],
|
|
|
|
|
defectTypeList: [],
|
|
|
|
|
// 弹出层标题
|
|
|
|
|
title: "",
|
|
|
|
|
// 是否显示弹出层
|
|
|
|
@ -622,7 +630,7 @@ export default {
|
|
|
|
|
this.form.defects = this.defectTypeList;
|
|
|
|
|
this.open = true;
|
|
|
|
|
this.title = "添加生产过程检验任务";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
/** 修改按钮操作 */
|
|
|
|
|
handleUpdate(row) {
|
|
|
|
@ -630,6 +638,9 @@ export default {
|
|
|
|
|
const recordId = row.recordId || this.ids
|
|
|
|
|
getQcProduce(recordId).then(response => {
|
|
|
|
|
this.form = response.data;
|
|
|
|
|
if (this.form.defects == null) {
|
|
|
|
|
this.form.defects = this.defectTypeList;
|
|
|
|
|
}
|
|
|
|
|
this.open = true;
|
|
|
|
|
this.title = "修改生产过程检验任务";
|
|
|
|
|
|
|
|
|
|