diff --git a/src/assets/css/global.css b/src/assets/css/global.css index a281251..b847969 100644 --- a/src/assets/css/global.css +++ b/src/assets/css/global.css @@ -147,7 +147,6 @@ /* el-cascader 隐藏前面的radio并点击行选中 */ - .example .el-cascader-panel .el-radio { width: 100%; height: 100%; diff --git a/src/components/patientRegister/PatientRegisterEdit.vue b/src/components/patientRegister/PatientRegisterEdit.vue index 89b94d2..dfa2ec9 100644 --- a/src/components/patientRegister/PatientRegisterEdit.vue +++ b/src/components/patientRegister/PatientRegisterEdit.vue @@ -587,7 +587,7 @@ :append-to-body="true">
@@ -1197,20 +1197,22 @@ export default { customerOrgParentId = v[0] } else { customerOrgId = v // 后台顶级单位ID未获取正确(再获取一次) - let pids = getTreePids(this.patientRegister.customerOrgTreeAll, "treeChildren", "parentId", "id", customerOrgId) - if (Array.isArray(pids) && pids.length > 0) { - if (pids.length == 1) { - customerOrgParentId = customerOrgId - } else { - customerOrgParentId = pids[1] - } - } + customerOrgParentId = await this.getParentCustomerOrgId(customerOrgId) + // let pids = getTreePids(this.patientRegister.customerOrgTreeAll, "treeChildren", "parentId", "id", customerOrgId) + // if (Array.isArray(pids) && pids.length > 0) { + // if (pids.length == 1) { + // customerOrgParentId = customerOrgId + // } else { + // customerOrgParentId = pids[1] + // } + // } } this.preCustomerOrgId = customerOrgId - // let customerOrgParentId = await this.getParentCustomerOrgId(customerOrgId) + if (customerOrgParentId) { if (customerOrgParentId == this.dict.personOrgId) { + // 个人体检则 固定单位体检次数 this.form.customerOrgRegisterId = "00000000-0000-0000-0000-000000000001" } else { // 获取体检次数字典库 diff --git a/src/components/report/NationHealthReport.vue b/src/components/report/NationHealthReport.vue new file mode 100644 index 0000000..c5c3761 --- /dev/null +++ b/src/components/report/NationHealthReport.vue @@ -0,0 +1,250 @@ + + + diff --git a/src/router/index.js b/src/router/index.js index 194fb01..2336e3b 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -457,6 +457,12 @@ const routes = [{ component: () => import ("../views/report/report.vue"), }, + { + path: "/NationHealthReport", + name: "上报国家平台数据", + component: () => + import ("../components/report/NationHealthReport.vue"), + }, { path: "/checkStatus", name: "组合项目检查状态", diff --git a/src/views/customerOrg/patientRegisterImport.vue b/src/views/customerOrg/patientRegisterImport.vue index 54563d8..016c36e 100644 --- a/src/views/customerOrg/patientRegisterImport.vue +++ b/src/views/customerOrg/patientRegisterImport.vue @@ -174,7 +174,7 @@
体检单位: - @@ -265,7 +265,7 @@
体检单位: - @@ -452,7 +452,7 @@ 新单位或部门
- @@ -521,6 +521,7 @@ export default { privs: [] // 页面权限 }, customerOrgTree: [], + customerOrgTreeFilter: [], customerOrgIds: [], //选中单位节点 customerOrgRegisterList: [], //体检次数列表 customerOrgRegister: {}, //体检次数 @@ -723,17 +724,25 @@ export default { getapi("/api/app/customerorg/getbycodeall?IsHidePerson=1").then((res) => { // console.log("res.data", res.data); if (res.code != -1) { - this.customerOrgTree = res.data; + this.customerOrgTree = res.data; let lfind = arrayExistObj(this.customerOrgTree, 'id', this.dict.personOrgId) if (lfind > -1) this.customerOrgTree.splice(lfind, 1) tcdate(this.customerOrgTree) + this.customerOrgTreeFilter = deepCopy(this.customerOrgTree) } }); }, //单位过滤 预留 - filterMethod() { - + filterMethod(v) { + if (v) { + let lv = v.toUpperCase() + this.customerOrgTreeFilter = this.customerOrgTree.filter(e => { + return e.displayName.indexOf(lv) > -1 || e.simpleCode.indexOf(lv) > -1 + }) + } else { + this.customerOrgTreeFilter = deepCopy(this.customerOrgTree) + } }, //选择单位