From 715ffa70eb71ca36ccb414af14156bde867ffc59 Mon Sep 17 00:00:00 2001 From: "liujw155@outlook.com" Date: Fri, 9 Jul 2021 13:29:46 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=9F=E5=94=AE&=E5=82=A8=E7=89=A9=E6=89=93?= =?UTF-8?q?=E5=BC=80=E6=9F=9C=E5=AD=90=20api=20=E5=8C=BA=E5=88=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/subpackage/device/js/device_api.js | 3 ++- src/subpackage/device/pages/locker_manage/locker_manage.vue | 11 ++++++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/subpackage/device/js/device_api.js b/src/subpackage/device/js/device_api.js index 11cf6c6..0ba97ab 100644 --- a/src/subpackage/device/js/device_api.js +++ b/src/subpackage/device/js/device_api.js @@ -14,7 +14,8 @@ export const DEVICE_API = { leaseList:`${ORIGIN}/admin/stadium/lease/cabinet/list`, // 租售柜列表 lockerList:`${ORIGIN}/admin/stadium/locker/cabinet/list`, // 储物柜列表 - leaseTest:`${ORIGIN}/admin/stadium/locker/cabinet/test`, // 储物柜打开 + leaseTest:`${ORIGIN}/admin/stadium/lease/cabinet/test`, // 租售柜打开 + lockerTest:`${ORIGIN}/admin/stadium/locker/cabinet/test`, // 储物柜打开 leaseReset:`${ORIGIN}/admin/stadium/locker/cabinet/reset`, // 储物柜补货 diff --git a/src/subpackage/device/pages/locker_manage/locker_manage.vue b/src/subpackage/device/pages/locker_manage/locker_manage.vue index c409031..8a5bbf3 100644 --- a/src/subpackage/device/pages/locker_manage/locker_manage.vue +++ b/src/subpackage/device/pages/locker_manage/locker_manage.vue @@ -212,11 +212,20 @@ export default { }) .catch(util.hideLoad) }, + // 打开柜子分接口 + // e.page_id == 8 ||  // 租售柜 + // e.page_id == 9 ||  // 储物柜 + getOpenApi(){ + let { optionsQuery } = this; + if(optionsQuery.page_id == 8)return deviceApi.leaseTest; + if(optionsQuery.page_id == 9)return deviceApi.lockerTest; + }, openLockerReq(cabinet_ids){ let { curStoreInfo } = this; util.showLoad(); + return deviceServer.get({ - url: deviceApi.leaseTest, + url: this.getOpenApi(), data: { brand_id: curStoreInfo.brand_id, cabinet_ids: cabinet_ids,