Commit f2af2f05 authored by v_liuhuaizhi's avatar v_liuhuaizhi

挂号--功能完成

parent 89dee7cd
...@@ -1018,7 +1018,7 @@ export default { ...@@ -1018,7 +1018,7 @@ export default {
}, },
/** 根据检查类型获取检查项目列表*/ /** 根据检查类型获取检查项目列表*/
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,
...@@ -1045,184 +1045,184 @@ export default { ...@@ -1045,184 +1045,184 @@ export default {
getDetail() { getDetail() {
getRecord(this.$route.params.id).then(response => { getRecord(this.$route.params.id).then(response => {
console.log('KKKKKKKKKKKKKKKKKKKK', response) console.log('KKKKKKKKKKKKKKKKKKKK', response)
this.checkManageBos.push(...response.data.checkManageBos)
this.treatManageBo.push(...response.data.treatManageBo)
this.petInfo = { ...response.data }
console.log(this.checkManageBos, 'kkkkkkkkkkkkkkkkkkkkkkk')
}) })
const temp = { // const temp = {
'msg': '操作成功', // 'msg': '操作成功',
'code': 200, // 'code': 200,
'data': { // 'data': {
'createBy': null, // 'createBy': null,
'createTime': '2023-04-21 16:34:56', // 'createTime': '2023-04-21 16:34:56',
'updateBy': null, // 'updateBy': null,
'updateTime': null, // 'updateTime': null,
'remark': null, // 'remark': null,
'id': 6, // 'id': 6,
'medicalRecordNo': '【兽2023】6410Jun1410006', // 'medicalRecordNo': '【兽2023】6410Jun1410006',
'petsId': 15341523102, // 'petsId': 15341523102,
'petOwnersId': 7, // 'petOwnersId': 7,
'ownersId': null, // 'ownersId': null,
'petOwnerPhone': null, // 'petOwnerPhone': null,
'petNickname': '包子', // 'petNickname': '包子',
'petPicture': '/profile/upload/2023/05/10/dog1_20230510063813A013.png', // 'petPicture': '/profile/upload/2023/05/10/dog1_20230510063813A013.png',
'petBreed': '金毛猎犬', // 'petBreed': '金毛猎犬',
'petSex': '1', // 'petSex': '1',
'petAge': '3', // 'petAge': '3',
'petWeight': 18.57, // 'petWeight': 18.57,
'petColor': '黑花', // 'petColor': '黑花',
'sterilizationStatus': '0', // 'sterilizationStatus': '0',
'vaccineSituation': '0', // 'vaccineSituation': '0',
'insure': '0', // 'insure': '0',
'registId': null, // 'registId': null,
'doctorId': 'LON362023JunDOC50001', // 'doctorId': 'LON362023JunDOC50001',
'doctorName': '高宇', // 'doctorName': '高宇',
'hospitalName': '医院', // 'hospitalName': '医院',
'hospitalId': 200, // 'hospitalId': 200,
'hospitalDepartmentId': null, // 'hospitalDepartmentId': null,
'hospitalDepartmentName': '科室1', // 'hospitalDepartmentName': '科室1',
'doctorTitleLabel': '职位', // 'doctorTitleLabel': '职位',
'doctorPhone': '13820629672', // 'doctorPhone': '13820629672',
'doctorSignatureUrl': null, // 'doctorSignatureUrl': null,
'checkSchedule': '2', // 'checkSchedule': '2',
'visitDate': null, // 'visitDate': null,
'visitLocation': null, // 'visitLocation': null,
'positionId': null, // 'positionId': null,
'mainSuit': '主诉', // 'mainSuit': '主诉',
'doctorAdvice': '医嘱', // 'doctorAdvice': '医嘱',
'diagnosisResult': '诊断结果', // 'diagnosisResult': '诊断结果',
'registTime': '2023/06/13 14:29', // 'registTime': '2023/06/13 14:29',
'diagnosisTime': '2023/06/13 17:19', // 'diagnosisTime': '2023/06/13 17:19',
'recipelTime': null, // 'recipelTime': null,
'reportTime': '2023/06/14 11:16', // 'reportTime': '2023/06/14 11:16',
'delFlag': '0', // 'delFlag': '0',
'petOwnerBo': { // 'petOwnerBo': {
'id': 6, // 'id': 6,
'ownersId': null, // 'ownersId': null,
'nickName': '过的咖啡馆', // 'nickName': '过的咖啡馆',
'phoneNumber': '15123', // 'phoneNumber': '15123',
'createTime': '2023/04/21', // 'createTime': '2023/04/21',
'status': '0', // 'status': '0',
'customers': '2', // 'customers': '2',
'membershipLevel': '5', // 'membershipLevel': '5',
'cardBalance': '15.60', // 'cardBalance': '15.60',
'petCount': 0, // 'petCount': 0,
'petList': [ // 'petList': [
{ // {
'id': 1, // 'id': 1,
'petNickname': '包子', // 'petNickname': '包子',
'petAge': '3', // 'petAge': '3',
'petSex': '1', // 'petSex': '1',
'petBreed': '金毛猎犬', // 'petBreed': '金毛猎犬',
'sterilizationStatus': '0', // 'sterilizationStatus': '0',
'vaccineSituation': '0', // 'vaccineSituation': '0',
'petPicture': '/profile/upload/2023/05/10/dog1_20230510063813A013.png', // 'petPicture': '/profile/upload/2023/05/10/dog1_20230510063813A013.png',
'petColor': '黑花', // 'petColor': '黑花',
'petWeight': 18.57, // 'petWeight': 18.57,
'existState': null, // 'existState': null,
'petOwnersId': 7, // 'petOwnersId': 7,
'delFlag': '0', // 'delFlag': '0',
'petsId': '15341523102', // 'petsId': '15341523102',
'insure': '0', // 'insure': '0',
'createBy': null, // 'createBy': null,
'createTime': null, // 'createTime': null,
'updateBy': null, // 'updateBy': null,
'updateTime': null, // 'updateTime': null,
'remark': null // 'remark': null
}, // },
{ // {
'id': 9, // 'id': 9,
'petNickname': '包子', // 'petNickname': '包子',
'petAge': '3', // 'petAge': '3',
'petSex': '1', // 'petSex': '1',
'petBreed': '金毛猎犬', // 'petBreed': '金毛猎犬',
'sterilizationStatus': '0', // 'sterilizationStatus': '0',
'vaccineSituation': '0', // 'vaccineSituation': '0',
'petPicture': '/profile/upload/2023/05/10/dog1_20230510063813A013.png', // 'petPicture': '/profile/upload/2023/05/10/dog1_20230510063813A013.png',
'petColor': '黑花', // 'petColor': '黑花',
'petWeight': 18.57, // 'petWeight': 18.57,
'existState': null, // 'existState': null,
'petOwnersId': 7, // 'petOwnersId': 7,
'delFlag': '0', // 'delFlag': '0',
'petsId': '15341523102', // 'petsId': '15341523102',
'insure': '0', // 'insure': '0',
'createBy': null, // 'createBy': null,
'createTime': null, // 'createTime': null,
'updateBy': null, // 'updateBy': null,
'updateTime': null, // 'updateTime': null,
'remark': null // 'remark': null
} // }
] // ]
}, // },
'treatManageBo': [ // 'treatManageBo': [
{ // {
'id': 2, // 'id': 2,
'registId': null, // 'registId': null,
'medicalRecordId': null, // 'medicalRecordId': null,
'treatItemsName': null, // 'treatItemsName': null,
'doctorName': '高宇', // 'doctorName': '高宇',
'consultRoomName': null, // 'consultRoomName': null,
'payType': null, // 'payType': null,
'treatStatus': '0', // 'treatStatus': '0',
'treatStartTime': null // 'treatStartTime': null
}, // },
{ // {
'id': 3, // 'id': 3,
'registId': null, // 'registId': null,
'medicalRecordId': null, // 'medicalRecordId': null,
'treatItemsName': null, // 'treatItemsName': null,
'doctorName': '高宇', // 'doctorName': '高宇',
'consultRoomName': null, // 'consultRoomName': null,
'payType': null, // 'payType': null,
'treatStatus': '0', // 'treatStatus': '0',
'treatStartTime': null // 'treatStartTime': null
} // }
], // ],
'inHospitalBo': [ // 'inHospitalBo': [
{ // {
'id': 1, // 'id': 1,
'registId': null, // 'registId': null,
'medicalRecordId': null, // 'medicalRecordId': null,
'hospitalDays': null, // 'hospitalDays': null,
'diseaseLevel': '', // 'diseaseLevel': '',
'bathe': '', // 'bathe': '',
'wardRuleId': '', // 'wardRuleId': '',
'admissionDate': null // 'admissionDate': null
}, // },
{ // {
'id': 5, // 'id': 5,
'registId': null, // 'registId': null,
'medicalRecordId': null, // 'medicalRecordId': null,
'hospitalDays': null, // 'hospitalDays': null,
'diseaseLevel': '', // 'diseaseLevel': '',
'bathe': '', // 'bathe': '',
'wardRuleId': '', // 'wardRuleId': '',
'admissionDate': null // 'admissionDate': null
} // }
], // ],
'checkManageBos': [ // 'checkManageBos': [
{ // {
'id': 7, // 'id': 7,
'registId': null, // 'registId': null,
'medicalRecordId': null, // 'medicalRecordId': null,
'checkSchedule': null, // 'checkSchedule': null,
'payAmount': null, // 'payAmount': null,
'payType': '0', // 'payType': '0',
'checkType': '0', // 'checkType': '0',
'checkItemsId': null, // 'checkItemsId': null,
'checkItemsName': null, // 'checkItemsName': null,
'checkStartTime': null, // 'checkStartTime': null,
'shadowReport': null, // 'shadowReport': null,
'checkStatus': null, // 'checkStatus': null,
'inputShow': false // 'inputShow': false
} // }
], // ],
'followContent': null, // 'followContent': null,
'followTime': null, // 'followTime': null,
'followStatus': null // 'followStatus': null
} // }
} // }
this.checkManageBos.push(...temp.data.checkManageBos)
this.treatManageBo.push(...temp.data.treatManageBo)
this.petInfo = { ...temp.data }
console.log(this.checkManageBos, 'kkkkkkkkkkkkkkkkkkkkkkk')
}, },
/** 编辑行*/ /** 编辑行*/
handleUpdate(index, tableData) { handleUpdate(index, tableData) {
......
...@@ -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