Ver código fonte

Merge branch 'master' of http://47.101.159.18:3000/Muchinfo/THJ_Mobile

li.shaoyi 3 anos atrás
pai
commit
8e1735fce6
1 arquivos alterados com 13 adições e 9 exclusões
  1. 13 9
      src/business/bank/index.ts

+ 13 - 9
src/business/bank/index.ts

@@ -323,15 +323,17 @@ export function useDoBankSign() {
     const { getBankAccountList, bankInfo } = useBankAccountSign()
     /// 判断是否有签约信息 有就做修改
     getBankAccountList().then(()=>{
-        ({
-            currency:formData.Currency,
-             cusbankid:formData.CusBankID,
-             accountcode:formData.AccountCode,
-             accountname:formData.BankAccountName,
-             branchbankname: formData.OpenBankName,
-             bankaccountno: formData.BankAccountNo,
-             bankid:formData.OpenBankAccId,
-            }=bankInfo.value ?? {})
+        if (bankInfo.value) {
+            ({
+                currency:formData.Currency,
+                 cusbankid:formData.CusBankID,
+                 accountcode:formData.AccountCode,
+                 accountname:formData.BankAccountName,
+                 branchbankname: formData.OpenBankName,
+                 bankaccountno: formData.BankAccountNo,
+                 bankid:formData.OpenBankAccId,
+                }=bankInfo.value)
+        }
     })
 
     /// 数据
@@ -349,6 +351,8 @@ export function useDoBankSign() {
         BankAccountName: getUserInfo()?.customername,
     })
 
+    console.log(formData)
+
     const onSubmit = async () => {
         await request
         loading.value = true