|
@@ -239,7 +239,7 @@ export default {
|
|
|
this.$router.push({ name: 'pettyAccount' })
|
|
|
},
|
|
|
getPassYearFormatDate() {
|
|
|
- if (!localStorage.getItem('startDate') && !localStorage.getItem('endDate')) {
|
|
|
+ if (!localStorage.getItem('pettyStartDate') && !localStorage.getItem('pettyEndDate')) {
|
|
|
var nowDate = new Date()
|
|
|
var _date = new Date()
|
|
|
nowDate.setTime(nowDate.getTime() - 24 * 60 * 60 * 1000 * 30)
|
|
@@ -265,16 +265,16 @@ export default {
|
|
|
this.startDate = year + '-' + month + '-' + strDate
|
|
|
this.endDate = year1 + '-' + month1 + '-' + strDate1
|
|
|
} else {
|
|
|
- this.startDate = localStorage.getItem('startDate')
|
|
|
- this.endDate = localStorage.getItem('endDate')
|
|
|
+ this.startDate = localStorage.getItem('pettyStartDate')
|
|
|
+ this.endDate = localStorage.getItem('pettyEndDate')
|
|
|
}
|
|
|
this.value = [this.startDate, this.endDate]
|
|
|
},
|
|
|
getList() {
|
|
|
pettCashList({
|
|
|
compId: localStorage.getItem('ws-pf_compId'),
|
|
|
- startDate: localStorage.getItem('startDate'),
|
|
|
- endDate: localStorage.getItem('endDate'),
|
|
|
+ startDate: localStorage.getItem('pettyStartDate')?localStorage.getItem('pettyStartDate'):this.startDate,
|
|
|
+ endDate: localStorage.getItem('pettyEndDate')?localStorage.getItem('pettyEndDate'):this.endDate,
|
|
|
searchKeyWord: this.searchKeyWord,
|
|
|
currentPage: this.currentPage,
|
|
|
pageSize: this.pageSize,
|
|
@@ -312,8 +312,8 @@ export default {
|
|
|
if (this.value) {
|
|
|
this.startDate = this.value[0]
|
|
|
this.endDate = this.value[1]
|
|
|
- localStorage.setItem('startDate', this.startDate)
|
|
|
- localStorage.setItem('endDate', this.endDate)
|
|
|
+ localStorage.setItem('pettyStartDate', this.startDate)
|
|
|
+ localStorage.setItem('pettyEndDate', this.endDate)
|
|
|
}
|
|
|
this.getList()
|
|
|
},
|