diff --git a/src/api/wms/onlinesettlementInfoDetail/index.ts b/src/api/wms/onlinesettlementInfoDetail/index.ts new file mode 100644 index 000000000..d1c8e6ba7 --- /dev/null +++ b/src/api/wms/onlinesettlementInfoDetail/index.ts @@ -0,0 +1,54 @@ +import request from '@/config/axios' + +export interface OnlinesettlementInfoDetailVO { + id: number + number: string + masterId: number + settlementQty: number + settlementRecordNumber: string + settlementBusinessType: string + settlementDatetime: Date + concurrencyStamp: number + remark: string +} + +// 查询上线结算记录信息新子表列表 +export const getOnlinesettlementInfoDetailPage = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/wms/onlinesettlement-info-detail/senior', data }) + } else { + return await request.get({ url: `/wms/onlinesettlement-info-detail/page`, params }) + } +} + +// 查询上线结算记录信息新子表详情 +export const getOnlinesettlementInfoDetail = async (id: number) => { + return await request.get({ url: `/wms/onlinesettlement-info-detail/get?id=` + id }) +} + +// 新增上线结算记录信息新子表 +export const createOnlinesettlementInfoDetail = async (data: OnlinesettlementInfoDetailVO) => { + return await request.post({ url: `/wms/onlinesettlement-info-detail/create`, data }) +} + +// 修改上线结算记录信息新子表 +export const updateOnlinesettlementInfoDetail = async (data: OnlinesettlementInfoDetailVO) => { + return await request.put({ url: `/wms/onlinesettlement-info-detail/update`, data }) +} + +// 删除上线结算记录信息新子表 +export const deleteOnlinesettlementInfoDetail = async (id: number) => { + return await request.delete({ url: `/wms/onlinesettlement-info-detail/delete?id=` + id }) +} + +// 导出上线结算记录信息新子表 Excel +export const exportOnlinesettlementInfoDetail = async (params) => { + return await request.download({ url: `/wms/onlinesettlement-info-detail/export-excel`, params }) +} + +// 下载用户导入模板 +export const importTemplate = () => { + return request.download({ url: '/wms/onlinesettlement-info-detail/get-import-template' }) +} \ No newline at end of file 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 @@ />