|
@ -145,10 +145,11 @@ const { tableObject: detatableDataBom, tableMethods: detatableMethodsBom } =useT |
|
|
}) |
|
|
}) |
|
|
const { getList:getDetailListBom } = detatableMethodsBom |
|
|
const { getList:getDetailListBom } = detatableMethodsBom |
|
|
/** bom 列表 表单 按钮 */ |
|
|
/** bom 列表 表单 按钮 */ |
|
|
const ButttondataBom = [ |
|
|
|
|
|
|
|
|
const ButttondataBom = ref([ |
|
|
defaultButtons.formSaveBtn(null), // 保存 |
|
|
defaultButtons.formSaveBtn(null), // 保存 |
|
|
defaultButtons.formCloseBtn(null) // 关闭 |
|
|
defaultButtons.formCloseBtn(null) // 关闭 |
|
|
] |
|
|
]) |
|
|
// bom 列表 表单 按钮 |
|
|
// bom 列表 表单 按钮 |
|
|
const buttonBaseClickBom = (val) => { |
|
|
const buttonBaseClickBom = (val) => { |
|
|
// 保存 |
|
|
// 保存 |
|
@ -433,7 +434,15 @@ const openForm =async (type: string, row?: number) => { |
|
|
|
|
|
|
|
|
/** 详情操作 */ |
|
|
/** 详情操作 */ |
|
|
const detailRef = ref() |
|
|
const detailRef = ref() |
|
|
|
|
|
const mainStatus = ref() |
|
|
const openDetail = (row: any, titleName: any, titleValue: any) => { |
|
|
const openDetail = (row: any, titleName: any, titleValue: any) => { |
|
|
|
|
|
mainStatus.value = row.status; |
|
|
|
|
|
console.log("mainStatus.value:",mainStatus.value) |
|
|
|
|
|
// 弹窗按钮是否展示控制 |
|
|
|
|
|
ButttondataBom.value = [ |
|
|
|
|
|
defaultButtons.formSaveBtn({ hide : mainStatus.value != 1 }), // 保存 |
|
|
|
|
|
defaultButtons.formCloseBtn(null) // 关闭 |
|
|
|
|
|
] |
|
|
lsBomSave.value = false |
|
|
lsBomSave.value = false |
|
|
detailRef.value.openDetail(row, titleName, titleValue) |
|
|
detailRef.value.openDetail(row, titleName, titleValue) |
|
|
} |
|
|
} |
|
@ -550,7 +559,6 @@ const searchFormClick = (searchData) => { |
|
|
|
|
|
|
|
|
// 查看 Bom 按钮回调事件 |
|
|
// 查看 Bom 按钮回调事件 |
|
|
const tableFormButton = async (val , row) => { |
|
|
const tableFormButton = async (val , row) => { |
|
|
console.log("BBBBB",row.id); |
|
|
|
|
|
if (val == 'bom') { // 查看 bom |
|
|
if (val == 'bom') { // 查看 bom |
|
|
bomModelVisible.value = true |
|
|
bomModelVisible.value = true |
|
|
DialogTitle.value = '物品代码【' + row.itemCode + '】——Bom信息' |
|
|
DialogTitle.value = '物品代码【' + row.itemCode + '】——Bom信息' |
|
@ -559,7 +567,6 @@ const tableFormButton = async (val , row) => { |
|
|
bomVersion: row.bomVersion, |
|
|
bomVersion: row.bomVersion, |
|
|
masterId: row.id |
|
|
masterId: row.id |
|
|
} |
|
|
} |
|
|
console.log("AAAAA",row.id); |
|
|
|
|
|
rowId.value = row.id |
|
|
rowId.value = row.id |
|
|
await getDetailListBom() |
|
|
await getDetailListBom() |
|
|
} |
|
|
} |
|
|