diff --git a/README.md b/README.md index d629543fff676b63d07d5e9dc2b08036486fca02..a21251927ab137d5812b67d4c36a5d25167b735a 100644 --- a/README.md +++ b/README.md @@ -1,27 +1,32 @@ ### 项目介绍 -星云ERP是基于SpringBoot框架的中小企业完全开源的ERP。 + +星云 ERP 是基于 SpringBoot 框架的中小企业完全开源的 ERP。 ### 环境版本说明 -* nodejs v20.17.0 -* npm 10.8.2 -* pnpm 9.7.1 -> pnpm安装命令:npm install -g pnpm@9.7.1 + +- nodejs v20.17.0 +- npm 10.8.2 +- pnpm 9.7.1 + > pnpm 安装命令:npm install -g pnpm@9.7.1 ### 主要技术框架 -* Vue 3.3.4 -* ant-design-vue 4.0.7 -* vxe-table 4.4.5 -* vue-vben-admin + +- Vue 3.3.4 +- ant-design-vue 4.0.7 +- vxe-table 4.4.5 +- vue-vben-admin ### License -项目使用Apache 2.0许可证,请遵守此许可证的限制条件。 + +项目使用 Apache 2.0 许可证,请遵守此许可证的限制条件。 ### 其他说明 -* 作者是一个只有几年开发经验的后端开发人员,如有错误之处,望斧正。 -* 后端项目Gitee地址:[点此进入][xingyunGitee] + +- 作者是一个只有几年开发经验的后端开发人员,如有错误之处,望斧正。 +- 后端项目 Gitee 地址:[点此进入][xingyunGitee] ### 注意事项 -老版项目基于ElementUI,已转移到v1分支。 -Vue2项目已转移至v3分支。 + +老版项目基于 ElementUI,已转移到 v1 分支。 Vue2 项目已转移至 v3 分支。 [xingyunGitee]: https://gitee.com/lframework/xingyun diff --git a/package.json b/package.json index 02b21623c0b031b90b04dabd36eb47ae021f3d57..a46a71bb1cda797af7fd5ae38b12025a0e89755b 100644 --- a/package.json +++ b/package.json @@ -91,6 +91,7 @@ "esbuild": "^0.23.0", "exceljs": "^4.3.0", "js-pinyin": "^0.2.5", + "lodash": "^4.17.21", "lodash-es": "^4.17.21", "mathjs": "^11.11.2", "mockjs": "^1.1.0", @@ -111,7 +112,7 @@ "vue": "^3.3.4", "vue-i18n": "^9.2.2", "vue-json-pretty": "^2.2.4", - "vue-router": "^4.2.3", + "vue-router": "4.0.14", "vue-types": "^5.1.0", "vuedraggable": "^4.1.0", "vxe-pc-ui": "^4.0.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 9ee485498b3fb81a61441ac8b69caac30c130eeb..c8fe879615a07cfc0c8d8e14d37da170e2b5e9a1 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -77,6 +77,9 @@ importers: js-pinyin: specifier: ^0.2.5 version: 0.2.7 + lodash: + specifier: ^4.17.21 + version: 4.17.21 lodash-es: specifier: ^4.17.21 version: 4.17.21 @@ -138,8 +141,8 @@ importers: specifier: ^2.2.4 version: 2.4.0(vue@3.4.38(typescript@5.5.4)) vue-router: - specifier: ^4.2.3 - version: 4.4.3(vue@3.4.38(typescript@5.5.4)) + specifier: 4.0.14 + version: 4.0.14(vue@3.4.38(typescript@5.5.4)) vue-types: specifier: ^5.1.0 version: 5.1.3(vue@3.4.38(typescript@5.5.4)) @@ -4314,6 +4317,7 @@ packages: lodash.get@4.4.2: resolution: {integrity: sha512-z+Uw/vLuy6gQe8cfaFWD7p0wVv8fJl3mbzXh33RS+0oW2wvUqiRXiQ69gLWSLpgB5/6sU+r6BlQR0MBILadqTQ==} + deprecated: This package is deprecated. Use the optional chaining (?.) operator instead. lodash.groupby@4.6.0: resolution: {integrity: sha512-5dcWxm23+VAoz+awKmBaiBvzox8+RqMgFhi7UvX9DHZr2HdxHXM/Wrf8cfKpsW37RNrvtPn6hSwNqurSILbmJw==} @@ -4323,6 +4327,7 @@ packages: lodash.isequal@4.5.0: resolution: {integrity: sha512-pDo3lu8Jhfjqls6GkMgpahsF9kCyayhgykjyLMNFTKWrpVdAQtYyB4muAMWozBB4ig/dtWAmsMxLEI8wuz+DYQ==} + deprecated: This package is deprecated. Use require('node:util').isDeepStrictEqual instead. lodash.isfunction@3.0.9: resolution: {integrity: sha512-AirXNj15uRIMMPihnkInB4i3NHeb4iBtNg9WRWuK2o31S+ePwwNmDPaTL3o7dTJ+VXNZim7rFs4rxN4YU1oUJw==} @@ -6334,8 +6339,8 @@ packages: peerDependencies: vue: '>=3.0.0' - vue-router@4.4.3: - resolution: {integrity: sha512-sv6wmNKx2j3aqJQDMxLFzs/u/mjA9Z5LCgy6BE0f7yFWMjrPLnS/sPNn8ARY/FXw6byV18EFutn5lTO6+UsV5A==} + vue-router@4.0.14: + resolution: {integrity: sha512-wAO6zF9zxA3u+7AkMPqw9LjoUCjSxfFvINQj3E/DceTt6uEz1XZLraDhdg2EYmvVwTBSGlLYsUw8bDmx0754Mw==} peerDependencies: vue: ^3.2.0 @@ -13370,7 +13375,7 @@ snapshots: dependencies: vue: 3.4.38(typescript@5.5.4) - vue-router@4.4.3(vue@3.4.38(typescript@5.5.4)): + vue-router@4.0.14(vue@3.4.38(typescript@5.5.4)): dependencies: '@vue/devtools-api': 6.6.3 vue: 3.4.38(typescript@5.5.4) diff --git a/src/api/base-data/print-template/index.ts b/src/api/base-data/print-template/index.ts new file mode 100644 index 0000000000000000000000000000000000000000..1b5a700aaa4725820d6827df44e27a884bd7fedd --- /dev/null +++ b/src/api/base-data/print-template/index.ts @@ -0,0 +1,152 @@ +import { defHttp } from '/@/utils/http/axios'; +import { PageResult } from '@/api/model/pageResult'; +import { ContentTypeEnum } from '@/enums/httpEnum'; +import { UpdatePrintTemplateVo } from '@/api/base-data/print-template/model/updatePrintTemplateVo'; +import { CreatePrintTemplateVo } from '@/api/base-data/print-template/model/createPrintTemplateVo'; +import { GetPrintTemplateBo } from '@/api/base-data/print-template/model/getPrintTemplateBo'; +import { QueryPrintTemplateVo } from '@/api/base-data/print-template/model/queryPrintTemplateVo'; +import { QueryPrintTemplateBo } from '@/api/base-data/print-template/model/queryPrintTemplateBo'; +import { GetPrintTemplateSettingBo } from '@/api/base-data/print-template/model/getPrintTemplateSettingBo'; +import { UpdatePrintTemplateSettingVo } from '@/api/base-data/print-template/model/updatePrintTemplateSettingVo'; +import { UpdatePrintTemplateDemoDataVo } from '@/api/base-data/print-template/model/updatePrintTemplateDemoDataVo'; +import { GetPrintTemplateCompSettingBo } from '@/api/base-data/print-template/model/getPrintTemplateCompSettingBo'; + +const baseUrl = '/basedata/print/template'; +const region = 'cloud-api'; + +/** + * 查询列表 + */ +export function query(params: QueryPrintTemplateVo): Promise> { + return defHttp.get>( + { + url: baseUrl + '/query', + params, + }, + { + region, + }, + ); +} + +/** + * 根据ID查询 + * @param id + */ +export function get(id: string): Promise { + return defHttp.get( + { + url: baseUrl, + params: { + id: id, + }, + }, + { + region, + }, + ); +} + +/** + * 新增 + * @param data + */ +export function create(data: CreatePrintTemplateVo): Promise { + return defHttp.post( + { + url: baseUrl, + data, + }, + { + contentType: ContentTypeEnum.FORM_URLENCODED, + region, + }, + ); +} + +/** + * 修改 + * @param data + */ +export function update(data: UpdatePrintTemplateVo): Promise { + return defHttp.put( + { + url: baseUrl, + data, + }, + { + contentType: ContentTypeEnum.FORM_URLENCODED, + region, + }, + ); +} + +/** + * 查询设置 + * @param id + */ +export function getSetting(id: string): Promise { + return defHttp.get( + { + url: baseUrl + '/setting', + params: { + id: id, + }, + }, + { + region, + }, + ); +} + +/** + * 修改设置 + * @param data + */ +export function updateSetting(data: UpdatePrintTemplateSettingVo): Promise { + return defHttp.put( + { + url: baseUrl + '/setting', + data, + }, + { + contentType: ContentTypeEnum.FORM_URLENCODED, + region, + }, + ); +} + +/** + * 修改示例数据 + * @param data + */ +export function updateDemoData(data: UpdatePrintTemplateDemoDataVo): Promise { + return defHttp.put( + { + url: baseUrl + '/setting/demo', + data, + }, + { + contentType: ContentTypeEnum.FORM_URLENCODED, + region, + }, + ); +} + +/** + * 查询组件设置 + * @param id + */ +export function getTemplateComp(id: string): Promise { + return defHttp.get( + { + url: baseUrl + '/setting/comp', + params: { + id: id, + }, + }, + { + region, + }, + ); +} diff --git a/src/api/base-data/print-template/model/createPrintTemplateVo.ts b/src/api/base-data/print-template/model/createPrintTemplateVo.ts new file mode 100644 index 0000000000000000000000000000000000000000..ffc96f7eba3e1742a39b013ab4744153820fc988 --- /dev/null +++ b/src/api/base-data/print-template/model/createPrintTemplateVo.ts @@ -0,0 +1,6 @@ +export interface CreatePrintTemplateVo { + /** + * 名称 + */ + name: string; +} diff --git a/src/api/base-data/print-template/model/getPrintTemplateBo.ts b/src/api/base-data/print-template/model/getPrintTemplateBo.ts new file mode 100644 index 0000000000000000000000000000000000000000..ba452bde6c9904fbbb6373effacab8a06c6660d5 --- /dev/null +++ b/src/api/base-data/print-template/model/getPrintTemplateBo.ts @@ -0,0 +1,11 @@ +export interface GetPrintTemplateBo { + /** + * ID + */ + id: string; + + /** + * 名称 + */ + name: string; +} diff --git a/src/api/base-data/print-template/model/getPrintTemplateCompSettingBo.ts b/src/api/base-data/print-template/model/getPrintTemplateCompSettingBo.ts new file mode 100644 index 0000000000000000000000000000000000000000..a50c9c09494651730a0a14e2cb7a1730770a1d03 --- /dev/null +++ b/src/api/base-data/print-template/model/getPrintTemplateCompSettingBo.ts @@ -0,0 +1,11 @@ +export interface GetPrintTemplateCompSettingBo { + /** + * ID + */ + id: string; + + /** + * 组件配置 + */ + compJson: object; +} diff --git a/src/api/base-data/print-template/model/getPrintTemplateSettingBo.ts b/src/api/base-data/print-template/model/getPrintTemplateSettingBo.ts new file mode 100644 index 0000000000000000000000000000000000000000..a48ff5cc18c6dd36cad44fa22d71e882cb98284c --- /dev/null +++ b/src/api/base-data/print-template/model/getPrintTemplateSettingBo.ts @@ -0,0 +1,21 @@ +export interface GetPrintTemplateSettingBo { + /** + * ID + */ + id: string; + + /** + * JSON配置 + */ + templateJson: object; + + /** + * 示例数据 + */ + demoData: object; + + /** + * 附加组件配置 + */ + compJsonList: object[]; +} diff --git a/src/api/base-data/print-template/model/queryPrintTemplateBo.ts b/src/api/base-data/print-template/model/queryPrintTemplateBo.ts new file mode 100644 index 0000000000000000000000000000000000000000..e301fae97bd27245eb013e748963dee9f0095297 --- /dev/null +++ b/src/api/base-data/print-template/model/queryPrintTemplateBo.ts @@ -0,0 +1,31 @@ +export interface QueryPrintTemplateBo { + /** + * ID + */ + id: string; + + /** + * 名称 + */ + name: string; + + /** + * 创建人 + */ + createBy: string; + + /** + * 创建时间 + */ + createTime: string; + + /** + * 修改人 + */ + updateBy: string; + + /** + * 修改时间 + */ + updateTime: string; +} diff --git a/src/api/base-data/print-template/model/queryPrintTemplateVo.ts b/src/api/base-data/print-template/model/queryPrintTemplateVo.ts new file mode 100644 index 0000000000000000000000000000000000000000..d01d52f716a1506bf88d6ed5f8d1e51d9935494d --- /dev/null +++ b/src/api/base-data/print-template/model/queryPrintTemplateVo.ts @@ -0,0 +1,8 @@ +import { SortPageVo } from '@/api/model/sortPageVo'; + +export interface QueryPrintTemplateVo extends SortPageVo { + /** + * 名称 + */ + name: string; +} diff --git a/src/api/base-data/print-template/model/updatePrintTemplateDemoDataVo.ts b/src/api/base-data/print-template/model/updatePrintTemplateDemoDataVo.ts new file mode 100644 index 0000000000000000000000000000000000000000..d29f859a4fe2e1ee52e916c60f433a776789bb5d --- /dev/null +++ b/src/api/base-data/print-template/model/updatePrintTemplateDemoDataVo.ts @@ -0,0 +1,11 @@ +export interface UpdatePrintTemplateDemoDataVo { + /** + * ID + */ + id: string; + + /** + * 示例数据 + */ + demoData: string; +} diff --git a/src/api/base-data/print-template/model/updatePrintTemplateSettingVo.ts b/src/api/base-data/print-template/model/updatePrintTemplateSettingVo.ts new file mode 100644 index 0000000000000000000000000000000000000000..7a04cd2f68350c597f824b960a31e885ba1c8dce --- /dev/null +++ b/src/api/base-data/print-template/model/updatePrintTemplateSettingVo.ts @@ -0,0 +1,11 @@ +export interface UpdatePrintTemplateSettingVo { + /** + * ID + */ + id: string; + + /** + * JSON配置 + */ + templateJson: string; +} diff --git a/src/api/base-data/print-template/model/updatePrintTemplateVo.ts b/src/api/base-data/print-template/model/updatePrintTemplateVo.ts new file mode 100644 index 0000000000000000000000000000000000000000..343edaffebd2e2fa568f9e0f00cd3695d28be372 --- /dev/null +++ b/src/api/base-data/print-template/model/updatePrintTemplateVo.ts @@ -0,0 +1,11 @@ +export interface UpdatePrintTemplateVo { + /** + * ID + */ + id: string; + + /** + * 名称 + */ + name: string; +} diff --git a/src/api/bpm/flow/definition/index.ts b/src/api/bpm/flow/definition/index.ts new file mode 100644 index 0000000000000000000000000000000000000000..4b1c81ce17a6b0424136f251bbfb1bf8837bec17 --- /dev/null +++ b/src/api/bpm/flow/definition/index.ts @@ -0,0 +1,186 @@ +import { defHttp } from '@/utils/http/axios'; +import { QueryFlowDefinitionVo } from '@/api/bpm/flow/definition/model/queryFlowDefinitionVo'; +import { PageResult } from '@/api/model/pageResult'; +import { QueryFlowDefinitionBo } from '@/api/bpm/flow/definition/model/queryFlowDefinitionBo'; +import { CreateFlowDefinitionVo } from '@/api/bpm/flow/definition/model/createFlowDefinitionVo'; +import { ContentTypeEnum } from '@/enums/httpEnum'; +import { SetFlowDefinitionPublishVo } from '@/api/bpm/flow/definition/model/setFlowDefinitionPublishVo'; +import { UpdateFlowDefinitionVo } from '@/api/bpm/flow/definition/model/updateFlowDefinitionVo'; +import { FlowDefinitionSelectorVo } from '@/api/bpm/flow/definition/model/flowDefinitionSelectorVo'; +import { FlowDefinitionSelectorBo } from '@/api/bpm/flow/definition/model/flowDefinitionSelectorBo'; + +const baseUrl = '/flow/definition'; +const selectorBaseUrl = '/selector/bpm'; +const region = 'cloud-api'; + +/** + * 查询列表 + */ +export function query(params: QueryFlowDefinitionVo): Promise> { + return defHttp.get>( + { + url: baseUrl + '/query', + params, + }, + { + region, + }, + ); +} + +/** + * 查询详情 + * @param id + */ +export function detail(id: string): Promise { + return defHttp.get( + { + url: baseUrl + '/detail', + params: { + id, + }, + }, + { + region, + }, + ); +} + +/** + * 新增 + * @param data + */ +export function create(data: CreateFlowDefinitionVo): Promise { + return defHttp.post( + { + url: baseUrl, + data, + }, + { + region, + contentType: ContentTypeEnum.FORM_URLENCODED, + }, + ); +} + +/** + * 修改 + * @param data + */ +export function update(data: UpdateFlowDefinitionVo): Promise { + return defHttp.put( + { + url: baseUrl, + data, + }, + { + region, + contentType: ContentTypeEnum.FORM_URLENCODED, + }, + ); +} + +/** + * 设置发布状态 + * @param data + */ +export function setPublishStatus(data: SetFlowDefinitionPublishVo): Promise { + return defHttp.post( + { + url: baseUrl + '/publish', + data, + }, + { + region, + contentType: ContentTypeEnum.FORM_URLENCODED, + }, + ); +} + +/** + * 设置激活状态 + * @param data + */ +export function setActivityStatus(data: SetFlowDefinitionPublishVo): Promise { + return defHttp.post( + { + url: baseUrl + '/activity', + data, + }, + { + region, + contentType: ContentTypeEnum.FORM_URLENCODED, + }, + ); +} + +/** + * 复制流程 + * @param data + */ +export function copy(data: UpdateFlowDefinitionVo): Promise { + return defHttp.post( + { + url: baseUrl + '/copy', + data, + }, + { + region, + contentType: ContentTypeEnum.FORM_URLENCODED, + }, + ); +} + +/** + * 根据ID删除 + * @param data + */ +export function deleteById(id: string): Promise { + return defHttp.delete( + { + url: baseUrl, + params: { + id, + }, + }, + { + region, + contentType: ContentTypeEnum.FORM_URLENCODED, + }, + ); +} + +/** + * 选择器 + * @param params + */ +export function selector( + params: FlowDefinitionSelectorVo, +): Promise> { + return defHttp.get>( + { + url: selectorBaseUrl + '/flow/definition', + params, + }, + { + region, + }, + ); +} + +/** + * 加载流程定义 + * @param ids + */ +export function loadFlowDefinition(ids: string[]): Promise { + return defHttp.post( + { + url: selectorBaseUrl + '/flow/definition/load', + data: ids, + }, + { + contentType: ContentTypeEnum.JSON, + region, + }, + ); +} diff --git a/src/api/bpm/flow/definition/model/createFlowDefinitionVo.ts b/src/api/bpm/flow/definition/model/createFlowDefinitionVo.ts new file mode 100644 index 0000000000000000000000000000000000000000..1c780c6a4f9529a59e1ddbd8332abee689afabf3 --- /dev/null +++ b/src/api/bpm/flow/definition/model/createFlowDefinitionVo.ts @@ -0,0 +1,14 @@ +export interface CreateFlowDefinitionVo { + /** + * 编号 + */ + code: string; + /** + * 名称 + */ + name: string; + /** + * 分类ID + */ + categoryId: string; +} diff --git a/src/api/bpm/flow/definition/model/detailFlowDefinitionBo.ts b/src/api/bpm/flow/definition/model/detailFlowDefinitionBo.ts new file mode 100644 index 0000000000000000000000000000000000000000..46cc283573159220e18c4f895329211d0cf2b4c9 --- /dev/null +++ b/src/api/bpm/flow/definition/model/detailFlowDefinitionBo.ts @@ -0,0 +1,22 @@ +export interface DetailFlowDefinitionBo { + /** + * ID + */ + id: string; + /** + * 流程编号 + */ + flowCode: string; + /** + * 流程名称 + */ + flowName: string; + /** + * 流程分类ID + */ + categoryId: string; + /** + * 流程分类 + */ + categoryName: string; +} diff --git a/src/api/bpm/flow/definition/model/flowDefinitionSelectorBo.ts b/src/api/bpm/flow/definition/model/flowDefinitionSelectorBo.ts new file mode 100644 index 0000000000000000000000000000000000000000..9a2c3c11c1b395ae3d4727c60a90c9e274a8e806 --- /dev/null +++ b/src/api/bpm/flow/definition/model/flowDefinitionSelectorBo.ts @@ -0,0 +1,26 @@ +export interface FlowDefinitionSelectorBo { + /** + * ID + */ + id: string; + /** + * 流程编号 + */ + flowCode: string; + /** + * 流程名称 + */ + flowName: string; + /** + * 流程分类 + */ + categoryName: string; + /** + * 版本号 + */ + version: string; + /** + * 创建时间 + */ + createTime: string; +} diff --git a/src/api/bpm/flow/definition/model/flowDefinitionSelectorVo.ts b/src/api/bpm/flow/definition/model/flowDefinitionSelectorVo.ts new file mode 100644 index 0000000000000000000000000000000000000000..998156a18168ed1c453989662d980f20af03a5a7 --- /dev/null +++ b/src/api/bpm/flow/definition/model/flowDefinitionSelectorVo.ts @@ -0,0 +1,16 @@ +import { PageVo } from '@/api/model/pageVo'; + +export interface FlowDefinitionSelectorVo extends PageVo { + /** + * 流程编号 + */ + code: string; + /** + * 流程名称 + */ + name: string; + /** + * 流程分类ID + */ + categoryId: string; +} diff --git a/src/api/bpm/flow/definition/model/queryFlowDefinitionBo.ts b/src/api/bpm/flow/definition/model/queryFlowDefinitionBo.ts new file mode 100644 index 0000000000000000000000000000000000000000..f48378d49e301d42351226716c0f8a22588c06e1 --- /dev/null +++ b/src/api/bpm/flow/definition/model/queryFlowDefinitionBo.ts @@ -0,0 +1,30 @@ +export interface QueryFlowDefinitionBo { + /** + * ID + */ + id: string; + /** + * 流程编号 + */ + flowCode: string; + /** + * 流程名称 + */ + flowName: string; + /** + * 流程分类 + */ + category: string; + /** + * 版本号 + */ + version: string; + /** + * 是否发布 + */ + isPublish: number; + /** + * 激活状态 + */ + activityStatus: number; +} diff --git a/src/api/bpm/flow/definition/model/queryFlowDefinitionVo.ts b/src/api/bpm/flow/definition/model/queryFlowDefinitionVo.ts new file mode 100644 index 0000000000000000000000000000000000000000..a67e5e0c71ca895bc0cca287c3c59797e54968e2 --- /dev/null +++ b/src/api/bpm/flow/definition/model/queryFlowDefinitionVo.ts @@ -0,0 +1,28 @@ +import { PageVo } from '@/api/model/pageVo'; + +export interface QueryFlowDefinitionVo extends PageVo { + /** + * 流程编号 + */ + code: string; + /** + * 流程名称 + */ + name: string; + /** + * 流程分类ID + */ + categoryId: string; + /** + * 版本号 + */ + version: string; + /** + * 是否发布 + */ + isPublish: number; + /** + * 激活状态 + */ + activityStatus: number; +} diff --git a/src/api/bpm/flow/definition/model/setFlowDefinitionActivityStatusVo.ts b/src/api/bpm/flow/definition/model/setFlowDefinitionActivityStatusVo.ts new file mode 100644 index 0000000000000000000000000000000000000000..7a4ddcd7c8b457d8b9469ec3c46d6a3f950d69c6 --- /dev/null +++ b/src/api/bpm/flow/definition/model/setFlowDefinitionActivityStatusVo.ts @@ -0,0 +1,10 @@ +export interface SetFlowDefinitionActivityStatusVo { + /** + * 流程定义ID + */ + id: number; + /** + * 激活状态 + */ + activityStatus: number; +} diff --git a/src/api/bpm/flow/definition/model/setFlowDefinitionPublishVo.ts b/src/api/bpm/flow/definition/model/setFlowDefinitionPublishVo.ts new file mode 100644 index 0000000000000000000000000000000000000000..9fe119557b2b8dc97e0390189fb50359f97abd06 --- /dev/null +++ b/src/api/bpm/flow/definition/model/setFlowDefinitionPublishVo.ts @@ -0,0 +1,10 @@ +export interface SetFlowDefinitionPublishVo { + /** + * 流程定义ID + */ + id: number; + /** + * 发布状态 + */ + isPublish: number; +} diff --git a/src/api/bpm/flow/definition/model/updateFlowDefinitionVo.ts b/src/api/bpm/flow/definition/model/updateFlowDefinitionVo.ts new file mode 100644 index 0000000000000000000000000000000000000000..1efe51073dd673f2ffba0a07289933e3195c3de1 --- /dev/null +++ b/src/api/bpm/flow/definition/model/updateFlowDefinitionVo.ts @@ -0,0 +1,18 @@ +export interface UpdateFlowDefinitionVo { + /** + * ID + */ + id: number; + /** + * 编号 + */ + code: string; + /** + * 名称 + */ + name: string; + /** + * 分类ID + */ + categoryId: string; +} diff --git a/src/api/bpm/flow/flow-category/index.ts b/src/api/bpm/flow/flow-category/index.ts new file mode 100644 index 0000000000000000000000000000000000000000..4413331271002a1aa6a1af381136d94aba32aa8f --- /dev/null +++ b/src/api/bpm/flow/flow-category/index.ts @@ -0,0 +1,92 @@ +import { defHttp } from '@/utils/http/axios'; +import { QueryFlowCategoryTreeBo } from '@/api/bpm/flow/flow-category/model/queryFlowCategoryTreeBo'; +import { DetailFlowCategoryBo } from '@/api/bpm/flow/flow-category/model/detailFlowCategoryBo'; +import { CreateFlowCategoryVo } from '@/api/bpm/flow/flow-category/model/createFlowCategoryVo'; +import { UpdateFlowCategoryVo } from '@/api/bpm/flow/flow-category/model/updateFlowCategoryVo'; +import { ContentTypeEnum } from '@/enums/httpEnum'; + +const baseUrl = '/flow/category'; +const region = 'cloud-api'; + +/** + * 查询列表 + */ +export function query(): Promise { + return defHttp.get( + { + url: baseUrl + '/query', + }, + { + region, + }, + ); +} + +/** + * 根据ID查询 + * @param id + */ +export function detail(id: number): Promise { + return defHttp.get( + { + url: baseUrl + '/detail', + params: { + id, + }, + }, + { + region, + }, + ); +} + +/** + * 创建 + * @param data + */ +export function create(data: CreateFlowCategoryVo): Promise { + return defHttp.post( + { + url: baseUrl, + data, + }, + { + region, + }, + ); +} + +/** + * 修改 + * @param data + */ +export function update(data: UpdateFlowCategoryVo): Promise { + return defHttp.put( + { + url: baseUrl, + data, + }, + { + region, + }, + ); +} + +/** + * 根据ID删除 + * @param id + */ +export function deleteById(id: string): Promise { + return defHttp.delete( + { + url: baseUrl, + params: { + id, + }, + }, + { + region, + contentType: ContentTypeEnum.FORM_URLENCODED, + }, + ); +} diff --git a/src/api/bpm/flow/flow-category/model/createFlowCategoryVo.ts b/src/api/bpm/flow/flow-category/model/createFlowCategoryVo.ts new file mode 100644 index 0000000000000000000000000000000000000000..bac6595e7667294c1a652b5682c62a3fa4234600 --- /dev/null +++ b/src/api/bpm/flow/flow-category/model/createFlowCategoryVo.ts @@ -0,0 +1,11 @@ +export interface CreateFlowCategoryVo { + /** + * 流程类型名称 + */ + name: string; + + /** + * 父节点ID + */ + parentId: number; +} diff --git a/src/api/bpm/flow/flow-category/model/detailFlowCategoryBo.ts b/src/api/bpm/flow/flow-category/model/detailFlowCategoryBo.ts new file mode 100644 index 0000000000000000000000000000000000000000..a786e9d4940b70602296bc7a8b6666e3b61a75a9 --- /dev/null +++ b/src/api/bpm/flow/flow-category/model/detailFlowCategoryBo.ts @@ -0,0 +1,21 @@ +export interface DetailFlowCategoryBo { + /** + * ID + */ + id: number; + + /** + * 流程类型名称 + */ + name: string; + + /** + * 父节点ID + */ + parentId: number; + + /** + * 父节点名称 + */ + parentName: string; +} diff --git a/src/api/bpm/flow/flow-category/model/queryFlowCategoryTreeBo.ts b/src/api/bpm/flow/flow-category/model/queryFlowCategoryTreeBo.ts new file mode 100644 index 0000000000000000000000000000000000000000..e9eed390da3d4a6a7cdb8e6ff2fc3892ae4d2e4b --- /dev/null +++ b/src/api/bpm/flow/flow-category/model/queryFlowCategoryTreeBo.ts @@ -0,0 +1,16 @@ +export interface QueryFlowCategoryTreeBo { + /** + * ID + */ + id: number; + + /** + * 流程类型名称 + */ + name: string; + + /** + * 父节点ID + */ + parentId: number; +} diff --git a/src/api/bpm/flow/flow-category/model/updateFlowCategoryVo.ts b/src/api/bpm/flow/flow-category/model/updateFlowCategoryVo.ts new file mode 100644 index 0000000000000000000000000000000000000000..7ef7a2162abae21275819c5df4fd3350408f0e37 --- /dev/null +++ b/src/api/bpm/flow/flow-category/model/updateFlowCategoryVo.ts @@ -0,0 +1,11 @@ +export interface UpdateFlowCategoryVo { + /** + * ID + */ + id: number; + + /** + * 流程类型名称 + */ + name: string; +} diff --git a/src/api/bpm/flow/instance/index.ts b/src/api/bpm/flow/instance/index.ts new file mode 100644 index 0000000000000000000000000000000000000000..00c25bd4ef295e700e8d07442f3d12ea7619f9d1 --- /dev/null +++ b/src/api/bpm/flow/instance/index.ts @@ -0,0 +1,39 @@ +import { defHttp } from '@/utils/http/axios'; +import { QueryBusinessFlowInstanceBo } from '@/api/bpm/flow/instance/model/queryBusinessFlowInstanceBo'; + +const baseUrl = '/flow/instance'; +const region = 'cloud-api'; + +/** + * 根据业务ID查询 + */ +export function listBusiness(businessId: string): Promise { + return defHttp.get( + { + url: baseUrl + '/list/business', + params: { + businessId, + }, + }, + { + region, + }, + ); +} + +/** + * 根据ID查询状态 + */ +export function getStatus(id: string): Promise { + return defHttp.get( + { + url: baseUrl + '/status', + params: { + id, + }, + }, + { + region, + }, + ); +} diff --git a/src/api/bpm/flow/instance/model/queryBusinessFlowInstanceBo.ts b/src/api/bpm/flow/instance/model/queryBusinessFlowInstanceBo.ts new file mode 100644 index 0000000000000000000000000000000000000000..9b6229baf31c011c36a2d3c574362be5554ae45e --- /dev/null +++ b/src/api/bpm/flow/instance/model/queryBusinessFlowInstanceBo.ts @@ -0,0 +1,10 @@ +export interface QueryBusinessFlowInstanceBo { + /** + * ID + */ + id: string; + /** + * 标题 + */ + title: string; +} diff --git a/src/api/bpm/flow/task/index.ts b/src/api/bpm/flow/task/index.ts new file mode 100644 index 0000000000000000000000000000000000000000..b55fec8e6e1b04582231b0d861cf590ba42bc27c --- /dev/null +++ b/src/api/bpm/flow/task/index.ts @@ -0,0 +1,165 @@ +import { defHttp } from '@/utils/http/axios'; +import { PageResult } from '@/api/model/pageResult'; +import { QueryTodoTaskListVo } from '@/api/bpm/flow/task/model/queryTodoTaskListVo'; +import { QueryTodoTaskListBo } from '@/api/bpm/flow/task/model/queryTodoTaskListBo'; +import { ApprovePassTaskVo } from '@/api/bpm/flow/task/model/approvePassTaskVo'; +import { ApproveRefuseTaskVo } from '@/api/bpm/flow/task/model/approveRefuseTaskVo'; +import { QueryMyTaskListBo } from '@/api/bpm/flow/task/model/queryMyTaskListBo'; +import { QueryMyTaskListVo } from '@/api/bpm/flow/task/model/queryMyTaskListVo'; +import { UndoTaskVo } from '@/api/bpm/flow/task/model/undoTaskVo'; +import { RejectTaskVo } from '@/api/bpm/flow/task/model/rejectTaskVo'; +import { QueryInstanceListBo } from '@/api/bpm/flow/task/model/queryInstanceListBo'; +import { QueryInstanceListVo } from '@/api/bpm/flow/task/model/queryInstanceListVo'; +import { ContentTypeEnum } from '@/enums/httpEnum'; + +const baseUrl = '/flow/task'; +const region = 'cloud-api'; + +/** + * 查询待办任务列表 + */ +export function queryTodoList( + params: QueryTodoTaskListVo, +): Promise> { + return defHttp.get>( + { + url: baseUrl + '/list/todo', + params, + }, + { + region, + }, + ); +} + +/** + * 查询我的发起列表 + */ +export function queryMyList(params: QueryMyTaskListVo): Promise> { + return defHttp.get>( + { + url: baseUrl + '/list/my', + params, + }, + { + region, + }, + ); +} + +/** + * 查询流程实例列表 + */ +export function queryInstanceList( + params: QueryInstanceListVo, +): Promise> { + return defHttp.get>( + { + url: baseUrl + '/list/instance', + params, + }, + { + region, + }, + ); +} + +/** + * 根据ID查询审核类型 + */ +export function getCooperateType(id: string): Promise { + return defHttp.get( + { + url: baseUrl + '/cooperate', + params: { + id, + }, + }, + { + region, + }, + ); +} + +/** + * 审核通过 + * @param params + */ +export function approvePass(params: ApprovePassTaskVo): Promise { + return defHttp.post( + { + url: baseUrl + '/approve/pass', + params, + }, + { + region, + }, + ); +} + +/** + * 审核拒绝 + * @param params + */ +export function approveRefuse(params: ApproveRefuseTaskVo): Promise { + return defHttp.post( + { + url: baseUrl + '/approve/refuse', + params, + }, + { + region, + }, + ); +} + +/** + * 撤回 + * @param params + */ +export function undo(params: UndoTaskVo): Promise { + return defHttp.post( + { + url: baseUrl + '/undo', + params, + }, + { + region, + }, + ); +} + +/** + * 反对 + * @param params + */ +export function reject(params: RejectTaskVo): Promise { + return defHttp.post( + { + url: baseUrl + '/reject', + params, + }, + { + region, + }, + ); +} + +/** + * 终止 + * @param instanceId + */ +export function termination(instanceId: string): Promise { + return defHttp.post( + { + url: baseUrl + '/termination', + params: { + instanceId, + }, + }, + { + region, + contentType: ContentTypeEnum.FORM_URLENCODED, + }, + ); +} diff --git a/src/api/bpm/flow/task/model/approvePassTaskVo.ts b/src/api/bpm/flow/task/model/approvePassTaskVo.ts new file mode 100644 index 0000000000000000000000000000000000000000..9ac43a484820d19c6e92d030a2264f28ebb804e7 --- /dev/null +++ b/src/api/bpm/flow/task/model/approvePassTaskVo.ts @@ -0,0 +1,15 @@ +export interface ApprovePassTaskVo { + /** + * 任务ID + */ + taskId: string; + /** + * 说明 + */ + message: string; + + /** + * 表单变量 + */ + variables: any; +} diff --git a/src/api/bpm/flow/task/model/approveRefuseTaskVo.ts b/src/api/bpm/flow/task/model/approveRefuseTaskVo.ts new file mode 100644 index 0000000000000000000000000000000000000000..a17f59e2cc5a8d22303ae40c26704ef014a0f49e --- /dev/null +++ b/src/api/bpm/flow/task/model/approveRefuseTaskVo.ts @@ -0,0 +1,15 @@ +export interface ApproveRefuseTaskVo { + /** + * 任务ID + */ + taskId: string; + /** + * 说明 + */ + message: string; + + /** + * 表单变量 + */ + variables: any; +} diff --git a/src/api/bpm/flow/task/model/queryInstanceListBo.ts b/src/api/bpm/flow/task/model/queryInstanceListBo.ts new file mode 100644 index 0000000000000000000000000000000000000000..adb7830075286469ffd01b4c3a047fe3a17ff1de --- /dev/null +++ b/src/api/bpm/flow/task/model/queryInstanceListBo.ts @@ -0,0 +1,74 @@ +export interface QueryInstanceListBo { + /** + * 任务标题 + */ + title: string; + /** + * 业务ID + */ + businessId: string; + /** + * 节点编号 + */ + nodeCode: string; + /** + * 节点名称 + */ + nodeName: string; + /** + * 节点类型 + */ + nodeType: number; + /** + * 流程状态 + */ + flowStatus: string; + /** + * 流程定义ID + */ + flowId: string; + /** + * 流程定义编号 + */ + flowCode: string; + /** + * 流程定义名称 + */ + flowName: string; + /** + * 流程定义分类ID + */ + categoryId: string; + /** + * 流程定义分类名称 + */ + categoryName: string; + /** + * 流程实例ID + */ + instanceId: string; + /** + * 流程实例扩展字段 + */ + ext: string; + /** + * 流程发起人ID + */ + startById: string; + /** + * 流程发起人 + */ + startBy: string; + /** + * 流程发起时间 + */ + startTime: string; + /** + * 流程结束时间 + */ + endTime: string; + /** + * 流程执行时间 + */ + executeTime: string; +} diff --git a/src/api/bpm/flow/task/model/queryInstanceListVo.ts b/src/api/bpm/flow/task/model/queryInstanceListVo.ts new file mode 100644 index 0000000000000000000000000000000000000000..1e6bdf5faca0cd0e580302c7d6b6fc7382e6409c --- /dev/null +++ b/src/api/bpm/flow/task/model/queryInstanceListVo.ts @@ -0,0 +1,16 @@ +import { PageVo } from '@/api/model/pageVo'; + +export interface QueryInstanceListVo extends PageVo { + /** + * 流程编号 + */ + flowCode: string; + /** + * 流程名称 + */ + flowName: string; + /** + * 任务标题 + */ + title: string; +} diff --git a/src/api/bpm/flow/task/model/queryMyTaskListBo.ts b/src/api/bpm/flow/task/model/queryMyTaskListBo.ts new file mode 100644 index 0000000000000000000000000000000000000000..10b4fbb492a015b447cdfb0622b217558812bf38 --- /dev/null +++ b/src/api/bpm/flow/task/model/queryMyTaskListBo.ts @@ -0,0 +1,74 @@ +export interface QueryMyTaskListBo { + /** + * 任务标题 + */ + title: string; + /** + * 业务ID + */ + businessId: string; + /** + * 节点编号 + */ + nodeCode: string; + /** + * 节点名称 + */ + nodeName: string; + /** + * 节点类型 + */ + nodeType: number; + /** + * 流程状态 + */ + flowStatus: string; + /** + * 流程定义ID + */ + flowId: string; + /** + * 流程定义编号 + */ + flowCode: string; + /** + * 流程定义名称 + */ + flowName: string; + /** + * 流程定义分类ID + */ + categoryId: string; + /** + * 流程定义分类名称 + */ + categoryName: string; + /** + * 流程实例ID + */ + instanceId: string; + /** + * 流程实例扩展字段 + */ + ext: string; + /** + * 流程发起人ID + */ + startById: string; + /** + * 流程发起人 + */ + startBy: string; + /** + * 流程发起时间 + */ + startTime: string; + /** + * 流程结束时间 + */ + endTime: string; + /** + * 流程执行时间 + */ + executeTime: string; +} diff --git a/src/api/bpm/flow/task/model/queryMyTaskListVo.ts b/src/api/bpm/flow/task/model/queryMyTaskListVo.ts new file mode 100644 index 0000000000000000000000000000000000000000..a48c6473c21f1a1ab4a6447b83e2303f419e3c6c --- /dev/null +++ b/src/api/bpm/flow/task/model/queryMyTaskListVo.ts @@ -0,0 +1,17 @@ +import { PageVo } from '@/api/model/pageVo'; + +export interface QueryMyTaskListVo extends PageVo { + /** + * 流程编号 + */ + flowCode: string; + /** + * 流程名称 + */ + flowName: string; + + /** + * 任务标题 + */ + title: string; +} diff --git a/src/api/bpm/flow/task/model/queryTodoTaskListBo.ts b/src/api/bpm/flow/task/model/queryTodoTaskListBo.ts new file mode 100644 index 0000000000000000000000000000000000000000..f027aefd7dc2e7e92e2ea4c106c208b40ed402e5 --- /dev/null +++ b/src/api/bpm/flow/task/model/queryTodoTaskListBo.ts @@ -0,0 +1,66 @@ +export interface QueryTodoTaskListBo { + /** + * 任务ID + */ + taskId: string; + /** + * 任务标题 + */ + title: string; + /** + * 节点编号 + */ + nodeCode: string; + /** + * 节点名称 + */ + nodeName: string; + /** + * 节点类型 + */ + nodeType: number; + /** + * 流程状态 + */ + flowStatus: number; + /** + * 流程定义ID + */ + flowId: string; + /** + * 流程定义编号 + */ + flowCode: string; + /** + * 流程定义名称 + */ + flowName: string; + /** + * 流程定义分类ID + */ + categoryId: string; + /** + * 流程定义分类名称 + */ + categoryName: string; + /** + * 流程实例ID + */ + instanceId: string; + /** + * 流程实例扩展字段 + */ + ext: string; + /** + * 流程发起人ID + */ + startById: string; + /** + * 流程发起人 + */ + startBy: string; + /** + * 流程发起时间 + */ + startTime: string; +} diff --git a/src/api/bpm/flow/task/model/queryTodoTaskListVo.ts b/src/api/bpm/flow/task/model/queryTodoTaskListVo.ts new file mode 100644 index 0000000000000000000000000000000000000000..15cb206a83bb759a76a511b179e8070a6c984033 --- /dev/null +++ b/src/api/bpm/flow/task/model/queryTodoTaskListVo.ts @@ -0,0 +1,17 @@ +import { PageVo } from '@/api/model/pageVo'; + +export interface QueryTodoTaskListVo extends PageVo { + /** + * 流程编号 + */ + flowCode: string; + /** + * 流程名称 + */ + flowName: string; + + /** + * 任务标题 + */ + title: string; +} diff --git a/src/api/bpm/flow/task/model/rejectTaskVo.ts b/src/api/bpm/flow/task/model/rejectTaskVo.ts new file mode 100644 index 0000000000000000000000000000000000000000..86d1a93bf014ad294756ab42b995d35b1eeeb8b3 --- /dev/null +++ b/src/api/bpm/flow/task/model/rejectTaskVo.ts @@ -0,0 +1,15 @@ +export interface RejectTaskVo { + /** + * 任务ID + */ + taskId: string; + /** + * 说明 + */ + message: string; + + /** + * 表单变量 + */ + variables: any; +} diff --git a/src/api/bpm/flow/task/model/undoTaskVo.ts b/src/api/bpm/flow/task/model/undoTaskVo.ts new file mode 100644 index 0000000000000000000000000000000000000000..d44c2ba5d6d18447d96f9541b906a3da1adaa496 --- /dev/null +++ b/src/api/bpm/flow/task/model/undoTaskVo.ts @@ -0,0 +1,15 @@ +export interface UndoTaskVo { + /** + * 流程实例ID + */ + instanceId: string; + /** + * 说明 + */ + message: string; + + /** + * 表单变量 + */ + variables: any; +} diff --git a/src/api/development/custom/page-category/index.ts b/src/api/development/custom/page-category/index.ts index dfa4645502bd0003be8af8bbff42d1544c03c7c9..8dc09c960e5537bfa8a33dbd6ac74e97037ca544 100644 --- a/src/api/development/custom/page-category/index.ts +++ b/src/api/development/custom/page-category/index.ts @@ -5,15 +5,20 @@ import { QueryGenCustomPageCategoryBo } from '@/api/development/custom/page-cate import { GetGenCustomPageCategoryBo } from '@/api/development/custom/page-category/model/getGenCustomPageCategoryBo'; import { UpdateGenCustomPageCategoryVo } from '@/api/development/custom/page-category/model/updateGenCustomPageCategoryVo'; import { CreateGenCustomPageCategoryVo } from '@/api/development/custom/page-category/model/createGenCustomPageCategoryVo'; +import { PageResult } from '@/api/model/pageResult'; +import { GenCustomPageCategorySelectorVo } from '@/api/development/custom/page-category/model/genCustomPageCategorySelectorVo'; const baseUrl = '/gen/custom/page/category'; const selectorBaseUrl = '/selector/gen'; const region = 'cloud-api'; -export function selector(): Promise { - return defHttp.get( +export function selector( + params: GenCustomPageCategorySelectorVo, +): Promise> { + return defHttp.get>( { url: selectorBaseUrl + '/custom/page/category', + params, }, { region, diff --git a/src/api/development/custom/page-category/model/genCustomPageCategorySelectorBo.ts b/src/api/development/custom/page-category/model/genCustomPageCategorySelectorBo.ts index 5f81508b8f896354f3c2f8917e6f75739776af68..b5e8500d08f8e8e381ff3a9a747135dc0d270eef 100644 --- a/src/api/development/custom/page-category/model/genCustomPageCategorySelectorBo.ts +++ b/src/api/development/custom/page-category/model/genCustomPageCategorySelectorBo.ts @@ -13,9 +13,4 @@ export interface GenCustomPageCategorySelectorBo { * 名称 */ name: string; - - /** - * 父级ID - */ - parentId: string; } diff --git a/src/api/development/custom/page-category/model/genCustomPageCategorySelectorVo.ts b/src/api/development/custom/page-category/model/genCustomPageCategorySelectorVo.ts new file mode 100644 index 0000000000000000000000000000000000000000..2c619d8014da7cd883e3484a0fb37c6a06c2e0de --- /dev/null +++ b/src/api/development/custom/page-category/model/genCustomPageCategorySelectorVo.ts @@ -0,0 +1,13 @@ +import { PageVo } from '@/api/model/pageVo'; + +export interface GenCustomPageCategorySelectorVo extends PageVo { + /** + * 编号 + */ + code: string; + + /** + * 名称 + */ + name: string; +} diff --git a/src/api/sc/purchase/config/model/getPurchaseConfigBo.ts b/src/api/sc/purchase/config/model/getPurchaseConfigBo.ts index e9ecbbcdd2edad1f447307d5ece358317136078c..0f37622ae5c567a0063e8f97abdb5f633d14eb98 100644 --- a/src/api/sc/purchase/config/model/getPurchaseConfigBo.ts +++ b/src/api/sc/purchase/config/model/getPurchaseConfigBo.ts @@ -3,19 +3,28 @@ export interface GetPurchaseConfigBo { * 采购收货单是否关联采购订单 */ receiveRequirePurchase: boolean; - /** * 采购收货单是否多次关联采购订单 */ receiveMultipleRelatePurchase: boolean; - /** * 采购退货单是否关联采购收货单 */ purchaseReturnRequireReceive: boolean; - /** * 采购退货单是否多次关联采购收货单 */ purchaseReturnMultipleRelateReceive: boolean; + /** + * 采购订单是否开启审批流程 + */ + purchaseRequireBpm: boolean; + /** + * 采购订单关联的审批流程ID + */ + purchaseBpmProcessId: string; + /** + * 采购订单关联的审批流程编号 + */ + purchaseBpmProcessCode: string; } diff --git a/src/api/sc/purchase/config/model/updatePurchaseConfigVo.ts b/src/api/sc/purchase/config/model/updatePurchaseConfigVo.ts index 6e3f4b3786039e0687360105eba7398a2d7519b4..93191841a97dc3ecff4fdbb8cabfc1d751bcb9b0 100644 --- a/src/api/sc/purchase/config/model/updatePurchaseConfigVo.ts +++ b/src/api/sc/purchase/config/model/updatePurchaseConfigVo.ts @@ -3,19 +3,24 @@ export interface UpdatePurchaseConfigVo { * 采购收货单是否关联采购订单 */ receiveRequirePurchase: boolean; - /** * 采购收货单是否多次关联采购订单 */ receiveMultipleRelatePurchase: boolean; - /** * 采购退货单是否关联采购收货单 */ purchaseReturnRequireReceive: boolean; - /** * 采购退货单是否多次关联采购收货单 */ purchaseReturnMultipleRelateReceive: boolean; + /** + * 采购订单是否开启审批流程 + */ + purchaseRequireBpm: boolean; + /** + * 采购订单关联的审批流程ID + */ + purchaseBpmProcessId: string; } diff --git a/src/api/sc/purchase/order/index.ts b/src/api/sc/purchase/order/index.ts index be923da7fdcaed84d08bcb08c83d0caccf88d533..0d413ff7e720648f73d78ade658a4b5c397c4e54 100644 --- a/src/api/sc/purchase/order/index.ts +++ b/src/api/sc/purchase/order/index.ts @@ -1,6 +1,5 @@ import { defHttp } from '/@/utils/http/axios'; import { ContentTypeEnum, ResponseEnum } from '@/enums/httpEnum'; -import { A4ExcelPortraitPrintBo } from '@/api/model/a4ExcelPortraitPrintBo'; import { QueryPurchaseOrderVo } from '@/api/sc/purchase/order/model/queryPurchaseOrderVo'; import { PageResult } from '@/api/model/pageResult'; import { QueryPurchaseOrderBo } from '@/api/sc/purchase/order/model/queryPurchaseOrderBo'; @@ -16,6 +15,7 @@ import { PurchaseProductBo } from '@/api/sc/purchase/order/model/purchaseProduct import { QueryPurchaseProductVo } from '@/api/sc/purchase/order/model/queryPurchaseProductVo'; import { PurchaseOrderSelectorVo } from '@/api/sc/purchase/order/model/purchaseOrderSelectorVo'; import { PurchaseOrderSelectorBo } from '@/api/sc/purchase/order/model/purchaseOrderSelectorBo'; +import { PrintPurchaseOrderBo } from '@/api/sc/purchase/order/model/printPurchaseOrderBo'; const baseUrl = '/purchase/order'; const selectorBaseUrl = '/selector'; @@ -51,8 +51,8 @@ export function loadPurchaseOrder(ids: string[]): Promise { - return defHttp.get( +export function print(id: string): Promise { + return defHttp.get( { url: baseUrl + '/print', params: { @@ -99,12 +99,13 @@ export function exportList(data: QueryPurchaseOrderVo): Promise { /** * 查询详情 */ -export function get(id: string): Promise { +export function get(id: string, isForm: boolean): Promise { return defHttp.get( { url: baseUrl, params: { id, + isForm, }, }, { diff --git a/src/api/sc/purchase/order/model/approvePassPurchaseOrderVo.ts b/src/api/sc/purchase/order/model/approvePassPurchaseOrderVo.ts index ac5f966efae793ed658e432662cc757569f855ad..30efc0b7184d686586c81c2dd654f750e5ee1ce6 100644 --- a/src/api/sc/purchase/order/model/approvePassPurchaseOrderVo.ts +++ b/src/api/sc/purchase/order/model/approvePassPurchaseOrderVo.ts @@ -3,9 +3,4 @@ export interface ApprovePassPurchaseOrderVo { * 订单ID */ id: string; - - /** - * 备注 - */ - description: string; } diff --git a/src/api/sc/purchase/order/model/getPurchaseOrderBo.ts b/src/api/sc/purchase/order/model/getPurchaseOrderBo.ts index 62f1be3e51786db5c7504e55d3d225e21a0a5b6c..efeecc3a6faf81b4a6ec9f13e84a04d0660f4a43 100644 --- a/src/api/sc/purchase/order/model/getPurchaseOrderBo.ts +++ b/src/api/sc/purchase/order/model/getPurchaseOrderBo.ts @@ -46,6 +46,11 @@ export interface GetPurchaseOrderBo { */ expectArriveDate: string; + /** + * 关联的审批流程ID + */ + flowInstanceId: string; + /** * 采购数量 */ diff --git a/src/api/sc/purchase/order/model/printPurchaseOrderBo.ts b/src/api/sc/purchase/order/model/printPurchaseOrderBo.ts new file mode 100644 index 0000000000000000000000000000000000000000..7c2582086291b7b7aaccfa6ad01a04e14f9f6fe1 --- /dev/null +++ b/src/api/sc/purchase/order/model/printPurchaseOrderBo.ts @@ -0,0 +1,85 @@ +export interface PrintPurchaseOrderBo { + /** + * 单号 + */ + code: string; + /** + * 仓库编号 + */ + scCode: string; + /** + * 仓库名称 + */ + scName: string; + /** + * 供应商编号 + */ + supplierCode: string; + /** + * 供应商名称 + */ + supplierName: string; + /** + * 采购员姓名 + */ + purchaserName: string; + /** + * 预计到货日期 + */ + expectArriveDate: string; + /** + * 备注 + */ + description: string; + /** + * 创建人 + */ + createBy: string; + /** + * 创建时间 + */ + createTime: string; + /** + * 审核人 + */ + approveBy: string; + /** + * 审核时间 + */ + approveTime: string; + /** + * 订单明细 + */ + details: OrderDetailBo[]; +} + +export interface OrderDetailBo { + /** + * 商品编号 + */ + productCode: string; + /** + * 商品名称 + */ + productName: string; + /** + * SKU编号 + */ + skuCode: string; + /** + * 简码 + */ + externalCode: string; + /** + * 采购数量 + */ + purchaseNum: number; + /** + * 采购价 + */ + purchasePrice: number; + /** + * 采购金额 + */ + purchaseAmount: number; +} diff --git a/src/api/sc/purchase/order/model/queryPurchaseOrderBo.ts b/src/api/sc/purchase/order/model/queryPurchaseOrderBo.ts index 3179d058d6341e0b3eefcbca49b70a3b1ef2deea..4ef5e1b003f52530a589ce5e86bc6f7b8306965c 100644 --- a/src/api/sc/purchase/order/model/queryPurchaseOrderBo.ts +++ b/src/api/sc/purchase/order/model/queryPurchaseOrderBo.ts @@ -54,6 +54,11 @@ export interface QueryPurchaseOrderBo { */ totalAmount: number; + /** + * 关联的审批流程ID + */ + flowInstanceId: string; + /** * 备注 */ diff --git a/src/api/sc/purchase/receive/index.ts b/src/api/sc/purchase/receive/index.ts index 46230d208dc42cce431fef0ac094e3391e03cc6f..389458308206aa7345b1d8c25a3eb314a5c43dcb 100644 --- a/src/api/sc/purchase/receive/index.ts +++ b/src/api/sc/purchase/receive/index.ts @@ -1,6 +1,5 @@ import { defHttp } from '/@/utils/http/axios'; import { ContentTypeEnum, ResponseEnum } from '@/enums/httpEnum'; -import { A4ExcelPortraitPrintBo } from '@/api/model/a4ExcelPortraitPrintBo'; import { PageResult } from '@/api/model/pageResult'; import { ReceiveSheetSelectorVo } from '@/api/sc/purchase/receive/model/receiveSheetSelectorVo'; import { ReceiveSheetSelectorBo } from '@/api/sc/purchase/receive/model/receiveSheetSelectorBo'; @@ -15,6 +14,7 @@ import { CreateReceiveSheetVo } from '@/api/sc/purchase/receive/model/createRece import { UpdateReceiveSheetVo } from '@/api/sc/purchase/receive/model/updateReceiveSheetVo'; import { ApprovePassReceiveSheetVo } from '@/api/sc/purchase/receive/model/approvePassReceiveSheetVo'; import { ApproveRefuseReceiveSheetVo } from '@/api/sc/purchase/receive/model/approveRefuseReceiveSheetVo'; +import { PrintReceiveSheetBo } from '@/api/sc/purchase/receive/model/printReceiveSheetBo'; const baseUrl = '/purchase/receive/sheet'; const selectorBaseUrl = '/selector'; @@ -50,8 +50,8 @@ export function loadReceiveSheet(ids: string[]): Promise { - return defHttp.get( +export function print(id: string): Promise { + return defHttp.get( { url: baseUrl + '/print', params: { diff --git a/src/api/sc/purchase/receive/model/printReceiveSheetBo.ts b/src/api/sc/purchase/receive/model/printReceiveSheetBo.ts new file mode 100644 index 0000000000000000000000000000000000000000..a7951b55a97c5eb10388c35ab46aeb800d9eab63 --- /dev/null +++ b/src/api/sc/purchase/receive/model/printReceiveSheetBo.ts @@ -0,0 +1,93 @@ +export interface PrintReceiveSheetBo { + /** + * 单号 + */ + code: string; + /** + * 仓库编号 + */ + scCode: string; + /** + * 仓库名称 + */ + scName: string; + /** + * 供应商编号 + */ + supplierCode: string; + /** + * 供应商名称 + */ + supplierName: string; + /** + * 采购员姓名 + */ + purchaserName: string; + /** + * 付款日期 + */ + paymentDate: string; + /** + * 到货日期 + */ + receiveDate: string; + /** + * 采购订单号 + */ + purchaseOrderCode: string; + /** + * 备注 + */ + description: string; + /** + * 创建人 + */ + createBy: string; + /** + * 创建时间 + */ + createTime: string; + /** + * 审核人 + */ + approveBy: string; + /** + * 审核时间 + */ + approveTime: string; + /** + * 订单明细 + */ + details: OrderDetailBo[]; +} + +export interface OrderDetailBo { + /** + * 商品编号 + */ + productCode: string; + /** + * 商品名称 + */ + productName: string; + /** + * SKU编号 + */ + skuCode: string; + /** + * 简码 + */ + externalCode: string; + /** + * 收货数量 + */ + receiveNum: number; + /** + * 采购价 + */ + purchasePrice: number; + /** + * 收货金额 + */ + receiveAmount: number; +} diff --git a/src/api/sc/purchase/return/index.ts b/src/api/sc/purchase/return/index.ts index ecc60793c008832b50aec3aa8a7f06d2df219a8f..08281c2eae383bd9bc29f4679c27fda1b6caa812 100644 --- a/src/api/sc/purchase/return/index.ts +++ b/src/api/sc/purchase/return/index.ts @@ -1,6 +1,5 @@ import { defHttp } from '/@/utils/http/axios'; import { ContentTypeEnum } from '@/enums/httpEnum'; -import { A4ExcelPortraitPrintBo } from '@/api/model/a4ExcelPortraitPrintBo'; import { PageResult } from '@/api/model/pageResult'; import { QueryPurchaseReturnVo } from '@/api/sc/purchase/return/model/queryPurchaseReturnVo'; import { QueryPurchaseReturnBo } from '@/api/sc/purchase/return/model/queryPurchaseReturnBo'; @@ -9,6 +8,7 @@ import { CreatePurchaseReturnVo } from '@/api/sc/purchase/return/model/createPur import { UpdatePurchaseReturnVo } from '@/api/sc/purchase/return/model/updatePurchaseReturnVo'; import { ApprovePassPurchaseReturnVo } from '@/api/sc/purchase/return/model/approvePassPurchaseReturnVo'; import { ApproveRefusePurchaseReturnVo } from '@/api/sc/purchase/return/model/approveRefusePurchaseReturnVo'; +import { PrintPurchaseReturnBo } from '@/api/sc/purchase/return/model/printPurchaseReturnBo'; const baseUrl = '/purchase/return'; const region = 'cloud-api'; @@ -16,8 +16,8 @@ const region = 'cloud-api'; /** * 打印 */ -export function print(id: string): Promise { - return defHttp.get( +export function print(id: string): Promise { + return defHttp.get( { url: baseUrl + '/print', params: { diff --git a/src/api/sc/purchase/return/model/getPurchaseReturnBo.ts b/src/api/sc/purchase/return/model/getPurchaseReturnBo.ts index 218707e752f7eef6b837c75370590468f1890f24..2eb850b1a934526d1b9aa22c747c0b97a2e60fa4 100644 --- a/src/api/sc/purchase/return/model/getPurchaseReturnBo.ts +++ b/src/api/sc/purchase/return/model/getPurchaseReturnBo.ts @@ -1,3 +1,5 @@ +import { OrderPayTypeBo } from '@/api/sc/pay-type/model/orderPayTypeBo'; + export interface GetPurchaseReturnBo { /** * ID @@ -187,7 +189,7 @@ export interface ReturnDetailBo { returnNum: number; /** - * 采购价 + * 退货价 */ purchasePrice: number; diff --git a/src/api/sc/purchase/return/model/printPurchaseReturnBo.ts b/src/api/sc/purchase/return/model/printPurchaseReturnBo.ts new file mode 100644 index 0000000000000000000000000000000000000000..3794d1cc3b41fff346bcce3697e56219b6443848 --- /dev/null +++ b/src/api/sc/purchase/return/model/printPurchaseReturnBo.ts @@ -0,0 +1,97 @@ +export interface PrintPurchaseReturnBo { + /** + * 单号 + */ + code: string; + /** + * 仓库编号 + */ + scCode: string; + /** + * 仓库名称 + */ + scName: string; + /** + * 供应商编号 + */ + supplierCode: string; + /** + * 供应商名称 + */ + supplierName: string; + /** + * 采购员姓名 + */ + purchaserName: string; + /** + * 付款日期 + */ + paymentDate: string; + /** + * 采购收货单号 + */ + receiveSheetCode: string; + /** + * 备注 + */ + description: string; + /** + * 创建人 + */ + createBy: string; + /** + * 创建时间 + */ + createTime: string; + /** + * 审核人 + */ + approveBy: string; + /** + * 审核时间 + */ + approveTime: string; + /** + * 订单明细 + */ + details: ReturnDetailBo[]; +} + +export interface ReturnDetailBo { + /** + * 明细ID + */ + id: string; + /** + * 商品ID + */ + productId: string; + /** + * 商品编号 + */ + productCode: string; + /** + * 商品名称 + */ + productName: string; + /** + * SKU编号 + */ + skuCode: string; + /** + * 简码 + */ + externalCode: string; + /** + * 退货数量 + */ + returnNum: number; + /** + * 退货价 + */ + purchasePrice: number; + /** + * 退货金额 + */ + returnAmount: number; +} diff --git a/src/api/sc/purchase/return/model/returnProductVo.ts b/src/api/sc/purchase/return/model/returnProductVo.ts index f5f34f8041d5a90adae218ae8b23a274642ef73e..e3efa5387084b1c98d1fa5c0ee7e1d4819b8f84b 100644 --- a/src/api/sc/purchase/return/model/returnProductVo.ts +++ b/src/api/sc/purchase/return/model/returnProductVo.ts @@ -5,7 +5,7 @@ export interface ReturnProductVo { productId: string; /** - * 采购价 + * 退货价 */ purchasePrice: number; diff --git a/src/api/sc/retail/out/index.ts b/src/api/sc/retail/out/index.ts index 0ecd317352889e973c21826bfd733b29b539bf83..73fecd68af8a629e53e22c542cee018fdb68dbde 100644 --- a/src/api/sc/retail/out/index.ts +++ b/src/api/sc/retail/out/index.ts @@ -1,6 +1,5 @@ import { defHttp } from '/@/utils/http/axios'; import { ContentTypeEnum } from '@/enums/httpEnum'; -import { A4ExcelPortraitPrintBo } from '@/api/model/a4ExcelPortraitPrintBo'; import { PageResult } from '@/api/model/pageResult'; import { GetPaymentDateBo } from '@/api/sc/purchase/receive/model/getPaymentDateBo'; import { QueryRetailOutSheetVo } from '@/api/sc/retail/out/model/queryRetailOutSheetVo'; @@ -15,6 +14,7 @@ import { ApprovePassRetailOutSheetVo } from '@/api/sc/retail/out/model/approvePa import { ApproveRefuseRetailOutSheetVo } from '@/api/sc/retail/out/model/approveRefuseRetailOutSheetVo'; import { RetailProductBo } from '@/api/sc/retail/out/model/retailProductBo'; import { QueryRetailProductVo } from '@/api/sc/retail/out/model/queryRetailProductVo'; +import { PrintRetailOutSheetBo } from '@/api/sc/retail/out/model/printRetailOutSheetBo'; const baseUrl = '/retail/out/sheet'; const region = 'cloud-api'; @@ -22,8 +22,8 @@ const region = 'cloud-api'; /** * 打印 */ -export function print(id: string): Promise { - return defHttp.get( +export function print(id: string): Promise { + return defHttp.get( { url: baseUrl + '/print', params: { diff --git a/src/api/sc/retail/out/model/printRetailOutSheetBo.ts b/src/api/sc/retail/out/model/printRetailOutSheetBo.ts new file mode 100644 index 0000000000000000000000000000000000000000..335403d50fb53654ed3f9486a9f525004a9786ec --- /dev/null +++ b/src/api/sc/retail/out/model/printRetailOutSheetBo.ts @@ -0,0 +1,85 @@ +export interface PrintRetailOutSheetBo { + /** + * 单号 + */ + code: string; + /** + * 仓库编号 + */ + scCode: string; + /** + * 仓库名称 + */ + scName: string; + /** + * 会员编号 + */ + memberCode: string; + /** + * 会员名称 + */ + memberName: string; + /** + * 销售员姓名 + */ + salerName: string; + /** + * 付款日期 + */ + paymentDate: string; + /** + * 备注 + */ + description: string; + /** + * 创建人 + */ + createBy: string; + /** + * 创建时间 + */ + createTime: string; + /** + * 审核人 + */ + approveBy: string; + /** + * 审核时间 + */ + approveTime: string; + /** + * 订单明细 + */ + details: OrderDetailBo[]; +} + +export interface OrderDetailBo { + /** + * 商品编号 + */ + productCode: string; + /** + * 商品名称 + */ + productName: string; + /** + * SKU编号 + */ + skuCode: string; + /** + * 简码 + */ + externalCode: string; + /** + * 收货数量 + */ + receiveNum: number; + /** + * 采购价 + */ + purchasePrice: number; + /** + * 收货金额 + */ + receiveAmount: number; +} diff --git a/src/api/sc/retail/return/index.ts b/src/api/sc/retail/return/index.ts index 33ef3317ec48a30f6ecc91acee4c44dab932fc83..15ba5c362b35bc546f381e092f082326a729078f 100644 --- a/src/api/sc/retail/return/index.ts +++ b/src/api/sc/retail/return/index.ts @@ -1,6 +1,5 @@ import { defHttp } from '/@/utils/http/axios'; import { ContentTypeEnum } from '@/enums/httpEnum'; -import { A4ExcelPortraitPrintBo } from '@/api/model/a4ExcelPortraitPrintBo'; import { PageResult } from '@/api/model/pageResult'; import { QueryRetailReturnBo } from '@/api/sc/retail/return/model/queryRetailReturnBo'; import { QueryRetailReturnVo } from '@/api/sc/retail/return/model/queryRetailReturnVo'; @@ -9,6 +8,7 @@ import { CreateRetailReturnVo } from '@/api/sc/retail/return/model/createRetailR import { UpdateRetailReturnVo } from '@/api/sc/retail/return/model/updateRetailReturnVo'; import { ApprovePassRetailReturnVo } from '@/api/sc/retail/return/model/approvePassRetailReturnVo'; import { ApproveRefuseRetailReturnVo } from '@/api/sc/retail/return/model/approveRefuseRetailReturnVo'; +import { PrintRetailReturnBo } from '@/api/sc/retail/return/model/printRetailReturnBo'; const baseUrl = '/retail/return'; const region = 'cloud-api'; @@ -16,8 +16,8 @@ const region = 'cloud-api'; /** * 打印 */ -export function print(id: string): Promise { - return defHttp.get( +export function print(id: string): Promise { + return defHttp.get( { url: baseUrl + '/print', params: { diff --git a/src/api/sc/retail/return/model/printRetailReturnBo.ts b/src/api/sc/retail/return/model/printRetailReturnBo.ts new file mode 100644 index 0000000000000000000000000000000000000000..4b35a6aae2a4414517749f5c79b24ddcb8e6ca1b --- /dev/null +++ b/src/api/sc/retail/return/model/printRetailReturnBo.ts @@ -0,0 +1,97 @@ +export interface PrintRetailReturnBo { + /** + * 单号 + */ + code: string; + /** + * 仓库编号 + */ + scCode: string; + /** + * 仓库名称 + */ + scName: string; + /** + * 客户编号 + */ + memberCode: string; + /** + * 客户名称 + */ + memberName: string; + /** + * 销售员姓名 + */ + salerName: string; + /** + * 付款日期 + */ + paymentDate: string; + /** + * 销售出库单号 + */ + outSheetCode: string; + /** + * 备注 + */ + description: string; + /** + * 创建人 + */ + createBy: string; + /** + * 创建时间 + */ + createTime: string; + /** + * 审核人 + */ + approveBy: string; + /** + * 审核时间 + */ + approveTime: string; + /** + * 订单明细 + */ + details: ReturnDetailBo[]; +} + +export interface ReturnDetailBo { + /** + * 明细ID + */ + id: string; + /** + * 商品ID + */ + productId: string; + /** + * 商品编号 + */ + productCode: string; + /** + * 商品名称 + */ + productName: string; + /** + * SKU编号 + */ + skuCode: string; + /** + * 简码 + */ + externalCode: string; + /** + * 退货数量 + */ + returnNum: number; + /** + * 采购价 + */ + purchasePrice: number; + /** + * 退货金额 + */ + returnAmount: number; +} diff --git a/src/api/sc/sale/order/index.ts b/src/api/sc/sale/order/index.ts index e92955f504bda8a4ea2c07f08754f5b9d7e7d4a0..c105b21e8da9a417c0cfba8be3463b9bc257d7e0 100644 --- a/src/api/sc/sale/order/index.ts +++ b/src/api/sc/sale/order/index.ts @@ -1,6 +1,5 @@ import { defHttp } from '/@/utils/http/axios'; import { ContentTypeEnum } from '@/enums/httpEnum'; -import { A4ExcelPortraitPrintBo } from '@/api/model/a4ExcelPortraitPrintBo'; import { QuerySaleOrderVo } from '@/api/sc/sale/order/model/querySaleOrderVo'; import { PageResult } from '@/api/model/pageResult'; import { QuerySaleOrderBo } from '@/api/sc/sale/order/model/querySaleOrderBo'; @@ -14,6 +13,7 @@ import { SaleOrderWithOutBo } from '@/api/sc/sale/order/model/saleOrderWithOutBo import { QuerySaleOrderWithOutBo } from '@/api/sc/sale/order/model/querySaleOrderWithOutBo'; import { QuerySaleOrderWithOutVo } from '@/api/sc/sale/order/model/querySaleOrderWithOutVo'; import { QuerySaleProductVo } from '@/api/sc/sale/order/model/querySaleProductVo'; +import { PrintSaleOrderBo } from '@/api/sc/sale/order/model/printSaleOrderBo'; const baseUrl = '/sale/order'; const region = 'cloud-api'; @@ -21,8 +21,8 @@ const region = 'cloud-api'; /** * 打印 */ -export function print(id: string): Promise { - return defHttp.get( +export function print(id: string): Promise { + return defHttp.get( { url: baseUrl + '/print', params: { diff --git a/src/api/sc/sale/order/model/printSaleOrderBo.ts b/src/api/sc/sale/order/model/printSaleOrderBo.ts new file mode 100644 index 0000000000000000000000000000000000000000..2ea8990c65085688aafd68f62d59e56ec775b0e8 --- /dev/null +++ b/src/api/sc/sale/order/model/printSaleOrderBo.ts @@ -0,0 +1,81 @@ +export interface PrintSaleOrderBo { + /** + * 单号 + */ + code: string; + /** + * 仓库编号 + */ + scCode: string; + /** + * 仓库名称 + */ + scName: string; + /** + * 客户编号 + */ + customerCode: string; + /** + * 客户名称 + */ + customerName: string; + /** + * 销售员姓名 + */ + salerName: string; + /** + * 备注 + */ + description: string; + /** + * 创建人 + */ + createBy: string; + /** + * 创建时间 + */ + createTime: string; + /** + * 审核人 + */ + approveBy: string; + /** + * 审核时间 + */ + approveTime: string; + /** + * 订单明细 + */ + details: OrderDetailBo[]; +} + +export interface OrderDetailBo { + /** + * 商品编号 + */ + productCode: string; + /** + * 商品名称 + */ + productName: string; + /** + * SKU编号 + */ + skuCode: string; + /** + * 简码 + */ + externalCode: string; + /** + * 收货数量 + */ + receiveNum: number; + /** + * 采购价 + */ + purchasePrice: number; + /** + * 收货金额 + */ + receiveAmount: number; +} diff --git a/src/api/sc/sale/out/index.ts b/src/api/sc/sale/out/index.ts index 5aec8d75ec8d78fd18b0b71c830a17b3ff57cc3f..79aaa1700e65ef5b3be732d513566d14f8e2d1e0 100644 --- a/src/api/sc/sale/out/index.ts +++ b/src/api/sc/sale/out/index.ts @@ -1,6 +1,5 @@ import { defHttp } from '/@/utils/http/axios'; import { ContentTypeEnum } from '@/enums/httpEnum'; -import { A4ExcelPortraitPrintBo } from '@/api/model/a4ExcelPortraitPrintBo'; import { PageResult } from '@/api/model/pageResult'; import { GetPaymentDateBo } from '@/api/sc/purchase/receive/model/getPaymentDateBo'; import { QuerySaleOutSheetBo } from '@/api/sc/sale/out/model/querySaleOutSheetBo'; @@ -13,6 +12,7 @@ import { CreateSaleOutSheetVo } from '@/api/sc/sale/out/model/createSaleOutSheet import { UpdateSaleOutSheetVo } from '@/api/sc/sale/out/model/updateSaleOutSheetVo'; import { ApprovePassSaleOutSheetVo } from '@/api/sc/sale/out/model/approvePassSaleOutSheetVo'; import { ApproveRefuseSaleOutSheetVo } from '@/api/sc/sale/out/model/approveRefuseSaleOutSheetVo'; +import { PrintSaleOutSheetBo } from '@/api/sc/sale/out/model/printSaleOutSheetBo'; const baseUrl = '/sale/out/sheet'; const region = 'cloud-api'; @@ -20,8 +20,8 @@ const region = 'cloud-api'; /** * 打印 */ -export function print(id: string): Promise { - return defHttp.get( +export function print(id: string): Promise { + return defHttp.get( { url: baseUrl + '/print', params: { diff --git a/src/api/sc/sale/out/model/printSaleOutSheetBo.ts b/src/api/sc/sale/out/model/printSaleOutSheetBo.ts new file mode 100644 index 0000000000000000000000000000000000000000..25274051dd88dcde79b38f226d93552705b5fc53 --- /dev/null +++ b/src/api/sc/sale/out/model/printSaleOutSheetBo.ts @@ -0,0 +1,89 @@ +export interface PrintSaleOutSheetBo { + /** + * 单号 + */ + code: string; + /** + * 仓库编号 + */ + scCode: string; + /** + * 仓库名称 + */ + scName: string; + /** + * 客户编号 + */ + customerCode: string; + /** + * 客户名称 + */ + customerName: string; + /** + * 销售员姓名 + */ + salerName: string; + /** + * 付款日期 + */ + paymentDate: string; + /** + * 销售订单号 + */ + saleOrderCode: string; + /** + * 备注 + */ + description: string; + /** + * 创建人 + */ + createBy: string; + /** + * 创建时间 + */ + createTime: string; + /** + * 审核人 + */ + approveBy: string; + /** + * 审核时间 + */ + approveTime: string; + /** + * 订单明细 + */ + details: OrderDetailBo[]; +} + +export interface OrderDetailBo { + /** + * 商品编号 + */ + productCode: string; + /** + * 商品名称 + */ + productName: string; + /** + * SKU编号 + */ + skuCode: string; + /** + * 简码 + */ + externalCode: string; + /** + * 收货数量 + */ + receiveNum: number; + /** + * 采购价 + */ + purchasePrice: number; + /** + * 收货金额 + */ + receiveAmount: number; +} diff --git a/src/api/sys/model/userModel.ts b/src/api/sys/model/userModel.ts index 352dbdce824fdddcaad4c5354e9dd9cd4ef0ac4a..cc8d55607cd33a233ab599c3dfd9eedb7b62a88c 100644 --- a/src/api/sys/model/userModel.ts +++ b/src/api/sys/model/userModel.ts @@ -2,7 +2,7 @@ * @description: Login interface parameters */ export interface LoginParams { - tenantName: string, + tenantName: string; username: string; password: string; sn: string; diff --git a/src/api/system/role-category/index.ts b/src/api/system/role-category/index.ts new file mode 100644 index 0000000000000000000000000000000000000000..ec35d1d639f0134d607bfd04fe98f7c2bf39724c --- /dev/null +++ b/src/api/system/role-category/index.ts @@ -0,0 +1,123 @@ +import { defHttp } from '/@/utils/http/axios'; +import { PageResult } from '@/api/model/pageResult'; +import { ContentTypeEnum } from '@/enums/httpEnum'; +import { QuerySysRoleCategoryBo } from '@/api/system/role-category/model/querySysRoleCategoryBo'; +import { GetSysRoleCategoryBo } from '@/api/system/role-category/model/getSysRoleCategoryBo'; +import { CreateSysRoleCategoryVo } from '@/api/system/role-category/model/createSysRoleCategoryVo'; +import { UpdateSysRoleCategoryVo } from '@/api/system/role-category/model/updateSysRoleCategoryVo'; +import { SysRoleSelectorBo } from '@/api/system/role-category/model/sysRoleSelectorBo'; +import { SysRoleCategorySelectorVo } from '@/api/system/role-category/model/sysRoleCategorySelectorVo'; + +const baseUrl = '/sys/role/category'; +const selectorBaseUrl = '/selector'; +const region = 'cloud-api'; + +export function selector( + params: SysRoleCategorySelectorVo, +): Promise> { + return defHttp.get>( + { + url: selectorBaseUrl + '/role/category', + params, + }, + { + region, + }, + ); +} + +export function loadRoleCategory(ids: string[]): Promise { + return defHttp.post( + { + url: selectorBaseUrl + '/role/category/load', + data: ids, + }, + { + contentType: ContentTypeEnum.JSON, + region, + }, + ); +} + +/** + * 查询列表 + */ +export function query(): Promise { + return defHttp.get( + { + url: baseUrl + '/query', + }, + { + region, + }, + ); +} + +/** + * 查询 + */ +export function get(id: string): Promise { + return defHttp.get( + { + url: baseUrl, + params: { + id, + }, + }, + { + region, + }, + ); +} + +/** + * 新增 + * @param data + */ +export function create(data: CreateSysRoleCategoryVo): Promise { + return defHttp.post( + { + url: baseUrl, + data, + }, + { + contentType: ContentTypeEnum.FORM_URLENCODED, + region, + }, + ); +} + +/** + * 修改 + * @param data + */ +export function update(data: UpdateSysRoleCategoryVo): Promise { + return defHttp.put( + { + url: baseUrl, + data, + }, + { + contentType: ContentTypeEnum.FORM_URLENCODED, + region, + }, + ); +} + +/** + * 删除 + */ +export function deleteById(id: string): Promise { + return defHttp.delete( + { + url: baseUrl, + data: { + id, + }, + }, + { + contentType: ContentTypeEnum.FORM_URLENCODED, + region, + }, + ); +} diff --git a/src/api/system/role-category/model/createSysRoleCategoryVo.ts b/src/api/system/role-category/model/createSysRoleCategoryVo.ts new file mode 100644 index 0000000000000000000000000000000000000000..00c80ea0f094c6489ae3872a47e0ee8b499510e7 --- /dev/null +++ b/src/api/system/role-category/model/createSysRoleCategoryVo.ts @@ -0,0 +1,11 @@ +export interface CreateSysRoleCategoryVo { + /** + * 编号 + */ + code: string; + + /** + * 名称 + */ + name: string; +} diff --git a/src/api/system/role-category/model/getSysRoleCategoryBo.ts b/src/api/system/role-category/model/getSysRoleCategoryBo.ts new file mode 100644 index 0000000000000000000000000000000000000000..4c8d3889075b2e137d6e755f554c7e31a0614cf3 --- /dev/null +++ b/src/api/system/role-category/model/getSysRoleCategoryBo.ts @@ -0,0 +1,16 @@ +export interface GetSysRoleCategoryBo { + /** + * ID + */ + id: string; + + /** + * 编号 + */ + code: string; + + /** + * 名称 + */ + name: string; +} diff --git a/src/api/system/role-category/model/querySysRoleCategoryBo.ts b/src/api/system/role-category/model/querySysRoleCategoryBo.ts new file mode 100644 index 0000000000000000000000000000000000000000..ce9f5c942704a7556dbe368db4cbe2a70f3d201f --- /dev/null +++ b/src/api/system/role-category/model/querySysRoleCategoryBo.ts @@ -0,0 +1,16 @@ +export interface QuerySysRoleCategoryBo { + /** + * ID + */ + id: string; + + /** + * 编号 + */ + code: string; + + /** + * 名称 + */ + name: string; +} diff --git a/src/api/system/role-category/model/sysRoleCategorySelectorVo.ts b/src/api/system/role-category/model/sysRoleCategorySelectorVo.ts new file mode 100644 index 0000000000000000000000000000000000000000..3936ddf19ab03977496d39d47b01a5bf52a30946 --- /dev/null +++ b/src/api/system/role-category/model/sysRoleCategorySelectorVo.ts @@ -0,0 +1,13 @@ +import { PageVo } from '@/api/model/pageVo'; + +export interface SysRoleCategorySelectorVo extends PageVo { + /** + * 编号 + */ + code: string; + + /** + * 名称 + */ + name: string; +} diff --git a/src/api/system/role-category/model/sysRoleSelectorBo.ts b/src/api/system/role-category/model/sysRoleSelectorBo.ts new file mode 100644 index 0000000000000000000000000000000000000000..c4af35f6cb1e97f6fa99e5b1b2bb381fcdff69fb --- /dev/null +++ b/src/api/system/role-category/model/sysRoleSelectorBo.ts @@ -0,0 +1,16 @@ +export interface SysRoleSelectorBo { + /** + * ID + */ + id: string; + + /** + * 编号 + */ + code: string; + + /** + * 名称 + */ + name: string; +} diff --git a/src/api/system/role-category/model/updateSysRoleCategoryVo.ts b/src/api/system/role-category/model/updateSysRoleCategoryVo.ts new file mode 100644 index 0000000000000000000000000000000000000000..67ab5d7807eddb20bacd6b04e2247fbe98086041 --- /dev/null +++ b/src/api/system/role-category/model/updateSysRoleCategoryVo.ts @@ -0,0 +1,16 @@ +export interface UpdateSysRoleCategoryVo { + /** + * ID + */ + id: string; + + /** + * 编号 + */ + code: string; + + /** + * 名称 + */ + name: string; +} diff --git a/src/api/system/site-message/index.ts b/src/api/system/site-message/index.ts index 4fec36bbeaa28b207f377ac32fe4deb0f4477f7b..4f5a89ac0561bd12d8b9f94760739b520c92420f 100644 --- a/src/api/system/site-message/index.ts +++ b/src/api/system/site-message/index.ts @@ -5,7 +5,7 @@ import { QuerySysSiteMessageVo } from '@/api/system/site-message/model/querySysS import { QuerySysSiteMessageByUserVo } from '@/api/system/site-message/model/querySysSiteMessageByUserVo'; import { QueryMySysSiteMessageBo } from '@/api/system/site-message/model/queryMySysSiteMessageBo'; import { SiteMessageDto } from '@/api/system/site-message/model/siteMessageDto'; -import {GetSysSiteMessageBo} from "@/api/system/site-message/model/getSysSiteMessageBo"; +import { GetSysSiteMessageBo } from '@/api/system/site-message/model/getSysSiteMessageBo'; const baseUrl = '/system/message/site'; const region = 'cloud-api'; diff --git a/src/api/system/user-group/index.ts b/src/api/system/user-group/index.ts new file mode 100644 index 0000000000000000000000000000000000000000..67d8b69e338132507bb2fce6e4e99d949cb0e3ea --- /dev/null +++ b/src/api/system/user-group/index.ts @@ -0,0 +1,108 @@ +import { defHttp } from '/@/utils/http/axios'; +import { PageResult } from '@/api/model/pageResult'; +import { ContentTypeEnum } from '@/enums/httpEnum'; +import { QuerySysUserGroupBo } from '@/api/system/user-group/model/querySysUserGroupBo'; +import { QuerySysUserGroupVo } from '@/api/system/user-group/model/querySysUserGroupVo'; +import { GetSysUserGroupBo } from '@/api/system/user-group/model/getSysUserGroupBo'; +import { CreateSysUserGroupVo } from '@/api/system/user-group/model/createSysUserGroupVo'; +import { UpdateSysUserGroupVo } from '@/api/system/user-group/model/updateSysUserGroupVo'; +import { SysUserGroupSelectorVo } from '@/api/system/user-group/model/sysUserGroupSelectorVo'; +import { SysUserGroupSelectorBo } from '@/api/system/user-group/model/sysUserGroupSelectorBo'; + +const baseUrl = '/sys/user/group'; +const selectorBaseUrl = '/selector'; +const region = 'cloud-api'; + +export function selector( + params: SysUserGroupSelectorVo, +): Promise> { + return defHttp.get>( + { + url: selectorBaseUrl + '/user/group', + params, + }, + { + region, + }, + ); +} + +export function loadUserGroup(ids: string[]): Promise { + return defHttp.post( + { + url: selectorBaseUrl + '/user/group/load', + data: ids, + }, + { + contentType: ContentTypeEnum.JSON, + region, + }, + ); +} + +/** + * 查询列表 + */ +export function query(params: QuerySysUserGroupVo): Promise> { + return defHttp.get>( + { + url: baseUrl + '/query', + params, + }, + { + region, + }, + ); +} + +/** + * 根据ID查询 + * @param id + */ +export function get(id: string): Promise { + return defHttp.get( + { + url: baseUrl + '/detail', + params: { + id: id, + }, + }, + { + region, + }, + ); +} + +/** + * 新增 + * @param data + */ +export function create(data: CreateSysUserGroupVo): Promise { + return defHttp.post( + { + url: baseUrl, + data, + }, + { + contentType: ContentTypeEnum.JSON, + region, + }, + ); +} + +/** + * 修改 + * @param data + */ +export function update(data: UpdateSysUserGroupVo): Promise { + return defHttp.put( + { + url: baseUrl, + data, + }, + { + contentType: ContentTypeEnum.JSON, + region, + }, + ); +} diff --git a/src/api/system/user-group/model/createSysUserGroupVo.ts b/src/api/system/user-group/model/createSysUserGroupVo.ts new file mode 100644 index 0000000000000000000000000000000000000000..187d0eeae7ebfcf50dbf363e2ba293cc31c7eadc --- /dev/null +++ b/src/api/system/user-group/model/createSysUserGroupVo.ts @@ -0,0 +1,26 @@ +export interface CreateSysUserGroupVo { + /** + * 名称 + */ + name: string; + + /** + * 接收者类型 + */ + receiverType: number; + + /** + * 接收者ID + */ + receiverIds: Array; + + /** + * 消息类型 + */ + messageType: Array; + + /** + * 备注 + */ + description: string; +} diff --git a/src/api/system/user-group/model/getSysUserGroupBo.ts b/src/api/system/user-group/model/getSysUserGroupBo.ts new file mode 100644 index 0000000000000000000000000000000000000000..3338555df6f3af796bc9240ecb08896d07f954d1 --- /dev/null +++ b/src/api/system/user-group/model/getSysUserGroupBo.ts @@ -0,0 +1,36 @@ +export interface GetSysUserGroupBo { + /** + * ID + */ + id: string; + + /** + * 名称 + */ + name: string; + + /** + * 接收者类型 + */ + receiverType: number; + + /** + * 接收者ID + */ + receiverIds: Array; + + /** + * 消息类型 + */ + messageType: Array; + + /** + * 备注 + */ + description: string; + + /** + * 状态 + */ + available: boolean; +} diff --git a/src/api/system/user-group/model/querySysUserGroupBo.ts b/src/api/system/user-group/model/querySysUserGroupBo.ts new file mode 100644 index 0000000000000000000000000000000000000000..537cea7faef489e16d460501b285636d29d97a73 --- /dev/null +++ b/src/api/system/user-group/model/querySysUserGroupBo.ts @@ -0,0 +1,41 @@ +export interface QuerySysUserGroupBo { + /** + * ID + */ + id: string; + + /** + * 名称 + */ + name: string; + + /** + * 接收者类型 + */ + receiverType: string; + + /** + * 消息类型 + */ + messageType: Array; + + /** + * 备注 + */ + description: string; + + /** + * 创建人 + */ + createBy: string; + + /** + * 创建时间 + */ + createTime: string; + + /** + * 状态 + */ + available: boolean; +} diff --git a/src/api/system/user-group/model/querySysUserGroupVo.ts b/src/api/system/user-group/model/querySysUserGroupVo.ts new file mode 100644 index 0000000000000000000000000000000000000000..9d1b96ab335f961cc76df67db6e349f42acf325b --- /dev/null +++ b/src/api/system/user-group/model/querySysUserGroupVo.ts @@ -0,0 +1,23 @@ +import { SortPageVo } from '@/api/model/sortPageVo'; + +export interface QuerySysUserGroupVo extends SortPageVo { + /** + * 名称 + */ + name: string; + + /** + * 创建时间 起始时间 + */ + createTimeStart: string; + + /** + * 创建时间 截止时间 + */ + createTimeEnd: string; + + /** + * 状态 + */ + available: boolean; +} diff --git a/src/api/system/user-group/model/sysUserGroupSelectorBo.ts b/src/api/system/user-group/model/sysUserGroupSelectorBo.ts new file mode 100644 index 0000000000000000000000000000000000000000..77c0116b1f40a2976be53bbd3e7bba7bd0d9acfe --- /dev/null +++ b/src/api/system/user-group/model/sysUserGroupSelectorBo.ts @@ -0,0 +1,16 @@ +export interface SysUserGroupSelectorBo { + /** + * ID + */ + id: string; + + /** + * 名称 + */ + name: string; + + /** + * 状态 + */ + available: boolean; +} diff --git a/src/api/system/user-group/model/sysUserGroupSelectorVo.ts b/src/api/system/user-group/model/sysUserGroupSelectorVo.ts new file mode 100644 index 0000000000000000000000000000000000000000..b49249f12ed5e04ce2dad3fa6d2caf068e3d2796 --- /dev/null +++ b/src/api/system/user-group/model/sysUserGroupSelectorVo.ts @@ -0,0 +1,13 @@ +import { PageVo } from '@/api/model/pageVo'; + +export interface SysUserGroupSelectorVo extends PageVo { + /** + * 名称 + */ + name: string; + + /** + * 状态 + */ + available: boolean; +} diff --git a/src/api/system/user-group/model/updateSysUserGroupVo.ts b/src/api/system/user-group/model/updateSysUserGroupVo.ts new file mode 100644 index 0000000000000000000000000000000000000000..34aded536d196e5194d43daaa1d55fd55e73f580 --- /dev/null +++ b/src/api/system/user-group/model/updateSysUserGroupVo.ts @@ -0,0 +1,13 @@ +import { CreateSysUserGroupVo } from '@/api/system/user-group/model/createSysUserGroupVo'; + +export interface UpdateSysUserGroupVo extends CreateSysUserGroupVo { + /** + * ID + */ + id: string; + + /** + * 状态 + */ + available: boolean; +} diff --git a/src/components/BpmApprove/index.ts b/src/components/BpmApprove/index.ts new file mode 100644 index 0000000000000000000000000000000000000000..489670686908a0fc5883344287a99c8a5c9ea3a4 --- /dev/null +++ b/src/components/BpmApprove/index.ts @@ -0,0 +1,15 @@ +import BpmApprove from './src/BpmApprove.vue'; +import BpmApproveHis from './src/ApproveHis.vue' + +// 自定义业务组件 +import PurchaseOrderViewer from '@/views/sc/purchase/order/viewer.vue'; + +const install = function (Vue) { + Vue.component('BpmApprove', BpmApprove); + Vue.component('BpmApproveHis', BpmApproveHis); + // 系统功能自定义组件 + Vue.component('PurchaseOrderViewer', PurchaseOrderViewer); +}; +export default { + install, +}; diff --git a/src/components/BpmApprove/src/ApproveDialog.vue b/src/components/BpmApprove/src/ApproveDialog.vue new file mode 100644 index 0000000000000000000000000000000000000000..6aac984cdc3d4f120e28f1ff2a3fb511bb4b907e --- /dev/null +++ b/src/components/BpmApprove/src/ApproveDialog.vue @@ -0,0 +1,132 @@ + + + diff --git a/src/components/BpmApprove/src/ApproveHis.vue b/src/components/BpmApprove/src/ApproveHis.vue new file mode 100644 index 0000000000000000000000000000000000000000..ab8e26ea06028cbf9597bd44730dc902f11c6b09 --- /dev/null +++ b/src/components/BpmApprove/src/ApproveHis.vue @@ -0,0 +1,49 @@ + + + diff --git a/src/components/BpmApprove/src/BpmApprove.vue b/src/components/BpmApprove/src/BpmApprove.vue new file mode 100644 index 0000000000000000000000000000000000000000..c7ff19508c642dc697b9fc2f09d1cb93313fa60d --- /dev/null +++ b/src/components/BpmApprove/src/BpmApprove.vue @@ -0,0 +1,248 @@ + + + diff --git a/src/components/ChartCard/src/ChartCard.vue b/src/components/ChartCard/src/ChartCard.vue index 6326a975bedf11399b746841b5b2ac7079764bbd..716bf59a141fde731e8b738967dbfa4ca64f18cd 100644 --- a/src/components/ChartCard/src/ChartCard.vue +++ b/src/components/ChartCard/src/ChartCard.vue @@ -8,7 +8,7 @@
diff --git a/src/components/CodeEditor/src/CodeEditor.vue b/src/components/CodeEditor/src/CodeEditor.vue index 37ab7db26b5ce0b85bb191c3baabd4cdf72678d4..3c56da07d42540416d6f2a3f8bffb09945542c28 100644 --- a/src/components/CodeEditor/src/CodeEditor.vue +++ b/src/components/CodeEditor/src/CodeEditor.vue @@ -1,5 +1,5 @@