jinhui.wang

dm页面完善

...@@ -934,40 +934,28 @@ let tableHeaders = { ...@@ -934,40 +934,28 @@ let tableHeaders = {
934 //dm数据处理 934 //dm数据处理
935 "DM": [ 935 "DM": [
936 { 936 {
937 - columnChineseName: "运单号", 937 + columnChineseName: "AccsId",
938 - columnName: "awbNbr", 938 + columnName: "dmAccsId",
939 - columnWidth: "150",
940 - status: 1,
941 - slot: true
942 - },
943 - {
944 - columnChineseName: "配舱备注",
945 - columnName: "remarksDetail",
946 - columnWidth: "450",
947 - status: 1
948 - },
949 - {
950 - columnChineseName: "回推ACCS结果",
951 - columnName: "sendLogSendResult",
952 columnWidth: "120", 939 columnWidth: "120",
953 status: 1 940 status: 1
954 }, 941 },
955 { 942 {
956 - columnChineseName: "处理状态", 943 + columnChineseName: "口岸代码",
957 - columnName: "statusDetailCode", 944 + columnName: "routeDest",
958 - columnWidth: "150", 945 + columnWidth: "",
959 status: 1 946 status: 1
960 }, 947 },
961 { 948 {
962 - columnChineseName: "处理结果", 949 + columnChineseName: "运单号",
963 - columnName: "statusDetailDesc", 950 + columnName: "awbNbr",
964 - columnWidth: "250", 951 + columnWidth: "150",
965 - status: 1 952 + status: 1,
953 + slot: true
966 }, 954 },
967 { 955 {
968 - columnChineseName: "是否生成上架流水", 956 + columnChineseName: "Accs Pool",
969 - columnName: "weatherGenerateWater", 957 + columnName: "accsPool",
970 - columnWidth: "130", 958 + columnWidth: "100",
971 status: 1 959 status: 1
972 }, 960 },
973 { 961 {
...@@ -984,8 +972,20 @@ let tableHeaders = { ...@@ -984,8 +972,20 @@ let tableHeaders = {
984 status: 1 972 status: 1
985 }, 973 },
986 { 974 {
987 - columnChineseName: "DM推送时间", 975 + columnChineseName: "ACCS原航班号",
988 - columnName: "dmSendTime", 976 + columnName: "dmFlightNbr",
977 + columnWidth: "120",
978 + status: 1
979 + },
980 + {
981 + columnChineseName: "ACCS原航班日期",
982 + columnName: "dmFlightDate",
983 + columnWidth: "150",
984 + status: 1
985 + },
986 + {
987 + columnChineseName: "货物创建时间",
988 + columnName: "cargoCreateTime",
989 columnWidth: "150", 989 columnWidth: "150",
990 status: 1 990 status: 1
991 }, 991 },
...@@ -996,8 +996,8 @@ let tableHeaders = { ...@@ -996,8 +996,8 @@ let tableHeaders = {
996 status: 1 996 status: 1
997 }, 997 },
998 { 998 {
999 - columnChineseName: "货物创建时间", 999 + columnChineseName: "DM推送时间",
1000 - columnName: "cargoCreateTime", 1000 + columnName: "dmSendTime",
1001 columnWidth: "150", 1001 columnWidth: "150",
1002 status: 1 1002 status: 1
1003 }, 1003 },
...@@ -1008,6 +1008,18 @@ let tableHeaders = { ...@@ -1008,6 +1008,18 @@ let tableHeaders = {
1008 status: 1 1008 status: 1
1009 }, 1009 },
1010 { 1010 {
1011 + columnChineseName: "回推ACCS结果",
1012 + columnName: "sendLogSendResult",
1013 + columnWidth: "120",
1014 + status: 1
1015 + },
1016 + {
1017 + columnChineseName: "推送状态",
1018 + columnName: "cargoPushStatus",
1019 + columnWidth: "",
1020 + status: 1
1021 + },
1022 + {
1011 columnChineseName: "配舱类型", 1023 columnChineseName: "配舱类型",
1012 columnName: "cargoAllocationType", 1024 columnName: "cargoAllocationType",
1013 columnWidth: "100", 1025 columnWidth: "100",
...@@ -1020,45 +1032,39 @@ let tableHeaders = { ...@@ -1020,45 +1032,39 @@ let tableHeaders = {
1020 status: 1 1032 status: 1
1021 }, 1033 },
1022 { 1034 {
1023 - columnChineseName: "ACCS航班号", 1035 + columnChineseName: "配舱备注",
1024 - columnName: "dmFlightNbr", 1036 + columnName: "remarksDetail",
1025 - columnWidth: "120", 1037 + columnWidth: "450",
1026 status: 1 1038 status: 1
1027 }, 1039 },
1028 { 1040 {
1029 - columnChineseName: "ACCS航班日期", 1041 + columnChineseName: "处理状态",
1030 - columnName: "dmFlightDate", 1042 + columnName: "statusDetailCode",
1031 columnWidth: "150", 1043 columnWidth: "150",
1032 status: 1 1044 status: 1
1033 }, 1045 },
1034 { 1046 {
1035 - columnChineseName: "推送状态", 1047 + columnChineseName: "处理结果",
1036 - columnName: "cargoPushStatus", 1048 + columnName: "statusDetailDesc",
1037 - columnWidth: "", 1049 + columnWidth: "250",
1038 status: 1 1050 status: 1
1039 }, 1051 },
1040 { 1052 {
1041 - columnChineseName: "AccsId", 1053 + columnChineseName: "是否生成上架流水",
1042 - columnName: "dmAccsId", 1054 + columnName: "weatherGenerateWater",
1043 - columnWidth: "120", 1055 + columnWidth: "130",
1044 status: 1 1056 status: 1
1045 }, 1057 },
1058 + ],
1059 + //流水表
1060 + "weatherTable": [
1046 { 1061 {
1047 - columnChineseName: "口岸代码", 1062 + columnChineseName: "AccsId",
1048 - columnName: "routeDest", 1063 + columnName: "accsId",
1049 columnWidth: "", 1064 columnWidth: "",
1050 status: 1 1065 status: 1
1051 }, 1066 },
1052 { 1067 {
1053 - columnChineseName: "Accs Pool",
1054 - columnName: "accsPool",
1055 - columnWidth: "100",
1056 - status: 1
1057 - },
1058 - ],
1059 - //流水表
1060 - "weatherTable": [
1061 - {
1062 columnChineseName: "运单号", 1068 columnChineseName: "运单号",
1063 columnName: "waybillNo", 1069 columnName: "waybillNo",
1064 columnWidth: "", 1070 columnWidth: "",
...@@ -1077,6 +1083,12 @@ let tableHeaders = { ...@@ -1077,6 +1083,12 @@ let tableHeaders = {
1077 status: 1 1083 status: 1
1078 }, 1084 },
1079 { 1085 {
1086 + columnChineseName: "申报类别",
1087 + columnName: "declarationCategory",
1088 + columnWidth: "",
1089 + status: 1
1090 + },
1091 + {
1080 columnChineseName: "是否开启高地价", 1092 columnChineseName: "是否开启高地价",
1081 columnName: "highLowPriceFlg", 1093 columnName: "highLowPriceFlg",
1082 columnWidth: "", 1094 columnWidth: "",
...@@ -1101,18 +1113,6 @@ let tableHeaders = { ...@@ -1101,18 +1113,6 @@ let tableHeaders = {
1101 status: 1 1113 status: 1
1102 }, 1114 },
1103 { 1115 {
1104 - columnChineseName: "AccsId",
1105 - columnName: "accsId",
1106 - columnWidth: "",
1107 - status: 1
1108 - },
1109 - {
1110 - columnChineseName: "申报类别",
1111 - columnName: "declarationCategory",
1112 - columnWidth: "",
1113 - status: 1
1114 - },
1115 - {
1116 columnChineseName: "操作来源", 1116 columnChineseName: "操作来源",
1117 columnName: "operationSource", 1117 columnName: "operationSource",
1118 columnWidth: "", 1118 columnWidth: "",
......
1 <template> 1 <template>
2 <div id="tags-view-container" class="tags-view-container"> 2 <div id="tags-view-container" class="tags-view-container">
3 <scroll-pane ref="scrollPane" class="tags-view-wrapper" @scroll="handleScroll"> 3 <scroll-pane ref="scrollPane" class="tags-view-wrapper" @scroll="handleScroll">
4 - <router-link 4 + <router-link v-for="tag in visitedViews" ref="tag" :key="tag.path" :class="isActive(tag) ? 'active' : ''"
5 - v-for="tag in visitedViews" 5 + :to="{ path: tag.path, query: tag.query, fullPath: tag.fullPath }" tag="span" class="tags-view-item"
6 - ref="tag" 6 + :style="activeStyle(tag)" @click.middle.native="!isAffix(tag) ? closeSelectedTag(tag) : ''"
7 - :key="tag.path" 7 + @contextmenu.prevent.native="openMenu(tag, $event)">
8 - :class="isActive(tag)?'active':''"
9 - :to="{ path: tag.path, query: tag.query, fullPath: tag.fullPath }"
10 - tag="span"
11 - class="tags-view-item"
12 - :style="activeStyle(tag)"
13 - @click.middle.native="!isAffix(tag)?closeSelectedTag(tag):''"
14 - @contextmenu.prevent.native="openMenu(tag,$event)"
15 - >
16 {{ tag.title }} 8 {{ tag.title }}
17 - <span v-if="tag.name != 'FlightAllocConfigAdd' && tag.name != 'FlightAllocConfigInfo' && !isAffix(tag)" class="el-icon-close" @click.prevent.stop="closeSelectedTag(tag)" /> 9 + <span
10 + v-if="tag.name != 'FlightAllocConfigAdd' && tag.name != 'FlightAllocConfigInfo' && tag.name != 'weatherTable' && !isAffix(tag)"
11 + class="el-icon-close" @click.prevent.stop="closeSelectedTag(tag)" />
18 </router-link> 12 </router-link>
19 </scroll-pane> 13 </scroll-pane>
20 - <ul v-show="visible" :style="{left:left+'px',top:top+'px'}" class="contextmenu"> 14 + <ul v-show="visible" :style="{ left: left + 'px', top: top + 'px' }" class="contextmenu">
21 <li @click="refreshSelectedTag(selectedTag)">刷新页面</li> 15 <li @click="refreshSelectedTag(selectedTag)">刷新页面</li>
22 <li v-if="!isAffix(selectedTag)" @click="closeSelectedTag(selectedTag)">关闭当前</li> 16 <li v-if="!isAffix(selectedTag)" @click="closeSelectedTag(selectedTag)">关闭当前</li>
23 <li @click="closeOthersTags">关闭其他</li> 17 <li @click="closeOthersTags">关闭其他</li>
...@@ -168,7 +162,7 @@ export default { ...@@ -168,7 +162,7 @@ export default {
168 }) 162 })
169 }, 163 },
170 closeOthersTags() { 164 closeOthersTags() {
171 - this.$router.push(this.selectedTag).catch(()=>{}); 165 + this.$router.push(this.selectedTag).catch(() => { });
172 this.$store.dispatch('tagsView/delOthersViews', this.selectedTag).then(() => { 166 this.$store.dispatch('tagsView/delOthersViews', this.selectedTag).then(() => {
173 this.moveToCurrentTag() 167 this.moveToCurrentTag()
174 }) 168 })
...@@ -230,6 +224,7 @@ export default { ...@@ -230,6 +224,7 @@ export default {
230 background: #fff; 224 background: #fff;
231 border-bottom: 1px solid #d8dce5; 225 border-bottom: 1px solid #d8dce5;
232 box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .12), 0 0 3px 0 rgba(0, 0, 0, .04); 226 box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .12), 0 0 3px 0 rgba(0, 0, 0, .04);
227 +
233 .tags-view-wrapper { 228 .tags-view-wrapper {
234 .tags-view-item { 229 .tags-view-item {
235 display: inline-block; 230 display: inline-block;
...@@ -243,17 +238,21 @@ export default { ...@@ -243,17 +238,21 @@ export default {
243 padding: 0 8px; 238 padding: 0 8px;
244 font-size: 12px; 239 font-size: 12px;
245 margin-left: 5px; 240 margin-left: 5px;
241 +
246 // margin-top: 4px; 242 // margin-top: 4px;
247 &:first-of-type { 243 &:first-of-type {
248 margin-left: 15px; 244 margin-left: 15px;
249 } 245 }
246 +
250 &:last-of-type { 247 &:last-of-type {
251 margin-right: 15px; 248 margin-right: 15px;
252 } 249 }
250 +
253 &.active { 251 &.active {
254 background-color: #42b983; 252 background-color: #42b983;
255 color: #fff; 253 color: #fff;
256 border-color: #42b983; 254 border-color: #42b983;
255 +
257 &::before { 256 &::before {
258 content: ''; 257 content: '';
259 background: #fff; 258 background: #fff;
...@@ -267,6 +266,7 @@ export default { ...@@ -267,6 +266,7 @@ export default {
267 } 266 }
268 } 267 }
269 } 268 }
269 +
270 .contextmenu { 270 .contextmenu {
271 // height: 0; 271 // height: 0;
272 margin: 0; 272 margin: 0;
...@@ -280,10 +280,12 @@ export default { ...@@ -280,10 +280,12 @@ export default {
280 font-weight: 400; 280 font-weight: 400;
281 color: #333; 281 color: #333;
282 box-shadow: 2px 2px 3px 0 rgba(0, 0, 0, .3); 282 box-shadow: 2px 2px 3px 0 rgba(0, 0, 0, .3);
283 +
283 li { 284 li {
284 margin: 0; 285 margin: 0;
285 padding: 7px 16px; 286 padding: 7px 16px;
286 cursor: pointer; 287 cursor: pointer;
288 +
287 &:hover { 289 &:hover {
288 background: #eee; 290 background: #eee;
289 } 291 }
...@@ -304,11 +306,13 @@ export default { ...@@ -304,11 +306,13 @@ export default {
304 text-align: center; 306 text-align: center;
305 transition: all .3s cubic-bezier(.645, .045, .355, 1); 307 transition: all .3s cubic-bezier(.645, .045, .355, 1);
306 transform-origin: 100% 50%; 308 transform-origin: 100% 50%;
309 +
307 &:before { 310 &:before {
308 transform: scale(.6); 311 transform: scale(.6);
309 display: inline-block; 312 display: inline-block;
310 vertical-align: -3px; 313 vertical-align: -3px;
311 } 314 }
315 +
312 &:hover { 316 &:hover {
313 background-color: #b4bccc; 317 background-color: #b4bccc;
314 color: #fff; 318 color: #fff;
......
...@@ -64,29 +64,34 @@ export const constantRoutes = [ ...@@ -64,29 +64,34 @@ export const constantRoutes = [
64 component: (resolve) => require(['@/views/index'], resolve), 64 component: (resolve) => require(['@/views/index'], resolve),
65 name: '首页', 65 name: '首页',
66 meta: { title: '首页', icon: 'home', noCache: true, affix: true } 66 meta: { title: '首页', icon: 'home', noCache: true, affix: true }
67 - } 67 + },
68 ] 68 ]
69 }, 69 },
70 { 70 {
71 - path: '/', 71 + path: '',
72 component: Layout, 72 component: Layout,
73 hidden: true, 73 hidden: true,
74 - redirect: 'noredirect',
75 children: [ 74 children: [
76 { 75 {
77 - path: '/flightAllocConfig/:handle/:id', 76 + path: '/info/:handle/:id',
78 component: (resolve) => require(['@/views/allocationConfig/flightAllocConfig/info'], resolve), 77 component: (resolve) => require(['@/views/allocationConfig/flightAllocConfig/info'], resolve),
79 name: 'FlightAllocConfigInfo', 78 name: 'FlightAllocConfigInfo',
80 - meta: { title: '航班配舱', icon: 'user', breadcrumb: true } 79 + meta: { title: '航班配舱', icon: 'user' }
81 }, 80 },
82 { 81 {
83 - path: '/flightAllocConfig/:handle', 82 + path: '/info/:handle',
84 component: (resolve) => require(['@/views/allocationConfig/flightAllocConfig/info'], resolve), 83 component: (resolve) => require(['@/views/allocationConfig/flightAllocConfig/info'], resolve),
85 name: 'FlightAllocConfigAdd', 84 name: 'FlightAllocConfigAdd',
86 - meta: { title: '添加航班配舱', icon: 'user', breadcrumb: false } 85 + meta: { title: '新增配舱', icon: 'user' }
86 + },
87 + {
88 + path: '/weatherTable',
89 + component: (resolve) => require(['@/views/systemLog/dmLog/weatherTable'], resolve),
90 + name: 'weatherTable',
91 + meta: { title: '流水表', icon: 'user' }
87 }, 92 },
88 ] 93 ]
89 - } 94 + },
90 ] 95 ]
91 96
92 export default new Router({ 97 export default new Router({
...@@ -94,4 +99,4 @@ export default new Router({ ...@@ -94,4 +99,4 @@ export default new Router({
94 scrollBehavior: () => ({ y: 0 }), 99 scrollBehavior: () => ({ y: 0 }),
95 routes: constantRoutes, 100 routes: constantRoutes,
96 base: settings.routerBase, 101 base: settings.routerBase,
97 -})
...\ No newline at end of file ...\ No newline at end of file
102 +})
......
1 +<template>
2 + <div style="padding:10px">
3 + <el-card header="流水信息">
4 + <Tables ref="weatherTable" ductName="weatherTable" :order="true" :data="data" :headerData="tableHeader"
5 + :showOverflowTooltip="false" :height="tableHeight" :page="selectData.page" :limitSize="selectData.size"
6 + :pageSizes="[100]" :pagination="false" :loading="loading" @currentChange="currentChange">
7 + </Tables>
8 + <div class="ml20 mt20">
9 + <el-button size="small" @click="close">返 回</el-button>
10 + </div>
11 + </el-card>
12 + </div>
13 +</template>
14 +
15 +<script>
16 +import { getDmFlowInformation } from "@/api/system/logConfig.js";
17 +
18 +export default {
19 + name: 'weatherTable',
20 + data() {
21 + return {
22 + data: [],
23 + tableHeader: this.tableHeaders['weatherTable'],
24 + selectData: {
25 + page: 1,
26 + size: 100,
27 + },
28 + loading: false,
29 + tableHeight: null
30 + }
31 + },
32 + created() {
33 + if (this.$route.params.data) {
34 + this.data = this.$route.params.data
35 + sessionStorage.setItem('accsid', this.data[0].accsId)
36 + } else {
37 + this.getWeatherTable()
38 + }
39 + },
40 + activated() {
41 + if (this.$route.params.data) {
42 + this.data = this.$route.params.data
43 + sessionStorage.setItem('accsid', this.data[0].accsId)
44 + } else {
45 + this.getWeatherTable()
46 + }
47 + },
48 + methods: {
49 + //accsid获取流水
50 + getWeatherTable() {
51 + this.loading = true
52 + let accsid = ''
53 + accsid = sessionStorage.getItem('accsid')
54 + getDmFlowInformation('accsId=' + accsid).then(res => {
55 + this.loading = false
56 + if (res.code === 200) {
57 + this.data = res.data.list
58 + } else {
59 + this.msgWarning(res.msg)
60 + }
61 + }).catch(err => {
62 + this.loading = false
63 + console.log(err)
64 + })
65 + },
66 + //返回
67 + close() {
68 + this.$store.state.tagsView.visitedViews.splice(
69 + this.$store.state.tagsView.visitedViews.findIndex(
70 + (item) => item.path === this.$route.path
71 + ),
72 + );
73 + sessionStorage.removeItem('accsid')
74 + this.$router.push({ name: 'DmLog' })
75 + },
76 + //翻页
77 + currentChange(val) { },
78 + }
79 +}
80 +</script>
81 +
82 +<style>
83 +</style>
...\ No newline at end of file ...\ No newline at end of file