|
|
@ -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 |
|
|
|