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

27
src/components/sumDoctorCheck/CheckDetails.vue

@ -55,6 +55,11 @@
<template slot="header">
<div style="width: 180px;background-color: #f4f8ff;">组合项目</div>
</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>
</div>
@ -105,8 +110,8 @@
import { mapState } from 'vuex';
import Sortable from "sortablejs";
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 {
components: {},
props: ["patientRegisterId", "tabChoosed", "refParams",],
@ -152,7 +157,7 @@ export default {
},
methods: {
getColorStr,
getColorStr,setCheckStatusColor,
//
CheckDetails(patientRegisterId) {
this.tableData = []
@ -186,22 +191,22 @@ export default {
},
//
getCheckDisp(details){
getCheckDisp(details) {
let ret = ''
if(details.checkDate && details.checkDoctorName){
if (details.checkDate && 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
}else{
} else {
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
}else{
} else {
ret = '上上次日期: ' + details?.previousTwoCheckDate.substring(0, 10) + ' 检查医生:' + details.previousTwoCheckDoctorName
}
}

Loading…
Cancel
Save