|
@ -239,7 +239,7 @@ const butttondata = (row, $index) => { |
|
|
} |
|
|
} |
|
|
return [ |
|
|
return [ |
|
|
defaultButtons.mainListPlanSubBtn({ |
|
|
defaultButtons.mainListPlanSubBtn({ |
|
|
hide: isShowMainButton(row, ['0']), |
|
|
hide: isShowMainButton(row, ['1']), |
|
|
hasPermi: `wms:purchaseClaimRequest:sub` |
|
|
hasPermi: `wms:purchaseClaimRequest:sub` |
|
|
}), // 提交审批 |
|
|
}), // 提交审批 |
|
|
defaultButtons.mainListPlanAppBtn({ |
|
|
defaultButtons.mainListPlanAppBtn({ |
|
@ -251,9 +251,12 @@ const butttondata = (row, $index) => { |
|
|
hasPermi: `wms:purchaseClaimRequest:reject` |
|
|
hasPermi: `wms:purchaseClaimRequest:reject` |
|
|
}), // 驳回 |
|
|
}), // 驳回 |
|
|
defaultButtons.mainListEditBtn({ |
|
|
defaultButtons.mainListEditBtn({ |
|
|
hide: isShowMainButton(row, ['0','2']), |
|
|
hide: isShowMainButton(row, ['1']), |
|
|
hasPermi: `wms:purchaseClaimRequest:update` |
|
|
hasPermi: `wms:purchaseClaimRequest:update` |
|
|
}) // 编辑 |
|
|
}), // 编辑 |
|
|
|
|
|
defaultButtons.mainListCloseBtn({hide:isShowMainButton(row,['1','2','3']),hasPhasPermiermi:`wms:purchaseClaimRequest:close`}), // 关闭 |
|
|
|
|
|
|
|
|
|
|
|
defaultButtons.mainListReAddBtn({hide:isShowMainButton(row,['4']),hasPhasPermiermi:`wms:purchaseClaimRequest:reAdd`}), // 重新添加 |
|
|
] |
|
|
] |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -277,7 +280,29 @@ const buttonTableClick = async (val, row) => { |
|
|
else if (val == 'delete') { |
|
|
else if (val == 'delete') { |
|
|
// 删除 |
|
|
// 删除 |
|
|
handleDelete(row.masterId) |
|
|
handleDelete(row.masterId) |
|
|
} |
|
|
}else if (val == 'mainClose') { // 关闭 |
|
|
|
|
|
await message.confirm('确认要关闭吗?') |
|
|
|
|
|
tableObject.loading = true |
|
|
|
|
|
PurchaseClaimRequestMainApi.closePurchaseClaimRequestMain(row.masterId).then(() => { |
|
|
|
|
|
message.success(t('common.updateSuccess')) |
|
|
|
|
|
tableObject.loading = false |
|
|
|
|
|
buttonBaseClick('refresh',null) |
|
|
|
|
|
}).catch(err => { |
|
|
|
|
|
tableObject.loading = false |
|
|
|
|
|
console.log(err) |
|
|
|
|
|
}) |
|
|
|
|
|
} else if (val == 'mainReAdd') { // 重新添加 |
|
|
|
|
|
await message.confirm('确认要重新添加吗?') |
|
|
|
|
|
tableObject.loading = true |
|
|
|
|
|
PurchaseClaimRequestMainApi.reAddPurchaseClaimRequestMain(row.masterId).then(() => { |
|
|
|
|
|
message.success(t('common.updateSuccess')) |
|
|
|
|
|
tableObject.loading = false |
|
|
|
|
|
buttonBaseClick('refresh',null) |
|
|
|
|
|
}).catch(err => { |
|
|
|
|
|
tableObject.loading = false |
|
|
|
|
|
console.log(err) |
|
|
|
|
|
}) |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|