|
@@ -129,7 +129,7 @@ class JobListEditPage extends BaseStatelessPage<JobListEditController> {
|
|
|
padding: const EdgeInsets.only(left: 16, right: 10),
|
|
|
height: 45,
|
|
|
decoration: BoxDecoration(
|
|
|
- color: const Color(0xFF4DCFF6).withOpacity(state.isEditType ? 0.2 : 0.5),
|
|
|
+ color: const Color(0xFF4DCFF6).withOpacity(state.isEditType && state.isOtherFormDisEnable ? 0.2 : 0.5),
|
|
|
borderRadius: const BorderRadius.all(Radius.circular(5)),
|
|
|
),
|
|
|
child: Row(
|
|
@@ -147,14 +147,16 @@ class JobListEditPage extends BaseStatelessPage<JobListEditController> {
|
|
|
).expanded(),
|
|
|
//下拉选图标
|
|
|
Visibility(
|
|
|
- visible: state.isEditType,
|
|
|
+ visible: state.isEditType && state.isOtherFormDisEnable,
|
|
|
child: const MyAssetImage(Assets.baseServiceTriangleDropDownIcon, width: 11.5, height: 6.28),
|
|
|
),
|
|
|
],
|
|
|
),
|
|
|
).onTap(() {
|
|
|
- FocusScope.of(context).unfocus();
|
|
|
- controller.pickStartTime();
|
|
|
+ if (state.isEditType && state.isOtherFormDisEnable) {
|
|
|
+ FocusScope.of(context).unfocus();
|
|
|
+ controller.pickStartTime();
|
|
|
+ }
|
|
|
}),
|
|
|
),
|
|
|
|
|
@@ -165,7 +167,7 @@ class JobListEditPage extends BaseStatelessPage<JobListEditController> {
|
|
|
margin: const EdgeInsets.only(left: 10),
|
|
|
height: 45,
|
|
|
decoration: BoxDecoration(
|
|
|
- color: const Color(0xFF4DCFF6).withOpacity(state.isEditType ? 0.2 : 0.5),
|
|
|
+ color: const Color(0xFF4DCFF6).withOpacity(state.isEditType && state.isOtherFormDisEnable ? 0.2 : 0.5),
|
|
|
borderRadius: const BorderRadius.all(Radius.circular(5)),
|
|
|
),
|
|
|
child: Row(
|
|
@@ -183,14 +185,16 @@ class JobListEditPage extends BaseStatelessPage<JobListEditController> {
|
|
|
).expanded(),
|
|
|
//下拉选图标
|
|
|
Visibility(
|
|
|
- visible: state.isEditType,
|
|
|
+ visible: state.isEditType && state.isOtherFormDisEnable,
|
|
|
child: const MyAssetImage(Assets.baseServiceTriangleDropDownIcon, width: 11.5, height: 6.28),
|
|
|
),
|
|
|
],
|
|
|
),
|
|
|
).onTap(() {
|
|
|
- FocusScope.of(context).unfocus();
|
|
|
- controller.pickEndTime();
|
|
|
+ if (state.isEditType && state.isOtherFormDisEnable) {
|
|
|
+ FocusScope.of(context).unfocus();
|
|
|
+ controller.pickEndTime();
|
|
|
+ }
|
|
|
}),
|
|
|
),
|
|
|
],
|
|
@@ -246,7 +250,7 @@ class JobListEditPage extends BaseStatelessPage<JobListEditController> {
|
|
|
state.genderOptionType = index;
|
|
|
controller.update();
|
|
|
},
|
|
|
- enable: state.isEditType,
|
|
|
+ enable: state.isEditType && state.isOtherFormDisEnable,
|
|
|
selectedPosition: state.editEntity == null ? -1 : state.genderOptionType,
|
|
|
).marginOnly(top: 10),
|
|
|
|
|
@@ -260,8 +264,8 @@ class JobListEditPage extends BaseStatelessPage<JobListEditController> {
|
|
|
paddingTop: 0,
|
|
|
paddingBottom: 0,
|
|
|
height: 45,
|
|
|
- enabled: state.isEditType,
|
|
|
- fillBackgroundColor: const Color(0xFF4DCFF6).withOpacity(state.isEditType ? 0.2 : 0.5),
|
|
|
+ enabled: state.isEditType && state.isOtherFormDisEnable,
|
|
|
+ fillBackgroundColor: const Color(0xFF4DCFF6).withOpacity(state.isEditType && state.isOtherFormDisEnable ? 0.2 : 0.5),
|
|
|
inputFormatters: <TextInputFormatter>[FilteringTextInputFormatter.digitsOnly],
|
|
|
textInputType: TextInputType.number,
|
|
|
formData: state.formData,
|
|
@@ -291,8 +295,8 @@ class JobListEditPage extends BaseStatelessPage<JobListEditController> {
|
|
|
paddingTop: 0,
|
|
|
paddingBottom: 0,
|
|
|
height: 45,
|
|
|
- enabled: state.isEditType,
|
|
|
- fillBackgroundColor: Color(0xFF4DCFF6).withOpacity(state.isEditType ? 0.2 : 0.5),
|
|
|
+ enabled: state.isEditType && state.isOtherFormDisEnable,
|
|
|
+ fillBackgroundColor: const Color(0xFF4DCFF6).withOpacity(state.isEditType && state.isOtherFormDisEnable ? 0.2 : 0.5),
|
|
|
inputFormatters: <TextInputFormatter>[FilteringTextInputFormatter.digitsOnly],
|
|
|
textInputType: TextInputType.number,
|
|
|
formData: state.formData,
|
|
@@ -316,8 +320,8 @@ class JobListEditPage extends BaseStatelessPage<JobListEditController> {
|
|
|
paddingTop: 0,
|
|
|
paddingBottom: 0,
|
|
|
height: 45,
|
|
|
- enabled: state.isEditType,
|
|
|
- fillBackgroundColor: const Color(0xFF4DCFF6).withOpacity(state.isEditType ? 0.2 : 0.5),
|
|
|
+ enabled: state.isEditType && state.isOtherFormDisEnable,
|
|
|
+ fillBackgroundColor: const Color(0xFF4DCFF6).withOpacity(state.isEditType && state.isOtherFormDisEnable ? 0.2 : 0.5),
|
|
|
inputFormatters: <TextInputFormatter>[FilteringTextInputFormatter.digitsOnly],
|
|
|
textInputType: TextInputType.number,
|
|
|
formData: state.formData,
|
|
@@ -345,7 +349,7 @@ class JobListEditPage extends BaseStatelessPage<JobListEditController> {
|
|
|
onOptionSelected: (index, text) {
|
|
|
state.selectRequestTypeIndex = index;
|
|
|
},
|
|
|
- enable: state.isEditType,
|
|
|
+ enable: state.isEditType && state.isOtherFormDisEnable,
|
|
|
selectedPosition: state.editEntity == null ? -1 : state.selectRequestTypeIndex,
|
|
|
).marginOnly(top: 10),
|
|
|
|
|
@@ -364,14 +368,14 @@ class JobListEditPage extends BaseStatelessPage<JobListEditController> {
|
|
|
margin: const EdgeInsets.only(top: 10),
|
|
|
padding: const EdgeInsets.symmetric(vertical: 15, horizontal: 15),
|
|
|
decoration: BoxDecoration(
|
|
|
- color: const Color(0xFF4DCFF6).withOpacity(state.isEditType ? 0.2 : 0.5),
|
|
|
+ color: const Color(0xFF4DCFF6).withOpacity(state.isEditType && state.isOtherFormDisEnable ? 0.2 : 0.5),
|
|
|
borderRadius: const BorderRadius.all(Radius.circular(5)),
|
|
|
),
|
|
|
child: TextField(
|
|
|
cursorColor: ColorConstants.white,
|
|
|
cursorWidth: 1.5,
|
|
|
autofocus: false,
|
|
|
- enabled: state.isEditType,
|
|
|
+ enabled: state.isEditType && state.isOtherFormDisEnable,
|
|
|
focusNode: state.formData["remark"]!['focusNode'],
|
|
|
controller: state.formData["remark"]!['controller'],
|
|
|
// 装饰
|