|
@@ -348,30 +348,6 @@
|
|
this.$util.msg(error.msg, 2000)
|
|
this.$util.msg(error.msg, 2000)
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- getDate(type) {
|
|
|
|
- const date = new Date()
|
|
|
|
- let year = date.getFullYear()
|
|
|
|
- let month = date.getMonth() + 1
|
|
|
|
- let day = date.getDate()
|
|
|
|
- if (type === 'start') {
|
|
|
|
- year = year - 1
|
|
|
|
- } else if (type === 'end') {
|
|
|
|
- year = year + 1
|
|
|
|
- }
|
|
|
|
- month = month > 9 ? month : '0' + month
|
|
|
|
- day = day > 9 ? day : '0' + day
|
|
|
|
- return `${year}-${month}-${day}`
|
|
|
|
- },
|
|
|
|
- bindStartDateChange(event) {
|
|
|
|
- //开始时间
|
|
|
|
- console.log('开始时间==>', event.detail.value)
|
|
|
|
- this.listQuery.startDate = event.detail.value
|
|
|
|
- },
|
|
|
|
- bindEndDateChange(event) {
|
|
|
|
- //结束时间
|
|
|
|
- console.log('结束时间==>', event.detail.value)
|
|
|
|
- this.listQuery.endDate = event.detail.value
|
|
|
|
- },
|
|
|
|
receiptDetail(receipt) {
|
|
receiptDetail(receipt) {
|
|
console.log('this.tabCurrents',this.tabCurrents)
|
|
console.log('this.tabCurrents',this.tabCurrents)
|
|
console.log('this.receipt',receipt.receiptType)
|
|
console.log('this.receipt',receipt.receiptType)
|
|
@@ -526,6 +502,30 @@
|
|
})
|
|
})
|
|
return stateColor
|
|
return stateColor
|
|
},
|
|
},
|
|
|
|
+ getDate(type) {
|
|
|
|
+ const date = new Date()
|
|
|
|
+ let year = date.getFullYear()
|
|
|
|
+ let month = date.getMonth() + 1
|
|
|
|
+ let day = date.getDate()
|
|
|
|
+ if (type === 'start') {
|
|
|
|
+ year = year - 1
|
|
|
|
+ } else if (type === 'end') {
|
|
|
|
+ year = year + 1
|
|
|
|
+ }
|
|
|
|
+ month = month > 9 ? month : '0' + month
|
|
|
|
+ day = day > 9 ? day : '0' + day
|
|
|
|
+ return `${year}-${month}-${day}`
|
|
|
|
+ },
|
|
|
|
+ bindStartDateChange(event) {
|
|
|
|
+ //开始时间
|
|
|
|
+ console.log('开始时间==>', event.detail.value)
|
|
|
|
+ this.listQuery.startDate = event.detail.value
|
|
|
|
+ },
|
|
|
|
+ bindEndDateChange(event) {
|
|
|
|
+ //结束时间
|
|
|
|
+ console.log('结束时间==>', event.detail.value)
|
|
|
|
+ this.listQuery.endDate = event.detail.value
|
|
|
|
+ },
|
|
rDrawer() {
|
|
rDrawer() {
|
|
//弹出抽屉
|
|
//弹出抽屉
|
|
this.rightDrawer = true
|
|
this.rightDrawer = true
|
|
@@ -577,6 +577,8 @@
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
this.listQuery.pageNum = 1
|
|
this.listQuery.pageNum = 1
|
|
this.currents = 0
|
|
this.currents = 0
|
|
|
|
+ this.loadding = false
|
|
|
|
+ this.pullUpOn = false
|
|
this.getOrderDatainit()
|
|
this.getOrderDatainit()
|
|
uni.stopPullDownRefresh()
|
|
uni.stopPullDownRefresh()
|
|
}, 200)
|
|
}, 200)
|