Tiandele
2026-03-20 daea1a90c2fa1b5cc2f52e62be15bd95cc4155f6
ÏîÄ¿´úÂë/WMS/WMSClient/src/extension/widesea_wms/stock/VV_StockInfo.js
@@ -91,6 +91,58 @@
        }
      };
      // åº“存锁定
      var stockLock = this.buttons.find(x => x.value == "stockLock");
      if (stockLock != null) {
        stockLock.onClick = () => {
          let rows = this.$refs.table.getSelected();
          if (rows.length == 0) {
            return this.$error("请选择数据!");
          }
          let ids = rows.map(x => {
            return x.id;
          })
          this.http.post(`/api/VV_StockInfo/stockLock`, ids, "库存锁定中...").then((result) => {
            if (result.status) {
              this.$Message.success(result.message);
              this.refresh();
            } else {
              this.$Message.error(result.message);
              this.refresh();
            }
          })
        }
      };
      // åº“存解锁
      var stockUnLock = this.buttons.find(x => x.value == "stockUnLock");
      if (stockUnLock != null) {
        stockUnLock.onClick = () => {
          let rows = this.$refs.table.getSelected();
          if (rows.length == 0) {
            return this.$error("请选择数据!");
          }
          let ids = rows.map(x => {
            return x.id;
          })
          this.http.post(`/api/VV_StockInfo/stockUnLock`, ids, "库存解锁中...").then((result) => {
            if (result.status) {
              this.$Message.success(result.message);
              this.refresh();
            } else {
              this.$Message.error(result.message);
              this.refresh();
            }
          })
        }
      };
      // this.columns.forEach((column) => {
      //   if (column.field == 'materielName') {
      //     column.formatter = (row) => {