|
|
@ -75,11 +75,20 @@ const routeName = ref() |
|
|
|
routeName.value = route.name |
|
|
|
const tableColumns = ref(Package.allSchemas.tableColumns) |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
* Package2 regularParams = procure采购件标签记录页面 |
|
|
|
* Package3 regularParams = manufacture 制造件标签记录页面 |
|
|
|
* Package4 regularParams = utensil 器具标签记录页面 |
|
|
|
*/ |
|
|
|
const regularParams = ref(route.name == 'Package2'?'procure':route.name == 'Package3'?'manufacture':route.name == 'Package4'?'utensil':'') |
|
|
|
|
|
|
|
// 字段设置 更新主列表字段 |
|
|
|
const updataTableColumns = (val) => { |
|
|
|
tableColumns.value = val |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 查询列表页面参数设置 |
|
|
|
const searchTableParams = ref([ |
|
|
|
//{ |
|
|
@ -102,7 +111,7 @@ const searchTableSuccess = (formField, searchField, val, basicFormRef, type, row |
|
|
|
const { tableObject, tableMethods } = useTable({ |
|
|
|
getListApi: PackageApi.getPackagePage // 分页接口 |
|
|
|
}) |
|
|
|
|
|
|
|
tableObject.params.regularParams = regularParams.value |
|
|
|
// 获得表格的各种操作 |
|
|
|
const { getList, setSearchParams } = tableMethods |
|
|
|
|
|
|
@ -233,7 +242,7 @@ const handleImport = () => { |
|
|
|
// 导入附件弹窗所需的参数 |
|
|
|
const importTemplateData = reactive({ |
|
|
|
templateUrl: '', |
|
|
|
templateTitle: '包装导入模版.xls' |
|
|
|
templateTitle: '包装导入模版.xlsx' |
|
|
|
}) |
|
|
|
|
|
|
|
// 导入成功之后 |
|
|
@ -245,7 +254,8 @@ const importSuccess = () => { |
|
|
|
const searchFormClick = (searchData) => { |
|
|
|
tableObject.params = { |
|
|
|
isSearch: true, |
|
|
|
filters: searchData.filters |
|
|
|
filters: searchData.filters, |
|
|
|
regularParams:regularParams.value |
|
|
|
} |
|
|
|
getList() // 刷新当前列表 |
|
|
|
} |
|
|
|