huangbin 4 роки тому
батько
коміт
55a50d7261

+ 1 - 0
src/common/setup/table/tableQuote.ts

@@ -168,6 +168,7 @@ export function quoteAmplituOfVibration(record: QueryQuoteDayRsp, decimalplace =
     return result
 }
 
+// 处理 空值  或者 0的时候,显示 --  的情况,
 export function handleNoneValue(value: number | string) {
     return value ? value : '--'
 }

+ 12 - 4
src/views/account-manager/account-manager-agency/account-manager-agency-sub/index.vue

@@ -50,8 +50,8 @@
         <template #updatetime="{ text }">
           <span>{{ formatTime(text) }}</span>
         </template>
-        <template #certificatephotourl="{ text }">
-          <a @click="previewImg(text)">{{text ? text === '--' ? text : '查看附件' : '--'}}</a>
+        <template #certificatephotourl="{ text, record }">
+          <a @click="previewImg(text)">{{handleUrl(text, record)}}</a>
         </template>
         <template #applystatus="{ text }">
           <span>{{ getAccountInOutApplyStatus(text) }}</span>
@@ -127,6 +127,13 @@ export default defineComponent({
         };
         // 预览附件
         const { previewVisible, previewImage, cancelImg, previewImg } = handlePreviewImg();
+        function handleUrl(value: string, record: QueryBankAccountSignQsp) {
+            let result = '--';
+            if (value && value !== '--') {
+                result = '查看附件';
+            }
+            return result;
+        }
         // 表头
         const { columns, applyInColumns, applyOutCloums } = getColumns();
         const detailList = ref<QueryAccountInOutApplyRsq[]>([]);
@@ -150,11 +157,11 @@ export default defineComponent({
             if (code === 'account-manager-agency-sub-apply-in') {
                 // 充值申请
                 detailColumns.value = applyInColumns;
-                detailList.value = fn(1);
+                detailList.value = fn(2);
             } else if (code === 'account-manager-agency-sub-apply-out') {
                 // 提现申请
                 detailColumns.value = applyOutCloums;
-                detailList.value = fn(2);
+                detailList.value = fn(1);
             } else {
                 detailList.value = [];
                 console.error(`${lable}没有配置对应的code: ${code},`);
@@ -205,6 +212,7 @@ export default defineComponent({
             previewImage,
             cancelImg,
             previewImg,
+            handleUrl,
         };
     },
 });

+ 10 - 5
src/views/account-manager/account-manager-agency/account-manager-agency-sub/modiy.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 { QueryBankAccountSignQsp, QueryBankInfoRsp, QueryCusBankSignBankRsp } from '@/services/go/ermcp/qhj/interface';
 import { requestBankSign } from '@/services/socket/bank';
@@ -133,21 +133,26 @@ export default defineComponent({
                 const selectdBank = accountList.value.find((el) => el.bankid === res.bankId)!;
                 // 托管说是只有一个,具体因为未知
                 const managerBank = managerList.value[0]; // 托管银行
+                const userInfo = getUserInfo();
+                console.log('userInfo', userInfo);
+                const extendInfo = {
+                    sex: userInfo.sex,
+                };
                 const param: t2bBankSignReq = {
                     OperateType: 2, // 变更类型[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, // 交易所业务日期