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){