From c9c208ff1fe0f050c46f81704a7d56f191e39d32 Mon Sep 17 00:00:00 2001
From: yyb <995253665@qq.com>
Date: 星期三, 22 四月 2026 10:03:21 +0800
Subject: [PATCH] 通过添加产品名称显示逻辑并优化行显示条件,来增强销售订单的打印功能。引入了产品名称的备用机制,并更新 renderRows 函数以根据产品名称的变化有条件地显示产品行。

---
 src/utils/dict.js |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/utils/dict.js b/src/utils/dict.js
index 40d0691..a6db068 100644
--- a/src/utils/dict.js
+++ b/src/utils/dict.js
@@ -5,20 +5,20 @@
  * 鑾峰彇瀛楀吀鏁版嵁
  */
 export function useDict(...args) {
-  const res = ref({});
+  const res = ref({})
   return (() => {
     args.forEach((dictType, index) => {
-      res.value[dictType] = [];
-      const dicts = useDictStore().getDict(dictType);
+      res.value[dictType] = []
+      const dicts = useDictStore().getDict(dictType)
       if (dicts) {
-        res.value[dictType] = dicts;
+        res.value[dictType] = dicts
       } else {
         getDicts(dictType).then(resp => {
           res.value[dictType] = resp.data.map(p => ({ label: p.dictLabel, value: p.dictValue, elTagType: p.listClass, elTagClass: p.cssClass }))
-          useDictStore().setDict(dictType, res.value[dictType]);
+          useDictStore().setDict(dictType, res.value[dictType])
         })
       }
     })
-    return toRefs(res.value);
+    return toRefs(res.value)
   })()
 }
\ No newline at end of file

--
Gitblit v1.9.3