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="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"; ...@@ -16,6 +16,7 @@ import CollectionRouter from "~/page/Collection/CollectionRouter";
import DerivativeRouter from "~/page/Derivative/DerivativeRouter"; import DerivativeRouter from "~/page/Derivative/DerivativeRouter";
import InfoRouter from "~/page/Info/InfoRouter"; import InfoRouter from "~/page/Info/InfoRouter";
import FundsRouter from "~/page/Funds/FundsRouter" import FundsRouter from "~/page/Funds/FundsRouter"
import FTRouter from "~/page/Frontend/FTRouter"
// const DisplayRouter1 = DisplayRouter.map(route => { // const DisplayRouter1 = DisplayRouter.map(route => {
// const newRoute = Object.assign({}, route) // const newRoute = Object.assign({}, route)
...@@ -49,6 +50,8 @@ export default [ ...@@ -49,6 +50,8 @@ export default [
...CollectionRouter, ...CollectionRouter,
...DerivativeRouter, ...DerivativeRouter,
...InfoRouter, ...InfoRouter,
...FundsRouter,
...FTRouter
], ],
meta: {title: '业务相关'} 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