xyvcard-asset 0.0.9 → 0.0.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (75) hide show
  1. package/dist/{assign-BLa-fXcy.mjs → assign-DzQUNp-Y.mjs} +26 -26
  2. package/dist/{edit-DmRG7fo0.mjs → edit-DdzPtYyH.mjs} +1 -1
  3. package/dist/{edit.vue_vue_type_script_setup_true_lang-DSfByOkx.mjs → edit.vue_vue_type_script_setup_true_lang-BP4-GiBE.mjs} +33 -33
  4. package/dist/{index copy-Di49EjkG.mjs → index copy-CxTCJcvX.mjs } +21 -22
  5. package/dist/{index-xyCxQquE.mjs → index-CSMEsPcN.mjs} +1 -1
  6. package/dist/{index-DeBZxOsC.mjs → index-CugJCeed.mjs} +2 -1
  7. package/dist/{index-ByVysHgI.mjs → index-GhvyIwc3.mjs} +1 -1
  8. package/dist/{index-qQuyprvx.mjs → index-pfeu6d82.mjs} +1 -1
  9. package/dist/index.mjs +2 -1
  10. package/dist/index.vue_vue_type_script_setup_true_lang-BhVtd4iX.mjs +110 -0
  11. package/dist/index.vue_vue_type_script_setup_true_lang-Dh1DZzIU.mjs +54 -0
  12. package/dist/index/345/244/207/344/273/{275-CaiMDP8J.mjs → 275-BfKo5eBT.mjs} +84 -80
  13. package/dist/style.css +1 -1
  14. package/dts/App.vue.d.ts +2 -0
  15. package/dts/api/asset/asset-asset/index.d.ts +25 -0
  16. package/dts/api/asset/asset-asset/types.d.ts +109 -0
  17. package/dts/api/asset/asset-asset-detail/index.d.ts +12 -0
  18. package/dts/api/asset/asset-asset-detail/types.d.ts +56 -0
  19. package/dts/api/asset/asset-depreciation-record/index.d.ts +11 -0
  20. package/dts/api/asset/asset-depreciation-record/types.d.ts +38 -0
  21. package/dts/api/asset/asset-inventory-record/index.d.ts +10 -0
  22. package/dts/api/asset/asset-inventory-record/types.d.ts +62 -0
  23. package/dts/api/asset/asset-service-appt-member/index.d.ts +9 -0
  24. package/dts/api/asset/asset-service-appt-member/types.d.ts +28 -0
  25. package/dts/api/asset/asset-service-appt-record/index.d.ts +9 -0
  26. package/dts/api/asset/asset-service-appt-record/types.d.ts +37 -0
  27. package/dts/api/asset/asset-site/index.d.ts +14 -0
  28. package/dts/api/asset/asset-site/types.d.ts +71 -0
  29. package/dts/api/asset/asset-site-service/index.d.ts +13 -0
  30. package/dts/api/asset/asset-site-service/types.d.ts +81 -0
  31. package/dts/api/asset/text/index.d.ts +140 -0
  32. package/dts/api/asset/text/types.d.ts +179 -0
  33. package/dts/api/dict.d.ts +19 -0
  34. package/dts/api/index.d.ts +16 -0
  35. package/dts/components/PeopleSelectAsset/index.vue.d.ts +18 -0
  36. package/dts/components/Upload/ImageUpload.vue.d.ts +38 -0
  37. package/dts/components/Upload/MultiUpload.vue.d.ts +24 -0
  38. package/dts/components/deptPeopleSelectAsset/index.vue.d.ts +14 -0
  39. package/dts/constant.d.ts +19 -0
  40. package/dts/index.d.ts +6 -0
  41. package/dts/lang/asset/en.d.ts +2 -0
  42. package/dts/lang/asset/zh-cn.d.ts +150 -0
  43. package/dts/lang/index.d.ts +1 -0
  44. package/dts/main.d.ts +4 -0
  45. package/dts/permission.d.ts +1 -0
  46. package/dts/router/page.d.ts +8 -0
  47. package/dts/utils/common.d.ts +51 -0
  48. package/dts/utils/index.d.ts +24 -0
  49. package/dts/utils/momentPlugin.d.ts +5 -0
  50. package/dts/views/asset/asset-asset/assign.vue.d.ts +29 -0
  51. package/dts/views/asset/asset-asset/edit.vue.d.ts +22 -0
  52. package/dts/views/asset/asset-asset/index.vue.d.ts +2 -0
  53. package/dts/views/asset/asset-asset/info/index.vue.d.ts +2 -0
  54. package/dts/views/asset/asset-asset-detail/edit.vue.d.ts +20 -0
  55. package/dts/views/asset/asset-asset-detail/index.vue.d.ts +2 -0
  56. package/dts/views/asset/asset-depreciation-record/index.vue.d.ts +2 -0
  57. package/dts/views/asset/asset-depreciation-record/info/index.vue.d.ts +2 -0
  58. package/dts/views/asset/asset-inventory-record/dialogSelect/index.vue.d.ts +6 -0
  59. package/dts/views/asset/asset-inventory-record/index.vue.d.ts +2 -0
  60. package/dts/views/asset/asset-inventory-record/indexOld.vue.d.ts +2 -0
  61. package/dts/views/asset/asset-inventory-record/index/345/244/207/344/273/275.vue.d.ts +2 -0
  62. package/dts/views/asset/asset-inventory-record/info/index.vue.d.ts +2 -0
  63. package/dts/views/asset/asset-inventory-record/text/index copy.vue.d.ts +2 -0
  64. package/dts/views/asset/asset-inventory-record/text/index.vue.d.ts +2 -0
  65. package/dts/views/asset/asset-service-appt-record/index.vue.d.ts +2 -0
  66. package/dts/views/asset/asset-service-appt-record/info/index.vue.d.ts +2 -0
  67. package/dts/views/asset/asset-site/edit.vue.d.ts +22 -0
  68. package/dts/views/asset/asset-site/index.vue.d.ts +2 -0
  69. package/dts/views/asset/asset-site/info/index.vue.d.ts +2 -0
  70. package/dts/views/asset/asset-site-service/edit.vue.d.ts +22 -0
  71. package/dts/views/asset/asset-site-service/index.vue.d.ts +2 -0
  72. package/package.json +3 -3
  73. package/dist/index.vue_vue_type_script_setup_true_lang-05kzecXV.mjs +0 -274
  74. package/dist/index.vue_vue_type_script_setup_true_lang-Bl9nmo3f.mjs +0 -120
  75. package/dist/index.vue_vue_type_script_setup_true_lang-BtIlu38i.mjs +0 -105
