Browse Source

任务--承接功能

master_hella_20240701
wangyufei 5 months ago
parent
commit
fea724564a
  1. 8
      src/api/wms/countJobMain/index.ts
  2. 2
      src/views/wms/countManage/count/countJobMain/countJobMain.data.ts
  3. 10
      src/views/wms/countManage/count/countJobMain/index.vue
  4. 6
      src/views/wms/moveManage/inventorymove/inventorymoveJobMain/index.vue

8
src/api/wms/countJobMain/index.ts

@ -91,6 +91,14 @@ export const importTemplate = () => {
export const closeCountJobMain = (id: number) => {
return request.put({ url: '/wms/count-job-main/close?id=' + id })
}
// 承接盘点任务主
export const acceptCountJobMain = (id: number) => {
return request.put({ url: '/wms/count-job-main/accept?id=' + id })
}
// 取消承接盘点任务主
export const abandonCountJobMain = (id: number) => {
return request.put({ url: '/wms/count-job-main/abandon?id=' + id })
}
// 关闭盘点任务主
export const handleExportCountJob = async (id: number) => {

2
src/views/wms/countManage/count/countJobMain/countJobMain.data.ts

@ -501,7 +501,7 @@ export const CountJobMain = useCrudSchemas(reactive<CrudSchema[]>([
isDetail: false,
isForm: false,
table: {
width: 180,
width: 220,
fixed: 'right'
},
}

10
src/views/wms/countManage/count/countJobMain/index.vue

@ -194,7 +194,7 @@ const isShowMainButton = (row,val) => {
const butttondata = (row,$index) => {
return [
// defaultButtons.mainListJobAccBtn({hide:isShowMainButton(row,['1'])}), //
defaultButtons.mainListJobAccBtn({hide:isShowMainButton(row,['1'])}), //
defaultButtons.mainListJobCloBtn({hide:isShowMainButton(row,['1','2']),hasPermi:'wms:count-job-main:close'}), //
{
label: '导出',
@ -213,8 +213,8 @@ const butttondata = (row,$index) => {
color: '',
link: true, //
hasPermi: '' // wms:count-job-main:importCountJob
}
// defaultButtons.mainListJobAbaBtn({hide:isShowMainButton(row,['2'])}), //
},
defaultButtons.mainListJobAbaBtn({hide:isShowMainButton(row,['2'])}), //
// defaultButtons.mainListJobExeBtn({hide:isShowMainButton(row,['2'])}), //
]
}
@ -225,9 +225,13 @@ const buttonTableClick = async (val, row) => {
console.log('列表-操作按钮事件-执行')
} else if (val == 'mainJobAba') { //
console.log('列表-操作按钮事件-放弃')
await CountJobMainApi.abandonCountJobMain(row.id)
await getList()
} else if (val == 'mainJobClo') { //
handleClose(row.id)
} else if (val == 'mainJobAcc') { //
await CountJobMainApi.acceptCountJobMain(row.id)
await getList()
console.log('列表-操作按钮事件-承接')
} else if (val == 'exportCountJob'){//
handleExportCountJob(row.id,row.number)

6
src/views/wms/moveManage/inventorymove/inventorymoveJobMain/index.vue

@ -238,9 +238,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'])}), //
]
}

Loading…
Cancel
Save