destinationFlight.js
2.14 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
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
import request from '@/utils/request'
//目的航班规则接口
// 查询航班列表
export function findFlightNo(query) {
return request({
url: '/destinationFlight/findFlightNo',
method: 'post',
data: query
})
}
// id查询目的航班
export function findByFlightId(id) {
const data = {
id
}
return request({
url: '/destinationFlight/findByFlightId',
method: 'post',
data: data
})
}
//航班号查航班
export function findDestinationFltRuleByActualFlight(actualFlight){
const data = {
actualFlight
}
return request({
url:'/sourceFlight/findDestinationFltRuleByActualFlight',
method:'post',
data:data
})
}
export function updateOrAddFlight(form){
//处理数据
form.typeOfGoods = form.typeOfGoods.join(';');
form.declarationCategory = form.declarationCategory.join(';');
form.serviceCode = form.serviceCode.join(';');
form.subCategory = form.subCategory.join(';');
return request({
url:'/destinationFlight/updateOrAddFlight',
method: 'post',
data:form
})
}
//删除规则
export function delFlightId(id){
const data = {
id
}
return request({
url: '/destinationFlight/delFlightId',
method: 'post',
data: data
})
}
//启用/停止规则
export function enableOrDisable(id, status){
//statsu 1-有效 3-停用
const data = {
id,
status
}
return request({
url: '/destinationFlight/enableOrDisable',
method: 'post',
data: data
})
}
//申报类别
export function cargoTypeData(){
return request({
url: '/destinationFlight/cargoTypeData',
method: 'post'
})
}
//货物类型
export function cargoStatusData(){
return request({
url: '/destinationFlight/cargoStatusData',
method: 'post'
})
}
//ServiceCode
export function serviceCodeData(){
return request({
url: '/destinationFlight/serviceCodeData',
method: 'post'
})
}
//SubCategory
export function subCategoryData(){
return request({
url: '/destinationFlight/subCategoryData',
method: 'post'
})
}
//获取全部字典
export function allDictData(){
return request({
url: '/destinationFlight/allDictData',
method: 'post'
})
}