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,