fix: 设备验收预警优化

This commit is contained in:
sophie committed 2026-10-13 15:52:09 +08:00
1 parent 7e7bcbd388
commit b8cc0cbe77
25 files changed
+1398 -193

No files matched your search

@@ -0,0 +1,279 @@
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<title>设备验收预警 · 发送效果图</title>
<style>
:root {
--ink: #142033;
--muted: #64748b;
--line: #dce4ef;
--paper: #ffffff;
--page: #f3f6fa;
--brand: #1d4e89;
--chat: #ededed;
--ok: #217346;
}
* { box-sizing: border-box; }
body {
margin: 0;
min-height: 100vh;
background: var(--page);
color: var(--ink);
font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
.page { max-width: 1180px; margin: 0 auto; padding: 18px 20px 48px; }
h1 { margin: 0; font-size: 20px; }
.note { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.grid {
display: grid;
grid-template-columns: 380px minmax(0, 1fr);
gap: 16px;
margin-top: 16px;
align-items: start;
}
.panel {
background: var(--paper);
border: 1px solid var(--line);
border-radius: 16px;
box-shadow: 0 1px 2px rgba(20, 32, 51, 0.04);
}
.panel h2 { margin: 0; font-size: 15px; }
.panel .sub { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.head { padding: 16px 18px 0; }
.phone {
margin: 14px 18px 18px;
border-radius: 28px;
background: #111;
padding: 10px;
}
.screen {
overflow: hidden;
border-radius: 20px;
background: var(--chat);
min-height: 560px;
}
.bar {
display: flex;
align-items: center;
justify-content: center;
height: 48px;
background: #f7f7f7;
border-bottom: 1px solid #e5e5e5;
font-size: 15px;
font-weight: 700;
}
.thread { padding: 16px 14px 22px; }
.time { margin: 0 0 12px; text-align: center; color: #8a8a8a; font-size: 12px; }
.card {
background: #fff;
border-radius: 6px;
padding: 14px 14px 0;
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}
.card h3 { margin: 0 0 10px; font-size: 16px; font-weight: 700; }
.card p { margin: 0; color: #3d3d3d; font-size: 14px; line-height: 1.65; white-space: pre-line; }
.more {
display: flex;
align-items: center;
justify-content: space-between;
margin-top: 12px;
padding: 10px 0 12px;
border-top: 1px solid #ececec;
color: #1f1f1f;
font-size: 14px;
}
.file {
display: flex;
align-items: center;
gap: 10px;
width: 250px;
margin-top: 10px;
padding: 10px 12px;
background: #fff;
border-radius: 6px;
}
.xls {
display: grid;
place-items: center;
width: 36px;
height: 40px;
border-radius: 4px;
background: var(--ok);
color: #fff;
font-size: 11px;
font-weight: 800;
}
.file b { display: block; font-size: 13px; font-weight: 650; }
.file span { color: #8a8a8a; font-size: 12px; }
.sheet { padding: 8px 12px 16px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th, td { padding: 8px 10px; text-align: left; white-space: nowrap; }
.sheet th { background: #e8f3ec; color: #145c32; font-weight: 700; border-bottom: 1px solid #cfe3d6; }
.sheet td { border-bottom: 1px solid #edf2f7; }
.sheet tr:nth-child(even) td { background: #fbfcfd; }
.foot { padding: 0 18px 16px; color: var(--muted); font-size: 12px; }
.admin { margin-top: 16px; }
.tabs { display: flex; gap: 4px; margin-top: 14px; border-bottom: 1px solid var(--line); }
.tabs span {
margin-bottom: -1px;
padding: 8px 12px 10px;
border-bottom: 2px solid transparent;
color: var(--muted);
font-size: 14px;
font-weight: 700;
}
.tabs .on { border-color: var(--brand); color: var(--brand); }
.toolbar {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
padding: 12px 18px 0;
}
.toolbar p { margin: 0; color: var(--muted); font-size: 12px; }
button {
border: 1px solid var(--brand);
background: var(--brand);
color: #fff;
border-radius: 8px;
padding: 7px 12px;
font-size: 12px;
font-weight: 700;
}
.list { padding: 12px 12px 8px; overflow-x: auto; }
.list th { background: #f8fbff; color: var(--muted); font-weight: 700; }
.list td { border-bottom: 1px solid var(--line); }
.sent { color: #142033; }
.wait { color: #9a6700; font-weight: 700; }
.bad { color: #b42318; font-weight: 700; }
@media (max-width: 900px) {
.grid { grid-template-columns: 1fr; }
}
</style>
</head>
<body>
<main class="page">
<h1>设备验收预警 · 发送效果图</h1>
<p class="note">效果图,尚未接到现有页面。同一个人只收一条汇总卡片,明细在下一条 Excel。不再区分主送和抄送。</p>
<div class="grid">
<section class="panel">
<div class="head">
<h2>sophie 收到的企业微信</h2>
<p class="sub">她这一轮有 18 张单,卡片里不逐条列出。</p>
</div>
<div class="phone">
<div class="screen">
<div class="bar">设备验收预警</div>
<div class="thread">
<p class="time">19:52</p>
<article class="card">
<h3>设备验收停留提醒</h3>
<p>共 18 张验收单。
超过 30 天 12 张,超过 37 天 4 张,超过 44 天 2 张。
明细见下一条文件。</p>
<div class="more"><span>查看详情</span><span>›</span></div>
</article>
<article class="file">
<div class="xls">XLS</div>
<div>
<b>设备验收停留提醒.xlsx</b>
<span>28.4 KB</span>
</div>
</article>
</div>
</div>
</div>
</section>
<section class="panel">
<div class="head">
<h2>附件里的前 8 行</h2>
<p class="sub">只含 sophie 本人要看的单。通知身份说明她为什么会收到,不再写主送、抄送。</p>
</div>
<div class="sheet">
<table>
<thead>
<tr>
<th>验收单号</th>
<th>采购单号</th>
<th>申请人</th>
<th>轮次</th>
<th>停留天数</th>
<th>当前节点</th>
<th>当前处理人</th>
<th>通知身份</th>
</tr>
</thead>
<tbody>
<tr><td>20260210000001</td><td>1111</td><td>孙浩</td><td>超过 30 天</td><td>31</td><td>使用部门担当</td><td>吴敏</td><td>直接主管</td></tr>
<tr><td>20260211000008</td><td>CG-0881</td><td>李文</td><td>超过 30 天</td><td>33</td><td>品质担当</td><td>林可</td><td>直接主管</td></tr>
<tr><td>20260212000015</td><td>CG-0902</td><td>周洋</td><td>超过 30 天</td><td>36</td><td>公用主管</td><td>sophie</td><td>当前处理人</td></tr>
<tr><td>20260213000022</td><td>CG-0910</td><td>孙浩</td><td>超过 37 天</td><td>40</td><td>设备管理部</td><td>周宁</td><td>采购经副理</td></tr>
<tr><td>20260214000031</td><td>CG-0933</td><td>陈敏</td><td>超过 37 天</td><td>41</td><td>品质经理</td><td>何倩</td><td>采购经副理</td></tr>
<tr><td>20260215000040</td><td>CG-0948</td><td>刘洋</td><td>超过 44 天</td><td>46</td><td>COO</td><td>陈立</td><td>采购经副理</td></tr>
<tr><td>20260216000052</td><td>CG-0961</td><td>王磊</td><td>超过 30 天</td><td>32</td><td>使用部门经理</td><td>赵凯</td><td>直接主管</td></tr>
<tr><td>20260217000060</td><td>CG-0977</td><td>孙浩</td><td>超过 30 天</td><td>35</td><td>固定资产管理人</td><td>孙浩</td><td>采购担当</td></tr>
</tbody>
</table>
</div>
<p class="foot">文件内共 18 行。同一张单若第 1 轮和第 2 轮都还没发过,会各占一行。停留天数是发送当时的天数。</p>
</section>
</div>
<section class="panel admin">
<div class="tabs">
<span>停留情况</span>
<span class="on">发送记录</span>
<span>预警配置</span>
</div>
<div class="toolbar">
<p>每日扫描生成待发送。每周五 18:00 按人汇总,每人一条卡片加一份 Excel。这里仍是一条记录对应一张单的一轮。</p>
<button type="button">导出 Excel</button>
</div>
<div class="list">
<table>
<thead>
<tr>
<th>验收单号</th>
<th>采购单号</th>
<th>轮次</th>
<th>收件人</th>
<th>结果</th>
<th>发送时间</th>
</tr>
</thead>
<tbody>
<tr>
<td>20260210000001</td>
<td>1111</td>
<td>超过 30 天</td>
<td>吴敏、sophie、孙浩</td>
<td class="sent">已发送</td>
<td>2026-10-12 18:55:18</td>
</tr>
<tr>
<td>20260212000015</td>
<td>CG-0902</td>
<td>超过 37 天</td>
<td>孙经理、COO、赵琴</td>
<td class="wait">待发送</td>
<td>—</td>
</tr>
<tr>
<td>20260215000040</td>
<td>CG-0948</td>
<td>超过 44 天</td>
<td>COO、赵琴</td>
<td class="bad">发送失败</td>
<td>—</td>
</tr>
</tbody>
</table>
</div>
<p class="foot">页面上的「导出 Excel」是当前列表里的全部记录。个人在企业微信里收到的文件只含他自己的行。</p>
</section>
</main>
</body>
</html>