|
|
|
import request from '@/config/axios'
|
|
|
|
|
|
|
|
export interface CustomerStatementMainVO {
|
|
|
|
id: number
|
|
|
|
number: string
|
|
|
|
customerCode: string
|
|
|
|
customerName: string
|
|
|
|
yearsMonth: Date
|
|
|
|
status: string
|
|
|
|
comparisonTime: Date
|
|
|
|
publishTime: Date
|
|
|
|
shareTime: Date
|
|
|
|
beInvoicedTime: Date
|
|
|
|
invoicedTime: Date
|
|
|
|
issuedInvoicedTime: Date
|
|
|
|
abrogateTime: Date
|
|
|
|
versionNumber: string
|
|
|
|
remark: string
|
|
|
|
available: string
|
|
|
|
siteId: string
|
|
|
|
concurrencyStamp: string
|
|
|
|
}
|
|
|
|
|
|
|
|
// 查询客户对账单主信息表(WMS)列表
|
|
|
|
export const getCustomerStatementMainPage = async (params) => {
|
|
|
|
if (params.isSearch) {
|
|
|
|
delete params.isSearch
|
|
|
|
const data = {...params}
|
|
|
|
return await request.post({ url: '/wms/customer-statement-main/senior', data })
|
|
|
|
} else {
|
|
|
|
return await request.get({ url: `/wms/customer-statement-main/page`, params })
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// 查询客户对账单主信息表(WMS)详情
|
|
|
|
export const getCustomerStatementMain = async (id: number) => {
|
|
|
|
return await request.get({ url: `/wms/customer-statement-main/get?id=` + id })
|
|
|
|
}
|
|
|
|
|
|
|
|
// 新增客户对账单主信息表(WMS)
|
|
|
|
export const createCustomerStatementMain = async (data: CustomerStatementMainVO) => {
|
|
|
|
return await request.post({ url: `/wms/customer-statement-main/create`, data })
|
|
|
|
}
|
|
|
|
|
|
|
|
// 修改客户对账单主信息表(WMS)
|
|
|
|
export const updateCustomerStatementMain = async (data: CustomerStatementMainVO) => {
|
|
|
|
return await request.put({ url: `/wms/customer-statement-main/update`, data })
|
|
|
|
}
|
|
|
|
|
|
|
|
// 删除客户对账单主信息表(WMS)
|
|
|
|
export const deleteCustomerStatementMain = async (id: number) => {
|
|
|
|
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 = () => {
|
|
|
|
return request.download({ url: '/wms/customer-statement-main/get-import-template' })
|
|
|
|
}
|
|
|
|
|
|
|
|
// 导入客户对账单前校验是否有相同客户代码和年月的数据存在
|
|
|
|
export const verifyDataExist = async (yearsMonthStr: String,customerCode:String) => {
|
|
|
|
return await request.get({ url: `/wms/customer-statement-main/verifyDataExist?yearsMonthStr=` + yearsMonthStr+'&customerCode='+customerCode })
|
|
|
|
}
|