Commit 0939ef0b by 李少勇

Rcvselcop 交易优化修改

parent 71d4147a
import Api from "~/service/Api";
import getSubtyp from '~/page/Frontend/Rcvsel/event/getSubtyp.js';
import moment from "moment";
import Rcvsel from "../model";
import Utils from "~/utils";
export default {
mixins: [getSubtyp],
methods: {
......@@ -61,24 +62,9 @@ export default {
this.load = false;
},
async handleReset() {
this.model.rcvp.msgtyp = "";
this.model.rcvp.rcvdatsta = new Date();
this.model.rcvp.rcvdatend = new Date();
this.model.rcvp.subtyp = "";
this.model.rcvp.sndbak = "";
this.model.rcvp.revbak = "";
this.model.rcvp.actbic = "";
this.model.rcvp.othref = "";
this.model.rcvp.ownref = "";
this.model.rcvp.cur = "";
this.model.rcvp.act = "";
this.model.rcvp.amtmin = "";
this.model.rcvp.amtmax = "";
this.model.rcvp.chnipt = "";
this.model.rcvp.rspsta = "";
this.model.rcvp.dtlchg = "";
this.model.rcvp.sta = "";
this.model.rcvp.gpi = "";
let resetModel = new Rcvsel().data
Utils.copyValueFromVoData(this.model, resetModel);
this.handleSearch();
},
// pageSize改变
handleSizeChange(val) {
......
import Utils from "~/utils"
export default {
/**
* Rcvselblk Check规则
*/
let checkObj = {
"rcvp.sndbak" :null,
"rcvp.actbic" :null,
"rcvp.revbak" :null,
"rcvp.msgtyp" :null,
"rcvp.othref" :null,
"rcvp.rcvdatend" :null,
"rcvp.ownref" :null,
"rcvp.amtmax" :null,
"rcvp.amtmin" :null,
"rcvp.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
"rcvp.rcvdatsta": [
{ type: "date", required: false, message: "输入正确的日期" }
],
"rcvp.rcvdatend": [
{ type: "date", required: false, message: "输入正确的日期" }
],
"rcvp.sndbak": [
{ type: "string", required: false, message: "必输项" },
{ max: 0, message: "长度不能超过0" }
],
"rcvp.revbak": [
{ type: "string", required: false, message: "必输项" },
{ max: 0, message: "长度不能超过0" }
],
"rcvp.actbic": [
{ type: "string", required: false, message: "必输项" },
{ max: 0, message: "长度不能超过0" }
],
"rcvp.othref": [
{ type: "string", required: false, message: "必输项" },
{ max: 0, message: "长度不能超过0" }
],
"rcvp.ownref": [
{ type: "string", required: false, message: "必输项" },
{ max: 0, message: "长度不能超过0" }
],
"rcvp.act": [
{ type: "string", required: false, message: "必输项" },
{ max: 0, message: "长度不能超过0" }
],
"rcvp.amtmin": [
{ type: "string", required: false, message: "必输项" },
{ max: 18, message: "长度不能超过18" }
],
"rcvp.amtmax": [
{ type: "string", required: false, message: "必输项" },
{ max: 18, message: "长度不能超过18" }
],
}
\ No newline at end of file
/**
* Rcvselblk Default规则
*/
import Api from "~/service/Api";
import Utils from "~/utils/index"
export default {
}
//你可以添加自动default处理
export default {
"rcvp.rcvdatsta":[
{type: "date", required: false, message: "输入正确的日期"}
],
"rcvp.rcvdatend":[
{type: "date", required: false, message: "输入正确的日期"}
],
"rcvp.sndbak":[
{type: "string", required: false, message: "必输项"},
{max: 0,message:"长度不能超过0"}
],
"rcvp.revbak":[
{type: "string", required: false, message: "必输项"},
{max: 0,message:"长度不能超过0"}
],
"rcvp.actbic":[
{type: "string", required: false, message: "必输项"},
{max: 0,message:"长度不能超过0"}
],
"rcvp.othref":[
{type: "string", required: false, message: "必输项"},
{max: 0,message:"长度不能超过0"}
],
"rcvp.ownref":[
{type: "string", required: false, message: "必输项"},
{max: 0,message:"长度不能超过0"}
],
"rcvp.act":[
{type: "string", required: false, message: "必输项"},
{max: 0,message:"长度不能超过0"}
],
"rcvp.amtmin":[
{type: "string", required: false, message: "必输项"},
{max: 18,message:"长度不能超过18"}
],
"rcvp.amtmax":[
{type: "string", required: false, message: "必输项"},
{max: 18,message:"长度不能超过18"}
],
}
\ No newline at end of file
export default class Rcvsel{
constructor () {
this.data = {
rcvp:{
rcvdatsta: new Date((new Date).getTime() - (3 * 24 * 60 * 60 * 1000)), // : 起始日期 .rcvp.rcvdatsta
rcvdatend: new Date(), // : 终止日期 .rcvp.rcvdatend
msgtyp:"", // : 报文标准 .rcvp.msgtyp
subtyp:"", // : 报文类型 .rcvp.subtyp
sndbak:"", // : 发报行BIC .rcvp.sndbak
revbak:"", // : 收报行BIC .rcvp.revbak
actbic:"", // : 账户行BIC .rcvp.actbic
othref:"", // : 20域编号 .rcvp.othref
ownref:"", // : 21域编号 .rcvp.ownref
cur:"", // : 币种 .rcvp.cur
act:"", // : 账号 .rcvp.act
amtmin:"", // : 金额下限 .rcvp.amtmin
amtmax:"", // : 金额上限 .rcvp.amtmax
chnipt:"", // 行内系统 .rcvp.chnipt
tblvis:"", // 行内系统标签 .rcvp.tblvis
tblvim:"", // 活动标签 .rcvp.tblvim
blksta:"", // 黑名单状态 .rcvp.blksta
dtlchg:"", // : 费用明细 .rcvp.dtlchg
sta:"", // : 处理状态 .rcvp.sta
gpi:"", // GPI标识 .rcvp.gpi
expexl:"", // 导出 .rcvp.expexl
},
msggrp:{
rcvlst:[], // .msggrp.rcvlst
},
pageId: "" // ctx的key
}
export default class Rcvsel {
constructor() {
this.data = {
rcvp: {
rcvdatsta: new Date((new Date).getTime() - (3 * 24 * 60 * 60 * 1000)), // : 起始日期 .rcvp.rcvdatsta
rcvdatend: new Date(), // : 终止日期 .rcvp.rcvdatend
msgtyp: "", // : 报文标准 .rcvp.msgtyp
subtyp: "", // : 报文类型 .rcvp.subtyp
sndbak: "", // : 发报行BIC .rcvp.sndbak
revbak: "", // : 收报行BIC .rcvp.revbak
actbic: "", // : 账户行BIC .rcvp.actbic
othref: "", // : 20域编号 .rcvp.othref
ownref: "", // : 21域编号 .rcvp.ownref
cur: "", // : 币种 .rcvp.cur
act: "", // : 账号 .rcvp.act
amtmin: "", // : 金额下限 .rcvp.amtmin
amtmax: "", // : 金额上限 .rcvp.amtmax
chnipt: "", // 行内系统 .rcvp.chnipt
tblvis: "", // 行内系统标签 .rcvp.tblvis
tblvim: "", // 活动标签 .rcvp.tblvim
blksta: "", // 黑名单状态 .rcvp.blksta
dtlchg: "", // : 费用明细 .rcvp.dtlchg
sta: "", // : 处理状态 .rcvp.sta
gpi: "", // GPI标识 .rcvp.gpi
expexl: "", // 导出 .rcvp.expexl
},
msggrp: {
rcvlst: [], // .msggrp.rcvlst
},
}
}
}
\ No newline at end of file
......@@ -163,6 +163,7 @@
<el-table-column v-for="(item, key) in stmData.columns" :key="key" :label="item.label" :prop="item.prop" :min-width="item.width">
<template slot-scope="scope">
<c-select-value-to-label v-if="item.prop == 'sta'" v-model="scope.row.sta" :code="codes.stacod"></c-select-value-to-label>
<span v-else-if="item.prop == 'amt'">{{ moneyFormat(scope.row.amt, scope.row.cur) }}</span>
<span v-else>{{ scope.row[item.prop] }}</span>
</template>
</el-table-column>
......@@ -198,12 +199,12 @@ export default {
{
label: "起息日",
prop: "valdat",
width: "150px"
width: "120px"
},
{
label: "20域编号",
prop: "ownref",
width: "150px"
width: "120px"
},
{
label: "21域名编号",
......@@ -213,17 +214,17 @@ export default {
{
label: "币种",
prop: "cur",
width: "100px"
width: "80px"
},
{
label: "金额",
prop: "amt",
width: "100px"
width: "120px"
},
{
label: "账号",
prop: "act",
width: "100px"
width: "150px"
},
{
label: "费用明细",
......@@ -233,7 +234,7 @@ export default {
{
label: "报文类型",
prop: "subtyp",
width: "120px"
width: "150px"
},
{
label: "行内系统",
......@@ -268,17 +269,17 @@ export default {
{
label: "报文标准",
prop: "msgtyp",
width: "150px"
width: "120px"
},
{
label: "GPI标识",
prop: "gpi",
width: "150px"
width: "120px"
},
{
label: "子系统",
prop: "zxt",
width: "150px"
width: "120px"
},
{
label: "接收时间",
......
<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"
: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"/>
......@@ -18,28 +18,26 @@
<script>
import CodeTable from "~/config/CodeTable";
import Sndsel from "../model";
import Rcvsel from "../model";
import event from "../event"
import Schpnl from "./Schpnl.vue"
export default {
name: "Rcvselcop",
components:{
"m-schpnl" : Schpnl,
},
provide() {
return {
root: this
}
},
mixins: [event], // 里面包含了Default、Check等的公共处理
mixins: [event],
data(){
return {
tabVal: "schpnl",
trnName: "sndsel",
model: new Sndsel().data,
trnName: "rcvsel",
model: new Rcvsel().data,
rules: null,
codes:{...CodeTable},
};
......
import Utils from "~/utils"
export default {
/**
* 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,
}
"sndp.rcvdatsta": [
{ type: "date", required: false, message: "输入正确的日期" }
],
"sndp.rcvdatend": [
{ type: "date", required: false, message: "输入正确的日期" }
],
for (const key in checkObj) {
if (Object.hasOwnProperty.call(checkObj, key)) {
checkObj[key] = checkObj[key] ? checkObj[key] : Utils.reflectCheck(key)
}
}
export default checkObj
"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
/**
* 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: new Date((new Date).getTime() - (3 * 24 * 60 * 60 * 1000)), // : 起始日期
rcvdatend: new Date(), // : 截止日期
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: new Date((new Date).getTime() - (3 * 24 * 60 * 60 * 1000)), // : 起始日期
rcvdatend: new Date(), // : 截止日期
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
}
}
}
\ 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"
: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"/>
......
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