|
@@ -105,12 +105,14 @@ export default {
|
105
|
105
|
return status
|
106
|
106
|
},
|
107
|
107
|
lateDay () {
|
108
|
|
- const nowdata = new Date()
|
109
|
|
- return toolClass.diffDate(new Date(this.data.EndDate), nowdata)
|
|
108
|
+ const nowdata = toolClass.dateFormat(new Date(),'yyyy-MM-dd 00:00:00')
|
|
109
|
+ const EndDate = new Date(toolClass.dateFormat(new Date(this.data.EndDate),'yyyy-MM-dd 00:00:00'))
|
|
110
|
+ return toolClass.diffDate(EndDate, nowdata)
|
110
|
111
|
},
|
111
|
112
|
borrowDay () {
|
112
|
|
- const nowdata = new Date()
|
113
|
|
- return toolClass.diffDate(new Date(this.data.BorrowDate), nowdata)
|
|
113
|
+ const nowdata = toolClass.dateFormat(new Date(),'yyyy-MM-dd 00:00:00')
|
|
114
|
+ const BorrowDate = new Date(toolClass.dateFormat(new Date(this.data.BorrowDate),'yyyy-MM-dd 00:00:00'))
|
|
115
|
+ return toolClass.diffDate(BorrowDate, nowdata)
|
114
|
116
|
}
|
115
|
117
|
},
|
116
|
118
|
components: {
|