From 5705e8e4e52a10e441f02e5950df8310619c9c5f Mon Sep 17 00:00:00 2001
From: 刘帅 <rr.iii@qq.com>
Date: 星期三, 02 九月 2026 17:28:01 +0800
Subject: [PATCH] 易仓修改:财务页面+货品分析
---
fiance-management/src/pages/finance/index.jsx | 18 +++++++++++++++++-
1 files changed, 17 insertions(+), 1 deletions(-)
diff --git a/fiance-management/src/pages/finance/index.jsx b/fiance-management/src/pages/finance/index.jsx
index 826698e..3553d12 100644
--- a/fiance-management/src/pages/finance/index.jsx
+++ b/fiance-management/src/pages/finance/index.jsx
@@ -6,6 +6,7 @@
import { exportExcell } from '@/utils/utils';
import { PageContainer, ProTable } from '@ant-design/pro-components';
import { Button, message, Modal, Select, Space, Upload } from 'antd';
+import moment from 'moment';
import { useEffect, useRef, useState } from 'react';
import Detail from './components/detail';
import Expenses from './components/expenses';
@@ -20,6 +21,9 @@
getWarehouseList,
update,
} from './service';
+
+const formatDate = (value) => (value ? moment(value).format('YYYY-MM-DD') : '-');
+
const Role = () => {
const actionRef = useRef();
const addViewRef = useRef();
@@ -133,6 +137,8 @@
title: '流水号',
dataIndex: 'serialNumber',
hideInSearch: true,
+ width: 100,
+ ellipsis: true,
},
{
title: '收支数据名称',
@@ -206,6 +212,8 @@
title: '支付/收入时间',
dataIndex: 'payTime',
hideInSearch: true,
+ width: 110,
+ render: (text) => formatDate(text),
},
{
title: '商品',
@@ -230,6 +238,8 @@
{
title: '操作人',
dataIndex: 'updateBy',
+ width: 64,
+ ellipsis: true,
},
{
title: '操作时间',
@@ -241,15 +251,19 @@
title: '操作时间',
dataIndex: 'updateTime',
hideInSearch: true,
+ width: 110,
+ render: (text) => formatDate(text),
},
{
title: '操作',
hideInSearch: true,
+ width: 138,
render: (text, record) => {
return (
- <Space>
+ <Space size={0}>
<Button
type="link"
+ style={{ paddingInline: 6 }}
onClick={() => {
addViewRef2.current.refreshData(record);
handleModalVisible2(true);
@@ -259,6 +273,7 @@
</Button>
<Button
type="link"
+ style={{ paddingInline: 6 }}
onClick={() => {
if (record.revenueType == 1) {
addViewRef1.current.refreshData(record);
@@ -273,6 +288,7 @@
</Button>
<Button
type="link"
+ style={{ paddingInline: 6 }}
onClick={() => {
showDelConfirmWithPassword(async (password) => {
// 这里可以添加密码验证逻辑
--
Gitblit v1.7.1