@ -261,7 +261,10 @@ const daysInMonths = ref([])
const onChange = (field, value, formRef)=>{
if(field=='beginMonth'){
let days = []
for (let i=1;i<=dayjs(`${value}-01`).daysInMonth();i++){
let maxday = dayjs(`${value}-01`).daysInMonth()
if(value==2) maxday = 29
for (let i=1;i<=maxday;i++){
days.push({
value:i,
label:i
@ -64,6 +64,14 @@ export const SupplierApbalanceCalendar = useCrudSchemas(reactive<CrudSchema[]>([
isSearch: true,
dictType: DICT_TYPE.TRUE_FALSE,
dictClass: 'string',
form: {
component: 'Switch',
value: 'TRUE',
componentProps: {
inactiveValue: 'FALSE',
activeValue: 'TRUE'
}
},
{
label: '备注',