Commit e99ed0f4 by fukai
parents 1978a800 d1882ff1
import Utils from "~/utils"
/**
* Diasel Check规则
*/
let checkObj = {
}
for (const key in checkObj) {
if (Object.hasOwnProperty.call(checkObj, key)) {
checkObj[key] = checkObj[key] ? checkObj[key] : Utils.reflectCheck(key)
}
}
export default checkObj
/**
* Diasel Default规则
*/
import Api from "~/service/Api";
import Utils from "~/utils/index"
export default {
"usfmod.flt" :Utils.defaultFunction,
"dspstm" :Utils.defaultFunction,
"usfmod.selusg" :Utils.defaultFunction,
"usfmod.selusgset" :Utils.defaultFunction,
"usfmod.usr.extkey" :Utils.defaultFunction,
"diatil" :Utils.defaultFunction,
"seasec" :Utils.defaultFunction,
"diafro" :Utils.defaultFunction,
"searef" :Utils.defaultFunction,
}
//你可以添加自动default处理
import Api from "~/service/Api"
import Utils from "~/utils"
export default {
async onUsfmodShwflt(){
let rtnmsg = await this.executeRule("usfmod.shwflt")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onButdet(){
let rtnmsg = await this.executeRule("butdet")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onButdia(){
let rtnmsg = await this.executeRule("butdia")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onButdel(){
let rtnmsg = await this.executeRule("butdel")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onButprt(){
let rtnmsg = await this.executeRule("butprt")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onButconsel(){
let rtnmsg = await this.executeRule("butconsel")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onButconcal(){
let rtnmsg = await this.executeRule("butconcal")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onButexi(){
let rtnmsg = await this.executeRule("butexi")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
}
\ No newline at end of file
export default {
"diafro":[
{type: "date", required: false, message: "输入正确的日期"}
],
"diatil":[
{type: "date", required: false, message: "输入正确的日期"}
],
"searef":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"usfmod.usr.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 8,message:"长度不能超过8"}
],
"usfmod.usrget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"dspstm":[
{type: "string", required: false, message: "必输项"},
{max: 1,message:"长度不能超过1"}
],
}
\ No newline at end of file
import Api from "~/service/Api"
import Pts from "../Common/Pts"
export default class Diasel{
constructor () {
this.data = {
diafro:"", // Diary From date .diafro
diatil:"", // Diary Till date .diatil
usfmod:{
labtxt:"", // Text of Label .usfmod.labtxt
usftxt:"", // Text of Selection Text .usfmod.usftxt
flt:"", // Filter .usfmod.flt
selusg:"", // Selected User Group .usfmod.selusg
selusgset:"", // Selected User Group Set .usfmod.selusgset
usr:{
extkey:"", // User ID .usfmod.usr.extkey
},
usrget:{
sdamod:{
seainf:"", // .usfmod.usrget.sdamod.seainf
},
},
selusb:"", // Select user branch .usfmod.selusb
},
searef:"", // Selection Reference .searef
seasec:"", // Business Sector .seasec
dspstm:"", // Display Stream .dspstm
pageId: "" // ctx的key
}
}
}
\ No newline at end of file
import Cptadv from "./Cptadv" import Cptadv from "./Cptadv"
import Cptopn from "./Cptopn" import Cptopn from "./Cptopn"
import Diasel from "./Diasel"
import Ditame from "./Ditame" import Ditame from "./Ditame"
import Ditsel from "./Ditsel" import Ditsel from "./Ditsel"
import Ditopn from "./Ditopn" import Ditopn from "./Ditopn"
...@@ -21,6 +22,7 @@ const BusRouter = [ ...@@ -21,6 +22,7 @@ const BusRouter = [
{path:'bdtudp',component:Bdtudp}, {path:'bdtudp',component:Bdtudp},
{path:'cptadv',component:Cptadv}, {path:'cptadv',component:Cptadv},
{path:'cptopn',component:Cptopn}, {path:'cptopn',component:Cptopn},
{path:'diasel',component:Diasel},
{path:'ditame',component:Ditame}, {path:'ditame',component:Ditame},
{path:'ditsel',component:Ditsel}, {path:'ditsel',component:Ditsel},
{path:'ditopn',component:Ditopn}, {path:'ditopn',component:Ditopn},
......
<template>
<div class="eibs-tab">
<c-col :span="24">
<c-col :span="4">
<el-form-item label="from" prop="diafro" label-width="50px">
<c-date-picker type="date" v-model="model.diafro" style="width:100%" placeholder="请选择Diary From date"></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="4">
<el-form-item label="to" prop="diatil">
<c-date-picker type="date" v-model="model.diatil" style="width:50%" placeholder="请选择Diary Till date"></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="Reasons" prop="reasen">
<c-select
v-model="model.reasen"
style="width: 100%"
placeholder="请选择Reasons"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="8">
<el-form-item label="USFTXT" prop="usfmod.flt">
<c-select v-model="model.usfmod.flt" style="width:100%" placeholder="请选择Filter">
</c-select>
</el-form-item>
</c-col>
</c-col>
<!--
<c-col :span="12">
<span v-text="model.usfmod.usftxt" data-path=".usfmod.usftxt" > </span>
</c-col>
<c-col :span="12">
<el-form-item label="Filter" prop="usfmod.flt">
<c-select v-model="model.usfmod.flt" style="width:100%" placeholder="请选择Filter">
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onUsfmodShwflt">
Sho&w Set
</c-button>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onButdet">
&Display
</c-button>
</c-col>
<c-col :span="12">
<el-form-item label="Selection Reference" prop="searef">
<c-input v-model="model.searef" maxlength="16" placeholder="请输入Selection Reference"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Business Sector" prop="seasec">
<c-select v-model="model.seasec" style="width:100%" placeholder="请选择Business Sector">
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<span v-text="model.usfmod.labtxt" data-path=".usfmod.labtxt" > </span>
</c-col>
<c-col :span="12">
<el-form-item label="Selected User Group Set" prop="usfmod.selusgset">
<c-select v-model="model.usfmod.selusgset" style="width:100%" placeholder="请选择Selected User Group Set">
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="User ID" prop="usfmod.usr.extkey">
<c-input v-model="model.usfmod.usr.extkey" maxlength="8" placeholder="请输入User ID"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Selected User Group" prop="usfmod.selusg">
<c-select v-model="model.usfmod.selusg" style="width:100%" placeholder="请选择Selected User Group">
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Select user branch" prop="usfmod.selusb">
<c-select v-model="model.usfmod.selusb" style="width:100%" placeholder="请选择Select user branch">
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="" prop="usfmod.usrget.sdamod.seainf">
<c-input v-model="model.usfmod.usrget.sdamod.seainf" placeholder="请输入"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onButdia">
&Modify
</c-button>
</c-col>
<c-col :span="12">
<el-form-item label="Display Stream" prop="dspstm">
<c-input v-model="model.dspstm" placeholder="请输入Display Stream"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<c-button size="small" icon="el-icon-delete" @click="onButdel">
&Delete
</c-button>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onButprt">
P&rint
</c-button>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" icon="el-icon-search" @click="onButconsel">
&Selection
</c-button>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onButconcal">
&Process
</c-button>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onButexi">
E&xit
</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/Diasel/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="200px" size="small" :validate-on-rule-change="false">
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="tabClick">
<!--PD000001 -->
<el-tab-pane label="Diary Selection" name="diaselp">
<m-diaselp :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 Diasel from "~/model/Diasel"
import CommonProcess from "~/mixin/CommonProcess"
import Check from "~/model/Diasel/Check"
import Default from "~/model/Diasel/Default"
import Pattern from "~/model/Diasel/Pattern"
import Diaselp from "./Diaselp"
export default {
components:{
"m-diaselp" : Diaselp,
},
provide() {
return {
root: this
}
},
mixins: [CommonProcess], // 里面包含了Default、Check等的公共处理
data(){
return {
tabVal: "",
trnName: "diasel",
model: new Diasel().data,
checkRules: Check,
defaultRules: Default,
pattern: Pattern,
rules: null,
codes: {
},
}
},
methods:{
tabClick(){
}
},
created:async function(){
debugger;
console.log("进入diasel交易");
let rtnmsg = await this.init({})
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
}
}
</script>
<style>
</style>
...@@ -92,6 +92,7 @@ export default { ...@@ -92,6 +92,7 @@ export default {
{ inifrm: "0", ininam: "公共夹", pntmiu: "" }, { inifrm: "0", ininam: "公共夹", pntmiu: "" },
{ inifrm: "sptsel", ininam: "待办任务", pntmiu: "0" }, { inifrm: "sptsel", ininam: "待办任务", pntmiu: "0" },
{ inifrm: "trnrel", ininam: "复核任务", pntmiu: "0" }, { inifrm: "trnrel", ininam: "复核任务", pntmiu: "0" },
{ inifrm: "diasel", ininam: "备忘录选择交易", pntmiu: "0" },
{ inifrm: "1", ininam: "汇款", pntmiu: "" }, { inifrm: "1", ininam: "汇款", pntmiu: "" },
{ inifrm: "cptopn", ininam: "汇出汇款", pntmiu: "1" }, { inifrm: "cptopn", ininam: "汇出汇款", pntmiu: "1" },
{ inifrm: "cptadv", ininam: "汇入汇款", pntmiu: "1" }, { inifrm: "cptadv", ininam: "汇入汇款", pntmiu: "1" },
......
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