@voplus/morpho-csp 1.2.174 → 1.2.176
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/es/Modules.js +2 -0
- package/es/Modules.js.map +1 -1
- package/es/data/member/interfaces.d.ts +1 -1
- package/es/data/share-certificate/ShareCertificateStore.d.ts +11 -0
- package/es/data/share-certificate/ShareCertificateStore.js +22 -0
- package/es/data/share-certificate/ShareCertificateStore.js.map +1 -0
- package/es/data/share-certificate/hooks.d.ts +13 -0
- package/es/data/share-certificate/hooks.js +24 -0
- package/es/data/share-certificate/hooks.js.map +1 -0
- package/es/data/share-certificate/index.d.ts +5 -0
- package/es/data/share-certificate/index.js +6 -0
- package/es/data/share-certificate/index.js.map +1 -0
- package/es/data/share-certificate/interfaces.d.ts +15 -0
- package/es/data/share-certificate/interfaces.js.map +1 -0
- package/es/data/share-certificate/metas.d.ts +13 -0
- package/es/data/share-certificate/metas.js +38 -0
- package/es/data/share-certificate/metas.js.map +1 -0
- package/es/data/share-certificate/types.d.ts +12 -0
- package/es/data/share-certificate/types.js +2 -0
- package/es/data/share-certificate/types.js.map +1 -0
- package/es/data/shareTransaction/ShareTransactionStore.js +1 -1
- package/es/data/shareTransaction/ShareTransactionStore.js.map +1 -1
- package/es/modules/corporate/company/pages/CompanyPage/index.js +7 -3
- package/es/modules/corporate/company/pages/CompanyPage/index.js.map +1 -1
- package/es/modules/corporate/share-certificate/components/NewShareCertificateForm/NewShareCertificateFormDialog.d.ts +9 -0
- package/es/modules/corporate/share-certificate/components/NewShareCertificateForm/NewShareCertificateFormDialog.js +13 -0
- package/es/modules/corporate/share-certificate/components/NewShareCertificateForm/NewShareCertificateFormDialog.js.map +1 -0
- package/es/modules/corporate/share-certificate/components/NewShareCertificateForm/index.d.ts +17 -0
- package/es/modules/corporate/share-certificate/components/NewShareCertificateForm/index.js +56 -0
- package/es/modules/corporate/share-certificate/components/NewShareCertificateForm/index.js.map +1 -0
- package/es/modules/corporate/share-certificate/components/NewShareCertificateForm/index.less +41 -0
- package/es/modules/corporate/share-certificate/components/NewShareCertificateForm/state.d.ts +10 -0
- package/es/modules/corporate/share-certificate/components/NewShareCertificateForm/state.js +34 -0
- package/es/modules/corporate/share-certificate/components/NewShareCertificateForm/state.js.map +1 -0
- package/es/modules/corporate/share-certificate/components/ShareCertificate/index.d.ts +3 -0
- package/es/modules/corporate/share-certificate/components/ShareCertificate/index.js +46 -0
- package/es/modules/corporate/share-certificate/components/ShareCertificate/index.js.map +1 -0
- package/es/modules/corporate/share-certificate/components/ShareCertificate/index.less +164 -0
- package/es/modules/corporate/share-certificate/components/ShareCertificateItem/index.d.ts +5 -0
- package/es/modules/corporate/share-certificate/components/ShareCertificateItem/index.js +27 -0
- package/es/modules/corporate/share-certificate/components/ShareCertificateItem/index.js.map +1 -0
- package/es/modules/corporate/share-certificate/components/ShareCertificateItem/index.less +47 -0
- package/es/modules/corporate/share-certificate/components/ShareCertificateList/index.d.ts +38 -0
- package/es/modules/corporate/share-certificate/components/ShareCertificateList/index.js +137 -0
- package/es/modules/corporate/share-certificate/components/ShareCertificateList/index.js.map +1 -0
- package/es/modules/corporate/share-certificate/components/ShareCertificateList/index.less +16 -0
- package/es/modules/corporate/share-certificate/components/ShareCertificateProperties/index.d.ts +26 -0
- package/es/modules/corporate/share-certificate/components/ShareCertificateProperties/index.js +43 -0
- package/es/modules/corporate/share-certificate/components/ShareCertificateProperties/index.js.map +1 -0
- package/es/modules/corporate/share-certificate/components/ShareCertificatePropertiesView/index.d.ts +7 -0
- package/es/modules/corporate/share-certificate/components/ShareCertificatePropertiesView/index.js +32 -0
- package/es/modules/corporate/share-certificate/components/ShareCertificatePropertiesView/index.js.map +1 -0
- package/es/modules/corporate/share-certificate/components/ShareCertificatePropertiesView/index.less +14 -0
- package/es/modules/corporate/share-certificate/components/ShareCertificateQuickViewDialog/index.d.ts +7 -0
- package/es/modules/corporate/share-certificate/components/ShareCertificateQuickViewDialog/index.js +34 -0
- package/es/modules/corporate/share-certificate/components/ShareCertificateQuickViewDialog/index.js.map +1 -0
- package/es/modules/corporate/share-certificate/components/ShareCertificateQuickViewDialog/index.less +15 -0
- package/es/modules/corporate/share-certificate/components/ShareCertificateTabs/index.d.ts +6 -0
- package/es/modules/corporate/share-certificate/components/ShareCertificateTabs/index.js +39 -0
- package/es/modules/corporate/share-certificate/components/ShareCertificateTabs/index.js.map +1 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateDataIconBar/index.d.ts +12 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateDataIconBar/index.js +18 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateDataIconBar/index.js.map +1 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/index.d.ts +7 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/index.js +13 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/index.js.map +1 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateStatusDataIcon/index.d.ts +8 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateStatusDataIcon/index.js +12 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateStatusDataIcon/index.js.map +1 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateStatusFilter/index.d.ts +5 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateStatusFilter/index.js +29 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateStatusFilter/index.js.map +1 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateStatusFilter/state.d.ts +19 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateStatusFilter/state.js +61 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateStatusFilter/state.js.map +1 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateStatusLabel/index.d.ts +10 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateStatusLabel/index.js +10 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateStatusLabel/index.js.map +1 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateStatusLabel/index.less +35 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateTypeFilter/index.d.ts +5 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateTypeFilter/index.js +29 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateTypeFilter/index.js.map +1 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateTypeFilter/state.d.ts +19 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateTypeFilter/state.js +55 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateTypeFilter/state.js.map +1 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateTypeLabel/index.d.ts +10 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateTypeLabel/index.js +14 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateTypeLabel/index.js.map +1 -0
- package/es/modules/corporate/share-certificate/controls/ShareCertificateTypeLabel/index.less +21 -0
- package/es/modules/corporate/share-certificate/pages/ShareCertificateDefaultView/index.js +10 -39
- package/es/modules/corporate/share-certificate/pages/ShareCertificateDefaultView/index.js.map +1 -1
- package/es/modules/corporate/share-certificate/pages/ShareCertificateDefaultView/index.less +36 -30
- package/es/obsolete/order/components/OrderItem/index.js.map +1 -0
- package/es/{modules → obsolete}/order/components/OrderItem/index.less +21 -21
- package/es/obsolete/order/components/OrderItems/DragTableCell.js.map +1 -0
- package/es/obsolete/order/components/OrderItems/index.js.map +1 -0
- package/es/{modules → obsolete}/order/components/OrderItems/index.less +48 -48
- package/es/obsolete/order/components/OrderItems/state.js.map +1 -0
- package/es/obsolete/order/components/OrderListView/index.js.map +1 -0
- package/es/obsolete/order/components/OrderPropertiesView/index.js.map +1 -0
- package/es/{modules → obsolete}/order/components/OrderPropertiesView/index.less +13 -13
- package/es/obsolete/order/context/OrderContext.js.map +1 -0
- package/es/obsolete/order/controls/IncorporationStatusLabel/index.js.map +1 -0
- package/es/{modules → obsolete}/order/controls/IncorporationStatusLabel/index.less +41 -41
- package/es/obsolete/order/controls/OrderLabel/index.js.map +1 -0
- package/es/{modules → obsolete}/order/controls/OrderLabel/index.less +21 -21
- package/es/obsolete/order/controls/OrderLabel/state.js.map +1 -0
- package/es/obsolete/order/controls/filters/IncorporationStatusFilter/index.js.map +1 -0
- package/es/obsolete/order/controls/filters/IncorporationStatusFilter/state.js.map +1 -0
- package/es/obsolete/order/pages/OrderDefaultView/index.js.map +1 -0
- package/es/{modules → obsolete}/order/pages/OrderDefaultView/index.less +13 -13
- package/es/obsolete/share-certificate/pages/ShareCertificateDefaultView/index.d.ts +4 -0
- package/es/obsolete/share-certificate/pages/ShareCertificateDefaultView/index.js +65 -0
- package/es/obsolete/share-certificate/pages/ShareCertificateDefaultView/index.js.map +1 -0
- package/es/obsolete/share-certificate/pages/ShareCertificateDefaultView/index.less +30 -0
- package/es/obsolete/shareCertificate/hooks.js.map +1 -0
- package/es/obsolete/shareCertificate/index.js.map +1 -0
- package/es/obsolete/shareCertificate/interfaces.js +2 -0
- package/es/obsolete/shareCertificate/interfaces.js.map +1 -0
- package/es/obsolete/shareCertificate/store.js.map +1 -0
- package/es/routes.d.ts +0 -14
- package/es/routes.js +27 -29
- package/es/routes.js.map +1 -1
- package/package.json +1 -1
- package/es/data/shareCertificate/hooks.js.map +0 -1
- package/es/data/shareCertificate/index.js.map +0 -1
- package/es/data/shareCertificate/interfaces.js.map +0 -1
- package/es/data/shareCertificate/store.js.map +0 -1
- package/es/modules/order/components/OrderItem/index.js.map +0 -1
- package/es/modules/order/components/OrderItems/DragTableCell.js.map +0 -1
- package/es/modules/order/components/OrderItems/index.js.map +0 -1
- package/es/modules/order/components/OrderItems/state.js.map +0 -1
- package/es/modules/order/components/OrderListView/index.js.map +0 -1
- package/es/modules/order/components/OrderPropertiesView/index.js.map +0 -1
- package/es/modules/order/context/OrderContext.js.map +0 -1
- package/es/modules/order/controls/IncorporationStatusLabel/index.js.map +0 -1
- package/es/modules/order/controls/OrderLabel/index.js.map +0 -1
- package/es/modules/order/controls/OrderLabel/state.js.map +0 -1
- package/es/modules/order/controls/filters/IncorporationStatusFilter/index.js.map +0 -1
- package/es/modules/order/controls/filters/IncorporationStatusFilter/state.js.map +0 -1
- package/es/modules/order/pages/OrderDefaultView/index.js.map +0 -1
- /package/es/data/{shareCertificate → share-certificate}/interfaces.js +0 -0
- /package/es/{modules → obsolete}/order/components/OrderItem/index.d.ts +0 -0
- /package/es/{modules → obsolete}/order/components/OrderItem/index.js +0 -0
- /package/es/{modules → obsolete}/order/components/OrderItems/DragTableCell.d.ts +0 -0
- /package/es/{modules → obsolete}/order/components/OrderItems/DragTableCell.js +0 -0
- /package/es/{modules → obsolete}/order/components/OrderItems/index.d.ts +0 -0
- /package/es/{modules → obsolete}/order/components/OrderItems/index.js +0 -0
- /package/es/{modules → obsolete}/order/components/OrderItems/state.d.ts +0 -0
- /package/es/{modules → obsolete}/order/components/OrderItems/state.js +0 -0
- /package/es/{modules → obsolete}/order/components/OrderListView/index.d.ts +0 -0
- /package/es/{modules → obsolete}/order/components/OrderListView/index.js +0 -0
- /package/es/{modules → obsolete}/order/components/OrderPropertiesView/index.d.ts +0 -0
- /package/es/{modules → obsolete}/order/components/OrderPropertiesView/index.js +0 -0
- /package/es/{modules → obsolete}/order/context/OrderContext.d.ts +0 -0
- /package/es/{modules → obsolete}/order/context/OrderContext.js +0 -0
- /package/es/{modules → obsolete}/order/controls/IncorporationStatusLabel/index.d.ts +0 -0
- /package/es/{modules → obsolete}/order/controls/IncorporationStatusLabel/index.js +0 -0
- /package/es/{modules → obsolete}/order/controls/OrderLabel/index.d.ts +0 -0
- /package/es/{modules → obsolete}/order/controls/OrderLabel/index.js +0 -0
- /package/es/{modules → obsolete}/order/controls/OrderLabel/state.d.ts +0 -0
- /package/es/{modules → obsolete}/order/controls/OrderLabel/state.js +0 -0
- /package/es/{modules → obsolete}/order/controls/filters/IncorporationStatusFilter/index.d.ts +0 -0
- /package/es/{modules → obsolete}/order/controls/filters/IncorporationStatusFilter/index.js +0 -0
- /package/es/{modules → obsolete}/order/controls/filters/IncorporationStatusFilter/state.d.ts +0 -0
- /package/es/{modules → obsolete}/order/controls/filters/IncorporationStatusFilter/state.js +0 -0
- /package/es/{modules → obsolete}/order/pages/OrderDefaultView/index.d.ts +0 -0
- /package/es/{modules → obsolete}/order/pages/OrderDefaultView/index.js +0 -0
- /package/es/{data → obsolete}/shareCertificate/hooks.d.ts +0 -0
- /package/es/{data → obsolete}/shareCertificate/hooks.js +0 -0
- /package/es/{data → obsolete}/shareCertificate/index.d.ts +0 -0
- /package/es/{data → obsolete}/shareCertificate/index.js +0 -0
- /package/es/{data → obsolete}/shareCertificate/interfaces.d.ts +0 -0
- /package/es/{data → obsolete}/shareCertificate/store.d.ts +0 -0
- /package/es/{data → obsolete}/shareCertificate/store.js +0 -0
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
@media print {
|
|
2
|
+
@page {
|
|
3
|
+
margin: 0;
|
|
4
|
+
/* size: A4 landscape; size: landscape横向,size: portrait;纵向,如果不设置,则页面有横向和纵向的选择框 */
|
|
5
|
+
size: A4 landscape;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
html {
|
|
9
|
+
zoom: 56%;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.share-certificate-print {
|
|
14
|
+
height: 100%;
|
|
15
|
+
width: 100%;
|
|
16
|
+
min-width: 1310px;
|
|
17
|
+
min-height: 920px;
|
|
18
|
+
position: relative;
|
|
19
|
+
|
|
20
|
+
:global {
|
|
21
|
+
.share-certificate-img {
|
|
22
|
+
position: absolute;
|
|
23
|
+
z-index: -1;
|
|
24
|
+
height: 900px;
|
|
25
|
+
top: 0;
|
|
26
|
+
bottom: 0;
|
|
27
|
+
left: 0;
|
|
28
|
+
right: 0;
|
|
29
|
+
margin: auto;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.share-certificate-content {
|
|
33
|
+
height: 100%;
|
|
34
|
+
width: 100%;
|
|
35
|
+
display: flex;
|
|
36
|
+
justify-content: center;
|
|
37
|
+
align-items: center;
|
|
38
|
+
|
|
39
|
+
// background-image: url("/public/img//share-certificate/background-image.jpg");
|
|
40
|
+
// background-position: center;
|
|
41
|
+
// background-repeat: no-repeat;
|
|
42
|
+
// background-size: contain;
|
|
43
|
+
|
|
44
|
+
.share-certificate-info {
|
|
45
|
+
height: 650px;
|
|
46
|
+
display: flex;
|
|
47
|
+
flex-direction: column;
|
|
48
|
+
justify-content: space-between;
|
|
49
|
+
align-items: center;
|
|
50
|
+
|
|
51
|
+
.share-certificate-header {
|
|
52
|
+
width: 1060px;
|
|
53
|
+
display: flex;
|
|
54
|
+
justify-content: space-between;
|
|
55
|
+
|
|
56
|
+
.share-certificate-no {
|
|
57
|
+
width: 128px;
|
|
58
|
+
height: 52px;
|
|
59
|
+
text-align: center;
|
|
60
|
+
font-weight: bold;
|
|
61
|
+
font-size: 11px;
|
|
62
|
+
border: 0.5px solid purple;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.share-certificate-title {
|
|
66
|
+
font-family: Arial, Helvetica, sans-serif;
|
|
67
|
+
font-size: 48px;
|
|
68
|
+
font-weight: 900;
|
|
69
|
+
text-decoration: underline;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.share-certificate-body {
|
|
74
|
+
display: flex;
|
|
75
|
+
height: 500px;
|
|
76
|
+
padding: 50px 0 20px 0;
|
|
77
|
+
flex-direction: column;
|
|
78
|
+
justify-content: space-between;
|
|
79
|
+
align-items: center;
|
|
80
|
+
|
|
81
|
+
.share-certificate-company {
|
|
82
|
+
font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
|
|
83
|
+
font-weight: bold;
|
|
84
|
+
font-size: 20px;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.share-certificate-explain {
|
|
88
|
+
font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
|
|
89
|
+
font-weight: bold;
|
|
90
|
+
font-size: 16px;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.share-certificate-number {
|
|
94
|
+
font-family: "Franklin Gothic", Arial, sans-serif;
|
|
95
|
+
font-weight: 800;
|
|
96
|
+
text-align: center;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.share-certificate-name {
|
|
100
|
+
font-family: "Franklin Gothic", Arial, sans-serif;
|
|
101
|
+
font-weight: 800;
|
|
102
|
+
text-decoration: underline;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.share-certificate-date-info {
|
|
106
|
+
width: 691.34px;
|
|
107
|
+
|
|
108
|
+
.share-certificate-date {
|
|
109
|
+
font-family: "Lucida Calligraphy", cursive, serif, sans-serif;
|
|
110
|
+
font-size: 16px;
|
|
111
|
+
|
|
112
|
+
& > span {
|
|
113
|
+
font-family: "Franklin Gothic", Arial, sans-serif;
|
|
114
|
+
font-weight: bold;
|
|
115
|
+
font-size: 14px;
|
|
116
|
+
text-decoration: underline;
|
|
117
|
+
padding: 0 5px;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.share-certificate-footer {
|
|
124
|
+
display: flex;
|
|
125
|
+
justify-content: center;
|
|
126
|
+
align-items: center;
|
|
127
|
+
|
|
128
|
+
.share-certificate-footer-boder {
|
|
129
|
+
border: 1px dashed #ccc;
|
|
130
|
+
width: 380px;
|
|
131
|
+
height: 200px;
|
|
132
|
+
text-align: center;
|
|
133
|
+
|
|
134
|
+
& > span {
|
|
135
|
+
// font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
|
|
136
|
+
font-weight: 500;
|
|
137
|
+
border-top: 1px solid #000;
|
|
138
|
+
display: inline-block;
|
|
139
|
+
width: 140px;
|
|
140
|
+
margin-top: 155px;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.share-certificate-footer-boder-void {
|
|
145
|
+
border-top: 1px dashed #ccc;
|
|
146
|
+
border-bottom: 1px dashed #ccc;
|
|
147
|
+
width: 300px;
|
|
148
|
+
height: 200px;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.share-certificate-art-font {
|
|
153
|
+
font-family: "Lucida Calligraphy", cursive, serif, sans-serif;
|
|
154
|
+
font-size: 16px;
|
|
155
|
+
|
|
156
|
+
& > span {
|
|
157
|
+
font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
|
|
158
|
+
font-size: 14px;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React, { useState } from "react";
|
|
2
|
+
import { useShareCertificate, useShareCertificateStore } from "../../../../../data/share-certificate";
|
|
3
|
+
import { useMetaStore } from "@voplus/morpho-document-core";
|
|
4
|
+
import { Open } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
|
|
5
|
+
import { observe } from "@voplus/morpho-ui";
|
|
6
|
+
import DocumentHeader from "@voplus/morpho-document/es/components/DocumentHeader";
|
|
7
|
+
import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
|
|
8
|
+
import classnames from "classnames";
|
|
9
|
+
import styles from "./index.less";
|
|
10
|
+
const ShareCertificateItem = (props) => {
|
|
11
|
+
const { id } = props;
|
|
12
|
+
const meta = useMetaStore();
|
|
13
|
+
const shareCertificate = useShareCertificate(id);
|
|
14
|
+
const store = useShareCertificateStore();
|
|
15
|
+
const [hover, setHover] = useState(false);
|
|
16
|
+
return observe(() => {
|
|
17
|
+
var _a;
|
|
18
|
+
return (React.createElement(DocumentHeader, { id: shareCertificate.id, clickNameEffect: "default", quickDataBarAlign: "left", tagsVisible: !!((_a = shareCertificate.tags) === null || _a === void 0 ? void 0 : _a.length), className: styles["share-certificate-item"], onMouse: (over) => setHover(over), tools: React.createElement(React.Fragment, null,
|
|
19
|
+
React.createElement("div", { className: classnames("hover-operate-icon", { show: hover }) },
|
|
20
|
+
React.createElement(ToolBar, { id: id, moreProps: {
|
|
21
|
+
buttonProps: { size: "middle" },
|
|
22
|
+
} },
|
|
23
|
+
React.createElement(Open, { size: "middle", url: meta.getRoute(shareCertificate) })))) }));
|
|
24
|
+
});
|
|
25
|
+
};
|
|
26
|
+
export default ShareCertificateItem;
|
|
27
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/share-certificate/components/ShareCertificateItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAExC,OAAO,EAAE,mBAAmB,EAAE,wBAAwB,EAAE,MAAM,uCAAuC,CAAC;AACtG,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,IAAI,EAAE,MAAM,qDAAqD,CAAC;AAC3E,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,cAAc,MAAM,sDAAsD,CAAC;AAElF,OAAO,OAAO,MAAM,sDAAsD,CAAC;AAC3E,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,oBAAoB,GAAG,CAAC,KAAqB,EAAE,EAAE;IACrD,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IACrB,MAAM,IAAI,GAAG,YAAY,EAAE,CAAC;IAC5B,MAAM,gBAAgB,GAAG,mBAAmB,CAAC,EAAE,CAAC,CAAC;IACjD,MAAM,KAAK,GAAG,wBAAwB,EAAE,CAAC;IAEzC,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAE1C,OAAO,OAAO,CAAC,GAAG,EAAE;;QAAC,OAAA,CACnB,oBAAC,cAAc,IACb,EAAE,EAAE,gBAAgB,CAAC,EAAE,EACvB,eAAe,EAAC,SAAS,EACzB,iBAAiB,EAAC,MAAM,EACxB,WAAW,EAAE,CAAC,CAAC,CAAA,MAAA,gBAAgB,CAAC,IAAI,0CAAE,MAAM,CAAA,EAC5C,SAAS,EAAE,MAAM,CAAC,wBAAwB,CAAC,EAC3C,OAAO,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,EACjC,KAAK,EACH,oBAAC,KAAK,CAAC,QAAQ;gBAYb,6BAAK,SAAS,EAAE,UAAU,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;oBAC/D,oBAAC,OAAO,IACN,EAAE,EAAE,EAAE,EACN,SAAS,EAAE;4BACT,WAAW,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;yBAChC;wBAED,oBAAC,IAAI,IAAC,IAAI,EAAC,QAAQ,EAAC,GAAG,EAAE,IAAI,CAAC,QAAQ,CAAC,gBAAgB,CAAC,GAAI,CACpD,CACN,CACS,GAEnB,CACH,CAAA;KAAA,CAAC,CAAC;AACL,CAAC,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
@import "~@voplus/antd/es/style/themes/default.less";
|
|
2
|
+
|
|
3
|
+
.share-certificate-item {
|
|
4
|
+
position: relative;
|
|
5
|
+
align-items: center;
|
|
6
|
+
cursor: pointer;
|
|
7
|
+
background-color: transparent;
|
|
8
|
+
|
|
9
|
+
&:global(:after) {
|
|
10
|
+
position: absolute;
|
|
11
|
+
content: "";
|
|
12
|
+
left: 20px;
|
|
13
|
+
right: 20px;
|
|
14
|
+
bottom: 0;
|
|
15
|
+
border-bottom: 1px solid #f2f2f2;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
:global {
|
|
19
|
+
.share-certificate-status-label {
|
|
20
|
+
opacity: 1;
|
|
21
|
+
transition: opacity 0.3s;
|
|
22
|
+
flex-shrink: 0;
|
|
23
|
+
|
|
24
|
+
&.hide {
|
|
25
|
+
opacity: 0;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.hover-operate-icon {
|
|
30
|
+
display: none;
|
|
31
|
+
position: absolute;
|
|
32
|
+
right: 20px;
|
|
33
|
+
|
|
34
|
+
.ant-btn:first-child {
|
|
35
|
+
margin-left: 0;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&.show {
|
|
39
|
+
display: block;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.due-date {
|
|
44
|
+
margin-right: 12px;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { IShareCertificate } from "../../../../../data/share-certificate";
|
|
3
|
+
export declare type ShareCertificateListProps = {
|
|
4
|
+
parentId?: string;
|
|
5
|
+
/** filter by contactId */
|
|
6
|
+
contactId?: string;
|
|
7
|
+
/** Sales Center id */
|
|
8
|
+
centerId?: string;
|
|
9
|
+
/** filter by shareCertificate status */
|
|
10
|
+
status?: string;
|
|
11
|
+
/** custom title */
|
|
12
|
+
viewTitle?: React.ReactNode;
|
|
13
|
+
/** is show filter */
|
|
14
|
+
filter?: boolean;
|
|
15
|
+
/** is show shareCertificate amount */
|
|
16
|
+
total?: boolean;
|
|
17
|
+
/** 是否允在 listView 内部打开 aside */
|
|
18
|
+
asideable?: boolean;
|
|
19
|
+
/** 预选 contact */
|
|
20
|
+
primaryContact?: {
|
|
21
|
+
id: string;
|
|
22
|
+
name: string;
|
|
23
|
+
};
|
|
24
|
+
/** New Form 打开的方式 */
|
|
25
|
+
openNewFormMode?: "openAside" | "openBottom" | "openDialog";
|
|
26
|
+
/** Call back when received total number of quotations. */
|
|
27
|
+
onTotal?: (total: number) => void;
|
|
28
|
+
/** Call back when an item has been clicked on the list. */
|
|
29
|
+
onClickItem?: (item: IShareCertificate) => void;
|
|
30
|
+
};
|
|
31
|
+
declare const ShareCertificateList: {
|
|
32
|
+
(props: ShareCertificateListProps): JSX.Element;
|
|
33
|
+
defaultProps: {
|
|
34
|
+
viewTitle: string;
|
|
35
|
+
openNewFormMode: string;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
export default ShareCertificateList;
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import React, { useState } from "react";
|
|
2
|
+
import { Badge } from "@voplus/antd";
|
|
3
|
+
import { useShareCertificateListEffect, } from "../../../../../data/share-certificate";
|
|
4
|
+
import { ListDataContext, useCreateListDataState } from "@voplus/morpho-ui/es/data";
|
|
5
|
+
import { useAutoUpdateListData } from "@voplus/morpho-document-core";
|
|
6
|
+
import { observe } from "@voplus/morpho-ui";
|
|
7
|
+
import { useRenderOnChange } from "@voplus/morpho-ui";
|
|
8
|
+
import NewShareCertificateForm from "../NewShareCertificateForm";
|
|
9
|
+
import NewShareCertificateFormDialog from "../NewShareCertificateForm/NewShareCertificateFormDialog";
|
|
10
|
+
import DocumentItemFrame from "@voplus/morpho-document/es/controls/DocumentItemFrame";
|
|
11
|
+
import ShareCertificateStatusFilter from "../../controls/ShareCertificateStatusFilter";
|
|
12
|
+
import ListView from "@voplus/morpho-ui/es/components/layout/ListView/ListView2";
|
|
13
|
+
import ShareCertificateItem from "../ShareCertificateItem";
|
|
14
|
+
import styles from "./index.less";
|
|
15
|
+
const ShareCertificateList = (props) => {
|
|
16
|
+
const { centerId, contactId, viewTitle, openNewFormMode, asideable, status, parentId, primaryContact, filter, total, } = props;
|
|
17
|
+
const [activeId, setActiveId] = useState("");
|
|
18
|
+
const [addAble, setAddAble] = useState(false);
|
|
19
|
+
const [visible, setVisible] = useState(false);
|
|
20
|
+
const [shareCertificateTotal, setShareCertificateTotal] = useState(0);
|
|
21
|
+
let listViewHeaderProps;
|
|
22
|
+
if (props.status === "my" || props.status === "all" || filter)
|
|
23
|
+
listViewHeaderProps = {
|
|
24
|
+
filterViewProps: {
|
|
25
|
+
columns: [
|
|
26
|
+
React.createElement(ShareCertificateStatusFilter, { key: "ShareCertificateStatusFilter", defaultValue: defaultValue() }),
|
|
27
|
+
],
|
|
28
|
+
onFilter,
|
|
29
|
+
},
|
|
30
|
+
};
|
|
31
|
+
const list = useCreateListDataState({
|
|
32
|
+
filterDefaults: {
|
|
33
|
+
includes: "tags,versions",
|
|
34
|
+
filters: filters(),
|
|
35
|
+
},
|
|
36
|
+
}, [centerId, parentId, status, contactId]);
|
|
37
|
+
/** useOnNewDocument, useOnDeleteDocument的sugar syntax 自動更新list. */
|
|
38
|
+
useAutoUpdateListData(list, (d) => d.type === "ShareCertificate");
|
|
39
|
+
useRenderOnChange(() => list.filters.options);
|
|
40
|
+
/** 把ListDataState传给useShareCertificateListEffect,使之可以自動更新loading, hasmore. */
|
|
41
|
+
useShareCertificateListEffect(list, (result, total) => {
|
|
42
|
+
var _a;
|
|
43
|
+
list.union(result);
|
|
44
|
+
setShareCertificateTotal(total);
|
|
45
|
+
(_a = props.onTotal) === null || _a === void 0 ? void 0 : _a.call(props, total);
|
|
46
|
+
}, {
|
|
47
|
+
Total: true,
|
|
48
|
+
...list.filters.options,
|
|
49
|
+
});
|
|
50
|
+
return observe(() => (React.createElement(ListDataContext.Provider, { value: list },
|
|
51
|
+
React.createElement("div", { className: styles["share-certificate-list"] },
|
|
52
|
+
React.createElement(ListView, { headerProps: {
|
|
53
|
+
viewTitle: (React.createElement(React.Fragment, null,
|
|
54
|
+
React.createElement("span", { className: "margin-right-10" }, viewTitle),
|
|
55
|
+
total && shareCertificateTotal ? (React.createElement(Badge, { count: shareCertificateTotal, overflowCount: 99 })) : null)),
|
|
56
|
+
sortable: false,
|
|
57
|
+
onAdd: onAdd,
|
|
58
|
+
quickSearch: true,
|
|
59
|
+
...listViewHeaderProps,
|
|
60
|
+
}, className: "share-certificate-list-content", asideable: asideable, formViewTitle: "Add ShareCertificate", formView: openNewFormMode === "openAside" && (React.createElement(NewShareCertificateForm, { showView: true, parentId: props === null || props === void 0 ? void 0 : props.parentId })), renderItem: ({ item, connectDragSource }) => (React.createElement(DocumentItemFrame, { key: item.id, frameProps: { active: activeId === item.id }, onClick: () => {
|
|
61
|
+
var _a;
|
|
62
|
+
setActiveId(item.id);
|
|
63
|
+
(_a = props.onClickItem) === null || _a === void 0 ? void 0 : _a.call(props, item);
|
|
64
|
+
} },
|
|
65
|
+
React.createElement(ShareCertificateItem, { id: item.id }))) }),
|
|
66
|
+
addAble && (React.createElement(NewShareCertificateForm, { type: "mini", className: "new-form-bottom", parentId: props === null || props === void 0 ? void 0 : props.parentId, onCancel: () => setAddAble(false), onSave: () => setAddAble(false) })),
|
|
67
|
+
visible && (React.createElement(NewShareCertificateFormDialog, { parentId: props === null || props === void 0 ? void 0 : props.parentId, onCancel: () => setVisible(false), onSave: () => setVisible(false) }))))));
|
|
68
|
+
function filters() {
|
|
69
|
+
const filter = [];
|
|
70
|
+
if (centerId) {
|
|
71
|
+
filter.push({ c: "CenterId", o: "=", l: "And", v1: centerId });
|
|
72
|
+
}
|
|
73
|
+
if (parentId) {
|
|
74
|
+
filter.push({ c: "ParentNodeId", o: "=", l: "And", v1: parentId });
|
|
75
|
+
}
|
|
76
|
+
if (contactId) {
|
|
77
|
+
filter.push({ c: "Contact", o: "=", l: "And", v1: contactId }, {
|
|
78
|
+
c: "ShareCertificateStatus",
|
|
79
|
+
o: "contains",
|
|
80
|
+
l: "And",
|
|
81
|
+
v1: JSON.stringify(["New", "Followup", "Contacting", "NoResponse"]),
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
switch (status) {
|
|
85
|
+
case "my":
|
|
86
|
+
filter.push({
|
|
87
|
+
c: "OwnerType",
|
|
88
|
+
o: "contains",
|
|
89
|
+
l: "And",
|
|
90
|
+
v1: JSON.stringify(["My"]),
|
|
91
|
+
});
|
|
92
|
+
break;
|
|
93
|
+
case "new":
|
|
94
|
+
filter.push({ c: "ShareCertificateStatus", o: "=", v1: "New", l: "And" });
|
|
95
|
+
break;
|
|
96
|
+
case "followup":
|
|
97
|
+
filter.push({ c: "ShareCertificateStatus", o: "=", v1: "Followup", l: "And" });
|
|
98
|
+
break;
|
|
99
|
+
case "won":
|
|
100
|
+
filter.push({ c: "ShareCertificateStatus", o: "=", v1: "Won", l: "And" });
|
|
101
|
+
break;
|
|
102
|
+
case "lost":
|
|
103
|
+
filter.push({ c: "ShareCertificateStatus", o: "=", v1: "Lost", l: "And" });
|
|
104
|
+
break;
|
|
105
|
+
case "contacting":
|
|
106
|
+
filter.push({ c: "ShareCertificateStatus", o: "=", v1: "Contacting", l: "And" });
|
|
107
|
+
break;
|
|
108
|
+
case "no-response":
|
|
109
|
+
filter.push({ c: "ShareCertificateStatus", o: "=", v1: "NoResponse", l: "And" });
|
|
110
|
+
break;
|
|
111
|
+
default:
|
|
112
|
+
break;
|
|
113
|
+
}
|
|
114
|
+
return filter;
|
|
115
|
+
}
|
|
116
|
+
function defaultValue() {
|
|
117
|
+
if (contactId)
|
|
118
|
+
return ["New", "Followup", "Contacting", "NoResponse"];
|
|
119
|
+
return [];
|
|
120
|
+
}
|
|
121
|
+
function onAdd() {
|
|
122
|
+
if (openNewFormMode === "openBottom")
|
|
123
|
+
setAddAble(true);
|
|
124
|
+
if (openNewFormMode === "openDialog")
|
|
125
|
+
setVisible(true);
|
|
126
|
+
}
|
|
127
|
+
function onFilter(context) {
|
|
128
|
+
context.paging.Page = 1;
|
|
129
|
+
context.filter();
|
|
130
|
+
}
|
|
131
|
+
};
|
|
132
|
+
ShareCertificateList.defaultProps = {
|
|
133
|
+
viewTitle: "My ShareCertificate",
|
|
134
|
+
openNewFormMode: "openAside",
|
|
135
|
+
};
|
|
136
|
+
export default ShareCertificateList;
|
|
137
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/share-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AAC;IAED,SAAS,YAAY;QACpB,IAAI,SAAS;YAAE,OAAO,CAAC,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,YAAY,CAAC,CAAC;QACtE,OAAO,EAAE,CAAC;IACX,CAAC;IAED,SAAS,KAAK;QACb,IAAI,eAAe,KAAK,YAAY;YAAE,UAAU,CAAC,IAAI,CAAC,CAAC;QACvD,IAAI,eAAe,KAAK,YAAY;YAAE,UAAU,CAAC,IAAI,CAAC,CAAC;IACxD,CAAC;IAED,SAAS,QAAQ,CAAC,OAAY;QAC7B,OAAO,CAAC,MAAM,CAAC,IAAI,GAAG,CAAC,CAAC;QACxB,OAAO,CAAC,MAAM,EAAE,CAAC;IAClB,CAAC;AACF,CAAC,CAAC;AAEF,oBAAoB,CAAC,YAAY,GAAG;IACnC,SAAS,EAAE,qBAAqB;IAChC,eAAe,EAAE,WAAW;CAC5B,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
.share-certificate-list {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
height: 100%;
|
|
5
|
+
|
|
6
|
+
:global {
|
|
7
|
+
.share-certificate-list-content {
|
|
8
|
+
background-color: #fff;
|
|
9
|
+
padding: 0 !important;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.new-form-bottom {
|
|
13
|
+
padding: 10px 20px;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
package/es/modules/corporate/share-certificate/components/ShareCertificateProperties/index.d.ts
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare type ShareCertificatePropertiesName = "Member" | "Number" | "CertificateType";
|
|
3
|
+
declare const ShareCertificateProperties: {
|
|
4
|
+
(props: {
|
|
5
|
+
id: string;
|
|
6
|
+
headerVisible?: boolean;
|
|
7
|
+
shareCertificateTitle?: string;
|
|
8
|
+
documentTitle?: string;
|
|
9
|
+
shareCertificateProperties?: {
|
|
10
|
+
name: ShareCertificatePropertiesName;
|
|
11
|
+
visible?: boolean;
|
|
12
|
+
}[];
|
|
13
|
+
documentProperties?: {
|
|
14
|
+
name: "Tags" | "Create Date" | "Create By" | "Folder";
|
|
15
|
+
visible?: boolean;
|
|
16
|
+
}[];
|
|
17
|
+
}): JSX.Element;
|
|
18
|
+
defaultProps: {
|
|
19
|
+
shareCertificateTitle: string;
|
|
20
|
+
documentTitle: string;
|
|
21
|
+
shareCertificateProperties: {
|
|
22
|
+
name: string;
|
|
23
|
+
}[];
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
export default ShareCertificateProperties;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { Form } from "@voplus/antd";
|
|
3
|
+
import { observe, InlineEdit } from "@voplus/morpho-ui";
|
|
4
|
+
import { useShareCertificate, useShareCertificateStore, } from "../../../../../data/share-certificate";
|
|
5
|
+
import { Scrollbars } from "react-custom-scrollbars";
|
|
6
|
+
import DescriptionEditor from "@voplus/morpho-document/es/controls/DescriptionEditor";
|
|
7
|
+
import DocumentProperties from "@voplus/morpho-document/es/components/DocumentProperties";
|
|
8
|
+
import PropertiesSection from "@voplus/morpho-ui/es/controls/PropertiesSection";
|
|
9
|
+
import DocumentPanelHeader from "@voplus/morpho-document/es/components/DocumentPanelHeader";
|
|
10
|
+
import ShareCertificateTypeLabel from "../../controls/ShareCertificateTypeLabel";
|
|
11
|
+
const ShareCertificateProperties = (props) => {
|
|
12
|
+
const { id, headerVisible, shareCertificateTitle, documentTitle, shareCertificateProperties, documentProperties, } = props;
|
|
13
|
+
const shareCertificate = useShareCertificate(id, { reload: false, includes: "tags" });
|
|
14
|
+
const store = useShareCertificateStore();
|
|
15
|
+
const filterPro = shareCertificateProperties === null || shareCertificateProperties === void 0 ? void 0 : shareCertificateProperties.filter((i) => (i === null || i === void 0 ? void 0 : i.visible) !== false);
|
|
16
|
+
return observe(() => (React.createElement("div", { className: "properties-list" },
|
|
17
|
+
headerVisible && React.createElement(DocumentPanelHeader, { id: id }),
|
|
18
|
+
React.createElement(Scrollbars, { autoHide: true },
|
|
19
|
+
React.createElement(DescriptionEditor, { id: id, description: shareCertificate.description, readonly: shareCertificate.readonly }),
|
|
20
|
+
React.createElement(PropertiesSection, { title: shareCertificateTitle, properties: React.createElement(Form, { labelAlign: "left", labelCol: { span: 10 }, scrollToFirstError: true }, filterPro === null || filterPro === void 0 ? void 0 : filterPro.map((i) => (React.createElement(React.Fragment, { key: i.name }, renderProp(i))))) }),
|
|
21
|
+
React.createElement(DocumentProperties, { id: id, fromLabelRequired: true, labelCol: 10, wrapperCol: 14, title: documentTitle, customProperties: documentProperties })))));
|
|
22
|
+
function renderProp(item) {
|
|
23
|
+
switch (item.name) {
|
|
24
|
+
case "Member":
|
|
25
|
+
return React.createElement(Form.Item, null);
|
|
26
|
+
case "Number":
|
|
27
|
+
return (React.createElement(Form.Item, { label: "Number" },
|
|
28
|
+
React.createElement(InlineEdit, { defaultValue: shareCertificate.number, content: (v) => shareCertificate.number ? (React.createElement("span", null, shareCertificate.number)) : (React.createElement("span", { className: "add-info-style" }, "Add Number")), onSave: (value) => store.edit(id, { data: { Number: value }, error: "message" }) })));
|
|
29
|
+
case "CertificateType":
|
|
30
|
+
return (React.createElement(Form.Item, { label: "Certificate Type" },
|
|
31
|
+
React.createElement(ShareCertificateTypeLabel, { editable: true, type: shareCertificate.certificateType, onChange: (type) => {
|
|
32
|
+
store.edit(id, { data: { CertificateType: type }, error: "message" });
|
|
33
|
+
} })));
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
ShareCertificateProperties.defaultProps = {
|
|
38
|
+
shareCertificateTitle: "ShareCertificate Properties",
|
|
39
|
+
documentTitle: "Document Properties",
|
|
40
|
+
shareCertificateProperties: [{ name: "Number" }, { name: "CertificateType" }],
|
|
41
|
+
};
|
|
42
|
+
export default ShareCertificateProperties;
|
|
43
|
+
//# sourceMappingURL=index.js.map
|
package/es/modules/corporate/share-certificate/components/ShareCertificateProperties/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/share-certificate/components/ShareCertificateProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAW,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EACN,mBAAmB,EACnB,wBAAwB,GACxB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAErD,OAAO,iBAAiB,MAAM,uDAAuD,CAAC;AACtF,OAAO,kBAAkB,MAAM,0DAA0D,CAAC;AAC1F,OAAO,iBAAiB,MAAM,iDAAiD,CAAC;AAChF,OAAO,mBAAmB,MAAM,2DAA2D,CAAC;AAE5F,OAAO,yBAAyB,MAAM,0CAA0C,CAAC;AAIjF,MAAM,0BAA0B,GAAG,CAAC,KAanC,EAAE,EAAE;IACJ,MAAM,EACL,EAAE,EACF,aAAa,EACb,qBAAqB,EACrB,aAAa,EACb,0BAA0B,EAC1B,kBAAkB,GAClB,GAAG,KAAK,CAAC;IAEV,MAAM,gBAAgB,GAAG,mBAAmB,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC,CAAC;IACtF,MAAM,KAAK,GAAG,wBAAwB,EAAE,CAAC;IAEzC,MAAM,SAAS,GAAG,0BAA0B,aAA1B,0BAA0B,uBAA1B,0BAA0B,CAAE,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAA,CAAC,aAAD,CAAC,uBAAD,CAAC,CAAE,OAAO,MAAK,KAAK,CAAC,CAAC;IAElF,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC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MAAM,CAAQ,CACtC,CAAC,CAAC,CAAC,CACH,8BAAM,SAAS,EAAC,gBAAgB,iBAAkB,CAClD,EAEF,MAAM,EAAE,CAAC,KAAU,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,GACpF,CACS,CACZ,CAAC;YACH,KAAK,iBAAiB;gBACrB,OAAO,CACN,oBAAC,IAAI,CAAC,IAAI,IAAC,KAAK,EAAC,kBAAkB;oBAClC,oBAAC,yBAAyB,IACzB,QAAQ,QACR,IAAI,EAAE,gBAAgB,CAAC,eAAe,EACtC,QAAQ,EAAE,CAAC,IAAI,EAAE,EAAE;4BAClB,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,eAAe,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;wBACvE,CAAC,GACA,CACS,CACZ,CAAC;SACH;IACF,CAAC;AACF,CAAC,CAAC;AAEF,0BAA0B,CAAC,YAAY,GAAG;IACzC,qBAAqB,EAAE,6BAA6B;IACpD,aAAa,EAAE,qBAAqB;IACpC,0BAA0B,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,iBAAiB,EAAE,CAAC;CAC7E,CAAC;AAEF,eAAe,0BAA0B,CAAC"}
|
package/es/modules/corporate/share-certificate/components/ShareCertificatePropertiesView/index.js
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import React, { useMemo, useState } from "react";
|
|
2
|
+
import { Open, Reload, } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
|
|
3
|
+
import { ViewContext, ViewContextData, } from "@voplus/morpho-document-core/es/data/context/ViewContext";
|
|
4
|
+
import { observe } from "@voplus/morpho-ui";
|
|
5
|
+
import { useMetaStore } from "@voplus/morpho-document-core";
|
|
6
|
+
import { useShareCertificate } from "../../../../../data/share-certificate";
|
|
7
|
+
import DocumentHeader from "@voplus/morpho-document/es/components/DocumentHeader";
|
|
8
|
+
import ShareCertificateTabs from "../ShareCertificateTabs";
|
|
9
|
+
import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
|
|
10
|
+
import "./index.less";
|
|
11
|
+
const ShareCertificatePropertiesView = (props) => {
|
|
12
|
+
const id = props.id;
|
|
13
|
+
const meta = useMetaStore();
|
|
14
|
+
const view = useMemo(() => new ViewContextData("PropertiesView"), []);
|
|
15
|
+
const shareCertificate = useShareCertificate(id);
|
|
16
|
+
const [loaded, setLoaded] = useState(true);
|
|
17
|
+
return observe(() => (React.createElement(ViewContext.Provider, { value: view },
|
|
18
|
+
React.createElement("div", { className: "module-detail-view" }, loaded && (React.createElement(React.Fragment, null,
|
|
19
|
+
React.createElement(DocumentHeader, { id: id, size: "h3", quickVisible: false, tagsVisible: false, quickDataBarAlign: "left", clickNameEffect: "edit", autoSaveName: true, className: "share-certificate-properties-view-header", tools: React.createElement(ToolBar, { id: id, moreProps: { closeAside: true } },
|
|
20
|
+
React.createElement(Reload, { action: onReload }),
|
|
21
|
+
React.createElement(Open, { url: meta.getRoute(shareCertificate) })), descriptionVisible: false }),
|
|
22
|
+
React.createElement(ShareCertificateTabs, { id: id, properties: true })))))));
|
|
23
|
+
/** reload data */
|
|
24
|
+
function onReload() {
|
|
25
|
+
setLoaded(false);
|
|
26
|
+
setTimeout(() => {
|
|
27
|
+
setLoaded(true);
|
|
28
|
+
}, 100);
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
export default ShareCertificatePropertiesView;
|
|
32
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/share-certificate/components/ShareCertificatePropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EA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0C,EACpD,KAAK,EACH,oBAAC,OAAO,IAAC,EAAE,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE;oBAC9C,oBAAC,MAAM,IAAC,MAAM,EAAE,QAAQ,GAAI;oBAC5B,oBAAC,IAAI,IAAC,GAAG,EAAE,IAAI,CAAC,QAAQ,CAAC,gBAAgB,CAAC,GAAI,CACtC,EAEZ,kBAAkB,EAAE,KAAK,GACzB;YACF,oBAAC,oBAAoB,IAAC,EAAE,EAAE,EAAE,EAAE,UAAU,SAAG,CAC5B,CAClB,CACG,CACe,CACxB,CAAC,CAAC;IAEH,kBAAkB;IAClB,SAAS,QAAQ;QACf,SAAS,CAAC,KAAK,CAAC,CAAC;QACjB,UAAU,CAAC,GAAG,EAAE;YACd,SAAS,CAAC,IAAI,CAAC,CAAC;QAClB,CAAC,EAAE,GAAG,CAAC,CAAC;IACV,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,8BAA8B,CAAC"}
|
package/es/modules/corporate/share-certificate/components/ShareCertificateQuickViewDialog/index.js
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import React, { useState } from "react";
|
|
2
|
+
import { Open, Reload, } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
|
|
3
|
+
import { observe } from "@voplus/morpho-ui";
|
|
4
|
+
import { useMetaStore } from "@voplus/morpho-document-core";
|
|
5
|
+
import { useShareCertificate } from "../../../../../data/share-certificate";
|
|
6
|
+
import SubTaskList from "@voplus/morpho-workspace/es/modules/tasks/components/SubTaskList";
|
|
7
|
+
import DocumentHeader from "@voplus/morpho-document/es/components/DocumentHeader";
|
|
8
|
+
import QuickViewDialog from "@voplus/morpho-document/es/components/QuickViewDialog";
|
|
9
|
+
import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
|
|
10
|
+
import ShareCertificateProperties from "../ShareCertificateProperties";
|
|
11
|
+
import styles from "./index.less";
|
|
12
|
+
const ShareCertificateQuickViewDialog = (props) => {
|
|
13
|
+
const { id } = props;
|
|
14
|
+
const meta = useMetaStore();
|
|
15
|
+
const shareCertificate = useShareCertificate(id, { reload: false, includes: "tags" });
|
|
16
|
+
const [loaded, setLoaded] = useState(true);
|
|
17
|
+
return observe(() => (React.createElement(QuickViewDialog, { id: props.id, exclude: ["Task"], visible: props.visible, onCancel: props.onCancel, taskList: React.createElement(SubTaskList, { parentId: id, viewTitle: "Sub-Tasks", total: true }), header: React.createElement(React.Fragment, null,
|
|
18
|
+
loaded && (React.createElement(DocumentHeader, { id: id, quickVisible: false, quickDataBarAlign: "left", clickNameEffect: "edit", autoSaveName: true, quickDataBarVisible: false, toolsVisible: false, descriptionVisible: false, style: { padding: "10px 20px 0 20px" } })),
|
|
19
|
+
React.createElement("div", { className: styles["header-bar-tool"] },
|
|
20
|
+
React.createElement("div", { className: "tools-bar" },
|
|
21
|
+
React.createElement(ToolBar, { id: id },
|
|
22
|
+
React.createElement(Reload, { action: onReload }),
|
|
23
|
+
React.createElement(Open, { url: meta.getRoute(shareCertificate) }))))) },
|
|
24
|
+
React.createElement(ShareCertificateProperties, { id: id }))));
|
|
25
|
+
/** reload data */
|
|
26
|
+
function onReload() {
|
|
27
|
+
setLoaded(false);
|
|
28
|
+
setTimeout(() => {
|
|
29
|
+
setLoaded(true);
|
|
30
|
+
}, 100);
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
export default ShareCertificateQuickViewDialog;
|
|
34
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/share-certificate/components/ShareCertificateQuickViewDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EACL,IAAI,EACJ,MAAM,GACP,MAAM,qDAAqD,CAAC;AAC7D,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AA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