| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270 |
- @page "/cardManagement/driverCard"
- @attribute [ReuseTabsPage(Title = "司机卡")]
- <style>
- .fuel-report-container {
- padding: 16px;
- background-color: #f5f7fa;
- min-height: 100vh;
- box-sizing: border-box;
- overflow: hidden;
- }
- .filter-section {
- margin-bottom: 16px;
- padding: 16px !important;
- background: white;
- border: 1px solid #ebeef5;
- border-radius: 4px;
- }
- .filter-content .filter-row {
- display: flex;
- align-items: center;
- gap: 16px;
- flex-wrap: wrap;
- }
- .filter-content .filter-row .filter-item {
- display: flex;
- align-items: center;
- }
- .filter-content .filter-row .filter-item .filter-label {
- margin-right: 8px;
- font-size: 14px;
- color: #606266;
- min-width: 32px;
- }
- .filter-content .filter-row .filter-actions {
- display: flex;
- gap: 8px;
- margin-left: auto;
- }
- .table-section {
- margin-top: 16px;
- padding: 16px;
- background: white;
- border: 1px solid #ebeef5;
- border-radius: 4px;
- }
- /* Div表格样式 */
- .div-table {
- display: flex;
- flex-direction: column;
- border: 1px solid #ebeef5;
- border-radius: 4px;
- overflow: hidden;
- font-size: 14px;
- }
- .div-table-header {
- display: flex;
- background-color: #f5f7fa;
- font-weight: 600;
- color: #606266;
- border-bottom: 1px solid #ebeef5;
- }
- .div-table-row {
- display: flex;
- border-bottom: 1px solid #ebeef5;
- }
- .div-table-row:last-child {
- border-bottom: none;
- }
- .div-table-row:nth-child(even) {
- background-color: #fafafa;
- }
- .div-table-cell {
- padding: 12px 8px;
- text-align: center;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- display: flex;
- align-items: center;
- justify-content: center;
- }
- .cell-left-align {
- justify-content: flex-start;
- text-align: left;
- }
- .cell-right-align {
- justify-content: flex-end;
- text-align: right;
- }
- .highlight-cell {
- color: #1890ff !important;
- font-weight: 500;
- }
- /* 表单样式 */
- .filter-form {
- display: flex;
- flex-wrap: wrap;
- gap: 16px;
- }
- .form-item {
- display: flex;
- align-items: center;
- }
- .form-item .form-label {
- margin-right: 8px;
- font-size: 14px;
- color: #606266;
- min-width: 80px;
- text-align: right;
- }
- .form-actions {
- display: flex;
- gap: 8px;
- margin-left: auto;
- }
- /* 响应式设计 */
- @@media (max-width: 768px) {
- .fuel-report-container {
- padding: 12px;
- }
- .filter-section {
- padding: 12px !important;
- }
- .filter-form {
- flex-direction: column;
- align-items: flex-start;
- }
- .form-item {
- width: 100%;
- }
- .form-actions {
- margin-left: 0;
- width: 100%;
- display: flex;
- justify-content: center;
- margin-top: 8px;
- }
- .div-table {
- overflow-x: auto;
- }
- .div-table-header,
- .div-table-row {
- min-width: 1200px;
- }
- .div-table-cell {
- padding: 8px 4px;
- font-size: 12px;
- }
- }
- </style>
- <div class="fuel-report-container">
- <!-- 筛选条件 -->
- <div class="filter-section">
- <div class="filter-form">
- <!-- 卡号 -->
- <div class="form-item">
- <span class="form-label">卡号</span>
- <Input @bind-Value="CardNo"
- Placeholder="卡号"
- Style="width: 150px" />
- </div>
- <!-- 会员手机号 -->
- <div class="form-item">
- <span class="form-label">司机手机号</span>
- <Input @bind-Value="Mobile"
- Placeholder="司机手机号"
- Style="width: 150px" />
- </div>
- <!-- 操作按钮 -->
- <div class="form-actions">
- <Button Type="@ButtonType.Primary" Icon="search" OnClick="HandleQuery">
- 查询
- </Button>
- <Button Icon="reload" OnClick="HandleReset">
- 重置
- </Button>
- </div>
- </div>
- </div>
- <!-- 数据表格 -->
- <div class="table-section">
- <Spin Spinning="@Loading">
- <div class="div-table">
- <!-- 表头 -->
- <div class="div-table-header">
- <div class="div-table-cell cell-left-align" style="width: 10%;">站点</div>
- <div class="div-table-cell cell-left-align" style="width: 15%;">卡号</div>
- <div class="div-table-cell cell-left-align" style="width: 10%;">卡类型</div>
- <div class="div-table-cell cell-left-align" style="width: 10%;">卡账余额</div>
- <div class="div-table-cell cell-left-align" style="width: 15%;">发卡时间</div>
- <div class="div-table-cell cell-left-align" style="width: 15%;">司机名称</div>
- <div class="div-table-cell cell-left-align" style="width: 15%;">司机手机号</div>
- <div class="div-table-cell cell-left-align" style="width: 10%;">状态</div>
- </div>
- <!-- 表格内容 -->
- @if (cardInfoDtos?.Any() == true)
- {
- @foreach (var item in cardInfoDtos)
- {
- <div class="div-table-row">
- <div class="div-table-cell cell-left-align" style="width: 10%;">@item.StationName</div>
- <div class="div-table-cell cell-left-align" style="width: 15%;">@item.CardNo</div>
- <div class="div-table-cell cell-left-align" style="width: 10%;">@item.CardType</div>
- <div class="div-table-cell cell-left-align" style="width: 10%;">@item.AccountBalance</div>
- <div class="div-table-cell cell-left-align" style="width: 15%;">@item.IssueTime</div>
- <div class="div-table-cell cell-left-align" style="width: 15%;">@item.Name</div>
- <div class="div-table-cell cell-left-align" style="width: 15%;">@item.Mobile</div>
- <div class="div-table-cell cell-left-align" style="width:10%;">@item.Status</div>
- </div>
- }
- }
- else if (!Loading)
- {
- <div class="div-table-row">
- <div class="div-table-cell" style="width: 100%; padding: 40px; text-align: center; color: #999;">
- 暂无数据
- </div>
- </div>
- }
- </div>
- <!-- 分页 -->
- @if (TotalCount > 0)
- {
- <div style="margin-top: 16px; text-align: right;">
- <Pagination Total="@TotalCount"
- PageSize="@PageSize"
- Current="@CurrentPage"
- OnPageIndexChange="@OnPageChange"
- OnPageSizeChange="@OnPageSizeChange"
- ShowSizeChanger
- ShowQuickJumper />
- </div>
- }
- </Spin>
- </div>
- </div>
|