Commit fee21a3b by WH

letnot

parent b4058a00
......@@ -88,9 +88,9 @@ export default {
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"ledgrp.rec.opndat":[
{type: "date", required: false, message: "输入正确的日期"}
],
// "ledgrp.rec.opndat":[
// {type: "date", required: false, message: "输入正确的日期"}
// ],
"ledgrp.rec.preadvdt":[
{type: "date", required: false, message: "输入正确的日期"}
],
......@@ -109,9 +109,9 @@ export default {
"ledgrp.rec.shpdat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"ledgrp.rec.advdat":[
{type: "date", required: false, message: "输入正确的日期"}
],
// "ledgrp.rec.advdat":[
// {type: "date", required: false, message: "输入正确的日期"}
// ],
"ledgrp.iss.pts.adrblk":[
{type: "string", required: true, message: "必输项"},
{max: 140,message:"长度不能超过140"}
......
......@@ -4,7 +4,7 @@
<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 v-model="max2cur" style="width:100%" placeholder="请选择附加金额" disabled>
</c-select>
</el-form-item>
</c-col>
......@@ -18,19 +18,19 @@
<c-col :span="13">
<el-form-item label="Open Add. Amount" prop="ledgrp.cbs.opn2.cur">
<c-select v-model="model.ledgrp.cbs.opn2.cur" style="width:100%" placeholder="请选择Open Add. Amount" disabled>
<c-select v-model="opn2cur" style="width:100%" placeholder="请选择Open Add. Amount" 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-currency v-model="model.ledgrp.cbs.opn2.amt" placeholder="请输入Open Add. Amount" disabled></c-input-currency>
<c-input-currency v-model="opn2amt" placeholder="请输入Open Add. Amount" disabled></c-input-currency>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="Covered" prop="ledgrp.blk.addamtcov">
<c-input type="textarea" v-model="model.ledgrp.blk.addamtcov" maxlength="140" show-word-limit
<c-input type="textarea" v-model="getBlkAddamtcov" maxlength="140" show-word-limit
placeholder="请输入Covered" rows="4"></c-input>
</el-form-item>
</c-col>
......@@ -50,6 +50,26 @@ export default {
}
},
computed:{
max2cur(){
this.model.ledgrp.cbs.max2.cur = this.model.ledgrp.cbs.max.cur
return this.model.ledgrp.cbs.max2.cur
},
opn2cur(){
this.model.ledgrp.cbs.opn2.cur = this.model.ledgrp.cbs.max.cur
return this.model.ledgrp.cbs.opn2.cur
},
opn2amt(){
this.model.ledgrp.cbs.opn2.amt = parseFloat(this.model.ledgrp.cbs.max2.amt).toFixed(3)
return this.model.ledgrp.cbs.opn2.amt
},
getBlkAddamtcov(){
this.model.ledgrp.blk.addamtcov = this.model.ledgrp.cbs.opn2.cur + " " +this.model.ledgrp.cbs.opn2.amt
return this.model.ledgrp.blk.addamtcov
}
}
}
</script>
<style>
......
......@@ -198,7 +198,7 @@
<c-col :span="13">
<el-form-item label="信用证最大金额" prop="ledgrp.cbs.max.cur">
<c-select
v-model="model.ledgrp.cbs.max.cur"
v-model="maxcur"
style="width: 100%"
placeholder="请选择币种"
:code="codes.curtxt1"
......@@ -211,7 +211,7 @@
<el-form-item label="" label-width="5px" prop="ledgrp.cbs.max.amt">
<c-input-currency
disabled
v-model="model.ledgrp.cbs.max.amt"
v-model="maxamt"
placeholder="请输入最大金额"
class="m-input-currency"
></c-input-currency>
......@@ -445,6 +445,25 @@ export default {
data() {
return {}
},
computed:{
maxcur(){
this.model.ledgrp.cbs.max.cur = this.model.ledgrp.cbs.nom1.cur
return this.model.ledgrp.cbs.max.cur
},
maxamt() {
this.model.ledgrp.cbs.max.amt = parseFloat(this.model.ledgrp.cbs.nom1.amt * (1 + this.model.ledgrp.rec.nomtop / 100)).toFixed(2)
return this.model.ledgrp.cbs.max.amt
},
max2cur(){
this.model.ledgrp.cbs.max2.cur = this.model.ledgrp.cbs.max.cur
return this.model.ledgrp.cbs.max2.cur
},
getBlkAddamtcov(){
this.model.ledgrp.blk.addamtcov = this.model.ledgrp.cbs.opn2.cur + " " +this.model.ledgrp.cbs.opn2.amt
return this.model.ledgrp.blk.addamtcov
}
}
}
</script>
<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