Commit a5364bad by fukai

提交Smtsel

parent 648289bb
const BusRouter = [
// { path: 'batchg', component: ()=>import("./Batchg/views"), name: 'Batchg', meta: { title: 'Batchg' } },
// { path: 'cpsmsg', component: ()=>import("./Cpsmsg/views"), name: 'Cpsmsg', meta: { title: 'Cpsmsg' } },
// { path: 'cpssxf', component: ()=>import("./Cpssxf/views"), name: 'Cpssxf', meta: { title: 'Cpssxf' } },
// { path: 'cpysel', component: ()=>import("./Cpysel/views"), name: 'Cpysel', meta: { title: 'Cpysel' } },
// { path: 'cpzsel', component: ()=>import("./Cpzsel/views"), name: 'Cpzsel', meta: { title: 'Cpzsel' } },
// { path: 'ctmsel', component: ()=>import("./Ctmsel/views"), name: 'Ctmsel', meta: { title: 'Ctmsel' } },
// { path: 'dblabk', component: ()=>import("./Dblabk/views"), name: 'Dblabk', meta: { title: 'Dblabk' } },
// { path: 'dblatt', component: ()=>import("./Dblatt/views"), name: 'Dblatt', meta: { title: 'Dblatt' } },
// { path: 'dblfxd', component: ()=>import("./Dblfxd/views"), name: 'Dblfxd', meta: { title: 'Dblfxd' } },
// { path: 'dblian', component: ()=>import("./Dblian/views"), name: 'Dblian', meta: { title: 'Dblian' } },
// { path: 'dblinn', component: ()=>import("./Dblinn/views"), name: 'Dblinn', meta: { title: 'Dblinn' } },
// { path: 'dblkpm', component: ()=>import("./Dblkpm/views"), name: 'Dblkpm', meta: { title: 'Dblkpm' } },
// { path: 'dblkrf', component: ()=>import("./Dblkrf/views"), name: 'Dblkrf', meta: { title: 'Dblkrf' } },
// { path: 'dblktl', component: ()=>import("./Dblktl/views"), name: 'Dblktl', meta: { title: 'Dblktl' } },
// { path: 'dblktp', component: ()=>import("./Dblktp/views"), name: 'Dblktp', meta: { title: 'Dblktp' } },
// { path: 'dotopn', component: ()=>import("./Dotopn/views"), name: 'Dotopn', meta: { title: 'Dotopn' } },
// { path: 'fxdsdb', component: ()=>import("./Fxdsdb/views"), name: 'Fxdsdb', meta: { title: 'Fxdsdb' } },
// { path: 'jfdsel', component: ()=>import("./Jfdsel/views"), name: 'Jfdsel', meta: { title: 'Jfdsel' } },
// { path: 'kpachk', component: ()=>import("./Kpachk/views"), name: 'Kpachk', meta: { title: 'Kpachk' } },
// { path: 'lmnsel', component: ()=>import("./Lmnsel/views"), name: 'Lmnsel', meta: { title: 'Lmnsel' } },
// { path: 'manzqs', component: ()=>import("./Manzqs/views"), name: 'Manzqs', meta: { title: 'Manzqs' } },
// { path: 'msgrsm', component: ()=>import("./Msgrsm/views"), name: 'Msgrsm', meta: { title: 'Msgrsm' } },
// { path: 'msgsel', component: ()=>import("./Msgsel/views"), name: 'Msgsel', meta: { title: 'Msgsel' } },
// { path: 'msgsep', component: ()=>import("./Msgsep/views"), name: 'Msgsep', meta: { title: 'Msgsep' } },
// { path: 'msgstp', component: ()=>import("./Msgstp/views"), name: 'Msgstp', meta: { title: 'Msgstp' } },
// { path: 'oftame', component: ()=>import("./Oftame/views"), name: 'Oftame', meta: { title: 'Oftame' } },
// { path: 'ofthng', component: ()=>import("./Ofthng/views"), name: 'Ofthng', meta: { title: 'Ofthng' } },
// { path: 'oftopn', component: ()=>import("./Oftopn/views"), name: 'Oftopn', meta: { title: 'Oftopn' } },
// { path: 'oftsel', component: ()=>import("./Oftsel/views"), name: 'Oftsel', meta: { title: 'Oftsel' } },
// { path: 'pngsel', component: ()=>import("./Pngsel/views"), name: 'Pngsel', meta: { title: 'Pngsel' } },
// { path: 'qrtmgs', component: ()=>import("./Qrtmgs/views"), name: 'Qrtmgs', meta: { title: 'Qrtmgs' } },
// { path: 'qrtsel', component: ()=>import("./Qrtsel/views"), name: 'Qrtsel', meta: { title: 'Qrtsel' } },
// { path: 'rcvsel', component: ()=>import("./Rcvsel/views"), name: 'Rcvsel', meta: { title: 'Rcvsel' } },
// { path: 'rptgen', component: ()=>import("./Rptgen/views"), name: 'Rptgen', meta: { title: 'Rptgen' } },
// { path: 'smdsel', component: ()=>import("./Smdsel/views"), name: 'Smdsel', meta: { title: 'Smdsel' } },
// { path: 'smtame', component: ()=>import("./Smtame/views"), name: 'Smtame', meta: { title: 'Smtame' } },
// { path: 'smtexe', component: ()=>import("./Smtexe/views"), name: 'Smtexe', meta: { title: 'Smtexe' } },
// { path: 'smtsel', component: ()=>import("./Smtsel/views"), name: 'Smtsel', meta: { title: 'Smtsel' } },
// { path: 'sndsel', component: ()=>import("./Sndsel/views"), name: 'Sndsel', meta: { title: 'Sndsel' } },
// { path: 'usrmsg', component: ()=>import("./Usrmsg/views"), name: 'Usrmsg', meta: { title: 'Usrmsg' } },
// { path: 'xxxtsk', component: ()=>import("./Xxxtsk/views"), name: 'Xxxtsk', meta: { title: 'Xxxtsk' } },
]
export default BusRouter
\ No newline at end of file
import Utils from "~/utils"
/**
* Smtsel Check规则
*/
let checkObj = {
"smtp.smtsup.ptpmod.pty.extkey" :null,
}
for (const key in checkObj) {
if (Object.hasOwnProperty.call(checkObj, key)) {
checkObj[key] = checkObj[key] ? checkObj[key] : Utils.reflectCheck(key)
}
}
export default checkObj
/**
* Smtsel 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 onPtpmodSel(){
let rtnmsg = await this.executeRule("ptpmod.sel")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onSmtsupSel(){
let rtnmsg = await this.executeRule("smtsup.sel")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onSmtsupClr(){
let rtnmsg = await this.executeRule("smtsup.clr")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onSmtsupAllchk(){
let rtnmsg = await this.executeRule("smtsup.allchk")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onSmtsupOpp(){
let rtnmsg = await this.executeRule("smtsup.opp")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onSmtsupLook(){
let rtnmsg = await this.executeRule("smtsup.look")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onSmtsupDtllok(){
let rtnmsg = await this.executeRule("smtsup.dtllok")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
}
\ No newline at end of file
export default {
"smtp.smtsup.ptpmod.pty.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 0,message:"长度不能超过0"}
],
"smtp.smtsup.ptpmod.pty.chnnam":[
{type: "string", required: false, message: "必输项"},
{max: 0,message:"长度不能超过0"}
],
"smtp.smtsup.act":[
{type: "string", required: false, message: "必输项"},
{max: 0,message:"长度不能超过0"}
],
"smtp.smtsup.ref":[
{type: "string", required: false, message: "必输项"},
{max: 0,message:"长度不能超过0"}
],
"smtp.smtsup.smtno":[
{type: "string", required: false, message: "必输项"},
{max: 0,message:"长度不能超过0"}
],
"smtp.smtsup.begdat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"smtp.smtsup.enddat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"smtp.smtsup.valdatbeg":[
{type: "date", required: false, message: "输入正确的日期"}
],
"smtp.smtsup.valdatend":[
{type: "date", required: false, message: "输入正确的日期"}
],
}
\ No newline at end of file
import Api from "~/service/Api"
import Pts from "../Common/Pts"
export default class Smtsel{
constructor () {
this.data = {
smtp:{
smtsup:{
smtno:"", // : .smtp.smtsup.smtno
begdat:"", // : .smtp.smtsup.begdat
enddat:"", // 至 .smtp.smtsup.enddat
ptpmod:{
pty:{
chnnam:"", // : .smtp.smtsup.ptpmod.pty.chnnam
extkey:"", // : .smtp.smtsup.ptpmod.pty.extkey
},
},
cur:"", // : .smtp.smtsup.cur
ref:"", // : .smtp.smtsup.ref
valdatbeg:"", // : .smtp.smtsup.valdatbeg
valdatend:"", // 至 .smtp.smtsup.valdatend
typ:"", // : .smtp.smtsup.typ
act:"", // : .smtp.smtsup.act
exp:"", // 导出 .smtp.smtsup.exp
},
},
smtgrp:{
smtsub:{
lst:[], // .smtgrp.smtsub.lst
},
},
pageId: "" // ctx的key
}
}
}
\ No newline at end of file
<template>
<div class="eibs-tab">
<c-col :span="24">
<div class="e-table-wrapper">
<el-table
:data="model.smtgrp.smtsub.lst"
style="width: 100%"
>
<el-table-column
prop="chk"
label=""
sortable
width="30">
</el-table-column>
<el-table-column
prop="recdat"
label="收报日期"
sortable
width="90">
</el-table-column>
<el-table-column
prop="valdat"
label="起息日期"
sortable
width="90">
</el-table-column>
<el-table-column
prop="chnnam"
label="账户行名称"
sortable
width="150">
</el-table-column>
<el-table-column
prop="bic"
label="BIC"
sortable
width="90">
</el-table-column>
<el-table-column
prop="acc"
label="帐号"
sortable
width="100">
</el-table-column>
<el-table-column
prop="cur"
label="币种"
sortable
width="40">
</el-table-column>
<el-table-column
prop="ref"
label="对账单参考号"
sortable
width="130">
</el-table-column>
<el-table-column
prop="smtno"
label="单编号"
sortable
width="60">
</el-table-column>
<el-table-column
prop="begamt"
label="期初金额"
sortable
width="120">
</el-table-column>
<el-table-column
prop="endamt"
label="期末金额"
sortable
width="120">
</el-table-column>
<el-table-column
prop="endvalamt"
label="期末可用金额"
sortable
width="120">
</el-table-column>
<el-table-column
prop="typ"
label="对账单类型"
sortable
width="80">
</el-table-column>
<el-table-column
prop="pag"
label="页数"
sortable
width="60">
</el-table-column>
<el-table-column
prop="dtl"
label="明细条数"
sortable
width="80">
</el-table-column>
</el-table>
<el-pagination
layout="prev, pager, next"
:total="pager.smtgrp_smtsub_lst.total">
</el-pagination>
</div>
</c-col>
<c-col :span="12">
<el-form-item :label="$t('smtsup.LT000199')" prop="smtp.smtsup.typ">
<c-select v-model="model.smtp.smtsup.typ" style="width:100%" :placeholder="$t('other.please_enter')+$t('smtsup.LT000199')">
<el-option
v-for="item in codes.smttyp"
:key="item.value"
:label="item.label"
:value="item.value">
</el-option>
</c-select>
</el-form-item>
</c-col>
<!-- LT000148 : 对账单类型 -->
<!-- LT000199 : : -->
<c-col :span="12">
<c-form-item :label="$t('smtsup.LT000200')" prop="smtp.smtsup.ptpmod.pty.extkey">
<c-input v-model="model.smtp.smtsup.ptpmod.pty.extkey" maxlength="24" :placeholder="$t('other.please_enter')+$t('smtsup.LT000200')"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" icon="el-icon-search" @click="onPtpmodSel">
{{$t('smtsup.BT000017')}}
</c-button>
</c-col>
<!-- LT000054 : BIC -->
<!-- LT000200 : : -->
<c-col :span="12">
<c-form-item :label="$t('smtsup.LT000201')" prop="smtp.smtsup.ptpmod.pty.chnnam">
<c-input v-model="model.smtp.smtsup.ptpmod.pty.chnnam" maxlength="100" :placeholder="$t('other.please_enter')+$t('smtsup.LT000201')"></c-input>
</c-form-item>
</c-col>
<!-- LT000016 : 账户行名称 -->
<!-- LT000201 : : -->
<!-- LT000227 : : -->
<c-col :span="12">
<c-form-item :label="$t('smtsup.LT000227')" prop="smtp.smtsup.act">
<c-input v-model="model.smtp.smtsup.act" maxlength="40" :placeholder="$t('other.please_enter')+$t('smtsup.LT000227')"></c-input>
</c-form-item>
</c-col>
<!-- LT000226 : 帐号 -->
<c-col :span="12">
<el-form-item :label="$t('smtsup.LT000202')" prop="smtp.smtsup.cur">
<c-select v-model="model.smtp.smtsup.cur" style="width:100%" :placeholder="$t('other.please_enter')+$t('smtsup.LT000202')">
</c-select>
</el-form-item>
</c-col>
<!-- LT000018 : 币种 -->
<!-- LT000202 : : -->
<c-col :span="12">
<c-form-item :label="$t('smtsup.LT000203')" prop="smtp.smtsup.ref">
<c-input v-model="model.smtp.smtsup.ref" maxlength="16" :placeholder="$t('other.please_enter')+$t('smtsup.LT000203')"></c-input>
</c-form-item>
</c-col>
<!-- LT000078 : 对账单参考号 -->
<!-- LT000203 : : -->
<c-col :span="12">
<c-form-item :label="$t('smtsup.LT000204')" prop="smtp.smtsup.smtno">
<c-input v-model="model.smtp.smtsup.smtno" maxlength="16" :placeholder="$t('other.please_enter')+$t('smtsup.LT000204')"></c-input>
</c-form-item>
</c-col>
<!-- LT000011 : 对账单编号 -->
<!-- LT000204 : : -->
<c-col :span="12">
<el-form-item :label="$t('smtsup.LT000205')" prop="smtp.smtsup.begdat">
<c-date-picker type="date" v-model="model.smtp.smtsup.begdat" style="width:100%" :placeholder="$t('other.please_enter')+$t('smtsup.LT000205')"></c-date-picker>
</el-form-item>
</c-col>
<!-- LT000012 : 收报日期 -->
<!-- LT000205 : : -->
<c-col :span="12">
<el-form-item :label="$t('smtsup.LT000013')" prop="smtp.smtsup.enddat">
<c-date-picker type="date" v-model="model.smtp.smtsup.enddat" style="width:100%" :placeholder="$t('other.please_enter')+$t('smtsup.LT000013')"></c-date-picker>
</el-form-item>
</c-col>
<!-- LT000013 : 至 -->
<c-col :span="12">
<el-form-item :label="$t('smtsup.LT000206')" prop="smtp.smtsup.valdatbeg">
<c-date-picker type="date" v-model="model.smtp.smtsup.valdatbeg" style="width:100%" :placeholder="$t('other.please_enter')+$t('smtsup.LT000206')"></c-date-picker>
</el-form-item>
</c-col>
<!-- LT000139 : 起息日期 -->
<!-- LT000206 : : -->
<c-col :span="12">
<el-form-item :label="$t('smtsup.LT000140')" prop="smtp.smtsup.valdatend">
<c-date-picker type="date" v-model="model.smtp.smtsup.valdatend" style="width:100%" :placeholder="$t('other.please_enter')+$t('smtsup.LT000140')"></c-date-picker>
</el-form-item>
</c-col>
<!-- LT000140 : 至 -->
<c-col :span="12">
<c-button size="small" type="primary" icon="el-icon-search" @click="onSmtsupSel">
{{$t('smtsup.BT000014')}}
</c-button>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onSmtsupClr">
{{$t('smtsup.BT000015')}}
</c-button>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onSmtsupAllchk">
{{$t('smtsup.BT000173')}}
</c-button>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onSmtsupOpp">
{{$t('smtsup.BT000174')}}
</c-button>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onSmtsupLook">
{{$t('smtsup.BT000058')}}
</c-button>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onSmtsupDtllok">
{{$t('smtsup.BT000057')}}
</c-button>
</c-col>
</div>
</template>
<script>
import Api from "~/service/Api"
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Smtsel/Event"
export default {
inject: ['root'],
props:["model","codes"],
mixins: [commonProcess],
data(){
return {
}
},
methods:{...Event},
created:function(){
}
}
</script>
<style>
</style>
<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">
<!--smtp PD000000 -->
<el-tab-pane :label="$t('smtp.PD000000')" name="smtp01">
<m-smtp01 :model="model" :codes="codes"/>
</el-tab-pane>
</c-tabs>
</el-form>
</div>
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Smtsel from "~/model/Smtsel"
import commonProcess from "~/mixin/commonProcess"
import Check from "~/model/Smtsel/Check"
import Default from "~/model/Smtsel/Default"
import Pattern from "~/model/Smtsel/Pattern"
import Smtp01 from "./Smtp01"
export default {
name: "Smtsel",
components:{
"m-smtp01" : Smtp01,
},
provide() {
return {
root: this
}
},
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
data(){
return {
tabVal: "",
trnName: "smtsel",
trnType: "",
model: new Smtsel().data,
checkRules: Check,
defaultRules: Default,
pattern: Pattern,
rules: null,
codes: {
msgdrt:CodeTable.msgdrt,
blksta:CodeTable.blksta,
kpatyp:CodeTable.kpatyp,
cur:CodeTable.cur,
sdcflg:CodeTable.sdcflg,
smttyp:CodeTable.smttyp,
gpicod:CodeTable.gpicod,
mgssta:CodeTable.mgssta,
ljschk:CodeTable.ljschk,
offtyp:CodeTable.offtyp,
msgrng:CodeTable.msgrng,
fmssta:CodeTable.fmssta,
clrsys:CodeTable.clrsys,
errtyp:CodeTable.errtyp,
stacod:CodeTable.stacod,
dottyp:CodeTable.dottyp,
recsta:CodeTable.recsta,
cassta:CodeTable.cassta,
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("进入smtsel交易");
let rtnmsg = await this.init({})
if(rtnmsg.respCode == SUCCESS)
{
this.updateModel(rtnmsg.data)
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
}
}
</script>
<style>
</style>
......@@ -16,6 +16,7 @@ import CollectionRouter from "~/page/Collection/CollectionRouter";
import DerivativeRouter from "~/page/Derivative/DerivativeRouter";
import InfoRouter from "~/page/Info/InfoRouter";
import FundsRouter from "~/page/Funds/FundsRouter"
import FTRouter from "~/page/Frontend/FTRouter"
// const DisplayRouter1 = DisplayRouter.map(route => {
// const newRoute = Object.assign({}, route)
......@@ -49,6 +50,8 @@ export default [
...CollectionRouter,
...DerivativeRouter,
...InfoRouter,
...FundsRouter,
...FTRouter
],
meta: {title: '业务相关'}
},
......
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