二手回收后台,师傅端,用户端
刘帅
2026-09-02 5705e8e4e52a10e441f02e5950df8310619c9c5f
易仓修改:财务页面+货品分析
3个文件已修改
46 ■■■■■ 已修改文件
fiance-management/src/pages/finance/index.jsx 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
vue-haoyuneasy/src/views/statement/components/PieChart.vue 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
vue-haoyuneasy/src/views/statement/index.vue 20 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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) => {
                  // 这里可以添加密码验证逻辑
vue-haoyuneasy/src/views/statement/components/PieChart.vue
@@ -30,6 +30,10 @@
    reportData: {
      type: Object,
      default: () => ({})
    },
    showLabels: {
      type: Boolean,
      default: true
    }
  },
  data() {
@@ -85,13 +89,13 @@
            center: ['40%', '65%'],
            data: this.getChartData(),
            label: {
              show: true,
              show: this.showLabels,
              formatter: '{b}\n{c}',
              alignTo: 'labelLine',
              edgeDistance: 10
            },
            labelLine: {
              show: true,
              show: this.showLabels,
              length: 15,
              length2: 10
            },
vue-haoyuneasy/src/views/statement/index.vue
@@ -49,10 +49,10 @@
        <el-row :gutter="20" style="margin-top: 10px;">
          <el-col :span="24">
            <pie-chart :title="'出库数据占比'" :report-data="reportData ? reportData.outStoreCart : {}" />
            <pie-chart :title="'出库数据占比'" :report-data="reportData ? reportData.outStoreCart : {}" :show-labels="false" />
          </el-col>
          <el-col :span="24">
            <pie-chart :title="'入库数据占比'" :report-data="reportData ? reportData.inStoreCart : {}" />
            <pie-chart :title="'入库数据占比'" :report-data="reportData ? reportData.inStoreCart : {}" :show-labels="false" />
          </el-col>
        </el-row>
@@ -64,6 +64,22 @@
      <!-- Right Column -->
      <el-col :xs="24" :sm="24" :lg="16">
        <div style="padding: 0 10px; height: 100%;">
          <el-row :gutter="20" style="margin-bottom: 20px;">
            <el-col :xs="24" :sm="12">
              <pie-chart
                :title="'仓库在库库存占比'"
                :report-data="reportData ? reportData.storeInStoreCart : {}"
                :show-labels="false"
              />
            </el-col>
            <el-col :xs="24" :sm="12">
              <pie-chart
                :title="'仓库占用资金占比'"
                :report-data="reportData ? reportData.storeOccupiedFundsCart : {}"
                :show-labels="false"
              />
            </el-col>
          </el-row>
          <bar-chart
            :occupied-funds-data="reportData ? reportData.occupiedFundsCart : {}"
          />