-
时间:
+
时间:
录音类型:
@@ -107,20 +109,30 @@
-
标注顾问:
-
+
+ 标记客户:
+
接待时长:
-
+
到访次数:
-
+
筛选相关:
- 筛选
- 清空筛选条件
+ 清空筛选条件
-
-
+
+
@@ -186,20 +212,30 @@
-
+
+
+ {{
+ row.recording == 0
+ ? "没有录音"
+ : row.recording == 1
+ ? "部分录音"
+ : "完整录音"
+ }}
+
-
+
+
+ {{ row.markAdvisor == 0 ? "已标记" : "未标记" }}
+
-
+
-
- {{row.fraction||'0'}}%
-
-
-
+ {{ row.fraction || "0" }}%
+
@@ -215,7 +251,7 @@
@current-change="handleCurrentChange"
:current-page="currentPage"
:page-sizes="[10, 20, 30, 40]"
- :page-size="10"
+ :page-size="size"
layout="total, sizes, prev, pager, next, jumper"
:total="total"
>
@@ -234,6 +270,7 @@ export default {
houseList: [],
options: [],
keywordsList: [],
+ accountList: [],
recordingList: [
{
value: "0",
@@ -289,6 +326,10 @@ export default {
},
],
options5: [
+ {
+ value: null,
+ label: "全部",
+ },
{
value: "1",
label: "已标注",
@@ -297,13 +338,9 @@ export default {
value: "2",
label: "未标注",
},
- {
- value: "3",
- label: "全部",
- },
],
currentPage: 1,
- size: "",
+ size: 10,
total: 10,
value: "",
input: "",
@@ -312,19 +349,21 @@ export default {
type: "0",
searchForm: {
name: "",
- keywordsId: "",
- recording:'',
- startWorking: "",
- endWorking: "",
+ keywordsId: [],
+ recording: "",
+ markAdvisor: null,
+ recDurationInterval: "",
+ visitRecord: "",
+ staDate: "",
+ endDate: "",
houseType: "",
- dateType: 0,
- houseId: "",
- agentName: "",
- operationalPeople: "",
+ dateType: "0",
+ projectId: "",
},
};
},
mounted() {
+ this.tabtimetap(0)
// 获取楼盘列表
this.zkhousePage();
},
@@ -334,35 +373,59 @@ export default {
let obj = {
current: this.currentPage,
size: this.size,
+ type: 1,
...this.searchForm,
};
- this.$api.api.findbypage(obj).then((res) => {
- // console.log(res)
- this.tableData = res.data.records;
- this.total = res.data.total;
- });
+ obj.keywordIds = obj.keywordsId.join(",");
+ (obj.dateType = this.searchForm.staDate
+ ? null
+ : this.searchForm.dateType),
+ this.$api.api.findbypage(obj).then((res) => {
+ // console.log(res)
+ this.tableData = res.data.records;
+ this.total = res.data.total;
+ });
+ },
+ clearScreen() {
+ this.currentPage = 1;
+ this.searchForm = {
+ name: "",
+ keywordsId: [],
+ recording: "",
+ markAdvisor: null,
+ recDurationInterval: "",
+ visitRecord: "",
+ staDate: "",
+ endDate: "",
+ houseType: "",
+ dateType: "0",
+ projectId: this.houseList[0].id,
+ };
+ this.findbypage();
},
houseChange() {
this.findbypage();
this.findKeywords();
+ // 获取置业顾问列表
+ this.findUserListByHouseId();
},
timeChange(e) {
- this.searchForm.startWorking = e[0];
- this.searchForm.endWorking = e[1];
+ this.searchForm.staDate = e[0];
+ this.searchForm.endDate = e[1];
+ this.houseChange();
},
- screen(){
- this.size=1
+ screen() {
+ this.currentPage = 1;
+ console.log(this.searchForm);
this.findbypage();
},
findKeywords() {
this.$api.api
.findKeywords({
- dateType: this.searchForm.startWorking
- ? null
- : this.searchForm.dateType,
- statDateStart: this.searchForm.startWorking,
- statDateEnd: this.searchForm.endWorking,
- houseId: this.searchForm.houseId,
+ dateType: this.searchForm.staDate ? null : this.searchForm.dateType,
+ statDateStart: this.searchForm.staDate,
+ statDateEnd: this.searchForm.endDate,
+ projectId: this.searchForm.projectId,
type: this.type,
})
.then((res) => {
@@ -378,13 +441,24 @@ export default {
.then((res) => {
// console.log(res)
this.houseList = res.data;
- this.searchForm.houseId = res.data[0].id;
+ this.searchForm.projectId = res.data[0].id;
// 获取接待记录列表
this.findbypage();
// 获取客户意向
this.findKeywords();
+ // 获取置业顾问列表
+ this.findUserListByHouseId();
});
},
+ // 置业顾问列表
+ async findUserListByHouseId() {
+ let result = await this.$api.api.findUserListByHouseId({
+ orgType: localStorage.getItem("orgType"),
+ projectId: this.searchForm.projectId,
+ });
+ console.log(result);
+ this.accountList = result.data;
+ },
handleSizeChange(val) {
console.log(`每页 ${val} 条`);
this.size = val;
@@ -392,11 +466,58 @@ export default {
},
handleCurrentChange(val) {
console.log(`当前页: ${val}`);
- his.currentPage = val;
+ this.currentPage = val;
this.findbypage();
},
tabtimetap(idx) {
+ this.searchForm.staDate = "";
+ this.searchForm.endDate = "";
+ // this.$set(this, "time", null);
this.searchForm.dateType = idx;
+ let num = 24 * 3600 * 1000;
+ // 获取当前时间戳转换为日期格式
+ if (idx == 0) {
+ num = 24 * 3600 * 1000 * 0;
+ }
+ if (idx == 1) {
+ num = 24 * 3600 * 1000 * 1;
+ }
+ if (idx == 2) {
+ num = 24 * 3600 * 1000 * 7;
+ }
+
+ this.time = [
+ this.timestampToTime(new Date().getTime() - num),
+ this.timestampToTime(new Date().getTime()),
+ ];
+
+ },
+ timestampToTime(timestamp) {
+ var date = new Date(timestamp); //时间戳为10位需*1000,时间戳为13位的话不需乘1000
+ // var date = new Date(timestamp * 1000);//时间戳为10位需*1000,时间戳为13位的话不需乘1000
+
+ var yyyy = date.getFullYear() + "-";
+
+ var MM =
+ (date.getMonth() + 1 < 10
+ ? "0" + (date.getMonth() + 1)
+ : date.getMonth() + 1) + "-";
+
+ // var dd = date.getDate() + ' ';
+ var dd =
+ (date.getDate() < 10 ? "0" + date.getDate() : date.getDate()) + " ";
+
+ // var HH = date.getHours() + ':';
+ // var HH = (date.getHours() < 10 ? '0'+(date.getHours()) : date.getHours()) + ':';
+ //
+ // // var mm = date.getMinutes() + ':';
+ // var mm = (date.getMinutes() < 10 ? '0'+(date.getMinutes()) : date.getMinutes()) + ':';
+ //
+ // // var ss = date.getSeconds();
+ // var ss = (date.getSeconds() < 10 ? '0'+(date.getSeconds()) : date.getSeconds());
+
+ // return yyyy+MM+dd+HH+mm+ss;
+ return yyyy + MM + dd;
},
},
};