Commit 0939ef0b by 李少勇

Rcvselcop 交易优化修改

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