chenhaozhe
2025-12-07 dcd1bfa18415d5623df59d6df00c1918359e63ba
src/views/basic/gyStockPlace/gyStockPlaceEdit.vue
@@ -40,7 +40,7 @@
                    v-for="(item, index) in organizationList"
                    :key="index"
                    :label="item.Name"
                    :value="item.ID"
                    :value="item.ID.toString()"
                  >
                  </el-option>
                </el-select>
@@ -151,7 +151,7 @@
      CheckBillDisabled: true,
      // OperationType: this.$route.query.OperationType,//保存类型(新增1修改3)
      HInterID: null,
      baseURL: process.env.VUE_APP_BASE_API || "http://47.96.97.237/API/",
      baseURL: process.env.VUE_APP_BASE_API ,
      user: "admin",
      currentRow: [],
      lastSelectedRowIndex: null, // 用于记录上次点击的行索引
@@ -219,14 +219,8 @@
  methods: {
    fetchData() {
      //登录用户信息
      axios
        .get(
          "http://47.96.97.237/API/Web/GetUser?UserName=001&PassWord=123456&HOrgName=100038"
        )
        .then((response) => {
          let data = response.data.data[0];
          this.zuzhiId = data.HUSEORGID; //根据登录用户获取默认的组织ID
          this.user = data.Czymc;
          this.zuzhiId = sessionStorage["OrganizationID"]; //根据登录用户获取默认的组织ID
          this.user = sessionStorage["HUserName"];
          axios
            .get(this.baseURL + "/Web/GetOrganizations", {})
            .then((response) => {
@@ -238,10 +232,7 @@
            .catch((error) => {
              this.$modal.msgError("接口请求失败!");
            });
        })
        .catch((error) => {
          this.$modal.msgError("接口请求失败!");
        });
    },
    getdata() {
      this.reset();
@@ -269,7 +260,7 @@
                  HHelpCode: data.助记码,
                  HRemark: data.备注,
                  HSPGroupID: data.HSPGroupID,
                  HSPGroupName: data.所属仓位,
                  HSPGroupName: data.所属仓库,
                  HStopflag: data.禁用标记 == "Y" ? true : false,
                  HStandard: data.默认仓位 == "Y" ? true : false,
                },