@pisell/private-materials 3.0.140 → 3.0.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 (71) 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/index.js +1 -1
  5. package/build/lowcode/meta.js +1 -1
  6. package/build/lowcode/preview.js +4 -4
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +8 -8
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +6 -6
  11. package/es/components/booking/addons/model.d.ts +2 -1
  12. package/es/components/booking/forms/model.d.ts +2 -1
  13. package/es/components/booking/info/header/index.js +73 -9
  14. package/es/components/booking/locales.d.ts +3 -0
  15. package/es/components/booking/locales.js +3 -0
  16. package/es/components/booking/notes/index.d.ts +1 -1
  17. package/es/components/booking/notes/model.d.ts +2 -1
  18. package/es/components/booking/payments/model.d.ts +2 -1
  19. package/es/components/eftposPay/amount.js +1 -1
  20. package/es/components/eftposPay/component/fail/failCustom.js +5 -6
  21. package/es/components/eftposPay/component/fail/index.js +5 -5
  22. package/es/components/eftposPay/component/manual/index.js +1 -1
  23. package/es/components/eftposPay/const.d.ts +2 -0
  24. package/es/components/eftposPay/const.js +1 -0
  25. package/es/components/eftposPay/device.d.ts +3 -2
  26. package/es/components/eftposPay/device.js +100 -38
  27. package/es/components/eftposPay/device.less +37 -4
  28. package/es/components/eftposPay/helper.d.ts +11 -0
  29. package/es/components/eftposPay/helper.js +29 -6
  30. package/es/components/eftposPay/hooks.d.ts +1 -1
  31. package/es/components/eftposPay/index.d.ts +4 -1
  32. package/es/components/eftposPay/index.js +22 -11
  33. package/es/components/eftposPay/locales.js +45 -45
  34. package/es/components/eftposPay/payo/config.js +1 -1
  35. package/es/components/eftposPay/store/index.d.ts +1 -1
  36. package/es/components/eftposPay/tyro/index.js +8 -2
  37. package/es/components/eftposPay/windcave/windcave.js +2 -2
  38. package/es/components/schedules/index.d.ts +1 -1
  39. package/es/components/schedules/model.d.ts +2 -1
  40. package/lib/components/booking/addons/model.d.ts +2 -1
  41. package/lib/components/booking/forms/model.d.ts +2 -1
  42. package/lib/components/booking/info/header/index.js +52 -7
  43. package/lib/components/booking/locales.d.ts +3 -0
  44. package/lib/components/booking/locales.js +3 -0
  45. package/lib/components/booking/notes/index.d.ts +1 -1
  46. package/lib/components/booking/notes/model.d.ts +2 -1
  47. package/lib/components/booking/payments/model.d.ts +2 -1
  48. package/lib/components/eftposPay/amount.js +2 -6
  49. package/lib/components/eftposPay/component/fail/failCustom.js +5 -6
  50. package/lib/components/eftposPay/component/fail/index.js +5 -5
  51. package/lib/components/eftposPay/component/manual/index.js +1 -1
  52. package/lib/components/eftposPay/const.d.ts +2 -0
  53. package/lib/components/eftposPay/const.js +1 -0
  54. package/lib/components/eftposPay/device.d.ts +3 -2
  55. package/lib/components/eftposPay/device.js +73 -32
  56. package/lib/components/eftposPay/device.less +37 -4
  57. package/lib/components/eftposPay/helper.d.ts +11 -0
  58. package/lib/components/eftposPay/helper.js +26 -4
  59. package/lib/components/eftposPay/hooks.d.ts +1 -1
  60. package/lib/components/eftposPay/index.d.ts +4 -1
  61. package/lib/components/eftposPay/index.js +16 -6
  62. package/lib/components/eftposPay/locales.js +45 -45
  63. package/lib/components/eftposPay/payo/config.js +1 -1
  64. package/lib/components/eftposPay/store/index.d.ts +1 -1
  65. package/lib/components/eftposPay/tyro/index.js +9 -8
  66. package/lib/components/eftposPay/windcave/windcave.js +2 -2
  67. package/lib/components/schedules/index.d.ts +1 -1
  68. package/lib/components/schedules/model.d.ts +2 -1
  69. package/lowcode/eftpos-pay/meta.ts +11 -0
  70. package/lowcode/vertical-add-service/meta.ts +71 -0
  71. package/package.json +4 -4
@@ -29,6 +29,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
29
29
  // src/components/eftposPay/index.tsx
30
30
  var eftposPay_exports = {};
31
31
  __export(eftposPay_exports, {
32
+ Root: () => Root,
32
33
  default: () => eftposPay_default
33
34
  });
34
35
  module.exports = __toCommonJS(eftposPay_exports);
@@ -130,7 +131,8 @@ var App = ({
130
131
  isIpad,
131
132
  className: isIpad ? "pisell-lowcode__eft-pay-terminal" : "",
132
133
  net,
133
- device_number
134
+ device_number,
135
+ formatAmount
134
136
  }
135
137
  );
136
138
  }
@@ -162,7 +164,7 @@ var App = ({
162
164
  }
163
165
  );
164
166
  };
