fix : 修复金额千位格式化,新增征集时添加"新增专项资金"按钮
This commit is contained in:
@@ -10,7 +10,14 @@
|
||||
</el-col>
|
||||
<el-col :span="6">
|
||||
<el-form-item label="金额(元)" prop="fundAmount" label-width="100">
|
||||
<el-input-number v-model="formData.fundAmount" placeholder="请输入金额" :controls="false"/>
|
||||
<el-input
|
||||
v-model="formData.fundAmount"
|
||||
placeholder="请输入金额"
|
||||
clearable
|
||||
:formatter="(value) => value.replace(/\B(?=(\d{3})+(?!\d))/g, ',')"
|
||||
:parser="(value) => value.replace(/\$\s?|(,*)+[^0-9.]/g, '')"
|
||||
/>
|
||||
<!-- <el-input-number v-model="formData.fundAmount" placeholder="请输入金额" :controls="false"/>-->
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="24">
|
||||
|
||||
Reference in New Issue
Block a user