huangbin hace 4 años
padre
commit
cc481f039c

+ 1 - 1
public/config/app.config.json

@@ -1,3 +1,3 @@
 {
-    "apiUrl": "http://192.168.31.135:8080/cfg?key=test_135"
+    "apiUrl": "http://192.168.31.139:8080/cfg?key=test_139"
 }

+ 2 - 2
src/services/bus/user.ts

@@ -1,5 +1,5 @@
 import APP from '@/services';
-import { Arearole, Ermcp3RootUserAccount } from '../go/useInfo/interface';
+import { Arearole, Ermcp3RootUserAccount, Userinfo } from '../go/useInfo/interface';
 
 /**
  * 获取用户账户类型
@@ -12,7 +12,7 @@ export function getUserAccountType(): number {
 /**
  * 获取用户
  */
-export function getUserInfo() {
+export function getUserInfo(): Userinfo {
     return APP.get('userInfo')
 }
 

+ 13 - 15
src/views/account-manager/account-manager-agency/account-manager-agency-sub/add.vue

@@ -80,7 +80,7 @@ import { requestResultLoadingAndInfo } from '@/common/methods/request/resultInfo
 import { validateAction } from '@/common/setup/form';
 import { _closeModal } from '@/common/setup/modal/modal';
 import { getSelectedAccountId } from '@/services/bus/account';
-import { getUserName } from '@/services/bus/user';
+import { getUserInfo, getUserName } from '@/services/bus/user';
 import { QueryBankInfo, QueryCusBankSignBank } from '@/services/go/ermcp/qhj';
 import { QueryBankInfoRsp, QueryCusBankSignBankRsp } from '@/services/go/ermcp/qhj/interface';
 import { QueryPermancePlanTmpRsp } from '@/services/go/wrtrade/interface';
@@ -132,37 +132,35 @@ export default defineComponent({
                 const selectdBank = accountList.value.find((el) => el.bankid === res.bankId)!;
                 // 托管说是只有一个,具体因为未知
                 const managerBank = managerList.value[0]; // 托管银行
+                const userInfo = getUserInfo();
+                const extendInfo = {
+                    sex: userInfo.sex,
+                };
                 const param: t2bBankSignReq = {
                     OperateType: 1, // 变更类型[1-增加; 2-修改; 4-绑卡;
                     IsForce: 0, // 是否强制[0-否; 1-是]强制
                     AgentCertType: 0, // 授权代理人证件类型
                     BankCardType: 0, // 银行卡类型
                     AccountType: 1, // // 账户类型[1-对私; 2-对公]
-                    extend_info: '', //  扩展信息(JSON串,参考配置要求进行填充)
+                    extend_info: JSON.stringify(extendInfo), //  扩展信息(JSON串,参考配置要求进行填充)
                     BankAccountNo: res.bankNo, // 银行账户
-                    BankAccountName: res.name, // 银行账户名称
+                    BankAccountName: getUserName(), // 银行账户名称
                     AccountCode: getSelectedAccountId().toString(), // 账户
                     AccountName: getUserName(), // 客户名称
                     OpenBankName: res.subBankName, // 开户支行名称
                     ExtOperatorID: getTimeValue(), // 外部操作流水号
-                    CertType: '', // 证件类型
-                    CertID: '', // 证件号码
+                    CertType: userInfo.cardtypeid.toString(), // 证件类型
+                    CertID: userInfo.cardnum, // 证件号码
                     CusBankID: managerBank.cusbankid, // 托管银行编号
                     Currency: managerBank.currency, // 币种
                     TradeDate: managerBank.tradedate, // 交易所业务日期
                     ExBankName: selectdBank.bankname, // // 开户行名称
                     OpenBankAccId: selectdBank.bankid, // 银行卡行号
                 };
-                const msg: [string, string] = ['新增成功', '新增失败:'];
-                requestResultLoadingAndInfo(requestBankSign, param, loading, msg)
-                    .then(() => {
-                        cancel(true);
-                    })
-                    .catch((err) => {
-                        if (err === '您的申请已提交,请稍后查询结果!') {
-                            cancel(true);
-                        }
-                    });
+                const msg: [string, string] = ['您的申请已提交,请稍后查询结果!', '新增失败:'];
+                requestResultLoadingAndInfo(requestBankSign, param, loading, msg).then(() => {
+                    cancel(true);
+                });
             });
         }
         return {

+ 1 - 1
src/views/order/funding_information/components/funding_information_funding_summary/components/setup.ts

@@ -21,7 +21,7 @@ export const useSignBank = () => {
     if (signBanks.value.length === 0) {
         queryBankAccountSign().then(res => {
             // 4: 已签约
-            signBanks.value = res.filter(e => e.signstatus = 4)
+            signBanks.value = res.filter(e => e.signstatus === 4)
         })
     }
     function hasSignBank() {