正在显示
4 个修改的文件
包含
101 行增加
和
0 行删除
| @@ -23,6 +23,17 @@ export default { | @@ -23,6 +23,17 @@ export default { | ||
| 23 | } | 23 | } |
| 24 | }); | 24 | }); |
| 25 | }, | 25 | }, |
| 26 | + getStream(url, params) { | ||
| 27 | + return axios({ | ||
| 28 | + method: 'GET', | ||
| 29 | + url: url, | ||
| 30 | + responseType: 'arraybuffer', | ||
| 31 | + params: params, | ||
| 32 | + headers: { | ||
| 33 | + 'Content-Type': 'application/x-www-form-urlencoded' | ||
| 34 | + } | ||
| 35 | + }); | ||
| 36 | + }, | ||
| 26 | put(url, params){ | 37 | put(url, params){ |
| 27 | return axios({ | 38 | return axios({ |
| 28 | method: 'PUT', | 39 | method: 'PUT', |
src/api/statictis.js
0 → 100644
| @@ -49,6 +49,7 @@ import Page7 from './views/nav3/Page7.vue' | @@ -49,6 +49,7 @@ import Page7 from './views/nav3/Page7.vue' | ||
| 49 | import importFFMMsg from './views/airRadioMsg/importFFMMsg.vue' | 49 | import importFFMMsg from './views/airRadioMsg/importFFMMsg.vue' |
| 50 | import importFHLMsg from './views/airRadioMsg/importFHLMsg.vue' | 50 | import importFHLMsg from './views/airRadioMsg/importFHLMsg.vue' |
| 51 | import importFWBMsg from './views/airRadioMsg/importFWBMsg.vue' | 51 | import importFWBMsg from './views/airRadioMsg/importFWBMsg.vue' |
| 52 | +import statis from './views/nmms_import/statistics' | ||
| 52 | 53 | ||
| 53 | 54 | ||
| 54 | 55 | ||
| @@ -337,6 +338,7 @@ let routes = [ | @@ -337,6 +338,7 @@ let routes = [ | ||
| 337 | {path:'/tallymaster',component:TallyMster,name:'进港理货舱单'}, | 338 | {path:'/tallymaster',component:TallyMster,name:'进港理货舱单'}, |
| 338 | {path:'/importallocation',component:Importallocation,name:'进港分拨'}, | 339 | {path:'/importallocation',component:Importallocation,name:'进港分拨'}, |
| 339 | {path:'/allocatearrive',component:Allocatearrive,name:'分拨运抵'}, | 340 | {path:'/allocatearrive',component:Allocatearrive,name:'分拨运抵'}, |
| 341 | + {path:'/statis',component:statis,name:'进港舱单统计'} | ||
| 340 | ] | 342 | ] |
| 341 | }, | 343 | }, |
| 342 | // 货运系统--航班预配 | 344 | // 货运系统--航班预配 |
src/views/nmms_import/statistics.vue
0 → 100644
| 1 | +<template> | ||
| 2 | + <el-container> | ||
| 3 | + <el-main> | ||
| 4 | + <el-row class="row-bg"> | ||
| 5 | + <el-col :span="24"><div class="grid-content content co">进港舱单统计</div></el-col> | ||
| 6 | + </el-row> | ||
| 7 | + <el-row style="display: block;background-color: white"> | ||
| 8 | + <el-row> | ||
| 9 | + <el-col :span="5"> | ||
| 10 | + <span> | ||
| 11 | + 航班号: | ||
| 12 | + </span> | ||
| 13 | + <el-input placeholder="" v-model="defaultQuery.flightno" style="width: 150px"> | ||
| 14 | + </el-input> | ||
| 15 | + </el-col> | ||
| 16 | + <el-col :span="5"> | ||
| 17 | + <span> | ||
| 18 | + 航班开始日期: | ||
| 19 | + </span> | ||
| 20 | + <el-date-picker | ||
| 21 | + v-model="defaultQuery.subTime" | ||
| 22 | + type="date" | ||
| 23 | + value-format="yyyy-MM-dd" style="width: 150px" | ||
| 24 | + placeholder="航班开始日期"> | ||
| 25 | + </el-date-picker> | ||
| 26 | + </el-col> | ||
| 27 | + <el-col :span="5"> | ||
| 28 | + <span> | ||
| 29 | + 航班结束日期: | ||
| 30 | + </span> | ||
| 31 | + <el-date-picker | ||
| 32 | + v-model="defaultQuery.nowTime" | ||
| 33 | + type="date" | ||
| 34 | + value-format="yyyy-MM-dd" style="width: 150px" | ||
| 35 | + placeholder="航班结束日期"> | ||
| 36 | + </el-date-picker> | ||
| 37 | + </el-col> | ||
| 38 | + <el-col :span="2"> | ||
| 39 | + <el-col :span="8" style="margin-right: 0px"> | ||
| 40 | + <el-button type="primary" v-on:click="QueryData">导出EXCEL</el-button> | ||
| 41 | + </el-col> | ||
| 42 | + </el-col> | ||
| 43 | + </el-row> | ||
| 44 | + </el-row> | ||
| 45 | + </el-main> | ||
| 46 | + </el-container> | ||
| 47 | +</template> | ||
| 48 | +<script> | ||
| 49 | + import{QueryData} from "../../api/statictis"; | ||
| 50 | + export default { | ||
| 51 | + data() { | ||
| 52 | + return{ | ||
| 53 | + defaultQuery:{ | ||
| 54 | + flightno:'', | ||
| 55 | + subTime:'2018-06-06', | ||
| 56 | + nowTime:'2018-06-07' | ||
| 57 | + }, | ||
| 58 | + tableData:[], | ||
| 59 | + tableloading:false | ||
| 60 | + } | ||
| 61 | + }, | ||
| 62 | + methods:{ | ||
| 63 | + QueryData(){ | ||
| 64 | + this.tableData=[]; | ||
| 65 | + if(!this.defaultQuery.subTime=="" && !this.defaultQuery.nowTime==""){ | ||
| 66 | + let params={carrier:this.defaultQuery.flightno, | ||
| 67 | + subTime:this.defaultQuery.subTime,nowTime:this.defaultQuery.nowTime}; | ||
| 68 | + this.tableloading=true; | ||
| 69 | + window.open('/api/statistics/selectDevList?nowTime='+this.defaultQuery.nowTime+'&subTime='+this.defaultQuery.subTime,'_blank'); | ||
| 70 | + QueryData(params).then(res =>{ | ||
| 71 | + /*if(res.byteLength!==0){ | ||
| 72 | + fileDownload(res,'sss.xls'); | ||
| 73 | + }else{ | ||
| 74 | + Message.error("无法找到对应的文件!!!"); | ||
| 75 | + }*/ | ||
| 76 | + this.tableloading = false; | ||
| 77 | + }); | ||
| 78 | + }else{ | ||
| 79 | + this.$message.error('航班开始结束日期必须选择!'); | ||
| 80 | + } | ||
| 81 | + | ||
| 82 | + } | ||
| 83 | + } | ||
| 84 | + } | ||
| 85 | +</script> |
-
请 注册 或 登录 后发表评论