From 060fd5485eb03d2ecb252835a57a9be4a709c870 Mon Sep 17 00:00:00 2001
From: fyy <2717885210@qq.com>
Date: Fri, 22 Aug 2025 12:59:03 +0800
Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A4=84=E7=90=86=E6=9D=83=E9=99=90?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../workforceManagement/calendarView.vue | 7 +++-
.../chargeManagement/index.vue | 10 +++---
.../leasePogramManagement/index.vue | 34 +++++++++++++------
.../orderManagement/index.vue | 26 ++++++++------
4 files changed, 51 insertions(+), 26 deletions(-)
diff --git a/apps/web-antd/src/views/property/attendanceManagement/workforceManagement/calendarView.vue b/apps/web-antd/src/views/property/attendanceManagement/workforceManagement/calendarView.vue
index 6f33ca09..49c90e9d 100644
--- a/apps/web-antd/src/views/property/attendanceManagement/workforceManagement/calendarView.vue
+++ b/apps/web-antd/src/views/property/attendanceManagement/workforceManagement/calendarView.vue
@@ -276,7 +276,7 @@ defineExpose({
@@ -295,12 +295,16 @@ defineExpose({
编辑
删除
@@ -311,6 +315,7 @@ defineExpose({
v-if="getListData2(current).length > 0"
style="margin-left: 4px; color: #1890ff; cursor: pointer"
@click.stop="handleViewDateDetails(current)"
+ v-access:code="['Property:userGroup:queryScheduleView']"
>
详情
diff --git a/apps/web-antd/src/views/property/greenPlantRentalManagement/chargeManagement/index.vue b/apps/web-antd/src/views/property/greenPlantRentalManagement/chargeManagement/index.vue
index c83ac167..41bc1990 100644
--- a/apps/web-antd/src/views/property/greenPlantRentalManagement/chargeManagement/index.vue
+++ b/apps/web-antd/src/views/property/greenPlantRentalManagement/chargeManagement/index.vue
@@ -6,7 +6,7 @@ import { $t } from '@vben/locales';
import {
useVbenVxeGrid,
vxeCheckboxChecked,
- type VxeGridProps
+ type VxeGridProps,
} from '#/adapter/vxe-table';
import {
orderChargeList,
@@ -51,7 +51,7 @@ const gridOptions: VxeGridProps = {
rowConfig: {
keyField: 'id',
},
- id: 'property-orderCharge-index'
+ id: 'property-orderCharge-index',
};
const [BasicTable, tableApi] = useVbenVxeGrid({
@@ -112,7 +112,8 @@ function handleMultiDelete() {
danger
type="primary"
v-access:code="['property:orderCharge:remove']"
- @click="handleMultiDelete">
+ @click="handleMultiDelete"
+ >
{{ $t('pages.common.delete') }}
{{ $t('pages.common.info') }}
@@ -155,6 +157,6 @@ function handleMultiDelete() {
-
+
diff --git a/apps/web-antd/src/views/property/greenPlantRentalManagement/leasePogramManagement/index.vue b/apps/web-antd/src/views/property/greenPlantRentalManagement/leasePogramManagement/index.vue
index ec31daa2..64450c18 100644
--- a/apps/web-antd/src/views/property/greenPlantRentalManagement/leasePogramManagement/index.vue
+++ b/apps/web-antd/src/views/property/greenPlantRentalManagement/leasePogramManagement/index.vue
@@ -6,13 +6,13 @@ import { ref } from 'vue';
import { Page, useVbenModal, type VbenFormProps } from '@vben/common-ui';
import { getVxePopupContainer } from '@vben/utils';
-import { Modal, Popconfirm, Space,Tag } from 'ant-design-vue';
+import { Modal, Popconfirm, Space, Tag } from 'ant-design-vue';
import dayjs from 'dayjs';
import {
useVbenVxeGrid,
vxeCheckboxChecked,
- type VxeGridProps
+ type VxeGridProps,
} from '#/adapter/vxe-table';
import {
@@ -76,7 +76,7 @@ const gridOptions: VxeGridProps = {
keyField: 'id',
},
// 表格全局唯一表示 保存列配置需要用到
- id: 'property-rentalPlan-index'
+ id: 'property-rentalPlan-index',
};
const [BasicTable, tableApi] = useVbenVxeGrid({
@@ -103,7 +103,7 @@ async function handleDelete(row: Required) {
await tableApi.query();
}
async function handleView(row: Required) {
- modalApi.setData({ id: row.id, readonly: true,});
+ modalApi.setData({ id: row.id, readonly: true });
modalApi.open();
}
function handleMultiDelete() {
@@ -121,11 +121,15 @@ function handleMultiDelete() {
}
function handleDownloadExcel() {
- commonDownloadExcel(rentalPlanExport, '绿植租赁-租赁方案数据', tableApi.formApi.form.values, {
- fieldMappingTime: formOptions.fieldMappingTime,
- });
+ commonDownloadExcel(
+ rentalPlanExport,
+ '绿植租赁-租赁方案数据',
+ tableApi.formApi.form.values,
+ {
+ fieldMappingTime: formOptions.fieldMappingTime,
+ },
+ );
}
-
@@ -144,7 +148,8 @@ function handleDownloadExcel() {
danger
type="primary"
v-access:code="['property:rentalPlan:remove']"
- @click="handleMultiDelete">
+ @click="handleMultiDelete"
+ >
{{ $t('pages.common.delete') }}
- {{ row.rentalPeriod == 0?'月':row.rentalPeriod == 1 ? '季度':'年' }}
+ {{
+ row.rentalPeriod == 0 ? '月' : row.rentalPeriod == 1 ? '季度' : '年'
+ }}
@@ -167,7 +174,12 @@ function handleDownloadExcel() {
- 查看
+
+ 查看
+
-
import { Page, useVbenModal, type VbenFormProps } from '@vben/common-ui';
import { getVxePopupContainer } from '@vben/utils';
@@ -8,7 +7,7 @@ import { Modal, Popconfirm, Space } from 'ant-design-vue';
import {
useVbenVxeGrid,
vxeCheckboxChecked,
- type VxeGridProps
+ type VxeGridProps,
} from '#/adapter/vxe-table';
import {
@@ -62,7 +61,7 @@ const gridOptions: VxeGridProps = {
keyField: 'id',
},
// 表格全局唯一表示 保存列配置需要用到
- id: 'property-rentalOrder-index'
+ id: 'property-rentalOrder-index',
};
const [BasicTable, tableApi] = useVbenVxeGrid({
@@ -108,9 +107,14 @@ function handleMultiDelete() {
}
function handleDownloadExcel() {
- commonDownloadExcel(rentalOrderExport, '绿植租赁-订单管理数据', tableApi.formApi.form.values, {
- fieldMappingTime: formOptions.fieldMappingTime,
- });
+ commonDownloadExcel(
+ rentalOrderExport,
+ '绿植租赁-订单管理数据',
+ tableApi.formApi.form.values,
+ {
+ fieldMappingTime: formOptions.fieldMappingTime,
+ },
+ );
}
@@ -130,7 +134,8 @@ function handleDownloadExcel() {
danger
type="primary"
v-access:code="['property:rentalOrder:remove']"
- @click="handleMultiDelete">
+ @click="handleMultiDelete"
+ >
{{ $t('pages.common.delete') }}
+ v-access:code="['property:rentalOrder:query']"
+ @click.stop="handleInfo(row)"
+ >
{{ $t('pages.common.info') }}