|
@ -227,7 +227,7 @@ export default { |
|
|
}) |
|
|
}) |
|
|
if(res.statu){ |
|
|
if(res.statu){ |
|
|
this.$provise.emit("forming_agr", list=>{ |
|
|
this.$provise.emit("forming_agr", list=>{ |
|
|
this.specs.list=res.data.listSpec.map(v=>{ |
|
|
this.specs.list=res.data.map(v=>{ |
|
|
v.number-=list.reduce((a,b)=>a+(b.inventoryId==v.id?b.inputQuantity:0),0) |
|
|
v.number-=list.reduce((a,b)=>a+(b.inventoryId==v.id?b.inputQuantity:0),0) |
|
|
return v |
|
|
return v |
|
|
}).filter(v=>v.number>0) |
|
|
}).filter(v=>v.number>0) |
|
|