Handy_Cao před 1 rokem
rodič
revize
5f2ef91c01

+ 9 - 8
src/packages/zrwyt/views/account/certification/Index.vue

@@ -103,17 +103,14 @@ useRequest(queryBankAccountSign, {
         /// 签约状态
         if (res.data.length != 0) {
             /// 如果已经签约了 不允许修改信息
+            const { bankaccountname, bankaccountno2, bankid } = res.data[0]
             isReadonly.value = res.data.some(e => [4].includes(e.signstatus))
-            person.value.bankCard = decryptAES(res.data[0].bankaccountno2)
-            person.value.bankId = res.data[0].bankid
-            bankaccount.value = res.data[0].bankaccountno2
-            const { bankaccountname } = res.data[0]
+            person.value.bankCard = decryptAES(bankaccountno2)
+            person.value.bankId = bankid
+            bankaccount.value = bankaccountno2
             realName.value = bankaccountname
             person.value.realName = realName.value
-        } else {
-            realName.value = customername
-            person.value.realName = realName.value
-        }
+        } 
     }
 })
 
@@ -293,10 +290,14 @@ onMounted(() => {
     if (getUserInfoType() === 1) {
         person.value.idCardNo = decryptAES(cardnum)
         person.value.mobile = mobile2
+        realName.value = customername
+        person.value.realName = realName.value
     } else {
         // 企业
         company.value.mobile = mobile2
         company.value.idCardNo = decryptAES(cardnum)
+        realName.value = customername
+        company.value.realName = realName.value
     }
 })
 </script>