Commit 422a9db5 by 李少勇

qrtmgs 交易修改

parent c3efb09d
......@@ -2,26 +2,26 @@ import Api from "~/service/Api";
import moment from "moment";
export default {
methods: {
async handleSearch() {
methods: {
async handleSearch() {
},
async handleReset() {
},
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;
}
},
// 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;
}
},
};
import Utils from "~/utils"
export default {
/**
* Qrtmgs Check规则
*/
let checkObj = {
"qrtp.revbnk" :null,
"qrtp.dte" :null,
"qrtp.dts" :null,
"qrtp.msgtyp" :null,
"qrtp.msgrag" :null,
"qrtp.sedbnk" :null,
}
"qrtp.dts": [
{ type: "date", required: false, message: "输入正确的日期" }
],
"qrtp.dte": [
{ 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
"qrtp.revbnk": [
{ type: "string", required: false, message: "必输项" },
{ max: 0, message: "长度不能超过0" }
],
"qrtp.sedbnk": [
{ type: "string", required: false, message: "必输项" },
{ max: 0, message: "长度不能超过0" }
],
"qrtp.amtdwl": [
{ type: "number", required: false, message: "必输项" },
{ max: 18, message: "整数位不能超过14位" },
{ pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"qrtp.amtupl": [
{ type: "number", required: false, message: "必输项" },
{ max: 18, message: "整数位不能超过14位" },
{ pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"qrtp.casnum": [
{ type: "string", required: false, message: "必输项" },
{ max: 0, message: "长度不能超过0" }
],
"qrtp.drtnum": [
{ type: "string", required: false, message: "必输项" },
{ max: 0, message: "长度不能超过0" }
],
"qrtp.tagt20": [
{ type: "string", required: false, message: "必输项" },
{ max: 0, message: "长度不能超过0" }
],
"qrtp.tagt21": [
{ type: "string", required: false, message: "必输项" },
{ max: 0, message: "长度不能超过0" }
],
"qrtp.uetr": [
{ type: "string", required: false, message: "必输项" },
{ max: 0, message: "长度不能超过0" }
],
}
\ No newline at end of file
/**
* Qrtmgs Default规则
*/
import Api from "~/service/Api";
import Utils from "~/utils/index"
export default {
}
//你可以添加自动default处理
import Api from "~/service/Api"
import Utils from "~/utils"
export default {
async onQrtpCassel(){
let rtnmsg = await this.executeRule("qrtp.cassel")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onQrtpCasclr(){
let rtnmsg = await this.executeRule("qrtp.casclr")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onQrtpMan(){
let rtnmsg = await this.executeRule("qrtp.man")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onQrtpMsgchk(){
let rtnmsg = await this.executeRule("qrtp.msgchk")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onQrtpRefresh(){
let rtnmsg = await this.executeRule("qrtp.refresh")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
}
\ No newline at end of file
export default {
"qrtp.dts":[
{type: "date", required: false, message: "输入正确的日期"}
],
"qrtp.dte":[
{type: "date", required: false, message: "输入正确的日期"}
],
"qrtp.revbnk":[
{type: "string", required: false, message: "必输项"},
{max: 0,message:"长度不能超过0"}
],
"qrtp.sedbnk":[
{type: "string", required: false, message: "必输项"},
{max: 0,message:"长度不能超过0"}
],
"qrtp.amtdwl":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"qrtp.amtupl":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"qrtp.casnum":[
{type: "string", required: false, message: "必输项"},
{max: 0,message:"长度不能超过0"}
],
"qrtp.drtnum":[
{type: "string", required: false, message: "必输项"},
{max: 0,message:"长度不能超过0"}
],
"qrtp.tagt20":[
{type: "string", required: false, message: "必输项"},
{max: 0,message:"长度不能超过0"}
],
"qrtp.tagt21":[
{type: "string", required: false, message: "必输项"},
{max: 0,message:"长度不能超过0"}
],
"qrtp.uetr":[
{type: "string", required: false, message: "必输项"},
{max: 0,message:"长度不能超过0"}
],
}
\ No newline at end of file
import Api from "~/service/Api"
import Pts from "~/page/Model/Common/Pts"
export default class Qrtmgs{
constructor () {
this.data = {
qrtp:{
msgrag:"", // 记录范围 .qrtp.msgrag
revdrt:"", // 接收方向 .qrtp.revdrt
dts:"", // 起始时间 .qrtp.dts
dte:"", // 截止时间 .qrtp.dte
mty:"", // 报文种类 .qrtp.mty
msgsta:"", // 报文状态 .qrtp.msgsta
revbnk:"", // 收报行BIC .qrtp.revbnk
sedbnk:"", // 发报行BIC .qrtp.sedbnk
cur:"", // 币种 .qrtp.cur
amtdwl:"", // 金额下限 .qrtp.amtdwl
amtupl:"", // 金额上限 .qrtp.amtupl
casnum:"", // CASE编号 .qrtp.casnum
drtnum:"", // 汇票号码 .qrtp.drtnum
tagt20:"", // 报文20域 .qrtp.tagt20
tagt21:"", // 报文21域 .qrtp.tagt21
ljschk:"", // 记录类型 .qrtp.ljschk
msgtyp:"", // 报文标准 .qrtp.msgtyp
uetr:"", // UETR .qrtp.uetr
wtdlst:[], // .qrtp.wtdlst
exp:"", // 导出 .qrtp.exp
},
pageId: "" // ctx的key
}
export default class Qrtmgs {
constructor() {
this.data = {
qrtp: {
msgrag: "", // 记录范围 .qrtp.msgrag
revdrt: "", // 接收方向 .qrtp.revdrt
dts: "", // 起始时间 .qrtp.dts
dte: "", // 截止时间 .qrtp.dte
mty: "", // 报文种类 .qrtp.mty
msgsta: "", // 报文状态 .qrtp.msgsta
revbnk: "", // 收报行BIC .qrtp.revbnk
sedbnk: "", // 发报行BIC .qrtp.sedbnk
cur: "", // 币种 .qrtp.cur
amtdwl: "", // 金额下限 .qrtp.amtdwl
amtupl: "", // 金额上限 .qrtp.amtupl
casnum: "", // CASE编号 .qrtp.casnum
drtnum: "", // 汇票号码 .qrtp.drtnum
tagt20: "", // 报文20域 .qrtp.tagt20
tagt21: "", // 报文21域 .qrtp.tagt21
ljschk: "", // 记录类型 .qrtp.ljschk
msgtyp: "", // 报文标准 .qrtp.msgtyp
uetr: "", // UETR .qrtp.uetr
wtdlst: [], // .qrtp.wtdlst
exp: "", // 导出 .qrtp.exp
},
pageId: "" // ctx的key
}
}
}
\ No newline at end of file
......@@ -2,56 +2,38 @@
<div class="eibs-tab">
<c-list-search @form-reset="handleReset" @form-search="handleSearch">
<!-- 持续展示区 -->
<template v-slot="searchSlot" >
<template v-slot="searchSlot">
<el-row>
<c-col :span="24">
<c-col :span="8">
<el-form-item label="记录类型" prop="qrtp.ljschk">
<c-select v-model="model.qrtp.ljschk" style="width:100%" >
<el-option
v-for="item in codes.ljschk"
:key="item.value"
:label="item.label"
:value="item.value">
<c-select v-model="model.qrtp.ljschk" style="width:100%">
<el-option v-for="item in codes.ljschk" :key="item.value" :label="item.label" :value="item.value">
</el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="记录范围" prop="qrtp.msgrag">
<c-select v-model="model.qrtp.msgrag" style="width:100%" >
<el-option
v-for="item in codes.msgrng"
:key="item.value"
:label="item.label"
:value="item.value">
<c-select v-model="model.qrtp.msgrag" style="width:100%">
<el-option v-for="item in codes.msgrng" :key="item.value" :label="item.label" :value="item.value">
</el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="接收方向" prop="qrtp.revdrt">
<c-select v-model="model.qrtp.revdrt" style="width:100%" >
<el-option
v-for="item in codes.msgdrt"
:key="item.value"
:label="item.label"
:value="item.value">
<c-select v-model="model.qrtp.revdrt" style="width:100%">
<el-option v-for="item in codes.msgdrt" :key="item.value" :label="item.label" :value="item.value">
</el-option>
</c-select>
</el-form-item>
</c-col>
</c-col>
</el-row>
<!-- 可控展示区 -->
<el-row v-show="searchSlot.searchToggle">
<!-- <c-col :span="24">
<!-- <c-col :span="24">
<c-col :span="8">
<el-form-item label="发报行BIC" prop="sndbak" style="width: 100%">
<c-input v-model="model.sndp.sndbak" maxlength="40" >
......@@ -80,16 +62,16 @@
<!-- LT000305 : : -->
<el-col :span="24" style="margin-top: 2px;margin-bottom: 1px;">
<c-button :disabled="isFoldDisable" class="medium_bcs" size="medium" style="margin-left: 0"
type="primary" >{{ $t('public.归档') }}
</c-button>
<c-button :disabled="isRoutingDisable" class="medium_bcs" size="medium"
style="margin-left: 20" type="primary">ReRouting
</c-button>
<c-button class="medium_bcs" size="medium" style="margin-left: 20" type="primary">
{{ $t('public.导出Excel') }}
</c-button>
</el-col>
<c-button :disabled="isFoldDisable" class="medium_bcs" size="medium" style="margin-left: 0" type="primary">{{
$t('public.归档') }}
</c-button>
<c-button :disabled="isRoutingDisable" class="medium_bcs" size="medium" style="margin-left: 20"
type="primary">ReRouting
</c-button>
<c-button class="medium_bcs" size="medium" style="margin-left: 20" type="primary">
{{ $t('public.导出Excel') }}
</c-button>
</el-col>
<el-col :span="24" style="margin-top: 10px">
<div style="height: 90%">
......@@ -97,9 +79,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)" :highlight-current-row="true">
<el-table-column type="selection" width="55">
@selection-change="handleSelectionChange" size="small" :border="true" height="calc(100vh - 420px)"
:highlight-current-row="true">
<el-table-column type="selection" width="55">
</el-table-column>
<el-table-column v-for="(item, key) in stmData.columns" :key="key" :label="item.label" :prop="item.prop"
:min-width="item.width">
......@@ -129,7 +111,7 @@ export default {
activeTab: 'fb',
load: false,
subtypCodes: [],
multipleSelection:[],
multipleSelection: [],
stmData: {
columns: [
{
......@@ -213,17 +195,17 @@ export default {
},
};
},
computed:{
isFoldDisable: function(){
computed: {
isFoldDisable: function () {
return this.multipleSelection.length == 0;
} ,
isRoutingDisable:function(){
},
isRoutingDisable: function () {
return this.multipleSelection.length == 0;
}
},
watch: {
'model.sndp.msgtyp': {
handler: function (newTyp, oldTyp) {
handler (newTyp, oldTyp) {
// 把已经选择的 subtyp 重置
this.model.sndp.subtyp = '';
const { codes } = this;
......
<template>
<div class="eContainer">
<el-form :model="model" :rules="rules" ref="modelForm" label-width="150px" label-position="right" size="small" :validate-on-rule-change="false">
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick">
<!--qrtp PD000078 qrtmgs 查询查复报文业务数据查询页面 -->
<el-tab-pane :label="$t('qrtp.PD000078')" name="wtdselp">
<m-wtdselp :model="model" :codes="codes"/>
</el-tab-pane>
</c-tabs>
<el-form :model="model" ref="modelForm" label-width="150px" label-position="right" size="small"
:validate-on-rule-change="false">
<c-content>
<m-wtdselp :model="model" :codes="codes" />
</c-content>
</el-form>
</div>
</template>
......@@ -14,104 +12,76 @@
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Qrtmgs from "../model"
import commonProcess from "~/mixin/commonProcess"
import Check from "../model/Check"
import Default from "../model/Default"
import Pattern from "../model/Pattern"
// import Check from "../model/Check.js"
import Wtdselp from "./Wtdselp"
export default {
name: "Qrtmgs",
components:{
"m-wtdselp" : Wtdselp,
},
provide() {
return {
root: this
}
},
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
data(){
return {
tabVal: "wtdselp",
trnName: "qrtmgs",
trnType: "",
model: new Qrtmgs().data,
checkRules: Check,
defaultRules: Default,
pattern: Pattern,
rules: null,
codes: {
msgdrt:CodeTable.msgdrt,
kpatyp:CodeTable.kpatyp,
cur:CodeTable.cur,
sdcflg:CodeTable.sdcflg,
gpicod:CodeTable.gpicod,
mgssta:CodeTable.mgssta,
ljschk:CodeTable.ljschk,
offtyp:CodeTable.offtyp,
msgrng:CodeTable.msgrng,
fmssta:CodeTable.fmssta,
clrsys:CodeTable.clrsys,
stacod:CodeTable.stacod,
dottyp:CodeTable.dottyp,
recsta:CodeTable.recsta,
bnksta:CodeTable.bnksta,
gpista:CodeTable.gpista,
kpadir:CodeTable.kpadir,
area:CodeTable.area,
cpsfxdtyp:CodeTable.cpsfxdtyp,
rspsta:CodeTable.rspsta,
sta:CodeTable.sta,
actsta:CodeTable.actsta,
offsta:CodeTable.offsta,
batcharge:CodeTable.batcharge,
msgmst:CodeTable.msgmst,
yosflg:CodeTable.yosflg,
filtyp:CodeTable.filtyp,
dircod:CodeTable.dircod,
kpstyp:CodeTable.kpstyp,
allmsgcod:CodeTable.allmsgcod,
dcflg:CodeTable.dcflg,
cipsstatus:CodeTable.cipsstatus,
curcod:CodeTable.curcod,
msgtyp:CodeTable.msgtyp,
chncod:CodeTable.chncod,
msgsta:CodeTable.msgsta,
usratr:CodeTable.usratr,
msgchksta:CodeTable.msgchksta,
cipsmsgtype:CodeTable.cipsmsgtype,
setmth:CodeTable.setmth,
chniptcod:CodeTable.chniptcod,
dtlchg:CodeTable.dtlchg,
},
}
},
methods:{
myTabClick(tab){
this.tabClick(tab)
/**
* do it yourself
**/
}
},
created:async function(){
console.log("进入qrtmgs交易");
let rtnmsg = {}; // await this.init({})
if(rtnmsg.respCode == SUCCESS)
{
this.updateModel(rtnmsg.data)
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
name: "Qrtmgs",
components: {
"m-wtdselp": Wtdselp,
},
provide() {
return {
root: this
}
},
mixins: [],
data() {
return {
trnName: "qrtmgs",
model: new Qrtmgs().data,
rules: {},
codes: {
msgdrt: CodeTable.msgdrt,
kpatyp: CodeTable.kpatyp,
cur: CodeTable.cur,
sdcflg: CodeTable.sdcflg,
gpicod: CodeTable.gpicod,
mgssta: CodeTable.mgssta,
ljschk: CodeTable.ljschk,
offtyp: CodeTable.offtyp,
msgrng: CodeTable.msgrng,
fmssta: CodeTable.fmssta,
clrsys: CodeTable.clrsys,
stacod: CodeTable.stacod,
dottyp: CodeTable.dottyp,
recsta: CodeTable.recsta,
bnksta: CodeTable.bnksta,
gpista: CodeTable.gpista,
kpadir: CodeTable.kpadir,
area: CodeTable.area,
cpsfxdtyp: CodeTable.cpsfxdtyp,
rspsta: CodeTable.rspsta,
sta: CodeTable.sta,
actsta: CodeTable.actsta,
offsta: CodeTable.offsta,
batcharge: CodeTable.batcharge,
msgmst: CodeTable.msgmst,
yosflg: CodeTable.yosflg,
filtyp: CodeTable.filtyp,
dircod: CodeTable.dircod,
kpstyp: CodeTable.kpstyp,
allmsgcod: CodeTable.allmsgcod,
dcflg: CodeTable.dcflg,
cipsstatus: CodeTable.cipsstatus,
curcod: CodeTable.curcod,
msgtyp: CodeTable.msgtyp,
chncod: CodeTable.chncod,
msgsta: CodeTable.msgsta,
usratr: CodeTable.usratr,
msgchksta: CodeTable.msgchksta,
cipsmsgtype: CodeTable.cipsmsgtype,
setmth: CodeTable.setmth,
chniptcod: CodeTable.chniptcod,
dtlchg: CodeTable.dtlchg,
},
}
},
methods: {
},
created: async function () {
console.log("进入qrtmgs交易");
}
}
</script>
<style>
</style>
<style></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