Handy_Cao 10 ヶ月 前
コミット
c7726206df

+ 6 - 6
src/packages/mobile/views/bank/sign/components/edit/Index.vue

@@ -136,12 +136,6 @@ const datalist = computed(() => {
 })
 
 const cusBankChange = ({ selectedOptions }) => {
-    showCusBank.value = false
-
-    formData.CusBankID = selectedOptions[0].value
-    selectCusBank.value = cusBanks.value.find(e => e.cusbankid === formData.CusBankID)
-    const { tradedate, currency, cusbankid, cusbankname } = selectCusBank.value ?? {}
-    cusBankName.value = cusbankname ?? ''
 
     if (selectedOptions[0].value != formData.CusBankID) {
         // 清空银行信息
@@ -149,6 +143,12 @@ const cusBankChange = ({ selectedOptions }) => {
         formData.OpenBankAccId = undefined
     }
 
+    showCusBank.value = false
+    formData.CusBankID = selectedOptions[0].value
+    selectCusBank.value = cusBanks.value.find(e => e.cusbankid === formData.CusBankID)
+    const { tradedate, currency, cusbankid, cusbankname } = selectCusBank.value ?? {}
+    cusBankName.value = cusbankname ?? ''
+
     formData.TradeDate = tradedate
     formData.Currency = currency