From d92305389698f46a32aec5a1a1d03f32f3438aa3 Mon Sep 17 00:00:00 2001 From: wangyufei <2267742828@qq.com> Date: Thu, 11 Jul 2024 13:36:32 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=A9=E6=96=99=E5=8C=85=E8=A3=85=E4=BF=A1?= =?UTF-8?q?=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/wms/itempackage/index.ts | 10 ++++++++++ .../basicDataManage/itemManage/itempackage/index.vue | 9 +++++++-- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/src/api/wms/itempackage/index.ts b/src/api/wms/itempackage/index.ts index 0917dc431..352a0c9b1 100644 --- a/src/api/wms/itempackage/index.ts +++ b/src/api/wms/itempackage/index.ts @@ -39,6 +39,16 @@ export const getItempackagingPageTree = async (params) => { return await request.get({ url: `/wms/itempackage/pageTree`, params }) } } +// 查询物料包装信息树形列表 +export const getItempackagingPageTreeSCP = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/wms/itempackage/seniorTreeSCP', data }) + } else { + return await request.get({ url: `/wms/itempackage/pageTreeSCP`, params }) + } +} // 查询物料包装信息 列表--供应商发货申请 export const getItempackagingPageBySupplierdeliver = async (params) => { if (params.isSearch) { diff --git a/src/views/wms/basicDataManage/itemManage/itempackage/index.vue b/src/views/wms/basicDataManage/itemManage/itempackage/index.vue index df88aeb52..7eb681e33 100644 --- a/src/views/wms/basicDataManage/itemManage/itempackage/index.vue +++ b/src/views/wms/basicDataManage/itemManage/itempackage/index.vue @@ -91,14 +91,19 @@ const route = useRoute() // 路由信息 const routeName = ref() routeName.value = route.name const tableColumns = ref(Itempackaging.allSchemas.tableColumns) - +if(routeName.value.includes('SCP')){ + tableColumns.value = tableColumns.value.filter(item=>item.field!='action') +} // 字段设置 更新主列表字段 const updataTableColumns = (val) => { + if(routeName.value.includes('SCP')){ + val = val.filter(item=>item.field!='action') + } tableColumns.value = val } const { tableObject, tableMethods } = useTable({ - getListApi: ItempackagingApi.getItempackagingPageTree // 分页接口 + getListApi:routeName.value.includes('SCP')?ItempackagingApi.getItempackagingPageTreeSCP:ItempackagingApi.getItempackagingPageTree // 分页接口 }) // 获得表格的各种操作