@ -35,6 +35,10 @@ const getPageParams = (params)=>{
params.endDate = params.dueDate[1].format('YYYY-MM-DD')
}
if (!params.dueDate || params.dueDate.length == 0) {
params.startDate = ''
params.endDate = ''
params.dueDate = ''
//计划员
@ -85,6 +85,10 @@ const getPageParams = (params)=>{
@ -265,7 +265,7 @@ export const DemandforecastingMain = useCrudSchemas(reactive<CrudSchema[]>([
isForm: false,
search: {
component: 'DatePicker',
value: [dayjs(), dayjs().subtract(-3,'month')],
// value: [dayjs(), dayjs().subtract(-3,'month')],
componentProps: {
valueFormat: 'YYYY-MM-DD',
type: 'daterange',
@ -171,7 +171,7 @@ const onSearchChange = (field, value)=>{
const searchClick = async (data)=>{
console.log('searchClick',data)
console.log('3444',tableObject.params)
await setSearchParamsHead(data)
// updateDateTableColumns()
setSearchParams(data)