@pisell/private-materials 3.0.13 → 3.0.14-2.gray
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 +19 -11
- package/build/lowcode/assets-dev.json +10 -2
- package/build/lowcode/assets-prod.json +19 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.js +8 -8
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +25 -14
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +20 -9
- package/es/components/booking/addons/index.d.ts +2 -2
- package/es/components/booking/addons/index.js +257 -70
- package/es/components/booking/addons/model.d.ts +2 -1
- package/es/components/booking/components/TabProduct/index.d.ts +1 -1
- package/es/components/booking/components/TabProduct/index.js +64 -61
- package/es/components/booking/components/TabProduct/productItem/index.d.ts +2 -2
- package/es/components/booking/components/TabProduct/productItem/index.js +27 -8
- package/es/components/booking/components/TabProduct/selectProductItem/index.js +21 -8
- package/es/components/booking/components/TabProduct/selectProductItem/index.less +34 -27
- package/es/components/booking/components/TabProduct/tabs/index.less +4 -1
- package/es/components/booking/components/addButton/index.d.ts +9 -8
- package/es/components/booking/components/addButton/index.js +10 -6
- package/es/components/booking/components/collapsibleList/index.d.ts +11 -0
- package/es/components/booking/components/collapsibleList/index.js +99 -0
- package/es/components/booking/components/collapsibleList/index.less +61 -0
- package/es/components/booking/components/collapsibleList/utils.d.ts +2 -0
- package/es/components/booking/components/collapsibleList/utils.js +21 -0
- package/es/components/booking/components/customSelect/index.d.ts +7 -3
- package/es/components/booking/components/customSelect/index.js +125 -52
- package/es/components/booking/components/customSelect/index.less +0 -1
- package/es/components/booking/components/drawer/index.d.ts +3 -1
- package/es/components/booking/components/drawer/index.js +8 -1
- package/es/components/booking/components/drawer/index.less +10 -3
- package/es/components/booking/components/footer/FooterMenus/index.d.ts +1 -1
- package/es/components/booking/components/footer/FooterMenus/index.js +71 -22
- package/es/components/booking/components/footer/amount.d.ts +1 -0
- package/es/components/booking/components/footer/amount.js +74 -36
- package/es/components/booking/components/footer/index.d.ts +2 -2
- package/es/components/booking/components/footer/index.js +560 -107
- package/es/components/booking/components/footer/serve.d.ts +1 -0
- package/es/components/booking/components/footer/serve.js +21 -0
- package/es/components/booking/components/footer/utils.d.ts +18 -0
- package/es/components/booking/components/footer/utils.js +118 -15
- package/es/components/booking/components/tabPane/index.less +1 -0
- package/es/components/booking/deposit/ClientItem/index.d.ts +18 -0
- package/es/components/booking/deposit/ClientItem/index.js +43 -0
- package/es/components/booking/deposit/ClientItem/index.less +37 -0
- package/es/components/booking/deposit/DepositItem/index.d.ts +25 -0
- package/es/components/booking/deposit/DepositItem/index.js +117 -0
- package/es/components/booking/deposit/DepositItem/index.less +112 -0
- package/es/components/booking/deposit/EditDepositModal/index.d.ts +9 -0
- package/es/components/booking/deposit/EditDepositModal/index.js +134 -0
- package/es/components/booking/deposit/EditDepositModal/index.less +44 -0
- package/es/components/booking/deposit/index.d.ts +3 -0
- package/es/components/booking/deposit/index.js +196 -0
- package/es/components/booking/deposit/index.less +3 -0
- package/es/components/booking/deposit/serve.d.ts +8 -0
- package/es/components/booking/deposit/serve.js +27 -0
- package/es/components/booking/forms/format.d.ts +1 -0
- package/es/components/booking/forms/format.js +14 -0
- package/es/components/booking/forms/forms.d.ts +3 -2
- package/es/components/booking/forms/forms.js +66 -60
- package/es/components/booking/forms/index.d.ts +1 -1
- package/es/components/booking/forms/index.js +153 -67
- package/es/components/booking/forms/model.d.ts +2 -1
- package/es/components/booking/forms/serve.d.ts +9 -0
- package/es/components/booking/forms/serve.js +25 -0
- package/es/components/booking/forms/single/RenderValueById.d.ts +6 -0
- package/es/components/booking/forms/single/RenderValueById.js +79 -0
- package/es/components/booking/forms/single/index.d.ts +1 -1
- package/es/components/booking/forms/single/index.js +48 -82
- package/es/components/booking/index.d.ts +1 -1
- package/es/components/booking/index.js +2 -2
- package/es/components/booking/info/addServiceVariant/index.d.ts +7 -0
- package/es/components/booking/info/addServiceVariant/index.js +33 -0
- package/es/components/booking/info/client/index.d.ts +4 -4
- package/es/components/booking/info/client/index.js +220 -116
- package/es/components/booking/info/client/serve.d.ts +2 -0
- package/es/components/booking/info/client/serve.js +51 -0
- package/es/components/booking/info/clientVariant/hooks/useClientFn.d.ts +44 -0
- package/es/components/booking/info/clientVariant/hooks/useClientFn.js +391 -0
- package/es/components/booking/info/clientVariant/index.d.ts +1 -0
- package/es/components/booking/info/clientVariant/index.js +1 -0
- package/es/components/booking/info/clientVariant/vertical/SelectDrawer.d.ts +23 -0
- package/es/components/booking/info/clientVariant/vertical/SelectDrawer.js +413 -0
- package/es/components/booking/info/clientVariant/vertical/SelectDrawer.less +86 -0
- package/es/components/booking/info/clientVariant/vertical/index.d.ts +8 -0
- package/es/components/booking/info/clientVariant/vertical/index.js +374 -0
- package/es/components/booking/info/clientVariant/vertical/index.less +101 -0
- package/es/components/booking/info/date/index.js +1 -1
- package/es/components/booking/info/date/index.less +1 -1
- package/es/components/booking/info/header/index.d.ts +2 -2
- package/es/components/booking/info/header/index.js +501 -44
- package/es/components/booking/info/header/index.less +117 -2
- package/es/components/booking/info/index.d.ts +1 -1
- package/es/components/booking/info/index.js +46 -16
- package/es/components/booking/info/index.less +9 -0
- package/es/components/booking/info/model.d.ts +3 -2
- package/es/components/booking/info/model.js +21 -12
- package/es/components/booking/info/notes/index.d.ts +3 -0
- package/es/components/booking/info/notes/index.js +87 -0
- package/es/components/booking/info/pet/index.d.ts +13 -3
- package/es/components/booking/info/pet/index.js +340 -201
- package/es/components/booking/info/pet/index.less +3 -0
- package/es/components/booking/info/service/actions/index.d.ts +6 -0
- package/es/components/booking/info/service/actions/index.js +73 -0
- package/es/components/booking/info/service/actions/index.less +9 -0
- package/es/components/booking/info/service/addService/index.d.ts +11 -3
- package/es/components/booking/info/service/addService/index.js +358 -99
- package/es/components/booking/info/service/addService/index.less +27 -1
- package/es/components/booking/info/service/addService/utils.d.ts +61 -0
- package/es/components/booking/info/service/addService/utils.js +260 -0
- package/es/components/booking/info/service/addTimeModal/index.d.ts +4 -0
- package/es/components/booking/info/service/addTimeModal/index.js +691 -0
- package/es/components/booking/info/service/addTimeModal/index.less +138 -0
- package/es/components/booking/info/service/addTimeModal/serve.d.ts +5 -0
- package/es/components/booking/info/service/addTimeModal/serve.js +50 -0
- package/es/components/booking/info/service/addTimeModal/utils.d.ts +31 -0
- package/es/components/booking/info/service/addTimeModal/utils.js +174 -0
- package/es/components/booking/info/service/editService/index.d.ts +7 -4
- package/es/components/booking/info/service/editService/index.js +495 -332
- package/es/components/booking/info/service/editService/index.less +32 -1
- package/es/components/booking/info/service/index.d.ts +4 -4
- package/es/components/booking/info/service/index.js +44 -127
- package/es/components/booking/info/service/index.less +2 -96
- package/es/components/booking/info/service/serve.d.ts +1 -0
- package/es/components/booking/info/service/serve.js +21 -0
- package/es/components/booking/info/service/serviceItem/Sales/index.d.ts +0 -0
- package/es/components/booking/info/service/serviceItem/Sales/index.js +0 -0
- package/es/components/booking/info/service/serviceItem/Sales/index.less +0 -0
- package/es/components/booking/info/service/serviceItem/index.d.ts +4 -0
- package/es/components/booking/info/service/serviceItem/index.js +85 -0
- package/es/components/booking/info/service/serviceItem/index.less +125 -0
- package/es/components/booking/info/service/serviceList/index.d.ts +6 -0
- package/es/components/booking/info/service/serviceList/index.js +109 -0
- package/es/components/booking/info/service/serviceList/index.less +0 -0
- package/es/components/booking/info/utils.d.ts +23 -0
- package/es/components/booking/info/utils.js +86 -0
- package/es/components/booking/locales.d.ts +219 -0
- package/es/components/booking/locales.js +272 -13
- package/es/components/booking/model.d.ts +25 -1
- package/es/components/booking/model.js +9 -9
- package/es/components/booking/notes/index.d.ts +1 -1
- package/es/components/booking/notes/index.js +13 -10
- package/es/components/booking/notes/model.d.ts +2 -1
- package/es/components/booking/payments/index.d.ts +1 -1
- package/es/components/booking/payments/index.js +7 -10
- package/es/components/booking/payments/model.d.ts +2 -1
- package/es/components/booking/utils.d.ts +66 -1
- package/es/components/booking/utils.js +247 -98
- package/es/components/eftpos/const.d.ts +64 -0
- package/es/components/eftpos/const.js +159 -0
- package/es/components/eftpos/device.d.ts +9 -0
- package/es/components/eftpos/device.js +34 -0
- package/es/components/eftpos/deviceList/index.d.ts +3 -0
- package/es/components/eftpos/deviceList/index.js +52 -0
- package/es/components/eftpos/form/index.d.ts +21 -0
- package/es/components/eftpos/form/index.js +96 -0
- package/es/components/eftpos/group/index.d.ts +7 -0
- package/es/components/eftpos/group/index.js +65 -0
- package/es/components/eftpos/hooks.d.ts +34 -0
- package/es/components/eftpos/hooks.js +118 -0
- package/es/components/eftpos/icon/apiKey.d.ts +5 -0
- package/es/components/eftpos/icon/apiKey.js +17 -0
- package/es/components/eftpos/icon/device.d.ts +5 -0
- package/es/components/eftpos/icon/device.js +19 -0
- package/es/components/eftpos/index.d.ts +47 -0
- package/es/components/eftpos/index.js +606 -0
- package/es/components/eftpos/index.less +206 -0
- package/es/components/eftpos/locales.d.ts +99 -0
- package/es/components/eftpos/locales.js +122 -0
- package/es/components/eftpos/log.d.ts +8 -0
- package/es/components/eftpos/log.js +85 -0
- package/es/components/eftpos/pos.d.ts +9 -0
- package/es/components/eftpos/pos.js +36 -0
- package/es/components/eftpos/surcharge/index.css +17 -0
- package/es/components/eftpos/surcharge/index.d.ts +31 -0
- package/es/components/eftpos/surcharge/index.js +195 -0
- package/es/components/eftpos/table.d.ts +21 -0
- package/es/components/eftpos/table.js +377 -0
- package/es/components/eftposPay/amount.d.ts +20 -0
- package/es/components/eftposPay/amount.js +279 -0
- package/es/components/eftposPay/component/alert/index.d.ts +6 -0
- package/es/components/eftposPay/component/alert/index.js +11 -0
- package/es/components/eftposPay/component/alert/index.less +29 -0
- package/es/components/eftposPay/component/alert/warn.d.ts +3 -0
- package/es/components/eftposPay/component/alert/warn.js +45 -0
- package/es/components/eftposPay/component/fail/failCustom.d.ts +4 -0
- package/es/components/eftposPay/component/fail/failCustom.js +144 -0
- package/es/components/eftposPay/component/fail/index.d.ts +4 -0
- package/es/components/eftposPay/component/fail/index.js +139 -0
- package/es/components/eftposPay/component/fail/network.d.ts +9 -0
- package/es/components/eftposPay/component/fail/network.js +61 -0
- package/es/components/eftposPay/component/fail/unknow.d.ts +10 -0
- package/es/components/eftposPay/component/fail/unknow.js +58 -0
- package/es/components/eftposPay/component/header/index.d.ts +10 -0
- package/es/components/eftposPay/component/header/index.js +69 -0
- package/es/components/eftposPay/component/header/index.less +35 -0
- package/es/components/eftposPay/component/header/titlebar.d.ts +13 -0
- package/es/components/eftposPay/component/header/titlebar.js +39 -0
- package/es/components/eftposPay/component/header/titlebar.less +17 -0
- package/es/components/eftposPay/component/manual/index.d.ts +10 -0
- package/es/components/eftposPay/component/manual/index.js +248 -0
- package/es/components/eftposPay/component/manual/index.less +137 -0
- package/es/components/eftposPay/component/signature/index.d.ts +9 -0
- package/es/components/eftposPay/component/signature/index.js +81 -0
- package/es/components/eftposPay/component/step/index.d.ts +12 -0
- package/es/components/eftposPay/component/step/index.js +31 -0
- package/es/components/eftposPay/component/step/step.d.ts +9 -0
- package/es/components/eftposPay/component/step/step.js +23 -0
- package/es/components/eftposPay/const.d.ts +147 -0
- package/es/components/eftposPay/const.js +50 -0
- package/es/components/eftposPay/device.d.ts +22 -0
- package/es/components/eftposPay/device.js +171 -0
- package/es/components/eftposPay/device.less +61 -0
- package/es/components/eftposPay/helper.d.ts +66 -0
- package/es/components/eftposPay/helper.js +195 -0
- package/es/components/eftposPay/hooks.d.ts +33 -0
- package/es/components/eftposPay/hooks.js +308 -0
- package/es/components/eftposPay/index.d.ts +5 -0
- package/es/components/eftposPay/index.js +279 -0
- package/es/components/eftposPay/index.less +271 -0
- package/es/components/eftposPay/locales.d.ts +309 -0
- package/es/components/eftposPay/locales.js +729 -0
- package/es/components/eftposPay/manufacturer.d.ts +6 -0
- package/es/components/eftposPay/manufacturer.js +33 -0
- package/es/components/eftposPay/pay.d.ts +20 -0
- package/es/components/eftposPay/pay.js +188 -0
- package/es/components/eftposPay/payo/config.d.ts +11 -0
- package/es/components/eftposPay/payo/config.js +224 -0
- package/es/components/eftposPay/payo/const.d.ts +26 -0
- package/es/components/eftposPay/payo/const.js +146 -0
- package/es/components/eftposPay/payo/hooks.d.ts +10 -0
- package/es/components/eftposPay/payo/hooks.js +130 -0
- package/es/components/eftposPay/payo/index.d.ts +7 -0
- package/es/components/eftposPay/payo/index.js +35 -0
- package/es/components/eftposPay/store/index.d.ts +340 -0
- package/es/components/eftposPay/store/index.js +356 -0
- package/es/components/eftposPay/store/useThunkReducer.d.ts +9 -0
- package/es/components/eftposPay/store/useThunkReducer.js +31 -0
- package/es/components/eftposPay/tyro/const.d.ts +17 -0
- package/es/components/eftposPay/tyro/const.js +122 -0
- package/es/components/eftposPay/tyro/hooks.d.ts +14 -0
- package/es/components/eftposPay/tyro/hooks.js +40 -0
- package/es/components/eftposPay/tyro/index.d.ts +9 -0
- package/es/components/eftposPay/tyro/index.js +575 -0
- package/es/components/eftposPay/var.less +9 -0
- package/es/components/eftposPay/windcave/const.d.ts +119 -0
- package/es/components/eftposPay/windcave/const.js +263 -0
- package/es/components/eftposPay/windcave/helper.d.ts +23 -0
- package/es/components/eftposPay/windcave/helper.js +447 -0
- package/es/components/eftposPay/windcave/receiptAction.d.ts +23 -0
- package/es/components/eftposPay/windcave/receiptAction.js +374 -0
- package/es/components/eftposPay/windcave/timer.d.ts +29 -0
- package/es/components/eftposPay/windcave/timer.js +198 -0
- package/es/components/eftposPay/windcave/windcave.d.ts +7 -0
- package/es/components/eftposPay/windcave/windcave.js +299 -0
- package/es/components/index.d.ts +5 -1
- package/es/components/index.js +5 -1
- package/es/components/listComponent/index.d.ts +15 -0
- package/es/components/listComponent/index.js +75 -0
- package/es/components/pay/toC/PayAmount/index.d.ts +15 -0
- package/es/components/pay/toC/PayAmount/index.js +25 -0
- package/es/components/pay/toC/PayAmount/index.less +21 -0
- package/es/components/pay/toC/PayCountdown/index.d.ts +15 -0
- package/es/components/pay/toC/PayCountdown/index.js +26 -0
- package/es/components/pay/toC/PayCountdown/index.less +22 -0
- package/es/components/pay/toC/PaymentList/index.d.ts +19 -0
- package/es/components/pay/toC/PaymentList/index.js +349 -0
- package/es/components/pay/toC/PaymentList/index.less +112 -0
- package/es/components/pay/toC/PaymentList/mock.d.ts +88 -0
- package/es/components/pay/toC/PaymentList/mock.js +128 -0
- package/es/components/pay/toC/PaymentList/payment/alipay.svg +13 -0
- package/es/components/pay/toC/PaymentList/payment/apple_pay.svg +7 -0
- package/es/components/pay/toC/PaymentList/payment/bank_deposit.svg +11 -0
- package/es/components/pay/toC/PaymentList/payment/cash.svg +8 -0
- package/es/components/pay/toC/PaymentList/payment/credit_card.svg +10 -0
- package/es/components/pay/toC/PaymentList/payment/custom.svg +10 -0
- package/es/components/pay/toC/PaymentList/payment/google_pay.svg +9 -0
- package/es/components/pay/toC/PaymentList/payment/paypal.svg +8 -0
- package/es/components/pay/toC/PaymentList/payment/stripe.svg +16 -0
- package/es/components/pay/toC/PaymentList/payment/wxpay.svg +5 -0
- package/es/components/pay/toC/PaymentList/serve.d.ts +28 -0
- package/es/components/pay/toC/PaymentList/serve.js +142 -0
- package/es/components/pay/toC/PaymentList/status.d.ts +4 -0
- package/es/components/pay/toC/PaymentList/status.js +100 -0
- package/es/components/pay/toC/PaymentList/utils.d.ts +10 -0
- package/es/components/pay/toC/PaymentList/utils.js +53 -0
- package/es/components/pay/toC/PaymentMethods/ApplePay/index.d.ts +10 -0
- package/es/components/pay/toC/PaymentMethods/ApplePay/index.js +113 -0
- package/es/components/pay/toC/PaymentMethods/ApplePay/index.less +0 -0
- package/es/components/pay/toC/PaymentMethods/BankDeposit/index.d.ts +10 -0
- package/es/components/pay/toC/PaymentMethods/BankDeposit/index.js +74 -0
- package/es/components/pay/toC/PaymentMethods/BankDeposit/index.less +0 -0
- package/es/components/pay/toC/PaymentMethods/CashManual/index.d.ts +10 -0
- package/es/components/pay/toC/PaymentMethods/CashManual/index.js +79 -0
- package/es/components/pay/toC/PaymentMethods/CashManual/index.less +0 -0
- package/es/components/pay/toC/PaymentMethods/CashManual/serve.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/CashManual/serve.js +27 -0
- package/es/components/pay/toC/PaymentMethods/CustomPayment/index.d.ts +10 -0
- package/es/components/pay/toC/PaymentMethods/CustomPayment/index.js +78 -0
- package/es/components/pay/toC/PaymentMethods/CustomPayment/index.less +0 -0
- package/es/components/pay/toC/PaymentMethods/CustomPayment/serve.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/CustomPayment/serve.js +27 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.d.ts +10 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.js +109 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.less +0 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayAliPayH5/serve.d.ts +2 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayAliPayH5/serve.js +41 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayPaypalH5/index.d.ts +10 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayPaypalH5/index.js +109 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayPaypalH5/index.less +0 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayPaypalH5/serve.d.ts +2 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayPaypalH5/serve.js +41 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayQrcode/index.d.ts +10 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayQrcode/index.js +65 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayQrcode/index.less +0 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayQrcode/serve.d.ts +2 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayQrcode/serve.js +36 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayWxH5/index.d.ts +10 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayWxH5/index.js +109 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayWxH5/index.less +0 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayWxH5/serve.d.ts +2 -0
- package/es/components/pay/toC/PaymentMethods/GlobePayWxH5/serve.js +41 -0
- package/es/components/pay/toC/PaymentMethods/GooglePay/index.d.ts +9 -0
- package/es/components/pay/toC/PaymentMethods/GooglePay/index.js +110 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/Add/index.d.ts +12 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/Add/index.js +349 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/Add/index.less +25 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/List/index.d.ts +11 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/List/index.js +375 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/List/index.less +95 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/List/serve.d.ts +5 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/List/serve.js +37 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +4 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.js +21 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.less +24 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.d.ts +10 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.js +222 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.less +0 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/index.d.ts +7 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/index.js +130 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/index.less +0 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.d.ts +61 -0
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +524 -0
- package/es/components/pay/toC/PaymentMethods/OfflinePayment/index.d.ts +10 -0
- package/es/components/pay/toC/PaymentMethods/OfflinePayment/index.js +73 -0
- package/es/components/pay/toC/PaymentMethods/OfflinePayment/index.less +0 -0
- package/es/components/pay/toC/PaymentMethods/OfflinePayment/serve.d.ts +1 -0
- package/es/components/pay/toC/PaymentMethods/OfflinePayment/serve.js +27 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +6 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.js +61 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +3 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.js +121 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.less +35 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/serve.d.ts +9 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/serve.js +33 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/DynamicSDK.d.ts +2 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/DynamicSDK.js +30 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +8 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.js +37 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +8 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.js +13 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +3 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.js +15 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.less +27 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/stripe_loading.gif +0 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +3 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.js +108 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +4 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.js +113 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.less +22 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +4 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.js +96 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/index.module.less +4 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/serve.d.ts +9 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/serve.js +33 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/index.d.ts +10 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/index.js +78 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/index.less +0 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/serve.d.ts +2 -0
- package/es/components/pay/toC/PaymentMethods/StripePay/serve.js +36 -0
- package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.d.ts +10 -0
- package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.js +108 -0
- package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.less +0 -0
- package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/serve.d.ts +2 -0
- package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/serve.js +41 -0
- package/es/components/pay/toC/PaymentMethods/SuperPayWxPayH5/index.d.ts +10 -0
- package/es/components/pay/toC/PaymentMethods/SuperPayWxPayH5/index.js +109 -0
- package/es/components/pay/toC/PaymentMethods/SuperPayWxPayH5/index.less +0 -0
- package/es/components/pay/toC/PaymentMethods/SuperPayWxPayH5/serve.d.ts +2 -0
- package/es/components/pay/toC/PaymentMethods/SuperPayWxPayH5/serve.js +41 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +15 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/List/index.js +142 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/List/index.less +20 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/MultiModeSearch/index.d.ts +6 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/MultiModeSearch/index.js +19 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +20 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/index.js +344 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/index.less +0 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +111 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/serve.js +114 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/utils.d.ts +3 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/utils.js +40 -0
- package/es/components/pay/toC/PaymentMethods/index.d.ts +9 -0
- package/es/components/pay/toC/PaymentMethods/index.js +316 -0
- package/es/components/pay/toC/WalletPassBlock/index.d.ts +14 -0
- package/es/components/pay/toC/WalletPassBlock/index.js +72 -0
- package/es/components/pay/toC/WalletPassBlock/index.less +65 -0
- package/es/components/pay/toC/index.d.ts +3 -0
- package/es/components/pay/toC/index.js +719 -0
- package/es/components/pay/toC/index.less +22 -0
- package/es/components/pay/toC/locales.d.ts +217 -0
- package/es/components/pay/toC/locales.js +216 -0
- package/es/components/pay/toC/model.d.ts +35 -0
- package/es/components/pay/toC/model.js +43 -0
- package/es/components/pay/toC/payGroup.d.ts +48 -0
- package/es/components/pay/toC/payGroup.js +105 -0
- package/es/components/pay/toC/serve.d.ts +34 -0
- package/es/components/pay/toC/serve.js +148 -0
- package/es/components/pay/toC/status.d.ts +12 -0
- package/es/components/pay/toC/status.js +116 -0
- package/es/components/pay/toC/utils.d.ts +38 -0
- package/es/components/pay/toC/utils.js +61 -0
- package/es/components/productExtension/card/index.d.ts +10 -0
- package/es/components/productExtension/card/index.js +20 -0
- package/es/components/productExtension/card/index.less +34 -0
- package/es/components/productExtension/fields/Actor/Container/index.d.ts +12 -0
- package/es/components/productExtension/fields/Actor/Container/index.js +34 -0
- package/es/components/productExtension/fields/Actor/Container/index.less +19 -0
- package/es/components/productExtension/fields/Actor/CutOffTime/index.d.ts +10 -0
- package/es/components/productExtension/fields/Actor/CutOffTime/index.js +94 -0
- package/es/components/productExtension/fields/Actor/CutOffTime/index.less +32 -0
- package/es/components/productExtension/fields/Actor/CutOffTime/status.d.ts +0 -0
- package/es/components/productExtension/fields/Actor/CutOffTime/status.js +0 -0
- package/es/components/productExtension/fields/Actor/index.d.ts +5 -0
- package/es/components/productExtension/fields/Actor/index.js +23 -0
- package/es/components/productExtension/fields/Forms/index.d.ts +10 -0
- package/es/components/productExtension/fields/Forms/index.js +184 -0
- package/es/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +4 -0
- package/es/components/productExtension/fields/SelectProducts/ProductItem/index.js +30 -0
- package/es/components/productExtension/fields/SelectProducts/ProductItem/index.less +69 -0
- package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +4 -0
- package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.js +39 -0
- package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.less +62 -0
- package/es/components/productExtension/fields/SelectProducts/index.d.ts +10 -0
- package/es/components/productExtension/fields/SelectProducts/index.js +99 -0
- package/es/components/productExtension/fields/SelectProducts/index.less +30 -0
- package/es/components/productExtension/fields/SelectProducts/mock.d.ts +0 -0
- package/es/components/productExtension/fields/SelectProducts/mock.js +0 -0
- package/es/components/productExtension/fields/SelectProducts/server.d.ts +1 -0
- package/es/components/productExtension/fields/SelectProducts/server.js +29 -0
- package/es/components/productExtension/fields/SelectResourcesTable/index.d.ts +4 -0
- package/es/components/productExtension/fields/SelectResourcesTable/index.js +213 -0
- package/es/components/productExtension/fields/SelectResourcesTable/index.less +0 -0
- package/es/components/productExtension/fields/SelectResourcesTable/mock.d.ts +2681 -0
- package/es/components/productExtension/fields/SelectResourcesTable/mock.js +5072 -0
- package/es/components/productExtension/fields/SelectResourcesTable/server.d.ts +2 -0
- package/es/components/productExtension/fields/SelectResourcesTable/server.js +49 -0
- package/es/components/productExtension/fields/index.d.ts +1 -0
- package/es/components/productExtension/fields/index.js +33 -0
- package/es/components/productExtension/index.d.ts +8 -0
- package/es/components/productExtension/index.js +83 -0
- package/es/components/productExtension/index.less +0 -0
- package/es/components/productExtension/locales.d.ts +48 -0
- package/es/components/productExtension/locales.js +47 -0
- package/es/components/productExtension/server.d.ts +1 -0
- package/es/components/productExtension/server.js +29 -0
- package/es/components/ruleSetting/index.d.ts +10 -0
- package/es/components/ruleSetting/index.js +337 -0
- package/es/components/ruleSetting/index.less +81 -0
- package/es/components/ruleSetting/locales.d.ts +48 -0
- package/es/components/ruleSetting/locales.js +47 -0
- package/es/components/ruleSetting/ruleBorder/index.d.ts +10 -0
- package/es/components/ruleSetting/ruleBorder/index.js +66 -0
- package/es/components/ruleSetting/ruleBorder/index.less +30 -0
- package/es/components/ruleSetting/server.d.ts +4 -0
- package/es/components/ruleSetting/server.js +149 -0
- package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +12 -0
- package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.js +40 -0
- package/es/components/schedules/components/ScheduleList/RenderScheduleItem/index.less +38 -0
- package/es/components/schedules/components/ScheduleList/index.d.ts +5 -4
- package/es/components/schedules/components/ScheduleList/index.js +53 -43
- package/es/components/schedules/hooks/useSchedulesDataSource.js +5 -3
- package/es/components/schedules/index.d.ts +1 -1
- package/es/components/schedules/locales.d.ts +3 -0
- package/es/components/schedules/locales.js +6 -3
- package/es/components/schedules/model.d.ts +2 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +1 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.js +134 -8
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.less +20 -0
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +5 -2
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.js +20 -5
- package/es/components/schedules/products/list/index.d.ts +2 -2
- package/es/components/schedules/products/list/index.js +8 -8
- package/es/components/schedules/schedules/AllSchedules/index.d.ts +3 -3
- package/es/components/schedules/schedules/AllSchedules/index.js +9 -6
- package/es/components/schedules/schedules/AllSchedules/index.less +11 -3
- package/es/components/schedules/schedules/index.js +3 -2
- package/es/components/schedules/schedules/serve.d.ts +7 -0
- package/es/components/schedules/schedules/serve.js +24 -3
- package/es/components/schedules/schedules/utils.d.ts +22 -0
- package/es/components/schedules/schedules/utils.js +143 -1
- package/es/components/schedules/type.d.ts +7 -0
- package/es/components/selectModal/index.d.ts +24 -0
- package/es/components/selectModal/index.js +108 -0
- package/es/components/selectModal/index.less +0 -0
- package/es/components/tabProduct/card/index.d.ts +2 -2
- package/es/components/tabProduct/card/index.js +3 -4
- package/es/components/tabProduct/index.d.ts +7 -4
- package/es/components/tabProduct/index.js +35 -25
- package/es/components/tabProduct/tabs/index.d.ts +3 -3
- package/es/components/tabProduct/tabs/index.js +34 -21
- package/es/components/taxSelect/index.d.ts +12 -0
- package/es/components/taxSelect/index.js +141 -0
- package/es/components/taxSelect/index.less +12 -0
- package/es/components/taxSelect/locales.d.ts +24 -0
- package/es/components/taxSelect/locales.js +23 -0
- package/es/hooks/usePrefix.d.ts +1 -0
- package/es/hooks/usePrefix.js +10 -0
- package/es/index.d.ts +9 -0
- package/es/index.js +10 -1
- package/es/utils/index.d.ts +23 -0
- package/es/utils/index.js +78 -0
- package/es/utils/load.d.ts +11 -0
- package/es/utils/load.js +85 -0
- package/lib/components/booking/addons/index.d.ts +2 -2
- package/lib/components/booking/addons/index.js +238 -51
- package/lib/components/booking/addons/model.d.ts +2 -1
- package/lib/components/booking/components/TabProduct/index.d.ts +1 -1
- package/lib/components/booking/components/TabProduct/index.js +62 -59
- package/lib/components/booking/components/TabProduct/productItem/index.d.ts +2 -2
- package/lib/components/booking/components/TabProduct/productItem/index.js +16 -3
- package/lib/components/booking/components/TabProduct/selectProductItem/index.js +33 -8
- package/lib/components/booking/components/TabProduct/selectProductItem/index.less +34 -27
- package/lib/components/booking/components/TabProduct/tabs/index.less +4 -1
- package/lib/components/booking/components/addButton/index.d.ts +9 -8
- package/lib/components/booking/components/addButton/index.js +10 -7
- package/lib/components/booking/components/collapsibleList/index.d.ts +11 -0
- package/lib/components/booking/components/collapsibleList/index.js +94 -0
- package/lib/components/booking/components/collapsibleList/index.less +61 -0
- package/lib/components/booking/components/collapsibleList/utils.d.ts +2 -0
- package/lib/components/booking/components/collapsibleList/utils.js +46 -0
- package/lib/components/booking/components/customSelect/index.d.ts +7 -3
- package/lib/components/booking/components/customSelect/index.js +50 -16
- package/lib/components/booking/components/customSelect/index.less +0 -1
- package/lib/components/booking/components/drawer/index.d.ts +3 -1
- package/lib/components/booking/components/drawer/index.js +5 -1
- package/lib/components/booking/components/drawer/index.less +10 -3
- package/lib/components/booking/components/footer/FooterMenus/index.d.ts +1 -1
- package/lib/components/booking/components/footer/FooterMenus/index.js +4 -21
- package/lib/components/booking/components/footer/amount.d.ts +1 -0
- package/lib/components/booking/components/footer/amount.js +30 -12
- package/lib/components/booking/components/footer/index.d.ts +2 -2
- package/lib/components/booking/components/footer/index.js +416 -29
- package/lib/components/booking/components/footer/serve.d.ts +1 -0
- package/lib/components/booking/components/footer/serve.js +30 -0
- package/lib/components/booking/components/footer/utils.d.ts +18 -0
- package/lib/components/booking/components/footer/utils.js +81 -14
- package/lib/components/booking/components/tabPane/index.less +1 -0
- package/lib/components/booking/deposit/ClientItem/index.d.ts +18 -0
- package/lib/components/booking/deposit/ClientItem/index.js +71 -0
- package/lib/components/booking/deposit/ClientItem/index.less +37 -0
- package/lib/components/booking/deposit/DepositItem/index.d.ts +25 -0
- package/lib/components/booking/deposit/DepositItem/index.js +127 -0
- package/lib/components/booking/deposit/DepositItem/index.less +112 -0
- package/lib/components/booking/deposit/EditDepositModal/index.d.ts +9 -0
- package/lib/components/booking/deposit/EditDepositModal/index.js +132 -0
- package/lib/components/booking/deposit/EditDepositModal/index.less +44 -0
- package/lib/components/booking/deposit/index.d.ts +3 -0
- package/lib/components/booking/deposit/index.js +232 -0
- package/lib/components/booking/deposit/index.less +3 -0
- package/lib/components/booking/deposit/serve.d.ts +8 -0
- package/lib/components/booking/deposit/serve.js +30 -0
- package/lib/components/booking/forms/format.d.ts +1 -0
- package/lib/components/booking/forms/format.js +17 -2
- package/lib/components/booking/forms/forms.d.ts +3 -2
- package/lib/components/booking/forms/forms.js +95 -77
- package/lib/components/booking/forms/index.d.ts +1 -1
- package/lib/components/booking/forms/index.js +52 -9
- package/lib/components/booking/forms/model.d.ts +2 -1
- package/lib/components/booking/forms/serve.d.ts +9 -0
- package/lib/components/booking/forms/serve.js +30 -0
- package/lib/components/booking/forms/single/RenderValueById.d.ts +6 -0
- package/lib/components/booking/forms/single/RenderValueById.js +106 -0
- package/lib/components/booking/forms/single/index.d.ts +1 -1
- package/lib/components/booking/forms/single/index.js +32 -52
- package/lib/components/booking/index.d.ts +1 -1
- package/lib/components/booking/info/addServiceVariant/index.d.ts +7 -0
- package/lib/components/booking/info/addServiceVariant/index.js +58 -0
- package/lib/components/booking/info/client/index.d.ts +4 -4
- package/lib/components/booking/info/client/index.js +99 -58
- package/lib/components/booking/info/client/serve.d.ts +2 -0
- package/lib/components/booking/info/client/serve.js +39 -0
- package/lib/components/booking/info/clientVariant/hooks/useClientFn.d.ts +44 -0
- package/lib/components/booking/info/clientVariant/hooks/useClientFn.js +317 -0
- package/lib/components/booking/info/clientVariant/index.d.ts +1 -0
- package/lib/components/booking/info/clientVariant/index.js +39 -0
- package/lib/components/booking/info/clientVariant/vertical/SelectDrawer.d.ts +23 -0
- package/lib/components/booking/info/clientVariant/vertical/SelectDrawer.js +364 -0
- package/lib/components/booking/info/clientVariant/vertical/SelectDrawer.less +86 -0
- package/lib/components/booking/info/clientVariant/vertical/index.d.ts +8 -0
- package/lib/components/booking/info/clientVariant/vertical/index.js +404 -0
- package/lib/components/booking/info/clientVariant/vertical/index.less +101 -0
- package/lib/components/booking/info/date/index.js +1 -1
- package/lib/components/booking/info/date/index.less +1 -1
- package/lib/components/booking/info/header/index.d.ts +2 -2
- package/lib/components/booking/info/header/index.js +258 -11
- package/lib/components/booking/info/header/index.less +117 -2
- package/lib/components/booking/info/index.d.ts +1 -1
- package/lib/components/booking/info/index.js +44 -12
- package/lib/components/booking/info/index.less +9 -0
- package/lib/components/booking/info/model.d.ts +3 -2
- package/lib/components/booking/info/model.js +17 -8
- package/lib/components/booking/info/notes/index.d.ts +3 -0
- package/lib/components/booking/info/notes/index.js +115 -0
- package/lib/components/booking/info/pet/index.d.ts +13 -3
- package/lib/components/booking/info/pet/index.js +252 -110
- package/lib/components/booking/info/pet/index.less +3 -0
- package/lib/components/booking/info/service/actions/index.d.ts +6 -0
- package/lib/components/booking/info/service/actions/index.js +97 -0
- package/lib/components/booking/info/service/actions/index.less +9 -0
- package/lib/components/booking/info/service/addService/index.d.ts +11 -3
- package/lib/components/booking/info/service/addService/index.js +300 -84
- package/lib/components/booking/info/service/addService/index.less +27 -1
- package/lib/components/booking/info/service/addService/utils.d.ts +61 -0
- package/lib/components/booking/info/service/addService/utils.js +214 -0
- package/lib/components/booking/info/service/addTimeModal/index.d.ts +4 -0
- package/lib/components/booking/info/service/addTimeModal/index.js +581 -0
- package/lib/components/booking/info/service/addTimeModal/index.less +138 -0
- package/lib/components/booking/info/service/addTimeModal/serve.d.ts +5 -0
- package/lib/components/booking/info/service/addTimeModal/serve.js +39 -0
- package/lib/components/booking/info/service/addTimeModal/utils.d.ts +31 -0
- package/lib/components/booking/info/service/addTimeModal/utils.js +155 -0
- package/lib/components/booking/info/service/editService/index.d.ts +7 -4
- package/lib/components/booking/info/service/editService/index.js +395 -266
- package/lib/components/booking/info/service/editService/index.less +32 -1
- package/lib/components/booking/info/service/index.d.ts +4 -4
- package/lib/components/booking/info/service/index.js +32 -111
- package/lib/components/booking/info/service/index.less +2 -96
- package/lib/components/booking/info/service/serve.d.ts +1 -0
- package/lib/components/booking/info/service/serve.js +30 -0
- package/lib/components/booking/info/service/serviceItem/Sales/index.d.ts +0 -0
- package/lib/components/booking/info/service/serviceItem/Sales/index.js +0 -0
- package/lib/components/booking/info/service/serviceItem/Sales/index.less +0 -0
- package/lib/components/booking/info/service/serviceItem/index.d.ts +4 -0
- package/lib/components/booking/info/service/serviceItem/index.js +111 -0
- package/lib/components/booking/info/service/serviceItem/index.less +125 -0
- package/lib/components/booking/info/service/serviceList/index.d.ts +6 -0
- package/lib/components/booking/info/service/serviceList/index.js +130 -0
- package/lib/components/booking/info/service/serviceList/index.less +0 -0
- package/lib/components/booking/info/utils.d.ts +23 -0
- package/lib/components/booking/info/utils.js +88 -0
- package/lib/components/booking/locales.d.ts +219 -0
- package/lib/components/booking/locales.js +279 -13
- package/lib/components/booking/model.d.ts +25 -1
- package/lib/components/booking/notes/index.d.ts +1 -1
- package/lib/components/booking/notes/index.js +9 -7
- package/lib/components/booking/notes/model.d.ts +2 -1
- package/lib/components/booking/payments/index.d.ts +1 -1
- package/lib/components/booking/payments/index.js +7 -10
- package/lib/components/booking/payments/model.d.ts +2 -1
- package/lib/components/booking/utils.d.ts +66 -1
- package/lib/components/booking/utils.js +199 -62
- package/lib/components/eftpos/const.d.ts +64 -0
- package/lib/components/eftpos/const.js +124 -0
- package/lib/components/eftpos/device.d.ts +9 -0
- package/lib/components/eftpos/device.js +55 -0
- package/lib/components/eftpos/deviceList/index.d.ts +3 -0
- package/lib/components/eftpos/deviceList/index.js +70 -0
- package/lib/components/eftpos/form/index.d.ts +21 -0
- package/lib/components/eftpos/form/index.js +112 -0
- package/lib/components/eftpos/group/index.d.ts +7 -0
- package/lib/components/eftpos/group/index.js +75 -0
- package/lib/components/eftpos/hooks.d.ts +34 -0
- package/lib/components/eftpos/hooks.js +106 -0
- package/lib/components/eftpos/icon/apiKey.d.ts +5 -0
- package/lib/components/eftpos/icon/apiKey.js +57 -0
- package/lib/components/eftpos/icon/device.d.ts +5 -0
- package/lib/components/eftpos/icon/device.js +57 -0
- package/lib/components/eftpos/index.d.ts +47 -0
- package/lib/components/eftpos/index.js +459 -0
- package/lib/components/eftpos/index.less +206 -0
- package/lib/components/eftpos/locales.d.ts +99 -0
- package/lib/components/eftpos/locales.js +140 -0
- package/lib/components/eftpos/log.d.ts +8 -0
- package/lib/components/eftpos/log.js +87 -0
- package/lib/components/eftpos/pos.d.ts +9 -0
- package/lib/components/eftpos/pos.js +56 -0
- package/lib/components/eftpos/surcharge/index.css +17 -0
- package/lib/components/eftpos/surcharge/index.d.ts +31 -0
- package/lib/components/eftpos/surcharge/index.js +155 -0
- package/lib/components/eftpos/table.d.ts +21 -0
- package/lib/components/eftpos/table.js +292 -0
- package/lib/components/eftposPay/amount.d.ts +20 -0
- package/lib/components/eftposPay/amount.js +215 -0
- package/lib/components/eftposPay/component/alert/index.d.ts +6 -0
- package/lib/components/eftposPay/component/alert/index.js +38 -0
- package/lib/components/eftposPay/component/alert/index.less +29 -0
- package/lib/components/eftposPay/component/alert/warn.d.ts +3 -0
- package/lib/components/eftposPay/component/alert/warn.js +80 -0
- package/lib/components/eftposPay/component/fail/failCustom.d.ts +4 -0
- package/lib/components/eftposPay/component/fail/failCustom.js +141 -0
- package/lib/components/eftposPay/component/fail/index.d.ts +4 -0
- package/lib/components/eftposPay/component/fail/index.js +145 -0
- package/lib/components/eftposPay/component/fail/network.d.ts +9 -0
- package/lib/components/eftposPay/component/fail/network.js +65 -0
- package/lib/components/eftposPay/component/fail/unknow.d.ts +10 -0
- package/lib/components/eftposPay/component/fail/unknow.js +72 -0
- package/lib/components/eftposPay/component/header/index.d.ts +10 -0
- package/lib/components/eftposPay/component/header/index.js +93 -0
- package/lib/components/eftposPay/component/header/index.less +35 -0
- package/lib/components/eftposPay/component/header/titlebar.d.ts +13 -0
- package/lib/components/eftposPay/component/header/titlebar.js +55 -0
- package/lib/components/eftposPay/component/header/titlebar.less +17 -0
- package/lib/components/eftposPay/component/manual/index.d.ts +10 -0
- package/lib/components/eftposPay/component/manual/index.js +193 -0
- package/lib/components/eftposPay/component/manual/index.less +137 -0
- package/lib/components/eftposPay/component/signature/index.d.ts +9 -0
- package/lib/components/eftposPay/component/signature/index.js +80 -0
- package/lib/components/eftposPay/component/step/index.d.ts +12 -0
- package/lib/components/eftposPay/component/step/index.js +71 -0
- package/lib/components/eftposPay/component/step/step.d.ts +9 -0
- package/lib/components/eftposPay/component/step/step.js +59 -0
- package/lib/components/eftposPay/const.d.ts +147 -0
- package/lib/components/eftposPay/const.js +88 -0
- package/lib/components/eftposPay/device.d.ts +22 -0
- package/lib/components/eftposPay/device.js +152 -0
- package/lib/components/eftposPay/device.less +61 -0
- package/lib/components/eftposPay/helper.d.ts +66 -0
- package/lib/components/eftposPay/helper.js +175 -0
- package/lib/components/eftposPay/hooks.d.ts +33 -0
- package/lib/components/eftposPay/hooks.js +375 -0
- package/lib/components/eftposPay/index.d.ts +5 -0
- package/lib/components/eftposPay/index.js +244 -0
- package/lib/components/eftposPay/index.less +271 -0
- package/lib/components/eftposPay/locales.d.ts +309 -0
- package/lib/components/eftposPay/locales.js +653 -0
- package/lib/components/eftposPay/manufacturer.d.ts +6 -0
- package/lib/components/eftposPay/manufacturer.js +66 -0
- package/lib/components/eftposPay/pay.d.ts +20 -0
- package/lib/components/eftposPay/pay.js +183 -0
- package/lib/components/eftposPay/payo/config.d.ts +11 -0
- package/lib/components/eftposPay/payo/config.js +230 -0
- package/lib/components/eftposPay/payo/const.d.ts +26 -0
- package/lib/components/eftposPay/payo/const.js +131 -0
- package/lib/components/eftposPay/payo/hooks.d.ts +10 -0
- package/lib/components/eftposPay/payo/hooks.js +97 -0
- package/lib/components/eftposPay/payo/index.d.ts +7 -0
- package/lib/components/eftposPay/payo/index.js +63 -0
- package/lib/components/eftposPay/store/index.d.ts +340 -0
- package/lib/components/eftposPay/store/index.js +312 -0
- package/lib/components/eftposPay/store/useThunkReducer.d.ts +9 -0
- package/lib/components/eftposPay/store/useThunkReducer.js +53 -0
- package/lib/components/eftposPay/tyro/const.d.ts +17 -0
- package/lib/components/eftposPay/tyro/const.js +114 -0
- package/lib/components/eftposPay/tyro/hooks.d.ts +14 -0
- package/lib/components/eftposPay/tyro/hooks.js +61 -0
- package/lib/components/eftposPay/tyro/index.d.ts +9 -0
- package/lib/components/eftposPay/tyro/index.js +558 -0
- package/lib/components/eftposPay/var.less +9 -0
- package/lib/components/eftposPay/windcave/const.d.ts +119 -0
- package/lib/components/eftposPay/windcave/const.js +249 -0
- package/lib/components/eftposPay/windcave/helper.d.ts +23 -0
- package/lib/components/eftposPay/windcave/helper.js +493 -0
- package/lib/components/eftposPay/windcave/receiptAction.d.ts +23 -0
- package/lib/components/eftposPay/windcave/receiptAction.js +354 -0
- package/lib/components/eftposPay/windcave/timer.d.ts +29 -0
- package/lib/components/eftposPay/windcave/timer.js +131 -0
- package/lib/components/eftposPay/windcave/windcave.d.ts +7 -0
- package/lib/components/eftposPay/windcave/windcave.js +283 -0
- package/lib/components/index.d.ts +5 -1
- package/lib/components/index.js +14 -2
- package/lib/components/listComponent/index.d.ts +15 -0
- package/lib/components/listComponent/index.js +85 -0
- package/lib/components/pay/toC/PayAmount/index.d.ts +15 -0
- package/lib/components/pay/toC/PayAmount/index.js +42 -0
- package/lib/components/pay/toC/PayAmount/index.less +21 -0
- package/lib/components/pay/toC/PayCountdown/index.d.ts +15 -0
- package/lib/components/pay/toC/PayCountdown/index.js +49 -0
- package/lib/components/pay/toC/PayCountdown/index.less +22 -0
- package/lib/components/pay/toC/PaymentList/index.d.ts +19 -0
- package/lib/components/pay/toC/PaymentList/index.js +259 -0
- package/lib/components/pay/toC/PaymentList/index.less +112 -0
- package/lib/components/pay/toC/PaymentList/mock.d.ts +88 -0
- package/lib/components/pay/toC/PaymentList/mock.js +174 -0
- package/lib/components/pay/toC/PaymentList/payment/alipay.svg +13 -0
- package/lib/components/pay/toC/PaymentList/payment/apple_pay.svg +7 -0
- package/lib/components/pay/toC/PaymentList/payment/bank_deposit.svg +11 -0
- package/lib/components/pay/toC/PaymentList/payment/cash.svg +8 -0
- package/lib/components/pay/toC/PaymentList/payment/credit_card.svg +10 -0
- package/lib/components/pay/toC/PaymentList/payment/custom.svg +10 -0
- package/lib/components/pay/toC/PaymentList/payment/google_pay.svg +9 -0
- package/lib/components/pay/toC/PaymentList/payment/paypal.svg +8 -0
- package/lib/components/pay/toC/PaymentList/payment/stripe.svg +16 -0
- package/lib/components/pay/toC/PaymentList/payment/wxpay.svg +5 -0
- package/lib/components/pay/toC/PaymentList/serve.d.ts +28 -0
- package/lib/components/pay/toC/PaymentList/serve.js +86 -0
- package/lib/components/pay/toC/PaymentList/status.d.ts +4 -0
- package/lib/components/pay/toC/PaymentList/status.js +132 -0
- package/lib/components/pay/toC/PaymentList/utils.d.ts +10 -0
- package/lib/components/pay/toC/PaymentList/utils.js +52 -0
- package/lib/components/pay/toC/PaymentMethods/ApplePay/index.d.ts +10 -0
- package/lib/components/pay/toC/PaymentMethods/ApplePay/index.js +96 -0
- package/lib/components/pay/toC/PaymentMethods/ApplePay/index.less +0 -0
- package/lib/components/pay/toC/PaymentMethods/BankDeposit/index.d.ts +10 -0
- package/lib/components/pay/toC/PaymentMethods/BankDeposit/index.js +68 -0
- package/lib/components/pay/toC/PaymentMethods/BankDeposit/index.less +0 -0
- package/lib/components/pay/toC/PaymentMethods/CashManual/index.d.ts +10 -0
- package/lib/components/pay/toC/PaymentMethods/CashManual/index.js +56 -0
- package/lib/components/pay/toC/PaymentMethods/CashManual/index.less +0 -0
- package/lib/components/pay/toC/PaymentMethods/CashManual/serve.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/CashManual/serve.js +33 -0
- package/lib/components/pay/toC/PaymentMethods/CustomPayment/index.d.ts +10 -0
- package/lib/components/pay/toC/PaymentMethods/CustomPayment/index.js +56 -0
- package/lib/components/pay/toC/PaymentMethods/CustomPayment/index.less +0 -0
- package/lib/components/pay/toC/PaymentMethods/CustomPayment/serve.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/CustomPayment/serve.js +33 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.d.ts +10 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.js +89 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.less +0 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayAliPayH5/serve.d.ts +2 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayAliPayH5/serve.js +44 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayPaypalH5/index.d.ts +10 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayPaypalH5/index.js +89 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayPaypalH5/index.less +0 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayPaypalH5/serve.d.ts +2 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayPaypalH5/serve.js +44 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayQrcode/index.d.ts +10 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayQrcode/index.js +61 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayQrcode/index.less +0 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayQrcode/serve.d.ts +2 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayQrcode/serve.js +43 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayWxH5/index.d.ts +10 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayWxH5/index.js +89 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayWxH5/index.less +0 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayWxH5/serve.d.ts +2 -0
- package/lib/components/pay/toC/PaymentMethods/GlobePayWxH5/serve.js +44 -0
- package/lib/components/pay/toC/PaymentMethods/GooglePay/index.d.ts +9 -0
- package/lib/components/pay/toC/PaymentMethods/GooglePay/index.js +95 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/Add/index.d.ts +12 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/Add/index.js +270 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/Add/index.less +25 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/List/index.d.ts +11 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/List/index.js +224 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/List/index.less +95 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/List/serve.d.ts +5 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/List/serve.js +39 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.d.ts +4 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.js +52 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/ThreedsLoading/index.less +24 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.d.ts +10 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.js +139 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.less +0 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/index.d.ts +7 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/index.js +80 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/index.less +0 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.d.ts +61 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +336 -0
- package/lib/components/pay/toC/PaymentMethods/OfflinePayment/index.d.ts +10 -0
- package/lib/components/pay/toC/PaymentMethods/OfflinePayment/index.js +53 -0
- package/lib/components/pay/toC/PaymentMethods/OfflinePayment/index.less +0 -0
- package/lib/components/pay/toC/PaymentMethods/OfflinePayment/serve.d.ts +1 -0
- package/lib/components/pay/toC/PaymentMethods/OfflinePayment/serve.js +33 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.d.ts +6 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/Content.js +76 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.d.ts +3 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.js +107 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/index.less +35 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/serve.d.ts +9 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/Finish/serve.js +30 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/DynamicSDK.d.ts +2 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/DynamicSDK.js +44 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.d.ts +8 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/SDK.js +69 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +8 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.js +44 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.d.ts +3 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.js +48 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/index.less +27 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/PageLoading/stripe_loading.gif +0 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.d.ts +3 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/PaymentRequestForm.js +124 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.d.ts +4 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.js +94 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/components/SetupForm/index.less +22 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.d.ts +4 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.js +81 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/index.module.less +4 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/serve.d.ts +9 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/serve.js +30 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/index.d.ts +10 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/index.js +71 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/index.less +0 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/serve.d.ts +2 -0
- package/lib/components/pay/toC/PaymentMethods/StripePay/serve.js +43 -0
- package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.d.ts +10 -0
- package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.js +88 -0
- package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.less +0 -0
- package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/serve.d.ts +2 -0
- package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/serve.js +44 -0
- package/lib/components/pay/toC/PaymentMethods/SuperPayWxPayH5/index.d.ts +10 -0
- package/lib/components/pay/toC/PaymentMethods/SuperPayWxPayH5/index.js +87 -0
- package/lib/components/pay/toC/PaymentMethods/SuperPayWxPayH5/index.less +0 -0
- package/lib/components/pay/toC/PaymentMethods/SuperPayWxPayH5/serve.d.ts +2 -0
- package/lib/components/pay/toC/PaymentMethods/SuperPayWxPayH5/serve.js +44 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +15 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/List/index.js +126 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/List/index.less +20 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/MultiModeSearch/index.d.ts +6 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/MultiModeSearch/index.js +56 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +20 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/index.js +284 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/index.less +0 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +111 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.js +54 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.d.ts +3 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.js +70 -0
- package/lib/components/pay/toC/PaymentMethods/index.d.ts +9 -0
- package/lib/components/pay/toC/PaymentMethods/index.js +176 -0
- package/lib/components/pay/toC/WalletPassBlock/index.d.ts +14 -0
- package/lib/components/pay/toC/WalletPassBlock/index.js +97 -0
- package/lib/components/pay/toC/WalletPassBlock/index.less +65 -0
- package/lib/components/pay/toC/index.d.ts +3 -0
- package/lib/components/pay/toC/index.js +396 -0
- package/lib/components/pay/toC/index.less +22 -0
- package/lib/components/pay/toC/locales.d.ts +217 -0
- package/lib/components/pay/toC/locales.js +240 -0
- package/lib/components/pay/toC/model.d.ts +35 -0
- package/lib/components/pay/toC/model.js +60 -0
- package/lib/components/pay/toC/payGroup.d.ts +48 -0
- package/lib/components/pay/toC/payGroup.js +77 -0
- package/lib/components/pay/toC/serve.d.ts +34 -0
- package/lib/components/pay/toC/serve.js +78 -0
- package/lib/components/pay/toC/status.d.ts +12 -0
- package/lib/components/pay/toC/status.js +122 -0
- package/lib/components/pay/toC/utils.d.ts +38 -0
- package/lib/components/pay/toC/utils.js +69 -0
- package/lib/components/productExtension/card/index.d.ts +10 -0
- package/lib/components/productExtension/card/index.js +57 -0
- package/lib/components/productExtension/card/index.less +34 -0
- package/lib/components/productExtension/fields/Actor/Container/index.d.ts +12 -0
- package/lib/components/productExtension/fields/Actor/Container/index.js +64 -0
- package/lib/components/productExtension/fields/Actor/Container/index.less +19 -0
- package/lib/components/productExtension/fields/Actor/CutOffTime/index.d.ts +10 -0
- package/lib/components/productExtension/fields/Actor/CutOffTime/index.js +128 -0
- package/lib/components/productExtension/fields/Actor/CutOffTime/index.less +32 -0
- package/lib/components/productExtension/fields/Actor/CutOffTime/status.d.ts +0 -0
- package/lib/components/productExtension/fields/Actor/CutOffTime/status.js +0 -0
- package/lib/components/productExtension/fields/Actor/index.d.ts +5 -0
- package/lib/components/productExtension/fields/Actor/index.js +56 -0
- package/lib/components/productExtension/fields/Forms/index.d.ts +10 -0
- package/lib/components/productExtension/fields/Forms/index.js +108 -0
- package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.d.ts +4 -0
- package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.js +65 -0
- package/lib/components/productExtension/fields/SelectProducts/ProductItem/index.less +69 -0
- package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.d.ts +4 -0
- package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.js +79 -0
- package/lib/components/productExtension/fields/SelectProducts/ProductItemPreview/index.less +62 -0
- package/lib/components/productExtension/fields/SelectProducts/index.d.ts +10 -0
- package/lib/components/productExtension/fields/SelectProducts/index.js +126 -0
- package/lib/components/productExtension/fields/SelectProducts/index.less +30 -0
- package/lib/components/productExtension/fields/SelectProducts/mock.d.ts +0 -0
- package/lib/components/productExtension/fields/SelectProducts/mock.js +0 -0
- package/lib/components/productExtension/fields/SelectProducts/server.d.ts +1 -0
- package/lib/components/productExtension/fields/SelectProducts/server.js +33 -0
- package/lib/components/productExtension/fields/SelectResourcesTable/index.d.ts +4 -0
- package/lib/components/productExtension/fields/SelectResourcesTable/index.js +188 -0
- package/lib/components/productExtension/fields/SelectResourcesTable/index.less +0 -0
- package/lib/components/productExtension/fields/SelectResourcesTable/mock.d.ts +2681 -0
- package/lib/components/productExtension/fields/SelectResourcesTable/mock.js +12723 -0
- package/lib/components/productExtension/fields/SelectResourcesTable/server.d.ts +2 -0
- package/lib/components/productExtension/fields/SelectResourcesTable/server.js +39 -0
- package/lib/components/productExtension/fields/index.d.ts +1 -0
- package/lib/components/productExtension/fields/index.js +69 -0
- package/lib/components/productExtension/index.d.ts +8 -0
- package/lib/components/productExtension/index.js +112 -0
- package/lib/components/productExtension/index.less +0 -0
- package/lib/components/productExtension/locales.d.ts +48 -0
- package/lib/components/productExtension/locales.js +71 -0
- package/lib/components/productExtension/server.d.ts +1 -0
- package/lib/components/productExtension/server.js +33 -0
- package/lib/components/ruleSetting/index.d.ts +10 -0
- package/lib/components/ruleSetting/index.js +381 -0
- package/lib/components/ruleSetting/index.less +81 -0
- package/lib/components/ruleSetting/locales.d.ts +48 -0
- package/lib/components/ruleSetting/locales.js +71 -0
- package/lib/components/ruleSetting/ruleBorder/index.d.ts +10 -0
- package/lib/components/ruleSetting/ruleBorder/index.js +89 -0
- package/lib/components/ruleSetting/ruleBorder/index.less +30 -0
- package/lib/components/ruleSetting/server.d.ts +4 -0
- package/lib/components/ruleSetting/server.js +107 -0
- package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.d.ts +12 -0
- package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.js +77 -0
- package/lib/components/schedules/components/ScheduleList/RenderScheduleItem/index.less +38 -0
- package/lib/components/schedules/components/ScheduleList/index.d.ts +5 -4
- package/lib/components/schedules/components/ScheduleList/index.js +38 -31
- package/lib/components/schedules/hooks/useSchedulesDataSource.js +8 -2
- package/lib/components/schedules/index.d.ts +1 -1
- package/lib/components/schedules/locales.d.ts +3 -0
- package/lib/components/schedules/locales.js +6 -3
- package/lib/components/schedules/model.d.ts +2 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.d.ts +1 -1
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.js +100 -9
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/AddSchedules/index.less +20 -0
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.d.ts +5 -2
- package/lib/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.js +18 -4
- package/lib/components/schedules/products/list/index.d.ts +2 -2
- package/lib/components/schedules/schedules/AllSchedules/index.d.ts +3 -3
- package/lib/components/schedules/schedules/AllSchedules/index.js +3 -2
- package/lib/components/schedules/schedules/AllSchedules/index.less +11 -3
- package/lib/components/schedules/schedules/index.js +2 -2
- package/lib/components/schedules/schedules/serve.d.ts +7 -0
- package/lib/components/schedules/schedules/serve.js +5 -2
- package/lib/components/schedules/schedules/utils.d.ts +22 -0
- package/lib/components/schedules/schedules/utils.js +98 -0
- package/lib/components/schedules/type.d.ts +7 -0
- package/lib/components/selectModal/index.d.ts +24 -0
- package/lib/components/selectModal/index.js +133 -0
- package/lib/components/selectModal/index.less +0 -0
- package/lib/components/tabProduct/card/index.d.ts +2 -2
- package/lib/components/tabProduct/card/index.js +1 -2
- package/lib/components/tabProduct/index.d.ts +7 -4
- package/lib/components/tabProduct/index.js +21 -13
- package/lib/components/tabProduct/tabs/index.d.ts +3 -3
- package/lib/components/tabProduct/tabs/index.js +10 -6
- package/lib/components/taxSelect/index.d.ts +12 -0
- package/lib/components/taxSelect/index.js +161 -0
- package/lib/components/taxSelect/index.less +12 -0
- package/lib/components/taxSelect/locales.d.ts +24 -0
- package/lib/components/taxSelect/locales.js +47 -0
- package/lib/hooks/usePrefix.d.ts +1 -0
- package/lib/hooks/usePrefix.js +44 -0
- package/lib/index.d.ts +9 -0
- package/lib/index.js +29 -2
- package/lib/utils/index.d.ts +23 -0
- package/lib/utils/index.js +70 -0
- package/lib/utils/load.d.ts +11 -0
- package/lib/utils/load.js +100 -0
- package/lowcode/booking-deposit/meta.ts +93 -0
- package/lowcode/booking-vertical-add-service/meta.ts +124 -0
- package/lowcode/booking-vertical-client/meta.ts +124 -0
- package/lowcode/eftpos/meta.ts +229 -0
- package/lowcode/eftpos-pay/meta.ts +155 -0
- package/lowcode/product-extension/meta.ts +131 -0
- package/lowcode/rule-setting/meta.ts +74 -0
- package/lowcode/tax-select/meta.ts +107 -0
- package/lowcode/toc-pay/meta.ts +59 -0
- package/lowcode/vertical-add-service/meta.ts +71 -0
- package/lowcode/vertical-client/meta.ts +71 -0
- package/package.json +6 -4
|
@@ -17,17 +17,20 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
17
17
|
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; }
|
|
18
18
|
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
19
19
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
20
|
-
import React, { useMemo, useState } from
|
|
21
|
-
import ChevronDown from
|
|
22
|
-
import classNames from
|
|
23
|
-
import { Skeleton, message } from
|
|
24
|
-
import { formatAmount, locales } from
|
|
25
|
-
import { Button } from
|
|
20
|
+
import React, { useEffect, useMemo, useState } from 'react';
|
|
21
|
+
import ChevronDown from '@pisell/icon/es/ChevronDown';
|
|
22
|
+
import classNames from 'classnames';
|
|
23
|
+
import { Skeleton, message, Dropdown, Space, Modal } from 'antd';
|
|
24
|
+
import { formatAmount, locales } from '@pisell/utils';
|
|
25
|
+
import { Button } from 'antd';
|
|
26
26
|
import { formatProducts } from "../../addons";
|
|
27
27
|
import { formatValues } from "./utils";
|
|
28
28
|
import { getSumTotal, is_price_include_tax } from "./amount";
|
|
29
29
|
import FooterMenus from "./FooterMenus";
|
|
30
30
|
import "./index.less";
|
|
31
|
+
import useEngineContext from "../../../../hooks/useEngineContext";
|
|
32
|
+
import { DownOutlined } from '@ant-design/icons';
|
|
33
|
+
import { eventBookingCheck } from "./serve";
|
|
31
34
|
|
|
32
35
|
/**
|
|
33
36
|
* @title: 底部
|
|
@@ -38,7 +41,7 @@ import "./index.less";
|
|
|
38
41
|
* @Date: 2024-01-30 16:51
|
|
39
42
|
*/
|
|
40
43
|
var Footer = function Footer(props) {
|
|
41
|
-
var _state$bookingConfig2, _state$bookingConfig3, _state$bookingConfig4, _state$addons2, _state$addons4, _state$
|
|
44
|
+
var _context$appHelper, _store$getState, _store$getState$call, _store$getState$call$, _state$bookingConfig2, _state$bookingConfig3, _state$bookingConfig4, _state$bookingConfig8, _state$bookingConfig9, _state$addons2, _state$addons4, _state$bookingDetail11;
|
|
42
45
|
var state = props.state,
|
|
43
46
|
buttons = props.buttons,
|
|
44
47
|
dispatch = props.dispatch,
|
|
@@ -58,12 +61,86 @@ var Footer = function Footer(props) {
|
|
|
58
61
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
59
62
|
checkoutLoading = _useState6[0],
|
|
60
63
|
setCheckoutLoading = _useState6[1];
|
|
64
|
+
var context = useEngineContext();
|
|
65
|
+
var _context$appHelper$ut = (_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 ? void 0 : _context$appHelper.utils,
|
|
66
|
+
isTerminal = _context$appHelper$ut.isTerminal,
|
|
67
|
+
interaction = _context$appHelper$ut.interaction,
|
|
68
|
+
store = _context$appHelper$ut.store,
|
|
69
|
+
storage = _context$appHelper$ut.storage;
|
|
70
|
+
var isShowPaymentLink = store === null || store === void 0 ? void 0 : (_store$getState = store.getState) === null || _store$getState === void 0 ? void 0 : (_store$getState$call = _store$getState.call(store)) === null || _store$getState$call === void 0 ? void 0 : (_store$getState$call$ = _store$getState$call.global) === null || _store$getState$call$ === void 0 ? void 0 : _store$getState$call$.paymentLinkBtnShow;
|
|
71
|
+
var _Modal$useModal = Modal.useModal(),
|
|
72
|
+
_Modal$useModal2 = _slicedToArray(_Modal$useModal, 2),
|
|
73
|
+
modal = _Modal$useModal2[0],
|
|
74
|
+
contextHolder = _Modal$useModal2[1];
|
|
75
|
+
var setActiveTab = state.setActiveTab;
|
|
76
|
+
var isTeam = useMemo(function () {
|
|
77
|
+
return storage.get('channel') === 'android_team_portal' || storage.get('channel') === 'ios_team_portal';
|
|
78
|
+
}, []);
|
|
79
|
+
var actionMap = {
|
|
80
|
+
sale: {
|
|
81
|
+
label: locales.getText('pisell2.text.addons'),
|
|
82
|
+
key: 'sale'
|
|
83
|
+
},
|
|
84
|
+
paymentLink: {
|
|
85
|
+
label: locales.getText('pisell2.text.payment-link'),
|
|
86
|
+
key: 'payment',
|
|
87
|
+
children: [{
|
|
88
|
+
label: locales.getText('pisell2.text.send-mail'),
|
|
89
|
+
key: 'sendMail'
|
|
90
|
+
}, {
|
|
91
|
+
label: locales.getText('pisell2.text.copy-to-clipboard'),
|
|
92
|
+
key: 'copy'
|
|
93
|
+
}]
|
|
94
|
+
},
|
|
95
|
+
print: {
|
|
96
|
+
label: 'Print',
|
|
97
|
+
key: 'print'
|
|
98
|
+
},
|
|
99
|
+
orderDetail: {
|
|
100
|
+
label: locales.getText('pisell2.text.deposit-order-detail'),
|
|
101
|
+
key: 'orderDetail'
|
|
102
|
+
},
|
|
103
|
+
refund: {
|
|
104
|
+
label: locales.getText('pisell2.text.refund'),
|
|
105
|
+
key: 'refund'
|
|
106
|
+
},
|
|
107
|
+
rebook: {
|
|
108
|
+
label: locales.getText('pisell2.text.rebook'),
|
|
109
|
+
key: 'rebook'
|
|
110
|
+
},
|
|
111
|
+
cancelOrder: {
|
|
112
|
+
label: 'Cancel order',
|
|
113
|
+
key: 'cancelOrder'
|
|
114
|
+
}
|
|
115
|
+
};
|
|
116
|
+
useEffect(function () {
|
|
117
|
+
if (state.bookingDetail) {
|
|
118
|
+
state.action({
|
|
119
|
+
type: 'pisell1.registerPlugin',
|
|
120
|
+
data: {
|
|
121
|
+
pluginList: ['RefundPlugin']
|
|
122
|
+
}
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
}, [state.bookingDetail]);
|
|
126
|
+
useEffect(function () {
|
|
127
|
+
store === null || store === void 0 ? void 0 : store.dispatch({
|
|
128
|
+
type: 'global/_getPaymentLinkBtnShow'
|
|
129
|
+
});
|
|
130
|
+
}, []);
|
|
61
131
|
|
|
62
132
|
// board 配置
|
|
63
133
|
var params = useMemo(function () {
|
|
64
134
|
var _state$bookingConfig, _state$bookingConfig$, _state$bookingConfig$2;
|
|
65
135
|
return (state === null || state === void 0 ? void 0 : (_state$bookingConfig = state.bookingConfig) === null || _state$bookingConfig === void 0 ? void 0 : (_state$bookingConfig$ = _state$bookingConfig.config) === null || _state$bookingConfig$ === void 0 ? void 0 : (_state$bookingConfig$2 = _state$bookingConfig$.basic) === null || _state$bookingConfig$2 === void 0 ? void 0 : _state$bookingConfig$2.appointment_subject) || {};
|
|
66
136
|
}, [state === null || state === void 0 ? void 0 : (_state$bookingConfig2 = state.bookingConfig) === null || _state$bookingConfig2 === void 0 ? void 0 : (_state$bookingConfig3 = _state$bookingConfig2.config) === null || _state$bookingConfig3 === void 0 ? void 0 : (_state$bookingConfig4 = _state$bookingConfig3.basic) === null || _state$bookingConfig4 === void 0 ? void 0 : _state$bookingConfig4.appointment_subject]);
|
|
137
|
+
var transaction_habit_selection = useMemo(function () {
|
|
138
|
+
var _state$bookingConfig5, _state$bookingConfig6, _state$bookingConfig7;
|
|
139
|
+
return (state === null || state === void 0 ? void 0 : (_state$bookingConfig5 = state.bookingConfig) === null || _state$bookingConfig5 === void 0 ? void 0 : (_state$bookingConfig6 = _state$bookingConfig5.config) === null || _state$bookingConfig6 === void 0 ? void 0 : (_state$bookingConfig7 = _state$bookingConfig6.information_tab) === null || _state$bookingConfig7 === void 0 ? void 0 : _state$bookingConfig7.transaction_habit_selection) || {
|
|
140
|
+
type: 'service_now_pay_later',
|
|
141
|
+
button_rows: 1
|
|
142
|
+
};
|
|
143
|
+
}, [state === null || state === void 0 ? void 0 : (_state$bookingConfig8 = state.bookingConfig) === null || _state$bookingConfig8 === void 0 ? void 0 : (_state$bookingConfig9 = _state$bookingConfig8.config) === null || _state$bookingConfig9 === void 0 ? void 0 : _state$bookingConfig9.information_tab]);
|
|
67
144
|
|
|
68
145
|
// addons 是否有编辑
|
|
69
146
|
var addonsEdit = useMemo(function () {
|
|
@@ -148,11 +225,25 @@ var Footer = function Footer(props) {
|
|
|
148
225
|
*/
|
|
149
226
|
var goCheckout = /*#__PURE__*/function () {
|
|
150
227
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(order_id) {
|
|
228
|
+
var _interaction$utils, _interaction$utils$po;
|
|
151
229
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
152
230
|
while (1) switch (_context.prev = _context.next) {
|
|
153
231
|
case 0:
|
|
232
|
+
if (!(isTerminal !== null && isTerminal !== void 0 && isTerminal())) {
|
|
233
|
+
_context.next = 2;
|
|
234
|
+
break;
|
|
235
|
+
}
|
|
236
|
+
return _context.abrupt("return", interaction === null || interaction === void 0 ? void 0 : (_interaction$utils = interaction.utils) === null || _interaction$utils === void 0 ? void 0 : (_interaction$utils$po = _interaction$utils.postMessageToApp) === null || _interaction$utils$po === void 0 ? void 0 : _interaction$utils$po.call(_interaction$utils, {
|
|
237
|
+
module: 'booking',
|
|
238
|
+
key: 'booking_checkout',
|
|
239
|
+
data: {
|
|
240
|
+
order_id: order_id,
|
|
241
|
+
callbackType: "pisell2"
|
|
242
|
+
}
|
|
243
|
+
}));
|
|
244
|
+
case 2:
|
|
154
245
|
state.action({
|
|
155
|
-
type:
|
|
246
|
+
type: 'pisell1.handlePayment',
|
|
156
247
|
data: {
|
|
157
248
|
orderId: order_id
|
|
158
249
|
},
|
|
@@ -160,7 +251,7 @@ var Footer = function Footer(props) {
|
|
|
160
251
|
state === null || state === void 0 ? void 0 : state.callback();
|
|
161
252
|
}
|
|
162
253
|
});
|
|
163
|
-
case
|
|
254
|
+
case 3:
|
|
164
255
|
case "end":
|
|
165
256
|
return _context.stop();
|
|
166
257
|
}
|
|
@@ -190,7 +281,7 @@ var Footer = function Footer(props) {
|
|
|
190
281
|
}
|
|
191
282
|
_context2.next = 3;
|
|
192
283
|
return handleSave({
|
|
193
|
-
type:
|
|
284
|
+
type: 'checkout'
|
|
194
285
|
});
|
|
195
286
|
case 3:
|
|
196
287
|
res = _context2.sent;
|
|
@@ -231,13 +322,13 @@ var Footer = function Footer(props) {
|
|
|
231
322
|
shop_discount_reason: state.bookingDetail.shop_discount_reason
|
|
232
323
|
});
|
|
233
324
|
case 4:
|
|
234
|
-
message.success(locales.getText(
|
|
325
|
+
message.success(locales.getText('pisell2.text.addons') + locales.getText('pisell2.text.updated'));
|
|
235
326
|
_context3.next = 10;
|
|
236
327
|
break;
|
|
237
328
|
case 7:
|
|
238
329
|
_context3.prev = 7;
|
|
239
330
|
_context3.t0 = _context3["catch"](0);
|
|
240
|
-
console.log(
|
|
331
|
+
console.log('state.bookingId && state.addons.edit', _context3.t0);
|
|
241
332
|
case 10:
|
|
242
333
|
case "end":
|
|
243
334
|
return _context3.stop();
|
|
@@ -259,68 +350,109 @@ var Footer = function Footer(props) {
|
|
|
259
350
|
*/
|
|
260
351
|
var handleSave = /*#__PURE__*/function () {
|
|
261
352
|
var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(_ref4) {
|
|
262
|
-
var type, _setLoading, saveOtherValue, _state$onSave, callbackData, values, api;
|
|
353
|
+
var type, _ref4$messageShow, messageShow, _setLoading, editApi, createApi, saveOtherValue, _state$onSave, callbackData, values, api, _yield$eventBookingCh, data, confirmed;
|
|
263
354
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
264
355
|
while (1) switch (_context4.prev = _context4.next) {
|
|
265
356
|
case 0:
|
|
266
|
-
type = _ref4.type;
|
|
357
|
+
type = _ref4.type, _ref4$messageShow = _ref4.messageShow, messageShow = _ref4$messageShow === void 0 ? true : _ref4$messageShow;
|
|
267
358
|
// 区分loading, 是点击的checkout 还是save
|
|
268
|
-
_setLoading = type ===
|
|
359
|
+
_setLoading = type === 'checkout' ? setCheckoutLoading : setLoading;
|
|
269
360
|
_setLoading(true);
|
|
361
|
+
editApi = state.renderType === 'eventBooking' ? state.apis.editEventBooking : state.apis.editBooking;
|
|
362
|
+
createApi = state.renderType === 'eventBooking' ? state.apis.createEventBooking : state.apis.createBooking;
|
|
270
363
|
saveOtherValue = {};
|
|
271
|
-
if (!(type ===
|
|
272
|
-
_context4.next =
|
|
364
|
+
if (!(type === 'save')) {
|
|
365
|
+
_context4.next = 13;
|
|
273
366
|
break;
|
|
274
367
|
}
|
|
275
|
-
_context4.next =
|
|
368
|
+
_context4.next = 9;
|
|
276
369
|
return state === null || state === void 0 ? void 0 : (_state$onSave = state.onSave) === null || _state$onSave === void 0 ? void 0 : _state$onSave.call(state, state.client);
|
|
277
|
-
case
|
|
370
|
+
case 9:
|
|
278
371
|
_context4.t0 = _context4.sent;
|
|
279
372
|
if (_context4.t0) {
|
|
280
|
-
_context4.next =
|
|
373
|
+
_context4.next = 12;
|
|
281
374
|
break;
|
|
282
375
|
}
|
|
283
376
|
_context4.t0 = {};
|
|
284
|
-
case
|
|
377
|
+
case 12:
|
|
285
378
|
saveOtherValue = _context4.t0;
|
|
286
|
-
case
|
|
287
|
-
_context4.prev =
|
|
379
|
+
case 13:
|
|
380
|
+
_context4.prev = 13;
|
|
288
381
|
callbackData = null; // 格式化提交的参数
|
|
289
382
|
values = formatValues(_objectSpread(_objectSpread({}, state), saveOtherValue)); // 区分是新增还是编辑
|
|
290
|
-
api = state.bookingId ?
|
|
383
|
+
api = state.bookingId ? editApi : createApi; // 活动预约新建时校验重复
|
|
384
|
+
if (!(!state.bookingId && state.renderType === 'eventBooking')) {
|
|
385
|
+
_context4.next = 29;
|
|
386
|
+
break;
|
|
387
|
+
}
|
|
388
|
+
_context4.next = 20;
|
|
389
|
+
return eventBookingCheck(values);
|
|
390
|
+
case 20:
|
|
391
|
+
_yield$eventBookingCh = _context4.sent;
|
|
392
|
+
data = _yield$eventBookingCh.data;
|
|
393
|
+
if (!data.list.length) {
|
|
394
|
+
_context4.next = 29;
|
|
395
|
+
break;
|
|
396
|
+
}
|
|
397
|
+
_context4.next = 25;
|
|
398
|
+
return modal.confirm({
|
|
399
|
+
icon: null,
|
|
400
|
+
title: locales.getText('page.event.booking.text.duplicate-enrollment'),
|
|
401
|
+
content: locales.getText('page.event.booking.text.duplicate-enrollment-content')({
|
|
402
|
+
customerName: data.customer_name,
|
|
403
|
+
title: data.title,
|
|
404
|
+
list: data.list
|
|
405
|
+
}),
|
|
406
|
+
width: 480,
|
|
407
|
+
okText: locales.getText('page.event.booking.text.duplicate-enrollment-confirm')
|
|
408
|
+
});
|
|
409
|
+
case 25:
|
|
410
|
+
confirmed = _context4.sent;
|
|
411
|
+
if (confirmed) {
|
|
412
|
+
_context4.next = 29;
|
|
413
|
+
break;
|
|
414
|
+
}
|
|
415
|
+
_setLoading(false);
|
|
416
|
+
return _context4.abrupt("return");
|
|
417
|
+
case 29:
|
|
291
418
|
if (!addonsEdit) {
|
|
292
|
-
_context4.next =
|
|
419
|
+
_context4.next = 32;
|
|
293
420
|
break;
|
|
294
421
|
}
|
|
295
|
-
_context4.next =
|
|
422
|
+
_context4.next = 32;
|
|
296
423
|
return handleSaveAddons();
|
|
297
|
-
case
|
|
424
|
+
case 32:
|
|
298
425
|
if (!infoEdit) {
|
|
299
|
-
_context4.next =
|
|
426
|
+
_context4.next = 37;
|
|
300
427
|
break;
|
|
301
428
|
}
|
|
302
|
-
_context4.next =
|
|
429
|
+
_context4.next = 35;
|
|
303
430
|
return api(values);
|
|
304
|
-
case
|
|
431
|
+
case 35:
|
|
305
432
|
callbackData = _context4.sent;
|
|
306
|
-
|
|
307
|
-
|
|
433
|
+
if (messageShow) {
|
|
434
|
+
message.success(locales.getText(state.bookingId ? 'pisell2.text.appointment-updated' : 'pisell2.text.created-successfully'));
|
|
435
|
+
}
|
|
436
|
+
case 37:
|
|
308
437
|
// 回调关闭弹窗
|
|
309
438
|
state === null || state === void 0 ? void 0 : state.callback(callbackData);
|
|
310
439
|
_setLoading(false);
|
|
311
440
|
|
|
312
441
|
// return数据 checkout时需要
|
|
313
|
-
return _context4.abrupt("return", callbackData);
|
|
314
|
-
case
|
|
315
|
-
_context4.prev =
|
|
316
|
-
_context4.t1 = _context4["catch"](
|
|
442
|
+
return _context4.abrupt("return", callbackData || values);
|
|
443
|
+
case 42:
|
|
444
|
+
_context4.prev = 42;
|
|
445
|
+
_context4.t1 = _context4["catch"](13);
|
|
317
446
|
console.log(_context4.t1);
|
|
447
|
+
if ((_context4.t1 === null || _context4.t1 === void 0 ? void 0 : _context4.t1.code) === 70101) {
|
|
448
|
+
message.error(_context4.t1 === null || _context4.t1 === void 0 ? void 0 : _context4.t1.message);
|
|
449
|
+
}
|
|
318
450
|
_setLoading(false);
|
|
319
|
-
case
|
|
451
|
+
case 47:
|
|
320
452
|
case "end":
|
|
321
453
|
return _context4.stop();
|
|
322
454
|
}
|
|
323
|
-
}, _callee4, null, [[
|
|
455
|
+
}, _callee4, null, [[13, 42]]);
|
|
324
456
|
}));
|
|
325
457
|
return function handleSave(_x3) {
|
|
326
458
|
return _ref5.apply(this, arguments);
|
|
@@ -341,9 +473,9 @@ var Footer = function Footer(props) {
|
|
|
341
473
|
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
342
474
|
while (1) switch (_context5.prev = _context5.next) {
|
|
343
475
|
case 0:
|
|
344
|
-
status =
|
|
476
|
+
status = 'completed';
|
|
345
477
|
dispatch({
|
|
346
|
-
type:
|
|
478
|
+
type: 'setStatus',
|
|
347
479
|
payload: status
|
|
348
480
|
});
|
|
349
481
|
_context5.next = 4;
|
|
@@ -352,7 +484,7 @@ var Footer = function Footer(props) {
|
|
|
352
484
|
});
|
|
353
485
|
case 4:
|
|
354
486
|
data = _context5.sent;
|
|
355
|
-
message.success(locales.getText(
|
|
487
|
+
message.success(locales.getText('pisell1.text.edit-status-success'));
|
|
356
488
|
state === null || state === void 0 ? void 0 : state.callback({
|
|
357
489
|
order_id: state.bookingId
|
|
358
490
|
});
|
|
@@ -375,8 +507,19 @@ var Footer = function Footer(props) {
|
|
|
375
507
|
* @Date: 2024-01-30 16:57
|
|
376
508
|
*/
|
|
377
509
|
var handleRefund = function handleRefund() {
|
|
510
|
+
if (isTerminal !== null && isTerminal !== void 0 && isTerminal()) {
|
|
511
|
+
var _interaction$utils2, _interaction$utils2$p;
|
|
512
|
+
return interaction === null || interaction === void 0 ? void 0 : (_interaction$utils2 = interaction.utils) === null || _interaction$utils2 === void 0 ? void 0 : (_interaction$utils2$p = _interaction$utils2.postMessageToApp) === null || _interaction$utils2$p === void 0 ? void 0 : _interaction$utils2$p.call(_interaction$utils2, {
|
|
513
|
+
module: 'booking',
|
|
514
|
+
key: 'booking_refund',
|
|
515
|
+
data: {
|
|
516
|
+
order_id: state.bookingId
|
|
517
|
+
},
|
|
518
|
+
origin: '/booking'
|
|
519
|
+
});
|
|
520
|
+
}
|
|
378
521
|
state.action({
|
|
379
|
-
type:
|
|
522
|
+
type: 'pisell1.handleRefund',
|
|
380
523
|
data: {
|
|
381
524
|
orderId: state.bookingId
|
|
382
525
|
},
|
|
@@ -397,18 +540,155 @@ var Footer = function Footer(props) {
|
|
|
397
540
|
* @Date: 2024-01-30 16:57
|
|
398
541
|
*/
|
|
399
542
|
var checkoutButton = useMemo(function () {
|
|
543
|
+
var buttonType = 'primary';
|
|
544
|
+
if (transaction_habit_selection.type === 'service_now_pay_later') {
|
|
545
|
+
buttonType = 'default';
|
|
546
|
+
}
|
|
547
|
+
if (source === 'payment') {
|
|
548
|
+
buttonType = 'primary';
|
|
549
|
+
}
|
|
550
|
+
if (!isEdit) {
|
|
551
|
+
buttonType = 'primary';
|
|
552
|
+
}
|
|
400
553
|
return /*#__PURE__*/React.createElement(Button, {
|
|
401
554
|
className: "pisell-lowcode__booking-footer-buttons-item"
|
|
402
555
|
// payment页面为主按钮 info页面 编辑时默认按钮 否则是主按钮
|
|
403
556
|
,
|
|
404
|
-
type:
|
|
557
|
+
type: buttonType,
|
|
405
558
|
loading: checkoutLoading,
|
|
406
559
|
onClick: function onClick() {
|
|
407
560
|
handleCheckout();
|
|
408
561
|
},
|
|
409
562
|
disabled: isDisabled
|
|
410
|
-
}, locales.getText(
|
|
563
|
+
}, locales.getText('pisell2.text.checkout'));
|
|
411
564
|
}, [isEdit, checkoutLoading, isDisabled, state, source]);
|
|
565
|
+
var handleMenuClick = /*#__PURE__*/function () {
|
|
566
|
+
var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(e) {
|
|
567
|
+
var id, customer, res, _state$bookingDetail, _state$bookingDetail2;
|
|
568
|
+
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
|
569
|
+
while (1) switch (_context6.prev = _context6.next) {
|
|
570
|
+
case 0:
|
|
571
|
+
id = state.bookingId;
|
|
572
|
+
customer = state.bookingDetail.customer;
|
|
573
|
+
if (!isEdit) {
|
|
574
|
+
_context6.next = 8;
|
|
575
|
+
break;
|
|
576
|
+
}
|
|
577
|
+
_context6.next = 5;
|
|
578
|
+
return handleSave({
|
|
579
|
+
type: 'checkout',
|
|
580
|
+
messageShow: false
|
|
581
|
+
});
|
|
582
|
+
case 5:
|
|
583
|
+
res = _context6.sent;
|
|
584
|
+
id = (res === null || res === void 0 ? void 0 : res.order_id) || state.bookingId;
|
|
585
|
+
customer = res !== null && res !== void 0 && res.customer_id ? {
|
|
586
|
+
id: res === null || res === void 0 ? void 0 : res.customer_id
|
|
587
|
+
} : state.bookingDetail.customer;
|
|
588
|
+
case 8:
|
|
589
|
+
if (e.key === 'sendMail') {
|
|
590
|
+
console.log(e);
|
|
591
|
+
state.action({
|
|
592
|
+
type: 'pisell1.sendPayLinkEmail',
|
|
593
|
+
data: {
|
|
594
|
+
id: id,
|
|
595
|
+
is_deposit: state.bookingDetail.is_deposit || Number((_state$bookingDetail = state.bookingDetail) === null || _state$bookingDetail === void 0 ? void 0 : _state$bookingDetail.deposit_amount),
|
|
596
|
+
deposit_payment_time: state.bookingDetail.deposit_payment_time,
|
|
597
|
+
customer: customer,
|
|
598
|
+
contacts: (_state$bookingDetail2 = state.bookingDetail) === null || _state$bookingDetail2 === void 0 ? void 0 : _state$bookingDetail2.contacts
|
|
599
|
+
},
|
|
600
|
+
callback: function callback() {}
|
|
601
|
+
});
|
|
602
|
+
}
|
|
603
|
+
if (e.key === 'copy') {
|
|
604
|
+
state.action({
|
|
605
|
+
type: 'pisell1.genClientPayLink',
|
|
606
|
+
data: {
|
|
607
|
+
id: id
|
|
608
|
+
},
|
|
609
|
+
callback: function callback() {}
|
|
610
|
+
});
|
|
611
|
+
}
|
|
612
|
+
case 10:
|
|
613
|
+
case "end":
|
|
614
|
+
return _context6.stop();
|
|
615
|
+
}
|
|
616
|
+
}, _callee6);
|
|
617
|
+
}));
|
|
618
|
+
return function handleMenuClick(_x5) {
|
|
619
|
+
return _ref7.apply(this, arguments);
|
|
620
|
+
};
|
|
621
|
+
}();
|
|
622
|
+
|
|
623
|
+
// 重新预约
|
|
624
|
+
var handleRebook = function handleRebook() {
|
|
625
|
+
var _state$onRebook;
|
|
626
|
+
(_state$onRebook = state.onRebook) === null || _state$onRebook === void 0 ? void 0 : _state$onRebook.call(state);
|
|
627
|
+
};
|
|
628
|
+
// 销售
|
|
629
|
+
var handleSale = function handleSale() {
|
|
630
|
+
if (isTerminal !== null && isTerminal !== void 0 && isTerminal()) {
|
|
631
|
+
var _interaction$utils3, _interaction$utils3$p;
|
|
632
|
+
return interaction === null || interaction === void 0 ? void 0 : (_interaction$utils3 = interaction.utils) === null || _interaction$utils3 === void 0 ? void 0 : (_interaction$utils3$p = _interaction$utils3.postMessageToApp) === null || _interaction$utils3$p === void 0 ? void 0 : _interaction$utils3$p.call(_interaction$utils3, {
|
|
633
|
+
module: 'booking',
|
|
634
|
+
key: 'edit_order',
|
|
635
|
+
data: {
|
|
636
|
+
order_id: state.bookingId
|
|
637
|
+
}
|
|
638
|
+
});
|
|
639
|
+
}
|
|
640
|
+
if (state.channelDisabledEdit) {
|
|
641
|
+
modal.warning({
|
|
642
|
+
okText: locales.getText('pisell2.text.ok'),
|
|
643
|
+
content: locales.getText('pisell2.text.terminal-edit-message')
|
|
644
|
+
});
|
|
645
|
+
return;
|
|
646
|
+
}
|
|
647
|
+
setActiveTab === null || setActiveTab === void 0 ? void 0 : setActiveTab('addons');
|
|
648
|
+
};
|
|
649
|
+
// 打印
|
|
650
|
+
var handlePrint = function handlePrint() {};
|
|
651
|
+
// 订单详情
|
|
652
|
+
var handleOrderDetail = function handleOrderDetail() {
|
|
653
|
+
if (isTerminal !== null && isTerminal !== void 0 && isTerminal()) {
|
|
654
|
+
return interaction.utils.postMessageToApp({
|
|
655
|
+
module: 'booking',
|
|
656
|
+
key: 'view_order',
|
|
657
|
+
data: {
|
|
658
|
+
order_id: state.bookingId
|
|
659
|
+
},
|
|
660
|
+
origin: '/booking'
|
|
661
|
+
});
|
|
662
|
+
}
|
|
663
|
+
state.action({
|
|
664
|
+
type: 'pisell1.goOrderDetail',
|
|
665
|
+
data: {
|
|
666
|
+
orderId: state.bookingId
|
|
667
|
+
},
|
|
668
|
+
callback: function callback() {
|
|
669
|
+
state === null || state === void 0 ? void 0 : state.callback();
|
|
670
|
+
}
|
|
671
|
+
});
|
|
672
|
+
};
|
|
673
|
+
// 取消订单
|
|
674
|
+
var handleCancel = function handleCancel() {};
|
|
675
|
+
var paymentLinkButton = useMemo(function () {
|
|
676
|
+
var items = [{
|
|
677
|
+
label: locales.getText('pisell2.text.send-mail'),
|
|
678
|
+
key: 'sendMail'
|
|
679
|
+
}, {
|
|
680
|
+
label: locales.getText('pisell2.text.copy-to-clipboard'),
|
|
681
|
+
key: 'copy'
|
|
682
|
+
}];
|
|
683
|
+
return /*#__PURE__*/React.createElement(Dropdown, {
|
|
684
|
+
menu: {
|
|
685
|
+
items: items,
|
|
686
|
+
onClick: handleMenuClick
|
|
687
|
+
}
|
|
688
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
689
|
+
className: "pisell-lowcode__booking-footer-buttons-item"
|
|
690
|
+
}, /*#__PURE__*/React.createElement(Space, null, locales.getText('pisell2.text.payment-link'), /*#__PURE__*/React.createElement(DownOutlined, null))));
|
|
691
|
+
}, [handleMenuClick]);
|
|
412
692
|
|
|
413
693
|
/**
|
|
414
694
|
* @title: 保存按钮
|
|
@@ -419,17 +699,21 @@ var Footer = function Footer(props) {
|
|
|
419
699
|
* @Date: 2024-01-30 16:58
|
|
420
700
|
*/
|
|
421
701
|
var saveButton = useMemo(function () {
|
|
702
|
+
var buttonType = 'default';
|
|
703
|
+
if (transaction_habit_selection.type === 'service_now_pay_later') {
|
|
704
|
+
buttonType = 'primary';
|
|
705
|
+
}
|
|
422
706
|
return /*#__PURE__*/React.createElement(Button, {
|
|
423
707
|
className: "pisell-lowcode__booking-footer-buttons-item",
|
|
424
|
-
type:
|
|
708
|
+
type: buttonType,
|
|
425
709
|
onClick: function onClick() {
|
|
426
710
|
handleSave({
|
|
427
|
-
type:
|
|
711
|
+
type: 'save'
|
|
428
712
|
});
|
|
429
713
|
},
|
|
430
714
|
disabled: isDisabled || !isEdit,
|
|
431
715
|
loading: loading
|
|
432
|
-
}, locales.getText(
|
|
716
|
+
}, locales.getText('pisell2.text.save'));
|
|
433
717
|
}, [loading, isDisabled, isEdit, infoEdit, addonsEdit, state]);
|
|
434
718
|
|
|
435
719
|
/**
|
|
@@ -443,12 +727,27 @@ var Footer = function Footer(props) {
|
|
|
443
727
|
var completeButton = useMemo(function () {
|
|
444
728
|
return /*#__PURE__*/React.createElement(Button, {
|
|
445
729
|
className: "pisell-lowcode__booking-footer-buttons-item",
|
|
446
|
-
type:
|
|
730
|
+
type: 'primary',
|
|
447
731
|
onClick: onSelect,
|
|
448
|
-
disabled: state.appointment_status ===
|
|
449
|
-
}, locales.getText(
|
|
732
|
+
disabled: state.appointment_status === 'completed'
|
|
733
|
+
}, locales.getText('pisell2.text.status.completed'));
|
|
450
734
|
}, [state.appointment_status]);
|
|
451
735
|
|
|
736
|
+
/**
|
|
737
|
+
* @title: Rebook按钮
|
|
738
|
+
* @description:
|
|
739
|
+
* @param {*} useMemo
|
|
740
|
+
* @return {*}
|
|
741
|
+
* @Author: zhiwei.Wang
|
|
742
|
+
* @Date: 2024-01-30 16:58
|
|
743
|
+
*/
|
|
744
|
+
var rebookButton = useMemo(function () {
|
|
745
|
+
return /*#__PURE__*/React.createElement(Button, {
|
|
746
|
+
className: "pisell-lowcode__booking-footer-buttons-item",
|
|
747
|
+
onClick: handleRebook
|
|
748
|
+
}, locales.getText('pisell2.text.rebook'));
|
|
749
|
+
}, [state === null || state === void 0 ? void 0 : state.onRebook]);
|
|
750
|
+
|
|
452
751
|
/**
|
|
453
752
|
* @title: 退款按钮
|
|
454
753
|
* @description:
|
|
@@ -462,13 +761,15 @@ var Footer = function Footer(props) {
|
|
|
462
761
|
className: "pisell-lowcode__booking-footer-buttons-item",
|
|
463
762
|
type: "default",
|
|
464
763
|
onClick: handleRefund
|
|
465
|
-
}, locales.getText(
|
|
764
|
+
}, locales.getText('pisell2.text.refund'));
|
|
466
765
|
}, []);
|
|
467
766
|
var buttonMap = {
|
|
468
767
|
checkout: checkoutButton,
|
|
469
768
|
save: saveButton,
|
|
470
769
|
complete: completeButton,
|
|
471
|
-
refund: refundButton
|
|
770
|
+
refund: refundButton,
|
|
771
|
+
paymentLink: paymentLinkButton,
|
|
772
|
+
rebook: rebookButton
|
|
472
773
|
};
|
|
473
774
|
|
|
474
775
|
/**
|
|
@@ -480,10 +781,10 @@ var Footer = function Footer(props) {
|
|
|
480
781
|
* @Date: 2024-01-30 16:58
|
|
481
782
|
*/
|
|
482
783
|
var isCheckout = useMemo(function () {
|
|
483
|
-
var _state$
|
|
484
|
-
var list = [
|
|
784
|
+
var _state$bookingDetail3, _state$bookingDetail4, _state$bookingDetail5;
|
|
785
|
+
var list = ['unfulfilled', 'partially_paid', 'unpaid', 'payment_processing'];
|
|
485
786
|
// (支付状态 = 已支付 || 部分付款 || 未付款 || 支付处理中) && 预约状态 !== 已取消
|
|
486
|
-
if (!state.bookingId || ((_state$
|
|
787
|
+
if (!state.bookingId || ((_state$bookingDetail3 = state.bookingDetail) === null || _state$bookingDetail3 === void 0 ? void 0 : (_state$bookingDetail4 = _state$bookingDetail3.bookings) === null || _state$bookingDetail4 === void 0 ? void 0 : _state$bookingDetail4.appointment_status) !== 'cancelled' && list.includes(state === null || state === void 0 ? void 0 : (_state$bookingDetail5 = state.bookingDetail) === null || _state$bookingDetail5 === void 0 ? void 0 : _state$bookingDetail5.payment_status) && !state.disabledEdit) {
|
|
487
788
|
return true;
|
|
488
789
|
} else {
|
|
489
790
|
if (total.notPaidAmount > 0) {
|
|
@@ -494,12 +795,12 @@ var Footer = function Footer(props) {
|
|
|
494
795
|
}, [state.bookingDetail, total.notPaidAmount]);
|
|
495
796
|
var _buttons = useMemo(function () {
|
|
496
797
|
// 如果预约是取消状态,则不展示任何按钮
|
|
497
|
-
if (state.appointment_status ===
|
|
498
|
-
return [];
|
|
798
|
+
if (state.appointment_status === 'cancelled') {
|
|
799
|
+
return [buttonMap.rebook];
|
|
499
800
|
}
|
|
500
801
|
|
|
501
802
|
// addons 默认为新增按钮, 如果有新增数据 则添加save按钮
|
|
502
|
-
if (source ===
|
|
803
|
+
if (source === 'addons') {
|
|
503
804
|
var arr = [];
|
|
504
805
|
arr = _toConsumableArray(buttons);
|
|
505
806
|
if (isEdit) {
|
|
@@ -514,25 +815,36 @@ var Footer = function Footer(props) {
|
|
|
514
815
|
// }
|
|
515
816
|
|
|
516
817
|
// payment
|
|
517
|
-
if (source ===
|
|
818
|
+
if (source === 'payment') {
|
|
518
819
|
var _arr2 = [];
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
_arr2.push(buttonMap.refund);
|
|
820
|
+
if (state.bookingId && isShowPaymentLink) {
|
|
821
|
+
_arr2.push(buttonMap.paymentLink);
|
|
522
822
|
}
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
823
|
+
if (!isTeam) {
|
|
824
|
+
// 有已支付金额, 展示退款
|
|
825
|
+
if (total.paidAmount > 0) {
|
|
826
|
+
_arr2.push(buttonMap.refund);
|
|
827
|
+
}
|
|
828
|
+
// 有未支付金额 展示checkout
|
|
829
|
+
if (isCheckout) {
|
|
830
|
+
_arr2.push(buttonMap.checkout);
|
|
831
|
+
}
|
|
526
832
|
}
|
|
527
833
|
return _arr2;
|
|
528
834
|
}
|
|
529
835
|
|
|
530
836
|
// info
|
|
531
|
-
if (source ===
|
|
837
|
+
if (source === 'info') {
|
|
532
838
|
var _arr3 = [];
|
|
839
|
+
// if (state.bookingId && isShowPaymentLink) {
|
|
840
|
+
// arr.push(buttonMap.paymentLink);
|
|
841
|
+
// }
|
|
533
842
|
// 有未支付金额 展示checkout
|
|
534
843
|
if (isCheckout) {
|
|
535
|
-
|
|
844
|
+
// 有未支付金额 展示checkout
|
|
845
|
+
if (!isTeam) {
|
|
846
|
+
_arr3.push(buttonMap.checkout);
|
|
847
|
+
}
|
|
536
848
|
} else {
|
|
537
849
|
// 没有任何编辑时,展示完成按钮
|
|
538
850
|
if (!isEdit) {
|
|
@@ -543,10 +855,84 @@ var Footer = function Footer(props) {
|
|
|
543
855
|
if (isEdit) {
|
|
544
856
|
_arr3.push(buttonMap.save);
|
|
545
857
|
}
|
|
858
|
+
// if (isTeam) {
|
|
859
|
+
// if (arr.length === 0) {
|
|
860
|
+
// return [buttonMap.rebook];
|
|
861
|
+
// }
|
|
862
|
+
// }
|
|
863
|
+
|
|
546
864
|
return _arr3;
|
|
547
865
|
}
|
|
866
|
+
if (source === 'addTime') {
|
|
867
|
+
var _arr4 = [];
|
|
868
|
+
_arr4 = _toConsumableArray(buttons);
|
|
869
|
+
return _arr4;
|
|
870
|
+
}
|
|
548
871
|
return [];
|
|
549
|
-
}, [buttons, total, isEdit, checkoutLoading, isDisabled,
|
|
872
|
+
}, [buttons, total, isEdit, checkoutLoading, isDisabled, source, buttonMap, loading, isCheckout, state, isTeam]);
|
|
873
|
+
var moreButton = useMemo(function () {
|
|
874
|
+
var arr = [];
|
|
875
|
+
if (!state.bookingId) {
|
|
876
|
+
return [];
|
|
877
|
+
}
|
|
878
|
+
if (source !== 'info') {
|
|
879
|
+
return [];
|
|
880
|
+
}
|
|
881
|
+
if (state.renderType === 'eventBooking') {
|
|
882
|
+
return [];
|
|
883
|
+
}
|
|
884
|
+
|
|
885
|
+
// 如果外部没有按钮, 则rebook按钮放在外面
|
|
886
|
+
if (_buttons.length !== 0) {
|
|
887
|
+
// 支付链接
|
|
888
|
+
if (state.bookingId && isShowPaymentLink) {
|
|
889
|
+
arr.push(actionMap.paymentLink);
|
|
890
|
+
}
|
|
891
|
+
}
|
|
892
|
+
if (transaction_habit_selection.button_rows == 1) {
|
|
893
|
+
if (state.appointment_status !== 'cancelled') {
|
|
894
|
+
if (!state.disabledEdit && !state.isBookingCreatePage) {
|
|
895
|
+
arr.push(actionMap.sale);
|
|
896
|
+
}
|
|
897
|
+
}
|
|
898
|
+
}
|
|
899
|
+
|
|
900
|
+
// if (transaction_habit_selection.button_rows == 1) {
|
|
901
|
+
// if (isTerminal?.()) {
|
|
902
|
+
// arr.push(actionMap.print);
|
|
903
|
+
// }
|
|
904
|
+
// }
|
|
905
|
+
|
|
906
|
+
if (!isTeam) {
|
|
907
|
+
if (transaction_habit_selection.button_rows == 1) {
|
|
908
|
+
arr.push(actionMap.orderDetail);
|
|
909
|
+
}
|
|
910
|
+
if (total.paidAmount > 0) {
|
|
911
|
+
arr.push(actionMap.refund);
|
|
912
|
+
}
|
|
913
|
+
}
|
|
914
|
+
|
|
915
|
+
// 重新预约
|
|
916
|
+
if (state.appointment_status !== 'cancelled') {
|
|
917
|
+
arr.push(actionMap.rebook);
|
|
918
|
+
}
|
|
919
|
+
// 取消订单
|
|
920
|
+
// arr.push(actionMap.cancelOrder);
|
|
921
|
+
return arr;
|
|
922
|
+
}, [state, total, isShowPaymentLink, source, _buttons.length]);
|
|
923
|
+
|
|
924
|
+
/**
|
|
925
|
+
* 是否只有定金支付
|
|
926
|
+
*/
|
|
927
|
+
var isOnlyDeposit = useMemo(function () {
|
|
928
|
+
var _state$bookingDetail6, _state$bookingDetail7, _state$bookingDetail8, _state$bookingDetail9;
|
|
929
|
+
if (state !== null && state !== void 0 && (_state$bookingDetail6 = state.bookingDetail) !== null && _state$bookingDetail6 !== void 0 && _state$bookingDetail6.deposit_payment_time && state !== null && state !== void 0 && (_state$bookingDetail7 = state.bookingDetail) !== null && _state$bookingDetail7 !== void 0 && (_state$bookingDetail8 = _state$bookingDetail7.payment_types) !== null && _state$bookingDetail8 !== void 0 && (_state$bookingDetail9 = _state$bookingDetail8.every) !== null && _state$bookingDetail9 !== void 0 && _state$bookingDetail9.call(_state$bookingDetail8, function (item) {
|
|
930
|
+
return item === 'deposit';
|
|
931
|
+
})) {
|
|
932
|
+
return true;
|
|
933
|
+
}
|
|
934
|
+
return false;
|
|
935
|
+
}, [state === null || state === void 0 ? void 0 : state.bookingDetail]);
|
|
550
936
|
|
|
551
937
|
/**
|
|
552
938
|
* @title: 总计文案
|
|
@@ -557,27 +943,33 @@ var Footer = function Footer(props) {
|
|
|
557
943
|
* @Date: 2024-01-30 17:00
|
|
558
944
|
*/
|
|
559
945
|
var totalText = useMemo(function () {
|
|
560
|
-
var str =
|
|
946
|
+
var str = '';
|
|
947
|
+
|
|
948
|
+
// 只有定金支付时,直接展示
|
|
949
|
+
if (isOnlyDeposit) {
|
|
950
|
+
var _state$bookingDetail10;
|
|
951
|
+
return "".concat(locales.getText('pisell2.text.deposit-paid'), " ").concat(formatAmount(state === null || state === void 0 ? void 0 : (_state$bookingDetail10 = state.bookingDetail) === null || _state$bookingDetail10 === void 0 ? void 0 : _state$bookingDetail10.deposit_paid_amount, 2, (state === null || state === void 0 ? void 0 : state.amountSymbol) || '$'), " ").concat(total.duration ? "(".concat(total.duration, ")") : '');
|
|
952
|
+
}
|
|
561
953
|
|
|
562
954
|
// 有退款金额时, 直接展示 退款:$8.00
|
|
563
955
|
if (total.totalRefundAmount > 0) {
|
|
564
|
-
return "".concat(locales.getText(
|
|
956
|
+
return "".concat(locales.getText('pisell2.text.refunded-amount'), ": ").concat(formatAmount(total.totalRefundAmount, 2, (state === null || state === void 0 ? void 0 : state.amountSymbol) || '$'));
|
|
565
957
|
}
|
|
566
958
|
|
|
567
959
|
// 如果待支付金额小于0 则展示全额支付
|
|
568
960
|
if (total.notPaidAmount <= 0 && state.bookingId) {
|
|
569
|
-
str = "".concat(locales.getText(
|
|
961
|
+
str = "".concat(locales.getText('pisell1.text.fully-paid'), ": ").concat(formatAmount(total.sumTotalAmount, 2, (state === null || state === void 0 ? void 0 : state.amountSymbol) || '$'));
|
|
570
962
|
}
|
|
571
963
|
|
|
572
964
|
// 待支付金额大于0 并且是新增时, 展示 待支付金额
|
|
573
965
|
if (total.notPaidAmount > 0 || !state.bookingId) {
|
|
574
|
-
str = "".concat(locales.getText(
|
|
966
|
+
str = "".concat(locales.getText('pisell2.text.to-pay'), ": ").concat(formatAmount(total.notPaidAmount, 2, (state === null || state === void 0 ? void 0 : state.amountSymbol) || '$'));
|
|
575
967
|
}
|
|
576
968
|
if (total.duration) {
|
|
577
969
|
str = str + " (".concat(total.duration, ")");
|
|
578
970
|
}
|
|
579
971
|
return str;
|
|
580
|
-
}, [state, total, state.bookingId]);
|
|
972
|
+
}, [state, total, state.bookingId, isOnlyDeposit]);
|
|
581
973
|
|
|
582
974
|
/**
|
|
583
975
|
* @title: 欠款文案
|
|
@@ -588,13 +980,17 @@ var Footer = function Footer(props) {
|
|
|
588
980
|
* @Date: 2024-01-30 17:01
|
|
589
981
|
*/
|
|
590
982
|
var arrearsText = useMemo(function () {
|
|
591
|
-
var str =
|
|
983
|
+
var str = '';
|
|
984
|
+
// 只有定金支付时不展示退款金额
|
|
985
|
+
if (isOnlyDeposit) {
|
|
986
|
+
return str;
|
|
987
|
+
}
|
|
592
988
|
// 欠款
|
|
593
989
|
if (total.dueAmount < 0) {
|
|
594
|
-
str = "".concat(locales.getText(
|
|
990
|
+
str = "".concat(locales.getText('pisell1.text.refund-customer'), ": ").concat(formatAmount(total.dueAmount, 2, (state === null || state === void 0 ? void 0 : state.amountSymbol) || '$'));
|
|
595
991
|
}
|
|
596
992
|
return str;
|
|
597
|
-
}, [state, total]);
|
|
993
|
+
}, [state, total, isOnlyDeposit]);
|
|
598
994
|
|
|
599
995
|
/**
|
|
600
996
|
* @title: 税费文案
|
|
@@ -606,17 +1002,17 @@ var Footer = function Footer(props) {
|
|
|
606
1002
|
*/
|
|
607
1003
|
var taxText = useMemo(function () {
|
|
608
1004
|
if (!(state !== null && state !== void 0 && state.bookingDetail)) {
|
|
609
|
-
return
|
|
1005
|
+
return '';
|
|
610
1006
|
}
|
|
611
|
-
var str =
|
|
1007
|
+
var str = '';
|
|
612
1008
|
str = str + state.bookingDetail.tax_title;
|
|
613
|
-
str = str +
|
|
1009
|
+
str = str + ' ' + Number(state.bookingDetail.tax_rate) * 100 + '%';
|
|
614
1010
|
|
|
615
1011
|
// 判断税费是 包含在订单内 还是单独的
|
|
616
1012
|
if (is_price_include_tax(state)) {
|
|
617
|
-
str = str +
|
|
1013
|
+
str = str + ' ' + locales.getText('pisell1.text.included');
|
|
618
1014
|
} else {
|
|
619
|
-
str = str +
|
|
1015
|
+
str = str + ' ' + locales.getText('pisell1.text.not-contain');
|
|
620
1016
|
}
|
|
621
1017
|
return str;
|
|
622
1018
|
}, [state === null || state === void 0 ? void 0 : state.bookingDetail]);
|
|
@@ -636,12 +1032,43 @@ var Footer = function Footer(props) {
|
|
|
636
1032
|
if (!state.bookingDetail) {
|
|
637
1033
|
return true;
|
|
638
1034
|
}
|
|
639
|
-
if (!((_state$addons3 = state.addons) !== null && _state$addons3 !== void 0 && _state$addons3.load)) {
|
|
1035
|
+
if (!((_state$addons3 = state.addons) !== null && _state$addons3 !== void 0 && _state$addons3.load) && state.renderType !== 'eventBooking' && !state.isBookingCreatePage) {
|
|
640
1036
|
return true;
|
|
641
1037
|
}
|
|
642
1038
|
}
|
|
643
1039
|
return false;
|
|
644
|
-
}, [state.bookingId, state.bookingDetail, (_state$addons4 = state.addons) === null || _state$addons4 === void 0 ? void 0 : _state$addons4.load]);
|
|
1040
|
+
}, [state.bookingId, state.bookingDetail, (_state$addons4 = state.addons) === null || _state$addons4 === void 0 ? void 0 : _state$addons4.load, state.renderType]);
|
|
1041
|
+
var menuChange = function menuChange(e) {
|
|
1042
|
+
console.log('e.key', e.key);
|
|
1043
|
+
switch (e.key) {
|
|
1044
|
+
case 'sendMail':
|
|
1045
|
+
handleMenuClick(e);
|
|
1046
|
+
break;
|
|
1047
|
+
case 'copy':
|
|
1048
|
+
handleMenuClick(e);
|
|
1049
|
+
break;
|
|
1050
|
+
case 'rebook':
|
|
1051
|
+
handleRebook();
|
|
1052
|
+
break;
|
|
1053
|
+
case 'sale':
|
|
1054
|
+
handleSale();
|
|
1055
|
+
break;
|
|
1056
|
+
case 'print':
|
|
1057
|
+
handlePrint();
|
|
1058
|
+
break;
|
|
1059
|
+
case 'orderDetail':
|
|
1060
|
+
handleOrderDetail();
|
|
1061
|
+
break;
|
|
1062
|
+
case 'refund':
|
|
1063
|
+
handleRefund();
|
|
1064
|
+
break;
|
|
1065
|
+
case 'cancelOrder':
|
|
1066
|
+
handleCancel();
|
|
1067
|
+
break;
|
|
1068
|
+
default:
|
|
1069
|
+
break;
|
|
1070
|
+
}
|
|
1071
|
+
};
|
|
645
1072
|
return /*#__PURE__*/React.createElement(Skeleton, {
|
|
646
1073
|
title: false,
|
|
647
1074
|
round: true,
|
|
@@ -660,13 +1087,13 @@ var Footer = function Footer(props) {
|
|
|
660
1087
|
onClick: function onClick() {
|
|
661
1088
|
setShowDetail(!showDetail);
|
|
662
1089
|
}
|
|
663
|
-
}, locales.getText(
|
|
664
|
-
className: classNames(
|
|
665
|
-
|
|
1090
|
+
}, locales.getText('pisell2.text.details'), ' ', /*#__PURE__*/React.createElement(ChevronDown, {
|
|
1091
|
+
className: classNames('pisell-lowcode__booking-footer-right-icon', {
|
|
1092
|
+
'pisell-lowcode__booking-footer-right-icon-show': showDetail
|
|
666
1093
|
})
|
|
667
1094
|
}))), /*#__PURE__*/React.createElement("div", {
|
|
668
|
-
className: classNames(
|
|
669
|
-
|
|
1095
|
+
className: classNames('pisell-lowcode__booking-footer-total-detail', {
|
|
1096
|
+
'pisell-lowcode__booking-footer-total-detail-show': showDetail
|
|
670
1097
|
})
|
|
671
1098
|
}, /*#__PURE__*/React.createElement("div", {
|
|
672
1099
|
className: "order-total-item-border"
|
|
@@ -674,9 +1101,9 @@ var Footer = function Footer(props) {
|
|
|
674
1101
|
className: "order-total-item"
|
|
675
1102
|
}, /*#__PURE__*/React.createElement("span", {
|
|
676
1103
|
className: "order-total-item-label"
|
|
677
|
-
}, locales.getText(
|
|
1104
|
+
}, locales.getText('pisell1.text.subtotal')), /*#__PURE__*/React.createElement("span", {
|
|
678
1105
|
className: "order-total-item-value"
|
|
679
|
-
}, formatAmount(total.productAmount, 2, (state === null || state === void 0 ? void 0 : state.amountSymbol) ||
|
|
1106
|
+
}, formatAmount(total.productAmount, 2, (state === null || state === void 0 ? void 0 : state.amountSymbol) || '$'))), (((_state$bookingDetail11 = state.bookingDetail) === null || _state$bookingDetail11 === void 0 ? void 0 : _state$bookingDetail11.surcharge) || []).map(function (d) {
|
|
680
1107
|
return /*#__PURE__*/React.createElement("div", {
|
|
681
1108
|
className: "order-total-item",
|
|
682
1109
|
key: d.id
|
|
@@ -684,63 +1111,89 @@ var Footer = function Footer(props) {
|
|
|
684
1111
|
className: "order-total-item-label"
|
|
685
1112
|
}, d.name[state.locale]), /*#__PURE__*/React.createElement("span", {
|
|
686
1113
|
className: "order-total-item-value"
|
|
687
|
-
}, formatAmount(d.amount, 2, (state === null || state === void 0 ? void 0 : state.amountSymbol) ||
|
|
1114
|
+
}, formatAmount(d.amount, 2, (state === null || state === void 0 ? void 0 : state.amountSymbol) || '$')));
|
|
688
1115
|
}), state.bookingId ? /*#__PURE__*/React.createElement("div", {
|
|
689
1116
|
className: "order-total-item"
|
|
690
1117
|
}, /*#__PURE__*/React.createElement("div", {
|
|
691
1118
|
className: "order-total-item-label"
|
|
692
1119
|
}, /*#__PURE__*/React.createElement("div", {
|
|
693
1120
|
className: ""
|
|
694
|
-
}, locales.getText(
|
|
1121
|
+
}, locales.getText('pisell1.text.tax')), /*#__PURE__*/React.createElement("div", {
|
|
695
1122
|
className: "",
|
|
696
1123
|
style: {
|
|
697
1124
|
fontSize: 14
|
|
698
1125
|
}
|
|
699
1126
|
}, taxText)), /*#__PURE__*/React.createElement("span", {
|
|
700
1127
|
className: "order-total-item-value"
|
|
701
|
-
}, formatAmount(total.tax, 2, (state === null || state === void 0 ? void 0 : state.amountSymbol) ||
|
|
1128
|
+
}, formatAmount(total.tax, 2, (state === null || state === void 0 ? void 0 : state.amountSymbol) || '$'))) : null, state.bookingId ? /*#__PURE__*/React.createElement("div", {
|
|
702
1129
|
className: "order-total-item"
|
|
703
1130
|
}, /*#__PURE__*/React.createElement("div", {
|
|
704
1131
|
className: "order-total-item-label"
|
|
705
|
-
}, locales.getText(
|
|
1132
|
+
}, locales.getText('pisell2.text.order-discount')), /*#__PURE__*/React.createElement("span", {
|
|
706
1133
|
className: "order-total-item-value"
|
|
707
|
-
}, formatAmount(total.shopDiscount, 2, (state === null || state === void 0 ? void 0 : state.amountSymbol) ||
|
|
1134
|
+
}, formatAmount(total.shopDiscount, 2, (state === null || state === void 0 ? void 0 : state.amountSymbol) || '$'))) : null, /*#__PURE__*/React.createElement("div", {
|
|
708
1135
|
className: "order-total-item"
|
|
709
1136
|
}, /*#__PURE__*/React.createElement("span", {
|
|
710
1137
|
className: "order-total-item-label order-total-item-label-bold"
|
|
711
|
-
}, locales.getText(
|
|
1138
|
+
}, locales.getText('pisell1.text.total')), /*#__PURE__*/React.createElement("span", {
|
|
712
1139
|
className: "order-total-item-value"
|
|
713
|
-
}, formatAmount(total.expectAmount, 2, (state === null || state === void 0 ? void 0 : state.amountSymbol) ||
|
|
1140
|
+
}, formatAmount(total.expectAmount, 2, (state === null || state === void 0 ? void 0 : state.amountSymbol) || '$'))), !!total.roundingAmount && /*#__PURE__*/React.createElement("div", {
|
|
1141
|
+
className: "order-total-item"
|
|
1142
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
1143
|
+
className: "order-total-item-label"
|
|
1144
|
+
}, locales.getText('pisell1.text.rounding')), /*#__PURE__*/React.createElement("span", {
|
|
1145
|
+
className: "order-total-item-value"
|
|
1146
|
+
}, formatAmount(total.roundingAmount, 2, (state === null || state === void 0 ? void 0 : state.amountSymbol) || '$'))), state.bookingId ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
714
1147
|
className: "order-total-item-border"
|
|
715
1148
|
}), /*#__PURE__*/React.createElement("div", {
|
|
716
1149
|
className: "order-total-item"
|
|
717
1150
|
}, /*#__PURE__*/React.createElement("span", {
|
|
718
1151
|
className: "order-total-item-label order-total-item-label-bold"
|
|
719
|
-
}, locales.getText(
|
|
1152
|
+
}, locales.getText('pisell2.text.amount-paid-on-order')), /*#__PURE__*/React.createElement("span", {
|
|
720
1153
|
className: "order-total-item-value"
|
|
721
|
-
}, formatAmount(total.orderPaidAmount, 2, (state === null || state === void 0 ? void 0 : state.amountSymbol) ||
|
|
1154
|
+
}, formatAmount(total.orderPaidAmount, 2, (state === null || state === void 0 ? void 0 : state.amountSymbol) || '$'))), /*#__PURE__*/React.createElement("div", {
|
|
722
1155
|
className: "order-total-item"
|
|
723
1156
|
}, /*#__PURE__*/React.createElement("span", {
|
|
724
1157
|
className: "order-total-item-label"
|
|
725
|
-
}, locales.getText(
|
|
1158
|
+
}, locales.getText('pisell1.text.payment-fee')), /*#__PURE__*/React.createElement("span", {
|
|
726
1159
|
className: "order-total-item-value"
|
|
727
|
-
}, formatAmount(total.paySurchargeFee, 2, (state === null || state === void 0 ? void 0 : state.amountSymbol) ||
|
|
1160
|
+
}, formatAmount(total.paySurchargeFee, 2, (state === null || state === void 0 ? void 0 : state.amountSymbol) || '$'))), /*#__PURE__*/React.createElement("div", {
|
|
728
1161
|
className: "order-total-item"
|
|
729
1162
|
}, /*#__PURE__*/React.createElement("span", {
|
|
730
1163
|
className: "order-total-item-label order-total-item-label-bold"
|
|
731
|
-
}, locales.getText(
|
|
1164
|
+
}, locales.getText('pisell2.text.amount-actually-paid-by-the-customer')), /*#__PURE__*/React.createElement("span", {
|
|
732
1165
|
className: "order-total-item-value"
|
|
733
|
-
}, formatAmount(total.actualPaidAmount, 2, (state === null || state === void 0 ? void 0 : state.amountSymbol) ||
|
|
1166
|
+
}, formatAmount(total.actualPaidAmount, 2, (state === null || state === void 0 ? void 0 : state.amountSymbol) || '$'))), total.totalRefundAmount > 0 ? /*#__PURE__*/React.createElement("div", {
|
|
734
1167
|
className: "order-total-item"
|
|
735
1168
|
}, /*#__PURE__*/React.createElement("span", {
|
|
736
1169
|
className: "order-total-item-label order-total-item-label-bold"
|
|
737
|
-
}, locales.getText(
|
|
1170
|
+
}, locales.getText('pisell2.text.refunded-amount')), /*#__PURE__*/React.createElement("span", {
|
|
738
1171
|
className: "order-total-item-value"
|
|
739
|
-
}, formatAmount(total.totalRefundAmount, 2, (state === null || state === void 0 ? void 0 : state.amountSymbol) ||
|
|
1172
|
+
}, formatAmount(total.totalRefundAmount, 2, (state === null || state === void 0 ? void 0 : state.amountSymbol) || '$'))) : null) : null), !(state !== null && state !== void 0 && state.disableEventBookingEdit) && /*#__PURE__*/React.createElement("div", {
|
|
740
1173
|
className: "pisell-lowcode__booking-footer-buttons"
|
|
741
1174
|
}, /*#__PURE__*/React.createElement(FooterMenus, {
|
|
1175
|
+
items: moreButton,
|
|
742
1176
|
state: state,
|
|
743
|
-
dispatch: dispatch
|
|
744
|
-
|
|
1177
|
+
dispatch: dispatch,
|
|
1178
|
+
source: source,
|
|
1179
|
+
menuChange: menuChange
|
|
1180
|
+
}), _buttons.length ? _buttons : state.bookingId && isShowPaymentLink ? paymentLinkButton : null), source === 'info' && state.bookingId && !state.disabledEdit && (transaction_habit_selection === null || transaction_habit_selection === void 0 ? void 0 : transaction_habit_selection.button_rows) == 2 ? /*#__PURE__*/React.createElement("div", {
|
|
1181
|
+
className: "pisell-lowcode__booking-footer-buttons",
|
|
1182
|
+
style: {
|
|
1183
|
+
marginTop: 12
|
|
1184
|
+
}
|
|
1185
|
+
}, state.appointment_status !== 'cancelled' && !state.isBookingCreatePage ? /*#__PURE__*/React.createElement(Button, {
|
|
1186
|
+
onClick: function onClick() {
|
|
1187
|
+
return handleSale();
|
|
1188
|
+
},
|
|
1189
|
+
size: "large",
|
|
1190
|
+
className: "pisell-lowcode__booking-footer-buttons-item"
|
|
1191
|
+
}, actionMap.sale.label) : null, isTeam ? null : /*#__PURE__*/React.createElement(Button, {
|
|
1192
|
+
onClick: function onClick() {
|
|
1193
|
+
return handleOrderDetail();
|
|
1194
|
+
},
|
|
1195
|
+
size: "large",
|
|
1196
|
+
className: "pisell-lowcode__booking-footer-buttons-item"
|
|
1197
|
+
}, actionMap.orderDetail.label)) : null, contextHolder);
|
|
745
1198
|
};
|
|
746
1199
|
export default Footer;
|