From a19a43b56768181d51b74ea8fc041d1307bcb5c7 Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Mon, 8 Jul 2024 16:55:08 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=A9=E6=96=99=E5=8C=85=E8=A3=85=E7=9A=84?= =?UTF-8?q?=E6=A0=91=E7=8A=B6=E5=9B=BE=E7=9A=84=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/wms/itempackage/index.ts | 11 ++++++++++- .../basicDataManage/itemManage/itempackage/index.vue | 8 +------- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/src/api/wms/itempackage/index.ts b/src/api/wms/itempackage/index.ts index 555a174b0..0917dc431 100644 --- a/src/api/wms/itempackage/index.ts +++ b/src/api/wms/itempackage/index.ts @@ -29,7 +29,16 @@ export const getItempackagingPage = async (params) => { return await request.get({ url: `/wms/itempackage/page`, params }) } } - +// 查询物料包装信息树形列表 +export const getItempackagingPageTree = async (params) => { + if (params.isSearch) { + delete params.isSearch + const data = {...params} + return await request.post({ url: '/wms/itempackage/seniorTree', data }) + } else { + return await request.get({ url: `/wms/itempackage/pageTree`, 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 bbd6a7ee5..14ac5e459 100644 --- a/src/views/wms/basicDataManage/itemManage/itempackage/index.vue +++ b/src/views/wms/basicDataManage/itemManage/itempackage/index.vue @@ -98,7 +98,7 @@ const updataTableColumns = (val) => { } const { tableObject, tableMethods } = useTable({ - getListApi: ItempackagingApi.getItempackagingPage // 分页接口 + getListApi: ItempackagingApi.getItempackagingPageTree // 分页接口 }) // 获得表格的各种操作 @@ -330,12 +330,6 @@ const searchFormClick = (searchData) => { /** 初始化 **/ onMounted(async () => { await getList() - tableObject.tableList.forEach(item=>{ - item.children=[{ - packUnit:'300000100' - }] - }) importTemplateData.templateUrl = await ItempackagingApi.importTemplate() }) -@/api/wms/itempackage