|
|
@ -560,14 +560,20 @@ const importSuccess = () => { |
|
|
|
const searchFormClick = (searchData) => { |
|
|
|
tableObject.params.isSearch = true |
|
|
|
let filters = [...searchData.filters] |
|
|
|
if ( routeName.value == 'DeliverRequestMain') { |
|
|
|
filters = [...filters,{ |
|
|
|
businessType: 'Deliver' |
|
|
|
}] |
|
|
|
} else if ( routeName.value == 'ZZBJDeliverRequestMain') { |
|
|
|
filters = [...filters,{ |
|
|
|
businessType: 'ZZBJDeliver' |
|
|
|
}] |
|
|
|
if(!filters.find(item=>item.column=='business_type')){ |
|
|
|
if ( routeName.value == 'DeliverRequestMain') { |
|
|
|
filters = [...filters,{ |
|
|
|
action:'==', |
|
|
|
column:'business_type', |
|
|
|
value:'Deliver', |
|
|
|
}] |
|
|
|
} else if ( routeName.value == 'ZZBJDeliverRequestMain') { |
|
|
|
filters = [...filters,{ |
|
|
|
action:'==', |
|
|
|
column:'business_type', |
|
|
|
value:'ZZBJDeliver', |
|
|
|
}] |
|
|
|
} |
|
|
|
} |
|
|
|
tableObject.params.filters = filters |
|
|
|
getList() // 刷新当前列表 |
|
|
|