| | |
| | | const statusLabel = computed(() => getLabel(TENDER_STATUS_CELLTAG.labels, project.value?.tenderStatus)); |
| | | const statusColor = computed(() => TENDER_STATUS_COLORS[project.value?.tenderStatus!] || 'default'); |
| | | const typeLabel = computed(() => getLabel(TENDER_TYPE_CELLTAG.labels, project.value?.tenderType)); |
| | | const isAwarded = computed(() => project.value?.tenderStatus === TENDER_STATUS.AWARDED); |
| | | |
| | | const stepItems = [ |
| | | { title: '草稿', status: TENDER_STATUS.DRAFT }, |
| | |
| | | <a-space> |
| | | <span class="text-xs text-gray-400">共 <b class="text-gray-600">{{ materialList.length }}</b> 项,预估总金额 <b class="text-blue-500">{{ materialTotalAmount.toLocaleString() }}</b> 元</span> |
| | | </a-space> |
| | | <a-button type="primary" size="small" @click="handleAddMaterial"> |
| | | <a-button v-if="!isAwarded" type="primary" size="small" @click="handleAddMaterial"> |
| | | <template #icon><IconifyIcon icon="ant-design:plus-outlined" /></template> |
| | | 添加物料 |
| | | </a-button> |
| | |
| | | {{ record.estimatedPrice ? record.estimatedPrice.toLocaleString() : '-' }} |
| | | </template> |
| | | <template v-if="column.key === 'actions'"> |
| | | <a-space> |
| | | <a-space v-if="!isAwarded"> |
| | | <a-button size="small" type="link" @click="handleEditMaterial(record)"><IconifyIcon icon="ant-design:edit-outlined" />编辑</a-button> |
| | | <a-popconfirm title="确认删除该物料?" @confirm="handleDeleteMaterial(record.id)"> |
| | | <a-button size="small" type="link" danger><IconifyIcon icon="ant-design:delete-outlined" />删除</a-button> |