@pisell/private-materials 6.8.24 → 6.8.25

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.
@@ -2219,17 +2219,6 @@ var PaymentModal = function PaymentModal(_ref18) {
2219
2219
  autoCloseConfig.maskClosable = false;
2220
2220
  }
2221
2221
 
2222
- // 根据支付状态展示不同的 toast
2223
- _context22.next = 32;
2224
- return displayPaymentResultToast({
2225
- paymentStatus: paymentStatus,
2226
- orderTotalAmount: _orderInfo3.isDeposit ? _orderInfo3.depositAmount : orderTotalAmount,
2227
- gapAmount: paymentStatus === 'partially_paid' ? gapAmount : currentChangeGivenAmount,
2228
- failureReason: failureReason,
2229
- autoCloseConfig: autoCloseConfig,
2230
- actionButtons: generateActionButtons(paymentStatus, enabledAutoPrint)
2231
- }, paymentResultToastConfig);
2232
- case 32:
2233
2222
  // 当支付状态为 paid 时,关闭 paymentModal
2234
2223
  if (paymentStatus === 'paid') {
2235
2224
  handleModalClose();
@@ -2245,6 +2234,17 @@ var PaymentModal = function PaymentModal(_ref18) {
2245
2234
  }
2246
2235
  });
2247
2236
  handlePaymentComplete(paymentResult);
2237
+ // 根据支付状态展示不同的 toast
2238
+ _context22.next = 35;
2239
+ return displayPaymentResultToast({
2240
+ paymentStatus: paymentStatus,
2241
+ orderTotalAmount: _orderInfo3.isDeposit ? _orderInfo3.depositAmount : orderTotalAmount,
2242
+ gapAmount: paymentStatus === 'partially_paid' ? gapAmount : currentChangeGivenAmount,
2243
+ failureReason: failureReason,
2244
+ autoCloseConfig: autoCloseConfig,
2245
+ actionButtons: generateActionButtons(paymentStatus, enabledAutoPrint)
2246
+ }, paymentResultToastConfig);
2247
+ case 35:
2248
2248
  _context22.next = 38;
2249
2249
  break;
2250
2250
  case 37:
@@ -1566,17 +1566,6 @@ var PaymentModal = ({
1566
1566
  autoCloseConfig.autoCloseDelay = 0;
1567
1567
  autoCloseConfig.maskClosable = false;
1568
1568
  }
1569
- await (0, import_PaymentResultToastUtils.displayPaymentResultToast)(
1570
- {
1571
- paymentStatus,
1572
- orderTotalAmount: orderInfo3.isDeposit ? orderInfo3.depositAmount : orderTotalAmount,
1573
- gapAmount: paymentStatus === "partially_paid" ? gapAmount : currentChangeGivenAmount,
1574
- failureReason,
1575
- autoCloseConfig,
1576
- actionButtons: generateActionButtons(paymentStatus, enabledAutoPrint)
1577
- },
1578
- paymentResultToastConfig
1579
- );
1580
1569
  if (paymentStatus === "paid") {
1581
1570
  handleModalClose();
1582
1571
  }
@@ -1590,6 +1579,17 @@ var PaymentModal = ({
1590
1579
  }
1591
1580
  };
1592
1581
  handlePaymentComplete(paymentResult);
1582
+ await (0, import_PaymentResultToastUtils.displayPaymentResultToast)(
1583
+ {
1584
+ paymentStatus,
1585
+ orderTotalAmount: orderInfo3.isDeposit ? orderInfo3.depositAmount : orderTotalAmount,
1586
+ gapAmount: paymentStatus === "partially_paid" ? gapAmount : currentChangeGivenAmount,
1587
+ failureReason,
1588
+ autoCloseConfig,
1589
+ actionButtons: generateActionButtons(paymentStatus, enabledAutoPrint)
1590
+ },
1591
+ paymentResultToastConfig
1592
+ );
1593
1593
  } else {
1594
1594
  handlePaymentComplete(data2);
1595
1595
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/private-materials",
3
- "version": "6.8.24",
3
+ "version": "6.8.25",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -76,10 +76,10 @@
76
76
  "react-infinite-scroll-component": "^6.1.0",
77
77
  "react-resizable": "^3.0.5",
78
78
  "styled-components": "^6.0.0-rc.3",
79
- "@pisell/date-picker": "3.0.7",
80
79
  "@pisell/icon": "0.0.11",
81
- "@pisell/materials": "6.8.6",
82
- "@pisell/utils": "3.0.2"
80
+ "@pisell/utils": "3.0.2",
81
+ "@pisell/date-picker": "3.0.7",
82
+ "@pisell/materials": "6.8.6"
83
83
  },
84
84
  "peerDependencies": {
85
85
  "react": "^18.0.0",