| | |
| | | <!-- 随访内容 --> |
| | | <div class="call-action"> |
| | | <div class="call-container"> |
| | | <!-- <div class="call-header"> |
| | | <h2>一键呼叫功能</h2> |
| | | </div> --> |
| | | |
| | | <template-selector |
| | | v-if="orgname=='南华大学附属第一医院'&&!Voicetype" |
| | | v-model="form.templateid" |
| | | :templateName="form.templatename" |
| | | :service-type="form.serviceType" |
| | | :is-editable="form.sendState !== 2" |
| | | @select="handleTemplateSelect" |
| | | @clear="handleTemplateClear" |
| | | /> |
| | | <div class="headline"> |
| | | <div>随访内容</div> |
| | | </div> |
| | |
| | | savequestiondetail, |
| | | addPersonVoices, |
| | | query360PatInfo, |
| | | updateTemplate, |
| | | query360PatInfonh, |
| | | sendMsg, |
| | | } from "@/api/AiCentre/index"; |
| | | import { |
| | |
| | | listcontactinformation, |
| | | } from "@/api/patient/homepage"; |
| | | import CallButton from "@/components/CallButton"; |
| | | import TemplateSelector from "@/components/optionalModule"; |
| | | import MergeAndModify from "./MergeAndModify.vue"; |
| | | import CallCenterLs from "@/components/CallCenterLs"; |
| | | import store from "@/store"; |
| | |
| | | CallButton, |
| | | MergeAndModify, |
| | | CallCenterLs, |
| | | TemplateSelector, |
| | | }, |
| | | directives: { |
| | | numericOnly: { |
| | |
| | | showContinuationCareBtn: false, // 控制延续护理按钮显示 |
| | | // 路由监听相关 |
| | | routeWatcher: null, |
| | | |
| | | lastRoutePath: this.$route.path, |
| | | input: "今天身体还不错", |
| | | radio: "2", |
| | |
| | | this.visitAgain = store.getters.visitAgain; |
| | | console.log(store.getters.visitAgain); |
| | | |
| | | |
| | | this.orgname = localStorage.getItem("orgname"); |
| | | if (this.orgname == "省立同德翠苑院区") { |
| | | this.showContinuationCareBtn = true; |
| | |
| | | const orgname = localStorage.getItem("orgname"); |
| | | if (orgname == "南华大学附属第一医院") { |
| | | query360PatInfonh(id).then((res) => { |
| | | if (res.url) { |
| | | window.open(res.url, "_blank"); |
| | | if (res.data) { |
| | | window.open(res.data, "_blank"); |
| | | } else { |
| | | this.$modal.msgWarning("360查询无结果"); |
| | | } |
| | |
| | | this.Editsingletasksonyic(this.serviceStates); |
| | | const orgName = localStorage.getItem("orgname"); |
| | | |
| | | if (this.form.isVisitAgain != 1 || orgName == "丽水市中医院"||this.visitAgain==1) { |
| | | if ( |
| | | this.form.isVisitAgain != 1 || |
| | | orgName == "丽水市中医院" || |
| | | this.visitAgain == 1 |
| | | ) { |
| | | this.Torouter(); |
| | | return; |
| | | } |
| | |
| | | message: "请输入正确的电话号码(手机号或带区号的固定电话)", |
| | | }; |
| | | } |
| | | }, |
| | | handleTemplateSelect(templateData) { |
| | | console.log("选择了模板:", templateData); |
| | | // 处理模板选择逻辑 |
| | | let templateobj = templateData.templateData; |
| | | templateobj.templateid = templateobj.svyid; |
| | | templateobj.taskid = this.form.taskid; |
| | | templateobj.isoperation = 1; |
| | | templateobj.svyTaskTemplateScriptVOS = templateobj.svyTemplateLibScripts; |
| | | templateobj.svyTaskTemplateScriptVOS.forEach((item) => { |
| | | item.taskid = this.form.taskid; |
| | | item.templateid = item.svyid; |
| | | item.svyTaskTemplateTargetoptions = item.svyLibTemplateTargetoptions; |
| | | }); |
| | | let obj = { |
| | | subId: this.form.id, |
| | | svyTaskTemplateVO: templateobj, |
| | | }; |
| | | updateTemplate(obj).then((res) => { |
| | | if (res.code) { |
| | | location.reload(); |
| | | this.$modal.msgSuccess("模板修改成功"); |
| | | } else { |
| | | } |
| | | }); |
| | | }, |
| | | |
| | | handleTemplateClear() { |
| | | console.log("清除了模板选择"); |
| | | }, |
| | | // 使用示例 |
| | | isValidPhone(phone) { |
| | |
| | | const orgName = localStorage.getItem("orgname"); |
| | | console.log(orgName, "orgName"); |
| | | |
| | | if (this.form.isVisitAgain != 1 || orgName == "丽水市中医院"||this.visitAgain==1) { |
| | | if ( |
| | | this.form.isVisitAgain != 1 || |
| | | orgName == "丽水市中医院" || |
| | | this.visitAgain == 1 |
| | | ) { |
| | | this.Torouter(); |
| | | return; |
| | | } |
| | |
| | | this.form = res.rows[0].serviceSubtaskList.find( |
| | | (item) => item.id == this.id |
| | | ); |
| | | console.log(this.form.templatename, "templatename"); |
| | | |
| | | this.form.remark = this.form.remark || ""; |
| | | this.logsheetlist = res.rows[0].serviceSubtaskList; |
| | | this.templateid = this.form.templateid; |
| | | this.selectedTag = this.form.excep; |
| | | const targetDate = new Date(this.form.visitTime); // 目标日期 |
| | | const now = new Date(); // 当前时间 |
| | | console.log(now,'当前时间'); |
| | | console.log(targetDate,'目标日期'); |
| | | console.log(now, "当前时间"); |
| | | console.log(targetDate, "目标日期"); |
| | | |
| | | if (now < targetDate && this.form.sendstate == 2) { |
| | | this.$confirm("当前服务未到发送时间请谨慎修改", "提示", { |