|
|
@ -93,11 +93,13 @@ |
|
|
|
:isShowButton="false" |
|
|
|
:isShowReduceButton="false" |
|
|
|
:isShowFooterButtton="true" |
|
|
|
:isShowReduceButtonSelection="true" |
|
|
|
@handleDeleteTable="handleDeleteTableBom" |
|
|
|
@tableSelectionDelete="tableSelectionDeleteBom" |
|
|
|
:Butttondata="ButttondataBom" |
|
|
|
@searchTableSuccess="searchTableBomSuccess" |
|
|
|
:footButttondata="footButttondata" |
|
|
|
@footButtonClick="buttonBaseClickBom" |
|
|
|
@inputNumberChange="inputNumberChange" |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
@ -283,6 +285,7 @@ const buttonOperationClick = async (row, label, index,isSave = false)=> { |
|
|
|
item.qty = item.bomQty * row.qty |
|
|
|
// } |
|
|
|
const obj = await banchBomPage(row.fromLocationCode, item) |
|
|
|
console.log('obj',obj) |
|
|
|
item.batch = obj.batch |
|
|
|
}) |
|
|
|
if(isSave){ |
|
|
@ -291,6 +294,18 @@ const buttonOperationClick = async (row, label, index,isSave = false)=> { |
|
|
|
detailBomRef.value.open('create', row, null,'viewDetail')//查看明细数据 |
|
|
|
} |
|
|
|
} |
|
|
|
// 删除明细 |
|
|
|
const handleDeleteTableBom = (item, index) => { |
|
|
|
let itemIndex = detatableDataBom.tableList.indexOf(item) |
|
|
|
if (itemIndex > -1) { |
|
|
|
detatableDataBom.tableList.splice(itemIndex, 1) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
const tableSelectionDeleteBom = (selection) => { |
|
|
|
detatableDataBom.tableList = detatableDataBom.tableList.filter(item => !selection.includes(item)) |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 查询页面返回 |
|
|
|
const searchTableBomSuccess = (formField, searchField, val, formRef, type, row ) => { |
|
|
|