:qx
qx
6 天以前 a4965736d3f6e0293f16fafd044de08882958413
src/views/doctor/check/index.vue
@@ -742,7 +742,7 @@
      activeNames: "first",
      taocan: false,
      minedis: false,
      lastClickedTab:null,
      lastClickedTab: null,
      creatobj: {},
      dataText: [],
      propform: {},
@@ -1330,17 +1330,28 @@
    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;
          this.deptAdviceList1 = [
            ...new Set(this.deptAdviceList2.concat(this.deptAdviceList3)),
          this.proParentList.xiaoJieIds.forEach(item => {
            this.deptAdviceList3.forEach((items) => {
              if (item == items.id) {
                deptAdviceList1.push(items)
              }
            });
          })
           this.deptAdviceList1 = [
            ...new Set(deptAdviceList1),
          ];
          this.deptAdviceList3.forEach((items) => {
            this.idss.push(items.id);
            this.remakes += items.advice + ",";
          });
          // this.deptAdviceList1 = [
          //   ...new Set(this.deptAdviceList2.concat(this.deptAdviceList3)),
          // ];
          // this.deptAdviceList3.forEach((items) => {
          //   this.idss.push(items.id);
          //   this.remakes += items.advice + ",";
          // });
        }
      });
    },
@@ -1380,26 +1391,42 @@
    handleDelete(row) {
      this.deptAdviceList1.forEach((item, index) => {
        if (item.id == row.id) this.deptAdviceList1.splice(index, 1);
        if (item.id == row.id) {
          this.deptAdviceList1.splice(index, 1);
          this.$refs.multipleTable.toggleRowSelection(item, false);
        }
      });
    },
    handleSelectionChanges(selection) {
      this.deptAdviceList2 = this.deptAdviceList1;
      if (this.deptAdviceList1.length != 0) {
        this.deptAdviceList2 = this.deptAdviceList1;
      }
      if (selection.length > 1) {
        const del_row = selection.shift();
        this.$refs.multipleTable.toggleRowSelection(del_row, false);
      }
      selection.forEach((item) => this.deptAdviceList2.push(item));
      this.deptAdviceList1 = [
        ...new Set(this.deptAdviceList2.concat(this.deptAdviceList3)),
      ];
      // this.deptAdviceList1 = [
      //   ...new Set(this.deptAdviceList2),
      // ];
      this.deptAdviceList1 = [...new Set(
  this.deptAdviceList2.map(item => JSON.stringify(item))
)].map(str => JSON.parse(str));
      // if( this.deptAdviceList1.length == 0){
      //   this.deptAdviceList1 = selection
      // }else{
      //   selection.forEach((item) => this.deptAdviceList1.push(item));
      // }
    },
    queding() {
      if (this.proParentList.xiaoJie.length != 0) {
        this.remakes = "";
        this.titles = "";
        this.vaids = []
        this.deptAdviceList1.forEach((item1) => {
          if (this.proParentList.remark != null) {
            this.titles += item1.title + ",";
@@ -1853,6 +1880,7 @@
      this.loading = true;
      this.drawer = true;
      this.isLoading = true;
      this.titles = ""
      this.Parent = []
      this.tableAll = []
      this.proParentList = {}
@@ -1962,11 +1990,11 @@
            //判断新数组是否有这个元素值,没有的话,就把arr[i]给push到新数组newArr中
            if (this.proParentList.sons[i].proResult == "" || this.proParentList.sons[i].proResult == null) {
              this.radio = this.lastClickedTab.name
              this.$modal.msgError("请填写资料");
              this.$modal.msgError("请检查项目是否填写完成");
              this.minedis = true
              return
            } else if (this.proParentList.sons[i].proResult.includes(" ")) {
              this.$modal.msgError("请查看是否有空格");
              this.$modal.msgError("请检查填写项目中是否有空格");
              this.radio = this.lastClickedTab.name
              this.minedis = true
              return
@@ -1994,7 +2022,7 @@
              proId: this.proId,
              remark: this.proParentList.remark,
              proName: this.proName,
              summaryList: this.value,
              summaryList: this.vaids,
              doctorName: this.doctorName,
              tjOrderDetailList: this.tjOrderDetail,
            }];
@@ -2045,14 +2073,14 @@
        //   rulesList: item.rulesList,
        // });
      });
        for (var i = 0; i < this.proParentList.sons.length; i++) {
      for (var i = 0; i < this.proParentList.sons.length; i++) {
        //判断新数组是否有这个元素值,没有的话,就把arr[i]给push到新数组newArr中
        if (this.proParentList.sons[i].proResult == "" || this.proParentList.sons[i].proResult == null) {
          this.$modal.msgError("请填写资料");
          this.$modal.msgError("请检查项目是否填写完成");
          this.minedis = true
          return
        } else if (this.proParentList.sons[i].proResult.includes(" ")) {
          this.$modal.msgError("请查看是否有空格");
          this.$modal.msgError("请检查填写项目中是否有空格");
          this.minedis = true
          return
        } else {
@@ -2079,7 +2107,7 @@
            proId: this.proId,
            remark: this.proParentList.remark,
            proName: this.proName,
            summaryList: this.vaids1,
            summaryList: this.vaids,
            doctorName: this.doctorName,
            tjOrderDetailList: this.tjOrderDetail,
          },