From 1be1b02ce28638c92076e4d40afec70a3f4c2249 Mon Sep 17 00:00:00 2001 From: haoxuan <haoxuan> Date: 星期二, 07 五月 2024 14:37:02 +0800 Subject: [PATCH] 产品模块 启用多单位点击取消关闭复选框+点击确定的时候增加至少填写一项的校验 --- src/api/overview/overview.js | 39 +++++++++++++++++++++++++++++++++------ 1 files changed, 33 insertions(+), 6 deletions(-) diff --git a/src/api/overview/overview.js b/src/api/overview/overview.js index 3e2190b..2d4edd5 100644 --- a/src/api/overview/overview.js +++ b/src/api/overview/overview.js @@ -1,15 +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 = async (data) => { - return await axios.get(`/api-wms/v1/operationType/listTransfer`, { +export const getListTransfer = (data) => { + return request({ + url: "/api-wms/v1/operationType/listTransfer", + method: "get", params: data }) } @@ -78,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({ @@ -96,3 +106,20 @@ 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