From f3a89a121bc426ba522635835a0fb159a84a8f06 Mon Sep 17 00:00:00 2001 From: zuozhengqing <a13193816592@163.com> Date: 星期二, 07 十一月 2023 10:49:05 +0800 Subject: [PATCH] 库存报表跳转补货 --- src/api/overview/overview.js | 51 ++++++++++++++++++++++++++++++++++++++++++++------- 1 files changed, 44 insertions(+), 7 deletions(-) diff --git a/src/api/overview/overview.js b/src/api/overview/overview.js index 90d7bf6..2420df3 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,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