|
|
@ -346,6 +346,7 @@ const buttonOperationClick = async (row, label, index,isSave = false)=> { |
|
|
|
} |
|
|
|
return |
|
|
|
} |
|
|
|
detatableDataBom.params.masterId = row.id |
|
|
|
detatableDataBom.params.itemCode = row.itemCode |
|
|
|
detatableDataBom.params.bomVersion = row.bomVersion |
|
|
|
detailQty.value = row.qty |
|
|
@ -384,7 +385,10 @@ const buttonOperationClick = async (row, label, index,isSave = false)=> { |
|
|
|
// } |
|
|
|
// }) |
|
|
|
// }else { |
|
|
|
if(formType.value != 'update'){ |
|
|
|
//编辑的时候直接取接口返回数据 |
|
|
|
item.qty = item.bomQty * row.qty |
|
|
|
} |
|
|
|
// } |
|
|
|
// const obj = await banchBomPage(row.fromLocationCode, item) |
|
|
|
// console.log('obj',obj) |
|
|
@ -871,7 +875,9 @@ const handleHandle = async (id: number) => { |
|
|
|
|
|
|
|
/** 添加/修改操作 */ |
|
|
|
const formRef = ref() |
|
|
|
const formType = ref('') |
|
|
|
const openForm =async (type: string, row?: number) => { |
|
|
|
formType.value = type |
|
|
|
tableData.value = [] // 重置明细数据 |
|
|
|
detatableDataBom.params = []; // 重置Bom请求参数 |
|
|
|
lsBomSave.value = true |
|
|
|