| @@ -61,6 +61,9 @@ | |||||
| <template v-if="zhipai"> | <template v-if="zhipai"> | ||||
| <view class="footer3" @click.stop="assign(item)">指派顾问</view> | <view class="footer3" @click.stop="assign(item)">指派顾问</view> | ||||
| </template> | </template> | ||||
| <template v-if="checkAuthority('删除接待记录')"> | |||||
| <view @tap.stop="deleteReception(item)" class="footer3">删除接待</view> | |||||
| </template> | |||||
| </view> | </view> | ||||
| </view> | </view> | ||||
| @@ -125,6 +128,21 @@ | |||||
| this.updateInit() | this.updateInit() | ||||
| }, | }, | ||||
| methods: { | methods: { | ||||
| // 删除接待 | |||||
| deleteReception(data) { | |||||
| this.$u.get(`/customer/delete?id=${data.id}`).then(res => { | |||||
| if (!res) { | |||||
| this.init() | |||||
| } | |||||
| }).catch(e => { | |||||
| console.log(e) | |||||
| uni.showToast({ | |||||
| title: '网络异常,请稍后重试~', | |||||
| icon: 'none' | |||||
| }); | |||||
| }) | |||||
| }, | |||||
| // 获取未读消息数量 | |||||
| updateInit() { | updateInit() { | ||||
| uni.request({ | uni.request({ | ||||
| url: config.service.notReadNum, | url: config.service.notReadNum, | ||||
| @@ -425,7 +443,7 @@ | |||||
| } | } | ||||
| .footer3 { | .footer3 { | ||||
| flex: 1; | |||||
| flex-grow: 1; | |||||
| text-align: center; | text-align: center; | ||||
| line-height: 90rpx; | line-height: 90rpx; | ||||
| } | } | ||||
| @@ -1,8 +1,8 @@ | |||||
| // http.js使用域名 | // 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://127.0.0.1:8080/autoSR/api'; // 本地 | ||||
| // const baseUrl = 'http://192.168.31.169:8080/autoSR/api'; // 长龙 | // const baseUrl = 'http://192.168.31.169:8080/autoSR/api'; // 长龙 | ||||
| // const baseUrl = 'http://192.168.31.149:9090/api'; // 盛浩 | |||||
| const baseUrl = 'http://192.168.31.149:9090/api'; // 盛浩 | |||||
| // const baseUrl = 'https://zkgj.quhouse.com/api'; // 质控正式 | // const baseUrl = 'https://zkgj.quhouse.com/api'; // 质控正式 | ||||
| // const baseUrl = 'https://hfju.com/api'; // 数智正式 | // const baseUrl = 'https://hfju.com/api'; // 数智正式 | ||||
| // const baseUrl = 'https://xitong.pachira.cn/api'; // AI营销辅助 普强使用 | // const baseUrl = 'https://xitong.pachira.cn/api'; // AI营销辅助 普强使用 | ||||