Commit 384116d1 by nanrui

cnysel优化以及eadinf、eadadd,eadame初始化(包括路由侧边栏码表修改)。

parent 397a4bf3
......@@ -1669,6 +1669,12 @@ const CodeTable = {
{ label: "非居民企业账户之间资金划转", value: "2" },
{ label: "境外同业跨境现钞支取", value: "4" },
],
relation: [
{ label: "对方是境外联属机构,即双方有共同母公司,但相互持有表决权<10%或相互不持有表决权", value: "3" },
{ label: "对方是境外直接投资企业,即10%及以上的境外分支机构、子机构、联营机构或合营机构", value: "2" },
{ label: "对方是境外直接投资者,即持有本机构/被代理居民机构/委托人表决权≥10%", value: "1" },
{ label: "对方与本机构/被代理居民机构/委托人无关联关系、关系未知,或两机构均处于中国境内", value: "4" },
],
camttranstype: [
{ label: "同名划转", value: "1" },
{ label: "国际结算", value: "2" },
......@@ -1764,6 +1770,13 @@ const CodeTable = {
{ label: "国内外汇贷款(出口)", value: "F" },
{ label: "国内外汇贷款(进口)", value: "E" },
],
cfatyp1: [
{ label: "全部", value: "ALL" },
{ label: "外债海外代付", value: "EAD" },
{ label: "外债远期信用证(含即期单证相符)", value: "EAF" },
{ label: "对外担保", value: "EBA" },
{ label: "国内外汇贷款", value: "ECA" },
],
chadet: [
{ label: "其他", value: "O" },
{ label: "我们的费用由国外承担", value: "B" },
......@@ -1990,8 +2003,8 @@ const CodeTable = {
{ label: "2111跨境支出信息", value: "2" },
{ label: "2107境外主体之间资金划转", value: "4" },
{ label: "2106银行跟单结算及表外融资业务", value: "3" },
{ label: "全部", value: "6" },
{ label: "2101跨境收入信息", value: "1" },
{ label: "全部", value: "6" },
],
codtyp: [
{ label: "常量", value: "CONST" },
......@@ -4847,6 +4860,11 @@ const CodeTable = {
{ label: "08350012 中国光大银行北京分行", value: "08350012" },
{ label: "08357113 LM ADD", value: "08357113" },
],
ownextkey4: [
{ label: "<全部>", value: "<ALL>" },
{ label: "08350012 中国光大银行北京分行", value: "08350012" },
{ label: "08357113 LM ADD", value: "08357113" },
],
ownexttyp: [
{ label: "手工录入", value: "OE" },
{ label: "分行", value: "OB" },
......@@ -5863,6 +5881,14 @@ const CodeTable = {
{ label: "正在配置", value: "C" },
{ label: "从未启动", value: "" },
],
// sta1: [
// { label: "待发送", value: "W" },
// { label: "已发送", value: "S" },
// { label: "已撤销", value: "D" },
// { label: "已删除", value: "G" },
// { label: "已作废", value: "P" },
// { label: "待修改", value: "E" },
// ],
staflg: [
{ label: "待申报", value: "0" },
{ label: "待修改", value: "E" },
......@@ -5874,6 +5900,14 @@ const CodeTable = {
{ label: "已删除", value: "G" },
{ label: "待确认", value: "P" },
],
staflg1: [
{ label: "全部", value: "" },
{ label: "待发送", value: "W" },
{ label: "已发送", value: "S" },
{ label: "已撤销", value: "D" },
{ label: "已删除", value: "G" },
{ label: "已修改", value: "E" },
],
statisticsort: [
{ label: "按收益汇总", value: "f" },
{ label: "国内信用证保证金和额度", value: "m" },
......
......@@ -5,6 +5,7 @@ import Utils from "~/utils"
*/
let checkObj = {
"cnytyp" :null,
"cnyselp.cnylib.sforeigncountrycode" :null,
}
for (const key in checkObj) {
......
......@@ -7,9 +7,10 @@ import Utils from "~/utils/index"
export default {
"frmdat" :Utils.defaultFunction,
"cnystm" :Utils.defaultFunction,
"ownextkey" :Utils.defaultFunction,
"cnytyp" :Utils.defaultFunction,
"tildat" :Utils.defaultFunction,
"cnyselp.cnylib.sforeigncountrycode" :Utils.defaultFunction,
"cnystm" :Utils.defaultFunction,
}
//你可以添加自动default处理
......@@ -61,5 +61,53 @@ export default {
this.model.tildat = ""
this.model.ownextkey = ""
this.stmData.data = ""
}
},
async onButprt(){
let rtnmsg = await this.executeRule("butprt")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onDtlbut(){
let rtnmsg = await this.executeRule("dtlbut")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onExi(){
let rtnmsg = await this.executeRule("exi")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onLibctySelbut1(){
let rtnmsg = await this.executeRule("libcty.selbut1")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
}
\ No newline at end of file
......@@ -19,4 +19,73 @@ export default {
],
"cnyselp.cnylib.spk":[
{type: "string", required: false, message: "必输项"},
{max: 20,message:"长度不能超过20"}
],
"cnyselp.cnylib.sbanktrano":[
{type: "string", required: false, message: "必输项"},
{max: 22,message:"长度不能超过22"}
],
"cnyselp.cnylib.sbankorgcode":[
{type: "string", required: false, message: "必输项"},
{max: 12,message:"长度不能超过12"}
],
"cnyselp.sbankname":[
{type: "string", required: false, message: "必输项"},
{max: 80,message:"长度不能超过80"}
],
"cnyselp.cnylib.sforbankswiftbic":[
{type: "string", required: false, message: "必输项"},
{max: 11,message:"长度不能超过11"}
],
"cnyselp.sorgname":[
{type: "string", required: false, message: "必输项"},
{max: 80,message:"长度不能超过80"}
],
"cnyselp.cnylib.sorgcode":[
{type: "string", required: false, message: "必输项"},
{max: 18,message:"长度不能超过18"}
],
"cnyselp.sforeignorgname":[
{type: "string", required: false, message: "必输项"},
{max: 80,message:"长度不能超过80"}
],
"cnyselp.cnylib.sforeigncountrycode":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"cnyselp.cnylib.doccurdate":[
{type: "date", required: false, message: "输入正确的日期"}
],
"cnyselp.cnylib.denddate":[
{type: "date", required: false, message: "输入正确的日期"}
],
"cnyselp.cnylib.dcreditenddate":[
{type: "date", required: false, message: "输入正确的日期"}
],
"cnyselp.cnylib.famt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"cnyselp.cnylib.dexchangedate":[
{type: "date", required: false, message: "输入正确的日期"}
],
"cnyselp.cnylib.fexchangeamt":[
{type: "string", required: false, message: "必输项"},
{max: 20,message:"长度不能超过20"}
],
"cnyselp.cnylib.dexchangeenddate":[
{type: "date", required: false, message: "输入正确的日期"}
],
"cnyselp.saddwordlib":[
{type: "string", required: false, message: "必输项"},
{max: 80,message:"长度不能超过80"}
],
}
\ No newline at end of file
......@@ -10,6 +10,31 @@ export default class Cnysel{
tildat:"", // Until .tildat
ownextkey:"", // Initial Code .ownextkey
cnystm:"", // Selection .cnystm
cnyselp:{
cnylib:{
spk:"", // 业务主键 .cnyselp.cnylib.spk
sbankorgcode:"", // 银行机构代码 .cnyselp.cnylib.sbankorgcode
stransattr:"", // 业务属性 .cnyselp.cnylib.stransattr
stranstype:"", // 业务类型 .cnyselp.cnylib.stranstype
sforbankswiftbic:"", // 境外对手行代码 .cnyselp.cnylib.sforbankswiftbic
sorgcode:"", // 境内企业机构代码 .cnyselp.cnylib.sorgcode
sforeigncountrycode:"", // 境外企业国别地区代码 .cnyselp.cnylib.sforeigncountrycode
doccurdate:"", // 业务发生日期 .cnyselp.cnylib.doccurdate
denddate:"", // 业务到期日 .cnyselp.cnylib.denddate
dcreditenddate:"", // 信用证到期日 .cnyselp.cnylib.dcreditenddate
famt:"", // 金额 .cnyselp.cnylib.famt
dexchangedate:"", // 承兑日期 .cnyselp.cnylib.dexchangedate
fexchangeamt:"", // 承兑金额 .cnyselp.cnylib.fexchangeamt
dexchangeenddate:"", // 承兑到期日 .cnyselp.cnylib.dexchangeenddate
sbanktrano:"", // 银行业务编号 .cnyselp.cnylib.sbanktrano
stermtype:"", // 期限条件 .cnyselp.cnylib.stermtype
currencycode:"", // 币种 .cnyselp.cnylib.currencycode
},
sorgname:"", // 境内企业名称 .cnyselp.sorgname
sforeignorgname:"", // 境外企业名称 .cnyselp.sforeignorgname
saddwordlib:"", // 交易附言 .cnyselp.saddwordlib
sbankname:"", // 银行机构名称 .cnyselp.sbankname
},
pageId: "" // ctx的key
}
}
......
import Utils from "~/utils"
/**
* Eadadd Check规则
*/
let checkObj = {
"recgrp.bas.appname" :null,
"recgrp.bas.crehqcode" :null,
"cfabut.ownextkey" :null,
"cfabut.newdcl" :null,
"eblmod.ebl.reldat" :null,
"recgrp.bas.creditorname" :null,
"recgrp.bas.actiontype" :null,
"eblmod.ebl.resamt" :null,
"recgrp.bas.anninrate" :null,
"recgrp.bas.contractcurr" :null,
"recgrp.bas.maturity" :null,
"recgrp.bas.creditornamen" :null,
"recgrp.bas.valuedate" :null,
"recgrp.bas.creditorcode" :null,
"cfabut.newvrf" :null,
"recgrp.bas.debtype" :null,
"recgrp.bas.opercode" :null,
"recgrp.bas.appcode" :null,
"recgrp.bas.creditortype" :null,
"recgrp.bas.exdebtcode" :null,
"recgrp.bas.debtorcode" :null,
"recgrp.bas.floatrate" :null,
"recgrp.bas.spapfeboindex" :null,
"recgrp.bas.actiondesc" :null,
"recgrp.bas.relation" :null,
"recgrp.bas.contractamount" :null,
}
for (const key in checkObj) {
if (Object.hasOwnProperty.call(checkObj, key)) {
checkObj[key] = checkObj[key] ? checkObj[key] : Utils.reflectCheck(key)
}
}
export default checkObj
/**
* Eadadd Default规则
*/
import Api from "~/service/Api";
import Utils from "~/utils/index"
export default {
"cfabut.basflg" :Utils.defaultFunction,
"cfabut.vrfflg" :Utils.defaultFunction,
"cfabut.dclflg" :Utils.defaultFunction,
"recgrp.bas.actiontype" :Utils.defaultFunction,
"recp.pubp.acp" :Utils.defaultFunction,
"recgrp.bas.creditortype" :Utils.defaultFunction,
"recgrp.bas.opercode" :Utils.defaultFunction,
"cfabut.ownextkey" :Utils.defaultFunction,
"recgrp.bas.crehqcode" :Utils.defaultFunction,
}
//你可以添加自动default处理
import Api from "~/service/Api"
import Utils from "~/utils"
export default {
async onCfabutSav(){
let rtnmsg = await this.executeRule("cfabut.sav")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onCfabutMod(){
let rtnmsg = await this.executeRule("cfabut.mod")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onCfabutChk(){
let rtnmsg = await this.executeRule("cfabut.chk")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onCfabutDel(){
let rtnmsg = await this.executeRule("cfabut.del")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onCutpErr(){
let rtnmsg = await this.executeRule("cutp.err")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onCfabutExt(){
let rtnmsg = await this.executeRule("cfabut.ext")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onCfabutSav(){
let rtnmsg = await this.executeRule("cfabut.sav")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onCfabutChk(){
let rtnmsg = await this.executeRule("cfabut.chk")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onCutpErr(){
let rtnmsg = await this.executeRule("cutp.err")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onCouselCrehqselbut(){
let rtnmsg = await this.executeRule("cousel.crehqselbut")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onCouselOperselbut(){
let rtnmsg = await this.executeRule("cousel.operselbut")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onCfabutExt(){
let rtnmsg = await this.executeRule("cfabut.ext")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
}
\ No newline at end of file
export default {
"eblmod.ebl.reldat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"eblmod.ebl.resamt":[
{type: "number", required: false, message: "必输项"},
{max: 12,message:"整数位不能超过8位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"cfabut.newdcl":[
{type: "string", required: false, message: "必输项"},
{max: 1,message:"长度不能超过1"}
],
"cfabut.newvrf":[
{type: "string", required: false, message: "必输项"},
{max: 1,message:"长度不能超过1"}
],
"recgrp.bas.exdebtcode":[
{type: "string", required: false, message: "必输项"},
{max: 28,message:"长度不能超过28"}
],
"recgrp.bas.actiondesc":[
{type: "string", required: true, message: "必输项"},
{max: 32,message:"长度不能超过32"}
],
"recgrp.bas.debtorcode":[
{type: "string", required: false, message: "必输项"},
{max: 12,message:"长度不能超过12"}
],
"recgrp.bas.valuedate":[
{type: "date", required: false, message: "输入正确的日期"}
],
"recgrp.bas.maturity":[
{type: "date", required: false, message: "输入正确的日期"}
],
"recgrp.bas.contractamount":[
{type: "number", required: false, message: "必输项"},
{max: 22,message:"整数位不能超过19位"},
{pattern: /(^\d+$)|(^\.\d{1,2}$)|(^\d+\.\d{1,2}$)/, message: "小数位不能超过2位" }
],
"recgrp.bas.anninrate":[
{type: "string", required: false, message: "必输项"},
{max: 13,message:"长度不能超过13"}
],
"recgrp.bas.creditorcode":[
{type: "string", required: false, message: "必输项"},
{max: 11,message:"长度不能超过11"}
],
"recgrp.bas.creditorname":[
{type: "string", required: false, message: "必输项"},
{max: 128,message:"长度不能超过128"}
],
"recgrp.bas.creditornamen":[
{type: "string", required: false, message: "必输项"},
{max: 128,message:"长度不能超过128"}
],
"recgrp.bas.crehqcode":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"recgrp.bas.opercode":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"recgrp.bas.appcode":[
{type: "string", required: false, message: "必输项"},
{max: 18,message:"长度不能超过18"}
],
"recgrp.bas.inltcabuscode":[
{type: "string", required: false, message: "必输项"},
{max: 32,message:"长度不能超过32"}
],
"recgrp.bas.appname":[
{type: "string", required: false, message: "必输项"},
{max: 128,message:"长度不能超过128"}
],
"recgrp.bas.remark":[
{type: "string", required: true, message: "必输项"},
{max: 31,message:"长度不能超过31"}
],
}
\ No newline at end of file
import Api from "~/service/Api"
import Pts from "../Common/Pts"
export default class Eadadd{
constructor () {
this.data = {
cfabut:{
vrflab:"", // DCLFLG LABEL .cfabut.vrflab
dcllab:"", // DCLFLG LABEL .cfabut.dcllab
basflg:"", // 签约信息 .cfabut.basflg
dclflg:"", // 变动信息 .cfabut.dclflg
ownextkey:"", // 业务所属机构 .cfabut.ownextkey
newdclnum:"", // 新增DCL数目 .cfabut.newdclnum
newvrfnum:"", // 新增VRF数目 .cfabut.newvrfnum
addnew:"", // 新增接口数据 .cfabut.addnew
newdcl:"", // DCL数目 .cfabut.newdcl
newvrf:"", // VRF数目 .cfabut.newvrf
vrfflg:"", // 履约信息 .cfabut.vrfflg
},
eblmod:{
ebl:{
reldat:"", // 授权日期 .eblmod.ebl.reldat
resamt:"", // 代付还代利息 .eblmod.ebl.resamt
},
},
recgrp:{
bas:{
appname:"", // 申请人名称 .recgrp.bas.appname
creditorcode:"", // 债权人代码 .recgrp.bas.creditorcode
creditortype:"", // 债权人类型代码 .recgrp.bas.creditortype
creditorname:"", // 债权人中文名称 .recgrp.bas.creditorname
creditornamen:"", // 债权人英文名称 .recgrp.bas.creditornamen
crehqcode:"", // 债权人总部所在国家(地区)代码 .recgrp.bas.crehqcode
opercode:"", // 债权人经营地所在国家(地区)代码 .recgrp.bas.opercode
exdebtcode:"", // 外债编号 .recgrp.bas.exdebtcode
actiontype:"", // 操作类型 .recgrp.bas.actiontype
debtorcode:"", // 债务人代码 .recgrp.bas.debtorcode
debtype:"", // 债务类型 .recgrp.bas.debtype
valuedate:"", // 起息日 .recgrp.bas.valuedate
contractcurr:"", // 签约金额 .recgrp.bas.contractcurr
actiondesc:"", // 删除原因 .recgrp.bas.actiondesc
maturity:"", // 到期日 .recgrp.bas.maturity
spapfeboindex:"", // 是否不纳入跨境融资风险加权余额计算 .recgrp.bas.spapfeboindex
contractamount:"", // 签约金额 .recgrp.bas.contractamount
anninrate:"", // 年化利率值 .recgrp.bas.anninrate
floatrate:"", // 是否浮动利率 .recgrp.bas.floatrate
appcode:"", // 申请人代码 .recgrp.bas.appcode
inltcabuscode:"", // 信用证承兑业务参号 .recgrp.bas.inltcabuscode
remark:"", // 备注 .recgrp.bas.remark
relation:"", // 对方与本机构的关系 .recgrp.bas.relation
},
},
recp:{
pubp:{
creditcodwarn:"", // CREDITORCODE WARNING .recp.pubp.creditcodwarn
acp:"", // 确认 .recp.pubp.acp
},
dclp: {
changeno: ""
}
},
pageId: "" // ctx的key
}
}
}
\ No newline at end of file
import Utils from "~/utils"
/**
* Eadame Check规则
*/
let checkObj = {
"recgrp.bas.appname" :null,
"recgrp.bas.crehqcode" :null,
"cfabut.ownextkey" :null,
"cfabut.newdcl" :null,
"eblmod.ebl.reldat" :null,
"recgrp.bas.creditorname" :null,
"recgrp.bas.actiontype" :null,
"recgrp.bas.anninrate" :null,
"recgrp.bas.contractcurr" :null,
"recgrp.bas.maturity" :null,
"recgrp.bas.creditornamen" :null,
"recgrp.bas.valuedate" :null,
"recgrp.bas.creditorcode" :null,
"cfabut.newvrf" :null,
"recgrp.bas.debtype" :null,
"recgrp.bas.opercode" :null,
"recgrp.bas.appcode" :null,
"recgrp.bas.creditortype" :null,
"recgrp.bas.exdebtcode" :null,
"recgrp.bas.debtorcode" :null,
"recgrp.bas.floatrate" :null,
"recgrp.bas.spapfeboindex" :null,
"recgrp.bas.actiondesc" :null,
"recgrp.bas.relation" :null,
"recgrp.bas.contractamount" :null,
}
for (const key in checkObj) {
if (Object.hasOwnProperty.call(checkObj, key)) {
checkObj[key] = checkObj[key] ? checkObj[key] : Utils.reflectCheck(key)
}
}
export default checkObj
/**
* Eadame Default规则
*/
import Api from "~/service/Api";
import Utils from "~/utils/index"
export default {
"cfabut.basflg" :Utils.defaultFunction,
"cfabut.vrfflg" :Utils.defaultFunction,
"cfabut.dclflg" :Utils.defaultFunction,
"recgrp.bas.actiontype" :Utils.defaultFunction,
"recp.pubp.acp" :Utils.defaultFunction,
"recgrp.bas.creditortype" :Utils.defaultFunction,
"recgrp.bas.opercode" :Utils.defaultFunction,
"recgrp.bas.crehqcode" :Utils.defaultFunction,
}
//你可以添加自动default处理
import Api from "~/service/Api"
import Utils from "~/utils"
export default {
async onCfabutSav(){
let rtnmsg = await this.executeRule("cfabut.sav")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onCfabutMod(){
let rtnmsg = await this.executeRule("cfabut.mod")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onCfabutChk(){
let rtnmsg = await this.executeRule("cfabut.chk")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onCfabutDel(){
let rtnmsg = await this.executeRule("cfabut.del")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onCutpErr(){
let rtnmsg = await this.executeRule("cutp.err")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onCfabutExt(){
let rtnmsg = await this.executeRule("cfabut.ext")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onCfabutSav(){
let rtnmsg = await this.executeRule("cfabut.sav")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onCfabutChk(){
let rtnmsg = await this.executeRule("cfabut.chk")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onCutpErr(){
let rtnmsg = await this.executeRule("cutp.err")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onCouselCrehqselbut(){
let rtnmsg = await this.executeRule("cousel.crehqselbut")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onCouselOperselbut(){
let rtnmsg = await this.executeRule("cousel.operselbut")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onCfabutExt(){
let rtnmsg = await this.executeRule("cfabut.ext")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
}
\ No newline at end of file
export default {
"eblmod.ebl.reldat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"eblmod.ebl.resamt":[
{type: "number", required: false, message: "必输项"},
{max: 12,message:"整数位不能超过8位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"cfabut.newdcl":[
{type: "string", required: false, message: "必输项"},
{max: 1,message:"长度不能超过1"}
],
"cfabut.newvrf":[
{type: "string", required: false, message: "必输项"},
{max: 1,message:"长度不能超过1"}
],
"recgrp.bas.exdebtcode":[
{type: "string", required: false, message: "必输项"},
{max: 28,message:"长度不能超过28"}
],
"recgrp.bas.actiondesc":[
{type: "string", required: true, message: "必输项"},
{max: 32,message:"长度不能超过32"}
],
"recgrp.bas.debtorcode":[
{type: "string", required: false, message: "必输项"},
{max: 12,message:"长度不能超过12"}
],
"recgrp.bas.valuedate":[
{type: "date", required: false, message: "输入正确的日期"}
],
"recgrp.bas.maturity":[
{type: "date", required: false, message: "输入正确的日期"}
],
"recgrp.bas.contractamount":[
{type: "number", required: false, message: "必输项"},
{max: 22,message:"整数位不能超过19位"},
{pattern: /(^\d+$)|(^\.\d{1,2}$)|(^\d+\.\d{1,2}$)/, message: "小数位不能超过2位" }
],
"recgrp.bas.anninrate":[
{type: "string", required: false, message: "必输项"},
{max: 13,message:"长度不能超过13"}
],
"recgrp.bas.creditorcode":[
{type: "string", required: false, message: "必输项"},
{max: 11,message:"长度不能超过11"}
],
"recgrp.bas.creditorname":[
{type: "string", required: false, message: "必输项"},
{max: 128,message:"长度不能超过128"}
],
"recgrp.bas.creditornamen":[
{type: "string", required: false, message: "必输项"},
{max: 128,message:"长度不能超过128"}
],
"recgrp.bas.crehqcode":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"recgrp.bas.opercode":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"recgrp.bas.appcode":[
{type: "string", required: false, message: "必输项"},
{max: 18,message:"长度不能超过18"}
],
"recgrp.bas.inltcabuscode":[
{type: "string", required: false, message: "必输项"},
{max: 32,message:"长度不能超过32"}
],
"recgrp.bas.appname":[
{type: "string", required: false, message: "必输项"},
{max: 128,message:"长度不能超过128"}
],
"recgrp.bas.remark":[
{type: "string", required: true, message: "必输项"},
{max: 31,message:"长度不能超过31"}
],
}
\ No newline at end of file
import Api from "~/service/Api"
import Pts from "../Common/Pts"
export default class Eadame{
constructor () {
this.data = {
cfabut:{
vrflab:"", // DCLFLG LABEL .cfabut.vrflab
dcllab:"", // DCLFLG LABEL .cfabut.dcllab
basflg:"", // 签约信息 .cfabut.basflg
dclflg:"", // 变动信息 .cfabut.dclflg
ownextkey:"", // 业务所属机构 .cfabut.ownextkey
newdclnum:"", // 新增DCL数目 .cfabut.newdclnum
newvrfnum:"", // 新增VRF数目 .cfabut.newvrfnum
addnew:"", // 新增接口数据 .cfabut.addnew
newdcl:"", // DCL数目 .cfabut.newdcl
newvrf:"", // VRF数目 .cfabut.newvrf
vrfflg:"", // 履约信息 .cfabut.vrfflg
},
eblmod:{
ebl:{
reldat:"", // 授权日期 .eblmod.ebl.reldat
resamt:"", // 代付还代利息 .eblmod.ebl.resamt
},
},
recgrp:{
bas:{
appname:"", // 申请人名称 .recgrp.bas.appname
creditorcode:"", // 债权人代码 .recgrp.bas.creditorcode
creditortype:"", // 债权人类型代码 .recgrp.bas.creditortype
creditorname:"", // 债权人中文名称 .recgrp.bas.creditorname
creditornamen:"", // 债权人英文名称 .recgrp.bas.creditornamen
crehqcode:"", // 债权人总部所在国家(地区)代码 .recgrp.bas.crehqcode
opercode:"", // 债权人经营地所在国家(地区)代码 .recgrp.bas.opercode
exdebtcode:"", // 外债编号 .recgrp.bas.exdebtcode
actiontype:"", // 操作类型 .recgrp.bas.actiontype
debtorcode:"", // 债务人代码 .recgrp.bas.debtorcode
debtype:"", // 债务类型 .recgrp.bas.debtype
valuedate:"", // 起息日 .recgrp.bas.valuedate
contractcurr:"", // 签约金额 .recgrp.bas.contractcurr
actiondesc:"", // 删除原因 .recgrp.bas.actiondesc
maturity:"", // 到期日 .recgrp.bas.maturity
spapfeboindex:"", // 是否不纳入跨境融资风险加权余额计算 .recgrp.bas.spapfeboindex
contractamount:"", // 签约金额 .recgrp.bas.contractamount
anninrate:"", // 年化利率值 .recgrp.bas.anninrate
floatrate:"", // 是否浮动利率 .recgrp.bas.floatrate
appcode:"", // 申请人代码 .recgrp.bas.appcode
inltcabuscode:"", // 信用证承兑业务参号 .recgrp.bas.inltcabuscode
remark:"", // 备注 .recgrp.bas.remark
relation:"", // 对方与本机构的关系 .recgrp.bas.relation
},
},
recp:{
pubp:{
creditcodwarn:"", // CREDITORCODE WARNING .recp.pubp.creditcodwarn
acp:"", // 确认 .recp.pubp.acp
},
dclp: {
exdebtcode: ""
}
},
pageId: "" // ctx的key
}
}
}
\ No newline at end of file
import Utils from "~/utils"
/**
* Eadinf Check规则
*/
let checkObj = {
"recgrp.bas.appname" :null,
"recgrp.bas.crehqcode" :null,
"cfabut.ownextkey" :null,
"cfabut.newdcl" :null,
"eblmod.ebl.reldat" :null,
"recgrp.bas.creditorname" :null,
"recgrp.bas.actiontype" :null,
"recgrp.bas.anninrate" :null,
"recgrp.bas.contractcurr" :null,
"recgrp.bas.maturity" :null,
"recgrp.bas.creditornamen" :null,
"recgrp.bas.valuedate" :null,
"recgrp.bas.creditorcode" :null,
"cfabut.newvrf" :null,
"recgrp.bas.debtype" :null,
"recgrp.bas.opercode" :null,
"recgrp.bas.appcode" :null,
"recgrp.bas.creditortype" :null,
"recgrp.bas.exdebtcode" :null,
"recgrp.bas.debtorcode" :null,
"recgrp.bas.floatrate" :null,
"recgrp.bas.spapfeboindex" :null,
"recgrp.bas.actiondesc" :null,
"recgrp.bas.relation" :null,
"recgrp.bas.contractamount" :null,
}
for (const key in checkObj) {
if (Object.hasOwnProperty.call(checkObj, key)) {
checkObj[key] = checkObj[key] ? checkObj[key] : Utils.reflectCheck(key)
}
}
export default checkObj
/**
* Eadinf Default规则
*/
import Api from "~/service/Api";
import Utils from "~/utils/index"
export default {
"cfabut.dclflg" :Utils.defaultFunction,
"cfabut.basflg" :Utils.defaultFunction,
"recgrp.bas.actiontype" :Utils.defaultFunction,
"recp.pubp.acp" :Utils.defaultFunction,
"recgrp.bas.creditortype" :Utils.defaultFunction,
"recgrp.bas.opercode" :Utils.defaultFunction,
"recgrp.bas.crehqcode" :Utils.defaultFunction,
}
//你可以添加自动default处理
import Api from "~/service/Api"
import Utils from "~/utils"
export default {
async onCfabutSav(){
let rtnmsg = await this.executeRule("cfabut.sav")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onCfabutMod(){
let rtnmsg = await this.executeRule("cfabut.mod")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onCfabutChk(){
let rtnmsg = await this.executeRule("cfabut.chk")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onCfabutDel(){
let rtnmsg = await this.executeRule("cfabut.del")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onCutpErr(){
let rtnmsg = await this.executeRule("cutp.err")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onCfabutExt(){
let rtnmsg = await this.executeRule("cfabut.ext")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onCfabutSav(){
let rtnmsg = await this.executeRule("cfabut.sav")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onCfabutChk(){
let rtnmsg = await this.executeRule("cfabut.chk")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onCutpErr(){
let rtnmsg = await this.executeRule("cutp.err")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onCouselCrehqselbut(){
let rtnmsg = await this.executeRule("cousel.crehqselbut")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onCouselOperselbut(){
let rtnmsg = await this.executeRule("cousel.operselbut")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onCfabutExt(){
let rtnmsg = await this.executeRule("cfabut.ext")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
}
\ No newline at end of file
export default {
"eblmod.ebl.reldat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"eblmod.ebl.resamt":[
{type: "number", required: false, message: "必输项"},
{max: 12,message:"整数位不能超过8位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"cfabut.newdcl":[
{type: "string", required: false, message: "必输项"},
{max: 1,message:"长度不能超过1"}
],
"cfabut.newvrf":[
{type: "string", required: false, message: "必输项"},
{max: 1,message:"长度不能超过1"}
],
"recgrp.bas.exdebtcode":[
{type: "string", required: false, message: "必输项"},
{max: 28,message:"长度不能超过28"}
],
"recgrp.bas.actiondesc":[
{type: "string", required: true, message: "必输项"},
{max: 32,message:"长度不能超过32"}
],
"recgrp.bas.debtorcode":[
{type: "string", required: false, message: "必输项"},
{max: 12,message:"长度不能超过12"}
],
"recgrp.bas.valuedate":[
{type: "date", required: false, message: "输入正确的日期"}
],
"recgrp.bas.maturity":[
{type: "date", required: false, message: "输入正确的日期"}
],
"recgrp.bas.contractamount":[
{type: "number", required: false, message: "必输项"},
{max: 22,message:"整数位不能超过19位"},
{pattern: /(^\d+$)|(^\.\d{1,2}$)|(^\d+\.\d{1,2}$)/, message: "小数位不能超过2位" }
],
"recgrp.bas.anninrate":[
{type: "string", required: false, message: "必输项"},
{max: 13,message:"长度不能超过13"}
],
"recgrp.bas.creditorcode":[
{type: "string", required: false, message: "必输项"},
{max: 11,message:"长度不能超过11"}
],
"recgrp.bas.creditorname":[
{type: "string", required: false, message: "必输项"},
{max: 128,message:"长度不能超过128"}
],
"recgrp.bas.creditornamen":[
{type: "string", required: false, message: "必输项"},
{max: 128,message:"长度不能超过128"}
],
"recgrp.bas.crehqcode":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"recgrp.bas.opercode":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"recgrp.bas.appcode":[
{type: "string", required: false, message: "必输项"},
{max: 18,message:"长度不能超过18"}
],
"recgrp.bas.inltcabuscode":[
{type: "string", required: false, message: "必输项"},
{max: 32,message:"长度不能超过32"}
],
"recgrp.bas.appname":[
{type: "string", required: false, message: "必输项"},
{max: 128,message:"长度不能超过128"}
],
"recgrp.bas.remark":[
{type: "string", required: true, message: "必输项"},
{max: 31,message:"长度不能超过31"}
],
}
\ No newline at end of file
import Api from "~/service/Api"
import Pts from "../Common/Pts"
export default class Eadinf{
constructor () {
this.data = {
cfabut:{
vrflab:"", // DCLFLG LABEL .cfabut.vrflab
dcllab:"", // DCLFLG LABEL .cfabut.dcllab
basflg:"", // 签约信息 .cfabut.basflg
dclflg:"", // 变动信息 .cfabut.dclflg
ownextkey:"", // 业务所属机构 .cfabut.ownextkey
newdclnum:"", // 新增DCL数目 .cfabut.newdclnum
newvrfnum:"", // 新增VRF数目 .cfabut.newvrfnum
addnew:"", // 新增接口数据 .cfabut.addnew
newdcl:"", // DCL数目 .cfabut.newdcl
newvrf:"", // VRF数目 .cfabut.newvrf
vrfflg:"", // 履约信息 .cfabut.vrfflg
},
eblmod:{
ebl:{
reldat:"", // 授权日期 .eblmod.ebl.reldat
resamt:"", // 代付还代利息 .eblmod.ebl.resamt
},
},
recgrp:{
bas:{
appname:"", // 申请人名称 .recgrp.bas.appname
creditorcode:"", // 债权人代码 .recgrp.bas.creditorcode
creditortype:"", // 债权人类型代码 .recgrp.bas.creditortype
creditorname:"", // 债权人中文名称 .recgrp.bas.creditorname
creditornamen:"", // 债权人英文名称 .recgrp.bas.creditornamen
crehqcode:"", // 债权人总部所在国家(地区)代码 .recgrp.bas.crehqcode
opercode:"", // 债权人经营地所在国家(地区)代码 .recgrp.bas.opercode
exdebtcode:"", // 外债编号 .recgrp.bas.exdebtcode
actiontype:"", // 操作类型 .recgrp.bas.actiontype
debtorcode:"", // 债务人代码 .recgrp.bas.debtorcode
debtype:"", // 债务类型 .recgrp.bas.debtype
valuedate:"", // 起息日 .recgrp.bas.valuedate
contractcurr:"", // 签约金额 .recgrp.bas.contractcurr
actiondesc:"", // 删除原因 .recgrp.bas.actiondesc
maturity:"", // 到期日 .recgrp.bas.maturity
spapfeboindex:"", // 是否不纳入跨境融资风险加权余额计算 .recgrp.bas.spapfeboindex
contractamount:"", // 签约金额 .recgrp.bas.contractamount
anninrate:"", // 年化利率值 .recgrp.bas.anninrate
floatrate:"", // 是否浮动利率 .recgrp.bas.floatrate
appcode:"", // 申请人代码 .recgrp.bas.appcode
inltcabuscode:"", // 信用证承兑业务参号 .recgrp.bas.inltcabuscode
remark:"", // 备注 .recgrp.bas.remark
relation:"", // 对方与本机构的关系 .recgrp.bas.relation
},
},
recp:{
pubp:{
creditcodwarn:"", // CREDITORCODE WARNING .recp.pubp.creditcodwarn
acp:"", // 确认 .recp.pubp.acp
},
dclp: {
exdebtcode: "",
sta: ""
}
},
pageId: "" // ctx的key
}
}
}
\ No newline at end of file
......@@ -229,6 +229,7 @@ import Dbdinf from "./Dbdinf"
import Dbdadd from "./Dbdadd"
import Dbdame from "./Dbdame"
import Dbddel from "./Dbddel"
import Cfasel from "./Cfasel"
import Dbjadd from "./Dbjadd"
import Dbjdel from "./Dbjdel"
......@@ -238,6 +239,9 @@ import Dbwadd from "./Dbwadd"
import Dbwdel from "./Dbwdel"
import Dbwame from "./Dbwame"
import Dbwinf from "./Dbwinf"
import Eadadd from "./Eadadd"
import Eadinf from "./Eadinf"
import Eadame from "./Eadame"
import Ebaadd from "./Ebaadd"
import Ebaame from "./Ebaame"
......@@ -498,6 +502,7 @@ const BusRouter = [
{ path: 'Dbdadd', component: Dbdadd, name: 'Dbdadd', meta: { title: '境内收入申报单(新建)' } },
{ path: 'Dbdame', component: Dbdame, name: 'Dbdame', meta: { title: '境内收入申报单(修改)' } },
{ path: 'Dbddel', component: Dbddel, name: 'Dbddel', meta: { title: '境内收入申报单(删除)' } },
{ path: 'Cfasel', component: Cfasel, name: 'Cfasel', meta: { title: '申报查询入口' } },
{ path: 'Dbjadd', component: Dbjadd, name: 'Dbjadd', meta: { title: '外汇账户内结汇(新建)' } },
{ path: 'Dbjdel', component: Dbjdel, name: 'Dbjdel', meta: { title: '外汇账户内结汇(删除)' } },
......@@ -508,6 +513,9 @@ const BusRouter = [
{ path: 'Dbwame', component: Dbwame, name: 'Dbwame', meta: { title: '外汇账户内购汇(修改)' } },
{ path: 'Dbwinf', component: Dbwinf, name: 'Dbwinf', meta: { title: '外汇账户内购汇(查询)' } },
{ path: 'Eadadd', component: Eadadd, name: 'Eadadd', meta: { title: '增 -- 外债海外代付' } },
{ path: 'Eadinf', component: Eadinf, name: 'Eadinf', meta: { title: '查 -- 外债海外代付' } },
{ path: 'Eadame', component: Eadame, name: 'Eadame', meta: { title: '改 -- 外债海外代付' } },
{ path: 'Ebaadd', component: Ebaadd, name: 'Ebaadd', meta: { title: '增 -- 对外担保' } },
{ path: 'Ebaame', component: Ebaame, name: 'Ebaame', meta: { title: '改 -- 对外担保' } },
{ path: 'Ebadel', component: Ebadel, name: 'Ebadel', meta: { title: '删 -- 对外担保' } },
......
<template>
<div class="eContainer-table-block">
<div style="text-align: left" v-if="showButtonFlg" class="buttonDiv">
<c-button
icon="el-icon-s-tools"
@click="clounmSetting"
style="margin-right: 87px;margin-top: 10px;"
></c-button>
</div>
<el-table
ref="table"
:data="
tableData.slice((currentPage - 1) * pageSize, currentPage * pageSize)
"
style="width: 100%"
class="eContainer-table"
@selection-change="handleSelectionChange"
:row-key="getRowKey"
:header-cell-style="{
background: 'rgb(235, 235, 235)',
color: 'rgb(51, 51, 51)',
}"
:highlight-current-row="true"
@row-click="rowClick"
:border="true"
max-height="380"
>
<el-table-column
type="selection"
width="55"
v-if="showSelection"
:reserve-selection="true"
></el-table-column>
<c-table-column
v-for="(item, key) in tableColumns"
:key="key"
:prop="item.prop"
:label="item.label"
:width="item.width"
sortable
>
<template v-slot="{ scope }">
<!-- <template slot-scope="{ scope }"> -->
<span>{{
!item.render ? scope.row[item.prop] : item.render(item, scope)
}}</span>
</template>
</c-table-column>
<slot></slot>
</el-table>
<el-dialog
class="showColumnDialog"
:visible.sync="setColumnFlg"
:title="'自定义列属性'"
appenD-to-body
v-if="showButtonFlg"
>
<el-form-item label-width="0" style="display: flex;
align-items: center;">
<el-checkbox-group v-model="columnGroup" @change="handleColumnChange">
<el-checkbox
class="selectColumnClass checkbox-left"
style="margin-right:45px;"
v-for="item in tableColumnsOrigin"
:key="item.label"
:label="parseInt(item.index)"
>{{ item.label }}</el-checkbox
>
</el-checkbox-group>
</el-form-item>
<span slot="footer" style="display: flex;
align-items: center;">
<el-checkbox
class="selectAllClass checkbox-left"
:indeterminate="
columnGroup.length > 0 &&
columnGroup.length < tableColumnsOrigin.length
"
v-model="selectAll"
@change="setAll"
>全选</el-checkbox
>
<el-button type="primary" @click="saveColumnEvent" style="margin-left:10px;">保存</el-button>
</span>
</el-dialog>
<c-col :span="16" v-if="tableData.length>10">
<el-pagination
v-if="paginationShow"
class="eContainer-pagination"
layout="prev, pager, next, jumper"
:page-sizes="pageSizes"
:page-size="pageSize"
:current-page="currentPage"
:total="tableData.length"
@size-change="sizeChange"
@current-change="currentChange"
></el-pagination>
</c-col>
<c-col :span="8" style="float:right">
<div class="paginationLable" v-if="paginationShow">
当前显示第 {{ (currentPage - 1) * pageSize + 1 }}-{{
currentPage * pageSize > tableData.length
? tableData.length
: currentPage * pageSize
}}
条,共 {{ tableData.length }} 条
</div>
</c-col>
</div>
</template>
<script>
import CodeTable from "~/config/CodeTable";
export default {
props: {
columns: {
type: Array,
default: () => {
return [];
},
},
list: {
type: Array,
default: () => {
return [];
},
},
showSelection: {
type: Boolean,
default: false,
},
paginationShow: {
type: Boolean,
required: false,
default: true,
},
showButtonFlg: {
type: Boolean,
required: false,
default: false,
},
},
watch: {
columns() {
this.generateColumns();
},
},
computed: {
tableData() {
// return this.list.map((row) => {
// const res = {}
// const vals = row.split("\t");
// for (let i = 0; i < vals.length; i++) {
// res[`${i}`] = vals[i];
// }
// return res;
// });
const arr = [];
for (let i = 0; i < this.list.length; i++) {
const d = this.list[i];
const items = d.split("\t");
const it = {};
for (let j = 0; j < this.tableColumns.length; j++) {
const column = this.tableColumns[j];
it[column["prop"]] = column.children
.map((c) => items[c["idx"]] || " ")
.join("\n");
}
it["IDX"] = i;
it["INR"] = items[0];
if (it["INR"].length < 8) {
it["INR"] = items[1];
}
it.srcStr = d;
arr.push(it);
}
this.currentPage = 1;
return arr;
},
},
data() {
return {
tableColumnsOrigin: [],
tableColumns: [],
currentPage: 1,
pageSizes: [5, 10, 20, 30, 40, 50, 100],
pageSize: 10,
selectAll: true,
columnGroup: [],
setColumnFlg: false,
codes: {
...CodeTable,
},
};
},
mounted() {
this.generateColumns();
},
methods: {
generateColumns() {
const columnArr = [];
const lines = this.columns;
const etyReg = /\"([^\"]*)\"/;
const obj = {};
for (let i = 0; i < lines.length; i++) {
const line = lines[i];
if (typeof line === "object") {
//如果是对象,支持自定义处理
//{width,position,index,label,pattern,render}
let { width, position, index, label, pattern, render, ...rest } =
line;
position += "";
if (!obj[position]) {
obj[position] = [];
}
obj[position].push({
idx: index,
prop: label,
// width:width+'px',
width: width === "auto" ? width : width + "px",
pattern,
render,
...rest,
});
continue;
}
if (etyReg.test(line)) {
const gs = line.match(etyReg);
const columnName = gs[1];
const newLine = line.replace(gs[0], "_");
const colPropArr = newLine.split(" ");
const positionArr = colPropArr[1].split(":");
if (!obj[positionArr[0]]) {
obj[positionArr[0]] = [];
}
obj[positionArr[0]].push({
idx: colPropArr[0],
prop: columnName,
// width: colPropArr[3] + 'px',
width:
colPropArr[3] === "auto" ? colPropArr[3] : colPropArr[3] + "px",
});
}
}
for (const k in obj) {
if (Object.hasOwnProperty.call(obj, k)) {
const o = obj[k];
const tableColumn = o.map((item) => item.prop).join("\n");
let colInfo = {
prop: tableColumn,
label: tableColumn,
width: o[0].width,
// width: "auto",
index: k,
children: o,
};
//支持自定义处理
if (o.length == 1) {
if (o[0].pattern && this[o[0].pattern]) {
colInfo.render = this[o[0].pattern];
colInfo.code = o[0].code;
} else if (o[0].render) {
colInfo.render = o[0].render;
}
}
columnArr.push(colInfo);
}
}
const arr = columnArr.sort((a, b) => {
return parseInt(a.index) - parseInt(b.index);
});
this.tableColumnsOrigin = arr;
this.tableColumns = arr;
this.columnGroup = arr.map((item) => parseInt(item.index));
return arr;
},
sizeChange(size) {
this.pageSize = size;
},
currentChange(currentPage) {
this.currentPage = currentPage;
},
handleSelectionChange(val) {
this.$emit("multipleSelect", this.getSelectedRowIndex(val));
},
getRowKey(row) {
return row["IDX"];
},
getSelectedRowIndex(val) {
const indexArr = [];
for (let j = 0; j < val.length; j++) {
const v = val[j];
for (let i = 0; i < this.tableData.length; i++) {
const data = this.tableData[i];
if (v["IDX"] === data["IDX"]) {
indexArr.push(i);
}
}
}
return indexArr;
},
// 行点击,设置高亮
rowClick(row, column, event) {
this.$refs.table.setCurrentRow(row);
this.$emit("chooseRowEvent", row);
},
clounmSetting() {
this.setColumnFlg = true;
},
saveColumnEvent() {
this.setColumnFlg = false;
const arr = this.columnGroup.map((idx) => parseInt(idx));
arr.sort((a, b) => a - b);
this.columnGroup = arr;
this.tableColumns = this.columnGroup.map(
(index) => this.tableColumnsOrigin[parseInt(index) - 1]
);
},
setAll(val) {
this.columnGroup = val
? this.tableColumnsOrigin.map((item) => parseInt(item.index))
: [];
},
handleColumnChange() {
this.selectAll =
this.tableColumnsOrigin.length === this.columnGroup.length;
},
//补充自定义列处理函数
//去掉日期的时分秒毫秒
date(item, scope) {
let value = scope.row[item.prop];
if (!value) {
return "";
}
let idx = value.indexOf(" ");
if (idx > 0) return value.substring(0, idx);
return value;
},
//code映射
code(item, scope) {
let value = scope.row[item.prop];
let code = item.code;
if (typeof code == "string") {
code = this.codes[code];
}
if (!value || !code) {
return "";
}
let em = code.find((item) => item.value.trim() == value.trim());
if (!em) {
return value;
}
return em.label;
},
//去掉时间的毫秒
time(item, scope) {
let value = scope.row[item.prop];
if (!value) {
return "";
}
let idx = value.indexOf(".");
if (idx > 0) return value.substring(0, idx);
return value;
},
//日期格式化
dateFormat(item, scope) {
let value = scope.row[item.prop];
if (!value) {
return "";
}
return (
value.substring(0, 4) +
"-" +
value.substring(4, 6) +
"-" +
value.substring(6)
);
},
},
};
</script>
<style scoped>
.eContainer-table-block {
margin-top: 15px;
position: relative;
}
.eContainer-table-block .paginationLable {
font-size: 12px;
color: #808080;
height: 26px;
line-height: 26px;
float: right;
/* margin-top: 20px; */
}
.eContainer-table-block .el-table__body-wrapper {
overflow: auto;
}
.el-table .warning-row {
background: oldlace;
}
.el-table .success-row {
background: #f0f9eb;
}
.selectColumnClass .el-checkbox__label {
width: 67px;
font-size: 13px;
}
.selectAllClass .el-checkbox__label {
width: 30px;
font-size: 13px;
padding-left: 5px;
}
.eContainer-table-block >>> .el-table .cell {
white-space: pre-wrap;
}
.eContainer-table-block >>> .el-dialog .el-dialog__footer {
display: flex;
justify-content: center;
}
.buttonDiv {
text-align: left;
display: inline-block;
margin: 0;
margin-top: -3px;
position: absolute;
z-index: 999;
right: 5px;
padding-top: 3px;
}
</style>
\ No newline at end of file
<template>
<div class="eibs-tab">
<!-- S0000048 : 业务主键 -->
<c-col :span="12">
<c-form-item :label="$t('cnyselp.S0000048')" prop="cnyselp.cnylib.spk">
<c-input v-model="model.cnyselp.cnylib.spk" maxlength="20" :placeholder="$t('other.please_enter')+$t('cnyselp.S0000048')"></c-input>
</c-form-item>
</c-col>
<!-- S0000065 : 银行业务编号 -->
<c-col :span="12">
<c-form-item label="银行业务编号" prop="cnyselp.cnylib.sbanktrano">
<c-input v-model="model.cnyselp.cnylib.sbanktrano" maxlength="22" :placeholder="$t('other.please_enter')+'银行业务编号'"></c-input>
</c-form-item>
</c-col>
<!-- S0000049 : 银行机构代码 -->
<c-col :span="12">
<c-form-item :label="$t('cnyselp.S0000049')" prop="cnyselp.cnylib.sbankorgcode">
<c-input v-model="model.cnyselp.cnylib.sbankorgcode" maxlength="12" :placeholder="$t('other.please_enter')+$t('cnyselp.S0000049')"></c-input>
</c-form-item>
</c-col>
<!-- S0000067 : 银行机构名称 -->
<c-col :span="12">
<c-form-item :label="$t('cnyselp.S0000067')" prop="cnyselp.sbankname">
<c-input v-model="model.cnyselp.sbankname" maxlength="80" :placeholder="$t('other.please_enter')+$t('cnyselp.S0000067')"></c-input>
</c-form-item>
</c-col>
<!-- S0000050 : 业务属性 -->
<c-col :span="12">
<el-form-item :label="$t('cnyselp.S0000050')" prop="cnyselp.cnylib.stransattr">
<c-select v-model="model.cnyselp.cnylib.stransattr" style="width:100%" :placeholder="$t('other.please_enter')+$t('cnyselp.S0000050')">
</c-select>
</el-form-item>
</c-col>
<!-- S0000051 : 业务类型 -->
<c-col :span="12">
<el-form-item :label="$t('cnyselp.S0000051')" prop="cnyselp.cnylib.stranstype">
<c-select v-model="model.cnyselp.cnylib.stranstype" style="width:100%" :placeholder="$t('other.please_enter')+$t('cnyselp.S0000051')">
</c-select>
</el-form-item>
</c-col>
<!-- S0000052 : 境外对手行代码 -->
<c-col :span="12">
<c-form-item :label="$t('cnyselp.S0000052')" prop="cnyselp.cnylib.sforbankswiftbic">
<c-input v-model="model.cnyselp.cnylib.sforbankswiftbic" maxlength="11" :placeholder="$t('other.please_enter')+$t('cnyselp.S0000052')"></c-input>
</c-form-item>
</c-col>
<!-- S0000053 : 境内企业名称 -->
<c-col :span="12">
<c-form-item :label="$t('cnyselp.S0000053')" prop="cnyselp.sorgname">
<c-input v-model="model.cnyselp.sorgname" maxlength="80" :placeholder="$t('other.please_enter')+$t('cnyselp.S0000053')"></c-input>
</c-form-item>
</c-col>
<!-- S0000054 : 境内企业机构代码 -->
<c-col :span="12">
<c-form-item :label="$t('cnyselp.S0000054')" prop="cnyselp.cnylib.sorgcode">
<c-input v-model="model.cnyselp.cnylib.sorgcode" maxlength="18" :placeholder="$t('other.please_enter')+$t('cnyselp.S0000054')"></c-input>
</c-form-item>
</c-col>
<!-- S0000055 : 境外企业名称 -->
<c-col :span="12">
<c-form-item :label="$t('cnyselp.S0000055')" prop="cnyselp.sforeignorgname">
<c-input v-model="model.cnyselp.sforeignorgname" maxlength="80" :placeholder="$t('other.please_enter')+$t('cnyselp.S0000055')"></c-input>
</c-form-item>
</c-col>
<!-- S0000056 : 境外企业国别地区代码 -->
<c-col :span="12">
<c-form-item label="境外企业国别地区代码" prop="cnyselp.cnylib.sforeigncountrycode">
<c-input v-model="model.cnyselp.cnylib.sforeigncountrycode" maxlength="3" :placeholder="$t('other.please_enter')+'境外企业国别地区代码'"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" icon="el-icon-search" @click="onLibctySelbut1">
{{$t('codcny.C0000005')}}
</c-button>
</c-col>
<!-- S0000057 : 业务发生日期 -->
<c-col :span="12">
<el-form-item :label="$t('cnyselp.S0000057')" prop="cnyselp.cnylib.doccurdate">
<c-date-picker type="date" v-model="model.cnyselp.cnylib.doccurdate" style="width:100%" :placeholder="$t('other.please_enter')+$t('cnyselp.S0000057')"></c-date-picker>
</el-form-item>
</c-col>
<!-- S0000058 : 业务到期日 -->
<c-col :span="12">
<el-form-item :label="$t('cnyselp.S0000058')" prop="cnyselp.cnylib.denddate">
<c-date-picker type="date" v-model="model.cnyselp.cnylib.denddate" style="width:100%" :placeholder="$t('other.please_enter')+$t('cnyselp.S0000058')"></c-date-picker>
</el-form-item>
</c-col>
<!-- S0000059 : 信用证到期日 -->
<c-col :span="12">
<el-form-item :label="$t('cnyselp.S0000059')" prop="cnyselp.cnylib.dcreditenddate">
<c-date-picker type="date" v-model="model.cnyselp.cnylib.dcreditenddate" style="width:100%" :placeholder="$t('other.please_enter')+$t('cnyselp.S0000059')"></c-date-picker>
</el-form-item>
</c-col>
<!-- S0000145 : 币种 -->
<c-col :span="12">
<el-form-item :label="$t('cnyselp.S0000145')" prop="cnyselp.cnylib.currencycode">
<c-select v-model="model.cnyselp.cnylib.currencycode" style="width:100%" :placeholder="$t('other.please_enter')+$t('cnyselp.S0000145')">
</c-select>
</el-form-item>
</c-col>
<!-- S0000060 : 金额 -->
<c-col :span="12">
<c-form-item label="金额" prop="cnyselp.cnylib.famt">
<c-input v-model="model.cnyselp.cnylib.famt" :placeholder="$t('other.please_enter')+'金额'"></c-input>
</c-form-item>
</c-col>
<!-- S0000061 : 期限条件 -->
<c-col :span="12">
<el-form-item :label="$t('cnyselp.S0000061')" prop="cnyselp.cnylib.stermtype">
<c-select v-model="model.cnyselp.cnylib.stermtype" style="width:100%" :placeholder="$t('other.please_enter')+$t('cnyselp.S0000061')">
</c-select>
</el-form-item>
</c-col>
<!-- S0000062 : 承兑日期 -->
<c-col :span="12">
<el-form-item :label="$t('cnyselp.S0000062')" prop="cnyselp.cnylib.dexchangedate">
<c-date-picker type="date" v-model="model.cnyselp.cnylib.dexchangedate" style="width:100%" :placeholder="$t('other.please_enter')+$t('cnyselp.S0000062')"></c-date-picker>
</el-form-item>
</c-col>
<!-- S0000063 : 承兑金额 -->
<c-col :span="12">
<c-form-item :label="$t('cnyselp.S0000063')" prop="cnyselp.cnylib.fexchangeamt">
<c-input v-model="model.cnyselp.cnylib.fexchangeamt" maxlength="20" :placeholder="$t('other.please_enter')+$t('cnyselp.S0000063')"></c-input>
</c-form-item>
</c-col>
<!-- S0000064 : 承兑到期日 -->
<c-col :span="12">
<el-form-item :label="$t('cnyselp.S0000064')" prop="cnyselp.cnylib.dexchangeenddate">
<c-date-picker type="date" v-model="model.cnyselp.cnylib.dexchangeenddate" style="width:100%" :placeholder="$t('other.please_enter')+$t('cnyselp.S0000064')"></c-date-picker>
</el-form-item>
</c-col>
<!-- S0000066 : 交易附言 -->
<c-col :span="12">
<c-form-item :label="$t('cnyselp.S0000066')" prop="cnyselp.saddwordlib">
<c-input v-model="model.cnyselp.saddwordlib" maxlength="80" :placeholder="$t('other.please_enter')+$t('cnyselp.S0000066')"></c-input>
</c-form-item>
</c-col>
</div>
</template>
<script>
import Api from "~/service/Api"
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Cnysel/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-list-search @form-reset="handleReset" @form-search="handleSearch">
<!-- ===================左边================= -->
<c-col :span="11">
<c-col :span="24">
<el-form-item label="申报类型" prop="cnytyp">
<c-select
v-model="model.cnytyp"
style="width: 100%"
placeholder="请选择申报类型"
>
<el-option
v-for="item in codes.cnytyp"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</c-select>
</el-form-item>
<!-- ===================左边================= -->
<c-col :span="11">
<c-col :span="24">
<el-form-item label="申报类型" prop="cnytyp">
<c-select v-model="model.cnytyp" style="width: 100%" placeholder="请选择申报类型">
<el-option v-for="item in codes.cnytyp" :key="item.value" :label="item.label" :value="item.value">
</el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="业务编号" prop="ownref">
<c-input v-model="model.ownref" maxlength="20" placeholder="请输入业务编号"></c-input>
</el-form-item>
</c-col>
</c-col>
<!-- =====================右边=========================== -->
<c-col :span="11" :offset="1">
<c-col :span="24">
<el-form-item label="业务编号" prop="ownref">
<c-input
v-model="model.ownref"
maxlength="20"
placeholder="请输入业务编号"
></c-input>
<el-form-item label="日期" prop="frmdat">
<c-col :span="24">
<c-col :span="11">
<c-date-picker type="date" v-model="model.frmdat" style="width: 100%" placeholder="请选择日期"></c-date-picker>
</c-col>
<c-col :span="2" style="text-align:center">-</c-col>
<c-col :span="11">
<c-date-picker type="date" v-model="model.tildat" style="width: 100%" placeholder="请选择日期"></c-date-picker>
</c-col>
</c-col>
</el-form-item>
</c-col>
</c-col>
<!-- =====================右边=========================== -->
<c-col :span="11" :offset="1">
<el-form-item label="日期" prop="frmdat">
<c-col :span="24">
<c-col :span="11">
<c-date-picker
type="date"
v-model="model.frmdat"
style="width: 100%"
placeholder="请选择日期"
></c-date-picker>
</c-col>
<c-col :span="2" style="text-align:center">-</c-col>
<c-col :span="11">
<c-date-picker
type="date"
v-model="model.tildat"
style="width: 100%"
placeholder="请选择日期"
></c-date-picker>
<el-form-item label="业务所属行" prop="ownextkey">
<c-select v-model="model.ownextkey" style="width: 100%" placeholder="请选择业务所属行">
<el-option v-for="item in ownextkey" :key="item.value" :label="item.label" :value="item.value">
</el-option>
</c-select>
</el-form-item>
</c-col>
</c-col>
</el-form-item>
<c-col :span="24">
<el-form-item label="业务所属行" prop="ownextkey">
<c-select
v-model="model.ownextkey"
style="width: 100%"
placeholder="请选择业务所属行"
>
<el-option
v-for="item in ownextkey"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</c-select>
</el-form-item>
</c-col>
</c-col>
</c-list-search>
<!-- ======================底部============================ -->
......@@ -85,18 +53,18 @@
<c-input v-model="model.cnystm" placeholder="请输入Selection"></c-input>
</el-form-item>
</c-col> -->
<c-istream-table-noOperate
:list="stmData.data"
:columns="stmData.columns"
:showButtonFlg="true"
>
<c-istream-table :list="stmData.data" :columns="stmData.columns" :showButtonFlg="true">
<el-table-column fixed="right" prop="op" width="auto">
<template slot="header">
<!-- <c-col :span="11" style="text-align: center"></c-col> -->
<c-col :span="11" style="text-align: center">操作</c-col>
<!-- <c-col :span="12" style="text-align:right"><c-button icon="el-icon-s-tools"></c-button></c-col> -->
</template>
</el-table-column>
</c-istream-table-noOperate>
<template slot-scope="scope">
<c-button size="small" @click="getTrnInfo(scope.$index, scope.row)" slot="reference" :disabled="model.cnytyp == '6'">
详情</c-button>
</template>
</el-table-column>
</c-istream-table>
</c-col>
</div>
......@@ -109,21 +77,18 @@ import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Cnysel/Event";
import IStreamTableNoOperate from "./IStreamTable.vue";
export default {
inject: ["root"],
props: ["model", "codes"],
mixins: [commonProcess],
components: {
"c-istream-table-noOperate": IStreamTableNoOperate
},
data() {
return {
ownextkey:[
{label:"<ALL>",value:"<ALL>"},
{label:"00000047 中国光大银行北京分部",value:"00000047"},
{label:"00001047 LM ADD",value:"00001047"},
ownextkey: [
{ label: "<ALL>", value: "<ALL>" },
{ label: "00000047 中国光大银行北京分部", value: "00000047" },
{ label: "00001047 LM ADD", value: "00001047" },
],
stmData: {
columns: [
......@@ -133,16 +98,41 @@ export default {
'3 4 "收款人名称" 250',
'4 5 "付款人名称" 250',
'5 6 "业务发生日期" 150 20 30 1',
{ index: 6, position: 7, width: 100, pattern: "code", label: "复核状态" ,"code":"relsta"},
{ index: 6, position: 7, width: 100, pattern: "code", label: "复核状态", "code": "relsta" },
],
data: [],
},
};
},
methods: { ...Event },
created: function () {},
// inject: {
// tabVal: "root.tabVal"
// },
methods: {
...Event,
async getTrnInfo(idx, row) {
// this.model.infcon.objinr = row["INR"];
// this.model.bodgrp.rec.inr = row["INR"];
// this.model.infcon.chksubcon = "X";
console.log(row);
console.log(this.tabVal);
this.tabVal = "litp";
// tabVal: "selp",
// console.log(row.申报类型);
// let url = row.申报类型.toLowerCase() + "inf";
// this.$router.history.push("/business/" + url);
// let rtnmsg = await this.executeDefault("dtlbut");
// // if ((rtnmsg.respCode = SUCCESS)) {
// this.trnData.data = rtnmsg.data.infcon_trnstm.rows;
// console.log(this.trnData.data);
// }
}
},
created: function () { },
};
</script>
<style>
</style>
<template>
<c-page title="跨境人民币查询">
<div class="eContainer">
<el-form
:model="model"
:rules="rules"
ref="modelForm"
label-width="120px"
label-position="right"
size="small"
:validate-on-rule-change="false"
>
<c-tabs
v-model="tabVal"
ref="elment"
type="card"
@tab-click="myTabClick"
>
<el-form :model="model" :rules="rules" ref="modelForm" label-width="120px" label-position="right" size="small"
:validate-on-rule-change="false">
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick">
<!--PD000001 -->
<el-tab-pane label="接口信息选择" name="selp">
<content>
<m-selp :model="model" :codes="codes" />
</content>
</el-tab-pane>
<!--cnyselp PD000047 2106银行跟单结算及表外融资 -->
<el-tab-pane :label="$t('cnyselp.PD000047')" name="libp">
<content>
<m-libp :model="model" :codes="codes" />
</content>
</el-tab-pane>
</c-tabs>
</el-form>
</div>
......@@ -37,11 +31,13 @@ import Default from "~/model/Cnysel/Default";
import Pattern from "~/model/Cnysel/Pattern";
import Selp from "./Selp";
import Libp from "./Libp"
export default {
name: "Cnysel",
components: {
"m-selp": Selp,
"m-libp": Libp,
},
provide() {
return {
......@@ -82,4 +78,5 @@ export default {
};
</script>
<style>
</style>
<template>
<div class="eibs-tab">
<!-- ======================= 左边 ========================= -->
<c-col :span="12" style="padding-right: 20px">
<!-- S0000016 : 外债编号 -->
<c-col :span="24">
<c-form-item :label="$t('pubp.S0000016')" prop="recgrp.bas.exdebtcode">
<c-input v-model="model.recgrp.bas.exdebtcode" maxlength="28"
:placeholder="$t('other.please_enter') + $t('pubp.S0000016')" disabled></c-input>
</c-form-item>
</c-col>
<!-- S0000017 : 操作类型 -->
<c-col :span="24">
<el-form-item :label="$t('pubp.S0000017')" prop="recgrp.bas.actiontype">
<c-select v-model="model.recgrp.bas.actiontype" style="width:100%"
:placeholder="$t('other.please_enter') + $t('pubp.S0000017')" :code="codes.actiontype" disabled>
</c-select>
</el-form-item>
</c-col>
<!-- S0000018 : 债务人代码 -->
<c-col :span="24">
<c-form-item :label="$t('pubp.S0000018')" prop="recgrp.bas.debtorcode">
<c-input v-model="model.recgrp.bas.debtorcode" maxlength="12"
:placeholder="$t('other.please_enter') + $t('pubp.S0000018')" disabled></c-input>
</c-form-item>
</c-col>
<!-- S0000019 : 债务类型 -->
<c-col :span="24">
<el-form-item :label="$t('pubp.S0000019')" prop="recgrp.bas.debtype">
<c-select v-model="model.recgrp.bas.debtype" style="width:100%"
:placeholder="$t('other.please_enter') + $t('pubp.S0000019')" disabled :code="codes.actiontype">
</c-select>
</el-form-item>
</c-col>
<!-- S0000020 : 起息日 -->
<c-col :span="24">
<el-form-item :label="$t('pubp.S0000020')" prop="recgrp.bas.valuedate">
<c-date-picker type="date" v-model="model.recgrp.bas.valuedate" style="width:100%"
:placeholder="$t('other.please_enter') + $t('pubp.S0000020')"></c-date-picker>
</el-form-item>
</c-col>
<!-- S0000021 : 签约金额 -->
<c-col :span="24">
<c-col :span="13">
<el-form-item label="签约金额" prop="recgrp.bas.contractcurr">
<c-select v-model="model.recgrp.bas.contractcurr" style="width:100%" placeholder="请选择币种"
:code="codes.curtxt1">
</c-select>
</el-form-item>
</c-col>
<c-col :span="11">
<c-form-item label="" label-width="5px" prop="recgrp.bas.contractamount">
<c-input v-model="model.recgrp.bas.contractamount" placeholder="请输入签约金额"></c-input>
</c-form-item>
</c-col>
</c-col>
<!-- S0000012 : 年化利率值 -->
<c-col :span="24">
<c-form-item label="年化利率值" prop="recgrp.bas.anninrate">
<c-input v-model="model.recgrp.bas.anninrate"
:placeholder="$t('other.please_enter') + $t('eadp.S0000012')"></c-input>
</c-form-item>
</c-col>
<!-- S0000002 : 债权人代码 -->
<c-col :span="24">
<c-form-item :label="$t('pubp.S0000002')" prop="recgrp.bas.creditorcode">
<c-input v-model="model.recgrp.bas.creditorcode" maxlength="11"
:placeholder="$t('other.please_enter') + $t('pubp.S0000002')"></c-input>
</c-form-item>
</c-col>
<!-- S0000004 : 债权人中文名称 -->
<c-col :span="24">
<c-form-item :label="$t('pubp.S0000004')" prop="recgrp.bas.creditorname">
<c-input v-model="model.recgrp.bas.creditorname" maxlength="128"
:placeholder="$t('other.please_enter') + $t('pubp.S0000004')"></c-input>
</c-form-item>
</c-col>
<!-- S0000005 : 债权人英文名称 -->
<c-col :span="24">
<c-form-item :label="$t('pubp.S0000005')" prop="recgrp.bas.creditornamen">
<c-input v-model="model.recgrp.bas.creditornamen" maxlength="128"
:placeholder="$t('other.please_enter') + $t('pubp.S0000005')"></c-input>
</c-form-item>
</c-col>
<!-- S0000019 : 申请人代码 -->
<c-col :span="24">
<c-form-item :label="$t('eadp.S0000019')" prop="recgrp.bas.appcode">
<c-input v-model="model.recgrp.bas.appcode" maxlength="18"
:placeholder="$t('other.please_enter') + $t('eadp.S0000019')"></c-input>
</c-form-item>
</c-col>
<!-- S0000026 : 申请人名称 -->
<c-col :span="24">
<c-form-item :label="$t('eadp.S0000026')" prop="recgrp.bas.appname">
<c-input v-model="model.recgrp.bas.appname" maxlength="128"
:placeholder="$t('other.please_enter') + $t('eadp.S0000026')"></c-input>
</c-form-item>
</c-col>
<!-- S0000023 : 备注 -->
<c-col :span="24">
<c-form-item :label="$t('eadp.S0000023')" prop="recgrp.bas.remark">
<c-input type="textarea" v-model="model.recgrp.bas.remark" maxlength="31" show-word-limit
:placeholder="$t('other.please_enter') + $t('eadp.S0000023')"></c-input>
</c-form-item>
</c-col>
</c-col>
<!-- ======================= 右边 ========================= -->
<c-col :span="12" style="padding-left: 20px">
<!-- S0000022 : 删除原因 -->
<c-col :span="24">
<c-form-item :label="$t('pubp.S0000022')" prop="recgrp.bas.actiondesc">
<c-input type="textarea" v-model="model.recgrp.bas.actiondesc" maxlength="32" rows="7"
show-word-limit :placeholder="$t('other.please_enter') + $t('pubp.S0000022')" disabled>
</c-input>
</c-form-item>
</c-col>
<c-col :span="24">
<el-form-item>
<c-checkbox v-model="model.recp.pubp.acp" class="checkbox-left" disabled>确认</c-checkbox>
</el-form-item>
</c-col>
<!-- S0000023 : 到期日 -->
<c-col :span="24">
<el-form-item :label="$t('pubp.S0000023')" prop="recgrp.bas.maturity">
<c-date-picker type="date" v-model="model.recgrp.bas.maturity" style="width:100%"
:placeholder="$t('other.please_enter') + $t('pubp.S0000023')"></c-date-picker>
</el-form-item>
</c-col>
<!-- S0000024 : 是否不纳入跨境融资风险加权余额计算 -->
<c-col :span="24">
<el-form-item label="是否不纳入跨境融资风险加权余额计算" prop="recgrp.bas.spapfeboindex">
<c-select v-model="model.recgrp.bas.spapfeboindex" style="width:100%"
placeholder="请选择是否不纳入跨境融资风险加权余额计算" :code="codes.spapfeboindex">
</c-select>
</el-form-item>
</c-col>
<!-- S0000011 : 是否浮动利率 -->
<c-col :span="24">
<el-form-item :label="$t('eadp.S0000011')" prop="recgrp.bas.floatrate">
<c-select v-model="model.recgrp.bas.floatrate" style="width:100%"
:placeholder="$t('other.please_enter') + $t('eadp.S0000011')" :code="codes.floatrate">
</c-select>
</el-form-item>
</c-col>
<!-- S0000003 : 债权人类型代码 -->
<c-col :span="24">
<el-form-item :label="$t('pubp.S0000003')" prop="recgrp.bas.creditortype">
<c-select v-model="model.recgrp.bas.creditortype" style="width:100%"
:placeholder="$t('other.please_enter') + $t('pubp.S0000003')" :code="codes.creditortype">
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<c-form-item label="债权人总部所在国家(地区)代码" prop="recgrp.bas.crehqcode">
<c-fullbox>
<c-input v-model="model.recgrp.bas.crehqcode" maxlength="3"
:placeholder="$t('other.please_enter') + '债权人总部所在国家(地区)代码'"></c-input>
<template slot="footer">
<c-button size="small" style="margin-left: 10px; padding: 0 12px" type="primary"
icon="el-icon-search" @click="onCouselCrehqselbut">
</c-button>
</template>
</c-fullbox>
</c-form-item>
</c-col>
<!-- S0000011 : 债权人经营地所在 -->
<c-col :span="24">
<c-form-item label="债权人经营地所在国家(地区)代码" prop="recgrp.bas.opercode">
<c-fullbox>
<c-input v-model="model.recgrp.bas.opercode" maxlength="3"
:placeholder="$t('other.please_enter') + '债权人经营地所在国家(地区)代码'"></c-input>
<template slot="footer">
<c-button size="small" style="margin-left: 10px; padding: 0 12px" type="primary"
icon="el-icon-search" @click="onCouselOperselbut">
</c-button>
</template>
</c-fullbox>
</c-form-item>
</c-col>
<!-- S0000021 : 信用证承兑业务参号 -->
<c-col :span="24">
<c-form-item :label="$t('eadp.S0000021')" prop="recgrp.bas.inltcabuscode">
<c-input v-model="model.recgrp.bas.inltcabuscode" maxlength="32"
:placeholder="$t('other.please_enter') + $t('eadp.S0000021')"></c-input>
</c-form-item>
</c-col>
<!-- S0000027 : 对方与本机构的关系 -->
<c-col :span="24">
<el-form-item :label="$t('eadp.S0000027')" prop="recgrp.bas.relation">
<c-select v-model="model.recgrp.bas.relation" style="width:100%"
:placeholder="$t('other.please_enter') + $t('eadp.S0000027')" :code="codes.relation">
</c-select>
</el-form-item>
</c-col>
</c-col>
<!-- <c-col :span="12">
<c-button size="small" type="primary" @click="onCfabutSav">
{{ $t('cutp.C0000006') }}
</c-button>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onCfabutChk">
{{ $t('cutp.C0000007') }}
</c-button>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onCutpErr">
{{ $t('cutp.C0000009') }}
</c-button>
</c-col>
<c-col :span="12">
<span v-text="model.recp.pubp.creditcodwarn" data-path=".recp.pubp.creditcodwarn"> </span>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onCfabutExt">
{{ $t('cutp.C0000008') }}
</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/Eadadd/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="12" style="padding-right: 20px">
<!-- 外债编号 -->
<c-col :span="24">
<c-form-item :label="$t('pubp.S0000016')" prop="recp.pubp.exdebtcode">
<c-input v-model="model.recp.pubp.exdebtcode" maxlength="28"
:placeholder="$t('other.please_enter') + $t('pubp.S0000016')" disabled></c-input>
</c-form-item>
</c-col>
<!-- 变动编号 -->
<c-col :span="24">
<el-form-item label="变动编号" prop="recp.dclp.changeno">
<c-input v-model="model.recp.dclp.changeno" style="width:100%" placeholder="请输入变动编号"
:code="codes.changeno" disabled>
</c-input>
</el-form-item>
</c-col>
<!-- 操作类型 -->
<c-col :span="24">
<el-form-item label="操作类型" prop="recp.dclp.actiontype">
<c-select v-model="model.recp.dclp.actiontype" style="width:100%" placeholder="请选择操作类型" disabled
:code="codes.actiontype">
</c-select>
</el-form-item>
</c-col>
<!-- 银行业务参号 -->
<c-col :span="24">
<el-form-item label="银行业务参号" prop="recp.dclp.buscode">
<c-input v-model="model.recp.dclp.buscode" style="width:100%" placeholder="请输入银行业务参号"></c-input>
</c-input>
</el-form-item>
</c-col>
<!-- 变动类型 -->
<c-col :span="24">
<el-form-item label="变动类型" prop="recp.dclp.changtype">
<c-select v-model="model.recp.dclp.changtype" style="width:100%" placeholder="请选择变动类型"
:code="codes.changtype">
</c-select>
</el-form-item>
</c-col>
<!-- 变动日期 -->
<c-col :span="24">
<el-form-item label="变动日期" prop="recp.dclp.chdate">
<c-date-picker type="date" v-model="model.recp.dclp.chdate" style="width:100%"
placeholder="请选择变动日期"></c-date-picker>
</el-form-item>
</c-col>
<!-- 变动币种 -->
<c-col :span="24">
<el-form-item label="变动币种" prop="recp.dclp.chcurrency">
<c-select v-model="model.recp.dclp.chcurrency" style="width:100%" placeholder="请选择变动币种"
:code="codes.curtxt1">
</c-select>
</el-form-item>
</c-col>
<!-- 变动金额 -->
<c-col :span="24">
<el-form-item label="变动金额" prop="recp.dclp.chamount">
<c-input v-model="model.recp.dclp.chamount" style="width:100%" placeholder="请输入变动金额">
</c-input>
</el-form-item>
</c-col>
<!-- 公允价值 -->
<c-col :span="24">
<el-form-item label="公允价值" prop="recp.dclp.fairvalue">
<c-input v-model="model.recp.dclp.fairvalue" style="width:100%" placeholder="请输入公允价值">
</c-input>
</el-form-item>
</c-col>
<!-- 备注 -->
<c-col :span="24">
<c-form-item :label="$t('eadp.S0000023')" prop="recp.dclp.remark">
<c-input type="textarea" v-model="model.recp.dclp.remark" maxlength="31" show-word-limit
:placeholder="$t('other.please_enter') + $t('eadp.S0000023')"></c-input>
</c-form-item>
</c-col>
</c-col>
<!-- ======================= 右边 ========================= -->
<c-col :span="12" style="padding-left: 20px">
<!-- S0000022 : 删除原因 -->
<c-col :span="24">
<c-form-item :label="$t('pubp.S0000022')" prop="recp.dclp.actiondesc">
<c-input type="textarea" v-model="model.recp.dclp.actiondesc" maxlength="32" rows="7"
show-word-limit :placeholder="$t('other.please_enter') + $t('pubp.S0000022')" disabled>
</c-input>
</c-form-item>
</c-col>
<c-col :span="24">
<el-form-item>
<c-checkbox v-model="model.recp.dclp.acp" class="checkbox-left" disabled>确认</c-checkbox>
</el-form-item>
</c-col>
<c-col :span="24" style="text-align: right;margin-top: 300px;color:blue">
<c-form-item prop="recp.dclp.sta">
<!-- <c-select v-model="this.model.recp.dclp.sta" style="width:100%" placeholder="" disabled
:code="codes.sta1">
</c-select> -->
<span v-if="this.model.recp.dclp.sta == 'W'">待发送</span>
<span v-else-if="this.model.recp.dclp.sta == 'S'">已发送</span>
<span v-else-if="this.model.recp.dclp.sta == 'D'">已撤销</span>
<span v-else-if="this.model.recp.dclp.sta == 'G'">已删除</span>
<span v-else-if="this.model.recp.dclp.sta == 'P'">已作废</span>
<span v-else-if="this.model.recp.dclp.sta == 'E'">待修改</span>
</c-form-item>
</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/Eadadd/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="12" style="padding-right: 20px">
<!-- S0000019 : 发生日期 -->
<c-col :span="24">
<el-form-item label="发生日期" prop="eblmod.ebl.reldat">
<c-date-picker type="date" v-model="model.eblmod.ebl.reldat" style="width:100%"
:placeholder="$t('other.please_enter') + '发生日期'"></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item>
<c-checkbox v-model="model.cfabut.basflg" class="checkbox-left" disabled>签约信息</c-checkbox>
</el-form-item>
</c-col>
<!-- S0000028 : 代付利息 -->
<c-col :span="24">
<c-form-item label="代付还代利息" prop="eblmod.ebl.resamt">
<c-input v-model="model.eblmod.ebl.resamt" :placeholder="$t('other.please_enter') + '代付还代利息'">
</c-input>
</c-form-item>
</c-col>
</c-col>
<!-- ======================= 右边 ========================= -->
<c-col :span="12" style="padding-left: 20px">
<!-- S0000008 : 业务所属机构 -->
<c-col :span="24">
<el-form-item label="业务所属机构" prop="cfabut.ownextkey">
<c-select v-model="model.cfabut.ownextkey" style="width:100%"
:placeholder="$t('other.please_enter') + '业务所属机构'" :code="codes.ownextkey3">
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item>
<c-checkbox v-model="model.cfabut.dclflg" class="checkbox-left" disabled>变动信息</c-checkbox>
</el-form-item>
</c-col>
</c-col>
<!-- <c-col :span="12">
<span v-text="model.cfabut.dcllab" data-path=".cfabut.dcllab"> </span>
</c-col>
<c-col :span="12">
<span v-text="model.cfabut.vrflab" data-path=".cfabut.vrflab"> </span>
</c-col>
<c-col :span="12">
<c-checkbox v-model="model.cfabut.vrfflg">{{ $t('cfabut.C0000017') }}</c-checkbox>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onCfabutSav">
{{ $t('cutp.C0000006') }}
</c-button>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onCfabutMod">
{{ $t('cutp.C0000010') }}
</c-button>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onCfabutChk">
{{ $t('cutp.C0000007') }}
</c-button>
</c-col>
<c-col :span="12">
<c-button size="small" icon="el-icon-delete" @click="onCfabutDel">
{{ $t('cutp.C0000011') }}
</c-button>
</c-col>
<c-col :span="12">
<c-checkbox v-model="model.cfabut.addnew">{{ $t('cfabut.C0000015') }}</c-checkbox>
</c-col>
<c-col :span="12">
<span v-text="model.cfabut.newdclnum" data-path=".cfabut.newdclnum"> </span>
</c-col>
<c-col :span="12">
<c-form-item label="DCL数目" prop="cfabut.newdcl">
<c-input v-model="model.cfabut.newdcl" :placeholder="$t('other.please_enter') + 'DCL数目'"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onCutpErr">
{{ $t('cutp.C0000009') }}
</c-button>
</c-col>
<c-col :span="12">
<span v-text="model.cfabut.newvrfnum" data-path=".cfabut.newvrfnum"> </span>
</c-col>
<c-col :span="12">
<c-form-item label="VRF数目" prop="cfabut.newvrf">
<c-input v-model="model.cfabut.newvrf" :placeholder="$t('other.please_enter') + 'VRF数目'"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onCfabutExt">
{{ $t('cutp.C0000008') }}
</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/Eadadd/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">
<!--cfabut PD000002 接口数据 -->
<el-tab-pane label="接口数据" name="sel">
<m-sel :model="model" :codes="codes" />
</el-tab-pane>
<!--eadp PD000001 外债海外代付-签约信息 -->
<el-tab-pane :label="$t('eadp.PD000001')" name="conp">
<m-conp :model="model" :codes="codes" />
</el-tab-pane>
<!--外债海外代付-变动信息 -->
<el-tab-pane label="外债海外代付-变动信息" name="dclpp">
<content>
<m-dclpp :model="model" :codes="codes" />
</content>
</el-tab-pane>
</c-tabs>
</el-form>
</div>
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Eadadd from "~/model/Eadadd"
import commonProcess from "~/mixin/commonProcess"
import Check from "~/model/Eadadd/Check"
import Default from "~/model/Eadadd/Default"
import Pattern from "~/model/Eadadd/Pattern"
import Sel from "./Sel"
import Conp from "./Conp"
import Dclpp from "./Dclpp"
export default {
name: "Eadadd",
components: {
"m-sel": Sel,
"m-conp": Conp,
"m-dclpp": Dclpp,
},
provide() {
return {
root: this
}
},
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
data() {
return {
tabVal: "sel",
trnName: "eadadd",
trnType: "",
model: new Eadadd().data,
checkRules: Check,
defaultRules: Default,
pattern: Pattern,
rules: null,
codes: {
...CodeTable,
},
}
},
methods: {
myTabClick(tab) {
this.tabClick(tab)
/**
* do it yourself
**/
}
},
created: async function () {
console.log("进入eadadd交易");
let rtnmsg = await this.init({})
if (rtnmsg.respCode == SUCCESS) {
this.updateModel(rtnmsg.data)
//TODO 处理数据逻辑
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
}
}
</script>
<style>
</style>
<template>
<div class="eibs-tab">
<!-- ======================= 左边 ========================= -->
<c-col :span="12" style="padding-right: 20px">
<!-- S0000016 : 外债编号 -->
<c-col :span="24">
<c-form-item :label="$t('pubp.S0000016')" prop="recgrp.bas.exdebtcode">
<c-input v-model="model.recgrp.bas.exdebtcode" maxlength="28"
:placeholder="$t('other.please_enter') + $t('pubp.S0000016')" disabled></c-input>
</c-form-item>
</c-col>
<!-- S0000017 : 操作类型 -->
<c-col :span="24">
<el-form-item :label="$t('pubp.S0000017')" prop="recgrp.bas.actiontype">
<c-select v-model="model.recgrp.bas.actiontype" style="width:100%"
:placeholder="$t('other.please_enter') + $t('pubp.S0000017')" :code="codes.actiontype" disabled>
</c-select>
</el-form-item>
</c-col>
<!-- S0000018 : 债务人代码 -->
<c-col :span="24">
<c-form-item :label="$t('pubp.S0000018')" prop="recgrp.bas.debtorcode">
<c-input v-model="model.recgrp.bas.debtorcode" maxlength="12"
:placeholder="$t('other.please_enter') + $t('pubp.S0000018')" disabled></c-input>
</c-form-item>
</c-col>
<!-- S0000019 : 债务类型 -->
<c-col :span="24">
<el-form-item :label="$t('pubp.S0000019')" prop="recgrp.bas.debtype">
<c-select v-model="model.recgrp.bas.debtype" style="width:100%"
:placeholder="$t('other.please_enter') + $t('pubp.S0000019')" disabled :code="codes.actiontype">
</c-select>
</el-form-item>
</c-col>
<!-- S0000020 : 起息日 -->
<c-col :span="24">
<el-form-item :label="$t('pubp.S0000020')" prop="recgrp.bas.valuedate">
<c-date-picker type="date" v-model="model.recgrp.bas.valuedate" style="width:100%"
:placeholder="$t('other.please_enter') + $t('pubp.S0000020')" disabled></c-date-picker>
</el-form-item>
</c-col>
<!-- S0000021 : 签约金额 -->
<c-col :span="24">
<c-col :span="13">
<el-form-item label="签约金额" prop="recgrp.bas.contractcurr">
<c-select v-model="model.recgrp.bas.contractcurr" style="width:100%" placeholder="请选择币种"
:code="codes.curtxt1" disabled>
</c-select>
</el-form-item>
</c-col>
<c-col :span="11">
<c-form-item label="" label-width="5px" prop="recgrp.bas.contractamount">
<c-input v-model="model.recgrp.bas.contractamount" placeholder="请输入签约金额" disabled></c-input>
</c-form-item>
</c-col>
</c-col>
<!-- S0000012 : 年化利率值 -->
<c-col :span="24">
<c-form-item label="年化利率值" prop="recgrp.bas.anninrate">
<c-input v-model="model.recgrp.bas.anninrate"
:placeholder="$t('other.please_enter') + $t('eadp.S0000012')" disabled></c-input>
</c-form-item>
</c-col>
<!-- S0000002 : 债权人代码 -->
<c-col :span="24">
<c-form-item :label="$t('pubp.S0000002')" prop="recgrp.bas.creditorcode">
<c-input v-model="model.recgrp.bas.creditorcode" maxlength="11"
:placeholder="$t('other.please_enter') + $t('pubp.S0000002')" disabled></c-input>
</c-form-item>
</c-col>
<!-- S0000004 : 债权人中文名称 -->
<c-col :span="24">
<c-form-item :label="$t('pubp.S0000004')" prop="recgrp.bas.creditorname">
<c-input v-model="model.recgrp.bas.creditorname" maxlength="128"
:placeholder="$t('other.please_enter') + $t('pubp.S0000004')" disabled></c-input>
</c-form-item>
</c-col>
<!-- S0000005 : 债权人英文名称 -->
<c-col :span="24">
<c-form-item :label="$t('pubp.S0000005')" prop="recgrp.bas.creditornamen">
<c-input v-model="model.recgrp.bas.creditornamen" maxlength="128"
:placeholder="$t('other.please_enter') + $t('pubp.S0000005')" disabled></c-input>
</c-form-item>
</c-col>
<!-- S0000019 : 申请人代码 -->
<c-col :span="24">
<c-form-item :label="$t('eadp.S0000019')" prop="recgrp.bas.appcode">
<c-input v-model="model.recgrp.bas.appcode" maxlength="18"
:placeholder="$t('other.please_enter') + $t('eadp.S0000019')" disabled></c-input>
</c-form-item>
</c-col>
<!-- S0000026 : 申请人名称 -->
<c-col :span="24">
<c-form-item :label="$t('eadp.S0000026')" prop="recgrp.bas.appname">
<c-input v-model="model.recgrp.bas.appname" maxlength="128"
:placeholder="$t('other.please_enter') + $t('eadp.S0000026')" disabled></c-input>
</c-form-item>
</c-col>
<!-- S0000023 : 备注 -->
<c-col :span="24">
<c-form-item :label="$t('eadp.S0000023')" prop="recgrp.bas.remark">
<c-input type="textarea" v-model="model.recgrp.bas.remark" maxlength="31" show-word-limit
:placeholder="$t('other.please_enter') + $t('eadp.S0000023')" disabled></c-input>
</c-form-item>
</c-col>
</c-col>
<!-- ======================= 右边 ========================= -->
<c-col :span="12" style="padding-left;: 20px">
<!-- S0000022 : 删除原因 -->
<c-col :span="24">
<c-form-item :label="$t('pubp.S0000022')" prop="recgrp.bas.actiondesc">
<c-input type="textarea" v-model="model.recgrp.bas.actiondesc" maxlength="32" rows="7"
show-word-limit :placeholder="$t('other.please_enter') + $t('pubp.S0000022')" disabled>
</c-input>
</c-form-item>
</c-col>
<c-col :span="24">
<el-form-item>
<c-checkbox v-model="model.recp.pubp.acp" class="checkbox-left" disabled>确认</c-checkbox>
</el-form-item>
</c-col>
<!-- S0000023 : 到期日 -->
<c-col :span="24">
<el-form-item :label="$t('pubp.S0000023')" prop="recgrp.bas.maturity">
<c-date-picker type="date" v-model="model.recgrp.bas.maturity" style="width:100%"
:placeholder="$t('other.please_enter') + $t('pubp.S0000023')" disabled></c-date-picker>
</el-form-item>
</c-col>
<!-- S0000024 : 是否不纳入跨境融资风险加权余额计算 -->
<c-col :span="24">
<el-form-item label="是否不纳入跨境融资风险加权余额计算" prop="recgrp.bas.spapfeboindex">
<c-select v-model="model.recgrp.bas.spapfeboindex" style="width:100%"
placeholder="请选择是否不纳入跨境融资风险加权余额计算" disabled :code="codes.spapfeboindex">
</c-select>
</el-form-item>
</c-col>
<!-- S0000011 : 是否浮动利率 -->
<c-col :span="24">
<el-form-item :label="$t('eadp.S0000011')" prop="recgrp.bas.floatrate">
<c-select v-model="model.recgrp.bas.floatrate" style="width:100%"
:placeholder="$t('other.please_enter') + $t('eadp.S0000011')" :code="codes.floatrate" disabled>
</c-select>
</el-form-item>
</c-col>
<!-- S0000003 : 债权人类型代码 -->
<c-col :span="24">
<el-form-item :label="$t('pubp.S0000003')" prop="recgrp.bas.creditortype">
<c-select v-model="model.recgrp.bas.creditortype" style="width:100%"
:placeholder="$t('other.please_enter') + $t('pubp.S0000003')" disabled
:code="codes.creditortype">
</c-select>
</el-form-item>
</c-col>
<!-- S0000010 : 债权人总部所在国 -->
<c-col :span="24">
<c-form-item label="债权人总部所在国家(地区)代码" prop="recgrp.bas.crehqcode">
<c-fullbox>
<c-input v-model="model.recgrp.bas.crehqcode" maxlength="3"
:placeholder="$t('other.please_enter') + '债权人总部所在国家(地区)代码'" disabled></c-input>
<template slot="footer">
<c-button size="small" style="margin-left: 10px; padding: 0 12px" type="primary" disabled
icon="el-icon-search" @click="onCouselCrehqselbut">
</c-button>
</template>
</c-fullbox>
</c-form-item>
</c-col>
<!-- S0000011 : 债权人经营地所在 -->
<c-col :span="24">
<c-form-item label="债权人经营地所在国家(地区)代码" prop="recgrp.bas.opercode">
<c-fullbox>
<c-input v-model="model.recgrp.bas.opercode" maxlength="3"
:placeholder="$t('other.please_enter') + '债权人经营地所在国家(地区)代码'" disabled></c-input>
<template slot="footer">
<c-button size="small" style="margin-left: 10px; padding: 0 12px" type="primary"
icon="el-icon-search" @click="onCouselOperselbut" disabled>
</c-button>
</template>
</c-fullbox>
</c-form-item>
</c-col>
<!-- S0000021 : 信用证承兑业务参号 -->
<c-col :span="24">
<c-form-item :label="$t('eadp.S0000021')" prop="recgrp.bas.inltcabuscode">
<c-input v-model="model.recgrp.bas.inltcabuscode" maxlength="32"
:placeholder="$t('other.please_enter') + $t('eadp.S0000021')" disabled></c-input>
</c-form-item>
</c-col>
<!-- S0000027 : 对方与本机构的关系 -->
<c-col :span="24">
<el-form-item :label="$t('eadp.S0000027')" prop="recgrp.bas.relation">
<c-select v-model="model.recgrp.bas.relation" style="width:100%"
:placeholder="$t('other.please_enter') + $t('eadp.S0000027')" disabled :code="codes.relation">
</c-select>
</el-form-item>
</c-col>
</c-col>
<!-- <c-col :span="12">
<c-button size="small" type="primary" @click="onCfabutSav">
{{ $t('cutp.C0000006') }}
</c-button>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onCfabutChk">
{{ $t('cutp.C0000007') }}
</c-button>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onCutpErr">
{{ $t('cutp.C0000009') }}
</c-button>
</c-col>
<c-col :span="12">
<span v-text="model.recp.pubp.creditcodwarn" data-path=".recp.pubp.creditcodwarn"> </span>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onCfabutExt">
{{ $t('cutp.C0000008') }}
</c-button>
</c-col> -->
<!-- S0000028 : 家(地区)代码 -->
<!-- S0000029 : 国家(地区)代码 -->
</div>
</template>
<script>
import Api from "~/service/Api"
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Eadame/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="12" style="padding-right: 20px">
<!-- 外债编号 -->
<c-col :span="24">
<c-form-item :label="$t('pubp.S0000016')" prop="recp.dclp.exdebtcode">
<c-input v-model="model.recp.dclp.exdebtcode" maxlength="28"
:placeholder="$t('other.please_enter') + $t('pubp.S0000016')" disabled></c-input>
</c-form-item>
</c-col>
<!-- 变动编号 -->
<c-col :span="24">
<el-form-item label="变动编号" prop="recp.dclp.changeno">
<c-input v-model="model.recp.dclp.changeno" style="width:100%" placeholder="请输入变动编号"
:code="codes.changeno" disabled>
</c-input>
</el-form-item>
</c-col>
<!-- 操作类型 -->
<c-col :span="24">
<el-form-item label="操作类型" prop="recp.dclp.actiontype">
<c-select v-model="model.recp.dclp.actiontype" style="width:100%" placeholder="请选择操作类型" disabled
:code="codes.actiontype">
</c-select>
</el-form-item>
</c-col>
<!-- 银行业务参号 -->
<c-col :span="24">
<el-form-item label="银行业务参号" prop="recp.dclp.buscode">
<c-input v-model="model.recp.dclp.buscode" style="width:100%" placeholder="请输入银行业务参号" disabled></c-input>
</c-input>
</el-form-item>
</c-col>
<!-- 变动类型 -->
<c-col :span="24">
<el-form-item label="变动类型" prop="recp.dclp.changtype">
<c-select v-model="model.recp.dclp.changtype" style="width:100%" placeholder="请选择变动类型" disabled
:code="codes.changtype">
</c-select>
</el-form-item>
</c-col>
<!-- 变动日期 -->
<c-col :span="24">
<el-form-item label="变动日期" prop="eblmod.ebl.reldat">
<c-date-picker type="date" v-model="model.recp.dclp.chdate" style="width:100%" disabled
placeholder="请选择变动日期"></c-date-picker>
</el-form-item>
</c-col>
<!-- 变动币种 -->
<c-col :span="24">
<el-form-item label="变动币种" prop="recp.dclp.chcurrency">
<c-select v-model="model.recp.dclp.chcurrency" style="width:100%" placeholder="请选择变动币种" disabled
:code="codes.curtxt1">
</c-select>
</el-form-item>
</c-col>
<!-- 变动金额 -->
<c-col :span="24">
<el-form-item label="变动金额" prop="recp.dclp.chamount">
<c-input v-model="model.recp.dclp.chamount" style="width:100%" placeholder="请输入变动金额" disabled>
</c-input>
</el-form-item>
</c-col>
<!-- 公允价值 -->
<c-col :span="24">
<el-form-item label="公允价值" prop="recp.dclp.fairvalue">
<c-input v-model="model.recp.dclp.fairvalue" style="width:100%" placeholder="请输入公允价值" disabled>
</c-input>
</el-form-item>
</c-col>
<!-- 备注 -->
<c-col :span="24">
<c-form-item :label="$t('eadp.S0000023')" prop="recp.dclp.remark">
<c-input type="textarea" v-model="model.recp.dclp.remark" maxlength="31" show-word-limit
:placeholder="$t('other.please_enter') + $t('eadp.S0000023')" disabled></c-input>
</c-form-item>
</c-col>
</c-col>
<!-- ======================= 右边 ========================= -->
<c-col :span="12" style="padding-left: 20px">
<!-- S0000022 : 删除原因 -->
<c-col :span="24">
<c-form-item :label="$t('pubp.S0000022')" prop="recp.dclp.actiondesc">
<c-input type="textarea" v-model="model.recp.dclp.actiondesc" maxlength="32" rows="7"
show-word-limit :placeholder="$t('other.please_enter') + $t('pubp.S0000022')" disabled>
</c-input>
</c-form-item>
</c-col>
<c-col :span="24">
<el-form-item>
<c-checkbox v-model="model.recp.dclp.acp" class="checkbox-left" disabled>确认</c-checkbox>
</el-form-item>
</c-col>
<c-col :span="24" style="text-align: right;margin-top: 300px;color:blue">
<c-form-item prop="recp.dclp.sta">
<!-- <c-select v-model="this.model.recp.dclp.sta" style="width:100%" placeholder="" disabled
:code="codes.sta1">
</c-select> -->
<span v-if="this.model.recp.dclp.sta == 'W'">待发送</span>
<span v-else-if="this.model.recp.dclp.sta == 'S'">已发送</span>
<span v-else-if="this.model.recp.dclp.sta == 'D'">已撤销</span>
<span v-else-if="this.model.recp.dclp.sta == 'G'">已删除</span>
<span v-else-if="this.model.recp.dclp.sta == 'P'">已作废</span>
<span v-else-if="this.model.recp.dclp.sta == 'E'">待修改</span>
</c-form-item>
</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/Eadinf/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="12" style="padding-right: 20px">
<!-- S0000019 : 发生日期 -->
<c-col :span="24">
<el-form-item label="发生日期" prop="eblmod.ebl.reldat">
<c-date-picker type="date" v-model="model.eblmod.ebl.reldat" style="width:100%" disabled
placeholder="请输入发生日期"></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item>
<c-checkbox v-model="model.cfabut.basflg" class="checkbox-left">签约信息</c-checkbox>
</el-form-item>
</c-col>
</c-col>
<!-- ======================= 右边 ========================= -->
<c-col :span="12" style="padding-left: 20px">
<!-- S0000008 : 业务所属机构 -->
<c-col :span="24">
<el-form-item label="业务所属机构" prop="cfabut.ownextkey">
<c-select v-model="model.cfabut.ownextkey" style="width:100%" disabled placeholder="请输入业务所属机构" :code="codes.ownextkey">
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item>
<c-checkbox v-model="model.cfabut.dclflg" class="checkbox-left">变动信息</c-checkbox>
</el-form-item>
</c-col>
</c-col>
<!-- <c-col :span="12">
<span v-text="model.cfabut.dcllab" data-path=".cfabut.dcllab"> </span>
</c-col>
<c-col :span="12">
<c-checkbox v-model="model.cfabut.dclflg">{{ $t('cfabut.C0000007') }}</c-checkbox>
</c-col>
<c-col :span="12">
<span v-text="model.cfabut.vrflab" data-path=".cfabut.vrflab"> </span>
</c-col>
<c-col :span="12">
<c-checkbox v-model="model.cfabut.vrfflg">{{ $t('cfabut.C0000017') }}</c-checkbox>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onCfabutSav">
{{ $t('cutp.C0000006') }}
</c-button>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onCfabutMod">
{{ $t('cutp.C0000010') }}
</c-button>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onCfabutChk">
{{ $t('cutp.C0000007') }}
</c-button>
</c-col>
<c-col :span="12">
<c-button size="small" icon="el-icon-delete" @click="onCfabutDel">
{{ $t('cutp.C0000011') }}
</c-button>
</c-col> -->
<!-- S0000028 : 代付利息 -->
<!-- <c-col :span="12">
<c-form-item label="代付还代利息" prop="eblmod.ebl.resamt">
<c-input v-model="model.eblmod.ebl.resamt" :placeholder="$t('other.please_enter') + '代付还代利息'"></c-input>
</c-form-item>
</c-col> -->
<!-- <c-col :span="12">
<c-checkbox v-model="model.cfabut.addnew">{{ $t('cfabut.C0000015') }}</c-checkbox>
</c-col>
<c-col :span="12">
<span v-text="model.cfabut.newdclnum" data-path=".cfabut.newdclnum"> </span>
</c-col>
<c-col :span="12">
<c-form-item label="DCL数目" prop="cfabut.newdcl">
<c-input v-model="model.cfabut.newdcl" :placeholder="$t('other.please_enter') + 'DCL数目'"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onCutpErr">
{{ $t('cutp.C0000009') }}
</c-button>
</c-col>
<c-col :span="12">
<span v-text="model.cfabut.newvrfnum" data-path=".cfabut.newvrfnum"> </span>
</c-col>
<c-col :span="12">
<c-form-item label="VRF数目" prop="cfabut.newvrf">
<c-input v-model="model.cfabut.newvrf" :placeholder="$t('other.please_enter') + 'VRF数目'"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onCfabutExt">
{{ $t('cutp.C0000008') }}
</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/Eadame/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">
<!--cfabut PD000002 接口数据 -->
<el-tab-pane label="接口数据" name="sel">
<m-sel :model="model" :codes="codes" />
</el-tab-pane>
<!--eadp PD000001 外债海外代付-签约信息 -->
<el-tab-pane :label="$t('eadp.PD000001')" name="conp">
<m-conp :model="model" :codes="codes" />
</el-tab-pane>
<!--外债海外代付-变动信息(1) -->
<el-tab-pane label="外债海外代付-变动信息(1)" name="dclpp">
<content>
<m-dclpp :model="model" :codes="codes" />
</content>
</el-tab-pane>
</c-tabs>
</el-form>
</div>
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Eadame from "~/model/Eadame"
import commonProcess from "~/mixin/commonProcess"
import Check from "~/model/Eadame/Check"
import Default from "~/model/Eadame/Default"
import Pattern from "~/model/Eadame/Pattern"
import Sel from "./Sel"
import Conp from "./Conp"
import Dclpp from "./Dclpp"
export default {
name: "Eadame",
components: {
"m-sel": Sel,
"m-conp": Conp,
"m-dclpp": Dclpp,
},
provide() {
return {
root: this
}
},
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
data() {
return {
tabVal: "sel",
trnName: "eadame",
trnType: "",
model: new Eadame().data,
checkRules: Check,
defaultRules: Default,
pattern: Pattern,
rules: null,
codes: {
},
}
},
methods: {
myTabClick(tab) {
this.tabClick(tab)
/**
* do it yourself
**/
}
},
created: async function () {
console.log("进入eadame交易");
let rtnmsg = await this.init({})
if (rtnmsg.respCode == SUCCESS) {
this.updateModel(rtnmsg.data)
//TODO 处理数据逻辑
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
}
}
</script>
<style>
</style>
<template>
<div class="eibs-tab">
<!-- ======================= 左边 ========================= -->
<c-col :span="12" style="padding-right: 20px">
<!-- S0000016 : 外债编号 -->
<c-col :span="24">
<c-form-item :label="$t('pubp.S0000016')" prop="recgrp.bas.exdebtcode">
<c-input v-model="model.recgrp.bas.exdebtcode" maxlength="28"
:placeholder="$t('other.please_enter') + $t('pubp.S0000016')" disabled></c-input>
</c-form-item>
</c-col>
<!-- S0000017 : 操作类型 -->
<c-col :span="24">
<el-form-item :label="$t('pubp.S0000017')" prop="recgrp.bas.actiontype">
<c-select v-model="model.recgrp.bas.actiontype" style="width:100%"
:placeholder="$t('other.please_enter') + $t('pubp.S0000017')" :code="codes.actiontype" disabled>
</c-select>
</el-form-item>
</c-col>
<!-- S0000018 : 债务人代码 -->
<c-col :span="24">
<c-form-item :label="$t('pubp.S0000018')" prop="recgrp.bas.debtorcode">
<c-input v-model="model.recgrp.bas.debtorcode" maxlength="12"
:placeholder="$t('other.please_enter') + $t('pubp.S0000018')" disabled></c-input>
</c-form-item>
</c-col>
<!-- S0000019 : 债务类型 -->
<c-col :span="24">
<el-form-item :label="$t('pubp.S0000019')" prop="recgrp.bas.debtype">
<c-select v-model="model.recgrp.bas.debtype" style="width:100%"
:placeholder="$t('other.please_enter') + $t('pubp.S0000019')" disabled :code="codes.actiontype">
</c-select>
</el-form-item>
</c-col>
<!-- S0000020 : 起息日 -->
<c-col :span="24">
<el-form-item :label="$t('pubp.S0000020')" prop="recgrp.bas.valuedate">
<c-date-picker type="date" v-model="model.recgrp.bas.valuedate" style="width:100%"
:placeholder="$t('other.please_enter') + $t('pubp.S0000020')" disabled></c-date-picker>
</el-form-item>
</c-col>
<!-- S0000021 : 签约金额 -->
<c-col :span="24">
<c-col :span="13">
<el-form-item label="签约金额" prop="recgrp.bas.contractcurr">
<c-select v-model="model.recgrp.bas.contractcurr" style="width:100%" placeholder="请选择币种" :code="codes.curtxt1" disabled>
</c-select>
</el-form-item>
</c-col>
<c-col :span="11">
<c-form-item label="" label-width="5px" prop="recgrp.bas.contractamount">
<c-input v-model="model.recgrp.bas.contractamount" placeholder="请输入签约金额" disabled></c-input>
</c-form-item>
</c-col>
</c-col>
<!-- S0000012 : 年化利率值 -->
<c-col :span="24">
<c-form-item label="年化利率值" prop="recgrp.bas.anninrate">
<c-input v-model="model.recgrp.bas.anninrate"
:placeholder="$t('other.please_enter') + $t('eadp.S0000012')" disabled></c-input>
</c-form-item>
</c-col>
<!-- S0000002 : 债权人代码 -->
<c-col :span="24">
<c-form-item :label="$t('pubp.S0000002')" prop="recgrp.bas.creditorcode">
<c-input v-model="model.recgrp.bas.creditorcode" maxlength="11"
:placeholder="$t('other.please_enter') + $t('pubp.S0000002')" disabled></c-input>
</c-form-item>
</c-col>
<!-- S0000004 : 债权人中文名称 -->
<c-col :span="24">
<c-form-item :label="$t('pubp.S0000004')" prop="recgrp.bas.creditorname">
<c-input v-model="model.recgrp.bas.creditorname" maxlength="128"
:placeholder="$t('other.please_enter') + $t('pubp.S0000004')" disabled></c-input>
</c-form-item>
</c-col>
<!-- S0000005 : 债权人英文名称 -->
<c-col :span="24">
<c-form-item :label="$t('pubp.S0000005')" prop="recgrp.bas.creditornamen">
<c-input v-model="model.recgrp.bas.creditornamen" maxlength="128"
:placeholder="$t('other.please_enter') + $t('pubp.S0000005')" disabled></c-input>
</c-form-item>
</c-col>
<!-- S0000019 : 申请人代码 -->
<c-col :span="24">
<c-form-item :label="$t('eadp.S0000019')" prop="recgrp.bas.appcode">
<c-input v-model="model.recgrp.bas.appcode" maxlength="18"
:placeholder="$t('other.please_enter') + $t('eadp.S0000019')" disabled></c-input>
</c-form-item>
</c-col>
<!-- S0000026 : 申请人名称 -->
<c-col :span="24">
<c-form-item :label="$t('eadp.S0000026')" prop="recgrp.bas.appname">
<c-input v-model="model.recgrp.bas.appname" maxlength="128"
:placeholder="$t('other.please_enter') + $t('eadp.S0000026')" disabled></c-input>
</c-form-item>
</c-col>
<!-- S0000023 : 备注 -->
<c-col :span="24">
<c-form-item :label="$t('eadp.S0000023')" prop="recgrp.bas.remark">
<c-input type="textarea" v-model="model.recgrp.bas.remark" maxlength="31" show-word-limit
:placeholder="$t('other.please_enter') + $t('eadp.S0000023')" disabled></c-input>
</c-form-item>
</c-col>
</c-col>
<!-- ======================= 右边 ========================= -->
<c-col :span="12" style="padding-left;: 20px">
<!-- S0000022 : 删除原因 -->
<c-col :span="24">
<c-form-item :label="$t('pubp.S0000022')" prop="recgrp.bas.actiondesc">
<c-input type="textarea" v-model="model.recgrp.bas.actiondesc" maxlength="32" rows="7"
show-word-limit :placeholder="$t('other.please_enter') + $t('pubp.S0000022')" disabled></c-input>
</c-form-item>
</c-col>
<c-col :span="24">
<el-form-item>
<c-checkbox v-model="model.recp.pubp.acp" class="checkbox-left" disabled>确认</c-checkbox>
</el-form-item>
</c-col>
<!-- S0000023 : 到期日 -->
<c-col :span="24">
<el-form-item :label="$t('pubp.S0000023')" prop="recgrp.bas.maturity">
<c-date-picker type="date" v-model="model.recgrp.bas.maturity" style="width:100%"
:placeholder="$t('other.please_enter') + $t('pubp.S0000023')" disabled></c-date-picker>
</el-form-item>
</c-col>
<!-- S0000024 : 是否不纳入跨境融资风险加权余额计算 -->
<c-col :span="24">
<el-form-item label="是否不纳入跨境融资风险加权余额计算" prop="recgrp.bas.spapfeboindex">
<c-select v-model="model.recgrp.bas.spapfeboindex" style="width:100%"
placeholder="请选择是否不纳入跨境融资风险加权余额计算" disabled :code="codes.spapfeboindex">
</c-select>
</el-form-item>
</c-col>
<!-- S0000011 : 是否浮动利率 -->
<c-col :span="24">
<el-form-item :label="$t('eadp.S0000011')" prop="recgrp.bas.floatrate">
<c-select v-model="model.recgrp.bas.floatrate" style="width:100%"
:placeholder="$t('other.please_enter') + $t('eadp.S0000011')" :code="codes.floatrate" disabled>
</c-select>
</el-form-item>
</c-col>
<!-- S0000003 : 债权人类型代码 -->
<c-col :span="24">
<el-form-item :label="$t('pubp.S0000003')" prop="recgrp.bas.creditortype">
<c-select v-model="model.recgrp.bas.creditortype" style="width:100%"
:placeholder="$t('other.please_enter') + $t('pubp.S0000003')" disabled :code="codes.creditortype">
</c-select>
</el-form-item>
</c-col>
<!-- S0000010 : 债权人总部所在国 -->
<c-col :span="24">
<c-form-item label="债权人总部所在国家(地区)代码" prop="recgrp.bas.crehqcode">
<c-fullbox>
<c-input v-model="model.recgrp.bas.crehqcode" maxlength="3"
:placeholder="$t('other.please_enter') + '债权人总部所在国家(地区)代码'" disabled></c-input>
<template slot="footer">
<c-button size="small" style="margin-left: 10px; padding: 0 12px" type="primary" disabled
icon="el-icon-search" @click="onCouselCrehqselbut">
</c-button>
</template>
</c-fullbox>
</c-form-item>
</c-col>
<!-- S0000011 : 债权人经营地所在 -->
<c-col :span="24">
<c-form-item label="债权人经营地所在国家(地区)代码" prop="recgrp.bas.opercode">
<c-fullbox>
<c-input v-model="model.recgrp.bas.opercode" maxlength="3"
:placeholder="$t('other.please_enter') + '债权人经营地所在国家(地区)代码'" disabled></c-input>
<template slot="footer">
<c-button size="small" style="margin-left: 10px; padding: 0 12px" type="primary"
icon="el-icon-search" @click="onCouselOperselbut" disabled>
</c-button>
</template>
</c-fullbox>
</c-form-item>
</c-col>
<!-- S0000021 : 信用证承兑业务参号 -->
<c-col :span="24">
<c-form-item :label="$t('eadp.S0000021')" prop="recgrp.bas.inltcabuscode">
<c-input v-model="model.recgrp.bas.inltcabuscode" maxlength="32"
:placeholder="$t('other.please_enter') + $t('eadp.S0000021')" disabled></c-input>
</c-form-item>
</c-col>
<!-- S0000027 : 对方与本机构的关系 -->
<c-col :span="24">
<el-form-item :label="$t('eadp.S0000027')" prop="recgrp.bas.relation">
<c-select v-model="model.recgrp.bas.relation" style="width:100%"
:placeholder="$t('other.please_enter') + $t('eadp.S0000027')" disabled :code="codes.relation">
</c-select>
</el-form-item>
</c-col>
</c-col>
<!-- <c-col :span="12">
<c-button size="small" type="primary" @click="onCfabutSav">
{{ $t('cutp.C0000006') }}
</c-button>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onCfabutChk">
{{ $t('cutp.C0000007') }}
</c-button>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onCutpErr">
{{ $t('cutp.C0000009') }}
</c-button>
</c-col>
<c-col :span="12">
<span v-text="model.recp.pubp.creditcodwarn" data-path=".recp.pubp.creditcodwarn"> </span>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onCfabutExt">
{{ $t('cutp.C0000008') }}
</c-button>
</c-col> -->
<!-- S0000028 : 家(地区)代码 -->
<!-- S0000029 : 国家(地区)代码 -->
</div>
</template>
<script>
import Api from "~/service/Api"
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Eadinf/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="12" style="padding-right: 20px">
<!-- 外债编号 -->
<c-col :span="24">
<c-form-item :label="$t('pubp.S0000016')" prop="recp.dclp.exdebtcode">
<c-input v-model="model.recp.dclp.exdebtcode" maxlength="28"
:placeholder="$t('other.please_enter') + $t('pubp.S0000016')" disabled></c-input>
</c-form-item>
</c-col>
<!-- 变动编号 -->
<c-col :span="24">
<el-form-item label="变动编号" prop="recp.dclp.changeno">
<c-input v-model="model.recp.dclp.changeno" style="width:100%" placeholder="请输入变动编号"
:code="codes.changeno" disabled>
</c-input>
</el-form-item>
</c-col>
<!-- 操作类型 -->
<c-col :span="24">
<el-form-item label="操作类型" prop="recp.dclp.actiontype">
<c-select v-model="model.recp.dclp.actiontype" style="width:100%" placeholder="请选择操作类型" disabled
:code="codes.actiontype">
</c-select>
</el-form-item>
</c-col>
<!-- 银行业务参号 -->
<c-col :span="24">
<el-form-item label="银行业务参号" prop="recp.dclp.buscode">
<c-input v-model="model.recp.dclp.buscode" style="width:100%" placeholder="请输入银行业务参号" disabled></c-input>
</c-input>
</el-form-item>
</c-col>
<!-- 变动类型 -->
<c-col :span="24">
<el-form-item label="变动类型" prop="recp.dclp.changtype">
<c-select v-model="model.recp.dclp.changtype" style="width:100%" placeholder="请选择变动类型" disabled
:code="codes.changtype">
</c-select>
</el-form-item>
</c-col>
<!-- 变动日期 -->
<c-col :span="24">
<el-form-item label="变动日期" prop="eblmod.ebl.reldat">
<c-date-picker type="date" v-model="model.recp.dclp.chdate" style="width:100%" disabled
placeholder="请选择变动日期"></c-date-picker>
</el-form-item>
</c-col>
<!-- 变动币种 -->
<c-col :span="24">
<el-form-item label="变动币种" prop="recp.dclp.chcurrency">
<c-select v-model="model.recp.dclp.chcurrency" style="width:100%" placeholder="请选择变动币种" disabled
:code="codes.curtxt1">
</c-select>
</el-form-item>
</c-col>
<!-- 变动金额 -->
<c-col :span="24">
<el-form-item label="变动金额" prop="recp.dclp.chamount">
<c-input v-model="model.recp.dclp.chamount" style="width:100%" placeholder="请输入变动金额" disabled>
</c-input>
</el-form-item>
</c-col>
<!-- 公允价值 -->
<c-col :span="24">
<el-form-item label="公允价值" prop="recp.dclp.fairvalue">
<c-input v-model="model.recp.dclp.fairvalue" style="width:100%" placeholder="请输入公允价值" disabled>
</c-input>
</el-form-item>
</c-col>
<!-- 备注 -->
<c-col :span="24">
<c-form-item :label="$t('eadp.S0000023')" prop="recp.dclp.remark">
<c-input type="textarea" v-model="model.recp.dclp.remark" maxlength="31" show-word-limit
:placeholder="$t('other.please_enter') + $t('eadp.S0000023')" disabled></c-input>
</c-form-item>
</c-col>
</c-col>
<!-- ======================= 右边 ========================= -->
<c-col :span="12" style="padding-left: 20px">
<!-- S0000022 : 删除原因 -->
<c-col :span="24">
<c-form-item :label="$t('pubp.S0000022')" prop="recp.dclp.actiondesc">
<c-input type="textarea" v-model="model.recp.dclp.actiondesc" maxlength="32" rows="7"
show-word-limit :placeholder="$t('other.please_enter') + $t('pubp.S0000022')" disabled>
</c-input>
</c-form-item>
</c-col>
<c-col :span="24">
<el-form-item>
<c-checkbox v-model="model.recp.dclp.acp" class="checkbox-left" disabled>确认</c-checkbox>
</el-form-item>
</c-col>
<c-col :span="24" style="text-align: right;margin-top: 300px;color:blue">
<c-form-item prop="recp.dclp.sta">
<!-- <c-select v-model="this.model.recp.dclp.sta" style="width:100%" placeholder="" disabled
:code="codes.sta1">
</c-select> -->
<span v-if="this.model.recp.dclp.sta == 'W'">待发送</span>
<span v-else-if="this.model.recp.dclp.sta == 'S'">已发送</span>
<span v-else-if="this.model.recp.dclp.sta == 'D'">已撤销</span>
<span v-else-if="this.model.recp.dclp.sta == 'G'">已删除</span>
<span v-else-if="this.model.recp.dclp.sta == 'P'">已作废</span>
<span v-else-if="this.model.recp.dclp.sta == 'E'">待修改</span>
</c-form-item>
</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/Eadinf/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="12" style="padding-right: 20px">
<!-- S0000019 : 发生日期 -->
<c-col :span="24">
<el-form-item label="发生日期" prop="eblmod.ebl.reldat">
<c-date-picker type="date" v-model="model.eblmod.ebl.reldat" style="width:100%"
placeholder="请输入发生日期"></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item>
<c-checkbox v-model="model.cfabut.basflg" class="checkbox-left">签约信息</c-checkbox>
</el-form-item>
</c-col>
</c-col>
<!-- ======================= 右边 ========================= -->
<c-col :span="12" style="padding-left: 20px">
<!-- S0000008 : 业务所属机构 -->
<c-col :span="24">
<el-form-item label="业务所属机构" prop="cfabut.ownextkey">
<c-select v-model="model.cfabut.ownextkey" style="width:100%" placeholder="请输入业务所属机构" :code="codes.ownextkey">
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item>
<c-checkbox v-model="model.cfabut.dclflg" class="checkbox-left">变动信息</c-checkbox>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24" style="margin-top: 10px">
<c-button class="medium_bcs" size="medium" style="margin-left: 80px" type="primary" @click="toEadame">修改
</c-button>
<c-button class="medium_bcs" size="medium" type="primary" @click="toEaddel">删除
</c-button>
</c-col>
<!-- <div>
<span v-text="model.cfabut.dcllab" data-path=".cfabut.dcllab"> </span>
<c-col :span="12">
<span v-text="model.cfabut.vrflab" data-path=".cfabut.vrflab"> </span>
</c-col>
<c-col :span="12">
<c-checkbox v-model="model.cfabut.vrfflg">{{ $t('cfabut.C0000017') }}</c-checkbox>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onCfabutSav">
{{ $t('cutp.C0000006') }}
</c-button>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onCfabutMod">
{{ $t('cutp.C0000010') }}
</c-button>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onCfabutChk">
{{ $t('cutp.C0000007') }}
</c-button>
</c-col>
<c-col :span="12">
<c-button size="small" icon="el-icon-delete" @click="onCfabutDel">
{{ $t('cutp.C0000011') }}
</c-button>
</c-col>
<c-col :span="12">
<c-form-item label="代付还代利息" prop="eblmod.ebl.resamt">
<c-input v-model="model.eblmod.ebl.resamt" :placeholder="$t('other.please_enter') + '代付还代利息'">
</c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-checkbox v-model="model.cfabut.addnew">{{ $t('cfabut.C0000015') }}</c-checkbox>
</c-col>
<c-col :span="12">
<span v-text="model.cfabut.newdclnum" data-path=".cfabut.newdclnum"> </span>
</c-col>
<c-col :span="12">
<c-form-item label="DCL数目" prop="cfabut.newdcl">
<c-input v-model="model.cfabut.newdcl" :placeholder="$t('other.please_enter') + 'DCL数目'"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onCutpErr">
{{ $t('cutp.C0000009') }}
</c-button>
</c-col>
<c-col :span="12">
<span v-text="model.cfabut.newvrfnum" data-path=".cfabut.newvrfnum"> </span>
</c-col>
<c-col :span="12">
<c-form-item label="VRF数目" prop="cfabut.newvrf">
<c-input v-model="model.cfabut.newvrf" :placeholder="$t('other.please_enter') + 'VRF数目'"></c-input>
</c-form-item>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onCfabutExt">
{{ $t('cutp.C0000008') }}
</c-button>
</c-col>
</div> -->
</div>
</template>
<script>
import Api from "~/service/Api"
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Eadinf/Event"
export default {
inject: ['root'],
props: ["model", "codes"],
mixins: [commonProcess],
data() {
return {
}
},
methods: {
...Event,
toEadame () {
},
toEaddel () {
}
},
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">
<!--cfabut PD000002 接口数据 -->
<el-tab-pane label="接口数据" name="sel">
<content>
<m-sel :model="model" :codes="codes" />
</content>
</el-tab-pane>
<!--eadp PD000001 外债海外代付-签约信息 -->
<el-tab-pane label="外债海外代付-签约信息" name="conp">
<content>
<m-conp :model="model" :codes="codes" />
</content>
</el-tab-pane>
<!--外债海外代付-变动信息(1) -->
<el-tab-pane label="外债海外代付-变动信息(1)" name="dclpp">
<content>
<m-dclpp :model="model" :codes="codes" />
</content>
</el-tab-pane>
</c-tabs>
</el-form>
</div>
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Eadinf from "~/model/Eadinf"
import commonProcess from "~/mixin/commonProcess"
import Check from "~/model/Eadinf/Check"
import Default from "~/model/Eadinf/Default"
import Pattern from "~/model/Eadinf/Pattern"
import Sel from "./Sel"
import Conp from "./Conp"
import Dclpp from "./Dclpp"
export default {
name: "Eadinf",
components: {
"m-sel": Sel,
"m-conp": Conp,
"m-dclpp": Dclpp,
},
provide() {
return {
root: this
}
},
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
data() {
return {
tabVal: "sel",
trnName: "eadinf",
trnType: "",
model: new Eadinf().data,
checkRules: Check,
defaultRules: Default,
pattern: Pattern,
rules: null,
codes: {
...CodeTable,
},
}
},
methods: {
myTabClick(tab) {
this.tabClick(tab)
/**
* do it yourself
**/
}
},
created: async function () {
console.log("进入eadinf交易");
let rtnmsg = await this.init({})
if (rtnmsg.respCode == SUCCESS) {
this.updateModel(rtnmsg.data)
//TODO 处理数据逻辑
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
}
}
</script>
<style>
</style>
......@@ -205,6 +205,9 @@ export default {
{ inifrm: "28", ininam: "资本项目申报", pntmiu: "" },
{ inifrm: "cfasel", ininam: "申报查询入口", pntmiu: "28" },
{ inifrm: "eadadd", ininam: "增--外债海外代付", pntmiu: "28" },
{ inifrm: "eadinf", ininam: "查--外债海外代付", pntmiu: "28" },
{ inifrm: "eadame", ininam: "改--外债海外代付", pntmiu: "28" },
// { inifrm: "3", ininam: "出口信用证", pntmiu: "" },
// { inifrm: "infled", ininam: "出口信用证交易查询", pntmiu: "3" },
......
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