Commit 674a8ec9 by zhengxiaokui

zxk

parent 90e76fae
...@@ -95,11 +95,11 @@ ...@@ -95,11 +95,11 @@
label-width="20px" label-width="20px"
prop="didgrp.cbs.nom1.amt" prop="didgrp.cbs.nom1.amt"
> >
<c-input <c-input-currency
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="请输入信用证金额"
></c-input> ></c-input-currency>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
......
...@@ -67,8 +67,7 @@ export default { ...@@ -67,8 +67,7 @@ export default {
}; };
}, },
methods: { methods: {
//金额格式化,默认保留三位小数
//金额格式化,默认保留三位小数
amtChanged(newamt) { amtChanged(newamt) {
if (newamt === "" || newamt === undefined || newamt === null) { if (newamt === "" || newamt === undefined || newamt === null) {
_.set(this.model, this.message.amt, ""); _.set(this.model, this.message.amt, "");
...@@ -101,7 +100,7 @@ export default { ...@@ -101,7 +100,7 @@ export default {
} }
let amt = `${segs[0] ? segs[0] : 0}.${segs[1]}`; let amt = `${segs[0] ? segs[0] : 0}.${segs[1]}`;
_.set(this.model, this.message.amt, amt); _.set(this.model, this.message.amt, amt);
this.amt = amt; this.amt = `${segs[0] ? npreseg : 0}.${segs[1]}`;
}, },
//禁止输入非数字 //禁止输入非数字
...@@ -126,8 +125,7 @@ export default { ...@@ -126,8 +125,7 @@ export default {
computed: {}, computed: {},
watch: {}, watch: {},
// methods: { ...Event }, // methods: { ...Event },
created: function () { created: function () {},
},
}; };
</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