|
|
|
@ -92,7 +92,7 @@ Component({ |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
onRestart: function () { |
|
|
|
this.fetchStatisticsInfo(this.data.vdate) |
|
|
|
this.fetchStatisticsInfo() |
|
|
|
}, |
|
|
|
onEvent: function (message) { |
|
|
|
if (message.what == 888) { |
|
|
|
@ -125,7 +125,7 @@ Component({ |
|
|
|
wx.navigateTo({ url: `/pages/process/outside-list/index` }) |
|
|
|
} |
|
|
|
}, |
|
|
|
fetchStatisticsInfo: function(vdate, loading){ |
|
|
|
fetchStatisticsInfo: function(loading){ |
|
|
|
getStatisticsInfo(this.data.form).then(result => { |
|
|
|
if(Number(result.data.priceOrderNum) > 0){ |
|
|
|
this.data.tabList[0].badge = Number(result.data.priceOrderNum) |
|
|
|
@ -197,7 +197,7 @@ Component({ |
|
|
|
this.data.form.endTime = util.formatDate(end, 'Y-M-D') + ' 00:00:00' |
|
|
|
this.setData({ show: false, vdateString }) |
|
|
|
this.trigEvent(9) |
|
|
|
this.fetchStatisticsInfo([start.getTime(), end.getTime()]) |
|
|
|
this.fetchStatisticsInfo() |
|
|
|
}, |
|
|
|
toAuths: function(){ |
|
|
|
wx.navigateTo({ url: '/pages/htmls/auths/index' }) |
|
|
|
@ -217,7 +217,7 @@ Component({ |
|
|
|
event.emit('EventMessage', { what: 999, desc: 'changeFactory' }) |
|
|
|
this.setData({ visible: false, factoryId: item.id }) |
|
|
|
this.trigEvent(9) |
|
|
|
this.fetchStatisticsInfo(this.data.vdate, true) |
|
|
|
this.fetchStatisticsInfo(true) |
|
|
|
}, |
|
|
|
trigEvent: function(zIndex){ |
|
|
|
setTimeout(() => { |
|
|
|
|