diff --git a/src/api/system/specialDiseaseNode.js b/src/api/system/specialDiseaseNode.js index 2185f04..c12fb81 100644 --- a/src/api/system/specialDiseaseNode.js +++ b/src/api/system/specialDiseaseNode.js @@ -15,9 +15,9 @@ export function selectTaskTypeList() { }) } // 任务状态 -export function taskStatusDictList() { +export function taskStatusDictList(id) { return request({ - url: '/system/taskStatus/taskStatusDictList', + url: `/system/taskStatus/taskStatusDictList?taskPartitionId=${id}`, method: 'get', }) } diff --git a/src/views/manage/blacklist/index.vue b/src/views/manage/blacklist/index.vue index 43a1fd3..36cc0b8 100644 --- a/src/views/manage/blacklist/index.vue +++ b/src/views/manage/blacklist/index.vue @@ -172,7 +172,6 @@ export default { data() { //验证身份证 var isCardId = (rule, value, callback) => { - console.log(value) if (value == null) { callback(new Error("请输入患者身份证号")); } else { @@ -344,8 +343,8 @@ export default { if (this.form.campusAgencyId) { this.changecampusAgency(this.form.campusAgencyId, 1, 2) } - if (this.form.abnormalCauseValue) { - this.changeabnormalCauseValue(this.form.abnormalCauseValue, 1) + if (this.form.abnormalCauseId) { + this.changeabnormalCauseValue(this.form.abnormalCauseId, 1) } this.open = true; this.title = "修改黑名单"; @@ -353,6 +352,21 @@ export default { }, /** 提交按钮 */ submitForm() { + if (this.form.hospitalAgencyId && this.hospitalAgencylist?.length > 0) { + this.form.hospitalAgencyName = this.hospitalAgencylist.find(e => e.id == this.form.hospitalAgencyId)?.agencyName + } + if (this.form.campusAgencyId && this.form_campusAgencylist?.length > 0) { + this.form.campusAgencyName = this.form_campusAgencylist.find(e => e.id == this.form.campusAgencyId)?.agencyName + } + if (this.form.departmentId && this.form_departmentlist?.length > 0) { + this.form.departmentName = this.form_departmentlist.find(e => e.id == this.form.departmentId)?.departmentName + } + if (this.form.abnormalCauseId && this.abnormalCauselist?.length > 0) { + this.form.abnormalCauseValue = this.abnormalCauselist.find(e => e.id == this.form.abnormalCauseId)?.abnormalCauseValue + } + if (this.form.supplementIllustrateId && this.supplementIllustratelist?.length > 0) { + this.form.supplementIllustrateValue = this.supplementIllustratelist.find(e => e.id == this.form.supplementIllustrateId)?.abnormalCauseValue + } this.$refs["form"].validate(valid => { if (valid) { if (this.form.id != null) { @@ -450,7 +464,6 @@ export default { this.queryParams.certificateIssuingDoctorId = null } // }) - this.usergetListinfo(id, type) }, //选中院区获取科室 changecampusAgency(id, type, typetwo) { @@ -488,20 +501,12 @@ export default { if (type) { this.form.departmentId = null this.form.wardId = null + this.getAgencyListinfo('HOSPITAL', this.form.hospitalAgencyId, type) } else { this.queryParams.departmentId = null this.queryParams.wardId = null + this.getAgencyListinfo('HOSPITAL', this.queryParams.hospitalAgencyId) } - this.getAgencyListinfo('HOSPITAL', this.queryParams.hospitalAgencyId, type) - }, - //清空科室 - cleardepartment(type) { - if (type) { - this.form.wardId = null - } else { - this.queryParams.wardId = null - } - this.getAgencyListinfo('CAMPUS', this.queryParams.campusAgencyId, type) }, //获取异常原因 causegetinfo() { diff --git a/src/views/manage/manualReview/index.vue b/src/views/manage/manualReview/index.vue index b4394ff..d04cc5b 100644 --- a/src/views/manage/manualReview/index.vue +++ b/src/views/manage/manualReview/index.vue @@ -348,7 +348,13 @@ export default { //清空科室 cleardepartment() { this.queryParams.wardId = null - this.getAgencyListinfo('CAMPUS', this.queryParams.campusAgencyId) + if (this.queryParams.departmentId) { + this.getAgencyListinfo('DEPARTMENT', this.queryParams.departmentId) + } else if (this.queryParams.campusAgencyId) { + this.getAgencyListinfo('CAMPUS', this.queryParams.campusAgencyId) + } else if (this.queryParams.hospitalAgencyId) { + this.getAgencyListinfo('HOSPITAL', this.queryParams.hospitalAgencyId) + } }, } }; diff --git a/src/views/manage/patientInfo/index.vue b/src/views/manage/patientInfo/index.vue index 4bafb27..4014617 100644 --- a/src/views/manage/patientInfo/index.vue +++ b/src/views/manage/patientInfo/index.vue @@ -381,7 +381,13 @@ export default { //清空科室 cleardepartment() { this.queryParams.wardId = null - this.getAgencyListinfo('CAMPUS', this.queryParams.campusAgencyId) + if (this.queryParams.departmentId) { + this.getAgencyListinfo('DEPARTMENT', this.queryParams.departmentId) + } else if (this.queryParams.campusAgencyId) { + this.getAgencyListinfo('CAMPUS', this.queryParams.campusAgencyId) + } else if (this.queryParams.hospitalAgencyId) { + this.getAgencyListinfo('HOSPITAL', this.queryParams.hospitalAgencyId) + } }, } }; diff --git a/src/views/manage/preHospitalized/index.vue b/src/views/manage/preHospitalized/index.vue index 03db30d..5beab4b 100644 --- a/src/views/manage/preHospitalized/index.vue +++ b/src/views/manage/preHospitalized/index.vue @@ -637,7 +637,7 @@ export default { if (this.form.departmentId && this.form_departmentlist?.length > 0) { this.form.departmentName = this.form_departmentlist.find(e => e.id == this.form.departmentId)?.departmentName } - if (this.form.hospitalAgencyId && this.form_wardlist?.length > 0) { + if (this.form.wardId && this.form_wardlist?.length > 0) { this.form.wardName = this.form_wardlist.find(e => e.id == this.form.wardId)?.departmentName } if (this.form.certificateIssuingDoctorId && this.form_attendingPhysicianlist?.length > 0) { @@ -833,20 +833,34 @@ export default { if (type) { this.form.departmentId = null this.form.wardId = null + this.getAgencyListinfo('HOSPITAL', this.form.hospitalAgencyId, type) } else { this.queryParams.departmentId = null this.queryParams.wardId = null + this.getAgencyListinfo('HOSPITAL', this.queryParams.hospitalAgencyId) } - this.getAgencyListinfo('HOSPITAL', this.queryParams.hospitalAgencyId, type) }, //清空科室 cleardepartment(type) { if (type) { this.form.wardId = null + if (this.form.departmentId) { + this.getAgencyListinfo('DEPARTMENT', this.form.departmentId, type) + } else if (this.form.campusAgencyId) { + this.getAgencyListinfo('CAMPUS', this.form.campusAgencyId, type) + } else if (this.form.hospitalAgencyId) { + this.getAgencyListinfo('HOSPITAL', this.form.hospitalAgencyId, type) + } } else { this.queryParams.wardId = null + if (this.queryParams.departmentId) { + this.getAgencyListinfo('DEPARTMENT', this.queryParams.departmentId) + } else if (this.queryParams.campusAgencyId) { + this.getAgencyListinfo('CAMPUS', this.queryParams.campusAgencyId) + } else if (this.queryParams.hospitalAgencyId) { + this.getAgencyListinfo('HOSPITAL', this.queryParams.hospitalAgencyId) + } } - this.getAgencyListinfo('CAMPUS', this.queryParams.campusAgencyId, type) }, /** 下载模板操作 */ importTemplate() { diff --git a/src/views/manage/propaganda/index.vue b/src/views/manage/propaganda/index.vue index c26705d..8c4d92f 100644 --- a/src/views/manage/propaganda/index.vue +++ b/src/views/manage/propaganda/index.vue @@ -372,7 +372,7 @@ v-for="item in Departmentdata" :key="item.id" :label="item.departmentName" - :value="item.departmentCode" + :value="item.id" > @@ -678,7 +678,13 @@
知识卡片
- {{ formview.propagandaContent }} + + +
@@ -839,10 +845,11 @@ import { listMaterials } from "@/api/manage/materials"; import { selectAgencyList, getDepartmentList } from "@/api/manage/selectAgencyList"; import stationAcatar from "../../system/stationAvatar/index.vue"; +import Editorxj from "../../system/Editorxj/index.vue"; import { department, listDisease } from "@/api/manage/script"; export default { name: "Propaganda", - components: { stationAcatar }, + components: { stationAcatar ,Editorxj}, data() { //验证身份证 var isimgPath = (rule, value, callback) => { diff --git a/src/views/manage/signRecord/index.vue b/src/views/manage/signRecord/index.vue index 6dc1f9f..5c16d57 100644 --- a/src/views/manage/signRecord/index.vue +++ b/src/views/manage/signRecord/index.vue @@ -559,7 +559,7 @@ export default { }) }, //获取下级单位 - getAgencyListinfo(nodeType, id, type) { + getAgencyListinfo(nodeType, id) { let query = { nodeType: nodeType, } @@ -571,116 +571,75 @@ export default { query.departmentId = id } getAgencyList(query).then(res => { - if (type) { - if (nodeType == 'HOSPITAL') { - this.form_campusAgencylist = res.data.campusList - this.form_departmentlist = res.data.departmentList - } else if (nodeType == 'CAMPUS') { - this.form_departmentlist = res.data.departmentList - } - this.form_wardlist = res.data.wardList - } else { - if (nodeType == 'HOSPITAL') { - this.campusAgencylist = res.data.campusList - } - if (nodeType == 'CAMPUS' || nodeType == 'HOSPITAL') { - this.departmentlist = res.data.departmentList - } - this.wardlist = res.data.wardList + if (nodeType == 'HOSPITAL') { + this.campusAgencylist = res.data.campusList } + if (nodeType == 'CAMPUS' || nodeType == 'HOSPITAL') { + this.departmentlist = res.data.departmentList + } + this.wardlist = res.data.wardList }) }, //选中医院获取院区 - changehospitalAgency(id, type, typetwo) { - this.getAgencyListinfo('HOSPITAL', id, type) + changehospitalAgency(id) { + this.getAgencyListinfo('HOSPITAL', id) // let query = { // agencyStatus: 'ON', // nodeType: 'CAMPUS', // parentId: id, // } // selectAgencyList(query).then(res => { - if (type) { - if (!typetwo) { - this.form.campusAgencyId = null - this.form.departmentId = null - this.form.wardId = null - this.form.certificateIssuingDoctorId = null - } - } else { - this.queryParams.campusAgencyId = null - this.queryParams.departmentId = null - this.queryParams.wardId = null - this.queryParams.certificateIssuingDoctorId = null - } + this.queryParams.campusAgencyId = null + this.queryParams.departmentId = null + this.queryParams.wardId = null + this.queryParams.certificateIssuingDoctorId = null // }) }, //选中院区获取科室 - changecampusAgency(id, type, typetwo) { - this.getAgencyListinfo('CAMPUS', id, type) + changecampusAgency(id) { + this.getAgencyListinfo('CAMPUS', id) // let query = { // nodeType: 'DEPARTMENT', // agencyId: id, // } // getDepartmentList(query).then(res => { - if (type) { - if (!typetwo) { - this.form.departmentId = null - this.form.wardId = null - } - } else { - this.queryParams.departmentId = null - this.queryParams.wardId = null - } + this.queryParams.departmentId = null + this.queryParams.wardId = null // }) }, //选中科室获取病区 - changedepartment(id, type, typetwo) { - this.getAgencyListinfo('DEPARTMENT', id, type) + changedepartment(id) { + this.getAgencyListinfo('DEPARTMENT', id) // let query = { // nodeType: 'WARD', // parentDepartmentId: id, // } // getDepartmentList(query).then(res => { - if (type) { - if (!typetwo) { - this.form.wardId = null - } else { - this.queryParams.wardId = null - } - } + this.queryParams.wardId = null // }) }, //清空医院 - clearhospitalAgency(type) { - if (type) { - this.form.campusAgencyId = null - this.form.departmentId = null - this.form.wardId = null - } else { - this.queryParams.campusAgencyId = null - this.queryParams.departmentId = null - this.queryParams.wardId = null - } + clearhospitalAgency() { + this.queryParams.campusAgencyId = null + this.queryParams.departmentId = null + this.queryParams.wardId = null }, //清空院区 - clearcampusAgency(type) { - if (type) { - this.form.departmentId = null - this.form.wardId = null - } else { - this.queryParams.departmentId = null - this.queryParams.wardId = null - } - this.getAgencyListinfo('HOSPITAL', this.queryParams.hospitalAgencyId, type) + clearcampusAgency() { + this.queryParams.departmentId = null + this.queryParams.wardId = null + this.getAgencyListinfo('HOSPITAL', this.queryParams.hospitalAgencyId) }, //清空科室 - cleardepartment(type) { - if (type) { - this.form.wardId = null - } else { - this.queryParams.wardId = null + cleardepartment() { + this.queryParams.wardId = null + if (this.queryParams.departmentId) { + this.getAgencyListinfo('DEPARTMENT', this.queryParams.departmentId) + } else if (this.queryParams.campusAgencyId) { + this.getAgencyListinfo('CAMPUS', this.queryParams.campusAgencyId) + } else if (this.queryParams.hospitalAgencyId) { + this.getAgencyListinfo('HOSPITAL', this.queryParams.hospitalAgencyId) } - this.getAgencyListinfo('CAMPUS', this.queryParams.campusAgencyId, type) }, //续约 handleContinue(row) { diff --git a/src/views/manage/visitin/index.vue b/src/views/manage/visitin/index.vue index 961ca4c..60afdfe 100644 --- a/src/views/manage/visitin/index.vue +++ b/src/views/manage/visitin/index.vue @@ -670,7 +670,7 @@ export default { if (this.form.departmentId && this.form_departmentlist?.length > 0) { this.form.departmentName = this.form_departmentlist.find(e => e.id == this.form.departmentId)?.departmentName } - if (this.form.hospitalAgencyId && this.form_wardlist?.length > 0) { + if (this.form.wardId && this.form_wardlist?.length > 0) { this.form.wardName = this.form_wardlist.find(e => e.id == this.form.wardId)?.departmentName } if (this.form.attendingPhysicianId && this.form_attendingPhysicianlist?.length > 0) { @@ -853,20 +853,34 @@ export default { if (type) { this.form.departmentId = null this.form.wardId = null + this.getAgencyListinfo('HOSPITAL', this.form.hospitalAgencyId, type) } else { this.queryParams.departmentId = null this.queryParams.wardId = null + this.getAgencyListinfo('HOSPITAL', this.queryParams.hospitalAgencyId) } - this.getAgencyListinfo('HOSPITAL', this.queryParams.hospitalAgencyId, type) }, //清空科室 cleardepartment(type) { if (type) { this.form.wardId = null + if (this.form.departmentId) { + this.getAgencyListinfo('DEPARTMENT', this.form.departmentId, type) + } else if (this.form.campusAgencyId) { + this.getAgencyListinfo('CAMPUS', this.form.campusAgencyId, type) + } else if (this.form.hospitalAgencyId) { + this.getAgencyListinfo('HOSPITAL', this.form.hospitalAgencyId, type) + } } else { this.queryParams.wardId = null + if (this.queryParams.departmentId) { + this.getAgencyListinfo('DEPARTMENT', this.queryParams.departmentId) + } else if (this.queryParams.campusAgencyId) { + this.getAgencyListinfo('CAMPUS', this.queryParams.campusAgencyId) + } else if (this.queryParams.hospitalAgencyId) { + this.getAgencyListinfo('HOSPITAL', this.queryParams.hospitalAgencyId) + } } - this.getAgencyListinfo('CAMPUS', this.queryParams.campusAgencyId, type) }, /** 下载模板操作 */ importTemplate() { diff --git a/src/views/manage/visitout/index.vue b/src/views/manage/visitout/index.vue index 8bb58a0..edd0972 100644 --- a/src/views/manage/visitout/index.vue +++ b/src/views/manage/visitout/index.vue @@ -790,7 +790,7 @@ export default { if (this.form.departmentId && this.form_departmentlist?.length > 0) { this.form.departmentName = this.form_departmentlist.find(e => e.id == this.form.departmentId)?.departmentName } - if (this.form.hospitalAgencyId && this.form_wardlist?.length > 0) { + if (this.form.wardId && this.form_wardlist?.length > 0) { this.form.wardName = this.form_wardlist.find(e => e.id == this.form.wardId)?.departmentName } if (this.form.attendingPhysicianId && this.form_attendingPhysicianlist?.length > 0) { @@ -990,20 +990,34 @@ export default { if (type) { this.form.departmentId = null this.form.wardId = null + this.getAgencyListinfo('HOSPITAL', this.form.hospitalAgencyId, type) } else { this.queryParams.departmentId = null this.queryParams.wardId = null + this.getAgencyListinfo('HOSPITAL', this.queryParams.hospitalAgencyId) } - this.getAgencyListinfo('HOSPITAL', this.queryParams.hospitalAgencyId, type) }, //清空科室 cleardepartment(type) { if (type) { this.form.wardId = null + if (this.form.departmentId) { + this.getAgencyListinfo('DEPARTMENT', this.form.departmentId, type) + } else if (this.form.campusAgencyId) { + this.getAgencyListinfo('CAMPUS', this.form.campusAgencyId, type) + } else if (this.form.hospitalAgencyId) { + this.getAgencyListinfo('HOSPITAL', this.form.hospitalAgencyId, type) + } } else { this.queryParams.wardId = null + if (this.queryParams.departmentId) { + this.getAgencyListinfo('DEPARTMENT', this.queryParams.departmentId) + } else if (this.queryParams.campusAgencyId) { + this.getAgencyListinfo('CAMPUS', this.queryParams.campusAgencyId) + } else if (this.queryParams.hospitalAgencyId) { + this.getAgencyListinfo('HOSPITAL', this.queryParams.hospitalAgencyId) + } } - this.getAgencyListinfo('CAMPUS', this.queryParams.campusAgencyId, type) }, /** 下载模板操作 */ importTemplate() { diff --git a/src/views/system/Editorxj/index.vue b/src/views/system/Editorxj/index.vue new file mode 100644 index 0000000..224be24 --- /dev/null +++ b/src/views/system/Editorxj/index.vue @@ -0,0 +1,281 @@ + + + + + diff --git a/src/views/system/components/wangEditor.vue b/src/views/system/components/wangEditor.vue index 995ddf9..550b49c 100644 --- a/src/views/system/components/wangEditor.vue +++ b/src/views/system/components/wangEditor.vue @@ -182,6 +182,7 @@ export default ({ res.data.data.forEach(e => { e.labelFieldContentList.forEach(el => { el.labelFieldId = el.labelFieldContentId + el.fieldName = el.contentName }) }) this.labeloptions = res.data.data @@ -190,6 +191,7 @@ export default ({ res.data.data.forEach(e => { e.labelFieldContentList.forEach(el => { el.labelFieldId = el.labelFieldContentId + el.fieldName = el.contentName }) }) this.fieldoptions = res.data.data diff --git a/src/views/system/followup/index.vue b/src/views/system/followup/index.vue index 09c853e..fa1c0d9 100644 --- a/src/views/system/followup/index.vue +++ b/src/views/system/followup/index.vue @@ -4,142 +4,49 @@ - + - + - + - + - - + + - - - + + + - - - + + + - - - + + + - - + +