|
|
@ -415,6 +415,7 @@ const handleHandle = async (id: number) => { |
|
|
|
const formRef = ref() |
|
|
|
const openForm =async (type: string, row?: number) => { |
|
|
|
tableData.value = [] // 重置明细数据 |
|
|
|
detatableDataBom.params = []; // 重置Bom请求参数 |
|
|
|
lsBomSave.value = true |
|
|
|
formRef.value.open(type, row) |
|
|
|
} |
|
|
@ -470,6 +471,7 @@ const handleAddTable = () => { |
|
|
|
message.warning("请选择车间代码"); |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
tableData.value.push(JSON.parse(JSON.stringify(tableFormKeys))) |
|
|
|
} |
|
|
|
// 删除明细 |
|
|
@ -537,6 +539,7 @@ const searchFormClick = (searchData) => { |
|
|
|
|
|
|
|
// 查看 Bom 按钮回调事件 |
|
|
|
const tableFormButton = async (val , row) => { |
|
|
|
console.log("BBBBB",row.id); |
|
|
|
if (val == 'bom') { // 查看 bom |
|
|
|
bomModelVisible.value = true |
|
|
|
DialogTitle.value = '物品代码【' + row.itemCode + '】——Bom信息' |
|
|
@ -545,6 +548,7 @@ const tableFormButton = async (val , row) => { |
|
|
|
bomVersion: row.bomVersion, |
|
|
|
masterId: row.id |
|
|
|
} |
|
|
|
console.log("AAAAA",row.id); |
|
|
|
rowId.value = row.id |
|
|
|
await getDetailListBom() |
|
|
|
} |
|
|
|