| | |
| | | const typeLabel = computed(() => getLabel(TENDER_TYPE_CELLTAG.labels, project.value?.tenderType)); |
| | | const isDraft = computed(() => project.value?.tenderStatus === TENDER_STATUS.DRAFT); |
| | | const isPublished = computed(() => project.value?.tenderStatus === TENDER_STATUS.PUBLISHED); |
| | | const isBidding = computed(() => project.value?.tenderStatus === TENDER_STATUS.BIDDING); |
| | | const isPublishedOrBidding = computed(() => { |
| | | const s = project.value?.tenderStatus; |
| | | return s === TENDER_STATUS.PUBLISHED || s === TENDER_STATUS.BIDDING; |
| | |
| | | </template> |
| | | <div class="flex items-center justify-between mb-3"> |
| | | <span class="text-xs text-gray-400">共 <b class="text-gray-600">{{ bidCount }}</b> 个投标</span> |
| | | <a-button v-if="isPublishedOrBidding || isDraft || isPriceComparing" type="primary" size="small" @click="bidForm = { tenderProjectId: projectId, supplierId: undefined!, bidNo: '' }; bidFormVisible = true"> |
| | | <a-button v-if="isBidding || isDraft || isPriceComparing" type="primary" size="small" @click="bidForm = { tenderProjectId: projectId, supplierId: undefined!, bidNo: '' }; bidFormVisible = true"> |
| | | <template #icon><IconifyIcon icon="ant-design:plus-outlined" /></template> |
| | | 新增投标 |
| | | </a-button> |