WXL
2025-03-03 bcf3cae47b1d6d5bde273d1006719751d615769f
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
@@ -1081,6 +1081,10 @@
          value: "6",
          label: "院外患者",
        },
        {
          value: "5",
          label: "手术病人",
        },
      ],
      source: [
        {
@@ -1131,6 +1135,8 @@
      belongWards: [],
      deptlist: [],
      hosplist: [],
      diagglist: [],
      operlist: [],
      tempDetpRelevanceslist: [], //科室数据
      tempDetpRelevanceslistform: [], //科室数据
      tempbelongWards: [], //病区数据
@@ -1272,7 +1278,7 @@
          //   label: "智能机器人",
          // },
        ];
      } else if (this.form.serviceType == 7 || this.form.serviceType == 9) {
      } else if (this.form.serviceType == 7|| this.form.serviceType == 10|| this.form.serviceType == 11|| this.form.serviceType == 9) {
        this.checkboxlist = [
          {
            value: "1",
@@ -1297,6 +1303,10 @@
          {
            value: "6",
            label: "微信小程序",
          },
          {
            value: "7",
            label: "术后随访",
          },
        ];
      } else if (
@@ -1906,8 +1916,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 +1925,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 +1940,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("删除成功");
          }
        });
      }