Commit 8120248d by 李少勇

sndsel交易修改Proman交易开发

parent 3f1f3973
......@@ -20,6 +20,7 @@ const BusRouter = [
{ path: 'bsnsel', component: () => import("./Bsnsel/views"), name: 'Bsnsel', meta: { title: 'CIPS业务状态查询', module: 'frontend', keepAlive: true } },
{ path: 'csnsel', component: () => import("./Csnsel/views"), name: 'Csnsel', meta: { title: '数字证书处理', module: 'frontend', keepAlive: true } },
{ path: 'patsel', component: () => import("./Patsel/views"), name: 'Patsel', meta: { title: '人民币跨境支付行号信息', module: 'frontend', keepAlive: true } },
{ path: 'proman', component: () => import("./Proman/views"), name: 'Proman', meta: { title: '跨境人民币业务权限管理', module: 'frontend', keepAlive: true } },
{ path: 'jfdsel', component: () => import("./Jfdsel/views"), name: 'Jfdsel', meta: { title: '计费单查询', module: 'frontend', keepAlive: true } },
{ path: 'kpachk', component: () => import("./Kpachk/views"), name: 'Kpachk', meta: { title: '未成功记账记录查询', module: 'frontend', keepAlive: true } },
{ path: 'lmnsel', component: () => import("./Lmnsel/views"), name: 'Lmnsel', meta: { title: '流动性管理', module: 'frontend', keepAlive: true } },
......
import Api from "~/service/Api";
import getSubtyp from '~/page/Frontend/Rcvsel/event/getSubtyp.js';
import moment from "moment";
export default {
mixins: [getSubtyp],
methods: {
async handleSearch() {
let rcvdatsta = this.model.sndp.rcvdatsta;
if (!rcvdatsta || rcvdatsta == "") {
this.$notify.error({
title: this.$t("financing.错误"),
message: this.$t("financing.查询开始日期必输!"),
});
return;
}
let rcvdatend = this.model.sndp.rcvdatend;
if (!rcvdatend || rcvdatend == "") {
this.$notify.error({
title: this.$t("financing.错误"),
message: this.$t("financing.查询结束日期必输!"),
});
return;
}
this.load = true;
let rtnmsg = await Api.post("/frontend/msgsel/query", {
...this.model.sndp,
dir: "<",
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.model.sndp.msgtyp = "";
this.model.sndp.rcvdatsta = new Date();
this.model.sndp.rcvdatend = new Date();
this.model.sndp.subtyp = "";
this.model.sndp.sndbak = "";
this.model.sndp.revbak = "";
this.model.sndp.actbic = "";
this.model.sndp.othref = "";
this.model.sndp.ownref = "";
this.model.sndp.cur = "";
this.model.sndp.act = "";
this.model.sndp.amtmin = "";
this.model.sndp.amtmax = "";
this.model.sndp.chnipt = "";
this.model.sndp.rspsta = "";
this.model.sndp.dtlchg = "";
this.model.sndp.sta = "";
},
// 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;
}
},
};
export default {
"prop.begtim": [
{ type: "date", required: false, message: "输入正确的日期" }
],
"prop.endtim": [
{ type: "date", required: false, message: "输入正确的日期" }
],
"prop.bic": [
{ type: "string", required: false, message: "必输项" },
{ max: 0, message: "长度不能超过0" }
],
}
\ No newline at end of file
export default class Proman {
constructor() {
this.data = {
prop: {
begtim: "", // 起始时间 .prop.begtim
endtim: "", // 截止时间 .prop.endtim
bic: "", // 行号 .prop.bic
exp: "", // 导出 .prop.exp
},
fxdgrp: {
riglst: [], // .fxdgrp.riglst
},
}
}
}
\ No newline at end of file
<template>
<div class="eibs-tab">
<c-list-search @form-reset="handleReset" @form-search="handleSearch">
<!-- 持续展示区 -->
<template v-slot="searchSlot">
<el-row>
<c-col :span="8">
<el-form-item label="起始时间" prop="prop.begtim">
<c-date-picker type="date" v-model="model.prop.begtim" style="width:100%"></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="截止时间" prop="prop.endtim">
<c-date-picker type="date" v-model="model.prop.endtim" style="width:100%"></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="行号" prop="prop.bic">
<c-input v-model="model.prop.bic" maxlength="11" style="width:100%"></c-input>
</el-form-item>
</c-col>
</el-row>
<!-- 可控展示区 -->
<el-row v-show="searchSlot.searchToggle">
</el-row>
</template>
</c-list-search>
<el-col :span="24" style="margin-top: 10px">
<c-col :span="24">
<el-table v-loading="load" :data="model.fxdgrp.riglst" style="width: 100%" size="small"
:border="true" height="calc(100vh - 280px)" :highlight-current-row="true">
<el-table-column prop="upddat" label="更新日期" width="150">
</el-table-column>
<el-table-column prop="atytyp" label="参与机构权限清单" width="200">
</el-table-column>
<el-table-column prop="bic" label="参与机构行号" width="200">
</el-table-column>
<el-table-column prop="sndtyp" label="发送业务权限清单">
</el-table-column>
<el-table-column prop="rcvtyp" label="接收业务权限清单">
</el-table-column>
</el-table>
<el-pagination layout="total, sizes, prev, pager, next, jumper"
:total="pagination.total"
:page-size="pagination.pageSize"
:current-page.sync="pagination.pageNum"
@size-change="handleSizeChange"
@current-change="handleCurrentChange">
</el-pagination>
</c-col>
</el-col>
</div>
</template>
<script>
import event from "../event";
export default {
inject: ["root"],
props: ["model", "codes"],
mixins: [event],
components: {
},
data() {
return {
load: false,
pagination: {
pageNum: 1,
pageSize: 10,
total: 0,
},
};
},
watch: {
},
computed: {},
mounted() {
},
methods: {
}
};
</script>
<style scoped lang="less">
.eibs-tabs /deep/ {
.m-table-search {
padding: 20px 0px 10px 0px;
}
}
.header-wrap {
height: 36px;
display: flex;
justify-content: space-between;
align-items: center;
.title {
font-size: 16px;
color: #000;
}
.close-btn {
padding: 3px;
cursor: pointer;
}
}
.m-list-btns {
height: 300px;
overflow: auto;
}
.medium_bcs {
border-radius: 5px;
}
</style>
\ No newline at end of file
<template>
<div class="eContainer-search">
<el-form :model="model" :rules="rules" ref="modelForm" label-width="150px" label-position="right" size="small"
:validate-on-rule-change="false">
<c-content>
<m-mainpl :model="model" :codes="codes" />
</c-content>
</el-form>
</div>
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Proman from "../model"
import Mainpl from "./Mainpl"
export default {
name: "Proman",
components: {
"m-mainpl": Mainpl,
},
provide() {
return {
root: this
}
},
mixins: [],
data() {
return {
trnName: "proman",
model: new Proman().data,
rules: null,
codes: {
},
}
},
methods: {
},
created: async function () {
console.log("进入proman交易");
}
}
</script>
<style></style>
import Utils from "~/utils"
export default {
"sndp.rcvdatsta": [
{ type: "date", required: false, message: "输入正确的日期" }
],
"sndp.rcvdatend": [
{ type: "date", required: false, message: "输入正确的日期" }
],
"sndp.sndbak": [
{ type: "string", required: false, message: "必输项" },
{ max: 0, message: "长度不能超过0" }
],
"sndp.revbak": [
{ type: "string", required: false, message: "必输项" },
{ max: 0, message: "长度不能超过0" }
],
"sndp.actbic": [
{ type: "string", required: false, message: "必输项" },
{ max: 0, message: "长度不能超过0" }
],
"sndp.ownref": [
{ type: "string", required: false, message: "必输项" },
{ max: 0, message: "长度不能超过0" }
],
"sndp.othref": [
{ type: "string", required: false, message: "必输项" },
{ max: 0, message: "长度不能超过0" }
],
/**
* Sndsel Check规则
*/
let checkObj = {
"sndp.rcvdatend" :null,
"sndp.othref" :null,
"sndp.amtmax" :null,
"sndp.msgtyp" :null,
"sndp.ownref" :null,
"sndp.revbak" :null,
"sndp.sndbak" :null,
"sndp.actbic" :null,
"sndp.amtmin" :null,
"sndp.rcvdatsta" :null,
}
for (const key in checkObj) {
if (Object.hasOwnProperty.call(checkObj, key)) {
checkObj[key] = checkObj[key] ? checkObj[key] : Utils.reflectCheck(key)
}
}
export default checkObj
"sndp.act": [
{ type: "string", required: false, message: "必输项" },
{ max: 0, message: "长度不能超过0" }
],
"sndp.amtmin": [
{ type: "string", required: false, message: "必输项" },
{ max: 18, message: "长度不能超过18" }
],
"sndp.amtmax": [
{ type: "string", required: false, message: "必输项" },
{ max: 18, message: "长度不能超过18" }
],
"sndp.usrnam": [
{ type: "string", required: false, message: "必输项" },
{ max: 0, message: "长度不能超过0" }
],
}
\ No newline at end of file
/**
* Sndsel Default规则
*/
import Api from "~/service/Api";
import Utils from "~/utils/index"
export default {
}
//你可以添加自动default处理
export default {
"sndp.rcvdatsta":[
{type: "date", required: false, message: "输入正确的日期"}
],
"sndp.rcvdatend":[
{type: "date", required: false, message: "输入正确的日期"}
],
"sndp.sndbak":[
{type: "string", required: false, message: "必输项"},
{max: 0,message:"长度不能超过0"}
],
"sndp.revbak":[
{type: "string", required: false, message: "必输项"},
{max: 0,message:"长度不能超过0"}
],
"sndp.actbic":[
{type: "string", required: false, message: "必输项"},
{max: 0,message:"长度不能超过0"}
],
"sndp.ownref":[
{type: "string", required: false, message: "必输项"},
{max: 0,message:"长度不能超过0"}
],
"sndp.othref":[
{type: "string", required: false, message: "必输项"},
{max: 0,message:"长度不能超过0"}
],
"sndp.act":[
{type: "string", required: false, message: "必输项"},
{max: 0,message:"长度不能超过0"}
],
"sndp.amtmin":[
{type: "string", required: false, message: "必输项"},
{max: 18,message:"长度不能超过18"}
],
"sndp.amtmax":[
{type: "string", required: false, message: "必输项"},
{max: 18,message:"长度不能超过18"}
],
"sndp.usrnam":[
{type: "string", required: false, message: "必输项"},
{max: 0,message:"长度不能超过0"}
],
}
\ No newline at end of file
import Api from "~/service/Api"
export default class Sndsel{
constructor () {
this.data = {
sndp:{
rcvdatsta:"", // : 起始日期
rcvdatend:"", // : 截止日期
msgtyp:"", // : 报文标准
subtyp:"", // : 报文类型
sndbak:"", // : 发报行BIC
revbak:"", // : 收报行BIC
actbic:"", // : 账户行
othref:"", // : 21域编号
ownref:"", // : 20域编
cur:"", // : 币种
act:"", // : 账号
amtmin:"", // : 金额下限
amtmax:"", // : 金额上限
chnipt:"", // 行内系统 .sndp.chnipt
rspsta:"", // 回执状态 .sndp.rspsta
tblrsp:"", // 回执状态标签 .sndp.tblrsp
tblrsm:"", // 回执状态标签 .sndp.tblrsm
usrnam:"", // 操作员 .sndp.usrnam
starsp:"", // 处理状态标签 .sndp.starsp
starsm:"", // 处理状态标签 .sndp.starsm
sta:"", // 处理状态 .sndp.sta
dtlchg:"", // : 费用明细
starsp1:"", // 处理状态标签1 .sndp.starsp1
starsm1:"", // 处理状态标签1 .sndp.starsm1
sta1:"", // 处理状态1 .sndp.sta1
expexl:"", // 导出 .sndp.expexl
expexl2:"", // 3910导出 .sndp.expexl2
},
msggrp:{
rcvlst:[], // .msggrp.rcvlst
},
pageId: "" // ctx的key
}
export default class Sndsel {
constructor() {
this.data = {
sndp: {
rcvdatsta: "", // : 起始日期
rcvdatend: "", // : 截止日期
msgtyp: "", // : 报文标准
subtyp: "", // : 报文类型
sndbak: "", // : 发报行BIC
revbak: "", // : 收报行BIC
actbic: "", // : 账户行
othref: "", // : 21域编号
ownref: "", // : 20域编
cur: "", // : 币种
act: "", // : 账号
amtmin: "", // : 金额下限
amtmax: "", // : 金额上限
chnipt: "", // 行内系统 .sndp.chnipt
rspsta: "", // 回执状态 .sndp.rspsta
tblrsp: "", // 回执状态标签 .sndp.tblrsp
tblrsm: "", // 回执状态标签 .sndp.tblrsm
usrnam: "", // 操作员 .sndp.usrnam
starsp: "", // 处理状态标签 .sndp.starsp
starsm: "", // 处理状态标签 .sndp.starsm
sta: "", // 处理状态 .sndp.sta
dtlchg: "", // : 费用明细
starsp1: "", // 处理状态标签1 .sndp.starsp1
starsm1: "", // 处理状态标签1 .sndp.starsm1
sta1: "", // 处理状态1 .sndp.sta1
expexl: "", // 导出 .sndp.expexl
expexl2: "", // 3910导出 .sndp.expexl2
},
msggrp: {
rcvlst: [], // .msggrp.rcvlst
},
}
}
}
\ No newline at end of file
<template>
<div class="eContainer-search">
<el-form
:model="model"
:rules="rules"
ref="modelForm"
label-width="120px"
label-position="right"
size="small"
:validate-on-rule-change="false"
>
<el-form :model="model" :rules="rules" ref="modelForm" label-width="120px" label-position="right" size="small"
:validate-on-rule-change="false">
<c-content>
<m-schpnl :model="model" :codes="codes" ref="schpnl"/>
<m-schpnl :model="model" :codes="codes" ref="schpnl" />
</c-content>
</el-form>
</div>
......@@ -25,8 +18,8 @@ import Schpnl from "./Schpnl.vue"
export default {
name: "Sndsel",
components:{
"m-schpnl" : Schpnl,
components: {
"m-schpnl": Schpnl,
},
provide() {
......@@ -34,20 +27,18 @@ export default {
root: this
}
},
mixins: [event], // 里面包含了Default、Check等的公共处理
data(){
mixins: [event],
data() {
return {
tabVal: "schpnl",
trnName: "sndsel",
model: new Sndsel().data,
rules: null,
codes:{...CodeTable},
codes: { ...CodeTable },
};
},
methods:{},
created:async function() {},
methods: {},
created: async function () { },
};
</script>
<style scoped>
</style>
<style scoped></style>
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