陈婷婷
2025-12-03 77e5a091d6f09b27386038df920f9170c3e56cc1
src/views/basic/gy/gySupplier.vue
@@ -10,7 +10,7 @@
        </el-form-item>
        <el-form-item label="组织">
          <el-select v-model="queryParams.HUSEORGID" placeholder="请选择">
            <el-option v-for="(item, index) in organizationList" :key="index" :label="item.Name" :value="item.ID">
            <el-option v-for="(item, index) in organizationList" :key="index" :label="item.Name" :value="item.Name">
            </el-option>
          </el-select>
        </el-form-item>
@@ -291,7 +291,7 @@
      open: false,
      // 查询参数
      queryParams: {
        HUSEORGID: sessionStorage["OrganizationID"] - 0,
        HUSEORGID: sessionStorage["Organization"],
        HName: null,
        HNumber: null,
        HSupTypeID: null,
@@ -448,7 +448,7 @@
        params: {
          "sWhere": this.sWhere,
          "user": sessionStorage["HUserName"],
          "Organization": sessionStorage["Organization"],
          "Organization": this.queryParams.HUSEORGID,
          "page": this.page,
          "size": this.pageSize
        },
@@ -635,7 +635,7 @@
      this.selectedRow = row; // 记录当前选中的行
      this.lastSelectedRowIndex = this.tableData.indexOf(row);
      this.$refs.tableData.toggleRowSelection(row);
        if (this.openPage) {
      if (this.openPage) {
        this.$emit('deptEmit', row, 6)
      }
    },
@@ -752,11 +752,12 @@
      if (this.queryParams.HName) {
        this.sWhere += " and 供应商名称 like '%" + this.queryParams.HName + "%'";
      }
      if (this.queryParams.HUSEORGID) {
        this.sWhere += " and HUSEORGID = '" + this.queryParams.HUSEORGID + "'"
      }
      // if (this.queryParams.HUSEORGID) {
      //   this.sWhere += " and HUSEORGID = '" + this.queryParams.HUSEORGID + "'"
      // }
      // this.sWhere += this.addSWhereByOpenType()
      // this.sWhere += this.getOrgIDByUser()
      this.clearData()
      this.getList()
    },
@@ -799,7 +800,7 @@
    resetQuery() {
      this.sWhere = ''
      this.queryParams = {
        HUSEORGID: null,
        HUSEORGID:sessionStorage["Organization"],
        HName: null,
        HNumber: null,
        Comparator1: '',
@@ -810,14 +811,22 @@
        ColContent: '',
      }
      this.resetForm("queryForm")
      this.clearData()
      this.getList()
    },
    clearData() {
      this.single = true
      this.multiple = true
      this.OperationType = 0
      this.copyType = 0
      this.ids = []
    },
    //退出
    close() {
      this.tableShow = true
      this.openEdit = false
      this.editShow = false
      this.clearData()
      this.getList()
    },
    //打开新增组件弹窗
@@ -840,8 +849,8 @@
    editGyClose(val) {
      this.editShow = false
      this.openEdit = false
      this.multiple = true,
        this.getList()
      this.clearData()
      this.getList()
    },
    /** 删除按钮操作 */
    handleDelete() {
@@ -868,7 +877,7 @@
    set_CheckBill(num, form) {
      var InterID = form.HItemID || form.HInterID
      //逻辑审核方法
      axios.get(this.baseURL + "/Gy_Source/AuditGy_Source", {
      axios.get(this.baseURL + "/Gy_Supplier/AuditGy_Supplier", {
        params: { "HInterID": InterID, "IsAudit": num, "CurUserName": sessionStorage["HUserName"] }
      }).then(response => {
        let result = response.data
@@ -879,6 +888,7 @@
        else {
          this.$modal.msgError("错误:" + result.code + result.Message,);
        }
        this.clearData()
      }).catch(error => {
        this.$modal.msgError("接口请求失败!");
      });
@@ -887,7 +897,7 @@
    set_De_Stop(num, form) {
      var InterID = form.HItemID || form.HInterID
      //逻辑审核方法
      axios.get(this.baseURL + "/Gy_Source/StopGy_Source", {
      axios.get(this.baseURL + "/Gy_Supplier/StopGy_Supplier", {
        params: { "HInterID": InterID, "IsStop": num, "CurUserName": sessionStorage["HUserName"] }
      }).then(response => {
        let result = response.data
@@ -898,6 +908,7 @@
        else {
          this.$modal.msgError("错误:" + result.code + result.Message,);
        }
        this.clearData()
      }).catch(error => {
        this.$modal.msgError("接口请求失败!");
      });