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' }) }