From 0cbe01e1241f9af562d86dc79b5f0949ada81dba Mon Sep 17 00:00:00 2001
From: huanghongfeng <huanghongfeng@hnkhzn.com>
Date: 星期三, 22 十月 2025 09:20:08 +0800
Subject: [PATCH] 1
---
代码管理/WCS/WCS/WIDESEAWCS_Client/src/views/Home.vue | 199 +++++++++++++++++++++++++++++++++++++++++++++++--
1 files changed, 191 insertions(+), 8 deletions(-)
diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WCS/WIDESEAWCS_Client/src/views/Home.vue" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WCS/WIDESEAWCS_Client/src/views/Home.vue"
index 820437a..3c31f30 100644
--- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WCS/WIDESEAWCS_Client/src/views/Home.vue"
+++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WCS/WCS/WIDESEAWCS_Client/src/views/Home.vue"
@@ -1,23 +1,206 @@
<template>
- <div class="title"></div>
+ <div class="title">璁惧鍒濆鍖�</div>
+ <div>
+ <div class="container">
+ <label>AGV璁惧鍚嶇О</label>
+ <el-select placeholder="璇烽�夋嫨鐗╂枡鐘舵��" v-model="DeviceName">
+ <el-option label="(鍑哄簱)姣嶈溅锛歊GV110" value="RGV110" />
+ <el-option label="(鍑哄簱)姣嶈溅锛歊GV112" value="RGV112" />
+ <el-option label="(鍑哄簱)瀛愯溅锛歊GV111" value="RGV111" />
+ <el-option label="(鍑哄簱)瀛愯溅锛歊GV116" value="RGV116" />
+ <el-option label="(鍑哄簱)姣嶈溅锛歊GV114" value="RGV114" />
+ <el-option label="(鍑哄簱)姣嶈溅锛歊GV115" value="RGV115" />
+ <el-option label="(鍑哄簱)RGV118" value="RGV118" />
+ <el-option label="姣嶈溅锛歊GV109" value="RGV109" />
+ <el-option label="姣嶈溅锛歊GV108" value="RGV108" />
+ <el-option label="姣嶈溅锛歊GV105" value="RGV105" />
+ <el-option label="姣嶈溅锛歊GV103" value="RGV103" />
+
+ <el-option label="瀛愯溅锛歊GV104" value="RGV104" />
+ <el-option label="瀛愯溅锛歊GV107" value="RGV107" />
+ </el-select>
+ </div>
+
+
+
+ <el-button type="danger" v-on:click="submit" plain style="margin-left: 50px">鍒濆鍖�</el-button>
+ </div>
+
+ <div>
+ <label>RGV鍐欏叆鍗曚釜妯″潡</label>
+
+ <div class="container">
+ <label>鍐欏叆鐨勭被鍨�</label>
+ <el-select placeholder="璇烽�夋嫨鐗╂枡鐘舵��" v-model="DBType">
+ <el-option label="宸ヤ綔妯″紡锛�0鎵嬪姩銆�1鑷姩锛�" value="1" />
+ <el-option label="澶嶄綅鎿嶄綔锛�0涓嶅浣嶃��1澶嶄綅锛�" value="2" />
+ <el-option label="浠诲姟纭瀹屾垚锛�0涓嶇‘瀹氾紝1纭畾锛�" value="3" />
+ <el-option label="浠诲姟绫诲瀷(4娓呴櫎)" value="4" />
+ </el-select>
+ </div>
+ <div class="container">
+ <label>鍐欏叆鍙傛暟</label>
+ <el-input type="text" v-model="WriteRGVvalue"></el-input>
+ </div>
+
+ <el-button type="danger" v-on:click="submitRGVw" plain style="margin-left: 50px">鍐欏叆</el-button>
+ </div>
+
+
+ <div style="margin-top: 30px;">
+ <el-button type="danger" v-on:click="InReset" plain style="margin-left: 50px">涓�閿浣嶏紙鍏ュ簱绔級</el-button>
+ <el-button type="danger" v-on:click="OutReset" plain style="margin-left: 50px">涓�閿浣嶏紙鍑哄簱绔級</el-button>
+ </div>
+
+ <div style="margin-top: 30px;">
+ <label style="height: 30PX;">鎵嬪姩鐢熸垚RGV鍘荤殑鐩爣鍦板潃</label>
+ <div class="container">
+ <label>AGV璁惧鍚嶇О</label>
+ <el-select placeholder="璇烽�夋嫨鐗╂枡鐘舵��" v-model="DeviceName2">
+ <el-option label="姣嶈溅锛歊GV110" value="RGV110" />
+ <el-option label="姣嶈溅锛歊GV112" value="RGV112" />
+ <el-option label="瀛愯溅锛歊GV111" value="RGV111" />
+ <el-option label="瀛愯溅锛歊GV116" value="RGV116" />
+ <el-option label="姣嶈溅锛歊GV114" value="RGV114" />
+ <el-option label="姣嶈溅锛歊GV115" value="RGV115" />
+ <el-option label="姣嶈溅锛歊GV109" value="RGV109" />
+ <el-option label="姣嶈溅锛歊GV108" value="RGV108" />
+ <el-option label="姣嶈溅锛歊GV105" value="RGV105" />
+ <el-option label="姣嶈溅锛歊GV103" value="RGV103" />
+
+ <el-option label="瀛愯溅锛歊GV104" value="RGV104" />
+ <el-option label="瀛愯溅锛歊GV107" value="RGV107" />
+ </el-select>
+ </div>
+ <div class="container">
+ <label>鐩爣鍦板潃</label>
+ <el-input type="text" v-model="WritergvAddres"></el-input>
+ </div>
+
+ <el-button type="danger" v-on:click="submit2" plain style="margin-left: 50px">纭涓嬪彂绉诲姩浠诲姟</el-button>
+
+ </div>
+
</template>
<script>
-import { ref, reactive } from 'vue'
-
+import VolBox from "@/components/basic/VolBox.vue";
export default {
- setup() {
+ components: {
+ "vol-box": VolBox,
+ },
+ data() {
return {
+ //鍒濆鍖朢GV
+ DeviceName:"",
+ DBType:"",
+ WriteRGVvalue:"",
+ //鎵嬪姩涓嬪彂rgv鐩爣鍦板潃锛岃繘琛岀Щ鍔╮gv
+ DeviceName2:"",
+ WritergvAddres:""
+
+ };
+ },
+ methods: {
+ submit() {
+ var param = {
+ DelKeys: [this.DeviceName,this.DBType,this.WriteRGVvalue],
+ Extra: true
+ }
+ this.http
+ .post("api/RgvOperation/WriteInitialization", param, "鏁版嵁澶勭悊涓�...")
+ .then((x) => {
+ if (x.status) {
+ this.$Message.success('鎴愬姛.');
+ this.$parent.refresh();
+ } else {
+ return this.$Message.error(x.message);
+ }
+ });
+ },
+ submitRGVw(){
+ var param = {
+ DelKeys: [this.DeviceName,this.DBType,this.WriteRGVvalue],
+ Extra: true
+ }
+ this.http
+ .post("api/RgvOperation/WriteRGVmokuai", param, "鏁版嵁澶勭悊涓�...")
+ .then((x) => {
+ if (x.status) {
+ this.$Message.success('鎴愬姛.');
+ this.$parent.refresh();
+ } else {
+ return this.$Message.error(x.message);
+ }
+ });
+ },
+
+ submit2() {
+ var param = {
+ DelKeys: [this.DeviceName2,this.WritergvAddres],
+ Extra: true
+ }
+ this.http
+ .post("api/RgvOperation/ManualmovementRGV", param, "鏁版嵁澶勭悊涓�...")
+ .then((x) => {
+ if (x.status) {
+ this.$Message.success('鎴愬姛.');
+ this.$parent.refresh();
+ } else {
+ return this.$Message.error(x.message);
+ }
+ });
+ },
+
+ InReset(){
+ var param = {
+ DelKeys: [],
+ Extra: true
+ }
+ this.http
+ .post("api/RgvOperation/WriteInReset", {}, "鏁版嵁澶勭悊涓�...")
+ .then((x) => {
+ if (x.status) {
+ this.$Message.success('鎴愬姛.');
+ this.$parent.refresh();
+ } else {
+ return this.$Message.error(x.message);
+ }
+ });
+ },
+ OutReset(){
+ var param = {
+ DelKeys: [],
+ Extra: true
+ }
+ this.http
+ .post("api/RgvOperation/WriteOutReset", {}, "鏁版嵁澶勭悊涓�...")
+ .then((x) => {
+ if (x.status) {
+ this.$Message.success('鎴愬姛.');
+ this.$parent.refresh();
+ } else {
+ return this.$Message.error(x.message);
+ }
+ });
}
- }
-}
+ },
+
+};
</script>
<style scoped>
+.container {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ width: 20%;
+ margin-top: 10px;
+ margin-left: 10px;
+}
+
.title {
- line-height: 70vh;
- text-align: center;
font-size: 28px;
color: orange;
}
--
Gitblit v1.9.3