| | |
| | | </template> |
| | | |
| | | <script setup> |
| | | import { ref, reactive, onMounted } from 'vue' |
| | | import { ref, reactive, onMounted, getCurrentInstance } from 'vue' |
| | | import { ElMessage } from 'element-plus' |
| | | import { Download } from '@element-plus/icons-vue' |
| | | import PIMTable from '@/components/PIMTable/PIMTable.vue' |
| | | import { procurementBusinessSummaryListPage } from '@/api/procurementManagement/procurementReport' |
| | | import { productTreeList } from '@/api/basicData/product' |
| | | |
| | | const { proxy } = getCurrentInstance() |
| | | |
| | | // 响应式数据 |
| | | const loading = ref(false) |
| | |
| | | } |
| | | |
| | | const exportReport = () => { |
| | | ElMessage.success('导出功能开发中...') |
| | | const params = {} |
| | | |
| | | // 时间范围 |
| | | if (searchForm.dateRange && searchForm.dateRange.length === 2) { |
| | | params.entryDateStart = searchForm.dateRange[0] |
| | | params.entryDateEnd = searchForm.dateRange[1] |
| | | } |
| | | |
| | | // 产品类别 |
| | | if (searchForm.productCategory) { |
| | | const categoryName = findNodeLabelById(productOptions.value, searchForm.productCategory) |
| | | if (categoryName) { |
| | | params.productCategory = categoryName |
| | | } |
| | | } |
| | | |
| | | proxy.download("/procurementBusinessSummary/export", params, "采购业务汇总表.xlsx") |
| | | } |
| | | |
| | | |