|
|
@ -48,11 +48,6 @@
|
|
|
|
v-hasPermi="['quality:qcIncome:edit']"
|
|
|
|
v-hasPermi="['quality:qcIncome:edit']"
|
|
|
|
>不良数量</el-button>
|
|
|
|
>不良数量</el-button>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column label="不良数量" align="left" prop="defectQuality" width="120">
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
<el-input type="number" v-model="scope.row.defectQuality" placeholder="请输入不良数量"/>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column label="检测值" align="center" class-name="small-padding fixed-width" v-if="this.viewStatus != '1' ">
|
|
|
|
<el-table-column label="检测值" align="center" class-name="small-padding fixed-width" v-if="this.viewStatus != '1' ">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
@ -210,7 +205,6 @@ export default {
|
|
|
|
this.getDefect();
|
|
|
|
this.getDefect();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
|
|
|
|
|
|
|
|
getDefect(){
|
|
|
|
getDefect(){
|
|
|
|
getDefectList(this.typeCode).then(response => {
|
|
|
|
getDefectList(this.typeCode).then(response => {
|
|
|
|
this.defectList = response;
|
|
|
|
this.defectList = response;
|
|
|
@ -331,6 +325,7 @@ export default {
|
|
|
|
this.defectForm.defectItems.forEach(item => {
|
|
|
|
this.defectForm.defectItems.forEach(item => {
|
|
|
|
item.belongToDetail = row.recordId;
|
|
|
|
item.belongToDetail = row.recordId;
|
|
|
|
item.belongTo = row.belongTo;
|
|
|
|
item.belongTo = row.belongTo;
|
|
|
|
|
|
|
|
item.noOkQuality = 0;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
getDefectValue(row.recordId).then(response => {
|
|
|
|
getDefectValue(row.recordId).then(response => {
|
|
|
|
let values = response.rows;
|
|
|
|
let values = response.rows;
|
|
|
@ -343,6 +338,8 @@ export default {
|
|
|
|
noOkQuality: item.noOkQuality,
|
|
|
|
noOkQuality: item.noOkQuality,
|
|
|
|
}));
|
|
|
|
}));
|
|
|
|
this.updateFlag = true;
|
|
|
|
this.updateFlag = true;
|
|
|
|
|
|
|
|
}else{
|
|
|
|
|
|
|
|
this.updateFlag = false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.defectOpen = true;
|
|
|
|
this.defectOpen = true;
|
|
|
|
});
|
|
|
|
});
|
|
|
|