|
|
@@ -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
|
|
|
|