From d68b036a3b3c67273b8effa3c9925ef3869a91ba Mon Sep 17 00:00:00 2001
From: haoxuan <haoxuan>
Date: 星期三, 07 二月 2024 13:56:50 +0800
Subject: [PATCH] wms项目 wms系统参数设置的页面开发+路由+是否显示表头配置

---
 src/api/overview/overview.js |   62 ++++++++++++++++++++++++++----
 1 files changed, 53 insertions(+), 9 deletions(-)

diff --git a/src/api/overview/overview.js b/src/api/overview/overview.js
index e46a1ad..2d4edd5 100644
--- a/src/api/overview/overview.js
+++ b/src/api/overview/overview.js
@@ -1,9 +1,18 @@
 import request from "@/common/untils/request.js"
-import axios from "axios"
 
 // 鏌ヨ涓氬姟绫诲瀷鍒楄〃
-export const getOperationType = async (data) => {
-  return await axios.get(`/api-wms/v1/operationType/operationType`, {
+export const getOperationType =  (data) => {
+  return request({
+    url: "/api-wms/v1/operationType/operationType",
+    method: "get",
+    params: data
+  })
+}
+// 鏌ヨ涓氬姟绫诲瀷鍒楄〃--鍐呴儴璋冩嫧
+export const getListTransfer = (data) => {
+  return request({
+    url: "/api-wms/v1/operationType/listTransfer",
+    method: "get",
     params: data
   })
 }
@@ -33,9 +42,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 +68,8 @@
 // 缂栬緫鍏ュ簱/鍑哄簱
 export function updateOperation(data) {
   return request({
-    url: `/api-wms/v1/operation/operation/${data.id}`,
-    method: "put",
+    url: `/api-wms/v1/operation/update`,
+    method: "post",
     data
   })
 }
@@ -70,7 +81,14 @@
     id
   })
 }
-
+// 鍙栨秷-鐘舵�� 
+export function stateCancel(id) {
+  return request({
+    url: `/api-wms/v1/operation/cancel/${id}`,
+    method: "put",
+    id
+  })
+}
 // 鑾峰彇浣嶇疆鍒楄〃
 export function getLocationList(data) {
   return request({
@@ -79,3 +97,29 @@
     data
   })
 }
+
+// 鑾峰彇鍏ㄩ儴璋冩嫧鍒楄〃
+export function getAllList(data) {
+  return request({
+    url: "/api-wms/v1/operation/listTransfer",
+    method: "post",
+    data
+  })
+}
+
+// 鑾峰彇鐗╂祦鍏徃淇℃伅
+export const getLogisticCompanyList = (data) => {
+  return request({
+    url: "/api-wms/v1/operation/getLogisticCompanyList",
+    method: "get",
+    params: data
+  })
+}
+// 鎵撳嵃
+export function printReceipts(id) {
+  return request({
+    url: `/api-wms/v1/operation/outputOperation/${id}`,
+    method: "put",
+    id
+  })
+}
\ No newline at end of file

--
Gitblit v1.8.0