add:库存查看

This commit is contained in:
zhangzq
2024-12-11 22:27:50 +08:00
parent 2164847652
commit 5efa02c74a
12 changed files with 186 additions and 128 deletions

View File

@@ -386,3 +386,15 @@ export function downloadFile(obj, name, suffix) {
link.click()
document.body.removeChild(link)
}
export function downloadFile2(data, name) {
debugger
let blob = new Blob([data],{type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet; charset=utf-8'});
let url = window.URL.createObjectURL(blob);
let link = document.createElement('a');
link.style.display = 'none';
link.href = url;
link.setAttribute('download', name+'.xlsx');
document.body.appendChild(link);
link.click();
}