Browse Source

no message

feature/v1.5
xpz2018 4 years ago
parent
commit
189050c3ed
1 changed files with 4 additions and 4 deletions
  1. 8
      pages/process/index/index.js

8
pages/process/index/index.js

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

Loading…
Cancel
Save