|
|
|
@ -2,57 +2,52 @@ |
|
|
|
<div style="display: flex;width:100%;"> |
|
|
|
<div style="width:180;"> |
|
|
|
<el-table :data="RegisterCheckList" width="180" :height="divHeight" border highlight-current-row |
|
|
|
@row-click="rowClick" ref="registerCheckList" > |
|
|
|
<el-table-column prop="asbitemNames" label="组合项目" width="180"> |
|
|
|
<template slot="header"> |
|
|
|
<div style="width: 180px;background-color: #f4f8ff;">组合项目</div> |
|
|
|
@row-click="rowClick" ref="registerCheckList"> |
|
|
|
<el-table-column prop="asbitemNames" label="组合项目" width="180"> |
|
|
|
<template slot="header"> |
|
|
|
<div style="width: 180px;background-color: #f4f8ff;">组合项目</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
</div> |
|
|
|
<div :style="`padding-left:10px;width:${(window.pageWidth - 180 - 110 - 25)}px;`"> |
|
|
|
<table width="100%" style="font-size:14px;"> |
|
|
|
<tbody v-for="(item, index) of tableData" :key="index"> |
|
|
|
<tr height="30"> |
|
|
|
<td style="text-align: center;font-weight: bolder;">{{ item.itemTypeName }}</td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<table width="100%" border="1" |
|
|
|
cellspacing="0" bordercolor="#909399" style="border-collapse:collapse;"> |
|
|
|
<tr height="24" > |
|
|
|
<td width="200" class="tdCellClass">{{ details.asbitemNames }}</td> |
|
|
|
<td width="604" class="tdCellClass" colspan="7">{{ '检查日期:' + details.checkDate.substring(0, 10) + ' 检查医生:' + details.checkDoctorName |
|
|
|
}}</td> |
|
|
|
</tr> |
|
|
|
|
|
|
|
<tr style="text-align: center;" height="24"> |
|
|
|
<td width="200">项目</td> |
|
|
|
<td width="270">本次结果</td> |
|
|
|
<td width="270">上次结果</td> |
|
|
|
<td width="270">上上次结果</td> |
|
|
|
<td width="100">参考值</td> |
|
|
|
<td width="100">警告参考值</td> |
|
|
|
<td width="80">单位</td> |
|
|
|
<td width="50">提示</td> |
|
|
|
</tr> |
|
|
|
<tr height="24" v-for="(item3, index) in details.items" :key="index"> |
|
|
|
<td class="tdCellClass">{{ item3.itemName }}</td> |
|
|
|
<td :style="`color: ${getColorStr(item3.reportFontColor)};`" class="tdCellClass">{{ item3.itemResult }}</td> |
|
|
|
<td :style="`color: ${getColorStr(item3.previousReportFontColor)};`" class="tdCellClass">{{ item3.previousItemResult }}</td> |
|
|
|
<td :style="`color: ${getColorStr(item3.previousTwoReportFontColor)};`" class="tdCellClass">{{ item3.previousTwoItemResult }}</td> |
|
|
|
<td align="center" class="tdCellClass">{{ item3.referenceRangeValue }}</td> |
|
|
|
<td align="center" class="tdCellClass">{{ item3.criticalRangeValue }}</td> |
|
|
|
<td align="center" class="tdCellClass">{{ item3.unit }}</td> |
|
|
|
<td align="center" class="tdCellClass">{{ item3.resultStatusName }}</td> |
|
|
|
</tr> |
|
|
|
|
|
|
|
<tr height="24"> |
|
|
|
<td colspan="8" class="tdCellClass" v-html="`小结:${mergeSummarys(details.summarys, 'summary')}`"></td> |
|
|
|
</tr> |
|
|
|
</table> |
|
|
|
</tr> |
|
|
|
</tbody> |
|
|
|
<div :style="`overflow: scroll;padding-left:10px;width:${(window.pageWidth - 180 - 110 - 25)}px;height:${divHeight}px;`"> |
|
|
|
<table width="100%" border="1" cellspacing="0" bordercolor="#909399" |
|
|
|
style="font-size:14px;border-collapse:collapse;"> |
|
|
|
<tr height="24"> |
|
|
|
<td width="200" class="tdCellClass">{{ details.asbitemNames }}</td> |
|
|
|
<td width="604" class="tdCellClass" colspan="7">{{ '检查日期:' + details.checkDate.substring(0, 10) + ' 检查医生:' + |
|
|
|
details.checkDoctorName |
|
|
|
}}</td> |
|
|
|
</tr> |
|
|
|
|
|
|
|
<tr style="text-align: center;" height="24"> |
|
|
|
<td width="200">项目</td> |
|
|
|
<td width="270">本次结果</td> |
|
|
|
<td width="270">上次结果</td> |
|
|
|
<td width="270">上上次结果</td> |
|
|
|
<td width="100">参考值</td> |
|
|
|
<td width="100">警告参考值</td> |
|
|
|
<td width="80">单位</td> |
|
|
|
<td width="50">提示</td> |
|
|
|
</tr> |
|
|
|
<tr height="24" v-for="(item3, index) in details.items" :key="index"> |
|
|
|
<td class="tdCellClass">{{ item3.itemName }}</td> |
|
|
|
<td :style="`color: ${getColorStr(item3.reportFontColor)};`" class="tdCellClass">{{ item3.itemResult }}</td> |
|
|
|
<td :style="`color: ${getColorStr(item3.previousReportFontColor)};`" class="tdCellClass">{{ |
|
|
|
item3.previousItemResult }}</td> |
|
|
|
<td :style="`color: ${getColorStr(item3.previousTwoReportFontColor)};`" class="tdCellClass">{{ |
|
|
|
item3.previousTwoItemResult }}</td> |
|
|
|
<td align="center" class="tdCellClass">{{ item3.referenceRangeValue }}</td> |
|
|
|
<td align="center" class="tdCellClass">{{ item3.criticalRangeValue }}</td> |
|
|
|
<td align="center" class="tdCellClass">{{ item3.unit }}</td> |
|
|
|
<td align="center" class="tdCellClass">{{ item3.resultStatusName }}</td> |
|
|
|
</tr> |
|
|
|
|
|
|
|
<tr height="24"> |
|
|
|
<td colspan="8" class="tdCellClass" v-html="`小结:${mergeSummarys(details.summarys, 'summary')}`"></td> |
|
|
|
</tr> |
|
|
|
</table> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
@ -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 = "<br>" |
|
|
|
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; |
|
|
|
} |
|
|
|
</style> |
|
|
|
|
|
|
|
</style> |