You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
87 lines
1.9 KiB
87 lines
1.9 KiB
import {
|
|
icEvent12345,
|
|
icEvent12345Process,
|
|
icEventOld, icEventOldProcess
|
|
} from "../../../../../utils/statisticsApi";
|
|
|
|
Page({
|
|
data: {
|
|
detail: {},
|
|
id: '',
|
|
process: [],
|
|
isDispatch: false,
|
|
isSupervision: false,
|
|
is12345: true,
|
|
isShowOrder: false
|
|
},
|
|
onLoad(options) {
|
|
this.setData({
|
|
id: options.id,
|
|
is12345: options.is12345 == 2 ? false : true
|
|
})
|
|
this.getData()
|
|
},
|
|
getData() {
|
|
if (this.data.is12345) {
|
|
icEvent12345({icEventId: this.data.id}).then(res => {
|
|
this.getDetail(res.data);
|
|
})
|
|
icEvent12345Process({icEventId: this.data.id}).then(res => {
|
|
this.getProcess(res.data);
|
|
})
|
|
} else {
|
|
icEventOld({icEventId: this.data.id}).then(res => {
|
|
this.getDetail(res.data);
|
|
})
|
|
icEventOldProcess({icEventId: this.data.id}).then(res => {
|
|
this.getProcess(res.data);
|
|
})
|
|
}
|
|
},
|
|
getDetail(data) {
|
|
this.setData({
|
|
detail: data
|
|
})
|
|
},
|
|
getProcess(data) {
|
|
this.setData({
|
|
process: data
|
|
})
|
|
},
|
|
dispatchOpen() {
|
|
this.setData({
|
|
isDispatch: true
|
|
})
|
|
},
|
|
dispatchClose() {
|
|
this.setData({
|
|
isDispatch: false
|
|
})
|
|
},
|
|
supervisionOpen() {
|
|
this.setData({
|
|
isSupervision: true
|
|
})
|
|
},
|
|
supervisionClose() {
|
|
this.setData({
|
|
isSupervision: false
|
|
})
|
|
},
|
|
handleDispatchOrder(){
|
|
this.dispatchClose()
|
|
this.setData({
|
|
isShowOrder: true
|
|
})
|
|
},
|
|
orderClose() {
|
|
this.setData({
|
|
isShowOrder: false
|
|
})
|
|
},
|
|
callphone() {
|
|
wx.makePhoneCall({
|
|
phoneNumber: this.data.detail.mobile,
|
|
})
|
|
}
|
|
})
|