Bläddra i källkod

fix(收放款台账):字段校验

sufan 5 månader sedan
förälder
incheckning
5acb6d7e47

+ 3 - 0
src/views/dataSource/receiveLendingLedger/components/CapitalInfo.vue

@@ -7,6 +7,7 @@
       :rules="rules"
       label-position="top"
       class="rule-form"
+      :key="ruleFormKey"
     >
       <el-form-item label="是否占用公司资金" prop="occupation">
         <el-radio-group v-model="ruleForm.occupation" :disabled="disabled">
@@ -103,6 +104,7 @@
     fundRefinancingInstitutionInfoId: ''
   })
   const ruleFormRef = ref<FormInstance>()
+  const ruleFormKey = ref<number>(0)
   const rules = reactive<FormRules>({
     occupation: [
       {
@@ -153,6 +155,7 @@
         managementFeeRatio,
         fundRefinancingInstitutionInfoId
       }
+      ruleFormKey.value += 1
     },
     {
       immediate: true,