pengjun 3 months ago
parent
commit
0ce8fb35ba
  1. 35
      src/components/sumDoctorCheck/CheckDetails.vue

35
src/components/sumDoctorCheck/CheckDetails.vue

@ -55,6 +55,11 @@
<template slot="header"> <template slot="header">
<div style="width: 180px;background-color: #f4f8ff;">组合项目</div> <div style="width: 180px;background-color: #f4f8ff;">组合项目</div>
</template> </template>
<template slot-scope="scope">
<div :style="`padding: 0 5px;color: ${setCheckStatusColor(scope.row.completeFlag)};`">
{{ scope.row.asbitemNames }}
</div>
</template>
</el-table-column> </el-table-column>
</el-table> </el-table>
</div> </div>
@ -105,8 +110,8 @@
import { mapState } from 'vuex'; import { mapState } from 'vuex';
import Sortable from "sortablejs"; import Sortable from "sortablejs";
import { getapi, postapi, putapi, deletapi } from "@/api/api"; import { getapi, postapi, putapi, deletapi } from "@/api/api";
import { arrayExistObj, deepCopy, getColorStr } from '@/utlis/proFunc';
import g from 'file-saver';
import { arrayExistObj, deepCopy, getColorStr, setCheckStatusColor } from '@/utlis/proFunc';
export default { export default {
components: {}, components: {},
props: ["patientRegisterId", "tabChoosed", "refParams",], props: ["patientRegisterId", "tabChoosed", "refParams",],
@ -152,7 +157,7 @@ export default {
}, },
methods: { methods: {
getColorStr,
getColorStr,setCheckStatusColor,
// //
CheckDetails(patientRegisterId) { CheckDetails(patientRegisterId) {
this.tableData = [] this.tableData = []
@ -186,28 +191,28 @@ export default {
}, },
// //
getCheckDisp(details){
getCheckDisp(details) {
let ret = '' let ret = ''
if(details.checkDate && details.checkDoctorName){
if (details.checkDate && details.checkDoctorName) {
ret = '检 查 日 期 : ' + details?.checkDate.substring(0, 10) + ' 检查医生:' + details.checkDoctorName ret = '检 查 日 期 : ' + details?.checkDate.substring(0, 10) + ' 检查医生:' + details.checkDoctorName
} }
if(details.previousCheckDate && details.previousCheckDoctorName){
if(ret){
if (details.previousCheckDate && details.previousCheckDoctorName) {
if (ret) {
ret += '\n上 次 日 期 : ' + details?.previousCheckDate.substring(0, 10) + ' 检查医生:' + details.previousCheckDoctorName ret += '\n上 次 日 期 : ' + details?.previousCheckDate.substring(0, 10) + ' 检查医生:' + details.previousCheckDoctorName
}else{
} else {
ret = '上 次 日 期 : ' + details?.previousCheckDate.substring(0, 10) + ' 检查医生:' + details.previousCheckDoctorName ret = '上 次 日 期 : ' + details?.previousCheckDate.substring(0, 10) + ' 检查医生:' + details.previousCheckDoctorName
}
}
} }
if(details.previousTwoCheckDate && details.previousTwoCheckDoctorName){
if(ret){
if (details.previousTwoCheckDate && details.previousTwoCheckDoctorName) {
if (ret) {
ret += '\n上上次日期: ' + details?.previousTwoCheckDate.substring(0, 10) + ' 检查医生:' + details.previousTwoCheckDoctorName ret += '\n上上次日期: ' + details?.previousTwoCheckDate.substring(0, 10) + ' 检查医生:' + details.previousTwoCheckDoctorName
}else{
} else {
ret = '上上次日期: ' + details?.previousTwoCheckDate.substring(0, 10) + ' 检查医生:' + details.previousTwoCheckDoctorName ret = '上上次日期: ' + details?.previousTwoCheckDate.substring(0, 10) + ' 检查医生:' + details.previousTwoCheckDoctorName
}
}
} }
return ret
return ret
}, },
mergeSummarys(array, itemKey) { mergeSummarys(array, itemKey) {
let ret = '' let ret = ''

Loading…
Cancel
Save