@pisell/pisellos 0.10.47 → 0.10.49
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/dist/apis/picoding.d.ts +0 -1
- package/dist/core/index.d.ts +0 -1
- package/dist/core/index.js +6 -10
- package/dist/effects/index.d.ts +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/model/index.d.ts +0 -1
- package/dist/model/strategy/adapter/dataVariant/adapter.d.ts +0 -1
- package/dist/model/strategy/adapter/dataVariant/evaluator.d.ts +0 -1
- package/dist/model/strategy/adapter/dataVariant/examples.d.ts +0 -1
- package/dist/model/strategy/adapter/dataVariant/index.d.ts +0 -1
- package/dist/model/strategy/adapter/dataVariant/type.d.ts +0 -1
- package/dist/model/strategy/adapter/index.d.ts +0 -1
- package/dist/model/strategy/adapter/itemRule/adapter.d.ts +0 -1
- package/dist/model/strategy/adapter/itemRule/evaluator.d.ts +0 -1
- package/dist/model/strategy/adapter/itemRule/examples.d.ts +0 -1
- package/dist/model/strategy/adapter/itemRule/index.d.ts +0 -1
- package/dist/model/strategy/adapter/itemRule/type.d.ts +0 -1
- package/dist/model/strategy/adapter/promotion/adapter.d.ts +0 -1
- package/dist/model/strategy/adapter/promotion/evaluator.d.ts +0 -1
- package/dist/model/strategy/adapter/promotion/examples.d.ts +0 -1
- package/dist/model/strategy/adapter/promotion/index.d.ts +0 -1
- package/dist/model/strategy/adapter/promotion/type.d.ts +0 -1
- package/dist/model/strategy/adapter/type.d.ts +0 -1
- package/dist/model/strategy/adapter/walletPass/evaluator.d.ts +0 -1
- package/dist/model/strategy/adapter/walletPass/example.d.ts +0 -1
- package/dist/model/strategy/adapter/walletPass/example.js +3 -26
- package/dist/model/strategy/adapter/walletPass/index.d.ts +0 -1
- package/dist/model/strategy/adapter/walletPass/locales.d.ts +0 -1
- package/dist/model/strategy/adapter/walletPass/type.d.ts +0 -1
- package/dist/model/strategy/adapter/walletPass/utils.d.ts +0 -1
- package/dist/model/strategy/engine.d.ts +0 -1
- package/dist/model/strategy/index.d.ts +0 -1
- package/dist/model/strategy/strategy-example.d.ts +0 -1
- package/dist/model/strategy/strategy-example.js +5 -19
- package/dist/model/strategy/type.d.ts +0 -1
- package/dist/modules/Account/index.d.ts +0 -1
- package/dist/modules/Account/types.d.ts +0 -1
- package/dist/modules/AccountList/index.d.ts +0 -1
- package/dist/modules/AccountList/types.d.ts +0 -1
- package/dist/modules/AccountList/utils.d.ts +0 -1
- package/dist/modules/BaseModule.d.ts +0 -1
- package/dist/modules/BookingContext/index.d.ts +0 -1
- package/dist/modules/BookingContext/types.d.ts +0 -1
- package/dist/modules/BookingContext/utils/buildCacheItemFromOrderLine.d.ts +0 -1
- package/dist/modules/BookingContext/utils/buildNormalProductCacheItemFromOrderLine.d.ts +0 -1
- package/dist/modules/BookingContext/utils/cacheItemToBookingInput.d.ts +0 -1
- package/dist/modules/BookingContext/utils/flexible.d.ts +0 -1
- package/dist/modules/BookingContext/utils/formatResourceList.d.ts +0 -1
- package/dist/modules/BookingContext/utils/index.d.ts +0 -1
- package/dist/modules/BookingContext/utils/noResource.d.ts +0 -1
- package/dist/modules/BookingContext/utils/orderLineDisplay.d.ts +0 -1
- package/dist/modules/BookingContext/utils/productExtend.d.ts +0 -1
- package/dist/modules/BookingContext/utils/resourceErrors.d.ts +0 -1
- package/dist/modules/BookingContext/utils/resourceSelection.d.ts +0 -1
- package/dist/modules/BookingContext/utils/resources.d.ts +0 -1
- package/dist/modules/BookingContext/utils/serviceTimes.d.ts +0 -1
- package/dist/modules/BookingContext/utils/timeSlices.d.ts +0 -1
- package/dist/modules/Cart/index.d.ts +0 -1
- package/dist/modules/Cart/index.js +0 -3
- package/dist/modules/Cart/types.d.ts +0 -1
- package/dist/modules/Cart/utils/cartAccount.d.ts +0 -1
- package/dist/modules/Cart/utils/cartDate.d.ts +0 -1
- package/dist/modules/Cart/utils/cartDiscount.d.ts +0 -1
- package/dist/modules/Cart/utils/cartNote.d.ts +0 -1
- package/dist/modules/Cart/utils/cartProduct.d.ts +0 -1
- package/dist/modules/Cart/utils/cartProduct.js +0 -1
- package/dist/modules/Cart/utils/cartRelationForms.d.ts +0 -1
- package/dist/modules/Cart/utils/cartResource.d.ts +0 -1
- package/dist/modules/Cart/utils/changePrice.d.ts +0 -1
- package/dist/modules/Cart/utils/index.d.ts +0 -1
- package/dist/modules/Customer/constants.d.ts +0 -1
- package/dist/modules/Customer/index.d.ts +0 -1
- package/dist/modules/Customer/types.d.ts +0 -1
- package/dist/modules/Date/index.d.ts +0 -1
- package/dist/modules/Date/index.js +1 -5
- package/dist/modules/Date/types.d.ts +0 -1
- package/dist/modules/Date/utils.d.ts +0 -1
- package/dist/modules/Discount/availability.d.ts +0 -1
- package/dist/modules/Discount/entitlementPass.d.ts +0 -1
- package/dist/modules/Discount/index.d.ts +0 -1
- package/dist/modules/Discount/index.js +2 -4
- package/dist/modules/Discount/types.d.ts +2 -1
- package/dist/modules/Guests/index.d.ts +0 -1
- package/dist/modules/Guests/types.d.ts +0 -1
- package/dist/modules/Holder/index.d.ts +0 -1
- package/dist/modules/Holder/types.d.ts +0 -1
- package/dist/modules/Holder/utils.d.ts +0 -1
- package/dist/modules/OpenData/index.d.ts +0 -1
- package/dist/modules/OpenData/index.js +0 -2
- package/dist/modules/OpenData/types.d.ts +0 -1
- package/dist/modules/OpenData/utils.d.ts +0 -1
- package/dist/modules/Order/index.d.ts +0 -1
- package/dist/modules/Order/index.js +14 -41
- package/dist/modules/Order/payment-utils.d.ts +0 -1
- package/dist/modules/Order/salesNotes.d.ts +0 -1
- package/dist/modules/Order/types.d.ts +0 -1
- package/dist/modules/Order/utils/bundleDiscountHydration.d.ts +0 -1
- package/dist/modules/Order/utils/discountProductLineIdentity.d.ts +0 -1
- package/dist/modules/Order/utils/manualProductDiscount.d.ts +0 -1
- package/dist/modules/Order/utils/orderCollectionIdentity.d.ts +0 -1
- package/dist/modules/Order/utils/virtualSettlement.d.ts +0 -1
- package/dist/modules/Order/utils.d.ts +0 -1
- package/dist/modules/Payment/cash.d.ts +0 -1
- package/dist/modules/Payment/cashRecommendationAlgorithm.d.ts +0 -1
- package/dist/modules/Payment/eftpos.d.ts +0 -1
- package/dist/modules/Payment/index.d.ts +0 -1
- package/dist/modules/Payment/index.js +97 -162
- package/dist/modules/Payment/mx51.d.ts +0 -1
- package/dist/modules/Payment/types.d.ts +0 -1
- package/dist/modules/Payment/utils.d.ts +0 -1
- package/dist/modules/Payment/walletpass.d.ts +0 -1
- package/dist/modules/Product/index.d.ts +0 -1
- package/dist/modules/Product/types.d.ts +0 -1
- package/dist/modules/Product/utils.d.ts +0 -1
- package/dist/modules/ProductList/clientDataVariants.d.ts +0 -1
- package/dist/modules/ProductList/index.d.ts +0 -1
- package/dist/modules/ProductList/types.d.ts +0 -1
- package/dist/modules/Quotation/index.d.ts +0 -1
- package/dist/modules/Quotation/types.d.ts +0 -1
- package/dist/modules/Resource/index.d.ts +0 -1
- package/dist/modules/Resource/types.d.ts +0 -1
- package/dist/modules/Resource/utils.d.ts +0 -1
- package/dist/modules/ResourcePlanner/index.d.ts +0 -1
- package/dist/modules/ResourcePlanner/localClock.d.ts +0 -1
- package/dist/modules/ResourcePlanner/planner.d.ts +0 -1
- package/dist/modules/ResourcePlanner/types.d.ts +0 -1
- package/dist/modules/Rules/index.d.ts +0 -1
- package/dist/modules/Rules/index.js +60 -7
- package/dist/modules/Rules/types.d.ts +0 -1
- package/dist/modules/SalesSummary/index.d.ts +0 -1
- package/dist/modules/SalesSummary/types.d.ts +0 -1
- package/dist/modules/SalesSummary/utils.d.ts +0 -1
- package/dist/modules/ScanOrderLogger/index.d.ts +0 -1
- package/dist/modules/ScanOrderLogger/providers/feishu.d.ts +0 -1
- package/dist/modules/ScanOrderLogger/providers/grafana.d.ts +0 -1
- package/dist/modules/ScanOrderLogger/types.d.ts +0 -1
- package/dist/modules/Schedule/getDateIsInSchedule.d.ts +0 -1
- package/dist/modules/Schedule/index.d.ts +0 -1
- package/dist/modules/Schedule/index.js +0 -1
- package/dist/modules/Schedule/type.d.ts +0 -1
- package/dist/modules/Schedule/types.d.ts +0 -1
- package/dist/modules/Schedule/utils.d.ts +0 -1
- package/dist/modules/Schedule/utils.js +0 -1
- package/dist/modules/Step/index.d.ts +0 -1
- package/dist/modules/Step/index.js +0 -1
- package/dist/modules/Step/tyeps.d.ts +0 -1
- package/dist/modules/Summary/index.d.ts +0 -1
- package/dist/modules/Summary/types.d.ts +0 -1
- package/dist/modules/Summary/utils.d.ts +0 -1
- package/dist/modules/SurchargeList/index.d.ts +0 -1
- package/dist/modules/SurchargeList/types.d.ts +0 -1
- package/dist/modules/index.d.ts +0 -1
- package/dist/plugins/app.d.ts +0 -1
- package/dist/plugins/index.d.ts +0 -1
- package/dist/plugins/request.d.ts +0 -1
- package/dist/plugins/request.js +1 -4
- package/dist/plugins/shopStore.d.ts +0 -1
- package/dist/plugins/user.d.ts +0 -1
- package/dist/plugins/window.d.ts +0 -1
- package/dist/plugins/window.js +2 -6
- package/dist/server/index.d.ts +0 -1
- package/dist/server/index.js +97 -129
- package/dist/server/modules/floor-plan/index.d.ts +0 -1
- package/dist/server/modules/floor-plan/types.d.ts +0 -1
- package/dist/server/modules/index.d.ts +0 -1
- package/dist/server/modules/menu/index.d.ts +0 -1
- package/dist/server/modules/menu/index.js +32 -41
- package/dist/server/modules/menu/types.d.ts +0 -1
- package/dist/server/modules/order/index.d.ts +0 -1
- package/dist/server/modules/order/index.js +2 -4
- package/dist/server/modules/order/types.d.ts +2 -1
- package/dist/server/modules/order/utils/filterBookings.d.ts +0 -1
- package/dist/server/modules/order/utils/filterOrders.d.ts +0 -1
- package/dist/server/modules/payment/index.d.ts +0 -1
- package/dist/server/modules/payment/types.d.ts +0 -1
- package/dist/server/modules/products/index.d.ts +0 -1
- package/dist/server/modules/products/index.js +24 -42
- package/dist/server/modules/products/types.d.ts +0 -1
- package/dist/server/modules/quotation/index.d.ts +0 -1
- package/dist/server/modules/quotation/index.js +29 -38
- package/dist/server/modules/quotation/types.d.ts +0 -1
- package/dist/server/modules/resource/index.d.ts +0 -1
- package/dist/server/modules/resource/index.js +3 -4
- package/dist/server/modules/resource/types.d.ts +0 -1
- package/dist/server/modules/schedule/index.d.ts +0 -1
- package/dist/server/modules/schedule/index.js +27 -35
- package/dist/server/modules/schedule/types.d.ts +0 -1
- package/dist/server/modules/schedule/utils.d.ts +0 -1
- package/dist/server/types.d.ts +0 -1
- package/dist/server/utils/index.d.ts +0 -1
- package/dist/server/utils/product.d.ts +0 -1
- package/dist/server/utils/product.js +0 -1
- package/dist/server/utils/schedule.d.ts +0 -1
- package/dist/server/utils/small-ticket.d.ts +0 -1
- package/dist/server/utils/small-ticket.js +447 -64
- package/dist/server/utils/time.d.ts +0 -1
- package/dist/solution/BaseSales/index.d.ts +0 -1
- package/dist/solution/BaseSales/index.js +50 -53
- package/dist/solution/BaseSales/types.d.ts +0 -1
- package/dist/solution/BaseSales/utils/cartPromotion.d.ts +0 -1
- package/dist/solution/BaseSales/utils/parseSalesResponse.d.ts +0 -1
- package/dist/solution/BaseSales/utils/quotationPrice.d.ts +0 -1
- package/dist/solution/BaseSales/utils/transformBaseProductToOrderProduct.d.ts +0 -1
- package/dist/solution/BaseSales/utils.d.ts +0 -1
- package/dist/solution/BookingByStep/index.d.ts +0 -1
- package/dist/solution/BookingByStep/index.js +7 -59
- package/dist/solution/BookingByStep/types.d.ts +0 -1
- package/dist/solution/BookingByStep/utils/capacity.d.ts +0 -1
- package/dist/solution/BookingByStep/utils/capacity.js +1 -11
- package/dist/solution/BookingByStep/utils/products.d.ts +0 -1
- package/dist/solution/BookingByStep/utils/resources.d.ts +0 -1
- package/dist/solution/BookingByStep/utils/resources.js +1 -3
- package/dist/solution/BookingByStep/utils/stock.d.ts +0 -1
- package/dist/solution/BookingByStep/utils/timeslots.d.ts +0 -1
- package/dist/solution/BookingByStep/utils/timeslots.js +2 -43
- package/dist/solution/BookingTicket/index.d.ts +0 -1
- package/dist/solution/BookingTicket/index.js +0 -2
- package/dist/solution/BookingTicket/types.d.ts +0 -1
- package/dist/solution/BookingTicket/utils/addProductDecision.d.ts +0 -1
- package/dist/solution/BookingTicket/utils/addTimeAvailability.d.ts +0 -1
- package/dist/solution/BookingTicket/utils/bookingStatus.d.ts +0 -1
- package/dist/solution/BookingTicket/utils/cartView.d.ts +0 -1
- package/dist/solution/BookingTicket/utils/exampleData.d.ts +0 -1
- package/dist/solution/BookingTicket/utils/orderCustomer.d.ts +0 -1
- package/dist/solution/BookingTicket/utils/resolveBestAddTimePlan.d.ts +0 -1
- package/dist/solution/BookingTicket/utils/scan/applyGlobalScan.d.ts +0 -1
- package/dist/solution/BookingTicket/utils/scan/cloudSearch.d.ts +0 -1
- package/dist/solution/BookingTicket/utils/scan/cloudSearch.js +6 -7
- package/dist/solution/BookingTicket/utils/scan/formatGlobalScan.d.ts +0 -1
- package/dist/solution/BookingTicket/utils/scan/handleScan.d.ts +0 -1
- package/dist/solution/BookingTicket/utils/scan/handleScan.js +25 -31
- package/dist/solution/BookingTicket/utils/scan/index.d.ts +0 -1
- package/dist/solution/BookingTicket/utils/scan/index.js +6 -10
- package/dist/solution/BookingTicket/utils/scan/scanCache.d.ts +0 -1
- package/dist/solution/BookingTicket/utils/scan/scanProductValues.d.ts +0 -1
- package/dist/solution/BookingTicket/utils/sessionCatalogStale.d.ts +0 -1
- package/dist/solution/BookingTicket/utils/weighingProductSku.d.ts +0 -1
- package/dist/solution/BuyTickets/index.d.ts +0 -1
- package/dist/solution/BuyTickets/index.js +9 -12
- package/dist/solution/BuyTickets/types.d.ts +0 -1
- package/dist/solution/Checkout/index.d.ts +0 -1
- package/dist/solution/Checkout/index.js +177 -252
- package/dist/solution/Checkout/types.d.ts +0 -1
- package/dist/solution/Checkout/utils/index.d.ts +0 -1
- package/dist/solution/Checkout/utils/index.js +4 -16
- package/dist/solution/PlaceOrder/index.d.ts +0 -1
- package/dist/solution/RegisterAndLogin/config.d.ts +0 -1
- package/dist/solution/RegisterAndLogin/index.d.ts +0 -1
- package/dist/solution/RegisterAndLogin/index.js +30 -76
- package/dist/solution/RegisterAndLogin/types.d.ts +0 -1
- package/dist/solution/RegisterAndLogin/utils.d.ts +0 -1
- package/dist/solution/Sales/index.d.ts +0 -1
- package/dist/solution/Sales/types.d.ts +0 -1
- package/dist/solution/ScanOrder/index.d.ts +0 -1
- package/dist/solution/ScanOrder/index.js +50 -60
- package/dist/solution/ScanOrder/types.d.ts +0 -1
- package/dist/solution/ScanOrder/utils.d.ts +0 -1
- package/dist/solution/ShopDiscount/index.d.ts +0 -1
- package/dist/solution/ShopDiscount/index.js +2 -7
- package/dist/solution/ShopDiscount/types.d.ts +0 -1
- package/dist/solution/ShopDiscount/utils.d.ts +0 -1
- package/dist/solution/UnifiedBookingSales/index.d.ts +0 -1
- package/dist/solution/UnifiedBookingSales/remoteOccupancyCache.d.ts +0 -1
- package/dist/solution/UnifiedBookingSales/types.d.ts +0 -1
- package/dist/solution/VenueBooking/index.d.ts +0 -1
- package/dist/solution/VenueBooking/index.js +45 -55
- package/dist/solution/VenueBooking/types.d.ts +0 -1
- package/dist/solution/VenueBooking/utils/dateSummary.d.ts +0 -1
- package/dist/solution/VenueBooking/utils/resource.d.ts +0 -1
- package/dist/solution/VenueBooking/utils/slotMerge.d.ts +0 -1
- package/dist/solution/VenueBooking/utils/timeSlot.d.ts +0 -1
- package/dist/solution/VenueBooking/utils.d.ts +0 -1
- package/dist/solution/index.d.ts +0 -1
- package/dist/store/createStore.d.ts +0 -1
- package/dist/types/index.d.ts +0 -1
- package/dist/utils/os-private-payload.d.ts +0 -1
- package/dist/utils/payment-number.d.ts +0 -1
- package/dist/utils/platform.d.ts +0 -1
- package/dist/utils/task.d.ts +0 -1
- package/dist/utils/task.js +15 -18
- package/dist/utils/watch.d.ts +0 -1
- package/dist/utils/watch.js +0 -1
- package/lib/core/index.js +1 -5
- package/lib/model/strategy/strategy-example.js +5 -19
- package/lib/modules/Discount/types.d.ts +2 -0
- package/lib/modules/Rules/index.js +58 -2
- package/lib/server/modules/order/types.d.ts +2 -0
- package/lib/server/utils/small-ticket.js +335 -51
- package/package.json +1 -1
- package/dist/apis/picoding.d.ts.map +0 -1
- package/dist/core/index.d.ts.map +0 -1
- package/dist/effects/index.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/model/index.d.ts.map +0 -1
- package/dist/model/strategy/adapter/dataVariant/adapter.d.ts.map +0 -1
- package/dist/model/strategy/adapter/dataVariant/evaluator.d.ts.map +0 -1
- package/dist/model/strategy/adapter/dataVariant/examples.d.ts.map +0 -1
- package/dist/model/strategy/adapter/dataVariant/index.d.ts.map +0 -1
- package/dist/model/strategy/adapter/dataVariant/type.d.ts.map +0 -1
- package/dist/model/strategy/adapter/index.d.ts.map +0 -1
- package/dist/model/strategy/adapter/itemRule/adapter.d.ts.map +0 -1
- package/dist/model/strategy/adapter/itemRule/evaluator.d.ts.map +0 -1
- package/dist/model/strategy/adapter/itemRule/examples.d.ts.map +0 -1
- package/dist/model/strategy/adapter/itemRule/index.d.ts.map +0 -1
- package/dist/model/strategy/adapter/itemRule/type.d.ts.map +0 -1
- package/dist/model/strategy/adapter/promotion/adapter.d.ts.map +0 -1
- package/dist/model/strategy/adapter/promotion/evaluator.d.ts.map +0 -1
- package/dist/model/strategy/adapter/promotion/examples.d.ts.map +0 -1
- package/dist/model/strategy/adapter/promotion/index.d.ts.map +0 -1
- package/dist/model/strategy/adapter/promotion/type.d.ts.map +0 -1
- package/dist/model/strategy/adapter/type.d.ts.map +0 -1
- package/dist/model/strategy/adapter/walletPass/evaluator.d.ts.map +0 -1
- package/dist/model/strategy/adapter/walletPass/example.d.ts.map +0 -1
- package/dist/model/strategy/adapter/walletPass/index.d.ts.map +0 -1
- package/dist/model/strategy/adapter/walletPass/locales.d.ts.map +0 -1
- package/dist/model/strategy/adapter/walletPass/type.d.ts.map +0 -1
- package/dist/model/strategy/adapter/walletPass/utils.d.ts.map +0 -1
- package/dist/model/strategy/engine.d.ts.map +0 -1
- package/dist/model/strategy/index.d.ts.map +0 -1
- package/dist/model/strategy/strategy-example.d.ts.map +0 -1
- package/dist/model/strategy/type.d.ts.map +0 -1
- package/dist/modules/Account/index.d.ts.map +0 -1
- package/dist/modules/Account/types.d.ts.map +0 -1
- package/dist/modules/AccountList/index.d.ts.map +0 -1
- package/dist/modules/AccountList/types.d.ts.map +0 -1
- package/dist/modules/AccountList/utils.d.ts.map +0 -1
- package/dist/modules/BaseModule.d.ts.map +0 -1
- package/dist/modules/BookingContext/index.d.ts.map +0 -1
- package/dist/modules/BookingContext/types.d.ts.map +0 -1
- package/dist/modules/BookingContext/utils/buildCacheItemFromOrderLine.d.ts.map +0 -1
- package/dist/modules/BookingContext/utils/buildNormalProductCacheItemFromOrderLine.d.ts.map +0 -1
- package/dist/modules/BookingContext/utils/cacheItemToBookingInput.d.ts.map +0 -1
- package/dist/modules/BookingContext/utils/flexible.d.ts.map +0 -1
- package/dist/modules/BookingContext/utils/formatResourceList.d.ts.map +0 -1
- package/dist/modules/BookingContext/utils/index.d.ts.map +0 -1
- package/dist/modules/BookingContext/utils/noResource.d.ts.map +0 -1
- package/dist/modules/BookingContext/utils/orderLineDisplay.d.ts.map +0 -1
- package/dist/modules/BookingContext/utils/productExtend.d.ts.map +0 -1
- package/dist/modules/BookingContext/utils/resourceErrors.d.ts.map +0 -1
- package/dist/modules/BookingContext/utils/resourceSelection.d.ts.map +0 -1
- package/dist/modules/BookingContext/utils/resources.d.ts.map +0 -1
- package/dist/modules/BookingContext/utils/serviceTimes.d.ts.map +0 -1
- package/dist/modules/BookingContext/utils/timeSlices.d.ts.map +0 -1
- package/dist/modules/Cart/index.d.ts.map +0 -1
- package/dist/modules/Cart/types.d.ts.map +0 -1
- package/dist/modules/Cart/utils/cartAccount.d.ts.map +0 -1
- package/dist/modules/Cart/utils/cartDate.d.ts.map +0 -1
- package/dist/modules/Cart/utils/cartDiscount.d.ts.map +0 -1
- package/dist/modules/Cart/utils/cartNote.d.ts.map +0 -1
- package/dist/modules/Cart/utils/cartProduct.d.ts.map +0 -1
- package/dist/modules/Cart/utils/cartRelationForms.d.ts.map +0 -1
- package/dist/modules/Cart/utils/cartResource.d.ts.map +0 -1
- package/dist/modules/Cart/utils/changePrice.d.ts.map +0 -1
- package/dist/modules/Cart/utils/index.d.ts.map +0 -1
- package/dist/modules/Customer/constants.d.ts.map +0 -1
- package/dist/modules/Customer/index.d.ts.map +0 -1
- package/dist/modules/Customer/types.d.ts.map +0 -1
- package/dist/modules/Date/index.d.ts.map +0 -1
- package/dist/modules/Date/types.d.ts.map +0 -1
- package/dist/modules/Date/utils.d.ts.map +0 -1
- package/dist/modules/Discount/availability.d.ts.map +0 -1
- package/dist/modules/Discount/entitlementPass.d.ts.map +0 -1
- package/dist/modules/Discount/index.d.ts.map +0 -1
- package/dist/modules/Discount/types.d.ts.map +0 -1
- package/dist/modules/Guests/index.d.ts.map +0 -1
- package/dist/modules/Guests/types.d.ts.map +0 -1
- package/dist/modules/Holder/index.d.ts.map +0 -1
- package/dist/modules/Holder/types.d.ts.map +0 -1
- package/dist/modules/Holder/utils.d.ts.map +0 -1
- package/dist/modules/OpenData/index.d.ts.map +0 -1
- package/dist/modules/OpenData/types.d.ts.map +0 -1
- package/dist/modules/OpenData/utils.d.ts.map +0 -1
- package/dist/modules/Order/index.d.ts.map +0 -1
- package/dist/modules/Order/payment-utils.d.ts.map +0 -1
- package/dist/modules/Order/salesNotes.d.ts.map +0 -1
- package/dist/modules/Order/types.d.ts.map +0 -1
- package/dist/modules/Order/utils/bundleDiscountHydration.d.ts.map +0 -1
- package/dist/modules/Order/utils/discountProductLineIdentity.d.ts.map +0 -1
- package/dist/modules/Order/utils/manualProductDiscount.d.ts.map +0 -1
- package/dist/modules/Order/utils/orderCollectionIdentity.d.ts.map +0 -1
- package/dist/modules/Order/utils/virtualSettlement.d.ts.map +0 -1
- package/dist/modules/Order/utils.d.ts.map +0 -1
- package/dist/modules/Payment/cash.d.ts.map +0 -1
- package/dist/modules/Payment/cashRecommendationAlgorithm.d.ts.map +0 -1
- package/dist/modules/Payment/eftpos.d.ts.map +0 -1
- package/dist/modules/Payment/index.d.ts.map +0 -1
- package/dist/modules/Payment/mx51.d.ts.map +0 -1
- package/dist/modules/Payment/types.d.ts.map +0 -1
- package/dist/modules/Payment/utils.d.ts.map +0 -1
- package/dist/modules/Payment/walletpass.d.ts.map +0 -1
- package/dist/modules/Product/index.d.ts.map +0 -1
- package/dist/modules/Product/types.d.ts.map +0 -1
- package/dist/modules/Product/utils.d.ts.map +0 -1
- package/dist/modules/ProductList/clientDataVariants.d.ts.map +0 -1
- package/dist/modules/ProductList/index.d.ts.map +0 -1
- package/dist/modules/ProductList/types.d.ts.map +0 -1
- package/dist/modules/Quotation/index.d.ts.map +0 -1
- package/dist/modules/Quotation/types.d.ts.map +0 -1
- package/dist/modules/Resource/index.d.ts.map +0 -1
- package/dist/modules/Resource/types.d.ts.map +0 -1
- package/dist/modules/Resource/utils.d.ts.map +0 -1
- package/dist/modules/ResourcePlanner/index.d.ts.map +0 -1
- package/dist/modules/ResourcePlanner/localClock.d.ts.map +0 -1
- package/dist/modules/ResourcePlanner/planner.d.ts.map +0 -1
- package/dist/modules/ResourcePlanner/types.d.ts.map +0 -1
- package/dist/modules/Rules/index.d.ts.map +0 -1
- package/dist/modules/Rules/types.d.ts.map +0 -1
- package/dist/modules/SalesSummary/index.d.ts.map +0 -1
- package/dist/modules/SalesSummary/types.d.ts.map +0 -1
- package/dist/modules/SalesSummary/utils.d.ts.map +0 -1
- package/dist/modules/ScanOrderLogger/index.d.ts.map +0 -1
- package/dist/modules/ScanOrderLogger/providers/feishu.d.ts.map +0 -1
- package/dist/modules/ScanOrderLogger/providers/grafana.d.ts.map +0 -1
- package/dist/modules/ScanOrderLogger/types.d.ts.map +0 -1
- package/dist/modules/Schedule/getDateIsInSchedule.d.ts.map +0 -1
- package/dist/modules/Schedule/index.d.ts.map +0 -1
- package/dist/modules/Schedule/type.d.ts.map +0 -1
- package/dist/modules/Schedule/types.d.ts.map +0 -1
- package/dist/modules/Schedule/utils.d.ts.map +0 -1
- package/dist/modules/Step/index.d.ts.map +0 -1
- package/dist/modules/Step/tyeps.d.ts.map +0 -1
- package/dist/modules/Summary/index.d.ts.map +0 -1
- package/dist/modules/Summary/types.d.ts.map +0 -1
- package/dist/modules/Summary/utils.d.ts.map +0 -1
- package/dist/modules/SurchargeList/index.d.ts.map +0 -1
- package/dist/modules/SurchargeList/types.d.ts.map +0 -1
- package/dist/modules/index.d.ts.map +0 -1
- package/dist/plugins/app.d.ts.map +0 -1
- package/dist/plugins/index.d.ts.map +0 -1
- package/dist/plugins/request.d.ts.map +0 -1
- package/dist/plugins/shopStore.d.ts.map +0 -1
- package/dist/plugins/user.d.ts.map +0 -1
- package/dist/plugins/window.d.ts.map +0 -1
- package/dist/server/index.d.ts.map +0 -1
- package/dist/server/modules/floor-plan/index.d.ts.map +0 -1
- package/dist/server/modules/floor-plan/types.d.ts.map +0 -1
- package/dist/server/modules/index.d.ts.map +0 -1
- package/dist/server/modules/menu/index.d.ts.map +0 -1
- package/dist/server/modules/menu/types.d.ts.map +0 -1
- package/dist/server/modules/order/index.d.ts.map +0 -1
- package/dist/server/modules/order/types.d.ts.map +0 -1
- package/dist/server/modules/order/utils/filterBookings.d.ts.map +0 -1
- package/dist/server/modules/order/utils/filterOrders.d.ts.map +0 -1
- package/dist/server/modules/payment/index.d.ts.map +0 -1
- package/dist/server/modules/payment/types.d.ts.map +0 -1
- package/dist/server/modules/products/index.d.ts.map +0 -1
- package/dist/server/modules/products/types.d.ts.map +0 -1
- package/dist/server/modules/quotation/index.d.ts.map +0 -1
- package/dist/server/modules/quotation/types.d.ts.map +0 -1
- package/dist/server/modules/resource/index.d.ts.map +0 -1
- package/dist/server/modules/resource/types.d.ts.map +0 -1
- package/dist/server/modules/schedule/index.d.ts.map +0 -1
- package/dist/server/modules/schedule/types.d.ts.map +0 -1
- package/dist/server/modules/schedule/utils.d.ts.map +0 -1
- package/dist/server/types.d.ts.map +0 -1
- package/dist/server/utils/index.d.ts.map +0 -1
- package/dist/server/utils/product.d.ts.map +0 -1
- package/dist/server/utils/schedule.d.ts.map +0 -1
- package/dist/server/utils/small-ticket.d.ts.map +0 -1
- package/dist/server/utils/time.d.ts.map +0 -1
- package/dist/solution/BaseSales/index.d.ts.map +0 -1
- package/dist/solution/BaseSales/types.d.ts.map +0 -1
- package/dist/solution/BaseSales/utils/cartPromotion.d.ts.map +0 -1
- package/dist/solution/BaseSales/utils/parseSalesResponse.d.ts.map +0 -1
- package/dist/solution/BaseSales/utils/quotationPrice.d.ts.map +0 -1
- package/dist/solution/BaseSales/utils/transformBaseProductToOrderProduct.d.ts.map +0 -1
- package/dist/solution/BaseSales/utils.d.ts.map +0 -1
- package/dist/solution/BookingByStep/index.d.ts.map +0 -1
- package/dist/solution/BookingByStep/types.d.ts.map +0 -1
- package/dist/solution/BookingByStep/utils/capacity.d.ts.map +0 -1
- package/dist/solution/BookingByStep/utils/products.d.ts.map +0 -1
- package/dist/solution/BookingByStep/utils/resources.d.ts.map +0 -1
- package/dist/solution/BookingByStep/utils/stock.d.ts.map +0 -1
- package/dist/solution/BookingByStep/utils/timeslots.d.ts.map +0 -1
- package/dist/solution/BookingTicket/index.d.ts.map +0 -1
- package/dist/solution/BookingTicket/types.d.ts.map +0 -1
- package/dist/solution/BookingTicket/utils/addProductDecision.d.ts.map +0 -1
- package/dist/solution/BookingTicket/utils/addTimeAvailability.d.ts.map +0 -1
- package/dist/solution/BookingTicket/utils/bookingStatus.d.ts.map +0 -1
- package/dist/solution/BookingTicket/utils/cartView.d.ts.map +0 -1
- package/dist/solution/BookingTicket/utils/exampleData.d.ts.map +0 -1
- package/dist/solution/BookingTicket/utils/orderCustomer.d.ts.map +0 -1
- package/dist/solution/BookingTicket/utils/resolveBestAddTimePlan.d.ts.map +0 -1
- package/dist/solution/BookingTicket/utils/scan/applyGlobalScan.d.ts.map +0 -1
- package/dist/solution/BookingTicket/utils/scan/cloudSearch.d.ts.map +0 -1
- package/dist/solution/BookingTicket/utils/scan/formatGlobalScan.d.ts.map +0 -1
- package/dist/solution/BookingTicket/utils/scan/handleScan.d.ts.map +0 -1
- package/dist/solution/BookingTicket/utils/scan/index.d.ts.map +0 -1
- package/dist/solution/BookingTicket/utils/scan/scanCache.d.ts.map +0 -1
- package/dist/solution/BookingTicket/utils/scan/scanProductValues.d.ts.map +0 -1
- package/dist/solution/BookingTicket/utils/sessionCatalogStale.d.ts.map +0 -1
- package/dist/solution/BookingTicket/utils/weighingProductSku.d.ts.map +0 -1
- package/dist/solution/BuyTickets/index.d.ts.map +0 -1
- package/dist/solution/BuyTickets/types.d.ts.map +0 -1
- package/dist/solution/Checkout/index.d.ts.map +0 -1
- package/dist/solution/Checkout/types.d.ts.map +0 -1
- package/dist/solution/Checkout/utils/index.d.ts.map +0 -1
- package/dist/solution/PlaceOrder/index.d.ts.map +0 -1
- package/dist/solution/RegisterAndLogin/config.d.ts.map +0 -1
- package/dist/solution/RegisterAndLogin/index.d.ts.map +0 -1
- package/dist/solution/RegisterAndLogin/types.d.ts.map +0 -1
- package/dist/solution/RegisterAndLogin/utils.d.ts.map +0 -1
- package/dist/solution/Sales/index.d.ts.map +0 -1
- package/dist/solution/Sales/types.d.ts.map +0 -1
- package/dist/solution/ScanOrder/index.d.ts.map +0 -1
- package/dist/solution/ScanOrder/types.d.ts.map +0 -1
- package/dist/solution/ScanOrder/utils.d.ts.map +0 -1
- package/dist/solution/ShopDiscount/index.d.ts.map +0 -1
- package/dist/solution/ShopDiscount/types.d.ts.map +0 -1
- package/dist/solution/ShopDiscount/utils.d.ts.map +0 -1
- package/dist/solution/UnifiedBookingSales/index.d.ts.map +0 -1
- package/dist/solution/UnifiedBookingSales/remoteOccupancyCache.d.ts.map +0 -1
- package/dist/solution/UnifiedBookingSales/types.d.ts.map +0 -1
- package/dist/solution/VenueBooking/index.d.ts.map +0 -1
- package/dist/solution/VenueBooking/types.d.ts.map +0 -1
- package/dist/solution/VenueBooking/utils/dateSummary.d.ts.map +0 -1
- package/dist/solution/VenueBooking/utils/resource.d.ts.map +0 -1
- package/dist/solution/VenueBooking/utils/slotMerge.d.ts.map +0 -1
- package/dist/solution/VenueBooking/utils/timeSlot.d.ts.map +0 -1
- package/dist/solution/VenueBooking/utils.d.ts.map +0 -1
- package/dist/solution/index.d.ts.map +0 -1
- package/dist/store/createStore.d.ts.map +0 -1
- package/dist/types/index.d.ts.map +0 -1
- package/dist/utils/os-private-payload.d.ts.map +0 -1
- package/dist/utils/payment-number.d.ts.map +0 -1
- package/dist/utils/platform.d.ts.map +0 -1
- package/dist/utils/task.d.ts.map +0 -1
- package/dist/utils/watch.d.ts.map +0 -1
|
@@ -3083,7 +3083,7 @@ export var BaseSalesImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
3083
3083
|
});
|
|
3084
3084
|
case 75:
|
|
3085
3085
|
if (!rulesModule) {
|
|
3086
|
-
_context25.next =
|
|
3086
|
+
_context25.next = 117;
|
|
3087
3087
|
break;
|
|
3088
3088
|
}
|
|
3089
3089
|
if (isCurrentRequest()) {
|
|
@@ -3093,7 +3093,6 @@ export var BaseSalesImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
3093
3093
|
return _context25.abrupt("return", getCurrentResult());
|
|
3094
3094
|
case 78:
|
|
3095
3095
|
orderTotalAmount = Number(((_orderStore$summary = orderStore.summary) === null || _orderStore$summary === void 0 ? void 0 : _orderStore$summary.total_amount) || 0);
|
|
3096
|
-
console.log('[BaseSales.applyDiscountConfig.calcDiscount]');
|
|
3097
3096
|
result = rulesModule.calcDiscount({
|
|
3098
3097
|
productList: tempOrder.products,
|
|
3099
3098
|
discountList: nextDiscountList,
|
|
@@ -3110,22 +3109,22 @@ export var BaseSalesImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
3110
3109
|
tempOrder.products = preserveManualProductDiscountProducts(tempOrder.products, result.productList);
|
|
3111
3110
|
}
|
|
3112
3111
|
_iterator3 = _createForOfIteratorHelper(tempOrder.products || []);
|
|
3113
|
-
_context25.prev =
|
|
3112
|
+
_context25.prev = 82;
|
|
3114
3113
|
_iterator3.s();
|
|
3115
|
-
case
|
|
3114
|
+
case 84:
|
|
3116
3115
|
if ((_step3 = _iterator3.n()).done) {
|
|
3117
|
-
_context25.next =
|
|
3116
|
+
_context25.next = 99;
|
|
3118
3117
|
break;
|
|
3119
3118
|
}
|
|
3120
3119
|
product = _step3.value;
|
|
3121
3120
|
productUid = (_product$metadata5 = product.metadata) === null || _product$metadata5 === void 0 ? void 0 : _product$metadata5.unique_identification_number;
|
|
3122
3121
|
runtimeOrigin = productUid ? (_tempOrder$_extend6 = tempOrder._extend) === null || _tempOrder$_extend6 === void 0 || (_tempOrder$_extend6 = _tempOrder$_extend6.productsByUid) === null || _tempOrder$_extend6 === void 0 || (_tempOrder$_extend6 = _tempOrder$_extend6[productUid]) === null || _tempOrder$_extend6 === void 0 ? void 0 : _tempOrder$_extend6.origin : undefined;
|
|
3123
3122
|
if (!(runtimeOrigin !== null && runtimeOrigin !== void 0 && runtimeOrigin.isManualDiscount || isBaseSalesManualProductDiscountProduct(product))) {
|
|
3124
|
-
_context25.next =
|
|
3123
|
+
_context25.next = 90;
|
|
3125
3124
|
break;
|
|
3126
3125
|
}
|
|
3127
|
-
return _context25.abrupt("continue",
|
|
3128
|
-
case
|
|
3126
|
+
return _context25.abrupt("continue", 97);
|
|
3127
|
+
case 90:
|
|
3129
3128
|
totalPerUnitDiscount = (product.discount_list || []).reduce(function (sum, pd) {
|
|
3130
3129
|
return sum + Number(pd.amount || 0);
|
|
3131
3130
|
}, 0);
|
|
@@ -3141,95 +3140,95 @@ export var BaseSalesImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
3141
3140
|
mainPrice: newMainSellingPrice,
|
|
3142
3141
|
bundle: product.product_bundle
|
|
3143
3142
|
});
|
|
3144
|
-
case
|
|
3145
|
-
_context25.next =
|
|
3143
|
+
case 97:
|
|
3144
|
+
_context25.next = 84;
|
|
3146
3145
|
break;
|
|
3147
|
-
case
|
|
3148
|
-
_context25.next =
|
|
3146
|
+
case 99:
|
|
3147
|
+
_context25.next = 104;
|
|
3149
3148
|
break;
|
|
3150
|
-
case
|
|
3151
|
-
_context25.prev =
|
|
3152
|
-
_context25.t0 = _context25["catch"](
|
|
3149
|
+
case 101:
|
|
3150
|
+
_context25.prev = 101;
|
|
3151
|
+
_context25.t0 = _context25["catch"](82);
|
|
3153
3152
|
_iterator3.e(_context25.t0);
|
|
3154
|
-
case
|
|
3155
|
-
_context25.prev =
|
|
3153
|
+
case 104:
|
|
3154
|
+
_context25.prev = 104;
|
|
3156
3155
|
_iterator3.f();
|
|
3157
|
-
return _context25.finish(
|
|
3158
|
-
case
|
|
3156
|
+
return _context25.finish(104);
|
|
3157
|
+
case 107:
|
|
3159
3158
|
if (!result.discountList) {
|
|
3160
|
-
_context25.next =
|
|
3159
|
+
_context25.next = 117;
|
|
3161
3160
|
break;
|
|
3162
3161
|
}
|
|
3163
3162
|
nextDiscountList = this.mergeHistoricalDiscountList(result.discountList, tempOrder.products || []);
|
|
3164
3163
|
OrderModule.populateSavedAmounts(tempOrder.products, nextDiscountList);
|
|
3165
3164
|
if (isCurrentRequest()) {
|
|
3166
|
-
_context25.next =
|
|
3165
|
+
_context25.next = 112;
|
|
3167
3166
|
break;
|
|
3168
3167
|
}
|
|
3169
3168
|
return _context25.abrupt("return", getCurrentResult());
|
|
3170
|
-
case
|
|
3171
|
-
_context25.next =
|
|
3169
|
+
case 112:
|
|
3170
|
+
_context25.next = 114;
|
|
3172
3171
|
return discountModule === null || discountModule === void 0 ? void 0 : discountModule.setDiscountList(nextDiscountList);
|
|
3173
|
-
case
|
|
3172
|
+
case 114:
|
|
3174
3173
|
if (isCurrentRequest()) {
|
|
3175
|
-
_context25.next =
|
|
3174
|
+
_context25.next = 116;
|
|
3176
3175
|
break;
|
|
3177
3176
|
}
|
|
3178
3177
|
return _context25.abrupt("return", getCurrentResult());
|
|
3179
|
-
case
|
|
3178
|
+
case 116:
|
|
3180
3179
|
tempOrder.discount_list = nextDiscountList.filter(function (discount) {
|
|
3181
3180
|
return discount.isSelected;
|
|
3182
3181
|
});
|
|
3183
|
-
case
|
|
3182
|
+
case 117:
|
|
3184
3183
|
if (isCurrentRequest()) {
|
|
3185
|
-
_context25.next =
|
|
3184
|
+
_context25.next = 119;
|
|
3186
3185
|
break;
|
|
3187
3186
|
}
|
|
3188
3187
|
return _context25.abrupt("return", getCurrentResult());
|
|
3189
|
-
case
|
|
3190
|
-
_context25.next =
|
|
3188
|
+
case 119:
|
|
3189
|
+
_context25.next = 121;
|
|
3191
3190
|
return this.store.order.recalculateSummary({
|
|
3192
3191
|
createIfMissing: true
|
|
3193
3192
|
});
|
|
3194
|
-
case
|
|
3193
|
+
case 121:
|
|
3195
3194
|
if (isCurrentRequest()) {
|
|
3196
|
-
_context25.next =
|
|
3195
|
+
_context25.next = 123;
|
|
3197
3196
|
break;
|
|
3198
3197
|
}
|
|
3199
3198
|
return _context25.abrupt("return", getCurrentResult());
|
|
3200
|
-
case
|
|
3199
|
+
case 123:
|
|
3201
3200
|
this.store.order.persistTempOrder();
|
|
3202
3201
|
if (isCurrentRequest()) {
|
|
3203
|
-
_context25.next =
|
|
3202
|
+
_context25.next = 126;
|
|
3204
3203
|
break;
|
|
3205
3204
|
}
|
|
3206
3205
|
return _context25.abrupt("return", getCurrentResult());
|
|
3207
|
-
case
|
|
3208
|
-
_context25.next =
|
|
3206
|
+
case 126:
|
|
3207
|
+
_context25.next = 128;
|
|
3209
3208
|
return this.effectsEmit('onDiscountApplied', {
|
|
3210
3209
|
productList: tempOrder.products || [],
|
|
3211
3210
|
discountList: nextDiscountList,
|
|
3212
3211
|
selectedDiscountList: tempOrder.discount_list || [],
|
|
3213
3212
|
tempOrder: tempOrder
|
|
3214
3213
|
});
|
|
3215
|
-
case
|
|
3214
|
+
case 128:
|
|
3216
3215
|
if (isCurrentRequest()) {
|
|
3217
|
-
_context25.next =
|
|
3216
|
+
_context25.next = 130;
|
|
3218
3217
|
break;
|
|
3219
3218
|
}
|
|
3220
3219
|
return _context25.abrupt("return", getCurrentResult());
|
|
3221
|
-
case
|
|
3220
|
+
case 130:
|
|
3222
3221
|
return _context25.abrupt("return", {
|
|
3223
3222
|
productList: tempOrder.products || [],
|
|
3224
3223
|
discountList: nextDiscountList,
|
|
3225
3224
|
availableWalletIds: this.getAvailableWalletIds(),
|
|
3226
3225
|
virtualCurrencyList: this.getVirtualCurrencyList()
|
|
3227
3226
|
});
|
|
3228
|
-
case
|
|
3227
|
+
case 131:
|
|
3229
3228
|
case "end":
|
|
3230
3229
|
return _context25.stop();
|
|
3231
3230
|
}
|
|
3232
|
-
}, _callee25, this, [[
|
|
3231
|
+
}, _callee25, this, [[82, 101, 104, 107]]);
|
|
3233
3232
|
}));
|
|
3234
3233
|
function loadDiscountConfig(_x17) {
|
|
3235
3234
|
return _loadDiscountConfig.apply(this, arguments);
|
|
@@ -3291,11 +3290,10 @@ export var BaseSalesImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
3291
3290
|
return discountModule === null || discountModule === void 0 ? void 0 : discountModule.setDiscountList(nextDiscountList);
|
|
3292
3291
|
case 16:
|
|
3293
3292
|
if (!rulesModule) {
|
|
3294
|
-
_context26.next =
|
|
3293
|
+
_context26.next = 27;
|
|
3295
3294
|
break;
|
|
3296
3295
|
}
|
|
3297
3296
|
orderTotalAmount = Number(((_orderStore$summary2 = orderStore.summary) === null || _orderStore$summary2 === void 0 ? void 0 : _orderStore$summary2.total_amount) || 0);
|
|
3298
|
-
console.log('[BaseSales.bestDiscount.calcDiscount]');
|
|
3299
3297
|
result = rulesModule.calcDiscount({
|
|
3300
3298
|
productList: tempOrder.products,
|
|
3301
3299
|
discountList: nextDiscountList,
|
|
@@ -3309,14 +3307,14 @@ export var BaseSalesImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
3309
3307
|
tempOrder.products = preserveManualProductDiscountProducts(tempOrder.products, result.productList);
|
|
3310
3308
|
}
|
|
3311
3309
|
if (!result.discountList) {
|
|
3312
|
-
_context26.next =
|
|
3310
|
+
_context26.next = 27;
|
|
3313
3311
|
break;
|
|
3314
3312
|
}
|
|
3315
3313
|
nextDiscountList = this.mergeHistoricalDiscountList(result.discountList, tempOrder.products || []);
|
|
3316
3314
|
OrderModule.populateSavedAmounts(tempOrder.products, nextDiscountList);
|
|
3317
|
-
_context26.next =
|
|
3315
|
+
_context26.next = 25;
|
|
3318
3316
|
return discountModule === null || discountModule === void 0 ? void 0 : discountModule.setDiscountList(nextDiscountList);
|
|
3319
|
-
case
|
|
3317
|
+
case 25:
|
|
3320
3318
|
tempOrder.discount_list = nextDiscountList.filter(function (discount) {
|
|
3321
3319
|
return discount.isSelected;
|
|
3322
3320
|
});
|
|
@@ -3324,24 +3322,24 @@ export var BaseSalesImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
3324
3322
|
productList: tempOrder.products,
|
|
3325
3323
|
discountList: nextDiscountList
|
|
3326
3324
|
};
|
|
3327
|
-
case
|
|
3328
|
-
_context26.next =
|
|
3325
|
+
case 27:
|
|
3326
|
+
_context26.next = 29;
|
|
3329
3327
|
return this.store.order.recalculateSummary({
|
|
3330
3328
|
createIfMissing: true
|
|
3331
3329
|
});
|
|
3332
|
-
case
|
|
3330
|
+
case 29:
|
|
3333
3331
|
this.store.order.persistTempOrder();
|
|
3334
|
-
_context26.next =
|
|
3332
|
+
_context26.next = 32;
|
|
3335
3333
|
return this.effectsEmit('onDiscountApplied', {
|
|
3336
3334
|
productList: tempOrder.products || [],
|
|
3337
3335
|
discountList: nextDiscountList,
|
|
3338
3336
|
selectedDiscountList: tempOrder.discount_list || [],
|
|
3339
3337
|
tempOrder: tempOrder
|
|
3340
3338
|
});
|
|
3341
|
-
case
|
|
3339
|
+
case 32:
|
|
3342
3340
|
cb === null || cb === void 0 || cb(result);
|
|
3343
3341
|
return _context26.abrupt("return", result);
|
|
3344
|
-
case
|
|
3342
|
+
case 34:
|
|
3345
3343
|
case "end":
|
|
3346
3344
|
return _context26.stop();
|
|
3347
3345
|
}
|
|
@@ -3528,7 +3526,6 @@ export var BaseSalesImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
3528
3526
|
case 23:
|
|
3529
3527
|
if (rulesModule) {
|
|
3530
3528
|
orderTotalAmount = Number(((_orderStore$summary3 = orderStore.summary) === null || _orderStore$summary3 === void 0 ? void 0 : _orderStore$summary3.total_amount) || 0);
|
|
3531
|
-
console.log('[BaseSales.setDiscountSelected.calcDiscount]');
|
|
3532
3529
|
result = rulesModule.calcDiscount({
|
|
3533
3530
|
productList: tempOrder.products,
|
|
3534
3531
|
discountList: updated,
|
|
@@ -292,4 +292,3 @@ export declare function appendPromotionTags<T extends Record<string, any>>(produ
|
|
|
292
292
|
export declare function processCartPromotion(list: OrderProduct[] | null | undefined, evaluator: CartPromotionEvaluator | null | undefined, options?: {
|
|
293
293
|
channel?: string;
|
|
294
294
|
}): ProcessCartPromotionResult;
|
|
295
|
-
//# sourceMappingURL=cartPromotion.d.ts.map
|
|
@@ -16,4 +16,3 @@ interface BuildBaseSalesQuotationPriceParams extends BaseSalesCalculateProductBo
|
|
|
16
16
|
}
|
|
17
17
|
export declare function calculateBaseSalesProductBookingPrice(params: BuildBaseSalesQuotationPriceParams): BaseSalesProductBookingPriceResult;
|
|
18
18
|
export {};
|
|
19
|
-
//# sourceMappingURL=quotationPrice.d.ts.map
|
|
@@ -65,4 +65,3 @@ export type BaseProductOrderProductInput = Partial<OrderProduct> & OrderProductI
|
|
|
65
65
|
* 注意:这里不生成 identity,缺省时由 OrderModule 自动补齐。
|
|
66
66
|
*/
|
|
67
67
|
export declare function transformBaseProductToOrderProduct(params: TransformBaseProductToOrderProductParams): BaseProductOrderProductInput | null;
|
|
68
|
-
//# sourceMappingURL=transformBaseProductToOrderProduct.d.ts.map
|
|
@@ -38,4 +38,3 @@ export declare function isSkuOnlyDeleteIdentity(x: BaseSalesOrderProductIdentity
|
|
|
38
38
|
* - 因此多次 normalize 不会重复叠加 option/bundle。
|
|
39
39
|
*/
|
|
40
40
|
export declare function normalizeOrderProduct(product: Partial<BaseSalesOrderProduct> & BaseSalesOrderProductIdentity): BaseSalesOrderProduct;
|
|
41
|
-
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -87,23 +87,22 @@ export var BookingByStepImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
87
87
|
this.core = core;
|
|
88
88
|
this.store = options.store || {};
|
|
89
89
|
this.otherParams = options.otherParams || {};
|
|
90
|
-
console.log('[BookingByStep] 初始化完成');
|
|
91
90
|
// 获取依赖的插件
|
|
92
91
|
this.request = core.getPlugin('request');
|
|
93
92
|
this.window = core.getPlugin('window');
|
|
94
93
|
this.shopStore = core.getPlugin('shopStore');
|
|
95
94
|
if (this.request) {
|
|
96
|
-
_context.next =
|
|
95
|
+
_context.next = 8;
|
|
97
96
|
break;
|
|
98
97
|
}
|
|
99
98
|
throw new Error('bookingByStep解决方案需要 request 插件支持');
|
|
100
|
-
case
|
|
99
|
+
case 8:
|
|
101
100
|
if (this.shopStore) {
|
|
102
|
-
_context.next =
|
|
101
|
+
_context.next = 10;
|
|
103
102
|
break;
|
|
104
103
|
}
|
|
105
104
|
throw new Error('SummaryModule 需要 shopStore 插件支持');
|
|
106
|
-
case
|
|
105
|
+
case 10:
|
|
107
106
|
// 如果有传 cacheid,默认需要收集上面这些模块里用户操作选中的数据
|
|
108
107
|
// 并且在上面 registerModule 的时候,读取 sessionStroage 里的数据,塞进默认值
|
|
109
108
|
targetCacheData = {};
|
|
@@ -138,7 +137,7 @@ export var BookingByStepImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
138
137
|
});
|
|
139
138
|
this.store.schedule.loadAllSchedule();
|
|
140
139
|
this.core.effects.emit("".concat(this.name, ":onInited"), {});
|
|
141
|
-
case
|
|
140
|
+
case 18:
|
|
142
141
|
case "end":
|
|
143
142
|
return _context.stop();
|
|
144
143
|
}
|
|
@@ -3187,8 +3186,6 @@ export var BookingByStepImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
3187
3186
|
key: "findCommonAvailableTimeSlots",
|
|
3188
3187
|
value: function findCommonAvailableTimeSlots(resources) {
|
|
3189
3188
|
if (resources.length === 0) return [];
|
|
3190
|
-
console.log("\u8BA1\u7B97 ".concat(resources.length, " \u4E2A\u8D44\u6E90\u7684\u516C\u5171\u65F6\u95F4\u6BB5"));
|
|
3191
|
-
|
|
3192
3189
|
// 收集所有资源的时间段,转换为统一的时间格式
|
|
3193
3190
|
var allTimeSlots = resources.map(function (resource) {
|
|
3194
3191
|
return resource.times.map(function (time) {
|
|
@@ -3198,19 +3195,8 @@ export var BookingByStepImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
3198
3195
|
};
|
|
3199
3196
|
});
|
|
3200
3197
|
});
|
|
3201
|
-
console.log('所有资源的时间段:', allTimeSlots.map(function (slots) {
|
|
3202
|
-
return slots.map(function (slot) {
|
|
3203
|
-
return "".concat(slot.start.format('HH:mm'), "-").concat(slot.end.format('HH:mm'));
|
|
3204
|
-
});
|
|
3205
|
-
}));
|
|
3206
|
-
|
|
3207
3198
|
// 找到公共时间段的交集
|
|
3208
3199
|
var commonSlots = allTimeSlots[0]; // 从第一个资源的时间段开始
|
|
3209
|
-
console.log('初始公共时间段:', commonSlots.map(function (slot) {
|
|
3210
|
-
return "".concat(slot.start.format('HH:mm'), "-").concat(slot.end.format('HH:mm'));
|
|
3211
|
-
}));
|
|
3212
|
-
|
|
3213
|
-
// 与其他资源的时间段求交集
|
|
3214
3200
|
var _loop3 = function _loop3() {
|
|
3215
3201
|
var currentResourceSlots = allTimeSlots[i];
|
|
3216
3202
|
var intersections = [];
|
|
@@ -3231,14 +3217,11 @@ export var BookingByStepImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
3231
3217
|
});
|
|
3232
3218
|
});
|
|
3233
3219
|
if (intersections.length === 0) {
|
|
3234
|
-
console.log("\u8D44\u6E90".concat(i, "\u4E0E\u5F53\u524D\u516C\u5171\u65F6\u95F4\u6BB5\u65E0\u4EA4\u96C6\uFF0C\u8DF3\u8FC7\u8BE5\u8D44\u6E90"));
|
|
3235
3220
|
return 1; // continue
|
|
3236
3221
|
}
|
|
3237
3222
|
commonSlots = intersections;
|
|
3238
|
-
console.log("\u4E0E\u8D44\u6E90".concat(i, "\u6C42\u4EA4\u96C6\u540E\u7684\u516C\u5171\u65F6\u95F4\u6BB5:"), commonSlots.map(function (slot) {
|
|
3239
|
-
return "".concat(slot.start.format('HH:mm'), "-").concat(slot.end.format('HH:mm'));
|
|
3240
|
-
}));
|
|
3241
3223
|
};
|
|
3224
|
+
// 与其他资源的时间段求交集
|
|
3242
3225
|
for (var i = 1; i < allTimeSlots.length; i++) {
|
|
3243
3226
|
if (_loop3()) continue;
|
|
3244
3227
|
}
|
|
@@ -3250,7 +3233,6 @@ export var BookingByStepImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
3250
3233
|
endTime: slot.end.format('HH:mm')
|
|
3251
3234
|
};
|
|
3252
3235
|
});
|
|
3253
|
-
console.log('最终公共时间段:', result);
|
|
3254
3236
|
return result;
|
|
3255
3237
|
}
|
|
3256
3238
|
}, {
|
|
@@ -3360,7 +3342,6 @@ export var BookingByStepImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
3360
3342
|
// 获取该资源类型对应的 form_id
|
|
3361
3343
|
var targetFormId = resourceCodeToFormIdMap[resourceCode];
|
|
3362
3344
|
if (!targetFormId) {
|
|
3363
|
-
console.log("\u8D44\u6E90\u7C7B\u578B ".concat(resourceCode, " \u627E\u4E0D\u5230\u5BF9\u5E94\u7684 form_id"));
|
|
3364
3345
|
return {
|
|
3365
3346
|
v: {
|
|
3366
3347
|
success: false,
|
|
@@ -3387,7 +3368,6 @@ export var BookingByStepImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
3387
3368
|
});
|
|
3388
3369
|
});
|
|
3389
3370
|
if (resourcesOfThisType.length === 0) {
|
|
3390
|
-
console.log("\u8D44\u6E90\u7C7B\u578B ".concat(resourceCode, " \u6CA1\u6709\u627E\u5230\u53EF\u7528\u8D44\u6E90"));
|
|
3391
3371
|
return {
|
|
3392
3372
|
v: {
|
|
3393
3373
|
success: false,
|
|
@@ -3454,24 +3434,13 @@ export var BookingByStepImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
3454
3434
|
// 检查是否有容量问题
|
|
3455
3435
|
if (requiredAmount > totalAvailable) {
|
|
3456
3436
|
hasCapacityIssue = true;
|
|
3457
|
-
console.log("\u8D44\u6E90\u7C7B\u578B ".concat(resourceCode, " ").concat(isMultipleBooking ? '容量' : '资源数量', "\u4E0D\u8DB3: \u9700\u8981 ").concat(requiredAmount, ", \u603B\u5171 ").concat(totalAvailable));
|
|
3458
3437
|
}
|
|
3459
3438
|
|
|
3460
3439
|
// 为通过检测的商品分配一个公共可用时间段
|
|
3461
|
-
console.log("\u8D44\u6E90\u7C7B\u578B ".concat(resourceCode, " \u7684\u8D44\u6E90\u65F6\u95F4\u4FE1\u606F:"), resourcesOfThisType.map(function (r) {
|
|
3462
|
-
return {
|
|
3463
|
-
id: r.id,
|
|
3464
|
-
times: r.times.map(function (t) {
|
|
3465
|
-
return "".concat(t.start_at, " - ").concat(t.end_at);
|
|
3466
|
-
})
|
|
3467
|
-
};
|
|
3468
|
-
}));
|
|
3469
3440
|
|
|
3470
3441
|
// 找到所有资源都可用的时间段
|
|
3471
3442
|
var commonTimeSlots = _this16.findCommonAvailableTimeSlots(resourcesOfThisType);
|
|
3472
|
-
console.log("\u8D44\u6E90\u7C7B\u578B ".concat(resourceCode, " \u7684\u516C\u5171\u65F6\u95F4\u6BB5:"), commonTimeSlots);
|
|
3473
3443
|
if (commonTimeSlots.length === 0) {
|
|
3474
|
-
console.log("\u8D44\u6E90\u7C7B\u578B ".concat(resourceCode, " \u6CA1\u6709\u516C\u5171\u53EF\u7528\u65F6\u95F4\u6BB5"));
|
|
3475
3444
|
return {
|
|
3476
3445
|
v: {
|
|
3477
3446
|
success: false,
|
|
@@ -3482,7 +3451,6 @@ export var BookingByStepImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
3482
3451
|
|
|
3483
3452
|
// 使用第一个公共可用时间段,但只处理未处理过的商品
|
|
3484
3453
|
var firstCommonSlot = commonTimeSlots[0];
|
|
3485
|
-
console.log("\u4F7F\u7528\u516C\u5171\u65F6\u95F4\u6BB5: ".concat(firstCommonSlot.startTime, " - ").concat(firstCommonSlot.endTime));
|
|
3486
3454
|
items.forEach(function (cartItem) {
|
|
3487
3455
|
// 只处理未处理过的商品,避免重复添加
|
|
3488
3456
|
if (!processedCartItemIds.has(cartItem._id)) {
|
|
@@ -3793,7 +3761,6 @@ export var BookingByStepImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
3793
3761
|
// 获取该资源类型对应的 form_id
|
|
3794
3762
|
var targetFormId = resourceCodeToFormIdMap[resourceCode];
|
|
3795
3763
|
if (!targetFormId) {
|
|
3796
|
-
console.log("\u8D44\u6E90\u7C7B\u578B ".concat(resourceCode, " \u627E\u4E0D\u5230\u5BF9\u5E94\u7684 form_id"));
|
|
3797
3764
|
return {
|
|
3798
3765
|
v: {
|
|
3799
3766
|
success: false,
|
|
@@ -3820,7 +3787,6 @@ export var BookingByStepImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
3820
3787
|
});
|
|
3821
3788
|
});
|
|
3822
3789
|
if (resourcesOfThisType.length === 0) {
|
|
3823
|
-
console.log("\u8D44\u6E90\u7C7B\u578B ".concat(resourceCode, " \u6CA1\u6709\u627E\u5230\u53EF\u7528\u8D44\u6E90"));
|
|
3824
3790
|
return {
|
|
3825
3791
|
v: {
|
|
3826
3792
|
success: false,
|
|
@@ -3887,24 +3853,13 @@ export var BookingByStepImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
3887
3853
|
// 检查是否有容量问题
|
|
3888
3854
|
if (requiredAmount > totalAvailable) {
|
|
3889
3855
|
hasCapacityIssue = true;
|
|
3890
|
-
console.log("\u8D44\u6E90\u7C7B\u578B ".concat(resourceCode, " ").concat(isMultipleBooking ? '容量' : '资源数量', "\u4E0D\u8DB3: \u9700\u8981 ").concat(requiredAmount, ", \u603B\u5171 ").concat(totalAvailable));
|
|
3891
3856
|
}
|
|
3892
3857
|
|
|
3893
3858
|
// 为通过检测的商品分配一个公共可用时间段
|
|
3894
|
-
console.log("\u8D44\u6E90\u7C7B\u578B ".concat(resourceCode, " \u7684\u8D44\u6E90\u65F6\u95F4\u4FE1\u606F:"), resourcesOfThisType.map(function (r) {
|
|
3895
|
-
return {
|
|
3896
|
-
id: r.id,
|
|
3897
|
-
times: r.times.map(function (t) {
|
|
3898
|
-
return "".concat(t.start_at, " - ").concat(t.end_at);
|
|
3899
|
-
})
|
|
3900
|
-
};
|
|
3901
|
-
}));
|
|
3902
3859
|
|
|
3903
3860
|
// 找到所有资源都可用的时间段
|
|
3904
3861
|
var commonTimeSlots = _this17.findCommonAvailableTimeSlots(resourcesOfThisType);
|
|
3905
|
-
console.log("\u8D44\u6E90\u7C7B\u578B ".concat(resourceCode, " \u7684\u516C\u5171\u65F6\u95F4\u6BB5:"), commonTimeSlots);
|
|
3906
3862
|
if (commonTimeSlots.length === 0) {
|
|
3907
|
-
console.log("\u8D44\u6E90\u7C7B\u578B ".concat(resourceCode, " \u6CA1\u6709\u516C\u5171\u53EF\u7528\u65F6\u95F4\u6BB5"));
|
|
3908
3863
|
return {
|
|
3909
3864
|
v: {
|
|
3910
3865
|
success: false,
|
|
@@ -3915,7 +3870,6 @@ export var BookingByStepImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
3915
3870
|
|
|
3916
3871
|
// 使用第一个公共可用时间段,但只处理未处理过的商品
|
|
3917
3872
|
var firstCommonSlot = commonTimeSlots[0];
|
|
3918
|
-
console.log("\u4F7F\u7528\u516C\u5171\u65F6\u95F4\u6BB5: ".concat(firstCommonSlot.startTime, " - ").concat(firstCommonSlot.endTime));
|
|
3919
3873
|
items.forEach(function (cartItem) {
|
|
3920
3874
|
// 只处理未处理过的商品,避免重复添加
|
|
3921
3875
|
if (!processedCartItemIds.has(cartItem._id)) {
|
|
@@ -4225,12 +4179,6 @@ export var BookingByStepImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
4225
4179
|
while (1) switch (_context29.prev = _context29.next) {
|
|
4226
4180
|
case 0:
|
|
4227
4181
|
startDate = _ref16.startDate, endDate = _ref16.endDate, scheduleIds = _ref16.scheduleIds, resources = _ref16.resources;
|
|
4228
|
-
console.log('appoimentBooking-session-date-getTimeslotsScheduleByDateRange', {
|
|
4229
|
-
startDate: startDate,
|
|
4230
|
-
endDate: endDate,
|
|
4231
|
-
scheduleIds: scheduleIds,
|
|
4232
|
-
resources: resources
|
|
4233
|
-
});
|
|
4234
4182
|
// 生成日期范围内的所有日期
|
|
4235
4183
|
dates = [];
|
|
4236
4184
|
currentDate = dayjs(startDate);
|
|
@@ -4250,7 +4198,7 @@ export var BookingByStepImpl = /*#__PURE__*/function (_BaseModule) {
|
|
|
4250
4198
|
});
|
|
4251
4199
|
}
|
|
4252
4200
|
return _context29.abrupt("return", results);
|
|
4253
|
-
case
|
|
4201
|
+
case 8:
|
|
4254
4202
|
case "end":
|
|
4255
4203
|
return _context29.stop();
|
|
4256
4204
|
}
|
|
@@ -293,7 +293,7 @@ export function checkTimeSlotCapacity(timeSlotStart, timeSlotEnd, cartItems, all
|
|
|
293
293
|
|
|
294
294
|
// 检查每种资源类型是否有足够的容量
|
|
295
295
|
var _loop = function _loop() {
|
|
296
|
-
var _resourceTypeConfig
|
|
296
|
+
var _resourceTypeConfig;
|
|
297
297
|
var _Object$entries$_i = _slicedToArray(_Object$entries[_i], 2),
|
|
298
298
|
formId = _Object$entries$_i[0],
|
|
299
299
|
requiredCapacity = _Object$entries$_i[1];
|
|
@@ -324,12 +324,6 @@ export function checkTimeSlotCapacity(timeSlotStart, timeSlotEnd, cartItems, all
|
|
|
324
324
|
_iterator2.f();
|
|
325
325
|
}
|
|
326
326
|
var isMultipleBooking = ((_resourceTypeConfig = resourceTypeConfig) === null || _resourceTypeConfig === void 0 ? void 0 : _resourceTypeConfig.type) === 'multiple';
|
|
327
|
-
console.log("capacity.ts - \u8D44\u6E90\u7C7B\u578B ".concat(formId, " \u914D\u7F6E:"), {
|
|
328
|
-
resourceTypeConfig: resourceTypeConfig,
|
|
329
|
-
type: (_resourceTypeConfig2 = resourceTypeConfig) === null || _resourceTypeConfig2 === void 0 ? void 0 : _resourceTypeConfig2.type,
|
|
330
|
-
isMultipleBooking: isMultipleBooking,
|
|
331
|
-
requiredCapacity: requiredCapacity
|
|
332
|
-
});
|
|
333
327
|
if (isMultipleBooking) {
|
|
334
328
|
// 多个预约:计算总可用容量
|
|
335
329
|
var totalAvailableCapacity = 0;
|
|
@@ -343,9 +337,7 @@ export function checkTimeSlotCapacity(timeSlotStart, timeSlotEnd, cartItems, all
|
|
|
343
337
|
totalAvailableCapacity += resource.capacity || 0;
|
|
344
338
|
}
|
|
345
339
|
});
|
|
346
|
-
console.log("capacity.ts - \u8D44\u6E90\u7C7B\u578B ".concat(formId, " \u591A\u4E2A\u9884\u7EA6\u68C0\u67E5: \u603B\u5BB9\u91CF ").concat(totalAvailableCapacity, ", \u9700\u6C42 ").concat(requiredCapacity));
|
|
347
340
|
if (totalAvailableCapacity < requiredCapacity) {
|
|
348
|
-
console.log("\u8D44\u6E90\u7C7B\u578B ".concat(formId, " \u5BB9\u91CF\u4E0D\u8DB3: \u9700\u8981 ").concat(requiredCapacity, ", \u53EF\u7528 ").concat(totalAvailableCapacity));
|
|
349
341
|
return {
|
|
350
342
|
v: {
|
|
351
343
|
success: false,
|
|
@@ -366,9 +358,7 @@ export function checkTimeSlotCapacity(timeSlotStart, timeSlotEnd, cartItems, all
|
|
|
366
358
|
availableResourceCount++;
|
|
367
359
|
}
|
|
368
360
|
});
|
|
369
|
-
console.log("capacity.ts - \u8D44\u6E90\u7C7B\u578B ".concat(formId, " \u5355\u4E2A\u9884\u7EA6\u68C0\u67E5: \u53EF\u7528\u8D44\u6E90\u6570 ").concat(availableResourceCount, ", \u9700\u6C42 ").concat(requiredCapacity));
|
|
370
361
|
if (availableResourceCount < requiredCapacity) {
|
|
371
|
-
console.log("\u8D44\u6E90\u7C7B\u578B ".concat(formId, " \u6570\u91CF\u4E0D\u8DB3: \u9700\u8981 ").concat(requiredCapacity, ", \u53EF\u7528 ").concat(availableResourceCount));
|
|
372
362
|
return {
|
|
373
363
|
v: {
|
|
374
364
|
success: false,
|
|
@@ -258,4 +258,3 @@ export declare function filterResourcesByFormItem(resources: ResourceItem[], for
|
|
|
258
258
|
*/
|
|
259
259
|
export declare function checkTwoResourcesIntersection(resource1: ResourceItem, resource2: ResourceItem): true | undefined;
|
|
260
260
|
export {};
|
|
261
|
-
//# sourceMappingURL=resources.d.ts.map
|
|
@@ -36,4 +36,3 @@ export declare function findFastestAvailableResource({ resources, currentCapacit
|
|
|
36
36
|
* @return {*}
|
|
37
37
|
*/
|
|
38
38
|
export declare function filterConditionTimeSlots(times: TimeSliceItem[], startTime: Dayjs, endTime: Dayjs): TimeSliceItem[];
|
|
39
|
-
//# sourceMappingURL=timeslots.d.ts.map
|