From 3c75ba788897a524771bfde12feddcc94aaf14c6 Mon Sep 17 00:00:00 2001
From: huanghongfeng <huanghongfeng@hnkhzn.com>
Date: 星期二, 22 四月 2025 11:26:02 +0800
Subject: [PATCH] Merge branch 'master' of http://115.159.85.185:8098/r/MeiXinLaiRui/LunDuiYa

---
 项目代码/WMS/WIDESEA_WMSClient/src/views/quartzJob/deviceProtocol.vue |  229 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 229 insertions(+), 0 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/views/quartzJob/deviceProtocol.vue" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/views/quartzJob/deviceProtocol.vue"
new file mode 100644
index 0000000..6d3ea40
--- /dev/null
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/views/quartzJob/deviceProtocol.vue"
@@ -0,0 +1,229 @@
+
+<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/quartzJob/deviceProtocol.js";
+import { ref, defineComponent } from "vue";
+export default defineComponent({
+  setup() {
+    const table = ref({
+      key: "id",
+      footer: "Foots",
+      cnName: "璁惧鍗忚淇℃伅",
+      name: "deviceProtocol",
+      url: "/DeviceProtocol/",
+      sortName: "id",
+    });
+    const editFormFields = ref({
+      deviceCode: "",
+      deviceName: "",
+      deviceType: "",
+      deviceStatus: "",
+      deviceIp: "",
+      devicePort: "",
+      devicePlcType: "",
+      deviceRemark: "",
+    });
+    const editFormOptions = ref([
+      [
+        {
+          title: "璁惧缂栧彿",
+          required: true,
+          field: "deviceCode",
+          type: "string",
+        },
+        {
+          title: "璁惧鍚嶇О",
+          required: true,
+          field: "deviceName",
+          type: "string",
+        },
+        {
+          title: "璁惧绫诲瀷",
+          required: true,
+          field: "deviceType",
+          type: "string",
+        },
+        {
+          title: "璁惧鐘舵��",
+          required: true,
+          field: "deviceStatus",
+          type: "string",
+        },
+      ],
+      [
+        { title: "璁惧IP", required: true, field: "deviceIp", type: "string" },
+        {
+          title: "璁惧绔彛",
+          required: true,
+          field: "devicePort",
+          type: "string",
+        },
+        {
+          title: "PLC绫诲瀷",
+          required: true,
+          field: "devicePlcType",
+          type: "string",
+        },
+        {
+          title: "澶囨敞",
+          field: "deviceRemark",
+          type: "string",
+        },
+      ],
+    ]);
+    const searchFormFields = ref({
+      deviceCode: "",
+      deviceType: "",
+      deviceStatus: "",
+    });
+    const searchFormOptions = ref([
+      [
+        { title: "璁惧缂栧彿", field: "deviceCode" },
+        { title: "璁惧绫诲瀷", field: "deviceType" },
+        { title: "璁惧鐘舵��", field: "deviceStatus" },
+      ],
+    ]);
+    const columns = ref([
+      {
+        field: "id",
+        title: "Id",
+        type: "int",
+        width: 90,
+        hidden: true,
+        readonly: true,
+        require: true,
+        align: "left",
+      },
+      {
+        field: "deviceId",
+        title: "璁惧涓婚敭",
+        type: "string",
+        width: 90,
+        align: "left",
+      },
+      {
+        field: "deviceChildCode",
+        title: "璁惧瀛愮紪鍙�",
+        type: "string",
+        width: 150,
+        align: "left",
+      },
+      {
+        field: "deviceProDataBlock",
+        title: "鍗忚鏁版嵁鍧�",
+        type: "string",
+        width: 150,
+        align: "left",
+      },
+      {
+        field: "deviceProOffset",
+        title: "鍋忕Щ閲�",
+        type: "decimal",
+        width: 90,
+        align: "left",
+      },
+      {
+        field: "deviceProDataType",
+        title: "鏁版嵁绫诲瀷",
+        type: "string",
+        width: 90,
+        align: "left",
+      },
+      {
+        field: "deviceProDataLength",
+        title: "鏁版嵁闀垮害",
+        type: "int",
+        width: 120,
+        align: "left",
+      },
+      {
+        field: "deviceProParamName",
+        title: "鍙傛暟鍚嶇О",
+        type: "string",
+        width: 200,
+        align: "left",
+      },
+      {
+        field: "deviceProParamType",
+        title: "鍙傛暟绫诲瀷",
+        type: "string",
+        width: 180,
+        align: "left",
+      },
+      {
+        field: "deviceProParamDes",
+        title: "鍙傛暟璇存槑",
+        type: "string",
+        width: 120,
+        align: "left",
+      },
+      {
+        field: "creater",
+        title: "鍒涘缓浜�",
+        type: "string",
+        width: 90,
+        align: "left",
+      },
+      {
+        field: "createDate",
+        title: "鍒涘缓鏃堕棿",
+        type: "datetime",
+        width: 160,
+        align: "left",
+      },
+      {
+        field: "modifier",
+        title: "淇敼浜�",
+        type: "string",
+        width: 100,
+        align: "left",
+      },
+      {
+        field: "modifyDate",
+        title: "淇敼鏃堕棿",
+        type: "datetime",
+        width: 160,
+        align: "left",
+      },
+      {
+        field: "deviceProRemark",
+        title: "澶囨敞",
+        type: "string",
+        width: 100,
+        align: "left",
+      },
+    ]);
+    const detail = ref({
+      cnName: "",
+      table: "",
+      columns: [],
+      sortName: "",
+      key: "",
+    });
+    return {
+      table,
+      extend,
+      editFormFields,
+      editFormOptions,
+      searchFormFields,
+      searchFormOptions,
+      columns,
+      detail,
+    };
+  },
+});
+</script>
+  
\ No newline at end of file

--
Gitblit v1.9.3