|
|
@ -516,7 +516,7 @@ export default {
|
|
|
|
this.form.warehouseId = e.data[0]?.warehouseId
|
|
|
|
this.form.warehouseId = e.data[0]?.warehouseId
|
|
|
|
})
|
|
|
|
})
|
|
|
|
getMaterialBoms({
|
|
|
|
getMaterialBoms({
|
|
|
|
ancestors:1
|
|
|
|
ancestors:1,
|
|
|
|
}).then(e=>{
|
|
|
|
}).then(e=>{
|
|
|
|
this.form.wmsRawOutstockDetailList = e.data.map(r=>{
|
|
|
|
this.form.wmsRawOutstockDetailList = e.data.map(r=>{
|
|
|
|
return {
|
|
|
|
return {
|
|
|
@ -543,8 +543,20 @@ export default {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
searchMaterial(e){
|
|
|
|
searchMaterial(val){
|
|
|
|
console.log(e)
|
|
|
|
console.log(val)
|
|
|
|
|
|
|
|
getMaterialBoms({
|
|
|
|
|
|
|
|
ancestors:1,
|
|
|
|
|
|
|
|
materialName:val
|
|
|
|
|
|
|
|
}).then(e=>{
|
|
|
|
|
|
|
|
this.form.wmsRawOutstockDetailList = e.data.map(r=>{
|
|
|
|
|
|
|
|
return {
|
|
|
|
|
|
|
|
materialId:r.materialId,
|
|
|
|
|
|
|
|
materialName:r.materialName,
|
|
|
|
|
|
|
|
planAmount:0,
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|