|
|
@ -2,11 +2,13 @@
|
|
|
|
import 'dart:io';
|
|
|
|
import 'dart:io';
|
|
|
|
|
|
|
|
|
|
|
|
// Flutter imports:
|
|
|
|
// Flutter imports:
|
|
|
|
|
|
|
|
import 'package:aku_community_manager/const/api.dart';
|
|
|
|
import 'package:aku_community_manager/models/manager/bussiness_and_fix/bussiness_and_fix_model.dart';
|
|
|
|
import 'package:aku_community_manager/models/manager/bussiness_and_fix/bussiness_and_fix_model.dart';
|
|
|
|
import 'package:aku_community_manager/models/manager/bussiness_and_fix/fixed_detail_model.dart';
|
|
|
|
import 'package:aku_community_manager/models/manager/bussiness_and_fix/fixed_detail_model.dart';
|
|
|
|
import 'package:aku_community_manager/ui/sub_pages/business_and_fix/fix_submit_finish_page.dart';
|
|
|
|
import 'package:aku_community_manager/ui/sub_pages/business_and_fix/fix_submit_finish_page.dart';
|
|
|
|
import 'package:aku_community_manager/utils/network/base_model.dart';
|
|
|
|
import 'package:aku_community_manager/utils/network/base_model.dart';
|
|
|
|
import 'package:aku_community_manager/utils/network/manage_func.dart';
|
|
|
|
import 'package:aku_community_manager/utils/network/manage_func.dart';
|
|
|
|
|
|
|
|
import 'package:aku_community_manager/utils/network/net_util.dart';
|
|
|
|
import 'package:bot_toast/bot_toast.dart';
|
|
|
|
import 'package:bot_toast/bot_toast.dart';
|
|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
@ -387,7 +389,8 @@ class _FixWorkFinishPageState extends State<FixWorkFinishPage> {
|
|
|
|
// materialPrice: double.parse(_materialController.text),
|
|
|
|
// materialPrice: double.parse(_materialController.text),
|
|
|
|
// );
|
|
|
|
// );
|
|
|
|
// Get.back();
|
|
|
|
// Get.back();
|
|
|
|
|
|
|
|
List<String> urls = await NetUtil()
|
|
|
|
|
|
|
|
.uploadFiles(_imgs, API.upload.uploadArtical);
|
|
|
|
BaseModel baseModel = await ManageFunc.handleResult(
|
|
|
|
BaseModel baseModel = await ManageFunc.handleResult(
|
|
|
|
widget.model.repairDetail.dispatchId,
|
|
|
|
widget.model.repairDetail.dispatchId,
|
|
|
|
_descriptionController.text,
|
|
|
|
_descriptionController.text,
|
|
|
@ -395,10 +398,11 @@ class _FixWorkFinishPageState extends State<FixWorkFinishPage> {
|
|
|
|
humanPrice,
|
|
|
|
humanPrice,
|
|
|
|
materialPrice,
|
|
|
|
materialPrice,
|
|
|
|
humanPrice + materialPrice,
|
|
|
|
humanPrice + materialPrice,
|
|
|
|
1, []);
|
|
|
|
1,
|
|
|
|
|
|
|
|
urls);
|
|
|
|
if (baseModel.status) {
|
|
|
|
if (baseModel.status) {
|
|
|
|
FixSubmitFinishPage(
|
|
|
|
FixSubmitFinishPage(
|
|
|
|
model:widget.fixModel,
|
|
|
|
model: widget.fixModel,
|
|
|
|
).to();
|
|
|
|
).to();
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
BotToast.showText(text: baseModel.message);
|
|
|
|
BotToast.showText(text: baseModel.message);
|
|
|
|