Browse Source

参数去重

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

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

@ -560,15 +560,21 @@ 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(!filters.find(item=>item.column=='business_type')){
if ( routeName.value == 'DeliverRequestMain') { if ( routeName.value == 'DeliverRequestMain') {
filters = [...filters,{ filters = [...filters,{
businessType: 'Deliver' action:'==',
column:'business_type',
value:'Deliver',
}] }]
} else if ( routeName.value == 'ZZBJDeliverRequestMain') { } else if ( routeName.value == 'ZZBJDeliverRequestMain') {
filters = [...filters,{ filters = [...filters,{
businessType: 'ZZBJDeliver' action:'==',
column:'business_type',
value:'ZZBJDeliver',
}] }]
} }
}
tableObject.params.filters = filters tableObject.params.filters = filters
getList() // getList() //
} }

Loading…
Cancel
Save