Browse Source

添加顾问重新指派顾问的权限修改

yun
douzhuo 1 year ago
parent
commit
492d753be4
2 changed files with 29 additions and 8 deletions
  1. +27
    -6
      pages/index/customer.vue
  2. +2
    -2
      utils/domain.js

+ 27
- 6
pages/index/customer.vue View File

@@ -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;


+ 2
- 2
utils/domain.js View File

@@ -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营销辅助 普强使用



Loading…
Cancel
Save