Browse Source

WMS: ——> bug 自制备件发货申请

hella_online_20240829
gaojs 5 months ago
parent
commit
0974555f13
  1. 24
      src/views/wms/deliversettlementManage/deliver/deliverJobMain/index.vue
  2. 24
      src/views/wms/deliversettlementManage/deliver/deliverRecordMain/index.vue

24
src/views/wms/deliversettlementManage/deliver/deliverJobMain/index.vue

@ -359,10 +359,28 @@ const handleExport = async () => {
//
const searchFormClick = (searchData) => {
tableObject.params = {
isSearch: true,
filters: searchData.filters
tableObject.params.isSearch = true
console.log('searchData',searchData.filters);
if(!searchData.filters){//
searchData.filters = []
}
let filters = [...searchData.filters]
if(!filters.find(item=>item.column=='business_type')){
if ( routeName.value == 'DeliverJobMain') {
filters = [...filters,{
action:'==',
column:'business_type',
value:'Deliver',
}]
} else if ( routeName.value == 'ZZBJDeliverJobMain') {
filters = [...filters,{
action:'==',
column:'business_type',
value:'ZZBJDeliver',
}]
}
}
tableObject.params.filters = filters
getList() //
}

24
src/views/wms/deliversettlementManage/deliver/deliverRecordMain/index.vue

@ -200,10 +200,28 @@ const handlePoint = async (row) => {
//
const searchFormClick = (searchData) => {
tableObject.params = {
isSearch: true,
filters: searchData.filters
tableObject.params.isSearch = true
console.log('searchData',searchData.filters);
if(!searchData.filters){//
searchData.filters = []
}
let filters = [...searchData.filters]
if(!filters.find(item=>item.column=='business_type')){
if ( routeName.value == 'DeliverRecordMain') {
filters = [...filters,{
action:'==',
column:'business_type',
value:'Deliver',
}]
} else if ( routeName.value == 'ZZBJDeliverRecordMain') {
filters = [...filters,{
action:'==',
column:'business_type',
value:'ZZBJDeliver',
}]
}
}
tableObject.params.filters = filters
getList() //
}

Loading…
Cancel
Save