@pisell/private-materials 6.4.42 → 6.4.43
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 +146 -146
- 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 +8 -8
- package/es/components/booking/components/actionButtons/index.js +37 -42
- package/es/components/booking/components/actionButtons/index.less +0 -28
- package/es/components/booking/components/footer/amount.d.ts +3 -3
- package/es/components/booking/components/footer/amount.js +13 -2
- package/es/components/booking/components/footer/index.js +168 -68
- package/es/components/booking/components/footer/utils.js +62 -33
- package/es/components/booking/info/model.js +5 -0
- package/es/components/booking/info/service/addService/index.js +2 -1
- package/es/components/booking/info2/index.js +42 -2
- package/es/components/booking/info2/service/addService/index.js +2 -1
- package/es/components/booking/info2/service/editService/index.js +12 -4
- package/es/components/checkout/PaymentModal.d.ts +2 -0
- package/es/components/checkout/PaymentModal.js +395 -240
- package/es/components/checkout/components/AdditionalModule/index.less +1 -1
- package/es/components/checkout/components/AmountSummary/index.js +161 -54
- package/es/components/checkout/components/CashPaymentModule/index.d.ts +5 -3
- package/es/components/checkout/components/CashPaymentModule/index.js +114 -137
- package/es/components/checkout/components/CashPaymentModule/index.less +200 -176
- package/es/components/checkout/components/PaymentDetailModal/index.js +2 -2
- package/es/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.d.ts +29 -0
- package/es/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.js +210 -0
- package/es/components/checkout/components/PaymentOptionsModule/index.d.ts +2 -4
- package/es/components/checkout/components/PaymentOptionsModule/index.js +12 -114
- package/es/components/checkout/components/PaymentOptionsModule/index.less +29 -0
- package/es/components/checkout/components/SavePayLaterHandler/index.js +1 -1
- package/es/components/checkout/components/SearchAndClientModule/index.js +40 -39
- package/es/components/checkout/components/WalletPassModule/index.js +3 -2
- package/es/components/checkout/components/WalletPassModule/utils.js +6 -1
- package/es/components/checkout/hooks/useWalletPass.d.ts +1 -1
- package/es/components/checkout/hooks/useWalletPass.js +2 -0
- package/es/components/checkout/index.less +1 -1
- package/es/components/checkout/locales.d.ts +33 -0
- package/es/components/checkout/locales.js +39 -3
- package/es/components/checkout/types.d.ts +1 -0
- package/es/components/eftposPay/hooks.d.ts +1 -1
- package/es/components/eftposPay/store/index.d.ts +2 -2
- package/es/components/shoppingCart/components/Cart/Product.js +143 -71
- package/es/components/shoppingCart/components/Cart/index.js +1 -1
- package/es/components/shoppingCart/components/Cart/index.less +31 -0
- package/es/components/shoppingCart/locales.d.ts +3 -0
- package/es/components/shoppingCart/locales.js +12 -3
- package/es/components/ticketBooking/utils/index.js +2 -1
- package/es/pro/pisellPriceKeyboardPopover/PisellPriceKeyboardPopover.js +1 -1
- package/es/pro/pisellSimplePriceKeyboardPopover/PisellPriceKeyboardPopover.d.ts +5 -0
- package/es/pro/pisellSimplePriceKeyboardPopover/PisellPriceKeyboardPopover.js +148 -0
- package/es/pro/pisellSimplePriceKeyboardPopover/PisellPriceKeyboardPopover.less +23 -0
- package/es/pro/pisellSimplePriceKeyboardPopover/index.d.ts +2 -0
- package/es/pro/pisellSimplePriceKeyboardPopover/index.js +1 -0
- package/es/pro/pisellSimplePriceKeyboardPopover/types.d.ts +33 -0
- package/es/pro/pisellSimplePriceKeyboardPopover/types.js +1 -0
- package/es/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.d.ts +4 -0
- package/es/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.js +310 -0
- package/es/pro/priceKeyboard/components/cashKeyboard/CashKeyboardSimple.d.ts +13 -0
- package/es/pro/priceKeyboard/components/cashKeyboard/CashKeyboardSimple.js +349 -0
- package/es/pro/priceKeyboard/components/cashKeyboard/index.d.ts +11 -0
- package/es/pro/priceKeyboard/components/cashKeyboard/index.js +49 -0
- package/es/pro/priceKeyboard/components/cashKeyboard/index.less +103 -0
- package/es/pro/priceKeyboard/components/cashKeyboard/locales.d.ts +39 -0
- package/es/pro/priceKeyboard/components/cashKeyboard/locales.js +41 -0
- package/es/pro/priceKeyboard/components/cashKeyboard/types.d.ts +97 -0
- package/es/pro/priceKeyboard/components/cashKeyboard/types.js +1 -0
- package/es/pro/priceKeyboard/components/discountKeyboard/index.d.ts +22 -0
- package/es/pro/priceKeyboard/components/discountKeyboard/index.js +442 -0
- package/es/pro/priceKeyboard/components/discountKeyboard/index.less +47 -0
- package/es/pro/priceKeyboard/components/discountKeyboard/locales.d.ts +42 -0
- package/es/pro/priceKeyboard/components/discountKeyboard/locales.js +44 -0
- package/es/pro/priceKeyboard/components/discountKeyboard/types.d.ts +17 -0
- package/es/pro/priceKeyboard/components/discountKeyboard/types.js +1 -0
- package/es/pro/priceKeyboard/components/paymentKeyboard/index.d.ts +11 -0
- package/es/pro/priceKeyboard/components/paymentKeyboard/index.js +444 -0
- package/es/pro/priceKeyboard/components/paymentKeyboard/index.less +64 -0
- package/es/pro/priceKeyboard/components/paymentKeyboard/locales.d.ts +45 -0
- package/es/pro/priceKeyboard/components/paymentKeyboard/locales.js +47 -0
- package/es/pro/priceKeyboard/components/paymentKeyboard/types.d.ts +39 -0
- package/es/pro/priceKeyboard/components/paymentKeyboard/types.js +1 -0
- package/es/pro/priceKeyboard/components/shortcuts/index.d.ts +17 -0
- package/es/pro/priceKeyboard/components/shortcuts/index.js +47 -0
- package/es/pro/priceKeyboard/components/shortcuts/index.less +39 -0
- package/es/pro/priceKeyboard/hooks/keyActions.d.ts +28 -0
- package/es/pro/priceKeyboard/hooks/keyActions.js +252 -0
- package/es/pro/priceKeyboard/hooks/rightItems.d.ts +27 -0
- package/es/pro/priceKeyboard/hooks/rightItems.js +50 -0
- package/es/pro/priceKeyboard/index.d.ts +3 -0
- package/es/pro/priceKeyboard/index.js +3 -0
- package/es/pro/priceKeyboard/index.less +215 -0
- package/es/pro/priceKeyboard/utils.d.ts +31 -0
- package/es/pro/priceKeyboard/utils.js +51 -0
- package/es/pro/skuDetailModal/index.js +19 -16
- package/lib/components/booking/components/actionButtons/index.js +31 -28
- package/lib/components/booking/components/actionButtons/index.less +0 -28
- package/lib/components/booking/components/footer/amount.d.ts +3 -3
- package/lib/components/booking/components/footer/amount.js +10 -4
- package/lib/components/booking/components/footer/index.js +107 -40
- package/lib/components/booking/components/footer/utils.js +35 -7
- package/lib/components/booking/info/model.js +3 -0
- package/lib/components/booking/info/service/addService/index.js +2 -1
- package/lib/components/booking/info2/index.js +18 -1
- package/lib/components/booking/info2/service/addService/index.js +2 -1
- package/lib/components/booking/info2/service/editService/index.js +12 -4
- package/lib/components/checkout/PaymentModal.d.ts +2 -0
- package/lib/components/checkout/PaymentModal.js +152 -73
- package/lib/components/checkout/components/AdditionalModule/index.less +1 -1
- package/lib/components/checkout/components/AmountSummary/index.js +114 -40
- package/lib/components/checkout/components/CashPaymentModule/index.d.ts +5 -3
- package/lib/components/checkout/components/CashPaymentModule/index.js +103 -140
- package/lib/components/checkout/components/CashPaymentModule/index.less +200 -176
- package/lib/components/checkout/components/PaymentDetailModal/index.js +2 -2
- package/lib/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.d.ts +29 -0
- package/lib/components/checkout/components/PaymentOptionsModule/PaymentMethodItem.js +172 -0
- package/lib/components/checkout/components/PaymentOptionsModule/index.d.ts +2 -4
- package/lib/components/checkout/components/PaymentOptionsModule/index.js +11 -123
- package/lib/components/checkout/components/PaymentOptionsModule/index.less +29 -0
- package/lib/components/checkout/components/SavePayLaterHandler/index.js +1 -1
- package/lib/components/checkout/components/SearchAndClientModule/index.js +3 -29
- package/lib/components/checkout/components/WalletPassModule/index.js +3 -2
- package/lib/components/checkout/components/WalletPassModule/utils.js +4 -1
- package/lib/components/checkout/hooks/useWalletPass.d.ts +1 -1
- package/lib/components/checkout/hooks/useWalletPass.js +2 -0
- package/lib/components/checkout/index.less +1 -1
- package/lib/components/checkout/locales.d.ts +33 -0
- package/lib/components/checkout/locales.js +39 -3
- package/lib/components/checkout/types.d.ts +1 -0
- package/lib/components/eftposPay/hooks.d.ts +1 -1
- package/lib/components/eftposPay/store/index.d.ts +2 -2
- package/lib/components/shoppingCart/components/Cart/Product.js +111 -51
- package/lib/components/shoppingCart/components/Cart/index.js +1 -1
- package/lib/components/shoppingCart/components/Cart/index.less +31 -0
- package/lib/components/shoppingCart/locales.d.ts +3 -0
- package/lib/components/shoppingCart/locales.js +6 -3
- package/lib/components/ticketBooking/index.js +5 -1
- package/lib/components/ticketBooking/utils/index.js +2 -1
- package/lib/pro/pisellPriceKeyboardPopover/PisellPriceKeyboardPopover.js +2 -2
- package/lib/pro/pisellSimplePriceKeyboardPopover/PisellPriceKeyboardPopover.d.ts +5 -0
- package/lib/pro/pisellSimplePriceKeyboardPopover/PisellPriceKeyboardPopover.js +144 -0
- package/lib/pro/pisellSimplePriceKeyboardPopover/PisellPriceKeyboardPopover.less +23 -0
- package/lib/pro/pisellSimplePriceKeyboardPopover/index.d.ts +2 -0
- package/lib/pro/pisellSimplePriceKeyboardPopover/index.js +35 -0
- package/lib/pro/pisellSimplePriceKeyboardPopover/types.d.ts +33 -0
- package/lib/pro/pisellSimplePriceKeyboardPopover/types.js +17 -0
- package/lib/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.d.ts +4 -0
- package/lib/pro/priceKeyboard/components/cashKeyboard/CashKeyboardIntact.js +332 -0
- package/lib/pro/priceKeyboard/components/cashKeyboard/CashKeyboardSimple.d.ts +13 -0
- package/lib/pro/priceKeyboard/components/cashKeyboard/CashKeyboardSimple.js +399 -0
- package/lib/pro/priceKeyboard/components/cashKeyboard/index.d.ts +11 -0
- package/lib/pro/priceKeyboard/components/cashKeyboard/index.js +76 -0
- package/lib/pro/priceKeyboard/components/cashKeyboard/index.less +103 -0
- package/lib/pro/priceKeyboard/components/cashKeyboard/locales.d.ts +39 -0
- package/lib/pro/priceKeyboard/components/cashKeyboard/locales.js +65 -0
- package/lib/pro/priceKeyboard/components/cashKeyboard/types.d.ts +97 -0
- package/lib/pro/priceKeyboard/components/cashKeyboard/types.js +17 -0
- package/lib/pro/priceKeyboard/components/discountKeyboard/index.d.ts +22 -0
- package/lib/pro/priceKeyboard/components/discountKeyboard/index.js +485 -0
- package/lib/pro/priceKeyboard/components/discountKeyboard/index.less +47 -0
- package/lib/pro/priceKeyboard/components/discountKeyboard/locales.d.ts +42 -0
- package/lib/pro/priceKeyboard/components/discountKeyboard/locales.js +68 -0
- package/lib/pro/priceKeyboard/components/discountKeyboard/types.d.ts +17 -0
- package/lib/pro/priceKeyboard/components/discountKeyboard/types.js +17 -0
- package/lib/pro/priceKeyboard/components/paymentKeyboard/index.d.ts +11 -0
- package/lib/pro/priceKeyboard/components/paymentKeyboard/index.js +488 -0
- package/lib/pro/priceKeyboard/components/paymentKeyboard/index.less +64 -0
- package/lib/pro/priceKeyboard/components/paymentKeyboard/locales.d.ts +45 -0
- package/lib/pro/priceKeyboard/components/paymentKeyboard/locales.js +71 -0
- package/lib/pro/priceKeyboard/components/paymentKeyboard/types.d.ts +39 -0
- package/lib/pro/priceKeyboard/components/paymentKeyboard/types.js +17 -0
- package/lib/pro/priceKeyboard/components/shortcuts/index.d.ts +17 -0
- package/lib/pro/priceKeyboard/components/shortcuts/index.js +79 -0
- package/lib/pro/priceKeyboard/components/shortcuts/index.less +39 -0
- package/lib/pro/priceKeyboard/hooks/keyActions.d.ts +28 -0
- package/lib/pro/priceKeyboard/hooks/keyActions.js +176 -0
- package/lib/pro/priceKeyboard/hooks/rightItems.d.ts +27 -0
- package/lib/pro/priceKeyboard/hooks/rightItems.js +81 -0
- package/lib/pro/priceKeyboard/index.d.ts +3 -0
- package/lib/pro/priceKeyboard/index.js +45 -0
- package/lib/pro/priceKeyboard/index.less +215 -0
- package/lib/pro/priceKeyboard/utils.d.ts +31 -0
- package/lib/pro/priceKeyboard/utils.js +75 -0
- package/lib/pro/skuDetailModal/index.js +18 -22
- package/package.json +4 -4
@@ -23,6 +23,7 @@ declare const _default: {
|
|
23
23
|
'balance.due': string;
|
24
24
|
'deposit.due': string;
|
25
25
|
'partial.paid': string;
|
26
|
+
'deposit.partial.paid': string;
|
26
27
|
'split.payment': string;
|
27
28
|
cash: string;
|
28
29
|
rounding: string;
|
@@ -78,6 +79,7 @@ declare const _default: {
|
|
78
79
|
'wallet-pass-module-disabled-modal-title': string;
|
79
80
|
'wallet-pass-module-disabled-modal-empty': string;
|
80
81
|
'wallet-pass-module-discount-partially-paid': string;
|
82
|
+
'wallet-pass-module-discount-order-free': string;
|
81
83
|
'additional.options': string;
|
82
84
|
'add.tip': string;
|
83
85
|
'service.charge': string;
|
@@ -153,6 +155,15 @@ declare const _default: {
|
|
153
155
|
'pisell2.checkout.sync-retry-hint': string;
|
154
156
|
'pisell2.checkout.tips': string;
|
155
157
|
retry: string;
|
158
|
+
'cash-payment-title': string;
|
159
|
+
'cash-payment-balance-due': string;
|
160
|
+
'cash-payment-cash-received': string;
|
161
|
+
'cash-payment-change-due': string;
|
162
|
+
'cash-payment-rounding': string;
|
163
|
+
'cash-payment-other': string;
|
164
|
+
'cash-payment-reset': string;
|
165
|
+
'cash-payment-pay': string;
|
166
|
+
'cash-payment-amount-cannot-be-zero': string;
|
156
167
|
};
|
157
168
|
'zh-CN': {
|
158
169
|
'order.total': string;
|
@@ -178,6 +189,7 @@ declare const _default: {
|
|
178
189
|
'balance.due': string;
|
179
190
|
'deposit.due': string;
|
180
191
|
'partial.paid': string;
|
192
|
+
'deposit.partial.paid': string;
|
181
193
|
'split.payment': string;
|
182
194
|
cash: string;
|
183
195
|
rounding: string;
|
@@ -233,6 +245,7 @@ declare const _default: {
|
|
233
245
|
'wallet-pass-module-disabled-modal-title': string;
|
234
246
|
'wallet-pass-module-disabled-modal-empty': string;
|
235
247
|
'wallet-pass-module-discount-partially-paid': string;
|
248
|
+
'wallet-pass-module-discount-order-free': string;
|
236
249
|
'additional.options': string;
|
237
250
|
'add.tip': string;
|
238
251
|
'service.charge': string;
|
@@ -308,6 +321,15 @@ declare const _default: {
|
|
308
321
|
'pisell2.checkout.sync-retry-hint': string;
|
309
322
|
'pisell2.checkout.tips': string;
|
310
323
|
retry: string;
|
324
|
+
'cash-payment-title': string;
|
325
|
+
'cash-payment-balance-due': string;
|
326
|
+
'cash-payment-cash-received': string;
|
327
|
+
'cash-payment-change-due': string;
|
328
|
+
'cash-payment-rounding': string;
|
329
|
+
'cash-payment-other': string;
|
330
|
+
'cash-payment-reset': string;
|
331
|
+
'cash-payment-pay': string;
|
332
|
+
'cash-payment-amount-cannot-be-zero': string;
|
311
333
|
};
|
312
334
|
'zh-HK': {
|
313
335
|
'order.total': string;
|
@@ -333,6 +355,7 @@ declare const _default: {
|
|
333
355
|
'balance.due': string;
|
334
356
|
'deposit.due': string;
|
335
357
|
'partial.paid': string;
|
358
|
+
'deposit.partial.paid': string;
|
336
359
|
'split.payment': string;
|
337
360
|
cash: string;
|
338
361
|
rounding: string;
|
@@ -394,6 +417,7 @@ declare const _default: {
|
|
394
417
|
'wallet-pass-module-disabled-modal-title': string;
|
395
418
|
'wallet-pass-module-disabled-modal-empty': string;
|
396
419
|
'wallet-pass-module-discount-partially-paid': string;
|
420
|
+
'wallet-pass-module-discount-order-free': string;
|
397
421
|
'pisell2.checkout.search-section.placeholder': string;
|
398
422
|
'pisell2.checkout.discount.percentage.off': (value: string) => string;
|
399
423
|
'pisell2.checkout.discount.fixed_amount': string;
|
@@ -463,6 +487,15 @@ declare const _default: {
|
|
463
487
|
'pisell2.checkout.sync-retry-hint': string;
|
464
488
|
'pisell2.checkout.tips': string;
|
465
489
|
retry: string;
|
490
|
+
'cash-payment-title': string;
|
491
|
+
'cash-payment-balance-due': string;
|
492
|
+
'cash-payment-cash-received': string;
|
493
|
+
'cash-payment-change-due': string;
|
494
|
+
'cash-payment-rounding': string;
|
495
|
+
'cash-payment-other': string;
|
496
|
+
'cash-payment-reset': string;
|
497
|
+
'cash-payment-pay': string;
|
498
|
+
'cash-payment-amount-cannot-be-zero': string;
|
466
499
|
};
|
467
500
|
};
|
468
501
|
export default _default;
|
@@ -27,6 +27,7 @@ export default {
|
|
27
27
|
'balance.due': 'Balance Due',
|
28
28
|
'deposit.due': 'Deposit Due',
|
29
29
|
'partial.paid': 'Partial Paid',
|
30
|
+
'deposit.partial.paid': 'Deposit Paid',
|
30
31
|
'split.payment': 'Pay\nPartially',
|
31
32
|
// Cash Payment
|
32
33
|
'cash': 'Cash',
|
@@ -98,6 +99,7 @@ export default {
|
|
98
99
|
'wallet-pass-module-disabled-modal-title': 'Unable to use',
|
99
100
|
'wallet-pass-module-disabled-modal-empty': 'No unusable cards',
|
100
101
|
'wallet-pass-module-discount-partially-paid': 'Promotion cannot be changed on partially paid orders or used wallet',
|
102
|
+
'wallet-pass-module-discount-order-free': 'The order total is free, can not use wallet',
|
101
103
|
// Additional Module
|
102
104
|
'additional.options': 'Additional Options',
|
103
105
|
'add.tip': 'Add Tip',
|
@@ -198,7 +200,17 @@ export default {
|
|
198
200
|
'pisell2.checkout.order-sync-failed': 'Order sync failed, please check your network',
|
199
201
|
'pisell2.checkout.sync-retry-hint': 'Network error, please click the retry button to resync the order',
|
200
202
|
'pisell2.checkout.tips': 'Tips',
|
201
|
-
'retry': 'Retry'
|
203
|
+
'retry': 'Retry',
|
204
|
+
// Cash Payment Module
|
205
|
+
'cash-payment-title': 'Cash Payment',
|
206
|
+
'cash-payment-balance-due': 'Balance Due',
|
207
|
+
'cash-payment-cash-received': 'Cash Received',
|
208
|
+
'cash-payment-change-due': 'Change Due',
|
209
|
+
'cash-payment-rounding': 'Rounding',
|
210
|
+
'cash-payment-other': 'Other',
|
211
|
+
'cash-payment-reset': 'Reset',
|
212
|
+
'cash-payment-pay': 'Pay',
|
213
|
+
'cash-payment-amount-cannot-be-zero': 'The amount cannot be 0'
|
202
214
|
},
|
203
215
|
'zh-CN': {
|
204
216
|
// Order and Payment
|
@@ -228,6 +240,7 @@ export default {
|
|
228
240
|
'balance.due': '应付金额',
|
229
241
|
'deposit.due': '定金待支付金额',
|
230
242
|
'partial.paid': '部分支付',
|
243
|
+
'deposit.partial.paid': '定金部分支付',
|
231
244
|
'split.payment': '部分付款',
|
232
245
|
// Cash Payment
|
233
246
|
'cash': '现金',
|
@@ -299,6 +312,7 @@ export default {
|
|
299
312
|
'wallet-pass-module-disabled-modal-title': '无法使用的卡券',
|
300
313
|
'wallet-pass-module-disabled-modal-empty': '暂无不可用卡券',
|
301
314
|
'wallet-pass-module-discount-partially-paid': '部分付款或已使用钱包的订单不可修改促销',
|
315
|
+
'wallet-pass-module-discount-order-free': '订单金额为0,不可使用折扣卡或商品券',
|
302
316
|
// Additional Module
|
303
317
|
'additional.options': '附加选项',
|
304
318
|
'add.tip': '添加小费',
|
@@ -402,7 +416,17 @@ export default {
|
|
402
416
|
'pisell2.checkout.order-sync-failed': '订单同步失败,请检查网络',
|
403
417
|
'pisell2.checkout.sync-retry-hint': '网络异常,请点击重试按钮重新同步订单',
|
404
418
|
'pisell2.checkout.tips': '提示',
|
405
|
-
'retry': '重试'
|
419
|
+
'retry': '重试',
|
420
|
+
// 现金支付模块
|
421
|
+
'cash-payment-title': '现金支付',
|
422
|
+
'cash-payment-balance-due': '应付金额',
|
423
|
+
'cash-payment-cash-received': '实收金额',
|
424
|
+
'cash-payment-change-due': '找零金额',
|
425
|
+
'cash-payment-rounding': '抹零',
|
426
|
+
'cash-payment-other': '其他',
|
427
|
+
'cash-payment-reset': '重置',
|
428
|
+
'cash-payment-pay': '支付',
|
429
|
+
'cash-payment-amount-cannot-be-zero': '金额不能为0'
|
406
430
|
},
|
407
431
|
'zh-HK': {
|
408
432
|
// Order and Payment
|
@@ -432,6 +456,7 @@ export default {
|
|
432
456
|
'balance.due': '應付金額',
|
433
457
|
'deposit.due': '定金待支付金額',
|
434
458
|
'partial.paid': '部分支付',
|
459
|
+
'deposit.partial.paid': '定金部分支付',
|
435
460
|
'split.payment': '部分付款',
|
436
461
|
// Cash Payment
|
437
462
|
'cash': '現金',
|
@@ -510,6 +535,7 @@ export default {
|
|
510
535
|
'wallet-pass-module-disabled-modal-title': '無法使用的卡券',
|
511
536
|
'wallet-pass-module-disabled-modal-empty': '暫無不可用卡券',
|
512
537
|
'wallet-pass-module-discount-partially-paid': '部分付款或已使用錢包的訂單不可修改促銷',
|
538
|
+
'wallet-pass-module-discount-order-free': '訂單金額為0,不可使用折扣卡或商品券',
|
513
539
|
// search section
|
514
540
|
'pisell2.checkout.search-section.placeholder': '錢包碼 / 短碼',
|
515
541
|
// discount formatting
|
@@ -606,6 +632,16 @@ export default {
|
|
606
632
|
'pisell2.checkout.order-sync-failed': '訂單同步失敗,請檢查網絡',
|
607
633
|
'pisell2.checkout.sync-retry-hint': '網絡異常,請點擊重試按鈕重新同步訂單',
|
608
634
|
'pisell2.checkout.tips': '提示',
|
609
|
-
'retry': '重試'
|
635
|
+
'retry': '重試',
|
636
|
+
// 現金支付模組
|
637
|
+
'cash-payment-title': '現金支付',
|
638
|
+
'cash-payment-balance-due': '應付金額',
|
639
|
+
'cash-payment-cash-received': '實收金額',
|
640
|
+
'cash-payment-change-due': '找零金額',
|
641
|
+
'cash-payment-rounding': '抹零',
|
642
|
+
'cash-payment-other': '其他',
|
643
|
+
'cash-payment-reset': '重置',
|
644
|
+
'cash-payment-pay': '支付',
|
645
|
+
'cash-payment-amount-cannot-be-zero': '金額不能為0'
|
610
646
|
}
|
611
647
|
};
|
@@ -19,7 +19,7 @@ export declare const useStoreRef: <T extends {
|
|
19
19
|
readonly netRef: React.MutableRefObject<boolean | undefined>;
|
20
20
|
readonly symbolRef: React.MutableRefObject<string>;
|
21
21
|
readonly amountRef: React.MutableRefObject<string | number>;
|
22
|
-
readonly eftposRef: React.MutableRefObject<"stripe" | "
|
22
|
+
readonly eftposRef: React.MutableRefObject<"stripe" | "tyro" | "windcave" | "payo" | "linkly">;
|
23
23
|
readonly clientRef: React.MutableRefObject<ClientEnum>;
|
24
24
|
readonly dataRef: React.MutableRefObject<import("./store").State>;
|
25
25
|
};
|
@@ -297,8 +297,8 @@ export declare const backUpFree: (payload: Partial<State>) => {
|
|
297
297
|
amount?: string | number | undefined;
|
298
298
|
mode?: "pay" | "refund" | "fullPay" | "query" | undefined;
|
299
299
|
order_id?: string | number | undefined;
|
300
|
-
eftpos?: "stripe" | "
|
301
|
-
action?: "
|
300
|
+
eftpos?: "stripe" | "tyro" | "windcave" | "payo" | "linkly" | undefined;
|
301
|
+
action?: "amount" | "pay" | "deviceList" | undefined;
|
302
302
|
key?: number | undefined;
|
303
303
|
step?: number | undefined;
|
304
304
|
title?: string | undefined;
|
@@ -1,6 +1,12 @@
|
|
1
1
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
2
|
-
|
3
|
-
|
2
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
3
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
4
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
5
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
6
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
7
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
8
|
+
import React, { useMemo, useState } from 'react';
|
9
|
+
import { ProductCard, Iconfont } from '@pisell/materials';
|
4
10
|
// import ProductCard from '../../../../../../materials/src/components/productCard';
|
5
11
|
import useClearCart from "../../hooks/useClearCart";
|
6
12
|
import { useContext } from "../../hooks/useContext";
|
@@ -8,6 +14,9 @@ import useAddService from "../../hooks/useAddService";
|
|
8
14
|
import { useMemoizedFn } from 'ahooks';
|
9
15
|
import { isNormalProductByDurationSchedule } from "../../../booking/info/service2/utils";
|
10
16
|
import PisellNumberSelector from "../../../../pro/pisellNumberSelector";
|
17
|
+
import { formatAmount } from "@pisell/utils";
|
18
|
+
import { locales } from '@pisell/utils';
|
19
|
+
import Decimal from 'decimal.js';
|
11
20
|
var Product = function Product(props) {
|
12
21
|
var id = props.id,
|
13
22
|
lists = props.lists,
|
@@ -32,6 +41,12 @@ var Product = function Product(props) {
|
|
32
41
|
productCardStyleConfig = _state$productCardSty === void 0 ? {} : _state$productCardSty;
|
33
42
|
var clearCart = useClearCart(id);
|
34
43
|
|
44
|
+
// 控制编辑区域展开收起状态
|
45
|
+
var _useState = useState(true),
|
46
|
+
_useState2 = _slicedToArray(_useState, 2),
|
47
|
+
isEditExpanded = _useState2[0],
|
48
|
+
setIsEditExpanded = _useState2[1];
|
49
|
+
|
35
50
|
/**
|
36
51
|
* @title: 更新商品数据
|
37
52
|
* @description:
|
@@ -44,6 +59,12 @@ var Product = function Product(props) {
|
|
44
59
|
if (disabledEdit && !(other !== null && other !== void 0 && other.disabled)) return;
|
45
60
|
onChange(item, type, other);
|
46
61
|
});
|
62
|
+
|
63
|
+
// 切换编辑区域展开收起状态
|
64
|
+
var toggleEditExpanded = useMemoizedFn(function (e) {
|
65
|
+
e === null || e === void 0 || e.preventDefault();
|
66
|
+
setIsEditExpanded(!isEditExpanded);
|
67
|
+
});
|
47
68
|
var productParams = useMemo(function () {
|
48
69
|
return {
|
49
70
|
isShowNote: isShowNote,
|
@@ -66,78 +87,129 @@ var Product = function Product(props) {
|
|
66
87
|
disabledEdit: true
|
67
88
|
};
|
68
89
|
});
|
90
|
+
|
91
|
+
// 预先根据是否处于编辑态切分列表,避免多次 filter 计算
|
92
|
+
var editItems = useMemo(function () {
|
93
|
+
return (lists || []).filter(function (item) {
|
94
|
+
var _item$_origin;
|
95
|
+
return item === null || item === void 0 || (_item$_origin = item._origin) === null || _item$_origin === void 0 ? void 0 : _item$_origin.edit;
|
96
|
+
});
|
97
|
+
}, [lists]);
|
98
|
+
var normalItems = useMemo(function () {
|
99
|
+
return (lists || []).filter(function (item) {
|
100
|
+
var _item$_origin2;
|
101
|
+
return !(item !== null && item !== void 0 && (_item$_origin2 = item._origin) !== null && _item$_origin2 !== void 0 && _item$_origin2.edit);
|
102
|
+
});
|
103
|
+
}, [lists]);
|
104
|
+
var editTotal = useMemo(function () {
|
105
|
+
var total = editItems.reduce(function (total, item) {
|
106
|
+
var itemTotal = new Decimal((item === null || item === void 0 ? void 0 : item.total) || 0);
|
107
|
+
return total.add(itemTotal);
|
108
|
+
}, new Decimal(0));
|
109
|
+
return formatAmount(total.toNumber(), 2, (state === null || state === void 0 ? void 0 : state.amountSymbol) || '$');
|
110
|
+
}, [editItems]);
|
111
|
+
|
112
|
+
// 统一渲染单个商品卡片,去重映射逻辑
|
113
|
+
var renderProductItem = useMemoizedFn(function (item) {
|
114
|
+
var Comp = ProductCard;
|
115
|
+
var isRetail;
|
116
|
+
if (state.scenario === 'booking2') {
|
117
|
+
isRetail = isNormalProductByDurationSchedule(item === null || item === void 0 ? void 0 : item._origin);
|
118
|
+
Comp = ProductCard.V2;
|
119
|
+
}
|
120
|
+
return /*#__PURE__*/React.createElement(Comp, _extends({
|
121
|
+
type: isRetail ? 'a2' : 'a5',
|
122
|
+
rightActions: [{
|
123
|
+
key: 'update_number',
|
124
|
+
text: /*#__PURE__*/React.createElement(PisellNumberSelector, {
|
125
|
+
enablePriceAdjust: true,
|
126
|
+
min: 1,
|
127
|
+
className: "pisell-sku-card__pisell-number-setter",
|
128
|
+
value: item === null || item === void 0 ? void 0 : item.num,
|
129
|
+
onChange: function onChange(value) {
|
130
|
+
if (value < 1) {
|
131
|
+
handleChange(item, 'num', {
|
132
|
+
num: 1
|
133
|
+
});
|
134
|
+
} else {
|
135
|
+
handleChange(item, 'num', {
|
136
|
+
num: value
|
137
|
+
});
|
138
|
+
}
|
139
|
+
}
|
140
|
+
}),
|
141
|
+
color: '#667085'
|
142
|
+
}],
|
143
|
+
escapeDom: ".pisell-number-selector-popover",
|
144
|
+
key: item._id,
|
145
|
+
dataSource: item,
|
146
|
+
onAction: function onAction(e) {
|
147
|
+
return _onAction === null || _onAction === void 0 ? void 0 : _onAction(e);
|
148
|
+
},
|
149
|
+
onDelete: function onDelete(e) {
|
150
|
+
return handleChange(e, 'delete', item);
|
151
|
+
},
|
152
|
+
onNote: function onNote(e) {
|
153
|
+
return handleChange(e, 'note', {
|
154
|
+
note: e.note
|
155
|
+
});
|
156
|
+
},
|
157
|
+
onLike: function onLike(e) {
|
158
|
+
return handleChange(e, 'like', {
|
159
|
+
like_status: e.like_status
|
160
|
+
});
|
161
|
+
},
|
162
|
+
onEditProduct: function onEditProduct(e) {
|
163
|
+
return handleChange === null || handleChange === void 0 ? void 0 : handleChange(e, 'edit_product');
|
164
|
+
},
|
165
|
+
onCard: function onCard(e) {
|
166
|
+
return handleChange === null || handleChange === void 0 ? void 0 : handleChange(e, 'view');
|
167
|
+
},
|
168
|
+
onChangeResource: function onChangeResource(e) {
|
169
|
+
return handleChange(item, 'change_resource', e);
|
170
|
+
},
|
171
|
+
onChangeHolder: function onChangeHolder(e) {
|
172
|
+
return handleChange(item, 'change_holder', e);
|
173
|
+
},
|
174
|
+
onAddHolder: function onAddHolder(e) {
|
175
|
+
return handleChange(item, 'add_holder', e);
|
176
|
+
}
|
177
|
+
}, productParams, getProductCardStyleProps(isRetail ? 'retail' : 'appointment'), {
|
178
|
+
scenario: state.scenario
|
179
|
+
}));
|
180
|
+
});
|
69
181
|
return useMemo(function () {
|
70
|
-
console.log('render cart');
|
182
|
+
console.log('render cart', lists);
|
71
183
|
return /*#__PURE__*/React.createElement("div", {
|
72
184
|
className: "pisell-lowcode__shopping-cart-content"
|
73
|
-
}, clearCart,
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
185
|
+
}, clearCart, editItems.length > 0 && /*#__PURE__*/React.createElement("div", {
|
186
|
+
className: "pisell-lowcode__shopping-cart-edit"
|
187
|
+
}, /*#__PURE__*/React.createElement("div", {
|
188
|
+
className: "pisell-lowcode__shopping-cart-edit-header",
|
189
|
+
onClick: toggleEditExpanded,
|
190
|
+
style: {
|
191
|
+
cursor: 'pointer'
|
79
192
|
}
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
color: '#667085'
|
102
|
-
}],
|
103
|
-
escapeDom: ".pisell-number-selector-popover",
|
104
|
-
key: item._id,
|
105
|
-
dataSource: item,
|
106
|
-
onAction: function onAction(e) {
|
107
|
-
return _onAction === null || _onAction === void 0 ? void 0 : _onAction(e);
|
108
|
-
},
|
109
|
-
onDelete: function onDelete(e) {
|
110
|
-
return handleChange(e, 'delete', item);
|
111
|
-
},
|
112
|
-
onNote: function onNote(e) {
|
113
|
-
return handleChange(e, 'note', {
|
114
|
-
note: e.note
|
115
|
-
});
|
116
|
-
},
|
117
|
-
onLike: function onLike(e) {
|
118
|
-
return handleChange(e, 'like', {
|
119
|
-
like_status: e.like_status
|
120
|
-
});
|
121
|
-
},
|
122
|
-
onEditProduct: function onEditProduct(e) {
|
123
|
-
return handleChange === null || handleChange === void 0 ? void 0 : handleChange(e, 'edit_product');
|
124
|
-
},
|
125
|
-
onCard: function onCard(e) {
|
126
|
-
return handleChange === null || handleChange === void 0 ? void 0 : handleChange(e, 'view');
|
127
|
-
},
|
128
|
-
onChangeResource: function onChangeResource(e) {
|
129
|
-
return handleChange(item, 'change_resource', e);
|
130
|
-
},
|
131
|
-
onChangeHolder: function onChangeHolder(e) {
|
132
|
-
return handleChange(item, 'change_holder', e);
|
133
|
-
},
|
134
|
-
onAddHolder: function onAddHolder(e) {
|
135
|
-
return handleChange(item, 'add_holder', e);
|
136
|
-
}
|
137
|
-
}, productParams, getProductCardStyleProps(isRetail ? 'retail' : 'appointment'), {
|
138
|
-
scenario: state.scenario
|
139
|
-
}));
|
140
|
-
}), !hideAddBtn && platform !== 'h5' && isAdd ? useAddService(id, 'more') : null);
|
141
|
-
}, [clearCart, lists, productParams, hideAddBtn, isAdd, platform]);
|
193
|
+
}, /*#__PURE__*/React.createElement("div", {
|
194
|
+
className: "pisell-lowcode__shopping-cart-edit-header-title"
|
195
|
+
}, locales.getText('pisell2.text.shopping-cart.save.items')(editItems.length)), /*#__PURE__*/React.createElement("div", {
|
196
|
+
className: "pisell-lowcode__shopping-cart-edit-header-summary"
|
197
|
+
}, editTotal), /*#__PURE__*/React.createElement("div", {
|
198
|
+
className: "pisell-lowcode__shopping-cart-edit-header-switch"
|
199
|
+
}, /*#__PURE__*/React.createElement(Iconfont, {
|
200
|
+
type: "pisell2-chevron-down",
|
201
|
+
style: {
|
202
|
+
transform: isEditExpanded ? 'rotate(180deg)' : 'rotate(0deg)',
|
203
|
+
transition: 'transform 0.3s ease'
|
204
|
+
}
|
205
|
+
}))), /*#__PURE__*/React.createElement("div", {
|
206
|
+
className: "pisell-lowcode__shopping-cart-edit-content",
|
207
|
+
style: {
|
208
|
+
maxHeight: isEditExpanded ? 'unset' : '0',
|
209
|
+
overflow: 'hidden',
|
210
|
+
transition: 'max-height 0.3s ease'
|
211
|
+
}
|
212
|
+
}, editItems.map(renderProductItem))), normalItems.map(renderProductItem), !hideAddBtn && platform !== 'h5' && isAdd ? useAddService(id, 'more') : null);
|
213
|
+
}, [clearCart, editItems, normalItems, productParams, hideAddBtn, isAdd, platform, isEditExpanded]);
|
142
214
|
};
|
143
215
|
export default Product;
|
@@ -52,7 +52,7 @@ var Cart = function Cart() {
|
|
52
52
|
});
|
53
53
|
}, [carts, platform]);
|
54
54
|
return useMemo(function () {
|
55
|
-
console.log('render cart 22222');
|
55
|
+
console.log('render cart 22222', state.prodcuts);
|
56
56
|
return /*#__PURE__*/React.createElement("div", {
|
57
57
|
className: classNames('pisell-lowcode__shopping-cart')
|
58
58
|
}, isProductList ? /*#__PURE__*/React.createElement(Product, {
|
@@ -24,6 +24,37 @@
|
|
24
24
|
margin-bottom: 0;
|
25
25
|
}
|
26
26
|
}
|
27
|
+
|
28
|
+
.pisell-lowcode__shopping-cart-edit {
|
29
|
+
display: flex;
|
30
|
+
padding: 6px;
|
31
|
+
background: #EAECF0;
|
32
|
+
flex-direction: column;
|
33
|
+
color: black;
|
34
|
+
border-radius: 8px;
|
35
|
+
.pisell-lowcode__shopping-cart-edit-header {
|
36
|
+
display: flex;
|
37
|
+
font-size: 14px;
|
38
|
+
font-weight: 600;
|
39
|
+
.pisell-lowcode__shopping-cart-edit-header-title {
|
40
|
+
flex: 1;
|
41
|
+
}
|
42
|
+
.pisell-lowcode__shopping-cart-edit-header-summary {
|
43
|
+
margin-right: 4px;
|
44
|
+
}
|
45
|
+
// .pisell-lowcode__shopping-cart-edit-header-switch {
|
46
|
+
// font-size: 14px;
|
47
|
+
// font-weight: 400;
|
48
|
+
// line-height: 20px;
|
49
|
+
// }
|
50
|
+
}
|
51
|
+
.pisell-lowcode__shopping-cart-edit-content {
|
52
|
+
margin-top: 6px;
|
53
|
+
gap: 8px;
|
54
|
+
display: flex;
|
55
|
+
flex-direction: column;
|
56
|
+
}
|
57
|
+
}
|
27
58
|
|
28
59
|
.pisell-lowcode__shopping-cart-label {
|
29
60
|
color: var(--Base-Black, #000);
|
@@ -8,6 +8,7 @@ declare const _default: {
|
|
8
8
|
'pisell2.text.shopping-cart.confirm': string;
|
9
9
|
'pisell2.text.shopping-cart.cancel': string;
|
10
10
|
'pisell2.text.shopping-cart.select.holder.modal.title': string;
|
11
|
+
'pisell2.text.shopping-cart.save.items': (num: number) => string;
|
11
12
|
};
|
12
13
|
'zh-CN': {
|
13
14
|
'pisell2.text.shopping-cart.item': (num: number) => string;
|
@@ -18,6 +19,7 @@ declare const _default: {
|
|
18
19
|
'pisell2.text.shopping-cart.confirm': string;
|
19
20
|
'pisell2.text.shopping-cart.cancel': string;
|
20
21
|
'pisell2.text.shopping-cart.select.holder.modal.title': string;
|
22
|
+
'pisell2.text.shopping-cart.save.items': (num: number) => string;
|
21
23
|
};
|
22
24
|
'zh-HK': {
|
23
25
|
'pisell2.text.shopping-cart.item': (num: number) => string;
|
@@ -28,6 +30,7 @@ declare const _default: {
|
|
28
30
|
'pisell2.text.shopping-cart.confirm': string;
|
29
31
|
'pisell2.text.shopping-cart.cancel': string;
|
30
32
|
'pisell2.text.shopping-cart.select.holder.modal.title': string;
|
33
|
+
'pisell2.text.shopping-cart.save.items': (num: number) => string;
|
31
34
|
};
|
32
35
|
};
|
33
36
|
export default _default;
|
@@ -9,7 +9,10 @@ export default {
|
|
9
9
|
'pisell2.text.shopping-cart.no.selected': 'No items selected',
|
10
10
|
'pisell2.text.shopping-cart.confirm': 'Confirm',
|
11
11
|
'pisell2.text.shopping-cart.cancel': 'Cancel',
|
12
|
-
'pisell2.text.shopping-cart.select.holder.modal.title': 'Item Assignment'
|
12
|
+
'pisell2.text.shopping-cart.select.holder.modal.title': 'Item Assignment',
|
13
|
+
'pisell2.text.shopping-cart.save.items': function pisell2TextShoppingCartSaveItems(num) {
|
14
|
+
return "".concat(num, " save ").concat(num > 1 ? 'items' : 'item');
|
15
|
+
}
|
13
16
|
},
|
14
17
|
'zh-CN': {
|
15
18
|
'pisell2.text.shopping-cart.item': function pisell2TextShoppingCartItem(num) {
|
@@ -21,7 +24,10 @@ export default {
|
|
21
24
|
'pisell2.text.shopping-cart.no.selected': '未选择任何项目',
|
22
25
|
'pisell2.text.shopping-cart.confirm': '确定',
|
23
26
|
'pisell2.text.shopping-cart.cancel': '取消',
|
24
|
-
'pisell2.text.shopping-cart.select.holder.modal.title': '商品分配'
|
27
|
+
'pisell2.text.shopping-cart.select.holder.modal.title': '商品分配',
|
28
|
+
'pisell2.text.shopping-cart.save.items': function pisell2TextShoppingCartSaveItems(num) {
|
29
|
+
return "".concat(num, " \u4E2A\u4FDD\u5B58\u5546\u54C1");
|
30
|
+
}
|
25
31
|
},
|
26
32
|
'zh-HK': {
|
27
33
|
'pisell2.text.shopping-cart.item': function pisell2TextShoppingCartItem(num) {
|
@@ -33,6 +39,9 @@ export default {
|
|
33
39
|
'pisell2.text.shopping-cart.no.selected': '未選擇任何項目',
|
34
40
|
'pisell2.text.shopping-cart.confirm': '確定',
|
35
41
|
'pisell2.text.shopping-cart.cancel': '取消',
|
36
|
-
'pisell2.text.shopping-cart.select.holder.modal.title': '商品分配'
|
42
|
+
'pisell2.text.shopping-cart.select.holder.modal.title': '商品分配',
|
43
|
+
'pisell2.text.shopping-cart.save.items': function pisell2TextShoppingCartSaveItems(num) {
|
44
|
+
return "".concat(num, " \u500B\u4FDD\u5B58\u5546\u54C1");
|
45
|
+
}
|
37
46
|
}
|
38
47
|
};
|
@@ -150,7 +150,8 @@ export var addService = function addService(list, addItem, state) {
|
|
150
150
|
var isGoodPassDiscountProduct = (item.discount_list || []).some(function (item) {
|
151
151
|
return item.type === 'good_pass';
|
152
152
|
});
|
153
|
-
|
153
|
+
var isEdit = item === null || item === void 0 ? void 0 : item.edit;
|
154
|
+
if (isSameProduct(item, addItem) && !isSetCount && !isGoodPassDiscountProduct && !isEdit) {
|
154
155
|
var _item$_extend, _addItem$_extend, _item$_extend2;
|
155
156
|
isNotSame = false;
|
156
157
|
var quantity = ((item === null || item === void 0 || (_item$_extend = item._extend) === null || _item$_extend === void 0 ? void 0 : _item$_extend.quantity) || 1) + ((addItem === null || addItem === void 0 || (_addItem$_extend = addItem._extend) === null || _addItem$_extend === void 0 ? void 0 : _addItem$_extend.quantity) || 1);
|
@@ -6,7 +6,7 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
|
|
6
6
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
7
7
|
import React, { useState, useImperativeHandle, forwardRef } from 'react';
|
8
8
|
import { Popover } from 'antd';
|
9
|
-
import
|
9
|
+
import PisellPriceKeyboard from '@pisell/materials/src/components/pisellAdjustPrice/index';
|
10
10
|
import { locales } from '@pisell/utils';
|
11
11
|
import "./PisellPriceKeyboardPopover.less";
|
12
12
|
var PisellPriceKeyboardPopover = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
@@ -0,0 +1,5 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import './PisellPriceKeyboardPopover.less';
|
3
|
+
import { PisellPriceKeyboardPopoverProps, PisellPriceKeyboardPopoverRef } from './types';
|
4
|
+
declare const PisellPriceKeyboardPopover: React.ForwardRefExoticComponent<PisellPriceKeyboardPopoverProps & React.RefAttributes<PisellPriceKeyboardPopoverRef>>;
|
5
|
+
export default PisellPriceKeyboardPopover;
|