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