diff --git a/src/components/follow/PhoneFollowUp.vue b/src/components/follow/PhoneFollowUp.vue index b409510..d4fcf9a 100644 --- a/src/components/follow/PhoneFollowUp.vue +++ b/src/components/follow/PhoneFollowUp.vue @@ -46,7 +46,7 @@ + :close-on-click-modal="false" :append-to-body="true"> @@ -187,7 +187,7 @@ export default { phoneFollowUp: [], // 电话随访 dialogVisible: false, curRow: {}, - form: { + form: { // 新增/编辑共用 followUpContent: "", replyContent: "", followUpId: "", @@ -198,9 +198,10 @@ export default { generateCount: "", replyContent: "", followUpSourceId: "03", // 01-医生站,02-总检医生站,03-客服,99-其它 - followUpTypeId: "" // 01-普通,02-复查,03-危急值,99-其它,01-30为系统保留,31以后给客户自定义用 + followUpTypeId: "01" // 01-普通,02-复查,03-危急值,99-其它,01-30为系统保留,31以后给客户自定义用 (老板说不默认,客户坚持要默认01) }, - + formInit: { + }, // rules: { followUpSourceId: [ { required: true, message: "请填写随访来源", trigger: "blur" }, @@ -229,7 +230,15 @@ export default { }; }, - created() { }, + created() { + // 01-医生站,02-总检医生站,03-客服,99-其它 + if (this.refParams.place == 'summary') { + this.form.followUpSourceId = '02' + } else if (this.refParams.place == 'doctor') { + this.form.followUpSourceId = '01' + } + this.formInit = Object.assign({}, this.form) + }, updated() { this.$nextTick(() => { @@ -250,6 +259,8 @@ export default { let w = this.window.pageWidth - 120 if (this.refParams.place == 'summary') { w = w - 120 + } else if (this.refParams.place == 'doctor') { + w = 770 } return w }, @@ -332,7 +343,7 @@ export default { } else { body.patientRegisterId = this.refParams.patientRegisterId } - + if (this.title == 1) { if (this.mode == 1) { if (this.form.intervalDays == "") { @@ -412,7 +423,7 @@ export default { btnAdd() { this.dialogVisible = true; this.title = 1; - this.form = this.$options.data().form; + this.form = Object.assign({}, this.formInit); //this.$options.data().form let followUpContent = this.refParams.criticalValueContents do { followUpContent = followUpContent.replace('
', '\r\n') diff --git a/src/store/index.js b/src/store/index.js index 98e1795..cfea6e7 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -586,6 +586,7 @@ export default new Vuex.Store({ ImportOrgData: false, // 导入企业(青藏公司)数据 RoomEdit: false, //房间 queue: false, // 排队信息 + FollowUp:false, // 复查/随访 FollowCriticalCheck: false, // 危急值 CommonTableTypeEdit: false, //公共表类别 CommonTableEdit: false, //公共表 diff --git a/src/views/doctorCheck/doctorCheck.vue b/src/views/doctorCheck/doctorCheck.vue index 8736ba3..4aea09c 100644 --- a/src/views/doctorCheck/doctorCheck.vue +++ b/src/views/doctorCheck/doctorCheck.vue @@ -147,6 +147,9 @@ +
+ 复查/随访 +
重置
@@ -242,6 +245,12 @@ :append-to-body="true">
+ + + + @@ -273,6 +282,7 @@ import SumItems from "../../components/sumDoctorCheck/SumItems.vue"; import SumHistory from "../../components/sumDoctorCheck/SumHistory.vue"; import OccDisease from "../../components/occDisease/OccDisease.vue" import ImageTextReport from "../../components/occDisease/ImageTextReport.vue"; +import PhoneFollowUp from "../../components/follow/PhoneFollowUp.vue"; import MarkdownIt from "markdown-it"; const md = new MarkdownIt(); @@ -295,7 +305,8 @@ export default { SumItems, SumHistory, OccDisease, - ImageTextReport + ImageTextReport, + PhoneFollowUp }, data() { return { @@ -339,9 +350,9 @@ export default { sexId: '', completeFlag: '2', //总检状态 historySummary: '', // 历史综述 - photo:'', + photo: '', }, - patient_registerInit:{}, // 重置用到 + patient_registerInit: {}, // 重置用到 LocalConfig: { doctorCheck: { // 医生诊台 @@ -351,7 +362,7 @@ export default { isAutoNext: 'N', // 保存完结果,是否自动下一条记录 }, normal: { // 常规参数 - displayTab:false// 是否显示标签页 + displayTab: false// 是否显示标签页 } }, LocalConfigInit: {}, @@ -448,12 +459,19 @@ export default { place: 'doctor', brushTimes: 0, patientRegisterId: '' + }, + refFollowUpParams:{ + place: 'doctor', + followUpId: '', + patientRegisterId: 'patient_register.id', + criticalValueContents: '', + brushTimes: 0 } }; }, created() { - this.patient_registerInit = Object.assign({},this.patient_register) + this.patient_registerInit = Object.assign({}, this.patient_register) // console.log("this.$route.query", this.$route.query) //获取用户当前页面的权限 let userPriv = window.sessionStorage.getItem('userPriv') @@ -518,7 +536,7 @@ export default { // }, computed: { - ...mapState(["window", "dialogWin", "doctorCheck","dataTransOpts"]), + ...mapState(["window", "dialogWin", "doctorCheck", "dataTransOpts"]), frameHeight() { return this.window.pageHeight - 42 - 10 @@ -534,9 +552,9 @@ export default { return ret }, - dialogMarginTop(){ + dialogMarginTop() { let h = 50 - if(this.LocalConfig.normal.displayTab) h=85 + if (this.LocalConfig.normal.displayTab) h = 85 return h } }, @@ -1239,7 +1257,7 @@ export default { this.$message.warning({ showClose: true, message: "未选中要编辑的人员记录" }) return } - + this.dataTransOpts.tableS.patient_register.id = this.patient_register.id // this.patientRegister.patientRegisterRd = Object.assign({},this.doctorCheck.prBase) // this.formData = Object.assign({},this.doctorCheck.prBase) @@ -1511,11 +1529,22 @@ export default { this.dialogWin.OccDisease = true }, + // 复查/随访 + btnCall() { + if(!this.patient_register.id){ + this.$message.warning({showClose:true,message:"没有选中人员"}) + return + } + this.dialogWin.FollowUp = true + this.refFollowUpParams.patientRegisterId = this.patient_register.id + this.refFollowUpParams.brushTimes++ + }, + btnReset() { // location.reload() - this.patient_register = Object.assign({},this.patient_registerInit) - this.refParamsQuery.id = '' - this.refParamsQuery.registerCheckId = '' + this.patient_register = Object.assign({}, this.patient_registerInit) + this.refParamsQuery.id = '' + this.refParamsQuery.registerCheckId = '' // 查询条件清空 this.refParamsQuery.resetTimes++ @@ -1582,7 +1611,7 @@ export default { return } } - if(!this.AI.visible){ + if (!this.AI.visible) { this.AI.question = '' this.AI.visible = true } @@ -1603,14 +1632,14 @@ export default { }); this.AI.question = message } - if(!message) return + if (!message) return this.AI.rawText = ''; this.AI.html = ''; try { - await fetchStream('/api/app/AiMessageWs/GetAIMessageResult', { message }, (chunk) => { + await fetchStream('/api/app/AiMessageWs/GetAIMessageResult', { message }, (chunk) => { // 清洗 SSE 风格前缀并移除结束标志 let cleaned = String(chunk).replace(/data:\s*\[DONE\]/g, '').replace(/^data:\s*/gm, ''); @@ -1642,7 +1671,7 @@ export default { if (cleaned) { // 回退响应到达后显示弹窗并展开 if (!this.AI.visible) { - + this.btnAImax(false); } this.AI.rawText += cleaned; @@ -1655,7 +1684,7 @@ export default { } }, - + btnAImax(max) { this.AI.max = !max if (this.AI.max) {