su
su1124
2024-02-04 0efe80f285b799fbf376c6567889dfa9061b72ec
su
2个文件已修改
42 ■■■■■ 已修改文件
src/api/hosp/project.js 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/hosp/project/index.vue 33 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/hosp/project.js
@@ -93,3 +93,12 @@
    params: query
  })
}
// 查询体检项目详细
export function getInfoByProId(proId) {
  return request({
    url: 'hosp/project/getInfoByProId',
    method: 'get',
    params: {proId:proId}
  })
}
src/views/hosp/project/index.vue
@@ -76,6 +76,17 @@
              >新增</el-button
            >
          </el-col>
          <el-col :span="1.5">
            <el-button
            :disabled = "xiugais"
              type="primary"
              icon="el-icon-plus"
              size="mini"
              @click="handleUpdate1"
              v-hasPermi="['hosp:project:add']"
              >修改</el-button
            >
          </el-col>
          <!-- <el-col :span="1.5">
        <el-button type="success" plain icon="el-icon-edit" size="mini" :disabled="single" @click="handleUpdate" v-hasPermi="['hosp:project:edit']">修改</el-button>
      </el-col> -->
@@ -361,6 +372,7 @@
            v-model="form.proSex"
            placeholder="请选择体检人性别"
            style="width: 200px"
            clearable
          >
            <el-option
              v-for="dict in dict.type.sys_user_sex"
@@ -806,7 +818,8 @@
  ProjectTree,
  deptTree,
  deptTree111,
  getAllChildListById
  getAllChildListById,
  getInfoByProId
} from "@/api/hosp/project";
import { listDept } from "@/api/system/dept";
import Treeselect from "@riophae/vue-treeselect";
@@ -850,6 +863,8 @@
      }
    };
    return {
      xiugais:true,
      xiugaiList:[],
      // 部门树选项
      deptOptions: undefined,
      dialogTableVisible: false,
@@ -1033,6 +1048,7 @@
        proName: this.queryParams.proName,
        checkType: this.queryParams.checkType,
        deptId: this.queryParams.deptId,
        proId: this.queryParams.proId,
      };
      getAllChildListById(data).then((response) => {
        // this.projectList = this.handleTree(response.data.list, "proId");
@@ -1219,11 +1235,22 @@
    },
    // 节点单击事件
    handleNodeClick(date) {
      if(date.$treeNodeId == 3){
        this.xiugais = true;
      }else{
        this.xiugais = false;
      }
      let proId = date.id;
      getInfoByProId(proId).then((response)=>{
        this.xiugaiList = response.data;
        console.log(this.xiugaiList,222);
      })
      console.log(date,111);
      this.id = date.id;
      this.queryParams.proId = date.id;
      let data = {
        proId: this.queryParams.proId,
        proName:this.queryParams.proNamez
      };
      this.loading = true;
      getAllChildListById(data).then((response) => {
@@ -1434,6 +1461,10 @@
        this.form.tjStandardList.splice(index, 1);
      }
    },
    handleUpdate1(){
      this.open = true;
      this.form = this.xiugaiList;
    },
    /** 修改按钮操作 */
    handleUpdate(row) {
      this.reset();