| | |
| | | data: data, |
| | | }); |
| | | } |
| | | // 获取orgid |
| | | // 再次随访服务 |
| | | export function getorganization(data) { |
| | | return request({ |
| | | url: "/smartor/organization/list", |
| | | method: "get", |
| | | }); |
| | | } |
| | | // 发送短信 |
| | | export function sendMsg(data) { |
| | | return request({ |
| | | url: "/sms/send", |
| | | method: "post", |
| | | data: data |
| | | }); |
| | | } |
| | |
| | | // 新增参数配置 |
| | | export function addConfig(data) { |
| | | return request({ |
| | | url: '/system/config', |
| | | url: '/system/config/add', |
| | | method: 'post', |
| | | data: data |
| | | }) |
| | |
| | | sipStatus: "未连接", |
| | | sipStatusClass: "status-disconnected", |
| | | sipConfig: { |
| | | wsUrl: "wss://192.168.10.124:7443", |
| | | sipUri: `${randomNum}` + "@192.168.10.124", |
| | | wsUrl: "wss://1192.170.66.107:7443", |
| | | sipUri: `${randomNum}` + "@1192.170.66.107", |
| | | password: "Smartor@2023", |
| | | displayName: "Web 小龙", |
| | | // realm: "9.208.5.18:8090", |
| | |
| | | }; |
| | | |
| | | this.currentSession = this.ua.call( |
| | | `sip:${targetNumber}@192.168.10.124`, |
| | | `sip:${targetNumber}@1192.170.66.107`, |
| | | options |
| | | ); |
| | | |
| | |
| | | }, |
| | | affiliation() { |
| | | |
| | | this.topqueryParams.managementDoctor = store.getters.hisUserId; |
| | | this.topqueryParams.managementDoctorCode= store.getters.hisUserId; |
| | | |
| | | this.getList(1); |
| | | }, |
| | |
| | | }, |
| | | affiliation() { |
| | | |
| | | this.topqueryParams.managementDoctor = store.getters.hisUserId; |
| | | this.topqueryParams.managementDoctorCode= store.getters.hisUserId; |
| | | |
| | | this.getList(1); |
| | | }, |
| | |
| | | <el-button plain type="info" @click="Editsingletaskson('5')" |
| | | >中心随访</el-button |
| | | > |
| | | <el-button type="primary" round @click="sendAgainmsg" |
| | | >短信发送</el-button |
| | | > |
| | | </div> |
| | | </el-form-item> |
| | | </el-form> |
| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <!-- 短信发送对话框 --> |
| | | <el-dialog title="短信发送" :visible.sync="smsDialogVisible"> |
| | | <!-- 注意这里使用了 smsDialogVisible 以区分已有的 dialogFormVisible --> |
| | | <el-form ref="smsForm" :model="form" label-width="80px"> |
| | | <el-form-item label="患者名称"> |
| | | <el-input |
| | | style="width: 400px" |
| | | disabled |
| | | v-model="form.sendname" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="年龄"> |
| | | <el-input style="width: 400px" disabled v-model="form.age"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="电话"> |
| | | <el-input |
| | | style="width: 400px" |
| | | disabled |
| | | v-model="userform.telcode" |
| | | ></el-input> |
| | | <!-- 注意这里可能使用 userform.telcode --> |
| | | </el-form-item> |
| | | <el-form-item label="科室"> |
| | | <el-input |
| | | style="width: 400px" |
| | | disabled |
| | | v-model="form.deptname" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="病区"> |
| | | <el-input |
| | | style="width: 400px" |
| | | disabled |
| | | v-model="form.leavehospitaldistrictname" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="短信内容"> |
| | | <el-input type="textarea" v-model="smsContent"></el-input> |
| | | <!-- 建议使用独立的 smsContent 变量 --> |
| | | </el-form-item> |
| | | </el-form> |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button @click="smsDialogVisible = false">取 消</el-button> |
| | | <el-button type="primary" @click="sendSms">确认发送</el-button> |
| | | <!-- 注意方法名改为 sendSms --> |
| | | </div> |
| | | </el-dialog> |
| | | <el-dialog |
| | | title="患者再次随访" |
| | | v-dialogDrags |
| | |
| | | updatePersonVoices, |
| | | addPersonVoices, |
| | | query360PatInfo, |
| | | sendMsg, |
| | | } from "@/api/AiCentre/index"; |
| | | import { |
| | | messagelistpatient, |
| | |
| | | }, |
| | | ], |
| | | userform: {}, |
| | | smsDialogVisible: false, // 控制短信对话框显示 |
| | | smsContent: "", // 存储短信内容 |
| | | Whetherall: true, //是否全部记录展示 |
| | | dialogFormVisible: false, |
| | | Voicetype: 0, //是否为语音服务 |
| | |
| | | } |
| | | }); |
| | | }, |
| | | // 调起短信发送对话框 |
| | | sendAgainmsg() { |
| | | this.smsDialogVisible = true; |
| | | // 可以在这里初始化 smsContent,例如 this.smsContent = ''; |
| | | }, |
| | | |
| | | // 发送短信的方法 |
| | | sendSms() { |
| | | // 这里调用你的短信发送 API |
| | | // 假设 API 为 sendMsg,参数可能需要根据实际情况调整 |
| | | sendMsg({ |
| | | phone: this.userform.telcode, // 确保电话号码字段正确 |
| | | content: this.smsContent, |
| | | }) |
| | | .then((res) => { |
| | | if (res.code == 200) { |
| | | this.$modal.msgSuccess("发送成功"); |
| | | this.smsDialogVisible = false; // 关闭对话框 |
| | | this.smsContent = ""; // 清空内容 |
| | | } else { |
| | | this.$modal.msgError("发送失败"); |
| | | } |
| | | }) |
| | | .catch((error) => { |
| | | console.error("发送短信失败:", error); |
| | | this.$modal.msgError("发送失败"); |
| | | }); |
| | | }, |
| | | Editsingletaskson(son) { |
| | | let objson = {}; |
| | | getTaskservelist({ |
| | |
| | | }, |
| | | affiliation() { |
| | | |
| | | this.topqueryParams.managementDoctor = store.getters.hisUserId; |
| | | this.topqueryParams.managementDoctorCode= store.getters.hisUserId; |
| | | this.getList(1); |
| | | }, |
| | | onthatday() { |
| | |
| | | </el-form-item> |
| | | <!-- 丽===================水 --> |
| | | <el-form-item prop="orgid"> |
| | | <el-select style="width: 100%;" v-model="loginForm.orgid" placeholder="请选择院区"> |
| | | <el-select |
| | | style="width: 100%" |
| | | v-model="loginForm.orgid" |
| | | placeholder="请选择院区" |
| | | > |
| | | <el-option |
| | | v-for="item in options" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | | > |
| | |
| | | import { getCodeImg } from "@/api/login"; |
| | | import Cookies from "js-cookie"; |
| | | import { encrypt, decrypt } from "@/utils/jsencrypt"; |
| | | import { getorganization } from "@/api/AiCentre/index"; |
| | | |
| | | export default { |
| | | name: "Login", |
| | |
| | | }, |
| | | }, |
| | | created() { |
| | | this.getorganization(); |
| | | this.getCode(); |
| | | this.getCookie(); |
| | | // if (localStorage.getItem('orgid')) { |
| | |
| | | methods: { |
| | | getCode() { |
| | | getCodeImg().then((res) => { |
| | | console.log(res); |
| | | this.captchaEnabled = |
| | | res.captchaEnabled === undefined ? true : res.captchaEnabled; |
| | | if (this.captchaEnabled) { |
| | | this.codeUrl = "data:image/gif;base64," + res.img; |
| | | this.loginForm.uuid = res.uuid; |
| | | } |
| | | }); |
| | | }, |
| | | getorganization() { |
| | | getorganization().then((res) => { |
| | | if (res.code == 200) { |
| | | this.options = res.rows.map((item) => ({ |
| | | value: item.orgid, |
| | | label: item.organizationName, |
| | | })); |
| | | } |
| | | }); |
| | | }, |
| | |
| | | this.$store |
| | | .dispatch("Login", this.loginForm) |
| | | .then((res) => { |
| | | if (this.loginForm.username=='admin') { |
| | | if (this.loginForm.username == "admin") { |
| | | this.$router.push({ path:"/index" }).catch(() => {}); |
| | | }else{ |
| | | this.$router.push({ path:"/followvisit/discharge" }).catch(() => {}); |
| | | this.$router |
| | | .push({ path: "/followvisit/discharge" }) |
| | | .catch(() => {}); |
| | | } |
| | | }) |
| | | .catch(() => { |
| | |
| | | // 遍历选中的患者,逐个调用接口 |
| | | for (const patient of this.selectedPatients) { |
| | | const params = { |
| | | taskId: this.selectedTask.taskId, |
| | | taskid: this.selectedTask.taskid, |
| | | taskName: this.selectedTask.taskName, |
| | | serviceType: this.selectedTask.serviceType, |
| | | sendstate:2, |
| | | ...patient, |
| | | age: "", |
| | | }; |