xyvcard-itsm-flow 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/style.css ADDED
@@ -0,0 +1 @@
1
+ @charset "UTF-8";.title{text-align:center;font-weight:700;font-size:18px;margin-bottom:15px}.addButton{margin-top:15px;margin-bottom:20px;width:100%}.hover-blue:hover{color:#409eff!important}
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,18 @@
1
+ import { BizDict, BizLayDict, type Entry, type LayEntry } from "jmash-core";
2
+ import { type SysOrgModel } from "xyvcard-itsmsys";
3
+ export declare class ItsmContractBizDict extends BizDict {
4
+ useValues(): Promise<Entry[]>;
5
+ }
6
+ export declare class OrgIdBizDict extends BizDict {
7
+ useValues(): Promise<Entry[]>;
8
+ }
9
+ export declare class ContractUserBizDict extends BizDict {
10
+ useValues(): Promise<Entry[]>;
11
+ }
12
+ export declare class ParentIdBizDict extends BizLayDict {
13
+ useValues(excludeOrgId?: string): Promise<LayEntry[]>;
14
+ convertToLayEntryArray(dictLayEntries: SysOrgModel[]): LayEntry[];
15
+ }
16
+ export declare class ItemBizDict extends BizDict {
17
+ useValues(): Promise<Entry[]>;
18
+ }
@@ -0,0 +1,13 @@
1
+ import { CustomBizDict, EnumDict } from "jmash-core";
2
+ import { ContractUserBizDict, ItemBizDict, ItsmContractBizDict, OrgIdBizDict, ParentIdBizDict } from "./dict";
3
+ import { EntryDict } from "jmash-dict";
4
+ export declare class Dict {
5
+ static readonly itsmContractBizDict: ItsmContractBizDict;
6
+ static readonly orgIdBizDict: OrgIdBizDict;
7
+ static readonly contractUserBizDict: ContractUserBizDict;
8
+ static readonly isValuesDict: CustomBizDict;
9
+ static readonly serviceContentEnum: EnumDict;
10
+ static readonly projectNameDict: EntryDict;
11
+ static readonly parentIdBizDict: ParentIdBizDict;
12
+ static readonly itemBizLayDict: ItemBizDict;
13
+ }
@@ -0,0 +1,14 @@
1
+ import type { AxiosPromise } from "axios";
2
+ import type { ItsmFlowEntrustApi, ItsmFlowEntrustReq, ItsmFlowEntrustModel, ItsmFlowEntrustPage, ItsmFlowEntrustList, ItsmFlowEntrustKey, ItsmFlowEntrustExportReq, ItsmFlowEntrustApplyReq } from "./types";
3
+ declare class ItsmFlowEntrustApiImpl implements ItsmFlowEntrustApi {
4
+ getKey(model: ItsmFlowEntrustModel): ItsmFlowEntrustKey;
5
+ findPage(query?: ItsmFlowEntrustReq): AxiosPromise<ItsmFlowEntrustPage>;
6
+ findList(query?: ItsmFlowEntrustReq): AxiosPromise<ItsmFlowEntrustList>;
7
+ findById(query: ItsmFlowEntrustKey): AxiosPromise<ItsmFlowEntrustModel>;
8
+ save(data: ItsmFlowEntrustApplyReq): AxiosPromise<ItsmFlowEntrustModel>;
9
+ submit(data: ItsmFlowEntrustApplyReq): AxiosPromise<ItsmFlowEntrustModel>;
10
+ delete(query: ItsmFlowEntrustKey): AxiosPromise<ItsmFlowEntrustModel>;
11
+ exportPdf(queryParams: ItsmFlowEntrustExportReq): AxiosPromise;
12
+ }
13
+ declare const itsmFlowEntrustApi: ItsmFlowEntrustApiImpl;
14
+ export { itsmFlowEntrustApi };
@@ -0,0 +1,78 @@
1
+ import type { EntityApi, EntityReq, EntityModel, EntityList, EntityPage, EntityTotal, EntityKey, EntityCreateReq, EntityExportReq } from "jmash-core";
2
+ export interface ItsmFlowEntrustApi extends EntityApi {
3
+ }
4
+ export interface ItsmFlowEntrustReq extends EntityReq {
5
+ hasApplyStatus?: boolean;
6
+ applyStatus?: string;
7
+ likeContractName?: string;
8
+ likeContractNo?: string;
9
+ serviceContent?: string;
10
+ hasServiceContent?: boolean;
11
+ orderNo?: string;
12
+ applyId?: string;
13
+ }
14
+ export interface ItsmFlowEntrustModel extends EntityModel {
15
+ entrustId?: string;
16
+ contractName?: string;
17
+ contractNo?: string;
18
+ contractId?: string;
19
+ entrustName?: string;
20
+ entrustItsm?: Array<ItsmFlowEntrustItsm>;
21
+ belongOrg?: Array<ItsmFlowEntrustOrg>;
22
+ serviceContent?: string;
23
+ serviceOrg?: string;
24
+ orderNo?: string;
25
+ workContent?: string;
26
+ entrustUser?: Array<ItsmFlowEntrustUser>;
27
+ entrustItsmId?: string;
28
+ belongOrgId?: string;
29
+ entrustItsmName?: string;
30
+ mobileEncrypt?: boolean;
31
+ }
32
+ export interface ItsmFlowEntrustList extends EntityList {
33
+ results: Array<ItsmFlowEntrustModel>;
34
+ }
35
+ export interface ItsmFlowEntrustPage extends EntityPage {
36
+ results: Array<ItsmFlowEntrustModel>;
37
+ subTotalDto: ItsmFlowEntrustModelTotal;
38
+ totalDto: ItsmFlowEntrustModelTotal;
39
+ }
40
+ export interface ItsmFlowEntrustModelTotal extends EntityTotal {
41
+ totalSize: number;
42
+ }
43
+ export interface ItsmFlowEntrustKey extends EntityKey {
44
+ tenant?: string;
45
+ entrustId?: string;
46
+ }
47
+ export interface ItsmFlowEntrustApplyReq extends EntityCreateReq {
48
+ contractName?: string;
49
+ contractNo?: string;
50
+ contractId?: string;
51
+ entrustName?: string;
52
+ entrustItsm?: Array<ItsmFlowEntrustItsm>;
53
+ belongOrg?: Array<ItsmFlowEntrustOrg>;
54
+ serviceContent?: string;
55
+ serviceOrg?: string;
56
+ orderNo?: string;
57
+ workContent?: string;
58
+ entrustUser?: Array<ItsmFlowEntrustUser>;
59
+ }
60
+ export type ItsmFlowEntrustFormReq = ItsmFlowEntrustApplyReq;
61
+ export interface ItsmFlowEntrustExportReq extends EntityExportReq {
62
+ req: ItsmFlowEntrustReq;
63
+ }
64
+ export interface ItsmFlowEntrustOrg {
65
+ orgId?: string;
66
+ orgName?: string;
67
+ }
68
+ export interface ItsmFlowEntrustUser {
69
+ userId?: string;
70
+ userName?: string;
71
+ idNo?: string;
72
+ cost?: number;
73
+ duration?: string | string[];
74
+ }
75
+ export interface ItsmFlowEntrustItsm {
76
+ itsmId?: string;
77
+ itsmName?: string;
78
+ }
@@ -0,0 +1,8 @@
1
+ import type { AxiosPromise } from "axios";
2
+ import type { ItsmFlowEntrustUserApi, ItsmFlowEntrustUserReq, ItsmFlowEntrustUserModel, ItsmFlowEntrustUserList, ItsmFlowEntrustUserKey } from "./types";
3
+ declare class ItsmFlowEntrustUserApiImpl implements ItsmFlowEntrustUserApi {
4
+ getKey(model: ItsmFlowEntrustUserModel): ItsmFlowEntrustUserKey;
5
+ findList(query?: ItsmFlowEntrustUserReq): AxiosPromise<ItsmFlowEntrustUserList>;
6
+ }
7
+ declare const itsmFlowEntrustUserApi: ItsmFlowEntrustUserApiImpl;
8
+ export { itsmFlowEntrustUserApi };
@@ -0,0 +1,26 @@
1
+ import type { EntityApi, EntityReq, EntityModel, EntityList, EntityKey } from "jmash-core";
2
+ export interface ItsmFlowEntrustUserApi extends EntityApi {
3
+ }
4
+ export interface ItsmFlowEntrustUserReq extends EntityReq {
5
+ actionId?: string;
6
+ applyId?: string;
7
+ }
8
+ export interface ItsmFlowEntrustUserModel extends EntityModel {
9
+ entrustUserId?: string;
10
+ actionId?: string;
11
+ type?: string;
12
+ userId?: string;
13
+ userName?: string;
14
+ idNo?: string;
15
+ idNoIns?: string;
16
+ cost?: number;
17
+ duration?: string;
18
+ applyId?: string;
19
+ }
20
+ export interface ItsmFlowEntrustUserList extends EntityList {
21
+ results: Array<ItsmFlowEntrustUserModel>;
22
+ }
23
+ export interface ItsmFlowEntrustUserKey extends EntityKey {
24
+ tenant?: string;
25
+ entrustUserId?: string;
26
+ }
@@ -0,0 +1,28 @@
1
+ import { type PropType } from "vue";
2
+ import type { FlowTaskModel, TaskDealWith } from "jmash-flow";
3
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
+ task: {
5
+ type: PropType<FlowTaskModel>;
6
+ default: () => void;
7
+ };
8
+ modelValue: {
9
+ type: PropType<TaskDealWith>;
10
+ };
11
+ }>, {
12
+ changeModel: () => Promise<boolean>;
13
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
14
+ "update:modelValue": (value: TaskDealWith) => any;
15
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
16
+ task: {
17
+ type: PropType<FlowTaskModel>;
18
+ default: () => void;
19
+ };
20
+ modelValue: {
21
+ type: PropType<TaskDealWith>;
22
+ };
23
+ }>> & Readonly<{
24
+ "onUpdate:modelValue"?: ((value: TaskDealWith) => any) | undefined;
25
+ }>, {
26
+ task: FlowTaskModel;
27
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
28
+ export default _default;
@@ -0,0 +1,28 @@
1
+ export declare class Constant {
2
+ static readonly MODULE_ITSMFLOW = "itsmflow";
3
+ static readonly contractSort: {
4
+ manpower: string;
5
+ };
6
+ static readonly contractType: {
7
+ outsource: string;
8
+ };
9
+ static readonly FORMAT_MONTH = "YYYY-MM";
10
+ static readonly IS_VALUES: import("vue").Ref<{
11
+ key: boolean;
12
+ value: string;
13
+ }[], {
14
+ key: boolean;
15
+ value: string;
16
+ }[] | {
17
+ key: boolean;
18
+ value: string;
19
+ }[]>;
20
+ static readonly ENUM_SERVICE_CONTENT = "xyvcard.itsmflow.protobuf.ServiceContent";
21
+ static readonly DICT_PROJECT_NAME = "projectName";
22
+ static readonly orgType: {
23
+ hall: string;
24
+ };
25
+ static readonly status: {
26
+ regular: string;
27
+ };
28
+ }
package/dts/index.d.ts ADDED
@@ -0,0 +1,7 @@
1
+ import type { App } from "vue";
2
+ import "./styles/index.scss";
3
+ export declare const TaskItsmFlowEntrust: () => Promise<typeof import("./components/TaskItsmFlowEntrust/index.vue")>;
4
+ declare const itsm: {
5
+ install(app: App): void;
6
+ };
7
+ export default itsm;
@@ -0,0 +1 @@
1
+ export declare function loadLang(i18n: any): void;
@@ -0,0 +1,2 @@
1
+ declare const _default: {};
2
+ export default _default;
@@ -0,0 +1,83 @@
1
+ declare const _default: {
2
+ itsmFlowEntrust: {
3
+ name: string;
4
+ contractId: string;
5
+ contractNameRequired: string;
6
+ contractIdRequired: string;
7
+ contractNo: string;
8
+ contractNoRequired: string;
9
+ contractIdRequireds: string;
10
+ entrustName: string;
11
+ entrustNameRequired: string;
12
+ entrustItsmId: string;
13
+ entrustItsmIdRequired: string;
14
+ belongOrg: string;
15
+ belongOrgRequired: string;
16
+ serviceContent: string;
17
+ serviceContentRequired: string;
18
+ serviceOrg: string;
19
+ orderNo: string;
20
+ orderNoRequireds: string;
21
+ orderNoRequired: string;
22
+ workContent: string;
23
+ workContentRequired: string;
24
+ };
25
+ itsmFlowEntrustUser: {
26
+ index: string;
27
+ userId: string;
28
+ userIdRequired: string;
29
+ userIdRequireds: string;
30
+ idNo: string;
31
+ cost: string;
32
+ duration: string;
33
+ durationRequired: string;
34
+ save: string;
35
+ submit: string;
36
+ startTime: string;
37
+ endTime: string;
38
+ };
39
+ projectAcceptance: {
40
+ name: string;
41
+ orderId: string;
42
+ orderIdRequired: string;
43
+ contractName: string;
44
+ orderIdRequireds: string;
45
+ contractNumber: string;
46
+ projectName: string;
47
+ affiliatedUnit: string;
48
+ acceptancePhase: string;
49
+ acceptancePhaseRequired: string;
50
+ groupLeader: string;
51
+ groupLeaderRequired: string;
52
+ groupMember: string;
53
+ groupMemberRequired: string;
54
+ files: string;
55
+ filesRequired: string;
56
+ serviceContent: string;
57
+ serviceContentRequired: string;
58
+ result: string;
59
+ evaluate: string;
60
+ evaluateRequired: string;
61
+ };
62
+ settlement: {
63
+ name: string;
64
+ contractName: string;
65
+ certificateIdRequireds: string;
66
+ contractNumber: string;
67
+ certificateId: string;
68
+ certificateIdRequired: string;
69
+ projectName: string;
70
+ affiliatedUnit: string;
71
+ orderId: string;
72
+ orderIdRequired: string;
73
+ workContent: string;
74
+ workContentRequired: string;
75
+ statementId: string;
76
+ statementIdReRequired: string;
77
+ serviceTime: string;
78
+ totalAmount: string;
79
+ totalAmountRequired: string;
80
+ totalPrice: string;
81
+ };
82
+ };
83
+ export default _default;
package/dts/main.d.ts ADDED
@@ -0,0 +1,9 @@
1
+ import "@/permission";
2
+ import "element-plus/dist/index.css";
3
+ import "jmash-core/dist/style.css";
4
+ import "jmash-dict/dist/style.css";
5
+ import "jmash-rbac/dist/style.css";
6
+ import "jmash-flow/dist/style.css";
7
+ import "xyvcard-workflow/dist/style.css";
8
+ import "xyvcard-itsm/dist/style.css";
9
+ import "xyvcard-itsmsys/dist/style.css";
@@ -0,0 +1 @@
1
+ import "nprogress/nprogress.css";
@@ -0,0 +1,7 @@
1
+ import type { RouteRecordRaw } from "vue-router";
2
+ export declare const constantRoutes: RouteRecordRaw[];
3
+ /**
4
+ * 创建路由
5
+ */
6
+ declare const router: import("vue-router").Router;
7
+ export default router;
@@ -0,0 +1,5 @@
1
+ export declare function totalPrice(cost: number, serviceTime: number): string | undefined;
2
+ export declare function totalPrices(tableData: {
3
+ cost: number;
4
+ serviceTime: number;
5
+ }[]): number;
@@ -0,0 +1,5 @@
1
+ import type { App } from "vue";
2
+ declare const _default: {
3
+ install: (app: App) => void;
4
+ };
5
+ export default _default;
@@ -0,0 +1,28 @@
1
+ import { type PropType } from "vue";
2
+ import type { ItsmFlowEntrustKey } from "@/api/itsm-flow-entrust/types";
3
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
+ entityKey: {
5
+ type: PropType<ItsmFlowEntrustKey>;
6
+ default: () => void;
7
+ };
8
+ modelValue: {
9
+ type: PropType<boolean>;
10
+ };
11
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
12
+ refresh: (...args: any[]) => void;
13
+ "update:modelValue": (value: boolean) => void;
14
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
15
+ entityKey: {
16
+ type: PropType<ItsmFlowEntrustKey>;
17
+ default: () => void;
18
+ };
19
+ modelValue: {
20
+ type: PropType<boolean>;
21
+ };
22
+ }>> & Readonly<{
23
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
24
+ onRefresh?: ((...args: any[]) => any) | undefined;
25
+ }>, {
26
+ entityKey: ItsmFlowEntrustKey;
27
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
28
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, HTMLDivElement>;
2
+ export default _default;
package/package.json ADDED
@@ -0,0 +1,64 @@
1
+ {
2
+ "name": "xyvcard-itsm-flow",
3
+ "version": "0.0.1",
4
+ "private": false,
5
+ "module": "dist/index.mjs",
6
+ "types": "dts/index.d.ts",
7
+ "files": [
8
+ "dist",
9
+ "dts"
10
+ ],
11
+ "scripts": {
12
+ "dev": "vite --host",
13
+ "build": "vite build && pnpm build:dts",
14
+ "build:dts": "vue-tsc --declaration --emitDeclarationOnly",
15
+ "preview": "vite preview",
16
+ "build-only": "vite build",
17
+ "type-check": "vue-tsc --build --force",
18
+ "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
19
+ "format": "prettier --write src/"
20
+ },
21
+ "peerDependencies": {
22
+ "axios": "^1.7.7",
23
+ "element-plus": "^2.9.3",
24
+ "jmash-core": "^0.0.139",
25
+ "jmash-dict": "^0.0.52",
26
+ "jmash-flow": "^0.0.8",
27
+ "jmash-rbac": "^0.0.61",
28
+ "xyvcard-workflow": "^0.0.27",
29
+ "pinia": "^2.2.4",
30
+ "vue": "^3.5.11",
31
+ "vue-i18n": "^9.14.1",
32
+ "vue-router": "^4.4.5",
33
+ "xyvcard-itsmsys": "^0.0.18",
34
+ "xyvcard-itsm": "^0.0.25"
35
+ },
36
+ "devDependencies": {
37
+ "@eslint/js": "^9.14.0",
38
+ "@tsconfig/node20": "^20.1.2",
39
+ "@types/node": "^20.11.10",
40
+ "@vitejs/plugin-vue": "^5.0.3",
41
+ "@vue/tsconfig": "^0.5.1",
42
+ "eslint": "^9.14.0",
43
+ "eslint-plugin-vue": "^9.30.0",
44
+ "globals": "^15.12.0",
45
+ "npm-run-all2": "^6.1.1",
46
+ "prettier": "^3.0.3",
47
+ "sass": "^1.72.0",
48
+ "typescript": "~5.3.0",
49
+ "typescript-eslint": "^8.13.0",
50
+ "unplugin-auto-import": "^0.17.5",
51
+ "unplugin-vue-components": "^0.26.0",
52
+ "vite": "^5.0.11",
53
+ "vue-tsc": "^2.1.10"
54
+ },
55
+ "dependencies": {
56
+ "@element-plus/icons-vue": "^2.3.1",
57
+ "@vueuse/core": "^10.9.0",
58
+ "file-saver": "^2.0.5",
59
+ "fs": "0.0.1-security",
60
+ "moment": "^2.30.1",
61
+ "nprogress": "^0.2.0",
62
+ "qs": "^6.12.0"
63
+ }
64
+ }