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

23
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
},
@ -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, //公共表

31
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 {
@ -448,6 +459,13 @@ export default {
place: 'doctor',
brushTimes: 0,
patientRegisterId: ''
},
refFollowUpParams:{
place: 'doctor',
followUpId: '',
patientRegisterId: 'patient_register.id',
criticalValueContents: '',
brushTimes: 0
}
};
},
@ -1511,6 +1529,17 @@ 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)

Loading…
Cancel
Save