From ee36747f2db9ac3a641e1cbaeb01f726ce9faa98 Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期一, 24 三月 2025 16:02:28 +0800
Subject: [PATCH] feat: 页面

---
 src/views/Home/components/InsureOrderInfoView.vue |   62 +++++++++++++++++--------------
 1 files changed, 34 insertions(+), 28 deletions(-)

diff --git a/src/views/Home/components/InsureOrderInfoView.vue b/src/views/Home/components/InsureOrderInfoView.vue
index 57ab2cf..7656760 100644
--- a/src/views/Home/components/InsureOrderInfoView.vue
+++ b/src/views/Home/components/InsureOrderInfoView.vue
@@ -80,17 +80,11 @@
             </QueryFilterItem>
           </template>
           <template #btn>
-            <el-button @click="handleTemplateDownload()" icon="Download" type="primary"
-              >妯℃澘涓嬭浇</el-button
-            >
-            <el-button @click="handleImport()" icon="Download" type="primary">瀵煎叆</el-button>
-            <el-button @click="handleClear()" icon="Download" type="primary">娓呯┖鏁版嵁</el-button>
-            <el-button @click="handleDownloadPerson()" icon="Download" type="primary"
-              >浜哄憳娓呭崟涓嬭浇</el-button
-            >
-            <el-button @click="handleDownloadOrder()" icon="Download" type="primary"
-              >淇濆崟涓嬭浇</el-button
-            >
+            <el-button @click="handleTemplateDownload()" link type="primary">妯℃澘涓嬭浇</el-button>
+            <el-button @click="handleImport()" type="primary">瀵煎叆</el-button>
+            <el-button @click="handleClear()" type="primary">娓呯┖鏁版嵁</el-button>
+            <el-button @click="handleDownloadPerson()" type="primary">浜哄憳娓呭崟涓嬭浇</el-button>
+            <el-button @click="handleDownloadOrder()" type="primary">淇濆崟涓嬭浇</el-button>
           </template>
         </ProTableQueryFilterBar>
         <ProTableV2
@@ -131,11 +125,11 @@
   defineOperationBtns,
   useFormDialog,
 } from '@bole-core/components';
-import { insuranceTypeText } from '@/constants';
+import { InsuranceOrderTempPath, insuranceTypeText } from '@/constants';
 import ChangePersonInfoDialog from './ChangePersonInfoDialog.vue';
 import * as insuranceOrderServices from '@/services/api/InsuranceOrder';
 import { useQuery, useQueryClient } from '@tanstack/vue-query';
-import { OrderInputType } from '@bole-core/core';
+import { downloadFileByUrl, OrderInputType } from '@bole-core/core';
 
 defineOptions({
   name: 'InsureOrderInfoView',
@@ -208,9 +202,9 @@
     emits: {
       onClick: (role) => handleChangeInfo(role),
     },
-    extraProps: {
-      hide: (row: API.InsuranceOrderListOutput) => !row.orderBillFile,
-    },
+    // extraProps: {
+    //   hide: (row: API.InsuranceOrderListOutput) => !row.orderBillFile,
+    // },
   },
   {
     data: {
@@ -218,11 +212,11 @@
       name: '鐞嗚禂璇︽儏',
     },
     emits: {
-      onClick: (role) => handleInsureClaimDetail(),
+      onClick: (role) => handleInsureClaimDetail(role),
     },
-    extraProps: {
-      hide: (row: API.InsuranceOrderListOutput) => !row.orderBillFile,
-    },
+    // extraProps: {
+    //   hide: (row: API.InsuranceOrderListOutput) => !row.orderBillFile,
+    // },
   },
 ]);
 
@@ -292,19 +286,21 @@
   }
 );
 
-function handleTemplateDownload() {}
+function handleTemplateDownload() {
+  downloadFileByUrl(InsuranceOrderTempPath, '浜哄憳淇℃伅妯℃澘');
+}
 function handleClear() {}
 function handleImport() {}
 
 function handleDownloadPerson() {}
 function handleDownloadOrder() {}
 function handleBatchChange() {
-  // router.push({
-  //   name: 'BatchChange',
-  //   params: {
-  //     id: id,
-  //   },
-  // });
+  router.push({
+    name: 'BatchChange',
+    params: {
+      id: id,
+    },
+  });
 }
 
 const { dialogProps, handleEdit, editForm } = useFormDialog({
@@ -322,7 +318,17 @@
 
 async function changeInfo() {}
 
-function handleInsureClaimDetail() {}
+function handleInsureClaimDetail(row: API.InsuranceOrderListOutput) {
+  router.push({
+    name: 'InsuranceClaimDetail',
+    params: {
+      id: row.id,
+    },
+    query: {
+      fromRoute: 'InsuranceOrderDetail',
+    },
+  });
+}
 </script>
 
 <style lang="scss" scoped>

--
Gitblit v1.9.1