From 51284e1f9a4b13fbdaf7a403a801dc8ddad9ca2d Mon Sep 17 00:00:00 2001
From: 张诺 <zhang_12370@163.com>
Date: 星期四, 29 一月 2026 17:06:03 +0800
Subject: [PATCH] 调整质量管理模块页面 表单功能完善
---
src/api/viewIndex.js | 91 +++++++++++++++++++++++++++++++++++++++++++--
1 files changed, 87 insertions(+), 4 deletions(-)
diff --git a/src/api/viewIndex.js b/src/api/viewIndex.js
index 5b00295..b003dbf 100644
--- a/src/api/viewIndex.js
+++ b/src/api/viewIndex.js
@@ -57,18 +57,101 @@
//鍦ㄥ埗鍝佸懆杞儏鍐�
//home/workInProcessTurnover
-export const getWorkInProcessTurnover= ()=>{
+export const getWorkInProcessTurnover = () => {
return request({
url: '/home/workInProcessTurnover',
method: 'get'
})
}
-// 浜у搧澶х被鍒嗗竷
-// /home/productCategoryDistribution
+// 瀹㈡埛钀ユ敹璐$尞鏁板�煎垎鏋�
+export const customerRevenueAnalysis = (params) => {
+ return request({
+ url: '/home/customerRevenueAnalysis',
+ method: 'get',
+ params
+ })
+}
+
+// 鍛樺伐-瀹㈡埛-渚涘簲鍟嗘�绘暟
+export const summaryStatistics = () => {
+ return request({
+ url: '/home/summaryStatistics',
+ method: 'get'
+ })
+}
+
+// 鍚勯儴闂ㄤ汉鍛樺垎甯�
+export const deptStaffDistribution = () => {
+ return request({
+ url: '/home/deptStaffDistribution',
+ method: 'get'
+ })
+}
+
+// 渚涘簲鍟嗛噰璐帓鍚�
+export const supplierPurchaseRanking = (query) => {
+ return request({
+ url: '/home/supplierPurchaseRanking',
+ method: 'get',
+ params: query
+ })
+}
+
+// 瀹㈡埛閲戦璐$尞鎺掑悕
+export const customerContributionRanking = (query) => {
+ return request({
+ url: '/home/customerContributionRanking',
+ method: 'get',
+ params: query
+ })
+}
+
+// 鍚勪骇鍝佸ぇ绫诲垎甯�
export const productCategoryDistribution = () => {
return request({
url: '/home/productCategoryDistribution',
method: 'get'
})
-}
\ No newline at end of file
+}
+
+// 浜у搧閿�鍞噾棰濆垎鏋�
+export const productSalesAnalysis = () => {
+ return request({
+ url: '/home/productSalesAnalysis',
+ method: 'get'
+ })
+}
+
+// 鍘熸潗鏂欓噰璐噾棰濆崰姣�
+export const rawMaterialPurchaseAmountRatio = () => {
+ return request({
+ url: '/home/rawMaterialPurchaseAmountRatio',
+ method: 'get'
+ })
+}
+
+// 閿�鍞�/閲囪喘/鍌ㄥ瓨浜у搧鏁�
+export const salesPurchaseStorageProductCount = () => {
+ return request({
+ url: '/home/salesPurchaseStorageProductCount',
+ method: 'get'
+ })
+}
+
+// 浜у搧鍑哄叆搴撳垎鏋愶紙鍙紶 productType: 1 鍘熸潗鏂� 2 鍗婃垚鍝� 3 鎴愬搧锛�
+export const productInOutAnalysis = (params) => {
+ return request({
+ url: '/home/productInOutAnalysis',
+ method: 'get',
+ params
+ })
+}
+
+// 浜у搧鍛ㄨ浆澶╂暟
+export const productTurnoverDays = () => {
+ return request({
+ url: '/home/productTurnoverDays',
+ method: 'get'
+ })
+}
--
Gitblit v1.9.3