1
huanghongfeng
2025-06-06 f5b8c1ae89286dada20ea433ffac84f4c9e72a29
´úÂë¹ÜÀí/WMS/WIDESEA_WMSClient/src/views/stock/stockInfo.vue
@@ -38,50 +38,35 @@
      });
      const editFormOptions = ref([
        [
        { title: "托盘编号", field: "palletCode" },
        {
          title: "物料类型",
          field: "materialType",
          type: "select",
          dataKey: "InventoryMaterialType",
          data: [],
        },
          { title: "货位编号", field: "locationCode" },
          {
            title: "设备编号",
            required: true,
            field: "deviceCode",
            type: "string",
          },
          {
            title: "设备名称",
            required: true,
            field: "deviceName",
            type: "string",
          },
          {
            title: "设备类型",
            required: true,
            field: "deviceType",
            type: "string",
          },
          {
            title: "设备状态",
            required: true,
            field: "deviceStatus",
            type: "string",
          },
          title: "库存状态",
          field: "stockStatus",
          type: "select",
          dataKey: "stockStatusEmun",
          data: [],
        },
        ],
        [
          { title: "设备IP", required: true, field: "deviceIp", type: "string" },
          {
            title: "设备端口",
            required: true,
            field: "devicePort",
            type: "string",
          },
          {
            title: "PLC类型",
            required: true,
            field: "devicePlcType",
            type: "string",
          },
          {
            title: "备注",
            field: "deviceRemark",
            type: "string",
          },
        { title: "重量", field: "materialweight" },
        {
          title: "物料状态",
          field: "wlstatus",
          type: "select",
          dataKey: "InventoryMaterialStatus",
          data: []
        },
        {
          title: "备注", field: "Remark"
        }
        ],
      ]);
      const searchFormFields = ref({
@@ -91,10 +76,44 @@
      });
      const searchFormOptions = ref([
        [
          { title: "设备编号", field: "deviceCode" },
          { title: "设备类型", field: "deviceType" },
          { title: "设备状态", field: "deviceStatus" },
          { title: "托盘编号",
            field: "palletCode",
            type: "like",
        },
          {
          title: "物料类型",
          field: "materialType",
          type: "select",
          dataKey: "InventoryMaterialType",
          data: [],
        },
          { title: "货位编号", field: "locationCode",type: "like", },
        ],
        [
        {
          title: "库存状态",
          field: "stockStatus",
          type: "selectList",
          dataKey: "stockStatusEmun",
          data: [],
        },
        {
          title: "物料状态",
          field: "wlstatus",
          type: "selectList",
          dataKey: "InventoryMaterialStatus",
          data: [],
        },
        { title: "库存编号",
            field: "id",
            type: "like",
        },
        ],
        [
        { title: "创建时间", field: "createDate", type: "datetime" },
        { title: "生产时间", field: "mgeneratetime", type: "datetime" },
        ]
      ]);
      const columns = ref([
        {
@@ -108,11 +127,21 @@
          align: "left",
        },
        {
          field: "id",
          title: "库存编号",
          type: "string",
          width: 90,
          align: "left",
          DisplayType:"link",
          sort:true
        },
        {
          field: "palletCode",
          title: "托盘编号",
          type: "string",
          width: 90,
          align: "left",
          sort:true,
        },
        {
          field: "materialType",
@@ -120,7 +149,8 @@
          type: "string",
          width: 150,
          align: "left",
          bind: { key: "inventoryMaterialType", data: [] },
          sort:true,
          bind: { key: "InventoryMaterialType", data: [] },
        },
        {
          field: "locationCode",
@@ -128,7 +158,23 @@
          type: "string",
          width: 150,
          align: "left",
          sort:true,
        },
        {
          field: "wlstatus",
          title: "物料状态",
          type: "string",
          width: 150,
          align: "left",
          sort:true,
          bind: { key: "InventoryMaterialStatus", data: [] },
        },{
          field: "mgeneratetime",
          title: "生产时间",
          type: "datetime",
          width: 160,
          align: "left",
          sort:true,
        },
        {
          field: "isFull",
@@ -136,6 +182,7 @@
          type: "string",
          width: 150,
          align: "left",
          sort:true,
          bind: { key: "yesno", data: [] },
        },
        {
@@ -144,6 +191,7 @@
          type: "string",
          width: 150,
          align: "left",
          sort:true,
          bind: { key: "stockStatusEmun", data: [] },
        },
        {
@@ -152,6 +200,14 @@
          type: "string",
          width: 150,
          align: "left",
          sort:true,
        },{
          field: "remark",
          title: "备注",
          type: "string",
          width: 100,
          align: "left",
          sort:true,
        },
        {
          field: "creater",
@@ -159,6 +215,7 @@
          type: "string",
          width: 90,
          align: "left",
          sort:true,
        },
        {
          field: "createDate",
@@ -166,13 +223,16 @@
          type: "datetime",
          width: 160,
          align: "left",
          sort:true,
        },
        {
          field: "modifier",
          title: "修改人",
          type: "string",
          width: 100,
          align: "left",
          sort:true,
        },
        {
          field: "modifyDate",
@@ -180,14 +240,9 @@
          type: "datetime",
          width: 160,
          align: "left",
          sort:true,
        },
        {
          field: "remark",
          title: "备注",
          type: "string",
          width: 100,
          align: "left",
        },
      ]);
      const detail = ref({
        cnName: "#detailCnName",