From 5ec8805b2728d9b98383f2b2cdb3298ac3864286 Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期一, 11 八月 2025 17:46:12 +0800
Subject: [PATCH] feat: 接口

---
 src/views/ServiceChargeManage/ServiceChargeManage.vue |   26 +++++++++++++++++++-------
 1 files changed, 19 insertions(+), 7 deletions(-)

diff --git a/src/views/ServiceChargeManage/ServiceChargeManage.vue b/src/views/ServiceChargeManage/ServiceChargeManage.vue
index 5041efb..ad975a6 100644
--- a/src/views/ServiceChargeManage/ServiceChargeManage.vue
+++ b/src/views/ServiceChargeManage/ServiceChargeManage.vue
@@ -52,7 +52,18 @@
         </template>
         <template #btn>
           <el-button type="primary" link @click="handleDownloadTemplate()">缁撶畻鍗曟ā鏉�</el-button>
-          <el-button type="primary" @click="handleDownloadTemplate()">涓婁紶缁撶畻鍗�</el-button>
+          <BlFileUpload
+            :limitFileSize="10"
+            accept="xls,xlsx"
+            :showTip="false"
+            :show-file-list="false"
+            :on-success="handleUploadSuccess"
+            style="margin-right: 10px; margin-left: 10px"
+          >
+            <template #default>
+              <el-button type="primary">涓婁紶缁撶畻鍗�</el-button>
+            </template>
+          </BlFileUpload>
           <el-button type="primary" @click="handleDownloadTemplate()">瀵煎嚭</el-button>
         </template>
       </ProTableQueryFilterBar>
@@ -94,15 +105,14 @@
   FieldRadio,
   defineOperationBtns,
   BlFileUpload,
+  UploadUserFile,
 } from '@bole-core/components';
-import * as flexEnterpriseServices from '@/services/api/FlexEnterprise';
 import { ServiceChargeManageColumns } from './constants';
 import { FlexEnterpriseSettingStatus, Gender } from '@/constants';
-import { OrderInputType } from '@bole-core/core';
 import { downloadFileByUrl } from '@/utils';
 
 defineOptions({
-  name: 'ServiceChargeManage',
+  name: 'ServiceChargeManageList',
 });
 
 const operationBtns = defineOperationBtns([
@@ -184,7 +194,7 @@
   {
     defaultExtraParams: {
       searchWord: '',
-      orderInput: [{ property: 'id', order: OrderInputType.Desc }],
+      orderInput: [{ property: 'id', order: EnumPagedListOrder.Desc }],
       flexEnterpriseSettingStatus: '' as any as FlexEnterpriseSettingStatus,
     },
     queryKey: ['flexEnterpriseServices/getFlexEnterpriseList'],
@@ -195,7 +205,7 @@
 function goSettle(row) {
   router.push({
     name: 'ServiceChargeSettle',
-    query: {
+    params: {
       id: row.id,
     },
   });
@@ -204,12 +214,14 @@
 function goDetail(row) {
   router.push({
     name: 'ServiceChargeDetail',
-    query: {
+    params: {
       id: row.id,
     },
   });
 }
 
+function handleUploadSuccess(response: UploadUserFile) {}
+
 function handleUpload(val, row) {
   console.log('val: ', val);
 }

--
Gitblit v1.9.1