Browse Source

保障表修改

master_hella_20240701
zhaoxuebing 9 months ago
parent
commit
bb8804451b
  1. 18
      src/api/wms/itempackage/index.ts
  2. 1
      src/views/wms/basicDataManage/itemManage/itempackage/index.vue
  3. 2
      src/views/wms/basicDataManage/itemManage/itempackage/itempackaging.data.ts
  4. 1
      src/views/wms/basicDataManage/labelManage/manufacturePackage/index.vue
  5. 1
      src/views/wms/basicDataManage/labelManage/purchasePackage/index.vue

18
src/api/wms/itempackaging/index.ts → src/api/wms/itempackage/index.ts

@ -24,42 +24,42 @@ export const getItempackagingPage = async (params) => {
if (params.isSearch) {
delete params.isSearch
const data = {...params}
return request.post({ url: '/wms/itempackaging/senior', data })
return request.post({ url: '/wms/itempackage/senior', data })
} else {
return await request.get({ url: `/wms/itempackaging/page`, params })
return await request.get({ url: `/wms/itempackage/page`, params })
}
}
// 查询物料包装信息 详情
export const getItempackaging = async (id: number) => {
return await request.get({ url: `/wms/itempackaging/get?id=` + id })
return await request.get({ url: `/wms/itempackage/get?id=` + id })
}
// 新增物料包装信息
export const createItempackaging = async (data: ItempackagingVO) => {
return await request.post({ url: `/wms/itempackaging/create`, data })
return await request.post({ url: `/wms/itempackage/create`, data })
}
// 修改物料包装信息
export const updateItempackaging = async (data: ItempackagingVO) => {
return await request.put({ url: `/wms/itempackaging/update`, data })
return await request.put({ url: `/wms/itempackage/update`, data })
}
// 删除物料包装信息
export const deleteItempackaging = async (id: number) => {
return await request.delete({ url: `/wms/itempackaging/delete?id=` + id })
return await request.delete({ url: `/wms/itempackage/delete?id=` + id })
}
// 导出物料包装信息 Excel
export const exportItempackaging = async (params) => {
if (params.isSearch) {
const data = {...params}
return await request.downloadPost({ url: `/wms/itempackaging/export-excel-senior`, data })
return await request.downloadPost({ url: `/wms/itempackage/export-excel-senior`, data })
} else {
return await request.download({ url: `/wms/itempackaging/export-excel`, params })
return await request.download({ url: `/wms/itempackage/export-excel`, params })
}
}
// 下载用户导入模板
export const importTemplate = () => {
return request.download({ url: '/wms/itempackaging/get-import-template' })
return request.download({ url: '/wms/itempackage/get-import-template' })
}

1
src/views/wms/basicDataManage/itemManage/itempackaging/index.vue → src/views/wms/basicDataManage/itemManage/itempackage/index.vue

@ -281,3 +281,4 @@ onMounted(async () => {
importTemplateData.templateUrl = await ItempackagingApi.importTemplate()
})
</script>
@/api/wms/itempackage

2
src/views/wms/basicDataManage/itemManage/itempackaging/itempackaging.data.ts → src/views/wms/basicDataManage/itemManage/itempackage/itempackaging.data.ts

@ -1,7 +1,7 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime'
import * as ItembasicApi from '@/api/wms/itembasic'
import { Itembasic } from './../itembasic/itembasic.data'
import { Itembasic } from '../itembasic/itembasic.data'
const { t } = useI18n() // 国际化

1
src/views/wms/basicDataManage/labelManage/manufacturePackage/index.vue

@ -304,3 +304,4 @@ onMounted(async () => {
getList()
})
</script>
@/api/wms/itempackage

1
src/views/wms/basicDataManage/labelManage/purchasePackage/index.vue

@ -304,3 +304,4 @@ onMounted(async () => {
getList()
})
</script>
@/api/wms/itempackage
Loading…
Cancel
Save