Przeglądaj źródła

确权金额可以修改

xuefy 4 lat temu
rodzic
commit
92a7eb7465

+ 6 - 1
front-vue/src/views/service/credit/confirmationAudit.vue

@@ -111,7 +111,7 @@
             <el-row>
                 <el-col :span="8">
                     <el-form-item label="签发金额" prop="zfiAmount"> 
-                         <el-input v-model="form.zfiAmount" style="width: 200px" @input="getBigSmall" disabled/>
+                         <el-input v-model="form.zfiAmount" style="width: 200px" @input="getBigSmall"  @input.native="changeRate($event,form.zfiAmount)"/>
                     </el-form-item>
                 </el-col>
                 <!--  <el-col :span="8">
@@ -899,6 +899,11 @@ export default {
         }
         this.openFile = true;
     },
+    changeRate(e,input){
+      e.target.value=(e.target.value.match(/^\d*(\.?\d{0,2})/g)[0]) || null
+      this.input=e.target.value
+      this.form.zfiAmount=this.input
+    },
        
     }
 };