@bit-sun/business-component 4.2.1-alpha.8-aiwei → 4.2.1-alpha.9-aiwei
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/dist/components/Business/AddSelectBusiness/index.d.ts +3 -4
- package/dist/components/Business/BsLayouts/Components/AllFunc/drawContent.d.ts +1 -2
- package/dist/components/Business/BsLayouts/Components/ChooseStore/index.d.ts +1 -2
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.d.ts +1 -1
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/leftTree.d.ts +1 -1
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/rightTree.d.ts +2 -2
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/DrawContent.d.ts +1 -2
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/customMenuHeader.d.ts +1 -2
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/index.d.ts +1 -1
- package/dist/components/Business/BsLayouts/Components/GlobalHeader/index.d.ts +1 -2
- package/dist/components/Business/BsLayouts/Components/RightContent/LoginModal.d.ts +1 -2
- package/dist/components/Business/BsLayouts/index.d.ts +1 -1
- package/dist/components/Business/BsSulaQueryTable/SearchItemSetting.d.ts +5 -5
- package/dist/components/Business/BsSulaQueryTable/index.d.ts +1 -2
- package/dist/components/Business/BsSulaQueryTable/setting.d.ts +6 -6
- package/dist/components/Business/BsSulaQueryTable/utils.d.ts +14 -15
- package/dist/components/Business/CommodityEntry/index.d.ts +1 -2
- package/dist/components/Business/CommonAlert/index.d.ts +1 -2
- package/dist/components/Business/CommonGuideWrapper/index.d.ts +3 -3
- package/dist/components/Business/DetailPageWrapper/index.d.ts +11 -12
- package/dist/components/Business/HomePageWrapper/index.d.ts +1 -2
- package/dist/components/Business/ItemPropertySelector/index.d.ts +1 -2
- package/dist/components/Business/JsonQueryTable/components/FieldsModifyModal.d.ts +1 -2
- package/dist/components/Business/JsonQueryTable/components/FieldsSettingsTable.d.ts +1 -2
- package/dist/components/Business/JsonQueryTable/components/Formula.d.ts +1 -2
- package/dist/components/Business/JsonQueryTable/components/MaintainOptions.d.ts +1 -2
- package/dist/components/Business/JsonQueryTable/drawer/index.d.ts +1 -2
- package/dist/components/Business/PropertyModal/index.d.ts +1 -2
- package/dist/components/Business/PropertyModal/propertyGroup.d.ts +1 -1
- package/dist/components/Business/SearchSelect/index.d.ts +1 -1
- package/dist/components/Business/StateFlow/index.d.ts +1 -2
- package/dist/components/Business/TreeSearchSelect/index.d.ts +1 -1
- package/dist/components/Business/columnSettingTable/columnSetting.d.ts +6 -6
- package/dist/components/Business/columnSettingTable/components/TableSumComponent.d.ts +1 -2
- package/dist/components/Business/columnSettingTable/index.d.ts +3 -3
- package/dist/components/Business/columnSettingTable/sulaSettingTable.d.ts +3 -3
- package/dist/components/Business/columnSettingTable/utils.d.ts +1 -2
- package/dist/components/Business/moreTreeTable/FixedScrollBar.d.ts +1 -1
- package/dist/components/Common/ParagraphCopier/index.d.ts +1 -1
- package/dist/components/Common/Section/index.d.ts +1 -1
- package/dist/components/Functional/AddSelect/index.d.ts +1 -2
- package/dist/components/Functional/AuthButton/index.d.ts +1 -2
- package/dist/components/Functional/DataImport/index.d.ts +3 -3
- package/dist/components/Functional/DataValidation/index.d.ts +4 -4
- package/dist/components/Functional/ExportFunctions/ExportIcon/index.d.ts +1 -2
- package/dist/components/Functional/QueryMutipleInput/index.d.ts +1 -2
- package/dist/components/Functional/QueryMutipleSelect/index.d.ts +1 -2
- package/dist/components/Functional/SearchSelect/index.d.ts +1 -1
- package/dist/components/Functional/SearchSelect/utils.d.ts +2 -3
- package/dist/components/Functional/TreeSearchSelect/index.d.ts +1 -2
- package/dist/components/Solution/RuleComponent/CustomPlugin/CustomSelector/CustomSelectorModal.d.ts +1 -1
- package/dist/components/Solution/RuleComponent/CustomPlugin/CustomSelector/index.d.ts +1 -2
- package/dist/components/Solution/RuleComponent/Formula.d.ts +1 -2
- package/dist/components/Solution/RuleComponent/InnerSelect.d.ts +1 -2
- package/dist/components/Solution/RuleComponent/RenderCompItem.d.ts +1 -2
- package/dist/components/Solution/RuleSetter/RuleInstance.d.ts +1 -2
- package/dist/components/Solution/RuleSetter/baseRule.d.ts +1 -1
- package/dist/components/Solution/RuleSetter/index.d.ts +1 -1
- package/dist/index.esm.js +767 -1022
- package/dist/index.js +767 -1022
- package/dist/plugin/TableColumnSetting/index.d.ts +5 -5
- package/dist/utils/TableUtils.d.ts +18 -19
- package/package.json +1 -1
- package/src/components/Business/SearchSelect/BusinessUtils.tsx +7 -8
package/dist/index.js
CHANGED
|
@@ -211,8 +211,8 @@ function _objectWithoutProperties(e, t) {
|
|
|
211
211
|
r,
|
|
212
212
|
i = _objectWithoutPropertiesLoose(e, t);
|
|
213
213
|
if (Object.getOwnPropertySymbols) {
|
|
214
|
-
var
|
|
215
|
-
for (r = 0; r <
|
|
214
|
+
var n = Object.getOwnPropertySymbols(e);
|
|
215
|
+
for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
216
216
|
}
|
|
217
217
|
return i;
|
|
218
218
|
}
|
|
@@ -220,7 +220,7 @@ function _objectWithoutPropertiesLoose(r, e) {
|
|
|
220
220
|
if (null == r) return {};
|
|
221
221
|
var t = {};
|
|
222
222
|
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
223
|
-
if (e.
|
|
223
|
+
if (-1 !== e.indexOf(n)) continue;
|
|
224
224
|
t[n] = r[n];
|
|
225
225
|
}
|
|
226
226
|
return t;
|
|
@@ -230,306 +230,113 @@ function _possibleConstructorReturn(t, e) {
|
|
|
230
230
|
if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
|
|
231
231
|
return _assertThisInitialized(t);
|
|
232
232
|
}
|
|
233
|
-
function
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
233
|
+
function _regenerator() {
|
|
234
|
+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
|
|
235
|
+
var e,
|
|
236
|
+
t,
|
|
237
|
+
r = "function" == typeof Symbol ? Symbol : {},
|
|
238
|
+
n = r.iterator || "@@iterator",
|
|
239
|
+
o = r.toStringTag || "@@toStringTag";
|
|
240
|
+
function i(r, n, o, i) {
|
|
241
|
+
var c = n && n.prototype instanceof Generator ? n : Generator,
|
|
242
|
+
u = Object.create(c.prototype);
|
|
243
|
+
return _regeneratorDefine(u, "_invoke", function (r, n, o) {
|
|
244
|
+
var i,
|
|
245
|
+
c,
|
|
246
|
+
u,
|
|
247
|
+
f = 0,
|
|
248
|
+
p = o || [],
|
|
249
|
+
y = !1,
|
|
250
|
+
G = {
|
|
251
|
+
p: 0,
|
|
252
|
+
n: 0,
|
|
253
|
+
v: e,
|
|
254
|
+
a: d,
|
|
255
|
+
f: d.bind(e, 4),
|
|
256
|
+
d: function (t, r) {
|
|
257
|
+
return i = t, c = 0, u = e, G.n = r, a;
|
|
258
|
+
}
|
|
259
|
+
};
|
|
260
|
+
function d(r, n) {
|
|
261
|
+
for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) {
|
|
262
|
+
var o,
|
|
263
|
+
i = p[t],
|
|
264
|
+
d = G.p,
|
|
265
|
+
l = i[2];
|
|
266
|
+
r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0));
|
|
267
|
+
}
|
|
268
|
+
if (o || r > 1) return a;
|
|
269
|
+
throw y = !0, n;
|
|
270
|
+
}
|
|
271
|
+
return function (o, p, l) {
|
|
272
|
+
if (f > 1) throw TypeError("Generator is already running");
|
|
273
|
+
for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) {
|
|
274
|
+
i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u);
|
|
275
|
+
try {
|
|
276
|
+
if (f = 2, i) {
|
|
277
|
+
if (c || (o = "next"), t = i[o]) {
|
|
278
|
+
if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object");
|
|
279
|
+
if (!t.done) return t;
|
|
280
|
+
u = t.value, c < 2 && (c = 0);
|
|
281
|
+
} else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1);
|
|
282
|
+
i = e;
|
|
283
|
+
} else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break;
|
|
284
|
+
} catch (t) {
|
|
285
|
+
i = e, c = 1, u = t;
|
|
286
|
+
} finally {
|
|
287
|
+
f = 1;
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
return {
|
|
291
|
+
value: t,
|
|
292
|
+
done: y
|
|
293
|
+
};
|
|
281
294
|
};
|
|
282
|
-
}
|
|
295
|
+
}(r, o, i), !0), u;
|
|
283
296
|
}
|
|
284
|
-
|
|
285
|
-
var h = "suspendedStart",
|
|
286
|
-
l = "suspendedYield",
|
|
287
|
-
f = "executing",
|
|
288
|
-
s = "completed",
|
|
289
|
-
y = {};
|
|
297
|
+
var a = {};
|
|
290
298
|
function Generator() {}
|
|
291
299
|
function GeneratorFunction() {}
|
|
292
300
|
function GeneratorFunctionPrototype() {}
|
|
293
|
-
|
|
294
|
-
|
|
301
|
+
t = Object.getPrototypeOf;
|
|
302
|
+
var c = [][n] ? t(t([][n]())) : (_regeneratorDefine(t = {}, n, function () {
|
|
303
|
+
return this;
|
|
304
|
+
}), t),
|
|
305
|
+
u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c);
|
|
306
|
+
function f(e) {
|
|
307
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e;
|
|
308
|
+
}
|
|
309
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine(u), _regeneratorDefine(u, o, "Generator"), _regeneratorDefine(u, n, function () {
|
|
295
310
|
return this;
|
|
296
|
-
})
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
v && v !== r && n.call(v, a) && (p = v);
|
|
300
|
-
var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
|
|
301
|
-
function defineIteratorMethods(t) {
|
|
302
|
-
["next", "throw", "return"].forEach(function (e) {
|
|
303
|
-
define(t, e, function (t) {
|
|
304
|
-
return this._invoke(e, t);
|
|
305
|
-
});
|
|
306
|
-
});
|
|
307
|
-
}
|
|
308
|
-
function AsyncIterator(t, e) {
|
|
309
|
-
function invoke(r, o, i, a) {
|
|
310
|
-
var c = tryCatch(t[r], t, o);
|
|
311
|
-
if ("throw" !== c.type) {
|
|
312
|
-
var u = c.arg,
|
|
313
|
-
h = u.value;
|
|
314
|
-
return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
|
|
315
|
-
invoke("next", t, i, a);
|
|
316
|
-
}, function (t) {
|
|
317
|
-
invoke("throw", t, i, a);
|
|
318
|
-
}) : e.resolve(h).then(function (t) {
|
|
319
|
-
u.value = t, i(u);
|
|
320
|
-
}, function (t) {
|
|
321
|
-
return invoke("throw", t, i, a);
|
|
322
|
-
});
|
|
323
|
-
}
|
|
324
|
-
a(c.arg);
|
|
325
|
-
}
|
|
326
|
-
var r;
|
|
327
|
-
o(this, "_invoke", {
|
|
328
|
-
value: function (t, n) {
|
|
329
|
-
function callInvokeWithMethodAndArg() {
|
|
330
|
-
return new e(function (e, r) {
|
|
331
|
-
invoke(t, n, e, r);
|
|
332
|
-
});
|
|
333
|
-
}
|
|
334
|
-
return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
335
|
-
}
|
|
336
|
-
});
|
|
337
|
-
}
|
|
338
|
-
function makeInvokeMethod(e, r, n) {
|
|
339
|
-
var o = h;
|
|
340
|
-
return function (i, a) {
|
|
341
|
-
if (o === f) throw Error("Generator is already running");
|
|
342
|
-
if (o === s) {
|
|
343
|
-
if ("throw" === i) throw a;
|
|
344
|
-
return {
|
|
345
|
-
value: t,
|
|
346
|
-
done: !0
|
|
347
|
-
};
|
|
348
|
-
}
|
|
349
|
-
for (n.method = i, n.arg = a;;) {
|
|
350
|
-
var c = n.delegate;
|
|
351
|
-
if (c) {
|
|
352
|
-
var u = maybeInvokeDelegate(c, n);
|
|
353
|
-
if (u) {
|
|
354
|
-
if (u === y) continue;
|
|
355
|
-
return u;
|
|
356
|
-
}
|
|
357
|
-
}
|
|
358
|
-
if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
|
|
359
|
-
if (o === h) throw o = s, n.arg;
|
|
360
|
-
n.dispatchException(n.arg);
|
|
361
|
-
} else "return" === n.method && n.abrupt("return", n.arg);
|
|
362
|
-
o = f;
|
|
363
|
-
var p = tryCatch(e, r, n);
|
|
364
|
-
if ("normal" === p.type) {
|
|
365
|
-
if (o = n.done ? s : l, p.arg === y) continue;
|
|
366
|
-
return {
|
|
367
|
-
value: p.arg,
|
|
368
|
-
done: n.done
|
|
369
|
-
};
|
|
370
|
-
}
|
|
371
|
-
"throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
|
|
372
|
-
}
|
|
373
|
-
};
|
|
374
|
-
}
|
|
375
|
-
function maybeInvokeDelegate(e, r) {
|
|
376
|
-
var n = r.method,
|
|
377
|
-
o = e.iterator[n];
|
|
378
|
-
if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
|
|
379
|
-
var i = tryCatch(o, e.iterator, r.arg);
|
|
380
|
-
if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
|
|
381
|
-
var a = i.arg;
|
|
382
|
-
return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
|
|
383
|
-
}
|
|
384
|
-
function pushTryEntry(t) {
|
|
385
|
-
var e = {
|
|
386
|
-
tryLoc: t[0]
|
|
387
|
-
};
|
|
388
|
-
1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
|
|
389
|
-
}
|
|
390
|
-
function resetTryEntry(t) {
|
|
391
|
-
var e = t.completion || {};
|
|
392
|
-
e.type = "normal", delete e.arg, t.completion = e;
|
|
393
|
-
}
|
|
394
|
-
function Context(t) {
|
|
395
|
-
this.tryEntries = [{
|
|
396
|
-
tryLoc: "root"
|
|
397
|
-
}], t.forEach(pushTryEntry, this), this.reset(!0);
|
|
398
|
-
}
|
|
399
|
-
function values(e) {
|
|
400
|
-
if (e || "" === e) {
|
|
401
|
-
var r = e[a];
|
|
402
|
-
if (r) return r.call(e);
|
|
403
|
-
if ("function" == typeof e.next) return e;
|
|
404
|
-
if (!isNaN(e.length)) {
|
|
405
|
-
var o = -1,
|
|
406
|
-
i = function next() {
|
|
407
|
-
for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
|
|
408
|
-
return next.value = t, next.done = !0, next;
|
|
409
|
-
};
|
|
410
|
-
return i.next = i;
|
|
411
|
-
}
|
|
412
|
-
}
|
|
413
|
-
throw new TypeError(typeof e + " is not iterable");
|
|
414
|
-
}
|
|
415
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
|
|
416
|
-
value: GeneratorFunctionPrototype,
|
|
417
|
-
configurable: !0
|
|
418
|
-
}), o(GeneratorFunctionPrototype, "constructor", {
|
|
419
|
-
value: GeneratorFunction,
|
|
420
|
-
configurable: !0
|
|
421
|
-
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
|
|
422
|
-
var e = "function" == typeof t && t.constructor;
|
|
423
|
-
return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
|
|
424
|
-
}, e.mark = function (t) {
|
|
425
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
|
|
426
|
-
}, e.awrap = function (t) {
|
|
311
|
+
}), _regeneratorDefine(u, "toString", function () {
|
|
312
|
+
return "[object Generator]";
|
|
313
|
+
}), (_regenerator = function () {
|
|
427
314
|
return {
|
|
428
|
-
|
|
315
|
+
w: i,
|
|
316
|
+
m: f
|
|
429
317
|
};
|
|
430
|
-
}
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
}
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
r = [];
|
|
445
|
-
for (var n in e) r.push(n);
|
|
446
|
-
return r.reverse(), function next() {
|
|
447
|
-
for (; r.length;) {
|
|
448
|
-
var t = r.pop();
|
|
449
|
-
if (t in e) return next.value = t, next.done = !1, next;
|
|
450
|
-
}
|
|
451
|
-
return next.done = !0, next;
|
|
452
|
-
};
|
|
453
|
-
}, e.values = values, Context.prototype = {
|
|
454
|
-
constructor: Context,
|
|
455
|
-
reset: function (e) {
|
|
456
|
-
if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
|
|
457
|
-
},
|
|
458
|
-
stop: function () {
|
|
459
|
-
this.done = !0;
|
|
460
|
-
var t = this.tryEntries[0].completion;
|
|
461
|
-
if ("throw" === t.type) throw t.arg;
|
|
462
|
-
return this.rval;
|
|
463
|
-
},
|
|
464
|
-
dispatchException: function (e) {
|
|
465
|
-
if (this.done) throw e;
|
|
466
|
-
var r = this;
|
|
467
|
-
function handle(n, o) {
|
|
468
|
-
return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
|
|
469
|
-
}
|
|
470
|
-
for (var o = this.tryEntries.length - 1; o >= 0; --o) {
|
|
471
|
-
var i = this.tryEntries[o],
|
|
472
|
-
a = i.completion;
|
|
473
|
-
if ("root" === i.tryLoc) return handle("end");
|
|
474
|
-
if (i.tryLoc <= this.prev) {
|
|
475
|
-
var c = n.call(i, "catchLoc"),
|
|
476
|
-
u = n.call(i, "finallyLoc");
|
|
477
|
-
if (c && u) {
|
|
478
|
-
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
479
|
-
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
480
|
-
} else if (c) {
|
|
481
|
-
if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
|
|
482
|
-
} else {
|
|
483
|
-
if (!u) throw Error("try statement without catch or finally");
|
|
484
|
-
if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
|
|
485
|
-
}
|
|
486
|
-
}
|
|
487
|
-
}
|
|
488
|
-
},
|
|
489
|
-
abrupt: function (t, e) {
|
|
490
|
-
for (var r = this.tryEntries.length - 1; r >= 0; --r) {
|
|
491
|
-
var o = this.tryEntries[r];
|
|
492
|
-
if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
|
|
493
|
-
var i = o;
|
|
494
|
-
break;
|
|
495
|
-
}
|
|
496
|
-
}
|
|
497
|
-
i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
|
|
498
|
-
var a = i ? i.completion : {};
|
|
499
|
-
return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
|
|
500
|
-
},
|
|
501
|
-
complete: function (t, e) {
|
|
502
|
-
if ("throw" === t.type) throw t.arg;
|
|
503
|
-
return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
|
|
504
|
-
},
|
|
505
|
-
finish: function (t) {
|
|
506
|
-
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
507
|
-
var r = this.tryEntries[e];
|
|
508
|
-
if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
|
|
509
|
-
}
|
|
510
|
-
},
|
|
511
|
-
catch: function (t) {
|
|
512
|
-
for (var e = this.tryEntries.length - 1; e >= 0; --e) {
|
|
513
|
-
var r = this.tryEntries[e];
|
|
514
|
-
if (r.tryLoc === t) {
|
|
515
|
-
var n = r.completion;
|
|
516
|
-
if ("throw" === n.type) {
|
|
517
|
-
var o = n.arg;
|
|
518
|
-
resetTryEntry(r);
|
|
519
|
-
}
|
|
520
|
-
return o;
|
|
521
|
-
}
|
|
522
|
-
}
|
|
523
|
-
throw Error("illegal catch attempt");
|
|
524
|
-
},
|
|
525
|
-
delegateYield: function (e, r, n) {
|
|
526
|
-
return this.delegate = {
|
|
527
|
-
iterator: values(e),
|
|
528
|
-
resultName: r,
|
|
529
|
-
nextLoc: n
|
|
530
|
-
}, "next" === this.method && (this.arg = t), y;
|
|
318
|
+
})();
|
|
319
|
+
}
|
|
320
|
+
function _regeneratorDefine(e, r, n, t) {
|
|
321
|
+
var i = Object.defineProperty;
|
|
322
|
+
try {
|
|
323
|
+
i({}, "", {});
|
|
324
|
+
} catch (e) {
|
|
325
|
+
i = 0;
|
|
326
|
+
}
|
|
327
|
+
_regeneratorDefine = function (e, r, n, t) {
|
|
328
|
+
function o(r, n) {
|
|
329
|
+
_regeneratorDefine(e, r, function (e) {
|
|
330
|
+
return this._invoke(r, n, e);
|
|
331
|
+
});
|
|
531
332
|
}
|
|
532
|
-
|
|
333
|
+
r ? i ? i(e, r, {
|
|
334
|
+
value: n,
|
|
335
|
+
enumerable: !t,
|
|
336
|
+
configurable: !t,
|
|
337
|
+
writable: !t
|
|
338
|
+
}) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2));
|
|
339
|
+
}, _regeneratorDefine(e, r, n, t);
|
|
533
340
|
}
|
|
534
341
|
function _setPrototypeOf(t, e) {
|
|
535
342
|
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
|
|
@@ -1602,22 +1409,22 @@ var parseToServe = function parseToServe(outdata, revertChart) {
|
|
|
1602
1409
|
// sheepMap是表头字段中英文映射
|
|
1603
1410
|
// sheetCount:表的数量,默认一张
|
|
1604
1411
|
var resolveFile = /*#__PURE__*/function () {
|
|
1605
|
-
var _ref3 = _asyncToGenerator(/*#__PURE__*/
|
|
1412
|
+
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(file) {
|
|
1606
1413
|
var config,
|
|
1607
1414
|
data,
|
|
1608
1415
|
_args = arguments;
|
|
1609
|
-
return
|
|
1610
|
-
while (1) switch (_context.
|
|
1416
|
+
return _regenerator().w(function (_context) {
|
|
1417
|
+
while (1) switch (_context.n) {
|
|
1611
1418
|
case 0:
|
|
1612
1419
|
config = _args.length > 1 && _args[1] !== undefined ? _args[1] : {
|
|
1613
1420
|
sheetMap: [],
|
|
1614
1421
|
sheetCount: 1
|
|
1615
1422
|
};
|
|
1616
|
-
_context.
|
|
1423
|
+
_context.n = 1;
|
|
1617
1424
|
return analyseExcelToByte(file);
|
|
1618
|
-
case
|
|
1619
|
-
data = _context.
|
|
1620
|
-
return _context.
|
|
1425
|
+
case 1:
|
|
1426
|
+
data = _context.v;
|
|
1427
|
+
return _context.a(2, new Promise(function (resolve, reject) {
|
|
1621
1428
|
var workbook = XLSX.read(data, {
|
|
1622
1429
|
type: 'binary'
|
|
1623
1430
|
});
|
|
@@ -1629,9 +1436,6 @@ var resolveFile = /*#__PURE__*/function () {
|
|
|
1629
1436
|
var outdata = parseToServe(sheetMapJsonList, config.sheetMap);
|
|
1630
1437
|
resolve(outdata);
|
|
1631
1438
|
}));
|
|
1632
|
-
case 5:
|
|
1633
|
-
case "end":
|
|
1634
|
-
return _context.stop();
|
|
1635
1439
|
}
|
|
1636
1440
|
}, _callee);
|
|
1637
1441
|
}));
|
|
@@ -1641,41 +1445,40 @@ var resolveFile = /*#__PURE__*/function () {
|
|
|
1641
1445
|
}();
|
|
1642
1446
|
//读取文件
|
|
1643
1447
|
var readerXlsxToList = /*#__PURE__*/function () {
|
|
1644
|
-
var _ref4 = _asyncToGenerator(/*#__PURE__*/
|
|
1448
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(file, fileList, uploadRef, done, otherInfo) {
|
|
1645
1449
|
var _ref5, callback, sheetMap, nowFile, data2, data;
|
|
1646
|
-
return
|
|
1647
|
-
while (1) switch (_context2.
|
|
1450
|
+
return _regenerator().w(function (_context2) {
|
|
1451
|
+
while (1) switch (_context2.n) {
|
|
1648
1452
|
case 0:
|
|
1649
1453
|
_ref5 = otherInfo || {}, callback = _ref5.callback, sheetMap = _ref5.sheetMap;
|
|
1650
1454
|
if (!(Array.isArray(fileList) && fileList.length > 0)) {
|
|
1651
|
-
_context2.
|
|
1455
|
+
_context2.n = 3;
|
|
1652
1456
|
break;
|
|
1653
1457
|
}
|
|
1654
1458
|
nowFile = fileList[fileList.length - 1]; // 阻止了默认上传file没有originFileObj了 得从fileList中去取
|
|
1655
|
-
_context2.
|
|
1459
|
+
_context2.n = 1;
|
|
1656
1460
|
return resolveFile(nowFile.originFileObj, {
|
|
1657
1461
|
sheetMap: fieldMappingReverse(sheetMap),
|
|
1658
1462
|
sheetCount: 1
|
|
1659
1463
|
});
|
|
1660
|
-
case
|
|
1661
|
-
data2 = _context2.
|
|
1464
|
+
case 1:
|
|
1465
|
+
data2 = _context2.v;
|
|
1662
1466
|
data = data2[0];
|
|
1663
1467
|
if (data.length) {
|
|
1664
|
-
_context2.
|
|
1468
|
+
_context2.n = 2;
|
|
1665
1469
|
break;
|
|
1666
1470
|
}
|
|
1667
1471
|
antd.message.error("\u8BF7\u5148\u5F55\u5165\u6570\u636E\u518D\u5BFC\u5165");
|
|
1668
|
-
return _context2.
|
|
1669
|
-
case
|
|
1472
|
+
return _context2.a(2);
|
|
1473
|
+
case 2:
|
|
1670
1474
|
if (callback) callback(data);
|
|
1671
1475
|
!callback && antd.message.success("\u5BFC\u5165\u6210\u529F");
|
|
1672
|
-
return _context2.
|
|
1673
|
-
case
|
|
1476
|
+
return _context2.a(2, data);
|
|
1477
|
+
case 3:
|
|
1674
1478
|
antd.message.error("\u8BF7\u9009\u62E9\u6587\u4EF6");
|
|
1675
|
-
return _context2.
|
|
1676
|
-
case
|
|
1677
|
-
|
|
1678
|
-
return _context2.stop();
|
|
1479
|
+
return _context2.a(2);
|
|
1480
|
+
case 4:
|
|
1481
|
+
return _context2.a(2);
|
|
1679
1482
|
}
|
|
1680
1483
|
}, _callee2);
|
|
1681
1484
|
}));
|
|
@@ -2627,17 +2430,14 @@ var requestUtil = function requestUtil(_ref) {
|
|
|
2627
2430
|
return request__default['default'](url, parms).then(handleResponseData);
|
|
2628
2431
|
};
|
|
2629
2432
|
var handleResponseData = /*#__PURE__*/function () {
|
|
2630
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/
|
|
2631
|
-
return
|
|
2632
|
-
while (1) switch (_context.
|
|
2433
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(response) {
|
|
2434
|
+
return _regenerator().w(function (_context) {
|
|
2435
|
+
while (1) switch (_context.n) {
|
|
2633
2436
|
case 0:
|
|
2634
|
-
return _context.
|
|
2437
|
+
return _context.a(2, Promise.resolve({
|
|
2635
2438
|
data: response,
|
|
2636
2439
|
status: response.status
|
|
2637
2440
|
}));
|
|
2638
|
-
case 1:
|
|
2639
|
-
case "end":
|
|
2640
|
-
return _context.stop();
|
|
2641
2441
|
}
|
|
2642
2442
|
}, _callee);
|
|
2643
2443
|
}));
|
|
@@ -3010,11 +2810,11 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
3010
2810
|
data: luckysheet.transToCellData(newData)
|
|
3011
2811
|
});
|
|
3012
2812
|
};
|
|
3013
|
-
_this.resetData = /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
2813
|
+
_this.resetData = /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
3014
2814
|
var _customerColumnsMappi;
|
|
3015
2815
|
var _this$props, validDataUrl, validDataParams, updateData, columns, isBrandAuth, _this$props$isCheckSt, isCheckStockNum, customerColumnsMapping, checkSharedValue, beforeCheckCallback, resultData, resultColumns, otherParams;
|
|
3016
|
-
return
|
|
3017
|
-
while (1) switch (_context.
|
|
2816
|
+
return _regenerator().w(function (_context) {
|
|
2817
|
+
while (1) switch (_context.n) {
|
|
3018
2818
|
case 0:
|
|
3019
2819
|
_this$props = _this.props, validDataUrl = _this$props.validDataUrl, validDataParams = _this$props.validDataParams, updateData = _this$props.updateData, columns = _this$props.columns, isBrandAuth = _this$props.isBrandAuth, _this$props$isCheckSt = _this$props.isCheckStockNum, isCheckStockNum = _this$props$isCheckSt === void 0 ? true : _this$props$isCheckSt, customerColumnsMapping = _this$props.customerColumnsMapping, checkSharedValue = _this$props.checkSharedValue, beforeCheckCallback = _this$props.beforeCheckCallback;
|
|
3020
2820
|
resultData = _this.getData().filter(function (d) {
|
|
@@ -3039,19 +2839,19 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
3039
2839
|
}
|
|
3040
2840
|
// 调用回调函数
|
|
3041
2841
|
if (!beforeCheckCallback) {
|
|
3042
|
-
_context.
|
|
2842
|
+
_context.n = 2;
|
|
3043
2843
|
break;
|
|
3044
2844
|
}
|
|
3045
|
-
_context.
|
|
2845
|
+
_context.n = 1;
|
|
3046
2846
|
return beforeCheckCallback(resultData);
|
|
3047
|
-
case
|
|
3048
|
-
resultData = _context.
|
|
2847
|
+
case 1:
|
|
2848
|
+
resultData = _context.v;
|
|
3049
2849
|
if (resultData) {
|
|
3050
|
-
_context.
|
|
2850
|
+
_context.n = 2;
|
|
3051
2851
|
break;
|
|
3052
2852
|
}
|
|
3053
|
-
return _context.
|
|
3054
|
-
case
|
|
2853
|
+
return _context.a(2);
|
|
2854
|
+
case 2:
|
|
3055
2855
|
requestUtil.post(validDataUrl, _objectSpread2(_objectSpread2(_objectSpread2({}, otherParams), validDataParams), {}, {
|
|
3056
2856
|
columns: resultColumns,
|
|
3057
2857
|
data: resultData,
|
|
@@ -3107,9 +2907,8 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
3107
2907
|
console.log(setExportData);
|
|
3108
2908
|
setExportData([123123]);
|
|
3109
2909
|
}).catch(function (err) {});
|
|
3110
|
-
case
|
|
3111
|
-
|
|
3112
|
-
return _context.stop();
|
|
2910
|
+
case 3:
|
|
2911
|
+
return _context.a(2);
|
|
3113
2912
|
}
|
|
3114
2913
|
}, _callee);
|
|
3115
2914
|
}));
|
|
@@ -4801,27 +4600,27 @@ var QueryMutipleSearchSelect = function QueryMutipleSearchSelect(_ref) {
|
|
|
4801
4600
|
popvalue = _useState8[0],
|
|
4802
4601
|
setPopValue = _useState8[1];
|
|
4803
4602
|
var _useState9 = React$1.useState([]),
|
|
4804
|
-
|
|
4805
|
-
source =
|
|
4806
|
-
setSource =
|
|
4603
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
4604
|
+
source = _useState0[0],
|
|
4605
|
+
setSource = _useState0[1];
|
|
4807
4606
|
var _useDebounceFn = ahooks.useDebounceFn(function () {
|
|
4808
4607
|
getData();
|
|
4809
4608
|
}, {
|
|
4810
4609
|
wait: 1000
|
|
4811
4610
|
}),
|
|
4812
4611
|
run = _useDebounceFn.run;
|
|
4813
|
-
var
|
|
4612
|
+
var _useState1 = React$1.useState(false),
|
|
4613
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
4614
|
+
fetching = _useState10[0],
|
|
4615
|
+
setFetching = _useState10[1];
|
|
4616
|
+
var _useState11 = React$1.useState(''),
|
|
4814
4617
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
4815
|
-
|
|
4816
|
-
|
|
4817
|
-
var _useState13 = React$1.useState(
|
|
4618
|
+
searchValue = _useState12[0],
|
|
4619
|
+
setSearchValue = _useState12[1];
|
|
4620
|
+
var _useState13 = React$1.useState(resultSourceKey),
|
|
4818
4621
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
4819
|
-
|
|
4820
|
-
|
|
4821
|
-
var _useState15 = React$1.useState(resultSourceKey),
|
|
4822
|
-
_useState16 = _slicedToArray(_useState15, 2),
|
|
4823
|
-
uniqueValue = _useState16[0],
|
|
4824
|
-
setUniqueValue = _useState16[1];
|
|
4622
|
+
uniqueValue = _useState14[0],
|
|
4623
|
+
setUniqueValue = _useState14[1];
|
|
4825
4624
|
React$1.useEffect(function () {
|
|
4826
4625
|
setPopValue(value);
|
|
4827
4626
|
onValueChange(value);
|
|
@@ -5238,21 +5037,21 @@ var PropertySelector = function PropertySelector(_ref) {
|
|
|
5238
5037
|
notCommonProperty = _useState8[0],
|
|
5239
5038
|
setNotCommonProperty = _useState8[1];
|
|
5240
5039
|
var _useState9 = React$1.useState(false),
|
|
5241
|
-
|
|
5242
|
-
visible =
|
|
5243
|
-
setVisible =
|
|
5244
|
-
var
|
|
5040
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
5041
|
+
visible = _useState0[0],
|
|
5042
|
+
setVisible = _useState0[1];
|
|
5043
|
+
var _useState1 = React$1.useState(false),
|
|
5044
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
5045
|
+
showNotCommon = _useState10[0],
|
|
5046
|
+
setShowNotCommon = _useState10[1]; // 是否展示非常用属性
|
|
5047
|
+
var _useState11 = React$1.useState([]),
|
|
5245
5048
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
5246
|
-
|
|
5247
|
-
|
|
5248
|
-
var _useState13 = React$1.useState(
|
|
5049
|
+
classifyOptionList = _useState12[0],
|
|
5050
|
+
setClassifyOptionList = _useState12[1];
|
|
5051
|
+
var _useState13 = React$1.useState('1'),
|
|
5249
5052
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
5250
|
-
|
|
5251
|
-
|
|
5252
|
-
var _useState15 = React$1.useState('1'),
|
|
5253
|
-
_useState16 = _slicedToArray(_useState15, 2),
|
|
5254
|
-
listKey = _useState16[0],
|
|
5255
|
-
setListKey = _useState16[1];
|
|
5053
|
+
listKey = _useState14[0],
|
|
5054
|
+
setListKey = _useState14[1];
|
|
5256
5055
|
React$1.useEffect(function () {
|
|
5257
5056
|
requestUtil({
|
|
5258
5057
|
url: '/items/class/withProperty?pageSize=500¤tPage=1',
|
|
@@ -5637,29 +5436,29 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5637
5436
|
scrollPage = _useState8[0],
|
|
5638
5437
|
setScrollPage = _useState8[1];
|
|
5639
5438
|
var _useState9 = React$1.useState(0),
|
|
5640
|
-
|
|
5641
|
-
itemsTotal =
|
|
5642
|
-
setItemsTotal =
|
|
5643
|
-
var
|
|
5439
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
5440
|
+
itemsTotal = _useState0[0],
|
|
5441
|
+
setItemsTotal = _useState0[1];
|
|
5442
|
+
var _useState1 = React$1.useState(false),
|
|
5443
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
5444
|
+
fetching = _useState10[0],
|
|
5445
|
+
setFetching = _useState10[1];
|
|
5446
|
+
var _useState11 = React$1.useState(''),
|
|
5644
5447
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
5645
|
-
|
|
5646
|
-
|
|
5647
|
-
var _useState13 = React$1.useState(
|
|
5448
|
+
searchValue = _useState12[0],
|
|
5449
|
+
setSearchValue = _useState12[1];
|
|
5450
|
+
var _useState13 = React$1.useState(false),
|
|
5648
5451
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
5649
|
-
|
|
5650
|
-
|
|
5651
|
-
var _useState15 = React$1.useState(
|
|
5452
|
+
isModalVisible = _useState14[0],
|
|
5453
|
+
setIsModalVisible = _useState14[1];
|
|
5454
|
+
var _useState15 = React$1.useState(initVal),
|
|
5652
5455
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
5653
|
-
|
|
5654
|
-
|
|
5655
|
-
var _useState17 = React$1.useState(
|
|
5456
|
+
popvalue = _useState16[0],
|
|
5457
|
+
setPopValue = _useState16[1];
|
|
5458
|
+
var _useState17 = React$1.useState(resultSourceKey),
|
|
5656
5459
|
_useState18 = _slicedToArray(_useState17, 2),
|
|
5657
|
-
|
|
5658
|
-
|
|
5659
|
-
var _useState19 = React$1.useState(resultSourceKey),
|
|
5660
|
-
_useState20 = _slicedToArray(_useState19, 2),
|
|
5661
|
-
uniqueValue = _useState20[0],
|
|
5662
|
-
setUniqueValue = _useState20[1];
|
|
5460
|
+
uniqueValue = _useState18[0],
|
|
5461
|
+
setUniqueValue = _useState18[1];
|
|
5663
5462
|
var _useDebounceFn = ahooks.useDebounceFn(function (v) {
|
|
5664
5463
|
// 优化搜索参数 支持传多个
|
|
5665
5464
|
var searchParams = {};
|
|
@@ -5688,58 +5487,58 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
5688
5487
|
var _Form$useForm = antd.Form.useForm(),
|
|
5689
5488
|
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
5690
5489
|
form = _Form$useForm2[0];
|
|
5490
|
+
var _useState19 = React$1.useState(true),
|
|
5491
|
+
_useState20 = _slicedToArray(_useState19, 2),
|
|
5492
|
+
collapsed = _useState20[0],
|
|
5493
|
+
setCollapsed = _useState20[1];
|
|
5691
5494
|
var _useState21 = React$1.useState(true),
|
|
5692
5495
|
_useState22 = _slicedToArray(_useState21, 2),
|
|
5693
|
-
|
|
5694
|
-
|
|
5695
|
-
var _useState23 = React$1.useState(
|
|
5496
|
+
caretLeftFlag = _useState22[0],
|
|
5497
|
+
setCaretLeftFlag = _useState22[1];
|
|
5498
|
+
var _useState23 = React$1.useState([]),
|
|
5696
5499
|
_useState24 = _slicedToArray(_useState23, 2),
|
|
5697
|
-
|
|
5698
|
-
|
|
5699
|
-
var _useState25 = React$1.useState(
|
|
5500
|
+
tableData = _useState24[0],
|
|
5501
|
+
setTableData = _useState24[1];
|
|
5502
|
+
var _useState25 = React$1.useState(tableInitPagination),
|
|
5700
5503
|
_useState26 = _slicedToArray(_useState25, 2),
|
|
5701
|
-
|
|
5702
|
-
|
|
5703
|
-
var _useState27 = React$1.useState(
|
|
5504
|
+
tablePagination = _useState26[0],
|
|
5505
|
+
setTablePagination = _useState26[1];
|
|
5506
|
+
var _useState27 = React$1.useState([]),
|
|
5704
5507
|
_useState28 = _slicedToArray(_useState27, 2),
|
|
5705
|
-
|
|
5706
|
-
|
|
5508
|
+
selectedRowKeys = _useState28[0],
|
|
5509
|
+
setSelectedRowKeys = _useState28[1];
|
|
5707
5510
|
var _useState29 = React$1.useState([]),
|
|
5708
5511
|
_useState30 = _slicedToArray(_useState29, 2),
|
|
5709
|
-
|
|
5710
|
-
|
|
5711
|
-
var _useState31 = React$1.useState(
|
|
5512
|
+
selectedRows = _useState30[0],
|
|
5513
|
+
setSelectedRows = _useState30[1];
|
|
5514
|
+
var _useState31 = React$1.useState(false),
|
|
5712
5515
|
_useState32 = _slicedToArray(_useState31, 2),
|
|
5713
|
-
|
|
5714
|
-
|
|
5516
|
+
checkedAll = _useState32[0],
|
|
5517
|
+
setCheckedAll = _useState32[1];
|
|
5715
5518
|
var _useState33 = React$1.useState(false),
|
|
5716
5519
|
_useState34 = _slicedToArray(_useState33, 2),
|
|
5717
|
-
|
|
5718
|
-
|
|
5719
|
-
var _useState35 = React$1.useState(
|
|
5520
|
+
indeterminate = _useState34[0],
|
|
5521
|
+
setIndeterminate = _useState34[1];
|
|
5522
|
+
var _useState35 = React$1.useState({}),
|
|
5720
5523
|
_useState36 = _slicedToArray(_useState35, 2),
|
|
5721
|
-
|
|
5722
|
-
|
|
5723
|
-
var _useState37 = React$1.useState(
|
|
5524
|
+
tableFormParams = _useState36[0],
|
|
5525
|
+
setTableFormParams = _useState36[1];
|
|
5526
|
+
var _useState37 = React$1.useState(false),
|
|
5724
5527
|
_useState38 = _slicedToArray(_useState37, 2),
|
|
5725
|
-
|
|
5726
|
-
|
|
5727
|
-
var _useState39 = React$1.useState(
|
|
5528
|
+
tooltipVisible = _useState38[0],
|
|
5529
|
+
setTooltipVisible = _useState38[1];
|
|
5530
|
+
var _useState39 = React$1.useState(handleTableColumns(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableColumns)),
|
|
5728
5531
|
_useState40 = _slicedToArray(_useState39, 2),
|
|
5729
|
-
|
|
5730
|
-
|
|
5731
|
-
var _useState41 = React$1.useState(
|
|
5532
|
+
tableShowColumns = _useState40[0],
|
|
5533
|
+
setTabletShowColumns = _useState40[1]; // 默认展示表头-modalTableProps?.tableColumns
|
|
5534
|
+
var _useState41 = React$1.useState(false),
|
|
5732
5535
|
_useState42 = _slicedToArray(_useState41, 2),
|
|
5733
|
-
|
|
5734
|
-
|
|
5536
|
+
confirmLoading = _useState42[0],
|
|
5537
|
+
setConfirmLoading = _useState42[1];
|
|
5735
5538
|
var _useState43 = React$1.useState(false),
|
|
5736
5539
|
_useState44 = _slicedToArray(_useState43, 2),
|
|
5737
|
-
|
|
5738
|
-
|
|
5739
|
-
var _useState45 = React$1.useState(false),
|
|
5740
|
-
_useState46 = _slicedToArray(_useState45, 2),
|
|
5741
|
-
modalSearched = _useState46[0],
|
|
5742
|
-
setModalSearched = _useState46[1];
|
|
5540
|
+
modalSearched = _useState44[0],
|
|
5541
|
+
setModalSearched = _useState44[1];
|
|
5743
5542
|
var setSelectDataSource = function setSelectDataSource(list, total) {
|
|
5744
5543
|
setItems(list);
|
|
5745
5544
|
setItemsTotal(total);
|
|
@@ -6227,7 +6026,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6227
6026
|
})) || [];
|
|
6228
6027
|
var searchList = (modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.noEmptySearchField) ? list : list === null || list === void 0 ? void 0 : list.concat(addKong);
|
|
6229
6028
|
return searchList.map(function (i, index) {
|
|
6230
|
-
var _i$field, _i$field3, _i$field5, _i$field7, _i$field9, _i$
|
|
6029
|
+
var _i$field, _i$field3, _i$field5, _i$field7, _i$field9, _i$field0, _i$field1, _i$field10, _i$field12, _i$field13;
|
|
6231
6030
|
if ((i === null || i === void 0 ? void 0 : i.type) === 'kong') return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
6232
6031
|
span: ColSpan,
|
|
6233
6032
|
key: i
|
|
@@ -6325,7 +6124,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6325
6124
|
disabled: setDisabled(i.name)
|
|
6326
6125
|
}))));
|
|
6327
6126
|
}
|
|
6328
|
-
if ((i === null || i === void 0 ? void 0 : i.type) === 'multipleQueryInput' || (i === null || i === void 0 ? void 0 : (_i$
|
|
6127
|
+
if ((i === null || i === void 0 ? void 0 : i.type) === 'multipleQueryInput' || (i === null || i === void 0 ? void 0 : (_i$field0 = i.field) === null || _i$field0 === void 0 ? void 0 : _i$field0.type) === 'multipleQueryInput') {
|
|
6329
6128
|
return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
6330
6129
|
span: ColSpan,
|
|
6331
6130
|
key: i.name
|
|
@@ -6339,7 +6138,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6339
6138
|
}
|
|
6340
6139
|
})));
|
|
6341
6140
|
}
|
|
6342
|
-
if ((i === null || i === void 0 ? void 0 : (_i$
|
|
6141
|
+
if ((i === null || i === void 0 ? void 0 : (_i$field1 = i.field) === null || _i$field1 === void 0 ? void 0 : _i$field1.type) === 'proppertySelector') {
|
|
6343
6142
|
return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
6344
6143
|
span: ColSpan,
|
|
6345
6144
|
key: i.name
|
|
@@ -6349,8 +6148,8 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6349
6148
|
key: i.name
|
|
6350
6149
|
}, /*#__PURE__*/React__default['default'].createElement(PropertySelector, null)));
|
|
6351
6150
|
}
|
|
6352
|
-
if ((i === null || i === void 0 ? void 0 : i.type) === 'itemPropertySelector' || (i === null || i === void 0 ? void 0 : (_i$
|
|
6353
|
-
var _i$
|
|
6151
|
+
if ((i === null || i === void 0 ? void 0 : i.type) === 'itemPropertySelector' || (i === null || i === void 0 ? void 0 : (_i$field10 = i.field) === null || _i$field10 === void 0 ? void 0 : _i$field10.type) === 'itemPropertySelector') {
|
|
6152
|
+
var _i$field11;
|
|
6354
6153
|
return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
6355
6154
|
span: ColSpan,
|
|
6356
6155
|
key: i.name
|
|
@@ -6363,9 +6162,9 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6363
6162
|
width: '100%'
|
|
6364
6163
|
},
|
|
6365
6164
|
placeholder: "\u8BF7\u9009\u62E9"
|
|
6366
|
-
}, i === null || i === void 0 ? void 0 : (_i$
|
|
6165
|
+
}, i === null || i === void 0 ? void 0 : (_i$field11 = i.field) === null || _i$field11 === void 0 ? void 0 : _i$field11.props))));
|
|
6367
6166
|
}
|
|
6368
|
-
if ((i === null || i === void 0 ? void 0 : (_i$
|
|
6167
|
+
if ((i === null || i === void 0 ? void 0 : (_i$field12 = i.field) === null || _i$field12 === void 0 ? void 0 : _i$field12.type) === 'multipleQuerySearchSelect') {
|
|
6369
6168
|
return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
6370
6169
|
span: ColSpan,
|
|
6371
6170
|
key: i.name
|
|
@@ -6394,7 +6193,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
6394
6193
|
placeholder: "\u8BF7\u8F93\u5165",
|
|
6395
6194
|
allowClear: true,
|
|
6396
6195
|
maxLength: 100
|
|
6397
|
-
}, i === null || i === void 0 ? void 0 : (_i$
|
|
6196
|
+
}, i === null || i === void 0 ? void 0 : (_i$field13 = i.field) === null || _i$field13 === void 0 ? void 0 : _i$field13.props), {}, {
|
|
6398
6197
|
disabled: setDisabled(i.name)
|
|
6399
6198
|
}))));
|
|
6400
6199
|
});
|
|
@@ -7733,135 +7532,132 @@ var AddSelect = function AddSelect(props) {
|
|
|
7733
7532
|
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
7734
7533
|
form = _Form$useForm2[0];
|
|
7735
7534
|
var _useState9 = React$1.useState(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableSearchForm),
|
|
7736
|
-
|
|
7737
|
-
tableSearchForm =
|
|
7738
|
-
setTableSearchForm =
|
|
7739
|
-
var
|
|
7535
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
7536
|
+
tableSearchForm = _useState0[0],
|
|
7537
|
+
setTableSearchForm = _useState0[1];
|
|
7538
|
+
var _useState1 = React$1.useState(true),
|
|
7539
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
7540
|
+
caretLeftFlag = _useState10[0],
|
|
7541
|
+
setCaretLeftFlag = _useState10[1];
|
|
7542
|
+
var _useState11 = React$1.useState([]),
|
|
7740
7543
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
7741
|
-
|
|
7742
|
-
|
|
7743
|
-
var _useState13 = React$1.useState(
|
|
7744
|
-
_useState14 = _slicedToArray(_useState13, 2),
|
|
7745
|
-
tableData = _useState14[0],
|
|
7746
|
-
setTableData = _useState14[1];
|
|
7747
|
-
var _useState15 = React$1.useState(_objectSpread2({
|
|
7544
|
+
tableData = _useState12[0],
|
|
7545
|
+
setTableData = _useState12[1];
|
|
7546
|
+
var _useState13 = React$1.useState(_objectSpread2({
|
|
7748
7547
|
total: 0,
|
|
7749
7548
|
size: "small",
|
|
7750
7549
|
current: 1,
|
|
7751
7550
|
pageSize: tableInitPageSize
|
|
7752
7551
|
}, modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.topTablePagination)),
|
|
7552
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
7553
|
+
tablePagination = _useState14[0],
|
|
7554
|
+
setTablePagination = _useState14[1];
|
|
7555
|
+
var _useState15 = React$1.useState([]),
|
|
7753
7556
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
7754
|
-
|
|
7755
|
-
|
|
7756
|
-
var _useState17 = React$1.useState(
|
|
7557
|
+
selectedRowKeys = _useState16[0],
|
|
7558
|
+
setSelectedRowKeys = _useState16[1];
|
|
7559
|
+
var _useState17 = React$1.useState({}),
|
|
7757
7560
|
_useState18 = _slicedToArray(_useState17, 2),
|
|
7758
|
-
|
|
7759
|
-
|
|
7760
|
-
var _useState19 = React$1.useState(
|
|
7561
|
+
tableFormParams = _useState18[0],
|
|
7562
|
+
setTableFormParams = _useState18[1];
|
|
7563
|
+
var _useState19 = React$1.useState(false),
|
|
7761
7564
|
_useState20 = _slicedToArray(_useState19, 2),
|
|
7762
|
-
|
|
7763
|
-
|
|
7565
|
+
confirmLoading = _useState20[0],
|
|
7566
|
+
setConfirmLoading = _useState20[1];
|
|
7764
7567
|
var _useState21 = React$1.useState(false),
|
|
7765
7568
|
_useState22 = _slicedToArray(_useState21, 2),
|
|
7766
|
-
|
|
7767
|
-
|
|
7768
|
-
var _useState23 = React$1.useState(
|
|
7569
|
+
confirmContinueLoading = _useState22[0],
|
|
7570
|
+
setConfirmContinueLoading = _useState22[1];
|
|
7571
|
+
var _useState23 = React$1.useState([]),
|
|
7769
7572
|
_useState24 = _slicedToArray(_useState23, 2),
|
|
7770
|
-
|
|
7771
|
-
|
|
7573
|
+
selectColumns = _useState24[0],
|
|
7574
|
+
setSelectColumns = _useState24[1];
|
|
7772
7575
|
var _useState25 = React$1.useState([]),
|
|
7773
7576
|
_useState26 = _slicedToArray(_useState25, 2),
|
|
7774
|
-
|
|
7775
|
-
|
|
7577
|
+
showColumns = _useState26[0],
|
|
7578
|
+
setShowColumns = _useState26[1];
|
|
7776
7579
|
var _useState27 = React$1.useState([]),
|
|
7777
7580
|
_useState28 = _slicedToArray(_useState27, 2),
|
|
7778
|
-
|
|
7779
|
-
|
|
7581
|
+
tableColumns = _useState28[0],
|
|
7582
|
+
setTableColumns = _useState28[1];
|
|
7780
7583
|
var _useState29 = React$1.useState([]),
|
|
7781
7584
|
_useState30 = _slicedToArray(_useState29, 2),
|
|
7782
|
-
|
|
7783
|
-
|
|
7784
|
-
var _useState31 = React$1.useState([]),
|
|
7785
|
-
_useState32 = _slicedToArray(_useState31, 2),
|
|
7786
|
-
showToChooseColumns = _useState32[0],
|
|
7787
|
-
setShowToChooseColumns = _useState32[1];
|
|
7585
|
+
showToChooseColumns = _useState30[0],
|
|
7586
|
+
setShowToChooseColumns = _useState30[1];
|
|
7788
7587
|
var codeToChoose = tableCodeList[0] || initTableCode[businessType][0];
|
|
7789
7588
|
var codeSelected = tableCodeList[1] || initTableCode[businessType][1];
|
|
7790
7589
|
// FIXME: 特殊业务逻辑
|
|
7791
7590
|
var checkSelectChange = /*#__PURE__*/function () {
|
|
7792
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/
|
|
7793
|
-
var result;
|
|
7794
|
-
return
|
|
7795
|
-
while (1) switch (_context.
|
|
7591
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
|
|
7592
|
+
var result, _t;
|
|
7593
|
+
return _regenerator().w(function (_context) {
|
|
7594
|
+
while (1) switch (_context.p = _context.n) {
|
|
7796
7595
|
case 0:
|
|
7797
7596
|
if (!(bType == 'skc' && tList.some(function (i) {
|
|
7798
7597
|
return i[recordKey] == recordItem[recordKey] && i[selectItem.dataIndex] == changeValue;
|
|
7799
7598
|
}))) {
|
|
7800
|
-
_context.
|
|
7599
|
+
_context.n = 1;
|
|
7801
7600
|
break;
|
|
7802
7601
|
}
|
|
7803
7602
|
antd.message.warning('相同skc配码不可设置相同哦');
|
|
7804
|
-
return _context.
|
|
7805
|
-
case
|
|
7603
|
+
return _context.a(2, false);
|
|
7604
|
+
case 1:
|
|
7806
7605
|
if (!(bType == 'spu')) {
|
|
7807
|
-
_context.
|
|
7606
|
+
_context.n = 9;
|
|
7808
7607
|
break;
|
|
7809
7608
|
}
|
|
7810
7609
|
if (!(selectItem.dataIndex == 'colorName' && tList.some(function (i) {
|
|
7811
7610
|
return i[recordKey] == recordItem[recordKey] && i.selectPropertyGroupCode == recordItem.selectPropertyGroupCode && i[selectItem.dataIndex] == changeValue;
|
|
7812
7611
|
}))) {
|
|
7813
|
-
_context.
|
|
7612
|
+
_context.n = 2;
|
|
7814
7613
|
break;
|
|
7815
7614
|
}
|
|
7816
7615
|
antd.message.warning('相同商品相同配码颜色不可设置相同哦');
|
|
7817
|
-
return _context.
|
|
7818
|
-
case
|
|
7616
|
+
return _context.a(2, false);
|
|
7617
|
+
case 2:
|
|
7819
7618
|
if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && !recordItem.colorName)) {
|
|
7820
|
-
_context.
|
|
7619
|
+
_context.n = 3;
|
|
7821
7620
|
break;
|
|
7822
7621
|
}
|
|
7823
7622
|
antd.message.warning('请先选择颜色!');
|
|
7824
|
-
return _context.
|
|
7825
|
-
case
|
|
7623
|
+
return _context.a(2, false);
|
|
7624
|
+
case 3:
|
|
7826
7625
|
if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && tList.some(function (i) {
|
|
7827
7626
|
return i[recordKey] == recordItem[recordKey] && i.colorName == recordItem.colorName && i[selectItem.dataIndex] == changeValue;
|
|
7828
7627
|
}))) {
|
|
7829
|
-
_context.
|
|
7628
|
+
_context.n = 4;
|
|
7830
7629
|
break;
|
|
7831
7630
|
}
|
|
7832
7631
|
antd.message.warning('相同商品相同颜色配码不可设置相同哦');
|
|
7833
|
-
return _context.
|
|
7834
|
-
case
|
|
7632
|
+
return _context.a(2, false);
|
|
7633
|
+
case 4:
|
|
7835
7634
|
if (!(selectItem.dataIndex == 'selectPropertyGroupCode')) {
|
|
7836
|
-
_context.
|
|
7635
|
+
_context.n = 9;
|
|
7837
7636
|
break;
|
|
7838
7637
|
}
|
|
7839
7638
|
result = true;
|
|
7840
|
-
_context.
|
|
7841
|
-
_context.
|
|
7639
|
+
_context.p = 5;
|
|
7640
|
+
_context.n = 6;
|
|
7842
7641
|
return checkSpuMatchCode({
|
|
7843
7642
|
skcCode: recordItem[recordKey],
|
|
7844
7643
|
matchingCode: changeValue,
|
|
7845
7644
|
ext1: recordItem.colorName
|
|
7846
7645
|
});
|
|
7847
|
-
case
|
|
7848
|
-
result = _context.
|
|
7646
|
+
case 6:
|
|
7647
|
+
result = _context.v;
|
|
7849
7648
|
result = true;
|
|
7850
|
-
_context.
|
|
7649
|
+
_context.n = 8;
|
|
7851
7650
|
break;
|
|
7852
|
-
case
|
|
7853
|
-
_context.
|
|
7854
|
-
|
|
7855
|
-
result = typeof
|
|
7856
|
-
case
|
|
7857
|
-
return _context.
|
|
7858
|
-
case
|
|
7859
|
-
return _context.
|
|
7860
|
-
|
|
7861
|
-
|
|
7862
|
-
return _context.stop();
|
|
7863
|
-
}
|
|
7864
|
-
}, _callee, null, [[15, 22]]);
|
|
7651
|
+
case 7:
|
|
7652
|
+
_context.p = 7;
|
|
7653
|
+
_t = _context.v;
|
|
7654
|
+
result = typeof _t == 'boolean' ? _t : false;
|
|
7655
|
+
case 8:
|
|
7656
|
+
return _context.a(2, result);
|
|
7657
|
+
case 9:
|
|
7658
|
+
return _context.a(2, true);
|
|
7659
|
+
}
|
|
7660
|
+
}, _callee, null, [[5, 7]]);
|
|
7865
7661
|
}));
|
|
7866
7662
|
return function checkSelectChange(_x, _x2, _x3, _x4, _x5, _x6) {
|
|
7867
7663
|
return _ref2.apply(this, arguments);
|
|
@@ -7952,17 +7748,16 @@ var AddSelect = function AddSelect(props) {
|
|
|
7952
7748
|
e.target.blur();
|
|
7953
7749
|
},
|
|
7954
7750
|
onBlur: function () {
|
|
7955
|
-
var _onBlur = _asyncToGenerator(/*#__PURE__*/
|
|
7751
|
+
var _onBlur = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(e) {
|
|
7956
7752
|
var value;
|
|
7957
|
-
return
|
|
7958
|
-
while (1) switch (_context2.
|
|
7753
|
+
return _regenerator().w(function (_context2) {
|
|
7754
|
+
while (1) switch (_context2.n) {
|
|
7959
7755
|
case 0:
|
|
7960
7756
|
value = e.target.value;
|
|
7961
7757
|
record[item.dataIndex] = value;
|
|
7962
7758
|
editRecord(record);
|
|
7963
|
-
case
|
|
7964
|
-
|
|
7965
|
-
return _context2.stop();
|
|
7759
|
+
case 1:
|
|
7760
|
+
return _context2.a(2);
|
|
7966
7761
|
}
|
|
7967
7762
|
}, _callee2);
|
|
7968
7763
|
}));
|
|
@@ -8122,10 +7917,10 @@ var AddSelect = function AddSelect(props) {
|
|
|
8122
7917
|
}
|
|
8123
7918
|
_dom6 = null;
|
|
8124
7919
|
} else if (e.keyCode === 38) {
|
|
8125
|
-
var _e$nativeEvent$path$
|
|
7920
|
+
var _e$nativeEvent$path$0;
|
|
8126
7921
|
e.stopPropagation();
|
|
8127
7922
|
e.preventDefault();
|
|
8128
|
-
var dom1 = (_e$nativeEvent$path$
|
|
7923
|
+
var dom1 = (_e$nativeEvent$path$0 = e.nativeEvent.path[5].children[index]) === null || _e$nativeEvent$path$0 === void 0 ? void 0 : _e$nativeEvent$path$0.getElementsByTagName('input')[currentIndex];
|
|
8129
7924
|
if (dom1) {
|
|
8130
7925
|
// dom1.value=""
|
|
8131
7926
|
// dom1.setSelectionRange(100, 0);
|
|
@@ -8159,19 +7954,19 @@ var AddSelect = function AddSelect(props) {
|
|
|
8159
7954
|
return /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2(_objectSpread2({}, item.selectProps), {}, {
|
|
8160
7955
|
value: text || null,
|
|
8161
7956
|
onChange: function () {
|
|
8162
|
-
var _onChange = _asyncToGenerator(/*#__PURE__*/
|
|
8163
|
-
var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules;
|
|
8164
|
-
return
|
|
8165
|
-
while (1) switch (_context3.
|
|
7957
|
+
var _onChange = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(value) {
|
|
7958
|
+
var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules, _t2;
|
|
7959
|
+
return _regenerator().w(function (_context3) {
|
|
7960
|
+
while (1) switch (_context3.p = _context3.n) {
|
|
8166
7961
|
case 0:
|
|
8167
7962
|
dataSourceSelectItem = (dataSourceList === null || dataSourceList === void 0 ? void 0 : dataSourceList.find(function (d) {
|
|
8168
7963
|
return d[selectKey] == value;
|
|
8169
7964
|
})) || {};
|
|
8170
7965
|
if (!(item === null || item === void 0 ? void 0 : item.selectChangeCallback)) {
|
|
8171
|
-
_context3.
|
|
7966
|
+
_context3.n = 2;
|
|
8172
7967
|
break;
|
|
8173
7968
|
}
|
|
8174
|
-
_context3.
|
|
7969
|
+
_context3.n = 1;
|
|
8175
7970
|
return item === null || item === void 0 ? void 0 : (_item$selectChangeCal = item.selectChangeCallback) === null || _item$selectChangeCal === void 0 ? void 0 : _item$selectChangeCal.call(item, popvalue, setPopValue, {
|
|
8176
7971
|
record: record,
|
|
8177
7972
|
index: index,
|
|
@@ -8181,10 +7976,10 @@ var AddSelect = function AddSelect(props) {
|
|
|
8181
7976
|
dataSourceSelectItem: dataSourceSelectItem,
|
|
8182
7977
|
editRecord: editRecord
|
|
8183
7978
|
});
|
|
8184
|
-
case
|
|
8185
|
-
_context3.
|
|
7979
|
+
case 1:
|
|
7980
|
+
_context3.n = 10;
|
|
8186
7981
|
break;
|
|
8187
|
-
case
|
|
7982
|
+
case 2:
|
|
8188
7983
|
// 更新当前行数据函数
|
|
8189
7984
|
changeValue = function changeValue(v, dSSItem) {
|
|
8190
7985
|
var _item$dataSourceSelec;
|
|
@@ -8197,12 +7992,12 @@ var AddSelect = function AddSelect(props) {
|
|
|
8197
7992
|
}
|
|
8198
7993
|
}; // 处理校验,默认不校验
|
|
8199
7994
|
isCheckPass = true;
|
|
8200
|
-
_context3.
|
|
7995
|
+
_context3.p = 3;
|
|
8201
7996
|
if (!(item === null || item === void 0 ? void 0 : item.selectCheckCallback)) {
|
|
8202
|
-
_context3.
|
|
7997
|
+
_context3.n = 5;
|
|
8203
7998
|
break;
|
|
8204
7999
|
}
|
|
8205
|
-
_context3.
|
|
8000
|
+
_context3.n = 4;
|
|
8206
8001
|
return item === null || item === void 0 ? void 0 : item.selectCheckCallback(popvalue, {
|
|
8207
8002
|
record: record,
|
|
8208
8003
|
index: index,
|
|
@@ -8211,23 +8006,23 @@ var AddSelect = function AddSelect(props) {
|
|
|
8211
8006
|
changeValue: value,
|
|
8212
8007
|
dataSourceSelectItem: dataSourceSelectItem
|
|
8213
8008
|
});
|
|
8214
|
-
case
|
|
8215
|
-
isCheckPass = _context3.
|
|
8216
|
-
_context3.
|
|
8009
|
+
case 4:
|
|
8010
|
+
isCheckPass = _context3.v;
|
|
8011
|
+
_context3.n = 7;
|
|
8217
8012
|
break;
|
|
8218
|
-
case
|
|
8219
|
-
_context3.
|
|
8013
|
+
case 5:
|
|
8014
|
+
_context3.n = 6;
|
|
8220
8015
|
return checkSelectChange(businessType, popvalue, mappingValueField, record, item, value);
|
|
8221
|
-
case
|
|
8222
|
-
isConformToTheRules = _context3.
|
|
8016
|
+
case 6:
|
|
8017
|
+
isConformToTheRules = _context3.v;
|
|
8223
8018
|
isCheckPass = !isConformToTheRules;
|
|
8224
|
-
case
|
|
8225
|
-
_context3.
|
|
8019
|
+
case 7:
|
|
8020
|
+
_context3.n = 9;
|
|
8226
8021
|
break;
|
|
8227
|
-
case
|
|
8228
|
-
_context3.
|
|
8229
|
-
|
|
8230
|
-
case
|
|
8022
|
+
case 8:
|
|
8023
|
+
_context3.p = 8;
|
|
8024
|
+
_t2 = _context3.v;
|
|
8025
|
+
case 9:
|
|
8231
8026
|
if (isCheckPass) {
|
|
8232
8027
|
changeValue(value, dataSourceSelectItem);
|
|
8233
8028
|
} else {
|
|
@@ -8235,11 +8030,10 @@ var AddSelect = function AddSelect(props) {
|
|
|
8235
8030
|
}
|
|
8236
8031
|
// 更新已选表格函数
|
|
8237
8032
|
editRecord(record);
|
|
8238
|
-
case
|
|
8239
|
-
|
|
8240
|
-
return _context3.stop();
|
|
8033
|
+
case 10:
|
|
8034
|
+
return _context3.a(2);
|
|
8241
8035
|
}
|
|
8242
|
-
}, _callee3, null, [[
|
|
8036
|
+
}, _callee3, null, [[3, 8]]);
|
|
8243
8037
|
}));
|
|
8244
8038
|
function onChange(_x8) {
|
|
8245
8039
|
return _onChange.apply(this, arguments);
|
|
@@ -9630,29 +9424,29 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9630
9424
|
dataIndex: 'propertyNameAndValue'
|
|
9631
9425
|
}];
|
|
9632
9426
|
var _useState9 = React$1.useState(false),
|
|
9633
|
-
|
|
9634
|
-
isModalVisible =
|
|
9635
|
-
setIsModalVisible =
|
|
9636
|
-
var
|
|
9427
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
9428
|
+
isModalVisible = _useState0[0],
|
|
9429
|
+
setIsModalVisible = _useState0[1];
|
|
9430
|
+
var _useState1 = React$1.useState([{
|
|
9637
9431
|
hovered: false
|
|
9638
9432
|
}]),
|
|
9639
|
-
|
|
9640
|
-
data =
|
|
9641
|
-
setData =
|
|
9433
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
9434
|
+
data = _useState10[0],
|
|
9435
|
+
setData = _useState10[1];
|
|
9642
9436
|
var tableRef = React$1.useRef(null);
|
|
9643
9437
|
var codeSelected = tableCode;
|
|
9644
|
-
var
|
|
9438
|
+
var _useState11 = React$1.useState(false),
|
|
9439
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
9440
|
+
loading = _useState12[0],
|
|
9441
|
+
setLoading = _useState12[1];
|
|
9442
|
+
var _useState13 = React$1.useState([]),
|
|
9645
9443
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
9646
|
-
|
|
9647
|
-
|
|
9444
|
+
selectColumns = _useState14[0],
|
|
9445
|
+
setSelectColumns = _useState14[1];
|
|
9648
9446
|
var _useState15 = React$1.useState([]),
|
|
9649
9447
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
9650
|
-
|
|
9651
|
-
|
|
9652
|
-
var _useState17 = React$1.useState([]),
|
|
9653
|
-
_useState18 = _slicedToArray(_useState17, 2),
|
|
9654
|
-
showColumns = _useState18[0],
|
|
9655
|
-
setShowColumns = _useState18[1];
|
|
9448
|
+
showColumns = _useState16[0],
|
|
9449
|
+
setShowColumns = _useState16[1];
|
|
9656
9450
|
React$1.useEffect(function () {
|
|
9657
9451
|
setSelectColumns([].concat(_toConsumableArray(columns.map(function (item) {
|
|
9658
9452
|
var inputLength = columns.filter(function (item) {
|
|
@@ -9768,42 +9562,42 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9768
9562
|
});
|
|
9769
9563
|
};
|
|
9770
9564
|
var handleSubmit = /*#__PURE__*/function () {
|
|
9771
|
-
var _ref4 = _asyncToGenerator(/*#__PURE__*/
|
|
9565
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
9772
9566
|
var canEntryObject, _canEntryObject$error, messageInfo;
|
|
9773
|
-
return
|
|
9774
|
-
while (1) switch (_context.
|
|
9567
|
+
return _regenerator().w(function (_context) {
|
|
9568
|
+
while (1) switch (_context.n) {
|
|
9775
9569
|
case 0:
|
|
9776
9570
|
if (data === null || data === void 0 ? void 0 : data.length) {
|
|
9777
|
-
_context.
|
|
9571
|
+
_context.n = 1;
|
|
9778
9572
|
break;
|
|
9779
9573
|
}
|
|
9780
9574
|
antd.message.warning('至少录入一条数据');
|
|
9781
|
-
return _context.
|
|
9782
|
-
case
|
|
9575
|
+
return _context.a(2);
|
|
9576
|
+
case 1:
|
|
9783
9577
|
if (data === null || data === void 0 ? void 0 : data.every(function (d) {
|
|
9784
9578
|
return d.skuCode && d.name;
|
|
9785
9579
|
})) {
|
|
9786
|
-
_context.
|
|
9580
|
+
_context.n = 2;
|
|
9787
9581
|
break;
|
|
9788
9582
|
}
|
|
9789
9583
|
antd.message.warning('录入商品不存在');
|
|
9790
|
-
return _context.
|
|
9791
|
-
case
|
|
9584
|
+
return _context.a(2);
|
|
9585
|
+
case 2:
|
|
9792
9586
|
if (data === null || data === void 0 ? void 0 : data.every(function (d) {
|
|
9793
9587
|
return d.count;
|
|
9794
9588
|
})) {
|
|
9795
|
-
_context.
|
|
9589
|
+
_context.n = 3;
|
|
9796
9590
|
break;
|
|
9797
9591
|
}
|
|
9798
9592
|
antd.message.warning('请填写商品数量!');
|
|
9799
|
-
return _context.
|
|
9800
|
-
case
|
|
9801
|
-
_context.
|
|
9593
|
+
return _context.a(2);
|
|
9594
|
+
case 3:
|
|
9595
|
+
_context.n = 4;
|
|
9802
9596
|
return isSkuCanEntry(data);
|
|
9803
|
-
case
|
|
9804
|
-
canEntryObject = _context.
|
|
9597
|
+
case 4:
|
|
9598
|
+
canEntryObject = _context.v;
|
|
9805
9599
|
if (!((canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.flag) === false)) {
|
|
9806
|
-
_context.
|
|
9600
|
+
_context.n = 5;
|
|
9807
9601
|
break;
|
|
9808
9602
|
}
|
|
9809
9603
|
messageInfo = (canEntryObject === null || canEntryObject === void 0 ? void 0 : (_canEntryObject$error = canEntryObject.errorList) === null || _canEntryObject$error === void 0 ? void 0 : _canEntryObject$error.length) && (canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.errorList.map(function (i) {
|
|
@@ -9813,8 +9607,8 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9813
9607
|
content: messageInfo,
|
|
9814
9608
|
duration: 6
|
|
9815
9609
|
});
|
|
9816
|
-
return _context.
|
|
9817
|
-
case
|
|
9610
|
+
return _context.a(2);
|
|
9611
|
+
case 5:
|
|
9818
9612
|
setLoading(true);
|
|
9819
9613
|
onSaveCallback(data).then(function (res) {
|
|
9820
9614
|
{
|
|
@@ -9832,9 +9626,8 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
9832
9626
|
antd.message.error(Error);
|
|
9833
9627
|
setLoading(false);
|
|
9834
9628
|
});
|
|
9835
|
-
case
|
|
9836
|
-
|
|
9837
|
-
return _context.stop();
|
|
9629
|
+
case 6:
|
|
9630
|
+
return _context.a(2);
|
|
9838
9631
|
}
|
|
9839
9632
|
}, _callee);
|
|
9840
9633
|
}));
|
|
@@ -10716,7 +10509,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10716
10509
|
}, {
|
|
10717
10510
|
name: 'qp-zzdlbm-in',
|
|
10718
10511
|
type: 'select',
|
|
10719
|
-
label: '
|
|
10512
|
+
label: '品类',
|
|
10720
10513
|
field: {
|
|
10721
10514
|
type: 'select',
|
|
10722
10515
|
props: {
|
|
@@ -10735,7 +10528,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10735
10528
|
}, {
|
|
10736
10529
|
name: 'qp-zzzlbm-in',
|
|
10737
10530
|
type: 'select',
|
|
10738
|
-
label: '
|
|
10531
|
+
label: '大类',
|
|
10739
10532
|
field: {
|
|
10740
10533
|
type: 'select',
|
|
10741
10534
|
props: {
|
|
@@ -10754,7 +10547,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
10754
10547
|
}, {
|
|
10755
10548
|
name: 'qp-zzxlbm-in',
|
|
10756
10549
|
type: 'select',
|
|
10757
|
-
label: '
|
|
10550
|
+
label: '中类',
|
|
10758
10551
|
field: {
|
|
10759
10552
|
type: 'select',
|
|
10760
10553
|
props: {
|
|
@@ -11820,11 +11613,11 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11820
11613
|
}
|
|
11821
11614
|
}
|
|
11822
11615
|
}, {
|
|
11823
|
-
name: 'qp-
|
|
11824
|
-
type: '
|
|
11825
|
-
label: '
|
|
11616
|
+
name: 'qp-operationWarehouseClassification-in',
|
|
11617
|
+
type: 'select',
|
|
11618
|
+
label: '分类',
|
|
11826
11619
|
field: {
|
|
11827
|
-
type: '
|
|
11620
|
+
type: 'select',
|
|
11828
11621
|
props: {
|
|
11829
11622
|
multiple: true,
|
|
11830
11623
|
treeData: [],
|
|
@@ -11840,7 +11633,8 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11840
11633
|
},
|
|
11841
11634
|
showCheckedStrategy: 'TreeSelect.SHOW_ALL'
|
|
11842
11635
|
}
|
|
11843
|
-
}
|
|
11636
|
+
},
|
|
11637
|
+
initialSource: getDictionarySource$1('BASIC_OPS_WH_TYPE')
|
|
11844
11638
|
}].concat(_toConsumableArray((modalTableBusProps === null || modalTableBusProps === void 0 ? void 0 : modalTableBusProps.needStatusSearch) ? [{
|
|
11845
11639
|
name: 'qp-status-eq',
|
|
11846
11640
|
type: 'select',
|
|
@@ -11868,10 +11662,6 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
11868
11662
|
});
|
|
11869
11663
|
});
|
|
11870
11664
|
x[1].data = newData1;
|
|
11871
|
-
var channelDisabledJude = function channelDisabledJude(data) {
|
|
11872
|
-
return data['parentCode'] === '0';
|
|
11873
|
-
}; // 所属销售渠道 树节点不能点判断
|
|
11874
|
-
formatTreeDataSource(x, 1, 3, tableSearchForm, ['code', 'name'], 'channelInfoSon', channelDisabledJude);
|
|
11875
11665
|
});
|
|
11876
11666
|
modalTableProps = _objectSpread2({
|
|
11877
11667
|
modalTableTitle: '选择运营仓',
|
|
@@ -12225,17 +12015,17 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12225
12015
|
}
|
|
12226
12016
|
}
|
|
12227
12017
|
}];
|
|
12228
|
-
var
|
|
12018
|
+
var _queryHeaderParams0 = getQueryHeadersList({
|
|
12229
12019
|
querySelectHeadersList: querySelectHeadersList,
|
|
12230
12020
|
extralHeaders: extralHeaders
|
|
12231
12021
|
});
|
|
12232
|
-
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/org/listNoPage"), {}, getQueryHeadersItem(
|
|
12022
|
+
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/org/listNoPage"), {}, getQueryHeadersItem(_queryHeaderParams0, 'qp-createOrgCode-eq')), loadSelectSource$1("/channel-manage/channelInfo/tree", {
|
|
12233
12023
|
'qp-status-eq': 10,
|
|
12234
12024
|
'qp-isMain-eq': 1,
|
|
12235
12025
|
'qp-type-in': '1,2'
|
|
12236
|
-
}, getQueryHeadersItem(
|
|
12026
|
+
}, getQueryHeadersItem(_queryHeaderParams0, 'qp-orgCode-in')), loadSelectSource$1("/channel-manage/tagNode/getTree/10", {
|
|
12237
12027
|
'qp-status-eq': 1
|
|
12238
|
-
}, getQueryHeadersItem(
|
|
12028
|
+
}, getQueryHeadersItem(_queryHeaderParams0, 'qp-orgCode-in'))]).then(function (x) {
|
|
12239
12029
|
var firstElement = x === null || x === void 0 ? void 0 : x[0];
|
|
12240
12030
|
var allList = firstElement && [firstElement, firstElement];
|
|
12241
12031
|
formatSource(allList, 0, 2, tableSearchForm);
|
|
@@ -12421,7 +12211,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12421
12211
|
}
|
|
12422
12212
|
}
|
|
12423
12213
|
}];
|
|
12424
|
-
var
|
|
12214
|
+
var _queryHeaderParams1 = getQueryHeadersList({
|
|
12425
12215
|
querySelectHeadersList: querySelectHeadersList,
|
|
12426
12216
|
extralHeaders: extralHeaders
|
|
12427
12217
|
});
|
|
@@ -12429,21 +12219,21 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12429
12219
|
pageSize: 5000,
|
|
12430
12220
|
currentPage: 1,
|
|
12431
12221
|
'qp-companyType-eq': '30'
|
|
12432
|
-
}, getQueryHeadersItem(
|
|
12222
|
+
}, getQueryHeadersItem(_queryHeaderParams1, 'qp-conglomerateCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/company"), {
|
|
12433
12223
|
pageSize: 5000,
|
|
12434
12224
|
currentPage: 1,
|
|
12435
12225
|
'qp-companyType-eq': '20'
|
|
12436
|
-
}, getQueryHeadersItem(
|
|
12226
|
+
}, getQueryHeadersItem(_queryHeaderParams1, 'qp-companyCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/platformRecord/getPlatformRecordList"), {
|
|
12437
12227
|
// pageSize: 5000,
|
|
12438
12228
|
// currentPage: 1,
|
|
12439
12229
|
'qp-status-eq': '1'
|
|
12440
|
-
}, getQueryHeadersItem(
|
|
12230
|
+
}, getQueryHeadersItem(_queryHeaderParams1, 'qp-plateformCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/store"), {
|
|
12441
12231
|
pageSize: 5000,
|
|
12442
12232
|
currentPage: 1
|
|
12443
|
-
}, getQueryHeadersItem(
|
|
12233
|
+
}, getQueryHeadersItem(_queryHeaderParams1, 'qp-mainBrandCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/accountingSubject"), {
|
|
12444
12234
|
pageSize: 5000,
|
|
12445
12235
|
currentPage: 1
|
|
12446
|
-
}, getQueryHeadersItem(
|
|
12236
|
+
}, getQueryHeadersItem(_queryHeaderParams1, 'qp-accountingCode-in'))]).then(function (x) {
|
|
12447
12237
|
formatSource(x, 0, 2, tableSearchForm);
|
|
12448
12238
|
formatSource(x, 1, 3, tableSearchForm);
|
|
12449
12239
|
formatSource(x, 2, 5, tableSearchForm);
|
|
@@ -12727,7 +12517,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12727
12517
|
}
|
|
12728
12518
|
}
|
|
12729
12519
|
}];
|
|
12730
|
-
var
|
|
12520
|
+
var _queryHeaderParams10 = getQueryHeadersList({
|
|
12731
12521
|
querySelectHeadersList: querySelectHeadersList,
|
|
12732
12522
|
extralHeaders: extralHeaders
|
|
12733
12523
|
});
|
|
@@ -12735,17 +12525,17 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
12735
12525
|
'qp-employeeCode-eq': getEmployeeCode(),
|
|
12736
12526
|
'qp-realOrg-eq': true,
|
|
12737
12527
|
'qp-status-eq': 10
|
|
12738
|
-
}, getQueryHeadersItem(
|
|
12528
|
+
}, getQueryHeadersItem(_queryHeaderParams10, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/channelInfo/tree"), {
|
|
12739
12529
|
'qp-status-eq': 10,
|
|
12740
12530
|
'qp-isMain-eq': 1,
|
|
12741
12531
|
'qp-type-in': '1,2'
|
|
12742
|
-
}, getQueryHeadersItem(
|
|
12532
|
+
}, getQueryHeadersItem(_queryHeaderParams10, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/tagNode/getTree/10"), {
|
|
12743
12533
|
'qp-status-eq': 1
|
|
12744
|
-
}, getQueryHeadersItem(
|
|
12534
|
+
}, getQueryHeadersItem(_queryHeaderParams10, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/brand/queryBrandList"), {
|
|
12745
12535
|
pageSize: 5000,
|
|
12746
12536
|
currentPage: 1,
|
|
12747
12537
|
'ctl-withAuth': true
|
|
12748
|
-
}, getQueryHeadersItem(
|
|
12538
|
+
}, getQueryHeadersItem(_queryHeaderParams10, 'ctl-withAuth')), loadSelectSource$1("/channel-manage/store/selectStoreOperationalInfo", {}, getQueryHeadersItem(_queryHeaderParams10, 'qp-orgCode-in'))]).then(function (x) {
|
|
12749
12539
|
var _x$3, _x$3$data$, _x$3$data$$channelInf, _x$4, _opList, _opList$, _opList2, _opList3, _opList4, _opList5, _opList6;
|
|
12750
12540
|
var newData1 = [];
|
|
12751
12541
|
(_x$3 = x[1]) === null || _x$3 === void 0 ? void 0 : (_x$3$data$ = _x$3.data[0]) === null || _x$3$data$ === void 0 ? void 0 : (_x$3$data$$channelInf = _x$3$data$.channelInfoSon) === null || _x$3$data$$channelInf === void 0 ? void 0 : _x$3$data$$channelInf.forEach(function (item) {
|
|
@@ -13063,7 +12853,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13063
12853
|
name: 'qp-officeTelephone-like',
|
|
13064
12854
|
label: '手机号'
|
|
13065
12855
|
}];
|
|
13066
|
-
var
|
|
12856
|
+
var _queryHeaderParams11 = getQueryHeadersList({
|
|
13067
12857
|
querySelectHeadersList: querySelectHeadersList,
|
|
13068
12858
|
extralHeaders: extralHeaders
|
|
13069
12859
|
});
|
|
@@ -13071,7 +12861,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13071
12861
|
pageSize: 5000,
|
|
13072
12862
|
currentPage: 1,
|
|
13073
12863
|
'qp-companyType-eq': 20
|
|
13074
|
-
}, getQueryHeadersItem(
|
|
12864
|
+
}, getQueryHeadersItem(_queryHeaderParams11, 'qp-companyCode-in'))]).then(function (x) {
|
|
13075
12865
|
formatSource(x, 0, 2, tableSearchForm);
|
|
13076
12866
|
});
|
|
13077
12867
|
modalTableProps = _objectSpread2({
|
|
@@ -13180,13 +12970,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13180
12970
|
name: 'qp-phone-like',
|
|
13181
12971
|
label: '手机号'
|
|
13182
12972
|
}]);
|
|
13183
|
-
var
|
|
12973
|
+
var _queryHeaderParams12 = getQueryHeadersList({
|
|
13184
12974
|
querySelectHeadersList: querySelectHeadersList,
|
|
13185
12975
|
extralHeaders: extralHeaders
|
|
13186
12976
|
});
|
|
13187
12977
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgViewNode/common/getTreeForOrgViewAndTenant"), {
|
|
13188
12978
|
'orgViewCode': 'administrative-organization-view'
|
|
13189
|
-
}, getQueryHeadersItem(
|
|
12979
|
+
}, getQueryHeadersItem(_queryHeaderParams12, 'qp-code-in'))]).then(function (x) {
|
|
13190
12980
|
formatTreeDataSource(x, 0, 2, tableSearchForm, ['code', 'name']);
|
|
13191
12981
|
});
|
|
13192
12982
|
modalTableProps = _objectSpread2({
|
|
@@ -13333,17 +13123,17 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13333
13123
|
name: 'qp-remark-like',
|
|
13334
13124
|
label: '备注'
|
|
13335
13125
|
}];
|
|
13336
|
-
var
|
|
13126
|
+
var _queryHeaderParams13 = getQueryHeadersList({
|
|
13337
13127
|
querySelectHeadersList: querySelectHeadersList,
|
|
13338
13128
|
extralHeaders: extralHeaders
|
|
13339
13129
|
});
|
|
13340
13130
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/logisCompany"), {
|
|
13341
13131
|
pageSize: 5000,
|
|
13342
13132
|
currentPage: 1
|
|
13343
|
-
}, getQueryHeadersItem(
|
|
13133
|
+
}, getQueryHeadersItem(_queryHeaderParams13, logisCompanyCodeSingleSearchName)), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/printTemplate"), {
|
|
13344
13134
|
pageSize: 5000,
|
|
13345
13135
|
currentPage: 1
|
|
13346
|
-
}, getQueryHeadersItem(
|
|
13136
|
+
}, getQueryHeadersItem(_queryHeaderParams13, 'qp-sheetTemplateCode-in'))]).then(function (x) {
|
|
13347
13137
|
formatSource(x, 0, 2, tableSearchForm);
|
|
13348
13138
|
formatSource(x, 1, 5, tableSearchForm);
|
|
13349
13139
|
});
|
|
@@ -13513,14 +13303,14 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13513
13303
|
}
|
|
13514
13304
|
}
|
|
13515
13305
|
}];
|
|
13516
|
-
var
|
|
13306
|
+
var _queryHeaderParams14 = getQueryHeadersList({
|
|
13517
13307
|
querySelectHeadersList: querySelectHeadersList,
|
|
13518
13308
|
extralHeaders: extralHeaders
|
|
13519
13309
|
});
|
|
13520
13310
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/permissionCategory"), {
|
|
13521
13311
|
pageSize: 5000,
|
|
13522
13312
|
currentPage: 1
|
|
13523
|
-
}, getQueryHeadersItem(
|
|
13313
|
+
}, getQueryHeadersItem(_queryHeaderParams14, 'qp-categoryCode-eq'))]).then(function (x) {
|
|
13524
13314
|
formatSource(x, 0, 2, tableSearchForm);
|
|
13525
13315
|
});
|
|
13526
13316
|
modalTableProps = _objectSpread2({
|
|
@@ -13617,7 +13407,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13617
13407
|
}
|
|
13618
13408
|
}
|
|
13619
13409
|
}];
|
|
13620
|
-
var
|
|
13410
|
+
var _queryHeaderParams15 = getQueryHeadersList({
|
|
13621
13411
|
querySelectHeadersList: querySelectHeadersList,
|
|
13622
13412
|
extralHeaders: extralHeaders
|
|
13623
13413
|
});
|
|
@@ -13625,7 +13415,7 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13625
13415
|
'qp-employeeCode-eq': getEmployeeCode(),
|
|
13626
13416
|
'qp-realOrg-eq': true,
|
|
13627
13417
|
'qp-status-eq': 10
|
|
13628
|
-
}, getQueryHeadersItem(
|
|
13418
|
+
}, getQueryHeadersItem(_queryHeaderParams15, 'qp-salesOrgCode-in'))]).then(function (x) {
|
|
13629
13419
|
formatSource(x, 0, 2, tableSearchForm);
|
|
13630
13420
|
});
|
|
13631
13421
|
modalTableProps = _objectSpread2({
|
|
@@ -13731,13 +13521,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
13731
13521
|
},
|
|
13732
13522
|
initialSource: nodeType
|
|
13733
13523
|
}];
|
|
13734
|
-
var
|
|
13524
|
+
var _queryHeaderParams16 = getQueryHeadersList({
|
|
13735
13525
|
querySelectHeadersList: querySelectHeadersList,
|
|
13736
13526
|
extralHeaders: extralHeaders
|
|
13737
13527
|
});
|
|
13738
13528
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgView/getOrgViewListNoPage"), {
|
|
13739
13529
|
'qp-status-eq': 10
|
|
13740
|
-
}, getQueryHeadersItem(
|
|
13530
|
+
}, getQueryHeadersItem(_queryHeaderParams16, 'qp-orgViewCode-in'))]).then(function (x) {
|
|
13741
13531
|
formatSource(x, 0, 2, tableSearchForm);
|
|
13742
13532
|
});
|
|
13743
13533
|
modalTableProps = _objectSpread2({
|
|
@@ -14063,13 +13853,13 @@ function commonFun(type, prefixUrl, parentProps) {
|
|
|
14063
13853
|
},
|
|
14064
13854
|
initialSource: nodeType
|
|
14065
13855
|
}];
|
|
14066
|
-
var
|
|
13856
|
+
var _queryHeaderParams17 = getQueryHeadersList({
|
|
14067
13857
|
querySelectHeadersList: querySelectHeadersList,
|
|
14068
13858
|
extralHeaders: extralHeaders
|
|
14069
13859
|
});
|
|
14070
13860
|
Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgView/getOrgViewListNoPage"), {
|
|
14071
13861
|
'qp-status-eq': 10
|
|
14072
|
-
}, getQueryHeadersItem(
|
|
13862
|
+
}, getQueryHeadersItem(_queryHeaderParams17, 'qp-orgViewCode-in'))]).then(function (x) {
|
|
14073
13863
|
formatSource(x, 0, 2, tableSearchForm);
|
|
14074
13864
|
});
|
|
14075
13865
|
modalTableProps = _objectSpread2({
|
|
@@ -15014,9 +14804,9 @@ var AddSpuSelect = function AddSpuSelect(parProps) {
|
|
|
15014
14804
|
value = _useState8[0],
|
|
15015
14805
|
setValue = _useState8[1];
|
|
15016
14806
|
var _useState9 = React$1.useState([]),
|
|
15017
|
-
|
|
15018
|
-
propertyList =
|
|
15019
|
-
setPropertyList =
|
|
14807
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
14808
|
+
propertyList = _useState0[0],
|
|
14809
|
+
setPropertyList = _useState0[1];
|
|
15020
14810
|
React$1.useEffect(function () {
|
|
15021
14811
|
if (parProps === null || parProps === void 0 ? void 0 : parProps.isSingleColor) {
|
|
15022
14812
|
// type: 1 尺码组; 2 配码组
|
|
@@ -15439,7 +15229,7 @@ function getStorageVale(storageKeyString) {
|
|
|
15439
15229
|
var _storageKeyString$spl = storageKeyString.split('.'),
|
|
15440
15230
|
_storageKeyString$spl2 = _toArray(_storageKeyString$spl),
|
|
15441
15231
|
localstorage = _storageKeyString$spl2[0],
|
|
15442
|
-
restKeyArrays = _storageKeyString$spl2.slice(1);
|
|
15232
|
+
restKeyArrays = _arrayLikeToArray(_storageKeyString$spl2).slice(1);
|
|
15443
15233
|
var localStorageInfo = window.localStorage.getItem(localstorage);
|
|
15444
15234
|
if (!restKeyArrays.length) return localStorageInfo;
|
|
15445
15235
|
var returnVal = JSON.parse(localStorageInfo || '{}');
|
|
@@ -15540,46 +15330,45 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
|
|
|
15540
15330
|
requestUtil.get("".concat(url, "?").concat(querystring.stringify(paramsData)), {
|
|
15541
15331
|
headers: headers
|
|
15542
15332
|
}).then(/*#__PURE__*/function () {
|
|
15543
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
15333
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(res) {
|
|
15544
15334
|
var _ctx$form;
|
|
15545
15335
|
var resData, coverData, data, dataList;
|
|
15546
|
-
return
|
|
15547
|
-
while (1) switch (_context.
|
|
15336
|
+
return _regenerator().w(function (_context) {
|
|
15337
|
+
while (1) switch (_context.n) {
|
|
15548
15338
|
case 0:
|
|
15549
15339
|
resData = (res === null || res === void 0 ? void 0 : res.data) || [];
|
|
15550
15340
|
if (!judgeIsRequestSuccess(resData)) {
|
|
15551
|
-
_context.
|
|
15341
|
+
_context.n = 4;
|
|
15552
15342
|
break;
|
|
15553
15343
|
}
|
|
15554
15344
|
data = resData.data;
|
|
15555
15345
|
if (!remoteSource.converter) {
|
|
15556
|
-
_context.
|
|
15346
|
+
_context.n = 2;
|
|
15557
15347
|
break;
|
|
15558
15348
|
}
|
|
15559
|
-
_context.
|
|
15349
|
+
_context.n = 1;
|
|
15560
15350
|
return remoteSource.converter({
|
|
15561
15351
|
data: [data]
|
|
15562
15352
|
});
|
|
15563
|
-
case
|
|
15564
|
-
coverData = _context.
|
|
15565
|
-
_context.
|
|
15353
|
+
case 1:
|
|
15354
|
+
coverData = _context.v;
|
|
15355
|
+
_context.n = 3;
|
|
15566
15356
|
break;
|
|
15567
|
-
case
|
|
15357
|
+
case 2:
|
|
15568
15358
|
dataList = data && Array.isArray(data) ? data : data && [data] || [];
|
|
15569
15359
|
coverData = dataList.length && dataList.map(function (ites) {
|
|
15570
15360
|
return _mapSearchTree(ites);
|
|
15571
15361
|
}) || [];
|
|
15572
|
-
case
|
|
15573
|
-
_context.
|
|
15362
|
+
case 3:
|
|
15363
|
+
_context.n = 5;
|
|
15574
15364
|
break;
|
|
15575
|
-
case
|
|
15365
|
+
case 4:
|
|
15576
15366
|
coverData = [];
|
|
15577
|
-
case
|
|
15367
|
+
case 5:
|
|
15578
15368
|
setTreeData(coverData);
|
|
15579
15369
|
ctx === null || ctx === void 0 ? void 0 : (_ctx$form = ctx.form) === null || _ctx$form === void 0 ? void 0 : _ctx$form.setFieldSource(ctx.name, coverData);
|
|
15580
|
-
case
|
|
15581
|
-
|
|
15582
|
-
return _context.stop();
|
|
15370
|
+
case 6:
|
|
15371
|
+
return _context.a(2);
|
|
15583
15372
|
}
|
|
15584
15373
|
}, _callee);
|
|
15585
15374
|
}));
|
|
@@ -19887,37 +19676,37 @@ var BsSulaQueryTable = (function (props) {
|
|
|
19887
19676
|
};
|
|
19888
19677
|
var refs = React$1.useRef(null);
|
|
19889
19678
|
var _useState9 = React$1.useState(''),
|
|
19890
|
-
|
|
19891
|
-
pagePath =
|
|
19892
|
-
setPagePath =
|
|
19679
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
19680
|
+
pagePath = _useState0[0],
|
|
19681
|
+
setPagePath = _useState0[1];
|
|
19893
19682
|
var _useLocation = umi.useLocation(),
|
|
19894
19683
|
pathname = _useLocation.pathname,
|
|
19895
19684
|
_useLocation$state = _useLocation.state;
|
|
19896
|
-
var
|
|
19897
|
-
|
|
19898
|
-
isFullScreen =
|
|
19899
|
-
setIsFnllScreen =
|
|
19685
|
+
var _useState1 = React$1.useState(false),
|
|
19686
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
19687
|
+
isFullScreen = _useState10[0],
|
|
19688
|
+
setIsFnllScreen = _useState10[1];
|
|
19900
19689
|
// @ts-nocheck
|
|
19901
19690
|
var value = props;
|
|
19902
19691
|
var _props$fields = props.fields,
|
|
19903
19692
|
fields = _props$fields === void 0 ? [] : _props$fields;
|
|
19904
|
-
var
|
|
19905
|
-
|
|
19906
|
-
showColumn =
|
|
19907
|
-
setShowColumns =
|
|
19693
|
+
var _useState11 = React$1.useState([]),
|
|
19694
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
19695
|
+
showColumn = _useState12[0],
|
|
19696
|
+
setShowColumns = _useState12[1]; // 列字段
|
|
19908
19697
|
var originSearchFields = getSettingFieldOrColumn(getConfigFromlocalstorage(ENUM$1.BROWSER_CACHE.SEARCH_FIELDS_CONDITION), fields, 'searchFields');
|
|
19909
|
-
var
|
|
19698
|
+
var _useState13 = React$1.useState(originSearchFields),
|
|
19699
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
19700
|
+
showSearchFields = _useState14[0],
|
|
19701
|
+
setShowSearchFields = _useState14[1]; //搜索项字段
|
|
19702
|
+
var _useState15 = React$1.useState([]),
|
|
19910
19703
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
19911
|
-
|
|
19912
|
-
|
|
19913
|
-
var _useState17 = React$1.useState(
|
|
19704
|
+
showExportColumn = _useState16[0],
|
|
19705
|
+
setShowExportColumns = _useState16[1]; // 导出列字段
|
|
19706
|
+
var _useState17 = React$1.useState(''),
|
|
19914
19707
|
_useState18 = _slicedToArray(_useState17, 2),
|
|
19915
|
-
|
|
19916
|
-
|
|
19917
|
-
var _useState19 = React$1.useState(''),
|
|
19918
|
-
_useState20 = _slicedToArray(_useState19, 2),
|
|
19919
|
-
height = _useState20[0],
|
|
19920
|
-
setHeight = _useState20[1];
|
|
19708
|
+
height = _useState18[0],
|
|
19709
|
+
setHeight = _useState18[1];
|
|
19921
19710
|
var sortTableRef = React$1.useRef(null);
|
|
19922
19711
|
var searchTableRef = React$1.useRef(null);
|
|
19923
19712
|
var exportTableRef = React$1.useRef(null);
|
|
@@ -20545,7 +20334,7 @@ var matchPath = function matchPath(pathname) {
|
|
|
20545
20334
|
if (!match) return null;
|
|
20546
20335
|
var _match = _toArray(match),
|
|
20547
20336
|
url = _match[0],
|
|
20548
|
-
values = _match.slice(1);
|
|
20337
|
+
values = _arrayLikeToArray(_match).slice(1);
|
|
20549
20338
|
var isExact = pathname === url;
|
|
20550
20339
|
if (exact && !isExact) return null;
|
|
20551
20340
|
return {
|
|
@@ -20965,22 +20754,19 @@ function outLogin(_x) {
|
|
|
20965
20754
|
return _outLogin.apply(this, arguments);
|
|
20966
20755
|
}
|
|
20967
20756
|
function _outLogin() {
|
|
20968
|
-
_outLogin = _asyncToGenerator(/*#__PURE__*/
|
|
20757
|
+
_outLogin = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(params) {
|
|
20969
20758
|
var res;
|
|
20970
|
-
return
|
|
20971
|
-
while (1) switch (_context.
|
|
20759
|
+
return _regenerator().w(function (_context) {
|
|
20760
|
+
while (1) switch (_context.n) {
|
|
20972
20761
|
case 0:
|
|
20973
|
-
_context.
|
|
20762
|
+
_context.n = 1;
|
|
20974
20763
|
return requestUtil({
|
|
20975
20764
|
url: '/user/web/loginOut',
|
|
20976
20765
|
method: 'GET'
|
|
20977
20766
|
});
|
|
20978
|
-
case
|
|
20979
|
-
res = _context.
|
|
20980
|
-
return _context.
|
|
20981
|
-
case 4:
|
|
20982
|
-
case "end":
|
|
20983
|
-
return _context.stop();
|
|
20767
|
+
case 1:
|
|
20768
|
+
res = _context.v;
|
|
20769
|
+
return _context.a(2, res);
|
|
20984
20770
|
}
|
|
20985
20771
|
}, _callee);
|
|
20986
20772
|
}));
|
|
@@ -21107,20 +20893,20 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
21107
20893
|
});
|
|
21108
20894
|
};
|
|
21109
20895
|
var loginOut = /*#__PURE__*/function () {
|
|
21110
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/
|
|
20896
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
21111
20897
|
var sessionId;
|
|
21112
|
-
return
|
|
21113
|
-
while (1) switch (_context.
|
|
20898
|
+
return _regenerator().w(function (_context) {
|
|
20899
|
+
while (1) switch (_context.n) {
|
|
21114
20900
|
case 0:
|
|
21115
|
-
_context.
|
|
20901
|
+
_context.n = 1;
|
|
21116
20902
|
return getSessionId();
|
|
21117
|
-
case
|
|
21118
|
-
sessionId = _context.
|
|
21119
|
-
_context.
|
|
20903
|
+
case 1:
|
|
20904
|
+
sessionId = _context.v;
|
|
20905
|
+
_context.n = 2;
|
|
21120
20906
|
return outLogin({
|
|
21121
20907
|
sessionId: sessionId
|
|
21122
20908
|
});
|
|
21123
|
-
case
|
|
20909
|
+
case 2:
|
|
21124
20910
|
// @ts-ignore
|
|
21125
20911
|
if (BUILD_TYPE) {
|
|
21126
20912
|
antd.message.success('退出登录成功');
|
|
@@ -21130,9 +20916,8 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
|
|
|
21130
20916
|
} else {
|
|
21131
20917
|
setLoginOutPath();
|
|
21132
20918
|
}
|
|
21133
|
-
case
|
|
21134
|
-
|
|
21135
|
-
return _context.stop();
|
|
20919
|
+
case 3:
|
|
20920
|
+
return _context.a(2);
|
|
21136
20921
|
}
|
|
21137
20922
|
}, _callee);
|
|
21138
20923
|
}));
|
|
@@ -21219,18 +21004,15 @@ function getStoreByName(_x) {
|
|
|
21219
21004
|
return _getStoreByName.apply(this, arguments);
|
|
21220
21005
|
}
|
|
21221
21006
|
function _getStoreByName() {
|
|
21222
|
-
_getStoreByName = _asyncToGenerator(/*#__PURE__*/
|
|
21223
|
-
return
|
|
21224
|
-
while (1) switch (_context.
|
|
21007
|
+
_getStoreByName = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(params) {
|
|
21008
|
+
return _regenerator().w(function (_context) {
|
|
21009
|
+
while (1) switch (_context.n) {
|
|
21225
21010
|
case 0:
|
|
21226
|
-
return _context.
|
|
21011
|
+
return _context.a(2, requestUtil({
|
|
21227
21012
|
url: '/store-house/orgViewNode/listNoPage',
|
|
21228
21013
|
method: 'GET',
|
|
21229
21014
|
params: _objectSpread2({}, params)
|
|
21230
21015
|
}));
|
|
21231
|
-
case 1:
|
|
21232
|
-
case "end":
|
|
21233
|
-
return _context.stop();
|
|
21234
21016
|
}
|
|
21235
21017
|
}, _callee);
|
|
21236
21018
|
}));
|
|
@@ -21265,33 +21047,33 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
21265
21047
|
openSelect = _useState8[0],
|
|
21266
21048
|
setOpenSelect = _useState8[1];
|
|
21267
21049
|
var _useState9 = React$1.useState([]),
|
|
21268
|
-
|
|
21269
|
-
options =
|
|
21270
|
-
setOptions =
|
|
21271
|
-
var
|
|
21050
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
21051
|
+
options = _useState0[0],
|
|
21052
|
+
setOptions = _useState0[1];
|
|
21053
|
+
var _useState1 = React$1.useState([]),
|
|
21054
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
21055
|
+
rescouse = _useState10[0],
|
|
21056
|
+
setRescouse = _useState10[1];
|
|
21057
|
+
var _useState11 = React$1.useState(''),
|
|
21272
21058
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
21273
|
-
|
|
21274
|
-
|
|
21275
|
-
var _useState13 = React$1.useState(
|
|
21276
|
-
_useState14 = _slicedToArray(_useState13, 2),
|
|
21277
|
-
searchValue = _useState14[0],
|
|
21278
|
-
setSearchValue = _useState14[1];
|
|
21279
|
-
var _useState15 = React$1.useState([{
|
|
21059
|
+
searchValue = _useState12[0],
|
|
21060
|
+
setSearchValue = _useState12[1];
|
|
21061
|
+
var _useState13 = React$1.useState([{
|
|
21280
21062
|
label: name,
|
|
21281
21063
|
value: code
|
|
21282
21064
|
}]),
|
|
21283
|
-
|
|
21284
|
-
store =
|
|
21285
|
-
setStore =
|
|
21065
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
21066
|
+
store = _useState14[0],
|
|
21067
|
+
setStore = _useState14[1];
|
|
21286
21068
|
function fetchUserList(_x, _x2) {
|
|
21287
21069
|
return _fetchUserList.apply(this, arguments);
|
|
21288
21070
|
}
|
|
21289
21071
|
function _fetchUserList() {
|
|
21290
|
-
_fetchUserList = _asyncToGenerator(/*#__PURE__*/
|
|
21291
|
-
return
|
|
21292
|
-
while (1) switch (_context3.
|
|
21072
|
+
_fetchUserList = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(storeName, init) {
|
|
21073
|
+
return _regenerator().w(function (_context3) {
|
|
21074
|
+
while (1) switch (_context3.n) {
|
|
21293
21075
|
case 0:
|
|
21294
|
-
return _context3.
|
|
21076
|
+
return _context3.a(2, getStoreByName({
|
|
21295
21077
|
orgName: storeName ? storeName : undefined,
|
|
21296
21078
|
platCompanyCode: init ? undefined : key,
|
|
21297
21079
|
'qp-employeeCode-eq': employeeCode || 'EMP231011000002',
|
|
@@ -21310,9 +21092,6 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
21310
21092
|
};
|
|
21311
21093
|
});
|
|
21312
21094
|
}));
|
|
21313
|
-
case 1:
|
|
21314
|
-
case "end":
|
|
21315
|
-
return _context3.stop();
|
|
21316
21095
|
}
|
|
21317
21096
|
}, _callee3);
|
|
21318
21097
|
}));
|
|
@@ -21335,20 +21114,19 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
21335
21114
|
return debounce__default['default'](loadOptions, debounceTimeout);
|
|
21336
21115
|
}, [debounceTimeout, key]);
|
|
21337
21116
|
var changeInput = /*#__PURE__*/function () {
|
|
21338
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
21117
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(str) {
|
|
21339
21118
|
var res;
|
|
21340
|
-
return
|
|
21341
|
-
while (1) switch (_context.
|
|
21119
|
+
return _regenerator().w(function (_context) {
|
|
21120
|
+
while (1) switch (_context.n) {
|
|
21342
21121
|
case 0:
|
|
21343
|
-
_context.
|
|
21122
|
+
_context.n = 1;
|
|
21344
21123
|
return debounceFetcher(str);
|
|
21345
|
-
case
|
|
21346
|
-
res = _context.
|
|
21124
|
+
case 1:
|
|
21125
|
+
res = _context.v;
|
|
21347
21126
|
setOptions(res);
|
|
21348
21127
|
setRescouse(res);
|
|
21349
|
-
case
|
|
21350
|
-
|
|
21351
|
-
return _context.stop();
|
|
21128
|
+
case 2:
|
|
21129
|
+
return _context.a(2);
|
|
21352
21130
|
}
|
|
21353
21131
|
}, _callee);
|
|
21354
21132
|
}));
|
|
@@ -21357,15 +21135,15 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
21357
21135
|
};
|
|
21358
21136
|
}();
|
|
21359
21137
|
React$1.useEffect(function () {
|
|
21360
|
-
_asyncToGenerator(/*#__PURE__*/
|
|
21138
|
+
_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
|
|
21361
21139
|
var res;
|
|
21362
|
-
return
|
|
21363
|
-
while (1) switch (_context2.
|
|
21140
|
+
return _regenerator().w(function (_context2) {
|
|
21141
|
+
while (1) switch (_context2.n) {
|
|
21364
21142
|
case 0:
|
|
21365
|
-
_context2.
|
|
21143
|
+
_context2.n = 1;
|
|
21366
21144
|
return fetchUserList(undefined, true);
|
|
21367
|
-
case
|
|
21368
|
-
res = _context2.
|
|
21145
|
+
case 1:
|
|
21146
|
+
res = _context2.v;
|
|
21369
21147
|
res.map(function (item, indexNumber) {
|
|
21370
21148
|
if (item.label === name) {
|
|
21371
21149
|
setIndex(indexNumber);
|
|
@@ -21381,9 +21159,8 @@ var ChooseStore = function ChooseStore(props) {
|
|
|
21381
21159
|
});
|
|
21382
21160
|
setOptions(res);
|
|
21383
21161
|
setRescouse(res);
|
|
21384
|
-
case
|
|
21385
|
-
|
|
21386
|
-
return _context2.stop();
|
|
21162
|
+
case 2:
|
|
21163
|
+
return _context2.a(2);
|
|
21387
21164
|
}
|
|
21388
21165
|
}, _callee2);
|
|
21389
21166
|
}))();
|
|
@@ -22432,25 +22209,25 @@ var DrawContent$1 = function DrawContent(_ref) {
|
|
|
22432
22209
|
currentOneLevel = _useState8[0],
|
|
22433
22210
|
setCurrentOneLevel = _useState8[1];
|
|
22434
22211
|
var _useState9 = React$1.useState([]),
|
|
22435
|
-
|
|
22436
|
-
SearhData =
|
|
22437
|
-
setSearchMenuData =
|
|
22438
|
-
var
|
|
22212
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
22213
|
+
SearhData = _useState0[0],
|
|
22214
|
+
setSearchMenuData = _useState0[1];
|
|
22215
|
+
var _useState1 = React$1.useState(600),
|
|
22216
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
22217
|
+
rightMenuHeight = _useState10[0],
|
|
22218
|
+
setHeight = _useState10[1];
|
|
22219
|
+
var _useState11 = React$1.useState(900),
|
|
22439
22220
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
22440
|
-
|
|
22441
|
-
|
|
22442
|
-
var _useState13 = React$1.useState(
|
|
22221
|
+
drawHeight = _useState12[0],
|
|
22222
|
+
setDrawHeight = _useState12[1];
|
|
22223
|
+
var _useState13 = React$1.useState(false),
|
|
22443
22224
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
22444
|
-
|
|
22445
|
-
|
|
22225
|
+
moreBtnShow = _useState14[0],
|
|
22226
|
+
setMoreBtnShow = _useState14[1];
|
|
22446
22227
|
var _useState15 = React$1.useState(false),
|
|
22447
22228
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
22448
|
-
|
|
22449
|
-
|
|
22450
|
-
var _useState17 = React$1.useState(false),
|
|
22451
|
-
_useState18 = _slicedToArray(_useState17, 2),
|
|
22452
|
-
showScroll = _useState18[0],
|
|
22453
|
-
setShowScroll = _useState18[1];
|
|
22229
|
+
showScroll = _useState16[0],
|
|
22230
|
+
setShowScroll = _useState16[1];
|
|
22454
22231
|
React$1.useEffect(function () {
|
|
22455
22232
|
var _originRoutes$find;
|
|
22456
22233
|
getMenuContentHeight();
|
|
@@ -24061,14 +23838,11 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
24061
23838
|
},
|
|
24062
23839
|
menu: {
|
|
24063
23840
|
request: function () {
|
|
24064
|
-
var _request = _asyncToGenerator(/*#__PURE__*/
|
|
24065
|
-
return
|
|
24066
|
-
while (1) switch (_context.
|
|
23841
|
+
var _request = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
23842
|
+
return _regenerator().w(function (_context) {
|
|
23843
|
+
while (1) switch (_context.n) {
|
|
24067
23844
|
case 0:
|
|
24068
|
-
return _context.
|
|
24069
|
-
case 1:
|
|
24070
|
-
case "end":
|
|
24071
|
-
return _context.stop();
|
|
23845
|
+
return _context.a(2, JSON.parse(localStorage.getItem("customerMenu_".concat(itemPath, "_front")) || '[]'));
|
|
24072
23846
|
}
|
|
24073
23847
|
}, _callee);
|
|
24074
23848
|
}));
|
|
@@ -24473,31 +24247,31 @@ var index$6 = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
24473
24247
|
multiTableData = _useState8[0],
|
|
24474
24248
|
setMmultiTableData = _useState8[1]; //多表头数据
|
|
24475
24249
|
var _useState9 = React$1.useState(10),
|
|
24476
|
-
|
|
24477
|
-
viewCount =
|
|
24478
|
-
setViewCount =
|
|
24250
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
24251
|
+
viewCount = _useState0[0],
|
|
24252
|
+
setViewCount = _useState0[1]; //虚拟表格每次渲染数量
|
|
24479
24253
|
var itemWidth = 100; // 表格每一项宽度
|
|
24480
|
-
var
|
|
24481
|
-
|
|
24482
|
-
realColHeaderWidth =
|
|
24483
|
-
setLeftWidth =
|
|
24254
|
+
var _useState1 = React$1.useState((props === null || props === void 0 ? void 0 : props.colHeaderWidth) || 400),
|
|
24255
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
24256
|
+
realColHeaderWidth = _useState10[0],
|
|
24257
|
+
setLeftWidth = _useState10[1];
|
|
24484
24258
|
var viewPort = React$1.useRef(null);
|
|
24485
24259
|
var topScrollBar = React$1.useRef(null);
|
|
24486
24260
|
var leftTableRef = React$1.useRef(null);
|
|
24487
24261
|
//起始渲染item
|
|
24488
|
-
var
|
|
24489
|
-
|
|
24490
|
-
startIndex =
|
|
24491
|
-
setStartIndex =
|
|
24262
|
+
var _useState11 = React$1.useState(0),
|
|
24263
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
24264
|
+
startIndex = _useState12[0],
|
|
24265
|
+
setStartIndex = _useState12[1];
|
|
24492
24266
|
//结束渲染item
|
|
24493
24267
|
var endIndex = React$1.useMemo(function () {
|
|
24494
24268
|
return startIndex + viewCount;
|
|
24495
24269
|
}, [startIndex, viewCount]);
|
|
24496
24270
|
//表格偏移量
|
|
24497
|
-
var
|
|
24498
|
-
|
|
24499
|
-
offsetWidth =
|
|
24500
|
-
setOffset =
|
|
24271
|
+
var _useState13 = React$1.useState(0),
|
|
24272
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
24273
|
+
offsetWidth = _useState14[0],
|
|
24274
|
+
setOffset = _useState14[1];
|
|
24501
24275
|
React$1.useEffect(function () {
|
|
24502
24276
|
setTimeout(function () {
|
|
24503
24277
|
var realLeftTableWidth = leftTableRef.current.clientWidth;
|
|
@@ -31801,11 +31575,11 @@ var valueType = {
|
|
|
31801
31575
|
};
|
|
31802
31576
|
|
|
31803
31577
|
var getDynamicDict = /*#__PURE__*/function () {
|
|
31804
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
31805
|
-
return
|
|
31806
|
-
while (1) switch (_context.
|
|
31578
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(dictionaryCode) {
|
|
31579
|
+
return _regenerator().w(function (_context) {
|
|
31580
|
+
while (1) switch (_context.n) {
|
|
31807
31581
|
case 0:
|
|
31808
|
-
_context.
|
|
31582
|
+
_context.n = 1;
|
|
31809
31583
|
return bssula.request({
|
|
31810
31584
|
url: "/basic/dictDynamicItem/getDynamicData/".concat(dictionaryCode),
|
|
31811
31585
|
converter: function converter(_ref2) {
|
|
@@ -31818,11 +31592,8 @@ var getDynamicDict = /*#__PURE__*/function () {
|
|
|
31818
31592
|
});
|
|
31819
31593
|
}
|
|
31820
31594
|
});
|
|
31821
|
-
case
|
|
31822
|
-
return _context.
|
|
31823
|
-
case 3:
|
|
31824
|
-
case "end":
|
|
31825
|
-
return _context.stop();
|
|
31595
|
+
case 1:
|
|
31596
|
+
return _context.a(2, _context.v);
|
|
31826
31597
|
}
|
|
31827
31598
|
}, _callee);
|
|
31828
31599
|
}));
|
|
@@ -31869,12 +31640,12 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31869
31640
|
value: false
|
|
31870
31641
|
}];
|
|
31871
31642
|
var ref = React$1.useRef();
|
|
31872
|
-
ahooks.useMount(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
31873
|
-
var _ref$current, source;
|
|
31874
|
-
return
|
|
31875
|
-
while (1) switch (_context.
|
|
31643
|
+
ahooks.useMount(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
31644
|
+
var _ref$current, source, _t, _t2;
|
|
31645
|
+
return _regenerator().w(function (_context) {
|
|
31646
|
+
while (1) switch (_context.n) {
|
|
31876
31647
|
case 0:
|
|
31877
|
-
_context.
|
|
31648
|
+
_context.n = 1;
|
|
31878
31649
|
return setIsShowAndType(function (prev) {
|
|
31879
31650
|
if (record.inputType === 20 || record.inputType === 30) {
|
|
31880
31651
|
return {
|
|
@@ -31885,40 +31656,39 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31885
31656
|
}
|
|
31886
31657
|
return prev;
|
|
31887
31658
|
});
|
|
31888
|
-
case
|
|
31659
|
+
case 1:
|
|
31889
31660
|
if (!record.dictionaryCode) {
|
|
31890
|
-
_context.
|
|
31661
|
+
_context.n = 7;
|
|
31891
31662
|
break;
|
|
31892
31663
|
}
|
|
31893
31664
|
if (!(record.choiceType == 20)) {
|
|
31894
|
-
_context.
|
|
31665
|
+
_context.n = 2;
|
|
31895
31666
|
break;
|
|
31896
31667
|
}
|
|
31897
|
-
|
|
31898
|
-
_context.
|
|
31668
|
+
_t = getDictionarySource(record.dictionaryCode);
|
|
31669
|
+
_context.n = 6;
|
|
31899
31670
|
break;
|
|
31900
|
-
case
|
|
31671
|
+
case 2:
|
|
31901
31672
|
if (!(record.choiceType == 30)) {
|
|
31902
|
-
_context.
|
|
31673
|
+
_context.n = 4;
|
|
31903
31674
|
break;
|
|
31904
31675
|
}
|
|
31905
|
-
_context.
|
|
31676
|
+
_context.n = 3;
|
|
31906
31677
|
return getDynamicDict(record.dictionaryCode);
|
|
31907
|
-
case
|
|
31908
|
-
|
|
31909
|
-
_context.
|
|
31678
|
+
case 3:
|
|
31679
|
+
_t2 = _context.v;
|
|
31680
|
+
_context.n = 5;
|
|
31910
31681
|
break;
|
|
31911
|
-
case
|
|
31912
|
-
|
|
31913
|
-
case
|
|
31914
|
-
|
|
31915
|
-
case
|
|
31916
|
-
source =
|
|
31682
|
+
case 4:
|
|
31683
|
+
_t2 = [];
|
|
31684
|
+
case 5:
|
|
31685
|
+
_t = _t2;
|
|
31686
|
+
case 6:
|
|
31687
|
+
source = _t;
|
|
31917
31688
|
// @ts-ignore
|
|
31918
31689
|
ref === null || ref === void 0 ? void 0 : (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.setFieldSource('defaultValue', source);
|
|
31919
|
-
case
|
|
31920
|
-
|
|
31921
|
-
return _context.stop();
|
|
31690
|
+
case 7:
|
|
31691
|
+
return _context.a(2);
|
|
31922
31692
|
}
|
|
31923
31693
|
}, _callee);
|
|
31924
31694
|
})));
|
|
@@ -31983,10 +31753,10 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31983
31753
|
source: {
|
|
31984
31754
|
relates: ['dictionaryCode', 'dictionaryCode_dynamic', 'choiceType'],
|
|
31985
31755
|
type: function () {
|
|
31986
|
-
var _type = _asyncToGenerator(/*#__PURE__*/
|
|
31756
|
+
var _type = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(_ref3) {
|
|
31987
31757
|
var form, values, name, relates, source;
|
|
31988
|
-
return
|
|
31989
|
-
while (1) switch (_context2.
|
|
31758
|
+
return _regenerator().w(function (_context2) {
|
|
31759
|
+
while (1) switch (_context2.n) {
|
|
31990
31760
|
case 0:
|
|
31991
31761
|
form = _ref3.form, values = _ref3.values, name = _ref3.name, relates = _ref3.relates;
|
|
31992
31762
|
if (values[0]) {
|
|
@@ -31995,19 +31765,18 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
31995
31765
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], getDictionarySource(values[0]));
|
|
31996
31766
|
}
|
|
31997
31767
|
if (!values[1]) {
|
|
31998
|
-
_context2.
|
|
31768
|
+
_context2.n = 2;
|
|
31999
31769
|
break;
|
|
32000
31770
|
}
|
|
32001
|
-
_context2.
|
|
31771
|
+
_context2.n = 1;
|
|
32002
31772
|
return getDynamicDict(record.dictionaryCode || values[1]);
|
|
32003
|
-
case
|
|
32004
|
-
source = _context2.
|
|
31773
|
+
case 1:
|
|
31774
|
+
source = _context2.v;
|
|
32005
31775
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
|
|
32006
31776
|
form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
|
|
32007
31777
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], source);
|
|
32008
|
-
case
|
|
32009
|
-
|
|
32010
|
-
return _context2.stop();
|
|
31778
|
+
case 2:
|
|
31779
|
+
return _context2.a(2);
|
|
32011
31780
|
}
|
|
32012
31781
|
}, _callee2);
|
|
32013
31782
|
}));
|
|
@@ -32463,25 +32232,25 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32463
32232
|
source: {
|
|
32464
32233
|
relates: ['choiceType', 'inputType'],
|
|
32465
32234
|
type: function () {
|
|
32466
|
-
var _type2 = _asyncToGenerator(/*#__PURE__*/
|
|
32235
|
+
var _type2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(_ref0) {
|
|
32467
32236
|
var values, name, form, source;
|
|
32468
|
-
return
|
|
32469
|
-
while (1) switch (_context3.
|
|
32237
|
+
return _regenerator().w(function (_context3) {
|
|
32238
|
+
while (1) switch (_context3.n) {
|
|
32470
32239
|
case 0:
|
|
32471
|
-
values =
|
|
32240
|
+
values = _ref0.values, name = _ref0.name, form = _ref0.form;
|
|
32472
32241
|
if (values[1] === 40) {
|
|
32473
32242
|
form === null || form === void 0 ? void 0 : form.setFieldValue(name, null);
|
|
32474
32243
|
form.setFieldVisible(name, false);
|
|
32475
32244
|
}
|
|
32476
32245
|
if (!(values[0] === 30)) {
|
|
32477
|
-
_context3.
|
|
32246
|
+
_context3.n = 2;
|
|
32478
32247
|
break;
|
|
32479
32248
|
}
|
|
32480
|
-
_context3.
|
|
32249
|
+
_context3.n = 1;
|
|
32481
32250
|
return bssula.request({
|
|
32482
32251
|
url: '/basic/dictDynamicItem/queryList',
|
|
32483
|
-
converter: function converter(
|
|
32484
|
-
var data =
|
|
32252
|
+
converter: function converter(_ref1) {
|
|
32253
|
+
var data = _ref1.data;
|
|
32485
32254
|
return data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
32486
32255
|
return {
|
|
32487
32256
|
text: d.dictCode,
|
|
@@ -32490,17 +32259,16 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32490
32259
|
});
|
|
32491
32260
|
}
|
|
32492
32261
|
});
|
|
32493
|
-
case
|
|
32494
|
-
source = _context3.
|
|
32262
|
+
case 1:
|
|
32263
|
+
source = _context3.v;
|
|
32495
32264
|
form === null || form === void 0 ? void 0 : form.setFieldSource(name, source);
|
|
32496
32265
|
form.setFieldVisible(name, true);
|
|
32497
|
-
_context3.
|
|
32266
|
+
_context3.n = 3;
|
|
32498
32267
|
break;
|
|
32499
|
-
case
|
|
32268
|
+
case 2:
|
|
32500
32269
|
form.setFieldVisible(name, false);
|
|
32501
|
-
case
|
|
32502
|
-
|
|
32503
|
-
return _context3.stop();
|
|
32270
|
+
case 3:
|
|
32271
|
+
return _context3.a(2);
|
|
32504
32272
|
}
|
|
32505
32273
|
}, _callee3);
|
|
32506
32274
|
}));
|
|
@@ -32515,8 +32283,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32515
32283
|
name: 'enumeration',
|
|
32516
32284
|
label: '维护自定义选项',
|
|
32517
32285
|
field: {
|
|
32518
|
-
type: function type(
|
|
32519
|
-
var form =
|
|
32286
|
+
type: function type(_ref10) {
|
|
32287
|
+
var form = _ref10.form;
|
|
32520
32288
|
return /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
32521
32289
|
type: 'link',
|
|
32522
32290
|
onClick: function onClick() {
|
|
@@ -32542,10 +32310,10 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32542
32310
|
dependency: {
|
|
32543
32311
|
source: {
|
|
32544
32312
|
relates: ['choiceType'],
|
|
32545
|
-
type: function type(
|
|
32546
|
-
var values =
|
|
32547
|
-
name =
|
|
32548
|
-
form =
|
|
32313
|
+
type: function type(_ref11) {
|
|
32314
|
+
var values = _ref11.values,
|
|
32315
|
+
name = _ref11.name,
|
|
32316
|
+
form = _ref11.form;
|
|
32549
32317
|
if (values[0] === 10) {
|
|
32550
32318
|
form.setFieldVisible(name, true);
|
|
32551
32319
|
} else {
|
|
@@ -32561,10 +32329,10 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32561
32329
|
dependency: {
|
|
32562
32330
|
visible: {
|
|
32563
32331
|
relates: ['choiceType'],
|
|
32564
|
-
type: function type(
|
|
32565
|
-
var name =
|
|
32566
|
-
values =
|
|
32567
|
-
form =
|
|
32332
|
+
type: function type(_ref12) {
|
|
32333
|
+
var name = _ref12.name,
|
|
32334
|
+
values = _ref12.values,
|
|
32335
|
+
form = _ref12.form;
|
|
32568
32336
|
if (values[0] == 330) {
|
|
32569
32337
|
form.setFieldVisible(name, true);
|
|
32570
32338
|
} else {
|
|
@@ -32588,8 +32356,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32588
32356
|
params: {
|
|
32589
32357
|
'qp-businessType-eq': record.businessType
|
|
32590
32358
|
},
|
|
32591
|
-
converter: function converter(
|
|
32592
|
-
var data =
|
|
32359
|
+
converter: function converter(_ref13) {
|
|
32360
|
+
var data = _ref13.data;
|
|
32593
32361
|
return (data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
32594
32362
|
return {
|
|
32595
32363
|
text: d.name,
|
|
@@ -32629,8 +32397,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32629
32397
|
'qp-businessType-eq': record.businessType,
|
|
32630
32398
|
'qp-status-eq': 1
|
|
32631
32399
|
},
|
|
32632
|
-
converter: function converter(
|
|
32633
|
-
var data =
|
|
32400
|
+
converter: function converter(_ref14) {
|
|
32401
|
+
var data = _ref14.data;
|
|
32634
32402
|
return (data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
32635
32403
|
var _d$code;
|
|
32636
32404
|
return {
|
|
@@ -32658,8 +32426,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32658
32426
|
remoteSource: {
|
|
32659
32427
|
url: lineDetail.moduleType == 1 ? "/basic/planModelField/listNoPage?qp-modelCode-eq=".concat(lineDetail === null || lineDetail === void 0 ? void 0 : lineDetail.moduleRelationId) : "/basic/flow/businessField/metaFieldMapping?metaEntityCode=".concat(lineDetail === null || lineDetail === void 0 ? void 0 : lineDetail.moduleRelationId, "&fieldMapping=").concat(record === null || record === void 0 ? void 0 : record.fieldMapping),
|
|
32660
32428
|
method: 'get',
|
|
32661
|
-
converter: function converter(
|
|
32662
|
-
var data =
|
|
32429
|
+
converter: function converter(_ref15) {
|
|
32430
|
+
var data = _ref15.data;
|
|
32663
32431
|
if (lineDetail.moduleType == 1) {
|
|
32664
32432
|
return (data === null || data === void 0 ? void 0 : data.map(function (d) {
|
|
32665
32433
|
return {
|
|
@@ -32685,16 +32453,16 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32685
32453
|
width: 900,
|
|
32686
32454
|
maskClosable: false,
|
|
32687
32455
|
onOk: function () {
|
|
32688
|
-
var _onOk = _asyncToGenerator(/*#__PURE__*/
|
|
32456
|
+
var _onOk = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4() {
|
|
32689
32457
|
var _ref$current4, _res$editableStatus;
|
|
32690
32458
|
var res, _res$defaultValue;
|
|
32691
|
-
return
|
|
32692
|
-
while (1) switch (_context4.
|
|
32459
|
+
return _regenerator().w(function (_context4) {
|
|
32460
|
+
while (1) switch (_context4.n) {
|
|
32693
32461
|
case 0:
|
|
32694
|
-
_context4.
|
|
32462
|
+
_context4.n = 1;
|
|
32695
32463
|
return ref === null || ref === void 0 ? void 0 : (_ref$current4 = ref.current) === null || _ref$current4 === void 0 ? void 0 : _ref$current4.validateFields();
|
|
32696
|
-
case
|
|
32697
|
-
res = _context4.
|
|
32464
|
+
case 1:
|
|
32465
|
+
res = _context4.v;
|
|
32698
32466
|
res.editableStatus = (_res$editableStatus = res.editableStatus) === null || _res$editableStatus === void 0 ? void 0 : _res$editableStatus.join(',');
|
|
32699
32467
|
res.fieldGroup = record.fieldGroup;
|
|
32700
32468
|
res.businessType = record.businessType;
|
|
@@ -32721,7 +32489,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32721
32489
|
delete res.formula;
|
|
32722
32490
|
delete res.showValue;
|
|
32723
32491
|
if (!(mode === 'create')) {
|
|
32724
|
-
_context4.
|
|
32492
|
+
_context4.n = 2;
|
|
32725
32493
|
break;
|
|
32726
32494
|
}
|
|
32727
32495
|
bssula.request({
|
|
@@ -32733,8 +32501,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32733
32501
|
onParentOk();
|
|
32734
32502
|
}
|
|
32735
32503
|
});
|
|
32736
|
-
return _context4.
|
|
32737
|
-
case
|
|
32504
|
+
return _context4.a(2);
|
|
32505
|
+
case 2:
|
|
32738
32506
|
bssula.request({
|
|
32739
32507
|
url: "/basic/flow/businessField/".concat(record.id),
|
|
32740
32508
|
method: 'PATCH',
|
|
@@ -32744,9 +32512,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
|
|
|
32744
32512
|
onParentOk();
|
|
32745
32513
|
}
|
|
32746
32514
|
});
|
|
32747
|
-
case
|
|
32748
|
-
|
|
32749
|
-
return _context4.stop();
|
|
32515
|
+
case 3:
|
|
32516
|
+
return _context4.a(2);
|
|
32750
32517
|
}
|
|
32751
32518
|
}, _callee4);
|
|
32752
32519
|
}));
|
|
@@ -33202,21 +32969,21 @@ var JsonQueryTable = /*#__PURE__*/React__default['default'].memo(function (props
|
|
|
33202
32969
|
jsonEditorVal = _useState8[0],
|
|
33203
32970
|
setJsonEditorVal = _useState8[1];
|
|
33204
32971
|
var _useState9 = React$1.useState({}),
|
|
33205
|
-
|
|
33206
|
-
moduleParams =
|
|
33207
|
-
setModuleParams =
|
|
33208
|
-
var
|
|
32972
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
32973
|
+
moduleParams = _useState0[0],
|
|
32974
|
+
setModuleParams = _useState0[1];
|
|
32975
|
+
var _useState1 = React$1.useState('main'),
|
|
32976
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
32977
|
+
activeKey = _useState10[0],
|
|
32978
|
+
setActiveKey = _useState10[1]; //默认详情页配置
|
|
32979
|
+
var _useState11 = React$1.useState({}),
|
|
33209
32980
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
33210
|
-
|
|
33211
|
-
|
|
33212
|
-
var _useState13 = React$1.useState(
|
|
32981
|
+
tablesConfigParams = _useState12[0],
|
|
32982
|
+
setTablesConfigParams = _useState12[1];
|
|
32983
|
+
var _useState13 = React$1.useState([]),
|
|
33213
32984
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
33214
|
-
|
|
33215
|
-
|
|
33216
|
-
var _useState15 = React$1.useState([]),
|
|
33217
|
-
_useState16 = _slicedToArray(_useState15, 2),
|
|
33218
|
-
tableJsonEditorValsArr = _useState16[0],
|
|
33219
|
-
setTableJsonEditorValsArr = _useState16[1];
|
|
32985
|
+
tableJsonEditorValsArr = _useState14[0],
|
|
32986
|
+
setTableJsonEditorValsArr = _useState14[1];
|
|
33220
32987
|
React$1.useEffect(function () {
|
|
33221
32988
|
Promise.all([requestUtil.get("/basic/flow/businessFieldGroup/one?moduleType=2&layoutPoint=".concat(pageType))]).then(function (_ref2) {
|
|
33222
32989
|
var _ref3 = _slicedToArray(_ref2, 1),
|
|
@@ -33247,7 +33014,7 @@ var JsonQueryTable = /*#__PURE__*/React__default['default'].memo(function (props
|
|
|
33247
33014
|
});
|
|
33248
33015
|
Promise.all(axiosArr).then(function (_ref5) {
|
|
33249
33016
|
var _ref6 = _toArray(_ref5),
|
|
33250
|
-
resArr = _ref6.slice(0);
|
|
33017
|
+
resArr = _arrayLikeToArray(_ref6).slice(0);
|
|
33251
33018
|
var configParams = {};
|
|
33252
33019
|
detailTablesSetting.map(function (item, index) {
|
|
33253
33020
|
var _resArr$index;
|
|
@@ -33592,11 +33359,11 @@ function getMetaData(_x) {
|
|
|
33592
33359
|
|
|
33593
33360
|
// 获取数据
|
|
33594
33361
|
function _getMetaData() {
|
|
33595
|
-
_getMetaData = _asyncToGenerator(/*#__PURE__*/
|
|
33596
|
-
return
|
|
33597
|
-
while (1) switch (_context.
|
|
33362
|
+
_getMetaData = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(id) {
|
|
33363
|
+
return _regenerator().w(function (_context) {
|
|
33364
|
+
while (1) switch (_context.n) {
|
|
33598
33365
|
case 0:
|
|
33599
|
-
return _context.
|
|
33366
|
+
return _context.a(2, new Promise(function (resolve, reject) {
|
|
33600
33367
|
umi.request('/basic/entityProperty/listNoPage', {
|
|
33601
33368
|
params: {
|
|
33602
33369
|
'qp-entityId-eq': id
|
|
@@ -33608,9 +33375,6 @@ function _getMetaData() {
|
|
|
33608
33375
|
reject([]);
|
|
33609
33376
|
});
|
|
33610
33377
|
}));
|
|
33611
|
-
case 1:
|
|
33612
|
-
case "end":
|
|
33613
|
-
return _context.stop();
|
|
33614
33378
|
}
|
|
33615
33379
|
}, _callee);
|
|
33616
33380
|
}));
|
|
@@ -33814,11 +33578,11 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33814
33578
|
tableState = _useState4[0],
|
|
33815
33579
|
setTableState = _useState4[1];
|
|
33816
33580
|
var handleOpen = /*#__PURE__*/function () {
|
|
33817
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
33581
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
33818
33582
|
var _props$customSelector, _props$customSelector2, _props$ctx4, _props$value, _props$value$map, _props$ctx5, _props$ctx5$form, _props$selectProps;
|
|
33819
33583
|
var requestConfigNew, metaDataId, metaData, realMetaData, columns, fields, initValue, _queryTableRef$curren, _queryTableRef$curren2, _queryTableRef$curren3;
|
|
33820
|
-
return
|
|
33821
|
-
while (1) switch (_context.
|
|
33584
|
+
return _regenerator().w(function (_context) {
|
|
33585
|
+
while (1) switch (_context.n) {
|
|
33822
33586
|
case 0:
|
|
33823
33587
|
requestConfigNew = assembleRequest(props.customSelectorConfig, {
|
|
33824
33588
|
isSearchForm: props.isSearchForm,
|
|
@@ -33826,16 +33590,16 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33826
33590
|
searchFormData: searchFormData
|
|
33827
33591
|
});
|
|
33828
33592
|
if (requestConfigNew) {
|
|
33829
|
-
_context.
|
|
33593
|
+
_context.n = 1;
|
|
33830
33594
|
break;
|
|
33831
33595
|
}
|
|
33832
|
-
return _context.
|
|
33833
|
-
case
|
|
33596
|
+
return _context.a(2);
|
|
33597
|
+
case 1:
|
|
33834
33598
|
metaDataId = (_props$customSelector = props.customSelectorConfig) === null || _props$customSelector === void 0 ? void 0 : (_props$customSelector2 = _props$customSelector.targetMetaData) === null || _props$customSelector2 === void 0 ? void 0 : _props$customSelector2.id;
|
|
33835
|
-
_context.
|
|
33599
|
+
_context.n = 2;
|
|
33836
33600
|
return getMetaData(metaDataId);
|
|
33837
|
-
case
|
|
33838
|
-
metaData = _context.
|
|
33601
|
+
case 2:
|
|
33602
|
+
metaData = _context.v;
|
|
33839
33603
|
realMetaData = (metaData === null || metaData === void 0 ? void 0 : metaData.filter(function (item) {
|
|
33840
33604
|
return (item === null || item === void 0 ? void 0 : item.inputType) != 1;
|
|
33841
33605
|
})) || [];
|
|
@@ -33875,9 +33639,8 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33875
33639
|
// @ts-ignore
|
|
33876
33640
|
queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$curren = queryTableRef.current) === null || _queryTableRef$curren === void 0 ? void 0 : (_queryTableRef$curren2 = _queryTableRef$curren.tableRef) === null || _queryTableRef$curren2 === void 0 ? void 0 : (_queryTableRef$curren3 = _queryTableRef$curren2.current) === null || _queryTableRef$curren3 === void 0 ? void 0 : _queryTableRef$curren3.bsSetSelectInfo(initValue);
|
|
33877
33641
|
}
|
|
33878
|
-
case
|
|
33879
|
-
|
|
33880
|
-
return _context.stop();
|
|
33642
|
+
case 3:
|
|
33643
|
+
return _context.a(2);
|
|
33881
33644
|
}
|
|
33882
33645
|
}, _callee);
|
|
33883
33646
|
}));
|
|
@@ -33980,7 +33743,7 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33980
33743
|
}, [requestConfig, tableState.columns]);
|
|
33981
33744
|
var rowKey = (_ref3 = (_fieldMappingItem$cod = fieldMappingItem === null || fieldMappingItem === void 0 ? void 0 : fieldMappingItem.codeMappingFrom) !== null && _fieldMappingItem$cod !== void 0 ? _fieldMappingItem$cod : 'id') !== null && _ref3 !== void 0 ? _ref3 : 'code';
|
|
33982
33745
|
var handleOk = function handleOk(rowData) {
|
|
33983
|
-
var _props$selectProps2, _props$customSelector6, _props$customSelector7, _queryTableRef$
|
|
33746
|
+
var _props$selectProps2, _props$customSelector6, _props$customSelector7, _queryTableRef$curren11, _queryTableRef$curren12, _queryTableRef$curren13;
|
|
33984
33747
|
var setSource = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
33985
33748
|
//多选数据处理
|
|
33986
33749
|
if (props === null || props === void 0 ? void 0 : (_props$selectProps2 = props.selectProps) === null || _props$selectProps2 === void 0 ? void 0 : _props$selectProps2.multipleForQuery) {
|
|
@@ -33991,9 +33754,9 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
33991
33754
|
var selectedRows = (queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$curren7 = queryTableRef.current) === null || _queryTableRef$curren7 === void 0 ? void 0 : (_queryTableRef$curren8 = _queryTableRef$curren7.tableRef) === null || _queryTableRef$curren8 === void 0 ? void 0 : (_queryTableRef$curren9 = _queryTableRef$curren8.current) === null || _queryTableRef$curren9 === void 0 ? void 0 : _queryTableRef$curren9.getSelectedRows()) || [];
|
|
33992
33755
|
var realSelectedRows = selectedRows;
|
|
33993
33756
|
if (!rowData && (selectedKesys === null || selectedKesys === void 0 ? void 0 : selectedKesys.length) !== (selectedRows === null || selectedRows === void 0 ? void 0 : selectedRows.length)) {
|
|
33994
|
-
var _queryTableRef$
|
|
33757
|
+
var _queryTableRef$curren0, _queryTableRef$curren1, _queryTableRef$curren10;
|
|
33995
33758
|
// @ts-ignore
|
|
33996
|
-
var dataSource = (queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$
|
|
33759
|
+
var dataSource = (queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$curren0 = queryTableRef.current) === null || _queryTableRef$curren0 === void 0 ? void 0 : (_queryTableRef$curren1 = _queryTableRef$curren0.tableRef) === null || _queryTableRef$curren1 === void 0 ? void 0 : (_queryTableRef$curren10 = _queryTableRef$curren1.current) === null || _queryTableRef$curren10 === void 0 ? void 0 : _queryTableRef$curren10.getDataSource()) || [];
|
|
33997
33760
|
realSelectedRows = dataSource === null || dataSource === void 0 ? void 0 : dataSource.filter(function (s) {
|
|
33998
33761
|
return selectedKesys.includes(s[rowKey]);
|
|
33999
33762
|
});
|
|
@@ -34026,10 +33789,10 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
34026
33789
|
});
|
|
34027
33790
|
}
|
|
34028
33791
|
mappings.map(function (item) {
|
|
34029
|
-
var _props$
|
|
34030
|
-
if (((_props$
|
|
34031
|
-
var _props$
|
|
34032
|
-
values["".concat(item.codeMappingTo, "Name")] = rowData[(_props$
|
|
33792
|
+
var _props$customSelector0, _props$customSelector1, _props$customSelector10, _props$customSelector11;
|
|
33793
|
+
if (((_props$customSelector0 = props.customSelectorConfig) === null || _props$customSelector0 === void 0 ? void 0 : (_props$customSelector1 = _props$customSelector0.extraData) === null || _props$customSelector1 === void 0 ? void 0 : _props$customSelector1.echoLabel) && item.codeMappingTo === prop && rowData[(_props$customSelector10 = props.customSelectorConfig) === null || _props$customSelector10 === void 0 ? void 0 : (_props$customSelector11 = _props$customSelector10.extraData) === null || _props$customSelector11 === void 0 ? void 0 : _props$customSelector11.echoLabel]) {
|
|
33794
|
+
var _props$customSelector12, _props$customSelector13;
|
|
33795
|
+
values["".concat(item.codeMappingTo, "Name")] = rowData[(_props$customSelector12 = props.customSelectorConfig) === null || _props$customSelector12 === void 0 ? void 0 : (_props$customSelector13 = _props$customSelector12.extraData) === null || _props$customSelector13 === void 0 ? void 0 : _props$customSelector13.echoLabel];
|
|
34033
33796
|
}
|
|
34034
33797
|
values[item.codeMappingTo] = rowData[item.codeMappingFrom];
|
|
34035
33798
|
});
|
|
@@ -34084,10 +33847,10 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
34084
33847
|
}
|
|
34085
33848
|
props.onCancel();
|
|
34086
33849
|
//@ts-ignore
|
|
34087
|
-
queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$
|
|
33850
|
+
queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$curren11 = queryTableRef.current) === null || _queryTableRef$curren11 === void 0 ? void 0 : (_queryTableRef$curren12 = _queryTableRef$curren11.tableRef) === null || _queryTableRef$curren12 === void 0 ? void 0 : (_queryTableRef$curren13 = _queryTableRef$curren12.current) === null || _queryTableRef$curren13 === void 0 ? void 0 : _queryTableRef$curren13.clearRowSelection();
|
|
34088
33851
|
};
|
|
34089
33852
|
var config = React$1.useMemo(function () {
|
|
34090
|
-
var _props$selectProps3, _props$ctx9, _props$value2, _props$
|
|
33853
|
+
var _props$selectProps3, _props$ctx9, _props$value2, _props$ctx0, _props$ctx0$form;
|
|
34091
33854
|
var returnConfig = {
|
|
34092
33855
|
size: 'small',
|
|
34093
33856
|
needPageHeader: false,
|
|
@@ -34096,7 +33859,7 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
34096
33859
|
rowSelection: (props === null || props === void 0 ? void 0 : (_props$selectProps3 = props.selectProps) === null || _props$selectProps3 === void 0 ? void 0 : _props$selectProps3.multipleForQuery) && !isView ? {
|
|
34097
33860
|
selectedRowKeys: !(props === null || props === void 0 ? void 0 : (_props$ctx9 = props.ctx) === null || _props$ctx9 === void 0 ? void 0 : _props$ctx9.form) && (props === null || props === void 0 ? void 0 : (_props$value2 = props.value) === null || _props$value2 === void 0 ? void 0 : _props$value2.map(function (v) {
|
|
34098
33861
|
return v.key || v;
|
|
34099
|
-
})) || (props === null || props === void 0 ? void 0 : (_props$
|
|
33862
|
+
})) || (props === null || props === void 0 ? void 0 : (_props$ctx0 = props.ctx) === null || _props$ctx0 === void 0 ? void 0 : (_props$ctx0$form = _props$ctx0.form) === null || _props$ctx0$form === void 0 ? void 0 : _props$ctx0$form.getFieldValue(props.id))
|
|
34100
33863
|
} : false,
|
|
34101
33864
|
remoteDataSource: remoteDataSource,
|
|
34102
33865
|
fields: tableState.fields,
|
|
@@ -34104,8 +33867,8 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
34104
33867
|
rowKey: rowKey,
|
|
34105
33868
|
tableProps: !isView && {
|
|
34106
33869
|
rowClassName: function rowClassName(record) {
|
|
34107
|
-
var _props$
|
|
34108
|
-
return record[rowKey] == (!(props === null || props === void 0 ? void 0 : (_props$
|
|
33870
|
+
var _props$ctx1, _props$value3, _props$ctx10, _props$ctx10$form;
|
|
33871
|
+
return record[rowKey] == (!(props === null || props === void 0 ? void 0 : (_props$ctx1 = props.ctx) === null || _props$ctx1 === void 0 ? void 0 : _props$ctx1.form) && ((props === null || props === void 0 ? void 0 : (_props$value3 = props.value) === null || _props$value3 === void 0 ? void 0 : _props$value3.key) || (props === null || props === void 0 ? void 0 : props.value)) || (props === null || props === void 0 ? void 0 : (_props$ctx10 = props.ctx) === null || _props$ctx10 === void 0 ? void 0 : (_props$ctx10$form = _props$ctx10.form) === null || _props$ctx10$form === void 0 ? void 0 : _props$ctx10$form.getFieldValue(props.id))) ? 'tableSelectedRow' : '';
|
|
34109
33872
|
},
|
|
34110
33873
|
onRow: function onRow(record) {
|
|
34111
33874
|
return {
|
|
@@ -34150,10 +33913,10 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
|
|
|
34150
33913
|
}, "\u63D0\u4EA4"), /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
34151
33914
|
type: "default",
|
|
34152
33915
|
onClick: function onClick() {
|
|
34153
|
-
var _queryTableRef$
|
|
33916
|
+
var _queryTableRef$curren14, _queryTableRef$curren15, _queryTableRef$curren16;
|
|
34154
33917
|
props.onCancel();
|
|
34155
33918
|
//@ts-ignore
|
|
34156
|
-
queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$
|
|
33919
|
+
queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$curren14 = queryTableRef.current) === null || _queryTableRef$curren14 === void 0 ? void 0 : (_queryTableRef$curren15 = _queryTableRef$curren14.tableRef) === null || _queryTableRef$curren15 === void 0 ? void 0 : (_queryTableRef$curren16 = _queryTableRef$curren15.current) === null || _queryTableRef$curren16 === void 0 ? void 0 : _queryTableRef$curren16.clearRowSelection();
|
|
34157
33920
|
}
|
|
34158
33921
|
}, "\u53D6\u6D88"))));
|
|
34159
33922
|
});
|
|
@@ -34377,19 +34140,19 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
34377
34140
|
_useState2 = _slicedToArray(_useState, 2),
|
|
34378
34141
|
handSource = _useState2[0],
|
|
34379
34142
|
setHandSource = _useState2[1];
|
|
34380
|
-
React$1.useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
34143
|
+
React$1.useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
34381
34144
|
var resData, data;
|
|
34382
|
-
return
|
|
34383
|
-
while (1) switch (_context.
|
|
34145
|
+
return _regenerator().w(function (_context) {
|
|
34146
|
+
while (1) switch (_context.n) {
|
|
34384
34147
|
case 0:
|
|
34385
34148
|
if (!(!source && initRequestSource)) {
|
|
34386
|
-
_context.
|
|
34149
|
+
_context.n = 2;
|
|
34387
34150
|
break;
|
|
34388
34151
|
}
|
|
34389
|
-
_context.
|
|
34152
|
+
_context.n = 1;
|
|
34390
34153
|
return initRequestSource();
|
|
34391
|
-
case
|
|
34392
|
-
resData = _context.
|
|
34154
|
+
case 1:
|
|
34155
|
+
resData = _context.v;
|
|
34393
34156
|
data = (resData === null || resData === void 0 ? void 0 : resData.map(function (item) {
|
|
34394
34157
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
34395
34158
|
label: item.text,
|
|
@@ -34397,9 +34160,8 @@ var BsCascader = function BsCascader(_ref) {
|
|
|
34397
34160
|
});
|
|
34398
34161
|
})) || [];
|
|
34399
34162
|
setHandSource(data);
|
|
34400
|
-
case
|
|
34401
|
-
|
|
34402
|
-
return _context.stop();
|
|
34163
|
+
case 2:
|
|
34164
|
+
return _context.a(2);
|
|
34403
34165
|
}
|
|
34404
34166
|
}, _callee);
|
|
34405
34167
|
})), []);
|
|
@@ -34529,20 +34291,17 @@ function getRegularThresholdRange(_x) {
|
|
|
34529
34291
|
return _getRegularThresholdRange.apply(this, arguments);
|
|
34530
34292
|
}
|
|
34531
34293
|
function _getRegularThresholdRange() {
|
|
34532
|
-
_getRegularThresholdRange = _asyncToGenerator(/*#__PURE__*/
|
|
34533
|
-
return
|
|
34534
|
-
while (1) switch (_context.
|
|
34294
|
+
_getRegularThresholdRange = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(params) {
|
|
34295
|
+
return _regenerator().w(function (_context) {
|
|
34296
|
+
while (1) switch (_context.n) {
|
|
34535
34297
|
case 0:
|
|
34536
|
-
return _context.
|
|
34298
|
+
return _context.a(2, requestUtil({
|
|
34537
34299
|
url: "/basic/regularThresholdRange/getVals/".concat(params.queryIdentify),
|
|
34538
34300
|
method: 'POST',
|
|
34539
34301
|
data: _objectSpread2(_objectSpread2({}, params), {}, {
|
|
34540
34302
|
queryIdentify: undefined
|
|
34541
34303
|
})
|
|
34542
34304
|
}));
|
|
34543
|
-
case 1:
|
|
34544
|
-
case "end":
|
|
34545
|
-
return _context.stop();
|
|
34546
34305
|
}
|
|
34547
34306
|
}, _callee);
|
|
34548
34307
|
}));
|
|
@@ -34683,24 +34442,24 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34683
34442
|
};
|
|
34684
34443
|
//规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
|
|
34685
34444
|
_this.getRegularThresholdRange = /*#__PURE__*/function () {
|
|
34686
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
34445
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
|
|
34687
34446
|
var thresholdQuery, extraRequestUrl, querParams, needQueryList, res;
|
|
34688
|
-
return
|
|
34689
|
-
while (1) switch (_context.
|
|
34447
|
+
return _regenerator().w(function (_context) {
|
|
34448
|
+
while (1) switch (_context.n) {
|
|
34690
34449
|
case 0:
|
|
34691
34450
|
if (queryIdentify) {
|
|
34692
|
-
_context.
|
|
34451
|
+
_context.n = 1;
|
|
34693
34452
|
break;
|
|
34694
34453
|
}
|
|
34695
|
-
return _context.
|
|
34696
|
-
case
|
|
34454
|
+
return _context.a(2);
|
|
34455
|
+
case 1:
|
|
34697
34456
|
thresholdQuery = _this.state.thresholdQuery;
|
|
34698
34457
|
extraRequestUrl = '';
|
|
34699
34458
|
querParams = setParams(propertyCode, thresholdQuery);
|
|
34700
34459
|
if (!queryIdentityInfo.find(function (item) {
|
|
34701
34460
|
return item.identity == propertyCode;
|
|
34702
34461
|
})) {
|
|
34703
|
-
_context.
|
|
34462
|
+
_context.n = 3;
|
|
34704
34463
|
break;
|
|
34705
34464
|
}
|
|
34706
34465
|
//判断查询属性枚举时有没有必传参数,如果必传参数没有值则不调用查询接口
|
|
@@ -34714,15 +34473,15 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34714
34473
|
if (!needQueryList.some(function (item) {
|
|
34715
34474
|
return !querParams[item] || !querParams[item].length;
|
|
34716
34475
|
})) {
|
|
34717
|
-
_context.
|
|
34476
|
+
_context.n = 2;
|
|
34718
34477
|
break;
|
|
34719
34478
|
}
|
|
34720
|
-
return _context.
|
|
34721
|
-
case
|
|
34479
|
+
return _context.a(2);
|
|
34480
|
+
case 2:
|
|
34722
34481
|
extraRequestUrl = queryIdentityInfo.find(function (item) {
|
|
34723
34482
|
return item.identity == propertyCode;
|
|
34724
34483
|
}).requestUrl || '';
|
|
34725
|
-
case
|
|
34484
|
+
case 3:
|
|
34726
34485
|
if (queryIdentifyType === 'dictCodeIdentify') {
|
|
34727
34486
|
extraRequestUrl = "bscDictItem/selectDictItemsByDictCode"; // 字典接口
|
|
34728
34487
|
querParams = {
|
|
@@ -34733,7 +34492,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34733
34492
|
// querParams = { dictCode: queryIdentify }
|
|
34734
34493
|
}
|
|
34735
34494
|
if (!extraRequestUrl) {
|
|
34736
|
-
_context.
|
|
34495
|
+
_context.n = 4;
|
|
34737
34496
|
break;
|
|
34738
34497
|
}
|
|
34739
34498
|
if (queryIdentify == 'maintain_area_code') {
|
|
@@ -34772,43 +34531,42 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
34772
34531
|
return handleData;
|
|
34773
34532
|
}
|
|
34774
34533
|
});
|
|
34775
|
-
_context.
|
|
34534
|
+
_context.n = 8;
|
|
34776
34535
|
break;
|
|
34777
|
-
case
|
|
34536
|
+
case 4:
|
|
34778
34537
|
if (!(queryIdentifyType == 'objectPropertyListIdentify')) {
|
|
34779
|
-
_context.
|
|
34538
|
+
_context.n = 5;
|
|
34780
34539
|
break;
|
|
34781
34540
|
}
|
|
34782
34541
|
_this.setState({
|
|
34783
34542
|
thresholdList: queryIdentify
|
|
34784
34543
|
});
|
|
34785
|
-
_context.
|
|
34544
|
+
_context.n = 8;
|
|
34786
34545
|
break;
|
|
34787
|
-
case
|
|
34546
|
+
case 5:
|
|
34788
34547
|
if (!(queryIdentifyType == 'objectPropertyCodeIdentify')) {
|
|
34789
|
-
_context.
|
|
34548
|
+
_context.n = 6;
|
|
34790
34549
|
break;
|
|
34791
34550
|
}
|
|
34792
34551
|
// TODO待处理
|
|
34793
34552
|
_this.setState({
|
|
34794
34553
|
thresholdList: []
|
|
34795
34554
|
});
|
|
34796
|
-
_context.
|
|
34555
|
+
_context.n = 8;
|
|
34797
34556
|
break;
|
|
34798
|
-
case
|
|
34557
|
+
case 6:
|
|
34799
34558
|
querParams.queryIdentify = queryIdentify;
|
|
34800
|
-
_context.
|
|
34559
|
+
_context.n = 7;
|
|
34801
34560
|
return getRegularThresholdRange(querParams);
|
|
34802
|
-
case
|
|
34803
|
-
res = _context.
|
|
34561
|
+
case 7:
|
|
34562
|
+
res = _context.v;
|
|
34804
34563
|
if (handleError(res)) {
|
|
34805
34564
|
_this.setState({
|
|
34806
34565
|
thresholdList: (res === null || res === void 0 ? void 0 : res.data) || []
|
|
34807
34566
|
});
|
|
34808
34567
|
}
|
|
34809
|
-
case
|
|
34810
|
-
|
|
34811
|
-
return _context.stop();
|
|
34568
|
+
case 8:
|
|
34569
|
+
return _context.a(2);
|
|
34812
34570
|
}
|
|
34813
34571
|
}, _callee);
|
|
34814
34572
|
}));
|
|
@@ -35640,11 +35398,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35640
35398
|
isAll: true,
|
|
35641
35399
|
needNameAndCode: true,
|
|
35642
35400
|
notChangeOnSelect: true,
|
|
35643
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
35644
|
-
return
|
|
35645
|
-
while (1) switch (_context2.
|
|
35401
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
|
|
35402
|
+
return _regenerator().w(function (_context2) {
|
|
35403
|
+
while (1) switch (_context2.n) {
|
|
35646
35404
|
case 0:
|
|
35647
|
-
_context2.
|
|
35405
|
+
_context2.n = 1;
|
|
35648
35406
|
return bssula.request({
|
|
35649
35407
|
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
35650
35408
|
method: 'get',
|
|
@@ -35661,11 +35419,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35661
35419
|
return handleData;
|
|
35662
35420
|
}
|
|
35663
35421
|
});
|
|
35664
|
-
case
|
|
35665
|
-
return _context2.
|
|
35666
|
-
case 3:
|
|
35667
|
-
case "end":
|
|
35668
|
-
return _context2.stop();
|
|
35422
|
+
case 1:
|
|
35423
|
+
return _context2.a(2, _context2.v);
|
|
35669
35424
|
}
|
|
35670
35425
|
}, _callee2);
|
|
35671
35426
|
})),
|
|
@@ -35689,11 +35444,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35689
35444
|
isAll: true,
|
|
35690
35445
|
needNameAndCode: true,
|
|
35691
35446
|
notChangeOnSelect: true,
|
|
35692
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
35693
|
-
return
|
|
35694
|
-
while (1) switch (_context3.
|
|
35447
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3() {
|
|
35448
|
+
return _regenerator().w(function (_context3) {
|
|
35449
|
+
while (1) switch (_context3.n) {
|
|
35695
35450
|
case 0:
|
|
35696
|
-
_context3.
|
|
35451
|
+
_context3.n = 1;
|
|
35697
35452
|
return bssula.request({
|
|
35698
35453
|
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
35699
35454
|
method: 'get',
|
|
@@ -35710,11 +35465,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35710
35465
|
return handleData;
|
|
35711
35466
|
}
|
|
35712
35467
|
});
|
|
35713
|
-
case
|
|
35714
|
-
return _context3.
|
|
35715
|
-
case 3:
|
|
35716
|
-
case "end":
|
|
35717
|
-
return _context3.stop();
|
|
35468
|
+
case 1:
|
|
35469
|
+
return _context3.a(2, _context3.v);
|
|
35718
35470
|
}
|
|
35719
35471
|
}, _callee3);
|
|
35720
35472
|
})),
|
|
@@ -35740,11 +35492,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35740
35492
|
isAll: true,
|
|
35741
35493
|
needNameAndCode: true,
|
|
35742
35494
|
notChangeOnSelect: true,
|
|
35743
|
-
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/
|
|
35744
|
-
return
|
|
35745
|
-
while (1) switch (_context4.
|
|
35495
|
+
initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4() {
|
|
35496
|
+
return _regenerator().w(function (_context4) {
|
|
35497
|
+
while (1) switch (_context4.n) {
|
|
35746
35498
|
case 0:
|
|
35747
|
-
_context4.
|
|
35499
|
+
_context4.n = 1;
|
|
35748
35500
|
return bssula.request({
|
|
35749
35501
|
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
35750
35502
|
method: 'get',
|
|
@@ -35761,11 +35513,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
35761
35513
|
return handleData;
|
|
35762
35514
|
}
|
|
35763
35515
|
});
|
|
35764
|
-
case
|
|
35765
|
-
return _context4.
|
|
35766
|
-
case 3:
|
|
35767
|
-
case "end":
|
|
35768
|
-
return _context4.stop();
|
|
35516
|
+
case 1:
|
|
35517
|
+
return _context4.a(2, _context4.v);
|
|
35769
35518
|
}
|
|
35770
35519
|
}, _callee4);
|
|
35771
35520
|
})),
|
|
@@ -36452,8 +36201,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36452
36201
|
}
|
|
36453
36202
|
}));
|
|
36454
36203
|
} else {
|
|
36455
|
-
var
|
|
36456
|
-
var _currentValue9 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((
|
|
36204
|
+
var _values0;
|
|
36205
|
+
var _currentValue9 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values0 = values) === null || _values0 === void 0 ? void 0 : _values0.map(function (s, vIndex) {
|
|
36457
36206
|
return {
|
|
36458
36207
|
key: s,
|
|
36459
36208
|
label: valueNames[vIndex],
|
|
@@ -36741,8 +36490,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36741
36490
|
}
|
|
36742
36491
|
}));
|
|
36743
36492
|
} else {
|
|
36744
|
-
var
|
|
36745
|
-
var
|
|
36493
|
+
var _values1;
|
|
36494
|
+
var _currentValue0 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values1 = values) === null || _values1 === void 0 ? void 0 : _values1.map(function (s, vIndex) {
|
|
36746
36495
|
return {
|
|
36747
36496
|
key: s,
|
|
36748
36497
|
label: valueNames[vIndex],
|
|
@@ -36764,7 +36513,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36764
36513
|
} : {}),
|
|
36765
36514
|
disabled: disabled,
|
|
36766
36515
|
labelInValue: true,
|
|
36767
|
-
value:
|
|
36516
|
+
value: _currentValue0,
|
|
36768
36517
|
requestConfig: _objectSpread2(_objectSpread2({}, dataChoiceBusinessType === 311 ? {
|
|
36769
36518
|
otherParams: {
|
|
36770
36519
|
// 配送方式只选择标准配送方式
|
|
@@ -36862,8 +36611,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36862
36611
|
}
|
|
36863
36612
|
}));
|
|
36864
36613
|
} else {
|
|
36865
|
-
var
|
|
36866
|
-
var
|
|
36614
|
+
var _values10;
|
|
36615
|
+
var _currentValue1 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values10 = values) === null || _values10 === void 0 ? void 0 : _values10.map(function (s, vIndex) {
|
|
36867
36616
|
return {
|
|
36868
36617
|
key: s,
|
|
36869
36618
|
label: valueNames[vIndex],
|
|
@@ -36885,7 +36634,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36885
36634
|
} : {}),
|
|
36886
36635
|
disabled: disabled,
|
|
36887
36636
|
labelInValue: true,
|
|
36888
|
-
value:
|
|
36637
|
+
value: _currentValue1,
|
|
36889
36638
|
requestConfig: {
|
|
36890
36639
|
filterInit: 'qp-code-in'
|
|
36891
36640
|
},
|
|
@@ -36978,8 +36727,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
36978
36727
|
}
|
|
36979
36728
|
}));
|
|
36980
36729
|
} else {
|
|
36981
|
-
var
|
|
36982
|
-
var
|
|
36730
|
+
var _values11;
|
|
36731
|
+
var _currentValue10 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values11 = values) === null || _values11 === void 0 ? void 0 : _values11.map(function (s, vIndex) {
|
|
36983
36732
|
return {
|
|
36984
36733
|
key: s,
|
|
36985
36734
|
label: valueNames[vIndex],
|
|
@@ -37001,7 +36750,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
37001
36750
|
} : {}),
|
|
37002
36751
|
disabled: disabled,
|
|
37003
36752
|
labelInValue: true,
|
|
37004
|
-
value:
|
|
36753
|
+
value: _currentValue10,
|
|
37005
36754
|
requestConfig: {
|
|
37006
36755
|
filterInit: 'qp-brandCode-in'
|
|
37007
36756
|
},
|
|
@@ -37192,8 +36941,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
37192
36941
|
}
|
|
37193
36942
|
}));
|
|
37194
36943
|
} else {
|
|
37195
|
-
var
|
|
37196
|
-
var
|
|
36944
|
+
var _values12;
|
|
36945
|
+
var _currentValue11 = dataInputBusinessType === 12 ? ((_values12 = values) === null || _values12 === void 0 ? void 0 : _values12.map(function (s, vIndex) {
|
|
37197
36946
|
return {
|
|
37198
36947
|
key: s,
|
|
37199
36948
|
label: valueNames[vIndex]
|
|
@@ -37221,7 +36970,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
|
|
|
37221
36970
|
isSearchForm: true,
|
|
37222
36971
|
customSelectorConfig: (others === null || others === void 0 ? void 0 : others.customSelectorConfig) || {},
|
|
37223
36972
|
disabled: disabled,
|
|
37224
|
-
value:
|
|
36973
|
+
value: _currentValue11,
|
|
37225
36974
|
onChange: function onChange(value, sourceList) {
|
|
37226
36975
|
if (dataInputBusinessType === 12) {
|
|
37227
36976
|
var _value$map3, _sourceList$filter3;
|
|
@@ -37541,9 +37290,9 @@ var App$1 = function App(_ref) {
|
|
|
37541
37290
|
UpdateState(res);
|
|
37542
37291
|
};
|
|
37543
37292
|
var _useState9 = React$1.useState(false),
|
|
37544
|
-
|
|
37545
|
-
isModalVisible =
|
|
37546
|
-
setIsModalVisible =
|
|
37293
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
37294
|
+
isModalVisible = _useState0[0],
|
|
37295
|
+
setIsModalVisible = _useState0[1];
|
|
37547
37296
|
var showModal = function showModal() {
|
|
37548
37297
|
setIsModalVisible(true);
|
|
37549
37298
|
};
|
|
@@ -38024,27 +37773,26 @@ function RenderCompItem(props) {
|
|
|
38024
37773
|
dictData = _useState2[0],
|
|
38025
37774
|
setDictData = _useState2[1];
|
|
38026
37775
|
var getDictData = /*#__PURE__*/function () {
|
|
38027
|
-
var _ref = _asyncToGenerator(/*#__PURE__*/
|
|
37776
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
|
|
38028
37777
|
var _data$map;
|
|
38029
37778
|
var data;
|
|
38030
|
-
return
|
|
38031
|
-
while (1) switch (_context.
|
|
37779
|
+
return _regenerator().w(function (_context) {
|
|
37780
|
+
while (1) switch (_context.n) {
|
|
38032
37781
|
case 0:
|
|
38033
|
-
_context.
|
|
37782
|
+
_context.n = 1;
|
|
38034
37783
|
return bssula.request({
|
|
38035
37784
|
url: "/basic/bscDictItem/allItemList?qp-code-eq=".concat(ites.dictionaryCode)
|
|
38036
37785
|
});
|
|
38037
|
-
case
|
|
38038
|
-
data = _context.
|
|
37786
|
+
case 1:
|
|
37787
|
+
data = _context.v;
|
|
38039
37788
|
setDictData(data === null || data === void 0 ? void 0 : (_data$map = data.map) === null || _data$map === void 0 ? void 0 : _data$map.call(data, function (item) {
|
|
38040
37789
|
return {
|
|
38041
37790
|
text: item.dictItemName,
|
|
38042
37791
|
value: item.dictItemCode
|
|
38043
37792
|
};
|
|
38044
37793
|
}));
|
|
38045
|
-
case
|
|
38046
|
-
|
|
38047
|
-
return _context.stop();
|
|
37794
|
+
case 2:
|
|
37795
|
+
return _context.a(2);
|
|
38048
37796
|
}
|
|
38049
37797
|
}, _callee);
|
|
38050
37798
|
}));
|
|
@@ -38285,11 +38033,11 @@ function RenderCompItem(props) {
|
|
|
38285
38033
|
needNameAndCode: true,
|
|
38286
38034
|
notChangeOnSelect: true,
|
|
38287
38035
|
initRequestSource: function () {
|
|
38288
|
-
var _initRequestSource = _asyncToGenerator(/*#__PURE__*/
|
|
38289
|
-
return
|
|
38290
|
-
while (1) switch (_context2.
|
|
38036
|
+
var _initRequestSource = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
|
|
38037
|
+
return _regenerator().w(function (_context2) {
|
|
38038
|
+
while (1) switch (_context2.n) {
|
|
38291
38039
|
case 0:
|
|
38292
|
-
_context2.
|
|
38040
|
+
_context2.n = 1;
|
|
38293
38041
|
return bssula.request({
|
|
38294
38042
|
url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
|
|
38295
38043
|
method: 'get',
|
|
@@ -38307,11 +38055,8 @@ function RenderCompItem(props) {
|
|
|
38307
38055
|
return handleData;
|
|
38308
38056
|
}
|
|
38309
38057
|
});
|
|
38310
|
-
case
|
|
38311
|
-
return _context2.
|
|
38312
|
-
case 3:
|
|
38313
|
-
case "end":
|
|
38314
|
-
return _context2.stop();
|
|
38058
|
+
case 1:
|
|
38059
|
+
return _context2.a(2, _context2.v);
|
|
38315
38060
|
}
|
|
38316
38061
|
}, _callee2);
|
|
38317
38062
|
}));
|
|
@@ -40367,13 +40112,13 @@ var BaseRule = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
40367
40112
|
ruleTypeData = _useState8[0],
|
|
40368
40113
|
setRuleTypeData = _useState8[1];
|
|
40369
40114
|
var _useState9 = React$1.useState([]),
|
|
40370
|
-
|
|
40371
|
-
ruleReturnConfig =
|
|
40372
|
-
setRuleReturnConfig =
|
|
40373
|
-
var
|
|
40374
|
-
|
|
40375
|
-
templateData =
|
|
40376
|
-
setTemplateData =
|
|
40115
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
40116
|
+
ruleReturnConfig = _useState0[0],
|
|
40117
|
+
setRuleReturnConfig = _useState0[1];
|
|
40118
|
+
var _useState1 = React$1.useState({}),
|
|
40119
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
40120
|
+
templateData = _useState10[0],
|
|
40121
|
+
setTemplateData = _useState10[1];
|
|
40377
40122
|
var loadRuleReturnConfig = function loadRuleReturnConfig(currentSceneId) {
|
|
40378
40123
|
bssula.request({
|
|
40379
40124
|
url: "/basic/ruleTemplate/".concat(currentSceneId),
|
|
@@ -40709,25 +40454,25 @@ var index$7 = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
|
|
|
40709
40454
|
regularDataList = _useState8[0],
|
|
40710
40455
|
setRegularDataList = _useState8[1];
|
|
40711
40456
|
var _useState9 = React$1.useState([]),
|
|
40712
|
-
|
|
40713
|
-
baseRuleDetailList =
|
|
40714
|
-
setBaseRuleDetailList =
|
|
40715
|
-
var
|
|
40457
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
40458
|
+
baseRuleDetailList = _useState0[0],
|
|
40459
|
+
setBaseRuleDetailList = _useState0[1]; // 规则实例详情集合
|
|
40460
|
+
var _useState1 = React$1.useState([]),
|
|
40461
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
40462
|
+
systemVariableList = _useState10[0],
|
|
40463
|
+
setSystemVariableList = _useState10[1];
|
|
40464
|
+
var _useState11 = React$1.useState(false),
|
|
40716
40465
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
40717
|
-
|
|
40718
|
-
|
|
40466
|
+
isGetDefRuleDataRes = _useState12[0],
|
|
40467
|
+
setIsGetDefRuleDataRes = _useState12[1]; // 为了在回显的时候辨别异步查询是否已完成,防止提前认为为新增设置了模板数据,导致再渲染编辑时候 输入框defaultValue不再渲染问题
|
|
40719
40468
|
var _useState13 = React$1.useState(false),
|
|
40720
40469
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
40721
|
-
|
|
40722
|
-
|
|
40470
|
+
isGetRuleDataRes = _useState14[0],
|
|
40471
|
+
setIsGetRuleDataRes = _useState14[1];
|
|
40723
40472
|
var _useState15 = React$1.useState(false),
|
|
40724
40473
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
40725
|
-
|
|
40726
|
-
|
|
40727
|
-
var _useState17 = React$1.useState(false),
|
|
40728
|
-
_useState18 = _slicedToArray(_useState17, 2),
|
|
40729
|
-
groupOtherPriorityList = _useState18[0],
|
|
40730
|
-
setGroupOtherPriorityList = _useState18[1];
|
|
40474
|
+
groupOtherPriorityList = _useState16[0],
|
|
40475
|
+
setGroupOtherPriorityList = _useState16[1];
|
|
40731
40476
|
var baseRuleRef = React$1.useRef();
|
|
40732
40477
|
var currentSceneName = (datail === null || datail === void 0 ? void 0 : datail.name) || '';
|
|
40733
40478
|
// 查询规则组下所有规则实例
|