From 7059b12b4901d4307d130b2bc3846a8c6f7174a6 Mon Sep 17 00:00:00 2001
From: huangxiaoqiang <huangxiaoqiang@hnkhzn.com>
Date: 星期五, 12 九月 2025 11:30:55 +0800
Subject: [PATCH] 1
---
项目代码/WCS/WIDESEAWCS_Client/src/views/LineComponent.vue | 50 ++++++++++++++++++++++++++++++++++++++++++++------
1 files changed, 44 insertions(+), 6 deletions(-)
diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Client/src/views/LineComponent.vue" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Client/src/views/LineComponent.vue"
index 6b8ebb3..d51c633 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Client/src/views/LineComponent.vue"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Client/src/views/LineComponent.vue"
@@ -78,7 +78,7 @@
<el-col :span="12" :offset="0" :push="0" :pull="0" tag="div">
<el-form-item label="褰撳墠琛屽垪灞傦細">
<j-el-description
- :value="StackerCrane.CurrentRow + '-' + StackerCrane.CurrentColumn + '-' + StackerCrane.CurrentLayer"
+ :value="StackerCrane.CurrentRow + '-' + StackerCrane.CurrentLayer + '-' + StackerCrane.CurrentColumn "
type="primary" ellipsis></j-el-description>
</el-form-item>
</el-col>
@@ -133,21 +133,30 @@
</el-form>
<el-divider />
<el-row :gutter="20" type="flex" justify="start" align="top" tag="div">
- <el-col :span="8" :offset="0" :push="0" :pull="0" tag="div">
+ <el-col :span="5" :offset="0" :push="0" :pull="0" tag="div">
<el-button type="primary" size="small" plain @click="start">
<i class="el-icon-check">鍚姩</i>
</el-button>
</el-col>
- <el-col :span="8" :offset="0" :push="0" :pull="0" tag="div">
+ <el-col :span="5" :offset="0" :push="0" :pull="0" tag="div">
<el-button type="warning" size="small" plain @click="reset">
<i class="el-icon-check">澶嶄綅</i>
</el-button>
-
</el-col>
- <el-col :span="8" :offset="0" :push="0" :pull="0" tag="div">
+ <el-col :span="5" :offset="0" :push="0" :pull="0" tag="div">
+ <el-button type="danger" size="small" plain @click="disconnected">
+ <i class="el-icon-check">涓柇</i>
+ </el-button>
+ </el-col>
+ <el-col :span="5" :offset="0" :push="0" :pull="0" tag="div">
<el-button type="danger" size="small" plain @click="emergencyStop">
<i class="el-icon-check">鎬ュ仠</i>
+ </el-button>
+ </el-col>
+ <el-col :span="4" :offset="0" :push="0" :pull="0" tag="div">
+ <el-button type="danger" size="small" plain @click="StackerRecall">
+ <i class="el-icon-check">鍙洖</i>
</el-button>
</el-col>
</el-row>
@@ -218,6 +227,7 @@
this.StackerCrane.CurrentLayer = x.CurrentLayer == undefined ? 1 : x.CurrentLayer;
this.StackerCrane.LevelPoint = x.LevelPoint;
this.StackerCrane.DeviceName = x.DeviceName;
+ this.StackerCrane.CurrentTaskNum = x.CurrentTaskNum;
this.StackerCrane.StackerAlarm = x.StackerAlarm;
this.form.DeviceCode = x.DeviceCode;
},
@@ -271,7 +281,7 @@
this.fullscreenLoading = false;
});
},
-
+
emergencyStop() {
this.fullscreenLoading = true;
this.http.post("api/DeviceInfo/StackerEmergencyStop?DeviceCode=" + this.form.DeviceCode)
@@ -288,6 +298,34 @@
.finally(() => {
this.fullscreenLoading = false;
});
+ },
+ disconnected() {
+ this.fullscreenLoading = true;
+ this.http.post("api/DeviceInfo/StackerDisconnected?DeviceCode=" + this.form.DeviceCode)
+ .then((x) => {
+ if (!x.status) {
+ this.$message.error(x.message);
+ } else {
+ this.$Message.success("涓柇鍫嗗灈鏈轰换鍔�");
+ }
+ })
+ .finally(() => {
+ this.fullscreenLoading = false;
+ });
+ },
+ StackerRecall() {
+ this.fullscreenLoading = true;
+ this.http.post("api/DeviceInfo/StackerRecall?DeviceCode=" + this.form.DeviceCode)
+ .then((x) => {
+ if (!x.status) {
+ this.$message.error(x.message);
+ } else {
+ this.$Message.success("鍙洖鍫嗗灈鏈�");
+ }
+ })
+ .finally(() => {
+ this.fullscreenLoading = false;
+ });
}
},
};
--
Gitblit v1.9.3