@pisell/private-materials 3.0.151 → 3.0.152

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.
Files changed (136) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +1 -1
  6. package/build/lowcode/preview.js +142 -142
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +12 -12
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +12 -12
  11. package/es/components/booking/components/footer/index.js +48 -33
  12. package/es/components/booking/components/footer/utils.js +35 -4
  13. package/es/components/booking/index.js +1 -1
  14. package/es/components/booking/info/index.d.ts +4 -12
  15. package/es/components/booking/info/index.js +12 -122
  16. package/es/components/booking/info/main.d.ts +12 -0
  17. package/es/components/booking/info/main.js +124 -0
  18. package/es/components/booking/info/model.js +0 -1
  19. package/es/components/booking/info/service/addTimeModal/index.js +4 -4
  20. package/es/components/booking/info/utils.d.ts +1 -0
  21. package/es/components/booking/info/utils.js +7 -0
  22. package/es/components/booking/info2/index.d.ts +12 -0
  23. package/es/components/booking/info2/index.js +216 -0
  24. package/es/components/booking/info2/serve.d.ts +6 -0
  25. package/es/components/booking/info2/serve.js +79 -0
  26. package/es/components/booking/info2/service/actions/index.d.ts +6 -0
  27. package/es/components/booking/info2/service/actions/index.js +86 -0
  28. package/es/components/booking/info2/service/addService/index.d.ts +6 -0
  29. package/es/components/booking/info2/service/addService/index.js +404 -0
  30. package/es/components/booking/info2/service/addService/mock.d.ts +214 -0
  31. package/es/components/booking/info2/service/addService/mock.js +332 -0
  32. package/es/components/booking/info2/service/addService/utils.d.ts +71 -0
  33. package/es/components/booking/info2/service/addService/utils.js +510 -0
  34. package/es/components/booking/info2/service/addTimeModal/index.d.ts +4 -0
  35. package/es/components/booking/info2/service/addTimeModal/index.js +681 -0
  36. package/es/components/booking/info2/service/addTimeModal/serve.d.ts +9 -0
  37. package/es/components/booking/info2/service/addTimeModal/serve.js +73 -0
  38. package/es/components/booking/info2/service/addTimeModal/utils.d.ts +31 -0
  39. package/es/components/booking/info2/service/addTimeModal/utils.js +176 -0
  40. package/es/components/booking/info2/service/editService/Capacity/index.d.ts +4 -0
  41. package/es/components/booking/info2/service/editService/Capacity/index.js +121 -0
  42. package/es/components/booking/info2/service/editService/Capacity/index.less +1 -0
  43. package/es/components/booking/info2/service/editService/Resources/MaxLengthSelect/index.d.ts +7 -0
  44. package/es/components/booking/info2/service/editService/Resources/MaxLengthSelect/index.js +28 -0
  45. package/es/components/booking/info2/service/editService/Resources/index.d.ts +4 -0
  46. package/es/components/booking/info2/service/editService/Resources/index.js +233 -0
  47. package/es/components/booking/info2/service/editService/Resources/index.less +21 -0
  48. package/es/components/booking/info2/service/editService/index.d.ts +7 -0
  49. package/es/components/booking/info2/service/editService/index.js +617 -0
  50. package/es/components/booking/info2/service/editService/index.less +99 -0
  51. package/es/components/booking/info2/service/editService/utils.d.ts +11 -0
  52. package/es/components/booking/info2/service/editService/utils.js +37 -0
  53. package/es/components/booking/info2/service/index.d.ts +4 -0
  54. package/es/components/booking/info2/service/index.js +55 -0
  55. package/es/components/booking/info2/service/serviceItem/index.d.ts +4 -0
  56. package/es/components/booking/info2/service/serviceItem/index.js +176 -0
  57. package/es/components/booking/info2/service/serviceItem/index.less +125 -0
  58. package/es/components/booking/info2/service/serviceList/index.d.ts +6 -0
  59. package/es/components/booking/info2/service/serviceList/index.js +106 -0
  60. package/es/components/booking/info2/service/serviceList/index.less +0 -0
  61. package/es/components/booking/info2/utilsByBooking.d.ts +34 -0
  62. package/es/components/booking/info2/utilsByBooking.js +349 -0
  63. package/es/components/booking/locales.d.ts +3 -0
  64. package/es/components/booking/locales.js +12 -3
  65. package/es/components/booking/materiels/resources/index.d.ts +2 -2
  66. package/es/components/booking/materiels/resources/index.js +11 -11
  67. package/es/components/booking/mock.d.ts +1 -0
  68. package/es/components/booking/mock.js +66 -0
  69. package/es/components/booking/notes/index.d.ts +1 -1
  70. package/es/components/index.d.ts +1 -1
  71. package/es/components/index.js +1 -1
  72. package/es/index.d.ts +1 -1
  73. package/es/index.js +1 -1
  74. package/lib/components/booking/components/footer/index.js +28 -5
  75. package/lib/components/booking/components/footer/utils.js +29 -4
  76. package/lib/components/booking/index.js +2 -2
  77. package/lib/components/booking/info/index.d.ts +4 -12
  78. package/lib/components/booking/info/index.js +14 -115
  79. package/lib/components/booking/info/main.d.ts +12 -0
  80. package/lib/components/booking/info/main.js +152 -0
  81. package/lib/components/booking/info/service/addTimeModal/index.js +1 -0
  82. package/lib/components/booking/info/utils.d.ts +1 -0
  83. package/lib/components/booking/info/utils.js +9 -0
  84. package/lib/components/booking/info2/index.d.ts +12 -0
  85. package/lib/components/booking/info2/index.js +202 -0
  86. package/lib/components/booking/info2/serve.d.ts +6 -0
  87. package/lib/components/booking/info2/serve.js +53 -0
  88. package/lib/components/booking/info2/service/actions/index.d.ts +6 -0
  89. package/lib/components/booking/info2/service/actions/index.js +102 -0
  90. package/lib/components/booking/info2/service/addService/index.d.ts +6 -0
  91. package/lib/components/booking/info2/service/addService/index.js +356 -0
  92. package/lib/components/booking/info2/service/addService/mock.d.ts +214 -0
  93. package/lib/components/booking/info2/service/addService/mock.js +398 -0
  94. package/lib/components/booking/info2/service/addService/utils.d.ts +71 -0
  95. package/lib/components/booking/info2/service/addService/utils.js +377 -0
  96. package/lib/components/booking/info2/service/addTimeModal/index.d.ts +4 -0
  97. package/lib/components/booking/info2/service/addTimeModal/index.js +558 -0
  98. package/lib/components/booking/info2/service/addTimeModal/serve.d.ts +9 -0
  99. package/lib/components/booking/info2/service/addTimeModal/serve.js +45 -0
  100. package/lib/components/booking/info2/service/addTimeModal/utils.d.ts +31 -0
  101. package/lib/components/booking/info2/service/addTimeModal/utils.js +157 -0
  102. package/lib/components/booking/info2/service/editService/Capacity/index.d.ts +4 -0
  103. package/lib/components/booking/info2/service/editService/Capacity/index.js +97 -0
  104. package/lib/components/booking/info2/service/editService/Capacity/index.less +1 -0
  105. package/lib/components/booking/info2/service/editService/Resources/MaxLengthSelect/index.d.ts +7 -0
  106. package/lib/components/booking/info2/service/editService/Resources/MaxLengthSelect/index.js +54 -0
  107. package/lib/components/booking/info2/service/editService/Resources/index.d.ts +4 -0
  108. package/lib/components/booking/info2/service/editService/Resources/index.js +212 -0
  109. package/lib/components/booking/info2/service/editService/Resources/index.less +21 -0
  110. package/lib/components/booking/info2/service/editService/index.d.ts +7 -0
  111. package/lib/components/booking/info2/service/editService/index.js +483 -0
  112. package/lib/components/booking/info2/service/editService/index.less +99 -0
  113. package/lib/components/booking/info2/service/editService/utils.d.ts +11 -0
  114. package/lib/components/booking/info2/service/editService/utils.js +0 -0
  115. package/lib/components/booking/info2/service/index.d.ts +4 -0
  116. package/lib/components/booking/info2/service/index.js +75 -0
  117. package/lib/components/booking/info2/service/serviceItem/index.d.ts +4 -0
  118. package/lib/components/booking/info2/service/serviceItem/index.js +184 -0
  119. package/lib/components/booking/info2/service/serviceItem/index.less +125 -0
  120. package/lib/components/booking/info2/service/serviceList/index.d.ts +6 -0
  121. package/lib/components/booking/info2/service/serviceList/index.js +130 -0
  122. package/lib/components/booking/info2/service/serviceList/index.less +0 -0
  123. package/lib/components/booking/info2/utilsByBooking.d.ts +34 -0
  124. package/lib/components/booking/info2/utilsByBooking.js +257 -0
  125. package/lib/components/booking/locales.d.ts +3 -0
  126. package/lib/components/booking/locales.js +6 -3
  127. package/lib/components/booking/materiels/resources/index.d.ts +2 -2
  128. package/lib/components/booking/mock.d.ts +1 -0
  129. package/lib/components/booking/mock.js +67 -2
  130. package/lib/components/booking/notes/index.d.ts +1 -1
  131. package/lib/components/eftposPay/tyro/index.js +3 -1
  132. package/lib/components/index.d.ts +1 -1
  133. package/lib/components/index.js +1 -1
  134. package/lib/index.d.ts +1 -1
  135. package/lib/index.js +1 -1
  136. package/package.json +3 -3
