import request from "@/common/untils/request.js"
|
import axios from "axios"
|
|
// 获取收款计划
|
export const getCollectionPlanList = async (data) => {
|
return await axios.get(`/api/serviceCollectionPlan/list`, {
|
params: data
|
})
|
}
|
// 添加收款计划
|
export function addCollectionPlan(data) {
|
return request({
|
url: "/api/serviceCollectionPlan/add",
|
method: "post",
|
data
|
})
|
}
|
// 更新收款计划
|
export function updateCollectionPlan(data) {
|
return request({
|
url: "/api/serviceCollectionPlan/update",
|
method: "put",
|
data
|
})
|
}
|
// 删除收款计划
|
export function deleteCollectionPlan(data) {
|
return request({
|
url: "/api/serviceCollectionPlan/delete/" + data.id,
|
method: "delete"
|
})
|
}
|
|
// 获取收款单
|
export const getReceiptList = async (data) => {
|
return await axios.get(`/api/receipt/list`, {
|
params: data
|
})
|
}
|
// 添加收款单
|
export function addReceipt(data) {
|
return request({
|
url: "/api/receipt/add",
|
method: "post",
|
data
|
})
|
}
|
// 更新收款单
|
export function updateReceipt(data) {
|
return request({
|
url: "/api/receipt/update",
|
method: "put",
|
data
|
})
|
}
|
// 删除收款单
|
export function deleteReceipt(data) {
|
return request({
|
url: "/api/receipt/delete/" + data.id,
|
method: "delete"
|
})
|
}
|
|
// 获取销售发票
|
export function getInvoiceList(data) {
|
return request({
|
url: "/api/invoice/list",
|
method: "post",
|
data
|
})
|
}
|
|
// 添加销售发票
|
export function addInvoice(data) {
|
return request({
|
url: "/api/invoice/add",
|
method: "post",
|
data
|
})
|
}
|
// 更新销售发票
|
export function updateInvoice(data) {
|
return request({
|
url: "/api/invoice/update",
|
method: "put",
|
data
|
})
|
}
|
// 删除销售发票
|
export function deleteInvoice(data) {
|
return request({
|
url: "/api/invoice/delete/" + data.id,
|
method: "delete"
|
})
|
}
|
|
// 获取银行账户列表
|
export const getBankAccountList = async (data) => {
|
return await axios.get(`/api/bankAccount/list`, {
|
params: data
|
})
|
}
|
|
// 获取支付方式列表
|
export const getPaymentTypeList = async (data) => {
|
return await axios.get(`/api/paymentType/list`, {
|
params: data
|
})
|
}
|
|
// 获取发票类别列表
|
export const getInvoiceTypeList = async (data) => {
|
return await axios.get(`/api/invoiceType/list`, {
|
params: data
|
})
|
}
|
|
// 票据状态列表
|
export const getInvoiceStatusList = async (data) => {
|
return await axios.get(`/api/invoiceStatus/list`, {
|
params: data
|
})
|
}
|
|
// 物理公司列表
|
export const getCourierCompanyList = async (data) => {
|
return await axios.get(`/api/courierCompany/list`, {
|
params: data
|
})
|
}
|