From 5384750e59bbb27c54e090100429c48eaba46df0 Mon Sep 17 00:00:00 2001
From: spring <2396852758@qq.com>
Date: 星期四, 20 十一月 2025 10:15:20 +0800
Subject: [PATCH] fix: 完成拉丝自检、原材料自检优化
---
src/api/product/manage.ts | 101 +++++++++++++++++++++++++++++++++++++++++++++++++-
1 files changed, 98 insertions(+), 3 deletions(-)
diff --git a/src/api/product/manage.ts b/src/api/product/manage.ts
index a8dad1b..e0a6c5b 100644
--- a/src/api/product/manage.ts
+++ b/src/api/product/manage.ts
@@ -19,12 +19,47 @@
});
},
- // 鏌ヨ鑷淇℃伅
- getSelfInspection(params: any) {
+ // 鑾峰彇鎶ュ伐璇︽儏锛堝寘鍚檮浠禝D锛�
+ getReportDetail(params: { id: number }) {
return request<BaseResult<any>>({
- url: "/app/getSelfInspection",
+ url: "/app/getReportDetail",
method: "GET",
data: params,
+ });
+ },
+
+ // 鏌ヨ鑷淇℃伅
+ getSelfInspection(data: any) {
+ return request<BaseResult<any[]>>({
+ url: "/wireInspection/getDrawInspectInfoListByGetDrawInspect",
+ method: "POST",
+ data: data,
+ });
+ },
+
+ // 鏂板鑷
+ addSelfInspection(data: any) {
+ return request<BaseResult<any[]>>({
+ url: "/wireInspection/saveDrawInspectionRecord",
+ method: "POST",
+ data: data,
+ });
+ },
+
+ // 鍒犻櫎鑷
+ deleteSelfInspection(ids: string | number) {
+ return request<BaseResult<any[]>>({
+ url: `/wireInspection/deleteDrawWireInspectionRecord/${ids}`,
+ method: "POST",
+ });
+ },
+
+ // 鑾峰彇鑷鏍峰紡鏁版嵁
+ getDrawInspectStyleByGetDrawInspect(data: any) {
+ return request<BaseResult<any[]>>({
+ url: "/wireInspection/getDrawInspectStyleByGetDrawInspect",
+ method: "POST",
+ data: data,
});
},
@@ -36,6 +71,66 @@
data: params,
});
},
+
+ // 鏌ヨ鏉傚伐淇℃伅
+ getBackmanDetail(params: any) {
+ return request<BaseResult<any>>({
+ url: "/app/getBackmanDetail",
+ method: "GET",
+ data: params,
+ });
+ },
+
+ // 鑾峰彇鏉傚伐椤圭洰
+ getBackmanDetailByType(params: any) {
+ return request<BaseResult<any>>({
+ url: "/app/getBackmanDetailByType",
+ method: "GET",
+ data: params,
+ });
+ },
+ addBackmanDetail(params: any) {
+ return request<BaseResult<any>>({
+ url: "/app/addBackmanDetail",
+ method: "POST",
+ data: params,
+ });
+ },
+
+ //鎷変笣鎶ュ伐鍓嶇敓浜х‘璁�
+ queryWireRawMaterialInspect(params: any) {
+ return request<BaseResult<any>>({
+ url: "/wireInspection/queryWireRawMaterialInspect/",
+ method: "GET",
+ data: params,
+ });
+ },
+
+ // 鏂板鎷変笣鍘熸潗鏂欓鐢�
+ addWireRawMaterialInspect(data: any) {
+ return request<BaseResult<any>>({
+ url: "/wireInspection/saveWireRawMaterialInspect",
+ method: "POST",
+ data: data,
+ });
+ },
+
+ //鏁版嵁瀛楀吀
+ dictAPI(type: string) {
+ return request<BaseResult<any>>({
+ url: "/system/dict/data/type/" + type,
+ method: "GET",
+ });
+ },
+
+ // 鑾峰彇鐢熶骇缁熻
+ getProductStatistics(params: any) {
+ return request<BaseResult<any>>({
+ url: "/app/getProductStatistics",
+ method: "GET",
+ data: params,
+ });
+ },
};
export default ManageApi;
--
Gitblit v1.9.3