@pisell/private-materials 6.3.100 → 6.3.101
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/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.js +7 -7
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +8 -8
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +9 -9
- package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
- package/es/components/booking/info/header/index.js +7 -7
- package/es/components/booking/info/header/index.less +5 -5
- package/es/components/ecocup/components/AddCustomerModal/index.js +3 -3
- package/es/components/ecocup/components/CupInfoCard/index.d.ts +3 -1
- package/es/components/ecocup/components/CupInfoCard/index.js +4 -2
- package/es/components/ecocup/components/CupStatusModal/hooks.d.ts +32 -1
- package/es/components/ecocup/components/CupStatusModal/hooks.js +109 -1
- package/es/components/ecocup/components/CupStatusModal/index.js +164 -30
- package/es/components/ecocup/components/CupStatusModal/index.less +48 -10
- package/es/components/ecocup/components/CustomerAndCupModal/index.js +1 -1
- package/es/components/ecocup/components/CustomerCard/index.d.ts +3 -1
- package/es/components/ecocup/components/CustomerCard/index.js +9 -6
- package/es/components/ecocup/components/PageHeader/index.d.ts +2 -0
- package/es/components/ecocup/components/PageHeader/index.js +15 -5
- package/es/components/ecocup/components/PageHeader/index.less +16 -4
- package/es/components/ecocup/components/SearchBar/index.d.ts +1 -0
- package/es/components/ecocup/components/SearchBar/index.js +33 -3
- package/es/components/ecocup/components/SettingModal/const.d.ts +6 -0
- package/es/components/ecocup/components/SettingModal/const.js +17 -0
- package/es/components/ecocup/components/SettingModal/index.d.ts +9 -0
- package/es/components/ecocup/components/SettingModal/index.js +253 -0
- package/es/components/ecocup/components/SettingModal/index.less +9 -0
- package/es/components/ecocup/cupList/const.d.ts +8 -1
- package/es/components/ecocup/cupList/const.js +14 -1
- package/es/components/ecocup/cupList/hooks/index.d.ts +2 -2
- package/es/components/ecocup/cupList/hooks/index.js +2 -2
- package/es/components/ecocup/cupList/hooks/useColumns.d.ts +2 -1
- package/es/components/ecocup/cupList/hooks/useColumns.js +4 -6
- package/es/components/ecocup/cupList/hooks/useCupApi.d.ts +12 -3
- package/es/components/ecocup/cupList/hooks/useCupApi.js +148 -8
- package/es/components/ecocup/cupList/hooks/useSummary.js +9 -7
- package/es/components/ecocup/cupList/index.js +60 -12
- package/es/components/ecocup/cupList/index.less +62 -16
- package/es/components/ecocup/cupProject/const.js +8 -2
- package/es/components/ecocup/cupProject/index.js +10 -1
- package/es/components/ecocup/hooks.d.ts +8 -0
- package/es/components/ecocup/hooks.js +29 -12
- package/es/components/ecocup/locales.d.ts +93 -3
- package/es/components/ecocup/locales.js +124 -25
- package/es/components/ecocup/utils/download.d.ts +7 -0
- package/es/components/ecocup/utils/download.js +34 -0
- package/es/components/ecocup/utils/index.d.ts +2 -0
- package/es/components/ecocup/utils/index.js +2 -0
- package/es/components/eftpos/hooks.d.ts +1 -0
- package/es/components/eftposPay/tyro/hooks.d.ts +1 -0
- package/es/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
- package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
- package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
- package/es/hooks/useLocale.js +8 -1
- package/es/plus/selectHolder/components/ErrorTip/index.d.ts +1 -0
- package/es/pro/comprehensiveSearch/components/searchSection/index.js +3 -2
- package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +1 -0
- package/lib/components/booking/info/header/index.js +7 -7
- package/lib/components/booking/info/header/index.less +5 -5
- package/lib/components/ecocup/components/AddCustomerModal/index.js +2 -2
- package/lib/components/ecocup/components/CupInfoCard/index.d.ts +3 -1
- package/lib/components/ecocup/components/CupInfoCard/index.js +2 -2
- package/lib/components/ecocup/components/CupStatusModal/hooks.d.ts +32 -1
- package/lib/components/ecocup/components/CupStatusModal/hooks.js +62 -2
- package/lib/components/ecocup/components/CupStatusModal/index.js +103 -22
- package/lib/components/ecocup/components/CupStatusModal/index.less +48 -10
- package/lib/components/ecocup/components/CustomerAndCupModal/index.js +1 -1
- package/lib/components/ecocup/components/CustomerCard/index.d.ts +3 -1
- package/lib/components/ecocup/components/CustomerCard/index.js +13 -3
- package/lib/components/ecocup/components/PageHeader/index.d.ts +2 -0
- package/lib/components/ecocup/components/PageHeader/index.js +10 -3
- package/lib/components/ecocup/components/PageHeader/index.less +16 -4
- package/lib/components/ecocup/components/SearchBar/index.d.ts +1 -0
- package/lib/components/ecocup/components/SearchBar/index.js +15 -2
- package/lib/components/ecocup/components/SettingModal/const.d.ts +6 -0
- package/lib/components/ecocup/components/SettingModal/const.js +48 -0
- package/lib/components/ecocup/components/SettingModal/index.d.ts +9 -0
- package/lib/components/ecocup/components/SettingModal/index.js +199 -0
- package/lib/components/ecocup/components/SettingModal/index.less +9 -0
- package/lib/components/ecocup/cupList/const.d.ts +8 -1
- package/lib/components/ecocup/cupList/const.js +18 -0
- package/lib/components/ecocup/cupList/hooks/index.d.ts +2 -2
- package/lib/components/ecocup/cupList/hooks/index.js +4 -0
- package/lib/components/ecocup/cupList/hooks/useColumns.d.ts +2 -1
- package/lib/components/ecocup/cupList/hooks/useColumns.js +2 -4
- package/lib/components/ecocup/cupList/hooks/useCupApi.d.ts +12 -3
- package/lib/components/ecocup/cupList/hooks/useCupApi.js +123 -8
- package/lib/components/ecocup/cupList/hooks/useSummary.js +22 -14
- package/lib/components/ecocup/cupList/index.js +70 -16
- package/lib/components/ecocup/cupList/index.less +62 -16
- package/lib/components/ecocup/cupProject/const.js +8 -1
- package/lib/components/ecocup/cupProject/index.js +10 -1
- package/lib/components/ecocup/hooks.d.ts +8 -0
- package/lib/components/ecocup/hooks.js +18 -4
- package/lib/components/ecocup/locales.d.ts +93 -3
- package/lib/components/ecocup/locales.js +118 -25
- package/lib/components/ecocup/utils/download.d.ts +7 -0
- package/lib/components/ecocup/utils/download.js +47 -0
- package/lib/components/ecocup/utils/index.d.ts +2 -0
- package/lib/components/ecocup/utils/index.js +42 -0
- package/lib/components/eftpos/hooks.d.ts +1 -0
- package/lib/components/eftposPay/tyro/hooks.d.ts +1 -0
- package/lib/components/eventBooking/components/ErrorTip/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateStatus/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/WeekItem/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +1 -0
- package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Status/index.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +1 -0
- package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
- package/lib/hooks/useLocale.js +7 -2
- package/lib/plus/selectHolder/components/ErrorTip/index.d.ts +1 -0
- package/lib/pro/comprehensiveSearch/components/searchSection/index.js +3 -2
- package/lowcode/eco-cup-list/meta.ts +1 -1
- package/lowcode/eco-customer-list/meta.ts +1 -1
- package/package.json +1 -1
|
@@ -16,17 +16,26 @@ interface GetStatisticsParams {
|
|
|
16
16
|
type?: 'eco' | 'normal';
|
|
17
17
|
partner_shop_id?: number;
|
|
18
18
|
}
|
|
19
|
-
|
|
19
|
+
interface IProps {
|
|
20
|
+
isEcoShare?: boolean;
|
|
21
|
+
}
|
|
22
|
+
export declare const useCupListsApi: (props: IProps) => {
|
|
20
23
|
loading: boolean;
|
|
21
24
|
data: any;
|
|
22
25
|
run: (params: GetCupListsParams) => Promise<void>;
|
|
23
26
|
};
|
|
24
|
-
export declare const useStatisticsApi: () => {
|
|
27
|
+
export declare const useStatisticsApi: (props: IProps) => {
|
|
25
28
|
data: any;
|
|
26
29
|
getStatics: (params: GetStatisticsParams) => Promise<void>;
|
|
27
30
|
};
|
|
28
|
-
export declare const useEcoShopListsApi: () => {
|
|
31
|
+
export declare const useEcoShopListsApi: (props: IProps) => {
|
|
29
32
|
data: any;
|
|
30
33
|
getEcoShopLists: (params?: any) => Promise<void>;
|
|
31
34
|
};
|
|
35
|
+
export declare const useShareApi: () => {
|
|
36
|
+
postShareApi: () => Promise<void>;
|
|
37
|
+
};
|
|
38
|
+
export declare const useExportApi: () => {
|
|
39
|
+
postExportApi: (params?: any) => Promise<void>;
|
|
40
|
+
};
|
|
32
41
|
export {};
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
1
2
|
var __defProp = Object.defineProperty;
|
|
2
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
4
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
7
|
var __export = (target, all) => {
|
|
6
8
|
for (var name in all)
|
|
@@ -14,6 +16,14 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
14
16
|
}
|
|
15
17
|
return to;
|
|
16
18
|
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
17
27
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
28
|
|
|
19
29
|
// src/components/ecocup/cupList/hooks/useCupApi.ts
|
|
@@ -21,17 +31,30 @@ var useCupApi_exports = {};
|
|
|
21
31
|
__export(useCupApi_exports, {
|
|
22
32
|
useCupListsApi: () => useCupListsApi,
|
|
23
33
|
useEcoShopListsApi: () => useEcoShopListsApi,
|
|
34
|
+
useExportApi: () => useExportApi,
|
|
35
|
+
useShareApi: () => useShareApi,
|
|
24
36
|
useStatisticsApi: () => useStatisticsApi
|
|
25
37
|
});
|
|
26
38
|
module.exports = __toCommonJS(useCupApi_exports);
|
|
27
39
|
var import_react = require("react");
|
|
40
|
+
var import_materials = require("@pisell/materials");
|
|
41
|
+
var import_utils = require("@pisell/utils");
|
|
42
|
+
var import_useEngineContext = __toESM(require("../../../../hooks/useEngineContext"));
|
|
28
43
|
var import_hooks = require("../../hooks");
|
|
29
|
-
var
|
|
44
|
+
var getApiConfig = (isEcoShare) => {
|
|
45
|
+
if (!isEcoShare) return {};
|
|
46
|
+
return {
|
|
47
|
+
isShopApi: true
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
var useCupListsApi = (props) => {
|
|
51
|
+
const { isEcoShare } = props;
|
|
30
52
|
const [loading, setLoading] = (0, import_react.useState)(false);
|
|
31
53
|
const [data, setData] = (0, import_react.useState)({});
|
|
32
54
|
const { get } = (0, import_hooks.useRequest)();
|
|
33
55
|
const { isNormalShop } = (0, import_hooks.useGetGoalShopInfo)();
|
|
34
56
|
const isApp = (0, import_hooks.useIsApp)();
|
|
57
|
+
const apiConfig = getApiConfig(isEcoShare);
|
|
35
58
|
const getCupLists = (0, import_react.useCallback)(async (params) => {
|
|
36
59
|
try {
|
|
37
60
|
const api = isApp ? "/h5/wallet/eco" : "/shop/wallet/eco";
|
|
@@ -39,11 +62,20 @@ var useCupListsApi = () => {
|
|
|
39
62
|
setLoading(true);
|
|
40
63
|
let _params = {
|
|
41
64
|
type: isPartner ? "partner" : "eco",
|
|
42
|
-
with: [
|
|
65
|
+
with: [
|
|
66
|
+
"customer:id,display_name",
|
|
67
|
+
"rentShop:id,name",
|
|
68
|
+
"returnShop:id,name",
|
|
69
|
+
"currentShop:id,name"
|
|
70
|
+
],
|
|
43
71
|
...params
|
|
44
72
|
};
|
|
45
73
|
if (isPartner) {
|
|
46
|
-
_params.with = [
|
|
74
|
+
_params.with = [
|
|
75
|
+
"customer:id,display_name",
|
|
76
|
+
"rentShop:id,name",
|
|
77
|
+
"returnShop:id,name"
|
|
78
|
+
];
|
|
47
79
|
}
|
|
48
80
|
if (isApp) {
|
|
49
81
|
_params = {
|
|
@@ -51,7 +83,7 @@ var useCupListsApi = () => {
|
|
|
51
83
|
skip: params == null ? void 0 : params.skip
|
|
52
84
|
};
|
|
53
85
|
}
|
|
54
|
-
const res = await get(api, _params);
|
|
86
|
+
const res = await get(api, _params, apiConfig);
|
|
55
87
|
setData((res == null ? void 0 : res.data) || {});
|
|
56
88
|
setLoading(false);
|
|
57
89
|
} catch (error) {
|
|
@@ -64,10 +96,12 @@ var useCupListsApi = () => {
|
|
|
64
96
|
run: getCupLists
|
|
65
97
|
};
|
|
66
98
|
};
|
|
67
|
-
var useStatisticsApi = () => {
|
|
99
|
+
var useStatisticsApi = (props) => {
|
|
100
|
+
const { isEcoShare } = props;
|
|
68
101
|
const [data, setData] = (0, import_react.useState)({});
|
|
69
102
|
const { get } = (0, import_hooks.useRequest)();
|
|
70
103
|
const { isNormalShop } = (0, import_hooks.useGetGoalShopInfo)();
|
|
104
|
+
const apiConfig = getApiConfig(isEcoShare);
|
|
71
105
|
const getStatics = (0, import_react.useCallback)(async (params) => {
|
|
72
106
|
try {
|
|
73
107
|
const isPartner = isNormalShop || (params == null ? void 0 : params.partner_shop_id);
|
|
@@ -75,7 +109,7 @@ var useStatisticsApi = () => {
|
|
|
75
109
|
type: isPartner ? "partner" : "eco",
|
|
76
110
|
...params
|
|
77
111
|
};
|
|
78
|
-
const res = await get("/shop/wallet/eco/statistics", _params);
|
|
112
|
+
const res = await get("/shop/wallet/eco/statistics", _params, apiConfig);
|
|
79
113
|
setData((res == null ? void 0 : res.data) || {});
|
|
80
114
|
} catch (error) {
|
|
81
115
|
}
|
|
@@ -85,16 +119,18 @@ var useStatisticsApi = () => {
|
|
|
85
119
|
getStatics
|
|
86
120
|
};
|
|
87
121
|
};
|
|
88
|
-
var useEcoShopListsApi = () => {
|
|
122
|
+
var useEcoShopListsApi = (props) => {
|
|
123
|
+
const { isEcoShare } = props;
|
|
89
124
|
const [data, setData] = (0, import_react.useState)([]);
|
|
90
125
|
const { get } = (0, import_hooks.useRequest)();
|
|
126
|
+
const apiConfig = getApiConfig(isEcoShare);
|
|
91
127
|
const getEcoShopLists = (0, import_react.useCallback)(async (params) => {
|
|
92
128
|
try {
|
|
93
129
|
const _params = {
|
|
94
130
|
skip: 1,
|
|
95
131
|
num: 100
|
|
96
132
|
};
|
|
97
|
-
const res = await get("/shop/wallet/eco/shops", _params);
|
|
133
|
+
const res = await get("/shop/wallet/eco/shops", _params, apiConfig);
|
|
98
134
|
setData((res == null ? void 0 : res.data) || []);
|
|
99
135
|
} catch (error) {
|
|
100
136
|
}
|
|
@@ -104,9 +140,88 @@ var useEcoShopListsApi = () => {
|
|
|
104
140
|
getEcoShopLists
|
|
105
141
|
};
|
|
106
142
|
};
|
|
143
|
+
var useShareApi = () => {
|
|
144
|
+
var _a;
|
|
145
|
+
const { post } = (0, import_hooks.useRequest)();
|
|
146
|
+
const app = (0, import_hooks.useGetApp)();
|
|
147
|
+
const context = (0, import_useEngineContext.default)();
|
|
148
|
+
const coreData = (0, import_react.useMemo)(() => {
|
|
149
|
+
var _a2, _b, _c, _d, _e, _f;
|
|
150
|
+
return (_f = (_e = (_d = (_c = (_b = (_a2 = app == null ? void 0 : app()) == null ? void 0 : _a2.data) == null ? void 0 : _b.store) == null ? void 0 : _c.getStore) == null ? void 0 : _d.call(_c)) == null ? void 0 : _e.getDataByModel) == null ? void 0 : _f.call(_e, "tenantCore", "core");
|
|
151
|
+
}, [app]);
|
|
152
|
+
const postShareApi = (0, import_react.useCallback)(async () => {
|
|
153
|
+
var _a2, _b, _c, _d, _e, _f, _g, _h, _i, _j;
|
|
154
|
+
try {
|
|
155
|
+
const token = (_d = (_c = (_b = (_a2 = app()) == null ? void 0 : _a2.data) == null ? void 0 : _b.storage) == null ? void 0 : _c.getStorage) == null ? void 0 : _d.call(_c, "token");
|
|
156
|
+
const { copyToClipboard } = ((_f = (_e = context == null ? void 0 : context.appHelper) == null ? void 0 : _e.utils) == null ? void 0 : _f.businessUtils) || {};
|
|
157
|
+
if (!token) return;
|
|
158
|
+
const params = {
|
|
159
|
+
// 有效期,7天,转成秒
|
|
160
|
+
ttl: 7 * 24 * 60 * 60,
|
|
161
|
+
data: {
|
|
162
|
+
login_token: token
|
|
163
|
+
}
|
|
164
|
+
};
|
|
165
|
+
const res = await post("/tenant/core/stash-token", params, {
|
|
166
|
+
isPisell2: true
|
|
167
|
+
});
|
|
168
|
+
if (((_g = res == null ? void 0 : res.data) == null ? void 0 : _g.token) && ((_h = coreData == null ? void 0 : coreData.tenant) == null ? void 0 : _h.default_domain)) {
|
|
169
|
+
const path = `https://${(_i = coreData == null ? void 0 : coreData.tenant) == null ? void 0 : _i.default_domain}/admin/ecocup/cup-list`;
|
|
170
|
+
const url = `${path}?source=ecoShare&key=${(_j = res == null ? void 0 : res.data) == null ? void 0 : _j.token}`;
|
|
171
|
+
copyToClipboard && copyToClipboard(url);
|
|
172
|
+
(0, import_materials.PisellToast)({
|
|
173
|
+
content: import_utils.locales.getText("pisell2.text.ecocup.toast.success-copy-link")
|
|
174
|
+
});
|
|
175
|
+
}
|
|
176
|
+
} catch (error) {
|
|
177
|
+
console.log("分享失败", error);
|
|
178
|
+
}
|
|
179
|
+
}, [(_a = coreData == null ? void 0 : coreData.tenant) == null ? void 0 : _a.default_domain]);
|
|
180
|
+
return {
|
|
181
|
+
postShareApi
|
|
182
|
+
};
|
|
183
|
+
};
|
|
184
|
+
var useExportApi = () => {
|
|
185
|
+
const { post } = (0, import_hooks.useRequest)();
|
|
186
|
+
const shopId = (0, import_hooks.useGetShopId)();
|
|
187
|
+
const context = (0, import_useEngineContext.default)();
|
|
188
|
+
const postExportApi = (0, import_react.useCallback)(async (params) => {
|
|
189
|
+
var _a, _b;
|
|
190
|
+
try {
|
|
191
|
+
const { downloadFile } = ((_a = context == null ? void 0 : context.appHelper) == null ? void 0 : _a.utils) || {};
|
|
192
|
+
const { isPartner, listParams } = params;
|
|
193
|
+
const _params = {
|
|
194
|
+
type: isPartner ? "partner" : "eco",
|
|
195
|
+
business_shop_id: !isPartner ? shopId : listParams == null ? void 0 : listParams.partner_shop_id,
|
|
196
|
+
operated_at_start: listParams == null ? void 0 : listParams.operated_at_start,
|
|
197
|
+
operated_at_end: listParams == null ? void 0 : listParams.operated_at_end
|
|
198
|
+
};
|
|
199
|
+
const res = await post("/shop/wallet/eco/export-url", _params);
|
|
200
|
+
if ((_b = res == null ? void 0 : res.data) == null ? void 0 : _b.export_url) {
|
|
201
|
+
const timestamp = (/* @__PURE__ */ new Date()).toISOString().replace(/[-:T.]/g, "").slice(0, 14);
|
|
202
|
+
const filename = `shop-eco-cups-${timestamp}.csv`;
|
|
203
|
+
downloadFile && downloadFile(res.data.export_url, filename);
|
|
204
|
+
(0, import_materials.PisellToast)({
|
|
205
|
+
content: import_utils.locales.getText("pisell2.text.ecocup.export.success")
|
|
206
|
+
});
|
|
207
|
+
return;
|
|
208
|
+
}
|
|
209
|
+
(0, import_materials.PisellToast)({
|
|
210
|
+
content: import_utils.locales.getText("pisell2.text.ecocup.export.fail")
|
|
211
|
+
});
|
|
212
|
+
} catch (error) {
|
|
213
|
+
console.log("导出失败", error);
|
|
214
|
+
}
|
|
215
|
+
}, []);
|
|
216
|
+
return {
|
|
217
|
+
postExportApi
|
|
218
|
+
};
|
|
219
|
+
};
|
|
107
220
|
// Annotate the CommonJS export names for ESM import in node:
|
|
108
221
|
0 && (module.exports = {
|
|
109
222
|
useCupListsApi,
|
|
110
223
|
useEcoShopListsApi,
|
|
224
|
+
useExportApi,
|
|
225
|
+
useShareApi,
|
|
111
226
|
useStatisticsApi
|
|
112
227
|
});
|
|
@@ -39,33 +39,41 @@ var prefixCls = "ecocup-cup-list";
|
|
|
39
39
|
var useSummary = (locales, staticsData, isPartner) => {
|
|
40
40
|
const summaryData = (0, import_react.useMemo)(() => {
|
|
41
41
|
return [
|
|
42
|
-
{
|
|
43
|
-
key: "available-to-rent",
|
|
44
|
-
title: locales.getText("pisell2.text.ecocup.available-to-rent"),
|
|
45
|
-
value: (staticsData == null ? void 0 : staticsData.in_stock_count) || 0
|
|
46
|
-
},
|
|
47
42
|
{
|
|
48
43
|
key: "cup-rent",
|
|
49
44
|
title: isPartner ? locales.getText("pisell2.text.ecocup.cup-rent") : locales.getText("pisell2.text.ecocup.eco.cup-rent"),
|
|
50
|
-
value: (staticsData == null ? void 0 : staticsData.rent_count) || 0
|
|
45
|
+
value: (staticsData == null ? void 0 : staticsData.rent_count) || 0,
|
|
46
|
+
type: "primary"
|
|
51
47
|
},
|
|
52
48
|
{
|
|
53
49
|
key: "cup-returned",
|
|
54
50
|
title: isPartner ? locales.getText("pisell2.text.ecocup.cup-returned") : locales.getText("pisell2.text.ecocup.eco.cup-returned"),
|
|
55
|
-
value: (staticsData == null ? void 0 : staticsData.return_count) || 0
|
|
51
|
+
value: (staticsData == null ? void 0 : staticsData.return_count) || 0,
|
|
52
|
+
type: "primary"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
key: "available-to-rent",
|
|
56
|
+
title: locales.getText("pisell2.text.ecocup.available-to-rent"),
|
|
57
|
+
value: (staticsData == null ? void 0 : staticsData.in_stock_count) || 0
|
|
56
58
|
}
|
|
57
59
|
];
|
|
58
60
|
}, [staticsData, isPartner]);
|
|
59
61
|
return (0, import_react.useMemo)(() => {
|
|
60
62
|
return () => /* @__PURE__ */ import_react.default.createElement(import_materials.Row, { gutter: 8, className: `${prefixCls}-summary` }, summaryData.map((item) => {
|
|
61
|
-
return /* @__PURE__ */ import_react.default.createElement(import_materials.Col, { span: 8, key: item.key }, /* @__PURE__ */ import_react.default.createElement(
|
|
62
|
-
import_materials.
|
|
63
|
+
return /* @__PURE__ */ import_react.default.createElement(import_materials.Col, { span: 8, key: item.key }, /* @__PURE__ */ import_react.default.createElement(
|
|
64
|
+
import_materials.Card,
|
|
63
65
|
{
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
66
|
+
className: `${prefixCls}-summary-card ${(item == null ? void 0 : item.type) === "primary" ? `${prefixCls}-summary-primary` : ""}`
|
|
67
|
+
},
|
|
68
|
+
/* @__PURE__ */ import_react.default.createElement(
|
|
69
|
+
import_materials.Statistic,
|
|
70
|
+
{
|
|
71
|
+
title: item.title,
|
|
72
|
+
value: item.value,
|
|
73
|
+
className: `${prefixCls}-summary-card-statistic`
|
|
74
|
+
}
|
|
75
|
+
)
|
|
76
|
+
));
|
|
69
77
|
}));
|
|
70
78
|
}, [summaryData]);
|
|
71
79
|
};
|
|
@@ -38,7 +38,6 @@ var import_dayjs = __toESM(require("dayjs"));
|
|
|
38
38
|
var import_materials = require("@pisell/materials");
|
|
39
39
|
var import_utils = require("@pisell/utils");
|
|
40
40
|
var import_icons = require("@ant-design/icons");
|
|
41
|
-
var import_useEngineContext = require("../../../hooks/useEngineContext");
|
|
42
41
|
var import_hooks = require("./hooks");
|
|
43
42
|
var import_const = require("./const");
|
|
44
43
|
var import_PageHeader = __toESM(require("../components/PageHeader"));
|
|
@@ -46,39 +45,51 @@ var import_CupActionModal = __toESM(require("../components/CupActionModal"));
|
|
|
46
45
|
var import_SearchBar = __toESM(require("../components/SearchBar"));
|
|
47
46
|
var import_hooks2 = require("../hooks");
|
|
48
47
|
var import_locales = __toESM(require("../locales"));
|
|
48
|
+
var import_hooks3 = require("../hooks");
|
|
49
49
|
var import_index = require("./index.less");
|
|
50
50
|
var prefixCls = "ecocup-cup-list";
|
|
51
51
|
var SCAN_LISTENER_KEY = "eco-cup-list-scan-listener";
|
|
52
52
|
var PAGE_SIZE = 10;
|
|
53
53
|
var FORMAT = "YYYY-MM-DD HH:mm:ss";
|
|
54
54
|
var CupList = (props) => {
|
|
55
|
-
const [date, setDate] = (0, import_react.useState)([
|
|
55
|
+
const [date, setDate] = (0, import_react.useState)([
|
|
56
|
+
(0, import_dayjs.default)().startOf("day"),
|
|
57
|
+
(0, import_dayjs.default)().endOf("day")
|
|
58
|
+
]);
|
|
56
59
|
const cupActionModal = (0, import_hooks2.useModal)("ecocup-list-action-modal");
|
|
57
60
|
const { isNormalShop } = (0, import_hooks2.useGetGoalShopInfo)();
|
|
61
|
+
const shopId = (0, import_hooks2.useGetShopId)();
|
|
58
62
|
const isApp = (0, import_hooks2.useIsApp)();
|
|
59
|
-
const platform = (0, import_useEngineContext.usePlatform)();
|
|
60
63
|
const language = (0, import_hooks2.useLanguage)();
|
|
64
|
+
const { isEcoShare } = (0, import_hooks3.useGetShare)();
|
|
61
65
|
import_utils.locales.init(import_locales.default, language);
|
|
62
66
|
const [listParams, setListParams] = (0, import_react.useState)({
|
|
63
67
|
skip: 1,
|
|
64
68
|
num: PAGE_SIZE
|
|
65
69
|
});
|
|
66
70
|
const listParamsRef = (0, import_react.useRef)(listParams);
|
|
67
|
-
const { loading, data, run } = (0, import_hooks.useCupListsApi)();
|
|
68
|
-
const { data: staticsData, getStatics } = (0, import_hooks.useStatisticsApi)();
|
|
69
|
-
const { data: ecoShopLists, getEcoShopLists } = (0, import_hooks.useEcoShopListsApi)(
|
|
71
|
+
const { loading, data, run } = (0, import_hooks.useCupListsApi)({ isEcoShare });
|
|
72
|
+
const { data: staticsData, getStatics } = (0, import_hooks.useStatisticsApi)({ isEcoShare });
|
|
73
|
+
const { data: ecoShopLists, getEcoShopLists } = (0, import_hooks.useEcoShopListsApi)({
|
|
74
|
+
isEcoShare
|
|
75
|
+
});
|
|
76
|
+
const { postExportApi } = (0, import_hooks.useExportApi)();
|
|
77
|
+
const { postShareApi } = (0, import_hooks.useShareApi)();
|
|
70
78
|
const isPartner = (0, import_react.useMemo)(() => {
|
|
71
79
|
return !!(isNormalShop || (listParams == null ? void 0 : listParams.partner_shop_id));
|
|
72
80
|
}, [isNormalShop, listParams == null ? void 0 : listParams.partner_shop_id]);
|
|
73
81
|
(0, import_react.useEffect)(() => {
|
|
74
82
|
listParamsRef.current = listParams;
|
|
75
83
|
}, [listParams]);
|
|
76
|
-
const getLists = (0, import_react.useCallback)(
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
84
|
+
const getLists = (0, import_react.useCallback)(
|
|
85
|
+
(params) => {
|
|
86
|
+
run({
|
|
87
|
+
...(listParamsRef == null ? void 0 : listParamsRef.current) || {},
|
|
88
|
+
...params
|
|
89
|
+
});
|
|
90
|
+
},
|
|
91
|
+
[listParams]
|
|
92
|
+
);
|
|
82
93
|
(0, import_react.useEffect)(() => {
|
|
83
94
|
var _a, _b;
|
|
84
95
|
if (isApp) return;
|
|
@@ -110,7 +121,8 @@ var CupList = (props) => {
|
|
|
110
121
|
);
|
|
111
122
|
const columns = (0, import_hooks.useColumns)({
|
|
112
123
|
onClickAction: handleClickAction,
|
|
113
|
-
locales: import_utils.locales
|
|
124
|
+
locales: import_utils.locales,
|
|
125
|
+
isEcoShare
|
|
114
126
|
});
|
|
115
127
|
const summary = (0, import_hooks.useSummary)(import_utils.locales, staticsData, isPartner);
|
|
116
128
|
const handleValuesChange = (changedValues, values) => {
|
|
@@ -158,12 +170,46 @@ var CupList = (props) => {
|
|
|
158
170
|
localPagination: false
|
|
159
171
|
};
|
|
160
172
|
}, [data == null ? void 0 : data.count, listParams == null ? void 0 : listParams.skip]);
|
|
173
|
+
const onClickButton = (0, import_ahooks.useMemoizedFn)((key) => {
|
|
174
|
+
if (key === "export") {
|
|
175
|
+
postExportApi({
|
|
176
|
+
isPartner,
|
|
177
|
+
listParams
|
|
178
|
+
});
|
|
179
|
+
} else if (key === "share") {
|
|
180
|
+
postShareApi();
|
|
181
|
+
}
|
|
182
|
+
});
|
|
183
|
+
const headerRightContent = (0, import_react.useMemo)(() => {
|
|
184
|
+
if (isNormalShop || isEcoShare) {
|
|
185
|
+
return null;
|
|
186
|
+
}
|
|
187
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { className: `${prefixCls}-header-right-content` }, import_const.HEADER_RIGHT_OPTIONS.map((button) => /* @__PURE__ */ import_react.default.createElement(
|
|
188
|
+
import_materials.Button,
|
|
189
|
+
{
|
|
190
|
+
key: button.key,
|
|
191
|
+
type: button.type,
|
|
192
|
+
size: "large",
|
|
193
|
+
icon: /* @__PURE__ */ import_react.default.createElement(import_materials.Icon, { type: button.icon, size: 22 }),
|
|
194
|
+
onClick: () => onClickButton(button.key),
|
|
195
|
+
className: `${prefixCls}-header-right-content-button`
|
|
196
|
+
},
|
|
197
|
+
import_utils.locales.getText(button.languageKey)
|
|
198
|
+
)));
|
|
199
|
+
}, [isNormalShop, onClickButton, isEcoShare]);
|
|
161
200
|
return /* @__PURE__ */ import_react.default.createElement("div", { className: `${prefixCls}-container` }, /* @__PURE__ */ import_react.default.createElement(import_materials.Page, { style: { height: "100%" } }, /* @__PURE__ */ import_react.default.createElement(
|
|
162
201
|
import_materials.Table,
|
|
163
202
|
{
|
|
164
203
|
dataSource: (data == null ? void 0 : data.list) || [],
|
|
165
204
|
columns,
|
|
166
|
-
title: !isApp ? /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(
|
|
205
|
+
title: !isApp ? /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(
|
|
206
|
+
import_PageHeader.default,
|
|
207
|
+
{
|
|
208
|
+
title: import_utils.locales.getText("pisell2.text.ecocup.title"),
|
|
209
|
+
rightContent: headerRightContent,
|
|
210
|
+
isReturn: !isEcoShare
|
|
211
|
+
}
|
|
212
|
+
), /* @__PURE__ */ import_react.default.createElement("div", { className: `${prefixCls}-header` }, /* @__PURE__ */ import_react.default.createElement(
|
|
167
213
|
import_materials.DatePicker.RangePicker,
|
|
168
214
|
{
|
|
169
215
|
inputReadOnly: true,
|
|
@@ -181,7 +227,9 @@ var CupList = (props) => {
|
|
|
181
227
|
{
|
|
182
228
|
scanListenerKey: SCAN_LISTENER_KEY,
|
|
183
229
|
size: "small",
|
|
184
|
-
placeholder: import_utils.locales.getText(
|
|
230
|
+
placeholder: import_utils.locales.getText(
|
|
231
|
+
"pisell2.text.ecocup.scan-or-search"
|
|
232
|
+
),
|
|
185
233
|
onSearch: (value) => handleChange(value, "search")
|
|
186
234
|
}
|
|
187
235
|
))) : null,
|
|
@@ -189,7 +237,13 @@ var CupList = (props) => {
|
|
|
189
237
|
pagination,
|
|
190
238
|
columnSetting: !isApp ? import_const.COLUMN_SETTING : null,
|
|
191
239
|
sort: !isApp ? import_const.SORT_SETTINGS : null,
|
|
192
|
-
filter: !isApp ? (0, import_const.FILTER)(
|
|
240
|
+
filter: !isApp ? (0, import_const.FILTER)(
|
|
241
|
+
import_utils.locales,
|
|
242
|
+
isNormalShop,
|
|
243
|
+
ecoShopLists,
|
|
244
|
+
isPartner,
|
|
245
|
+
listParams == null ? void 0 : listParams.skip
|
|
246
|
+
) : null,
|
|
193
247
|
summary: !isApp ? summary : null,
|
|
194
248
|
className: `${prefixCls}-table`,
|
|
195
249
|
rowClassName: `${prefixCls}-table-row`,
|
|
@@ -7,19 +7,21 @@
|
|
|
7
7
|
display: flex;
|
|
8
8
|
flex-direction: column;
|
|
9
9
|
padding: 38px 12px 12px;
|
|
10
|
-
|
|
11
|
-
.pisell-lowcode-page-header-left{
|
|
10
|
+
|
|
11
|
+
.pisell-lowcode-page-header-left {
|
|
12
12
|
flex: 1;
|
|
13
13
|
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
|
|
15
|
+
.pisell-lowcode-action-btn-icon {
|
|
16
|
+
color: #fff !important;
|
|
17
|
+
|
|
18
|
+
&:hover {
|
|
19
|
+
color: #101828 !important;
|
|
18
20
|
}
|
|
19
21
|
}
|
|
20
22
|
|
|
21
|
-
.materials-grid-table-wrap{
|
|
22
|
-
.grid-view-table-wrap{
|
|
23
|
+
.materials-grid-table-wrap {
|
|
24
|
+
.grid-view-table-wrap {
|
|
23
25
|
border-radius: 0 0 10px 10px;
|
|
24
26
|
overflow: hidden;
|
|
25
27
|
}
|
|
@@ -37,64 +39,84 @@
|
|
|
37
39
|
width: 240px !important;
|
|
38
40
|
background: #916ce0;
|
|
39
41
|
border-radius: 8px;
|
|
40
|
-
|
|
42
|
+
|
|
43
|
+
>div>div {
|
|
41
44
|
font-size: 14px;
|
|
42
45
|
color: #fff;
|
|
43
46
|
font-weight: 600;
|
|
44
47
|
line-height: 20px;
|
|
45
|
-
|
|
48
|
+
|
|
49
|
+
input {
|
|
46
50
|
height: 38px !important;
|
|
47
51
|
line-height: 38px !important;
|
|
48
52
|
padding: 0 0 0 14px !important;
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
53
|
+
|
|
54
|
+
&::selection {
|
|
55
|
+
background: transparent;
|
|
56
|
+
}
|
|
52
57
|
}
|
|
53
58
|
}
|
|
54
59
|
}
|
|
55
60
|
|
|
56
61
|
&-summary {
|
|
57
62
|
&-card {
|
|
58
|
-
height: 80px;
|
|
63
|
+
min-height: 80px;
|
|
64
|
+
border: none;
|
|
65
|
+
|
|
59
66
|
.pisell-lowcode-card-body {
|
|
60
67
|
padding: 0;
|
|
61
68
|
display: flex;
|
|
62
69
|
align-items: center;
|
|
63
70
|
justify-content: center;
|
|
64
71
|
height: 100%;
|
|
72
|
+
min-height: 80px;
|
|
65
73
|
}
|
|
74
|
+
|
|
66
75
|
&-statistic {
|
|
67
76
|
display: flex;
|
|
68
77
|
flex-direction: column;
|
|
69
78
|
text-align: center;
|
|
70
79
|
gap: 8px;
|
|
71
80
|
font-weight: 600;
|
|
81
|
+
|
|
72
82
|
.pisell-lowcode-statistic-title,
|
|
73
83
|
.pisell-lowcode-statistic-content-value {
|
|
74
|
-
// color: #5d3f9f !important;
|
|
75
84
|
line-height: 24px;
|
|
76
85
|
margin: 0;
|
|
77
86
|
}
|
|
87
|
+
|
|
78
88
|
.pisell-lowcode-statistic-content-value {
|
|
79
89
|
font-size: 28px;
|
|
80
90
|
}
|
|
91
|
+
|
|
81
92
|
.pisell-lowcode-statistic-content {
|
|
82
93
|
line-height: 28px;
|
|
83
94
|
}
|
|
84
95
|
}
|
|
85
96
|
}
|
|
97
|
+
|
|
98
|
+
&-primary {
|
|
99
|
+
background: #916ce0;
|
|
100
|
+
|
|
101
|
+
.pisell-lowcode-statistic-title,
|
|
102
|
+
.pisell-lowcode-statistic-content-value {
|
|
103
|
+
color: #ffffff !important;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
86
106
|
}
|
|
87
107
|
|
|
88
108
|
&-table {
|
|
89
109
|
td {
|
|
90
110
|
text-align: center;
|
|
91
111
|
}
|
|
112
|
+
|
|
92
113
|
&-table-row {
|
|
93
114
|
&:hover {
|
|
94
115
|
cursor: pointer;
|
|
95
116
|
}
|
|
96
117
|
}
|
|
97
118
|
}
|
|
119
|
+
|
|
98
120
|
&-table-status {
|
|
99
121
|
padding: 4px 8px;
|
|
100
122
|
border-radius: 16px;
|
|
@@ -104,10 +126,34 @@
|
|
|
104
126
|
width: max-content;
|
|
105
127
|
margin: 0 auto;
|
|
106
128
|
}
|
|
129
|
+
|
|
107
130
|
&-table-actions {
|
|
108
131
|
display: flex;
|
|
109
132
|
align-items: center;
|
|
110
133
|
justify-content: center;
|
|
111
134
|
gap: 10px;
|
|
112
135
|
}
|
|
113
|
-
|
|
136
|
+
|
|
137
|
+
&-header-right-content {
|
|
138
|
+
display: flex;
|
|
139
|
+
align-items: center;
|
|
140
|
+
gap: 16px;
|
|
141
|
+
|
|
142
|
+
&-button {
|
|
143
|
+
width: 100px;
|
|
144
|
+
height: 40px;
|
|
145
|
+
display: flex;
|
|
146
|
+
align-items: center;
|
|
147
|
+
justify-content: center;
|
|
148
|
+
font-size: 14px;
|
|
149
|
+
box-shadow: none;
|
|
150
|
+
border: 1px solid #7f56d9;
|
|
151
|
+
color: #7f56d9;
|
|
152
|
+
font-weight: bold;
|
|
153
|
+
&:hover {
|
|
154
|
+
background: #7f56d9;
|
|
155
|
+
color: #fff;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
}
|
|
@@ -43,7 +43,7 @@ var CUP_PROJECT_FOOTER_BUTTONS = [
|
|
|
43
43
|
type: "primary",
|
|
44
44
|
size: "large",
|
|
45
45
|
languageKey: "pisell2.text.cup-project.footer.button.cup-list"
|
|
46
|
-
}
|
|
46
|
+
},
|
|
47
47
|
// {
|
|
48
48
|
// key: 'register-cups',
|
|
49
49
|
// icon: 'RestOutlined',
|
|
@@ -51,6 +51,13 @@ var CUP_PROJECT_FOOTER_BUTTONS = [
|
|
|
51
51
|
// size: 'large',
|
|
52
52
|
// languageKey: 'pisell2.text.cup-project.footer.button.register-cups',
|
|
53
53
|
// },
|
|
54
|
+
{
|
|
55
|
+
key: "setting",
|
|
56
|
+
icon: "pisell2-settings-02",
|
|
57
|
+
type: "primary",
|
|
58
|
+
size: "large",
|
|
59
|
+
languageKey: "pisell2.text.cup-project.footer.button.setting"
|
|
60
|
+
}
|
|
54
61
|
];
|
|
55
62
|
// Annotate the CommonJS export names for ESM import in node:
|
|
56
63
|
0 && (module.exports = {
|
|
@@ -42,12 +42,14 @@ var import_const = require("./const");
|
|
|
42
42
|
var import_SearchBar = __toESM(require("../components/SearchBar"));
|
|
43
43
|
var import_AddCustomerModal = __toESM(require("../components/AddCustomerModal"));
|
|
44
44
|
var import_CustomerAndCupModal = __toESM(require("../components/CustomerAndCupModal"));
|
|
45
|
+
var import_SettingModal = __toESM(require("../components/SettingModal"));
|
|
45
46
|
var SCAN_LISTENER_KEY = "eco-cup-project-scan-listener";
|
|
46
47
|
function EcoCupProject() {
|
|
47
48
|
const language = (0, import_hooks.useLanguage)();
|
|
48
49
|
import_utils.locales.init(import_locales.default, language);
|
|
49
50
|
const getApp = (0, import_hooks.useGetApp)();
|
|
50
51
|
const addCustomerModal = (0, import_hooks.useModal)("ecocup-add-customer-modal");
|
|
52
|
+
const settingModal = (0, import_hooks.useModal)("ecocup-setting-modal");
|
|
51
53
|
const customerAndCupModal = (0, import_hooks.useModal)("ecocup-customer-and-cup-modal");
|
|
52
54
|
const { goalShopId } = (0, import_hooks.useGetGoalShopInfo)();
|
|
53
55
|
const onSearchResult = (result) => {
|
|
@@ -72,6 +74,10 @@ function EcoCupProject() {
|
|
|
72
74
|
console.log("onClickNewCustomer");
|
|
73
75
|
addCustomerModal.open();
|
|
74
76
|
};
|
|
77
|
+
const onClickSetting = () => {
|
|
78
|
+
console.log("onClickSetting");
|
|
79
|
+
settingModal.open();
|
|
80
|
+
};
|
|
75
81
|
const onClickCustomerList = () => {
|
|
76
82
|
var _a, _b;
|
|
77
83
|
console.log("onClickCustomerList");
|
|
@@ -103,6 +109,9 @@ function EcoCupProject() {
|
|
|
103
109
|
case "cup-list":
|
|
104
110
|
onClickCupList();
|
|
105
111
|
break;
|
|
112
|
+
case "setting":
|
|
113
|
+
onClickSetting();
|
|
114
|
+
break;
|
|
106
115
|
}
|
|
107
116
|
};
|
|
108
117
|
return /* @__PURE__ */ import_react.default.createElement("div", { className: "ecocup-cup-project" }, /* @__PURE__ */ import_react.default.createElement("div", { className: "ecocup-cup-project-title" }, import_utils.locales.getText("pisell2.text.cup-project.title")), /* @__PURE__ */ import_react.default.createElement("div", { className: "ecocup-cup-project-search-bar" }, /* @__PURE__ */ import_react.default.createElement(
|
|
@@ -122,5 +131,5 @@ function EcoCupProject() {
|
|
|
122
131
|
className: "ecocup-cup-project-actions-button"
|
|
123
132
|
},
|
|
124
133
|
import_utils.locales.getText(button.languageKey)
|
|
125
|
-
))), addCustomerModal.visible && /* @__PURE__ */ import_react.default.createElement(import_AddCustomerModal.default, { ...addCustomerModal.modalProps }), customerAndCupModal.visible && /* @__PURE__ */ import_react.default.createElement(import_CustomerAndCupModal.default, { ...customerAndCupModal.modalProps }));
|
|
134
|
+
))), addCustomerModal.visible && /* @__PURE__ */ import_react.default.createElement(import_AddCustomerModal.default, { ...addCustomerModal.modalProps }), customerAndCupModal.visible && /* @__PURE__ */ import_react.default.createElement(import_CustomerAndCupModal.default, { ...customerAndCupModal.modalProps }), settingModal.visible && /* @__PURE__ */ import_react.default.createElement(import_SettingModal.default, { ...settingModal.modalProps }));
|
|
126
135
|
}
|