Commit d4039304 by 李少勇

修改支付前置模块内日期问题

parent 1cd9e78e
...@@ -41,9 +41,7 @@ export default { ...@@ -41,9 +41,7 @@ export default {
...this.model.sndp, ...this.model.sndp,
dir: ">", dir: ">",
pageNum: this.pagination.pageNum, pageNum: this.pagination.pageNum,
pageSize: this.pagination.pageSize, pageSize: this.pagination.pageSize
rcvdatsta: moment(rcvdatsta).format("YYYY-MM-DD"),
rcvdatend: moment(rcvdatend).format("YYYY-MM-DD"),
}); });
if (rtnmsg.respCode == SUCCESS) { if (rtnmsg.respCode == SUCCESS) {
this.load = false; this.load = false;
......
import Api from "~/service/Api" import moment from "moment";
import Pts from "~/page/Model/Common/Pts"
export default class Cpssxf { export default class Cpssxf {
constructor() { constructor() {
this.data = { this.data = {
mgsp: { mgsp: {
stadat: new Date((new Date).getTime() - (3 * 24 * 60 * 60 * 1000)), // 收报日期(查询) .mgsp.stadat stadat: moment(new Date()).add(-3, 'd').format('YYYY-MM-DD'), // 收报日期(查询) .mgsp.stadat
enddat: new Date(), // 发报日期(查询) .mgsp.enddat enddat: moment(new Date()).format('YYYY-MM-DD'), // 发报日期(查询) .mgsp.enddat
exp: "", // 导出 .sxfp.exp exp: "", // 导出 .sxfp.exp
msgtyp: '', msgtyp: '',
subtyp: '', subtyp: '',
......
...@@ -2,111 +2,109 @@ import Api from "~/service/Api"; ...@@ -2,111 +2,109 @@ import Api from "~/service/Api";
import moment from "moment"; import moment from "moment";
export default { export default {
methods: { methods: {
async handleSearch() { async handleSearch() {
let rcvdatsta = this.model.sndp.rcvdatsta; let rcvdatsta = this.model.sndp.rcvdatsta;
if (!rcvdatsta || rcvdatsta == "") { if (!rcvdatsta || rcvdatsta == "") {
this.$notify.error({ this.$notify.error({
title: this.$t("financing.错误"), title: this.$t("financing.错误"),
message: this.$t("financing.查询开始日期必输!"), message: this.$t("financing.查询开始日期必输!"),
}); });
return; return;
} }
let rcvdatend = this.model.sndp.rcvdatend; let rcvdatend = this.model.sndp.rcvdatend;
if (!rcvdatend || rcvdatend == "") { if (!rcvdatend || rcvdatend == "") {
this.$notify.error({ this.$notify.error({
title: this.$t("financing.错误"), title: this.$t("financing.错误"),
message: this.$t("financing.查询结束日期必输!"), message: this.$t("financing.查询结束日期必输!"),
}); });
return; return;
} }
this.load = true;
let rtnmsg = await Api.post("/frontend/msgsel/query", {
...this.model.sndp,
dir: ">",
pageNum: this.pagination.pageNum,
pageSize: this.pagination.pageSize
});
if (rtnmsg.respCode == SUCCESS) {
this.load = false;
this.stmData.data = [];
const { list } = rtnmsg.data;
const { codes: { sta1 } } = this;
this.load = true; list.forEach(v => {
let rtnmsg = await Api.post("/frontend/msgsel/query", { for (let i in sta1) {
...this.model.sndp, if (sta1[i].value == v.sta) {
dir: ">", v.sta = sta1[i].label;
pageNum: this.pagination.pageNum,
pageSize: this.pagination.pageSize,
rcvdatsta: moment(rcvdatsta).format("YYYY-MM-DD"),
rcvdatend: moment(rcvdatend).format("YYYY-MM-DD"),
});
if (rtnmsg.respCode == SUCCESS) {
this.load = false;
this.stmData.data = [];
const {list} = rtnmsg.data;
const {codes:{sta1}} = this;
list.forEach(v=>{
for(let i in sta1){
if(sta1[i].value == v.sta){
v.sta = sta1[i].label;
}
}
})
this.stmData.data = list;
this.pagination = {
pageNum: rtnmsg.data.pageNum || 1,
pageSize: rtnmsg.data.pageSize || 10,
total: parseInt(rtnmsg.data.total),
};
} else {
this.$notify.error({
title: this.$t("financing.错误"),
message: this.$t("financing.服务请求失败!"),
});
} }
this.load = false; }
}, })
async handleReset() { this.stmData.data = list;
this.model.sndp.msgtyp = ""; this.pagination = {
this.model.sndp.rcvdatsta = new Date(); pageNum: rtnmsg.data.pageNum || 1,
this.model.sndp.rcvdatend = new Date(); pageSize: rtnmsg.data.pageSize || 10,
this.model.sndp.subtyp = ""; total: parseInt(rtnmsg.data.total),
this.model.sndp.sndbak = ""; };
this.model.sndp.revbak = ""; } else {
this.model.sndp.actbic = ""; this.$notify.error({
this.model.sndp.othref = ""; title: this.$t("financing.错误"),
this.model.sndp.ownref = ""; message: this.$t("financing.服务请求失败!"),
this.model.sndp.cur = ""; });
this.model.sndp.act = ""; }
this.model.sndp.amtmin = ""; this.load = false;
this.model.sndp.amtmax = ""; },
this.model.sndp.chnipt = ""; async handleReset() {
this.model.sndp.rspsta = ""; this.model.sndp.msgtyp = "";
this.model.sndp.dtlchg = ""; this.model.sndp.rcvdatsta = new Date();
this.model.sndp.sta = ""; this.model.sndp.rcvdatend = new Date();
}, this.model.sndp.subtyp = "";
// pageSize改变 this.model.sndp.sndbak = "";
handleSizeChange(val) { this.model.sndp.revbak = "";
this.pagination.pageNum = 1; this.model.sndp.actbic = "";
this.pagination.pageSize = val; this.model.sndp.othref = "";
this.handleSearch(); this.model.sndp.ownref = "";
}, this.model.sndp.cur = "";
// 页码改变 this.model.sndp.act = "";
handleCurrentChange(val) { this.model.sndp.amtmin = "";
this.pagination.pageNum = val; this.model.sndp.amtmax = "";
this.handleSearch(); this.model.sndp.chnipt = "";
}, this.model.sndp.rspsta = "";
handleSelectionChange(val){ this.model.sndp.dtlchg = "";
this.multipleSelection = val; this.model.sndp.sta = "";
}, },
addClick(){ // pageSize改变
this.addDialogVisiable = true; handleSizeChange(val) {
}, this.pagination.pageNum = 1;
handleClose(){ this.pagination.pageSize = val;
this.addDialogVisiable = false; this.handleSearch();
}, },
handleOn(){ // 页码改变
this.addDialogVisiable = false; handleCurrentChange(val) {
}, this.pagination.pageNum = val;
fentanClick(){ this.handleSearch();
this.dialogVisible = true; },
}, handleSelectionChange(val) {
closeDialogOpen(){ this.multipleSelection = val;
this.dialogVisible = false; },
}, addClick() {
testClick(){ this.addDialogVisiable = true;
this.addDialogVisiable1=true },
} handleClose() {
this.addDialogVisiable = false;
},
handleOn() {
this.addDialogVisiable = false;
},
fentanClick() {
this.dialogVisible = true;
},
closeDialogOpen() {
this.dialogVisible = false;
}, },
testClick() {
this.addDialogVisiable1 = true
}
},
}; };
import Api from "~/service/Api" import moment from "moment";
import Pts from "~/page/Model/Common/Pts"
export default class Cpssxf { export default class Cpssxf {
constructor() { constructor() {
this.data = { this.data = {
sxfp: { sxfp: {
stadat: new Date((new Date).getTime() - (3 * 24 * 60 * 60 * 1000)), // 手续费创建起始日期(查询) .sxfp.stadat stadat: moment(new Date()).add(-3, 'd').format('YYYY-MM-DD'), // 手续费创建起始日期(查询) .sxfp.stadat
enddat: new Date(), // 手续费创建截止日期(查询) .sxfp.enddat enddat: moment(new Date()).format('YYYY-MM-DD'), // 手续费创建截止日期(查询) .sxfp.enddat
exp: "", // 导出 .sxfp.exp exp: "", // 导出 .sxfp.exp
}, },
sxfgrp: { sxfgrp: {
......
import Api from "~/service/Api" import moment from "moment";
import Pts from "~/page/Model/Common/Pts"
export default class Cpzsel { export default class Cpzsel {
constructor() { constructor() {
this.data = { this.data = {
cpzp: { cpzp: {
chkbic: "", // 对账行号 .cpzp.chkbic chkbic: "", // 对账行号 .cpzp.chkbic
rcvsta: new Date((new Date).getTime() - (3 * 24 * 60 * 60 * 1000)), // 收报日期 .cpzp.rcvsta rcvsta: moment(new Date()).add(-3, 'd').format('YYYY-MM-DD'), // 收报日期 .cpzp.rcvsta
rcvend: new Date(), // 至 .cpzp.rcvend rcvend: moment(new Date()).format('YYYY-MM-DD'), // 至 .cpzp.rcvend
chksta: "", // 对账起始日期 .cpzp.chksta chksta: "", // 对账起始日期 .cpzp.chksta
chkend: "", // 对账截止日期 .cpzp.chkend chkend: "", // 对账截止日期 .cpzp.chkend
subtyp: "", // 报文类型 .cpzp.subtyp subtyp: "", // 报文类型 .cpzp.subtyp
......
import Api from "~/service/Api" import moment from "moment";
import Pts from "~/page/Model/Common/Pts"
export default class Ctmsel { export default class Ctmsel {
constructor() { constructor() {
this.data = { this.data = {
cpstimp: { cpstimp: {
rcvdatsta: new Date((new Date).getTime() - (3 * 24 * 60 * 60 * 1000)), // 起始时间: .cpstimp.rcvdatsta rcvdatsta: moment(new Date()).add(-3, 'd').format('YYYY-MM-DD'), // 起始时间: .cpstimp.rcvdatsta
rcvdatend: new Date(), // 截止时间: .cpstimp.rcvdatend rcvdatend: moment(new Date()).format('YYYY-MM-DD'), // 截止时间: .cpstimp.rcvdatend
cursta: "", // 系统当前时序状态(显示) .cpstimp.cursta cursta: "", // 系统当前时序状态(显示) .cpstimp.cursta
syscursta: "", // 系统状态: .cpstimp.syscursta syscursta: "", // 系统状态: .cpstimp.syscursta
curlogsta: "", // 当前登录状态 .cpstimp.curlogsta curlogsta: "", // 当前登录状态 .cpstimp.curlogsta
......
...@@ -26,9 +26,7 @@ export default { ...@@ -26,9 +26,7 @@ export default {
let rtnmsg = await Api.post("/frontend/fxdsdb/query", { let rtnmsg = await Api.post("/frontend/fxdsdb/query", {
...this.model.fddp, ...this.model.fddp,
pageNum: this.pagination.pageNum, pageNum: this.pagination.pageNum,
pageSize: this.pagination.pageSize, pageSize: this.pagination.pageSize
begdat: moment(begdat).format("YYYY-MM-DD"),
enddat: moment(enddat).format("YYYY-MM-DD"),
}); });
if (rtnmsg.respCode == SUCCESS) { if (rtnmsg.respCode == SUCCESS) {
this.load = false; this.load = false;
......
import Api from "~/service/Api" import moment from "moment";
import Pts from "~/page/Model/Common/Pts"
export default class Fxdsdb { export default class Fxdsdb {
constructor() { constructor() {
this.data = { this.data = {
fddp: { fddp: {
begdat: new Date((new Date).getTime() - (3 * 24 * 60 * 60 * 1000)), // 导入起始日期 .fddp.begdat begdat: moment(new Date()).add(-3, 'd').format('YYYY-MM-DD'), // 导入起始日期 .fddp.begdat
enddat: new Date(), // 导入截止日期 .fddp.enddat enddat: moment(new Date()).format('YYYY-MM-DD'), // 导入截止日期 .fddp.enddat
filtyp: "", // 文件类型 .fddp.filtyp filtyp: "", // 文件类型 .fddp.filtyp
filnam: "", // 文件名 .fddp.filnam filnam: "", // 文件名 .fddp.filnam
}, },
......
...@@ -30,9 +30,7 @@ export default { ...@@ -30,9 +30,7 @@ export default {
dir: ">", dir: ">",
querytyp: "rtm", querytyp: "rtm",
pageNum: this.pagination.pageNum, pageNum: this.pagination.pageNum,
pageSize: this.pagination.pageSize, pageSize: this.pagination.pageSize
rcvdatsta: moment(rcvdatsta).format("YYYY-MM-DD"),
rcvdatend: moment(rcvdatend).format("YYYY-MM-DD"),
}); });
if (rtnmsg.respCode == SUCCESS) { if (rtnmsg.respCode == SUCCESS) {
this.load = false; this.load = false;
......
import Api from "~/service/Api" import moment from "moment";
export default class Msgrtm { export default class Msgrtm {
constructor() { constructor() {
this.data = { this.data = {
sndp: { sndp: {
rcvdatsta: new Date((new Date).getTime() - (3 * 24 * 60 * 60 * 1000)), // : 起始日期 rcvdatsta: moment(new Date()).add(-3, 'd').format('YYYY-MM-DD'), // : 起始日期
rcvdatend: new Date(), // : 截止日期 rcvdatend: moment(new Date()).format('YYYY-MM-DD'), // : 截止日期
msgtyp: "", // : 报文标准 msgtyp: "", // : 报文标准
subtyp: "", // : 报文类型 subtyp: "", // : 报文类型
sndbak: "", // : 发报行BIC sndbak: "", // : 发报行BIC
......
...@@ -29,9 +29,7 @@ export default { ...@@ -29,9 +29,7 @@ export default {
...this.model.sndp, ...this.model.sndp,
dir: "<", dir: "<",
pageNum: this.pagination.pageNum, pageNum: this.pagination.pageNum,
pageSize: this.pagination.pageSize, pageSize: this.pagination.pageSize
rcvdatsta: moment(rcvdatsta).format("YYYY-MM-DD"),
rcvdatend: moment(rcvdatend).format("YYYY-MM-DD"),
}); });
if (rtnmsg.respCode == SUCCESS) { if (rtnmsg.respCode == SUCCESS) {
this.load = false; this.load = false;
......
import Api from "~/service/Api" import moment from "moment";
export default class Msgsel { export default class Msgsel {
constructor() { constructor() {
this.data = { this.data = {
sndp: { sndp: {
rcvdatsta: new Date((new Date).getTime() - (3 * 24 * 60 * 60 * 1000)), // : .sndp.rcvdatsta rcvdatsta: moment(new Date()).add(-3, 'd').format('YYYY-MM-DD'), // : .sndp.rcvdatsta
rcvdatend: new Date(), // : .sndp.rcvdatend rcvdatend: moment(new Date()).format('YYYY-MM-DD'), // : .sndp.rcvdatend
msgtyp: "", // : .sndp.msgtyp msgtyp: "", // : .sndp.msgtyp
subtyp: "", // : .sndp.subtyp subtyp: "", // : .sndp.subtyp
sndbak: "", // : .sndp.sndbak sndbak: "", // : .sndp.sndbak
......
...@@ -30,9 +30,7 @@ export default { ...@@ -30,9 +30,7 @@ export default {
dir: "<", dir: "<",
querytyp: "sep", querytyp: "sep",
pageNum: this.pagination.pageNum, pageNum: this.pagination.pageNum,
pageSize: this.pagination.pageSize, pageSize: this.pagination.pageSize
rcvdatsta: moment(rcvdatsta).format("YYYY-MM-DD"),
rcvdatend: moment(rcvdatend).format("YYYY-MM-DD"),
}); });
if (rtnmsg.respCode == SUCCESS) { if (rtnmsg.respCode == SUCCESS) {
this.load = false; this.load = false;
......
import Api from "~/service/Api" import moment from "moment";
import Pts from "~/page/Model/Common/Pts"
export default class Msgsep { export default class Msgsep {
constructor() { constructor() {
this.data = { this.data = {
sndp: { sndp: {
rcvdatsta: new Date((new Date).getTime() - (3 * 24 * 60 * 60 * 1000)), // : 起始日期 rcvdatsta: moment(new Date()).add(-3, 'd').format('YYYY-MM-DD'), // : 起始日期
rcvdatend: new Date(), // : 截止日期 rcvdatend: moment(new Date()).format('YYYY-MM-DD'), // : 截止日期
msgtyp: "", // : 报文标准 msgtyp: "", // : 报文标准
subtyp: "", // : 报文类型 subtyp: "", // : 报文类型
sndbak: "", // : 发报行BIC sndbak: "", // : 发报行BIC
......
import Api from "~/service/Api" import moment from "moment";
import Pts from "~/page/Model/Common/Pts"
export default class Oftopn { export default class Oftopn {
constructor() { constructor() {
...@@ -12,8 +11,8 @@ export default class Oftopn { ...@@ -12,8 +11,8 @@ export default class Oftopn {
amtu: "", // : .oftp.rel.amtu amtu: "", // : .oftp.rel.amtu
amtd: "", // : .oftp.rel.amtd amtd: "", // : .oftp.rel.amtd
mty: "", // : .oftp.rel.mty mty: "", // : .oftp.rel.mty
rsptims: new Date((new Date).getTime() - (3 * 24 * 60 * 60 * 1000)), // : .oftp.rel.rsptims rsptims: moment(new Date()).add(-3, 'd').format('YYYY-MM-DD'), // : .oftp.rel.rsptims
rsptime: new Date(), // : .oftp.rel.rsptime rsptime: moment(new Date()).format('YYYY-MM-DD'), // : .oftp.rel.rsptime
sedbak: "", // : .oftp.rel.sedbak sedbak: "", // : .oftp.rel.sedbak
revbak: "", // : .oftp.rel.revbak revbak: "", // : .oftp.rel.revbak
actbic: "", // : .oftp.rel.actbic actbic: "", // : .oftp.rel.actbic
......
import Api from "~/service/Api" import moment from "moment";
import Pts from "~/page/Model/Common/Pts"
export default class Oftsel { export default class Oftsel {
constructor() { constructor() {
...@@ -13,8 +12,8 @@ export default class Oftsel { ...@@ -13,8 +12,8 @@ export default class Oftsel {
amtu: "", // : .oftp.rel.amtu amtu: "", // : .oftp.rel.amtu
amtd: "", // : .oftp.rel.amtd amtd: "", // : .oftp.rel.amtd
mty: "", // : .oftp.rel.mty mty: "", // : .oftp.rel.mty
rsptims: new Date((new Date).getTime() - (3 * 24 * 60 * 60 * 1000)), // : .oftp.rel.rsptims rsptims: moment(new Date()).add(-3, 'd').format('YYYY-MM-DD'), // : .oftp.rel.rsptims
rsptime: new Date(), // : .oftp.rel.rsptime rsptime: moment(new Date()).format('YYYY-MM-DD'), // : .oftp.rel.rsptime
sedbak: "", // : .oftp.rel.sedbak sedbak: "", // : .oftp.rel.sedbak
revbak: "", // : .oftp.rel.revbak revbak: "", // : .oftp.rel.revbak
actbic: "", // : .oftp.rel.actbic actbic: "", // : .oftp.rel.actbic
......
import Api from "~/service/Api";
import moment from "moment";
import _ from 'lodash';
import Utils from "~/utils";
export default {
methods: {
// codeKeysMap: {
// prop: code
// }
async exportExcel(columns, url, codeKeysMap, nam) {
let resList = []
let colList = columns.map((col) => {
return col.label
})
resList.push(colList)
let rtnmsg = await Api.post(url, {
...this.model,
dir: ">",
pageNum: this.pagination.pageNum,
pageSize: this.pagination.pageSize,
});
if (rtnmsg.respCode == SUCCESS) {
rtnmsg.data.list.map((item) => {
let dataList = [];
columns.map((colItem) => {
let curCode = codeKeysMap[colItem.prop];
let curVal = item[colItem.prop];
if (curCode) {
this.codes[curCode].forEach((ite) => {
if (item[colItem.prop] == ite.value) {
curVal = ite.label
}
});
};
dataList.push(curVal);
});
resList.push(dataList);
});
let hash = moment(new Date()).format('yyyy-MM-DD HH:mm:ss');
Utils.exportToExcel(resList, nam + "_" + hash + ".xlsx", nam);
};
}
}
};
import Api from "~/service/Api"; import Api from "~/service/Api";
import getSubtyp from '~/page/Frontend/Rcvsel/event/getSubtyp.js'; import getSubtyp from '~/page/Frontend/Rcvsel/event/getSubtyp.js';
import exportExcel from '~/page/Frontend/Rcvsel/event/exportExcel.js';
import moment from "moment"; import moment from "moment";
import Rcvsel from "../model"; import Rcvsel from "../model";
import Utils from "~/utils"; import Utils from "~/utils";
export default { export default {
mixins: [getSubtyp], mixins: [getSubtyp, exportExcel],
methods: { methods: {
async handleSearch() { async handleSearch() {
let rcvdatsta = this.model.rcvp.rcvdatsta; let rcvdatsta = this.model.rcvp.rcvdatsta;
...@@ -30,9 +31,7 @@ export default { ...@@ -30,9 +31,7 @@ export default {
...this.model.rcvp, ...this.model.rcvp,
dir: ">", dir: ">",
pageNum: this.pagination.pageNum, pageNum: this.pagination.pageNum,
pageSize: this.pagination.pageSize, pageSize: this.pagination.pageSize
rcvdatsta: moment(rcvdatsta).format("YYYY-MM-DD"),
rcvdatend: moment(rcvdatend).format("YYYY-MM-DD"),
}); });
if (rtnmsg.respCode == SUCCESS) { if (rtnmsg.respCode == SUCCESS) {
this.load = false; this.load = false;
...@@ -79,6 +78,12 @@ export default { ...@@ -79,6 +78,12 @@ export default {
}, },
handleSelectionChange(val) { handleSelectionChange(val) {
this.multipleSelection = val; this.multipleSelection = val;
},
exportToExcel() {
let codeKeysMap = {
sta: 'stacod'
};
this.exportExcel(this.stmData.columns, '/frontend/msgsel/query', codeKeysMap, '收报查询表');
} }
}, },
}; };
import moment from "moment";
export default class Rcvsel { export default class Rcvsel {
constructor() { constructor() {
this.data = { this.data = {
rcvp: { rcvp: {
rcvdatsta: new Date((new Date).getTime() - (3 * 24 * 60 * 60 * 1000)), // : 起始日期 .rcvp.rcvdatsta rcvdatsta: moment(new Date()).add(-3, 'd').format('YYYY-MM-DD'), // : 起始日期 .rcvp.rcvdatsta
rcvdatend: new Date(), // : 终止日期 .rcvp.rcvdatend rcvdatend: moment(new Date()).format('YYYY-MM-DD'), // : 终止日期 .rcvp.rcvdatend
msgtyp: "", // : 报文标准 .rcvp.msgtyp msgtyp: "", // : 报文标准 .rcvp.msgtyp
subtyp: "", // : 报文类型 .rcvp.subtyp subtyp: "", // : 报文类型 .rcvp.subtyp
sndbak: "", // : 发报行BIC .rcvp.sndbak sndbak: "", // : 发报行BIC .rcvp.sndbak
......
...@@ -143,7 +143,7 @@ ...@@ -143,7 +143,7 @@
<c-button :disabled="isRoutingDisable" class="medium_bcs" size="medium" <c-button :disabled="isRoutingDisable" class="medium_bcs" size="medium"
style="margin-left: 20" type="primary">ReRouting style="margin-left: 20" type="primary">ReRouting
</c-button> </c-button>
<c-button class="medium_bcs" size="medium" style="margin-left: 20" type="primary"> <c-button class="medium_bcs" size="medium" style="margin-left: 20" type="primary" @click="exportToExcel">
{{ $t('public.导出Excel') }} {{ $t('public.导出Excel') }}
</c-button> </c-button>
</el-col> </el-col>
......
...@@ -30,9 +30,7 @@ export default { ...@@ -30,9 +30,7 @@ export default {
dir: ">", dir: ">",
querytyp: "rcvblk", querytyp: "rcvblk",
pageNum: this.pagination.pageNum, pageNum: this.pagination.pageNum,
pageSize: this.pagination.pageSize, pageSize: this.pagination.pageSize
rcvdatsta: moment(rcvdatsta).format("YYYY-MM-DD"),
rcvdatend: moment(rcvdatend).format("YYYY-MM-DD"),
}); });
if (rtnmsg.respCode == SUCCESS) { if (rtnmsg.respCode == SUCCESS) {
this.load = false; this.load = false;
......
import moment from "moment";
export default class Rcvsel { export default class Rcvsel {
constructor() { constructor() {
this.data = { this.data = {
rcvp: { rcvp: {
rcvdatsta: new Date((new Date).getTime() - (3 * 24 * 60 * 60 * 1000)), // : 起始日期 .rcvp.rcvdatsta rcvdatsta: moment(new Date()).add(-3, 'd').format('YYYY-MM-DD'), // : 起始日期 .rcvp.rcvdatsta
rcvdatend: new Date(), // : 终止日期 .rcvp.rcvdatend rcvdatend: moment(new Date()).format('YYYY-MM-DD'), // : 终止日期 .rcvp.rcvdatend
msgtyp: "", // : 报文标准 .rcvp.msgtyp msgtyp: "", // : 报文标准 .rcvp.msgtyp
subtyp: "", // : 报文类型 .rcvp.subtyp subtyp: "", // : 报文类型 .rcvp.subtyp
sndbak: "", // : 发报行BIC .rcvp.sndbak sndbak: "", // : 发报行BIC .rcvp.sndbak
......
...@@ -31,8 +31,6 @@ export default { ...@@ -31,8 +31,6 @@ export default {
querytyp: "rsm", querytyp: "rsm",
pageNum: this.pagination.pageNum, pageNum: this.pagination.pageNum,
pageSize: this.pagination.pageSize, pageSize: this.pagination.pageSize,
rcvdatsta: moment(rcvdatsta).format("YYYY-MM-DD"),
rcvdatend: moment(rcvdatend).format("YYYY-MM-DD"),
}); });
if (rtnmsg.respCode == SUCCESS) { if (rtnmsg.respCode == SUCCESS) {
this.load = false; this.load = false;
......
import moment from "moment";
export default class Rcvsel { export default class Rcvsel {
constructor() { constructor() {
this.data = { this.data = {
rcvp: { rcvp: {
rcvdatsta: new Date((new Date).getTime() - (3 * 24 * 60 * 60 * 1000)), // : 起始日期 .rcvp.rcvdatsta rcvdatsta: moment(new Date()).add(-3, 'd').format('YYYY-MM-DD'), // : 起始日期 .rcvp.rcvdatsta
rcvdatend: new Date(), // : 终止日期 .rcvp.rcvdatend rcvdatend: moment(new Date()).format('YYYY-MM-DD'), // : 终止日期 .rcvp.rcvdatend
msgtyp: "", // : 报文标准 .rcvp.msgtyp msgtyp: "", // : 报文标准 .rcvp.msgtyp
subtyp: "", // : 报文类型 .rcvp.subtyp subtyp: "", // : 报文类型 .rcvp.subtyp
sndbak: "", // : 发报行BIC .rcvp.sndbak sndbak: "", // : 发报行BIC .rcvp.sndbak
......
import moment from "moment";
export default class Smtame { export default class Smtame {
constructor() { constructor() {
this.data = { this.data = {
...@@ -14,8 +15,8 @@ export default class Smtame { ...@@ -14,8 +15,8 @@ export default class Smtame {
ref: "", // : .smtp.smtsup.ref ref: "", // : .smtp.smtsup.ref
smtno: "", // : .smtp.smtsup.smtno smtno: "", // : .smtp.smtsup.smtno
errtyp: "", // : .smtp.smtsup.errtyp errtyp: "", // : .smtp.smtsup.errtyp
begdat: new Date((new Date).getTime() - (3 * 24 * 60 * 60 * 1000)), // : .smtp.smtsup.begdat begdat: moment(new Date()).add(-3, 'd').format('YYYY-MM-DD'), // : .smtp.smtsup.begdat
enddat: new Date(), // 至 .smtp.smtsup.enddat enddat: moment(new Date()).format('YYYY-MM-DD'), // 至 .smtp.smtsup.enddat
valdatbeg: '', // : .smtp.smtsup.valdatbeg valdatbeg: '', // : .smtp.smtsup.valdatbeg
valdatend: '', // 至 .smtp.smtsup.valdatend valdatend: '', // 至 .smtp.smtsup.valdatend
act: "", // : .smtp.smtsup.act act: "", // : .smtp.smtsup.act
......
...@@ -31,8 +31,6 @@ export default { ...@@ -31,8 +31,6 @@ export default {
dir: "<", dir: "<",
pageNum: this.pagination.pageNum, pageNum: this.pagination.pageNum,
pageSize: this.pagination.pageSize, pageSize: this.pagination.pageSize,
rcvdatsta: moment(rcvdatsta).format("YYYY-MM-DD"),
rcvdatend: moment(rcvdatend).format("YYYY-MM-DD"),
}); });
if (rtnmsg.respCode == SUCCESS) { if (rtnmsg.respCode == SUCCESS) {
this.load = false; this.load = false;
......
import Api from "~/service/Api" import moment from "moment";
export default class Sndsel { export default class Sndsel {
constructor() { constructor() {
this.data = { this.data = {
sndp: { sndp: {
rcvdatsta: new Date((new Date).getTime() - (3 * 24 * 60 * 60 * 1000)), // : 起始日期 rcvdatsta: moment(new Date()).add(-3, 'd').format('YYYY-MM-DD'), // : 起始日期
rcvdatend: new Date(), // : 截止日期 rcvdatend: moment(new Date()).format('YYYY-MM-DD'), // : 截止日期
msgtyp: "", // : 报文标准 msgtyp: "", // : 报文标准
subtyp: "", // : 报文类型 subtyp: "", // : 报文类型
sndbak: "", // : 发报行BIC sndbak: "", // : 发报行BIC
......
...@@ -130,11 +130,11 @@ ...@@ -130,11 +130,11 @@
</c-list-search> </c-list-search>
<el-col :span="24" style="margin-top: 2px;margin-bottom: 1px;"> <el-col :span="24" style="margin-top: 2px;margin-bottom: 1px;">
<c-button :disabled="isFoldDisable" class="medium_bcs" size="medium" style="margin-left: 0" type="primary">{{ <c-button :disabled="isFoldDisable" class="medium_bcs" size="medium" style="margin-left: 0" type="primary">
$t('public.归档') }} {{ $t('public.归档') }}
</c-button> </c-button>
<c-button :disabled="isRoutingDisable" class="medium_bcs" size="medium" style="margin-left: 20" <c-button :disabled="isRoutingDisable" class="medium_bcs" size="medium" style="margin-left: 20" type="primary">
type="primary">ReRouting ReRouting
</c-button> </c-button>
<c-button class="medium_bcs" size="medium" style="margin-left: 20" type="primary"> <c-button class="medium_bcs" size="medium" style="margin-left: 20" type="primary">
{{ $t('public.导出Excel') }} {{ $t('public.导出Excel') }}
...@@ -144,29 +144,34 @@ ...@@ -144,29 +144,34 @@
<el-col :span="24" style="margin-top: 10px"> <el-col :span="24" style="margin-top: 10px">
<div style="height: 90%"> <div style="height: 90%">
<c-col :span="24"> <c-col :span="24">
<el-tabs v-model="activeTab" class="y-tabs"> <el-table
<el-tab-pane label="发报查询" name="fb"> :data="stmData.data"
<el-table :data="stmData.data" :columns="stmData.columns" v-loading="load" style="width: 100%" :columns="stmData.columns"
@selection-change="handleSelectionChange" @row-dblclick="dbClickRow" size="small" :border="true" v-loading="load" style="width: 100%"
height="calc(100vh - 420px)" :highlight-current-row="true"> @selection-change="handleSelectionChange"
<el-table-column type="selection" width="55"> @row-dblclick="dbClickRow"
</el-table-column> size="small" :border="true"
<el-table-column v-for="(item, key) in stmData.columns" :key="key" :label="item.label" :prop="item.prop" height="calc(100vh - 310px)"
:min-width="item.width"> :highlight-current-row="true">
<template slot-scope="scope"> <el-table-column type="selection" width="55"></el-table-column>
<c-select-value-to-label v-if="item.prop == 'sta'" v-model="scope.row.sta" :code="codes.stacod"></c-select-value-to-label> <el-table-column v-for="(item, key) in stmData.columns" :key="key" :label="item.label" :prop="item.prop"
<span v-else-if="item.prop == 'amt'">{{ moneyFormat(scope.row.amt, scope.row.cur) }}</span> :min-width="item.width">
<span v-else>{{ scope.row[item.prop] }}</span> <template slot-scope="scope">
</template> <c-select-value-to-label v-if="item.prop == 'sta'" v-model="scope.row.sta" :code="codes.stacod"></c-select-value-to-label>
</el-table-column> <span v-else-if="item.prop == 'amt'">{{ moneyFormat(scope.row.amt, scope.row.cur) }}</span>
</el-table> <span v-else>{{ scope.row[item.prop] }}</span>
</template>
</el-table-column>
</el-table>
<el-pagination layout="total, sizes, prev, pager, next, jumper" :total="pagination.total" <el-pagination
:page-size="pagination.pageSize" :current-page.sync="pagination.pageNum" @size-change="handleSizeChange" layout="total, sizes, prev, pager, next, jumper"
@current-change="handleCurrentChange"> :total="pagination.total"
</el-pagination> :page-size="pagination.pageSize"
</el-tab-pane> :current-page.sync="pagination.pageNum"
</el-tabs> @size-change="handleSizeChange"
@current-change="handleCurrentChange">
</el-pagination>
</c-col> </c-col>
</div> </div>
</el-col> </el-col>
...@@ -181,7 +186,6 @@ export default { ...@@ -181,7 +186,6 @@ export default {
mixins: [event], mixins: [event],
data() { data() {
return { return {
activeTab: 'fb',
load: false, load: false,
subtypCodes: [], subtypCodes: [],
multipleSelection: [], multipleSelection: [],
......
...@@ -32,8 +32,6 @@ export default { ...@@ -32,8 +32,6 @@ export default {
querytyp: "rsm", querytyp: "rsm",
pageNum: this.pagination.pageNum, pageNum: this.pagination.pageNum,
pageSize: this.pagination.pageSize, pageSize: this.pagination.pageSize,
rcvdatsta: moment(rcvdatsta).format("YYYY-MM-DD"),
rcvdatend: moment(rcvdatend).format("YYYY-MM-DD"),
}); });
if (rtnmsg.respCode == SUCCESS) { if (rtnmsg.respCode == SUCCESS) {
this.load = false; this.load = false;
......
import Api from "~/service/Api" import moment from "moment";
export default class Sndsel { export default class Sndsel {
constructor() { constructor() {
this.data = { this.data = {
sndp: { sndp: {
rcvdatsta: new Date((new Date).getTime() - (3 * 24 * 60 * 60 * 1000)), // : 起始日期 rcvdatsta: moment(new Date()).add(-3, 'd').format('YYYY-MM-DD'), // : 起始日期
rcvdatend: new Date(), // : 截止日期 rcvdatend: moment(new Date()).format('YYYY-MM-DD'), // : 截止日期
msgtyp: "", // : 报文标准 msgtyp: "", // : 报文标准
subtyp: "", // : 报文类型 subtyp: "", // : 报文类型
sndbak: "", // : 发报行BIC sndbak: "", // : 发报行BIC
......
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