|
|
@ -40,26 +40,6 @@ export const getUnplannedissueRequestMainPage = async (params) => { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 查询计划外出库申请主列表
|
|
|
|
export const getUnplannedissueRequestMainPageSpare = async (params) => { |
|
|
|
if (params.isSearch) { |
|
|
|
delete params.isSearch |
|
|
|
const data = {...params} |
|
|
|
const dataTypeCondition = { |
|
|
|
'column':'dataType', |
|
|
|
'action':'==', |
|
|
|
'value':'2' |
|
|
|
} |
|
|
|
data.filters.push(dataTypeCondition) |
|
|
|
return await request.post({ url: '/wms/unplannedissue-request-main/senior', data }) |
|
|
|
} else { |
|
|
|
params.dataType='2' |
|
|
|
return await request.get({ url: `/wms/unplannedissue-request-main/page`, params }) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 查询计划外出库申请主详情
|
|
|
|
export const getUnplannedissueRequestMain = async (id: number) => { |
|
|
|
return await request.get({ url: `/wms/unplannedissue-request-main/get?id=` + id }) |
|
|
@ -95,6 +75,8 @@ export const importTemplate = () => { |
|
|
|
return request.download({ url: '/wms/unplannedissue-request-main/get-import-template' }) |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 关闭-计划外出库申请
|
|
|
|
export const closeUnplannedissueRequestMain = async (id) => { |
|
|
|
return await request.put({ url: `/wms/unplannedissue-request-main/close?id=` + id }) |
|
|
@ -124,3 +106,28 @@ export const agreeUnplannedissueRequestMain = async (id) => { |
|
|
|
export const handleUnplannedissueRequestMain = async (id) => { |
|
|
|
return await request.put({ url: `/wms/unplannedissue-request-main/handle?id=` + id }) |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 查询备件领用主列表
|
|
|
|
export const getUnplannedissueRequestMainPageSpare = async (params) => { |
|
|
|
if (params.isSearch) { |
|
|
|
delete params.isSearch |
|
|
|
const data = {...params} |
|
|
|
const dataTypeCondition = { |
|
|
|
'column':'dataType', |
|
|
|
'action':'==', |
|
|
|
'value':'2' |
|
|
|
} |
|
|
|
data.filters.push(dataTypeCondition) |
|
|
|
return await request.post({ url: '/wms/unplannedissue-request-main/senior', data }) |
|
|
|
} else { |
|
|
|
params.dataType='2' |
|
|
|
return await request.get({ url: `/wms/unplannedissue-request-main/page`, params }) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 备件领用下载用户导入模板
|
|
|
|
export const spareImportTemplate = () => { |
|
|
|
return request.download({ url: '/wms/unplannedissue-request-main/get-import-template-spare' }) |
|
|
|
} |
|
|
|