contentItem.js
1.97 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
// packageEquity/pages/aiInspection/components/contentItem/contentItem.js
Component({
/**
* 组件的属性列表
*/
properties: {
item: Object,
bussinessType: Number,
time: String
},
/**
* 组件的初始数据
*/
data: {
isPack: true,
storeIndex: 0,
contentObject: [{
label: '工牌编号',
key: 'badgeId'
},
{
label: '录音时长',
key: '_seconds',
},
{
label: '预计接待批次',
key: 'batchNum'
},
{
label: '当日到店量/人',
key: 'enterReceptionBatch'
},
{
label: '异常占比',
key: 'abnormalProportion',
addHtml: 'abnormalProportionHtml'
},
{
label: '归属门店',
key: 'merchantDTOList',
addHtml: 'store',
tempKey: 'tempStore'
},
],
},
/**
* 组件的方法列表
*/
pageLifetimes: {
show: function () {
this.setData({
storeIndex:0
})
},
},
methods: {
goto(params) {
if (this.data.bussinessType == 2) {
wx.$router.go('packageEquity.orderList', params)
} else {
wx.$router.go('packageEquity.equityQualityOrderList', params)
}
},
jumpDetail(e) {
let {
time,
storeIndex,
item: {
merchantDTOList
}
} = this.data,
merchantId = merchantDTOList[storeIndex].merchantNo, {
staffUuid,
phoneNumberLists
} = merchantDTOList[storeIndex], params = {
searchdate: time,
staffUuid,
merchantId,
phoneNumberLists
};
if (merchantDTOList.length > 1) {
let thisPage = wx.$router.getPageInstance()
thisPage.setData({
isStorePop: true,
merchantDTOList
})
return
}
this.goto(params)
},
packHandle() {
this.setData({
isPack: !this.data.isPack
})
}
}
})