feat(移动端): 流转树在库任务显示『谁转入在库』
- TreeCanvas 全屏流转树 + TaskTreeNode 内嵌树节点,在库/入库任务显示『📥 转入在库: 创建人』
- 复用 formatUserName 中文名映射
This commit is contained in:
@ -43,6 +43,8 @@
|
||||
</view>
|
||||
<text class="cn-assignee">{{ formatUserName(node.assignee_id) || '—' }}</text>
|
||||
<text v-if="!node._isMain && node.parent && !node.parent._isMain" class="cn-nested-hint">协助: {{ formatUserName(node.parent.assignee_id) || '—' }}</text>
|
||||
<!-- 📥 在库任务:显示谁转入在库 -->
|
||||
<text v-if="(String(node.task_name || '').includes('在库') || String(node.task_name || '').includes('入库') || node.assignee_id === 'virtual_warehouse') && node.created_by" class="cn-warehouse-in">📥 转入在库: {{ formatUserName(node.created_by) }}</text>
|
||||
<text class="cn-time">⏰ {{ fmtDate(node.created_at) }}{{ node.completed_at ? '→' + fmtDate(node.completed_at) : '→至今' }}</text>
|
||||
<text v-if="node.records && node.records.length" class="cn-records-mini">{{ node.records.length }}条</text>
|
||||
</view>
|
||||
@ -321,6 +323,7 @@ export default {
|
||||
.cn-badge-mini.s-archived { background: #ede9fe; color: #7c3aed; }
|
||||
.cn-assignee { font-size: 10px; color: #6b7280; }
|
||||
.cn-nested-hint { font-size: 8px; color: #a78bfa; font-weight: 600; }
|
||||
.cn-warehouse-in { font-size: 9px; color: #059669; font-weight: 700; }
|
||||
.cn-time { font-size: 9px; color: #9ca3af; }
|
||||
.cn-records-mini { font-size: 9px; color: #2563eb; background: #eff6ff; padding: 1px 6px; border-radius: 6px; display: inline-block; width: max-content; }
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user