From 1f9a89458a66c12c1f7dfbceb2588ada8fbf16f4 Mon Sep 17 00:00:00 2001
From: huangxiaoqiang <huangxiaoqiang@hnkhzn.com>
Date: 星期四, 13 十一月 2025 17:35:36 +0800
Subject: [PATCH] 新增移库页面与WebSocket支持,优化任务逻辑新增移库页面支持移库任务输入与提交。新增 WebSocket 支持(`websocket.js`、`WebSocketSetup.cs`),实现实时通信功能。 在任务状态枚举中新增 AGV 移库任务状`TaskStatusEnum.cs`)- 重构库存数据展示页面(`Home.vue`),新增数据总览与图表展示功能。 - 新增库存数据接口(`StockInfoService.cs`、`StockInfoController.cs`),支持库存统计与展示。 - 优化任务状态管理逻辑,支持 AGV 移库任务(`Dt_TaskService.cs`)。
---
项目代码/PDA/pages/index/index.vue | 36 ++----------------------------------
1 files changed, 2 insertions(+), 34 deletions(-)
diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/PDA/pages/index/index.vue" "b/\351\241\271\347\233\256\344\273\243\347\240\201/PDA/pages/index/index.vue"
index b2baced..f01492e 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/PDA/pages/index/index.vue"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/PDA/pages/index/index.vue"
@@ -48,8 +48,6 @@
},
onLoad() {
this.getCurrentTree();
- this.Socketonline();
- this.GetAutoStatus();
},
beforeDestroy() {
if (this.intervalId) {
@@ -57,12 +55,6 @@
}
},
mounted() {
- this.Socketonline();
- this.GetAutoStatus();
- setInterval(() => {
- this.Socketonline();
- this.GetAutoStatus();
- }, 5000);
var print = uni.getStorageSync('printFloor');
if (print) {
@@ -126,7 +118,7 @@
AndroidCheckUpdate: function() {
var _this = this;
uni.request({
- url: 'http://192.168.30.250:5000/api/PDA/GetPDAVersion?version=' + this.version,
+ url: 'http://10.31.3.252:5000/api/PDA/GetPDAVersion?version=' + this.version,
method: 'GET',
data: {},
success: res => {
@@ -139,7 +131,7 @@
icon: "none"
});
var dtask = plus.downloader.createDownload(
- "http://192.168.30.250:5000/api/PDA/DownLoadApp", {},
+ "http://10.31.3.252:5000/api/PDA/DownLoadApp", {},
function(d, status) {
// 涓嬭浇瀹屾垚
if (status == 200) {
@@ -172,30 +164,6 @@
this.$u.post('/api/Menu/getTreeMenu', {}).then(result => {
this.tree = result;
})
- },
- GetAutoStatus() {
- this.$u.post('/api/PDA/GetAutoStatus', {}).then(result => {
- if (result == false) {
- this.value = false;
- } else {
- this.value = true;
- }
- }).catch(error => {
- this.value = false;
- });
- },
- Socketonline() {
- this.$u.post('/api/PDA/Socketonline', {}).then(result => {
- if (result.data != null && result.data == false) {
- console.log(result);
- this.online = false;
- } else {
- this.online = true;
- }
- // = result;
- }).catch(error => {
- this.online = false;
- });
},
getTree(id, data, isRootId) {
this.datas.forEach((x) => {
--
Gitblit v1.9.3