|
@@ -23,18 +23,24 @@ const { loading, send: getDetail } = useRequest(EvaluateDetailMethod, {
|
|
|
immediate: false,
|
|
immediate: false,
|
|
|
initialData: props.data ?? defaultModel,
|
|
initialData: props.data ?? defaultModel,
|
|
|
}).onSuccess(({ data }) => {
|
|
}).onSuccess(({ data }) => {
|
|
|
|
|
+ let medicalObj = {
|
|
|
|
|
+ arrangeTime: data?.medicalTime,
|
|
|
|
|
+ tonguefaceAnalysisReport: data?.tonguefaceAnalysisReport,
|
|
|
|
|
+ };
|
|
|
|
|
+ data.tasks.unshift(medicalObj);
|
|
|
|
|
+ console.log(data.tasks, '666');
|
|
|
const tasks = data.tasks.map((item) => {
|
|
const tasks = data.tasks.map((item) => {
|
|
|
let obj = {
|
|
let obj = {
|
|
|
date: item.fillinTime || item.arrangeTime,
|
|
date: item.fillinTime || item.arrangeTime,
|
|
|
- k3: item.analysis.tongue.pictures[0],
|
|
|
|
|
- k4: item.analysis.tongue.pictures[1],
|
|
|
|
|
- k5: item.analysis.face.pictures[0],
|
|
|
|
|
|
|
+ k3: item?.analysis?.tongue.pictures[0],
|
|
|
|
|
+ k4: item?.analysis?.tongue.pictures[1],
|
|
|
|
|
+ k5: item?.analysis?.face.pictures[0],
|
|
|
};
|
|
};
|
|
|
- item.analysis.tongue.analysis.forEach((analysis) => {
|
|
|
|
|
- obj[analysis.subcategory] = analysis.resultValue;
|
|
|
|
|
|
|
+ item?.analysis?.tongue?.analysis.forEach((analysis) => {
|
|
|
|
|
+ obj[analysis?.subcategory] = analysis.resultValue;
|
|
|
});
|
|
});
|
|
|
- item.analysis.face.analysis.forEach((analysis) => {
|
|
|
|
|
- obj[analysis.subcategory] = analysis.resultValue;
|
|
|
|
|
|
|
+ item.analysis?.face?.analysis.forEach((analysis) => {
|
|
|
|
|
+ obj[analysis?.subcategory] = analysis?.resultValue;
|
|
|
});
|
|
});
|
|
|
return obj;
|
|
return obj;
|
|
|
});
|
|
});
|
|
@@ -57,10 +63,12 @@ const { loading: submitting, send: submit } = useRequest(tagEditMethod, {
|
|
|
const gridOptions = reactive<VxeGridProps<FormModel>>({
|
|
const gridOptions = reactive<VxeGridProps<FormModel>>({
|
|
|
border: true,
|
|
border: true,
|
|
|
showOverflow: true,
|
|
showOverflow: true,
|
|
|
- width: 900,
|
|
|
|
|
height: 780,
|
|
height: 780,
|
|
|
showHeader: false,
|
|
showHeader: false,
|
|
|
columns: [{ field: 'title', title: '-', slots: { default: 'cell' } }],
|
|
columns: [{ field: 'title', title: '-', slots: { default: 'cell' } }],
|
|
|
|
|
+ // columnConfig:{
|
|
|
|
|
+ // width:'auto'
|
|
|
|
|
+ // },
|
|
|
data: [
|
|
data: [
|
|
|
{ title: '日期', key: 'date', col0: '-' },
|
|
{ title: '日期', key: 'date', col0: '-' },
|
|
|
{ title: '好转', key: 'k1' },
|
|
{ title: '好转', key: 'k1' },
|
|
@@ -70,8 +78,12 @@ const gridOptions = reactive<VxeGridProps<FormModel>>({
|
|
|
{ title: '面部', key: 'k5' },
|
|
{ title: '面部', key: 'k5' },
|
|
|
],
|
|
],
|
|
|
cellStyle({ row, rowIndex, column, columnIndex }) {
|
|
cellStyle({ row, rowIndex, column, columnIndex }) {
|
|
|
|
|
+ // console.log('rowIndex:',rowIndex,'columnIndex',columnIndex);
|
|
|
const value = row[column.field];
|
|
const value = row[column.field];
|
|
|
const style = {};
|
|
const style = {};
|
|
|
|
|
+ if (columnIndex === 1) {
|
|
|
|
|
+ style.width = '100px';
|
|
|
|
|
+ }
|
|
|
if (value?.includes('(') && value?.includes(')')) {
|
|
if (value?.includes('(') && value?.includes(')')) {
|
|
|
style.color = 'red';
|
|
style.color = 'red';
|
|
|
}
|
|
}
|
|
@@ -177,7 +189,7 @@ function subEvalation() {
|
|
|
class="border-r border-r-2 border-r-gray-300 border-r-solid pr-6 flex align--center justify-center"
|
|
class="border-r border-r-2 border-r-gray-300 border-r-solid pr-6 flex align--center justify-center"
|
|
|
>
|
|
>
|
|
|
<div class="mr-2 font-bold" style="font-size: 14px">基本信息</div>
|
|
<div class="mr-2 font-bold" style="font-size: 14px">基本信息</div>
|
|
|
- <div class="mr-3">{{ props.data.createTime }}</div>
|
|
|
|
|
|
|
+ <div class="mr-3">{{ props.data.medicalTime }}</div>
|
|
|
<span class="mr-3">{{ props.data.patientName }}</span>
|
|
<span class="mr-3">{{ props.data.patientName }}</span>
|
|
|
<span class="mr-3"> {{ props.data.sex === '1' ? '男' : '女' }}</span>
|
|
<span class="mr-3"> {{ props.data.sex === '1' ? '男' : '女' }}</span>
|
|
|
<span> {{ props.data.age }}岁</span>
|
|
<span> {{ props.data.age }}岁</span>
|
|
@@ -185,10 +197,10 @@ function subEvalation() {
|
|
|
<div class="border-r border-r-2 border-r-gray-300 border-r-solid pr-6 pl-6">
|
|
<div class="border-r border-r-2 border-r-gray-300 border-r-solid pr-6 pl-6">
|
|
|
诊断:{{ props.data.diagnosis }}
|
|
诊断:{{ props.data.diagnosis }}
|
|
|
</div>
|
|
</div>
|
|
|
- <div class="pl-6">症状:{{ props.data?.syndrome }}</div>
|
|
|
|
|
|
|
+ <div class="pl-6">症状:{{ props.data?.syndromeList.join(',') }}</div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
- <vxe-grid class="reverse-table ssss" v-bind="gridOptions">
|
|
|
|
|
|
|
+ <vxe-grid class="reverse-table detail" v-bind="gridOptions">
|
|
|
<template #cell="{ row, rowIndex, column, columnIndex }">
|
|
<template #cell="{ row, rowIndex, column, columnIndex }">
|
|
|
<a-image
|
|
<a-image
|
|
|
style="height: 100px"
|
|
style="height: 100px"
|
|
@@ -207,6 +219,9 @@ function subEvalation() {
|
|
|
对比
|
|
对比
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+ <span v-else-if="row[column.field] == props.data.medicalTime" style="color: red"
|
|
|
|
|
+ >{{ row[column.field] }}(就诊日) </span
|
|
|
|
|
+ >
|
|
|
<template v-else>{{ row[column.field] }}</template>
|
|
<template v-else>{{ row[column.field] }}</template>
|
|
|
</template>
|
|
</template>
|
|
|
<!-- 已经评估-->
|
|
<!-- 已经评估-->
|
|
@@ -289,7 +304,7 @@ function subEvalation() {
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
<style scoped lang="scss">
|
|
<style scoped lang="scss">
|
|
|
-.ssss {
|
|
|
|
|
|
|
+.detail {
|
|
|
:deep(.vxe-cell) {
|
|
:deep(.vxe-cell) {
|
|
|
height: 100% !important;
|
|
height: 100% !important;
|
|
|
}
|
|
}
|