Browse Source

盘点任务,完成功能

hella_online_20240829
wangyufei 4 months ago
parent
commit
58cd59c3a2
  1. 6
      src/api/wms/countJobMain/index.ts
  2. 2
      src/views/wms/countManage/count/countJobMain/countJobMain.data.ts
  3. 24
      src/views/wms/countManage/count/countJobMain/index.vue

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

@ -91,6 +91,12 @@ export const importTemplate = () => {
export const closeCountJobMain = (id: number) => {
return request.put({ url: '/wms/count-job-main/close?id=' + id })
}
// 完成盘点任务主
export const doneCountJobMain = (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 })

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

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

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

@ -215,6 +215,15 @@ const butttondata = (row,$index) => {
hasPermi: '' // wms:count-job-main:importCountJob
},
defaultButtons.mainListJobAbaBtn({hide:isShowMainButton(row,['2'])}), //
{
label: '完成',
name: 'done',
hide: isShowMainButton(row,[]),
type: 'success',
color: '',
link: true, //
hasPermi: '' // wms:count-job-main:importCountJob
},
// defaultButtons.mainListJobExeBtn({hide:isShowMainButton(row,['2'])}), //
]
}
@ -237,7 +246,10 @@ const buttonTableClick = async (val, row) => {
handleExportCountJob(row.id,row.number)
} else if( val == 'importCountJob'){ //
handleImport(row.id)
} else if( val == 'done'){ //
handleDone(row.id)
}
}
/** 关闭按钮操作 */
@ -249,6 +261,18 @@ const handleClose = async (id: number) => {
await getList()
} catch {}
}
//
const handleDone = async (id: number) => {
try {
await message.confirm('确认完成吗?')
await CountJobMainApi.doneCountJobMain(id)
await getList()
} catch {
}
}
//
const { wsCache } = useCache()
/** 详情操作 */

Loading…
Cancel
Save