qx
qx
2 天以前 a95990a4d6022e2d854a33fbc4c3396409854e08
src/views/doctor/check/index.vue
@@ -682,7 +682,7 @@
        </el-tab-pane>
      </el-tabs>
      <span slot="footer" class="dialog-footer">
        <el-button @click="taocan = false">取 消</el-button>
        <el-button @click="quzxiao">取 消</el-button>
        <el-button type="primary" @click="queding">确 定</el-button>
      </span>
    </el-dialog>
@@ -976,6 +976,18 @@
            });
          }
        });
      }else {
        if (this.focusrow.proResult != this.focusrow.project.proDefault) {
          const substrings = ["正常", "未见异常", "阴性", "未见明显异常", "无"];
          let containsAllSubstrings = substrings.some(sub => this.focusrow.proResult.includes(sub));
          if (containsAllSubstrings) {
            this.focusrow.exceptionDesc = false;
          } else {
            this.focusrow.exceptionDesc = true;
          }
        } else {
          this.focusrow.exceptionDesc = false;
        }
      }
    },
@@ -1081,6 +1093,18 @@
            });
          }
        });
      }else {
        if (this.focusrow.proResult != this.focusrow.project.proDefault) {
          const substrings = ["正常", "未见异常", "阴性", "未见明显异常", "无"];
          let containsAllSubstrings = substrings.some(sub => this.focusrow.proResult.includes(sub));
          if (containsAllSubstrings) {
            this.focusrow.exceptionDesc = false;
          } else {
            this.focusrow.exceptionDesc = true;
          }
        } else {
          this.focusrow.exceptionDesc = false;
        }
      }
      this.rows.push(row);
    },
@@ -1330,30 +1354,51 @@
    bzxz() {
      this.taocan = true;
      var deptAdviceList1 =[]
      let data = { proId: this.proId, tjNum: this.tableAll.tjNumber };
      getAdviceByTjNumAndPro(data).then((res) => {
        if (res.data) {
          this.deptAdviceList3 = res.data;
      var deptAdviceList1 = []
      // let data = { proId: this.proId, tjNum: this.tableAll.tjNumber };
      // getAdviceByTjNumAndPro(data).then((res) => {
      // if (res.data) {
      //   this.deptAdviceList3 = res.data;
      if (this.proParentList.xiaoJieIds.length != 0) {
        if (this.vaids.length != 0) {
          const result = this.vaids.reduce((acc, item) => {
            const matches = this.deptAdviceList.filter(items => {
              return item == items.id;  // 或 === 根据需求
            });
            return acc.concat(matches);
          }, []);
          deptAdviceList1 = result;
          return this.deptAdviceList1 = [
            ...new Set(deptAdviceList1),
          ];
        } else {
          this.proParentList.xiaoJieIds.forEach(item => {
            this.deptAdviceList3.forEach((items) => {
            this.deptAdviceList.forEach((items) => {
              if (item == items.id) {
                deptAdviceList1.push(items)
              }
            });
          })
           this.deptAdviceList1 = [
          return this.deptAdviceList1 = [
            ...new Set(deptAdviceList1),
          ];
          // this.deptAdviceList1 = [
          //   ...new Set(this.deptAdviceList2.concat(this.deptAdviceList3)),
          // ];
          // this.deptAdviceList3.forEach((items) => {
          //   this.idss.push(items.id);
          //   this.remakes += items.advice + ",";
          // });
        }
      });
      } else if (this.proParentList.xiaoJieIds == null) {
        this.deptAdviceList1 = []
      }
      // this.deptAdviceList1 = [
      //   ...new Set(this.deptAdviceList2.concat(this.deptAdviceList3)),
      // ];
      // this.deptAdviceList3.forEach((items) => {
      //   this.idss.push(items.id);
      //   this.remakes += items.advice + ",";
      // });
      //   }
      // });
    },
    result() {
@@ -1412,8 +1457,8 @@
      //   ...new Set(this.deptAdviceList2),
      // ];
      this.deptAdviceList1 = [...new Set(
  this.deptAdviceList2.map(item => JSON.stringify(item))
)].map(str => JSON.parse(str));
        this.deptAdviceList2.map(item => JSON.stringify(item))
      )].map(str => JSON.parse(str));
      // if( this.deptAdviceList1.length == 0){
      //   this.deptAdviceList1 = selection
      // }else{
@@ -1421,7 +1466,10 @@
      // }
    },
    quzxiao() {
      this.taocan = false;
      this.deptAdviceList1 = []
    },
    queding() {
      if (this.proParentList.xiaoJie.length != 0) {
        this.remakes = "";
@@ -1601,7 +1649,14 @@
    eventchange(data) {
      this.dataText = data;
      data.forEach((item) => (this.proParentList.remark += item.advice));
      //data.forEach((item) => (this.proParentList.remark += item.advice));
      data.forEach((item) => {
        if (item.advice) {
          this.proParentList.remark += item.advice
        } else if (item.jynr) {
          this.proParentList.remark += item.jynr
        }
      })
    },
    proposalChange() {