Browse Source

查询父级规格

master_hella_20240701
zhang_li 5 months ago
parent
commit
ad49570645
  1. 10
      src/api/wms/packageunit/index.ts
  2. 2
      src/views/wms/basicDataManage/itemManage/packageunit/packageunit.data.ts

10
src/api/wms/packageunit/index.ts

@ -43,6 +43,16 @@ export const getPackageunitPageTree = async (params) => {
return await request.get({ url: `/wms/packageunit/pageTree`, params }) return await request.get({ url: `/wms/packageunit/pageTree`, params })
} }
} }
// 查询物品父级包装规格信息
export const getPackageunitPageParent = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return await request.post({ url: '/wms/packageunit/seniorParent', data })
} else {
return await request.get({ url: `/wms/packageunit/pageParent`, params })
}
}
// 查询物品包装规格信息 详情 // 查询物品包装规格信息 详情
export const getPackageunit = async (id: number) => { export const getPackageunit = async (id: number) => {
return await request.get({ url: `/wms/packageunit/get?id=` + id }) return await request.get({ url: `/wms/packageunit/get?id=` + id })

2
src/views/wms/basicDataManage/itemManage/packageunit/packageunit.data.ts

@ -339,7 +339,7 @@ export const Packageunit = useCrudSchemas(reactive<CrudSchema[]>([
searchField: 'code', // 查询弹窗赋值字段 searchField: 'code', // 查询弹窗赋值字段
searchTitle: '包装规格信息', // 查询弹窗标题 searchTitle: '包装规格信息', // 查询弹窗标题
searchAllSchemas: Packageunit1.allSchemas, // 查询弹窗所需类 searchAllSchemas: Packageunit1.allSchemas, // 查询弹窗所需类
searchPage: PackageunitApi.getPackageunitPage, // 查询弹窗所需分页方法 searchPage: PackageunitApi.getPackageunitPageParent, // 查询弹窗所需分页方法
searchCondition:[{ searchCondition:[{
key: 'available', key: 'available',
value: 'TRUE', value: 'TRUE',

Loading…
Cancel
Save