ProjectSetupHorizontal.vue 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <template>
  2. <view class="setup-wrapper">
  3. <!-- 立项概览 -->
  4. <CommonSection title="立项概览" isFirst>
  5. <CommonInfoRow label="院内项目编号" :value="projectData?.projectNo" />
  6. <CommonInfoRow label="项目名称" :value="projectData?.projectName" />
  7. <CommonInfoRow label="研究类型"
  8. :value="projectData?.isClinicalTrial === '10' ? '临床试验' : (projectData?.isClinicalTrial === '20' ? '横向其他' : (projectData?.isClinicalTrial === '1010' ? 'GCP' : (projectData?.isClinicalTrial === '1020' ? '非GCP' : '--')))" />
  9. <CommonInfoRow label="项目来源" :value="projectData?.projectSource" />
  10. <CommonInfoRow v-if="projectData?.isClinicalTrial === '20'" label="项目类别"
  11. :value="getDictLabel('sci_pjt_class', projectData?.projectClass)" />
  12. <CommonInfoRow label="签订时间" :value="projectData?.signDate ? formatDate(projectData.signDate) : '--'" />
  13. <CommonInfoRow label="院内合同编号" :value="projectData?.contractCode" />
  14. <CommonInfoRow label="项目时间"
  15. :value="formatDate(projectData?.startDate) + ' ~ ' + formatDate(projectData?.endDate)" />
  16. <CommonInfoRow label="承接科室" :value="projectData?.deptName" />
  17. <CommonInfoRow label="主要研究者" :value="projectData?.projectLeaderName" />
  18. <CommonInfoRow label="主要研究者电话" :value="projectData?.projectLeaderPhone" />
  19. <CommonInfoRow label="合同经费(元)" :value="amountUnitFormatter(projectData?.contractFunds)" isAmount />
  20. <CommonInfoRow label="批准经费(元)" :value="amountUnitFormatter(projectData?.approvedFunds)" isAmount />
  21. <CommonInfoRow label="匹配经费(元)" :value="amountUnitFormatter(projectData?.supportFunds)" isAmount />
  22. <CommonInfoRow label="自筹经费(元)" :value="amountUnitFormatter(projectData?.selfFunds)" isAmount />
  23. <CommonInfoRow label="总金额(元)"
  24. :value="amountUnitFormatter((Number(projectData?.contractFunds || 0) + Number(projectData?.approvedFunds || 0) + Number(projectData?.selfFunds || 0)))"
  25. isAmount />
  26. <CommonInfoRow label="承担单位排名"
  27. :value="projectData?.unitRank == '10' ? '第一单位' : (projectData?.unitRank == '20' ? '非第一单位' : '--')" />
  28. <CommonInfoRow v-if="['10', '1010', '1020'].includes(projectData?.isClinicalTrial)" label="招募人数"
  29. :value="projectData?.memberNum || '0'" 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_tripartite_type', 'sci_pjt_class', 'sci_proj_type', 'compType', 'project_company_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. .party-card {
  53. background-color: #f7f9fc;
  54. border-radius: 12rpx;
  55. padding: 24rpx;
  56. margin-bottom: 20rpx;
  57. &:last-child {
  58. margin-bottom: 0;
  59. }
  60. .party-title {
  61. font-size: 28rpx;
  62. font-weight: bold;
  63. color: #1c9bfd;
  64. margin-bottom: 16rpx;
  65. border-bottom: 2rpx solid rgba(#1c9bfd, 0.1);
  66. padding-bottom: 12rpx;
  67. }
  68. }
  69. </style>