@pisell/private-materials 6.3.219 → 6.3.220

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.
@@ -21,7 +21,7 @@ const DEFAULT_COIN_OR_CARD = 0;
21
21
  * - 底部用 PisellNumberSelector 做数量编辑
22
22
  */
23
23
  function KioskSkuDetail(props) {
24
- var _ref, _context$appHelper, _context$engine, _context$appHelper2, _store$getState, _store$getState2, _store$getState3;
24
+ var _ref, _context$appHelper, _context$engine, _context$appHelper2, _store$getState, _store$getState2, _store$getState3, _interaction$utils$ge;
25
25
  const { className, style, onAddToCart } = props;
26
26
  /**
27
27
  * @description 从 URL 中读取 productId(兼容 search / hash query)
@@ -165,6 +165,7 @@ function KioskSkuDetail(props) {
165
165
  }(), [getData, scheduleDate]);
166
166
  const loadRef = useRef(loadByProductId);
167
167
  loadRef.current = loadByProductId;
168
+ const shop_id = interaction === null || interaction === void 0 || (_interaction$utils$ge = interaction.utils.getStore().getState()) === null || _interaction$utils$ge === void 0 || (_interaction$utils$ge = _interaction$utils$ge.global) === null || _interaction$utils$ge === void 0 || (_interaction$utils$ge = _interaction$utils$ge.shop) === null || _interaction$utils$ge === void 0 ? void 0 : _interaction$utils$ge.id;
168
169
  useEffect(() => {
169
170
  var _interaction$utils, _interaction$utils$po, _interaction$utils2, _interaction$utils2$m, _interaction$utils3, _interaction$utils3$m, _interaction$utils4, _interaction$utils4$m;
170
171
  interaction === null || interaction === void 0 || (_interaction$utils = interaction.utils) === null || _interaction$utils === void 0 || (_interaction$utils$po = _interaction$utils.postMessageToApp) === null || _interaction$utils$po === void 0 || _interaction$utils$po.call(_interaction$utils, {
@@ -179,7 +180,11 @@ function KioskSkuDetail(props) {
179
180
  resetForInit();
180
181
  if (id || id === 0) loadRef.current(id);
181
182
  setIsEdit(false);
182
- setShouldSelectCoinOrCard(true);
183
+ setShouldSelectCoinOrCard([
184
+ "9",
185
+ "265",
186
+ "9230"
187
+ ].includes(String(shop_id)));
183
188
  });
184
189
  interaction === null || interaction === void 0 || (_interaction$utils3 = interaction.utils) === null || _interaction$utils3 === void 0 || (_interaction$utils3$m = _interaction$utils3.mountFunction) === null || _interaction$utils3$m === void 0 || _interaction$utils3$m.call(_interaction$utils3, "wallet_pass", "restore_recharge_wallet_pass", (_data) => {
185
190
  const data = JSON.parse(_data || "{}");
@@ -36,6 +36,7 @@ var locales_default = {
36
36
  "pisell2.scan.order.products.empty.tip": "Please select products",
37
37
  "pisell2.scan.order.check.cart.empty.tip": "Please go back to add products",
38
38
  "pisell2.scan.order.submit.disabled.default": "Order submission is currently disabled.",
39
+ "pisell2.scan.order.submit.failed": "Failed to submit order",
39
40
  "pisell2.scan.order.multiple.orders.tip": "There are multiple active orders for this table. Please contact staff for add-on orders.",
40
41
  "pisell2.scan.order.multiple.orders.confirm": "I Got It",
41
42
  "pisell2.scan.order.settled.cannot.add.tip": "This order has already been settled and you cannot add more items. Please scan again to create a new order or contact staff.",
@@ -105,6 +106,7 @@ var locales_default = {
105
106
  "pisell2.scan.order.products.empty.tip": "请选择商品",
106
107
  "pisell2.scan.order.check.cart.empty.tip": "请返回添加商品",
107
108
  "pisell2.scan.order.submit.disabled.default": "当前暂不可下单",
109
+ "pisell2.scan.order.submit.failed": "订单提交失败",
108
110
  "pisell2.scan.order.multiple.orders.tip": "当前桌台存在多个进行中的订单,请联系店员处理加餐。",
109
111
  "pisell2.scan.order.multiple.orders.confirm": "我知道了",
110
112
  "pisell2.scan.order.settled.cannot.add.tip": "当前订单已结账,无法继续加餐。请重新扫码创建新订单或联系店员。",
@@ -174,6 +176,7 @@ var locales_default = {
174
176
  "pisell2.scan.order.products.empty.tip": "請選擇商品",
175
177
  "pisell2.scan.order.check.cart.empty.tip": "請返回添加商品",
176
178
  "pisell2.scan.order.submit.disabled.default": "當前暫不可下單",
179
+ "pisell2.scan.order.submit.failed": "訂單提交失敗",
177
180
  "pisell2.scan.order.multiple.orders.tip": "當前桌台存在多個進行中的訂單,請聯繫店員處理加餐。",
178
181
  "pisell2.scan.order.multiple.orders.confirm": "我知道了",
179
182
  "pisell2.scan.order.settled.cannot.add.tip": "當前訂單已結賬,無法繼續加餐。請重新掃碼創建新訂單或聯繫店員。",
@@ -243,6 +246,7 @@ var locales_default = {
243
246
  "pisell2.scan.order.products.empty.tip": "商品を選択してください",
244
247
  "pisell2.scan.order.check.cart.empty.tip": "商品を追加するには、前の画面に戻ってください",
245
248
  "pisell2.scan.order.submit.disabled.default": "現在、注文を送信できません。",
249
+ "pisell2.scan.order.submit.failed": "注文の送信に失敗しました",
246
250
  "pisell2.scan.order.multiple.orders.tip": "現在のテーブルには進行中の注文が複数あります。追加注文についてはスタッフにお問い合わせください。",
247
251
  "pisell2.scan.order.multiple.orders.confirm": "了解しました",
248
252
  "pisell2.scan.order.settled.cannot.add.tip": "現在の注文はすでに会計済みのため、追加注文できません。再度QRコードをスキャンして新しい注文を作成するか、スタッフにお問い合わせください。",
@@ -312,6 +316,7 @@ var locales_default = {
312
316
  "pisell2.scan.order.products.empty.tip": "Selecione produtos",
313
317
  "pisell2.scan.order.check.cart.empty.tip": "Volte para adicionar produtos",
314
318
  "pisell2.scan.order.submit.disabled.default": "No momento, não é possível enviar pedidos.",
319
+ "pisell2.scan.order.submit.failed": "Falha ao enviar o pedido",
315
320
  "pisell2.scan.order.multiple.orders.tip": "Há vários pedidos ativos nesta mesa. Entre em contato com a equipe para adicionar itens.",
316
321
  "pisell2.scan.order.multiple.orders.confirm": "Entendi",
317
322
  "pisell2.scan.order.settled.cannot.add.tip": "Este pedido já foi finalizado e não é possível adicionar mais itens. Escaneie novamente para criar um novo pedido ou entre em contato com a equipe.",
@@ -26,7 +26,7 @@ const DEFAULT_COIN_OR_CARD = 0;
26
26
  * - 底部用 PisellNumberSelector 做数量编辑
27
27
  */
28
28
  function KioskSkuDetail(props) {
29
- var _ref, _context$appHelper, _context$engine, _context$appHelper2, _store$getState, _store$getState2, _store$getState3;
29
+ var _ref, _context$appHelper, _context$engine, _context$appHelper2, _store$getState, _store$getState2, _store$getState3, _interaction$utils$ge;
30
30
  const { className, style, onAddToCart } = props;
31
31
  /**
32
32
  * @description 从 URL 中读取 productId(兼容 search / hash query)
@@ -170,6 +170,7 @@ function KioskSkuDetail(props) {
170
170
  }(), [getData, scheduleDate]);
171
171
  const loadRef = (0, react.useRef)(loadByProductId);
172
172
  loadRef.current = loadByProductId;
173
+ const shop_id = interaction === null || interaction === void 0 || (_interaction$utils$ge = interaction.utils.getStore().getState()) === null || _interaction$utils$ge === void 0 || (_interaction$utils$ge = _interaction$utils$ge.global) === null || _interaction$utils$ge === void 0 || (_interaction$utils$ge = _interaction$utils$ge.shop) === null || _interaction$utils$ge === void 0 ? void 0 : _interaction$utils$ge.id;
173
174
  (0, react.useEffect)(() => {
174
175
  var _interaction$utils, _interaction$utils$po, _interaction$utils2, _interaction$utils2$m, _interaction$utils3, _interaction$utils3$m, _interaction$utils4, _interaction$utils4$m;
175
176
  interaction === null || interaction === void 0 || (_interaction$utils = interaction.utils) === null || _interaction$utils === void 0 || (_interaction$utils$po = _interaction$utils.postMessageToApp) === null || _interaction$utils$po === void 0 || _interaction$utils$po.call(_interaction$utils, {
@@ -184,7 +185,11 @@ function KioskSkuDetail(props) {
184
185
  resetForInit();
185
186
  if (id || id === 0) loadRef.current(id);
186
187
  setIsEdit(false);
187
- setShouldSelectCoinOrCard(true);
188
+ setShouldSelectCoinOrCard([
189
+ "9",
190
+ "265",
191
+ "9230"
192
+ ].includes(String(shop_id)));
188
193
  });
189
194
  interaction === null || interaction === void 0 || (_interaction$utils3 = interaction.utils) === null || _interaction$utils3 === void 0 || (_interaction$utils3$m = _interaction$utils3.mountFunction) === null || _interaction$utils3$m === void 0 || _interaction$utils3$m.call(_interaction$utils3, "wallet_pass", "restore_recharge_wallet_pass", (_data) => {
190
195
  const data = JSON.parse(_data || "{}");
@@ -36,6 +36,7 @@ var locales_default = {
36
36
  "pisell2.scan.order.products.empty.tip": "Please select products",
37
37
  "pisell2.scan.order.check.cart.empty.tip": "Please go back to add products",
38
38
  "pisell2.scan.order.submit.disabled.default": "Order submission is currently disabled.",
39
+ "pisell2.scan.order.submit.failed": "Failed to submit order",
39
40
  "pisell2.scan.order.multiple.orders.tip": "There are multiple active orders for this table. Please contact staff for add-on orders.",
40
41
  "pisell2.scan.order.multiple.orders.confirm": "I Got It",
41
42
  "pisell2.scan.order.settled.cannot.add.tip": "This order has already been settled and you cannot add more items. Please scan again to create a new order or contact staff.",
@@ -105,6 +106,7 @@ var locales_default = {
105
106
  "pisell2.scan.order.products.empty.tip": "请选择商品",
106
107
  "pisell2.scan.order.check.cart.empty.tip": "请返回添加商品",
107
108
  "pisell2.scan.order.submit.disabled.default": "当前暂不可下单",
109
+ "pisell2.scan.order.submit.failed": "订单提交失败",
108
110
  "pisell2.scan.order.multiple.orders.tip": "当前桌台存在多个进行中的订单,请联系店员处理加餐。",
109
111
  "pisell2.scan.order.multiple.orders.confirm": "我知道了",
110
112
  "pisell2.scan.order.settled.cannot.add.tip": "当前订单已结账,无法继续加餐。请重新扫码创建新订单或联系店员。",
@@ -174,6 +176,7 @@ var locales_default = {
174
176
  "pisell2.scan.order.products.empty.tip": "請選擇商品",
175
177
  "pisell2.scan.order.check.cart.empty.tip": "請返回添加商品",
176
178
  "pisell2.scan.order.submit.disabled.default": "當前暫不可下單",
179
+ "pisell2.scan.order.submit.failed": "訂單提交失敗",
177
180
  "pisell2.scan.order.multiple.orders.tip": "當前桌台存在多個進行中的訂單,請聯繫店員處理加餐。",
178
181
  "pisell2.scan.order.multiple.orders.confirm": "我知道了",
179
182
  "pisell2.scan.order.settled.cannot.add.tip": "當前訂單已結賬,無法繼續加餐。請重新掃碼創建新訂單或聯繫店員。",
@@ -243,6 +246,7 @@ var locales_default = {
243
246
  "pisell2.scan.order.products.empty.tip": "商品を選択してください",
244
247
  "pisell2.scan.order.check.cart.empty.tip": "商品を追加するには、前の画面に戻ってください",
245
248
  "pisell2.scan.order.submit.disabled.default": "現在、注文を送信できません。",
249
+ "pisell2.scan.order.submit.failed": "注文の送信に失敗しました",
246
250
  "pisell2.scan.order.multiple.orders.tip": "現在のテーブルには進行中の注文が複数あります。追加注文についてはスタッフにお問い合わせください。",
247
251
  "pisell2.scan.order.multiple.orders.confirm": "了解しました",
248
252
  "pisell2.scan.order.settled.cannot.add.tip": "現在の注文はすでに会計済みのため、追加注文できません。再度QRコードをスキャンして新しい注文を作成するか、スタッフにお問い合わせください。",
@@ -312,6 +316,7 @@ var locales_default = {
312
316
  "pisell2.scan.order.products.empty.tip": "Selecione produtos",
313
317
  "pisell2.scan.order.check.cart.empty.tip": "Volte para adicionar produtos",
314
318
  "pisell2.scan.order.submit.disabled.default": "No momento, não é possível enviar pedidos.",
319
+ "pisell2.scan.order.submit.failed": "Falha ao enviar o pedido",
315
320
  "pisell2.scan.order.multiple.orders.tip": "Há vários pedidos ativos nesta mesa. Entre em contato com a equipe para adicionar itens.",
316
321
  "pisell2.scan.order.multiple.orders.confirm": "Entendi",
317
322
  "pisell2.scan.order.settled.cannot.add.tip": "Este pedido já foi finalizado e não é possível adicionar mais itens. Escaneie novamente para criar um novo pedido ou entre em contato com a equipe.",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/private-materials",
3
- "version": "6.3.219",
3
+ "version": "6.3.220",
4
4
  "scripts": {
5
5
  "dev": "father dev",
6
6
  "build": "father build",