Просмотр исходного кода

Merge branch 'dev' of http://git.ycjcjy.com/SpaceOfCheng/admin into dev

许成详 6 лет назад
Родитель
Сommit
d95c8746be

+ 1
- 0
package.json Просмотреть файл

@@ -81,6 +81,7 @@
81 81
     "style-loader": "^0.22.0",
82 82
     "uglifyjs-webpack-plugin": "^1.1.1",
83 83
     "url-loader": "^0.5.8",
84
+    "vue-fullcalendar": "^1.0.9",
84 85
     "vue-jest": "^1.0.2",
85 86
     "vue-loader": "^13.3.0",
86 87
     "vue-style-loader": "^3.0.1",

Двоичные данные
src/assets/logo.png Просмотреть файл


+ 19
- 0
src/pages/system/newOrder/index.vue Просмотреть файл

@@ -0,0 +1,19 @@
1
+<template>
2
+  <div class="mainPage">
3
+    <router-view></router-view>
4
+  </div>
5
+</template>
6
+
7
+<script>
8
+export default {
9
+  name: '',
10
+  data () {
11
+    return {}
12
+  },
13
+  components: {}
14
+}
15
+</script>
16
+
17
+<!-- Add "scoped" attribute to limit CSS to this component only -->
18
+<style lang="scss" scoped>
19
+</style>

+ 107
- 0
src/pages/system/newOrder/newOrderList/index.vue Просмотреть файл

@@ -0,0 +1,107 @@
1
+<template>
2
+  <div class="subPage">
3
+    <div class="system-table-search">
4
+      <div class="flex-h">
5
+        <div class="flex-item flex-h">
6
+          <el-button size="mini" type="danger">营业</el-button>
7
+        </div>
8
+      </div>
9
+      <div class="moreFilter"></div>
10
+    </div>
11
+    <div class="order-list-box">
12
+      <div v-for="(item,index) in list" :key="index">
13
+        <div class="print-area">
14
+          <div style="padding:25px 20px 5px;border-bottom:2px solid #cccccc;">
15
+            <i class="iconfont icon-yinchenglogo" style="font-size:70px;color:red;position: relative;bottom: 20px;margin-right:10px;"></i>
16
+            <div style="display:inline-block;">
17
+              <span style="display:block;font-size:20px;font-weight:700;">A区域1号桌</span>
18
+              <span style="display:block;margin-top:10px">下单时间:21:30:39</span>
19
+              <span style="display:block;margin-top:10px">已等待:<span style="color:red;font-weight:700;">30:29</span></span>
20
+            </div>
21
+          </div>
22
+          <div style="padding:10px 20px 5px;border-bottom:1px solid #cccccc;">
23
+            <div>卡布奇诺</div>
24
+            <div style="margin-top:8px;">
25
+              <span style="display:inline-block;width:75%;text-align:left;color:#cccccc">热</span>
26
+              <span style="display:inline-block;width:20%;text-align:right">x 1</span>
27
+            </div>
28
+            <div style="margin-top:8px;">
29
+              <span style="display:inline-block;width:75%;text-align:left;color:#cccccc">冷</span>
30
+              <span style="display:inline-block;width:20%;text-align:right">x 2</span>
31
+            </div>
32
+          </div>
33
+          <div style="padding:10px 20px 5px;border-bottom:1px solid #cccccc;">
34
+            <div>卡布奇诺</div>
35
+            <div style="margin-top:8px;">
36
+              <span style="display:inline-block;width:75%;text-align:left;color:#cccccc">热</span>
37
+              <span style="display:inline-block;width:20%;text-align:right">x 1</span>
38
+            </div>
39
+            <div style="margin-top:8px;">
40
+              <span style="display:inline-block;width:75%;text-align:left;color:#cccccc">冷</span>
41
+              <span style="display:inline-block;width:20%;text-align:right">x 2</span>
42
+            </div>
43
+          </div>
44
+          <div style="padding:10px 20px;border-bottom:1px solid #cccccc">备注:请赶快制作</div>
45
+          <div style="padding:10px 20px;">下单人:xxxxx</div>
46
+        </div>
47
+        <div class="btns">
48
+          <span>取消</span>
49
+          <span>确定</span>
50
+        </div>
51
+      </div>
52
+    </div>
53
+  </div>
54
+</template>
55
+
56
+<script>
57
+export default {
58
+  name: '',
59
+  data () {
60
+    return {
61
+      total: 0,
62
+      postData: { // 表格搜索条件
63
+        phone: '', // 手机号
64
+        page: 1, // 当前页码
65
+        pagesize: 10, // 请求数据量
66
+      },
67
+      currentList: [],
68
+      list: [1, 2, 3, 4, 5, 1, 2, 3, 4, 5]
69
+    }
70
+  },
71
+  components: {
72
+  },
73
+  mounted () {
74
+    this.$nextTick(function () {
75
+      this.getList()
76
+    })
77
+  },
78
+  methods: {
79
+    FormatDate (date) {
80
+      return this.toolClass.dateFormat(date)
81
+    },
82
+    handleCurrentChange (val) {
83
+      this.getList()
84
+    },
85
+    searchList (key) { // 搜索列表
86
+      this.postData.phone = key
87
+      this.postData.page = 1
88
+      this.getList()
89
+    },
90
+    getList () {
91
+      this.$ajax(this.$api.dataStatistics.getCustomerList.url, {
92
+        method: this.$api.dataStatistics.getCustomerList.method,
93
+        queryData: this.postData
94
+      }).then(res => {
95
+        this.currentList = res.list
96
+        this.postData.page = res.page
97
+        this.total = res.pagenum
98
+      })
99
+    }
100
+  }
101
+}
102
+</script>
103
+
104
+<!-- Add "scoped" attribute to limit CSS to this component only -->
105
+<style lang="scss" scoped>
106
+@import "page.scss";
107
+</style>

