Просмотр исходного кода

fix: 查询签约结果移到概览页快捷操作区

alphaH 3 дней назад
Родитель
Сommit
d2f7b2c83b

+ 26 - 1
frontend/src/views/module_payment/account/components/AccountOverview.vue

@@ -59,6 +59,28 @@
           </el-button>
         </div>
 
+        <div
+          class="action-item"
+          :class="{ disabled: authorizeStatus === 'AUTHORIZED' || !!accountData.account_book_id }"
+        >
+          <div class="action-icon">
+            <el-icon :size="32"><Search /></el-icon>
+          </div>
+          <div class="action-title">查询签约结果</div>
+          <div class="action-desc">
+            {{ agreementNo || "获取签约协议号" }}
+          </div>
+          <el-button
+            v-hasPerm="['module_payment:account:authorize']"
+            type="primary"
+            :disabled="authorizeStatus === 'AUTHORIZED' || !!accountData.account_book_id"
+            :loading="queryLoading"
+            @click="$emit('queryAgreement')"
+          >
+            {{ agreementNo ? "已获取" : "查询" }}
+          </el-button>
+        </div>
+
         <div
           class="action-item"
           :class="{ disabled: authorizeStatus === 'AUTHORIZED' || !!accountData.account_book_id }"
@@ -277,16 +299,19 @@
 <script setup lang="ts">
 import { useEnterpriseStore } from "@/store/modules/enterprise.store";
 import AccountAPI from "@/api/module_payment/account";
-import { Refresh, Document, Coin, Wallet, Money } from "@element-plus/icons-vue";
+import { Refresh, Document, Coin, Wallet, Money, Search } from "@element-plus/icons-vue";
 import { ref, computed, watch } from "vue";
 import en from "@/lang/package/en";
 
 const props = defineProps<{
   enterpriseId?: string;
+  agreementNo?: string;
+  queryLoading?: boolean;
 }>();
 
 const emit = defineEmits<{
   (e: "goTab", tab: string): void;
+  (e: "queryAgreement"): void;
   (e: "refresh", data: any): void;
   (e: "withdraw"): void;
 }>();

+ 6 - 2
frontend/src/views/module_payment/account/index.vue

@@ -2,8 +2,12 @@
   <div v-loading="pageLoading" class="app-container" :element-loading-text="loadingText">
     <el-tabs v-model="activeTab" class="account-tabs" type="card">
       <el-tab-pane label="账户概览" name="overview">
-        <AccountOverview ref="overviewRef" :enterprise-id="currentEnterpriseId" @refresh="handleOverviewRefresh"
-          @goTab="handleGoTab" @withdraw="withdrawVisible = true" />
+        <AccountOverview ref="overviewRef" :enterprise-id="currentEnterpriseId"
+          :agreement-no="authorizeResult.agreement_no"
+          :query-loading="authorizeResult.queryLoading"
+          @refresh="handleOverviewRefresh"
+          @goTab="handleGoTab" @withdraw="withdrawVisible = true"
+          @query-agreement="handleQueryAgreement" />
       </el-tab-pane>
 
       <!-- <el-tab-pane label="转账授权签约" name="authorize">

+ 4 - 0
logs/payment-platform.log

@@ -796,3 +796,7 @@ Caused by: java.net.ConnectException: Connection refused: getsockopt
 2026-07-15 12:16:01.968 [tomcat-handler-29] WARN  c.p.p.c.e.GlobalExceptionHandler - 业务异常 [/api/v1/payment/account] 400: 开通资金记账本失败: Business Failed
 2026-07-15 12:16:32.657 [scheduling-1] INFO  c.p.p.m.p.f.s.F2fTradePollScheduler - [收款轮询] 定时任务开始执行
 2026-07-15 12:16:32.703 [scheduling-1] INFO  c.p.p.m.p.f.s.F2fTradePollScheduler - [收款轮询] 无待轮询交易
+2026-07-15 12:17:32.709 [scheduling-1] INFO  c.p.p.m.p.f.s.F2fTradePollScheduler - [收款轮询] 定时任务开始执行
+2026-07-15 12:17:32.751 [scheduling-1] INFO  c.p.p.m.p.f.s.F2fTradePollScheduler - [收款轮询] 无待轮询交易
+2026-07-15 12:18:32.762 [scheduling-1] INFO  c.p.p.m.p.f.s.F2fTradePollScheduler - [收款轮询] 定时任务开始执行
+2026-07-15 12:18:32.804 [scheduling-1] INFO  c.p.p.m.p.f.s.F2fTradePollScheduler - [收款轮询] 无待轮询交易