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