Commit 38ca0b8a by niewei

oftopn oftsel

parent 64fcf3f9
......@@ -3,69 +3,95 @@ import moment from "moment";
import Oftopn from '../model';
export default {
methods: {
async handleSearch() {
let rsptims = this.model.oftp.rel.rsptims;
if (!rsptims || rsptims === "") {
this.$notify.error({
title: this.$t("financing.错误"),
message: this.$t("financing.查询开始日期必输!"),
});
return;
methods: {
async handleSearch () {
let rsptims = this.model.oftp.rel.rsptims;
if (!rsptims || rsptims === "") {
this.$notify.error({
title: this.$t("financing.错误"),
message: this.$t("financing.查询开始日期必输!"),
});
return;
}
let rsptime = this.model.oftp.rel.rsptime;
if (!rsptime || rsptime === "") {
this.$notify.error({
title: this.$t("financing.错误"),
message: this.$t("financing.查询结束日期必输!"),
});
return;
}
this.load = true;
// TODO rewrite url
let rtnmsg = await Api.post("/frontend/oftopn/query", {
...this.model.oftp.rel,
pageNum: this.pagination.pageNum,
pageSize: this.pagination.pageSize,
rsptims: moment(rsptims).format("YYYY-MM-DD"),
rsptime: moment(rsptime).format("YYYY-MM-DD"),
});
if (rtnmsg.respCode == SUCCESS) {
this.load = false;
this.stmData.data = [];
const { list } = rtnmsg.data;
const { codes: { kpasta, sta, stacod, offsta } } = this;
list.forEach(v => {
for (let i in kpasta) {
if (kpasta[i].value == v.typ) {
v.typ = kpasta[i].label;
}
}
for (let i in sta) {
if (sta[i].value == v.sta) {
v.sta = sta[i].label;
}
}
for (let i in stacod) {
if (stacod[i].value == v.area) {
v.area = stacod[i].label;
}
let rsptime = this.model.oftp.rel.rsptime;
if (!rsptime || rsptime === "") {
this.$notify.error({
title: this.$t("financing.错误"),
message: this.$t("financing.查询结束日期必输!"),
});
return;
}
for (let i in offsta) {
if (offsta[i].value == v.offsta) {
v.offsta = offsta[i].label;
}
}
})
this.load = true;
// TODO rewrite url
let rtnmsg = await Api.post("/frontend/msgsel/query", {
...this.model.oftp.rel,
pageNum: this.pagination.pageNum,
pageSize: this.pagination.pageSize,
rsptims: moment(rsptims).format("YYYY-MM-DD"),
rsptime: moment(rsptime).format("YYYY-MM-DD"),
});
if (rtnmsg.respCode == SUCCESS) {
this.load = false;
this.stmData.data = [];
const {list} = rtnmsg.data;
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.model = new Oftopn().data;
},
// pageSize改变
handleSizeChange(val) {
this.pagination.pageNum = 1;
this.pagination.pageSize = val;
this.handleSearch();
},
// 页码改变
handleCurrentChange(val) {
this.pagination.pageNum = val;
this.handleSearch();
},
handleSelectionChange(val){
this.multipleSelection = val;
}
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.model = new Oftopn().data;
},
// pageSize改变
handleSizeChange (val) {
this.pagination.pageNum = 1;
this.pagination.pageSize = val;
this.handleSearch();
},
// 页码改变
handleCurrentChange (val) {
this.pagination.pageNum = val;
this.handleSearch();
},
handleSelectionChange (val) {
this.multipleSelection = val;
}
},
};
......@@ -126,7 +126,9 @@
<el-tabs v-model="activeTab" class="y-tabs">
<el-tab-pane label="待关联报文处理" name="fb">
<el-table :data="stmData.data" :columns="stmData.columns" v-loading="load" style="width: 100%"
@selection-change="handleSelectionChange" size="small" :border="true" height="calc(100vh - 480px)"
@selection-change="handleSelectionChange"
@row-dblclick="dbClickRow"
size="small" :border="true" height="calc(100vh - 480px)"
:highlight-current-row="true">
<el-table-column type="selection" width="55">
</el-table-column>
......@@ -298,6 +300,14 @@ export default {
}
},
methods: {
dbClickRow (row) {
this.routerPush({
path: '/business/oftdtl',
query: {
dotinr: row.inr,
}
})
}
},
mounted: function () {
},
......
......@@ -2,24 +2,96 @@ import Api from "~/service/Api";
import moment from "moment";
export default {
methods: {
async handleSearch() {
},
async handleReset() {
},
// pageSize改变
handleSizeChange(val) {
this.pagination.pageNum = 1;
this.pagination.pageSize = val;
this.handleSearch();
},
// 页码改变
handleCurrentChange(val) {
this.pagination.pageNum = val;
this.handleSearch();
},
handleSelectionChange(val){
this.multipleSelection = val;
}
methods: {
async handleSearch () {
let rsptims = this.model.oftp.rel.rsptims;
if (!rsptims || rsptims === "") {
this.$notify.error({
title: this.$t("financing.错误"),
message: this.$t("financing.查询开始日期必输!"),
});
return;
}
let rsptime = this.model.oftp.rel.rsptime;
if (!rsptime || rsptime === "") {
this.$notify.error({
title: this.$t("financing.错误"),
message: this.$t("financing.查询结束日期必输!"),
});
return;
}
this.load = true;
// TODO rewrite url
let rtnmsg = await Api.post("/frontend/oftsel/query", {
...this.model.oftp.rel,
pageNum: this.pagination.pageNum,
pageSize: this.pagination.pageSize,
rsptims: moment(rsptims).format("YYYY-MM-DD"),
rsptime: moment(rsptime).format("YYYY-MM-DD"),
});
if (rtnmsg.respCode == SUCCESS) {
this.load = false;
this.stmData.data = [];
const { list } = rtnmsg.data;
const { codes: { kpasta, sta, stacod, offsta } } = this;
list.forEach(v => {
for (let i in kpasta) {
if (kpasta[i].value == v.typ) {
v.typ = kpasta[i].label;
}
}
for (let i in sta) {
if (sta[i].value == v.sta) {
v.sta = sta[i].label;
}
}
for (let i in stacod) {
if (stacod[i].value == v.area) {
v.area = stacod[i].label;
}
}
for (let i in offsta) {
if (offsta[i].value == v.offsta) {
v.offsta = offsta[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.model = new Oftsel().data;
},
// pageSize改变
handleSizeChange (val) {
this.pagination.pageNum = 1;
this.pagination.pageSize = val;
this.handleSearch();
},
// 页码改变
handleCurrentChange (val) {
this.pagination.pageNum = val;
this.handleSearch();
},
handleSelectionChange (val) {
this.multipleSelection = val;
}
},
};
......@@ -163,32 +163,52 @@ export default {
columns: [
{
label: "报文种类",
prop: "num",
prop: "mty",
width: "120px"
},
{
label: "收发时间",
prop: "num",
prop: "rsptim",
width: "120px"
},
{
label: "G渠道",
prop: "num",
prop: "sweflg",
width: "120px"
},
{
label: "记账类型",
prop: "num",
prop: "typ",
width: "120px"
},
{
label: "收支",
prop: "num",
prop: "dcflg",
width: "120px"
},
{
label: "金额",
prop: "num",
prop: "amt",
width: "120px"
},
{
label: "币种",
prop: "cur",
width: "120px"
},
{
label: "关联状态",
prop: "sta",
width: "120px"
},
{
label: "处理状态",
prop: "area",
width: "120px"
},
{
label: "起息日",
prop: "valdat",
width: "120px"
},
{
......@@ -203,37 +223,42 @@ export default {
},
{
label: "目标渠道",
prop: "num",
prop: "multimsg",
width: "120px"
},
{
label: "源渠道",
prop: "num",
prop: "chk",
width: "120px"
},
{
label: "下一渠道",
prop: "kpatyp",
width: "120px"
},
{
label: "发报行BIC",
prop: "num",
prop: "sedbak",
width: "120px"
},
{
label: "收报行BIC",
prop: "num",
prop: "rcvbak",
width: "120px"
},
{
label: "账户行BIC",
prop: "num",
prop: "actbic",
width: "120px"
},
{
label: "勾销标识",
prop: "num",
prop: "offsta",
width: "120px"
},
{
label: "最后处理时间",
prop: "num",
prop: "lstdat",
width: "120px"
}],
data: [],
......
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