|
|
@ -273,9 +273,9 @@ const buttonTableClick = async (val, row) => { |
|
|
|
if (val == 'edit') { |
|
|
|
// 编辑 |
|
|
|
openForm('update', row) |
|
|
|
} else if (val == 'delete') { |
|
|
|
} else if (val == 'mainPlanSub') { |
|
|
|
// 提交审批 |
|
|
|
handleSub(row.id) |
|
|
|
handleSub(row.masterId) |
|
|
|
} |
|
|
|
else if (val == 'delete') { |
|
|
|
// 删除 |
|
|
@ -285,13 +285,13 @@ const buttonTableClick = async (val, row) => { |
|
|
|
|
|
|
|
|
|
|
|
/** 提交审批按钮操作 */ |
|
|
|
const handleSub = async (id: number) => { |
|
|
|
const handleSub = async (masterId: number) => { |
|
|
|
try { |
|
|
|
// 关闭的二次确认 |
|
|
|
await message.confirm(t('ts.是否提交审批所选中数据?')) |
|
|
|
tableObject.loading = true |
|
|
|
// 发起关闭 |
|
|
|
await PurchaseClaimRequestMainApi.subPurchaseClaimRequestMain(id) |
|
|
|
await PurchaseClaimRequestMainApi.subPurchaseClaimRequestMain(masterId) |
|
|
|
message.success(t('ts.提交审批成功!')) |
|
|
|
tableObject.loading = false |
|
|
|
// 刷新列表 |
|
|
|