@@ -0,0 +1,332 @@
1
+ export default {
2
+ "id": 57736,
3
+ "shop_id": 9,
4
+ "source_shop_id": 0,
5
+ "extension_id": 51,
6
+ "extension_type": "service_product",
7
+ "title": "\u670D\u52A130\u5206\u949F",
8
+ "slug": "\u670D\u52A130\u5206\u949F",
9
+ "title_letter": "F",
10
+ "category_letter": "F",
11
+ "vendor_letter": "",
12
+ "tag_letter": "",
13
+ "subtitle": "",
14
+ "description": "",
15
+ "cover": "",
16
+ "price": "1.00",
17
+ "original_price": "0.00",
18
+ "cost_price": "0.00",
19
+ "sort_price": "1.00",
20
+ "is_gst": 1,
21
+ "is_delivery": 0,
22
+ "weight_unit": "KILOGRAMS",
23
+ "weight_value": "0.00",
24
+ "code": "",
25
+ "barcode": "",
26
+ "unit": "",
27
+ "is_track": 1,
28
+ "stock_quantity": 9999973,
29
+ "sum_stock": 9999973,
30
+ "sales_quantity": 26,
31
+ "order_sales_quantity": 0,
32
+ "over_sold": 0,
33
+ "status": "published",
34
+ "sell_status": 1,
35
+ "published_time": "2024-01-25 15:51:12",
36
+ "shop_update_time": "2024-09-16 13:21:30",
37
+ "audit_time": null,
38
+ "is_recommend": 0,
39
+ "audit_status": "online",
40
+ "shop_status": "show",
41
+ "weight": 0,
42
+ "sort": 9999999,
43
+ "type": "physical",
44
+ "channel_application": ["online-store", "pos", "bbc-module:mebook"],
45
+ "channel_id": 0,
46
+ "rebate_type": "proportion",
47
+ "rebate_value": "0.00",
48
+ "create_account_id": 6,
49
+ "update_account_id": 14,
50
+ "source_product_id": 0,
51
+ "start_at": null,
52
+ "created_at": "2024-01-25 15:51:12",
53
+ "updated_at": "2024-09-16 13:21:32",
54
+ "deleted_at": null,
55
+ "seo": {
56
+ "title": "\u670D\u52A130\u5206\u949F",
57
+ "is_set_title": 0,
58
+ "description": "",
59
+ "is_set_desc": 0,
60
+ "keywords": "\u670D\u52A1\u7C7B\u522B,aike-ccc,\u6D4B\u8BD5\u5B9A\u91D1\u5546\u54C1\u7EC4-\u670D\u52A1\u5546\u54C1,\u6D4B\u8BD5\u7C7B\u522B\u540D\u79F0,\u4E0D\u7B49\u4E8E",
61
+ "is_set_keywords": 0
62
+ },
63
+ "service_times": 30,
64
+ "product_resource": {
65
+ "resources": [{
66
+ "id": 214,
67
+ "title": "\u8D44\u6E90",
68
+ "status": 1,
69
+ "code": "resources",
70
+ "created_at": "2023-08-04 15:05:33",
71
+ "updated_at": "2024-08-14 09:46:15",
72
+ "type": "multiple",
73
+ "optional_resource": [27444, 22717],
74
+ "default_resource": [21300, 21542],
75
+ "select_type": {
76
+ "type": "multiple",
77
+ "min": 3,
78
+ "max": 4
79
+ },
80
+ "resource_type_id": 214
81
+ }, {
82
+ "id": 207,
83
+ "title": "\u573A\u5730",
84
+ "status": 1,
85
+ "code": "sites",
86
+ "created_at": "2023-07-25 11:54:04",
87
+ "updated_at": "2024-09-06 10:10:09",
88
+ "type": "single",
89
+ "optional_resource": [22924],
90
+ "default_resource": [3908],
91
+ "select_type": {
92
+ "type": "single",
93
+ "min": 1,
94
+ "max": 1
95
+ },
96
+ "resource_type_id": 207
97
+ }, {
98
+ "id": 37,
99
+ "title": "\u9910\u724C",
100
+ "status": 0,
101
+ "code": "menu_list",
102
+ "created_at": "2023-02-08 14:20:24",
103
+ "updated_at": "2023-06-16 15:06:20",
104
+ "type": "single",
105
+ "optional_resource": [],
106
+ "default_resource": [],
107
+ "select_type": {
108
+ "type": "single",
109
+ "min": 1,
110
+ "max": 1
111
+ },
112
+ "resource_type_id": 37
113
+ }, {
114
+ "id": 36,
115
+ "title": "\u8425\u4E1A\u65F6\u95F4",
116
+ "status": 0,
117
+ "code": "opening_hours",
118
+ "created_at": "2023-02-08 14:20:23",
119
+ "updated_at": "2023-06-16 15:06:20",
120
+ "type": "single",
121
+ "optional_resource": [],
122
+ "default_resource": [],
123
+ "select_type": {
124
+ "type": "single",
125
+ "min": 1,
126
+ "max": 1
127
+ },
128
+ "resource_type_id": 36
129
+ }, {
130
+ "id": 35,
131
+ "title": "\u684C\u53F0",
132
+ "status": 0,
133
+ "code": "table",
134
+ "created_at": "2023-02-08 14:20:20",
135
+ "updated_at": "2023-06-16 15:06:20",
136
+ "type": "single",
137
+ "optional_resource": [],
138
+ "default_resource": [],
139
+ "select_type": {
140
+ "type": "single",
141
+ "min": 1,
142
+ "max": 1
143
+ },
144
+ "resource_type_id": 35
145
+ }, {
146
+ "id": 10,
147
+ "title": "\u53F8\u673A",
148
+ "status": 0,
149
+ "code": "therapist",
150
+ "created_at": "2022-06-11 18:00:00",
151
+ "updated_at": null,
152
+ "type": "single",
153
+ "optional_resource": [],
154
+ "default_resource": [],
155
+ "select_type": {
156
+ "type": "single",
157
+ "min": 1,
158
+ "max": 1
159
+ },
160
+ "resource_type_id": 10
161
+ }, {
162
+ "id": 6,
163
+ "title": "Party",
164
+ "status": 0,
165
+ "code": "party_room",
166
+ "created_at": "2022-06-11 18:00:00",
167
+ "updated_at": null,
168
+ "type": "single",
169
+ "optional_resource": [],
170
+ "default_resource": [],
171
+ "select_type": {
172
+ "type": "single",
173
+ "min": 1,
174
+ "max": 1
175
+ },
176
+ "resource_type_id": 6
177
+ }]
178
+ },
179
+ "capacity": {
180
+ "type": "custom",
181
+ "custom": [{
182
+ "name": {
183
+ "en": "",
184
+ "zh-CN": "",
185
+ "zh-HK": "",
186
+ "original": "成人"
187
+ },
188
+ id: 1,
189
+ "min": 1,
190
+ "max": 10
191
+ }, {
192
+ "name": {
193
+ "en": "",
194
+ "zh-CN": "",
195
+ "zh-HK": "",
196
+ "original": "儿童"
197
+ },
198
+ id: 2,
199
+ "min": 0,
200
+ "max": 10
201
+ }],
202
+ "package": {
203
+ "product_ids": []
204
+ }
205
+ },
206
+ "is_grey": 0,
207
+ "is_eject": 0,
208
+ "share_url": "https:\/\/aa269b.mypisell-dev.cn\/product-detail?id=57736",
209
+ "token_check_msg": "",
210
+ "is_charge_tax": 1,
211
+ "media": [],
212
+ "tag": [],
213
+ "vendor": [],
214
+ "category": [{
215
+ "id": 709,
216
+ "shop_id": 9,
217
+ "parent_id": 0,
218
+ "name": "\u670D\u52A1\u7C7B\u522B",
219
+ "slug": "\u670D\u52A1\u7C7B\u522B",
220
+ "icon": "",
221
+ "status": "pending",
222
+ "last_applicable_time": 1706171833,
223
+ "sort": 1000,
224
+ "create_account_id": 6,
225
+ "update_account_id": 6,
226
+ "created_at": "2022-09-01 15:23:22",
227
+ "updated_at": "2024-01-25 16:37:13"
228
+ }],
229
+ "collection": [{
230
+ "id": 173,
231
+ "shop_id": 9,
232
+ "title": "aike-ccc",
233
+ "title_letter": "A",
234
+ "description": null,
235
+ "cover": "",
236
+ "rule_type": "and",
237
+ "rule": [{
238
+ "class": "productPrice",
239
+ "value": 1,
240
+ "operator": "eq"
241
+ }],
242
+ "product_quantity": 412,
243
+ "type": "auto",
244
+ "order_type": "",
245
+ "disabled": 0,
246
+ "create_account_id": 41,
247
+ "update_account_id": 41,
248
+ "created_at": "2022-11-08 16:11:58",
249
+ "updated_at": "2024-09-13 13:23:10"
250
+ }, {
251
+ "id": 183,
252
+ "shop_id": 9,
253
+ "title": "\u6D4B\u8BD5\u5B9A\u91D1\u5546\u54C1\u7EC4-\u670D\u52A1\u5546\u54C1",
254
+ "title_letter": "C",
255
+ "description": "<p>12<\/p>",
256
+ "cover": "",
257
+ "rule_type": "and",
258
+ "rule": [{
259
+ "class": "extensionType",
260
+ "value": "service_product",
261
+ "operator": "eq"
262
+ }],
263
+ "product_quantity": 49,
264
+ "type": "auto",
265
+ "order_type": "",
266
+ "disabled": 0,
267
+ "create_account_id": 7,
268
+ "update_account_id": 7,
269
+ "created_at": "2023-02-06 10:09:40",
270
+ "updated_at": "2024-06-01 09:48:14"
271
+ }, {
272
+ "id": 201,
273
+ "shop_id": 9,
274
+ "title": "\u6D4B\u8BD5\u7C7B\u522B\u540D\u79F0",
275
+ "title_letter": "C",
276
+ "description": null,
277
+ "cover": "",
278
+ "rule_type": "and",
279
+ "rule": [{
280
+ "class": "category",
281
+ "value": "\u5E93\u5B58\u9884\u8B66",
282
+ "operator": "not_contain"
283
+ }],
284
+ "product_quantity": 3677,
285
+ "type": "auto",
286
+ "order_type": "",
287
+ "disabled": 0,
288
+ "create_account_id": 270,
289
+ "update_account_id": 270,
290
+ "created_at": "2023-06-08 11:35:53",
291
+ "updated_at": "2024-09-14 13:15:35"
292
+ }, {
293
+ "id": 206,
294
+ "shop_id": 9,
295
+ "title": "\u4E0D\u7B49\u4E8E",
296
+ "title_letter": "B",
297
+ "description": null,
298
+ "cover": "",
299
+ "rule_type": "and",
300
+ "rule": [{
301
+ "class": "categoryId",
302
+ "value": 904,
303
+ "operator": "neq"
304
+ }, {
305
+ "class": "categoryId",
306
+ "value": 474,
307
+ "operator": "neq"
308
+ }, {
309
+ "class": "categoryId",
310
+ "value": 773,
311
+ "operator": "neq"
312
+ }],
313
+ "product_quantity": 3454,
314
+ "type": "auto",
315
+ "order_type": "",
316
+ "disabled": 0,
317
+ "create_account_id": 6,
318
+ "update_account_id": 6,
319
+ "created_at": "2023-07-10 10:56:56",
320
+ "updated_at": "2024-09-14 13:15:35"
321
+ }],
322
+ "variant_group": [],
323
+ "option_group": [],
324
+ "variant": [],
325
+ "shop": {
326
+ "id": 9,
327
+ "name": "\u6D4B\u8BD5\u73AF\u5883\u5E97\u94FA&",
328
+ "default_domain": "aa269b.mypisell-dev.cn",
329
+ "default_url": "https:\/\/aa269b.mypisell-dev.cn"
330
+ },
331
+ "bundle_group": []
332
+ };
@@ -0,0 +1,71 @@
1
+ import dayjs from 'dayjs';
2
+ export declare const getUsableTime: (cacheItem: any) => any;
3
+ export declare const getDurationProps: ({ cacheItem, useStartTime, currentResource, slice, }: any) => {
4
+ startDate: dayjs.Dayjs;
5
+ usableTime: any;
6
+ duration: string | number | {
7
+ type: string;
8
+ value: number;
9
+ };
10
+ locale: string;
11
+ slice: any;
12
+ selectProps: {
13
+ size: string;
14
+ };
15
+ };
16
+ /**
17
+ * @title: 灵活时长选项
18
+ * @description:
19
+ * @param {*} useMemo
20
+ * @return {*}
21
+ * @Author: zhiwei.Wang
22
+ * @Date: 2024-02-23 10:10
23
+ */
24
+ export declare const getFlexibleOption: ({ cacheItem, useStartTime, currentResource, slice, durationProps, }: any) => {
25
+ label: any;
26
+ value: any;
27
+ } | null;
28
+ export declare const getTimeSlices: ({ state }: any) => {
29
+ timeSlices: {
30
+ label: string;
31
+ value: string;
32
+ }[];
33
+ };
34
+ /**
35
+ * @title: 时间切片
36
+ * @description:
37
+ * @return {*}
38
+ * @Author: zhiwei.Wang
39
+ * @Date: 2024-01-09 13:37
40
+ */
41
+ export declare const getTimeObj: ({ cacheItem, useStartTime, currentResource, state, useDuration, durationProps, }: any) => {
42
+ timeSlices: {
43
+ label: string;
44
+ value: string;
45
+ }[];
46
+ durationSlicesBasedOnTime: {
47
+ label: string;
48
+ value: number;
49
+ }[];
50
+ };
51
+ /**
52
+ * @title: 获取资源列表
53
+ * @description:
54
+ * @return {*}
55
+ * @Author: zhiwei.Wang
56
+ * @Date: 2024-01-09 13:38
57
+ */
58
+ export declare const formatResources: ({ cacheItem, resourcesOrigin }: any) => {
59
+ list: any[];
60
+ maps: any;
61
+ };
62
+ export declare const setDefaultResource: ({ cacheItem, resources }: any) => any;
63
+ /**
64
+ * @title: 预生成服务的 extend
65
+ * @description:
66
+ * @param {any} param1
67
+ * @return {*}
68
+ * @Author: zhiwei.Wang
69
+ * @Date: 2024-06-01 13:25
70
+ */
71
+ export declare const getProductExtend: ({ cacheItem, state }: any) => any;