Commit 0f88c36c by lianyang

litopn正金额保留两位小数,整数位不超15,改为c-input-currency

parent 32a418bd
......@@ -50,8 +50,8 @@ export default {
"lidgrp.cbs.nom1.amt":[
{type: "string", required: true, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
{max: 18,message:"整数位不能超过15位"},
{pattern: /(^\d+$)|(^\.\d{1,2}$)|(^\d+\.\d{1,2}$)/, message: "小数位不能超过2位" }
],
"lidgrp.apl.pts.adrblk":[
......@@ -82,8 +82,8 @@ export default {
"lidgrp.cbs.max.amt":[
{type: "string", required: false, message: ""},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
{max: 18,message:"整数位不能超过15位"},
{pattern: /(^\d+$)|(^\.\d{1,2}$)|(^\d+\.\d{1,2}$)/, message: "小数位不能超过2位" }
],
"litp.advp.ptsget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
......@@ -191,17 +191,17 @@ export default {
{max: 16,message:"长度不能超过16"}
],
// "lidgrp.cbs.max2.amt":[
// {type: "number", required: false, message: "必输项"},
// {max: 18,message:"整数位不能超过14位"},
// // {pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
// ],
"lidgrp.cbs.max2.amt":[
{type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过15位"},
{pattern: /(^\d+$)|(^\.\d{1,2}$)|(^\d+\.\d{1,2}$)/, message: "小数位不能超过2位" }
],
// "lidgrp.cbs.opn2.amt":[
// {type: "number", required: false, message: "必输项"},
// {max: 18,message:"整数位不能超过14位"},
// // {pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
// ],
"lidgrp.cbs.opn2.amt":[
{type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过15位"},
{pattern: /(^\d+$)|(^\.\d{1,2}$)|(^\d+\.\d{1,2}$)/, message: "小数位不能超过2位" }
],
"lidgrp.blk.addamtcov":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
......
......@@ -26,11 +26,11 @@
label-width="20px"
prop="lidgrp.cbs.max2.amt"
>
<c-input
<c-input-currency
v-model="model.lidgrp.cbs.max2.amt"
style="text-align: left; width: 100%"
placeholder="0"
></c-input>
></c-input-currency>
</el-form-item>
</c-col>
......@@ -53,12 +53,12 @@
label-width="20px"
prop="lidgrp.cbs.opn2.amt"
>
<c-input
<c-input-currency
v-model="model.lidgrp.cbs.opn2.amt"
style="text-align: left; width: 100%"
placeholder="0"
disabled
></c-input>
></c-input-currency>
</el-form-item>
</c-col>
......
......@@ -114,11 +114,11 @@
label-width="20px"
prop="lidgrp.cbs.nom1.amt"
>
<c-input
<c-input-currency
v-model="model.lidgrp.cbs.nom1.amt"
style="text-align: left; width: 100%"
placeholder="请输入金额"
></c-input>
></c-input-currency>
</el-form-item>
</c-col>
......@@ -192,11 +192,11 @@
<c-col :span="11">
<el-form-item label="" label-width="5px" prop="lidgrp.cbs.max.amt">
<c-input
<c-input-currency
v-model="model.lidgrp.cbs.max.amt"
disabled
placeholder="请输入信用证最大金额"
></c-input>
></c-input-currency>
</el-form-item>
</c-col>
......
......@@ -357,7 +357,6 @@
prop="lidgrp.avb.pts.ref"
>
<c-input
disabled
v-model="model.lidgrp.avb.pts.ref"
maxlength="16"
placeholder="请输入参考号"
......@@ -369,7 +368,6 @@
<el-form-item label="地址编码" prop="lidgrp.avb.pts.extkey">
<c-fullbox>
<c-input
disabled
v-model="model.lidgrp.avb.pts.extkey"
maxlength="16"
placeholder="请输入地址编码"
......
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