|
|
@ -47,6 +47,7 @@ import { API } from '../../../../js/api'; |
|
|
|
import { servers } from '../../../../js/server'; |
|
|
|
import util from '../../../../utils/util'; |
|
|
|
import { mapState } from 'vuex'; |
|
|
|
import { WRITE_OFF_STORE_NAME } from '../../../../js/once_name'; |
|
|
|
export default { |
|
|
|
computed: { |
|
|
|
...mapState([ 'brandInfo' ]), |
|
|
@ -71,7 +72,16 @@ export default { |
|
|
|
}) |
|
|
|
}, |
|
|
|
onLoad(){ |
|
|
|
this.refreshPage(); |
|
|
|
// 默认显示1个月内的日期 |
|
|
|
let _startDate = util.formatDate({ |
|
|
|
date: new Date().getTime() - 30*24*60*60*1000 |
|
|
|
}).substr(0, 10); |
|
|
|
let _endDate = util.formatDate({ }).substr(0, 10); |
|
|
|
this.startTime = _startDate; |
|
|
|
this.endTime = _endDate; |
|
|
|
// 默认显示1个月内的日期 |
|
|
|
|
|
|
|
this.$nextTick(_=> this.refreshPage()); |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
refreshPage(){ |
|
|
@ -99,6 +109,7 @@ export default { |
|
|
|
this.$nextTick(_=>this.refreshPage()); |
|
|
|
}, |
|
|
|
toOperate(){ |
|
|
|
util.$_emit(WRITE_OFF_STORE_NAME, null); |
|
|
|
util.routeTo(`/pages/write_off/operate/operate?type=mall`, 'nT'); |
|
|
|
}, |
|
|
|
getList({ brand_id, page = 1, page_size = 15, stime = '', etime = '' }){ |
|
|
|