helongyang
2026-03-31 8fcd7a67e4391a5f1fbdb590c2a3f913aeb2a0a0
´úÂë¹ÜÀí/WMS/WIDESEA_WMSClient/src/views/basic/materielCodeInfo.vue
@@ -27,17 +27,47 @@
      sortName: "id",
    });
    const editFormFields = ref({
      purchaseOrderNo:""
      lotNo: "",
      warehouseId: "",
      purchaseOrderNo: "",
      materielCode: "",
      productionDate: "",
      effectiveDate: "",
    });
    const editFormOptions = ref([
      [
        {
          title: "仓库",
          field: "warehouseId",
          type: "select",
          dataKey: "areainfo",
          data: [],
          required: true,
        },
      ],
      [
        {
          title: "物料编码",
          field: "materielCode",
          type: "select",
          dataKey: "MaterielCodes",
          data: [],
          type: "string",
        },
      ],
      [
        {
          title: "采购单号",
          field: "purchaseOrderNo",
          type: "string",
        },
      ],
      [
        {
          title: "物料规格",
          field: "materielSpec",
          type: "string",
        },
      ],
      [
        {
          title: "批次号",
          field: "lotNo",
@@ -46,30 +76,24 @@
      ],
      [
        {
          title: "采购单号",
          field: "purchaseOrderNo",
          type:"select",
          // dataKey: "purchaseOrderNos",
          data: [],
          required: true,
        },
        {
          title: "数量",
          title: "数量",
          field: "quantity",
          required: true,
          type:"int"
        },
      ],
      [
        {
          title: "生产日期",
          field: "productionDate",
          type: "date",
          // type: "date",
          required: true,
        },
      ],
      [
        {
          title: "有效期",
          field: "effectiveDate",
          type: "date",
          // type: "date",
          required: true,
        },
      ],
@@ -78,7 +102,12 @@
      palletCode: "",
    });
    const searchFormOptions = ref([
      [{ title: "批次号", field: "lotNo", type: "like" }],
      [
        { title: "采购单号", field: "purchaseOrderNo", type: "like" },
        { title: "物料编号", field: "materielCode", type: "like" },
        {title: "所属仓库", field:"warehouseId",type:"select",dataKey:"warehouses",data:[]},
        { title: "批次号", field: "lotNo", type: "like" },
      ],
    ]);
    const columns = ref([
      {
@@ -99,8 +128,37 @@
        align: "left",
      },
      {
        field: "materielName",
        title: "物料名称",
        type: "string",
        width: 150,
        align: "left",
      },
      {
        field: "materielSpec",
        title: "物料规格",
        type: "string",
        width: 150,
        align: "left",
      },
      {
        field: "warehouseId",
        title: "仓库",
        type: "string",
        width: 90,
        align: "left",
        bind: { key: "areainfo", data: [] },
      },
      {
        field: "purchaseOrderNo",
        title: "采购单号",
        type: "string",
        width: 160,
        align: "left",
      },
      {
        field: "supplierCode",
        title: "供应商编号",
        type: "string",
        width: 160,
        align: "left",
@@ -120,6 +178,13 @@
        align: "left",
      },
      {
        field: "materielLength",
        title: "物料长度",
        type: "int",
        width: 80,
        align: "left",
      },
      {
        field: "productionDate",
        title: "生产日期",
        type: "date",