|
@ -52,11 +52,6 @@ export const deleteCustomerStatementMain = async (id: number) => { |
|
|
return await request.delete({ url: `/wms/customer-statement-main/delete?id=` + id }) |
|
|
return await request.delete({ url: `/wms/customer-statement-main/delete?id=` + id }) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 导出客户对账单主信息表(WMS) Excel
|
|
|
|
|
|
export const exportCustomerStatementMain = async (params) => { |
|
|
|
|
|
return await request.download({ url: `/wms/customer-statement-main/export-excel`, params }) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 下载客户对账单导入模板
|
|
|
// 下载客户对账单导入模板
|
|
|
export const importTemplate = () => { |
|
|
export const importTemplate = () => { |
|
|
return request.download({ url: '/wms/customer-statement-main/get-import-template' }) |
|
|
return request.download({ url: '/wms/customer-statement-main/get-import-template' }) |
|
@ -88,11 +83,53 @@ export const sendBack = async (id: number) => { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 导入客户模具分摊对账单前校验该客户对账单下是否存在已分摊的模具分摊对账单如果有提示
|
|
|
// 导入客户模具分摊对账单前校验该客户对账单下是否存在已分摊的模具分摊对账单如果有提示
|
|
|
export const verifyDataExistShare = async (customerId:number) => { |
|
|
export const verifyDataExistShare = async (customerId:number) => {//customerId为客户对账单id
|
|
|
return await request.get({ url: `/wms/customer-tool-apport-statement-detail/verifyDataExist?customerId=` + customerId }) |
|
|
return await request.get({ url: `/wms/customer-tool-apport-statement-detail/verifyDataExist?customerId=` + customerId }) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 下载客户模具分摊对账单导入模板
|
|
|
// 下载客户模具分摊对账单导入模板
|
|
|
export const importShareTemplate = () => { |
|
|
export const importShareTemplate = () => { |
|
|
return request.download({ url: '/wms/customer-tool-apport-statement-detail/get-import-template' }) |
|
|
return request.download({ url: '/wms/customer-tool-apport-statement-detail/get-import-template' }) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 客户对账单点击发布接口
|
|
|
|
|
|
export const publish = async (id: number) => { |
|
|
|
|
|
return await request.get({ url: `/wms/customer-statement-main/publish?id=` + id}) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 根据对账单主id点击确认分摊
|
|
|
|
|
|
export const confirmationShare = async (id: number) => { |
|
|
|
|
|
return await request.get({ url: `/wms/customer-statement-main/confirmationShare?id=` + id}) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 客户对账单查询客户代码
|
|
|
|
|
|
export const getCustomerList = async () => { |
|
|
|
|
|
return await request.get({ url: `/wms/customer-statement-main/confirmationShare`}) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 客户模具分摊对账单修改调整金额
|
|
|
|
|
|
export const updateAdjustmentAmount = async (id:number,masterId:number,amount:number) => { |
|
|
|
|
|
return await request.get({ url: `/wms/customer-statement-main/updateAdjustmentAmount?id=` + id+'&masterId='+masterId+'&amount='+amount}) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 导出客户对账单Excel
|
|
|
|
|
|
export const exportCustomerStatementMain = async (params) => { |
|
|
|
|
|
if (params.isSearch) { |
|
|
|
|
|
const data = {...params} |
|
|
|
|
|
return await request.downloadPost({ url: `/eam/basic-eam-workshop/export-excel-senior`, data }) |
|
|
|
|
|
}else{ |
|
|
|
|
|
return await request.download({ url: `/wms/customer-statement-main/export-excel`, params }) |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 导出客户模具分摊对账单Excel 需要传masterId
|
|
|
|
|
|
export const exportCustomerStatementShareMain = async (params) => { |
|
|
|
|
|
if (params.isSearch) { |
|
|
|
|
|
const data = {...params} |
|
|
|
|
|
return await request.downloadPost({ url: `/wms/customer-tool-apport-statement-detail/export-excel-senior`, data }) |
|
|
|
|
|
}else{ |
|
|
|
|
|
return await request.download({ url: `/wms/customer-tool-apport-statement-detail/export-excel`, params }) |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|