wangyi
2026-01-19 7fb0a8f0ab16c149484bf043754cd10cfa94de2f
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,16 +219,10 @@
  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", {})
            .get(this.$baseUrl + "/Web/GetOrganizations", {})
            .then((response) => {
              if (response.data.count == 1) {
                this.organizationList = response.data.data; //组织列表
@@ -238,10 +232,7 @@
            .catch((error) => {
              this.$modal.msgError("接口请求失败!");
            });
        })
        .catch((error) => {
          this.$modal.msgError("接口请求失败!");
        });
    },
    getdata() {
      this.reset();
@@ -249,7 +240,7 @@
      if (this.OperationType != 1) {
        this.zzSelDis = true;
        axios
          .get(this.baseURL + "/Gy_StockPlace/cx", {
          .get(this.$baseUrl + "/Gy_StockPlace/cx", {
            params: {
              HInterID: this.linterid,
            },
@@ -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,
                },
@@ -419,7 +410,7 @@
              var sMainSub = sMainStr + ";" + this.user;
              axios({
                method: "post",
                url: this.baseURL + "/Gy_StockPlace/AddBill1",
                url: this.$baseUrl + "/Gy_StockPlace/AddBill1",
                data: {
                  oMain: sMainSub,
                },
@@ -452,7 +443,7 @@
        .then(() => {
          if (this.rowForm.状态 == "创建") {
            axios
              .get(this.baseURL + "/Kf_SellOutBill/DeltetSellOutBill", {
              .get(this.$baseUrl + "/Kf_SellOutBill/DeltetSellOutBill", {
                params: { HInterID: this.rowForm.hmainid.toString(), user: this.user },
              })
              .then((response) => {
@@ -476,7 +467,7 @@
      var InterID = form.HItemID || form.HInterID;
      //逻辑审核方法
      axios
        .get(this.baseURL + "/Gy_Warehouse/AuditGy_Warehouse", {
        .get(this.$baseUrl + "/Gy_Warehouse/AuditGy_Warehouse", {
          params: { HInterID: InterID, IsAudit: num, CurUserName: this.user },
        })
        .then((response) => {