| | |
| | | placeholder="请输入任务描述" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="服务形式"> |
| | | <!-- <el-form-item label="服务形式"> |
| | | <el-radio-group v-model="checkList"> |
| | | <el-radio |
| | | v-for="(item, index) in checkboxlist" |
| | |
| | | {{ item.label }}</el-radio |
| | | > |
| | | </el-radio-group> |
| | | </el-form-item> |
| | | <!-- <el-form-item label="服务形式"> |
| | | </el-form-item> --> |
| | | <el-form-item label="服务形式"> |
| | | <SortCheckbox |
| | | v-model="checkList" |
| | | :options="checkboxlist" |
| | | :initialselectedOrder="selectedOrder" |
| | | value-key="value" |
| | | label-key="label" |
| | | @change="checkSelectionChange" |
| | | /> |
| | | </el-form-item> --> |
| | | </el-form-item> |
| | | <el-form-item label="执行周期" prop="longTask"> |
| | | <el-radio-group v-model="form.longTask"> |
| | | <el-radio :label="0">自定义周期</el-radio> |
| | |
| | | import OptionalForm from "@/components/OptionalForm"; //疾病添加组件 |
| | | import SFtable from "@/components/SFtable"; //表格组件 |
| | | import SortCheckbox from "@/components/SortCheckbox"; //表格组件 |
| | | |
| | | import { MessageBox } from "element-ui"; |
| | | |
| | | export default { |
| | |
| | | this.leavehospitaldistrictcodes = []; |
| | | } |
| | | if (this.checkList) { |
| | | this.form.preachform = this.checkList; |
| | | this.form.preachform = this.checkList.join(","); |
| | | this.form.preachformList = this.selectedOrder; |
| | | } else { |
| | | this.$modal.msgError("请选择服务类型"); |
| | | return; |
| | |
| | | this.leavehospitaldistrictcodes[0] || |
| | | this.diagglist[0] || |
| | | this.operationcodes[0] || |
| | | this.form.longTask == 2 |
| | | this.form.longTask == 2 || |
| | | this.serviceType == 14 |
| | | ) { |
| | | } else { |
| | | this.$modal.msgError("请选择任务关联条件"); |
| | |
| | | }); |
| | | }, |
| | | checkSelectionChange(selectedValues, selectedOrder) { |
| | | this.selectedOrder = selectedOrder; |
| | | this.selectedOrder = selectedValues; |
| | | console.log("当前选中:", selectedValues); |
| | | console.log("选中顺序:", selectedOrder); |
| | | }, |
| | | // 服务形式选取 |
| | | handleCheckedCitiesChange(row) { |
| | | console.log(row, "服务"); |
| | | this.foncheckList = this.checkboxlist.filter((obj) => |
| | | row.includes(obj.value) |
| | | ); |
| | | }, |
| | | // 服务形式删除 |
| | | handleClosetag(tag) { |
| | | console.log(tag, "tag"); |
| | | console.log(this.foncheckList, "foncheckList"); |
| | | this.checkList = this.checkList.filter((item) => item != tag.value); |
| | | this.foncheckList = this.foncheckList.filter( |
| | | (obj) => obj.value !== tag.value |
| | | ); |
| | | }, |
| | | getillness(id) { |
| | | if (id) { |
| | |
| | | if (this.patientqueryParams.allhosp == 6) { |
| | | item.patfrom = 1; |
| | | } |
| | | if (this.patientqueryParams.allhosp == 1) { |
| | | item.visittime = item.endtime; |
| | | } else if (this.patientqueryParams.allhosp == 4) { |
| | | item.visittime = item.starttime; |
| | | } else if (this.patientqueryParams.allhosp == 2) { |
| | | item.visittime = item.admitdate; |
| | | } |
| | | this.overallCase.push(item); |
| | | this.form.patTaskRelevances.push(item); |
| | | } |
| | |
| | | ? this.form.patTaskRelevances |
| | | : []; |
| | | this.overallCase = this.form.patTaskRelevances.concat(); |
| | | this.checkList = this.form.preachform; |
| | | |
| | | this.checkList = this.form.preachform.split(","); |
| | | this.selectedOrder = this.form.preachformList; |
| | | this.overallCase.forEach((item) => { |
| | | if (item.endtime) { |
| | | item.endDay = this.daysBetween(item.endtime); |
| | |
| | | this.objyl.isoperation = 1; |
| | | this.objyl.svyTaskTemplateScriptVOS = |
| | | this.objyl.svyTemplateLibScripts; |
| | | this.objyl.svyTaskTemplateScriptVOS.forEach((item) => { |
| | | item.svyTaskTemplateTargetoptions = |
| | | item.svyLibTemplateTargetoptions; |
| | | }); |
| | | this.form.svyTaskTemplateVO = this.objyl; |
| | | this.form.templatename = this.objyl.svyname; |
| | | this.$modal.msgSuccess("暂存成功保存任务后模板失效"); |
| | | this.$modal.msgSuccess("暂存成功保存任务后模板生效"); |
| | | this.drawermb = false; |
| | | this.previewtf = false; |
| | | }) |