|  |  | 
 |  |  |                 </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" | 
 |  |  | 
 |  |  |             </div> | 
 |  |  |           </div> | 
 |  |  |         </div> | 
 |  |  |         <el-button type="success" @click="nextstep('ruleForm')">{{ | 
 |  |  |           quote ? "立即创建" : "任务详情配置" | 
 |  |  |         <el-button type="primary" @click="nextstep('ruleForm')">{{ | 
 |  |  |           quote ? "立即创建" : "派发患者配置" | 
 |  |  |         }}</el-button> | 
 |  |  |         <el-button type="success" @click="submitForm('ruleForm')">{{ | 
 |  |  |           quote ? "立即创建" : "确认服务配置" | 
 |  |  |         }}</el-button> | 
 |  |  |         <el-button @click="resetForm('ruleForm')">重置</el-button> | 
 |  |  |       </div> | 
 |  |  | 
 |  |  |         </div> | 
 |  |  |         <el-button type="primary" @click="laststep()">上一步</el-button> | 
 |  |  |         <el-button type="success" @click="submitForm('ruleForm')">{{ | 
 |  |  |           quote ? "立即创建" : "确认任务配置" | 
 |  |  |           quote ? "立即创建" : "确认服务配置" | 
 |  |  |         }}</el-button> | 
 |  |  |         <el-button @click="resetForm('ruleForm')">重置</el-button> | 
 |  |  |       </div> | 
 |  |  | 
 |  |  |   taskdiaggetlist, | 
 |  |  |   taskopergetlist, | 
 |  |  | } from "@/api/AiCentre/index"; | 
 |  |  | import OptionalForm from "@/components/OptionalForm"; //正则组件 | 
 |  |  | import OptionalForm from "@/components/OptionalForm"; //疾病添加组件 | 
 |  |  | import SFtable from "@/components/SFtable"; //表格组件 | 
 |  |  | import { MessageBox } from "element-ui"; | 
 |  |  |  | 
 |  |  | 
 |  |  |       previewtftype: 0, //预览情况0新模板预览1已选择模板修改 | 
 |  |  |       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" }, | 
 |  |  |       ], | 
 |  |  |  | 
 |  |  | 
 |  |  |         }, | 
 |  |  |         { | 
 |  |  |           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" }, | 
 |  |  |         // ], | 
 |  |  |       }, | 
 |  |  |       belongDepts: [], | 
 |  |  |       // 课题组院区查询入参 | 
 |  |  |       // 科室院区查询入参 | 
 |  |  |       queryParamsdept: {}, | 
 |  |  |       quote: false, | 
 |  |  |       serviceType: null, | 
 |  |  | 
 |  |  |             value: "5", | 
 |  |  |             label: "微信公众号", | 
 |  |  |           }, | 
 |  |  |           { label: "微信小程序", value: '6' }, | 
 |  |  |           { label: "微信小程序", value: "6" }, | 
 |  |  |         ]; | 
 |  |  |       } else if (this.form.serviceType == 6||this.form.serviceType == 14||this.form.serviceType == 15) { | 
 |  |  |       } else if ( | 
 |  |  |         this.form.serviceType == 6 || | 
 |  |  |         this.form.serviceType == 14 || | 
 |  |  |         this.form.serviceType == 15 | 
 |  |  |       ) { | 
 |  |  |         this.checkboxlist = [ | 
 |  |  |           { | 
 |  |  |             value: "3", | 
 |  |  | 
 |  |  |         this.$modal.msgError("请选择任务关联条件"); | 
 |  |  |         return; | 
 |  |  |       } | 
 |  |  |  | 
 |  |  |       if (!this.form.patTaskRelevances[0] && !this.form.longTask) { | 
 |  |  |         this.$modal.msgError("请选择病人"); | 
 |  |  |         return; | 
 |  |  |       } | 
 |  |  |       //暂停任务患者限制 | 
 |  |  |       // if (!this.form.patTaskRelevances[0] && !this.form.longTask) { | 
 |  |  |       //   this.$modal.msgError("请选择病人"); | 
 |  |  |       //   return; | 
 |  |  |       // } | 
 |  |  |  | 
 |  |  |       if (!this.form.templatename && !this.templateor) { | 
 |  |  |         this.$modal.msgError("未选择模板"); | 
 |  |  | 
 |  |  |           { 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 == 1) { | 
 |  |  | 
 |  |  |           { 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病区 | 
 |  |  |         leavehospitaldistrictcodes: [], | 
 |  |  |         leaveldeptcodes: [], | 
 |  |  |       }; | 
 |  |  | 
 |  |  |                 this.time1 = this.form.showTimeMorn.split(","); | 
 |  |  |               } | 
 |  |  |             } | 
 |  |  |             // 获取任务课题组 | 
 |  |  |             // 获取任务科室 | 
 |  |  |             if (this.form.taskid) { | 
 |  |  |               this.listDept(); | 
 |  |  |             } | 
 |  |  | 
 |  |  |         } | 
 |  |  |       }); | 
 |  |  |     }, | 
 |  |  |     // 任务课题组删除触发 | 
 |  |  |     // 任务科室删除触发 | 
 |  |  |     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 = []; | 
 |  |  |         } | 
 |  |  |       }); | 
 |  |  | 
 |  |  |       }); | 
 |  |  |     }, | 
 |  |  |  | 
 |  |  |     // 课题组处理 | 
 |  |  |     // 科室处理 | 
 |  |  |     Departmenttreatment() { | 
 |  |  |       if (!this.form.taskid) { | 
 |  |  |         this.templateor = true; |