yanjinhui
3 天以前 9f4280a7a047f048f4ca101ce85a03f24b72785d
н¨Îļþ¼Ð/WMS/src/views/stock/stockInfo.vue
@@ -44,10 +44,19 @@
      shelfLife: "",
      validityPeriod: "",
      remark: "",
      warehouseCode: "",
    });
    
    const editFormOptions = ref([
      [
        {
          field: "warehouseCode",
          title: "库房编号",
          type: "string",
          required: true,
            data: [],
           dataKey: "warehouseNuber",
        },
        {
          field: "palletCode",
          title: "托盘编号",
@@ -67,15 +76,8 @@
          title: "库存状态",
          type: "select",
          data: [],
          bind: { key: "stockStatus", data: [] }
          dataKey: "StockStatusEmun",
        },
        {
          field: "warehouseId",
          title: "仓库",
          type: "select",
          data: [],
          bind: { key: "warehouses", data: [] }
        }
      ],
      [
        {
@@ -126,9 +128,10 @@
        },
        {
          field: "supplyQuantity",
          title: "盘点数",
          title: "盘点差异数",
          type: "number",
          span: 8
        },
        
      ],
@@ -177,6 +180,7 @@
      materielCode: "",
      materielName: "",
      batchNo: "",
      warehouseCode:''
    });
    
    const searchFormOptions = ref([
@@ -191,12 +195,19 @@
          field: "locationCode",
          type: "string"
        },
        {
          title: "仓库",
          field: "warehouseId",
        // {
        //   title: "仓库",
        //   field: "warehouseId",
        //   type: "select",
        //   data: [],
        //   bind: { key: "warehouses", data: [] }
        // },
          {
          title: "库房编号",
          field: "warehouseCode",
          type: "select", 
          data: [],
          bind: { key: "warehouses", data: [] }
          dataKey: "warehouseNuber",
        },
      ],
      [
@@ -233,6 +244,7 @@
        field: "palletCode",
        title: "托盘编号",
        type: "string",
        hidden: true,
        width: 90,
        align: "left",
      },
@@ -249,16 +261,23 @@
        type: "select",
        width: 100,
        align: "left",
        bind: { key: "stockStatus", data: [] },
        bind: { key: "StockStatusEmun", data: [] },
      },
      {
        field: "warehouseId",
        title: "仓库",
        type: "select",
        width: 100,
        align: "left",
        bind: { key: "warehouses", data: [] },
      },
      // {
      //   field: "warehouseId",
      //   title: "仓库",
      //   type: "select",
      //   width: 100,
      //   align: "left",
      //   bind: { key: "warehouses", data: [] },
      // },
            {
          title: "库房编号",
          field: "warehouseCode",
          type: "select",
          data: [],
          bind: { key: "warehouseNuber", data: [] }
        },
      {
        field: "materielCode",
        title: "物料编码",
@@ -309,10 +328,21 @@
        },
      {
        field: "supplyQuantity",
        title: "盘点数",
        title: "盘点差异数",
        type: "number",
        width: 100,
        align: "left",
         cellStyle: (row) => {
          const value = row.supplyQuantity;
          if (value > 0) {
            return { color: "#00ff00" }; // ç»¿è‰²
          } else if (value < 0) {
            return { color: "#ff0000" }; // çº¢è‰²
          }
          // else {
          //   return { color: '#000000' }; // é»‘色
          // }
        },
      },
      {
        field: "inDate",
@@ -325,12 +355,14 @@
        field: "productionDate",
        title: "生产日期",
        type: "date",
        hidden: true,
        width: 120,
        align: "left",
      },
      {
        field: "shelfLife",
        title: "保质期天数",
        hidden: true,
        type: "number",
        width: 120,
        align: "left",
@@ -346,6 +378,7 @@
        field: "alarmInformation",
        title: "报警信息",
        type: "string",
        hidden: true,
        width: 120,
        align: "left",
      },