fix(health): P1 功能缺陷修复 — 8 项后端+小程序问题
- 管理员订单列表:新增 admin_list_orders 不按 patient_id 过滤 - 分配医生:添加 doctor_profile 存在性验证防止孤立关联 - 标签管理:将软删除+插入包裹在事务中防止标签丢失 - HealthDataProvider:标记为 experimental,改进错误消息 - 预约 CAS:添加注释说明匹配字段与唯一索引的关系 - 小程序 DTO:inputVitalSign 映射 indicator_type 到结构化字段 - 小程序数据隔离:listAppointments/listTasks 添加 patient_id 参数 - 小程序字段名:family-add 修复 birthday → birth_date
This commit is contained in:
@@ -37,7 +37,7 @@ export default function FamilyAdd() {
|
||||
await updatePatient(editId, {
|
||||
name: name.trim(),
|
||||
gender: GENDER_OPTIONS[genderIdx] === '男' ? 'male' : 'female',
|
||||
birthday: birthDate || undefined,
|
||||
birth_date: birthDate || undefined,
|
||||
relation: RELATION_OPTIONS[relationIdx],
|
||||
}, editData.version);
|
||||
Taro.showToast({ title: '修改成功', icon: 'success' });
|
||||
@@ -45,7 +45,7 @@ export default function FamilyAdd() {
|
||||
await createPatient({
|
||||
name: name.trim(),
|
||||
gender: GENDER_OPTIONS[genderIdx] === '男' ? 'male' : 'female',
|
||||
birthday: birthDate || undefined,
|
||||
birth_date: birthDate || undefined,
|
||||
});
|
||||
Taro.showToast({ title: '添加成功', icon: 'success' });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user