@pisell/private-materials 3.0.98 → 3.0.99
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/booking/info/service/editService/index.js +12 -0
- package/lib/components/booking/info/service/editService/index.js +8 -0
- package/package.json +3 -3
|
@@ -34,6 +34,7 @@ import { getErrorList, getServiceTimes, deleteCacheParams } from "../../../utils
|
|
|
34
34
|
import Like from "../like";
|
|
35
35
|
import { getNoResource } from "../../../mock";
|
|
36
36
|
import { formatResources, getDurationProps, getFlexibleOption, getTimeObj } from "../addService/utils";
|
|
37
|
+
var submitLock = false;
|
|
37
38
|
var Info = function Info() {
|
|
38
39
|
var _state$bookingConfig2, _state$bookingConfig3, _state$bookingConfig4, _state$service$cacheI6, _state$service3, _state$service3$cache, _state$service5, _state$service5$cache, _state$service5$cache2, _state$service5$cache3, _window$BaseMaterials, _state$service$cacheI7, _state$service6, _state$service6$cache, _state$service6$cache2, _state$service$cacheI8, _state$service$cacheI9, _state$service$cacheI10, _state$service$cacheI11, _state$bookingConfig5, _state$bookingConfig6, _state$bookingConfig7, _state$bookingConfig8;
|
|
39
40
|
var _Form$useForm = Form.useForm(),
|
|
@@ -324,6 +325,7 @@ var Info = function Info() {
|
|
|
324
325
|
discount: discount
|
|
325
326
|
});
|
|
326
327
|
};
|
|
328
|
+
|
|
327
329
|
/**
|
|
328
330
|
* @title: 提交,
|
|
329
331
|
* @description:
|
|
@@ -334,6 +336,16 @@ var Info = function Info() {
|
|
|
334
336
|
*/
|
|
335
337
|
var onFinish = function onFinish(values) {
|
|
336
338
|
var _currentResource$_ext;
|
|
339
|
+
// 防止多次提交, 增加锁
|
|
340
|
+
if (submitLock) {
|
|
341
|
+
return;
|
|
342
|
+
}
|
|
343
|
+
submitLock = true;
|
|
344
|
+
|
|
345
|
+
// 500毫秒后解除
|
|
346
|
+
setTimeout(function () {
|
|
347
|
+
submitLock = false;
|
|
348
|
+
}, 500);
|
|
337
349
|
var _list = _toConsumableArray(state.service.value);
|
|
338
350
|
var _item = _objectSpread(_objectSpread({}, state.service.cacheItem), {}, {
|
|
339
351
|
autoClose: false,
|
|
@@ -47,6 +47,7 @@ var import_utils3 = require("../../../utils");
|
|
|
47
47
|
var import_like = __toESM(require("../like"));
|
|
48
48
|
var import_mock = require("../../../mock");
|
|
49
49
|
var import_utils4 = require("../addService/utils");
|
|
50
|
+
var submitLock = false;
|
|
50
51
|
var Info = () => {
|
|
51
52
|
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w;
|
|
52
53
|
const [form] = import_antd.Form.useForm();
|
|
@@ -214,6 +215,13 @@ var Info = () => {
|
|
|
214
215
|
};
|
|
215
216
|
const onFinish = (values) => {
|
|
216
217
|
var _a2;
|
|
218
|
+
if (submitLock) {
|
|
219
|
+
return;
|
|
220
|
+
}
|
|
221
|
+
submitLock = true;
|
|
222
|
+
setTimeout(() => {
|
|
223
|
+
submitLock = false;
|
|
224
|
+
}, 500);
|
|
217
225
|
let _list = [...state.service.value];
|
|
218
226
|
let _item = {
|
|
219
227
|
...state.service.cacheItem,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/private-materials",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.99",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -59,9 +59,9 @@
|
|
|
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.27",
|
|
62
63
|
"@pisell/date-picker": "1.0.91",
|
|
63
|
-
"@pisell/icon": "0.0.11"
|
|
64
|
-
"@pisell/utils": "1.0.27"
|
|
64
|
+
"@pisell/icon": "0.0.11"
|
|
65
65
|
},
|
|
66
66
|
"peerDependencies": {
|
|
67
67
|
"react": "^18.0.0",
|