ProjectSetupSpontaneity.vue 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <template>
  2. <view class="setup-wrapper">
  3. <CommonSection title="立项概览" :isFirst="true">
  4. <CommonInfoRow label="项目名称" :value="projectData?.projectName" />
  5. <CommonInfoRow label="项目编号" :value="projectData?.projectCode" />
  6. <CommonInfoRow label="项目分类" :value="projectData?.projectClazzName" />
  7. <CommonInfoRow label="项目来源" :value="projectData?.projectSource" />
  8. <CommonInfoRow label="项目日期"
  9. :value="formatDate(projectData?.startDate) + ' ~ ' + formatDate(projectData?.endDate)" />
  10. <CommonInfoRow label="所属科室" :value="projectData?.deptName" />
  11. <CommonInfoRow label="统计年度" :value="projectData?.statisticalYear" />
  12. <CommonInfoRow label="项目负责人" :value="projectData?.projectLeaderName" />
  13. <CommonInfoRow label="项目负责人类型" :value="getDictLabel('sci_leader_type', projectData?.projectLeaderType)" />
  14. <CommonInfoRow label="负责人电话" :value="projectData?.projectLeaderPhone" />
  15. <CommonInfoRow label="负责人邮箱" :value="projectData?.projectLeaderMail" />
  16. <CommonInfoRow label="合同经费(元)" :value="amountUnitFormatter(projectData?.contractFunds)" isAmount />
  17. <CommonInfoRow label="批准经费(元)" :value="amountUnitFormatter(projectData?.approvedFunds)" isAmount />
  18. <CommonInfoRow label="匹配经费(元)" :value="amountUnitFormatter(projectData?.supportFunds)" isAmount />
  19. <CommonInfoRow label="自筹经费(元)" :value="amountUnitFormatter(projectData?.selfFunds)" isAmount />
  20. <CommonInfoRow label="总金额(元)"
  21. :value="amountUnitFormatter((Number(projectData?.contractFunds || 0) + Number(projectData?.approvedFunds || 0) + Number(projectData?.selfFunds || 0)))"
  22. isAmount />
  23. <CommonInfoRow label="承担单位排名"
  24. :value="projectData?.unitRank == '10' ? '第一单位' : (projectData?.unitRank == '20' ? '非第一单位' : '--')" />
  25. <CommonInfoRow label="研究类别" :value="projectData?.researchCategory" />
  26. <CommonInfoRow label="预期成果" :value="projectData?.expectedResults" />
  27. <CommonInfoRow label="备注" :value="projectData?.remark" :noBorder="true" />
  28. </CommonSection>
  29. </view>
  30. </template>
  31. <script setup lang="ts">
  32. import { useDict } from '@/hooks/useDict';
  33. import { formatWithComma } from '@/utils/format';
  34. import { formatDate } from '@/utils/date';
  35. import CommonSection from '@/components/ui/CommonSection.vue';
  36. import CommonInfoRow from '@/components/ui/CommonInfoRow.vue';
  37. const { getDictLabel } = useDict('sci_leader_type');
  38. /**
  39. * 自发类项目 立项信息展示组件
  40. */
  41. const props = defineProps<{
  42. /** 项目主数据详情 */
  43. projectData: any;
  44. }>();
  45. /**
  46. * 金额格式化处理
  47. */
  48. const amountUnitFormatter = (num: any) => {
  49. return formatWithComma(num);
  50. };
  51. </script>
  52. <style lang="scss" scoped>
  53. .setup-wrapper {
  54. /* 基础容器样式 */
  55. width: 100%;
  56. padding-bottom: 20px;
  57. }
  58. </style>