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