Commit dbbd4b6e by WH

letdrw交易信用证最大金额联动缺陷修复

parent 92593dff
...@@ -78,10 +78,10 @@ let checkObj = { ...@@ -78,10 +78,10 @@ let checkObj = {
"ledgrp.cbs.max.amt":[ // "ledgrp.cbs.max.amt":[
{ type: 'number', required: false, message: "必输项1" }, // { type: 'number', required: false, message: "必输项1" },
{ pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" } // { pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
], // ],
"letp.issp.ptsget.sdamod.dadsnd":[ "letp.issp.ptsget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"} {max: 16,message:"长度不能超过16"}
......
...@@ -173,7 +173,7 @@ ...@@ -173,7 +173,7 @@
<c-col :span="13"> <c-col :span="13">
<el-form-item label="信用证最大金额" prop="ledgrp.cbs.max.cur"> <el-form-item label="信用证最大金额" prop="ledgrp.cbs.max.cur">
<c-select <c-select
v-model="model.ledgrp.cbs.max.cur" v-model="maxcur"
style="width: 100%" style="width: 100%"
placeholder="请选择币种" placeholder="请选择币种"
:code="codes.curtxt1" :code="codes.curtxt1"
...@@ -186,7 +186,7 @@ ...@@ -186,7 +186,7 @@
<el-form-item label="" label-width="5px" prop="ledgrp.cbs.max.amt"> <el-form-item label="" label-width="5px" prop="ledgrp.cbs.max.amt">
<c-input <c-input
disabled disabled
v-model="model.ledgrp.cbs.max.amt" v-model="maxamt"
placeholder="请输入最大金额" placeholder="请输入最大金额"
class="m-input-currency" class="m-input-currency"
></c-input> ></c-input>
...@@ -446,6 +446,14 @@ export default { ...@@ -446,6 +446,14 @@ export default {
}, },
}, },
created: function () {}, created: function () {},
computed:{
maxcur(){
return this.model.ledgrp.cbs.nom1.cur
},
maxamt(){
return this.model.ledgrp.cbs.nom1.amt * (1+this.model.ledgrp.rec.nomtop/100)
}
}
} }
</script> </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