Commit ecdd97b7 authored by kangzhenfei's avatar kangzhenfei

质量判定OK

parent 891b434b
...@@ -435,32 +435,36 @@ export default { ...@@ -435,32 +435,36 @@ export default {
let pass02 = this.ranglist.length>0; let pass02 = this.ranglist.length>0;
let pass03 = this.fanlist.length>0; let pass03 = this.fanlist.length>0;
let pass04 = this.feilist.length>0; let pass04 = this.feilist.length>0;
cardseops = { let pass05 = this.cardlist.length>0;
prodcutIds: [],
productStatus: this.cardlist[0].productStatus
}
this.cardlist.map(ch=>{cardseops.prodcutIds.push(ch.id)})
if(pass01){ if(pass01){
hegeops = { hegeops = {
prodcutIds: [], prodcutIds: [],
productStatus: this.hegelist[0].productStatus productStatus: this.hegelist[0].productStatus
}; };
this.hegelist.map(uh=>{hegeops.prodcutIds.push(uh.id)}) this.hegelist.map(uh=>{hegeops.prodcutIds.push(uh.id)})
lists = [cardseops,hegeops]; lists = [hegeops];
if(pass02){ if(pass02){
rangops = { rangops = {
prodcutIds: [], prodcutIds: [],
productStatus: this.ranglist[0].productStatus productStatus: this.ranglist[0].productStatus
}; };
this.ranglist.map(ur=>{rangops.prodcutIds.push(ur.id)}) this.ranglist.map(ur=>{rangops.prodcutIds.push(ur.id)})
lists = [cardseops,hegeops,rangops]; lists = [hegeops,rangops];
if(pass03){ if(pass03){
fanxops = { fanxops = {
prodcutIds: [], prodcutIds: [],
productStatus: this.fanlist[0].productStatus productStatus: this.fanlist[0].productStatus
}; };
this.fanlist.map(uf=>{fanxops.prodcutIds.push(uf.id)}) this.fanlist.map(uf=>{fanxops.prodcutIds.push(uf.id)})
lists = [cardseops,hegeops,rangops,fanxops]; lists = [hegeops,rangops,fanxops];
if(pass05){
cardseops = {
prodcutIds: [],
productStatus: this.cardlist[0].productStatus
}
this.cardlist.map(ch=>{cardseops.prodcutIds.push(ch.id)})
lists = [cardseops,hegeops,rangops,fanxops];
}
} }
} }
} }
...@@ -470,21 +474,29 @@ export default { ...@@ -470,21 +474,29 @@ export default {
productStatus: this.ranglist[0].productStatus productStatus: this.ranglist[0].productStatus
}; };
this.ranglist.map(ur=>{rangops.prodcutIds.push(ur.id)}) this.ranglist.map(ur=>{rangops.prodcutIds.push(ur.id)})
lists = [cardseops,rangops]; lists = [rangops];
if(pass01){ if(pass01){
hegeops = { hegeops = {
prodcutIds: [], prodcutIds: [],
productStatus: this.hegelist[0].productStatus productStatus: this.hegelist[0].productStatus
}; };
this.hegelist.map(uh=>{hegeops.prodcutIds.push(uh.id)}) this.hegelist.map(uh=>{hegeops.prodcutIds.push(uh.id)})
lists = [cardseops,hegeops,rangops]; lists = [hegeops,rangops];
if(pass03){ if(pass03){
fanxops = { fanxops = {
prodcutIds: [], prodcutIds: [],
productStatus: this.fanlist[0].productStatus productStatus: this.fanlist[0].productStatus
}; };
this.fanlist.map(uf=>{fanxops.prodcutIds.push(uf.id)}) this.fanlist.map(uf=>{fanxops.prodcutIds.push(uf.id)})
lists = [cardseops,hegeops,rangops,fanxops]; lists = [hegeops,rangops,fanxops];
if(pass05){
cardseops = {
prodcutIds: [],
productStatus: this.cardlist[0].productStatus
}
this.cardlist.map(ch=>{cardseops.prodcutIds.push(ch.id)})
lists = [cardseops,hegeops,rangops,fanxops];
}
} }
} }
} }
...@@ -494,23 +506,63 @@ export default { ...@@ -494,23 +506,63 @@ export default {
productStatus: this.fanlist[0].productStatus productStatus: this.fanlist[0].productStatus
}; };
this.fanlist.map(uf=>{fanxops.prodcutIds.push(uf.id)}) this.fanlist.map(uf=>{fanxops.prodcutIds.push(uf.id)})
lists = [cardseops,fanxops]; lists = [fanxops];
if(pass01){ if(pass01){
hegeops = { hegeops = {
prodcutIds: [], prodcutIds: [],
productStatus: this.hegelist[0].productStatus productStatus: this.hegelist[0].productStatus
}; };
this.hegelist.map(uh=>{hegeops.prodcutIds.push(uh.id)}) this.hegelist.map(uh=>{hegeops.prodcutIds.push(uh.id)})
lists = [cardseops,hegeops,fanxops]; lists = [hegeops,fanxops];
if(pass02){ if(pass02){
rangops = { rangops = {
prodcutIds: [], prodcutIds: [],
productStatus: this.ranglist[0].productStatus productStatus: this.ranglist[0].productStatus
}; };
this.ranglist.map(ur=>{rangops.prodcutIds.push(ur.id)}) this.ranglist.map(ur=>{rangops.prodcutIds.push(ur.id)})
lists = [hegeops,rangops,fanxops];
if(pass05){
cardseops = {
prodcutIds: [],
productStatus: this.cardlist[0].productStatus
}
this.cardlist.map(ch=>{cardseops.prodcutIds.push(ch.id)})
lists = [cardseops,hegeops,rangops,fanxops];
}
}
}
}
if(pass05){
cardseops = {
prodcutIds: [],
productStatus: this.cardlist[0].productStatus
}
this.cardlist.map(ch=>{cardseops.prodcutIds.push(ch.id)})
lists = [cardseops];
if(pass02){
rangops = {
prodcutIds: [],
productStatus: this.ranglist[0].productStatus
};
this.ranglist.map(ur=>{rangops.prodcutIds.push(ur.id)})
lists = [cardseops,rangops];
if(pass01){
hegeops = {
prodcutIds: [],
productStatus: this.hegelist[0].productStatus
};
this.hegelist.map(uh=>{hegeops.prodcutIds.push(uh.id)})
lists = [cardseops,hegeops,rangops];
if(pass03){
fanxops = {
prodcutIds: [],
productStatus: this.fanlist[0].productStatus
};
this.fanlist.map(uf=>{fanxops.prodcutIds.push(uf.id)})
lists = [cardseops,hegeops,rangops,fanxops]; lists = [cardseops,hegeops,rangops,fanxops];
} }
} }
}
} }
if(pass04){ if(pass04){
feipops = { feipops = {
...@@ -527,26 +579,34 @@ export default { ...@@ -527,26 +579,34 @@ export default {
productStatus: this.hegelist[0].productStatus productStatus: this.hegelist[0].productStatus
}; };
this.hegelist.map(uh=>{hegeops.prodcutIds.push(uh.id)}) this.hegelist.map(uh=>{hegeops.prodcutIds.push(uh.id)})
lists = [cardseops,hegeops,feipops]; lists = [hegeops,feipops];
if(pass02){ if(pass02){
rangops = { rangops = {
prodcutIds: [], prodcutIds: [],
productStatus: this.ranglist[0].productStatus productStatus: this.ranglist[0].productStatus
}; };
this.ranglist.map(ur=>{rangops.prodcutIds.push(ur.id)}) this.ranglist.map(ur=>{rangops.prodcutIds.push(ur.id)})
lists = [cardseops,hegeops,rangops,feipops]; lists = [hegeops,rangops,feipops];
if(pass03){ if(pass03){
fanxops = { fanxops = {
prodcutIds: [], prodcutIds: [],
productStatus: this.fanlist[0].productStatus productStatus: this.fanlist[0].productStatus
}; };
this.fanlist.map(uf=>{fanxops.prodcutIds.push(uf.id)}) this.fanlist.map(uf=>{fanxops.prodcutIds.push(uf.id)})
lists = [cardseops,hegeops,rangops,fanxops,feipops]; lists = [hegeops,rangops,fanxops,feipops];
if(pass05){
cardseops = {
prodcutIds: [],
productStatus: this.cardlist[0].productStatus
}
this.cardlist.map(ch=>{cardseops.prodcutIds.push(ch.id)})
lists = [cardseops,hegeops,rangops,fanxops];
}
} }
} }
} }
} }
// console.log(lists) console.log(lists)
let parmes={ let parmes={
dispatchId: this.$route.query.id, dispatchId: this.$route.query.id,
orderId: this.$route.query.orderId, orderId: this.$route.query.orderId,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment