|
@ -131,14 +131,31 @@ const buttonBaseClick = (val, item) => { |
|
|
// 列表-操作按钮 |
|
|
// 列表-操作按钮 |
|
|
const butttondata = (row) => { |
|
|
const butttondata = (row) => { |
|
|
return [ |
|
|
return [ |
|
|
defaultButtons.mainPutawayRequestBtn({hasPermi:'wms:inspectRecordMain:putawayRequest'}), // 生成采购上架申请 |
|
|
defaultButtons.mainPutawayRequestBtn({hasPermi:'wms:inspectRecordMain:putawayRequest',hide:!row.putawayRequestFlag}), // 生成采购上架申请 |
|
|
] |
|
|
] |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 列表-操作按钮事件 |
|
|
// 列表-操作按钮事件 |
|
|
const buttonTableClick = async (val, row) => { |
|
|
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 |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
/** 详情操作 */ |
|
|
/** 详情操作 */ |
|
|
const detailRef = ref() |
|
|
const detailRef = ref() |
|
|
const openDetail = (row: any, titleName: any, titleValue: any) => { |
|
|
const openDetail = (row: any, titleName: any, titleValue: any) => { |
|
|