yu.jie 4 anni fa
parent
commit
9e329e61f9

+ 9 - 9
src/services/proto/manager/interface.ts

@@ -1,19 +1,19 @@
 // 交易所审核结果通知请求
 export interface t2bExchConfirmBusinessReq {
-    extoperatorid: number; // 外部操作流水号
+    extoperatorid?: number; // 外部操作流水号
     cusbankid: string; // 托管银行编号
     AccountCode: string; // 资金账户(交易所的出入金,填0)
-    exchid: string; // 交易所编号
+    exchid?: string; // 交易所编号
     tradedate: string; // 交易日(被审业务发生的交易日)
     exchticket: string; // 交易所流水号(被审核的流水)
-    bankticket: string; // 中心流水号
-    businesstype: number; // 交易类型[1:入金;2:出金;3:签约;4:解约;5:资金调拨;
+    bankticket?: string; // 中心流水号
+    businesstype?: number; // 交易类型[1:入金;2:出金;3:签约;4:解约;5:资金调拨;
     businessconfirmstatus: number; // 审核结果[1:通过;2:拒绝]
-    retcode: string; // 返回码
-    retmsg: string; // 返回结果说明
-    remark: string; // 备注
-    auditid: number; // 审核人
-    extend: string; // 扩展信息(若这个字段存在,则会更新到出入金申请表的扩展字段)
+    retcode?: string; // 返回码
+    retmsg?: string; // 返回结果说明
+    remark?: string; // 备注
+    auditid?: number; // 审核人
+    extend?: string; // 扩展信息(若这个字段存在,则会更新到出入金申请表的扩展字段)
 }
 
 // 交易所审核结果通知应答

+ 23 - 5
src/views/platinum/platinum_recharge_withdrawal_review/list/recharge/compoments/payment/index.vue

@@ -22,13 +22,19 @@ import { closeModal } from '@/common/setup/modal/index';
 import { QueryCustomInfoType } from '@/services/go/ermcp/customInfo/interface';
 import CommomDetail from '../common-detail/index.vue';
 import { requestResultLoadingAndInfo } from '@/common/methods/request/resultInfo';
