Commit 93159d40 by liaoxing

bctdav 前端添加

parent 61d902bc
import Api from "~/service/Api"
import Utils from "~/utils"
export default {
async onBctmodButgetref(){
let rtnmsg = await this.executeRule("bctmod.butgetref")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
this.updateModel(rtnmsg.data);
this.$message({
type:'success',
message:'获取成功!'
})
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onDrepDet(){
let rtnmsg = await this.executeRule("drep.det")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onRmipDet(){
let rtnmsg = await this.executeRule("rmip.det")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onDrrpDet(){
let rtnmsg = await this.executeRule("drrp.det")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onColinsButtxmsel(){
let rtnmsg = await this.executeRule("colins.buttxmsel")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onDftinsButtxmsel(){
let rtnmsg = await this.executeRule("dftins.buttxmsel")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onOthins1Buttxmsel(){
let rtnmsg = await this.executeRule("othins1.buttxmsel")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onSetmodDet(){
let rtnmsg = await this.executeRule("setmod.det")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onTrndocButshw(){
let rtnmsg = await this.executeRule("trndoc.butshw")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onTrndocButadd(){
let rtnmsg = await this.executeRule("trndoc.butadd")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onTrndocButnew(){
let rtnmsg = await this.executeRule("trndoc.butnew")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onTrndocButattto(){
let rtnmsg = await this.executeRule("trndoc.butattto")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onTrndocButdel(){
let rtnmsg = await this.executeRule("trndoc.butdel")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onTrndocButatt(){
let rtnmsg = await this.executeRule("trndoc.butatt")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onLiaallButmisamt(){
let rtnmsg = await this.executeRule("liaall.butmisamt")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onLiaallButmissig(){
let rtnmsg = await this.executeRule("liaall.butmissig")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
}
\ No newline at end of file
export default {
buildPtspta (ptsptaObj) {
let pts = ptsptaObj.pts;
let ptspta = {
rol: pts.rol,
name: pts.nam,
ptyinr: pts.ptyinr,
ptainr: pts.ptainr,
extkey: pts.extkey,
dftdsp: pts.dftdsp,
dftcur: pts.dftcur,
dftact: pts.dftact,
dftfeecur: pts.dftfeecur,
dftactptainr: pts.dftactptainr,
glggrpflg: pts.glggrpflg,
adrblk: pts.adrblk
};
return ptspta;
},
buildCommonData (model, trnName) {
let ptsptaList = [];
if (model.bcdgrp.co2.pts.extkey) {
ptsptaList.push(this.buildPtspta(model.bcdgrp.co2));
}
if (model.bcdgrp.drr.pts.extkey) {
ptsptaList.push(this.buildPtspta(model.bcdgrp.drr));
}
if (model.bcdgrp.dre.pts.extkey) {
ptsptaList.push(this.buildPtspta(model.bcdgrp.dre));
}
if (model.bcdgrp.rmi.pts.extkey) {
ptsptaList.push(this.buildPtspta(model.bcdgrp.rmi));
}
let dataObj = {
rec: {
objtyp: 'BCD',
// objinr: model.bcdgrp.rec.inr,
ownref: model.bcdgrp.rec.ownref,
opndat: model.bcdgrp.rec.opndat,
expdat: model.bcdgrp.rec.expdat,
branchInr: model.bcdgrp.rec.branchInr,
nam: model.bcdgrp.rec.nam,
},
cbsMap: {
MAX: model.bcdgrp.cbs.max,
OPN1: model.bcdgrp.cbs.opn1,
// MAC: model.bcdgrp.cbs.mac,
// MAC2: model.bcdgrp.cbs.mac2,
// OPC2: model.bcdgrp.cbs.opc2,
// CNF: model.bcdgrp.cbs.cnf,
},
ptsList: ptsptaList,
transName: trnName,
userId: window.sessionStorage.userId ? window.sessionStorage.userId : 'ZL'
};
return dataObj
},
buildSetfeg (model, trnName) {
let params = {
...this.buildCommonData(model, trnName),
liaall: model.liaall,
liaccv: model.liaccv,
doceot: model.trnmod.trndoc.doceot,
};
return params
},
buildSetglg (model, trnName) {
let params = {
...this.buildCommonData(model, trnName),
setfeg: model.setmod.setfeg,
liaall: model.liaall,
liaccv: model.liaccv,
};
return params
},
buildGlentry (model, trnName) {
let params = {
...this.buildCommonData(model, trnName),
liaallg: model.liaall.liaallg,
setfog: model.setmod.setfog,
setfeg: model.setmod.setfeg,
setglg: model.setmod.setglg,
};
return params
},
buildEngp (model, trnName) {
let params = {
...this.buildCommonData(model, trnName),
liaallg: model.liaall.liaallg,
};
return params
},
buildDocpan (model, trnName) {
let params = {
...this.buildCommonData(model, trnName),
};
return params
},
buildCcvpan (model, trnName) {
let params = {
...this.buildCommonData(model, trnName),
liaccvg: model.liaccv.liaccvg,
oldamt: model.liaccv.oldamt,
chgamt: model.liaccv.chgamt,
concur: model.liaccv.concur,
};
return params
},
buildLimitbody (model, trnName) {
let params = {
...this.buildCommonData(model, trnName),
rec: {
objtyp: 'BCD',
objinr: model.bcdgrp.rec.inr,
ownref: model.bcdgrp.rec.ownref,
},
};
return params
},
buildDoctre (model, trnName) {
let params = {
...this.buildCommonData(model, trnName),
rec: {
objtyp: 'BCD',
objinr: model.bcdgrp.rec.inr,
ownref: model.bcdgrp.rec.ownref,
// swiftflg: model.gitp.swiftflg,
},
};
return params
},
// 公共组件setmod中dsp字段改变,触发联动时候的入参
buildSetgllAccts (model, trnName, setglg) {
let params = {
...this.buildCommonData(model, trnName),
setglg
};
return params
}
}
\ No newline at end of file
import Api from '~/service/Api';
import commonFunctions from '~/mixin/commonFunctions.js';
import buildFn from './buildCommons.js';
import setmod from '~/components/business/setmod/event';
import glentry from '~/components/business/glentry/event';
import engp from '~/components/business/engp/event';
import docpan from '~/components/business/docpan/event';
import ccvpan from '~/components/business/ccvpan/event';
import limitbody from '~/components/business/limitbody/event';
import doctre from '~/components/business/doctre/event';
import Utils from "~/utils"
export default {
mixins: [commonFunctions],
methods: {
...setmod,
...glentry,
...engp,
...docpan,
...ccvpan,
...limitbody,
...doctre,
async init () {
const params = {
spt: JSON.parse(localStorage.getItem('row_' + this.trnName)),
// trnmod:{
// trn:JSON.parse(localStorage.getItem('review_'+this.trnName))
// }
}
const res = await Api.post('/service/bctdav/init', {
...params,
transName: this.trnName,
userId: window.sessionStorage.userId || 'ZL',
bcdgrp:{
rec:{
inr: this.$route.query.inr
}
},
});
if (!res.data) {
return
}
this.copyValueFromVoData(this.model, res.data)
this.copyValueFromVoData(this.model.setmod.setfeg, res.data.setfeg)
this.copyValueFromVoData(this.model.setmod.setfog, res.data.setfog)
this.copyValueFromVoData(this.model.setmod.setglg, res.data.setglg)
},
// 兼容处理在前端model中定义了字段,后端返回的数据中不存在字段的问题
copyValueFromVoData (model, data) {
let keysList = Object.keys(model)
keysList.map((key) => {
if (data[key]) {
if (Utils.typeOf(model[key]) === 'Object') {
this.copyValueFromVoData(model[key], data[key])
} else {
this.$set(model, key, data[key])
}
}
})
},
async tabClick(tab) {
if (this.isInDisplay) {
return;
}
let name = tab.name;
switch (name) {
case 'ccvpan':
let ccvpanRequest = buildFn.buildCcvpan(this.model, this.trnName);
this.processLiaccv(ccvpanRequest);
break;
case 'engp':
let engpRequest = buildFn.buildEngp(this.model, this.trnName);
this.processLiaall(engpRequest);
break;
case 'setmod':
let setfegRequest = buildFn.buildSetfeg(this.model, this.trnName);
// 此处利用回调是为了等setfeg的接口调用完成后才去获取setglg参数,由于setglg参数依赖于setfeg函数的返回值
this.processSetpan(setfegRequest, () => {
return buildFn.buildSetglg(this.model, this.trnName);
});
break;
case 'docpan':
let docpanRequest = buildFn.buildDocpan(this.model, this.trnName);
this.processTrndoc(docpanRequest);
break;
case 'glepan':
let glentryRequest = buildFn.buildGlentry(this.model, this.trnName);
this.processGlentry(glentryRequest);
break;
case 'limitbody':
let limitbodyRequest = buildFn.buildLimitbody(this.model, this.trnName);
this.processLimitbody(limitbodyRequest);
break;
case 'doctre':
let doctreRequest = buildFn.buildDoctre(this.model, this.trnName);
this.processDoctre(doctreRequest);
break;
default:
return;
}
},
// 点击获取按钮拉取当前key字段下的表单数据
queryFormData(key) {
console.log(key);
},
// // 业务信息=》基本信息=》编号-----获取编号
// async queryOwnref() {
// let params = {
// ptainr: this.model.gidgrp.apl.pts.ptainr,
// businessType: 'LG',保函用的是LG
// tbl: 'LG',
// };
// const loading = this.loading();
// let res = await Api.post('/service/gitopn/getOwnRef', params);
// if (res.respCode == SUCCESS) {
// loading.close();
// this.model.gidgrp.rec.ownref = res.data;
// }
// },
// 获取弹框表格数据
async queryGridEtyPromptDialogData(type, ptytyp) {
let params = {
userId: window.sessionStorage.userId || 'ZL',
ptytyp: ptytyp,
extkey: this.model.bcdgrp[type.toLowerCase()].pts.extkey,
};
let res = await Api.post('/service/ptspta/list', params);
if (res.respCode == SUCCESS) {
this.root.$refs['etyDialog'].show = true;
this.root.promptData.data = res.data.ptaInfos;
this.root.promptData.type = type;
}
},
// 选中弹框表格的行数据
async selectGridEtyPromptData(row) {
let params = {
...row,
};
let res = await Api.post('/service/ptspta/fetch', params);
if (res.respCode == SUCCESS) {
this.$set(this.model.bcdgrp, row.role.toLowerCase(), res.data);
}
},
// 业务信息=》基本信息=》支出目的
purposChange(key, value) {
this.handleChangeForm(key, value);
},
// 初始化保函开立类型码表下拉列表
async queryHndtypCodeTableList(trnName) {
let params = {
botp: {
swiftflg: this.model.botp.swiftflg,
},
bcdgrp: {
rec: {
purpos: this.model.bcdgrp.rec.purpos,
},
},
transName: trnName.toUpperCase(),
};
let res = await Api.post('/service/bctdav/initHndtyp', params);
if (res.respCode == SUCCESS) {
this.$set(this.codes, 'voHndtyp', res.data);
}
},
// 是否SWIFT格式修改--联动保函开立类型
handleChangeSwiftflg() {
this.queryHndtypCodeTableList(this.root.trnName);
},
// 支出目的修改--联动保函开立类型
handleChangePurpos() {
this.queryHndtypCodeTableList(this.root.trnName);
},
buildLiaccv () {
let params = {
...buildFn.buildCommonData(this.model, this.trnName),
liaccvg: this.model.liaccv.liaccvg,
oldamt: this.model.liaccv.oldamt,
chgamt: this.model.liaccv.chgamt,
concur: this.model.liaccv.concur,
};
return params
},
// 公共组件setmod处理方式改变触发联动
changeSetmodModel (emitParams) {
let reqParams = {}
switch (emitParams.code) {
case 'processMethods':
reqParams = buildFn.buildSetglg(this.model, this.trnName);
this.calcPayDetail(reqParams)
break
case 'changeDsp':
let index = emitParams.index;
let setglgRequest = buildFn.buildSetglg(this.model, this.trnName);
setglgRequest.setglg = {setgll: emitParams.list};
this.setgllAccts(setglgRequest, index);
break
default:
return
}
}
},
};
import Utils from "~/utils"
/**
* Bctdav Check规则
*/
let checkObj = {
"bctp.drrp.ptsget.sdamod.dadsnd" :null,
"liaall.misamt" :null,
"bctp.usr.extkey" :null,
"bcdgrp.blk.dftins" :null,
"bcdgrp.dre.adrelc" :null,
"bcdgrp.blk.othins" :null,
"bctp.drep.ptsget.sdamod.dadsnd" :null,
"bcdgrp.rmi.namelc" :null,
"setmod.dspflg" :null,
"bcdgrp.rec.invtyp" :null,
"bcdgrp.rec.matpertyp" :null,
"bcdgrp.drr.adrelc" :null,
"bcdgrp.blk.colins" :null,
"bcdgrp.rec.ownref" :null,
"bcdgrp.blk.chgtxt" :null,
"bcdgrp.drr.pts.extkey" :null,
"bctp.acttyp" :null,
"bcdgrp.dre.pts.adrblk" :null,
"bcdgrp.rmi.pts.ref" :null,
"bcdgrp.rmi.pts.adrblk" :null,
"bcdgrp.cbs.max.amt" :null,
"bcdgrp.dre.namelc" :null,
"bcdgrp.rmi.adrelc" :null,
"bctp.recget.sdamod.dadsnd" :null,
"bcdgrp.cbs.max.cur" :null,
"bctp.rmip.ptsget.sdamod.dadsnd" :null,
"bcdgrp.rec.stacty" :null,
"bcdgrp.drr.namelc" :null,
"bcdgrp.rec.matperbeg" :null,
"bcdgrp.rec.doctypcod" :null,
"bcdgrp.rmi.pts.extkey" :null,
"bcdgrp.blk.bcgdet" :null,
"bcdgrp.dre.pts.ref" :null,
"bcdgrp.rec.oridre" :null,
"bcdgrp.drr.pts.adrblk" :null,
"mtabut.coninf.conexedat" :null,
"bcdgrp.rec.rcvdat" :null,
"outlen.szflg" :null,
"setmod.docamt" :null,
"bcdgrp.dre.pts.extkey" :null,
"bcdgrp.rec.matdat" :null,
"bctp.recget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"bcdgrp.rec.ownref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"bctp.recget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"bcdgrp.rec.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"bctp.usr.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 8,message:"长度不能超过8"}
],
"bctp.usrget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"bcdgrp.dre.pts.ref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"bctp.drep.ptsget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"bcdgrp.dre.pts.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"bctp.drep.ptsget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"bcdgrp.cbs.max.amt":[
{type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"bcdgrp.dre.namelc":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"bcdgrp.cbs.opn1.amt":[
{type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"bcdgrp.dre.pts.adrblk":[
{type: "string", required: true, message: "必输项"},
{max: 350,message:"长度不能超过350"}
],
"bcdgrp.dre.dbfadrblkcn":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"bcdgrp.rec.rcvdat":[
{type: "string", required: false, message: "输入正确的日期"}
],
"bcdgrp.rec.predat":[
{type: "string", required: false, message: "输入正确的日期"}
],
"bcdgrp.dre.adrelc":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"bcdgrp.rec.advdat":[
{type: "string", required: false, message: "输入正确的日期"}
],
"bcdgrp.rmi.pts.ref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"bctp.rmip.ptsget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"bcdgrp.rmi.pts.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 120,message:"长度不能超过120"}
],
"bctp.rmip.ptsget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"bcdgrp.rec.matdat":[
{type: "string", required: false, message: "输入正确的日期"}
],
"bcdgrp.rmi.namelc":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"bcdgrp.rmi.pts.adrblk":[
{type: "string", required: false, message: "必输项"},
{max: 120,message:"长度不能超过120"}
],
"bcdgrp.rmi.dbfadrblkcn":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"bcdgrp.rec.matpercnt":[
{type: "number", required: false, message: "必输项"},
{type: "number",max: 999,message:"长度不能超过3"}
],
"bcdgrp.rmi.adrelc":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"bcdgrp.blk.bcgdet":[
{type: "string", required: true, message: "必输项"},
{max: 45,message:"长度不能超过45"}
],
"bcdgrp.drr.pts.ref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"bctp.drrp.ptsget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"bcdgrp.drr.pts.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"bctp.drrp.ptsget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"bcdgrp.drr.namelc":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"bcdgrp.drr.pts.adrblk":[
{type: "string", required: false, message: "必输项"},
{max: 135,message:"长度不能超过135"}
],
"bcdgrp.drr.dbfadrblkcn":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"bcdgrp.drr.adrelc":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"bcdgrp.blk.colins":[
{type: "string", required: true, message: "必输项"},
{max: 65,message:"长度不能超过65"}
],
"bcdgrp.blk.chgtxt":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"bcdgrp.blk.dftins":[
{type: "string", required: true, message: "必输项"},
{max: 65,message:"长度不能超过65"}
],
"bcdgrp.blk.othins":[
{type: "string", required: true, message: "必输项"},
{max: 65,message:"长度不能超过65"}
],
"setmod.ref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"setmod.docamt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"setmod.zmqacc":[
{type: "string", required: false, message: "必输项"},
{max: 20,message:"长度不能超过20"}
],
"trnmod.trndoc.advnam":[
{type: "string", required: false, message: "必输项"},
{max: 50,message:"长度不能超过50"}
],
"trnmod.trndoc.amdapl":[
{type: "string", required: true, message: "必输项"},
{max: 50,message:"长度不能超过50"}
],
"trnmod.trndoc.advdoc":[
{type: "string", required: false, message: "必输项"},
{max: 1,message:"长度不能超过1"}
],
"trnmod.trndoc.filrecv":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"trnmod.trndoc.doctrestm":[
{type: "string", required: false, message: "必输项"},
{max: 1,message:"长度不能超过1"}
],
"trnmod.trndoc.condocstm":[
{type: "string", required: false, message: "必输项"},
{max: 1,message:"长度不能超过1"}
],
"trnmod.trndoc.rcvatt.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"mtabut.coninf.oitinf.oit.inftxt":[
{type: "string", required: true, message: "必输项"},
{max: 60,message:"长度不能超过60"}
],
"mtabut.coninf.oitset.oit.inftxt":[
{type: "string", required: true, message: "必输项"},
{max: 60,message:"长度不能超过60"}
],
"mtabut.coninf.conexedat":[
{type: "string", required: false, message: "输入正确的日期"}
],
"mtabut.coninf.usr.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 8,message:"长度不能超过8"}
],
"liaall.outamt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"liaall.outpct":[
{type: "string", required: false, message: "必输项"},
{max: 6,message:"长度不能超过6"}
],
"liaall.concur":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"liaall.misamt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"liaall.exttotoldamt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"liaall.exttotamt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
}
for (const key in checkObj) {
if (Object.hasOwnProperty.call(checkObj, key)) {
checkObj[key] = checkObj[key] ? checkObj[key] : Utils.reflectCheck(key)
}
}
export default checkObj
import Pts from '~/components/business/commonModel/Pts';
import Pub from '~/components/business/commonModel/index.js';
export default class Bctdav{
constructor () {
this.data = {
bctdrrl1blk:"",
bctdrel1blk:"",
bctdrel2blk:"",
bctrogl1blk:"",
bctrogl2blk:"",
cnybop:{
cnyflg:"",
traflg:"",
outflg:"",
libflg:"",
vouflg:"",
},
bcdgrp:{
co2:{
pts:new Pts().data,
},
srm:{
djutyp:"",
},
rec:{
ownref:"", // Reference .bcdgrp.rec.ownref
resflg:"", // Reserved Contract .bcdgrp.rec.resflg
dftgarflg:"", // Draft to be Guaranteed .bcdgrp.rec.dftgarflg
rcvdat:"", // Docs received on .bcdgrp.rec.rcvdat
predat:"", // Date of Remittance Lt. .bcdgrp.rec.predat
advdat:"", // Advised on .bcdgrp.rec.advdat
oridre:"", // Send Original Documents to Drawee .bcdgrp.rec.oridre
doctypcod:"", // Collection Condition .bcdgrp.rec.doctypcod
matdat:"", // Maturity Date .bcdgrp.rec.matdat
matpercnt:"", // Tenor Specification .bcdgrp.rec.matpercnt
matpertyp:"", // Days/Months or Years for Maturity Period .bcdgrp.rec.matpertyp
matperbeg:"", // Tenor Starting from .bcdgrp.rec.matperbeg
stacty:"", // Country Code Risk Country .bcdgrp.rec.stacty
nam:"", // Name .bcdgrp.rec.nam
invtyp:"", // 发票类型 .bcdgrp.rec.invtyp
chato:"", // Our Charges to .bcdgrp.rec.chato
focflg:"", // Free of Payment .bcdgrp.rec.focflg
waicolcod:"", // Waive Collecting Bank Charges .bcdgrp.rec.waicolcod
wairmtcod:"", // Waive Remitting Bank Charges .bcdgrp.rec.wairmtcod
othins:"", // Defer Payment until .bcdgrp.rec.othins
stagod:"", // Good's Code (for Statistics) .bcdgrp.rec.stagod
proins:"", // Protest Instructions .bcdgrp.rec.proins
},
cbs:{
max:{
cur:"", // Document Amount .bcdgrp.cbs.max.cur
amt:"", // Document Amount .bcdgrp.cbs.max.amt
},
opn1:{
cur:"", // Open Amount .bcdgrp.cbs.opn1.cur
amt:"", // Open Amount .bcdgrp.cbs.opn1.amt
},
},
blk:{
docpre:"",
bcgdet:"", // Maturity Text .bcdgrp.blk.bcgdet
bcgdetflg:"", // BC Tenor Details modified .bcdgrp.blk.bcgdetflg
colins:"", // Collection Instructions .bcdgrp.blk.colins
dftins:"", // Draft Instructions .bcdgrp.blk.dftins
othins:"", // Other Instructions .bcdgrp.blk.othins
chgtxt:"", // Charges Text .bcdgrp.blk.chgtxt
},
dre:{
pts:new Pts().data,
},
rmi:{
pts:new Pts().data,
},
drr:{
pts:new Pts().data,
},
},
bctp:{
recget:{
sdamod:{
seainf:"", // .bctp.recget.sdamod.seainf
dadsnd:"", // Drag Drop Sender .bctp.recget.sdamod.dadsnd
},
},
usrget:{
sdamod:{
seainf:"", // .bctp.usrget.sdamod.seainf
},
},
usr:{
extkey:"", // Responsible User .bctp.usr.extkey
},
docgrdm:{
docdsclab:"", // Label of document description .bctp.docgrdm.docdsclab
docgrd:[],
},
drep:{
ptsget:{
sdamod:{
seainf:"", // .bctp.drep.ptsget.sdamod.seainf
dadsnd:"", // Drag Drop Sender .bctp.drep.ptsget.sdamod.dadsnd
},
},
},
rmip:{
ptsget:{
sdamod:{
seainf:"", // .bctp.rmip.ptsget.sdamod.seainf
dadsnd:"", // Drag Drop Sender .bctp.rmip.ptsget.sdamod.dadsnd
},
},
},
drrp:{
ptsget:{
sdamod:{
seainf:"", // .bctp.drrp.ptsget.sdamod.seainf
dadsnd:"", // Drag Drop Sender .bctp.drrp.ptsget.sdamod.dadsnd
},
},
},
sblx:"", // 申报类型 .bctp.sblx
acttyplab:"", // 款项去向 .bctp.acttyplab
acttyp:"", // ACTTYP .bctp.acttyp
},
outlen:{
szflg:"", // 申报类型 .outlen.szflg
},
setmod: new Pub().data.Setmod,
mtabut: new Pub().data.Mtabut,
trnmod: new Pub().data.Trnmod,
liaall: new Pub().data.Liaall,
liaccv: new Pub().data.Liaccv,
docpan: new Pub().data.Docpan,
}
}
}
\ No newline at end of file
<template>
<div class="eibs-tab">
<el-collapse v-model="activeNames" @change="handleChange">
<!--el-collapse-item title="备查表" name="addbcb1">
<m-addbcb1 :model="model" :codes="codes" />
</el-collapse-item-->
<el-collapse-item title="附言" name="coninfp">
<m-coninfp :model="model" :codes="codes" />
</el-collapse-item>
</el-collapse>
</div>
</template>
<script>
import event from "../event"
import Coninfp from "~/views/Public/Coninfp";
export default {
components: {
"m-coninfp": Coninfp,
//"m-addbcb1": Addbcb1,
},
inject: ["root"],
props: ["model", "codes"],
mixins: [event],
data() {
return {
activeNames: ["coninfp"],
};
},
methods: {
...event,
handleChange(val) {
console.log(val);
},
},
created: function () {},
};
</script>
<style>
</style>
\ No newline at end of file
<template>
<div class="eibs-tab">
<el-collapse v-model="activeNames" @change="handleChange">
<el-collapse-item title="跨境人民币申报" name="cnyp1">
<m-cnyp1 :model="model" :codes="codes" />
</el-collapse-item>
</el-collapse>
</div>
</template>
<script>
import event from "../event"
import Cnyp1 from "./Cnyp1"
export default {
components: {
"m-cnyp1": Cnyp1,
},
inject: ["root"],
props: ["model", "codes"],
mixins: [event],
data() {
return {
activeNames: ["cnyp1"],
};
},
methods: {
...Event,
},
created: function () {},
computed: {
},
};
</script>
<style>
.marginLable {
padding-left: 160px;
}
</style>
\ No newline at end of file
<template>
<div class="eibs">
<el-col :span="11">
<c-col :span="24">
<el-form-item label="是否报送跨境人民币2101表" prop="cnybop.cnyflg" label-width="200px">
<c-select
:code="codes.cnyflg"
disabled v-model="model.cnybop.cnyflg" style="width:100%" placeholder="请选择是否报送跨境人民币2101表">
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="是否报送跨境人民币2107表" prop="cnybop.traflg" label-width="200px">
<c-select
:code="codes.traflg"
disabled v-model="model.cnybop.traflg" style="width:100%" placeholder="请选择是否报送跨境人民币2107表">
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="是否报送跨境人民币2111表" prop="cnybop.outflg" label-width="200px">
<c-select
:code="codes.outflg"
disabled
v-model="model.cnybop.outflg" style="width:100%" placeholder="请选择是否报送跨境人民币2111表">
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="是否报送跨境人民币2106表" prop="cnybop.libflg" label-width="200px">
<c-select
:code="codes.libflg"
:disabled="model.bcdgrp.cbs.max.cur!='CNY'" v-model="model.cnybop.libflg" style="width:100%" placeholder="请选择是否报送跨境人民币2106表">
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="是否报送跨境人民币2122表" prop="cnybop.vouflg" label-width="200px">
<c-select
:code="codes.vouflg"
disabled v-model="model.cnybop.vouflg" style="width:100%" placeholder="请选择是否报送跨境人民币2122表">
</c-select>
</el-form-item>
</c-col>
</el-col>
</div>
</template>
<script>
import event from "../event"
export default {
inject: ['root'],
props:["model","codes"],
mixins: [event],
data(){
return {
}
},
methods:{...Event},
created:function(){
}
}
</script>
<style>
</style>
<template>
<c-row>
<!-- ====================左边======================= -->
<c-col :span="12" style="padding-right: 20px;">
<c-col :span="24">
<el-form-item label="放单指示条款" style="padding-top:15px">
<c-fullbox>
<c-input type="textarea" v-model="model.bcdgrp.blk.colins" maxlength="65" show-word-limit
placeholder="请输入放单指示条款">
</c-input>
<template slot="footer">
<c-button size="small" type="primary" icon="el-icon-more" @click="
showGridPromptDialog(
'bctp.colins.buttxmsel',
null,
null,
{ TXT: 'bcdgrp.blk.colins' },
{ TXT: false },
'doxpDialog'
)
">
</c-button>
</template>
</c-fullbox>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="汇票指示条款" style="padding-top:15px">
<c-fullbox>
<c-input type="textarea" v-model="model.bcdgrp.blk.dftins" maxlength="65" show-word-limit
placeholder="请输入汇票指示条款"></c-input>
<template slot="footer">
<c-button size="small" type="primary" icon="el-icon-more" @click="
showGridPromptDialog(
'bctp.dftins.buttxmsel',
null,
null,
{ TXT: 'bcdgrp.blk.dftins' },
{ TXT: false },
'doxpDialog'
)
">
</c-button>
</template>
</c-fullbox>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="拒绝证书指示条款" prop="bcdgrp.rec.proins" style="padding-top:15px">
<c-fullbox>
<c-select v-model="model.bcdgrp.rec.proins" style="width:100%" placeholder="请选择拒绝证书指示条款" :code="codes.proins">
</c-select>
</c-fullbox>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="其他指示条款" style="padding-top:15px">
<c-fullbox>
<c-input type="textarea" v-model="model.bcdgrp.blk.othins" maxlength="65" show-word-limit
placeholder="请输入其他指示条款"></c-input>
<template slot="footer">
<c-button size="small" type="primary" icon="el-icon-more" @click="
showGridPromptDialog(
'bctp.othins.buttxmsel',
null,
null,
{ TXT: 'bcdgrp.blk.othins' },
{ TXT: false },
'doxpDialog'
)
">
</c-button>
</template>
</c-fullbox>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="货物代码(用于统计)" style="padding-top:15px">
<c-fullbox>
<c-select v-model="model.bcdgrp.rec.stagod" style="width:100%" placeholder="请选择货物代码(用于统计)" :code="codes.godcod">
</c-select>
</c-fullbox>
</el-form-item>
</c-col>
</c-col>
<!-- ====================右边======================= -->
<c-col :span="12" style="padding-left: 20px;">
<c-col :span="24">
<el-form-item label="费用承担条款" style="padding-top:15px">
<c-fullbox>
<c-select v-model="model.bcdgrp.rec.chato" style="width:100%" placeholder="请选择费用承担条款"
:code="codes.chadet">
</c-select>
</c-fullbox>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="手续费支付的附加详述" style="padding-top:15px">
<c-fullbox>
<c-input type="textarea" v-model="model.bcdgrp.blk.chgtxt" maxlength="35" show-word-limit
placeholder="请输入手续费支付的附加详述"></c-input>
</c-fullbox>
</el-form-item>
</c-col>
<c-col :span="24">
<c-checkbox v-model="model.bcdgrp.rec.focflg" style="padding-left:10px">无偿放单选项</c-checkbox>
</c-col>
<c-col :span="24" style="width:100%">
<el-form-item label="交单时是否放弃向代收行收取费用的权力" style="padding-top:15px">
<c-select v-model="model.bcdgrp.rec.waicolcod" style="width:100%" placeholder="请选择交单时是否放弃向代收行收取费用的权力"
:code="codes.waicolcod">
</c-select>
</el-form-item>
</c-col>
<c-col :span="24" style="width:100%">
<el-form-item label="放单时是否放弃向托收行收取费用的权力" style="padding-top:15px">
<c-select v-model="model.bcdgrp.rec.wairmtcod" style="width:100%" placeholder="请选择放单时是否放弃向托收行收取费用的权力"
:code="codes.wairmtcod">
</c-select>
</el-form-item>
</c-col>
<c-col :span="24" style="width:100%">
<el-form-item label="延期付款期限" style="padding-top:15px">
<c-select v-model="model.bcdgrp.rec.othins" style="width:100%" placeholder="请选择延期付款期限" :code="codes.othins">
</c-select>
</el-form-item>
</c-col>
</c-col>
</c-row>
</template>
<script>
import event from "../event"
export default {
inject: ['root'],
props: ["model", "codes"],
mixins: [event],
data() {
return {
}
},
methods: { ...Event },
created: function () {
}
}
</script>
<style>
</style>
<template>
<div class="eibs-tab">
<el-collapse v-model="activeNames" @change="handleChange">
<el-collapse-item title="概要" name="ovwp1">
<m-ovwp1 :model="model" :codes="codes" />
</el-collapse-item>
<el-collapse-item title="指示条款" name="detp">
<m-detp :model="model" :codes="codes" />
</el-collapse-item>
<el-collapse-item title="参与方" name="ptyp">
<m-ptyp :model="model" :codes="codes" />
</el-collapse-item>
<el-collapse-item title="货权单据" name="srmp">
<m-srmp :model="model" :codes="codes" />
</el-collapse-item>
</el-collapse>
</div>
</template>
<script>
import event from "../event"
import Ovwp1 from "./Ovwp1"
import Detp from "./Detp"
import Ptyp from "./Ptyp"
import Srmp from "./Srmp"
export default {
components: {
"m-ovwp1": Ovwp1,
"m-detp": Detp,
"m-ptyp": Ptyp,
"m-srmp":Srmp,
},
inject: ["root"],
props: ["model", "codes"],
mixins: [event],
data() {
return {
activeNames: ["ovwp1"],
};
},
methods: {
...Event,
},
created: function () {},
computed: {
},
};
</script>
<style>
.marginLable {
padding-left: 160px;
}
</style>
\ No newline at end of file
<template>
<div class="eibs">
<!-- ====================左边======================= -->
<c-col :span="12" style="padding-right: 20px;">
<c-col :span="24">
<el-form-item
label="进口代收业务编号"
prop="bcdgrp.rec.ownref"
style="width: 100%"
>
<c-fullbox>
<c-input
v-model="model.bcdgrp.rec.ownref"
maxlength="16"
placeholder="请输入进口代收业务编号"
style="width: 100%"
disabled
></c-input>
<template slot="footer">
<c-button
style="margin: 0 10px 0 10px; padding: 0 12px"
size="small"
type="primary"
>
<i class="el-icon-info"></i>
</c-button>
<c-button
style="margin: 0 0"
size="small"
type="primary"
:disabled="this.model.bcdgrp.dre.pts.extkey !== '' && model.bcdgrp.rec.ownref == ''? false:true"
@click="onBctmodButgetref"
>
获取编号
</c-button>
</template>
</c-fullbox>
</el-form-item>
</c-col>
<c-col :span="18">
<el-form-item
label="客户经理编号"
prop="bctp.usr.extkey"
style="width: 100%"
>
<c-input
style="width: 100%"
v-model="model.bctp.usr.extkey"
maxlength="16"
placeholder="请输入客户经理编号"
disabled
></c-input>
</el-form-item>
</c-col>
<c-col :span="6" class="centerLable">
<c-checkbox
v-model="model.bcdgrp.rec.dftgarflg"
>待担保汇票</c-checkbox
>
</c-col>
<c-col :span="14">
<el-form-item label="代收币种及金额" prop="bcdgrp.cbs.max.cur">
<c-select
v-model="model.bcdgrp.cbs.max.cur"
style="width: 100%"
placeholder="请选择代收币种"
:code="codes.infled_Cur"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="10">
<el-form-item
style="text-align: left"
label-width="0"
prop="bcdgrp.cbs.max.amt"
>
<c-input-currency
v-model="model.bcdgrp.cbs.max.amt"
style="text-align: left; width: 100%"
placeholder="请输入代收金额"
></c-input-currency>
</el-form-item>
</c-col>
<c-col :span="14">
<el-form-item label="代收币种及余额" prop="bcdgrp.cbs.opn1.cur">
<c-select
disabled
v-model="model.bcdgrp.cbs.opn1.cur"
style="width: 100%"
placeholder="请选择代收币种"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="10">
<el-form-item
style="text-align: left"
label-width="0"
prop="bcdgrp.cbs.opn1.amt"
>
<c-input-currency
disabled
v-model="model.bcdgrp.cbs.opn1.amt"
style="text-align: left; width: 100%"
placeholder="请输入代收余额"
></c-input-currency>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="收单日期" prop="bcdgrp.rec.rcvdat">
<c-date-picker
type="date"
v-model="model.bcdgrp.rec.rcvdat"
style="width: 100%"
placeholder="请选择收单日期"
></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="托收行寄单日" prop="bcdgrp.rec.predat">
<c-date-picker
type="date"
v-model="model.bcdgrp.rec.predat"
style="width: 100%"
placeholder="请选择托收行寄单日"
></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="通知日期" prop="bcdgrp.rec.advdat">
<c-date-picker
disabled
type="date"
v-model="model.bcdgrp.rec.advdat"
style="width: 100%"
placeholder="请选择通知日期"
></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="交单条件" prop="bcdgrp.rec.doctypcod">
<c-select
v-model="model.bcdgrp.rec.doctypcod"
style="width: 100%"
placeholder="请选择交单条件"
:code="codes.doctypcod"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="单据到期日" prop="bcdgrp.rec.matdat">
<c-date-picker
type="date"
v-model="model.bcdgrp.rec.matdat"
value-format="yyyy-MM-dd"
style="width: 100%"
placeholder="请选择单据到期日"
:disabled="model.bcdgrp.rec.doctypcod === 'P'"
></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="单据期限" prop="bcdgrp.rec.matpercnt">
<c-input
v-model.number="model.bcdgrp.rec.matpercnt"
placeholder="请输入单据期限"
:disabled="model.bcdgrp.rec.doctypcod === 'P'"
></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="" label-width="10px" prop="bcdgrp.rec.matpertyp">
<c-select
v-model="model.bcdgrp.rec.matpertyp"
style="width: 100%"
placeholder="请选择"
:code="codes.matpertyp"
:disabled="model.bcdgrp.rec.doctypcod === 'P'"
></c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="发票类型" prop="bcdgrp.rec.invtyp">
<c-select
v-model="model.bcdgrp.rec.invtyp"
style="width: 100%"
placeholder="请选择发票类型"
:code="codes.invtyp"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="单据期限起算日" prop="bcdgrp.rec.matperbeg">
<c-select
v-model="model.bcdgrp.rec.matperbeg"
style="width: 100%"
placeholder="请选择单据期限起算日"
:code="codes.matperbeg"
:disabled="model.bcdgrp.rec.doctypcod === 'P'"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="到期文本" prop="bcdgrp.blk.bcgdet">
<c-input
:disabled="!this.model.bcdgrp.blk.bcgdetflg"
type="textarea"
v-model="model.bcdgrp.blk.bcgdet"
maxlength="45"
show-word-limit
placeholder="请输入到期文本"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24" class="bctdav_bctp_bctovw_cheak">
<c-checkbox v-model="model.bcdgrp.blk.bcgdetflg" style="margin-right:148px;"
>到期文本修改</c-checkbox
>
</c-col>
</c-col>
<!-- ========================右边======================= -->
<c-col :span="12" style="padding-left: 20px;">
<c-col :span="24">
<el-form-item label="简略信息" prop="bcdgrp.rec.nam">
<c-input
align="middle"
disabled
v-model="model.bcdgrp.rec.nam"
maxlength="40"
placeholder="请输入简略信息"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="付款人参考号" prop="bcdgrp.dre.pts.ref">
<c-input
v-model="model.bcdgrp.dre.pts.ref"
maxlength="16"
style="width: 100%"
placeholder="请输入付款人参考号"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="付款人名称" prop="bcdgrp.dre.pts.extkey">
<c-fullbox>
<c-input
v-model="model.bcdgrp.dre.pts.extkey"
maxlength="150"
placeholder="请输入付款人名称"
@keyup.enter.native="
showGridPromptDialog('bcdgrp.dre.pts.extkey')
"
></c-input>
<template slot="footer">
<c-button
style="margin: 0 10px 0 10px; padding: 0 12px"
size="small"
type="primary"
>
<i class="el-icon-info"></i>
</c-button>
<c-button
style="margin: 0 0"
size="small"
type="primary"
disabled
>
详情
</c-button>
</template>
</c-fullbox>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="地址信息" prop="bcdgrp.dre.pts.adrblk">
<c-input
type="textarea"
:rows="4"
v-model="model.bcdgrp.dre.pts.adrblk"
maxlength="150"
disabled
show-word-limit
placeholder="请输入地址信息"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="托收行参考号" prop="bcdgrp.rmi.pts.ref">
<c-input
v-model="model.bcdgrp.rmi.pts.ref"
maxlength="16"
style="width: 100%"
placeholder=""
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="托收行名称" prop="bcdgrp.rmi.pts.extkey">
<c-fullbox>
<c-input
v-model="model.bcdgrp.rmi.pts.extkey"
maxlength="120"
placeholder="请输入托收行名称"
@keyup.enter.native="
showGridPromptDialog('bcdgrp.rmi.pts.extkey')
"
>
</c-input>
<template slot="footer">
<c-button
style="margin: 0 10px 0 10px; padding: 0 12px"
size="small"
type="primary"
>
<i class="el-icon-info"></i>
</c-button>
<c-button style="margin: 0 0" size="small" type="primary">
详情
</c-button>
</template>
</c-fullbox>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="地址信息" prop="bcdgrp.rmi.pts.adrblk">
<c-input
type="textarea"
:rows="4"
v-model="model.bcdgrp.rmi.pts.adrblk"
maxlength="150"
show-word-limit
placeholder="请输入地址信息"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="收款人参考号" prop="bcdgrp.drr.pts.ref">
<c-input
v-model="model.bcdgrp.drr.pts.ref"
maxlength="16"
style="width: 100%"
placeholder=""
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="收款人名称" prop="bcdgrp.drr.pts.extkey">
<c-fullbox>
<c-input
v-model="model.bcdgrp.drr.pts.extkey"
maxlength="50"
placeholder="请输入收款人名称"
@keyup.enter.native="
showGridPromptDialog('bcdgrp.drr.pts.extkey')
"
></c-input>
<template slot="footer">
<c-button
style="margin: 0 10px 0 10px; padding: 0 12px"
size="small"
type="primary"
>
<i class="el-icon-info"></i>
</c-button>
<c-button style="margin: 0 0" size="small" type="primary">
详情
</c-button>
</template>
</c-fullbox>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="地址信息" prop="bcdgrp.drr.pts.adrblk">
<c-input
type="textarea"
:rows="4"
v-model="model.bcdgrp.drr.pts.adrblk"
maxlength="150"
show-word-limit
placeholder="请输入地址信息"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="国家或地区编码" prop="bcdgrp.rec.stacty">
<c-select
v-model="model.bcdgrp.rec.stacty"
style="width: 100%"
placeholder="请选择国家或地区编码(风险国家)"
:code="codes.stacty"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="申报类型" prop="outlen.szflg">
<c-select
v-model="model.outlen.szflg"
style="width: 100%"
placeholder="请选择申报类型"
:code="codes.szflg"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="款项去向" prop="bctp.acttyp">
<c-select
:disabled="this.flag1"
v-model="model.bctp.acttyp"
style="width: 100%"
placeholder="请选择款项去向"
:code="codes.acttyp"
>
</c-select>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-docpre
:model="model"
:argadr="{
path: 'SEMFLG',
grp: 'bctp',
code: 'docpre',
}"
></c-docpre>
</c-col>
</div>
</template>
<script>
import event from "../event"
import Ptap from "~/views/Public/Ptap";
import Docpre from "~/views/Public/Docpre";
export default {
components: {
"c-ptap": Ptap,
"c-docpre": Docpre,
},
inject: ["root"],
props: ["model", "codes"],
mixins: [event],
watch: {
"model.outlen.szflg": {
immediate: true,
handler(val, oldVal) {
if (this.model.outlen.szflg == "1") {
this.flag1 = false;
} else {
this.flag1 = true;
}
},
},
},
data() {
return {
flag1: true,
docgrd: {
columns: [
{
title: "lst1",
width: "80px",
dataIndex: "cmail1",
show: "input",
},
{
title: "2nd",
width: "80px",
dataIndex: "cmail2",
show: "input",
},
{
title: "单据",
width: "320px",
dataIndex: "docnam",
show: "select",
},
],
urls: "bctp.docgrdm.docgrd",
},
};
},
methods: { ...Event },
created: function () {},
};
</script>
<style>
/* .centerLable {
height: 32px;
line-height: 32px;
padding-bottom: 2px;
} */
.marginLable {
padding-left: 150px;
}
.bctdav_bctp_bctovw_cheak {
margin: 0px 0 10px 150px;
}
</style>
\ No newline at end of file
<template>
<div class="eibs-tab">
<!-- ====================左边======================= -->
<c-col :span="12" style="padding-right: 20px;">
<c-col :span="24">
<el-form-item
label="付款人参考号"
prop="bcdgrp.dre.pts.ref"
>
<c-input
v-model="model.bcdgrp.dre.pts.ref"
maxlength="16"
style="width: 100%"
placeholder="请输入付款人参考号"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="付款人名称" prop="bcdgrp.dre.pts.extkey">
<c-fullbox>
<c-input
@keyup.enter.native="showGridPromptDialog('bcdgrp.dre.pts.extkey')"
v-model="model.bcdgrp.dre.pts.extkey"
maxlength="50"
placeholder="请输入付款人名称"
></c-input>
<template slot="footer">
<c-button
style="margin:0 10px 0 10px;padding: 0 12px;"
size="small"
type="primary"
>
<i class="el-icon-info"></i>
</c-button>
<c-button
style="margin:0 0"
size="small"
type="primary"
>
详情
</c-button>
</template>
</c-fullbox>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="地址信息" prop="bcdgrp.dre.pts.adrblk">
<c-input
type="textarea"
:rows="4"
v-model="model.bcdgrp.dre.pts.adrblk"
maxlength="150"
disabled
show-word-limit
placeholder="请输入地址信息"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item
label="第二代收行参考号"
prop="bcdgrp.co2.pts.ref"
>
<c-input
v-model="model.bcdgrp.co2.pts.ref"
maxlength="16"
style="width: 100%"
placeholder=""
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="第二代收行名称" prop="bcdgrp.co2.pts.extkey">
<c-fullbox>
<c-input
@keyup.enter.native="showGridPromptDialog('bcdgrp.co2.pts.extkey')"
v-model="model.bcdgrp.co2.pts.extkey"
maxlength="50"
placeholder="请输入第二代收行名称"
></c-input>
<template slot="footer">
<c-button
style="margin:0 10px 0 10px;padding: 0 12px;"
size="small"
type="primary"
>
<i class="el-icon-info"></i>
</c-button>
<c-button
style="margin:0 0"
size="small"
type="primary"
>
详情
</c-button>
</template>
</c-fullbox>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="地址信息" prop="bcdgrp.co2.pts.adrblk">
<c-input
type="textarea"
:rows="4"
v-model="model.bcdgrp.co2.pts.adrblk"
maxlength="50"
show-word-limit
placeholder="请输入地址信息"
></c-input>
</el-form-item>
</c-col>
</c-col>
<!-- ====================右边======================= -->
<c-col :span="12" style="padding-left: 20px;">
<c-col :span="24">
<el-form-item
label="托收行参考号"
prop="bcdgrp.rmi.pts.ref"
>
<c-input
v-model="model.bcdgrp.rmi.pts.ref"
maxlength="16"
style="width: 100%"
placeholder=""
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="托收行名称" prop="bcdgrp.rmi.pts.extkey">
<c-fullbox>
<c-input
v-model="model.bcdgrp.rmi.pts.extkey"
maxlength="50"
placeholder="请输入托收行名称"
@keyup.enter.native="showGridPromptDialog('bcdgrp.rmi.pts.extkey')"
></c-input>
<template slot="footer">
<c-button
style="margin:0 10px 0 10px;padding: 0 12px;"
size="small"
type="primary"
>
<i class="el-icon-info"></i>
</c-button>
<c-button
style="margin:0 0"
size="small"
type="primary"
>
详情
</c-button>
</template>
</c-fullbox>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="地址信息" prop="bcdgrp.rmi.pts.adrblk">
<c-input
type="textarea"
:rows="4"
v-model="model.bcdgrp.rmi.pts.adrblk"
maxlength="150"
show-word-limit
placeholder="请输入地址信息"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item
label="收款人参考号"
prop="bcdgrp.drr.pts.ref"
>
<c-input
v-model="model.bcdgrp.drr.pts.ref"
maxlength="16"
style="width: 100%"
placeholder=""
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="收款人名称" prop="bcdgrp.drr.pts.extkey">
<c-fullbox>
<c-input
@keyup.enter.native="showGridPromptDialog('bcdgrp.drr.pts.extkey')"
v-model="model.bcdgrp.drr.pts.extkey"
maxlength="150"
placeholder="请输入收款人名称"
></c-input>
<template slot="footer">
<c-button
style="margin:0 10px 0 10px;padding: 0 12px;"
size="small"
type="primary"
>
<i class="el-icon-info"></i>
</c-button>
<c-button
style="margin:0 0"
size="small"
type="primary"
>
详情
</c-button>
</template>
</c-fullbox>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="地址信息" prop="bcdgrp.drr.pts.adrblk">
<c-input
type="textarea"
:rows="4"
v-model="model.bcdgrp.drr.pts.adrblk"
maxlength="50"
show-word-limit
placeholder="请输入地址信息"
></c-input>
</el-form-item>
</c-col>
</c-col>
</div>
</template>
<script>
import event from "../event"
import Ptap from "~/views/Public/Ptap";
export default {
components: { "c-ptap": Ptap },
inject: ['root'],
props:["model","codes"],
mixins: [event],
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">
<el-form-item label="单据类型" prop="bcdgrp.srm.djutyp">
<c-select v-model="model.bcdgrp.srm.djutyp" style="width:100%" placeholder="请选择单据类型"
:code="codes.djutyp"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="单据出具人" prop="bcdgrp.srm.djuusr">
<c-input
:disabled="(!this.model.bcdgrp.srm.djutyp || this.model.bcdgrp.srm.djutyp == 'D' )"
v-model="model.bcdgrp.srm.djuusr" maxlength="80" placeholder="请输入单据出具人"></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="单据出具日期" prop="bcdgrp.srm.djudat">
<c-date-picker
:disabled="(!this.model.bcdgrp.srm.djutyp || this.model.bcdgrp.srm.djutyp == 'D' )"
type="date" v-model="model.bcdgrp.srm.djudat" style="width:100%" placeholder="请选择单据出具日期"></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="货权单据编号" prop="bcdgrp.srm.djuref">
<c-input
:disabled="(!this.model.bcdgrp.srm.djutyp || this.model.bcdgrp.srm.djutyp == 'D' )"
v-model="model.bcdgrp.srm.djuref" maxlength="40" placeholder="请输入货权单据编号"></c-input>
</el-form-item>
</c-col>
</c-col>
</div>
</template>
<script>
import event from "../event"
export default {
inject: ['root'],
props:["model","codes"],
mixins: [event],
data(){
return {
}
},
methods:{...Event},
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="left"
size="small" :validate-on-rule-change="false">
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="tabClick">
<el-tab-pane label="业务信息" name="ovwp">
<c-content>
<m-ovwp :model="model" :codes="codes"/>
</c-content>
</el-tab-pane>
<el-tab-pane label="表外记账" name="engp">
<c-content>
<!-- 表外记账 -->
<m-engp :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<!--PD000027 -->
<el-tab-pane label="费用/账务" name="setmod">
<c-content>
<m-setmod
:model="model"
:codes="codes"
@changeSetmodModel="changeSetmodModel"
/>
</c-content>
</el-tab-pane>
<!--PD000027 -->
<el-tab-pane label="会计分录" name="glepan">
<c-content>
<m-glentry :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<el-tab-pane label="备查/附言" name="addbcb">
<c-content>
<m-addbcb :model="model" :codes="codes"/>
</c-content>
</el-tab-pane>
<!--PD000009 -->
<el-tab-pane label="申报信息" name="libp,cnyp1">
<c-content>
<m-cnyp :model="model" :codes="codes"/>
</c-content>
</el-tab-pane>
<el-tab-pane label="报文/面函" name="docpan">
<c-content>
<m-docpan :model="model" :codes="codes"/>
</c-content>
</el-tab-pane>
<el-tab-pane label="附件信息" name="doctre">
<c-content>
<m-doctre :model="model" :codes="codes"/>
</c-content>
</el-tab-pane>
</c-tabs>
</el-form>
<c-grid-ety-prompt-dialog
ref="etyDialog"
:promptData="promptData"
@select-ety="selectGridEtyPromptData"
>
</c-grid-ety-prompt-dialog>
<c-function-btn
:handleSubmit="handleSubmit"
:handleCheck="handleCheck"
:handleStash="handleStash"
>
</c-function-btn>
</div>
</c-page>
</template>
<script>
import CodeTable from "~/config/CodeTable"
import Bctdav from "../model"
import formRules from '../model/check'
import event from "../event";
import operationFunc from "@/mixin/operationFunc";
import Addbcb from "./Addbcb";
import Ovwp from "./Ovwp";
import Detp from "./Detp";
import Ptyp from "./Ptyp";
import Srmp from "./Srmp";
import Cnyp from "./Cnyp";
import Engp from "~/components/business/engp/views";
import Setmod from "~/components/business/setmod/views"
import Glentry from "~/components/business/glentry/views";
import Coninfp from "~/components/business/coninfp/views";
import Docpan from "~/components/business/docpan/views";
import Doctre from "~/views/Public/Doctre"
export default {
name: "Bctdav",
components: {
"m-addbcb": Addbcb,
"m-ovwp": Ovwp,
"m-detp": Detp,
"m-ptyp": Ptyp,
"m-setmod": Setmod,
"m-engp": Engp,
"m-glentry": Glentry,
"m-docpan": Docpan,
"m-doctre": Doctre,
"m-coninfp": Coninfp,
"m-cnyp": Cnyp,
"m-srmp": Srmp,
},
provide() {
return {
root: this,
};
},
mixins: [operationFunc, event], // 里面包含了Default、Check等的公共处理
data() {
return {
tabVal: "ovwp",
trnName: "bctdav",
model: new Bctdav().data,
rules: formRules,
codes: { ...CodeTable },
activeNames: ["engp"],
promptData: {
title: 'Select a Party',
columns: [
{
prop: 'ptyInr',
label: 'Party Number'
},
{
prop: 'inr',
label: 'Address Number'
},
{
prop: 'branch',
label: 'Branch Code'
},
{
prop: 'bchName',
label: 'Branch Name'
},
{
prop: 'adrName',
label: 'Address Name'
},
{
prop: 'adr1',
label: 'Address1'
},
{
prop: 'locCty',
label: 'City'
},
{
prop: 'locZip',
label: 'Zip'
},
{
prop: 'bicCode',
label: 'BIC'
}
],
data: []
},
};
},
methods: {},
created: async function () {
console.log("进入bctdav交易");
let rtnmsg = await this.init({});
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
this.updateModel(rtnmsg.data);
if(this.isInDisplay){
this.restoreDisplay();
}
} else {
this.$notify.error({ title: "错误", message: "服务请求失败!" });
}
},
mounted () {
this.init()
// this.queryHndtypCodeTableList(this.trnName)
},
};
</script>
<style></style>
<template>
<ReviewWrapper>
<Bctame></Bctame>
</ReviewWrapper>
</template>
<script>
import Bctame from "~/business/bctame/views";
import { ReviewWrapper } from "~/components/gj-common.min.js";
export default {
name: "ReviewBctame",
components: { ReviewWrapper, Bctame },
created() {},
mounted() {},
};
</script>
<style></style>
......@@ -76,5 +76,7 @@ const Business = [
{ path: 'botdcr', component: () => import('~/business/botdcr/views'), name: 'botdcr', meta: { title: '出口托收拒付/不符点处理' } },
{ path: 'botrad', component: () => import('~/business/botrad/views'), name: 'botrad', meta: { title: '出口托收二次寄单' } },
{ path: 'botame', component: () => import('~/business/botame/views'), name: 'botame', meta: { title: '出口托收修改' } },
{ path: 'bctdav', component: () => import('~/business/bctdav/views'), name: 'bctdav', meta: { title: '进口代收' } },
]
export default Business
\ No newline at end of file
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