1
wwl
2024-12-25 8cef8ec64d4301b5d46299e42d98c59426b61673
src/views/doctor/check/index.vue
@@ -544,7 +544,6 @@
                        placeholder="请输入检测结果"
                        @blur="handleInputConfirm(scope.row)"
                        @input="vale"
                        @focus="handleInConfirm(scope.row)"
                      ></el-input>
                    </template>
                  </el-table-column>
@@ -834,7 +833,6 @@
                        placeholder="请输入检测结果"
                        @blur="handleInputConfirm(scope.row)"
                        @input="vale"
                        @focus="handleInConfirm(scope.row)"
                      ></el-input>
                    </template>
                  </el-table-column>
@@ -1728,6 +1726,7 @@
      console.log("输入内容:", value);
    },
    handleInputConfirm(datas) {
      this.focusrow = datas;
      this.proResult = datas;
      var pattern3 = new RegExp("[0-9]+");
      if (pattern3.test(this.proResult)) {
@@ -1736,23 +1735,31 @@
          cusId: this.tableAll.cusId,
          keyNum: this.proResult,
          tjNum: this.tableAll.tjNumber,
          keyNum: this.proResult.proResult
          keyNum: this.proResult.proResult,
        };
        AutoGetRule(data).then((res) => {
          this.focusrow.conclusion = "";
          if (res.data) {
            this.autorule = res.data;
            this.focusrow.rulesList = this.autorule;
            this.focusrow.rulesList = res.data;
            if (res.data.length > 0) {
              const conditions = ["正常", "未见异常", "阴性", "未见明显异常"];
              this.focusrow.exceptionDesc = !conditions.some((condition) =>
                this.autorule[0].bz.includes(condition)
              );
            } else {
              this.focusrow.exceptionDesc = false;
            }
            this.autorule.forEach((item) => {
              if (this.focusrow.conclusion) {
                this.focusrow.conclusion += item.bingzhong;
                this.focusrow.conclusion += item.bz;
              } else {
                this.focusrow.conclusion = item.bingzhong;
                this.focusrow.conclusion += item.bz;
              }
            });
            // this.rows.push(this.focusrow);
            // this.rows.push(this.focusrow);
            // console.log(this.rows,5522);
          }
        });
      } else {
@@ -1761,82 +1768,38 @@
          cusId: this.tableAll.cusId,
          keyWord: this.proResult,
          tjNum: this.tableAll.tjNumber,
          keyNum: this.proResult.proResult
          keyNum: this.proResult.proResult,
        };
        AutoGetRule(data).then((res) => {
          this.focusrow.conclusion = "";
          if (res.data) {
            this.autorule = res.data;
            this.focusrow.rulesList = this.autorule;
            this.focusrow.rulesList = res.data;
            if (res.data.length > 0) {
              const conditions = ["正常", "未见异常", "阴性", "未见明显异常"];
              this.focusrow.exceptionDesc = !conditions.some((condition) =>
                this.autorule[0].bz.includes(condition)
              );
            } else {
              this.focusrow.exceptionDesc = false;
            }
            this.autorule.forEach((item) => {
              if (this.focusrow.conclusion) {
                this.focusrow.conclusion += item.bingzhong;
                this.focusrow.conclusion += item.bz;
              } else {
                this.focusrow.conclusion = item.bingzhong;
                this.focusrow.conclusion += item.bz;
              }
            });
            // this.rows.push(this.focusrow);
            // this.rows.push(this.focusrow);
          }
        });
      }
      this.rows.push(datas);
      console.log(this.rows,5522)
      // this.$refs.aaa.open = true;
      // this.$refs.aaa.getList();
      console.log(this.rows, 5522);
    },
    /* vale(datas) {
      this.proResult = datas;
      var pattern3 = new RegExp("[0-9]+");
      if (pattern3.test(this.proResult)) {
        let data = {
          proId: this.focusrow.proId,
          cusId: this.tableAll.cusId,
          keyNum: this.proResult,
        };
        AutoGetRule(data).then((res) => {
          this.focusrow.conclusion = "";
          if (res.data) {
            this.autorule = res.data;
            this.focusrow.rulesList = this.autorule;
            this.autorule.forEach((item) => {
              if (this.focusrow.conclusion) {
                this.focusrow.conclusion += item.bingzhong;
              } else {
                this.focusrow.conclusion = item.bingzhong;
              }
            });
          }
        });
      } else {
        let data = {
          proId: this.focusrow.proId,
          cusId: this.tableAll.cusId,
          keyWord: this.proResult,
        };
        AutoGetRule(data).then((res) => {
          this.focusrow.conclusion = "";
          if (res.data) {
            this.autorule = res.data;
            this.focusrow.rulesList = this.autorule;
            this.autorule.forEach((item) => {
              if (this.focusrow.conclusion) {
                this.focusrow.conclusion += item.bingzhong;
              } else {
                this.focusrow.conclusion = item.bingzhong;
              }
            });
          }
        });
      }
      // this.$refs.aaa.open = true;
      // this.$refs.aaa.getList();
    }, */
    // 规则
    handleguize(row) {
      this.row = row;
      this.$refs.aaa.open = true;
@@ -2799,9 +2762,6 @@
          this.getbzlist();
        });
    },
    handleInConfirm(row) {
      this.focusrow = row;
    },
    // 点击确认
    determine() {
@@ -2883,7 +2843,6 @@
}
.el-button--medium {
  padding: 4px 14px;
  font-size: 14px;
}