diff --git a/public/index.html b/public/index.html index 24877b8..13c0c29 100644 --- a/public/index.html +++ b/public/index.html @@ -39,8 +39,8 @@ <% if (process.env.VUE_APP_NODE_ENV === 'dev') { %> <% } %> diff --git a/src/components/360View/forePart/index-copy.vue b/src/components/360View/forePart/index-copy.vue index 7acd1a3..25ae608 100644 --- a/src/components/360View/forePart/index-copy.vue +++ b/src/components/360View/forePart/index-copy.vue @@ -464,21 +464,6 @@ @remove="removeTree" /> - - - - - - - - - - - - - - - {{ scope.row.name }} @@ -526,11 +511,9 @@ import eventBus from '@/page-subspecialty/utils/eventBus' import treeSelect from '@/components/360View/itemSelect' import axios from 'axios' import Cookies from 'js-cookie' -// import ForeForm from '@/components/360View/medicalRecord/outPatientRecord/foreForm.vue' const Base64 = require('js-base64').Base64 export default { components: { - // ForeForm, treeSelect }, mixins: [], diff --git a/src/components/360View/index.vue b/src/components/360View/index.vue index 9f05573..237ebbb 100644 --- a/src/components/360View/index.vue +++ b/src/components/360View/index.vue @@ -34,22 +34,23 @@
- + - + - + - + @@ -84,6 +85,7 @@ @@ -134,6 +136,7 @@ @@ -169,6 +172,7 @@ @@ -205,7 +209,7 @@ - +
diff --git a/src/components/360View/medicalRecord/index.vue b/src/components/360View/medicalRecord/index.vue index ab95d2b..8a7f21a 100644 --- a/src/components/360View/medicalRecord/index.vue +++ b/src/components/360View/medicalRecord/index.vue @@ -30,6 +30,7 @@ :only-read="onlyRead" :is-search="isSearch" :case-id="caseId" + :patient-data="patientData" />
-
病史采集
-
- +
+ 门急诊病历
-
前段检查
-
- +
+
+ 姓名:{{ patientData.patientName }} +
+
+ 性别:{{ patientData.patientSex }} +
+
+ 年龄:{{ patientData.patientAge }} +
+
+ 登记号:{{ patientData.patientId }} +
+
+ 日期:{{ $moment().format('YYYY-MM-DD HH:mm:ss') }} +
-
后段检查
-
- +
+
+ 主诉: {{ formData.zhuSu }} +
+
+ 现病史:{{ formData.xbs }} +
+
+ 既往病史: {{ formData.jws }} +
+
+ 过敏史: {{ formData.gms }} +
+
+ 周身其他病史: {{ formData.zsqtbs }} +
+ + + +
+ 诊断: {{ diagnosis.zd }} +
+
+ 处理: {{ diagnosis.cl }} +
+
+ 治疗意见: {{ diagnosis.zlyj }} +
-
专科检查
-
- -
-
诊断处置
- + + + + + + + + + + + + + + + + + + + +
- diff --git a/src/components/360View/medicalRecord/outPatientRecord/diagnosisForm.vue b/src/components/360View/medicalRecord/outPatientRecord/diagnosisForm.vue index 879c12c..ce2e2f8 100644 --- a/src/components/360View/medicalRecord/outPatientRecord/diagnosisForm.vue +++ b/src/components/360View/medicalRecord/outPatientRecord/diagnosisForm.vue @@ -1,37 +1,106 @@ - diff --git a/src/components/360View/medicalRecord/outPatientRecord/historyCallRecord.vue b/src/components/360View/medicalRecord/outPatientRecord/historyCallRecord.vue new file mode 100644 index 0000000..0e9f0e5 --- /dev/null +++ b/src/components/360View/medicalRecord/outPatientRecord/historyCallRecord.vue @@ -0,0 +1,93 @@ + + + + + diff --git a/src/components/360View/medicalRecord/outPatientRecord/historyForm.vue b/src/components/360View/medicalRecord/outPatientRecord/historyForm.vue index 10a0ea5..06b83d0 100644 --- a/src/components/360View/medicalRecord/outPatientRecord/historyForm.vue +++ b/src/components/360View/medicalRecord/outPatientRecord/historyForm.vue @@ -1,62 +1,58 @@ + + diff --git a/src/components/360View/medicalRecord/outPatientRecord/index.vue b/src/components/360View/medicalRecord/outPatientRecord/index.vue index 337d1fd..ea2eb8e 100644 --- a/src/components/360View/medicalRecord/outPatientRecord/index.vue +++ b/src/components/360View/medicalRecord/outPatientRecord/index.vue @@ -2,6 +2,7 @@
打印 + 历史病历 保存 保存为模板
@@ -10,7 +11,7 @@
- + @@ -22,14 +23,40 @@ - + + + +
历史病历
+ +
+ + + + +
@@ -40,16 +67,20 @@ import specialExamine from '@/components/360View/specialExamine' import HistoryForm from '@/components/360View/medicalRecord/outPatientRecord/historyForm.vue' import AllFormPrint from '@/components/360View/medicalRecord/outPatientRecord/allFormPrint.vue' import DiagnosisForm from '@/components/360View/medicalRecord/outPatientRecord/diagnosisForm.vue' +import templateManage from '@/page-subspecialty/views/modules/template/manage/index.vue' +import HistoryCallRecord from '@/components/360View/medicalRecord/outPatientRecord/historyCallRecord.vue' const Base64 = require('js-base64').Base64 export default { components: { + HistoryCallRecord, DiagnosisForm, AllFormPrint, HistoryForm, forePart, afterPart, - specialExamine + specialExamine, + templateManage }, mixins: [], props: { @@ -76,11 +107,18 @@ export default { onlyRead: { type: Boolean, default: false + }, + patientData: { + type: Object, + default: () => {} } }, inject: ['refresh'], data() { return { + historyVisible: false, + drawer: false, + curWord: '', jzNumber: '', formData: { caseId: this.caseId, @@ -102,6 +140,7 @@ export default { }, // 诊断处置 flag: '', // 1病史采集 2前段检查 3后段检查 4专科检查 5诊断处置 comonFormActive: '1', + commonList: [], printAll: { id: 'allForeForm' } @@ -120,6 +159,7 @@ export default { this.jzNumber = window.sessionStorage.getItem('jzNumber') await this.getMedicalHistory() await this.getDiagnosis() + this.queryCommonWord() }, methods: { // 保存表单 @@ -138,6 +178,10 @@ export default { this.$refs.afterParts.handleTemplate() } }, + // 查看历史病历 + checkHistory() { + this.historyVisible = true + }, // 添加数据集 addData() { if (this.comonFormActive === '2') { @@ -195,6 +239,100 @@ export default { this.$message.error(res.msg) } }, + // 打开抽屉 + openDrawer(value) { + this.drawer = true + this.curWord = value + }, + // 引入历史 + introduceHistory(param) { + switch (param.type) { + case '主诉': + this.formData.zhuSu = param.content + break + case '现病史': + this.formData.xbs = param.content + break + case '既往病史': + this.formData.jws = param.content + break + case '过敏史': + this.formData.gms = param.content + break + case '周身其他病史': + this.formData.zsqtbs = param.content + break + case '诊断': + this.diagnosis.zd = param.content + break + case '处理': + this.diagnosis.cl = param.content + break + case '治疗意见': + this.diagnosis.zlyj = param.content + break + } + }, + // 引入模板 + yinruTemplateClick(value) { + const text = value.contentValue + switch (this.curWord) { + case '主诉': + if (!this.formData.zhuSu) { + this.formData.zhuSu = '' + } + this.formData.zhuSu = this.formData.zhuSu + text + break + case '现病史': + if (!this.formData.xbs) { + this.formData.xbs = '' + } + this.formData.xbs = this.formData.xbs + text + break + case '既往病史': + if (!this.formData.jws) { + this.formData.jws = '' + } + this.formData.jws = this.formData.jws + text + break + case '过敏史': + if (!this.formData.gms) { + this.formData.gms = '' + } + this.formData.gms = this.formData.gms + text + break + case '周身其他病史': + if (!this.formData.zsqtbs) { + this.formData.zsqtbs = '' + } + this.formData.zsqtbs = this.formData.zsqtbs + text + break + case '诊断': + if (!this.diagnosis.zd) { + this.diagnosis.zd = '' + } + this.diagnosis.zd = this.diagnosis.zd + text + break + case '处理': + if (!this.diagnosis.cl) { + this.diagnosis.cl = '' + } + this.diagnosis.cl = this.diagnosis.cl + text + break + case '治疗意见': + if (!this.diagnosis.zlyj) { + this.diagnosis.zlyj = '' + } + this.diagnosis.zlyj = this.diagnosis.zlyj + text + break + } + }, + // 换取常用关键词 + queryCommonWord() { + this.$http.get('/bd/template/getUsual').then(res => { + this.commonList = res.data.data + }) + }, // 保存表单数据 async saveHistory() { const { data: res } = await this.$http.post('/mjz/saveMjzBscj', this.formData) @@ -229,6 +367,12 @@ export default { z-index: 9; } } +.historyTitle{ + font-size: 24px; + font-weight: bold; + border-bottom: 1px solid #ccc; + padding-bottom: 10px; +} diff --git a/src/page-subspecialty/views/modules/template/manage/add-or-update.vue b/src/page-subspecialty/views/modules/template/manage/add-or-update.vue new file mode 100644 index 0000000..fd3ac02 --- /dev/null +++ b/src/page-subspecialty/views/modules/template/manage/add-or-update.vue @@ -0,0 +1,149 @@ + + + + + diff --git a/src/page-subspecialty/views/modules/template/manage/index.vue b/src/page-subspecialty/views/modules/template/manage/index.vue new file mode 100644 index 0000000..d7936a2 --- /dev/null +++ b/src/page-subspecialty/views/modules/template/manage/index.vue @@ -0,0 +1,64 @@ + + + + diff --git a/src/page-subspecialty/views/modules/template/manage/tab-fun.vue b/src/page-subspecialty/views/modules/template/manage/tab-fun.vue new file mode 100644 index 0000000..9f0caf1 --- /dev/null +++ b/src/page-subspecialty/views/modules/template/manage/tab-fun.vue @@ -0,0 +1,378 @@ + + +