Merge commit 'a2b17d6f00e58b0633e359eb1267df6a42c4372a'

* commit 'a2b17d6f00e58b0633e359eb1267df6a42c4372a':
  修复物品信息照片上传

# Conflicts:
#	lib/const/api.dart
hmxc
小赖 4 years ago
commit 07c4517c70

@ -64,6 +64,34 @@ class _Manage {
///()
String get repairList => '/user/repair/list';
///id
String get repairDetail => '/user/repair/findById';
///-
String get dispatchListDetailType =>
'/manage/dataDictionary/findSysDispatchListDetailType';
///(id and name)
String get workOrderTimeLimit => '/user/repair/findWorkOrderTimeLimit';
///
String get workOrderTypeDetail => '/user/repair/findWorkOrderTypeDetail';
///
String get repairDispatch => '/user/repair/dispatch';
///
String get repairReassignment => '/user/repair/reassignment';
///
String get recevingOrders => '/user/repair/receivingOrders';
///
String get applyDelayed => '/user/repair/applyDelayed';
///
String get handleResult => '/user/repair/handleResult';
///
String get borrowList => '/user/borrow/articleList';
@ -104,11 +132,13 @@ class _Manage {
class _Upload {
///
String get avatar => '/user/upload/butlerAppHeadSculpture';
///id
String get repairDetail => '/user/repair/findById';
///-
String get dispatchListDetailType => '/manage/dataDictionary/findSysDispatchListDetailType';
String get dispatchListDetailType =>
'/manage/dataDictionary/findSysDispatchListDetailType';
///(id and name)
String get workOrderTimeLimit => '/user/repair/findWorkOrderTimeLimit';
@ -116,18 +146,12 @@ class _Upload {
///
String get workOrderTypeDetail => '/user/repair/findWorkOrderTypeDetail';
///
String get repairDispatch => '/user/repair/dispatch';
///
String get repairReassignment => '/user/repair/reassignment';
///
String get recevingOrders => '/user/repair/receivingOrders';
///
String get applyDelayed => '/user/repair/applyDelayed';
///
String get uploadArticleDetail => '/user/upload/uploadArticleDetail';
///
String get handleResult => '/user/repair/handleResult';
///
String get uploadArtical => '/user/upload/uploadArticle';
}

@ -2,11 +2,13 @@
import 'dart:io';
// 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/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/utils/network/base_model.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:flutter/cupertino.dart';
import 'package:flutter/material.dart';
@ -387,7 +389,8 @@ class _FixWorkFinishPageState extends State<FixWorkFinishPage> {
// materialPrice: double.parse(_materialController.text),
// );
// Get.back();
List<String> urls = await NetUtil()
.uploadFiles(_imgs, API.upload.uploadArtical);
BaseModel baseModel = await ManageFunc.handleResult(
widget.model.repairDetail.dispatchId,
_descriptionController.text,
@ -395,7 +398,8 @@ class _FixWorkFinishPageState extends State<FixWorkFinishPage> {
humanPrice,
materialPrice,
humanPrice + materialPrice,
1, []);
1,
urls);
if (baseModel.status) {
FixSubmitFinishPage(
model: widget.fixModel,

Loading…
Cancel
Save