feat(pl): 实现合同产品用证与额度结转以支持购买证和运输证全流程管理。

This commit is contained in:
wuzilong committed 2026-11-01 18:56:05 +08:00
1 parent cb0344498a
commit fb866c7fa7
104 files changed
+10187 -3833

No files matched your search

@@ -24,6 +24,13 @@
>{{ dictStore.getLabel('crm_contract_status', detailContract?.status) }}</el-tag>
</div>
<div class="detail-actions">
<el-button
v-if="canViewQuotaCert && detailContract?.id"
class="btn-ghost"
@click="router.push({ name: 'PlQuotaCert', query: { contractId: String(detailContract.id) } })"
>
<el-icon><DocumentChecked /></el-icon>适用证件与产品
</el-button>
<el-button
v-if="manageActions"
class="btn-ghost"
@@ -974,6 +981,7 @@
<script setup lang="ts">
import { ref, reactive, computed, onMounted, defineAsyncComponent, nextTick, watch } from 'vue';
import { useRouter } from 'vue-router';
import { fetchGetMenuCodes } from '@/api/auth'
import { isFrameworkContractType, isContractEditableStatus, getContractReeditConfirmMessage } from '../contractType'
import {
displayFrameworkMoney,
@@ -1078,6 +1086,7 @@ import {
const dictStore = useDictStore();
const router = useRouter();
const canViewQuotaCert = ref(false)
const props = withDefaults(
defineProps<{
@@ -3268,6 +3277,8 @@ const handleGeneratePdfFromDialog = async () => {
onMounted(async () => {
await dictStore.loadAllDict();
const perms = await fetchGetMenuCodes()
canViewQuotaCert.value = !!perms.all || !!perms.isSuperAdmin || (perms.menuCodes || []).includes('pl:quota-cert:list')
});
function formatPlanQty(value: unknown) {