wwl
2025-04-23 2ba7ab0ee950b3be4607f280889c0daf4ec6c99f
src/views/doctor/check/index.vue
@@ -291,7 +291,8 @@
                  </el-table-column>
                  <el-table-column prop="exceptionDesc" label="异常" width="55px" align="center">
                    <template slot-scope="scope">
                      <el-checkbox v-model="scope.row.exceptionDesc" @change="changDesc(scope.row)"></el-checkbox>
                      <el-checkbox v-model="scope.row.exceptionDesc" @change="changDesc(scope.row)"
                        :disabled="scope.row.project.sfcyyc === 1"></el-checkbox>
                    </template>
                  </el-table-column>
                  <el-table-column label="规则" width="70">
@@ -443,7 +444,8 @@
                  <el-table-column prop="exceptionDesc" label="异常" width="55px" align="center">
                    <template slot-scope="scope">
                      <el-checkbox v-model="scope.row.exceptionDesc"></el-checkbox>
                      <el-checkbox v-model="scope.row.exceptionDesc"
                        :disabled="scope.row.project.sfcyyc === 1"></el-checkbox>
                    </template>
                  </el-table-column>
                  <el-table-column prop="isReturn" label="复诊" width="55px" align="center">
@@ -999,6 +1001,7 @@
    // 输入确认时更新 BMI
    handleInputConfirm(row, params) {
      console.log(row, params, 55555)
      // 如果有 params 且为空,取消异常状态并清空相关字段
      if (params && params.length === 0) {
        row.exceptionDesc = false;
@@ -1045,14 +1048,19 @@
            if (res.data) {
              this.autorule = res.data;
              this.focusrow.rulesList = res.data;
              if (res.data.length > 0) {
                const conditions = ["正常", "未见异常", "阴性", "未见明显异常"];
                this.focusrow.exceptionDesc = !conditions.some((condition) =>
                  this.autorule[0].bz.includes(condition)
                );
              if (row.project.sfcyyc == 1) {
                return
              } else {
                this.focusrow.exceptionDesc = false;
                if (res.data.length > 0) {
                  const conditions = ["正常", "未见异常", "阴性", "未见明显异常"];
                  this.focusrow.exceptionDesc = !conditions.some((condition) =>
                    this.autorule[0].bz.includes(condition)
                  );
                } else {
                  this.focusrow.exceptionDesc = false;
                }
              }
              if (this.autorule.length !== 0 && (this.autorule[0] || this.autorule[0].nr)) {
                this.focusrow.proAdvice = this.autorule[0].nr;
              }
@@ -1074,13 +1082,17 @@
            if (res.data) {
              this.autorule = res.data;
              this.focusrow.rulesList = res.data;
              if (res.data.length > 0) {
                const conditions = ["正常", "未见异常", "阴性", "未见明显异常"];
                this.focusrow.exceptionDesc = !conditions.some((condition) =>
                  this.autorule[0].bz.includes(condition)
                );
              if (row.project.sfcyyc == 1) {
                return
              } else {
                this.focusrow.exceptionDesc = false;
                if (res.data.length > 0) {
                  const conditions = ["正常", "未见异常", "阴性", "未见明显异常"];
                  this.focusrow.exceptionDesc = !conditions.some((condition) =>
                    this.autorule[0].bz.includes(condition)
                  );
                } else {
                  this.focusrow.exceptionDesc = false;
                }
              }
              if (this.autorule.length !== 0 && (this.autorule[0] || this.autorule[0].nr)) {
                this.focusrow.proAdvice = this.autorule[0].nr;
@@ -1095,7 +1107,7 @@
        // 将当前行添加到 rows 中
        this.rows.push(row);
        console.log(this.rows, row);
      }
    },
@@ -1138,6 +1150,7 @@
        }
        this.proParentList.sons.forEach((item) => {
          this.doctorName = item.doctorName;
          if (this.doctorName == null) {
            this.userList.forEach((element) => {
              const userName = this.$store.state.user.name;
@@ -1149,7 +1162,7 @@
          if (item.isReturn == 1) item.isReturn = true;
          if (item.isReturn == 0) item.isReturn = false;
          if (item.exceptionDesc == "1") item.exceptionDesc = true;
          if (item.exceptionDesc == "0") item.exceptionDesc = false;
          if (item.exceptionDesc == "0" || item.project.sfcyyc == 1) item.exceptionDesc = false;
        });
        if (this.proParentList.xiaoJie && this.proParentList.xiaoJie.length != 0) {
          this.Parent.forEach((item3) => {
@@ -1165,7 +1178,7 @@
    handleFocus(row) {
      this.autorule = [];
      if (!row.resultType || row.resultType == 2) {
      if (!row.resultType || row.resultType == 2 ) {
        return;
      } else {
        this.curindex = row;
@@ -1343,7 +1356,7 @@
    },
    handleClose() {
      this.$tab.refreshPage();
      this.drawer = false;  // 只关闭抽屉,不刷新页面或重置数据
    },
    handleClose1() {
@@ -1355,8 +1368,8 @@
    },
    changDesc(item) {
      console.log(item);
      item.conclusion = item.exceptionDesc ? "异常" : "正常";
    },
@@ -1839,47 +1852,48 @@
    },
    determine() {
  let tjNumber = this.tableAll.tjNumber;
  this.userList.forEach((item) => {
    if (this.doctorName == item.nickName) this.doctorName = item.userId;
  });
  this.proParentList.sons.forEach((item) => {
    if (this.rows) {
      this.rows.forEach((item1) => {
        if (item1 === item) item = item1;
      this.tjOrderDetail = [];
      let tjNumber = this.tableAll.tjNumber;
      this.userList.forEach((item) => {
        if (this.doctorName == item.nickName) this.doctorName = item.userId;
      });
    }
    this.tjOrderDetail.push({
      proAdvice: item.proAdvice,
      proName: item.project.proName,
      proId: item.project.proId,
      orderDetailId: item.orderDetailId,
      flowingWaterId: item.flowingWaterId,
      proResult: item.proResult,
      tjStatus: 1,
      isReturn: item.isReturn === true ? 1 : 0,
      exceptionDesc: item.exceptionDesc === true ? 1 : 0,
      conclusion: item.conclusion,
      rulesList: item.rulesList,
    });
  });
      this.proParentList.sons.forEach((item) => {
        if (this.rows) {
          this.rows.forEach((item1) => {
            if (item1 === item) item = item1;
          });
        }
        this.tjOrderDetail.push({
          proAdvice: item.proAdvice,
          proName: item.project.proName,
          proId: item.project.proId,
          orderDetailId: item.orderDetailId,
          flowingWaterId: item.flowingWaterId,
          proResult: item.proResult,
          tjStatus: 1,
          isReturn: item.isReturn === true ? 1 : 0,
          exceptionDesc: item.exceptionDesc === true ? 1 : 0,
          conclusion: item.conclusion,
          rulesList: item.rulesList,
        });
      });
  let data = [{
    tjNumber,
    proId: this.proId,
    remark: this.proParentList.remark,
    proName: this.proName,
    summaryList: this.vaids1,
    doctorName: this.doctorName,
    tjOrderDetailList: this.tjOrderDetail,
  }];
  getaddRemark(data).then((res) => {
    this.$modal.msgSuccess("提交成功");
    this.rows = []; // 提交成功后清空 this.rows
    this.drawer = false;
  });
  this.handleClose();
},
      let data = [{
        tjNumber,
        proId: this.proId,
        remark: this.proParentList.remark,
        proName: this.proName,
        summaryList: this.vaids1,
        doctorName: this.doctorName,
        tjOrderDetailList: this.tjOrderDetail,
      }];
      getaddRemark(data).then((res) => {
        this.$modal.msgSuccess("提交成功");
        this.rows = []; // 提交成功后清空 this.rows
        this.drawer = false;
      });
      this.handleClose();
    },
  },
};
</script>