+import {t2bExchConfirmBusiness} from "@/services/proto/manager";
+import {t2bExchConfirmBusinessReq} from "@/services/proto/manager/interface";
+import {QhjAccountOutInApply} from "@/services/go/ermcp/qhj/interface";
+import {getTimeValue} from "@/utils/time";
+import {getUserId} from "@/services/bus/account";
+import {getLongTypeLoginID} from "@/services/bus/login";
 
 export default defineComponent({
     name: 'platinum_recharge_review_confirm_payment',
     components: { CommomDetail },
     props: {
         selectedRow: {
-            type: Object as PropType<QueryCustomInfoType>,
+            type: Object as PropType<QhjAccountOutInApply>,
             default: {},
         },
     },
@@ -36,10 +42,22 @@ export default defineComponent({
         const { visible, cancel } = closeModal('platinum_recharge_review_confirm_payment');
         const loading = ref<boolean>(false);
         function submit() {
-            // requestResultLoadingAndInfo(QueryDeleteUserInfoApply, reqParams, loading, ['确认收款成功', '确认收款失败:']).then(() => {
-            //     cancel();
-            //     context.emit('refresh');
-            // });
+            let reqParams: t2bExchConfirmBusinessReq = {
+                cusbankid: props.selectedRow.cusbankid, // 托管银行编号
+                AccountCode: props.selectedRow.accountcode, // 资金账户(交易所的出入金,填0)
+                exchticket: props.selectedRow.exchticket, // 交易所流水号(被审核的流水)
+                tradedate: props.selectedRow.tradedate, // 交易日(被审业务发生的交易日)
+                extoperatorid: getTimeValue(),  // 外部操作流水号
+                bankticket: props.selectedRow.bankticket, // 中心流水号
+                businessconfirmstatus: 1,// 审核结果 1: 通过 2: 拒绝
+                businesstype: props.selectedRow.executetype === 1 ? 2 : 1,  // 交易类型 1: 入金  2:出金 3: 签约 4: 解约
+                auditid: Number(getUserId())  // 审核人
+            }
+
+            requestResultLoadingAndInfo(t2bExchConfirmBusiness, reqParams, loading, ['确认收款成功', '确认收款失败:']).then(() => {
+                cancel();
+                context.emit('refresh');
+            });
         }
         return {
             submit,

+ 22 - 5
src/views/platinum/platinum_recharge_withdrawal_review/list/recharge/compoments/refuse/index.vue

@@ -23,13 +23,18 @@ import { closeModal } from '@/common/setup/modal/index';
 import { QueryCustomInfoType } from '@/services/go/ermcp/customInfo/interface';
 import CommomDetail from '../common-detail/index.vue';
 import { requestResultLoadingAndInfo } from '@/common/methods/request/resultInfo';
+import {t2bExchConfirmBusinessReq} from "@/services/proto/manager/interface";
+import {getTimeValue} from "@/utils/time";
+import {getUserId} from "@/services/bus/account";
+import {t2bExchConfirmBusiness} from "@/services/proto/manager";
+import {QhjAccountOutInApply} from "@/services/go/ermcp/qhj/interface";
 
 export default defineComponent({
     name: 'custom-detail-desc',
     components: { CommomDetail },
     props: {
         selectedRow: {
-            type: Object as PropType<QueryCustomInfoType>,
+            type: Object as PropType<QhjAccountOutInApply>,
             default: {},
         },
     },
@@ -37,10 +42,22 @@ export default defineComponent({
         const { visible, cancel } = closeModal('platinum_recharge_review_refuse');
         const loading = ref<boolean>(false);
         function submit() {
-            // requestResultLoadingAndInfo(QueryDeleteUserInfoApply, reqParams, loading, ['审核拒绝成功', '审核拒绝失败:']).then(() => {
-            //     cancel();
-            //     context.emit('refresh');
-            // });
+            let reqParams: t2bExchConfirmBusinessReq = {
+                cusbankid: props.selectedRow.cusbankid, // 托管银行编号
+                AccountCode: props.selectedRow.accountcode, // 资金账户(交易所的出入金,填0)
+                exchticket: props.selectedRow.exchticket, // 交易所流水号(被审核的流水)
+                tradedate: props.selectedRow.tradedate, // 交易日(被审业务发生的交易日)
+                extoperatorid: getTimeValue(),  // 外部操作流水号
+                bankticket: props.selectedRow.bankticket, // 中心流水号
+                businessconfirmstatus: 2,// 审核结果 1: 通过 2: 拒绝
+                businesstype: props.selectedRow.executetype === 1 ? 2 : 1,  // 交易类型 1: 入金  2:出金 3: 签约 4: 解约
+                auditid: Number(getUserId())  // 审核人
+            }
+
+            requestResultLoadingAndInfo(t2bExchConfirmBusiness, reqParams, loading, ['审核拒绝成功', '审核拒绝失败:']).then(() => {
+                cancel();
+                context.emit('refresh');
+            });
         }
         return {
             cancel,

+ 22 - 5
src/views/platinum/platinum_recharge_withdrawal_review/list/withdrawal/compoments/refuse/index.vue

@@ -23,13 +23,18 @@ import { closeModal } from '@/common/setup/modal/index';
 import { QueryCustomInfoType } from '@/services/go/ermcp/customInfo/interface';
 import CommomDetail from '../common-detail/index.vue';
 import { requestResultLoadingAndInfo } from '@/common/methods/request/resultInfo';
+import {t2bExchConfirmBusinessReq} from "@/services/proto/manager/interface";
+import {getTimeValue} from "@/utils/time";
+import {getUserId} from "@/services/bus/account";
+import {t2bExchConfirmBusiness} from "@/services/proto/manager";
+import {QhjAccountOutInApply} from "@/services/go/ermcp/qhj/interface";
 
 export default defineComponent({
     name: 'custom-detail-desc',
     components: { CommomDetail },
     props: {
         selectedRow: {
-            type: Object as PropType<QueryCustomInfoType>,
+            type: Object as PropType<QhjAccountOutInApply>,
             default: {},
         },
     },
@@ -37,10 +42,22 @@ export default defineComponent({
         const { visible, cancel } = closeModal('platinum_withdrawal_review_refuse');
         const loading = ref<boolean>(false);
         function submit() {
-            // requestResultLoadingAndInfo(QueryDeleteUserInfoApply, reqParams, loading, ['审核拒绝成功', '审核拒绝失败:']).then(() => {
-            //     cancel();
-            //     context.emit('refresh');
-            // });
+            let reqParams: t2bExchConfirmBusinessReq = {
+                cusbankid: props.selectedRow.cusbankid, // 托管银行编号
+                AccountCode: props.selectedRow.accountcode, // 资金账户(交易所的出入金,填0)
+                exchticket: props.selectedRow.exchticket, // 交易所流水号(被审核的流水)
+                tradedate: props.selectedRow.tradedate, // 交易日(被审业务发生的交易日)
+                extoperatorid: getTimeValue(),  // 外部操作流水号
+                bankticket: props.selectedRow.bankticket, // 中心流水号
+                businessconfirmstatus: 2,// 审核结果 1: 通过 2: 拒绝
+                businesstype: props.selectedRow.executetype === 1 ? 2 : 1,  // 交易类型 1: 入金  2:出金 3: 签约 4: 解约
+                auditid: Number(getUserId())  // 审核人
+            }
+
+            requestResultLoadingAndInfo(t2bExchConfirmBusiness, reqParams, loading, ['审核拒绝成功', '审核拒绝失败:']).then(() => {
+                cancel();
+                context.emit('refresh');
+            });
         }
         return {
             cancel,

+ 22 - 5
src/views/platinum/platinum_recharge_withdrawal_review/list/withdrawal/compoments/withdrawal/index.vue

@@ -22,13 +22,18 @@ import { closeModal } from '@/common/setup/modal/index';
 import { QueryCustomInfoType } from '@/services/go/ermcp/customInfo/interface';
 import CommomDetail from '../common-detail/index.vue';
 import { requestResultLoadingAndInfo } from '@/common/methods/request/resultInfo';
+import {t2bExchConfirmBusinessReq} from "@/services/proto/manager/interface";
+import {getTimeValue} from "@/utils/time";
+import {getUserId} from "@/services/bus/account";
+import {t2bExchConfirmBusiness} from "@/services/proto/manager";
+import {QhjAccountOutInApply} from "@/services/go/ermcp/qhj/interface";
 
 export default defineComponent({
     name: 'platinum_withdrawal_review_confirm_withdrawal',
     components: { CommomDetail },
     props: {
         selectedRow: {
-            type: Object as PropType<QueryCustomInfoType>,
+            type: Object as PropType<QhjAccountOutInApply>,
             default: {},
         },
     },
@@ -36,10 +41,22 @@ export default defineComponent({
         const { visible, cancel } = closeModal('platinum_withdrawal_review_confirm_withdrawal');
         const loading = ref<boolean>(false);
         function submit() {
-            // requestResultLoadingAndInfo(QueryDeleteUserInfoApply, reqParams, loading, ['确认提现成功', '确认提现失败:']).then(() => {
-            //     cancel();
-            //     context.emit('refresh');
-            // });
+            let reqParams: t2bExchConfirmBusinessReq = {
+                cusbankid: props.selectedRow.cusbankid, // 托管银行编号
+                AccountCode: props.selectedRow.accountcode, // 资金账户(交易所的出入金,填0)
+                exchticket: props.selectedRow.exchticket, // 交易所流水号(被审核的流水)
+                tradedate: props.selectedRow.tradedate, // 交易日(被审业务发生的交易日)
+                extoperatorid: getTimeValue(),  // 外部操作流水号
+                bankticket: props.selectedRow.bankticket, // 中心流水号
+                businessconfirmstatus: 1,// 审核结果 1: 通过 2: 拒绝
+                businesstype: props.selectedRow.executetype === 1 ? 2 : 1,  // 交易类型 1: 入金  2:出金 3: 签约 4: 解约
+                auditid: Number(getUserId())  // 审核人
+            }
+
+            requestResultLoadingAndInfo(t2bExchConfirmBusiness, reqParams, loading, ['确认提现成功', '确认提现失败:']).then(() => {
+                cancel();
+                context.emit('refresh');
+            });
         }
         return {
             cancel,