diff --git a/src/api/system/post/index.ts b/src/api/system/post/index.ts index 405db387e..b5f99bfc0 100644 --- a/src/api/system/post/index.ts +++ b/src/api/system/post/index.ts @@ -44,3 +44,17 @@ export const deletePost = async (id: number) => { export const exportPost = async (params) => { return await request.download({ url: '/system/post/export', params }) } + +// 库位树状图 +export const getPostAreaTreeList = async () => { + return await request.get({ url: '/wms/warehouse/treeLocation' }) +} +// 根据id获取已选择节点 +export const getByPostId = async (id) => { + return await request.get({ url: '/system/post-location/getByPostId?postId=' + id }) +} +//提交选择的节点 +export const updatePostLocation = async (data) => { + return await request.post({ url: '/system/post-location/updatePostLocation',data}) +} + diff --git a/src/api/wms/warehouse/index.ts b/src/api/wms/warehouse/index.ts index 4d98aaeea..5a12e0f3b 100644 --- a/src/api/wms/warehouse/index.ts +++ b/src/api/wms/warehouse/index.ts @@ -22,6 +22,18 @@ export const getWarehousePage = async (params) => { } } +// 查询仓库列表 +export const getWarehouseByBusinessTypeSenior = async (params) => { + delete params.isSearch + const data = {...params} + return request.post({ url: '/wms/warehouse/getWarehouseByBusinessTypeSenior', data }) +} + +// 查询仓库列表 +export const getWarehouseByBusinessTypePage = async (params) => { + return await request.get({ url: `/wms/warehouse/getWarehouseByBusinessTypePage`, params }) +} + // 校验仓库 export const verifyWarehouse = async (params) => { return await request.get({ url: `/wms/warehouse/ListByCode`, params }) diff --git a/src/components/ImportForm/src/ImportFormPlanCSV.vue b/src/components/ImportForm/src/ImportFormPlanCSV.vue new file mode 100644 index 000000000..b38c14e3a --- /dev/null +++ b/src/components/ImportForm/src/ImportFormPlanCSV.vue @@ -0,0 +1,381 @@ + + + + + + {{t('ts.将文件拖到此处,或')}}{{t('ts.点击上传')}} + + + + {{t('ts.注意事项')}} + + + {{ item }} + + + + + {{t('ts.导入模式')}} + + + + {{ t('ts.更新')}} + {{ t('ts.追加') }} + {{ t('ts.覆盖') }} + + + + + {{t('ts.更新:新增并修改')}} + {{ t('ts.追加:只新增,不修改') }} + {{ t('ts.覆盖:只修改不新增') }} + + + + + {{ t('ts.部分保存') }} + + + + + + {{ t('ts.部分保存:如存在错误数据,正确数据正常导入') }} + {{ t('ts.全部保存:全部数据正确,才能导入') }} + + + + + 是否外部资源 + + + + + + + + + + + + + + + {{ t('ts.确 定') }} + {{ t('ts.取 消') }} + + + + + + + diff --git a/src/views/system/post/PostAreaPermissionForm.vue b/src/views/system/post/PostAreaPermissionForm.vue new file mode 100644 index 000000000..a8138d537 --- /dev/null +++ b/src/views/system/post/PostAreaPermissionForm.vue @@ -0,0 +1,179 @@ + + + + + {{ formData.name }} + + + + + 全选/全不选: + + 全部展开/折叠: + + + + + + + + 确 定 + 取 消 + + + + + diff --git a/src/views/system/post/index.vue b/src/views/system/post/index.vue index a53b5ac4e..f8389611a 100644 --- a/src/views/system/post/index.vue +++ b/src/views/system/post/index.vue @@ -46,8 +46,12 @@ - + + + + 库区权限 + 编辑 @@ -66,6 +70,7 @@ +