Commit d64fccbf by 李少勇

oftsel 导出功能开发

parent 9582dea4
......@@ -9940,7 +9940,6 @@ const CodeTable = {
],
kpasta: [
{ label: "", value: "" },
{ label: "国际汇兑", value: "1" },
{ label: "国际结算", value: "2" },
{ label: "资金结算", value: "3" },
......
......@@ -74,8 +74,8 @@ export default {
exportToExcel() {
let codeKeysMap = {
typ: 'kpasta',
sta: 'stacd1',
area: 'area',
sta: 'zfqsta',
area: 'stacd1',
offsta: 'offsta',
multimsg: 'chncod',
chk: 'chncod',
......
......@@ -122,8 +122,6 @@
<el-col :span="24" style="margin-top: 10px">
<div style="height: 90%">
<c-col :span="24">
<el-tabs v-model="activeTab" class="y-tabs">
<el-tab-pane label="待关联报文处理" name="fb">
<el-table
:data="stmData.data"
:columns="stmData.columns"
......@@ -131,7 +129,7 @@
@selection-change="handleSelectionChange"
@row-dblclick="dbClickRow"
size="small" :border="true"
height="calc(100vh - 420px)"
height="calc(100vh - 310px)"
:highlight-current-row="true"
>
<el-table-column type="selection" width="55"></el-table-column>
......@@ -143,8 +141,8 @@
>
<template slot-scope="scope">
<c-select-value-to-label v-if="item.prop == 'typ'" v-model="scope.row.typ" dbCode="KPASTA"></c-select-value-to-label>
<c-select-value-to-label v-else-if="item.prop == 'sta'" v-model="scope.row.sta" dbCode="STACD1"></c-select-value-to-label>
<c-select-value-to-label v-else-if="item.prop == 'area'" v-model="scope.row.area" dbCode="AREA"></c-select-value-to-label>
<c-select-value-to-label v-else-if="item.prop == 'sta'" v-model="scope.row.sta" dbCode="ZFQSTA"></c-select-value-to-label>
<c-select-value-to-label v-else-if="item.prop == 'area'" v-model="scope.row.area" dbCode="STACD1"></c-select-value-to-label>
<c-select-value-to-label v-else-if="item.prop == 'offsta'" v-model="scope.row.offsta" dbCode="OFFSTA"></c-select-value-to-label>
<c-select-value-to-label v-else-if="item.prop == 'multimsg'" v-model="scope.row.multimsg" dbCode="CHNCOD"></c-select-value-to-label>
<c-select-value-to-label v-else-if="item.prop == 'chk'" v-model="scope.row.chk" dbCode="CHNCOD"></c-select-value-to-label>
......@@ -159,8 +157,6 @@
:page-size="pagination.pageSize" :current-page.sync="pagination.pageNum" @size-change="handleSizeChange"
@current-change="handleCurrentChange">
</el-pagination>
</el-tab-pane>
</el-tabs>
</c-col>
</div>
</el-col>
......@@ -175,7 +171,6 @@ export default {
mixins: [event],
data() {
return {
activeTab: 'fb',
load: false,
subtypCodes: [],
multipleSelection: [],
......
import Api from "~/service/Api";
import getSubtyp from '~/page/Frontend/Rcvsel/event/getSubtyp.js';
import exportExcel from '~/page/Frontend/Rcvsel/event/exportExcel.js';
import moment from "moment";
import Oftsel from '../model';
import Utils from "~/utils";
export default {
mixins: [getSubtyp],
mixins: [getSubtyp, exportExcel],
methods: {
async handleSearch () {
let rsptims = this.model.oftp.rel.rsptims;
......@@ -112,5 +113,24 @@ export default {
}
// loading.close();
},
exportToExcel() {
let codeKeysMap = {
typ: 'kpasta',
sta: 'zfqsta',
area: 'stacd1',
offsta: 'offsta',
multimsg: 'chncod',
chk: 'chncod',
kpatyp: 'chncod',
};
let rsptims = this.model.oftp.rel.rsptims;
let rsptime = this.model.oftp.rel.rsptime;
let params = {
...this.model.oftp.rel,
rsptims: rsptims ? moment(rsptims).format("YYYY-MM-DD") + ' 00:00:00' : "",
rsptime: moment(rsptime).format("YYYY-MM-DD") + ' 23:59:59',
}
this.exportExcel(this.stmData.columns, '/frontend/oftsel/exportExcel', params, codeKeysMap, '已关联报文查询');
}
},
};
......@@ -111,8 +111,6 @@
<el-col :span="24" style="margin-top: 10px">
<div style="height: 90%">
<c-col :span="24">
<el-tabs v-model="activeTab" class="y-tabs">
<el-tab-pane label="已关联报文查询" name="fb">
<el-table
:data="stmData.data"
:columns="stmData.columns"
......@@ -120,7 +118,7 @@
@selection-change="handleSelectionChange"
@row-dblclick="dbClickRow"
size="small" :border="true"
height="calc(100vh - 420px)"
height="calc(100vh - 310px)"
:highlight-current-row="true"
>
<el-table-column type="selection" width="55"></el-table-column>
......@@ -132,8 +130,8 @@
>
<template slot-scope="scope">
<c-select-value-to-label v-if="item.prop == 'typ'" v-model="scope.row.typ" dbCode="KPASTA"></c-select-value-to-label>
<c-select-value-to-label v-else-if="item.prop == 'sta'" v-model="scope.row.sta" dbCode="STACD1"></c-select-value-to-label>
<c-select-value-to-label v-else-if="item.prop == 'area'" v-model="scope.row.area" dbCode="AREA"></c-select-value-to-label>
<c-select-value-to-label v-else-if="item.prop == 'sta'" v-model="scope.row.sta" dbCode="ZFQSTA"></c-select-value-to-label>
<c-select-value-to-label v-else-if="item.prop == 'area'" v-model="scope.row.area" dbCode="STACD1"></c-select-value-to-label>
<c-select-value-to-label v-else-if="item.prop == 'offsta'" v-model="scope.row.offsta" dbCode="OFFSTA"></c-select-value-to-label>
<c-select-value-to-label v-else-if="item.prop == 'multimsg'" v-model="scope.row.multimsg" dbCode="CHNCOD"></c-select-value-to-label>
<c-select-value-to-label v-else-if="item.prop == 'chk'" v-model="scope.row.chk" dbCode="CHNCOD"></c-select-value-to-label>
......@@ -148,8 +146,6 @@
:page-size="pagination.pageSize" :current-page.sync="pagination.pageNum" @size-change="handleSizeChange"
@current-change="handleCurrentChange">
</el-pagination>
</el-tab-pane>
</el-tabs>
</c-col>
</div>
</el-col>
......@@ -164,7 +160,6 @@ export default {
mixins: [event],
data() {
return {
activeTab: 'fb',
load: false,
subtypCodes: [],
multipleSelection: [],
......
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