|
@@ -1,50 +1,54 @@
|
|
|
-import request from '@/config/axios'
|
|
|
-
|
|
|
-// SAP中的组织主数据(工厂 成本中心) VO
|
|
|
-export interface SapOrgVO {
|
|
|
- id: number // 主键id
|
|
|
- factoryCode: string // sap工厂编号
|
|
|
- factoryName: string // sap工厂名称
|
|
|
- costCenterCode: string // SAP成本中心编码
|
|
|
- costCenterName: string // SAP成本中心名称
|
|
|
- storageLocationCode: string // SAP库位编码
|
|
|
- storageLocationName: string // SAP库位名称
|
|
|
- type: number // 类型(1工厂 2成本中心 3库位)
|
|
|
- responsiblePerson: string // 责任人id(多个逗号分隔)
|
|
|
- sort: number // 分类排序
|
|
|
- status: number // 部门状态(0正常 1停用)
|
|
|
- remark: string // 备注
|
|
|
-}
|
|
|
-
|
|
|
-// SAP中的组织主数据(工厂 成本中心) API
|
|
|
-export const SapOrgApi = {
|
|
|
- // 查询SAP中的组织主数据(工厂 成本中心)分页
|
|
|
- getSapOrgPage: async (params: any) => {
|
|
|
- return await request.get({ url: `/system/sap-org/page`, params })
|
|
|
- },
|
|
|
-
|
|
|
- // 查询SAP中的组织主数据(工厂 成本中心)详情
|
|
|
- getSapOrg: async (id: number) => {
|
|
|
- return await request.get({ url: `/system/sap-org/get?id=` + id })
|
|
|
- },
|
|
|
-
|
|
|
- // 新增SAP中的组织主数据(工厂 成本中心)
|
|
|
- createSapOrg: async (data: SapOrgVO) => {
|
|
|
- return await request.post({ url: `/system/sap-org/create`, data })
|
|
|
- },
|
|
|
-
|
|
|
- // 修改SAP中的组织主数据(工厂 成本中心)
|
|
|
- updateSapOrg: async (data: SapOrgVO) => {
|
|
|
- return await request.put({ url: `/system/sap-org/update`, data })
|
|
|
- },
|
|
|
-
|
|
|
- // 删除SAP中的组织主数据(工厂 成本中心)
|
|
|
- deleteSapOrg: async (id: number) => {
|
|
|
- return await request.delete({ url: `/system/sap-org/delete?id=` + id })
|
|
|
- },
|
|
|
-
|
|
|
- // 导出SAP中的组织主数据(工厂 成本中心) Excel
|
|
|
- exportSapOrg: async (params) => {
|
|
|
- return await request.download({ url: `/system/sap-org/export-excel`, params })
|
|
|
- },
|
|
|
-}
|
|
|
+import request from '@/config/axios'
|
|
|
+
|
|
|
+// SAP中的组织主数据(工厂 成本中心) VO
|
|
|
+export interface SapOrgVO {
|
|
|
+ id: number // 主键id
|
|
|
+ factoryCode: string // sap工厂编号
|
|
|
+ factoryName: string // sap工厂名称
|
|
|
+ costCenterCode: string // SAP成本中心编码
|
|
|
+ costCenterName: string // SAP成本中心名称
|
|
|
+ storageLocationCode: string // SAP库位编码
|
|
|
+ storageLocationName: string // SAP库位名称
|
|
|
+ type: number // 类型(1工厂 2成本中心 3库位)
|
|
|
+ responsiblePerson: string // 责任人id(多个逗号分隔)
|
|
|
+ sort: number // 分类排序
|
|
|
+ status: number // 部门状态(0正常 1停用)
|
|
|
+ remark: string // 备注
|
|
|
+}
|
|
|
+
|
|
|
+// SAP中的组织主数据(工厂 成本中心) API
|
|
|
+export const SapOrgApi = {
|
|
|
+ // 查询SAP中的组织主数据(工厂 成本中心)分页
|
|
|
+ getSapOrgPage: async (params: any) => {
|
|
|
+ return await request.get({ url: `/system/sap-org/page`, params })
|
|
|
+ },
|
|
|
+
|
|
|
+ // 查询SAP中的组织主数据(工厂 成本中心)详情
|
|
|
+ getSapOrg: async (id: number) => {
|
|
|
+ return await request.get({ url: `/system/sap-org/get?id=` + id })
|
|
|
+ },
|
|
|
+
|
|
|
+ getSimpleSapOrgList: async (type: number): Promise<SapOrgVO[]> => {
|
|
|
+ return await request.get({ url: '/system/sap-org/simple-list?type=' + type })
|
|
|
+ },
|
|
|
+
|
|
|
+ // 新增SAP中的组织主数据(工厂 成本中心)
|
|
|
+ createSapOrg: async (data: SapOrgVO) => {
|
|
|
+ return await request.post({ url: `/system/sap-org/create`, data })
|
|
|
+ },
|
|
|
+
|
|
|
+ // 修改SAP中的组织主数据(工厂 成本中心)
|
|
|
+ updateSapOrg: async (data: SapOrgVO) => {
|
|
|
+ return await request.put({ url: `/system/sap-org/update`, data })
|
|
|
+ },
|
|
|
+
|
|
|
+ // 删除SAP中的组织主数据(工厂 成本中心)
|
|
|
+ deleteSapOrg: async (id: number) => {
|
|
|
+ return await request.delete({ url: `/system/sap-org/delete?id=` + id })
|
|
|
+ },
|
|
|
+
|
|
|
+ // 导出SAP中的组织主数据(工厂 成本中心) Excel
|
|
|
+ exportSapOrg: async (params) => {
|
|
|
+ return await request.download({ url: `/system/sap-org/export-excel`, params })
|
|
|
+ },
|
|
|
+}
|