Showing
3 changed files
with
71 additions
and
51 deletions
| ... | @@ -45,3 +45,11 @@ export function findFltCommonConf(data) { | ... | @@ -45,3 +45,11 @@ export function findFltCommonConf(data) { |
| 45 | 45 | ||
| 46 | }) | 46 | }) |
| 47 | } | 47 | } |
| 48 | + | ||
| 49 | +export function updateStatusBatch(data){ | ||
| 50 | + return request({ | ||
| 51 | + url: '/FlightPreserveController/updateStatusBatch', | ||
| 52 | + method: 'post', | ||
| 53 | + data: data | ||
| 54 | + }) | ||
| 55 | +} | ... | ... |
| ... | @@ -5,7 +5,7 @@ const mimeMap = { | ... | @@ -5,7 +5,7 @@ const mimeMap = { |
| 5 | xlsx: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', | 5 | xlsx: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', |
| 6 | zip: 'application/zip' | 6 | zip: 'application/zip' |
| 7 | } | 7 | } |
| 8 | -// const baseUrl = 'https://imacuat.zmd.apac.fedex.com/IMAC2' // uat服务器 | 8 | +// const baseUrl = 'https://imacuat.zmd.apac.fedex.com/IMAC2' //uat服务器 |
| 9 | const baseUrl = 'http://47.103.140.98:9002' //阿里云服务器 | 9 | const baseUrl = 'http://47.103.140.98:9002' //阿里云服务器 |
| 10 | // const baseUrl = 'http://192.168.1.134:18080' //测试服务器 | 10 | // const baseUrl = 'http://192.168.1.134:18080' //测试服务器 |
| 11 | export function downLoadZip(str, filename) { | 11 | export function downLoadZip(str, filename) { |
| ... | @@ -14,23 +14,28 @@ export function downLoadZip(str, filename) { | ... | @@ -14,23 +14,28 @@ export function downLoadZip(str, filename) { |
| 14 | method: 'get', | 14 | method: 'get', |
| 15 | url: url, | 15 | url: url, |
| 16 | responseType: 'blob', | 16 | responseType: 'blob', |
| 17 | - headers: { 'Authorization': getToken() } | 17 | + headers: { 'Authorization': getToken() } |
| 18 | }).then(res => { | 18 | }).then(res => { |
| 19 | resolveBlob(res, mimeMap.zip) | 19 | resolveBlob(res, mimeMap.zip) |
| 20 | }) | 20 | }) |
| 21 | } | 21 | } |
| 22 | -export function cargoXlsx(str,data) { | 22 | +export function cargoXlsx(str, data) { |
| 23 | var url = baseUrl + str | 23 | var url = baseUrl + str |
| 24 | - axios({ | 24 | + return new Promise((resolve,rej)=>{ |
| 25 | - method: 'post', | 25 | + axios({ |
| 26 | - url: url, | 26 | + method: 'post', |
| 27 | - data:data, | 27 | + url: url, |
| 28 | - responseType: 'blob', | 28 | + data: data, |
| 29 | - headers: { 'Authorization': getToken() } | 29 | + responseType: 'blob', |
| 30 | - }).then(res => { | 30 | + headers: { 'Authorization': getToken() } |
| 31 | - if(res.status === 200){ | 31 | + }).then(res => { |
| 32 | - cargoTableXlsx(res) | 32 | + if (res.status === 200) { |
| 33 | - } | 33 | + cargoTableXlsx(res) |
| 34 | + } | ||
| 35 | + resolve() | ||
| 36 | + }).catch((err)=>{ | ||
| 37 | + rej(err) | ||
| 38 | + }) | ||
| 34 | }) | 39 | }) |
| 35 | } | 40 | } |
| 36 | /** | 41 | /** |
| ... | @@ -55,12 +60,12 @@ export function resolveBlob(res, mimeType) { | ... | @@ -55,12 +60,12 @@ export function resolveBlob(res, mimeType) { |
| 55 | } | 60 | } |
| 56 | 61 | ||
| 57 | //货物查询表导出 | 62 | //货物查询表导出 |
| 58 | -export function cargoTableXlsx(res){ | 63 | +export function cargoTableXlsx(val) { |
| 59 | - const aLink = document.createElement('a') | 64 | + const aLink = document.createElement('a') |
| 60 | - const fileName = "货物查询表.xlsx" | 65 | + const fileName = "货物查询表.xlsx" |
| 61 | - aLink.href = URL.createObjectURL(res.data) | 66 | + aLink.href = URL.createObjectURL(val.data) |
| 62 | - aLink.setAttribute('download', fileName) // 设置下载文件名称 | 67 | + aLink.setAttribute('download', fileName) // 设置下载文件名称 |
| 63 | - document.body.appendChild(aLink) | 68 | + document.body.appendChild(aLink) |
| 64 | - aLink.click() | 69 | + aLink.click() |
| 65 | - document.body.removeChild(aLink); | 70 | + document.body.removeChild(aLink); |
| 66 | } | 71 | } | ... | ... |
| 1 | <template> | 1 | <template> |
| 2 | - <div class="cargoPage" v-loading="downloading"> | 2 | + <div class="cargoPage"> |
| 3 | <el-form | 3 | <el-form |
| 4 | ref="cargoForm" | 4 | ref="cargoForm" |
| 5 | size="small" | 5 | size="small" |
| ... | @@ -8,7 +8,7 @@ | ... | @@ -8,7 +8,7 @@ |
| 8 | label-width="auto" | 8 | label-width="auto" |
| 9 | style="margin: 10px; width: 100%" | 9 | style="margin: 10px; width: 100%" |
| 10 | > | 10 | > |
| 11 | - <el-row type="flex" style="flexWrap: wrap!important;margin:0 20px"> | 11 | + <el-row type="flex" style="flexWrap: wrap!important"> |
| 12 | <el-col :span="6"> | 12 | <el-col :span="6"> |
| 13 | <el-form-item label="配舱航班日期:"> | 13 | <el-form-item label="配舱航班日期:"> |
| 14 | <el-date-picker | 14 | <el-date-picker |
| ... | @@ -300,16 +300,17 @@ | ... | @@ -300,16 +300,17 @@ |
| 300 | type="primary" | 300 | type="primary" |
| 301 | icon="el-icon-search" | 301 | icon="el-icon-search" |
| 302 | size="small" | 302 | size="small" |
| 303 | + :loading="tableLoading" | ||
| 303 | @click="select" | 304 | @click="select" |
| 304 | >查询</el-button | 305 | >查询</el-button |
| 305 | > | 306 | > |
| 306 | <el-button type="primary" size="small" @click="checks(tableData)" | 307 | <el-button type="primary" size="small" @click="checks(tableData)" |
| 307 | >全选/全否</el-button | 308 | >全选/全否</el-button |
| 308 | > | 309 | > |
| 309 | - <el-button type="primary" size="small" @click="xlse(0)" v-dbClick :disabled="tableData.length==0" | 310 | + <el-button type="primary" size="small" @click="xlse(0)" v-dbClick :disabled="tableData.length==0" :loading="downloading" |
| 310 | >导出本页查询结果</el-button | 311 | >导出本页查询结果</el-button |
| 311 | > | 312 | > |
| 312 | - <el-button type="primary" size="small" @click="xlse(1)" v-dbClick :disabled="tableData.length==0" | 313 | + <el-button type="primary" size="small" @click="xlse(1)" v-dbClick :disabled="tableData.length==0" :loading="downloading" |
| 313 | >导出全部查询结果</el-button | 314 | >导出全部查询结果</el-button |
| 314 | > | 315 | > |
| 315 | <div class="tips"> | 316 | <div class="tips"> |
| ... | @@ -323,6 +324,7 @@ | ... | @@ -323,6 +324,7 @@ |
| 323 | :data="tableData" | 324 | :data="tableData" |
| 324 | v-loading="tableLoading" | 325 | v-loading="tableLoading" |
| 325 | highlight-current-row border stripe | 326 | highlight-current-row border stripe |
| 327 | + height="500" | ||
| 326 | size="mini" | 328 | size="mini" |
| 327 | @select="cheacked" | 329 | @select="cheacked" |
| 328 | @select-all="selectAll" | 330 | @select-all="selectAll" |
| ... | @@ -392,50 +394,50 @@ export default { | ... | @@ -392,50 +394,50 @@ export default { |
| 392 | cargoPlaneEnd:null, | 394 | cargoPlaneEnd:null, |
| 393 | }, //表单数据 | 395 | }, //表单数据 |
| 394 | tableHeader: [ | 396 | tableHeader: [ |
| 397 | + { name: "口岸代码", value: "portName" }, | ||
| 395 | { name: "取件日期", value: "pickUpDate" }, | 398 | { name: "取件日期", value: "pickUpDate" }, |
| 396 | { name: "取件扫描号", value: "pickUpScanNo" }, | 399 | { name: "取件扫描号", value: "pickUpScanNo" }, |
| 397 | - { name: "服务类型", value: "serviceTypeName" }, | 400 | + { name: "站点", value: "siteName" }, |
| 398 | { name: "运单号", value: "waybillNo" }, | 401 | { name: "运单号", value: "waybillNo" }, |
| 399 | { name: "总单号", value: "totalWaybillNo" }, | 402 | { name: "总单号", value: "totalWaybillNo" }, |
| 403 | + { name: "服务类型", value: "serviceTypeName" }, | ||
| 404 | + { name: "URSA", value: "ursa" }, | ||
| 405 | + { name: "申报类型", value: "typeName" }, | ||
| 406 | + { name: "HandlingCode", value: "handingCode" }, | ||
| 407 | + { name: "subcategory", value: "subCategory" }, | ||
| 408 | + { name: "件数", value: "qty" }, | ||
| 409 | + { name: "实际重量", value: "actualWeight" }, | ||
| 410 | + { name: "收件人国家代码", value: "consigneeCountry" }, | ||
| 411 | + { name: "品名描述", value: "nameDescription" }, | ||
| 412 | + { name: "海关回执状态", value: "customsReceiptStatusName" }, | ||
| 413 | + { name: "预审状态", value: "preQualificationStatus" }, | ||
| 414 | + { name: "航班预审意见", value: "caPretrialOpinion" }, | ||
| 400 | { name: "货物状态", value: "statusName" }, | 415 | { name: "货物状态", value: "statusName" }, |
| 416 | + { name: "终配航班号", value: "finalFlightNo" }, | ||
| 417 | + { name: "终配航班日期", value: "finalFlightTime" }, | ||
| 418 | + { name: "二配航班号", value: "twoMatchFlightNo" }, | ||
| 419 | + { name: "二配航班日期", value: "twoMatchFlightTime" }, | ||
| 420 | + { name: "预配航班号", value: "preplanFlightNo" }, | ||
| 421 | + { name: "预配航班日期", value: "preplanFlightTime" }, | ||
| 401 | { name: "ACCS原航班号", value: "fltNoAccs" }, | 422 | { name: "ACCS原航班号", value: "fltNoAccs" }, |
| 402 | { name: "ACCS原航班日期", value: "fltDateAccs" }, | 423 | { name: "ACCS原航班日期", value: "fltDateAccs" }, |
| 403 | { name: "ACCS原航线", value: "accsFlightRoute" }, | 424 | { name: "ACCS原航线", value: "accsFlightRoute" }, |
| 404 | - { name: "预配航班日期", value: "preplanFlightTime" }, | 425 | + { name: "是否RDE手工录入", value: "manualRde" }, |
| 405 | - { name: "预配航班号", value: "preplanFlightNo" }, | 426 | + { name: "是否自动", value: "cargoRulesStatus" }, |
| 406 | - { name: "二配航班日期", value: "twoMatchFlightTime" }, | ||
| 407 | - { name: "二配航班号", value: "twoMatchFlightNo" }, | ||
| 408 | - { name: "终配航班日期", value: "finalFlightTime" }, | ||
| 409 | - { name: "终配航班号", value: "finalFlightNo" }, | ||
| 410 | - { name: "件数", value: "qty" }, | ||
| 411 | - { name: "实际重量", value: "actualWeight" }, | ||
| 412 | - { name: "申报类型", value: "typeName" }, | ||
| 413 | - { name: "口岸代码", value: "portName" }, | ||
| 414 | - { name: "subcategory", value: "subCategory" }, | ||
| 415 | { name: "发件人账号", value: "shipperAccount" }, | 427 | { name: "发件人账号", value: "shipperAccount" }, |
| 416 | { name: "发件公司中文名称", value: "shipperCompany" }, | 428 | { name: "发件公司中文名称", value: "shipperCompany" }, |
| 417 | - { name: "是否RDE手工录入", value: "manualRde" }, | ||
| 418 | - { name: "HandlingCode", value: "handingCode" }, | ||
| 419 | - { name: "品名描述", value: "nameDescription" }, | ||
| 420 | - { name: "站点", value: "siteName" }, | ||
| 421 | { name: "始发地城市名称", value: "originCity" }, | 429 | { name: "始发地城市名称", value: "originCity" }, |
| 422 | { name: "收件地", value: "destinationSiteName" }, | 430 | { name: "收件地", value: "destinationSiteName" }, |
| 423 | - { name: "收件人国家代码", value: "consigneeCountry" }, | ||
| 424 | - { name: "URSA", value: "ursa" }, | ||
| 425 | { name: "尺寸", value: "sizeStr" }, | 431 | { name: "尺寸", value: "sizeStr" }, |
| 426 | - { name: "海关回执状态", value: "customsReceiptStatusName" }, | ||
| 427 | - { name: "海关回执时间", value: "customsReceiptTime" }, | ||
| 428 | - { name: "预审状态", value: "preQualificationStatus" }, | ||
| 429 | - { name: "CA预审意见", value: "caPretrialOpinion" }, | ||
| 430 | - { name: "CA预审时间", value: "caPretrialTime" }, | ||
| 431 | { | 432 | { |
| 432 | name: "大货预审意见(是否可以配置CA航班)", | 433 | name: "大货预审意见(是否可以配置CA航班)", |
| 433 | value: "bigPretrialOpinion", | 434 | value: "bigPretrialOpinion", |
| 434 | }, | 435 | }, |
| 435 | { name: "大货预审时间", value: "bigPretrialTime" }, | 436 | { name: "大货预审时间", value: "bigPretrialTime" }, |
| 436 | - { name: "创建人", value: "createUserId" }, | 437 | + { name: "海关回执时间", value: "customsReceiptTime" }, |
| 438 | + { name: "航班预审时间", value: "caPretrialTime" }, | ||
| 439 | + { name: "创建人", value: "createUserName" }, | ||
| 437 | { name: "创建时间", value: "createTime" }, | 440 | { name: "创建时间", value: "createTime" }, |
| 438 | - { name: "是否自动", value: "cargoRulesStatus" }, | ||
| 439 | ], //表头数据 | 441 | ], //表头数据 |
| 440 | findConditionData: {}, //货物查询条件 | 442 | findConditionData: {}, //货物查询条件 |
| 441 | tableData: [], //表格数据 | 443 | tableData: [], //表格数据 |
| ... | @@ -647,6 +649,7 @@ export default { | ... | @@ -647,6 +649,7 @@ export default { |
| 647 | }, | 649 | }, |
| 648 | // 导出表格 | 650 | // 导出表格 |
| 649 | xlse(page) { | 651 | xlse(page) { |
| 652 | + this.downloading = true; | ||
| 650 | let cargoXlse = {title:"货物导出表",cargoConditionDto:{}}; | 653 | let cargoXlse = {title:"货物导出表",cargoConditionDto:{}}; |
| 651 | if(this.formData.customsReceiptStatusId != null && this.formData.customsReceiptStatusId.length < 1){ | 654 | if(this.formData.customsReceiptStatusId != null && this.formData.customsReceiptStatusId.length < 1){ |
| 652 | this.formData.customsReceiptStatusId = null; | 655 | this.formData.customsReceiptStatusId = null; |
| ... | @@ -688,7 +691,11 @@ export default { | ... | @@ -688,7 +691,11 @@ export default { |
| 688 | cargoXlse.cargoConditionDto.limitStart = 0; | 691 | cargoXlse.cargoConditionDto.limitStart = 0; |
| 689 | cargoXlse.cargoConditionDto.limitSize = -1; | 692 | cargoXlse.cargoConditionDto.limitSize = -1; |
| 690 | } | 693 | } |
| 691 | - cargoXlsx("/cargo/excel",cargoXlse) | 694 | + cargoXlsx("/cargo/excel",cargoXlse).then(()=>{ |
| 695 | + this.downloading = false; | ||
| 696 | + }).catch(()=>{ | ||
| 697 | + this.downloading = false; | ||
| 698 | + }) | ||
| 692 | }, | 699 | }, |
| 693 | //表格格式化 | 700 | //表格格式化 |
| 694 | formatter(row,column,cellValue,index){ | 701 | formatter(row,column,cellValue,index){ | ... | ... |
-
Please register or login to post a comment