This commit is contained in:
zlwu committed 2026-05-21 11:25:43 +08:00
1 parent 74f751d0d1
commit ad0e849f6d
50 files changed
+1569 -659

No files matched your search

@@ -9,7 +9,13 @@
destroy-on-close
:close-on-click-modal="false"
>
<div v-loading="dialogFormLoading" class="protocol-dialog-body min-h-[200px]">
<DialogFormBody
:loading="dialogFormLoading"
body-class="protocol-dialog-body min-h-[200px]"
skeleton-variant="tabs-form"
:skeleton-tab-count="formTabs.length"
:skeleton-section-count="4"
>
<div class="detail-tabs">
<div
v-for="tab in formTabs"
@@ -1024,7 +1030,7 @@
</div>
</div>
</el-form>
</div>
</DialogFormBody>
<template #footer>
<el-button class="btn-ghost" @click="emit('update:modelValue', false)">
@@ -1174,6 +1180,7 @@
</el-dialog>
</template>
<script setup lang="ts">
import DialogFormBody from '@/components/business/dialog-form-body/index.vue'
import { ElMessage } from 'element-plus'
import {
Plus,
@@ -11,20 +11,26 @@
@update:model-value="emit('update:modelValue', $event)"
@closed="handleClosed"
>
<div v-loading="detailLoading" class="protocol-view-body">
<div class="protocol-view-body" :class="{ 'is-detail-loading': detailLoading && !bundle }">
<div class="detail-tabs">
<div
v-for="tab in formTabs"
:key="tab.key"
class="detail-tab"
:class="{ active: activeTab === tab.key }"
:class="{ active: activeTab === tab.key, 'is-disabled': detailLoading && !bundle }"
@click="scrollToSection(tab.key)"
>
{{ tab.label }}
</div>
</div>
<template v-if="bundle">
<DialogDetailSkeleton
v-if="detailLoading && !bundle"
variant="tabs-detail"
:tab-count="formTabs.length"
/>
<template v-else-if="bundle">
<!-- KPI 摘要条 -->
<div class="kpi-strip">
<div class="kpi-card">
@@ -781,6 +787,7 @@
<script setup lang="ts">
import { computed, nextTick, ref, watch } from 'vue'
import { Calendar, CircleCheck, Close, Document, User } from '@element-plus/icons-vue'
import DialogDetailSkeleton from '@/components/business/dialog-detail-skeleton/index.vue'
import ProtocolAttachmentReadonly from './ProtocolAttachmentReadonly.vue'
import SampleQcInfoCards from '@/components/business/sample-qc-info-cards/index.vue'
import {
@@ -1616,6 +1623,7 @@
}
function scrollToSection(key: string) {
if (detailLoading.value && !bundle.value) return
activeTab.value = key
nextTick(() => {
document
@@ -1644,6 +1652,10 @@
<style scoped lang="scss">
.protocol-view-body {
overflow: visible;
&.is-detail-loading {
min-height: min(680px, calc(100vh - 220px));
}
}
/* ---- Sticky Tab 导航 ---- */
@@ -1680,6 +1692,12 @@
&:hover:not(.active) {
color: #059669;
}
&.is-disabled {
cursor: default;
opacity: 0.65;
pointer-events: none;
}
}
/* ---- KPI 摘要条(统一薄荷绿通栏 + 图标徽章) ---- */
@@ -12,7 +12,7 @@
@update:model-value="emit('update:modelValue', $event)"
@closed="handleClosed"
>
<div v-loading="loading" class="channel-view-body">
<div class="channel-view-body" :class="{ 'is-sub-loading': loading && channel }">
<template v-if="channel">
<div class="detail-tabs">
<div
@@ -303,7 +303,15 @@
</div>
<el-empty v-else description="暂无协议信息" :image-size="48" />
</div>
<DialogDetailSkeleton
v-if="loading"
variant="simple"
:section-count="2"
class="channel-view-sub-skeleton"
/>
</template>
<DialogDetailSkeleton v-else variant="tabs-detail" :tab-count="viewTabs.length" />
</div>
<template #footer>
@@ -336,6 +344,7 @@
<script setup lang="ts">
import { computed, nextTick, ref, watch } from 'vue'
import { Calendar, Close, CollectionTag, OfficeBuilding, User } from '@element-plus/icons-vue'
import DialogDetailSkeleton from '@/components/business/dialog-detail-skeleton/index.vue'
import ProtocolAttachmentReadonly from '@/views/cell-storage/protocol/ProtocolAttachmentReadonly.vue'
import { downloadAttachmentFile } from '@/utils/download-attachment'
import {
@@ -263,9 +263,9 @@
class="route-config-center"
@dragover.prevent
@drop="onDropToCenter"
v-loading="stepListLoading"
element-loading-text="加载中..."
>
<el-skeleton v-if="stepListLoading" animated :rows="6" class="route-config-step-skeleton" />
<template v-else>
<div class="route-config-center-header">
<h3>工序步骤</h3>
<span class="route-config-step-count">共 {{ stepList.length }} 步</span>
@@ -316,6 +316,7 @@
<p>从左侧拖拽工序到此处,添加路线步骤</p>
</div>
</div>
</template>
</div>
<!-- 右侧:步骤详情 -->
@@ -151,7 +151,14 @@
destroy-on-close
:close-on-click-modal="false"
>
<el-form v-loading="resultLoading" label-position="top" class="biz-dialog-form">
<DialogFormBody
:loading="resultLoading"
skeleton-variant="form"
:skeleton-section-count="2"
:skeleton-field-count="6"
:skeleton-grid-columns="3"
>
<el-form label-position="top" class="biz-dialog-form">
<div class="form-section">
<div class="section-title">检测参数</div>
<div
@@ -280,6 +287,7 @@
</div>
</div>
</el-form>
</DialogFormBody>
<template #footer>
<el-button class="btn-ghost" @click="resultVisible = false"><el-icon><Close /></el-icon>取消</el-button>
<el-button class="btn-main" type="primary" :loading="resultLoading" @click="submitResult"><el-icon><Check /></el-icon>{{ resultSubmitLabel }}</el-button>
@@ -376,6 +384,7 @@
import { Close, Check, Search, RefreshLeft, VideoPlay, View, Tickets, EditPen, Plus } from '@element-plus/icons-vue'
import ProtocolFinanceConfirmFields from '@/components/business/protocol-finance-confirm-fields/index.vue'
import ProtocolAttachmentReadonly from '@/views/cell-storage/protocol/ProtocolAttachmentReadonly.vue'
import DialogFormBody from '@/components/business/dialog-form-body/index.vue'
import SystemViewDialog from '@/components/business/system-view-dialog/index.vue'
import type { ViewSection } from '@/components/business/system-view-dialog/index.vue'
import {
@@ -1186,6 +1186,20 @@
font-size: 14px;
font-weight: 600;
color: var(--mint-text, #0f172a);
padding-left: 10px;
position: relative;
&::before {
content: '';
position: absolute;
left: 0;
top: 50%;
transform: translateY(-50%);
width: 3px;
height: 14px;
background-color: var(--el-color-primary);
border-radius: 2px;
}
}
.form-section-divider {
@@ -9,7 +9,13 @@
destroy-on-close
:close-on-click-modal="false"
>
<div v-loading="dialogFormLoading" class="protocol-dialog-body min-h-[200px]">
<DialogFormBody
:loading="dialogFormLoading"
body-class="protocol-dialog-body min-h-[200px]"
skeleton-variant="tabs-form"
:skeleton-tab-count="formTabs.length"
:skeleton-section-count="4"
>
<div class="detail-tabs">
<div
v-for="tab in formTabs"
@@ -785,7 +791,7 @@
</div>
</div>
</el-form>
</div>
</DialogFormBody>
<template #footer>
<el-button class="btn-ghost" @click="emit('update:modelValue', false)">
@@ -928,6 +934,7 @@
</el-dialog>
</template>
<script setup lang="ts">
import DialogFormBody from '@/components/business/dialog-form-body/index.vue'
import { ElMessage } from 'element-plus'
import { Plus, Close, Check, Delete, Document, VideoPlay, Loading, Download } from '@element-plus/icons-vue'
import {
@@ -11,20 +11,26 @@
@update:model-value="emit('update:modelValue', $event)"
@closed="handleClosed"
>
<div v-loading="loading" class="donation-view-body">
<div class="donation-view-body" :class="{ 'is-detail-loading': loading && !bundle }">
<div class="detail-tabs">
<div
v-for="tab in formTabs"
:key="tab.key"
class="detail-tab"
:class="{ active: activeTab === tab.key }"
:class="{ active: activeTab === tab.key, 'is-disabled': loading && !bundle }"
@click="scrollToSection(tab.key)"
>
{{ tab.label }}
</div>
</div>
<template v-if="bundle">
<DialogDetailSkeleton
v-if="loading && !bundle"
variant="tabs-detail"
:tab-count="formTabs.length"
/>
<template v-else-if="bundle">
<!-- KPI 摘要条 -->
<div class="kpi-strip">
<div class="kpi-card">
@@ -573,6 +579,7 @@
<script setup lang="ts">
import { computed, nextTick, ref, watch } from 'vue'
import { Calendar, CircleCheck, Close, Document, User } from '@element-plus/icons-vue'
import DialogDetailSkeleton from '@/components/business/dialog-detail-skeleton/index.vue'
import ProtocolAttachmentReadonly from '@/views/cell-storage/protocol/ProtocolAttachmentReadonly.vue'
import SampleQcInfoCards from '@/components/business/sample-qc-info-cards/index.vue'
import {
@@ -949,6 +956,7 @@
}
function scrollToSection(key: string) {
if (loading.value && !bundle.value) return
activeTab.value = key
nextTick(() => {
document
@@ -974,6 +982,10 @@
<style scoped lang="scss">
.donation-view-body {
overflow: visible;
&.is-detail-loading {
min-height: min(680px, calc(100vh - 220px));
}
}
/* ---- Sticky Tab 导航 ---- */
+29 -4
View File
@@ -295,7 +295,15 @@
class="order-module-dialog order-detail-dialog"
modal-class="order-module-dialog-mask"
>
<div v-loading="detailLoading" class="dialog-scroll order-detail-dialog-scroll">
<div class="dialog-scroll order-detail-dialog-scroll" :class="{ 'is-view-loading': detailLoading }">
<DialogDetailSkeleton
v-if="detailLoading"
variant="system-view"
:section-count="4"
:field-count="8"
:grid-columns="3"
/>
<template v-else>
<div class="view-hero order-view-hero">
<div class="order-view-hero-icon">
<el-icon><ShoppingBag /></el-icon>
@@ -810,6 +818,7 @@
</div>
</div>
</template>
</div>
<template #footer>
<el-button class="btn-ghost" @click="viewVisible = false"><el-icon><Close /></el-icon>关闭</el-button>
@@ -830,7 +839,15 @@
</el-dialog>
<div v-else v-show="viewVisible" class="order-embedded-detail">
<div v-loading="detailLoading" class="dialog-scroll order-detail-dialog-scroll">
<div class="dialog-scroll order-detail-dialog-scroll" :class="{ 'is-view-loading': detailLoading }">
<DialogDetailSkeleton
v-if="detailLoading"
variant="system-view"
:section-count="4"
:field-count="8"
:grid-columns="3"
/>
<template v-else>
<div class="view-hero order-view-hero">
<div class="order-view-hero-icon">
<el-icon><ShoppingBag /></el-icon>
@@ -1135,6 +1152,7 @@
</div>
</div>
</template>
</div>
</div>
@@ -1382,8 +1400,14 @@
modal-class="order-module-dialog-mask"
@opened="loadOrderPriceVersionDetail"
>
<div v-loading="orderPriceVersionLoading" class="order-pv-body">
<template v-if="orderPriceVersionDetail">
<div class="order-pv-body" :class="{ 'is-view-loading': orderPriceVersionLoading }">
<DialogDetailSkeleton
v-if="orderPriceVersionLoading"
variant="system-view"
:section-count="2"
:field-count="6"
/>
<template v-else-if="orderPriceVersionDetail">
<div class="view-hero order-pv-hero">
<div class="order-view-hero-icon">
<el-icon><Setting /></el-icon>
@@ -1516,6 +1540,7 @@
} from 'vue'
import { useRoute, useRouter } from 'vue-router'
import { ElMessage, ElMessageBox } from 'element-plus'
import DialogDetailSkeleton from '@/components/business/dialog-detail-skeleton/index.vue'
import { withFullscreenLoading, fullscreenLoadingText } from '@/utils/fullscreen-loading'
import {
ArrowDown,
+9 -2
View File
@@ -165,7 +165,13 @@
destroy-on-close
:close-on-click-modal="false"
>
<div v-loading="postBindLoading" class="post-bind-dialog-body">
<DialogFormBody
:loading="postBindLoading"
body-class="post-bind-dialog-body"
skeleton-variant="form"
:skeleton-section-count="1"
:skeleton-field-count="4"
>
<p v-if="postBindPostName" class="post-bind-subtitle">
职位:<strong>{{ postBindPostName }}</strong>
</p>
@@ -240,7 +246,7 @@
</div>
</el-form-item>
</el-form>
</div>
</DialogFormBody>
<template #footer>
<el-button class="btn-ghost" @click="postBindDialogVisible = false">
<el-icon><Close /></el-icon>
@@ -273,6 +279,7 @@
import { ref, reactive, computed, onMounted, nextTick } from 'vue'
import { ElMessage, ElMessageBox } from 'element-plus'
import { Plus, Close, Check, User, View, Briefcase, RefreshLeft, Search } from '@element-plus/icons-vue'
import DialogFormBody from '@/components/business/dialog-form-body/index.vue'
import SystemViewDialog from '@/components/business/system-view-dialog/index.vue'
import { MAX_ADMIN_LIST_PAGE_SIZE } from '@/utils/fetch-paged-list'
import { withFullscreenLoading, fullscreenLoadingText } from '@/utils/fullscreen-loading'
+9 -6
View File
@@ -197,7 +197,7 @@
destroy-on-close
:close-on-click-modal="false"
>
<div v-loading="menuDialogLoading" style="min-height: 200px">
<DialogFormBody :loading="menuDialogLoading" skeleton-variant="simple" :skeleton-section-count="1">
<!-- 父子关联勾选:选父级全选子级,选子级自动带上父级(与 check-strictly 互斥,故不加) -->
<el-tree
ref="menuTreeRef"
@@ -208,7 +208,7 @@
:default-checked-keys="menuCheckedKeys"
style="max-height: 500px; overflow-y: auto"
/>
</div>
</DialogFormBody>
<template #footer>
<el-button class="btn-ghost" @click="menuDialogVisible = false">
<el-icon><Close /></el-icon>
@@ -363,8 +363,9 @@
:sections="viewSections"
>
<template #menuTree>
<div v-loading="viewDetailLoading" class="role-view-tree-block">
<div v-if="viewMenuTreeData.length" class="role-view-tree-scroll">
<div class="role-view-tree-block">
<el-skeleton v-if="viewDetailLoading" animated :rows="5" class="role-view-tree-skeleton" />
<div v-else-if="viewMenuTreeData.length" class="role-view-tree-scroll">
<el-tree
:key="'menu-' + viewTreeRenderKey"
ref="viewMenuTreeRef"
@@ -381,8 +382,9 @@
</div>
</template>
<template #customDeptTree>
<div v-loading="viewDetailLoading" class="role-view-tree-block">
<div v-if="viewDeptTreeData.length" class="role-view-tree-scroll">
<div class="role-view-tree-block">
<el-skeleton v-if="viewDetailLoading" animated :rows="5" class="role-view-tree-skeleton" />
<div v-else-if="viewDeptTreeData.length" class="role-view-tree-scroll">
<el-tree
:key="'dept-' + viewTreeRenderKey"
ref="viewDeptTreeRef"
@@ -408,6 +410,7 @@
import { ref, reactive, computed, onMounted, nextTick, watch } from 'vue'
import { ElMessage, ElMessageBox } from 'element-plus'
import { Plus, Close, Check, DataAnalysis, View, Stamp, RefreshLeft, Search } from '@element-plus/icons-vue'
import DialogFormBody from '@/components/business/dialog-form-body/index.vue'
import SystemViewDialog, {
type ViewSection
} from '@/components/business/system-view-dialog/index.vue'
@@ -10,7 +10,9 @@
:show-close="false"
style="backdrop-filter: none"
>
<div v-if="bizLoading" v-loading="true" class="dialog-scroll" style="min-height: 120px" />
<div v-if="bizLoading" class="dialog-scroll is-view-loading" style="min-height: 120px">
<DialogDetailSkeleton variant="simple" :section-count="2" :field-count="4" />
</div>
<div v-else class="dialog-scroll">
<!-- Hero header -->
<div class="view-hero">
@@ -75,6 +77,7 @@
</template>
<script setup lang="ts">
import DialogDetailSkeleton from '@/components/business/dialog-detail-skeleton/index.vue'
import { fetchApproveTask, fetchRejectTask, fetchInstanceDetail } from '@/api/workflow'
import { Checked, Close, Check } from '@element-plus/icons-vue'
@@ -126,8 +126,14 @@
:show-close="false"
style="backdrop-filter: none"
>
<div v-loading="detailLoading" class="dialog-scroll">
<template v-if="detailData">
<div class="dialog-scroll" :class="{ 'is-view-loading': detailLoading }">
<DialogDetailSkeleton
v-if="detailLoading"
variant="system-view"
:section-count="2"
:field-count="6"
/>
<template v-else-if="detailData">
<div class="view-hero">
<div class="view-hero-icon">
<el-icon :size="28"><Document /></el-icon>
@@ -194,6 +200,7 @@
</template>
<script setup lang="ts">
import DialogDetailSkeleton from '@/components/business/dialog-detail-skeleton/index.vue'
import { fetchMyInstances, fetchBusinessAllTasks } from '@/api/workflow'
import ProcessStatusTag from '../components/ProcessStatusTag.vue'
import { Document, View, Search, RefreshLeft, Close } from '@element-plus/icons-vue'
@@ -127,8 +127,14 @@
:show-close="false"
style="backdrop-filter: none"
>
<div v-loading="detailLoading" class="dialog-scroll">
<template v-if="detailData">
<div class="dialog-scroll" :class="{ 'is-view-loading': detailLoading }">
<DialogDetailSkeleton
v-if="detailLoading"
variant="system-view"
:section-count="2"
:field-count="6"
/>
<template v-else-if="detailData">
<div class="view-hero">
<div class="view-hero-icon">
<el-icon :size="28"><Document /></el-icon>
@@ -197,6 +203,7 @@
</template>
<script setup lang="ts">
import DialogDetailSkeleton from '@/components/business/dialog-detail-skeleton/index.vue'
import { fetchCompletedTasks, fetchInstanceDetail } from '@/api/workflow'
import ProcessStatusTag from '../components/ProcessStatusTag.vue'
import { Document, View, Search, RefreshLeft, Close } from '@element-plus/icons-vue'
@@ -124,8 +124,14 @@
:show-close="false"
style="backdrop-filter: none"
>
<div v-loading="detailLoading" class="dialog-scroll">
<template v-if="detailData">
<div class="dialog-scroll" :class="{ 'is-view-loading': detailLoading }">
<DialogDetailSkeleton
v-if="detailLoading"
variant="system-view"
:section-count="2"
:field-count="6"
/>
<template v-else-if="detailData">
<div class="view-hero">
<div class="view-hero-icon">
<el-icon :size="28"><Document /></el-icon>
@@ -194,6 +200,7 @@
</template>
<script setup lang="ts">
import DialogDetailSkeleton from '@/components/business/dialog-detail-skeleton/index.vue'
import { fetchPendingTasks, fetchInstanceDetail } from '@/api/workflow'
import ApprovalDialog from '../components/ApprovalDialog.vue'
import ProcessStatusTag from '../components/ProcessStatusTag.vue'