dengjunjie
2 天以前 7ca9651f81d7b84f054194d3d46fdbd1d9c8b922
ÏîÄ¿´úÂë/WMS/WIDESEA_WMSClient/src/extension/outbound/extend/StockSelect.vue
@@ -131,33 +131,32 @@
        //   type: "string",
        //   width: 150,
        // },
        // {
        //   prop: "palletCode",
        //   title: "托盘编号",
        //   type: "string",
        //   width: 280,
        // },
        {
          prop: "palletCode",
          title: "托盘编号",
          type: "string",
          width: 280,
        },
        {
          prop: "orderNo",
          prop: "batchNo",
          title: "批次号",
          type: "string",
          width: 150,
        },
        // {
        //   prop: "stockQuantity",
        //   title: "库存",
        //   type: "string",
        //   width: 150,
        // },
        // {
        //   prop: "outboundQuantity",
        //   title: "出库袋数",
        //   type: "string",
        //   width: 180,
        // },
        {
          prop: "batchNo",
          title: "柜号",
          type: "string",
          width: 150,
        },
        {
          prop: "locationCode",
          title: "货位编号",
          type: "string",
          width: 180,
        },
        {
          prop: "useableQuantity",
          prop: "stockQuantity",
          title: "可用数量",
          type: "string",
        },
@@ -210,12 +209,12 @@
      if (this.selection.length <= 0) {
        return this.$message.error("请选择指定库存");
      }
      if (this.selectionSum > this.row.orderQuantity) {
        return this.$message.error("已选数量不能超过需求数量");
      }
      // if (this.selectionSum > this.row.orderQuantity) {
      //   return this.$message.error("已选数量不能超过需求数量");
      // }
      this.http
        .post(
          "api/Task/GenerateOutboundTask?id=" + this.row.id,
          "api/Task/NewGenerateOutboundTask?id=" + this.row.id,
          this.selection,
          "数据处理中"
        )
@@ -231,7 +230,9 @@
    getData() {
      this.http
        .post(
          "api/StockInfo/GetStockSelectViews?materielCode=" +
          // "api/StockInfo/GetStockSelectViews?materielCode=" +
          //   this.row.materielCode,
          "api/InventoryBatch/GetInventoryBatch?materielCode=" +
            this.row.materielCode,
          null,
          "查询中"
@@ -262,7 +263,7 @@
      this.selectionSum =
        val.reduce(
          (accumulator, currentValue) =>
            accumulator + currentValue["useableQuantity"],
            accumulator + currentValue["stockQuantity"],
          0
        ) + this.originalQuantity;
      if (this.selectionSum == this.row.orderQuantity) {