From b82019ffead8666dd2167c81b97f18d390b0cba5 Mon Sep 17 00:00:00 2001 From: haoxuan <haoxuan> Date: 星期一, 23 十月 2023 12:17:56 +0800 Subject: [PATCH] 概述的位置仓库 ,源位置,仓库位置 接口调整为查询对应仓库的位置 --- src/api/overview/overview.js | 38 +++++++++++++++++++++++++++++++++----- 1 files changed, 33 insertions(+), 5 deletions(-) diff --git a/src/api/overview/overview.js b/src/api/overview/overview.js index 90d7bf6..d7a3df0 100644 --- a/src/api/overview/overview.js +++ b/src/api/overview/overview.js @@ -3,7 +3,7 @@ // 鏌ヨ涓氬姟绫诲瀷鍒楄〃 export const getOperationType = async (data) => { - return await axios.get(`/api-wms/v1/operationType/operationType`, { + return await axios.get(`/api-wms/v1/operationType/listTransfer`, { params: data }) } @@ -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/listTransfer", + method: "post", data }) } -- Gitblit v1.8.0