qq_41295110
2025-11-19 5fa77e254003aea6060e3f70d64e5fd1bcdb4748
src/views/basic/gy/gyDepartment.vue
@@ -1,5 +1,5 @@
<template>
  <div style="padding: 10px;position: relative;">
  <div style="padding: 10px; position: relative;">
    <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" label-width="98px" class="searchBox">
      <el-row>
        <el-form-item label="部门代码" prop="HNumber" style="margin-left: 100px;">
@@ -168,8 +168,7 @@
        <RowSettings :colName="btResList" :HModName="HModName" @rowEditClose="rowSetClose" v-if="rowHideShow" />
      </el-dialog>
      <!-- 编辑 -->
      <el-dialog title="编辑生产资料" :visible.sync="openEdit" width="1480px" append-to-body class="xsckdBox"
        @close="close">
      <el-dialog title="编辑部门资料" :visible.sync="openEdit" width="1480px" append-to-body class="xsckdBox" @close="close">
        <edit :OperationType=OperationType :linterid=this.rowForm.HItemID :HSouceBillType=this.rowForm.HSourceBillType
          :copyType="copyType" @editCloseGy="editGyClose" v-if="editShow" />
      </el-dialog>
@@ -264,7 +263,7 @@
      open: false,
      // 查询参数
      queryParams: {
        HOrgID: null,
        HOrgID: sessionStorage["OrganizationID"] - 0,
        HName: null,
        HNumber: null,
        Comparator1: '',
@@ -373,7 +372,6 @@
      if (this.pageSize == 0) {
        this.pageSize = 50
      }
      this.queryParams.HOrgID = sessionStorage["OrganizationID"]-0
      this.sWhere += " and HUSEORGID = '" + this.queryParams.HOrgID + "'"
      //生产资料列表
      axios.get(this.baseURL + '/Gy_Department/list', {
@@ -766,8 +764,9 @@
    //退出
    close() {
      this.tableShow = true
      this.single = true
      this.openEdit = false
       this.editShow= false
      this.editShow = false
      this.getList()
    },
    //打开新增组件弹窗
@@ -790,15 +789,16 @@
    editGyClose(val) {
      this.editShow = false
      this.openEdit = false
      this.multiple = true,
        this.getList()
      this.single = true
      this.multiple = true
      this.getList()
    },
    /** 删除按钮操作 */
    handleDelete() {
      this.$modal.confirm('确认要删除吗,删除后不能恢复').then(() => {
        if (!this.rowForm.审核人) {
          axios.get(this.baseURL + "DeltetGy_Source", {
            params: { 'HItemID': this.rowForm.HItemID.toString(), 'user': sessionStorage["HUserName"] }
          axios.get(this.baseURL + "DeltetGy_Department", {
            params: { 'HItemID': this.rowForm.HItemID, 'user': sessionStorage["HUserName"] }
          }).then(response => {
            if (response.data.count == 1) {
              this.getList()
@@ -818,7 +818,7 @@
    set_CheckBill(num, form) {
      var InterID = form.HItemID || form.HInterID
      //逻辑审核方法
      axios.get(this.baseURL + "/Gy_Source/AuditGy_Source", {
      axios.get(this.baseURL + "/Gy_Department/AuditGy_Department", {
        params: { "HInterID": InterID, "IsAudit": num, "CurUserName": sessionStorage["HUserName"] }
      }).then(response => {
        let result = response.data