@pisell/private-materials 6.3.141 → 6.3.142

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (181) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/meta.js +1 -1
  5. package/build/lowcode/render/default/view.js +1 -1
  6. package/build/lowcode/view.js +1 -1
  7. package/es/components/scanOrder/components/Content/index.js +21 -14
  8. package/es/components/scanOrder/components/Menu/index.d.ts +1 -0
  9. package/es/components/scanOrder/components/Menu/index.js +2 -1
  10. package/es/components/scanOrder/locales.d.ts +5 -0
  11. package/es/components/scanOrder/locales.js +5 -0
  12. package/lib/components/scanOrder/components/Content/index.js +4 -0
  13. package/lib/components/scanOrder/components/Menu/index.d.ts +1 -0
  14. package/lib/components/scanOrder/components/Menu/index.js +2 -2
  15. package/lib/components/scanOrder/locales.d.ts +5 -0
  16. package/lib/components/scanOrder/locales.js +5 -0
  17. package/package.json +1 -1
  18. package/es/components/appointmentBooking/components/Form/index.d.ts +0 -4
  19. package/es/components/appointmentBooking/components/Services/index.d.ts +0 -4
  20. package/es/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -3
  21. package/es/components/appointmentBooking/hooks.d.ts +0 -107
  22. package/es/components/appointmentBooking/utils.d.ts +0 -227
  23. package/es/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.d.ts +0 -6
  24. package/es/components/authentication/admin/ChannelAuthSetting/index.d.ts +0 -6
  25. package/es/components/booking/components/footer/utils.d.ts +0 -47
  26. package/es/components/booking/components/reloadResourceModal/index.d.ts +0 -9
  27. package/es/components/booking/components/voucher/index.d.ts +0 -3
  28. package/es/components/booking/info/service/editService/constants.d.ts +0 -1
  29. package/es/components/booking/info/service/editService/index.d.ts +0 -7
  30. package/es/components/booking/info/service2/utils.d.ts +0 -248
  31. package/es/components/booking/info2/index.d.ts +0 -12
  32. package/es/components/booking/info2/service/addService/index.d.ts +0 -11
  33. package/es/components/booking/locales.d.ts +0 -1489
  34. package/es/components/booking/model.d.ts +0 -120
  35. package/es/components/eftposPay/amount.d.ts +0 -21
  36. package/es/components/eftposPay/app.d.ts +0 -10
  37. package/es/components/eftposPay/component/fail/failCustom.d.ts +0 -3
  38. package/es/components/eftposPay/component/fail/index.d.ts +0 -3
  39. package/es/components/eftposPay/component/fail/network.d.ts +0 -9
  40. package/es/components/eftposPay/component/fail/unknow.d.ts +0 -10
  41. package/es/components/eftposPay/component/manual/index.d.ts +0 -9
  42. package/es/components/eftposPay/component/signature/index.d.ts +0 -9
  43. package/es/components/eftposPay/device.d.ts +0 -23
  44. package/es/components/eftposPay/index.d.ts +0 -4
  45. package/es/components/eftposPay/linkly/hooks/normal.d.ts +0 -30
  46. package/es/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +0 -4
  47. package/es/components/eftposPay/linkly/index.d.ts +0 -2
  48. package/es/components/eftposPay/pay.d.ts +0 -20
  49. package/es/components/eftposPay/payo/config.d.ts +0 -13
  50. package/es/components/eftposPay/payo/hooks.d.ts +0 -10
  51. package/es/components/eftposPay/payo/payment.d.ts +0 -66
  52. package/es/components/eftposPay/tip.d.ts +0 -10
  53. package/es/components/eftposPay/tyro/index.d.ts +0 -9
  54. package/es/components/eftposPay/utils/payLog.d.ts +0 -81
  55. package/es/components/eftposPay/windcave/receiptAction.d.ts +0 -23
  56. package/es/components/eftposPay/windcave/windcave.d.ts +0 -7
  57. package/es/components/kioskSkuDetail/index.d.ts +0 -39
  58. package/es/components/kioskSkuDetail/locales.d.ts +0 -48
  59. package/es/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.d.ts +0 -10
  60. package/es/components/pay/toC/PaymentMethods/GlobePayPaypalH5/index.d.ts +0 -10
  61. package/es/components/pay/toC/PaymentMethods/GlobePayWxH5/index.d.ts +0 -10
  62. package/es/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.d.ts +0 -16
  63. package/es/components/pay/toC/PaymentMethods/MWCreditCard/index.d.ts +0 -15
  64. package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.d.ts +0 -83
  65. package/es/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.d.ts +0 -10
  66. package/es/components/pay/toC/PaymentMethods/SuperPayWxPayH5/index.d.ts +0 -10
  67. package/es/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +0 -22
  68. package/es/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +0 -25
  69. package/es/components/pay/toC/PaymentMethods/WalletPass/utils.d.ts +0 -16
  70. package/es/components/pay/toC/PaymentMethods/index.d.ts +0 -9
  71. package/es/components/pay/toC/index.d.ts +0 -3
  72. package/es/components/pay/toC/locales.d.ts +0 -631
  73. package/es/components/pay/toC/payGroup.d.ts +0 -59
  74. package/es/components/pay/toC/serve.d.ts +0 -87
  75. package/es/components/pay/toC/utils.d.ts +0 -65
  76. package/es/components/ruleSetting/locales.d.ts +0 -78
  77. package/es/components/systemSettings/registry/components/GroupModal.d.ts +0 -4
  78. package/es/components/systemSettings/registry/components/ItemModal.d.ts +0 -4
  79. package/es/components/systemSettings/registry/index.d.ts +0 -5
  80. package/es/components/systemSettings/registry/services.d.ts +0 -99
  81. package/es/components/systemSettings/registry/types.d.ts +0 -143
  82. package/es/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -9
  83. package/es/components/ticketBooking/components/ticketBooking/index.d.ts +0 -4
  84. package/es/components/ticketBooking/components/timeBar/index.d.ts +0 -12
  85. package/es/components/ticketBooking/index.d.ts +0 -7
  86. package/es/index.d.ts +0 -87
  87. package/es/plus/skuOptionsSelection/components/NormalCard/index.d.ts +0 -6
  88. package/es/plus/skuOptionsSelection/components/OptionsCard/OptionItemCard.d.ts +0 -4
  89. package/es/plus/skuOptionsSelection/components/OptionsModal/index.d.ts +0 -16
  90. package/es/plus/skuOptionsSelection/index.d.ts +0 -5
  91. package/es/plus/skuOptionsSelection/locales.d.ts +0 -58
  92. package/es/plus/skuOptionsSelection/types.d.ts +0 -458
  93. package/es/plus/skuOptionsSelection/utils/transformBundleGroup.d.ts +0 -19
  94. package/es/plus/skuOptionsSelection/utils/transformOptionGroup.d.ts +0 -1
  95. package/es/plus/skuOptionsSelection/utils/transformSelectorValueToValue.d.ts +0 -4
  96. package/es/plus/skuOptionsSelection/utils/transformValueToSelectorValue.d.ts +0 -4
  97. package/es/plus/skuOptionsSelection/utils/transformVariantGroup.d.ts +0 -1
  98. package/es/pro/Cards/components/SKUCard/index.d.ts +0 -5
  99. package/es/pro/Login2.0/components/phoneValidation.d.ts +0 -17
  100. package/lib/components/appointmentBooking/components/Form/index.d.ts +0 -4
  101. package/lib/components/appointmentBooking/components/Services/index.d.ts +0 -4
  102. package/lib/components/appointmentBooking/deposit/components/PolicyModal/index.d.ts +0 -3
  103. package/lib/components/appointmentBooking/hooks.d.ts +0 -107
  104. package/lib/components/appointmentBooking/utils.d.ts +0 -227
  105. package/lib/components/authentication/admin/ChannelAuthSetting/OnlineShopAuth/index.d.ts +0 -6
  106. package/lib/components/authentication/admin/ChannelAuthSetting/index.d.ts +0 -6
  107. package/lib/components/booking/components/footer/utils.d.ts +0 -47
  108. package/lib/components/booking/components/reloadResourceModal/index.d.ts +0 -9
  109. package/lib/components/booking/components/voucher/index.d.ts +0 -3
  110. package/lib/components/booking/info/service/editService/constants.d.ts +0 -1
  111. package/lib/components/booking/info/service/editService/index.d.ts +0 -7
  112. package/lib/components/booking/info/service2/utils.d.ts +0 -248
  113. package/lib/components/booking/info2/index.d.ts +0 -12
  114. package/lib/components/booking/info2/service/addService/index.d.ts +0 -11
  115. package/lib/components/booking/locales.d.ts +0 -1489
  116. package/lib/components/booking/model.d.ts +0 -120
  117. package/lib/components/eftposPay/amount.d.ts +0 -21
  118. package/lib/components/eftposPay/app.d.ts +0 -10
  119. package/lib/components/eftposPay/component/fail/failCustom.d.ts +0 -3
  120. package/lib/components/eftposPay/component/fail/index.d.ts +0 -3
  121. package/lib/components/eftposPay/component/fail/network.d.ts +0 -9
  122. package/lib/components/eftposPay/component/fail/unknow.d.ts +0 -10
  123. package/lib/components/eftposPay/component/manual/index.d.ts +0 -9
  124. package/lib/components/eftposPay/component/signature/index.d.ts +0 -9
  125. package/lib/components/eftposPay/device.d.ts +0 -23
  126. package/lib/components/eftposPay/index.d.ts +0 -4
  127. package/lib/components/eftposPay/linkly/hooks/normal.d.ts +0 -30
  128. package/lib/components/eftposPay/linkly/hooks/useTimeQuery.d.ts +0 -4
  129. package/lib/components/eftposPay/linkly/index.d.ts +0 -2
  130. package/lib/components/eftposPay/pay.d.ts +0 -20
  131. package/lib/components/eftposPay/payo/config.d.ts +0 -13
  132. package/lib/components/eftposPay/payo/hooks.d.ts +0 -10
  133. package/lib/components/eftposPay/payo/payment.d.ts +0 -66
  134. package/lib/components/eftposPay/tip.d.ts +0 -10
  135. package/lib/components/eftposPay/tyro/index.d.ts +0 -9
  136. package/lib/components/eftposPay/utils/payLog.d.ts +0 -81
  137. package/lib/components/eftposPay/windcave/receiptAction.d.ts +0 -23
  138. package/lib/components/eftposPay/windcave/windcave.d.ts +0 -7
  139. package/lib/components/kioskSkuDetail/index.d.ts +0 -39
  140. package/lib/components/kioskSkuDetail/locales.d.ts +0 -48
  141. package/lib/components/pay/toC/PaymentMethods/GlobePayAliPayH5/index.d.ts +0 -10
  142. package/lib/components/pay/toC/PaymentMethods/GlobePayPaypalH5/index.d.ts +0 -10
  143. package/lib/components/pay/toC/PaymentMethods/GlobePayWxH5/index.d.ts +0 -10
  144. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/TDSPay/index.d.ts +0 -16
  145. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/index.d.ts +0 -15
  146. package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.d.ts +0 -83
  147. package/lib/components/pay/toC/PaymentMethods/SuperPayAliPayH5/index.d.ts +0 -10
  148. package/lib/components/pay/toC/PaymentMethods/SuperPayWxPayH5/index.d.ts +0 -10
  149. package/lib/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +0 -22
  150. package/lib/components/pay/toC/PaymentMethods/WalletPass/index.d.ts +0 -25
  151. package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.d.ts +0 -16
  152. package/lib/components/pay/toC/PaymentMethods/index.d.ts +0 -9
  153. package/lib/components/pay/toC/index.d.ts +0 -3
  154. package/lib/components/pay/toC/locales.d.ts +0 -631
  155. package/lib/components/pay/toC/payGroup.d.ts +0 -59
  156. package/lib/components/pay/toC/serve.d.ts +0 -87
  157. package/lib/components/pay/toC/utils.d.ts +0 -65
  158. package/lib/components/ruleSetting/locales.d.ts +0 -78
  159. package/lib/components/systemSettings/registry/components/GroupModal.d.ts +0 -4
  160. package/lib/components/systemSettings/registry/components/ItemModal.d.ts +0 -4
  161. package/lib/components/systemSettings/registry/index.d.ts +0 -5
  162. package/lib/components/systemSettings/registry/services.d.ts +0 -99
  163. package/lib/components/systemSettings/registry/types.d.ts +0 -143
  164. package/lib/components/ticketBooking/components/addServiceVariant/addService.d.ts +0 -9
  165. package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +0 -4
  166. package/lib/components/ticketBooking/components/timeBar/index.d.ts +0 -12
  167. package/lib/components/ticketBooking/index.d.ts +0 -7
  168. package/lib/index.d.ts +0 -87
  169. package/lib/plus/skuOptionsSelection/components/NormalCard/index.d.ts +0 -6
  170. package/lib/plus/skuOptionsSelection/components/OptionsCard/OptionItemCard.d.ts +0 -4
  171. package/lib/plus/skuOptionsSelection/components/OptionsModal/index.d.ts +0 -16
  172. package/lib/plus/skuOptionsSelection/index.d.ts +0 -5
  173. package/lib/plus/skuOptionsSelection/locales.d.ts +0 -58
  174. package/lib/plus/skuOptionsSelection/types.d.ts +0 -458
  175. package/lib/plus/skuOptionsSelection/utils/transformBundleGroup.d.ts +0 -19
  176. package/lib/plus/skuOptionsSelection/utils/transformOptionGroup.d.ts +0 -1
  177. package/lib/plus/skuOptionsSelection/utils/transformSelectorValueToValue.d.ts +0 -4
  178. package/lib/plus/skuOptionsSelection/utils/transformValueToSelectorValue.d.ts +0 -4
  179. package/lib/plus/skuOptionsSelection/utils/transformVariantGroup.d.ts +0 -1
  180. package/lib/pro/Cards/components/SKUCard/index.d.ts +0 -5
  181. package/lib/pro/Login2.0/components/phoneValidation.d.ts +0 -17
