陈勇
2026-03-20 c0d5e7c40f87c18fc7c53ffd810069d0b41cb849
ÏîÄ¿´úÂë/WCS/WCSClient/src/views/taskinfo/task.vue
@@ -1,19 +1,11 @@
<template>
  <view-grid
    ref="grid"
    :columns="columns"
    :detail="detail"
    :editFormFields="editFormFields"
    :editFormOptions="editFormOptions"
    :searchFormFields="searchFormFields"
    :searchFormOptions="searchFormOptions"
    :table="table"
    :extend="extend"
  >
  <view-grid ref="grid" :columns="columns" :detail="detail" :editFormFields="editFormFields"
    :editFormOptions="editFormOptions" :searchFormFields="searchFormFields" :searchFormOptions="searchFormOptions"
    :table="table" :extend="extend">
  </view-grid>
</template>
  <script>
<script>
import extend from "@/extension/taskinfo/task.js";
import { ref, defineComponent } from "vue";
export default defineComponent({
@@ -24,15 +16,15 @@
      cnName: "任务信息",
      name: "task",
      url: "/Task/",
      sortName: "CreateDate",
      sortName: "createDate",
    });
    const editFormFields = ref({
      taskNum:"",
      taskNum: "",
      palletCode: "",
      roadway: "",
      taskType:"",
      taskState:"",
      wMSId:"",
      taskType: "",
      taskState: "",
      wMSId: "",
      sourceAddress: "",
      targetAddress: "",
      currentAddress: "",
@@ -40,7 +32,8 @@
      creater: "",
      createDate: "",
      grade: "",
      productionLine:""
      carType:"",
      pvi:""
    });
    const editFormOptions = ref([[{ title: "优先级", field: "grade", type: "int" },]]);
    const searchFormFields = ref({
@@ -57,21 +50,16 @@
    const searchFormOptions = ref([
      [
        { title: "任务号", field: "taskNum", type: "int" },
        { title: "托盘编号", field: "palletCode", type: "text" },
        {
        { title: "滑橇号", field: "palletCode", type: "text" },
        { title: "PVI码", field: "palletCode", type: "text" },
         {
          title: "任务类型",
          field: "taskType",
          type: "selectList",
          dataKey: "taskType",
          data: [],
        },
        {
          title: "任务状态",
          field: "taskState",
          type: "selectList",
          dataKey: "taskState",
          data: [],
        },
        }
      ],
      [
        { title: "起始地址", field: "sourceAddress", type: "text" },
@@ -80,10 +68,19 @@
        { title: "下一位置", field: "nextAddress", type: "text" },
      ],
      [
        {
          title: "任务状态",
          field: "taskState",
          type: "selectList",
          dataKey: "taskState",
          data: [],
        },
        { title: "巷道号", field: "roadway", type: "text" },
        { "title": "生产产线", "field": "productionLine", type: "select", dataKey: "ProductionLine", data: [] },
        // { "title": "生产产线", "field": "productionLine", type: "select", dataKey: "ProductionLine", data: [] },
        { title: "创建人", field: "creater", type: "text" },
        { title: "创建时间", field: "createDate", type: "datetime" },
      ],
    ]);
    const columns = ref([
@@ -106,9 +103,16 @@
      },
      {
        field: "palletCode",
        title: "托盘编号",
        title: "滑橇号",
        type: "string",
        width: 160,
        width: 100,
        align: "left",
      },
       {
        field: "pvi",
        title: "PVI码",
        type: "string",
        width: 100,
        align: "left",
      },
      {
@@ -133,6 +137,14 @@
        width: 150,
        align: "left",
        bind: { key: "taskState", data: [] },
      },
      {
        field: "carType",
        title: "车型",
        type: "int",
        width: 90,
        align: "left",
      },
      {
        field: "sourceAddress",
@@ -162,27 +174,27 @@
        width: 110,
        align: "left",
      },
      {
        field: "productionLine",
        title: "产线",
        type: "string",
        width: 70,
        align: "left",
        bind: { key: "ProductionLine", data: [] }
      },
      // {
      //   field: "productionLine",
      //   title: "产线",
      //   type: "string",
      //   width: 70,
      //   align: "left",
      //   bind: { key: "ProductionLine", data: [] }
      // },
      {
        field: "exceptionMessage",
        title: "异常信息",
        type: "string",
        width: 90,
        width: 150,
        align: "left",
      },
      {
        field: "grade",
        title: "优先级",
        type: "int",
        width: 60,
        width: 90,
        align: "left",
      },
      {
@@ -200,7 +212,7 @@
        align: "left",
        hidden: true,
      },
      {
        field: "createDate",
        title: "创建时间",
@@ -208,7 +220,7 @@
        width: 150,
        align: "left",
      },
      {
        field: "modifyDate",
        title: "修改时间",