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

23
src/components/follow/PhoneFollowUp.vue

@ -46,7 +46,7 @@
</div> </div>
</div> </div>
<el-dialog :title="title == 1 ? '新增' : '修改'" :visible.sync="dialogVisible" width="800px" <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-form ref="form" :model="form" label-width="80px" :rules="rules">
<el-row> <el-row>
<el-col :span="6"> <el-col :span="6">
@ -187,7 +187,7 @@ export default {
phoneFollowUp: [], // 访 phoneFollowUp: [], // 访
dialogVisible: false, dialogVisible: false,
curRow: {}, curRow: {},
form: {
form: { // /
followUpContent: "", followUpContent: "",
replyContent: "", replyContent: "",
followUpId: "", followUpId: "",
@ -198,9 +198,10 @@ export default {
generateCount: "", generateCount: "",
replyContent: "", replyContent: "",
followUpSourceId: "03", // 01-02-,03-99- followUpSourceId: "03", // 01-02-,03-99-
followUpTypeId: "" // 01-02-03-99-,01-3031
followUpTypeId: "01" // 01-02-03-99-,01-3031 01
}, },
formInit: {
}, //
rules: { rules: {
followUpSourceId: [ followUpSourceId: [
{ required: true, message: "请填写随访来源", trigger: "blur" }, { 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() { updated() {
this.$nextTick(() => { this.$nextTick(() => {
@ -250,6 +259,8 @@ export default {
let w = this.window.pageWidth - 120 let w = this.window.pageWidth - 120
if (this.refParams.place == 'summary') { if (this.refParams.place == 'summary') {
w = w - 120 w = w - 120
} else if (this.refParams.place == 'doctor') {
w = 770
} }
return w return w
}, },
@ -412,7 +423,7 @@ export default {
btnAdd() { btnAdd() {
this.dialogVisible = true; this.dialogVisible = true;
this.title = 1; this.title = 1;
this.form = this.$options.data().form;
this.form = Object.assign({}, this.formInit); //this.$options.data().form
let followUpContent = this.refParams.criticalValueContents let followUpContent = this.refParams.criticalValueContents
do { do {
followUpContent = followUpContent.replace('<br>', '\r\n') followUpContent = followUpContent.replace('<br>', '\r\n')

1
src/store/index.js

@ -586,6 +586,7 @@ export default new Vuex.Store({
ImportOrgData: false, // 导入企业(青藏公司)数据 ImportOrgData: false, // 导入企业(青藏公司)数据
RoomEdit: false, //房间 RoomEdit: false, //房间
queue: false, // 排队信息 queue: false, // 排队信息
FollowUp:false, // 复查/随访
FollowCriticalCheck: false, // 危急值 FollowCriticalCheck: false, // 危急值
CommonTableTypeEdit: false, //公共表类别 CommonTableTypeEdit: false, //公共表类别
CommonTableEdit: false, //公共表 CommonTableEdit: false, //公共表

51
src/views/doctorCheck/doctorCheck.vue

@ -147,6 +147,9 @@
</el-dropdown-menu> </el-dropdown-menu>
</el-dropdown> </el-dropdown>
</div> </div>
<div v-show="checkPagePriv(pagePriv.privs, '复查/随访')" class="divBtnClass">
<el-button type="primary" class="commonbutton" @click="btnCall">复查/随访</el-button>
</div>
<div class="divBtnClass"> <div class="divBtnClass">
<el-button type="primary" class="commonbutton" @click="btnReset">重置</el-button> <el-button type="primary" class="commonbutton" @click="btnReset">重置</el-button>
</div> </div>
@ -242,6 +245,12 @@
:append-to-body="true"> :append-to-body="true">
<OccDisease /> <OccDisease />
</el-dialog> </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>
</div> </div>
</template> </template>
@ -273,6 +282,7 @@ import SumItems from "../../components/sumDoctorCheck/SumItems.vue";
import SumHistory from "../../components/sumDoctorCheck/SumHistory.vue"; import SumHistory from "../../components/sumDoctorCheck/SumHistory.vue";
import OccDisease from "../../components/occDisease/OccDisease.vue" import OccDisease from "../../components/occDisease/OccDisease.vue"
import ImageTextReport from "../../components/occDisease/ImageTextReport.vue"; import ImageTextReport from "../../components/occDisease/ImageTextReport.vue";
import PhoneFollowUp from "../../components/follow/PhoneFollowUp.vue";
import MarkdownIt from "markdown-it"; import MarkdownIt from "markdown-it";
const md = new MarkdownIt(); const md = new MarkdownIt();
@ -295,7 +305,8 @@ export default {
SumItems, SumItems,
SumHistory, SumHistory,
OccDisease, OccDisease,
ImageTextReport
ImageTextReport,
PhoneFollowUp
}, },
data() { data() {
return { return {
@ -339,9 +350,9 @@ export default {
sexId: '', sexId: '',
completeFlag: '2', // completeFlag: '2', //
historySummary: '', // historySummary: '', //
photo:'',
photo: '',
}, },
patient_registerInit:{}, //
patient_registerInit: {}, //
LocalConfig: { LocalConfig: {
doctorCheck: { // doctorCheck: { //
@ -351,7 +362,7 @@ export default {
isAutoNext: 'N', // isAutoNext: 'N', //
}, },
normal: { // normal: { //
displayTab:false//
displayTab: false//
} }
}, },
LocalConfigInit: {}, LocalConfigInit: {},
@ -448,12 +459,19 @@ export default {
place: 'doctor', place: 'doctor',
brushTimes: 0, brushTimes: 0,
patientRegisterId: '' patientRegisterId: ''
},
refFollowUpParams:{
place: 'doctor',
followUpId: '',
patientRegisterId: 'patient_register.id',
criticalValueContents: '',
brushTimes: 0
} }
}; };
}, },
created() { 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) // console.log("this.$route.query", this.$route.query)
// //
let userPriv = window.sessionStorage.getItem('userPriv') let userPriv = window.sessionStorage.getItem('userPriv')
@ -518,7 +536,7 @@ export default {
// }, // },
computed: { computed: {
...mapState(["window", "dialogWin", "doctorCheck","dataTransOpts"]),
...mapState(["window", "dialogWin", "doctorCheck", "dataTransOpts"]),
frameHeight() { frameHeight() {
return this.window.pageHeight - 42 - 10 return this.window.pageHeight - 42 - 10
@ -534,9 +552,9 @@ export default {
return ret return ret
}, },
dialogMarginTop(){
dialogMarginTop() {
let h = 50 let h = 50
if(this.LocalConfig.normal.displayTab) h=85
if (this.LocalConfig.normal.displayTab) h = 85
return h return h
} }
}, },
@ -1511,9 +1529,20 @@ export default {
this.dialogWin.OccDisease = true 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() { btnReset() {
// location.reload() // location.reload()
this.patient_register = Object.assign({},this.patient_registerInit)
this.patient_register = Object.assign({}, this.patient_registerInit)
this.refParamsQuery.id = '' this.refParamsQuery.id = ''
this.refParamsQuery.registerCheckId = '' this.refParamsQuery.registerCheckId = ''
@ -1582,7 +1611,7 @@ export default {
return return
} }
} }
if(!this.AI.visible){
if (!this.AI.visible) {
this.AI.question = '' this.AI.question = ''
this.AI.visible = true this.AI.visible = true
} }
@ -1603,7 +1632,7 @@ export default {
}); });
this.AI.question = message this.AI.question = message
} }
if(!message) return
if (!message) return
this.AI.rawText = ''; this.AI.rawText = '';

Loading…
Cancel
Save