完成工单

master
戴余标 2 years ago
parent a44cedeb31
commit 44a6e6d3e7

@ -132,6 +132,7 @@ class _FinishReportPageState extends State<FinishReportPage> {
onChanged: (value) {
_photos = value;
}),
20.h.heightBox,
],
),
)

@ -150,7 +150,6 @@ class _ReportProgressState extends State<ReportProgress> {
BotToast.showText(text: '请输入具体需求');
return false;
}
return true;
}
}

@ -76,7 +76,7 @@ class WorkOrderFuc {
///
static Future<bool> 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;
}

@ -89,7 +89,7 @@ class WorkOrderFinishCostDTOList {
Map<String, dynamic> toJson() => _$WorkOrderFinishCostDTOListToJson(this);
static WorkOrderFinishCostDTOList get init =>
WorkOrderFinishCostDTOList(costType: 0, name: '', num: 0, price: 0);
WorkOrderFinishCostDTOList(costType: 2, name: '', num: 0, price: 0);
//<editor-fold desc="Data Methods">

Loading…
Cancel
Save