Commit f2af2f05 authored by v_liuhuaizhi's avatar v_liuhuaizhi

挂号--功能完成

parent 89dee7cd
...@@ -290,7 +290,7 @@ ...@@ -290,7 +290,7 @@
<script> <script>
import { listByType } from '@/api/business/mdeicalRecord' import { getTreatOptions, listByType } from '@/api/business/mdeicalRecord'
import { mapGetters } from 'vuex' import { mapGetters } from 'vuex'
import { submitPrescribing } from '@/api/business/registration' import { submitPrescribing } from '@/api/business/registration'
...@@ -364,6 +364,9 @@ export default { ...@@ -364,6 +364,9 @@ export default {
}, },
created() { created() {
},
mounted() {
this.getTreatItemOptions()
}, },
methods: { methods: {
// 设置当前行治疗名称 // 设置当前行治疗名称
...@@ -387,9 +390,22 @@ export default { ...@@ -387,9 +390,22 @@ export default {
} }
}) })
}, },
/** 获取治疗项目列表*/
getTreatItemOptions(checkType) {
getTreatOptions({ itemType: '1', status: '1' }).then(res => {
this.treatItemOptions = res.rows.map(item => {
return {
label: item.name,
value: item.id,
type: item.type
}
})
console.log('treatItemOptions!!!!!!!!!!!!!', this.treatItemOptions)
})
},
/** 根据检查类型获取检查项目列表*/ /** 根据检查类型获取检查项目列表*/
getCheckItemOptions(checkType) { getCheckItemOptions(checkType) {
listByType({ deptId: this.deptId, itemType: checkType }).then(res => { listByType({ itemType: checkType }).then(res => {
this.checkItemOptions = res.rows.map(item => { this.checkItemOptions = res.rows.map(item => {
return { return {
label: item.name, label: item.name,
......
...@@ -203,6 +203,7 @@ export default { ...@@ -203,6 +203,7 @@ export default {
userId: this.singleDoctor.userId, userId: this.singleDoctor.userId,
doctorName: this.singleDoctor.doctorName, doctorName: this.singleDoctor.doctorName,
hospitalId: this.singleDoctor.deptId, hospitalId: this.singleDoctor.deptId,
hospitalName: this.singleDoctor.hospitalName,
hospitalDepartmentId: this.singleDoctor.departmentId, hospitalDepartmentId: this.singleDoctor.departmentId,
hospitalDepartmentName: this.singleDoctor.departmentName, hospitalDepartmentName: this.singleDoctor.departmentName,
doctorPhone: this.singleDoctor.doctorPhone, doctorPhone: this.singleDoctor.doctorPhone,
......
...@@ -456,7 +456,7 @@ color: #333333;" ...@@ -456,7 +456,7 @@ color: #333333;"
<prescribing-modle <prescribing-modle
:is-show="showPrescribing" :is-show="showPrescribing"
:visit-form="visitForm" :visit-form="visitForm"
:register-form="registerForm" :register-form="openForm"
@prescrib-close="prescribClose" @prescrib-close="prescribClose"
/> />
</div> </div>
...@@ -489,7 +489,7 @@ export default { ...@@ -489,7 +489,7 @@ export default {
data() { data() {
return { return {
// 挂号处方信息传值 // 挂号处方信息传值
registerForm: {}, openForm: {},
regiterForm: {}, regiterForm: {},
// 就诊信息模块 // 就诊信息模块
visitForm: {}, visitForm: {},
...@@ -658,18 +658,19 @@ export default { ...@@ -658,18 +658,19 @@ export default {
'mainSuit': this.visitForm.mainSuit, 'mainSuit': this.visitForm.mainSuit,
'doctorAdvice': this.visitForm.doctorAdvice, 'doctorAdvice': this.visitForm.doctorAdvice,
'diagnosisResult': this.visitForm.diagnosisResult, 'diagnosisResult': this.visitForm.diagnosisResult,
'registTime': this.regiterForm.diagnosisTime, 'registTime': this.regiterForm.registrationTime,
'diagnosisTime': this.regiterForm.diagnosisTime 'diagnosisTime': this.regiterForm.diagnosisTime,
'petBirthday': this.regiterForm.petBirthday,
} }
console.log('表单参数', temp) console.log('表单参数2333', temp)
insertDiagnosis(temp).then(res => { // insertDiagnosis(temp).then(res => {
console.log(res) // console.log(res)
if (res.code === 200) { // if (res.code === 200) {
this.$message.success('提交成功') // this.$message.success('提交成功')
this.goBack() // this.goBack()
} // }
}) // })
}, },
parseTime, parseTime,
selectDictLabel, selectDictLabel,
...@@ -683,7 +684,8 @@ export default { ...@@ -683,7 +684,8 @@ export default {
queryPrescribing(this.regiterForm).then(response => { queryPrescribing(this.regiterForm).then(response => {
console.log('这是弹窗需要的父组件传的信息:', this.regiterForm) console.log('这是弹窗需要的父组件传的信息:', this.regiterForm)
console.log('重要!!!!!:', response) console.log('重要!!!!!:', response)
this.registerForm = response.data this.openForm = response.data
this.regiterForm['medicalRecordNo'] = response.data.medicalRecordNo
}) })
}, },
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment