Commit f4fef989 by huangxin

交易dbiusr初始导入布局

parent 48ba2197
import Utils from "~/utils"
/**
* Dbiusr Check规则
*/
let checkObj = {
"recgrp.rec.relamt2nd" :null,
"recgrp.usrsec.nam" :null,
"recgrp.rec.relcur" :null,
"recgrp.rec.extkey" :null,
"recgrp.usrsec.prf" :null,
}
for (const key in checkObj) {
if (Object.hasOwnProperty.call(checkObj, key)) {
checkObj[key] = checkObj[key] ? checkObj[key] : Utils.reflectCheck(key)
}
}
export default checkObj
/**
* Dbiusr Default规则
*/
import Api from "~/service/Api";
import Utils from "~/utils/index"
export default {
"recgrp.rec.relgrp" :Utils.defaultFunction,
"recgrp.rec.relcur" :Utils.defaultFunction,
"recgrp.rec.lgiflg" :Utils.defaultFunction,
"recgrp.rec.extkey" :Utils.defaultFunction,
"recgrp.usrsec.secsta" :Utils.defaultFunction,
"recgrp.usrsec.nam" :Utils.defaultFunction,
"recgrp.usrsec.dsgflg" :Utils.defaultFunction,
"recgrp.usrsec.td2usr" :Utils.defaultFunction,
"recgrp.rec.resusrflg" :Utils.defaultFunction,
"recgrp.rec.ety" :Utils.defaultFunction,
}
//你可以添加自动default处理
import Api from "~/service/Api"
import Utils from "~/utils"
export default {
async onRecpanIsall(){
let rtnmsg = await this.executeRule("recpan.isall")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onRecpanIsnul(){
let rtnmsg = await this.executeRule("recpan.isnul")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
}
\ No newline at end of file
export default {
"recpan.recget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"recgrp.rec.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 8,message:"长度不能超过8"}
],
"recpan.recget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"recgrp.usrsec.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"recgrp.usrsec.inipsw":[
{type: "string", required: true, message: "必输项"},
{max: 32,message:"长度不能超过32"}
],
"recgrp.usrsec.td2usr":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"recgrp.rec.ssnbegdattim":[
{type: "string", required: false, message: "必输项"},
{max: 12,message:"长度不能超过12"}
],
"recgrp.rec.ssninr":[
{type: "string", required: false, message: "必输项"},
{max: 8,message:"长度不能超过8"}
],
"recpan.ety.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"recgrp.rec.quepow":[
{type: "string", required: false, message: "必输项"},
{max: 6,message:"长度不能超过6"}
],
"recgrp.rec.oenr":[
{type: "string", required: false, message: "必输项"},
{max: 4,message:"长度不能超过4"}
],
"recgrp.rec.relamt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"recpan.ownrelcur":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"recgrp.rec.relamt2nd":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"recgrp.rec.tel":[
{type: "string", required: false, message: "必输项"},
{max: 30,message:"长度不能超过30"}
],
"recgrp.rec.fax":[
{type: "string", required: false, message: "必输项"},
{max: 30,message:"长度不能超过30"}
],
"recgrp.rec.eml":[
{type: "string", required: false, message: "必输项"},
{max: 80,message:"长度不能超过80"}
],
"recgrp.rec.lstdiadat":[
{type: "date", required: false, message: "输入正确的日期"}
],
}
\ No newline at end of file
import Api from "~/service/Api"
import Pts from "../Common/Pts"
export default class Dbiusr{
constructor () {
this.data = {
recpan:{
td2usrlab:"", // Label for Short-Userid .recpan.td2usrlab
recget:{
sdamod:{
seainf:"", // .recpan.recget.sdamod.seainf
dadsnd:"", // Drag Drop Sender .recpan.recget.sdamod.dadsnd
},
},
ety:{
nam:"", // Entity Name .recpan.ety.nam
},
ownrelcur:"", // Own release currency .recpan.ownrelcur
prtmod:{
prtgrd:[], // .recpan.prtmod.prtgrd
},
prfmod:{
genfld:[], // .recpan.prfmod.genfld
},
},
recgrp:{
rec:{
extkey:"", // User ID .recgrp.rec.extkey
lgiflg:"", // Login Disabled .recgrp.rec.lgiflg
ssnbegdattim:"", // Last Session / Login .recgrp.rec.ssnbegdattim
ssninr:"", // INR of Last Session .recgrp.rec.ssninr
ety:"", // Default/Initial ETY of User .recgrp.rec.ety
pri:"", // Priority Flag to Mark Initial Record .recgrp.rec.pri
usg:"", // Workgroup of User .recgrp.rec.usg
quepow:"", // Available Capacity .recgrp.rec.quepow
relgrp:"", // Release Group .recgrp.rec.relgrp
relcur:"", // Org. Unit .recgrp.rec.relcur
relamt:"", // Release up to .recgrp.rec.relamt
relamt2nd:"", // 2nd Release Amount .recgrp.rec.relamt2nd
etaextkey:"", // Entity Address .recgrp.rec.etaextkey
oenr:"", // Organisationseinheit .recgrp.rec.oenr
tel:"", // Phone .recgrp.rec.tel
fax:"", // Fax Number of User .recgrp.rec.fax
eml:"", // E-mail Address of User .recgrp.rec.eml
lstdiadat:"", // E-mail .recgrp.rec.lstdiadat
resusrflg:"", // Resp.usr .recgrp.rec.resusrflg
},
usrsec:{
nam:"", // Name .recgrp.usrsec.nam
secsta:"", // Security Status .recgrp.usrsec.secsta
inipsw:"", // Initial Password .recgrp.usrsec.inipsw
prf:"", // Profile .recgrp.usrsec.prf
uil:"", // User Interface Language .recgrp.usrsec.uil
dsgflg:"", // Designer .recgrp.usrsec.dsgflg
td2usr:"", // Short User-Id for ModCodes .recgrp.usrsec.td2usr
admflg:"", // Security Administrator .recgrp.usrsec.admflg
},
ubrgrd:{
ubr:[], // .recgrp.ubrgrd.ubr
},
usrucl:[], // .recgrp.usrucl
},
pageId: "" // ctx的key
}
}
}
\ No newline at end of file
......@@ -206,6 +206,9 @@ import Gctcan from "./Gctcan"
// import Trtrcl from "./Trtrcl"
import Trtset from "./Trtset"
import Trtcan from "./Trtcan"
import Dbiusr from "./Dbiusr"
//import Dbibch from "./Dbibch"
/**
* 带有name的才会被添加进顶部的标签页里
......@@ -423,5 +426,9 @@ const BusRouter = [
// { path: 'trtrcl', component: Trtrcl, name: 'Trtrcl', meta: { title: '进口融资索汇' }},
{ path: 'trtset', component: Trtset, name: 'Trtset', meta: { title: '进口融资还款' } },
{ path: 'trtcan', component: Trtcan, name: 'Trtcan', meta: { title: '进口融资注销' } },
{ path: 'Dbiusr', component: Dbiusr, name: 'Dbiusr', meta: { title: 'Dbiusr' } },
//{ path: 'Dbibch', component: Dbibch, name: 'Dbibch', meta: { title: 'Dbibch' } },
]
export default BusRouter
\ No newline at end of file
<template>
<c-content class="eibs-tab" :height="200">
<c-row class="infrow" style="margin-top: 20px;">
<c-col :span="22" :offset="1">
<c-table :border="true" :list="model.recpan.prfmod.genfld" style="text-align:center">
<el-table-column prop="flddsc" label="Field" width="auto"></el-table-column>
<el-table-column prop="fldcnt" label="Content" width="auto"></el-table-column>
</c-table>
</c-col>
</c-row>
</c-content>
</template>
<script>
import Api from "~/service/Api"
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Dbiusr/Event"
export default {
inject: ['root'],
props: ["model", "codes"],
mixins: [commonProcess],
data() {
return {
}
},
methods: { ...Event },
created: function () {
}
}
</script>
<style>
</style>
\ No newline at end of file
<template>
<c-content class="eibs-tab" :height="200">
<div class="infTopBtn">
<c-button disabled size="small" type="primary">Add New</c-button>
<c-button disabled size="small" type="primary">Modify</c-button>
<c-button disabled size="small" type="primary">Delete</c-button>
<c-button disabled size="small" type="primary">Print</c-button>
<c-button size="small" type="primary">List</c-button>
<c-button disabled size="small" type="primary">Loginfo</c-button>
<c-button disabled size="small" type="primary">Block</c-button>
<c-button disabled size="small" type="primary">Reset</c-button>
<c-button size="small" type="primary">Exit</c-button>
</div>
<c-row class="infrow" style="margin-top: 50px;">
<c-col :span="24" :offset="1">
Different Release Profile for Business Sector
</c-col>
</c-row>
<c-row class="infrow">
<c-col :span="22" :offset="1">
<c-table :border="true" :list="model.recgrp.ubrgrd.ubr" style="text-align:center">
<el-table-column prop="branchinr" label="Branch" width="auto"></el-table-column>
<el-table-column prop="bussec" label="Business Sector" width="auto"></el-table-column>
<el-table-column prop="trncod" label="Trans code" width="auto"></el-table-column>
<el-table-column prop="relgrp" label="Release" width="auto"></el-table-column>
<el-table-column prop="relcur" label="Rel. Cur" width="auto"></el-table-column>
<el-table-column prop="relamt" label="Release Amout" width="auto"></el-table-column>
<el-table-column prop="relamt2nd" label="Own Amount" width="auto"></el-table-column>
<el-table-column prop="autcur" label="One.Rel" width="auto"></el-table-column>
<el-table-column prop="autamt" label="One.Rel Amount" width="auto"></el-table-column>
</c-table>
</c-col>
</c-row>
</c-content>
</template>
<script>
import Api from "~/service/Api"
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Dbiusr/Event"
export default {
inject: ['root'],
props: ["model", "codes"],
mixins: [commonProcess],
data() {
return {
}
},
methods: { ...Event },
created: function () {
}
}
</script>
<style>
</style>
\ No newline at end of file
<template>
<c-content class="eibs-tab" :height="200">
<div class="infTopBtn">
<c-button size="small" type="primary">全空</c-button>
<c-button size="small" type="primary">全选</c-button>
</div>
<c-row class="infrow" style="margin-top: 50px;">
<c-col :span="22" :offset="1">
<c-table :border="true" :list="model.recgrp.usrucl" style="text-align:center">
<el-table-column prop="mannam" label="Client name" width="auto"></el-table-column>
<el-table-column prop="bchinr" label="Bchinr" width="auto"></el-table-column>
<el-table-column prop="branch" label="机构号" width="auto"></el-table-column>
<el-table-column prop="usracc" label="Related Client" width="auto"></el-table-column>
<el-table-column prop="usrdef" label="Default Client" width="auto"></el-table-column>
<el-table-column prop="assignflg" label="是否参与任务分配" width="auto"></el-table-column>
<el-table-column prop="objlst" label="可处理业务品种" width="auto"></el-table-column>
</c-table>
</c-col>
</c-row>
</c-content>
</template>
<script>
import Api from "~/service/Api"
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Dbiusr/Event"
export default {
inject: ['root'],
props: ["model", "codes"],
mixins: [commonProcess],
data() {
return {
}
},
methods: { ...Event },
created: function () {
}
}
</script>
<style>
</style>
\ 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="tabClick">
<el-tab-pane label="User Profile" name="usrp0">
<c-content>
<m-usrp0 :model="model" :codes="codes"/>
</c-content>
</el-tab-pane>
<el-tab-pane label="General Fields" name="genpan">
<m-genpan :model="model" :codes="codes"/>
</el-tab-pane>
<el-tab-pane label="User Authorization" name="ubrp">
<m-ubrp :model="model" :codes="codes"/>
</el-tab-pane>
<el-tab-pane label="Related clients" name="usrp3">
<m-usrp3 :model="model" :codes="codes"/>
</el-tab-pane>
</c-tabs>
</el-form>
<c-grid-ety-prompt-dialog ref="etyDialog" :promptData="promptData" v-on:select-ety="selectEty">
</c-grid-ety-prompt-dialog>
<c-grid-ety-prompt-dialog ref="doxpDialog" :isPty="false" :promptData="promptData"
@select-ety="selectMsg">
</c-grid-ety-prompt-dialog>
</div>
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Dbiusr from "~/model/Dbiusr"
import commonProcess from "~/mixin/commonProcess"
import Check from "~/model/Dbiusr/Check"
import Default from "~/model/Dbiusr/Default"
import Pattern from "~/model/Dbiusr/Pattern"
import Usrp0 from "./Usrp0"
import Genpan from "./Genpan"
import Ubrp from "./Ubrp"
import Usrp3 from "./Usrp3"
export default {
name: "Dbiusr",
components:{
"m-usrp0" : Usrp0,
"m-genpan" : Genpan,
"m-ubrp" : Ubrp,
"m-usrp3" : Usrp3,
},
provide() {
return {
root: this
}
},
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
data(){
return {
tabVal: "usrp0",
trnName: "dbiusr",
trnType: "",
model: new Dbiusr().data,
checkRules: Check,
defaultRules: Default,
pattern: Pattern,
rules: null,
codes: {...CodeTable
},
}
},
methods:{
tabClick(){
}
},
created:async function(){
console.log("进入dbiusr交易");
let rtnmsg = await this.init({})
if(rtnmsg.respCode == SUCCESS)
{
this.updateModel(rtnmsg.data)
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
}
}
</script>
<style>
.infusrTab .el-tabs__content {
padding: 10px 0 10px 0;
}
.infusrTab .infrow {
padding: 0 10px 0 10px;
}
</style>
......@@ -125,6 +125,8 @@ export default {
//{ inifrm: "cltdav", ininam: "光票托收开立", pntmiu: "10" },
//{ inifrm: "clttra", ininam: "光票托收", pntmiu: "10" },
{ inifrm: "10", ininam: "参数管理", pntmiu: "" },
{ inifrm: "dbiusr", ininam: "Dbiusr", pntmiu: "10" },
//{ inifrm: "dbibch", ininam: "Dbibch", pntmiu: "10" },
{ inifrm: "infusr", ininam: "用户信息", pntmiu: "10" },
{ inifrm: "11", ininam: "卖方信用证", pntmiu: "" },
{ inifrm: "detopn", ininam: "卖方信用证开立", pntmiu: "11" },
......
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