jinhui.wang

version:0.5.6,bug修复,手动配舱排序增加,查询条件增加,配舱高地价限制增加

...@@ -45,3 +45,11 @@ export function findFltCommonConf(data) { ...@@ -45,3 +45,11 @@ export function findFltCommonConf(data) {
45 45
46 }) 46 })
47 } 47 }
48 +
49 +export function updateStatusBatch(data){
50 + return request({
51 + url: '/FlightPreserveController/updateStatusBatch',
52 + method: 'post',
53 + data: data
54 + })
55 +}
......
1 let ductLabels = { 1 let ductLabels = {
2 "cargoRulesStatus":{ 2 "cargoRulesStatus":{
3 - "1":"动", 3 + "1":"动",
4 - "2":"动" 4 + "2":"动"
5 } 5 }
6 } 6 }
7 7
......
...@@ -30,8 +30,8 @@ ...@@ -30,8 +30,8 @@
30 :fixed="item.fixed" 30 :fixed="item.fixed"
31 :show-overflow-tooltip="showOverflowTooltip" 31 :show-overflow-tooltip="showOverflowTooltip"
32 :sortable="item.sorTable" 32 :sortable="item.sorTable"
33 - header-align="center"
34 :formatter="formatter" 33 :formatter="formatter"
34 + header-align="center"
35 :slotHeader="slotHeader" 35 :slotHeader="slotHeader"
36 :key="index" 36 :key="index"
37 > 37 >
...@@ -188,7 +188,6 @@ export default { ...@@ -188,7 +188,6 @@ export default {
188 this.newHeader = this.headerData; 188 this.newHeader = this.headerData;
189 }, 189 },
190 mounted() { 190 mounted() {
191 -
192 }, 191 },
193 methods: { 192 methods: {
194 nextClick() { 193 nextClick() {
...@@ -218,7 +217,11 @@ export default { ...@@ -218,7 +217,11 @@ export default {
218 this.selectTable.push(this.data[i]); 217 this.selectTable.push(this.data[i]);
219 } 218 }
220 } else if (selection.includes(this.data[row.index])) { 219 } else if (selection.includes(this.data[row.index])) {
221 - for (i = this.start + 1; i <= end; i++) { 220 + if(!selection.includes(this.data[this.start])){
221 + this.$refs.tables.toggleRowSelection(this.data[this.start], true);
222 + this.selectTable.push(this.data[this.start]);
223 + }
224 + for (i = this.start+1; i <= this.start+sum; i++) {
222 this.$refs.tables.toggleRowSelection(this.data[i], true); 225 this.$refs.tables.toggleRowSelection(this.data[i], true);
223 this.selectTable.push(this.data[i]); 226 this.selectTable.push(this.data[i]);
224 } 227 }
...@@ -254,7 +257,9 @@ export default { ...@@ -254,7 +257,9 @@ export default {
254 this.selectTable = [] 257 this.selectTable = []
255 this.$refs.tables.clearSelection() 258 this.$refs.tables.clearSelection()
256 }, 259 },
257 - // itemChange(val) {}, 260 + itemChange(val) {
261 + console.log(val)
262 + },
258 // checkChange(val) { 263 // checkChange(val) {
259 // console.log(val); 264 // console.log(val);
260 // }, 265 // },
......
...@@ -38,11 +38,11 @@ export const constantRoutes = [ ...@@ -38,11 +38,11 @@ export const constantRoutes = [
38 } 38 }
39 ] 39 ]
40 }, 40 },
41 - { 41 + // {
42 - path: '/login', 42 + // path: '/login',
43 - component: (resolve) => require(['@/views/login'], resolve), 43 + // component: (resolve) => require(['@/views/login'], resolve),
44 - hidden: true 44 + // hidden: true
45 - }, 45 + // },
46 { 46 {
47 path: '/404', 47 path: '/404',
48 component: (resolve) => require(['@/views/error/404'], resolve), 48 component: (resolve) => require(['@/views/error/404'], resolve),
...@@ -66,20 +66,20 @@ export const constantRoutes = [ ...@@ -66,20 +66,20 @@ export const constantRoutes = [
66 } 66 }
67 ] 67 ]
68 }, 68 },
69 - { 69 + // {
70 - path: '/user', 70 + // path: '/user',
71 - component: Layout, 71 + // component: Layout,
72 - hidden: true, 72 + // hidden: true,
73 - redirect: 'noredirect', 73 + // redirect: 'noredirect',
74 - children: [ 74 + // children: [
75 - { 75 + // {
76 - path: 'profile', 76 + // path: 'profile',
77 - component: (resolve) => require(['@/views/systemConfig/userConfig/profile/index'], resolve), 77 + // component: (resolve) => require(['@/views/systemConfig/userConfig/profile/index'], resolve),
78 - name: 'Profile', 78 + // name: 'Profile',
79 - meta: { title: '个人中心', icon: 'user' } 79 + // meta: { title: '个人中心', icon: 'user' }
80 - } 80 + // }
81 - ] 81 + // ]
82 - }, 82 + // },
83 { 83 {
84 path: '/', 84 path: '/',
85 component: Layout, 85 component: Layout,
......
...@@ -42,5 +42,5 @@ module.exports = { ...@@ -42,5 +42,5 @@ module.exports = {
42 /** 42 /**
43 * 版本号 43 * 版本号
44 */ 44 */
45 - version:'version:0.5.5.3' 45 + version:'version:0.5.6'
46 } 46 }
......
1 <template> 1 <template>
2 <div class="cargoAllocation"> 2 <div class="cargoAllocation">
3 - <el-form ref="form" v-model="formData" class="form-header" label-position="right" label-width="auto" size="small"> 3 + <el-form
4 + ref="form"
5 + v-model="formData"
6 + v-show="formShow"
7 + class="form-header"
8 + label-position="right"
9 + label-width="auto"
10 + size="small"
11 + >
4 <el-row type="flex" style="flexWrap: wrap !important"> 12 <el-row type="flex" style="flexWrap: wrap !important">
5 <el-col :span="6"> 13 <el-col :span="6">
6 <el-form-item label="ACCS原航班日期"> 14 <el-form-item label="ACCS原航班日期">
...@@ -17,34 +25,25 @@ ...@@ -17,34 +25,25 @@
17 </el-form-item> 25 </el-form-item>
18 </el-col> 26 </el-col>
19 <el-col :span="6"> 27 <el-col :span="6">
20 - <el-form-item label="申报类别"> 28 + <el-form-item label="ACCS原航班号">
21 - <el-select 29 + <el-input
22 - placeholder="不限" 30 + v-model="fltNo"
23 - v-model="formData.typeId" 31 + placeholder="请输入ACCS原航班号"
24 class="formItem" 32 class="formItem"
25 clearable 33 clearable
26 - > 34 + ></el-input>
27 - <el-option
28 - v-for="item in selectData.findConditionData.cargoType"
29 - :label="item.chineseName"
30 - :value="item.id"
31 - :key="item.id"
32 - >
33 - </el-option>
34 - </el-select>
35 </el-form-item> 35 </el-form-item>
36 </el-col> 36 </el-col>
37 - <!-- <el-col :span="6"> 37 + <el-col :span="6">
38 - <el-form-item label="海关回执状态"> 38 + <el-form-item label="货物状态">
39 <el-select 39 <el-select
40 placeholder="不限" 40 placeholder="不限"
41 - v-model="formData.customsReceiptStatusId" 41 + v-model="formData.statusId"
42 class="formItem" 42 class="formItem"
43 - multiple
44 clearable 43 clearable
45 > 44 >
46 <el-option 45 <el-option
47 - v-for="item in selectData.findConditionData.cargoCustomsReturnStatus" 46 + v-for="item in selectData.findConditionData.cargoStatus"
48 :label="item.chineseName" 47 :label="item.chineseName"
49 :value="item.id" 48 :value="item.id"
50 :key="item.id" 49 :key="item.id"
...@@ -52,17 +51,28 @@ ...@@ -52,17 +51,28 @@
52 </el-option> 51 </el-option>
53 </el-select> 52 </el-select>
54 </el-form-item> 53 </el-form-item>
55 - </el-col> --> 54 + </el-col>
56 <el-col :span="6"> 55 <el-col :span="6">
57 - <el-form-item label="货物状态"> 56 + <el-form-item label="运单号">
57 + <el-input
58 + class="formItem"
59 + type="textarea"
60 + placeholder="请输入运单号(回车分割)"
61 + v-model="formData.waybillNo"
62 + rows="1"
63 + ></el-input>
64 + </el-form-item>
65 + </el-col>
66 + <el-col :span="6">
67 + <el-form-item label="申报类别">
58 <el-select 68 <el-select
59 placeholder="不限" 69 placeholder="不限"
60 - v-model="formData.statusId" 70 + v-model="formData.typeId"
61 class="formItem" 71 class="formItem"
62 clearable 72 clearable
63 > 73 >
64 <el-option 74 <el-option
65 - v-for="item in selectData.findConditionData.cargoStatus" 75 + v-for="item in selectData.findConditionData.cargoType"
66 :label="item.chineseName" 76 :label="item.chineseName"
67 :value="item.id" 77 :value="item.id"
68 :key="item.id" 78 :key="item.id"
...@@ -72,18 +82,6 @@ ...@@ -72,18 +82,6 @@
72 </el-form-item> 82 </el-form-item>
73 </el-col> 83 </el-col>
74 <el-col :span="6"> 84 <el-col :span="6">
75 - <el-form-item label="航班类型">
76 - <el-select
77 - placeholder="不限"
78 - v-model="formData.kindToAllocFlightId"
79 - class="formItem"
80 - clearable
81 - >
82 - <el-option v-for="item in selectData.fltTypes" :label="item.chineseName" v-model="item.id" :key="item.id"> </el-option>
83 - </el-select>
84 - </el-form-item>
85 - </el-col>
86 - <el-col :span="6">
87 <el-form-item label="服务类型"> 85 <el-form-item label="服务类型">
88 <el-select 86 <el-select
89 placeholder="不限" 87 placeholder="不限"
...@@ -102,27 +100,6 @@ ...@@ -102,27 +100,6 @@
102 </el-form-item> 100 </el-form-item>
103 </el-col> 101 </el-col>
104 <el-col :span="6"> 102 <el-col :span="6">
105 - <el-form-item label="ACCS原航班号">
106 - <el-input
107 - v-model="fltNo"
108 - placeholder="请输入ACCS原航班号"
109 - class="formItem"
110 - clearable
111 - ></el-input>
112 - </el-form-item>
113 - </el-col>
114 - <el-col :span="6">
115 - <el-form-item label="运单号">
116 - <el-input
117 - class="formItem"
118 - type="textarea"
119 - placeholder="请输入运单号(回车分割)"
120 - v-model="formData.waybillNo"
121 - rows="1"
122 - ></el-input>
123 - </el-form-item>
124 - </el-col>
125 - <el-col :span="6">
126 <el-form-item label="URSA"> 103 <el-form-item label="URSA">
127 <el-input 104 <el-input
128 class="formItem" 105 class="formItem"
...@@ -146,18 +123,70 @@ ...@@ -146,18 +123,70 @@
146 </el-col> 123 </el-col>
147 <el-col :span="6"> 124 <el-col :span="6">
148 <el-form-item label="重量区间"> 125 <el-form-item label="重量区间">
149 - <el-col :span="11"><el-input-number class="formItem" size="mini" v-model="formData.minWeight" :controls="false"></el-input-number></el-col> 126 + <el-col :span="11"
127 + ><el-input-number
128 + class="formItem"
129 + size="mini"
130 + v-model="formData.minWeight"
131 + :controls="false"
132 + :min="0"
133 + :precision="2"
134 + ></el-input-number
135 + ></el-col>
150 <el-col class="line" :span="2">-</el-col> 136 <el-col class="line" :span="2">-</el-col>
151 - <el-col :span="11"><el-input-number class="formItem" size="mini" v-model="formData.maxWeight" :controls="false"></el-input-number></el-col> 137 + <el-col :span="11"
138 + ><el-input-number
139 + class="formItem"
140 + size="mini"
141 + v-model="formData.maxWeight"
142 + :controls="false"
143 + :min="formData.minWeight"
144 + :precision="2"
145 + ></el-input-number
146 + ></el-col>
152 </el-form-item> 147 </el-form-item>
153 </el-col> 148 </el-col>
154 <el-col :span="6"> 149 <el-col :span="6">
155 <el-form-item label="件数区间"> 150 <el-form-item label="件数区间">
156 - <el-col :span="11"><el-input-number class="formItem" size="mini" v-model="formData.minNumber" :controls="false"></el-input-number></el-col> 151 + <el-col :span="11"
152 + ><el-input-number
153 + class="formItem"
154 + size="mini"
155 + v-model="formData.minNumber"
156 + :controls="false"
157 + :min="0"
158 + ></el-input-number
159 + ></el-col>
157 <el-col class="line" :span="2">-</el-col> 160 <el-col class="line" :span="2">-</el-col>
158 - <el-col :span="11"><el-input-number class="formItem" size="mini" v-model="formData.maxNumber" :controls="false"></el-input-number></el-col> 161 + <el-col :span="11"
162 + ><el-input-number
163 + class="formItem"
164 + size="mini"
165 + v-model="formData.maxNumber"
166 + :controls="false"
167 + :min="formData.minNumber"
168 + ></el-input-number
169 + ></el-col>
159 </el-form-item> 170 </el-form-item>
160 </el-col> 171 </el-col>
172 + <!-- <el-col :span="6">
173 + <el-form-item label="航班类型">
174 + <el-select
175 + placeholder="不限"
176 + v-model="formData.kindToAllocFlightId"
177 + class="formItem"
178 + clearable
179 + >
180 + <el-option
181 + v-for="item in selectData.fltTypes"
182 + :label="item.chineseName"
183 + v-model="item.id"
184 + :key="item.id"
185 + >
186 + </el-option>
187 + </el-select>
188 + </el-form-item>
189 + </el-col> -->
161 <el-col :span="6"> 190 <el-col :span="6">
162 <el-form-item label="取件日期"> 191 <el-form-item label="取件日期">
163 <el-date-picker 192 <el-date-picker
...@@ -169,19 +198,65 @@ ...@@ -169,19 +198,65 @@
169 </el-date-picker> 198 </el-date-picker>
170 </el-form-item> 199 </el-form-item>
171 </el-col> 200 </el-col>
201 + <el-col :span="6">
202 + <el-form-item label="口岸代码">
203 + <el-input
204 + v-model="portName"
205 + placeholder="请输入口岸代码"
206 + class="formItem"
207 + clearable
208 + ></el-input>
209 + </el-form-item>
210 + </el-col>
211 + <el-col :span="6">
212 + <el-form-item label="海关回执状态">
213 + <el-select
214 + placeholder="不限"
215 + v-model="formData.customsReceiptStatusId"
216 + class="formItem"
217 + multiple
218 + clearable
219 + >
220 + <el-option
221 + v-for="item in selectData.findConditionData
222 + .cargoCustomsReturnStatus"
223 + :label="item.chineseName"
224 + :value="item.id"
225 + :key="item.id"
226 + >
227 + </el-option>
228 + </el-select>
229 + </el-form-item>
230 + </el-col>
172 <el-col :span="24"> 231 <el-col :span="24">
173 <el-form-item label="Handling Code"> 232 <el-form-item label="Handling Code">
174 - <el-empty description="暂无数据" v-if="selectData.HandlingCode.length == 0"></el-empty> 233 + <el-empty
234 + description="暂无数据"
235 + v-if="!selectData.HandlingCode || selectData.HandlingCode.length == 0"
236 + ></el-empty>
175 <el-checkbox-group v-model="handingCodes" v-else> 237 <el-checkbox-group v-model="handingCodes" v-else>
176 - <el-checkbox v-for="item in selectData.HandlingCode" :label="item.chineseName" v-model="item.englishName" :key="item.id"></el-checkbox> 238 + <el-checkbox
239 + v-for="item in selectData.HandlingCode"
240 + :label="item.chineseName"
241 + v-model="item.englishName"
242 + :key="item.id"
243 + ></el-checkbox>
177 </el-checkbox-group> 244 </el-checkbox-group>
178 </el-form-item> 245 </el-form-item>
179 </el-col> 246 </el-col>
180 <el-col :span="24"> 247 <el-col :span="24">
181 <el-form-item label="Sub Category"> 248 <el-form-item label="Sub Category">
182 - <el-empty description="暂无数据" v-if="selectData.SubCategory.length == 0"></el-empty> 249 + <el-empty
250 + description="暂无数据"
251 + v-if="!selectData.SubCategory || selectData.SubCategory.length == 0"
252 + ></el-empty>
183 <el-checkbox-group v-model="subCategorys" v-else> 253 <el-checkbox-group v-model="subCategorys" v-else>
184 - <el-checkbox v-for="item in selectData.SubCategory" :label="item.chineseName" v-model="item.englishName" :key="item.id"></el-checkbox> 254 + <el-checkbox
255 + v-for="item in selectData.SubCategory"
256 + :label="item.chineseName"
257 + v-model="item.englishName"
258 + :key="item.id"
259 + ></el-checkbox>
185 </el-checkbox-group> 260 </el-checkbox-group>
186 </el-form-item> 261 </el-form-item>
187 </el-col> 262 </el-col>
...@@ -196,20 +271,24 @@ ...@@ -196,20 +271,24 @@
196 >查询</el-button 271 >查询</el-button
197 > 272 >
198 <el-button 273 <el-button
199 - :type="downLoadingTip.downloading?'warning':'primary'" 274 + :type="downLoadingTip.downloading ? 'warning' : 'primary'"
200 size="mini" 275 size="mini"
201 - @click="xlse(0)" 276 + @click="xlsx(0)"
202 :loading="downLoadingTip.downloading" 277 :loading="downLoadingTip.downloading"
203 :disabled="tableData.length <= 0" 278 :disabled="tableData.length <= 0"
204 - >{{downLoadingTip.downloading?downLoadingTip.tip:"导出本页查询结果"}}</el-button 279 + >{{
280 + downLoadingTip.downloading ? downLoadingTip.tip : "导出本页查询结果"
281 + }}</el-button
205 > 282 >
206 <el-button 283 <el-button
207 - :type="downLoadingTip.downloading?'warning':'primary'" 284 + :type="downLoadingTip.downloading ? 'warning' : 'primary'"
208 size="mini" 285 size="mini"
209 - @click="xlse(1)" 286 + @click="xlsx(1)"
210 :loading="downLoadingTip.downloading" 287 :loading="downLoadingTip.downloading"
211 :disabled="tableData.length <= 0" 288 :disabled="tableData.length <= 0"
212 - >{{downLoadingTip.downloading?downLoadingTip.tip:"导出全部查询结果"}}</el-button 289 + >{{
290 + downLoadingTip.downloading ? downLoadingTip.tip : "导出全部查询结果"
291 + }}</el-button
213 > 292 >
214 <el-button 293 <el-button
215 type="primary" 294 type="primary"
...@@ -233,7 +312,7 @@ ...@@ -233,7 +312,7 @@
233 :limitSize="size" 312 :limitSize="size"
234 :limitStart="formData.limitStart" 313 :limitStart="formData.limitStart"
235 :shiftKey="shiftKey" 314 :shiftKey="shiftKey"
236 - height="450" 315 + height="350"
237 @tableSelect="tableSelect" 316 @tableSelect="tableSelect"
238 @tableSelectAll="tableSelectAll" 317 @tableSelectAll="tableSelectAll"
239 @currentChange="currentChange" 318 @currentChange="currentChange"
...@@ -252,7 +331,7 @@ import { findConditionData, findCargoAllocationData } from "@/api/cargoSelect"; ...@@ -252,7 +331,7 @@ import { findConditionData, findCargoAllocationData } from "@/api/cargoSelect";
252 import { allDictData } from "@/api/destinationFlight"; 331 import { allDictData } from "@/api/destinationFlight";
253 import { findFltConditionDataApi } from "@/api/findAllFltData"; 332 import { findFltConditionDataApi } from "@/api/findAllFltData";
254 import { downLoadXlsx } from "@/utils/zipdownload"; 333 import { downLoadXlsx } from "@/utils/zipdownload";
255 -import { upCase } from "@/utils/FedEx" 334 +import { upCase } from "@/utils/FedEx";
256 335
257 export default { 336 export default {
258 components: { 337 components: {
...@@ -261,23 +340,25 @@ export default { ...@@ -261,23 +340,25 @@ export default {
261 data() { 340 data() {
262 return { 341 return {
263 formData: { 342 formData: {
264 - fltDateStart:null, 343 + fltDateStart: null,
265 - fltDateEnd:null, 344 + fltDateEnd: null,
266 - typeId:null, 345 + typeId: null,
267 - statusId:null, 346 + portName:null,
268 - kindToAllocFlightId:null, 347 + statusId: null,
269 - serviceTypeId:null, 348 + kindToAllocFlightId: null,
270 - waybillNo:null, 349 + serviceTypeId: null,
271 - fltNo:null, 350 + waybillNo: null,
272 - ursaList:null, 351 + fltNo: null,
273 - siteNameList:null, 352 + ursaList: null,
274 - minWeight:null, 353 + siteNameList: null,
275 - maxWeight:null, 354 + minWeight: undefined,
276 - minNumber:null, 355 + maxWeight: undefined,
277 - maxNumber:null, 356 + minNumber: undefined,
278 - pickUpDate:null, 357 + maxNumber: undefined,
279 - handingCodes:null, 358 + pickUpDate: null,
280 - subCategorys:null, 359 + handingCodes: null,
360 + subCategorys: null,
361 + customsReceiptStatusId: null,
281 }, //查询数据 362 }, //查询数据
282 tableHeader: [ 363 tableHeader: [
283 { 364 {
...@@ -288,7 +369,7 @@ export default { ...@@ -288,7 +369,7 @@ export default {
288 align: "center", 369 align: "center",
289 sorTable: false, 370 sorTable: false,
290 slot: null, 371 slot: null,
291 - fixed:true, 372 + fixed: true,
292 }, 373 },
293 { 374 {
294 type: "index", 375 type: "index",
...@@ -298,7 +379,7 @@ export default { ...@@ -298,7 +379,7 @@ export default {
298 align: "center", 379 align: "center",
299 sorTable: false, 380 sorTable: false,
300 slot: null, 381 slot: null,
301 - fixed:false, 382 + fixed: false,
302 }, 383 },
303 { 384 {
304 type: "", 385 type: "",
...@@ -306,9 +387,9 @@ export default { ...@@ -306,9 +387,9 @@ export default {
306 value: "portName", 387 value: "portName",
307 width: "150", 388 width: "150",
308 align: "center", 389 align: "center",
309 - sorTable: false, 390 + sorTable: true,
310 slot: null, 391 slot: null,
311 - fixed:false, 392 + fixed: false,
312 }, 393 },
313 { 394 {
314 type: "", 395 type: "",
...@@ -316,9 +397,9 @@ export default { ...@@ -316,9 +397,9 @@ export default {
316 value: "pickUpDate", 397 value: "pickUpDate",
317 width: "150", 398 width: "150",
318 align: "center", 399 align: "center",
319 - sorTable: false, 400 + sorTable: true,
320 slot: null, 401 slot: null,
321 - fixed:false, 402 + fixed: false,
322 }, 403 },
323 { 404 {
324 type: "", 405 type: "",
...@@ -326,9 +407,9 @@ export default { ...@@ -326,9 +407,9 @@ export default {
326 value: "pickUpScanNo", 407 value: "pickUpScanNo",
327 width: "150", 408 width: "150",
328 align: "center", 409 align: "center",
329 - sorTable: false, 410 + sorTable: true,
330 slot: null, 411 slot: null,
331 - fixed:false, 412 + fixed: false,
332 }, 413 },
333 { 414 {
334 type: "", 415 type: "",
...@@ -336,9 +417,9 @@ export default { ...@@ -336,9 +417,9 @@ export default {
336 value: "siteName", 417 value: "siteName",
337 width: "150", 418 width: "150",
338 align: "center", 419 align: "center",
339 - sorTable: false, 420 + sorTable: true,
340 slot: null, 421 slot: null,
341 - fixed:false, 422 + fixed: false,
342 }, 423 },
343 { 424 {
344 type: "", 425 type: "",
...@@ -346,9 +427,9 @@ export default { ...@@ -346,9 +427,9 @@ export default {
346 value: "waybillNo", 427 value: "waybillNo",
347 width: "150", 428 width: "150",
348 align: "center", 429 align: "center",
349 - sorTable: false, 430 + sorTable: true,
350 slot: null, 431 slot: null,
351 - fixed:false, 432 + fixed: false,
352 }, 433 },
353 { 434 {
354 type: "", 435 type: "",
...@@ -356,9 +437,9 @@ export default { ...@@ -356,9 +437,9 @@ export default {
356 value: "totalWaybillNo", 437 value: "totalWaybillNo",
357 width: "150", 438 width: "150",
358 align: "center", 439 align: "center",
359 - sorTable: false, 440 + sorTable: true,
360 slot: null, 441 slot: null,
361 - fixed:false, 442 + fixed: false,
362 }, 443 },
363 { 444 {
364 type: "", 445 type: "",
...@@ -366,9 +447,9 @@ export default { ...@@ -366,9 +447,9 @@ export default {
366 value: "serviceTypeName", 447 value: "serviceTypeName",
367 width: "150", 448 width: "150",
368 align: "center", 449 align: "center",
369 - sorTable: false, 450 + sorTable: true,
370 slot: null, 451 slot: null,
371 - fixed:false, 452 + fixed: false,
372 }, 453 },
373 { 454 {
374 type: "", 455 type: "",
...@@ -376,9 +457,9 @@ export default { ...@@ -376,9 +457,9 @@ export default {
376 value: "ursa", 457 value: "ursa",
377 width: "150", 458 width: "150",
378 align: "center", 459 align: "center",
379 - sorTable: false, 460 + sorTable: true,
380 slot: null, 461 slot: null,
381 - fixed:false, 462 + fixed: false,
382 }, 463 },
383 { 464 {
384 type: "", 465 type: "",
...@@ -386,9 +467,9 @@ export default { ...@@ -386,9 +467,9 @@ export default {
386 value: "typeName", 467 value: "typeName",
387 width: "150", 468 width: "150",
388 align: "center", 469 align: "center",
389 - sorTable: false, 470 + sorTable: true,
390 slot: null, 471 slot: null,
391 - fixed:false, 472 + fixed: false,
392 }, 473 },
393 { 474 {
394 type: "", 475 type: "",
...@@ -396,9 +477,9 @@ export default { ...@@ -396,9 +477,9 @@ export default {
396 value: "handingCode", 477 value: "handingCode",
397 width: "150", 478 width: "150",
398 align: "center", 479 align: "center",
399 - sorTable: false, 480 + sorTable: true,
400 slot: null, 481 slot: null,
401 - fixed:false, 482 + fixed: false,
402 }, 483 },
403 { 484 {
404 type: "", 485 type: "",
...@@ -406,9 +487,9 @@ export default { ...@@ -406,9 +487,9 @@ export default {
406 value: "subCategory", 487 value: "subCategory",
407 width: "150", 488 width: "150",
408 align: "center", 489 align: "center",
409 - sorTable: false, 490 + sorTable: true,
410 slot: null, 491 slot: null,
411 - fixed:false, 492 + fixed: false,
412 }, 493 },
413 { 494 {
414 type: "", 495 type: "",
...@@ -416,9 +497,9 @@ export default { ...@@ -416,9 +497,9 @@ export default {
416 value: "qty", 497 value: "qty",
417 width: "150", 498 width: "150",
418 align: "center", 499 align: "center",
419 - sorTable: false, 500 + sorTable: true,
420 slot: null, 501 slot: null,
421 - fixed:false, 502 + fixed: false,
422 }, 503 },
423 { 504 {
424 type: "", 505 type: "",
...@@ -426,9 +507,9 @@ export default { ...@@ -426,9 +507,9 @@ export default {
426 value: "actualWeight", 507 value: "actualWeight",
427 width: "150", 508 width: "150",
428 align: "center", 509 align: "center",
429 - sorTable: false, 510 + sorTable: true,
430 slot: null, 511 slot: null,
431 - fixed:false, 512 + fixed: false,
432 }, 513 },
433 { 514 {
434 type: "", 515 type: "",
...@@ -436,9 +517,9 @@ export default { ...@@ -436,9 +517,9 @@ export default {
436 value: "consigneeCountry", 517 value: "consigneeCountry",
437 width: "150", 518 width: "150",
438 align: "center", 519 align: "center",
439 - sorTable: false, 520 + sorTable: true,
440 slot: null, 521 slot: null,
441 - fixed:false, 522 + fixed: false,
442 }, 523 },
443 { 524 {
444 type: "", 525 type: "",
...@@ -448,7 +529,7 @@ export default { ...@@ -448,7 +529,7 @@ export default {
448 align: "center", 529 align: "center",
449 sorTable: false, 530 sorTable: false,
450 slot: null, 531 slot: null,
451 - fixed:false, 532 + fixed: false,
452 }, 533 },
453 { 534 {
454 type: "", 535 type: "",
...@@ -456,9 +537,9 @@ export default { ...@@ -456,9 +537,9 @@ export default {
456 value: "customsReceiptStatusName", 537 value: "customsReceiptStatusName",
457 width: "150", 538 width: "150",
458 align: "center", 539 align: "center",
459 - sorTable: false, 540 + sorTable: true,
460 slot: null, 541 slot: null,
461 - fixed:false, 542 + fixed: false,
462 }, 543 },
463 { 544 {
464 type: "", 545 type: "",
...@@ -466,9 +547,9 @@ export default { ...@@ -466,9 +547,9 @@ export default {
466 value: "preQualificationStatus", 547 value: "preQualificationStatus",
467 width: "150", 548 width: "150",
468 align: "center", 549 align: "center",
469 - sorTable: false, 550 + sorTable: true,
470 slot: null, 551 slot: null,
471 - fixed:false, 552 + fixed: false,
472 }, 553 },
473 { 554 {
474 type: "", 555 type: "",
...@@ -478,7 +559,7 @@ export default { ...@@ -478,7 +559,7 @@ export default {
478 align: "center", 559 align: "center",
479 sorTable: false, 560 sorTable: false,
480 slot: null, 561 slot: null,
481 - fixed:false, 562 + fixed: false,
482 }, 563 },
483 { 564 {
484 type: "", 565 type: "",
...@@ -486,9 +567,9 @@ export default { ...@@ -486,9 +567,9 @@ export default {
486 value: "statusName", 567 value: "statusName",
487 width: "150", 568 width: "150",
488 align: "center", 569 align: "center",
489 - sorTable: false, 570 + sorTable: true,
490 slot: null, 571 slot: null,
491 - fixed:false, 572 + fixed: false,
492 }, 573 },
493 { 574 {
494 type: "", 575 type: "",
...@@ -496,9 +577,9 @@ export default { ...@@ -496,9 +577,9 @@ export default {
496 value: "finalFlightNo", 577 value: "finalFlightNo",
497 width: "150", 578 width: "150",
498 align: "center", 579 align: "center",
499 - sorTable: false, 580 + sorTable: true,
500 slot: null, 581 slot: null,
501 - fixed:false, 582 + fixed: false,
502 }, 583 },
503 { 584 {
504 type: "", 585 type: "",
...@@ -506,9 +587,9 @@ export default { ...@@ -506,9 +587,9 @@ export default {
506 value: "finalFlightTime", 587 value: "finalFlightTime",
507 width: "150", 588 width: "150",
508 align: "center", 589 align: "center",
509 - sorTable: false, 590 + sorTable: true,
510 slot: null, 591 slot: null,
511 - fixed:false, 592 + fixed: false,
512 }, 593 },
513 { 594 {
514 type: "", 595 type: "",
...@@ -516,9 +597,9 @@ export default { ...@@ -516,9 +597,9 @@ export default {
516 value: "twoMatchFlightNo", 597 value: "twoMatchFlightNo",
517 width: "150", 598 width: "150",
518 align: "center", 599 align: "center",
519 - sorTable: false, 600 + sorTable: true,
520 slot: null, 601 slot: null,
521 - fixed:false, 602 + fixed: false,
522 }, 603 },
523 { 604 {
524 type: "", 605 type: "",
...@@ -526,9 +607,9 @@ export default { ...@@ -526,9 +607,9 @@ export default {
526 value: "twoMatchFlightTime", 607 value: "twoMatchFlightTime",
527 width: "150", 608 width: "150",
528 align: "center", 609 align: "center",
529 - sorTable: false, 610 + sorTable: true,
530 slot: null, 611 slot: null,
531 - fixed:false, 612 + fixed: false,
532 }, 613 },
533 { 614 {
534 type: "", 615 type: "",
...@@ -536,9 +617,9 @@ export default { ...@@ -536,9 +617,9 @@ export default {
536 value: "preplanFlightNo", 617 value: "preplanFlightNo",
537 width: "150", 618 width: "150",
538 align: "center", 619 align: "center",
539 - sorTable: false, 620 + sorTable: true,
540 slot: null, 621 slot: null,
541 - fixed:false, 622 + fixed: false,
542 }, 623 },
543 { 624 {
544 type: "", 625 type: "",
...@@ -546,9 +627,9 @@ export default { ...@@ -546,9 +627,9 @@ export default {
546 value: "preplanFlightTime", 627 value: "preplanFlightTime",
547 width: "150", 628 width: "150",
548 align: "center", 629 align: "center",
549 - sorTable: false, 630 + sorTable: true,
550 slot: null, 631 slot: null,
551 - fixed:false, 632 + fixed: false,
552 }, 633 },
553 { 634 {
554 type: "", 635 type: "",
...@@ -556,9 +637,9 @@ export default { ...@@ -556,9 +637,9 @@ export default {
556 value: "fltNoAccs", 637 value: "fltNoAccs",
557 width: "150", 638 width: "150",
558 align: "center", 639 align: "center",
559 - sorTable: false, 640 + sorTable: true,
560 slot: null, 641 slot: null,
561 - fixed:false, 642 + fixed: false,
562 }, 643 },
563 { 644 {
564 type: "", 645 type: "",
...@@ -566,9 +647,9 @@ export default { ...@@ -566,9 +647,9 @@ export default {
566 value: "fltDateAccs", 647 value: "fltDateAccs",
567 width: "150", 648 width: "150",
568 align: "center", 649 align: "center",
569 - sorTable: false, 650 + sorTable: true,
570 slot: null, 651 slot: null,
571 - fixed:false, 652 + fixed: false,
572 }, 653 },
573 { 654 {
574 type: "", 655 type: "",
...@@ -576,19 +657,19 @@ export default { ...@@ -576,19 +657,19 @@ export default {
576 value: "accsFlightRoute", 657 value: "accsFlightRoute",
577 width: "150", 658 width: "150",
578 align: "center", 659 align: "center",
579 - sorTable: false, 660 + sorTable: true,
580 slot: null, 661 slot: null,
581 - fixed:false, 662 + fixed: false,
582 }, 663 },
583 { 664 {
584 type: "", 665 type: "",
585 name: "是否RDE手工录入", 666 name: "是否RDE手工录入",
586 value: "manualRde", 667 value: "manualRde",
587 - width: "150", 668 + width: "170",
588 align: "center", 669 align: "center",
589 - sorTable: false, 670 + sorTable: true,
590 slot: null, 671 slot: null,
591 - fixed:false, 672 + fixed: false,
592 }, 673 },
593 { 674 {
594 type: "", 675 type: "",
...@@ -596,9 +677,9 @@ export default { ...@@ -596,9 +677,9 @@ export default {
596 value: "cargoRulesStatus", 677 value: "cargoRulesStatus",
597 width: "150", 678 width: "150",
598 align: "center", 679 align: "center",
599 - sorTable: false, 680 + sorTable: true,
600 slot: null, 681 slot: null,
601 - fixed:false, 682 + fixed: false,
602 }, 683 },
603 { 684 {
604 type: "", 685 type: "",
...@@ -608,7 +689,7 @@ export default { ...@@ -608,7 +689,7 @@ export default {
608 align: "center", 689 align: "center",
609 sorTable: false, 690 sorTable: false,
610 slot: null, 691 slot: null,
611 - fixed:false, 692 + fixed: false,
612 }, 693 },
613 { 694 {
614 type: "", 695 type: "",
...@@ -618,7 +699,7 @@ export default { ...@@ -618,7 +699,7 @@ export default {
618 align: "center", 699 align: "center",
619 sorTable: false, 700 sorTable: false,
620 slot: null, 701 slot: null,
621 - fixed:false, 702 + fixed: false,
622 }, 703 },
623 { 704 {
624 type: "", 705 type: "",
...@@ -628,7 +709,7 @@ export default { ...@@ -628,7 +709,7 @@ export default {
628 align: "center", 709 align: "center",
629 sorTable: false, 710 sorTable: false,
630 slot: null, 711 slot: null,
631 - fixed:false, 712 + fixed: false,
632 }, 713 },
633 { 714 {
634 type: "", 715 type: "",
...@@ -638,7 +719,7 @@ export default { ...@@ -638,7 +719,7 @@ export default {
638 align: "center", 719 align: "center",
639 sorTable: false, 720 sorTable: false,
640 slot: null, 721 slot: null,
641 - fixed:false, 722 + fixed: false,
642 }, 723 },
643 { 724 {
644 type: "", 725 type: "",
...@@ -646,9 +727,9 @@ export default { ...@@ -646,9 +727,9 @@ export default {
646 value: "sizeStr", 727 value: "sizeStr",
647 width: "150", 728 width: "150",
648 align: "center", 729 align: "center",
649 - sorTable: false, 730 + sorTable: true,
650 slot: null, 731 slot: null,
651 - fixed:false, 732 + fixed: false,
652 }, 733 },
653 { 734 {
654 type: "", 735 type: "",
...@@ -658,7 +739,7 @@ export default { ...@@ -658,7 +739,7 @@ export default {
658 align: "center", 739 align: "center",
659 sorTable: false, 740 sorTable: false,
660 slot: null, 741 slot: null,
661 - fixed:false, 742 + fixed: false,
662 }, 743 },
663 { 744 {
664 type: "", 745 type: "",
...@@ -668,7 +749,7 @@ export default { ...@@ -668,7 +749,7 @@ export default {
668 align: "center", 749 align: "center",
669 sorTable: false, 750 sorTable: false,
670 slot: null, 751 slot: null,
671 - fixed:false, 752 + fixed: false,
672 }, 753 },
673 { 754 {
674 type: "", 755 type: "",
...@@ -676,9 +757,9 @@ export default { ...@@ -676,9 +757,9 @@ export default {
676 value: "customsReceiptTime", 757 value: "customsReceiptTime",
677 width: "150", 758 width: "150",
678 align: "center", 759 align: "center",
679 - sorTable: false, 760 + sorTable: true,
680 slot: null, 761 slot: null,
681 - fixed:false, 762 + fixed: false,
682 }, 763 },
683 { 764 {
684 type: "", 765 type: "",
...@@ -686,9 +767,9 @@ export default { ...@@ -686,9 +767,9 @@ export default {
686 value: "caPretrialTime", 767 value: "caPretrialTime",
687 width: "150", 768 width: "150",
688 align: "center", 769 align: "center",
689 - sorTable: false, 770 + sorTable: true,
690 slot: null, 771 slot: null,
691 - fixed:false, 772 + fixed: false,
692 }, 773 },
693 { 774 {
694 type: "", 775 type: "",
...@@ -696,9 +777,9 @@ export default { ...@@ -696,9 +777,9 @@ export default {
696 value: "createUserName", 777 value: "createUserName",
697 width: "150", 778 width: "150",
698 align: "center", 779 align: "center",
699 - sorTable: false, 780 + sorTable: true,
700 slot: null, 781 slot: null,
701 - fixed:false, 782 + fixed: false,
702 }, 783 },
703 { 784 {
704 type: "", 785 type: "",
...@@ -706,78 +787,87 @@ export default { ...@@ -706,78 +787,87 @@ export default {
706 value: "createTime", 787 value: "createTime",
707 width: "150", 788 width: "150",
708 align: "center", 789 align: "center",
709 - sorTable: false, 790 + sorTable: true,
710 slot: null, 791 slot: null,
711 - fixed:false, 792 + fixed: false,
712 }, 793 },
713 ], //表头数据 794 ], //表头数据
714 tableData: [], //表格数据 795 tableData: [], //表格数据
715 tableSelection: [], //选中数据 796 tableSelection: [], //选中数据
716 - selectData:{ 797 + selectData: {
717 findConditionData: [], 798 findConditionData: [],
718 - fltTypes:[], 799 + fltTypes: [],
719 HandlingCode: [], 800 HandlingCode: [],
720 SubCategory: [], 801 SubCategory: [],
721 - },//查询条件 802 + }, //查询条件
722 - fltDate:[], 803 + fltDate: [],
723 - ursaList:'', 804 + ursaList: "",
724 - siteNameList:'', 805 + siteNameList: "",
725 - handingCodes:[], 806 + handingCodes: [],
726 - subCategorys:[], 807 + subCategorys: [],
727 valueFormat: "yyyy-MM-dd", 808 valueFormat: "yyyy-MM-dd",
728 totalCount: 0, 809 totalCount: 0,
729 - page:1, 810 + page: 1,
730 - size:100, 811 + size: 100,
731 allWeight: 0, 812 allWeight: 0,
732 allQty: 0, 813 allQty: 0,
733 dialogVisible: false, 814 dialogVisible: false,
734 shiftKey: false, 815 shiftKey: false,
735 createDate: null, 816 createDate: null,
736 loading: false, 817 loading: false,
737 - downLoadingTip:{ 818 + formShow:true,
738 - tip:"", 819 + downLoadingTip: {
820 + tip: "",
739 downloading: false, 821 downloading: false,
740 }, 822 },
741 }; 823 };
742 }, 824 },
743 created() { 825 created() {
744 //查询条件 826 //查询条件
745 - allDictData().then(res=>{ 827 + new Promise((resolve, reject) => {
746 - if(res.code === 200){ 828 + let obj = {};
747 - this.selectData.SubCategory = res.data.subCategory; 829 + findFltConditionDataApi()
748 - this.selectData.HandlingCode = res.data.handlingCode; 830 + .then((res) => {
749 - }else{ 831 + if (res.code === 200) {
750 - this.$message({ 832 + obj.flightType = res.data.flightType;
751 - message: "查询条件不存在", 833 + } else {
752 - type: "warning", 834 + reject(res.msg);
753 - });
754 } 835 }
755 }) 836 })
837 + .catch(() => {});
756 838
757 - findFltConditionDataApi().then(res=>{ 839 + allDictData()
758 - if(res.code === 200){ 840 + .then((res) => {
759 - this.selectData.fltTypes = res.data.flightType 841 + if (res.code === 200) {
760 - }else{ 842 + obj.HandlingCode = res.data.handlingCode;
761 - this.$message({ 843 + obj.SubCategory = res.data.subCategory;
762 - message: "查询条件不存在", 844 + } else {
763 - type: "warning", 845 + reject(res.msg);
764 - });
765 } 846 }
766 }) 847 })
848 + .catch(() => {});
767 849
768 - findConditionData().then((res) => { 850 + findConditionData()
851 + .then((res) => {
769 if (res.code == 200) { 852 if (res.code == 200) {
770 - this.selectData.findConditionData = res.data; 853 + obj.findConditionData = res.data;
771 } else { 854 } else {
855 + reject(res.msg);
856 + }
857 + resolve(obj)
858 + })
859 + .catch(() => {});
860 + this.select();
861 + }).then(res=>{
862 + this.selectData = res
863 + }).catch((err) => {
772 this.$message({ 864 this.$message({
773 message: "查询条件不存在", 865 message: "查询条件不存在",
774 type: "warning", 866 type: "warning",
775 }); 867 });
776 - } 868 + });
777 - })
778 - this.select();
779 }, 869 },
780 - mounted(){ 870 + mounted() {
781 // this.selectData.HandlingCode.forEach((item,index)=>{ 871 // this.selectData.HandlingCode.forEach((item,index)=>{
782 // if(item.id === 108093){ 872 // if(item.id === 108093){
783 // this.selectData.HandlingCode.unshift(this.HandlingCode.splice(index,1)[0]) 873 // this.selectData.HandlingCode.unshift(this.HandlingCode.splice(index,1)[0])
...@@ -797,7 +887,7 @@ export default { ...@@ -797,7 +887,7 @@ export default {
797 methods: { 887 methods: {
798 select() { 888 select() {
799 this.loading = true; 889 this.loading = true;
800 - this.dataInfo() 890 + this.dataInfo();
801 findCargoAllocationData(this.formData) 891 findCargoAllocationData(this.formData)
802 .then((res) => { 892 .then((res) => {
803 this.loading = false; 893 this.loading = false;
...@@ -805,9 +895,9 @@ export default { ...@@ -805,9 +895,9 @@ export default {
805 this.tableData = res.data.list; 895 this.tableData = res.data.list;
806 if (res.data.list.length > 0) { 896 if (res.data.list.length > 0) {
807 this.totalCount = res.data.total; 897 this.totalCount = res.data.total;
808 - this.tableData.forEach((item,index = 0)=>{ 898 + this.tableData.forEach((item, index = 0) => {
809 - item.index = index 899 + item.index = index;
810 - }) 900 + });
811 } else { 901 } else {
812 this.$message({ 902 this.$message({
813 message: "未查询到数据", 903 message: "未查询到数据",
...@@ -825,105 +915,115 @@ export default { ...@@ -825,105 +915,115 @@ export default {
825 this.loading = false; 915 this.loading = false;
826 }); 916 });
827 }, 917 },
828 - cargoTotal(){ 918 + cargoTotal() {
829 this.allWeight = 0; 919 this.allWeight = 0;
830 this.allQty = 0; 920 this.allQty = 0;
831 - if(this.tableSelection.length > 0){ 921 + if (this.tableSelection.length > 0) {
832 - this.tableSelection.forEach(item=>{ 922 + this.tableSelection.forEach((item) => {
833 this.allWeight = this.allWeight + item.actualWeight; 923 this.allWeight = this.allWeight + item.actualWeight;
834 this.allQty = this.allQty + item.qty; 924 this.allQty = this.allQty + item.qty;
835 - }) 925 + });
836 this.allWeight = this.allWeight.toFixed(); 926 this.allWeight = this.allWeight.toFixed();
837 this.allQty = this.allQty.toFixed(); 927 this.allQty = this.allQty.toFixed();
838 } 928 }
839 }, 929 },
840 - dataInfo(){ 930 + dataInfo() {
841 this.formData.ursaList = null; 931 this.formData.ursaList = null;
842 this.formData.siteNameList = null; 932 this.formData.siteNameList = null;
843 this.formData.handingCodes = null; 933 this.formData.handingCodes = null;
844 this.formData.subCategorys = null; 934 this.formData.subCategorys = null;
845 - if(this.handingCodes.length > 0 ){ 935 + if (this.handingCodes.length > 0) {
846 this.formData.handingCodes = this.handingCodes; 936 this.formData.handingCodes = this.handingCodes;
847 } 937 }
848 - if(this.subCategorys.length > 0){ 938 + if (this.subCategorys.length > 0) {
849 this.formData.subCategorys = this.subCategorys; 939 this.formData.subCategorys = this.subCategorys;
850 } 940 }
851 - if(this.formData.minWeight === 0){ 941 + if (this.formData.minWeight === 0) {
852 - this.formData.minWeight = null; 942 + this.formData.minWeight = undefined;
853 } 943 }
854 - if(this.formData.maxWeight === 0){ 944 + if (this.formData.maxWeight === 0) {
855 - this.formData.maxWeight = null; 945 + this.formData.maxWeight = undefined;
856 } 946 }
857 - if(this.formData.minNumber === 0){ 947 + if (this.formData.minNumber === 0) {
858 - this.formData.minNumber = null; 948 + this.formData.minNumber = undefined;
859 } 949 }
860 - if(this.formData.maxNumber === 0){ 950 + if (this.formData.maxNumber === 0) {
861 - this.formData.maxNumber = null; 951 + this.formData.maxNumber = undefined;
862 } 952 }
863 - if(this.ursaList && this.ursaList != ''){ 953 + if (this.ursaList && this.ursaList != "") {
864 - this.formData.ursaList = this.ursaList.split(';' || '') 954 + this.formData.ursaList = this.ursaList.split(";" || "");
865 } 955 }
866 - if(this.siteNameList && this.siteNameList != ''){ 956 + if (this.siteNameList && this.siteNameList != "") {
867 - this.formData.siteNameList = this.siteNameList.split(';' || '') 957 + this.formData.siteNameList = this.siteNameList.split(";" || "");
868 } 958 }
869 - if(this.fltDate && this.fltDate.length > 0){ 959 + if (this.fltDate && this.fltDate.length > 0) {
870 this.formData.fltDateStart = this.fltDate[0]; 960 this.formData.fltDateStart = this.fltDate[0];
871 this.formData.fltDateEnd = this.fltDate[1]; 961 this.formData.fltDateEnd = this.fltDate[1];
872 - }else{ 962 + } else {
873 this.formData.fltDateStart = null; 963 this.formData.fltDateStart = null;
874 this.formData.fltDateEnd = null; 964 this.formData.fltDateEnd = null;
875 } 965 }
966 + if (
967 + this.formData.customsReceiptStatusId != null &&
968 + this.formData.customsReceiptStatusId.length < 1
969 + ) {
970 + this.formData.customsReceiptStatusId = null;
971 + }
876 this.formData.page = this.page; 972 this.formData.page = this.page;
877 this.formData.size = this.size; 973 this.formData.size = this.size;
878 }, 974 },
879 - xlse(val) { 975 + xlsx(val) {
880 this.downLoadingTip.downloading = true; 976 this.downLoadingTip.downloading = true;
881 - this.dataInfo() 977 + this.dataInfo();
882 - if(val === 0){ 978 + if (val === 0) {
883 - this.downLoadingTip.tip = '正在导出本页结果集'; 979 + this.downLoadingTip.tip = "正在导出本页结果集";
884 - downLoadXlsx('/cargo/allocationExcel',this.formData,'手动配舱表').then(res=>{ 980 + downLoadXlsx("/cargo/allocationExcel", this.formData, "手动配舱表")
885 - this.downLoadingTip.downloading = false; 981 + .then((res) => {
886 - }).catch(err=>{
887 this.downLoadingTip.downloading = false; 982 this.downLoadingTip.downloading = false;
888 - console.log(err)
889 }) 983 })
890 - }else{ 984 + .catch((err) => {
891 - this.downLoadingTip.tip = '正在导出全部结果集请耐心等待'; 985 + this.downLoadingTip.downloading = false;
986 + console.log(err);
987 + });
988 + } else {
989 + this.downLoadingTip.tip = "正在导出全部结果集请耐心等待";
892 this.formData.page = null; 990 this.formData.page = null;
893 this.formData.size = null; 991 this.formData.size = null;
894 - downLoadXlsx('/cargo/allocationExcel',this.formData,'手动配舱表').then(res=>{ 992 + downLoadXlsx("/cargo/allocationExcel", this.formData, "手动配舱表")
895 - this.downLoadingTip.downloading = false; 993 + .then((res) => {
896 - }).catch(err=>{
897 this.downLoadingTip.downloading = false; 994 this.downLoadingTip.downloading = false;
898 - console.log(err)
899 }) 995 })
996 + .catch((err) => {
997 + this.downLoadingTip.downloading = false;
998 + console.log(err);
999 + });
900 } 1000 }
901 }, 1001 },
902 tableSelect(val) { 1002 tableSelect(val) {
903 - this.tableSelection = val.selection 1003 + this.tableSelection = val.selection;
904 - this.cargoTotal() 1004 + this.cargoTotal();
905 }, 1005 },
906 - tableSelectAll(val){ 1006 + tableSelectAll(val) {
907 - this.tableSelection = val 1007 + this.tableSelection = val;
908 - this.cargoTotal() 1008 + this.cargoTotal();
909 }, 1009 },
910 - currentChange(val){ 1010 + currentChange(val) {
911 this.formData.limitStart = val.start; 1011 this.formData.limitStart = val.start;
912 this.page = val.page; 1012 this.page = val.page;
913 - this.select() 1013 + this.select();
914 }, 1014 },
915 addFit() { 1015 addFit() {
916 let open = true; 1016 let open = true;
917 - this.tableSelection.forEach(item=>{ 1017 + this.tableSelection.forEach((item) => {
918 - if(item.statusId != 107966){ 1018 + if (item.statusId != 107966) {
919 open = false; 1019 open = false;
920 } 1020 }
921 - }) 1021 + });
922 - if(open){ 1022 + if (open) {
923 this.dialogVisible = open; 1023 this.dialogVisible = open;
924 - }else{ 1024 + } else {
925 this.$message({ 1025 this.$message({
926 - message: "此类型货物不可配舱", 1026 + message: "包含不可手动配舱货物",
927 type: "warning", 1027 type: "warning",
928 }); 1028 });
929 this.tableSelection = []; 1029 this.tableSelection = [];
...@@ -933,7 +1033,7 @@ export default { ...@@ -933,7 +1033,7 @@ export default {
933 }, 1033 },
934 dialogBeforeClose(val) { 1034 dialogBeforeClose(val) {
935 this.dialogVisible = val.close; 1035 this.dialogVisible = val.close;
936 - if(val.reload){ 1036 + if (val.reload) {
937 this.tableSelection = []; 1037 this.tableSelection = [];
938 this.$refs.newTables.clearTable(); 1038 this.$refs.newTables.clearTable();
939 this.cargoTotal(); 1039 this.cargoTotal();
...@@ -966,6 +1066,14 @@ export default { ...@@ -966,6 +1066,14 @@ export default {
966 this.siteNameList = upCase(val); 1066 this.siteNameList = upCase(val);
967 }, 1067 },
968 }, 1068 },
1069 + portName: {
1070 + get: function () {
1071 + return this.formData.portName;
1072 + },
1073 + set: function (val) {
1074 + this.formData.portName = upCase(val);
1075 + },
1076 + },
969 }, 1077 },
970 }; 1078 };
971 </script> 1079 </script>
...@@ -976,22 +1084,22 @@ export default { ...@@ -976,22 +1084,22 @@ export default {
976 color: #606266; 1084 color: #606266;
977 font-size: 14px; 1085 font-size: 14px;
978 margin-top: 10px; 1086 margin-top: 10px;
979 - margin-left:50px; 1087 + margin-left: 50px;
980 } 1088 }
981 -.line{ 1089 +.line {
982 text-align: center; 1090 text-align: center;
983 } 1091 }
984 -.el-empty{ 1092 +.el-empty {
985 - width:30%; 1093 + width: 30%;
986 - height:37px; 1094 + height: 37px;
987 - padding:0px; 1095 + padding: 0px;
988 line-height: 37px; 1096 line-height: 37px;
989 - .el-empty__image{ 1097 + .el-empty__image {
990 width: 0px; 1098 width: 0px;
991 - height:0px; 1099 + height: 0px;
992 } 1100 }
993 - .el-empty__description{ 1101 + .el-empty__description {
994 - margin-top:0px; 1102 + margin-top: 0px;
995 } 1103 }
996 } 1104 }
997 </style> 1105 </style>
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -67,7 +67,7 @@ ...@@ -67,7 +67,7 @@
67 67
68 <script> 68 <script>
69 import { allocationFlight } from "@/api/cargoSelect"; 69 import { allocationFlight } from "@/api/cargoSelect";
70 -import { MessageBox } from 'element-ui' 70 +import { MessageBox } from "element-ui";
71 export default { 71 export default {
72 props: { 72 props: {
73 dialogVisible: { 73 dialogVisible: {
...@@ -82,10 +82,10 @@ export default { ...@@ -82,10 +82,10 @@ export default {
82 data() { 82 data() {
83 return { 83 return {
84 formData: { 84 formData: {
85 - ids:[], 85 + ids: [],
86 fltNo: undefined, 86 fltNo: undefined,
87 - fltDate:undefined, 87 + fltDate: undefined,
88 - overweight:false 88 + overweight: false,
89 }, 89 },
90 cargoHeader: [ 90 cargoHeader: [
91 { name: "口岸代码", value: "portName" }, 91 { name: "口岸代码", value: "portName" },
...@@ -96,101 +96,101 @@ export default { ...@@ -96,101 +96,101 @@ export default {
96 { name: "URSA", value: "ursa" }, 96 { name: "URSA", value: "ursa" },
97 { name: "实际重量", value: "actualWeight" }, 97 { name: "实际重量", value: "actualWeight" },
98 { name: "件数", value: "qty" }, 98 { name: "件数", value: "qty" },
99 + { name: "ACCS原航班号", value: "fltNoAccs" },
100 + { name: "ACCS原航班日期", value: "fltDateAccs" },
99 { name: "品名描述", value: "nameDescription" }, 101 { name: "品名描述", value: "nameDescription" },
100 { name: "是否自动", value: "cargoRulesStatus" }, 102 { name: "是否自动", value: "cargoRulesStatus" },
101 { name: "创建人", value: "createUserName" }, 103 { name: "创建人", value: "createUserName" },
102 { name: "创建时间", value: "createTime" }, 104 { name: "创建时间", value: "createTime" },
103 ], 105 ],
104 - fltHeader: [ 106 + rules: {
105 - { name: "航班日期", value: "fltDate" }, 107 + fltNo: [
106 - { name: "航班号", value: "fltNo" }, 108 + {
107 - { name: "航班路线", value: "route" },
108 - { name: "航班类型", value: "typeName" },
109 - { name: "总重量", value: "totalWeight" },
110 - { name: "额外增重百分比", value: "extraWeightPercent" },
111 - { name: "已配重量", value: "alloctedWeight" },
112 - { name: "配舱优先级", value: "priorityRuleName" },
113 - { name: "是否开启高地价", value: "highLowPriceFlg" },
114 - { name: "航班起飞时间", value: "takeOffTime" },
115 - { name: "创建人", value: "createUserName" },
116 - { name: "创建时间", value: "createTime" },
117 - ],
118 - rules:{
119 - fltNo: [{
120 required: true, 109 required: true,
121 message: "航班号不能为空", 110 message: "航班号不能为空",
122 - trigger: "blur" 111 + trigger: "blur",
123 - }], 112 + },
124 - fltDate: [{ 113 + ],
114 + fltDate: [
115 + {
125 required: true, 116 required: true,
126 message: "航班日期不能为空", 117 message: "航班日期不能为空",
127 - trigger: "change" 118 + trigger: "change",
128 - }], 119 + },
129 - } 120 + ],
121 + },
130 }; 122 };
131 }, 123 },
132 methods: { 124 methods: {
133 - cleaerForm(){ 125 + cleaerForm() {
134 - this.formData={ 126 + this.formData = {
135 - ids:[], 127 + ids: [],
136 fltNo: undefined, 128 fltNo: undefined,
137 - fltDate:undefined, 129 + fltDate: undefined,
138 - overweight:false 130 + overweight: false,
139 - } 131 + };
140 }, 132 },
141 //确定配舱 133 //确定配舱
142 submit() { 134 submit() {
143 let arr = []; 135 let arr = [];
144 - this.tableData.forEach(item => { 136 + this.tableData.forEach((item) => {
145 - arr.push(item.id) 137 + arr.push(item.id);
146 }); 138 });
147 this.formData.ids = arr; 139 this.formData.ids = arr;
148 - if(this.formData.fltNo && this.formData.fltDate){ 140 + if (this.formData.fltNo && this.formData.fltDate) {
149 - allocationFlight(this.formData).then(res=>{//code 200 配舱成功 601 重量已满需要确认 其余code直接输出msg 141 + allocationFlight(this.formData).then((res) => {
150 - if(res.code === 200){ 142 + //code 200 配舱成功 601 重量已满需要确认 其余code直接输出msg
143 + if (res.code === 200) {
151 this.$message({ 144 this.$message({
152 message: "货物配舱成功", 145 message: "货物配舱成功",
153 type: "success", 146 type: "success",
154 }); 147 });
155 - }else if(res.code === 202){ 148 + this.cleaerForm();
156 - MessageBox.confirm('航班配重已满,是否继续配舱?', '提示', { 149 + this.$emit("dialogBeforeClose", { close: false, reload: true });
157 - confirmButtonText: '确定', 150 + } else if (res.code === 202) {
158 - cancelButtonText: '取消', 151 + MessageBox.confirm(res.msg, "提示", {
159 - type: 'warning' 152 + confirmButtonText: "确定",
160 - } 153 + cancelButtonText: "取消",
161 - ).then(() => { 154 + type: "warning",
162 - this.formData.overweight = true;//确定继续overweight变为true再次请求接口 155 + })
163 - allocationFlight(this.formData).then(res=>{ 156 + .then(() => {
164 - if(res.code === 200){ 157 + this.formData.overweight = true; //确定继续overweight变为true再次请求接口
158 + allocationFlight(this.formData).then((res) => {
159 + if (res.code === 200) {
165 this.$message({ 160 this.$message({
166 message: "货物配舱成功", 161 message: "货物配舱成功",
167 type: "success", 162 type: "success",
168 }); 163 });
169 - }else{ 164 + } else {
170 this.$message({ 165 this.$message({
171 message: res.msg, 166 message: res.msg,
172 type: "warning", 167 type: "warning",
173 }); 168 });
174 } 169 }
170 + });
171 + this.cleaerForm();
172 + this.$emit("dialogBeforeClose", { close: false, reload: true });
175 }) 173 })
176 - this.cleaerForm() 174 + .catch(() => {
177 - this.$emit("dialogBeforeClose", {close:false,reload:true}); 175 + //取消 取消当前配舱
178 - }).catch(() => {//取消 取消当前配舱
179 this.$message({ 176 this.$message({
180 message: "配舱已取消", 177 message: "配舱已取消",
181 type: "success", 178 type: "success",
182 }); 179 });
183 - this.cleaerForm() 180 + this.cleaerForm();
184 - this.$emit("dialogBeforeClose", {close:false,reload:false}); 181 + this.$emit("dialogBeforeClose", {
182 + close: false,
183 + reload: false,
184 + });
185 }); 185 });
186 - }else{ 186 + } else {
187 this.$message({ 187 this.$message({
188 message: res.msg, 188 message: res.msg,
189 type: "warning", 189 type: "warning",
190 }); 190 });
191 } 191 }
192 - }) 192 + });
193 - }else{ 193 + } else {
194 this.$message({ 194 this.$message({
195 message: "航班号或航班日期不能为空", 195 message: "航班号或航班日期不能为空",
196 type: "warning", 196 type: "warning",
...@@ -198,8 +198,8 @@ export default { ...@@ -198,8 +198,8 @@ export default {
198 } 198 }
199 }, 199 },
200 dialogBeforeClose() { 200 dialogBeforeClose() {
201 - this.cleaerForm() 201 + this.cleaerForm();
202 - this.$emit("dialogBeforeClose", {close:false,reload:false}); 202 + this.$emit("dialogBeforeClose", { close: false, reload: false });
203 }, 203 },
204 }, 204 },
205 computed: { 205 computed: {
......
...@@ -2,16 +2,31 @@ ...@@ -2,16 +2,31 @@
2 <div style="margin: 40px" v-loading="loading"> 2 <div style="margin: 40px" v-loading="loading">
3 <el-empty description="找不到这条数据!" v-if="isEmpty"></el-empty> 3 <el-empty description="找不到这条数据!" v-if="isEmpty"></el-empty>
4 <template v-else> 4 <template v-else>
5 - <el-form ref="form" :model="form" label-width="200px" size="small" :disabled="disable" :rules="rules"> 5 + <el-form
6 + ref="form"
7 + :model="form"
8 + label-width="200px"
9 + size="small"
10 + :disabled="disable"
11 + :rules="rules"
12 + >
6 <el-row :gutter="20"> 13 <el-row :gutter="20">
7 <el-col :span="12"> 14 <el-col :span="12">
8 <el-form-item label="航班号" prop="purposeOfFlightNo"> 15 <el-form-item label="航班号" prop="purposeOfFlightNo">
9 - <el-input v-model.trim="form.purposeOfFlightNo" style="width: 60%" :disabled="nameDisabled"></el-input> 16 + <el-input
17 + v-model.trim="form.purposeOfFlightNo"
18 + style="width: 60%"
19 + :disabled="nameDisabled"
20 + ></el-input>
10 </el-form-item> 21 </el-form-item>
11 </el-col> 22 </el-col>
12 <el-col :span="12"> 23 <el-col :span="12">
13 <el-form-item label="航班预审" prop="isNeedRequired"> 24 <el-form-item label="航班预审" prop="isNeedRequired">
14 - <el-switch v-model="isNeedRequired" :active-value="1" :inactive-value="0"> 25 + <el-switch
26 + v-model="isNeedRequired"
27 + :active-value="1"
28 + :inactive-value="0"
29 + >
15 </el-switch> 30 </el-switch>
16 </el-form-item> 31 </el-form-item>
17 </el-col> 32 </el-col>
...@@ -19,38 +34,76 @@ ...@@ -19,38 +34,76 @@
19 <el-form-item> 34 <el-form-item>
20 <el-row :gutter="20"> 35 <el-row :gutter="20">
21 <el-col :span="6"> 36 <el-col :span="6">
22 - <el-radio v-model="isLocation" label="1" size="mini">站点包含</el-radio> 37 + <el-radio v-model="isLocation" label="1" size="mini"
23 - <el-radio v-model="isLocation" label="2" size="mini">站点不包含</el-radio> 38 + >站点包含</el-radio
39 + >
40 + <el-radio v-model="isLocation" label="2" size="mini"
41 + >站点不包含</el-radio
42 + >
24 </el-col> 43 </el-col>
25 <el-col :span="6"> 44 <el-col :span="6">
26 - <el-alert title="提示:站点之间用回车符分隔" type="warning" show-icon size="mini" :closable="false" 45 + <el-alert
27 - style="height: 30px; width: fit-content"> 46 + title="提示:站点之间用回车符分隔"
47 + type="warning"
48 + show-icon
49 + size="mini"
50 + :closable="false"
51 + style="height: 30px; width: fit-content"
52 + >
28 </el-alert> 53 </el-alert>
29 </el-col> 54 </el-col>
30 </el-row> 55 </el-row>
31 </el-form-item> 56 </el-form-item>
32 57
33 <el-form-item label="站点包含" v-show="isLocation == 1"> 58 <el-form-item label="站点包含" v-show="isLocation == 1">
34 - <el-input type="textarea" v-model="form.location" :rows="6" resize="none" style="width: 600px"></el-input> 59 + <el-input
60 + type="textarea"
61 + v-model="form.location"
62 + :rows="6"
63 + resize="none"
64 + style="width: 600px"
65 + ></el-input>
35 </el-form-item> 66 </el-form-item>
36 <el-form-item label="站点不包含" v-show="isLocation == 2"> 67 <el-form-item label="站点不包含" v-show="isLocation == 2">
37 - <el-input type="textarea" v-model="form.notLocation" :rows="6" resize="none" style="width: 600px"></el-input> 68 + <el-input
69 + type="textarea"
70 + v-model="form.notLocation"
71 + :rows="6"
72 + resize="none"
73 + style="width: 600px"
74 + ></el-input>
38 </el-form-item> 75 </el-form-item>
39 76
40 <el-form-item> 77 <el-form-item>
41 - <el-alert title="提示:URSA之间用分号分隔,例:F2;F3;P_" type="warning" show-icon size="mini" :closable="false" 78 + <el-alert
42 - style="height: 30px; width: fit-content"> 79 + title="提示:URSA之间用分号分隔,例:F2;F3;P_"
80 + type="warning"
81 + show-icon
82 + size="mini"
83 + :closable="false"
84 + style="height: 30px; width: fit-content"
85 + >
43 </el-alert> 86 </el-alert>
44 </el-form-item> 87 </el-form-item>
45 <el-row :gutter="20"> 88 <el-row :gutter="20">
46 <el-col :span="10"> 89 <el-col :span="10">
47 <el-form-item label="URSA包含"> 90 <el-form-item label="URSA包含">
48 - <el-input type="textarea" v-model.trim="form.includeUrsa" :rows="6" resize="none"></el-input> 91 + <el-input
92 + type="textarea"
93 + v-model.trim="form.includeUrsa"
94 + :rows="6"
95 + resize="none"
96 + ></el-input>
49 </el-form-item> 97 </el-form-item>
50 </el-col> 98 </el-col>
51 <el-col :span="10"> 99 <el-col :span="10">
52 <el-form-item label="URSA不包含"> 100 <el-form-item label="URSA不包含">
53 - <el-input type="textarea" v-model.trim="form.notIncludeUrsa" :rows="6" resize="none"></el-input> 101 + <el-input
102 + type="textarea"
103 + v-model.trim="form.notIncludeUrsa"
104 + :rows="6"
105 + resize="none"
106 + ></el-input>
54 </el-form-item> 107 </el-form-item>
55 </el-col> 108 </el-col>
56 </el-row> 109 </el-row>
...@@ -58,41 +111,65 @@ ...@@ -58,41 +111,65 @@
58 <el-form-item label="件数"> 111 <el-form-item label="件数">
59 <el-col :span="3"> 112 <el-col :span="3">
60 <!-- <el-input v-model="form.minNumOfPieces"></el-input> --> 113 <!-- <el-input v-model="form.minNumOfPieces"></el-input> -->
61 - <el-input-number v-model=" 114 + <el-input-number
115 + v-model="
62 form.minNumOfPieces == 0 116 form.minNumOfPieces == 0
63 ? (form.minNumOfPieces = undefined) 117 ? (form.minNumOfPieces = undefined)
64 : form.minNumOfPieces 118 : form.minNumOfPieces
65 - " :precision="0" :controls="false" style="width: 100%"></el-input-number> 119 + "
120 + :precision="0"
121 + :controls="false"
122 + style="width: 100%"
123 + :min="1"
124 + ></el-input-number>
66 </el-col> 125 </el-col>
67 <el-col style="text-align: center" :span="1">-</el-col> 126 <el-col style="text-align: center" :span="1">-</el-col>
68 <el-col :span="3"> 127 <el-col :span="3">
69 <!-- <el-input v-model="form.maxNumOfPieces"></el-input> --> 128 <!-- <el-input v-model="form.maxNumOfPieces"></el-input> -->
70 - <el-input-number v-model=" 129 + <el-input-number
130 + v-model="
71 form.maxNumOfPieces == 0 131 form.maxNumOfPieces == 0
72 ? (form.maxNumOfPieces = undefined) 132 ? (form.maxNumOfPieces = undefined)
73 : form.maxNumOfPieces 133 : form.maxNumOfPieces
74 - " :precision="0" :controls="false" style="width: 100%" :min="form.minNumOfPieces + 1"></el-input-number> 134 + "
135 + :precision="0"
136 + :controls="false"
137 + style="width: 100%"
138 + :min="form.minNumOfPieces"
139 + ></el-input-number>
75 </el-col> 140 </el-col>
76 </el-form-item> 141 </el-form-item>
77 142
78 <el-form-item label="重量"> 143 <el-form-item label="重量">
79 <el-col :span="3"> 144 <el-col :span="3">
80 <!-- <el-input v-model="form.minWeight"></el-input> --> 145 <!-- <el-input v-model="form.minWeight"></el-input> -->
81 - <el-input-number v-model=" 146 + <el-input-number
147 + v-model="
82 form.minWeight == 0 148 form.minWeight == 0
83 ? (form.minWeight = undefined) 149 ? (form.minWeight = undefined)
84 : form.minWeight 150 : form.minWeight
85 - " :precision="2" :controls="false" style="width: 100%"></el-input-number> 151 + "
152 + :precision="2"
153 + :controls="false"
154 + style="width: 100%"
155 + :min="0.01"
156 + ></el-input-number>
86 </el-col> 157 </el-col>
87 <el-col :span="1" style="text-align: center"><span>Kg</span></el-col> 158 <el-col :span="1" style="text-align: center"><span>Kg</span></el-col>
88 <el-col style="text-align: center" :span="1">-</el-col> 159 <el-col style="text-align: center" :span="1">-</el-col>
89 <el-col :span="3"> 160 <el-col :span="3">
90 <!-- <el-input v-model="form.maxWeight"></el-input> --> 161 <!-- <el-input v-model="form.maxWeight"></el-input> -->
91 - <el-input-number v-model=" 162 + <el-input-number
163 + v-model="
92 form.maxWeight == 0 164 form.maxWeight == 0
93 ? (form.maxWeight = undefined) 165 ? (form.maxWeight = undefined)
94 : form.maxWeight 166 : form.maxWeight
95 - " :precision="2" :controls="false" style="width: 100%" :min="form.minWeight + 0.01"></el-input-number> 167 + "
168 + :precision="2"
169 + :controls="false"
170 + style="width: 100%"
171 + :min="form.minWeight"
172 + ></el-input-number>
96 </el-col> 173 </el-col>
97 <el-col :span="1" style="text-align: center"><span>Kg</span></el-col> 174 <el-col :span="1" style="text-align: center"><span>Kg</span></el-col>
98 </el-form-item> 175 </el-form-item>
...@@ -102,7 +179,10 @@ ...@@ -102,7 +179,10 @@
102 <el-checkbox-group v-model="form.typeOfGoods"> 179 <el-checkbox-group v-model="form.typeOfGoods">
103 <el-row> 180 <el-row>
104 <el-col :span="2" v-for="item in cargoType" :key="item.id"> 181 <el-col :span="2" v-for="item in cargoType" :key="item.id">
105 - <el-checkbox :label="item.chineseName" :name="item.chineseName"> 182 + <el-checkbox
183 + :label="item.chineseName"
184 + :name="item.chineseName"
185 + >
106 </el-checkbox> 186 </el-checkbox>
107 </el-col> 187 </el-col>
108 </el-row> 188 </el-row>
...@@ -115,7 +195,11 @@ ...@@ -115,7 +195,11 @@
115 <el-checkbox-group v-model="form.declarationCategory"> 195 <el-checkbox-group v-model="form.declarationCategory">
116 <el-row> 196 <el-row>
117 <el-col :span="3" v-for="item in cargoStatus" :key="item.id"> 197 <el-col :span="3" v-for="item in cargoStatus" :key="item.id">
118 - <el-checkbox :label="item.chineseName" :name="item.chineseName" disabled></el-checkbox> 198 + <el-checkbox
199 + :label="item.chineseName"
200 + :name="item.chineseName"
201 + disabled
202 + ></el-checkbox>
119 </el-col> 203 </el-col>
120 </el-row> 204 </el-row>
121 </el-checkbox-group> 205 </el-checkbox-group>
...@@ -127,7 +211,10 @@ ...@@ -127,7 +211,10 @@
127 <el-checkbox-group v-model="form.serviceCode"> 211 <el-checkbox-group v-model="form.serviceCode">
128 <el-row> 212 <el-row>
129 <el-col :span="2" v-for="item in serviceCode" :key="item.id"> 213 <el-col :span="2" v-for="item in serviceCode" :key="item.id">
130 - <el-checkbox :label="item.englishName" :name="item.englishName"></el-checkbox> 214 + <el-checkbox
215 + :label="item.englishName"
216 + :name="item.englishName"
217 + ></el-checkbox>
131 </el-col> 218 </el-col>
132 </el-row> 219 </el-row>
133 </el-checkbox-group> 220 </el-checkbox-group>
...@@ -139,7 +226,10 @@ ...@@ -139,7 +226,10 @@
139 <el-checkbox-group v-model="form.handlingCode"> 226 <el-checkbox-group v-model="form.handlingCode">
140 <el-row> 227 <el-row>
141 <el-col :span="3" v-for="item in handlingCode" :key="item.id"> 228 <el-col :span="3" v-for="item in handlingCode" :key="item.id">
142 - <el-checkbox :label="item.englishName" :name="item.englishName"></el-checkbox> 229 + <el-checkbox
230 + :label="item.englishName"
231 + :name="item.englishName"
232 + ></el-checkbox>
143 </el-col> 233 </el-col>
144 </el-row> 234 </el-row>
145 </el-checkbox-group> 235 </el-checkbox-group>
...@@ -151,20 +241,26 @@ ...@@ -151,20 +241,26 @@
151 <el-checkbox-group v-model="form.subCategory"> 241 <el-checkbox-group v-model="form.subCategory">
152 <el-row> 242 <el-row>
153 <el-col :span="3" v-for="item in subCategory" :key="item.id"> 243 <el-col :span="3" v-for="item in subCategory" :key="item.id">
154 - <el-checkbox :label="item.englishName" :name="item.englishName"></el-checkbox> 244 + <el-checkbox
245 + :label="item.englishName"
246 + :name="item.englishName"
247 + ></el-checkbox>
155 </el-col> 248 </el-col>
156 </el-row> 249 </el-row>
157 </el-checkbox-group> 250 </el-checkbox-group>
158 </el-card> 251 </el-card>
159 </el-form-item> 252 </el-form-item>
160 253
161 - <el-form-item> 254 + <el-form-item> </el-form-item>
162 -
163 - </el-form-item>
164 </el-form> 255 </el-form>
165 - <div style="marginLeft:200px"> 256 + <div style="marginleft: 200px">
166 - <el-button type="primary" size="small" v-if="$route.params.handle != 'detail'" @click="submit('form')" 257 + <el-button
167 - :loading="btnLoading"> 258 + type="primary"
259 + size="small"
260 + v-if="$route.params.handle != 'detail'"
261 + @click="submit('form')"
262 + :loading="btnLoading"
263 + >
168 <span v-if="$route.params.handle === 'add'">添加</span> 264 <span v-if="$route.params.handle === 'add'">添加</span>
169 <span v-else>保存</span> 265 <span v-else>保存</span>
170 </el-button> 266 </el-button>
...@@ -175,14 +271,14 @@ ...@@ -175,14 +271,14 @@
175 </template> 271 </template>
176 272
177 <script> 273 <script>
178 - import { 274 +import {
179 findByFlightId, 275 findByFlightId,
180 updateOrAddFlight, 276 updateOrAddFlight,
181 allDictData, 277 allDictData,
182 findDestinationFltRuleByActualFlight, 278 findDestinationFltRuleByActualFlight,
183 - } from "@/api/destinationFlight"; 279 +} from "@/api/destinationFlight";
184 280
185 - export default { 281 +export default {
186 data() { 282 data() {
187 return { 283 return {
188 form: { 284 form: {
...@@ -190,24 +286,26 @@ ...@@ -190,24 +286,26 @@
190 declarationCategory: [], 286 declarationCategory: [],
191 serviceCode: [], 287 serviceCode: [],
192 subCategory: [], 288 subCategory: [],
193 - handlingCode:[], 289 + handlingCode: [],
194 }, 290 },
195 rules: { 291 rules: {
196 - purposeOfFlightNo: [{ 292 + purposeOfFlightNo: [
293 + {
197 required: true, 294 required: true,
198 message: "请输入航班号", 295 message: "请输入航班号",
199 - trigger: "blur" 296 + trigger: "blur",
200 - }, ], 297 + },
298 + ],
201 }, 299 },
202 typeOfGoods: [], 300 typeOfGoods: [],
203 declarationCategory: [], 301 declarationCategory: [],
204 formServiceCode: [], 302 formServiceCode: [],
205 - formHandlingCode:[], 303 + formHandlingCode: [],
206 formSubCategory: [], 304 formSubCategory: [],
207 cargoType: [], 305 cargoType: [],
208 cargoStatus: [], 306 cargoStatus: [],
209 serviceCode: [], 307 serviceCode: [],
210 - handlingCode:[], 308 + handlingCode: [],
211 subCategory: [], 309 subCategory: [],
212 isLocation: "1", 310 isLocation: "1",
213 isNeedRequired: 0, 311 isNeedRequired: 0,
...@@ -220,13 +318,14 @@ ...@@ -220,13 +318,14 @@
220 }, 318 },
221 methods: { 319 methods: {
222 //排序 320 //排序
223 - sorttodo(arr, englishName){ 321 + sorttodo(arr, englishName) {
224 - var index = 1, newArr = [], length = arr.length; 322 + var index = 1,
225 - for ( var i=0; i<length; i++){ 323 + newArr = [],
226 - if ( arr[i].englishName === englishName ){ 324 + length = arr.length;
325 + for (var i = 0; i < length; i++) {
326 + if (arr[i].englishName === englishName) {
227 newArr[0] = arr[i]; 327 newArr[0] = arr[i];
228 - } 328 + } else {
229 - else{
230 newArr[index++] = arr[i]; 329 newArr[index++] = arr[i];
231 } 330 }
232 } 331 }
...@@ -292,7 +391,8 @@ ...@@ -292,7 +391,8 @@
292 if (errorList.length != 0) { 391 if (errorList.length != 0) {
293 this.$message({ 392 this.$message({
294 showClose: true, 393 showClose: true,
295 - message: "URSA不包含中[" + 394 + message:
395 + "URSA不包含中[" +
296 errorList + 396 errorList +
297 "]错误,URSA不包含必须属于URSA包含中的类型", 397 "]错误,URSA不包含必须属于URSA包含中的类型",
298 type: "error", 398 type: "error",
...@@ -357,8 +457,7 @@ ...@@ -357,8 +457,7 @@
357 a.englishName.localeCompare(b.englishName) 457 a.englishName.localeCompare(b.englishName)
358 ); 458 );
359 459
360 - 460 + this.handlingCode = this.sorttodo(dict.handlingCode, "BLANK");
361 - this.handlingCode =this.sorttodo(dict.handlingCode,"BLANK");
362 this.subCategory = dict.subCategory; 461 this.subCategory = dict.subCategory;
363 }); 462 });
364 if (handle === "detail") { 463 if (handle === "detail") {
...@@ -382,21 +481,21 @@ ...@@ -382,21 +481,21 @@
382 this.isEmpty = true; 481 this.isEmpty = true;
383 } else { 482 } else {
384 let info = response.data; 483 let info = response.data;
385 - info.typeOfGoods = info.typeOfGoods ? 484 + info.typeOfGoods = info.typeOfGoods
386 - info.typeOfGoods.split(";") : 485 + ? info.typeOfGoods.split(";")
387 - []; 486 + : [];
388 - info.declarationCategory = info.declarationCategory ? 487 + info.declarationCategory = info.declarationCategory
389 - info.declarationCategory.split(";") : 488 + ? info.declarationCategory.split(";")
390 - []; 489 + : [];
391 - info.serviceCode = info.serviceCode ? 490 + info.serviceCode = info.serviceCode
392 - info.serviceCode.split(";") : 491 + ? info.serviceCode.split(";")
393 - []; 492 + : [];
394 - info.handlingCode = info.handlingCode ? 493 + info.handlingCode = info.handlingCode
395 - info.handlingCode.split(";") : 494 + ? info.handlingCode.split(";")
396 - []; 495 + : [];
397 - info.subCategory = info.subCategory ? 496 + info.subCategory = info.subCategory
398 - info.subCategory.split(";") : 497 + ? info.subCategory.split(";")
399 - []; 498 + : [];
400 this.form = info; 499 this.form = info;
401 if (info.location != null || info.location == "") { 500 if (info.location != null || info.location == "") {
402 this.isLocation = "1"; 501 this.isLocation = "1";
...@@ -419,21 +518,21 @@ ...@@ -419,21 +518,21 @@
419 this.isEmpty = true; 518 this.isEmpty = true;
420 } else { 519 } else {
421 let info = response.data.list; 520 let info = response.data.list;
422 - info.typeOfGoods = info.typeOfGoods ? 521 + info.typeOfGoods = info.typeOfGoods
423 - info.typeOfGoods.split(";") : 522 + ? info.typeOfGoods.split(";")
424 - []; 523 + : [];
425 - info.declarationCategory = info.declarationCategory ? 524 + info.declarationCategory = info.declarationCategory
426 - info.declarationCategory.split(";") : 525 + ? info.declarationCategory.split(";")
427 - []; 526 + : [];
428 - info.serviceCode = info.serviceCode ? 527 + info.serviceCode = info.serviceCode
429 - info.serviceCode.split(";") : 528 + ? info.serviceCode.split(";")
430 - []; 529 + : [];
431 - info.handlingCode = info.handlingCode ? 530 + info.handlingCode = info.handlingCode
432 - info.handlingCode.split(";") : 531 + ? info.handlingCode.split(";")
433 - []; 532 + : [];
434 - info.subCategory = info.subCategory ? 533 + info.subCategory = info.subCategory
435 - info.subCategory.split(";") : 534 + ? info.subCategory.split(";")
436 - []; 535 + : [];
437 this.form = info; 536 this.form = info;
438 if (info.location != null || info.location == "") { 537 if (info.location != null || info.location == "") {
439 this.isLocation = "1"; 538 this.isLocation = "1";
...@@ -451,32 +550,32 @@ ...@@ -451,32 +550,32 @@
451 this.loading = false; 550 this.loading = false;
452 } 551 }
453 }, 552 },
454 - }; 553 +};
455 </script> 554 </script>
456 <style rel="stylesheet/scss" lang="scss"> 555 <style rel="stylesheet/scss" lang="scss">
457 - .el-textarea.is-disabled .el-textarea__inner { 556 +.el-textarea.is-disabled .el-textarea__inner {
458 background-color: rgba(255, 255, 255, 0.5); 557 background-color: rgba(255, 255, 255, 0.5);
459 color: #303133; 558 color: #303133;
460 - } 559 +}
461 560
462 - .el-input.is-disabled .el-input__inner { 561 +.el-input.is-disabled .el-input__inner {
463 background-color: rgba(255, 255, 255, 0.5); 562 background-color: rgba(255, 255, 255, 0.5);
464 color: #303133; 563 color: #303133;
465 - } 564 +}
466 565
467 - .el-checkbox__input.is-disabled.is-checked .el-checkbox__inner { 566 +.el-checkbox__input.is-disabled.is-checked .el-checkbox__inner {
468 background-color: rgba(255, 255, 255, 0.5); 567 background-color: rgba(255, 255, 255, 0.5);
469 - } 568 +}
470 569
471 - .el-checkbox__input.is-disabled+span.el-checkbox__label { 570 +.el-checkbox__input.is-disabled + span.el-checkbox__label {
472 color: #303133; 571 color: #303133;
473 - } 572 +}
474 573
475 - .el-checkbox__input.is-disabled.is-checked .el-checkbox__inner::after { 574 +.el-checkbox__input.is-disabled.is-checked .el-checkbox__inner::after {
476 border-color: #303133; 575 border-color: #303133;
477 - } 576 +}
478 577
479 - .el-checkbox__input.is-disabled.is-checked .el-checkbox__inner { 578 +.el-checkbox__input.is-disabled.is-checked .el-checkbox__inner {
480 border-color: #606266; 579 border-color: #606266;
481 - } 580 +}
482 </style> 581 </style>
......
1 <template> 1 <template>
2 - <div class="app-container"> 2 + <div>
3 <el-form class="form-header" :model="queryParams" ref="queryForm" label-position="right" label-width="auto" size="medium"> 3 <el-form class="form-header" :model="queryParams" ref="queryForm" label-position="right" label-width="auto" size="medium">
4 <el-row> 4 <el-row>
5 <el-col :span="6"> 5 <el-col :span="6">
...@@ -51,8 +51,8 @@ ...@@ -51,8 +51,8 @@
51 <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button> 51 <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
52 <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button> 52 <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
53 <el-button type="primary" icon="el-icon-plus" size="mini" @click="handleAdd">新增</el-button> 53 <el-button type="primary" icon="el-icon-plus" size="mini" @click="handleAdd">新增</el-button>
54 - <el-button type="primary" icon="el-icon-circle-check" size="mini" @click="handleFlightStatus('flightStatus10')">航班开启</el-button> 54 + <el-button type="primary" icon="el-icon-circle-check" size="mini" @click="handleFlightStatus('flightStatus10')">自动配舱开启</el-button>
55 - <el-button type="primary" icon="el-icon-circle-close" size="mini" @click="handleFlightStatus('flightStatus80')">航班关闭</el-button> 55 + <el-button type="primary" icon="el-icon-circle-close" size="mini" @click="handleFlightStatus('flightStatus80')">自动配舱关闭</el-button>
56 </el-form> 56 </el-form>
57 <!-- <el-row :gutter="10" class="mb8"> 57 <!-- <el-row :gutter="10" class="mb8">
58 <el-col :span="1.5"> 58 <el-col :span="1.5">
...@@ -178,14 +178,14 @@ ...@@ -178,14 +178,14 @@
178 <el-col :span="12"> 178 <el-col :span="12">
179 <el-form-item label="原始重量(KG)" prop="originalWeight"> 179 <el-form-item label="原始重量(KG)" prop="originalWeight">
180 <el-input-number @change="LowHighAvailable" placeholder="请输入原始重量(KG)" style="width:93%" 180 <el-input-number @change="LowHighAvailable" placeholder="请输入原始重量(KG)" style="width:93%"
181 - v-model="form.originalWeight" :precision="2"></el-input-number> 181 + v-model="form.originalWeight"></el-input-number>
182 </el-form-item> 182 </el-form-item>
183 </el-col> 183 </el-col>
184 184
185 <el-col :span="12"> 185 <el-col :span="12">
186 <el-form-item label="额外增重百分比" prop="extraWeightPercent"> 186 <el-form-item label="额外增重百分比" prop="extraWeightPercent">
187 <el-input-number @change="LowHighAvailable" placeholder="请输入额外增重百分比" style="width:93%" 187 <el-input-number @change="LowHighAvailable" placeholder="请输入额外增重百分比" style="width:93%"
188 - v-model="form.extraWeightPercent" :precision="2"></el-input-number> 188 + v-model="form.extraWeightPercent"></el-input-number>
189 </el-form-item> 189 </el-form-item>
190 </el-col> 190 </el-col>
191 191
...@@ -207,14 +207,14 @@ ...@@ -207,14 +207,14 @@
207 <el-col :span="12"> 207 <el-col :span="12">
208 <el-form-item label="高价百分比" prop="highPriceWeightPercent"> 208 <el-form-item label="高价百分比" prop="highPriceWeightPercent">
209 <el-input-number :disabled="ishighPriceWeightPercent" @change="LowHighAvailable" placeholder="请输入高价百分比" style="width:93%" 209 <el-input-number :disabled="ishighPriceWeightPercent" @change="LowHighAvailable" placeholder="请输入高价百分比" style="width:93%"
210 - v-model="form.highPriceWeightPercent" :precision="2"></el-input-number> 210 + v-model="form.highPriceWeightPercent"></el-input-number>
211 </el-form-item> 211 </el-form-item>
212 </el-col> 212 </el-col>
213 213
214 <el-col :span="12"> 214 <el-col :span="12">
215 <el-form-item label="低价百分比" prop="lowPriceWeightPercent"> 215 <el-form-item label="低价百分比" prop="lowPriceWeightPercent">
216 <el-input-number :disabled="true" placeholder="请输入低价百分比" style="width:93%" 216 <el-input-number :disabled="true" placeholder="请输入低价百分比" style="width:93%"
217 - v-model="form.lowPriceWeightPercent" :precision="2"></el-input-number> 217 + v-model="form.lowPriceWeightPercent"></el-input-number>
218 </el-form-item> 218 </el-form-item>
219 </el-col> 219 </el-col>
220 220
...@@ -541,7 +541,6 @@ ...@@ -541,7 +541,6 @@
541 }, 541 },
542 //计算高地价可配 542 //计算高地价可配
543 LowHighAvailable() { 543 LowHighAvailable() {
544 -
545 //判断是否开启高地价 544 //判断是否开启高地价
546 if (this.form.highLowPriceFlg) { 545 if (this.form.highLowPriceFlg) {
547 this.ishighPriceWeightPercent=false; 546 this.ishighPriceWeightPercent=false;
...@@ -556,21 +555,33 @@ ...@@ -556,21 +555,33 @@
556 this.$set(this.form, "highAvailableWeight", (Weight - this.form.alloctedWeight) * (this.form 555 this.$set(this.form, "highAvailableWeight", (Weight - this.form.alloctedWeight) * (this.form
557 .highPriceWeightPercent / 100)); 556 .highPriceWeightPercent / 100));
558 // this.form.HighAvailableWeight = Weightall * (this.form.highPriceWeightPercent / 100) 557 // this.form.HighAvailableWeight = Weightall * (this.form.highPriceWeightPercent / 100)
559 - } else { 558 + }else if(this.title == "修改航班信息" && this.form.highPriceWeightPercent > 0){
559 + if(this.form.highAvailableWeight){
560 + this.$set(this.form, 'highAvailableWeight', this.form.highAvailableWeight)
561 + }else{
562 + this.$set(this.form, "highAvailableWeight", (Weight - this.form.alloctedWeight) * (this.form
563 + .highPriceWeightPercent / 100));
564 + }
565 + }else {
560 this.$set(this.form, "highAvailableWeight", 0); 566 this.$set(this.form, "highAvailableWeight", 0);
561 // this.form.HighAvailableWeight = 0; 567 // this.form.HighAvailableWeight = 0;
562 } 568 }
563 //低价可配 569 //低价可配
564 if (this.form.lowPriceWeightPercent > 0) { 570 if (this.form.lowPriceWeightPercent > 0) {
565 -
566 this.$set(this.form, "lowAvailableWeight", (Weight - this.form.alloctedWeight) - this.form 571 this.$set(this.form, "lowAvailableWeight", (Weight - this.form.alloctedWeight) - this.form
567 .highAvailableWeight); 572 .highAvailableWeight);
568 //this.form.lowAvailableWeight = Weightall - this.form.HighAvailableWeight; 573 //this.form.lowAvailableWeight = Weightall - this.form.HighAvailableWeight;
569 - } else { 574 + }else if(this.title == "修改航班信息" && this.form.lowPriceWeightPercent > 0){
575 + if(this.form.lowAvailableWeight){
576 + this.$set(this.form, 'lowAvailableWeight', this.form.lowAvailableWeight)
577 + }else{
578 + this.$set(this.form, "lowAvailableWeight", (Weight - this.form.alloctedWeight) - this.form
579 + .highAvailableWeight);
580 + }
581 + }else {
570 this.$set(this.form, "lowAvailableWeight", 0); 582 this.$set(this.form, "lowAvailableWeight", 0);
571 // this.form.lowAvailableWeight = 0; 583 // this.form.lowAvailableWeight = 0;
572 } 584 }
573 -
574 }else{ 585 }else{
575 this.ishighPriceWeightPercent=true; 586 this.ishighPriceWeightPercent=true;
576 } 587 }
...@@ -581,7 +592,7 @@ ...@@ -581,7 +592,7 @@
581 let Weight = 0; 592 let Weight = 0;
582 if (this.form.extraWeightPercent > 0) { 593 if (this.form.extraWeightPercent > 0) {
583 Weight = this.form.originalWeight + this.form.originalWeight * (this.form.extraWeightPercent / 100) 594 Weight = this.form.originalWeight + this.form.originalWeight * (this.form.extraWeightPercent / 100)
584 - } else { 595 + }else {
585 Weight = this.form.originalWeight; 596 Weight = this.form.originalWeight;
586 } 597 }
587 return Weight; 598 return Weight;
......