变更投入和效果-本车间和全厂显示判断

This commit is contained in:
2026-10-12 09:20:47 +08:00
parent 174d0a69dd
commit 2756ed15e2
+6 -2
View File
@@ -1,15 +1,19 @@
<script setup lang="ts">
import { ref, onMounted } from 'vue';
import { ref, onMounted, computed } from 'vue';
import { Icon } from '@iconify/vue'
import { useThemeStore } from '@/store/modules/theme';
import { useRouterPush } from '@/hooks/common/router';
import { tagTextColor, tagBgColor, tagBorderColor } from '@/utils/common';
import { localStg } from '@/utils/storage';
import { systemConfigApi } from '@/service/api/system';
import { effectListApi, exportEffectApi } from '@/service/api/pendingChange';
const themeStore = useThemeStore();
const { routerPushByKey } = useRouterPush();
const permission = computed(() => {
return localStg.get('userInfo')?.role_id || 1;
})
const loading = ref<boolean>(false);
const list = ref<any[]>([]);
// 总投入
@@ -127,7 +131,7 @@ onMounted(() => {
'--error-bg': themeStore.otherColor.error,
}"
>
<span class="text-sm font-bold text-slate-800">本车间已验收变更</span>
<span class="text-sm font-bold text-slate-800">{{permission===7?'本车间':permission===8?'全厂':''}}已验收变更</span>
<span class="text-xs text-slate-500">共 <b class="text-[#1D4E9C]">{{ pagination.itemCount }}</b> 起</span>
<span class="text-xs text-slate-500">投入合计 <b class="text-[#1D4E9C]">{{totalCost}}</b> 万元</span>
<span class="text-xs text-slate-500">完全达到率 <b class="text-[var(--success-bg)]">{{fullRate}}%</b></span>