@pisell/private-materials 3.0.199 → 3.0.201
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 +142 -142
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +10 -10
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +10 -10
- package/es/components/booking/addons/model.d.ts +1 -1
- package/es/components/booking/components/customSelect/index.d.ts +1 -0
- package/es/components/booking/components/customSelect/index.js +6 -2
- package/es/components/booking/components/footer/AppointmentProductModal/index.d.ts +3 -0
- package/es/components/booking/components/footer/AppointmentProductModal/index.js +38 -0
- package/es/components/booking/components/footer/AppointmentProductModal/index.less +0 -0
- package/es/components/booking/components/footer/amount.js +45 -22
- package/es/components/booking/components/footer/index.js +84 -40
- package/es/components/booking/components/footer/utils.js +243 -32
- package/es/components/booking/info/addServiceVariant/index.js +8 -1
- package/es/components/booking/info/clientVariant/vertical/SelectDrawer.d.ts +1 -0
- package/es/components/booking/info/clientVariant/vertical/SelectDrawer.js +14 -13
- package/es/components/booking/info/clientVariant/vertical/index.js +33 -4
- package/es/components/booking/info/dateRange/index.d.ts +5 -0
- package/es/components/booking/info/dateRange/index.js +98 -0
- package/es/components/booking/info/dateRange/index.less +21 -0
- package/es/components/booking/info/main.js +20 -8
- package/es/components/booking/info/model.js +3 -0
- package/es/components/booking/info/pet/ChangePetModal/index.d.ts +4 -0
- package/es/components/booking/info/pet/ChangePetModal/index.js +119 -0
- package/es/components/booking/info/pet/ChangePetModal/index.less +4 -0
- package/es/components/booking/info/pet/index.js +54 -5
- package/es/components/booking/info/service/addService/index.js +142 -22
- package/es/components/booking/info/service/addService/index.less +13 -3
- package/es/components/booking/info/service/addService/utils.d.ts +11 -2
- package/es/components/booking/info/service/addService/utils.js +49 -24
- package/es/components/booking/info/service/editService/index.js +255 -44
- package/es/components/booking/info/service/editService/index.less +18 -13
- package/es/components/booking/info/service2/Lists.d.ts +3 -0
- package/es/components/booking/info/service2/Lists.js +158 -0
- package/es/components/booking/info/service2/hooks/useSelectPet.d.ts +6 -0
- package/es/components/booking/info/service2/hooks/useSelectPet.js +54 -0
- package/es/components/booking/info/service2/index.d.ts +3 -0
- package/es/components/booking/info/service2/index.js +58 -0
- package/es/components/booking/info/service2/status.d.ts +31 -0
- package/es/components/booking/info/service2/status.js +78 -0
- package/es/components/booking/info/service2/utils.d.ts +145 -0
- package/es/components/booking/info/service2/utils.js +438 -0
- package/es/components/booking/info/utils.d.ts +9 -0
- package/es/components/booking/info/utils.js +13 -0
- package/es/components/booking/locales.d.ts +60 -0
- package/es/components/booking/locales.js +75 -3
- package/es/components/booking/materiels/holder/index.d.ts +7 -0
- package/es/components/booking/materiels/holder/index.js +51 -0
- package/es/components/booking/model.d.ts +4 -1
- package/es/components/booking/model.js +4 -2
- package/es/components/booking/payments/index.d.ts +1 -1
- package/es/components/booking/utils.d.ts +12 -3
- package/es/components/booking/utils.js +139 -23
- package/es/components/eftpos/form/index.js +6 -12
- package/es/components/eftpos/group/index.d.ts +2 -1
- package/es/components/eftpos/group/index.js +2 -1
- package/es/components/eftpos/index.js +2 -2
- package/es/components/eftposPay/helper.d.ts +0 -1
- package/es/components/eftposPay/helper.js +0 -14
- package/es/components/eftposPay/tyro/index.js +20 -51
- package/es/components/shoppingCart/Provider.d.ts +3 -0
- package/es/components/shoppingCart/Provider.js +86 -0
- package/es/components/shoppingCart/components/Cart/Product.d.ts +4 -0
- package/es/components/shoppingCart/components/Cart/Product.js +96 -0
- package/es/components/shoppingCart/components/Cart/index.d.ts +4 -0
- package/es/components/shoppingCart/components/Cart/index.js +72 -0
- package/es/components/shoppingCart/components/Cart/index.less +68 -0
- package/es/components/shoppingCart/components/Empty/index.d.ts +4 -0
- package/es/components/shoppingCart/components/Empty/index.js +14 -0
- package/es/components/shoppingCart/components/Empty/index.less +19 -0
- package/es/components/shoppingCart/components/Render/index.d.ts +4 -0
- package/es/components/shoppingCart/components/Render/index.js +68 -0
- package/es/components/shoppingCart/components/Render/index.less +2 -0
- package/es/components/shoppingCart/components/SelectHolderModal/index.d.ts +4 -0
- package/es/components/shoppingCart/components/SelectHolderModal/index.js +124 -0
- package/es/components/shoppingCart/components/SelectHolderModal/index.less +32 -0
- package/es/components/shoppingCart/hooks/useAddService.d.ts +3 -0
- package/es/components/shoppingCart/hooks/useAddService.js +23 -0
- package/es/components/shoppingCart/hooks/useClearCart.d.ts +3 -0
- package/es/components/shoppingCart/hooks/useClearCart.js +54 -0
- package/es/components/shoppingCart/hooks/useContext.d.ts +1 -0
- package/es/components/shoppingCart/hooks/useContext.js +5 -0
- package/es/components/shoppingCart/index.d.ts +4 -0
- package/es/components/shoppingCart/index.js +24 -0
- package/es/components/shoppingCart/locales.d.ts +33 -0
- package/es/components/shoppingCart/locales.js +38 -0
- package/es/components/shoppingCart/mock.d.ts +40 -0
- package/es/components/shoppingCart/mock.js +40 -0
- package/es/components/shoppingCart/status.d.ts +2 -0
- package/es/components/shoppingCart/status.js +22 -0
- package/es/components/shoppingCart/type.d.ts +39 -0
- package/es/components/shoppingCart/type.js +1 -0
- package/es/components/shoppingCart/utils.d.ts +63 -0
- package/es/components/shoppingCart/utils.js +119 -0
- package/es/index.d.ts +1 -0
- package/es/index.js +2 -1
- package/lib/components/booking/addons/model.d.ts +1 -1
- package/lib/components/booking/components/customSelect/index.d.ts +1 -0
- package/lib/components/booking/components/customSelect/index.js +6 -2
- package/lib/components/booking/components/footer/AppointmentProductModal/index.d.ts +3 -0
- package/lib/components/booking/components/footer/AppointmentProductModal/index.js +60 -0
- package/lib/components/booking/components/footer/AppointmentProductModal/index.less +0 -0
- package/lib/components/booking/components/footer/amount.js +26 -8
- package/lib/components/booking/components/footer/index.js +25 -4
- package/lib/components/booking/components/footer/utils.js +157 -31
- package/lib/components/booking/info/addServiceVariant/index.js +5 -0
- package/lib/components/booking/info/clientVariant/vertical/SelectDrawer.d.ts +1 -0
- package/lib/components/booking/info/clientVariant/vertical/SelectDrawer.js +8 -7
- package/lib/components/booking/info/clientVariant/vertical/index.js +36 -10
- package/lib/components/booking/info/dateRange/index.d.ts +5 -0
- package/lib/components/booking/info/dateRange/index.js +111 -0
- package/lib/components/booking/info/dateRange/index.less +21 -0
- package/lib/components/booking/info/main.js +11 -4
- package/lib/components/booking/info/model.js +3 -0
- package/lib/components/booking/info/pet/ChangePetModal/index.d.ts +4 -0
- package/lib/components/booking/info/pet/ChangePetModal/index.js +111 -0
- package/lib/components/booking/info/pet/ChangePetModal/index.less +4 -0
- package/lib/components/booking/info/pet/index.js +61 -25
- package/lib/components/booking/info/service/addService/index.js +107 -34
- package/lib/components/booking/info/service/addService/index.less +13 -3
- package/lib/components/booking/info/service/addService/utils.d.ts +11 -2
- package/lib/components/booking/info/service/addService/utils.js +31 -10
- package/lib/components/booking/info/service/editService/index.js +293 -125
- package/lib/components/booking/info/service/editService/index.less +18 -13
- package/lib/components/booking/info/service2/Lists.d.ts +3 -0
- package/lib/components/booking/info/service2/Lists.js +113 -0
- package/lib/components/booking/info/service2/hooks/useSelectPet.d.ts +6 -0
- package/lib/components/booking/info/service2/hooks/useSelectPet.js +50 -0
- package/lib/components/booking/info/service2/index.d.ts +3 -0
- package/lib/components/booking/info/service2/index.js +75 -0
- package/lib/components/booking/info/service2/status.d.ts +31 -0
- package/lib/components/booking/info/service2/status.js +81 -0
- package/lib/components/booking/info/service2/utils.d.ts +145 -0
- package/lib/components/booking/info/service2/utils.js +322 -0
- package/lib/components/booking/info/utils.d.ts +9 -0
- package/lib/components/booking/info/utils.js +6 -0
- package/lib/components/booking/locales.d.ts +60 -0
- package/lib/components/booking/locales.js +63 -3
- package/lib/components/booking/materiels/holder/index.d.ts +7 -0
- package/lib/components/booking/materiels/holder/index.js +65 -0
- package/lib/components/booking/model.d.ts +4 -1
- package/lib/components/booking/model.js +4 -2
- package/lib/components/booking/payments/index.d.ts +1 -1
- package/lib/components/booking/utils.d.ts +12 -3
- package/lib/components/booking/utils.js +87 -15
- package/lib/components/eftpos/form/index.js +6 -12
- package/lib/components/eftpos/group/index.d.ts +2 -1
- package/lib/components/eftpos/group/index.js +1 -0
- package/lib/components/eftpos/index.js +2 -2
- package/lib/components/eftposPay/helper.d.ts +0 -1
- package/lib/components/eftposPay/helper.js +0 -21
- package/lib/components/eftposPay/tyro/index.js +7 -36
- package/lib/components/shoppingCart/Provider.d.ts +3 -0
- package/lib/components/shoppingCart/Provider.js +110 -0
- package/lib/components/shoppingCart/components/Cart/Product.d.ts +4 -0
- package/lib/components/shoppingCart/components/Cart/Product.js +89 -0
- package/lib/components/shoppingCart/components/Cart/index.d.ts +4 -0
- package/lib/components/shoppingCart/components/Cart/index.js +77 -0
- package/lib/components/shoppingCart/components/Cart/index.less +68 -0
- package/lib/components/shoppingCart/components/Empty/index.d.ts +4 -0
- package/lib/components/shoppingCart/components/Empty/index.js +43 -0
- package/lib/components/shoppingCart/components/Empty/index.less +19 -0
- package/lib/components/shoppingCart/components/Render/index.d.ts +4 -0
- package/lib/components/shoppingCart/components/Render/index.js +79 -0
- package/lib/components/shoppingCart/components/Render/index.less +2 -0
- package/lib/components/shoppingCart/components/SelectHolderModal/index.d.ts +4 -0
- package/lib/components/shoppingCart/components/SelectHolderModal/index.js +116 -0
- package/lib/components/shoppingCart/components/SelectHolderModal/index.less +32 -0
- package/lib/components/shoppingCart/hooks/useAddService.d.ts +3 -0
- package/lib/components/shoppingCart/hooks/useAddService.js +55 -0
- package/lib/components/shoppingCart/hooks/useClearCart.d.ts +3 -0
- package/lib/components/shoppingCart/hooks/useClearCart.js +71 -0
- package/lib/components/shoppingCart/hooks/useContext.d.ts +1 -0
- package/lib/components/shoppingCart/hooks/useContext.js +31 -0
- package/lib/components/shoppingCart/index.d.ts +4 -0
- package/lib/components/shoppingCart/index.js +60 -0
- package/lib/components/shoppingCart/locales.d.ts +33 -0
- package/lib/components/shoppingCart/locales.js +56 -0
- package/lib/components/shoppingCart/mock.d.ts +40 -0
- package/lib/components/shoppingCart/mock.js +76 -0
- package/lib/components/shoppingCart/status.d.ts +2 -0
- package/lib/components/shoppingCart/status.js +60 -0
- package/lib/components/shoppingCart/type.d.ts +39 -0
- package/lib/components/shoppingCart/type.js +17 -0
- package/lib/components/shoppingCart/utils.d.ts +63 -0
- package/lib/components/shoppingCart/utils.js +92 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +3 -0
- package/lowcode/shopping-cart/meta.ts +98 -0
- package/package.json +4 -4
- package/es/components/eftpos/receipt/index.d.ts +0 -24
- package/es/components/eftpos/receipt/index.js +0 -96
- package/lib/components/eftpos/receipt/index.d.ts +0 -24
- package/lib/components/eftpos/receipt/index.js +0 -88
|
@@ -0,0 +1,322 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/components/booking/info/service2/utils.ts
|
|
30
|
+
var utils_exports = {};
|
|
31
|
+
__export(utils_exports, {
|
|
32
|
+
disabledDate: () => disabledDate,
|
|
33
|
+
formatActiveKey: () => formatActiveKey,
|
|
34
|
+
formatDateTime: () => formatDateTime,
|
|
35
|
+
formatDayDate: () => formatDayDate,
|
|
36
|
+
formatDayTime: () => formatDayTime,
|
|
37
|
+
formatHolderLists: () => formatHolderLists,
|
|
38
|
+
formatProducts: () => formatProducts,
|
|
39
|
+
getDayProducts: () => getDayProducts,
|
|
40
|
+
getErrorMessage: () => getErrorMessage,
|
|
41
|
+
getResourceItem: () => getResourceItem,
|
|
42
|
+
holderId: () => holderId,
|
|
43
|
+
initDate: () => initDate,
|
|
44
|
+
isAppointment: () => isAppointment,
|
|
45
|
+
isDayBooking: () => isDayBooking,
|
|
46
|
+
isHasDayAppointmentProduct: () => isHasDayAppointmentProduct,
|
|
47
|
+
isOpenDeletePet: () => isOpenDeletePet,
|
|
48
|
+
isTerminalDayBooking: () => isTerminalDayBooking
|
|
49
|
+
});
|
|
50
|
+
module.exports = __toCommonJS(utils_exports);
|
|
51
|
+
var import_mock = require("../../mock");
|
|
52
|
+
var import_utils = require("../../utils");
|
|
53
|
+
var import_utils2 = require("@pisell/utils");
|
|
54
|
+
var import_dayjs = __toESM(require("dayjs"));
|
|
55
|
+
var import_status = require("./status");
|
|
56
|
+
var import_locales = __toESM(require("../../locales"));
|
|
57
|
+
import_utils2.locales.init(import_locales.default, localStorage.getItem("umi_locale") || "en");
|
|
58
|
+
var formatActiveKey = (lists, platform) => {
|
|
59
|
+
var _a;
|
|
60
|
+
if (!(lists == null ? void 0 : lists.length))
|
|
61
|
+
return [];
|
|
62
|
+
if (platform === "shop") {
|
|
63
|
+
return [(_a = lists[lists.length - 1]) == null ? void 0 : _a.key];
|
|
64
|
+
}
|
|
65
|
+
return lists == null ? void 0 : lists.map((cart) => cart == null ? void 0 : cart.key);
|
|
66
|
+
};
|
|
67
|
+
var getResourceItem = (id, state) => {
|
|
68
|
+
var _a;
|
|
69
|
+
if (id === 0) {
|
|
70
|
+
return (0, import_mock.getNoResource)();
|
|
71
|
+
}
|
|
72
|
+
return (_a = state.service.resources) == null ? void 0 : _a.find((d) => d.form_record_id === id);
|
|
73
|
+
};
|
|
74
|
+
var errorTypes = {
|
|
75
|
+
product: import_utils2.locales.getText("pisell2.text.status.service-error-1"),
|
|
76
|
+
time: import_utils2.locales.getText("pisell2.text.status.service-error-2"),
|
|
77
|
+
maxLimit: import_utils2.locales.getText("pisell2.text.status.service-error-3"),
|
|
78
|
+
limit: import_utils2.locales.getText("pisell2.text.status.service-error-3")
|
|
79
|
+
};
|
|
80
|
+
var getErrorMessage = (service, resourceItem, isDay) => {
|
|
81
|
+
const errorList = (0, import_utils.getErrorList)(resourceItem, service, isDay);
|
|
82
|
+
let errorMessage = "";
|
|
83
|
+
if (!service.id) {
|
|
84
|
+
return errorList[0].label;
|
|
85
|
+
}
|
|
86
|
+
if (errorList.length) {
|
|
87
|
+
if (errorList.length > 1) {
|
|
88
|
+
errorMessage = `${errorList.length} ${import_utils2.locales.getText(
|
|
89
|
+
"pisell2.text.warnings"
|
|
90
|
+
)}`;
|
|
91
|
+
} else {
|
|
92
|
+
errorMessage = (resourceItem == null ? void 0 : resourceItem.labelText) + " " + errorTypes[errorList[0].type];
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
return errorMessage;
|
|
96
|
+
};
|
|
97
|
+
var formatHolderLists = (lists) => {
|
|
98
|
+
const isOpenGroup = true;
|
|
99
|
+
const _lists = lists == null ? void 0 : lists.map((item) => {
|
|
100
|
+
return {
|
|
101
|
+
...item,
|
|
102
|
+
id: (item == null ? void 0 : item.id) || (item == null ? void 0 : item.form_record_id),
|
|
103
|
+
key: (item == null ? void 0 : item.id) || (item == null ? void 0 : item.form_record_id),
|
|
104
|
+
label: import_utils2.locales.getText("pisell2.text.cart.of")(item == null ? void 0 : item.main_field)
|
|
105
|
+
};
|
|
106
|
+
});
|
|
107
|
+
if (isOpenGroup) {
|
|
108
|
+
const defaults = [
|
|
109
|
+
{
|
|
110
|
+
key: 0,
|
|
111
|
+
id: 0,
|
|
112
|
+
label: import_utils2.locales.getText("pisell2.text.open.items"),
|
|
113
|
+
main_field: import_utils2.locales.getText("pisell2.text.open.items")
|
|
114
|
+
}
|
|
115
|
+
];
|
|
116
|
+
return defaults.concat(_lists);
|
|
117
|
+
}
|
|
118
|
+
return _lists;
|
|
119
|
+
};
|
|
120
|
+
var getHolderLists = (state) => {
|
|
121
|
+
var _a, _b, _c, _d, _e, _f;
|
|
122
|
+
const form_id = ((_d = (_c = (_b = (_a = state == null ? void 0 : state.bookingConfig) == null ? void 0 : _a.config) == null ? void 0 : _b.basic) == null ? void 0 : _c.appointment_subject) == null ? void 0 : _d.form_id) || 0;
|
|
123
|
+
const petLists = ((_f = (_e = state == null ? void 0 : state.pet) == null ? void 0 : _e.value) == null ? void 0 : _f[form_id]) || [];
|
|
124
|
+
const _lists = formatHolderLists(petLists);
|
|
125
|
+
return _lists;
|
|
126
|
+
};
|
|
127
|
+
var getHolderName = (state, id) => {
|
|
128
|
+
const holderLists = getHolderLists(state);
|
|
129
|
+
if (!holderLists.length || !id)
|
|
130
|
+
return "";
|
|
131
|
+
const resource = holderLists.find((d) => (d == null ? void 0 : d.id) === id);
|
|
132
|
+
return resource == null ? void 0 : resource.main_field;
|
|
133
|
+
};
|
|
134
|
+
var isAppointment = (item, state) => {
|
|
135
|
+
return import_status.appointmentTypes.includes(item == null ? void 0 : item.extension_type) && isDayBooking(state);
|
|
136
|
+
};
|
|
137
|
+
var formatProducts = (lists, state) => {
|
|
138
|
+
if (!(lists == null ? void 0 : lists.length))
|
|
139
|
+
return [];
|
|
140
|
+
console.log(lists, "wh_lists");
|
|
141
|
+
try {
|
|
142
|
+
return lists.map((item) => {
|
|
143
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i;
|
|
144
|
+
const _isAppointment = isAppointment(item, state);
|
|
145
|
+
const clientTitle = getHolderName(state, (_a = item == null ? void 0 : item._extend) == null ? void 0 : _a.holder_id);
|
|
146
|
+
let resourceItem = {};
|
|
147
|
+
let errorMessage = "";
|
|
148
|
+
if (_isAppointment) {
|
|
149
|
+
resourceItem = getResourceItem((_b = item == null ? void 0 : item._extend) == null ? void 0 : _b.resource, state);
|
|
150
|
+
errorMessage = getErrorMessage(item, resourceItem, isDayBooking(state));
|
|
151
|
+
}
|
|
152
|
+
return {
|
|
153
|
+
...item,
|
|
154
|
+
note: (item == null ? void 0 : item.note) || "",
|
|
155
|
+
locale: state.locale,
|
|
156
|
+
symbol: state.amountSymbol,
|
|
157
|
+
total: item == null ? void 0 : item._extend.total,
|
|
158
|
+
price: item == null ? void 0 : item._extend.price,
|
|
159
|
+
origin_total: item == null ? void 0 : item._extend.origin_total,
|
|
160
|
+
num: item == null ? void 0 : item._extend.quantity,
|
|
161
|
+
bundle: (_d = (_c = item == null ? void 0 : item._extend) == null ? void 0 : _c.other) == null ? void 0 : _d.bundle,
|
|
162
|
+
options: (_f = (_e = item == null ? void 0 : item._extend) == null ? void 0 : _e.other) == null ? void 0 : _f.option,
|
|
163
|
+
product_option_string: (_h = (_g = item == null ? void 0 : item._extend) == null ? void 0 : _g.other) == null ? void 0 : _h.product_option_string,
|
|
164
|
+
_showAction: false,
|
|
165
|
+
_actionText: import_utils2.locales.getText("page.booking.text.add-time"),
|
|
166
|
+
_errorMessage: errorMessage,
|
|
167
|
+
_extend: {
|
|
168
|
+
...(item == null ? void 0 : item._extend) || {},
|
|
169
|
+
date: !_isAppointment ? null : state == null ? void 0 : state.date,
|
|
170
|
+
relation_form_name: !_isAppointment ? "" : (resourceItem == null ? void 0 : resourceItem.labelText) || item.relation_form_name,
|
|
171
|
+
holder_title: clientTitle,
|
|
172
|
+
resource: !_isAppointment ? null : (_i = item == null ? void 0 : item._extend) == null ? void 0 : _i.resource,
|
|
173
|
+
relation_details: []
|
|
174
|
+
}
|
|
175
|
+
};
|
|
176
|
+
});
|
|
177
|
+
} catch (error) {
|
|
178
|
+
}
|
|
179
|
+
};
|
|
180
|
+
var disabledDate = (current, position, currentDate) => {
|
|
181
|
+
if (!(0, import_dayjs.default)(currentDate).isValid())
|
|
182
|
+
return;
|
|
183
|
+
if (position === "start") {
|
|
184
|
+
return false;
|
|
185
|
+
}
|
|
186
|
+
if (position === "end" && current.endOf("day") && currentDate) {
|
|
187
|
+
console.log(currentDate, current, position, "currentDate");
|
|
188
|
+
const endDisabled = currentDate.add(8, "months").format("YYYY-MM-DD");
|
|
189
|
+
return (0, import_dayjs.default)(endDisabled) < current.startOf("day") || current.startOf("day") <= currentDate;
|
|
190
|
+
}
|
|
191
|
+
return current && current <= currentDate;
|
|
192
|
+
};
|
|
193
|
+
var isDayBooking = (state) => {
|
|
194
|
+
return (state == null ? void 0 : state.renderType) === "dayBooking";
|
|
195
|
+
};
|
|
196
|
+
var isTerminalDayBooking = (state) => {
|
|
197
|
+
return state.isTerminalDayBookingPage;
|
|
198
|
+
};
|
|
199
|
+
var formatDayDate = (_extend) => {
|
|
200
|
+
let startDate = (0, import_dayjs.default)(_extend == null ? void 0 : _extend.start_date).startOf("day");
|
|
201
|
+
let endDate = (0, import_dayjs.default)(_extend == null ? void 0 : _extend.end_date).startOf("day");
|
|
202
|
+
return {
|
|
203
|
+
..._extend,
|
|
204
|
+
start_date: startDate,
|
|
205
|
+
end_date: endDate
|
|
206
|
+
};
|
|
207
|
+
};
|
|
208
|
+
var formatDayTime = ({ startDate, endDate }) => {
|
|
209
|
+
const shopOpeningTime = localStorage.getItem("shopOpeningHours") || "00:00";
|
|
210
|
+
let start_date = (0, import_dayjs.default)(startDate).format("YYYY-MM-DD");
|
|
211
|
+
let end_date = (0, import_dayjs.default)(endDate).format("YYYY-MM-DD");
|
|
212
|
+
const result = {
|
|
213
|
+
startDateTime: (0, import_dayjs.default)(`${start_date}T${shopOpeningTime}:00`),
|
|
214
|
+
// 结束日期根据营业日时间减去一分钟
|
|
215
|
+
endDateTime: (0, import_dayjs.default)(`${end_date}T${shopOpeningTime}:00`).subtract(1, "minute")
|
|
216
|
+
};
|
|
217
|
+
return result;
|
|
218
|
+
};
|
|
219
|
+
var formatDateTime = (start_date, end_date) => {
|
|
220
|
+
const _openingTime = (0, import_status.openingTime)();
|
|
221
|
+
const startDate = `${start_date} ${_openingTime}`;
|
|
222
|
+
let endDate = `${end_date} ${_openingTime}`;
|
|
223
|
+
const date = {
|
|
224
|
+
value: (0, import_dayjs.default)(startDate),
|
|
225
|
+
end_date: (0, import_dayjs.default)(endDate).subtract(1, "minute")
|
|
226
|
+
};
|
|
227
|
+
return date;
|
|
228
|
+
};
|
|
229
|
+
var initDate = () => {
|
|
230
|
+
const startDate = (0, import_dayjs.default)().format("YYYY-MM-DD");
|
|
231
|
+
let endDate = (0, import_dayjs.default)().add(1, "days").format("YYYY-MM-DD");
|
|
232
|
+
const date = formatDateTime(startDate, endDate);
|
|
233
|
+
return date;
|
|
234
|
+
};
|
|
235
|
+
var isHasDayAppointmentProduct = (state) => {
|
|
236
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
237
|
+
const form_id = ((_d = (_c = (_b = (_a = state == null ? void 0 : state.bookingConfig) == null ? void 0 : _a.config) == null ? void 0 : _b.basic) == null ? void 0 : _c.appointment_subject) == null ? void 0 : _d.form_id) || 0;
|
|
238
|
+
const services = ((_e = state.service) == null ? void 0 : _e.value) || [];
|
|
239
|
+
const pets = ((_g = (_f = state.pet) == null ? void 0 : _f.value) == null ? void 0 : _g[form_id]) || [];
|
|
240
|
+
const appointmentServices = services.filter((d) => import_status.appointmentTypes.includes(d.extension_type));
|
|
241
|
+
if (!appointmentServices.length)
|
|
242
|
+
return true;
|
|
243
|
+
let _pets = pets == null ? void 0 : pets.map((d) => {
|
|
244
|
+
const holderProducts = services.filter((d2) => {
|
|
245
|
+
var _a2;
|
|
246
|
+
return ((_a2 = d2._extend) == null ? void 0 : _a2.holder_id) == d2.form_record_id;
|
|
247
|
+
});
|
|
248
|
+
return {
|
|
249
|
+
...d,
|
|
250
|
+
// 如果该购物车中没选择任何商品,则不需要验证,所以直接用1来填充
|
|
251
|
+
// services: !holderProducts?.length ? [1] : holderProducts?.filter((d: any) => appointmentTypes.includes(d.extension_type))
|
|
252
|
+
services: services.filter((item) => {
|
|
253
|
+
var _a2;
|
|
254
|
+
return ((_a2 = item._extend) == null ? void 0 : _a2.holder_id) == d.form_record_id && import_status.appointmentTypes.includes(item.extension_type);
|
|
255
|
+
})
|
|
256
|
+
};
|
|
257
|
+
});
|
|
258
|
+
_pets = _pets.filter((d) => !d.services.length);
|
|
259
|
+
return _pets.length > 0;
|
|
260
|
+
};
|
|
261
|
+
var getDayProducts = (holderId2, lists, isTerminal) => {
|
|
262
|
+
let _lists = lists || [];
|
|
263
|
+
if (!holderId2 && !isTerminal) {
|
|
264
|
+
_lists = _lists.filter((item) => !import_status.appointmentTypes.includes(item == null ? void 0 : item.extension_type));
|
|
265
|
+
} else {
|
|
266
|
+
_lists = _lists.filter((item) => {
|
|
267
|
+
var _a;
|
|
268
|
+
return !import_status.appointmentTypes.includes(item == null ? void 0 : item.extension_type) || import_status.appointmentTypes.includes(item == null ? void 0 : item.extension_type) && ((_a = item.duration) == null ? void 0 : _a.type) === "days";
|
|
269
|
+
});
|
|
270
|
+
}
|
|
271
|
+
return _lists;
|
|
272
|
+
};
|
|
273
|
+
var isOpenDeletePet = (state, newVal) => {
|
|
274
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
275
|
+
const form_id = ((_d = (_c = (_b = (_a = state == null ? void 0 : state.bookingConfig) == null ? void 0 : _a.config) == null ? void 0 : _b.basic) == null ? void 0 : _c.appointment_subject) == null ? void 0 : _d.form_id) || 0;
|
|
276
|
+
const oldPets = ((_f = (_e = state == null ? void 0 : state.pet) == null ? void 0 : _e.value) == null ? void 0 : _f[form_id]) || [];
|
|
277
|
+
const newPets = (newVal == null ? void 0 : newVal[form_id]) || [];
|
|
278
|
+
const deletePets = oldPets.filter((item) => !newPets.some((newItem) => newItem.form_record_id === item.form_record_id));
|
|
279
|
+
const servicePets = deletePets.map((item) => {
|
|
280
|
+
var _a2, _b2;
|
|
281
|
+
return {
|
|
282
|
+
...item,
|
|
283
|
+
services: (_b2 = (_a2 = state.service) == null ? void 0 : _a2.value) == null ? void 0 : _b2.filter((d) => {
|
|
284
|
+
var _a3;
|
|
285
|
+
return ((_a3 = d._extend) == null ? void 0 : _a3.holder_id) == item.form_record_id;
|
|
286
|
+
})
|
|
287
|
+
};
|
|
288
|
+
});
|
|
289
|
+
const lists = servicePets.filter((item) => {
|
|
290
|
+
var _a2;
|
|
291
|
+
return ((_a2 = item.services) == null ? void 0 : _a2.length) > 0;
|
|
292
|
+
});
|
|
293
|
+
console.log(deletePets, (_g = state.service) == null ? void 0 : _g.value, lists, "wh98888888");
|
|
294
|
+
return {
|
|
295
|
+
ids: lists.map((item) => item.form_record_id),
|
|
296
|
+
lists
|
|
297
|
+
};
|
|
298
|
+
};
|
|
299
|
+
var holderId = (state) => {
|
|
300
|
+
var _a;
|
|
301
|
+
return Number(((_a = state == null ? void 0 : state.activeCartId) == null ? void 0 : _a[0]) || 0);
|
|
302
|
+
};
|
|
303
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
304
|
+
0 && (module.exports = {
|
|
305
|
+
disabledDate,
|
|
306
|
+
formatActiveKey,
|
|
307
|
+
formatDateTime,
|
|
308
|
+
formatDayDate,
|
|
309
|
+
formatDayTime,
|
|
310
|
+
formatHolderLists,
|
|
311
|
+
formatProducts,
|
|
312
|
+
getDayProducts,
|
|
313
|
+
getErrorMessage,
|
|
314
|
+
getResourceItem,
|
|
315
|
+
holderId,
|
|
316
|
+
initDate,
|
|
317
|
+
isAppointment,
|
|
318
|
+
isDayBooking,
|
|
319
|
+
isHasDayAppointmentProduct,
|
|
320
|
+
isOpenDeletePet,
|
|
321
|
+
isTerminalDayBooking
|
|
322
|
+
});
|
|
@@ -22,3 +22,12 @@ export declare const isInterval: (time1: number, time2: number, interval?: numbe
|
|
|
22
22
|
*/
|
|
23
23
|
export declare const formatServiceListByTime: (list: any[]) => any[];
|
|
24
24
|
export declare const isBooking4Shop: (shopId: number, renderType?: string) => boolean;
|
|
25
|
+
/**
|
|
26
|
+
* @title: 是否是跨日预约
|
|
27
|
+
* @description:
|
|
28
|
+
* @param {number} shopId
|
|
29
|
+
* @return {*}
|
|
30
|
+
* @Author: WangHan
|
|
31
|
+
* @Date: 2024-11-29 11:19
|
|
32
|
+
*/
|
|
33
|
+
export declare const isDayBooking: (shopId: number) => boolean;
|
|
@@ -22,6 +22,7 @@ __export(utils_exports, {
|
|
|
22
22
|
formatServiceListByTime: () => formatServiceListByTime,
|
|
23
23
|
getIsBundleOrCombination: () => getIsBundleOrCombination,
|
|
24
24
|
isBooking4Shop: () => isBooking4Shop,
|
|
25
|
+
isDayBooking: () => isDayBooking,
|
|
25
26
|
isInterval: () => isInterval,
|
|
26
27
|
moveItemToFront: () => moveItemToFront,
|
|
27
28
|
uniqueByField: () => uniqueByField
|
|
@@ -86,11 +87,16 @@ var isBooking4Shop = (shopId, renderType) => {
|
|
|
86
87
|
const booking4Shops = [1350, 1401, 3013, 7154, 7572, 7007, 8119, 7320, 7362, 6497, 6087, 6303, 6726, 8191];
|
|
87
88
|
return booking4Shops.includes(shopId);
|
|
88
89
|
};
|
|
90
|
+
var isDayBooking = (shopId) => {
|
|
91
|
+
const dayBookingShops = [9];
|
|
92
|
+
return dayBookingShops.includes(shopId);
|
|
93
|
+
};
|
|
89
94
|
// Annotate the CommonJS export names for ESM import in node:
|
|
90
95
|
0 && (module.exports = {
|
|
91
96
|
formatServiceListByTime,
|
|
92
97
|
getIsBundleOrCombination,
|
|
93
98
|
isBooking4Shop,
|
|
99
|
+
isDayBooking,
|
|
94
100
|
isInterval,
|
|
95
101
|
moveItemToFront,
|
|
96
102
|
uniqueByField
|
|
@@ -33,6 +33,11 @@ declare const _default: {
|
|
|
33
33
|
'pisell2.text.start_time': string;
|
|
34
34
|
'pisell2.text.duration': string;
|
|
35
35
|
'pisell2.text.resource': string;
|
|
36
|
+
'pisell2.text.end_time': string;
|
|
37
|
+
'pisell2.text.start_date': string;
|
|
38
|
+
'pisell2.text.end_date': string;
|
|
39
|
+
'pisell2.text.quantity': string;
|
|
40
|
+
'pisell2.text.holder': string;
|
|
36
41
|
'pisell2.text.warnings': string;
|
|
37
42
|
'pisell2.text.order-notes': string;
|
|
38
43
|
'pisell2.text.add-order-notes': string;
|
|
@@ -48,6 +53,7 @@ declare const _default: {
|
|
|
48
53
|
'pisell2.text.updated': string;
|
|
49
54
|
'pisell2.text.appointment-updated': string;
|
|
50
55
|
'pisell2.text.please-create-an-appointment-first': string;
|
|
56
|
+
'pisell2.text.day': (val: number) => string;
|
|
51
57
|
'pisell2.text.min': string;
|
|
52
58
|
'pisell2.text.h': string;
|
|
53
59
|
'pisell2.text.other': string;
|
|
@@ -218,6 +224,20 @@ declare const _default: {
|
|
|
218
224
|
'pisell2.booking.info.text.create-new': string;
|
|
219
225
|
'pisell2.booking.info.text.form-agreement-yes': string;
|
|
220
226
|
'pisell2.booking.info.text.form-agreement-no': string;
|
|
227
|
+
'pisell2.text.open.items': string;
|
|
228
|
+
'pisell2.text.cart.of': (val: any) => string;
|
|
229
|
+
'pisell2.text.no.selected': string;
|
|
230
|
+
'pisell2.text.select.items': string;
|
|
231
|
+
'pisell2.text.edit-select-service': string;
|
|
232
|
+
'pisell2.text.missing.reservation.title': string;
|
|
233
|
+
'pisell2.text.missing.reservation.content': string;
|
|
234
|
+
'pisell2.text.confirm': string;
|
|
235
|
+
'pisell2.text.cancel': string;
|
|
236
|
+
'pisell2.text.change.pet.title': string;
|
|
237
|
+
'pisell2.text.change.pet.content': string;
|
|
238
|
+
'pisell2.text.change.pet.content1': string;
|
|
239
|
+
'pisell2.text.change.pet.confirm': string;
|
|
240
|
+
'pisell2.text.change.pet.cancel': string;
|
|
221
241
|
};
|
|
222
242
|
'zh-CN': {
|
|
223
243
|
'pisell2.text.refunded-amount': string;
|
|
@@ -256,6 +276,11 @@ declare const _default: {
|
|
|
256
276
|
'pisell2.text.discount': string;
|
|
257
277
|
'pisell2.text.discount-reason': string;
|
|
258
278
|
'pisell2.text.start_time': string;
|
|
279
|
+
'pisell2.text.end_time': string;
|
|
280
|
+
'pisell2.text.start_date': string;
|
|
281
|
+
'pisell2.text.end_date': string;
|
|
282
|
+
'pisell2.text.quantity': string;
|
|
283
|
+
'pisell2.text.holder': string;
|
|
259
284
|
'pisell2.text.duration': string;
|
|
260
285
|
'pisell2.text.resource': string;
|
|
261
286
|
'pisell2.text.warnings': string;
|
|
@@ -275,6 +300,7 @@ declare const _default: {
|
|
|
275
300
|
'pisell2.text.appointment-updated': string;
|
|
276
301
|
'pisell2.text.updated': string;
|
|
277
302
|
'pisell2.text.please-create-an-appointment-first': string;
|
|
303
|
+
'pisell2.text.day': (val: number) => string;
|
|
278
304
|
'pisell2.text.min': string;
|
|
279
305
|
'pisell2.text.h': string;
|
|
280
306
|
'pisell2.text.other': string;
|
|
@@ -438,6 +464,20 @@ declare const _default: {
|
|
|
438
464
|
'pisell2.booking.info.text.create-new': string;
|
|
439
465
|
'pisell2.booking.info.text.form-agreement-yes': string;
|
|
440
466
|
'pisell2.booking.info.text.form-agreement-no': string;
|
|
467
|
+
'pisell2.text.open.items': string;
|
|
468
|
+
'pisell2.text.cart.of': (val: any) => string;
|
|
469
|
+
'pisell2.text.no.selected': string;
|
|
470
|
+
'pisell2.text.select.items': string;
|
|
471
|
+
'pisell2.text.edit-select-service': string;
|
|
472
|
+
'pisell2.text.missing.reservation.title': string;
|
|
473
|
+
'pisell2.text.missing.reservation.content': string;
|
|
474
|
+
'pisell2.text.confirm': string;
|
|
475
|
+
'pisell2.text.cancel': string;
|
|
476
|
+
'pisell2.text.change.pet.title': string;
|
|
477
|
+
'pisell2.text.change.pet.content': string;
|
|
478
|
+
'pisell2.text.change.pet.content1': string;
|
|
479
|
+
'pisell2.text.change.pet.confirm': string;
|
|
480
|
+
'pisell2.text.change.pet.cancel': string;
|
|
441
481
|
};
|
|
442
482
|
'zh-HK': {
|
|
443
483
|
'pisell2.text.refunded-amount': string;
|
|
@@ -476,6 +516,11 @@ declare const _default: {
|
|
|
476
516
|
'pisell2.text.discount': string;
|
|
477
517
|
'pisell2.text.discount-reason': string;
|
|
478
518
|
'pisell2.text.start_time': string;
|
|
519
|
+
'pisell2.text.end_time': string;
|
|
520
|
+
'pisell2.text.start_date': string;
|
|
521
|
+
'pisell2.text.end_date': string;
|
|
522
|
+
'pisell2.text.quantity': string;
|
|
523
|
+
'pisell2.text.holder': string;
|
|
479
524
|
'pisell2.text.duration': string;
|
|
480
525
|
'pisell2.text.resource': string;
|
|
481
526
|
'pisell2.text.warnings': string;
|
|
@@ -493,6 +538,7 @@ declare const _default: {
|
|
|
493
538
|
'pisell2.text.appointment-updated': string;
|
|
494
539
|
'pisell2.text.updated': string;
|
|
495
540
|
'pisell2.text.please-create-an-appointment-first': string;
|
|
541
|
+
'pisell2.text.day': (val: number) => string;
|
|
496
542
|
'pisell2.text.min': string;
|
|
497
543
|
'pisell2.text.h': string;
|
|
498
544
|
'pisell2.text.other': string;
|
|
@@ -658,6 +704,20 @@ declare const _default: {
|
|
|
658
704
|
'pisell2.booking.info.text.create-new': string;
|
|
659
705
|
'pisell2.booking.info.text.form-agreement-yes': string;
|
|
660
706
|
'pisell2.booking.info.text.form-agreement-no': string;
|
|
707
|
+
'pisell2.text.open.items': string;
|
|
708
|
+
'pisell2.text.cart.of': (val: any) => string;
|
|
709
|
+
'pisell2.text.no.selected': string;
|
|
710
|
+
'pisell2.text.select.items': string;
|
|
711
|
+
'pisell2.text.edit-select-service': string;
|
|
712
|
+
'pisell2.text.missing.reservation.title': string;
|
|
713
|
+
'pisell2.text.missing.reservation.content': string;
|
|
714
|
+
'pisell2.text.confirm': string;
|
|
715
|
+
'pisell2.text.cancel': string;
|
|
716
|
+
'pisell2.text.change.pet.title': string;
|
|
717
|
+
'pisell2.text.change.pet.content': string;
|
|
718
|
+
'pisell2.text.change.pet.content1': string;
|
|
719
|
+
'pisell2.text.change.pet.confirm': string;
|
|
720
|
+
'pisell2.text.change.pet.cancel': string;
|
|
661
721
|
};
|
|
662
722
|
};
|
|
663
723
|
export default _default;
|
|
@@ -68,6 +68,11 @@ var locales_default = {
|
|
|
68
68
|
"pisell2.text.start_time": "Start time",
|
|
69
69
|
"pisell2.text.duration": "Duration",
|
|
70
70
|
"pisell2.text.resource": "Resource",
|
|
71
|
+
"pisell2.text.end_time": "End time",
|
|
72
|
+
"pisell2.text.start_date": "Start date",
|
|
73
|
+
"pisell2.text.end_date": "End date",
|
|
74
|
+
"pisell2.text.quantity": "Quantity",
|
|
75
|
+
"pisell2.text.holder": "Holder",
|
|
71
76
|
"pisell2.text.warnings": "Warnings",
|
|
72
77
|
"pisell2.text.order-notes": "Order notes",
|
|
73
78
|
"pisell2.text.add-order-notes": "Add Order note",
|
|
@@ -83,6 +88,7 @@ var locales_default = {
|
|
|
83
88
|
"pisell2.text.updated": " updated",
|
|
84
89
|
"pisell2.text.appointment-updated": "Appointment updated",
|
|
85
90
|
"pisell2.text.please-create-an-appointment-first": "Please create an appointment first",
|
|
91
|
+
"pisell2.text.day": (val) => `${val > 1 ? "days" : "day"}`,
|
|
86
92
|
"pisell2.text.min": "min",
|
|
87
93
|
"pisell2.text.h": "h",
|
|
88
94
|
"pisell2.text.other": "Other",
|
|
@@ -273,7 +279,21 @@ var locales_default = {
|
|
|
273
279
|
"pisell2.booking.info.text.clear-all": "Clear all",
|
|
274
280
|
"pisell2.booking.info.text.create-new": "Create new",
|
|
275
281
|
"pisell2.booking.info.text.form-agreement-yes": "Yes",
|
|
276
|
-
"pisell2.booking.info.text.form-agreement-no": "No"
|
|
282
|
+
"pisell2.booking.info.text.form-agreement-no": "No",
|
|
283
|
+
"pisell2.text.open.items": "Open items",
|
|
284
|
+
"pisell2.text.cart.of": (val) => `Cart of ${val}`,
|
|
285
|
+
"pisell2.text.no.selected": "No items selected",
|
|
286
|
+
"pisell2.text.select.items": "Select items",
|
|
287
|
+
"pisell2.text.edit-select-service": "Edit items",
|
|
288
|
+
"pisell2.text.missing.reservation.title": "Missing Reservation Type",
|
|
289
|
+
"pisell2.text.missing.reservation.content": "You have not selected a reservation type, Please select one before proceeding.",
|
|
290
|
+
"pisell2.text.confirm": "Confirm",
|
|
291
|
+
"pisell2.text.cancel": "Cancel",
|
|
292
|
+
"pisell2.text.change.pet.title": "You have changed the holder information. Do you want to keep the items under their name?",
|
|
293
|
+
"pisell2.text.change.pet.content": "Selecting “Keep” will move the items to Open Items. Selecting “Discard” will clear all items under the holder’s name.",
|
|
294
|
+
"pisell2.text.change.pet.content1": "Reservation-type items cannot be added to the Open Items cart and will be removed.",
|
|
295
|
+
"pisell2.text.change.pet.confirm": "Keep (Add to open items)",
|
|
296
|
+
"pisell2.text.change.pet.cancel": "Discard (Clear items)"
|
|
277
297
|
},
|
|
278
298
|
"zh-CN": {
|
|
279
299
|
"pisell2.text.refunded-amount": "已退金额",
|
|
@@ -312,6 +332,11 @@ var locales_default = {
|
|
|
312
332
|
"pisell2.text.discount": "折扣",
|
|
313
333
|
"pisell2.text.discount-reason": "折扣原因",
|
|
314
334
|
"pisell2.text.start_time": "开始时间",
|
|
335
|
+
"pisell2.text.end_time": "结束时间",
|
|
336
|
+
"pisell2.text.start_date": "开始日期",
|
|
337
|
+
"pisell2.text.end_date": "结束日期",
|
|
338
|
+
"pisell2.text.quantity": "数量",
|
|
339
|
+
"pisell2.text.holder": "预约主体",
|
|
315
340
|
"pisell2.text.duration": "时长",
|
|
316
341
|
"pisell2.text.resource": "资源",
|
|
317
342
|
"pisell2.text.warnings": "个警告",
|
|
@@ -332,6 +357,7 @@ var locales_default = {
|
|
|
332
357
|
"pisell2.text.appointment-updated": "预约已更新",
|
|
333
358
|
"pisell2.text.updated": "已更新",
|
|
334
359
|
"pisell2.text.please-create-an-appointment-first": "请先创建预约",
|
|
360
|
+
"pisell2.text.day": (val) => "天",
|
|
335
361
|
"pisell2.text.min": "分钟",
|
|
336
362
|
"pisell2.text.h": "小时",
|
|
337
363
|
"pisell2.text.other": "未分类",
|
|
@@ -519,7 +545,21 @@ var locales_default = {
|
|
|
519
545
|
"pisell2.booking.info.text.clear-all": "清空",
|
|
520
546
|
"pisell2.booking.info.text.create-new": "新建",
|
|
521
547
|
"pisell2.booking.info.text.form-agreement-yes": "是",
|
|
522
|
-
"pisell2.booking.info.text.form-agreement-no": "否"
|
|
548
|
+
"pisell2.booking.info.text.form-agreement-no": "否",
|
|
549
|
+
"pisell2.text.open.items": "公共购物车",
|
|
550
|
+
"pisell2.text.cart.of": (val) => `${val}的购物车`,
|
|
551
|
+
"pisell2.text.no.selected": "未选择任何项目",
|
|
552
|
+
"pisell2.text.select.items": "选择项目",
|
|
553
|
+
"pisell2.text.edit-select-service": "编辑项目",
|
|
554
|
+
"pisell2.text.missing.reservation.title": "缺少预约类型",
|
|
555
|
+
"pisell2.text.missing.reservation.content": "您尚未选择预约类型,请在继续操作前选择。",
|
|
556
|
+
"pisell2.text.confirm": "确定",
|
|
557
|
+
"pisell2.text.cancel": "取消",
|
|
558
|
+
"pisell2.text.change.pet.title": "您已变更持有人信息,是否保留该持有人名下的商品?",
|
|
559
|
+
"pisell2.text.change.pet.content": "选择“保留”将商品添加到未分配商品(公共购物车)中;选择“不保留”将清空该持有人名下的所有商品。",
|
|
560
|
+
"pisell2.text.change.pet.content1": "预约类商品无法添加到公共购物车,将会被删除。",
|
|
561
|
+
"pisell2.text.change.pet.confirm": "保留(添加到未分配中)",
|
|
562
|
+
"pisell2.text.change.pet.cancel": "不保留(清空商品)"
|
|
523
563
|
},
|
|
524
564
|
"zh-HK": {
|
|
525
565
|
"pisell2.text.refunded-amount": "已退金額",
|
|
@@ -558,6 +598,11 @@ var locales_default = {
|
|
|
558
598
|
"pisell2.text.discount": "折扣",
|
|
559
599
|
"pisell2.text.discount-reason": "折扣原因",
|
|
560
600
|
"pisell2.text.start_time": "開始時間",
|
|
601
|
+
"pisell2.text.end_time": "結束時間",
|
|
602
|
+
"pisell2.text.start_date": "開始日期",
|
|
603
|
+
"pisell2.text.end_date": "結束日期",
|
|
604
|
+
"pisell2.text.quantity": "數量",
|
|
605
|
+
"pisell2.text.holder": "預約主體",
|
|
561
606
|
"pisell2.text.duration": "時長",
|
|
562
607
|
"pisell2.text.resource": "資源",
|
|
563
608
|
"pisell2.text.warnings": "個警告",
|
|
@@ -576,6 +621,7 @@ var locales_default = {
|
|
|
576
621
|
"pisell2.text.appointment-updated": "預約已更新",
|
|
577
622
|
"pisell2.text.updated": "已更新",
|
|
578
623
|
"pisell2.text.please-create-an-appointment-first": "請先創建預約",
|
|
624
|
+
"pisell2.text.day": (val) => "天",
|
|
579
625
|
"pisell2.text.min": "分鍾",
|
|
580
626
|
"pisell2.text.h": "小時",
|
|
581
627
|
"pisell2.text.other": "未分類",
|
|
@@ -765,6 +811,20 @@ var locales_default = {
|
|
|
765
811
|
"pisell2.booking.info.text.clear-all": "清空",
|
|
766
812
|
"pisell2.booking.info.text.create-new": "新建",
|
|
767
813
|
"pisell2.booking.info.text.form-agreement-yes": "是",
|
|
768
|
-
"pisell2.booking.info.text.form-agreement-no": "否"
|
|
814
|
+
"pisell2.booking.info.text.form-agreement-no": "否",
|
|
815
|
+
"pisell2.text.open.items": "公共購物車",
|
|
816
|
+
"pisell2.text.cart.of": (val) => `${val}的購物車`,
|
|
817
|
+
"pisell2.text.no.selected": "未選擇任何項目",
|
|
818
|
+
"pisell2.text.select.items": "選擇項目",
|
|
819
|
+
"pisell2.text.edit-select-service": "編輯項目",
|
|
820
|
+
"pisell2.text.missing.reservation.title": "缺少預約類型",
|
|
821
|
+
"pisell2.text.missing.reservation.content": "您尚未選擇預約類型,請在繼續操作前選擇。",
|
|
822
|
+
"pisell2.text.confirm": "確定",
|
|
823
|
+
"pisell2.text.cancel": "取消",
|
|
824
|
+
"pisell2.text.change.pet.title": "您已變更持有人信息,是否保留該持有人名下的商品?",
|
|
825
|
+
"pisell2.text.change.pet.content": "選擇“保留”將商品添加到未分配商品(公共購物車)中;選擇“不保留”將清空該持有人名下的所有商品。",
|
|
826
|
+
"pisell2.text.change.pet.content1": "預約類商品無法添加到公共購物車,將會被刪除。",
|
|
827
|
+
"pisell2.text.change.pet.confirm": "保留(添加到未分配中)",
|
|
828
|
+
"pisell2.text.change.pet.cancel": "不保留(清空商品)"
|
|
769
829
|
}
|
|
770
830
|
};
|