ProjectSetupVertical.vue 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <template>
  2. <view class="setup-wrapper">
  3. <CommonSection title="立项概览" isFirst>
  4. <CommonInfoRow label="项目名称" :value="projectData?.projectName" />
  5. <CommonInfoRow label="项目编号" :value="projectData?.projectCode" />
  6. <CommonInfoRow label="项目分类" :value="projectData?.projectClazzName" />
  7. <CommonInfoRow label="项目级别" :value="getDictLabel('sci_pjt_level', projectData?.projectLevel)" />
  8. <CommonInfoRow label="项目来源" :value="projectData?.projectSource" />
  9. <CommonInfoRow label="项目执行期"
  10. :value="formatDate(projectData?.planStartDate) + ' ~ ' + formatDate(projectData?.planEndDate)" />
  11. <CommonInfoRow label="研究类型" :value="getDictLabel('sci_pjt_type', projectData?.studyType)" />
  12. <CommonInfoRow label="统计年度" :value="formatDate(projectData?.statisticalYear, 'YYYY')" />
  13. <CommonInfoRow label="项目负责人/合作完成人" :value="projectData?.projectLeaderName" />
  14. <CommonInfoRow label="所属科室" :value="projectData?.deptName" />
  15. <CommonInfoRow label="负责人电话" :value="projectData?.projectLeaderPhone" />
  16. <CommonInfoRow label="负责人邮箱" :value="projectData?.projectLeaderMail" />
  17. <CommonInfoRow label="是否中医药"
  18. :value="projectData?.isMedicine == '10' ? '是' : (projectData?.isMedicine == '20' ? '否' : '--')" />
  19. <CommonInfoRow label="包干制项目"
  20. :value="projectData?.isLumpSum == '10' ? '是' : (projectData?.isLumpSum == '20' ? '否' : '--')" />
  21. <CommonInfoRow label="获批时间" :value="projectData?.approvalDate ? formatDate(projectData.approvalDate) : '--'" />
  22. <CommonInfoRow label="获批编号" :value="projectData?.projectNo" />
  23. <CommonInfoRow label="合同经费(元)" :value="amountUnitFormatter(projectData?.contractFunds)" isAmount />
  24. <CommonInfoRow label="批准经费(元)" :value="amountUnitFormatter(projectData?.approvedFunds)" isAmount />
  25. <CommonInfoRow label="匹配经费(元)" :value="amountUnitFormatter(projectData?.supportFunds)" isAmount />
  26. <CommonInfoRow label="自筹经费(元)" :value="amountUnitFormatter(projectData?.selfFunds)" isAmount />
  27. <CommonInfoRow label="总经费(元)" :value="amountUnitFormatter(projectData?.totalAmount)" isAmount />
  28. <CommonInfoRow label="单位排名"
  29. :value="projectData?.unitRank == '10' ? '第一单位' : (projectData?.unitRank == '20' ? '非第一单位' : '--')" noBorder />
  30. </CommonSection>
  31. </view>
  32. </template>
  33. <script setup lang="ts">
  34. import { useDict } from '@/hooks/useDict';
  35. import { formatDate } from '@/utils/date';
  36. import { formatWithComma } from '@/utils/format';
  37. import CommonSection from '@/components/ui/CommonSection.vue';
  38. import CommonInfoRow from '@/components/ui/CommonInfoRow.vue';
  39. const props = defineProps<{
  40. projectData: any;
  41. }>();
  42. const { getDictLabel } = useDict('sci_pjt_level', 'sci_pjt_type');
  43. const amountUnitFormatter = (num: any) => {
  44. return formatWithComma(num);
  45. };
  46. </script>
  47. <style lang="scss" scoped>
  48. .setup-wrapper {
  49. width: 100%;
  50. padding-bottom: 20px;
  51. }
  52. </style>