fix(client): 出入库抽屉生产日期截取防空串崩溃
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import '../../core/utils/date_util.dart';
|
||||
import '../../core/utils/dialog_util.dart';
|
||||
import '../../core/exceptions.dart';
|
||||
import '../../core/utils/print_util.dart' show LabelData;
|
||||
@@ -996,9 +997,7 @@ class _StockInListScreenState extends ConsumerState<StockInListScreen> {
|
||||
price: it.costPrice == 0 ? '待定价' : _num.format(it.costPrice),
|
||||
amount: it.costAmount == 0 ? '待定价' : _num.format(it.costAmount),
|
||||
pending: it.costPrice == 0,
|
||||
productionDate: it.productionDate != null
|
||||
? it.productionDate!.substring(0, 10)
|
||||
: null,
|
||||
productionDate: shortDate(it.productionDate),
|
||||
batchNo: it.batchNo,
|
||||
))
|
||||
.toList(),
|
||||
|
||||
Reference in New Issue
Block a user