Browse Source

参数去重

master_hella_20240701
yufei0306 6 months ago
parent
commit
ae9e7e5485
  1. 22
      src/views/wms/deliversettlementManage/deliver/deliverRequestMain/index.vue

22
src/views/wms/deliversettlementManage/deliver/deliverRequestMain/index.vue

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

Loading…
Cancel
Save