From 4f56b1235510dfdfec3bd7bfbbd7953e18156b07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=96=AA=E5=90=8D?= <942005050@qq.com> Date: Thu, 1 Aug 2024 15:00:54 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=95=E6=8D=AE=E5=BC=80=E5=85=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/wms/switch/index.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/api/wms/switch/index.ts b/src/api/wms/switch/index.ts index aeb11a1cb..fa520e9e3 100644 --- a/src/api/wms/switch/index.ts +++ b/src/api/wms/switch/index.ts @@ -24,6 +24,12 @@ export const getSwitch = async (id: number) => { return await request.get({ url: `/wms/switch/get?id=` + id }) } +// 查询单据开关详情 +export const getByCode = async (code) => { + return await request.get({ url: `/wms/switch/getByCode?code=` + code }) +} + + // 新增单据开关 export const createSwitch = async (data: SwitchVO) => { return await request.post({ url: `/wms/switch/create`, data })