From 1b4c9bcc8d8b5668129713030f4d367c1c73f480 Mon Sep 17 00:00:00 2001 From: tao Date: Tue, 30 Dec 2025 15:46:22 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E7=AB=99=E7=82=B9=E5=AE=8C?= =?UTF-8?q?=E5=B7=A5=E6=8E=A5=E5=8F=A3=20=E5=A2=9E=E5=8A=A0=E5=BA=93?= =?UTF-8?q?=E4=BD=8D=E6=9F=A5=E8=AF=A2=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/pwoManage/location/index.ts | 54 +++++++++++++++++++++++++++++ src/api/pwoManage/station/index.ts | 9 +++++ 2 files changed, 63 insertions(+) create mode 100644 src/api/pwoManage/location/index.ts diff --git a/src/api/pwoManage/location/index.ts b/src/api/pwoManage/location/index.ts new file mode 100644 index 0000000..9b06a79 --- /dev/null +++ b/src/api/pwoManage/location/index.ts @@ -0,0 +1,54 @@ +import request from "@/api/request"; +import type { ID } from "@/api/common"; + +// 查询库位列表 +export function listStorageLocation(params: any) { + return request({ + url: "/wip/storageLocation/list", + method: "get", + params, + }); +} + +// 高级查询库位列表 +export function advListStorageLocation(params: any) { + return request({ + url: "/wip/storageLocation/advList", + method: "get", + params, + }); +} + +// 查询库位详细 +export function getStorageLocation(id: ID) { + return request({ + url: "/wip/storageLocation/" + id, + method: "get", + }); +} + +// 新增库位 +export function addStorageLocation(data: any) { + return request({ + url: "/wip/storageLocation", + method: "post", + data, + }); +} + +// 修改库位 +export function updateStorageLocation(data: any) { + return request({ + url: "/wip/storageLocation", + method: "put", + data, + }); +} + +// 删除库位 +export function delStorageLocation(id: ID) { + return request({ + url: "/wip/storageLocation/" + id, + method: "delete", + }); +} diff --git a/src/api/pwoManage/station/index.ts b/src/api/pwoManage/station/index.ts index e50ae21..a3ce40d 100644 --- a/src/api/pwoManage/station/index.ts +++ b/src/api/pwoManage/station/index.ts @@ -61,3 +61,12 @@ export function startStation(id: ID) { method: "put", }); } + +// 站点完工 +export function completeStation(id: ID, location: any) { + return request({ + url: '/mes/station/' + id + '/complete', + method: 'put', + data: location + }) +}