Selaa lähdekoodia

feat:复制售后旧版本

chenjiaxin 2 kuukautta sitten
vanhempi
commit
71b3e01cd8
3 muutettua tiedostoa jossa 84 lisäystä ja 32 poistoa
  1. 7 5
      src/router/index.js
  2. 50 0
      src/router/modules/refund-old.js
  3. 27 27
      vue.config.js

+ 7 - 5
src/router/index.js

@@ -83,6 +83,7 @@ import logRouter from "./modules/log";
 import orderRouter from "./modules/order";
 import inventoryRouter from "./modules/inventory";
 import refundRouter from "./modules/refund";
+import refundRouterOld from "./modules/refund-old";
 import onTrialRouter from "./modules/onTrial";
 import basicConfigRouter from "./modules/basicConfig";
 import storageChannelRouter from "@/router/modules/storage";
@@ -93,6 +94,7 @@ export const asyncRoutes = [
   sysRouter,
   orderRouter,
   refundRouter,
+  refundRouterOld,
   inventoryRouter,
   onTrialRouter,
   basicConfigRouter,
@@ -101,11 +103,11 @@ export const asyncRoutes = [
 ];
 
 /*export default new Router({
-	// mode: 'history', //后端支持可开
-	scrollBehavior: () => ({
-		y: 0
-	}),
-	routes: constantRoutes
+  // mode: 'history', //后端支持可开
+  scrollBehavior: () => ({
+    y: 0
+  }),
+  routes: constantRoutes
 })*/
 
 const createRouter = () =>

+ 50 - 0
src/router/modules/refund-old.js

@@ -0,0 +1,50 @@
+/** When your routing table is too long, you can split it into small modules **/
+
+import Layout from "@/layout";
+
+const refundRouter = {
+  path: "/refund-old",
+  component: Layout,
+  redirect: "/refund/refundList",
+  name: "afterSales-Old",
+  meta: { title: "afterSales-Old", icon: "refund" },
+  children: [
+    {
+      path: "refundList",
+      component: () => import("@/views/oms/refund/refundList"),
+      name: "refundList",
+      meta: { title: "refundManagement" }
+    },
+    {
+      path: "refundCwList",
+      component: () => import("@/views/oms/refund/refundCwList"),
+      name: "refundCwList",
+      meta: { title: "financialAudit" }
+    },
+    {
+      path: "returnList",
+      component: () => import("@/views/oms/refund/returnDetailList.vue"),
+      name: "returnList",
+      meta: { title: "returnManagement" }
+    },
+    {
+      path: "refundReason",
+      component: () => import("@/views/oms/refund/refundReason.vue"),
+      name: "refundReason",
+      meta: { title: "refundReasons" }
+    },
+    {
+      path: "autoRefund",
+      component: () => import("@/views/oms/refund/autoRefund.vue"),
+      name: "autoRefund",
+      meta: { title: "自动退款配置" }
+    },
+    {
+      path: "shippingFeeRule",
+      component: () => import("@/views/oms/refund/shippingFeeRule.vue"),
+      name: "shippingFeeRule",
+      meta: { title: "slFreightRules" }
+    }
+  ]
+};
+export default refundRouter;

+ 27 - 27
vue.config.js

@@ -27,34 +27,34 @@ module.exports = {
     },
     public: "0.0.0.0:9527", //可以实现热部署
     proxy: {
-      [process.env.VUE_APP_OAUTH_API]: {
-        target: `http://localhost:19090/sso`,
-        changeOrigin: true,
-        // logLevel: 'debug', //打印日志
-        pathRewrite: {
-          ['^' + process.env.VUE_APP_OAUTH_API]: ''
-        }
-      },
-      [process.env.VUE_APP_PIM_API]: {
-        target: `http://localhost:18080/pim`,
-        changeOrigin: true,
-        // logLevel: 'debug', //打印日志
-        pathRewrite: {
-          ['^' + process.env.VUE_APP_PIM_API]: ''
-        }
-      },
-      [process.env.VUE_APP_OMS_API]: {
-        target: `http://localhost:18081/oms`,
-        changeOrigin: true,
-        // logLevel: 'debug', //打印日志
-        pathRewrite: {
-          ['^' + process.env.VUE_APP_OMS_API]: ''
-        }
-      }
-      // "/": {
-      //   target: "https://testfoms.gloria.com.cn",
-      //   changeOrigin: true
+      // [process.env.VUE_APP_OAUTH_API]: {
+      //   target: `http://localhost:19090/sso`,
+      //   changeOrigin: true,
+      //   // logLevel: 'debug', //打印日志
+      //   pathRewrite: {
+      //     ['^' + process.env.VUE_APP_OAUTH_API]: ''
+      //   }
+      // },
+      // [process.env.VUE_APP_PIM_API]: {
+      //   target: `http://localhost:18080/pim`,
+      //   changeOrigin: true,
+      //   // logLevel: 'debug', //打印日志
+      //   pathRewrite: {
+      //     ['^' + process.env.VUE_APP_PIM_API]: ''
+      //   }
       // },
+      // [process.env.VUE_APP_OMS_API]: {
+      //   target: `http://localhost:18081/oms`,
+      //   changeOrigin: true,
+      //   // logLevel: 'debug', //打印日志
+      //   pathRewrite: {
+      //     ['^' + process.env.VUE_APP_OMS_API]: ''
+      //   }
+      // }
+      "/": {
+        target: "https://testfoms.gloria.com.cn",
+        changeOrigin: true
+      },
       //http://10.41.3.152:18081  http://10.41.3.65:19090
       // [process.env.VUE_APP_OAUTH_API]: {
       //   target: `http://10.41.3.65:19090/sso`,