47 lines
1.6 KiB
TypeScript
47 lines
1.6 KiB
TypeScript
import request from '@/config/axios'
|
|
|
|
// 票据模版产品关联 VO
|
|
export interface BillTemplateProductVO {
|
|
id: number // 主键
|
|
billTemplateId: number // 票据模版ID
|
|
productId: number // 产品ID
|
|
productInvoice: number // 产品票据
|
|
productInvoiceItems: number // 产品开票项目
|
|
serviceFeeInvoice: number // 服务费票据
|
|
serviceFeeInvoiceItems: number // 服务费开票项目
|
|
status: number // 状态
|
|
}
|
|
|
|
// 票据模版产品关联 API
|
|
export const BillTemplateProductApi = {
|
|
// 查询票据模版产品关联分页
|
|
getBillTemplateProductPage: async (params: any) => {
|
|
return await request.get({ url: `/crm/bill-template-product/page`, params })
|
|
},
|
|
|
|
// 查询票据模版产品关联详情
|
|
getBillTemplateProduct: async (id: number) => {
|
|
return await request.get({ url: `/crm/bill-template-product/get?id=` + id })
|
|
},
|
|
|
|
// 新增票据模版产品关联
|
|
createBillTemplateProduct: async (data: BillTemplateProductVO) => {
|
|
return await request.post({ url: `/crm/bill-template-product/create`, data })
|
|
},
|
|
|
|
// 修改票据模版产品关联
|
|
updateBillTemplateProduct: async (data: BillTemplateProductVO) => {
|
|
return await request.put({ url: `/crm/bill-template-product/update`, data })
|
|
},
|
|
|
|
// 删除票据模版产品关联
|
|
deleteBillTemplateProduct: async (id: number) => {
|
|
return await request.delete({ url: `/crm/bill-template-product/delete?id=` + id })
|
|
},
|
|
|
|
// 导出票据模版产品关联 Excel
|
|
exportBillTemplateProduct: async (params) => {
|
|
return await request.download({ url: `/crm/bill-template-product/export-excel`, params })
|
|
},
|
|
}
|