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.
59 lines
2.0 KiB
59 lines
2.0 KiB
5 months ago
|
import request from '@/config/axios'
|
||
|
|
||
|
export interface CustomerSaleInvoiceMainVO {
|
||
|
id: number
|
||
|
number: string
|
||
|
customerStatementNumber: string
|
||
|
beforeTaxAmount: number
|
||
|
taxRate: number
|
||
|
taxAmount: number
|
||
|
adTaxAmount: number
|
||
|
goldenTaxInvoiceNumber: string
|
||
|
invoiceTime: Date
|
||
|
status: string
|
||
|
publishTime: Date
|
||
|
abrogateTime: Date
|
||
|
remark: string
|
||
|
available: string
|
||
|
}
|
||
|
|
||
|
// 查询客户销售开票主信息表(WMS)列表
|
||
|
export const getCustomerSaleInvoiceMainPage = async (params) => {
|
||
|
if (params.isSearch) {
|
||
|
delete params.isSearch
|
||
|
const data = {...params}
|
||
|
return await request.post({ url: '/wms/customer-sale-invoice-main/senior', data })
|
||
|
} else {
|
||
|
return await request.get({ url: `/wms/customer-sale-invoice-main/page`, params })
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// 查询客户销售开票主信息表(WMS)详情
|
||
|
export const getCustomerSaleInvoiceMain = async (id: number) => {
|
||
|
return await request.get({ url: `/wms/customer-sale-invoice-main/get?id=` + id })
|
||
|
}
|
||
|
|
||
|
// 新增客户销售开票主信息表(WMS)
|
||
|
export const createCustomerSaleInvoiceMain = async (data: CustomerSaleInvoiceMainVO) => {
|
||
|
return await request.post({ url: `/wms/customer-sale-invoice-main/create`, data })
|
||
|
}
|
||
|
|
||
|
// 修改客户销售开票主信息表(WMS)
|
||
|
export const updateCustomerSaleInvoiceMain = async (data: CustomerSaleInvoiceMainVO) => {
|
||
|
return await request.put({ url: `/wms/customer-sale-invoice-main/update`, data })
|
||
|
}
|
||
|
|
||
|
// 删除客户销售开票主信息表(WMS)
|
||
|
export const deleteCustomerSaleInvoiceMain = async (id: number) => {
|
||
|
return await request.delete({ url: `/wms/customer-sale-invoice-main/delete?id=` + id })
|
||
|
}
|
||
|
|
||
|
// 导出客户销售开票主信息表(WMS) Excel
|
||
|
export const exportCustomerSaleInvoiceMain = async (params) => {
|
||
|
return await request.download({ url: `/wms/customer-sale-invoice-main/export-excel`, params })
|
||
|
}
|
||
|
|
||
|
// 下载用户导入模板
|
||
|
export const importTemplate = () => {
|
||
|
return request.download({ url: '/wms/customer-sale-invoice-main/get-import-template' })
|
||
|
}
|