From 2ec9280709563dbab4bad8f2b1f3c31e08bd7ec6 Mon Sep 17 00:00:00 2001 From: yufei_wang <2267742828@qq.com> Date: Mon, 18 Nov 2024 14:23:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BE=9B=E5=BA=94=E5=95=86=E5=AF=B9=E8=B4=A6?= =?UTF-8?q?=E7=AE=A1=E7=90=86--=20=E6=97=A5=E6=9C=9F=E4=B8=8B=E6=8B=89?= =?UTF-8?q?=E6=A1=86=E5=A4=9A=E5=80=BC=E6=83=85=E5=86=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../supplierApbalance/supplierApbalanceMain/index.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/views/wms/supplierManage/supplierApbalance/supplierApbalanceMain/index.vue b/src/views/wms/supplierManage/supplierApbalance/supplierApbalanceMain/index.vue index 97f94a0d7..3a095656d 100644 --- a/src/views/wms/supplierManage/supplierApbalance/supplierApbalanceMain/index.vue +++ b/src/views/wms/supplierManage/supplierApbalance/supplierApbalanceMain/index.vue @@ -391,11 +391,11 @@ const selectChange = (value,field)=>{ //更新日期数组 let dayObj = daysInMonths.value.find(item=>item['beginMonth']==month.value) if(dayObj){ - for(let i= Number(dayObj['beginDay']);i<=Number(dayObj['endDay']);i++){ - dayList.value.push({ - label:i, - value:i - }) + if(Array.isArray(dayObj['beginDay'])){ + dayList.value = dayObj['beginDay'].map(item=>({ + label:item, + value:item + })) } } if(dayList.value.length>0){