@pisell/private-materials 3.0.167 → 3.0.169
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 +2 -2
- package/build/lowcode/view.js +2 -2
- package/es/components/booking/components/footer/utils.js +1 -1
- package/es/components/booking/info2/service/addService/utils.js +3 -1
- package/lib/components/booking/components/footer/utils.js +1 -1
- package/lib/components/booking/info2/service/addService/utils.js +3 -1
- package/package.json +3 -3
|
@@ -177,7 +177,7 @@ var formatBookings = function formatBookings(data) {
|
|
|
177
177
|
"duration": flexibleObj.getValue(item._extend.duration),
|
|
178
178
|
"number": item._extend.capacity ? getSumCapacity({
|
|
179
179
|
cacheItem: item
|
|
180
|
-
}) : 1,
|
|
180
|
+
}) : item._extend.number || 1,
|
|
181
181
|
"resources": formatResource(item),
|
|
182
182
|
"metadata": item._extend.capacity ? {
|
|
183
183
|
capacity: item._extend.capacity
|
|
@@ -471,7 +471,9 @@ export var getProductExtend = function getProductExtend(_ref8) {
|
|
|
471
471
|
currentResource: _cacheItem._extend.resource,
|
|
472
472
|
state: state
|
|
473
473
|
});
|
|
474
|
-
_cacheItem
|
|
474
|
+
if (getDuration(_cacheItem === null || _cacheItem === void 0 ? void 0 : _cacheItem.duration) === 'flexible') {
|
|
475
|
+
_cacheItem._extend.duration = _cacheItem._data.timeObj.durationSlicesBasedOnTime[0].value;
|
|
476
|
+
}
|
|
475
477
|
}
|
|
476
478
|
|
|
477
479
|
// 如果只有一种类型的资源 & 单选,还按照之前的逻辑处理:自动选中,不会打开Edit service抽屉。
|
|
@@ -160,7 +160,7 @@ var formatBookings = (data) => {
|
|
|
160
160
|
"end_date": end_date,
|
|
161
161
|
"start_date": start_date,
|
|
162
162
|
"duration": import_utils.flexibleObj.getValue(item._extend.duration),
|
|
163
|
-
"number": item._extend.capacity ? (0, import_utilsByBooking.getSumCapacity)({ cacheItem: item }) : 1,
|
|
163
|
+
"number": item._extend.capacity ? (0, import_utilsByBooking.getSumCapacity)({ cacheItem: item }) : item._extend.number || 1,
|
|
164
164
|
"resources": formatResource(item),
|
|
165
165
|
"metadata": item._extend.capacity ? {
|
|
166
166
|
capacity: item._extend.capacity
|
|
@@ -331,7 +331,9 @@ var getProductExtend = ({ cacheItem, state }) => {
|
|
|
331
331
|
currentResource: _cacheItem._extend.resource,
|
|
332
332
|
state
|
|
333
333
|
});
|
|
334
|
-
_cacheItem.
|
|
334
|
+
if ((0, import_utils.getDuration)(_cacheItem == null ? void 0 : _cacheItem.duration) === "flexible") {
|
|
335
|
+
_cacheItem._extend.duration = _cacheItem._data.timeObj.durationSlicesBasedOnTime[0].value;
|
|
336
|
+
}
|
|
335
337
|
}
|
|
336
338
|
_cacheItem.autoClose = getIsAutoClose(_cacheItem);
|
|
337
339
|
if (_cacheItem._extend.bundle_edit !== void 0) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/private-materials",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.169",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -61,8 +61,8 @@
|
|
|
61
61
|
"decimal.js": "^10.4.3",
|
|
62
62
|
"@pisell/utils": "1.0.42",
|
|
63
63
|
"@pisell/materials": "3.0.50",
|
|
64
|
-
"@pisell/
|
|
65
|
-
"@pisell/
|
|
64
|
+
"@pisell/date-picker": "1.0.100",
|
|
65
|
+
"@pisell/icon": "0.0.11"
|
|
66
66
|
},
|
|
67
67
|
"peerDependencies": {
|
|
68
68
|
"react": "^18.0.0",
|