diff --git a/src/api/wms/relegateRequest/index.ts b/src/api/wms/relegateRequestDetail/index.ts similarity index 50% rename from src/api/wms/relegateRequest/index.ts rename to src/api/wms/relegateRequestDetail/index.ts index a26e8c360..98aa10e73 100644 --- a/src/api/wms/relegateRequest/index.ts +++ b/src/api/wms/relegateRequestDetail/index.ts @@ -1,6 +1,6 @@ import request from '@/config/axios' -export interface RelegateRequestVO { +export interface RelegateRequestDetailVO { id: number itemCode: string downItemCode: string @@ -32,39 +32,39 @@ export interface RelegateRequestVO { } // 查询物料降级信息列表 -export const getRelegateRequestPage = async (params) => { +export const getRelegateRequestDetailPage = async (params) => { if (params.isSearch) { delete params.isSearch const data = {...params} - return await request.post({ url: '/wms/relegate-request/senior', data }) + return await request.post({ url: '/wms/relegate-request-detail/senior', data }) } else { - return await request.get({ url: `/wms/relegate-request/page`, params }) + return await request.get({ url: `/wms/relegate-request-detail/page`, params }) } } // 查询物料降级信息详情 -export const getRelegateRequest = async (id: number) => { - return await request.get({ url: `/wms/relegate-request/get?id=` + id }) +export const getRelegateRequestDetail = async (id: number) => { + return await request.get({ url: `/wms/relegate-request-detail/get?id=` + id }) } // 新增物料降级信息 -export const createRelegateRequest = async (data: RelegateRequestVO) => { - return await request.post({ url: `/wms/relegate-request/create`, data }) +export const createRelegateRequestDetail = async (data: RelegateRequestDetailVO) => { + return await request.post({ url: `/wms/relegate-request-detail/create`, data }) } // 修改物料降级信息 -export const updateRelegateRequest = async (data: RelegateRequestVO) => { - return await request.put({ url: `/wms/relegate-request/update`, data }) +export const updateRelegateRequestDetail = async (data: RelegateRequestDetailVO) => { + return await request.put({ url: `/wms/relegate-request-detail/update`, data }) } // 删除物料降级信息 -export const deleteRelegateRequest = async (id: number) => { - return await request.delete({ url: `/wms/relegate-request/delete?id=` + id }) +export const deleteRelegateRequestDetail = async (id: number) => { + return await request.delete({ url: `/wms/relegate-request-detail/delete?id=` + id }) } // 导出物料降级信息 Excel -export const exportRelegateRequest = async (params) => { - return await request.download({ url: `/wms/relegate-request/export-excel`, params }) +export const exportRelegateRequestDetail = async (params) => { + return await request.download({ url: `/wms/relegate-request-detail/export-excel`, params }) } // 下载用户导入模板 diff --git a/src/api/wms/relegateRequestMain/index.ts b/src/api/wms/relegateRequestMain/index.ts new file mode 100644 index 000000000..1b3ca3018 --- /dev/null +++ b/src/api/wms/relegateRequestMain/index.ts @@ -0,0 +1,68 @@ +import request from '@/config/axios' + +export interface RelegateRequestMainVO { + id: number + fromWarehouseCode: string + number: string + businessType: string + remark: string + extraProperties: string + siteId: string + requestTime: Date + dueTime: Date + departmentCode: string + status: string + autoCommit: string + autoAgree: string + autoExecute: string + directCreateRecord: string + concurrencyStamp: number + ruleUserId: number + fromAreaTypes: string + fromAreaCodes: string + serialNumber: string + inInventoryStatuses: string + outInventoryStatuses: string + reason: string +} + +// 查询物料降级申请主列表 +export const getRelegateRequestMainPage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/wms/relegate-request-main/senior', data }) + } else { + return await request.get({ url: `/wms/relegate-request-main/page`, params }) + } +} + +// 查询物料降级申请主详情 +export const getRelegateRequestMain = async (id: number) => { + return await request.get({ url: `/wms/relegate-request-main/get?id=` + id }) +} + +// 新增物料降级申请主 +export const createRelegateRequestMain = async (data: RelegateRequestMainVO) => { + return await request.post({ url: `/wms/relegate-request-main/create`, data }) +} + +// 修改物料降级申请主 +export const updateRelegateRequestMain = async (data: RelegateRequestMainVO) => { + return await request.put({ url: `/wms/relegate-request-main/update`, data }) +} + +// 删除物料降级申请主 +export const deleteRelegateRequestMain = async (id: number) => { + return await request.delete({ url: `/wms/relegate-request-main/delete?id=` + id }) +} + +// 导出物料降级申请主 Excel +export const exportRelegateRequestMain = async (params) => { + return await request.download({ url: `/wms/relegate-request-main/export-excel`, params }) +} + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/wms/relegate-request-main/get-import-template' }) +} \ No newline at end of file diff --git a/src/views/system/user/UserForm.vue b/src/views/system/user/UserForm.vue index 60583b826..5a605d49d 100644 --- a/src/views/system/user/UserForm.vue +++ b/src/views/system/user/UserForm.vue @@ -40,8 +40,8 @@ - - + + diff --git a/src/views/wms/basicDataManage/itemManage/relegateRequest/index.vue b/src/views/wms/basicDataManage/itemManage/relegateRequest/index.vue index e60621efe..637efc95c 100644 --- a/src/views/wms/basicDataManage/itemManage/relegateRequest/index.vue +++ b/src/views/wms/basicDataManage/itemManage/relegateRequest/index.vue @@ -1,7 +1,7 @@