Commit 6bda1321 by WH

修复letdrw缺陷

parent 6141521e
...@@ -124,7 +124,7 @@ export default class Letdrw { ...@@ -124,7 +124,7 @@ export default class Letdrw {
}, },
max2: { max2: {
cur: '', cur: '',
amt: '' amt: '0.000'
} }
}, },
iss: { iss: {
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<c-col :span="13"> <c-col :span="13">
<el-form-item label="附加金额" prop="ledgrp.cbs.max2.cur"> <el-form-item label="附加金额" prop="ledgrp.cbs.max2.cur">
<c-select <c-select
v-model="model.ledgrp.cbs.max2.cur" v-model="max2cur"
style="width: 100%" style="width: 100%"
placeholder="请选择附加金额" placeholder="请选择附加金额"
disabled disabled
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
<c-col :span="13"> <c-col :span="13">
<el-form-item label="开立附加金额" prop="ledgrp.cbs.opn2.cur"> <el-form-item label="开立附加金额" prop="ledgrp.cbs.opn2.cur">
<c-select <c-select
v-model="model.ledgrp.cbs.opn2.cur" v-model="opn2cur"
style="width: 100%" style="width: 100%"
placeholder="请选择币种" placeholder="请选择币种"
disabled disabled
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
<c-col :span="11"> <c-col :span="11">
<el-form-item label="" label-width="5px" prop="ledgrp.cbs.opn2.amt"> <el-form-item label="" label-width="5px" prop="ledgrp.cbs.opn2.amt">
<c-input <c-input
v-model="model.ledgrp.cbs.opn2.amt" v-model="opn2amt"
placeholder="请输入" placeholder="请输入"
disabled disabled
></c-input> ></c-input>
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
<el-form-item label="覆盖" prop="ledgrp.blk.addamtcov"> <el-form-item label="覆盖" prop="ledgrp.blk.addamtcov">
<c-input <c-input
type="textarea" type="textarea"
v-model="model.ledgrp.blk.addamtcov" v-model="getBlkAddamtcov"
maxlength="140" maxlength="140"
show-word-limit show-word-limit
placeholder="请输入" placeholder="请输入"
...@@ -70,6 +70,28 @@ export default { ...@@ -70,6 +70,28 @@ export default {
}, },
methods: { }, methods: { },
created: function () {}, created: function () {},
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> </script>
<style></style> <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