lkk
2024-12-16 6c67a924e87f74a07a74c6f953b69e8bcc109015
jujiao
2个文件已修改
143 ■■■■ 已修改文件
src/views/doctor/examination/index.vue 107 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/hosp/order/index.vue 36 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/doctor/examination/index.vue
@@ -7,6 +7,15 @@
      :inline="true"
      label-width="68px"
    >
    <el-form-item label="姓名" prop="name">
        <el-input
          v-model="queryParams.name"
          placeholder="请输入姓名"
          clearable
          @keyup.enter.native="handleQuery"
          style="width: 110px"
        />
      </el-form-item>
      <el-form-item label="体检号" prop="tjNumber">
        <el-input
          ref="inputName"
@@ -18,15 +27,7 @@
          style="width: 170px"
        />
      </el-form-item>
      <el-form-item label="姓名" prop="name">
        <el-input
          v-model="queryParams.name"
          placeholder="请输入姓名"
          clearable
          @keyup.enter.native="handleQuery"
          style="width: 110px"
        />
      </el-form-item>
      <el-form-item
        label="单位名称"
        prop="tjCompName"
@@ -319,7 +320,7 @@
      </div>
    </div>
    <el-drawer title="我是标题" :visible.sync="drawer" :with-header="false">
    <!-- <el-drawer title="我是标题" :visible.sync="drawer" :with-header="false">
      <div class="a" v-for="(item, index) in jieguoList" :key="index">
        <template v-if="item.jyjc == 0">
          <div
@@ -362,13 +363,54 @@
              检查结论:{{ item.yxzd || "暂无结论" }}
            </div>
          </div>
        </template>
      </div>
    </el-drawer> -->
          <!-- <el-table-column label="检测项目" prop="pro_name">
    <el-drawer title="我是标题" :visible.sync="drawer" :with-header="false">
      <div v-if="jieguoList && jieguoList.length > 0">
        <div v-if="jieguoList[0].jyjc === 0">
          <div
            style="
              text-align: center;
              background-color: #aad8df;
              margin-top: 10px;
            "
          >
            {{ jieguoList[0].pro_name || "" }}
          </div>
          <el-table
            :data="jieguoList"
            border
            style="width: 100%"
            :header-cell-style="{ background: '#AAD8DF' }"
          >
            <el-table-column label="检测项目" prop="pro_name">
            </el-table-column>
            <el-table-column label="检测结果" prop="pro_result">
            </el-table-column> -->
          <!-- <el-table-column label="参考范围" prop="ckfw"> </el-table-column> -->
        </template>
            </el-table-column>
            <el-table-column label="参考范围" prop="ckfw"> </el-table-column>
          </el-table>
        </div>
        <div v-else-if="jieguoList[0].jyjc === 1">
          <div
            style="
              text-align: center;
              background-color: #aad8df;
              margin-top: 10px;
            "
          >
            {{ jieguoList[0].pro_name || "" }}
          </div>
          <div style="padding: 0 10px; margin-bottom: 10px; margin-top: 10px">
            <div>检查所见:{{ jieguoList[0].pro_result }}</div>
            <div style="margin-top: 10px">
              检查结论:{{ jieguoList[0].yxzd || "暂无结论" }}
            </div>
          </div>
        </div>
      </div>
    </el-drawer>
@@ -409,7 +451,11 @@
  dicts: ["dict_tj_status"],
  data() {
    return {
      jieguoList: [],
      jieguoList: [
        {
          jyjc: "",
        },
      ],
      dis: false,
      createTimeList: "",
      currentRow: null,
@@ -430,7 +476,7 @@
        name: null,
        beginTime: null,
        endTime: null,
        tjCompName:''
        tjCompName: "",
      },
      // 绑定单选按钮
      checkStatus: "0",
@@ -547,8 +593,7 @@
    // 选框数据
    searchSelect(val) {
      this.CheckBox = val;
      console.log(this.CheckBox,9999);
      console.log(this.CheckBox, 9999);
    },
    getList() {
      this.loading = true;
@@ -565,8 +610,8 @@
      // 获取单位信息集合
      getCompany(this.queryParam).then((response) => {
        this.CompanyList = response.data;
        console.log( this.CompanyList,555);
        console.log(this.CompanyList, 555);
        this.loading = false;
      });
@@ -624,7 +669,7 @@
    hb() {
      // console.log(this.queryParams.tjNumber);
      if (this.queryParams.tjNumber != null) {
        this.handleQuery();
        // this.handleQuery();
        this.submitForm();
      }
    },
@@ -672,7 +717,7 @@
    /** 重置按钮操作 */
    resetQuery() {
      this.createTimeList = [];
      this.queryParams ={
      (this.queryParams = {
        page: 1,
        pageSize: 20,
        checkStatus: null,
@@ -681,13 +726,12 @@
        name: null,
        beginTime: null,
        endTime: null,
        tjCompName:''
      },
      this.CheckBox.drugManufacturerId = ''
        tjCompName: "",
      }),
        (this.CheckBox.drugManufacturerId = "");
      this.handleQuery();
      this.loading = true;
    },
    // 单选框选中数据
    handleSelectionChange(selection) {
@@ -793,13 +837,18 @@
    },
    queryResultone(row) {
      // 打开抽屉
      this.drawer = true;
      const tjNum = this.selectedTjNumber;
      const proId = row.proId;
      resultList(tjNum, proId).then((res) => {
        console.log(res, 666);
        this.jieguoList = res.data;
        console.log(this.jieguoList[0],22222);
        if (res.data.length > 0) {
          this.drawer = true;
        } else {
          this.$message.warning("该项目没有结果");
        }
      });
    },
    setTime() {
src/views/hosp/order/index.vue
@@ -1784,6 +1784,39 @@
        this.loading = false;
      });
    },
    sub() {
      this.queryParams.compId = this.CheckBox.drugManufacturerId;
      if (this.startTime) {
        this.queryParams.djbeginTime = this.startTime[0];
        this.queryParams.djendTime = this.startTime[1];
      } else if (this.createTimeList) {
        this.queryParams.djbeginTime = this.createTimeList[0];
        this.queryParams.djendTime = this.createTimeList[1];
      } else if (this.createTimeList == null) {
        this.queryParams.djbeginTime = null;
        this.queryParams.djendTime = null;
      }
      if (this.startTime1) {
        this.queryParams.bgbeginTime = this.startTime1[0];
        this.queryParams.bgendTime = this.startTime1[1];
      }
      this.loading = true;
      getOrderList(this.queryParams).then((response) => {
        this.orderList = response.data.list;
        if (this.orderList) {
          this.orderList.forEach((item, index) => {
            item.newID =
              (this.queryParams.pageNum - 1) * this.queryParams.pageSize +
              index +
              1;
          });
        }
        this.total = response.data.total;
        this.loading = false;
      });
    },
    driver(row) {
      return row.pacName == null ? "普通体检" : row.pacName;
    },
@@ -1957,7 +1990,8 @@
    /** 搜索按钮操作 */
    handleQuery() {
      this.queryParams.pageNum = 1;
      this.getList();
      // this.getList();
      this.sub();
    },
    renderContents(h, { node, data, store }) {
      return (