|
@@ -31,10 +31,10 @@
|
|
|
:searchConfig="searchConfig"
|
|
|
highlight-current-row
|
|
|
:action-list="[
|
|
|
- // {
|
|
|
- // text: '添加仓库',
|
|
|
- // action: () => clickModal(),
|
|
|
- // },
|
|
|
+ {
|
|
|
+ text: '导出Excel',
|
|
|
+ action: () => deriveExcel(),
|
|
|
+ },
|
|
|
]"
|
|
|
@get-list="getList"
|
|
|
@clickReset="clickReset">
|
|
@@ -363,6 +363,11 @@ const emit = defineEmits(["selectBOM"]);
|
|
|
const clickSelect = (item) => {
|
|
|
emit("selectBOM", item);
|
|
|
};
|
|
|
+const deriveExcel = () => {
|
|
|
+ proxy.getFile("/inventory/exportExcel", sourceList.value.pagination).then((res) => {
|
|
|
+ proxy.downloadFile(res, "库存.xlsx");
|
|
|
+ });
|
|
|
+};
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|