打印
+
历史病历
保存
保存为模板
@@ -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 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ $t('cancel') }}
+ {{ $t('confirm') }}
+
+
+
+
+
+
+
+
+
+
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 @@
+
+
+
+
+
+
+
+ {{ node.label }}
+ {{ node.label }}
+
+
+ addEditFenlei(data)"
+ />
+ addEditFenlei(data,'新增子节点')"
+ />
+ deleteFenleiClick(data,'分类')"
+ />
+
+
+
+
+
+
+
+
+
+
+ {{ item.contentValue }}
+
+
+
+
+
+ 编辑
+ 删除
+
+
+ 引入
+
+
+
+
+

+
+
+
+
+
+
+
+
+
+