feat: 调整供应商退货字段与明细布局 #853
@ -27,8 +27,9 @@ class SupplierPayableMaintenanceRegistry
|
||||
'sku_name' => $text('商品名称'), 'qty' => $money('发货量'), 'unit_price' => $money('单价'),
|
||||
'amount' => $money('金额'), 'guess_unit_price' => $money('预估单价'), 'guess_amount' => $money('预估金额'),
|
||||
'supplier_barcode' => $text('供应商条码'), 'remark' => $text('备注'), 'title' => $text('标题'),
|
||||
'wms_pick_no' => $text('wms配货单号'),
|
||||
'warehouse' => $text('仓库名称'), 'express_no' => $text('快递单号'),
|
||||
'express_name' => $text('快递名称'), 'labels' => $text('标记多标签'), 'reconciler' => $text('对账人'),
|
||||
'labels' => $text('标记多标签'), 'creator' => $text('操作人'), 'reconciler' => $text('对账人'),
|
||||
],
|
||||
'invoice-deductions' => [
|
||||
'month_str' => $month('日期'), 'category' => $text('类别'), 'payee' => $text('打款抬头'),
|
||||
|
||||
@ -67,7 +67,6 @@
|
||||
<el-table-column prop="wms_pick_no" label="wms配货单号" width="120" show-overflow-tooltip></el-table-column>
|
||||
<el-table-column prop="warehouse" label="仓库名称" width="120" show-overflow-tooltip></el-table-column>
|
||||
<el-table-column prop="express_no" label="快递单号" width="130" show-overflow-tooltip></el-table-column>
|
||||
<el-table-column prop="express_name" label="快递名称" width="100" show-overflow-tooltip></el-table-column>
|
||||
<el-table-column prop="io_date" label="发货时间" width="110" show-overflow-tooltip></el-table-column>
|
||||
<el-table-column prop="original_barcode" label="原条码" width="130" show-overflow-tooltip>
|
||||
<template slot-scope="scope"><span class="text-gray-400">@{{ scope.row.original_barcode || '-' }}</span></template>
|
||||
@ -78,7 +77,7 @@
|
||||
<span v-else class="text-gray-400">-</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="creator" label="创建人" width="100" show-overflow-tooltip></el-table-column>
|
||||
<el-table-column prop="creator" label="操作人" width="100" show-overflow-tooltip></el-table-column>
|
||||
<el-table-column prop="reconciler" label="对账人" width="100" show-overflow-tooltip>
|
||||
<template slot-scope="scope"><span class="text-gray-400">@{{ scope.row.reconciler || '-' }}</span></template>
|
||||
</el-table-column>
|
||||
|
||||
@ -81,7 +81,7 @@
|
||||
<span v-else class="text-gray-400">-</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="creator" label="创建人" width="100" show-overflow-tooltip></el-table-column>
|
||||
<el-table-column prop="creator" label="操作人" width="100" show-overflow-tooltip></el-table-column>
|
||||
<el-table-column prop="reconciler" label="对账人" width="100" show-overflow-tooltip>
|
||||
<template slot-scope="scope">@{{ scope.row.reconciler || '-' }}</template>
|
||||
</el-table-column>
|
||||
|
||||
@ -47,7 +47,14 @@
|
||||
.supplier-reconciliation-page .sr-return-stat strong { color: var(--vip-content-ink, #171717); font-size: 1.375rem; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; white-space: nowrap; }
|
||||
.supplier-reconciliation-page .sr-return-stat strong small { margin-left: 3px; color: var(--vip-content-muted, #595959); font-size: .75rem; font-weight: 500; }
|
||||
.supplier-reconciliation-page .sr-return-stat em { color: var(--vip-content-muted, #595959); font-size: .8125rem; font-style: normal; font-variant-numeric: tabular-nums; }
|
||||
.supplier-reconciliation-page .sr-return-table { min-width: 1420px; }
|
||||
.supplier-reconciliation-page .sr-return-table { min-width: 1320px; table-layout: fixed; font-size: .75rem; }
|
||||
.supplier-reconciliation-page .sr-return-table th { padding: 9px 8px; font-size: .6875rem; letter-spacing: .02em; }
|
||||
.supplier-reconciliation-page .sr-return-table td { padding: 8px; vertical-align: middle; line-height: 1.5; }
|
||||
.supplier-reconciliation-page .sr-return-table td.is-sku-name { color: #3F3A32; font-size: .6875rem; line-height: 1.45; overflow-wrap: anywhere; }
|
||||
.supplier-reconciliation-page .sr-return-table tbody tr:not(.is-logistics):nth-child(even) td { background: #FBFAF6; }
|
||||
.supplier-reconciliation-page .sr-return-table tbody tr:hover td { background: #FAF6ED; }
|
||||
.supplier-reconciliation-page .sr-return-table .sr-return-actions { flex-wrap: nowrap; gap: 4px; justify-content: flex-end; }
|
||||
.supplier-reconciliation-page .sr-return-table .sr-return-actions .sr-button.is-small { height: 22px; min-width: 36px; padding: 0 7px; }
|
||||
.supplier-reconciliation-page .sr-return-scroll { max-height: min(62vh, 560px); overflow: auto; scrollbar-gutter: stable; }
|
||||
.supplier-reconciliation-page .sr-return-scroll thead th { position: sticky; top: 0; z-index: 4; box-shadow: 0 1px 0 var(--vip-border, #D8D2C7); }
|
||||
.supplier-reconciliation-page .sr-filter { display: grid; grid-template-columns: minmax(220px, 1.6fr) repeat(2, minmax(135px, .8fr)) minmax(150px, 1fr) minmax(125px, .75fr); gap: 10px 12px; align-items: end; padding: 12px; border: 1px solid #EFEAE0; border-radius: 8px; background: #FCFAF5; }
|
||||
@ -311,11 +318,27 @@
|
||||
</form>
|
||||
<div class="sr-scroll sr-return-scroll">
|
||||
<table class="sr-return-table">
|
||||
<colgroup>
|
||||
<col style="width: 7%">
|
||||
<col style="width: 6%">
|
||||
<col style="width: 12%">
|
||||
<col style="width: 15%">
|
||||
<col style="width: 4%">
|
||||
<col style="width: 5%">
|
||||
<col style="width: 5%">
|
||||
<col style="width: 6%">
|
||||
<col style="width: 5%">
|
||||
<col style="width: 8%">
|
||||
<col style="width: 6%">
|
||||
<col style="width: 9%">
|
||||
<col style="width: 4%">
|
||||
<col style="width: 8%">
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">发货时间</th><th scope="col">明细供应商</th><th scope="col">条形码</th>
|
||||
<th scope="col">商品名称</th><th scope="col">发货量</th><th scope="col">单价</th>
|
||||
<th scope="col">金额</th><th scope="col">供应商条码</th><th scope="col">备注</th>
|
||||
<th scope="col">金额</th><th scope="col">备注</th>
|
||||
<th scope="col">标题</th><th scope="col">wms配货单号</th><th scope="col">仓库名称</th>
|
||||
<th scope="col">快递单号</th><th scope="col">类型</th><th scope="col">操作</th>
|
||||
</tr>
|
||||
@ -326,11 +349,10 @@
|
||||
<td>{{ $row['send_time'] ?? '—' }}</td>
|
||||
<td>{{ $row['supplier'] ?? '—' }}</td>
|
||||
<td>{{ $row['barcode'] ?? '—' }}</td>
|
||||
<td>{{ $row['sku_name'] ?? '—' }}</td>
|
||||
<td class="is-sku-name">{{ $row['sku_name'] ?? '—' }}</td>
|
||||
<td class="is-num">{{ $row['qty'] ?? '—' }}</td>
|
||||
<td class="is-num">{{ $row['unit_price'] ?? '—' }}</td>
|
||||
<td class="is-num">{{ $row['amount'] ?? '—' }}</td>
|
||||
<td>{{ $row['supplier_barcode'] ?? '—' }}</td>
|
||||
<td>
|
||||
{{ $row['remark'] ?? '—' }}
|
||||
@if ($row['_accounting_target'] !== '厂家')
|
||||
@ -369,7 +391,7 @@
|
||||
</td>
|
||||
</tr>
|
||||
@empty
|
||||
<tr><td colspan="15"><div class="sr-empty">没有符合当前查询条件的退货数据。</div></td></tr>
|
||||
<tr><td colspan="14"><div class="sr-empty">没有符合当前查询条件的退货数据。</div></td></tr>
|
||||
@endforelse
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
@ -317,8 +317,8 @@ class SupplierReconciliationTest extends FeatureTestCase
|
||||
$this->assertNotFalse($tableEnd, '厂家退货表应正常结束。');
|
||||
|
||||
$returnTable = substr($html, $tableStart, $tableEnd - $tableStart);
|
||||
$this->assertSame(15, substr_count($returnTable, '<th scope="col">'));
|
||||
foreach (['月份', '预估单价', '预估金额', '标记多标签', '创建人', '对账人'] as $hiddenColumn) {
|
||||
$this->assertSame(14, substr_count($returnTable, '<th scope="col">'));
|
||||
foreach (['月份', '预估单价', '预估金额', '供应商条码', '标记多标签', '创建人', '对账人'] as $hiddenColumn) {
|
||||
$this->assertStringNotContainsString('<th scope="col">' . $hiddenColumn . '</th>', $returnTable);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user