From 3a9c4b6363eb6b6e274fa092588e831f217080b8 Mon Sep 17 00:00:00 2001 From: yufei_wang <2267742828@qq.com> Date: Wed, 19 Feb 2025 14:40:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E7=BA=BF=E7=BB=93=E7=AE=97=E5=BA=93?= =?UTF-8?q?=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/wms/settlementReport/index.ts | 80 +++++ .../SearchTable/src/SearchTable.vue | 18 +- .../settlementReport/index.vue | 279 ++++++++++++++++++ .../settlementReport/settlementReport.data.ts | 186 ++++++++++++ 4 files changed, 559 insertions(+), 4 deletions(-) create mode 100644 src/api/wms/settlementReport/index.ts create mode 100644 src/views/wms/issueManage/onlinesettlement/settlementReport/index.vue create mode 100644 src/views/wms/issueManage/onlinesettlement/settlementReport/settlementReport.data.ts diff --git a/src/api/wms/settlementReport/index.ts b/src/api/wms/settlementReport/index.ts new file mode 100644 index 000000000..814df0978 --- /dev/null +++ b/src/api/wms/settlementReport/index.ts @@ -0,0 +1,80 @@ +import request from '@/config/axios' + +export interface SettlementConfigurationVO { + id: number + supplierCode: string + itemCode: string + fromWarehouseCode: string + toWarehouseCode: string + remark: string + concurrencyStamp: number +} + +// 查询上线结算配置列表 +export const getSettlementReportPage = async (params) => { + // if (params.isSearch) { + // delete params.isSearch + // const data = {...params} + // return await request.post({ url: '/wms/onlinesettlement-info/settlementInfoReport/senior', data }) + // } else { + return await request.get({ url: `/wms/onlinesettlement-info/settlementInfoReport`, params }) + // } +} + + +// 查询上线结算配置列表 +export const getSettlementReportBalance = async (params) => { + // if (params.isSearch) { + // delete params.isSearch + // const data = {...params} + // return await request.post({ url: '/wms/onlinesettlement-info/settlementInfoReport/senior', data }) + // } else { + return await request.get({ url: `/wms/onlinesettlement-info/settlementInfoReportBalance`, params }) + // } +} + + +// 批量结算 +export const submitSettlementReport = async (data) => { + // if (params.isSearch) { + // delete params.isSearch + // const data = {...params} + // return await request.post({ url: '/wms/onlinesettlement-info/settlementInfoReport/senior', data }) + // } else { + return await request.post({ url: `/wms/onlinesettlement-info/settlementInfoSubmit`, data }) + // } +} + +// // 查询上线结算配置详情 +// export const getSettlementConfiguration = async (id: number) => { +// return await request.get({ url: `/wms/settlement-configuration/get?id=` + id }) +// } + +// export const editSettlementConfiguration = async (id: number) => { +// return await request.get({ url: `/wms/settlement-configuration/editView?id=` + id }) +// } + +// // 新增上线结算配置 +// export const createSettlementConfiguration = async (data: SettlementConfigurationVO) => { +// return await request.post({ url: `/wms/settlement-configuration/create`, data }) +// } + +// // 修改上线结算配置 +// export const updateSettlementConfiguration = async (data: SettlementConfigurationVO) => { +// return await request.put({ url: `/wms/settlement-configuration/update`, data }) +// } + +// // 删除上线结算配置 +// export const deleteSettlementConfiguration = async (id: number) => { +// return await request.delete({ url: `/wms/settlement-configuration/delete?id=` + id }) +// } + +// // 导出上线结算配置 Excel +// export const exportSettlementConfiguration = async (params) => { +// return await request.download({ url: `/wms/settlement-configuration/export-excel`, params }) +// } + +// // 下载用户导入模板 +// export const importTemplate = () => { +// return request.download({ url: '/wms/settlement-configuration/get-import-template' }) +// } \ No newline at end of file diff --git a/src/components/SearchTable/src/SearchTable.vue b/src/components/SearchTable/src/SearchTable.vue index 0483631d5..361244e15 100644 --- a/src/components/SearchTable/src/SearchTable.vue +++ b/src/components/SearchTable/src/SearchTable.vue @@ -37,10 +37,11 @@ />