|
|
@ -1,7 +1,7 @@ |
|
|
|
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' |
|
|
|
import { dateFormatter } from '@/utils/formatTime' |
|
|
|
const { t } = useI18n() // 国际化
|
|
|
|
|
|
|
|
const monthList = [{ label:'01', value:'01' },{ label:'02', value:'02' },{ label:'03', value:'03' },{ label:'04', value:'04' },{ label:'05', value:'05' },{ label:'06', value:'06' },{ label:'07', value:'07' },{ label:'08', value:'08' },{ label:'09', value:'09' },{ label:'10', value:'10' },{ label:'11', value:'11' },{ label:'12', value:'12' }] |
|
|
|
/** |
|
|
|
* @returns {Array} 账期日历 |
|
|
|
*/ |
|
|
@ -14,6 +14,16 @@ export const Accountcalendar = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
width: 150, |
|
|
|
fixed: 'left' |
|
|
|
}, |
|
|
|
formatter: dateFormatter, |
|
|
|
form: { |
|
|
|
component: 'DatePicker', |
|
|
|
componentProps: { |
|
|
|
style: {width:'100%'}, |
|
|
|
type: 'year', |
|
|
|
dateFormat: 'YYYY', |
|
|
|
valueFormat: 'x', |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '月', |
|
|
@ -22,6 +32,18 @@ export const Accountcalendar = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
table: { |
|
|
|
width: 150 |
|
|
|
}, |
|
|
|
form: { |
|
|
|
component: 'Select', |
|
|
|
api: () => monthList, |
|
|
|
componentProps: { |
|
|
|
style: {width:'100%'}, |
|
|
|
optionsAlias: { |
|
|
|
labelField: 'label', |
|
|
|
valueField: 'value' |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '描述', |
|
|
@ -53,6 +75,14 @@ export const Accountcalendar = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
} |
|
|
|
}, |
|
|
|
isSearch: true, |
|
|
|
search: { |
|
|
|
show: true, |
|
|
|
component: 'DatePicker', |
|
|
|
componentProps: { |
|
|
|
valueFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
|
type: 'daterange', |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '结束时间', |
|
|
@ -76,6 +106,14 @@ export const Accountcalendar = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
} |
|
|
|
}, |
|
|
|
isSearch: true, |
|
|
|
search: { |
|
|
|
show: true, |
|
|
|
component: 'DatePicker', |
|
|
|
componentProps: { |
|
|
|
valueFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
|
type: 'daterange', |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '转换生效时间', |
|
|
@ -99,6 +137,14 @@ export const Accountcalendar = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
} |
|
|
|
}, |
|
|
|
isSearch: true, |
|
|
|
search: { |
|
|
|
show: true, |
|
|
|
component: 'DatePicker', |
|
|
|
componentProps: { |
|
|
|
valueFormat: 'YYYY-MM-DD HH:mm:ss', |
|
|
|
type: 'daterange', |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '是否可用', |
|
|
|