+ 33
- 0
src/pages/system/newOrder/newOrderList/page.scss Просмотреть файл

@@ -0,0 +1,33 @@
1
+.order-list-box{
2
+  padding: 50px;
3
+  border-radius: 3px;
4
+  overflow: scroll;
5
+  width: 95%;
6
+  height: 100%;
7
+  >div{
8
+    display: inline-block;
9
+    width:300px;
10
+    height:400px;
11
+    margin:10px;
12
+    box-shadow: 0px 2px 10px 0px rgba(193, 204, 217, 0.5);
13
+  }
14
+  .btns{
15
+    display: flex;
16
+    justify-content: center;
17
+    align-items: center;
18
+    span{
19
+      padding: 5px 25px;
20
+      border-radius: 8px;
21
+      display: block;
22
+    }
23
+    span:nth-of-type(1){
24
+      color: red;
25
+      border:1px solid red;
26
+      margin-right: 10px;
27
+    }
28
+    span:nth-of-type(2){
29
+      color: #fff;
30
+      background-color: red;
31
+    }
32
+  }
33
+}

+ 13
- 0
src/pages/system/page.js Просмотреть файл

@@ -78,6 +78,9 @@ import phoneVerificationList from './verificationManager/phoneVerification/verif
78 78
 import dataStatistics from './dataStatistics/index' // 数据统计
79 79
 import frontEndUserList from './dataStatistics/frontEndUserList/index' // 课程管理
80 80
 
81
+import newOrder from './newOrder/index' // 商品订单系统
82
+import newOrderList from './newOrder/newOrderList/index' // 新订单列表
83
+
81 84
 export default {
82 85
   router: [
83 86
     {
@@ -414,6 +417,16 @@ export default {
414 417
             children: []
415 418
           }]
416 419
         }]
420
+      }, { // 商品订单系统
421
+        path: 'newOrder',
422
+        name: 'newOrder',
423
+        component: newOrder,
424
+        children: [{ // 新订单列表
425
+          path: 'newOrderList',
426
+          name: 'newOrderList',
427
+          component: newOrderList,
428
+          children: []
429
+        }]
417 430
       }, { // 数据统计
418 431
         path: 'dataStatistics',
419 432
         name: 'dataStatistics',