Commit 86164cf2 authored by dragondean@qq.com's avatar dragondean@qq.com

自编号报表优化

parent c2fae766
......@@ -153,13 +153,10 @@ import { getCurrencyPage } from "@/api/ecw/currency";
import {getWarehouseList} from '@/api/ecw/warehouse'
import store from "@/store";
import {boxSettlementPage, exportSettlementExcel} from "@/api/ecw/box";
import {DICT_TYPE} from "@/utils/dict";
import {getCountryListAll} from "@/api/ecw/country";
import {getListTree} from "@/api/ecw/region";
import Template from "@/views/cms/template/index.vue";
export default {
components: {Template},
name: 'EcwFinancialSelfnoreport',
data() {
return {
loading: false, // 是否加载中
......@@ -199,9 +196,6 @@ export default {
}
},
computed: {
DICT_TYPE() {
return DICT_TYPE
},
permissions(){
return store.getters.permissions
},
......@@ -255,16 +249,8 @@ export default {
},
/** 搜索按钮操作 */
handleQuery() {
this.$refs.queryForm.validate((valid) => {
console.log({valid})
if(!valid) return
this.$refs.queryForm.validate().then(() => {
this.queryParams.page = 1;
if(!this.queryParams.destCountryId){
return this.$message.error(this.$t('请选择目的国'))
}
if(!this.queryParams.startWarehouseIdList || !this.queryParams.startWarehouseIdList.length){
return this.$message.error(this.$t('请选择始发仓'))
}
this.getList();
})
......@@ -276,13 +262,15 @@ export default {
},
// 导出搜索
handleExport(){
this.exporting = true
let params = {...this.queryParams}
this.addBeginAndEndTime(params, this.dateFilter, "JsDate", false);
exportSettlementExcel(params).then(res => {
this.$download.excel(res, 'shipment-summary.xls');
}).finally(() => {
this.exporting = false
this.$refs.queryForm.validate().then(() => {
this.exporting = true
let params = {...this.queryParams}
this.addBeginAndEndTime(params, this.dateFilter, "JsDate", false);
exportSettlementExcel(params).then(res => {
this.$download.excel(res, 'shipment-summary.xls');
}).finally(() => {
this.exporting = false
})
})
}
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment