lkk
2025-01-06 93594afdf8567822384ad3b893e612c1cff082b8
src/views/hosp/project/index.vue
@@ -24,6 +24,7 @@
              :default-expanded-keys="treeId"
              highlight-current
              @node-click="handleNodeClick"
              :render-content="renderContent"
            />
          </div>
        </div>
@@ -181,12 +182,20 @@
            :show-overflow-tooltip="true"
          />
          <el-table-column
            label="临床意义"
            label="结果类型"
            align="center"
            prop="proMeaning"
            width="350px"
            prop="resultType"
            width="110px"
            :show-overflow-tooltip="true"
          />
          >
            <template slot-scope="scope">
              <dict-tag
                :options="dict.type.tj_result_type"
                :value="scope.row.resultType"
              />
            </template>
          </el-table-column>
          <!-- <el-table-column label="检查方式" align="center" prop="proCheckMethod" :show-overflow-tooltip="true"
            width="110px" /> -->
          <el-table-column
@@ -226,19 +235,12 @@
          >
          </el-table-column>
          <el-table-column
            label="项目类型"
            label="临床意义"
            align="center"
            prop="resultType"
            width="110px"
            prop="proMeaning"
            width="350px"
            :show-overflow-tooltip="true"
          >
            <template slot-scope="scope">
              <dict-tag
                :options="dict.type.tj_result_type"
                :value="scope.row.resultType"
              />
            </template>
          </el-table-column>
          />
          <el-table-column
            label="备注"
            prop="remark"
@@ -1066,6 +1068,8 @@
        lisXmmc: "",
        proMetering: "",
        proScope: "",
        proSex:'2',
        resultType: "", // 初始值
      },
      // 表单校验
      rules: {
@@ -1126,6 +1130,9 @@
  created() {
    this.getConsumables();
    this.getDeptList();
    this.getDeptTree();
  },
  mounted() {
    this.getDeptTree();
  },
  methods: {
@@ -1191,6 +1198,7 @@
      this.form.proPrice = 0.0;
      this.form.proName = "";
      this.form.proId = null;
      this.form.resultType = "1";
      //  ProjectTree
      getlist().then((response) => {
        if (response.code == 200) {
@@ -1301,6 +1309,7 @@
      this.List = true;
      listSfxm(this.querycharge).then((response) => {
        this.sfxmList = response.rows;
        response.rows.forEach((item, index) => {
          item.newID =
            (this.querycharge.pageNum - 1) * this.querycharge.pageSize +
@@ -1326,6 +1335,7 @@
    handleNodecharge(data) {
      this.queryParam.id = data.id;
      this.List = false;
      this.getListByXmId();
    },
@@ -1383,6 +1393,19 @@
        this.deptOptions = response.data;
        this.treeId.push(this.deptOptions[0].id);
      });
    },
    renderContent(h, { node, data }) {
      return h(
        "span",
        {
          style: {
            color: data.status === "1" ? "red" : "inherit", // 动态设置颜色
            fontSize: "14px",
          },
        },
        data.label // 显示节点的 label
      );
    },
    // 筛选节点
@@ -1491,6 +1514,7 @@
        consumablesList: [],
        tjStandardList: [],
        proStatus: "0",
        resultType: "1",
      };
      this.resetForm("form");
    },
@@ -1649,7 +1673,6 @@
      this.proParent = false;
      getProject(proId).then((response) => {
        console.log(response, 999);
        this.form = response.data;
        if (this.form.proParentId === "0") {
          this.showPrise = true;
@@ -1945,12 +1968,14 @@
  height: 1000px; /* 设置内容的高度,以触发垂直滚动条 */
}
.el-table__header-wrapper .el-checkbox {
  display: none;
}
.red-text {
  color: red !important;
}
.pag {
  display: flex;
  justify-content: center;