From 557c2b3c50027c2eb6fb9f7e562fc2c7b2b38203 Mon Sep 17 00:00:00 2001
From: quxin <592870522@qq.com>
Date: 星期五, 04 九月 2026 11:37:17 +0800
Subject: [PATCH] 修复: 生产领料后的退料应该是选择领料的记录,不是选择库存的记录(同时库存数据需要根据领料退料变动,比如库存100,领用80,然后领用80中退料30,库存应由原来的20变成50)
---
src/views/crm/statistics/performance/index.vue | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/views/crm/statistics/performance/index.vue b/src/views/crm/statistics/performance/index.vue
index 45779ce..2c66fc3 100644
--- a/src/views/crm/statistics/performance/index.vue
+++ b/src/views/crm/statistics/performance/index.vue
@@ -1,14 +1,14 @@
<script lang="ts" setup>
-import type { EchartsUIType } from '../../../../packages/effects/plugins/src/echarts';
+import type { EchartsUIType } from '@vben/plugins/echarts';
import type { VxeTableGridOptions } from '#/adapter/vxe-table';
import type { CrmStatisticsCustomerApi } from '#/api/crm/statistics/customer';
import { onMounted, ref } from 'vue';
-import { ContentWrap, Page } from '../../../../packages/effects/common-ui/src';
-import { EchartsUI, useEcharts } from '../../../../packages/effects/plugins/src/echarts';
-import { beginOfDay, endOfDay, formatDateTime } from '../../../../packages/utils/src';
+import { ContentWrap, Page } from '@vben/common-ui';
+import { EchartsUI, useEcharts } from '@vben/plugins/echarts';
+import { beginOfDay, endOfDay, formatDateTime } from '@vben/utils';
import { Tabs } from 'ant-design-vue';
@@ -131,7 +131,7 @@
tableData[2][`field${index}`] = item.lastYearCount;
tableData[3][`field${index}`] =
item.lastMonthCount === 0
- ? 'NULL'
+ ? (item.currentMonthCount > 0 ? 100 : 0).toFixed(2)
: (
((item.currentMonthCount - item.lastMonthCount) /
item.lastMonthCount) *
@@ -139,7 +139,7 @@
).toFixed(2);
tableData[4][`field${index}`] =
item.lastYearCount === 0
- ? 'NULL'
+ ? (item.currentMonthCount > 0 ? 100 : 0).toFixed(2)
: (
((item.currentMonthCount - item.lastYearCount) /
item.lastYearCount) *
--
Gitblit v1.9.3