加氢站-查看证件

This commit is contained in:
2026-02-28 15:00:56 +08:00
parent 0df1902df2
commit b7caf58adf
6 changed files with 204 additions and 36 deletions

View File

@@ -550,10 +550,11 @@ class SitePage extends GetView<SiteController> {
Row(
crossAxisAlignment: CrossAxisAlignment.end,
children: [
if (item.hasDrivingAttachment) _buildInfoTag('行驶证'),
if (item.hasDrivingAttachment)
controller.buildInfoTag('行驶证',item.drivingAttachments),
if (item.hasHydrogenationAttachment) ...[
SizedBox(width: 8.w),
_buildInfoTag('加氢证'),
controller.buildInfoTag('加氢证',item.hydrogenationAttachments)
],
Spacer(),
if (item.isEdit == "1") ...[
@@ -602,19 +603,7 @@ class SitePage extends GetView<SiteController> {
);
}
Widget _buildInfoTag(String label) {
return Container(
padding: const EdgeInsets.symmetric(horizontal: 8, vertical: 4),
decoration: BoxDecoration(
color: const Color.fromRGBO(242, 243, 245, 1),
borderRadius: BorderRadius.circular(8),
),
child: Text(
label,
style: TextStyle(color: Color.fromRGBO(78, 89, 105, 1), fontSize: 11.sp),
),
);
}
Widget _buildSmallButton(
String text, {