From a7083b85ab3884d27fcb9f1e8c66b01dab620e1b Mon Sep 17 00:00:00 2001
From: duan <1004387497@qq.com>
Date: Thu, 26 Sep 2024 10:53:38 +0800
Subject: [PATCH] =?UTF-8?q?=E6=89=93=E5=8D=B0=E6=9C=BA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/devices.js | 32 ++++++-
src/views/devices/details.vue | 144 +++++++++++++++++++++++++++++
src/views/devices/devices.js | 8 +-
src/views/devices/devices_list.vue | 40 +++++---
4 files changed, 202 insertions(+), 22 deletions(-)
create mode 100644 src/views/devices/details.vue
diff --git a/src/api/devices.js b/src/api/devices.js
index 82d9b73..caef6ea 100644
--- a/src/api/devices.js
+++ b/src/api/devices.js
@@ -1,7 +1,7 @@
import request from '@/utils/request'
/**
- * 增加打印机
+
* @returns
*/
export function tbPrintMachine(data, method = 'post') {
@@ -21,12 +21,34 @@ export function tbPrintMachine(data, method = 'post') {
*/
export function tbPrintMachineGet(params) {
return request({
- url: '/api/tbPrintMachine',
+ url: '/api/shop-config/printer/list',
method: 'get',
params: {
- shopId: localStorage.getItem('shopId'),
- sort: '',
+
...params
}
})
-}
\ No newline at end of file
+}
+// 删除
+export function delTableHandle(id) {
+ return request({
+ url: '/api/shop-config/printer/' + id,
+ method: 'DELETE',
+ })
+}
+// * 打印机详情
+export function printerd(id) {
+ return request({
+ url: '/api/shop-config/printer/' + id,
+ method: 'get',
+
+ })
+}
+// 编辑 新增打印机
+export function configprinter(data, method = "post") {
+ return request({
+ url: `/api/shop-config/printer`,
+ method: method,
+ data
+ });
+}
diff --git a/src/views/devices/details.vue b/src/views/devices/details.vue
new file mode 100644
index 0000000..ecec043
--- /dev/null
+++ b/src/views/devices/details.vue
@@ -0,0 +1,144 @@
+
+
+