pengjun 3 weeks ago
parent
commit
a9139a6027
  1. 25
      src/components/follow/PhoneFollowUp.vue
  2. 1
      src/store/index.js
  3. 63
      src/views/doctorCheck/doctorCheck.vue

25
src/components/follow/PhoneFollowUp.vue

@ -46,7 +46,7 @@
</div>
</div>
<el-dialog :title="title == 1 ? '新增' : '修改'" :visible.sync="dialogVisible" width="800px"
:close-on-click-modal="false">
:close-on-click-modal="false" :append-to-body="true">
<el-form ref="form" :model="form" label-width="80px" :rules="rules">
<el-row>
<el-col :span="6">
@ -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-3031
followUpTypeId: "01" // 01-02-03-99-,01-3031 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('<br>', '\r\n')

1
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, //公共表

63
src/views/doctorCheck/doctorCheck.vue

@ -147,6 +147,9 @@
</el-dropdown-menu>
</el-dropdown>
</div>
<div v-show="checkPagePriv(pagePriv.privs, '复查/随访')" class="divBtnClass">
<el-button type="primary" class="commonbutton" @click="btnCall">复查/随访</el-button>
</div>
<div class="divBtnClass">
<el-button type="primary" class="commonbutton" @click="btnReset">重置</el-button>
</div>
@ -242,6 +245,12 @@
:append-to-body="true">
<OccDisease />
</el-dialog>
<el-dialog title="复查/随访" :visible.sync="dialogWin.FollowUp" width="900px" :close-on-click-modal="false"
:append-to-body="true">
<PhoneFollowUp
:refParams="refFollowUpParams" />
</el-dialog>
</div>
</div>
</template>
@ -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) {

Loading…
Cancel
Save