|
|
@ -92,8 +92,8 @@ |
|
|
|
:isBusiness="true" |
|
|
|
:isShowButton="false" |
|
|
|
:isShowReduceButton="false" |
|
|
|
:isShowFooterButtton="true" |
|
|
|
:isShowReduceButtonSelection="true" |
|
|
|
:isShowFooterButtton="isShowFooterButtton" |
|
|
|
:isShowReduceButtonSelection="isShowReduceButtonSelection" |
|
|
|
@handleDeleteTable="handleDeleteTableBom" |
|
|
|
@tableSelectionDelete="tableSelectionDeleteBom" |
|
|
|
:Butttondata="ButttondataBom" |
|
|
@ -162,8 +162,11 @@ const footButttondata = ref([ |
|
|
|
]) |
|
|
|
// 子包装数据 |
|
|
|
const detailBomRef = ref() |
|
|
|
const isShowFooterButtton = ref(true) |
|
|
|
const isShowReduceButtonSelection = ref(true) |
|
|
|
|
|
|
|
const { tableObject: detatableDataBom, tableMethods: detatableMethodsBom } =useTable({ |
|
|
|
getListApi: BomDismantleApi.getProductscrapBomDismantlePage |
|
|
|
getListApi: BomDismantleApi.getProductscrapBomRecordPage |
|
|
|
}) |
|
|
|
const { getList:getDetailListBom } = detatableMethodsBom |
|
|
|
/** bom 列表 表单 按钮 */ |
|
|
@ -291,6 +294,13 @@ const buttonOperationClick = async (row, label, index,isSave = false)=> { |
|
|
|
if(isSave){ |
|
|
|
buttonBaseClickBom('save') |
|
|
|
}else{ |
|
|
|
isShowFooterButtton.value = true |
|
|
|
isShowReduceButtonSelection.value = true |
|
|
|
ProdcutscrapBomScrap.allSchemas.tableFormColumns.forEach(item=>{ |
|
|
|
if(item.field=='qty'){ |
|
|
|
item.tableForm.disabled = false |
|
|
|
} |
|
|
|
}) |
|
|
|
detailBomRef.value.open('create', row, null,'viewDetail')//查看明细数据 |
|
|
|
} |
|
|
|
} |
|
|
@ -342,6 +352,14 @@ const tableFormButton = async (val , row) => { |
|
|
|
rowId.value = row.masterId |
|
|
|
detailQty.value = row.qty |
|
|
|
await getDetailListBom() |
|
|
|
//详情 |
|
|
|
isShowFooterButtton.value = false |
|
|
|
isShowReduceButtonSelection.value = false |
|
|
|
ProdcutscrapBomScrap.allSchemas.tableFormColumns.forEach(item=>{ |
|
|
|
if(item.field=='qty'){ |
|
|
|
item.tableForm.disabled = true |
|
|
|
} |
|
|
|
}) |
|
|
|
detailBomRef.value.open('create', row, null,'viewDetail')//查看明细数据 |
|
|
|
} |
|
|
|
} |
|
|
|