From e267aaa1629571bf8fc6cdcf80152c5558342425 Mon Sep 17 00:00:00 2001 From: haoxuan <haoxuan> Date: 星期四, 21 九月 2023 16:52:26 +0800 Subject: [PATCH] Merge branch 'master' of http://192.168.5.5:10010/r/web/WMS --- src/api/overview/overview.js | 81 ++++++++++++++++++++++++++++++++++++++++ 1 files changed, 81 insertions(+), 0 deletions(-) diff --git a/src/api/overview/overview.js b/src/api/overview/overview.js new file mode 100644 index 0000000..e46a1ad --- /dev/null +++ b/src/api/overview/overview.js @@ -0,0 +1,81 @@ +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`, { + params: data + }) +} +// 娣诲姞涓氬姟绫诲瀷 +export function addOperationType(data) { + return request({ + url: "/api-wms/v1/operationType/operationType", + method: "post", + data + }) +} +// 鍒犻櫎涓氬姟绫诲瀷 +export function deleteOperationType(id) { + return request({ + url: `/api-wms/v1/operationType/operationType/${id}`, + method: "delete", + id + }) +} +// 缂栬緫涓氬姟绫诲瀷 +export function updateOperationType(data) { + return request({ + url: `/api-wms/v1/operationType/operationType/${data.id}`, + method: "put", + data + }) +} + +// 鏌ヨ鍏ュ簱/鍑哄簱鍒楄〃 +export const getOperation = async (data) => { + return await axios.get(`/api-wms/v1/operation/operation`, { + params: data + }) +} +// 娣诲姞鍏ュ簱/鍑哄簱 +export function addOperation(data) { + return request({ + url: "/api-wms/v1/operation/operation", + method: "post", + data + }) +} +// 鍒犻櫎鍏ュ簱/鍑哄簱 +export function deleteOperation(id) { + return request({ + url: `/api-wms/v1/operation/operation/${id}`, + method: "delete", + id + }) +} +// 缂栬緫鍏ュ簱/鍑哄簱 +export function updateOperation(data) { + return request({ + url: `/api-wms/v1/operation/operation/${data.id}`, + method: "put", + 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 + }) +} -- Gitblit v1.8.0