From b7ff47cf54e2e722f07e48cb55e8c722c2140491 Mon Sep 17 00:00:00 2001 From: pengjun <158915633@qq.com> Date: Sat, 17 Jan 2026 18:11:25 +0800 Subject: [PATCH] seo --- .../customerOrg/customerOrgTree.vue | 9 +- .../patientRegister/PatientRegisterList.vue | 60 +++-- .../patientRegister/customerOrgTreeAll.vue | 12 +- src/components/report/CusOrgOCX.vue | 9 +- .../report/PatientRegisterListNobtn.vue | 79 +++++- src/components/report/TurnoverReportS.vue | 27 +- src/utlis/tree.js | 245 ++++++++++-------- 7 files changed, 277 insertions(+), 164 deletions(-) diff --git a/src/components/customerOrg/customerOrgTree.vue b/src/components/customerOrg/customerOrgTree.vue index 1eb312c..9d54d6d 100644 --- a/src/components/customerOrg/customerOrgTree.vue +++ b/src/components/customerOrg/customerOrgTree.vue @@ -32,7 +32,7 @@ import { mapState, mapMutations } from "vuex"; import { getapi, postapi, putapi, deletapi } from "@/api/api"; import { tcdate, deepCopy, reMadeOrgTree } from "../../utlis/proFunc"; -import { getTreePids, getTreeNode } from "../../utlis/tree"; +import { getTreePids, getTreeNode,filterTreeNode } from "../../utlis/tree"; import { setDBCom, getDBCom } from "../../utlis/indexedDB"; @@ -186,9 +186,10 @@ export default { filterParentNode(value) { // console.log(value, data) if (value){ - let org = this.customerOrgTreeAll.filter(e => { - return e.label.indexOf(value) > -1 || e.simpleCode.indexOf(value.toUpperCase()) > -1 - }) + // let org = this.customerOrgTreeAll.filter(e => { + // return e.label.indexOf(value) > -1 || e.simpleCode.indexOf(value.toUpperCase()) > -1 + // }) + let org = filterTreeNode(this.customerOrgTreeAll,"treeChildren",['label','simpleCode'],[value,value.toUpperCase()]) this.customerOrgTreeSeo = org.slice(0,100) }else{ this.customerOrgTreeSeo = this.customerOrgTreeAll.slice(0,100) diff --git a/src/components/patientRegister/PatientRegisterList.vue b/src/components/patientRegister/PatientRegisterList.vue index 270c2ab..2aa6e76 100644 --- a/src/components/patientRegister/PatientRegisterList.vue +++ b/src/components/patientRegister/PatientRegisterList.vue @@ -711,6 +711,8 @@ export default { routeUrlorPageName: "patientRegister", //当前页面归属路由或归属页面权限名称 privs: [], // 页面权限 }, + patient_register_query_idno: 'Y', // 身份证排他 + patient_register_query_name: 'N', // 姓名排他 peisid: null, startPoint: -1, // 多选起点 -1 表示选择 endPoint: -1, // 多选终点 -1 表示未选择 @@ -1034,6 +1036,25 @@ export default { this.qrCode.url = res.data || "https://ccjktj.cn:5081/"; } }); + + // 获取系统参数 -- 身份证排他 + postapi("/api/app/SysParmValue/GetSysParmValueBySysParmId", + { sysParmId: "patient_register_query_idno" } + ).then((res) => { + if (res.code > -1) { + this.patient_register_query_idno = res.data || "Y"; + } + }); + + // 获取系统参数 -- 姓名排他 + postapi("/api/app/SysParmValue/GetSysParmValueBySysParmId", + { sysParmId: "patient_register_query_name" } + ).then((res) => { + if (res.code > -1) { + this.patient_register_query_name = res.data || "N"; + } + }); + }, //挂载完成 @@ -1807,9 +1828,6 @@ export default { if (this.patientRegister.query.sex) body.sexId = this.patientRegister.query.sex; - if (this.patientRegister.query.patientName) - body.patientName = this.patientRegister.query.patientName; - if ( this.patientRegister.query.medicalTypeIds && this.patientRegister.query.medicalTypeIds.length > 0 @@ -1855,26 +1873,28 @@ export default { if (this.patientRegister.query.phone) body.phone = this.patientRegister.query.phone; + // 姓名排他判断 + if (this.patientRegister.query.patientName) { + body.patientName = this.patientRegister.query.patientName; + if(this.patient_register_query_name == 'Y'){ + body = { + patientName: this.patientRegister.query.patientName, + skipCount: this.loadOpts.skipCount, + maxResultCount: this.loadOpts.maxResultCount, + }; + } + } + + // 身份证排他判断 if (this.patientRegister.query.idCardNo) { body.idNo = this.patientRegister.query.idCardNo; - - try { - let sysParmId = "patient_register_query_idno"; - let sysParam = await postapi( - "/api/app/SysParmValue/GetSysParmValueBySysParmId", - { sysParmId } - ); - // console.log('sysParam', sysParam) - if (sysParam.data != "N") { - body = { + if(this.patient_register_query_idno == 'Y'){ + body = { idNo: this.patientRegister.query.idCardNo, skipCount: this.loadOpts.skipCount, maxResultCount: this.loadOpts.maxResultCount, }; - } - } catch (error) { - console.log(error); - } + } } if (this.patientRegister.query.patientNo) @@ -1937,13 +1957,13 @@ export default { this.patientRegister.query.isSeries, this.patientRegister.query.patientRegisterNo ); - if (this.patientRegister.query.isSeries == "Y" && this.patientRegister.query.patientRegisterNo){ + if (this.patientRegister.query.isSeries == "Y" && this.patientRegister.query.patientRegisterNo) { // 如果已经存在列表中,则不在添加 for (let index = curLoad.length - 1; index > -1; index--) { const e = curLoad[index]; - if(arrayExistObj(this.tableData,'id',e.id) > -1) curLoad.splice(index,1) + if (arrayExistObj(this.tableData, 'id', e.id) > -1) curLoad.splice(index, 1) } - }else{ + } else { if (body.skipCount == 0) { //查询 this.tableData = []; diff --git a/src/components/patientRegister/customerOrgTreeAll.vue b/src/components/patientRegister/customerOrgTreeAll.vue index 0aaf911..b0a9273 100644 --- a/src/components/patientRegister/customerOrgTreeAll.vue +++ b/src/components/patientRegister/customerOrgTreeAll.vue @@ -57,6 +57,7 @@ import { mapState } from "vuex"; import { getapi, postapi, putapi, deletapi } from "@/api/api"; import { tcdate, deepCopy, reMadeOrgTree, arrayExistObj } from "../../utlis/proFunc"; +import { filterTreeNode } from "../../utlis/tree"; import { setDBCom, getDBCom } from "../../utlis/indexedDB"; @@ -341,16 +342,19 @@ export default { // return data['displayName'].indexOf(value) > -1 || data['simpleCode'].indexOf(value.toUpperCase()) > -1 || data['shortName'].indexOf(value) > -1 || data['customerOrgCode'].indexOf(value) > -1; let org = [] if (value) { - org = this.customerOrgTreeAll.filter(e => { - return e.label.indexOf(value) > -1 || e.simpleCode.indexOf(value.toUpperCase()) > -1 - }) + // org = this.customerOrgTreeAll.filter(e => { + // return e.label.indexOf(value) > -1 || e.simpleCode.indexOf(value.toUpperCase()) > -1 + // }) + org = filterTreeNode(this.customerOrgTreeAll,"treeChildren",['label','simpleCode'],[value,value.toUpperCase()]) this.customerOrgTreeSeo = org.slice(0, 100) } else { this.customerOrgTreeSeo = this.customerOrgTreeAll.slice(0, 100) } - }, + // 根节点找到,则包含子级点, 子节点找到,则只包含上级节点 + // label: "label", children: "treeChildren", simpleCode + // filterTree(treeData,ChildrenName,keys,value,type) //全树过滤 /* diff --git a/src/components/report/CusOrgOCX.vue b/src/components/report/CusOrgOCX.vue index a3bcaef..cedd05d 100644 --- a/src/components/report/CusOrgOCX.vue +++ b/src/components/report/CusOrgOCX.vue @@ -114,7 +114,7 @@ import moment from "moment"; import { mapState } from "vuex"; import { getapi, postapi, putapi, deletapi } from "@/api/api"; import { arrayExistObj, deepCopy, reMadeOrgTree } from "../../utlis/proFunc"; -import { getTreePids, getTreeAllChildIdsById } from "../../utlis/tree"; +import { getTreePids, getTreeAllChildIdsById,filterTreeNode } from "../../utlis/tree"; import { setDBCom, getDBCom } from "../../utlis/indexedDB"; export default { @@ -203,9 +203,10 @@ export default { // return data['displayName'].indexOf(value) > -1 || data['simpleCode'].indexOf(value.toUpperCase()) > -1 || data['shortName'].indexOf(value) > -1 || data['customerOrgCode'].indexOf(value) > -1; //console.log(this.patientRegister.customerOrgs) if(value){ - let org = this.customerOrgTreeAll.filter(e => { - return e.label.indexOf(value) > -1 || e.simpleCode.indexOf(value.toUpperCase()) > -1 - }) + // let org = this.customerOrgTreeAll.filter(e => { + // return e.label.indexOf(value) > -1 || e.simpleCode.indexOf(value.toUpperCase()) > -1 + // }) + let org = filterTreeNode(this.customerOrgTreeAll,"treeChildren",['label','simpleCode'],[value,value.toUpperCase()]) this.customerOrgTreeSeo = org.slice(0,100) }else{ this.customerOrgTreeSeo = this.customerOrgTreeAll.slice(0,100) diff --git a/src/components/report/PatientRegisterListNobtn.vue b/src/components/report/PatientRegisterListNobtn.vue index 510efab..bc33b99 100644 --- a/src/components/report/PatientRegisterListNobtn.vue +++ b/src/components/report/PatientRegisterListNobtn.vue @@ -3,7 +3,9 @@