Commit 71ed7d75 by 潘际乾

信用证金额输入优化

parent 8d58dd16
...@@ -74,6 +74,9 @@ export default { ...@@ -74,6 +74,9 @@ export default {
methods: { methods: {
onBlur() { onBlur() {
this.isOnBlur = true; this.isOnBlur = true;
if(this.model.trim() === "") {
this.model = "0";
}
}, },
focus() { focus() {
this.isOnBlur = false; this.isOnBlur = false;
......
...@@ -147,6 +147,14 @@ export default { ...@@ -147,6 +147,14 @@ export default {
return fn; return fn;
}, },
/** /**
* 用于手动的触发model里属性的 executeDefault
* @param {string} rule 执行的 rule path
* @param {any} value 更改的值
*/
defaultFunction (rule, value) {
Utils.defaultFunction.call(this, rule, value)
},
/**
* 更新Model * 更新Model
* @param {any} data model数据 * @param {any} data model数据
*/ */
......
...@@ -208,7 +208,9 @@ export default class Utils { ...@@ -208,7 +208,9 @@ export default class Utils {
if (res.respCode == SUCCESS){ if (res.respCode == SUCCESS){
const data = res.data; const data = res.data;
Utils.copyValueFromVO(this.model, data) Utils.copyValueFromVO(this.model, data)
callback() if (typeof callback === "function") {
callback()
}
} }
}) })
} }
......
...@@ -102,6 +102,7 @@ ...@@ -102,6 +102,7 @@
v-model="model.didgrp.cbs.nom1.amt" v-model="model.didgrp.cbs.nom1.amt"
style="text-align: left; width: 100%" style="text-align: left; width: 100%"
placeholder="请输入信用证金额" placeholder="请输入信用证金额"
@keyup.enter.native="defaultFunction('didgrp.cbs.nom1.amt', model.didgrp.cbs.nom1.amt)"
></c-input-currency> ></c-input-currency>
</el-form-item> </el-form-item>
</c-col> </c-col>
......
...@@ -7,6 +7,8 @@ ...@@ -7,6 +7,8 @@
:handleCheck="handleCheck" :handleCheck="handleCheck"
:handleStash="handleStash" :handleStash="handleStash"
> >
<el-button size="small">流程附言</el-button>
<el-button size="small">交易历史</el-button>
<el-button size="small">备忘录</el-button> <el-button size="small">备忘录</el-button>
<el-button size="small">影像信息</el-button> <el-button size="small">影像信息</el-button>
<el-button size="small">保存模板</el-button> <el-button size="small">保存模板</el-button>
......
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