salesmanQuotation.js
1.69 KB
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
import request from '@/utils/request'
import { ContentTypeEnum } from '@/utils/httpEnum'
export function salesmanQuotationQueryApi(params) {
return request({
url: '/procurement/salesmanQuotation/query',
method: 'get',
params
})
}
// 生成编号
export function salesmanQuotationGenerateCodeApi() {
return request({
url: '/procurement/salesmanQuotation/generateCode',
method: 'get'
})
}
// 新增保存
export function salesmanQuotationSaveApi(data) {
return request({
url: '/procurement/salesmanQuotation',
method: 'post',
data,
contentType: ContentTypeEnum.JSON
})
}
// 详情
export function salesmanQuotationDetailApi(params) {
return request({
url: '/procurement/salesmanQuotation',
method: 'get',
params
})
}
// 审核详情
export function salesmanQuotationGetExamineByIdApi(id) {
return request({
url: '/procurement/salesmanQuotation/getExamineById',
method: 'get',
params: { id }
})
}
// 编辑
export function salesmanQuotationUpdateApi(data) {
return request({
url: '/procurement/salesmanQuotation',
method: 'put',
data,
contentType: ContentTypeEnum.JSON
})
}
// 品种关系查询
export function breedRelationshipQueryApi(params) {
return request({
url: '/baseData/breedRelationship/query',
method: 'get',
params
})
}
// 取消
export function salesmanQuotationCancelApi(params) {
return request({
url: '/procurement/salesmanQuotation/cancel',
method: 'post',
params
})
}
// 生成计划
export function salesmanQuotationCreatePlanApi(params) {
return request({
url: '/procurement/salesmanQuotation/createPlan?id=' + params.id,
method: 'post',
params
})
}