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