ProjectSetupHorizontal.vue 3.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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 === '10'" label="项目级别"
  11. :value="getDictLabel('sci_proj_type', projectData?.projectClass)" />
  12. <CommonInfoRow v-if="projectData?.isClinicalTrial === '20'" label="项目类别"
  13. :value="getDictLabel('sci_pjt_class', projectData?.projectClass)" />
  14. <CommonInfoRow label="签订时间" :value="projectData?.signDate ? formatDate(projectData.signDate) : '--'" />
  15. <CommonInfoRow label="院内合同编号" :value="projectData?.contractCode" />
  16. <CommonInfoRow label="项目时间"
  17. :value="formatDate(projectData?.startDate) + ' ~ ' + formatDate(projectData?.endDate)" />
  18. <CommonInfoRow label="承接科室" :value="projectData?.deptName" />
  19. <CommonInfoRow label="主要研究者" :value="projectData?.projectLeaderName" />
  20. <CommonInfoRow label="主要研究者电话" :value="projectData?.projectLeaderPhone" />
  21. <CommonInfoRow label="合同经费(元)" :value="amountUnitFormatter(projectData?.contractFunds)" isAmount />
  22. <CommonInfoRow label="批准经费(元)" :value="amountUnitFormatter(projectData?.approvedFunds)" isAmount />
  23. <CommonInfoRow label="匹配经费(元)" :value="amountUnitFormatter(projectData?.supportFunds)" isAmount />
  24. <CommonInfoRow label="自筹经费(元)" :value="amountUnitFormatter(projectData?.selfFunds)" isAmount />
  25. <CommonInfoRow label="总金额(元)"
  26. :value="amountUnitFormatter((Number(projectData?.contractFunds || 0) + Number(projectData?.approvedFunds || 0) + Number(projectData?.selfFunds || 0)))"
  27. isAmount />
  28. <CommonInfoRow label="承担单位排名"
  29. :value="projectData?.unitRank == '10' ? '第一单位' : (projectData?.unitRank == '20' ? '非第一单位' : '--')" />
  30. <CommonInfoRow v-if="['10', '1010', '1020'].includes(projectData?.isClinicalTrial)" label="招募人数"
  31. :value="projectData?.memberNum || '0'" noBorder />
  32. </CommonSection>
  33. </view>
  34. </template>
  35. <script setup lang="ts">
  36. import { useDict } from '@/hooks/useDict';
  37. import { formatDate } from '@/utils/date';
  38. import { formatWithComma } from '@/utils/format';
  39. import CommonSection from '@/components/ui/CommonSection.vue';
  40. import CommonInfoRow from '@/components/ui/CommonInfoRow.vue';
  41. const props = defineProps<{
  42. projectData: any;
  43. }>();
  44. const { getDictLabel } = useDict('sci_tripartite_type', 'sci_pjt_class', 'sci_proj_type', 'compType', 'project_company_type');
  45. const amountUnitFormatter = (num: any) => {
  46. return formatWithComma(num);
  47. };
  48. </script>
  49. <style lang="scss" scoped>
  50. .setup-wrapper {
  51. width: 100%;
  52. padding-bottom: 20px;
  53. }
  54. .party-card {
  55. background-color: #f7f9fc;
  56. border-radius: 12rpx;
  57. padding: 24rpx;
  58. margin-bottom: 20rpx;
  59. &:last-child {
  60. margin-bottom: 0;
  61. }
  62. .party-title {
  63. font-size: 28rpx;
  64. font-weight: bold;
  65. color: #1c9bfd;
  66. margin-bottom: 16rpx;
  67. border-bottom: 2rpx solid rgba(#1c9bfd, 0.1);
  68. padding-bottom: 12rpx;
  69. }
  70. }
  71. </style>