From 25f281f6ab3fec5b6d29357a382f017cea8ded6b Mon Sep 17 00:00:00 2001 From: dzc <2388224167@qq.com> Date: Thu, 17 Apr 2025 17:47:27 +0800 Subject: [PATCH 1/3] 11 --- .env | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.env b/.env index f529f27..a284e2d 100644 --- a/.env +++ b/.env @@ -17,9 +17,9 @@ VITE_PWD_ENC_KEY='pigxpigxpigxpigx' VITE_OAUTH2_APP_CLIENT='mini:mini' # --------------------------- 开发环境 api地址 ---------------------------------- -VITE_APP_DEV_SERVICE = https://stgl.pj.gov.cn/api # 域名线上 -#VITE_APP_DEV_SERVICE = http://59.202.170.152:81/api # 信创线上 -# VITE_APP_DEV_SERVICE = http://192.168.101.107:9999 # 邓-本地 +# VITE_APP_DEV_SERVICE = https://stgl.pj.gov.cn/api # 域名线上 +# VITE_APP_DEV_SERVICE = http://59.202.170.152:81/api # 信创线上 +VITE_APP_DEV_SERVICE = http://192.168.101.107:9999 # 邓-本地 # VITE_APP_DEV_SERVICE = http://47.96.250.9:8089/api # 测试线上 # --------------------------- 开发环境 图片访问基础地址 --------------------------- From 8fdd9fbebe9ad2b4a91244e5f81850bffff5d311 Mon Sep 17 00:00:00 2001 From: dzc <2388224167@qq.com> Date: Thu, 17 Apr 2025 17:59:03 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/sheep/api/door.ts | 58 +++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 56 insertions(+), 2 deletions(-) diff --git a/src/sheep/api/door.ts b/src/sheep/api/door.ts index 40c20a7..41708bc 100644 --- a/src/sheep/api/door.ts +++ b/src/sheep/api/door.ts @@ -5,7 +5,6 @@ export default { * app获取智能柜授权信息 * @param doorHardId 智能柜设备id * @param cabinetNo 货柜编号 - * @returns */ appGetAuthHardDoor: (data: { doorHardId: any; cabinetNo: any }) => request({ @@ -20,7 +19,6 @@ export default { * app获取智能柜授权信息 * @param authId 授权id * @param authStatus 是否授权 - * @returns */ appAuthHardDoor: (data: { authId: any; authStatus: any }) => request({ @@ -31,4 +29,60 @@ export default { showLoading: false, }, }), + /** + * app查询智能柜列表(有分页) + */ + hardDoorPage: (params: any) => + request({ + url: "hard/hard-door-manager/app/page", + method: "GET", + params, + custom: { + showLoading: false, + }, + }), + + /** + * app查询智能柜详情 + * @param hardDoorId 智能柜id + */ + hardDoorDetail: (params: { hardDoorId: any }) => + request({ + url: "hard/hard-door-manager/app/detail", + method: "GET", + params, + custom: { + showLoading: false, + }, + }), + + /** + * 上架 + * @param id 绑定id + * @param hardSpuId 商品id + */ + putaway: (data: { hardDoorId: any }) => + request({ + url: "hard/hard-spu/app/putaway", + method: "POST", + data, + custom: { + showLoading: false, + }, + }), + + /** + * 下架 + * @param id 绑定id + * @param hardSpuId 商品id + */ + unPutaway: (data: { hardDoorId: { id: any; hardSpuId: any } }) => + request({ + url: "hard/hard-spu/app/un-putaway", + method: "POST", + data, + custom: { + showLoading: false, + }, + }), } From bda2b6d545f8ea5958ad8bfffff108b30e39a8f1 Mon Sep 17 00:00:00 2001 From: dzc <2388224167@qq.com> Date: Thu, 17 Apr 2025 18:58:08 +0800 Subject: [PATCH 3/3] =?UTF-8?q?feat:=E4=B8=8A=E6=9E=B6=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/sheep/api/door.ts | 59 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) diff --git a/src/sheep/api/door.ts b/src/sheep/api/door.ts index 41708bc..de5ce41 100644 --- a/src/sheep/api/door.ts +++ b/src/sheep/api/door.ts @@ -85,4 +85,63 @@ export default { showLoading: false, }, }), + /** + * app查询货柜补货商品列表 + * @param hardDoorId 智能柜编号 + * @param cabinetNo 货柜编号 + */ + cabinetPutawayList: (params: { hardDoorId: { hardDoorId: any; cabinetNo: any } }) => + request({ + url: "hard/hard-spu/app/cabinet-putaway-list", + method: "GET", + params, + custom: { + showLoading: false, + }, + }), + + /** + * app查询货柜商品列表 + * @param hardDoorId 智能柜编号 + * @param cabinetNo 货柜编号 + */ + cabinetList: (params: { hardDoorId: { hardDoorId: any; cabinetNo: any } }) => + request({ + url: "hard/hard-spu/app/cabinet-list", + method: "GET", + params, + custom: { + showLoading: false, + }, + }), + + /** + * app上架完成 + * @param flowId + * @param list + */ + repertoryDone: (data: { hardDoorId: { id: any; list: Array<{ hardSpuId: any; plusCount: any }> } }) => + request({ + url: "hard/hard-spu-repertory/app/repertory-done", + method: "POST", + data, + custom: { + showLoading: false, + }, + }), + + /** + * 上架开门 + * @param hardDoorId 智能柜编号 + * @param cabinetNo 货柜编号 + */ + openRepertory: (data: { hardDoorId: { id: any; cabinetNo: any } }) => + request({ + url: "hard/hard-door-flow/app/open-repertory", + method: "POST", + data, + custom: { + showLoading: false, + }, + }), }