From 492d753be463c3702e9b2d1e3c1f125b9b8b55d6 Mon Sep 17 00:00:00 2001 From: douzhuo <17611323298@163.com> Date: Mon, 8 Aug 2022 11:44:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E9=A1=BE=E9=97=AE=E9=87=8D?= =?UTF-8?q?=E6=96=B0=E6=8C=87=E6=B4=BE=E9=A1=BE=E9=97=AE=E7=9A=84=E6=9D=83?= =?UTF-8?q?=E9=99=90=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/index/customer.vue | 33 +++++++++++++++++++++++++++------ utils/domain.js | 4 ++-- 2 files changed, 29 insertions(+), 8 deletions(-) diff --git a/pages/index/customer.vue b/pages/index/customer.vue index aaa34f7..faf105a 100644 --- a/pages/index/customer.vue +++ b/pages/index/customer.vue @@ -98,7 +98,8 @@ dataCode: '', addAccount: '', endReception: true, - fdFlag: null + fdFlag: null, + isAdd: 0, // 默认能指派 }; }, computed: { @@ -106,7 +107,8 @@ if (this.dataCode == 6) { return this.checkAuthority('顾问指派顾问') } else { - return true + if (this.isAdd == 0) return true + else return false } } }, @@ -126,6 +128,7 @@ this.dataCode = dataCode; this.init() this.updateInit() + this.queryHaveDept() }, methods: { // 删除接待 @@ -251,7 +254,7 @@ success: res => { if (this.noClick) { this.noClick = false; - if (res.confirm) { + if (res.confirm) { if (res.confirm) { this.$u.post("/customer/endReception", { id: id, @@ -260,11 +263,11 @@ uni.showToast({ icon: "none", title: "操作成功" - }) + }) this.init(); }); } - } + } setTimeout(() => { this.noClick = true; }, 2000) @@ -274,6 +277,24 @@ } }) }, + + // 检测是否有添加顾问的权限 + queryHaveDept() { + uni.request({ + url: config.service.getSelfAssignedByHouseId + "?houseId=" + uni.getStorageSync('buildingID').id, + method: "GET", + header: { + 'content-type': 'application/json', + 'Access-Token': uni.getStorageSync('weapp_session_login_data').token + }, + success: (data) => { + if (data.data.code == 10000) { + this.isAdd = data.data.data.selfAssigned + } + } + }) + }, + //新增接待 addreception() { const { @@ -436,7 +457,7 @@ border-top: 1rpx solid #E0E0E0; .footer1 { - flex: 1; + flex-grow: 1; text-align: center; line-height: 90rpx; border-right: 1rpx solid #E0E0E0; diff --git a/utils/domain.js b/utils/domain.js index 59c9e1f..d862ea4 100644 --- a/utils/domain.js +++ b/utils/domain.js @@ -1,9 +1,9 @@ // http.js使用域名 -// const baseUrl = 'http://81.70.55.170:9090/autoSR/api';// 最新测试 +const baseUrl = 'http://81.70.55.170:9090/autoSR/api';// 最新测试 // const baseUrl = 'http://127.0.0.1:8080/autoSR/api'; // 本地 // const baseUrl = 'http://192.168.31.231:8080/autoSR/api'; // 长龙 // const baseUrl = 'http://192.168.31.149:8080/api'; // 盛浩 -const baseUrl = 'https://zkgj.quhouse.com/api'; // 质控正式 +// const baseUrl = 'https://zkgj.quhouse.com/api'; // 质控正式 // const baseUrl = 'https://hfju.com/api'; // 数智正式 // const baseUrl = 'https://xitong.pachira.cn/api'; // AI营销辅助 普强使用