Commit 2bb67ff0 by huangxin

dbibch交易初始化,dbiusr修改

parent f4fef989
......@@ -7215,6 +7215,13 @@ const CodeTable = {
gitamecho:[
{ label: "无特殊规定", value: "无特殊规定" },
{ label: "有特殊规定,条件为:", value: "有特殊规定,条件为:" },
],
getprt:[
{ label: "Here", value: "DEF" },
{ label: "User", value: "USR" },
{ label: "User Group", value: "USG" },
{ label: "Entity", value: "ETY" },
{ label: "<not specified>", value: "" },
]
}
export default CodeTable;
import Utils from "~/utils"
/**
* Dbibch Check规则
*/
let checkObj = {
"recgrp.rec.bchflg" :null,
"recgrp.rec.lev" :null,
"recgrp.rec.lhanum" :null,
"recgrp.rec.bchkey" :null,
"recgrp.rec.decnum" :null,
"recpan.discod" :null,
"recgrp.rec.bchtyp" :null,
"recgrp.rec.upbranch" :null,
"recgrp.rec.branch" :null,
"recgrp.rec.bchgrp" :null,
"recgrp.rec.upbchkey" :null,
}
for (const key in checkObj) {
if (Object.hasOwnProperty.call(checkObj, key)) {
checkObj[key] = checkObj[key] ? checkObj[key] : Utils.reflectCheck(key)
}
}
export default checkObj
/**
* Dbibch Default规则
*/
import Api from "~/service/Api";
import Utils from "~/utils/index"
export default {
"recgrp.rec.upbchkey" :Utils.defaultFunction,
"recgrp.rec.bchkey" :Utils.defaultFunction,
"recgrp.rec.bchtyp" :Utils.defaultFunction,
"recgrp.rec.accbch" :Utils.defaultFunction,
"recgrp.rec.branch" :Utils.defaultFunction,
"recgrp.rec.bchname" :Utils.defaultFunction,
}
//你可以添加自动default处理
import Api from "~/service/Api"
import Utils from "~/utils"
export default {
async onSdamodSeainf(){
let rtnmsg = await this.executeRule("sdamod.seainf")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onMdibutAdd(){
let rtnmsg = await this.executeRule("mdibut.add")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onMdibutMod(){
let rtnmsg = await this.executeRule("mdibut.mod")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onMdibutDel(){
let rtnmsg = await this.executeRule("mdibut.del")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onMdibutPrt(){
let rtnmsg = await this.executeRule("mdibut.prt")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onMdibutLst(){
let rtnmsg = await this.executeRule("mdibut.lst")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onVermodVer(){
let rtnmsg = await this.executeRule("vermod.ver")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onMdibutExi(){
let rtnmsg = await this.executeRule("mdibut.exi")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onRecpanSelall(){
let rtnmsg = await this.executeRule("recpan.selall")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
}
\ No newline at end of file
export default {
"recgrp.rec.branch":[
{type: "string", required: false, message: "必输项"},
{max: 8,message:"长度不能超过8"}
],
"recgrp.rec.bchname":[
{type: "string", required: false, message: "必输项"},
{max: 62,message:"长度不能超过62"}
],
"recgrp.rec.accbch":[
{type: "string", required: false, message: "必输项"},
{max: 4,message:"长度不能超过4"}
],
"recgrp.rec.namen":[
{type: "string", required: false, message: "必输项"},
{max: 62,message:"长度不能超过62"}
],
"recgrp.rec.bchkey":[
{type: "string", required: false, message: "必输项"},
{max: 8,message:"长度不能超过8"}
],
"recgrp.rec.upbranch":[
{type: "string", required: false, message: "必输项"},
{max: 8,message:"长度不能超过8"}
],
"recgrp.rec.swfcod":[
{type: "string", required: false, message: "必输项"},
{max: 12,message:"长度不能超过12"}
],
"recgrp.rec.upbchkey":[
{type: "string", required: false, message: "必输项"},
{max: 8,message:"长度不能超过8"}
],
"recgrp.rec.adr":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"recgrp.rec.adr2":[
{type: "string", required: false, message: "必输项"},
{max: 60,message:"长度不能超过60"}
],
"recgrp.rec.adren":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"recgrp.rec.adren2":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"recpan.discod":[
{type: "string", required: false, message: "必输项"},
{max: 6,message:"长度不能超过6"}
],
"recgrp.rec.tel":[
{type: "string", required: false, message: "必输项"},
{max: 20,message:"长度不能超过20"}
],
"recgrp.rec.bchref":[
{type: "string", required: false, message: "必输项"},
{max: 4,message:"长度不能超过4"}
],
"recgrp.rec.fax":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"recgrp.rec.bchusr":[
{type: "string", required: false, message: "必输项"},
{max: 8,message:"长度不能超过8"}
],
"recgrp.rec.bchusr2":[
{type: "string", required: false, message: "必输项"},
{max: 8,message:"长度不能超过8"}
],
"recgrp.rec.decnum":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"recgrp.rec.lhanum":[
{type: "string", required: false, message: "必输项"},
{max: 12,message:"长度不能超过12"}
],
"recgrp.rec.ydjcod":[
{type: "string", required: false, message: "必输项"},
{max: 6,message:"长度不能超过6"}
],
"recgrp.rec.lhanam":[
{type: "string", required: false, message: "必输项"},
{max: 60,message:"长度不能超过60"}
],
"recgrp.rec.etyexkey":[
{type: "string", required: false, message: "必输项"},
{max: 8,message:"长度不能超过8"}
],
"recgrp.rec.bchflg":[
{type: "string", required: false, message: "必输项"},
{max: 2,message:"长度不能超过2"}
],
"recgrp.rec.dzlhhh":[
{type: "string", required: false, message: "必输项"},
{max: 12,message:"长度不能超过12"}
],
"recgrp.rec.dzlhmc":[
{type: "string", required: false, message: "必输项"},
{max: 60,message:"长度不能超过60"}
],
"recgrp.rec.bchfzr":[
{type: "string", required: false, message: "必输项"},
{max: 100,message:"长度不能超过100"}
],
}
\ No newline at end of file
import Api from "~/service/Api"
import Pts from "../Common/Pts"
export default class Dbibch{
constructor () {
this.data = {
recgrp:{
bchulr:"",
trl:"",
rec:{
branch:"", // branch code of the other system .recgrp.rec.branch
bchname:"", // branch name .recgrp.rec.bchname
bchkey:"", // The branch do the transction .recgrp.rec.bchkey
upbranch:"", // THE HIGH LEVEL BRANCH ID .recgrp.rec.upbranch
tel:"", // TEL PHONE .recgrp.rec.tel
fax:"", // FAX .recgrp.rec.fax
adr:"", // ADDRESS .recgrp.rec.adr
adr2:"", // ADDRESS TWO LINE .recgrp.rec.adr2
swfcod:"", // SWIFT CODE .recgrp.rec.swfcod
decnum:"", // Declaration Number .recgrp.rec.decnum
etyexkey:"", // entity extkey .recgrp.rec.etyexkey
bchflg:"", // BRANCH FLAG .recgrp.rec.bchflg
bchtyp:"", // BRANCH TYPE .recgrp.rec.bchtyp
lev:"", // LEVEL OF BRANCH .recgrp.rec.lev
namen:"", // ENGLISH NAME .recgrp.rec.namen
adren:"", // ENGLISH ADDRESS .recgrp.rec.adren
adren2:"", // ENGLISH ADDRESS TWO .recgrp.rec.adren2
ydjcod:"", // 印单局'码 .recgrp.rec.ydjcod
upbchkey:"", // UP BranchKey .recgrp.rec.upbchkey
accbch:"", // 核心机构号 .recgrp.rec.accbch
bchref:"", // 机构参考号 .recgrp.rec.bchref
bchusr:"", // 核心柜员 .recgrp.rec.bchusr
lhanum:"", // 联行行号 .recgrp.rec.lhanum
lhanam:"", // 联行名称 .recgrp.rec.lhanam
bchgrp:"", // 所属押汇中心 .recgrp.rec.bchgrp
zmqflg:"", // 自�'�区标志 .recgrp.rec.zmqflg
bchusr2:"", // 核心柜员2 .recgrp.rec.bchusr2
dzlhhh:"", // 电证联行行号 .recgrp.rec.dzlhhh
dzlhmc:"", // 电证联行名称 .recgrp.rec.dzlhmc
bchfzr:"", // 机构负责人 .recgrp.rec.bchfzr
},
},
recpan:{
discod:"", // 国内地区码 .recpan.discod
},
pageId: "" // ctx的key
}
}
}
\ No newline at end of file
......@@ -56,7 +56,7 @@ export default {
],
"recgrp.rec.relamt":[
{type: "number", required: false, message: "必输项"},
{type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
......@@ -67,7 +67,7 @@ export default {
{max: 3,message:"长度不能超过3"}
],
"recgrp.rec.relamt2nd":[
{type: "number", required: false, message: "必输项"},
{type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
......
......@@ -207,7 +207,7 @@ import Gctcan from "./Gctcan"
import Trtset from "./Trtset"
import Trtcan from "./Trtcan"
import Dbiusr from "./Dbiusr"
//import Dbibch from "./Dbibch"
import Dbibch from "./Dbibch"
/**
......@@ -427,7 +427,7 @@ const BusRouter = [
{ 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' } },
{ path: 'Dbibch', component: Dbibch, name: 'Dbibch', meta: { title: 'Dbibch' } },
]
......
<template>
<div class="eibs-tab">
<c-row>
<c-col :span="22">
<c-col :span="12">
<c-form-item label="机构编码" prop="recgrp.rec.branch">
<c-input v-model="model.recgrp.rec.branch" maxlength="8" placeholder=""
@keyup.enter.native="showGridPromptDialog('recgrp.rec.branch')"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="中文名称" prop="recgrp.rec.bchname">
<c-input disabled v-model="model.recgrp.rec.bchname" maxlength="62" placeholder=""></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="核心机构号" prop="recgrp.rec.accbch">
<c-input disabled v-model="model.recgrp.rec.accbch" maxlength="4" placeholder=""></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="英文名称" prop="recgrp.rec.namen">
<c-input disabled v-model="model.recgrp.rec.namen" maxlength="62" placeholder=""></c-input>
</c-form-item>
</c-col>
<c-col :span="24">
<c-col :span="12">
<el-form-item label="机构类型" prop="recgrp.rec.bchtyp">
<c-select disabled v-model="model.recgrp.rec.bchtyp" style="width:100%" placeholder="" >
</c-select>
</el-form-item>
</c-col>
<c-col :span="11" :offset="1">
<span style="font-size:13px">(1-经办行; 2-非经办行; 3-总行押汇中心; 4-押汇中心XX组; 5-押汇中心XX1组; 6-收单行)</span>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="12">
<c-form-item label="经办行机构编码" prop="recgrp.rec.bchkey">
<c-input disabled v-model="model.recgrp.rec.bchkey" maxlength="8" placeholder=""></c-input>
</c-form-item>
</c-col>
<c-col :span="7" :offset="1">
<span style="font-size:13px">(机构编码,如总行单证中心的机构编码为“08350000”)</span>
</c-col>
<c-col :span="3" :offset="1">
<c-checkbox disabled v-model="model.recgrp.rec.zmqflg">自贸区标志</c-checkbox>
</c-col>
</c-col>
<c-col :span="6">
<c-form-item label="上级行机构编码" prop="recgrp.rec.upbranch">
<c-input disabled v-model="model.recgrp.rec.upbranch" maxlength="8" placeholder=""></c-input>
</c-form-item>
</c-col>
<c-col :span="6">
<c-form-item label="BIC码" prop="recgrp.rec.swfcod" >
<c-input disabled v-model="model.recgrp.rec.swfcod" maxlength="12" placeholder=""></c-input>
</c-form-item>
</c-col>
<c-col :span="6">
<c-form-item label="所辖押汇中心" prop="recgrp.rec.upbchkey">
<c-input disabled v-model="model.recgrp.rec.upbchkey" maxlength="8" placeholder=""></c-input>
</c-form-item>
</c-col>
<c-col :span="6">
<el-form-item label="" prop="recgrp.rec.bchgrp" label-width="20px">
<c-input disabled v-model="model.recgrp.rec.bchgrp" maxlength="20" placeholder="" >
</c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<c-col :span="12">
<c-form-item label="中文地址" prop="recgrp.rec.adr">
<c-input disabled v-model="model.recgrp.rec.adr" maxlength="40" placeholder=""></c-input>
</c-form-item>
</c-col>
<c-col :span="11" :offset="1">
<span style="font-size:12px">(两行地址)</span>
</c-col>
</c-col>
<c-col>
<c-col :span="12">
<c-form-item label="" prop="recgrp.rec.adr2">
<c-input disabled v-model="model.recgrp.rec.adr2" maxlength="60" placeholder=""></c-input>
</c-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="12">
<c-form-item label="英文地址" prop="recgrp.rec.adren">
<c-input disabled v-model="model.recgrp.rec.adren" maxlength="40" placeholder=""></c-input>
</c-form-item>
</c-col>
<c-col :span="11" :offset="1">
<span style="font-size:12px">(两行地址)</span>
</c-col>
</c-col>
<c-col :span="12">
<c-form-item label="" prop="recgrp.rec.adren2">
<c-input disabled v-model="model.recgrp.rec.adren2" maxlength="40" placeholder=""></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="国内地区码" prop="recpan.discod">
<c-input disabled v-model="model.recpan.discod" maxlength="6" placeholder=""></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="电话" prop="recgrp.rec.tel">
<c-input disabled v-model="model.recgrp.rec.tel" maxlength="20" placeholder=""></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="机构参考号" prop="recgrp.rec.bchref">
<c-input disabled v-model="model.recgrp.rec.bchref" maxlength="4" placeholder=""></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="传真" prop="recgrp.rec.fax">
<c-input disabled v-model="model.recgrp.rec.fax" maxlength="16" placeholder=""></c-input>
</c-form-item>
</c-col>
<c-col :span="6">
<c-form-item label="核心柜员" prop="recgrp.rec.bchusr">
<c-input disabled v-model="model.recgrp.rec.bchusr" maxlength="8" placeholder=""></c-input>
</c-form-item>
</c-col>
<c-col :span="6">
<c-form-item label="核心柜员2" prop="recgrp.rec.bchusr2">
<c-input disabled v-model="model.recgrp.rec.bchusr2" maxlength="8" placeholder=""></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="收支申报号" prop="recgrp.rec.decnum">
<c-input disabled v-model="model.recgrp.rec.decnum" maxlength="40" placeholder=""></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="联行行号" prop="recgrp.rec.lhanum">
<c-input disabled v-model="model.recgrp.rec.lhanum" maxlength="12" placeholder=""></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="印单局代码" prop="recgrp.rec.ydjcod">
<c-input disabled v-model="model.recgrp.rec.ydjcod" maxlength="6" ></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="联行名称" prop="recgrp.rec.lhanam">
<c-input disabled v-model="model.recgrp.rec.lhanam" maxlength="60" placeholder=""></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="实体" prop="recgrp.rec.etyexkey">
<c-input disabled v-model="model.recgrp.rec.etyexkey" maxlength="8" placeholder=""></c-input>
</c-form-item>
</c-col>
<c-col :span="24">
<c-col :span="12">
<c-form-item label="机构标识" prop="recgrp.rec.bchflg">
<c-input disabled v-model="model.recgrp.rec.bchflg" maxlength="2" placeholder=""></c-input>
</c-form-item>
</c-col>
<c-col :span="11" :offset="1">
<span style="font-size:13px">经办行自身用“AA”标识,其他代办机构用“AB”等标识,代办机构标识符不要重复</span>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="12">
<el-form-item label="机构层次" prop="recgrp.rec.lev">
<c-select disabled v-model="model.recgrp.rec.lev" style="width:100%" placeholder="" >
</c-select>
</el-form-item>
</c-col>
<c-col :span="11" :offset="1">
<span style="font-size:13px">(“0”-总行单证中心; “1”-分行或总行直属支行; “2”-二级分行或分行下属支行)</span>
</c-col>
</c-col>
<c-col :span="12">
<c-form-item label="电证联行行号" prop="recgrp.rec.dzlhhh">
<c-input disabled v-model="model.recgrp.rec.dzlhhh" maxlength="12" placeholder=""></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="电证联行名称" prop="recgrp.rec.dzlhmc">
<c-input disabled v-model="model.recgrp.rec.dzlhmc" maxlength="60" placeholder=""></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-form-item label="机构负责人" prop="recgrp.rec.bchfzr">
<c-input disabled v-model="model.recgrp.rec.bchfzr" maxlength="100" placeholder=""></c-input>
</c-form-item>
</c-col>
</c-col>
</c-row>
</div>
</template>
<script>
import Api from "~/service/Api"
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Dbibch/Event"
export default {
inject: ['root'],
props:["model","codes"],
mixins: [commonProcess],
data(){
return {
bchtyp: [
{label:"总行押汇中心",value:"3" },
{label:"押汇中心XX组",value:"4" },
{ label: "押汇中心XX1组", value: "5" },
{label:"非经办行",value:"2" },
{label:"经办行",value:"1" },
{label:"收单行",value:"6" },
],
}
},
methods:{...Event},
created:function(){
}
}
</script>
<style>
</style>
<template>
<div class="eibs-tab">
<c-col :span="22">
<c-col :span="15">
<c-table :border="true" :list="model.recgrp.trl" style="text-align:center">
<el-table-column prop="bchkey" label="机构编码" width="auto"></el-table-column>
<el-table-column prop="trn" label="交易代码" width="auto"></el-table-column>
<el-table-column prop="relcur" label="授权货币" width="auto"></el-table-column>
<el-table-column prop="relamt" label="授权金额" width="auto"></el-table-column>
<el-table-column prop="relflg" label="交易属性" width="auto"></el-table-column>
</c-table>
</c-col>
<c-col :span="6" :offset="1">
<p style="font-size:15px">交易属性说明</p>
<p style="font-size:15px">1.无论金额大小均须总行看,经办行为经办,复核,总经理三人操作,总行为经办,复核两人操作。</p>
<p style="font-size:15px">2.超过一定金额一定须总行看,不超过一定金额不须总行看,但是分行总经理需要授权。</p>
<p style="font-size:15px">3.无须总行看,未超过一定金额只需经办,复核两人操作,超过一定金额需经办,复核,总经理三人操作。</p>
<p style="font-size:15px">4.需要OB两人即可授权业务。</p>
<p style="font-size:15px">5.无论金额大小均须总行看,经办行为经办,复核两人操作,总行为经办,复核两人操作。</p>
<p style="font-size:15px">空.无需总行看,经办行为经办,总经理两人操作OA。</p>
</c-col>
</c-col>
</div>
</template>
<script>
import Api from "~/service/Api"
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Dbibch/Event"
export default {
inject: ['root'],
props:["model","codes"],
mixins: [commonProcess],
data(){
return {
}
},
methods:{...Event},
created:function(){
}
}
</script>
<style>
</style>
<template>
<div class="eibs-tab">
<c-col :span="22" :offset="1">
<c-table :border="true" :list="model.recgrp.bchulr" 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="bchref" label="Default Client" width="auto">
<template slot-scope="scope">
<c-checkbox disabled v-model="scope.row.bchref"></c-checkbox>
</template>
</el-table-column>
</c-table>
</c-col>
</div>
</template>
<script>
import Api from "~/service/Api"
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Dbibch/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">
<el-tab-pane label="BCH" name="bchp0">
<c-content>
<m-bchp0 :model="model" :codes="codes"/>
</c-content>
</el-tab-pane>
<el-tab-pane label="Related clients" name="usrp3">
<c-content>
<m-usrp3 :model="model" :codes="codes"/>
</c-content>
</el-tab-pane>
<el-tab-pane label="Authorization" name="trlp">
<c-content>
<m-trlp :model="model" :codes="codes"/>
</c-content>
</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>
</div>
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Dbibch from "~/model/Dbibch"
import commonProcess from "~/mixin/commonProcess"
import Check from "~/model/Dbibch/Check"
import Default from "~/model/Dbibch/Default"
import Pattern from "~/model/Dbibch/Pattern"
import Bchp0 from "./Bchp0"
import Usrp3 from "./Usrp3"
import Trlp from "./Trlp"
export default {
name: "Dbibch",
components:{
"m-bchp0" : Bchp0,
"m-usrp3" : Usrp3,
"m-trlp" : Trlp,
},
provide() {
return {
root: this
}
},
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
data(){
return {
tabVal: "bchp0",
trnName: "dbibch",
trnType: "",
model: new Dbibch().data,
checkRules: Check,
defaultRules: Default,
pattern: Pattern,
rules: null,
codes: {...CodeTable
},
}
},
methods:{
myTabClick(tab) {
this.tabClick(tab);
let name = tab.name;
let rulePath;
if (name === "usrp3") {
rulePath = "recpan.usrp3";
}
if (!!rulePath) {
this.executeRule(rulePath).then((res) => {
if (res.respCode == SUCCESS) {
this.updateModel(res.data);
}
});
}
},
},
created:async function(){
console.log("进入dbibch交易");
let rtnmsg = await this.init({})
if(rtnmsg.respCode == SUCCESS)
{
this.updateModel(rtnmsg.data)
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
}
}
</script>
<style>
</style>
<template>
<c-content class="eibs-tab" :height="200">
<div class="infTopBtn">
<!-- <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>
......@@ -11,7 +11,7 @@
<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>
</div> -->
<c-row class="infrow" style="margin-top: 50px;">
<c-col :span="24" :offset="1">
......
<template>
<c-content class="eibs-tab" :height="200">
<div class="infTopBtn">
<!-- <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>
......@@ -11,7 +11,7 @@
<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>
</div> -->
<c-row class="infrow" style="margin-top:50px;">
<c-col :span="11" :offset="1">
......@@ -35,19 +35,11 @@
</c-row>
</c-col>
<c-col :span="11" :offset="1">
<c-row>
<c-col :span="10">
<c-col :span="20">
<el-form-item label="Name" prop="recgrp.usrsec.nam">
<c-input disabled v-model="model.recgrp.usrsec.nam" maxlength="40" placeholder="请输入Name"></c-input>
</el-form-item>
</c-col>
<c-col :span="10">
<el-form-item label="Drag Drop Sender" prop="recpan.recget.sdamod.dadsnd" label-width="120px">
<c-input disabled v-model="model.recpan.recget.sdamod.dadsnd" placeholder="请输入Drag Drop Sender">
</c-input>
</el-form-item>
</c-col>
</c-row>
</c-col>
</c-row>
......@@ -95,9 +87,13 @@
<c-checkbox disabled v-model="model.recgrp.usrsec.dsgflg">Designer</c-checkbox>
</el-form-item>
</c-col>
<c-col :span="10">
<el-form-item label="" prop="recgrp.usrsec.admflg" label-width="20">
<c-checkbox disabled v-model="model.recgrp.usrsec.admflg">Security Administrator</c-checkbox>
<el-form-item v-if="(model.recgrp.usrsec.dsgflg=='X' && model.recgrp.rec.extkey.length > 3) ||(model.recgrp.usrsec.td2usr!='')" label="Short ID" prop="recgrp.usrsec.td2usr">
<c-input v-model="model.recgrp.usrsec.td2usr" maxlength="3"
:disabled="(!!model.recgrp.usrsec.dsgflg && model.recgrp.rec.extkey.length > 3) ? false : true"
placeholder="请输入Short User-Id for ModCodes">
</c-input>
</el-form-item>
</c-col>
</c-row>
......@@ -119,11 +115,8 @@
<c-col :span="11" :offset="1">
<c-row>
<c-col :span="20">
<el-form-item label="TD2USRLAB" prop="recgrp.usrsec.td2usr">
<c-input v-model="model.recgrp.usrsec.td2usr" maxlength="3"
:disabled="(!!model.recgrp.usrsec.dsgflg && model.recgrp.rec.extkey.length > 3) ? false : true"
placeholder="请输入Short User-Id for ModCodes">
</c-input>
<el-form-item label="" prop="recgrp.usrsec.admflg" >
<c-checkbox disabled v-model="model.recgrp.usrsec.admflg">Security Administrator</c-checkbox>
</el-form-item>
</c-col>
</c-row>
......@@ -337,8 +330,18 @@
<c-row class="infrow">
<c-col :span="22" :offset="1">
<c-table :border="true" :list="model.recpan.prtmod.prtgrd" style="text-align:center">
<el-table-column prop="tef" label="Technical Form" width="auto"></el-table-column>
<el-table-column prop="getprt" label="Get Printer from:" width="auto"></el-table-column>
<el-table-column prop="tef" label="Technical Form" width="auto">
<template slot-scope="scope">
<c-select disabled v-model="scope.row.tef" :code="codes.tef">
</c-select>
</template>
</el-table-column>
<el-table-column prop="getprt" label="Get Printer from:" width="auto">
<template slot-scope="scope">
<c-select disabled v-model="scope.row.getprt" :code="codes.getprt">
</c-select>
</template>
</el-table-column>
<el-table-column prop="prt" label="Printer" width="auto"></el-table-column>
<el-table-column prop="bin" label="Paperbin" width="auto"></el-table-column>
<el-table-column prop="bin2" label="Bin for 2nd Page" width="auto"></el-table-column>
......
......@@ -2,8 +2,8 @@
<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>
<c-button disabled size="small" type="primary">全空</c-button>
<c-button disabled size="small" type="primary">全选</c-button>
</div>
<c-row class="infrow" style="margin-top: 50px;">
......@@ -12,9 +12,21 @@
<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="usracc" label="Related Client" width="auto">
<template slot-scope="scope">
<c-checkbox disabled v-model="scope.row.usracc"></c-checkbox>
</template>
</el-table-column>
<el-table-column prop="usrdef" label="Default Client" width="auto">
<template slot-scope="scope">
<c-checkbox disabled v-model="scope.row.usrdef"></c-checkbox>
</template>
</el-table-column>
<el-table-column prop="assignflg" label="是否参与任务分配" width="auto">
<template slot-scope="scope">
<c-checkbox disabled v-model="scope.row.assignflg"></c-checkbox>
</template>
</el-table-column>
<el-table-column prop="objlst" label="可处理业务品种" width="auto"></el-table-column>
</c-table>
</c-col>
......
<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">
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick">
<el-tab-pane label="User Profile" name="usrp0">
<c-content>
......@@ -21,7 +21,9 @@
<el-tab-pane label="Related clients" name="usrp3">
<c-content>
<m-usrp3 :model="model" :codes="codes"/>
</c-content>
</el-tab-pane>
</c-tabs>
</el-form>
......@@ -75,8 +77,22 @@ export default {
}
},
methods:{
tabClick(){
myTabClick(tab) {
this.tabClick(tab);
let name = tab.name;
let rulePath;
if (name === "ubrp") {
rulePath = "recpan.ubrp";
}
if (!!rulePath) {
this.executeRule(rulePath).then((res) => {
if (res.respCode == SUCCESS) {
this.updateModel(res.data);
}
});
}
},
},
created:async function(){
console.log("进入dbiusr交易");
......
......@@ -126,7 +126,7 @@ export default {
//{ inifrm: "clttra", ininam: "光票托收", pntmiu: "10" },
{ inifrm: "10", ininam: "参数管理", pntmiu: "" },
{ inifrm: "dbiusr", ininam: "Dbiusr", pntmiu: "10" },
//{ inifrm: "dbibch", ininam: "Dbibch", 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