fix:玻纤检验批量操作问题修正
This commit is contained in:
parent
adef92c959
commit
b181a3717e
|
|
@ -990,18 +990,22 @@ export default {
|
|||
that.$refs.dialogForm.validate((valid) => {
|
||||
if (valid) {
|
||||
that.selectWpr.forEach(item => {
|
||||
item.ftest.ftestdefects.forEach(defect => {
|
||||
let defectindex = that.setForm.defectids.indexOf(defect.defect);
|
||||
if(defectindex > -1){
|
||||
defect.has = that.defectlists[defectindex].value;
|
||||
}
|
||||
})
|
||||
item.ftest.ftestitems.forEach(testitem => {
|
||||
let testitemindex = that.setForm.testitemids.indexOf(testitem.testitem);
|
||||
if( testitemindex > -1){
|
||||
testitem.test_val_json = that.testitemlists[testitemindex].value;
|
||||
}
|
||||
})
|
||||
item.ftest.ftestdefects = [];
|
||||
if(that.defectlists.length>0){
|
||||
that.defectlists.forEach((item1) => {
|
||||
let obj = {};
|
||||
obj.defect = item1.defect;
|
||||
obj.has = item1.value;
|
||||
item.ftest.ftestdefects.push(obj);
|
||||
})
|
||||
}
|
||||
|
||||
// item.ftest.ftestdefects.forEach(defect => {
|
||||
// let defectindex = that.setForm.defectids.indexOf(defect.defect);
|
||||
// if(defectindex > -1){
|
||||
// defect.has = that.defectlists[defectindex].value;
|
||||
// }
|
||||
// })
|
||||
});
|
||||
that.$API.wpm.mlogbw.update.req("bulk",that.selectWpr).then((res) => {
|
||||
that.setVisible = false;
|
||||
|
|
|
|||
Loading…
Reference in New Issue