Browse Source

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

sufan 5 months ago
parent
commit
5acb6d7e47

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

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