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

Loading…
Cancel
Save