From b2c2030821a5b546474467596869b5627be19e86 Mon Sep 17 00:00:00 2001 From: pengjun <158915633@qq.com> Date: Wed, 5 Jun 2024 23:38:33 +0800 Subject: [PATCH] seo --- src/components/common/LocalConfig.vue | 8 +- .../customerOrg/customerOrgEdit.vue | 8 +- .../customerOrg/customerOrgTree.vue | 65 +- .../PatientRegisterEditBak210604.vue | 2240 ----------------- .../patientRegister/customerOrgTreeAll.vue | 27 +- src/components/report/CusOrgOCX.vue | 2 +- src/utlis/proFunc.js | 8 +- 7 files changed, 75 insertions(+), 2283 deletions(-) delete mode 100644 src/components/patientRegister/PatientRegisterEditBak210604.vue diff --git a/src/components/common/LocalConfig.vue b/src/components/common/LocalConfig.vue index e8f9b7b..6583abc 100644 --- a/src/components/common/LocalConfig.vue +++ b/src/components/common/LocalConfig.vue @@ -49,11 +49,16 @@ - + + + + + + @@ -108,6 +113,7 @@ export default { immediateToHisCharge: true, // 人员登记保存后,立即发送收费申请 findPatientByName:true, // 人员登记,启有人名查询 printGuideLabel: ["guide", "pacs", "lis"], // 保存后打印指引单与条码 + dispCustomerOrgCode:'N', // 人员登记列表--单位树是否显示 customerOrgCode }, lisLabel: { // 检验条码打印 MarginTop: 56, // diff --git a/src/components/customerOrg/customerOrgEdit.vue b/src/components/customerOrg/customerOrgEdit.vue index 6e6f59f..5043450 100644 --- a/src/components/customerOrg/customerOrgEdit.vue +++ b/src/components/customerOrg/customerOrgEdit.vue @@ -20,8 +20,8 @@ - - + @@ -344,7 +344,7 @@ export default { let node = { id: body.id, displayName: body.displayName, - label:(body.shortName ? body.shortName + '--':'') + body.displayName, + label:(body.customerOrgCode ? body.customerOrgCode + ' ':'') + body.displayName, parentId: body.parentId, }; @@ -380,7 +380,7 @@ export default { body.id ); node2.displayName = body.displayName; - node2.label = (body.shortName ? body.shortName + '--':'') + body.displayName + node2.label = (body.customerOrgCode ? body.customerOrgCode + ' ':'') + body.displayName break; case "delete": diff --git a/src/components/customerOrg/customerOrgTree.vue b/src/components/customerOrg/customerOrgTree.vue index 90c4523..4ea43f0 100644 --- a/src/components/customerOrg/customerOrgTree.vue +++ b/src/components/customerOrg/customerOrgTree.vue @@ -1,21 +1,20 @@ - + - - - + + - {{ node.label }} + {{ node.label }} @@ -26,16 +25,16 @@ diff --git a/src/components/patientRegister/PatientRegisterEditBak210604.vue b/src/components/patientRegister/PatientRegisterEditBak210604.vue deleted file mode 100644 index 00e1083..0000000 --- a/src/components/patientRegister/PatientRegisterEditBak210604.vue +++ /dev/null @@ -1,2240 +0,0 @@ - - - - - - - - - - - - - 职业病 - - - 读身份证 - - - 拍照 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 加载中... - - - - - - - - - - - - 新增 - - - 复制新增 - - - - 保存 - - - - 检验单申请 - - - - 条码打印 - - - 条码补打 - - - 指引单打印 - - - - 条码合并 - - - 手动合并项目 - - - - 全个人支付 - - - 全单位支付 - - - 全免费 - - - 收费 - - - 收费申请 - - - - - - - - - - - - - - - - {{ moment(scope.row.lastTime).format("yyyy-MM-DD") }} - - - - - - - - - {{ dddw(dict.sex, "id", scope.row.sexId, "displayName") }} - - - - - - - {{ dddw(dict.maritalStatus, "id", scope.row.maritalStatusId, "displayName") }} - - - - - - - {{ moment(scope.row.birthDate).format("yyyy-MM-DD") }} - - - - - - - {{ dddw(dict.nation, "id", scope.row.nationId, "displayName") }} - - - - - - - - - 取消 - 确定 - - - - - - - - - - - - - - 确定 - 关闭 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/components/patientRegister/customerOrgTreeAll.vue b/src/components/patientRegister/customerOrgTreeAll.vue index f8ac95d..e300863 100644 --- a/src/components/patientRegister/customerOrgTreeAll.vue +++ b/src/components/patientRegister/customerOrgTreeAll.vue @@ -40,6 +40,11 @@ export default { id: "id", children: "treeChildren", }, //树形组件的数据结构 + LocalConfig: { + patientRegister: { + dispCustomerOrgCode:'N', // 人员登记列表--单位树是否显示 customerOrgCode + } + } }; }, // @@ -47,7 +52,16 @@ export default { ...mapState(["window", "dict","dataTransOpts","customerOrg", "patientRegister"]), }, //创建组件后 - created() { }, + created() { + try { + let LocalConfig = JSON.parse(window.localStorage.getItem('LocalConfig')) + if (LocalConfig && LocalConfig.patientRegister) { + if (LocalConfig.patientRegister.dispCustomerOrgCode) this.LocalConfig.patientRegister.dispCustomerOrgCode = LocalConfig.patientRegister.dispCustomerOrgCode + } + } catch (error) { + console.log("window.localStorage.getItem('LocalConfig')", error) + } + }, //挂载组件完成 mounted() { @@ -61,10 +75,9 @@ export default { getapi("/api/app/customerorg/getbycodeall").then((res) => { // console.log("res.data", res.data); if (res.code > -1){ - this.patientRegister.customerOrgTreeAll = reMadeOrgTree(deepCopy(res.data)); + this.patientRegister.customerOrgTreeAll = reMadeOrgTree(deepCopy(res.data),this.LocalConfig.patientRegister.dispCustomerOrgCode); // tcdate(this.patientRegister.customerOrgTreeAll) - } - + } }); }, @@ -86,9 +99,11 @@ export default { filterNode(value, data) { //console.log(value,data) if (!value) return true; - return data['displayName'].indexOf(value) !== -1 || data['simpleCode'].indexOf(value.toUpperCase()) !== -1; + return data['displayName'].indexOf(value) > -1 || data['simpleCode'].indexOf(value.toUpperCase()) > -1 + || data['shortName'].indexOf(value.toUpperCase()) > -1 || data['customerOrgCode'].indexOf(value.toUpperCase()) > -1 + ; }, - + //点击树节点 treeclick(data) { // console.log('data',data) diff --git a/src/components/report/CusOrgOCX.vue b/src/components/report/CusOrgOCX.vue index 1f6b59a..55ddda6 100644 --- a/src/components/report/CusOrgOCX.vue +++ b/src/components/report/CusOrgOCX.vue @@ -134,7 +134,7 @@ export default { customerOrgGroupList: [], //可选的分组 }], treeprops: { - label: "label", + label: "displayName", // label/displayName value: "id", id: "id", children: "treeChildren", diff --git a/src/utlis/proFunc.js b/src/utlis/proFunc.js index ffdcc32..67d4178 100644 --- a/src/utlis/proFunc.js +++ b/src/utlis/proFunc.js @@ -12,9 +12,13 @@ function tcdate(date) { exports.tcdate = tcdate; // 单位树节点,重新组装 -function reMadeOrgTree(treeData){ +function reMadeOrgTree(treeData,dispCustomerOrgCode){ treeData.forEach(e => { - e.label = (e.shortName ? e.shortName + '--':'') + e.displayName + if(dispCustomerOrgCode == 'Y'){ + e.label = (e.customerOrgCode ? e.customerOrgCode + '--':'') + e.displayName + }else{ + e.label = e.displayName + } if (e.treeChildren.length == 0) { delete e.treeChildren }else{