fubin 2 лет назад
Родитель
Сommit
00853a680d

+ 107 - 51
src/router/routers.js

@@ -82,11 +82,11 @@ let menu = [
         path: '',
         name: '系统管理',
         component: parentView,
-        flgRight:true,
+        flgRight: true,
         meta: {
           title: '系统管理',
           notCache: true,
-          flgRight:true,
+          flgRight: true,
         },
         children: [
           {
@@ -96,7 +96,7 @@ let menu = [
             meta: {
               title: '部门管理',
               notCache: false,
-              flgRight:true,
+              flgRight: true,
             },
           },
           {
@@ -106,7 +106,7 @@ let menu = [
             meta: {
               title: '角色管理',
               notCache: false,
-              flgRight:true,
+              flgRight: true,
             },
           },
           {
@@ -116,7 +116,7 @@ let menu = [
             meta: {
               title: '员工管理',
               notCache: false,
-              flgRight:true,
+              flgRight: true,
             },
           },
           {
@@ -126,7 +126,7 @@ let menu = [
             meta: {
               title: '系统参数',
               notCache: false,
-              flgRight:true,
+              flgRight: true,
             },
           },
           {
@@ -136,7 +136,7 @@ let menu = [
             meta: {
               title: '基础资料',
               notCache: false,
-              flgRight:true,
+              flgRight: true,
             },
           },
         ]
@@ -145,13 +145,13 @@ let menu = [
         path: '',
         name: '商品资料',
         component: parentView,
-        flgRight:true,
+        flgRight: true,
         meta: {
           title: '商品资料',
           notCache: true,
-          flgRight:true,
+          flgRight: true,
         },
-        children:[
+        children: [
           {
             path: '/core/goodsAttr/index',
             name: '商品属性',
@@ -159,7 +159,7 @@ let menu = [
             meta: {
               title: '商品属性',
               notCache: false,
-              flgRight:true,
+              flgRight: true,
             },
           },
           {
@@ -169,7 +169,7 @@ let menu = [
             meta: {
               title: '商品档案',
               notCache: false,
-              flgRight:true,
+              flgRight: true,
             },
           },
           {
@@ -180,7 +180,7 @@ let menu = [
               title: '新建商品档案',
               hideInMenu: true,
               notCache: false,
-              flgRight:false,
+              flgRight: false,
             },
           },
           {
@@ -191,7 +191,7 @@ let menu = [
               title: '编辑商品档案',
               hideInMenu: true,
               notCache: false,
-              flgRight:false,
+              flgRight: false,
             },
           },
         ]
@@ -200,13 +200,13 @@ let menu = [
         path: '',
         name: '客户管理',
         component: parentView,
-        flgRight:true,
+        flgRight: true,
         meta: {
           title: '客户管理',
           notCache: true,
-          flgRight:true,
+          flgRight: true,
         },
-        children:[
+        children: [
           {
             path: '/core/customer/index',
             name: '客户资料',
@@ -214,7 +214,7 @@ let menu = [
             meta: {
               title: '客户资料',
               notCache: false,
-              flgRight:true,
+              flgRight: true,
             },
           },
           {
@@ -225,7 +225,7 @@ let menu = [
               title: '新建客户资料',
               hideInMenu: true,
               notCache: false,
-              flgRight:false,
+              flgRight: false,
             },
           },
           {
@@ -236,7 +236,7 @@ let menu = [
               title: '编辑客户资料',
               hideInMenu: true,
               notCache: false,
-              flgRight:false,
+              flgRight: false,
             },
           },
           {
@@ -246,7 +246,7 @@ let menu = [
             meta: {
               title: '客户跟进',
               notCache: false,
-              flgRight:true,
+              flgRight: true,
             },
           },
         ]
@@ -261,7 +261,7 @@ let menu = [
       title: '采购管理',
       notCache: true
     },
-    children:[
+    children: [
       {
         path: '',
         name: '基础数据',
@@ -280,7 +280,7 @@ let menu = [
             meta: {
               title: '供应商',
               notCache: false,
-              flgRight:true,
+              flgRight: true,
             },
           },
         ]
@@ -303,7 +303,7 @@ let menu = [
             meta: {
               title: '采购订单',
               notCache: false,
-              flgRight:true,
+              flgRight: true,
             },
           },
           {
@@ -314,7 +314,7 @@ let menu = [
               title: '新建采购订单',
               hideInMenu: true,
               notCache: false,
-              flgRight:false,
+              flgRight: false,
             },
           },
           {
@@ -325,7 +325,7 @@ let menu = [
               title: '编辑采购订单',
               hideInMenu: true,
               notCache: false,
-              flgRight:false,
+              flgRight: false,
             },
           },
           {
@@ -335,7 +335,7 @@ let menu = [
             meta: {
               title: '采购退货',
               notCache: false,
-              flgRight:true,
+              flgRight: true,
             },
           },
           {
@@ -345,7 +345,7 @@ let menu = [
             meta: {
               title: '采购入库',
               notCache: false,
-              flgRight:true,
+              flgRight: true,
             },
           },
           {
@@ -356,7 +356,7 @@ let menu = [
               title: '入库办理',
               hideInMenu: true,
               notCache: false,
-              flgRight:false,
+              flgRight: false,
             },
           },
           {
@@ -366,7 +366,7 @@ let menu = [
             meta: {
               title: '以销定采',
               notCache: false,
-              flgRight:true,
+              flgRight: true,
             },
           },
         ]
@@ -375,37 +375,58 @@ let menu = [
   },
   {
     path: '',
-    name: '账务管理',
+    name: '销售管理',
     component: Main,
     meta: {
-      title: '账务管理',
+      title: '销售管理',
       notCache: true
     },
-    children:[
+    children: [
       {
         path: '',
-        name: '资金管理',
+        name: '销售单据',
         component: parentView,
         flgRight: true,
         meta: {
-          title: '资金管理',
+          title: '销售单据',
           notCache: true,
           flgRight: true,
         },
         children: [
           {
-            path: '/fin/fundAccount/index',
-            name: '资金账户',
-            component: () => import('@/view/fin/fundAccount/index.vue'),
+            path: '/sale/order/index',
+            name: '销售订单',
+            component: () => import('@/view/sale/order/index.vue'),
             meta: {
-              title: '资金账户',
+              title: '销售订单',
+              notCache: false,
+              flgRight: true,
+            },
+          },
+          {
+            path: '/sale/order/add',
+            name: '销售订单-新建',
+            component: () => import('@/view/sale/order/add.vue'),
+            meta: {
+              title: '新建销售订单',
+              hideInMenu: true,
+              notCache: false,
+              flgRight: false,
+            },
+          },
+          {
+            path: '/sale/order/edit',
+            name: '销售订单-编辑',
+            component: () => import('@/view/sale/order/edit.vue'),
+            meta: {
+              title: '编辑销售订单',
+              hideInMenu: true,
               notCache: false,
-              flgRight:true,
+              flgRight: false,
             },
           },
         ]
       },
-
     ]
   },
   {
@@ -416,7 +437,7 @@ let menu = [
       title: '存货管理',
       notCache: true
     },
-    children:[
+    children: [
       {
         path: '',
         name: '库存管理',
@@ -435,7 +456,7 @@ let menu = [
             meta: {
               title: '库存查询',
               notCache: false,
-              flgRight:true,
+              flgRight: true,
             },
           },
           {
@@ -445,7 +466,7 @@ let menu = [
             meta: {
               title: '入库办理',
               notCache: false,
-              flgRight:true,
+              flgRight: true,
             },
           },
           {
@@ -456,7 +477,7 @@ let menu = [
               title: '新建其他入库',
               hideInMenu: true,
               notCache: false,
-              flgRight:false,
+              flgRight: false,
             },
           },
           {
@@ -467,7 +488,7 @@ let menu = [
               title: '编辑其他入库',
               hideInMenu: true,
               notCache: false,
-              flgRight:false,
+              flgRight: false,
             },
           },
           {
@@ -477,7 +498,7 @@ let menu = [
             meta: {
               title: '出库办理',
               notCache: false,
-              flgRight:true,
+              flgRight: true,
             },
           },
           {
@@ -488,7 +509,7 @@ let menu = [
               title: '新建其他出库',
               hideInMenu: true,
               notCache: false,
-              flgRight:false,
+              flgRight: false,
             },
           },
           {
@@ -499,7 +520,7 @@ let menu = [
               title: '编辑其他出库',
               hideInMenu: true,
               notCache: false,
-              flgRight:false,
+              flgRight: false,
             },
           },
         ]
@@ -522,7 +543,7 @@ let menu = [
             meta: {
               title: '库区调整',
               notCache: false,
-              flgRight:true,
+              flgRight: true,
             },
           },
           {
@@ -532,11 +553,46 @@ let menu = [
             meta: {
               title: '批号调整',
               notCache: false,
-              flgRight:true,
+              flgRight: true,
+            },
+          },
+        ]
+      },
+    ]
+  },
+  {
+    path: '',
+    name: '账务管理',
+    component: Main,
+    meta: {
+      title: '账务管理',
+      notCache: true
+    },
+    children: [
+      {
+        path: '',
+        name: '资金管理',
+        component: parentView,
+        flgRight: true,
+        meta: {
+          title: '资金管理',
+          notCache: true,
+          flgRight: true,
+        },
+        children: [
+          {
+            path: '/fin/fundAccount/index',
+            name: '资金账户',
+            component: () => import('@/view/fin/fundAccount/index.vue'),
+            meta: {
+              title: '资金账户',
+              notCache: false,
+              flgRight: true,
             },
           },
         ]
       },
+
     ]
   },
   {

+ 18 - 0
src/view/sale/order/add.vue

@@ -0,0 +1,18 @@
+<template>
+  <CommonForm type="add" ></CommonForm>
+</template>
+
+<script>
+import CommonForm from './form'
+
+export default {
+  name: 'order-add',
+  components:{
+    CommonForm
+  },
+}
+</script>
+
+<style scoped>
+
+</style>

+ 18 - 0
src/view/sale/order/edit.vue

@@ -0,0 +1,18 @@
+<template>
+  <CommonForm type="edit" ></CommonForm>
+</template>
+
+<script>
+import CommonForm from './form'
+
+export default {
+  name: 'order-edit',
+  components:{
+    CommonForm
+  }
+}
+</script>
+
+<style scoped>
+
+</style>

+ 13 - 0
src/view/sale/order/form.vue

@@ -0,0 +1,13 @@
+<template>
+
+</template>
+
+<script>
+export default {
+  name: "index"
+}
+</script>
+
+<style scoped>
+
+</style>

+ 13 - 0
src/view/sale/order/index.vue

@@ -0,0 +1,13 @@
+<template>
+
+</template>
+
+<script>
+export default {
+  name: "index"
+}
+</script>
+
+<style scoped>
+
+</style>