|
|
@@ -3,33 +3,51 @@
|
|
|
<div>
|
|
|
<el-tabs v-model="activeName" @tab-click="handleClick">
|
|
|
<el-tab-pane label="客户经理评级" name="grade">
|
|
|
- <el-table :data="changeData" border style="width: 100%">
|
|
|
+ <el-table :data="gradeData" border style="width: 100%">
|
|
|
<el-table-column
|
|
|
prop=""
|
|
|
- label="购买方">
|
|
|
+ label="评价者">
|
|
|
<template slot-scope="scope">
|
|
|
<span class="lblue point">
|
|
|
- <a target="_blank" :href="scope.row.host+'/wo/'+scope.row.uid">{{ scope.row.uid_name }}</a>
|
|
|
+ <a target="_blank" :href="scope.row.host+'/wo/'+scope.row.user_id">{{
|
|
|
+ scope.row.user_id_name + '(' + scope.row.user_id + ')'
|
|
|
+ }}</a>
|
|
|
</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column
|
|
|
prop=""
|
|
|
- label="被查询方">
|
|
|
+ label="被评价者">
|
|
|
<template slot-scope="scope">
|
|
|
<span class="lblue point">
|
|
|
- <a target="_blank" :href="scope.row.host+'/wo/'+scope.row.target_uid">{{ scope.row.target_uid_name }}</a>
|
|
|
+ <a target="_blank" :href="scope.row.host+'/wo/'+scope.row.manager_uid">{{
|
|
|
+ scope.row.manager_uid_name + '(' + scope.row.manager_uid + ')'
|
|
|
+ }}</a>
|
|
|
</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column prop="pay_time" label="付款时间">
|
|
|
+ <el-table-column
|
|
|
+ prop=""
|
|
|
+ label="评价等级">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span class="lblue point">
|
|
|
+ <el-rate :value="scope.row.grade" disabled></el-rate>
|
|
|
+ </span>
|
|
|
+ <span>
|
|
|
+ {{scope.row.grade_name}}
|
|
|
+ </span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="create_time" label="评价标签">
|
|
|
<template slot-scope="scope">
|
|
|
- <span>{{ formatDate(scope.row.pay_time, 'Y-m-d H:i') }}</span>
|
|
|
+ <span v-for="item in scope.row.labels" style="margin-left: 5px">
|
|
|
+ <el-tag size="mini" type="info">{{item}}</el-tag>
|
|
|
+ </span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="购买来源">
|
|
|
+ <el-table-column prop="create_time" label="评价时间">
|
|
|
<template slot-scope="scope">
|
|
|
- <span>{{ (scope.row.source_type || '') + '-' + (scope.row.version || '') }}</span>
|
|
|
+ <span>{{ formatDate(scope.row.create_time, 'Y-m-d H:i') }}</span>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
@@ -90,7 +108,7 @@
|
|
|
<template slot-scope="scope">
|
|
|
<el-button type="text" @click="onRemark(scope.row.id)">添加备注</el-button>
|
|
|
<el-button type="text" v-if="scope.row.status === '0'" @click="onUpdateManager(scope.row)">立即处理</el-button>
|
|
|
- <el-button type="text" v-else>已处理</el-button>
|
|
|
+ <el-button type="text" v-else disabled>已处理</el-button>
|
|
|
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
@@ -152,7 +170,7 @@ export default {
|
|
|
if (this.activeName === 'change') {
|
|
|
this.getChangeList();
|
|
|
} else if (this.activeName === 'grade') {
|
|
|
-
|
|
|
+ this.getGradeList();
|
|
|
}
|
|
|
},
|
|
|
handleClick(tab, event) {
|
|
|
@@ -170,6 +188,17 @@ export default {
|
|
|
this.total = res.data.total * 1;
|
|
|
}
|
|
|
},
|
|
|
+ async getGradeList() {
|
|
|
+ const page = this.page;
|
|
|
+ const data = {
|
|
|
+ page
|
|
|
+ };
|
|
|
+ let res = await this.$post("/api/admin/accountManager/getGradeList", data);
|
|
|
+ if (res && res.status === 1) {
|
|
|
+ this.gradeData = res.data.list || [];
|
|
|
+ this.total = res.data.total * 1;
|
|
|
+ }
|
|
|
+ },
|
|
|
onRemark(id) {
|
|
|
this.remarkData.id = id;
|
|
|
this.remarkModel = true;
|
|
|
@@ -179,13 +208,14 @@ export default {
|
|
|
if (this.remarkData.content === '' || this.remarkData.id === '0') {
|
|
|
this.$message.error('请输入内容')
|
|
|
this.loading = false
|
|
|
+ return false
|
|
|
}
|
|
|
let data = {content: this.remarkData.content, id: this.remarkData.id}
|
|
|
let res = await this.$post("/api/admin/accountManager/saveRemark", data);
|
|
|
if (res && res.status === 1) {
|
|
|
this.$message.success('备注成功')
|
|
|
- this.remarkModel = false;
|
|
|
- this.getData();
|
|
|
+ this.remarkModel = false
|
|
|
+ this.getData()
|
|
|
}
|
|
|
this.loading = false
|
|
|
},
|