You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
63 lines
2.0 KiB
63 lines
2.0 KiB
7 months ago
|
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' })
|
||
|
}
|