Browse Source

承接,关闭

master_hella_20240701
wangyufei 5 months ago
parent
commit
d9dd944894
  1. 12
      src/api/wms/scrapJobMain/index.ts
  2. 6
      src/api/wms/unplannedissueJobMain/index.ts
  3. 13
      src/api/wms/unplannedreceiptJobMain/index.ts
  4. 12
      src/views/wms/inventoryjobManage/scrap/scrapJobMain/index.vue
  5. 12
      src/views/wms/inventoryjobManage/unplannedissue/unplannedissueJobMain/index.vue
  6. 2
      src/views/wms/inventoryjobManage/unplannedissue/unplannedissueJobMain/unplannedissueJobMain.data.ts
  7. 12
      src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptJobMain/index.vue

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

@ -67,6 +67,18 @@ export const updateScrapJobMain = async (data: ScrapJobMainVO) => {
export const deleteScrapJobMain = async (id: number) => {
return await request.delete({ url: `/wms/scrap-job-main/delete?id=` + id })
}
// 承接报废出库任务主
export const acceptScrapJobMain = async (id: number) => {
return await request.delete({ 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 })
}
// 关闭报废出库任务主
export const closeScrapJobMain = async (id: number) => {
return await request.delete({ url: `/wms/scrap-job-main/close?id=` + id })
}
// 导出报废出库任务主 Excel
export const exportScrapJobMain = async (params) => {

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

@ -69,15 +69,15 @@ export const deleteUnplannedissueJobMain = async (id: number) => {
}
// 承接计划外出库任务主
export const acceptUnplannedissueJobMain = async (id: number) => {
return await request.delete({ url: `/wms/unplannedissue-job-main/accept?id=` + id })
return await request.put({ url: `/wms/unplannedissue-job-main/accept?id=` + id })
}
// 取消承接计划外出库任务主
export const abandonUnplannedissueJobMain = async (id: number) => {
return await request.delete({ url: `/wms/unplannedissue-job-main/abandon?id=` + id })
return await request.put({ url: `/wms/unplannedissue-job-main/abandon?id=` + id })
}
// 关闭计划外出库任务主
export const closeUnplannedissueJobMain = async (id: number) => {
return await request.delete({ url: `/wms/unplannedissue-job-main/close?id=` + id })
return await request.put({ url: `/wms/unplannedissue-job-main/close?id=` + id })
}
// 导出计划外出库任务主 Excel

13
src/api/wms/unplannedreceiptJobMain/index.ts

@ -68,6 +68,19 @@ export const deleteUnplannedreceiptJobMain = async (id: number) => {
return await request.delete({ url: `/wms/unplannedreceipt-job-main/delete?id=` + id })
}
// 承接计划外入库任务主
export const acceptUnplannedreceiptJobMain = async (id: number) => {
return await request.put({ url: `/wms/unplannedreceipt-job-main/accept?id=` + id })
}
// 取消承接计划外入库任务主
export const abandonUnplannedreceiptJobMain = async (id: number) => {
return await request.put({ url: `/wms/unplannedreceipt-job-main/abandon?id=` + id })
}
// 关闭计划外入库任务主
export const closeUnplannedreceiptJobMain = async (id: number) => {
return await request.put({ url: `/wms/unplannedreceipt-job-main/close?id=` + id })
}
// 导出计划外入库任务主 Excel
export const exportUnplannedreceiptJobMain = async (params) => {
if (params.isSearch) {

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

@ -185,9 +185,9 @@ const butttondata = (row,$index) => {
return []
}
return [
// defaultButtons.mainListJobAccBtn({hide:isShowMainButton(row,['1'])}), //
// defaultButtons.mainListJobCloBtn({hide:isShowMainButton(row,['1'])}), //
// defaultButtons.mainListJobAbaBtn({hide:isShowMainButton(row,['2'])}), //
defaultButtons.mainListJobAccBtn({hide:isShowMainButton(row,['1'])}), //
defaultButtons.mainListJobCloBtn({hide:isShowMainButton(row,['1'])}), //
defaultButtons.mainListJobAbaBtn({hide:isShowMainButton(row,['2'])}), //
// defaultButtons.mainListJobExeBtn({hide:isShowMainButton(row,['2'])}), //
]
}
@ -198,10 +198,16 @@ const buttonTableClick = async (val, row) => {
console.log('列表-操作按钮事件-执行')
} else if (val == 'mainJobAba') { //
console.log('列表-操作按钮事件-放弃')
await ScrapJobMainApi.abandonScrapJobMain(tableObject.params)
getList()
} else if (val == 'mainJobClo') { //
console.log('列表-操作按钮事件-关闭')
await ScrapJobMainApi.closeScrapJobMain(tableObject.params)
getList()
} else if (val == 'mainJobAcc') { //
console.log('列表-操作按钮事件-承接')
await ScrapJobMainApi.acceptScrapJobMain(tableObject.params)
getList()
}
}
//

12
src/views/wms/inventoryjobManage/unplannedissue/unplannedissueJobMain/index.vue

@ -185,9 +185,9 @@ const butttondata = (row,$index) => {
return []
}
return [
// defaultButtons.mainListJobAccBtn({hide:isShowMainButton(row,['1'])}), //
// defaultButtons.mainListJobCloBtn({hide:isShowMainButton(row,['1'])}), //
// defaultButtons.mainListJobAbaBtn({hide:isShowMainButton(row,['2'])}), //
defaultButtons.mainListJobAccBtn({hide:isShowMainButton(row,['1'])}), //
defaultButtons.mainListJobCloBtn({hide:isShowMainButton(row,['1'])}), //
defaultButtons.mainListJobAbaBtn({hide:isShowMainButton(row,['2'])}), //
// defaultButtons.mainListJobExeBtn({hide:isShowMainButton(row,['2'])}), //
]
}
@ -198,10 +198,16 @@ const buttonTableClick = async (val, row) => {
console.log('列表-操作按钮事件-执行')
} else if (val == 'mainJobAba') { //
console.log('列表-操作按钮事件-放弃')
await UnplannedissueJobMainApi.abandonUnplannedissueJobMain(row.masterId)
getList()
} else if (val == 'mainJobClo') { //
console.log('列表-操作按钮事件-关闭')
await UnplannedissueJobMainApi.closeUnplannedissueJobMain(row.masterId)
getList()
} else if (val == 'mainJobAcc') { //
console.log('列表-操作按钮事件-承接')
await UnplannedissueJobMainApi.acceptUnplannedissueJobMain(row.masterId)
getList()
}
}
//

