feat(client): 列表日期列改名入库/出库时间删审核时间列 + 日期控件改可键入框带日历
Deploy Client / build-client-web (push) Successful in 41s
Deploy Client / build-windows (push) Successful in 2m34s
Deploy Client / build-macos (push) Successful in 2m20s
Deploy Client / build-android (push) Successful in 1m5s
Deploy Client / build-ios (push) Successful in 2m44s
Deploy Client / release-deploy-client (push) Successful in 1m26s
Deploy Client / build-client-web (push) Successful in 41s
Deploy Client / build-windows (push) Successful in 2m34s
Deploy Client / build-macos (push) Successful in 2m20s
Deploy Client / build-android (push) Successful in 1m5s
Deploy Client / build-ios (push) Successful in 2m44s
Deploy Client / release-deploy-client (push) Successful in 1m26s
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YZ4DskSRKsSiheQonFtQvx
This commit is contained in:
@@ -49,8 +49,7 @@ class _StockInListScreenState extends ConsumerState<StockInListScreen> {
|
||||
ColDef('warehouse', '仓库'),
|
||||
ColDef('amount', '金额', minWidth: 800),
|
||||
ColDef('status', '状态'),
|
||||
ColDef('date', '日期', minWidth: 900),
|
||||
ColDef('reviewed_at', '入库时间', minWidth: 900),
|
||||
ColDef('date', '入库时间', minWidth: 900),
|
||||
ColDef('operator', '入库员', minWidth: 1100),
|
||||
ColDef('reviewer', '审核员', minWidth: 1100),
|
||||
ColDef('actions', '操作', required: true),
|
||||
@@ -270,12 +269,6 @@ class _StockInListScreenState extends ConsumerState<StockInListScreen> {
|
||||
return DataCell(StatusBadge(_apiStatusToEnum(o.status)));
|
||||
case 'date':
|
||||
return DataCell(Text(o.orderDate?.substring(0, 10) ?? '-'));
|
||||
case 'reviewed_at':
|
||||
return DataCell(Text(o.reviewedAt != null
|
||||
? o.reviewedAt!.length >= 16
|
||||
? o.reviewedAt!.substring(0, 16)
|
||||
: o.reviewedAt!.substring(0, 10)
|
||||
: '-'));
|
||||
case 'operator':
|
||||
return DataCell(Text(o.operatorName ?? '-',
|
||||
style: const TextStyle(fontSize: 13)));
|
||||
@@ -550,7 +543,7 @@ class _StockInListScreenState extends ConsumerState<StockInListScreen> {
|
||||
o.totalAmount != null
|
||||
? '¥${o.totalAmount!.toStringAsFixed(2)}'
|
||||
: '-'),
|
||||
MobileCardField('日期', o.orderDate?.substring(0, 10) ?? '-'),
|
||||
MobileCardField('入库时间', o.orderDate?.substring(0, 10) ?? '-'),
|
||||
],
|
||||
actions: _orderActions(context, o),
|
||||
);
|
||||
|
||||
@@ -64,8 +64,7 @@ class _StockOutListScreenState extends ConsumerState<StockOutListScreen> {
|
||||
ColDef('warehouse', '仓库'),
|
||||
ColDef('amount', '金额', minWidth: 800),
|
||||
ColDef('status', '状态'),
|
||||
ColDef('date', '日期', minWidth: 900),
|
||||
ColDef('reviewed_at', '出库时间', minWidth: 900),
|
||||
ColDef('date', '出库时间', minWidth: 900),
|
||||
ColDef('created_at', '创建时间', minWidth: 900),
|
||||
ColDef('operator', '出库员', minWidth: 1100),
|
||||
ColDef('reviewer', '审核员', minWidth: 1100),
|
||||
@@ -271,12 +270,6 @@ class _StockOutListScreenState extends ConsumerState<StockOutListScreen> {
|
||||
return DataCell(StatusBadge(_apiStatusToEnum(o.status)));
|
||||
case 'date':
|
||||
return DataCell(Text(o.orderDate?.substring(0, 10) ?? '-'));
|
||||
case 'reviewed_at':
|
||||
return DataCell(Text(o.reviewedAt != null
|
||||
? o.reviewedAt!.length >= 16
|
||||
? o.reviewedAt!.substring(0, 16)
|
||||
: o.reviewedAt!.substring(0, 10)
|
||||
: '-'));
|
||||
case 'created_at':
|
||||
return DataCell(Text(o.createdAt != null
|
||||
? o.createdAt!.length >= 16
|
||||
@@ -524,7 +517,7 @@ class _StockOutListScreenState extends ConsumerState<StockOutListScreen> {
|
||||
o.totalAmount != null
|
||||
? '¥${o.totalAmount!.toStringAsFixed(2)}'
|
||||
: '-'),
|
||||
MobileCardField('日期', o.orderDate?.substring(0, 10) ?? '-'),
|
||||
MobileCardField('出库时间', o.orderDate?.substring(0, 10) ?? '-'),
|
||||
],
|
||||
actions: _orderActions(context, o),
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user