duyongjia
2024-12-02 208a9afadac81484fa150c0a236618facab93c52
´úÂë¹ÜÀí/WCS/WIDESEAWCS_Client/src/extension/basic/extend/updateStatus.vue
@@ -12,15 +12,16 @@
          <el-input v-model="form.locationCode" disabled></el-input>
        </el-form-item>
        <el-form-item label="货位状态">
          <el-select v-model="form.locationStatus" placeholder="请选择货位状态">
          <el-select v-model="form.locationStatus" placeholder="请选择货位状态" @change="showStatus">
            <el-option
              v-for="item in options"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option> </el-select
        ></el-form-item>
            </el-option>
          </el-select>
          </el-form-item>
      </el-form>
      <template #footer>
        <el-button type="primary" size="small" @click="updateLocationStatus"
@@ -52,6 +53,9 @@
    };
  },
  methods: {
    showStatus(){
      console.log(this.form.locationStatus);
    },
    open(row) {
      this.row = row;
      this.showDetialBox = true;
@@ -63,8 +67,8 @@
        .post("/api/LocationInfo/GetLocationStatusDic", {}, true)
        .then((x) => {
          if (!x.status) return this.$message.error(x.message);
          this.options = x.data;
          console.log(this.options);
        });
    },
    updateLocationStatus() {
@@ -73,7 +77,7 @@
          "/api/LocationInfo/UpdateLocationStatus?key=" +
            this.row.id +
            "&locationStatus=" +
            this.row.locationStatus,
            this.form.locationStatus,
          {},
          "数据处理中"
        )
@@ -81,6 +85,8 @@
          if (!x.status) return this.$message.error(x.message);
          this.$message.success("操作成功");
          this.showDetialBox = false;
          this.form.locationStatus='';
          this.$parent.refresh()
        });
    },
  },