Browse Source

翻包承接

hella_online_20240829
wangyufei 4 months ago
parent
commit
b841c2fcf4
  1. 9
      src/api/wms/packageoverJobMain/index.ts
  2. 9
      src/views/wms/inventoryjobManage/packageManage/packageoverMain/packageoverJobMain/index.vue

9
src/api/wms/packageoverJobMain/index.ts

@ -64,7 +64,14 @@ export const createPackageoverJobMain = async (data: PackageoverJobMainVO) => {
export const updatePackageoverJobMain = async (data: PackageoverJobMainVO) => {
return await request.put({ url: `/wms/packageover-job-main/update`, data })
}
// 承接翻包任务主
export const acceptPackageoverJobMain = async (id: number) => {
return await request.put({ url: `/wms/packageover-job-main/accept?id=` + id })
}
// 放弃翻包任务主
export const abandonPackageoverJobMain = async (id: number) => {
return await request.put({ url: `/wms/packageover-job-main/abandon?id=` + id })
}
// 删除翻包任务主
export const deletePackageoverJobMain = async (id: number) => {
return await request.delete({ url: `/wms/packageover-job-main/delete?id=` + id })

9
src/views/wms/inventoryjobManage/packageManage/packageoverMain/packageoverJobMain/index.vue

@ -144,8 +144,10 @@ const butttondata = (row,$index) => {
return []
}
return [
defaultButtons.mainListJobAccBtn({hide:isShowMainButton(row,['1'])}), //
// defaultButtons.mainListEditBtn({hasPermi:'wms:packageover-job-main:update'}), //
defaultButtons.mainListCloseBtn({hide:isShowMainButton(row,['1']),hasPermi:'wms:packageover-job-main:close'}), //
defaultButtons.mainListJobAbaBtn({hide:isShowMainButton(row,['2'])}), //
// defaultButtons.mainListDeleteBtn({hasPermi:'wms:packageover-job-main:delete'}), //
]
}
@ -159,6 +161,7 @@ const isShowMainButton = (row, val) => {
}
// -
const buttonTableClick = async (val, row) => {
if (val == 'mainClose') { //
//
await message.confirm('确认要关闭吗?')
@ -169,6 +172,12 @@ const buttonTableClick = async (val, row) => {
openForm('update', row)
} else if (val == 'delete') { //
handleDelete(row.masterId)
} else if (val == 'mainJobAcc') { //
await PackageoverJobMainApi.acceptPackageoverJobMain(row.masterId)
getList()
} else if (val == 'mainJobAba') { //
await PackageoverJobMainApi.abandonPackageoverJobMain(row.masterId)
getList()
}
}

Loading…
Cancel
Save