Commit 38ca0b8a by niewei

oftopn oftsel

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