From ea87c908fb6cdfc3e227a584a53e6730efb8262a Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期四, 26 十月 2023 13:41:12 +0800
Subject: [PATCH] 小程序代码
---
screen_standard/src/utils/api.js | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++--
1 files changed, 53 insertions(+), 2 deletions(-)
diff --git a/screen_standard/src/utils/api.js b/screen_standard/src/utils/api.js
index 316267c..af29c7b 100644
--- a/screen_standard/src/utils/api.js
+++ b/screen_standard/src/utils/api.js
@@ -1,11 +1,62 @@
import axiosInstance from './request';
// 鍛樺伐浜у搧缁熻TOP10
-export function getTop (companyId, departId) {
- return axiosInstance.get(`statistics/userProduceTop/${companyId}/${departId}`)
+export function getTop (companyId, departId, params) {
+ return axiosInstance.get(`statistics/userProduceTop/${companyId}/${departId}`, { params })
}
// 鎴愬搧璁″垝-瀹炴椂浠撳簱浣欓噺缁熻
export function getStockList (companyId, departId) {
return axiosInstance.get(`statistics/getStockList/${companyId}/${departId}`)
+}
+
+// 鎴愬搧璁″垝杩涘害鏌ヨ
+export function getWorkPlansList (companyId, departId) {
+ return axiosInstance.get(`statistics/getWorkPlansList/${companyId}/${departId}`)
+}
+
+// 宸ュ簭璁″垝杩涘害鏌ヨ
+export function getProcedureProcessList (companyId, departId) {
+ return axiosInstance.get(`statistics/getProcedureProcessList/${companyId}/${departId}`)
+}
+
+// 鎶ュ伐鏃ュ織鍒嗛〉鏌ヨ
+export function getRecordLogPage (companyId, departId, data) {
+ return axiosInstance.post(`statistics/getRecordLogPage/${companyId}/${departId}`, data)
+}
+
+// 宸℃璁板綍鍒嗛〉鏌ヨ
+export function getDeviceCheckPage (companyId, departId, data) {
+ return axiosInstance.post(`statistics/getDeviceCheckPage/${companyId}/${departId}`, data)
+}
+
+// 杩�7澶╀笉鑹搧鍒嗗竷-涓嶈壇鍝佹暟閲忕粺璁�
+export function getUnqualified7DayData (companyId, departId, procedureId) {
+ return axiosInstance.get(`statistics/getUnqualified7DayData/${companyId}/${departId}?procedureId=${procedureId}`)
+}
+
+// 杩�7澶╀笉鑹搧鍒嗗竷-涓嶈壇鍝佹暟閲�-鎸変笉鑹」缁熻
+export function getUnqualifiedCateData (companyId, departId, procedureId) {
+ return axiosInstance.get(`statistics/getUnqualifiedCateData/${companyId}/${departId}?procedureId=${procedureId}`)
+}
+
+
+// 鏁版嵁缁熻-鎴愬搧璁″垝锛屾墽琛屼腑銆佸欢鏈熻鍒掓暟銆佷粖鏃ョ敓浜т汉鏁般�佷粖鏃ョ敓浜ц澶囨暟銆佷粖鏃ヤ笉鑹搧
+export function getProcedurePlansList (companyId, departId, params) {
+ return axiosInstance.get(`statistics/getProcedurePlansList/${companyId}/${departId}`, {params} )
+}
+
+// 鏌ヨ浼佷笟鍏ㄩ儴鍏徃閮ㄩ棬
+export function getDepartmentList (companyId) {
+ return axiosInstance.get(`statistics/getDepartmentList/${companyId}`)
+}
+
+// 鏁版嵁缁熻-鎴愬搧璁″垝锛屾墽琛屼腑銆佸欢鏈熻鍒掓暟銆佷粖鏃ョ敓浜т汉鏁般�佷粖鏃ョ敓浜ц澶囨暟銆佷粖鏃ヤ笉鑹搧
+export function getProcedurePlanData (companyId, departId, params) {
+ return axiosInstance.get(`statistics/getProcedurePlanData/${companyId}/${departId}`, {params} )
+}
+
+// 鏁版嵁缁熻-鎴愬搧璁″垝锛屾墽琛屼腑銆佸欢鏈熻鍒掓暟銆佷粖鏃ョ敓浜т汉鏁般�佷粖鏃ョ敓浜ц澶囨暟銆佷粖鏃ヤ笉鑹搧
+export function getPlanData (companyId, departId) {
+ return axiosInstance.get(`statistics/getPlanData/${companyId}/${departId}`)
}
\ No newline at end of file
--
Gitblit v1.9.3