@pisell/private-materials 6.6.61 → 6.6.63
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.js +7 -7
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +9 -9
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +9 -9
- package/es/components/booking/components/footer/amount.js +4 -3
- package/es/components/booking/components/footer/utils.js +10 -3
- package/es/components/booking/components/voucher/index.js +1 -1
- package/es/components/booking/info2/service/editService/index.js +76 -8
- package/es/components/booking/info2/service/editService/utils.d.ts +1 -0
- package/es/components/booking/info2/service/editService/utils.js +16 -0
- package/es/components/booking/payments/index.js +1 -1
- package/es/components/eftpos/PairModal/hooks.d.ts +27 -0
- package/es/components/eftpos/PairModal/hooks.js +67 -0
- package/es/components/eftpos/PairModal/index.d.ts +11 -0
- package/es/components/eftpos/PairModal/index.js +246 -0
- package/es/components/eftpos/PairModal/index.less +70 -0
- package/es/components/eftpos/SettlementModal/Action.d.ts +7 -0
- package/es/components/eftpos/SettlementModal/Action.js +141 -0
- package/es/components/eftpos/SettlementModal/index.d.ts +7 -0
- package/es/components/eftpos/SettlementModal/index.js +135 -0
- package/es/components/eftpos/SettlementModal/index.less +33 -0
- package/es/components/eftpos/SettlementModal/serve.d.ts +8 -0
- package/es/components/eftpos/SettlementModal/serve.js +171 -0
- package/es/components/eftpos/SettlementModal/types.d.ts +138 -0
- package/es/components/eftpos/SettlementModal/types.js +35 -0
- package/es/components/eftpos/SettlementModal/utils.d.ts +18 -0
- package/es/components/eftpos/SettlementModal/utils.js +351 -0
- package/es/components/eftpos/assets/mx51SCI.svg +15 -0
- package/es/components/eftpos/const.d.ts +3 -1
- package/es/components/eftpos/const.js +2 -0
- package/es/components/eftpos/device.d.ts +3 -1
- package/es/components/eftpos/device.js +14 -3
- package/es/components/eftpos/hooks.d.ts +13 -0
- package/es/components/eftpos/hooks.js +35 -0
- package/es/components/eftpos/index.js +198 -24
- package/es/components/eftpos/index.less +32 -1
- package/es/components/eftpos/locales.d.ts +80 -0
- package/es/components/eftpos/locales.js +205 -25
- package/es/components/eftpos/table.js +47 -3
- package/es/components/eftposPay/aggregatePayment/hooks/useMicropay.d.ts +2 -2
- package/es/components/eftposPay/aggregatePayment/hooks/usePayment.d.ts +8 -0
- package/es/components/eftposPay/aggregatePayment/hooks/usePayment.js +145 -0
- package/es/components/eftposPay/aggregatePayment/index.d.ts +2 -1
- package/es/components/eftposPay/aggregatePayment/index.js +2 -1
- package/es/components/eftposPay/aggregatePayment/mock.d.ts +495 -0
- package/es/components/eftposPay/aggregatePayment/mock.js +567 -0
- package/es/components/eftposPay/aggregatePayment/service.js +1 -0
- package/es/components/eftposPay/aggregatePayment/types.d.ts +12 -12
- package/es/components/eftposPay/aggregatePayment/types.js +4 -8
- package/es/components/eftposPay/aggregatePayment/utils/payment.d.ts +13 -13
- package/es/components/eftposPay/aggregatePayment/utils/payment.js +231 -168
- package/es/components/eftposPay/amount.js +15 -1
- package/es/components/eftposPay/app.js +2 -3
- package/es/components/eftposPay/component/fail/failCustom.js +13 -4
- package/es/components/eftposPay/component/fail/index.js +12 -5
- package/es/components/eftposPay/component/fail/network.js +3 -0
- package/es/components/eftposPay/component/fail/unknow.js +8 -0
- package/es/components/eftposPay/component/manual/index.js +17 -3
- package/es/components/eftposPay/component/signature/index.js +3 -0
- package/es/components/eftposPay/const.d.ts +8 -3
- package/es/components/eftposPay/const.js +2 -0
- package/es/components/eftposPay/device.js +225 -38
- package/es/components/eftposPay/helper.d.ts +3 -0
- package/es/components/eftposPay/helper.js +2 -1
- package/es/components/eftposPay/hooks.d.ts +1 -1
- package/es/components/eftposPay/index.js +50 -13
- package/es/components/eftposPay/linkly/const.js +1 -1
- package/es/components/eftposPay/linkly/hooks/normal.js +21 -68
- package/es/components/eftposPay/linkly/hooks/useTimeQuery.js +20 -81
- package/es/components/eftposPay/linkly/index.js +11 -23
- package/es/components/eftposPay/locales.d.ts +15 -0
- package/es/components/eftposPay/locales.js +30 -15
- package/es/components/eftposPay/manufacturer.d.ts +1 -0
- package/es/components/eftposPay/manufacturer.js +4 -0
- package/es/components/eftposPay/mx51/Action.d.ts +6 -0
- package/es/components/eftposPay/mx51/Action.js +144 -0
- package/es/components/eftposPay/mx51/const.d.ts +5 -0
- package/es/components/eftposPay/mx51/const.js +69 -0
- package/es/components/eftposPay/mx51/index.d.ts +6 -0
- package/es/components/eftposPay/mx51/index.js +498 -0
- package/es/components/eftposPay/mx51/types.d.ts +142 -0
- package/es/components/eftposPay/mx51/types.js +35 -0
- package/es/components/eftposPay/mx51/utils.d.ts +10 -0
- package/es/components/eftposPay/mx51/utils.js +121 -0
- package/es/components/eftposPay/pay.js +21 -9
- package/es/components/eftposPay/payo/config.js +39 -5
- package/es/components/eftposPay/payo/const.js +1 -1
- package/es/components/eftposPay/payo/hooks.js +3 -12
- package/es/components/eftposPay/payo/payment.js +69 -136
- package/es/components/eftposPay/store/index.d.ts +5 -9
- package/es/components/eftposPay/tip.js +5 -0
- package/es/components/eftposPay/tyro/const.js +1 -1
- package/es/components/eftposPay/tyro/index.js +44 -11
- package/es/components/eftposPay/utils/payLog.d.ts +81 -0
- package/es/components/eftposPay/utils/payLog.js +458 -0
- package/es/components/eftposPay/windcave/const.js +1 -1
- package/es/components/eftposPay/windcave/receiptAction.js +5 -0
- package/es/components/eftposPay/windcave/windcave.js +37 -38
- package/es/components/ticketBooking/utils/formatProductMessage.js +47 -2
- package/lib/components/booking/components/footer/amount.js +3 -3
- package/lib/components/booking/components/footer/utils.js +12 -5
- package/lib/components/booking/components/voucher/index.js +1 -1
- package/lib/components/booking/info2/service/editService/index.js +56 -5
- package/lib/components/booking/info2/service/editService/utils.d.ts +1 -0
- package/lib/components/booking/info2/service/editService/utils.js +16 -0
- package/lib/components/booking/payments/index.js +1 -1
- package/lib/components/eftpos/PairModal/hooks.d.ts +27 -0
- package/lib/components/eftpos/PairModal/hooks.js +70 -0
- package/lib/components/eftpos/PairModal/index.d.ts +11 -0
- package/lib/components/eftpos/PairModal/index.js +197 -0
- package/lib/components/eftpos/PairModal/index.less +70 -0
- package/lib/components/eftpos/SettlementModal/Action.d.ts +7 -0
- package/lib/components/eftpos/SettlementModal/Action.js +153 -0
- package/lib/components/eftpos/SettlementModal/index.d.ts +7 -0
- package/lib/components/eftpos/SettlementModal/index.js +170 -0
- package/lib/components/eftpos/SettlementModal/index.less +33 -0
- package/lib/components/eftpos/SettlementModal/serve.d.ts +8 -0
- package/lib/components/eftpos/SettlementModal/serve.js +45 -0
- package/lib/components/eftpos/SettlementModal/types.d.ts +138 -0
- package/lib/components/eftpos/SettlementModal/types.js +43 -0
- package/lib/components/eftpos/SettlementModal/utils.d.ts +18 -0
- package/lib/components/eftpos/SettlementModal/utils.js +248 -0
- package/lib/components/eftpos/assets/mx51SCI.svg +15 -0
- package/lib/components/eftpos/const.d.ts +3 -1
- package/lib/components/eftpos/const.js +2 -0
- package/lib/components/eftpos/device.d.ts +3 -1
- package/lib/components/eftpos/device.js +13 -3
- package/lib/components/eftpos/hooks.d.ts +13 -0
- package/lib/components/eftpos/hooks.js +30 -0
- package/lib/components/eftpos/index.js +121 -8
- package/lib/components/eftpos/index.less +32 -1
- package/lib/components/eftpos/locales.d.ts +80 -0
- package/lib/components/eftpos/locales.js +231 -21
- package/lib/components/eftpos/table.js +30 -2
- package/lib/components/eftposPay/aggregatePayment/hooks/useMicropay.d.ts +2 -2
- package/lib/components/eftposPay/aggregatePayment/hooks/usePayment.d.ts +8 -0
- package/lib/components/eftposPay/aggregatePayment/hooks/usePayment.js +171 -0
- package/lib/components/eftposPay/aggregatePayment/index.d.ts +2 -1
- package/lib/components/eftposPay/aggregatePayment/index.js +5 -2
- package/lib/components/eftposPay/aggregatePayment/mock.d.ts +495 -0
- package/lib/components/eftposPay/aggregatePayment/mock.js +679 -0
- package/lib/components/eftposPay/aggregatePayment/types.d.ts +12 -12
- package/lib/components/eftposPay/aggregatePayment/utils/payment.d.ts +13 -13
- package/lib/components/eftposPay/aggregatePayment/utils/payment.js +173 -123
- package/lib/components/eftposPay/amount.js +13 -1
- package/lib/components/eftposPay/app.js +4 -5
- package/lib/components/eftposPay/component/fail/failCustom.js +10 -2
- package/lib/components/eftposPay/component/fail/index.js +10 -2
- package/lib/components/eftposPay/component/fail/network.js +3 -0
- package/lib/components/eftposPay/component/fail/unknow.js +8 -0
- package/lib/components/eftposPay/component/manual/index.js +16 -2
- package/lib/components/eftposPay/component/signature/index.js +3 -0
- package/lib/components/eftposPay/const.d.ts +8 -3
- package/lib/components/eftposPay/const.js +2 -0
- package/lib/components/eftposPay/device.js +114 -25
- package/lib/components/eftposPay/helper.d.ts +3 -0
- package/lib/components/eftposPay/helper.js +2 -1
- package/lib/components/eftposPay/hooks.d.ts +1 -1
- package/lib/components/eftposPay/index.js +38 -13
- package/lib/components/eftposPay/linkly/const.js +1 -1
- package/lib/components/eftposPay/linkly/hooks/normal.js +22 -43
- package/lib/components/eftposPay/linkly/hooks/useTimeQuery.js +13 -65
- package/lib/components/eftposPay/linkly/index.js +8 -10
- package/lib/components/eftposPay/locales.d.ts +15 -0
- package/lib/components/eftposPay/locales.js +30 -15
- package/lib/components/eftposPay/manufacturer.d.ts +1 -0
- package/lib/components/eftposPay/manufacturer.js +6 -0
- package/lib/components/eftposPay/mx51/Action.d.ts +6 -0
- package/lib/components/eftposPay/mx51/Action.js +154 -0
- package/lib/components/eftposPay/mx51/const.d.ts +5 -0
- package/lib/components/eftposPay/mx51/const.js +85 -0
- package/lib/components/eftposPay/mx51/index.d.ts +6 -0
- package/lib/components/eftposPay/mx51/index.js +433 -0
- package/lib/components/eftposPay/mx51/types.d.ts +142 -0
- package/lib/components/eftposPay/mx51/types.js +43 -0
- package/lib/components/eftposPay/mx51/utils.d.ts +10 -0
- package/lib/components/eftposPay/mx51/utils.js +115 -0
- package/lib/components/eftposPay/pay.js +13 -3
- package/lib/components/eftposPay/payo/config.js +16 -8
- package/lib/components/eftposPay/payo/const.js +1 -1
- package/lib/components/eftposPay/payo/hooks.js +12 -10
- package/lib/components/eftposPay/payo/payment.js +31 -65
- package/lib/components/eftposPay/store/index.d.ts +5 -9
- package/lib/components/eftposPay/tip.js +5 -0
- package/lib/components/eftposPay/tyro/const.js +1 -1
- package/lib/components/eftposPay/tyro/index.js +21 -17
- package/lib/components/eftposPay/utils/payLog.d.ts +81 -0
- package/lib/components/eftposPay/utils/payLog.js +321 -0
- package/lib/components/eftposPay/windcave/const.js +1 -1
- package/lib/components/eftposPay/windcave/receiptAction.js +5 -0
- package/lib/components/eftposPay/windcave/windcave.js +27 -29
- package/lib/components/ticketBooking/utils/formatProductMessage.js +44 -2
- package/package.json +4 -4
- package/es/components/eftposPay/utils/log/index.d.ts +0 -110
- package/es/components/eftposPay/utils/log/index.js +0 -371
- package/lib/components/eftposPay/utils/log/index.d.ts +0 -110
- package/lib/components/eftposPay/utils/log/index.js +0 -294
|
@@ -46,7 +46,13 @@ var import_hooks = require("./hooks");
|
|
|
46
46
|
var import_apiKey = __toESM(require("./icon/apiKey"));
|
|
47
47
|
var import_device2 = __toESM(require("./icon/device"));
|
|
48
48
|
var import_locales2 = require("../../utils/locales");
|
|
49
|
+
var import_hooks2 = require("./PairModal/hooks");
|
|
50
|
+
var import_PairModal = __toESM(require("./PairModal/index"));
|
|
49
51
|
var import_const = require("./const");
|
|
52
|
+
var import_materials = require("@pisell/materials");
|
|
53
|
+
var import_mx51SCI = __toESM(require("./assets/mx51SCI.svg"));
|
|
54
|
+
var import_useEngineContext = __toESM(require("../../hooks/useEngineContext"));
|
|
55
|
+
var import_utils2 = require("../../utils");
|
|
50
56
|
var import_index = require("./index.less");
|
|
51
57
|
import_utils.locales.init(import_locales.default, (0, import_locales2.getLocale)());
|
|
52
58
|
var PosTabs = (0, import_react.forwardRef)(
|
|
@@ -145,6 +151,9 @@ var eftpos_default = (props) => {
|
|
|
145
151
|
tyroVersion,
|
|
146
152
|
useTyroLog
|
|
147
153
|
} = props;
|
|
154
|
+
const context = (0, import_useEngineContext.default)();
|
|
155
|
+
const utils = context.appHelper.utils || {};
|
|
156
|
+
import_utils2.request.setRequest(utils == null ? void 0 : utils.request);
|
|
148
157
|
const [page, setPage] = (0, import_react.useState)("list");
|
|
149
158
|
const [messageApi, contextHolder] = import_antd.message.useMessage({
|
|
150
159
|
prefixCls: "pisell-lowcode__pos_message"
|
|
@@ -161,6 +170,9 @@ var eftpos_default = (props) => {
|
|
|
161
170
|
const [systemConfigStatus, setSystemConfigStatus] = (0, import_react.useState)(true);
|
|
162
171
|
const posTabRef = (0, import_react.useRef)(null);
|
|
163
172
|
const [posLoading, setPosLoading] = (0, import_react.useState)(false);
|
|
173
|
+
const pairModalHook = (0, import_hooks2.usePairModal)();
|
|
174
|
+
const pairRequest = (0, import_hooks.usePairRequest)();
|
|
175
|
+
const checkPairRequest = (0, import_hooks.useCheckPairRequest)();
|
|
164
176
|
const onDelDevice = (id) => {
|
|
165
177
|
return onDel(id);
|
|
166
178
|
};
|
|
@@ -182,6 +194,31 @@ var eftpos_default = (props) => {
|
|
|
182
194
|
setPage("edit");
|
|
183
195
|
};
|
|
184
196
|
const onRepair = async (device) => {
|
|
197
|
+
console.log("onRepair device = ", device);
|
|
198
|
+
if (type === import_const.Eftpos.MX51) {
|
|
199
|
+
try {
|
|
200
|
+
setLoading(true);
|
|
201
|
+
const checkPairResponse = await checkPairRequest.run({
|
|
202
|
+
type,
|
|
203
|
+
pair_response: device == null ? void 0 : device.response
|
|
204
|
+
});
|
|
205
|
+
console.log("checkPairResponse = ", checkPairResponse);
|
|
206
|
+
if ((checkPairResponse == null ? void 0 : checkPairResponse.code) == 200) {
|
|
207
|
+
messageApi.open({
|
|
208
|
+
type: "warning",
|
|
209
|
+
style: {
|
|
210
|
+
zIndex: (zIndex || 9999) + 1
|
|
211
|
+
},
|
|
212
|
+
content: import_utils.locales.getText("page.eftpos.text.repair.message.warning")
|
|
213
|
+
});
|
|
214
|
+
return;
|
|
215
|
+
}
|
|
216
|
+
} catch (error) {
|
|
217
|
+
console.error("onRepair error =>", error);
|
|
218
|
+
} finally {
|
|
219
|
+
setLoading(false);
|
|
220
|
+
}
|
|
221
|
+
}
|
|
185
222
|
const field = getField(type, import_const.DeviceEnum.Repair);
|
|
186
223
|
const list = await (0, import_const.getCommByFields)({ field, value: device, getComm });
|
|
187
224
|
deviceIdRef.current = device.id;
|
|
@@ -195,13 +232,35 @@ var eftpos_default = (props) => {
|
|
|
195
232
|
setDeviceItem(device);
|
|
196
233
|
setPage("log");
|
|
197
234
|
};
|
|
198
|
-
const onSave = async (device) => {
|
|
235
|
+
const onSave = async (device, pair_response) => {
|
|
199
236
|
console.log("device = ", device);
|
|
237
|
+
console.log("pair_response = ", pair_response);
|
|
200
238
|
const update = async () => {
|
|
201
|
-
|
|
239
|
+
var _a;
|
|
240
|
+
try {
|
|
241
|
+
await onEdit({ ...device, type, pair_response }, status || "add");
|
|
242
|
+
if (type === import_const.Eftpos.MX51 && (status === import_const.DeviceEnum.Add || status === import_const.DeviceEnum.Repair)) {
|
|
243
|
+
messageApi.open({
|
|
244
|
+
type: "success",
|
|
245
|
+
style: {
|
|
246
|
+
zIndex: (zIndex || 9999) + 1
|
|
247
|
+
},
|
|
248
|
+
content: /* @__PURE__ */ import_react.default.createElement("div", { className: "pisell-lowcode__pos_message-custom-content_mx51" }, /* @__PURE__ */ import_react.default.createElement("span", null, "Terminal paired successfully."), /* @__PURE__ */ import_react.default.createElement("span", null, /* @__PURE__ */ import_react.default.createElement("span", null, "Pairing Name: ", ((_a = device == null ? void 0 : device.connection) == null ? void 0 : _a.pairing_nickname) || "-"), /* @__PURE__ */ import_react.default.createElement("span", null, "Pairing ID: ", (pair_response == null ? void 0 : pair_response.pairing_id) || "-")))
|
|
249
|
+
});
|
|
250
|
+
}
|
|
251
|
+
} catch (error) {
|
|
252
|
+
console.error("onSave error =>", error);
|
|
253
|
+
messageApi.open({
|
|
254
|
+
type: "error",
|
|
255
|
+
style: {
|
|
256
|
+
zIndex: (zIndex || 9999) + 1
|
|
257
|
+
},
|
|
258
|
+
content: (error == null ? void 0 : error.message) || import_utils.locales.getText("page.eftpos.text.pair.error")
|
|
259
|
+
});
|
|
260
|
+
return;
|
|
261
|
+
} finally {
|
|
202
262
|
setLoading(false);
|
|
203
|
-
}
|
|
204
|
-
setLoading(false);
|
|
263
|
+
}
|
|
205
264
|
await tableRef.current.loadData();
|
|
206
265
|
setPage("list");
|
|
207
266
|
};
|
|
@@ -298,6 +357,47 @@ var eftpos_default = (props) => {
|
|
|
298
357
|
(0, import_react.useEffect)(() => {
|
|
299
358
|
setPage("list");
|
|
300
359
|
}, [type]);
|
|
360
|
+
const onSavePair = async (device) => {
|
|
361
|
+
const eftposList = [import_const.Eftpos.MX51];
|
|
362
|
+
if (eftposList.includes(type) && (status === import_const.DeviceEnum.Add || status === import_const.DeviceEnum.Repair)) {
|
|
363
|
+
try {
|
|
364
|
+
setLoading(true);
|
|
365
|
+
const response = await pairRequest.run({
|
|
366
|
+
...(device == null ? void 0 : device.connection) || {},
|
|
367
|
+
type
|
|
368
|
+
});
|
|
369
|
+
if ((response == null ? void 0 : response.code) == 200) {
|
|
370
|
+
pairModalHook.open({
|
|
371
|
+
data: {
|
|
372
|
+
type,
|
|
373
|
+
device,
|
|
374
|
+
pairResponse: response == null ? void 0 : response.data
|
|
375
|
+
},
|
|
376
|
+
onCancel: () => {
|
|
377
|
+
pairModalHook.close();
|
|
378
|
+
},
|
|
379
|
+
onConfirm: () => {
|
|
380
|
+
pairModalHook.close();
|
|
381
|
+
onSave(device, response == null ? void 0 : response.data);
|
|
382
|
+
}
|
|
383
|
+
});
|
|
384
|
+
}
|
|
385
|
+
} catch (error) {
|
|
386
|
+
console.error("onSavePair error =>", error);
|
|
387
|
+
messageApi.open({
|
|
388
|
+
type: "error",
|
|
389
|
+
style: {
|
|
390
|
+
zIndex: (zIndex || 9999) + 1
|
|
391
|
+
},
|
|
392
|
+
content: (error == null ? void 0 : error.message) || import_utils.locales.getText("page.eftpos.text.pair.error")
|
|
393
|
+
});
|
|
394
|
+
} finally {
|
|
395
|
+
setLoading(false);
|
|
396
|
+
}
|
|
397
|
+
} else {
|
|
398
|
+
onSave(device);
|
|
399
|
+
}
|
|
400
|
+
};
|
|
301
401
|
if (type === import_const.Eftpos.Windcave) {
|
|
302
402
|
return /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(
|
|
303
403
|
PosTabs,
|
|
@@ -412,7 +512,18 @@ var eftpos_default = (props) => {
|
|
|
412
512
|
{
|
|
413
513
|
open: page === "edit",
|
|
414
514
|
onClose: onBack,
|
|
415
|
-
title:
|
|
515
|
+
title: type === import_const.Eftpos.MX51 ? /* @__PURE__ */ import_react.default.createElement(
|
|
516
|
+
"span",
|
|
517
|
+
{
|
|
518
|
+
style: {
|
|
519
|
+
display: "inline-flex",
|
|
520
|
+
alignItems: "center",
|
|
521
|
+
gap: "4px"
|
|
522
|
+
}
|
|
523
|
+
},
|
|
524
|
+
/* @__PURE__ */ import_react.default.createElement(import_materials.Image, { src: import_mx51SCI.default, preview: false, width: 24 }),
|
|
525
|
+
/* @__PURE__ */ import_react.default.createElement("span", null, import_utils.locales.getText("page.eftpos.text.simple.cloud.integration"))
|
|
526
|
+
) : import_utils.locales.getText("page.eftpos.text.device.add")(status, name),
|
|
416
527
|
titleNoWrap: true,
|
|
417
528
|
zIndex: zIndex || 9999,
|
|
418
529
|
destroyOnClose: true,
|
|
@@ -429,8 +540,10 @@ var eftpos_default = (props) => {
|
|
|
429
540
|
import_device.default,
|
|
430
541
|
{
|
|
431
542
|
formItemList: deviceItemList,
|
|
432
|
-
onSave,
|
|
433
|
-
key: `device${type}
|
|
543
|
+
onSave: onSavePair,
|
|
544
|
+
key: `device${type}`,
|
|
545
|
+
type,
|
|
546
|
+
status
|
|
434
547
|
},
|
|
435
548
|
pairStatus ? /* @__PURE__ */ import_react.default.createElement(import_antd.Form.Item, { label: "Status" }, /* @__PURE__ */ import_react.default.createElement(import_antd.Input, { value: pairStatus, disabled: true })) : null,
|
|
436
549
|
pairMessage ? /* @__PURE__ */ import_react.default.createElement(import_antd.Form.Item, { label: "Message" }, /* @__PURE__ */ import_react.default.createElement(import_antd.Input, { value: pairMessage, disabled: true })) : null
|
|
@@ -456,5 +569,5 @@ var eftpos_default = (props) => {
|
|
|
456
569
|
device: deviceItem
|
|
457
570
|
}
|
|
458
571
|
)
|
|
459
|
-
), contextHolder);
|
|
572
|
+
), contextHolder, pairModalHook.visible && /* @__PURE__ */ import_react.default.createElement(import_PairModal.default, { ...pairModalHook.modalProps }));
|
|
460
573
|
};
|
|
@@ -88,7 +88,6 @@
|
|
|
88
88
|
display: flex;
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
-
|
|
92
91
|
.pisell-lowcode__pos_drawer {
|
|
93
92
|
transform: translateZ(0);
|
|
94
93
|
}
|
|
@@ -204,3 +203,35 @@
|
|
|
204
203
|
display: flex;
|
|
205
204
|
flex-direction: column;
|
|
206
205
|
}
|
|
206
|
+
.pisell-lowcode__pos-device-pair-text {
|
|
207
|
+
padding: 0 24px 0 34px;
|
|
208
|
+
color: #101828;
|
|
209
|
+
font-size: 14px;
|
|
210
|
+
font-weight: 400;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.pisell-lowcode__pos_message
|
|
214
|
+
.pisell-lowcode__pos_message-notice-content
|
|
215
|
+
.pisell-lowcode__pos_message-success {
|
|
216
|
+
display: flex;
|
|
217
|
+
align-items: center;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.pisell-lowcode__pos_message-custom-content_mx51 {
|
|
221
|
+
display: flex;
|
|
222
|
+
flex-direction: column;
|
|
223
|
+
align-items: flex-start;
|
|
224
|
+
justify-content: center;
|
|
225
|
+
|
|
226
|
+
> span:last-child {
|
|
227
|
+
display: flex;
|
|
228
|
+
gap: 10px;
|
|
229
|
+
flex-wrap: wrap;
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.pisell-lowcode__booking-drawer-title-wrap
|
|
234
|
+
.pisell-lowcode__booking-drawer-title-line {
|
|
235
|
+
display: flex;
|
|
236
|
+
align-items: center;
|
|
237
|
+
}
|
|
@@ -15,6 +15,7 @@ declare const _default: {
|
|
|
15
15
|
'page.eftpos.text.edit': string;
|
|
16
16
|
'page.eftpos.text.delete': string;
|
|
17
17
|
'page.eftpos.text.save': string;
|
|
18
|
+
'page.eftpos.text.pair': string;
|
|
18
19
|
'page.eftpos.text.confim.delete': string;
|
|
19
20
|
'page.eftpos.text.confirm_delete-message': (x: string) => string;
|
|
20
21
|
'page.eftpos.text.confim.cancel': string;
|
|
@@ -27,9 +28,24 @@ declare const _default: {
|
|
|
27
28
|
'page.eftpos.text.table.del.delete': string;
|
|
28
29
|
'page.eftpos.text.table.del.cancel': string;
|
|
29
30
|
'page.eftpos.text.log': string;
|
|
31
|
+
'page.eftpos.text.settlement': string;
|
|
32
|
+
'page.eftpos.text.settlement_enquiry': string;
|
|
33
|
+
'page.eftpos.text.simple.cloud.integration': string;
|
|
34
|
+
'page.eftpos.text.simple.cloud.integration.steps': string[];
|
|
30
35
|
'page.eftpos.text.setting': string;
|
|
31
36
|
'page.eftpos.text.setting.tip': string;
|
|
32
37
|
'page.eftpos.text.setting.btn': string;
|
|
38
|
+
'page.eftpos.text.pair.modal.content.text-info': (status: string) => {
|
|
39
|
+
title: string;
|
|
40
|
+
description: string;
|
|
41
|
+
codeTitle: string;
|
|
42
|
+
cancenButtonText: string;
|
|
43
|
+
okButtonText: string;
|
|
44
|
+
} | undefined;
|
|
45
|
+
'page.eftpos.text.repair.message.warning': string;
|
|
46
|
+
'page.eftpos.text.settlement.failed': string;
|
|
47
|
+
'page.eftpos.text.settlement.button.done': string;
|
|
48
|
+
'page.eftpos.text.pair.error': string;
|
|
33
49
|
};
|
|
34
50
|
'zh-CN': {
|
|
35
51
|
'page.eftpos.text.manufacturer': string;
|
|
@@ -47,6 +63,7 @@ declare const _default: {
|
|
|
47
63
|
'page.eftpos.text.edit': string;
|
|
48
64
|
'page.eftpos.text.delete': string;
|
|
49
65
|
'page.eftpos.text.save': string;
|
|
66
|
+
'page.eftpos.text.pair': string;
|
|
50
67
|
'page.eftpos.text.confim.delete': string;
|
|
51
68
|
'page.eftpos.text.confirm_delete-message': (x: string) => string;
|
|
52
69
|
'page.eftpos.text.confim.cancel': string;
|
|
@@ -59,9 +76,24 @@ declare const _default: {
|
|
|
59
76
|
'page.eftpos.text.table.del.delete': string;
|
|
60
77
|
'page.eftpos.text.table.del.cancel': string;
|
|
61
78
|
'page.eftpos.text.log': string;
|
|
79
|
+
'page.eftpos.text.settlement': string;
|
|
80
|
+
'page.eftpos.text.settlement_enquiry': string;
|
|
81
|
+
'page.eftpos.text.simple.cloud.integration': string;
|
|
82
|
+
'page.eftpos.text.simple.cloud.integration.steps': string[];
|
|
62
83
|
'page.eftpos.text.setting': string;
|
|
63
84
|
'page.eftpos.text.setting.tip': string;
|
|
64
85
|
'page.eftpos.text.setting.btn': string;
|
|
86
|
+
'page.eftpos.text.pair.modal.content.text-info': (status: string) => {
|
|
87
|
+
title: string;
|
|
88
|
+
description: string;
|
|
89
|
+
codeTitle: string;
|
|
90
|
+
cancenButtonText: string;
|
|
91
|
+
okButtonText: string;
|
|
92
|
+
} | undefined;
|
|
93
|
+
'page.eftpos.text.repair.message.warning': string;
|
|
94
|
+
'page.eftpos.text.settlement.failed': string;
|
|
95
|
+
'page.eftpos.text.settlement.button.done': string;
|
|
96
|
+
'page.eftpos.text.pair.error': string;
|
|
65
97
|
};
|
|
66
98
|
'zh-HK': {
|
|
67
99
|
'page.eftpos.text.manufacturer': string;
|
|
@@ -79,6 +111,7 @@ declare const _default: {
|
|
|
79
111
|
'page.eftpos.text.edit': string;
|
|
80
112
|
'page.eftpos.text.delete': string;
|
|
81
113
|
'page.eftpos.text.save': string;
|
|
114
|
+
'page.eftpos.text.pair': string;
|
|
82
115
|
'page.eftpos.text.confim.delete': string;
|
|
83
116
|
'page.eftpos.text.confirm_delete-message': (x: string) => string;
|
|
84
117
|
'page.eftpos.text.confim.cancel': string;
|
|
@@ -91,9 +124,24 @@ declare const _default: {
|
|
|
91
124
|
'page.eftpos.text.table.del.delete': string;
|
|
92
125
|
'page.eftpos.text.table.del.cancel': string;
|
|
93
126
|
'page.eftpos.text.log': string;
|
|
127
|
+
'page.eftpos.text.settlement': string;
|
|
128
|
+
'page.eftpos.text.settlement_enquiry': string;
|
|
129
|
+
'page.eftpos.text.simple.cloud.integration': string;
|
|
130
|
+
'page.eftpos.text.simple.cloud.integration.steps': string[];
|
|
94
131
|
'page.eftpos.text.setting': string;
|
|
95
132
|
'page.eftpos.text.setting.tip': string;
|
|
96
133
|
'page.eftpos.text.setting.btn': string;
|
|
134
|
+
'page.eftpos.text.pair.modal.content.text-info': (status: string) => {
|
|
135
|
+
title: string;
|
|
136
|
+
description: string;
|
|
137
|
+
codeTitle: string;
|
|
138
|
+
cancenButtonText: string;
|
|
139
|
+
okButtonText: string;
|
|
140
|
+
} | undefined;
|
|
141
|
+
'page.eftpos.text.repair.message.warning': string;
|
|
142
|
+
'page.eftpos.text.settlement.failed': string;
|
|
143
|
+
'page.eftpos.text.settlement.button.done': string;
|
|
144
|
+
'page.eftpos.text.pair.error': string;
|
|
97
145
|
};
|
|
98
146
|
ja: {
|
|
99
147
|
'page.eftpos.text.manufacturer': string;
|
|
@@ -111,6 +159,7 @@ declare const _default: {
|
|
|
111
159
|
'page.eftpos.text.edit': string;
|
|
112
160
|
'page.eftpos.text.delete': string;
|
|
113
161
|
'page.eftpos.text.save': string;
|
|
162
|
+
'page.eftpos.text.pair': string;
|
|
114
163
|
'page.eftpos.text.confim.delete': string;
|
|
115
164
|
'page.eftpos.text.confirm_delete-message': (x: string) => string;
|
|
116
165
|
'page.eftpos.text.confim.cancel': string;
|
|
@@ -123,9 +172,24 @@ declare const _default: {
|
|
|
123
172
|
'page.eftpos.text.table.del.delete': string;
|
|
124
173
|
'page.eftpos.text.table.del.cancel': string;
|
|
125
174
|
'page.eftpos.text.log': string;
|
|
175
|
+
'page.eftpos.text.settlement': string;
|
|
176
|
+
'page.eftpos.text.settlement_enquiry': string;
|
|
177
|
+
'page.eftpos.text.simple.cloud.integration': string;
|
|
178
|
+
'page.eftpos.text.simple.cloud.integration.steps': string[];
|
|
126
179
|
'page.eftpos.text.setting': string;
|
|
127
180
|
'page.eftpos.text.setting.tip': string;
|
|
128
181
|
'page.eftpos.text.setting.btn': string;
|
|
182
|
+
'page.eftpos.text.pair.modal.content.text-info': (status: string) => {
|
|
183
|
+
title: string;
|
|
184
|
+
description: string;
|
|
185
|
+
codeTitle: string;
|
|
186
|
+
cancenButtonText: string;
|
|
187
|
+
okButtonText: string;
|
|
188
|
+
} | undefined;
|
|
189
|
+
'page.eftpos.text.repair.message.warning': string;
|
|
190
|
+
'page.eftpos.text.settlement.failed': string;
|
|
191
|
+
'page.eftpos.text.settlement.button.done': string;
|
|
192
|
+
'page.eftpos.text.pair.error': string;
|
|
129
193
|
};
|
|
130
194
|
pt: {
|
|
131
195
|
'page.eftpos.text.manufacturer': string;
|
|
@@ -143,6 +207,7 @@ declare const _default: {
|
|
|
143
207
|
'page.eftpos.text.edit': string;
|
|
144
208
|
'page.eftpos.text.delete': string;
|
|
145
209
|
'page.eftpos.text.save': string;
|
|
210
|
+
'page.eftpos.text.pair': string;
|
|
146
211
|
'page.eftpos.text.confim.delete': string;
|
|
147
212
|
'page.eftpos.text.confirm_delete-message': (x: string) => string;
|
|
148
213
|
'page.eftpos.text.confim.cancel': string;
|
|
@@ -155,9 +220,24 @@ declare const _default: {
|
|
|
155
220
|
'page.eftpos.text.table.del.delete': string;
|
|
156
221
|
'page.eftpos.text.table.del.cancel': string;
|
|
157
222
|
'page.eftpos.text.log': string;
|
|
223
|
+
'page.eftpos.text.settlement': string;
|
|
224
|
+
'page.eftpos.text.settlement_enquiry': string;
|
|
225
|
+
'page.eftpos.text.simple.cloud.integration': string;
|
|
226
|
+
'page.eftpos.text.simple.cloud.integration.steps': string[];
|
|
158
227
|
'page.eftpos.text.setting': string;
|
|
159
228
|
'page.eftpos.text.setting.tip': string;
|
|
160
229
|
'page.eftpos.text.setting.btn': string;
|
|
230
|
+
'page.eftpos.text.pair.modal.content.text-info': (status: string) => {
|
|
231
|
+
title: string;
|
|
232
|
+
description: string;
|
|
233
|
+
codeTitle: string;
|
|
234
|
+
cancenButtonText: string;
|
|
235
|
+
okButtonText: string;
|
|
236
|
+
} | undefined;
|
|
237
|
+
'page.eftpos.text.repair.message.warning': string;
|
|
238
|
+
'page.eftpos.text.settlement.failed': string;
|
|
239
|
+
'page.eftpos.text.settlement.button.done': string;
|
|
240
|
+
'page.eftpos.text.pair.error': string;
|
|
161
241
|
};
|
|
162
242
|
};
|
|
163
243
|
export default _default;
|