From 7a0790d8224db45a039bf33d0ef4e24ae879a243 Mon Sep 17 00:00:00 2001
From: zhangwencui <1064582902@qq.com>
Date: 星期二, 30 六月 2026 10:38:05 +0800
Subject: [PATCH] 采购退货重构,添加新增、删除功能;供应商管理新增修改删除功能

---
 src/main.js |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/main.js b/src/main.js
index b9b51f6..ae84a56 100644
--- a/src/main.js
+++ b/src/main.js
@@ -2,19 +2,17 @@
 import plugins from './plugins'
 import store from './store'
 import uviewPlus from 'uview-plus'
-import Vant from 'vant';
-import 'vant/lib/index.css';
+import { setupGlobalComponents } from './components'
 
 
 import { createSSRApp } from 'vue'
 import directive from './directive' // directive
 
 import { useDict } from '@/utils/dict'
-import { parseTime, resetForm, addDateRange, handleTree, selectDictLabel, selectDictLabels } from '@/utils/ruoyi'
+import { parseTime, resetForm, addDateRange, handleTree, selectDictLabel, selectDictLabels, formatDateToYMD } from '@/utils/ruoyi'
 import {
   calculateTaxExclusiveTotalPrice,
 } from "@/utils/summarizeTable.js";
-
 
 
 export function createApp() {
@@ -22,7 +20,8 @@
   app.use(store)
   app.use(uviewPlus)
   app.use(plugins)
-  app.use(Vant)
+  // 娉ㄥ唽鍏ㄥ眬缁勪欢
+  setupGlobalComponents(app)
 
   // #ifndef MP-WEIXIN
   // 寰俊灏忕▼搴忎腑涓嶆敮鎸佽嚜瀹氫箟鎸囦护
@@ -38,6 +37,7 @@
   app.config.globalProperties.selectDictLabel = selectDictLabel
   app.config.globalProperties.selectDictLabels = selectDictLabels
   app.config.globalProperties.calculateTaxExclusiveTotalPrice = calculateTaxExclusiveTotalPrice;
+  app.config.globalProperties.formatDateToYMD = formatDateToYMD;
 
   return {
     app

--
Gitblit v1.9.3