|
|
@ -233,6 +233,7 @@ const butttondata = (row,$index) => { |
|
|
|
} |
|
|
|
return [ |
|
|
|
defaultButtons.mainInspectRequestBtn({hasPermi:'wms:purchasereceipt-record-main:createInspectRequest',hide:row.inspectRequestFlag == "FALSE" }),// 生成到货检验申请 |
|
|
|
defaultButtons.mainPutawayRequestCpBtn({hasPermi:'wms:purchasereceipt-record-main:createPutawayRequest',hide:row.putawayRequestFlag == "FALSE" }),// 生成采购上架申请 |
|
|
|
defaultButtons.mainListPointBtn(null), // 标签打印 |
|
|
|
] |
|
|
|
} |
|
|
@ -243,6 +244,8 @@ const buttonTableClick = async (val, row) => { |
|
|
|
labelPrint(row) |
|
|
|
}else if(val == 'inspectRequest'){//生成到货检验申请 |
|
|
|
handleCreateInspectRequest(row.number) |
|
|
|
}else if (val == 'putawayRequest') { // 生成采购上架申请 |
|
|
|
handleCreatePutawayRequest(row.number) |
|
|
|
} |
|
|
|
} |
|
|
|
/** 生成到货检验申请按钮操作 */ |
|
|
@ -258,6 +261,19 @@ const handleCreateInspectRequest = async (number:string) => { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/** 生成采购上架申请按钮操作 */ |
|
|
|
const handleCreatePutawayRequest = async (number:string) => { |
|
|
|
try{ |
|
|
|
await message.confirm(t('ts.确认生成上架申请吗?')) |
|
|
|
tableObject.loading = true |
|
|
|
await ProductreceiptRecordMainApi.createPutawayRequest(number) |
|
|
|
message.success(t('ts.上架申请生成成功')) |
|
|
|
await getList() |
|
|
|
}catch{}finally{ |
|
|
|
tableObject.loading = false |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
const searchTableRef = ref() |
|
|
|
const labelType = ref('') // 标签类别 采购还是制造等 |
|
|
|
const labelPrint = async (row) => { |
|
|
|