From 511658655f6711a1f7d38f102a195018bdc0bad4 Mon Sep 17 00:00:00 2001
From: jsy_zjg <31502350@qq.com>
Date: Tue, 21 Jan 2025 20:05:02 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=91=84=E5=83=8F=E5=A4=B4?=
=?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=AD=BE=E6=94=B6=E5=8D=95=E3=80=81=E7=AD=BE?=
=?UTF-8?q?=E6=94=B6=E5=8D=95=E6=9F=A5=E8=AF=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
api/iot/device.js | 34 +++
api/iot/deviceBill.js | 45 ++++
api/iot/deviceStorageUser.js | 17 ++
pages.json | 7 +
pages/fourmonitor/camera.vue | 50 ++--
pages/retrace/index.vue | 19 +-
pages/retrace/selectDeviceBill.vue | 158 ++++++++++++
pages/retrace/signBill.vue | 8 +-
pages/retrace/signBillAdd.vue | 349 +++++++++++++++-----------
pages/retrace/signQuery.vue | 29 +--
pages/work/user/create-user.vue | 8 +-
pages/work/user/ground.vue | 1 -
pages/work/user/index.vue | 2 +-
pages/work/user/selectOtherDevice.vue | 2 -
{utils => static}/ezuikit.js | 0
15 files changed, 526 insertions(+), 203 deletions(-)
create mode 100644 api/iot/device.js
create mode 100644 api/iot/deviceBill.js
create mode 100644 api/iot/deviceStorageUser.js
create mode 100644 pages/retrace/selectDeviceBill.vue
rename {utils => static}/ezuikit.js (100%)
diff --git a/api/iot/device.js b/api/iot/device.js
new file mode 100644
index 0000000..14cfe50
--- /dev/null
+++ b/api/iot/device.js
@@ -0,0 +1,34 @@
+import request from '@/utils/request'
+
+// 查询设备
+export function getDeviceList(query) {
+ return request({
+ url: "/system/deviceApp/getDeviceList",
+ method: "get",
+ params: query
+ })
+}
+
+// 查询用户手持设备
+export function getPdaDeviceList() {
+ return request({
+ url: "/system/deviceApp/getPdaDeviceListByUserId",
+ method: "get"
+ })
+}
+
+export function getDevicePageList(query) {
+ return request({
+ url: "/system/deviceApp/list",
+ method: "get",
+ params: query
+ })
+}
+
+export function getDeviceStorageCount(query) {
+ return request({
+ url: "/system/deviceApp/getDeviceStorageCount",
+ method: "get",
+ params: query
+ })
+}
\ No newline at end of file
diff --git a/api/iot/deviceBill.js b/api/iot/deviceBill.js
new file mode 100644
index 0000000..7c17b99
--- /dev/null
+++ b/api/iot/deviceBill.js
@@ -0,0 +1,45 @@
+import request from '@/utils/request'
+
+// 查询入库单据列表
+export function getDeviceBillBriefList(query) {
+ return request({
+ url: "/system/deviceBillBriefApp/list",
+ method: "get",
+ params: query
+ })
+}
+
+// 查询入库单据
+export function getDeviceBillInfo(id) {
+ return request({
+ url: "/system/deviceBillBriefApp/getInfo/"+id,
+ method: "get"
+ })
+}
+
+
+// 新增
+export function addDeviceBill(data) {
+ return request({
+ url: '/system/deviceBillBriefApp/add',
+ method: 'post',
+ data: data
+ })
+}
+
+// 修改
+export function updateDeviceBill(data) {
+ return request({
+ url: '/system/deviceBillBriefApp/edit',
+ method: 'put',
+ data: data
+ })
+}
+
+// 删除
+export function deleteDeviceBill(id) {
+ return request({
+ url: '/system/deviceBillBriefApp/'+id,
+ method: 'delete'
+ })
+}
\ No newline at end of file
diff --git a/api/iot/deviceStorageUser.js b/api/iot/deviceStorageUser.js
new file mode 100644
index 0000000..05dd641
--- /dev/null
+++ b/api/iot/deviceStorageUser.js
@@ -0,0 +1,17 @@
+import request from '@/utils/request'
+
+// 查询仓库
+export function getDeviceStorageUserByUserId(id) {
+ return request({
+ url: "/system/deviceStorageUserApp/getDeviceStorageUserByUserId/"+id,
+ method: "get",
+ })
+}
+
+
+export function getDeviceStorageUserListByUserId() {
+ return request({
+ url: "/system/deviceStorageUserApp/getDeviceStorageUserListByUserId",
+ method: "get",
+ })
+}
\ No newline at end of file
diff --git a/pages.json b/pages.json
index ccc9986..2af4f53 100644
--- a/pages.json
+++ b/pages.json
@@ -283,6 +283,13 @@
"navigationStyle": "custom"
}
},
+ {
+ "path": "pages/retrace/selectDeviceBill",
+ "style": {
+ "navigationBarTitleText": "签收单据选择",
+ "navigationStyle": "custom"
+ }
+ },
/******************************* 运维 ******************************/
{
"path": "pages/dev-ops/index",
diff --git a/pages/fourmonitor/camera.vue b/pages/fourmonitor/camera.vue
index a7ea4b6..0ff936f 100644
--- a/pages/fourmonitor/camera.vue
+++ b/pages/fourmonitor/camera.vue
@@ -1,20 +1,20 @@
-
+
-
+
+
-
-
+
+
-
+
+
+
+
\ No newline at end of file
diff --git a/pages/retrace/signBill.vue b/pages/retrace/signBill.vue
index ea4ffb8..e916fa0 100644
--- a/pages/retrace/signBill.vue
+++ b/pages/retrace/signBill.vue
@@ -5,7 +5,7 @@
-
@@ -105,19 +105,19 @@
},
onEdit(item) {
uni.navigateTo({
- url: '/pages/stock/signBillAdd?type=edit&id=' + item.billId
+ url: '/pages/retrace/signBillAdd?type=edit&id=' + item.billId
});
},
//新增
onAdd() {
uni.navigateTo({
- url: '/pages/stock/signBillAdd'
+ url: '/pages/retrace/signBillAdd'
});
},
deleteBill(row) {
plugin.modal.confirm("确定删除吗?").then(res => {
deleteDeviceBill(row.billId).then(res => {
- plugin.modal.msgSuccess("删除成功")
+ uni.$u.toast("删除成功");
//重新刷新列表
this.queryList(1, 20);
})
diff --git a/pages/retrace/signBillAdd.vue b/pages/retrace/signBillAdd.vue
index e777a6e..06b2998 100644
--- a/pages/retrace/signBillAdd.vue
+++ b/pages/retrace/signBillAdd.vue
@@ -1,29 +1,35 @@
-
-
@@ -49,41 +56,27 @@
确认
取消
-
-
-
-
-
-
-
-
-
-
+