刘磊
2025-08-25 4c308eab6106324bd40e6ad7fd9e769a5cedcedf
ÏîÄ¿´úÂë/WMS/WIDESEA_WMSClient/src/extension/widesea_wms/stock/Dt_PalletStockInfo.js
@@ -23,7 +23,7 @@
      let options = {
        field: 'palletCode',
        title: '托盘码',
        sortable: false,
        sortable: true,
        type: 'text',
        //link:true,
        fixed: true,
@@ -50,7 +50,7 @@
            });
        }
      };
      this.columns.splice(1, 0, options);
      //this.columns.splice(1, 0, options);
      var ManualOutbound = this.buttons.find(x => x.value == "ManualOutBound");
      if (ManualOutbound != null) {
@@ -60,20 +60,18 @@
            return this.$error("请选择数据!");
          }
          console.log(rows);
          //console.log(rows);
          let errmsg = "";
          rows.forEach(element => {
            if (element.stockStatus != 2)
              errmsg = "当前选择数据中有不符合出库状态库存!";
            if(element.areaCode != rows[0].areaCode)
            if (element.areaCode != rows[0].areaCode)
              errmsg = "当前选择数据中含有不同库区的数据";
          });
          if (errmsg != "")
            return this.$error(errmsg)
          var barcodeList = rows.map(x =>
            x.palletCode
@@ -90,6 +88,22 @@
        }
      };
      this.columns.forEach((column) => {
        if (column.field == 'materielName') {
          column.formatter = (row) => {
            // return '<span style="color: #2d8cf0;">' + row?.locationInfo?.roadwayNo + '</span>'
            return row?.stockInfoDetails[0]?.materielName
          }
        }
        if (column.field == 'quantity') {
          column.formatter = (row) => {
            // return '<span style="color: #2d8cf0;">' + row?.locationInfo?.roadwayNo + '</span>'
            return row?.stockInfoDetails[0]?.quantity
          }
        }
      })
    },
    onInited() {
      //框架初始化配置后