diff --git a/resources/views/portal/supplier-reconciliation/workspace.blade.php b/resources/views/portal/supplier-reconciliation/workspace.blade.php index 9aea42ef..3cc23931 100644 --- a/resources/views/portal/supplier-reconciliation/workspace.blade.php +++ b/resources/views/portal/supplier-reconciliation/workspace.blade.php @@ -312,7 +312,35 @@ .supplier-portal-page .sp-file-copy { display: grid; gap: 2px; min-width: 0; } .supplier-portal-page .sp-file-copy strong { overflow: hidden; font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; } .supplier-portal-page .sp-file-copy span { color: var(--sp-muted); font-size: 12px; } - .supplier-portal-page .sp-file-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 10px; color: var(--sp-muted); font-size: 12px; } + .supplier-portal-page .sp-upload-rules { + display: flex; + align-items: flex-start; + gap: 11px; + margin-top: 12px; + padding: 12px 14px; + border: 1px solid #E0C28A; + border-left: 4px solid var(--sp-warning); + border-radius: 8px; + background: linear-gradient(90deg, #FFF5E0 0%, #FFFBF2 100%); + box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04); + } + + .supplier-portal-page .sp-upload-rules-icon { + display: grid; + width: 30px; + height: 30px; + flex: 0 0 auto; + place-items: center; + border-radius: 999px; + background: #F1D9A8; + color: var(--sp-warning); + font-size: 18px; + } + + .supplier-portal-page .sp-upload-rules-copy { display: grid; gap: 3px; min-width: 0; } + .supplier-portal-page .sp-upload-rules-copy strong { color: var(--sp-warning); font-size: 12px; font-weight: 700; } + .supplier-portal-page .sp-upload-rules-copy p { margin: 0; color: var(--sp-ink); font-size: 12px; line-height: 1.7; } + .supplier-portal-page .sp-upload-rules-copy b { color: var(--sp-warning); font-weight: 700; } .supplier-portal-page .sp-summary { display: grid; @@ -502,9 +530,12 @@ -
- 采购单号建议填写,系统会按采购单号、日期和条码与结算数据匹配。 - 单价或金额留空时会按数量补齐。 +
+ +
+ 对账单必填规则 +

入库厂家须填写采购单号,代发厂家须填写快递单号;未定价产品的单价和金额请统一填 0。

+
@if ($latestUpload) diff --git a/tests/Feature/Business/SupplierReconciliationTest.php b/tests/Feature/Business/SupplierReconciliationTest.php index 911480b5..5d887df9 100644 --- a/tests/Feature/Business/SupplierReconciliationTest.php +++ b/tests/Feature/Business/SupplierReconciliationTest.php @@ -1106,6 +1106,10 @@ class SupplierReconciliationTest extends FeatureTestCase ])) ->assertOk() ->assertSeeText('晨丰 · 厂家对账') + ->assertSeeText('对账单必填规则') + ->assertSeeText('入库厂家须填写采购单号') + ->assertSeeText('代发厂家须填写快递单号') + ->assertSeeText('未定价产品的单价和金额请统一填 0') ->assertSeeText('上传记录') ->assertSeeText('退货扣减确认') ->assertSeeText('退货金额') @@ -1120,6 +1124,7 @@ class SupplierReconciliationTest extends FeatureTestCase ->assertDontSeeText('厂家上传成功后,下面的数据与「财务端数据」的比对结果立即更新。'); $response->assertSee('sp-return-scroll', false); + $response->assertSee('sp-upload-rules', false); $html = (string) $response->getContent(); $uploadHistoryPosition = strpos($html, '上传记录');