Commit fc4abf0c by lianyang

letopn/not/drw/ame/amc交易金额浮动、附加金额页加回车触发失焦点事件

parent 39cd8ee8
...@@ -190,7 +190,7 @@ export default { ...@@ -190,7 +190,7 @@ export default {
"ledgrp.cbs.max2.amt":[ "ledgrp.cbs.max2.amt":[
{type: "strig", required: false, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"}, {max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" } {pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
], ],
......
...@@ -80,6 +80,7 @@ ...@@ -80,6 +80,7 @@
<c-form-item label="Amount Tolerance +/-" prop="ledgrp.rec.nomtop"> <c-form-item label="Amount Tolerance +/-" prop="ledgrp.rec.nomtop">
<c-input v-model.number="model.ledgrp.rec.nomtop" maxlength="2" style="width: 100%" <c-input v-model.number="model.ledgrp.rec.nomtop" maxlength="2" style="width: 100%"
placeholder="请输入Amount Tolerance - Positive" placeholder="请输入Amount Tolerance - Positive"
@keyup.enter.native="$event.target.blur()"
class="m-input-currency"></c-input> class="m-input-currency"></c-input>
</c-form-item> </c-form-item>
</c-col> </c-col>
...@@ -87,6 +88,7 @@ ...@@ -87,6 +88,7 @@
<el-form-item label="" label-width="5px" prop="ledgrp.rec.nomton"> <el-form-item label="" label-width="5px" prop="ledgrp.rec.nomton">
<c-input v-model.number="model.ledgrp.rec.nomton" maxlength="2" style="width: 95%" <c-input v-model.number="model.ledgrp.rec.nomton" maxlength="2" style="width: 95%"
placeholder="请输入Amount Tolerance - Negative" placeholder="请输入Amount Tolerance - Negative"
@keyup.enter.native="$event.target.blur()"
class="m-input-currency"></c-input> class="m-input-currency"></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
......
...@@ -128,6 +128,7 @@ ...@@ -128,6 +128,7 @@
<c-input v-model.number="model.ledgrp.rec.nomtop" maxlength="2" style="width: 100%" <c-input v-model.number="model.ledgrp.rec.nomtop" maxlength="2" style="width: 100%"
placeholder="请输入Amount Tolerance - Positive" placeholder="请输入Amount Tolerance - Positive"
class="m-input-currency" class="m-input-currency"
@keyup.enter.native="$event.target.blur()"
disabled></c-input> disabled></c-input>
</c-form-item> </c-form-item>
</c-col> </c-col>
...@@ -135,6 +136,7 @@ ...@@ -135,6 +136,7 @@
<el-form-item label="" label-width="5px" prop="ledgrp.rec.nomton"> <el-form-item label="" label-width="5px" prop="ledgrp.rec.nomton">
<c-input v-model.number="model.ledgrp.rec.nomton" maxlength="2" style="width: 95%" <c-input v-model.number="model.ledgrp.rec.nomton" maxlength="2" style="width: 95%"
placeholder="请输入Amount Tolerance - Negative" placeholder="请输入Amount Tolerance - Negative"
@keyup.enter.native="$event.target.blur()"
class="m-input-currency" class="m-input-currency"
disabled></c-input> disabled></c-input>
</el-form-item> </el-form-item>
......
...@@ -161,6 +161,7 @@ ...@@ -161,6 +161,7 @@
maxlength="2" maxlength="2"
style="width: 100%" style="width: 100%"
placeholder="请输入Amount Tolerance - Positive" placeholder="请输入Amount Tolerance - Positive"
@keyup.enter.native="$event.target.blur()"
class="m-input-currency" class="m-input-currency"
></c-input> ></c-input>
</c-form-item> </c-form-item>
...@@ -172,6 +173,7 @@ ...@@ -172,6 +173,7 @@
maxlength="2" maxlength="2"
style="width: 100%" style="width: 100%"
placeholder="请输入Amount Tolerance - Negative" placeholder="请输入Amount Tolerance - Negative"
@keyup.enter.native="$event.target.blur()"
class="m-input-currency" class="m-input-currency"
></c-input> ></c-input>
</el-form-item> </el-form-item>
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
<c-col :span="11"> <c-col :span="11">
<el-form-item label="" label-width="5px" prop="ledgrp.cbs.max2.amt"> <el-form-item label="" label-width="5px" prop="ledgrp.cbs.max2.amt">
<c-input v-model="model.ledgrp.cbs.max2.amt" placeholder="请输入Additional Amount" <c-input v-model="model.ledgrp.cbs.max2.amt" placeholder="请输入Additional Amount"
@keyup.enter.native="$event.target.blur()"></c-input> @keyup.enter.native="$event.target.blur()"></c-input>
<!-- @keyup.enter.native="$event.target.blur()" :回车触发失去焦点发生的事件 --> <!-- @keyup.enter.native="$event.target.blur()" :回车触发失去焦点发生的事件 -->
</el-form-item> </el-form-item>
</c-col> </c-col>
......
...@@ -156,6 +156,7 @@ ...@@ -156,6 +156,7 @@
maxlength="2" maxlength="2"
style="width: 100%" style="width: 100%"
placeholder="请输入Amount Tolerance - Positive" placeholder="请输入Amount Tolerance - Positive"
@keyup.enter.native="$event.target.blur()"
class="m-input-currency" class="m-input-currency"
></c-input> ></c-input>
</c-form-item> </c-form-item>
...@@ -167,6 +168,7 @@ ...@@ -167,6 +168,7 @@
maxlength="2" maxlength="2"
style="width: 100%" style="width: 100%"
placeholder="请输入Amount Tolerance - Negative" placeholder="请输入Amount Tolerance - Negative"
@keyup.enter.native="$event.target.blur()"
class="m-input-currency" class="m-input-currency"
></c-input> ></c-input>
</el-form-item> </el-form-item>
......
...@@ -166,8 +166,10 @@ ...@@ -166,8 +166,10 @@
maxlength="2" maxlength="2"
style="width: 100%" style="width: 100%"
placeholder="请输入Amount Tolerance - Positive" placeholder="请输入Amount Tolerance - Positive"
@keyup.enter.native="$event.target.blur()"
class="m-input-currency" class="m-input-currency"
></c-input> ></c-input>
<!-- @keyup.enter.native="$event.target.blur()"回车触发失去焦点后触发的事件 -->
</c-form-item> </c-form-item>
</c-col> </c-col>
<c-col :span="7"> <c-col :span="7">
...@@ -177,6 +179,7 @@ ...@@ -177,6 +179,7 @@
maxlength="2" maxlength="2"
style="width: 100%" style="width: 100%"
placeholder="请输入Amount Tolerance - Negative" placeholder="请输入Amount Tolerance - Negative"
@keyup.enter.native="$event.target.blur()"
class="m-input-currency" class="m-input-currency"
></c-input> ></c-input>
</el-form-item> </el-form-item>
......
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