songshankun
2023-10-12 3e241e58d4379f9b008db5ee3230214f0e642571
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
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
  })
}