qinxianzhangyao
2024-02-26 ca6c2f06fbeb6c27eefc34f516cf71b0b1a840cd
qxtj
1个文件已修改
37 ■■■■ 已修改文件
src/views/hosp/project/index.vue 37 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/hosp/project/index.vue
@@ -291,8 +291,9 @@
        label-width="100px"
        :inline="true"
      >
        <el-form-item label="主项名称" prop="proParentId">
        <el-form-item label="主项名称" prop="proParentId"  >
          <treeselect
          :disabled="proParent"
            v-model="form.proParentId"
            :options="projectOptions"
            :normalizer="normalizer"
@@ -300,6 +301,7 @@
            placeholder="选择主项名称"
            style="width: 260px"
            @select="obtain"
          />
        </el-form-item>
        <el-form-item label="明细项目" prop="proName" v-if="key == 'Y'">
@@ -921,6 +923,7 @@
        children: "children",
        label: "label",
      },
      proParent:false,
      id: "",
      // 重新渲染表格状态
      refreshTable: true,
@@ -1243,7 +1246,7 @@
    },
    // 节点单击事件
    handleNodeClick(date) {
      if (date.children) {
      if (date.qf == "0") {
        this.xiugais = true;
      } else {
        this.xiugais = false;
@@ -1469,6 +1472,21 @@
    handleUpdate1() {
      this.open = true;
      this.form = this.xiugaiList;
      // console.log( this.form )
      this.proParent = true
      // if(){
      //   this.proParent = true
      // }
      getlist().then((response) => {
        if (response.code == 200) {
          this.loading = false;
          this.projectOptions = [];
          const project = { proId: 0, proName: "主类目", children: [] };
          project.children = this.handleTree(response.data.list, "proId");
          this.key = response.data.key;
          this.projectOptions.push(project);
        }
      })
    },
    /** 修改按钮操作 */
    handleUpdate(row) {
@@ -1476,8 +1494,10 @@
      this.getData();
      // this.form = row;
      const proId = row.proId || this.ids;
      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;
@@ -1485,7 +1505,7 @@
          this.showPrise = false;
          this.showRentPrise = true;
        }
        this.form.deptId = Number(this.form.deptId);
        // this.form.deptId = Number(this.form.deptId);
        if (this.form.proStandard === 0) {
          this.showPrise = true;
          this.showRentPrise = false;
@@ -1528,7 +1548,16 @@
            }
          });
        }
        getlist().then((response) => {
        if (response.code == 200) {
          this.loading = false;
          this.projectOptions = [];
          const project = { proId: 0, proName: "主类目", children: [] };
          project.children = this.handleTree(response.data.list, "proId");
          this.key = response.data.key;
          this.projectOptions.push(project);
        }
      })
        this.open = true;
        this.title = "体检项目信息维护";
      });