From 3d4355d8791c7e990377c7a2abc5ce238e752e91 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期一, 26 一月 2026 17:36:05 +0800
Subject: [PATCH] 进销存-升级 1.销售台账页面代码重构 2.发货台账页面联调 3.采购台账代码重构,采购模版添加修改和删除,逻辑完善 4.采购审批页面逻辑修改完善 5.采购台账、销售台账导入和下载模版修改

---
 src/components/SizeSelect/index.vue |   36 ++++++++++++------------------------
 1 files changed, 12 insertions(+), 24 deletions(-)

diff --git a/src/components/SizeSelect/index.vue b/src/components/SizeSelect/index.vue
index 289d4a0..dddb58a 100644
--- a/src/components/SizeSelect/index.vue
+++ b/src/components/SizeSelect/index.vue
@@ -16,36 +16,24 @@
 </template>
 
 <script setup>
-import { ElMessage } from 'element-plus'
+import useAppStore from "@/store/modules/app"
 
-const store = useStore();
-const size = computed(() => store.getters.size);
-const route = useRoute();
-const router = useRouter();
-const {proxy} = getCurrentInstance();
+const appStore = useAppStore()
+const size = computed(() => appStore.size)
+const route = useRoute()
+const router = useRouter()
+const { proxy } = getCurrentInstance()
 const sizeOptions = ref([
-  { label: '杈冨ぇ', value: 'large' },
-  { label: '榛樿', value: 'default' },
-  { label: '绋嶅皬', value: 'small' },
+  { label: "杈冨ぇ", value: "large" },
+  { label: "榛樿", value: "default" },
+  { label: "绋嶅皬", value: "small" },
 ])
 
-function refreshView() {
-  // In order to make the cached page re-rendered
-  store.dispatch('tagsView/delAllCachedViews', route)
-
-  const { fullPath } = route
-
-  nextTick(() => {
-    router.replace({
-      path: '/redirect' + fullPath
-    })
-  })
-}
 function handleSetSize(size) {
-  proxy.$modal.loading("姝e湪璁剧疆甯冨眬澶у皬锛岃绋嶅��...");
-  store.dispatch('app/setSize', size)
+  proxy.$modal.loading("姝e湪璁剧疆甯冨眬澶у皬锛岃绋嶅��...")
+  appStore.setSize(size)
   setTimeout("window.location.reload()", 1000)
-};
+}
 </script>
 
 <style lang='scss' scoped>

--
Gitblit v1.9.3