From 04489cc3864aa38fde8b539aee6c4c9eed6ab1d4 Mon Sep 17 00:00:00 2001
From: yangfeng <wanwan926_4@163.com>
Date: 星期四, 28 九月 2023 14:35:35 +0800
Subject: [PATCH] 解决产品列表报错
---
src/api/overview/overview.js | 36 ++++++++++++++++++++++++++++++++----
1 files changed, 32 insertions(+), 4 deletions(-)
diff --git a/src/api/overview/overview.js b/src/api/overview/overview.js
index 90d7bf6..51b6e6a 100644
--- a/src/api/overview/overview.js
+++ b/src/api/overview/overview.js
@@ -33,9 +33,11 @@
}
// 鏌ヨ鍏ュ簱/鍑哄簱鍒楄〃
-export const getOperation = async (data) => {
- return await axios.get(`/api-wms/v1/operation/operation`, {
- params: data
+export function getOperation(data) {
+ return request({
+ url: "/api-wms/v1/operation/list",
+ method: "post",
+ data
})
}
// 娣诲姞鍏ュ簱/鍑哄簱
@@ -57,8 +59,34 @@
// 缂栬緫鍏ュ簱/鍑哄簱
export function updateOperation(data) {
return request({
- url: `/api-wms/v1/operation/operation/${data.id}`,
+ url: `/api-wms/v1/operation/update`,
+ method: "post",
+ data
+ })
+}
+// 楠岃瘉 鏇存敼璁板綍鐘舵��
+export function updateStatus(id) {
+ return request({
+ url: `/api-wms/v1/operation/finish/${id}`,
method: "put",
+ id
+ })
+}
+
+// 鑾峰彇浣嶇疆鍒楄〃
+export function getLocationList(data) {
+ return request({
+ url: "/api-wms/v1/location/getLocationList",
+ method: "post",
+ data
+ })
+}
+
+// 鑾峰彇鍏ㄩ儴璋冩嫧鍒楄〃
+export function getAllList(data) {
+ return request({
+ url: "/api-wms/v1/operation/listAll",
+ method: "post",
data
})
}
--
Gitblit v1.8.0