|
|
@ -131,12 +131,29 @@ const buttonBaseClick = (val, item) => { |
|
|
|
// 列表-操作按钮 |
|
|
|
const butttondata = (row) => { |
|
|
|
return [ |
|
|
|
defaultButtons.mainPutawayRequestBtn({hasPermi:'wms:inspectRecordMain:putawayRequest'}), // 生成采购上架申请 |
|
|
|
defaultButtons.mainPutawayRequestBtn({hasPermi:'wms:inspectRecordMain:putawayRequest',hide:!row.putawayRequestFlag}), // 生成采购上架申请 |
|
|
|
] |
|
|
|
} |
|
|
|
|
|
|
|
// 列表-操作按钮事件 |
|
|
|
const buttonTableClick = async (val, row) => { |
|
|
|
if (val == 'putawayRequest') { // 生成采购上架申请 |
|
|
|
handlePutawayRequest(row.number) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** 生成采购上架申请按钮操作 */ |
|
|
|
const handlePutawayRequest = async (number:string) => { |
|
|
|
try{ |
|
|
|
await message.confirm(t('确认生成上架申请吗?')) |
|
|
|
tableObject.loading = true |
|
|
|
await InspectRecordMainApi.createPutAwayRequest(number) |
|
|
|
message.success(t('上架申请生成成功')) |
|
|
|
await getList() |
|
|
|
}catch{}finally{ |
|
|
|
tableObject.loading = false |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/** 详情操作 */ |
|
|
|