1
wwl
2025-04-02 ba9feade5bf2759e64815e72e2b247d9a8b9c27e
src/views/doctor/check/index.vue
@@ -1095,7 +1095,7 @@
        // 将当前行添加到 rows 中
        this.rows.push(row);
        console.log(this.rows, row);
      }
    },
@@ -1343,7 +1343,7 @@
    },
    handleClose() {
      this.$tab.refreshPage();
      this.drawer = false;  // 只关闭抽屉,不刷新页面或重置数据
    },
    handleClose1() {
@@ -1356,7 +1356,7 @@
    changDesc(item) {
      console.log(item);
      item.conclusion = item.exceptionDesc ? "异常" : "正常";
    },
@@ -1839,47 +1839,47 @@
    },
    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;
      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>