| | |
| | | import request from "@/common/untils/request.js" |
| | | import axios from "axios" |
| | | |
| | | // 仓库列表 |
| | | export const getWarehouseList = async (data) => { |
| | | return await axios.get(`/api-wms/v1/warehouse/warehouse`, { |
| | | export const getWarehouseList = (data) => { |
| | | return request({ |
| | | url: "/api-wms/v1/warehouse/warehouse", |
| | | method: "get", |
| | | params: data |
| | | }) |
| | | } |
| | |
| | | // 删除仓库 |
| | | export function deleteWarehouse(data) { |
| | | return request({ |
| | | url: "/api-wms/v1/warehouse/warehouse/"+data.id, |
| | | url: "/api-wms/v1/warehouse/warehouse/" + data.id, |
| | | method: "delete", |
| | | data |
| | | }) |
| | | } |
| | | // 更新仓库 |
| | | // 更新仓库 |
| | | export function updateWarehouse(data) { |
| | | return request({ |
| | | url: "/api-wms/v1/warehouse/warehouse/"+data.id, |
| | | method: "put", |
| | | url: "/api-wms/v1/warehouse/updateWarehouse", |
| | | method: "post", |
| | | data |
| | | }) |
| | | } |
| | | // 业务类型 列表 |
| | | export const getOperationTypeList = async (data) => { |
| | | return await axios.get(`/api-wms/v1/operationType/operationType`, { |
| | | export const getOperationTypeList = (data) => { |
| | | return request({ |
| | | url: "/api-wms/v1/operationType/operationType", |
| | | method: "get", |
| | | params: data |
| | | }) |
| | | } |
| | |
| | | // 删除业务类型 |
| | | export function deleteOperationType(data) { |
| | | return request({ |
| | | url: "/api-wms/v1/operationType/operationType/"+data.id, |
| | | url: "/api-wms/v1/operationType/operationType/" + data.id, |
| | | method: "delete", |
| | | data |
| | | }) |
| | | } |
| | | // 更新业务类型 |
| | | // 更新业务类型 |
| | | export function updateOperationType(data) { |
| | | return request({ |
| | | url: "/api-wms/v1/operationType/operationType/"+data.id, |
| | | url: "/api-wms/v1/operationType/operationType/" + data.id, |
| | | method: "put", |
| | | data |
| | | }) |
| | | } |
| | | // 位置 列表 |
| | | export function getLocationList(data) { |
| | | return request({ |
| | | url: "/api-wms/v1/location/getLocationList", |
| | | method: "post", |
| | | data |
| | | }) |
| | | } |
| | | // 创建位置 |
| | | export function addLocation(data) { |
| | | return request({ |
| | | url: "/api-wms/v1/location/addLocation", |
| | | method: "post", |
| | | data |
| | | }) |
| | | } |
| | | // 删除位置 |
| | | export function deleteLocation(data) { |
| | | return request({ |
| | | url: "/api-wms/v1/location/deleteLocation/" + data.id, |
| | | method: "delete", |
| | | data |
| | | }) |
| | | } |
| | | // 位置 详情 |
| | | export function getLocationDetails(data) { |
| | | return request({ |
| | | url: "/api-wms/v1/location/getLocationDetails/" + data.id, |
| | | method: "get", |
| | | data |
| | | }) |
| | | } |
| | | // 更新位置 |
| | | export function updateLocation(data) { |
| | | return request({ |
| | | url: "/api-wms/v1/location/updateLocation", |
| | | method: "post", |
| | | data |
| | | }) |
| | | } |