diff --git a/lib/screens/new_inventory_inout/new_inventory_inout_controller.dart b/lib/screens/new_inventory_inout/new_inventory_inout_controller.dart index c1d2b6d..c404798 100644 --- a/lib/screens/new_inventory_inout/new_inventory_inout_controller.dart +++ b/lib/screens/new_inventory_inout/new_inventory_inout_controller.dart @@ -75,7 +75,7 @@ class NewInventoryInoutController extends GetxController { onReady() { super.onReady(); dateTextController.text = SkDateUtil.format(DateTime.now()); - payload['time'] = DateTime.now().microsecondsSinceEpoch; + payload['time'] = DateTime.now().millisecondsSinceEpoch; payload['inOrOut'] = inOrOut; } @@ -165,7 +165,7 @@ class NewInventoryInoutController extends GetxController { } else { payload['amount'] = amountTextController.text; } - payload['time'] = payload['time'] ?? DateTime.now().microsecondsSinceEpoch; + payload['time'] = payload['time'] ?? DateTime.now().millisecondsSinceEpoch; payload['remark'] = remarkTextController.text; await LoadingUtil.to.show(status: '提交中请稍后...'); // uploadImgFilesPath