@@ -124,6 +124,10 @@ function ReadyState() {
124
124
  _useState10 = _slicedToArray(_useState9, 2),
125
125
  productList = _useState10[0],
126
126
  setProductList = _useState10[1];
127
+ var _useState11 = useState(false),
128
+ _useState12 = _slicedToArray(_useState11, 2),
129
+ isProductListLoading = _useState12[0],
130
+ setIsProductListLoading = _useState12[1];
127
131
  var productListLoadedRef = useRef(false);
128
132
  var productListPromiseRef = useRef(null);
129
133
  var ensureProductListLoaded = useCallback( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
@@ -151,19 +155,20 @@ function ReadyState() {
151
155
  return _regeneratorRuntime().wrap(function _callee$(_context) {
152
156
  while (1) switch (_context.prev = _context.next) {
153
157
  case 0:
154
- _context.prev = 0;
155
- _context.next = 3;
158
+ setIsProductListLoading(true);
159
+ _context.prev = 1;
160
+ _context.next = 4;
156
161
  return runModuleAction('getProductList');
157
- case 3:
162
+ case 4:
158
163
  res = _context.sent;
159
164
  if (!Array.isArray(res)) {
160
- _context.next = 8;
165
+ _context.next = 9;
161
166
  break;
162
167
  }
163
168
  productListLoadedRef.current = true;
164
169
  setProductList(res);
165
170
  return _context.abrupt("return");
166
- case 8:
171
+ case 9:
167
172
  // 非数组错误载荷:沿用原 Menu 内的 Modal.confirm + 跳首页逻辑
168
173
  Modal.confirm({
169
174
  title: res === null || res === void 0 ? void 0 : res.message,
@@ -178,21 +183,22 @@ function ReadyState() {
178
183
  location.replace('/');
179
184
  }
180
185
  });
181
- _context.next = 14;
186
+ _context.next = 15;
182
187
  break;
183
- case 11:
184
- _context.prev = 11;
185
- _context.t0 = _context["catch"](0);
188
+ case 12:
189
+ _context.prev = 12;
190
+ _context.t0 = _context["catch"](1);
186
191
  console.warn('[scanOrder] getProductList failed', _context.t0);
187
- case 14:
188
- _context.prev = 14;
192
+ case 15:
193
+ _context.prev = 15;
194
+ setIsProductListLoading(false);
189
195
  productListPromiseRef.current = null;
190
- return _context.finish(14);
191
- case 17:
196
+ return _context.finish(15);
197
+ case 19:
192
198
  case "end":
193
199
  return _context.stop();
194
200
  }
195
- }, _callee, null, [[0, 11, 14, 17]]);
201
+ }, _callee, null, [[1, 12, 15, 19]]);
196
202
  }))();
