UpgradeItem.js
1.28 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
// packageEquity/pages/clueList/components/UpgradeItem/UpgradeItem.js
import itemMixin from '../itemMixins'
import { checkDailyReport } from "~/store/ModalToQueueControl";
Component({
behaviors: [itemMixin],
/**
* 组件的属性列表
*/
properties: {
data: Object
},
/**
* 组件的初始数据
*/
data: {
sceneTypeStatusMap: [{
label: '权益服务',
key: '0'
},
{
label: '精品加装',
key: '1'
},
],
orderObj: [{
label: '升级价格',
key: 'totalPrice',
unit: '¥'
},
{
label: '支付时间',
key: 'successDate'
}
],
status: {
1: '待跟进',
2: '战败',
3: '待支付',
4: '已支付',
6: '已评价',
9: '已撤销',
10: '已关闭',
11: '已失效',
12: '已退款',
}
},
/**
* 组件的方法列表
*/
methods: {
async jump() {
// 校验是否填写昨日日报
let staffCheck = await checkDailyReport(true);
if (staffCheck) return false;;
const {
data
} = this.data
let params = {
isClue: true
}
if (data.customerInfo) params.customerInfo = data.customerInfo
wx.$router.go('createOrderCarQuotationSimple', params)
}
}
})