165
- var eftposPay_default = (props) => {
167
+ var Root = (props) => {
166
168
  var _a, _b, _c, _d, _e, _f;
167
169
  const context = (0, import_useEngineContext.default)();
168
170
  const { store } = ((_a = context.appHelper) == null ? void 0 : _a.utils) || { store: {} };
@@ -202,7 +204,7 @@ var eftposPay_default = (props) => {
202
204
  if (state.action) {
203
205
  return state.action;
204
206
  }
205
- if (mode === import_const.ModeEnum.Pay) {
207
+ if (mode === import_const.ModeEnum.Pay || mode === import_const.ModeEnum.FullPay) {
206
208
  if (state.device && state.pay) {
207
209
  return import_const.RouteEnum.Pay;
208
210
  }
@@ -222,11 +224,12 @@ var eftposPay_default = (props) => {
222
224
  }
223
225
  throw Error("未知模式");
224
226
  })();
225
- if (props.source === "restore") {
226
- onChangeStatus("page", act);
227
- }
227
+ onChangeStatus("page", act);
228
228
  return act;
229
229
  }, [mode, state]);
230
+ (0, import_react.useEffect)(() => {
231
+ console.log("初始化 ........");
232
+ }, []);
230
233
  console.log("props?.params?.device_number = ", (_e = props == null ? void 0 : props.params) == null ? void 0 : _e.device_number);
231
234
  return /* @__PURE__ */ import_react.default.createElement(import_store.Provider, { state }, /* @__PURE__ */ import_react.default.createElement(
232
235
  App,
@@ -242,3 +245,10 @@ var eftposPay_default = (props) => {
242
245
  }
243
246
  ));
244
247
  };
