diff --git a/src/views/wms/supplierManage/supplierApbalanceCalendar/index.vue b/src/views/wms/supplierManage/supplierApbalanceCalendar/index.vue index b14e79362..191636fa7 100644 --- a/src/views/wms/supplierManage/supplierApbalanceCalendar/index.vue +++ b/src/views/wms/supplierManage/supplierApbalanceCalendar/index.vue @@ -162,8 +162,21 @@ const buttonTableClick = async (val, row) => { /** 添加/修改操作 */ const basicFormRef = ref() const openForm = (type: string, row?: any) => { - beginDay.value = row['beginDay'] - endDay.value = row['endDay'] + if(row){ + beginDay.value = row['beginDay'] + endDay.value = row['endDay'] + let days = [] + let maxday = dayjs(`${row['beginMonth']}-01`).daysInMonth() + if(row['beginMonth']==2) maxday = 29 + + for (let i=1;i<=maxday;i++){ + days.push({ + value:i, + label:i + }) + } + daysInMonths.value = days + } basicFormRef.value.open(type, row) }