Commit 82f7cd99 by 胡悦

Merge branch 'SAAS+V4.55.0' of http://192.168.3.233:8090/glsx/gl_tape into SAAS+V4.55.0

2 parents 4e02d0bd 535c90e8
...@@ -130,6 +130,9 @@ export default { ...@@ -130,6 +130,9 @@ export default {
PageTabs PageTabs
}, },
name: '', name: '',
props: {
show: Boolean
},
data () { data () {
return { return {
dateList: [ dateList: [
...@@ -151,8 +154,7 @@ export default { ...@@ -151,8 +154,7 @@ export default {
flag: false, flag: false,
nothing: false, nothing: false,
pageSize: 10, pageSize: 10,
loaded: false
} }
}, },
computed: { computed: {
...@@ -164,8 +166,19 @@ export default { ...@@ -164,8 +166,19 @@ export default {
} }
}, },
}, },
watch: {
show: {
immediate: true,
handler (newval) {
if (newval && !this.loaded) {
this.init()
this.loaded = true
}
}
}
},
mounted () { mounted () {
this.init();
}, },
methods: { methods: {
refresh () { refresh () {
......
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
type="bar" type="bar"
:opts="opts" :opts="opts"
:chartData="chartData" :chartData="chartData"
:tooltipShow="false"
/> />
</view> </view>
</view> </view>
......
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
type="arcbar" type="arcbar"
:opts="opts" :opts="opts"
:chartData="chartData" :chartData="chartData"
:tooltipShow="false"
/> />
</view> </view>
<view class="output-view flex"> <view class="output-view flex">
......
...@@ -188,8 +188,7 @@ export default { ...@@ -188,8 +188,7 @@ export default {
}, },
mounted () { mounted () {
uni.$on('refreshRecord', () => { uni.$on('refreshRecord', () => {
this.resetData() this.changeTab(0)
this.getReceptionList()
}) })
}, },
methods: { methods: {
...@@ -219,12 +218,13 @@ export default { ...@@ -219,12 +218,13 @@ export default {
}, },
jumpDetail (item) { jumpDetail (item) {
if (this.tabIndex == 0) { // 已上传 && 新质检 if (this.tabIndex == 0) { // 已上传 && 新质检
uni.$track.add({ eventCode: item.orderFinishFlag ? 'app_reception_deal' : 'app_reception_defeat' })
const { sceneType } = uni.$storage.get("userInfo"); const { sceneType } = uni.$storage.get("userInfo");
if (sceneType == 1 || item.checkHistoryFlag != 0) return uni.showToast({ if (sceneType == 1 || item.checkHistoryFlag != 0 || item.score == null) return uni.showToast({
title: '该接待尚不支持复盘', title: '该接待尚不支持复盘',
icon: "none" icon: "none"
}) })
uni.$track.add({ eventCode: item.orderFinishFlag ? 'app_reception_deal' : 'app_reception_defeat' })
this.tabIndex = -1
uni.navigateTo({ uni.navigateTo({
url: `/pages/common/receptionDetail/index`, url: `/pages/common/receptionDetail/index`,
success (res) { success (res) {
......
...@@ -20,12 +20,14 @@ ...@@ -20,12 +20,14 @@
{{timeProgress }}% {{timeProgress }}%
</view> </view>
</view> </view>
<view class="select-box"> <template v-if="sceneType == 0">
<select-component <view class="reception-select">
:selectList="performanceTypeList" <select-component
@chooseType="changePerformance" :selectList="performanceTypeList"
/> @chooseType="changePerformance"
</view> />
</view>
</template>
</view> </view>
<template v-if="showPageFlag"> <template v-if="showPageFlag">
<view class="customer-box box"> <view class="customer-box box">
...@@ -68,17 +70,17 @@ ...@@ -68,17 +70,17 @@
:tabIndex.sync="tabIndex" :tabIndex.sync="tabIndex"
></type-tab-component> ></type-tab-component>
<view :class="['right-content',`${tabIndex != 0?'hide-record':'show-record'}`]"> <view :class="['right-content',`${tabIndex != 0?'hide-record':'show-record'}`]">
<customer-file <record-list
@showSuccess="$refs.successRef.open()" @openRecordPage="openRecordPage"
ref="customerFile" ref="recordListRef"
@editCustomer="editCustomer"
:show="tabIndex == 0" :show="tabIndex == 0"
/> />
</view> </view>
<view :class="['right-content',`${tabIndex != 1?'hide-record':'show-record'}`]"> <view :class="['right-content',`${tabIndex != 1?'hide-record':'show-record'}`]">
<record-list <customer-file
@openRecordPage="openRecordPage" @showSuccess="$refs.successRef.open()"
ref="recordListRef" ref="customerFile"
@editCustomer="editCustomer"
:show="tabIndex == 1" :show="tabIndex == 1"
/> />
</view> </view>
...@@ -148,8 +150,8 @@ export default { ...@@ -148,8 +150,8 @@ export default {
timeProgress: '', timeProgress: '',
tabIndex: 0, tabIndex: 0,
typeList: Object.freeze([ typeList: Object.freeze([
{ tabName: '客户预录' },
{ tabName: '接待复盘' }, { tabName: '接待复盘' },
{ tabName: '客户预录' },
]), ]),
showInfo: false, showInfo: false,
customerId: '', customerId: '',
...@@ -196,6 +198,9 @@ export default { ...@@ -196,6 +198,9 @@ export default {
{ label: '权益', value: 3 }, { label: '权益', value: 3 },
] ]
return list return list
},
sceneType () {
return uni.$storage.get('userInfo').sceneType
} }
}, },
mounted () { mounted () {
...@@ -237,11 +242,13 @@ export default { ...@@ -237,11 +242,13 @@ export default {
merchantIdList: shopMerchantId, merchantIdList: shopMerchantId,
sceneType, sceneType,
startDate: dayjs().startOf('month').format('YYYY-MM-DD'), startDate: dayjs().startOf('month').format('YYYY-MM-DD'),
endDate: dayjs().endOf('month').format('YYYY-MM-DD'), endDate: dayjs().endOf('month').format('YYYY-MM-DD')
bussinessType }
if (sceneType == 0) {
params.bussinessType = bussinessType
if (hmzxFlag) params.hmzxFlag = hmzxFlag
if (this.isAito && !params.hmzxFlag) params.hmzxFlag = 1
} }
if (hmzxFlag) params.hmzxFlag = hmzxFlag
if(this.isAito && !params.hmzxFlag) params.hmzxFlag = 1
this.pageData = await uni.$api.receptionApi.getMerchantPerformance(params) || {} this.pageData = await uni.$api.receptionApi.getMerchantPerformance(params) || {}
}, },
changePerformance ({ item }) { changePerformance ({ item }) {
...@@ -324,7 +331,7 @@ export default { ...@@ -324,7 +331,7 @@ export default {
font-weight: 500; font-weight: 500;
} }
} }
.select-box { .reception-select {
position: absolute; position: absolute;
top: toRpx(36); top: toRpx(36);
right: toRpx(32); right: toRpx(32);
...@@ -346,6 +353,9 @@ export default { ...@@ -346,6 +353,9 @@ export default {
top: toRpx(64); top: toRpx(64);
color: #292d33; color: #292d33;
font-size: toRpx(28); font-size: toRpx(28);
.type-item {
height: toRpx(56);
}
} }
} }
} }
......
...@@ -111,10 +111,10 @@ export default { ...@@ -111,10 +111,10 @@ export default {
position: relative; position: relative;
.dot { .dot {
position: absolute; position: absolute;
top: 4rpx; top: toRpx(4);
right: 28rpx; right: toRpx(28);
width: 12rpx; width: toRpx(12);
height: 12rpx; height: toRpx(12);
border-radius: 100%; border-radius: 100%;
background: #f24724; background: #f24724;
} }
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
<view <view
v-for="(i,index) in selectList" v-for="(i,index) in selectList"
:key="index" :key="index"
class="type-item" class="type-item flex"
:class="index == selectIndex ? 'active' : ''" :class="index == selectIndex ? 'active' : ''"
@click="chooseType(index, i)" @click="chooseType(index, i)"
>{{i[labelKey]}}</view> >{{i[labelKey]}}</view>
...@@ -83,10 +83,10 @@ export default { ...@@ -83,10 +83,10 @@ export default {
text-align: center; text-align: center;
animation: show-view-opacity 0.15s forwards; animation: show-view-opacity 0.15s forwards;
.type-item { .type-item {
padding: 0 toRpx(24); padding: 0 toRpx(28);
margin-bottom: toRpx(8); margin-bottom: toRpx(8);
height: toRpx(48); height: toRpx(84);
line-height: toRpx(48); justify-content: center;
&:last-child { &:last-child {
margin-bottom: 0; margin-bottom: 0;
} }
......
...@@ -80,6 +80,10 @@ export default { ...@@ -80,6 +80,10 @@ export default {
qualityAudio: { qualityAudio: {
type: Object, type: Object,
default: () => ({}) default: () => ({})
},
disabled: {
type: Boolean,
default: false
} }
}, },
data () { data () {
...@@ -123,7 +127,13 @@ export default { ...@@ -123,7 +127,13 @@ export default {
} }
}, },
tabClick (item, index) { tabClick (item, index) {
if(this.activeIndex == index) return if (this.activeIndex == index) return
if (this.disabled) return uni.showToast({
title: '请等待内容生成后再切换其他质检点',
icon: 'none',
mask: true,
duration: 500
})
this.activeIndex = index this.activeIndex = index
this.$emit('tabClick', item) this.$emit('tabClick', item)
} }
......
...@@ -93,6 +93,7 @@ ...@@ -93,6 +93,7 @@
@onPause="onPause" @onPause="onPause"
@changeOperate="isOperate = $event" @changeOperate="isOperate = $event"
@tabClick="tabClick" @tabClick="tabClick"
:disabled="aiDisabled"
/> />
</view> </view>
</view> </view>
...@@ -103,7 +104,10 @@ ...@@ -103,7 +104,10 @@
v-if="AIUrl" v-if="AIUrl"
> >
<view class="AI-title flex">AI导师</view> <view class="AI-title flex">AI导师</view>
<web-view :src="AIUrl"></web-view> <web-view
:src="AIUrl"
@message="handlerMessage"
></web-view>
</view> </view>
<template v-else> <template v-else>
<view class="nothing flex"> <view class="nothing flex">
...@@ -160,7 +164,7 @@ export default { ...@@ -160,7 +164,7 @@ export default {
showPlayControl: false, showPlayControl: false,
AIUrl: '', AIUrl: '',
wv: null, wv: null,
loading: false aiDisabled: true
} }
}, },
onLoad () { onLoad () {
...@@ -383,9 +387,10 @@ export default { ...@@ -383,9 +387,10 @@ export default {
{ modelType } = this.pageData { modelType } = this.pageData
let title = '' let title = ''
if (item.sumScore > item.score) title = item.tagGroupName if (item.sumScore > item.score) title = item.tagGroupName
let { agentUrl, domainName, checkDate, taskStatus } = data, let { agentUrl, domainName, taskStatus } = data
url = `${agentUrl}?no_header=1&businessType=${bussinessType}&phone=${phone}&brand=${brand}&one_id=${uuid}&platformType=1&domain=${domainName}&presuppositionProblem=${title}&brandType=${modelType || 1001}` agentUrl = 'http://192.168.1.237:3000/chat/0piVRFb1xn6OBTcv'
url += `&date=${dayjs().format('YYYY-MM-DD')}` let url = `${agentUrl}?no_header=1&businessType=${bussinessType}&one_id=${uuid}&platformType=1&domain=${domainName}&presuppositionProblem=${title}&brandType=${modelType || 1001}`
url += `&phone=${phone}&brand=${brand}&date=${dayjs().format('YYYY-MM-DD')}`
if (taskStatus) url += `&practice_status=${taskStatus}` if (taskStatus) url += `&practice_status=${taskStatus}`
this.AIUrl = url this.AIUrl = url
this.setWebviewStyle() this.setWebviewStyle()
...@@ -429,20 +434,14 @@ export default { ...@@ -429,20 +434,14 @@ export default {
setTimeout(retrySetWebviewStyle, 100); setTimeout(retrySetWebviewStyle, 100);
}, },
tabClick (item) { tabClick (item) {
if (item.sumScore > item.score && this.wv) { if (this.wv) {
if (this.loading) return uni.showToast({ let message = item.sumScore > item.score ? item.tagGroupName : ''
title: '请勿频繁操作', this.wv.evalJS(`sendMessage({type:'reset_chat',payload:{message:'${message}'}})`)
icon: 'none',
mask: true,
duration: 500
})
this.loading = true
this.wv.evalJS(`sendMessage({type:'reset_chat',payload:{message:'${item.tagGroupName}'}})`)
setTimeout(() => {
this.loading = false
}, 500)
} }
},
handlerMessage ({detail}) {
let [data] = detail.data
this.aiDisabled = data.isResponding
} }
} }
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!