Browse Source

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

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

Loading…
Cancel
Save