qinxianzhangyao
2024-03-01 c2d3848973ea99d9f7758f628aa49985977e3891
qxtj
1个文件已修改
22 ■■■■ 已修改文件
src/views/hosp/project/index.vue 22 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/hosp/project/index.vue
@@ -488,6 +488,7 @@
        xmmc: null,
        pym: null,
      },
      treeDate: {},
      queryParam: {
        page: 1,
        pageSize: 10,
@@ -498,7 +499,7 @@
        proParentId: "",
        deptId: "",
        needReport: "Y",
        proStatus:"0",
        proStatus: "0",
        proName: "",
        proPrice: "",
        sfxmId: "",
@@ -620,6 +621,7 @@
    handleAdd(row) {
      // this.reset();
      this.loading = true;
      this.proParent = false
      this.form.proPrice = 0.0;
      this.form.proName = "";
      this.form.proId = null;
@@ -632,11 +634,20 @@
          project.children = this.handleTree(response.data.list, "proId");
          this.key = response.data.key;
          this.projectOptions.push(project);
          console.log(this.projectOptions)
          if (row) {
          if (row.proId) {
            this.form.proParentId = row.proId;
            this.open = true;
          } else {
          } else if(this.treeDate.id){
            this.form.proParentId = this.treeDate.id
            this.projectOptions.forEach(item => {
              item.children.forEach(item1 => {
                if(this.form.proParentId == item1.proId){
                  this.form.deptId = item1.deptId
                }
              })
            })
            this.open = true;
          }else{
            this.open = true;
          }
        }
@@ -689,7 +700,6 @@
    },
    obtain(vals) {
      if (this.projectOptions) {
        this.selectList = vals;
      }
@@ -797,6 +807,7 @@
    },
    // 节点单击事件
    handleNodeClick(date) {
      this.treeDate = date
      if (date.qf == "0") {
        this.xiugais = true;
      } else {
@@ -1023,7 +1034,6 @@
    handleUpdate1() {
      this.open = true;
      this.form = this.xiugaiList;
      // console.log( this.form )
      this.proParent = true
      // if(){
      //   this.proParent = true