248
+ var eftposPay_default = ({ key, ...props }) => {
249
+ return /* @__PURE__ */ import_react.default.createElement(Root, { ...props, key });
250
+ };
251
+ // Annotate the CommonJS export names for ESM import in node:
252
+ 0 && (module.exports = {
253
+ Root
254
+ });
@@ -24,8 +24,8 @@ __export(locales_exports, {
24
24
  module.exports = __toCommonJS(locales_exports);
25
25
  var locales_default = {
26
26
  en: {
27
- "page.eftpos-pay.text.loading": (mode) => `${mode === "pay" ? "Payment" : "Refund"} in progress...`,
28
- "page.eftpos-pay.text.wait": (val, mode) => mode === "pay" ? `Asked EFTPOS to accept payment for Purchase ${val}` : `Requested EFTPOS to accept the refund for ${val}.`,
27
+ "page.eftpos-pay.text.loading": (mode) => `${mode === "pay" || mode === "fullPay" ? "Payment" : "Refund"} in progress...`,
28
+ "page.eftpos-pay.text.wait": (val, mode) => mode === "pay" || mode === "fullPay" ? `Asked EFTPOS to accept payment for Purchase ${val}` : `Requested EFTPOS to accept the refund for ${val}.`,
29
29
  "page.eftpos-pay.text.surcharge": "Waiting for customer to accept surcharge",
30
30
  "page.eftpos-pay.text.card": "Waiting for customer to present card",
31
31
  "page.eftpos-pay.text.account": "Waiting for customer to select account",
@@ -34,16 +34,16 @@ var locales_default = {
34
34
  "page.eftpos-pay.text.receipt.again.title": "Check signature",
35
35
  "page.eftpos-pay.text.receipt.again.text": 'If the signature is correct, click "Accept". If the signature is incorrect, click "Decline".',
36
36
  "page.eftpos-pay.text.signature.title": "Confirm decline signature?",
37
- "page.eftpos-pay.text.signature.text": (mode) => mode === "pay" ? `Decline will cause payment failure, need to pay again.` : `Decline will cause refund failure; a refund needs to be processed again.`,
37
+ "page.eftpos-pay.text.signature.text": (mode) => mode === "pay" || mode === "fullPay" ? `Decline will cause payment failure, need to pay again.` : `Decline will cause refund failure; a refund needs to be processed again.`,
38
38
  "page.eftpos-pay.text.timedout.title": "Sorry, the request has timed out. ",
39
- "page.eftpos-pay.text.timedout.text": (mode) => mode === "pay" ? "Please manually mark the payment result based on the payment status displayed on the card reader, to ensure the accuracy of the transaction." : `Please manually verify the refund result based on the refund status displayed on the card reader to ensure the transaction's accuracy.`,
40
- "page.eftpos-pay.text.request.title": (mode) => `${mode === "pay" ? "Payment" : "Refund"} request in progress... `,
41
- "page.eftpos-pay.text.request.text": (mode) => mode === "pay" ? "Please manually mark the payment result based on the payment status displayed on the card reader, to ensure the accuracy of the transaction." : `Please manually verify the refund result based on the refund status displayed on the card reader to ensure the transaction's accuracy.`,
42
- "page.eftpos-pay.text.request.unknown.title": (mode) => `Sorry, an unknown error occurred during the ${mode === "pay" ? "payment" : "refund"} process. `,
43
- "page.eftpos-pay.text.request.unknown.text": (mode) => mode === "pay" ? "Please manually mark the payment result based on the payment status displayed on the card reader, to ensure the accuracy of the transaction." : `Please manually mark the refund result based on the refund status displayed on the card reader, to ensure the accuracy of the transaction.`,
39
+ "page.eftpos-pay.text.timedout.text": (mode) => mode === "pay" || mode === "fullPay" ? "Please manually mark the payment result based on the payment status displayed on the card reader, to ensure the accuracy of the transaction." : `Please manually verify the refund result based on the refund status displayed on the card reader to ensure the transaction's accuracy.`,
40
+ "page.eftpos-pay.text.request.title": (mode) => `${mode === "pay" || mode === "fullPay" ? "Payment" : "Refund"} request in progress... `,
41
+ "page.eftpos-pay.text.request.text": (mode) => mode === "pay" || mode === "fullPay" ? "Please manually mark the payment result based on the payment status displayed on the card reader, to ensure the accuracy of the transaction." : `Please manually verify the refund result based on the refund status displayed on the card reader to ensure the transaction's accuracy.`,
42
+ "page.eftpos-pay.text.request.unknown.title": (mode) => `Sorry, an unknown error occurred during the ${mode === "pay" || mode === "fullPay" ? "payment" : "refund"} process. `,
43
+ "page.eftpos-pay.text.request.unknown.text": (mode) => mode === "pay" || mode === "fullPay" ? "Please manually mark the payment result based on the payment status displayed on the card reader, to ensure the accuracy of the transaction." : `Please manually mark the refund result based on the refund status displayed on the card reader, to ensure the accuracy of the transaction.`,
44
44
  "page.eftpos-pay.text.interrupted": "EFTPOS device connection interrupted",
45
45
  "page.eftpos-pay.text.reconnect": "Attempting to reconnect the EFTPOS ...",
46
- "page.eftpos-pay.text.waiting.pay": (mode) => mode === "pay" ? "If you have confirmed the payment status from the EFTPOS, you can press Manual marking buttonto skip." : "If you have confirmed the refund status on the EFTPOS, you can press the Manual Marking button to skip.",
46
+ "page.eftpos-pay.text.waiting.pay": (mode) => mode === "pay" || mode === "fullPay" ? "If you have confirmed the payment status from the EFTPOS, you can press Manual marking buttonto skip." : "If you have confirmed the refund status on the EFTPOS, you can press the Manual Marking button to skip.",
47
47
  "page.eftpos-pay.text.restored": "Network connection restored",
48
48
  "page.eftpos-pay.text.disconnected": "This iPad network disconnected",
49
49
  "page.eftpos-pay.text.waiting.network": "Waiting for network recovery ...",
@@ -61,9 +61,9 @@ var locales_default = {
61
61
  "page.eftpos-pay.text.manual.diff": "If it doesn't match, please enter the actual transaction amount in the input box below.",
62
62
  "page.eftpos-pay.text.manual.tip": "Amount tendered (incl. surcharge)",
63
63
  "page.eftpos-pay.text.manual.cancel": "Cancel current transaction",
64
- "page.eftpos-pay.text.modify.payment.info": (mode) => mode === "pay" ? "Modify payment info" : "Modify refund information",
65
- "page.eftpos-pay.text.successful": (mode) => `${mode === "pay" ? "Payment" : "Refund"} successful`,
66
- "page.eftpos-pay.text.failed": (mode) => `${mode === "pay" ? "Payment" : "Refund"} failed`,
64
+ "page.eftpos-pay.text.modify.payment.info": (mode) => mode === "pay" || mode === "fullPay" ? "Modify payment info" : "Modify refund information",
65
+ "page.eftpos-pay.text.successful": (mode) => `${mode === "pay" || mode === "fullPay" ? "Payment" : "Refund"} successful`,
66
+ "page.eftpos-pay.text.failed": (mode) => `${mode === "pay" || mode === "fullPay" ? "Payment" : "Refund"} failed`,
67
67
  "page.eftpos-pay.text.confirm": "Confirm",
68
68
  "page.eftpos-pay.text.confirm.decline": "Confirm decline",
69
69
  "page.eftpos-pay.text.back": "Back",
@@ -109,7 +109,7 @@ var locales_default = {
109
109
  "page.eftpos-pay.text.transaction.eftpos.fail.power": "1. Check the device power.",
110
110
  "page.eftpos-pay.text.transaction.eftpos.fail.device": "2. Check if the device is turned on.",
111
111
  "page.eftpos-pay.text.transaction.eftpos.fail.network": "3. Check the device network.",
112
- "page.eftpos-pay.text.transaction.eftpos.fail.if": (mode) => mode === "pay" ? "If you have confirmed the payment status of this order, please click on Manual marking." : "If you have confirmed the refund status of this order, please click on Manual Marking.",
112
+ "page.eftpos-pay.text.transaction.eftpos.fail.if": (mode) => mode === "pay" || mode === "fullPay" ? "If you have confirmed the payment status of this order, please click on Manual marking." : "If you have confirmed the refund status of this order, please click on Manual Marking.",
113
113
  "page.eftpos-pay.text.application": "Waiting for customer to select application",
114
114
  "page.eftpos-pay.text.approved": "Approved",
115
115
  "page.eftpos-pay.text.device.no.title": "No devices added yet. Please add devices to proceed.",
@@ -117,8 +117,8 @@ var locales_default = {
117
117
  "page.eftpos-pay.text.device.no.web": `Admin Panel: Settings > Payment > EFTPOS > Click 'Manage' next to the vendor > Add Device`,
118
118
  "page.eftpos-pay.text.device.no.terminal": `Terminal: Settings > EFTPOS > Click 'Manage' next to the vendor > Add Device`,
119
119
  "page.eftpos-pay.text.waiting.decline.signature": " Waiting for the decline signature",
120
- "page.eftpos-pay.text.unknown.title": (mode) => `Mark ${mode === "pay" ? "payment" : "refund"} status`,
121
- "page.eftpos-pay.text.unknown.text": (mode) => `Sorry, an unknown error occurred during the ${mode === "pay" ? "payment" : "refund"} process. Please manually mark the status of this ${mode === "pay" ? "payment" : "refund"}`,
120
+ "page.eftpos-pay.text.unknown.title": (mode) => `Mark ${mode === "pay" || mode === "fullPay" ? "payment" : "refund"} status`,
121
+ "page.eftpos-pay.text.unknown.text": (mode) => `Sorry, an unknown error occurred during the ${mode === "pay" || mode === "fullPay" ? "payment" : "refund"} process. Please manually mark the status of this ${mode === "pay" || mode === "fullPay" ? "payment" : "refund"}`,
122
122
  "page.eftpos-pay.text.reconnecting": "Reconnecting",
123
123
  "page.eftpos-pay.text.reconnect.network": "Reconnect network",
124
124
  "page.eftpos-pay.text.network.disconnected": "Network disconnected",
@@ -131,8 +131,8 @@ var locales_default = {
131
131
  }
132
132
  },
133
133
  "zh-CN": {
134
- "page.eftpos-pay.text.loading": (mode) => `${mode === "pay" ? "支付" : "退款"}进行中...`,
135
- "page.eftpos-pay.text.wait": (val, mode) => mode === "pay" ? `等待EFTPOS接受${val}的付款` : `请求EFTPOS接受${val}的退款。`,
134
+ "page.eftpos-pay.text.loading": (mode) => `${mode === "pay" || mode === "fullPay" ? "支付" : "退款"}进行中...`,
135
+ "page.eftpos-pay.text.wait": (val, mode) => mode === "pay" || mode === "fullPay" ? `等待EFTPOS接受${val}的付款` : `请求EFTPOS接受${val}的退款。`,
136
136
  "page.eftpos-pay.text.surcharge": "等待客户确认支付手续费",
137
137
  "page.eftpos-pay.text.card": "等待客户出示卡片",
138
138
  "page.eftpos-pay.text.account": "等待客户选择账户",
@@ -141,16 +141,16 @@ var locales_default = {
141
141
  "page.eftpos-pay.text.receipt.again.title": "确认客户签名",
142
142
  "page.eftpos-pay.text.receipt.again.text": "如果签名正确,请点击“接受”。如果签名错误,请点击“拒绝”。",
143
143
  "page.eftpos-pay.text.signature.title": "确认拒绝签名?",
144
- "page.eftpos-pay.text.signature.text": (mode) => mode === "pay" ? "拒绝将导致支付失败,需重新支付。" : "拒绝将导致退款失败;需要重新退款",
144
+ "page.eftpos-pay.text.signature.text": (mode) => mode === "pay" || mode === "fullPay" ? "拒绝将导致支付失败,需重新支付。" : "拒绝将导致退款失败;需要重新退款",
145
145
  "page.eftpos-pay.text.timedout.title": "抱歉,请求超时了。",
146
- "page.eftpos-pay.text.timedout.text": (mode) => mode === "pay" ? "请您根据刷卡机上的支付状态,手动标记支付结果,以确保交易的准确性。" : "请根据显示在刷卡机上的退款状态,手动标记退款结果,以确保交易准确性。",
147
- "page.eftpos-pay.text.request.title": (mode) => `${mode === "pay" ? "支付" : "退款"}请求仍在进行中... `,
148
- "page.eftpos-pay.text.request.text": (mode) => mode === "pay" ? "请您根据刷卡机上的支付状态,手动标记支付结果,以确保交易的准确性。" : "请根据显示在刷卡机上的退款状态,手动标记退款结果,以确保交易准确性。",
149
- "page.eftpos-pay.text.request.unknown.title": (mode) => `抱歉, ${mode === "pay" ? "支付" : "退款"} 过程中出现了未知错误`,
150
- "page.eftpos-pay.text.request.unknown.text": (mode) => mode === "pay" ? "请您根据刷卡机上的支付状态,手动标记支付结果,以确保交易的准确性。" : `请您根据刷卡机上的退款状态,手动标记退款结果,以确保交易的准确性。`,
146
+ "page.eftpos-pay.text.timedout.text": (mode) => mode === "pay" || mode === "fullPay" ? "请您根据刷卡机上的支付状态,手动标记支付结果,以确保交易的准确性。" : "请根据显示在刷卡机上的退款状态,手动标记退款结果,以确保交易准确性。",
147
+ "page.eftpos-pay.text.request.title": (mode) => `${mode === "pay" || mode === "fullPay" ? "支付" : "退款"}请求仍在进行中... `,
148
+ "page.eftpos-pay.text.request.text": (mode) => mode === "pay" || mode === "fullPay" ? "请您根据刷卡机上的支付状态,手动标记支付结果,以确保交易的准确性。" : "请根据显示在刷卡机上的退款状态,手动标记退款结果,以确保交易准确性。",
149
+ "page.eftpos-pay.text.request.unknown.title": (mode) => `抱歉, ${mode === "pay" || mode === "fullPay" ? "支付" : "退款"} 过程中出现了未知错误`,
150
+ "page.eftpos-pay.text.request.unknown.text": (mode) => mode === "pay" || mode === "fullPay" ? "请您根据刷卡机上的支付状态,手动标记支付结果,以确保交易的准确性。" : `请您根据刷卡机上的退款状态,手动标记退款结果,以确保交易的准确性。`,
151
151
  "page.eftpos-pay.text.interrupted": "EFTPOS设备连接中断",
152
152
  "page.eftpos-pay.text.reconnect": "正在尝试重新连接EFTPOS。。。",
153
- "page.eftpos-pay.text.waiting.pay": (mode) => mode === "pay" ? "如果您已经从EFTPOS确认了付款状态,您可以按手动标记按钮跳过。" : "如果您已确认了EFTPOS上的退款状态,您可以按下手动标记按钮跳过。",
153
+ "page.eftpos-pay.text.waiting.pay": (mode) => mode === "pay" || mode === "fullPay" ? "如果您已经从EFTPOS确认了付款状态,您可以按手动标记按钮跳过。" : "如果您已确认了EFTPOS上的退款状态,您可以按下手动标记按钮跳过。",
154
154
  "page.eftpos-pay.text.restored": "网络连接已恢复",
155
155
  "page.eftpos-pay.text.disconnected": "此iPad网络已断开连接",
156
156
  "page.eftpos-pay.text.waiting.network": "正在等待网络恢复...",
@@ -168,9 +168,9 @@ var locales_default = {
168
168
  "page.eftpos-pay.text.manual.diff": "如不一致请在下方输入框内输入真实的交易金额。",
169
169
  "page.eftpos-pay.text.manual.tip": "实付金额(含附加费)",
170
170
  "page.eftpos-pay.text.manual.cancel": "取消当前交易",
171
- "page.eftpos-pay.text.modify.payment.info": (mode) => mode === "pay" ? "修改支付信息" : "修改退款信息",
172
- "page.eftpos-pay.text.successful": (mode) => `${mode === "pay" ? "支付" : "退款"}成功`,
173
- "page.eftpos-pay.text.failed": (mode) => `${mode === "pay" ? "支付" : "退款"}失败`,
171
+ "page.eftpos-pay.text.modify.payment.info": (mode) => mode === "pay" || mode === "fullPay" ? "修改支付信息" : "修改退款信息",
172
+ "page.eftpos-pay.text.successful": (mode) => `${mode === "pay" || mode === "fullPay" ? "支付" : "退款"}成功`,
173
+ "page.eftpos-pay.text.failed": (mode) => `${mode === "pay" || mode === "fullPay" ? "支付" : "退款"}失败`,
174
174
  "page.eftpos-pay.text.confirm": "确认",
175
175
  "page.eftpos-pay.text.confirm.decline": "确认拒绝",
176
176
  "page.eftpos-pay.text.back": "返回",
@@ -223,7 +223,7 @@ var locales_default = {
223
223
  "page.eftpos-pay.text.transaction.eftpos.fail.power": "1. 检查设备电源",
224
224
  "page.eftpos-pay.text.transaction.eftpos.fail.device": "2. 检查设备是否开机",
225
225
  "page.eftpos-pay.text.transaction.eftpos.fail.network": "3. 检查设备网络",
226
- "page.eftpos-pay.text.transaction.eftpos.fail.if": (mode) => mode === "pay" ? "如果您已确认此交易的付款状态,请点击手动标记" : "如果您已确认此订单的退款状态,请点击手动标记。",
226
+ "page.eftpos-pay.text.transaction.eftpos.fail.if": (mode) => mode === "pay" || mode === "fullPay" ? "如果您已确认此交易的付款状态,请点击手动标记" : "如果您已确认此订单的退款状态,请点击手动标记。",
227
227
  "page.eftpos-pay.text.application": "等待客户选择应用",
228
228
  "page.eftpos-pay.text.approved": "已接受",
229
229
  "page.eftpos-pay.text.device.no.title": "您还没有添加任何设备。请添加设备后使用",
@@ -231,8 +231,8 @@ var locales_default = {
231
231
  "page.eftpos-pay.text.device.no.web": `管理后台:设置 > 收款 > EFTPOS > 确认厂商点击“管理” > 添加设备`,
232
232
  "page.eftpos-pay.text.device.no.terminal": `Terminal:设置 > EFTPOS > 确认厂商点击“管理” > 添加设备`,
233
233
  "page.eftpos-pay.text.waiting.decline.signature": " 等待拒绝签名",
234
- "page.eftpos-pay.text.unknown.title": (mode) => `标记${mode === "pay" ? "支付" : "退款"}状态`,
235
- "page.eftpos-pay.text.unknown.text": (mode) => `抱歉,${mode === "pay" ? "支付" : "退款"}过程中出现了未知错误。请您手动标记此${mode === "pay" ? "支付" : "退款"}的状态。`,
234
+ "page.eftpos-pay.text.unknown.title": (mode) => `标记${mode === "pay" || mode === "fullPay" ? "支付" : "退款"}状态`,
235
+ "page.eftpos-pay.text.unknown.text": (mode) => `抱歉,${mode === "pay" || mode === "fullPay" ? "支付" : "退款"}过程中出现了未知错误。请您手动标记此${mode === "pay" || mode === "fullPay" ? "支付" : "退款"}的状态。`,
236
236
  "page.eftpos-pay.text.reconnecting": "连接中",
237
237
  "page.eftpos-pay.text.reconnect.network": "重连网络",
238
238
  "page.eftpos-pay.text.network.disconnected": "网络断开连接",
@@ -391,8 +391,8 @@ var locales_default = {
391
391
  }
392
392
  },
393
393
  "zh-HK": {
394
- "page.eftpos-pay.text.loading": (mode) => `${mode === "pay" ? "支付" : "退款"}進行中...`,
395
- "page.eftpos-pay.text.wait": (val, mode) => mode === "pay" ? `等待EFTPOS接受${val}的付款` : `請求EFTPOS接受${val}的退款。`,
394
+ "page.eftpos-pay.text.loading": (mode) => `${mode === "pay" || mode === "fullPay" ? "支付" : "退款"}進行中...`,
395
+ "page.eftpos-pay.text.wait": (val, mode) => mode === "pay" || mode === "fullPay" ? `等待EFTPOS接受${val}的付款` : `請求EFTPOS接受${val}的退款。`,
396
396
  "page.eftpos-pay.text.surcharge": "等待客户確認支付手續費",
397
397
  "page.eftpos-pay.text.card": "等待客户出示卡片",
398
398
  "page.eftpos-pay.text.account": "等待客户選擇賬户",
@@ -401,16 +401,16 @@ var locales_default = {
401
401
  "page.eftpos-pay.text.receipt.again.title": "確認客户簽名",
402
402
  "page.eftpos-pay.text.receipt.again.text": "如果簽名正確,請點擊“接受”。如果簽名錯誤,請點擊“拒絕”。",
403
403
  "page.eftpos-pay.text.signature.title": "確認拒絕簽名?",
404
- "page.eftpos-pay.text.signature.text": (mode) => mode === "pay" ? "拒絕將導致支付失敗,需重新支付。" : "拒絕將導致退款失敗;需要重新退款",
404
+ "page.eftpos-pay.text.signature.text": (mode) => mode === "pay" || mode === "fullPay" ? "拒絕將導致支付失敗,需重新支付。" : "拒絕將導致退款失敗;需要重新退款",
405
405
  "page.eftpos-pay.text.timedout.title": "抱歉,請求超時了。",
406
- "page.eftpos-pay.text.timedout.text": (mode) => mode === "pay" ? "請您根據刷卡機上的支付狀態,手動標記支付結果,以確保交易的準確性。" : "請根據顯示在刷卡機上的退款狀態,手動標記退款結果,以確保交易準確性。",
407
- "page.eftpos-pay.text.request.title": (mode) => `${mode === "pay" ? "支付" : "退款"}請求仍在進行中... `,
408
- "page.eftpos-pay.text.request.text": (mode) => mode === "pay" ? "請您根據刷卡機上的支付狀態,手動標記支付結果,以確保交易的準確性。" : "請根據顯示在刷卡機上的退款狀態,手動標記退款結果,以確保交易準確性。",
409
- "page.eftpos-pay.text.request.unknown.title": (mode) => `抱歉, ${mode === "pay" ? "支付" : "退款"} 过程中出现了未知错误`,
410
- "page.eftpos-pay.text.request.unknown.text": (mode) => mode === "pay" ? "請您根據刷卡機上的支付狀態,手動標記支付結果,以確保交易的準確性。" : `請您根據刷卡機上的退款狀態,手動標記退款結果,以確保交易的準確性。`,
406
+ "page.eftpos-pay.text.timedout.text": (mode) => mode === "pay" || mode === "fullPay" ? "請您根據刷卡機上的支付狀態,手動標記支付結果,以確保交易的準確性。" : "請根據顯示在刷卡機上的退款狀態,手動標記退款結果,以確保交易準確性。",
407
+ "page.eftpos-pay.text.request.title": (mode) => `${mode === "pay" || mode === "fullPay" ? "支付" : "退款"}請求仍在進行中... `,
408
+ "page.eftpos-pay.text.request.text": (mode) => mode === "pay" || mode === "fullPay" ? "請您根據刷卡機上的支付狀態,手動標記支付結果,以確保交易的準確性。" : "請根據顯示在刷卡機上的退款狀態,手動標記退款結果,以確保交易準確性。",
409
+ "page.eftpos-pay.text.request.unknown.title": (mode) => `抱歉, ${mode === "pay" || mode === "fullPay" ? "支付" : "退款"} 过程中出现了未知错误`,
410
+ "page.eftpos-pay.text.request.unknown.text": (mode) => mode === "pay" || mode === "fullPay" ? "請您根據刷卡機上的支付狀態,手動標記支付結果,以確保交易的準確性。" : `請您根據刷卡機上的退款狀態,手動標記退款結果,以確保交易的準確性。`,
411
411
  "page.eftpos-pay.text.interrupted": "EFTPOS設備連接中斷",
412
412
  "page.eftpos-pay.text.reconnect": "正在嘗試重新連接EFTPOS。。。",
413
- "page.eftpos-pay.text.waiting.pay": (mode) => mode === "pay" ? "如果您已經從EFTPOS確認了付款狀態,您可以按手動標記按鈕跳過。" : "如果您已確認了EFTPOS上的退款狀態,您可以按下手動標記按鈕跳過。",
413
+ "page.eftpos-pay.text.waiting.pay": (mode) => mode === "pay" || mode === "fullPay" ? "如果您已經從EFTPOS確認了付款狀態,您可以按手動標記按鈕跳過。" : "如果您已確認了EFTPOS上的退款狀態,您可以按下手動標記按鈕跳過。",
414
414
  "page.eftpos-pay.text.restored": "網絡連接已恢復",
415
415
  "page.eftpos-pay.text.disconnected": "此iPad網絡已斷開連接",
416
416
  "page.eftpos-pay.text.waiting.network": "正在等待網絡恢復...",
@@ -428,9 +428,9 @@ var locales_default = {
428
428
  "page.eftpos-pay.text.manual.diff": "如不一致請在下方輸入框內輸入真實的交易金額。",
429
429
  "page.eftpos-pay.text.manual.tip": "實付金額(含附加費)",
430
430
  "page.eftpos-pay.text.manual.cancel": "取消當前交易",
431
- "page.eftpos-pay.text.modify.payment.info": (mode) => mode === "pay" ? "修改支付信息" : "修改退款信息",
432
- "page.eftpos-pay.text.successful": (mode) => `${mode === "pay" ? "支付" : "退款"}成功`,
433
- "page.eftpos-pay.text.failed": (mode) => `${mode === "pay" ? "支付" : "退款"}失敗`,
431
+ "page.eftpos-pay.text.modify.payment.info": (mode) => mode === "pay" || mode === "fullPay" ? "修改支付信息" : "修改退款信息",
432
+ "page.eftpos-pay.text.successful": (mode) => `${mode === "pay" || mode === "fullPay" ? "支付" : "退款"}成功`,
433
+ "page.eftpos-pay.text.failed": (mode) => `${mode === "pay" || mode === "fullPay" ? "支付" : "退款"}失敗`,
434
434
  "page.eftpos-pay.text.confirm": "確認",
435
435
  "page.eftpos-pay.text.confirm.decline": "確認拒絕",
436
436
  "page.eftpos-pay.text.back": "返回",
@@ -483,7 +483,7 @@ var locales_default = {
483
483
  "page.eftpos-pay.text.transaction.eftpos.fail.power": "1. 檢查設備電源",
484
484
  "page.eftpos-pay.text.transaction.eftpos.fail.device": "2. 檢查設備是否開機",
485
485
  "page.eftpos-pay.text.transaction.eftpos.fail.network": "3. 檢查設備網絡",
486
- "page.eftpos-pay.text.transaction.eftpos.fail.if": (mode) => mode === "pay" ? "如果您已確認此交易的付款狀態,請點擊手動標記" : "如果您已確認此訂單的退款狀態,請點擊手動標記。",
486
+ "page.eftpos-pay.text.transaction.eftpos.fail.if": (mode) => mode === "pay" || mode === "fullPay" ? "如果您已確認此交易的付款狀態,請點擊手動標記" : "如果您已確認此訂單的退款狀態,請點擊手動標記。",
487
487
  "page.eftpos-pay.text.application": "等待客户選擇應用",
488
488
  "page.eftpos-pay.text.approved": "已接受",
489
489
  "page.eftpos-pay.text.device.no.title": "您還沒有添加任何設備。請添加設備後使用",
@@ -491,8 +491,8 @@ var locales_default = {
491
491
  "page.eftpos-pay.text.device.no.web": `管理後台:設置 > 收款 > EFTPOS > 確認廠商點擊“管理” > 添加設備`,
492
492
  "page.eftpos-pay.text.device.no.terminal": `Terminal:設置 > EFTPOS > 確認廠商點擊“管理” > 添加設備`,
493
493
  "page.eftpos-pay.text.waiting.decline.signature": " 等待拒絕簽名",
494
- "page.eftpos-pay.text.unknown.title": (mode) => `標記${mode === "pay" ? "支付" : "退款"}狀態`,
495
- "page.eftpos-pay.text.unknown.text": (mode) => `抱歉,${mode === "pay" ? "支付" : "退款"}過程中出現了未知錯誤。請您手動標記此${mode === "pay" ? "支付" : "退款"}的狀態。`,
494
+ "page.eftpos-pay.text.unknown.title": (mode) => `標記${mode === "pay" || mode === "fullPay" ? "支付" : "退款"}狀態`,
495
+ "page.eftpos-pay.text.unknown.text": (mode) => `抱歉,${mode === "pay" || mode === "fullPay" ? "支付" : "退款"}過程中出現了未知錯誤。請您手動標記此${mode === "pay" || mode === "fullPay" ? "支付" : "退款"}的狀態。`,
496
496
  "page.eftpos-pay.text.reconnecting": "連接中",
497
497
  "page.eftpos-pay.text.reconnect.network": "重連網絡",
498
498
  "page.eftpos-pay.text.network.disconnected": "網絡斷開連接",
@@ -140,7 +140,7 @@ var POS = ({
140
140
  })
141
141
  );
142
142
  controllerRef.current = new AbortController();
143
- const resultPromise = modeRef.current === import_const.ModeEnum.Pay ? api.pay(
143
+ const resultPromise = modeRef.current === import_const.ModeEnum.Pay || modeRef.current === import_const.ModeEnum.FullPay ? api.pay(
144
144
  {
145
145
  order_id: orderIdRef.current,
146
146
  amount: payRef.current.total,
@@ -283,7 +283,7 @@ export declare const backUpFree: (payload: Partial<State>) => {
283
283
  amount?: string | number | undefined;
284
284
  mode?: "refund" | "pay" | "query" | undefined;
285
285
  order_id?: string | number | undefined;
286
- eftpos?: "tyro" | "windcave" | "payo" | "stripe" | undefined;
286
+ eftpos?: "windcave" | "tyro" | "payo" | "stripe" | undefined;
287
287
  action?: "amount" | "deviceList" | "pay" | undefined;
288
288
  key?: number | undefined;
289
289
  step?: number | undefined;
@@ -258,9 +258,7 @@ var tyro_default = ({
258
258
  dispatch(
259
259
  (0, import_store.updateState)({
260
260
  status: "loading",
261
- title: import_utils.locales.getText("page.eftpos-pay.text.loading")(
262
- modeRef.current || import_const.ModeEnum.Pay
263
- ),
261
+ title: import_utils.locales.getText("page.eftpos-pay.text.loading")(modeRef.current),
264
262
  subTitle: ""
265
263
  })
266
264
  );
@@ -288,7 +286,7 @@ var tyro_default = ({
288
286
  );
289
287
  };
290
288
  const transactionCompleteCallbackImpl = (response) => {
291
- var _a;
289
+ var _a, _b;
292
290
  setStatus(-1);
293
291
  setManually(false);
294
292
  console.log(
@@ -358,6 +356,11 @@ var tyro_default = ({
358
356
  });
359
357
  }, 1e3);
360
358
  return;
359
+ } else {
360
+ const current = ((_b = deviceRef.current) == null ? void 0 : _b.setting.receipts) ? [] : receipt;
361
+ if (current.length > 0) {
362
+ onChange("print", current);
363
+ }
361
364
  }
362
365
  if (response.result === "UNKNOWN") {
363
366
  dispatch(
@@ -401,7 +404,7 @@ var tyro_default = ({
401
404
  return;
402
405
  }
403
406
  if (!numRef.current) {
404
- if (modeRef.current === import_const.ModeEnum.Pay) {
407
+ if (modeRef.current === import_const.ModeEnum.Pay || modeRef.current === import_const.ModeEnum.FullPay) {
405
408
  getTerminalInfo(payOrder);
406
409
  } else if (modeRef.current === import_const.ModeEnum.Refund) {
407
410
  getTerminalInfo(refundOrder);
@@ -498,9 +501,7 @@ var tyro_default = ({
498
501
  (0, import_store.updateCustom)({
499
502
  failCustom: {
500
503
  status: "fail",
501
- fail: import_utils.locales.getText(
502
- "page.eftpos-pay.text.transaction.fail.cancel"
503
- ),
504
+ fail: import_utils.locales.getText("page.eftpos-pay.text.transaction.fail.cancel"),
504
505
  title: import_utils.locales.getText(
505
506
  "page.eftpos-pay.text.transaction.fail.cancel.title"
506
507
  ),
@@ -158,7 +158,7 @@ var windcave_default = ({
158
158
  number: numRef.current
159
159
  })
160
160
  );
161
- const resultPromise = modeRef.current === import_const.ModeEnum.Pay ? api.pay(
161
+ const resultPromise = modeRef.current === import_const.ModeEnum.Pay || modeRef.current === import_const.ModeEnum.FullPay ? api.pay(
162
162
  {
163
163
  order_id: orderIdRef.current,
164
164
  amount: payRef.current.total,
@@ -231,7 +231,7 @@ var windcave_default = ({
231
231
  var _a;
232
232
  if (listRef.current.length === 0) {
233
233
  let totalUnit = "";
234
- if (modeRef.current === import_const.ModeEnum.Pay) {
234
+ if (modeRef.current === import_const.ModeEnum.Pay || modeRef.current === import_const.ModeEnum.FullPay) {
235
235
  totalUnit = (_a = payRef.current) == null ? void 0 : _a.totalUnit;
236
236
  } else if (modeRef.current === import_const.ModeEnum.Refund) {
237
237
  if (payRef.current) {
@@ -1,3 +1,3 @@
1
1
  import "./index.less";
2
- declare const Schedules: (props: any) => JSX.Element;
2
+ declare const Schedules: (props: any) => any;
3
3
  export default Schedules;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { CalendarDataItem, ScheduleItem } from "./type";
2
3
  import dayjs from "dayjs";
3
4
  export interface FormState {
@@ -68,7 +69,7 @@ export interface FormState {
68
69
  };
69
70
  setGlobalState: Function | null;
70
71
  }
71
- export declare const Provider: (ComponentUi: any) => (props: any) => JSX.Element, Context: import("react").Context<{
72
+ export declare const Provider: (ComponentUi: any) => (props: any) => any, Context: import("react").Context<{
72
73
  state: FormState;
73
74
  } & {
74
75
  dispatch: (params: {
@@ -27,6 +27,17 @@ const PayMeta: ComponentMetadata = {
27
27
  name: 'type',
28
28
  setter: ['JsonSetter', 'VariableSetter'],
29
29
  },
30
+ {
31
+ title: {
32
+ label: {
33
+ type: 'i18n',
34
+ 'en-US': 'key',
35
+ 'zh-CN': 'key',
36
+ },
37
+ },
38
+ name: 'key',
39
+ setter: ['JsonSetter', 'VariableSetter'],
40
+ },
30
41
  {
31
42
  title: {
32
43
  label: {
@@ -0,0 +1,71 @@
1
+
2
+ import { ComponentMetadata, Snippet } from '@alilc/lowcode-types';
3
+
4
+ const VerticalAddServiceMeta: ComponentMetadata = {
5
+ "componentName": "VerticalAddService",
6
+ "title": "VerticalAddService",
7
+ "docUrl": "",
8
+ "screenshot": "",
9
+ "devMode": "proCode",
10
+ "npm": {
11
+ "package": "@pisell/private-materials",
12
+ "version": "3.0.141",
13
+ "exportName": "VerticalAddService",
14
+ "main": "src/index.ts",
15
+ "destructuring": true,
16
+ "subName": ""
17
+ },
18
+ "configure": {
19
+ "props": [
20
+ {
21
+ "title": {
22
+ "label": {
23
+ "type": "i18n",
24
+ "en-US": "globalState",
25
+ "zh-CN": "globalState"
26
+ }
27
+ },
28
+ "name": "globalState",
29
+ "setter": {
30
+ "componentName": "MixedSetter",
31
+ "isRequired": true,
32
+ "props": {}
33
+ }
34
+ },
35
+ {
36
+ "title": {
37
+ "label": {
38
+ "type": "i18n",
39
+ "en-US": "setGlobalState",
40
+ "zh-CN": "setGlobalState"
41
+ }
42
+ },
43
+ "name": "setGlobalState",
44
+ "setter": {
45
+ "componentName": "MixedSetter",
46
+ "isRequired": true,
47
+ "props": {}
48
+ }
49
+ }
50
+ ],
51
+ "supports": {
52
+ "style": true
53
+ },
54
+ "component": {}
55
+ }
56
+ };
57
+ const snippets: Snippet[] = [
58
+ {
59
+ "title": "VerticalAddService",
60
+ "screenshot": "",
61
+ "schema": {
62
+ "componentName": "VerticalAddService",
63
+ "props": {}
64
+ }
65
+ }
66
+ ];
67
+
68
+ export default {
69
+ ...VerticalAddServiceMeta,
70
+ snippets
71
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/private-materials",
3
- "version": "3.0.140",
3
+ "version": "3.0.142",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -59,10 +59,10 @@
59
59
  "react-infinite-scroll-component": "^6.1.0",
60
60
  "rc-virtual-list": "^3.11.3",
61
61
  "decimal.js": "^10.4.3",
62
- "@pisell/utils": "1.0.42",
63
62
  "@pisell/icon": "0.0.11",
64
- "@pisell/materials": "3.0.47",
65
- "@pisell/date-picker": "1.0.100"
63
+ "@pisell/utils": "1.0.42",
64
+ "@pisell/date-picker": "1.0.100",
65
+ "@pisell/materials": "3.0.47"
66
66
  },
67
67
  "peerDependencies": {
68
68
  "react": "^18.0.0",