This commit is contained in:
zlwu committed 2026-06-11 15:42:58 +08:00
1 parent 195c4c0a34
commit 64219a68c7
317 files changed
+66845 -33515

No files matched your search

@@ -33,15 +33,6 @@
<div>
<!-- KPI 摘要条 -->
<div class="kpi-strip">
<div class="kpi-card">
<div class="kpi-card__icon" aria-hidden="true">
<el-icon><Document /></el-icon>
</div>
<div class="kpi-card__main">
<div class="kpi-label">协议编号</div>
<div class="kpi-value kpi-value--emphasis">{{ dash(protocol?.protocolNo) }}</div>
</div>
</div>
<div class="kpi-card">
<div class="kpi-card__icon" aria-hidden="true">
<el-icon><CircleCheck /></el-icon>
@@ -81,10 +72,6 @@
<div id="view-section-basic" class="section-card section-card--white">
<div class="section-title"><h3>基本信息</h3></div>
<div class="data-grid data-grid--4">
<div class="data-item"
><div class="data-label">协议号</div
><div class="data-value">{{ dash(protocol?.protocolNo) }}</div></div
>
<div class="data-item"
><div class="data-label">协议状态</div
><div class="data-value"
@@ -340,7 +327,13 @@
>
</div>
<div class="data-item">
<div class="data-label">价格(元)</div>
<div class="data-label">原价格(元)</div>
<div class="data-value data-value--price">{{
row.originalPrice ? `¥${row.originalPrice}` : '—'
}}</div>
</div>
<div class="data-item">
<div class="data-label">优惠价格(元)</div>
<div class="data-value data-value--price">{{
row.price ? `¥${row.price}` : '—'
}}</div>
@@ -769,6 +762,18 @@
><div class="pm-label">分期开始时间</div
><div class="pm-value">{{ formatYmd(payment?.installmentStartDate) }}</div></div
>
<div class="payment-metric"
><div class="pm-label">应缴费提前(天)</div
><div class="pm-value">{{
dash(payment?.installmentAdvanceDays ?? 30)
}}</div></div
>
<div class="payment-metric"
><div class="pm-label">缴费比例</div
><div class="pm-value">{{
formatInstallmentRatios(payment?.installmentRatios)
}}</div></div
>
</template>
</div>
<!-- 缴费明细 -->
@@ -1167,7 +1172,7 @@
<script setup lang="ts">
import { computed, nextTick, ref, watch } from 'vue'
import { Calendar, CircleCheck, Close, Document, User } from '@element-plus/icons-vue'
import { Calendar, CircleCheck, Close, User } from '@element-plus/icons-vue'
import ProtocolAttachmentReadonly from './ProtocolAttachmentReadonly.vue'
import SampleQcInfoCards from '@/components/business/sample-qc-info-cards/index.vue'
import SampleProductionInfoCards from '@/components/business/sample-production-info-cards/index.vue'
@@ -1204,6 +1209,7 @@
acceptConclusionLabel,
acceptConclusionTagType
} from '@/utils/status-tag-registry'
import { formatProtocolDocSubject } from '@/utils/protocol-doc-label'
const props = withDefaults(
defineProps<{
@@ -1389,8 +1395,9 @@
}
const dialogTitle = computed(() => {
const no = protocol.value?.protocolNo || props.listRow?.protocolNo
return no ? `查看协议单 — ${no}` : '查看协议单'
const name =
partyCustomer.value?.motherName || props.listRow?.motherName || protocol.value?.motherName
return `查看 — ${formatProtocolDocSubject('cell_storage', { motherName: name })}`
})
const hasAnyStatusChange = computed(() => {
@@ -1460,6 +1467,11 @@
return dash(val)
}
function formatInstallmentRatios(ratios?: number[] | null) {
if (!ratios?.length) return '—'
return ratios.map((r) => `${r}%`).join(' / ')
}
function formatYm(val: unknown) {
const s = String(val || '')
if (s.length === 6) return `${s.slice(0, 4)}-${s.slice(4, 6)}`