Browse Source

装配收货记录--操作列添加“生成采购上架申请”按钮

hella_online_20240904
wangyufei 2 months ago
parent
commit
160c6d930f
  1. 15
      src/views/wms/productionManage/productreceipt/productreceiptRecordMain/index.vue

15
src/views/wms/productionManage/productreceipt/productreceiptRecordMain/index.vue

@ -202,6 +202,7 @@ const butttondata = (row,$index) => {
return [
// defaultButtons.mainInspectRequestBtn({hasPermi:'wms:productreceipt-record-main:createInspectRequest',hide:row.inspectRequestFlag == "FALSE" }),//
defaultButtons.mainInspectRequestBtn({hide:row.inspectRequestFlag == "FALSE" }),//
defaultButtons.mainPutawayRequestCpBtn({hasPermi:'wms:purchasereceipt-record-main:createPutawayRequest',hide:row.putawayRequestFlag == "FALSE" }),//
defaultButtons.mainListPointBtn(null), //
defaultButtons.mainListRecoveryBtn({hide:row.recoveryRequestFlag == "TRUE" }), // //recoveryRequestFlag==TRUE
]
@ -211,6 +212,8 @@ const butttondata = (row,$index) => {
const buttonTableClick = async (val, row) => {
if(val == 'inspectRequest'){//
handleCreateInspectRequest(row.number)
}else if (val == 'putawayRequest') { //
handleCreatePutawayRequest(row.number)
} else if (val == 'point') { //
labelPrint(row)
} else if (val == 'recovery') { //
@ -218,6 +221,18 @@ const buttonTableClick = async (val, row) => {
}
}
/** 生成采购上架申请按钮操作 */
const handleCreatePutawayRequest = async (number:string) => {
try{
await message.confirm(t('ts.确认生成上架申请吗?'))
tableObject.loading = true
await ProductreceiptRecordMainApi.createPutawayRequest(number)
message.success(t('ts.上架申请生成成功'))
buttonBaseClick('refresh',null)
}catch{}finally{
tableObject.loading = false
}
}
const BASE_URL = getJmreportBaseUrl()
//
const searchTableRef = ref()

Loading…
Cancel
Save