Commit 422a9db5 by 李少勇

qrtmgs 交易修改

parent c3efb09d
...@@ -2,26 +2,26 @@ import Api from "~/service/Api"; ...@@ -2,26 +2,26 @@ import Api from "~/service/Api";
import moment from "moment"; import moment from "moment";
export default { export default {
methods: { methods: {
async handleSearch() { 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 {
/** "qrtp.dts": [
* Qrtmgs Check规则 { type: "date", required: false, message: "输入正确的日期" }
*/ ],
let checkObj = { "qrtp.dte": [
"qrtp.revbnk" :null, { type: "date", required: false, message: "输入正确的日期" }
"qrtp.dte" :null, ],
"qrtp.dts" :null,
"qrtp.msgtyp" :null,
"qrtp.msgrag" :null,
"qrtp.sedbnk" :null,
}
for (const key in checkObj) { "qrtp.revbnk": [
if (Object.hasOwnProperty.call(checkObj, key)) { { type: "string", required: false, message: "必输项" },
checkObj[key] = checkObj[key] ? checkObj[key] : Utils.reflectCheck(key) { max: 0, message: "长度不能超过0" }
} ],
} "qrtp.sedbnk": [
export default checkObj { 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 Api from "~/service/Api"
import Pts from "~/page/Model/Common/Pts" import Pts from "~/page/Model/Common/Pts"
export default class Qrtmgs{ export default class Qrtmgs {
constructor () { constructor() {
this.data = { this.data = {
qrtp:{ qrtp: {
msgrag:"", // 记录范围 .qrtp.msgrag msgrag: "", // 记录范围 .qrtp.msgrag
revdrt:"", // 接收方向 .qrtp.revdrt revdrt: "", // 接收方向 .qrtp.revdrt
dts:"", // 起始时间 .qrtp.dts dts: "", // 起始时间 .qrtp.dts
dte:"", // 截止时间 .qrtp.dte dte: "", // 截止时间 .qrtp.dte
mty:"", // 报文种类 .qrtp.mty mty: "", // 报文种类 .qrtp.mty
msgsta:"", // 报文状态 .qrtp.msgsta msgsta: "", // 报文状态 .qrtp.msgsta
revbnk:"", // 收报行BIC .qrtp.revbnk revbnk: "", // 收报行BIC .qrtp.revbnk
sedbnk:"", // 发报行BIC .qrtp.sedbnk sedbnk: "", // 发报行BIC .qrtp.sedbnk
cur:"", // 币种 .qrtp.cur cur: "", // 币种 .qrtp.cur
amtdwl:"", // 金额下限 .qrtp.amtdwl amtdwl: "", // 金额下限 .qrtp.amtdwl
amtupl:"", // 金额上限 .qrtp.amtupl amtupl: "", // 金额上限 .qrtp.amtupl
casnum:"", // CASE编号 .qrtp.casnum casnum: "", // CASE编号 .qrtp.casnum
drtnum:"", // 汇票号码 .qrtp.drtnum drtnum: "", // 汇票号码 .qrtp.drtnum
tagt20:"", // 报文20域 .qrtp.tagt20 tagt20: "", // 报文20域 .qrtp.tagt20
tagt21:"", // 报文21域 .qrtp.tagt21 tagt21: "", // 报文21域 .qrtp.tagt21
ljschk:"", // 记录类型 .qrtp.ljschk ljschk: "", // 记录类型 .qrtp.ljschk
msgtyp:"", // 报文标准 .qrtp.msgtyp msgtyp: "", // 报文标准 .qrtp.msgtyp
uetr:"", // UETR .qrtp.uetr uetr: "", // UETR .qrtp.uetr
wtdlst:[], // .qrtp.wtdlst wtdlst: [], // .qrtp.wtdlst
exp:"", // 导出 .qrtp.exp exp: "", // 导出 .qrtp.exp
}, },
pageId: "" // ctx的key pageId: "" // ctx的key
}
} }
}
} }
\ No newline at end of file
...@@ -2,56 +2,38 @@ ...@@ -2,56 +2,38 @@
<div class="eibs-tab"> <div class="eibs-tab">
<c-list-search @form-reset="handleReset" @form-search="handleSearch"> <c-list-search @form-reset="handleReset" @form-search="handleSearch">
<!-- 持续展示区 --> <!-- 持续展示区 -->
<template v-slot="searchSlot" > <template v-slot="searchSlot">
<el-row> <el-row>
<c-col :span="24"> <c-col :span="24">
<c-col :span="8"> <c-col :span="8">
<el-form-item label="记录类型" prop="qrtp.ljschk"> <el-form-item label="记录类型" prop="qrtp.ljschk">
<c-select v-model="model.qrtp.ljschk" style="width:100%" > <c-select v-model="model.qrtp.ljschk" style="width:100%">
<el-option <el-option v-for="item in codes.ljschk" :key="item.value" :label="item.label" :value="item.value">
v-for="item in codes.ljschk"
:key="item.value"
:label="item.label"
:value="item.value">
</el-option> </el-option>
</c-select> </c-select>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="8"> <c-col :span="8">
<el-form-item label="记录范围" prop="qrtp.msgrag"> <el-form-item label="记录范围" prop="qrtp.msgrag">
<c-select v-model="model.qrtp.msgrag" style="width:100%" > <c-select v-model="model.qrtp.msgrag" style="width:100%">
<el-option <el-option v-for="item in codes.msgrng" :key="item.value" :label="item.label" :value="item.value">
v-for="item in codes.msgrng"
:key="item.value"
:label="item.label"
:value="item.value">
</el-option> </el-option>
</c-select> </c-select>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="8"> <c-col :span="8">
<el-form-item label="接收方向" prop="qrtp.revdrt"> <el-form-item label="接收方向" prop="qrtp.revdrt">
<c-select v-model="model.qrtp.revdrt" style="width:100%" > <c-select v-model="model.qrtp.revdrt" style="width:100%">
<el-option <el-option v-for="item in codes.msgdrt" :key="item.value" :label="item.label" :value="item.value">
v-for="item in codes.msgdrt"
:key="item.value"
:label="item.label"
:value="item.value">
</el-option> </el-option>
</c-select> </c-select>
</el-form-item> </el-form-item>
</c-col> </c-col>
</c-col> </c-col>
</el-row> </el-row>
<!-- 可控展示区 --> <!-- 可控展示区 -->
<el-row v-show="searchSlot.searchToggle"> <el-row v-show="searchSlot.searchToggle">
<!-- <c-col :span="24"> <!-- <c-col :span="24">
<c-col :span="8"> <c-col :span="8">
<el-form-item label="发报行BIC" prop="sndbak" style="width: 100%"> <el-form-item label="发报行BIC" prop="sndbak" style="width: 100%">
<c-input v-model="model.sndp.sndbak" maxlength="40" > <c-input v-model="model.sndp.sndbak" maxlength="40" >
...@@ -80,16 +62,16 @@ ...@@ -80,16 +62,16 @@
<!-- LT000305 : : --> <!-- LT000305 : : -->
<el-col :span="24" style="margin-top: 2px;margin-bottom: 1px;"> <el-col :span="24" style="margin-top: 2px;margin-bottom: 1px;">
<c-button :disabled="isFoldDisable" class="medium_bcs" size="medium" style="margin-left: 0" <c-button :disabled="isFoldDisable" class="medium_bcs" size="medium" style="margin-left: 0" type="primary">{{
type="primary" >{{ $t('public.归档') }} $t('public.归档') }}
</c-button> </c-button>
<c-button :disabled="isRoutingDisable" class="medium_bcs" size="medium" <c-button :disabled="isRoutingDisable" class="medium_bcs" size="medium" style="margin-left: 20"
style="margin-left: 20" type="primary">ReRouting type="primary">ReRouting
</c-button> </c-button>
<c-button class="medium_bcs" size="medium" style="margin-left: 20" type="primary"> <c-button class="medium_bcs" size="medium" style="margin-left: 20" type="primary">
{{ $t('public.导出Excel') }} {{ $t('public.导出Excel') }}
</c-button> </c-button>
</el-col> </el-col>
<el-col :span="24" style="margin-top: 10px"> <el-col :span="24" style="margin-top: 10px">
<div style="height: 90%"> <div style="height: 90%">
...@@ -97,9 +79,9 @@ ...@@ -97,9 +79,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" @selection-change="handleSelectionChange" size="small" :border="true" height="calc(100vh - 420px)"
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>
<el-table-column v-for="(item, key) in stmData.columns" :key="key" :label="item.label" :prop="item.prop" <el-table-column v-for="(item, key) in stmData.columns" :key="key" :label="item.label" :prop="item.prop"
:min-width="item.width"> :min-width="item.width">
...@@ -129,7 +111,7 @@ export default { ...@@ -129,7 +111,7 @@ export default {
activeTab: 'fb', activeTab: 'fb',
load: false, load: false,
subtypCodes: [], subtypCodes: [],
multipleSelection:[], multipleSelection: [],
stmData: { stmData: {
columns: [ columns: [
{ {
...@@ -213,17 +195,17 @@ export default { ...@@ -213,17 +195,17 @@ export default {
}, },
}; };
}, },
computed:{ computed: {
isFoldDisable: function(){ isFoldDisable: function () {
return this.multipleSelection.length == 0; return this.multipleSelection.length == 0;
} , },
isRoutingDisable:function(){ isRoutingDisable: function () {
return this.multipleSelection.length == 0; return this.multipleSelection.length == 0;
} }
}, },
watch: { watch: {
'model.sndp.msgtyp': { 'model.sndp.msgtyp': {
handler: function (newTyp, oldTyp) { handler (newTyp, oldTyp) {
// 把已经选择的 subtyp 重置 // 把已经选择的 subtyp 重置
this.model.sndp.subtyp = ''; this.model.sndp.subtyp = '';
const { codes } = this; const { codes } = this;
......
<template> <template>
<div class="eContainer"> <div class="eContainer">
<el-form :model="model" :rules="rules" ref="modelForm" label-width="150px" label-position="right" size="small" :validate-on-rule-change="false"> <el-form :model="model" ref="modelForm" label-width="150px" label-position="right" size="small"
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick"> :validate-on-rule-change="false">
<!--qrtp PD000078 qrtmgs 查询查复报文业务数据查询页面 --> <c-content>
<el-tab-pane :label="$t('qrtp.PD000078')" name="wtdselp"> <m-wtdselp :model="model" :codes="codes" />
<m-wtdselp :model="model" :codes="codes"/> </c-content>
</el-tab-pane>
</c-tabs>
</el-form> </el-form>
</div> </div>
</template> </template>
...@@ -14,104 +12,76 @@ ...@@ -14,104 +12,76 @@
import Api from "~/service/Api" import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable" import CodeTable from "~/config/CodeTable"
import Qrtmgs from "../model" import Qrtmgs from "../model"
import commonProcess from "~/mixin/commonProcess" // import Check from "../model/Check.js"
import Check from "../model/Check"
import Default from "../model/Default"
import Pattern from "../model/Pattern"
import Wtdselp from "./Wtdselp" import Wtdselp from "./Wtdselp"
export default { export default {
name: "Qrtmgs", name: "Qrtmgs",
components:{ components: {
"m-wtdselp" : Wtdselp, "m-wtdselp": Wtdselp,
}, },
provide() { provide() {
return { return {
root: this 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: '服务请求失败!'});
}
} }
},
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> </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