dengjunjie
3 天以前 4d58609275685b1b5deaace933697dcf3f01359e
н¨Îļþ¼Ð/WMS/src/views/basic/locationInfo.vue
@@ -37,75 +37,86 @@
      locationType: "",
      locationStatus: "",
      enableStatus: "",
      remark: ""
      remark: "",
      warehouseCode: "",
    });
    const editFormOptions = ref([
      [
        // {
        //   field: "warehouseId",
        //   title: "库房编号",
        //   type: "select",
        //   required: true,
        //   span: 12,
        //   dataKey:  "warehouseNuber",
        //   data: []
        // },
        {
          field: "warehouseId",
          field: "warehouseCode",
          title: "库房编号",
          type: "select",
          required: true,
          span: 12,
          dataKey:  "warehouseNuber",
          data: []
          dataKey: "warehouseNuber",
          data: [],
        },
        {
          field: "locationCode",
          title: "货位编号",
          type: "string",
          span: 12
        }
          span: 12,
        },
      ],
      [
        {
          field: "locationName",
          title: "货位名称",
          type: "string",
          span: 12
          span: 12,
        },
        {
          field: "roadwayNo",
          title: "巷道编号",
          type: "string",
          span: 12
        }
          span: 12,
        },
      ],
      [
        {
          field: "row",
          title: "货位行",
          type: "int",
          span: 8
          span: 8,
        },
        {
          field: "column",
          title: "货位列",
          type: "int",
          span: 8
          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: "locationType",
        //   title: "货位类型",
        //   type: "select",
        //   span: 12,
        //   data: [],
        //   dataKey:  "locationTypeEnum",
        // }
        {
          field: "layer",
          title: "货位层",
          type: "int",
          span: 8,
        },
      ],
      [
        {
@@ -114,28 +125,28 @@
          type: "select",
          span: 12,
          data: [],
           dataKey:  "locationStatusEnum",
          dataKey: "locationStatusEnum",
        },
        {
          field: "enableStatus",
          title: "禁用状态",
          type: "select",
          span: 12,
          dataKey:"EnableStatusEnum",
          dataKey: "EnableStatusEnum",
          data: [],
        }
        },
      ],
      [
        {
          field: "remark",
          title: "备注",
          type: "string",
          span: 24
        }
      ]
      // [
      //   {
      //     field: "remark",
      //     title: "备注",
      //     type: "string",
      //     span: 24
      //   }
      // ]
    ]);
    const searchFormFields = ref({
      warehouseId: "",
      // warehouseId: "",
      locationCode: "",
      locationName: "",
      roadwayNo: "",
@@ -145,25 +156,43 @@
      row: "",
      column: "",
      layer: "",
      warehouseCode: "",
    });
    const searchFormOptions = ref([
      [
        { title: "库房编号", field: "warehouseId", type: "select", dataKey:  "warehouseNuber",  data: [] } ,
        // { title: "库房编号", field: "warehouseId", type: "select", dataKey:  "warehouseNuber",  data: [] } ,
        {
          title: "库房编号",
          field: "warehousecode",
          type: "select",
          dataKey: "warehouseNuber",
          data: [],
        },
        { title: "货位编号", field: "locationCode", type: "like" },
        { title: "货位名称", field: "locationName", type: "like" },
      ],
      [
        { title: "巷道编号", field: "roadwayNo", type: "like" },
        { title: "货位类型", field: "locationType", type: "select",  dataKey:  "locationTypeEnum", data: []  },
        { title: "货位状态", field: "locationStatus", type: "select",  dataKey:  "locationStatusEnum",data: []},
        // { 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: "enableStatus", type: "select", data: [], dataKey:"status" },
        { title: "行", field: "row", type: "int" },
        { title: "列", field: "column", type: "int" },
        { title: "层", field: "layer", type: "int" }
        { title: "层", field: "layer", type: "int" },
      ],
    ]);
    const columns = ref([
@@ -177,14 +206,23 @@
        require: true,
        align: "left",
      },
      // {
      //   field: "warehouseId",
      //   title: "库房编号",
      //   type: "select",
      //   width: 120,
      //   align: "left",
      //   data: [],
      //   bind: { key: "warehouses", data: [] }
      // },
      {
        field: "warehouseId",
        field: "warehouseCode",
        title: "库房编号",
        type: "select",
        width: 120,
        align: "left",
        data: [],
        bind: { key: "warehouses", data: [] }
        bind: { key: "warehouseNuber", data: [] },
      },
      {
        field: "locationCode",
@@ -206,6 +244,7 @@
        type: "string",
        width: 100,
        align: "left",
        hidden: true,
      },
      {
        field: "row",
@@ -235,15 +274,15 @@
        width: 100,
        align: "left",
      },
      {
        field: "locationType",
        title: "货位类型",
        type: "select",
        width: 120,
        align: "left",
        data: [],
        bind: { key: "locationTypeEnum", data: [] }
      },
      // {
      //   field: "locationType",
      //   title: "货位类型",
      //   type: "select",
      //   width: 120,
      //   align: "left",
      //   data: [],
      //   bind: { key: "locationTypeEnum", data: [] }
      // },
      {
        field: "locationStatus",
        title: "货位状态",
@@ -262,13 +301,13 @@
        data: [],
        bind: { key: "status", data: [] },
      },
      {
        field: "remark",
        title: "备注",
        type: "string",
        width: 150,
        align: "left",
      },
      // {
      //   field: "remark",
      //   title: "备注",
      //   type: "string",
      //   width: 150,
      //   align: "left",
      // },
      {
        field: "creater",
        title: "创建人",
@@ -298,7 +337,7 @@
        width: 160,
        align: "left",
        sort: true,
      }
      },
    ]);
    const detail = ref({
      cnName: "#detailCnName",