diff --git a/src/components/sumDoctorCheck/CheckDetails.vue b/src/components/sumDoctorCheck/CheckDetails.vue index ba402ce..e5fc1c8 100644 --- a/src/components/sumDoctorCheck/CheckDetails.vue +++ b/src/components/sumDoctorCheck/CheckDetails.vue @@ -2,57 +2,52 @@
- - @@ -63,12 +58,12 @@ import { getapi, postapi, putapi, deletapi } from "@/api/api"; import { arrayExistObj, deepCopy, getColorStr } from '@/utlis/proFunc'; export default { components: {}, - props: ["patientRegisterId","tabChoosed","refParams",], + props: ["patientRegisterId", "tabChoosed", "refParams",], data() { return { tableData: [], - RegisterCheckList:[], - details:[] + RegisterCheckList: [], + details: [] }; }, @@ -87,7 +82,7 @@ export default { switch (this.refParams.place) { case 'summary': //总检处 tableHeight = (this.window.pageHeight < 600 ? 600 : this.window.pageHeight) - 195 - break; + break; default: break; } @@ -101,12 +96,12 @@ export default { CheckDetails(patientRegisterId) { this.tableData = [] this.RegisterCheckList = [] - this.details =[] + this.details = [] - if (!patientRegisterId) { + if (!patientRegisterId) { return } - + //console.log(`/api/app/sumsummaryreport/getdetailedresultslist?PatientRegisterId=${patientRegisterId}`) postapi('/api/app/SumSummaryReport/GetDetailResults', { patientRegisterId }) @@ -133,18 +128,18 @@ export default { let ret = '' array.forEach((e, i) => { //let splitStr = "
" - if (i == 0){ + if (i == 0) { ret = e[itemKey] - }else if (i==1) { - ret = `1.${ret} ${Number(i)+1}.${e[itemKey]}` + } else if (i == 1) { + ret = `1.${ret} ${Number(i) + 1}.${e[itemKey]}` } else { - ret += ` ${Number(i)+1}.${e[itemKey]}` - } + ret += ` ${Number(i) + 1}.${e[itemKey]}` + } }) return ret }, - rowClick(row){ + rowClick(row) { this.details = row } }, @@ -157,12 +152,12 @@ export default { handler(newVal, oldVal) { console.log(`watch 总检--检查明细结果 newVal: ${newVal}, oldVal: ${oldVal} patientRegisterId: ${this.dataTransOpts.tableS.patient_register.id}`); //&& this.tabChoosed == '2' - if(newVal != oldVal){ - if(this.refParams.place == 'doctor'){ + if (newVal != oldVal) { + if (this.refParams.place == 'doctor') { this.CheckDetails(this.dataTransOpts.tableS.patient_register.id); - }else{ - if(this.tabChoosed == '2') this.CheckDetails(this.dataTransOpts.tableS.patient_register.id); - } + } else { + if (this.tabChoosed == '2') this.CheckDetails(this.dataTransOpts.tableS.patient_register.id); + } } } }, @@ -179,5 +174,4 @@ export default { .el-table th.el-table__cell.is-leaf { padding: 0; } - - \ No newline at end of file + \ No newline at end of file diff --git a/src/components/sumDoctorCheck/SumItems.vue b/src/components/sumDoctorCheck/SumItems.vue index f6f6659..c34daa2 100644 --- a/src/components/sumDoctorCheck/SumItems.vue +++ b/src/components/sumDoctorCheck/SumItems.vue @@ -12,7 +12,7 @@
-
+