|
@@ -188,6 +188,7 @@ class MaternalHealthFormValue extends BaseFormValueChange {
|
|
|
void changeFamilyHistory(UpdateFormArgs e) {
|
|
|
UpdateFormType type = e.type;
|
|
|
bool isDisabledValue = false;
|
|
|
+
|
|
|
if (type == UpdateFormType.Add && e.sourceValue == "Family_History_1") {
|
|
|
///选中了无,则禁用其他选项
|
|
|
isDisabledValue = true;
|
|
@@ -195,9 +196,69 @@ class MaternalHealthFormValue extends BaseFormValueChange {
|
|
|
e.sourceValue == "Family_History_1") {
|
|
|
///取消选中无,则取消禁用其他选项
|
|
|
isDisabledValue = false;
|
|
|
+ } else if (type == UpdateFormType.Add &&
|
|
|
+ e.sourceValue == "Family_History_2") {
|
|
|
+ //选中了遗传性病史,则显示遗传性病史详情
|
|
|
+ FormInfo.instance.onChangeTargetValue.emit(
|
|
|
+ this,
|
|
|
+ TargetFormArgs(
|
|
|
+ "Family_History_2_Detail",
|
|
|
+ isHidden: false,
|
|
|
+ ),
|
|
|
+ );
|
|
|
+ return;
|
|
|
+ } else if (type == UpdateFormType.Remove &&
|
|
|
+ e.sourceValue == "Family_History_2") {
|
|
|
+ //取消选中了遗传性病史,则隐藏遗传性病史详情
|
|
|
+ FormInfo.instance.onChangeTargetValue.emit(
|
|
|
+ this,
|
|
|
+ TargetFormArgs(
|
|
|
+ "Family_History_2_Detail",
|
|
|
+ isHidden: true,
|
|
|
+ ),
|
|
|
+ );
|
|
|
+ return;
|
|
|
+ } else if (type == UpdateFormType.Add &&
|
|
|
+ e.sourceValue == "Family_History_3") {
|
|
|
+ //选中了精神疾病史,则显示精神疾病史详情
|
|
|
+ FormInfo.instance.onChangeTargetValue.emit(
|
|
|
+ this,
|
|
|
+ TargetFormArgs(
|
|
|
+ "Family_History_3_Detail",
|
|
|
+ isHidden: false,
|
|
|
+ ),
|
|
|
+ );
|
|
|
+ return;
|
|
|
+ } else if (type == UpdateFormType.Remove &&
|
|
|
+ e.sourceValue == "Family_History_3") {
|
|
|
+ //取消选中了精神疾病史
|
|
|
+ FormInfo.instance.onChangeTargetValue.emit(
|
|
|
+ this,
|
|
|
+ TargetFormArgs(
|
|
|
+ "Family_History_3_Detail",
|
|
|
+ isHidden: true,
|
|
|
+ ),
|
|
|
+ );
|
|
|
+ return;
|
|
|
} else {
|
|
|
return;
|
|
|
}
|
|
|
+ if (isDisabledValue) {
|
|
|
+ FormInfo.instance.onChangeTargetValue.emit(
|
|
|
+ this,
|
|
|
+ TargetFormArgs(
|
|
|
+ "Family_History_3_Detail",
|
|
|
+ isHidden: true,
|
|
|
+ ),
|
|
|
+ );
|
|
|
+ FormInfo.instance.onChangeTargetValue.emit(
|
|
|
+ this,
|
|
|
+ TargetFormArgs(
|
|
|
+ "Family_History_2_Detail",
|
|
|
+ isHidden: true,
|
|
|
+ ),
|
|
|
+ );
|
|
|
+ }
|
|
|
FormInfo.instance.onChangeTargetValue.emit(
|
|
|
this,
|
|
|
TargetFormArgs(
|