Commit 499b3e10 by liaoxing

ccttra 添加

parent 2aeff7bd
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.ccdgrp.pre.pts.extkey) {
ptsptaList.push(this.buildPtspta(model.ccdgrp.pre));
}
if (model.ccdgrp.dro.pts.extkey) {
ptsptaList.push(this.buildPtspta(model.ccdgrp.dro));
}
if (model.ccdgrp.col.pts.extkey) {
ptsptaList.push(this.buildPtspta(model.ccdgrp.col));
}
let dataObj = {
rec: {
objtyp: 'CCD',
objinr: model.ccdgrp.rec.inr,
ownref: model.ccdgrp.rec.ownref,
opndat: model.ccdgrp.rec.opndat,
expdat: model.ccdgrp.rec.expdat,
branchInr: model.ccdgrp.rec.branchinr,
hndtyp: model.ccdgrp.rec.hndtyp,
},
cbsMap: {
MAX: model.ccdgrp.cbs.max,
OPN1: model.ccdgrp.cbs.opn1,
// MAC: model.bodgrp.cbs.mac,
// MAC2: model.bodgrp.cbs.mac2,
// OPC2: model.bodgrp.cbs.opc2,
// CNF: model.bodgrp.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: 'CCD',
objinr: model.ccdgrp.rec.inr,
ownref: model.ccdgrp.rec.ownref,
},
};
return params
},
buildDoctre (model, trnName) {
let params = {
...this.buildCommonData(model, trnName),
rec: {
objtyp: 'CCD',
objinr: model.ccdgrp.rec.inr,
ownref: model.ccdgrp.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))
}
const res = await Api.post('/service/ccttra/init', {
...params,
transName: this.trnName,
userId: window.sessionStorage.userId || 'ZL',
});
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;
// cctdav用到的接口
// case 'setinsp':
// let params = {
// ccdgrp:{
// rec:{
// modset: this.model.ccdgrp.rec.modset,
// },
// cbs: this.model.ccdgrp.cbs,
// }
// };
// let res = await Api.post('/service/ccttra/getSetins', params);
// if (res.respCode == SUCCESS) {
// this.model.ccdgrp.blk.setins = res.data;
// }
// break;
default:
return;
}
},
// 业务信息=》基本信息=》托收业务编号-----获取托收业务编号
async getCcdgrpOwnRef() {
let params = {
ptainr: this.model.ccdgrp.pre.pts.ptainr,
businessType: 'CC',
tbl: 'CC',
};
const loading = this.loading();
let res = await Api.post('/service/ccttra/getOwnRef', params);
if (res.respCode == SUCCESS) {
loading.close();
this.model.ccdgrp.rec.ownref = res.data;
}
},
// 点击获取按钮拉取当前key字段下的表单数据
queryFormData(key) {
console.log(key);
},
// 获取ccttra弹框表格数据
async queryGridEtyPromptDialogData(type, ptytyp) {
let params = {
userId: window.sessionStorage.userId || 'ZL',
ptytyp: ptytyp,
extkey: this.model.ccdgrp[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;
}
},
// 选中ccttra弹框表格的行数据
async selectGridEtyPromptData(row) {
let params = {
...row,
};
let res = await Api.post('/service/ptspta/fetch', params);
if (res.respCode == SUCCESS) {
this.$set(this.model.ccdgrp, row.role.toLowerCase(), res.data);
}
},
// 业务信息=》基本信息=》支出目的
purposChange(key, value) {
this.handleChangeForm(key, value);
},
// 初始化保函开立类型码表下拉列表
async queryHndtypCodeTableList(trnName) {
let params = {
cctp: {
swiftflg: this.model.cctp.swiftflg,
},
ccdgrp: {
rec: {
purpos: this.model.ccdgrp.rec.purpos,
},
},
transName: trnName.toUpperCase(),
};
let res = await Api.post('/service/ccttra/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"
/**
* Ccttra Check规则
*/
let checkObj = {
"liaall.misamt" :null,
"ccdgrp.blk.bcgans" :null,
"ccdgrp.dro.pts.nam" :null,
"setmod.dspflg" :null,
"ccdgrp.blk.bcgque" :null,
"ccdgrp.pre.pts.nam" :null,
"mtabut.coninf.conexedat" :null,
"cctp0.recget.sdamod.dadsnd" :null,
"setmod.docamt" :null,
"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"}
],
"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位" }
],
"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"}
],
"setmod.glemod.gleshwstm":[
{type: "string", required: false, message: "必输项"},
{max: 1,message:"长度不能超过1"}
],
"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: "date", required: false, message: "输入正确的日期"}
],
"mtabut.coninf.usr.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 8,message:"长度不能超过8"}
],
"cctp0.recget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"ccdgrp.rec.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"ccdgrp.rec.ownref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"cctp0.recget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"ccdgrp.cbs.max.amt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"ccdgrp.pre.pts.ref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"ccdgrp.pre.pts.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"ccdgrp.cbs.opn1.amt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"ccdgrp.dro.pts.ref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"ccdgrp.rec.chkdat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"ccdgrp.dro.pts.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"ccdgrp.rec.ccform":[
{type: "string", required: false, message: "必输项"},
{max: 1,message:"长度不能超过1"}
],
"ccdgrp.col.pts.ref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"ccdgrp.rec.purflg":[
{type: "string", required: false, message: "必输项"},
{max: 1,message:"长度不能超过1"}
],
"ccdgrp.col.pts.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"trnmod.swiadd.tracur":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"trnmod.swiadd.traamt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
// "ccdgrp.blk.bcgque":[
// {type: "string", required: true, message: "必输项"},
// {max: 35,message:"长度不能超过35"}
// ],
// "ccdgrp.blk.bcgans":[
// {type: "string", required: true, message: "必输项"},
// {max: 35,message:"长度不能超过35"}
// ],
}
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 Ccttra {
constructor() {
this.data = {
ccttral1blk: "",
ccdgrp: {
rec: {
ownref: "", // Our Reference .ccdgrp.rec.ownref
nam: "", // Name of CC contract .ccdgrp.rec.nam
chkdat: "", // Date of Draft .ccdgrp.rec.chkdat
ccform: "", // Form of Clean Coll. .ccdgrp.rec.ccform
purflg: "", // Payment disposition .ccdgrp.rec.purflg
},
cbs: {
max: {
cur: "", // Currency .ccdgrp.cbs.max.cur
amt: "", // Currency .ccdgrp.cbs.max.amt
},
opn1: {
cur: "", // Currency .ccdgrp.cbs.opn1.cur
amt: "", // Currency .ccdgrp.cbs.opn1.amt
},
},
pre: {
pts: new Pts().data,
},
dro: {
pts: new Pts().data,
},
col: {
pts: new Pts().data,
},
blk: {
bcgque: "", // Queries .ccdgrp.blk.bcgque
bcgans: "", // Answers .ccdgrp.blk.bcgans
},
},
cctp0: {
recget: {
sdamod: {
seainf: "", // .cctp0.recget.sdamod.seainf
dadsnd: "", // Drag Drop Sender .cctp0.recget.sdamod.dadsnd
},
},
},
advtyp: "", // Type of Advice .advtyp
advrol: "", // Receive of Message .advrol
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 Addbcb1 from "./Addbcb1";
import Coninfp from "~/components/business/coninfp/views";
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">
<!-- ====================左边======================= -->
<c-col :span="12" style="padding-right: 20px">
<c-col :span="24">
<el-form-item label="光票托收编号" prop="ccdgrp.rec.ownref">
<c-fullbox>
<c-input
v-model="model.ccdgrp.rec.ownref"
maxlength="8"
placeholder="请输入光票托收编号"
disabled
></c-input>
<template slot="footer">
<c-button
style="margin: 0 0 0 10px; padding: 0 12px"
size="small"
type="primary"
disabled
>
<i class="el-icon-info"></i>
</c-button>
</template>
</c-fullbox>
</el-form-item>
</c-col>
<!-- <c-col :span="2">-->
<!-- <c-button-->
<!-- style="margin: 0 12px 0 14px; padding: 0 12px"-->
<!-- size="small"-->
<!-- type="primary"-->
<!-- disabled-->
<!-- >-->
<!-- <i class="el-icon-info"></i>-->
<!-- </c-button>-->
<!-- </c-col>-->
<c-col :span="12">
<el-form-item label="光票托收币种金额" prop="ccdgrp.cbs.max.cur">
<c-select
v-model="model.ccdgrp.cbs.max.cur"
style="width: 100%"
placeholder="请选择光票托收币种"
disabled
>
<el-option
v-for="item in codes.curtxt1"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item
style="margin-left: 5px"
label-width="0"
prop="ccdgrp.cbs.max.amt"
>
<c-input-currency
class="input-currency-left"
v-model="model.ccdgrp.cbs.max.amt"
style="text-align: left; width: 100%"
placeholder="请输入光票托收金额"
@keyup.enter.native="
defaultFunction('ccdgrp.cbs.max.amt', model.ccdgrp.cbs.max.amt)
"
disabled
></c-input-currency>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="光票托收币种余额" prop="ccdgrp.cbs.opn1.cur">
<c-select
disabled
v-model="model.ccdgrp.cbs.opn1.cur"
style="width: 100%"
placeholder="请选择光票托收币种"
>
<el-option
v-for="item in codes.curtxt1"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item
style="margin-left: 5px"
label-width="0"
prop="ccdgrp.cbs.opn1.amt"
>
<c-input-currency
class="input-currency-left"
v-model="model.ccdgrp.cbs.opn1.amt"
style="text-align: left; width: 100%"
placeholder="请输入光票托收余额"
@keyup.enter.native="
defaultFunction('ccdgrp.cbs.opn1.amt', model.ccdgrp.cbs.opn1.amt)
"
disabled
></c-input-currency>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="出票日期" prop="ccdgrp.rec.chkdat">
<c-date-picker
type="date"
v-model="model.ccdgrp.rec.chkdat"
style="width: 100%"
placeholder="请选择出票日期"
disabled
></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="光票托收形式" prop="ccdgrp.rec.ccform">
<c-select
v-model="model.ccdgrp.rec.ccform"
style="width: 100%"
placeholder="请选择光票托收形式"
:code="codes.ccform"
disabled
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="付款方式" prop="ccdgrp.rec.purflg">
<c-select
v-model="model.ccdgrp.rec.purflg"
style="width: 100%"
placeholder="请选择付款方式"
:code="codes.purflg"
disabled
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="催收金额" prop="trnmod.swiadd.tracur">
<c-select
disabled
v-model="model.trnmod.swiadd.tracur"
style="width: 100%"
placeholder="请选择催收金额"
>
<el-option
v-for="item in codes.curtxt1"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item
style="margin-left: 5px"
label-width="0"
prop="trnmod.swiadd.traamt"
>
<c-input-currency
class="input-currency-left"
v-model="model.trnmod.swiadd.traamt"
style="text-align: left; width: 100%"
placeholder="请输入"
></c-input-currency>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="电函接收方" prop="advrol">
<c-select
v-model="model.advrol"
style="width: 100%"
placeholder="请选择电函接收方"
:code="advrol"
>
</c-select>
</el-form-item>
</c-col>
</c-col>
<!-- ====================右边======================= -->
<c-col :span="12" style="padding-left: 20px">
<c-col :span="24">
<el-form-item label="业务名称" prop="ccdgrp.rec.nam">
<c-input
v-model="model.ccdgrp.rec.nam"
maxlength="40"
placeholder="请输入业务名称"
disabled
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="汇票提交人" prop="ccdgrp.pre.pts.ref">
<c-input
v-model="model.ccdgrp.pre.pts.ref"
maxlength="40"
placeholder="请输入汇票提交人"
disabled
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="" prop="ccdgrp.pre.pts.nam">
<c-input
v-model="model.ccdgrp.pre.pts.nam"
maxlength="40"
placeholder="请输入"
disabled
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="承兑汇票银行" prop="ccdgrp.dro.pts.ref">
<c-input
v-model="model.ccdgrp.dro.pts.ref"
maxlength="40"
placeholder="请输入承兑汇票银行"
disabled
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="" prop="ccdgrp.dro.pts.nam">
<c-input
v-model="model.ccdgrp.dro.pts.nam"
maxlength="40"
placeholder="请输入"
disabled
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="代收行" prop="ccdgrp.col.pts.ref">
<c-input
v-model="model.ccdgrp.col.pts.ref"
maxlength="40"
placeholder="请输入代收行"
disabled
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="" prop="ccdgrp.col.pts.nam">
<c-input
v-model="model.ccdgrp.col.pts.nam"
maxlength="40"
placeholder="请输入"
disabled
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<c-form-item
label="问题"
prop="ccdgrp.blk.bcgque"
>
<c-input
type="textarea"
:rows="6"
v-model="model.ccdgrp.blk.bcgque"
maxlength="600"
show-word-limit
placeholder="请输入问题"
disabled
></c-input>
</c-form-item>
</c-col>
<c-col :span="24">
<c-form-item
label="解答"
prop="ccdgrp.blk.bcgans"
>
<c-input
type="textarea"
:rows="6"
v-model="model.ccdgrp.blk.bcgans"
maxlength="600"
show-word-limit
placeholder="请输入解答"
disabled
></c-input>
</c-form-item>
</c-col>
</c-col>
</div>
</template>
<script>
import event from "../event";
export default {
inject: ["root"],
props: ["model", "codes","advrol"],
mixins: [event],
data() {
return {};
},
methods: {
// ...Event,
},
created: function () {},
};
</script>
<style>
</style>
<template>
<div class="eibs-tab">
<el-collapse v-model="activeNames">
<el-collapse-item title="Tracer BC" name="ccttra1">
<c-content>
<m-ccttra1 :model="model" :codes="codes" />
</c-content>
</el-collapse-item>
<!-- <el-collapse-item-->
<!-- title="附加金额"-->
<!-- name="aamp"-->
<!-- v-if="model.litp.aamp.aammod.addamtflg"-->
<!-- >-->
<!-- &lt;!&ndash; 附加金额 &ndash;&gt;-->
<!-- <m-aamp :model="model" :codes="codes" />-->
<!-- </el-collapse-item>-->
<!-- <el-collapse-item title="详情" name="detp">-->
<!-- &lt;!&ndash; 详情 &ndash;&gt;-->
<!-- <m-detp :model="model" :codes="codes" />-->
<!-- </el-collapse-item>-->
<!-- <el-collapse-item title="当事人" name="ptyp">-->
<!-- &lt;!&ndash; 当事人 &ndash;&gt;-->
<!-- <m-ptyp :model="model" :codes="codes" />-->
<!-- </el-collapse-item>-->
<!-- <el-collapse-item title="货物" name="dogp">-->
<!-- &lt;!&ndash; 货物 &ndash;&gt;-->
<!-- <m-doxp :model="model" :codes="codes" :dtyp="'dogp'" :rec="'lid'" />-->
<!-- </el-collapse-item>-->
<!-- <el-collapse-item title="单据" name="dorp">-->
<!-- &lt;!&ndash; 单据 &ndash;&gt;-->
<!-- <m-doxp :model="model" :codes="codes" :dtyp="'dorp'" :rec="'lid'" />-->
<!-- </el-collapse-item>-->
<!-- <el-collapse-item title="附加条款" name="adcp">-->
<!-- &lt;!&ndash; 附加条款 &ndash;&gt;-->
<!-- <m-doxp :model="model" :codes="codes" :dtyp="'adcp'" :rec="'lid'" />-->
<!-- </el-collapse-item>-->
<!-- <el-collapse-item-->
<!-- title="仅适用于指定银行的特殊付款条款"-->
<!-- name="spcrcvp"-->
<!-- v-if="model.lidgrp.rec.spcrcbflg"-->
<!-- >-->
<!-- <m-spcrcvp :model="model" :codes="codes" />-->
<!-- </el-collapse-item>-->
<!-- <el-collapse-item-->
<!-- title="存在受益人的特殊付款条款"-->
<!-- name="spcbenp"-->
<!-- v-if="model.lidgrp.rec.spcbenflg"-->
<!-- >-->
<!-- <m-spcbenp :model="model" :codes="codes" />-->
<!-- </el-collapse-item>-->
</el-collapse>
</div>
</template>
<script>
import Ccttra1 from "./Ccttra1";
import event from "../event";
export default {
components: {
"m-ccttra1": Ccttra1,
},
inject: ["root"],
props: ["model", "codes"],
mixins: [event],
data() {
return {
activeNames: ["ccttra1"],
}
},
methods: {
// ...Event,
}
}
</script>
<style scoped>
</style>
\ No newline at end of file
<template>
<div class="eContainer">
<c-page title="光票托收催收">
<el-form
:model="model"
:rules="rules"
ref="modelForm"
label-width="120px"
label-position="right"
size="small"
:validate-on-rule-change="false"
>
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick">
<el-tab-pane label="业务信息" name="ovwp">
<c-content>
<m-ovwp :model="model" :codes="codes"/>
</c-content>
</el-tab-pane>
<!--engp PD000000 表外记账 -->
<el-tab-pane label="表外记账" name="engp">
<m-engp :model="model" :codes="codes" />
</el-tab-pane>
<el-tab-pane label="费用/账务" name="setmod">
<c-content>
<m-setmod
:model="model"
:codes="codes"
/>
</c-content>
</el-tab-pane>
<!--glemod PD000001 -->
<el-tab-pane label="会计分录" name="glepan">
<m-glentry :model="model" :codes="codes" />
</el-tab-pane>
<!--coninf PD000000 提示信息 -->
<el-tab-pane label="备查附言" name="coninfp">
<m-coninfp :model="model" :codes="codes" />
</el-tab-pane>
<!--trndoc PD000529 &Messages -->
<el-tab-pane label="报文和面函" name="docpan">
<m-docpan :model="model" :codes="codes" />
</el-tab-pane>
<!--trndoc PD000546 附件 -->
<el-tab-pane label="附件信息" name="doctre">
<m-doctre :model="model" :codes="codes" />
</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>
</c-page>
</div>
</template>
<script>
import CodeTable from "~/config/CodeTable";
import Ccttra from "../model";
import formRules from '../model/check';
import Ccttra1 from "./Ccttra1";
import Setmod from "~/components/business/setmod/views"
import Coninfp from "~/components/business/coninfp/views";
import Docpan from "~/components/business/docpan/views";
import Engp from "~/components/business/engp/views";
import Glentry from "~/components/business/glentry/views";
import Doctre from "~/views/Public/Doctre";
import operationFunc from "@/mixin/operationFunc";
import event from "../event";
import Ovwp from "./Ovwp";
import Addbcb from "./Addbcb";
export default {
name: "Ccttra",
components: {
// "m-ccttra1": Ccttra1,
"m-docpan": Docpan,
"m-doctre": Doctre,
"m-coninfp": Coninfp,
"m-setmod": Setmod,
"m-engp": Engp,
"m-ovwp": Ovwp,
"m-addbcb": Addbcb,
"m-glentry": Glentry,
},
provide() {
return {
root: this,
};
},
mixins: [operationFunc, event], // 里面包含了Default、Check等的公共处理
data() {
return {
activeNames: ["engp"],
tabVal: "ovwp",
trnName: "ccttra",
trnType: "",
model: new Ccttra().data,
rules: formRules,
codes: { ...CodeTable },
advrol:[],
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: {
myTabClick(tab) {
// this.tabClick(tab);
/**
* do it yourself
**/
},
buildAdvrol(data){
// var result = [];
// for(let i = 0; i < data.length; i++){
// if(data[i] === 'COL'){
// let newList = {
// value: "COL",
// label: "收款行",
// }
// result.push(newList);
// }
// }
// this.advrol = result;
// console.log(this.advrol)
},
},
created: async function () {
// console.log("进入ccttra交易");
// let rtnmsg = await this.init({});
// if (rtnmsg.respCode == SUCCESS) {
// this.updateModel(rtnmsg.data);
// console.log(rtnmsg.codeSet['advrol'])
// this.buildAdvrol(rtnmsg.codeSet['advrol'] || []);
// //TODO 处理数据逻辑
// if (this.isInDisplay) {
// this.restoreDisplay();
// }
// } else {
// this.$notify.error({ title: "错误", message: "服务请求失败!" });
// }
},
mounted () {
this.init()
// this.queryHndtypCodeTableList(this.trnName)
},
};
</script>
<style>
</style>
......@@ -89,6 +89,7 @@ const Business = [
{ path: 'cctdav', component: () => import('~/business/cctdav/views'), name: 'cctdav', meta: { title: '光票托收开立' }},
{ path: 'cltdav', component: () => import('~/business/cltdav/views'), name: 'cltdav', meta: { title: '打包托收开立' }},
{ path: 'clttra', component: () => import('~/business/clttra/views'), name: 'clttra', meta: { title: '打包托收催收' }},
{ path: 'ccttra', component: () => import('~/business/ccttra/views'), name: 'ccttra', 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