@voplus/morpho-csp 1.2.167 → 1.2.169
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/components/Header/index.less +20 -20
- package/es/components/RegisteresMenuItem/index.less +10 -10
- package/es/data/shareTransaction/metas.d.ts +3 -0
- package/es/data/shareTransaction/metas.js +6 -0
- package/es/data/shareTransaction/metas.js.map +1 -1
- package/es/modules/account/components/AccountOrganizations/index.less +26 -26
- package/es/modules/account/components/AccountPropertiesView/index.less +10 -10
- package/es/modules/account/pages/AccountDefaultView/index.less +8 -8
- package/es/modules/corporate/background-investigation/risk-profile/controls/RiskProfileMenu/index.js +3 -8
- package/es/modules/corporate/background-investigation/risk-profile/controls/RiskProfileMenu/index.js.map +1 -1
- package/es/modules/corporate/clda/components/CLDADetails/index.less +5 -5
- package/es/modules/corporate/clda/components/CLDAItem/index.less +41 -41
- package/es/modules/corporate/clda/components/CLDAListView/index.less +30 -30
- package/es/modules/corporate/clda/components/CLDAProperties/index.less +15 -15
- package/es/modules/corporate/clda/components/CLDAPropertiesView/index.less +10 -10
- package/es/modules/corporate/clda/components/CLDAQuickViewDialog/index.less +13 -13
- package/es/modules/corporate/clda/components/CLDASendForm/index.less +47 -47
- package/es/modules/corporate/clda/components/NewCLDAForm/index.less +6 -6
- package/es/modules/corporate/clda/controls/CLDAStatusButton/index.less +58 -58
- package/es/modules/corporate/clda/controls/LegalDocumentDialog/index.less +8 -8
- package/es/modules/corporate/clda/controls/ModeIcon/index.less +20 -20
- package/es/modules/corporate/clda/pages/CLDAAddressDefaultView/index.less +14 -14
- package/es/modules/corporate/clda/pages/CLDAClientView/index.less +84 -84
- package/es/modules/corporate/clda/pages/ChangeAddress2021/index.less +40 -40
- package/es/modules/corporate/clda/pages/SecretaryTestPage/index.less +91 -91
- package/es/modules/corporate/company/components/CompanyDetailsView/index.less +40 -40
- package/es/modules/corporate/company/components/CompanyProperties/index.d.ts +5 -0
- package/es/modules/corporate/company/components/CompanyProperties/index.js +79 -0
- package/es/modules/corporate/company/components/CompanyProperties/index.js.map +1 -0
- package/es/modules/corporate/company/components/CompanyRegisterHead/index.d.ts +9 -0
- package/es/modules/corporate/company/components/CompanyRegisterHead/index.js +23 -0
- package/es/modules/corporate/company/components/CompanyRegisterHead/index.js.map +1 -0
- package/es/modules/corporate/company/components/CompanyRegisterHead/index.less +28 -0
- package/es/modules/corporate/company/components/InlineEditAddress/index.js +1 -1
- package/es/modules/corporate/company/components/InlineEditAddress/index.js.map +1 -1
- package/es/modules/corporate/company/components/InlineEditAddress/index.less +16 -16
- package/es/modules/corporate/company/controller-register/components/ControllerItem/index.js +23 -14
- package/es/modules/corporate/company/controller-register/components/ControllerItem/index.js.map +1 -1
- package/es/modules/corporate/company/controller-register/components/ControllerItem/index.less +44 -2
- package/es/modules/corporate/company/controller-register/components/ControllerList/index.js +3 -1
- package/es/modules/corporate/company/controller-register/components/ControllerList/index.js.map +1 -1
- package/es/modules/corporate/company/controller-register/components/ControllerPropertiesView/index.d.ts +0 -1
- package/es/modules/corporate/company/controller-register/components/ControllerPropertiesView/index.js +8 -20
- package/es/modules/corporate/company/controller-register/components/ControllerPropertiesView/index.js.map +1 -1
- package/es/modules/corporate/company/controller-register/components/ControllerPropertiesView/index.less +9 -9
- package/es/modules/corporate/company/controller-register/controls/ControllerStatusLabel/index.less +24 -24
- package/es/modules/corporate/company/controller-register/page/ControllerDefaultView/index.less +5 -5
- package/es/modules/corporate/company/controls/CompanyRegisterMenu/index.d.ts +18 -0
- package/es/modules/corporate/company/controls/CompanyRegisterMenu/index.js +84 -0
- package/es/modules/corporate/company/controls/CompanyRegisterMenu/index.js.map +1 -0
- package/es/modules/corporate/company/controls/CompanyRegisterMenu/index.less +58 -0
- package/es/modules/corporate/company/controls/CorporateMenu/index.js +2 -2
- package/es/modules/corporate/company/controls/CorporateMenu/index.js.map +1 -1
- package/es/modules/corporate/company/identity/components/ContactIdentitySelectDialog/index.less +64 -64
- package/es/modules/corporate/company/identity/components/IdentityItem/index.less +48 -48
- package/es/modules/corporate/company/identity/components/NewIdentityDialog/index.less +55 -55
- package/es/modules/corporate/company/identity/components/NewLegalContactDialog/index.less +59 -59
- package/es/modules/corporate/company/identity/components/SelectLegalContactDialog/index.less +54 -54
- package/es/modules/corporate/company/member-register/components/CompanyMemberAvatar/index.less +7 -7
- package/es/modules/corporate/company/member-register/components/CompanyMemberItem/index.d.ts +1 -1
- package/es/modules/corporate/company/member-register/components/CompanyMemberItem/index.js +21 -8
- package/es/modules/corporate/company/member-register/components/CompanyMemberItem/index.js.map +1 -1
- package/es/modules/corporate/company/member-register/components/CompanyMemberItem/index.less +33 -14
- package/es/modules/corporate/company/member-register/components/CompanyMemberList/index.js +5 -1
- package/es/modules/corporate/company/member-register/components/CompanyMemberList/index.js.map +1 -1
- package/es/modules/corporate/company/member-register/components/CompanyMemberList/index.less +12 -12
- package/es/modules/corporate/company/member-register/components/CompanyMemberListCard/index.d.ts +7 -0
- package/es/modules/corporate/company/member-register/components/CompanyMemberListCard/index.js +12 -0
- package/es/modules/corporate/company/member-register/components/CompanyMemberListCard/index.js.map +1 -0
- package/es/modules/corporate/company/member-register/components/CompanyMemberListCard/index.less +20 -0
- package/es/modules/corporate/company/member-register/components/CompanyMemberPropertiesView/index.d.ts +0 -1
- package/es/modules/corporate/company/member-register/components/CompanyMemberPropertiesView/index.js +9 -19
- package/es/modules/corporate/company/member-register/components/CompanyMemberPropertiesView/index.js.map +1 -1
- package/es/modules/corporate/company/member-register/components/CompanyMemberPropertiesView/index.less +10 -10
- package/es/modules/corporate/company/member-register/components/CompanyMemberQuickView/index.d.ts +7 -0
- package/es/modules/corporate/company/member-register/components/CompanyMemberQuickView/index.js +14 -0
- package/es/modules/corporate/company/member-register/components/CompanyMemberQuickView/index.js.map +1 -0
- package/es/modules/corporate/company/member-register/components/MemberShareTransactions/index.less +12 -12
- package/es/modules/corporate/company/member-register/components/ShareTransactionsDataIcon/index.less +8 -8
- package/es/modules/corporate/company/member-register/page/CompanyMemberDefaultView/index.less +6 -6
- package/es/modules/corporate/company/officer-register/components/OfficerItem/index.d.ts +1 -1
- package/es/modules/corporate/company/officer-register/components/OfficerItem/index.js +24 -10
- package/es/modules/corporate/company/officer-register/components/OfficerItem/index.js.map +1 -1
- package/es/modules/corporate/company/officer-register/components/OfficerItem/index.less +31 -17
- package/es/modules/corporate/company/officer-register/components/OfficerList/index.js +6 -2
- package/es/modules/corporate/company/officer-register/components/OfficerList/index.js.map +1 -1
- package/es/modules/corporate/company/officer-register/components/OfficerList/index.less +12 -12
- package/es/modules/corporate/company/officer-register/components/OfficerListCard/index.d.ts +7 -0
- package/es/modules/corporate/company/officer-register/components/OfficerListCard/index.js +12 -0
- package/es/modules/corporate/company/officer-register/components/OfficerListCard/index.js.map +1 -0
- package/es/modules/corporate/company/officer-register/components/OfficerListCard/index.less +20 -0
- package/es/modules/corporate/company/officer-register/components/OfficerPropertiesView/index.d.ts +0 -1
- package/es/modules/corporate/company/officer-register/components/OfficerPropertiesView/index.js +9 -23
- package/es/modules/corporate/company/officer-register/components/OfficerPropertiesView/index.js.map +1 -1
- package/es/modules/corporate/company/officer-register/components/OfficerPropertiesView/index.less +10 -10
- package/es/modules/corporate/company/officer-register/components/OfficerQuickView/index.d.ts +7 -0
- package/es/modules/corporate/company/officer-register/components/OfficerQuickView/index.js +14 -0
- package/es/modules/corporate/company/officer-register/components/OfficerQuickView/index.js.map +1 -0
- package/es/modules/corporate/company/officer-register/controls/OfficerStatusFilter/index.less +5 -5
- package/es/modules/corporate/company/officer-register/page/OfficerDefaultView/index.less +6 -6
- package/es/modules/corporate/company/pages/CompanyDefaultView/index.less +67 -67
- package/es/modules/corporate/company/pages/CompanyPage/Dashboard.d.ts +7 -0
- package/es/modules/corporate/company/pages/CompanyPage/Dashboard.js +21 -0
- package/es/modules/corporate/company/pages/CompanyPage/Dashboard.js.map +1 -0
- package/es/modules/corporate/company/pages/CompanyPage/index.d.ts +6 -0
- package/es/modules/corporate/company/pages/CompanyPage/index.js +82 -0
- package/es/modules/corporate/company/pages/CompanyPage/index.js.map +1 -0
- package/es/modules/corporate/company/pages/CompanyPage/index.less +52 -0
- package/es/modules/corporate/company/pages/CompanyPage/state.d.ts +10 -0
- package/es/modules/corporate/company/pages/CompanyPage/state.js +55 -0
- package/es/modules/corporate/company/pages/CompanyPage/state.js.map +1 -0
- package/es/modules/corporate/company/share-transactions-register/components/ShareMovementsDataIcon/index.less +11 -11
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionItem/index.js +5 -5
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionItem/index.js.map +1 -1
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionItem/index.less +18 -1
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionList/index.js +3 -1
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionList/index.js.map +1 -1
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionList/index.less +3 -1
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionPropertiesView/Content.js +12 -11
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionPropertiesView/Content.js.map +1 -1
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionPropertiesView/index.less +89 -89
- package/es/modules/corporate/company/share-transactions-register/controls/ShareTransactionMenu/index.d.ts +5 -0
- package/es/modules/corporate/company/share-transactions-register/controls/ShareTransactionMenu/index.js +13 -0
- package/es/modules/corporate/company/share-transactions-register/controls/ShareTransactionMenu/index.js.map +1 -0
- package/es/modules/corporate/company/share-transactions-register/controls/TransactionTypeFilter/index.less +5 -5
- package/es/modules/corporate/company/share-transactions-register/pages/ShareTransactionDefaultView/index.less +89 -89
- package/es/modules/corporate/company/share-transactions-register/pages/ShareTransactionRegisterDefaultView/index.less +20 -20
- package/es/modules/corporate/components/DocumentIconList/index.less +14 -14
- package/es/modules/corporate/components/Statement/index.less +16 -16
- package/es/modules/corporate/filing-record/components/AnnualFilings/index.less +8 -8
- package/es/modules/corporate/filing-record/components/FilingRecordItem/index.less +12 -12
- package/es/modules/corporate/filing-record/components/FilingRecordQuickView/index.less +56 -56
- package/es/modules/corporate/filing-record/components/FilingYearTimeLine/index.less +71 -71
- package/es/modules/corporate/legal-generation/components/SettingDialog/index.less +14 -14
- package/es/modules/corporate/legal-generation/pages/CorporateLegalGeneration/index.less +72 -72
- package/es/modules/corporate/pages/CorporatePage/index.d.ts +3 -0
- package/es/modules/corporate/pages/CorporatePage/index.js +21 -0
- package/es/modules/corporate/pages/CorporatePage/index.js.map +1 -0
- package/es/modules/corporate/pages/UnitCorporatePage/index.js +2 -2
- package/es/modules/corporate/pages/UnitCorporatePage/index.js.map +1 -1
- package/es/modules/corporate/relationship/components/CorporateRelationshipView/index.less +5 -5
- package/es/modules/corporate/service/components/NewServiceDialog/index.less +27 -27
- package/es/modules/corporate/service/components/ServiceItem/index.less +23 -23
- package/es/modules/corporate/service-type/components/ServiceTypePropertiesView/index.less +48 -48
- package/es/modules/corporate/share-certificate/pages/ShareCertificateDefaultView/index.less +30 -30
- package/es/modules/corporate/share-options-register/components/ShareMovementsDataIcon/index.less +11 -11
- package/es/modules/corporate/share-options-register/components/ShareOptionItem/index.less +84 -84
- package/es/modules/corporate/share-options-register/components/ShareOptionList/index.less +22 -22
- package/es/modules/corporate/share-options-register/components/ShareOptionPropertiesView/index.less +89 -89
- package/es/modules/corporate/share-options-register/pages/ShareOptionDefaultView/index.less +89 -89
- package/es/modules/order/components/OrderItem/index.less +21 -21
- package/es/modules/order/components/OrderItems/index.less +48 -48
- package/es/modules/order/components/OrderPropertiesView/index.less +13 -13
- package/es/modules/order/controls/IncorporationStatusLabel/index.less +41 -41
- package/es/modules/order/controls/OrderLabel/index.less +21 -21
- package/es/modules/order/pages/OrderDefaultView/index.less +13 -13
- package/es/modules/self-registration/clda-form/ApplicationProcessing/index.less +37 -37
- package/es/modules/self-registration/clda-form/CompanyInfoForm/index.less +25 -25
- package/es/modules/self-registration/clda-form/Download/index.less +41 -41
- package/es/modules/self-registration/clda-form/IncorporaitonCart/index.less +26 -26
- package/es/modules/self-registration/clda-form/Upload/index.less +15 -15
- package/es/modules/self-registration/clda-form/components/CLDAFormQuickViewDialog/index.less +13 -13
- package/es/modules/self-registration/clda-form/components/CompanyInfo/index.less +19 -19
- package/es/modules/self-registration/clda-form/components/NewShareholderDialog/index.less +12 -12
- package/es/modules/self-registration/clda-form/components/ShareCapital/index.less +50 -50
- package/es/modules/self-registration/clda-form/incorporation/sgp/index.less +36 -36
- package/es/modules/self-registration/clda-form/pages/CLDAFormDefaultView/index.less +45 -45
- package/es/modules/self-registration/components/Card/index.less +51 -51
- package/es/modules/self-registration/components/CheckSection/index.less +20 -20
- package/es/modules/self-registration/components/MemberCard/index.less +53 -53
- package/es/modules/self-registration/components/StripeForm/index.less +36 -36
- package/es/modules/self-registration/controls/Blink/index.less +27 -27
- package/es/modules/self-registration/controls/Section/index.less +79 -79
- package/es/modules/self-registration/incorporation-clda/components/IncorporationCLDAProperties/index.less +12 -12
- package/es/modules/self-registration/incorporation-clda/components/NewIncorporationCLDAForm/index.less +10 -10
- package/es/modules/self-registration/incorporation-clda/pages/CLDAIncorporationDefaultView/index.less +20 -20
- package/es/modules/self-registration/incorporation-clda/pages/IncorporationCLDAClientView/TourGuide/index.less +5 -5
- package/es/modules/self-registration/incorporation-clda/pages/IncorporationCLDAClientView/index.less +52 -52
- package/es/modules/self-registration/shopping-cart/ChooseService/index.js +2 -2
- package/es/modules/self-registration/shopping-cart/ChooseService/index.less +12 -12
- package/es/modules/self-registration/shopping-cart/Payment/index.less +13 -13
- package/es/modules/self-registration/shopping-cart/components/Pay/index.less +14 -14
- package/es/modules/self-registration/shopping-cart/components/TotalCart/index.less +75 -75
- package/es/modules/self-registration/shopping-cart/components/styles.less +23 -23
- package/es/modules/self-registration/shopping-cart/pages.less +6 -6
- package/es/obsolete/OfficerRegisterDefaultView/index.less +23 -23
- package/es/obsolete/controller-register/components/ControllerItem/index.less +29 -29
- package/es/obsolete/controller-register/components/ControllerList/index.less +12 -12
- package/es/obsolete/controller-register/pages/ControllerDefaultView/index.less +1 -1
- package/es/routes.d.ts +6 -0
- package/es/routes.js +15 -6
- package/es/routes.js.map +1 -1
- package/es/style/common.less +66 -66
- package/package.json +1 -1
package/es/modules/corporate/company/member-register/components/CompanyMemberQuickView/index.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { observe } from "@voplus/morpho-ui";
|
|
3
|
+
import { useMember, useMemberStore } from "../../../../../../data/member";
|
|
4
|
+
import CompanyMemberHead from "../../../components/CompanyRegisterHead";
|
|
5
|
+
import UnitQuickView from "@voplus/morpho-org/es/components/UnitQuickView";
|
|
6
|
+
import Details from "../Details";
|
|
7
|
+
const CompanyMemberQuickView = (props) => {
|
|
8
|
+
const member = useMember(props.id);
|
|
9
|
+
const store = useMemberStore();
|
|
10
|
+
return observe(() => (React.createElement(UnitQuickView, { header: React.createElement(CompanyMemberHead, { register: member, store: store, openUrl: `/member/${props.id}` }), children: React.createElement("div", { style: { padding: "20px" } },
|
|
11
|
+
React.createElement(Details, { id: props.id })), id: member.contact.id, visible: props.visible, onCancel: props.onCancel })));
|
|
12
|
+
};
|
|
13
|
+
export default CompanyMemberQuickView;
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
package/es/modules/corporate/company/member-register/components/CompanyMemberQuickView/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/member-register/components/CompanyMemberQuickView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC1E,OAAO,iBAAiB,MAAM,yCAAyC,CAAC;AACxE,OAAO,aAAa,MAAM,gDAAgD,CAAC;AAC3E,OAAO,OAAO,MAAM,YAAY,CAAC;AAEjC,MAAM,sBAAsB,GAAG,CAAC,KAI/B,EAAE,EAAE;IACJ,MAAM,MAAM,GAAG,SAAS,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IACnC,MAAM,KAAK,GAAG,cAAc,EAAE,CAAC;IAE/B,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,aAAa,IACb,MAAM,EAAE,oBAAC,iBAAiB,IAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,WAAW,KAAK,CAAC,EAAE,EAAE,GAAI,EAC7F,QAAQ,EACP,6BAAK,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE;YAC9B,oBAAC,OAAO,IAAC,EAAE,EAAE,KAAK,CAAC,EAAE,GAAI,CACpB,EAEP,EAAE,EAAE,MAAM,CAAC,OAAO,CAAC,EAAE,EACrB,OAAO,EAAE,KAAK,CAAC,OAAO,EACtB,QAAQ,EAAE,KAAK,CAAC,QAAQ,GACvB,CACF,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
|
package/es/modules/corporate/company/member-register/components/MemberShareTransactions/index.less
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
.member-share-transactions {
|
|
2
|
-
padding: 15px 20px;
|
|
3
|
-
:global {
|
|
4
|
-
h3 {
|
|
5
|
-
margin-bottom: 15px;
|
|
6
|
-
color: #000;
|
|
7
|
-
}
|
|
8
|
-
.share-transactions-table {
|
|
9
|
-
margin-bottom: 15px;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
}
|
|
1
|
+
.member-share-transactions {
|
|
2
|
+
padding: 15px 20px;
|
|
3
|
+
:global {
|
|
4
|
+
h3 {
|
|
5
|
+
margin-bottom: 15px;
|
|
6
|
+
color: #000;
|
|
7
|
+
}
|
|
8
|
+
.share-transactions-table {
|
|
9
|
+
margin-bottom: 15px;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
package/es/modules/corporate/company/member-register/components/ShareTransactionsDataIcon/index.less
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
:global {
|
|
2
|
-
.task-analytics-popover {
|
|
3
|
-
.ant-popover-inner-content {
|
|
4
|
-
display: flex;
|
|
5
|
-
padding: 0;
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
}
|
|
1
|
+
:global {
|
|
2
|
+
.task-analytics-popover {
|
|
3
|
+
.ant-popover-inner-content {
|
|
4
|
+
display: flex;
|
|
5
|
+
padding: 0;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
}
|
package/es/modules/corporate/company/member-register/page/CompanyMemberDefaultView/index.less
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
:global {
|
|
2
|
-
.company-member-default-view {
|
|
3
|
-
padding: 0 !important;
|
|
4
|
-
overflow: hidden;
|
|
5
|
-
}
|
|
6
|
-
}
|
|
1
|
+
:global {
|
|
2
|
+
.company-member-default-view {
|
|
3
|
+
padding: 0 !important;
|
|
4
|
+
overflow: hidden;
|
|
5
|
+
}
|
|
6
|
+
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import "./index.less";
|
|
3
2
|
declare const OfficerItem: (props: {
|
|
4
3
|
/** id of officer */
|
|
5
4
|
id: string;
|
|
@@ -10,5 +9,6 @@ declare const OfficerItem: (props: {
|
|
|
10
9
|
/** index of officer list */
|
|
11
10
|
index: number;
|
|
12
11
|
className?: string;
|
|
12
|
+
quickView?: boolean;
|
|
13
13
|
}) => JSX.Element;
|
|
14
14
|
export default OfficerItem;
|
|
@@ -1,21 +1,29 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import {
|
|
1
|
+
import React, { useState } from "react";
|
|
2
|
+
import { observe } from "@voplus/morpho-ui";
|
|
3
|
+
import { useOfficer, useOfficerStore } from "../../../../../../data/officer";
|
|
4
|
+
import { Badge, Skeleton } from "@voplus/antd";
|
|
3
5
|
import { faEnvelope, faPhone } from "@fortawesome/pro-light-svg-icons";
|
|
4
6
|
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
5
|
-
import
|
|
7
|
+
import { Open } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
|
|
8
|
+
import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
|
|
6
9
|
import UnitAvatar from "@voplus/morpho-org/es/components/UnitAvatar";
|
|
10
|
+
import CompanOfficerMenu from "../../../controls/CompanyRegisterMenu";
|
|
11
|
+
import OfficerQuickView from '../OfficerQuickView';
|
|
7
12
|
import moment from "moment";
|
|
8
|
-
import
|
|
9
|
-
import
|
|
13
|
+
import classnames from "classnames";
|
|
14
|
+
import styles from "./index.less";
|
|
10
15
|
const OfficerItem = (props) => {
|
|
11
|
-
const { id, unitId, index } = props;
|
|
16
|
+
const { id, unitId, index, quickView } = props;
|
|
17
|
+
const [isHover, setIsHover] = useState(false);
|
|
18
|
+
const [visible, setVisible] = useState(false);
|
|
12
19
|
const officer = useOfficer(id);
|
|
20
|
+
const store = useOfficerStore();
|
|
13
21
|
return observe(() => {
|
|
14
22
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
15
23
|
const phone = (_a = officer.phone) !== null && _a !== void 0 ? _a : (_b = officer.contact) === null || _b === void 0 ? void 0 : _b.phone;
|
|
16
24
|
const email = (_c = officer.email) !== null && _c !== void 0 ? _c : (_d = officer.contact) === null || _d === void 0 ? void 0 : _d.email;
|
|
17
|
-
return (React.createElement(
|
|
18
|
-
React.createElement(React.Fragment, null,
|
|
25
|
+
return (React.createElement(React.Fragment, null,
|
|
26
|
+
React.createElement("div", { className: styles["officer-item"], onMouseOver: () => setIsHover(true), onMouseLeave: () => setIsHover(false), onClick: () => quickView && setVisible(true) }, officer.loading ? (React.createElement(Skeleton, { avatar: true, paragraph: { rows: 1 } })) : (React.createElement(React.Fragment, null,
|
|
19
27
|
React.createElement(UnitAvatar, { id: unitId, index: index, size: "large" }),
|
|
20
28
|
React.createElement("div", { className: "officer-info" },
|
|
21
29
|
React.createElement("div", { className: "title" }, (_f = (_e = officer.identity) === null || _e === void 0 ? void 0 : _e.fullName) !== null && _f !== void 0 ? _f : (_g = officer.contact) === null || _g === void 0 ? void 0 : _g.name,
|
|
@@ -34,8 +42,14 @@ const OfficerItem = (props) => {
|
|
|
34
42
|
officer.cease && (React.createElement("span", { className: "margin-right-15" },
|
|
35
43
|
"Cease Date: ",
|
|
36
44
|
moment(officer.cease).format("YYYY-MM-DD"))))),
|
|
37
|
-
|
|
38
|
-
|
|
45
|
+
React.createElement("div", { className: classnames("officer-item-identity", { hide: isHover }) },
|
|
46
|
+
!officer.identity && React.createElement(Badge, { status: "warning", text: "Need Identity Info" }),
|
|
47
|
+
officer.status && officer.identity && (React.createElement("div", null, officer.status === "Present" ? (React.createElement(Badge, { status: "success", text: "Present" })) : (React.createElement(Badge, { status: "error", text: "Past" }))))),
|
|
48
|
+
React.createElement("div", { className: classnames("officer-item-tool", { show: isHover }), onClick: (e) => e.stopPropagation() },
|
|
49
|
+
React.createElement(ToolBar, { id: id, showMenu: false },
|
|
50
|
+
React.createElement(Open, { url: `/officer/${id}` }),
|
|
51
|
+
React.createElement(CompanOfficerMenu, { id: id, unitId: officer.contact.id, store: store, closeAside: true })))))),
|
|
52
|
+
visible && (React.createElement(OfficerQuickView, { id: id, visible: true, onCancel: () => setVisible(false) }))));
|
|
39
53
|
});
|
|
40
54
|
};
|
|
41
55
|
export default OfficerItem;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/officer-register/components/OfficerItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/officer-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,EAAE,UAAU,SAAG,CACzE,CACL,CACU,CACjB,CACI;YACL,OAAO,IAAI,CACX,oBAAC,gBAAgB,IAAC,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,GAAI,CAC9E,CACe,CACjB,CAAC;IACH,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
1
|
+
.officer-item {
|
|
2
|
+
position: relative;
|
|
3
|
+
display: flex;
|
|
4
|
+
justify-content: space-between;
|
|
5
|
+
align-items: center;
|
|
6
|
+
padding: 10px 20px;
|
|
7
|
+
|
|
8
|
+
&::after {
|
|
9
|
+
position: absolute;
|
|
10
|
+
content: "";
|
|
11
|
+
left: 20px;
|
|
12
|
+
bottom: 0;
|
|
13
|
+
right: 20px;
|
|
14
|
+
border-bottom: 1px solid #f2f2f2;
|
|
15
|
+
}
|
|
17
16
|
|
|
17
|
+
:global {
|
|
18
18
|
.officer-info {
|
|
19
19
|
flex: 1;
|
|
20
20
|
margin-left: 10px;
|
|
@@ -32,10 +32,24 @@
|
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
+
.officer-item-identity {
|
|
36
|
+
&.hide {
|
|
37
|
+
display: none;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.officer-item-tool {
|
|
42
|
+
display: none;
|
|
43
|
+
|
|
44
|
+
&.show {
|
|
45
|
+
display: block;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
35
49
|
.appointment-date,
|
|
36
50
|
.cease-date {
|
|
37
51
|
font-size: 13px;
|
|
38
52
|
line-height: 22px;
|
|
39
53
|
}
|
|
40
54
|
}
|
|
41
|
-
}
|
|
55
|
+
}
|
|
@@ -8,7 +8,9 @@ import { useAutoUpdateListData } from "@voplus/morpho-document-core";
|
|
|
8
8
|
import { useDeepMemo } from "@voplus/morpho-data";
|
|
9
9
|
import { useRenderOnChange } from "@voplus/morpho-ui";
|
|
10
10
|
import { Menu } from "@voplus/antd";
|
|
11
|
+
import { useViewContext } from "@voplus/morpho-document-core/es/data/context/ViewContext";
|
|
11
12
|
import ListView from "@voplus/morpho-ui/es/components/layout/ListView/ListView2";
|
|
13
|
+
import DocumentItemFrame from "@voplus/morpho-document/es/controls/DocumentItemFrame";
|
|
12
14
|
import OfficerItem from "../OfficerItem";
|
|
13
15
|
import OfficerPropertiesView from "../OfficerPropertiesView";
|
|
14
16
|
import OfficerStatusFilter from "../../controls/OfficerStatusFilter";
|
|
@@ -17,6 +19,7 @@ import PageHeader from "@voplus/morpho-ui/es/components/PageHeader";
|
|
|
17
19
|
import "./index.less";
|
|
18
20
|
const OfficerList = (props) => {
|
|
19
21
|
const { parentId, allowEdit } = props;
|
|
22
|
+
const view = useViewContext();
|
|
20
23
|
const officerStore = useOfficerStore();
|
|
21
24
|
const list = useCreateListDataState({
|
|
22
25
|
filterDefaults: {
|
|
@@ -50,8 +53,9 @@ const OfficerList = (props) => {
|
|
|
50
53
|
addAble: false,
|
|
51
54
|
}, renderItem: ({ item, index }) => {
|
|
52
55
|
var _a;
|
|
53
|
-
return (React.createElement(
|
|
54
|
-
|
|
56
|
+
return (React.createElement(DocumentItemFrame, { key: item.id },
|
|
57
|
+
React.createElement(OfficerItem, { id: item.id, unitId: item.contact.id, identityId: (_a = item.identity) === null || _a === void 0 ? void 0 : _a.id, index: index, quickView: (view === null || view === void 0 ? void 0 : view.Type) === "PropertiesView" })));
|
|
58
|
+
}, propertiesView: (id) => (view === null || view === void 0 ? void 0 : view.Type) !== "PropertiesView" && React.createElement(OfficerPropertiesView, { id: id, allowEdit: allowEdit }), className: "officer-list-view" }),
|
|
55
59
|
state.addAble && (React.createElement(UnitsSelectDialog, { type: "click", multiSelect: false, onSelect: onSave, onCancel: () => runInAction(() => (state.addAble = false)) })))));
|
|
56
60
|
/** 新增officerItem */
|
|
57
61
|
async function onSave(unit) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/officer-register/components/OfficerList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAY,oBAAoB,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjG,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2CAA2C,CAAC;AACpG,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACpC,OAAO,QAAQ,MAAM,2DAA2D,CAAC;AACjF,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,qBAAqB,MAAM,0BAA0B,CAAC;AAC7D,OAAO,mBAAmB,MAAM,oCAAoC,CAAC;AACrE,OAAO,iBAAiB,MAAM,oDAAoD,CAAC;AACnF,OAAO,UAAU,MAAM,4CAA4C,CAAC;AACpE,OAAO,cAAc,CAAC;AAEtB,MAAM,WAAW,GAAG,CAAC,KAAgD,EAAE,EAAE;IACxE,MAAM,EAAE,QAAQ,EAAE,SAAS,EA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,wBAA8B;gBAChE,oBAAC,IAAI,CAAC,IAAI,IAAC,GAAG,EAAC,kBAAkB,uBAA6B;gBAC9D,oBAAC,IAAI,CAAC,IAAI,IAAC,GAAG,EAAC,WAAW,gBAAsB;gBAChD,oBAAC,IAAI,CAAC,IAAI,IAAC,GAAG,EAAC,KAAK,UAAgB;gBACpC,oBAAC,IAAI,CAAC,IAAI,IAAC,GAAG,EAAC,SAAS,cAAoB;gBAC5C,oBAAC,IAAI,CAAC,IAAI,IAAC,GAAG,EAAC,OAAO,YAAkB;gBACxC,oBAAC,IAAI,CAAC,IAAI,IAAC,GAAG,EAAC,SAAS,cAAoB;gBAC5C,oBAAC,IAAI,CAAC,IAAI,IAAC,GAAG,EAAC,SAAS,cAAoB,CACtC,CACP;SACD,GACA,CACF,CAAC;IAEF,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,eAAe,CAAC,QAAQ,IAAC,KAAK,EAAE,IAAI;QACpC,oBAAC,QAAQ,IACR,WAAW,EAAE;gBACZ,MAAM,EAAE,MAAM;gBACd,QAAQ,EAAE,KAAK;gBACf,OAAO,EAAE,KAAK;aACd,EACD,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAqC,EAAE,EAAE;;gBAAC,OAAA,CACnE,oBAAC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/officer-register/components/OfficerList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAY,oBAAoB,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjG,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2CAA2C,CAAC;AACpG,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,O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AC,MAAM,CAAC;gBACrC,IAAI,EAAE,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,QAAQ,EAAE,KAAK,CAAC,QAAQ,EAAE;gBAC5E,KAAK,EAAE,SAAS;aAChB,CAAC,CAAC;YACH,IAAI,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;SAClB;QAED,WAAW,CAAC,GAAG,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,GAAG,KAAK,CAAC,CAAC,CAAC;IAC5C,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;AACF,eAAe,WAAW,CAAC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
@import "~@voplus/antd/es/style/themes/default.less";
|
|
2
|
-
:global {
|
|
3
|
-
.officer-list-view {
|
|
4
|
-
padding: 0 !important;
|
|
5
|
-
.list-view-header .view-title {
|
|
6
|
-
flex: 1;
|
|
7
|
-
}
|
|
8
|
-
aside {
|
|
9
|
-
border-top: 0;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
}
|
|
1
|
+
@import "~@voplus/antd/es/style/themes/default.less";
|
|
2
|
+
:global {
|
|
3
|
+
.officer-list-view {
|
|
4
|
+
padding: 0 !important;
|
|
5
|
+
.list-view-header .view-title {
|
|
6
|
+
flex: 1;
|
|
7
|
+
}
|
|
8
|
+
aside {
|
|
9
|
+
border-top: 0;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { observe } from "@voplus/morpho-ui";
|
|
3
|
+
import ListCard from "@voplus/morpho-ui/es/controls/ListCard";
|
|
4
|
+
import OfficerList from "../OfficerList";
|
|
5
|
+
import styles from "./index.less";
|
|
6
|
+
const OfficerListCard = (props) => {
|
|
7
|
+
return observe(() => (React.createElement(ListCard, { style: props.style },
|
|
8
|
+
React.createElement("div", { className: styles["officer-list-card"] },
|
|
9
|
+
React.createElement(OfficerList, { ...props })))));
|
|
10
|
+
};
|
|
11
|
+
export default OfficerListCard;
|
|
12
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/officer-register/components/OfficerListCard/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,QAAQ,MAAM,wCAAwC,CAAC;AAC9D,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,eAAe,GAAG,CAAC,KAIxB,EAAE,EAAE;IACJ,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,QAAQ,IAAC,KAAK,EAAE,KAAK,CAAC,KAAK;QAC3B,6BAAK,SAAS,EAAE,MAAM,CAAC,mBAAmB,CAAC;YAC1C,oBAAC,WAAW,OAAK,KAAK,GAAI,CACrB,CACI,CACX,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
.officer-list-card {
|
|
2
|
+
height: 100%;
|
|
3
|
+
|
|
4
|
+
:global {
|
|
5
|
+
.list-view-header {
|
|
6
|
+
padding: 10px 20px;
|
|
7
|
+
|
|
8
|
+
& > div > div.flex-1.min-w-0 > div {
|
|
9
|
+
color: #252525;
|
|
10
|
+
font-size: 1.25em;
|
|
11
|
+
font-weight: 600;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
& > div > div.mt-5.flex.items-center.lg\:mt-0.lg\:ml-4 > button {
|
|
15
|
+
padding: 4px;
|
|
16
|
+
border-radius: 4px;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
package/es/modules/corporate/company/officer-register/components/OfficerPropertiesView/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import {
|
|
1
|
+
import React, { useMemo } from "react";
|
|
2
|
+
import { observe } from "@voplus/morpho-ui";
|
|
3
|
+
import { Open } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
|
|
3
4
|
import { Skeleton, Tabs } from "@voplus/antd";
|
|
4
5
|
import { useOfficer, useOfficerStore } from "../../../../../../data/officer";
|
|
5
6
|
import { ViewContext, ViewContextData, } from "@voplus/morpho-document-core/es/data/context/ViewContext";
|
|
@@ -9,32 +10,27 @@ import DocumentList from "@voplus/morpho-document/es/components/DocumentList";
|
|
|
9
10
|
import IdentifyDetail from "../../../identity/components/IdentifyDetail";
|
|
10
11
|
import OfficerInformation from "../OfficerInformation";
|
|
11
12
|
import PositionSelect from "../PositionSelect";
|
|
12
|
-
import React, { useMemo } from "react";
|
|
13
13
|
import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
|
|
14
|
+
import CompanyOfficerMenu from "../../../controls/CompanyRegisterMenu";
|
|
14
15
|
import UnitAvatar from "@voplus/morpho-org/es/components/UnitAvatar";
|
|
15
|
-
import
|
|
16
|
-
import { useAsideContentContext } from "@voplus/morpho-ui";
|
|
17
|
-
import { useListDataContext } from "@voplus/morpho-ui/es/data";
|
|
16
|
+
import styles from "./index.less";
|
|
18
17
|
const OfficerPropertiesView = (props) => {
|
|
19
18
|
const { id, allowEdit, toolbar } = props;
|
|
20
19
|
const officer = useOfficer(id, { reload: true });
|
|
21
|
-
const
|
|
22
|
-
const dataState = useListDataContext();
|
|
23
|
-
const asideContext = useAsideContentContext();
|
|
20
|
+
const store = useOfficerStore();
|
|
24
21
|
const view = useMemo(() => new ViewContextData("QuickView"), []);
|
|
25
22
|
return observe(() => {
|
|
26
23
|
var _a, _b, _c, _d;
|
|
27
24
|
return (React.createElement(ViewContext.Provider, { value: view },
|
|
28
|
-
React.createElement("div", { className: "officer-properties-
|
|
29
|
-
officer.loading ? (React.createElement(
|
|
30
|
-
React.createElement(Skeleton, { active: true }))) : (React.createElement("div", { className: "officer-properties-view_header" },
|
|
25
|
+
React.createElement("div", { className: styles["officer-properties-view-content"] },
|
|
26
|
+
officer.loading ? (React.createElement(Skeleton, { avatar: true, paragraph: { rows: 1 } })) : (React.createElement("div", { className: "officer-properties-view-header" },
|
|
31
27
|
React.createElement(UnitAvatar, { id: officer.contact.id, size: 70 }),
|
|
32
28
|
React.createElement("div", { className: "officer-person-name" },
|
|
33
29
|
React.createElement(PositionSelect, { id: id, position: officer.position, allowEdit: allowEdit })),
|
|
34
30
|
React.createElement("div", null, (_b = (_a = officer.identity) === null || _a === void 0 ? void 0 : _a.fullName) !== null && _b !== void 0 ? _b : (_c = officer.contact) === null || _c === void 0 ? void 0 : _c.name),
|
|
35
31
|
toolbar !== false && (React.createElement(ToolBar, { showMenu: false },
|
|
36
32
|
React.createElement(Open, { url: `/officer/${id}` }),
|
|
37
|
-
|
|
33
|
+
React.createElement(CompanyOfficerMenu, { id: id, unitId: officer.contact.id, store: store, closeAside: true }))))),
|
|
38
34
|
React.createElement(Tabs, { defaultActiveKey: "Officer" },
|
|
39
35
|
React.createElement(Tabs.TabPane, { tab: "Officer Details", key: "Officer" },
|
|
40
36
|
React.createElement(OfficerInformation, { id: id, allowEdit: allowEdit })),
|
|
@@ -47,16 +43,6 @@ const OfficerPropertiesView = (props) => {
|
|
|
47
43
|
React.createElement(Tabs.TabPane, { tab: "Activities", key: "Activities" },
|
|
48
44
|
React.createElement(ActivityLog, { id: id, nodes: [officer.contact.id], bar: false }))))));
|
|
49
45
|
});
|
|
50
|
-
/** 删除officer item */
|
|
51
|
-
async function onDelete() {
|
|
52
|
-
await officerStore.delete([id], { error: "message" }).then((res) => {
|
|
53
|
-
if (!res)
|
|
54
|
-
return;
|
|
55
|
-
dataState.remove(id);
|
|
56
|
-
if (asideContext)
|
|
57
|
-
asideContext.closeAside();
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
46
|
};
|
|
61
47
|
export default OfficerPropertiesView;
|
|
62
48
|
//# sourceMappingURL=index.js.map
|
package/es/modules/corporate/company/officer-register/components/OfficerPropertiesView/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/officer-register/components/OfficerPropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/officer-register/components/OfficerPropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,MAAM,qDAAqD,CAAC;AAC3E,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAC7E,OAAO,EACN,WAAW,EACX,eAAe,GACf,MAAM,0DAA0D,CAAC;AAClE,OAAO,WAAW,MAAM,2DAA2D,CAAC;AACpF,OAAO,kBAAkB,MAAM,qDAAqD,CAAC;AACrF,OAAO,YAAY,MAAM,oDAAoD,CAAC;AAC9E,OAAO,cAAc,MAAM,6CAA6C,CAAC;AACzE,OAAO,kBAAkB,MAAM,uBAAuB,CAAC;AACvD,OAAO,cAAc,MAAM,mBAAmB,CAAC;AAC/C,OAAO,OAAO,MAAM,sDAAsD,CAAC;AAC3E,OAAO,kBAAkB,MAAM,uCAAuC,CAAC;AACvE,OAAO,UAAU,MAAM,6CAA6C,CAAC;AAC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,CACF,CACgB,CACvB,CAAA;KAAA,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
|
package/es/modules/corporate/company/officer-register/components/OfficerPropertiesView/index.less
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
@import "~@voplus/morpho-theme/styles/index.less";
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
.officer-properties-
|
|
3
|
+
.officer-properties-view-content {
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
height: 100%;
|
|
7
|
+
overflow: hidden;
|
|
8
|
+
background-color: #fff;
|
|
9
|
+
|
|
10
|
+
:global {
|
|
11
|
+
.officer-properties-view-header {
|
|
12
12
|
position: relative;
|
|
13
13
|
text-align: center;
|
|
14
14
|
padding: 20px 0 10px 0;
|
|
@@ -43,4 +43,4 @@
|
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
|
-
}
|
|
46
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { observe } from "@voplus/morpho-ui";
|
|
3
|
+
import { useOfficer, useOfficerStore } from "../../../../../../data/officer";
|
|
4
|
+
import OfficerHead from "../../../components/CompanyRegisterHead";
|
|
5
|
+
import UnitQuickView from "@voplus/morpho-org/es/components/UnitQuickView";
|
|
6
|
+
import OfficerInformation from "../OfficerInformation";
|
|
7
|
+
const OfficerQuickView = (props) => {
|
|
8
|
+
const officer = useOfficer(props.id);
|
|
9
|
+
const store = useOfficerStore();
|
|
10
|
+
return observe(() => (React.createElement(UnitQuickView, { header: React.createElement(OfficerHead, { register: officer, store: store, openUrl: `/officer/${props.id}` }), children: React.createElement("div", { style: { padding: "20px", height: "100%" } },
|
|
11
|
+
React.createElement(OfficerInformation, { id: props.id })), id: officer.contact.id, visible: props.visible, onCancel: props.onCancel })));
|
|
12
|
+
};
|
|
13
|
+
export default OfficerQuickView;
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
package/es/modules/corporate/company/officer-register/components/OfficerQuickView/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/officer-register/components/OfficerQuickView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAC7E,OAAO,WAAW,MAAM,yCAAyC,CAAC;AAClE,OAAO,aAAa,MAAM,gDAAgD,CAAC;AAC3E,OAAO,kBAAkB,MAAM,uBAAuB,CAAC;AAEvD,MAAM,gBAAgB,GAAG,CAAC,KAA+D,EAAE,EAAE;IAC5F,MAAM,OAAO,GAAG,UAAU,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IACrC,MAAM,KAAK,GAAG,eAAe,EAAE,CAAC;IAEhC,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,aAAa,IACb,MAAM,EAAE,oBAAC,WAAW,IAAC,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,YAAY,KAAK,CAAC,EAAE,EAAE,GAAI,EACzF,QAAQ,EACP,6BAAK,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE;YAC9C,oBAAC,kBAAkB,IAAC,EAAE,EAAE,KAAK,CAAC,EAAE,GAAI,CAC/B,EAEP,EAAE,EAAE,OAAO,CAAC,OAAO,CAAC,EAAE,EACtB,OAAO,EAAE,KAAK,CAAC,OAAO,EACtB,QAAQ,EAAE,KAAK,CAAC,QAAQ,GACvB,CACF,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
package/es/modules/corporate/company/officer-register/controls/OfficerStatusFilter/index.less
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
:global {
|
|
2
|
-
.transaction-type-filter {
|
|
3
|
-
padding: 0 15px;
|
|
4
|
-
}
|
|
5
|
-
}
|
|
1
|
+
:global {
|
|
2
|
+
.transaction-type-filter {
|
|
3
|
+
padding: 0 15px;
|
|
4
|
+
}
|
|
5
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
:global {
|
|
2
|
-
.officer-default-view {
|
|
3
|
-
padding: 0 !important;
|
|
4
|
-
overflow: hidden;
|
|
5
|
-
}
|
|
6
|
-
}
|
|
1
|
+
:global {
|
|
2
|
+
.officer-default-view {
|
|
3
|
+
padding: 0 !important;
|
|
4
|
+
overflow: hidden;
|
|
5
|
+
}
|
|
6
|
+
}
|