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.
83 lines
2.9 KiB
83 lines
2.9 KiB
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 })
|
|
}
|
|
|
|
// 导出设备制造商 Excel
|
|
export const exportCustomerSaleInvoiceMain = async (params) => {
|
|
if (params.isSearch) {
|
|
const data = { ...params }
|
|
return await request.downloadPost({ url: `/wms/customer-sale-invoice-main/export-excel-senior`, data })
|
|
} else {
|
|
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' })
|
|
}
|
|
|
|
// 查询客户销售开票记录列表
|
|
export const getCustomerSaleInvoiceRecodeMainPage = 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-record-main/page`, params })
|
|
}
|
|
}
|
|
// 销售开票申请 发布功能
|
|
export const publish = async (id: number) => {
|
|
return await request.get({ url: `/wms/customer-sale-invoice-main/publish?id=` + id})
|
|
}
|
|
|
|
// 销售开票申请 作废功能
|
|
export const nodeAbrogate = async (id: number) => {
|
|
return await request.get({ url: `/wms/customer-sale-invoice-main/nodeAbrogate?id=` + id})
|
|
}
|
|
|