Эх сурвалжийг харах

中国人寿报价添加折扣,字段添加只能输入数字和小数点限制

lihongxiao 2 жил өмнө
parent
commit
69f65052c0

+ 1 - 1
src/views/Letter/Letter.vue

@@ -1585,7 +1585,7 @@
             >
             <div style="margin:15px 0 15px 100px">
                 <span >折扣:</span>
-                <el-input style="width:220px" :disabled="!lastCompanyId" size="small" v-model="reslistitem.discount" placeholder="请输入内容"></el-input>
+                <el-input style="width:220px" :disabled="!lastCompanyId" size="small" v-model="reslistitem.discount" placeholder="请输入内容" @input="reslistitem.discount= reslistitem.discount.replace(/[^\d.]/g, '')"></el-input>
               </div>
               <div class="flex f-c Driving-risk">
                 <div class="dis a-c" >