Commit fae82ffc by ZcyJames

1.人民币跨境基础数据查询

parent f2eb27ac
......@@ -4,6 +4,57 @@ import moment from "moment";
export default {
methods: {
async handleSearch() {
let begdat = this.model.fddp.begdat;
if (!begdat || begdat == "") {
this.$notify.error({
title: this.$t("financing.错误"),
message: this.$t("financing.导入起始日期必输!"),
});
return;
}
let enddat = this.model.fddp.enddat;
if (!enddat || enddat == "") {
this.$notify.error({
title: this.$t("financing.错误"),
message: this.$t("financing.导入结束日期必输!"),
});
return;
}
this.load = true;
let rtnmsg = await Api.post("/gjzf/fxdsdb/query", {
...this.model.fddp,
pageNum: this.pagination.pageNum,
pageSize: this.pagination.pageSize,
begdat: moment(begdat).format("YYYY-MM-DD"),
enddat: moment(enddat).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() {
},
......
......@@ -5,8 +5,8 @@ export default class Fxdsdb{
constructor () {
this.data = {
fddp:{
begdat:"", // 导入起始日期 .fddp.begdat
enddat:"", // 导入截止日期 .fddp.enddat
begdat:new Date((new Date).getTime() - (3 * 24 * 60 * 60 * 1000)), // 导入起始日期 .fddp.begdat
enddat:new Date(), // 导入截止日期 .fddp.enddat
filtyp:"", // 文件类型 .fddp.filtyp
filnam:"", // 文件名 .fddp.filnam
},
......
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