qinxianzhangyao
2024-02-27 13a9015a85303de6e6dd4379f31621b0877672a3
qxtj
1个文件已修改
21 ■■■■■ 已修改文件
src/views/hosp/project/index.vue 21 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/hosp/project/index.vue
@@ -1099,8 +1099,6 @@
      }else{
        this.form.deptId = null
      }
      console.log(this.form.deptId)
      // this.form.proId = this.queryParams.proId;
      this.form.proCheckMethod = "N";
@@ -1222,7 +1220,6 @@
    getDeptList() {
      listDept(this.queryParams).then((response) => {
        this.parentNameList = response.data;
        console.log(this.parentNameList)
        this.deptList = this.handleTree(response.data, "proId");
      });
    },
@@ -1497,7 +1494,6 @@
      this.proParent =false
      getProject(proId).then((response) => {
        this.form = response.data;
        console.log( this.form)
        if (this.form.proParentId === "0") {
          this.showPrise = true;
          this.showRentPrise = false;
@@ -1563,7 +1559,6 @@
      });
    },
    changeValue(value) {
      console.log(value)
      // this.form.deptName = value;
      this.form.deptId = value;
    },
@@ -1634,8 +1629,14 @@
              this.form.lisXmbm = this.form.lisXmbm;
              updateProject(this.form).then((response) => {
                this.$modal.msgSuccess("修改成功");
                this.cancel();
                if(this.proParent == true){
                  this.getDeptTree();
                  this.cancel();
                }else{
                  this.cancel();
                this.getList();
                }
              });
            } else {
              if (this.form.proParentId === 0) {
@@ -1698,8 +1699,14 @@
              this.form.lisXmbm = this.form.lisXmbm;
              updateProject(this.form).then((response) => {
                this.$modal.msgSuccess("修改成功");
                this.cancel();
                if(this.proParent == true){
                  this.getDeptTree();
                  this.cancel();
                }else{
                  this.cancel();
                this.getList();
                }
              });
            } else {
              if (this.form.proParentId === 0) {