From 2bafe563781707ec6143b84589a1d6bd88e077bf Mon Sep 17 00:00:00 2001 From: yunuo970428 <405378304@qq.com> Date: Fri, 6 Sep 2024 17:17:41 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E4=B8=93=E9=A1=B9=E8=BF=94?= =?UTF-8?q?=E5=88=A9=E6=A0=B8=E5=AF=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../relation/yiheduizhuanxiangfanli.vue | 13 +++++++------ .../relation/yiheduizhuanxiangfanli.vue | 13 +++++++------ 2 files changed, 14 insertions(+), 12 deletions(-) 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 {