wwl
2025-05-09 aadc91f6723a6eafac893bd5a2dd7d021a5e58d5
zongjian
1个文件已修改
111 ■■■■■ 已修改文件
src/views/doctor/checkAll/index.vue 111 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/doctor/checkAll/index.vue
@@ -425,7 +425,7 @@
                </el-table>
              </div>
            </template>
            <template v-if="wenzhen">
            <template v-if="status1 == 3">
              <div class="hist3">
                <span class="txt">问诊信息</span>
                <el-form ref="form" :model="formobj" label-width="100px" :inline="true" size="mini">
@@ -851,7 +851,6 @@
      jianqians: false,
      sex: true,
      activeName: "1",
      wenzhen: false,
      hosproy: true,
      remarks: "",
      remark: "",
@@ -1331,16 +1330,22 @@
    getRowKeys(row) {
      return row.orderDetailId;
    },
    xiangmuqingkuang() {
      cSWebGetPro(this.tjNumber).then((res) => {
  this.loading = true;
  cSWebGetPro(this.tjNumber)
    .then((res) => {
        this.status1 = 1;
        this.wenzhen = false
        this.statusList = res.data;
        if (this.statusList.length == 0) {
          this.$message.msgSuccess("暂无项目情况");
        this.$message.success("暂无项目情况");
        }
    })
    .catch((error) => {
      console.error('获取项目情况失败:', error);
      this.$message.error('获取项目情况失败');
    })
    .finally(() => {
      this.loading = false;
      });
    },
@@ -1349,13 +1354,13 @@
    },
    yichangjieguo() {
  this.loading = true;
      this.status1 = 0;
      let _this = this;
      yichang({
        tjNum: this.tjNumber,
      }).then((res) => {
  })
    .then((res) => {
        this.yichangList = res.data;
        this.yichangList.forEach((item) => {
          item.sone.forEach((soneItem) => {
            if (!Array.isArray(soneItem.advices) || soneItem.advices.length === 0) {
@@ -1363,26 +1368,37 @@
            }
          });
        });
        if (!this.yichangList) {
          _this.$message({
            type: "warning",
            message: "暂无异常报告",
          });
        this.$message.warning("暂无异常报告");
        }
    })
    .catch((error) => {
      console.error('获取异常结果失败:', error);
      this.$message.error('获取异常结果失败');
    })
    .finally(() => {
      this.loading = false;
      });
    },
    fuchaxiangmu() {
  this.loading = true;
      this.status1 = 2;
      this.wenzhen = false
      let data = {
        tjNum: this.tjNumber,
        type: 1
      }
      getFcList(data).then(res => {
        this.fcList = res.data
  };
  getFcList(data)
    .then((res) => {
      this.fcList = res.data;
      })
    .catch((error) => {
      console.error('获取复查项目失败:', error);
      this.$message.error('获取复查项目失败');
    })
    .finally(() => {
      this.loading = false;
    });
    },
    getdate() {
@@ -1499,8 +1515,10 @@
    },
    Graphicreport() {
  this.loading = true;
      let dictType = "dict_ageunit";
      getDicts(dictType).then((res) => {
  getDicts(dictType)
    .then((res) => {
        if (res.code == 200) {
          res.data.forEach((item) => {
            if (this.tableAll.age_unit == item.dictValue) {
@@ -1508,7 +1526,12 @@
            }
          });
          let dictTypes = "sys_user_sex";
          getDicts(dictTypes).then((res) => {
        return getDicts(dictTypes);
      } else {
        throw new Error('获取年龄单位字典失败');
      }
    })
    .then((res) => {
            if (res.code == 200) {
              res.data.forEach((item) => {
                if (this.tableAll.cusSex == item.dictValue) {
@@ -1522,39 +1545,53 @@
                patagename: this.tableAll.age_unit,
                patbirth: this.tableAll.cusBrithday,
              };
              getTjYxjcList(data).then((res) => {
        return getTjYxjcList(data);
      } else {
        throw new Error('获取性别字典失败');
      }
    })
    .then((res) => {
                this.baogao = res.data;
              });
              this.$refs.bbb.open = true;
              this.$refs.bbb.title = "报告字典";
            }
          });
        }
    })
    .catch((error) => {
      console.error('生成图文报告失败:', error);
      this.$message.error('生成图文报告失败');
    })
    .finally(() => {
      this.loading = false;
      });
    },
    historicalreport() {
      this.loading = true;
      this.wenzhen = false;
      this.hosproy = true;
      let data = {
        cusId: this.tableAll.cusId,
      };
      reportHistory(data).then((res) => {
        this.loading = false;
  reportHistory(data)
    .then((res) => {
        if (res.data[0] != null) {
          this.reportHistorydata = res.data;
        } else {
          this.reportHistorydata = [];
        }
    })
    .catch((error) => {
      console.error('获取历史报告失败:', error);
      this.$message.error('获取历史报告失败');
    })
    .finally(() => {
      this.loading = false;
      });
    },
    medicalhistory() {
      this.wenzhen = true;
      this.hosproy = false;
  this.loading = true;
  this.status1 = 3;
      let tjNumber = this.tableAll.tjNumber;
      getInfoById(tjNumber).then((response) => {
  getInfoById(tjNumber)
    .then((response) => {
        this.formobj = response.data;
        if (this.formobj.xiyan == null) {
          this.formobj.xiyan = "1";
@@ -1574,6 +1611,13 @@
        if (this.formobj.yinjiuyear == null) {
          this.formobj.yinjiuyear = "0";
        }
    })
    .catch((error) => {
      console.error('获取职业病史失败:', error);
      this.$message.error('获取职业病史失败');
    })
    .finally(() => {
      this.loading = false;
      });
    },
@@ -1897,7 +1941,6 @@
    handleClose1(done) {
      this.jianqians = false;
      this.wenzhen = false;
      this.flags = false;
      done();
    },