Showing
14 changed files
with
378 additions
and
216 deletions
| ... | @@ -15,13 +15,18 @@ | ... | @@ -15,13 +15,18 @@ |
| 15 | :lazy="lazy" | 15 | :lazy="lazy" |
| 16 | :downShiftKey="shiftKey" | 16 | :downShiftKey="shiftKey" |
| 17 | :limitStart="limitStart" | 17 | :limitStart="limitStart" |
| 18 | + :row-key="rowKey" | ||
| 19 | + :default-expand-all="defaultExpandAll" | ||
| 20 | + :tree-props="{ children: 'children', hasChildren: 'hasChildren' }" | ||
| 18 | v-loading="loading" | 21 | v-loading="loading" |
| 22 | + @sort-change="sortChange" | ||
| 19 | @select="tableSelect" | 23 | @select="tableSelect" |
| 20 | @select-all="tableSelectAll" | 24 | @select-all="tableSelectAll" |
| 21 | @select-change="SelectChange" | 25 | @select-change="SelectChange" |
| 22 | > | 26 | > |
| 23 | <el-table-column | 27 | <el-table-column |
| 24 | - v-for="(item, index) in newHeader" | 28 | + v-for="(item, index) in headerData" |
| 29 | + :column-key="item.value" | ||
| 25 | :type="item.type" | 30 | :type="item.type" |
| 26 | :prop="item.value" | 31 | :prop="item.value" |
| 27 | :label="item.name" | 32 | :label="item.name" |
| ... | @@ -32,12 +37,13 @@ | ... | @@ -32,12 +37,13 @@ |
| 32 | :sortable="item.sorTable" | 37 | :sortable="item.sorTable" |
| 33 | :formatter="formatter" | 38 | :formatter="formatter" |
| 34 | header-align="center" | 39 | header-align="center" |
| 40 | + :sort-orders="['descending', 'ascending', null]" | ||
| 35 | :slotHeader="slotHeader" | 41 | :slotHeader="slotHeader" |
| 36 | :key="index" | 42 | :key="index" |
| 37 | > | 43 | > |
| 38 | - <template v-if="item.slot" slot-scope=""> | 44 | + <!-- <template v-if="item.slot" slot-scope=""> |
| 39 | <Item :dom="item.slot" @change="itemChange"></Item> | 45 | <Item :dom="item.slot" @change="itemChange"></Item> |
| 40 | - </template> | 46 | + </template> --> |
| 41 | </el-table-column> | 47 | </el-table-column> |
| 42 | <slot></slot> | 48 | <slot></slot> |
| 43 | </el-table> | 49 | </el-table> |
| ... | @@ -64,8 +70,8 @@ | ... | @@ -64,8 +70,8 @@ |
| 64 | <script> | 70 | <script> |
| 65 | // import infoTable from "./info.vue"; | 71 | // import infoTable from "./info.vue"; |
| 66 | import Item from "./item.vue"; | 72 | import Item from "./item.vue"; |
| 67 | -import dictLabels from "../../assets/languages/dictLabels.js" | 73 | +import dictLabels from "../../assets/languages/dictLabels.js"; |
| 68 | -import { scrollTo } from '@/utils/scroll-to' | 74 | +import { scrollTo } from "@/utils/scroll-to"; |
| 69 | export default { | 75 | export default { |
| 70 | name: "Table", | 76 | name: "Table", |
| 71 | components: { | 77 | components: { |
| ... | @@ -136,9 +142,9 @@ export default { | ... | @@ -136,9 +142,9 @@ export default { |
| 136 | type: Boolean, | 142 | type: Boolean, |
| 137 | default: true, | 143 | default: true, |
| 138 | }, | 144 | }, |
| 139 | - shiftKey:{ | 145 | + shiftKey: { |
| 140 | - type:Boolean, | 146 | + type: Boolean, |
| 141 | - default:false, | 147 | + default: false, |
| 142 | }, | 148 | }, |
| 143 | page: { | 149 | page: { |
| 144 | type: Number, | 150 | type: Number, |
| ... | @@ -148,9 +154,9 @@ export default { | ... | @@ -148,9 +154,9 @@ export default { |
| 148 | type: Number, | 154 | type: Number, |
| 149 | default: 20, | 155 | default: 20, |
| 150 | }, | 156 | }, |
| 151 | - limitStart:{ | 157 | + limitStart: { |
| 152 | - type:Number, | 158 | + type: Number, |
| 153 | - default:0, | 159 | + default: 0, |
| 154 | }, | 160 | }, |
| 155 | paginationBackground: { | 161 | paginationBackground: { |
| 156 | type: Boolean, | 162 | type: Boolean, |
| ... | @@ -164,6 +170,14 @@ export default { | ... | @@ -164,6 +170,14 @@ export default { |
| 164 | type: Number, | 170 | type: Number, |
| 165 | default: 0, | 171 | default: 0, |
| 166 | }, | 172 | }, |
| 173 | + rowKey: { | ||
| 174 | + type: String, | ||
| 175 | + default: "", | ||
| 176 | + }, | ||
| 177 | + defaultExpandAll: { | ||
| 178 | + type: Boolean, | ||
| 179 | + default: false, | ||
| 180 | + }, | ||
| 167 | }, | 181 | }, |
| 168 | inheritAttrs: false, | 182 | inheritAttrs: false, |
| 169 | data() { | 183 | data() { |
| ... | @@ -171,7 +185,7 @@ export default { | ... | @@ -171,7 +185,7 @@ export default { |
| 171 | newHeader: [], | 185 | newHeader: [], |
| 172 | selectTable: [], | 186 | selectTable: [], |
| 173 | pageNum: 1, | 187 | pageNum: 1, |
| 174 | - start:-1, | 188 | + start: -1, |
| 175 | // { | 189 | // { |
| 176 | // type: "selection", | 190 | // type: "selection", |
| 177 | // name: "", | 191 | // name: "", |
| ... | @@ -187,20 +201,28 @@ export default { | ... | @@ -187,20 +201,28 @@ export default { |
| 187 | created() { | 201 | created() { |
| 188 | this.newHeader = this.headerData; | 202 | this.newHeader = this.headerData; |
| 189 | }, | 203 | }, |
| 190 | - mounted() { | 204 | + mounted() {}, |
| 191 | - }, | ||
| 192 | methods: { | 205 | methods: { |
| 193 | nextClick() { | 206 | nextClick() { |
| 194 | - this.$emit('currentChange',{page:this.pageNum + 1,start:this.limitStart + this.limitSize}) | 207 | + this.$emit("currentChange", { |
| 195 | - scrollTo(0,800); | 208 | + page: this.pageNum + 1, |
| 209 | + start: this.limitStart + this.limitSize, | ||
| 210 | + }); | ||
| 211 | + scrollTo(0, 800); | ||
| 196 | }, | 212 | }, |
| 197 | prevClick() { | 213 | prevClick() { |
| 198 | - this.$emit('currentChange',{page:this.pageNum - 1,start:this.limitStart - this.limitSiz}) | 214 | + this.$emit("currentChange", { |
| 199 | - scrollTo(0,800); | 215 | + page: this.pageNum - 1, |
| 216 | + start: this.limitStart - this.limitSiz, | ||
| 217 | + }); | ||
| 218 | + scrollTo(0, 800); | ||
| 200 | }, | 219 | }, |
| 201 | currentChange(val) { | 220 | currentChange(val) { |
| 202 | - this.$emit('currentChange',{page:val,start: val*this.limitSize+1}); | 221 | + this.$emit("currentChange", { |
| 203 | - scrollTo(0,800); | 222 | + page: val, |
| 223 | + start: val * this.limitSize + 1, | ||
| 224 | + }); | ||
| 225 | + scrollTo(0, 800); | ||
| 204 | }, | 226 | }, |
| 205 | tableSelect(selection, row) { | 227 | tableSelect(selection, row) { |
| 206 | let end = row.index; | 228 | let end = row.index; |
| ... | @@ -208,20 +230,17 @@ export default { | ... | @@ -208,20 +230,17 @@ export default { |
| 208 | const sum = Math.abs(this.start - end); | 230 | const sum = Math.abs(this.start - end); |
| 209 | const min = Math.min(this.start, end); | 231 | const min = Math.min(this.start, end); |
| 210 | let i; | 232 | let i; |
| 211 | - if ( | 233 | + if (this.start === -1 && selection.includes(this.data[row.index])) { |
| 212 | - this.start === -1 && | ||
| 213 | - selection.includes(this.data[row.index]) | ||
| 214 | - ) { | ||
| 215 | for (i = 0; i < sum; i++) { | 234 | for (i = 0; i < sum; i++) { |
| 216 | this.$refs.tables.toggleRowSelection(this.data[i], true); | 235 | this.$refs.tables.toggleRowSelection(this.data[i], true); |
| 217 | this.selectTable.push(this.data[i]); | 236 | this.selectTable.push(this.data[i]); |
| 218 | } | 237 | } |
| 219 | } else if (selection.includes(this.data[row.index])) { | 238 | } else if (selection.includes(this.data[row.index])) { |
| 220 | - if(!selection.includes(this.data[this.start])){ | 239 | + if (!selection.includes(this.data[this.start])) { |
| 221 | this.$refs.tables.toggleRowSelection(this.data[this.start], true); | 240 | this.$refs.tables.toggleRowSelection(this.data[this.start], true); |
| 222 | this.selectTable.push(this.data[this.start]); | 241 | this.selectTable.push(this.data[this.start]); |
| 223 | } | 242 | } |
| 224 | - for (i = this.start+1; i <= this.start+sum; i++) { | 243 | + for (i = this.start + 1; i <= this.start + sum; i++) { |
| 225 | this.$refs.tables.toggleRowSelection(this.data[i], true); | 244 | this.$refs.tables.toggleRowSelection(this.data[i], true); |
| 226 | this.selectTable.push(this.data[i]); | 245 | this.selectTable.push(this.data[i]); |
| 227 | } | 246 | } |
| ... | @@ -244,7 +263,7 @@ export default { | ... | @@ -244,7 +263,7 @@ export default { |
| 244 | } | 263 | } |
| 245 | } | 264 | } |
| 246 | } | 265 | } |
| 247 | - selection = this.selectTable | 266 | + selection = this.selectTable; |
| 248 | this.$emit("tableSelect", { selection, row }); | 267 | this.$emit("tableSelect", { selection, row }); |
| 249 | }, | 268 | }, |
| 250 | tableSelectAll(selection) { | 269 | tableSelectAll(selection) { |
| ... | @@ -253,13 +272,13 @@ export default { | ... | @@ -253,13 +272,13 @@ export default { |
| 253 | SelectChange(selection) { | 272 | SelectChange(selection) { |
| 254 | this.$emit("SelectChange", selection); | 273 | this.$emit("SelectChange", selection); |
| 255 | }, | 274 | }, |
| 256 | - clearTable(){ | 275 | + clearTable() { |
| 257 | - this.selectTable = [] | 276 | + this.selectTable = []; |
| 258 | - this.$refs.tables.clearSelection() | 277 | + this.$refs.tables.clearSelection(); |
| 259 | - }, | ||
| 260 | - itemChange(val) { | ||
| 261 | - console.log(val) | ||
| 262 | }, | 278 | }, |
| 279 | + // itemChange(val) { | ||
| 280 | + // console.log(val); | ||
| 281 | + // }, | ||
| 263 | // checkChange(val) { | 282 | // checkChange(val) { |
| 264 | // console.log(val); | 283 | // console.log(val); |
| 265 | // }, | 284 | // }, |
| ... | @@ -269,9 +288,28 @@ export default { | ... | @@ -269,9 +288,28 @@ export default { |
| 269 | // bottom(val) { | 288 | // bottom(val) { |
| 270 | // console.log(val); | 289 | // console.log(val); |
| 271 | // }, | 290 | // }, |
| 291 | + sortChange({ column, prop, order }) { | ||
| 292 | + this.$emit("sortChange",{prop:prop, order:order}) | ||
| 293 | + }, | ||
| 294 | + compare(propertyName, sort) { | ||
| 295 | + return function (obj1, obj2) { | ||
| 296 | + var value1 = obj1[propertyName]; | ||
| 297 | + var value2 = obj2[propertyName]; | ||
| 298 | + if (typeof value1 === "string" && typeof value2 === "string") { | ||
| 299 | + const res = value1.localeCompare(value2, "zh"); | ||
| 300 | + return sort === "ascending" ? res : -res; | ||
| 301 | + } else { | ||
| 302 | + if (value1 <= value2) { | ||
| 303 | + return sort === "ascending" ? -1 : 1; | ||
| 304 | + } else if (value1 > value2) { | ||
| 305 | + return sort === "ascending" ? 1 : -1; | ||
| 306 | + } | ||
| 307 | + } | ||
| 308 | + }; | ||
| 309 | + }, | ||
| 272 | formatter(row, column, cellValue, index) { | 310 | formatter(row, column, cellValue, index) { |
| 273 | - if(dictLabels[column.property]){ | 311 | + if (dictLabels[column.property]) { |
| 274 | - if(dictLabels[column.property][cellValue]){ | 312 | + if (dictLabels[column.property][cellValue]) { |
| 275 | return dictLabels[column.property][cellValue]; | 313 | return dictLabels[column.property][cellValue]; |
| 276 | } | 314 | } |
| 277 | } | 315 | } | ... | ... |
| ... | @@ -177,6 +177,6 @@ export function handleTree(data, id, parentId, children) { | ... | @@ -177,6 +177,6 @@ export function handleTree(data, id, parentId, children) { |
| 177 | 177 | ||
| 178 | //字符串英文转大写,;转英文; | 178 | //字符串英文转大写,;转英文; |
| 179 | export function upCase(str){ | 179 | export function upCase(str){ |
| 180 | - let newStr = str.replace(/;/g,";").toUpperCase(); | 180 | + let newStr = str.replace(/;/g,";").toUpperCase().trim(); |
| 181 | return newStr; | 181 | return newStr; |
| 182 | } | 182 | } |
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
| 1 | import axios from 'axios' | 1 | import axios from 'axios' |
| 2 | import { Message,MessageBox } from 'element-ui' | 2 | import { Message,MessageBox } from 'element-ui' |
| 3 | import store from '@/store' | 3 | import store from '@/store' |
| 4 | -import { getToken } from '@/utils/auth' | 4 | +import { getToken,setToken } from '@/utils/auth' |
| 5 | import errorCode from '@/utils/errorCode' | 5 | import errorCode from '@/utils/errorCode' |
| 6 | 6 | ||
| 7 | axios.defaults.headers['Content-Type'] = 'application/json;charset=utf-8' | 7 | axios.defaults.headers['Content-Type'] = 'application/json;charset=utf-8' |
| ... | @@ -9,9 +9,9 @@ axios.defaults.headers['Content-Type'] = 'application/json;charset=utf-8' | ... | @@ -9,9 +9,9 @@ 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:7001/IMAC2`, | 12 | + // baseURL: `http://47.103.140.98:7001/iMAC`, |
| 13 | baseURL: 'https://imacuat.zmd.apac.fedex.com/iMAC', | 13 | baseURL: 'https://imacuat.zmd.apac.fedex.com/iMAC', |
| 14 | - // baseURL: 'http://192.168.1.133:7001/IMAC2', | 14 | + // baseURL: 'http://192.168.1.133:7001/iMAC', |
| 15 | 15 | ||
| 16 | // 超时 | 16 | // 超时 |
| 17 | timeout: 30000, | 17 | timeout: 30000, |
| ... | @@ -53,6 +53,9 @@ service.interceptors.request.use(config => { | ... | @@ -53,6 +53,9 @@ service.interceptors.request.use(config => { |
| 53 | 53 | ||
| 54 | // 响应拦截器 | 54 | // 响应拦截器 |
| 55 | service.interceptors.response.use(res => { | 55 | service.interceptors.response.use(res => { |
| 56 | + if(res.headers['token']){ | ||
| 57 | + setToken(decodeURI(res.headers['token'])) | ||
| 58 | + } | ||
| 56 | // 未设置状态码则默认成功状态 | 59 | // 未设置状态码则默认成功状态 |
| 57 | const code = res.data.code || 200; | 60 | const code = res.data.code || 200; |
| 58 | // 获取错误信息 | 61 | // 获取错误信息 | ... | ... |
| ... | @@ -6,8 +6,8 @@ const mimeMap = { | ... | @@ -6,8 +6,8 @@ const mimeMap = { |
| 6 | zip: 'application/zip' | 6 | zip: 'application/zip' |
| 7 | } | 7 | } |
| 8 | const baseUrl = 'https://imacuat.zmd.apac.fedex.com/iMAC' //uat服务器 | 8 | const baseUrl = 'https://imacuat.zmd.apac.fedex.com/iMAC' //uat服务器 |
| 9 | -// const baseUrl = 'http://47.103.140.98:7001/IMAC2' //阿里云服务器 | 9 | +// const baseUrl = 'http://47.103.140.98:7001/iMAC' //阿里云服务器 |
| 10 | -// const baseUrl = 'http://192.168.1.133:7001/IMAC2' //测试服务器 | 10 | +// const baseUrl = 'http://192.168.1.133:7001/iMAC' //测试服务器 |
| 11 | 11 | ||
| 12 | export function downLoadZip(str, filename) { | 12 | export function downLoadZip(str, filename) { |
| 13 | var url = baseUrl + str | 13 | var url = baseUrl + str | ... | ... |
| ... | @@ -3,7 +3,6 @@ | ... | @@ -3,7 +3,6 @@ |
| 3 | <el-form | 3 | <el-form |
| 4 | ref="form" | 4 | ref="form" |
| 5 | v-model="formData" | 5 | v-model="formData" |
| 6 | - v-show="formShow" | ||
| 7 | class="form-header" | 6 | class="form-header" |
| 8 | label-position="right" | 7 | label-position="right" |
| 9 | label-width="auto" | 8 | label-width="auto" |
| ... | @@ -35,6 +34,26 @@ | ... | @@ -35,6 +34,26 @@ |
| 35 | </el-form-item> | 34 | </el-form-item> |
| 36 | </el-col> | 35 | </el-col> |
| 37 | <el-col :span="6"> | 36 | <el-col :span="6"> |
| 37 | + <el-form-item label="海关回执状态"> | ||
| 38 | + <el-select | ||
| 39 | + placeholder="不限" | ||
| 40 | + v-model="formData.customsReceiptStatusId" | ||
| 41 | + class="formItem" | ||
| 42 | + multiple | ||
| 43 | + clearable | ||
| 44 | + > | ||
| 45 | + <el-option | ||
| 46 | + v-for="item in selectData.findConditionData | ||
| 47 | + .cargoCustomsReturnStatus" | ||
| 48 | + :label="item.chineseName" | ||
| 49 | + :value="item.id" | ||
| 50 | + :key="item.id" | ||
| 51 | + > | ||
| 52 | + </el-option> | ||
| 53 | + </el-select> | ||
| 54 | + </el-form-item> | ||
| 55 | + </el-col> | ||
| 56 | + <el-col :span="6"> | ||
| 38 | <el-form-item label="货物状态"> | 57 | <el-form-item label="货物状态"> |
| 39 | <el-select | 58 | <el-select |
| 40 | placeholder="不限" | 59 | placeholder="不限" |
| ... | @@ -58,7 +77,7 @@ | ... | @@ -58,7 +77,7 @@ |
| 58 | class="formItem" | 77 | class="formItem" |
| 59 | type="textarea" | 78 | type="textarea" |
| 60 | placeholder="请输入运单号(回车分割)" | 79 | placeholder="请输入运单号(回车分割)" |
| 61 | - v-model="formData.waybillNo" | 80 | + v-model.trim="formData.waybillNo" |
| 62 | rows="1" | 81 | rows="1" |
| 63 | ></el-input> | 82 | ></el-input> |
| 64 | </el-form-item> | 83 | </el-form-item> |
| ... | @@ -208,26 +227,6 @@ | ... | @@ -208,26 +227,6 @@ |
| 208 | ></el-input> | 227 | ></el-input> |
| 209 | </el-form-item> | 228 | </el-form-item> |
| 210 | </el-col> | 229 | </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> | ||
| 231 | <el-col :span="24"> | 230 | <el-col :span="24"> |
| 232 | <el-form-item label="Handling Code"> | 231 | <el-form-item label="Handling Code"> |
| 233 | <el-empty | 232 | <el-empty |
| ... | @@ -316,6 +315,7 @@ | ... | @@ -316,6 +315,7 @@ |
| 316 | @tableSelect="tableSelect" | 315 | @tableSelect="tableSelect" |
| 317 | @tableSelectAll="tableSelectAll" | 316 | @tableSelectAll="tableSelectAll" |
| 318 | @currentChange="currentChange" | 317 | @currentChange="currentChange" |
| 318 | + @sortChange="sortChange" | ||
| 319 | ></Tables> | 319 | ></Tables> |
| 320 | <Dialog | 320 | <Dialog |
| 321 | :tableData="tableSelection" | 321 | :tableData="tableSelection" |
| ... | @@ -334,6 +334,7 @@ import { downLoadXlsx } from "@/utils/zipdownload"; | ... | @@ -334,6 +334,7 @@ import { downLoadXlsx } from "@/utils/zipdownload"; |
| 334 | import { upCase } from "@/utils/FedEx"; | 334 | import { upCase } from "@/utils/FedEx"; |
| 335 | 335 | ||
| 336 | export default { | 336 | export default { |
| 337 | + name:"CargoAllocation", | ||
| 337 | components: { | 338 | components: { |
| 338 | Dialog, | 339 | Dialog, |
| 339 | }, | 340 | }, |
| ... | @@ -815,7 +816,6 @@ export default { | ... | @@ -815,7 +816,6 @@ export default { |
| 815 | shiftKey: false, | 816 | shiftKey: false, |
| 816 | createDate: null, | 817 | createDate: null, |
| 817 | loading: false, | 818 | loading: false, |
| 818 | - formShow:true, | ||
| 819 | downLoadingTip: { | 819 | downLoadingTip: { |
| 820 | tip: "", | 820 | tip: "", |
| 821 | downloading: false, | 821 | downloading: false, |
| ... | @@ -868,11 +868,6 @@ export default { | ... | @@ -868,11 +868,6 @@ export default { |
| 868 | }); | 868 | }); |
| 869 | }, | 869 | }, |
| 870 | mounted() { | 870 | mounted() { |
| 871 | - // this.selectData.HandlingCode.forEach((item,index)=>{ | ||
| 872 | - // if(item.id === 108093){ | ||
| 873 | - // this.selectData.HandlingCode.unshift(this.HandlingCode.splice(index,1)[0]) | ||
| 874 | - // } | ||
| 875 | - // }) | ||
| 876 | window.addEventListener("keydown", (code) => { | 871 | window.addEventListener("keydown", (code) => { |
| 877 | if (code.keyCode === 16 && code.shiftKey) { | 872 | if (code.keyCode === 16 && code.shiftKey) { |
| 878 | this.shiftKey = true; | 873 | this.shiftKey = true; |
| ... | @@ -885,6 +880,7 @@ export default { | ... | @@ -885,6 +880,7 @@ export default { |
| 885 | }); | 880 | }); |
| 886 | }, | 881 | }, |
| 887 | methods: { | 882 | methods: { |
| 883 | + //查询 | ||
| 888 | select() { | 884 | select() { |
| 889 | this.loading = true; | 885 | this.loading = true; |
| 890 | this.dataInfo(); | 886 | this.dataInfo(); |
| ... | @@ -915,6 +911,7 @@ export default { | ... | @@ -915,6 +911,7 @@ export default { |
| 915 | this.loading = false; | 911 | this.loading = false; |
| 916 | }); | 912 | }); |
| 917 | }, | 913 | }, |
| 914 | + //总和 | ||
| 918 | cargoTotal() { | 915 | cargoTotal() { |
| 919 | this.allWeight = 0; | 916 | this.allWeight = 0; |
| 920 | this.allQty = 0; | 917 | this.allQty = 0; |
| ... | @@ -923,10 +920,11 @@ export default { | ... | @@ -923,10 +920,11 @@ export default { |
| 923 | this.allWeight = this.allWeight + item.actualWeight; | 920 | this.allWeight = this.allWeight + item.actualWeight; |
| 924 | this.allQty = this.allQty + item.qty; | 921 | this.allQty = this.allQty + item.qty; |
| 925 | }); | 922 | }); |
| 926 | - this.allWeight = this.allWeight.toFixed(); | 923 | + this.allWeight = this.allWeight.toFixed(2); |
| 927 | this.allQty = this.allQty.toFixed(); | 924 | this.allQty = this.allQty.toFixed(); |
| 928 | } | 925 | } |
| 929 | }, | 926 | }, |
| 927 | + //数据初始化 | ||
| 930 | dataInfo() { | 928 | dataInfo() { |
| 931 | this.formData.ursaList = null; | 929 | this.formData.ursaList = null; |
| 932 | this.formData.siteNameList = null; | 930 | this.formData.siteNameList = null; |
| ... | @@ -972,6 +970,7 @@ export default { | ... | @@ -972,6 +970,7 @@ export default { |
| 972 | this.formData.page = this.page; | 970 | this.formData.page = this.page; |
| 973 | this.formData.size = this.size; | 971 | this.formData.size = this.size; |
| 974 | }, | 972 | }, |
| 973 | + //导出表格 | ||
| 975 | xlsx(val) { | 974 | xlsx(val) { |
| 976 | this.downLoadingTip.downloading = true; | 975 | this.downLoadingTip.downloading = true; |
| 977 | this.dataInfo(); | 976 | this.dataInfo(); |
| ... | @@ -999,19 +998,27 @@ export default { | ... | @@ -999,19 +998,27 @@ export default { |
| 999 | }); | 998 | }); |
| 1000 | } | 999 | } |
| 1001 | }, | 1000 | }, |
| 1001 | + //表格选择 | ||
| 1002 | tableSelect(val) { | 1002 | tableSelect(val) { |
| 1003 | this.tableSelection = val.selection; | 1003 | this.tableSelection = val.selection; |
| 1004 | this.cargoTotal(); | 1004 | this.cargoTotal(); |
| 1005 | }, | 1005 | }, |
| 1006 | + //表格全选 | ||
| 1006 | tableSelectAll(val) { | 1007 | tableSelectAll(val) { |
| 1007 | this.tableSelection = val; | 1008 | this.tableSelection = val; |
| 1008 | this.cargoTotal(); | 1009 | this.cargoTotal(); |
| 1009 | }, | 1010 | }, |
| 1011 | + //分页 | ||
| 1010 | currentChange(val) { | 1012 | currentChange(val) { |
| 1011 | this.formData.limitStart = val.start; | 1013 | this.formData.limitStart = val.start; |
| 1012 | this.page = val.page; | 1014 | this.page = val.page; |
| 1013 | this.select(); | 1015 | this.select(); |
| 1014 | }, | 1016 | }, |
| 1017 | + //排序 | ||
| 1018 | + sortChange(val){ | ||
| 1019 | + this.tableData.sort(this.$refs.newTables.compare(val.prop,val.order)); | ||
| 1020 | + }, | ||
| 1021 | + //添加到航班 | ||
| 1015 | addFit() { | 1022 | addFit() { |
| 1016 | let open = true; | 1023 | let open = true; |
| 1017 | this.tableSelection.forEach((item) => { | 1024 | this.tableSelection.forEach((item) => { |
| ... | @@ -1031,6 +1038,7 @@ export default { | ... | @@ -1031,6 +1038,7 @@ export default { |
| 1031 | this.$refs.newTables.clearTable(); | 1038 | this.$refs.newTables.clearTable(); |
| 1032 | } | 1039 | } |
| 1033 | }, | 1040 | }, |
| 1041 | + //关闭弹框 | ||
| 1034 | dialogBeforeClose(val) { | 1042 | dialogBeforeClose(val) { |
| 1035 | this.dialogVisible = val.close; | 1043 | this.dialogVisible = val.close; |
| 1036 | if (val.reload) { | 1044 | if (val.reload) { | ... | ... |
| ... | @@ -127,6 +127,7 @@ import { | ... | @@ -127,6 +127,7 @@ import { |
| 127 | import { parseTime } from "@/utils/FedEx"; | 127 | import { parseTime } from "@/utils/FedEx"; |
| 128 | 128 | ||
| 129 | export default { | 129 | export default { |
| 130 | + name:"FlightAllocConfig", | ||
| 130 | data() { | 131 | data() { |
| 131 | return { | 132 | return { |
| 132 | queryParams: { | 133 | queryParams: { | ... | ... |
| ... | @@ -110,23 +110,24 @@ | ... | @@ -110,23 +110,24 @@ |
| 110 | 110 | ||
| 111 | <el-form-item label="件数"> | 111 | <el-form-item label="件数"> |
| 112 | <el-col :span="3"> | 112 | <el-col :span="3"> |
| 113 | - <!-- <el-input v-model="form.minNumOfPieces"></el-input> --> | 113 | + <el-input |
| 114 | - <el-input-number | 114 | + class="numberInput" |
| 115 | - v-model=" | 115 | + v-model.trim="minNumOfPieces" |
| 116 | - form.minNumOfPieces == 0 | 116 | + ></el-input> |
| 117 | - ? (form.minNumOfPieces = undefined) | 117 | + <!-- <el-input-number |
| 118 | - : form.minNumOfPieces | 118 | + v-model="minNumOfPieces" |
| 119 | - " | ||
| 120 | :precision="0" | 119 | :precision="0" |
| 121 | :controls="false" | 120 | :controls="false" |
| 122 | style="width: 100%" | 121 | style="width: 100%" |
| 123 | - :min="1" | 122 | + ></el-input-number> --> |
| 124 | - ></el-input-number> | ||
| 125 | </el-col> | 123 | </el-col> |
| 126 | <el-col style="text-align: center" :span="1">-</el-col> | 124 | <el-col style="text-align: center" :span="1">-</el-col> |
| 127 | <el-col :span="3"> | 125 | <el-col :span="3"> |
| 128 | - <!-- <el-input v-model="form.maxNumOfPieces"></el-input> --> | 126 | + <el-input |
| 129 | - <el-input-number | 127 | + class="numberInput" |
| 128 | + v-model.trim="maxNumOfPieces" | ||
| 129 | + ></el-input> | ||
| 130 | + <!-- <el-input-number | ||
| 130 | v-model=" | 131 | v-model=" |
| 131 | form.maxNumOfPieces == 0 | 132 | form.maxNumOfPieces == 0 |
| 132 | ? (form.maxNumOfPieces = undefined) | 133 | ? (form.maxNumOfPieces = undefined) |
| ... | @@ -135,15 +136,14 @@ | ... | @@ -135,15 +136,14 @@ |
| 135 | :precision="0" | 136 | :precision="0" |
| 136 | :controls="false" | 137 | :controls="false" |
| 137 | style="width: 100%" | 138 | style="width: 100%" |
| 138 | - :min="form.minNumOfPieces" | 139 | + ></el-input-number> --> |
| 139 | - ></el-input-number> | ||
| 140 | </el-col> | 140 | </el-col> |
| 141 | </el-form-item> | 141 | </el-form-item> |
| 142 | 142 | ||
| 143 | <el-form-item label="重量"> | 143 | <el-form-item label="重量"> |
| 144 | <el-col :span="3"> | 144 | <el-col :span="3"> |
| 145 | - <!-- <el-input v-model="form.minWeight"></el-input> --> | 145 | + <el-input class="numberInput" v-model.trim="minWeight"></el-input> |
| 146 | - <el-input-number | 146 | + <!-- <el-input-number |
| 147 | v-model=" | 147 | v-model=" |
| 148 | form.minWeight == 0 | 148 | form.minWeight == 0 |
| 149 | ? (form.minWeight = undefined) | 149 | ? (form.minWeight = undefined) |
| ... | @@ -152,14 +152,13 @@ | ... | @@ -152,14 +152,13 @@ |
| 152 | :precision="2" | 152 | :precision="2" |
| 153 | :controls="false" | 153 | :controls="false" |
| 154 | style="width: 100%" | 154 | style="width: 100%" |
| 155 | - :min="0.01" | 155 | + ></el-input-number> --> |
| 156 | - ></el-input-number> | ||
| 157 | </el-col> | 156 | </el-col> |
| 158 | <el-col :span="1" style="text-align: center"><span>Kg</span></el-col> | 157 | <el-col :span="1" style="text-align: center"><span>Kg</span></el-col> |
| 159 | <el-col style="text-align: center" :span="1">-</el-col> | 158 | <el-col style="text-align: center" :span="1">-</el-col> |
| 160 | <el-col :span="3"> | 159 | <el-col :span="3"> |
| 161 | - <!-- <el-input v-model="form.maxWeight"></el-input> --> | 160 | + <el-input class="numberInput" v-model.trim="maxWeight"></el-input> |
| 162 | - <el-input-number | 161 | + <!-- <el-input-number |
| 163 | v-model=" | 162 | v-model=" |
| 164 | form.maxWeight == 0 | 163 | form.maxWeight == 0 |
| 165 | ? (form.maxWeight = undefined) | 164 | ? (form.maxWeight = undefined) |
| ... | @@ -168,8 +167,7 @@ | ... | @@ -168,8 +167,7 @@ |
| 168 | :precision="2" | 167 | :precision="2" |
| 169 | :controls="false" | 168 | :controls="false" |
| 170 | style="width: 100%" | 169 | style="width: 100%" |
| 171 | - :min="form.minWeight" | 170 | + ></el-input-number> --> |
| 172 | - ></el-input-number> | ||
| 173 | </el-col> | 171 | </el-col> |
| 174 | <el-col :span="1" style="text-align: center"><span>Kg</span></el-col> | 172 | <el-col :span="1" style="text-align: center"><span>Kg</span></el-col> |
| 175 | </el-form-item> | 173 | </el-form-item> |
| ... | @@ -282,6 +280,10 @@ export default { | ... | @@ -282,6 +280,10 @@ export default { |
| 282 | data() { | 280 | data() { |
| 283 | return { | 281 | return { |
| 284 | form: { | 282 | form: { |
| 283 | + minNumOfPieces: undefined, | ||
| 284 | + maxNumOfPieces: undefined, | ||
| 285 | + minWeight: undefined, | ||
| 286 | + maxWeight: undefined, | ||
| 285 | typeOfGoods: [], | 287 | typeOfGoods: [], |
| 286 | declarationCategory: [], | 288 | declarationCategory: [], |
| 287 | serviceCode: [], | 289 | serviceCode: [], |
| ... | @@ -497,10 +499,10 @@ export default { | ... | @@ -497,10 +499,10 @@ export default { |
| 497 | ? info.subCategory.split(";") | 499 | ? info.subCategory.split(";") |
| 498 | : []; | 500 | : []; |
| 499 | this.form = info; | 501 | this.form = info; |
| 500 | - if (info.location != null || info.location == "") { | 502 | + if (info.notLocation != null || info.notLocation == "") { |
| 501 | - this.isLocation = "1"; | ||
| 502 | - } else { | ||
| 503 | this.isLocation = "2"; | 503 | this.isLocation = "2"; |
| 504 | + } else { | ||
| 505 | + this.isLocation = "1"; | ||
| 504 | } | 506 | } |
| 505 | this.isNeedRequired = info.isNeedRequired; | 507 | this.isNeedRequired = info.isNeedRequired; |
| 506 | } | 508 | } |
| ... | @@ -534,10 +536,10 @@ export default { | ... | @@ -534,10 +536,10 @@ export default { |
| 534 | ? info.subCategory.split(";") | 536 | ? info.subCategory.split(";") |
| 535 | : []; | 537 | : []; |
| 536 | this.form = info; | 538 | this.form = info; |
| 537 | - if (info.location != null || info.location == "") { | 539 | + if (info.notLocation != null || info.notLocation == "") { |
| 538 | - this.isLocation = "1"; | ||
| 539 | - } else { | ||
| 540 | this.isLocation = "2"; | 540 | this.isLocation = "2"; |
| 541 | + } else { | ||
| 542 | + this.isLocation = "1"; | ||
| 541 | } | 543 | } |
| 542 | let isNeedRequired = response.data.isNeedRequired; | 544 | let isNeedRequired = response.data.isNeedRequired; |
| 543 | this.form.isNeedRequired = isNeedRequired; | 545 | this.form.isNeedRequired = isNeedRequired; |
| ... | @@ -550,6 +552,56 @@ export default { | ... | @@ -550,6 +552,56 @@ export default { |
| 550 | this.loading = false; | 552 | this.loading = false; |
| 551 | } | 553 | } |
| 552 | }, | 554 | }, |
| 555 | + computed: { | ||
| 556 | + minNumOfPieces: { | ||
| 557 | + get: function () { | ||
| 558 | + return this.form.minNumOfPieces; | ||
| 559 | + }, | ||
| 560 | + set: function (val) { | ||
| 561 | + if (val == 0 || val == null || val == "-") { | ||
| 562 | + this.form.minNumOfPieces = undefined; | ||
| 563 | + } else if (!isNaN(val)) { | ||
| 564 | + this.form.minNumOfPieces = val; | ||
| 565 | + } | ||
| 566 | + }, | ||
| 567 | + }, | ||
| 568 | + maxNumOfPieces: { | ||
| 569 | + get: function () { | ||
| 570 | + return this.form.maxNumOfPieces; | ||
| 571 | + }, | ||
| 572 | + set: function (val) { | ||
| 573 | + if (val == 0 || val == null || val == "-") { | ||
| 574 | + this.form.maxNumOfPieces = undefined; | ||
| 575 | + } else if (!isNaN(val)) { | ||
| 576 | + this.form.maxNumOfPieces = val; | ||
| 577 | + } | ||
| 578 | + }, | ||
| 579 | + }, | ||
| 580 | + minWeight: { | ||
| 581 | + get: function () { | ||
| 582 | + return this.form.minWeight; | ||
| 583 | + }, | ||
| 584 | + set: function (val) { | ||
| 585 | + if (val == 0 || val == null || val == "-") { | ||
| 586 | + this.form.minWeight = undefined; | ||
| 587 | + } else if (!isNaN(val)) { | ||
| 588 | + this.form.minWeight = val; | ||
| 589 | + } | ||
| 590 | + }, | ||
| 591 | + }, | ||
| 592 | + maxWeight: { | ||
| 593 | + get: function () { | ||
| 594 | + return this.form.maxWeight; | ||
| 595 | + }, | ||
| 596 | + set: function (val) { | ||
| 597 | + if (val == 0 || val == null || val == "-") { | ||
| 598 | + this.form.maxWeight = undefined; | ||
| 599 | + } else if (!isNaN(val)) { | ||
| 600 | + this.form.maxWeight = val; | ||
| 601 | + } | ||
| 602 | + }, | ||
| 603 | + }, | ||
| 604 | + }, | ||
| 553 | }; | 605 | }; |
| 554 | </script> | 606 | </script> |
| 555 | <style rel="stylesheet/scss" lang="scss"> | 607 | <style rel="stylesheet/scss" lang="scss"> |
| ... | @@ -578,4 +630,9 @@ export default { | ... | @@ -578,4 +630,9 @@ export default { |
| 578 | .el-checkbox__input.is-disabled.is-checked .el-checkbox__inner { | 630 | .el-checkbox__input.is-disabled.is-checked .el-checkbox__inner { |
| 579 | border-color: #606266; | 631 | border-color: #606266; |
| 580 | } | 632 | } |
| 633 | +.numberInput { | ||
| 634 | + input { | ||
| 635 | + text-align: center; | ||
| 636 | + } | ||
| 637 | +} | ||
| 581 | </style> | 638 | </style> | ... | ... |
| ... | @@ -150,7 +150,7 @@ | ... | @@ -150,7 +150,7 @@ |
| 150 | findSourceFlightAndFlightDateApi | 150 | findSourceFlightAndFlightDateApi |
| 151 | } from "@/api/sourceFlightRules"; | 151 | } from "@/api/sourceFlightRules"; |
| 152 | export default { | 152 | export default { |
| 153 | - name: "SourceFlightRules", | 153 | + name: "FlightRandConfig", |
| 154 | data() { | 154 | data() { |
| 155 | return { | 155 | return { |
| 156 | // data 中设定 | 156 | // data 中设定 | ... | ... |
| ... | @@ -44,6 +44,7 @@ | ... | @@ -44,6 +44,7 @@ |
| 44 | importcaPreReview, | 44 | importcaPreReview, |
| 45 | } from "@/api/caPreReviewImport"; | 45 | } from "@/api/caPreReviewImport"; |
| 46 | export default { | 46 | export default { |
| 47 | + name:"CAPreReviewImport", | ||
| 47 | data() { | 48 | data() { |
| 48 | return { | 49 | return { |
| 49 | // 遮罩层 | 50 | // 遮罩层 | ... | ... |
| ... | @@ -73,6 +73,7 @@ import { | ... | @@ -73,6 +73,7 @@ import { |
| 73 | importFlight, | 73 | importFlight, |
| 74 | } from "@/api/flightInfoImport"; | 74 | } from "@/api/flightInfoImport"; |
| 75 | export default { | 75 | export default { |
| 76 | + name:"FlightInformationImport", | ||
| 76 | data() { | 77 | data() { |
| 77 | return { | 78 | return { |
| 78 | flightType: [], | 79 | flightType: [], | ... | ... |
| ... | @@ -277,7 +277,7 @@ | ... | @@ -277,7 +277,7 @@ |
| 277 | 277 | ||
| 278 | } from "@/api/findAllFltData"; | 278 | } from "@/api/findAllFltData"; |
| 279 | export default { | 279 | export default { |
| 280 | - name: "findAllFltData", | 280 | + name: "FlightInformationMaintenance", |
| 281 | data() { | 281 | data() { |
| 282 | return { | 282 | return { |
| 283 | //高价百分比是否打开 | 283 | //高价百分比是否打开 | ... | ... |
| ... | @@ -9,7 +9,7 @@ | ... | @@ -9,7 +9,7 @@ |
| 9 | label-width="auto" | 9 | label-width="auto" |
| 10 | style="margin: 10px; width: 100%" | 10 | style="margin: 10px; width: 100%" |
| 11 | > | 11 | > |
| 12 | - <el-row type="flex" style="flexWrap: wrap!important"> | 12 | + <el-row type="flex" style="flexWrap: wrap !important"> |
| 13 | <el-col :span="6"> | 13 | <el-col :span="6"> |
| 14 | <el-form-item label="配舱航班日期:"> | 14 | <el-form-item label="配舱航班日期:"> |
| 15 | <el-date-picker | 15 | <el-date-picker |
| ... | @@ -26,7 +26,13 @@ | ... | @@ -26,7 +26,13 @@ |
| 26 | </el-col> | 26 | </el-col> |
| 27 | <el-col :span="6"> | 27 | <el-col :span="6"> |
| 28 | <el-form-item label="配载航班号:"> | 28 | <el-form-item label="配载航班号:"> |
| 29 | - <el-input type="textarea" v-model="cargoPlaneNo" class="formItem" placeholder="AC001;AC002" rows="1"></el-input> | 29 | + <el-input |
| 30 | + type="textarea" | ||
| 31 | + v-model="cargoPlaneNo" | ||
| 32 | + class="formItem" | ||
| 33 | + placeholder="AC001;AC002" | ||
| 34 | + rows="1" | ||
| 35 | + ></el-input> | ||
| 30 | </el-form-item> | 36 | </el-form-item> |
| 31 | </el-col> | 37 | </el-col> |
| 32 | <el-col :span="6"> | 38 | <el-col :span="6"> |
| ... | @@ -52,7 +58,7 @@ | ... | @@ -52,7 +58,7 @@ |
| 52 | <el-form-item label="运单号:"> | 58 | <el-form-item label="运单号:"> |
| 53 | <el-input | 59 | <el-input |
| 54 | type="textarea" | 60 | type="textarea" |
| 55 | - v-model="formData.waybillNo" | 61 | + v-model.trim="formData.waybillNo" |
| 56 | class="formItem" | 62 | class="formItem" |
| 57 | placeholder="请输入运单号(回车间隔)" | 63 | placeholder="请输入运单号(回车间隔)" |
| 58 | rows="1" | 64 | rows="1" |
| ... | @@ -118,13 +124,8 @@ | ... | @@ -118,13 +124,8 @@ |
| 118 | ></el-input> | 124 | ></el-input> |
| 119 | </el-form-item> | 125 | </el-form-item> |
| 120 | </el-col> | 126 | </el-col> |
| 121 | - <el-col :span="24"> | 127 | + <el-col :span="24" v-show="formShow"> |
| 122 | - <el-collapse> | 128 | + <el-row type="flex" style="flexWrap: wrap !important"> |
| 123 | - <el-collapse-item> | ||
| 124 | - <template slot="title"> | ||
| 125 | - <span style="fontWeight:900;color:#409EFF;fontSize:14px"><i class="el-icon-s-tools"></i>更多查询条件</span> | ||
| 126 | - </template> | ||
| 127 | - <el-row type="flex" style="flexWrap: wrap!important"> | ||
| 128 | <el-col :span="6"> | 129 | <el-col :span="6"> |
| 129 | <el-form-item label="ACCS原航班日期:"> | 130 | <el-form-item label="ACCS原航班日期:"> |
| 130 | <el-date-picker | 131 | <el-date-picker |
| ... | @@ -141,7 +142,12 @@ | ... | @@ -141,7 +142,12 @@ |
| 141 | </el-col> | 142 | </el-col> |
| 142 | <el-col :span="6"> | 143 | <el-col :span="6"> |
| 143 | <el-form-item label="ACCS原航班号:"> | 144 | <el-form-item label="ACCS原航班号:"> |
| 144 | - <el-input type="text" v-model="fltNo" class="formItem" placeholder="请输入ACCS航班号"></el-input> | 145 | + <el-input |
| 146 | + type="text" | ||
| 147 | + v-model="fltNo" | ||
| 148 | + class="formItem" | ||
| 149 | + placeholder="请输入ACCS航班号" | ||
| 150 | + ></el-input> | ||
| 145 | </el-form-item> | 151 | </el-form-item> |
| 146 | </el-col> | 152 | </el-col> |
| 147 | <el-col :span="6"> | 153 | <el-col :span="6"> |
| ... | @@ -196,25 +202,15 @@ | ... | @@ -196,25 +202,15 @@ |
| 196 | class="formItem" | 202 | class="formItem" |
| 197 | clearable | 203 | clearable |
| 198 | > | 204 | > |
| 199 | - <el-option | 205 | + <el-option label="手动" value="1"> </el-option> |
| 200 | - label="手动" | 206 | + <el-option label="自动" value="2"> </el-option> |
| 201 | - value="1" | ||
| 202 | - > | ||
| 203 | - </el-option> | ||
| 204 | - <el-option | ||
| 205 | - label="自动" | ||
| 206 | - value="2" | ||
| 207 | - > | ||
| 208 | - </el-option> | ||
| 209 | </el-select> | 207 | </el-select> |
| 210 | </el-form-item> | 208 | </el-form-item> |
| 211 | </el-col> | 209 | </el-col> |
| 212 | </el-row> | 210 | </el-row> |
| 213 | - </el-collapse-item> | ||
| 214 | - </el-collapse> | ||
| 215 | </el-col> | 211 | </el-col> |
| 216 | </el-row> | 212 | </el-row> |
| 217 | - <div style="paddingLeft: 10px;marginTop:20px"> | 213 | + <div style="paddingLeft: 10px; marginTop: 20px"> |
| 218 | <el-button | 214 | <el-button |
| 219 | type="primary" | 215 | type="primary" |
| 220 | icon="el-icon-search" | 216 | icon="el-icon-search" |
| ... | @@ -226,31 +222,62 @@ | ... | @@ -226,31 +222,62 @@ |
| 226 | <!-- <el-button type="primary" size="small" @click="checks(tableData)" | 222 | <!-- <el-button type="primary" size="small" @click="checks(tableData)" |
| 227 | >全选/全否</el-button | 223 | >全选/全否</el-button |
| 228 | > --> | 224 | > --> |
| 229 | - <el-button :type="downLoadingTip.downloading?'warning':'primary'" size="small" @click="xlse(0)" :disabled="tableData.length==0" :loading="downLoadingTip.downloading" | 225 | + <el-button |
| 230 | - >{{downLoadingTip.downloading?downLoadingTip.tip:"导出本页查询结果"}}</el-button | 226 | + :type="downLoadingTip.downloading ? 'warning' : 'primary'" |
| 227 | + size="small" | ||
| 228 | + @click="xlse(0)" | ||
| 229 | + :disabled="tableData.length == 0" | ||
| 230 | + :loading="downLoadingTip.downloading" | ||
| 231 | + >{{ | ||
| 232 | + downLoadingTip.downloading ? downLoadingTip.tip : "导出本页查询结果" | ||
| 233 | + }}</el-button | ||
| 231 | > | 234 | > |
| 232 | - <el-button :type="downLoadingTip.downloading?'warning':'primary'" size="small" @click="xlse(1)" :disabled="tableData.length==0" :loading="downLoadingTip.downloading" | 235 | + <el-button |
| 233 | - >{{downLoadingTip.downloading?downLoadingTip.tip:"导出全部查询结果"}}</el-button | 236 | + :type="downLoadingTip.downloading ? 'warning' : 'primary'" |
| 237 | + size="small" | ||
| 238 | + @click="xlse(1)" | ||
| 239 | + :disabled="tableData.length == 0" | ||
| 240 | + :loading="downLoadingTip.downloading" | ||
| 241 | + >{{ | ||
| 242 | + downLoadingTip.downloading ? downLoadingTip.tip : "导出全部查询结果" | ||
| 243 | + }}</el-button | ||
| 234 | > | 244 | > |
| 235 | - <span style="marginLeft:20px;color:#ffba00">全部导出上限80000条数据</span> | 245 | + <span style="marginLeft: 20px; color: #ffba00" |
| 236 | - <el-progress v-if="progress!=0" class="progress" :stroke-width="12" :show-text="true" :percentage="progress" :status="progress == 100?'success':'warning'"></el-progress> | 246 | + >全部导出上限80000条数据</span |
| 247 | + > | ||
| 248 | + <el-progress | ||
| 249 | + v-if="progress != 0" | ||
| 250 | + class="progress" | ||
| 251 | + :stroke-width="12" | ||
| 252 | + :show-text="true" | ||
| 253 | + :percentage="progress" | ||
| 254 | + :status="progress == 100 ? 'success' : 'warning'" | ||
| 255 | + ></el-progress> | ||
| 237 | <div class="tips"> | 256 | <div class="tips"> |
| 238 | <span style="paddingRight: 50px">总重量:{{ allWeight }}</span> | 257 | <span style="paddingRight: 50px">总重量:{{ allWeight }}</span> |
| 239 | <span>总件数:{{ allQty }}</span> | 258 | <span>总件数:{{ allQty }}</span> |
| 240 | </div> | 259 | </div> |
| 260 | + <div class="formShow" @click="formShow = !formShow"> | ||
| 261 | + <i class="el-icon-s-tools"></i | ||
| 262 | + >{{ formShow ? "收起条件" : "更多条件" }} | ||
| 263 | + </div> | ||
| 241 | </div> | 264 | </div> |
| 242 | </el-form> | 265 | </el-form> |
| 243 | <el-table | 266 | <el-table |
| 244 | ref="cargoTable" | 267 | ref="cargoTable" |
| 245 | :data="tableData" | 268 | :data="tableData" |
| 246 | v-loading="tableLoading" | 269 | v-loading="tableLoading" |
| 247 | - highlight-current-row border stripe | 270 | + highlight-current-row |
| 271 | + border | ||
| 272 | + stripe | ||
| 248 | height="430" | 273 | height="430" |
| 249 | size="mini" | 274 | size="mini" |
| 250 | @select="cheacked" | 275 | @select="cheacked" |
| 251 | @select-all="selectAll" | 276 | @select-all="selectAll" |
| 277 | + @sort-change="sortChange" | ||
| 252 | > | 278 | > |
| 253 | - <el-table-column type="selection" width="55" fixed align="center"> </el-table-column> | 279 | + <el-table-column type="selection" width="55" fixed align="center"> |
| 280 | + </el-table-column> | ||
| 254 | <el-table-column type="index" label="序号" align="center"> | 281 | <el-table-column type="index" label="序号" align="center"> |
| 255 | <template slot-scope="scope">{{ scope.$index + 1 }}</template> | 282 | <template slot-scope="scope">{{ scope.$index + 1 }}</template> |
| 256 | </el-table-column> | 283 | </el-table-column> |
| ... | @@ -262,7 +289,7 @@ | ... | @@ -262,7 +289,7 @@ |
| 262 | header-align="center" | 289 | header-align="center" |
| 263 | align="center" | 290 | align="center" |
| 264 | :show-overflow-tooltip="true" | 291 | :show-overflow-tooltip="true" |
| 265 | - :width="item.value=='bigPretrialOpinion'?'300':'170'" | 292 | + :width="item.value == 'bigPretrialOpinion' ? '300' : '170'" |
| 266 | :formatter="formatter" | 293 | :formatter="formatter" |
| 267 | sortable | 294 | sortable |
| 268 | > | 295 | > |
| ... | @@ -284,10 +311,10 @@ | ... | @@ -284,10 +311,10 @@ |
| 284 | <script> | 311 | <script> |
| 285 | import { findConditionData, findCargoData } from "@/api/cargoSelect"; | 312 | import { findConditionData, findCargoData } from "@/api/cargoSelect"; |
| 286 | import { downLoadXlsx } from "@/utils/zipdownload"; | 313 | import { downLoadXlsx } from "@/utils/zipdownload"; |
| 287 | -import { upCase } from "@/utils/FedEx" | 314 | +import { upCase } from "@/utils/FedEx"; |
| 288 | 315 | ||
| 289 | export default { | 316 | export default { |
| 290 | - name:"queryCargo", | 317 | + name: "QueryCargo", |
| 291 | data() { | 318 | data() { |
| 292 | return { | 319 | return { |
| 293 | formData: { | 320 | formData: { |
| ... | @@ -312,9 +339,9 @@ export default { | ... | @@ -312,9 +339,9 @@ export default { |
| 312 | dataSources: "", | 339 | dataSources: "", |
| 313 | customsReceiptStatusId: null, | 340 | customsReceiptStatusId: null, |
| 314 | big: null, | 341 | big: null, |
| 315 | - cargoPlaneNo:null, | 342 | + cargoPlaneNo: null, |
| 316 | - cargoPlaneStart:null, | 343 | + cargoPlaneStart: null, |
| 317 | - cargoPlaneEnd:null, | 344 | + cargoPlaneEnd: null, |
| 318 | }, //表单数据 | 345 | }, //表单数据 |
| 319 | tableHeader: [ | 346 | tableHeader: [ |
| 320 | { name: "口岸代码", value: "portName" }, | 347 | { name: "口岸代码", value: "portName" }, |
| ... | @@ -370,20 +397,20 @@ export default { | ... | @@ -370,20 +397,20 @@ export default { |
| 370 | start: -1, | 397 | start: -1, |
| 371 | valueFormat: "yyyy-MM-dd", | 398 | valueFormat: "yyyy-MM-dd", |
| 372 | tableLoading: false, | 399 | tableLoading: false, |
| 373 | - downLoadingTip:{ | 400 | + downLoadingTip: { |
| 374 | - tip:"", | 401 | + tip: "", |
| 375 | - downloading:false, | 402 | + downloading: false, |
| 376 | }, | 403 | }, |
| 377 | totalCount: 0, | 404 | totalCount: 0, |
| 378 | selectTable: [], | 405 | selectTable: [], |
| 379 | flightTime: [], | 406 | flightTime: [], |
| 380 | prepalyFlightTime: [], | 407 | prepalyFlightTime: [], |
| 381 | - cargoPlaneTime:[], | 408 | + cargoPlaneTime: [], |
| 382 | createDate: [], | 409 | createDate: [], |
| 383 | - limitStart: 0, | 410 | + limitStart: 1, |
| 384 | limitSize: 100, //无限制-1 | 411 | limitSize: 100, //无限制-1 |
| 385 | - progress:0, | 412 | + progress: 0, |
| 386 | - selecetALL:false, | 413 | + selecetALL: false, |
| 387 | }; | 414 | }; |
| 388 | }, | 415 | }, |
| 389 | 416 | ||
| ... | @@ -423,42 +450,46 @@ export default { | ... | @@ -423,42 +450,46 @@ export default { |
| 423 | this.tableData = []; | 450 | this.tableData = []; |
| 424 | this.allWeight = 0; | 451 | this.allWeight = 0; |
| 425 | this.allQty = 0; | 452 | this.allQty = 0; |
| 426 | - this.checks() | 453 | + this.checks(); |
| 427 | this.tableLoading = true; | 454 | this.tableLoading = true; |
| 428 | - if(this.formData.customsReceiptStatusId != null && this.formData.customsReceiptStatusId.length < 1){ | 455 | + if ( |
| 456 | + this.formData.customsReceiptStatusId != null && | ||
| 457 | + this.formData.customsReceiptStatusId.length < 1 | ||
| 458 | + ) { | ||
| 429 | this.formData.customsReceiptStatusId = null; | 459 | this.formData.customsReceiptStatusId = null; |
| 430 | } | 460 | } |
| 431 | if (this.createDate != null && this.createDate.length > 0) { | 461 | if (this.createDate != null && this.createDate.length > 0) { |
| 432 | this.formData.createTimeStart = this.createDate[0]; | 462 | this.formData.createTimeStart = this.createDate[0]; |
| 433 | this.formData.createTimeEnd = this.createDate[1]; | 463 | this.formData.createTimeEnd = this.createDate[1]; |
| 434 | - }else{ | 464 | + } else { |
| 435 | this.formData.createTimeStart = null; | 465 | this.formData.createTimeStart = null; |
| 436 | this.formData.createTimeEnd = null; | 466 | this.formData.createTimeEnd = null; |
| 437 | } | 467 | } |
| 438 | if (this.prepalyFlightTime != null && this.prepalyFlightTime.length > 0) { | 468 | if (this.prepalyFlightTime != null && this.prepalyFlightTime.length > 0) { |
| 439 | this.formData.prematchFltDateStart = this.prepalyFlightTime[0]; | 469 | this.formData.prematchFltDateStart = this.prepalyFlightTime[0]; |
| 440 | this.formData.prematchFltDateEnd = this.prepalyFlightTime[1]; | 470 | this.formData.prematchFltDateEnd = this.prepalyFlightTime[1]; |
| 441 | - }else{ | 471 | + } else { |
| 442 | - this.formData.prematchFltDateStart =""; | 472 | + this.formData.prematchFltDateStart = ""; |
| 443 | this.formData.prematchFltDateEnd = ""; | 473 | this.formData.prematchFltDateEnd = ""; |
| 444 | } | 474 | } |
| 445 | if (this.flightTime != null && this.flightTime.length > 0) { | 475 | if (this.flightTime != null && this.flightTime.length > 0) { |
| 446 | this.formData.fltDateStart = this.flightTime[0]; | 476 | this.formData.fltDateStart = this.flightTime[0]; |
| 447 | this.formData.fltDateEnd = this.flightTime[1]; | 477 | this.formData.fltDateEnd = this.flightTime[1]; |
| 448 | - }else{ | 478 | + } else { |
| 449 | this.formData.fltDateStart = ""; | 479 | this.formData.fltDateStart = ""; |
| 450 | this.formData.fltDateEnd = ""; | 480 | this.formData.fltDateEnd = ""; |
| 451 | } | 481 | } |
| 452 | - if(this.cargoPlaneTime != null && this.cargoPlaneTime.length > 0){ | 482 | + if (this.cargoPlaneTime != null && this.cargoPlaneTime.length > 0) { |
| 453 | this.formData.cargoPlaneStart = this.cargoPlaneTime[0]; | 483 | this.formData.cargoPlaneStart = this.cargoPlaneTime[0]; |
| 454 | this.formData.cargoPlaneEnd = this.cargoPlaneTime[1]; | 484 | this.formData.cargoPlaneEnd = this.cargoPlaneTime[1]; |
| 455 | - }else{ | 485 | + } else { |
| 456 | this.formData.cargoPlaneStart = null; | 486 | this.formData.cargoPlaneStart = null; |
| 457 | this.formData.cargoPlaneEnd = null; | 487 | this.formData.cargoPlaneEnd = null; |
| 458 | } | 488 | } |
| 459 | this.formData.limitStart = this.limitStart; | 489 | this.formData.limitStart = this.limitStart; |
| 460 | this.formData.limitSize = this.limitSize; | 490 | this.formData.limitSize = this.limitSize; |
| 461 | - findCargoData(this.formData).then((res) => { | 491 | + findCargoData(this.formData) |
| 492 | + .then((res) => { | ||
| 462 | if (res.code == 200) { | 493 | if (res.code == 200) { |
| 463 | if (res.data.list.length > 0) { | 494 | if (res.data.list.length > 0) { |
| 464 | this.tableData = res.data.list; | 495 | this.tableData = res.data.list; |
| ... | @@ -479,7 +510,8 @@ export default { | ... | @@ -479,7 +510,8 @@ export default { |
| 479 | }); | 510 | }); |
| 480 | } | 511 | } |
| 481 | this.tableLoading = false; | 512 | this.tableLoading = false; |
| 482 | - }).catch(()=>{ | 513 | + }) |
| 514 | + .catch(() => { | ||
| 483 | this.tableLoading = false; | 515 | this.tableLoading = false; |
| 484 | }); | 516 | }); |
| 485 | }, | 517 | }, |
| ... | @@ -501,19 +533,18 @@ export default { | ... | @@ -501,19 +533,18 @@ export default { |
| 501 | this.selecetALL = false; | 533 | this.selecetALL = false; |
| 502 | } | 534 | } |
| 503 | }, | 535 | }, |
| 504 | - selectAll(selection){ | 536 | + selectAll(selection) { |
| 505 | - if(selection.length > 0){ | 537 | + if (selection.length > 0) { |
| 506 | - selection.forEach(item => { | 538 | + selection.forEach((item) => { |
| 507 | this.allWeight = item.actualWeight + this.allWeight; | 539 | this.allWeight = item.actualWeight + this.allWeight; |
| 508 | this.allQty = item.qty + this.allQty; | 540 | this.allQty = item.qty + this.allQty; |
| 509 | - }) | 541 | + }); |
| 510 | this.allWeight = this.allWeight.toFixed(1); | 542 | this.allWeight = this.allWeight.toFixed(1); |
| 511 | this.allQty = this.allQty.toFixed(0); | 543 | this.allQty = this.allQty.toFixed(0); |
| 512 | - }else{ | 544 | + } else { |
| 513 | this.allWeight = 0; | 545 | this.allWeight = 0; |
| 514 | this.allQty = 0; | 546 | this.allQty = 0; |
| 515 | } | 547 | } |
| 516 | - | ||
| 517 | }, | 548 | }, |
| 518 | //下一页 | 549 | //下一页 |
| 519 | nextClick() { | 550 | nextClick() { |
| ... | @@ -531,35 +562,35 @@ export default { | ... | @@ -531,35 +562,35 @@ export default { |
| 531 | //表单项选中操作 | 562 | //表单项选中操作 |
| 532 | cheacked(sl, row) { | 563 | cheacked(sl, row) { |
| 533 | let end = row.index; | 564 | let end = row.index; |
| 534 | - if(this.shiftKey){ | 565 | + if (this.shiftKey) { |
| 535 | const sum = Math.abs(this.start - end); | 566 | const sum = Math.abs(this.start - end); |
| 536 | const min = Math.min(this.start, end); | 567 | const min = Math.min(this.start, end); |
| 537 | - let i ; | 568 | + let i; |
| 538 | - if(this.start === -1 && sl.includes(this.tableData[row.index])){ | 569 | + if (this.start === -1 && sl.includes(this.tableData[row.index])) { |
| 539 | - for(i=0; i < sum; i++){ | 570 | + for (i = 0; i < sum; i++) { |
| 540 | this.$refs.cargoTable.toggleRowSelection(this.tableData[i], true); | 571 | this.$refs.cargoTable.toggleRowSelection(this.tableData[i], true); |
| 541 | this.selectTable.push(this.tableData[i]); | 572 | this.selectTable.push(this.tableData[i]); |
| 542 | } | 573 | } |
| 543 | - }else if(sl.includes(this.tableData[row.index])){ | 574 | + } else if (sl.includes(this.tableData[row.index])) { |
| 544 | - for(i = this.start+1; i <= end; i++){ | 575 | + for (i = this.start + 1; i <= end; i++) { |
| 545 | this.$refs.cargoTable.toggleRowSelection(this.tableData[i], true); | 576 | this.$refs.cargoTable.toggleRowSelection(this.tableData[i], true); |
| 546 | this.selectTable.push(this.tableData[i]); | 577 | this.selectTable.push(this.tableData[i]); |
| 547 | } | 578 | } |
| 548 | - }else if(!sl.includes(this.tableData[row.index])){ | 579 | + } else if (!sl.includes(this.tableData[row.index])) { |
| 549 | - this.selectTable.splice(end-1,sum + 1); | 580 | + this.selectTable.splice(end - 1, sum + 1); |
| 550 | - for(i = end ; i <= this.start ; i++){ | 581 | + for (i = end; i <= this.start; i++) { |
| 551 | this.$refs.cargoTable.toggleRowSelection(this.tableData[i], false); | 582 | this.$refs.cargoTable.toggleRowSelection(this.tableData[i], false); |
| 552 | } | 583 | } |
| 553 | } | 584 | } |
| 554 | this.start = end; | 585 | this.start = end; |
| 555 | - }else{ | 586 | + } else { |
| 556 | this.start = end; | 587 | this.start = end; |
| 557 | - if(sl.includes(this.tableData[end])){ | 588 | + if (sl.includes(this.tableData[end])) { |
| 558 | this.selectTable.push(row); | 589 | this.selectTable.push(row); |
| 559 | - }else{ | 590 | + } else { |
| 560 | - for(let i =0; i <this.selectTable.length; i++){ | 591 | + for (let i = 0; i < this.selectTable.length; i++) { |
| 561 | - if(this.selectTable[i].index == row.index){ | 592 | + if (this.selectTable[i].index == row.index) { |
| 562 | - this.selectTable.splice(i,1); | 593 | + this.selectTable.splice(i, 1); |
| 563 | } | 594 | } |
| 564 | } | 595 | } |
| 565 | } | 596 | } |
| ... | @@ -571,42 +602,45 @@ export default { | ... | @@ -571,42 +602,45 @@ export default { |
| 571 | this.allWeight = this.allWeight + this.selectTable[i].actualWeight; | 602 | this.allWeight = this.allWeight + this.selectTable[i].actualWeight; |
| 572 | this.allQty = this.allQty + this.selectTable[i].qty; | 603 | this.allQty = this.allQty + this.selectTable[i].qty; |
| 573 | } | 604 | } |
| 574 | - this.allQty = this.allQty.toFixed(0); | 605 | + this.allQty = this.allQty.toFixed(); |
| 575 | - this.allWeight = this.allWeight.toFixed(1); | 606 | + this.allWeight = this.allWeight.toFixed(2); |
| 576 | }, | 607 | }, |
| 577 | // 导出表格 | 608 | // 导出表格 |
| 578 | xlse(page) { | 609 | xlse(page) { |
| 579 | this.progress = 1; | 610 | this.progress = 1; |
| 580 | this.downLoadingTip.downloading = true; | 611 | this.downLoadingTip.downloading = true; |
| 581 | - let cargoXlse = {title:"货物导出表",cargoConditionDto:{}}; | 612 | + let cargoXlse = { title: "货物导出表", cargoConditionDto: {} }; |
| 582 | - if(this.formData.customsReceiptStatusId != null && this.formData.customsReceiptStatusId.length < 1){ | 613 | + if ( |
| 614 | + this.formData.customsReceiptStatusId != null && | ||
| 615 | + this.formData.customsReceiptStatusId.length < 1 | ||
| 616 | + ) { | ||
| 583 | this.formData.customsReceiptStatusId = null; | 617 | this.formData.customsReceiptStatusId = null; |
| 584 | } | 618 | } |
| 585 | if (this.createDate != null && this.createDate.length > 0) { | 619 | if (this.createDate != null && this.createDate.length > 0) { |
| 586 | this.formData.createTimeStart = this.createDate[0]; | 620 | this.formData.createTimeStart = this.createDate[0]; |
| 587 | this.formData.createTimeEnd = this.createDate[1]; | 621 | this.formData.createTimeEnd = this.createDate[1]; |
| 588 | - }else{ | 622 | + } else { |
| 589 | this.formData.createTimeStart = null; | 623 | this.formData.createTimeStart = null; |
| 590 | this.formData.createTimeEnd = null; | 624 | this.formData.createTimeEnd = null; |
| 591 | } | 625 | } |
| 592 | if (this.prepalyFlightTime != null && this.prepalyFlightTime.length > 0) { | 626 | if (this.prepalyFlightTime != null && this.prepalyFlightTime.length > 0) { |
| 593 | this.formData.prematchFltDateStart = this.prepalyFlightTime[0]; | 627 | this.formData.prematchFltDateStart = this.prepalyFlightTime[0]; |
| 594 | this.formData.prematchFltDateEnd = this.prepalyFlightTime[1]; | 628 | this.formData.prematchFltDateEnd = this.prepalyFlightTime[1]; |
| 595 | - }else{ | 629 | + } else { |
| 596 | - this.formData.prematchFltDateStart =""; | 630 | + this.formData.prematchFltDateStart = ""; |
| 597 | this.formData.prematchFltDateEnd = ""; | 631 | this.formData.prematchFltDateEnd = ""; |
| 598 | } | 632 | } |
| 599 | if (this.flightTime != null && this.flightTime.length > 0) { | 633 | if (this.flightTime != null && this.flightTime.length > 0) { |
| 600 | this.formData.fltDateStart = this.flightTime[0]; | 634 | this.formData.fltDateStart = this.flightTime[0]; |
| 601 | this.formData.fltDateEnd = this.flightTime[1]; | 635 | this.formData.fltDateEnd = this.flightTime[1]; |
| 602 | - }else{ | 636 | + } else { |
| 603 | this.formData.fltDateStart = ""; | 637 | this.formData.fltDateStart = ""; |
| 604 | this.formData.fltDateEnd = ""; | 638 | this.formData.fltDateEnd = ""; |
| 605 | } | 639 | } |
| 606 | - if(this.cargoPlaneTime != null && this.cargoPlaneTime.length > 0){ | 640 | + if (this.cargoPlaneTime != null && this.cargoPlaneTime.length > 0) { |
| 607 | this.formData.cargoPlaneStart = this.cargoPlaneTime[0]; | 641 | this.formData.cargoPlaneStart = this.cargoPlaneTime[0]; |
| 608 | this.formData.cargoPlaneEnd = this.cargoPlaneTime[1]; | 642 | this.formData.cargoPlaneEnd = this.cargoPlaneTime[1]; |
| 609 | - }else{ | 643 | + } else { |
| 610 | this.formData.cargoPlaneStart = null; | 644 | this.formData.cargoPlaneStart = null; |
| 611 | this.formData.cargoPlaneEnd = null; | 645 | this.formData.cargoPlaneEnd = null; |
| 612 | } | 646 | } |
| ... | @@ -614,30 +648,34 @@ export default { | ... | @@ -614,30 +648,34 @@ export default { |
| 614 | cargoXlse.cargoConditionDto.limitSize = this.limitSize; | 648 | cargoXlse.cargoConditionDto.limitSize = this.limitSize; |
| 615 | 649 | ||
| 616 | if (page == 0) { | 650 | if (page == 0) { |
| 617 | - this.downLoadingTip.tip = "正在导出本页结果集" | 651 | + this.downLoadingTip.tip = "正在导出本页结果集"; |
| 618 | cargoXlse.cargoConditionDto.limitStart = this.limitStart; | 652 | cargoXlse.cargoConditionDto.limitStart = this.limitStart; |
| 619 | - downLoadXlsx("/cargo/excel",cargoXlse,"货物查询表").then(()=>{ | 653 | + downLoadXlsx("/cargo/excel", cargoXlse, "货物查询表") |
| 654 | + .then(() => { | ||
| 620 | this.downLoadingTip.downloading = false; | 655 | this.downLoadingTip.downloading = false; |
| 621 | - this.downLoadingTip.tip = "" | 656 | + this.downLoadingTip.tip = ""; |
| 622 | this.progress = 100; | 657 | this.progress = 100; |
| 623 | - }).catch(()=>{ | ||
| 624 | - this.downLoadingTip.downloading = false; | ||
| 625 | - this.downLoadingTip.tip = "" | ||
| 626 | }) | 658 | }) |
| 659 | + .catch(() => { | ||
| 660 | + this.downLoadingTip.downloading = false; | ||
| 661 | + this.downLoadingTip.tip = ""; | ||
| 662 | + }); | ||
| 627 | } else { | 663 | } else { |
| 628 | - if(this.totalCount < 80000){ | 664 | + if (this.totalCount < 80000) { |
| 629 | - this.downLoadingTip.tip = "正在导出全部结果集" | 665 | + this.downLoadingTip.tip = "正在导出全部结果集"; |
| 630 | cargoXlse.cargoConditionDto.limitStart = 0; | 666 | cargoXlse.cargoConditionDto.limitStart = 0; |
| 631 | cargoXlse.cargoConditionDto.limitSize = -1; | 667 | cargoXlse.cargoConditionDto.limitSize = -1; |
| 632 | - downLoadXlsx("/cargo/excel",cargoXlse,"货物查询表").then(()=>{ | 668 | + downLoadXlsx("/cargo/excel", cargoXlse, "货物查询表") |
| 669 | + .then(() => { | ||
| 633 | this.downLoadingTip.downloading = false; | 670 | this.downLoadingTip.downloading = false; |
| 634 | - this.downLoadingTip.tip = "" | 671 | + this.downLoadingTip.tip = ""; |
| 635 | this.progress = 100; | 672 | this.progress = 100; |
| 636 | - }).catch(()=>{ | ||
| 637 | - this.downLoadingTip.downloading = false; | ||
| 638 | - this.downLoadingTip.tip = "" | ||
| 639 | }) | 673 | }) |
| 640 | - }else{ | 674 | + .catch(() => { |
| 675 | + this.downLoadingTip.downloading = false; | ||
| 676 | + this.downLoadingTip.tip = ""; | ||
| 677 | + }); | ||
| 678 | + } else { | ||
| 641 | this.downLoadingTip.downloading = false; | 679 | this.downLoadingTip.downloading = false; |
| 642 | this.$message({ | 680 | this.$message({ |
| 643 | message: "数据量过大无法导出", | 681 | message: "数据量过大无法导出", |
| ... | @@ -646,17 +684,21 @@ export default { | ... | @@ -646,17 +684,21 @@ export default { |
| 646 | } | 684 | } |
| 647 | } | 685 | } |
| 648 | }, | 686 | }, |
| 687 | + //排序 | ||
| 688 | + sortChange() { | ||
| 689 | + this.tableData.sort(); | ||
| 690 | + }, | ||
| 649 | //表格格式化 | 691 | //表格格式化 |
| 650 | - formatter(row,column,cellValue,index){ | 692 | + formatter(row, column, cellValue, index) { |
| 651 | - if(column.property=="cargoRulesStatus"){ | 693 | + if (column.property == "cargoRulesStatus") { |
| 652 | - if(cellValue == 1){ | 694 | + if (cellValue == 1) { |
| 653 | - return cellValue = "手动" | 695 | + return (cellValue = "手动"); |
| 654 | - }else if(cellValue == 2){ | 696 | + } else if (cellValue == 2) { |
| 655 | - return cellValue = "自动" | 697 | + return (cellValue = "自动"); |
| 656 | - } | ||
| 657 | } | 698 | } |
| 658 | - return cellValue | ||
| 659 | } | 699 | } |
| 700 | + return cellValue; | ||
| 701 | + }, | ||
| 660 | }, | 702 | }, |
| 661 | computed: { | 703 | computed: { |
| 662 | fltNo: { | 704 | fltNo: { |
| ... | @@ -683,28 +725,39 @@ export default { | ... | @@ -683,28 +725,39 @@ export default { |
| 683 | this.formData.ursa = upCase(val); | 725 | this.formData.ursa = upCase(val); |
| 684 | }, | 726 | }, |
| 685 | }, | 727 | }, |
| 686 | - cargoPlaneNo:{ | 728 | + cargoPlaneNo: { |
| 687 | get: function () { | 729 | get: function () { |
| 688 | return this.formData.cargoPlaneNo; | 730 | return this.formData.cargoPlaneNo; |
| 689 | }, | 731 | }, |
| 690 | set: function (val) { | 732 | set: function (val) { |
| 691 | this.formData.cargoPlaneNo = upCase(val); | 733 | this.formData.cargoPlaneNo = upCase(val); |
| 692 | }, | 734 | }, |
| 693 | - } | 735 | + }, |
| 694 | }, | 736 | }, |
| 695 | }; | 737 | }; |
| 696 | </script> | 738 | </script> |
| 697 | 739 | ||
| 698 | <style scoped> | 740 | <style scoped> |
| 699 | .tips { | 741 | .tips { |
| 700 | - float: right; | 742 | + display: inline-block; |
| 701 | color: #606266; | 743 | color: #606266; |
| 702 | font-size: 14px; | 744 | font-size: 14px; |
| 703 | - margin-right: 40px; | 745 | + margin-top: 10px; |
| 746 | + margin-left: 50px; | ||
| 704 | } | 747 | } |
| 705 | -.progress{ | 748 | +.progress { |
| 706 | - width:200px; | 749 | + width: 200px; |
| 707 | display: inline-block; | 750 | display: inline-block; |
| 708 | - margin:0 0 0 20px; | 751 | + margin: 0 0 0 20px; |
| 752 | +} | ||
| 753 | +.formShow { | ||
| 754 | + width: max-content; | ||
| 755 | + height: 48px; | ||
| 756 | + line-height: 48px; | ||
| 757 | + font-weight: 900; | ||
| 758 | + color: rgb(64, 158, 255); | ||
| 759 | + font-size: 14px; | ||
| 760 | + float: right; | ||
| 761 | + margin-right: 20px; | ||
| 709 | } | 762 | } |
| 710 | </style> | 763 | </style> |
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
| ... | @@ -35,7 +35,7 @@ module.exports = { | ... | @@ -35,7 +35,7 @@ module.exports = { |
| 35 | // detail: https://cli.vuejs.org/config/#devserver-proxy | 35 | // detail: https://cli.vuejs.org/config/#devserver-proxy |
| 36 | [process.env.VUE_APP_BASE_API]: { | 36 | [process.env.VUE_APP_BASE_API]: { |
| 37 | target: `https://imacuat.zmd.apac.fedex.com/iMAC`, | 37 | target: `https://imacuat.zmd.apac.fedex.com/iMAC`, |
| 38 | - // target: `http://47.103.140.98:7001/IMAC2`, | 38 | + // target: `http://47.103.140.98:7001/iMAC`, |
| 39 | // target: `http://192.168.1.134:18080`, | 39 | // target: `http://192.168.1.134:18080`, |
| 40 | changeOrigin: true, | 40 | changeOrigin: true, |
| 41 | pathRewrite: { | 41 | pathRewrite: { | ... | ... |
-
Please register or login to post a comment