From 80dd2bebbe3d204cc7833a4793aba67bba356b1d Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期一, 24 三月 2025 19:19:20 +0800
Subject: [PATCH] feat: 页面
---
src/views/Home/Home.vue | 66 ++++++++++-----------------------
1 files changed, 20 insertions(+), 46 deletions(-)
diff --git a/src/views/Home/Home.vue b/src/views/Home/Home.vue
index 6f780af..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';
@@ -124,14 +106,11 @@
const operationBtns = defineOperationBtns([
{
data: {
- enCode: 'downloadBtn',
- name: '淇濆崟涓嬭浇',
+ enCode: 'detailBtn',
+ name: '璇︽儏',
},
emits: {
- onClick: (role) => handleDownloadOrderNo(role),
- },
- extraProps: {
- hide: (row: API.InsuranceOrderListOutput) => !row.orderBillFile,
+ onClick: (role) => handleDetail(role),
},
},
{
@@ -154,17 +133,20 @@
emits: {
onClick: (role) => handleUploadStampFile(role),
},
- extraProps: {
- hide: (row: API.InsuranceOrderListOutput) => !row.orderBillFile,
- },
+ // extraProps: {
+ // hide: (row: API.InsuranceOrderListOutput) => !row.orderBillFile,
+ // },
},
{
data: {
- enCode: 'detailBtn',
- name: '璇︽儏',
+ enCode: 'downloadBtn',
+ name: '淇濆崟涓嬭浇',
},
emits: {
- onClick: (role) => handleDetail(role),
+ onClick: (role) => handleDownloadOrderNo(role),
+ },
+ extraProps: {
+ hide: (row: API.InsuranceOrderListOutput) => !row.orderBillFile,
},
},
]).filter(Boolean);
@@ -218,14 +200,6 @@
format: 'YYYY/MM/DD',
},
},
- showSummary: true,
- summaryPropertys: [
- {
- property: 'table-operation',
- valueKey: 'totalAmount',
- formatter: (v) => `锟�${toThousand(v)}`,
- },
- ],
}
);
@@ -294,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.10.0