From 9a1c82a7b77dd27d9bd9b71bbd2909e60aed6c10 Mon Sep 17 00:00:00 2001
From: wanshenmean <cathay_xy@163.com>
Date: 星期一, 20 四月 2026 23:57:25 +0800
Subject: [PATCH] feat(stockInfo): 新增mesUploadStatus列显示MES上传状态

---
 Code/WCS/WIDESEAWCS_Client/src/views/taskinfo/robotState.vue |  184 ++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 184 insertions(+), 0 deletions(-)

diff --git a/Code/WCS/WIDESEAWCS_Client/src/views/taskinfo/robotState.vue b/Code/WCS/WIDESEAWCS_Client/src/views/taskinfo/robotState.vue
new file mode 100644
index 0000000..3547526
--- /dev/null
+++ b/Code/WCS/WIDESEAWCS_Client/src/views/taskinfo/robotState.vue
@@ -0,0 +1,184 @@
+<template>
+  <view-grid
+    ref="grid"
+    :columns="columns"
+    :detail="detail"
+    :editFormFields="editFormFields"
+    :editFormOptions="editFormOptions"
+    :searchFormFields="searchFormFields"
+    :searchFormOptions="searchFormOptions"
+    :table="table"
+    :extend="extend"
+  >
+  </view-grid>
+</template>
+
+<script>
+import extend from "@/extension/taskinfo/robotState.jsx";
+import { ref, defineComponent } from "vue";
+
+export default defineComponent({
+  setup() {
+    const table = ref({
+      key: "Id",
+      footer: "Foots",
+      cnName: "鏈烘鎵嬬姸鎬佺鐞�",
+      name: "robotState",
+      url: "/robotState/",
+      sortName: "IPAddress",
+    });
+
+    // 缂栬緫琛ㄥ崟瀛楁
+    const editFormFields = ref({
+      IPAddress: "",
+      Version: "",
+      IsEventSubscribed: false,
+      RobotRunMode: "",
+      RobotControlMode: "",
+      RobotArmObject: "",
+      Homed: "",
+      CurrentAction: "",
+      OperStatus: "",
+      RobotTaskTotalNum: 0,
+      IsSplitPallet: false,
+      IsGroupPallet: false,
+      IsInFakeBatteryMode: false,
+      CurrentBatchIndex: 1,
+      ChangePalletPhase: 0,
+      IsScanNG: false,
+      BatteryArrived: false,
+    });
+
+    // 缂栬緫琛ㄥ崟閰嶇疆
+    const editFormOptions = ref([
+      [
+        { title: "IP鍦板潃", field: "ipAddress", type: "string", readonly: true },
+        { title: "鐗堟湰鍙�", field: "version", type: "int", readonly: true },
+      ],
+      [
+        {
+          title: "杩愯妯″紡",
+          field: "robotRunMode",
+          type: "select",
+          data: [
+            { key: 1, value: "鎵嬪姩妯″紡" },
+            { key: 2, value: "鑷姩妯″紡" },
+          ],
+        },
+        {
+          title: "鎺у埗妯″紡",
+          field: "robotControlMode",
+          type: "select",
+          data: [
+            { key: 1, value: "瀹㈡埛绔帶鍒�" },
+            { key: 2, value: "鍏朵粬" },
+          ],
+        },
+        {
+          title: "鎵嬭噦鐘舵��",
+          field: "robotArmObject",
+          type: "select",
+          data: [
+            { key: 0, value: "绌洪棽" },
+            { key: 1, value: "鏈夌墿鏂�" },
+          ],
+        },
+      ],
+      [
+        { title: "鍥為浂鐘舵��", field: "homed", type: "string" },
+        { title: "褰撳墠鍔ㄤ綔", field: "currentAction", type: "string" },
+        { title: "杩愯鐘舵��", field: "operStatus", type: "string" },
+      ],
+      [
+        { title: "浠诲姟鎬绘暟", field: "robotTaskTotalNum", type: "int" },
+        { title: "褰撳墠鎵规", field: "currentBatchIndex", type: "int" },
+        { title: "鎹㈢洏闃舵", field: "changePalletPhase", type: "int" },
+      ],
+      [
+        {
+          title: "鏄惁鎷嗙洏",
+          field: "isSplitPallet",
+          type: "checkbox",
+        },
+        {
+          title: "鏄惁缁勭洏",
+          field: "isGroupPallet",
+          type: "checkbox",
+        },
+        {
+          title: "鍋囩數鑺ā寮�",
+          field: "isInFakeBatteryMode",
+          type: "checkbox",
+        },
+      ],
+      [
+        {
+          title: "鏄惁鎵爜NG",
+          field: "isScanNG",
+          type: "checkbox",
+        },
+        {
+          title: "鐢佃姱鏄惁鍒颁綅",
+          field: "batteryArrived",
+          type: "checkbox",
+        },
+        {
+          title: "娑堟伅宸茶闃�",
+          field: "isEventSubscribed",
+          type: "checkbox",
+        },
+      ],
+    ]);
+
+    // 鎼滅储琛ㄥ崟瀛楁
+    const searchFormFields = ref({
+      IPAddress: "",
+      CurrentAction: "",
+      OperStatus: "",
+    });
+
+    // 鎼滅储琛ㄥ崟閰嶇疆
+    const searchFormOptions = ref([
+      [
+        { title: "IP鍦板潃", field: "ipAddress", type: "string" },
+        { title: "褰撳墠鍔ㄤ綔", field: "currentAction", type: "string" },
+        { title: "杩愯鐘舵��", field: "operStatus", type: "string" },
+      ],
+    ]);
+
+    // 鍒楀畾涔�
+    const columns = ref([
+      { field: "ipAddress", title: "IP鍦板潃", type: "string", width: 140, align: "left" },
+      { field: "version", title: "鐗堟湰", type: "int", width: 80, align: "left" },
+      { field: "robotRunMode", title: "杩愯妯″紡", type: "int", width: 100, bind: { key: "robotRunMode", data: [{ key: 1, value: "鎵嬪姩妯″紡" },{ key: 2, value: "鑷姩妯″紡" }] }, align: "center" },
+      { field: "robotControlMode", title: "鎺у埗妯″紡", type: "int", width: 100, bind: { key: "robotControlMode", data: [{ key: 1, value: "瀹㈡埛绔帶鍒�" },{ key: 2, value: "鍏朵粬" }] }, align: "center" },
+      { field: "robotArmObject", title: "鎵嬭噦鐘舵��", type: "int", width: 90, bind: { key: "robotArmObject", data: [{ key: 0, value: "绌洪棽"}, { key: 1, value: "鏈夌墿鏂�" }] }, align: "center" },
+      { field: "homed", title: "鍥為浂鐘舵��", type: "string", width: 100, align: "center" },
+      { field: "currentAction", title: "褰撳墠鍔ㄤ綔", type: "string", width: 100, align: "center" },
+      { field: "operStatus", title: "杩愯鐘舵��", type: "string", width: 100, align: "center" },
+      { field: "robotTaskTotalNum", title: "浠诲姟鎬绘暟", type: "int", width: 90, align: "center" },
+      { field: "isSplitPallet", title: "鎷嗙洏", type: "byte", width: 60, align: "center" },
+      { field: "isGroupPallet", title: "缁勭洏", type: "byte", width: 60, align: "center" },
+      { field: "isInFakeBatteryMode", title: "鍋囩數鑺�", type: "byte", width: 70, align: "center" },
+      { field: "currentBatchIndex", title: "鎵规", type: "int", width: 60, align: "center" },
+      { field: "changePalletPhase", title: "鎹㈢洏闃舵", type: "int", width: 80, align: "center" },
+      { field: "isScanNG", title: "鎵爜NG", type: "byte", width: 80, align: "center" },
+      { field: "batteryArrived", title: "鐢佃姱鍒颁綅", type: "byte", width: 80, align: "center" },
+      { field: "isEventSubscribed", title: "宸茶闃�", type: "byte", width: 70, align: "center" },
+    ]);
+
+    const detail = ref({});
+
+    return {
+      table,
+      columns,
+      detail,
+      editFormFields,
+      editFormOptions,
+      searchFormFields,
+      searchFormOptions,
+      extend,
+    };
+  },
+});
+</script>

--
Gitblit v1.9.3