@@ -0,0 +1,109 @@
1
+ import type { EntityApi, EntityReq, EntityModel, EntityList, EntityPage, EntityTotal, EntityKey, EntityKeyList, EntityCreateReq, EntityUpdateReq, EntityExportReq, EntityImportReq, LayEntry } from "jmash-core";
2
+ export interface AssetApi extends EntityApi {
3
+ }
4
+ export interface UnionOrgReq extends EntityReq {
5
+ likeOrgName?: string;
6
+ hasStatus?: boolean;
7
+ status?: boolean;
8
+ }
9
+ export interface UnionOrgTree {
10
+ results: LayEntry[];
11
+ }
12
+ export interface AssetReq extends EntityReq {
13
+ hasAssetSort?: boolean;
14
+ name?: string;
15
+ assetSort?: string;
16
+ assignStatus?: boolean;
17
+ hasAssignStatus?: boolean;
18
+ likeName?: string;
19
+ }
20
+ export interface AssetModel extends EntityModel {
21
+ name?: string;
22
+ assetId?: string;
23
+ assetSort?: string;
24
+ code?: string;
25
+ number?: number;
26
+ unit?: string;
27
+ model?: string;
28
+ buyDate?: string;
29
+ buyMoney?: number;
30
+ oldMoney?: number;
31
+ depreciationType?: string;
32
+ useLimit?: number;
33
+ monthDepreciation?: string;
34
+ assignStatus?: boolean;
35
+ totalDepreciation?: string;
36
+ netSalvage?: string;
37
+ netAssetValue?: string;
38
+ }
39
+ export interface AssetassignReq extends EntityUpdateReq {
40
+ tentant?: string;
41
+ requestId?: string;
42
+ assetId: string;
43
+ assignOrgs: Array<assignOrgsList>;
44
+ name?: string;
45
+ }
46
+ export interface assignOrgsList {
47
+ siteId?: string;
48
+ orgId?: string;
49
+ assignNumber?: number;
50
+ }
51
+ export interface AssetList extends EntityList {
52
+ results: Array<AssetModel>;
53
+ }
54
+ export interface AssetPage extends EntityPage {
55
+ results: Array<AssetModel>;
56
+ subTotalDto: AssetModelTotal;
57
+ totalDto: AssetModelTotal;
58
+ }
59
+ export interface AssetModelTotal extends EntityTotal {
60
+ totalSize: number;
61
+ }
62
+ export interface AssetKey extends EntityKey {
63
+ tenant?: string;
64
+ assetId?: string;
65
+ }
66
+ export interface AssetKeyList extends EntityKeyList {
67
+ tenant?: string;
68
+ assetId?: Array<string>;
69
+ }
70
+ export interface AssetCreateReq extends EntityCreateReq {
71
+ name?: string;
72
+ code?: string;
73
+ number?: number;
74
+ unit?: string;
75
+ buyDate?: string;
76
+ assetSort?: string;
77
+ assetId?: string;
78
+ model?: string;
79
+ buyMoney?: number;
80
+ oldMoney?: number;
81
+ depreciationType?: string;
82
+ useLimit?: number;
83
+ netSalvage?: number;
84
+ monthDepreciation?: string;
85
+ totalDepreciation?: string;
86
+ }
87
+ export interface AssetUpdateReq extends EntityUpdateReq {
88
+ assetId?: string;
89
+ name?: string;
90
+ assetSort?: string;
91
+ code?: string;
92
+ number?: number;
93
+ unit?: string;
94
+ model?: string;
95
+ buyDate?: string;
96
+ buyMoney?: number;
97
+ oldMoney?: number;
98
+ depreciationType?: string;
99
+ useLimit?: number;
100
+ netSalvage?: number;
101
+ monthDepreciation?: number;
102
+ totalDepreciation?: string;
103
+ }
104
+ export type AssetFormReq = AssetCreateReq | AssetUpdateReq;
105
+ export interface AssetExportReq extends EntityExportReq {
106
+ req: AssetReq;
107
+ }
108
+ export interface AssetImportReq extends EntityImportReq {
109
+ }
@@ -0,0 +1,12 @@
1
+ import type { AxiosPromise } from "axios";
2
+ import type { AssetDetailApi, AssetDetailReq, AssetDetailModel, AssetDetailPage, AssetDetailList, AssetDetailKey, AssetDetailUpdateReq, AssetDetailExportReq } from "./types";
3
+ declare class AssetDetailApiImpl implements AssetDetailApi {
4
+ getKey(model: AssetDetailModel): AssetDetailKey;
5
+ findPage(query?: AssetDetailReq): AxiosPromise<AssetDetailPage>;
6
+ findList(query?: AssetDetailReq): AxiosPromise<AssetDetailList>;
7
+ findById(query: AssetDetailKey): AxiosPromise<AssetDetailModel>;
8
+ update(data: AssetDetailUpdateReq): AxiosPromise<AssetDetailModel>;
9
+ exportExcel(queryParams: AssetDetailExportReq): AxiosPromise;
10
+ }
11
+ declare const assetDetailApi: AssetDetailApiImpl;
12
+ export { assetDetailApi };
@@ -0,0 +1,56 @@
1
+ import type { EntityApi, EntityReq, EntityModel, EntityList, EntityPage, EntityTotal, EntityKey, EntityKeyList, EntityUpdateReq, EntityExportReq } from "jmash-core";
2
+ export interface AssetDetailApi extends EntityApi {
3
+ }
4
+ export interface AssetDetailReq extends EntityReq {
5
+ assetId?: string;
6
+ orgId?: string;
7
+ siteId?: string;
8
+ likeAssetName?: string;
9
+ assetSort?: string;
10
+ hasAssetSort?: boolean;
11
+ }
12
+ export interface AssetDetailModel extends EntityModel {
13
+ detailId?: string;
14
+ assetId?: string;
15
+ siteId?: string;
16
+ deviceCode?: string;
17
+ deviceQrcode?: string;
18
+ status?: string;
19
+ }
20
+ export interface AssetDetailList extends EntityList {
21
+ results: Array<AssetDetailModel>;
22
+ }
23
+ export interface AssetDetailPage extends EntityPage {
24
+ results: Array<AssetDetailModel>;
25
+ subTotalDto: AssetDetailModelTotal;
26
+ totalDto: AssetDetailModelTotal;
27
+ }
28
+ export interface AssetDetailModelTotal extends EntityTotal {
29
+ totalSize: number;
30
+ }
31
+ export interface AssetDetailKey extends EntityKey {
32
+ tenant?: string;
33
+ detailId?: string;
34
+ }
35
+ export interface AssetDetailKeyList extends EntityKeyList {
36
+ tenant?: string;
37
+ detailId?: Array<string>;
38
+ }
39
+ export interface AssetDetailUpdateReq extends EntityUpdateReq {
40
+ orgId?: string;
41
+ detailId?: string;
42
+ assetId?: string;
43
+ siteId?: string;
44
+ deviceCode?: string;
45
+ deviceQrcode?: string;
46
+ status?: string;
47
+ buyDate?: string;
48
+ assetSort?: string;
49
+ assetName?: string;
50
+ name?: string;
51
+ siteName?: string;
52
+ }
53
+ export type AssetDetailFormReq = AssetDetailUpdateReq;
54
+ export interface AssetDetailExportReq extends EntityExportReq {
55
+ req: AssetDetailReq;
56
+ }
@@ -0,0 +1,11 @@
1
+ import type { AxiosPromise } from "axios";
2
+ import type { DepreciationRecordApi, DepreciationRecordReq, DepreciationRecordModel, DepreciationRecordPage, DepreciationRecordList, DepreciationRecordKey, DepreciationRecordExportReq } from "./types";
3
+ declare class DepreciationRecordApiImpl implements DepreciationRecordApi {
4
+ getKey(model: DepreciationRecordModel): DepreciationRecordKey;
5
+ findPage(query?: DepreciationRecordReq): AxiosPromise<DepreciationRecordPage>;
6
+ findList(query?: DepreciationRecordReq): AxiosPromise<DepreciationRecordList>;
7
+ findById(query: DepreciationRecordKey): AxiosPromise<DepreciationRecordModel>;
8
+ exportExcel(queryParams: DepreciationRecordExportReq): AxiosPromise;
9
+ }
10
+ declare const depreciationRecordApi: DepreciationRecordApiImpl;
11
+ export { depreciationRecordApi };
@@ -0,0 +1,38 @@
1
+ import type { EntityApi, EntityReq, EntityModel, EntityList, EntityPage, EntityTotal, EntityKey, EntityKeyList, EntityExportReq } from "jmash-core";
2
+ export interface DepreciationRecordApi extends EntityApi {
3
+ }
4
+ export interface DepreciationRecordReq extends EntityReq {
5
+ assetSort?: string;
6
+ likeName?: string;
7
+ year?: number;
8
+ selectYear?: string;
9
+ assetId?: string;
10
+ }
11
+ export interface DepreciationRecordModel extends EntityModel {
12
+ recordId?: string;
13
+ assetId?: string;
14
+ yearMonth?: string;
15
+ depreciationMoney?: string;
16
+ }
17
+ export interface DepreciationRecordList extends EntityList {
18
+ results: Array<DepreciationRecordModel>;
19
+ }
20
+ export interface DepreciationRecordPage extends EntityPage {
21
+ results: Array<DepreciationRecordModel>;
22
+ subTotalDto: DepreciationRecordModelTotal;
23
+ totalDto: DepreciationRecordModelTotal;
24
+ }
25
+ export interface DepreciationRecordModelTotal extends EntityTotal {
26
+ totalSize: number;
27
+ }
28
+ export interface DepreciationRecordKey extends EntityKey {
29
+ tenant?: string;
30
+ recordId?: string;
31
+ }
32
+ export interface DepreciationRecordKeyList extends EntityKeyList {
33
+ tenant?: string;
34
+ recordId?: Array<string>;
35
+ }
36
+ export interface DepreciationRecordExportReq extends EntityExportReq {
37
+ req: DepreciationRecordReq;
38
+ }
@@ -0,0 +1,10 @@
1
+ import type { AxiosPromise } from "axios";
2
+ import type { InventoryRecordApi, InventoryRecordReq, InventoryRecordModel, InventoryRecordPage, InventoryRecordKey } from "./types";
3
+ declare class InventoryRecordApiImpl implements InventoryRecordApi {
4
+ getKey(model: InventoryRecordModel): InventoryRecordKey;
5
+ findPage(query?: InventoryRecordReq): AxiosPromise<InventoryRecordPage>;
6
+ findInfoAssetPage(query?: InventoryRecordKey): AxiosPromise<InventoryRecordPage>;
7
+ findById(query: InventoryRecordKey): AxiosPromise<InventoryRecordModel>;
8
+ }
9
+ declare const inventoryRecordApi: InventoryRecordApiImpl;
10
+ export { inventoryRecordApi };
@@ -0,0 +1,62 @@
1
+ import type { EntityApi, EntityReq, EntityModel, EntityList, EntityPage, EntityTotal, EntityKey, EntityKeyList, EntityCreateReq, EntityUpdateReq } from "jmash-core";
2
+ export interface InventoryRecordApi extends EntityApi {
3
+ }
4
+ export interface InventoryRecordReq extends EntityReq {
5
+ orgId?: string;
6
+ siteName?: string;
7
+ likeSiteName?: string;
8
+ inventoryStartTime?: string;
9
+ inventoryEndTime?: string;
10
+ inventoryStatus?: string;
11
+ hasInventoryStatus?: boolean;
12
+ }
13
+ export interface InventoryRecordModel extends EntityModel {
14
+ inventoryId?: string;
15
+ siteId?: string;
16
+ siteName?: string;
17
+ orgId?: string;
18
+ inventoryTime?: string;
19
+ userId?: string;
20
+ userName?: string;
21
+ inventoryStatus?: string;
22
+ }
23
+ export interface InventoryRecordList extends EntityList {
24
+ results: Array<InventoryRecordModel>;
25
+ }
26
+ export interface InventoryRecordPage extends EntityPage {
27
+ results: Array<InventoryRecordModel>;
28
+ subTotalDto: InventoryRecordModelTotal;
29
+ totalDto: InventoryRecordModelTotal;
30
+ }
31
+ export interface InventoryRecordModelTotal extends EntityTotal {
32
+ totalSize: number;
33
+ }
34
+ export interface InventoryRecordKey extends EntityKey {
35
+ tenant?: string;
36
+ inventoryId?: string;
37
+ }
38
+ export interface InventoryRecordKeyList extends EntityKeyList {
39
+ tenant?: string;
40
+ inventoryId?: Array<string>;
41
+ }
42
+ export interface InventoryRecordCreateReq extends EntityCreateReq {
43
+ inventoryId?: string;
44
+ siteId?: string;
45
+ siteName?: string;
46
+ orgId?: string;
47
+ inventoryTime?: string;
48
+ userId?: string;
49
+ userName?: string;
50
+ inventoryStatus?: string;
51
+ }
52
+ export interface InventoryRecordUpdateReq extends EntityUpdateReq {
53
+ inventoryId?: string;
54
+ siteId?: string;
55
+ siteName?: string;
56
+ orgId?: string;
57
+ inventoryTime?: string;
58
+ userId?: string;
59
+ userName?: string;
60
+ inventoryStatus?: string;
61
+ }
62
+ export type InventoryRecordFormReq = InventoryRecordCreateReq | InventoryRecordUpdateReq;
@@ -0,0 +1,9 @@
1
+ import type { AxiosPromise } from "axios";
2
+ import type { ServiceApptMemberApi, ServiceApptMemberReq, ServiceApptMemberModel, ServiceApptMemberPage, ServiceApptMemberList, ServiceApptMemberKey } from "./types";
3
+ declare class ServiceApptMemberApiImpl implements ServiceApptMemberApi {
4
+ getKey(model: ServiceApptMemberModel): ServiceApptMemberKey;
5
+ findPage(query?: ServiceApptMemberReq): AxiosPromise<ServiceApptMemberPage>;
6
+ findList(query?: ServiceApptMemberReq): AxiosPromise<ServiceApptMemberList>;
7
+ }
8
+ declare const serviceApptMemberApi: ServiceApptMemberApiImpl;
9
+ export { serviceApptMemberApi };
@@ -0,0 +1,28 @@
1
+ import type { EntityApi, EntityReq, EntityModel, EntityList, EntityPage, EntityTotal, EntityKey } from "jmash-core";
2
+ export interface ServiceApptMemberApi extends EntityApi {
3
+ }
4
+ export interface ServiceApptMemberReq extends EntityReq {
5
+ recordId?: string;
6
+ }
7
+ export interface ServiceApptMemberModel extends EntityModel {
8
+ recordId?: string;
9
+ memberId?: string;
10
+ realName?: string;
11
+ status?: string;
12
+ }
13
+ export interface ServiceApptMemberList extends EntityList {
14
+ results: Array<ServiceApptMemberModel>;
15
+ }
16
+ export interface ServiceApptMemberPage extends EntityPage {
17
+ results: Array<ServiceApptMemberModel>;
18
+ subTotalDto: ServiceApptMemberModelTotal;
19
+ totalDto: ServiceApptMemberModelTotal;
20
+ }
21
+ export interface ServiceApptMemberModelTotal extends EntityTotal {
22
+ totalSize: number;
23
+ }
24
+ export interface ServiceApptMemberKey extends EntityKey {
25
+ tenant?: string;
26
+ recordId?: string;
27
+ memberId?: string;
28
+ }
@@ -0,0 +1,9 @@
1
+ import type { AxiosPromise } from "axios";
2
+ import type { ServiceApptRecordApi, ServiceApptRecordReq, ServiceApptRecordModel, ServiceApptRecordPage, ServiceApptRecordKey } from "./types";
3
+ declare class ServiceApptRecordApiImpl implements ServiceApptRecordApi {
4
+ getKey(model: ServiceApptRecordModel): ServiceApptRecordKey;
5
+ findPage(query?: ServiceApptRecordReq): AxiosPromise<ServiceApptRecordPage>;
6
+ findById(query: ServiceApptRecordKey): AxiosPromise<ServiceApptRecordModel>;
7
+ }
8
+ declare const serviceApptRecordApi: ServiceApptRecordApiImpl;
9
+ export { serviceApptRecordApi };
@@ -0,0 +1,37 @@
1
+ import type { EntityApi, EntityReq, EntityModel, EntityList, EntityPage, EntityTotal, EntityKey } from "jmash-core";
2
+ export interface ServiceApptRecordApi extends EntityApi {
3
+ }
4
+ export interface ServiceApptRecordReq extends EntityReq {
5
+ orgId?: string;
6
+ siteId?: string;
7
+ likeServiceName?: string;
8
+ startDate?: string;
9
+ endDate?: string;
10
+ }
11
+ export interface ServiceApptRecordModel extends EntityModel {
12
+ recordId?: string;
13
+ orgId?: string;
14
+ siteId?: string;
15
+ serviceName?: string;
16
+ appointmentDate?: string;
17
+ startTime?: string;
18
+ endTime?: string;
19
+ limitPerson?: number;
20
+ apptPerson?: number;
21
+ signPerson?: number;
22
+ }
23
+ export interface ServiceApptRecordList extends EntityList {
24
+ results: Array<ServiceApptRecordModel>;
25
+ }
26
+ export interface ServiceApptRecordPage extends EntityPage {
27
+ results: Array<ServiceApptRecordModel>;
28
+ subTotalDto: ServiceApptRecordModelTotal;
29
+ totalDto: ServiceApptRecordModelTotal;
30
+ }
31
+ export interface ServiceApptRecordModelTotal extends EntityTotal {
32
+ totalSize: number;
33
+ }
34
+ export interface ServiceApptRecordKey extends EntityKey {
35
+ tenant?: string;
36
+ recordId?: string;
37
+ }
@@ -0,0 +1,14 @@
1
+ import type { AxiosPromise } from "axios";
2
+ import type { SiteApi, SiteReq, SiteModel, SitePage, SiteList, SiteKey, SiteCreateReq, SiteUpdateReq } from "./types";
3
+ declare class SiteApiImpl implements SiteApi {
4
+ getKey(model: SiteModel): SiteKey;
5
+ findPage(query?: SiteReq): AxiosPromise<SitePage>;
6
+ findList(query?: SiteReq): AxiosPromise<SiteList>;
7
+ findById(query: SiteKey): AxiosPromise<SiteModel>;
8
+ create(data: SiteCreateReq): AxiosPromise<SiteModel>;
9
+ update(data: SiteUpdateReq): AxiosPromise<SiteModel>;
10
+ enable(key: SiteKey, enable: boolean): AxiosPromise<boolean>;
11
+ delete(query: SiteKey): AxiosPromise<SiteModel>;
12
+ }
13
+ declare const siteApi: SiteApiImpl;
14
+ export { siteApi };
@@ -0,0 +1,71 @@
1
+ import type { EntityApi, EntityReq, EntityModel, EntityList, EntityPage, EntityTotal, EntityKey, EntityKeyList, EntityCreateReq, EntityUpdateReq } from "jmash-core";
2
+ export interface SiteApi extends EntityApi {
3
+ }
4
+ export interface SiteReq extends EntityReq {
5
+ orgId?: string;
6
+ likeName?: string;
7
+ status?: true;
8
+ hasStatus?: boolean;
9
+ siteId?: string;
10
+ }
11
+ export interface SiteModel extends EntityModel {
12
+ siteId?: string;
13
+ orgId?: string;
14
+ name?: string;
15
+ address?: string;
16
+ buildDate?: string;
17
+ area?: string;
18
+ status?: boolean;
19
+ manager?: string;
20
+ mobilePhone?: string;
21
+ mobilePhoneIns?: string;
22
+ createBy?: string;
23
+ createTime?: string;
24
+ siteQrcode?: string;
25
+ mobileEncrypt?: boolean;
26
+ }
27
+ export interface SiteList extends EntityList {
28
+ results: Array<SiteModel>;
29
+ }
30
+ export interface SitePage extends EntityPage {
31
+ results: Array<SiteModel>;
32
+ subTotalDto: SiteModelTotal;
33
+ totalDto: SiteModelTotal;
34
+ }
35
+ export interface SiteModelTotal extends EntityTotal {
36
+ totalSize: number;
37
+ }
38
+ export interface SiteKey extends EntityKey {
39
+ tenant?: string;
40
+ siteId?: string;
41
+ }
42
+ export interface SiteKeyList extends EntityKeyList {
43
+ tenant?: string;
44
+ siteId?: Array<string>;
45
+ }
46
+ export interface SiteCreateReq extends EntityCreateReq {
47
+ orgId?: string;
48
+ name?: string;
49
+ address?: string;
50
+ buildDate?: string;
51
+ area?: string;
52
+ manager?: string;
53
+ mobilePhone?: string;
54
+ }
55
+ export interface SiteUpdateReq extends EntityUpdateReq {
56
+ updateMask: string;
57
+ siteId?: string;
58
+ orgId?: string;
59
+ name?: string;
60
+ address?: string;
61
+ buildDate?: string;
62
+ area?: string;
63
+ manager?: string;
64
+ mobilePhone?: string;
65
+ }
66
+ export type SiteFormReq = SiteCreateReq | SiteUpdateReq;
67
+ export interface SiteEnableKey {
68
+ tenant?: string;
69
+ siteId?: string;
70
+ enable?: boolean;
71
+ }
@@ -0,0 +1,13 @@
1
+ import type { AxiosPromise } from "axios";
2
+ import type { SiteServiceApi, SiteServiceReq, SiteServiceModel, SiteServicePage, SiteServiceList, SiteServiceKey, SiteServiceCreateReq, SiteServiceUpdateReq } from "./types";
3
+ declare class SiteServiceApiImpl implements SiteServiceApi {
4
+ getKey(model: SiteServiceModel): SiteServiceKey;
5
+ findPage(query?: SiteServiceReq): AxiosPromise<SiteServicePage>;
6
+ findList(query?: SiteServiceReq): AxiosPromise<SiteServiceList>;
7
+ findById(query: SiteServiceKey): AxiosPromise<SiteServiceModel>;
8
+ create(data: SiteServiceCreateReq): AxiosPromise<SiteServiceModel>;
9
+ update(data: SiteServiceUpdateReq): AxiosPromise<SiteServiceModel>;
10
+ delete(query: SiteServiceKey): AxiosPromise<SiteServiceModel>;
11
+ }
12
+ declare const siteServiceApi: SiteServiceApiImpl;
13
+ export { siteServiceApi };
@@ -0,0 +1,81 @@
1
+ import type { EntityApi, EntityReq, EntityModel, EntityList, EntityPage, EntityTotal, EntityKey, EntityKeyList, EntityCreateReq, EntityUpdateReq } from "jmash-core";
2
+ export interface SiteServiceApi extends EntityApi {
3
+ }
4
+ export interface SiteServiceReq extends EntityReq {
5
+ siteId?: string;
6
+ status?: string;
7
+ orgId?: string;
8
+ likeServiceName?: string;
9
+ hasStatus?: boolean;
10
+ }
11
+ export interface SiteServiceModel extends EntityModel {
12
+ serviceId?: string;
13
+ siteId?: string;
14
+ serviceName?: string;
15
+ minDay?: number;
16
+ maxDay?: number;
17
+ limitPerson?: number;
18
+ status?: string;
19
+ note?: string;
20
+ manager?: string;
21
+ }
22
+ export interface SiteServiceList extends EntityList {
23
+ results: Array<SiteServiceModel>;
24
+ }
25
+ export interface SiteServicePage extends EntityPage {
26
+ results: Array<SiteServiceModel>;
27
+ subTotalDto: SiteServiceModelTotal;
28
+ totalDto: SiteServiceModelTotal;
29
+ }
30
+ export interface SiteServiceModelTotal extends EntityTotal {
31
+ totalSize: number;
32
+ }
33
+ export interface SiteServiceKey extends EntityKey {
34
+ tenant?: string;
35
+ serviceId?: string;
36
+ }
37
+ export interface SiteServiceKeyList extends EntityKeyList {
38
+ tenant?: string;
39
+ serviceId?: Array<string>;
40
+ }
41
+ export interface SiteServiceCreateReq extends EntityCreateReq {
42
+ tenant?: string;
43
+ requestId?: string;
44
+ siteId?: string;
45
+ serviceName?: string;
46
+ minDay?: number;
47
+ maxDay?: number;
48
+ limitPerson?: number;
49
+ startTime?: string;
50
+ endTime?: string;
51
+ status?: string;
52
+ note?: string;
53
+ manager?: string;
54
+ orgId: string;
55
+ limitInfo: Array<LimitInfo>;
56
+ serviceId?: string;
57
+ }
58
+ export interface LimitInfo {
59
+ time?: string;
60
+ startTime?: string;
61
+ endTime?: string;
62
+ limitPerson?: number;
63
+ }
64
+ export interface SiteServiceUpdateReq extends EntityUpdateReq {
65
+ tenant?: string;
66
+ requestId?: string;
67
+ serviceId?: string;
68
+ siteId?: string;
69
+ serviceName?: string;
70
+ minDay?: number;
71
+ maxDay?: number;
72
+ limitPerson?: number;
73
+ status?: string;
74
+ note?: string;
75
+ startTime?: string;
76
+ endTime?: string;
77
+ manager?: string;
78
+ orgId?: string;
79
+ limitInfo: Array<LimitInfo>;
80
+ }
81
+ export type SiteServiceFormReq = SiteServiceCreateReq | SiteServiceUpdateReq;