diff --git a/lib/new_ui/work_order/finish_report_page.dart b/lib/new_ui/work_order/finish_report_page.dart index db5fa06..35cd3a8 100644 --- a/lib/new_ui/work_order/finish_report_page.dart +++ b/lib/new_ui/work_order/finish_report_page.dart @@ -132,6 +132,7 @@ class _FinishReportPageState extends State { onChanged: (value) { _photos = value; }), + 20.h.heightBox, ], ), ) diff --git a/lib/new_ui/work_order/report_progress.dart b/lib/new_ui/work_order/report_progress.dart index e7ba28b..793ea16 100644 --- a/lib/new_ui/work_order/report_progress.dart +++ b/lib/new_ui/work_order/report_progress.dart @@ -150,7 +150,6 @@ class _ReportProgressState extends State { BotToast.showText(text: '请输入具体需求'); return false; } - return true; } } diff --git a/lib/new_ui/work_order/work_order_func.dart b/lib/new_ui/work_order/work_order_func.dart index fd2d14c..dcde9ba 100644 --- a/lib/new_ui/work_order/work_order_func.dart +++ b/lib/new_ui/work_order/work_order_func.dart @@ -76,7 +76,7 @@ class WorkOrderFuc { ///完成工单 static Future finish(WorkOrderSubmitModel model) async { - BaseModel baseModel = await NetUtil().get(SAASAPI.workOrder.finish, + BaseModel baseModel = await NetUtil().post(SAASAPI.workOrder.finish, params: model.toJson(), showMessage: true); return baseModel.success; } diff --git a/lib/saas_models/work_order/work_order_submit_model.dart b/lib/saas_models/work_order/work_order_submit_model.dart index 18dbab2..f854923 100644 --- a/lib/saas_models/work_order/work_order_submit_model.dart +++ b/lib/saas_models/work_order/work_order_submit_model.dart @@ -89,7 +89,7 @@ class WorkOrderFinishCostDTOList { Map toJson() => _$WorkOrderFinishCostDTOListToJson(this); static WorkOrderFinishCostDTOList get init => - WorkOrderFinishCostDTOList(costType: 0, name: '', num: 0, price: 0); + WorkOrderFinishCostDTOList(costType: 2, name: '', num: 0, price: 0); //