| | |
| | | ></el-button> |
| | | |
| | | <el-button |
| | | v-if="form.templatename" |
| | | v-if="form.templateid" |
| | | type="success" |
| | | icon="el-icon-search" |
| | | @click="previewfnmb()" |
| | |
| | | }, |
| | | ], |
| | | |
| | | tasktypes: [ |
| | | { |
| | | value: "1", |
| | | label: "监测评估", |
| | | }, |
| | | { |
| | | value: "2", |
| | | label: "出院随访", |
| | | }, |
| | | { |
| | | value: "3", |
| | | label: "门诊随访", |
| | | }, |
| | | { |
| | | value: "4", |
| | | label: "宣教关怀", |
| | | }, |
| | | { |
| | | value: "5", |
| | | label: "复诊管理", |
| | | }, |
| | | // { |
| | | // value: "5", |
| | | // label: "满意度调查", |
| | | // }, |
| | | { |
| | | value: "7", |
| | | label: "患者报告", |
| | | }, |
| | | // { |
| | | // value: "8", |
| | | // label: "其他通知", |
| | | // }, |
| | | { |
| | | value: "9", |
| | | label: "体检随访", |
| | | }, |
| | | // { |
| | | // value: "10", |
| | | // label: "医技随访", |
| | | // }, |
| | | { |
| | | value: "11", |
| | | label: "影像随访", |
| | | }, |
| | | { |
| | | value: "12", |
| | | label: "心电随访", |
| | | }, |
| | | // { |
| | | // value: "13", |
| | | // label: "专病随访", |
| | | // }, |
| | | ], |
| | | tasktypes: store.getters.tasktypes, |
| | | // 科室/病区 |
| | | belongWards: [], |
| | | deptlist: [], |
| | |
| | | if (!this.form.taskid) { |
| | | this.templateor = true; |
| | | MessageBox.confirm( |
| | | "当前为新增任务未保存不可关联模板,是否先保存任务?", |
| | | "当前为新增任务未保存不可关联模板,是否先暂存模板保存任务后生效?", |
| | | "功能提示", |
| | | { |
| | | confirmButtonText: "保存任务", |
| | | cancelButtonText: "暂存模板", |
| | | confirmButtonText: "暂存模板", |
| | | cancelButtonText: "取消", |
| | | type: "warning", |
| | | } |
| | | ) |
| | |
| | | this.objyl.ivrTaskTemplateScriptVOList = |
| | | this.objyl.ivrLibaTemplateScriptVOList; |
| | | this.form.ivrTaskTemplateVO = this.objyl; |
| | | |
| | | this.submitForm(); |
| | | }) |
| | | .catch(() => { |
| | | if (Array.isArray(this.objyl.suitway)) { |
| | | this.objyl.suitway = this.objyl.suitway.join(","); |
| | | } |
| | | this.objyl.templateid = this.objyl.id; |
| | | this.objyl.isoperation = 1; |
| | | this.objyl.ivrLibaTemplateScriptVOList.forEach((item) => { |
| | | item.ivrTaskScriptTargetoptionList = |
| | | item.ivrLibaScriptTargetoptionList; |
| | | }); |
| | | this.objyl.ivrTaskTemplateScriptVOList = |
| | | this.objyl.ivrLibaTemplateScriptVOList; |
| | | this.form.ivrTaskTemplateVO = this.objyl; |
| | | this.form.templatename = this.objyl.templateName; |
| | | this.$modal.msgSuccess("暂存成功保存任务后模板失效"); |
| | | this.drawermb = false; |
| | | this.previewtf = false; |
| | | }) |
| | | .catch(() => { |
| | | this.drawermb = false; |
| | | this.previewtf = false; |
| | | }); |
| | | } else { |
| | | setTimeout(() => { |