|
@ -109,9 +109,14 @@ |
|
|
|
|
|
|
|
|
if(formField=='ppNumber'){ |
|
|
if(formField=='ppNumber'){ |
|
|
// 获取子表数据 getBomDisassemble |
|
|
// 获取子表数据 getBomDisassemble |
|
|
PurchasePlanDetailApi.getPurchasePlanDetailList({
number: val[0]['number']}).then(res => {
if (res) tableData.value = res;
tableData.value.forEach(item=>{
item.batch = item.toBatch |
|
|
PurchasePlanDetailApi.getPurchasePlanDetailList({ |
|
|
|
|
|
number: val[0]['number']}).then(res => { |
|
|
|
|
|
if (res) tableData.value = res; |
|
|
|
|
|
tableData.value.forEach(item=>{ |
|
|
|
|
|
item.batch = item.toBatch |
|
|
item.qty = 1 |
|
|
item.qty = 1 |
|
|
})
}).catch(err => {
console.log(err)
}) |
|
|
}) |
|
|
|
|
|
}).catch(err => {
console.log(err)
}) |
|
|
} |
|
|
} |
|
|
formRef.setValues(setV) |
|
|
formRef.setValues(setV) |
|
|
} |
|
|
} |
|
|