yanjinhui
2025-10-26 e1383d0a6ee0558c34f013f4e2561063bc2353b3
н¨Îļþ¼Ð/WMS/src/views/basic/locationInfo.vue
@@ -1,4 +1,3 @@
<template>
  <view-grid
    ref="grid"
@@ -13,7 +12,7 @@
  >
  </view-grid>
</template>
    <script>
<script>
import extend from "@/extension/basic/locationInfo.js";
import { ref, defineComponent } from "vue";
export default defineComponent({
@@ -27,140 +26,277 @@
      sortName: "id",
    });
    const editFormFields = ref({
      locationStatus: "",
    });
    const editFormOptions = ref([
      [
        { title: "货位状态", field: "locationStatus" ,type: "select",dataKey: "locationStatusEnum",data: [],},
      ],
    ]);
    const searchFormFields = ref({
      warehouseId: "",
      locationCode: "",
      locationName: "",
      roadwayNo: "",
      locationType: "",
      enableStatus: "",
      locationStatus: "",
      row: "",
      column: "",
      layer: "",
      depth: "",
      locationType: "",
      locationStatus: "",
      enableStatus: "",
      remark: "",
      warehouseCode:"",
    });
    const editFormOptions = ref([
      [
        // {
        //   field: "warehouseId",
        //   title: "库房编号",
        //   type: "select",
        //   required: true,
        //   span: 12,
        //   dataKey:  "warehouseNuber",
        //   data: []
        // },
         {
          field: "warehouseCode",
          title: "库房编号",
          type: "select",
          required: true,
          span: 12,
          dataKey:  "warehouseNuber",
          data: []
        },
        {
          field: "locationCode",
          title: "货位编号",
          type: "string",
          span: 12
        }
      ],
      [
        {
          field: "locationName",
          title: "货位名称",
          type: "string",
          span: 12
        },
        {
          field: "roadwayNo",
          title: "巷道编号",
          type: "string",
          span: 12
        }
      ],
      [
        {
          field: "row",
          title: "货位行",
          type: "int",
          span: 8
        },
        {
          field: "column",
          title: "货位列",
          type: "int",
          span: 8
        },
        {
          field: "layer",
          title: "货位层",
          type: "int",
          span: 8
        }
      ],
      [
        {
          field: "depth",
          title: "货位深度",
          type: "int",
          span: 12
        },
        {
          field: "locationType",
          title: "货位类型",
          type: "select",
          span: 12,
          data: [],
          dataKey:  "locationTypeEnum",
        }
      ],
      [
        {
          field: "locationStatus",
          title: "货位状态",
          type: "select",
          span: 12,
          data: [],
           dataKey:  "locationStatusEnum",
        },
        {
          field: "enableStatus",
          title: "禁用状态",
          type: "select",
          span: 12,
          dataKey:"EnableStatusEnum",
          data: [],
        }
      ],
      [
        {
          field: "remark",
          title: "备注",
          type: "string",
          span: 24
        }
      ]
    ]);
    const searchFormFields = ref({
      // warehouseId: "",
      locationCode: "",
      locationName: "",
      roadwayNo: "",
      locationType: "",
      locationStatus: "",
      enableStatus: "",
      row: "",
      column: "",
      layer: "",
      warehouseCode: ""
    });
    const searchFormOptions = ref([
      [
        // { title: "库房编号", field: "warehouseId", type: "select", dataKey:  "warehouseNuber",  data: [] } ,
         { title: "库房编号", field: "warehousecode", type: "select", dataKey:  "warehouseNuber",  data: [] } ,
        { title: "货位编号", field: "locationCode", type: "like" },
        { title: "巷道编号", field: "roadwayNo",type:"like" },
        { title: "货位类型", field: "locationType",type: "select",dataKey: "locationTypeEnum",data: [], },
        { title: "禁用状态", field: "enableStatus" ,type: "select",dataKey: "status",data: [],},
        { title: "货位名称", field: "locationName", type: "like" },
      ],
      [
        { title: "货位状态", field: "locationStatus" ,type: "selectList",dataKey: "locationStatusEnum",data: [],},
        { title: "行", field: "row" ,type: "int"},
        { title: "列", field: "column" ,type: "int"},
        { title: "层", field: "layer" ,type: "int"}
        { title: "巷道编号", field: "roadwayNo", type: "like" },
        { title: "货位类型", field: "locationType", type: "select",  dataKey:  "locationTypeEnum", data: []  },
        { title: "货位状态", field: "locationStatus", type: "select",  dataKey:  "locationStatusEnum",data: []},
      ],
      [
         { title: "禁用状态", field: "enableStatus", type: "select", data: [], dataKey:"status" },
        { title: "行", field: "row", type: "int" },
        { title: "列", field: "column", type: "int" },
        { title: "层", field: "layer", type: "int" }
      ],
    ]);
    const columns = ref([
      {
        field: "id",
        title: "Id",
        title: "主键",
        type: "int",
        width: 100,
        width: 90,
        hidden: true,
        readonly: true,
        require: true,
        align: "left",
      },
      // {
      //   field: "areaId",
      //   title: "区域主键",
      //   type: "string",
      //   width: 90,
      //   field: "warehouseId",
      //   title: "库房编号",
      //   type: "select",
      //   width: 120,
      //   align: "left",
      //   bind: {key: "areainfo",data: []}
      //   data: [],
      //   bind: { key: "warehouses", data: [] }
      // },
      {
        field: "warehouseCode",
        title: "库房编号",
        type: "select",
        width: 120,
        align: "left",
        data: [],
        bind: { key: "warehouseNuber", data: [] }
      },
      {
        field: "locationCode",
        title: "货位编号",
        type: "string",
        width: 200,
        width: 120,
        align: "left",
      },
      {
        field: "locationName",
        title: "货位名称",
        type: "string",
        width: 280,
        width: 150,
        align: "left",
      },
      {
        field: "roadwayNo",
        title: "巷道编号",
        type: "decimal",
        type: "string",
        width: 100,
        align: "left",
      },
      {
        field: "row",
        title: "货位行",
        type: "string",
        width: 90,
        type: "int",
        width: 80,
        align: "left",
        hidden: true,
      },
      {
        field: "column",
        title: "货位列",
        type: "int",
        width: 120,
        width: 80,
        align: "left",
        hidden: true,
      },
      {
        field: "layer",
        title: "货位层",
        type: "string",
        width: 200,
        type: "int",
        width: 80,
        align: "left",
        hidden: true,
      },
      {
        field: "depth",
        title: "货位深度",
        type: "string",
        width: 180,
        type: "int",
        width: 100,
        align: "left",
        hidden: true,
      },
      {
        field: "locationType",
        title: "货位类型",
        type: "string",
        type: "select",
        width: 120,
        align: "left",
        bind:{key: "locationTypeEnum", data: []}
        data: [],
        bind: { key: "locationTypeEnum", data: [] }
      },
      {
        field: "locationStatus",
        title: "货位状态",
        type: "string",
        type: "select",
        width: 120,
        align: "left",
        data: [],
        bind: { key: "locationStatusEnum", data: [] },
      },
      {
        field: "enableStatus",
        title: "禁用状态",
        type: "string",
        width: 80,
        type: "select",
        width: 100,
        align: "left",
        data: [],
        bind: { key: "status", data: [] },
      },
      {
        field: "remark",
        title: "备注",
        type: "string",
        width: 150,
        align: "left",
      },
      {
        field: "creater",
        title: "创建人",
        type: "string",
        width: 90,
        width: 100,
        align: "left",
        hidden: true,
      },
      {
        field: "createDate",
@@ -169,7 +305,6 @@
        width: 160,
        align: "left",
        sort: true,
        hidden: true,
      },
      {
        field: "modifier",
@@ -185,15 +320,7 @@
        width: 160,
        align: "left",
        sort: true,
      },
      {
        field: "remark",
        title: "备注",
        type: "string",
        width: 100,
        align: "left",
        hidden: true
      },
      }
    ]);
    const detail = ref({
      cnName: "#detailCnName",
@@ -213,5 +340,4 @@
    };
  },
});
</script>
</script>