|
|
|
@ -3,30 +3,17 @@ |
|
|
|
<div style="width:180;"> |
|
|
|
<!-- :row-class-name="tableRowClassName" --> |
|
|
|
<el-table :data="RegisterCheckList" width="180" :height="divHeight" border highlight-current-row |
|
|
|
@row-click="rowClick" ref="registerCheckList"> |
|
|
|
<el-table-column prop="asbitemName" label="组合项目" width="180"> |
|
|
|
<!-- |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div> |
|
|
|
<el-tooltip class="item" effect="dark" content="未检" placement="top"> |
|
|
|
<i v-show="scope.row.completeFlag == '0'" class="el-icon-circle-plus" |
|
|
|
style="font-size: 18px;color: red;" /> |
|
|
|
</el-tooltip> |
|
|
|
<el-tooltip class="item" effect="dark" content="已检" placement="top"> |
|
|
|
<i v-show="scope.row.completeFlag == '1'" class="el-icon-success" style="font-size: 18px;color: green;" /> |
|
|
|
</el-tooltip> |
|
|
|
<el-tooltip class="item" effect="dark" content="弃检" placement="top"> |
|
|
|
<i v-show="scope.row.completeFlag == '2'" class="el-icon-remove" style="font-size: 18px;" /> |
|
|
|
</el-tooltip> |
|
|
|
|
|
|
|
{{ scope.row.asbitemName }} |
|
|
|
</div> |
|
|
|
@row-click="rowClick" ref="registerCheckList" > |
|
|
|
<el-table-column prop="asbitemName" label="组合项目" width="180"> |
|
|
|
<template slot="header"> |
|
|
|
<div style="width: 180px;background-color: #f4f8ff;">组合项目</div> |
|
|
|
</template> |
|
|
|
--> |
|
|
|
|
|
|
|
|
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
</div> |
|
|
|
<div :style="'width:' + (window.pageWidth - 180 - 110 - 15) + 'px;'"> |
|
|
|
<div :style="`width:${(window.pageWidth - 180 - 110 - 15)}px;`"> |
|
|
|
<!-- |
|
|
|
<el-table :data="tableData" :height="divHeight" border highlight-current-row> |
|
|
|
<el-table-column prop="itemName" label="项目" width="150" /> |
|
|
|
@ -40,7 +27,7 @@ |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
--> |
|
|
|
<table width="100%" style="font-size:14px;text-align: center;border-collapse:collapse;" border="1" cellspacing="0" |
|
|
|
<table width="100%" style="margin-left: 10px;font-size:14px;text-align: center;border-collapse:collapse;" border="1" cellspacing="0" |
|
|
|
bordercolor="#909399"> |
|
|
|
<colgroup> |
|
|
|
<col width="150"> |
|
|
|
@ -58,11 +45,11 @@ |
|
|
|
</thead> |
|
|
|
<tbody v-for="(item, index) of tableData" :key="index"> |
|
|
|
<tr height="30"> |
|
|
|
<td class="tdCellClass" style="text-align: left;font-weight: bolder;">{{ item.itemName }}</td> |
|
|
|
<td class="tdCellClass" style="text-align: left;">{{ item.itemName }}</td> |
|
|
|
<td class="tdCellClass">{{ item.unitName }}</td> |
|
|
|
<td class="tdCellClass">{{ item.referenceRangeValue }}</td> |
|
|
|
<td class="tdCellClass" v-for="(item2, index2) of tableCols" :key="index2" |
|
|
|
:style="`color: ${getColorStr(item[item2 + '_color'])};`" v-html="item[item2]"></td> |
|
|
|
:style="`color: ${item.unitName == '小结' ? '#000000': getColorStr(item[item2 + '_color'])};`" v-html="item[item2]"></td> |
|
|
|
</tr> |
|
|
|
</tbody> |
|
|
|
</table> |
|
|
|
@ -77,7 +64,7 @@ import { getapi, postapi, putapi, deletapi } from "@/api/api"; |
|
|
|
import { arrayExistObj, getColorStr } from '@/utlis/proFunc'; |
|
|
|
export default { |
|
|
|
components: {}, |
|
|
|
props: ["patientId","tabChoosed"], |
|
|
|
props: ["patientId", "tabChoosed"], |
|
|
|
data() { |
|
|
|
return { |
|
|
|
RegisterCheckList: [], |
|
|
|
@ -239,7 +226,7 @@ export default { |
|
|
|
// immediate:true, |
|
|
|
handler(newVal, oldVal) { |
|
|
|
console.log(`watch 总检--横向对比 newVal: ${newVal}, oldVal: ${oldVal} patientId: ${this.patientId} tabChoosed: ${this.tabChoosed}`); |
|
|
|
if(newVal != oldVal && this.tabChoosed == '5') this.registerCheckList(this.patientId) |
|
|
|
if (newVal != oldVal && this.tabChoosed == '5') this.registerCheckList(this.patientId) |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
@ -251,5 +238,8 @@ export default { |
|
|
|
.tdCellClass { |
|
|
|
padding: 0 5px; |
|
|
|
} |
|
|
|
::v-deep .el-table tr { |
|
|
|
background-color: #f4f8ff; |
|
|
|
} |
|
|
|
</style> |
|
|
|
|