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/Home.vue | 40 +++++++++++-----------------------------
1 files changed, 11 insertions(+), 29 deletions(-)
diff --git a/src/views/Home/Home.vue b/src/views/Home/Home.vue
index f98ab8e..c2442aa 100644
--- a/src/views/Home/Home.vue
+++ b/src/views/Home/Home.vue
@@ -44,25 +44,16 @@
</QueryFilterItem>
</template>
<template #btn>
- <el-button
- @click="handleDownload()"
- icon="Download"
- type="primary"
- style="margin-right: 10px"
- link
+ <el-button @click="handleDownload()" type="primary" style="margin-right: 10px" link
>妯℃澘涓嬭浇</el-button
>
- <el-button @click="handleUpload()" icon="Upload" type="primary" style="margin-right: 10px"
+ <el-button @click="handleUpload()" type="primary" style="margin-right: 10px"
>瀵煎叆</el-button
>
- <el-button @click="downloadInsureOrder()" type="primary" icon="Download" link
- >瀵煎嚭淇濆崟鍒楄〃</el-button
- >
- <el-button @click="downloadInsurePerson()" icon="Download" type="primary" link
- >瀵煎嚭鍦ㄤ繚浜哄憳</el-button
- >
+ <el-button @click="downloadInsureOrder()" type="primary" link>瀵煎嚭淇濆崟鍒楄〃</el-button>
+ <el-button @click="downloadInsurePerson()" type="primary" link>瀵煎嚭鍦ㄤ繚浜哄憳</el-button>
</template>
</ProTableQueryFilterBar>
<ProTableV2
@@ -92,10 +83,8 @@
useTable,
useFormDialog,
FieldDatePicker,
- BlFileUpload,
defineOperationBtns,
UploadUserFile,
- XLSXUtils,
SearchInput,
FieldRadio,
} from '@bole-core/components';
@@ -104,16 +93,9 @@
import { columns } from './constants';
import UploadInsurePersonDialog from './components/UploadInsurePersonDialog.vue';
import UploadStampFileDialog from './components/UploadStampFileDialog.vue';
-import { toThousand, format, downloadFile, setOSSLink } from '@/utils';
-import { omit } from 'lodash';
+import { format, downloadFile, setOSSLink } from '@/utils';
import { ModelValueType } from 'element-plus';
-import { useQueryClient } from '@tanstack/vue-query';
-import {
- InsuranceOrderTempPath,
- JYBInsuranceOrderTempPath,
- OnJobFlagEnumText,
- insuranceTypeText,
-} from '@/constants';
+import { InsuranceOrderTempPath, OnJobFlagEnumText, insuranceTypeText } from '@/constants';
import dayjs from 'dayjs';
import _ from 'lodash';
@@ -139,9 +121,9 @@
emits: {
onClick: (role) => handleBatch(role),
},
- extraProps: {
- hide: (row: API.InsuranceOrderListOutput) => !row.orderBillFile,
- },
+ // extraProps: {
+ // hide: (row: API.InsuranceOrderListOutput) => !row.orderBillFile,
+ // },
},
{
data: {
@@ -286,10 +268,10 @@
}
function handleDownload() {
- downloadFileByUrl(JYBInsuranceOrderTempPath, '淇濆崟瀵煎叆妯℃澘');
+ downloadFileByUrl(InsuranceOrderTempPath, '淇濆崟瀵煎叆妯℃澘');
}
-function handleRowStyle(data: { row: API.InsuranceOrderListOutput; rowIndex: number }) {
+function handleRowStyle(data: { row: API.InsuranceOrderListOutput }) {
if (
dayjs(dayjs(data.row?.insuranceEndTime).format('YYYY-MM-DD')).diff(dayjs(), 'day') >= 0 &&
dayjs(dayjs(data.row?.insuranceEndTime).format('YYYY-MM-DD')).diff(dayjs(), 'day') < 6
--
Gitblit v1.9.1