|
@@ -510,8 +510,15 @@ export default {
|
|
|
this.$nextTick(() => {
|
|
|
this.getOrderBaseStatusCount({
|
|
|
orderSmallTypeText: pam.orderSmallTypeText || '',
|
|
|
- startTime: `${new Date(this.value1).getFullYear()}-1-1 00:00:00`,
|
|
|
- endTime: `${new Date(this.value1).getFullYear()}-12-31 23:59:59`
|
|
|
+ ...(() => {
|
|
|
+ if (this.value1) {
|
|
|
+ return {
|
|
|
+ startTime: `${new Date(this.value1).getFullYear()}-1-1 00:00:00`,
|
|
|
+ endTime: `${new Date(this.value1).getFullYear()}-12-31 23:59:59`
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return {}
|
|
|
+ })()
|
|
|
})
|
|
|
})
|
|
|
}
|