From 915983031664d94e1eee55f6d3a652205c3ef28f Mon Sep 17 00:00:00 2001
From: yyb <995253665@qq.com>
Date: 星期六, 18 四月 2026 15:24:39 +0800
Subject: [PATCH] 新增销售和采购订单扫码入库功能,包括合格和不合格入库的API接口及前端页面支持,优化相关描述信息

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

diff --git a/src/main.js b/src/main.js
new file mode 100644
index 0000000..ae84a56
--- /dev/null
+++ b/src/main.js
@@ -0,0 +1,45 @@
+import App from './App.vue'
+import plugins from './plugins'
+import store from './store'
+import uviewPlus from 'uview-plus'
+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, formatDateToYMD } from '@/utils/ruoyi'
+import {
+  calculateTaxExclusiveTotalPrice,
+} from "@/utils/summarizeTable.js";
+
+
+export function createApp() {
+  const app = createSSRApp(App)
+  app.use(store)
+  app.use(uviewPlus)
+  app.use(plugins)
+  // 娉ㄥ唽鍏ㄥ眬缁勪欢
+  setupGlobalComponents(app)
+
+  // #ifndef MP-WEIXIN
+  // 寰俊灏忕▼搴忎腑涓嶆敮鎸佽嚜瀹氫箟鎸囦护
+  directive(app)
+  // #endif
+
+  // 鍏ㄥ眬鏂规硶鎸傝浇
+  app.config.globalProperties.useDict = useDict
+  app.config.globalProperties.parseTime = parseTime
+  app.config.globalProperties.resetForm = resetForm
+  app.config.globalProperties.handleTree = handleTree
+  app.config.globalProperties.addDateRange = addDateRange
+  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