Showing
3 changed files
with
263 additions
and
4 deletions
| ... | @@ -1073,7 +1073,7 @@ let tableHeaders = { | ... | @@ -1073,7 +1073,7 @@ let tableHeaders = { |
| 1073 | { | 1073 | { |
| 1074 | columnChineseName: "航班号", | 1074 | columnChineseName: "航班号", |
| 1075 | columnName: "flightNo", | 1075 | columnName: "flightNo", |
| 1076 | - columnWidth: "", | 1076 | + columnWidth: "100", |
| 1077 | status: 1 | 1077 | status: 1 |
| 1078 | }, | 1078 | }, |
| 1079 | { | 1079 | { |
| ... | @@ -1085,7 +1085,7 @@ let tableHeaders = { | ... | @@ -1085,7 +1085,7 @@ let tableHeaders = { |
| 1085 | { | 1085 | { |
| 1086 | columnChineseName: "申报类别", | 1086 | columnChineseName: "申报类别", |
| 1087 | columnName: "declarationCategory", | 1087 | columnName: "declarationCategory", |
| 1088 | - columnWidth: "", | 1088 | + columnWidth: "100", |
| 1089 | status: 1 | 1089 | status: 1 |
| 1090 | }, | 1090 | }, |
| 1091 | { | 1091 | { |
| ... | @@ -1097,13 +1097,13 @@ let tableHeaders = { | ... | @@ -1097,13 +1097,13 @@ let tableHeaders = { |
| 1097 | { | 1097 | { |
| 1098 | columnChineseName: "增加重量", | 1098 | columnChineseName: "增加重量", |
| 1099 | columnName: "increaseWeight", | 1099 | columnName: "increaseWeight", |
| 1100 | - columnWidth: "", | 1100 | + columnWidth: "100", |
| 1101 | status: 1 | 1101 | status: 1 |
| 1102 | }, | 1102 | }, |
| 1103 | { | 1103 | { |
| 1104 | columnChineseName: "减轻重量", | 1104 | columnChineseName: "减轻重量", |
| 1105 | columnName: "reduceWeight", | 1105 | columnName: "reduceWeight", |
| 1106 | - columnWidth: "", | 1106 | + columnWidth: "100", |
| 1107 | status: 1 | 1107 | status: 1 |
| 1108 | }, | 1108 | }, |
| 1109 | { | 1109 | { |
| ... | @@ -1124,6 +1124,12 @@ let tableHeaders = { | ... | @@ -1124,6 +1124,12 @@ let tableHeaders = { |
| 1124 | columnWidth: "", | 1124 | columnWidth: "", |
| 1125 | status: 1 | 1125 | status: 1 |
| 1126 | }, | 1126 | }, |
| 1127 | + { | ||
| 1128 | + columnChineseName: "创建日期", | ||
| 1129 | + columnName: "createTime", | ||
| 1130 | + columnWidth: "", | ||
| 1131 | + status: 1 | ||
| 1132 | + }, | ||
| 1127 | ], | 1133 | ], |
| 1128 | //数据字典 | 1134 | //数据字典 |
| 1129 | "dict": [ | 1135 | "dict": [ | ... | ... |
| ... | @@ -383,6 +383,11 @@ export default { | ... | @@ -383,6 +383,11 @@ export default { |
| 383 | if (column.property == 'flightIdImac') { | 383 | if (column.property == 'flightIdImac') { |
| 384 | return cellValue == null ? '未配' : '已配' | 384 | return cellValue == null ? '未配' : '已配' |
| 385 | } | 385 | } |
| 386 | + if (this.ductName === 'weatherTable') { | ||
| 387 | + if (column.property == 'flightTime') { | ||
| 388 | + return cellValue.split(" ")[0] | ||
| 389 | + } | ||
| 390 | + } | ||
| 386 | return cellValue; | 391 | return cellValue; |
| 387 | }, | 392 | }, |
| 388 | }, | 393 | }, | ... | ... |
src/views/systemLog/dmLog/index.vue
0 → 100644
| 1 | +<template> | ||
| 2 | + <div> | ||
| 3 | + <el-form ref="dmLogForm" class="form-header" :model="selectForm" label-width="auto" size="small"> | ||
| 4 | + <el-row type="flex" style="flex-wrap: wrap !important"> | ||
| 5 | + <el-col :span="6"> | ||
| 6 | + <el-form-item label="ACCS航班号"> | ||
| 7 | + <el-input v-model.trim="fltNo" class="formItem" placeholder="请输入航班号" clearable></el-input> | ||
| 8 | + </el-form-item> | ||
| 9 | + </el-col> | ||
| 10 | + <el-col :span="6"> | ||
| 11 | + <el-form-item label="数据接收时间" prop="createTime"> | ||
| 12 | + <el-date-picker v-model="selectForm.createTime" class="formItem" type="date" placeholder="选择日期" | ||
| 13 | + :value-format="valueFormat" clearable> | ||
| 14 | + </el-date-picker> | ||
| 15 | + </el-form-item> | ||
| 16 | + </el-col> | ||
| 17 | + <el-col :span="6"> | ||
| 18 | + <el-form-item label="运单号"> | ||
| 19 | + <el-input v-model="selectForm.awbNbr" class="formItem" placeholder="请输入运单号" clearable></el-input> | ||
| 20 | + </el-form-item> | ||
| 21 | + </el-col> | ||
| 22 | + <el-col :span="6"> | ||
| 23 | + <el-form-item label="处理状态"> | ||
| 24 | + <el-select v-model="selectForm.status" class="formItem" placeholder="不限" clearable> | ||
| 25 | + <el-option label="未处理" value="0"></el-option> | ||
| 26 | + <el-option label="处理成功" value="1"></el-option> | ||
| 27 | + <el-option label="已处理" value="2"></el-option> | ||
| 28 | + <el-option label="处理失败" value="3"></el-option> | ||
| 29 | + <el-option label="处理中" value="9"></el-option> | ||
| 30 | + </el-select> | ||
| 31 | + </el-form-item> | ||
| 32 | + </el-col> | ||
| 33 | + <el-col :span="6"> | ||
| 34 | + <el-form-item label="ACCS航班日期"> | ||
| 35 | + <el-date-picker v-model="selectForm.fltDate" class="formItem" type="date" placeholder="选择日期" | ||
| 36 | + :value-format="valueFormat" clearable> | ||
| 37 | + </el-date-picker> | ||
| 38 | + </el-form-item> | ||
| 39 | + </el-col> | ||
| 40 | + <el-col :span="6"> | ||
| 41 | + <el-form-item label="口岸代码"> | ||
| 42 | + <el-select v-model="selectForm.portName" class="formItem" placeholder="不限" clearable> | ||
| 43 | + <el-option v-for="item in portList" :label="item.englishName" :value="item.englishName" :key="item.id"> | ||
| 44 | + </el-option> | ||
| 45 | + </el-select> | ||
| 46 | + </el-form-item> | ||
| 47 | + </el-col> | ||
| 48 | + <el-col :span="6"> | ||
| 49 | + <el-form-item label="回推ACCS结果"> | ||
| 50 | + <el-select v-model="selectForm.sendLogSendResult" class="formItem" placeholder="不限" clearable> | ||
| 51 | + <el-option label="未推" value="0"> | ||
| 52 | + </el-option> | ||
| 53 | + <el-option label="推送成功" value="1"> | ||
| 54 | + </el-option> | ||
| 55 | + <el-option label="推送失败" value="2"> | ||
| 56 | + </el-option> | ||
| 57 | + </el-select> | ||
| 58 | + </el-form-item> | ||
| 59 | + </el-col> | ||
| 60 | + </el-row> | ||
| 61 | + <div class="ml20" style="display: flex"> | ||
| 62 | + <el-button type="primary" size="small" icon="el-icon-search" :loading="loading" @click="selectDMData(0)">查询 | ||
| 63 | + </el-button> | ||
| 64 | + </div> | ||
| 65 | + </el-form> | ||
| 66 | + <Tables ref="dmLogTables" ductName="logDmData" :order="true" :data="data" :headerData="tableHeader" | ||
| 67 | + tableAlign="left" :showOverflowTooltip="false" :height="tableHeight" :page="selectForm.page" | ||
| 68 | + :limitSize="selectForm.size" :pageSizes="[100]" :totalCount="total" :loading="loading" | ||
| 69 | + @currentChange="currentChange" @sortChange="sortChange"> | ||
| 70 | + <template v-slot:awbNbr="scope"> | ||
| 71 | + <el-link type="primary" @click="gotoWeatherTable(scope.row)"> | ||
| 72 | + {{ | ||
| 73 | + scope.row.awbNbr | ||
| 74 | + }}<i class="el-icon-link"></i> </el-link> | ||
| 75 | + </template> | ||
| 76 | + <template v-slot:flightFltNo="scope"> | ||
| 77 | + <el-link v-if="scope.row.allocDimId" type="primary" | ||
| 78 | + @click="$router.push({ name: 'FlightAllocConfigInfo', params: { handle: 'DMdetail', id: scope.row.allocDimId } })"> | ||
| 79 | + {{ | ||
| 80 | + scope.row.flightFltNo | ||
| 81 | + }}<i class="el-icon-link"></i> </el-link> | ||
| 82 | + <span v-else>{{ scope.row.flightFltNo }}</span> | ||
| 83 | + </template> | ||
| 84 | + </Tables> | ||
| 85 | + </div> | ||
| 86 | +</template> | ||
| 87 | + | ||
| 88 | +<script> | ||
| 89 | +import dictLabels from "../../../assets/languages/dictLabels.js"; | ||
| 90 | +import { portNameList } from "@/api/system/user.js"; | ||
| 91 | +import { getDmDataList, getDmFlowInformation } from "@/api/system/logConfig.js"; | ||
| 92 | + | ||
| 93 | +export default { | ||
| 94 | + name: "DmLog", | ||
| 95 | + data() { | ||
| 96 | + return { | ||
| 97 | + selectForm: { | ||
| 98 | + fltNo: undefined, | ||
| 99 | + createTime: undefined, | ||
| 100 | + page: 1, | ||
| 101 | + size: 100, | ||
| 102 | + }, | ||
| 103 | + data: [], | ||
| 104 | + tableHeader: this.tableHeaders['DM'], | ||
| 105 | + portList: [], | ||
| 106 | + rules: { | ||
| 107 | + createTime: [ | ||
| 108 | + { | ||
| 109 | + required: true, | ||
| 110 | + message: "创建日期不能为空", | ||
| 111 | + trigger: "blur", | ||
| 112 | + }, | ||
| 113 | + ], | ||
| 114 | + }, | ||
| 115 | + pickerOptions: {}, | ||
| 116 | + selectDate: null, | ||
| 117 | + createTimes: [], | ||
| 118 | + total: 0, | ||
| 119 | + tableHeight: null, | ||
| 120 | + loading: false, | ||
| 121 | + valueFormat: "yyyy-MM-dd", | ||
| 122 | + }; | ||
| 123 | + }, | ||
| 124 | + created() { | ||
| 125 | + this.selectForm.createTime = this.nowDate(); | ||
| 126 | + this.getPort() | ||
| 127 | + }, | ||
| 128 | + activated() { | ||
| 129 | + this.selectDMData(); | ||
| 130 | + }, | ||
| 131 | + deactivated() { | ||
| 132 | + this.data = []; | ||
| 133 | + }, | ||
| 134 | + mounted() { | ||
| 135 | + this.tableHeight = | ||
| 136 | + window.innerHeight - this.$refs.dmLogForm.$el.offsetHeight - 130; | ||
| 137 | + }, | ||
| 138 | + methods: { | ||
| 139 | + //获取口岸 | ||
| 140 | + async getPort() { | ||
| 141 | + portNameList().then((res) => { | ||
| 142 | + if (res.code === 200) { | ||
| 143 | + this.portList = res.data; | ||
| 144 | + } else { | ||
| 145 | + this.msgWarning('查询条件' + res.msg) | ||
| 146 | + } | ||
| 147 | + }); | ||
| 148 | + if (this.$store.state.tagsView.cachedViews.length == 0) { | ||
| 149 | + this.selectDMData(); | ||
| 150 | + } | ||
| 151 | + }, | ||
| 152 | + //数据查询 | ||
| 153 | + async selectDMData(val) { | ||
| 154 | + this.data = []; | ||
| 155 | + this.loading = true; | ||
| 156 | + if (val === 0) { | ||
| 157 | + this.selectForm.page = 1; | ||
| 158 | + } | ||
| 159 | + getDmDataList(this.selectForm).then((res) => { | ||
| 160 | + this.loading = false; | ||
| 161 | + if (res.code === 200) { | ||
| 162 | + if (res.data.total === 0) { | ||
| 163 | + this.msgWarning('未查询到数据') | ||
| 164 | + } else { | ||
| 165 | + this.data = res.data.list; | ||
| 166 | + this.total = res.data.total; | ||
| 167 | + } | ||
| 168 | + } else { | ||
| 169 | + this.msgWarning(res.msg) | ||
| 170 | + } | ||
| 171 | + }); | ||
| 172 | + }, | ||
| 173 | + //跳转流水 | ||
| 174 | + gotoWeatherTable(val) { | ||
| 175 | + getDmFlowInformation('accsId=' + val.dmAccsId).then(res => { | ||
| 176 | + if (res.code === 200) { | ||
| 177 | + if (res.data.list.length > 0) { | ||
| 178 | + this.$router.push({ name: 'weatherTable', params: { data: res.data.list } }) | ||
| 179 | + } else { | ||
| 180 | + this.msgWarning('未查询到该条数据的流水') | ||
| 181 | + } | ||
| 182 | + } else { | ||
| 183 | + this.msgWarning(res.msg) | ||
| 184 | + } | ||
| 185 | + }).catch(err => { | ||
| 186 | + console.log(err) | ||
| 187 | + }) | ||
| 188 | + }, | ||
| 189 | + //分页 | ||
| 190 | + currentChange(val) { | ||
| 191 | + this.selectForm.page = val.page; | ||
| 192 | + this.selectDMData(); | ||
| 193 | + }, | ||
| 194 | + //数据处理 | ||
| 195 | + statusData(val) { | ||
| 196 | + if (dictLabels["logDmData"]["status"][val]) { | ||
| 197 | + return dictLabels["logDmData"]["status"][val]; | ||
| 198 | + } else { | ||
| 199 | + return val; | ||
| 200 | + } | ||
| 201 | + }, | ||
| 202 | + //排序 | ||
| 203 | + sortChange(val) { | ||
| 204 | + let data = []; | ||
| 205 | + let nullData = []; | ||
| 206 | + this.data.forEach((item) => { | ||
| 207 | + if (item[val.prop]) { | ||
| 208 | + data.push(item); | ||
| 209 | + } else { | ||
| 210 | + nullData.push(item); | ||
| 211 | + } | ||
| 212 | + }); | ||
| 213 | + data = data.sort(this.$refs.dmLogTables.compare(val.prop, val.order)); | ||
| 214 | + if (val.order != "ascending") { | ||
| 215 | + this.data = nullData.concat(data); | ||
| 216 | + } else { | ||
| 217 | + this.data = data.concat(nullData); | ||
| 218 | + } | ||
| 219 | + this.data.forEach((item, index = 0) => { | ||
| 220 | + item.index = index; | ||
| 221 | + }); | ||
| 222 | + }, | ||
| 223 | + }, | ||
| 224 | + computed: { | ||
| 225 | + fltNo: { | ||
| 226 | + get: function () { | ||
| 227 | + return this.selectForm.fltNo; | ||
| 228 | + }, | ||
| 229 | + set: function (val) { | ||
| 230 | + this.selectForm.fltNo = this.upCase(val); | ||
| 231 | + }, | ||
| 232 | + }, | ||
| 233 | + }, | ||
| 234 | +}; | ||
| 235 | +</script> | ||
| 236 | + | ||
| 237 | +<style scoped> | ||
| 238 | +.tags { | ||
| 239 | + display: flex; | ||
| 240 | + margin: 0 20px 0 auto; | ||
| 241 | + color: black; | ||
| 242 | + line-height: 32px; | ||
| 243 | +} | ||
| 244 | + | ||
| 245 | +.tagTip { | ||
| 246 | + margin: 0 5px; | ||
| 247 | +} | ||
| 248 | +</style> | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
-
Please register or login to post a comment