Browse Source

物料包装的树状图的接口

master_hella_20240701
zhang_li 4 months ago
parent
commit
a19a43b567
  1. 11
      src/api/wms/itempackage/index.ts
  2. 8
      src/views/wms/basicDataManage/itemManage/itempackage/index.vue

11
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) {

8
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()
})
</script>
@/api/wms/itempackage

Loading…
Cancel
Save