diff --git a/anrui-scm/anrui-scm-ui/src/views/bikerebate/bicyclerebatewithholding/bicyclerebatewithholdingAdd.vue b/anrui-scm/anrui-scm-ui/src/views/bikerebate/bicyclerebatewithholding/bicyclerebatewithholdingAdd.vue index 483b5dd477..de7cf4f234 100644 --- a/anrui-scm/anrui-scm-ui/src/views/bikerebate/bicyclerebatewithholding/bicyclerebatewithholdingAdd.vue +++ b/anrui-scm/anrui-scm-ui/src/views/bikerebate/bicyclerebatewithholding/bicyclerebatewithholdingAdd.vue @@ -137,7 +137,10 @@ export default { let year = date.getFullYear() // 本年 let month = date.getMonth() // 上一月 let day = date.getDate() // 本日 - if (day > 6) { + if (month == 1 && day < 7) { + month = 12 + } + if (month != 1 && day > 6) { month = date.getMonth() + 1 // 本月 } this.formobj.withApply = year + '年' + month + '月'