@@ -518,12 +518,12 @@ | |||||
if (res[0].merge == 0) { | if (res[0].merge == 0) { | ||||
let newobj = res[0]; | let newobj = res[0]; | ||||
uni.navigateTo({ | uni.navigateTo({ | ||||
url: `/pages/mine/details2?customerId=${newobj.customerId}&status=${newobj.status}&stateisshow=${"2"}` | |||||
url: `/pages/mine/details2?customerId=${newobj.customerId}&status=${newobj.status}&stateisshow=2&wordFraction=${this.customerInfo.wordFraction}` | |||||
}) | }) | ||||
} else { | } else { | ||||
let newobj = res[0]; | let newobj = res[0]; | ||||
uni.navigateTo({ | uni.navigateTo({ | ||||
url: `/pages/mine/details?customerId=${newobj.customerId}&status=${newobj.status}&stateisshow=${"1"}` | |||||
url: `/pages/mine/details?customerId=${newobj.customerId}&status=${newobj.status}&stateisshow=1&wordFraction=${this.customerInfo.wordFraction}` | |||||
}) | }) | ||||
} | } | ||||
}) | }) | ||||
@@ -29,7 +29,6 @@ | |||||
<view class="text" :id="'dialog'+csdFileindex+'text'+item.bg" | <view class="text" :id="'dialog'+csdFileindex+'text'+item.bg" | ||||
:class="{active: Math.floor(item.bg/1000) <= playNow && Math.floor(item.ed/1000) > playNow, isGreen: item.isShow == 0}" | :class="{active: Math.floor(item.bg/1000) <= playNow && Math.floor(item.ed/1000) > playNow, isGreen: item.isShow == 0}" | ||||
v-for="(item,index) in dialog.message" :key="index" :data-speaker="item.speaker" @click.stop> | v-for="(item,index) in dialog.message" :key="index" :data-speaker="item.speaker" @click.stop> | ||||
<template v-if="refined"> | <template v-if="refined"> | ||||
<view class="checkbox" :class="{select: item.checked}" @click="cbChange(item)"> | <view class="checkbox" :class="{select: item.checked}" @click="cbChange(item)"> | ||||
<template v-if="item.checked"> | <template v-if="item.checked"> | ||||
@@ -652,7 +651,7 @@ | |||||
this.status = options.status; | this.status = options.status; | ||||
this.customerId = options.customerId; | this.customerId = options.customerId; | ||||
this.KeyWordsfraction = options.wordFraction || 0; | |||||
this.KeyWordsfraction = options.wordFraction == 'undefined' ? 0 : options.wordFraction; | |||||
this.itemobj = uni.getStorageSync('searchobj'); | this.itemobj = uni.getStorageSync('searchobj'); | ||||
console.log(this.itemobj) | console.log(this.itemobj) | ||||
this.stateisshow = options.stateisshow; | this.stateisshow = options.stateisshow; | ||||
@@ -666,7 +665,6 @@ | |||||
}) | }) | ||||
this.$zaudio.on('playing', this.ACTION, (obj) => { | this.$zaudio.on('playing', this.ACTION, (obj) => { | ||||
this.duration = obj.duration | this.duration = obj.duration | ||||
console.log(obj) | |||||
this.TimeUpdate(this.TIMEEVENT(obj.current)) | this.TimeUpdate(this.TIMEEVENT(obj.current)) | ||||
}) | }) | ||||
this.$zaudio.on('error', this.ACTION, e => { | this.$zaudio.on('error', this.ACTION, e => { | ||||
@@ -733,8 +731,6 @@ | |||||
item.checked = !item.checked | item.checked = !item.checked | ||||
this.$forceUpdate() | this.$forceUpdate() | ||||
}, | }, | ||||
// 隐藏长按提示框 | // 隐藏长按提示框 | ||||
cancelBeast() { | cancelBeast() { | ||||
this.dialogList.forEach(res => { | this.dialogList.forEach(res => { | ||||
@@ -10,9 +10,6 @@ | |||||
placeholder-class="titletext-input" placeholder-style="color:#B2B2B2;" type="text" | placeholder-class="titletext-input" placeholder-style="color:#B2B2B2;" type="text" | ||||
placeholder="请输入客户姓名(必填)" /> | placeholder="请输入客户姓名(必填)" /> | ||||
</view> | </view> | ||||
<view class="titleimg"> | |||||
<!-- <image class="titleimg1" src="../../../static/images/arrow.png" mode=""></image> --> | |||||
</view> | |||||
</view> | </view> | ||||
<view class="title"> | <view class="title"> | ||||
<view class="titletext">客户性别</view> | <view class="titletext">客户性别</view> | ||||
@@ -55,7 +52,6 @@ | |||||
</view> | </view> | ||||
<!-- <template v-if="shifoinfo==0 && userInfo.dataCode != 6"> --> | |||||
<view class="Pinspeak">顾问</view> | <view class="Pinspeak">顾问</view> | ||||
<view class="chented" @click="clickShowhid()"> | <view class="chented" @click="clickShowhid()"> | ||||
<view class="title" style="border: none;"> | <view class="title" style="border: none;"> | ||||
@@ -70,16 +66,17 @@ | |||||
</view> | </view> | ||||
</view> | </view> | ||||
</view> | </view> | ||||
<!-- </template> --> | |||||
<!-- 提交按钮 --> | |||||
<view class="clive" @click.stop="$noMultipleClicks(save)" | <view class="clive" @click.stop="$noMultipleClicks(save)" | ||||
:style="{background:(isBand==false?'#2671E2':'#949494')}">确定</view> | :style="{background:(isBand==false?'#2671E2':'#949494')}">确定</view> | ||||
<!-- 客户来源 --> | |||||
<u-select :mask-close-able="false" label-name="sourceName" value-name="id" v-model="Showhiddenunits" | <u-select :mask-close-able="false" label-name="sourceName" value-name="id" v-model="Showhiddenunits" | ||||
mode="single-column" :list="list" @cancel="cancel" @confirm="confirm"></u-select> | mode="single-column" :list="list" @cancel="cancel" @confirm="confirm"></u-select> | ||||
<u-select :mask-close-able="false" v-model="Showhid" mode="single-column" :list="freeList" @cancel="cancel1" | |||||
@confirm="confirm1"></u-select> | |||||
<!-- 代接代提示窗 --> | |||||
<u-modal v-model="show" :mask-close-able="true" :title="'代接待提醒'" :confirm-text="confirmtext" | <u-modal v-model="show" :mask-close-able="true" :title="'代接待提醒'" :confirm-text="confirmtext" | ||||
:cancel-text='canceltext' @cancel="confirmA" @confirm="confirmB" :show-cancel-button='true' | :cancel-text='canceltext' @cancel="confirmA" @confirm="confirmB" :show-cancel-button='true' | ||||
:content="content"></u-modal> | :content="content"></u-modal> | ||||
@@ -113,8 +110,7 @@ | |||||
}, | }, | ||||
showSourceName: '', // 展示文字 | showSourceName: '', // 展示文字 | ||||
shifoinfo: 0, // 高级权限 项目是否能指派顾问 | shifoinfo: 0, // 高级权限 项目是否能指派顾问 | ||||
freeList: [], | |||||
Showhid: false, | |||||
freeList: [], // 顾问列表 | |||||
text: null, | text: null, | ||||
show: false, | show: false, | ||||
content: '', | content: '', | ||||
@@ -136,6 +132,18 @@ | |||||
}, | }, | ||||
}, | }, | ||||
onLoad() { | |||||
uni.$on('addreception', customerId => { | |||||
let obj = this.freeList.find(item => item.agentId == customerId) | |||||
this.text = obj.name; | |||||
this.parames.agentId = customerId; | |||||
}) | |||||
}, | |||||
onUnload() { | |||||
uni.$off('addreception') | |||||
}, | |||||
onShow() { | onShow() { | ||||
this.parames.projectId = uni.getStorageSync('buildingID').id; | this.parames.projectId = uni.getStorageSync('buildingID').id; | ||||
console.log(this.$u) | console.log(this.$u) | ||||
@@ -157,7 +165,6 @@ | |||||
success: (data) => { | success: (data) => { | ||||
console.log(data) | console.log(data) | ||||
if (data.data.code == 10000) { | if (data.data.code == 10000) { | ||||
// this.shifoinfo=data.data.data.selfAssigned | |||||
this.list = data.data.data | this.list = data.data.data | ||||
} | } | ||||
} | } | ||||
@@ -337,17 +344,12 @@ | |||||
duration: 2000 | duration: 2000 | ||||
}); | }); | ||||
} else { | } else { | ||||
this.Showhid = true; | |||||
uni.navigateTo({ | |||||
url: `/pages/mine/reception/consultant?from=addreception&id=${this.parames.agentId}` | |||||
}) | |||||
} | } | ||||
}, | }, | ||||
cancel1() { | |||||
this.Showhid = false; | |||||
}, | |||||
confirm1(e) { | |||||
this.text = e[0].label; | |||||
this.parames.agentId = e[0].value; | |||||
this.Showhid = false; | |||||
}, | |||||
Buildingselection() { | Buildingselection() { | ||||
this.Showhiddenunits = true; | this.Showhiddenunits = true; | ||||
@@ -81,11 +81,13 @@ | |||||
list: [], // 部门列表 | list: [], // 部门列表 | ||||
listCurrent: 0, //选中分类下标 | listCurrent: 0, //选中分类下标 | ||||
from: '', // 来源页面需要通知的事件 | |||||
} | } | ||||
}, | }, | ||||
onLoad(option) { | onLoad(option) { | ||||
this.LOADING = true | this.LOADING = true | ||||
this.customerId = option.id; | |||||
if (option.id) this.customerId = option.id; | |||||
if (option.from) this.from = option.from | |||||
}, | }, | ||||
async onShow() { | async onShow() { | ||||
this.buildingID = uni.getStorageSync('buildingID').id; | this.buildingID = uni.getStorageSync('buildingID').id; | ||||
@@ -103,7 +105,7 @@ | |||||
searchFunc() { | searchFunc() { | ||||
}, | }, | ||||
async iniPage() { | async iniPage() { | ||||
await this.getAllDeptName() | await this.getAllDeptName() | ||||
await this.getFreeList(); | await this.getFreeList(); | ||||
@@ -134,11 +136,15 @@ | |||||
if (res.length == 0) { | if (res.length == 0) { | ||||
this.freeList = [] | this.freeList = [] | ||||
} else { | } else { | ||||
// 回显上次选中的顾问 | |||||
if (this.from != '' && this.id != '') { | |||||
this.current = res.findIndex(item => item.agentId == this.customerId) | |||||
} | |||||
this.freeList = res; | this.freeList = res; | ||||
this.textcdhSKJ = res[0].name | this.textcdhSKJ = res[0].name | ||||
} | } | ||||
this.LOADING = false | this.LOADING = false | ||||
}catch (e) { | |||||
} catch (e) { | |||||
this.LOADING = false | this.LOADING = false | ||||
} | } | ||||
}, | }, | ||||
@@ -170,6 +176,14 @@ | |||||
}) | }) | ||||
return | return | ||||
} | } | ||||
// 如果是从其他页面跳转过来的 | |||||
if (this.from) { | |||||
uni.$emit(this.from, this.chosedAgentId) | |||||
uni.navigateBack() | |||||
return | |||||
} | |||||
const that = this; | const that = this; | ||||
this.$u.post("customer/daitiReception", { | this.$u.post("customer/daitiReception", { | ||||
agentId: that.chosedAgentId, | agentId: that.chosedAgentId, | ||||
@@ -1,9 +1,9 @@ | |||||
// 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营销辅助 普强使用 | ||||