采购入库导出全部

This commit is contained in:
weiwei committed 2025-08-06 19:54:21 +08:00
1 parent 3d310eee9d
commit 8537d38910
2 files changed
+16 -4

No files matched your search

+2 -3
View File
@@ -17,13 +17,12 @@
<el-button circle icon="Download" @click="handleExport()" />
</el-tooltip>
<slot></slot>
<!-- 刷新功能 -->
<el-tooltip class="item" effect="dark" :content="$t('queryTree.refresh')" placement="top">
<el-button circle icon="Refresh" @click="handleRefresh()" />
</el-tooltip>
<!-- 插槽 -->
<slot></slot>
</el-row>
</div>
</template>
@@ -47,7 +47,11 @@
class="ml10 mr20"
style="float: right"
@queryTable="getDataList"
/>
>
<el-tooltip class="item" effect="dark" content="导出全部数据" placement="top">
<el-button circle icon="Download" @click="handleExportSummary" />
</el-tooltip>
</right-toolbar>
</div>
</el-row>
@@ -174,6 +178,15 @@ const exportExcel = () => {
downBlobFile("/supermarket/smErpInventoryRecords/export", Object.assign(state.queryForm, { ids: selectObjs }), "采购入库.xlsx")
}
// 全部数据导出excel
const handleExportSummary = () => {
downBlobFile(
"/supermarket/smErpInventoryRecords/exportSummary",
Object.assign(state.queryForm, { ids: selectObjs }),
"采购入库(全部).xlsx",
)
}
// 多选事件
const selectionChangHandle = (objs: { id: string }[]) => {
selectObjs.value = objs.map(({ id }) => id)