Commit a892133a by lianyang

getopn金额框“必输项”解决

parent 679e4336
...@@ -23,9 +23,9 @@ export default { ...@@ -23,9 +23,9 @@ export default {
"gidgrp.cbs.max.amt":[ "gidgrp.cbs.max.amt":[
{type: "number", required: false, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"}, {max: 17,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" } // {pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
], ],
"gidgrp.apl.pts.ref":[ "gidgrp.apl.pts.ref":[
...@@ -38,9 +38,9 @@ export default { ...@@ -38,9 +38,9 @@ export default {
{max: 3,message:"长度不能超过3"} {max: 3,message:"长度不能超过3"}
], ],
"gidgrp.cbs.opn1.amt":[ "gidgrp.cbs.opn1.amt":[
{type: "number", required: false, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"}, {max: 17,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" } // {pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
], ],
"gidgrp.rec.oldref":[ "gidgrp.rec.oldref":[
......
...@@ -77,17 +77,11 @@ ...@@ -77,17 +77,11 @@
<c-col :span="9"> <c-col :span="9">
<el-form-item label-width="5px" prop="gidgrp.cbs.max.amt"> <el-form-item label-width="5px" prop="gidgrp.cbs.max.amt">
<c-input <c-input-currency
v-model="model.gidgrp.cbs.max.amt" v-model="model.gidgrp.cbs.max.amt"
placeholder="请输入保函金额" placeholder="请输入保函金额"
@blur="amtBlur" @keyup.enter.native="$event.target.blur()"
@keyup.enter.native=" ></c-input-currency>
defaultFunction(
'gidgrp.cbs.max.amt',
model.gidgrp.cbs.max.amt
)
"
></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col <c-col
...@@ -112,11 +106,12 @@ ...@@ -112,11 +106,12 @@
</c-col> </c-col>
<c-col :span="9"> <c-col :span="9">
<el-form-item label-width="5px" prop="gidgrp.cbs.opn1.amt"> <el-form-item label-width="5px" prop="gidgrp.cbs.opn1.amt">
<c-input <!-- 因暂不确定此金额框能否显示负数,且此框为disabled,暂用-min标签,可回显负数 -->
<c-input-currency-min
disabled disabled
v-model="model.gidgrp.cbs.opn1.amt" v-model="model.gidgrp.cbs.opn1.amt"
placeholder="请输入" placeholder="请输入"
></c-input> ></c-input-currency-min>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col <c-col
...@@ -1644,12 +1639,6 @@ export default { ...@@ -1644,12 +1639,6 @@ export default {
}, },
methods: { methods: {
...Event, ...Event,
async amtBlur() {
let rtnmsg = await this.executeDefault("gidgrp.cbs.max.amt");
if (rtnmsg.respCode == SUCCESS) {
Utils.copyValueFromVO(this.model, rtnmsg.data);
}
},
}, },
created: function () {}, created: function () {},
}; };
......
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