Browse Source

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

yuantianjiao 6 years ago
parent
commit
1d862092a6
1 changed files with 159 additions and 1 deletions
  1. 159
    1
      src/pages/system/dataStatistics/goodsOrderList/index.vue

+ 159
- 1
src/pages/system/dataStatistics/goodsOrderList/index.vue View File

@@ -1,16 +1,163 @@
1 1
 <template>
2 2
   <div class="subPage">
3
-    1
3
+    <div class="system-table-search">
4
+      <div class="flex-h">
5
+        <ul class="searchFilterLine" style="white-space: normal;">
6
+          <li>
7
+            <el-select v-model="CaseId" placeholder="请选择案场">
8
+              <el-option
9
+                v-for="item in cases"
10
+                :key="item.CaseId"
11
+                :label="item.CaseName"
12
+                :value="item.CaseId">
13
+              </el-option>
14
+            </el-select>
15
+          </li>
16
+          <li>
17
+            <el-select v-model="postData.type" placeholder="请选择下单用户类型">
18
+              <el-option
19
+                v-for="item in typeList"
20
+                :key="item.CaseId"
21
+                :label="item.CaseName"
22
+                :value="item.CaseId">
23
+              </el-option>
24
+            </el-select>
25
+          </li>
26
+          <li>
27
+            <el-select v-model="postData.status" placeholder="请选择订单状态">
28
+              <el-option
29
+                v-for="item in statusList"
30
+                :key="item.CaseId"
31
+                :label="item.CaseName"
32
+                :value="item.CaseId">
33
+              </el-option>
34
+            </el-select>
35
+          </li>
36
+          <li style="white-space: nowrap;">
37
+            <span>有下单时间:</span>
38
+            <el-date-picker
39
+              v-model="postData.startDate"
40
+              type="date"
41
+              placeholder="选择起始日期">
42
+            </el-date-picker>
43
+            <span>至</span>
44
+            <el-date-picker
45
+              v-model="postData.endDate"
46
+              type="date"
47
+              placeholder="选择截止日期">
48
+            </el-date-picker>
49
+          </li>
50
+        </ul>
51
+      </div>
52
+      <div class="flex-h">
53
+        <div class="flex-item flex-h"></div>
54
+        <el-button
55
+          size="mini"
56
+          type="primary" @click="search">搜索</el-button>
57
+        <el-button
58
+          size="mini"
59
+          type="success" @click="search">导出Excel</el-button>
60
+      </div>
61
+      <div class="moreFilter"></div>
62
+    </div>
63
+    <div class="system-table-box">
64
+      <el-table
65
+        :data="currentList"
66
+        stripe
67
+        style="width: 100%">
68
+        <el-table-column
69
+          prop="CaseName"
70
+          label="所属案场">
71
+        </el-table-column>
72
+        <el-table-column
73
+          prop="Name"
74
+          label="卡券名称">
75
+        </el-table-column>
76
+        <el-table-column
77
+          prop="GoodsList"
78
+          label="使用商品">
79
+        </el-table-column>
80
+        <el-table-column
81
+          prop="GetType"
82
+          label="获取方式">
83
+        </el-table-column>
84
+        <el-table-column
85
+          prop="NickName"
86
+          label="微信昵称">
87
+        </el-table-column>
88
+        <el-table-column
89
+          prop="Phone"
90
+          label="手机号">
91
+        </el-table-column>
92
+        <el-table-column
93
+          prop="SalerName"
94
+          label="销售">
95
+        </el-table-column>
96
+        <el-table-column
97
+          prop="EndDate"
98
+          label="有效期">
99
+        </el-table-column>
100
+        <el-table-column
101
+          prop="GetDate"
102
+          label="获取时间">
103
+        </el-table-column>
104
+        <el-table-column
105
+          prop="CheckDate"
106
+          label="核销时间">
107
+        </el-table-column>
108
+        <el-table-column
109
+          prop="Status"
110
+          label="状态">
111
+        </el-table-column>
112
+      </el-table>
113
+    </div>
114
+    <el-pagination
115
+      @current-change="handleCurrentChange"
116
+      :current-page.sync="postData.page"
117
+      :page-size="postData.pagesize"
118
+      layout="prev, pager, next, jumper"
119
+      :total="total">
120
+    </el-pagination>
4 121
   </div>
5 122
 </template>
6 123
 
7 124
 <script>
125
+import { mapState } from 'vuex'
8 126
 import tableSearch from '@/components/tableSearch/index'
9 127
 
10 128
 export default {
11 129
   name: '',
12 130
   data () {
13 131
     return {
132
+      total: 0,
133
+      postData: { // 表格搜索条件
134
+        phone: '', // 手机号
135
+        status: '', // 状态
136
+        caseid: '', // 案场id
137
+        type: '', // 获取方式
138
+        startDate: '', // 起始日期
139
+        endDate: '', // 截止日期
140
+        name: '', // 卡券名称
141
+        page: 1, // 当前页码
142
+        pagesize: 10, // 请求数据量
143
+      },
144
+      currentList: [],
145
+      typeList: [],
146
+      statusList: [],
147
+    }
148
+  },
149
+  computed: {
150
+    ...mapState({
151
+      cases: x => x.app.cases.list,
152
+      defaultCaseId: x => x.app.cases.default
153
+    }),
154
+    CaseId: {
155
+      get () {
156
+        return this.postData.caseid || this.defaultCaseId
157
+      },
158
+      set (val) {
159
+        this.postData.caseid = val
160
+      }
14 161
     }
15 162
   },
16 163
   components: {
@@ -21,6 +168,12 @@ export default {
21 168
     })
22 169
   },
23 170
   methods: {
171
+    search () { // 搜索
172
+      // 1
173
+    },
174
+    handleCurrentChange (val) { // 跳转到分页
175
+      // this.getList()
176
+    },
24 177
   }
25 178
 }
26 179
 </script>
@@ -28,4 +181,9 @@ export default {
28 181
 <!-- Add "scoped" attribute to limit CSS to this component only -->
29 182
 <style lang="scss" scoped>
30 183
 @import "page.scss";
184
+.searchFilterLine{
185
+  >li{
186
+    margin-bottom: 20px;
187
+  }
188
+}
31 189
 </style>