From ff96e59494ada3dba9e94a149efd47f629697b39 Mon Sep 17 00:00:00 2001 From: pengjun <158915633@qq.com> Date: Fri, 6 Sep 2024 15:47:28 +0800 Subject: [PATCH] pacs --- src/components/doctorCheck/CheckItemList.vue | 47 +++++++++-- src/components/doctorCheck/PacsTemplate.vue | 40 ++++++--- .../doctorCheck/PatientRegisterBase.vue | 1 + .../doctorCheck/RegisterCheckList.vue | 82 +++++++++---------- .../occDisease/OccDiseaseConclusion.vue | 4 +- 5 files changed, 111 insertions(+), 63 deletions(-) diff --git a/src/components/doctorCheck/CheckItemList.vue b/src/components/doctorCheck/CheckItemList.vue index 966960c..dc95fd5 100644 --- a/src/components/doctorCheck/CheckItemList.vue +++ b/src/components/doctorCheck/CheckItemList.vue @@ -14,7 +14,7 @@ - P @@ -29,7 +29,8 @@ @@ -84,8 +85,8 @@ - - + + @@ -132,7 +133,7 @@ export default { moreResult: { data: [], result: '', - defaultResult:'', + defaultResult: '', index: 0, // 明细序列 }, //结果模版 isSplitChooseResult: 'N', // 选结果时,是否自动加上分隔符 @@ -142,6 +143,10 @@ export default { symbols: [], //特殊符号 splitSymbols: [';', '、'], // 分隔符 userId: '', + + // pacs 结果录入 + pacsParams: {}, + }; }, @@ -157,7 +162,7 @@ export default { }, computed: { - ...mapState(["window", "dataTransOpts", "dict","dialogWin", "doctorCheck"]), + ...mapState(["window", "dataTransOpts", "dict", "dialogWin", "doctorCheck"]), tableHeight() { let temp = this.window.pageHeight < 600 ? 600 : this.window.pageHeight @@ -410,8 +415,18 @@ export default { }, // pacs结果模板 - btnPacsResult(row, index){ - console.log('row, index',row, index) + btnPacsResult(row, index) { + let summary = '' + + this.doctorCheck.checkSummaryList.forEach((e,i) => { + summary += e.summary + }); + + // console.log('row, index,summary', row, index,summary) + + this.pacsParams = { + row,index,summary + } this.dialogWin.PacsTemplate = true }, @@ -449,12 +464,26 @@ export default { }, btnOkResult(result) { - this.doctorCheck.checkItemList[this.moreResult.index].result = result ? this.moreResult[result]:this.moreResult.result + this.doctorCheck.checkItemList[this.moreResult.index].result = result ? this.moreResult[result] : this.moreResult.result this.madeTooltips(this.moreResult.index); this.computeFun(this.moreResult.index) this.dialogWinMoreResult = false }, + // 处理 pacs 结果录入的情况 + handlePacsResult(row, index, pacsResult) { + // console.log('row,index,pacsResult', row, index, pacsResult) + this.doctorCheck.checkItemList[index].result = pacsResult.result + this.doctorCheck.checkSummaryList = [{ + id: Math.random(), + registerCheckId: this.doctorCheck.RegisterCheckEdit.id, + summary: pacsResult.summary, + summaryFlag: 'N', + }] + }, + + + //选择项目 rowClick(row) { this.doctorCheck.checkItem = row; diff --git a/src/components/doctorCheck/PacsTemplate.vue b/src/components/doctorCheck/PacsTemplate.vue index fdeea4a..9eba5a1 100644 --- a/src/components/doctorCheck/PacsTemplate.vue +++ b/src/components/doctorCheck/PacsTemplate.vue @@ -54,7 +54,9 @@
+ 清除 默认结果 确定 @@ -73,7 +75,7 @@ import { getTreePids, getTreeAllChildIdsById, madeTree } from "../../utlis/tree" export default { components: {}, - props: ["useCustomerOrg", "initDateType", "isUnit"], + props: ["refParams", "refFuncOther"], data() { return { filterText: '', @@ -97,7 +99,7 @@ export default { }, // computed: { - ...mapState(["dict", "window", "customerOrg", "patientRegister", "report", "diagnosis", "project"]), + ...mapState(["window", "dialogWin"]), mainHeight() { return this.window.pageHeight - 78; @@ -117,9 +119,17 @@ export default { mounted() { //获取体检单位列表树信息 this.getPacsTemplateTree(); + this.init() }, methods: { + // 初始化数据 + init() { + this.btnClear() + this.description = [] + this.result = this.refParams.row.result + this.summary = this.refParams.summary || '' + }, //树过滤 filterNode(value, data) { @@ -156,7 +166,8 @@ export default { let ids = getTreeAllChildIdsById(this.pacsTemplateTree, "children", "id", data.id) ids.unshift(data.id) // 加入自身节点 - hadoopPost('pacsApi','/api/app/BigtextResultTemplate/GetBigtextResultTemplateDetail', { bigtextResultTemplateIds: ids }) + // hadoopPost('pacsApi', '/api/app/BigtextResultTemplate/GetBigtextResultTemplateDetail', { bigtextResultTemplateIds: ids }) + postapi('/api/app/BigtextResultTemplate/GetBigtextResultTemplateDetail', { bigtextResultTemplateIds: ids }) .then(res => { if (res.code > -1) { this.newQuery = 0 @@ -179,11 +190,10 @@ export default { if (lfind > -1) { // console.log('this.descriptionChoosed refresh', deepCopy(this.descriptionChoosed)) this.$nextTick(() => { - this.$refs['ref_description'].toggleRowSelection(this.description[i],true) - }) + this.$refs['ref_description'].toggleRowSelection(this.description[i], true) + }) } }); - } }) @@ -218,7 +228,7 @@ export default { } else { this.result = e.description } - }); + }); // 这一次没选中的在上一次的选中当中,说明取消选择 if (this.newQuery > 1) { @@ -239,8 +249,8 @@ export default { }); } this.descriptionChoosedPre = deepCopy(v) - if(this.result){ - if(this.result.substring(this.result.length - 1,this.result.length) == ";") this.result = this.result.substring(0,this.result.length - 1) + if (this.result) { + if (this.result.substring(this.result.length - 1, this.result.length) == ";") this.result = this.result.substring(0, this.result.length - 1) } }, @@ -296,18 +306,26 @@ export default { // 默认结果 btnDefault() { - + this.btnClear() + this.result = this.refParams.row.defaultResult + this.summary = '未见异常' }, // 确定 btnOk() { + this.refFuncOther(this.refParams.row, this.refParams.index, { result: this.result, summary: this.summary }) this.dialogWin.PacsTemplate = false }, }, + watch: { "filterText"(newVal, oldVal) { if (newVal != oldVal) this.$refs['ref_tree'].filter(newVal); - } + }, + + "refParams.row.itemId"(newVal, oldVal) { + if (newVal != oldVal) this.init(); + }, }, }; diff --git a/src/components/doctorCheck/PatientRegisterBase.vue b/src/components/doctorCheck/PatientRegisterBase.vue index 10727f4..828ae4e 100644 --- a/src/components/doctorCheck/PatientRegisterBase.vue +++ b/src/components/doctorCheck/PatientRegisterBase.vue @@ -181,6 +181,7 @@ export default { //触发检查医生诊台相关刷新 this.dataTransOpts.refresh.register_check.M++ + //触发总检医生诊台相关刷新 // console.log('afterFind',rd) diff --git a/src/components/doctorCheck/RegisterCheckList.vue b/src/components/doctorCheck/RegisterCheckList.vue index b44d676..70caa34 100644 --- a/src/components/doctorCheck/RegisterCheckList.vue +++ b/src/components/doctorCheck/RegisterCheckList.vue @@ -1,11 +1,10 @@