From 34d20fbf25427a76848bd1bf85f14c6e3d7ea1f0 Mon Sep 17 00:00:00 2001
From: quxin <592870522@qq.com>
Date: 星期五, 04 九月 2026 11:36:57 +0800
Subject: [PATCH] 修复: 生产领料后的退料应该是选择领料的记录,不是选择库存的记录(同时库存数据需要根据领料退料变动,比如库存100,领用80,然后领用80中退料30,库存应由原来的20变成50)
---
src/main.ts | 23 ++++++++++++++++-------
1 files changed, 16 insertions(+), 7 deletions(-)
diff --git a/src/main.ts b/src/main.ts
index dab2d7c..b692f75 100644
--- a/src/main.ts
+++ b/src/main.ts
@@ -3,6 +3,10 @@
import { overridesPreferences, preferencesExtension } from './preferences';
+declare const __APP_LOGO__: string;
+declare const __APP_FAVICON__: string;
+declare const __APP_NAME__: string;
+
/**
* 搴旂敤鍒濆鍖栧畬鎴愪箣鍚庡啀杩涜椤甸潰鍔犺浇娓叉煋
*/
@@ -20,16 +24,21 @@
overrides: overridesPreferences,
});
- // 閫氳繃鐜鍙橀噺寮哄埗瑕嗙洊鍏徃 logo 鍜� favicon锛岀粫杩囩紦瀛�
- const envLogo = import.meta.env.VITE_APP_LOGO;
- const envFavicon = import.meta.env.VITE_APP_FAVICON;
- if (envLogo) {
- preferencesManager.updatePreferences({ logo: { source: envLogo } });
+ // 寮哄埗瑕嗙洊鍏徃 logo 鍜� favicon锛岀粫杩� localStorage 缂撳瓨
+ if (__APP_LOGO__) {
+ preferencesManager.updatePreferences({ logo: { source: __APP_LOGO__ } });
}
- if (envFavicon) {
+ // 寮哄埗瑕嗙洊鍏徃鍚嶇О锛岀粫杩� localStorage 缂撳瓨
+ if (__APP_NAME__) {
+ preferencesManager.updatePreferences({
+ app: { name: __APP_NAME__ },
+ copyright: { companyName: __APP_NAME__ },
+ });
+ }
+ if (__APP_FAVICON__) {
const link = document.querySelector('link[rel="icon"]');
if (link) {
- link.setAttribute('href', envFavicon);
+ link.setAttribute('href', __APP_FAVICON__);
}
}
--
Gitblit v1.9.3