11
lkk
2025-03-31 bad2bc143be3f8ddb93a1c9f984127b3ccf43e8f
src/views/hosp/project/index.vue
@@ -79,6 +79,10 @@
          </el-table-column>
          <el-table-column label="项目标准值" align="center" prop="proScope" :show-overflow-tooltip="true" width="90px">
          </el-table-column>
          <el-table-column label="Lis项目名称" align="center" prop="lisXmmc"  :show-overflow-tooltip="true" width="200px">
          </el-table-column>
          <el-table-column label="Lis编码" align="center" prop="lisXmbm" :show-overflow-tooltip="true" width="90px">
          </el-table-column>
          <el-table-column label="临床意义" align="center" prop="proMeaning" width="350px" :show-overflow-tooltip="true" />
          <el-table-column label="备注" prop="remark" align="center" width="120px" :show-overflow-tooltip="true">
          </el-table-column>
@@ -681,11 +685,16 @@
          project.children = this.handleTree(response.data.list, "proId");
          this.key = response.data.key;
          this.projectOptions.push(project);
          // this.open = true;
          if (row.proId) {
            this.form.proParentId = row.proId || 0;
            this.open = true;
          } else if (this.treeDate.id) {
            this.form.proParentId = this.treeDate.id || 0;
           if(this.treeDate.qf == "0"){
            this.form.proParentId = "0"
            this.form.deptId =this.treeDate.id
           }else{
            this.form.proParentId = this.treeDate.id;
            this.projectOptions.forEach((item) => {
              item.children.forEach((item1) => {
                if (this.form.proParentId == item1.proId) {
@@ -693,8 +702,12 @@
                }
              });
            });
           }
            this.open = true;
          } else {
             this.form.proParentId = "0"
            this.open = true;
          }
        }
@@ -811,7 +824,9 @@
      });
    },
    handleNodeClick(date) {
      this.treeDate = date;
      console.log(this.treeDate)
      this.xiugais = date.qf === "0";
      let proId = date.id;
      getInfoByProId(proId).then((response) => {
@@ -1055,7 +1070,7 @@
        } else {
          this.form.consumablesList = null;
        }
        if (!this.form.deptId || !this.form.proParentId) {
        if (!this.form.deptId || this.form.proParentId == null) {
          this.$message.error("请填写父项名称或科室名称");
          this.open = true;
        } else {