提交
This commit is contained in:
1 parent
03226cac2a
commit
195c89e6b7
34 files changed
+7360
-5462
No files matched your search
@@ -54,6 +54,8 @@ __pycache__/
|
||||
*.key
|
||||
*.p12
|
||||
secrets/
|
||||
生产环境信息/root密码
|
||||
生产环境信息/*_nginx/
|
||||
|
||||
# 日志与临时文件
|
||||
*.log
|
||||
|
||||
@@ -0,0 +1,657 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<title>第三方质检 · 全公司合并为一卡 — Demo</title>
|
||||
<style>
|
||||
:root {
|
||||
--primary: #10b981;
|
||||
--primary-dark: #059669;
|
||||
--primary-bg: #ecfdf5;
|
||||
--text: #0f172a;
|
||||
--muted: #64748b;
|
||||
--border: #e2e8f0;
|
||||
--panel: #fff;
|
||||
--page: #f1f5f9;
|
||||
--warn: #d97706;
|
||||
--danger: #dc2626;
|
||||
}
|
||||
* { box-sizing: border-box; }
|
||||
body {
|
||||
margin: 0;
|
||||
font-family: Inter, "PingFang SC", "Helvetica Neue", system-ui, sans-serif;
|
||||
font-size: 14px;
|
||||
line-height: 1.5;
|
||||
color: var(--text);
|
||||
background: var(--page);
|
||||
padding: 24px;
|
||||
}
|
||||
h1 {
|
||||
margin: 0 0 8px;
|
||||
font-size: 20px;
|
||||
font-weight: 700;
|
||||
}
|
||||
.lead {
|
||||
margin: 0 0 20px;
|
||||
color: var(--muted);
|
||||
max-width: 920px;
|
||||
}
|
||||
.compare {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 16px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
@media (max-width: 960px) {
|
||||
.compare { grid-template-columns: 1fr; }
|
||||
}
|
||||
.panel {
|
||||
background: var(--panel);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 10px;
|
||||
padding: 16px;
|
||||
}
|
||||
.panel-head {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 8px;
|
||||
margin-bottom: 12px;
|
||||
padding-bottom: 10px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
.panel-head h2 {
|
||||
margin: 0;
|
||||
font-size: 15px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
.panel-head h2::before {
|
||||
content: "";
|
||||
width: 3px;
|
||||
height: 14px;
|
||||
border-radius: 2px;
|
||||
background: var(--primary);
|
||||
}
|
||||
.badge {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
padding: 2px 8px;
|
||||
border-radius: 999px;
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
}
|
||||
.badge-old { background: #f1f5f9; color: var(--muted); }
|
||||
.badge-new { background: var(--primary-bg); color: var(--primary-dark); }
|
||||
.batch-hint {
|
||||
font-size: 12px;
|
||||
color: var(--muted);
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.cards {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 10px;
|
||||
}
|
||||
.card {
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 8px;
|
||||
padding: 12px;
|
||||
background: #fff;
|
||||
cursor: default;
|
||||
min-height: 88px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
}
|
||||
.card--lab { background: #fafafa; }
|
||||
.card--company {
|
||||
border-color: #a7f3d0;
|
||||
background: linear-gradient(180deg, #f0fdf4 0%, #fff 48%);
|
||||
}
|
||||
.card--clickable {
|
||||
cursor: pointer;
|
||||
transition: box-shadow .15s, border-color .15s;
|
||||
}
|
||||
.card--clickable:hover {
|
||||
border-color: var(--primary);
|
||||
box-shadow: 0 0 0 3px rgba(16, 185, 129, .15);
|
||||
}
|
||||
.card--clickable:focus-visible {
|
||||
outline: 2px solid var(--primary);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
.card__name {
|
||||
font-weight: 600;
|
||||
font-size: 14px;
|
||||
color: #1e293b;
|
||||
}
|
||||
.card__sub {
|
||||
font-size: 12px;
|
||||
color: var(--muted);
|
||||
}
|
||||
.card__tags {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 6px;
|
||||
}
|
||||
.tag {
|
||||
display: inline-flex;
|
||||
padding: 1px 7px;
|
||||
border-radius: 4px;
|
||||
font-size: 12px;
|
||||
line-height: 1.6;
|
||||
}
|
||||
.tag.success { background: var(--primary-bg); color: var(--primary-dark); }
|
||||
.tag.warning { background: #fff7ed; color: var(--warn); }
|
||||
.tag.info { background: #f1f5f9; color: #475569; }
|
||||
.tag.primary { background: #eff6ff; color: #2563eb; }
|
||||
.card__foot {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 8px;
|
||||
margin-top: auto;
|
||||
}
|
||||
.assignees { font-size: 12px; color: var(--muted); }
|
||||
.btn {
|
||||
appearance: none;
|
||||
border: 1px solid var(--border);
|
||||
background: #fff;
|
||||
color: var(--text);
|
||||
border-radius: 8px;
|
||||
height: 28px;
|
||||
padding: 0 10px;
|
||||
font-size: 12px;
|
||||
cursor: pointer;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
}
|
||||
.btn-main {
|
||||
background: var(--primary);
|
||||
border-color: var(--primary);
|
||||
color: #fff;
|
||||
}
|
||||
.note {
|
||||
margin-top: 12px;
|
||||
padding: 10px 12px;
|
||||
border-radius: 8px;
|
||||
background: #fffbeb;
|
||||
border: 1px solid #fde68a;
|
||||
color: #92400e;
|
||||
font-size: 13px;
|
||||
}
|
||||
.note strong { font-weight: 600; }
|
||||
.arrow-row {
|
||||
text-align: center;
|
||||
color: var(--muted);
|
||||
font-size: 13px;
|
||||
margin: 4px 0 16px;
|
||||
}
|
||||
|
||||
/* Dialog mock */
|
||||
.overlay {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
background: rgba(15, 23, 42, .45);
|
||||
display: none;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding: 24px;
|
||||
z-index: 50;
|
||||
}
|
||||
.overlay.is-open { display: flex; }
|
||||
.dialog {
|
||||
width: min(920px, 100%);
|
||||
max-height: calc(100vh - 48px);
|
||||
background: #fff;
|
||||
border-radius: 10px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
box-shadow: 0 20px 50px rgba(15, 23, 42, .2);
|
||||
}
|
||||
.dialog__head {
|
||||
padding: 14px 20px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 12px;
|
||||
}
|
||||
.dialog__title { font-size: 16px; font-weight: 650; margin: 0; }
|
||||
.dialog__body {
|
||||
padding: 16px 20px;
|
||||
overflow: auto;
|
||||
background: #f8fafc;
|
||||
}
|
||||
.dialog__foot {
|
||||
padding: 12px 20px;
|
||||
border-top: 1px solid var(--border);
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
gap: 8px;
|
||||
background: #fff;
|
||||
}
|
||||
.item-block {
|
||||
background: #fafafa;
|
||||
border-radius: 8px;
|
||||
padding: 16px 18px;
|
||||
margin-bottom: 12px;
|
||||
border: 1px solid #f1f5f9;
|
||||
}
|
||||
.item-block__head {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 12px;
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
.item-block__name {
|
||||
font-size: 15px;
|
||||
font-weight: 600;
|
||||
color: #1e293b;
|
||||
min-width: 0;
|
||||
}
|
||||
.item-block__company {
|
||||
color: var(--muted);
|
||||
font-weight: 500;
|
||||
font-size: 13px;
|
||||
}
|
||||
.section-title {
|
||||
position: relative;
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
color: #334155;
|
||||
margin: 0 0 10px;
|
||||
padding: 0 0 8px 8px;
|
||||
border-bottom: 1px solid #ebeef5;
|
||||
}
|
||||
.section-title::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 3px;
|
||||
width: 2px;
|
||||
height: 10px;
|
||||
border-radius: 1px;
|
||||
background: #047857;
|
||||
}
|
||||
.grid-2 {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 12px;
|
||||
}
|
||||
.field label {
|
||||
display: block;
|
||||
font-size: 12px;
|
||||
color: #475569;
|
||||
margin-bottom: 6px;
|
||||
}
|
||||
.radios {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 12px;
|
||||
font-size: 13px;
|
||||
}
|
||||
.shared {
|
||||
background: #fafafa;
|
||||
border-radius: 8px;
|
||||
padding: 16px 18px;
|
||||
border: 1px solid #f1f5f9;
|
||||
}
|
||||
textarea, .fake-upload {
|
||||
width: 100%;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 8px;
|
||||
padding: 8px 10px;
|
||||
font: inherit;
|
||||
background: #fff;
|
||||
}
|
||||
.fake-upload {
|
||||
min-height: 72px;
|
||||
color: var(--muted);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border-style: dashed;
|
||||
border-color: #a7f3d0;
|
||||
background: #f0fdf4;
|
||||
}
|
||||
.close-x {
|
||||
border: none;
|
||||
background: transparent;
|
||||
font-size: 20px;
|
||||
line-height: 1;
|
||||
color: var(--muted);
|
||||
cursor: pointer;
|
||||
padding: 4px 8px;
|
||||
}
|
||||
.legend {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 10px 16px;
|
||||
margin-bottom: 16px;
|
||||
font-size: 13px;
|
||||
color: var(--muted);
|
||||
}
|
||||
.legend span { display: inline-flex; align-items: center; gap: 6px; }
|
||||
.swatch {
|
||||
width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--border);
|
||||
}
|
||||
.swatch.lab { background: #fafafa; }
|
||||
.swatch.tp { background: #f0fdf4; border-color: #a7f3d0; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h1>第三方质检 · 全公司合并为一张卡</h1>
|
||||
<p class="lead">
|
||||
需求示意:列表里不再「一家公司一张卡」,改为批次内所有第三方任务合成 <strong>一张「第三方质检项目」卡</strong>;
|
||||
点击后弹窗列出全部第三方检测项目,项目名后带上公司名。检测参数区保持隐藏(仅状态/结论 + 共享备注材料)。
|
||||
</p>
|
||||
|
||||
<div class="legend">
|
||||
<span><i class="swatch lab"></i>实验室自检(仍一项目一卡)</span>
|
||||
<span><i class="swatch tp"></i>第三方聚合卡</span>
|
||||
<span>右侧提案卡可点击打开弹窗 Demo</span>
|
||||
</div>
|
||||
|
||||
<div class="compare">
|
||||
<!-- 现状 -->
|
||||
<section class="panel">
|
||||
<div class="panel-head">
|
||||
<h2>现状 · 按公司分卡</h2>
|
||||
<span class="badge badge-old">当前实现</span>
|
||||
</div>
|
||||
<div class="batch-hint">检测批次 A · 任务区</div>
|
||||
<div class="cards">
|
||||
<div class="card card--lab">
|
||||
<div class="card__name">细胞活力检测</div>
|
||||
<div class="card__tags">
|
||||
<span class="tag warning">进行中</span>
|
||||
<span class="tag info">实验室自检</span>
|
||||
</div>
|
||||
<div class="card__foot">
|
||||
<span class="assignees">张三</span>
|
||||
<button class="btn btn-main" type="button" tabindex="-1">填写结果</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card card--company">
|
||||
<div class="card__name">金域医学</div>
|
||||
<div class="card__sub">第三方 · 2 个检测项目</div>
|
||||
<div class="card__tags">
|
||||
<span class="tag warning">1/2 已完成</span>
|
||||
<span class="tag primary">第三方检测</span>
|
||||
</div>
|
||||
<div class="card__foot">
|
||||
<span class="assignees">李四、王五</span>
|
||||
<button class="btn btn-main" type="button" tabindex="-1">填写结果</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card card--company">
|
||||
<div class="card__name">迪安诊断</div>
|
||||
<div class="card__sub">第三方 · 1 个检测项目</div>
|
||||
<div class="card__tags">
|
||||
<span class="tag info">0/1 已完成</span>
|
||||
<span class="tag primary">第三方检测</span>
|
||||
</div>
|
||||
<div class="card__foot">
|
||||
<span class="assignees">赵六</span>
|
||||
<button class="btn btn-main" type="button" tabindex="-1">填写结果</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card card--company">
|
||||
<div class="card__name">华大基因</div>
|
||||
<div class="card__sub">第三方 · 2 个检测项目</div>
|
||||
<div class="card__tags">
|
||||
<span class="tag success">2/2 已完成</span>
|
||||
<span class="tag primary">第三方检测</span>
|
||||
</div>
|
||||
<div class="card__foot">
|
||||
<span class="assignees">钱七</span>
|
||||
<button class="btn" type="button" tabindex="-1">查看</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<p class="note"><strong>痛点:</strong>公司多时卡片碎;要分别点开多家公司弹窗才能填完。</p>
|
||||
</section>
|
||||
|
||||
<!-- 提案 -->
|
||||
<section class="panel">
|
||||
<div class="panel-head">
|
||||
<h2>提案 · 全第三方合一卡</h2>
|
||||
<span class="badge badge-new">需求方向</span>
|
||||
</div>
|
||||
<div class="batch-hint">检测批次 A · 任务区 · 点击绿色卡体验弹窗</div>
|
||||
<div class="cards">
|
||||
<div class="card card--lab">
|
||||
<div class="card__name">细胞活力检测</div>
|
||||
<div class="card__tags">
|
||||
<span class="tag warning">进行中</span>
|
||||
<span class="tag info">实验室自检</span>
|
||||
</div>
|
||||
<div class="card__foot">
|
||||
<span class="assignees">张三</span>
|
||||
<button class="btn btn-main" type="button" tabindex="-1">填写结果</button>
|
||||
</div>
|
||||
</div>
|
||||
<div
|
||||
class="card card--company card--clickable"
|
||||
id="open-dialog-card"
|
||||
role="button"
|
||||
tabindex="0"
|
||||
data-option="open-all-third-dialog"
|
||||
aria-label="打开第三方质检项目弹窗"
|
||||
>
|
||||
<div class="card__name">第三方质检项目</div>
|
||||
<div class="card__sub">第三方 · 5 个检测项目 · 3 家公司</div>
|
||||
<div class="card__tags">
|
||||
<span class="tag warning">3/5 已完成</span>
|
||||
<span class="tag primary">第三方检测</span>
|
||||
</div>
|
||||
<div class="card__foot">
|
||||
<span class="assignees">李四、王五、赵六、钱七</span>
|
||||
<button class="btn btn-main" type="button" id="open-dialog-btn">填写结果</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<p class="note"><strong>目标:</strong>一张卡汇总全部第三方;弹窗内项目名后标注公司,一次填完本批次可见的第三方任务。</p>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<p class="arrow-row">下方为弹窗结构说明(也可点右侧卡片打开可交互层)</p>
|
||||
|
||||
<!-- static preview of dialog content -->
|
||||
<section class="panel" style="max-width: 920px; margin: 0 auto;">
|
||||
<div class="panel-head">
|
||||
<h2>弹窗结构预览 · 填写检测结果 · 第三方质检项目</h2>
|
||||
<button class="btn btn-main" type="button" id="open-dialog-btn-2">打开可交互弹窗</button>
|
||||
</div>
|
||||
<div class="item-block">
|
||||
<div class="item-block__head">
|
||||
<div class="item-block__name">
|
||||
1. HIV-1 RNA 定量
|
||||
<span class="item-block__company">· 金域医学</span>
|
||||
</div>
|
||||
<span class="tag warning">待执行</span>
|
||||
</div>
|
||||
<div class="section-title">检测结论</div>
|
||||
<div class="grid-2">
|
||||
<div class="field"><label>任务状态</label><div class="radios">○ 待执行 ● 已完成</div></div>
|
||||
<div class="field"><label>结论</label><div class="radios">○ 待结论 ● 通过 ○ 不通过</div></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="item-block">
|
||||
<div class="item-block__head">
|
||||
<div class="item-block__name">
|
||||
2. 乙肝五项
|
||||
<span class="item-block__company">· 金域医学</span>
|
||||
</div>
|
||||
<span class="tag success">已完成</span>
|
||||
</div>
|
||||
<div class="section-title">检测结论</div>
|
||||
<div class="grid-2">
|
||||
<div class="field"><label>任务状态</label><div class="radios">○ 待执行 ● 已完成</div></div>
|
||||
<div class="field"><label>结论</label><div class="radios">○ 待结论 ● 通过 ○ 不通过</div></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="item-block">
|
||||
<div class="item-block__head">
|
||||
<div class="item-block__name">
|
||||
3. 支原体检测
|
||||
<span class="item-block__company">· 迪安诊断</span>
|
||||
</div>
|
||||
<span class="tag info">待执行</span>
|
||||
</div>
|
||||
<div class="section-title">检测结论</div>
|
||||
<div class="grid-2">
|
||||
<div class="field"><label>任务状态</label><div class="radios">● 待执行 ○ 已完成</div></div>
|
||||
<div class="field"><label>结论</label><div class="radios">● 待结论 ○ 通过 ○ 不通过</div></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="item-block">
|
||||
<div class="item-block__head">
|
||||
<div class="item-block__name">
|
||||
4. 染色体核型分析
|
||||
<span class="item-block__company">· 华大基因</span>
|
||||
</div>
|
||||
<span class="tag success">已完成</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="item-block">
|
||||
<div class="item-block__head">
|
||||
<div class="item-block__name">
|
||||
5. STR 比对
|
||||
<span class="item-block__company">· 华大基因</span>
|
||||
</div>
|
||||
<span class="tag success">已完成</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="shared">
|
||||
<div class="section-title">备注与检测材料(整弹窗一份,同步到本次可写任务)</div>
|
||||
<div class="field" style="margin-bottom:12px">
|
||||
<label>备注</label>
|
||||
<textarea rows="2" placeholder="选填"></textarea>
|
||||
</div>
|
||||
<div class="field">
|
||||
<label>检测材料</label>
|
||||
<div class="fake-upload">上传区示意 · 任一项「已完成」时必填</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<div class="overlay" id="overlay" aria-hidden="true">
|
||||
<div class="dialog" role="dialog" aria-modal="true" aria-labelledby="dlg-title">
|
||||
<div class="dialog__head">
|
||||
<h3 class="dialog__title" id="dlg-title">填写检测结果 · 第三方质检项目</h3>
|
||||
<button class="close-x" type="button" id="close-dialog" aria-label="关闭">×</button>
|
||||
</div>
|
||||
<div class="dialog__body">
|
||||
<div class="item-block">
|
||||
<div class="item-block__head">
|
||||
<div class="item-block__name">1. HIV-1 RNA 定量 <span class="item-block__company">· 金域医学</span></div>
|
||||
<span class="tag warning">待执行</span>
|
||||
</div>
|
||||
<div class="section-title">检测结论</div>
|
||||
<div class="grid-2">
|
||||
<div class="field"><label>任务状态 *</label><div class="radios"><label><input type="radio" name="s1" checked /> 待执行</label><label><input type="radio" name="s1" /> 已完成</label></div></div>
|
||||
<div class="field"><label>结论</label><div class="radios"><label><input type="radio" name="c1" checked /> 待结论</label><label><input type="radio" name="c1" /> 通过</label><label><input type="radio" name="c1" /> 不通过</label></div></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="item-block">
|
||||
<div class="item-block__head">
|
||||
<div class="item-block__name">2. 乙肝五项 <span class="item-block__company">· 金域医学</span></div>
|
||||
<span class="tag success">已完成</span>
|
||||
</div>
|
||||
<div class="section-title">检测结论</div>
|
||||
<div class="grid-2">
|
||||
<div class="field"><label>任务状态 *</label><div class="radios"><label><input type="radio" name="s2" /> 待执行</label><label><input type="radio" name="s2" checked /> 已完成</label></div></div>
|
||||
<div class="field"><label>结论 *</label><div class="radios"><label><input type="radio" name="c2" /> 待结论</label><label><input type="radio" name="c2" checked /> 通过</label><label><input type="radio" name="c2" /> 不通过</label></div></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="item-block">
|
||||
<div class="item-block__head">
|
||||
<div class="item-block__name">3. 支原体检测 <span class="item-block__company">· 迪安诊断</span></div>
|
||||
<span class="tag info">待执行</span>
|
||||
</div>
|
||||
<div class="section-title">检测结论</div>
|
||||
<div class="grid-2">
|
||||
<div class="field"><label>任务状态 *</label><div class="radios"><label><input type="radio" name="s3" checked /> 待执行</label><label><input type="radio" name="s3" /> 已完成</label></div></div>
|
||||
<div class="field"><label>结论</label><div class="radios"><label><input type="radio" name="c3" checked /> 待结论</label><label><input type="radio" name="c3" /> 通过</label><label><input type="radio" name="c3" /> 不通过</label></div></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="item-block">
|
||||
<div class="item-block__head">
|
||||
<div class="item-block__name">4. 染色体核型分析 <span class="item-block__company">· 华大基因</span></div>
|
||||
<span class="tag success">已完成</span>
|
||||
</div>
|
||||
<div class="section-title">检测结论</div>
|
||||
<div class="grid-2">
|
||||
<div class="field"><label>任务状态 *</label><div class="radios"><label><input type="radio" name="s4" /> 待执行</label><label><input type="radio" name="s4" checked /> 已完成</label></div></div>
|
||||
<div class="field"><label>结论 *</label><div class="radios"><label><input type="radio" name="c4" /> 待结论</label><label><input type="radio" name="c4" checked /> 通过</label><label><input type="radio" name="c4" /> 不通过</label></div></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="item-block">
|
||||
<div class="item-block__head">
|
||||
<div class="item-block__name">5. STR 比对 <span class="item-block__company">· 华大基因</span></div>
|
||||
<span class="tag success">已完成</span>
|
||||
</div>
|
||||
<div class="section-title">检测结论</div>
|
||||
<div class="grid-2">
|
||||
<div class="field"><label>任务状态 *</label><div class="radios"><label><input type="radio" name="s5" /> 待执行</label><label><input type="radio" name="s5" checked /> 已完成</label></div></div>
|
||||
<div class="field"><label>结论 *</label><div class="radios"><label><input type="radio" name="c5" /> 待结论</label><label><input type="radio" name="c5" checked /> 通过</label><label><input type="radio" name="c5" /> 不通过</label></div></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="shared">
|
||||
<div class="section-title">备注与检测材料</div>
|
||||
<div class="field" style="margin-bottom:12px">
|
||||
<label>备注</label>
|
||||
<textarea rows="3" placeholder="选填(同步到本次弹窗可写任务)"></textarea>
|
||||
</div>
|
||||
<div class="field">
|
||||
<label>检测材料</label>
|
||||
<div class="fake-upload">点击上传检测材料(示意)</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="dialog__foot">
|
||||
<button class="btn" type="button" id="close-dialog-2">取消</button>
|
||||
<button class="btn btn-main" type="button" data-option="demo-save-ok">保存</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
(function () {
|
||||
var overlay = document.getElementById('overlay')
|
||||
function openDlg() {
|
||||
overlay.classList.add('is-open')
|
||||
overlay.setAttribute('aria-hidden', 'false')
|
||||
}
|
||||
function closeDlg() {
|
||||
overlay.classList.remove('is-open')
|
||||
overlay.setAttribute('aria-hidden', 'true')
|
||||
}
|
||||
document.getElementById('open-dialog-card').addEventListener('click', openDlg)
|
||||
document.getElementById('open-dialog-card').addEventListener('keydown', function (e) {
|
||||
if (e.key === 'Enter' || e.key === ' ') { e.preventDefault(); openDlg() }
|
||||
})
|
||||
document.getElementById('open-dialog-btn').addEventListener('click', function (e) {
|
||||
e.stopPropagation(); openDlg()
|
||||
})
|
||||
document.getElementById('open-dialog-btn-2').addEventListener('click', openDlg)
|
||||
document.getElementById('close-dialog').addEventListener('click', closeDlg)
|
||||
document.getElementById('close-dialog-2').addEventListener('click', closeDlg)
|
||||
overlay.addEventListener('click', function (e) {
|
||||
if (e.target === overlay) closeDlg()
|
||||
})
|
||||
document.addEventListener('keydown', function (e) {
|
||||
if (e.key === 'Escape') closeDlg()
|
||||
})
|
||||
})()
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,8 +0,0 @@
|
||||
-- 工艺路线:增加内置模版标记
|
||||
-- 执行环境:测试 / 生产(MySQL 5.7+)
|
||||
-- 执行顺序:本脚本 → 2026-09-01-process-route-builtin-templates.sql
|
||||
|
||||
-- 若列已存在会报错,可忽略后继续执行复制脚本
|
||||
ALTER TABLE biz_process_route
|
||||
ADD COLUMN is_builtin CHAR(1) NOT NULL DEFAULT '0'
|
||||
COMMENT '是否内置模版(0-否 1-是)' AFTER remark;
|
||||
@@ -1,304 +0,0 @@
|
||||
-- 工艺路线:复制 4 条内置模版(深拷贝步骤及子表)
|
||||
-- 前置:已执行 2026-09-01-process-route-add-is-builtin.sql
|
||||
-- 幂等:同租户下目标 route_code 已存在且未删除则跳过
|
||||
-- MySQL 5.7+
|
||||
--
|
||||
-- 映射:
|
||||
-- 造血干样本处理 / CC样本处理 → 造血干样本处理(内置模版) / CC样本处理-BUILTIN
|
||||
-- 干细胞培养 / MSC培养 → 干细胞培养(内置模版) / MSC培养-BUILTIN
|
||||
-- UBMC冻存 / UBMC冻存 → UBMC冻存(内置模版) / UBMC冻存-BUILTIN
|
||||
-- PBMC冻存 / PBMC冻存 → PBMC冻存(内置模版) / PBMC冻存-BUILTIN
|
||||
--
|
||||
-- ID 生成说明:
|
||||
-- MySQL UUID() 在同一微秒批量 INSERT…SELECT 时可能撞主键。
|
||||
-- 新 id = UPPER(MD5(CONCAT(UUID(), 源行主键, RAND(), CONNECTION_ID()))),保证逐行唯一。
|
||||
--
|
||||
-- ---------------------------------------------------------------------------
|
||||
-- 若上次执行报 Duplicate entry … PRIMARY,先做半截数据清理再重跑本脚本:
|
||||
--
|
||||
-- -- 1) 查看已写入的 BUILTIN
|
||||
-- SELECT id, route_code, route_name, is_builtin, tenant_no, create_time
|
||||
-- FROM biz_process_route
|
||||
-- WHERE route_code LIKE '%-BUILTIN' AND del_flag = 0;
|
||||
--
|
||||
-- -- 2) 软删半截内置路线及其步骤/子表(仅清理本次模版种子,不动源路线)
|
||||
-- UPDATE biz_process_route_step_data_collection d
|
||||
-- INNER JOIN biz_process_route_step s ON s.id = d.step_id
|
||||
-- INNER JOIN biz_process_route r ON r.id = s.route_id
|
||||
-- SET d.del_flag = 1, d.update_time = NOW()
|
||||
-- WHERE r.route_code LIKE '%-BUILTIN' AND r.del_flag = 0 AND d.del_flag = 0;
|
||||
--
|
||||
-- UPDATE biz_process_route_step_output o
|
||||
-- INNER JOIN biz_process_route_step s ON s.id = o.step_id
|
||||
-- INNER JOIN biz_process_route r ON r.id = s.route_id
|
||||
-- SET o.del_flag = 1, o.update_time = NOW()
|
||||
-- WHERE r.route_code LIKE '%-BUILTIN' AND r.del_flag = 0 AND o.del_flag = 0;
|
||||
--
|
||||
-- UPDATE biz_process_route_step_consumable c
|
||||
-- INNER JOIN biz_process_route_step s ON s.id = c.step_id
|
||||
-- INNER JOIN biz_process_route r ON r.id = s.route_id
|
||||
-- SET c.del_flag = 1, c.update_time = NOW()
|
||||
-- WHERE r.route_code LIKE '%-BUILTIN' AND r.del_flag = 0 AND c.del_flag = 0;
|
||||
--
|
||||
-- UPDATE biz_process_route_step_reagent g
|
||||
-- INNER JOIN biz_process_route_step s ON s.id = g.step_id
|
||||
-- INNER JOIN biz_process_route r ON r.id = s.route_id
|
||||
-- SET g.del_flag = 1, g.update_time = NOW()
|
||||
-- WHERE r.route_code LIKE '%-BUILTIN' AND r.del_flag = 0 AND g.del_flag = 0;
|
||||
--
|
||||
-- UPDATE biz_process_route_step s
|
||||
-- INNER JOIN biz_process_route r ON r.id = s.route_id
|
||||
-- SET s.del_flag = 1, s.update_time = NOW()
|
||||
-- WHERE r.route_code LIKE '%-BUILTIN' AND r.del_flag = 0 AND s.del_flag = 0;
|
||||
--
|
||||
-- UPDATE biz_process_route
|
||||
-- SET del_flag = 1, update_time = NOW()
|
||||
-- WHERE route_code LIKE '%-BUILTIN' AND del_flag = 0;
|
||||
-- ---------------------------------------------------------------------------
|
||||
|
||||
DELIMITER $$
|
||||
|
||||
DROP PROCEDURE IF EXISTS sp_copy_process_route_builtin$$
|
||||
CREATE PROCEDURE sp_copy_process_route_builtin(
|
||||
IN p_src_code VARCHAR(64),
|
||||
IN p_dst_code VARCHAR(64),
|
||||
IN p_dst_name VARCHAR(100)
|
||||
)
|
||||
BEGIN
|
||||
DECLARE v_done INT DEFAULT 0;
|
||||
DECLARE v_src_id VARCHAR(64);
|
||||
DECLARE v_tenant VARCHAR(64);
|
||||
DECLARE v_is_current CHAR(1);
|
||||
DECLARE v_new_route_id VARCHAR(64);
|
||||
|
||||
DECLARE cur CURSOR FOR
|
||||
SELECT x.id, x.tenant_no, IFNULL(x.is_current, '0')
|
||||
FROM biz_process_route x
|
||||
INNER JOIN (
|
||||
SELECT
|
||||
tenant_no,
|
||||
SUBSTRING_INDEX(
|
||||
GROUP_CONCAT(id ORDER BY (IFNULL(is_current, '0') = '1') DESC, update_time DESC SEPARATOR ','),
|
||||
',',
|
||||
1
|
||||
) AS pick_id
|
||||
FROM biz_process_route
|
||||
WHERE route_code = p_src_code
|
||||
AND del_flag = 0
|
||||
GROUP BY tenant_no
|
||||
) p ON p.pick_id = x.id
|
||||
WHERE NOT EXISTS (
|
||||
SELECT 1
|
||||
FROM biz_process_route t
|
||||
WHERE t.tenant_no = x.tenant_no
|
||||
AND t.route_code = p_dst_code
|
||||
AND t.del_flag = 0
|
||||
);
|
||||
|
||||
DECLARE CONTINUE HANDLER FOR NOT FOUND SET v_done = 1;
|
||||
DECLARE EXIT HANDLER FOR SQLEXCEPTION
|
||||
BEGIN
|
||||
ROLLBACK;
|
||||
RESIGNAL;
|
||||
END;
|
||||
|
||||
OPEN cur;
|
||||
read_loop: LOOP
|
||||
FETCH cur INTO v_src_id, v_tenant, v_is_current;
|
||||
IF v_done = 1 THEN
|
||||
LEAVE read_loop;
|
||||
END IF;
|
||||
|
||||
START TRANSACTION;
|
||||
|
||||
SET v_new_route_id = UPPER(MD5(CONCAT(UUID(), v_src_id, RAND(), CONNECTION_ID())));
|
||||
|
||||
INSERT INTO biz_process_route (
|
||||
id, route_code, route_name, product_type_id, version, is_current,
|
||||
equipment_ids, equipment_name, tenant_no, order_num, remark, is_builtin,
|
||||
create_by, create_dept_id, create_time, update_by, update_time, del_flag
|
||||
)
|
||||
SELECT
|
||||
v_new_route_id,
|
||||
p_dst_code,
|
||||
p_dst_name,
|
||||
product_type_id,
|
||||
version,
|
||||
v_is_current,
|
||||
equipment_ids,
|
||||
equipment_name,
|
||||
tenant_no,
|
||||
order_num,
|
||||
'内置模版',
|
||||
'1',
|
||||
create_by,
|
||||
IFNULL(create_dept_id, ''),
|
||||
NOW(),
|
||||
update_by,
|
||||
NOW(),
|
||||
0
|
||||
FROM biz_process_route
|
||||
WHERE id = v_src_id;
|
||||
|
||||
DROP TEMPORARY TABLE IF EXISTS tmp_step_id_map;
|
||||
CREATE TEMPORARY TABLE tmp_step_id_map (
|
||||
old_id VARCHAR(64) NOT NULL PRIMARY KEY,
|
||||
new_id VARCHAR(64) NOT NULL
|
||||
);
|
||||
|
||||
INSERT INTO tmp_step_id_map (old_id, new_id)
|
||||
SELECT
|
||||
id,
|
||||
UPPER(MD5(CONCAT(UUID(), id, RAND(), CONNECTION_ID())))
|
||||
FROM biz_process_route_step
|
||||
WHERE route_id = v_src_id
|
||||
AND del_flag = 0;
|
||||
|
||||
INSERT INTO biz_process_route_step (
|
||||
id, route_id, process_id, step_order, process_code, category_id, process_name,
|
||||
description, equipment_ids, equipment_name, estimated_duration, sop_ids, sop_content,
|
||||
tenant_no, order_num, remark, create_by, create_dept_id, create_time, update_by, update_time, del_flag
|
||||
)
|
||||
SELECT
|
||||
m.new_id,
|
||||
v_new_route_id,
|
||||
s.process_id,
|
||||
s.step_order,
|
||||
s.process_code,
|
||||
s.category_id,
|
||||
s.process_name,
|
||||
s.description,
|
||||
s.equipment_ids,
|
||||
s.equipment_name,
|
||||
s.estimated_duration,
|
||||
s.sop_ids,
|
||||
s.sop_content,
|
||||
s.tenant_no,
|
||||
s.order_num,
|
||||
s.remark,
|
||||
s.create_by,
|
||||
IFNULL(s.create_dept_id, ''),
|
||||
NOW(),
|
||||
s.update_by,
|
||||
NOW(),
|
||||
0
|
||||
FROM biz_process_route_step s
|
||||
INNER JOIN tmp_step_id_map m ON m.old_id = s.id;
|
||||
|
||||
INSERT INTO biz_process_route_step_reagent (
|
||||
id, step_id, reagent_code, reagent_name, spec, standard_usage, unit, is_key_material,
|
||||
tenant_no, order_num, remark, create_by, create_dept_id, create_time, update_by, update_time, del_flag
|
||||
)
|
||||
SELECT
|
||||
UPPER(MD5(CONCAT(UUID(), r.id, RAND(), CONNECTION_ID()))),
|
||||
m.new_id,
|
||||
r.reagent_code,
|
||||
r.reagent_name,
|
||||
r.spec,
|
||||
r.standard_usage,
|
||||
r.unit,
|
||||
r.is_key_material,
|
||||
r.tenant_no,
|
||||
r.order_num,
|
||||
r.remark,
|
||||
r.create_by,
|
||||
IFNULL(r.create_dept_id, ''),
|
||||
NOW(),
|
||||
r.update_by,
|
||||
NOW(),
|
||||
0
|
||||
FROM biz_process_route_step_reagent r
|
||||
INNER JOIN tmp_step_id_map m ON m.old_id = r.step_id
|
||||
WHERE r.del_flag = 0;
|
||||
|
||||
INSERT INTO biz_process_route_step_consumable (
|
||||
id, step_id, consumable_code, consumable_name, spec_model, standard_usage, unit, is_required,
|
||||
remark, tenant_no, order_num, create_by, create_dept_id, create_time, update_by, update_time, del_flag
|
||||
)
|
||||
SELECT
|
||||
UPPER(MD5(CONCAT(UUID(), c.id, RAND(), CONNECTION_ID()))),
|
||||
m.new_id,
|
||||
c.consumable_code,
|
||||
c.consumable_name,
|
||||
c.spec_model,
|
||||
c.standard_usage,
|
||||
c.unit,
|
||||
c.is_required,
|
||||
c.remark,
|
||||
c.tenant_no,
|
||||
c.order_num,
|
||||
c.create_by,
|
||||
IFNULL(c.create_dept_id, ''),
|
||||
NOW(),
|
||||
c.update_by,
|
||||
NOW(),
|
||||
0
|
||||
FROM biz_process_route_step_consumable c
|
||||
INNER JOIN tmp_step_id_map m ON m.old_id = c.step_id
|
||||
WHERE c.del_flag = 0;
|
||||
|
||||
INSERT INTO biz_process_route_step_output (
|
||||
id, step_id, output_type_id, output_name, output_barcode,
|
||||
tenant_no, order_num, remark, create_by, create_dept_id, create_time, update_by, update_time, del_flag
|
||||
)
|
||||
SELECT
|
||||
UPPER(MD5(CONCAT(UUID(), o.id, RAND(), CONNECTION_ID()))),
|
||||
m.new_id,
|
||||
o.output_type_id,
|
||||
o.output_name,
|
||||
o.output_barcode,
|
||||
o.tenant_no,
|
||||
o.order_num,
|
||||
o.remark,
|
||||
o.create_by,
|
||||
IFNULL(o.create_dept_id, ''),
|
||||
NOW(),
|
||||
o.update_by,
|
||||
NOW(),
|
||||
0
|
||||
FROM biz_process_route_step_output o
|
||||
INNER JOIN tmp_step_id_map m ON m.old_id = o.step_id
|
||||
WHERE o.del_flag = 0;
|
||||
|
||||
INSERT INTO biz_process_route_step_data_collection (
|
||||
id, step_id, collection_name, unit,
|
||||
tenant_no, order_num, remark, create_by, create_dept_id, create_time, update_by, update_time, del_flag
|
||||
)
|
||||
SELECT
|
||||
UPPER(MD5(CONCAT(UUID(), d.id, RAND(), CONNECTION_ID()))),
|
||||
m.new_id,
|
||||
d.collection_name,
|
||||
d.unit,
|
||||
d.tenant_no,
|
||||
d.order_num,
|
||||
d.remark,
|
||||
d.create_by,
|
||||
IFNULL(d.create_dept_id, ''),
|
||||
NOW(),
|
||||
d.update_by,
|
||||
NOW(),
|
||||
0
|
||||
FROM biz_process_route_step_data_collection d
|
||||
INNER JOIN tmp_step_id_map m ON m.old_id = d.step_id
|
||||
WHERE d.del_flag = 0;
|
||||
|
||||
DROP TEMPORARY TABLE IF EXISTS tmp_step_id_map;
|
||||
|
||||
COMMIT;
|
||||
END LOOP;
|
||||
CLOSE cur;
|
||||
END$$
|
||||
|
||||
DELIMITER ;
|
||||
|
||||
CALL sp_copy_process_route_builtin('CC样本处理', 'CC样本处理-BUILTIN', '造血干样本处理(内置模版)');
|
||||
CALL sp_copy_process_route_builtin('MSC培养', 'MSC培养-BUILTIN', '干细胞培养(内置模版)');
|
||||
CALL sp_copy_process_route_builtin('UBMC冻存', 'UBMC冻存-BUILTIN', 'UBMC冻存(内置模版)');
|
||||
CALL sp_copy_process_route_builtin('PBMC冻存', 'PBMC冻存-BUILTIN', 'PBMC冻存(内置模版)');
|
||||
|
||||
DROP PROCEDURE IF EXISTS sp_copy_process_route_builtin;
|
||||
|
||||
-- 校验(可选):
|
||||
-- SELECT route_code, route_name, is_builtin, remark, is_current, tenant_no
|
||||
-- FROM biz_process_route
|
||||
-- WHERE route_code LIKE '%-BUILTIN' AND del_flag = 0;
|
||||
@@ -1,7 +0,0 @@
|
||||
-- 生产任务组合模版:增加内置模版标记
|
||||
-- 测试 / 生产均可执行(MySQL 5.7+)
|
||||
-- 执行顺序:本脚本 → 2026-09-01-production-task-set-builtin-templates.sql
|
||||
|
||||
ALTER TABLE biz_production_task_set
|
||||
ADD COLUMN is_builtin CHAR(1) NOT NULL DEFAULT '0'
|
||||
COMMENT '是否内置模版(0-否 1-是)' AFTER remark;
|
||||
@@ -1,127 +0,0 @@
|
||||
-- 生产任务组合模版:按 4 条内置工艺路线创建内置模版
|
||||
-- 前置:
|
||||
-- 1) 2026-09-01-process-route-builtin-templates.sql(内置路线已存在)
|
||||
-- 2) 2026-09-01-production-task-set-add-is-builtin.sql
|
||||
-- 幂等:同租户同集合名称已存在且未删除则跳过
|
||||
-- MySQL 5.7+
|
||||
--
|
||||
-- 映射(集合名 = 内置路线名):
|
||||
-- CC样本处理-BUILTIN → 造血干样本处理(内置模版)
|
||||
-- MSC培养-BUILTIN → 干细胞培养(内置模版)
|
||||
-- UBMC冻存-BUILTIN → UBMC冻存(内置模版)
|
||||
-- PBMC冻存-BUILTIN → PBMC冻存(内置模版)
|
||||
-- 条目任务名统一:{lab_storage_code}样本处理
|
||||
|
||||
DELIMITER $$
|
||||
|
||||
DROP PROCEDURE IF EXISTS sp_seed_production_task_set_builtin$$
|
||||
CREATE PROCEDURE sp_seed_production_task_set_builtin(
|
||||
IN p_route_code VARCHAR(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci,
|
||||
IN p_set_name VARCHAR(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci
|
||||
)
|
||||
BEGIN
|
||||
DECLARE v_done INT DEFAULT 0;
|
||||
DECLARE v_tenant VARCHAR(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
|
||||
DECLARE v_route_id VARCHAR(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
DECLARE v_route_name VARCHAR(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
DECLARE v_set_id VARCHAR(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
|
||||
|
||||
DECLARE cur CURSOR FOR
|
||||
SELECT
|
||||
r.tenant_no,
|
||||
r.id,
|
||||
IFNULL(r.route_name, '')
|
||||
FROM biz_process_route r
|
||||
INNER JOIN (
|
||||
SELECT
|
||||
tenant_no,
|
||||
SUBSTRING_INDEX(
|
||||
GROUP_CONCAT(id ORDER BY (IFNULL(is_current, '0') = '1') DESC, update_time DESC SEPARATOR ','),
|
||||
',',
|
||||
1
|
||||
) AS pick_id
|
||||
FROM biz_process_route
|
||||
WHERE route_code = p_route_code
|
||||
AND del_flag = 0
|
||||
GROUP BY tenant_no
|
||||
) p ON p.pick_id = r.id
|
||||
WHERE NOT EXISTS (
|
||||
SELECT 1
|
||||
FROM biz_production_task_set s
|
||||
WHERE s.tenant_no = CONVERT(r.tenant_no USING utf8mb4) COLLATE utf8mb4_general_ci
|
||||
AND s.set_name = p_set_name
|
||||
AND s.del_flag = 0
|
||||
);
|
||||
|
||||
DECLARE CONTINUE HANDLER FOR NOT FOUND SET v_done = 1;
|
||||
|
||||
OPEN cur;
|
||||
read_loop: LOOP
|
||||
FETCH cur INTO v_tenant, v_route_id, v_route_name;
|
||||
IF v_done = 1 THEN
|
||||
LEAVE read_loop;
|
||||
END IF;
|
||||
|
||||
-- MD5+源键,避免 UUID() 同微秒撞主键
|
||||
SET v_set_id = UPPER(MD5(CONCAT(UUID(), v_route_id, RAND(), CONNECTION_ID())));
|
||||
|
||||
INSERT INTO biz_production_task_set (
|
||||
id, set_name, status, tenant_no, order_num, remark, is_builtin,
|
||||
create_by, create_dept_id, create_time, update_by, update_time, del_flag
|
||||
) VALUES (
|
||||
v_set_id,
|
||||
p_set_name,
|
||||
'1',
|
||||
CONVERT(v_tenant USING utf8mb4) COLLATE utf8mb4_general_ci,
|
||||
0,
|
||||
'内置模版',
|
||||
'1',
|
||||
NULL,
|
||||
'',
|
||||
NOW(),
|
||||
NULL,
|
||||
NOW(),
|
||||
0
|
||||
);
|
||||
|
||||
INSERT INTO biz_production_task_set_item (
|
||||
id, set_id, task_name, route_id, route_name, description, remark,
|
||||
tenant_no, order_num, create_by, create_dept_id, create_time, update_by, update_time, del_flag
|
||||
) VALUES (
|
||||
UPPER(MD5(CONCAT(UUID(), v_set_id, RAND(), CONNECTION_ID()))),
|
||||
v_set_id,
|
||||
'{lab_storage_code}样本处理',
|
||||
v_route_id,
|
||||
v_route_name,
|
||||
NULL,
|
||||
NULL,
|
||||
CONVERT(v_tenant USING utf8mb4) COLLATE utf8mb4_general_ci,
|
||||
1,
|
||||
NULL,
|
||||
'',
|
||||
NOW(),
|
||||
NULL,
|
||||
NOW(),
|
||||
0
|
||||
);
|
||||
END LOOP;
|
||||
CLOSE cur;
|
||||
END$$
|
||||
|
||||
DELIMITER ;
|
||||
|
||||
CALL sp_seed_production_task_set_builtin('CC样本处理-BUILTIN', '造血干样本处理(内置模版)');
|
||||
CALL sp_seed_production_task_set_builtin('MSC培养-BUILTIN', '干细胞培养(内置模版)');
|
||||
CALL sp_seed_production_task_set_builtin('UBMC冻存-BUILTIN', 'UBMC冻存(内置模版)');
|
||||
CALL sp_seed_production_task_set_builtin('PBMC冻存-BUILTIN', 'PBMC冻存(内置模版)');
|
||||
|
||||
DROP PROCEDURE IF EXISTS sp_seed_production_task_set_builtin;
|
||||
|
||||
-- 校验(可选):
|
||||
-- SELECT set_name, status, is_builtin, remark, tenant_no
|
||||
-- FROM biz_production_task_set
|
||||
-- WHERE is_builtin = '1' AND del_flag = 0;
|
||||
-- SELECT s.set_name, i.task_name, i.route_name
|
||||
-- FROM biz_production_task_set s
|
||||
-- JOIN biz_production_task_set_item i ON i.set_id = s.id AND i.del_flag = 0
|
||||
-- WHERE s.is_builtin = '1' AND s.del_flag = 0;
|
||||
@@ -0,0 +1,53 @@
|
||||
# 第三方全公司合并为一卡 Implementation Plan
|
||||
|
||||
> **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development (recommended) or superpowers:executing-plans to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking.
|
||||
|
||||
**Goal:** 批次内全部第三方任务合并为一张「第三方质检项目」卡;弹窗按公司分组展示「项目名 · 公司名」,共享备注/材料跨公司同步。
|
||||
|
||||
**Architecture:** 改前端聚合工具 `buildTaskListDisplayItems` 输出 `kind: 'all-third'`;任务子列表渲染总卡;`QcCompanyTaskResultDialog` 增加公司名展示与分组排序。保存仍循环调用现有 `complete-with-result`。
|
||||
|
||||
**Tech Stack:** Vue 3 + TypeScript + Element Plus;单测 `node:test`
|
||||
|
||||
**Spec:** `docs/superpowers/specs/2026-09-02-qc-all-third-party-one-card-design.md`
|
||||
|
||||
---
|
||||
|
||||
### Task 1: 聚合工具 + 单测
|
||||
|
||||
**Files:**
|
||||
- Modify: `web-admin/src/utils/qc-company-task-group.ts`
|
||||
- Modify: `web-admin/src/utils/qc-company-task-group.test.ts`
|
||||
|
||||
- [x] **Step 1: 改写单测为 all-third 语义**
|
||||
- [x] **Step 2: 实现类型与函数**
|
||||
- [x] **Step 3: 跑单测**
|
||||
|
||||
---
|
||||
|
||||
### Task 2: 任务子列表渲染总卡
|
||||
|
||||
**Files:**
|
||||
- Modify: `web-admin/src/views/quality-inspection/qc-work-order/QcWorkOrderTaskSubList.vue`
|
||||
|
||||
- [x] 模板:`item.kind === 'all-third'`(或兼容别名)渲染主标题「第三方质检项目」、副文案、进度、打开弹窗
|
||||
- [x] `openAllThirdResult` 传入全部 tasks;`companyDialogName` 固定为「第三方质检项目」
|
||||
- [x] 移除对 `company` / `orphan-third` 分卡分支的依赖
|
||||
|
||||
---
|
||||
|
||||
### Task 3: 弹窗展示公司名 + 分组排序
|
||||
|
||||
**Files:**
|
||||
- Modify: `web-admin/src/views/quality-inspection/qc-work-order/QcCompanyTaskResultDialog.vue`
|
||||
|
||||
- [x] 打开时对 `props.tasks` 先 `sortThirdPartyTasksByCompany` 再加载
|
||||
- [x] `ItemState` 增加 `companyName`;标题行:`项目名 · 公司名`
|
||||
- [x] `dialogTitle` 使用 props.companyName(父级传「第三方质检项目」)
|
||||
- [x] 样式:公司名 muted
|
||||
|
||||
---
|
||||
|
||||
### Task 4: 文档状态 + 图谱
|
||||
|
||||
- [x] Spec 状态改为「已实现」
|
||||
- [x] `./scripts/update-graph.sh frontend`
|
||||
@@ -0,0 +1,18 @@
|
||||
# 第三方公司聚合弹窗隐藏检测参数 Implementation Plan
|
||||
|
||||
> **For agentic workers:** 单文件小改,可直接按下列步骤执行。
|
||||
|
||||
**Goal:** 公司聚合弹窗隐藏检测参数区;保存仍回传已加载 results。
|
||||
|
||||
**Architecture:** 仅改 `QcCompanyTaskResultDialog.vue` 模板与必填参数校验;加载/保存链路保持。
|
||||
|
||||
**Tech Stack:** Vue 3 + Element Plus(web-admin)
|
||||
|
||||
---
|
||||
|
||||
### Task 1: 隐藏参数 UI + 去掉参数必填校验
|
||||
|
||||
- [x] 模板去掉「检测参数」区块
|
||||
- [x] `submit` 不再校验 `requiredFlag`
|
||||
- [x] 清理仅服务参数表单的 import / helper
|
||||
- [x] 保存仍 `results: item.params`(有值过滤)原样回传
|
||||
@@ -0,0 +1,28 @@
|
||||
# 完成工单前置校验 — 设计摘要
|
||||
|
||||
> 日期: 2026-09-02
|
||||
> 状态: 已实现
|
||||
> 页面: 【生产工单】、【我的生产任务】
|
||||
|
||||
## 行为
|
||||
|
||||
点击卡片「完成工单」时,前端按序校验;未通过则拦截结论弹窗并引导补录。
|
||||
|
||||
1. **生产接收登记**(仅 `cell_storage` / `research_donation`)
|
||||
- 无 `productionReception` → 提示并打开「样本接收信息填写」
|
||||
- 质检结论非「接收(js)」时不强制
|
||||
|
||||
2. **生产任务**(所有工单类型,跳过已作废/已完成任务)
|
||||
- 无未完成任务 → 提示先派发
|
||||
- 每个工艺步骤须有负责人、计划开始时间
|
||||
- 凡已录入的产出物行,条码不能为空(无产出行不拦)
|
||||
- 缺项 → 提示并打开对应【任务执行】弹窗(定位到问题步骤)
|
||||
|
||||
3. 通过后 → 现有「完成工单」结论弹窗
|
||||
|
||||
## 主要文件
|
||||
|
||||
- `web-admin/src/utils/production-complete-work-order-gate-logic.ts`
|
||||
- `web-admin/src/utils/production-complete-work-order-gate.ts`
|
||||
- `web-admin/src/views/production/production-work-order/index.vue`
|
||||
- `web-admin/src/views/production/my-production-task/index.vue`
|
||||
@@ -0,0 +1,141 @@
|
||||
# 第三方质检 · 全公司合并为一卡 — 设计
|
||||
|
||||
> 日期:2026-09-02
|
||||
> 状态:已实现
|
||||
> 完成日期:2026-09-02
|
||||
> 范围:`web-admin` 质检工单、我的质检任务(批次内任务列表)
|
||||
> 前置:`docs/superpowers/specs/2026-08-28-qc-third-party-company-card-design.md`(按公司分卡,已实现)
|
||||
> 关联:`docs/superpowers/specs/2026-09-02-qc-company-hide-params-design.md`(公司弹窗隐藏检测参数,已实现)
|
||||
> 交互 Demo:`docs/mockups/qc-all-third-party-one-card-demo.html`
|
||||
> 方案:A(前端聚合维度从「同公司」改为「批次内全部第三方」;复用现有保存接口)
|
||||
|
||||
## 1. 背景与目标
|
||||
|
||||
**现状**:同批次第三方任务按 `companyId` 聚合成多张公司卡;每张卡打开弹窗只含该公司项目。
|
||||
|
||||
**问题**:公司多时卡片碎、需多次打开弹窗才能填完本批次第三方结果。
|
||||
|
||||
**目标**:
|
||||
|
||||
- 列表:同批次全部第三方任务(`taskType = dsfjc`)合成 **一张** 卡,主标题固定为 **「第三方质检项目」**。
|
||||
- 弹窗:展示该卡全部项目;项目名后标注公司名;按公司分组排序。
|
||||
- 实验室自检:不合并,行为不变。
|
||||
- 检测参数:公司/总卡弹窗继续隐藏;保存仍回传已加载 `results`(沿用前置设计)。
|
||||
- 备注与检测材料:整弹窗一份,同步到本次弹窗内全部可写第三方任务(**跨公司共用**)。
|
||||
|
||||
## 2. 已确认决策
|
||||
|
||||
| 决策点 | 结论 |
|
||||
|--------|------|
|
||||
| 列表主标题 | 固定文案「第三方质检项目」 |
|
||||
| 聚合维度 | 同工单、同批次、全部第三方任务(不再按 companyId 分卡) |
|
||||
| 无 `companyId` 的第三方 | 并入总卡;展示名后公司文案为「未归属公司」 |
|
||||
| 弹窗项目排序 | 先按公司首次出现顺序分组,组内保持原任务顺序;「未归属公司」组放最后 |
|
||||
| 备注 / 检测材料 | 整弹窗一份,保存同步到本弹窗全部可写任务 |
|
||||
| 质检工单 / 我的质检任务 | 共用组件;我的任务仍只聚合/保存当前用户负责的第三方任务 |
|
||||
| 后端 | 不改表、不新增批量 API;继续循环 `complete-with-result` |
|
||||
| 本期不做 | 配置检测 UI 改造;工单系统查看详情里第三方区块重排(可后续对齐) |
|
||||
|
||||
## 3. 列表展示
|
||||
|
||||
### 3.1 卡片种类
|
||||
|
||||
任务区内:
|
||||
|
||||
1. **自检卡**(`sysz`):现有紧凑卡,一项目一卡。
|
||||
2. **第三方总卡**(新增 `kind: 'all-third'`,替代原多张 `kind: 'company'`):0 个第三方任务时不渲染。
|
||||
3. **不再渲染** `orphan-third` 单卡(无公司任务并入总卡)。
|
||||
|
||||
排序:全部自检卡(原序)→ 至多一张第三方总卡。
|
||||
|
||||
### 3.2 第三方总卡字段
|
||||
|
||||
| 元素 | 规则 |
|
||||
|------|------|
|
||||
| 主标题 | `第三方质检项目` |
|
||||
| 副文案 | `第三方 · N 个检测项目 · M 家公司`:N = 可见第三方任务数;M = 有非空 `companyId` 的去重公司数(不含「未归属」)。若 M = 0(仅未归属项),副文案省略「· M 家公司」,仅 `第三方 · N 个检测项目` |
|
||||
| 进度 Tag | `已完成数/总数`;全完成 success,部分 warning,全未完成 info |
|
||||
| 类型 Tag | `第三方检测` |
|
||||
| 负责人 | 可见任务 assignee 去重拼接 |
|
||||
| 主按钮 | 有可填权限 →「填写结果」;否则「查看」 |
|
||||
| 点击 / 双击 | 与主按钮一致,打开总卡弹窗 |
|
||||
|
||||
### 3.3 我的质检任务
|
||||
|
||||
- 仅当前用户作为负责人的第三方任务进入总卡。
|
||||
- 若用户在该批次无任何第三方任务 → 不展示总卡。
|
||||
|
||||
## 4. 弹窗
|
||||
|
||||
### 4.1 结构
|
||||
|
||||
1. 标题:`填写检测结果 · 第三方质检项目` / `查看检测结果 · 第三方质检项目`
|
||||
2. **检测项目块**(按 §2 排序后的任务列表)
|
||||
- 标题行:`{序号}. {项目名} · {公司名}`;无公司 → `· 未归属公司`;右侧任务状态 Tag
|
||||
- **检测结论**:任务状态(待执行 / 已完成)、结论(待结论 / 通过 / 不通过)
|
||||
- **不展示**检测参数区(加载仍拉 `results`,保存原样回传有值项)
|
||||
3. **备注与检测材料**(整弹窗一份)
|
||||
- 任一项为「已完成」时检测材料必填
|
||||
|
||||
只读模式:控件禁用,底栏仅关闭。
|
||||
|
||||
### 4.2 打开回显
|
||||
|
||||
- 各项目:各自状态、结论、`results`(内存持有,UI 不展示)。
|
||||
- 共享备注 / 材料:在本次弹窗任务集合中,取最近 `updateTime` 且对应字段非空的值(复用 `pickSharedRemarkAndAttachments`)。
|
||||
|
||||
### 4.3 保存
|
||||
|
||||
对可写集合中每个任务依次调用:
|
||||
|
||||
`POST /qc-tasks/{id}/complete-with-result`
|
||||
|
||||
- 分项:`results`(已加载有值项)、`taskStatus`、`conclusion`
|
||||
- 共享:同一份 `remark`、`thirdPartyAttachments`
|
||||
- 校验:已完成必须结论;任一项已完成则材料必填;**不**校验参数必填
|
||||
- 失败策略:逐任务提交;部分失败提示失败项;不做跨任务事务
|
||||
|
||||
保存成功后刷新任务列表 / `tasks-changed`。
|
||||
|
||||
## 5. 前端改动面
|
||||
|
||||
| 区域 | 改动 |
|
||||
|------|------|
|
||||
| `web-admin/src/utils/qc-company-task-group.ts` | `buildTaskListDisplayItems` 改为输出自检卡 + 可选一张 `all-third`;新增公司分组排序辅助(供弹窗用);更新单测 |
|
||||
| `QcWorkOrderTaskSubList.vue` | 渲染 `all-third` 卡文案与副标题;打开弹窗传入全部第三方 tasks;标题固定 |
|
||||
| `QcCompanyTaskResultDialog.vue` | 项目名后展示公司名;tasks 按公司分组排序后展示;`companyName` prop 可改为固定标题或忽略公司名、仅用「第三方质检项目」 |
|
||||
| Demo / 文档 | 已有 `docs/mockups/qc-all-third-party-one-card-demo.html` 作对照 |
|
||||
|
||||
API:不新增。
|
||||
|
||||
## 6. 与旧设计关系
|
||||
|
||||
- **取代** 2026-08-28 设计中「按 companyId 多公司卡」的列表行为。
|
||||
- **保留** 弹窗多项目填写、共享备注材料、我的任务子集、隐藏参数并回传 results。
|
||||
- 旧 `kind: 'company'` / `orphan-third` 类型可删除或保留为内部兼容,实现时以 `all-third` 为准,避免双路径。
|
||||
|
||||
## 7. 风险与缓解
|
||||
|
||||
| 风险 | 缓解 |
|
||||
|------|------|
|
||||
| 跨公司共用一份材料,业务上材料本属某公司报告 | 产品已确认;若后续要拆回按公司,可再改聚合维度 |
|
||||
| 项目多导致弹窗过长 | `dialog-form-layout` 仅 body 滚动;首版不做折叠 |
|
||||
| 部分保存失败 | 提示失败项,可再次打开补救 |
|
||||
| 历史多公司备注不一致 | 打开取「最近非空」;保存后统一为本次值 |
|
||||
|
||||
## 8. 验收场景(摘要)
|
||||
|
||||
1. 同批次 2 自检 + 公司 A 2 项 + 公司 B 1 项 + 1 项无 companyId → 列表 = 2 张自检卡 + 1 张「第三方质检项目」(N=4,M=2)。
|
||||
2. 打开弹窗:按公司分组顺序;无公司项在最后,文案含「未归属公司」;无参数区。
|
||||
3. 填写共享备注材料并保存 → 弹窗内全部可写第三方任务备注/附件一致。
|
||||
4. 我的质检任务:仅自己负责的第三方进入总卡与保存范围。
|
||||
5. 任一项「已完成」无材料 → 保存拦截。
|
||||
6. 自检卡行为与改造前一致。
|
||||
7. 工单「查看详情」中若有历史参数,仍只读展示(本需求不改该路径)。
|
||||
|
||||
## 9. 非目标
|
||||
|
||||
- 后端 DDL / 新聚合表
|
||||
- 配置检测勾选 UI
|
||||
- 公司卡批量删除
|
||||
- 系统查看弹窗第三方区块按公司重排(可选后续)
|
||||
@@ -0,0 +1,32 @@
|
||||
# 第三方公司聚合弹窗隐藏检测参数 — 设计
|
||||
|
||||
> 日期:2026-09-02
|
||||
> 状态:已实现
|
||||
> 完成日期:2026-09-02
|
||||
> 范围:`web-admin` 质检工单 / 我的质检任务 · `QcCompanyTaskResultDialog`
|
||||
|
||||
## 1. 目标
|
||||
|
||||
第三方公司聚合填写/查看弹窗中,不再展示「检测参数」区域;用户只维护任务状态、结论、备注与检测材料。
|
||||
|
||||
## 2. 已确认决策
|
||||
|
||||
| 决策点 | 结论 |
|
||||
|--------|------|
|
||||
| 隐藏范围 | 仅公司聚合弹窗;工单「查看详情」仍只读展示历史参数 |
|
||||
| 保存策略 | 弹窗不展示参数,但保存时原样回传服务端已加载的 `results`,避免误清空 |
|
||||
| 单项目第三方弹窗 | 不改,仍可填写参数 |
|
||||
| 实验室自检弹窗 | 不改 |
|
||||
|
||||
## 3. 行为
|
||||
|
||||
- **UI**:每个项目块保留项目名、状态 Tag、任务状态、结论;去掉「检测参数」标题、空提示与参数表单。
|
||||
- **加载**:仍请求 `fetchQcTaskResults`,写入内存态。
|
||||
- **校验**:不再校验参数必填(用户无法编辑);状态/结论/检测材料规则不变。
|
||||
- **保存**:`results` 仍按现有逻辑回传已加载参数(有值项);共享备注与检测材料不变。
|
||||
|
||||
## 4. 非目标
|
||||
|
||||
- 不改后端 API / 表结构
|
||||
- 不改第三方项目主数据参数配置
|
||||
- 不改 `QcWorkOrderTaskResultPanel` 等详情只读展示
|
||||
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
@@ -1,11 +1,11 @@
|
||||
# Graph Report - src (2026-09-01)
|
||||
# Graph Report - src (2026-09-02)
|
||||
|
||||
## Corpus Check
|
||||
- Large corpus: 997 files · ~658,862 words. Semantic extraction will be expensive (many Claude tokens). Consider running on a subfolder, or use --no-semantic to run AST-only.
|
||||
- Large corpus: 1000 files · ~659,950 words. Semantic extraction will be expensive (many Claude tokens). Consider running on a subfolder, or use --no-semantic to run AST-only.
|
||||
|
||||
## Summary
|
||||
- 3590 nodes · 5105 edges · 76 communities detected
|
||||
- Extraction: 78% EXTRACTED · 22% INFERRED · 0% AMBIGUOUS · INFERRED: 1125 edges (avg confidence: 0.8)
|
||||
- 3601 nodes · 5135 edges · 73 communities detected
|
||||
- Extraction: 78% EXTRACTED · 22% INFERRED · 0% AMBIGUOUS · INFERRED: 1133 edges (avg confidence: 0.8)
|
||||
- Token cost: 0 input · 0 output
|
||||
|
||||
## Community Hubs (Navigation)
|
||||
@@ -53,15 +53,15 @@
|
||||
- [[_COMMUNITY_Community 41|Community 41]]
|
||||
- [[_COMMUNITY_Community 42|Community 42]]
|
||||
- [[_COMMUNITY_Community 43|Community 43]]
|
||||
- [[_COMMUNITY_Community 44|Community 44]]
|
||||
- [[_COMMUNITY_Community 45|Community 45]]
|
||||
- [[_COMMUNITY_Community 46|Community 46]]
|
||||
- [[_COMMUNITY_Community 47|Community 47]]
|
||||
- [[_COMMUNITY_Community 48|Community 48]]
|
||||
- [[_COMMUNITY_Community 49|Community 49]]
|
||||
- [[_COMMUNITY_Community 50|Community 50]]
|
||||
- [[_COMMUNITY_Community 53|Community 53]]
|
||||
- [[_COMMUNITY_Community 54|Community 54]]
|
||||
- [[_COMMUNITY_Community 52|Community 52]]
|
||||
- [[_COMMUNITY_Community 55|Community 55]]
|
||||
- [[_COMMUNITY_Community 57|Community 57]]
|
||||
- [[_COMMUNITY_Community 56|Community 56]]
|
||||
- [[_COMMUNITY_Community 58|Community 58]]
|
||||
- [[_COMMUNITY_Community 59|Community 59]]
|
||||
- [[_COMMUNITY_Community 60|Community 60]]
|
||||
@@ -72,27 +72,24 @@
|
||||
- [[_COMMUNITY_Community 66|Community 66]]
|
||||
- [[_COMMUNITY_Community 67|Community 67]]
|
||||
- [[_COMMUNITY_Community 70|Community 70]]
|
||||
- [[_COMMUNITY_Community 72|Community 72]]
|
||||
- [[_COMMUNITY_Community 73|Community 73]]
|
||||
- [[_COMMUNITY_Community 74|Community 74]]
|
||||
- [[_COMMUNITY_Community 76|Community 76]]
|
||||
- [[_COMMUNITY_Community 78|Community 78]]
|
||||
- [[_COMMUNITY_Community 79|Community 79]]
|
||||
- [[_COMMUNITY_Community 81|Community 81]]
|
||||
- [[_COMMUNITY_Community 82|Community 82]]
|
||||
- [[_COMMUNITY_Community 83|Community 83]]
|
||||
- [[_COMMUNITY_Community 86|Community 86]]
|
||||
- [[_COMMUNITY_Community 87|Community 87]]
|
||||
- [[_COMMUNITY_Community 88|Community 88]]
|
||||
- [[_COMMUNITY_Community 92|Community 92]]
|
||||
- [[_COMMUNITY_Community 100|Community 100]]
|
||||
- [[_COMMUNITY_Community 103|Community 103]]
|
||||
- [[_COMMUNITY_Community 106|Community 106]]
|
||||
- [[_COMMUNITY_Community 107|Community 107]]
|
||||
- [[_COMMUNITY_Community 104|Community 104]]
|
||||
|
||||
## God Nodes (most connected - your core abstractions)
|
||||
1. `get()` - 317 edges
|
||||
2. `push()` - 127 edges
|
||||
2. `push()` - 128 edges
|
||||
3. `emit()` - 29 edges
|
||||
4. `WebSocketClient` - 26 edges
|
||||
5. `set()` - 22 edges
|
||||
6. `handleDynamicRoutes()` - 19 edges
|
||||
6. `handleDynamicRoutes()` - 20 edges
|
||||
7. `parseProtocolStandardImportText()` - 17 edges
|
||||
8. `onPick()` - 17 edges
|
||||
9. `walkRules()` - 16 edges
|
||||
@@ -105,89 +102,89 @@
|
||||
utils/oa-receive-account-value.ts → views/operations/storage-facility/index.vue
|
||||
- `dash()` --calls--> `formatDisplayOrDash()` [INFERRED]
|
||||
components/business/infusion-schedule-outbound-chain-view/index.vue → utils/datetime-display.ts
|
||||
- `dash()` --calls--> `formatDisplayOrDash()` [INFERRED]
|
||||
components/business/clinical-schedule-payment-detail/index.vue → utils/datetime-display.ts
|
||||
- `displayCell()` --calls--> `formatDisplayOrDash()` [INFERRED]
|
||||
views/production/waste-output/index.vue → utils/datetime-display.ts
|
||||
- `findTreeSelectShortLabel()` --calls--> `walk()` [INFERRED]
|
||||
utils/tree-path.ts → views/system/role/index.vue
|
||||
|
||||
## Communities
|
||||
|
||||
### Community 0 - "Community 0"
|
||||
Cohesion: 0.0
|
||||
Nodes (194): fetchAccessLogList(), fetchActiveRegions(), fetchCategoryList(), fetchCategoryParameters(), fetchCellProductPriceList(), fetchCellProductSpecList(), fetchCellProductTypeList(), fetchChannelAccount() (+186 more)
|
||||
Nodes (206): fetchAccessLogList(), fetchActiveRegions(), fetchCategoryList(), fetchCategoryParameters(), fetchCellProductPriceList(), fetchCellProductSpecList(), fetchCellProductTypeList(), fetchChannelAccount() (+198 more)
|
||||
|
||||
### Community 1 - "Community 1"
|
||||
Cohesion: 0.02
|
||||
Nodes (90): fetchUploadAttachment(), FireworkSystem, handleReportUpload(), handleReportUpload(), walk(), if(), async(), addDispatchItem() (+82 more)
|
||||
Cohesion: 0.03
|
||||
Nodes (93): fetchUploadAttachment(), FireworkSystem, handleReportUpload(), handleReportUpload(), walk(), async(), addDispatchItem(), createDispatchItem() (+85 more)
|
||||
|
||||
### Community 2 - "Community 2"
|
||||
Cohesion: 0.03
|
||||
Nodes (86): batchSavePilotCheckup(), deletePilotCheckupActualItem(), fetchCheckupInstitutionList(), fetchCheckupInstitutionPackageDetail(), fetchCheckupInstitutionPackages(), fetchPilotCheckupActualItems(), fetchPilotCheckupDetail(), fetchPilotCheckupList() (+78 more)
|
||||
Cohesion: 0.02
|
||||
Nodes (92): batchSavePilotCheckup(), deletePilotCheckupActualItem(), fetchCheckupInstitutionList(), fetchCheckupInstitutionPackageDetail(), fetchCheckupInstitutionPackages(), fetchPilotCheckupDetail(), fetchPilotCheckupList(), fetchUpdatePostBoundRoles() (+84 more)
|
||||
|
||||
### Community 3 - "Community 3"
|
||||
Cohesion: 0.02
|
||||
Nodes (64): fetchBatchDeleteOaReceiveAccounts(), fetchBatchMarkOaCcTasksRead(), fetchCreateOaReceiveAccount(), fetchDeleteOaReceiveAccount(), fetchMarkOaCcTaskRead(), fetchOaAppDraft(), fetchOaCcUnreadCount(), fetchOaInstanceDetail() (+56 more)
|
||||
Nodes (69): collectIds(), buildInboundBasicSection(), buildInboundCellStorageViewSections(), buildInboundResearchDonationViewSections(), buildReceptionSection(), buildTransportSection(), resolveInboundProtocolStatus(), buildBaseFields() (+61 more)
|
||||
|
||||
### Community 4 - "Community 4"
|
||||
Cohesion: 0.03
|
||||
Nodes (79): fetchEthnicList(), formatNowDatetime(), applyDonationBundleToForm(), createEmptyTransport(), ensureEthnicOptionInList(), handleOpenForAdd(), if(), loadEthnicOptions() (+71 more)
|
||||
Cohesion: 0.02
|
||||
Nodes (58): fetchProductionTaskList(), fetchProductionWasteOutputList(), fetchProductionReceptionBySampleCode(), fetchProductionReceptionSubmit(), fetchProductionReceptionUpdate(), handleDialogClose(), nodeSummary(), onAdd() (+50 more)
|
||||
|
||||
### Community 5 - "Community 5"
|
||||
Cohesion: 0.03
|
||||
Nodes (65): buildInboundBasicSection(), buildInboundCellStorageViewSections(), buildInboundResearchDonationViewSections(), buildReceptionSection(), buildTemporaryViewSections(), buildTransportSection(), resolveInboundProtocolStatus(), buildInsertedSiblingCard() (+57 more)
|
||||
Cohesion: 0.02
|
||||
Nodes (64): fetchBatchDeleteOaReceiveAccounts(), fetchBatchMarkOaCcTasksRead(), fetchCreateOaReceiveAccount(), fetchDeleteOaReceiveAccount(), fetchMarkOaCcTaskRead(), fetchOaAppDraft(), fetchOaCcUnreadCount(), fetchOaInstanceDetail() (+56 more)
|
||||
|
||||
### Community 6 - "Community 6"
|
||||
Cohesion: 0.03
|
||||
Nodes (34): fetchGetMenuList(), ComponentLoader, IframeRouteManager, MenuProcessor, RoutePermissionValidator, RouteRegistry, RouteTransformer, useAppMode() (+26 more)
|
||||
Nodes (65): fetchCellSampleTypeList(), fetchCheckupInstitutionInvoices(), fetchCheckupInstitutionProjects(), fetchCreateCellSampleType(), fetchCreateCheckupInstitution(), fetchCreateCheckupInstitutionInvoice(), fetchCreateCheckupInstitutionProject(), fetchDeleteCellSampleType() (+57 more)
|
||||
|
||||
### Community 7 - "Community 7"
|
||||
Cohesion: 0.03
|
||||
Nodes (48): handleBlur(), handleFocus(), handleInput(), fetchClinicalPaymentDetail(), fetchClinicalPayments(), fetchClinicalReceiptConfirmed(), fetchClinicalReceiptPending(), fetchClinicalRefundConfirmed() (+40 more)
|
||||
Nodes (60): useSettingsHandlers(), useSettingsPanel(), useSettingsState(), useCeremony(), useTheme(), if(), branchConditionLines(), collectConditionReferencedFields() (+52 more)
|
||||
|
||||
### Community 8 - "Community 8"
|
||||
Cohesion: 0.03
|
||||
Nodes (61): fetchCheckupInstitutionInvoices(), fetchCheckupInstitutionProjects(), fetchCreateCheckupInstitution(), fetchCreateCheckupInstitutionInvoice(), fetchCreateCheckupInstitutionProject(), fetchUpdateCheckupInstitution(), fetchUpdateCheckupInstitutionInvoice(), fetchUpdateCheckupInstitutionProject() (+53 more)
|
||||
Nodes (42): fetchGetMenuList(), fetchGetMenuCodes(), fetchGetUserInfo(), fetchLogin(), fetchUpdateProfile(), fetchUploadProfileAvatar(), MenuProcessor, RoutePermissionValidator (+34 more)
|
||||
|
||||
### Community 9 - "Community 9"
|
||||
Cohesion: 0.03
|
||||
Nodes (62): fetchOaRelatedSummaries(), useSettingsHandlers(), useSettingsPanel(), useSettingsState(), useCeremony(), useTheme(), if(), nodeSummary() (+54 more)
|
||||
Nodes (56): fetchMyProductionTasks(), fetchMyQcTaskList(), fetchQcTaskDetail(), fetchQcTaskList(), fetchMineTasksForWorkOrders(), useInboundSiblingNavigation(), shouldApplyTriggerSourceFilter(), useQcWorkOrderTabPage() (+48 more)
|
||||
|
||||
### Community 10 - "Community 10"
|
||||
Cohesion: 0.03
|
||||
Nodes (58): fetchFullmoonTodoList(), fetchUpdateFullmoonTodoInsurance(), fetchCollectionProtocolAuditList(), fetchCollectionProtocolDetail(), fetchCollectionProtocolList(), fetchCreateProtocolInvoiceRequest(), fetchInvoiceEligiblePayments(), fetchPaymentDetailList() (+50 more)
|
||||
Nodes (59): fetchFullmoonTodoList(), fetchUpdateFullmoonTodoInsurance(), fetchCollectionProtocolAuditList(), fetchCollectionProtocolDetail(), fetchCollectionProtocolList(), fetchCreateProtocolInvoiceRequest(), fetchInvoiceEligiblePayments(), fetchPaymentDetailList() (+51 more)
|
||||
|
||||
### Community 11 - "Community 11"
|
||||
Cohesion: 0.04
|
||||
Nodes (67): fetchDeptTree(), fetchUserList(), fetchOaFlowPreview(), fetchOaTemplateDetail(), formatHandoverUserLabel(), formatNowDatetime(), fullFileUrl(), handlePreviewAttachment() (+59 more)
|
||||
Cohesion: 0.03
|
||||
Nodes (56): fetchEthnicList(), formatNowDatetime(), formatHandoverUserLabel(), formatNowDatetime(), fullFileUrl(), handlePreviewAttachment(), isVideoFile(), resetHandoverForm() (+48 more)
|
||||
|
||||
### Community 12 - "Community 12"
|
||||
Cohesion: 0.04
|
||||
Nodes (44): buildBaseFields(), buildInboundBasicSection(), buildInboundCellStorageProductionViewSections(), buildInboundResearchDonationProductionViewSections(), buildOutboundBasicExperimentProductionViewSections(), buildOutboundClinicalProductionViewSections(), buildOutboundDetail(), buildOutboundPilotProductionViewSections() (+36 more)
|
||||
Nodes (53): buildTemporaryViewSections(), buildInsertedSiblingCard(), resolveShowProtocolPaymentAtGroup(), appendTaskResultSections(), batchTasksForPanelSlot(), buildConfiguredOnlySection(), for(), set() (+45 more)
|
||||
|
||||
### Community 13 - "Community 13"
|
||||
Cohesion: 0.04
|
||||
Nodes (46): fetchProductionWorkOrderQcInfo(), dash(), fmtMoney(), auditorDisplay(), dash(), ensureUnitsInOptions(), expressName(), formatYm() (+38 more)
|
||||
Nodes (61): fetchDeptTree(), fetchUserList(), fetchOaFlowPreview(), fetchOaTemplateDetail(), remoteSearchHandoverUsers(), flowNeedsInitiatorSelect(), loadFlowPreview(), loadUsers() (+53 more)
|
||||
|
||||
### Community 14 - "Community 14"
|
||||
Cohesion: 0.04
|
||||
Nodes (50): fetchMyProductionTasks(), fetchMyQcTaskList(), fetchQcTaskDetail(), fetchQcTaskList(), fetchMineTasksForWorkOrders(), buildMineTableRows(), buildPresetTasksMap(), buildWorkOrderFromTasks() (+42 more)
|
||||
Nodes (33): handleBlur(), handleFocus(), handleInput(), fetchDeleteMaterialBatch(), fetchMaterialBatchList(), fetchMaterialBatchOptions(), fetchMaterialList(), fetchMaterialOptions() (+25 more)
|
||||
|
||||
### Community 15 - "Community 15"
|
||||
Cohesion: 0.04
|
||||
Nodes (48): fetchCreateCustomer(), fetchCustomerList(), fetchDeleteCustomer(), fetchUpdateCustomer(), updateInfusionScheduleStatus(), handleDialogClose(), handleAdd(), handleDelete() (+40 more)
|
||||
Cohesion: 0.05
|
||||
Nodes (34): fetchClinicalPaymentDetail(), fetchClinicalPayments(), fetchClinicalReceiptConfirmed(), fetchClinicalReceiptPending(), fetchClinicalRefundConfirmed(), fetchClinicalRefundPending(), fetchOrderAdjusts(), fetchOrderDetail() (+26 more)
|
||||
|
||||
### Community 16 - "Community 16"
|
||||
Cohesion: 0.04
|
||||
Nodes (38): fetchCellSampleTypeList(), fetchCreateCellSampleType(), fetchCreateMenu(), fetchDeleteCellSampleType(), fetchDeleteMenu(), fetchMenuTree(), fetchUpdateCellSampleType(), fetchUpdateMenu() (+30 more)
|
||||
|
||||
### Community 17 - "Community 17"
|
||||
Cohesion: 0.05
|
||||
Nodes (37): fetchAddTaskStep(), fetchCopyTaskStep(), fetchDeleteTaskStep(), fetchDispatchProductionTaskSteps(), fetchForwardProductionTask(), fetchProductionTaskDetail(), fetchProductionTaskEditorInit(), fetchProductionTaskList() (+29 more)
|
||||
|
||||
### Community 18 - "Community 18"
|
||||
Cohesion: 0.05
|
||||
Nodes (39): fetchCreateQcInspectionItemTemplate(), fetchDeleteQcInspectionItemTemplate(), fetchQcInspectionItemTemplateDetail(), fetchQcInspectionItemTemplateList(), fetchQcInspectionItemTemplatesActive(), fetchUpdateQcInspectionItemTemplate(), fetchQcLabTestItemList(), fetchQcLabTestItemsActive() (+31 more)
|
||||
|
||||
### Community 17 - "Community 17"
|
||||
Cohesion: 0.07
|
||||
Nodes (43): fetchOaRelatedSummaries(), buildFormRows(), buildOaPrintFilename(), buildOaPrintModel(), canvasToPdf(), ensurePlainObject(), exportOaApprovalPdf(), extractUrls() (+35 more)
|
||||
|
||||
### Community 18 - "Community 18"
|
||||
Cohesion: 0.06
|
||||
Nodes (40): fetchCreateCustomer(), fetchCustomerList(), fetchDeleteCustomer(), fetchUpdateCustomer(), updateInfusionScheduleStatus(), handleAdd(), handleDelete(), handleDropdownCommand() (+32 more)
|
||||
|
||||
### Community 19 - "Community 19"
|
||||
Cohesion: 0.08
|
||||
Nodes (37): formatDatetimeToMinute(), handleChineseDatetimePaste(), parseChineseDatetimeText(), parseBirthOrder(), parseChineseNumeral(), addSampleHint(), earliestCollectTime(), isMaternalBloodEmpty() (+29 more)
|
||||
@@ -197,60 +194,60 @@ Cohesion: 0.06
|
||||
Nodes (22): fetchQcMaterialBatchDetail(), fetchQcMaterialBatchList(), fetchQcMaterialBatchOptions(), fetchQcMaterialList(), fetchQcMaterialOptions(), fetchUpdateQcMaterialBatch(), fetchMarkQcMaterialUsageFullyUsed(), financeAttachmentsToUrlString() (+14 more)
|
||||
|
||||
### Community 21 - "Community 21"
|
||||
Cohesion: 0.05
|
||||
Nodes (27): fetchUpdatePostBoundRoles(), fetchMineQcWorkOrderTabUnfinishedCounts(), fetchOutboundQcDetail(), fetchQcWorkOrderDetail(), fetchQcWorkOrderList(), fetchQcWorkOrdersBySample(), fetchQcWorkOrderTabUnfinishedCounts(), reload() (+19 more)
|
||||
|
||||
### Community 22 - "Community 22"
|
||||
Cohesion: 0.08
|
||||
Nodes (34): buildFormRows(), buildOaPrintFilename(), buildOaPrintModel(), canvasToPdf(), ensurePlainObject(), exportOaApprovalPdf(), extractUrls(), formatFieldValue() (+26 more)
|
||||
|
||||
### Community 23 - "Community 23"
|
||||
Cohesion: 0.1
|
||||
Nodes (2): WebSocketClient, TableCache
|
||||
|
||||
### Community 24 - "Community 24"
|
||||
### Community 22 - "Community 22"
|
||||
Cohesion: 0.08
|
||||
Nodes (33): fetchRefreshToken(), toLogin(), base64ToBytes(), bytesToBase64(), decryptJson(), deriveKey(), encryptJson(), fromBase64Url() (+25 more)
|
||||
|
||||
### Community 25 - "Community 25"
|
||||
### Community 23 - "Community 23"
|
||||
Cohesion: 0.07
|
||||
Nodes (13): fetchProductionWorkOrderQcInfo(), dash(), fmtMoney(), auditorDisplay(), dash(), ensureUnitsInOptions(), expressName(), formatYm() (+5 more)
|
||||
|
||||
### Community 24 - "Community 24"
|
||||
Cohesion: 0.09
|
||||
Nodes (8): getDefaultLanguage(), checkStorageCompatibility(), StorageConfig, getSystemStorage(), getSysVersion(), StorageKeyManager, StorageCompatibilityManager, validateStorageData()
|
||||
|
||||
### Community 25 - "Community 25"
|
||||
Cohesion: 0.08
|
||||
Nodes (12): ComponentLoader, IframeRouteManager, RouteTransformer, getFirstMenuPath(), getFirstSecondLevelMenuPath(), isIframe(), isNavigableMenuItem(), isWorkbenchMenuItem() (+4 more)
|
||||
|
||||
### Community 26 - "Community 26"
|
||||
Cohesion: 0.08
|
||||
Nodes (20): fetchAttachmentDownloadUrl(), attachmentFullUrl(), dash(), handleAttachmentDownload(), handleAttachmentPreview(), ensureUniqueZipEntryName(), fetchAttachmentBlob(), getAttachmentExtension() (+12 more)
|
||||
|
||||
### Community 27 - "Community 27"
|
||||
Cohesion: 0.08
|
||||
Nodes (20): createEmptySnapshots(), normalizeConfiguredReagents(), normalizeConsumables(), normalizeDataCollections(), normalizeReagents(), normalizeStepOutputs(), serializeAttachments(), serializeEquipmentIds() (+12 more)
|
||||
Cohesion: 0.09
|
||||
Nodes (29): fetchAddTaskStep(), fetchCopyTaskStep(), fetchDeleteTaskStep(), fetchDispatchProductionTaskSteps(), fetchForwardProductionTask(), fetchProductionTaskDetail(), fetchProductionTaskEditorInit(), fetchReassignProductionTask() (+21 more)
|
||||
|
||||
### Community 28 - "Community 28"
|
||||
Cohesion: 0.08
|
||||
Nodes (22): fetchMineProductionWorkOrderTabStepCounts(), fetchMineProductionWorkOrderTabStepCountsDeduped(), fetchProductionWorkOrderCellProductOptions(), fetchProductionWorkOrderDetail(), fetchProductionWorkOrderList(), fetchProductionWorkOrderQcDispatchOptions(), fetchProductionWorkOrderTabStepCounts(), fetchProductionWorkOrderTabStepCountsDeduped() (+14 more)
|
||||
|
||||
### Community 29 - "Community 29"
|
||||
Cohesion: 0.07
|
||||
Nodes (19): fetchDeleteMaterialBatch(), fetchMaterialBatchList(), fetchMaterialBatchOptions(), fetchMaterialList(), fetchMaterialOptions(), fetchUpdateMaterialBatch(), fetchMaterialUsageList(), fetchMyMaterialUsageList() (+11 more)
|
||||
Cohesion: 0.08
|
||||
Nodes (20): createEmptySnapshots(), normalizeConfiguredReagents(), normalizeConsumables(), normalizeDataCollections(), normalizeReagents(), normalizeStepOutputs(), serializeAttachments(), serializeEquipmentIds() (+12 more)
|
||||
|
||||
### Community 30 - "Community 30"
|
||||
Cohesion: 0.09
|
||||
Nodes (22): fetchOaAppList(), fetchOaGroupList(), fetchPublishOaApp(), loadData(), loadGroups(), resetForm(), onSuccess(), goBack() (+14 more)
|
||||
Nodes (27): completePilotApplication(), deletePilotApplication(), fetchPilotApplicationList(), startPilotApplication(), voidPilotApplication(), handleBatchComplete(), handleBatchStart(), handleBatchVoid() (+19 more)
|
||||
|
||||
### Community 31 - "Community 31"
|
||||
Cohesion: 0.09
|
||||
Nodes (22): fetchOaAppList(), fetchOaGroupList(), fetchPublishOaApp(), loadData(), loadGroups(), resetForm(), onSuccess(), goBack() (+14 more)
|
||||
|
||||
### Community 32 - "Community 32"
|
||||
Cohesion: 0.1
|
||||
Nodes (21): displayPeople(), nodeStatusText(), personLines(), personStatusHint(), personTitle(), showNodeComment(), signBadge(), signBadgeText() (+13 more)
|
||||
|
||||
### Community 32 - "Community 32"
|
||||
Cohesion: 0.11
|
||||
Nodes (25): completePilotApplication(), deletePilotApplication(), fetchPilotApplicationList(), startPilotApplication(), voidPilotApplication(), clearTableSelection(), handleBatchComplete(), handleBatchStart() (+17 more)
|
||||
|
||||
### Community 33 - "Community 33"
|
||||
Cohesion: 0.12
|
||||
Nodes (20): fetchGetMenuCodes(), fetchGetUserInfo(), fetchLogin(), fetchUpdateProfile(), fetchUploadProfileAvatar(), fetchUserInfo(), buildWebEncryptedLoginBody(), defaultAvatarPathByRole() (+12 more)
|
||||
Cohesion: 0.09
|
||||
Nodes (12): fetchMineQcWorkOrderTabUnfinishedCounts(), fetchOutboundQcDetail(), fetchQcWorkOrderDetail(), fetchQcWorkOrderList(), fetchQcWorkOrdersBySample(), fetchQcWorkOrderTabUnfinishedCounts(), reload(), reloadTabCounts() (+4 more)
|
||||
|
||||
### Community 34 - "Community 34"
|
||||
Cohesion: 0.12
|
||||
Nodes (17): fetchProductionReceptionBySampleCode(), fetchProductionReceptionSubmit(), fetchProductionReceptionUpdate(), onUserSelectVisible(), remoteSearchUsers(), buildPayload(), ensureDefaultHandler(), initDialog() (+9 more)
|
||||
Cohesion: 0.13
|
||||
Nodes (19): fetchCreateMenu(), fetchDeleteMenu(), fetchMenuTree(), fetchUpdateMenu(), postorder(), preorder(), applyTreeExpand(), handleAdd() (+11 more)
|
||||
|
||||
### Community 35 - "Community 35"
|
||||
Cohesion: 0.1
|
||||
@@ -261,80 +258,80 @@ Cohesion: 0.12
|
||||
Nodes (15): addCopyButton(), highlightCode(), insertLineNumbers(), isBlockProcessed(), markBlockAsProcessed(), processBlock(), setupHighlightDirective(), setupRippleDirective() (+7 more)
|
||||
|
||||
### Community 37 - "Community 37"
|
||||
Cohesion: 0.13
|
||||
Nodes (8): chipTitle(), confirmPicker(), memberOptionLabel(), removeUser(), resolveUser(), signBadge(), signBadgeText(), updateSelect()
|
||||
Cohesion: 0.14
|
||||
Nodes (14): if(), calcTripLegDays(), dayIndex(), emptyTripLeg(), endOffset(), startOffset(), sumTripLegDays(), buildTripKitChildren() (+6 more)
|
||||
|
||||
### Community 38 - "Community 38"
|
||||
Cohesion: 0.2
|
||||
Nodes (14): applyFlagToRule(), applySchema(), countRules(), getActiveRule(), getDesigner(), getSetupState(), onMessage(), readFlag() (+6 more)
|
||||
|
||||
### Community 39 - "Community 39"
|
||||
Cohesion: 0.16
|
||||
Nodes (14): fetchCreateEnvDetectItem(), fetchDeleteEnvDetectItem(), fetchEnvDetectItemDetail(), fetchEnvDetectItemList(), fetchEnvDetectItemsActive(), fetchUpdateEnvDetectItem(), handleAdd(), handleBatchDelete() (+6 more)
|
||||
|
||||
### Community 40 - "Community 40"
|
||||
Cohesion: 0.12
|
||||
Nodes (6): setupOaConfirmationKit(), ensureOaKitMenu(), setupOaLeaveKit(), setupOaOvertimeKit(), setupOaResignationKit(), setupOaTripKit()
|
||||
|
||||
### Community 40 - "Community 40"
|
||||
### Community 41 - "Community 41"
|
||||
Cohesion: 0.16
|
||||
Nodes (10): useTable(), useTableImpl(), getColumnChecks(), useTableColumns(), createErrorHandler(), createSmartDebounce(), defaultResponseAdapter(), extractPagination() (+2 more)
|
||||
|
||||
### Community 41 - "Community 41"
|
||||
### Community 42 - "Community 42"
|
||||
Cohesion: 0.27
|
||||
Nodes (14): useChart(), useChartComponent(), useChartOps(), colourBlend(), getCssVar(), getDarkColor(), getLightColor(), handleElementThemeColor() (+6 more)
|
||||
|
||||
### Community 42 - "Community 42"
|
||||
### Community 43 - "Community 43"
|
||||
Cohesion: 0.33
|
||||
Nodes (13): buildProtocolPaymentFlowSteps(), dash(), financeReceiptTime(), formatAmount(), hasFinanceReceipt(), hasFinanceRefund(), hasReceiptSubmit(), hasRefundSubmit() (+5 more)
|
||||
|
||||
### Community 44 - "Community 44"
|
||||
Cohesion: 0.19
|
||||
Nodes (6): fetchServiceOrderTxnList(), handleReset(), handleSearch(), handleTabChange(), loadData(), switchTab()
|
||||
|
||||
### Community 43 - "Community 43"
|
||||
### Community 45 - "Community 45"
|
||||
Cohesion: 0.24
|
||||
Nodes (10): buildPrintDocumentHtml(), cleanupPrintIframe(), embedSopImagesAsDataUrls(), getSopA4ContentHeightPx(), getSopA4EditorHeightPx(), normalizeSopCheckboxes(), prepareSopHtmlForPrint(), printSopHtml() (+2 more)
|
||||
|
||||
### Community 45 - "Community 45"
|
||||
Cohesion: 0.15
|
||||
Nodes (4): fetchNextDonationSampleCode(), fetchResearchDonationAuditList(), fetchResearchDonationDetail(), fetchResearchDonationList()
|
||||
|
||||
### Community 46 - "Community 46"
|
||||
### Community 47 - "Community 47"
|
||||
Cohesion: 0.24
|
||||
Nodes (8): fullFileUrl(), handlePreviewAttachment(), isVideoFile(), normalizeDisplayValue(), resolveReviewCellType(), resolveReviewQuantity(), resolveReviewSpecText(), uniqueJoined()
|
||||
|
||||
### Community 47 - "Community 47"
|
||||
### Community 48 - "Community 48"
|
||||
Cohesion: 0.33
|
||||
Nodes (7): buildSheetColumns(), downloadOaHistoryExcel(), exportTimestamp(), pad(), sanitizeFilename(), styleHeaderCell(), writeHeaderRows()
|
||||
|
||||
### Community 49 - "Community 49"
|
||||
Cohesion: 0.31
|
||||
Nodes (4): isSlotAvailable(), resolveStorageSlotRangeFill(), slotFacilityNodeId(), sortBoxSlots()
|
||||
|
||||
### Community 48 - "Community 48"
|
||||
### Community 50 - "Community 50"
|
||||
Cohesion: 0.25
|
||||
Nodes (2): handleTouchEnd(), setTransition()
|
||||
|
||||
### Community 50 - "Community 50"
|
||||
### Community 52 - "Community 52"
|
||||
Cohesion: 0.28
|
||||
Nodes (4): isActiveHistoryInstance(), isUploadPreviewLabel(), previewColumnMinWidth(), syncWorktabTitle()
|
||||
|
||||
### Community 53 - "Community 53"
|
||||
Cohesion: 0.28
|
||||
Nodes (4): fetchMyProductionMaterialConsumptions(), handleReset(), handleSearch(), loadData()
|
||||
|
||||
### Community 54 - "Community 54"
|
||||
### Community 55 - "Community 55"
|
||||
Cohesion: 0.39
|
||||
Nodes (6): isIgnorableScriptError(), normalizeErrorMessage(), registerPromiseErrorHandler(), registerResourceErrorHandler(), scriptErrorHandler(), setupErrorHandle()
|
||||
|
||||
### Community 55 - "Community 55"
|
||||
### Community 56 - "Community 56"
|
||||
Cohesion: 0.36
|
||||
Nodes (1): TableHeightCalculator
|
||||
|
||||
### Community 57 - "Community 57"
|
||||
### Community 58 - "Community 58"
|
||||
Cohesion: 0.33
|
||||
Nodes (2): logApiCryptoBootInfo(), maskSecret()
|
||||
|
||||
### Community 58 - "Community 58"
|
||||
### Community 59 - "Community 59"
|
||||
Cohesion: 0.38
|
||||
Nodes (4): handleFocus(), handleInput(), parseDecimalToNumber(), sanitizeDecimalInput()
|
||||
|
||||
### Community 59 - "Community 59"
|
||||
Cohesion: 0.29
|
||||
Nodes (1): fetchQcMonthTemplateList()
|
||||
|
||||
### Community 60 - "Community 60"
|
||||
Cohesion: 0.29
|
||||
Nodes (2): fetchLeaveDetail(), fetchLeaveList()
|
||||
Nodes (1): fetchQcMonthTemplateList()
|
||||
|
||||
### Community 61 - "Community 61"
|
||||
Cohesion: 0.4
|
||||
@@ -364,70 +361,56 @@ Nodes (1): fetchQcMaterialAmountAuthUsers()
|
||||
Cohesion: 0.67
|
||||
Nodes (2): if(), logSidebarMenu()
|
||||
|
||||
### Community 72 - "Community 72"
|
||||
Cohesion: 0.5
|
||||
Nodes (1): fetchStorageEntrySmsList()
|
||||
|
||||
### Community 73 - "Community 73"
|
||||
Cohesion: 0.5
|
||||
Nodes (1): fetchSampleSmsNotificationList()
|
||||
|
||||
### Community 74 - "Community 74"
|
||||
Cohesion: 0.5
|
||||
Nodes (1): fetchQcSmsList()
|
||||
|
||||
### Community 79 - "Community 79"
|
||||
### Community 76 - "Community 76"
|
||||
Cohesion: 1.0
|
||||
Nodes (2): getSettingDefaults(), resetToDefaults()
|
||||
|
||||
### Community 82 - "Community 82"
|
||||
### Community 78 - "Community 78"
|
||||
Cohesion: 1.0
|
||||
Nodes (2): buildOvertimeKitChildren(), uniqueId()
|
||||
|
||||
### Community 83 - "Community 83"
|
||||
### Community 79 - "Community 79"
|
||||
Cohesion: 1.0
|
||||
Nodes (2): buildLeaveKitChildren(), uniqueId()
|
||||
|
||||
### Community 86 - "Community 86"
|
||||
### Community 81 - "Community 81"
|
||||
Cohesion: 1.0
|
||||
Nodes (2): buildConfirmationKitChildren(), uniqueId()
|
||||
|
||||
### Community 87 - "Community 87"
|
||||
### Community 82 - "Community 82"
|
||||
Cohesion: 1.0
|
||||
Nodes (2): buildResignationKitChildren(), uniqueId()
|
||||
|
||||
### Community 88 - "Community 88"
|
||||
### Community 83 - "Community 83"
|
||||
Cohesion: 1.0
|
||||
Nodes (2): copyTextToClipboard(), copyTextWithFallback()
|
||||
|
||||
### Community 92 - "Community 92"
|
||||
### Community 86 - "Community 86"
|
||||
Cohesion: 1.0
|
||||
Nodes (2): getSourceProtocolAttachment(), normalizeAttachmentFiles()
|
||||
|
||||
### Community 103 - "Community 103"
|
||||
### Community 100 - "Community 100"
|
||||
Cohesion: 1.0
|
||||
Nodes (2): emptyTabCounts(), useProductionWorkOrderTabStepCounts()
|
||||
|
||||
### Community 106 - "Community 106"
|
||||
### Community 103 - "Community 103"
|
||||
Cohesion: 1.0
|
||||
Nodes (2): initialProgress(), useQcWorkOrderAttachmentExport()
|
||||
|
||||
### Community 107 - "Community 107"
|
||||
### Community 104 - "Community 104"
|
||||
Cohesion: 1.0
|
||||
Nodes (2): emptyTabCounts(), useQcWorkOrderTabUnfinishedCounts()
|
||||
|
||||
## Knowledge Gaps
|
||||
- **Thin community `Community 23`** (42 nodes): `WebSocketClient`, `.calculateReconnectDelay()`, `.clearAllTimers()`, `.clearConnectionTimers()`, `.clearTimer()`, `.close()`, `.closeCurrentSocketForReconnect()`, `.connect()`, `.connectionStatusText()`, `.constructor()`, `.destroyInstance()`, `.flushMessageQueue()`, `.getInstance()`, `.getReadyStateText()`, `.handleClose()`, `.handleConnectionTimeout()`, `.handleError()`, `.handleMessage()`, `.handleOpen()`, `.init()`, `.isWebSocketConnected()`, `.reconnect()`, `.resetHeartbeat()`, `.send()`, `.startHeartbeat()`, `.startPing()`, `TableCache`, `.cleanupExpired()`, `.clear()`, `.clearByTags()`, `.clearCurrentSearch()`, `.clearPagination()`, `.constructor()`, `.evictLRU()`, `.generateKey()`, `.generateTags()`, `.get()`, `.getStats()`, `.log()`, `.set()`, `index.ts`, `tableCache.ts`
|
||||
- **Thin community `Community 21`** (42 nodes): `WebSocketClient`, `.calculateReconnectDelay()`, `.clearAllTimers()`, `.clearConnectionTimers()`, `.clearTimer()`, `.close()`, `.closeCurrentSocketForReconnect()`, `.connect()`, `.connectionStatusText()`, `.constructor()`, `.destroyInstance()`, `.flushMessageQueue()`, `.getInstance()`, `.getReadyStateText()`, `.handleClose()`, `.handleConnectionTimeout()`, `.handleError()`, `.handleMessage()`, `.handleOpen()`, `.init()`, `.isWebSocketConnected()`, `.reconnect()`, `.resetHeartbeat()`, `.send()`, `.startHeartbeat()`, `.startPing()`, `TableCache`, `.cleanupExpired()`, `.clear()`, `.clearByTags()`, `.clearCurrentSearch()`, `.clearPagination()`, `.constructor()`, `.evictLRU()`, `.generateKey()`, `.generateTags()`, `.get()`, `.getStats()`, `.log()`, `.set()`, `index.ts`, `tableCache.ts`
|
||||
Too small to be a meaningful cluster - may be noise or needs more connections extracted.
|
||||
- **Thin community `Community 48`** (9 nodes): `cleanupEventListeners()`, `handleTouchEnd()`, `handleTouchMove()`, `handleTouchStart()`, `handleWheelScroll()`, `if()`, `setTransition()`, `setupEventListeners()`, `index.vue`
|
||||
- **Thin community `Community 50`** (9 nodes): `cleanupEventListeners()`, `handleTouchEnd()`, `handleTouchMove()`, `handleTouchStart()`, `handleWheelScroll()`, `if()`, `setTransition()`, `setupEventListeners()`, `index.vue`
|
||||
Too small to be a meaningful cluster - may be noise or needs more connections extracted.
|
||||
- **Thin community `Community 55`** (8 nodes): `TableHeightCalculator`, `.calculate()`, `.calculateOffset()`, `.calculatePaginationOffset()`, `.constructor()`, `.getHeaderHeight()`, `useTableHeight()`, `useTableHeight.ts`
|
||||
- **Thin community `Community 56`** (8 nodes): `TableHeightCalculator`, `.calculate()`, `.calculateOffset()`, `.calculatePaginationOffset()`, `.constructor()`, `.getHeaderHeight()`, `useTableHeight()`, `useTableHeight.ts`
|
||||
Too small to be a meaningful cluster - may be noise or needs more connections extracted.
|
||||
- **Thin community `Community 57`** (7 nodes): `App.vue`, `main.ts`, `refreshButtonAutoIcons()`, `refreshPanelTitleIcons()`, `logApiCryptoBootInfo()`, `maskSecret()`, `console.ts`
|
||||
- **Thin community `Community 58`** (7 nodes): `App.vue`, `main.ts`, `refreshButtonAutoIcons()`, `refreshPanelTitleIcons()`, `logApiCryptoBootInfo()`, `maskSecret()`, `console.ts`
|
||||
Too small to be a meaningful cluster - may be noise or needs more connections extracted.
|
||||
- **Thin community `Community 59`** (7 nodes): `fetchConfirmQcMonthImport()`, `fetchCreateQcMonthTemplate()`, `fetchDeleteQcMonthTemplate()`, `fetchPreviewQcMonthImport()`, `fetchQcMonthTemplateList()`, `fetchUpdateQcMonthTemplate()`, `qc-material-month-template.ts`
|
||||
Too small to be a meaningful cluster - may be noise or needs more connections extracted.
|
||||
- **Thin community `Community 60`** (7 nodes): `fetchCreateLeave()`, `fetchDeleteLeave()`, `fetchLeaveDetail()`, `fetchLeaveList()`, `fetchSubmitLeave()`, `fetchUpdateLeave()`, `leave.ts`
|
||||
- **Thin community `Community 60`** (7 nodes): `fetchConfirmQcMonthImport()`, `fetchCreateQcMonthTemplate()`, `fetchDeleteQcMonthTemplate()`, `fetchPreviewQcMonthImport()`, `fetchQcMonthTemplateList()`, `fetchUpdateQcMonthTemplate()`, `qc-material-month-template.ts`
|
||||
Too small to be a meaningful cluster - may be noise or needs more connections extracted.
|
||||
- **Thin community `Community 61`** (6 nodes): `formatQcWorkOrderUnfinishedBadgeCount()`, `isUnfinishedQcWorkOrder()`, `qcWorkOrderUnfinishedBadgeTitle()`, `resolveQcWorkOrderUnfinishedBadgeCount()`, `sumQcWorkOrderGroupUnfinishedBadgeCount()`, `qc-work-order-unfinished-badge.ts`
|
||||
Too small to be a meaningful cluster - may be noise or needs more connections extracted.
|
||||
@@ -441,46 +424,40 @@ Nodes (2): emptyTabCounts(), useQcWorkOrderTabUnfinishedCounts()
|
||||
Too small to be a meaningful cluster - may be noise or needs more connections extracted.
|
||||
- **Thin community `Community 70`** (4 nodes): `if()`, `logSidebarMenu()`, `index.vue`, `SidebarSubmenu.vue`
|
||||
Too small to be a meaningful cluster - may be noise or needs more connections extracted.
|
||||
- **Thin community `Community 72`** (4 nodes): `fetchGenerateStorageEntrySms()`, `fetchStorageEntrySmsList()`, `fetchToggleStorageEntrySmsNotified()`, `storage-entry-sms-notification.ts`
|
||||
- **Thin community `Community 76`** (3 nodes): `getSettingDefaults()`, `resetToDefaults()`, `setting.ts`
|
||||
Too small to be a meaningful cluster - may be noise or needs more connections extracted.
|
||||
- **Thin community `Community 73`** (4 nodes): `fetchGenerateSms()`, `fetchSampleSmsNotificationList()`, `fetchToggleSmsNotified()`, `sample-sms-notification.ts`
|
||||
- **Thin community `Community 78`** (3 nodes): `buildOvertimeKitChildren()`, `oa-overtime-kit-rule.ts`, `uniqueId()`
|
||||
Too small to be a meaningful cluster - may be noise or needs more connections extracted.
|
||||
- **Thin community `Community 74`** (4 nodes): `fetchGenerateQcSms()`, `fetchQcSmsList()`, `fetchToggleQcSmsNotified()`, `qc-sms-notification.ts`
|
||||
- **Thin community `Community 79`** (3 nodes): `buildLeaveKitChildren()`, `oa-leave-kit-rule.ts`, `uniqueId()`
|
||||
Too small to be a meaningful cluster - may be noise or needs more connections extracted.
|
||||
- **Thin community `Community 79`** (3 nodes): `getSettingDefaults()`, `resetToDefaults()`, `setting.ts`
|
||||
- **Thin community `Community 81`** (3 nodes): `buildConfirmationKitChildren()`, `oa-confirmation-kit-rule.ts`, `uniqueId()`
|
||||
Too small to be a meaningful cluster - may be noise or needs more connections extracted.
|
||||
- **Thin community `Community 82`** (3 nodes): `buildOvertimeKitChildren()`, `oa-overtime-kit-rule.ts`, `uniqueId()`
|
||||
- **Thin community `Community 82`** (3 nodes): `buildResignationKitChildren()`, `oa-resignation-kit-rule.ts`, `uniqueId()`
|
||||
Too small to be a meaningful cluster - may be noise or needs more connections extracted.
|
||||
- **Thin community `Community 83`** (3 nodes): `buildLeaveKitChildren()`, `oa-leave-kit-rule.ts`, `uniqueId()`
|
||||
- **Thin community `Community 83`** (3 nodes): `copyTextToClipboard()`, `copyTextWithFallback()`, `copy-text.ts`
|
||||
Too small to be a meaningful cluster - may be noise or needs more connections extracted.
|
||||
- **Thin community `Community 86`** (3 nodes): `buildConfirmationKitChildren()`, `oa-confirmation-kit-rule.ts`, `uniqueId()`
|
||||
- **Thin community `Community 86`** (3 nodes): `getSourceProtocolAttachment()`, `normalizeAttachmentFiles()`, `protocol-source-attachment.ts`
|
||||
Too small to be a meaningful cluster - may be noise or needs more connections extracted.
|
||||
- **Thin community `Community 87`** (3 nodes): `buildResignationKitChildren()`, `oa-resignation-kit-rule.ts`, `uniqueId()`
|
||||
- **Thin community `Community 100`** (3 nodes): `emptyTabCounts()`, `useProductionWorkOrderTabStepCounts()`, `useProductionWorkOrderTabStepCounts.ts`
|
||||
Too small to be a meaningful cluster - may be noise or needs more connections extracted.
|
||||
- **Thin community `Community 88`** (3 nodes): `copyTextToClipboard()`, `copyTextWithFallback()`, `copy-text.ts`
|
||||
- **Thin community `Community 103`** (3 nodes): `initialProgress()`, `useQcWorkOrderAttachmentExport()`, `useQcWorkOrderAttachmentExport.ts`
|
||||
Too small to be a meaningful cluster - may be noise or needs more connections extracted.
|
||||
- **Thin community `Community 92`** (3 nodes): `getSourceProtocolAttachment()`, `normalizeAttachmentFiles()`, `protocol-source-attachment.ts`
|
||||
Too small to be a meaningful cluster - may be noise or needs more connections extracted.
|
||||
- **Thin community `Community 103`** (3 nodes): `emptyTabCounts()`, `useProductionWorkOrderTabStepCounts()`, `useProductionWorkOrderTabStepCounts.ts`
|
||||
Too small to be a meaningful cluster - may be noise or needs more connections extracted.
|
||||
- **Thin community `Community 106`** (3 nodes): `initialProgress()`, `useQcWorkOrderAttachmentExport()`, `useQcWorkOrderAttachmentExport.ts`
|
||||
Too small to be a meaningful cluster - may be noise or needs more connections extracted.
|
||||
- **Thin community `Community 107`** (3 nodes): `emptyTabCounts()`, `useQcWorkOrderTabUnfinishedCounts()`, `useQcWorkOrderTabUnfinishedCounts.ts`
|
||||
- **Thin community `Community 104`** (3 nodes): `emptyTabCounts()`, `useQcWorkOrderTabUnfinishedCounts()`, `useQcWorkOrderTabUnfinishedCounts.ts`
|
||||
Too small to be a meaningful cluster - may be noise or needs more connections extracted.
|
||||
|
||||
## Suggested Questions
|
||||
_Questions this graph is uniquely positioned to answer:_
|
||||
|
||||
- **Why does `push()` connect `Community 1` to `Community 0`, `Community 2`, `Community 3`, `Community 4`, `Community 5`, `Community 8`, `Community 9`, `Community 10`, `Community 11`, `Community 12`, `Community 13`, `Community 14`, `Community 17`, `Community 18`, `Community 19`, `Community 21`, `Community 22`, `Community 23`, `Community 24`, `Community 26`, `Community 27`, `Community 28`, `Community 30`, `Community 31`, `Community 37`?**
|
||||
_High betweenness centrality (0.338) - this node is a cross-community bridge._
|
||||
- **Why does `get()` connect `Community 0` to `Community 1`, `Community 2`, `Community 3`, `Community 4`, `Community 5`, `Community 7`, `Community 8`, `Community 9`, `Community 10`, `Community 11`, `Community 13`, `Community 14`, `Community 15`, `Community 16`, `Community 17`, `Community 18`, `Community 20`, `Community 21`, `Community 28`, `Community 29`, `Community 30`, `Community 32`, `Community 33`, `Community 34`, `Community 35`, `Community 42`, `Community 45`, `Community 47`, `Community 53`, `Community 59`, `Community 60`, `Community 67`, `Community 72`, `Community 73`, `Community 74`?**
|
||||
_High betweenness centrality (0.240) - this node is a cross-community bridge._
|
||||
- **Why does `emit()` connect `Community 15` to `Community 0`, `Community 34`, `Community 2`, `Community 37`, `Community 5`, `Community 7`, `Community 8`, `Community 11`, `Community 17`, `Community 20`, `Community 30`?**
|
||||
_High betweenness centrality (0.048) - this node is a cross-community bridge._
|
||||
- **Why does `push()` connect `Community 1` to `Community 0`, `Community 2`, `Community 3`, `Community 4`, `Community 5`, `Community 6`, `Community 7`, `Community 9`, `Community 10`, `Community 11`, `Community 12`, `Community 13`, `Community 16`, `Community 17`, `Community 19`, `Community 21`, `Community 22`, `Community 23`, `Community 26`, `Community 27`, `Community 28`, `Community 29`, `Community 30`, `Community 31`, `Community 32`, `Community 33`, `Community 37`, `Community 48`?**
|
||||
_High betweenness centrality (0.334) - this node is a cross-community bridge._
|
||||
- **Why does `get()` connect `Community 0` to `Community 1`, `Community 2`, `Community 4`, `Community 5`, `Community 6`, `Community 7`, `Community 8`, `Community 9`, `Community 10`, `Community 11`, `Community 12`, `Community 13`, `Community 14`, `Community 15`, `Community 16`, `Community 17`, `Community 18`, `Community 20`, `Community 23`, `Community 27`, `Community 28`, `Community 30`, `Community 31`, `Community 33`, `Community 34`, `Community 35`, `Community 39`, `Community 44`, `Community 49`, `Community 60`, `Community 67`?**
|
||||
_High betweenness centrality (0.242) - this node is a cross-community bridge._
|
||||
- **Why does `updateSelect()` connect `Community 4` to `Community 1`, `Community 7`?**
|
||||
_High betweenness centrality (0.028) - this node is a cross-community bridge._
|
||||
- **Are the 316 inferred relationships involving `get()` (e.g. with `resolveStorageSlotRangeFill()` and `buildNodeCodePathFromFlat()`) actually correct?**
|
||||
_`get()` has 316 INFERRED edges - model-reasoned connections that need verification._
|
||||
- **Are the 126 inferred relationships involving `push()` (e.g. with `refreshQcMenuBadges()` and `collectLeafFacilityNodesInTreeOrder()`) actually correct?**
|
||||
_`push()` has 126 INFERRED edges - model-reasoned connections that need verification._
|
||||
- **Are the 127 inferred relationships involving `push()` (e.g. with `refreshQcMenuBadges()` and `collectLeafFacilityNodesInTreeOrder()`) actually correct?**
|
||||
_`push()` has 127 INFERRED edges - model-reasoned connections that need verification._
|
||||
- **Are the 28 inferred relationships involving `emit()` (e.g. with `handleSubmit()` and `handleDialogClose()`) actually correct?**
|
||||
_`emit()` has 28 INFERRED edges - model-reasoned connections that need verification._
|
||||
- **Are the 21 inferred relationships involving `set()` (e.g. with `buildNodeCodePathFromFlat()` and `collectLeafFacilityNodesInTreeOrder()`) actually correct?**
|
||||
|
||||
@@ -57,12 +57,12 @@
|
||||
</div>
|
||||
<div id="legend"></div>
|
||||
</div>
|
||||
<div id="stats">3590 nodes · 5105 edges · 405 communities</div>
|
||||
<div id="stats">3601 nodes · 5135 edges · 399 communities</div>
|
||||
</div>
|
||||
<script>
|
||||
const RAW_NODES = [{"id": "app_vue", "label": "App.vue", "color": {"background": "#FF9DA7", "border": "#FF9DA7", "highlight": {"background": "#ffffff", "border": "#FF9DA7"}}, "size": 10.3, "font": {"size": 0, "color": "#ffffff"}, "title": "App.vue", "community": 57, "community_name": "Community 57", "source_file": "App.vue", "file_type": "code", "degree": 3}, {"id": "src_app_refreshbuttonautoicons", "label": "refreshButtonAutoIcons()", "color": {"background": "#FF9DA7", "border": "#FF9DA7", "highlight": {"background": "#ffffff", "border": "#FF9DA7"}}, "size": 10.1, "font": {"size": 0, "color": "#ffffff"}, "title": "refreshButtonAutoIcons()", "community": 57, "community_name": "Community 57", "source_file": "App.vue", "file_type": "code", "degree": 1}, {"id": "src_app_refreshpaneltitleicons", "label": "refreshPanelTitleIcons()", "color": {"background": "#FF9DA7", "border": "#FF9DA7", "highlight": {"background": "#ffffff", "border": "#FF9DA7"}}, "size": 10.1, "font": {"size": 0, "color": "#ffffff"}, "title": "refreshPanelTitleIcons()", "community": 57, "community_name": "Community 57", "source_file": "App.vue", "file_type": "code", "degree": 1}, {"id": "main_ts", "label": "main.ts", "color": {"background": "#FF9DA7", "border": "#FF9DA7", "highlight": {"background": "#ffffff", "border": "#FF9DA7"}}, "size": 10.4, "font": {"size": 0, "color": "#ffffff"}, "title": "main.ts", "community": 57, "community_name": "Community 57", "source_file": "main.ts", "file_type": "code", "degree": 4}, {"id": "src_main_masksecret", "label": "maskSecret()", "color": {"background": "#FF9DA7", "border": "#FF9DA7", "highlight": {"background": "#ffffff", "border": "#FF9DA7"}}, "size": 10.2, "font": {"size": 0, "color": "#ffffff"}, "title": "maskSecret()", "community": 57, "community_name": "Community 57", "source_file": "main.ts", "file_type": "code", "degree": 2}, {"id": "src_main_logapicryptobootinfo", "label": "logApiCryptoBootInfo()", "color": {"background": "#FF9DA7", "border": "#FF9DA7", "highlight": {"background": "#ffffff", "border": "#FF9DA7"}}, "size": 10.2, "font": {"size": 0, "color": "#ffffff"}, "title": "logApiCryptoBootInfo()", "community": 57, "community_name": "Community 57", "source_file": "main.ts", "file_type": "code", "degree": 2}, {"id": "env_d_ts", "label": "env.d.ts", "color": {"background": "#EDC948", "border": "#EDC948", "highlight": {"background": "#ffffff", "border": "#EDC948"}}, "size": 10.0, "font": {"size": 0, "color": "#ffffff"}, "title": "env.d.ts", "community": 155, "community_name": "Community 155", "source_file": "env.d.ts", "file_type": "code", "degree": 0}, {"id": "shims_loose_d_ts", "label": "shims-loose.d.ts", "color": {"background": "#B07AA1", "border": "#B07AA1", "highlight": {"background": "#ffffff", "border": "#B07AA1"}}, "size": 10.0, "font": {"size": 0, "color": "#ffffff"}, "title": "shims-loose.d.ts", "community": 156, "community_name": "Community 156", "source_file": "shims-loose.d.ts", "file_type": "code", "degree": 0}, {"id": "directives_index_ts", "label": "index.ts", "color": {"background": "#B07AA1", "border": "#B07AA1", "highlight": {"background": "#ffffff", "border": "#B07AA1"}}, "size": 10.1, "font": {"size": 0, "color": "#ffffff"}, "title": "index.ts", "community": 36, "community_name": "Community 36", "source_file": "directives/index.ts", "file_type": "code", "degree": 1}, {"id": "directives_index_setupglobdirectives", "label": "setupGlobDirectives()", "color": {"background": "#B07AA1", "border": "#B07AA1", "highlight": {"background": "#ffffff", "border": "#B07AA1"}}, "size": 10.5, "font": {"size": 0, "color": "#ffffff"}, "title": "setupGlobDirectives()", "community": 36, "community_name": "Community 36", "source_file": "directives/index.ts", "file_type": "code", "degree": 5}, {"id": "directives_core_roles_ts", "label": "roles.ts", "color": {"background": "#B07AA1", "border": "#B07AA1", "highlight": {"background": "#ffffff", "border": "#B07AA1"}}, "size": 10.3, "font": {"size": 0, "color": "#ffffff"}, "title": "roles.ts", "community": 36, "community_name": "Community 36", "source_file": "directives/core/roles.ts", "file_type": "code", "degree": 3}, {"id": "core_roles_checkrolepermission", "label": "checkRolePermission()", "color": {"background": "#B07AA1", "border": "#B07AA1", "highlight": {"background": "#ffffff", "border": "#B07AA1"}}, "size": 10.2, "font": {"size": 0, "color": "#ffffff"}, "title": "checkRolePermission()", "community": 36, "community_name": "Community 36", "source_file": "directives/core/roles.ts", "file_type": "code", "degree": 2}, {"id": "core_roles_removeelement", "label": "removeElement()", "color": {"background": "#B07AA1", "border": "#B07AA1", "highlight": {"background": "#ffffff", "border": "#B07AA1"}}, "size": 10.2, "font": {"size": 0, "color": "#ffffff"}, "title": "removeElement()", "community": 36, "community_name": "Community 36", "source_file": "directives/core/roles.ts", "file_type": "code", "degree": 2}, {"id": "core_roles_setuprolesdirective",Line truncated
|
||||
const RAW_EDGES = [{"from": "app_vue", "to": "src_app_refreshbuttonautoicons", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_vue", "to": "src_app_refreshpaneltitleicons", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_vue", "to": "main_ts", "label": "imports_from", "title": "imports_from [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "main_ts", "to": "utils_sys_console_ts", "label": "imports_from", "title": "imports_from [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "main_ts", "to": "src_main_masksecret", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "main_ts", "to": "src_main_logapicryptobootinfo", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "src_main_masksecret", "to": "src_main_logapicryptobootinfo", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "directives_index_ts", "to": "directives_index_setupglobdirectives", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "directives_index_setupglobdirectives", "to": "core_auth_setupauthdirective", "label": "calls", "title": "calls [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "directives_index_setupglobdirectives", "to": "core_roles_setuprolesdirective", "label": "calls", "title": "calls [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "directives_index_setupglobdirectives", "to": "business_highlight_setuphighlightdirective", "label": "calls", "title": "calls [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "directives_index_setupglobdirectives", "to": "business_ripple_setuprippledirective", "label": "calls", "title": "calls [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "directives_core_roles_ts", "to": "core_roles_checkrolepermission", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "directives_core_roles_ts", "to": "core_roles_removeelement", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "directives_core_roles_ts", "to": "core_roles_setuprolesdirective", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "core_roles_checkrolepermission", "to": "core_roles_removeelement", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "directives_core_auth_ts", "to": "core_auth_checkauthpermission", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "directives_core_auth_ts", "to": "core_auth_removeelement", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "directives_core_auth_ts", "to": "core_auth_setupauthdirective", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "core_auth_checkauthpermission", "to": "core_auth_removeelement", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "directives_business_ripple_ts", "to": "business_ripple_setuprippledirective", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "directives_business_highlight_ts", "to": "business_highlight_highlightcode", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "directives_business_highlight_ts", "to": "business_highlight_insertlinenumbers", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "directives_business_highlight_ts", "to": "business_highlight_addcopybutton", "label": "contains", "title": "contains [EXTRACTED]", "dLine truncated
|
||||
const LEGEND = [{"cid": 0, "color": "#4E79A7", "label": "Community 0", "count": 531}, {"cid": 1, "color": "#F28E2B", "label": "Community 1", "count": 144}, {"cid": 2, "color": "#E15759", "label": "Community 2", "count": 117}, {"cid": 3, "color": "#76B7B2", "label": "Community 3", "count": 110}, {"cid": 4, "color": "#59A14F", "label": "Community 4", "count": 110}, {"cid": 5, "color": "#EDC948", "label": "Community 5", "count": 106}, {"cid": 6, "color": "#B07AA1", "label": "Community 6", "count": 101}, {"cid": 7, "color": "#FF9DA7", "label": "Community 7", "count": 97}, {"cid": 8, "color": "#9C755F", "label": "Community 8", "count": 96}, {"cid": 9, "color": "#BAB0AC", "label": "Community 9", "count": 91}, {"cid": 10, "color": "#4E79A7", "label": "Community 10", "count": 89}, {"cid": 11, "color": "#F28E2B", "label": "Community 11", "count": 85}, {"cid": 12, "color": "#E15759", "label": "Community 12", "count": 83}, {"cid": 13, "color": "#76B7B2", "label": "Community 13", "count": 79}, {"cid": 14, "color": "#59A14F", "label": "Community 14", "count": 78}, {"cid": 15, "color": "#EDC948", "label": "Community 15", "count": 71}, {"cid": 16, "color": "#B07AA1", "label": "Community 16", "count": 67}, {"cid": 17, "color": "#FF9DA7", "label": "Community 17", "count": 57}, {"cid": 18, "color": "#9C755F", "label": "Community 18", "count": 57}, {"cid": 19, "color": "#BAB0AC", "label": "Community 19", "count": 47}, {"cid": 20, "color": "#4E79A7", "label": "Community 20", "count": 46}, {"cid": 21, "color": "#F28E2B", "label": "Community 21", "count": 46}, {"cid": 22, "color": "#E15759", "label": "Community 22", "count": 44}, {"cid": 23, "color": "#76B7B2", "label": "Community 23", "count": 42}, {"cid": 24, "color": "#59A14F", "label": "Community 24", "count": 41}, {"cid": 25, "color": "#EDC948", "label": "Community 25", "count": 37}, {"cid": 26, "color": "#B07AA1", "label": "Community 26", "count": 36}, {"cid": 27, "color": "#FF9DA7", "label": "Community 27", "count": 36}, {"cid": 28, "color": "#9C755F", "label": "Community 28", "count": 35}, {"cid": 29, "color": "#BAB0AC", "label": "Community 29", "count": 35}, {"cid": 30, "color": "#4E79A7", "label": "Community 30", "count": 33}, {"cid": 31, "color": "#F28E2B", "label": "Community 31", "count": 31}, {"cid": 32, "color": "#E15759", "label": "Community 32", "count": 30}, {"cid": 33, "color": "#76B7B2", "label": "Community 33", "count": 28}, {"cid": 34, "color": "#59A14F", "label": "Community 34", "count": 26}, {"cid": 35, "color": "#EDC948", "label": "Community 35", "count": 24}, {"cid": 36, "color": "#B07AA1", "label": "Community 36", "count": 22}, {"cid": 37, "color": "#FF9DA7", "label": "Community 37", "count": 20}, {"cid": 38, "color": "#9C755F", "label": "Community 38", "count": 19}, {"cid": 39, "color": "#BAB0AC", "label": "Community 39", "count": 17}, {"cid": 40, "color": "#4E79A7", "label": "Community 40", "count": 17}, {"cid": 41, "color": "#F28E2B", "label": "Community 41", "count": 16}, {"cid": 42, "color": "#E15759", "label": "Community 42", "count": 14}, {"cid": 43, "color": "#76B7B2", "label": "Community 43", "count": 13}, {"cid": 44, "color": "#59A14F", "label": "Community 44", "count": 13}, {"cid": 45, "color": "#EDC948", "label": "Community 45", "count": 13}, {"cid": 46, "color": "#B07AA1", "label": "Community 46", "count": 13}, {"cid": 47, "color": "#FF9DA7", "label": "Community 47", "count": 9}, {"cid": 48, "color": "#9C755F", "label": "Community 48", "count": 9}, {"cid": 49, "color": "#BAB0AC", "label": "Community 49", "count": 9}, {"cid": 50, "color": "#4E79A7", "label": "Community 50", "count": 9}, {"cid": 51, "color": "#F28E2B", "label": "Community 51", "count": 9}, {"cid": 52, "color": "#E15759", "label": "Community 52", "count": 9}, {"cid": 53, "color": "#76B7B2", "label": "Community 53", "count": 9}, {"cid": 54, "color": "#59A14F", "label": "Community 54", "count": 8}, {"cid": 55, "color": "#EDC948", "label": "Community 55", "count": 8}, {"cid": 56, "color": "#B07AA1", "label": "Community 56", "count": 8}, {"cid": 57, "color": "#FF9DA7", "label": "Community 57", "count": 7}, {"cid": 58, "color": "#9C755F", "label": "Community 58", "count": 7}, {"cid": 59, "color": "#BAB0AC", "label": "Community 59", "count": 7}, {"cid": 60, "color": "#4E79A7", "label": "Community 60", "count": 7}, {"cid": 61, "color": "#F28E2B", "label": "Community 61", "count": 6}, {"cid": 62, "color": "#E15759", "label": "Community 62", "count": 6}, {"cid": 63, "color": "#76B7B2", "label": "Community 63", "count": 5}, {"cid": 64, "color": "#59A14F", "label": "Community 64", "count": 5}, {"cid": 65, "color": "#EDC948", "label": "Community 65", "count": 5}, {"cid": 66, "color": "#B07AA1", "label": "Community 66", "count": 5}, {"cid": 67, "color": "#FF9DA7", "label": "Community 67", "count": 5}, {"cid": 68, "color": "#9C755F", "label": "Community 68", "count": 4}, {"cid": 69, "color": "#BAB0AC", "label": "Community 69", "count": 4}, {"cid": 70, "color": "#4E79A7", "label": "CommuniLine truncated
|
||||
const RAW_NODES = [{"id": "app_vue", "label": "App.vue", "color": {"background": "#9C755F", "border": "#9C755F", "highlight": {"background": "#ffffff", "border": "#9C755F"}}, "size": 10.3, "font": {"size": 0, "color": "#ffffff"}, "title": "App.vue", "community": 58, "community_name": "Community 58", "source_file": "App.vue", "file_type": "code", "degree": 3}, {"id": "src_app_refreshbuttonautoicons", "label": "refreshButtonAutoIcons()", "color": {"background": "#9C755F", "border": "#9C755F", "highlight": {"background": "#ffffff", "border": "#9C755F"}}, "size": 10.1, "font": {"size": 0, "color": "#ffffff"}, "title": "refreshButtonAutoIcons()", "community": 58, "community_name": "Community 58", "source_file": "App.vue", "file_type": "code", "degree": 1}, {"id": "src_app_refreshpaneltitleicons", "label": "refreshPanelTitleIcons()", "color": {"background": "#9C755F", "border": "#9C755F", "highlight": {"background": "#ffffff", "border": "#9C755F"}}, "size": 10.1, "font": {"size": 0, "color": "#ffffff"}, "title": "refreshPanelTitleIcons()", "community": 58, "community_name": "Community 58", "source_file": "App.vue", "file_type": "code", "degree": 1}, {"id": "main_ts", "label": "main.ts", "color": {"background": "#9C755F", "border": "#9C755F", "highlight": {"background": "#ffffff", "border": "#9C755F"}}, "size": 10.4, "font": {"size": 0, "color": "#ffffff"}, "title": "main.ts", "community": 58, "community_name": "Community 58", "source_file": "main.ts", "file_type": "code", "degree": 4}, {"id": "src_main_masksecret", "label": "maskSecret()", "color": {"background": "#9C755F", "border": "#9C755F", "highlight": {"background": "#ffffff", "border": "#9C755F"}}, "size": 10.2, "font": {"size": 0, "color": "#ffffff"}, "title": "maskSecret()", "community": 58, "community_name": "Community 58", "source_file": "main.ts", "file_type": "code", "degree": 2}, {"id": "src_main_logapicryptobootinfo", "label": "logApiCryptoBootInfo()", "color": {"background": "#9C755F", "border": "#9C755F", "highlight": {"background": "#ffffff", "border": "#9C755F"}}, "size": 10.2, "font": {"size": 0, "color": "#ffffff"}, "title": "logApiCryptoBootInfo()", "community": 58, "community_name": "Community 58", "source_file": "main.ts", "file_type": "code", "degree": 2}, {"id": "env_d_ts", "label": "env.d.ts", "color": {"background": "#E15759", "border": "#E15759", "highlight": {"background": "#ffffff", "border": "#E15759"}}, "size": 10.0, "font": {"size": 0, "color": "#ffffff"}, "title": "env.d.ts", "community": 152, "community_name": "Community 152", "source_file": "env.d.ts", "file_type": "code", "degree": 0}, {"id": "shims_loose_d_ts", "label": "shims-loose.d.ts", "color": {"background": "#76B7B2", "border": "#76B7B2", "highlight": {"background": "#ffffff", "border": "#76B7B2"}}, "size": 10.0, "font": {"size": 0, "color": "#ffffff"}, "title": "shims-loose.d.ts", "community": 153, "community_name": "Community 153", "source_file": "shims-loose.d.ts", "file_type": "code", "degree": 0}, {"id": "directives_index_ts", "label": "index.ts", "color": {"background": "#B07AA1", "border": "#B07AA1", "highlight": {"background": "#ffffff", "border": "#B07AA1"}}, "size": 10.1, "font": {"size": 0, "color": "#ffffff"}, "title": "index.ts", "community": 36, "community_name": "Community 36", "source_file": "directives/index.ts", "file_type": "code", "degree": 1}, {"id": "directives_index_setupglobdirectives", "label": "setupGlobDirectives()", "color": {"background": "#B07AA1", "border": "#B07AA1", "highlight": {"background": "#ffffff", "border": "#B07AA1"}}, "size": 10.5, "font": {"size": 0, "color": "#ffffff"}, "title": "setupGlobDirectives()", "community": 36, "community_name": "Community 36", "source_file": "directives/index.ts", "file_type": "code", "degree": 5}, {"id": "directives_core_roles_ts", "label": "roles.ts", "color": {"background": "#B07AA1", "border": "#B07AA1", "highlight": {"background": "#ffffff", "border": "#B07AA1"}}, "size": 10.3, "font": {"size": 0, "color": "#ffffff"}, "title": "roles.ts", "community": 36, "community_name": "Community 36", "source_file": "directives/core/roles.ts", "file_type": "code", "degree": 3}, {"id": "core_roles_checkrolepermission", "label": "checkRolePermission()", "color": {"background": "#B07AA1", "border": "#B07AA1", "highlight": {"background": "#ffffff", "border": "#B07AA1"}}, "size": 10.2, "font": {"size": 0, "color": "#ffffff"}, "title": "checkRolePermission()", "community": 36, "community_name": "Community 36", "source_file": "directives/core/roles.ts", "file_type": "code", "degree": 2}, {"id": "core_roles_removeelement", "label": "removeElement()", "color": {"background": "#B07AA1", "border": "#B07AA1", "highlight": {"background": "#ffffff", "border": "#B07AA1"}}, "size": 10.2, "font": {"size": 0, "color": "#ffffff"}, "title": "removeElement()", "community": 36, "community_name": "Community 36", "source_file": "directives/core/roles.ts", "file_type": "code", "degree": 2}, {"id": "core_roles_setuprolesdirective",Line truncated
|
||||
const RAW_EDGES = [{"from": "app_vue", "to": "src_app_refreshbuttonautoicons", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_vue", "to": "src_app_refreshpaneltitleicons", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "app_vue", "to": "main_ts", "label": "imports_from", "title": "imports_from [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "main_ts", "to": "utils_sys_console_ts", "label": "imports_from", "title": "imports_from [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "main_ts", "to": "src_main_masksecret", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "main_ts", "to": "src_main_logapicryptobootinfo", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "src_main_masksecret", "to": "src_main_logapicryptobootinfo", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "directives_index_ts", "to": "directives_index_setupglobdirectives", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "directives_index_setupglobdirectives", "to": "core_auth_setupauthdirective", "label": "calls", "title": "calls [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "directives_index_setupglobdirectives", "to": "core_roles_setuprolesdirective", "label": "calls", "title": "calls [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "directives_index_setupglobdirectives", "to": "business_highlight_setuphighlightdirective", "label": "calls", "title": "calls [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "directives_index_setupglobdirectives", "to": "business_ripple_setuprippledirective", "label": "calls", "title": "calls [INFERRED]", "dashes": true, "width": 1, "color": {"opacity": 0.35}, "confidence": "INFERRED"}, {"from": "directives_core_roles_ts", "to": "core_roles_checkrolepermission", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "directives_core_roles_ts", "to": "core_roles_removeelement", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "directives_core_roles_ts", "to": "core_roles_setuprolesdirective", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "core_roles_checkrolepermission", "to": "core_roles_removeelement", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "directives_core_auth_ts", "to": "core_auth_checkauthpermission", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "directives_core_auth_ts", "to": "core_auth_removeelement", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "directives_core_auth_ts", "to": "core_auth_setupauthdirective", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "core_auth_checkauthpermission", "to": "core_auth_removeelement", "label": "calls", "title": "calls [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "directives_business_ripple_ts", "to": "business_ripple_setuprippledirective", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "directives_business_highlight_ts", "to": "business_highlight_highlightcode", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "directives_business_highlight_ts", "to": "business_highlight_insertlinenumbers", "label": "contains", "title": "contains [EXTRACTED]", "dashes": false, "width": 2, "color": {"opacity": 0.7}, "confidence": "EXTRACTED"}, {"from": "directives_business_highlight_ts", "to": "business_highlight_addcopybutton", "label": "contains", "title": "contains [EXTRACTED]", "dLine truncated
|
||||
const LEGEND = [{"cid": 0, "color": "#4E79A7", "label": "Community 0", "count": 566}, {"cid": 1, "color": "#F28E2B", "label": "Community 1", "count": 133}, {"cid": 2, "color": "#E15759", "label": "Community 2", "count": 130}, {"cid": 3, "color": "#76B7B2", "label": "Community 3", "count": 129}, {"cid": 4, "color": "#59A14F", "label": "Community 4", "count": 116}, {"cid": 5, "color": "#EDC948", "label": "Community 5", "count": 110}, {"cid": 6, "color": "#B07AA1", "label": "Community 6", "count": 99}, {"cid": 7, "color": "#FF9DA7", "label": "Community 7", "count": 96}, {"cid": 8, "color": "#9C755F", "label": "Community 8", "count": 92}, {"cid": 9, "color": "#BAB0AC", "label": "Community 9", "count": 90}, {"cid": 10, "color": "#4E79A7", "label": "Community 10", "count": 90}, {"cid": 11, "color": "#F28E2B", "label": "Community 11", "count": 89}, {"cid": 12, "color": "#E15759", "label": "Community 12", "count": 86}, {"cid": 13, "color": "#76B7B2", "label": "Community 13", "count": 72}, {"cid": 14, "color": "#59A14F", "label": "Community 14", "count": 71}, {"cid": 15, "color": "#EDC948", "label": "Community 15", "count": 61}, {"cid": 16, "color": "#B07AA1", "label": "Community 16", "count": 57}, {"cid": 17, "color": "#FF9DA7", "label": "Community 17", "count": 54}, {"cid": 18, "color": "#9C755F", "label": "Community 18", "count": 53}, {"cid": 19, "color": "#BAB0AC", "label": "Community 19", "count": 47}, {"cid": 20, "color": "#4E79A7", "label": "Community 20", "count": 46}, {"cid": 21, "color": "#F28E2B", "label": "Community 21", "count": 42}, {"cid": 22, "color": "#E15759", "label": "Community 22", "count": 41}, {"cid": 23, "color": "#76B7B2", "label": "Community 23", "count": 40}, {"cid": 24, "color": "#59A14F", "label": "Community 24", "count": 37}, {"cid": 25, "color": "#EDC948", "label": "Community 25", "count": 37}, {"cid": 26, "color": "#B07AA1", "label": "Community 26", "count": 36}, {"cid": 27, "color": "#FF9DA7", "label": "Community 27", "count": 36}, {"cid": 28, "color": "#9C755F", "label": "Community 28", "count": 35}, {"cid": 29, "color": "#BAB0AC", "label": "Community 29", "count": 35}, {"cid": 30, "color": "#4E79A7", "label": "Community 30", "count": 34}, {"cid": 31, "color": "#F28E2B", "label": "Community 31", "count": 33}, {"cid": 32, "color": "#E15759", "label": "Community 32", "count": 31}, {"cid": 33, "color": "#76B7B2", "label": "Community 33", "count": 25}, {"cid": 34, "color": "#59A14F", "label": "Community 34", "count": 24}, {"cid": 35, "color": "#EDC948", "label": "Community 35", "count": 24}, {"cid": 36, "color": "#B07AA1", "label": "Community 36", "count": 22}, {"cid": 37, "color": "#FF9DA7", "label": "Community 37", "count": 21}, {"cid": 38, "color": "#9C755F", "label": "Community 38", "count": 19}, {"cid": 39, "color": "#BAB0AC", "label": "Community 39", "count": 19}, {"cid": 40, "color": "#4E79A7", "label": "Community 40", "count": 17}, {"cid": 41, "color": "#F28E2B", "label": "Community 41", "count": 17}, {"cid": 42, "color": "#E15759", "label": "Community 42", "count": 16}, {"cid": 43, "color": "#76B7B2", "label": "Community 43", "count": 14}, {"cid": 44, "color": "#59A14F", "label": "Community 44", "count": 14}, {"cid": 45, "color": "#EDC948", "label": "Community 45", "count": 13}, {"cid": 46, "color": "#B07AA1", "label": "Community 46", "count": 13}, {"cid": 47, "color": "#FF9DA7", "label": "Community 47", "count": 13}, {"cid": 48, "color": "#9C755F", "label": "Community 48", "count": 10}, {"cid": 49, "color": "#BAB0AC", "label": "Community 49", "count": 9}, {"cid": 50, "color": "#4E79A7", "label": "Community 50", "count": 9}, {"cid": 51, "color": "#F28E2B", "label": "Community 51", "count": 9}, {"cid": 52, "color": "#E15759", "label": "Community 52", "count": 9}, {"cid": 53, "color": "#76B7B2", "label": "Community 53", "count": 9}, {"cid": 54, "color": "#59A14F", "label": "Community 54", "count": 9}, {"cid": 55, "color": "#EDC948", "label": "Community 55", "count": 8}, {"cid": 56, "color": "#B07AA1", "label": "Community 56", "count": 8}, {"cid": 57, "color": "#FF9DA7", "label": "Community 57", "count": 8}, {"cid": 58, "color": "#9C755F", "label": "Community 58", "count": 7}, {"cid": 59, "color": "#BAB0AC", "label": "Community 59", "count": 7}, {"cid": 60, "color": "#4E79A7", "label": "Community 60", "count": 7}, {"cid": 61, "color": "#F28E2B", "label": "Community 61", "count": 6}, {"cid": 62, "color": "#E15759", "label": "Community 62", "count": 6}, {"cid": 63, "color": "#76B7B2", "label": "Community 63", "count": 5}, {"cid": 64, "color": "#59A14F", "label": "Community 64", "count": 5}, {"cid": 65, "color": "#EDC948", "label": "Community 65", "count": 5}, {"cid": 66, "color": "#B07AA1", "label": "Community 66", "count": 5}, {"cid": 67, "color": "#FF9DA7", "label": "Community 67", "count": 5}, {"cid": 68, "color": "#9C755F", "label": "Community 68", "count": 4}, {"cid": 69, "color": "#BAB0AC", "label": "Community 69", "count": 4}, {"cid": 70, "color": "#4E79A7", "label": "CommunLine truncated
|
||||
|
||||
// HTML-escape helper — prevents XSS when injecting graph data into innerHTML
|
||||
function esc(s) {
|
||||
|
||||
+3072
-2613
File diff suppressed because it is too large.
Load diff
@@ -17,8 +17,8 @@
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/types/common/index.ts": 1781272556.3597305,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/types/directive/directive.d.ts": 1781272556.3601494,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/types/api/api.d.ts": 1781272556.3606477,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/types/import/components.d.ts": 1788241174.6302824,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/types/import/auto-imports.d.ts": 1788240836.7643497,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/types/import/components.d.ts": 1788326759.6784778,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/types/import/auto-imports.d.ts": 1788326691.0045059,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/types/store/index.ts": 1787887312.735774,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/types/router/index.ts": 1787887320.8486114,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/composables/useAttachmentActions.ts": 1788162977.6691713,
|
||||
@@ -53,6 +53,7 @@
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/user-avatar.ts": 1781403605.517818,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/fullscreen-loading.ts": 1781272556.3849921,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/chinese-numeral-parse.ts": 1782960575.662593,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/production-complete-work-order-gate.ts": 1788327947.933196,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/sample-production-reception-fields.ts": 1788159521.6461987,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/oa-flow-preview-refresh.ts": 1786590578.7629158,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/oa-upload-file-type.ts": 1786413851.5280254,
|
||||
@@ -80,7 +81,7 @@
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/qc-mine-task-groups.ts": 1786958777.7790954,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/oa-overtime-hours.test.ts": 1786373618.5292711,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/expected-cell-count.ts": 1782705039.2515786,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/qc-company-task-group.test.ts": 1787910922.851059,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/qc-company-task-group.test.ts": 1788330359.6029022,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/protocol-payment-labels.ts": 1782893910.9937537,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/oa-approval-print-flow.ts": 1786601489.1530275,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/status-tag-registry.ts": 1785206796.3246918,
|
||||
@@ -96,11 +97,12 @@
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/oa-form-create-confirmation-kit.ts": 1785488978.7074184,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/sort-order.ts": 1781272556.3913012,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/oa-confirmation-kit-runtime.ts": 1785403486.5645103,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/void-type-dict.ts": 1782894802.0460823,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/void-type-dict.ts": 1788315481.8114185,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/qc-work-order-attachment-export.ts": 1782962844.3685946,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/oa-receive-account-value.ts": 1785390441.8286228,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/datetime-display.ts": 1782806208.3904786,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/oa-form-value-display.test.ts": 1786364545.4796336,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/production-complete-work-order-gate-logic.ts": 1788327879.123915,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/sample-reception-lab-storage-code.ts": 1782378453.1031013,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/outbound-qc-pilot-view-sections.ts": 1781566346.7618802,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/oa-app-icons.ts": 1785992369.9430938,
|
||||
@@ -139,9 +141,10 @@
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/production-menu-badge.ts": 1783307225.4832592,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/oa-form-create-trip-itinerary.ts": 1785412591.4682207,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/production-step-output.ts": 1787019534.1347115,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/qc-company-task-group.ts": 1787910934.9249167,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/qc-company-task-group.ts": 1788330359.4652264,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/oa-post-value.ts": 1785394332.7419252,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/attachment-zip.ts": 1788162981.821378,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/production-complete-work-order-gate.test.ts": 1788327892.0457087,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/numeric-input-parse.ts": 1782179343.5953708,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/oa-dept-value.ts": 1785148503.1442196,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/utils/index.ts": 1781272556.410244,
|
||||
@@ -435,7 +438,7 @@
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/auth/login/index.vue": 1782893854.347133,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/cell-storage/refund-confirm/index.vue": 1782893854.3402505,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/cell-storage/my-material-usage/index.vue": 1782893854.311591,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/cell-storage/protocol/index.vue": 1783326448.8937888,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/cell-storage/protocol/index.vue": 1788315818.1102333,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/cell-storage/protocol/ProtocolStatusChangeDialog.vue": 1782894806.0188534,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/cell-storage/protocol/ProtocolViewDialog.vue": 1783920105.0170739,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/cell-storage/protocol/ProtocolAttachmentReadonly.vue": 1782893854.403395,
|
||||
@@ -452,7 +455,7 @@
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/cell-storage/protocol-audit/SampleReceptionInfoTab.vue": 1783389099.954163,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/cell-storage/protocol-audit/StorageCertTab.vue": 1783326448.8999357,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/cell-storage/protocol-audit/FullmoonTodoTab.vue": 1783326448.9010873,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/cell-storage/protocol-audit/ProtocolAuditTab.vue": 1785207489.8086152,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/cell-storage/protocol-audit/ProtocolAuditTab.vue": 1788315790.342345,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/cell-storage/protocol-audit/PaymentInfoTab.vue": 1783326448.9036555,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/cell-storage/material/index.vue": 1783326448.9051046,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/cell-storage/material/MaterialUsageTab.vue": 1783429524.4350624,
|
||||
@@ -468,10 +471,10 @@
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/operations/clean-room/index.vue": 1783326448.9116178,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/operations/storage-facility/index.vue": 1786945379.6297903,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/operations/exhibition-appointment/index.vue": 1783326448.913004,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/research-donation/audit/index.vue": 1785207506.5680747,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/research-donation/audit/index.vue": 1788315482.2439237,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/research-donation/sample-info/index.vue": 1782893854.018205,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/research-donation/sample-info/DonationSampleCollectionInfoTab.vue": 1783326448.9150352,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/research-donation/list/index.vue": 1783326448.9154768,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/research-donation/list/index.vue": 1788315503.2859666,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/research-donation/list/DonationAuditDialog.vue": 1782893853.885547,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/research-donation/list/DonationViewDialog.vue": 1783920539.4073346,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/research-donation/list/DonationFormDialog.vue": 1783920544.2442346,
|
||||
@@ -532,7 +535,7 @@
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/sop/index.vue": 1783326448.939372,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-task/index.vue": 1782893852.6013515,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/reagent/index.vue": 1783326448.9403174,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/index.vue": 1788234268.4371934,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/index.vue": 1788327820.727357,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/ProductionStepBadge.vue": 1783307223.0443783,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/useTaskStepEditor.ts": 1788234280.065907,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/StepDetailPanel.vue": 1787629676.3745494,
|
||||
@@ -541,7 +544,7 @@
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/DispatchQcWorkOrderDialog.vue": 1782893852.9989007,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/SampleReceptionDialog.vue": 1788159728.333429,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/TaskEquipmentPanel.vue": 1782893853.803821,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/TaskExecutionDialog.vue": 1787105229.4189632,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/TaskExecutionDialog.vue": 1788327027.9596965,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/EditTaskInfoDialog.vue": 1782893853.6561613,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/TaskOutputList.vue": 1783395073.7065923,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-work-order/DispatchTaskDialog.vue": 1787043941.7999055,
|
||||
@@ -588,7 +591,7 @@
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-material/ProductionMaterialStockCheckTab.vue": 1785210181.870827,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/production-material/ProductionMaterialPrepTab.vue": 1785210153.359408,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/sample-reception-completion/index.vue": 1782893851.986683,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/my-production-task/index.vue": 1788234275.4131055,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/my-production-task/index.vue": 1788327843.899062,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/equipment/index.vue": 1783326448.9595375,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/process/index.vue": 1787629663.564886,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/production/process/ProcessRouteTab.vue": 1788231143.029855,
|
||||
@@ -597,7 +600,7 @@
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/index/index.vue": 1782893851.535544,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/index.vue": 1787212916.0972576,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/QcWorkOrderTaskResultPanel.vue": 1785145511.8775067,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/QcCompanyTaskResultDialog.vue": 1788156359.516893,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/QcCompanyTaskResultDialog.vue": 1788330417.8922877,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/QcWorkOrderProtocolGroup.vue": 1786971279.6317575,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/QcWorkOrderSingleCard.vue": 1786971268.6215816,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/QcWorkOrderConfigureBatches.vue": 1786956626.104195,
|
||||
@@ -606,7 +609,7 @@
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/QcWorkOrderSelectCheckbox.vue": 1783322131.5377831,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/QcWorkOrderBatchResultTabs.vue": 1782893854.2285423,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/QcUnfinishedBadge.vue": 1782893854.1479301,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/QcWorkOrderTaskSubList.vue": 1787911868.1012936,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/QcWorkOrderTaskSubList.vue": 1788330387.3611283,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/QcWorkOrderTabBar.vue": 1782893854.0314786,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/QcWorkOrderBatchSubList.vue": 1782893854.0134735,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/views/quality-inspection/qc-work-order/QcWorkOrderCardList.vue": 1783392683.9513938,
|
||||
@@ -747,7 +750,7 @@
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/router/modules/exception.ts": 1781272559.549901,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/router/routes/staticRoutes.ts": 1781272559.596198,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/router/routes/asyncRoutes.ts": 1781272559.619745,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/router/guards/beforeEach.ts": 1785989674.6252108,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/router/guards/beforeEach.ts": 1788315481.9210162,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/router/guards/afterEach.ts": 1782442849.7269292,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/assets/svg/my-copy.svg": 1778582067.9349968,
|
||||
"/Users/wuzilong/work/00code/zkxw/web-admin/src/assets/svg/search.svg": 1778582067.9393654,
|
||||
|
||||
@@ -56,6 +56,7 @@ import { RouteRegistry, MenuProcessor, IframeRouteManager, RoutePermissionValida
|
||||
import { refreshQcMenuBadges } from '@/utils/qc-menu-badge'
|
||||
import { refreshProductionMenuBadges } from '@/utils/production-menu-badge'
|
||||
import { refreshOaMenuBadges } from '@/utils/oa-menu-badge'
|
||||
import { loadVoidTypeDict } from '@/utils/void-type-dict'
|
||||
|
||||
// 路由注册器实例
|
||||
let routeRegistry: RouteRegistry | null = null
|
||||
@@ -304,6 +305,7 @@ async function handleDynamicRoutes(
|
||||
void refreshQcMenuBadges()
|
||||
void refreshProductionMenuBadges()
|
||||
void refreshOaMenuBadges()
|
||||
void loadVoidTypeDict()
|
||||
|
||||
// 6. 保存 iframe 路由
|
||||
IframeRouteManager.getInstance().save()
|
||||
|
||||
@@ -0,0 +1,46 @@
|
||||
/**
|
||||
* 完成工单前置校验 — 纯逻辑(无 API 依赖,便于单测)。
|
||||
*/
|
||||
import type { ProductionWorkOrderItem } from '@/api/production-work-order'
|
||||
import { extractProductionTaskSteps } from '@/utils/production-labels'
|
||||
|
||||
export function needsProductionReceptionGate(row: ProductionWorkOrderItem): boolean {
|
||||
const src = String(row.receptionSource || '').trim()
|
||||
return src === 'cell_storage' || src === 'research_donation'
|
||||
}
|
||||
|
||||
export function findTaskStepGateIssue(detail: Record<string, any>): {
|
||||
message: string
|
||||
stepId?: string
|
||||
} | null {
|
||||
const steps = extractProductionTaskSteps(detail)
|
||||
for (const step of steps) {
|
||||
const processName = String(step.processName || '').trim() || '未命名步骤'
|
||||
const assigneeIds = Array.isArray(step.assigneeUserIds) ? step.assigneeUserIds : []
|
||||
if (!assigneeIds.length) {
|
||||
return {
|
||||
message: `请先为步骤「${processName}」指定负责人`,
|
||||
stepId: step.id ? String(step.id) : undefined
|
||||
}
|
||||
}
|
||||
if (!String(step.plannedStartTime || '').trim()) {
|
||||
return {
|
||||
message: `请先为步骤「${processName}」填写计划开始时间`,
|
||||
stepId: step.id ? String(step.id) : undefined
|
||||
}
|
||||
}
|
||||
const outputs = Array.isArray(step.outputs) ? step.outputs : []
|
||||
for (const out of outputs) {
|
||||
if (!String(out?.outputBarcode || '').trim()) {
|
||||
const outputName = String(out?.outputName || '').trim()
|
||||
return {
|
||||
message: outputName
|
||||
? `请补全步骤「${processName}」产出物「${outputName}」的条码`
|
||||
: `请补全步骤「${processName}」产出物条码`,
|
||||
stepId: step.id ? String(step.id) : undefined
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return null
|
||||
}
|
||||
@@ -0,0 +1,90 @@
|
||||
import { describe, it } from 'node:test'
|
||||
import assert from 'node:assert/strict'
|
||||
import {
|
||||
findTaskStepGateIssue,
|
||||
needsProductionReceptionGate
|
||||
} from './production-complete-work-order-gate-logic'
|
||||
|
||||
describe('needsProductionReceptionGate', () => {
|
||||
it('true for cell_storage and research_donation', () => {
|
||||
assert.equal(needsProductionReceptionGate({ receptionSource: 'cell_storage' } as any), true)
|
||||
assert.equal(
|
||||
needsProductionReceptionGate({ receptionSource: 'research_donation' } as any),
|
||||
true
|
||||
)
|
||||
})
|
||||
|
||||
it('false for outbound/temporary', () => {
|
||||
assert.equal(needsProductionReceptionGate({ receptionSource: 'outbound' } as any), false)
|
||||
assert.equal(needsProductionReceptionGate({} as any), false)
|
||||
})
|
||||
})
|
||||
|
||||
describe('findTaskStepGateIssue', () => {
|
||||
it('requires assignee', () => {
|
||||
const issue = findTaskStepGateIssue({
|
||||
steps: [{ id: 's1', processName: '分离', assigneeUserIds: [], plannedStartTime: '2026-01-01' }]
|
||||
})
|
||||
assert.ok(issue)
|
||||
assert.match(issue!.message, /负责人/)
|
||||
assert.equal(issue!.stepId, 's1')
|
||||
})
|
||||
|
||||
it('requires planned start time', () => {
|
||||
const issue = findTaskStepGateIssue({
|
||||
steps: [{ id: 's1', processName: '分离', assigneeUserIds: ['u1'], plannedStartTime: '' }]
|
||||
})
|
||||
assert.ok(issue)
|
||||
assert.match(issue!.message, /计划开始时间/)
|
||||
})
|
||||
|
||||
it('requires barcode on existing output rows', () => {
|
||||
const issue = findTaskStepGateIssue({
|
||||
steps: [
|
||||
{
|
||||
id: 's1',
|
||||
processName: '分离',
|
||||
assigneeUserIds: ['u1'],
|
||||
plannedStartTime: '2026-01-01',
|
||||
outputs: [{ outputName: '细胞袋', outputBarcode: '' }]
|
||||
}
|
||||
]
|
||||
})
|
||||
assert.ok(issue)
|
||||
assert.match(issue!.message, /条码/)
|
||||
})
|
||||
|
||||
it('allows empty outputs', () => {
|
||||
assert.equal(
|
||||
findTaskStepGateIssue({
|
||||
steps: [
|
||||
{
|
||||
id: 's1',
|
||||
processName: '分离',
|
||||
assigneeUserIds: ['u1'],
|
||||
plannedStartTime: '2026-01-01',
|
||||
outputs: []
|
||||
}
|
||||
]
|
||||
}),
|
||||
null
|
||||
)
|
||||
})
|
||||
|
||||
it('passes when all filled', () => {
|
||||
assert.equal(
|
||||
findTaskStepGateIssue({
|
||||
steps: [
|
||||
{
|
||||
id: 's1',
|
||||
processName: '分离',
|
||||
assigneeUserIds: ['u1'],
|
||||
plannedStartTime: '2026-01-01',
|
||||
outputs: [{ outputName: '细胞袋', outputBarcode: 'BC-1' }]
|
||||
}
|
||||
]
|
||||
}),
|
||||
null
|
||||
)
|
||||
})
|
||||
})
|
||||
@@ -0,0 +1,105 @@
|
||||
/**
|
||||
* 完成工单前置校验:生产接收登记 + 步骤负责人/计划开始时间/产出物条码。
|
||||
*/
|
||||
import type { ProductionWorkOrderItem } from '@/api/production-work-order'
|
||||
import {
|
||||
fetchProductionTaskDetail,
|
||||
fetchProductionTaskList
|
||||
} from '@/api/production-task'
|
||||
import { fetchProductionReceptionBySampleCode } from '@/api/sample-production-reception'
|
||||
import {
|
||||
findTaskStepGateIssue,
|
||||
needsProductionReceptionGate
|
||||
} from '@/utils/production-complete-work-order-gate-logic'
|
||||
|
||||
export {
|
||||
findTaskStepGateIssue,
|
||||
needsProductionReceptionGate
|
||||
} from '@/utils/production-complete-work-order-gate-logic'
|
||||
|
||||
export type CompleteWorkOrderGateOk = { ok: true }
|
||||
|
||||
export type CompleteWorkOrderGateBlock =
|
||||
| { ok: false; action: 'sample_reception'; message: string }
|
||||
| { ok: false; action: 'no_tasks'; message: string }
|
||||
| {
|
||||
ok: false
|
||||
action: 'open_task_execution'
|
||||
message: string
|
||||
taskId: string
|
||||
taskName: string
|
||||
stepId?: string
|
||||
}
|
||||
|
||||
export type CompleteWorkOrderGateResult = CompleteWorkOrderGateOk | CompleteWorkOrderGateBlock
|
||||
|
||||
export async function checkCompleteProductionWorkOrderGate(
|
||||
row: ProductionWorkOrderItem
|
||||
): Promise<CompleteWorkOrderGateResult> {
|
||||
if (needsProductionReceptionGate(row)) {
|
||||
const sampleCode = String(row.sampleCode || '').trim()
|
||||
if (!sampleCode) {
|
||||
return {
|
||||
ok: false,
|
||||
action: 'sample_reception',
|
||||
message: '缺少样本编码,无法校验生产接收登记,请先完善样本信息'
|
||||
}
|
||||
}
|
||||
const receptionRes = await fetchProductionReceptionBySampleCode({
|
||||
sampleCode,
|
||||
sourceType: row.receptionSource
|
||||
})
|
||||
const acceptConclusion = String(receptionRes?.qcReception?.acceptConclusion || '').trim()
|
||||
if (acceptConclusion && acceptConclusion !== 'js') {
|
||||
// 质检拒收等:无需生产接收登记
|
||||
} else {
|
||||
const prod = receptionRes?.productionReception
|
||||
if (!prod || !String(prod.id || '').trim()) {
|
||||
return {
|
||||
ok: false,
|
||||
action: 'sample_reception',
|
||||
message: '请先填写生产接收登记'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
const tasksRes = await fetchProductionTaskList({
|
||||
workOrderId: row.id,
|
||||
pageSize: 100,
|
||||
includeStepSummary: true
|
||||
})
|
||||
const tasks = (tasksRes?.list || []).filter((t: Record<string, any>) => {
|
||||
const status = String(t.taskStatus || '').trim()
|
||||
return status !== 'yzf' && status !== 'ywc'
|
||||
})
|
||||
|
||||
if (!tasks.length) {
|
||||
return {
|
||||
ok: false,
|
||||
action: 'no_tasks',
|
||||
message: '请先派发生产任务后再完成工单'
|
||||
}
|
||||
}
|
||||
|
||||
const details = await Promise.all(
|
||||
tasks.map((t: Record<string, any>) => fetchProductionTaskDetail(String(t.id)))
|
||||
)
|
||||
|
||||
for (let i = 0; i < details.length; i++) {
|
||||
const detail = details[i] || {}
|
||||
const task = tasks[i] || {}
|
||||
const issue = findTaskStepGateIssue(detail)
|
||||
if (!issue) continue
|
||||
return {
|
||||
ok: false,
|
||||
action: 'open_task_execution',
|
||||
message: issue.message,
|
||||
taskId: String(detail.id || task.id || ''),
|
||||
taskName: String(detail.taskName || task.taskName || ''),
|
||||
stepId: issue.stepId
|
||||
}
|
||||
}
|
||||
|
||||
return { ok: true }
|
||||
}
|
||||
@@ -4,7 +4,11 @@ import {
|
||||
buildTaskListDisplayItems,
|
||||
pickSharedRemarkAndAttachments,
|
||||
companyGroupProgress,
|
||||
uniqueAssigneeNames
|
||||
uniqueAssigneeNames,
|
||||
sortThirdPartyTasksByCompany,
|
||||
allThirdPartyCardSubtitle,
|
||||
thirdPartyCompanyDisplayName,
|
||||
countDistinctThirdPartyCompanies
|
||||
} from './qc-company-task-group'
|
||||
|
||||
type TestQcTask = {
|
||||
@@ -36,7 +40,7 @@ function task(partial: Partial<TestQcTask> & Pick<TestQcTask, 'id' | 'taskType'>
|
||||
}
|
||||
|
||||
describe('buildTaskListDisplayItems', () => {
|
||||
it('keeps lab tasks as single cards and groups third-party by companyId', () => {
|
||||
it('keeps lab tasks as single cards and merges all third-party into one card', () => {
|
||||
const tasks = [
|
||||
task({ id: 'l1', taskType: 'sysz', itemName: '无菌' }),
|
||||
task({
|
||||
@@ -59,30 +63,71 @@ describe('buildTaskListDisplayItems', () => {
|
||||
companyId: 'c2',
|
||||
companyName: '迪安',
|
||||
itemName: 'HIV'
|
||||
})
|
||||
}),
|
||||
task({ id: 't0', taskType: 'dsfjc', companyId: '', companyName: '', itemName: '孤儿' })
|
||||
]
|
||||
const items = buildTaskListDisplayItems(tasks)
|
||||
assert.equal(items.length, 3)
|
||||
assert.equal(items.length, 2)
|
||||
assert.equal(items[0].kind, 'lab')
|
||||
assert.equal(items[0].kind === 'lab' && items[0].task.id, 'l1')
|
||||
assert.equal(items[1].kind, 'company')
|
||||
if (items[1].kind === 'company') {
|
||||
assert.equal(items[1].companyId, 'c1')
|
||||
assert.equal(items[1].tasks.length, 2)
|
||||
}
|
||||
assert.equal(items[2].kind, 'company')
|
||||
if (items[2].kind === 'company') {
|
||||
assert.equal(items[2].companyId, 'c2')
|
||||
assert.equal(items[1].kind, 'all-third')
|
||||
if (items[1].kind === 'all-third') {
|
||||
assert.equal(items[1].tasks.length, 4)
|
||||
assert.deepEqual(
|
||||
items[1].tasks.map((t) => t.id),
|
||||
['t1', 't2', 't3', 't0']
|
||||
)
|
||||
}
|
||||
})
|
||||
|
||||
it('falls back to single lab-like card when third-party has empty companyId', () => {
|
||||
it('merges orphan third-party into all-third card', () => {
|
||||
const tasks = [
|
||||
task({ id: 't0', taskType: 'dsfjc', companyId: '', companyName: '', itemName: '孤儿' })
|
||||
]
|
||||
const items = buildTaskListDisplayItems(tasks)
|
||||
assert.equal(items.length, 1)
|
||||
assert.equal(items[0].kind, 'orphan-third')
|
||||
assert.equal(items[0].kind, 'all-third')
|
||||
if (items[0].kind === 'all-third') {
|
||||
assert.equal(items[0].tasks[0].id, 't0')
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
describe('sortThirdPartyTasksByCompany', () => {
|
||||
it('groups by company first-seen order and puts orphans last', () => {
|
||||
const sorted = sortThirdPartyTasksByCompany([
|
||||
task({ id: 'a1', taskType: 'dsfjc', companyId: 'c2', companyName: '迪安' }),
|
||||
task({ id: 'o1', taskType: 'dsfjc', companyId: '' }),
|
||||
task({ id: 'b1', taskType: 'dsfjc', companyId: 'c1', companyName: '金域' }),
|
||||
task({ id: 'a2', taskType: 'dsfjc', companyId: 'c2', companyName: '迪安' }),
|
||||
task({ id: 'b2', taskType: 'dsfjc', companyId: 'c1', companyName: '金域' })
|
||||
])
|
||||
assert.deepEqual(
|
||||
sorted.map((t) => t.id),
|
||||
['a1', 'a2', 'b1', 'b2', 'o1']
|
||||
)
|
||||
})
|
||||
})
|
||||
|
||||
describe('allThirdPartyCardSubtitle / company helpers', () => {
|
||||
it('counts distinct companies excluding unassigned', () => {
|
||||
const tasks = [
|
||||
task({ id: '1', taskType: 'dsfjc', companyId: 'c1', companyName: '金域' }),
|
||||
task({ id: '2', taskType: 'dsfjc', companyId: 'c1', companyName: '金域' }),
|
||||
task({ id: '3', taskType: 'dsfjc', companyId: 'c2', companyName: '迪安' }),
|
||||
task({ id: '4', taskType: 'dsfjc', companyId: '' })
|
||||
]
|
||||
assert.equal(countDistinctThirdPartyCompanies(tasks), 2)
|
||||
assert.equal(allThirdPartyCardSubtitle(tasks), '第三方 · 4 个检测项目 · 2 家公司')
|
||||
assert.equal(
|
||||
allThirdPartyCardSubtitle([task({ id: '4', taskType: 'dsfjc', companyId: '' })]),
|
||||
'第三方 · 1 个检测项目'
|
||||
)
|
||||
assert.equal(thirdPartyCompanyDisplayName({ companyId: '', companyName: '' }), '未归属公司')
|
||||
assert.equal(
|
||||
thirdPartyCompanyDisplayName({ companyId: 'c1', companyName: '金域' }),
|
||||
'金域'
|
||||
)
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
@@ -1,58 +1,86 @@
|
||||
import type { QcTask } from '../api/qc-task'
|
||||
|
||||
export type QcTaskListLabItem = { kind: 'lab'; task: QcTask }
|
||||
export type QcTaskListOrphanThirdItem = { kind: 'orphan-third'; task: QcTask }
|
||||
export type QcTaskListCompanyItem = {
|
||||
kind: 'company'
|
||||
companyId: string
|
||||
companyName: string
|
||||
tasks: QcTask[]
|
||||
}
|
||||
export type QcTaskListDisplayItem =
|
||||
| QcTaskListLabItem
|
||||
| QcTaskListOrphanThirdItem
|
||||
| QcTaskListCompanyItem
|
||||
/** 批次内全部第三方任务合一卡 */
|
||||
export type QcTaskListAllThirdItem = { kind: 'all-third'; tasks: QcTask[] }
|
||||
export type QcTaskListDisplayItem = QcTaskListLabItem | QcTaskListAllThirdItem
|
||||
|
||||
export const UNASSIGNED_THIRD_PARTY_COMPANY_LABEL = '未归属公司'
|
||||
export const ALL_THIRD_PARTY_CARD_TITLE = '第三方质检项目'
|
||||
|
||||
function trimId(v?: string) {
|
||||
return (v || '').trim()
|
||||
}
|
||||
|
||||
/** 自检卡在前(原序);有 companyId 的第三方按首次出现公司顺序分组;无 companyId 降级为 orphan-third */
|
||||
export function buildTaskListDisplayItems(tasks: QcTask[]): QcTaskListDisplayItem[] {
|
||||
const lab: QcTaskListDisplayItem[] = []
|
||||
const orphans: QcTaskListDisplayItem[] = []
|
||||
const companyOrder: string[] = []
|
||||
const companyMap = new Map<string, QcTaskListCompanyItem>()
|
||||
export function thirdPartyCompanyDisplayName(task: Pick<QcTask, 'companyId' | 'companyName'>): string {
|
||||
if (!trimId(task.companyId)) return UNASSIGNED_THIRD_PARTY_COMPANY_LABEL
|
||||
return (task.companyName || '').trim() || UNASSIGNED_THIRD_PARTY_COMPANY_LABEL
|
||||
}
|
||||
|
||||
/** 有非空 companyId 的去重公司数(不含未归属) */
|
||||
export function countDistinctThirdPartyCompanies(tasks: QcTask[]): number {
|
||||
const ids = new Set<string>()
|
||||
for (const t of tasks || []) {
|
||||
if ((t.taskType || '').trim() === 'sysz') {
|
||||
lab.push({ kind: 'lab', task: t })
|
||||
continue
|
||||
}
|
||||
if ((t.taskType || '').trim() !== 'dsfjc') {
|
||||
lab.push({ kind: 'lab', task: t })
|
||||
continue
|
||||
}
|
||||
const cid = trimId(t.companyId)
|
||||
if (cid) ids.add(cid)
|
||||
}
|
||||
return ids.size
|
||||
}
|
||||
|
||||
export function allThirdPartyCardSubtitle(tasks: QcTask[]): string {
|
||||
const list = tasks || []
|
||||
const n = list.length
|
||||
const m = countDistinctThirdPartyCompanies(list)
|
||||
if (m > 0) return `第三方 · ${n} 个检测项目 · ${m} 家公司`
|
||||
return `第三方 · ${n} 个检测项目`
|
||||
}
|
||||
|
||||
/**
|
||||
* 先按公司首次出现顺序分组,组内保持原序;无 companyId 的「未归属公司」组放最后。
|
||||
*/
|
||||
export function sortThirdPartyTasksByCompany(tasks: QcTask[]): QcTask[] {
|
||||
const list = [...(tasks || [])]
|
||||
const companyOrder: string[] = []
|
||||
const byCompany = new Map<string, QcTask[]>()
|
||||
const orphans: QcTask[] = []
|
||||
|
||||
for (const t of list) {
|
||||
const cid = trimId(t.companyId)
|
||||
if (!cid) {
|
||||
orphans.push({ kind: 'orphan-third', task: t })
|
||||
orphans.push(t)
|
||||
continue
|
||||
}
|
||||
let g = companyMap.get(cid)
|
||||
if (!g) {
|
||||
g = {
|
||||
kind: 'company',
|
||||
companyId: cid,
|
||||
companyName: (t.companyName || '').trim() || '第三方公司',
|
||||
tasks: []
|
||||
}
|
||||
companyMap.set(cid, g)
|
||||
if (!byCompany.has(cid)) {
|
||||
byCompany.set(cid, [])
|
||||
companyOrder.push(cid)
|
||||
}
|
||||
g.tasks.push(t)
|
||||
byCompany.get(cid)!.push(t)
|
||||
}
|
||||
|
||||
return [...lab, ...companyOrder.map((id) => companyMap.get(id)!), ...orphans]
|
||||
const sorted: QcTask[] = []
|
||||
for (const cid of companyOrder) {
|
||||
sorted.push(...(byCompany.get(cid) || []))
|
||||
}
|
||||
sorted.push(...orphans)
|
||||
return sorted
|
||||
}
|
||||
|
||||
/** 自检卡在前(原序);全部第三方(含无 companyId)合成一张 all-third 卡 */
|
||||
export function buildTaskListDisplayItems(tasks: QcTask[]): QcTaskListDisplayItem[] {
|
||||
const lab: QcTaskListDisplayItem[] = []
|
||||
const third: QcTask[] = []
|
||||
|
||||
for (const t of tasks || []) {
|
||||
if ((t.taskType || '').trim() === 'dsfjc') {
|
||||
third.push(t)
|
||||
continue
|
||||
}
|
||||
// sysz 及其他非第三方:按自检单卡展示(与旧逻辑一致)
|
||||
lab.push({ kind: 'lab', task: t })
|
||||
}
|
||||
|
||||
if (!third.length) return lab
|
||||
return [...lab, { kind: 'all-third', tasks: third }]
|
||||
}
|
||||
|
||||
export function companyGroupProgress(tasks: QcTask[]) {
|
||||
|
||||
@@ -13,10 +13,17 @@ function buildFallbackOptions(): Api.Dict.DictDataOption[] {
|
||||
return Object.entries(FALLBACK_LABELS).map(([value, label]) => ({ value, label }))
|
||||
}
|
||||
|
||||
let labelMap: Record<string, string> = { ...FALLBACK_LABELS }
|
||||
/** 响应式 labelMap:字典异步加载完成后触发依赖它的列表/标签重渲染 */
|
||||
const labelMapRef = shallowRef<Record<string, string>>({ ...FALLBACK_LABELS })
|
||||
let dictLoaded = false
|
||||
let loadPromise: Promise<void> | null = null
|
||||
|
||||
function ensureVoidTypeDictLoading(): void {
|
||||
if (!dictLoaded && !loadPromise) {
|
||||
void loadVoidTypeDict()
|
||||
}
|
||||
}
|
||||
|
||||
/** 作废类型下拉选项(响应式,供弹窗 v-for 绑定) */
|
||||
export const voidTypeOptionsRef = shallowRef<Api.Dict.DictDataOption[]>(buildFallbackOptions())
|
||||
|
||||
@@ -31,7 +38,7 @@ export async function loadVoidTypeDict(force = false): Promise<void> {
|
||||
try {
|
||||
const res = await fetchDictDataOptions(VOID_TYPE_DICT)
|
||||
voidTypeOptionsRef.value = res?.length ? res : buildFallbackOptions()
|
||||
labelMap = {
|
||||
labelMapRef.value = {
|
||||
...FALLBACK_LABELS,
|
||||
...Object.fromEntries(voidTypeOptionsRef.value.map((o) => [o.value, o.label]))
|
||||
}
|
||||
@@ -39,7 +46,7 @@ export async function loadVoidTypeDict(force = false): Promise<void> {
|
||||
} catch (e) {
|
||||
console.error('加载作废类型字典失败:', e)
|
||||
voidTypeOptionsRef.value = buildFallbackOptions()
|
||||
labelMap = { ...FALLBACK_LABELS }
|
||||
labelMapRef.value = { ...FALLBACK_LABELS }
|
||||
} finally {
|
||||
loadPromise = null
|
||||
}
|
||||
@@ -48,9 +55,11 @@ export async function loadVoidTypeDict(force = false): Promise<void> {
|
||||
}
|
||||
|
||||
export function resolveVoidTypeLabel(value: string): string {
|
||||
ensureVoidTypeDictLoading()
|
||||
const code = String(value || '').trim()
|
||||
if (!code) return ''
|
||||
return labelMap[code] || FALLBACK_LABELS[code] || code
|
||||
const map = labelMapRef.value
|
||||
return map[code] || FALLBACK_LABELS[code] || code
|
||||
}
|
||||
|
||||
export const voidTypeLabel = resolveVoidTypeLabel
|
||||
@@ -145,7 +145,12 @@
|
||||
:type="protocolStatusTagType(String(row.protocolStatus || ''))"
|
||||
size="small"
|
||||
class="protocol-card__status"
|
||||
>{{ protocolStatusLabel(String(row.protocolStatus || '')) }}</el-tag
|
||||
>{{
|
||||
protocolStatusDisplayLabel(
|
||||
String(row.protocolStatus || ''),
|
||||
String(row.voidType || '')
|
||||
)
|
||||
}}</el-tag
|
||||
>
|
||||
<div v-if="row.createTime" class="protocol-card__create-time">
|
||||
创建 {{ formatDisplayOrDash(row.createTime) }}
|
||||
@@ -418,7 +423,7 @@
|
||||
formatProtocolDocBatchDeleteConfirm
|
||||
} from '@/utils/protocol-doc-label'
|
||||
import {
|
||||
protocolStatusLabel,
|
||||
protocolStatusDisplayLabel,
|
||||
protocolStatusTagType,
|
||||
newbornSexLabel,
|
||||
sampleStatusLabel,
|
||||
@@ -430,6 +435,7 @@
|
||||
qcWorkOrderConclusionTagType
|
||||
} from '@/utils/status-tag-registry'
|
||||
import { maskIdCard } from '@/utils/mask-sensitive'
|
||||
import { loadVoidTypeDict } from '@/utils/void-type-dict'
|
||||
|
||||
defineOptions({ name: 'CellStorageProtocolAuditTab' })
|
||||
|
||||
@@ -719,7 +725,8 @@
|
||||
{ debounce: 300, deep: true }
|
||||
)
|
||||
|
||||
onMounted(() => {
|
||||
onMounted(async () => {
|
||||
await loadVoidTypeDict()
|
||||
loadData()
|
||||
})
|
||||
</script>
|
||||
|
||||
@@ -115,7 +115,12 @@
|
||||
<el-tag
|
||||
:type="protocolStatusTagType(String(row.protocolStatus || ''))"
|
||||
size="small"
|
||||
>{{ protocolStatusLabel(String(row.protocolStatus || '')) }}</el-tag
|
||||
>{{
|
||||
protocolStatusDisplayLabel(
|
||||
String(row.protocolStatus || ''),
|
||||
String(row.voidType || '')
|
||||
)
|
||||
}}</el-tag
|
||||
>
|
||||
</template>
|
||||
</el-table-column>
|
||||
@@ -304,11 +309,12 @@
|
||||
type CollectionProtocolRow
|
||||
} from '@/api/collection-protocol'
|
||||
import {
|
||||
protocolStatusLabel,
|
||||
protocolStatusDisplayLabel,
|
||||
protocolStatusTagType,
|
||||
newbornSexLabel,
|
||||
deliveryModeLabel
|
||||
} from '@/utils/status-tag-registry'
|
||||
import { loadVoidTypeDict } from '@/utils/void-type-dict'
|
||||
import {
|
||||
formatProtocolDocDeleteConfirm,
|
||||
formatProtocolDocBatchDeleteConfirm
|
||||
@@ -448,7 +454,8 @@
|
||||
{ debounce: 300, deep: true }
|
||||
)
|
||||
|
||||
onMounted(() => {
|
||||
onMounted(async () => {
|
||||
await loadVoidTypeDict()
|
||||
loadData()
|
||||
})
|
||||
</script>
|
||||
@@ -20,6 +20,23 @@
|
||||
@data-changed="reloadTabCounts"
|
||||
/>
|
||||
|
||||
<SampleReceptionDialog
|
||||
v-model="sampleReceptionDialogVisible"
|
||||
:sample-code="sampleReceptionSampleCode"
|
||||
:source-type="sampleReceptionSourceType"
|
||||
@success="refreshActiveTab"
|
||||
/>
|
||||
|
||||
<TaskExecutionDialog
|
||||
v-model:visible="gateExecutionVisible"
|
||||
:task-id="gateExecutionTaskId"
|
||||
:task-name="gateExecutionTaskName"
|
||||
:initial-step-id="gateExecutionStepId"
|
||||
operate-scope="mine"
|
||||
append-to-body
|
||||
@success="refreshActiveTab"
|
||||
/>
|
||||
|
||||
<CompleteProductionTaskDialog
|
||||
v-model:visible="completeWoVisible"
|
||||
mode="workOrder"
|
||||
@@ -33,7 +50,7 @@
|
||||
<script setup lang="ts">
|
||||
import { ref, onMounted } from 'vue'
|
||||
import { useRoute, useRouter } from 'vue-router'
|
||||
import { ElMessage, ElMessageBox } from 'element-plus'
|
||||
import { ElLoading, ElMessage, ElMessageBox } from 'element-plus'
|
||||
import {
|
||||
fetchCompleteProductionWorkOrder,
|
||||
fetchVoidProductionWorkOrder,
|
||||
@@ -44,8 +61,11 @@
|
||||
type ProductionWorkOrderTabKey
|
||||
} from '@/utils/production-work-order-tabs'
|
||||
import { refreshProductionMenuBadges } from '@/utils/production-menu-badge'
|
||||
import { checkCompleteProductionWorkOrderGate } from '@/utils/production-complete-work-order-gate'
|
||||
import ProductionWorkOrderTabBar from '../production-work-order/ProductionWorkOrderTabBar.vue'
|
||||
import ProductionWorkOrderTabPanel from '../production-work-order/tabs/ProductionWorkOrderTabPanel.vue'
|
||||
import SampleReceptionDialog from '../production-work-order/SampleReceptionDialog.vue'
|
||||
import TaskExecutionDialog from '../production-work-order/TaskExecutionDialog.vue'
|
||||
import CompleteProductionTaskDialog from '../production-work-order/CompleteProductionTaskDialog.vue'
|
||||
|
||||
defineOptions({ name: 'ProductionMyProductionTask' })
|
||||
@@ -72,6 +92,15 @@
|
||||
const completeWoSubmitting = ref(false)
|
||||
const completeWoTarget = ref<ProductionWorkOrderItem | null>(null)
|
||||
|
||||
const sampleReceptionDialogVisible = ref(false)
|
||||
const sampleReceptionSampleCode = ref('')
|
||||
const sampleReceptionSourceType = ref<string | undefined>(undefined)
|
||||
|
||||
const gateExecutionVisible = ref(false)
|
||||
const gateExecutionTaskId = ref('')
|
||||
const gateExecutionTaskName = ref('')
|
||||
const gateExecutionStepId = ref('')
|
||||
|
||||
function reloadTabCounts() {
|
||||
tabBarRef.value?.reload()
|
||||
void refreshProductionMenuBadges()
|
||||
@@ -83,13 +112,43 @@
|
||||
await activeTabRef.value?.reload()
|
||||
}
|
||||
|
||||
function handleOpenSampleReception(row: ProductionWorkOrderItem) {
|
||||
sampleReceptionSampleCode.value = row.sampleCode || ''
|
||||
sampleReceptionSourceType.value = row.receptionSource
|
||||
sampleReceptionDialogVisible.value = true
|
||||
}
|
||||
|
||||
async function handleCompleteSingle(row: ProductionWorkOrderItem) {
|
||||
if (row.workOrderStatus !== 'dpz' && row.workOrderStatus !== 'jxz') {
|
||||
ElMessage.warning('仅待配置或进行中的工单可完成')
|
||||
return
|
||||
}
|
||||
completeWoTarget.value = row
|
||||
completeWoVisible.value = true
|
||||
const loading = ElLoading.service({
|
||||
lock: true,
|
||||
text: '校验中…',
|
||||
background: 'rgba(255, 255, 255, 0.65)'
|
||||
})
|
||||
try {
|
||||
const gate = await checkCompleteProductionWorkOrderGate(row)
|
||||
if (!gate.ok) {
|
||||
ElMessage.warning(gate.message)
|
||||
if (gate.action === 'sample_reception') {
|
||||
handleOpenSampleReception(row)
|
||||
} else if (gate.action === 'open_task_execution') {
|
||||
gateExecutionTaskId.value = gate.taskId
|
||||
gateExecutionTaskName.value = gate.taskName
|
||||
gateExecutionStepId.value = gate.stepId || ''
|
||||
gateExecutionVisible.value = true
|
||||
}
|
||||
return
|
||||
}
|
||||
completeWoTarget.value = row
|
||||
completeWoVisible.value = true
|
||||
} catch {
|
||||
/* global error handling */
|
||||
} finally {
|
||||
loading.close()
|
||||
}
|
||||
}
|
||||
|
||||
async function submitCompleteWorkOrder(payload: { conclusion: string; remark?: string }) {
|
||||
|
||||
@@ -59,31 +59,10 @@
|
||||
>
|
||||
有 {{ editor.dirtyScopeCount.value }} 处未保存
|
||||
</span>
|
||||
<div v-if="!readonly" class="execution-header-actions">
|
||||
<el-button v-if="allowForward" class="btn-op-item" @click="openForwardDialog">
|
||||
<div v-if="!readonly && allowForward" class="execution-header-actions">
|
||||
<el-button class="btn-op-item" @click="openForwardDialog">
|
||||
<el-icon><Share /></el-icon>转发任务
|
||||
</el-button>
|
||||
<el-button
|
||||
v-if="editor.taskDetail.value.taskStatus === 'dpz'"
|
||||
class="btn-main task-exec-toolbar-btn"
|
||||
type="primary"
|
||||
:loading="editor.taskActionLoading.value"
|
||||
@click="editor.handleStartTask"
|
||||
>
|
||||
<el-icon><VideoPlay /></el-icon>开始执行
|
||||
</el-button>
|
||||
<el-button
|
||||
v-if="
|
||||
editor.taskDetail.value.taskStatus === 'jxz' ||
|
||||
editor.taskDetail.value.taskStatus === 'ywc'
|
||||
"
|
||||
class="btn-main task-exec-toolbar-btn"
|
||||
type="success"
|
||||
:loading="editor.taskActionLoading.value"
|
||||
@click="editor.handleCompleteTask"
|
||||
>
|
||||
<el-icon><Check /></el-icon>完成任务
|
||||
</el-button>
|
||||
</div>
|
||||
</div>
|
||||
<div v-if="editor.taskDetail.value.remark" class="execution-header-remark">{{
|
||||
@@ -543,15 +522,6 @@
|
||||
</div>
|
||||
</el-dialog>
|
||||
|
||||
<CompleteProductionTaskDialog
|
||||
v-model:visible="completeConclusionVisible"
|
||||
:submitting="taskActionLoading"
|
||||
:is-completed-edit="completeConclusionIsEdit"
|
||||
:initial-conclusion="completeConclusionInitial.conclusion"
|
||||
:initial-remark="completeConclusionInitial.remark"
|
||||
@submit="handleCompleteSubmit"
|
||||
/>
|
||||
|
||||
<ForwardTaskDialog
|
||||
v-model:visible="forwardVisible"
|
||||
:task-id="taskId"
|
||||
@@ -617,7 +587,6 @@
|
||||
Rank,
|
||||
Plus,
|
||||
Check,
|
||||
VideoPlay,
|
||||
CopyDocument,
|
||||
Delete,
|
||||
Share,
|
||||
@@ -633,7 +602,6 @@
|
||||
import TaskOutputList from './TaskOutputList.vue'
|
||||
import TaskPaperAttachmentsPanel from './TaskPaperAttachmentsPanel.vue'
|
||||
import TaskEquipmentPanel from './TaskEquipmentPanel.vue'
|
||||
import CompleteProductionTaskDialog from './CompleteProductionTaskDialog.vue'
|
||||
import ForwardTaskDialog from './ForwardTaskDialog.vue'
|
||||
import DispatchTaskDialog from './DispatchTaskDialog.vue'
|
||||
import type { ProductionTaskOperateScope } from '@/api/production-task'
|
||||
@@ -690,18 +658,8 @@
|
||||
|
||||
const editor = useTaskStepEditor()
|
||||
/** 顶层解构 Ref,避免 v-model 收到 Ref 对象被当成 truthy 而误开弹窗 */
|
||||
const {
|
||||
completeConclusionVisible,
|
||||
completeConclusionIsEdit,
|
||||
completeConclusionInitial,
|
||||
taskActionLoading,
|
||||
submitCompleteWithConclusion,
|
||||
taskDetail,
|
||||
taskInputs,
|
||||
validateTaskInputs,
|
||||
isScopeDirty,
|
||||
guardBeforeLeaveCurrentScope
|
||||
} = editor
|
||||
const { taskDetail, taskInputs, validateTaskInputs, isScopeDirty, guardBeforeLeaveCurrentScope } =
|
||||
editor
|
||||
|
||||
const executionTaskConclusion = computed(
|
||||
() => (taskDetail.value as { conclusion?: string } | null)?.conclusion || ''
|
||||
@@ -859,13 +817,6 @@
|
||||
emit('success')
|
||||
}
|
||||
|
||||
async function handleCompleteSubmit(payload: { conclusion: string; remark?: string }) {
|
||||
await submitCompleteWithConclusion(payload)
|
||||
if (taskDetail.value?.taskStatus === 'ywc') {
|
||||
dialogVisible.value = false
|
||||
}
|
||||
}
|
||||
|
||||
function stepSeqClass(status: string) {
|
||||
if (status === 'ywc') return 'seq-done'
|
||||
if (status === 'jxz') return 'seq-running'
|
||||
@@ -878,10 +829,7 @@
|
||||
watch(
|
||||
() => props.visible,
|
||||
async (val) => {
|
||||
if (!val) {
|
||||
completeConclusionVisible.value = false
|
||||
return
|
||||
}
|
||||
if (!val) return
|
||||
if (props.taskId) {
|
||||
await editor.initEditor(props.taskId, {
|
||||
mode: 'execution',
|
||||
|
||||
@@ -97,6 +97,16 @@
|
||||
@success="refreshActiveTab"
|
||||
/>
|
||||
|
||||
<TaskExecutionDialog
|
||||
v-model:visible="gateExecutionVisible"
|
||||
:task-id="gateExecutionTaskId"
|
||||
:task-name="gateExecutionTaskName"
|
||||
:initial-step-id="gateExecutionStepId"
|
||||
operate-scope="manage"
|
||||
append-to-body
|
||||
@success="refreshActiveTab"
|
||||
/>
|
||||
|
||||
<CompleteProductionTaskDialog
|
||||
v-model:visible="completeWoVisible"
|
||||
mode="workOrder"
|
||||
@@ -110,7 +120,7 @@
|
||||
<script setup lang="ts">
|
||||
import { ref, reactive, computed, onMounted } from 'vue'
|
||||
import { useRoute, useRouter } from 'vue-router'
|
||||
import { ElMessage, ElMessageBox } from 'element-plus'
|
||||
import { ElLoading, ElMessage, ElMessageBox } from 'element-plus'
|
||||
import { Close, Check } from '@element-plus/icons-vue'
|
||||
import {
|
||||
fetchCompleteProductionWorkOrder,
|
||||
@@ -125,6 +135,7 @@
|
||||
type ProductionWorkOrderTabKey
|
||||
} from '@/utils/production-work-order-tabs'
|
||||
import { refreshProductionMenuBadges } from '@/utils/production-menu-badge'
|
||||
import { checkCompleteProductionWorkOrderGate } from '@/utils/production-complete-work-order-gate'
|
||||
import ProductionWorkOrderTabBar from './ProductionWorkOrderTabBar.vue'
|
||||
import ProductionWorkOrderTabPanel from './tabs/ProductionWorkOrderTabPanel.vue'
|
||||
import DispatchTaskDialog from './DispatchTaskDialog.vue'
|
||||
@@ -132,6 +143,7 @@
|
||||
import DispatchQcWorkOrderDialog from './DispatchQcWorkOrderDialog.vue'
|
||||
import WorkOrderRemarkDialog from '@/components/business/work-order-remark-dialog/index.vue'
|
||||
import SampleReceptionDialog from './SampleReceptionDialog.vue'
|
||||
import TaskExecutionDialog from './TaskExecutionDialog.vue'
|
||||
import CompleteProductionTaskDialog from './CompleteProductionTaskDialog.vue'
|
||||
|
||||
defineOptions({ name: 'ProductionProductionWorkOrder' })
|
||||
@@ -288,14 +300,42 @@
|
||||
const completeWoVisible = ref(false)
|
||||
const completeWoSubmitting = ref(false)
|
||||
const completeWoTarget = ref<ProductionWorkOrderItem | null>(null)
|
||||
const gateExecutionVisible = ref(false)
|
||||
const gateExecutionTaskId = ref('')
|
||||
const gateExecutionTaskName = ref('')
|
||||
const gateExecutionStepId = ref('')
|
||||
|
||||
async function handleCompleteSingle(row: ProductionWorkOrderItem) {
|
||||
if (row.workOrderStatus !== 'dpz' && row.workOrderStatus !== 'jxz') {
|
||||
ElMessage.warning('仅待配置或进行中的工单可完成')
|
||||
return
|
||||
}
|
||||
completeWoTarget.value = row
|
||||
completeWoVisible.value = true
|
||||
const loading = ElLoading.service({
|
||||
lock: true,
|
||||
text: '校验中…',
|
||||
background: 'rgba(255, 255, 255, 0.65)'
|
||||
})
|
||||
try {
|
||||
const gate = await checkCompleteProductionWorkOrderGate(row)
|
||||
if (!gate.ok) {
|
||||
ElMessage.warning(gate.message)
|
||||
if (gate.action === 'sample_reception') {
|
||||
handleOpenSampleReception(row)
|
||||
} else if (gate.action === 'open_task_execution') {
|
||||
gateExecutionTaskId.value = gate.taskId
|
||||
gateExecutionTaskName.value = gate.taskName
|
||||
gateExecutionStepId.value = gate.stepId || ''
|
||||
gateExecutionVisible.value = true
|
||||
}
|
||||
return
|
||||
}
|
||||
completeWoTarget.value = row
|
||||
completeWoVisible.value = true
|
||||
} catch {
|
||||
/* global error handling */
|
||||
} finally {
|
||||
loading.close()
|
||||
}
|
||||
}
|
||||
|
||||
async function submitCompleteWorkOrder(payload: { conclusion: string; remark?: string }) {
|
||||
|
||||
+20
-75
@@ -23,62 +23,14 @@
|
||||
<span class="company-item-block__name">
|
||||
<span class="company-item-block__index">{{ itemIndex + 1 }}.</span>
|
||||
{{ item.itemName || '—' }}
|
||||
<span class="company-item-block__company">· {{ item.companyName }}</span>
|
||||
</span>
|
||||
<el-tag size="small" :type="taskStatusTagType(item.saveStatus)">
|
||||
{{ taskStatusLabel(item.saveStatus) }}
|
||||
</el-tag>
|
||||
</div>
|
||||
|
||||
<div class="section-title">检测参数</div>
|
||||
<div v-if="!loading && item.params.length === 0" class="company-item-block__empty-params">
|
||||
该项目暂无配置参数,请先在第三方项目中维护检测参数
|
||||
</div>
|
||||
<div class="form-grid-3">
|
||||
<el-form-item
|
||||
v-for="(param, idx) in item.params"
|
||||
:key="param.paramId || param.paramCode || idx"
|
||||
:label="param.paramName + (param.paramUnit ? `(${param.paramUnit})` : '')"
|
||||
>
|
||||
<el-input
|
||||
v-if="param.paramType === 'text'"
|
||||
v-model="param.paramValue"
|
||||
placeholder="请输入"
|
||||
:disabled="readonly"
|
||||
/>
|
||||
<DecimalInput
|
||||
v-else-if="param.paramType === 'number'"
|
||||
:model-value="toResultNumber(param.paramValue)"
|
||||
:precision="2"
|
||||
style="width: 100%"
|
||||
placeholder="请输入"
|
||||
:disabled="readonly"
|
||||
@update:model-value="(v) => setResultNumber(param, v)"
|
||||
/>
|
||||
<el-select
|
||||
v-else-if="param.paramType === 'select'"
|
||||
v-model="param.paramValue"
|
||||
placeholder="请选择"
|
||||
clearable
|
||||
filterable
|
||||
style="width: 100%"
|
||||
:disabled="readonly"
|
||||
>
|
||||
<el-option
|
||||
v-for="opt in parseQcParamOptions(param.options)"
|
||||
:key="opt"
|
||||
:label="opt"
|
||||
:value="opt"
|
||||
/>
|
||||
</el-select>
|
||||
<el-input
|
||||
v-else
|
||||
v-model="param.paramValue"
|
||||
placeholder="请输入"
|
||||
:disabled="readonly"
|
||||
/>
|
||||
</el-form-item>
|
||||
</div>
|
||||
|
||||
<!-- 检测参数区已隐藏:加载仍拉取、保存原样回传,避免清空历史;详情弹窗仍只读展示 -->
|
||||
<div class="section-title">检测结论</div>
|
||||
<div class="form-grid-2 result-conclusion-row">
|
||||
<el-form-item label="任务状态" required>
|
||||
@@ -160,9 +112,12 @@
|
||||
fetchCompleteTaskWithResult,
|
||||
type QcTaskResultItem
|
||||
} from '@/api/qc-task-result'
|
||||
import { parseQcParamOptions } from '@/utils/qc-item-param-options'
|
||||
import { taskStatusLabel, taskStatusTagType } from '@/utils/qc-labels'
|
||||
import { pickSharedRemarkAndAttachments } from '@/utils/qc-company-task-group'
|
||||
import {
|
||||
pickSharedRemarkAndAttachments,
|
||||
sortThirdPartyTasksByCompany,
|
||||
thirdPartyCompanyDisplayName
|
||||
} from '@/utils/qc-company-task-group'
|
||||
import { downloadAttachmentFile } from '@/utils/download-attachment'
|
||||
import {
|
||||
qcPreviewAttachment,
|
||||
@@ -175,6 +130,7 @@
|
||||
type ItemState = {
|
||||
taskId: string
|
||||
itemName: string
|
||||
companyName: string
|
||||
params: QcTaskResultItem[]
|
||||
saveStatus: 'dzx' | 'ywc'
|
||||
conclusion: '' | 'tg' | 'btg'
|
||||
@@ -209,7 +165,9 @@
|
||||
const dialogWidth = '920px'
|
||||
const dialogTitle = computed(
|
||||
() =>
|
||||
`${props.readonly ? '查看检测结果' : '填写检测结果'} · ${props.companyName || '第三方公司'}`
|
||||
`${props.readonly ? '查看检测结果' : '填写检测结果'} · ${
|
||||
props.companyName || '第三方质检项目'
|
||||
}`
|
||||
)
|
||||
|
||||
const anyCompleted = computed(() => itemStates.value.some((i) => i.saveStatus === 'ywc'))
|
||||
@@ -263,16 +221,6 @@
|
||||
}))
|
||||
}
|
||||
|
||||
function toResultNumber(v: string | undefined) {
|
||||
if (v === '' || v === undefined || v === null) return undefined
|
||||
const n = Number(v)
|
||||
return Number.isFinite(n) ? n : undefined
|
||||
}
|
||||
|
||||
function setResultNumber(param: QcTaskResultItem, v: number | undefined) {
|
||||
param.paramValue = v === undefined || v === null ? '' : String(v)
|
||||
}
|
||||
|
||||
function hasResultValue(v: unknown) {
|
||||
return v !== '' && v !== undefined && v !== null
|
||||
}
|
||||
@@ -287,7 +235,7 @@
|
||||
|
||||
async function loadAll() {
|
||||
const seq = ++loadSeq
|
||||
const tasks = props.tasks || []
|
||||
const tasks = sortThirdPartyTasksByCompany(props.tasks || [])
|
||||
loading.value = true
|
||||
itemStates.value = []
|
||||
remark.value = ''
|
||||
@@ -310,11 +258,14 @@
|
||||
updateTime: detail?.updateTime ?? task.updateTime,
|
||||
conclusion: detail?.conclusion ?? task.conclusion,
|
||||
taskStatus: detail?.taskStatus || task.taskStatus,
|
||||
itemName: detail?.itemName || task.itemName
|
||||
itemName: detail?.itemName || task.itemName,
|
||||
companyId: detail?.companyId ?? task.companyId,
|
||||
companyName: detail?.companyName ?? task.companyName
|
||||
}
|
||||
const item: ItemState = {
|
||||
taskId: task.id,
|
||||
itemName: merged.itemName || '—',
|
||||
companyName: thirdPartyCompanyDisplayName(merged),
|
||||
params: normalizeResultParams(results || []),
|
||||
saveStatus: normalizeThirdPartySaveStatus(merged.taskStatus),
|
||||
conclusion: normalizeConclusion(merged.conclusion)
|
||||
@@ -367,12 +318,6 @@
|
||||
ElMessage.warning(`请选择「${item.itemName}」的检测结论`)
|
||||
return
|
||||
}
|
||||
for (const p of item.params) {
|
||||
if (p.requiredFlag === '1' && !hasResultValue(p.paramValue)) {
|
||||
ElMessage.warning(`请填写「${item.itemName}」参数「${p.paramName}」`)
|
||||
return
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
const thirdPartyAttachments = financeAttachmentsToUrlString(attachments.value)
|
||||
@@ -463,11 +408,11 @@
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
|
||||
&__empty-params {
|
||||
text-align: center;
|
||||
padding: 8px 0 12px;
|
||||
color: var(--mint-text-muted, #64748b);
|
||||
&__company {
|
||||
margin-left: 2px;
|
||||
font-weight: 500;
|
||||
font-size: 13px;
|
||||
color: var(--mint-text-muted, #64748b);
|
||||
}
|
||||
|
||||
.section-title {
|
||||
|
||||
@@ -27,16 +27,16 @@
|
||||
<div class="qc-task-cards-grid">
|
||||
<template v-for="(item, idx) in displayItems">
|
||||
<div
|
||||
v-if="item.kind === 'company'"
|
||||
v-if="item.kind === 'all-third'"
|
||||
:key="displayItemKey(item, idx)"
|
||||
class="qc-task-card qc-task-card--compact qc-task-card--company"
|
||||
@click="openCompanyResult(item)"
|
||||
@dblclick="openCompanyResult(item)"
|
||||
@click="openAllThirdResult(item)"
|
||||
@dblclick="openAllThirdResult(item)"
|
||||
>
|
||||
<div class="qc-task-card__line qc-task-card__line--top">
|
||||
<span class="qc-task-card__name">{{ item.companyName }}</span>
|
||||
<span class="qc-task-card__name">{{ ALL_THIRD_PARTY_CARD_TITLE }}</span>
|
||||
<div class="qc-task-card__sub">
|
||||
第三方 · {{ item.tasks.length }} 个检测项目
|
||||
{{ allThirdPartyCardSubtitle(item.tasks) }}
|
||||
</div>
|
||||
<div class="qc-task-card__tags">
|
||||
<el-tag :type="companyProgressTagType(item)" size="small">
|
||||
@@ -51,11 +51,11 @@
|
||||
}}</span>
|
||||
<div class="qc-work-order-task-sublist__ops">
|
||||
<el-button
|
||||
v-if="canFillCompany(item)"
|
||||
v-if="canFillAllThird(item)"
|
||||
class="btn-op-item primary"
|
||||
type="primary"
|
||||
size="small"
|
||||
@click.stop="openCompanyResult(item, false)"
|
||||
@click.stop="openAllThirdResult(item, false)"
|
||||
>
|
||||
<el-icon><EditPen /></el-icon>填写结果
|
||||
</el-button>
|
||||
@@ -64,7 +64,7 @@
|
||||
class="btn-op-item primary"
|
||||
type="primary"
|
||||
size="small"
|
||||
@click.stop="openCompanyResult(item, true)"
|
||||
@click.stop="openAllThirdResult(item, true)"
|
||||
>
|
||||
<el-icon><View /></el-icon>查看
|
||||
</el-button>
|
||||
@@ -646,10 +646,12 @@
|
||||
} from '@/utils/outbound-qc-pilot-view-sections'
|
||||
import type { TagType } from '@/utils/status-tag-registry'
|
||||
import {
|
||||
ALL_THIRD_PARTY_CARD_TITLE,
|
||||
allThirdPartyCardSubtitle,
|
||||
buildTaskListDisplayItems,
|
||||
companyGroupProgress,
|
||||
uniqueAssigneeNames,
|
||||
type QcTaskListCompanyItem,
|
||||
type QcTaskListAllThirdItem,
|
||||
type QcTaskListDisplayItem
|
||||
} from '@/utils/qc-company-task-group'
|
||||
import QcCompanyTaskResultDialog from './QcCompanyTaskResultDialog.vue'
|
||||
@@ -705,7 +707,7 @@
|
||||
const displayItems = computed(() => buildTaskListDisplayItems(tableData.value))
|
||||
|
||||
function displayItemKey(item: QcTaskListDisplayItem, idx: number) {
|
||||
if (item.kind === 'company') return `company_${item.companyId || idx}`
|
||||
if (item.kind === 'all-third') return `all_third_${idx}`
|
||||
return item.task.id || `${item.kind}_${idx}`
|
||||
}
|
||||
|
||||
@@ -715,35 +717,35 @@
|
||||
return (row.assigneeUserIds || []).some((id) => String(id) === uid)
|
||||
}
|
||||
|
||||
function companyProgressText(item: QcTaskListCompanyItem) {
|
||||
function companyProgressText(item: QcTaskListAllThirdItem) {
|
||||
const { completed, total } = companyGroupProgress(item.tasks)
|
||||
if (completed === 0) return '待执行'
|
||||
return `${completed}/${total} 已完成`
|
||||
}
|
||||
|
||||
function companyProgressTagType(item: QcTaskListCompanyItem) {
|
||||
function companyProgressTagType(item: QcTaskListAllThirdItem) {
|
||||
const { completed, total } = companyGroupProgress(item.tasks)
|
||||
if (total > 0 && completed === total) return 'success'
|
||||
if (completed > 0) return 'warning'
|
||||
return 'info'
|
||||
}
|
||||
|
||||
function canFillCompany(item: QcTaskListCompanyItem) {
|
||||
function canFillAllThird(item: QcTaskListAllThirdItem) {
|
||||
return item.tasks.some((t) => hasPrimaryTaskActions(t) && canFillResult(t))
|
||||
}
|
||||
|
||||
const companyDialogVisible = ref(false)
|
||||
const companyDialogReadonly = ref(false)
|
||||
const companyDialogTasks = ref<QcTask[]>([])
|
||||
const companyDialogName = ref('')
|
||||
const companyDialogName = ref(ALL_THIRD_PARTY_CARD_TITLE)
|
||||
|
||||
function openCompanyResult(item: QcTaskListCompanyItem, forceReadonly?: boolean) {
|
||||
function openAllThirdResult(item: QcTaskListAllThirdItem, forceReadonly?: boolean) {
|
||||
let tasks = item.tasks
|
||||
if (listMode.value === 'mine') {
|
||||
tasks = tasks.filter((t) => isCurrentUserAssignee(t))
|
||||
}
|
||||
if (!tasks.length) return
|
||||
companyDialogName.value = item.companyName
|
||||
companyDialogName.value = ALL_THIRD_PARTY_CARD_TITLE
|
||||
companyDialogTasks.value = tasks
|
||||
companyDialogReadonly.value =
|
||||
forceReadonly === true ||
|
||||
|
||||
@@ -419,6 +419,7 @@
|
||||
formatProtocolDocBatchDeleteConfirm
|
||||
} from '@/utils/protocol-doc-label'
|
||||
import { maskIdCard } from '@/utils/mask-sensitive'
|
||||
import { loadVoidTypeDict } from '@/utils/void-type-dict'
|
||||
|
||||
defineOptions({ name: 'ResearchDonationAudit' })
|
||||
|
||||
@@ -654,7 +655,8 @@
|
||||
{ debounce: 300, deep: true }
|
||||
)
|
||||
|
||||
onMounted(() => {
|
||||
onMounted(async () => {
|
||||
await loadVoidTypeDict()
|
||||
loadData()
|
||||
})
|
||||
</script>
|
||||
|
||||
@@ -308,6 +308,7 @@
|
||||
formatProtocolDocDeleteConfirm,
|
||||
formatProtocolDocBatchDeleteConfirm
|
||||
} from '@/utils/protocol-doc-label'
|
||||
import { loadVoidTypeDict } from '@/utils/void-type-dict'
|
||||
|
||||
defineOptions({ name: 'ResearchDonationList' })
|
||||
|
||||
@@ -444,7 +445,8 @@
|
||||
{ debounce: 300, deep: true }
|
||||
)
|
||||
|
||||
onMounted(() => {
|
||||
onMounted(async () => {
|
||||
await loadVoidTypeDict()
|
||||
loadData()
|
||||
})
|
||||
</script>
|
||||
@@ -0,0 +1,145 @@
|
||||
# 中科兴皖 Docker Compose 部署(甲方交付版:使用预构建镜像,不含源码)
|
||||
#
|
||||
# 启动(在 deploy/docker 目录):
|
||||
# docker load -i ../../images/zkxw-app-images.tar
|
||||
# cp .env.example .env # 修改密码与镜像 tag
|
||||
# docker compose up -d
|
||||
#
|
||||
# 发版方本地从源码构建镜像:见 scripts/build-docker-images.sh
|
||||
# Profile 说明见 README.md
|
||||
|
||||
name: zkxw
|
||||
|
||||
services:
|
||||
mysql:
|
||||
profiles: [full]
|
||||
image: mysql:5.7.36
|
||||
# MySQL 5.7 无 arm64 镜像;Mac(M 芯片) 与甲方 x86 云主机均用 amd64(Mac 上由 Docker 模拟)
|
||||
platform: linux/amd64
|
||||
restart: unless-stopped
|
||||
command: >
|
||||
--character-set-server=utf8mb4
|
||||
--collation-server=utf8mb4_unicode_ci
|
||||
--explicit_defaults_for_timestamp=1
|
||||
environment:
|
||||
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
|
||||
MYSQL_DATABASE: zkxw
|
||||
TZ: Asia/Shanghai
|
||||
volumes:
|
||||
- mysql_data:/var/lib/mysql
|
||||
- ./mysql/init/01-init-db.sql:/docker-entrypoint-initdb.d/01-init-db.sql:ro
|
||||
- ../../docs/sql/zkxw.sql:/docker-entrypoint-initdb.d/02-zkxw.sql:ro
|
||||
healthcheck:
|
||||
test: ['CMD', 'mysqladmin', 'ping', '-h', '127.0.0.1', '-p${MYSQL_ROOT_PASSWORD}']
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 30
|
||||
start_period: 60s
|
||||
|
||||
redis:
|
||||
profiles: [full]
|
||||
image: redis:7-alpine
|
||||
platform: linux/amd64
|
||||
restart: unless-stopped
|
||||
command: redis-server --appendonly yes
|
||||
volumes:
|
||||
- redis_data:/data
|
||||
healthcheck:
|
||||
test: ['CMD', 'redis-cli', 'ping']
|
||||
interval: 10s
|
||||
timeout: 3s
|
||||
retries: 10
|
||||
|
||||
minio:
|
||||
profiles: [full, storage]
|
||||
image: minio/minio:latest
|
||||
platform: linux/amd64
|
||||
restart: unless-stopped
|
||||
command: server /data --console-address ":9001"
|
||||
environment:
|
||||
MINIO_ROOT_USER: ${MINIO_ACCESS_KEY}
|
||||
MINIO_ROOT_PASSWORD: ${MINIO_SECRET_KEY}
|
||||
TZ: Asia/Shanghai
|
||||
volumes:
|
||||
- minio_data:/data
|
||||
|
||||
minio-init:
|
||||
profiles: [full, storage]
|
||||
image: minio/mc:latest
|
||||
platform: linux/amd64
|
||||
depends_on:
|
||||
minio:
|
||||
condition: service_started
|
||||
entrypoint: >
|
||||
/bin/sh -c "
|
||||
for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15; do
|
||||
mc alias set local http://minio:9000 $${MINIO_ACCESS_KEY} $${MINIO_SECRET_KEY} && break
|
||||
sleep 2
|
||||
done &&
|
||||
mc mb --ignore-existing local/$${MINIO_BUCKET} &&
|
||||
mc anonymous set download local/$${MINIO_BUCKET} &&
|
||||
exit 0
|
||||
"
|
||||
environment:
|
||||
MINIO_ACCESS_KEY: ${MINIO_ACCESS_KEY}
|
||||
MINIO_SECRET_KEY: ${MINIO_SECRET_KEY}
|
||||
MINIO_BUCKET: ${MINIO_BUCKET}
|
||||
restart: 'no'
|
||||
|
||||
backend:
|
||||
profiles: [app, full]
|
||||
image: ${ZKXW_BACKEND_IMAGE:-zkxw-backend:latest}
|
||||
platform: linux/amd64
|
||||
restart: unless-stopped
|
||||
env_file: .env
|
||||
environment:
|
||||
TZ: Asia/Shanghai
|
||||
depends_on:
|
||||
mysql:
|
||||
condition: service_healthy
|
||||
required: false
|
||||
redis:
|
||||
condition: service_healthy
|
||||
required: false
|
||||
minio-init:
|
||||
condition: service_completed_successfully
|
||||
required: false
|
||||
volumes:
|
||||
- /usr/share/zoneinfo/Asia/Shanghai:/etc/localtime:ro
|
||||
- backend_uploads:/app/uploads
|
||||
healthcheck:
|
||||
test: ['CMD', 'python', '-c', "import urllib.request; urllib.request.urlopen('http://127.0.0.1:8111/health')"]
|
||||
interval: 30s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
start_period: 60s
|
||||
|
||||
web:
|
||||
profiles: [app, full]
|
||||
image: ${ZKXW_WEB_IMAGE:-zkxw-web:latest}
|
||||
platform: linux/amd64
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
TZ: Asia/Shanghai
|
||||
ports:
|
||||
- '${HTTP_PORT:-8112}:80'
|
||||
depends_on:
|
||||
backend:
|
||||
condition: service_healthy
|
||||
minio:
|
||||
condition: service_started
|
||||
required: false
|
||||
healthcheck:
|
||||
test: ['CMD', 'wget', '-qO-', 'http://127.0.0.1/']
|
||||
interval: 30s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
start_period: 15s
|
||||
volumes:
|
||||
- /usr/share/zoneinfo/Asia/Shanghai:/etc/localtime:ro
|
||||
|
||||
volumes:
|
||||
mysql_data:
|
||||
redis_data:
|
||||
minio_data:
|
||||
backend_uploads:
|
||||
Reference in new issue
Block a user