wanshenmean
13 小时以前 419159c8611dca81b94b3103cdeaeb9272aed5ea
Code/WCS/WIDESEAWCS_Client/src/views/taskinfo/robotTask.vue
@@ -14,7 +14,7 @@
</template>
<script>
import extend from "@/extension/taskinfo/robotTask.js";
import extend from "@/extension/taskinfo/robotTask.jsx";
import { ref, defineComponent } from "vue";
export default defineComponent({
@@ -28,9 +28,67 @@
      sortName: "createDate",       // 默认排序字段
    });
    // 编辑表单字段(初始为空,根据实际编辑需求配置)
    const editFormFields = ref({});
    const editFormOptions = ref([]);
    // 编辑表单字段
    const editFormFields = ref({
      robotTaskNum: "",
      robotRoadway: "",
      robotTaskType: "",
      robotTaskState: "",
      robotTaskTotalNum: "",
      robotSourceAddress: "",
      robotTargetAddress: "",
      robotSourceAddressLineCode: "",
      robotTargetAddressLineCode: "",
      robotSourceAddressPalletCode: "",
      robotTargetAddressPalletCode: "",
      robotGrade: 2,
    });
    // 编辑表单配置
    const editFormOptions = ref([
      [
        { title: "任务编号", field: "robotTaskNum", type: "int", required: true },
        { title: "巷道", field: "robotRoadway", type: "string", required: true },
        { title: "任务总数", field: "robotTaskTotalNum", type: "int", required: true },
        {
          title: "优先级",
          field: "robotGrade",
          type: "select",
          data: [
            { key: 1, value: "低" },
            { key: 2, value: "普通" },
            { key: 3, value: "高" },
            { key: 4, value: "紧急" },
          ],
        },
      ],
      [
        {
          title: "任务类型",
          field: "robotTaskType",
          type: "select",
          dataKey: "taskType",
          data: [],
          required: true,
        },
        {
          title: "任务状态",
          field: "robotTaskState",
          type: "select",
          dataKey: "taskState",
          data: [],
          required: true,
        },
        { title: "来源地址", field: "robotSourceAddress", type: "string", required: true },
        { title: "目标地址", field: "robotTargetAddress", type: "string", required: true },
      ],
      [
        { title: "来源线代码", field: "robotSourceAddressLineCode", type: "string" },
        { title: "目标线代码", field: "robotTargetAddressLineCode", type: "string" },
        { title: "来源托盘代码", field: "robotSourceAddressPalletCode", type: "string" },
        { title: "目标托盘代码", field: "robotTargetAddressPalletCode", type: "string" },
      ],
    ]);
    // 搜索表单字段
    const searchFormFields = ref({
@@ -128,6 +186,7 @@
        type: "string",
        width: 120,
        align: "left",
        hidden: true,
      },
      {
        field: "robotTargetAddress",
@@ -135,37 +194,35 @@
        type: "string",
        width: 120,
        align: "left",
        hidden: true,
      },
      {
        field: "robotSourceAddressLineCode",
        title: "来源线代码",
        title: "来源线体地址",
        type: "string",
        width: 130,
        align: "left",
      },
      {
        field: "robotTargetAddressLineCode",
        title: "目标线代码",
        title: "目标线体地址",
        type: "string",
        width: 130,
        align: "left",
        hidden: true,
      },
      {
        field: "robotSourceAddressPalletCode",
        title: "来源托盘代码",
        title: "来源托盘",
        type: "string",
        width: 130,
        align: "left",
        hidden: true,
      },
      {
        field: "robotTargetAddressPalletCode",
        title: "目标托盘代码",
        title: "目标托盘",
        type: "string",
        width: 130,
        align: "left",
        hidden: true,
      },
      {
        field: "robotExceptionMessage",
@@ -198,6 +255,7 @@
        type: "datetime",
        width: 160,
        align: "left",
        hidden: true,
      },
      {
        field: "robotremark",
@@ -213,6 +271,7 @@
        type: "string",
        width: 100,
        align: "left",
        hidden: true,
      },
      {
        field: "createDate",
@@ -221,6 +280,7 @@
        width: 160,
        align: "left",
        sortable: true,
        hidden: true,
      },
      {
        field: "modifier",
@@ -228,6 +288,7 @@
        type: "string",
        width: 100,
        align: "left",
        hidden: true,
      },
      {
        field: "modifyDate",
@@ -235,6 +296,7 @@
        type: "datetime",
        width: 160,
        align: "left",
        hidden: true,
      },
    ]);