|
@@ -757,10 +757,10 @@
|
|
|
}
|
|
}
|
|
|
if (this.ShowApcheckChooseTime) {
|
|
if (this.ShowApcheckChooseTime) {
|
|
|
let _time1 = this.isShowApcheckList.objTime.value.fromDate
|
|
let _time1 = this.isShowApcheckList.objTime.value.fromDate
|
|
|
- _time1 = _time1.replace('-', '/')
|
|
|
|
|
|
|
+ _time1 = _time1.replace(/-/g, '/')
|
|
|
let _start = new Date(_time1)
|
|
let _start = new Date(_time1)
|
|
|
let _time2 = this.isShowApcheckList.objTime.value.fromDate
|
|
let _time2 = this.isShowApcheckList.objTime.value.fromDate
|
|
|
- _time2 = _time2.replace('-', '/')
|
|
|
|
|
|
|
+ _time2 = _time2.replace(/-/g, '/')
|
|
|
let _end = new Date(_time2)
|
|
let _end = new Date(_time2)
|
|
|
// 获取筛选时间的开始时间为对账的开始时间
|
|
// 获取筛选时间的开始时间为对账的开始时间
|
|
|
apCheck.beginDate = _start.getTime()
|
|
apCheck.beginDate = _start.getTime()
|
|
@@ -769,7 +769,7 @@
|
|
|
} else {
|
|
} else {
|
|
|
this.isShowApcheckList.startTime = this.isShowApcheckList.thisMonth + '-01'
|
|
this.isShowApcheckList.startTime = this.isShowApcheckList.thisMonth + '-01'
|
|
|
let _time1 = this.isShowApcheckList.startTime
|
|
let _time1 = this.isShowApcheckList.startTime
|
|
|
- _time1 = _time1.replace('-', '/')
|
|
|
|
|
|
|
+ _time1 = _time1.replace(/-/g, '/')
|
|
|
let _d = new Date(_time1)
|
|
let _d = new Date(_time1)
|
|
|
_d.setDate(1)
|
|
_d.setDate(1)
|
|
|
_d.setMonth(_d.getMonth() + 1)
|
|
_d.setMonth(_d.getMonth() + 1)
|
|
@@ -777,7 +777,7 @@
|
|
|
|
|
|
|
|
// 获取筛选时间的开始时间为对账的开始时间
|
|
// 获取筛选时间的开始时间为对账的开始时间
|
|
|
let _time2 = this.isShowApcheckList.startTime
|
|
let _time2 = this.isShowApcheckList.startTime
|
|
|
- _time2 = _time2.replace('-', '/')
|
|
|
|
|
|
|
+ _time2 = _time2.replace(/-/g, '/')
|
|
|
apCheck.beginDate = new Date(_time2).getTime()
|
|
apCheck.beginDate = new Date(_time2).getTime()
|
|
|
// 获取筛选的截止时间为对账的截止时间
|
|
// 获取筛选的截止时间为对账的截止时间
|
|
|
apCheck.endDate = _d.getTime()
|
|
apCheck.endDate = _d.getTime()
|
|
@@ -833,10 +833,10 @@
|
|
|
this.isShowApcheckList.showApcheck = true
|
|
this.isShowApcheckList.showApcheck = true
|
|
|
if (this.ShowApcheckChooseTime) {
|
|
if (this.ShowApcheckChooseTime) {
|
|
|
let _time1 = this.isShowApcheckList.objTime.value.fromDate
|
|
let _time1 = this.isShowApcheckList.objTime.value.fromDate
|
|
|
- _time1 = _time1.replace('-', '/')
|
|
|
|
|
|
|
+ _time1 = _time1.replace(/-/g, '/')
|
|
|
let _start = new Date(_time1)
|
|
let _start = new Date(_time1)
|
|
|
let _time2 = this.isShowApcheckList.objTime.value.toDate
|
|
let _time2 = this.isShowApcheckList.objTime.value.toDate
|
|
|
- _time2 = _time1.replace('-', '/')
|
|
|
|
|
|
|
+ _time2 = _time1.replace(/-/g, '/')
|
|
|
let _end = new Date(_time2)
|
|
let _end = new Date(_time2)
|
|
|
this.isShowApcheckList.startTime = _start.getFullYear() + '-' + (_start.getMonth() + 1) + '-' + _start.getDate()
|
|
this.isShowApcheckList.startTime = _start.getFullYear() + '-' + (_start.getMonth() + 1) + '-' + _start.getDate()
|
|
|
this.isShowApcheckList.endTime = _end.getFullYear() + '-' + (_end.getMonth() + 1) + '-' + _end.getDate()
|
|
this.isShowApcheckList.endTime = _end.getFullYear() + '-' + (_end.getMonth() + 1) + '-' + _end.getDate()
|
|
@@ -923,7 +923,7 @@
|
|
|
},
|
|
},
|
|
|
computedTime(num, val) {
|
|
computedTime(num, val) {
|
|
|
if ((typeof num === 'object') && num.constructor === Date) {} else {
|
|
if ((typeof num === 'object') && num.constructor === Date) {} else {
|
|
|
- num = num.replace('-', '/')
|
|
|
|
|
|
|
+ num = num.replace(/-/g, '/')
|
|
|
}
|
|
}
|
|
|
let _d = new Date(num)
|
|
let _d = new Date(num)
|
|
|
if (val !== undefined) {
|
|
if (val !== undefined) {
|
|
@@ -941,9 +941,9 @@
|
|
|
let _fromDate = this.outTimeMonth + '-01 00:00:00'
|
|
let _fromDate = this.outTimeMonth + '-01 00:00:00'
|
|
|
let _d = this.computedTime(_fromDate)
|
|
let _d = this.computedTime(_fromDate)
|
|
|
let _endDate = _d.getFullYear() + '-' + (_d.getMonth() + 1) + '-' + _d.getDate() + ' 00:00:00'
|
|
let _endDate = _d.getFullYear() + '-' + (_d.getMonth() + 1) + '-' + _d.getDate() + ' 00:00:00'
|
|
|
- _endDate.replace('-', '/')
|
|
|
|
|
|
|
+ _endDate.replace(/-/g, '/')
|
|
|
_endDate = new Date(_endDate).getTime()
|
|
_endDate = new Date(_endDate).getTime()
|
|
|
- _fromDate = _fromDate.replace('-', '/')
|
|
|
|
|
|
|
+ _fromDate = _fromDate.replace(/-/g, '/')
|
|
|
_fromDate = new Date(_fromDate).getTime()
|
|
_fromDate = new Date(_fromDate).getTime()
|
|
|
_url = '/sale/apCheck/customer'
|
|
_url = '/sale/apCheck/customer'
|
|
|
itemL = {
|
|
itemL = {
|