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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
| // 销售报价页面接口
| 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",
| });
| }
|
| // 下载报价导入模板
| export function downloadQuotationTemplate() {
| return request({
| url: "/sales/quotation/downloadTemplate",
| method: "get",
| responseType: "blob",
| });
| }
|
| // 导入报价单
| export function importQuotation(data) {
| return request({
| url: "/sales/quotation/import",
| method: "post",
| data: data,
| headers: { "Content-Type": "multipart/form-data" },
| });
| }
|
| // 查询导入记录列表
| export function getImportLogList(query) {
| return request({
| url: "/sales/quotation/importLog/list",
| method: "get",
| params: query,
| });
| }
|
| // 查询降价历史记录
| export function getPriceHistoryList(query) {
| return request({
| url: "/sales/quotation/priceHistory/list",
| method: "get",
| params: query,
| });
| }
|
|