Fix Bug #561
This commit is contained in:
@@ -54,6 +54,7 @@
|
|||||||
<el-option label="已看诊" :value="3" />
|
<el-option label="已看诊" :value="3" />
|
||||||
<el-option label="已离开" :value="4" />
|
<el-option label="已离开" :value="4" />
|
||||||
<el-option label="已完成" :value="5" />
|
<el-option label="已完成" :value="5" />
|
||||||
|
<el-option label="无状态" :value="0" />
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="医生" prop="doctorName">
|
<el-form-item label="医生" prop="doctorName">
|
||||||
@@ -164,7 +165,12 @@ function getList() {
|
|||||||
console.log('当前查看患者:', route.query.patientName);
|
console.log('当前查看患者:', route.query.patientName);
|
||||||
}
|
}
|
||||||
|
|
||||||
listOutpatienRecords(queryParams.value).then((response) => {
|
// 构建请求参数 - "无状态"(0) 转为 undefined,让后端不加过滤
|
||||||
|
const requestParams = { ...queryParams.value };
|
||||||
|
if (requestParams.subjectStatusEnum === 0) {
|
||||||
|
requestParams.subjectStatusEnum = undefined;
|
||||||
|
}
|
||||||
|
listOutpatienRecords(requestParams).then((response) => {
|
||||||
outpatienRecordsList.value = response.data.records;
|
outpatienRecordsList.value = response.data.records;
|
||||||
total.value = response.data.total;
|
total.value = response.data.total;
|
||||||
loading.value = false;
|
loading.value = false;
|
||||||
@@ -194,6 +200,10 @@ function getStatusTagType(status) {
|
|||||||
return 'info'; // 已离开 - 灰色
|
return 'info'; // 已离开 - 灰色
|
||||||
case 5:
|
case 5:
|
||||||
return 'success'; // 已完成 - 绿色
|
return 'success'; // 已完成 - 绿色
|
||||||
|
case 0:
|
||||||
|
case null:
|
||||||
|
case undefined:
|
||||||
|
return 'info'; // 无状态 - 灰色
|
||||||
default:
|
default:
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user