Commit 5cf5bf9a by 李伟康

commit 违规录音

1 parent bcde77d3
...@@ -14,7 +14,9 @@ Component({ ...@@ -14,7 +14,9 @@ Component({
}, },
isShowDefeatBtn: { isShowDefeatBtn: {
type: Boolean type: Boolean
} },
hideScore: Boolean,
showReason:Boolean
}, },
/** /**
...@@ -22,7 +24,13 @@ Component({ ...@@ -22,7 +24,13 @@ Component({
*/ */
data: { data: {
contantsData, contantsData,
itemInfo: {} itemInfo: {},
violationStatusText: {
1: '疑似违规',
2: '过度承诺',
0: '未违规'
},
showViolationReason: false
}, },
/** /**
...@@ -66,7 +74,7 @@ Component({ ...@@ -66,7 +74,7 @@ Component({
events?.forEach((event, index) => { events?.forEach((event, index) => {
let regex = new RegExp('环节', 'g') let regex = new RegExp('环节', 'g')
event.stage = event.stage.replace(regex, '') event.stage = event.stage.replace(regex, '')
if(event.stage == '结束') event.stage = '促成交' if (event.stage == '结束') event.stage = '促成交'
event.width = this.getWidth(event, totalMinutes) event.width = this.getWidth(event, totalMinutes)
event.left = event.mergedOffset && Math.min(...event.mergedOffset) / totalMinutes * 90 + 2 event.left = event.mergedOffset && Math.min(...event.mergedOffset) / totalMinutes * 90 + 2
// 相邻质检环节是否存在重叠 // 相邻质检环节是否存在重叠
...@@ -77,7 +85,7 @@ Component({ ...@@ -77,7 +85,7 @@ Component({
} }
event.left = (events[index - 2]?.left + events[index - 2]?.width) > 2 ? (events[index - 2]?.left + events[index - 2]?.width) : 2 // 出现重叠将第二个质检环节向时间轴结束方向偏移 event.left = (events[index - 2]?.left + events[index - 2]?.width) > 2 ? (events[index - 2]?.left + events[index - 2]?.width) : 2 // 出现重叠将第二个质检环节向时间轴结束方向偏移
} }
if (event.left > (90 - event.width)) { // 处理会超出时间轴的质检环节 if (event.left > (90 - event.width)) { // 处理会超出时间轴的质检环节
event.left = (90 - event.width) event.left = (90 - event.width)
} }
...@@ -96,17 +104,15 @@ Component({ ...@@ -96,17 +104,15 @@ Component({
}) })
// 质检环节未知 // 质检环节未知
if (!events?.length) { if (!events?.length) {
events = [ events = [{
{ stage: '未知',
stage: '未知', style: `left: 47%; width: 50%;transform: translateX(-50%);bottom: var(--fontSize34);`,
style: `left: 47%; width: 50%;transform: translateX(-50%);bottom: var(--fontSize34);`, customerClass: 'red-tag',
customerClass: 'red-tag', mergedOffset: [0]
mergedOffset: [0] }]
}
]
} }
this.setData({ this.setData({
['itemInfo.receptionStaticInfoDetailDTOList'] : events, ['itemInfo.receptionStaticInfoDetailDTOList']: events,
['itemInfo.isNoShow']: false ['itemInfo.isNoShow']: false
}) })
}, },
...@@ -126,17 +132,24 @@ Component({ ...@@ -126,17 +132,24 @@ Component({
let diff = item.mergedOffset && Math.max(...item.mergedOffset) - Math.min(...item.mergedOffset) let diff = item.mergedOffset && Math.max(...item.mergedOffset) - Math.min(...item.mergedOffset)
let width = diff / totalMinutes * 90 let width = diff / totalMinutes * 90
let minWidth = item.stage?.length == 3 ? 19 : item.stage?.length == 4 ? 24 : 15 // 根据质检环节最小宽度 let minWidth = item.stage?.length == 3 ? 19 : item.stage?.length == 4 ? 24 : 15 // 根据质检环节最小宽度
let filterWidth = width > minWidth ? width : minWidth // 最小宽度 let filterWidth = width > minWidth ? width : minWidth // 最小宽度
return filterWidth return filterWidth
}, },
// 快速录战败单 // 快速录战败单
createDefeatOrder(e) { createDefeatOrder(e) {
let { item } = e.currentTarget.dataset let {
wx.$router.go('packageEquity.createDeafeatOrder', {customerName: item.customerName, customerPhone: item.phoneNumber}) item
} = e.currentTarget.dataset
wx.$router.go('packageEquity.createDeafeatOrder', {
customerName: item.customerName,
customerPhone: item.phoneNumber
})
}, },
// 点击质检环节 // 点击质检环节
handleTagsTap(e) { handleTagsTap(e) {
let { item } = e.currentTarget.dataset let {
item
} = e.currentTarget.dataset
this.triggerEvent('tagsTap', item) this.triggerEvent('tagsTap', item)
}, },
}, },
...@@ -150,6 +163,6 @@ Component({ ...@@ -150,6 +163,6 @@ Component({
if (params.receptionStaticInfoODDetailDTOList) { // 攻防点 if (params.receptionStaticInfoODDetailDTOList) { // 攻防点
_this.getDefensePoints(params.receptionStaticInfoODDetailDTOList, totalMinutes) _this.getDefensePoints(params.receptionStaticInfoODDetailDTOList, totalMinutes)
} }
} }
}) })
\ No newline at end of file \ No newline at end of file
/* packageEquity/pages/index/components/record-item/recordItem.wxss */ /* packageEquity/pages/index/components/record-item/recordItem.wxss */
.content{ .content {
box-sizing: border-box; box-sizing: border-box;
width: 100%; width: 100%;
padding-bottom: var(--fontSize8); padding-bottom: var(--fontSize8);
background: #FFFFFF; background: #FFFFFF;
border-radius: var(--fontSize28); border-radius: var(--fontSize28);
&.border-red{ position: relative;
.violation-reason {
position: absolute;
top: var(--fontSize72);
right: var(--fontSize16);
width: var(--fontSize144);
height: var(--fontSize48);
line-height: var(--fontSize48);
border-radius: var(--fontSize8);
background: #f7f8fa;
color: #347bff;
font-size: var(--fontSize24);
font-weight: 600;
text-align: center;
}
&.border-red {
border: var(--fontSize2) solid #F56C50; border: var(--fontSize2) solid #F56C50;
} }
.record-header{
.record-header {
padding: var(--fontSize28) var(--fontSize16) var(--fontSize16) var(--fontSize32); padding: var(--fontSize28) var(--fontSize16) var(--fontSize16) var(--fontSize32);
.base-message{
.base-message {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
margin-bottom: var(--fontSize12); margin-bottom: var(--fontSize12);
view{
view {
display: flex; display: flex;
align-items: center; align-items: center;
} }
.record-name{
.record-name {
flex-shrink: 0; flex-shrink: 0;
margin-right: var(--fontSize12); margin-right: var(--fontSize12);
display: inline-block; display: inline-block;
max-width: var(--fontSize260); max-width: var(--fontSize260);
.value{
.value {
font-weight: 600; font-weight: 600;
font-size: var(--fontSize30); font-size: var(--fontSize30);
color: #292D33; color: #292D33;
} }
.order-name{
.order-name {
font-weight: 400; font-weight: 400;
font-size: var(--fontSize26); font-size: var(--fontSize26);
} }
} }
.record-phone{
.record-phone {
font-size: var(--fontSize26); font-size: var(--fontSize26);
color: #347BFF; color: #347BFF;
} }
.employee-name{
.employee-name {
max-width: var(--fontSize180); max-width: var(--fontSize180);
display: inline-block; display: inline-block;
margin-left: var(--fontSize10); margin-left: var(--fontSize10);
color: #347BFF; color: #347BFF;
font-size: var(--fontSize30); font-size: var(--fontSize30);
} }
.text-hide{
.text-hide {
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
} }
.violation-status {
width: fit-content;
height: var(--fontSize32);
border-radius: var(--fontSize16);
border: var(--fontSize2) solid #38d1c71a;
background: #edfaf9;
padding: 0 var(--fontSize8);
margin-left: var(--fontSize12);
color: #38d1c7;
font-size: var(--fontSize22);
font-weight: 700;
line-height: var(--fontSize32);
}
.violation-1 {
border-color: #7f80fe1a;
background: #f2f2fe;
color: #7f80fe;
}
.violation-2 {
border-color: #ff60531a;
background: #fff4f2;
color: #ff6053;
}
} }
.record-message{
.record-message {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
font-size: var(--fontSize22); font-size: var(--fontSize22);
.record-label{
.record-label {
padding: 0 var(--fontSize8); padding: 0 var(--fontSize8);
height: var(--fontSize32); height: var(--fontSize32);
border-radius: var(--fontSize4); border-radius: var(--fontSize4);
...@@ -64,18 +118,21 @@ ...@@ -64,18 +118,21 @@
margin-right: var(--fontSize12); margin-right: var(--fontSize12);
border: var(--fontSize2) solid #E8ECF0; border: var(--fontSize2) solid #E8ECF0;
} }
.record-label-error{
.record-label-error {
padding: 0 var(--fontSize8); padding: 0 var(--fontSize8);
height: var(--fontSize28); height: var(--fontSize28);
border: var(--fontSize2) solid #F56C50; border: var(--fontSize2) solid #F56C50;
border-radius: var(--fontSize4); border-radius: var(--fontSize4);
color: #F56C50; color: #F56C50;
} }
.record-amount{
.record-amount {
font-size: var(--fontSize32); font-size: var(--fontSize32);
color: #292D33; color: #292D33;
font-family: "numberBold"; font-family: "numberBold";
.line{
.line {
display: inline-block; display: inline-block;
width: var(--fontSize2); width: var(--fontSize2);
height: var(--fontSize14); height: var(--fontSize14);
...@@ -83,24 +140,29 @@ ...@@ -83,24 +140,29 @@
margin: 0 var(--fontSize8); margin: 0 var(--fontSize8);
} }
} }
.record-score{
.record-score {
font-size: var(--fontSize24); font-size: var(--fontSize24);
color: #F56C50; color: #F56C50;
.value{
.value {
font-size: var(--fontSize48); font-size: var(--fontSize48);
font-family: "numberBold"; font-family: "numberBold";
} }
.unit{
.unit {
font-weight: 600; font-weight: 600;
margin-left: var(--fontSize4); margin-left: var(--fontSize4);
} }
&.black{
&.black {
color: #292D33; color: #292D33;
} }
} }
} }
} }
.time-line-box{
.time-line-box {
box-sizing: border-box; box-sizing: border-box;
width: calc(100% - var(--fontSize16)); width: calc(100% - var(--fontSize16));
margin: 0 var(--fontSize8); margin: 0 var(--fontSize8);
...@@ -108,16 +170,19 @@ ...@@ -108,16 +170,19 @@
background: #FAFAFA; background: #FAFAFA;
border-radius: var(--fontSize24); border-radius: var(--fontSize24);
padding: var(--fontSize20); padding: var(--fontSize20);
.time-line{
.time-line {
height: var(--fontSize90); height: var(--fontSize90);
position: relative; position: relative;
.line-status{
.line-status {
width: 100%; width: 100%;
height: var(--fontSize2); height: var(--fontSize2);
background: #D1DBE7; background: #D1DBE7;
position: absolute; position: absolute;
bottom: var(--fontSize32); bottom: var(--fontSize32);
.circular{
.circular {
position: absolute; position: absolute;
top: calc(-1 * var(--fontSize6)); top: calc(-1 * var(--fontSize6));
width: var(--fontSize12); width: var(--fontSize12);
...@@ -125,13 +190,16 @@ ...@@ -125,13 +190,16 @@
border-radius: 50%; border-radius: 50%;
background: #D1DBE7; background: #D1DBE7;
} }
.circular-left{
.circular-left {
left: 0; left: 0;
} }
.circular-right{
.circular-right {
right: var(--fontSize40); right: var(--fontSize40);
} }
.reception-result{
.reception-result {
position: absolute; position: absolute;
right: 0; right: 0;
top: calc(-1 * var(--fontSize14)); top: calc(-1 * var(--fontSize14));
...@@ -141,27 +209,33 @@ ...@@ -141,27 +209,33 @@
text-align: center; text-align: center;
font-size: var(--fontSize20); font-size: var(--fontSize20);
color: #FFFFFF; color: #FFFFFF;
&.success{
&.success {
background: #35C376; background: #35C376;
&:before{
&:before {
content: '√'; content: '√';
} }
} }
&.defeat{
&.defeat {
background: #F24724; background: #F24724;
&:before{
&:before {
content: '×' content: '×'
} }
} }
} }
} }
.creat-order-btn{
.creat-order-btn {
width: var(--fontSize144); width: var(--fontSize144);
position: absolute; position: absolute;
right: 0; right: 0;
top: calc(-1 * var(--fontSize40)); top: calc(-1 * var(--fontSize40));
z-index: 100; z-index: 100;
} }
.bubble { .bubble {
position: relative; position: relative;
background: #00000099; background: #00000099;
...@@ -170,6 +244,7 @@ ...@@ -170,6 +244,7 @@
border-radius: var(--fontSize8); border-radius: var(--fontSize8);
text-align: center; text-align: center;
font-size: var(--fontSize24); font-size: var(--fontSize24);
.bubble-pointer { .bubble-pointer {
width: 0; width: 0;
height: 0; height: 0;
...@@ -181,34 +256,41 @@ ...@@ -181,34 +256,41 @@
bottom: calc(-1 * var(--fontSize16)); bottom: calc(-1 * var(--fontSize16));
transform: translateY(-50%); transform: translateY(-50%);
} }
.bubble-content { .bubble-content {
font-size: var(--fontSize24); font-size: var(--fontSize24);
text-align: center; text-align: center;
white-space: nowrap; white-space: nowrap;
} }
} }
.tags-box{
.tags-item{ .tags-box {
.tags-item {
text-align: center; text-align: center;
position: absolute; position: absolute;
display: flex; display: flex;
bottom: 0; bottom: 0;
.deep-colour-name{
.deep-colour-name {
flex-shrink: 0; flex-shrink: 0;
width: var(--fontSize6); width: var(--fontSize6);
height: var(--fontSize32); height: var(--fontSize32);
background: #F56C50; background: #F56C50;
&.red-tag{
&.red-tag {
background: #F56C50; background: #F56C50;
} }
&.yellow-tag{
&.yellow-tag {
background: #FF9D0A; background: #FF9D0A;
} }
&.green-tag{
&.green-tag {
background: #35C376; background: #35C376;
} }
} }
.name{
.name {
flex-shrink: 0; flex-shrink: 0;
font-size: var(--fontSize24); font-size: var(--fontSize24);
text-align: center; text-align: center;
...@@ -220,19 +302,23 @@ ...@@ -220,19 +302,23 @@
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
&.red-tag{
&.red-tag {
background: #F247241f; background: #F247241f;
color: #F56C50; color: #F56C50;
} }
&.yellow-tag{
&.yellow-tag {
background: #FF9D0A2e; background: #FF9D0A2e;
color: #FF9D0A; color: #FF9D0A;
} }
&.green-tag{
&.green-tag {
background: #35C3762e; background: #35C3762e;
color: #35C376; color: #35C376;
} }
.score{
.score {
font-size: var(--fontSize20); font-size: var(--fontSize20);
font-weight: 400; font-weight: 400;
margin-left: var(--fontSize4); margin-left: var(--fontSize4);
...@@ -240,17 +326,20 @@ ...@@ -240,17 +326,20 @@
} }
} }
} }
.defense{
.defense {
text-align: center; text-align: center;
position: absolute; position: absolute;
bottom: var(--fontSize34); bottom: var(--fontSize34);
.defense-icon{
.defense-icon {
width: var(--fontSize30); width: var(--fontSize30);
height: var(--fontSize60); height: var(--fontSize60);
} }
} }
} }
.total-time{
.total-time {
width: 100%; width: 100%;
display: flex; display: flex;
align-items: center; align-items: center;
...@@ -258,7 +347,8 @@ ...@@ -258,7 +347,8 @@
position: relative; position: relative;
color: #757980; color: #757980;
margin-top: var(--fontSize10); margin-top: var(--fontSize10);
.line{
.line {
width: 100%; width: 100%;
height: var(--fontSize2); height: var(--fontSize2);
background: #D1DBE74D; background: #D1DBE74D;
...@@ -267,15 +357,18 @@ ...@@ -267,15 +357,18 @@
top: 50%; top: 50%;
transform: translateY(-50%); transform: translateY(-50%);
} }
.time-bt{
.time-bt {
background: #FAFAFA; background: #FAFAFA;
border-radius: var(--fontSize28); border-radius: var(--fontSize28);
font-size: var(--fontSize20); font-size: var(--fontSize20);
z-index: 10; z-index: 10;
&.pad-4{
&.pad-4 {
padding: 0 var(--fontSize8); padding: 0 var(--fontSize8);
} }
&.pad-20{
&.pad-20 {
padding: 0 var(--fontSize40); padding: 0 var(--fontSize40);
} }
} }
......
<!--packageEquity/pages/index/components/record-item/recordItem.wxml--> <!--packageEquity/pages/index/components/record-item/recordItem.wxml-->
<wxs src="../../../../index.wxs" module="filter"/> <wxs src="../../../../index.wxs" module="filter" />
<view class="content"> <view class="content">
<block wx:if="{{hideScore && showReason && itemInfo.violationReason}}">
<view class="violation-reason" catchtap="showViolationReason">处理意见</view>
</block>
<view class="record-header"> <view class="record-header">
<view class="base-message"> <view class="base-message">
<view> <view>
...@@ -10,7 +13,14 @@ ...@@ -10,7 +13,14 @@
</view> </view>
<text class="record-phone" data-phone="{{itemInfo.phoneNumber}}">{{filter.desensitizePhoneNumber(itemInfo.phoneNumber)}}</text> <text class="record-phone" data-phone="{{itemInfo.phoneNumber}}">{{filter.desensitizePhoneNumber(itemInfo.phoneNumber)}}</text>
</view> </view>
<view wx:if="{{itemInfo.employeeName && showEmployeeName}}" catchtap="phoneCall" data-phone="{{itemInfo.employeePhone}}" class="employee-name text-hide">{{itemInfo.employeeName}}</view> <view>
<view wx:if="{{itemInfo.employeeName && showEmployeeName }}" catchtap="phoneCall" data-phone="{{itemInfo.employeePhone}}" class="employee-name text-hide">{{itemInfo.employeeName}}</view>
<block wx:if="{{hideScore && itemInfo.violationStatus != null}}">
<view class="violation-status violation-{{itemInfo.violationStatus}}">
{{violationStatusText[itemInfo.violationStatus]}}
</view>
</block>
</view>
</view> </view>
<view class="record-message"> <view class="record-message">
<view> <view>
...@@ -18,7 +28,7 @@ ...@@ -18,7 +28,7 @@
<text class="record-label" wx:if="{{itemInfo.tag}}">{{itemInfo.tag}}</text> <text class="record-label" wx:if="{{itemInfo.tag}}">{{itemInfo.tag}}</text>
<text class="record-label-error" wx:if="{{itemInfo.qualityCheckScore <= 20 && itemInfo.qualityCheckScore !== null && itemInfo.qualityCheckScore !== undefined}}">疑似虚假接待</text> <text class="record-label-error" wx:if="{{itemInfo.qualityCheckScore <= 20 && itemInfo.qualityCheckScore !== null && itemInfo.qualityCheckScore !== undefined}}">疑似虚假接待</text>
</view> </view>
<view> <view wx:if="{{!hideScore}}">
<text class="record-amount" wx:if="{{itemInfo.orderStatus == 1 && itemInfo.orderAmount}}"> <text class="record-amount" wx:if="{{itemInfo.orderStatus == 1 && itemInfo.orderAmount}}">
<text>¥{{filter.convertCentsToYuan(itemInfo.orderAmount)}}</text> <text>¥{{filter.convertCentsToYuan(itemInfo.orderAmount)}}</text>
<text class="line"></text> <text class="line"></text>
...@@ -48,27 +58,25 @@ ...@@ -48,27 +58,25 @@
</view> </view>
</view> </view>
<!-- 质检环节 --> <!-- 质检环节 -->
<view class="tags-box" hidden="{{itemInfo.isNoShow}}"> <block wx:if="{{!hideScore}}">
<block wx:key="index" wx:for="{{itemInfo.receptionStaticInfoDetailDTOList}}" <view class="tags-box" hidden="{{itemInfo.isNoShow}}">
wx:for-item="item"> <block wx:key="index" wx:for="{{itemInfo.receptionStaticInfoDetailDTOList}}" wx:for-item="item">
<view class="tags-item" <view class="tags-item" catchtap="handleTagsTap" data-item="{{item}}" style="{{item.style}}">
catchtap="handleTagsTap" <view class="deep-colour-name {{item.customerClass}}"></view>
data-item="{{item}}" <view data-index="{{index}}" data-item="{{item}}" class="name {{item.customerClass}}">
style="{{item.style}}"> {{item.stage}}<text class="score" wx:if="{{item.totalGetScore}}">{{item.totalGetScore}}</text>
<view class="deep-colour-name {{item.customerClass}}"></view> </view>
<view data-index="{{index}}" data-item="{{item}}" class="name {{item.customerClass}}">
{{item.stage}}<text class="score" wx:if="{{item.totalGetScore}}">{{item.totalGetScore}}</text>
</view> </view>
</view> </block>
</block> </view>
</view> </block>
<!-- 攻防点 --> <!-- 攻防点 -->
<block wx:for="{{itemInfo.receptionStaticInfoODDetailDTOList}}" wx:key="index"> <block wx:for="{{itemInfo.receptionStaticInfoODDetailDTOList}}" wx:key="index">
<view class="defense" style="{{item.style}}"> <view class="defense" style="{{item.style}}">
<gl-image webp class="defense-icon" src="/equity/defense-icon.png" /> <gl-image webp class="defense-icon" src="/equity/defense-icon.png" />
</view> </view>
</block> </block>
</view> </view>
<view class="total-time"> <view class="total-time">
<view class="line"></view> <view class="line"></view>
<view class="time-bt pad-4">{{itemInfo.startTimeStr}}</view> <view class="time-bt pad-4">{{itemInfo.startTimeStr}}</view>
......
Component({
/**
* 组件的属性列表
*/
properties: {
tabList: Array,
},
/**
* 组件的初始数据
*/
data: {
tabIndex: 0
},
/**
* 组件的方法列表
*/
methods: {
change(e) {
const {
index,
item
} = e.currentTarget.dataset
this.setData({
tabIndex: index
})
this.triggerEvent('click', item)
}
}
})
\ No newline at end of file \ No newline at end of file
{
"component": true,
"usingComponents": {}
}
\ No newline at end of file \ No newline at end of file
/* packageEquity/pages/index/components/recordTab/recordTab.wxss */
.record-tab {
width: 100%;
height: var(--fontSize88);
display: flex;
box-sizing: border-box;
padding: 0 var(--fontSize40);
&-item {
flex: 1;
display: flex;
align-items: center;
justify-content: center;
height: 100%;
flex-shrink: 0;
color: #5a5e66;
font-size: var(--fontSize28);
font-weight: 700;
text-align: center;
position: relative;
transition: all .15s;
}
.active {
color: #347bff;
&::after {
position: absolute;
bottom: 0;
left: 50%;
transform: translateX(-50%);
content: '';
width: var(--fontSize64);
height: var(--fontSize4);
border-radius:var(--fontSize2) var(--fontSize2) 0 0;
background: #347bff;
}
}
}
\ No newline at end of file \ No newline at end of file
<view class="record-tab">
<block wx:for="{{tabList}}" wx:key="index">
<view class="record-tab-item {{tabIndex==index?'active':''}}" bindtap="change" data-index="{{index}}" data-item="{{item}}">
{{ item.text }}
</view>
</block>
</view>
\ No newline at end of file \ No newline at end of file
...@@ -206,6 +206,20 @@ Component({ ...@@ -206,6 +206,20 @@ Component({
isShowDefeatBtn: true, // 是否展示录单按钮入口 isShowDefeatBtn: true, // 是否展示录单按钮入口
loaded: false, loaded: false,
track_event_code: 'staff_reception_list', //埋点动作类型 track_event_code: 'staff_reception_list', //埋点动作类型
violationStatus: 1, //默认疑似违规
recordTabList: [{
text: '疑似违规',
value: 1
},
{
text: '未违规',
value: 0
},
{
text: '已违规',
value: 2
}
]
}, },
lifetimes: { lifetimes: {
...@@ -412,7 +426,8 @@ Component({ ...@@ -412,7 +426,8 @@ Component({
searchForm, searchForm,
isFilterDefeat, isFilterDefeat,
isFilterUpgrade, isFilterUpgrade,
storeRangeList storeRangeList,
violationStatus
} = this.data } = this.data
let userInfo = wx.$util.getUserInfo() || {}; let userInfo = wx.$util.getUserInfo() || {};
// 获取当前时间的时间戳 // 获取当前时间的时间戳
...@@ -421,6 +436,7 @@ Component({ ...@@ -421,6 +436,7 @@ Component({
let sevenDaysAgoDate = new Date().format('yyyy-MM-dd') let sevenDaysAgoDate = new Date().format('yyyy-MM-dd')
if (!searchForm.orderResult?.length) searchForm.orderResult = (isFilterDefeat ? [2] : []).concat(isFilterUpgrade ? [1] : []) if (!searchForm.orderResult?.length) searchForm.orderResult = (isFilterDefeat ? [2] : []).concat(isFilterUpgrade ? [1] : [])
let obj = { let obj = {
violationStatus,
startDateTime: searchForm?.startDateTime || new Date(sevenDaysAgoTimestamp).format('yyyy-MM-dd'), startDateTime: searchForm?.startDateTime || new Date(sevenDaysAgoTimestamp).format('yyyy-MM-dd'),
endDateTime: searchForm?.endDateTime || sevenDaysAgoDate, endDateTime: searchForm?.endDateTime || sevenDaysAgoDate,
customerName: searchForm?.customerName || '', customerName: searchForm?.customerName || '',
...@@ -439,10 +455,13 @@ Component({ ...@@ -439,10 +455,13 @@ Component({
}, },
// 详情页面 // 详情页面
goReceptionDetail(e) { goReceptionDetail(e) {
let { let {
item item
} = e.currentTarget.dataset } = e.currentTarget.dataset
wx.$router.go('receptionDetail', item) wx.$router.go('receptionDetail', {
...item,
hideScore:1
})
wx.$track.setTrackData(0, 'reception_detail', { wx.$track.setTrackData(0, 'reception_detail', {
batchId: item.batchId batchId: item.batchId
}, '', 0) }, '', 0)
...@@ -625,6 +644,15 @@ Component({ ...@@ -625,6 +644,15 @@ Component({
sortVal: 4 sortVal: 4
}) })
} }
if (menuList.every((item) => item.menuText != "违规录音处理")) {
menuList.push({
menuText: "违规录音处理",
icon: "illegal-recording",
navigateToUrl: '/packageEquity/pages/receptionRecords/receptionRecords?hideScore=1',
default: true,
sortVal: 10
})
}
this.setData({ this.setData({
storeRangeList: data, storeRangeList: data,
listData: [], listData: [],
...@@ -929,14 +957,20 @@ Component({ ...@@ -929,14 +957,20 @@ Component({
// 获取是否是导师 // 获取是否是导师
getIsMentor() { getIsMentor() {
return new Promise(resolve => { return new Promise(resolve => {
let { menuList } = this.data let {
menuList
} = this.data
let userInfo = wx.$util.getUserInfo(); let userInfo = wx.$util.getUserInfo();
if (userInfo?.isSuper || userInfo?.loginRole == 3 || userInfo.loginRole == 5 || userInfo?.loginRole == 6) return if (userInfo?.isSuper || userInfo?.loginRole == 3 || userInfo.loginRole == 5 || userInfo?.loginRole == 6) return
commonApi commonApi
.getStaffMentorFlag({ .getStaffMentorFlag({
staffPhone: userInfo?.phone staffPhone: userInfo?.phone
}).then(res => { }).then(res => {
let { code, data, message } = res let {
code,
data,
message
} = res
if (code == 0) { if (code == 0) {
let index = menuList.findIndex((v) => v.menuText == "工作日报"); let index = menuList.findIndex((v) => v.menuText == "工作日报");
if (index > -1) menuList.splice(index, 1); if (index > -1) menuList.splice(index, 1);
...@@ -1322,7 +1356,7 @@ Component({ ...@@ -1322,7 +1356,7 @@ Component({
} = this.data } = this.data
let index_d = menuList.findIndex((e) => e.menuText == "话术萃取"); let index_d = menuList.findIndex((e) => e.menuText == "话术萃取");
let userInfo = wx.$util.getUserInfo() let userInfo = wx.$util.getUserInfo()
if ((userInfo?.isSuper || userInfo?.loginRole == 6 || userInfo?.loginRole == 3 || this.data.mentorFlag) &&index_d == -1) if ((userInfo?.isSuper || userInfo?.loginRole == 6 || userInfo?.loginRole == 3 || this.data.mentorFlag) && index_d == -1)
menuList.push({ menuList.push({
menuText: "话术萃取", menuText: "话术萃取",
icon: "extract_icon", icon: "extract_icon",
...@@ -1475,9 +1509,11 @@ Component({ ...@@ -1475,9 +1509,11 @@ Component({
this.back() this.back()
this.getData() this.getData()
}, },
// 查看更多接待记录 // 查看更多违规记录
goPage() { goPage() {
wx.$router.go('packageEquity.receptionRecords') wx.navigateTo({
url: '/packageEquity/pages/receptionRecords/receptionRecords?hideScore=1',
})
wx.$track.setTrackData(0, 'see_more') wx.$track.setTrackData(0, 'see_more')
}, },
onHide() { onHide() {
...@@ -1489,6 +1525,21 @@ Component({ ...@@ -1489,6 +1525,21 @@ Component({
// 飞行督导不展示接待记录暂时取消埋点 // 飞行督导不展示接待记录暂时取消埋点
let userInfo = wx.$util.getUserInfo() || {}; let userInfo = wx.$util.getUserInfo() || {};
if (userInfo?.loginRole != 6) this.onPageHide() if (userInfo?.loginRole != 6) this.onPageHide()
},
recordTabClick(e) {
let {
value
} = e.detail, {
violationStatus
} = this.data
if (value == violationStatus) return
this.setData({
listData: [],
nothing: false,
violationStatus: value
})
this.getReceptionList()
wx.$track.setTrackData(0, 'staff_reception_search', this.getParams())
} }
}, },
}); });
\ No newline at end of file \ No newline at end of file
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
"component": true, "component": true,
"usingComponents": { "usingComponents": {
"task-dialog": "/components/TaskDialog/TaskDialog", "task-dialog": "/components/TaskDialog/TaskDialog",
"record-item": "./components/record-item/recordItem" "record-item": "./components/record-item/recordItem",
"record-tab": "./components/recordTab/recordTab"
} }
} }
\ No newline at end of file \ No newline at end of file
...@@ -182,10 +182,11 @@ box-shadow: 0 var(--fontSize24) var(--fontSize24) -var(--fontSize12) #d3d9e680 ...@@ -182,10 +182,11 @@ box-shadow: 0 var(--fontSize24) var(--fontSize24) -var(--fontSize12) #d3d9e680
.menu_box { .menu_box {
display: grid; display: grid;
grid-template-columns: repeat(4, var(--fontSize100)); grid-template-columns: repeat(4, minmax(var(--fontSize100),1fr));
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
padding:var(--fontSize16) var(--fontSize38) 0; padding:var(--fontSize16) 0;
// padding:var(--fontSize16) var(--fontSize38) 0;
background: #FFFFFF; background: #FFFFFF;
border-radius:var(--fontSize16); border-radius:var(--fontSize16);
} }
...@@ -509,6 +510,13 @@ swiper{ ...@@ -509,6 +510,13 @@ swiper{
height: var(--fontSize36); height: var(--fontSize36);
} }
} }
.tab-box{
position: sticky;
top: var(--fontSize80);
left: 0;
z-index: 1000;
background: #F7F8FA;
}
.list-box{ .list-box{
padding: 0 var(--fontSize8); padding: 0 var(--fontSize8);
.date-section { .date-section {
...@@ -520,7 +528,7 @@ swiper{ ...@@ -520,7 +528,7 @@ swiper{
align-items: center; align-items: center;
&.sticky-date-section{ &.sticky-date-section{
position: sticky; position: sticky;
top: var(--fontSize80); top: var(--fontSize168);
left: 0; left: 0;
z-index: 1000; z-index: 1000;
} }
......
...@@ -113,6 +113,9 @@ ...@@ -113,6 +113,9 @@
<gl-image webp src="/equity/screen-icon.png" /> <gl-image webp src="/equity/screen-icon.png" />
</view> </view>
</view> </view>
<view class="tab-box">
<record-tab tabList="{{recordTabList}}" bindclick="recordTabClick"></record-tab>
</view>
<view class="list-box"> <view class="list-box">
<block wx:if="{{filter.isShowEmpty(listData)}}"> <block wx:if="{{filter.isShowEmpty(listData)}}">
<block wx:for="{{listData}}" wx:key="date" wx:if="{{item.receptionStaticInfoDTOList.length}}"> <block wx:for="{{listData}}" wx:key="date" wx:if="{{item.receptionStaticInfoDTOList.length}}">
...@@ -145,7 +148,7 @@ ...@@ -145,7 +148,7 @@
<view class="card-line"></view> <view class="card-line"></view>
</view> </view>
<view class="card-item"> <view class="card-item">
<record-item record="{{record}}" showEmployeeName="{{showEmployeeName}}" isShowDefeatBtn="{{isShowDefeatBtn}}"></record-item> <record-item record="{{record}}" showEmployeeName="{{showEmployeeName}}" isShowDefeatBtn="{{isShowDefeatBtn}}" hideScore></record-item>
</view> </view>
</view> </view>
</block> </block>
......
...@@ -78,7 +78,14 @@ ...@@ -78,7 +78,14 @@
margin-left: var(--fontSize16); margin-left: var(--fontSize16);
line-height: var(--fontSize40); line-height: var(--fontSize40);
} }
.color-2{
color: #FF6053;
font-weight: 700;
}
.color-1{
color: #7F80FE;
font-weight: 700;
}
.appeal-btn { .appeal-btn {
display: none; display: none;
margin-left: var(--fontSize46); margin-left: var(--fontSize46);
......
...@@ -157,9 +157,10 @@ Page({ ...@@ -157,9 +157,10 @@ Page({
this.track_businessParam = { this.track_businessParam = {
batchId: options.batchId batchId: options.batchId
} //埋点业务参数 } //埋点业务参数
let {typeLists} = this.data
this.setData({ this.setData({
record: options record: options,
typeLists:options.hideScore ? typeLists.splice(0,1) : typeLists
}, () => { }, () => {
this.setAudio() this.setAudio()
}) })
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<view class="bg"></view> <view class="bg"></view>
<view class="reception-wrap" style="padding-top:{{ navBarHeight }}px;position: relative;"> <view class="reception-wrap" style="padding-top:{{ navBarHeight }}px;position: relative;">
<view class="reception-info" wx:if="{{record}}"> <view class="reception-info" wx:if="{{record}}">
<record-item record="{{record}}"></record-item> <record-item record="{{record}}" hideScore="{{record.hideScore}}" showReason="{{record.violationReason}}"></record-item>
</view> </view>
<view class="reception-nav"> <view class="reception-nav">
<view class="reception-types"> <view class="reception-types">
......
...@@ -11,6 +11,7 @@ Page({ ...@@ -11,6 +11,7 @@ Page({
* 页面的初始数据 * 页面的初始数据
*/ */
data: { data: {
navBarTitle: '加载中...',
navBarHeight: 113.5, navBarHeight: 113.5,
show_reception_confirm: false, show_reception_confirm: false,
showReceptionRendering: false, showReceptionRendering: false,
...@@ -23,12 +24,31 @@ Page({ ...@@ -23,12 +24,31 @@ Page({
isShowDefeatBtn: true, isShowDefeatBtn: true,
loaded: false, loaded: false,
track_event_code: 'staff_reception_list', //埋点动作类型 track_event_code: 'staff_reception_list', //埋点动作类型
violationStatus: 1, //默认疑似违规
recordTabList: [{
text: '疑似违规',
value: 1
},
{
text: '未违规',
value: 0
},
{
text: '已违规',
value: 2
}
]
}, },
/** /**
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onLoad(options) { onLoad(options) {
if (options.hideScore) {
this.setData({
hideScore: true
})
}
let userInfo = wx.$util.getUserInfo() || {} let userInfo = wx.$util.getUserInfo() || {}
if (userInfo?.isSuper || userInfo?.loginRole == 3 || userInfo.loginRole == 5 || userInfo?.loginRole == 6) this.setData({ if (userInfo?.isSuper || userInfo?.loginRole == 3 || userInfo.loginRole == 5 || userInfo?.loginRole == 6) this.setData({
showEmployeeName: true, showEmployeeName: true,
...@@ -36,7 +56,8 @@ Page({ ...@@ -36,7 +56,8 @@ Page({
}) })
// 超管获取所有质检门店/员工 // 超管获取所有质检门店/员工
this.setData({ this.setData({
nothing: false nothing: false,
navBarTitle: options.hideScore ? '违规录音处理' : (userInfo && (userInfo.isSuper || userInfo.loginRole == 3 || userInfo.loginRole == 5 || userInfo.loginRole == 6)) ? '接待记录' : (userInfo.default4SStoreInfo && userInfo.default4SStoreInfo.merchantName)
}) })
if (userInfo?.isSuper || userInfo?.loginRole == 3 || userInfo.loginRole == 5 || userInfo?.loginRole == 6) { if (userInfo?.isSuper || userInfo?.loginRole == 3 || userInfo.loginRole == 5 || userInfo?.loginRole == 6) {
this.getStoreList() this.getStoreList()
...@@ -68,13 +89,15 @@ Page({ ...@@ -68,13 +89,15 @@ Page({
searchForm, searchForm,
isFilterDefeat, isFilterDefeat,
isFilterUpgrade, isFilterUpgrade,
storeRangeList storeRangeList,
violationStatus
} = this.data } = this.data
let userInfo = wx.$util.getUserInfo() || {}; let userInfo = wx.$util.getUserInfo() || {};
const now = new Date(); const now = new Date();
const threeMonthsAgo = new Date(now.getFullYear(), now.getMonth() - 3, now.getDate() + 1) const threeMonthsAgo = new Date(now.getFullYear(), now.getMonth() - 3, now.getDate() + 1)
if (!searchForm.orderResult?.length) searchForm.orderResult = (isFilterDefeat ? [2] : []).concat(isFilterUpgrade ? [1] : []) if (!searchForm.orderResult?.length) searchForm.orderResult = (isFilterDefeat ? [2] : []).concat(isFilterUpgrade ? [1] : [])
let obj = { let obj = {
violationStatus,
startDateTime: searchForm?.startDateTime || new Date(threeMonthsAgo).format('yyyy-MM-dd'), startDateTime: searchForm?.startDateTime || new Date(threeMonthsAgo).format('yyyy-MM-dd'),
endDateTime: searchForm?.endDateTime || now.format('yyyy-MM-dd'), endDateTime: searchForm?.endDateTime || now.format('yyyy-MM-dd'),
customerName: searchForm?.customerName || '', customerName: searchForm?.customerName || '',
...@@ -294,9 +317,14 @@ Page({ ...@@ -294,9 +317,14 @@ Page({
}, },
goto(e) { goto(e) {
let { let {
hideScore
} = this.data, {
record record
} = e.currentTarget.dataset } = e.currentTarget.dataset
wx.$router.go('packageEquity.receptionDetail', record) wx.$router.go('packageEquity.receptionDetail', {
...record,
hideScore
})
wx.$track.setTrackData(0, 'reception_detail', { wx.$track.setTrackData(0, 'reception_detail', {
batchId: record.batchId batchId: record.batchId
}) })
...@@ -304,7 +332,21 @@ Page({ ...@@ -304,7 +332,21 @@ Page({
back() { back() {
wx.$router.back() wx.$router.back()
}, },
recordTabClick(e) {
let {
value
} = e.detail, {
violationStatus
} = this.data
if (value == violationStatus) return
this.setData({
listData: [],
nothing: false,
violationStatus: value
})
this.getReceptionList()
wx.$track.setTrackData(0, 'staff_reception_search', this.getParams())
},
/** /**
* 生命周期函数--监听页面初次渲染完成 * 生命周期函数--监听页面初次渲染完成
*/ */
......
{ {
"usingComponents": { "usingComponents": {
"reception-screen": "../index/components/receptionScreen/receptionScreen", "reception-screen": "../index/components/receptionScreen/receptionScreen",
"record-item": "../index/components/record-item/recordItem" "record-item": "../index/components/record-item/recordItem",
"record-tab": "../index/components/recordTab/recordTab"
}, },
"navigationStyle": "custom" "navigationStyle": "custom"
} }
\ No newline at end of file \ No newline at end of file
...@@ -47,6 +47,9 @@ ...@@ -47,6 +47,9 @@
height: var(--fontSize36); height: var(--fontSize36);
} }
} }
.tab-box{
background: #fff;
}
.list-box{ .list-box{
.box-content{ .box-content{
position: relative; position: relative;
...@@ -58,7 +61,7 @@ ...@@ -58,7 +61,7 @@
height: var(--fontSize72); height: var(--fontSize72);
line-height: var(--fontSize70); line-height: var(--fontSize70);
padding-left: var(--fontSize32); padding-left: var(--fontSize32);
background: #F7F8FA; background: #f7f8fa;
display: flex; display: flex;
align-items: center; align-items: center;
position: sticky; position: sticky;
......
...@@ -6,11 +6,12 @@ ...@@ -6,11 +6,12 @@
<block wx:else> <block wx:else>
<navigation-bar class="navigation-header" bindnavbarReady="navbarReady" showBack navStyle="{{'background-color: #FFFFFF;box-shadow:none;' }}" bindback="back"> <navigation-bar class="navigation-header" bindnavbarReady="navbarReady" showBack navStyle="{{'background-color: #FFFFFF;box-shadow:none;' }}" bindback="back">
<view class="navigation-title"> <view class="navigation-title">
<view class="navigation-title-text text-hide">{{(userInfo && (userInfo.isSuper || userInfo.loginRole== 3 || userInfo.loginRole== 5 || userInfo.loginRole == 6)) ? '接待记录' : (userInfo.default4SStoreInfo && userInfo.default4SStoreInfo.merchantName)}}</view> <view class="navigation-title-text text-hide">{{navBarTitle}}</view>
</view> </view>
</navigation-bar> </navigation-bar>
</block> </block>
<view class="records-page" style="padding-top:{{ navBarHeight }}px;position: relative;"> <view class="records-page" style="padding-top:{{ navBarHeight }}px;position: relative;">
<view class="screen-box"> <view class="screen-box">
<view> <view>
<!-- <text class="title">接待记录</text> --> <!-- <text class="title">接待记录</text> -->
...@@ -21,7 +22,12 @@ ...@@ -21,7 +22,12 @@
<gl-image webp src="/equity/screen-icon.png" /> <gl-image webp src="/equity/screen-icon.png" />
</view> </view>
</view> </view>
<scroll-view scroll-y class="list-box" enable-back-to-top refresher-enabled="{{true}}" bindrefresherrefresh="refreshListData" bindscrolltolower="onBottomRefresh" style="height: calc(100% - var(--fontSize80));" scroll-top="{{scrollTop}}" refresher-threshold="104" refresher-triggered="{{triggered}}"> <block wx:if="{{hideScore}}">
<view class="tab-box">
<record-tab tabList="{{recordTabList}}" bindclick="recordTabClick"></record-tab>
</view>
</block>
<scroll-view scroll-y class="list-box" enable-back-to-top refresher-enabled="{{true}}" bindrefresherrefresh="refreshListData" bindscrolltolower="onBottomRefresh" style="height: calc(100% - var(--fontSize168));" scroll-top="{{scrollTop}}" refresher-threshold="104" refresher-triggered="{{triggered}}">
<view class="box-content {{!filter.isShowEmpty(listData) ? 'empty-contant' : ''}}"> <view class="box-content {{!filter.isShowEmpty(listData) ? 'empty-contant' : ''}}">
<block wx:if="{{filter.isShowEmpty(listData)}}"> <block wx:if="{{filter.isShowEmpty(listData)}}">
<block wx:for="{{listData}}" wx:key="date" wx:if="{{item.receptionStaticInfoDTOList.length}}"> <block wx:for="{{listData}}" wx:key="date" wx:if="{{item.receptionStaticInfoDTOList.length}}">
...@@ -54,7 +60,7 @@ ...@@ -54,7 +60,7 @@
<view class="card-line"></view> <view class="card-line"></view>
</view> </view>
<view class="card-item" wx:key="subIndex"> <view class="card-item" wx:key="subIndex">
<record-item record="{{record}}" showEmployeeName="{{showEmployeeName}}" isShowDefeatBtn="{{isShowDefeatBtn}}"></record-item> <record-item record="{{record}}" showEmployeeName="{{showEmployeeName}}" isShowDefeatBtn="{{isShowDefeatBtn}}" hideScore="{{hideScore}}"></record-item>
</view> </view>
</view> </view>
</block> </block>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!