diff --git a/src/api/wms/balance/index.ts b/src/api/wms/balance/index.ts index 012f7c534..58dc31c42 100644 --- a/src/api/wms/balance/index.ts +++ b/src/api/wms/balance/index.ts @@ -104,7 +104,12 @@ export const deleteBalance = async (id: number) => { // 导出库存余额 Excel export const exportBalance = async (params) => { - return await request.download({ url: `/wms/balance/export-excel`, params }) + if (params.isSearch) { + const data = {...params} + return await request.downloadPost({ url: `/wms/balance/export-excel-senior`, data }) + } else { + return await request.download({ url: `/wms/balance/export-excel`, params }) + } } // 下载用户导入模板 diff --git a/src/api/wms/countJobMain/index.ts b/src/api/wms/countJobMain/index.ts index e2de4e5f8..3d9c2a5e8 100644 --- a/src/api/wms/countJobMain/index.ts +++ b/src/api/wms/countJobMain/index.ts @@ -73,7 +73,13 @@ export const deleteCountJobMain = async (id: number) => { // 导出盘点任务主 Excel export const exportCountJobMain = async (params) => { - return await request.download({ url: `/wms/count-job-main/export-excel`, params }) + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return request.post({ url: '/wms/count-job-main/export-excel-senior', data }) + } else { + return await request.download({ url: `/wms/count-job-main/export-excel`, params }) + } } // 下载用户导入模板 diff --git a/src/api/wms/countPlanMain/index.ts b/src/api/wms/countPlanMain/index.ts index b62d13077..0e3bc85fb 100644 --- a/src/api/wms/countPlanMain/index.ts +++ b/src/api/wms/countPlanMain/index.ts @@ -60,7 +60,13 @@ export const deleteCountPlanMain = async (id: number) => { // 导出盘点计划主 Excel export const exportCountPlanMain = async (params) => { - return await request.download({ url: `/wms/count-plan-main/export-excel`, params }) + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return request.post({ url: '/wms/count-plan-main/export-excel-senior', data }) + } else { + return await request.download({ url: `/wms/count-plan-main/export-excel`, params }) + } } // 下载用户导入模板 diff --git a/src/api/wms/countRecordMain/index.ts b/src/api/wms/countRecordMain/index.ts index e4b43a074..35d2ef3db 100644 --- a/src/api/wms/countRecordMain/index.ts +++ b/src/api/wms/countRecordMain/index.ts @@ -56,7 +56,13 @@ export const deleteCountRecordMain = async (id: number) => { // 导出盘点记录主 Excel export const exportCountRecordMain = async (params) => { - return await request.download({ url: `/wms/count-record-main/export-excel`, params }) + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return request.post({ url: '/wms/count-record-main/export-excel-senior', data }) + } else { + return await request.download({ url: `/wms/count-record-main/export-excel`, params }) + } } // 下载用户导入模板 diff --git a/src/api/wms/countRequestMain/index.ts b/src/api/wms/countRequestMain/index.ts index cf6c52242..b353bf0f9 100644 --- a/src/api/wms/countRequestMain/index.ts +++ b/src/api/wms/countRequestMain/index.ts @@ -55,7 +55,13 @@ export const deleteCountRequestMain = async (id: number) => { // 导出盘点申请主 Excel export const exportCountRequestMain = async (params) => { - return await request.download({ url: `/wms/count-request-main/export-excel`, params }) + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return request.post({ url: '/wms/count-request-main/export-excel-senior', data }) + } else { + return await request.download({ url: `/wms/count-request-main/export-excel`, params }) + } } // 下载用户导入模板 diff --git a/src/api/wms/countadjustRecordMain/index.ts b/src/api/wms/countadjustRecordMain/index.ts index c07af7fe8..02dc4ed60 100644 --- a/src/api/wms/countadjustRecordMain/index.ts +++ b/src/api/wms/countadjustRecordMain/index.ts @@ -54,7 +54,13 @@ export const deleteCountadjustRecordMain = async (id: number) => { // 导出盘点调整记录主 Excel export const exportCountadjustRecordMain = async (params) => { - return await request.download({ url: `/wms/countadjust-record-main/export-excel`, params }) + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return request.post({ url: '/wms/countadjust-record-main/export-excel-senior', data }) + } else { + return await request.download({ url: `/wms/countadjust-record-main/export-excel`, params }) + } } // 下载用户导入模板 diff --git a/src/api/wms/countadjustRequestMain/index.ts b/src/api/wms/countadjustRequestMain/index.ts index 57ae5ee0e..4cc19ee4d 100644 --- a/src/api/wms/countadjustRequestMain/index.ts +++ b/src/api/wms/countadjustRequestMain/index.ts @@ -54,7 +54,13 @@ export const deleteCountadjustRequestMain = async (id: number) => { // 导出盘点调整申请主 Excel export const exportCountadjustRequestMain = async (params) => { - return await request.download({ url: `/wms/countadjust-request-main/export-excel`, params }) + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return request.post({ url: '/wms/countadjust-request-main/export-excel-senior', data }) + } else { + return await request.download({ url: `/wms/countadjust-request-main/export-excel`, params }) + } } // 下载用户导入模板 diff --git a/src/api/wms/demandforecastingMain/index.ts b/src/api/wms/demandforecastingMain/index.ts index 16cda3e7a..38b2e1f9e 100644 --- a/src/api/wms/demandforecastingMain/index.ts +++ b/src/api/wms/demandforecastingMain/index.ts @@ -50,7 +50,13 @@ export const deleteDemandforecastingMain = async (id: number) => { // 导出要货预测主 Excel export const exportDemandforecastingMain = async (params) => { - return await request.download({ url: `/wms/demandforecasting-main/export-excel`, params }) + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return request.post({ url: '/wms/demandforecasting-main/export-excel-senior', data }) + } else { + return await request.download({ url: `/wms/demandforecasting-main/export-excel`, params }) + } } // 下载用户导入模板 diff --git a/src/api/wms/inspectRecordMain/index.ts b/src/api/wms/inspectRecordMain/index.ts index 6f3788867..3de2e0b1f 100644 --- a/src/api/wms/inspectRecordMain/index.ts +++ b/src/api/wms/inspectRecordMain/index.ts @@ -38,6 +38,7 @@ export interface InspectRecordMainVO { available: string sampleQty: number fromAreaTypes: string + putawayRequestFlag: boolean } // 查询检验记录主列表 @@ -85,3 +86,9 @@ export const exportInspectRecordMain = async (params) => { export const importTemplate = () => { return request.download({ url: '/wms/inspect-record-main/get-import-template' }) } + + +// 创建上架申请 +export const createPutAwayRequest = async (number:string) => { + return await request.post({ url: `/wms/inspect-record-main/createPutAwayRequestPC?number=`+number }) +} \ No newline at end of file diff --git a/src/api/wms/purchasereceiptRecordMain/index.ts b/src/api/wms/purchasereceiptRecordMain/index.ts index fb50c380b..9fab97c09 100644 --- a/src/api/wms/purchasereceiptRecordMain/index.ts +++ b/src/api/wms/purchasereceiptRecordMain/index.ts @@ -31,6 +31,10 @@ export interface PurchasereceiptRecordMainVO { fromAreaCodes: string toAreaCodes: string available: string + putawayRequestFlag: boolean + putawayRequestNumber: string + inspectRequestFlag: boolean + inspectRequestNumber: string } // 查询采购收货记录主列表 @@ -77,4 +81,14 @@ export const exportPurchasereceiptRecordMain = async (params) => { // 下载用户导入模板 export const importTemplate = () => { return request.download({ url: '/wms/purchasereceipt-record-main/get-import-template' }) +} + +// 创建上架申请 +export const createPutawayRequest = async (number:string) => { + return await request.post({ url: `/wms/purchasereceipt-record-main/createPutawayRequest?number=`+number }) +} + +// 创建检验申请 +export const createInspectRequest = async (number:string) => { + return await request.post({ url: `/wms/purchasereceipt-record-main/createInspectRequest?number=`+number }) } \ No newline at end of file diff --git a/src/api/wms/supplierUser/index.ts b/src/api/wms/supplierUser/index.ts index bdb7c5b75..a7d284e80 100644 --- a/src/api/wms/supplierUser/index.ts +++ b/src/api/wms/supplierUser/index.ts @@ -45,7 +45,12 @@ export const deleteSupplierUser = async (id: number) => { // 导出供应商用户关联信息 Excel export const exportSupplierUser = async (params) => { - return await request.download({ url: `/wms/supplier-user/export-excel`, params }) + if (params.isSearch) { + const data = {...params} + return await request.downloadPost({ url: `/wms/supplier-user/export-excel-senior`, data }) + } else { + return await request.download({ url: `/wms/supplier-user/export-excel`, params }) + } } // 下载用户导入模板 diff --git a/src/api/wms/supplierdeliverRecordMain/index.ts b/src/api/wms/supplierdeliverRecordMain/index.ts index c205031cc..e67f3b5a6 100644 --- a/src/api/wms/supplierdeliverRecordMain/index.ts +++ b/src/api/wms/supplierdeliverRecordMain/index.ts @@ -31,6 +31,8 @@ export interface SupplierdeliverRecordMainVO { creator: string serialNumber: string available: string + purchasereceiptRequestFlag: boolean + purchasereceiptRequestNumber: string } // 查询供应商发货记录主列表 @@ -77,4 +79,9 @@ export const exportSupplierdeliverRecordMain = async (params) => { // 下载用户导入模板 export const importTemplate = () => { return request.download({ url: '/wms/supplierdeliver-record-main/get-import-template' }) +} + +// 创建采购申请 +export const createPurchasereceiptRequest = async (number:string) => { + return await request.post({ url: `/wms/supplierdeliver-record-main/createPurchasereceiptRequest?number=`+number }) } \ No newline at end of file diff --git a/src/api/wms/workstation/index.ts b/src/api/wms/workstation/index.ts index 40e5dd648..5b0d662a5 100644 --- a/src/api/wms/workstation/index.ts +++ b/src/api/wms/workstation/index.ts @@ -61,7 +61,14 @@ export const importWorkstationTemplate = () => { return request.download({ url: '/wms/workstation/get-import-template' }) } -// 下载用户导入模板 -export const importTemplate = () => { - return request.download({ url: '/wms/workstation/get-import-template' }) -} + +// 根据库区筛选出的库位分页 +export const selectAreaTypeToLocation = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return request.post({ url: '/wms/workstation/pageAreaToLocationSenior', data }) + } else { + return await request.get({ url: `/wms/workstation/pageAreaToLocation`, params }) + } +} \ No newline at end of file diff --git a/src/views/report/goview/index.vue b/src/views/report/goview/index.vue new file mode 100644 index 000000000..1bac28692 --- /dev/null +++ b/src/views/report/goview/index.vue @@ -0,0 +1,10 @@ +