liulijun
2025-11-17 da4257bc32483409af02a06dd342c6981ec786ec
ÏîÄ¿´úÂë/WMS/WMSClient/src/views/taskinfo/task.vue
@@ -1,19 +1,10 @@
<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({
@@ -35,7 +26,7 @@
      taskStatus: "",
      taskType: "",
      sourceAddress: "",
      rfidCode:"",
      rfidCode: "",
      targetAddress: "",
      currentAddress: "",
      nextAddress: "",
@@ -45,21 +36,36 @@
    const searchFormOptions = ref([
      [
        { title: "任务号", field: "taskNum", type: "int" },
        { title: "条码(托盘)编号", field: "palletCode", type: "like" },
        { title: "条码/托盘号", field: "palletCode", type: "like" },
        { title: "RFID编号", field: "rfidCode", type: "like" },
        { title: "单据编号", field: "orderNo", type: "like" }
      ],
      [
        { title: "任务类型",field: "taskType",type: "selectList",dataKey: "taskType",data: [],},
        { title: "任务状态",field: "taskStatus",type: "selectList",dataKey: "taskStatusEnum",data: [],},
        { title: "巷道号", field: "roadway", type: "like" },
        { title: "任务类型", field: "taskType", type: "selectList", dataKey: "taskType", data: [], },
        { title: "任务状态", field: "taskStatus", type: "selectList", dataKey: "taskStatusEnum", data: [], },
        {
          title: "巷道号", field: "roadway", type: "selectList", dataKey: "", data: [{ key: "SC01_CP", value: "1号堆垛机-成品库" },
          { key: "SC02_CP", value: "2号堆垛机-成品库" },
          { key: "SC03_CP", value: "3号堆垛机-成品库" },
          { key: "SC04_CP", value: "4号堆垛机-成品库" },
          { key: "SC05_CP", value: "5号堆垛机-成品库" },
          { key: "SC01_YL", value: "1号堆垛机-原料库" },
          { key: "SC02_YL", value: "2号堆垛机-原料库" },
          { key: "SC03_YLDual", value: "3号堆垛机-原料库" },
          { key: "SC04_YLDual", value: "4号堆垛机-原料库" },
          { key: "SC05_YLDual", value: "5号堆垛机-原料库" },
          ],
        },
        { title: "所属仓库", field: "warehouseId", type: "selectList", dataKey: "warehouses", data: [], },
      ],
      [
        { title: "起始地址", field: "sourceAddress", type: "like" },
        { title: "目标地址", field: "targetAddress", type: "like" },
        { title: "下一地址", field: "nextAddress", type: "like" },
        { title: "创建时间", field: "createDate", type: "datetime" },
      ],
      [
        { title: "所属仓库", field: "warehouseId",type: "selectList",dataKey: "warehouses",data: [],},
        { title: "创建人", field: "creater", type: "like" },
      ],
    ]);
@@ -91,7 +97,7 @@
      },
      {
        field: "palletCode",
        title: "条码(托盘)编号",
        title: "条码/托盘号",
        type: "string",
        width: 170,
        align: "left",
@@ -109,6 +115,20 @@
        type: "string",
        width: 130,
        align: "left",
        bind: {
          key: "", data: [
            { key: "SC01_CP", value: "1号堆垛机-成品库" },
            { key: "SC02_CP", value: "2号堆垛机-成品库" },
            { key: "SC03_CP", value: "3号堆垛机-成品库" },
            { key: "SC04_CP", value: "4号堆垛机-成品库" },
            { key: "SC05_CP", value: "5号堆垛机-成品库" },
            { key: "SC01_YL", value: "1号堆垛机-原料库" },
            { key: "SC02_YL", value: "2号堆垛机-原料库" },
            { key: "SC03_YLDual", value: "3号堆垛机-原料库" },
            { key: "SC04_YLDual", value: "4号堆垛机-原料库" },
            { key: "SC05_YLDual", value: "5号堆垛机-原料库" },
          ]
        },
      },
      {
        field: "taskType",
@@ -138,6 +158,13 @@
        title: "目标地址",
        type: "string",
        width: 220,
        align: "left",
      },
      {
        field: "nextAddress",
        title: "下一位置",
        type: "string",
        width: 120,
        align: "left",
      },
      {
@@ -188,7 +215,7 @@
        type: "datetime",
        width: 160,
        align: "left",
        hidden:true,
        hidden: true,
      },
      {
        field: "wMSId",
@@ -267,5 +294,4 @@
    };
  },
});
</script>
</script>