From 6885c5ccbb47e2ce79bc72c8346d21cd6ded75eb Mon Sep 17 00:00:00 2001 From: zzyuan <781948537@qq.com> Date: Thu, 19 Jun 2025 13:21:27 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=A8=E6=88=BF=E8=AE=BE=E5=A4=87=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E6=8E=A5=E5=8F=A3=E5=AF=B9=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/kitchen/devices.js | 85 ++++++++++++ .../kitchen/baseSetting/baseSettings.vue | 4 +- .../kitchen/baseSetting/setEnvMoniFre.vue | 2 +- .../devicesManage/deviesInfo/index.vue | 124 +++++++++++------- .../devicesManage/deviesRecord/index.vue | 64 ++++++--- 5 files changed, 208 insertions(+), 71 deletions(-) create mode 100644 src/api/kitchen/devices.js diff --git a/src/api/kitchen/devices.js b/src/api/kitchen/devices.js new file mode 100644 index 00000000..c02c831d --- /dev/null +++ b/src/api/kitchen/devices.js @@ -0,0 +1,85 @@ +import request from '@/utils/request' + +// 查询设备-下拉框 +export function getKitchenDeviceTypeApi(data) { + return request({ + url: '/smart-canteen/kitchen_device_info/deviceType', + method: 'get', + headers: { + "merchant-id":"378915229716713472", + }, + params: data + }) +} +// 查询设备-下拉框 +export function getKitchenDeviceSelectApi(data) { + return request({ + url: '/smart-canteen/kitchen_device_info/select', + method: 'get', + headers: { + "merchant-id":"378915229716713472", + }, + params: data + }) +} + +// 查询设备列表 +export function getKitchenDeviceListApi(data) { + return request({ + url: '/smart-canteen/kitchen_device_info/list', + method: 'get', + headers: { + "merchant-id":"378915229716713472", + }, + params: data + }) +} + +// 设备新增 +export function addKitchenDeviceApi(data) { + return request({ + url: '/smart-canteen/kitchen_device_info/add', + method: 'post', + headers: { + "merchant-id":"378915229716713472", + }, + data: data + }) +} + +// 修改设备 +export function editKitchenDeviceApi(data) { + return request({ + url: '/smart-canteen/kitchen_device_info/edit', + method: 'post', + headers: { + "merchant-id":"378915229716713472", + }, + data: data + }) +} + +// 删除设备 +export function delKitchenDeviceApi(data) { + return request({ + url: '/smart-canteen/kitchen_device_info/del', + method: 'post', + headers: { + "merchant-id":"378915229716713472", + }, + data: data + }) +} + + +// 查询设备使用记录 +export function getKitchenDeviceUsageApi(data) { + return request({ + url: '/smart-canteen/kitchen_device_usage/list', + method: 'get', + headers: { + "merchant-id":"378915229716713472", + }, + params: data + }) +} \ No newline at end of file diff --git a/src/views/kitchen/baseSetting/baseSettings.vue b/src/views/kitchen/baseSetting/baseSettings.vue index 78283ad3..e26e2fb6 100644 --- a/src/views/kitchen/baseSetting/baseSettings.vue +++ b/src/views/kitchen/baseSetting/baseSettings.vue @@ -23,7 +23,7 @@