@pisell/private-materials 3.0.145 → 3.0.147
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/render/default/view.js +1 -1
- package/build/lowcode/view.js +1 -1
- package/es/components/booking/components/footer/utils.js +4 -1
- package/es/components/booking/locales.js +14 -14
- package/es/components/booking/payments/index.d.ts +1 -1
- package/lib/components/booking/components/footer/utils.js +4 -2
- package/lib/components/booking/locales.js +14 -14
- package/lib/components/booking/payments/index.d.ts +1 -1
- package/package.json +4 -4
|
@@ -223,8 +223,11 @@ export var formatValues = function formatValues(state) {
|
|
|
223
223
|
|
|
224
224
|
// 日期
|
|
225
225
|
if ((_values = values) !== null && _values !== void 0 && (_values$bookings = _values.bookings) !== null && _values$bookings !== void 0 && (_values$bookings$ = _values$bookings[0]) !== null && _values$bookings$ !== void 0 && _values$bookings$.select_date && !(state !== null && state !== void 0 && state.bookingId)) {
|
|
226
|
+
var _values2, _values2$bookings, _values2$bookings$;
|
|
226
227
|
// 默认用第一个预约的选择日期并且是新建,编辑目前先不处理,用于解决附加费问题
|
|
227
|
-
|
|
228
|
+
var startTime = "".concat((_values2 = values) === null || _values2 === void 0 ? void 0 : (_values2$bookings = _values2.bookings) === null || _values2$bookings === void 0 ? void 0 : (_values2$bookings$ = _values2$bookings[0]) === null || _values2$bookings$ === void 0 ? void 0 : _values2$bookings$.start_time);
|
|
229
|
+
startTime = "".concat(startTime || '00:00', ":00");
|
|
230
|
+
values.schedule_date = "".concat(values.bookings[0].select_date, " ").concat(startTime);
|
|
228
231
|
}
|
|
229
232
|
return values;
|
|
230
233
|
};
|
|
@@ -237,7 +237,7 @@ export default {
|
|
|
237
237
|
'pisell2.text.edit': '编辑',
|
|
238
238
|
'pisell2.text.remove': '移除',
|
|
239
239
|
'pisell2.text.apply': '应用',
|
|
240
|
-
'pisell2.text.to-pay': '
|
|
240
|
+
'pisell2.text.to-pay': '待付款',
|
|
241
241
|
'pisell2.text.details': '详情',
|
|
242
242
|
'pisell2.text.checkout': '结账',
|
|
243
243
|
'pisell2.text.save': '保存',
|
|
@@ -370,8 +370,8 @@ export default {
|
|
|
370
370
|
'pisell2.text.rebook': "再次预约",
|
|
371
371
|
'pisell2.text.now': '现在',
|
|
372
372
|
'pisell2.text.deposit-list': "定金列表",
|
|
373
|
-
'pisell2.text.deposit-item-status-paid': "
|
|
374
|
-
'pisell2.text.deposit-item-status-unpaid': "
|
|
373
|
+
'pisell2.text.deposit-item-status-paid': "已付款",
|
|
374
|
+
'pisell2.text.deposit-item-status-unpaid': "未付款",
|
|
375
375
|
'pisell2.text.deposit-item-status-partially-paid': "部分付款",
|
|
376
376
|
'pisell2.text.deposit-order-total': "订单总额",
|
|
377
377
|
'pisell2.text.deposit-order-detail': "订单详情",
|
|
@@ -379,10 +379,10 @@ export default {
|
|
|
379
379
|
'pisell2.text.deposit-order-no': "订单编号",
|
|
380
380
|
'pisell2.text.deposit-amount': "金额",
|
|
381
381
|
'pisell2.text.deposit-deposit-amount': "定金金额",
|
|
382
|
-
'pisell2.text.deposit-deposit-paid': "\u5DF2\
|
|
383
|
-
'pisell2.text.deposit-deposit-paid-due': "\u5F85\
|
|
382
|
+
'pisell2.text.deposit-deposit-paid': "\u5DF2\u4ED8\u6B3E",
|
|
383
|
+
'pisell2.text.deposit-deposit-paid-due': "\u5F85\u4ED8\u6B3E",
|
|
384
384
|
'pisell2.text.deposit-deposit-paid-including-surcharge': "\u5305\u542B\u652F\u4ED8\u624B\u7EED\u8D39",
|
|
385
|
-
'pisell2.text.deposit-generate-payment-link': "
|
|
385
|
+
'pisell2.text.deposit-generate-payment-link': "生成付款链接",
|
|
386
386
|
'pisell2.text.deposit-list-empty': "请添加定金",
|
|
387
387
|
'pisell2.text.deposit-amount-message': "金额必须大于0",
|
|
388
388
|
'pisell2.text.deposit-amount-message2': "定金金额不能大于订单总额",
|
|
@@ -447,7 +447,7 @@ export default {
|
|
|
447
447
|
'page.booking.text.cancel-booking.msg': "该操作不可撤销,请谨慎操作。",
|
|
448
448
|
'page.booking.text.disabled-tickets': "所有票单将被禁用。",
|
|
449
449
|
'page.booking.text.paid.msg': function pageBookingTextPaidMsg(x) {
|
|
450
|
-
return "\u5173\u8054\u8BA2\u5355".concat(x === 'paid' ? '
|
|
450
|
+
return "\u5173\u8054\u8BA2\u5355".concat(x === 'paid' ? '已付款' : '部分付款', "\u3002");
|
|
451
451
|
},
|
|
452
452
|
'page.booking.text.please-choose-an-option': "请选择:",
|
|
453
453
|
'page.booking.text.please-choose-an-option-1': "退款:取消预约,同时处理退款。",
|
|
@@ -466,7 +466,7 @@ export default {
|
|
|
466
466
|
'pisell2.text.edit': '編輯',
|
|
467
467
|
'pisell2.text.remove': '移除',
|
|
468
468
|
'pisell2.text.apply': '應用',
|
|
469
|
-
'pisell2.text.to-pay': '
|
|
469
|
+
'pisell2.text.to-pay': '待付款',
|
|
470
470
|
'pisell2.text.details': '詳情',
|
|
471
471
|
'pisell2.text.checkout': '結賬',
|
|
472
472
|
'pisell2.text.save': '保存',
|
|
@@ -599,8 +599,8 @@ export default {
|
|
|
599
599
|
'pisell2.text.rebook': "再次預約",
|
|
600
600
|
'pisell2.text.now': '現在',
|
|
601
601
|
'pisell2.text.deposit-list': "定金列表",
|
|
602
|
-
'pisell2.text.deposit-item-status-paid': "
|
|
603
|
-
'pisell2.text.deposit-item-status-unpaid': "
|
|
602
|
+
'pisell2.text.deposit-item-status-paid': "已付款",
|
|
603
|
+
'pisell2.text.deposit-item-status-unpaid': "未付款",
|
|
604
604
|
'pisell2.text.deposit-item-status-partially-paid': "部分付款",
|
|
605
605
|
'pisell2.text.deposit-order-total': "訂單總額",
|
|
606
606
|
'pisell2.text.deposit-order-detail': "訂單詳情",
|
|
@@ -608,10 +608,10 @@ export default {
|
|
|
608
608
|
'pisell2.text.deposit-order-no': "訂單編號",
|
|
609
609
|
'pisell2.text.deposit-amount': "金額",
|
|
610
610
|
'pisell2.text.deposit-deposit-amount': "定金金額",
|
|
611
|
-
'pisell2.text.deposit-deposit-paid': "\u5DF2\
|
|
612
|
-
'pisell2.text.deposit-deposit-paid-due': "\u5F85\
|
|
611
|
+
'pisell2.text.deposit-deposit-paid': "\u5DF2\u4ED8\u6B3E",
|
|
612
|
+
'pisell2.text.deposit-deposit-paid-due': "\u5F85\u4ED8\u6B3E",
|
|
613
613
|
'pisell2.text.deposit-deposit-paid-including-surcharge': "\u5305\u542B\u652F\u4ED8\u624B\u7E8C\u8CBB",
|
|
614
|
-
'pisell2.text.deposit-generate-payment-link': "
|
|
614
|
+
'pisell2.text.deposit-generate-payment-link': "生成付款鏈接",
|
|
615
615
|
'pisell2.text.deposit-list-empty': "請添加定金",
|
|
616
616
|
'pisell2.text.deposit-amount-message': "金額必須大於0",
|
|
617
617
|
'pisell2.text.deposit-amount-message2': "定金金額不能大於訂單總額",
|
|
@@ -676,7 +676,7 @@ export default {
|
|
|
676
676
|
'page.booking.text.cancel-booking.msg': '該操作不可撤銷,請謹慎操作。',
|
|
677
677
|
'page.booking.text.disabled-tickets': '所有票單將被禁用。',
|
|
678
678
|
'page.booking.text.paid.msg': function pageBookingTextPaidMsg(x) {
|
|
679
|
-
return "\u95DC\u806F\u8A02\u55AE".concat(x === 'paid' ? '
|
|
679
|
+
return "\u95DC\u806F\u8A02\u55AE".concat(x === 'paid' ? '已付款' : '部分付款', "\u3002");
|
|
680
680
|
},
|
|
681
681
|
'page.booking.text.please-choose-an-option': '請選擇:',
|
|
682
682
|
'page.booking.text.please-choose-an-option-1': '退款:取消預約,同時處理退款。',
|
|
@@ -162,7 +162,7 @@ var formatHolder = (state, values) => {
|
|
|
162
162
|
return obj;
|
|
163
163
|
};
|
|
164
164
|
var formatValues = (state) => {
|
|
165
|
-
var _a, _b, _c;
|
|
165
|
+
var _a, _b, _c, _d, _e;
|
|
166
166
|
let values = {
|
|
167
167
|
type: state.renderType === "eventBooking" ? "event_booking_v2" : "appointment_booking",
|
|
168
168
|
platform: "shop",
|
|
@@ -190,7 +190,9 @@ var formatValues = (state) => {
|
|
|
190
190
|
values.holder = formatHolder(state, values);
|
|
191
191
|
values.bookings = formatBookings(state);
|
|
192
192
|
if (((_c = (_b = values == null ? void 0 : values.bookings) == null ? void 0 : _b[0]) == null ? void 0 : _c.select_date) && !(state == null ? void 0 : state.bookingId)) {
|
|
193
|
-
|
|
193
|
+
let startTime = `${(_e = (_d = values == null ? void 0 : values.bookings) == null ? void 0 : _d[0]) == null ? void 0 : _e.start_time}`;
|
|
194
|
+
startTime = `${startTime || "00:00"}:00`;
|
|
195
|
+
values.schedule_date = `${values.bookings[0].select_date} ${startTime}`;
|
|
194
196
|
}
|
|
195
197
|
return values;
|
|
196
198
|
};
|
|
@@ -264,7 +264,7 @@ var locales_default = {
|
|
|
264
264
|
"pisell2.text.edit": "编辑",
|
|
265
265
|
"pisell2.text.remove": "移除",
|
|
266
266
|
"pisell2.text.apply": "应用",
|
|
267
|
-
"pisell2.text.to-pay": "
|
|
267
|
+
"pisell2.text.to-pay": "待付款",
|
|
268
268
|
"pisell2.text.details": "详情",
|
|
269
269
|
"pisell2.text.checkout": "结账",
|
|
270
270
|
"pisell2.text.save": "保存",
|
|
@@ -391,8 +391,8 @@ var locales_default = {
|
|
|
391
391
|
"pisell2.text.rebook": "再次预约",
|
|
392
392
|
"pisell2.text.now": "现在",
|
|
393
393
|
"pisell2.text.deposit-list": "定金列表",
|
|
394
|
-
"pisell2.text.deposit-item-status-paid": "
|
|
395
|
-
"pisell2.text.deposit-item-status-unpaid": "
|
|
394
|
+
"pisell2.text.deposit-item-status-paid": "已付款",
|
|
395
|
+
"pisell2.text.deposit-item-status-unpaid": "未付款",
|
|
396
396
|
"pisell2.text.deposit-item-status-partially-paid": "部分付款",
|
|
397
397
|
"pisell2.text.deposit-order-total": "订单总额",
|
|
398
398
|
"pisell2.text.deposit-order-detail": "订单详情",
|
|
@@ -400,10 +400,10 @@ var locales_default = {
|
|
|
400
400
|
"pisell2.text.deposit-order-no": "订单编号",
|
|
401
401
|
"pisell2.text.deposit-amount": "金额",
|
|
402
402
|
"pisell2.text.deposit-deposit-amount": "定金金额",
|
|
403
|
-
"pisell2.text.deposit-deposit-paid":
|
|
404
|
-
"pisell2.text.deposit-deposit-paid-due":
|
|
403
|
+
"pisell2.text.deposit-deposit-paid": `已付款`,
|
|
404
|
+
"pisell2.text.deposit-deposit-paid-due": `待付款`,
|
|
405
405
|
"pisell2.text.deposit-deposit-paid-including-surcharge": `包含支付手续费`,
|
|
406
|
-
"pisell2.text.deposit-generate-payment-link": "
|
|
406
|
+
"pisell2.text.deposit-generate-payment-link": "生成付款链接",
|
|
407
407
|
"pisell2.text.deposit-list-empty": "请添加定金",
|
|
408
408
|
"pisell2.text.deposit-amount-message": "金额必须大于0",
|
|
409
409
|
"pisell2.text.deposit-amount-message2": "定金金额不能大于订单总额",
|
|
@@ -468,7 +468,7 @@ var locales_default = {
|
|
|
468
468
|
"page.booking.text.cancel-booking": "取消预约",
|
|
469
469
|
"page.booking.text.cancel-booking.msg": "该操作不可撤销,请谨慎操作。",
|
|
470
470
|
"page.booking.text.disabled-tickets": "所有票单将被禁用。",
|
|
471
|
-
"page.booking.text.paid.msg": (x) => `关联订单${x === "paid" ? "
|
|
471
|
+
"page.booking.text.paid.msg": (x) => `关联订单${x === "paid" ? "已付款" : "部分付款"}。`,
|
|
472
472
|
"page.booking.text.please-choose-an-option": "请选择:",
|
|
473
473
|
"page.booking.text.please-choose-an-option-1": "退款:取消预约,同时处理退款。",
|
|
474
474
|
"page.booking.text.please-choose-an-option-2": "仅取消:仅取消预约,但不进行退款处理。(您仍然可以在取消后再进行退款操作)"
|
|
@@ -486,7 +486,7 @@ var locales_default = {
|
|
|
486
486
|
"pisell2.text.edit": "編輯",
|
|
487
487
|
"pisell2.text.remove": "移除",
|
|
488
488
|
"pisell2.text.apply": "應用",
|
|
489
|
-
"pisell2.text.to-pay": "
|
|
489
|
+
"pisell2.text.to-pay": "待付款",
|
|
490
490
|
"pisell2.text.details": "詳情",
|
|
491
491
|
"pisell2.text.checkout": "結賬",
|
|
492
492
|
"pisell2.text.save": "保存",
|
|
@@ -613,8 +613,8 @@ var locales_default = {
|
|
|
613
613
|
"pisell2.text.rebook": "再次預約",
|
|
614
614
|
"pisell2.text.now": "現在",
|
|
615
615
|
"pisell2.text.deposit-list": "定金列表",
|
|
616
|
-
"pisell2.text.deposit-item-status-paid": "
|
|
617
|
-
"pisell2.text.deposit-item-status-unpaid": "
|
|
616
|
+
"pisell2.text.deposit-item-status-paid": "已付款",
|
|
617
|
+
"pisell2.text.deposit-item-status-unpaid": "未付款",
|
|
618
618
|
"pisell2.text.deposit-item-status-partially-paid": "部分付款",
|
|
619
619
|
"pisell2.text.deposit-order-total": "訂單總額",
|
|
620
620
|
"pisell2.text.deposit-order-detail": "訂單詳情",
|
|
@@ -622,10 +622,10 @@ var locales_default = {
|
|
|
622
622
|
"pisell2.text.deposit-order-no": "訂單編號",
|
|
623
623
|
"pisell2.text.deposit-amount": "金額",
|
|
624
624
|
"pisell2.text.deposit-deposit-amount": "定金金額",
|
|
625
|
-
"pisell2.text.deposit-deposit-paid":
|
|
626
|
-
"pisell2.text.deposit-deposit-paid-due":
|
|
625
|
+
"pisell2.text.deposit-deposit-paid": `已付款`,
|
|
626
|
+
"pisell2.text.deposit-deposit-paid-due": `待付款`,
|
|
627
627
|
"pisell2.text.deposit-deposit-paid-including-surcharge": `包含支付手續費`,
|
|
628
|
-
"pisell2.text.deposit-generate-payment-link": "
|
|
628
|
+
"pisell2.text.deposit-generate-payment-link": "生成付款鏈接",
|
|
629
629
|
"pisell2.text.deposit-list-empty": "請添加定金",
|
|
630
630
|
"pisell2.text.deposit-amount-message": "金額必須大於0",
|
|
631
631
|
"pisell2.text.deposit-amount-message2": "定金金額不能大於訂單總額",
|
|
@@ -690,7 +690,7 @@ var locales_default = {
|
|
|
690
690
|
"page.booking.text.cancel-booking": "取消預約",
|
|
691
691
|
"page.booking.text.cancel-booking.msg": "該操作不可撤銷,請謹慎操作。",
|
|
692
692
|
"page.booking.text.disabled-tickets": "所有票單將被禁用。",
|
|
693
|
-
"page.booking.text.paid.msg": (x) => `關聯訂單${x === "paid" ? "
|
|
693
|
+
"page.booking.text.paid.msg": (x) => `關聯訂單${x === "paid" ? "已付款" : "部分付款"}。`,
|
|
694
694
|
"page.booking.text.please-choose-an-option": "請選擇:",
|
|
695
695
|
"page.booking.text.please-choose-an-option-1": "退款:取消預約,同時處理退款。",
|
|
696
696
|
"page.booking.text.please-choose-an-option-2": "僅取消:僅取消預約,但不進行退款處理。(您仍然可以在取消後再進行退款操作)"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/private-materials",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.147",
|
|
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
|
-
"@pisell/materials": "3.0.48",
|
|
64
62
|
"@pisell/icon": "0.0.11",
|
|
65
|
-
"@pisell/
|
|
63
|
+
"@pisell/utils": "1.0.42",
|
|
64
|
+
"@pisell/date-picker": "1.0.100",
|
|
65
|
+
"@pisell/materials": "3.0.48"
|
|
66
66
|
},
|
|
67
67
|
"peerDependencies": {
|
|
68
68
|
"react": "^18.0.0",
|