@pisell/private-materials 6.4.8 → 6.4.9
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/meta.js +1 -1
- package/build/lowcode/render/default/view.js +1 -1
- package/build/lowcode/view.js +1 -1
- package/es/components/checkout/PaymentModal.js +8 -8
- package/lib/components/checkout/PaymentModal.js +6 -6
- package/package.json +1 -1
@@ -636,7 +636,7 @@ var PaymentContent = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
636
636
|
// 当 walletpass 直接就满足订单支付时,触发此方法
|
637
637
|
var handleWalletPassConfirmPay = /*#__PURE__*/function () {
|
638
638
|
var _ref10 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7(action) {
|
639
|
-
var result, _result$response, responseData, _responseData$payment,
|
639
|
+
var result, _result$response, responseData, _responseData$payment, params;
|
640
640
|
return _regeneratorRuntime().wrap(function _callee7$(_context7) {
|
641
641
|
while (1) switch (_context7.prev = _context7.next) {
|
642
642
|
case 0:
|
@@ -670,8 +670,8 @@ var PaymentContent = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
670
670
|
// 打印订单全部信息
|
671
671
|
data: {
|
672
672
|
order_id: responseData.order_id,
|
673
|
-
machine_code_print_info: responseData === null || responseData === void 0
|
674
|
-
small_ticket_data: responseData === null || responseData === void 0 || (_responseData$
|
673
|
+
machine_code_print_info: responseData === null || responseData === void 0 ? void 0 : responseData.machine_code_print_info,
|
674
|
+
small_ticket_data: responseData === null || responseData === void 0 || (_responseData$payment = responseData.payment_info) === null || _responseData$payment === void 0 ? void 0 : _responseData$payment.small_ticket_data
|
675
675
|
}
|
676
676
|
};
|
677
677
|
console.log('print_order_onOrderSynced_params>>>>', params);
|
@@ -1642,7 +1642,7 @@ var PaymentModal = function PaymentModal(_ref17) {
|
|
1642
1642
|
setOrderInfo(_orderInfo2);
|
1643
1643
|
// 监听订单同步完成,同步完成后显示订单完成 toast,关闭当前弹窗
|
1644
1644
|
unsubscribeRef.current = checkout.core.effects.on('checkout:onOrderSynced', function (data) {
|
1645
|
-
var _data$response, _responseData$
|
1645
|
+
var _data$response, _responseData$payment2;
|
1646
1646
|
// 获取支付状态和相关信息
|
1647
1647
|
var responseData = (_data$response = data.response) === null || _data$response === void 0 ? void 0 : _data$response.data;
|
1648
1648
|
// 获取支付状态
|
@@ -1657,7 +1657,7 @@ var PaymentModal = function PaymentModal(_ref17) {
|
|
1657
1657
|
// 获取订单总金额
|
1658
1658
|
var orderTotalAmount = Number((responseData === null || responseData === void 0 ? void 0 : responseData.total_amount) || 0);
|
1659
1659
|
var gapAmount = Number((responseData === null || responseData === void 0 ? void 0 : responseData.amount_gap) || 0);
|
1660
|
-
var currentChangeGivenAmount = Number((responseData === null || responseData === void 0 || (_responseData$
|
1660
|
+
var currentChangeGivenAmount = Number((responseData === null || responseData === void 0 || (_responseData$payment2 = responseData.payment_info) === null || _responseData$payment2 === void 0 ? void 0 : _responseData$payment2.current_change_given_amount) || 0);
|
1661
1661
|
// const changeDue = Number(responseData?.amount_gap || 0);
|
1662
1662
|
// 获取失败原因
|
1663
1663
|
var failureReason = responseData === null || responseData === void 0 ? void 0 : responseData.failure_reason;
|
@@ -1667,14 +1667,14 @@ var PaymentModal = function PaymentModal(_ref17) {
|
|
1667
1667
|
// 打印订单完整信息
|
1668
1668
|
console.log('print_order_onOrderSynced>>>>', responseData);
|
1669
1669
|
try {
|
1670
|
-
var _responseData$
|
1670
|
+
var _responseData$payment3;
|
1671
1671
|
var params = {
|
1672
1672
|
type: '99',
|
1673
1673
|
// 打印订单全部信息
|
1674
1674
|
data: {
|
1675
1675
|
order_id: responseData.order_id,
|
1676
|
-
machine_code_print_info: responseData === null || responseData === void 0
|
1677
|
-
small_ticket_data: responseData === null || responseData === void 0 || (_responseData$
|
1676
|
+
machine_code_print_info: responseData === null || responseData === void 0 ? void 0 : responseData.machine_code_print_info,
|
1677
|
+
small_ticket_data: responseData === null || responseData === void 0 || (_responseData$payment3 = responseData.payment_info) === null || _responseData$payment3 === void 0 ? void 0 : _responseData$payment3.small_ticket_data
|
1678
1678
|
}
|
1679
1679
|
};
|
1680
1680
|
console.log('print_order_onOrderSynced_params>>>>', params);
|
@@ -489,7 +489,7 @@ var PaymentContent = (0, import_react.forwardRef)(
|
|
489
489
|
[checkoutModule]
|
490
490
|
);
|
491
491
|
const handleWalletPassConfirmPay = async (action) => {
|
492
|
-
var _a2, _b2
|
492
|
+
var _a2, _b2;
|
493
493
|
if (action === "save-without-deduct") {
|
494
494
|
await checkoutModule.updateVoucherPaymentItemsAsync([]);
|
495
495
|
} else if (action === "cancel") {
|
@@ -506,8 +506,8 @@ var PaymentContent = (0, import_react.forwardRef)(
|
|
506
506
|
// 打印订单全部信息
|
507
507
|
data: {
|
508
508
|
order_id: responseData.order_id,
|
509
|
-
machine_code_print_info:
|
510
|
-
small_ticket_data: (
|
509
|
+
machine_code_print_info: responseData == null ? void 0 : responseData.machine_code_print_info,
|
510
|
+
small_ticket_data: (_b2 = responseData == null ? void 0 : responseData.payment_info) == null ? void 0 : _b2.small_ticket_data
|
511
511
|
}
|
512
512
|
};
|
513
513
|
console.log("print_order_onOrderSynced_params>>>>", params);
|
@@ -1220,7 +1220,7 @@ var PaymentModal = ({
|
|
1220
1220
|
}
|
1221
1221
|
setOrderInfo(orderInfo2);
|
1222
1222
|
unsubscribeRef.current = checkout.core.effects.on("checkout:onOrderSynced", (data2) => {
|
1223
|
-
var _a3, _b3, _c2
|
1223
|
+
var _a3, _b3, _c2;
|
1224
1224
|
const responseData = (_a3 = data2.response) == null ? void 0 : _a3.data;
|
1225
1225
|
const paymentStatus = responseData == null ? void 0 : responseData.payment_status;
|
1226
1226
|
if (data2.isManual) return;
|
@@ -1242,8 +1242,8 @@ var PaymentModal = ({
|
|
1242
1242
|
// 打印订单全部信息
|
1243
1243
|
data: {
|
1244
1244
|
order_id: responseData.order_id,
|
1245
|
-
machine_code_print_info:
|
1246
|
-
small_ticket_data: (
|
1245
|
+
machine_code_print_info: responseData == null ? void 0 : responseData.machine_code_print_info,
|
1246
|
+
small_ticket_data: (_c2 = responseData == null ? void 0 : responseData.payment_info) == null ? void 0 : _c2.small_ticket_data
|
1247
1247
|
}
|
1248
1248
|
};
|
1249
1249
|
console.log("print_order_onOrderSynced_params>>>>", params);
|