| | |
| | | >已完成</el-tag |
| | | > |
| | | </div> |
| | | <div v-if="scope.row.sendstate == 7"> |
| | | <el-tag type="danger" :disable-transitions="false">超时</el-tag> |
| | | </div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | |
| | | </el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="10"> |
| | | <el-form-item |
| | | label="短号电话" |
| | | v-if="orgname == '景宁畲族自治县人民医院'" |
| | | > |
| | | <el-input |
| | | placeholder="联系电话缺失" |
| | | v-model="userform.telshortcode" |
| | | > |
| | | <el-button |
| | | slot="append" |
| | | icon="el-icon-phone" |
| | | @click="handleCall(userform.telshortcode, 'tel', true)" |
| | | ></el-button> |
| | | </el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | |
| | | <!-- 联系人信息行 --> |
| | |
| | | align="right" |
| | | v-model="form.date1" |
| | | class="custom-disabled" |
| | | value-format="yyyy-MM-dd" |
| | | value-format="yyyy-MM-dd hh:mm:ss" |
| | | @change="checkFollowupDate" |
| | | ></el-date-picker> |
| | | </el-form-item> |
| | |
| | | serviceSubtaskDetailedit, |
| | | serviceSubtaskDetailadd, |
| | | updatePersonVoices, |
| | | savequestiondetail, |
| | | addPersonVoices, |
| | | query360PatInfo, |
| | | sendMsg, |
| | |
| | | obj.asrtext = item.scriptResult; |
| | | } |
| | | |
| | | if (item.isoption == 3) { |
| | | promises.push(serviceSubtaskDetailedit(obj)); |
| | | } else { |
| | | promises.push(serviceSubtaskDetailadd(obj)); |
| | | } |
| | | // if (item.isoption == 3) { |
| | | // promises.push(serviceSubtaskDetailedit(obj)); |
| | | // } else { |
| | | // promises.push(serviceSubtaskDetailadd(obj)); |
| | | // } |
| | | }); |
| | | |
| | | // 使用 Promise.all 等待所有异步操作完成 |
| | | Promise.all(promises) |
| | | .then((results) => { |
| | | // 所有异步操作成功完成后的逻辑 |
| | | results.forEach((res) => { |
| | | if (res.code !== 200) { |
| | | this.$modal.error("修改失败"); |
| | | } |
| | | }); |
| | | console.log(this.tableDatatop); |
| | | let obj = { |
| | | svyTaskTemplateScriptVOS: this.tableDatatop, // 提交处理后的副本 |
| | | param1: this.taskid, |
| | | param2: this.patid, |
| | | param6: this.id, |
| | | type: 2, |
| | | }; |
| | | savequestiondetail(obj).then((res) => { |
| | | if (res.code == 200) { |
| | | this.$modal.msgSuccess("服务保存成功"); |
| | | this.Editsingletasksonyic(6); |
| | | const orgName = localStorage.getItem("orgname"); |
| | | console.log(orgName, "orgName"); |
| | | |
| | | if (this.form.isVisitAgain != 1 || orgName == "丽水市中医院") { |
| | | this.Torouter(); |
| | |
| | | .catch(() => { |
| | | this.Torouter(); |
| | | }); |
| | | }) |
| | | .catch((error) => { |
| | | // 如果有任何一个异步操作失败,会进入这里 |
| | | console.error("发生错误:", error); |
| | | }); |
| | | } |
| | | }); |
| | | // 使用 Promise.all 等待所有异步操作完成 |
| | | // Promise.all(promises) |
| | | // .then((results) => { |
| | | // // 所有异步操作成功完成后的逻辑 |
| | | // results.forEach((res) => { |
| | | // if (res.code !== 200) { |
| | | // this.$modal.error("修改失败"); |
| | | // } |
| | | // }); |
| | | // this.Editsingletasksonyic(6); |
| | | // const orgName = localStorage.getItem("orgname"); |
| | | // console.log(orgName, "orgName"); |
| | | |
| | | // if (this.form.isVisitAgain != 1 || orgName == "丽水市中医院") { |
| | | // this.Torouter(); |
| | | // return; |
| | | // } |
| | | // this.$modal |
| | | // .confirm( |
| | | // '任务保存成功是否针对患者:"' + |
| | | // this.userform.name + |
| | | // '"再次随访?', |
| | | // "确认", |
| | | // { |
| | | // confirmButtonText: "确定", |
| | | // cancelButtonText: "取消", |
| | | // showCancelButton: true, |
| | | // dangerouslyUseHTMLString: true, |
| | | // confirmButtonClass: "custom-confirm-button", // 自定义确认按钮的类名 |
| | | // cancelButtonClass: "custom-cancel-button", // 自定义取消按钮的类名 |
| | | // } |
| | | // ) |
| | | // .then(() => { |
| | | // document.querySelector("#app").scrollTo(0, 0); |
| | | // this.formtidy(); |
| | | // this.dialogFormVisible = true; |
| | | // }) |
| | | // .catch(() => { |
| | | // this.Torouter(); |
| | | // }); |
| | | // }) |
| | | // .catch((error) => { |
| | | // // 如果有任何一个异步操作失败,会进入这里 |
| | | // console.error("发生错误:", error); |
| | | // }); |
| | | }, |
| | | Torouter() { |
| | | if (this.form.serviceType == 13) { |
| | |
| | | isValidPhone(phone) { |
| | | return this.validatePhoneNumber(phone).isValid; |
| | | }, |
| | | handleCall(phone, type) { |
| | | if (!this.isValidPhone(phone)) { |
| | | handleCall(phone, type, dh) { |
| | | if (!this.isValidPhone(phone) && !dh) { |
| | | this.$message.error("请输入正确的手机号码"); |
| | | return; |
| | | } |
| | |
| | | }); |
| | | |
| | | let obj = { |
| | | serviceSubtaskDetailList: dataToSubmit, // 提交处理后的副本 |
| | | ivrTaskTemplateScriptVOList: dataToSubmit, // 提交处理后的副本 |
| | | param1: this.taskid, |
| | | param2: this.patid, |
| | | subId: this.id, |
| | | param6: this.id, |
| | | type: 1, |
| | | }; |
| | | const orgName = localStorage.getItem("orgname"); |
| | | console.log(orgName, "orgName"); |
| | |
| | | this.Torouter(); |
| | | return; |
| | | } |
| | | addPersonVoices(obj).then((res) => { |
| | | savequestiondetail(obj).then((res) => { |
| | | if (res.code == 200) { |
| | | this.$modal.msgSuccess("服务保存成功"); |
| | | this.$modal |
| | |
| | | // 再次随访数据更替 |
| | | formtidy() { |
| | | this.form.visitType2 = this.form.visitType; |
| | | this.form.date2 = this.form.longSendTime; |
| | | this.form.date2 = this.form.visitTime; |
| | | // this.form.date1 = this.setCurrentDate(); |
| | | this.form.remark2 = 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.longSendTime); // 目标日期 |
| | | const targetDate = new Date(this.form.visitTime); // 目标日期 |
| | | const now = new Date(); // 当前时间 |
| | | if (now < targetDate && this.form.sendstate == 2) { |
| | | this.$confirm("当前服务未到发送时间请谨慎修改", "提示", { |
| | |
| | | this.form.remark = |
| | | this.form.remark + "【" + this.getCurrentTime() + "】"; |
| | | let form = structuredClone(this.form); |
| | | form.longSendTime = this.formatTime(form.date1); |
| | | form.visitTime = this.parseTime(form.date1); |
| | | form.finishtime = ""; |
| | | if (form.resource) { |
| | | if (form.resource == 2) { |
| | | form.visitDeptCode = localStorage.getItem("deptCode"); |
| | | form.visitDeptCode = localStorage.getItem("deptCode") |
| | | ? localStorage.getItem("deptCode") |
| | | : form.deptcode; |
| | | form.visitDeptName = "随访中心"; |
| | | } else { |
| | | form.visitDeptCode = form.deptcode; |