浏览代码

付费用户管理完成

yuhao 2 年之前
父节点
当前提交
8e23c81dbc

+ 5 - 3
src/pages/customerMan/details/index.vue

@@ -145,9 +145,9 @@
145
       <div class="right-top">
145
       <div class="right-top">
146
         <div class="right-top-data">
146
         <div class="right-top-data">
147
           <div class="lable">
147
           <div class="lable">
148
-            <div class="lable-title">
148
+            <div class="lable-title" v-if="userDetail.detection">
149
               <div>面诊标签</div>
149
               <div>面诊标签</div>
150
-              <div @click="goTestSkinDetials" v-if='userDetail.detection'>执行方案</div>
150
+              <div @click="goTestSkinDetials" v-if='userDetail.detection.id'>执行方案</div>
151
             </div>
151
             </div>
152
             <div class="problem">
152
             <div class="problem">
153
               <div class="problem-title">问题标签&nbsp;</div>
153
               <div class="problem-title">问题标签&nbsp;</div>
@@ -409,7 +409,8 @@ export default {
409
       this.$router.push({
409
       this.$router.push({
410
         path: "/testSkin/details",
410
         path: "/testSkin/details",
411
         query: {
411
         query: {
412
-          id: this.userDetail.detection.id
412
+          id: this.userDetail.detection.id,
413
+          isback:true
413
         }
414
         }
414
       });
415
       });
415
     },
416
     },
@@ -508,6 +509,7 @@ export default {
508
         query: {
509
         query: {
509
           id: this.id,
510
           id: this.id,
510
           activeName: activeName,
511
           activeName: activeName,
512
+          isback:true
511
         },
513
         },
512
       });
514
       });
513
     },
515
     },

+ 50 - 9
src/pages/customerMan/index.vue

@@ -32,7 +32,10 @@
32
         <i @click="openFilterPop" class="el-icon-s-operation"></i>
32
         <i @click="openFilterPop" class="el-icon-s-operation"></i>
33
       </div>
33
       </div>
34
       <!-- 筛选条件弹窗 -->
34
       <!-- 筛选条件弹窗 -->
35
-      <select-pop :visible.sync='dialogVisible'></select-pop>
35
+      <select-pop
36
+        :visible.sync="dialogVisible"
37
+        @saveSelectList="saveSelectList"
38
+      ></select-pop>
36
     </div>
39
     </div>
37
 
40
 
38
     <div class="user-list">
41
     <div class="user-list">
@@ -81,9 +84,9 @@
81
 
84
 
82
 <script>
85
 <script>
83
 import api from "../../server/home";
86
 import api from "../../server/home";
