19 lines
571 B
Dart
19 lines
571 B
Dart
|
|
|
||
|
|
import 'dart:convert';
|
||
|
|
import 'package:dio/dio.dart';
|
||
|
|
import 'baseDio.dart';
|
||
|
|
|
||
|
|
class StockOutApi {
|
||
|
|
/// 码盘完成
|
||
|
|
static Future<dynamic> getEmptyVehicle({int timeOut = 5000}) async {
|
||
|
|
final response = await BaseDio.instance().post<String>(
|
||
|
|
"/api/mobile/stockOut/outEmptyVehicle",
|
||
|
|
options: Options(
|
||
|
|
responseType: ResponseType.json,
|
||
|
|
sendTimeout: Duration(milliseconds: timeOut),
|
||
|
|
receiveTimeout: Duration(milliseconds: timeOut),
|
||
|
|
)
|
||
|
|
);
|
||
|
|
return { "code" : response.statusCode, "data": response.data };
|
||
|
|
}
|
||
|
|
}
|