Commit df6ed6e6 by 李少勇

zptadv 交易修改

parent 53df2a35
......@@ -43,5 +43,6 @@ const RemittanceRouter = [
// 代理行
{ path: 'zptsel', component: () => import('./Zptsel/views'), name: 'zptsel', meta: { keepAlive: true, title: '转汇款',module: 'Remittance' } },
{ path: 'zptadv', component: () => import('./Zptadv/views'), name: 'zptadv', meta: { keepAlive: true, title: '转汇款汇入',module: 'Remittance' } },
]
export default RemittanceRouter
import Utils from "~/utils"
export default {
methods: {
buildPtspta(ptsptaObj) {
let pts = ptsptaObj.pts;
let ptspta = {
rol: pts.rol,
name: pts.nam,
ptyinr: pts.ptyinr,
ptainr: pts.ptainr,
extkey: pts.extkey,
nam: pts.nam,
dftdsp: pts.dftdsp,
dftcur: pts.dftcur,
dftact: pts.dftact,
dftfeecur: pts.dftfeecur,
dftactptainr: pts.dftactptainr,
glggrpflg: pts.glggrpflg,
adrblk: pts.adrblk,
pts: ptsptaObj.pts
};
return ptspta;
},
buildCommonData(model, trnName) {
let ptsptaList = Utils.formatPtspta(model.cpdgrp, this.buildPtspta);
let dataObj = {
rec: {
objtyp: 'CPD',
accmod: model.cpdgrp.rec.accmod,
paytyp: model.cpdgrp.rec.paytyp,
paytype: model.cpdgrp.rec.paytype,
swftyp: model.cpdgrp.rec.swftyp,
feetyp: model.cpdgrp.rec.detchgcod,
cptrou: model.cpdgrp.rec.cptrou,
objinr: model.cpdgrp.rec.inr,
branchInr: model.cpdgrp.rec.branchinr,
ownref: model.cpdgrp.rec.ownref,
opndat: model.cpdgrp.rec.opndat,
paydat: model.cpdgrp.rec.paydat,
expflg: model.cpdgrp.rec.expflg,
orcnam: model.cpdgrp.orc.pts.nam,
orcact: model.cpdgrp.rec.orcact,
pyeact: model.cpdgrp.rec.pyeact,
orcctycod: model.cpdgrp.rec.orcctycod,
tsnflg: model.cpdgrp.rec.tsnflg,
//收支申报用
zmqacc: model.setmod.zmqacc,
doccur: model.setmod.doccur,
feecorrol: model.setmod.feecorrol,
//==========
expdat: model.cpdgrp.rec.expdat,
hndtyp: model.cpdgrp.rec.hndtyp,//"OC",
gartyp: model.cpdgrp.rec.gartyp,
fingua: model.cpdgrp.rec.fingua,
fromflg: model.cpdgrp.rec.fromflg,
othersno: model.cpdgrp.rec.othersno,
sndto: model.cpdgrp.rec.sndto,//"BEN",
giduil: model.cpdgrp.rec.giduil,
purpos: model.cpdgrp.rec.purpos,
revflg: model.cpdgrp.rec.revflg,
cnfsta: model.cpdgrp.rec.cnfsta,
fenlishi: model.cpdgrp.rec.fenlishi,
cfaguatyp: model.cpdgrp.rec.cfaguatyp,
stacty: model.cpdgrp.rec.stacty,
orddat: model.cpdgrp.rec.orddat,
orcref: model.cpdgrp.rec.orcref,
exptyp: model.cpdgrp.rec.exptyp,
liatypc: model.cpdgrp.rec.liatypc,
liaflg: model.cpdgrp.rec.liaflg,
liadat: model.cpdgrp.rec.liadat,
chato: model.cpdgrp.rec.chato,
payeecountcode: model.cpdgrp.rec.countrycod,
draweecountcode: model.cptp.draweecountcode,
delto: model.cpdgrp.rec.delto,
deltoadr: model.cpdgrp.blk.deltoadr,
entmodVisflg: model.entmod.visflg,
detchgcod: model.cpdgrp.rec.detchgcod,
satbch: model.cipmod.satbch,
satbchnam: model.cipmod.satbchnam,
ehtyp: model.cpdgrp.rec.ehtyp,
commet: model.attp.commet,
com102: model.attp.com102,
type: model.type,
operation:this.$route.query.type,
cpdSwiftBizInfo: {
m09issbic: model.swiadd.m09issbic,
m10issadrblk: model.swiadd.m10issadrblk,
m12opndat: model.swiadd.m12opndat,
m02advadrblk: model.swiadd.m02advadrblk,
m19advdat: model.swiadd.m19advdat,
addtxtfld: model.swiadd.addtxtfld,
m01advbic: model.swiadd.m01advbic,
addamtcov: model.swiadd.addamtcov,
m21moddat: model.swiadd.m21moddat,
ametxt: model.swiadd.ametxt,
contag72: model.swiadd.contag72,
},
cpdCipsBizInfo: {
fkrkhh: model.cipmod.fkrkhh,
fkrdz2: model.cipmod.fkrdz2,
fkrdz3: model.cipmod.fkrdz3,
fkrdz4: model.cipmod.fkrdz4,
fkrdz5: model.cipmod.fkrdz5,
},
cpdJnwbBizInfo:{
bustyp: model.attp.bustyp,
ywlxdm: model.attp.ywlxdm,
sbnkno: model.attp.sbnkno,
rbnkno: model.attp.rbnkno,
zhogjh: model.attp.zhogjh,
rmbdet: model.attp.rmbdet,
fabaoh: model.attp.fabaoh,
pyeadr: model.attp.pyeadrfxps,
orcadr: model.attp.orcadrfxps,
},
cpdOtherBizInfo: {
agname2: model.hvpmod.agname2,
agnamedl: model.hvpmod.agnamedl,
fkrmc2: model.hvpmod.fkrmc2,
fkrmc3: model.hvpmod.fkrmc3,
fkrdz2: model.hvpmod.fkrdz2,
fkrdz3: model.hvpmod.fkrdz3,
fkrdz4: model.hvpmod.fkrdz4,
fkrdz5: model.hvpmod.fkrdz5,
remark: model.hvpmod.remark,
remark1: model.hvpmod.remark1,
}
},
cbsMap: {
MAX: model.cpdgrp.cbs.max,
OPN1: model.cpdgrp.cbs.opn1,
MAC: model.cpdgrp.cbs.mac,
MAC2: model.cpdgrp.cbs.mac2,
OPC2: model.cpdgrp.cbs.opc2,
CNF: model.cpdgrp.cbs.cnf,
MAX2: model.cpdgrp.cbs.max2,
},
ptsList: ptsptaList,
transName: trnName,
};
console.log(model);
return dataObj
},
buildRobbop(model, trnName) {
let params = {
...this.buildCommonData(model, trnName),
rmb2101: model.rmbbop.rmb2101,
rmbbop2111Vo: model.rmbbop.rmbbop2111Vo,
rmb2112: model.rmbbop.rmb2112,
rmb2122: model.rmbbop.rmb2122,
rmbbop2123Vo: model.rmbbop.rmbbop2123Vo,
};
return params
},
buildCfap(model, trnName) {
let params = {
...this.buildCommonData(model, trnName),
amdRec: {
gcdownref: "",
chgdat: "",
chgamt: "",
},
cfatyp: "A",
ownextkey: model.cfagit.ownextkey,
dclflg: model.cfagit.dclflg,
cfaflg: model.cfagit.cfaflg,
basflg: model.cfagit.basflg,
vrfflg: model.cfagit.vrfflg,
recgrp: model.cfagit.recgrp,
};
return params
},
// buildBopgat(model, trnName) {
// let params = {
// ...this.buildCommonData(model, trnName),
// amdRec: {
// gcdownref: "",
// chgdat: "",
// chgamt: "",
// },
// userId: window.sessionStorage.userId,
// ownextkey: model.bopgat.ownextkey,
// dclflg: model.bopgat.dclflg,
// szflg: model.bopgat.szflg,
// basflg: model.bopgat.basflg,
// vrfflg: model.bopgat.vrfflg,
// dbagrp: model.bopgat.dbagrp,
// dbdgrp: model.bopgat.dbdgrp,
// setFelList: model.setmod.setfeg.setfel,
// setFolList: model.setmod.setfog.setfol,
// setgll: model.setmod.setglg.setgll,
// doccur:model.setmod.doccur,
// feecorrol:model.setmod.feecorrol,
// commetItems:{
// v72: model.swiadd.contag72,
// contag72: model.cpdgrp.blk.contag72,
// commet: model.cptp.commet,
// fuynh2: model.cipmod.fuynh2,
// fuynh3: model.cipmod.fuynh3,
// fuynh4: model.cipmod.fuynh4,
// fuyns1: model.cipmod.fuyns1,
// fuyns2: model.cipmod.fuyns2,
// fuyns3: model.cipmod.fuyns3,
// fuyns4: model.cipmod.fuyns4,
// covfuy1: model.cipmod.covfuy,
// covfuy2: model.cipmod.covfy2,
// covfuy3: model.cipmod.covfy3,
// covfuy4: model.cipmod.covfy4,
// fecomm: model.hvpmod.fecomm,
// attcommet: model.attp.commet,
// attcommet72: model.attp.com102,
// }
// };
// return params
// },
}
}
import Api from '~/service/Api';
import commonFunctions from '~/mixin/commonFunctions.js';
import Utils from "~/utils/index";
export default {
mixins: [commonFunctions],
methods: {
// 获取业务编号
async getOwnref(){
if (this.model.cpdgrp.rec.cptrou == "") {
this.$notify.error({ title: '错误', message: '请先选择邮路!' });
return;
}
if (this.model.cpdgrp.pye.pts.ptainr == "") {
this.$notify.error({ title: '错误', message: '请先选择收款人!' });
return;
}
let params = {
ownref: this.model.cpdgrp.rec.ownref,
ptainr: this.model.cpdgrp.pye.pts.ptainr,
}
const loading = this.loading();
let res = await Api.post(`/${this.moduleRouter()}/zptadv/getRef`, params);
loading.close();
if (res.respCode === SUCCESS) {
this.model.cpdgrp.rec.ownref = res.data;
} else {
this.$message.error(res.respMsg);
}
},
change2112(e) {
if (e === undefined) {
return
}
this.model.rmbbop.rmb2112.rmbflg = this.model.rmbbop.rmb2101.rmbflg;
},
changeIskjxdrz(e) {
if (e === undefined) {
return
}
this.model.rmbbop.rmb2108.rmbflg = this.model.rmbbop.rmb2108.iskjxdrz != 'X' ? '2' : '1';
},
getUetr() {
if (this.model.cptp.openuetr == 'Y') {
let sysno = this.model.cpdgrp.rec.sysno;
let swftyp = this.model.cpdgrp.rec.swftyp;
let isoType = this.model.cptp.isomsgtyp;
if (!this.model.cpdgrp.rec.sysno||!this.model.cpdgrp.rec.swftyp) {
this.$notify.error({ title: '错误', message: '请先填写清算编号、报文类型!' });
return
}
const loading = this.loading();
Api.post(`/${this.moduleRouter()}/zptadv/uetr?sysno=${sysno}&swftyp=${swftyp}&isoType=${isoType}`).then(res => {
loading.close();
if (res.respCode == SUCCESS) {
if(res.data){
this.model.cpdgrp.rec.uetr = res.data;
this.model.cptp.uetr = res.data;
}
} else {
this.$notify({
title: "失败",
message: "获取失败。" + res.respMsg,
type: "error",
});
}
}).catch(() => {
loading.close();
});
} else {
this.$notify({
title: "失败",
message: "接口未开",
type: "error",
});
}
},
swftypChange(){
this.model.cptp.uetr = "";
},
feetypChange(){
// this.model.cpdgrp.rec.curf33b = "";
// this.model.cpdgrp.rec.amtf33b = "";
// this.model.cpdgrp.rec.cur71f = "";
// this.model.cpdgrp.rec.amt71f = "";
// this.model.cpdgrp.rec.f36 = "";
if(this.model.cpdgrp.rec.detchgcod!= '' && (this.model.cpdgrp.rec.detchgcod=='OUR'||this.model.cpdgrp.rec.detchgcod=='DEBT')){
this.model.cpdgrp.rec.chato = 'B';
}else{
this.model.cpdgrp.rec.chato = 'U';
}
},
jnwbSwftyp(){
this.model.attp.ywlxdm = "";
this.model.attp.bustyp = "";
},
// 事件 -- 汇款人常驻国家/地区代码
draweecountcodeChange() {
if (this.model.cptp.draweecountcode != '') {
this.model.cpdgrp.rec.orcctycod = this.model.cptp.draweecountcode;
}
},
manbodChange(){
if(this.model.cpdgrp.rec.cptrou == 'HNHZ' && this.model.cpdgrp.rec.manbod =="0" && this.model.cpdgrp.cbs.nom1.cur == 'CNY'){
this.model.cpdgrp.cbs.nom1.cur = '';
this.model.cpdgrp.cbs.nom1.amt = '';
}
},
// Pyeact输入框失焦
// handlePyeactBlur (e) {
// let pyeact = this.model.cpdgrp.rec.pyeact;
// if (pyeact && pyeact !== this.markPyeact) {
// this.searchPyeact()
// }
// },
// searchPyeact(){
// let pyeact = this.model.cpdgrp.rec.pyeact;
// const loading = this.loading();
// Api.post(`/${this.moduleRouter()}/zptadv/searchPtyByAct?actExtkey=${pyeact}`).then(res => {
// loading.close();
// if (res.respCode == SUCCESS) {
// this.markPyeact = res.data;
// this.model.cpdgrp.rec.apl.pts.extkey;
// } else {
// this.$notify({
// title: "失败",
// message: "没有查找到收款人账号对应的客户信息!",
// type: "error",
// });
// }
// }).catch(() => {
// loading.close();
// });
// },
}
}
import moment from 'moment';
import LimitbodyCheck from '~/components/business/limitbody/model/check.js';
import CfagitCheck from '~/components/business/Cfagit/model/check.js';
import Utils from "~/utils"
import RmbbopCheck from "../../../../components/business/rmb/rmbbop/model/check";
import BopgatCheck from "../../../../components/business/Bopgat/model/check"
export default function () {
return {
...new RmbbopCheck(this).check,
...new BopgatCheck(this).check,
//邮路选择
"cpdgrp.rec.cptrou": [
{ type: "string", required: true, message: "必输项" },
],
"cpdgrp.rec.swftyp": [
{ type: "string", required: true, message: "必输项" },
],
//基本信息
//处理方式
"cpdgrp.rec.accmod": [
{ type: "string", required: true, message: "必输项" },
],
//汇款性质
"cpdgrp.rec.trntyp": [
{ type: "string", required: true, message: "必输项" },
],
"cpdgrp.rec.ownref": [
{ type: "string", required: true, message: "必输项" },
{ max: 16, message: "长度不能超过16" }
],
//汇款币种/金额
"cpdgrp.cbs.nom1.cur": [
{ type: "string", required: true, message: "必输项" },
],
"cpdgrp.cbs.nom1.amt": [
{ type: "string", required: true, message: "必输项" },
{ max: 18, message: "整数位不能超过14位" },
{ pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
//汇款语种
"cptp.payuil": [
{ type: "string", required: true, message: "必输项" },
],
//汇款人
"cpdgrp.orc.pts.extkey": [
{ type: "string", required: true, message: "必输项" },
{ max: 16, message: "长度不能超过16" }
],
// "cpdgrp.orc.pts.adrblk": [
// { type: "string", required: true, message: "必输项" },
// { max: 35, message: "长度不能超过35" }
// ],
//收款人
"cpdgrp.pye.pts.extkey": [
{ type: "string", required: true, message: "必输项" },
{ max: 16, message: "长度不能超过16" }
],
//付款人常驻国家/地区代码
"cptp.draweecountcode": [
{ type: "string", required: true, message: "必输项" },
{ max: 3, message: "长度不能超过3" }
],
}
}
import CommonCheck from './check.js';
export default function () {
return {
...CommonCheck.apply(this),
//清算编号
"cpdgrp.rec.sysno": [
{ type: "string", required: true, message: "必输项" },
{ max: 21, message: "长度不能超过21" }
],
//解付日期
"cpdgrp.rec.paydat": [
{ type: "string", required: true, message: "输入正确的日期" }
],
"cpdgrp.rec.detchgcod": [
{ type: "string", required: true, message: "必输项" },
],
// 收款行开户行行号 .trnmod.cipmod.pyebchkey"
"cipmod.pyebchkey": [{
validator: (rule, value, callback) => {
if (!value && !this.model.cipmod.pyebchnam) {
callback(new Error('收款行开户行行号和收款行开户行名称至少填写一个!'));
} else {
//校验通过
callback();
}
},
trigger: ['blur', 'change']
}],
// 收款行开户行名称 .trnmod.cipmod.pyebchnam
"cipmod.pyebchnam": [{
validator: (rule, value, callback) => {
if (!value && !this.model.cipmod.pyebchkey) {
callback(new Error('收款行开户行行号和收款行开户行名称至少填写一个!'));
} else {
//校验通过
callback();
}
},
trigger: ['blur', 'change']
}],
// 付款行开户行行号 .trnmod.cipmod.fkrkhh
"cipmod.fkrkhh": [{
validator: (rule, value, callback) => {
if (!value && !this.model.cipmod.fukrhm) {
callback(new Error('付款行开户行行号和付款行开户行名称至少填写一个!'));
} else {
//校验通过
callback();
}
},
trigger: ['blur', 'change']
}],
// 付款行开户行名称 .trnmod.cipmod.fukrhm
"cipmod.fukrhm": [{
validator: (rule, value, callback) => {
if (!value && !this.model.cipmod.fkrkhh) {
callback(new Error('付款行开户行行号和付款行开户行名称至少填写一个!'));
} else {
//校验通过
callback();
}
},
trigger: ['blur', 'change']
}],
}
}
import CommonCheck from './check.js';
export default function () {
return {
...CommonCheck.apply(this),
//发报行
"cpdgrp.snd.pts.extkey": [
{ type: "string", required: false, message: "必输项" },
{ max: 16, message: "长度不能超过16" }
],
"cpdgrp.pyb.pts.adrblk": [
{ type: "string", required: false, message: "必输项" }
],
"cpdgrp.ori.pts.adrblk": [
{ type: "string", required: false, message: "必输项" }
],
"cpdgrp.rec.manbod": [{
required: true,
message: "必输项"
}],
"attp.acctyp": [{
required: true,
message: "必输项"
}],
"attp.bustyp": [{
required: true,
message: "必输项"
}],
}
}
import CommonCheck from './check.js';
export default function () {
return {
...CommonCheck.apply(this),
"cpdgrp.rec.sysno": [
{ type: "string", required: true, message: "必输项" },
{ max: 21, message: "长度不能超过21" }
],
"cpdgrp.rec.paydat": [
{ type: "string", required: true, message: "输入正确的日期" }
],
"cpdgrp.rec.valdat": [
{ type: "string", required: true, message: "输入正确的日期" }
],
//发报行
"cpdgrp.snd.pts.extkey": [
{ type: "string", required: true, message: "必输项" },
{ max: 16, message: "长度不能超过16" }
],
"cpdgrp.pyb.pts.adrblk": [
{ type: "string", required: false, message: "必输项" }
],
"cpdgrp.ori.pts.adrblk": [
{ type: "string", required: false, message: "必输项" }
],
// "attp.acctyp": [{
// required: true,
// message: "必输项"
// }],
"attp.bustyp": [{
required: true,
message: "必输项"
}],
"attp.ywlxdm": [{
required: true,
message: "必输项"
}],
"cpdgrp.rec.detchgcod": [
{ type: "string", required: true, message: "必输项" },
],
}
}
import CommonCheck from './check.js';
export default function () {
return {
...CommonCheck.apply(this),
//清算编号
"cpdgrp.rec.sysno": [
{ type: "string", required: true, message: "必输项" },
{ max: 21, message: "长度不能超过21" }
],
//解付日期
"cpdgrp.rec.paydat": [
{ type: "string", required: true, message: "输入正确的日期" }
],
"cpdgrp.rec.detchgcod": [
{ type: "string", required: true, message: "必输项" },
],
}
}
import CommonCheck from './check.js';
import BigNumber from "bignumber.js";
export default function () {
return {
...CommonCheck.apply(this),
//清算编号
"cpdgrp.rec.sysno": [
{ type: "string", required: true, message: "必输项" },
{ max: 21, message: "长度不能超过21" }
],
"cptp.uetr": [
{ type: "string", required: true, message: "必输项" },
{ max: 40, message: "长度不能超过40" }
],
//解付日期
"cpdgrp.rec.paydat": [
{ type: "string", required: true, message: "输入正确的日期" }
],
//发报行
"cpdgrp.snd.pts.extkey": [
{ type: "string", required: false, message: "必输项" },
{ max: 16, message: "长度不能超过16" }
],
"cpdgrp.rec.detchgcod": [
{ type: "string", required: true, message: "必输项" },
],
// "cpdgrp.rec.curf33b": [
// { type: "string", required: true, message: "必输项" },
// ],
"cpdgrp.rec.amtf33b": [
// { type: "string", required: true, message: "必输项" },
// { max: 18, message: "整数位不能超过14位" },
// { pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" },
{
validator: (rule, value, callback) => {
if(value != '' && this.model.cpdgrp.rec.swftyp=='103'&&
this.model.cpdgrp.cbs.nom1.cur !='' &&
this.model.cpdgrp.rec.curf33b !='' &&
this.model.cpdgrp.rec.cur71f !='' &&
this.model.cpdgrp.cbs.nom1.cur == this.model.cpdgrp.rec.curf33b &&
this.model.cpdgrp.rec.curf33b == this.model.cpdgrp.rec.cur71f){
var preamtf33b = new BigNumber(this.model.cpdgrp.rec.amt71f).plus(new BigNumber(this.model.cpdgrp.cbs.nom1.amt));
var amtf33b= new BigNumber(value);
if(amtf33b.comparedTo(preamtf33b) != 0){
callback(new Error('币种一致时,33b=71f+32a'));
}else{
callback();
}
} else {
//校验通过
callback();
}
},
trigger: ['blur', 'change']
}
]
}
}
import commonFunctions from '~/mixin/commonFunctions.js';
import Api from '~/service/Api';
import moment from 'moment';
import commonDepend from "~/mixin/commonDepend";
export default {
mixins: [commonFunctions, commonDepend],
methods: {
defaultDat(){
this.model.cpdgrp.rec.paydat = moment(new Date()).format("YYYY-MM-DD");
this.model.cpdgrp.rec.valdat = moment(new Date()).format("YYYY-MM-DD");
this.model.cpdgrp.rec.opndat = moment(new Date()).format("YYYY-MM-DD");
},
defaultCptrou() {
if (this.model.cpdgrp.rec.cptrou == '') {
this.model.cpdgrp.rec.cptrou = 'SWIFT';
}
},
cptrouChange(e) {
if (e === undefined) {
return
}
this.model.cpdgrp.rec.swftyp = '';
this.model.cptp.isomsgtyp = '';
//语种控制
if (this.model.cpdgrp.rec.cptrou == 'SWIFT' || this.model.cpdgrp.rec.cptrou == 'CIPS') {
this.model.cptp.payuil = 'EN';
} else {
this.model.cptp.payuil = 'CN';
}
this.setCips();
this.setCur();
this.setDetchgcod();
this.setChato();
if (this.model.cpdgrp.rec.cptrou == "JNWB" || this.model.cpdgrp.rec.cptrou == "HNHZ") {
if (this.model.cpdgrp.res.pts.inr == '') {
this.model.cpdgrp.res = this.model.ownpts;
}
}
},
setPayuil() {
if(!this.model.cptp.payuil){
//语种控制
if (this.model.cpdgrp.rec.cptrou == 'SWIFT' || this.model.cpdgrp.rec.cptrou == 'CIPS') {
this.model.cptp.payuil = 'EN';
} else {
this.model.cptp.payuil = 'CN';
}
}
},
setCips() {
this.model.cipmod.reconebch = '';
this.model.cipmod.reconebchnam = '';
if (this.model.cpdgrp.rec.cptrou == "CIPS") {
this.model.cipmod.reconebch = 'EVERCNBJXXX';
this.model.cipmod.reconebchnam = '中国光大银行股份有限公司';
}
},
setCur() {
//汇款币种控制
if ((this.model.cpdgrp.rec.cptrou == "CIPS" || this.model.cpdgrp.rec.cptrou == "OTHER") && !this.model.cpdgrp.cbs.nom1.cur) {
this.model.cpdgrp.cbs.nom1.cur = 'CNY';
}
if ((this.model.cpdgrp.rec.cptrou == "CIPS" && this.model.cpdgrp.cbs.nom1.cur != 'CNY' && this.model.cpdgrp.cbs.nom1.cur != 'HKD') ||
(this.model.cpdgrp.rec.cptrou == "OTHER" && this.model.cpdgrp.cbs.nom1.cur != 'CNY') ||
((this.model.cpdgrp.rec.cptrou == "SWIFT" || this.model.cpdgrp.rec.cptrou == "JNWB" ) && this.model.cpdgrp.cbs.nom1.cur == 'CNY') ||
(this.model.cpdgrp.rec.cptrou == "HNHZ" && this.model.cpdgrp.rec.manbod =="0" && this.model.cpdgrp.cbs.nom1.cur == 'CNY')) {
this.model.cpdgrp.cbs.nom1.cur = '';
this.model.cpdgrp.cbs.nom1.amt = '';
}
},
setDetchgcod() {
if (this.model.cpdgrp.rec.cptrou == 'CIPS') {
if (!this.model.cpdgrp.rec.detchgcod || this.model.cpdgrp.rec.detchgcod == "BEN" || this.model.cpdgrp.rec.detchgcod == "OUR" || this.model.cpdgrp.rec.detchgcod == "SHA") {
this.model.cpdgrp.rec.detchgcod = "SHAR";
}
} else {
if (!this.model.cpdgrp.rec.detchgcod || this.model.cpdgrp.rec.detchgcod == "DEBT" || this.model.cpdgrp.rec.detchgcod == "CRED" || this.model.cpdgrp.rec.detchgcod == "SHAR" || this.model.cpdgrp.rec.detchgcod == "SLEV") {
this.model.cpdgrp.rec.detchgcod = "BEN";
}
}
},
async loadBopCtyList() {
const loading = this.loading();
let res = await Api.post(`/${this.moduleRouter()}/bopcty/loadBopCtyList`);
loading.close();
if (res.respCode === SUCCESS) {
this.model.bopCtyList = res.data;
}
},
changeYwlxdm(){
if(this.model.attp.ywlxdm){
if(this.model.attp.ywlxdm == 'A100'){
this.model.cpdgrp.rec.detchgcod = 'OUR';
}else{
this.model.cpdgrp.rec.detchgcod = '';
if(this.model.attp.ywlxdm == 'A200'){
this.model.attp.bustyp = '09110';
}else if(this.model.attp.ywlxdm == 'A311'){
this.model.attp.bustyp = '09108';
}else if(this.model.attp.ywlxdm == 'A105'){
this.model.attp.bustyp = '02108';
}
}
}
},
setChato(){
if(this.model.cpdgrp.rec.detchgcod!= '' && (this.model.cpdgrp.rec.detchgcod=='OUR'||this.model.cpdgrp.rec.detchgcod=='DEBT')){
this.model.cpdgrp.rec.chato = 'B';
}else{
this.model.cpdgrp.rec.chato = 'U';
}
}
},
}
import Pub from '~/components/business/commonModel/index.js';
import Cpdgrp from '~/components/business/commonModel/cpdgrp/index.js';
import Pts from '~/components/business/commonModel/Pts.js';
import Cptp from '~/components/business/commonModel/cptp';
import Attp from '~/components/business/commonModel/attp';
import Cipmod from '~/components/business/commonModel/cipmod';
import Hvpmod from '~/components/business/commonModel/hvpmod';
export default class Zptadv {
constructor() {
this.data = {
operation:'',
autoFlag: '',//标识是不是自动化处理交易
bustypList: [],
spt: {
inr: '',
sta: '',
},
bopCtyList: [],
cpdgrp: {
...new Cpdgrp().data,
rec: {
...new Cpdgrp().data.rec,
giduil: "CN",
}
},
ownpts: {
ptytyp: '',
pts: new Pts().data,
},
cptp: new Cptp().data,
attp: new Attp().data,
lendoc: {
actflg: "", // Input Account .lendoc.actflg
account: "", // ACT .lendoc.account
vercerref: "", // Verification Certificate Number .lendoc.vercerref
decnum: "", // Declaration Number .lendoc.decnum
},
rmbbop: new Pub().data.Rmbbop,
bopgat: new Pub().data.Bopgat,
setmod: new Pub().data.Setmod,
docpan: new Pub().data.Docpan,
liaall: new Pub().data.Liaall,
trnmod: new Pub().data.Trnmod,
mtabut: new Pub().data.Mtabut,
umdmod: new Pub().data.Umdmod,
cipmod: new Cipmod().data,
hvpmod: new Hvpmod().data,
swiadd: new Pub().data.Trnmod.swiadd,
entmod: new Pub().data.Entmod,
trndia: new Pub().data.Trndia,
gmgfVo: new Pub().data.gmgfVo,//国贸公服模型
}
}
}
\ No newline at end of file
<template>
<div class="eibs-tab">
<!-- ======================= 左边 ========================= -->
<c-col :span="12" style="padding-right: 20px">
<!-- S0000005 : Verification Certificate Number -->
<c-col :span="24">
<el-form-item label-width="200px" label="Verification Certificate Number" prop="lendoc.vercerref">
<c-input type="textarea" v-model="model.lendoc.vercerref" maxlength="20" show-word-limit :placeholder="$t('other.please_enter')+'Verification Certificate Number'"></c-input>
</el-form-item>
</c-col>
<!-- S0000006 : Declaration Number -->
<c-col :span="24">
<el-form-item label-width="200px" label="Declaration Number" prop="lendoc.decnum">
<c-input v-model="model.lendoc.decnum" maxlength="22" :placeholder="$t('other.please_enter')+'Declaration Number'"></c-input>
</el-form-item>
</c-col>
</c-col>
<!-- ======================= 右边 ========================= -->
<c-col :span="12" style="padding-left: 20px">
<c-col :span="24">
<c-col :span="4">
<c-checkbox v-model="model.lendoc.actflg">Input Account</c-checkbox>
</c-col>
<c-col :span="20">
<el-form-item label="ACT" prop="lendoc.account">
<c-input type="textarea" v-model="model.lendoc.account" maxlength="25" show-word-limit :placeholder="$t('other.please_enter')+'ACT'"></c-input>
</el-form-item>
</c-col>
</c-col>
</c-col>
</div>
</template>
<script>
import Event from "../event";
export default {
inject: ["root"],
props: ["model", "codes"],
mixins: [Event],
data() {
return {};
},
methods: {},
created: function() {}
};
</script>
<style>
</style>
<template>
<div class="eibs-tab">
<c-col :span="24">
<!-- ======================= 左边 ========================= -->
<c-col :span="12" style="padding-right: 20px">
<c-col :span="24">
<el-card class="box-card">
<el-form-item label-width="120px" label="收款人账号" prop="cpdgrp.rec.pyeact">
<c-input v-model="model.cpdgrp.rec.pyeact" maxlength="35" placeholder="请输入收款人账号"></c-input>
</el-form-item>
<c-ptap :model="model" :disabledExtkey="false" :disabled="false" :isAdrblk="true" :haveAdrLabel="true" :isShowCard="false" :argadr="{title: '收款人', grp: 'cpdgrp', rol: 'pye',}" ptytyp="C">
</c-ptap>
</el-card>
</c-col>
</c-col>
<!-- ======================= 右边 ========================= -->
<c-col :span="12" style="padding-left: 20px">
<!-- SG000508 : 汇款人 -->
<c-col :span="24">
<el-card class="box-card">
<el-form-item label-width="120px" label="汇款人账号" prop="cpdgrp.rec.orcact">
<c-input style="width: 100%" v-model="model.cpdgrp.rec.orcact" maxlength="35" placeholder="请输入汇款人账号"></c-input>
</el-form-item>
<c-ptap :model="model" :disabledExtkey="false" :disabled="false" :isAdrblk="true" :haveAdrLabel="true" :isShowCard="false" :argadr="{title: '汇款人',grp: 'cpdgrp', rol: 'orc',}" ptytyp="C">
</c-ptap>
</el-card>
</c-col>
<!-- SG000818 : 汇款人常驻国家/地区代码 -->
<c-col :span="24">
<el-form-item label="汇款人常驻国家/地区代码" prop="cptp.draweecountcode">
<c-fullbox>
<c-input v-model="model.cptp.draweecountcode" maxlength="3" placeholder=""></c-input>
<template slot="footer">
<c-button size="small" type="primary">
?
</c-button>
</template>
</c-fullbox>
</el-form-item>
</c-col>
</c-col>
</c-col>
</div>
</template>
<script>
import event from "../event";
import Default from "../model/default";
export default {
inject: ["root"],
props: ["model", "codes"],
mixins: [event, Default],
data() {
return {};
},
methods: {},
created() {},
computed: {
swftypList() {
return this.model.cpdgrp.cbs.nom1.cur === "CNY"
? this.codes.cptadvCnySwftyp
: this.codes.cptadvNoCnySwftyp;
}
}
};
</script>
<style scoped lang="less">
.box-card {
margin-bottom: 10px;
/deep/ .el-form-item--mini.el-form-item,
.el-form-item--small.el-form-item {
margin-bottom: 10px;
}
/deep/ .el-card__body {
padding: 10px 10px 10px 0px;
}
}
.el-textarea .el-textarea__inner {
height: 100px;
}
</style>
<template>
<div class="eibs-tab">
<c-collapse ref="ovwp" style="margin-bottom: 5px;" v-model="activeNames">
<el-collapse-item title="汇路选择" name="route">
<div class="eibs-tab">
<c-col :span="24">
<!-- ======================= 左边 ========================= -->
<c-col :span="12" style="padding-right: 20px">
<!-- S0000367 : 业务编号 -->
<c-col :span="24">
<el-form-item label="清算路径" prop="cpdgrp.rec.cptrou">
<c-select :disabled="model.cpdgrp.rec.accmod=='G'" v-model="model.cpdgrp.rec.cptrou" style="width:100%" placeholder="" dbCode="CPTROU" uil="CN" sort="SRT" @change="cptrouChange">
</c-select>
</el-form-item>
</c-col>
<!-- SF000830 : ISO -->
<c-col :span="24" v-if="model.cpdgrp.rec.cptrou == 'SWIFT'||model.cpdgrp.rec.cptrou==''">
<el-form-item label="ISO" prop="cptp.isomsgtyp">
<c-select :disabled="model.cpdgrp.rec.cptrou !='SWIFT'||model.cpdgrp.rec.accmod=='G'" v-model="model.cptp.isomsgtyp" style="width:100%" placeholder="" dbCode="TYPMSG" :filterKey="['p8180','p4190','p818s','p9180','p918c','c4180','p4180','p918a']">
</c-select>
</el-form-item>
</c-col>
</c-col>
<!-- ======================= 右边 ========================= -->
<c-col :span="12" style="padding-left: 20px">
<!-- SG000422 : 报文类型 -->
<!-- <c-col :span="24">
<el-form-item label="报文类型" prop="cpdgrp.rec.swftyp" v-if="model.cpdgrp.rec.cptrou!=''">
<c-select v-model="model.cpdgrp.rec.swftyp" style="width:100%" placeholder="请输入报文类型" @change="swftypChange">
<el-option v-for="item in codes.swftypList" :key="item.value" :label="item.label" :value="item.value">
</el-option>
</c-select>
</el-form-item>
</c-col> -->
<c-col :span="24" v-if="model.cpdgrp.rec.cptrou == 'SWIFT'||model.cpdgrp.rec.cptrou==''">
<el-form-item label="报文类型" prop="cpdgrp.rec.swftyp">
<c-select :disabled="model.cpdgrp.rec.cptrou ==''||model.cpdgrp.rec.accmod=='G'" placeholder="请选择报文类型" style="width:100%" v-model="model.cpdgrp.rec.swftyp" dbCode="RMTMSG" :filterKey="['103','200','202','OTH']" uil="CN" sort="SRT" @change="swftypChange()"></c-select>
</el-form-item>
</c-col>
<c-col :span="24" v-if="model.cpdgrp.rec.cptrou == 'CIPS'">
<el-form-item label="报文类型" prop="cpdgrp.rec.swftyp">
<c-select :disabled="model.cpdgrp.rec.accmod=='G'" placeholder="请选择报文类型" style="width:100%" v-model="model.cpdgrp.rec.swftyp" dbCode="RMTMSG" :filterKey="['CIU','CIV']" uil="CN" sort="SRT" @change="swftypChange()"></c-select>
</el-form-item>
</c-col>
<c-col :span="24" v-if="model.cpdgrp.rec.cptrou == 'JNWB'">
<el-form-item label="报文类型" prop="cpdgrp.rec.swftyp">
<c-select @change="jnwbSwftyp" :disabled="model.cpdgrp.rec.accmod=='G'" placeholder="请选择报文类型" style="width:100%" v-model="model.cpdgrp.rec.swftyp" dbCode="RMTMSG" :filterKey="['111','112']" uil="CN" sort="SRT"></c-select>
</el-form-item>
</c-col>
<!-- <c-col :span="24" v-if="model.cpdgrp.rec.cptrou == 'HNHZ'">
<el-form-item label="报文类型" prop="cpdgrp.rec.swftyp">
<c-select :disabled="model.cpdgrp.rec.accmod=='G'" placeholder="请选择报文类型" style="width:100%" v-model="model.cpdgrp.rec.swftyp" dbCode="RMTMSG" :filterKey="['111']" uil="CN" sort="SRT"></c-select>
</el-form-item>
</c-col> -->
<c-col :span="24" v-if="model.cpdgrp.rec.cptrou == 'OTHER'">
<el-form-item label="报文类型" prop="cpdgrp.rec.swftyp">
<c-select :disabled="model.cpdgrp.rec.accmod=='G'" placeholder="请选择报文类型" style="width:100%" v-model="model.cpdgrp.rec.swftyp" dbCode="RMTMSG" :filterKey="['BEP','BEQ','BES','HVP','HVQ','HVR']" uil="CN" sort="SRT"></c-select>
</el-form-item>
</c-col>
<c-col :span="24" v-if="model.cpdgrp.rec.cptrou == 'HNHZ'">
<el-form-item label="交易主体" prop="cpdgrp.rec.manbod">
<c-select placeholder="请选择交易主体" style="width:100%" v-model="model.cpdgrp.rec.manbod" dbCode="MANBOD"
uil="CN" sort="SRT" @change="manbodChange()">
</c-select>
</el-form-item>
</c-col>
</c-col>
</c-col>
</div>
</el-collapse-item>
<el-collapse-item title="收/汇款人信息" name="orcpye">
<m-swift-orcpye :model="model" :codes="codes" v-if="model.cpdgrp.rec.cptrou=='SWIFT'||model.cpdgrp.rec.cptrou==''"/>
<m-cips-orcpye :model="model" :codes="codes" v-if="model.cpdgrp.rec.cptrou=='CIPS'"/>
<m-jnwb-orcpye :model="model" :codes="codes" v-if="model.cpdgrp.rec.cptrou=='JNWB'"/>
<m-hnhz-orcpye :model="model" :codes="codes" v-if="model.cpdgrp.rec.cptrou=='HNHZ'"/>
<m-other-orcpye :model="model" :codes="codes" v-if="model.cpdgrp.rec.cptrou=='OTHER'"/>
</el-collapse-item>
<el-collapse-item title="基础信息" name="opnp1">
<m-swift-opnp :model="model" :codes="codes" v-if="model.cpdgrp.rec.cptrou=='SWIFT'||model.cpdgrp.rec.cptrou==''"/>
<m-cips-opnp :model="model" :codes="codes" v-if="model.cpdgrp.rec.cptrou=='CIPS'"/>
<m-jnwb-opnp :model="model" :codes="codes" v-if="model.cpdgrp.rec.cptrou=='JNWB'"/>
<m-hnhz-opnp :model="model" :codes="codes" v-if="model.cpdgrp.rec.cptrou=='HNHZ'"/>
<m-other-opnp :model="model" :codes="codes" v-if="model.cpdgrp.rec.cptrou=='OTHER'"/>
</el-collapse-item>
<el-collapse-item title="银行信息" name="routeinfo">
<m-routeinfo :model="model" :codes="codes" />
</el-collapse-item>
<el-collapse-item title="附言信息" name="otherinfo">
<m-swift-otherinfo :model="model" :codes="codes" v-if="model.cpdgrp.rec.cptrou=='SWIFT'||model.cpdgrp.rec.cptrou==''"/>
<m-cips-otherinfo :model="model" :codes="codes" v-if="model.cpdgrp.rec.cptrou=='CIPS'"/>
<m-jnwb-otherinfo :model="model" :codes="codes" v-if="model.cpdgrp.rec.cptrou=='JNWB'"/>
<m-hnhz-otherinfo :model="model" :codes="codes" v-if="model.cpdgrp.rec.cptrou=='HNHZ'"/>
<m-other-otherinfo :model="model" :codes="codes" v-if="model.cpdgrp.rec.cptrou=='OTHER'"/>
</el-collapse-item>
</c-collapse>
</div>
</template>
<script>
import event from "../event";
import Default from "../model/default";
import SwiftOpnp from "./swift/Opnp1";
import CipsOpnp from "./cips/Opnp1";
import JnwbOpnp from "./jnwb/Opnp1";
import HnhzOpnp from "./hnhz/Opnp1";
import OtherOpnp from "./other/Opnp1";
import Orcpye from "./swift/Orcpye";
import Orcpye2 from "./cips/Orcpye";
import Orcpye3 from "./jnwb/Orcpye";
import Orcpye4 from "./hnhz/Orcpye";
import Orcpye5 from "./other/Orcpye";
import Routeinfo from "./Routeinfo";
import SwiftOtherinfo from "./swift/Otherinfo";
import CipsOtherinfo from "./swift/Otherinfo";
import HnhzOtherinfo from "./jnwb/Otherinfo";
import JnwbOtherinfo from "./jnwb/Otherinfo";
import OtherOtherinfo from "./other/Otherinfo";
export default {
inject: ["root"],
props: ["model", "codes"],
mixins: [event, Default],
components:{
"m-swift-opnp": SwiftOpnp,
"m-cips-opnp": CipsOpnp,
"m-jnwb-opnp": JnwbOpnp,
"m-hnhz-opnp": HnhzOpnp,
"m-other-opnp": OtherOpnp,
"m-routeinfo": Routeinfo,
"m-swift-orcpye": Orcpye,
"m-cips-orcpye": Orcpye2,
"m-jnwb-orcpye": Orcpye3,
"m-hnhz-orcpye": Orcpye4,
"m-other-orcpye": Orcpye5,
"m-swift-otherinfo": SwiftOtherinfo,
"m-cips-otherinfo": CipsOtherinfo,
"m-hnhz-otherinfo": HnhzOtherinfo,
"m-jnwb-otherinfo": JnwbOtherinfo,
"m-other-otherinfo": OtherOtherinfo,
},
data() {
return {
activeNames: ["route","orcpye","opnp1","routeinfo","otherinfo"],
};
},
methods: {},
created() {
},
computed: {
}
};
</script>
<style scoped lang="less">
.box-card {
margin-bottom: 10px;
/deep/ .el-form-item--mini.el-form-item,
.el-form-item--small.el-form-item {
margin-bottom: 10px;
}
/deep/ .el-card__body {
padding: 10px 10px 10px 0px;
}
}
.el-textarea .el-textarea__inner {
height: 100px;
}
::v-deep .el-tabs__content .eibs-tab{
padding:0px!important
}
</style>
<template>
<div class="eibs-tab">
<c-col :span="24">
<!-- ======================= 左边 ========================= -->
<c-col :span="12" style="padding-right: 20px">
<!-- 处理方式 -->
<c-col :span="24">
<el-form-item label="处理方式" prop="cpdgrp.rec.accmod">
<c-select :disabled="this.model.cpdgrp.rec.accmod=='G'" v-model="model.cpdgrp.rec.accmod" style="width:100%" placeholder="请输入处理方式" :code="codes.cptmod" :filterKey="this.model.cpdgrp.rec.accmod=='G'?['G']:['0','2']">
</c-select>
</el-form-item>
</c-col>
<!-- S0000367 : 业务编号 -->
<c-col :span="24">
<el-form-item label="业务编号" prop="cpdgrp.rec.ownref">
<c-fullbox>
<c-input v-model="model.cpdgrp.rec.ownref" maxlength="16" placeholder="请输入业务编号" disabled></c-input>
<template slot="footer">
<c-button style="margin: 0 10px 0 10px; padding: 0 12px; height: 32px" size="small" type="primary" icon="el-icon-search">
</c-button>
<c-button style="margin: 0 0" size="small" type="primary" :disabled="model.cpdgrp.rec.ownref!=''" @click="getOwnref()">
获取
</c-button>
</template>
</c-fullbox>
</el-form-item>
</c-col>
<!-- SG000398 : 清算编号 -->
<c-col :span="24">
<el-form-item label="清算编号" prop="cpdgrp.rec.sysno">
<c-input v-model="model.cpdgrp.rec.sysno" maxlength="21" placeholder="请输入清算编号"></c-input>
</el-form-item>
</c-col>
<!-- S0000372 : 汇款金额 -->
<c-col :span="24">
<c-col :span="12">
<el-form-item label="汇款金额(32A)" prop="cpdgrp.cbs.nom1.cur">
<c-select-cur v-model="model.cpdgrp.cbs.nom1.cur" style="width:100%" placeholder="" dbCode="curtxt" :filterKey="['CNY','HKD']" :isShowKeyAndLabel="true">
</c-select-cur>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label-width="5px" prop="cpdgrp.cbs.nom1.amt">
<c-input-currency :currency="model.cpdgrp.cbs.nom1.cur" v-model="model.cpdgrp.cbs.nom1.amt" placeholder=""></c-input-currency>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<el-form-item label="汇款语种" prop="cptp.payuil">
<c-select v-model="model.cptp.payuil" style="width:100%" placeholder="请输入汇款语种" dbCode="PAYUIL">
</c-select>
</el-form-item>
</c-col>
<!-- SG000415 : 原始金额 -->
<!-- <c-col :span="24">
<c-col :span="12">
<el-form-item label="原始金额(33b)" prop="cpdgrp.rec.curf33b">
<c-select v-model="model.cpdgrp.rec.curf33b" style="width:100%" placeholder="请输入原始币种" dbCode="curtxt">
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label-width="5px" prop="cpdgrp.rec.amtf33b">
<c-input-currency :currency="model.cpdgrp.rec.curf33b" v-model="model.cpdgrp.rec.amtf33b" placeholder="请输入原始金额"></c-input-currency>
</el-form-item>
</c-col>
</c-col> -->
<!-- SG000417 : 发报行扣费金额 -->
<!-- <c-col :span="24">
<c-col :span="12">
<el-form-item label="发报行扣费金额(71f)" prop="cpdgrp.rec.cur71f">
<c-select v-model="model.cpdgrp.rec.cur71f" style="width:100%" placeholder="请输入发报行扣费金额" dbCode="curtxt">
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label-width="5px" prop="cpdgrp.rec.amt71f">
<c-input-currency :currency="model.cpdgrp.rec.cur71f" v-model="model.cpdgrp.rec.amt71f" placeholder="请输入"></c-input-currency>
</el-form-item>
</c-col>
</c-col> -->
<c-col :span="24" v-if="model.cpdgrp.rec.swftyp==''||model.cpdgrp.rec.swftyp=='CIU'">
<el-form-item label="业务种类(CEE)" prop="cptp.bustyp">
<c-select v-model="model.cptp.bustyp" style="width:100%" placeholder="请输入业务种类" dbCode="CBUTYP" uil="CN" :filterKey="['GODX','STRX','CTFX','OTFX']">
</c-select>
</el-form-item>
</c-col>
<c-col :span="24" v-if="model.cpdgrp.rec.swftyp=='CIV'||model.cpdgrp.rec.swftyp=='CIVCOV'">
<el-form-item label="业务种类(CEE)" prop="cptp.bustyp">
<c-select v-model="model.cptp.bustyp" style="width:100%" placeholder="请输入业务种类" dbCode="CBUTYP" uil="CN">
</c-select>
</el-form-item>
</c-col>
</c-col>
<!-- ======================= 右边 ========================= -->
<c-col :span="12" style="padding-left: 20px">
<!-- SG000405 : 汇款性质 -->
<c-col :span="24">
<el-form-item label="汇款性质" prop="cpdgrp.rec.trntyp">
<c-select v-model="model.cpdgrp.rec.trntyp" :isShowKeyAndLabel="true" style="width:100%" placeholder="请输入汇款性质" dbCode="CTRTYE" uil="CN" sort="SRT" :filterKey="['01','02','03','04','05','06','07','08','09','10']">
</c-select>
</el-form-item>
</c-col>
<!-- SG000818 : Uetr -->
<!-- 需要CIPS增加接口 -->
<!-- <c-col :span="24">
<el-form-item label="Uetr" prop="cptp.uetr">
<c-fullbox>
<c-input v-model="model.cptp.uetr" maxlength="40" placeholder="请输入Uetr"></c-input>
<template slot="footer">
<c-button size="small" type="primary" @click="getUetr">
获取
</c-button>
</template>
</c-fullbox>
</el-form-item>
</c-col> -->
<c-col :span="24">
<el-form-item label="端到端标识号(DDD)" prop="cipmod.dddbsh">
<c-input disabled v-model="model.cipmod.dddbsh" maxlength="21" placeholder=""></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="解付日期" prop="cpdgrp.rec.paydat">
<c-date-picker type="date" v-model="model.cpdgrp.rec.paydat" style="width:100%" placeholder="请输入解付日期"></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="起息日(30A)" prop="cpdgrp.rec.valdat">
<c-date-picker type="date" v-model="model.cpdgrp.rec.valdat" style="width:100%" placeholder="请输入起息日"></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="费用承担方(FYCD)" prop="cpdgrp.rec.detchgcod">
<c-select placeholder="请选择费用承担方" style="width:100%" v-model="model.cpdgrp.rec.detchgcod" @change="feetypChange" dbCode="FEECOD" uil="CN" sort="SRT" :filterKey="['DEBT','CRED','SHAR','SLEV']" :isShowKeyAndLabel="true">
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<c-col :span="12">
<el-form-item label="国外费用(FEY1+FEY2)" prop="cpdgrp.rec.feecur">
<c-select-cur v-model="model.cpdgrp.rec.feecur" style="width:100%" placeholder="请输入国外费用币种" dbCode="curtxt" :isShowKeyAndLabel="true">
</c-select-cur>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="" label-width="5px" prop="cpdgrp.rec.feeamt">
<c-input-currency :currency="model.cpdgrp.rec.feecur" v-model="model.cpdgrp.rec.feeamt" placeholder="请输入国外费用金额"></c-input-currency>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<el-form-item label="同名划转" prop="cpdgrp.rec.tsnflg" class="checkbox-left">
<c-checkbox v-model="model.cpdgrp.rec.tsnflg"></c-checkbox>
</el-form-item>
</c-col>
</c-col>
</c-col>
</div>
</template>
<script>
import event from "../../event";
import Default from "../../model/default";
export default {
inject: ["root"],
props: ["model", "codes"],
mixins: [event, Default],
data() {
return {};
},
methods: {},
created() {},
watch: {
"model.cpdgrp.cbs.nom1.cur": {
immediate: true,
handler(newVal) {
if (newVal) {
this.model.cpdgrp.cbs.max.cur = newVal;
this.model.cpdgrp.rec.feecur = newVal;
}
}
},
"model.cpdgrp.cbs.nom1.amt": {
immediate: true,
handler(newVal) {
if (newVal) {
this.model.cpdgrp.cbs.max.amt = newVal;
}
}
}
}
};
</script>
<style scoped lang="less">
.box-card {
margin-bottom: 10px;
/deep/ .el-form-item--mini.el-form-item,
.el-form-item--small.el-form-item {
margin-bottom: 10px;
}
/deep/ .el-card__body {
padding: 10px 10px 10px 0px;
}
}
.el-textarea .el-textarea__inner {
height: 100px;
}
</style>
<template>
<div class="eibs-tab">
<c-col :span="24">
<!-- ======================= 左边 ========================= -->
<c-col :span="12" style="padding-right: 20px">
<c-col :span="24">
<c-ptap13 :disabledNam="true" :model="model" :payuil="model.cptp.payuil" :isMyClient="true" :argadr="{title: '收款人', grp:'cpdgrp', rol:'pye'}"
:isShowCard= "true" ptytyp="C"></c-ptap13>
</c-col>
</c-col>
<!-- ======================= 右边 ========================= -->
<c-col :span="12" style="padding-left: 20px">
<!-- SG000508 : 汇款人 -->
<c-col :span="24">
<c-ptap13 :model="model" :payuil="model.cptp.payuil" :argadr="{title: '汇款人', grp:'cpdgrp', rol:'orc'}"
:isShowCard= "true" ptytyp="C"></c-ptap13>
</c-col>
<!-- SG000818 : 汇款人常驻国家/地区代码 -->
<c-col :span="24">
<el-form-item label="汇款人常驻国家/地区代码" prop="cptp.draweecountcode">
<c-select v-model="model.cptp.draweecountcode" @change="draweecountcodeChange()" isShowKeyAndLabel style="width: 100%" placeholder="请选择汇款人常驻国家/地区代码">
<el-option v-for="item in model.bopCtyList" :key="item.cod" :value="item.cod" :label="`${item.numcod} - ${item.cod} - ${item.txt}`">
</el-option>
</c-select>
</el-form-item>
</c-col>
</c-col>
</c-col>
</div>
</template>
<script>
import event from "../../event";
import Default from "../../model/default";
export default {
inject: ["root"],
props: ["model", "codes"],
mixins: [event, Default],
data() {
return {};
},
methods: {},
created() {},
watch: {
"model.cptp.draweecountcode": {
immediate: true,
handler(newVal) {
if (newVal) {
this.model.cpdgrp.rec.orcctycod = newVal;
}
}
},
},
computed: {
swftypList() {
return this.model.cpdgrp.cbs.nom1.cur === "CNY"
? this.codes.cptadvCnySwftyp
: this.codes.cptadvNoCnySwftyp;
}
}
};
</script>
<style scoped lang="less">
.box-card {
margin-bottom: 10px;
/deep/ .el-form-item--mini.el-form-item,
.el-form-item--small.el-form-item {
margin-bottom: 10px;
}
/deep/ .el-card__body {
padding: 10px 10px 10px 0px;
}
}
.el-textarea .el-textarea__inner {
height: 100px;
}
</style>
<template>
<div class="eibs-tab">
<c-col :span="24">
<!-- ======================= 左边 ========================= -->
<c-col :span="12" style="padding-right: 20px">
<!-- 处理方式 -->
<c-col :span="24">
<el-form-item label="处理方式" prop="cpdgrp.rec.accmod">
<c-select :disabled="this.model.cpdgrp.rec.accmod=='G'" v-model="model.cpdgrp.rec.accmod" style="width:100%" placeholder="请输入处理方式" :code="codes.cptmod" :filterKey="this.model.cpdgrp.rec.accmod=='G'?['G']:['0','2']">
</c-select>
</el-form-item>
</c-col>
<!-- S0000367 : 业务编号 -->
<c-col :span="24">
<el-form-item label="业务编号" prop="cpdgrp.rec.ownref">
<c-fullbox>
<c-input v-model="model.cpdgrp.rec.ownref" maxlength="16" placeholder="请输入业务编号" disabled></c-input>
<template slot="footer">
<c-button style="margin: 0 10px 0 10px; padding: 0 12px; height: 32px" size="small" type="primary" icon="el-icon-search">
</c-button>
<c-button style="margin: 0 0" size="small" type="primary" :disabled="model.cpdgrp.rec.ownref!=''" @click="getOwnref()">
获取
</c-button>
</template>
</c-fullbox>
</el-form-item>
</c-col>
<!-- S0000372 : 汇款金额 -->
<c-col :span="24">
<c-col :span="12">
<el-form-item label="汇款金额" prop="cpdgrp.cbs.nom1.cur">
<!-- <c-select-cur v-model="model.cpdgrp.cbs.nom1.cur" style="width:100%" placeholder="" dbCode="curtxt" sort="SRT" :expKey="['CNY']" :isShowKeyAndLabel="true">
</c-select-cur> -->
<c-select-cur dbCode="CURTXT" placeholder="请选择币种" style="width: 100%;" v-if="model.cpdgrp.rec.manbod == '0'" v-model="model.cpdgrp.cbs.nom1.cur" :expKey="['CNY']"></c-select-cur>
<c-select-cur dbCode="CURTXT" placeholder="请选择币种" style="width: 100%;" v-if="model.cpdgrp.rec.manbod != '0'" v-model="model.cpdgrp.cbs.nom1.cur" ></c-select-cur>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label-width="5px" prop="cpdgrp.cbs.nom1.amt">
<c-input-currency :currency="model.cpdgrp.cbs.nom1.cur" v-model="model.cpdgrp.cbs.nom1.amt" placeholder=""></c-input-currency>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<el-form-item label="汇款语种" prop="cptp.payuil">
<c-select v-model="model.cptp.payuil" style="width:100%" placeholder="请输入汇款语种" dbCode="PAYUIL">
</c-select>
</el-form-item>
</c-col>
</c-col>
<!-- ======================= 右边 ========================= -->
<c-col :span="12" style="padding-left: 20px">
<!-- SG000405 : 汇款性质 -->
<c-col :span="24">
<el-form-item label="汇款性质" prop="cpdgrp.rec.trntyp">
<c-select v-model="model.cpdgrp.rec.trntyp" :isShowKeyAndLabel="true" style="width:100%" placeholder="请输入汇款性质" dbCode="CTRTYE" uil="CN" sort="SRT" :filterKey="['01','02','03','04','05','06','07','08','09','10']">
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="汇款人账户性质" prop="attp.acctyp">
<c-select v-model="model.attp.acctyp" style="width:100%" placeholder="请选择汇款人账户性质" dbCode="ACTPRO" uil="CN" sort="SRT" :filterKey="['1000','1101','1104','1202','1602','1603','2101','2102','2103','2104','2108','2109','2110','2111','2112','2113','2202','2301','2302','2303','2403','2410','2412','2416','2417','2418','2421','2499','3300','3400','3601','3603','3604','3605','3606','4200','4600']">
</c-select>
</el-form-item>
</c-col>
<!-- S0000179 : 业务种类 -->
<c-col :span="24">
<el-form-item label="业务种类" prop="attp.bustyp">
<c-select placeholder="请选择业务种类" :isShowKeyAndLabel="true" style="width:100%" v-model="model.attp.bustyp" dbCode="HBSTYP" :filterKey="['09101','09102','09103','09104','09105','09106','09107','09001']" uil="CN" sort="SRT" >
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="解付日期" prop="cpdgrp.rec.opndat">
<c-date-picker type="date" v-model="model.cpdgrp.rec.opndat" style="width:100%" placeholder="请输入解付日期"></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="同名划转" prop="cpdgrp.rec.tsnflg" class="checkbox-left">
<c-checkbox v-model="model.cpdgrp.rec.tsnflg" true-label="X" false-label=""></c-checkbox>
</el-form-item>
</c-col>
</c-col>
</c-col>
</div>
</template>
<script>
import event from "../../event";
import Default from "../../model/default";
export default {
inject: ["root"],
props: ["model", "codes"],
mixins: [event, Default],
data() {
return {};
},
methods: {},
created() {},
watch: {
"model.cpdgrp.cbs.nom1.cur": {
immediate: true,
handler(newVal) {
if (newVal) {
this.model.cpdgrp.cbs.max.cur = newVal;
}
}
},
"model.cpdgrp.cbs.nom1.amt": {
immediate: true,
handler(newVal) {
if (newVal) {
this.model.cpdgrp.cbs.max.amt = newVal;
}
}
}
}
};
</script>
<style scoped lang="less">
.box-card {
margin-bottom: 10px;
/deep/ .el-form-item--mini.el-form-item,
.el-form-item--small.el-form-item {
margin-bottom: 10px;
}
/deep/ .el-card__body {
padding: 10px 10px 10px 0px;
}
}
.el-textarea .el-textarea__inner {
height: 100px;
}
</style>
<template>
<div class="eibs-tab">
<c-col :span="24">
<!-- ======================= 左边 ========================= -->
<c-col :span="12" style="padding-right: 20px">
<c-col :span="24">
<!-- <c-ptap14 :model="model" :isAdrblk="true" :disabledAdrblk="true" :haveAdrLabel="true" :isShowCard="true" :requiredNam="true" :isMyClient="true" :payuil="model.cptp.payuil" :argadr="{title: '收款人', grp:'cpdgrp', rol:'pye'}" ptytyp="C"></c-ptap14> -->
<c-ptap12 :disabledNam="true" :model="model" :isMyClient="true" :payuil="model.cptp.payuil" :argadr="{title: '收款人', grp:'cpdgrp', rol:'pye'}" :isShowCard="true" ptytyp="C"></c-ptap12>
</c-col>
</c-col>
<!-- ======================= 右边 ========================= -->
<c-col :span="12" style="padding-left: 20px">
<!-- SG000508 : 汇款人 -->
<c-col :span="24">
<!-- <c-ptap14 :model="model" :isMyClient="false" :payuil="model.cptp.payuil" :argadr="{title: '汇款人', grp:'cpdgrp', rol:'orc'}" :isShowCard="true" ptytyp="C"></c-ptap14> -->
<c-ptap12 :model="model" :isMyClient="false" :payuil="model.cptp.payuil" :argadr="{title: '汇款人', grp:'cpdgrp', rol:'orc'}" :isShowCard="true" ptytyp="C"></c-ptap12>
</c-col>
<!-- SG000818 : 汇款人常驻国家/地区代码 -->
<c-col :span="24">
<el-form-item label="汇款人常驻国家/地区代码" prop="cptp.draweecountcode">
<c-select v-model="model.cptp.draweecountcode" @change="draweecountcodeChange()" isShowKeyAndLabel style="width: 100%" placeholder="请选择汇款人常驻国家/地区代码">
<el-option v-for="item in model.bopCtyList" :key="item.cod" :value="item.cod" :label="`${item.numcod} - ${item.cod} - ${item.txt}`">
</el-option>
</c-select>
</el-form-item>
</c-col>
</c-col>
</c-col>
</div>
</template>
<script>
import event from "../../event";
import Default from "../../model/default";
export default {
inject: ["root"],
props: ["model", "codes"],
mixins: [event, Default],
data() {
return {};
},
methods: {},
created() {},
watch: {
"model.cptp.draweecountcode": {
immediate: true,
handler(newVal) {
if (newVal) {
this.model.cpdgrp.rec.orcctycod = newVal;
}
}
},
},
computed: {
swftypList() {
return this.model.cpdgrp.cbs.nom1.cur === "CNY"
? this.codes.cptadvCnySwftyp
: this.codes.cptadvNoCnySwftyp;
}
}
};
</script>
<style scoped lang="less">
.box-card {
margin-bottom: 10px;
/deep/ .el-form-item--mini.el-form-item,
.el-form-item--small.el-form-item {
margin-bottom: 10px;
}
/deep/ .el-card__body {
padding: 10px 10px 10px 0px;
}
}
.el-textarea .el-textarea__inner {
height: 100px;
}
</style>
<template>
<div class="eContainer">
<c-page title="转汇款汇入">
<el-form :model="model" :rules="curRules" 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="tabClick">
<!--zptadv PD000020 -->
<el-tab-pane label="业务信息" name="opnp1">
<c-content>
<m-ovwp :codes="codes" :model="model" />
</c-content>
</el-tab-pane>
<el-tab-pane :label="$t('commonModels.费用/账务')" name="setpan">
<c-content>
<m-setmod :codes="codes" :model="model" />
</c-content>
</el-tab-pane>
<el-tab-pane label="报文/面函" name="docpan">
<c-content>
<m-docpan :codes="codes" :model="model" />
</c-content>
</el-tab-pane>
<!--bopgat PD000006 外管信息 -->
<el-tab-pane label="外管信息" name="bopgat" v-if="model.cpdgrp.rec.accmod=='' || model.cpdgrp.rec.accmod=='G' || model.cpdgrp.rec.accmod=='0'">
<c-content>
<m-bopgat :codes="codes" :model="model" />
</c-content>
</el-tab-pane>
<!--rmbbop PD000001 跨境人民币申报 -->
<el-tab-pane label="跨境人民币申报" name="rmbbop" v-if="showRmbbop">
<c-content>
<m-rmbbop :codes="codes" :model="model" ref="rmbbop" />
</c-content>
</el-tab-pane>
<el-tab-pane :label="$t('commonModels.统一名单')" name="usrmd">
<c-content>
<m-usrmd :codes="codes" :model="model" />
</c-content>
</el-tab-pane>
<!-- 国贸公服 -->
<el-tab-pane :label="$t('commonModels.国贸公服')" name="gmgf" v-if="model.gmgfVo.visual">
<c-content>
<m-gmgf :codes="codes" :model="model.gmgfVo" />
</c-content>
</el-tab-pane>
</c-tabs>
</el-form>
<!-- 底部按钮 -->
<c-function-btn :handleSubmit="handleSubmit" :handleCheck="handleCheck" :handleStash="handleStash" ref="commonBtn" @handleSureWarning="handleSureWarning"></c-function-btn>
</c-page>
</div>
</template>
<script>
import CodeTable from "~/config/CodeTable";
import Zptadv from "../model";
import event from "../event";
import operationFunc from "~/mixin/operationFunc";
import commonDepend from "~/mixin/commonDepend";
import Checkswift from "../model/checkswift";
import Checkcips from "../model/checkcips";
import Checkjnwb from "../model/checkjnwb";
import Checkhnhz from "../model/checkhnhz";
import Checkother from "../model/checkother";
import Default from "../model/default";
import buildFn from "../event/buildCommons.js";
import SwiftOpnp from "./swift/Opnp1";
import CipsOpnp from "./cips/Opnp1";
import JnwbOpnp from "./jnwb/Opnp1";
import HnhzOpnp from "./hnhz/Opnp1";
import OtherOpnp from "./other/Opnp1";
import Orcpye from "./swift/Orcpye";
import Orcpye2 from "./cips/Orcpye";
import Orcpye3 from "./jnwb/Orcpye";
import Orcpye4 from "./hnhz/Orcpye";
import Orcpye5 from "./other/Orcpye";
import Routeinfo from "./Routeinfo";
import Setmod from "~/components/business/setmod/views";
import Docpan from "~/components/business/docpan/views";
import Doctre from "~/components/business/doctre/views";
import Rmbbop from "../../../../components/business/rmb/rmbbop/views";
import Usrmd from "~/components/business/Usrmd/views";
import Bopgat from "~/components/business/Bopgat/views";
import Ovwp from "./Ovwp";
import Gmgf from "~/components/business/gmgf/views";
export default {
name: "Zptadv",
components: {
"m-swift-opnp": SwiftOpnp,
"m-cips-opnp": CipsOpnp,
"m-jnwb-opnp": JnwbOpnp,
"m-hnhz-opnp": HnhzOpnp,
"m-other-opnp": OtherOpnp,
"m-routeinfo": Routeinfo,
"m-swift-orcpye": Orcpye,
"m-cips-orcpye": Orcpye2,
"m-jnwb-orcpye": Orcpye3,
"m-hnhz-orcpye": Orcpye4,
"m-other-orcpye": Orcpye5,
"m-setmod": Setmod,
"m-docpan": Docpan,
"m-doctre": Doctre,
"m-rmbbop": Rmbbop,
"m-usrmd": Usrmd,
"m-bopgat": Bopgat,
"m-ovwp": Ovwp,
"m-gmgf": Gmgf,
},
provide() {
return {
root: this,
markPyeact: "" //备份收款人账号
};
},
mixins: [Default, operationFunc, event, commonDepend, buildFn],
data() {
return {
tabVal: "opnp1",
trnName: "zptadv",
model: new Zptadv().data,
codes: {
...CodeTable
},
activeNames: ["route"],
markRules: {},
rules: {}
};
},
computed: {
curRules() {
if (this.model.cpdgrp.rec.cptrou == "SWIFT") {
return { ...Checkswift.apply(this), ...this.rules };
} else if (this.model.cpdgrp.rec.cptrou == "CIPS") {
return { ...Checkcips.apply(this), ...this.rules };
} else if (this.model.cpdgrp.rec.cptrou == "JNWB") {
return { ...Checkjnwb.apply(this), ...this.rules };
} else if (this.model.cpdgrp.rec.cptrou == "HNHZ") {
return { ...Checkhnhz.apply(this), ...this.rules };
}else if (this.model.cpdgrp.rec.cptrou == "OTHER") {
return { ...Checkother.apply(this), ...this.rules };
}
return {};
},
showRmbbop() {
const cptrou = this.model.cpdgrp.rec.cptrou;
if (cptrou === "HNHZ") {
const orcact = this.model.cpdgrp.rec.orcact; //汇款人账号
const pyeact = this.model.cpdgrp.rec.pyeact; //收款人账号
const flag1 = orcact.includes("EFN") || orcact.includes("FTN") || orcact.includes("NRA");
const flag2 = !pyeact.includes("EFN") && !pyeact.includes("FTN") && !pyeact.includes("NRA");
return this.model.cpdgrp.rec.manbod !== "1" && !(flag1 && flag2);
} else {
const accmod = this.model.cpdgrp.rec.accmod;
return cptrou !== 'JNWB' && (accmod === '' || accmod === '0' || accmod === 'G');
}
}
},
methods: {},
created() {
console.log("进入cptadv交易");
let params = {
transName: this.trnName,
operation: this.$route.query.type,
cpdgrp: {
rec: {
inr: this.$route.query.inr,
accmod: this.$route.query.accmod
}
}
};
this.model.operation = this.$route.query.type;
this.init(params);
}
};
</script>
<style lang="less" scoped>
::v-deep .el-collapse-item__content{
padding-bottom: 0px!important;
}
::v-deep .el-tabs__content .eibs-tab{
padding:0px!important
}
</style>
<template>
<div class="eibs-tab">
<c-col :span="24">
<!-- ======================= 左边 ========================= -->
<c-col :span="12" style="padding-right: 20px">
<!-- 处理方式 -->
<c-col :span="24">
<el-form-item label="处理方式" prop="cpdgrp.rec.accmod">
<c-select :disabled="this.model.cpdgrp.rec.accmod=='G'" v-model="model.cpdgrp.rec.accmod" style="width:100%" placeholder="请输入处理方式" :code="codes.cptmod" :filterKey="this.model.cpdgrp.rec.accmod=='G'?['G']:['0','2']">
</c-select>
</el-form-item>
</c-col>
<!-- S0000367 : 业务编号 -->
<c-col :span="24">
<el-form-item label="业务编号" prop="cpdgrp.rec.ownref">
<c-fullbox>
<c-input v-model="model.cpdgrp.rec.ownref" maxlength="16" placeholder="请输入业务编号" disabled></c-input>
<template slot="footer">
<c-button style="margin: 0 10px 0 10px; padding: 0 12px; height: 32px" size="small" type="primary" icon="el-icon-search">
</c-button>
<c-button style="margin: 0 0" size="small" type="primary" :disabled="model.cpdgrp.rec.ownref!=''" @click="getOwnref()">
获取
</c-button>
</template>
</c-fullbox>
</el-form-item>
</c-col>
<!-- SG000398 : 清算编号 -->
<c-col :span="24">
<el-form-item label="清算编号" prop="cpdgrp.rec.sysno">
<c-input :disabled="this.model.spt.inr!=''&&this.model.spt.sta=='FMT'&&this.model.cpdgrp.rec.sysno!=''" v-model="model.cpdgrp.rec.sysno" maxlength="21" placeholder="请输入清算编号"></c-input>
</el-form-item>
</c-col>
<!-- S0000372 : 汇款金额 -->
<c-col :span="24">
<c-col :span="12">
<el-form-item label="汇款金额(32A)" prop="cpdgrp.cbs.nom1.cur">
<c-select-cur v-model="model.cpdgrp.cbs.nom1.cur" style="width:100%" placeholder="" dbCode="curtxt" sort="SRT" :expKey="['CNY']" :isShowKeyAndLabel="true">
</c-select-cur>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label-width="5px" prop="cpdgrp.cbs.nom1.amt">
<c-input-currency :currency="model.cpdgrp.cbs.nom1.cur" v-model="model.cpdgrp.cbs.nom1.amt" placeholder=""></c-input-currency>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<el-form-item label="汇款语种" prop="cptp.payuil">
<c-select v-model="model.cptp.payuil" style="width:100%" placeholder="请输入汇款语种" dbCode="PAYUIL">
</c-select>
</el-form-item>
</c-col>
<!-- S0000179 : 业务种类 -->
<c-col :span="24" v-if="this.model.attp.ywlxdm=='A100'">
<el-form-item label="业务种类" prop="attp.bustyp">
<c-select placeholder="请选择业务种类" :isShowKeyAndLabel="true" style="width:100%" v-model="model.attp.bustyp" dbCode="HBSTYP" :filterKey="['09101','09102','09103','09104','09105','09106','09107','09001']" uil="CN" sort="SRT" >
</c-select>
</el-form-item>
</c-col>
<c-col :span="24" v-if="this.model.attp.ywlxdm=='A200'">
<el-form-item label="业务种类" prop="attp.bustyp">
<c-select disabled placeholder="请选择业务种类" :isShowKeyAndLabel="true" style="width:100%" v-model="model.attp.bustyp" dbCode="HBSTYP" :filterKey="['09110']" uil="CN" sort="SRT" >
</c-select>
</el-form-item>
</c-col>
<c-col :span="24" v-if="this.model.attp.ywlxdm=='A311'">
<el-form-item label="业务种类" prop="attp.bustyp">
<c-select disabled placeholder="请选择业务种类" :isShowKeyAndLabel="true" style="width:100%" v-model="model.attp.bustyp" dbCode="HBSTYP" :filterKey="['09108']" uil="CN" sort="SRT" >
</c-select>
</el-form-item>
</c-col>
<c-col :span="24" v-if="this.model.attp.ywlxdm=='A105'">
<el-form-item label="业务种类" prop="attp.bustyp">
<c-select disabled placeholder="请选择业务种类" :isShowKeyAndLabel="true" style="width:100%" v-model="model.attp.bustyp" dbCode="HBSTYP" :filterKey="['02108']" uil="CN" sort="SRT">
</c-select>
</el-form-item>
</c-col>
</c-col>
<!-- ======================= 右边 ========================= -->
<c-col :span="12" style="padding-left: 20px">
<!-- SG000405 : 汇款性质 -->
<c-col :span="24">
<el-form-item label="汇款性质" prop="cpdgrp.rec.trntyp">
<c-select v-model="model.cpdgrp.rec.trntyp" style="width:100%" :isShowKeyAndLabel="true" placeholder="请输入汇款性质" dbCode="CTRTYE" uil="CN" sort="SRT" :filterKey="['01','02','03','04','05','06','07','08','09','10']">
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="汇款人账户性质" prop="attp.acctyp" :rules="(model.cpdgrp.rec.swftyp == '111') ? [{required: true,message: '必输项'}] : [{required: false}]">
<c-select v-model="model.attp.acctyp" style="width:100%" placeholder="请选择汇款人账户性质" dbCode="ACTPRO" uil="CN" sort="SRT" :disabled="model.cpdgrp.rec.swftyp == '112'" :filterKey="['1000','1101','1104','1202','1602','1603','2101','2102','2103','2104','2108','2109','2110','2111','2112','2113','2202','2301','2302','2303','2403','2410','2412','2416','2417','2418','2421','2499','3300','3400','3601','3603','3604','3605','3606','4200','4600']">
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="解付日期" prop="cpdgrp.rec.opndat">
<c-date-picker type="date" v-model="model.cpdgrp.rec.opndat" style="width:100%" placeholder="请输入解付日期"></c-date-picker>
</el-form-item>
</c-col>
<!-- <c-col :span="24">
<el-form-item label="委托日期" prop="cpdgrp.rec.valdat">
<c-date-picker type="date" v-model="model.cpdgrp.rec.valdat" style="width:100%" placeholder="请输入起息日"></c-date-picker>
</el-form-item>
</c-col> -->
<c-col :span="24" v-if="this.model.cpdgrp.rec.swftyp != '112'&&this.model.attp.ywlxdm!= 'A105'">
<el-form-item label="费用承担方" prop="cpdgrp.rec.detchgcod">
<c-select :disabled="model.attp.ywlxdm=='A100'" placeholder="请输入费用类型" style="width:100%" v-model="model.cpdgrp.rec.detchgcod" dbCode="FEECOD" uil="CN" :filterKey="['SHA','BEN','OUR']" @change="feetypChange" :isShowKeyAndLabel="true">
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="业务类型" prop="attp.ywlxdm">
<c-select placeholder="请输入业务类型" style="width:100%" @change="changeYwlxdm" v-model="model.attp.ywlxdm" dbCode="YWLXDM" :filterKey="model.cpdgrp.rec.swftyp == '111'?['A100','A311','A105']:['A200','A311','A105']" uil="CN" sort="SRT" :isShowKeyAndLabel="true">
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="同名划转" prop="cpdgrp.rec.tsnflg" class="checkbox-left">
<c-checkbox v-model="model.cpdgrp.rec.tsnflg" true-label="X" false-label=""></c-checkbox>
</el-form-item>
</c-col>
</c-col>
</c-col>
</div>
</template>
<script>
import event from "../../event";
import Default from "../../model/default";
export default {
inject: ["root"],
props: ["model", "codes", "rules"],
mixins: [event, Default],
data() {
return {};
},
methods: {},
created() {},
watch: {
"model.cpdgrp.cbs.nom1.cur": {
immediate: true,
handler(newVal) {
if (newVal) {
this.model.cpdgrp.cbs.max.cur = newVal;
}
}
},
"model.cpdgrp.cbs.nom1.amt": {
immediate: true,
handler(newVal) {
if (newVal) {
this.model.cpdgrp.cbs.max.amt = newVal;
}
}
}
}
};
</script>
<style scoped lang="less">
.box-card {
margin-bottom: 10px;
/deep/ .el-form-item--mini.el-form-item,
.el-form-item--small.el-form-item {
margin-bottom: 10px;
}
/deep/ .el-card__body {
padding: 10px 10px 10px 0px;
}
}
.el-textarea .el-textarea__inner {
height: 100px;
}
</style>
<template>
<div class="eibs-tab">
<c-col :span="24">
<!-- ======================= 左边 ========================= -->
<c-col :span="12" style="padding-right: 20px">
<c-col :span="24">
<c-ptap12 :disabledNam="true" :model="model" :isMyClient="true" :payuil="model.cptp.payuil" :argadr="{title: '收款人', grp:'cpdgrp', rol:'pye'}" :isShowCard="true" ptytyp="C"></c-ptap12>
</c-col>
</c-col>
<!-- ======================= 右边 ========================= -->
<c-col :span="12" style="padding-left: 20px">
<!-- SG000508 : 汇款人 -->
<c-col :span="24">
<c-ptap12 :model="model" :payuil="model.cptp.payuil" :argadr="{title: '汇款人', grp:'cpdgrp', rol:'orc'}" :isShowCard="true" ptytyp="C"></c-ptap12>
</c-col>
<!-- SG000818 : 汇款人常驻国家/地区代码 -->
<c-col :span="24">
<el-form-item label="汇款人常驻国家/地区代码" prop="cptp.draweecountcode">
<c-select v-model="model.cptp.draweecountcode" @change="draweecountcodeChange()" isShowKeyAndLabel style="width: 100%" placeholder="请选择汇款人常驻国家/地区代码">
<el-option v-for="item in model.bopCtyList" :key="item.cod" :value="item.cod" :label="`${item.numcod} - ${item.cod} - ${item.txt}`">
</el-option>
</c-select>
</el-form-item>
</c-col>
</c-col>
</c-col>
</div>
</template>
<script>
import event from "../../event";
import Default from "../../model/default";
export default {
inject: ["root"],
props: ["model", "codes"],
mixins: [event, Default],
data() {
return {};
},
methods: {},
created() {},
watch: {
"model.cptp.draweecountcode": {
immediate: true,
handler(newVal) {
if (newVal) {
this.model.cpdgrp.rec.orcctycod = newVal;
}
}
},
},
computed: {
swftypList() {
return this.model.cpdgrp.cbs.nom1.cur === "CNY"
? this.codes.cptadvCnySwftyp
: this.codes.cptadvNoCnySwftyp;
}
}
};
</script>
<style scoped lang="less">
.box-card {
margin-bottom: 10px;
/deep/ .el-form-item--mini.el-form-item,
.el-form-item--small.el-form-item {
margin-bottom: 10px;
}
/deep/ .el-card__body {
padding: 10px 10px 10px 0px;
}
}
.el-textarea .el-textarea__inner {
height: 100px;
}
</style>
<template>
<div class="eibs-tab">
<c-col :span="24">
<!-- ======================= 左边 ========================= -->
<c-col :span="12" style="padding-right: 20px">
<!-- S0000192 : 附言 -->
<c-col :span="24">
<el-form-item label="汇款附言(70)" prop="attp.commet">
<c-input placeholder="请输入附言" :rows="3" :cols="35" :autosize="{minRows: 1, maxRows: 3}" maxlength="105" show-word-limit type="textarea" v-model="model.attp.commet"></c-input>
</el-form-item>
</c-col>
</c-col>
<!-- ======================= 右边 ========================= -->
<c-col :span="12" style="padding-left: 20px">
<!-- S0000242 : 附言72(102) -->
<c-col :span="24">
<el-form-item label="致银行附言(72)" prop="attp.com102">
<c-input placeholder="请输入致银行附言" :rows="7" :cols="35" :autosize="{minRows: 1, maxRows: 7}" maxlength="245" show-word-limit type="textarea" v-model="model.attp.com102"></c-input>
</el-form-item>
</c-col>
</c-col>
</c-col>
</div>
</template>
<script>
import event from "../../event";
import Default from "../../model/default";
export default {
inject: ["root"],
props: ["model", "codes"],
mixins: [event, Default],
data() {
return {};
},
methods: {},
created() {},
watch: {
"model.attp.commet": {
immediate: true,
handler(newVal) {
if (newVal) {
this.model.cpdgrp.blk.contag70 = newVal;
}
}
},
},
computed: {
swftypList() {
return this.model.cpdgrp.cbs.nom1.cur === "CNY"
? this.codes.cptadvCnySwftyp
: this.codes.cptadvNoCnySwftyp;
}
}
};
</script>
<style scoped lang="less">
.box-card {
margin-bottom: 10px;
/deep/ .el-form-item--mini.el-form-item,
.el-form-item--small.el-form-item {
margin-bottom: 10px;
}
/deep/ .el-card__body {
padding: 10px 10px 10px 0px;
}
}
.el-textarea .el-textarea__inner {
height: 100px;
}
</style>
<template>
<div class="eibs-tab">
<c-col :span="24">
<!-- ======================= 左边 ========================= -->
<c-col :span="12" style="padding-right: 20px">
<!-- 处理方式 -->
<c-col :span="24">
<el-form-item label="处理方式" prop="cpdgrp.rec.accmod">
<c-select :disabled="this.model.cpdgrp.rec.accmod=='G'" v-model="model.cpdgrp.rec.accmod" style="width:100%" placeholder="请输入处理方式" :code="codes.cptmod" :filterKey="this.model.cpdgrp.rec.accmod=='G'?['G']:['0','2']">
</c-select>
</el-form-item>
</c-col>
<!-- S0000367 : 业务编号 -->
<c-col :span="24">
<el-form-item label="业务编号" prop="cpdgrp.rec.ownref">
<c-fullbox>
<c-input v-model="model.cpdgrp.rec.ownref" maxlength="16" placeholder="请输入业务编号" disabled></c-input>
<template slot="footer">
<c-button style="margin: 0 10px 0 10px; padding: 0 12px; height: 32px" size="small" type="primary" icon="el-icon-search">
</c-button>
<c-button style="margin: 0 0" size="small" type="primary" :disabled="model.cpdgrp.rec.ownref!=''" @click="getOwnref()">
获取
</c-button>
</template>
</c-fullbox>
</el-form-item>
</c-col>
<!-- SG000398 : 清算编号 -->
<c-col :span="24">
<el-form-item label="清算编号(IM)" prop="cpdgrp.rec.sysno">
<c-input v-model="model.cpdgrp.rec.sysno" maxlength="21" placeholder="请输入清算编号"></c-input>
</el-form-item>
</c-col>
<!-- S0000372 : 汇款金额 -->
<c-col :span="24">
<c-col :span="12">
<el-form-item label="汇款金额" prop="cpdgrp.cbs.nom1.cur">
<c-select-cur v-model="model.cpdgrp.cbs.nom1.cur" style="width:100%" placeholder="" dbCode="curtxt" :filterKey="['CNY']" :isShowKeyAndLabel="true">
</c-select-cur>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label-width="5px" prop="cpdgrp.cbs.nom1.amt">
<c-input-currency :currency="model.cpdgrp.cbs.nom1.cur" v-model="model.cpdgrp.cbs.nom1.amt" placeholder=""></c-input-currency>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<el-form-item label="汇款语种" prop="cptp.payuil">
<c-select v-model="model.cptp.payuil" style="width:100%" placeholder="请输入汇款语种" dbCode="PAYUIL">
</c-select>
</el-form-item>
</c-col>
</c-col>
<!-- ======================= 右边 ========================= -->
<c-col :span="12" style="padding-left: 20px">
<!-- SG000405 : 汇款性质 -->
<c-col :span="24">
<el-form-item label="汇款性质" prop="cpdgrp.rec.trntyp">
<c-select v-model="model.cpdgrp.rec.trntyp" style="width:100%" :isShowKeyAndLabel="true" placeholder="请输入汇款性质" dbCode="CTRTYE" uil="CN" sort="SRT" :filterKey="['01','02','03','04','05','06','07','08','09','10']">
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="解付日期" prop="cpdgrp.rec.paydat">
<c-date-picker type="date" v-model="model.cpdgrp.rec.paydat" style="width:100%" placeholder="请输入解付日期"></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="起息日" prop="cpdgrp.rec.valdat">
<c-date-picker type="date" v-model="model.cpdgrp.rec.valdat" style="width:100%" placeholder="请输入起息日"></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="费用承担方" prop="cpdgrp.rec.detchgcod">
<c-select placeholder="请选择费用承担方" style="width:100%" v-model="model.cpdgrp.rec.detchgcod" dbCode="FEECOD" uil="CN" sort="SRT" @change="feetypChange" :filterKey="['SHA','BEN','OUR']" :isShowKeyAndLabel="true">
</c-select>
</el-form-item>
</c-col>
<!-- <c-col :span="24">
<c-col :span="12">
<el-form-item label="国外费用币种" prop="cpdgrp.rec.feecur">
<c-select v-model="model.cpdgrp.rec.feecur" style="width:100%" placeholder="请输入国外费用币种" dbCode="curtxt">
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="" label-width="5px" prop="cpdgrp.rec.feeamt">
<c-input-currency :currency="model.cpdgrp.rec.feecur" v-model="model.cpdgrp.rec.feeamt" placeholder="请输入国外费用金额"></c-input-currency>
</el-form-item>
</c-col>
</c-col> -->
<!-- <c-col :span="24" v-if="!model.cptp.bustypStr">
<el-form-item label="业务种类" prop="cptp.bustyp">
<c-select disabled v-model="model.cptp.bustyp" style="width:100%" placeholder="请输入业务种类" dbCode="BUSTYP" uil="CN" :expKey="['02123','02124']">
</c-select>
</el-form-item>
</c-col>
<c-col :span="24" v-if="model.cptp.bustypStr">
<el-form-item label="业务种类" prop="cptp.bustypStr">
<c-input disabled v-model="model.cptp.bustypStr" style="width:100%">
</c-input>
</el-form-item>
</c-col> -->
<c-col :span="24">
<el-form-item label="业务种类" prop="cptp.bustyp">
<c-select v-model="model.cptp.bustyp" style="width:100%" placeholder="请输入业务种类">
<el-option v-for="item in model.bustypList" :key="item.cod" :value="item.cod"
:label="`${item.cod} - ${item.txt}`">
</el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="同名划转" prop="cpdgrp.rec.tsnflg" class="checkbox-left">
<c-checkbox v-model="model.cpdgrp.rec.tsnflg" true-label="X" false-label=""></c-checkbox>
</el-form-item>
</c-col>
</c-col>
</c-col>
</div>
</template>
<script>
import event from "../../event";
import Default from "../../model/default";
export default {
inject: ["root"],
props: ["model", "codes"],
mixins: [event, Default],
data() {
return {};
},
methods: {},
created() {},
watch: {
"model.cpdgrp.cbs.nom1.cur": {
immediate: true,
handler(newVal) {
if (newVal) {
this.model.cpdgrp.cbs.max.cur = newVal;
this.model.cpdgrp.rec.feecur = newVal;
}
}
},
"model.cpdgrp.cbs.nom1.amt": {
immediate: true,
handler(newVal) {
if (newVal) {
this.model.cpdgrp.cbs.max.amt = newVal;
}
}
}
}
};
</script>
<style scoped lang="less">
.box-card {
margin-bottom: 10px;
/deep/ .el-form-item--mini.el-form-item,
.el-form-item--small.el-form-item {
margin-bottom: 10px;
}
/deep/ .el-card__body {
padding: 10px 10px 10px 0px;
}
}
.el-textarea .el-textarea__inner {
height: 100px;
}
</style>
<template>
<div class="eibs-tab">
<c-col :span="24">
<!-- ======================= 左边 ========================= -->
<c-col :span="12" style="padding-right: 20px">
<c-col :span="24">
<c-ptap13 :disabledNam="true" :model="model" :payuil="model.cptp.payuil" :isMyClient="true" :argadr="{title: '收款人', grp:'cpdgrp', rol:'pye'}"
:isShowCard= "true" ptytyp="C"></c-ptap13>
</c-col>
</c-col>
<!-- ======================= 右边 ========================= -->
<c-col :span="12" style="padding-left: 20px">
<!-- SG000508 : 汇款人 -->
<c-col :span="24">
<c-ptap13 :model="model" :payuil="model.cptp.payuil" :argadr="{title: '汇款人', grp:'cpdgrp', rol:'orc'}"
:isShowCard= "true" ptytyp="C"></c-ptap13>
</c-col>
<!-- SG000818 : 汇款人常驻国家/地区代码 -->
<c-col :span="24">
<el-form-item label="汇款人常驻国家/地区代码" prop="cptp.draweecountcode">
<c-select v-model="model.cptp.draweecountcode" @change="draweecountcodeChange()" isShowKeyAndLabel style="width: 100%" placeholder="请选择汇款人常驻国家/地区代码">
<el-option v-for="item in model.bopCtyList" :key="item.cod" :value="item.cod" :label="`${item.numcod} - ${item.cod} - ${item.txt}`">
</el-option>
</c-select>
</el-form-item>
</c-col>
</c-col>
</c-col>
</div>
</template>
<script>
import event from "../../event";
import Default from "../../model/default";
export default {
inject: ["root"],
props: ["model", "codes"],
mixins: [event, Default],
data() {
return {};
},
methods: {},
created() {},
watch: {
"model.cptp.draweecountcode": {
immediate: true,
handler(newVal) {
if (newVal) {
this.model.cpdgrp.rec.orcctycod = newVal;
}
}
},
},
computed: {
swftypList() {
return this.model.cpdgrp.cbs.nom1.cur === "CNY"
? this.codes.cptadvCnySwftyp
: this.codes.cptadvNoCnySwftyp;
}
}
};
</script>
<style scoped lang="less">
.box-card {
margin-bottom: 10px;
/deep/ .el-form-item--mini.el-form-item,
.el-form-item--small.el-form-item {
margin-bottom: 10px;
}
/deep/ .el-card__body {
padding: 10px 10px 10px 0px;
}
}
.el-textarea .el-textarea__inner {
height: 100px;
}
</style>
<template>
<div class="eibs-tab">
<c-col :span="24">
<!-- ======================= 左边 ========================= -->
<c-col :span="12" style="padding-right: 20px">
<!-- S0000192 : 附言 -->
<c-col :span="24">
<el-form-item label="汇款附言" prop="attp.commet">
<c-input placeholder="请输入附言" :rows="4" :cols="35" :autosize="{minRows: 1, maxRows: 4}" maxlength="140" show-word-limit type="textarea" v-model="model.attp.commet"></c-input>
</el-form-item>
</c-col>
</c-col>
<!-- ======================= 右边 ========================= -->
<c-col :span="12" style="padding-left: 20px">
</c-col>
</c-col>
</div>
</template>
<script>
import event from "../../event";
import Default from "../../model/default";
export default {
inject: ["root"],
props: ["model", "codes"],
mixins: [event, Default],
data() {
return {};
},
methods: {},
created() {},
watch: {
"model.attp.commet": {
immediate: true,
handler(newVal) {
if (newVal) {
this.model.cpdgrp.blk.contag70 = newVal;
}
}
}
},
computed: {
swftypList() {
return this.model.cpdgrp.cbs.nom1.cur === "CNY"
? this.codes.cptadvCnySwftyp
: this.codes.cptadvNoCnySwftyp;
}
}
};
</script>
<style scoped lang="less">
.box-card {
margin-bottom: 10px;
/deep/ .el-form-item--mini.el-form-item,
.el-form-item--small.el-form-item {
margin-bottom: 10px;
}
/deep/ .el-card__body {
padding: 10px 10px 10px 0px;
}
}
.el-textarea .el-textarea__inner {
height: 100px;
}
</style>
<template>
<div class="eibs-tab">
<c-col :span="24">
<!-- ======================= 左边 ========================= -->
<c-col :span="12" style="padding-right: 20px">
<c-col :span="24">
<c-ptap14 :model="model" :isAdrblk="true" :disabledAdrblk="true" :haveAdrLabel="true" :isShowCard="true" :requiredNam="true" :isMyClient="true" :argadr="{title: '收款人(59)', grp: 'cpdgrp', rol: 'pye',}" ptytyp="C">
</c-ptap14>
</c-col>
</c-col>
<!-- ======================= 右边 ========================= -->
<c-col :span="12" style="padding-left: 20px">
<!-- SG000508 : 汇款人 -->
<c-col :span="24">
<c-ptap14 :model="model" :isShowCard="true" :isMyClient="false" :argadr="{title: '汇款人(50)', grp: 'cpdgrp', rol: 'orc',}" ptytyp="C">
</c-ptap14>
</c-col>
<!-- SG000818 : 汇款人常驻国家/地区代码 -->
<c-col :span="24">
<el-form-item label="汇款人常驻国家/地区代码" prop="cptp.draweecountcode">
<!-- <c-business-cty2 v-model="model.cptp.draweecountcode" placeholder="请输入汇款人常驻国家/地区代码"></c-business-cty2> -->
<c-select v-model="model.cptp.draweecountcode" @change="draweecountcodeChange()" isShowKeyAndLabel style="width: 100%"
placeholder="请选择汇款人常驻国家/地区代码" >
<el-option v-for="item in model.bopCtyList" :key="item.cod" :value="item.cod"
:label="`${item.numcod} - ${item.cod} - ${item.txt}`">
</el-option>
</c-select>
</el-form-item>
</c-col>
</c-col>
</c-col>
</div>
</template>
<script>
import event from "../../event";
import Default from "../../model/default";
export default {
inject: ["root"],
props: ["model", "codes"],
mixins: [event, Default],
data() {
return {};
},
methods: {},
created() {},
watch: {
"model.cptp.draweecountcode": {
immediate: true,
handler(newVal) {
if (newVal) {
this.model.cpdgrp.rec.orcctycod = newVal;
}
}
},
},
computed: {
swftypList() {
return this.model.cpdgrp.cbs.nom1.cur === "CNY"
? this.codes.cptadvCnySwftyp
: this.codes.cptadvNoCnySwftyp;
}
}
};
</script>
<style scoped lang="less">
.box-card {
margin-bottom: 10px;
/deep/ .el-form-item--mini.el-form-item,
.el-form-item--small.el-form-item {
margin-bottom: 10px;
}
/deep/ .el-card__body {
padding: 10px 10px 10px 0px;
}
}
.el-textarea .el-textarea__inner {
height: 100px;
}
</style>
<template>
<div class="eibs-tab">
<c-col :span="24">
<!-- ======================= 左边 ========================= -->
<c-col :span="12" style="padding-right: 20px">
<!-- S0000192 : 附言 -->
<c-col :span="24">
<el-form-item label="汇款附言(70)" prop="attp.commet">
<c-input placeholder="请输入附言" :rows="4" :cols="35" :autosize="{minRows: 1, maxRows: 4}" maxlength="140" show-word-limit type="textarea" v-model="model.attp.commet"></c-input>
</el-form-item>
</c-col>
</c-col>
<!-- ======================= 右边 ========================= -->
<c-col :span="12" style="padding-left: 20px">
<!-- S0000242 : 附言72(102) -->
<c-col :span="24">
<el-form-item label="致银行附言(72)" prop="attp.com102">
<c-input placeholder="请输入致银行附言" :rows="6" :cols="35" :autosize="{minRows: 1, maxRows: 6}" maxlength="210" show-word-limit type="textarea" v-model="model.attp.com102"></c-input>
</el-form-item>
</c-col>
</c-col>
</c-col>
</div>
</template>
<script>
import event from "../../event";
import Default from "../../model/default";
export default {
inject: ["root"],
props: ["model", "codes"],
mixins: [event, Default],
data() {
return {};
},
methods: {},
created() {},
watch: {
"model.attp.commet": {
immediate: true,
handler(newVal) {
if (newVal) {
this.model.cpdgrp.blk.contag70 = newVal;
}
}
},
},
computed: {
swftypList() {
return this.model.cpdgrp.cbs.nom1.cur === "CNY"
? this.codes.cptadvCnySwftyp
: this.codes.cptadvNoCnySwftyp;
}
}
};
</script>
<style scoped lang="less">
.box-card {
margin-bottom: 10px;
/deep/ .el-form-item--mini.el-form-item,
.el-form-item--small.el-form-item {
margin-bottom: 10px;
}
/deep/ .el-card__body {
padding: 10px 10px 10px 0px;
}
}
.el-textarea .el-textarea__inner {
height: 100px;
}
</style>
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