197
203
  productListPromiseRef.current = request;
198
204
  _context2.next = 10;
@@ -681,6 +687,7 @@ function ReadyState() {
681
687
  return goToStep('check');
682
688
  },
683
689
  productList: productList,
690
+ isProductListLoading: isProductListLoading,
684
691
  onEnsureProductList: ensureProductListLoaded
685
692
  }),
686
693
  check: /*#__PURE__*/React.createElement(Check, null),
@@ -11,6 +11,7 @@ interface MenuProps {
11
11
  * - 首次:真发请求
12
12
  * - 后续(如从 check 返回 product):命中缓存,直接短路,不重复发请求
13
13
  */
14
+ isProductListLoading: boolean;
14
15
  onEnsureProductList: () => Promise<void>;
15
16
  }
16
17
  export default function Menu(props: MenuProps): JSX.Element;
@@ -24,6 +24,7 @@ export default function Menu(props) {
24
24
  var _scrollRef$current;
25
25
  var onCheckout = props.onCheckout,
26
26
  productList = props.productList,
27
+ isProductListLoading = props.isProductListLoading,
27
28
  onEnsureProductList = props.onEnsureProductList;
28
29
  var context = useEngineContext();
29
30
  var _ref = context.appHelper || {},
@@ -349,7 +350,7 @@ export default function Menu(props) {
349
350
  // _isMobile ? '.parallel-content-wrap' : '.parallel-booking-wrap'
350
351
  // }
351
352
  ,
352
- loading: false,
353
+ loading: isProductListLoading,
353
354
  emptyDescription: locales.getText('pisell2.scan.order.empty.product'),
354
355
  token: {
355
356
  colorPrimary: 'var(--theme-color)',
@@ -9,6 +9,7 @@ declare const _default: {
9
9
  'pisell2.scan.order.action.select.required': string;
10
10
  'pisell2.scan.order.step.init': string;
11
11
  'pisell2.scan.order.loading.initializing': string;
12
+ 'pisell2.scan.order.loading.products': string;
12
13
  'pisell2.scan.order.step.product': string;
13
14
  'pisell2.scan.order.step.check': string;
14
15
  'pisell2.scan.order.step.error': string;
@@ -57,6 +58,7 @@ declare const _default: {
57
58
  'pisell2.scan.order.action.select.required': string;
58
59
  'pisell2.scan.order.step.init': string;
59
60
  'pisell2.scan.order.loading.initializing': string;
61
+ 'pisell2.scan.order.loading.products': string;
60
62
  'pisell2.scan.order.step.product': string;
61
63
  'pisell2.scan.order.step.check': string;
62
64
  'pisell2.scan.order.step.error': string;
@@ -105,6 +107,7 @@ declare const _default: {
105
107
  'pisell2.scan.order.action.select.required': string;
106
108
  'pisell2.scan.order.step.init': string;
107
109
  'pisell2.scan.order.loading.initializing': string;
110
+ 'pisell2.scan.order.loading.products': string;
108
111
  'pisell2.scan.order.step.product': string;
109
112
  'pisell2.scan.order.step.check': string;
110
113
  'pisell2.scan.order.step.error': string;
@@ -153,6 +156,7 @@ declare const _default: {
153
156
  'pisell2.scan.order.action.select.required': string;
154
157
  'pisell2.scan.order.step.init': string;
155
158
  'pisell2.scan.order.loading.initializing': string;
159
+ 'pisell2.scan.order.loading.products': string;
156
160
  'pisell2.scan.order.step.product': string;
157
161
  'pisell2.scan.order.step.check': string;
158
162
  'pisell2.scan.order.step.error': string;
@@ -201,6 +205,7 @@ declare const _default: {
201
205
  'pisell2.scan.order.action.select.required': string;
202
206
  'pisell2.scan.order.step.init': string;
203
207
  'pisell2.scan.order.loading.initializing': string;
208
+ 'pisell2.scan.order.loading.products': string;
204
209
  'pisell2.scan.order.step.product': string;
205
210
  'pisell2.scan.order.step.check': string;
206
211
  'pisell2.scan.order.step.error': string;
@@ -9,6 +9,7 @@ export default {
9
9
  'pisell2.scan.order.action.select.required': 'Select Required',
10
10
  'pisell2.scan.order.step.init': 'Initialize',
11
11
  'pisell2.scan.order.loading.initializing': 'Preparing your order, please wait...',
12
+ 'pisell2.scan.order.loading.products': 'Loading products...',
12
13
  'pisell2.scan.order.step.product': 'Select product',
13
14
  'pisell2.scan.order.step.check': 'Check order',
14
15
  'pisell2.scan.order.step.error': 'Unavailable',
@@ -57,6 +58,7 @@ export default {
57
58
  'pisell2.scan.order.action.select.required': '请选择',
58
59
  'pisell2.scan.order.step.init': '初始化',
59
60
  'pisell2.scan.order.loading.initializing': '正在为您准备点餐页面,请稍候...',
61
+ 'pisell2.scan.order.loading.products': '正在获取商品中...',
60
62
  'pisell2.scan.order.step.product': '选择商品',
61
63
  'pisell2.scan.order.step.check': '订单确认',
62
64
  'pisell2.scan.order.step.error': '不可用',
@@ -105,6 +107,7 @@ export default {
105
107
  'pisell2.scan.order.action.select.required': '請選擇',
106
108
  'pisell2.scan.order.step.init': '初始化',
107
109
  'pisell2.scan.order.loading.initializing': '正在為您準備點餐頁面,請稍候...',
110
+ 'pisell2.scan.order.loading.products': '正在獲取商品中...',
108
111
  'pisell2.scan.order.step.product': '選擇商品',
109
112
  'pisell2.scan.order.step.check': '訂單確認',
110
113
  'pisell2.scan.order.step.error': '不可用',
@@ -153,6 +156,7 @@ export default {
153
156
  'pisell2.scan.order.action.select.required': '選択してください',
154
157
  'pisell2.scan.order.step.init': '初期化',
155
158
  'pisell2.scan.order.loading.initializing': 'ご注文画面を準備しています。しばらくお待ちください。',
159
+ 'pisell2.scan.order.loading.products': '商品を取得しています...',
156
160
  'pisell2.scan.order.step.product': '商品を選択',
157
161
  'pisell2.scan.order.step.check': '注文確認',
158
162
  'pisell2.scan.order.step.error': '利用不可',
@@ -201,6 +205,7 @@ export default {
201
205
  'pisell2.scan.order.action.select.required': 'Selecionar obrigatório',
202
206
  'pisell2.scan.order.step.init': 'Inicializar',
203
207
  'pisell2.scan.order.loading.initializing': 'Estamos preparando sua tela de pedido, aguarde...',
208
+ 'pisell2.scan.order.loading.products': 'Carregando produtos...',
204
209
  'pisell2.scan.order.step.product': 'Selecionar produto',
205
210
  'pisell2.scan.order.step.check': 'Verificar pedido',
206
211
  'pisell2.scan.order.step.error': 'Indisponível',
@@ -112,6 +112,7 @@ function ReadyState() {
112
112
  });
113
113
  const [pendingFormPayload, setPendingFormPayload] = (0, import_react.useState)(null);
114
114
  const [productList, setProductList] = (0, import_react.useState)([]);
115
+ const [isProductListLoading, setIsProductListLoading] = (0, import_react.useState)(false);
115
116
  const productListLoadedRef = (0, import_react.useRef)(false);
116
117
  const productListPromiseRef = (0, import_react.useRef)(null);
117
118
  const ensureProductListLoaded = (0, import_react.useCallback)(async () => {
@@ -122,6 +123,7 @@ function ReadyState() {
122
123
  return;
123
124
  }
124
125
  const request = (async () => {
126
+ setIsProductListLoading(true);
125
127
  try {
126
128
  const res = await runModuleAction("getProductList");
127
129
  if (Array.isArray(res)) {
@@ -141,6 +143,7 @@ function ReadyState() {
141
143
  } catch (error) {
142
144
  console.warn("[scanOrder] getProductList failed", error);
143
145
  } finally {
146
+ setIsProductListLoading(false);
144
147
  productListPromiseRef.current = null;
145
148
  }
146
149
  })();
@@ -465,6 +468,7 @@ function ReadyState() {
465
468
  {
466
469
  onCheckout: () => goToStep("check"),
467
470
  productList,
471
+ isProductListLoading,
468
472
  onEnsureProductList: ensureProductListLoaded
469
473
  }
470
474
  ),
@@ -11,6 +11,7 @@ interface MenuProps {
11
11
  * - 首次:真发请求
12
12
  * - 后续(如从 check 返回 product):命中缓存,直接短路,不重复发请求
13
13
  */
14
+ isProductListLoading: boolean;
14
15
  onEnsureProductList: () => Promise<void>;
15
16
  }
16
17
  export default function Menu(props: MenuProps): JSX.Element;
@@ -41,7 +41,7 @@ var import_materials = require("@pisell/materials");
41
41
  var import_transformProductDetail = require("../../utils/transformProductDetail");
42
42
  function Menu(props) {
43
43
  var _a;
44
- const { onCheckout, productList, onEnsureProductList } = props;
44
+ const { onCheckout, productList, isProductListLoading, onEnsureProductList } = props;
45
45
  const context = (0, import_useEngineContext.default)();
46
46
  const { utils } = context.appHelper || {};
47
47
  const {
@@ -214,7 +214,7 @@ function Menu(props) {
214
214
  {
215
215
  dataSource: productList,
216
216
  onChange: handleSelectProduct,
217
- loading: false,
217
+ loading: isProductListLoading,
218
218
  emptyDescription: import_utils.locales.getText(
219
219
  "pisell2.scan.order.empty.product"
220
220
  ),
@@ -9,6 +9,7 @@ declare const _default: {
9
9
  'pisell2.scan.order.action.select.required': string;
10
10
  'pisell2.scan.order.step.init': string;
11
11
  'pisell2.scan.order.loading.initializing': string;
12
+ 'pisell2.scan.order.loading.products': string;
12
13
  'pisell2.scan.order.step.product': string;
13
14
  'pisell2.scan.order.step.check': string;
14
15
  'pisell2.scan.order.step.error': string;
@@ -57,6 +58,7 @@ declare const _default: {
57
58
  'pisell2.scan.order.action.select.required': string;
58
59
  'pisell2.scan.order.step.init': string;
59
60
  'pisell2.scan.order.loading.initializing': string;
61
+ 'pisell2.scan.order.loading.products': string;
60
62
  'pisell2.scan.order.step.product': string;
61
63
  'pisell2.scan.order.step.check': string;
62
64
  'pisell2.scan.order.step.error': string;
@@ -105,6 +107,7 @@ declare const _default: {
105
107
  'pisell2.scan.order.action.select.required': string;
106
108
  'pisell2.scan.order.step.init': string;
107
109
  'pisell2.scan.order.loading.initializing': string;
110
+ 'pisell2.scan.order.loading.products': string;
108
111
  'pisell2.scan.order.step.product': string;
109
112
  'pisell2.scan.order.step.check': string;
110
113
  'pisell2.scan.order.step.error': string;
@@ -153,6 +156,7 @@ declare const _default: {
153
156
  'pisell2.scan.order.action.select.required': string;
154
157
  'pisell2.scan.order.step.init': string;
155
158
  'pisell2.scan.order.loading.initializing': string;
159
+ 'pisell2.scan.order.loading.products': string;
156
160
  'pisell2.scan.order.step.product': string;
157
161
  'pisell2.scan.order.step.check': string;
158
162
  'pisell2.scan.order.step.error': string;
@@ -201,6 +205,7 @@ declare const _default: {
201
205
  'pisell2.scan.order.action.select.required': string;
202
206
  'pisell2.scan.order.step.init': string;
203
207
  'pisell2.scan.order.loading.initializing': string;
208
+ 'pisell2.scan.order.loading.products': string;
204
209
  'pisell2.scan.order.step.product': string;
205
210
  'pisell2.scan.order.step.check': string;
206
211
  'pisell2.scan.order.step.error': string;
@@ -33,6 +33,7 @@ var locales_default = {
33
33
  "pisell2.scan.order.action.select.required": "Select Required",
34
34
  "pisell2.scan.order.step.init": "Initialize",
35
35
  "pisell2.scan.order.loading.initializing": "Preparing your order, please wait...",
36
+ "pisell2.scan.order.loading.products": "Loading products...",
36
37
  "pisell2.scan.order.step.product": "Select product",
37
38
  "pisell2.scan.order.step.check": "Check order",
38
39
  "pisell2.scan.order.step.error": "Unavailable",
@@ -81,6 +82,7 @@ var locales_default = {
81
82
  "pisell2.scan.order.action.select.required": "请选择",
82
83
  "pisell2.scan.order.step.init": "初始化",
83
84
  "pisell2.scan.order.loading.initializing": "正在为您准备点餐页面,请稍候...",
85
+ "pisell2.scan.order.loading.products": "正在获取商品中...",
84
86
  "pisell2.scan.order.step.product": "选择商品",
85
87
  "pisell2.scan.order.step.check": "订单确认",
86
88
  "pisell2.scan.order.step.error": "不可用",
@@ -129,6 +131,7 @@ var locales_default = {
129
131
  "pisell2.scan.order.action.select.required": "請選擇",
130
132
  "pisell2.scan.order.step.init": "初始化",
131
133
  "pisell2.scan.order.loading.initializing": "正在為您準備點餐頁面,請稍候...",
134
+ "pisell2.scan.order.loading.products": "正在獲取商品中...",
132
135
  "pisell2.scan.order.step.product": "選擇商品",
133
136
  "pisell2.scan.order.step.check": "訂單確認",
134
137
  "pisell2.scan.order.step.error": "不可用",
@@ -177,6 +180,7 @@ var locales_default = {
177
180
  "pisell2.scan.order.action.select.required": "選択してください",
178
181
  "pisell2.scan.order.step.init": "初期化",
179
182
  "pisell2.scan.order.loading.initializing": "ご注文画面を準備しています。しばらくお待ちください。",
183
+ "pisell2.scan.order.loading.products": "商品を取得しています...",
180
184
  "pisell2.scan.order.step.product": "商品を選択",
181
185
  "pisell2.scan.order.step.check": "注文確認",
182
186
  "pisell2.scan.order.step.error": "利用不可",
@@ -225,6 +229,7 @@ var locales_default = {
225
229
  "pisell2.scan.order.action.select.required": "Selecionar obrigatório",
226
230
  "pisell2.scan.order.step.init": "Inicializar",
227
231
  "pisell2.scan.order.loading.initializing": "Estamos preparando sua tela de pedido, aguarde...",
232
+ "pisell2.scan.order.loading.products": "Carregando produtos...",
228
233
  "pisell2.scan.order.step.product": "Selecionar produto",
229
234
  "pisell2.scan.order.step.check": "Verificar pedido",
230
235
  "pisell2.scan.order.step.error": "Indisponível",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/private-materials",
3
- "version": "6.3.141",
3
+ "version": "6.3.142",
4
4
  "scripts": {
5
5
  "dev": "father dev",
6
6
  "build": "father build",
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- declare const Form: React.ForwardRefExoticComponent<Omit<any, "ref"> & React.RefAttributes<unknown>>;
4
- export default Form;
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- declare const Services: React.ForwardRefExoticComponent<React.RefAttributes<unknown>>;
4
- export default Services;
@@ -1,3 +0,0 @@
1
- import './index.less';
2
- declare const DepositModal: (props: any) => JSX.Element;
3
- export default DepositModal;
@@ -1,107 +0,0 @@
1
- export declare const useAppointmentBooking: () => any;
2
- export declare const useShopDiscount: () => any;
3
- export declare const contextUtils: () => any;
4
- /**
5
- * @title: 监听步骤发生变化
6
- * @description:
7
- * @return {*}
8
- * @Author: WangHan
9
- * @Date: 2025-04-15 11:11
10
- */
11
- export declare const useAppointmentBookingStep: () => {
12
- getStepIndex: (type: string, skipNumber?: number) => any;
13
- stepList: any;
14
- removeStep: (key: string) => any;
15
- addStep: (props: any, stepKey?: string) => any;
16
- updateStep: (key: string, step: any) => void;
17
- nextStep: (isLog?: boolean) => any;
18
- };
19
- /**
20
- * @title: 获取商品数据
21
- * @description:
22
- * @return {*}
23
- * @Author: WangHan
24
- * @Date: 2025-04-15 11:12
25
- */
26
- export declare const useAppointmentBookingProduct: () => {
27
- checkProductType: (productId: number) => Promise<any>;
28
- getProducts: () => Promise<any>;
29
- };
30
- /**
31
- * @title: 更新购物车数据
32
- * @description:
33
- * @return {*}
34
- * @Author: WangHan
35
- * @Date: 2025-04-15 11:12
36
- */
37
- export declare const useAppointmentBookingCart: () => void;
38
- /**
39
- * @title: 获取登录状态
40
- * @description:
41
- * @return {*}
42
- * @Author: WangHan
43
- * @Date: 2025-04-15 11:14
44
- */
45
- export declare const useAppointmentBookingLogin: () => {
46
- isLogin: boolean;
47
- openLoginModal: (params: {
48
- callback: any;
49
- }) => void;
50
- };
51
- /**
52
- * @title: 获取账户
53
- * @description:
54
- * @return {*}
55
- * @Author: WangHan
56
- * @Date: 2025-04-15 11:15
57
- */
58
- export declare const useAppointmentBookingAccount: () => {
59
- accountLists: any;
60
- getHolders: () => Promise<any>;
61
- form_id: any;
62
- addAccount: (val: any, type?: string) => Promise<any>;
63
- checkAccount: (type: any) => any;
64
- };
65
- /**
66
- * @title: 获取资源数据
67
- * @description:
68
- * @return {*}
69
- * @Author: WangHan
70
- * @Date: 2025-04-15 11:29
71
- */
72
- export declare const useAppointmentBookingResource: () => {
73
- getResourceTimeSlot: (index?: number) => Promise<void>;
74
- getResourceList: () => {
75
- resources: any[];
76
- resourceCodes: any;
77
- };
78
- };
79
- /**
80
- * @title: 是否跳过资源选择步骤
81
- * @description:
82
- * @return {*}
83
- * @Author: WangHan
84
- * @Date: 2025-04-21 11:47
85
- */
86
- export declare const useIsSkipResourceStep: () => {
87
- checkSkipResourceStep: () => Promise<boolean>;
88
- };
89
- /**
90
- * @title: 获取预约配置
91
- * @description:
92
- * @return {*}
93
- * @Author: WangHan
94
- * @Date: 2025-04-24 18:15
95
- */
96
- export declare const useAppointmentBookingSetting: () => {
97
- isDateSelectedFirst: boolean;
98
- isFormSubject: boolean;
99
- isRetailTemplate: any;
100
- customPageId: any;
101
- channel: any;
102
- bookingSubject: any;
103
- setOtherData: (key: string, val: any) => any;
104
- getOtherData: (key: string) => any;
105
- formName: any;
106
- bookingSetting: any;
107
- };