Commit e47c1a1f by lianyang

letopn/not/drw/dav/can/ame/amc回车触发默认事件改为触发失焦点触发的事件

parent 5e29a1f1
......@@ -18,6 +18,7 @@ export default {
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
onSeainf(){},
async onBenpDet(){
let rtnmsg = await this.executeRule("benp.det")
if(rtnmsg.respCode == SUCCESS)
......
......@@ -495,7 +495,7 @@ export default {
// {max: 3,message:"长度不能超过3"}
],
"ledgrp.cbs.nom1.amt": [
{ required: true, message: "必输项" },
{ type: 'string', required: true, message: "必输项" },
{ max: 18, message: "整数位不能超过14位" },
{ pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
......
......@@ -12,8 +12,7 @@
<c-col :span="11">
<el-form-item label="" label-width="5px" prop="ledgrp.cbs.max2.amt">
<c-input v-model="model.ledgrp.cbs.max2.amt" placeholder="请输入Additional Amount"
@keyup.enter.native="
defaultFunction('ledgrp.cbs.max2.amt', model.ledgrp.cbs.max2.amt)"></c-input>
@keyup.enter.native="$event.target.blur()"></c-input>
</el-form-item>
</c-col>
......
......@@ -207,7 +207,7 @@
maxlength="3"
placeholder="请输入Confirmation"
:code="codes.curtxt1"
@keyup.enter.native="cnfCurEvent" style="width:100%"
style="width:100%"
disabled
></c-select>
</el-form-item>
......@@ -218,7 +218,7 @@
v-model="model.ledgrp.cbs.cnf.amt"
class="m-input-currency"
placeholder="请输入Balance"
@keyup.enter.native="defaultFunction('ledgrp.cbs.cnf.amt', model.ledgrp.cbs.cnf.amt)"
@keyup.enter.native="$event.target.blur()"
></c-input>
</el-form-item>
</c-col>
......@@ -228,7 +228,7 @@
<c-input
v-model="model.ledgrp.rec.partcon"
placeholder="请输入Partial Confirmation"
@keyup.enter.native="defaultFunction('ledgrp.rec.partcon', model.ledgrp.rec.partcon)"
@keyup.enter.native="$event.target.blur()"
></c-input>
<!-- <span>%</span> -->
<template slot="footer">%</template>
......@@ -385,13 +385,6 @@ export default {
},
methods: {
...Event,
cnfCurEvent() {
this.executeDefault("didgrp.cbs.cnf.cur").then((res) => {
if ((res.respCode == SUCCESS)) {
Utils.copyValueFromVO(this.model, res.data);
}
});
},
},
created: function () {},
}
......
......@@ -57,16 +57,15 @@
<c-col :span="12">
<el-form-item label="Nominal Amount" prop="ledgrp.cbs.nom1.cur">
<c-select v-model="model.ledgrp.cbs.nom1.cur" style="width: 100%" placeholder="请选择币种"
@keyup.enter.native="nom1CurEvent" :code="codes.curtxt1">
:code="codes.curtxt1">
</c-select>
</el-form-item>
</c-col>
<c-col :span="7">
<el-form-item label="" label-width="5px" prop="ledgrp.cbs.nom1.amt">
<c-input-currency v-model="model.ledgrp.cbs.nom1.amt" style="text-align: left; width: 95%"
placeholder="请输入Nominal Amount" @keyup.enter.native="
defaultFunction('ledgrp.cbs.nom1.amt', model.ledgrp.cbs.nom1.amt)
" ></c-input-currency>
placeholder="请输入Nominal Amount" @keyup.enter.native="$event.target.blur()" ></c-input-currency>
<!-- @keyup.enter.native="$event.target.blur()" :回车触发失去焦点发生的事件 -->
<!-- <c-input-currency v-model="model.ledgrp.cbs.nom1.amt" style="text-align: left; width: 100%"
placeholder="请输入Nominal Amount"></c-input-currency> -->
</el-form-item>
......@@ -690,13 +689,6 @@ export default {
},
},
methods: { ...Event,
nom1CurEvent() {
this.executeDefault("ledgrp.cbs.nom1.cur").then((res) => {
if ((res.respCode == SUCCESS)) {
Utils.copyValueFromVO(this.model, res.data);
}
});
},
apprulChange(v) {
if (v !== "OTHR") {
this.model.ledgrp.rec.apprultxt = "";
......
......@@ -20,9 +20,7 @@
placeholder="请输入Additional Amount"
class="m-input-currency"
disabled
@keyup.enter.native="
defaultFunction('ledgrp.cbs.max2.amt', model.ledgrp.cbs.max2.amt)
"
@keyup.enter.native="$event.target.blur()"
></c-input>
</el-form-item>
</c-col>
......
......@@ -368,12 +368,7 @@
placeholder="请输入"
:disabled="model.ledgrp.rec.avbby == 'P'"
maxlength="4"
@keyup.enter.native="
defaultFunction(
'ledgrp.rec.tenmaxday',
model.ledgrp.rec.tenmaxday
)
"
@keyup.enter.native="$event.target.blur()"
></c-input>
</el-form-item>
</c-col>
......
......@@ -100,7 +100,7 @@
<c-col :span="12">
<el-form-item label="Nominal Amount" prop="ledgrp.cbs.nom1.cur">
<c-select v-model="model.ledgrp.cbs.nom1.cur" style="width: 100%" placeholder="请选择币种"
@keyup.enter.native="nom1CurEvent" :code="codes.curtxt1"
:code="codes.curtxt1"
disabled>
</c-select>
</el-form-item>
......@@ -108,10 +108,9 @@
<c-col :span="7">
<el-form-item label="" label-width="5px" prop="ledgrp.cbs.nom1.amt">
<c-input-currency v-model="model.ledgrp.cbs.nom1.amt" style="text-align: left; width: 95%"
placeholder="请输入Nominal Amount" @keyup.enter.native="
defaultFunction('ledgrp.cbs.nom1.amt', model.ledgrp.cbs.nom1.amt)
"
placeholder="请输入Nominal Amount" @keyup.enter.native="$event.target.blur()"
disabled></c-input-currency>
<!-- @keyup.enter.native="$event.target.blur()" :回车触发失去焦点发生的事件 -->
<!-- <c-input-currency v-model="model.ledgrp.cbs.nom1.amt" style="text-align: left; width: 100%"
placeholder="请输入Nominal Amount"></c-input-currency> -->
</el-form-item>
......@@ -408,13 +407,6 @@ export default {
...Event,
onSeainf(){},
onExtkey(){},
nom1CurEvent() {
this.executeDefault('ledgrp.cbs.nom1.cur').then((res) => {
if (res.respCode == SUCCESS) {
Utils.copyValueFromVO(this.model, res.data)
}
})
},
apprulChange(v) {
if (v !== "OTHR") {
this.model.ledgrp.rec.apprultxt = "";
......
......@@ -40,7 +40,6 @@
v-model="model.ledgrp.cbs.nom1.cur"
style="width: 100%"
placeholder="请选择币种"
@keyup.enter.native="nom1CurEvent"
:code="codes.curtxt1"
disabled
>
......@@ -54,14 +53,10 @@
style="text-align: left; width: 100%"
class="m-input-currency"
placeholder="请输入信用证金额"
@keyup.enter.native="
defaultFunction(
'ledgrp.cbs.nom1.amt',
model.ledgrp.cbs.nom1.amt
)
"
@keyup.enter.native="$event.target.blur()"
disabled
></c-input-currency>
<!-- @keyup.enter.native="$event.target.blur()" :回车触发失去焦点发生的事件 -->
</el-form-item>
</c-col>
......@@ -606,13 +601,6 @@ export default {
},
methods: {
...Event,
nom1CurEvent() {
this.executeDefault('ledgrp.cbs.nom1.cur').then((res) => {
if (res.respCode == SUCCESS) {
Utils.copyValueFromVO(this.model, res.data)
}
})
},
},
created: function () {},
}
......
......@@ -67,7 +67,6 @@
v-model="model.ledgrp.cbs.nom1.cur"
style="width: 100%"
placeholder="请选择币种"
@keyup.enter.native="nom1CurEvent"
:code="codes.cur"
disabled
>
......@@ -81,15 +80,11 @@
style="text-align: left; width: 100%"
class="m-input-currency"
placeholder="请输入信用证金额"
@keyup.enter.native="
defaultFunction(
'ledgrp.cbs.nom1.amt',
model.ledgrp.cbs.nom1.amt
)
"
@keyup.enter.native="$event.target.blur()"
disabled
></c-input-currency>
</el-form-item>
<!-- @keyup.enter.native="$event.target.blur()" :回车触发失去焦点发生的事件 -->
</el-form-item>
</c-col>
<c-col :span="5">
......
......@@ -18,11 +18,10 @@
<c-input
v-model="model.ledgrp.cbs.max2.amt"
placeholder="请输入Additional Amount"
@keyup.enter.native="
defaultFunction('ledgrp.cbs.max2.amt', model.ledgrp.cbs.max2.amt)
"
@keyup.enter.native="$event.target.blur()"
></c-input>
</el-form-item>
<!-- @keyup.enter.native="$event.target.blur()" :回车触发失去焦点发生的事件 -->
</el-form-item>
</c-col>
<c-col :span="13">
......
......@@ -361,13 +361,9 @@
placeholder="请输入"
:disabled="model.ledgrp.rec.avbby == 'P'"
maxlength="4"
@keyup.enter.native="
defaultFunction(
'ledgrp.rec.tenmaxday',
model.ledgrp.rec.tenmaxday
)
"
@keyup.enter.native="$event.target.blur()"
></c-input>
<!-- @keyup.enter.native="$event.target.blur()" :回车触发失去焦点发生的事件 -->
</el-form-item>
</c-col>
</c-col>
......
......@@ -37,7 +37,6 @@
v-model="model.ledgrp.cbs.nom1.cur"
style="width: 100%"
placeholder="请选择币种"
@keyup.enter.native="nom1CurEvent"
:code="codes.curtxt1"
disabled
>
......@@ -51,14 +50,10 @@
style="text-align: left; width: 100%"
class="m-input-currency"
placeholder="请输入信用证金额"
@keyup.enter.native="
defaultFunction(
'ledgrp.cbs.nom1.amt',
model.ledgrp.cbs.nom1.amt
)
"
@keyup.enter.native="$event.target.blur()"
disabled
></c-input-currency>
<!-- @keyup.enter.native="$event.target.blur()" :回车触发失去焦点发生的事件 -->
</el-form-item>
</c-col>
......@@ -629,13 +624,6 @@ export default {
},
methods: {
...Event,
nom1CurEvent() {
this.executeDefault('ledgrp.cbs.nom1.cur').then((res) => {
if (res.respCode == SUCCESS) {
Utils.copyValueFromVO(this.model, res.data)
}
})
},
},
created: function () {},
}
......
......@@ -121,7 +121,6 @@
v-model="model.ledgrp.cbs.nom1.cur"
style="width: 100%"
placeholder="请选择币种"
@keyup.enter.native="nom1CurEvent"
:code="codes.curtxt1"
>
</c-select>
......@@ -139,12 +138,7 @@
v-model="model.ledgrp.cbs.nom1.amt"
style="text-align: left; width: 100%"
placeholder="请输入信用证金额"
@keyup.enter.native="
defaultFunction(
'ledgrp.cbs.nom1.amt',
model.ledgrp.cbs.nom1.amt
)
"
@keyup.enter.native="$event.target.blur()"
></c-input-currency>
</el-form-item>
</c-col>
......@@ -1108,13 +1102,6 @@ export default {
...Event,
onSeainf(){},
onExtkey(){},
nom1CurEvent() {
this.executeDefault('ledgrp.cbs.nom1.cur').then((res) => {
if (res.respCode == SUCCESS) {
Utils.copyValueFromVO(this.model, res.data)
}
})
},
apprulChange(v) {
if (v !== 'OTHR') {
this.model.ledgrp.rec.apprultxt = ''
......
......@@ -11,9 +11,9 @@
<c-col :span="11">
<el-form-item label="" label-width="5px" prop="ledgrp.cbs.max2.amt">
<c-input v-model="model.ledgrp.cbs.max2.amt" placeholder="请输入Additional Amount"
@keyup.enter.native="
defaultFunction('ledgrp.cbs.max2.amt', model.ledgrp.cbs.max2.amt)"></c-input>
</el-form-item>
@keyup.enter.native="$event.target.blur()"></c-input>
<!-- @keyup.enter.native="$event.target.blur()" :回车触发失去焦点发生的事件 -->
</el-form-item>
</c-col>
<c-col :span="13">
......
......@@ -362,13 +362,9 @@
placeholder="请输入"
:disabled="model.ledgrp.rec.avbby == 'P'"
maxlength="4"
@keyup.enter.native="
defaultFunction(
'ledgrp.rec.tenmaxday',
model.ledgrp.rec.tenmaxday
)
"
@keyup.enter.native="$event.target.blur()"
></c-input>
<!-- @keyup.enter.native="$event.target.blur()" :回车触发失去焦点发生的事件 -->
</el-form-item>
</c-col>
</c-col>
......
......@@ -121,7 +121,6 @@
v-model="model.ledgrp.cbs.nom1.cur"
style="width: 100%"
placeholder="请选择币种"
@keyup.enter.native="nom1CurEvent"
:code="codes.curtxt1"
>
</c-select>
......@@ -133,13 +132,9 @@
v-model="model.ledgrp.cbs.nom1.amt"
style="text-align: left; width: 100%"
placeholder="请输入信用证金额"
@keyup.enter.native="
defaultFunction(
'ledgrp.cbs.nom1.amt',
model.ledgrp.cbs.nom1.amt
)
"
@keyup.enter.native="$event.target.blur()"
></c-input-currency>
<!-- @keyup.enter.native="$event.target.blur()" :回车触发失去焦点发生的事件 -->
<!-- <c-input-currency v-model="model.ledgrp.cbs.nom1.amt" style="text-align: left; width: 100%"
placeholder="请输入信用证金额"></c-input-currency> -->
</el-form-item>
......@@ -495,13 +490,6 @@ export default {
},
methods: {
...Event,
nom1CurEvent() {
this.executeDefault('ledgrp.cbs.nom1.cur').then((res) => {
if (res.respCode == SUCCESS) {
Utils.copyValueFromVO(this.model, res.data)
}
})
},
apprulChange(v) {
if (v !== 'OTHR') {
this.model.ledgrp.rec.apprultxt = ''
......
......@@ -18,11 +18,10 @@
<c-input
v-model="model.ledgrp.cbs.max2.amt"
placeholder="请输入Additional Amount"
@keyup.enter.native="
defaultFunction('ledgrp.cbs.max2.amt', model.ledgrp.cbs.max2.amt)
"
@keyup.enter.native="$event.target.blur()"
></c-input>
</el-form-item>
<!-- @keyup.enter.native="$event.target.blur()" :回车触发失去焦点发生的事件 -->
</el-form-item>
</c-col>
<c-col :span="13">
......
......@@ -362,13 +362,9 @@
placeholder="请输入"
:disabled="model.ledgrp.rec.avbby == 'P'"
maxlength="4"
@keyup.enter.native="
defaultFunction(
'ledgrp.rec.tenmaxday',
model.ledgrp.rec.tenmaxday
)
"
@keyup.enter.native="$event.target.blur()"
></c-input>
<!-- @keyup.enter.native="$event.target.blur()" :回车触发失去焦点发生的事件 -->
</el-form-item>
</c-col>
</c-col>
......
......@@ -121,7 +121,6 @@
v-model="model.ledgrp.cbs.nom1.cur"
style="width: 100%"
placeholder="请选择币种"
@keyup.enter.native="nom1CurEvent"
:code="codes.curtxt1"
>
</c-select>
......@@ -133,12 +132,7 @@
v-model="model.ledgrp.cbs.nom1.amt"
style="text-align: left; width: 100%"
placeholder="请输入信用证金额"
@keyup.enter.native="
defaultFunction(
'ledgrp.cbs.nom1.amt',
model.ledgrp.cbs.nom1.amt
)
"
@keyup.enter.native="$event.target.blur()"
></c-input-currency>
<!-- <c-input-currency v-model="model.ledgrp.cbs.nom1.amt" style="text-align: left; width: 100%"
placeholder="请输入信用证金额"></c-input-currency> -->
......@@ -469,13 +463,6 @@ export default {
},
methods: {
...Event,
nom1CurEvent() {
this.executeDefault("ledgrp.cbs.nom1.cur").then((res) => {
if (res.respCode == SUCCESS) {
Utils.copyValueFromVO(this.model, res.data);
}
});
},
apprulChange(v) {
if (v !== "OTHR") {
this.model.ledgrp.rec.apprultxt = "";
......
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