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
| // 销售报价页面接口
| import request from "@/utils/request";
|
| // 分页查询报价单列表
| export function getQuotationList(query) {
| return request({
| url: "/sales/quotation/list",
| method: "get",
| params: query,
| });
| }
|
| // 查询报价单详情
| export function getQuotationDetail(query) {
| return request({
| url: "/sales/quotation/detail",
| method: "get",
| params: query,
| });
| }
|
| // 新增报价单
| export function addQuotation(data) {
| return request({
| url: "/sales/quotation/add",
| method: "post",
| data: data,
| });
| }
|
| // 修改报价单
| export function updateQuotation(data) {
| return request({
| url: "/sales/quotation/update",
| method: "post",
| data: data,
| });
| }
|
| // 删除报价单
| export function deleteQuotation(query) {
| return request({
| url: "/sales/quotation/delete",
| method: "delete",
| data: query,
| });
| }
|
| // 发送报价单
| export function sendQuotation(data) {
| return request({
| url: "/sales/quotation/send",
| method: "post",
| data: data,
| });
| }
|
| // 报价单转订单
| export function convertToOrder(data) {
| return request({
| url: "/sales/quotation/convertToOrder",
| method: "post",
| data: data,
| });
| }
|
| // 查询客户列表
| export function getCustomerList(query) {
| return request({
| url: "/basic/customer/list",
| method: "get",
| params: query,
| });
| }
|
| // 查询产品列表
| export function getProductList(query) {
| return request({
| url: "/basic/product/list",
| method: "get",
| params: query,
| });
| }
|
| // 查询业务员列表
| export function getSalespersonList(query) {
| return request({
| url: "/system/user/salespersonList",
| method: "get",
| params: query,
| });
| }
|
| // 导出报价单
| export function exportQuotation(query) {
| return request({
| url: "/sales/quotation/export",
| method: "get",
| params: query,
| responseType: "blob",
| });
| }
|
| // 打印报价单
| export function printQuotation(query) {
| return request({
| url: "/sales/quotation/print",
| method: "get",
| params: query,
| responseType: "blob",
| });
| }
|
|