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