|
|
|
|
@ -16,6 +16,7 @@ import 'package:test_sa/new_views/app_style/app_color.dart';
|
|
|
|
|
import 'package:test_sa/new_views/common_widgets/app_filled_button.dart';
|
|
|
|
|
import 'package:test_sa/new_views/common_widgets/app_lazy_loading.dart';
|
|
|
|
|
import 'package:test_sa/new_views/common_widgets/default_app_bar.dart';
|
|
|
|
|
|
|
|
|
|
import 'ppm_calibration_tools_form.dart';
|
|
|
|
|
import 'ppm_external_details_form.dart';
|
|
|
|
|
import 'ppm_pm_check_list_form.dart';
|
|
|
|
|
@ -74,16 +75,15 @@ class _UpdatePpmState extends State<UpdatePpm> with TickerProviderStateMixin {
|
|
|
|
|
);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
await ppmProvider.updateVisitByEngineer(status: status).whenComplete(() {
|
|
|
|
|
if (status == 1) {
|
|
|
|
|
await ppmProvider.updateVisitByEngineer(status: status).then((success) {
|
|
|
|
|
Navigator.pop(context);
|
|
|
|
|
if (success) {
|
|
|
|
|
AllRequestsProvider allRequestsProvider = Provider.of<AllRequestsProvider>(context, listen: false);
|
|
|
|
|
allRequestsProvider.reset();
|
|
|
|
|
allRequestsProvider.getAllRequests(context, typeTransaction: 4);
|
|
|
|
|
ppmProvider.ppmPlanAttachments = [];
|
|
|
|
|
Navigator.pop(context);
|
|
|
|
|
}
|
|
|
|
|
// allRequestsProvider.recurrentWoData?.recurrentWoTimerModel=null;
|
|
|
|
|
Navigator.pop(context);
|
|
|
|
|
Navigator.pop(context);
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|