988 lines
28 KiB
HTML
988 lines
28 KiB
HTML
<!doctype html>
|
|
<html lang="zh-CN">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<title>正式产品立项流程参考</title>
|
|
<style>
|
|
:root {
|
|
--bg: #eef3f7;
|
|
--panel: #ffffff;
|
|
--panel-soft: #f7f9fb;
|
|
--line: #d9e2ea;
|
|
--text: #0f1c29;
|
|
--muted: #667789;
|
|
--ink: #314554;
|
|
--dark: #263a46;
|
|
--green: #dff7eb;
|
|
--green-text: #156b3f;
|
|
--amber: #fff2d9;
|
|
--amber-text: #8a5a00;
|
|
--red: #ffe6e9;
|
|
--red-text: #a32135;
|
|
--blue: #e8f1fb;
|
|
--blue-text: #23659b;
|
|
--shadow: 0 16px 38px rgba(21, 39, 54, 0.08);
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
margin: 0;
|
|
background: var(--bg);
|
|
color: var(--text);
|
|
font-family:
|
|
Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
|
|
font-size: 14px;
|
|
}
|
|
|
|
button,
|
|
input,
|
|
textarea {
|
|
font: inherit;
|
|
}
|
|
|
|
.shell {
|
|
min-height: 100vh;
|
|
display: grid;
|
|
grid-template-rows: 58px 1fr;
|
|
}
|
|
|
|
.topbar {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 24px;
|
|
padding: 0 28px;
|
|
border-bottom: 1px solid var(--line);
|
|
background: rgba(255, 255, 255, 0.96);
|
|
}
|
|
|
|
.brand {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
min-width: 205px;
|
|
}
|
|
|
|
.mark {
|
|
width: 28px;
|
|
height: 28px;
|
|
border-radius: 7px;
|
|
background: #0f1720;
|
|
color: white;
|
|
display: grid;
|
|
place-items: center;
|
|
font-weight: 800;
|
|
}
|
|
|
|
.brand-title {
|
|
font-weight: 800;
|
|
letter-spacing: 0;
|
|
}
|
|
|
|
.brand-subtitle {
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
margin-top: 1px;
|
|
}
|
|
|
|
.nav {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
.nav-item {
|
|
border: 0;
|
|
background: transparent;
|
|
color: #526475;
|
|
padding: 9px 14px;
|
|
border-radius: 9px;
|
|
}
|
|
|
|
.nav-item.active {
|
|
background: #e9eef3;
|
|
color: #0f1c29;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.top-spacer {
|
|
flex: 1;
|
|
}
|
|
|
|
.search {
|
|
width: 240px;
|
|
border: 0;
|
|
border-radius: 9px;
|
|
background: #f1f5f8;
|
|
padding: 10px 14px;
|
|
color: var(--muted);
|
|
}
|
|
|
|
.main {
|
|
padding: 22px 28px;
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr) 318px;
|
|
gap: 14px;
|
|
}
|
|
|
|
.workspace,
|
|
.inspector {
|
|
border: 1px solid var(--line);
|
|
background: rgba(255, 255, 255, 0.92);
|
|
border-radius: 18px;
|
|
box-shadow: var(--shadow);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.workspace {
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-height: calc(100vh - 102px);
|
|
}
|
|
|
|
.stage-header {
|
|
display: grid;
|
|
grid-template-columns: 228px minmax(0, 1fr) auto;
|
|
gap: 18px;
|
|
padding: 20px;
|
|
border-bottom: 1px solid var(--line);
|
|
}
|
|
|
|
.preview {
|
|
height: 164px;
|
|
border: 1px solid var(--line);
|
|
border-radius: 14px;
|
|
background:
|
|
linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(0, 0, 0, 0)),
|
|
#edf1f4;
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.desk {
|
|
position: absolute;
|
|
left: 42px;
|
|
right: 42px;
|
|
top: 55px;
|
|
height: 28px;
|
|
border-radius: 5px;
|
|
background: #5b3826;
|
|
box-shadow: inset 0 -7px 0 rgba(0, 0, 0, 0.18);
|
|
}
|
|
|
|
.leg {
|
|
position: absolute;
|
|
top: 80px;
|
|
width: 8px;
|
|
height: 66px;
|
|
border-radius: 2px;
|
|
background: #302015;
|
|
}
|
|
|
|
.leg.one {
|
|
left: 64px;
|
|
}
|
|
|
|
.leg.two {
|
|
left: 102px;
|
|
}
|
|
|
|
.leg.three {
|
|
right: 94px;
|
|
}
|
|
|
|
.leg.four {
|
|
right: 58px;
|
|
}
|
|
|
|
.facts {
|
|
display: grid;
|
|
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
gap: 13px 28px;
|
|
align-content: start;
|
|
}
|
|
|
|
.fact label,
|
|
.field label {
|
|
display: block;
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
margin-bottom: 5px;
|
|
}
|
|
|
|
.fact strong {
|
|
display: block;
|
|
color: var(--text);
|
|
font-size: 15px;
|
|
}
|
|
|
|
.phase-switch {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
min-width: 152px;
|
|
}
|
|
|
|
.switch-btn,
|
|
.action-btn {
|
|
border: 1px solid var(--line);
|
|
border-radius: 10px;
|
|
background: var(--panel-soft);
|
|
color: var(--ink);
|
|
padding: 10px 12px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.switch-btn.active,
|
|
.action-btn.primary {
|
|
border-color: #213745;
|
|
background: #213745;
|
|
color: white;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.content {
|
|
padding: 16px;
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.65fr);
|
|
gap: 14px;
|
|
flex: 1;
|
|
min-height: 0;
|
|
}
|
|
|
|
.review-main,
|
|
.decision-panel {
|
|
border: 1px solid var(--line);
|
|
border-radius: 16px;
|
|
background: var(--panel);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.section-title {
|
|
padding: 14px 16px;
|
|
border-bottom: 1px solid var(--line);
|
|
background: var(--panel-soft);
|
|
}
|
|
|
|
.section-title h2,
|
|
.section-title h3 {
|
|
margin: 0;
|
|
font-size: 17px;
|
|
}
|
|
|
|
.section-title p {
|
|
margin: 6px 0 0;
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.source-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
gap: 10px;
|
|
padding: 14px;
|
|
}
|
|
|
|
.source {
|
|
border: 1px solid var(--line);
|
|
background: var(--panel-soft);
|
|
border-radius: 12px;
|
|
padding: 12px;
|
|
min-height: 112px;
|
|
}
|
|
|
|
.source-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: 10px;
|
|
align-items: center;
|
|
}
|
|
|
|
.source h3 {
|
|
margin: 0;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-width: 24px;
|
|
height: 22px;
|
|
padding: 0 8px;
|
|
border-radius: 99px;
|
|
background: #dfe7ee;
|
|
color: #344755;
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.source p {
|
|
margin: 10px 0 0;
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
line-height: 1.7;
|
|
}
|
|
|
|
.form-grid {
|
|
border-top: 1px solid var(--line);
|
|
padding: 14px;
|
|
display: grid;
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
gap: 12px;
|
|
}
|
|
|
|
.field input,
|
|
.field textarea {
|
|
width: 100%;
|
|
border: 1px solid var(--line);
|
|
border-radius: 10px;
|
|
background: #fff;
|
|
padding: 10px 12px;
|
|
color: var(--text);
|
|
outline: none;
|
|
}
|
|
|
|
.field textarea {
|
|
min-height: 92px;
|
|
resize: vertical;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.field.wide {
|
|
grid-column: 1 / -1;
|
|
}
|
|
|
|
.decision-panel {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.status-card {
|
|
margin: 14px;
|
|
border-radius: 14px;
|
|
padding: 14px;
|
|
background: var(--amber);
|
|
color: var(--amber-text);
|
|
}
|
|
|
|
.status-card.approved {
|
|
background: var(--green);
|
|
color: var(--green-text);
|
|
}
|
|
|
|
.status-card.revision {
|
|
background: var(--blue);
|
|
color: var(--blue-text);
|
|
}
|
|
|
|
.status-card.rejected {
|
|
background: var(--red);
|
|
color: var(--red-text);
|
|
}
|
|
|
|
.status-card strong {
|
|
display: block;
|
|
font-size: 18px;
|
|
color: inherit;
|
|
}
|
|
|
|
.status-card span {
|
|
display: block;
|
|
margin-top: 6px;
|
|
font-size: 12px;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.actions {
|
|
display: grid;
|
|
grid-template-columns: 1fr;
|
|
gap: 8px;
|
|
padding: 0 14px 14px;
|
|
}
|
|
|
|
.action-btn.revision {
|
|
background: var(--blue);
|
|
color: var(--blue-text);
|
|
border-color: #c4dff2;
|
|
}
|
|
|
|
.action-btn.rejected {
|
|
background: var(--red);
|
|
color: var(--red-text);
|
|
border-color: #f4c7ce;
|
|
}
|
|
|
|
.timeline {
|
|
border-top: 1px solid var(--line);
|
|
padding: 14px;
|
|
}
|
|
|
|
.timeline h3 {
|
|
margin: 0 0 10px;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.step {
|
|
display: grid;
|
|
grid-template-columns: 24px 1fr;
|
|
gap: 8px;
|
|
margin-bottom: 12px;
|
|
color: var(--muted);
|
|
font-size: 12px;
|
|
line-height: 1.55;
|
|
}
|
|
|
|
.dot {
|
|
width: 20px;
|
|
height: 20px;
|
|
border-radius: 99px;
|
|
display: grid;
|
|
place-items: center;
|
|
background: #dfe7ee;
|
|
color: #405466;
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.step.done .dot {
|
|
background: #0f1c29;
|
|
color: white;
|
|
}
|
|
|
|
.step strong {
|
|
display: block;
|
|
color: var(--text);
|
|
font-size: 13px;
|
|
}
|
|
|
|
.inspector {
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-height: calc(100vh - 102px);
|
|
}
|
|
|
|
.inspector-head {
|
|
padding: 18px;
|
|
border-bottom: 1px solid var(--line);
|
|
}
|
|
|
|
.eyebrow {
|
|
color: #8da0b1;
|
|
font-size: 11px;
|
|
font-weight: 800;
|
|
letter-spacing: 0.15em;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.inspector-head h2 {
|
|
margin: 8px 0 0;
|
|
font-size: 20px;
|
|
}
|
|
|
|
.inspector-head p {
|
|
margin: 8px 0 0;
|
|
color: var(--muted);
|
|
line-height: 1.6;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.node-list {
|
|
padding: 12px;
|
|
display: grid;
|
|
gap: 8px;
|
|
}
|
|
|
|
.node {
|
|
width: 100%;
|
|
border: 1px solid var(--line);
|
|
border-radius: 12px;
|
|
background: #fff;
|
|
padding: 11px 12px;
|
|
text-align: left;
|
|
display: grid;
|
|
grid-template-columns: 28px 1fr auto;
|
|
gap: 10px;
|
|
align-items: center;
|
|
}
|
|
|
|
.node.active {
|
|
border-color: #203542;
|
|
background: #eef4f8;
|
|
}
|
|
|
|
.node.locked {
|
|
opacity: 0.45;
|
|
}
|
|
|
|
.node-index {
|
|
width: 25px;
|
|
height: 25px;
|
|
border-radius: 8px;
|
|
background: #f0f4f7;
|
|
display: grid;
|
|
place-items: center;
|
|
color: var(--muted);
|
|
font-size: 11px;
|
|
}
|
|
|
|
.node-title {
|
|
font-weight: 700;
|
|
}
|
|
|
|
.node-desc {
|
|
color: var(--muted);
|
|
font-size: 11px;
|
|
margin-top: 3px;
|
|
}
|
|
|
|
.count {
|
|
border-radius: 99px;
|
|
min-width: 26px;
|
|
text-align: center;
|
|
background: #eef2f5;
|
|
color: #405466;
|
|
padding: 3px 8px;
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.locked-note {
|
|
margin: auto 12px 12px;
|
|
border: 1px solid #efd49d;
|
|
border-radius: 12px;
|
|
background: #fff9ec;
|
|
color: #7b520c;
|
|
padding: 12px;
|
|
font-size: 12px;
|
|
line-height: 1.65;
|
|
}
|
|
|
|
[data-approved="false"] .approved-only {
|
|
display: none;
|
|
}
|
|
|
|
[data-approved="true"] .draft-only {
|
|
display: none;
|
|
}
|
|
|
|
@media (max-width: 1200px) {
|
|
.main,
|
|
.content,
|
|
.stage-header {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.inspector {
|
|
min-height: auto;
|
|
}
|
|
}
|
|
</style>
|
|
</head>
|
|
<body data-approved="false" data-decision="draft">
|
|
<div class="shell">
|
|
<header class="topbar">
|
|
<div class="brand">
|
|
<div class="mark">J</div>
|
|
<div>
|
|
<div class="brand-title">壹点产品开发平台</div>
|
|
<div class="brand-subtitle">正式产品流程参考</div>
|
|
</div>
|
|
</div>
|
|
<nav class="nav" aria-label="主导航">
|
|
<button class="nav-item">首页概览</button>
|
|
<button class="nav-item">资产中心</button>
|
|
<button class="nav-item">辅助装配</button>
|
|
<button class="nav-item">草稿组</button>
|
|
<button class="nav-item active">正式产品</button>
|
|
<button class="nav-item">仓库管理</button>
|
|
</nav>
|
|
<div class="top-spacer"></div>
|
|
<input class="search" value="搜索组件..." readonly />
|
|
</header>
|
|
|
|
<main class="main">
|
|
<section class="workspace">
|
|
<div class="stage-header">
|
|
<div>
|
|
<strong>SZ0230 产品开发</strong>
|
|
<div class="preview" aria-label="产品预览">
|
|
<div class="desk"></div>
|
|
<div class="leg one"></div>
|
|
<div class="leg two"></div>
|
|
<div class="leg three"></div>
|
|
<div class="leg four"></div>
|
|
</div>
|
|
</div>
|
|
<div class="facts">
|
|
<div class="fact">
|
|
<label>SPU</label>
|
|
<strong>SZ0230</strong>
|
|
</div>
|
|
<div class="fact">
|
|
<label>产品阶段</label>
|
|
<strong id="phaseText">开品中</strong>
|
|
</div>
|
|
<div class="fact">
|
|
<label>产品方向</label>
|
|
<strong>书桌 / 基本盘</strong>
|
|
</div>
|
|
<div class="fact">
|
|
<label>负责人</label>
|
|
<strong>徐霞客</strong>
|
|
</div>
|
|
<div class="fact">
|
|
<label>参考来源</label>
|
|
<strong>竞品链接 + 截图</strong>
|
|
</div>
|
|
<div class="fact">
|
|
<label>产品资料</label>
|
|
<strong>打样资料 / 模型</strong>
|
|
</div>
|
|
<div class="fact">
|
|
<label>设计卖点</label>
|
|
<strong>1 条待评审</strong>
|
|
</div>
|
|
<div class="fact">
|
|
<label>会议结论</label>
|
|
<strong id="decisionText">待立项</strong>
|
|
</div>
|
|
</div>
|
|
<div class="phase-switch">
|
|
<button class="switch-btn active" data-phase="draft">
|
|
看开品阶段
|
|
</button>
|
|
<button class="switch-btn" data-phase="approved">
|
|
看已立项后
|
|
</button>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="content">
|
|
<section class="review-main">
|
|
<div class="section-title">
|
|
<h2>立项评审工作区</h2>
|
|
<p>
|
|
这里承接开品参考、产品资料、设计卖点;会议只判断这个品是否进入开发。
|
|
通过后再展开基础信息、样品评审和后续采购/质检节点。
|
|
</p>
|
|
</div>
|
|
|
|
<div class="source-grid">
|
|
<article class="source">
|
|
<div class="source-header">
|
|
<h3>开品参考</h3>
|
|
<span class="badge">2</span>
|
|
</div>
|
|
<p>
|
|
竞品链接、参考截图、价格带和开品理由。开品初期只需要这些资料,不要求先填完整基础信息。
|
|
</p>
|
|
</article>
|
|
<article class="source">
|
|
<div class="source-header">
|
|
<h3>产品资料</h3>
|
|
<span class="badge">3</span>
|
|
</div>
|
|
<p>
|
|
打样资料、产品模型、线稿爆炸图、孔位图。会议要看的是“能不能打样”和“资料是否够用”。
|
|
</p>
|
|
</article>
|
|
<article class="source">
|
|
<div class="source-header">
|
|
<h3>设计卖点</h3>
|
|
<span class="badge">1</span>
|
|
</div>
|
|
<p>
|
|
设计亮点、差异化卖点、展示方向。可以独立维护,但在立项评审里汇总给负责人看。
|
|
</p>
|
|
</article>
|
|
</div>
|
|
|
|
<div class="form-grid">
|
|
<div class="field">
|
|
<label>评审时间</label>
|
|
<input value="2026-04-28" />
|
|
</div>
|
|
<div class="field">
|
|
<label>评审人 / 参会人</label>
|
|
<input value="产品负责人、采购、设计、运营" />
|
|
</div>
|
|
<div class="field wide">
|
|
<label>评审结论</label>
|
|
<textarea>当前方向可进入开发,但基础资料需在立项后补齐;采购可按产品资料推进打样。</textarea>
|
|
</div>
|
|
<div class="field wide">
|
|
<label>需修改内容</label>
|
|
<textarea>补充规格范围、确认材质表达、整理打样资料版本;如卖点不成立则退回资料修改。</textarea>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<aside class="decision-panel">
|
|
<div class="section-title">
|
|
<h3>立项判断</h3>
|
|
<p>这个判断只负责是否进入开发,不替代后面的样品评审。</p>
|
|
</div>
|
|
<div id="statusCard" class="status-card">
|
|
<strong id="statusTitle">待立项</strong>
|
|
<span id="statusDesc">
|
|
新增产品默认停在这里,只显示前 4 个节点,避免一开始把基础信息和采购质检节点摊太开。
|
|
</span>
|
|
</div>
|
|
<div class="actions">
|
|
<button class="action-btn revision" data-decision="revision">
|
|
退回修改资料
|
|
</button>
|
|
<button class="action-btn rejected" data-decision="rejected">
|
|
废弃不开
|
|
</button>
|
|
<button class="action-btn primary" data-decision="approved">
|
|
立项通过
|
|
</button>
|
|
</div>
|
|
<div class="timeline">
|
|
<h3>流程位置</h3>
|
|
<div class="step done">
|
|
<div class="dot">1</div>
|
|
<div>
|
|
<strong>开品前资料</strong>
|
|
先收参考、竞品链接、打样资料、模型和设计卖点。
|
|
</div>
|
|
</div>
|
|
<div class="step done">
|
|
<div class="dot">2</div>
|
|
<div>
|
|
<strong>立项评审</strong>
|
|
负责人判断继续、修改或废弃。
|
|
</div>
|
|
</div>
|
|
<div class="step approved-only done">
|
|
<div class="dot">3</div>
|
|
<div>
|
|
<strong>基础信息</strong>
|
|
立项后再补 SPU、品牌、类目、负责人、SKU 等正式信息。
|
|
</div>
|
|
</div>
|
|
<div class="step approved-only">
|
|
<div class="dot">4</div>
|
|
<div>
|
|
<strong>样品评审及后续并行</strong>
|
|
打样、拍照、包装、定厂、核价、工厂质检继续推进。
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</aside>
|
|
</div>
|
|
</section>
|
|
|
|
<aside class="inspector">
|
|
<div class="inspector-head">
|
|
<div class="eyebrow">Inspector</div>
|
|
<h2>图片与文档</h2>
|
|
<p>
|
|
右侧节点按真实业务顺序走。新增产品只展示前 4 个;立项通过后才出现基础信息和后续节点。
|
|
</p>
|
|
</div>
|
|
|
|
<div class="node-list">
|
|
<button class="node">
|
|
<span class="node-index">01</span>
|
|
<span>
|
|
<span class="node-title">开品参考</span>
|
|
<span class="node-desc">竞品链接、参考图、开品理由</span>
|
|
</span>
|
|
<span class="count">2</span>
|
|
</button>
|
|
<button class="node">
|
|
<span class="node-index">02</span>
|
|
<span>
|
|
<span class="node-title">产品资料</span>
|
|
<span class="node-desc">打样资料、模型、结构资料</span>
|
|
</span>
|
|
<span class="count">3</span>
|
|
</button>
|
|
<button class="node">
|
|
<span class="node-index">03</span>
|
|
<span>
|
|
<span class="node-title">设计卖点</span>
|
|
<span class="node-desc">卖点图、文案、展示方向</span>
|
|
</span>
|
|
<span class="count">1</span>
|
|
</button>
|
|
<button class="node active">
|
|
<span class="node-index">04</span>
|
|
<span>
|
|
<span class="node-title">立项评审</span>
|
|
<span class="node-desc">会议结论、是否进入开发</span>
|
|
</span>
|
|
<span class="count">0</span>
|
|
</button>
|
|
<button class="node approved-only">
|
|
<span class="node-index">05</span>
|
|
<span>
|
|
<span class="node-title">基础信息</span>
|
|
<span class="node-desc">立项后补齐正式产品信息</span>
|
|
</span>
|
|
<span class="count">3</span>
|
|
</button>
|
|
<button class="node approved-only">
|
|
<span class="node-index">06</span>
|
|
<span>
|
|
<span class="node-title">样品评审</span>
|
|
<span class="node-desc">样品问题点、导出给工厂</span>
|
|
</span>
|
|
<span class="count">2</span>
|
|
</button>
|
|
<button class="node approved-only">
|
|
<span class="node-index">07</span>
|
|
<span>
|
|
<span class="node-title">产品实拍</span>
|
|
<span class="node-desc">最终样子,九视图和细节图</span>
|
|
</span>
|
|
<span class="count">9</span>
|
|
</button>
|
|
<button class="node approved-only">
|
|
<span class="node-index">08</span>
|
|
<span>
|
|
<span class="node-title">安装方式</span>
|
|
<span class="node-desc">安装图纸、安装视频</span>
|
|
</span>
|
|
<span class="count">2</span>
|
|
</button>
|
|
<button class="node approved-only">
|
|
<span class="node-index">09</span>
|
|
<span>
|
|
<span class="node-title">包装细节</span>
|
|
<span class="node-desc">包装方案,后续采购/工厂承接</span>
|
|
</span>
|
|
<span class="count">0</span>
|
|
</button>
|
|
<button class="node approved-only">
|
|
<span class="node-index">10</span>
|
|
<span>
|
|
<span class="node-title">产品定厂</span>
|
|
<span class="node-desc">供应商、下单和交付信息</span>
|
|
</span>
|
|
<span class="count">0</span>
|
|
</button>
|
|
<button class="node approved-only">
|
|
<span class="node-index">11</span>
|
|
<span>
|
|
<span class="node-title">样包测量</span>
|
|
<span class="node-desc">采购填写尺寸、重量、外形</span>
|
|
</span>
|
|
<span class="count">0</span>
|
|
</button>
|
|
<button class="node approved-only">
|
|
<span class="node-index">12</span>
|
|
<span>
|
|
<span class="node-title">产品核价</span>
|
|
<span class="node-desc">采购成本、标签和核价结果</span>
|
|
</span>
|
|
<span class="count">0</span>
|
|
</button>
|
|
<button class="node approved-only">
|
|
<span class="node-index">13</span>
|
|
<span>
|
|
<span class="node-title">工厂质检</span>
|
|
<span class="node-desc">工厂端摔包图、质检视频</span>
|
|
</span>
|
|
<span class="count">0</span>
|
|
</button>
|
|
<button class="node approved-only">
|
|
<span class="node-index">14</span>
|
|
<span>
|
|
<span class="node-title">仓库抽检</span>
|
|
<span class="node-desc">检测附件、质检标准、抽检记录</span>
|
|
</span>
|
|
<span class="count">0</span>
|
|
</button>
|
|
</div>
|
|
|
|
<div class="locked-note draft-only">
|
|
当前是开品阶段:后续节点被收起。立项通过后,会自动展开「基础信息」和后续节点。
|
|
</div>
|
|
</aside>
|
|
</main>
|
|
</div>
|
|
|
|
<script>
|
|
const body = document.body;
|
|
const phaseText = document.getElementById("phaseText");
|
|
const decisionText = document.getElementById("decisionText");
|
|
const statusCard = document.getElementById("statusCard");
|
|
const statusTitle = document.getElementById("statusTitle");
|
|
const statusDesc = document.getElementById("statusDesc");
|
|
const phaseButtons = Array.from(document.querySelectorAll("[data-phase]"));
|
|
const decisionButtons = Array.from(
|
|
document.querySelectorAll("[data-decision]"),
|
|
);
|
|
|
|
const statusMap = {
|
|
draft: {
|
|
approved: false,
|
|
phase: "开品中",
|
|
title: "待立项",
|
|
desc: "新增产品默认停在这里,只显示前 4 个节点,避免一开始把基础信息和采购质检节点摊太开。",
|
|
className: "",
|
|
},
|
|
revision: {
|
|
approved: false,
|
|
phase: "退回修改",
|
|
title: "退回修改",
|
|
desc: "资料需要回到产品资料或设计卖点补充,补完后再重新开立项评审。",
|
|
className: "revision",
|
|
},
|
|
rejected: {
|
|
approved: false,
|
|
phase: "废弃不开",
|
|
title: "废弃不开",
|
|
desc: "这个品暂不进入开发,后续节点继续隐藏,只保留前期资料和结论。",
|
|
className: "rejected",
|
|
},
|
|
approved: {
|
|
approved: true,
|
|
phase: "已立项",
|
|
title: "已立项",
|
|
desc: "通过后展开基础信息和后续节点,采购可基于资料推进打样、样品评审、包装和质检。",
|
|
className: "approved",
|
|
},
|
|
};
|
|
|
|
function setDecision(next) {
|
|
const config = statusMap[next] || statusMap.draft;
|
|
body.dataset.approved = String(config.approved);
|
|
body.dataset.decision = next;
|
|
phaseText.textContent = config.phase;
|
|
decisionText.textContent = config.title;
|
|
statusTitle.textContent = config.title;
|
|
statusDesc.textContent = config.desc;
|
|
statusCard.className = `status-card ${config.className}`.trim();
|
|
|
|
phaseButtons.forEach((button) => {
|
|
const active =
|
|
(button.dataset.phase === "approved" && config.approved) ||
|
|
(button.dataset.phase === "draft" && !config.approved);
|
|
button.classList.toggle("active", active);
|
|
});
|
|
}
|
|
|
|
phaseButtons.forEach((button) => {
|
|
button.addEventListener("click", () => {
|
|
setDecision(button.dataset.phase === "approved" ? "approved" : "draft");
|
|
});
|
|
});
|
|
|
|
decisionButtons.forEach((button) => {
|
|
button.addEventListener("click", () => {
|
|
setDecision(button.dataset.decision);
|
|
});
|
|
});
|
|
</script>
|
|
</body>
|
|
</html>
|