From 8269c961596944e7ec1c5f7d71fd669d36a91cac Mon Sep 17 00:00:00 2001 From: shijing Date: Thu, 16 Jan 2025 10:59:01 +0800 Subject: [PATCH] =?UTF-8?q?fix:inmjs=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/model/inm.js | 43 +++++++++++++++++++++++++++++++++++++++---- 1 file changed, 39 insertions(+), 4 deletions(-) diff --git a/src/api/model/inm.js b/src/api/model/inm.js index cd1e789a..e8fefbd0 100644 --- a/src/api/model/inm.js +++ b/src/api/model/inm.js @@ -177,13 +177,48 @@ export default { data); } }, - wtest:{ - name: "单个检验", - req: async function(id,data){ + }, + // mioitemw + mioitemw: { + list: { + name: "仓库列表", + req: async function(data){ + return await http.get( + `${config.API_URL}/inm/mioitemw/`, + data + ); + } + }, + create: { + name: "创建", + req: async function(data){ return await http.post( - `${config.API_URL}/inm/mioitemw/${id}/test/`, + `${config.API_URL}/inm/mioitemw/`, data); } }, + item: { + name: "获取仓库详情", + req: async function(id){ + return await http.get( + `${config.API_URL}/inm/mioitemw/${id}/` + ); + } + }, + update: { + name: "更新", + req: async function(id, data){ + return await http.put( + `${config.API_URL}/inm/mioitemw/${id}/`, + data); + } + }, + delete: { + name: "删除", + req: async function(id){ + return await http.delete( + `${config.API_URL}/inm/mioitemw/${id}/`); + } + }, }, } \ No newline at end of file