84
-import selectPop from './selectPop/index.vue'
87
+import selectPop from "./selectPop/index.vue";
85
 export default {
88
 export default {
86
-  components: {selectPop},
89
+  components: { selectPop },
87
   data() {
90
   data() {
88
     return {
91
     return {
89
       searchText: "",
92
       searchText: "",
@@ -105,31 +108,69 @@ export default {
105
       total: 0,
108
       total: 0,
106
       face: false, //未面诊用户开关
109
       face: false, //未面诊用户开关
107
       silence: false, //沉默用户开关
110
       silence: false, //沉默用户开关
108
-      dialogVisible:false // 控制筛选弹框
111
+      dialogVisible: false, // 控制筛选弹框
109
     };
112
     };
110
   },
113
   },
111
   computed: {},
114
   computed: {},
112
   watch: {},
115
   watch: {},
113
 
116
 
114
   methods: {
117
   methods: {
118
+    // 筛选其他条件
119
+    saveSelectList(
120
+      customerKey,
121
+      couponKey,
122
+      cardKey,
123
+      latelyKey,
124
+      superpositionNum,
125
+      StoredPrice,
126
+      transitionNum
127
+    ) {
128
+      this.getUserList(
129
+        customerKey,
130
+        couponKey,
131
+        cardKey,
132
+        latelyKey,
133
+        superpositionNum,
134
+        StoredPrice,
135
+        transitionNum
136
+      );
137
+    },
115
     // 筛选沉默用户
138
     // 筛选沉默用户
116
-    showSilence(e){
117
-      console.log(e);
139
+    showSilence(e) {
140
+      this.getUserList();
118
     },
141
     },
119
     // 筛选未面诊用户
142
     // 筛选未面诊用户
120
-    showFace(e){
121
-      console.log(e);
143
+    showFace(e) {
144
+      this.getUserList();
122
     },
145
     },
123
     // 打开筛选条件弹框
146
     // 打开筛选条件弹框
124
     openFilterPop() {
147
     openFilterPop() {
125
       this.dialogVisible = true;
148
       this.dialogVisible = true;
126
     },
149
     },
127
     // 获取订单列表
150
     // 获取订单列表
128
-    getUserList() {
151
+    getUserList(
152
+      customerKey,
153
+      couponKey,
154
+      cardKey,
155
+      latelyKey,
156
+      superpositionNum,
157
+      StoredPrice,
158
+      transitionNum
159
+    ) {
160
+      console.log(customerKey);
129
       let params = {
161
       let params = {
130
         page: this.currentPage1,
162
         page: this.currentPage1,
131
         limit: this.limit,
163
         limit: this.limit,
132
         keywords: this.searchText,
164
         keywords: this.searchText,
165
+        silence_user: this.silence ? 1 : 0, //沉默付费用户1是显示 0是不显示
166
+        face_user: this.face ? 1 : 0, //显示未面诊付费用户 1是显示 0是不显示
167
+        tag:customerKey,
168
+        coupon_days:couponKey,
169
+        card_days:cardKey,
170
+        buying_time:latelyKey,
171
+        project_add:superpositionNum,
172
+        balance_money:StoredPrice,
173
+        change_add:transitionNum
133
       };
174
       };
134
       api.getUserList(params).then((res) => {
175
       api.getUserList(params).then((res) => {
135
         if (res.code == 200) {
176
         if (res.code == 200) {

+ 4 - 4
src/pages/customerMan/myOrder/index.vue

@@ -302,13 +302,13 @@ type: "全额券" -->
302
                   </div>
302
                   </div>
303
                 </template>
303
                 </template>
304
               </el-table-column>
304
               </el-table-column>
305
-              <el-table-column prop="status" label="状态" show-overflow-tooltip>
305
+              <!-- <el-table-column prop="status" label="状态" show-overflow-tooltip>
306
                 <template slot-scope="scope">
306
                 <template slot-scope="scope">
307
                   <div>{{ scope.row.msg }}</div>
307
                   <div>{{ scope.row.msg }}</div>
308
                 </template>
308
                 </template>
309
-              </el-table-column>
309
+              </el-table-column> -->
310
               <!--  余额类型(记录类型,1充值,2充值赠送,3订单退款,5提现驳回,-1消费,-2提现冻结,10客服添加,-10客服扣除) -->
310
               <!--  余额类型(记录类型,1充值,2充值赠送,3订单退款,5提现驳回,-1消费,-2提现冻结,10客服添加,-10客服扣除) -->
311
-              <!-- <el-table-column prop="status" label="类型" show-overflow-tooltip>
311
+              <el-table-column prop="status" label="类型" show-overflow-tooltip>
312
                 <template slot-scope="scope">
312
                 <template slot-scope="scope">
313
                   <div>
313
                   <div>
314
                     {{
314
                     {{
@@ -332,7 +332,7 @@ type: "全额券" -->
332
                     }}
332
                     }}
333
                   </div>
333
                   </div>
334
                 </template>
334
                 </template>
335
-              </el-table-column> -->
335
+              </el-table-column>
336
             </el-table>
336
             </el-table>
337
             <div class="pagin">
337
             <div class="pagin">
338
               <el-pagination
338
               <el-pagination

+ 26 - 16
src/pages/customerMan/selectPop/index.vue

@@ -92,14 +92,14 @@
92
               size="mini"
92
               size="mini"
93
             ></el-input-number>
93
             ></el-input-number>
94
           </div>
94
           </div>
95
-          <div class="consumePrice">
95
+          <!-- <div class="consumePrice">
96
             <div class="consumePrice-title">总消费金额</div>
96
             <div class="consumePrice-title">总消费金额</div>
97
             <div class="consumePrice-content">
97
             <div class="consumePrice-content">
98
               <el-input v-model="minConsumePrice"></el-input>
98
               <el-input v-model="minConsumePrice"></el-input>
99
               <div>-</div>
99
               <div>-</div>
100
               <el-input v-model="maxConsumePrice"></el-input>
100
               <el-input v-model="maxConsumePrice"></el-input>
101
             </div>
101
             </div>
102
-          </div>
102
+          </div> -->
103
           <div class="StoredPrice">
103
           <div class="StoredPrice">
104
             <div class="StoredPrice-title">总储值金额</div>
104
             <div class="StoredPrice-title">总储值金额</div>
105
             <div class="StoredPrice-content">
105
             <div class="StoredPrice-content">
@@ -141,16 +141,19 @@ export default {
141
       couponSource: {
141
       couponSource: {
142
         name: "优惠券快过期付费用户",
142
         name: "优惠券快过期付费用户",
143
         title: ["3天", "5天", "7天", "15天"],
143
         title: ["3天", "5天", "7天", "15天"],
144
+        day: ["3", "5", "7", "15"],
144
       },
145
       },
145
 
146
 
146
       cardSource: {
147
       cardSource: {
147
         name: "次卡快过期付费用户",
148
         name: "次卡快过期付费用户",
148
         title: ["3天", "5天", "7天", "15天", "30天"],
149
         title: ["3天", "5天", "7天", "15天", "30天"],
150
+        day: ["3", "5", "7", "15", "30"],
149
       },
151
       },
150
 
152
 
151
       latelySource: {
153
       latelySource: {
152
         name: "距离最近消费时间",
154
         name: "距离最近消费时间",
153
         title: ["3天", "5天", "7天", "15天", "15天以上"],
155
         title: ["3天", "5天", "7天", "15天", "15天以上"],
156
+        day: ["3", "5", "7", "15", "16"],
154
       },
157
       },
155
       customerSelect: [], //客户来源下标
158
       customerSelect: [], //客户来源下标
156
       couponSelect: 99, //优惠券快过期付费用户下标
159
       couponSelect: 99, //优惠券快过期付费用户下标
@@ -163,11 +166,9 @@ export default {
163
       minStoredPricePrice: 0, //储值最小金额
166
       minStoredPricePrice: 0, //储值最小金额
164
       maxStoredPricePrice: "", //储值最大金额
167
       maxStoredPricePrice: "", //储值最大金额
165
       customerKey: [], //选择客户来源列表
168
       customerKey: [], //选择客户来源列表
166
-      conditionList: {
167
-        couponKey: "",
168
-        cardKey: "",
169
-        latelyKey: "",
170
-      },
169
+      couponKey: "", //优惠券快过期天数
170
+      cardKey: "", //此卡过期天数
171
+      latelyKey: "", //距离最近消费时间天数
171
     };
172
     };
172
   },
173
   },
173
   methods: {
174
   methods: {
@@ -178,12 +179,20 @@ export default {
178
     },
179
     },
179
     // 保存筛选条件
180
     // 保存筛选条件
180
     save() {
181
     save() {
181
-      let selectList = [];
182
-      selectList.push(this.conditionList.couponKey);
183
-      selectList.push(this.conditionList.cardKey);
184
-      selectList.push(this.conditionList.latelyKey);
185
-      console.log(selectList);
182
+      let StoredPrice = [];
183
+      StoredPrice.push(this.minStoredPricePrice);
184
+      StoredPrice.push(this.maxStoredPricePrice);
186
       this.$emit("update:visible", false);
185
       this.$emit("update:visible", false);
186
+      this.$emit(
187
+        "saveSelectList",
188
+        this.customerKey.length == 0 ? 0 : this.customerKey,
189
+        this.couponKey.length == 0 ? 0 : this.couponKey,
190
+        this.cardKey.length == 0 ? 0 : this.cardKey,
191
+        this.latelyKey.length == 0 ? 0 : this.latelyKey,
192
+        this.superpositionNum,
193
+        this.maxStoredPricePrice.length == 0 ? 0 : StoredPrice.toString(),
194
+        this.transitionNum
195
+      );
187
     },
196
     },
188
     // 关闭弹窗
197
     // 关闭弹窗
189
     closeFilterPop() {
198
     closeFilterPop() {
@@ -197,22 +206,23 @@ export default {
197
         return;
206
         return;
198
       }
207
       }
199
       this.customerSelect.push(index);
208
       this.customerSelect.push(index);
200
-      this.customerKey.push(item)
209
+      // 0 无1线下进店 2种子用户 3美团/大众 4抖音 5达人探店 6霸王餐 7老带新/转介绍,多个使用数组
210
+      this.customerKey.push(index + 1);
201
     },
211
     },
202
     // 选择优惠券快过期付费用户
212
     // 选择优惠券快过期付费用户
203
     couponFilter(item, index) {
213
     couponFilter(item, index) {
204
       this.couponSelect = index;
214
       this.couponSelect = index;
205
-      this.$set(this.conditionList, "couponKey", item);
215
+      this.couponKey = this.couponSource.day[index];
206
     },
216
     },
207
     // 选择此卡快过期下标
217
     // 选择此卡快过期下标
208
     cardFilter(item, index) {
218
     cardFilter(item, index) {
209
       this.cardSelect = index;
219
       this.cardSelect = index;
210
-      this.$set(this.conditionList, "cardKey", item);
220
+      this.cardKey = this.cardSource.day[index];
211
     },
221
     },
212
     // 选择距离最近消费时间
222
     // 选择距离最近消费时间
213
     latelyFilter(item, index) {
223
     latelyFilter(item, index) {
214
       this.latelySelect = index;
224
       this.latelySelect = index;
215
-      this.$set(this.conditionList, "latelyKey", item);
225
+      this.latelyKey = this.latelySource.day[index];
216
     },
226
     },
217
   },
227
   },
218
   watch: {
228
   watch: {