diff --git a/src/api/wms/receivedCalendar/index.ts b/src/api/wms/receivedCalendar/index.ts index eab7247b4..0754e291e 100644 --- a/src/api/wms/receivedCalendar/index.ts +++ b/src/api/wms/receivedCalendar/index.ts @@ -51,4 +51,4 @@ export const importTemplate = () => { // 查询当月存在数据的白班和晚班的日期 export const getMonthReceivedCalendar = async (data: ReceivedCalendarVO) => { return await request.put({ url: `/basic/received-calendar/getMonthReceivedCalendar`, data }) -} \ No newline at end of file +} diff --git a/src/views/wms/basicDataManage/supplierManage/receivedCalendar/index.vue b/src/views/wms/basicDataManage/supplierManage/receivedCalendar/index.vue index 907671447..9222f318e 100644 --- a/src/views/wms/basicDataManage/supplierManage/receivedCalendar/index.vue +++ b/src/views/wms/basicDataManage/supplierManage/receivedCalendar/index.vue @@ -228,6 +228,10 @@ const getData=async () =>{ const today = new Date(); const year = today.getFullYear(); const month = today.getMonth(); // 注意:月份是从0开始的,0代表1月,11代表12月 + dayData.value = await ReceivedCalendarApi.getMonthReceivedCalendar({ + receivedNumber:'', + calendarDate:year + '-' + (month + 1 >= 10 ? month + 1 : '0' +( month + 1)), + }) await getDatesInCurrentMonth(year,month) } // 使用函数