| | |
| | | createAward, deleteAward, getAward, getAwardByProject, approveAward, generatePurchaseOrder, |
| | | confirmTenderProject, |
| | | } from '#/api/srm/tender'; |
| | | import { getSupplierSimpleList } from '#/api/srm/supplier'; |
| | | import { getSupplierList } from '#/api/srm/supplier'; |
| | | import { getItemSimpleList } from '#/api/mdm/item'; |
| | | import type { MdmItemApi } from '#/api/mdm/item'; |
| | | import { |
| | |
| | | onMounted(async () => { |
| | | const [items, suppliers] = await Promise.all([ |
| | | getItemSimpleList(), |
| | | getSupplierSimpleList(), |
| | | getSupplierList(), |
| | | ]); |
| | | mdmItemList.value = items; |
| | | supplierList.value = suppliers; |
| | |
| | | </div> |
| | | |
| | | <!-- 招标说明 / 资质要求 --> |
| | | <template v-if="project.tenderDesc || project.qualificationRequirements"> |
| | | <template |
| | | v-if="project.tenderDesc || project.qualificationRequirements || (project.attachmentList && project.attachmentList.length)" |
| | | > |
| | | <a-divider class="!my-2" /> |
| | | <a-collapse :bordered="false" ghost expand-icon-position="end"> |
| | | <a-collapse-panel v-if="project.tenderDesc" key="desc" header="招标说明"> |
| | | <p class="text-gray-500 text-xs whitespace-pre-wrap">{{ project.tenderDesc }}</p> |
| | | </a-collapse-panel> |
| | | <a-collapse-panel v-if="project.qualificationRequirements" key="req" header="资质要求"> |
| | | <p class="text-gray-500 text-xs whitespace-pre-wrap">{{ project.qualificationRequirements }}</p> |
| | | <a-collapse-panel |
| | | v-if="project.qualificationRequirements || (project.attachmentList && project.attachmentList.length)" |
| | | key="req" |
| | | header="资质要求" |
| | | > |
| | | <p v-if="project.qualificationRequirements" class="text-gray-500 text-xs whitespace-pre-wrap">{{ project.qualificationRequirements }}</p> |
| | | <div v-if="project.attachmentList && project.attachmentList.length" class="mt-2 flex flex-col gap-1"> |
| | | <a |
| | | v-for="file in project.attachmentList" |
| | | :key="file.id" |
| | | :href="file.url" |
| | | target="_blank" |
| | | rel="noopener noreferrer" |
| | | class="text-blue-500 text-xs hover:underline" |
| | | > |
| | | {{ file.name || '附件-' + file.id }} |
| | | </a> |
| | | </div> |
| | | </a-collapse-panel> |
| | | </a-collapse> |
| | | </template> |