diff --git a/src/components/Detail/src/Detail.vue b/src/components/Detail/src/Detail.vue index bb80073d3..1f29a55ed 100644 --- a/src/components/Detail/src/Detail.vue +++ b/src/components/Detail/src/Detail.vue @@ -1,5 +1,6 @@ @@ -41,7 +43,6 @@ import Tabs from '@/components/Tabs/src/Tabs.vue' import { ItemBasic } from '@/utils/disposition/tableColumns.ts' import { ItemBasicTabsList } from '@/utils/disposition/tabsList.ts' import { getItembasic } from '@/api/wms/itembasic' -const { query } = useRoute() // 路由的查询 import * as ItembasicApi from '@/api/wms/itembasic' import * as UserApi from '@/api/system/user' @@ -53,16 +54,7 @@ tabsList.value.unshift({ label: '详情', prop: 'Detail' }) -// 搜索参数 -const queryParams = reactive({ - title: '', - name: undefined, - status: undefined, - pageNo: 1, - pageSize: 100 -}) -const queryFormRef = ref() // 搜索的表单 -// const formLabel = ref(ItemBasic)//form表单label列表 + // 附件默认数据 const annexData = reactive({ annexList: [{ @@ -114,16 +106,6 @@ const changeRecordData = reactive({ }] }) const detailData = ref("")//详情数据 -// 导入附件弹窗所需的参数 -const importTemplateData = reactive({ - templateUrl: '', - templateTitle: '导入模版99.xls' -}) -onMounted(async () => { - // 获取详情 - detailData.value = await getItembasic(query.id) - importTemplateData.templateUrl = await UserApi.importUserTemplate() -}) // 导入成功之后 const importSuccess = () => { @@ -178,7 +160,7 @@ const change = (item, index) => { } // 获得表格的各种操作 -const { getList, setSearchParams } = tableMethods +const { getList } = tableMethods getList() /** 打开弹窗 */ @@ -188,8 +170,6 @@ const openDetail = async (id?: number) => { detailLoading.value = true try { detailData.value = await ItembasicApi.getItembasic(id) - // detailRef.value.setValues(data) - } finally { detailLoading.value = false } @@ -198,7 +178,9 @@ const openDetail = async (id?: number) => { defineExpose({ openDetail }) // 提供 open 方法,用于打开弹窗 diff --git a/src/views/wms/itembasic/index.vue b/src/views/wms/itembasic/index.vue index 27ad333ca..0781f1803 100644 --- a/src/views/wms/itembasic/index.vue +++ b/src/views/wms/itembasic/index.vue @@ -3,422 +3,35 @@   - - - + - + }" v-model:pageSize="tableObject.pageSize" v-model:currentPage="tableObject.currentPage">
- - - - - + + + + +