Browse Source

参数去重

master_hella_20240701
yufei0306 5 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) => {
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() //

Loading…
Cancel
Save