13 changed files with 145 additions and 242 deletions
-
2src/components/doctorCheck/ButtonList.vue
-
8src/components/doctorCheck/CheckSumSug.vue
-
2src/components/patientRegister/PatientRegisterItem.vue
-
1src/components/sumDoctorCheck/ButtonList.vue
-
113src/components/sumDoctorCheck/CheckDetails copy.vue
-
92src/components/sumDoctorCheck/CheckDetails.vue
-
19src/components/sumDoctorCheck/SumHistory.vue
-
16src/components/sumDoctorCheck/SumItems.vue
-
10src/components/sumDoctorCheck/SumItemsType.vue
-
2src/components/sumDoctorCheck/SumPREdit.vue
-
10src/components/sumDoctorCheck/SumSug.vue
-
34src/views/doctorCheck/doctorCheck.vue
-
78src/views/doctorCheck/sumDoctorCheck.vue
@ -1,113 +0,0 @@ |
|||
<template> |
|||
<div style="display: flex;"> |
|||
<div style="width:100%;"> |
|||
<el-table :data="tableData" width="800px" height="680" border :row-style="{ height: '40px' }" :show-header="false"> |
|||
<el-table-column prop="itemTypeName" label="科室" > |
|||
<template slot-scope="scope"> |
|||
<div> |
|||
<div>{{ scope.row.itemTypeName }}</div> |
|||
<el-table :data="scope.row.asbitems" border :show-header="false" :row-style="{ height: '40px' }"> |
|||
<el-table-column prop="asbitemName" label="组合项目"> |
|||
</el-table-column> |
|||
<el-table-column label="检查日期与医生"> |
|||
<template slot-scope="scope2"> |
|||
<div>{{ ' 检查日期:' + scope2.row.checkDate + ' 检查医生:' + scope2.row.checkDoctorName }}</div> |
|||
</template> |
|||
</el-table-column> |
|||
</el-table> |
|||
<el-table :data="scope.row.asbitems" border :show-header="false" :row-style="{ height: '40px' }"> |
|||
<el-table-column prop="items" label="明细"> |
|||
<template slot-scope="scope2"> |
|||
<el-table :data="scope2.row.items" border :row-style="{ height: '40px' }"> |
|||
<el-table-column prop="itemName" label="项目"/> |
|||
<el-table-column prop="itemResult" label="结果"/> |
|||
<el-table-column prop="referenceRangeValue" label="参考值"/> |
|||
<el-table-column prop="criticalRangeValue" label="警告参考值"/> |
|||
<el-table-column prop="unit" label="单位"/> |
|||
<el-table-column prop="resultStatusName" label="提示"/> |
|||
</el-table> |
|||
</template> |
|||
</el-table-column> |
|||
</el-table> |
|||
<el-table :data="scope.row.asbitems" border :show-header="false" :row-style="{ height: '40px' }"> |
|||
<el-table-column prop="summarys" label="小结"> |
|||
<template slot-scope="scope2"> |
|||
<div>小结:{{ mergeSummarys(scope2.row.summarys,'summary') }}</div> |
|||
</template> |
|||
</el-table-column> |
|||
</el-table> |
|||
</div> |
|||
</template> |
|||
</el-table-column> |
|||
</el-table> |
|||
</div> |
|||
</div> |
|||
</template> |
|||
<script lang="ts"> |
|||
import { mapState } from 'vuex'; |
|||
import Sortable from "sortablejs"; |
|||
import { getapi, postapi, putapi, deletapi } from "@/api/api"; |
|||
import { arrayExistObj } from '@/utlis/proFunc'; |
|||
export default { |
|||
components: {}, |
|||
data() { |
|||
return { |
|||
tableData:[], |
|||
}; |
|||
}, |
|||
|
|||
created() { }, |
|||
|
|||
//挂载完成 |
|||
mounted() { |
|||
|
|||
}, |
|||
|
|||
computed: { |
|||
...mapState(['dict', 'doctorCheck', 'sumDoctorCheck']), |
|||
}, |
|||
|
|||
methods: { |
|||
//获取结果明细 |
|||
CheckDetails(RegisterId) { |
|||
console.log(`/api/app/sum-summary-report/detailed-results-list/${RegisterId}`) |
|||
getapi(`/api/app/sum-summary-report/detailed-results-list/${RegisterId}`) |
|||
.then((res) => { |
|||
console.log("获取结果明细 CheckDetails", res.data); |
|||
if (res.code != -1) { |
|||
this.tableData = res.data; |
|||
} |
|||
}) |
|||
.catch((err) => { |
|||
this.$message({ type: "error", message: `操作失败,原因:${err}` }); |
|||
}); |
|||
}, |
|||
|
|||
mergeSummarys(array,itemKey){ |
|||
let ret = '' |
|||
array.forEach(e => { |
|||
return ret += ';' + e[itemKey] |
|||
}) |
|||
return ret.substring(1,ret.length) |
|||
} |
|||
}, |
|||
|
|||
//监听事件 |
|||
watch: { |
|||
//检查项目切换 |
|||
"sumDoctorCheck.sumPREdit.id"(newVal, oldVal) { |
|||
console.log("watch sumDoctorCheck.sumPREdit.id newVal:", newVal, " oldVal:", oldVal); |
|||
if (newVal != oldVal && newVal != '') { |
|||
this.CheckDetails(newVal) |
|||
} |
|||
}, |
|||
}, |
|||
}; |
|||
</script> |
|||
<style scoped> |
|||
::v-deep .el-table td.el-table__cell, |
|||
.el-table th.el-table__cell.is-leaf { |
|||
padding: 0; |
|||
} |
|||
</style> |
|||
|
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue