Browse Source

HL-5424:查询参数为空问题修复

hella_online_20240904
tengxiaofei 2 months ago
parent
commit
7dd0b69cda
  1. 11
      src/views/wms/inventoryjobManage/containermanage/containerMainRequest/index.vue

11
src/views/wms/inventoryjobManage/containermanage/containerMainRequest/index.vue

@ -1,7 +1,7 @@
<template>
<ContentWrap>
<!-- 搜索工作栏 -->
<Search :schema="ContainerMainRequest.allSchemas.searchSchema" @search="setSearchParams" @reset="setSearchParams" />
<Search :schema="ContainerMainRequest.allSchemas.searchSchema" @search="searchList" @reset="setSearchParams" />
</ContentWrap>
<!-- 列表头部 -->
@ -106,6 +106,7 @@ const toLocationCode = ref()
const importFileName = ref()
const route = useRoute() //
const routeName = ref()
const searchType = ref()
routeName.value = route.name
const tableColumns = ref(ContainerMainRequest.allSchemas.tableColumns)
console.log(99 , routeName.value)
@ -120,6 +121,7 @@ const { tableObject, tableMethods } = useTable({
tableObject.params = {
type:'RETURN'
}
searchType.value = 'RETURN'
ContainerMainRequest.allSchemas.formSchema.forEach(item=>{
if(item.field == 'type'){
item.value = "RETURN"
@ -130,6 +132,7 @@ const { tableObject, tableMethods } = useTable({
tableObject.params = {
type:'MOVE'
}
searchType.value = 'MOVE'
ContainerMainRequest.allSchemas.formSchema.forEach(item=>{
if(item.field == 'type'){
item.value = "MOVE"
@ -140,6 +143,7 @@ const { tableObject, tableMethods } = useTable({
tableObject.params = {
type: 'DELIVER',
}
searchType.value = 'DELIVER'
//
ContainerMainRequest.allSchemas.formSchema.forEach(item=>{
if(item.field == 'type'){
@ -273,6 +277,11 @@ ContainerDetailRequest.allSchemas.tableFormColumns.map(item => {
}
})
const searchList = (model)=>{
model.type = searchType.value
setSearchParams(model)
}
//
const updataTableColumns = (val) => {
tableColumns.value = val

Loading…
Cancel
Save