|
|
@@ -322,17 +322,17 @@ export function useDoBankSign() {
|
|
|
|
|
|
const { getBankAccountList, bankInfo } = useBankAccountSign()
|
|
|
/// 判断是否有签约信息 有就做修改
|
|
|
- getBankAccountList().then(()=>{
|
|
|
+ getBankAccountList().then(() => {
|
|
|
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)
|
|
|
+ currency: formData.Currency,
|
|
|
+ cusbankid: formData.CusBankID,
|
|
|
+ accountcode: formData.AccountCode,
|
|
|
+ accountname: formData.BankAccountName,
|
|
|
+ branchbankname: formData.OpenBankName,
|
|
|
+ bankaccountno: formData.BankAccountNo,
|
|
|
+ bankid: formData.OpenBankAccId,
|
|
|
+ } = bankInfo.value)
|
|
|
}
|
|
|
})
|
|
|
|
|
|
@@ -341,7 +341,6 @@ export function useDoBankSign() {
|
|
|
AccountType: 1,
|
|
|
IsForce: 0,
|
|
|
AgentCertType: 0,
|
|
|
- OperateType: bankInfo.value ? 1 : 2,
|
|
|
BankCardType: 0,
|
|
|
BankAccountType: 1,
|
|
|
extend_info: JSON.stringify({ "sex": 1 }),
|
|
|
@@ -360,6 +359,7 @@ export function useDoBankSign() {
|
|
|
return t2bBankSign({
|
|
|
data: {
|
|
|
...formData,
|
|
|
+ OperateType: bankInfo.value ? 2 : 1,
|
|
|
ExtOperatorID: new Date().getTime(),
|
|
|
AccountName: formData.BankAccountName,
|
|
|
ExBankName: banklist.value.find(obj => obj.bankid === formData.OpenBankAccId)?.bankname
|
|
|
@@ -382,7 +382,7 @@ export function useDoBankSign() {
|
|
|
/// 银行解约请求
|
|
|
export function useDoCancelBankSign() {
|
|
|
const { getBankAccountList, bankInfo } = useBankAccountSign()
|
|
|
-
|
|
|
+
|
|
|
/// 获取UserId
|
|
|
const loading = shallowRef(false)
|
|
|
|
|
|
@@ -393,14 +393,15 @@ export function useDoCancelBankSign() {
|
|
|
/// 获取当前是否已签约
|
|
|
const sign = shallowRef<Model.BankAccountSignRsp[]>([])
|
|
|
|
|
|
- getBankAccountList().then(()=>{
|
|
|
- ({
|
|
|
- currency:formData.Currency,
|
|
|
- cusbankid:formData.CusBankID,
|
|
|
- accountcode:formData.AccountCode,
|
|
|
- }=bankInfo.value ?? {})
|
|
|
-
|
|
|
- })
|
|
|
+ const formRefresh = () => {
|
|
|
+ getBankAccountList().then(() => {
|
|
|
+ ({
|
|
|
+ currency: formData.Currency,
|
|
|
+ cusbankid: formData.CusBankID,
|
|
|
+ accountcode: formData.AccountCode,
|
|
|
+ } = bankInfo.value ?? {})
|
|
|
+ })
|
|
|
+ }
|
|
|
|
|
|
const cancelSubmit = async () => {
|
|
|
// await request
|
|
|
@@ -422,7 +423,8 @@ export function useDoCancelBankSign() {
|
|
|
cancelSubmit,
|
|
|
formData,
|
|
|
sign,
|
|
|
- bankInfo
|
|
|
+ bankInfo,
|
|
|
+ formRefresh
|
|
|
}
|
|
|
}
|
|
|
|