优化财务相关功能

This commit is contained in:
lifenlong
2026-06-07 16:57:23 +08:00
parent 0da6ef99af
commit 734825ba9b
28 changed files with 999 additions and 27 deletions

View File

@@ -0,0 +1,15 @@
/**
* 触发浏览器下载 blob 响应
*/
export function downloadBlob(blob, filename) {
if (!blob) return;
const link = document.createElement("a");
link.style.display = "none";
const url = window.URL.createObjectURL(new Blob([blob]));
link.href = url;
link.download = filename;
document.body.appendChild(link);
link.click();
document.body.removeChild(link);
window.URL.revokeObjectURL(url);
}

View File

@@ -126,8 +126,6 @@ export function unixSellerBillStatus(status_code) {
return "已出账";
case "CHECK":
return "已对账";
case "EXAMINE":
return "已审核";
case "PAY":
return "已结算";
case "COMPLETE":