WXL
2025-02-27 5acc6d2dada00ac3c523e52ff5909c1e1f1937ab
src/views/patient/propaganda/QuestionnaireTask.vue
@@ -256,7 +256,7 @@
                      <el-select
                        v-model="illnesscodes"
                        style="width: 400px"
                        @remove-tag="removehpsp"
                        @remove-tag="removediagg"
                        size="medium"
                        :remote-method="remotedonor"
                        multiple
@@ -1131,6 +1131,8 @@
      belongWards: [],
      deptlist: [],
      hosplist: [],
      diagglist: [],
      operlist: [],
      tempDetpRelevanceslist: [], //科室数据
      tempDetpRelevanceslistform: [], //科室数据
      tempbelongWards: [], //病区数据
@@ -1906,8 +1908,8 @@
        if (res.code == 200) {
          let arr = res.rows;
          arr.forEach((item) => {
            this.hosplist.push(item);
            this.illnesscodes.push(item.icdcode);
            this.diagglist.push(item);
            this.illnesscodes.push(item.icd10code);
          });
        }
      });
@@ -1915,7 +1917,7 @@
        if (res.code == 200) {
          let arr = res.rows;
          arr.forEach((item) => {
            this.hosplist.push(item);
            this.operlist.push(item);
            this.operationcodes.push(item.opcode);
          });
        }
@@ -1930,46 +1932,46 @@
      if (result.length) {
        taskdepthospgetsondel(result).then((res) => {
          if (res.code) {
            this.$modal.msgSuccess("删除成功");
          }
        });
      }
    },
    // 院区删除删除触发
    removehpsp(row) {
      console.log(this.hosplist, "hhh");
      let result = this.hosplist
        .filter((item) => item.deptCode == row)
        .map((item) => item.id);
      console.log(result);
      if (result.length) {
        taskdepthospgetsondel(result).then((res) => {
          if (res.code) {
            this.$modal.msgSuccess("删除成功");
          }
        });
      }
    },
    // 手术删除触发
    removeopera(row) {
      let result = this.hosplist
        .filter((item) => item.deptCode == row)
      let result = this.operlist
        .filter((item) => item.opcode == row)
        .map((item) => item.id);
      if (result.length) {
        taskoperhospgetsondel(result).then((res) => {
          if (res.code) {
            this.$modal.msgSuccess("删除成功");
          }
        });
      }
    },
    // 疾病删除触发
    removeopera(row) {
      let result = this.hosplist
        .filter((item) => item.deptCode == row)
    removediagg(row) {
      let result = this.diagglist
        .filter((item) => item.icd10code == row)
        .map((item) => item.id);
      if (result.length) {
        taskdiaghospgetsondel(result).then((res) => {
          if (res.code) {
            this.$modal.msgSuccess("删除成功");
          }
        });
      }