瀏覽代碼

付费用户管理完成

yuhao 2 年之前
父節點
當前提交
8e23c81dbc

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

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

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

@@ -32,7 +32,10 @@
32 32
         <i @click="openFilterPop" class="el-icon-s-operation"></i>
33 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 39
     </div>
37 40
 
38 41
     <div class="user-list">
@@ -81,9 +84,9 @@
81 84
 
82 85
 <script>
83 86
 import api from "../../server/home";
84
-import selectPop from './selectPop/index.vue'
87
+import selectPop from "./selectPop/index.vue";
85 88
 export default {
86
-  components: {selectPop},
89
+  components: { selectPop },
87 90
   data() {
88 91
     return {
89 92
       searchText: "",
@@ -105,31 +108,69 @@ export default {
105 108
       total: 0,
106 109
       face: false, //未面诊用户开关
107 110
       silence: false, //沉默用户开关
108
-      dialogVisible:false // 控制筛选弹框
111
+      dialogVisible: false, // 控制筛选弹框
109 112
     };
110 113
   },
111 114
   computed: {},
112 115
   watch: {},
113 116
 
114 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 147
     openFilterPop() {
125 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 161
       let params = {
130 162
         page: this.currentPage1,
131 163
         limit: this.limit,
132 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 175
       api.getUserList(params).then((res) => {
135 176
         if (res.code == 200) {

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

@@ -302,13 +302,13 @@ type: "全额券" -->
302 302
                   </div>
303 303
                 </template>
304 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 306
                 <template slot-scope="scope">
307 307
                   <div>{{ scope.row.msg }}</div>
308 308
                 </template>
309
-              </el-table-column>
309
+              </el-table-column> -->
310 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 312
                 <template slot-scope="scope">
313 313
                   <div>
314 314
                     {{
@@ -332,7 +332,7 @@ type: "全额券" -->
332 332
                     }}
333 333
                   </div>
334 334
                 </template>
335
-              </el-table-column> -->
335
+              </el-table-column>
336 336
             </el-table>
337 337
             <div class="pagin">
338 338
               <el-pagination

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

@@ -92,14 +92,14 @@
92 92
               size="mini"
93 93
             ></el-input-number>
94 94
           </div>
95
-          <div class="consumePrice">
95
+          <!-- <div class="consumePrice">
96 96
             <div class="consumePrice-title">总消费金额</div>
97 97
             <div class="consumePrice-content">
98 98
               <el-input v-model="minConsumePrice"></el-input>
99 99
               <div>-</div>
100 100
               <el-input v-model="maxConsumePrice"></el-input>
101 101
             </div>
102
-          </div>
102
+          </div> -->
103 103
           <div class="StoredPrice">
104 104
             <div class="StoredPrice-title">总储值金额</div>
105 105
             <div class="StoredPrice-content">
@@ -141,16 +141,19 @@ export default {
141 141
       couponSource: {
142 142
         name: "优惠券快过期付费用户",
143 143
         title: ["3天", "5天", "7天", "15天"],
144
+        day: ["3", "5", "7", "15"],
144 145
       },
145 146
 
146 147
       cardSource: {
147 148
         name: "次卡快过期付费用户",
148 149
         title: ["3天", "5天", "7天", "15天", "30天"],
150
+        day: ["3", "5", "7", "15", "30"],
149 151
       },
150 152
 
151 153
       latelySource: {
152 154
         name: "距离最近消费时间",
153 155
         title: ["3天", "5天", "7天", "15天", "15天以上"],
156
+        day: ["3", "5", "7", "15", "16"],
154 157
       },
155 158
       customerSelect: [], //客户来源下标
156 159
       couponSelect: 99, //优惠券快过期付费用户下标
@@ -163,11 +166,9 @@ export default {
163 166
       minStoredPricePrice: 0, //储值最小金额
164 167
       maxStoredPricePrice: "", //储值最大金额
165 168
       customerKey: [], //选择客户来源列表
166
-      conditionList: {
167
-        couponKey: "",
168
-        cardKey: "",
169
-        latelyKey: "",
170
-      },
169
+      couponKey: "", //优惠券快过期天数
170
+      cardKey: "", //此卡过期天数
171
+      latelyKey: "", //距离最近消费时间天数
171 172
     };
172 173
   },
173 174
   methods: {
@@ -178,12 +179,20 @@ export default {
178 179
     },
179 180
     // 保存筛选条件
180 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 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 198
     closeFilterPop() {
@@ -197,22 +206,23 @@ export default {
197 206
         return;
198 207
       }
199 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 213
     couponFilter(item, index) {
204 214
       this.couponSelect = index;
205
-      this.$set(this.conditionList, "couponKey", item);
215
+      this.couponKey = this.couponSource.day[index];
206 216
     },
207 217
     // 选择此卡快过期下标
208 218
     cardFilter(item, index) {
209 219
       this.cardSelect = index;
210
-      this.$set(this.conditionList, "cardKey", item);
220
+      this.cardKey = this.cardSource.day[index];
211 221
     },
212 222
     // 选择距离最近消费时间
213 223
     latelyFilter(item, index) {
214 224
       this.latelySelect = index;
215
-      this.$set(this.conditionList, "latelyKey", item);
225
+      this.latelyKey = this.latelySource.day[index];
216 226
     },
217 227
   },
218 228
   watch: {