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 | 71 +++++++++++++++++++++++++++++++++--
1 files changed, 66 insertions(+), 5 deletions(-)
diff --git a/src/api/product/manage.ts b/src/api/product/manage.ts
index 5e8e99b..e0a6c5b 100644
--- a/src/api/product/manage.ts
+++ b/src/api/product/manage.ts
@@ -29,11 +29,37 @@
},
// 鏌ヨ鑷淇℃伅
- getSelfInspection(params: any) {
- return request<BaseResult<any>>({
- url: "/app/getSelfInspection",
- 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,
});
},
@@ -70,6 +96,41 @@
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