Commit 8bd3d605 by Wuyuqiu

lttame交易检核提交完成

parent 9c9804d9
......@@ -6846,16 +6846,21 @@ const CodeTable = {
{ label: "ISCO Issuance of counter-undertaking", value: "ISCO" },
{ label: "ICCO Issuance of counter-counter-undert.", value: "ICCO" },
],
// purpos:[
// {label:"Advice and confirmation of the credit amendment", value:"ACNF"},
// {label:"Advice of the credit amendment", value:"ADVI"},
// {label:"Issuance of the credit amendment", value:"ISSU"},
// ],
purpos5:[
{label:"Advice and confirmation of the credit amendment", value:"ACNF"},
{label:"Advice of the credit amendment", value:"ADVI"},
{label:"Issuance of the credit amendment", value:"ISSU"},
],
trnchato: [
{ label: "Applicant Side", value: "APPL" },
{ label: "Beneficiary Side", value: "BENE" },
{ label: "Other", value: "OTHR" }
],
trnchato1: [
{ label: "Applicant", value: "APPL" },
{ label: "Beneficiary", value: "BENE" },
{ label: "Other", value: "OTHR" }
],
gitopn_chato:[
{ value: "U", label: "Applicant Side" },
{ value: "B", label: "Beneficiay Side" },
......@@ -7257,6 +7262,10 @@ const CodeTable = {
{ label: "User Group", value: "USG" },
{ label: "Entity", value: "ETY" },
{ label: "<not specified>", value: "" },
],
rmbcha:[
{ label: "CLM", value: "CLM" },
{ label: "OUR", value: "OUR" },
]
}
......
......@@ -4,85 +4,79 @@ import Utils from "~/utils"
* Lttame Check规则
*/
let checkObj = {
"lttp.a2tp.ptsget.sdamod.dadsnd" :null,
"lttamep.lcrdocamep.usrblk" :null,
"ltdgrp.avt.adrelc" :null,
"ltdgrp.rec.expplc" :null,
"ltdgrp.be2.pts.adrblk" :null,
"trnmod.swiadd.newamt" :null,
"ltdgrp.a2t.adrelc" :null,
"ltdgrp.blk.lcrdoc" :null,
"ltdgrp.avt.namelc" :null,
"ltdgrp.rec.stacty" :null,
"ltdgrp.a2t.pts.extkey" :null,
"lttp.usr.extkey" :null,
"ltdgrp.rec.apprulrmb" :null,
"ltdgrp.rec.opndat" :null,
"ltdgrp.be2.pts.extkey" :null,
"ltdgrp.rec.avbwth" :null,
"setmod.dspflg" :null,
"ltdgrp.blk.spcrcb" :null,
"ltdgrp.blk.feetxt" :null,
"lttamep.spcbenamep.usrblk" :null,
"ltdgrp.be2.namelc" :null,
"ltdgrp.rmt.adrelc" :null,
"trnmod.swiadd.amenbr" :null,
"ltdgrp.rmt.pts.extkey" :null,
"lttamep.adlcndamep.usrblk" :null,
"ltdgrp.blk.dftat" :null,
"lttp.letp0.recget.sdamod.dadsnd" :null,
"lttp.drwp.ptsget.sdamod.dadsnd" :null,
"ltdgrp.blk.adlcnd" :null,
"lttp.rmtp.ptsget.sdamod.dadsnd" :null,
"ltdgrp.be1.pts.nam" :null,
"trnmod.swiadd.newshpdat" :null,
"ltdgrp.blk.spcben" :null,
"trnmod.swiadd.newexpdat" :null,
"ltdgrp.avt.pts.adrblk" :null,
"ltdgrp.a2t.pts.adrblk" :null,
"ltdgrp.adt.pts.extkey" :null,
"ltdgrp.blk.mixdet" :null,
"ltdgrp.drw.adrelc" :null,
"ltdgrp.drw.pts.extkey" :null,
"lttp.ledget.sdamod.dadsnd" :null,
"lttamep.spcrcbamep.usrblk" :null,
"ltdgrp.con.pts.extkey" :null,
"ltdgrp.con.namelc" :null,
"ltdgrp.adt.adrelc" :null,
"lttamep.lcrdocamep.usrblk" :null,
"ltdgrp.avt.adrelc" :null,
"ltdgrp.rec.expplc" :null,
"lttp.conp.ptsget.sdamod.dadsnd" :null,
"ltdgrp.be2.pts.adrblk" :null,
"trnmod.swiadd.newamt" :null,
"lttp.be1p.ptsget.sdamod.dadsnd" :null,
"lttamep.recget.sdamod.dadsnd" :null,
"ltdgrp.rec.avbwth" :null,
"ltdgrp.blk.spcrcb" :null,
"ltdgrp.blk.feetxt" :null,
"ltdgrp.rec.avbby" :null,
"trnmod.swiadd.addamt" :null,
"ltdgrp.blk.preper" :null,
"ltdgrp.rmt.namelc" :null,
"ltdgrp.blk.addamtcov" :null,
"ltdgrp.rmt.pts.extkey" :null,
"lttamep.adlcndamep.usrblk" :null,
"ltdgrp.cbs.max2.amt" :null,
"ltdgrp.be2.adrelc" :null,
"ltdgrp.blk.dftat" :null,
"ltdgrp.adt.pts.adrblk" :null,
"trnmod.swiadd.newnomtop" :null,
"ltdgrp.rec.prepers18" :null,
"trnmod.swiadd.newnomton" :null,
"ltdgrp.blk.lcrgod" :null,
"lttp.be2p.ptsget.sdamod.dadsnd" :null,
"ltdgrp.blk.adlcnd" :null,
"ltdgrp.be1.pts.nam" :null,
"ltdgrp.be1.pts.extkey" :null,
"ltdgrp.avt.pts.extkey" :null,
"trnmod.swiadd.newshpdat" :null,
"ltdgrp.blk.spcben" :null,
"ltdgrp.rec.apprultxt" :null,
"trnmod.swiadd.newexpdat" :null,
"ltdgrp.rmt.pts.adrblk" :null,
"lttp.recget.sdamod.dadsnd" :null,
"ltdgrp.avt.pts.adrblk" :null,
"mtabut.coninf.conexedat" :null,
"ltdgrp.a2t.pts.adrblk" :null,
"ltdgrp.adt.pts.extkey" :null,
"lttamep.lcrgodamep.usrblk" :null,
"ltdgrp.rec.rmbcha" :null,
"ltdgrp.adt.namelc" :null,
"ltdgrp.blk.mixdet" :null,
"ltdgrp.drw.adrelc" :null,
"ltdgrp.con.adrelc" :null,
"ltdgrp.rec.lcrtyp" :null,
"ltdgrp.rec.tenmaxday" :null,
"ltdgrp.rec.apprul" :null,
"setmod.docamt" :null,
"trnmod.swiadd.prepers18" :null,
"lttp.adtp.ptsget.sdamod.dadsnd" :null,
"ltdgrp.drw.pts.extkey" :null,
"lttamep.spcrcbamep.usrblk" :null,
"ltdgrp.blk.insbnk" :null,
"ltdgrp.con.pts.extkey" :null,
"ltdgrp.con.namelc" :null,
"ltdgrp.blk.defdet" :null,
"ltdgrp.adt.adrelc" :null,
"ltdgrp.drw.namelc" :null,
"ltdgrp.drw.pts.adrblk" :null,
"trnmod.swiadd.purpos" :null,
"ltdgrp.a2t.namelc" :null,
"ltdgrp.con.pts.adrblk" :null,
"lttp.avtp.ptsget.sdamod.dadsnd" :null,
}
for (const key in checkObj) {
......
......@@ -206,13 +206,13 @@
</c-col>
<c-col :span="12">
<el-form-item label="始发(航空)站 prop="lidgrp.rec.porloa">
<el-form-item label="始发(航空)站" prop="lidgrp.rec.porloa">
<c-input v-model="model.lidgrp.rec.porloa" maxlength="65" placeholder="请输入Air-/Port of Departure"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="终点(航空)站 prop="lidgrp.rec.pordis">
<el-form-item label="终点(航空)站" prop="lidgrp.rec.pordis">
<c-input v-model="model.lidgrp.rec.pordis" maxlength="65" placeholder="请输入Air-/Port of Destination"></c-input>
</el-form-item>
</c-col>
......
......@@ -184,7 +184,7 @@
</el-form-item>
</c-col>
<c-col :span="18">
<el-form-item label="始发(航空)站 prop="ltdgrp.rec.porloa">
<el-form-item label="始发(航空)站" prop="ltdgrp.rec.porloa">
<c-input
v-model="model.ltdgrp.rec.porloa"
maxlength="65"
......@@ -193,7 +193,7 @@
</el-form-item>
</c-col>
<c-col :span="18">
<el-form-item label="终点(航空)站 prop="ltdgrp.rec.pordis">
<el-form-item label="终点(航空)站" prop="ltdgrp.rec.pordis">
<c-input
v-model="model.ltdgrp.rec.pordis"
maxlength="65"
......
......@@ -153,7 +153,7 @@
<!-- Air-/Port of Departure 始发航空站/港口-->
<c-col :span="24">
<el-form-item label="始发(航空)站 prop="ledgrp.rec.porloa">
<el-form-item label="始发(航空)站" prop="ledgrp.rec.porloa">
<c-input
type="textarea"
v-model="model.ledgrp.rec.porloa"
......@@ -166,7 +166,7 @@
<!-- Air-/Port of Destination 目的航空站/港口-->
<c-col :span="24">
<el-form-item label="终点(航空)站 prop="ledgrp.rec.pordis">
<el-form-item label="终点(航空)站" prop="ledgrp.rec.pordis">
<c-input
type="textarea"
v-model="model.ledgrp.rec.pordis"
......
......@@ -777,7 +777,7 @@
</c-col>
<c-col :span="12">
<el-form-item label="始发(航空)站 prop="ledgrp.rec.porloa">
<el-form-item label="始发(航空)站" prop="ledgrp.rec.porloa">
<c-input
type="textarea"
v-model="model.ledgrp.rec.porloa"
......@@ -789,7 +789,7 @@
</c-col>
<c-col :span="12">
<el-form-item label="终点(航空)站 prop="ledgrp.rec.pordis">
<el-form-item label="终点(航空)站" prop="ledgrp.rec.pordis">
<c-input
type="textarea"
v-model="model.ledgrp.rec.pordis"
......
......@@ -141,20 +141,20 @@
</c-col>
<c-col :span="24">
<el-form-item label="始发(航空)站 prop="ledgrp.rec.porloa">
<el-form-item label="始发(航空)站" prop="ledgrp.rec.porloa">
<c-input
type="textarea"
v-model="model.ledgrp.rec.porloa"
maxlength="65"
show-word-limit
placeholder="Please input 始发(航空)站
placeholder="Please input 始发(航空)站"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item
label="终点(航空)站
label="终点(航空)站"
prop="ledgrp.rec.pordis"
>
<c-input
......@@ -162,7 +162,7 @@
v-model="model.ledgrp.rec.pordis"
maxlength="65"
show-word-limit
placeholder="Please input 终点(航空)站
placeholder="Please input 终点(航空)站"
></c-input>
</el-form-item>
</c-col>
......
......@@ -136,13 +136,13 @@
<c-col :span="12">
<el-form-item label="始发(航空)站" prop="lidgrp.rec.porloa">
<el-form-item label="始发(航空)站"" prop="lidgrp.rec.porloa">
<c-input disabled v-model="model.lidgrp.rec.porloa" maxlength="65" placeholder="请输入Air-/Port of Departure"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="终点(航空)站" prop="lidgrp.rec.pordis">
<el-form-item label="终点(航空)站"" prop="lidgrp.rec.pordis">
<c-input disabled v-model="model.lidgrp.rec.pordis" maxlength="65" placeholder="请输入Air-/Port of Destination"></c-input>
</el-form-item>
</c-col>
......
......@@ -200,13 +200,13 @@
<c-col :span="24">
<el-form-item label="始发(航空)站" prop="lidgrp.rec.porloa">
<el-form-item label="始发(航空)站"" prop="lidgrp.rec.porloa">
<c-input v-model="model.lidgrp.rec.porloa" maxlength="65" placeholder="请输入Air-/Port of Departure"></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="终点(航空)站" prop="lidgrp.rec.pordis">
<el-form-item label="终点(航空)站"" prop="lidgrp.rec.pordis">
<c-input v-model="model.lidgrp.rec.pordis" maxlength="65" placeholder="请输入Air-/Port of Destination"></c-input>
</el-form-item>
</c-col>
......
......@@ -111,13 +111,13 @@
<c-col :span="12">
<el-form-item label="始发(航空)站" prop="lidgrp.rec.porloa">
<el-form-item label="始发(航空)站"" prop="lidgrp.rec.porloa">
<c-input disabled v-model="model.lidgrp.rec.porloa" maxlength="65" placeholder="请输入Air-/Port of Departure"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="终点(航空)站" prop="lidgrp.rec.pordis">
<el-form-item label="终点(航空)站"" prop="lidgrp.rec.pordis">
<c-input disabled v-model="model.lidgrp.rec.pordis" maxlength="65" placeholder="请输入Air-/Port of Destination"></c-input>
</el-form-item>
</c-col>
......
......@@ -210,13 +210,13 @@
<c-col :span="24">
<el-form-item label="始发(航空)站" prop="lidgrp.rec.porloa">
<el-form-item label="始发(航空)站"" prop="lidgrp.rec.porloa">
<c-input v-model="model.lidgrp.rec.porloa" maxlength="65" placeholder="请输入地址"></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="终点(航空)站" prop="lidgrp.rec.pordis">
<el-form-item label="终点(航空)站"" prop="lidgrp.rec.pordis">
<c-input v-model="model.lidgrp.rec.pordis" maxlength="65" placeholder="请输入地址"></c-input>
</el-form-item>
</c-col>
......
<template>
<div class="eibs-tab">
<c-col :span="11">
<c-col :span="12">
<c-col :span="10">
<el-form-item label="Additional Amount" prop="ltdgrp.cbs.max2.cur">
<c-select
v-model="model.ltdgrp.cbs.max2.cur"
style="width: 100%"
placeholder=""
placeholder="请选择Currency"
disabled
>
<el-option
<!-- <el-option
v-for="item in codes.cur"
:key="item.value"
:label="item.label"
:value="item.value"
></el-option>
>
</el-option> -->
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="" label-width="15px" prop="ltdgrp.cbs.max2.amt">
<el-form-item
style="text-align: left"
label-width="20px"
prop="ltdgrp.cbs.max2.amt"
>
<c-input
v-model="model.ltdgrp.cbs.max2.amt"
style="text-align: left; width: 100%"
placeholder="请输入Additional Amount"
@keyup.enter.native="showGridPromptDialog('ltdgrp.cbs.max2.amt')"
disabled
></c-input>
</el-form-item>
</c-col>
<c-col :span="10">
<el-form-item label="Open Add. Amount" prop="ltdgrp.cbs.opn2.cur">
<c-select
v-model="model.ltdgrp.cbs.opn2.cur"
style="width: 100%"
placeholder=""
style="width:100%"
placeholder="请选择Open Add. Amount"
disabled
>
<el-option
v-for="item in codes.cur"
: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 label="" label-width="15px" prop="ltdgrp.cbs.opn2.amt">
<el-form-item
label=""
style="text-align: left"
label-width="20px"
prop="ltdgrp.cbs.opn2.amt"
>
<c-input
v-model="model.ltdgrp.cbs.opn2.amt"
style="text-align: left; width: 100%"
placeholder="请输入Open Add. Amount"
disabled
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="Covered" prop="ltdgrp.blk.addamtcov">
<c-input type="textarea"
<c-input
type="textarea"
v-model="model.ltdgrp.blk.addamtcov"
:rows="4"
maxlength="35"
show-word-limit placeholder="请输入Covered"
></c-input>
</el-form-item>
</c-col>
</c-col>
<!-- <c-col :span="12">
<el-form-item label="Additional Amount" prop="ltdgrp.cbs.max2.cur">
<c-select v-model="model.ltdgrp.cbs.max2.cur" style="width:100%" placeholder="请选择Additional Amount">
</c-select>
</el-form-item>
</c-col>
:rows="4"
show-word-limit
disabled
placeholder="请输入Covered" ></c-input>
<c-col :span="12">
<el-form-item label="Additional Amount" prop="ltdgrp.cbs.max2.amt">
<c-input v-model="model.ltdgrp.cbs.max2.amt" placeholder="请输入Additional Amount"></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Open Add. Amount" prop="ltdgrp.cbs.opn2.cur">
<c-select v-model="model.ltdgrp.cbs.opn2.cur" style="width:100%" placeholder="请选择Open Add. Amount">
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Open Add. Amount" prop="ltdgrp.cbs.opn2.amt">
<c-input v-model="model.ltdgrp.cbs.opn2.amt" placeholder="请输入Open Add. Amount"></c-input>
</el-form-item>
</c-col>-->
</div>
</template>
<script>
......
<template>
<div class="eibs-tab">
<el-col :span="11">
<c-col :span="24">
<el-form-item label="附加条款" prop="ltdgrp.blk.adlcnd">
<c-input
:rows="12"
:disabled="this.flag1"
type="textarea" v-model="model.ltdgrp.blk.adlcnd" maxlength="1650" show-word-limit placeholder="请输入附加条款" ></c-input>
</el-form-item>
</c-col>
<c-col :span="22">
<el-form-item label="Adding / Deleting Text in current Amendment" prop="lttamep.adlcndamep.usrblk">
<c-input
:disabled="this.flag2"
:rows="22"
type="textarea" v-model="model.lttamep.adlcndamep.usrblk" maxlength="1650" show-word-limit placeholder="请输入Block to enter additional info for Add/Delete" ></c-input>
</el-form-item>
</c-col>
<c-col :span="2">
<c-button size="small" type="primary" icon="el-icon-search"
:disabled="this.flag2"
@click="showGridPromptDialog('lttamep.adlcndame.buttxmsel',null,null,{TXT: 'lttamep.adlcndamep.usrblk'}, {TXT: false},'doxpDialog')">
</c-button>
</c-col>
</el-col>
<c-col :span="12">
<el-form-item label="Additional Conditions Amendment" prop="ltdgrp.blk.adlcndame">
<c-input type="textarea" v-model="model.ltdgrp.blk.adlcndame" maxlength="50" show-word-limit placeholder="请输入Additional Conditions Amendment" ></c-input>
<el-col :span="11" :offset="1">
<c-col :span="24">
<el-form-item label="Historic Overview" prop="ltdgrp.blk.adlcndame">
<c-input
:rows="12"
disabled
type="textarea" v-model="model.ltdgrp.blk.adlcndame" maxlength="50" show-word-limit placeholder="请输入Additional Conditions Amendment History" ></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<c-checkbox v-model="model.ltdgrp.rec.redclsflg">红/绿条款?</c-checkbox>
<c-checkbox
style=" margin: 0px 0 10px 150px;"
v-model="model.ltdgrp.rec.redclsflg">红/绿条款</c-checkbox>
</c-col>
<c-col :span="12">
<c-checkbox v-model="model.ltdgrp.rec.spcbenflg">受益人特殊付款条件</c-checkbox>
<c-checkbox
style=" margin: 0px 0 10px 100px;"
v-model="model.ltdgrp.rec.spcbenflg">Spec.Pay.Cond.for Beneficiary</c-checkbox>
</c-col>
<c-col :span="12">
<c-checkbox v-model="model.ltdgrp.rec.spcrcbflg">银行专用特殊付款条件</c-checkbox>
<c-checkbox
@change="open"
style=" margin: 0px 0 10px 150px;"
v-model="model.lttamep.adlcndamep.modflg">Modify Text to Replace</c-checkbox>
</c-col>
<c-col :span="12">
<c-checkbox
style=" margin: 0px 0 10px 100px;"
v-model="model.ltdgrp.rec.spcrcbflg">Special Payment Conditions for Bank only</c-checkbox>
</c-col>
<c-col :span="12">
<c-checkbox
@change="open1"
style=" margin: 0px 0 10px 150px;"
v-model="model.lttamep.adlcndamep.modmanflg">Modify Text Internally</c-checkbox>
</c-col>
<c-col :span="24">
<c-button
style=" margin: 0px 0 10px 150px;"
size="small" type="primary" @click="onAdlcndamepButdif">
Show Diff
</c-button>
</c-col>
<c-col :span="24">
<c-button
style=" margin: 0px 0 10px 150px;"
size="small" type="primary" disabled @click="onAdlcndamepButadd">
Add Text
</c-button>
</c-col>
<c-col :span="24">
<c-button
style=" margin: 0px 0 10px 150px;"
size="small" type="primary" disabled icon="el-icon-delete" @click="onAdlcndamepButdel">
Delete text
</c-button>
</c-col>
</el-col>
</div>
</template>
<script>
......@@ -35,7 +121,131 @@ export default {
}
},
methods:{...Event},
watch:{
"model.lttamep.adlcndamep.modflg":{
immediate:true,
handler(val,oldval){
if(this.model.lttamep.adlcndamep.modflg == 'X' && this.model.lttamep.adlcndamep.modmanflg== ''){
this.flag1=false;
this.flag2=true;
this.model.lttamep.adlcndamep.usrblk='';
}else if(this.model.lttamep.adlcndamep.modflg == 'X' && this.model.lttamep.adlcndamep.modmanflg== 'X'){
this.flag1=false;
this.flag2=true;
}else if(this.model.lttamep.adlcndamep.modflg == '' && this.model.lttamep.adlcndamep.modmanflg== ''){
this.flag1=true;
this.flag2=false;
}else if(this.model.lttamep.adlcndamep.modflg == '' && this.model.lttamep.adlcndamep.modmanflg== 'X'){
this.flag1=false;
this.flag2=true;
this.model.lttamep.adlcndamep.usrblk='';
}
}
},
"model.lttamep.adlcndamep.modmanflg":{
immediate:true,
handler(val,oldval){
if(this.model.lttamep.adlcndamep.modflg == 'X' && this.model.lttamep.adlcndamep.modmanflg== ''){
this.flag1=false;
this.flag2=true;
this.model.lttamep.adlcndamep.usrblk='';
}else if(this.model.lttamep.adlcndamep.modflg == 'X' && this.model.lttamep.adlcndamep.modmanflg== 'X'){
this.flag1=false;
this.flag2=true;
}else if(this.model.lttamep.adlcndamep.modflg == '' && this.model.lttamep.adlcndamep.modmanflg== ''){
this.flag1=true;
this.flag2=false;
}else if(this.model.lttamep.adlcndamep.modflg == '' && this.model.lttamep.adlcndamep.modmanflg== 'X'){
this.flag1=false;
this.flag2=true;
this.model.lttamep.adlcndamep.usrblk='';
}
}
}
},
methods:{...Event,
open(val){
if(val === '' && !(this.model.ltdgrp.blk.adlcnd == '')){
this.$confirm('Do you really want to reset your manual modifications?','提示',{
cancelButtonText: 'Cannel',
confirmButtonText: 'Ok',
type: 'warning',
showClose:false
}).then(() => {
//yes的执行在这里写
this.model.ltdgrp.blk.adlcnd='';
this.$message({
type: 'success',
message: '删除成功!'
});
}).catch(() => {
//No的功能在这里写
this.model.lttamep.adlcndamep.modflg='X'
this.$message({
type: 'info',
message: '已取消'
});
});
}else if(val == 'X' && this.model.lttamep.adlcndamep.modmanflg =='X'){
this.$confirm('Please reset internal modification first','提示',{
confirmButtonText: 'Ok',
showCancelButton:false,
type: 'warning',
showClose:false
}).then(() => {
//yes的执行在这里写
this.model.lttamep.adlcndamep.modflg='';
this.flag1=true;
this.flag2=false;
})
}
},
open1(val){
if(val === '' && !(this.model.ltdgrp.blk.adlcnd == '')){
this.$confirm('Do you really want to reset your manual modifications?','提示',{
cancelButtonText: 'Cannel',
confirmButtonText: 'Ok',
type: 'warning',
showClose:false
}).then(() => {
//yes的执行在这里写
this.model.ltdgrp.blk.adlcnd='';
this.$message({
type: 'success',
message: '删除成功!'
});
}).catch(() => {
//No的功能在这里写
this.model.lttamep.adlcndamep.modmanflg = 'X'
this.$message({
type: 'info',
message: '已取消'
});
});
}else if(this.model.lttamep.adlcndamep.modflg == 'X' && this.model.lttamep.adlcndamep.modmanflg =='X'){
this.$confirm('Please reset modification to replace first','提示',{
confirmButtonText: 'Ok',
cancelButtonText: '',
showCancelButton:false,
type: 'warning',
showClose:false
}).then(() => {
//yes的执行在这里写
this.model.lttamep.adlcndamep.modmanflg='';
this.flag1=true;
this.flag2=false;
})
}
}
},
created:function(){
}
......
<template>
<div class="eibs-tab">
<c-col :span="12">
<el-form-item label="Description of Goods Amendment" prop="ltdgrp.blk.lcrgodame">
<c-input type="textarea" v-model="model.ltdgrp.blk.lcrgodame" maxlength="50" show-word-limit placeholder="请输入Description of Goods Amendment" ></c-input>
<el-col :span="11">
<c-col :span="24">
<el-form-item label="Description of Goods and/or Services" prop="ltdgrp.blk.lcrgod">
<c-input
:rows="12"
:disabled="this.flag1"
type="textarea" v-model="model.ltdgrp.blk.lcrgod" maxlength="1650" show-word-limit placeholder="请输入Description of Goods" ></c-input>
</el-form-item>
</c-col>
<c-col :span="22">
<el-form-item label="Adding / Deleting Text in Current Amendment" prop="lttamep.lcrgodamep.usrblk">
<c-input
:disabled="this.flag2"
:rows="22"
type="textarea" v-model="model.lttamep.lcrgodamep.usrblk" maxlength="1650" show-word-limit placeholder="请输入Block to enter additional info for Add/Delete" ></c-input>
</el-form-item>
</c-col>
<c-col :span="2">
<c-button size="small" type="primary" icon="el-icon-search"
:disabled="this.flag2"
@click="showGridPromptDialog('lttamep.lcrgodame.buttxmsel',null,null,{TXT: 'lttamep.lcrgodamep.usrblk'}, {TXT: false},'doxpDialog')">
</c-button>
</c-col>
</el-col>
<el-col :span="11" :offset="1">
<c-col :span="24">
<el-form-item label="History Overview" prop="ltdgrp.blk.lcrgodame">
<c-input
:rows="12"
disabled
type="textarea" v-model="model.ltdgrp.blk.lcrgodame" maxlength="50" show-word-limit placeholder="请输入Description of Goods Amendment History" ></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<c-checkbox
@change="open"
style=" margin: 0px 0 10px 150px;"
v-model="model.lttamep.lcrgodamep.modflg">Modify Text to Replace</c-checkbox>
</c-col>
<c-col :span="12">
<c-checkbox
@change="open1"
style=" margin: 0px 0 10px 125px;"
v-model="model.lttamep.lcrgodamep.modmanflg">Modify Text Internally</c-checkbox>
</c-col>
<c-col :span="24">
<c-button
style=" margin: 0px 0 10px 150px;"
size="small" type="primary" @click="onLcrgodamepButdif">
Show Diff
</c-button>
</c-col>
<c-col :span="24">
<c-button
style=" margin: 0px 0 10px 150px;"
disabled
size="small" type="primary" @click="onLcrgodamepButadd">
Add Text
</c-button>
</c-col>
<c-col :span="24">
<c-button
style=" margin: 0px 0 10px 150px;"
disabled
size="small" type="primary" icon="el-icon-delete" @click="onLcrgodamepButdel">
Delete text
</c-button>
</c-col>
</el-col>
</div>
</template>
<script>
......@@ -20,10 +93,135 @@ export default {
mixins: [commonProcess],
data(){
return {
flag1:true,
flag2:false,
}
},
watch:{
"model.lttamep.lcrgodamep.modflg":{
immediate:true,
handler(val,oldval){
if(this.model.lttamep.lcrgodamep.modflg == 'X' && this.model.lttamep.lcrgodamep.modmanflg== ''){
this.flag1=false;
this.flag2=true;
this.model.lttamep.lcrgodamep.usrblk='';
}else if(this.model.lttamep.lcrgodamep.modflg == 'X' && this.model.lttamep.lcrgodamep.modmanflg== 'X'){
this.flag1=false;
this.flag2=true;
}else if(this.model.lttamep.lcrgodamep.modflg == '' && this.model.lttamep.lcrgodamep.modmanflg== ''){
this.flag1=true;
this.flag2=false;
}else if(this.model.lttamep.lcrgodamep.modflg == '' && this.model.lttamep.lcrgodamep.modmanflg== 'X'){
this.flag1=false;
this.flag2=true;
this.model.lttamep.lcrgodamep.usrblk='';
}
}
},
"model.lttamep.lcrgodamep.modmanflg":{
immediate:true,
handler(val,oldval){
if(this.model.lttamep.lcrgodamep.modflg == 'X' && this.model.lttamep.lcrgodamep.modmanflg== ''){
this.flag1=false;
this.flag2=true;
this.model.lttamep.lcrgodamep.usrblk='';
}else if(this.model.lttamep.lcrgodamep.modflg == 'X' && this.model.lttamep.lcrgodamep.modmanflg== 'X'){
this.flag1=false;
this.flag2=true;
}else if(this.model.lttamep.lcrgodamep.modflg == '' && this.model.lttamep.lcrgodamep.modmanflg== ''){
this.flag1=true;
this.flag2=false;
}else if(this.model.lttamep.lcrgodamep.modflg == '' && this.model.lttamep.lcrgodamep.modmanflg== 'X'){
this.flag1=false;
this.flag2=true;
this.model.lttamep.lcrgodamep.usrblk='';
}
}
}
},
methods:{...Event,
open(val){
if(val === '' && !(this.model.ltdgrp.blk.lcrgod == '')){
this.$confirm('Do you really want to reset your manual modifications?','提示',{
cancelButtonText: 'Cannel',
confirmButtonText: 'Ok',
type: 'warning',
showClose:false
}).then(() => {
//yes的执行在这里写
this.model.ltdgrp.blk.lcrgod='';
this.$message({
type: 'success',
message: '删除成功!'
});
}).catch(() => {
//No的功能在这里写
this.model.lttamep.lcrgodamep.modflg='X'
this.$message({
type: 'info',
message: '已取消'
});
});
}else if(val == 'X' && this.model.lttamep.lcrgodamep.modmanflg =='X'){
this.$confirm('Please reset internal modification first','提示',{
confirmButtonText: 'Ok',
showCancelButton:false,
type: 'warning',
showClose:false
}).then(() => {
//yes的执行在这里写
this.model.lttamep.lcrgodamep.modflg='';
this.flag1=true;
this.flag2=false;
})
}
},
open1(val){
if(val === '' && !(this.model.ltdgrp.blk.lcrgod == '')){
this.$confirm('Do you really want to reset your manual modifications?','提示',{
cancelButtonText: 'Cannel',
confirmButtonText: 'Ok',
type: 'warning',
showClose:false
}).then(() => {
//yes的执行在这里写
this.model.ltdgrp.blk.lcrgod='';
this.$message({
type: 'success',
message: '删除成功!'
});
}).catch(() => {
//No的功能在这里写
this.model.lttamep.lcrgodamep.modmanflg = 'X'
this.$message({
type: 'info',
message: '已取消'
});
});
}else if(this.model.lttamep.lcrgodamep.modflg == 'X' && this.model.lttamep.lcrgodamep.modmanflg =='X'){
this.$confirm('Please reset modification to replace first','提示',{
confirmButtonText: 'Ok',
cancelButtonText: '',
showCancelButton:false,
type: 'warning',
showClose:false
}).then(() => {
//yes的执行在这里写
this.model.lttamep.lcrgodamep.modmanflg='';
this.flag1=true;
this.flag2=false;
})
}
}
},
methods:{...Event},
created:function(){
}
......
<template>
<div class="eibs-tab">
<c-col :span="11">
<c-col :span="24">
<el-form-item label="单据要求" prop="ltdgrp.blk.lcrdoc">
<c-input
:rows="12"
:disabled="this.flag1"
type="textarea" v-model="model.ltdgrp.blk.lcrdoc" maxlength="65" show-word-limit placeholder="请输入单据要求" ></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="单据要求 Amendment" prop="ltdgrp.blk.lcrdocame">
<c-input type="textarea" v-model="model.ltdgrp.blk.lcrdocame" maxlength="50" show-word-limit placeholder="请输入单据要求 Amendment" ></c-input>
<c-col :span="22">
<el-form-item label="Adding / Deleting Text in current Amendment" prop="lttamep.lcrdocamep.usrblk">
<c-input type="textarea"
:disabled="this.flag2"
v-model="model.lttamep.lcrdocamep.usrblk"
maxlength="1650"
show-word-limit placeholder="请输入Block to enter additional info for Add/Delete"
:rows="22"
></c-input>
</el-form-item>
</c-col>
<c-col :span="2">
<c-button size="small" type="primary" icon="el-icon-search"
:disabled="this.flag2"
@click="showGridPromptDialog('lttamep.lcrdocame.buttxmsel',null,null,{TXT: 'lttamep.lcrdocamep.usrblk'}, {TXT: false},'doxpDialog')">
</c-button>
</c-col>
</c-col>
<c-col :span="11" :offset="1">
<c-col :span="24">
<el-form-item label="Historic Overview" prop="ltdgrp.blk.lcrdocame">
<c-input
:rows="12"
disabled
type="textarea" v-model="model.ltdgrp.blk.lcrdocame" maxlength="50" show-word-limit placeholder="请输入单据要求 Amendment History" ></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<c-checkbox
@change="open"
style=" margin: 0px 0 10px 150px;"
v-model="model.lttamep.lcrdocamep.modflg">Modify Text to Replace</c-checkbox>
</c-col>
<c-col :span="12">
<c-checkbox
@change="open1"
style=" margin: 0px 0 10px 125px;"
v-model="model.lttamep.lcrdocamep.modmanflg">Modify Text Internally</c-checkbox>
</c-col>
<c-col :span="12">
<c-button
style=" margin: 0px 0 10px 150px;"
size="small" type="primary" @click="onLcrdocamepButdif">
Show Diff
</c-button>
</c-col>
<c-col :span="24">
<c-button
style=" margin: 0px 0 10px 150px;"
disabled
size="small" type="primary" @click="onLcrdocamepButadd">
Add Text
</c-button>
</c-col>
<c-col :span="24">
<c-button
style=" margin: 0px 0 10px 150px;"
disabled
size="small" type="primary" icon="el-icon-delete" @click="onLcrdocamepButdel">
Delete text
</c-button>
</c-col>
</c-col>
</div>
</template>
<script>
......@@ -20,10 +98,135 @@ export default {
mixins: [commonProcess],
data(){
return {
flag1:true,
flag2:false,
}
},
watch:{
"model.lttamep.lcrdocamep.modflg":{
immediate:true,
handler(val,oldval){
if(this.model.lttamep.lcrdocamep.modflg == 'X' && this.model.lttamep.lcrdocamep.modmanflg== ''){
this.flag1=false;
this.flag2=true;
this.model.lttamep.lcrdocamep.usrblk='';
}else if(this.model.lttamep.lcrdocamep.modflg == 'X' && this.model.lttamep.lcrdocamep.modmanflg== 'X'){
this.flag1=false;
this.flag2=true;
}else if(this.model.lttamep.lcrdocamep.modflg == '' && this.model.lttamep.lcrdocamep.modmanflg== ''){
this.flag1=true;
this.flag2=false;
}else if(this.model.lttamep.lcrdocamep.modflg == '' && this.model.lttamep.lcrdocamep.modmanflg== 'X'){
this.flag1=false;
this.flag2=true;
this.model.lttamep.lcrdocamep.usrblk='';
}
}
},
"model.lttamep.lcrdocamep.modmanflg":{
immediate:true,
handler(val,oldval){
if(this.model.lttamep.lcrdocamep.modflg == 'X' && this.model.lttamep.lcrdocamep.modmanflg== ''){
this.flag1=false;
this.flag2=true;
this.model.lttamep.lcrdocamep.usrblk='';
}else if(this.model.lttamep.lcrdocamep.modflg == 'X' && this.model.lttamep.lcrdocamep.modmanflg== 'X'){
this.flag1=false;
this.flag2=true;
}else if(this.model.lttamep.lcrdocamep.modflg == '' && this.model.lttamep.lcrdocamep.modmanflg== ''){
this.flag1=true;
this.flag2=false;
}else if(this.model.lttamep.lcrdocamep.modflg == '' && this.model.lttamep.lcrdocamep.modmanflg== 'X'){
this.flag1=false;
this.flag2=true;
this.model.lttamep.lcrdocamep.usrblk='';
}
}
}
},
methods:{...Event,
open(val){
if(val === '' && !(this.model.ltdgrp.blk.lcrdoc == '')){
this.$confirm('Do you really want to reset your manual modifications?','提示',{
cancelButtonText: 'Cannel',
confirmButtonText: 'Ok',
type: 'warning',
showClose:false
}).then(() => {
//yes的执行在这里写
this.model.ltdgrp.blk.lcrdoc='';
this.$message({
type: 'success',
message: '删除成功!'
});
}).catch(() => {
//No的功能在这里写
this.model.lttamep.lcrdocamep.modflg='X'
this.$message({
type: 'info',
message: '已取消'
});
});
}else if(val == 'X' && this.model.lttamep.lcrdocamep.modmanflg =='X'){
this.$confirm('Please reset internal modification first','提示',{
confirmButtonText: 'Ok',
showCancelButton:false,
type: 'warning',
showClose:false
}).then(() => {
//yes的执行在这里写
this.model.lttamep.lcrdocamep.modflg='';
this.flag1=true;
this.flag2=false;
})
}
},
open1(val){
if(val === '' && !(this.model.ltdgrp.blk.lcrdoc == '')){
this.$confirm('Do you really want to reset your manual modifications?','提示',{
cancelButtonText: 'Cannel',
confirmButtonText: 'Ok',
type: 'warning',
showClose:false
}).then(() => {
//yes的执行在这里写
this.model.ltdgrp.blk.lcrdoc='';
this.$message({
type: 'success',
message: '删除成功!'
});
}).catch(() => {
//No的功能在这里写
this.model.lttamep.lcrdocamep.modmanflg = 'X'
this.$message({
type: 'info',
message: '已取消'
});
});
}else if(this.model.lttamep.lcrdocamep.modflg == 'X' && this.model.lttamep.lcrdocamep.modmanflg =='X'){
this.$confirm('Please reset modification to replace first','提示',{
confirmButtonText: 'Ok',
cancelButtonText: '',
showCancelButton:false,
type: 'warning',
showClose:false
}).then(() => {
//yes的执行在这里写
this.model.lttamep.lcrdocamep.modmanflg='';
this.flag1=true;
this.flag2=false;
})
}
}
},
methods:{...Event},
created:function(){
}
......
<template>
<div class="eibs-tab">
<!-- SG000347 : Instructions to Paying/Accepting/Negotiating Bank -->
<c-col :span="20">
<el-form-item label="Instructions to Paying/Accepting/Negotiating Bank" prop="ltdgrp.blk.insbnk">
<c-input
type="textarea"
v-model="model.ltdgrp.blk.insbnk"
maxlength="1000"
:rows="20"
show-word-limit
placeholder="请输入Instructions to Paying/Accepting/Negotiating Bank"
></c-input>
</el-form-item>
</c-col>
</div>
</template>
<script>
import Api from "~/service/Api"
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Lttame/Event"
export default {
inject: ['root'],
props:["model","codes"],
mixins: [commonProcess],
data(){
return {
}
},
methods:{...Event},
created:function(){
}
}
</script>
<style>
</style>
<template>
<div class="eibs-tab">
<c-col :span="12">
<c-col :span="24">
<c-ptap
:model="model"
:argadr="{
title: 'Reimbursement Bank',
grp: 'ltdgrp',
rol: 'rmt',
}"
:noRef="false"
@onSeainf="onSeainf"
@onAplpDet="onBenpDet"
disabled
:disabledRef="true"
:disabledExtkey="true"
>
</c-ptap>
</c-col>
<c-col :span="24">
<el-form-item
label="Account Identification"
prop="ltdgrp.rmt.pts.dftact"
>
<c-select
v-model="model.ltdgrp.rmt.pts.dftact"
style="width: 100%"
placeholder="Please input Account Identification"
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<c-form-item
label="Reimbursing Bank Account Identification"
prop="ltdgrp.rec.rmbact"
>
<c-input
v-model="model.ltdgrp.rec.rmbact"
maxlength="35"
disabled
placeholder="Please input Reimbursing Bank Account Identification"
></c-input>
</c-form-item>
</c-col>
<!-- SF000254 : Charges Definition -->
<c-col :span="24">
<el-form-item label="Charges Definition" prop="ltdgrp.rec.rmbcha">
<c-select
v-model="model.ltdgrp.rec.rmbcha"
style="width: 100%"
placeholder="Please input Charges Definition"
:code="codes.rmbcha"
>
</c-select>
</el-form-item>
</c-col>
<!-- SF000260 : Other Charges -->
<c-col :span="24">
<c-form-item label="Other Charges" prop="ltdgrp.blk.rmbcha">
<c-input
type="textarea"
v-model="model.ltdgrp.blk.rmbcha"
maxlength="35"
show-word-limit
placeholder="Please input Other Charges"
></c-input>
</c-form-item>
</c-col>
<!-- S0000334 : MT747 :77A: -->
<c-col :span="24">
<c-form-item label=": MT747 :77A:" prop="lttp.rmbnar">
<c-input
type="textarea"
v-model="model.lttp.rmbnar"
maxlength="35"
show-word-limit
placeholder="Please input : MT747 :77A:"
></c-input>
</c-form-item>
</c-col>
<!-- SF000365 : Applicable Rules RMB -->
<c-col :span="24">
<el-form-item label="Applicable Rules RMB" prop="ltdgrp.rec.apprulrmb">
<c-select
v-model="model.ltdgrp.rec.apprulrmb"
style="width: 100%"
placeholder="Please input Applicable Rules RMB"
:code="codes.apprulrmb"
>
</c-select>
</el-form-item>
</c-col>
<!-- SF000366 : Date of Authorisation to Reimburse -->
<c-col :span="24">
<el-form-item
label="Date of Authorisation to Reimburse"
prop="ltdgrp.rec.autdat"
>
<c-date-picker
type="date"
v-model="model.ltdgrp.rec.autdat"
style="width: 100%"
disabled
placeholder="Please input Date of Authorisation to Reimburse"
></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/Lttame/Event";
import Ptap from "~/views/Public/Ptap";
export default {
components: { "c-ptap": Ptap },
inject: ["root"],
props: ["model", "codes"],
mixins: [commonProcess],
data() {
return {};
},
methods: { ...Event },
created: function () {},
};
</script>
<style>
</style>
<template>
<div class="eibs-tab">
<c-col :span="11">
<c-col :span="24">
<el-form-item
label="Special Payment Conditions for Beneficiary"
prop="ltdgrp.blk.spcben"
>
<c-input
:rows="12"
:disabled="this.flag1"
type="textarea"
v-model="model.ltdgrp.blk.spcben"
maxlength="65"
show-word-limit
placeholder="请输入单据要求"
></c-input>
</el-form-item>
</c-col>
<c-col :span="22">
<el-form-item
label="Adding / Deleting Text in Current Amendment"
prop="lttamep.spcbenamep.usrblk"
>
<c-input
type="textarea"
:disabled="this.flag2"
v-model="model.lttamep.spcbenamep.usrblk"
maxlength="1650"
show-word-limit
placeholder="请输入Block to enter additional info for Add/Delete"
:rows="22"
></c-input>
</el-form-item>
</c-col>
<c-col :span="2">
<c-button
size="small"
type="primary"
icon="el-icon-search"
:disabled="this.flag2"
@click="
showGridPromptDialog(
'lttamep.spcbenamep.buttxmsel',
null,
null,
{ TXT: 'lttamep.spcbenamep.usrblk' },
{ TXT: false },
'doxpDialog'
)
"
>
</c-button>
</c-col>
</c-col>
<c-col :span="11" :offset="1">
<c-col :span="24">
<el-form-item label="Historic Overview" prop="ltdgrp.blk.spcbename">
<c-input
:rows="12"
disabled
type="textarea"
v-model="model.ltdgrp.blk.spcbename"
maxlength="50"
show-word-limit
placeholder="请输入单据要求 Amendment History"
></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<c-checkbox
style="margin: 0px 0 10px 150px"
@change="open"
v-model="model.lttamep.spcbenamep.modflg"
>Modify Text to Replace</c-checkbox
>
</c-col>
<c-col :span="12">
<c-checkbox
@change="open1"
style="margin: 0px 0 10px 125px"
v-model="model.lttamep.spcbenamep.modmanflg"
>Modify Text Internally</c-checkbox
>
</c-col>
<c-col :span="12">
<c-button
style="margin: 0px 0 10px 150px"
size="small"
type="primary"
@click="onLcrdocamepButdif"
>
Show Diff
</c-button>
</c-col>
<c-col :span="24">
<c-button
style="margin: 0px 0 10px 150px"
disabled
size="small"
type="primary"
@click="onLcrdocamepButadd"
>
Add Text
</c-button>
</c-col>
<c-col :span="24">
<c-button
style="margin: 0px 0 10px 150px"
disabled
size="small"
type="primary"
icon="el-icon-delete"
@click="onLcrdocamepButdel"
>
Delete text
</c-button>
</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/Lttame/Event";
export default {
inject: ["root"],
props: ["model", "codes"],
mixins: [commonProcess],
data() {
return {
flag1: true,
flag2: false,
};
},
watch: {
"model.lttamep.spcbenamep.modflg": {
immediate: true,
handler(val, oldval) {
if (
this.model.lttamep.spcbenamep.modflg == "X" &&
this.model.lttamep.spcbenamep.modmanflg == ""
) {
this.flag1 = false;
this.flag2 = true;
this.model.lttamep.spcbenamep.usrblk = "";
} else if (
this.model.lttamep.spcbenamep.modflg == "X" &&
this.model.lttamep.spcbenamep.modmanflg == "X"
) {
this.flag1 = false;
this.flag2 = true;
} else if (
this.model.lttamep.spcbenamep.modflg == "" &&
this.model.lttamep.spcbenamep.modmanflg == ""
) {
this.flag1 = true;
this.flag2 = false;
} else if (
this.model.lttamep.spcbenamep.modflg == "" &&
this.model.lttamep.spcbenamep.modmanflg == "X"
) {
this.flag1 = false;
this.flag2 = true;
this.model.lttamep.spcbenamep.usrblk = "";
}
},
},
"model.lttamep.spcbenamep.modmanflg": {
immediate: true,
handler(val, oldval) {
if (
this.model.lttamep.spcbenamep.modflg == "X" &&
this.model.lttamep.spcbenamep.modmanflg == ""
) {
this.flag1 = false;
this.flag2 = true;
this.model.lttamep.spcbenamep.usrblk = "";
} else if (
this.model.lttamep.spcbenamep.modflg == "X" &&
this.model.lttamep.spcbenamep.modmanflg == "X"
) {
this.flag1 = false;
this.flag2 = true;
} else if (
this.model.lttamep.spcbenamep.modflg == "" &&
this.model.lttamep.spcbenamep.modmanflg == ""
) {
this.flag1 = true;
this.flag2 = false;
} else if (
this.model.lttamep.spcbenamep.modflg == "" &&
this.model.lttamep.spcbenamep.modmanflg == "X"
) {
this.flag1 = false;
this.flag2 = true;
this.model.lttamep.spcbenamep.usrblk = "";
}
},
},
},
methods: {
...Event,
open(val) {
if (val === "" && !(this.model.ltdgrp.blk.spcben == "")) {
this.$confirm(
"Do you really want to reset your manual modifications?",
"提示",
{
cancelButtonText: "Cannel",
confirmButtonText: "Ok",
type: "warning",
showClose: false,
}
)
.then(() => {
//yes的执行在这里写
this.model.ltdgrp.blk.spcben = "";
this.$message({
type: "success",
message: "删除成功!",
});
})
.catch(() => {
//No的功能在这里写
this.model.lttamep.spcbenamep.modflg = "X";
this.$message({
type: "info",
message: "已取消",
});
});
} else if (val == "X" && this.model.lttamep.spcbenamep.modmanflg == "X") {
this.$confirm("Please reset internal modification first", "提示", {
confirmButtonText: "Ok",
showCancelButton: false,
type: "warning",
showClose: false,
}).then(() => {
//yes的执行在这里写
this.model.lttamep.spcbenamep.modflg = "";
this.flag1 = true;
this.flag2 = false;
});
}
},
open1(val) {
if (val === "" && !(this.model.ltdgrp.blk.spcben == "")) {
this.$confirm(
"Do you really want to reset your manual modifications?",
"提示",
{
cancelButtonText: "Cannel",
confirmButtonText: "Ok",
type: "warning",
showClose: false,
}
)
.then(() => {
//yes的执行在这里写
this.model.ltdgrp.blk.spcben = "";
this.$message({
type: "success",
message: "删除成功!",
});
})
.catch(() => {
//No的功能在这里写
this.model.lttamep.spcbenamep.modmanflg = "X";
this.$message({
type: "info",
message: "已取消",
});
});
} else if (
this.model.lttamep.spcbenamep.modflg == "X" &&
this.model.lttamep.spcbenamep.modmanflg == "X"
) {
this.$confirm("Please reset modification to replace first", "提示", {
confirmButtonText: "Ok",
cancelButtonText: "",
showCancelButton: false,
type: "warning",
showClose: false,
}).then(() => {
//yes的执行在这里写
this.model.lttamep.spcbenamep.modmanflg = "";
this.flag1 = true;
this.flag2 = false;
});
}
},
},
created: function () {},
};
</script>
<style>
</style>
<template>
<div class="eibs-tab">
<c-col :span="11">
<c-col :span="24">
<el-form-item
label="Special Payment Conditions for Bank Only"
prop="ltdgrp.blk.spcrcb"
>
<c-input
:rows="12"
:disabled="this.flag1"
type="textarea"
v-model="model.ltdgrp.blk.spcrcb"
maxlength="65"
show-word-limit
placeholder="请输入单据要求"
></c-input>
</el-form-item>
</c-col>
<c-col :span="22">
<el-form-item
label="Adding / Deleting Text in Current Amendment"
prop="lttamep.spcrcbamep.usrblk"
>
<c-input
type="textarea"
:disabled="this.flag2"
v-model="model.lttamep.spcrcbamep.usrblk"
maxlength="1650"
show-word-limit
placeholder="请输入Block to enter additional info for Add/Delete"
:rows="22"
></c-input>
</el-form-item>
</c-col>
<c-col :span="2">
<c-button
size="small"
type="primary"
icon="el-icon-search"
:disabled="this.flag2"
@click="
showGridPromptDialog(
'lttamep.spcrcbamep.buttxmsel',
null,
null,
{ TXT: 'lttamep.spcrcbamep.usrblk' },
{ TXT: false },
'doxpDialog'
)
"
>
</c-button>
</c-col>
</c-col>
<c-col :span="11" :offset="1">
<c-col :span="24">
<el-form-item label="Historic Overview" prop="ltdgrp.blk.spcrcbame">
<c-input
:rows="12"
disabled
type="textarea"
v-model="model.ltdgrp.blk.spcrcbame"
maxlength="50"
show-word-limit
placeholder="请输入单据要求 Amendment History"
></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<c-checkbox
style="margin: 0px 0 10px 150px"
@change="open"
v-model="model.lttamep.spcrcbamep.modflg"
>Modify Text to Replace</c-checkbox
>
</c-col>
<c-col :span="12">
<c-checkbox
@change="open1"
style="margin: 0px 0 10px 125px"
v-model="model.lttamep.spcrcbamep.modmanflg"
>Modify Text Internally</c-checkbox
>
</c-col>
<c-col :span="12">
<c-button
style="margin: 0px 0 10px 150px"
size="small"
type="primary"
@click="onLcrdocamepButdif"
>
Show Diff
</c-button>
</c-col>
<c-col :span="24">
<c-button
style="margin: 0px 0 10px 150px"
disabled
size="small"
type="primary"
@click="onLcrdocamepButadd"
>
Add Text
</c-button>
</c-col>
<c-col :span="24">
<c-button
style="margin: 0px 0 10px 150px"
disabled
size="small"
type="primary"
icon="el-icon-delete"
@click="onLcrdocamepButdel"
>
Delete text
</c-button>
</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/Lttame/Event";
export default {
inject: ["root"],
props: ["model", "codes"],
mixins: [commonProcess],
data() {
return {
flag1: true,
flag2: false,
};
},
watch: {
"model.lttamep.spcrcbamep.modflg": {
immediate: true,
handler(val, oldval) {
if (
this.model.lttamep.spcrcbamep.modflg == "X" &&
this.model.lttamep.spcrcbamep.modmanflg == ""
) {
this.flag1 = false;
this.flag2 = true;
this.model.lttamep.spcrcbamep.usrblk = "";
} else if (
this.model.lttamep.spcrcbamep.modflg == "X" &&
this.model.lttamep.spcrcbamep.modmanflg == "X"
) {
this.flag1 = false;
this.flag2 = true;
} else if (
this.model.lttamep.spcrcbamep.modflg == "" &&
this.model.lttamep.spcrcbamep.modmanflg == ""
) {
this.flag1 = true;
this.flag2 = false;
} else if (
this.model.lttamep.spcrcbamep.modflg == "" &&
this.model.lttamep.spcrcbamep.modmanflg == "X"
) {
this.flag1 = false;
this.flag2 = true;
this.model.lttamep.spcrcbamep.usrblk = "";
}
},
},
"model.lttamep.spcrcbamep.modmanflg": {
immediate: true,
handler(val, oldval) {
if (
this.model.lttamep.spcrcbamep.modflg == "X" &&
this.model.lttamep.spcrcbamep.modmanflg == ""
) {
this.flag1 = false;
this.flag2 = true;
this.model.lttamep.spcrcbamep.usrblk = "";
} else if (
this.model.lttamep.spcrcbamep.modflg == "X" &&
this.model.lttamep.spcrcbamep.modmanflg == "X"
) {
this.flag1 = false;
this.flag2 = true;
} else if (
this.model.lttamep.spcrcbamep.modflg == "" &&
this.model.lttamep.spcrcbamep.modmanflg == ""
) {
this.flag1 = true;
this.flag2 = false;
} else if (
this.model.lttamep.spcrcbamep.modflg == "" &&
this.model.lttamep.spcrcbamep.modmanflg == "X"
) {
this.flag1 = false;
this.flag2 = true;
this.model.lttamep.spcrcbamep.usrblk = "";
}
},
},
},
methods: {
...Event,
open(val) {
if (val === "" && !(this.model.ltdgrp.blk.spcrcb == "")) {
this.$confirm(
"Do you really want to reset your manual modifications?",
"提示",
{
cancelButtonText: "Cannel",
confirmButtonText: "Ok",
type: "warning",
showClose: false,
}
)
.then(() => {
//yes的执行在这里写
this.model.ltdgrp.blk.spcrcb = "";
this.$message({
type: "success",
message: "删除成功!",
});
})
.catch(() => {
//No的功能在这里写
this.model.lttamep.spcrcbamep.modflg = "X";
this.$message({
type: "info",
message: "已取消",
});
});
} else if (val == "X" && this.model.lttamep.spcrcbamep.modmanflg == "X") {
this.$confirm("Please reset internal modification first", "提示", {
confirmButtonText: "Ok",
showCancelButton: false,
type: "warning",
showClose: false,
}).then(() => {
//yes的执行在这里写
this.model.lttamep.spcrcbamep.modflg = "";
this.flag1 = true;
this.flag2 = false;
});
}
},
open1(val) {
if (val === "" && !(this.model.ltdgrp.blk.spcrcb == "")) {
this.$confirm(
"Do you really want to reset your manual modifications?",
"提示",
{
cancelButtonText: "Cannel",
confirmButtonText: "Ok",
type: "warning",
showClose: false,
}
)
.then(() => {
//yes的执行在这里写
this.model.ltdgrp.blk.spcrcb = "";
this.$message({
type: "success",
message: "删除成功!",
});
})
.catch(() => {
//No的功能在这里写
this.model.lttamep.spcrcbamep.modmanflg = "X";
this.$message({
type: "info",
message: "已取消",
});
});
} else if (
this.model.lttamep.spcrcbamep.modflg == "X" &&
this.model.lttamep.spcrcbamep.modmanflg == "X"
) {
this.$confirm("Please reset modification to replace first", "提示", {
confirmButtonText: "Ok",
cancelButtonText: "",
showCancelButton: false,
type: "warning",
showClose: false,
}).then(() => {
//yes的执行在这里写
this.model.lttamep.spcrcbamep.modmanflg = "";
this.flag1 = true;
this.flag2 = false;
});
}
},
},
created: function () {},
};
</script>
<style>
</style>
<template>
<div class="eContainer">
<!-- <c-bus-button :$pntvm="this"></c-bus-button> -->
<c-function-btn
:handleSubmit="handleSubmit"
:handleCheck="handleCheck"
:handleStash="handleStash"
>
<el-button size="small">流程附言</el-button>
<el-button size="small">交易历史</el-button>
<el-button size="small">备忘录</el-button>
<el-button size="small">影像信息</el-button>
<el-button size="small">保存模板</el-button>
<el-button size="small">使用模板</el-button>
<!-- <el-button size="small">保存模板</el-button> -->
<!-- <el-button size="small">使用模板</el-button> -->
<el-button size="small">制裁信息</el-button>
<el-button size="small">拆分报文</el-button>
<!-- <el-button size="small">拆分报文</el-button> -->
<el-button size="small">智能提示</el-button>
</c-function-btn>
<el-form
......@@ -22,119 +25,117 @@
size="small"
:validate-on-rule-change="false"
>
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="tabClick">
<!--PD000001 -->
<el-tab-pane label="amep" name="amep">
<c-content>
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick">
<!--lttamep PD000001 Amendment -->
<el-tab-pane label="Amendment" name="amep">
<m-amep :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<!--PD000001 -->
<el-tab-pane label="ovwp" name="ovwp">
<c-content>
<!--lttp PD000001 Overview -->
<el-tab-pane label="Overview" name="ovwp">
<m-ovwp :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<!--PD000001 -->
<el-tab-pane label="aamp" name="aamp">
<c-content>
<!--aamp PD000001 Additional Amount -->
<el-tab-pane
label="Additional Amount"
name="aamp"
v-if="model.lttp.aamp.aammod.addamtflg"
>
<m-aamp :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<!--PD000042 -->
<el-tab-pane label="ptyp" name="ptyp">
<c-content>
<!--lttp PD000042 Parties -->
<el-tab-pane label="Parties" name="ptyp">
<m-ptyp :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<!--PD000077 -->
<el-tab-pane label="detp" name="detp">
<!--lttp PD000065 Reimbursement of Transfer L/C -->
<el-tab-pane
label="Reimbursement of Transfer L/C"
name="rbip"
v-if="model.ltdgrp.rec.rmbflg"
>
<m-rbip :model="model" :codes="codes" />
</el-tab-pane>
<!--lttp PD000077 Details -->
<el-tab-pane label="Details" name="detp">
<c-content>
<m-detp :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<!--PD000328 -->
<el-tab-pane label="dogpame" name="dogpame">
<!-- <m-dogpame :model="model" :codes="codes" /> -->
<c-content>
<m-doxpame
:model="model"
:codes="codes"
:recgrp="'ltdgrp'"
:ametyp="'lcrgod'"
/>
</c-content>
<!--lttamep PD000328 Goods (Amend.) -->
<el-tab-pane label="Goods (Amend.)" name="dogpame">
<m-dogpame :model="model" :codes="codes" />
</el-tab-pane>
<!--PD000324 -->
<el-tab-pane label="dorpame" name="dorpame">
<c-content>
<m-doxpame
:model="model"
:codes="codes"
:recgrp="'ltdgrp'"
:ametyp="'lcrdoc'"
/>
</c-content>
<!--lttamep PD000324 Doc's (Amend.) -->
<el-tab-pane label="Doc's (Amend.)" name="dorpame">
<m-dorpame :model="model" :codes="codes" />
</el-tab-pane>
<!--PD000332 -->
<el-tab-pane label="adcpame" name="adcpame">
<c-content>
<m-doxpame
:model="model"
:codes="codes"
:recgrp="'ltdgrp'"
:ametyp="'adlcnd'"
/>
</c-content>
<!--lttamep PD000332 Add. Con. (Amend.) -->
<el-tab-pane label="Add. Con. (Amend.)" name="adcpame">
<m-adcpame :model="model" :codes="codes" />
</el-tab-pane>
<!--PD000169 -->
<el-tab-pane label="lttinf" name="lttinf">
<c-content>
<!--lttp PD000169 Orig. L/C Details -->
<el-tab-pane label="Orig. L/C Details" name="lttinf">
<m-lttinf :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<!--PD000400 -->
<!--setmod PD000000 Settlement -->
<el-tab-pane label="Settlement" name="setpan">
<m-setpan :model="model" :codes="codes" />
</el-tab-pane>
<!--glemod PD000001 -->
<el-tab-pane
v-if="model.ltdgrp.rec.spcrcbflg"
label="Spc.Pay Conditions for Ban"
name="sprpame"
label="Bookings"
name="glepan"
v-if="model.setmod.glemod.gleshwstm"
>
<c-content>
<m-doxpame
:model="model"
:codes="codes"
:recgrp="'ltdgrp'"
:ametyp="'spcrcb'"
/>
</c-content>
<m-glepan :model="model" :codes="codes" />
</el-tab-pane>
<!--PD000396 -->
<!--coninf PD000000 Completion -->
<el-tab-pane label="Completion" name="coninfp">
<m-coninfp :model="model" :codes="codes" />
</el-tab-pane>
<!--trndoc PD000529 &Messages -->
<el-tab-pane label="Messages" name="docpan">
<m-docpan :model="model" :codes="codes" />
</el-tab-pane>
<!--trndoc PD000546 Attachments -->
<el-tab-pane label="Attachments" name="doctre">
<m-doctre :model="model" :codes="codes" />
</el-tab-pane>
<!--lttamep PD000339 Spe. pay conditions Ben (Amend.) -->
<el-tab-pane
v-if="model.ltdgrp.rec.spcbenflg"
label="Spc.Pay Conditions for Ben"
label="Spe. pay conditions Ben(Amend.)"
name="spbpame"
v-if="model.ltdgrp.rec.spcbenflg"
>
<c-content>
<m-doxpame
:model="model"
:codes="codes"
:recgrp="'ltdgrp'"
:ametyp="'spcben'"
/>
</c-content>
<m-spbpame :model="model" :codes="codes" />
</el-tab-pane>
<!--lttamep PD000343 Spe. pay. cond. Bank only(Amend) -->
<el-tab-pane
label="Spe. pay cond. Bank only(Amend)"
name="sprpame"
v-if="model.ltdgrp.rec.spcrcbflg"
>
<m-sprpame :model="model" :codes="codes" />
</el-tab-pane>
<!--lttamep PD000346 Instructions to P, A, N. Bank -->
<el-tab-pane label="Instructions to P,A,N. Bank" name="inspame">
<m-inspame :model="model" :codes="codes" />
</el-tab-pane>
</c-tabs>
</el-form>
<c-grid-ety-prompt-dialog
ref="etyDialog"
:promptData="promptData"
v-on: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>
</div>
</template>
<script>
......@@ -155,13 +156,21 @@ import Dogpame from "./Dogpame";
import Dorpame from "./Dorpame";
import Adcpame from "./Adcpame";
import Lttinf from "./Lttinf";
import Doxpame from "~/views/Public/Doxpame";
import Spbpame from "./Spbpame";
import Sprpame from "./Sprpame";
import Rbip from "./Rbip";
import Inspame from "./Inspame";
import Setpan from "~/views/Public/Setpan";
import Coninfp from "~/views/Public/Coninfp";
import Docpan from "~/views/Public/Docpan";
import Doctre from "~/views/Public/Doctre";
import Glepan from "~/views/Public/Glepan";
export default {
name: "Lttame",
components: {
"m-amep": Amep,
"m-ovwp": Ovwp,
"m-amep": Amep,
"m-aamp": Aamp,
"m-ptyp": Ptyp,
"m-detp": Detp,
......@@ -169,38 +178,54 @@ export default {
"m-dorpame": Dorpame,
"m-adcpame": Adcpame,
"m-lttinf": Lttinf,
"m-doxpame": Doxpame,
"m-spbpame": Spbpame,
"m-sprpame": Sprpame,
"m-rbip": Rbip,
"m-setpan": Setpan,
"m-glepan": Glepan,
"m-coninfp": Coninfp,
"m-docpan": Docpan,
"m-doctre": Doctre,
"m-inspame": Inspame,
},
provide() {
return {
root: this,
};
},
mixins: [commonProcess, commonFuncs], // 里面包含了Default、Check等的公共处理
mixins: [commonProcess,commonFuncs], // 里面包含了Default、Check等的公共处理
data() {
return {
tabVal: "amep",
trnName: "lttame",
trnType: "",
model: new Lttame().data,
checkRules: Check,
defaultRules: Default,
pattern: Pattern,
rules: null,
codes: { ...CodeTable },
codes: {
...CodeTable,
},
};
},
methods: {
tabClick() {},
myTabClick(tab) {
this.tabClick(tab);
/**
* do it yourself
**/
},
},
created: async function () {
console.log("进入lttame交易");
let rtnmsg = await this.init({});
if (rtnmsg.respCode == SUCCESS) {
this.updateModel(rtnmsg.data);
Utils.copyValueFromVO(this.model, rtnmsg.data);
if (this.isInDisplay) {
this.restoreDisplay();
}
//TODO 处理数据逻辑
} else {
this.$notify.error({ title: "错误", message: "服务请求失败!" });
}
......
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