Browse Source

承接报废出库任务

master_hella_20240701
wangyufei 5 months ago
parent
commit
dcc162f4da
  1. 6
      src/api/wms/scrapJobMain/index.ts
  2. 6
      src/views/wms/inventoryjobManage/scrap/scrapJobMain/index.vue

6
src/api/wms/scrapJobMain/index.ts

@ -69,15 +69,15 @@ export const deleteScrapJobMain = async (id: number) => {
}
// 承接报废出库任务主
export const acceptScrapJobMain = async (id: number) => {
return await request.delete({ url: `/wms/scrap-job-main/accept?id=` + id })
return await request.put({ url: `/wms/scrap-job-main/accept?id=` + id })
}
// 取消承接报废出库任务主
export const abandonScrapJobMain = async (id: number) => {
return await request.delete({ url: `/wms/scrap-job-main/abandon?id=` + id })
return await request.put({ url: `/wms/scrap-job-main/abandon?id=` + id })
}
// 关闭报废出库任务主
export const closeScrapJobMain = async (id: number) => {
return await request.delete({ url: `/wms/scrap-job-main/close?id=` + id })
return await request.put({ url: `/wms/scrap-job-main/close?id=` + id })
}
// 导出报废出库任务主 Excel

6
src/views/wms/inventoryjobManage/scrap/scrapJobMain/index.vue

@ -198,15 +198,15 @@ const buttonTableClick = async (val, row) => {
console.log('列表-操作按钮事件-执行')
} else if (val == 'mainJobAba') { //
console.log('列表-操作按钮事件-放弃')
await ScrapJobMainApi.abandonScrapJobMain(tableObject.params)
await ScrapJobMainApi.abandonScrapJobMain(row.masterId)
getList()
} else if (val == 'mainJobClo') { //
console.log('列表-操作按钮事件-关闭')
await ScrapJobMainApi.closeScrapJobMain(tableObject.params)
await ScrapJobMainApi.closeScrapJobMain(row.masterId)
getList()
} else if (val == 'mainJobAcc') { //
console.log('列表-操作按钮事件-承接')
await ScrapJobMainApi.acceptScrapJobMain(tableObject.params)
await ScrapJobMainApi.acceptScrapJobMain(row.masterId)
getList()
}
}

Loading…
Cancel
Save