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 @@
+
+
+