| | |
| | | @click="drawermb = true" |
| | | circle |
| | | ></el-button> |
| | | <el-button |
| | | v-if="form.templatename" |
| | | type="success" |
| | | icon="el-icon-search" |
| | | @click="previewfnm" |
| | | circle |
| | | ></el-button> |
| | | </el-col> |
| | | <!-- <el-col :span="2"> |
| | | <el-button |
| | | v-if="form.templatename" |
| | | type="success" |
| | | icon="el-icon-search" |
| | | @click="previewfnm" |
| | | circle |
| | | ></el-button> |
| | | </el-col> --> |
| | | </el-row> |
| | | |
| | | <el-form-item label="任务描述"> |
| | |
| | | <el-row> |
| | | <el-col :span="20" |
| | | ><el-form-item label="适用科室" prop="region"> |
| | | |
| | | <el-select |
| | | v-model="form.deptcode" |
| | | style="width: 400px" |
| | |
| | | <el-row> |
| | | <el-col :span="20" |
| | | ><el-form-item label="适用病区" prop="region"> |
| | | |
| | | <el-select |
| | | v-model="form.leavehospitaldistrictcode" |
| | | style="width: 400px" |
| | |
| | | <el-form-item label="发送时间段:" v-if="form.sendType == 1"> |
| | | <div style="display: flex"> |
| | | <div style="margin-right: 10px"> |
| | | <span style="font-size: 18px; margin-right: 10px" |
| | | >①</span |
| | | > |
| | | <span style="font-size: 18px; margin-right: 10px">①</span> |
| | | <el-time-picker |
| | | is-range |
| | | arrow-control |
| | |
| | | </el-time-picker> |
| | | </div> |
| | | <div style="margin-right: 10px"> |
| | | <span style="font-size: 18px; margin-right: 10px" |
| | | >②</span |
| | | > |
| | | <span style="font-size: 18px; margin-right: 10px">②</span> |
| | | <el-time-picker |
| | | is-range |
| | | arrow-control |
| | |
| | | </el-time-picker> |
| | | </div> |
| | | <div style="margin-right: 10px"> |
| | | <span style="font-size: 18px; margin-right: 10px" |
| | | >③</span |
| | | > |
| | | <span style="font-size: 18px; margin-right: 10px">③</span> |
| | | <el-time-picker |
| | | is-range |
| | | arrow-control |
| | |
| | | <div v-html="htmlRichText"></div> |
| | | </div> |
| | | <span slot="footer" class="dialog-footer"> |
| | | <el-button @click="previewGo">前往模板详情修改</el-button> |
| | | <!-- <el-button @click="previewGo">前往模板详情修改</el-button> --> |
| | | <el-button type="primary" @click="previewFn">确认使用</el-button> |
| | | </span> |
| | | </el-dialog> |
| | |
| | | v-show="showSearch" |
| | | label-width="98px" |
| | | > |
| | | <el-form-item |
| | | label="宣教名称" |
| | | |
| | | > |
| | | <el-form-item label="宣教名称"> |
| | | <el-input v-model="topqueryParams.preachname"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="宣教分类" prop="region"> |
| | |
| | | { label: "科室", width: "240", prop: "dept" }, |
| | | { label: "病区", width: "240", prop: "leavehospitaldistrictname" }, |
| | | ], |
| | | // 患者表单 |
| | | tableLabelhzwb: [ |
| | | // 患者表单 |
| | | tableLabelhzwb: [ |
| | | { label: "出院日期", width: "150", prop: "endtime" }, |
| | | { label: "患者", width: "", prop: "name" }, |
| | | { label: "身份证", width: "200", prop: "sfzh" }, |
| | |
| | | ], |
| | | |
| | | tableLabelxj: [ |
| | | { label: "创建人", width: "", prop: "createBy" }, |
| | | { label: "宣教名称", width: "180", prop: "preachname" }, |
| | | { label: "创建人", width: "", prop: "createBy" }, |
| | | { label: "宣教名称", width: "180", prop: "preachname" }, |
| | | { label: "宣教描述", width: "180", prop: "preachcontent" }, |
| | | // { label: "宣教形式", width: "", prop: "playType" }, |
| | | { label: "适用方式", width: "", prop: "suitway" }, |
| | |
| | | created() { |
| | | this.id = this.$route.query.id; |
| | | this.form.type = this.$route.query.type; |
| | | this.newadd = this.$route.query.newadd; |
| | | this.belongWards = store.getters.belongWards; |
| | | this.belongDepts = store.getters.belongDepts; |
| | | this.form.typename = this.$route.query.typename; |
| | |
| | | if (!this.form.type) { |
| | | this.form.type = this.$route.query.type; |
| | | } |
| | | this.form.leaveldeptcodes = store.getters.belongDepts.map(obj=>obj.deptCode); |
| | | this.form.leavehospitaldistrictcodes = store.getters.belongWards.map(obj=>obj.districtCode); |
| | | this.form.leaveldeptcodes = store.getters.belongDepts.map( |
| | | (obj) => obj.deptCode |
| | | ); |
| | | this.form.leavehospitaldistrictcodes = store.getters.belongWards.map( |
| | | (obj) => obj.districtCode |
| | | ); |
| | | Editsingletask(this.form).then((res) => { |
| | | if (res.code == 200) { |
| | | if (this.form.taskid) { |
| | |
| | | }); |
| | | }, |
| | | // ----------------------表格子组件事件 |
| | | // 确认选择模板放入任务模板 |
| | | // 选择模板并预览 |
| | | selectfn(row, type) { |
| | | // 模板情况下获取模板信息 |
| | | this.libName = row.preachname; |
| | |
| | | this.$modal.msgError("获取富文本失败"); |
| | | console.error("Failed to fetch file:", error); |
| | | }); |
| | | }, |
| | | // 预览模板 |
| | | previewfnm() { |
| | | getlibrarylist({ id: this.form.libtemplateid }).then((res) => { |
| | | this.libName = res.rows[0].preachname; |
| | | this.htmlRichText = null; |
| | | this.libId = res.rows[0].id; |
| | | this.Tasktemplate = res.rows[0]; |
| | | this.previewtf = true; |
| | | this.previewid = res.rows[0].svyid; |
| | | axios |
| | | .get(res.rows[0].htmlRichText) |
| | | .then((response) => { |
| | | this.htmlRichText = response.data; |
| | | this.htmlRichText = this.addStyleToImages(this.htmlRichText); |
| | | }) |
| | | .catch((error) => { |
| | | this.$modal.msgError("获取富文本失败"); |
| | | console.error("Failed to fetch file:", error); |
| | | }); |
| | | }); |
| | | }, |
| | | addStyleToImages(html) { |
| | | return html.replace( |
| | |
| | | }); |
| | | if (this.patientqueryParams.allhosp == 1) { |
| | | this.tableLabelhz = [ |
| | | { label: "出院日期", width: "150", prop: "endtime" }, |
| | | { label: "出院日期", width: "150", prop: "endtime" }, |
| | | { label: "患者", width: "", prop: "name" }, |
| | | { label: "身份证", width: "200", prop: "sfzh" }, |
| | | { label: "性别", width: "", prop: "sex" }, |
| | |
| | | templatename: "", |
| | | templateid: null, |
| | | libtemplateid: null, |
| | | serviceType:Number(this.$route.query.serviceType), |
| | | serviceType: Number(this.$route.query.serviceType), |
| | | kcb: "亲爱的患者-家属,您好!我们是浙中医大二院的医护人员,为了更好地了解您的康复情况,请您抽一点宝贵时间,完成这份随访问卷。", |
| | | jsy: "生活上要劳逸结合,注意休息和营养,适当锻炼,戒烟限酒,保持心情舒畅,定期复诊。那本次回访就到这里,祝您身体健康!", |
| | | }; |
| | | |
| | | if (this.id) { |
| | | getTaskInfo({ taskid: this.id }).then((res) => { |
| | | let filteredArray = ""; |
| | |
| | | : []; |
| | | this.overallCase = this.form.patTaskRelevances.concat(); |
| | | this.checkList = this.form.preachform.split(","); |
| | | |
| | | console.log(this.form.showDate, "this.form"); |
| | | this.daytime = this.form.showDate.split(","); |
| | | if (this.form.daytime)this.daytime = this.form.showDate.split(","); |
| | | console.log(this.newadd, "依照"); |
| | | |
| | | if (this.form.showTimeMorn) { |
| | | if (this.form.sendType == 3) { |
| | | this.time4 = this.form.showTimeMorn; |
| | |
| | | } else { |
| | | this.$modal.msgError(res.code); |
| | | } |
| | | if (this.newadd) { |
| | | this.neWaddfn(); |
| | | } |
| | | }); |
| | | } |
| | | }, |
| | | // 依照新增时处理 |
| | | neWaddfn() { |
| | | this.id = null; |
| | | // this.form.taskName = ""; |
| | | this.form.taskid = null; |
| | | console.log("依照"); |
| | | this.overallCase = []; |
| | | this.form.patTaskRelevances = []; |
| | | this.daytime = []; //日期 |
| | | this.applydaytime = []; //计算日期 |
| | | this.time1 = ""; //上午时间段 |
| | | this.time2 = ""; //下午时间段 |
| | | this.time3 = ""; //晚上时间段 |
| | | this.time4 = ""; //晚上时间段 |
| | | }, |
| | | getheLibraryAssort() { |
| | | // 宣教分类 |
| | | getheLibraryAssort({}).then((res) => { |