+
-->
-
+
通过
-
+
驳回
撤销
@@ -439,6 +450,7 @@ import { exportMethodPost } from "@/util/util";
export default {
data() {
return {
+ orgType: localStorage.getItem("orgType"), // 当前登录项目的类型
projectList: [], // 项目列表
tableData: [], // table数据
customtime: [], // 时间picker
@@ -454,6 +466,7 @@ export default {
pageSize: 10, // 页数
projectId: "", // 项目id
auditStatus: -1, // 审核状态 -1全部 0:待审核,1:通过审核,2:审核驳回,3:已撤销
+ orgCode: '', // 公司id
},
auditStatusListIndex: -1, // 默认选中全部
auditStatusList: [
@@ -504,14 +517,16 @@ export default {
// 是否有审核权限
checkPermitBtn() {
return (name) => {
- return this.permissions[name] ? true : false
+ return this.permissions[name] ? true : false;
};
},
// 是否有审核权限(小程序)
checkPermitBtns() {
return (name) => {
- let index = this.littPermitBtn.findIndex((item) => item.permission == name);
+ let index = this.littPermitBtn.findIndex(
+ (item) => item.permission == name
+ );
return index != -1;
};
},
@@ -535,10 +550,15 @@ export default {
},
},
- mounted() {
- this.getPageList();
+ created() {
this.getFindHouseListByAccount();
},
+ mounted() {
+ if (this.orgType != 2) {
+ this.params.projectId = localStorage.getItem("houseId");
+ }
+ this.params.orgCode = localStorage.getItem("orgCode");
+ },
methods: {
handleSelect(e) {
@@ -586,18 +606,20 @@ export default {
this.$message.error("请输入无效原因");
return;
}
- this.$api.http.updateReception({
- id: this.scopeInfo.id,
- auditStatus: status,
- rejectReason: this.rejectReason, // 驳回原因
- }).then((res) => {
+ this.$api.http
+ .updateReception({
+ id: this.scopeInfo.id,
+ auditStatus: status,
+ rejectReason: this.rejectReason, // 驳回原因
+ })
+ .then((res) => {
if (res.code == 10000) {
- this.$message.success(res.message)
+ this.$message.success(res.message);
if (status == 2) this.dialogReason = false;
this.resetAuditParams();
this.getPageList();
} else {
- this.$message.error(res.message)
+ this.$message.error(res.message);
}
});
},
@@ -609,11 +631,20 @@ export default {
},
// 获取项目列表
getFindHouseListByAccount() {
- this.$api.http.InvalidFindHouseListByAccount().then((res) => {
- if (res.code == 10000) {
+ this.$api.api
+ .findHouseByUser({
+ orgType: localStorage.getItem("orgType"),
+ })
+ .then((res) => {
this.projectList = res.data;
- }
- });
+ if (this.orgType == 2) {
+ this.params.projectId = res.data[0].id;
+ }
+
+ this.getPageList();
+ }).catch(() => {
+ this.getPageList();
+ });
},
// 获取待审核列表
getPageList() {
@@ -846,7 +877,11 @@ export default {
},
//下载
download() {
- exportMethodPost(`/zk/file/filedownload?videoSrc=${this.Broadcastaddress}`,'接待录音', {})
+ exportMethodPost(
+ `/zk/file/filedownload?videoSrc=${this.Broadcastaddress}`,
+ "接待录音",
+ {}
+ );
// window.location.href =
// "${jypath}/zk/file/filedownload?videoSrc=" + this.Broadcastaddress;
},
@@ -1133,7 +1168,6 @@ export default {
top: 50px;
}
-
/deep/.aplayer-info {
padding: 22px 7px 0px 10px;
}
@@ -1147,7 +1181,6 @@ export default {
display: none !important;
}
-
.aplayer-controller {
margin-top: 15px;
}
@@ -1794,4 +1827,8 @@ export default {
.elmenus .el-menu-demo {
border-bottom: none;
}
+
+/deep/ .el-range-separator {
+ width: 10%;
+}
\ No newline at end of file
diff --git a/src/views/Customer/table.js b/src/views/Customer/table.js
index f8d6fdf..e30f5a6 100644
--- a/src/views/Customer/table.js
+++ b/src/views/Customer/table.js
@@ -217,7 +217,7 @@ export default {
indexLabel: "序号",
stripe: true,
menuAlign: "center",
- menuWidth: 146,
+ menuWidth: 200,
menu: true,
align: "left",
refreshBtn: false,
diff --git a/src/views/ReceivingRecords/index.vue b/src/views/ReceivingRecords/index.vue
index 8899c4b..cefee75 100644
--- a/src/views/ReceivingRecords/index.vue
+++ b/src/views/ReceivingRecords/index.vue
@@ -359,7 +359,8 @@
@current-change="handleCurrentChange"
>
-
+
删除接待
+
@@ -741,13 +743,19 @@ export default {
},
// 无效接待原因列表
getMarketingInvalidList() {
- this.$api.api.invalidList({ houseId: this.houseId }).then((res) => {
- if (res.data && res.data.obj) {
- this.marketingInvalidList = res.data.obj;
- } else {
- this.marketingInvalidList = [];
- }
- });
+
+ this.$api.http
+ .InvalidReceptionReasonList({
+ houseId: this.searchForm.projectId,
+ })
+ .then((res) => {
+ if (res.code == 10000) {
+ this.marketingInvalidList = res.data
+ // .filter(
+ // (item) => item.id != 6 && item.id != 7 && item.id != 5
+ // );
+ }
+ })
},
// 转写方式切换
changeFun(value) {
@@ -984,6 +992,8 @@ export default {
this.findTransferMethod();
// 获取销讲业务
this.getMarketingBusiness();
+ // 无效接待原因
+ this.getMarketingInvalidList()
});
},
// 置业顾问列表
diff --git a/src/views/ReceivingRecords/table.js b/src/views/ReceivingRecords/table.js
index 47fc457..53a71f3 100644
--- a/src/views/ReceivingRecords/table.js
+++ b/src/views/ReceivingRecords/table.js
@@ -6,7 +6,7 @@ export default {
indexLabel: "序号",
stripe: true,
menuAlign: "center",
- menuWidth: 90,
+ menuWidth: 200,
menu: true,
align: "left",
refreshBtn: false,
@@ -67,35 +67,9 @@ export default {
},
{
label: "无效接待原因",
- prop: "invalidReason",
+ prop: "invalidNote",
formatter: data => {
- let str = ''
- switch (data.invalidReason) {
- case 1 :
- str = '没电指派无录音'
- break;
- case 2 :
- str = '离线指派无录音'
- break;
- case 3 :
- str = '系统测试误操作'
- break;
- case 4 :
- str = '非接访场景录音'
- break;
- case 5 :
- str = '其它'
- break;
- case 6 :
- str = '离线'
- break;
- case 7 :
- str = '无设备'
- break;
- default :
- break;
- }
- return str
+ return data.invalidNote ? data.invalidNote : '-'
}
},
diff --git a/src/views/Statistics/ConsultantBrand.vue b/src/views/Statistics/ConsultantBrand.vue
index 74d0e76..d538aac 100644
--- a/src/views/Statistics/ConsultantBrand.vue
+++ b/src/views/Statistics/ConsultantBrand.vue
@@ -1077,6 +1077,7 @@ export default {
current: 1,
size: 1,
marketingBusiness: this.marketingBusiness.join(","),
+ exportType: this.tabFlag
};
// exportMethodPost()
exportMethodPost(
diff --git a/src/views/Statistics/ReceptionStatistical.vue b/src/views/Statistics/ReceptionStatistical.vue
index d9bcc4c..682d620 100644
--- a/src/views/Statistics/ReceptionStatistical.vue
+++ b/src/views/Statistics/ReceptionStatistical.vue
@@ -106,8 +106,8 @@