|
@@ -59,6 +59,22 @@ class ContractAddController extends GetxController with DioCancelableMixin {
|
|
|
|
|
|
/// 提交
|
|
|
void doSubmit() async {
|
|
|
+
|
|
|
+ if (state.selectedAgencyId == null) {
|
|
|
+ ToastEngine.show("Please Select Agency".tr);
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
+ if (state.selectedStartTime == null) {
|
|
|
+ ToastEngine.show("Please Select Start Time".tr);
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
+ if (state.selectedEndTime == null) {
|
|
|
+ ToastEngine.show("Please Select End Time".tr);
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
Future<HttpResult> taskFuture;
|
|
|
if (state.type == 0) {
|
|
|
taskFuture = _agencyRepository.addContractSubmit(
|