diff --git a/anrui-scm/anrui-scm-ui/src/views/specialrebate/specialrebatecheck/relation/yiheduizhuanxiangfanli.vue b/anrui-scm/anrui-scm-ui/src/views/specialrebate/specialrebatecheck/relation/yiheduizhuanxiangfanli.vue index 7b5c7184e3..b8318a4495 100644 --- a/anrui-scm/anrui-scm-ui/src/views/specialrebate/specialrebatecheck/relation/yiheduizhuanxiangfanli.vue +++ b/anrui-scm/anrui-scm-ui/src/views/specialrebate/specialrebatecheck/relation/yiheduizhuanxiangfanli.vue @@ -206,10 +206,12 @@ export default { }, handleSelectionChange(row) { var dateTime = '' - let date = new Date() - let year = date.getFullYear() // 年 - let month = date.getMonth() + 1 // 月 - dateTime = year + '年' + month + '月' + var nowDate = new Date() + var date = { + year: nowDate.getFullYear(), + month: nowDate.getMonth() + 1 + } + dateTime = date.year + '年' + (date.month >= 10 ? date.month : '0' + date.month) + '月' const aa = [] const bb = [] row.forEach((element) => { @@ -240,7 +242,6 @@ export default { }) this.sids = aa this.sids_list = bb - console.log('sids', this.sids, bb, 99999999) }, // 查询列表信息 getList() { @@ -248,7 +249,7 @@ export default { req.checkApplyGetAlreadyUploadVehRebate(this.listQuery).then((response) => { console.log('列表查询结果:', response) this.listLoading = false - if (response.success && response.data && response.data.total > 0) { + if (response.success) { this.list = response.data.records this.listQuery.total = response.data.total } else { diff --git a/anrui-scm/anrui-scm-ui/src/views/workFlow/zhuanxiangfanliheduiFlow/relation/yiheduizhuanxiangfanli.vue b/anrui-scm/anrui-scm-ui/src/views/workFlow/zhuanxiangfanliheduiFlow/relation/yiheduizhuanxiangfanli.vue index 609c867569..a820cb46ff 100644 --- a/anrui-scm/anrui-scm-ui/src/views/workFlow/zhuanxiangfanliheduiFlow/relation/yiheduizhuanxiangfanli.vue +++ b/anrui-scm/anrui-scm-ui/src/views/workFlow/zhuanxiangfanliheduiFlow/relation/yiheduizhuanxiangfanli.vue @@ -206,10 +206,12 @@ export default { }, handleSelectionChange(row) { var dateTime = '' - let date = new Date() - let year = date.getFullYear() // 年 - let month = date.getMonth() + 1 // 月 - dateTime = year + '年' + month + '月' + var nowDate = new Date() + var date = { + year: nowDate.getFullYear(), + month: nowDate.getMonth() + 1 + } + dateTime = date.year + '年' + (date.month >= 10 ? date.month : '0' + date.month) + '月' const aa = [] const bb = [] row.forEach((element) => { @@ -240,7 +242,6 @@ export default { }) this.sids = aa this.sids_list = bb - console.log('sids', this.sids, bb, 99999999) }, // 查询列表信息 getList() { @@ -248,7 +249,7 @@ export default { req.checkApplyGetAlreadyUploadVehRebate(this.listQuery).then((response) => { console.log('列表查询结果:', response) this.listLoading = false - if (response.success && response.data && response.data.total > 0) { + if (response.success) { this.list = response.data.records this.listQuery.total = response.data.total } else {