退款非京喜子功能页面表头设计 #34
@ -0,0 +1,68 @@
|
||||
@php
|
||||
$columns = [
|
||||
'Id',
|
||||
'refundDate',
|
||||
'as_id',
|
||||
'outer_as_id',
|
||||
'o_id',
|
||||
'',
|
||||
'so_id',
|
||||
'type',
|
||||
'node',
|
||||
'isZC',
|
||||
'shop_name',
|
||||
'platform',
|
||||
'responsibleDepartment',
|
||||
'totalRefundMoney',
|
||||
'originPostcode',
|
||||
'shop_i_i_id',
|
||||
'shop_sku_id',
|
||||
'i_id',
|
||||
'sku_id',
|
||||
'buyer_paid_amount',
|
||||
'qty',
|
||||
'unitCostGoods',
|
||||
'detailRefundMoney',
|
||||
'refundType',
|
||||
'refundQty',
|
||||
'refundCostGoods',
|
||||
'RefundMoneyIncome',
|
||||
'AfSalesMoney',
|
||||
'createTime',
|
||||
'status',
|
||||
'shop_status',
|
||||
'created',
|
||||
'confirm_date',
|
||||
];
|
||||
@endphp
|
||||
|
||||
<div class="upstream-data-page upstream-data-page--spaced">
|
||||
@include('business.pages.partials.upstream-data-styles')
|
||||
|
||||
<style>
|
||||
.refund-data-table--wide { min-width: 150rem; }
|
||||
</style>
|
||||
|
||||
<div class="upstream-data-table-panel">
|
||||
<div class="upstream-data-table-scroll">
|
||||
<table class="upstream-data-table refund-data-table refund-data-table--wide" aria-label="非京喜退款数据">
|
||||
<thead>
|
||||
<tr>
|
||||
@foreach ($columns as $column)
|
||||
<th>{{ $column }}</th>
|
||||
@endforeach
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr class="is-empty">
|
||||
<td colspan="{{ count($columns) }}">暂无数据</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<div class="upstream-data-pagination">
|
||||
<span>共 0 条记录</span>
|
||||
<span>第 1 / 1 页</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -95,19 +95,60 @@ class PagesTest extends FeatureTestCase
|
||||
'page' => 'jingxi-refund-data',
|
||||
]));
|
||||
|
||||
foreach ([
|
||||
'jingxi-refund-data' => '京喜退款数据',
|
||||
'non-jingxi-refund-data' => '非京喜退款数据',
|
||||
] as $page => $title) {
|
||||
$this->get(route('business.pages.show', [
|
||||
'section' => 'refunds',
|
||||
'page' => $page,
|
||||
]))
|
||||
->assertOk()
|
||||
->assertSeeText($title)
|
||||
->assertSeeText('该页面暂未配置数据表,敬请期待。')
|
||||
->assertSee('class="biz-empty"', false);
|
||||
}
|
||||
$this->get(route('business.pages.show', [
|
||||
'section' => 'refunds',
|
||||
'page' => 'jingxi-refund-data',
|
||||
]))
|
||||
->assertOk()
|
||||
->assertSeeText('京喜退款数据')
|
||||
->assertSeeText('该页面暂未配置数据表,敬请期待。')
|
||||
->assertSee('class="biz-empty"', false);
|
||||
|
||||
$this->get(route('business.pages.show', [
|
||||
'section' => 'refunds',
|
||||
'page' => 'non-jingxi-refund-data',
|
||||
]))
|
||||
->assertOk()
|
||||
->assertSeeText('非京喜退款数据')
|
||||
->assertSee('aria-label="非京喜退款数据"', false)
|
||||
->assertSeeText('暂无数据')
|
||||
->assertSee('class="upstream-data-table refund-data-table refund-data-table--wide"', false)
|
||||
->assertDontSee('class="biz-empty"', false)
|
||||
->assertSeeInOrder([
|
||||
'<th>Id</th>',
|
||||
'<th>refundDate</th>',
|
||||
'<th>as_id</th>',
|
||||
'<th>outer_as_id</th>',
|
||||
'<th>o_id</th>',
|
||||
'<th></th>',
|
||||
'<th>so_id</th>',
|
||||
'<th>type</th>',
|
||||
'<th>node</th>',
|
||||
'<th>isZC</th>',
|
||||
'<th>shop_name</th>',
|
||||
'<th>platform</th>',
|
||||
'<th>responsibleDepartment</th>',
|
||||
'<th>totalRefundMoney</th>',
|
||||
'<th>originPostcode</th>',
|
||||
'<th>shop_i_i_id</th>',
|
||||
'<th>shop_sku_id</th>',
|
||||
'<th>i_id</th>',
|
||||
'<th>sku_id</th>',
|
||||
'<th>buyer_paid_amount</th>',
|
||||
'<th>qty</th>',
|
||||
'<th>unitCostGoods</th>',
|
||||
'<th>detailRefundMoney</th>',
|
||||
'<th>refundType</th>',
|
||||
'<th>refundQty</th>',
|
||||
'<th>refundCostGoods</th>',
|
||||
'<th>RefundMoneyIncome</th>',
|
||||
'<th>AfSalesMoney</th>',
|
||||
'<th>createTime</th>',
|
||||
'<th>status</th>',
|
||||
'<th>shop_status</th>',
|
||||
'<th>created</th>',
|
||||
'<th>confirm_date</th>',
|
||||
], false);
|
||||
|
||||
$this->withExceptionHandling()->get(route('business.pages.show', [
|
||||
'section' => 'refunds',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user