xiazhengtongxue
2026-01-24 a647de5665411f706beddc5e0ff7b3a3daaca4fc
ÏîÄ¿´úÂë/WMS/WIDESEA_WMSClient/src/extension/basic/locationInfo.js
@@ -47,7 +47,66 @@
            });
        }
      }
      let EnableRoadwayBtn = this.buttons.find(
        (x) => x.value == "EnableRoadway",
      );
      if (EnableRoadwayBtn) {
        EnableRoadwayBtn.onClick = function () {
          this.$prompt("请选择巷道 (1-5)", "提示", {
            confirmButtonText: "确定",
            cancelButtonText: "取消",
            inputPattern: /^[1-5]$/,
            inputErrorMessage: "请输入1-5之间的数字",
          })
            .then(({ value }) => {
              this.http
                .post(
                  `api/LocationInfo/EnableAllLocationsInRoadway?roadwayNo=${value}`,
                  null,
                  "数据处理中",
                )
                .then((x) => {
                  console.log(x);
                  if (!x.status) return this.$message.error(x.message);
                  this.$message.success(x.message || "操作成功");
                  this.refresh();
                });
            })
            .catch(() => {
              this.$message.info("已取消操作");
            });
        };
      }
      let DisableRoadwayBtn = this.buttons.find(
        (x) => x.value == "DisableRoadway",
      );
      if (DisableRoadwayBtn) {
        DisableRoadwayBtn.onClick = function () {
          this.$prompt("请选择巷道 (1-5)", "提示", {
            confirmButtonText: "确定",
            cancelButtonText: "取消",
            inputPattern: /^[1-5]$/,
            inputErrorMessage: "请输入1-5之间的数字",
          })
            .then(({ value }) => {
              this.http
                .post(
                  `api/LocationInfo/DisableAllLocationsInRoadway?roadwayNo=${value}`,
                  null,
                  "数据处理中",
                )
                .then((x) => {
                  if (!x.status) return this.$message.error(x.message);
                  this.$message.success(x.message || "操作成功");
                  this.refresh();
                });
            })
            .catch(() => {
              this.$message.info("已取消操作");
            });
        };
      }
      this.columns.push({
        field: '操作',
        title: '操作',