From 7bb2dc4bc0107abb6b55beacc923c63e605658a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BD=97=E6=96=8C=E6=9D=B0?= <> Date: Sun, 24 Nov 2024 18:14:12 +0800 Subject: [PATCH] ui --- src/components/follow/FollowCriticalCheck.vue | 37 +++++-- src/components/follow/FollowList.vue | 99 ++++++++++++------- src/components/follow/FollowQuery.vue | 9 +- src/components/follow/PhoneFollowUp.vue | 18 +++- src/components/follow/follow.vue | 6 ++ src/store/index.js | 6 +- src/views/fee-settings/Item.vue | 83 ++++++++++++++-- 7 files changed, 201 insertions(+), 57 deletions(-) diff --git a/src/components/follow/FollowCriticalCheck.vue b/src/components/follow/FollowCriticalCheck.vue index d62c647..4c6579b 100644 --- a/src/components/follow/FollowCriticalCheck.vue +++ b/src/components/follow/FollowCriticalCheck.vue @@ -5,7 +5,7 @@
- + - + + + + + + + + + + + { + if (res.code > -1) { + this.dict.diagnosisLevel = res.data; + } + }); if(this.doctorCheck.combinationCriticalValue){ getapi(`/api/app/registercheck/getregistercheck?id=${this.doctorCheck.RegisterCheckId}`) .then(res => { @@ -280,9 +297,7 @@ export default { this.tableData=res.data } }) - // this.tableData=this.doctorCheck.RegisterCheckEdit }else{ - console.log(this.doctorCheck.singleDetailedProject) postapi("/api/app/RegisterCheckItem/GetRegisterCheckItem",{ registerCheckId:this.doctorCheck.RegisterCheckId, itemId:this.doctorCheck.singleDetailedProject.itemId @@ -671,7 +686,9 @@ export default { this.dataTransOpts.refresh.register_check_asbitem.M++ //触发所选组合项目刷新 // } }, - + clear(){ + this.tableData.diagnosisLevelId=null + }, // 导入企业(青藏公司)数据 btnImportOrgData() { if(this.doctorCheck.combinationCriticalValue){ @@ -681,7 +698,8 @@ export default { isFollowUp:this.tableData.isFollowUp, criticalValueContent:this.tableData.criticalValueContent, isCriticalValueAudit:this.tableData.isCriticalValueAudit, - isReview:this.tableData.isReview + isReview:this.tableData.isReview, + diagnosisLevelId:this.tableData.diagnosisLevelId }).then(res => { this.doctorCheck.RegisterCheckEdit.isCriticalValue=this.tableData.isCriticalValue this.dialogWin.FollowCriticalCheck = false @@ -695,7 +713,8 @@ export default { criticalValueContent:this.tableData.criticalValueContent, isCriticalValueAudit:this.tableData.isCriticalValueAudit, isReview:this.tableData.isReview, - itemId:this.tableData.itemId + itemId:this.tableData.itemId, + diagnosisLevelId:this.tableData.diagnosisLevelId }).then(res => { for(let i=0;i
--> - + - + @@ -54,6 +54,11 @@
+ + + @@ -143,7 +148,7 @@ export default { FollowCritical, PhoneFollowUp, SmsSend, - AsbitemCriticalValue + AsbitemCriticalValue, }, data() { return { @@ -308,7 +313,7 @@ export default { }, }, LocalConfigInit: {}, - columnData:[] + columnData: [], }; }, @@ -369,14 +374,15 @@ export default { deepCopy, checkPagePriv, setPrStatusColor, - mergeSummarys(array,itemKey) { - let ret = '' + mergeSummarys(array, itemKey) { + let ret = ""; array.forEach((e, i) => { - let splitStr = "
" - if (i == 0) splitStr = "" - return ret += splitStr + e[itemKey]+' '+e.isCriticalValue+' '+e.isReview - }) - return ret + let splitStr = "
"; + if (i == 0) splitStr = ""; + return (ret += + splitStr + e[itemKey] + " " + e.isCriticalValue + " " + e.isReview); + }); + return ret; }, // 扩展定义表格行样式 handleRowClassName({ row, rowIndex }) { @@ -747,7 +753,7 @@ export default { async Query() { // 查询时,清掉明细数据 (滚动时不清) this.dataTransOpts.tableS.patient_register.followUpId = ""; - this.dataTransOpts.tableS.patient_register.patientRegisterId="" + this.dataTransOpts.tableS.patient_register.patientRegisterId = ""; this.tableDataCurrentRow = {}; // 清除选择 this.tableData = []; @@ -769,19 +775,16 @@ export default { async getPrList() { // console.log('getPrList', this.loadOpts) - let body = { - - }, + let body = {}, customerOrgs = []; if (this.report.dataCusOrgOCX.length > 0) { if (this.report.dataCusOrgOCX.length > 1) { return this.$message({ - message: '只能选择一个单位', - type: 'warning' - }); + message: "只能选择一个单位", + type: "warning", + }); } else { this.report.dataCusOrgOCX.forEach((e) => { - if (e.customerOrgId) { body.customerOrgId = e.customerOrgId; if (e.customerOrgId == this.dict.personOrgId) { @@ -792,14 +795,14 @@ export default { body.customerOrgGroupId = e.customerOrgGroupIds; } } - body.startDate=moment(e.startDate).format("yyyy-MM-DD"), - body.endDate= moment(e.endDate).format("yyyy-MM-DD"), - body.dateType= + (body.startDate = moment(e.startDate).format("yyyy-MM-DD")), + (body.endDate = moment(e.endDate).format("yyyy-MM-DD")), + (body.dateType = e.dateType == "summaryDate" ? "3" : e.dateType == "medicalStartDate" ? "2" - : "1" + : "1"); }); } } @@ -831,6 +834,8 @@ export default { if (this.patientRegister.query.isPhoneComplete) body.isPhoneComplete = this.patientRegister.query.isPhoneComplete; + if (this.patientRegister.query.diagnosisLevelId.length>0) + body.diagnosisLevelIds = this.patientRegister.query.diagnosisLevelId; if (this.patientRegister.query.idCardNo) body = { @@ -861,22 +866,40 @@ export default { ).then((res) => { if (res.code > -1) { let that = this; - for(let i=0;i电话随访创建完成 +
+ 诊断级别 + + + + +
@@ -199,7 +207,6 @@ export default { // console.log('this.patientRegister.query.customerOrgRegister',this.patientRegister.query.customerOrgRegister) } }); - //体检类别 getapi("/api/app/medical-type/in-filter").then((res) => { if (res.code > -1) { diff --git a/src/components/follow/PhoneFollowUp.vue b/src/components/follow/PhoneFollowUp.vue index adc64f0..fb918b7 100644 --- a/src/components/follow/PhoneFollowUp.vue +++ b/src/components/follow/PhoneFollowUp.vue @@ -296,6 +296,10 @@ export default { id: "1", displayName: "生成多条", }, + { + id: "2", + displayName: "创建三个月计划", + }, ], title: "", }; @@ -363,7 +367,7 @@ export default { } }); } - } else { + } else if(this.mode == 0) { if (this.form.planFollowDate == "") { this.$message.warning("请选择随访日期"); } else { @@ -380,6 +384,18 @@ export default { } }); } + }else{ + postapi("/api/app/PhoneFollowUp/CreateThreeMonthPlan", { + followUpId: this.dataTransOpts.tableS.patient_register.followUpId, + followUpContent: this.form.followUpContent, + replyContent: this.form.replyContent, + }).then((res) => { + if (res.code > -1) { + this.getLists(); + this.dialogVisible = false; + this.mode = "0"; + } + }); } } else { postapi("/api/app/PhoneFollowUp/Update", { diff --git a/src/components/follow/follow.vue b/src/components/follow/follow.vue index c4d22ee..51ab8db 100644 --- a/src/components/follow/follow.vue +++ b/src/components/follow/follow.vue @@ -150,6 +150,12 @@ export default { this.dict.payMode = res.data; } }); + //危急值类别 + getapi("/api/app/diagnosis-level/in-filter").then((res) => { + if (res.code > -1) { + this.dict.diagnosisLevel = res.data; + } + }); }, }, diff --git a/src/store/index.js b/src/store/index.js index fa51e09..624d714 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -214,7 +214,10 @@ export default new Vuex.Store({ idCardNo: '', //身份证号 isSeries: 'N', isSmsComplete: "N", - isPhoneComplete: "N" + isPhoneComplete: "N", + diagnosisLevelId: [], + medicalTypeIds: [], + completeFlags: [] }, //查询条件 customerOrgGroup: [], //分组(针对单位) patientRegisterAbs: [], //人员已选组合项目 @@ -294,6 +297,7 @@ export default new Vuex.Store({ sexHormoneTerm: [], //性激素期 nation: [], //民族 birthPlace: [], //籍惯 ,出生地 + diagnosisLevel: [], //诊断级别 completeFlag: [ //体检完成标志 { id: "0", displayName: "预登记" }, diff --git a/src/views/fee-settings/Item.vue b/src/views/fee-settings/Item.vue index 1eb0e6c..d269481 100644 --- a/src/views/fee-settings/Item.vue +++ b/src/views/fee-settings/Item.vue @@ -547,10 +547,12 @@ --> -
+ + +
@@ -638,13 +640,28 @@
+ + +
+
+ +
+
+ 保存 +
+
+
+ 取 消 确 定
@@ -1005,7 +1022,7 @@ import { import { unitlist, instrumentlist } from "@/request/systemapi"; import Sortable from "sortablejs"; import { getapi, postapi, putapi, deletapi } from "@/api/api"; -import { deepCopy, dddw } from "../../utlis/proFunc"; +import { deepCopy, dddw, tcdate} from "../../utlis/proFunc"; import ReferenceRange from "../../components/itemSet/ReferenceRange.vue"; import { mapState, mapActions } from "vuex"; export default { @@ -1391,7 +1408,17 @@ export default { isshows: true, isshowes: true, initItemTypeId: "", - deviceTypeId: [] + deviceTypeId: [], + activeName:"first", + menuInfoView:[], + treeprops: { + label: "displayName", //displayName + value: "bigtextResultTypeId", + id: "bigtextResultTypeId", + children: "treeChildren", + checkStrictly: true + }, + defaultExpandedKeys:[] }; }, created() { @@ -1976,6 +2003,25 @@ export default { } ); }, + saveEntry(){ + let selectedNodes=this.$refs.customerOrgTree.getCheckedNodes() + let itemBigtextResultTypeIds=[] + for(let i=0;i { + if (res.code != -1) { + this.$message.success("设置成功"); + } + } + ); + }, resulttemplate() { let that = this; this.form = { ...this.curRow }; @@ -1994,7 +2040,30 @@ export default { } } ); - + postapi("/api/app/BigtextResultType/GetByCodeAll").then( + (res) => { + if (res.code != -1) { + this.menuInfoView = res.data; + tcdate(this.menuInfoView); + } + } + ); + postapi("/api/app/item/GetItemBigtextResultTypeByItemId",{ + itemId:this.form.id + }).then( + (res) => { + if (res.code != -1) { + let defaultExpandedKeys=[] + res.data.forEach((e)=>{ + defaultExpandedKeys.push(e.itemBigtextResultTypeId) + }) + this.defaultExpandedKeys = defaultExpandedKeys; + console.log(this.defaultExpandedKeys) + + } + } + ); + // // 获取项目类别 // getapi("/api/app/item-type/by-code-all").then((res) => { // this.resultitemtype = res.data;