fix(供应商对账): 突出对账单必填规则 (#1330)
明确厂家对账单必填规则,并升级上传区域提示样式。 Co-authored-by: 苏木 <594326199@qq.com> Co-committed-by: 苏木 <594326199@qq.com>
This commit is contained in:
parent
da35e00eec
commit
03dfc70da7
@ -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 @@
|
||||
</button>
|
||||
</form>
|
||||
|
||||
<div class="sp-file-meta">
|
||||
<span>采购单号建议填写,系统会按采购单号、日期和条码与结算数据匹配。</span>
|
||||
<span>单价或金额留空时会按数量补齐。</span>
|
||||
<div class="sp-upload-rules" role="note" aria-labelledby="sp-upload-rules-title">
|
||||
<span class="sp-upload-rules-icon material-icons-outlined" aria-hidden="true">priority_high</span>
|
||||
<div class="sp-upload-rules-copy">
|
||||
<strong id="sp-upload-rules-title">对账单必填规则</strong>
|
||||
<p><b>入库厂家</b>须填写采购单号,<b>代发厂家</b>须填写快递单号;未定价产品的<b>单价和金额</b>请统一填 <b>0</b>。</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@if ($latestUpload)
|
||||
|
||||
@ -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, '上传记录');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user