2
src/views/wms/inventoryjobManage/unplannedissue/unplannedissueJobMain/unplannedissueJobMain.data.ts

@ -691,7 +691,7 @@ export const UnplannedissueJobMain = useCrudSchemas(reactive<CrudSchema[]>([
isDetail: false,
isForm: false,
table: {
width: 120,
width: 150,
fixed: 'right'
},
}

12
src/views/wms/inventoryjobManage/unplannedreceipt/unplannedreceiptJobMain/index.vue

@ -185,9 +185,9 @@ const butttondata = (row,$index) => {
return []
}
return [
// defaultButtons.mainListJobAccBtn({hide:isShowMainButton(row,['1'])}), //
// defaultButtons.mainListJobCloBtn({hide:isShowMainButton(row,['1'])}), //
// defaultButtons.mainListJobAbaBtn({hide:isShowMainButton(row,['2'])}), //
defaultButtons.mainListJobAccBtn({hide:isShowMainButton(row,['1'])}), //
defaultButtons.mainListJobCloBtn({hide:isShowMainButton(row,['1'])}), //
defaultButtons.mainListJobAbaBtn({hide:isShowMainButton(row,['2'])}), //
// defaultButtons.mainListJobExeBtn({hide:isShowMainButton(row,['2'])}), //
]
}
@ -198,10 +198,16 @@ const buttonTableClick = async (val, row) => {
console.log('列表-操作按钮事件-执行')
} else if (val == 'mainJobAba') { //
console.log('列表-操作按钮事件-放弃')
await UnplannedreceiptJobMainApi.abandonUnplannedreceiptJobMain(row.masterId)
getList()
} else if (val == 'mainJobClo') { //
console.log('列表-操作按钮事件-关闭')
await UnplannedreceiptJobMainApi.closeUnplannedreceiptJobMain(row.masterId)
getList()
} else if (val == 'mainJobAcc') { //
console.log('列表-操作按钮事件-承接')
await UnplannedreceiptJobMainApi.acceptUnplannedreceiptJobMain(row.masterId)
getList()
}
}
//

Loading…
Cancel
Save