jinhui.wang

version:0.5.3,货物查询表头排序,table高度,按钮状态,顺位配舱更新,接口更新

...@@ -13,13 +13,12 @@ ...@@ -13,13 +13,12 @@
13 <el-dropdown class="avatar-container right-menu-item hover-effect" trigger="click"> 13 <el-dropdown class="avatar-container right-menu-item hover-effect" trigger="click">
14 <div class="avatar-wrapper"> 14 <div class="avatar-wrapper">
15 <img :src="avatar" class="user-avatar"> 15 <img :src="avatar" class="user-avatar">
16 - <!-- <i class="el-icon-caret-bottom" /> -->
17 </div> 16 </div>
18 <el-dropdown-menu slot="dropdown"> 17 <el-dropdown-menu slot="dropdown">
19 <router-link to="/user/profile"> 18 <router-link to="/user/profile">
20 - <el-dropdown-item>个人中心</el-dropdown-item> 19 + <!-- <el-dropdown-item>个人中心</el-dropdown-item> -->
21 </router-link> 20 </router-link>
22 - <el-dropdown-item divided @click.native="logout"> 21 + <el-dropdown-item @click.native="logout">
23 <span>退出登录</span> 22 <span>退出登录</span>
24 </el-dropdown-item> 23 </el-dropdown-item>
25 </el-dropdown-menu> 24 </el-dropdown-menu>
......
...@@ -88,7 +88,7 @@ export default { ...@@ -88,7 +88,7 @@ export default {
88 } 88 }
89 .el-scrollbar__wrap { 89 .el-scrollbar__wrap {
90 // height: 49px; 90 // height: 49px;
91 - margin-top:8px; 91 + margin-top:4px;
92 } 92 }
93 } 93 }
94 } 94 }
......
...@@ -225,7 +225,7 @@ export default { ...@@ -225,7 +225,7 @@ export default {
225 225
226 <style lang="scss" scoped> 226 <style lang="scss" scoped>
227 .tags-view-container { 227 .tags-view-container {
228 - height: 50px; 228 + height: 33px;
229 width: 100%; 229 width: 100%;
230 background: #fff; 230 background: #fff;
231 border-bottom: 1px solid #d8dce5; 231 border-bottom: 1px solid #d8dce5;
...@@ -243,7 +243,7 @@ export default { ...@@ -243,7 +243,7 @@ export default {
243 padding: 0 8px; 243 padding: 0 8px;
244 font-size: 12px; 244 font-size: 12px;
245 margin-left: 5px; 245 margin-left: 5px;
246 - margin-top: 4px; 246 + // margin-top: 4px;
247 &:first-of-type { 247 &:first-of-type {
248 margin-left: 15px; 248 margin-left: 15px;
249 } 249 }
......
...@@ -42,5 +42,5 @@ module.exports = { ...@@ -42,5 +42,5 @@ module.exports = {
42 /** 42 /**
43 * 版本号 43 * 版本号
44 */ 44 */
45 - version:'version:0.5.2' 45 + version:'version:0.5.3'
46 } 46 }
......
...@@ -9,7 +9,7 @@ axios.defaults.headers['Content-Type'] = 'application/json;charset=utf-8' ...@@ -9,7 +9,7 @@ axios.defaults.headers['Content-Type'] = 'application/json;charset=utf-8'
9 const service = axios.create({ 9 const service = axios.create({
10 // axios中请求配置有baseURL选项,表示请求URL公共部分 10 // axios中请求配置有baseURL选项,表示请求URL公共部分
11 //baseURL: process.env.VUE_APP_BASE_API, 11 //baseURL: process.env.VUE_APP_BASE_API,
12 - // baseURL: `http://47.103.140.98:9002`, 12 + // baseURL: `http://47.103.140.98:7001/IMAC2`,
13 baseURL: 'https://imacuat.zmd.apac.fedex.com/IMAC2', 13 baseURL: 'https://imacuat.zmd.apac.fedex.com/IMAC2',
14 // baseURL: 'http://192.168.1.134:18080', 14 // baseURL: 'http://192.168.1.134:18080',
15 15
......
...@@ -5,32 +5,37 @@ const mimeMap = { ...@@ -5,32 +5,37 @@ const mimeMap = {
5 xlsx: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 5 xlsx: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
6 zip: 'application/zip' 6 zip: 'application/zip'
7 } 7 }
8 -const baseUrl = 'https://imacuat.zmd.apac.fedex.com/IMAC2' 8 +const baseUrl = 'https://imacuat.zmd.apac.fedex.com/IMAC2' //uat服务器
9 -// const baseUrl = 'http://47.103.140.98:9002' 9 +// const baseUrl = 'http://47.103.140.98:7001/IMAC2' //阿里云服务器
10 -// const baseUrl = 'http://192.168.1.134:18080' 10 +// const baseUrl = 'http://192.168.1.133:7001/IMAC2' //测试服务器
11 export function downLoadZip(str, filename) { 11 export function downLoadZip(str, filename) {
12 var url = baseUrl + str 12 var url = baseUrl + str
13 axios({ 13 axios({
14 method: 'get', 14 method: 'get',
15 url: url, 15 url: url,
16 responseType: 'blob', 16 responseType: 'blob',
17 - headers: { 'Authorization': getToken() } 17 + headers: { 'Authorization': getToken() }
18 }).then(res => { 18 }).then(res => {
19 resolveBlob(res, mimeMap.zip) 19 resolveBlob(res, mimeMap.zip)
20 }) 20 })
21 } 21 }
22 -export function cargoXlsx(str,data) { 22 +export function cargoXlsx(str, data) {
23 var url = baseUrl + str 23 var url = baseUrl + str
24 - axios({ 24 + return new Promise((resolve,rej)=>{
25 - method: 'post', 25 + axios({
26 - url: url, 26 + method: 'post',
27 - data:data, 27 + url: url,
28 - responseType: 'blob', 28 + data: data,
29 - headers: { 'Authorization': getToken() } 29 + responseType: 'blob',
30 - }).then(res => { 30 + headers: { 'Authorization': getToken() }
31 - if(res.status === 200){ 31 + }).then(res => {
32 - cargoTableXlsx(res) 32 + if (res.status === 200) {
33 - } 33 + cargoTableXlsx(res)
34 + }
35 + resolve()
36 + }).catch((err)=>{
37 + rej(err)
38 + })
34 }) 39 })
35 } 40 }
36 /** 41 /**
...@@ -55,12 +60,12 @@ export function resolveBlob(res, mimeType) { ...@@ -55,12 +60,12 @@ export function resolveBlob(res, mimeType) {
55 } 60 }
56 61
57 //货物查询表导出 62 //货物查询表导出
58 -export function cargoTableXlsx(res){ 63 +export function cargoTableXlsx(val) {
59 - const aLink = document.createElement('a') 64 + const aLink = document.createElement('a')
60 - const fileName = "货物查询表.xlsx" 65 + const fileName = "货物查询表.xlsx"
61 - aLink.href = URL.createObjectURL(res.data) 66 + aLink.href = URL.createObjectURL(val.data)
62 - aLink.setAttribute('download', fileName) // 设置下载文件名称 67 + aLink.setAttribute('download', fileName) // 设置下载文件名称
63 - document.body.appendChild(aLink) 68 + document.body.appendChild(aLink)
64 - aLink.click() 69 + aLink.click()
65 - document.body.removeChild(aLink); 70 + document.body.removeChild(aLink);
66 } 71 }
......
1 <template> 1 <template>
2 <div class="app-container"> 2 <div class="app-container">
3 <el-form :model="queryParams" ref="queryForm" :inline="true"> 3 <el-form :model="queryParams" ref="queryForm" :inline="true">
4 - <el-form-item label="原航班" prop="sourceFlightNo"> 4 +
5 - <el-input v-model="queryParams.sourceFlightNo" placeholder="请输入原航班" clearable size="small" /> 5 + <el-form-item label="原航班">
6 + <el-input type="text" v-model="upCase" placeholder="请输入原航班" clearable class="formItem"></el-input>
7 + <!-- <el-input v-model="upCase" placeholder="请输入原航班" clearable size="small" /> -->
6 </el-form-item> 8 </el-form-item>
7 <el-form-item label="状态" prop="status"> 9 <el-form-item label="状态" prop="status">
8 <el-select v-model="queryParams.status" placeholder="请选择" clearable size="small"> 10 <el-select v-model="queryParams.status" placeholder="请选择" clearable size="small">
...@@ -37,7 +39,9 @@ ...@@ -37,7 +39,9 @@
37 39
38 40
39 <el-table v-loading="loading" :data="sourceFlightRulesList"> 41 <el-table v-loading="loading" :data="sourceFlightRulesList">
40 - 42 + <el-table-column type="index" label="序号" align="center">
43 + <template slot-scope="scope">{{ scope.$index + 1 }}</template>
44 + </el-table-column>
41 <el-table-column label="原航班" align="center" prop="sourceFlightNo" /> 45 <el-table-column label="原航班" align="center" prop="sourceFlightNo" />
42 <el-table-column label="配载航班排序" align="center" prop="flightRank" width="280" /> 46 <el-table-column label="配载航班排序" align="center" prop="flightRank" width="280" />
43 <!-- <el-table-column label="优先级" align="center" prop="priority" /> --> 47 <!-- <el-table-column label="优先级" align="center" prop="priority" /> -->
...@@ -52,9 +56,9 @@ ...@@ -52,9 +56,9 @@
52 <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)">修改</el-button> 56 <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)">修改</el-button>
53 <el-button size="mini" type="text" icon="el-icon-delete" @click="handleDeleteorPlayorpause(scope.row,0,'删除')"> 57 <el-button size="mini" type="text" icon="el-icon-delete" @click="handleDeleteorPlayorpause(scope.row,0,'删除')">
54 删除</el-button> 58 删除</el-button>
55 - <el-button size="mini" type="text" icon="el-icon-video-play" v-if="scope.row.status == '3'" 59 + <el-button size="mini" type="text" icon="el-icon-video-play" v-if="scope.row.status == '3'"
56 @click="handleDeleteorPlayorpause(scope.row,1,'启用')">启用</el-button> 60 @click="handleDeleteorPlayorpause(scope.row,1,'启用')">启用</el-button>
57 - <el-button size="mini" type="text" icon="el-icon-video-pause" v-if="scope.row.status == '1'" 61 + <el-button size="mini" type="text" icon="el-icon-video-pause" v-if="scope.row.status != '3'"
58 @click="handleDeleteorPlayorpause(scope.row,3,'停用')">停用</el-button> 62 @click="handleDeleteorPlayorpause(scope.row,3,'停用')">停用</el-button>
59 </template> 63 </template>
60 </el-table-column> 64 </el-table-column>
...@@ -67,13 +71,16 @@ ...@@ -67,13 +71,16 @@
67 <!-- 查看目的航班对话框 --> 71 <!-- 查看目的航班对话框 -->
68 <el-dialog title="实际配载航班" :visible.sync="openFlightDate" width="70%" :close-on-click-modal="false" :append-to-body="true"> 72 <el-dialog title="实际配载航班" :visible.sync="openFlightDate" width="70%" :close-on-click-modal="false" :append-to-body="true">
69 <el-table v-loading="loadingFlightDate" :data="sourceFlightAndFlightDate"> 73 <el-table v-loading="loadingFlightDate" :data="sourceFlightAndFlightDate">
70 - 74 + <el-table-column type="index" label="序号" align="center">
75 + <template slot-scope="scope">{{ scope.$index + 1 }}</template>
76 + </el-table-column>
71 <el-table-column label="原航班" align="center" prop="sourceFlightNo" /> 77 <el-table-column label="原航班" align="center" prop="sourceFlightNo" />
72 <el-table-column label="实际配载航班" align="center" prop="actualFlight" width="280" /> 78 <el-table-column label="实际配载航班" align="center" prop="actualFlight" width="280" />
73 <el-table-column label="航班日期" align="center" prop="flightDate" /> 79 <el-table-column label="航班日期" align="center" prop="flightDate" />
74 <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="200"> 80 <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="200">
75 <template slot-scope="scope"> 81 <template slot-scope="scope">
76 - <el-button size="mini" type="text" icon="el-icon-edit" @click="handleClick(scope.row.sourceFlightNo, 'detail')">查看配置维度</el-button> 82 + <el-button size="mini" type="text" icon="el-icon-edit"
83 + @click="handleClick(scope.row.actualFlight, 'detail')">查看配置维度</el-button>
77 </template> 84 </template>
78 </el-table-column> 85 </el-table-column>
79 </el-table> 86 </el-table>
...@@ -84,7 +91,7 @@ ...@@ -84,7 +91,7 @@
84 91
85 92
86 <!-- 添加或修改对话框 --> 93 <!-- 添加或修改对话框 -->
87 - <el-dialog :title="title" :visible.sync="open" width="60%" :close-on-click-modal="false" :append-to-body="true"> 94 + <el-dialog :title="title" :visible.sync="open" width="55%" :append-to-body="true" :close-on-click-modal="false">
88 <el-form ref="form" :model="form" :rules="rules" label-width="100px"> 95 <el-form ref="form" :model="form" :rules="rules" label-width="100px">
89 <el-row> 96 <el-row>
90 <el-col :span="10"> 97 <el-col :span="10">
...@@ -94,7 +101,7 @@ ...@@ -94,7 +101,7 @@
94 </el-col> 101 </el-col>
95 </el-row> 102 </el-row>
96 <el-row> 103 <el-row>
97 - <el-col :span="12"> 104 + <el-col :span="8">
98 <el-form-item label="有效开始时间" prop="startDate"> 105 <el-form-item label="有效开始时间" prop="startDate">
99 <el-date-picker clearable size="small" :picker-options="pickerOptionsStart" v-model="form.startDate" 106 <el-date-picker clearable size="small" :picker-options="pickerOptionsStart" v-model="form.startDate"
100 type="date" value-format="yyyy-MM-dd" placeholder="选择开始时间"> 107 type="date" value-format="yyyy-MM-dd" placeholder="选择开始时间">
...@@ -110,8 +117,8 @@ ...@@ -110,8 +117,8 @@
110 </el-col> 117 </el-col>
111 118
112 <el-col :span="24" style="margin-bottom: 5%;"> 119 <el-col :span="24" style="margin-bottom: 5%;">
113 - <span style="color: red;margin-left: 10%;">提示:配载航班之同请用分号分隔【符号不区分中英文】,例:CA1053:C7433</span><br /> 120 + <span style="color: red;margin-left: 10%;">提示:配载航班之同请用分号分隔【符号不区分中英文】,例:CA1053;C7433</span><br />
114 - <span style="color: red;margin-left: 10%;">提示:如果需要设置配载航班延迟或提前可以直接在目的航斑后加减【+-】天数。如:CA1053+1:CZ433-1</span> 121 + <span style="color: red;margin-left: 10%;">提示:如果需要设置配载航班延迟或提前可以直接在目的航斑后加减【+-】天数。如:CA1053+1;CZ433-1</span>
115 </el-col> 122 </el-col>
116 <el-col :span="24"> 123 <el-col :span="24">
117 <el-form-item label="配载航班" prop="flightRank"> 124 <el-form-item label="配载航班" prop="flightRank">
...@@ -186,7 +193,7 @@ ...@@ -186,7 +193,7 @@
186 statusList: [{ 193 statusList: [{
187 'id': 1, 194 'id': 1,
188 'name': '有效' 195 'name': '有效'
189 - },{ 196 + }, {
190 'id': 3, 197 'id': 3,
191 'name': '停用' 198 'name': '停用'
192 }], 199 }],
...@@ -230,9 +237,13 @@ ...@@ -230,9 +237,13 @@
230 //跳转到查看,修改页面 237 //跳转到查看,修改页面
231 handleClick(flightiId, handle) { 238 handleClick(flightiId, handle) {
232 this.$router.push({ 239 this.$router.push({
233 - name: "Info", 240 + name: "flightAllocConfigInfo",
234 - params: { handle: handle, id: flightiId }, 241 + params: {
242 + handle: handle,
243 + id: flightiId
244 + },
235 }); 245 });
246 +
236 }, 247 },
237 /** 查询原航班顺位规则*/ 248 /** 查询原航班顺位规则*/
238 findSourceFlightRules() { 249 findSourceFlightRules() {
...@@ -270,14 +281,14 @@ ...@@ -270,14 +281,14 @@
270 this.dayOfWeek = []; 281 this.dayOfWeek = [];
271 this.open = true; 282 this.open = true;
272 this.title = "修改原航班顺位规则"; 283 this.title = "修改原航班顺位规则";
273 - this.form = row; 284 + this.form = JSON.parse(JSON.stringify(row));
274 this.dayOfWeek = this.form.dayOfWeek ? this.form.dayOfWeek.split(";") : []; 285 this.dayOfWeek = this.form.dayOfWeek ? this.form.dayOfWeek.split(";") : [];
275 //this.form.dayOfWeek = this.form.dayOfWeek ? this.form.dayOfWeek.split(";") : []; 286 //this.form.dayOfWeek = this.form.dayOfWeek ? this.form.dayOfWeek.split(";") : [];
276 287
277 }, 288 },
278 /** 删除 启用 停用按钮操作 */ 289 /** 删除 启用 停用按钮操作 */
279 handleDeleteorPlayorpause(row, status, statusText) { 290 handleDeleteorPlayorpause(row, status, statusText) {
280 - debugger 291 + // debugger
281 //删除前需要停用 292 //删除前需要停用
282 if (status === 0 && row.status != '3') { 293 if (status === 0 && row.status != '3') {
283 this.$message({ 294 this.$message({
...@@ -314,8 +325,17 @@ ...@@ -314,8 +325,17 @@
314 this.$refs["form"].validate(valid => { 325 this.$refs["form"].validate(valid => {
315 if (valid) { 326 if (valid) {
316 this.form.dayOfWeek = this.dayOfWeek.sort(); 327 this.form.dayOfWeek = this.dayOfWeek.sort();
328 + let formdata = JSON.parse(JSON.stringify(this.form));
329 + formdata.sourceFlightNo=formdata.sourceFlightNo.trim().toUpperCase();
330 + formdata.flightRank=formdata.flightRank.trim().toUpperCase();
331 + if (formdata.startDate === undefined || formdata.startDate == null) {
332 + formdata.startDate = "";
333 + }
334 + if (formdata.endDate === undefined || formdata.endDate == null) {
335 + formdata.endDate = "";
336 + }
317 //处理数据 337 //处理数据
318 - sourceFlightRulesSaveApi(this.form).then(response => { 338 + sourceFlightRulesSaveApi(formdata).then(response => {
319 if (response.code === 200) { 339 if (response.code === 200) {
320 this.msgSuccess("保存成功"); 340 this.msgSuccess("保存成功");
321 this.open = false; 341 this.open = false;
...@@ -372,13 +392,14 @@ ...@@ -372,13 +392,14 @@
372 // 取消按钮 392 // 取消按钮
373 cancel() { 393 cancel() {
374 this.open = false; 394 this.open = false;
375 - // this.reset(); 395 + //this.reset();
376 }, 396 },
377 // 状态字典翻译 397 // 状态字典翻译
378 statusFormat(row) { 398 statusFormat(row) {
399 +
379 if (row.status === '1') { 400 if (row.status === '1') {
380 return '有效' 401 return '有效'
381 - } else if (row.status === '2') { 402 + } else if (row.status === '0') {
382 return '执行中' 403 return '执行中'
383 } else if (row.status === '3') { 404 } else if (row.status === '3') {
384 return '停用' 405 return '停用'
...@@ -387,6 +408,7 @@ ...@@ -387,6 +408,7 @@
387 }, 408 },
388 /** 重置按钮操作 */ 409 /** 重置按钮操作 */
389 resetQuery() { 410 resetQuery() {
411 + this.queryParams.sourceFlightNo = undefined
390 this.resetForm("queryForm"); 412 this.resetForm("queryForm");
391 this.handleQuery(); 413 this.handleQuery();
392 }, 414 },
...@@ -395,9 +417,19 @@ ...@@ -395,9 +417,19 @@
395 this.queryParams.pageNum = 1; 417 this.queryParams.pageNum = 1;
396 this.queryParams.start = 0; 418 this.queryParams.start = 0;
397 this.findSourceFlightRules(); 419 this.findSourceFlightRules();
398 - } 420 + },
399 421
400 - } 422 + },
423 + computed: {
424 + upCase: {
425 + get: function() {
426 + return this.queryParams.sourceFlightNo;
427 + },
428 + set: function(val) {
429 + this.queryParams.sourceFlightNo = val.toUpperCase();
430 + },
431 + },
432 + },
401 }; 433 };
402 </script> 434 </script>
403 <style> 435 <style>
......
1 <template> 1 <template>
2 - <div class="cargoPage" v-loading="downloading"> 2 + <div class="cargoPage">
3 <el-form 3 <el-form
4 ref="cargoForm" 4 ref="cargoForm"
5 size="small" 5 size="small"
...@@ -136,7 +136,7 @@ ...@@ -136,7 +136,7 @@
136 </el-form-item> 136 </el-form-item>
137 </el-col> 137 </el-col>
138 <el-col :span="6"> 138 <el-col :span="6">
139 - <el-form-item label="ACCS航班号:"> 139 + <el-form-item label="ACCS航班号:">
140 <el-input type="text" v-model="fltNo" class="formItem" placeholder="请输入ACCS航班号"></el-input> 140 <el-input type="text" v-model="fltNo" class="formItem" placeholder="请输入ACCS航班号"></el-input>
141 </el-form-item> 141 </el-form-item>
142 </el-col> 142 </el-col>
...@@ -300,16 +300,17 @@ ...@@ -300,16 +300,17 @@
300 type="primary" 300 type="primary"
301 icon="el-icon-search" 301 icon="el-icon-search"
302 size="small" 302 size="small"
303 + :loading="tableLoading"
303 @click="select" 304 @click="select"
304 >查询</el-button 305 >查询</el-button
305 > 306 >
306 <el-button type="primary" size="small" @click="checks(tableData)" 307 <el-button type="primary" size="small" @click="checks(tableData)"
307 >全选/全否</el-button 308 >全选/全否</el-button
308 > 309 >
309 - <el-button type="primary" size="small" @click="xlse(0)" v-dbClick :disabled="tableData.length==0" 310 + <el-button type="primary" size="small" @click="xlse(0)" v-dbClick :disabled="tableData.length==0" :loading="downloading"
310 >导出本页查询结果</el-button 311 >导出本页查询结果</el-button
311 > 312 >
312 - <el-button type="primary" size="small" @click="xlse(1)" v-dbClick :disabled="tableData.length==0" 313 + <el-button type="primary" size="small" @click="xlse(1)" v-dbClick :disabled="tableData.length==0" :loading="downloading"
313 >导出全部查询结果</el-button 314 >导出全部查询结果</el-button
314 > 315 >
315 <div class="tips"> 316 <div class="tips">
...@@ -323,6 +324,7 @@ ...@@ -323,6 +324,7 @@
323 :data="tableData" 324 :data="tableData"
324 v-loading="tableLoading" 325 v-loading="tableLoading"
325 highlight-current-row border stripe 326 highlight-current-row border stripe
327 + height="430"
326 size="mini" 328 size="mini"
327 @select="cheacked" 329 @select="cheacked"
328 @select-all="selectAll" 330 @select-all="selectAll"
...@@ -392,50 +394,50 @@ export default { ...@@ -392,50 +394,50 @@ export default {
392 cargoPlaneEnd:null, 394 cargoPlaneEnd:null,
393 }, //表单数据 395 }, //表单数据
394 tableHeader: [ 396 tableHeader: [
397 + { name: "口岸代码", value: "portName" },
395 { name: "取件日期", value: "pickUpDate" }, 398 { name: "取件日期", value: "pickUpDate" },
396 { name: "取件扫描号", value: "pickUpScanNo" }, 399 { name: "取件扫描号", value: "pickUpScanNo" },
397 - { name: "服务类型", value: "serviceTypeName" }, 400 + { name: "站点", value: "siteName" },
398 { name: "运单号", value: "waybillNo" }, 401 { name: "运单号", value: "waybillNo" },
402 + { name: "服务类型", value: "serviceTypeName" },
403 + { name: "URSA", value: "ursa" },
404 + { name: "申报类型", value: "typeName" },
405 + { name: "HandlingCode", value: "handingCode" },
406 + { name: "subcategory", value: "subCategory" },
407 + { name: "件数", value: "qty" },
408 + { name: "实际重量", value: "actualWeight" },
409 + { name: "收件人国家代码", value: "consigneeCountry" },
410 + { name: "品名描述", value: "nameDescription" },
411 + { name: "海关回执状态", value: "customsReceiptStatusName" },
399 { name: "总单号", value: "totalWaybillNo" }, 412 { name: "总单号", value: "totalWaybillNo" },
413 + { name: "预审状态", value: "preQualificationStatus" },
414 + { name: "航班预审意见", value: "caPretrialOpinion" },
400 { name: "货物状态", value: "statusName" }, 415 { name: "货物状态", value: "statusName" },
416 + { name: "终配航班号", value: "finalFlightNo" },
417 + { name: "终配航班日期", value: "finalFlightTime" },
418 + { name: "二配航班号", value: "twoMatchFlightNo" },
419 + { name: "二配航班日期", value: "twoMatchFlightTime" },
420 + { name: "预配航班号", value: "preplanFlightNo" },
421 + { name: "预配航班日期", value: "preplanFlightTime" },
401 { name: "ACCS原航班号", value: "fltNoAccs" }, 422 { name: "ACCS原航班号", value: "fltNoAccs" },
402 { name: "ACCS原航班日期", value: "fltDateAccs" }, 423 { name: "ACCS原航班日期", value: "fltDateAccs" },
403 { name: "ACCS原航线", value: "accsFlightRoute" }, 424 { name: "ACCS原航线", value: "accsFlightRoute" },
404 - { name: "预配航班日期", value: "preplanFlightTime" }, 425 + { name: "是否RDE手工录入", value: "manualRde" },
405 - { name: "预配航班号", value: "preplanFlightNo" }, 426 + { name: "是否自动", value: "cargoRulesStatus" },
406 - { name: "二配航班日期", value: "twoMatchFlightTime" },
407 - { name: "二配航班号", value: "twoMatchFlightNo" },
408 - { name: "终配航班日期", value: "finalFlightTime" },
409 - { name: "终配航班号", value: "finalFlightNo" },
410 - { name: "件数", value: "qty" },
411 - { name: "实际重量", value: "actualWeight" },
412 - { name: "申报类型", value: "typeName" },
413 - { name: "口岸代码", value: "portName" },
414 - { name: "subcategory", value: "subCategory" },
415 { name: "发件人账号", value: "shipperAccount" }, 427 { name: "发件人账号", value: "shipperAccount" },
416 { name: "发件公司中文名称", value: "shipperCompany" }, 428 { name: "发件公司中文名称", value: "shipperCompany" },
417 - { name: "是否RDE手工录入", value: "manualRde" },
418 - { name: "HandlingCode", value: "handingCode" },
419 - { name: "品名描述", value: "nameDescription" },
420 - { name: "站点", value: "siteName" },
421 { name: "始发地城市名称", value: "originCity" }, 429 { name: "始发地城市名称", value: "originCity" },
422 { name: "收件地", value: "destinationSiteName" }, 430 { name: "收件地", value: "destinationSiteName" },
423 - { name: "收件人国家代码", value: "consigneeCountry" },
424 - { name: "URSA", value: "ursa" },
425 { name: "尺寸", value: "sizeStr" }, 431 { name: "尺寸", value: "sizeStr" },
426 - { name: "海关回执状态", value: "customsReceiptStatusName" },
427 - { name: "海关回执时间", value: "customsReceiptTime" },
428 - { name: "预审状态", value: "preQualificationStatus" },
429 - { name: "CA预审意见", value: "caPretrialOpinion" },
430 - { name: "CA预审时间", value: "caPretrialTime" },
431 { 432 {
432 - name: "大货预审意见(是否可以配置CA航班)", 433 + name: "大货预审意见(是否可以配置航班)",
433 value: "bigPretrialOpinion", 434 value: "bigPretrialOpinion",
434 }, 435 },
435 { name: "大货预审时间", value: "bigPretrialTime" }, 436 { name: "大货预审时间", value: "bigPretrialTime" },
436 - { name: "创建人", value: "createUserId" }, 437 + { name: "海关回执时间", value: "customsReceiptTime" },
438 + { name: "航班预审时间", value: "caPretrialTime" },
439 + { name: "创建人", value: "createUserName" },
437 { name: "创建时间", value: "createTime" }, 440 { name: "创建时间", value: "createTime" },
438 - { name: "是否自动", value: "cargoRulesStatus" },
439 ], //表头数据 441 ], //表头数据
440 findConditionData: {}, //货物查询条件 442 findConditionData: {}, //货物查询条件
441 tableData: [], //表格数据 443 tableData: [], //表格数据
...@@ -647,6 +649,7 @@ export default { ...@@ -647,6 +649,7 @@ export default {
647 }, 649 },
648 // 导出表格 650 // 导出表格
649 xlse(page) { 651 xlse(page) {
652 + this.downloading = true;
650 let cargoXlse = {title:"货物导出表",cargoConditionDto:{}}; 653 let cargoXlse = {title:"货物导出表",cargoConditionDto:{}};
651 if(this.formData.customsReceiptStatusId != null && this.formData.customsReceiptStatusId.length < 1){ 654 if(this.formData.customsReceiptStatusId != null && this.formData.customsReceiptStatusId.length < 1){
652 this.formData.customsReceiptStatusId = null; 655 this.formData.customsReceiptStatusId = null;
...@@ -688,12 +691,15 @@ export default { ...@@ -688,12 +691,15 @@ export default {
688 cargoXlse.cargoConditionDto.limitStart = 0; 691 cargoXlse.cargoConditionDto.limitStart = 0;
689 cargoXlse.cargoConditionDto.limitSize = -1; 692 cargoXlse.cargoConditionDto.limitSize = -1;
690 } 693 }
691 - cargoXlsx("/cargo/excel",cargoXlse) 694 + cargoXlsx("/cargo/excel",cargoXlse).then(()=>{
695 + this.downloading = false;
696 + }).catch(()=>{
697 + this.downloading = false;
698 + })
692 }, 699 },
693 //表格格式化 700 //表格格式化
694 formatter(row,column,cellValue,index){ 701 formatter(row,column,cellValue,index){
695 if(column.property=="cargoRulesStatus"){ 702 if(column.property=="cargoRulesStatus"){
696 - console.log()
697 if(cellValue == 1){ 703 if(cellValue == 1){
698 return cellValue = "手动" 704 return cellValue = "手动"
699 }else if(cellValue == 2){ 705 }else if(cellValue == 2){
......
...@@ -36,7 +36,7 @@ module.exports = { ...@@ -36,7 +36,7 @@ module.exports = {
36 // detail: https://cli.vuejs.org/config/#devserver-proxy 36 // detail: https://cli.vuejs.org/config/#devserver-proxy
37 [process.env.VUE_APP_BASE_API]: { 37 [process.env.VUE_APP_BASE_API]: {
38 target: `https://imacuat.zmd.apac.fedex.com/IMAC2`, 38 target: `https://imacuat.zmd.apac.fedex.com/IMAC2`,
39 - // target: `http://47.103.140.98:9002`, 39 + // target: `http://47.103.140.98:7001/IMAC2`,
40 // target: `http://192.168.1.134:18080`, 40 // target: `http://192.168.1.134:18080`,
41 changeOrigin: true, 41 changeOrigin: true,
42 pathRewrite: { 42 pathRewrite: {
......