Commit a3777003 by WF1020

letdrw

parent 187b3b55
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.ledgrp.apl.pts.extkey) {
ptsptaList.push(this.buildPtspta(model.ledgrp.apl));
}
if (model.ledgrp.adv.pts.extkey) {
ptsptaList.push(this.buildPtspta(model.ledgrp.adv));
}
if (model.ledgrp.ben.pts.extkey) {
ptsptaList.push(this.buildPtspta(model.ledgrp.ben));
}
let dataObj = {
rec: {
objtyp: 'LED',
ownref: model.ledgrp.rec.ownref,
opndat: model.ledgrp.rec.opndat,
expdat: model.ledgrp.rec.expdat,
branchinr: model.ledgrp.rec.branchinr,
hndtyp: model.ledgrp.rec.hndtyp,
gartyp: model.ledgrp.rec.gartyp,
fingua: model.ledgrp.rec.fingua,
// segtyp: model.ledgrp.ghd.segtyp,
fromflg: model.ledgrp.rec.fromflg,
othersno: model.ledgrp.rec.othersno,
sndto: model.ledgrp.rec.sndto,
// swiftflg: model.gitp.swiftflg,
giduil: model.ledgrp.rec.giduil,
purpos: model.ledgrp.rec.purpos,
revflg: model.ledgrp.rec.revflg,
cnfsta: model.ledgrp.rec.cnfsta,
},
cbsMap: {
MAX: model.ledgrp.cbs.max,
OLDMAX: model.ledgrp.cbs.oldmax,
MAX2: model.ledgrp.cbs.max2,
NOM1: model.ledgrp.cbs.nom1,
OPN1: model.ledgrp.cbs.opn1,
MAC: model.ledgrp.cbs.mac,
MAC2: model.ledgrp.cbs.mac2,
OPC2: model.ledgrp.cbs.opc2,
CNF: model.ledgrp.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: 'LED',
objinr: model.ledgrp.rec.objinr,
ownref: model.ledgrp.rec.ownref,
},
};
return params
},
buildDoctre (model, trnName) {
let params = {
...this.buildCommonData(model, trnName),
rec: {
objtyp: 'LED',
objinr: model.ledgrp.rec.objinr,
ownref: model.ledgrp.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))
}
}
if ( typeof(this.$route.query.inr) == 'string' ){
params.spt = null
params.trnmod.trn =null
}
const res = await Api.post('/service/letdrw/init', {
...params,
transName: this.trnName,
userId: window.sessionStorage.userId || 'ZL',
ledgrp:{
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.ledgrp.apl.pts.ptainr,
businessType: 'LC',
tbl: 'LC',
};
const loading = this.loading();
let res = await Api.post('/service/letdrw/getOwnRef', params);
if (res.respCode == SUCCESS) {
loading.close();
this.model.ledgrp.rec.ownref = res.data;
}
},
// 获取gitopn弹框表格数据
async queryGridEtyPromptDialogData(type, ptytyp) {
let params = {
userId: window.sessionStorage.userId || 'ZL',
ptytyp: ptytyp,
extkey: this.model.ledgrp[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;
}
},
// 选中gitopn弹框表格的行数据
async selectGridEtyPromptData(row) {
let params = {
...row,
};
let res = await Api.post('/service/ptspta/fetch', params);
if (res.respCode == SUCCESS) {
this.$set(this.model.ledgrp, row.role.toLowerCase(), res.data);
}
},
// 业务信息=》基本信息=》支出目的
purposChange(key, value) {
this.handleChangeForm(key, value);
},
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 Api from "~/service/Api"
import Pts from "../Common/Pts"
import Pub from "../Public" //引入公共面板
export default class Letdrw{
constructor () {
this.data = {
betp: {
folwupopt: ''
},
number: '',
ledgrp: {
a2b: {
pts: new Pts().data,
},
blk: {
dftat: '',
revnotes: '',
feetxt: '',
mixdet: '',
revcls: '',
shpper: '',
addamtcov: '',
avbwthtxt: '',
defdet: ''
},
rec: {
tenmaxday: '',
nomton: '',
expplc: '',
stacty: '',
revtyp: '',
revtimes: '',
opndat: '',
nomtop: '',
utlnbr: '',
avbwth: '',
revflg: '',
spcbenflg: '',
dbtflg: '',
shpdat: '',
revdat: '',
nam: '',
prepertxts18: '',
redclsflg: '',
cnfins: '',
nomspc: '',
shptrss18: '',
spcrcbflg: '',
collflg: '',
inctrf: '',
shpfro: '',
lcrtyp: '',
nonban: '',
ownref: '',
teskeyunc: '',
preadvdt: '',
avbby: '',
pordis: '',
apprul: '',
shppar: '',
prepers18: '',
expdat: '',
shpto: '',
revnbr: '',
chato: '',
cnfdet: '',
revcum: '',
aplbnkdirsnd: '',
advdat: '',
porloa: '',
apprultxt: ''
},
con: {
pts: new Pts().data,
},
cbs: {
opn1: {
cur: '',
amt: ''
},
opn2: {
cur: '',
amt: ''
},
max: {
cur: '',
amt: ''
},
nom1: {
cur: '',
amt: ''
},
max2: {
cur: '',
amt: ''
}
},
iss: {
pts: new Pts().data,
},
ben: {
pts: new Pts().data,
},
avb: {
pts: new Pts().data,
},
apl: {
pts: new Pts().data,
},
avbnam: ''
},
letp: {
usr: {
extkey: ''
},
letp0: {
aammod: {
addamtflg: ''
},
cnftxt: ''
},
aamp: {
aammod: {
addamtflg: ''
}
}
},
rmbclm: {
acwacw: {
pts: new Pts().data,
},
valdat: '',
rmbrmb: {
pts: new Pts().data,
},
bebbeb: {
pts: new Pts().data,
},
rmbrol: ''
},
bedgrp: {
blk: {
docdisflg: '',
setinsbe: '',
docdis: '',
comcon: '',
intdis: ''
},
rec: {
rcvdat: '',
doctypcod: '',
ownref: '',
shpdat: '',
payrol: '',
orddat: '',
matdat: '',
dscinsflg: '',
nam: '',
docprbrol: ''
},
oth: {
pts: new Pts().data,
},
cbs: {
opn2: {
cur: ''
},
max: {
cur: '',
amt: ''
},
max2: {
amt: ''
}
},
srm: {
djuusr: '',
djuref: '',
djudat: '',
djutyp: ''
}
},
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">
<!-- ============左边================= -->
<c-col :span="12" style="padding-right: 20px;">
<c-col :span="13">
<el-form-item label="附加金额" prop="ledgrp.cbs.max2.cur">
<c-select
v-model="model.ledgrp.cbs.max2.cur"
style="width: 100%"
placeholder="请选择附加金额"
disabled
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="11">
<el-form-item label="" label-width="5px" prop="ledgrp.cbs.max2.amt">
<c-input
v-model="model.ledgrp.cbs.max2.amt"
placeholder="请输入附加金额"
></c-input>
<!-- @keyup.enter.native="$event.target.blur()" :回车触发失去焦点发生的事件 -->
</el-form-item>
</c-col>
<c-col :span="13">
<el-form-item label="开立附加金额" prop="ledgrp.cbs.opn2.cur">
<c-select
v-model="model.ledgrp.cbs.opn2.cur"
style="width: 100%"
placeholder="请选择币种"
disabled
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="11">
<el-form-item label="" label-width="5px" prop="ledgrp.cbs.opn2.amt">
<c-input
v-model="model.ledgrp.cbs.opn2.amt"
placeholder="请输入"
disabled
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="覆盖" prop="ledgrp.blk.addamtcov">
<c-input
type="textarea"
v-model="model.ledgrp.blk.addamtcov"
maxlength="140"
show-word-limit
placeholder="请输入"
rows="4"
></c-input>
</el-form-item>
</c-col>
</c-col>
</div>
</template>
<script>
import Api from '~/service/Api'
import CodeTable from '~/config/CodeTable'
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">
<el-collapse v-model="activeNames">
<!--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 Api from "~/service/Api";
import event from "../event";
import Utils from "~/utils";
//import Addbcb1 from "~/views/Public/Addbcb1";
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: {
},
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" >
<c-col :span="21">
<el-form-item label="不符点" prop="bedgrp.blk.docdis">
<c-input
type="textarea"
v-model="model.bedgrp.blk.docdis"
maxlength="3500"
:rows="3"
show-word-limit
placeholder="请输入不符点"
:disabled="model.bedgrp.blk.docdisflg==''"
></c-input>
</el-form-item>
</c-col>
<c-col :span="3">
<!-- @click="onDocdisButtxmsel" -->
<c-button
size="small"
type="primary"
icon="el-icon-more"
@click="showGridPromptDialog('betp.docdis.buttxmsel', null, null,{TXT: 'bedgrp.blk.docdis'}, {TXT: false},'doxpDialog')"
:disabled="model.bedgrp.blk.docdisflg==''"
>
</c-button>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="21">
<el-form-item label="初审的不符点" prop="bedgrp.blk.intdis">
<c-input
type="textarea"
v-model="model.bedgrp.blk.intdis"
maxlength="1300"
:rows="3"
show-word-limit
placeholder="请输入初审的不符点"
></c-input>
</el-form-item>
</c-col>
<c-col :span="3">
<!-- @click="onIntdisButtxmsel" -->
<c-button
size="small"
type="primary"
icon="el-icon-more"
@click="showGridPromptDialog('betp.intdis.buttxmsel', null, null,{TXT: 'bedgrp.blk.intdis'}, {TXT: false},'doxpDialog')"
>
</c-button>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="21">
<el-form-item label="我方对交易的注释和结论" prop="bedgrp.blk.comcon">
<c-input
type="textarea"
v-model="model.bedgrp.blk.comcon"
maxlength="1300"
:rows="3"
show-word-limit
placeholder="请输入我方对交易的注释和结论"
></c-input>
</el-form-item>
</c-col>
<c-col :span="3">
<!-- @click="onComconButtxmsel" -->
<c-button
size="small"
type="primary"
icon="el-icon-more"
@click="showGridPromptDialog('betp.comcon.buttxmsel', null, null,{TXT: 'bedgrp.blk.comcon'}, {TXT: false},'doxpDialog')"
>
</c-button>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="21">
<el-form-item
label="结算指示"
prop="bedgrp.blk.setinsbe"
>
<c-input
type="textarea"
v-model="model.bedgrp.blk.setinsbe"
maxlength="390"
:rows="3"
show-word-limit
placeholder="请输入结算指示"
></c-input>
</el-form-item>
</c-col>
<c-col :span="3">
<!-- @click="onSetinstxmButtxmsel" -->
<c-button
size="small"
type="primary"
icon="el-icon-more"
@click="showGridPromptDialog('betp.setinstxm.buttxmsel', null, null,{TXT: 'bedgrp.blk.setinsbe'}, {TXT: false},'doxpDialog')"
>
</c-button>
</c-col>
</c-col>
<!-- 左下表格 -->
<!-- <c-col :span="24">
<c-docpre :model="model" :argadr="{
path: 'bedgrp.blk.prsdoc',
grp: 'betp',
code: 'docpre',
}"></c-docpre>
</c-col> -->
</c-col>
<!-- ============右边================= -->
<c-col :span="12" style="padding-left: 20px;">
<c-col :span="24">
<el-form-item label=" " prop="bedgrp.blk.docdisflg" label-width="120px" style=" float:right;">
<c-checkbox v-model="model.bedgrp.blk.docdisflg"
>不符点修改</c-checkbox>
</el-form-item>
</c-col>
<!-- Futher Handing -->
<c-col :span="24">
<el-form-item label="进一步处理" prop="betp.folwupopt">
<c-select
v-model="model.betp.folwupopt"
style="width: 100%"
placeholder="请选择进一步处理"
:code="codes.folwupopt"
disabled
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="付款人" prop="bedgrp.rec.payrol">
<c-select
v-model="model.bedgrp.rec.payrol"
style="width: 100%"
placeholder="请选择付款人"
:code="codes.rolall"
disabled
>
</c-select>
</el-form-item>
</c-col>
<!-- Referance -->
<c-col :span="24">
<el-form-item label="参考号" prop="bedgrp.oth.pts.ref">
<c-input
v-model="model.bedgrp.oth.pts.ref"
maxlength="16"
placeholder="请输入参考号"
disabled
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<c-ptap
:model="model"
:argadr="{
title: '',
grp: 'bedgrp',
rol: 'oth',
}"
:noRef="true"
:isAdrblk="false"
:haveAdrLabel="false"
:disabledExtkey="true"
:disabled="true"
>
</c-ptap>
</c-col>
</c-col>
<c-col :span="24">
<c-docpre :model="model" :argadr="{
path: 'bedgrp.blk.prsdoc',
grp: 'betp',
code: 'docpre',
}"></c-docpre>
</c-col>
</div>
</template>
<script>
import Api from '~/service/Api'
import CodeTable from '~/config/CodeTable'
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],
data() {
return {}
},
methods: { },
created: function () {},
}
</script>
<style></style>
<template>
<div class="eibs-tab">
<el-collapse v-model="activeNames">
<el-collapse-item title="概览信息" name="ovwp1">
<m-ovwp1 :model="model" :codes="codes" />
</el-collapse-item>
<el-collapse-item
title="附加金额"
name="aamp"
v-if="model.letp.aamp.aammod.addamtflg"
>
<m-aamp :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="drv">
<m-drv :model="model" :codes="codes" />
</el-collapse-item>
<el-collapse-item
title="Discr./Instr."
name="dscins"
v-if="model.bedgrp.rec.dscinsflg == 'X'"
>
<m-dscins :model="model" :codes="codes" />
</el-collapse-item>
<el-collapse-item title="货物描述" name="dogp">
<m-doxp :model="model" :codes="codes" :dtyp="'dogp'" :rec="'led'" />
</el-collapse-item>
<el-collapse-item title="单据要求" name="dorp">
<m-doxp :model="model" :codes="codes" :dtyp="'dorp'" :rec="'led'" />
</el-collapse-item>
<el-collapse-item title="附加条款" name="adcp">
<m-doxp :model="model" :codes="codes" :dtyp="'adcp'" :rec="'led'" />
</el-collapse-item>
<el-collapse-item
title="循环信用详情"
name="revp"
v-if="model.ledgrp.rec.revflg == 'X'"
>
<m-revp :model="model" :codes="codes" />
</el-collapse-item>
<el-collapse-item
title="受益人特殊付款条款"
name="spcbenp"
v-if="model.ledgrp.rec.spcbenflg"
>
<m-doxp :model="model" :codes="codes" :dtyp="'spcbenp'" :rec="'led'" />
</el-collapse-item>
<el-collapse-item
title="银行专用特殊付款条款"
name="spcrcvp"
v-if="model.ledgrp.rec.spcrcbflg"
>
<m-doxp :model="model" :codes="codes" :dtyp="'spcrcvp'" :rec="'led'" />
</el-collapse-item>
<el-collapse-item title="货权单据" name="srmp">
<m-srmp :model="model" :codes="codes" />
</el-collapse-item>
<el-collapse-item title="索偿(MT 742)" name="rcldetp">
<m-rcldetp :model="model" :codes="codes" />
</el-collapse-item>
</el-collapse>
</div>
</template>
<script>
import Api from "~/service/Api";
import event from "../event";
import CodeTable from "~/config/CodeTable";
import Ovwp1 from "./Ovwp1";
import Aamp from "./Aamp";
import Detp from "./Detp";
import Ptyp from "./Ptyp";
import Drv from "./Drv";
import Dscins from "./Dscins";
import Revp from "./Revp";
import Srmp from "./Srmp";
import Doxp from "~/views/Public/Doxp";
import Rcldetp from "./Rcldetp";
export default {
components: {
"m-ovwp1": Ovwp1,
"m-aamp": Aamp,
"m-detp": Detp,
"m-ptyp": Ptyp,
"m-drv": Drv,
"m-dscins": Dscins,
"m-doxp": Doxp,
"m-revp": Revp,
"m-srmp": Srmp,
"m-rcldetp": Rcldetp,
},
inject: ["root"],
props: ["model", "codes"],
mixins: [event],
data() {
return {
activeNames: ["ovwp1"],
};
},
methods: {
},
created: function () {},
computed: {},
};
</script>
<style>
.marginLable {
padding-left: 160px;
}
</style>
<template>
<div class="eibs">
<!-- ============左边================= -->
<c-col :span="12" style="padding-right: 20px;">
<!-- 第一通知行 -->
<c-col :span="24">
<c-ptap
:model="model"
:argadr="{
title: '第一通知行',
grp: 'ledgrp',
rol: 'adv',
}"
@onSeainf="onSeainf"
@onAplpDet="onAdvpDet"
>
</c-ptap>
</c-col>
<!-- 第二通知行 -->
<c-col :span="24">
<c-ptap
:model="model"
:argadr="{
title: '第二通知行',
grp: 'ledgrp',
rol: 'a2b',
}"
@onSeainf="onSeainf"
@onAplpDet="onA2bpDet"
>
</c-ptap>
</c-col>
<!-- Confirm. Instruct. -->
<c-col :span="24">
<el-form-item label="第二通知行确认指令" prop="ledgrp.rec.cnfins">
<c-select
v-model="model.ledgrp.rec.cnfins"
style="width: 100%"
placeholder="第二通知行确认指令"
:code="codes.cnfflg1"
:disabled="model.ledgrp.a2b.pts.extkey==''"
>
</c-select>
</el-form-item>
</c-col>
</c-col>
<!-- ============右边================= -->
<c-col :span="12" style="padding-left: 20px;">
<!-- Applicant's Bank -->
<c-col :span="24">
<c-ptap
:model="model"
:argadr="{
title: '申请银行',
grp: 'ledgrp',
rol: 'apb',
}"
@onSeainf="onSeainf"
@onAplpDet="onApbpDet"
>
</c-ptap>
</c-col>
<!-- Send Directly to Applicant's Bank -->
<c-col :span="24">
<c-checkbox v-model="model.ledgrp.rec.aplbnkdirsnd" style="margin-left:150px;"
>直接发送至申请银行</c-checkbox
>
</c-col>
<!-- Reimbursement Bank -->
<c-col :span="24">
<c-ptap
:model="model"
:argadr="{
title: '偿付银行',
grp: 'ledgrp',
rol: 'rmb',
}"
@onSeainf="onSeainf"
@onAplpDet="onRmbpDet"
>
</c-ptap>
</c-col>
<!-- Confirmation Bank -->
<c-col :span="24">
<c-ptap
:model="model"
:argadr="{
title: '保兑行',
grp: 'ledgrp',
rol: 'con',
}"
:onlySearch="true"
@onSeainf="onSeainf"
@onAplpDet="onConpDet"
>
</c-ptap>
</c-col>
<c-col :span="24">
<el-form-item label="" prop="ledgrp.con.pts.nam">
<c-input
v-model="model.ledgrp.con.pts.nam"
maxlength="40"
placeholder="请输入"
disabled
></c-input>
</el-form-item>
</c-col>
</c-col>
<!-- =============================底部表格========================= -->
<c-edit-table :model="model" v-bind="ptsaddg">
<el-table-column label="操作" text-align="center">
<template slot-scope="scope">
<el-button
size="mini"
@click="handleEdit(scope.$index, scope.row)"
type="primary"
>详情</el-button
>
</template>
</el-table-column>
</c-edit-table>
</div>
</template>
<script>
import Api from '~/service/Api'
import commonProcess from '~/mixin/commonProcess'
import CodeTable from '~/config/CodeTable'
import Event from '~/model/Letdrw/Event'
import Ptap from "~/views/Public/Ptap";
export default {
inject: ["root"],
components: { "c-ptap": Ptap },
props: ["model", "codes"],
mixins: [commonProcess],
data() {
return {
ptsaddg: {
columns: [
{
title: "角色",
width: "120px",
dataIndex: "rol",
show: "select",
},
{
title: "机构实体",
width: "180px",
dataIndex: "ptyextkey",
show: "input",
},
{
title: "名称",
width: "300px",
dataIndex: "nam",
},
{
title: "参考地址",
width: "300px",
dataIndex: "ref",
},
],
urls: "letp.ptsaddp.ptsaddg",
},
};
},
methods: {
...Event,
handleEdit() {
console.log("1111测试");
},
},
created: function () {},
};
</script>
<style>
</style>
<template>
<div class="eibs">
<!-- ==========================左半边================================== -->
<c-col :span="12" style="padding-right: 20px;">
<!-- SF000021 : 偿付行 -->
<c-col :span="24">
<el-form-item label="偿付行" prop="rmbclm.rmbrol">
<c-select
v-model="model.rmbclm.rmbrol"
style="width: 100%"
placeholder="请选择"
:code="codes.rolall"
@change="selectOrCheckboxRule('rmbclm.rmbrol')"
>
</c-select>
</el-form-item>
</c-col>
<!-- SF000020 : 编号 Reference for Address Optional -->
<c-col :span="24">
<c-form-item label="参考号" prop="rmbclm.rmbrmb.pts.ref">
<c-input
v-model="model.rmbclm.rmbrmb.pts.ref"
maxlength="16"
placeholder="请输入"
:disabled="rmbrolRefFlag"
></c-input>
</c-form-item>
</c-col>
<c-col :span="24">
<c-ptap
:model="model"
:argadr="{
title: '',
grp: 'rmbclm',
rol: 'rmbrmb',
}"
:noRef="true"
@onSeainf="onSeainf"
@onAplpDet="onRmbpDet"
:disabledExtkey="rmbrolRefFlag"
:disabled="rmbrolAdrblkFlag"
>
</c-ptap>
</c-col>
<!-- SF000011 : Account with Bank -->
<!-- SF000018 : 编号 -->
<c-col :span="24">
<c-form-item
label="账户号参考号"
prop="rmbclm.acwacw.pts.ref"
>
<c-input
v-model="model.rmbclm.acwacw.pts.ref"
maxlength="16"
placeholder="请输入"
></c-input>
</c-form-item>
</c-col>
<c-col :span="24">
<c-ptap
:model="model"
:argadr="{
title: '',
grp: 'rmbclm',
rol: 'acwacw',
}"
:noRef="true"
@onSeainf="onSeainf"
@onAplpDet="onAcwpDet"
>
</c-ptap>
</c-col>
<!-- SF000016 : Beneficiary Bank -->
<!-- SF000019 : 编号 -->
<c-col :span="24">
<c-form-item
label="受益人银行参考号"
prop="rmbclm.bebbeb.pts.ref"
>
<c-input
v-model="model.rmbclm.bebbeb.pts.ref"
maxlength="16"
placeholder="请输入"
></c-input>
</c-form-item>
</c-col>
<c-col :span="24">
<c-ptap
:model="model"
:argadr="{
title: '',
grp: 'rmbclm',
rol: 'bebbeb',
}"
:noRef="true"
@onSeainf="onSeainf"
@onAplpDet="onBebpDet"
>
</c-ptap>
</c-col>
<!-- SG000133 : value date -->
<c-col :span="24">
<el-form-item label="起息日" prop="rmbclm.valdat">
<c-date-picker
type="date"
value-format="yyyy-MM-dd"
v-model="model.rmbclm.valdat"
style="width: 100%"
placeholder="请选择"
></c-date-picker>
</el-form-item>
</c-col>
</c-col>
</div>
</template>
<script>
import Api from '~/service/Api'
import commonProcess from '~/mixin/commonProcess'
import CodeTable from '~/config/CodeTable'
import Event from '~/model/Letcan/Event'
import Ptap from '~/views/Public/Ptap'
export default {
inject: ['root'],
components: { 'c-ptap': Ptap },
props: ['model', 'codes'],
mixins: [commonProcess],
data() {
return {}
},
methods: { ...Event },
created: function () {},
computed:{
rmbrolRefFlag: {
get() {
return (
this.model.rmbclm.rmbrol=='ADV'||this.model.rmbclm.rmbrol=='AVB'
||this.model.rmbclm.rmbrol=='ISS'||this.model.rmbclm.rmbrol=='CON'
)
},
},
rmbrolAdrblkFlag: {
get() {
return (
this.model.rmbclm.rmbrol=='ADV'||this.model.rmbclm.rmbrol=='AVB'
||this.model.rmbclm.rmbrol=='ISS'||this.model.rmbclm.rmbrol=='CON'
||this.model.rmbclm.rmbrol=='RMB'
)
},
},
}
}
</script>
<style></style>
<template>
<div class="eibs">
<!-- ============左边================= -->
<c-col :span="12" style="padding-right: 20px;">
<c-col :span="24">
<el-form-item label="循环信用证信息"></el-form-item>
</c-col>
<c-col :span="18">
<el-form-item label="循环类型" prop="ledgrp.rec.revtyp">
<c-select
v-model="model.ledgrp.rec.revtyp"
style="width: 100%"
placeholder="请选择循环类型"
:code="codes.revtyp"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="6">
<!-- Credit is Marked as Cumulative -->
<c-checkbox v-model="model.ledgrp.rec.revcum"
style="margin-left:10px"
>累计</c-checkbox
>
</c-col>
<c-col :span="12">
<el-form-item label="循环时间" prop="ledgrp.rec.revtimes">
<c-input
v-model.number="model.ledgrp.rec.revtimes"
placeholder="请输入循环时间"
></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="循环次数" prop="ledgrp.rec.revnbr">
<c-input
v-model.number="model.ledgrp.rec.revnbr"
placeholder="请输入循环次数"
disabled
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="下一循环日期" prop="ledgrp.rec.revdat">
<c-date-picker
type="date"
v-model="model.ledgrp.rec.revdat"
style="width: 100%"
placeholder="请选择下一循环日期"
value-format="yyyy-MM-dd"
></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="循环条款" prop="ledgrp.blk.revcls">
<c-fullbox>
<c-input
type="textarea"
v-model="model.ledgrp.blk.revcls"
maxlength="390"
show-word-limit
placeholder="请输入循环条款"
></c-input>
<template slot="footer">
<c-button
size="small"
type="primary"
icon="el-icon-more"
@click="onRevclauseButtxmsel"
>
</c-button>
</template>
</c-fullbox>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="受益人须知" prop="ledgrp.blk.revnotes">
<c-input
type="textarea"
v-model="model.ledgrp.blk.revnotes"
maxlength="210"
show-word-limit
placeholder="请输入受益人须知"
></c-input>
</el-form-item>
</c-col>
</c-col>
</div>
</template>
<script>
import Api from '~/service/Api'
import commonProcess from '~/mixin/commonProcess'
import CodeTable from '~/config/CodeTable'
import Event from '~/model/Letdrw/Event'
export default {
inject: ['root'],
props: ['model', 'codes'],
mixins: [commonProcess],
data() {
return {}
},
methods: { ...Event },
created: function () {},
}
</script>
<style></style>
<template>
<div class="eibs">
<!-- ============左边================= -->
<c-col :span="12" style="padding-right: 20px;">
<c-col :span="24">
<el-form-item label="单据类型" prop="bedgrp.srm.djutyp">
<c-select
v-model="model.bedgrp.srm.djutyp"
style="width: 100%"
placeholder="请选择单据类型"
:code="codes.djutyp"
@change="djutypkeyEvent"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="单据出具人" prop="bedgrp.srm.djuusr">
<c-input
v-model="model.bedgrp.srm.djuusr"
maxlength="80"
placeholder="请输入单据出具人"
:disabled="djutypFlag"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="单据出具日期" prop="bedgrp.srm.djudat">
<c-date-picker
type="date"
v-model="model.bedgrp.srm.djudat"
value-format="yyyy-MM-dd"
style="width: 100%"
placeholder="请选择单据出具日期"
:disabled="djutypFlag"
></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="货权单据编号" prop="bedgrp.srm.djuref">
<c-input
v-model="model.bedgrp.srm.djuref"
maxlength="40"
placeholder="请输入货权单据编号"
:disabled="djutypFlag"
></c-input>
</el-form-item>
</c-col>
</c-col>
</div>
</template>
<script>
import Api from '~/service/Api'
import commonProcess from '~/mixin/commonProcess'
import CodeTable from '~/config/CodeTable'
import Event from '~/model/Letdrw/Event'
export default {
inject: ['root'],
props: ['model', 'codes'],
mixins: [commonProcess],
data() {
return {}
},
methods: {
...Event,
djutypkeyEvent() {
if (this.model.bedgrp.srm.djutyp=='D'||this.model.bedgrp.srm.djutyp=='') {
this.model.bedgrp.srm.djuusr = '' //单据出具人置空
this.model.bedgrp.srm.djudat = '' //日期置空
this.model.bedgrp.srm.djuref='' //货权单据编号置空
}
this.executeCheck('ledgrp.rec.avbby').then((res) => {
if (res.respCode == SUCCESS) {
Utils.copyValueFromVO(this.model, res.data)
}
})
},
},
computed: {
djutypFlag: {
get() {
return (
this.model.bedgrp.srm.djutyp=='D' ||
this.model.bedgrp.srm.djutyp== ''
)
},
},
},
created: function () {},
}
</script>
<style></style>
<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>
<el-tab-pane label="统一授信" name="limitbody">
<c-content>
<m-limitbody :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<el-tab-pane label="费用/账务" name="engp,setpan,glepan">
<c-content>
<div class="eibs-tab">
<el-collapse v-model="activeNames">
<el-collapse-item title="表外记账" name="engp">
<!-- 表外记账 -->
<m-engp :model="model" :codes="codes" />
</el-collapse-item>
<el-collapse-item title="结算" name="setpan">
<!-- 结算 -->
<m-setpan :model="model" :codes="codes" />
</el-collapse-item>
<el-collapse-item title="会计分录" name="glepan">
<!-- 会计分录 -->
<m-glepan :model="model" :codes="codes" />
</el-collapse-item>
</el-collapse>
</div>
</c-content>
</el-tab-pane>
<el-tab-pane label="备查/附言" name="addbcb">
<c-content>
<m-addbcb :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="selectEty"
>
</c-grid-ety-prompt-dialog>
<c-grid-ety-prompt-dialog
ref="doxpDialog"
:isPty="false"
:promptData="promptData"
@select-ety="selectMsg"
>
</c-grid-ety-prompt-dialog>
<c-function-btn
:handleSubmit="handleSubmit"
:handleCheck="handleCheck"
:handleStash="handleStash"
>
</c-function-btn>
</c-page>
</div>
</template>
<script>
import Api from '~/service/Api'
import CodeTable from '~/config/CodeTable'
import Letdrw from '~/model/Letdrw'
import commonProcess from '~/mixin/commonProcess'
import commonFuncs from '~/mixin/commonFuncs'
import Check from '~/model/Letdrw/Check'
import Default from '~/model/Letdrw/Default'
import Pattern from '~/model/Letdrw/Pattern'
import Ovwp from './Ovwp'
import Aamp from './Aamp'
import Detp from './Detp'
import Ptyp from './Ptyp'
import Drv from './Drv'
import Dscins from './Dscins'
import Revp from './Revp'
import Srmp from './Srmp'
import Addbcb from "./Addbcb";
import Doxp from '~/views/Public/Doxp'
import Coninfp from '~/views/Public/Coninfp'
import Setpan from '~/components/business/setmod/views'
import Docpan from '~/views/Public/Docpan'
import Doctre from '~/views/Public/Doctre'
import Engp from '~/views/Public/Engp'
import Limitbody from '~/views/Public/Limitbody'
import Glepan from "~/views/Public/Glepan";
export default {
name: 'Letdrw',
components: {
"m-addbcb": Addbcb,
'm-ovwp': Ovwp,
'm-aamp': Aamp,
'm-detp': Detp,
'm-ptyp': Ptyp,
'm-drv': Drv,
'm-dscins': Dscins,
'm-doxp': Doxp,
'm-revp': Revp,
'm-engp': Engp,
'm-setpan': Setpan,
'm-coninfp': Coninfp,
'm-docpan': Docpan,
'm-doctre': Doctre,
'm-srmp': Srmp,
'm-limitbody': Limitbody,
"m-glepan":Glepan,
},
provide() {
return {
root: this,
}
},
mixins: [commonProcess, commonFuncs], // 里面包含了Default、Check等的公共处理
data() {
return {
tabVal: 'ovwp',
trnName: 'letdrw',
model: new Letdrw().data,
checkRules: Check,
defaultRules: Default,
pattern: Pattern,
rules: null,
codes: { ...CodeTable },
activeNames: ["engp"],
}
},
methods: {
myTabClick(tab) {
this.tabClick(tab)
/**
* do it yourself
**/
},
},
created: async function () {
console.log('进入letdrw交易')
let rtnmsg = await this.init({})
if (rtnmsg.respCode == SUCCESS) {
this.updateModel(rtnmsg.data)
//TODO 处理数据逻辑
if (this.isInDisplay) {
this.restoreDisplay()
}
} else {
this.$notify.error({ title: '错误', message: '服务请求失败!' })
}
},
}
</script>
<style></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