diff --git a/src/components/user/statistics.vue b/src/components/user/statistics.vue index 2f5f0d5..47696e4 100644 --- a/src/components/user/statistics.vue +++ b/src/components/user/statistics.vue @@ -149,7 +149,7 @@ + width="50%"> + + - 取 消 @@ -185,16 +186,15 @@ title="消费记录" :visible.sync="cost_fall" v-loading="cost_loading" - width="50%"> + width="70%"> + - - - - + + @@ -276,7 +276,8 @@ export default { label: '本月消费' }], sell_detail: {}, - sell_detail_month: null + sell_detail_month: null, + temps: null } }, created () { @@ -333,6 +334,7 @@ export default { }) }, click_follow_status (row) { + this.temps = row this.clickOk = false this.follow_status_change_fall = true this.set_follow_status.status = row.follow_status @@ -350,6 +352,7 @@ export default { }) return } + this.temps.follow_status = this.setStatus(this.set_follow_status.status) this.clickOk = true this.$api.post(this.$api.phpURL + 'manager/UserFollow/changeFolowStatus', {data: this.set_follow_status}).then(res => { this.follow_status_change_fall = false @@ -377,6 +380,43 @@ export default { this.account_loading = false }) }, + setStatus (status) { + switch (status) { + case 1: + return '待跟进-未购买' + + case 2: + return '跟进超时-未购买' + + case 3: + return '待跟进-消费减少' + + case 4: + return '跟进超时-消费减少' + + case 5: + return '流失-需求减少' + + case 6: + return '流失-暂时不用' + + case 7: + return '流失-价格问题' + + case 8: + return '流失-产品问题' + + case 9: + return '流失-也可自定义' + + case 10: + return '高意向客户' + + case 11: + return '已完成' + + } + }, dataExport () { this.$api.getDownloadFile('/course/v1/order/ExportUserConsumeStatistics', this.searchModel) }