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