|  |  | 
 |  |  |                 </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> | 
 |  |  | 
 |  |  |                 </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" | 
 |  |  | 
 |  |  |                         size="medium" | 
 |  |  |                         multiple | 
 |  |  |                         filterable | 
 |  |  |                         placeholder="请选择课题组" | 
 |  |  |                         placeholder="请选择科室" | 
 |  |  |                       > | 
 |  |  |                         <el-option | 
 |  |  |                           class="ruleFormaa" | 
 |  |  | 
 |  |  |       patientloading: false, // 遮罩层 | 
 |  |  |       dialogVisiblepatient: false, //添加患者弹框 | 
 |  |  |       dialogVisiblepatientjb: false, | 
 |  |  |       deptcodesWards: [], //课题组数据 | 
 |  |  |       deptcodesWards: [], //科室数据 | 
 |  |  |       leavehospitaldistrictcodes: [], //病区数据 | 
 |  |  |       operationcodes: [], //手术数据 | 
 |  |  |       illnesscodes: [], //疾病数据 | 
 |  |  | 
 |  |  |         { 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" }, | 
 |  |  |       ], | 
 |  |  |       // 患者表单 | 
 |  |  | 
 |  |  |         { 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" }, | 
 |  |  |       ], | 
 |  |  |  | 
 |  |  | 
 |  |  |       patientqueryParams: { | 
 |  |  |         pageNum: 1, // | 
 |  |  |         pageSize: 10, | 
 |  |  |         topica: 1, //0全部1课题组2病区 | 
 |  |  |         topica: 1, //0全部1科室2病区 | 
 |  |  |         leaveldeptcodes: [], | 
 |  |  |         leavehospitaldistrictcodes: [], | 
 |  |  |       }, | 
 |  |  | 
 |  |  |         }, | 
 |  |  |         { | 
 |  |  |           value: 1, | 
 |  |  |           label: "课题组患者", | 
 |  |  |           label: "科室患者", | 
 |  |  |         }, | 
 |  |  |         { | 
 |  |  |           value: 2, | 
 |  |  | 
 |  |  |       ], | 
 |  |  |  | 
 |  |  |       tasktypes: store.getters.tasktypes, | 
 |  |  |       // 课题组/病区 | 
 |  |  |       // 科室/病区 | 
 |  |  |       belongWards: [], | 
 |  |  |       deptlist: [], | 
 |  |  |       hosplist: [], | 
 |  |  |       diagglist: [], | 
 |  |  |       operlist: [], | 
 |  |  |       tempDetpRelevanceslist: [], //课题组数据 | 
 |  |  |       tempDetpRelevanceslistform: [], //课题组数据 | 
 |  |  |       tempDetpRelevanceslist: [], //科室数据 | 
 |  |  |       tempDetpRelevanceslistform: [], //科室数据 | 
 |  |  |       tempbelongWards: [], //病区数据 | 
 |  |  |       tempbelongWardsform: [], //病区数据 | 
 |  |  |       rules: { | 
 |  |  | 
 |  |  |           { 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, | 
 |  |  | 
 |  |  |           { 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) { | 
 |  |  | 
 |  |  |           { 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" }, | 
 |  |  |         ]; | 
 |  |  |       } | 
 |  |  | 
 |  |  |       this.patientqueryParams = { | 
 |  |  |         pageNum: 1, // | 
 |  |  |         pageSize: 10, | 
 |  |  |         topica: 1, //0全部1课题组2病区 | 
 |  |  |         topica: 1, //0全部1科室2病区 | 
 |  |  |         leaveldeptcodes: [], | 
 |  |  |         leavehospitaldistrictcodes: [], | 
 |  |  |       }; | 
 |  |  | 
 |  |  |       this.time3 = ""; //晚上时间段 | 
 |  |  |       this.time4 = ""; //晚上时间段 | 
 |  |  |     }, | 
 |  |  |     // 获取课题组列表 | 
 |  |  |     // 获取科室列表 | 
 |  |  |     listDept() { | 
 |  |  |       this.leavehospitaldistrictcodes = []; | 
 |  |  |       this.deptcodesWards = []; | 
 |  |  | 
 |  |  |       } | 
 |  |  |     }, | 
 |  |  |  | 
 |  |  |     // 任务课题组删除触发 | 
 |  |  |     // 任务科室删除触发 | 
 |  |  |     removetag(row) { | 
 |  |  |       let result = this.deptlist | 
 |  |  |         .filter((item) => item.deptCode == row) | 
 |  |  | 
 |  |  |         }); | 
 |  |  |       } | 
 |  |  |     }, | 
 |  |  |     // 保存课题组/病区 | 
 |  |  |     // 保存科室/病区 | 
 |  |  |     putbelongDepts(id) { | 
 |  |  |       this.tempDetpRelevanceslistform.forEach((item) => { | 
 |  |  |         item.tempid = id; | 
 |  |  | 
 |  |  |       }); | 
 |  |  |       depthospgetson(this.tempDetpRelevanceslistform).then((res) => { | 
 |  |  |         if (res.code == 200) { | 
 |  |  |           this.$modal.msgSuccess("课题组更新成功"); | 
 |  |  |           this.$modal.msgSuccess("科室更新成功"); | 
 |  |  |           this.tempDetpRelevanceslistform = []; | 
 |  |  |         } | 
 |  |  |       }); | 
 |  |  | 
 |  |  |         (obj) => obj.value !== tag.value | 
 |  |  |       ); | 
 |  |  |     }, | 
 |  |  |     // 课题组处理 | 
 |  |  |     // 科室处理 | 
 |  |  |     Departmenttreatment() { | 
 |  |  |       if (!this.form.taskid) { | 
 |  |  |         this.templateor = true; |