WXL (wul)
16 小时以前 c3576dff24adbb52cf807c100afb63399e16f813
src/views/patient/propaganda/particty.vue
@@ -216,7 +216,7 @@
                </el-form-item>
                <el-form-item label="任务关联" prop="longTask">
                  <el-radio-group v-model="form.appltype">
                    <el-radio label="1">科室关联</el-radio>
                    <el-radio label="1">课题组关联</el-radio>
                    <el-radio label="2">病区关联</el-radio>
                    <el-radio label="3">疾病关联</el-radio>
                    <el-radio label="4">手术关联</el-radio>
@@ -224,7 +224,7 @@
                </el-form-item>
                <el-row v-if="form.appltype == 1">
                  <el-col :span="20"
                    ><el-form-item label="适用科室" prop="region">
                    ><el-form-item label="适用课题组" prop="region">
                      <el-select
                        v-model="deptcodesWards"
                        @remove-tag="removetag"
@@ -232,7 +232,7 @@
                        size="medium"
                        multiple
                        filterable
                        placeholder="请选择科室"
                        placeholder="请选择课题组"
                      >
                        <el-option
                          class="ruleFormaa"
@@ -940,7 +940,7 @@
      patientloading: false, // 遮罩层
      dialogVisiblepatient: false, //添加患者弹框
      dialogVisiblepatientjb: false,
      deptcodesWards: [], //科室数据
      deptcodesWards: [], //课题组数据
      leavehospitaldistrictcodes: [], //病区数据
      operationcodes: [], //手术数据
      illnesscodes: [], //疾病数据
@@ -971,7 +971,7 @@
        { label: "年龄", width: "", prop: "age" },
        { label: "责任护士", width: "", prop: "nurseName" },
        { label: "主治医生", width: "", prop: "drname" },
        { label: "科室", width: "240", prop: "dept" },
        { label: "课题组", width: "240", prop: "dept" },
        { label: "病区", width: "240", prop: "leavehospitaldistrictname" },
      ],
      // 患者表单
@@ -985,7 +985,7 @@
        { label: "出院天数", width: "", prop: "endDay" },
        { label: "责任护士", width: "", prop: "nurseName" },
        { label: "主治医生", width: "", prop: "drname" },
        { label: "科室", width: "180", prop: "deptName" },
        { label: "课题组", width: "180", prop: "deptName" },
        { label: "病区", width: "150", prop: "leavehospitaldistrictname" },
      ],
@@ -1039,7 +1039,7 @@
      patientqueryParams: {
        pageNum: 1, //
        pageSize: 10,
        topica: 1, //0全部1科室2病区
        topica: 1, //0全部1课题组2病区
        leaveldeptcodes: [],
        leavehospitaldistrictcodes: [],
      },
@@ -1149,7 +1149,7 @@
        },
        {
          value: 1,
          label: "科室患者",
          label: "课题组患者",
        },
        {
          value: 2,
@@ -1158,14 +1158,14 @@
      ],
      tasktypes: store.getters.tasktypes,
      // 科室/病区
      // 课题组/病区
      belongWards: [],
      deptlist: [],
      hosplist: [],
      diagglist: [],
      operlist: [],
      tempDetpRelevanceslist: [], //科室数据
      tempDetpRelevanceslistform: [], //科室数据
      tempDetpRelevanceslist: [], //课题组数据
      tempDetpRelevanceslistform: [], //课题组数据
      tempbelongWards: [], //病区数据
      tempbelongWardsform: [], //病区数据
      rules: {
@@ -1182,13 +1182,13 @@
          { required: true, message: "发送设置不能为空", trigger: "blur" },
        ],
        // deptcode: [
        //   { required: true, message: "适用科室不能为空", trigger: "blur" },
        //   { required: true, message: "适用课题组不能为空", trigger: "blur" },
        // ],
        // leavehospitaldistrictcode: [
        //   { required: true, message: "适用病区不能为空", trigger: "blur" },
        // ],
      },
      // 科室院区查询入参
      // 课题组院区查询入参
      queryParamsdept: {
        tempid: "",
        type: 2,
@@ -1374,6 +1374,7 @@
      } else if (
        this.form.serviceType == 2 ||
        this.form.serviceType == 3 ||
        this.form.serviceType == 16 ||
        this.form.serviceType == 4
      ) {
        this.checkboxlist = [
@@ -1632,7 +1633,7 @@
          { label: "出院天数", width: "", prop: "endDay" },
          { label: "责任护士", width: "", prop: "nurseName" },
          { label: "医生", width: "", prop: "drname" },
          { label: "科室", width: "180", prop: "dept" },
          { label: "课题组", width: "180", prop: "dept" },
          { label: "病区", width: "150", prop: "leavehospitaldistrictname" },
        ];
      } else if (this.patientqueryParams.allhosp == 4) {
@@ -1646,7 +1647,7 @@
          { label: "出院天数", width: "", prop: "endDay" },
          { label: "责任护士", width: "", prop: "nurseName" },
          { label: "医生", width: "", prop: "drname" },
          { label: "科室", width: "180", prop: "dept" },
          { label: "课题组", width: "180", prop: "dept" },
          { label: "病区", width: "150", prop: "leavehospitaldistrictname" },
        ];
      }
@@ -1795,7 +1796,7 @@
      this.patientqueryParams = {
        pageNum: 1, //
        pageSize: 10,
        topica: 1, //0全部1科室2病区
        topica: 1, //0全部1课题组2病区
        leaveldeptcodes: [],
        leavehospitaldistrictcodes: [],
      };
@@ -1899,7 +1900,7 @@
      this.time3 = ""; //晚上时间段
      this.time4 = ""; //晚上时间段
    },
    // 获取科室列表
    // 获取课题组列表
    listDept() {
      this.leavehospitaldistrictcodes = [];
      this.deptcodesWards = [];
@@ -1969,7 +1970,7 @@
      }
    },
    // 任务科室删除触发
    // 任务课题组删除触发
    removetag(row) {
      let result = this.deptlist
        .filter((item) => item.deptCode == row)
@@ -2173,7 +2174,7 @@
        });
      }
    },
    // 保存科室/病区
    // 保存课题组/病区
    putbelongDepts(id) {
      this.tempDetpRelevanceslistform.forEach((item) => {
        item.tempid = id;
@@ -2183,7 +2184,7 @@
      });
      depthospgetson(this.tempDetpRelevanceslistform).then((res) => {
        if (res.code == 200) {
          this.$modal.msgSuccess("科室更新成功");
          this.$modal.msgSuccess("课题组更新成功");
          this.tempDetpRelevanceslistform = [];
        }
      });
@@ -2211,7 +2212,7 @@
        (obj) => obj.value !== tag.value
      );
    },
    // 科室处理
    // 课题组处理
    Departmenttreatment() {
      if (!this.form.taskid) {
        this.templateor = true;