Commit a7c23672 by liaoxing

litame 二轮开发 界面联动、初始化、报文面函预览功能

parent 3f1200a7
......@@ -82,6 +82,10 @@ export default class Litame {
max2: {
cur: '',
amt: '0.00',
},
opn2: {
cur: '',
amt: '0',
}
}
},
......@@ -162,6 +166,9 @@ export default class Litame {
ini: {
pts: new Pts().data,
},
cmb: {
pts: new Pts().data,
},
cbs: {
opn2: {
cur: '',
......@@ -206,7 +213,7 @@ export default class Litame {
prepers18: '',
amenbr: '',
nartxt: '',
addamt: '',
addamt: '0',
amecur: '',
newshpdat: '',
newamt: '',
......
......@@ -20,7 +20,7 @@
prop="lidgrp.cbs.max2.amt"
>
<c-input
v-model="model.lidgrp.cbs.max2.amt"
v-model="max2amt"
style="text-align: left; width: 100%"
placeholder="请输入附加金额"
disabled
......@@ -48,7 +48,7 @@
prop="lidgrp.cbs.opn2.amt"
>
<c-input
v-model="model.lidgrp.cbs.opn2.amt"
v-model="opn2amt"
style="text-align: left; width: 100%"
placeholder="请输入附加金额余额"
disabled
......@@ -60,7 +60,7 @@
<el-form-item label="39C场" prop="lidgrp.blk.addamtcov">
<c-input
type="textarea"
v-model="model.lidgrp.blk.addamtcov"
v-model="blkaddamtcov"
maxlength="35"
:rows="4"
show-word-limit
......@@ -84,6 +84,24 @@ export default {
},
methods: {},
created: function () {},
computed: {
opn2amt(){
this.model.lidgrp.cbs.opn2.amt = parseInt(this.model.oldlidgrp.cbs.opn2.amt)+
parseInt(this.model.lidgrp.cbs.max2.amt)-
parseInt(this.model.oldlidgrp.cbs.max2.amt)
return this.model.lidgrp.cbs.opn2.amt
},
max2amt(){
this.model.lidgrp.cbs.max2.amt = this.model.swiadd.addamt
return this.model.lidgrp.cbs.max2.amt
},
blkaddamtcov(){
if(this.model.litp.aamp.aammod.addamtflg==='X'){
this.model.lidgrp.blk.addamtcov = this.model.lidgrp.cbs.max2.cur + '' + this.model.lidgrp.cbs.max2.amt
return this.model.lidgrp.blk.addamtcov
}
}
}
};
</script>
<style>
......
......@@ -400,7 +400,7 @@
<el-form-item label="附加金额覆盖" prop="swiadd.addamtcov">
<c-input
type="textarea"
v-model="model.swiadd.addamtcov"
v-model="swiaddaddamtcov"
maxlength="140"
show-word-limit
placeholder="请输入附加金额"
......@@ -452,7 +452,15 @@ export default {
litamepengamt(){
this.model.litamep.engamt = new Number( parseFloat(new Number(this.model.swiadd.ameamt) + new Number(this.model.swiadd.newamt) * new Number(this.model.swiadd.newnomtop)/100).toFixed(2) );
return this.model.litamep.engamt
}
},
swiaddaddamtcov(){
if(this.model.litp.aamp.aammod.addamtflg==='X'){
this.model.swiadd.addamtcov = this.model.lidgrp.cbs.max2.cur + '' + this.model.swiadd.addamt
return this.model.swiadd.addamtcov
}else{
this.model.swiadd.addamt = '0.00'
}
},
},
created: function () {},
};
......
......@@ -372,16 +372,30 @@ export default {
this.flag4 = true;
this.flag5 = false;
this.flag6 = true;
} //Confirming Bank
} //Confirming Bank 保兑行
else if (val == 'C') {
this.flag4 = true;
this.flag5 = true;
this.flag6 = true;
} //Specified Bank
// this.model.lidgrp.avb.pts.adrblk = null
// this.model.lidgrp.avb.pts.extkey = null
} //Specified Bank 指定银行
else if (val == 'S') {
this.flag4 = true;
this.flag5 = false;
this.flag6 = false;
this.flag6 = true;
}
//Reimbursing Bank 偿付行
else if (val == 'R') {
this.flag4 = true;
this.flag5 = true;
this.flag6 = true;
}
//Transferring Bank 转让行
else if (val == 'T') {
this.flag4 = true;
this.flag5 = true;
this.flag6 = true;
}
},
},
......
......@@ -256,18 +256,18 @@
<c-col :span="24">
<el-form-item label="附加当事人" >
<c-edit-table :model="model" v-bind="ptsaddg">
<el-table-column label="操作" align="center">
<template>
<el-button
size="mini"
type="primary"
icon="el-icon-info"
></el-button
>
</template>
</el-table-column>
</c-edit-table>
<c-edit-table :model="model" v-bind="ptsaddg">
<el-table-column label="操作" align="center">
<template>
<el-button
size="mini"
type="primary"
icon="el-icon-info"
></el-button
>
</template>
</el-table-column>
</c-edit-table>
</el-form-item>
</c-col>
......
......@@ -602,7 +602,7 @@ const CodeTable = {
avbwth: [
{ label: "开证行", value: "I" },
{ label: "指定银行", value: "S" },
{ label: "保行", value: "C" },
{ label: "保行", value: "C" },
{ label: "任何银行", value: "O" },
{ label: "偿付行", value: "R" },
{ label: "通知行", value: "A" },
......
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