@bit-sun/business-component 4.2.0-alpha.6 → 4.2.0-alpha.6-test

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.
Files changed (68) hide show
  1. package/.fatherrc.ts +24 -1
  2. package/README.md +75 -12
  3. package/dist/components/Business/AddSelectBusiness/index.d.ts +3 -4
  4. package/dist/components/Business/BsLayouts/Components/AllFunc/drawContent.d.ts +1 -2
  5. package/dist/components/Business/BsLayouts/Components/ChooseStore/index.d.ts +1 -2
  6. package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.d.ts +1 -1
  7. package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/leftTree.d.ts +1 -1
  8. package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/rightTree.d.ts +2 -2
  9. package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/DrawContent.d.ts +1 -2
  10. package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/customMenuHeader.d.ts +1 -2
  11. package/dist/components/Business/BsLayouts/Components/CustomerMenu/index.d.ts +1 -1
  12. package/dist/components/Business/BsLayouts/Components/GlobalHeader/index.d.ts +1 -2
  13. package/dist/components/Business/BsLayouts/Components/RightContent/LoginModal.d.ts +1 -2
  14. package/dist/components/Business/BsLayouts/index.d.ts +1 -1
  15. package/dist/components/Business/BsSulaQueryTable/SearchItemSetting.d.ts +5 -5
  16. package/dist/components/Business/BsSulaQueryTable/index.d.ts +1 -2
  17. package/dist/components/Business/BsSulaQueryTable/setting.d.ts +6 -6
  18. package/dist/components/Business/BsSulaQueryTable/utils.d.ts +14 -15
  19. package/dist/components/Business/CommodityEntry/index.d.ts +1 -2
  20. package/dist/components/Business/CommonAlert/index.d.ts +1 -2
  21. package/dist/components/Business/CommonGuideWrapper/index.d.ts +3 -3
  22. package/dist/components/Business/DetailPageWrapper/index.d.ts +11 -12
  23. package/dist/components/Business/HomePageWrapper/index.d.ts +1 -2
  24. package/dist/components/Business/ItemPropertySelector/index.d.ts +1 -2
  25. package/dist/components/Business/JsonQueryTable/components/FieldsModifyModal.d.ts +1 -2
  26. package/dist/components/Business/JsonQueryTable/components/FieldsSettingsTable.d.ts +1 -2
  27. package/dist/components/Business/JsonQueryTable/components/Formula.d.ts +1 -2
  28. package/dist/components/Business/JsonQueryTable/components/MaintainOptions.d.ts +1 -2
  29. package/dist/components/Business/JsonQueryTable/drawer/index.d.ts +1 -2
  30. package/dist/components/Business/PropertyModal/index.d.ts +1 -2
  31. package/dist/components/Business/PropertyModal/propertyGroup.d.ts +1 -1
  32. package/dist/components/Business/SearchSelect/index.d.ts +1 -1
  33. package/dist/components/Business/StateFlow/index.d.ts +1 -2
  34. package/dist/components/Business/TreeSearchSelect/index.d.ts +1 -1
  35. package/dist/components/Business/columnSettingTable/columnSetting.d.ts +6 -6
  36. package/dist/components/Business/columnSettingTable/components/TableSumComponent.d.ts +1 -2
  37. package/dist/components/Business/columnSettingTable/index.d.ts +3 -3
  38. package/dist/components/Business/columnSettingTable/sulaSettingTable.d.ts +3 -3
  39. package/dist/components/Business/columnSettingTable/utils.d.ts +1 -2
  40. package/dist/components/Business/moreTreeTable/FixedScrollBar.d.ts +1 -1
  41. package/dist/components/Common/ParagraphCopier/index.d.ts +1 -1
  42. package/dist/components/Common/Section/index.d.ts +1 -1
  43. package/dist/components/Functional/AddSelect/index.d.ts +1 -2
  44. package/dist/components/Functional/AuthButton/index.d.ts +1 -2
  45. package/dist/components/Functional/DataImport/index.d.ts +3 -3
  46. package/dist/components/Functional/DataValidation/index.d.ts +4 -4
  47. package/dist/components/Functional/ExportFunctions/ExportIcon/index.d.ts +1 -2
  48. package/dist/components/Functional/QueryMutipleInput/index.d.ts +1 -2
  49. package/dist/components/Functional/QueryMutipleSelect/index.d.ts +1 -2
  50. package/dist/components/Functional/SearchSelect/index.d.ts +1 -1
  51. package/dist/components/Functional/SearchSelect/utils.d.ts +2 -3
  52. package/dist/components/Functional/TreeSearchSelect/index.d.ts +1 -2
  53. package/dist/components/Solution/RuleComponent/CustomPlugin/CustomSelector/CustomSelectorModal.d.ts +1 -1
  54. package/dist/components/Solution/RuleComponent/CustomPlugin/CustomSelector/index.d.ts +1 -2
  55. package/dist/components/Solution/RuleComponent/Formula.d.ts +1 -2
  56. package/dist/components/Solution/RuleComponent/InnerSelect.d.ts +1 -2
  57. package/dist/components/Solution/RuleComponent/RenderCompItem.d.ts +1 -2
  58. package/dist/components/Solution/RuleSetter/RuleInstance.d.ts +1 -2
  59. package/dist/components/Solution/RuleSetter/baseRule.d.ts +1 -1
  60. package/dist/components/Solution/RuleSetter/index.d.ts +1 -1
  61. package/dist/index.esm.js +732 -980
  62. package/dist/index.js +732 -980
  63. package/dist/index.umd.js +131990 -0
  64. package/dist/index.umd.min.js +28 -0
  65. package/dist/plugin/TableColumnSetting/index.d.ts +5 -5
  66. package/dist/utils/TableUtils.d.ts +18 -19
  67. package/package.json +2 -1
  68. package/test-umd.html +40 -0
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 s = Object.getOwnPropertySymbols(e);
215
- for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
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.includes(n)) continue;
223
+ if (-1 !== e.indexOf(n)) continue;
224
224
  t[n] = r[n];
225
225
  }
226
226
  return t;
@@ -230,306 +230,115 @@ 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 _regeneratorRuntime() {
234
- _regeneratorRuntime = function () {
235
- return e;
236
- };
237
- var t,
238
- e = {},
239
- r = Object.prototype,
240
- n = r.hasOwnProperty,
241
- o = Object.defineProperty || function (t, e, r) {
242
- t[e] = r.value;
243
- },
244
- i = "function" == typeof Symbol ? Symbol : {},
245
- a = i.iterator || "@@iterator",
246
- c = i.asyncIterator || "@@asyncIterator",
247
- u = i.toStringTag || "@@toStringTag";
248
- function define(t, e, r) {
249
- return Object.defineProperty(t, e, {
250
- value: r,
251
- enumerable: !0,
252
- configurable: !0,
253
- writable: !0
254
- }), t[e];
255
- }
256
- try {
257
- define({}, "");
258
- } catch (t) {
259
- define = function (t, e, r) {
260
- return t[e] = r;
261
- };
262
- }
263
- function wrap(t, e, r, n) {
264
- var i = e && e.prototype instanceof Generator ? e : Generator,
265
- a = Object.create(i.prototype),
266
- c = new Context(n || []);
267
- return o(a, "_invoke", {
268
- value: makeInvokeMethod(t, r, c)
269
- }), a;
270
- }
271
- function tryCatch(t, e, r) {
272
- try {
273
- return {
274
- type: "normal",
275
- arg: t.call(e, r)
276
- };
277
- } catch (t) {
278
- return {
279
- type: "throw",
280
- arg: t
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
- e.wrap = wrap;
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
- var p = {};
294
- define(p, a, function () {
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
- var d = Object.getPrototypeOf,
298
- v = d && d(d(values([])));
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
- __await: t
315
+ w: i,
316
+ m: f
429
317
  };
430
- }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
431
- return this;
432
- }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
433
- void 0 === i && (i = Promise);
434
- var a = new AsyncIterator(wrap(t, r, n, o), i);
435
- return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
436
- return t.done ? t.value : a.next();
437
- });
438
- }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
439
- return this;
440
- }), define(g, "toString", function () {
441
- return "[object Generator]";
442
- }), e.keys = function (t) {
443
- var e = Object(t),
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
- }
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
+ if (r) i ? i(e, r, {
329
+ value: n,
330
+ enumerable: !t,
331
+ configurable: !t,
332
+ writable: !t
333
+ }) : e[r] = n;else {
334
+ function o(r, n) {
335
+ _regeneratorDefine(e, r, function (e) {
336
+ return this._invoke(r, n, e);
337
+ });
522
338
  }
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;
339
+ o("next", 0), o("throw", 1), o("return", 2);
531
340
  }
532
- }, e;
341
+ }, _regeneratorDefine(e, r, n, t);
533
342
  }
534
343
  function _setPrototypeOf(t, e) {
535
344
  return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
@@ -1563,22 +1372,22 @@ var parseToServe = function parseToServe(outdata, revertChart) {
1563
1372
  // sheepMap是表头字段中英文映射
1564
1373
  // sheetCount:表的数量,默认一张
1565
1374
  var resolveFile = /*#__PURE__*/function () {
1566
- var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(file) {
1375
+ var _ref3 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(file) {
1567
1376
  var config,
1568
1377
  data,
1569
1378
  _args = arguments;
1570
- return _regeneratorRuntime().wrap(function _callee$(_context) {
1571
- while (1) switch (_context.prev = _context.next) {
1379
+ return _regenerator().w(function (_context) {
1380
+ while (1) switch (_context.n) {
1572
1381
  case 0:
1573
1382
  config = _args.length > 1 && _args[1] !== undefined ? _args[1] : {
1574
1383
  sheetMap: [],
1575
1384
  sheetCount: 1
1576
1385
  };
1577
- _context.next = 3;
1386
+ _context.n = 1;
1578
1387
  return analyseExcelToByte(file);
1579
- case 3:
1580
- data = _context.sent;
1581
- return _context.abrupt("return", new Promise(function (resolve, reject) {
1388
+ case 1:
1389
+ data = _context.v;
1390
+ return _context.a(2, new Promise(function (resolve, reject) {
1582
1391
  var workbook = XLSX.read(data, {
1583
1392
  type: 'binary'
1584
1393
  });
@@ -1590,9 +1399,6 @@ var resolveFile = /*#__PURE__*/function () {
1590
1399
  var outdata = parseToServe(sheetMapJsonList, config.sheetMap);
1591
1400
  resolve(outdata);
1592
1401
  }));
1593
- case 5:
1594
- case "end":
1595
- return _context.stop();
1596
1402
  }
1597
1403
  }, _callee);
1598
1404
  }));
@@ -1602,41 +1408,40 @@ var resolveFile = /*#__PURE__*/function () {
1602
1408
  }();
1603
1409
  //读取文件
1604
1410
  var readerXlsxToList = /*#__PURE__*/function () {
1605
- var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(file, fileList, uploadRef, done, otherInfo) {
1411
+ var _ref4 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(file, fileList, uploadRef, done, otherInfo) {
1606
1412
  var _ref5, callback, sheetMap, nowFile, data2, data;
1607
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
1608
- while (1) switch (_context2.prev = _context2.next) {
1413
+ return _regenerator().w(function (_context2) {
1414
+ while (1) switch (_context2.n) {
1609
1415
  case 0:
1610
1416
  _ref5 = otherInfo || {}, callback = _ref5.callback, sheetMap = _ref5.sheetMap;
1611
1417
  if (!(Array.isArray(fileList) && fileList.length > 0)) {
1612
- _context2.next = 15;
1418
+ _context2.n = 3;
1613
1419
  break;
1614
1420
  }
1615
1421
  nowFile = fileList[fileList.length - 1]; // 阻止了默认上传file没有originFileObj了 得从fileList中去取
1616
- _context2.next = 5;
1422
+ _context2.n = 1;
1617
1423
  return resolveFile(nowFile.originFileObj, {
1618
1424
  sheetMap: fieldMappingReverse(sheetMap),
1619
1425
  sheetCount: 1
1620
1426
  });
1621
- case 5:
1622
- data2 = _context2.sent;
1427
+ case 1:
1428
+ data2 = _context2.v;
1623
1429
  data = data2[0];
1624
1430
  if (data.length) {
1625
- _context2.next = 10;
1431
+ _context2.n = 2;
1626
1432
  break;
1627
1433
  }
1628
1434
  antd.message.error("\u8BF7\u5148\u5F55\u5165\u6570\u636E\u518D\u5BFC\u5165");
1629
- return _context2.abrupt("return");
1630
- case 10:
1435
+ return _context2.a(2);
1436
+ case 2:
1631
1437
  if (callback) callback(data);
1632
1438
  !callback && antd.message.success("\u5BFC\u5165\u6210\u529F");
1633
- return _context2.abrupt("return", data);
1634
- case 15:
1439
+ return _context2.a(2, data);
1440
+ case 3:
1635
1441
  antd.message.error("\u8BF7\u9009\u62E9\u6587\u4EF6");
1636
- return _context2.abrupt("return");
1637
- case 17:
1638
- case "end":
1639
- return _context2.stop();
1442
+ return _context2.a(2);
1443
+ case 4:
1444
+ return _context2.a(2);
1640
1445
  }
1641
1446
  }, _callee2);
1642
1447
  }));
@@ -2588,17 +2393,14 @@ var requestUtil = function requestUtil(_ref) {
2588
2393
  return request__default['default'](url, parms).then(handleResponseData);
2589
2394
  };
2590
2395
  var handleResponseData = /*#__PURE__*/function () {
2591
- var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(response) {
2592
- return _regeneratorRuntime().wrap(function _callee$(_context) {
2593
- while (1) switch (_context.prev = _context.next) {
2396
+ var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(response) {
2397
+ return _regenerator().w(function (_context) {
2398
+ while (1) switch (_context.n) {
2594
2399
  case 0:
2595
- return _context.abrupt("return", Promise.resolve({
2400
+ return _context.a(2, Promise.resolve({
2596
2401
  data: response,
2597
2402
  status: response.status
2598
2403
  }));
2599
- case 1:
2600
- case "end":
2601
- return _context.stop();
2602
2404
  }
2603
2405
  }, _callee);
2604
2406
  }));
@@ -4741,27 +4543,27 @@ var QueryMutipleSearchSelect = function QueryMutipleSearchSelect(_ref) {
4741
4543
  popvalue = _useState8[0],
4742
4544
  setPopValue = _useState8[1];
4743
4545
  var _useState9 = React$1.useState([]),
4744
- _useState10 = _slicedToArray(_useState9, 2),
4745
- source = _useState10[0],
4746
- setSource = _useState10[1];
4546
+ _useState0 = _slicedToArray(_useState9, 2),
4547
+ source = _useState0[0],
4548
+ setSource = _useState0[1];
4747
4549
  var _useDebounceFn = ahooks.useDebounceFn(function () {
4748
4550
  getData();
4749
4551
  }, {
4750
4552
  wait: 1000
4751
4553
  }),
4752
4554
  run = _useDebounceFn.run;
4753
- var _useState11 = React$1.useState(false),
4555
+ var _useState1 = React$1.useState(false),
4556
+ _useState10 = _slicedToArray(_useState1, 2),
4557
+ fetching = _useState10[0],
4558
+ setFetching = _useState10[1];
4559
+ var _useState11 = React$1.useState(''),
4754
4560
  _useState12 = _slicedToArray(_useState11, 2),
4755
- fetching = _useState12[0],
4756
- setFetching = _useState12[1];
4757
- var _useState13 = React$1.useState(''),
4561
+ searchValue = _useState12[0],
4562
+ setSearchValue = _useState12[1];
4563
+ var _useState13 = React$1.useState(resultSourceKey),
4758
4564
  _useState14 = _slicedToArray(_useState13, 2),
4759
- searchValue = _useState14[0],
4760
- setSearchValue = _useState14[1];
4761
- var _useState15 = React$1.useState(resultSourceKey),
4762
- _useState16 = _slicedToArray(_useState15, 2),
4763
- uniqueValue = _useState16[0],
4764
- setUniqueValue = _useState16[1];
4565
+ uniqueValue = _useState14[0],
4566
+ setUniqueValue = _useState14[1];
4765
4567
  React$1.useEffect(function () {
4766
4568
  setPopValue(value);
4767
4569
  onValueChange(value);
@@ -5178,21 +4980,21 @@ var PropertySelector = function PropertySelector(_ref) {
5178
4980
  notCommonProperty = _useState8[0],
5179
4981
  setNotCommonProperty = _useState8[1];
5180
4982
  var _useState9 = React$1.useState(false),
5181
- _useState10 = _slicedToArray(_useState9, 2),
5182
- visible = _useState10[0],
5183
- setVisible = _useState10[1];
5184
- var _useState11 = React$1.useState(false),
4983
+ _useState0 = _slicedToArray(_useState9, 2),
4984
+ visible = _useState0[0],
4985
+ setVisible = _useState0[1];
4986
+ var _useState1 = React$1.useState(false),
4987
+ _useState10 = _slicedToArray(_useState1, 2),
4988
+ showNotCommon = _useState10[0],
4989
+ setShowNotCommon = _useState10[1]; // 是否展示非常用属性
4990
+ var _useState11 = React$1.useState([]),
5185
4991
  _useState12 = _slicedToArray(_useState11, 2),
5186
- showNotCommon = _useState12[0],
5187
- setShowNotCommon = _useState12[1]; // 是否展示非常用属性
5188
- var _useState13 = React$1.useState([]),
4992
+ classifyOptionList = _useState12[0],
4993
+ setClassifyOptionList = _useState12[1];
4994
+ var _useState13 = React$1.useState('1'),
5189
4995
  _useState14 = _slicedToArray(_useState13, 2),
5190
- classifyOptionList = _useState14[0],
5191
- setClassifyOptionList = _useState14[1];
5192
- var _useState15 = React$1.useState('1'),
5193
- _useState16 = _slicedToArray(_useState15, 2),
5194
- listKey = _useState16[0],
5195
- setListKey = _useState16[1];
4996
+ listKey = _useState14[0],
4997
+ setListKey = _useState14[1];
5196
4998
  React$1.useEffect(function () {
5197
4999
  requestUtil({
5198
5000
  url: '/items/class/withProperty?pageSize=500&currentPage=1',
@@ -5571,29 +5373,29 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
5571
5373
  scrollPage = _useState8[0],
5572
5374
  setScrollPage = _useState8[1];
5573
5375
  var _useState9 = React$1.useState(0),
5574
- _useState10 = _slicedToArray(_useState9, 2),
5575
- itemsTotal = _useState10[0],
5576
- setItemsTotal = _useState10[1];
5577
- var _useState11 = React$1.useState(false),
5376
+ _useState0 = _slicedToArray(_useState9, 2),
5377
+ itemsTotal = _useState0[0],
5378
+ setItemsTotal = _useState0[1];
5379
+ var _useState1 = React$1.useState(false),
5380
+ _useState10 = _slicedToArray(_useState1, 2),
5381
+ fetching = _useState10[0],
5382
+ setFetching = _useState10[1];
5383
+ var _useState11 = React$1.useState(''),
5578
5384
  _useState12 = _slicedToArray(_useState11, 2),
5579
- fetching = _useState12[0],
5580
- setFetching = _useState12[1];
5581
- var _useState13 = React$1.useState(''),
5385
+ searchValue = _useState12[0],
5386
+ setSearchValue = _useState12[1];
5387
+ var _useState13 = React$1.useState(false),
5582
5388
  _useState14 = _slicedToArray(_useState13, 2),
5583
- searchValue = _useState14[0],
5584
- setSearchValue = _useState14[1];
5585
- var _useState15 = React$1.useState(false),
5389
+ isModalVisible = _useState14[0],
5390
+ setIsModalVisible = _useState14[1];
5391
+ var _useState15 = React$1.useState(initVal),
5586
5392
  _useState16 = _slicedToArray(_useState15, 2),
5587
- isModalVisible = _useState16[0],
5588
- setIsModalVisible = _useState16[1];
5589
- var _useState17 = React$1.useState(initVal),
5393
+ popvalue = _useState16[0],
5394
+ setPopValue = _useState16[1];
5395
+ var _useState17 = React$1.useState(resultSourceKey),
5590
5396
  _useState18 = _slicedToArray(_useState17, 2),
5591
- popvalue = _useState18[0],
5592
- setPopValue = _useState18[1];
5593
- var _useState19 = React$1.useState(resultSourceKey),
5594
- _useState20 = _slicedToArray(_useState19, 2),
5595
- uniqueValue = _useState20[0],
5596
- setUniqueValue = _useState20[1];
5397
+ uniqueValue = _useState18[0],
5398
+ setUniqueValue = _useState18[1];
5597
5399
  var _useDebounceFn = ahooks.useDebounceFn(function (v) {
5598
5400
  // 优化搜索参数 支持传多个
5599
5401
  var searchParams = {};
@@ -5622,58 +5424,58 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
5622
5424
  var _Form$useForm = antd.Form.useForm(),
5623
5425
  _Form$useForm2 = _slicedToArray(_Form$useForm, 1),
5624
5426
  form = _Form$useForm2[0];
5427
+ var _useState19 = React$1.useState(true),
5428
+ _useState20 = _slicedToArray(_useState19, 2),
5429
+ collapsed = _useState20[0],
5430
+ setCollapsed = _useState20[1];
5625
5431
  var _useState21 = React$1.useState(true),
5626
5432
  _useState22 = _slicedToArray(_useState21, 2),
5627
- collapsed = _useState22[0],
5628
- setCollapsed = _useState22[1];
5629
- var _useState23 = React$1.useState(true),
5433
+ caretLeftFlag = _useState22[0],
5434
+ setCaretLeftFlag = _useState22[1];
5435
+ var _useState23 = React$1.useState([]),
5630
5436
  _useState24 = _slicedToArray(_useState23, 2),
5631
- caretLeftFlag = _useState24[0],
5632
- setCaretLeftFlag = _useState24[1];
5633
- var _useState25 = React$1.useState([]),
5437
+ tableData = _useState24[0],
5438
+ setTableData = _useState24[1];
5439
+ var _useState25 = React$1.useState(tableInitPagination),
5634
5440
  _useState26 = _slicedToArray(_useState25, 2),
5635
- tableData = _useState26[0],
5636
- setTableData = _useState26[1];
5637
- var _useState27 = React$1.useState(tableInitPagination),
5441
+ tablePagination = _useState26[0],
5442
+ setTablePagination = _useState26[1];
5443
+ var _useState27 = React$1.useState([]),
5638
5444
  _useState28 = _slicedToArray(_useState27, 2),
5639
- tablePagination = _useState28[0],
5640
- setTablePagination = _useState28[1];
5445
+ selectedRowKeys = _useState28[0],
5446
+ setSelectedRowKeys = _useState28[1];
5641
5447
  var _useState29 = React$1.useState([]),
5642
5448
  _useState30 = _slicedToArray(_useState29, 2),
5643
- selectedRowKeys = _useState30[0],
5644
- setSelectedRowKeys = _useState30[1];
5645
- var _useState31 = React$1.useState([]),
5449
+ selectedRows = _useState30[0],
5450
+ setSelectedRows = _useState30[1];
5451
+ var _useState31 = React$1.useState(false),
5646
5452
  _useState32 = _slicedToArray(_useState31, 2),
5647
- selectedRows = _useState32[0],
5648
- setSelectedRows = _useState32[1];
5453
+ checkedAll = _useState32[0],
5454
+ setCheckedAll = _useState32[1];
5649
5455
  var _useState33 = React$1.useState(false),
5650
5456
  _useState34 = _slicedToArray(_useState33, 2),
5651
- checkedAll = _useState34[0],
5652
- setCheckedAll = _useState34[1];
5653
- var _useState35 = React$1.useState(false),
5457
+ indeterminate = _useState34[0],
5458
+ setIndeterminate = _useState34[1];
5459
+ var _useState35 = React$1.useState({}),
5654
5460
  _useState36 = _slicedToArray(_useState35, 2),
5655
- indeterminate = _useState36[0],
5656
- setIndeterminate = _useState36[1];
5657
- var _useState37 = React$1.useState({}),
5461
+ tableFormParams = _useState36[0],
5462
+ setTableFormParams = _useState36[1];
5463
+ var _useState37 = React$1.useState(false),
5658
5464
  _useState38 = _slicedToArray(_useState37, 2),
5659
- tableFormParams = _useState38[0],
5660
- setTableFormParams = _useState38[1];
5661
- var _useState39 = React$1.useState(false),
5465
+ tooltipVisible = _useState38[0],
5466
+ setTooltipVisible = _useState38[1];
5467
+ var _useState39 = React$1.useState(handleTableColumns(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableColumns)),
5662
5468
  _useState40 = _slicedToArray(_useState39, 2),
5663
- tooltipVisible = _useState40[0],
5664
- setTooltipVisible = _useState40[1];
5665
- var _useState41 = React$1.useState(handleTableColumns(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableColumns)),
5469
+ tableShowColumns = _useState40[0],
5470
+ setTabletShowColumns = _useState40[1]; // 默认展示表头-modalTableProps?.tableColumns
5471
+ var _useState41 = React$1.useState(false),
5666
5472
  _useState42 = _slicedToArray(_useState41, 2),
5667
- tableShowColumns = _useState42[0],
5668
- setTabletShowColumns = _useState42[1]; // 默认展示表头-modalTableProps?.tableColumns
5473
+ confirmLoading = _useState42[0],
5474
+ setConfirmLoading = _useState42[1];
5669
5475
  var _useState43 = React$1.useState(false),
5670
5476
  _useState44 = _slicedToArray(_useState43, 2),
5671
- confirmLoading = _useState44[0],
5672
- setConfirmLoading = _useState44[1];
5673
- var _useState45 = React$1.useState(false),
5674
- _useState46 = _slicedToArray(_useState45, 2),
5675
- modalSearched = _useState46[0],
5676
- setModalSearched = _useState46[1];
5477
+ modalSearched = _useState44[0],
5478
+ setModalSearched = _useState44[1];
5677
5479
  var setSelectDataSource = function setSelectDataSource(list, total) {
5678
5480
  setItems(list);
5679
5481
  setItemsTotal(total);
@@ -6143,7 +5945,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
6143
5945
  })) || [];
6144
5946
  var searchList = (modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.noEmptySearchField) ? list : list === null || list === void 0 ? void 0 : list.concat(addKong);
6145
5947
  return searchList.map(function (i, index) {
6146
- var _i$field, _i$field3, _i$field5, _i$field7, _i$field9, _i$field10, _i$field11, _i$field12, _i$field14, _i$field15;
5948
+ var _i$field, _i$field3, _i$field5, _i$field7, _i$field9, _i$field0, _i$field1, _i$field10, _i$field12, _i$field13;
6147
5949
  if ((i === null || i === void 0 ? void 0 : i.type) === 'kong') return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
6148
5950
  span: ColSpan,
6149
5951
  key: i
@@ -6241,7 +6043,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
6241
6043
  disabled: setDisabled(i.name)
6242
6044
  }))));
6243
6045
  }
6244
- if ((i === null || i === void 0 ? void 0 : i.type) === 'multipleQueryInput' || (i === null || i === void 0 ? void 0 : (_i$field10 = i.field) === null || _i$field10 === void 0 ? void 0 : _i$field10.type) === 'multipleQueryInput') {
6046
+ 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') {
6245
6047
  return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
6246
6048
  span: ColSpan,
6247
6049
  key: i.name
@@ -6255,7 +6057,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
6255
6057
  }
6256
6058
  })));
6257
6059
  }
6258
- if ((i === null || i === void 0 ? void 0 : (_i$field11 = i.field) === null || _i$field11 === void 0 ? void 0 : _i$field11.type) === 'proppertySelector') {
6060
+ if ((i === null || i === void 0 ? void 0 : (_i$field1 = i.field) === null || _i$field1 === void 0 ? void 0 : _i$field1.type) === 'proppertySelector') {
6259
6061
  return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
6260
6062
  span: ColSpan,
6261
6063
  key: i.name
@@ -6265,8 +6067,8 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
6265
6067
  key: i.name
6266
6068
  }, /*#__PURE__*/React__default['default'].createElement(PropertySelector, null)));
6267
6069
  }
6268
- if ((i === null || i === void 0 ? void 0 : i.type) === 'itemPropertySelector' || (i === null || i === void 0 ? void 0 : (_i$field12 = i.field) === null || _i$field12 === void 0 ? void 0 : _i$field12.type) === 'itemPropertySelector') {
6269
- var _i$field13;
6070
+ 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') {
6071
+ var _i$field11;
6270
6072
  return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
6271
6073
  span: ColSpan,
6272
6074
  key: i.name
@@ -6279,9 +6081,9 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
6279
6081
  width: '100%'
6280
6082
  },
6281
6083
  placeholder: "\u8BF7\u9009\u62E9"
6282
- }, i === null || i === void 0 ? void 0 : (_i$field13 = i.field) === null || _i$field13 === void 0 ? void 0 : _i$field13.props))));
6084
+ }, i === null || i === void 0 ? void 0 : (_i$field11 = i.field) === null || _i$field11 === void 0 ? void 0 : _i$field11.props))));
6283
6085
  }
6284
- if ((i === null || i === void 0 ? void 0 : (_i$field14 = i.field) === null || _i$field14 === void 0 ? void 0 : _i$field14.type) === 'multipleQuerySearchSelect') {
6086
+ if ((i === null || i === void 0 ? void 0 : (_i$field12 = i.field) === null || _i$field12 === void 0 ? void 0 : _i$field12.type) === 'multipleQuerySearchSelect') {
6285
6087
  return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
6286
6088
  span: ColSpan,
6287
6089
  key: i.name
@@ -6310,7 +6112,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
6310
6112
  placeholder: "\u8BF7\u8F93\u5165",
6311
6113
  allowClear: true,
6312
6114
  maxLength: 100
6313
- }, i === null || i === void 0 ? void 0 : (_i$field15 = i.field) === null || _i$field15 === void 0 ? void 0 : _i$field15.props), {}, {
6115
+ }, i === null || i === void 0 ? void 0 : (_i$field13 = i.field) === null || _i$field13 === void 0 ? void 0 : _i$field13.props), {}, {
6314
6116
  disabled: setDisabled(i.name)
6315
6117
  }))));
6316
6118
  });
@@ -7630,135 +7432,132 @@ var AddSelect = function AddSelect(props) {
7630
7432
  _Form$useForm2 = _slicedToArray(_Form$useForm, 1),
7631
7433
  form = _Form$useForm2[0];
7632
7434
  var _useState9 = React$1.useState(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableSearchForm),
7633
- _useState10 = _slicedToArray(_useState9, 2),
7634
- tableSearchForm = _useState10[0],
7635
- setTableSearchForm = _useState10[1];
7636
- var _useState11 = React$1.useState(true),
7435
+ _useState0 = _slicedToArray(_useState9, 2),
7436
+ tableSearchForm = _useState0[0],
7437
+ setTableSearchForm = _useState0[1];
7438
+ var _useState1 = React$1.useState(true),
7439
+ _useState10 = _slicedToArray(_useState1, 2),
7440
+ caretLeftFlag = _useState10[0],
7441
+ setCaretLeftFlag = _useState10[1];
7442
+ var _useState11 = React$1.useState([]),
7637
7443
  _useState12 = _slicedToArray(_useState11, 2),
7638
- caretLeftFlag = _useState12[0],
7639
- setCaretLeftFlag = _useState12[1];
7640
- var _useState13 = React$1.useState([]),
7641
- _useState14 = _slicedToArray(_useState13, 2),
7642
- tableData = _useState14[0],
7643
- setTableData = _useState14[1];
7644
- var _useState15 = React$1.useState(_objectSpread2({
7444
+ tableData = _useState12[0],
7445
+ setTableData = _useState12[1];
7446
+ var _useState13 = React$1.useState(_objectSpread2({
7645
7447
  total: 0,
7646
7448
  size: "small",
7647
7449
  current: 1,
7648
7450
  pageSize: tableInitPageSize
7649
7451
  }, modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.topTablePagination)),
7452
+ _useState14 = _slicedToArray(_useState13, 2),
7453
+ tablePagination = _useState14[0],
7454
+ setTablePagination = _useState14[1];
7455
+ var _useState15 = React$1.useState([]),
7650
7456
  _useState16 = _slicedToArray(_useState15, 2),
7651
- tablePagination = _useState16[0],
7652
- setTablePagination = _useState16[1];
7653
- var _useState17 = React$1.useState([]),
7457
+ selectedRowKeys = _useState16[0],
7458
+ setSelectedRowKeys = _useState16[1];
7459
+ var _useState17 = React$1.useState({}),
7654
7460
  _useState18 = _slicedToArray(_useState17, 2),
7655
- selectedRowKeys = _useState18[0],
7656
- setSelectedRowKeys = _useState18[1];
7657
- var _useState19 = React$1.useState({}),
7461
+ tableFormParams = _useState18[0],
7462
+ setTableFormParams = _useState18[1];
7463
+ var _useState19 = React$1.useState(false),
7658
7464
  _useState20 = _slicedToArray(_useState19, 2),
7659
- tableFormParams = _useState20[0],
7660
- setTableFormParams = _useState20[1];
7465
+ confirmLoading = _useState20[0],
7466
+ setConfirmLoading = _useState20[1];
7661
7467
  var _useState21 = React$1.useState(false),
7662
7468
  _useState22 = _slicedToArray(_useState21, 2),
7663
- confirmLoading = _useState22[0],
7664
- setConfirmLoading = _useState22[1];
7665
- var _useState23 = React$1.useState(false),
7469
+ confirmContinueLoading = _useState22[0],
7470
+ setConfirmContinueLoading = _useState22[1];
7471
+ var _useState23 = React$1.useState([]),
7666
7472
  _useState24 = _slicedToArray(_useState23, 2),
7667
- confirmContinueLoading = _useState24[0],
7668
- setConfirmContinueLoading = _useState24[1];
7473
+ selectColumns = _useState24[0],
7474
+ setSelectColumns = _useState24[1];
7669
7475
  var _useState25 = React$1.useState([]),
7670
7476
  _useState26 = _slicedToArray(_useState25, 2),
7671
- selectColumns = _useState26[0],
7672
- setSelectColumns = _useState26[1];
7477
+ showColumns = _useState26[0],
7478
+ setShowColumns = _useState26[1];
7673
7479
  var _useState27 = React$1.useState([]),
7674
7480
  _useState28 = _slicedToArray(_useState27, 2),
7675
- showColumns = _useState28[0],
7676
- setShowColumns = _useState28[1];
7481
+ tableColumns = _useState28[0],
7482
+ setTableColumns = _useState28[1];
7677
7483
  var _useState29 = React$1.useState([]),
7678
7484
  _useState30 = _slicedToArray(_useState29, 2),
7679
- tableColumns = _useState30[0],
7680
- setTableColumns = _useState30[1];
7681
- var _useState31 = React$1.useState([]),
7682
- _useState32 = _slicedToArray(_useState31, 2),
7683
- showToChooseColumns = _useState32[0],
7684
- setShowToChooseColumns = _useState32[1];
7485
+ showToChooseColumns = _useState30[0],
7486
+ setShowToChooseColumns = _useState30[1];
7685
7487
  var codeToChoose = tableCodeList[0] || initTableCode[businessType][0];
7686
7488
  var codeSelected = tableCodeList[1] || initTableCode[businessType][1];
7687
7489
  // FIXME: 特殊业务逻辑
7688
7490
  var checkSelectChange = /*#__PURE__*/function () {
7689
- var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
7690
- var result;
7691
- return _regeneratorRuntime().wrap(function _callee$(_context) {
7692
- while (1) switch (_context.prev = _context.next) {
7491
+ var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
7492
+ var result, _t;
7493
+ return _regenerator().w(function (_context) {
7494
+ while (1) switch (_context.n) {
7693
7495
  case 0:
7694
7496
  if (!(bType == 'skc' && tList.some(function (i) {
7695
7497
  return i[recordKey] == recordItem[recordKey] && i[selectItem.dataIndex] == changeValue;
7696
7498
  }))) {
7697
- _context.next = 3;
7499
+ _context.n = 1;
7698
7500
  break;
7699
7501
  }
7700
7502
  antd.message.warning('相同skc配码不可设置相同哦');
7701
- return _context.abrupt("return", false);
7702
- case 3:
7503
+ return _context.a(2, false);
7504
+ case 1:
7703
7505
  if (!(bType == 'spu')) {
7704
- _context.next = 26;
7506
+ _context.n = 9;
7705
7507
  break;
7706
7508
  }
7707
7509
  if (!(selectItem.dataIndex == 'colorName' && tList.some(function (i) {
7708
7510
  return i[recordKey] == recordItem[recordKey] && i.selectPropertyGroupCode == recordItem.selectPropertyGroupCode && i[selectItem.dataIndex] == changeValue;
7709
7511
  }))) {
7710
- _context.next = 7;
7512
+ _context.n = 2;
7711
7513
  break;
7712
7514
  }
7713
7515
  antd.message.warning('相同商品相同配码颜色不可设置相同哦');
7714
- return _context.abrupt("return", false);
7715
- case 7:
7516
+ return _context.a(2, false);
7517
+ case 2:
7716
7518
  if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && !recordItem.colorName)) {
7717
- _context.next = 10;
7519
+ _context.n = 3;
7718
7520
  break;
7719
7521
  }
7720
7522
  antd.message.warning('请先选择颜色!');
7721
- return _context.abrupt("return", false);
7722
- case 10:
7523
+ return _context.a(2, false);
7524
+ case 3:
7723
7525
  if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && tList.some(function (i) {
7724
7526
  return i[recordKey] == recordItem[recordKey] && i.colorName == recordItem.colorName && i[selectItem.dataIndex] == changeValue;
7725
7527
  }))) {
7726
- _context.next = 13;
7528
+ _context.n = 4;
7727
7529
  break;
7728
7530
  }
7729
7531
  antd.message.warning('相同商品相同颜色配码不可设置相同哦');
7730
- return _context.abrupt("return", false);
7731
- case 13:
7532
+ return _context.a(2, false);
7533
+ case 4:
7732
7534
  if (!(selectItem.dataIndex == 'selectPropertyGroupCode')) {
7733
- _context.next = 26;
7535
+ _context.n = 9;
7734
7536
  break;
7735
7537
  }
7736
7538
  result = true;
7737
- _context.prev = 15;
7738
- _context.next = 18;
7539
+ _context.p = 5;
7540
+ _context.n = 6;
7739
7541
  return checkSpuMatchCode({
7740
7542
  skcCode: recordItem[recordKey],
7741
7543
  matchingCode: changeValue,
7742
7544
  ext1: recordItem.colorName
7743
7545
  });
7744
- case 18:
7745
- result = _context.sent;
7546
+ case 6:
7547
+ result = _context.v;
7746
7548
  result = true;
7747
- _context.next = 25;
7549
+ _context.n = 8;
7748
7550
  break;
7749
- case 22:
7750
- _context.prev = 22;
7751
- _context.t0 = _context["catch"](15);
7752
- result = typeof _context.t0 == 'boolean' ? _context.t0 : false;
7753
- case 25:
7754
- return _context.abrupt("return", result);
7755
- case 26:
7756
- return _context.abrupt("return", true);
7757
- case 27:
7758
- case "end":
7759
- return _context.stop();
7760
- }
7761
- }, _callee, null, [[15, 22]]);
7551
+ case 7:
7552
+ _context.p = 7;
7553
+ _t = _context.v;
7554
+ result = typeof _t == 'boolean' ? _t : false;
7555
+ case 8:
7556
+ return _context.a(2, result);
7557
+ case 9:
7558
+ return _context.a(2, true);
7559
+ }
7560
+ }, _callee, null, [[5, 7]]);
7762
7561
  }));
7763
7562
  return function checkSelectChange(_x, _x2, _x3, _x4, _x5, _x6) {
7764
7563
  return _ref2.apply(this, arguments);
@@ -7946,19 +7745,19 @@ var AddSelect = function AddSelect(props) {
7946
7745
  return /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2(_objectSpread2({}, item.selectProps), {}, {
7947
7746
  value: text || null,
7948
7747
  onChange: function () {
7949
- var _onChange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
7950
- var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules;
7951
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
7952
- while (1) switch (_context2.prev = _context2.next) {
7748
+ var _onChange = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(value) {
7749
+ var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules, _t2;
7750
+ return _regenerator().w(function (_context2) {
7751
+ while (1) switch (_context2.n) {
7953
7752
  case 0:
7954
7753
  dataSourceSelectItem = (dataSourceList === null || dataSourceList === void 0 ? void 0 : dataSourceList.find(function (d) {
7955
7754
  return d[selectKey] == value;
7956
7755
  })) || {};
7957
7756
  if (!(item === null || item === void 0 ? void 0 : item.selectChangeCallback)) {
7958
- _context2.next = 6;
7757
+ _context2.n = 2;
7959
7758
  break;
7960
7759
  }
7961
- _context2.next = 4;
7760
+ _context2.n = 1;
7962
7761
  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, {
7963
7762
  record: record,
7964
7763
  index: index,
@@ -7968,10 +7767,10 @@ var AddSelect = function AddSelect(props) {
7968
7767
  dataSourceSelectItem: dataSourceSelectItem,
7969
7768
  editRecord: editRecord
7970
7769
  });
7971
- case 4:
7972
- _context2.next = 25;
7770
+ case 1:
7771
+ _context2.n = 10;
7973
7772
  break;
7974
- case 6:
7773
+ case 2:
7975
7774
  // 更新当前行数据函数
7976
7775
  changeValue = function changeValue(v, dSSItem) {
7977
7776
  var _item$dataSourceSelec;
@@ -7984,12 +7783,12 @@ var AddSelect = function AddSelect(props) {
7984
7783
  }
7985
7784
  }; // 处理校验,默认不校验
7986
7785
  isCheckPass = true;
7987
- _context2.prev = 8;
7786
+ _context2.p = 3;
7988
7787
  if (!(item === null || item === void 0 ? void 0 : item.selectCheckCallback)) {
7989
- _context2.next = 15;
7788
+ _context2.n = 5;
7990
7789
  break;
7991
7790
  }
7992
- _context2.next = 12;
7791
+ _context2.n = 4;
7993
7792
  return item === null || item === void 0 ? void 0 : item.selectCheckCallback(popvalue, {
7994
7793
  record: record,
7995
7794
  index: index,
@@ -7998,23 +7797,23 @@ var AddSelect = function AddSelect(props) {
7998
7797
  changeValue: value,
7999
7798
  dataSourceSelectItem: dataSourceSelectItem
8000
7799
  });
8001
- case 12:
8002
- isCheckPass = _context2.sent;
8003
- _context2.next = 19;
7800
+ case 4:
7801
+ isCheckPass = _context2.v;
7802
+ _context2.n = 7;
8004
7803
  break;
8005
- case 15:
8006
- _context2.next = 17;
7804
+ case 5:
7805
+ _context2.n = 6;
8007
7806
  return checkSelectChange(businessType, popvalue, mappingValueField, record, item, value);
8008
- case 17:
8009
- isConformToTheRules = _context2.sent;
7807
+ case 6:
7808
+ isConformToTheRules = _context2.v;
8010
7809
  isCheckPass = !isConformToTheRules;
8011
- case 19:
8012
- _context2.next = 23;
7810
+ case 7:
7811
+ _context2.n = 9;
8013
7812
  break;
8014
- case 21:
8015
- _context2.prev = 21;
8016
- _context2.t0 = _context2["catch"](8);
8017
- case 23:
7813
+ case 8:
7814
+ _context2.p = 8;
7815
+ _t2 = _context2.v;
7816
+ case 9:
8018
7817
  if (isCheckPass) {
8019
7818
  changeValue(value, dataSourceSelectItem);
8020
7819
  } else {
@@ -8022,11 +7821,10 @@ var AddSelect = function AddSelect(props) {
8022
7821
  }
8023
7822
  // 更新已选表格函数
8024
7823
  editRecord(record);
8025
- case 25:
8026
- case "end":
8027
- return _context2.stop();
7824
+ case 10:
7825
+ return _context2.a(2);
8028
7826
  }
8029
- }, _callee2, null, [[8, 21]]);
7827
+ }, _callee2, null, [[3, 8]]);
8030
7828
  }));
8031
7829
  function onChange(_x7) {
8032
7830
  return _onChange.apply(this, arguments);
@@ -9417,29 +9215,29 @@ var BillEntry = function BillEntry(_ref3) {
9417
9215
  dataIndex: 'propertyNameAndValue'
9418
9216
  }];
9419
9217
  var _useState9 = React$1.useState(false),
9420
- _useState10 = _slicedToArray(_useState9, 2),
9421
- isModalVisible = _useState10[0],
9422
- setIsModalVisible = _useState10[1];
9423
- var _useState11 = React$1.useState([{
9218
+ _useState0 = _slicedToArray(_useState9, 2),
9219
+ isModalVisible = _useState0[0],
9220
+ setIsModalVisible = _useState0[1];
9221
+ var _useState1 = React$1.useState([{
9424
9222
  hovered: false
9425
9223
  }]),
9426
- _useState12 = _slicedToArray(_useState11, 2),
9427
- data = _useState12[0],
9428
- setData = _useState12[1];
9224
+ _useState10 = _slicedToArray(_useState1, 2),
9225
+ data = _useState10[0],
9226
+ setData = _useState10[1];
9429
9227
  var tableRef = React$1.useRef(null);
9430
9228
  var codeSelected = tableCode;
9431
- var _useState13 = React$1.useState(false),
9229
+ var _useState11 = React$1.useState(false),
9230
+ _useState12 = _slicedToArray(_useState11, 2),
9231
+ loading = _useState12[0],
9232
+ setLoading = _useState12[1];
9233
+ var _useState13 = React$1.useState([]),
9432
9234
  _useState14 = _slicedToArray(_useState13, 2),
9433
- loading = _useState14[0],
9434
- setLoading = _useState14[1];
9235
+ selectColumns = _useState14[0],
9236
+ setSelectColumns = _useState14[1];
9435
9237
  var _useState15 = React$1.useState([]),
9436
9238
  _useState16 = _slicedToArray(_useState15, 2),
9437
- selectColumns = _useState16[0],
9438
- setSelectColumns = _useState16[1];
9439
- var _useState17 = React$1.useState([]),
9440
- _useState18 = _slicedToArray(_useState17, 2),
9441
- showColumns = _useState18[0],
9442
- setShowColumns = _useState18[1];
9239
+ showColumns = _useState16[0],
9240
+ setShowColumns = _useState16[1];
9443
9241
  React$1.useEffect(function () {
9444
9242
  setSelectColumns([].concat(_toConsumableArray(columns.map(function (item) {
9445
9243
  var inputLength = columns.filter(function (item) {
@@ -9555,42 +9353,42 @@ var BillEntry = function BillEntry(_ref3) {
9555
9353
  });
9556
9354
  };
9557
9355
  var handleSubmit = /*#__PURE__*/function () {
9558
- var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
9356
+ var _ref4 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
9559
9357
  var canEntryObject, _canEntryObject$error, messageInfo;
9560
- return _regeneratorRuntime().wrap(function _callee$(_context) {
9561
- while (1) switch (_context.prev = _context.next) {
9358
+ return _regenerator().w(function (_context) {
9359
+ while (1) switch (_context.n) {
9562
9360
  case 0:
9563
9361
  if (data === null || data === void 0 ? void 0 : data.length) {
9564
- _context.next = 3;
9362
+ _context.n = 1;
9565
9363
  break;
9566
9364
  }
9567
9365
  antd.message.warning('至少录入一条数据');
9568
- return _context.abrupt("return");
9569
- case 3:
9366
+ return _context.a(2);
9367
+ case 1:
9570
9368
  if (data === null || data === void 0 ? void 0 : data.every(function (d) {
9571
9369
  return d.skuCode && d.name;
9572
9370
  })) {
9573
- _context.next = 6;
9371
+ _context.n = 2;
9574
9372
  break;
9575
9373
  }
9576
9374
  antd.message.warning('录入商品不存在');
9577
- return _context.abrupt("return");
9578
- case 6:
9375
+ return _context.a(2);
9376
+ case 2:
9579
9377
  if (data === null || data === void 0 ? void 0 : data.every(function (d) {
9580
9378
  return d.count;
9581
9379
  })) {
9582
- _context.next = 9;
9380
+ _context.n = 3;
9583
9381
  break;
9584
9382
  }
9585
9383
  antd.message.warning('请填写商品数量!');
9586
- return _context.abrupt("return");
9587
- case 9:
9588
- _context.next = 11;
9384
+ return _context.a(2);
9385
+ case 3:
9386
+ _context.n = 4;
9589
9387
  return isSkuCanEntry(data);
9590
- case 11:
9591
- canEntryObject = _context.sent;
9388
+ case 4:
9389
+ canEntryObject = _context.v;
9592
9390
  if (!((canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.flag) === false)) {
9593
- _context.next = 16;
9391
+ _context.n = 5;
9594
9392
  break;
9595
9393
  }
9596
9394
  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) {
@@ -9600,8 +9398,8 @@ var BillEntry = function BillEntry(_ref3) {
9600
9398
  content: messageInfo,
9601
9399
  duration: 6
9602
9400
  });
9603
- return _context.abrupt("return");
9604
- case 16:
9401
+ return _context.a(2);
9402
+ case 5:
9605
9403
  setLoading(true);
9606
9404
  onSaveCallback(data).then(function (res) {
9607
9405
  {
@@ -9619,9 +9417,8 @@ var BillEntry = function BillEntry(_ref3) {
9619
9417
  antd.message.error(Error);
9620
9418
  setLoading(false);
9621
9419
  });
9622
- case 18:
9623
- case "end":
9624
- return _context.stop();
9420
+ case 6:
9421
+ return _context.a(2);
9625
9422
  }
9626
9423
  }, _callee);
9627
9424
  }));
@@ -11795,7 +11592,7 @@ function commonFun(type, prefixUrl, parentProps) {
11795
11592
  }
11796
11593
  }
11797
11594
  }];
11798
- var _queryHeaderParams10 = getQueryHeadersList({
11595
+ var _queryHeaderParams0 = getQueryHeadersList({
11799
11596
  querySelectHeadersList: querySelectHeadersList,
11800
11597
  extralHeaders: extralHeaders
11801
11598
  });
@@ -11803,21 +11600,21 @@ function commonFun(type, prefixUrl, parentProps) {
11803
11600
  pageSize: 5000,
11804
11601
  currentPage: 1,
11805
11602
  'qp-companyType-eq': '30'
11806
- }, getQueryHeadersItem(_queryHeaderParams10, 'qp-conglomerateCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/company"), {
11603
+ }, getQueryHeadersItem(_queryHeaderParams0, 'qp-conglomerateCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/company"), {
11807
11604
  pageSize: 5000,
11808
11605
  currentPage: 1,
11809
11606
  'qp-companyType-eq': '20'
11810
- }, getQueryHeadersItem(_queryHeaderParams10, 'qp-companyCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/platformRecord/getPlatformRecordList"), {
11607
+ }, getQueryHeadersItem(_queryHeaderParams0, 'qp-companyCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/platformRecord/getPlatformRecordList"), {
11811
11608
  // pageSize: 5000,
11812
11609
  // currentPage: 1,
11813
11610
  'qp-status-eq': '1'
11814
- }, getQueryHeadersItem(_queryHeaderParams10, 'qp-plateformCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/store"), {
11611
+ }, getQueryHeadersItem(_queryHeaderParams0, 'qp-plateformCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/store"), {
11815
11612
  pageSize: 5000,
11816
11613
  currentPage: 1
11817
- }, getQueryHeadersItem(_queryHeaderParams10, 'qp-mainBrandCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/accountingSubject"), {
11614
+ }, getQueryHeadersItem(_queryHeaderParams0, 'qp-mainBrandCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/accountingSubject"), {
11818
11615
  pageSize: 5000,
11819
11616
  currentPage: 1
11820
- }, getQueryHeadersItem(_queryHeaderParams10, 'qp-accountingCode-in'))]).then(function (x) {
11617
+ }, getQueryHeadersItem(_queryHeaderParams0, 'qp-accountingCode-in'))]).then(function (x) {
11821
11618
  formatSource(x, 0, 2, tableSearchForm);
11822
11619
  formatSource(x, 1, 3, tableSearchForm);
11823
11620
  formatSource(x, 2, 5, tableSearchForm);
@@ -11987,7 +11784,7 @@ function commonFun(type, prefixUrl, parentProps) {
11987
11784
  },
11988
11785
  initialSource: getDictionarySource$1('BUSINESS_StoreType')
11989
11786
  }];
11990
- var _queryHeaderParams11 = getQueryHeadersList({
11787
+ var _queryHeaderParams1 = getQueryHeadersList({
11991
11788
  querySelectHeadersList: querySelectHeadersList,
11992
11789
  extralHeaders: extralHeaders
11993
11790
  });
@@ -11995,13 +11792,13 @@ function commonFun(type, prefixUrl, parentProps) {
11995
11792
  'qp-employeeCode-eq': getEmployeeCode(),
11996
11793
  'qp-realOrg-eq': true,
11997
11794
  'qp-status-eq': 10
11998
- }, getQueryHeadersItem(_queryHeaderParams11, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/channelInfo/tree"), {
11795
+ }, getQueryHeadersItem(_queryHeaderParams1, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/channelInfo/tree"), {
11999
11796
  'qp-status-eq': 10,
12000
11797
  'qp-isMain-eq': 1,
12001
11798
  'qp-type-in': '1,2'
12002
- }, getQueryHeadersItem(_queryHeaderParams11, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/tagNode/getTree/10"), {
11799
+ }, getQueryHeadersItem(_queryHeaderParams1, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/tagNode/getTree/10"), {
12003
11800
  'qp-status-eq': 1
12004
- }, getQueryHeadersItem(_queryHeaderParams11, 'qp-orgCode-in'))]).then(function (x) {
11801
+ }, getQueryHeadersItem(_queryHeaderParams1, 'qp-orgCode-in'))]).then(function (x) {
12005
11802
  var channelDisabledJude = function channelDisabledJude(data) {
12006
11803
  return data['parentCode'] === '0';
12007
11804
  }; // 所属销售渠道 树节点不能点判断
@@ -12239,7 +12036,7 @@ function commonFun(type, prefixUrl, parentProps) {
12239
12036
  name: 'qp-officeTelephone-like',
12240
12037
  label: '手机号'
12241
12038
  }];
12242
- var _queryHeaderParams12 = getQueryHeadersList({
12039
+ var _queryHeaderParams10 = getQueryHeadersList({
12243
12040
  querySelectHeadersList: querySelectHeadersList,
12244
12041
  extralHeaders: extralHeaders
12245
12042
  });
@@ -12247,7 +12044,7 @@ function commonFun(type, prefixUrl, parentProps) {
12247
12044
  pageSize: 5000,
12248
12045
  currentPage: 1,
12249
12046
  'qp-companyType-eq': 20
12250
- }, getQueryHeadersItem(_queryHeaderParams12, 'qp-companyCode-in'))]).then(function (x) {
12047
+ }, getQueryHeadersItem(_queryHeaderParams10, 'qp-companyCode-in'))]).then(function (x) {
12251
12048
  formatSource(x, 0, 2, tableSearchForm);
12252
12049
  });
12253
12050
  modalTableProps = _objectSpread2({
@@ -12356,13 +12153,13 @@ function commonFun(type, prefixUrl, parentProps) {
12356
12153
  name: 'qp-officeTelephone-like',
12357
12154
  label: '手机号'
12358
12155
  }]);
12359
- var _queryHeaderParams13 = getQueryHeadersList({
12156
+ var _queryHeaderParams11 = getQueryHeadersList({
12360
12157
  querySelectHeadersList: querySelectHeadersList,
12361
12158
  extralHeaders: extralHeaders
12362
12159
  });
12363
12160
  Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgViewNode/common/getTreeForOrgViewAndTenant"), {
12364
12161
  'orgViewCode': 'administrative-organization-view'
12365
- }, getQueryHeadersItem(_queryHeaderParams13, 'qp-code-in'))]).then(function (x) {
12162
+ }, getQueryHeadersItem(_queryHeaderParams11, 'qp-code-in'))]).then(function (x) {
12366
12163
  formatTreeDataSource(x, 0, 2, tableSearchForm, ['code', 'name']);
12367
12164
  });
12368
12165
  modalTableProps = _objectSpread2({
@@ -12509,17 +12306,17 @@ function commonFun(type, prefixUrl, parentProps) {
12509
12306
  name: 'qp-remark-like',
12510
12307
  label: '备注'
12511
12308
  }];
12512
- var _queryHeaderParams14 = getQueryHeadersList({
12309
+ var _queryHeaderParams12 = getQueryHeadersList({
12513
12310
  querySelectHeadersList: querySelectHeadersList,
12514
12311
  extralHeaders: extralHeaders
12515
12312
  });
12516
12313
  Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/logisCompany"), {
12517
12314
  pageSize: 5000,
12518
12315
  currentPage: 1
12519
- }, getQueryHeadersItem(_queryHeaderParams14, logisCompanyCodeSingleSearchName)), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/printTemplate"), {
12316
+ }, getQueryHeadersItem(_queryHeaderParams12, logisCompanyCodeSingleSearchName)), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/printTemplate"), {
12520
12317
  pageSize: 5000,
12521
12318
  currentPage: 1
12522
- }, getQueryHeadersItem(_queryHeaderParams14, 'qp-sheetTemplateCode-in'))]).then(function (x) {
12319
+ }, getQueryHeadersItem(_queryHeaderParams12, 'qp-sheetTemplateCode-in'))]).then(function (x) {
12523
12320
  formatSource(x, 0, 2, tableSearchForm);
12524
12321
  formatSource(x, 1, 5, tableSearchForm);
12525
12322
  });
@@ -12689,14 +12486,14 @@ function commonFun(type, prefixUrl, parentProps) {
12689
12486
  }
12690
12487
  }
12691
12488
  }];
12692
- var _queryHeaderParams15 = getQueryHeadersList({
12489
+ var _queryHeaderParams13 = getQueryHeadersList({
12693
12490
  querySelectHeadersList: querySelectHeadersList,
12694
12491
  extralHeaders: extralHeaders
12695
12492
  });
12696
12493
  Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/permissionCategory"), {
12697
12494
  pageSize: 5000,
12698
12495
  currentPage: 1
12699
- }, getQueryHeadersItem(_queryHeaderParams15, 'qp-categoryCode-eq'))]).then(function (x) {
12496
+ }, getQueryHeadersItem(_queryHeaderParams13, 'qp-categoryCode-eq'))]).then(function (x) {
12700
12497
  formatSource(x, 0, 2, tableSearchForm);
12701
12498
  });
12702
12499
  modalTableProps = _objectSpread2({
@@ -12793,7 +12590,7 @@ function commonFun(type, prefixUrl, parentProps) {
12793
12590
  }
12794
12591
  }
12795
12592
  }];
12796
- var _queryHeaderParams16 = getQueryHeadersList({
12593
+ var _queryHeaderParams14 = getQueryHeadersList({
12797
12594
  querySelectHeadersList: querySelectHeadersList,
12798
12595
  extralHeaders: extralHeaders
12799
12596
  });
@@ -12801,7 +12598,7 @@ function commonFun(type, prefixUrl, parentProps) {
12801
12598
  'qp-employeeCode-eq': getEmployeeCode(),
12802
12599
  'qp-realOrg-eq': true,
12803
12600
  'qp-status-eq': 10
12804
- }, getQueryHeadersItem(_queryHeaderParams16, 'qp-salesOrgCode-in'))]).then(function (x) {
12601
+ }, getQueryHeadersItem(_queryHeaderParams14, 'qp-salesOrgCode-in'))]).then(function (x) {
12805
12602
  formatSource(x, 0, 2, tableSearchForm);
12806
12603
  });
12807
12604
  modalTableProps = _objectSpread2({
@@ -12907,13 +12704,13 @@ function commonFun(type, prefixUrl, parentProps) {
12907
12704
  },
12908
12705
  initialSource: nodeType
12909
12706
  }];
12910
- var _queryHeaderParams17 = getQueryHeadersList({
12707
+ var _queryHeaderParams15 = getQueryHeadersList({
12911
12708
  querySelectHeadersList: querySelectHeadersList,
12912
12709
  extralHeaders: extralHeaders
12913
12710
  });
12914
12711
  Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgView/getOrgViewListNoPage"), {
12915
12712
  'qp-status-eq': 10
12916
- }, getQueryHeadersItem(_queryHeaderParams17, 'qp-orgViewCode-in'))]).then(function (x) {
12713
+ }, getQueryHeadersItem(_queryHeaderParams15, 'qp-orgViewCode-in'))]).then(function (x) {
12917
12714
  formatSource(x, 0, 2, tableSearchForm);
12918
12715
  });
12919
12716
  modalTableProps = _objectSpread2({
@@ -13239,13 +13036,13 @@ function commonFun(type, prefixUrl, parentProps) {
13239
13036
  },
13240
13037
  initialSource: nodeType
13241
13038
  }];
13242
- var _queryHeaderParams18 = getQueryHeadersList({
13039
+ var _queryHeaderParams16 = getQueryHeadersList({
13243
13040
  querySelectHeadersList: querySelectHeadersList,
13244
13041
  extralHeaders: extralHeaders
13245
13042
  });
13246
13043
  Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgView/getOrgViewListNoPage"), {
13247
13044
  'qp-status-eq': 10
13248
- }, getQueryHeadersItem(_queryHeaderParams18, 'qp-orgViewCode-in'))]).then(function (x) {
13045
+ }, getQueryHeadersItem(_queryHeaderParams16, 'qp-orgViewCode-in'))]).then(function (x) {
13249
13046
  formatSource(x, 0, 2, tableSearchForm);
13250
13047
  });
13251
13048
  modalTableProps = _objectSpread2({
@@ -14190,9 +13987,9 @@ var AddSpuSelect = function AddSpuSelect(parProps) {
14190
13987
  value = _useState8[0],
14191
13988
  setValue = _useState8[1];
14192
13989
  var _useState9 = React$1.useState([]),
14193
- _useState10 = _slicedToArray(_useState9, 2),
14194
- propertyList = _useState10[0],
14195
- setPropertyList = _useState10[1];
13990
+ _useState0 = _slicedToArray(_useState9, 2),
13991
+ propertyList = _useState0[0],
13992
+ setPropertyList = _useState0[1];
14196
13993
  React$1.useEffect(function () {
14197
13994
  if (parProps === null || parProps === void 0 ? void 0 : parProps.isSingleColor) {
14198
13995
  // type: 1 尺码组; 2 配码组
@@ -14716,46 +14513,45 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
14716
14513
  requestUtil.get("".concat(url, "?").concat(querystring.stringify(paramsData)), {
14717
14514
  headers: headers
14718
14515
  }).then(/*#__PURE__*/function () {
14719
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(res) {
14516
+ var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(res) {
14720
14517
  var _ctx$form;
14721
14518
  var resData, coverData, data, dataList;
14722
- return _regeneratorRuntime().wrap(function _callee$(_context) {
14723
- while (1) switch (_context.prev = _context.next) {
14519
+ return _regenerator().w(function (_context) {
14520
+ while (1) switch (_context.n) {
14724
14521
  case 0:
14725
14522
  resData = (res === null || res === void 0 ? void 0 : res.data) || [];
14726
14523
  if (!judgeIsRequestSuccess(resData)) {
14727
- _context.next = 13;
14524
+ _context.n = 4;
14728
14525
  break;
14729
14526
  }
14730
14527
  data = resData.data;
14731
14528
  if (!remoteSource.converter) {
14732
- _context.next = 9;
14529
+ _context.n = 2;
14733
14530
  break;
14734
14531
  }
14735
- _context.next = 6;
14532
+ _context.n = 1;
14736
14533
  return remoteSource.converter({
14737
14534
  data: [data]
14738
14535
  });
14739
- case 6:
14740
- coverData = _context.sent;
14741
- _context.next = 11;
14536
+ case 1:
14537
+ coverData = _context.v;
14538
+ _context.n = 3;
14742
14539
  break;
14743
- case 9:
14540
+ case 2:
14744
14541
  dataList = data && Array.isArray(data) ? data : data && [data] || [];
14745
14542
  coverData = dataList.length && dataList.map(function (ites) {
14746
14543
  return _mapSearchTree(ites);
14747
14544
  }) || [];
14748
- case 11:
14749
- _context.next = 14;
14545
+ case 3:
14546
+ _context.n = 5;
14750
14547
  break;
14751
- case 13:
14548
+ case 4:
14752
14549
  coverData = [];
14753
- case 14:
14550
+ case 5:
14754
14551
  setTreeData(coverData);
14755
14552
  ctx === null || ctx === void 0 ? void 0 : (_ctx$form = ctx.form) === null || _ctx$form === void 0 ? void 0 : _ctx$form.setFieldSource(ctx.name, coverData);
14756
- case 16:
14757
- case "end":
14758
- return _context.stop();
14553
+ case 6:
14554
+ return _context.a(2);
14759
14555
  }
14760
14556
  }, _callee);
14761
14557
  }));
@@ -19057,38 +18853,38 @@ var BsSulaQueryTable = (function (props) {
19057
18853
  };
19058
18854
  var refs = React$1.useRef(null);
19059
18855
  var _useState9 = React$1.useState(''),
19060
- _useState10 = _slicedToArray(_useState9, 2),
19061
- pagePath = _useState10[0],
19062
- setPagePath = _useState10[1];
18856
+ _useState0 = _slicedToArray(_useState9, 2),
18857
+ pagePath = _useState0[0],
18858
+ setPagePath = _useState0[1];
19063
18859
  var _useLocation = umi.useLocation(),
19064
18860
  pathname = _useLocation.pathname,
19065
18861
  _useLocation$state = _useLocation.state,
19066
18862
  state = _useLocation$state === void 0 ? {} : _useLocation$state;
19067
- var _useState11 = React$1.useState(false),
19068
- _useState12 = _slicedToArray(_useState11, 2),
19069
- isFullScreen = _useState12[0],
19070
- setIsFnllScreen = _useState12[1];
18863
+ var _useState1 = React$1.useState(false),
18864
+ _useState10 = _slicedToArray(_useState1, 2),
18865
+ isFullScreen = _useState10[0],
18866
+ setIsFnllScreen = _useState10[1];
19071
18867
  // @ts-nocheck
19072
18868
  var value = props;
19073
18869
  var _props$fields = props.fields,
19074
18870
  fields = _props$fields === void 0 ? [] : _props$fields;
19075
- var _useState13 = React$1.useState([]),
19076
- _useState14 = _slicedToArray(_useState13, 2),
19077
- showColumn = _useState14[0],
19078
- setShowColumns = _useState14[1]; // 列字段
18871
+ var _useState11 = React$1.useState([]),
18872
+ _useState12 = _slicedToArray(_useState11, 2),
18873
+ showColumn = _useState12[0],
18874
+ setShowColumns = _useState12[1]; // 列字段
19079
18875
  var originSearchFields = getSettingFieldOrColumn(getConfigFromlocalstorage(ENUM$1.BROWSER_CACHE.SEARCH_FIELDS_CONDITION), fields, 'searchFields');
19080
- var _useState15 = React$1.useState(originSearchFields),
18876
+ var _useState13 = React$1.useState(originSearchFields),
18877
+ _useState14 = _slicedToArray(_useState13, 2),
18878
+ showSearchFields = _useState14[0],
18879
+ setShowSearchFields = _useState14[1]; //搜索项字段
18880
+ var _useState15 = React$1.useState([]),
19081
18881
  _useState16 = _slicedToArray(_useState15, 2),
19082
- showSearchFields = _useState16[0],
19083
- setShowSearchFields = _useState16[1]; //搜索项字段
19084
- var _useState17 = React$1.useState([]),
18882
+ showExportColumn = _useState16[0],
18883
+ setShowExportColumns = _useState16[1]; // 导出列字段
18884
+ var _useState17 = React$1.useState(''),
19085
18885
  _useState18 = _slicedToArray(_useState17, 2),
19086
- showExportColumn = _useState18[0],
19087
- setShowExportColumns = _useState18[1]; // 导出列字段
19088
- var _useState19 = React$1.useState(''),
19089
- _useState20 = _slicedToArray(_useState19, 2),
19090
- height = _useState20[0],
19091
- setHeight = _useState20[1];
18886
+ height = _useState18[0],
18887
+ setHeight = _useState18[1];
19092
18888
  var sortTableRef = React$1.useRef(null);
19093
18889
  var searchTableRef = React$1.useRef(null);
19094
18890
  var exportTableRef = React$1.useRef(null);
@@ -20136,22 +19932,19 @@ function outLogin(_x) {
20136
19932
  return _outLogin.apply(this, arguments);
20137
19933
  }
20138
19934
  function _outLogin() {
20139
- _outLogin = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
19935
+ _outLogin = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(params) {
20140
19936
  var res;
20141
- return _regeneratorRuntime().wrap(function _callee$(_context) {
20142
- while (1) switch (_context.prev = _context.next) {
19937
+ return _regenerator().w(function (_context) {
19938
+ while (1) switch (_context.n) {
20143
19939
  case 0:
20144
- _context.next = 2;
19940
+ _context.n = 1;
20145
19941
  return requestUtil({
20146
19942
  url: '/user/web/loginOut',
20147
19943
  method: 'GET'
20148
19944
  });
20149
- case 2:
20150
- res = _context.sent;
20151
- return _context.abrupt("return", res);
20152
- case 4:
20153
- case "end":
20154
- return _context.stop();
19945
+ case 1:
19946
+ res = _context.v;
19947
+ return _context.a(2, res);
20155
19948
  }
20156
19949
  }, _callee);
20157
19950
  }));
@@ -20278,20 +20071,20 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
20278
20071
  });
20279
20072
  };
20280
20073
  var loginOut = /*#__PURE__*/function () {
20281
- var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
20074
+ var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
20282
20075
  var sessionId;
20283
- return _regeneratorRuntime().wrap(function _callee$(_context) {
20284
- while (1) switch (_context.prev = _context.next) {
20076
+ return _regenerator().w(function (_context) {
20077
+ while (1) switch (_context.n) {
20285
20078
  case 0:
20286
- _context.next = 2;
20079
+ _context.n = 1;
20287
20080
  return getSessionId();
20288
- case 2:
20289
- sessionId = _context.sent;
20290
- _context.next = 5;
20081
+ case 1:
20082
+ sessionId = _context.v;
20083
+ _context.n = 2;
20291
20084
  return outLogin({
20292
20085
  sessionId: sessionId
20293
20086
  });
20294
- case 5:
20087
+ case 2:
20295
20088
  // @ts-ignore
20296
20089
  if (BUILD_TYPE) {
20297
20090
  antd.message.success('退出登录成功');
@@ -20301,9 +20094,8 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
20301
20094
  } else {
20302
20095
  setLoginOutPath();
20303
20096
  }
20304
- case 6:
20305
- case "end":
20306
- return _context.stop();
20097
+ case 3:
20098
+ return _context.a(2);
20307
20099
  }
20308
20100
  }, _callee);
20309
20101
  }));
@@ -20390,18 +20182,15 @@ function getStoreByName(_x) {
20390
20182
  return _getStoreByName.apply(this, arguments);
20391
20183
  }
20392
20184
  function _getStoreByName() {
20393
- _getStoreByName = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
20394
- return _regeneratorRuntime().wrap(function _callee$(_context) {
20395
- while (1) switch (_context.prev = _context.next) {
20185
+ _getStoreByName = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(params) {
20186
+ return _regenerator().w(function (_context) {
20187
+ while (1) switch (_context.n) {
20396
20188
  case 0:
20397
- return _context.abrupt("return", requestUtil({
20189
+ return _context.a(2, requestUtil({
20398
20190
  url: '/store-house/orgViewNode/listNoPage',
20399
20191
  method: 'GET',
20400
20192
  params: _objectSpread2({}, params)
20401
20193
  }));
20402
- case 1:
20403
- case "end":
20404
- return _context.stop();
20405
20194
  }
20406
20195
  }, _callee);
20407
20196
  }));
@@ -20436,33 +20225,33 @@ var ChooseStore = function ChooseStore(props) {
20436
20225
  openSelect = _useState8[0],
20437
20226
  setOpenSelect = _useState8[1];
20438
20227
  var _useState9 = React$1.useState([]),
20439
- _useState10 = _slicedToArray(_useState9, 2),
20440
- options = _useState10[0],
20441
- setOptions = _useState10[1];
20442
- var _useState11 = React$1.useState([]),
20228
+ _useState0 = _slicedToArray(_useState9, 2),
20229
+ options = _useState0[0],
20230
+ setOptions = _useState0[1];
20231
+ var _useState1 = React$1.useState([]),
20232
+ _useState10 = _slicedToArray(_useState1, 2),
20233
+ rescouse = _useState10[0],
20234
+ setRescouse = _useState10[1];
20235
+ var _useState11 = React$1.useState(''),
20443
20236
  _useState12 = _slicedToArray(_useState11, 2),
20444
- rescouse = _useState12[0],
20445
- setRescouse = _useState12[1];
20446
- var _useState13 = React$1.useState(''),
20447
- _useState14 = _slicedToArray(_useState13, 2),
20448
- searchValue = _useState14[0],
20449
- setSearchValue = _useState14[1];
20450
- var _useState15 = React$1.useState([{
20237
+ searchValue = _useState12[0],
20238
+ setSearchValue = _useState12[1];
20239
+ var _useState13 = React$1.useState([{
20451
20240
  label: name,
20452
20241
  value: code
20453
20242
  }]),
20454
- _useState16 = _slicedToArray(_useState15, 2),
20455
- store = _useState16[0],
20456
- setStore = _useState16[1];
20243
+ _useState14 = _slicedToArray(_useState13, 2),
20244
+ store = _useState14[0],
20245
+ setStore = _useState14[1];
20457
20246
  function fetchUserList(_x, _x2) {
20458
20247
  return _fetchUserList.apply(this, arguments);
20459
20248
  }
20460
20249
  function _fetchUserList() {
20461
- _fetchUserList = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(storeName, init) {
20462
- return _regeneratorRuntime().wrap(function _callee3$(_context3) {
20463
- while (1) switch (_context3.prev = _context3.next) {
20250
+ _fetchUserList = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(storeName, init) {
20251
+ return _regenerator().w(function (_context3) {
20252
+ while (1) switch (_context3.n) {
20464
20253
  case 0:
20465
- return _context3.abrupt("return", getStoreByName({
20254
+ return _context3.a(2, getStoreByName({
20466
20255
  orgName: storeName ? storeName : undefined,
20467
20256
  platCompanyCode: init ? undefined : key,
20468
20257
  'qp-employeeCode-eq': employeeCode || 'EMP231011000002',
@@ -20481,9 +20270,6 @@ var ChooseStore = function ChooseStore(props) {
20481
20270
  };
20482
20271
  });
20483
20272
  }));
20484
- case 1:
20485
- case "end":
20486
- return _context3.stop();
20487
20273
  }
20488
20274
  }, _callee3);
20489
20275
  }));
@@ -20506,20 +20292,19 @@ var ChooseStore = function ChooseStore(props) {
20506
20292
  return debounce__default['default'](loadOptions, debounceTimeout);
20507
20293
  }, [debounceTimeout, key]);
20508
20294
  var changeInput = /*#__PURE__*/function () {
20509
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(str) {
20295
+ var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(str) {
20510
20296
  var res;
20511
- return _regeneratorRuntime().wrap(function _callee$(_context) {
20512
- while (1) switch (_context.prev = _context.next) {
20297
+ return _regenerator().w(function (_context) {
20298
+ while (1) switch (_context.n) {
20513
20299
  case 0:
20514
- _context.next = 2;
20300
+ _context.n = 1;
20515
20301
  return debounceFetcher(str);
20516
- case 2:
20517
- res = _context.sent;
20302
+ case 1:
20303
+ res = _context.v;
20518
20304
  setOptions(res);
20519
20305
  setRescouse(res);
20520
- case 5:
20521
- case "end":
20522
- return _context.stop();
20306
+ case 2:
20307
+ return _context.a(2);
20523
20308
  }
20524
20309
  }, _callee);
20525
20310
  }));
@@ -20528,15 +20313,15 @@ var ChooseStore = function ChooseStore(props) {
20528
20313
  };
20529
20314
  }();
20530
20315
  React$1.useEffect(function () {
20531
- _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
20316
+ _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
20532
20317
  var res;
20533
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
20534
- while (1) switch (_context2.prev = _context2.next) {
20318
+ return _regenerator().w(function (_context2) {
20319
+ while (1) switch (_context2.n) {
20535
20320
  case 0:
20536
- _context2.next = 2;
20321
+ _context2.n = 1;
20537
20322
  return fetchUserList(undefined, true);
20538
- case 2:
20539
- res = _context2.sent;
20323
+ case 1:
20324
+ res = _context2.v;
20540
20325
  res.map(function (item, indexNumber) {
20541
20326
  if (item.label === name) {
20542
20327
  setIndex(indexNumber);
@@ -20552,9 +20337,8 @@ var ChooseStore = function ChooseStore(props) {
20552
20337
  });
20553
20338
  setOptions(res);
20554
20339
  setRescouse(res);
20555
- case 6:
20556
- case "end":
20557
- return _context2.stop();
20340
+ case 2:
20341
+ return _context2.a(2);
20558
20342
  }
20559
20343
  }, _callee2);
20560
20344
  }))();
@@ -21603,25 +21387,25 @@ var DrawContent$1 = function DrawContent(_ref) {
21603
21387
  currentOneLevel = _useState8[0],
21604
21388
  setCurrentOneLevel = _useState8[1];
21605
21389
  var _useState9 = React$1.useState([]),
21606
- _useState10 = _slicedToArray(_useState9, 2),
21607
- SearhData = _useState10[0],
21608
- setSearchMenuData = _useState10[1];
21609
- var _useState11 = React$1.useState(600),
21390
+ _useState0 = _slicedToArray(_useState9, 2),
21391
+ SearhData = _useState0[0],
21392
+ setSearchMenuData = _useState0[1];
21393
+ var _useState1 = React$1.useState(600),
21394
+ _useState10 = _slicedToArray(_useState1, 2),
21395
+ rightMenuHeight = _useState10[0],
21396
+ setHeight = _useState10[1];
21397
+ var _useState11 = React$1.useState(900),
21610
21398
  _useState12 = _slicedToArray(_useState11, 2),
21611
- rightMenuHeight = _useState12[0],
21612
- setHeight = _useState12[1];
21613
- var _useState13 = React$1.useState(900),
21399
+ drawHeight = _useState12[0],
21400
+ setDrawHeight = _useState12[1];
21401
+ var _useState13 = React$1.useState(false),
21614
21402
  _useState14 = _slicedToArray(_useState13, 2),
21615
- drawHeight = _useState14[0],
21616
- setDrawHeight = _useState14[1];
21403
+ moreBtnShow = _useState14[0],
21404
+ setMoreBtnShow = _useState14[1];
21617
21405
  var _useState15 = React$1.useState(false),
21618
21406
  _useState16 = _slicedToArray(_useState15, 2),
21619
- moreBtnShow = _useState16[0],
21620
- setMoreBtnShow = _useState16[1];
21621
- var _useState17 = React$1.useState(false),
21622
- _useState18 = _slicedToArray(_useState17, 2),
21623
- showScroll = _useState18[0],
21624
- setShowScroll = _useState18[1];
21407
+ showScroll = _useState16[0],
21408
+ setShowScroll = _useState16[1];
21625
21409
  React$1.useEffect(function () {
21626
21410
  var _originRoutes$find;
21627
21411
  getMenuContentHeight();
@@ -23232,14 +23016,11 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
23232
23016
  },
23233
23017
  menu: {
23234
23018
  request: function () {
23235
- var _request = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
23236
- return _regeneratorRuntime().wrap(function _callee$(_context) {
23237
- while (1) switch (_context.prev = _context.next) {
23019
+ var _request = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
23020
+ return _regenerator().w(function (_context) {
23021
+ while (1) switch (_context.n) {
23238
23022
  case 0:
23239
- return _context.abrupt("return", JSON.parse(localStorage.getItem("customerMenu_".concat(itemPath, "_front")) || '[]'));
23240
- case 1:
23241
- case "end":
23242
- return _context.stop();
23023
+ return _context.a(2, JSON.parse(localStorage.getItem("customerMenu_".concat(itemPath, "_front")) || '[]'));
23243
23024
  }
23244
23025
  }, _callee);
23245
23026
  }));
@@ -23644,31 +23425,31 @@ var index$6 = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
23644
23425
  multiTableData = _useState8[0],
23645
23426
  setMmultiTableData = _useState8[1]; //多表头数据
23646
23427
  var _useState9 = React$1.useState(10),
23647
- _useState10 = _slicedToArray(_useState9, 2),
23648
- viewCount = _useState10[0],
23649
- setViewCount = _useState10[1]; //虚拟表格每次渲染数量
23428
+ _useState0 = _slicedToArray(_useState9, 2),
23429
+ viewCount = _useState0[0],
23430
+ setViewCount = _useState0[1]; //虚拟表格每次渲染数量
23650
23431
  var itemWidth = 100; // 表格每一项宽度
23651
- var _useState11 = React$1.useState((props === null || props === void 0 ? void 0 : props.colHeaderWidth) || 400),
23652
- _useState12 = _slicedToArray(_useState11, 2),
23653
- realColHeaderWidth = _useState12[0],
23654
- setLeftWidth = _useState12[1];
23432
+ var _useState1 = React$1.useState((props === null || props === void 0 ? void 0 : props.colHeaderWidth) || 400),
23433
+ _useState10 = _slicedToArray(_useState1, 2),
23434
+ realColHeaderWidth = _useState10[0],
23435
+ setLeftWidth = _useState10[1];
23655
23436
  var viewPort = React$1.useRef(null);
23656
23437
  var topScrollBar = React$1.useRef(null);
23657
23438
  var leftTableRef = React$1.useRef(null);
23658
23439
  //起始渲染item
23659
- var _useState13 = React$1.useState(0),
23660
- _useState14 = _slicedToArray(_useState13, 2),
23661
- startIndex = _useState14[0],
23662
- setStartIndex = _useState14[1];
23440
+ var _useState11 = React$1.useState(0),
23441
+ _useState12 = _slicedToArray(_useState11, 2),
23442
+ startIndex = _useState12[0],
23443
+ setStartIndex = _useState12[1];
23663
23444
  //结束渲染item
23664
23445
  var endIndex = React$1.useMemo(function () {
23665
23446
  return startIndex + viewCount;
23666
23447
  }, [startIndex, viewCount]);
23667
23448
  //表格偏移量
23668
- var _useState15 = React$1.useState(0),
23669
- _useState16 = _slicedToArray(_useState15, 2),
23670
- offsetWidth = _useState16[0],
23671
- setOffset = _useState16[1];
23449
+ var _useState13 = React$1.useState(0),
23450
+ _useState14 = _slicedToArray(_useState13, 2),
23451
+ offsetWidth = _useState14[0],
23452
+ setOffset = _useState14[1];
23672
23453
  React$1.useEffect(function () {
23673
23454
  setTimeout(function () {
23674
23455
  var realLeftTableWidth = leftTableRef.current.clientWidth;
@@ -30972,11 +30753,11 @@ var valueType = {
30972
30753
  };
30973
30754
 
30974
30755
  var getDynamicDict = /*#__PURE__*/function () {
30975
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
30976
- return _regeneratorRuntime().wrap(function _callee$(_context) {
30977
- while (1) switch (_context.prev = _context.next) {
30756
+ var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(dictionaryCode) {
30757
+ return _regenerator().w(function (_context) {
30758
+ while (1) switch (_context.n) {
30978
30759
  case 0:
30979
- _context.next = 2;
30760
+ _context.n = 1;
30980
30761
  return bssula.request({
30981
30762
  url: "/basic/dictDynamicItem/getDynamicData/".concat(dictionaryCode),
30982
30763
  converter: function converter(_ref2) {
@@ -30989,11 +30770,8 @@ var getDynamicDict = /*#__PURE__*/function () {
30989
30770
  });
30990
30771
  }
30991
30772
  });
30992
- case 2:
30993
- return _context.abrupt("return", _context.sent);
30994
- case 3:
30995
- case "end":
30996
- return _context.stop();
30773
+ case 1:
30774
+ return _context.a(2, _context.v);
30997
30775
  }
30998
30776
  }, _callee);
30999
30777
  }));
@@ -31040,12 +30818,12 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
31040
30818
  value: false
31041
30819
  }];
31042
30820
  var ref = React$1.useRef();
31043
- ahooks.useMount(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
31044
- var _ref$current, source;
31045
- return _regeneratorRuntime().wrap(function _callee$(_context) {
31046
- while (1) switch (_context.prev = _context.next) {
30821
+ ahooks.useMount(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
30822
+ var _ref$current, source, _t, _t2;
30823
+ return _regenerator().w(function (_context) {
30824
+ while (1) switch (_context.n) {
31047
30825
  case 0:
31048
- _context.next = 2;
30826
+ _context.n = 1;
31049
30827
  return setIsShowAndType(function (prev) {
31050
30828
  if (record.inputType === 20 || record.inputType === 30) {
31051
30829
  return {
@@ -31056,40 +30834,39 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
31056
30834
  }
31057
30835
  return prev;
31058
30836
  });
31059
- case 2:
30837
+ case 1:
31060
30838
  if (!record.dictionaryCode) {
31061
- _context.next = 17;
30839
+ _context.n = 7;
31062
30840
  break;
31063
30841
  }
31064
30842
  if (!(record.choiceType == 20)) {
31065
- _context.next = 7;
30843
+ _context.n = 2;
31066
30844
  break;
31067
30845
  }
31068
- _context.t0 = getDictionarySource(record.dictionaryCode);
31069
- _context.next = 15;
30846
+ _t = getDictionarySource(record.dictionaryCode);
30847
+ _context.n = 6;
31070
30848
  break;
31071
- case 7:
30849
+ case 2:
31072
30850
  if (!(record.choiceType == 30)) {
31073
- _context.next = 13;
30851
+ _context.n = 4;
31074
30852
  break;
31075
30853
  }
31076
- _context.next = 10;
30854
+ _context.n = 3;
31077
30855
  return getDynamicDict(record.dictionaryCode);
31078
- case 10:
31079
- _context.t1 = _context.sent;
31080
- _context.next = 14;
30856
+ case 3:
30857
+ _t2 = _context.v;
30858
+ _context.n = 5;
31081
30859
  break;
31082
- case 13:
31083
- _context.t1 = [];
31084
- case 14:
31085
- _context.t0 = _context.t1;
31086
- case 15:
31087
- source = _context.t0;
30860
+ case 4:
30861
+ _t2 = [];
30862
+ case 5:
30863
+ _t = _t2;
30864
+ case 6:
30865
+ source = _t;
31088
30866
  // @ts-ignore
31089
30867
  ref === null || ref === void 0 ? void 0 : (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.setFieldSource('defaultValue', source);
31090
- case 17:
31091
- case "end":
31092
- return _context.stop();
30868
+ case 7:
30869
+ return _context.a(2);
31093
30870
  }
31094
30871
  }, _callee);
31095
30872
  })));
@@ -31154,10 +30931,10 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
31154
30931
  source: {
31155
30932
  relates: ['dictionaryCode', 'dictionaryCode_dynamic', 'choiceType'],
31156
30933
  type: function () {
31157
- var _type = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
30934
+ var _type = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(_ref3) {
31158
30935
  var form, values, name, relates, source;
31159
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
31160
- while (1) switch (_context2.prev = _context2.next) {
30936
+ return _regenerator().w(function (_context2) {
30937
+ while (1) switch (_context2.n) {
31161
30938
  case 0:
31162
30939
  form = _ref3.form, values = _ref3.values, name = _ref3.name, relates = _ref3.relates;
31163
30940
  if (values[0]) {
@@ -31166,19 +30943,18 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
31166
30943
  form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], getDictionarySource(values[0]));
31167
30944
  }
31168
30945
  if (!values[1]) {
31169
- _context2.next = 9;
30946
+ _context2.n = 2;
31170
30947
  break;
31171
30948
  }
31172
- _context2.next = 5;
30949
+ _context2.n = 1;
31173
30950
  return getDynamicDict(record.dictionaryCode || values[1]);
31174
- case 5:
31175
- source = _context2.sent;
30951
+ case 1:
30952
+ source = _context2.v;
31176
30953
  form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
31177
30954
  form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
31178
30955
  form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], source);
31179
- case 9:
31180
- case "end":
31181
- return _context2.stop();
30956
+ case 2:
30957
+ return _context2.a(2);
31182
30958
  }
31183
30959
  }, _callee2);
31184
30960
  }));
@@ -31634,25 +31410,25 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
31634
31410
  source: {
31635
31411
  relates: ['choiceType', 'inputType'],
31636
31412
  type: function () {
31637
- var _type2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
31413
+ var _type2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(_ref0) {
31638
31414
  var values, name, form, source;
31639
- return _regeneratorRuntime().wrap(function _callee3$(_context3) {
31640
- while (1) switch (_context3.prev = _context3.next) {
31415
+ return _regenerator().w(function (_context3) {
31416
+ while (1) switch (_context3.n) {
31641
31417
  case 0:
31642
- values = _ref10.values, name = _ref10.name, form = _ref10.form;
31418
+ values = _ref0.values, name = _ref0.name, form = _ref0.form;
31643
31419
  if (values[1] === 40) {
31644
31420
  form === null || form === void 0 ? void 0 : form.setFieldValue(name, null);
31645
31421
  form.setFieldVisible(name, false);
31646
31422
  }
31647
31423
  if (!(values[0] === 30)) {
31648
- _context3.next = 10;
31424
+ _context3.n = 2;
31649
31425
  break;
31650
31426
  }
31651
- _context3.next = 5;
31427
+ _context3.n = 1;
31652
31428
  return bssula.request({
31653
31429
  url: '/basic/dictDynamicItem/queryList',
31654
- converter: function converter(_ref11) {
31655
- var data = _ref11.data;
31430
+ converter: function converter(_ref1) {
31431
+ var data = _ref1.data;
31656
31432
  return data === null || data === void 0 ? void 0 : data.map(function (d) {
31657
31433
  return {
31658
31434
  text: d.dictCode,
@@ -31661,17 +31437,16 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
31661
31437
  });
31662
31438
  }
31663
31439
  });
31664
- case 5:
31665
- source = _context3.sent;
31440
+ case 1:
31441
+ source = _context3.v;
31666
31442
  form === null || form === void 0 ? void 0 : form.setFieldSource(name, source);
31667
31443
  form.setFieldVisible(name, true);
31668
- _context3.next = 11;
31444
+ _context3.n = 3;
31669
31445
  break;
31670
- case 10:
31446
+ case 2:
31671
31447
  form.setFieldVisible(name, false);
31672
- case 11:
31673
- case "end":
31674
- return _context3.stop();
31448
+ case 3:
31449
+ return _context3.a(2);
31675
31450
  }
31676
31451
  }, _callee3);
31677
31452
  }));
@@ -31686,8 +31461,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
31686
31461
  name: 'enumeration',
31687
31462
  label: '维护自定义选项',
31688
31463
  field: {
31689
- type: function type(_ref12) {
31690
- var form = _ref12.form;
31464
+ type: function type(_ref10) {
31465
+ var form = _ref10.form;
31691
31466
  return /*#__PURE__*/React__default['default'].createElement(antd.Button, {
31692
31467
  type: 'link',
31693
31468
  onClick: function onClick() {
@@ -31713,10 +31488,10 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
31713
31488
  dependency: {
31714
31489
  source: {
31715
31490
  relates: ['choiceType'],
31716
- type: function type(_ref13) {
31717
- var values = _ref13.values,
31718
- name = _ref13.name,
31719
- form = _ref13.form;
31491
+ type: function type(_ref11) {
31492
+ var values = _ref11.values,
31493
+ name = _ref11.name,
31494
+ form = _ref11.form;
31720
31495
  if (values[0] === 10) {
31721
31496
  form.setFieldVisible(name, true);
31722
31497
  } else {
@@ -31732,10 +31507,10 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
31732
31507
  dependency: {
31733
31508
  visible: {
31734
31509
  relates: ['choiceType'],
31735
- type: function type(_ref14) {
31736
- var name = _ref14.name,
31737
- values = _ref14.values,
31738
- form = _ref14.form;
31510
+ type: function type(_ref12) {
31511
+ var name = _ref12.name,
31512
+ values = _ref12.values,
31513
+ form = _ref12.form;
31739
31514
  if (values[0] == 330) {
31740
31515
  form.setFieldVisible(name, true);
31741
31516
  } else {
@@ -31759,8 +31534,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
31759
31534
  params: {
31760
31535
  'qp-businessType-eq': record.businessType
31761
31536
  },
31762
- converter: function converter(_ref15) {
31763
- var data = _ref15.data;
31537
+ converter: function converter(_ref13) {
31538
+ var data = _ref13.data;
31764
31539
  return (data === null || data === void 0 ? void 0 : data.map(function (d) {
31765
31540
  return {
31766
31541
  text: d.name,
@@ -31800,8 +31575,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
31800
31575
  'qp-businessType-eq': record.businessType,
31801
31576
  'qp-status-eq': 1
31802
31577
  },
31803
- converter: function converter(_ref16) {
31804
- var data = _ref16.data;
31578
+ converter: function converter(_ref14) {
31579
+ var data = _ref14.data;
31805
31580
  return (data === null || data === void 0 ? void 0 : data.map(function (d) {
31806
31581
  var _d$code;
31807
31582
  return {
@@ -31829,8 +31604,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
31829
31604
  remoteSource: {
31830
31605
  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),
31831
31606
  method: 'get',
31832
- converter: function converter(_ref17) {
31833
- var data = _ref17.data;
31607
+ converter: function converter(_ref15) {
31608
+ var data = _ref15.data;
31834
31609
  if (lineDetail.moduleType == 1) {
31835
31610
  return (data === null || data === void 0 ? void 0 : data.map(function (d) {
31836
31611
  return {
@@ -31856,16 +31631,16 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
31856
31631
  width: 900,
31857
31632
  maskClosable: false,
31858
31633
  onOk: function () {
31859
- var _onOk = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
31634
+ var _onOk = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4() {
31860
31635
  var _ref$current4, _res$editableStatus;
31861
31636
  var res, _res$defaultValue;
31862
- return _regeneratorRuntime().wrap(function _callee4$(_context4) {
31863
- while (1) switch (_context4.prev = _context4.next) {
31637
+ return _regenerator().w(function (_context4) {
31638
+ while (1) switch (_context4.n) {
31864
31639
  case 0:
31865
- _context4.next = 2;
31640
+ _context4.n = 1;
31866
31641
  return ref === null || ref === void 0 ? void 0 : (_ref$current4 = ref.current) === null || _ref$current4 === void 0 ? void 0 : _ref$current4.validateFields();
31867
- case 2:
31868
- res = _context4.sent;
31642
+ case 1:
31643
+ res = _context4.v;
31869
31644
  res.editableStatus = (_res$editableStatus = res.editableStatus) === null || _res$editableStatus === void 0 ? void 0 : _res$editableStatus.join(',');
31870
31645
  res.fieldGroup = record.fieldGroup;
31871
31646
  res.businessType = record.businessType;
@@ -31892,7 +31667,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
31892
31667
  delete res.formula;
31893
31668
  delete res.showValue;
31894
31669
  if (!(mode === 'create')) {
31895
- _context4.next = 18;
31670
+ _context4.n = 2;
31896
31671
  break;
31897
31672
  }
31898
31673
  bssula.request({
@@ -31904,8 +31679,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
31904
31679
  onParentOk();
31905
31680
  }
31906
31681
  });
31907
- return _context4.abrupt("return");
31908
- case 18:
31682
+ return _context4.a(2);
31683
+ case 2:
31909
31684
  bssula.request({
31910
31685
  url: "/basic/flow/businessField/".concat(record.id),
31911
31686
  method: 'PATCH',
@@ -31915,9 +31690,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
31915
31690
  onParentOk();
31916
31691
  }
31917
31692
  });
31918
- case 19:
31919
- case "end":
31920
- return _context4.stop();
31693
+ case 3:
31694
+ return _context4.a(2);
31921
31695
  }
31922
31696
  }, _callee4);
31923
31697
  }));
@@ -32373,21 +32147,21 @@ var JsonQueryTable = /*#__PURE__*/React__default['default'].memo(function (props
32373
32147
  jsonEditorVal = _useState8[0],
32374
32148
  setJsonEditorVal = _useState8[1];
32375
32149
  var _useState9 = React$1.useState({}),
32376
- _useState10 = _slicedToArray(_useState9, 2),
32377
- moduleParams = _useState10[0],
32378
- setModuleParams = _useState10[1];
32379
- var _useState11 = React$1.useState('main'),
32150
+ _useState0 = _slicedToArray(_useState9, 2),
32151
+ moduleParams = _useState0[0],
32152
+ setModuleParams = _useState0[1];
32153
+ var _useState1 = React$1.useState('main'),
32154
+ _useState10 = _slicedToArray(_useState1, 2),
32155
+ activeKey = _useState10[0],
32156
+ setActiveKey = _useState10[1]; //默认详情页配置
32157
+ var _useState11 = React$1.useState({}),
32380
32158
  _useState12 = _slicedToArray(_useState11, 2),
32381
- activeKey = _useState12[0],
32382
- setActiveKey = _useState12[1]; //默认详情页配置
32383
- var _useState13 = React$1.useState({}),
32159
+ tablesConfigParams = _useState12[0],
32160
+ setTablesConfigParams = _useState12[1];
32161
+ var _useState13 = React$1.useState([]),
32384
32162
  _useState14 = _slicedToArray(_useState13, 2),
32385
- tablesConfigParams = _useState14[0],
32386
- setTablesConfigParams = _useState14[1];
32387
- var _useState15 = React$1.useState([]),
32388
- _useState16 = _slicedToArray(_useState15, 2),
32389
- tableJsonEditorValsArr = _useState16[0],
32390
- setTableJsonEditorValsArr = _useState16[1];
32163
+ tableJsonEditorValsArr = _useState14[0],
32164
+ setTableJsonEditorValsArr = _useState14[1];
32391
32165
  React$1.useEffect(function () {
32392
32166
  Promise.all([requestUtil.get("/basic/flow/businessFieldGroup/one?moduleType=2&layoutPoint=".concat(pageType))]).then(function (_ref2) {
32393
32167
  var _ref3 = _slicedToArray(_ref2, 1),
@@ -32763,11 +32537,11 @@ function getMetaData(_x) {
32763
32537
 
32764
32538
  // 获取数据
32765
32539
  function _getMetaData() {
32766
- _getMetaData = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(id) {
32767
- return _regeneratorRuntime().wrap(function _callee$(_context) {
32768
- while (1) switch (_context.prev = _context.next) {
32540
+ _getMetaData = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(id) {
32541
+ return _regenerator().w(function (_context) {
32542
+ while (1) switch (_context.n) {
32769
32543
  case 0:
32770
- return _context.abrupt("return", new Promise(function (resolve, reject) {
32544
+ return _context.a(2, new Promise(function (resolve, reject) {
32771
32545
  umi.request('/basic/entityProperty/listNoPage', {
32772
32546
  params: {
32773
32547
  'qp-entityId-eq': id
@@ -32779,9 +32553,6 @@ function _getMetaData() {
32779
32553
  reject([]);
32780
32554
  });
32781
32555
  }));
32782
- case 1:
32783
- case "end":
32784
- return _context.stop();
32785
32556
  }
32786
32557
  }, _callee);
32787
32558
  }));
@@ -32985,11 +32756,11 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
32985
32756
  tableState = _useState4[0],
32986
32757
  setTableState = _useState4[1];
32987
32758
  var handleOpen = /*#__PURE__*/function () {
32988
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
32759
+ var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
32989
32760
  var _props$customSelector, _props$customSelector2, _props$ctx4, _props$value, _props$value$map, _props$ctx5, _props$ctx5$form, _props$selectProps;
32990
32761
  var requestConfigNew, metaDataId, metaData, realMetaData, columns, fields, initValue, _queryTableRef$curren, _queryTableRef$curren2, _queryTableRef$curren3;
32991
- return _regeneratorRuntime().wrap(function _callee$(_context) {
32992
- while (1) switch (_context.prev = _context.next) {
32762
+ return _regenerator().w(function (_context) {
32763
+ while (1) switch (_context.n) {
32993
32764
  case 0:
32994
32765
  requestConfigNew = assembleRequest(props.customSelectorConfig, {
32995
32766
  isSearchForm: props.isSearchForm,
@@ -32997,16 +32768,16 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
32997
32768
  searchFormData: searchFormData
32998
32769
  });
32999
32770
  if (requestConfigNew) {
33000
- _context.next = 3;
32771
+ _context.n = 1;
33001
32772
  break;
33002
32773
  }
33003
- return _context.abrupt("return");
33004
- case 3:
32774
+ return _context.a(2);
32775
+ case 1:
33005
32776
  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;
33006
- _context.next = 6;
32777
+ _context.n = 2;
33007
32778
  return getMetaData(metaDataId);
33008
- case 6:
33009
- metaData = _context.sent;
32779
+ case 2:
32780
+ metaData = _context.v;
33010
32781
  realMetaData = (metaData === null || metaData === void 0 ? void 0 : metaData.filter(function (item) {
33011
32782
  return (item === null || item === void 0 ? void 0 : item.inputType) != 1;
33012
32783
  })) || [];
@@ -33046,9 +32817,8 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
33046
32817
  // @ts-ignore
33047
32818
  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);
33048
32819
  }
33049
- case 14:
33050
- case "end":
33051
- return _context.stop();
32820
+ case 3:
32821
+ return _context.a(2);
33052
32822
  }
33053
32823
  }, _callee);
33054
32824
  }));
@@ -33151,7 +32921,7 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
33151
32921
  }, [requestConfig, tableState.columns]);
33152
32922
  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';
33153
32923
  var handleOk = function handleOk(rowData) {
33154
- var _props$selectProps2, _props$customSelector6, _props$customSelector7, _queryTableRef$curren13, _queryTableRef$curren14, _queryTableRef$curren15;
32924
+ var _props$selectProps2, _props$customSelector6, _props$customSelector7, _queryTableRef$curren11, _queryTableRef$curren12, _queryTableRef$curren13;
33155
32925
  var setSource = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
33156
32926
  //多选数据处理
33157
32927
  if (props === null || props === void 0 ? void 0 : (_props$selectProps2 = props.selectProps) === null || _props$selectProps2 === void 0 ? void 0 : _props$selectProps2.multipleForQuery) {
@@ -33162,9 +32932,9 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
33162
32932
  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()) || [];
33163
32933
  var realSelectedRows = selectedRows;
33164
32934
  if (!rowData && (selectedKesys === null || selectedKesys === void 0 ? void 0 : selectedKesys.length) !== (selectedRows === null || selectedRows === void 0 ? void 0 : selectedRows.length)) {
33165
- var _queryTableRef$curren10, _queryTableRef$curren11, _queryTableRef$curren12;
32935
+ var _queryTableRef$curren0, _queryTableRef$curren1, _queryTableRef$curren10;
33166
32936
  // @ts-ignore
33167
- var dataSource = (queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$curren10 = queryTableRef.current) === null || _queryTableRef$curren10 === void 0 ? void 0 : (_queryTableRef$curren11 = _queryTableRef$curren10.tableRef) === null || _queryTableRef$curren11 === void 0 ? void 0 : (_queryTableRef$curren12 = _queryTableRef$curren11.current) === null || _queryTableRef$curren12 === void 0 ? void 0 : _queryTableRef$curren12.getDataSource()) || [];
32937
+ 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()) || [];
33168
32938
  realSelectedRows = dataSource === null || dataSource === void 0 ? void 0 : dataSource.filter(function (s) {
33169
32939
  return selectedKesys.includes(s[rowKey]);
33170
32940
  });
@@ -33197,10 +32967,10 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
33197
32967
  });
33198
32968
  }
33199
32969
  mappings.map(function (item) {
33200
- var _props$customSelector10, _props$customSelector11, _props$customSelector12, _props$customSelector13;
33201
- if (((_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) && item.codeMappingTo === prop && 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]) {
33202
- var _props$customSelector14, _props$customSelector15;
33203
- values["".concat(item.codeMappingTo, "Name")] = rowData[(_props$customSelector14 = props.customSelectorConfig) === null || _props$customSelector14 === void 0 ? void 0 : (_props$customSelector15 = _props$customSelector14.extraData) === null || _props$customSelector15 === void 0 ? void 0 : _props$customSelector15.echoLabel];
32970
+ var _props$customSelector0, _props$customSelector1, _props$customSelector10, _props$customSelector11;
32971
+ 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]) {
32972
+ var _props$customSelector12, _props$customSelector13;
32973
+ 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];
33204
32974
  }
33205
32975
  values[item.codeMappingTo] = rowData[item.codeMappingFrom];
33206
32976
  });
@@ -33255,10 +33025,10 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
33255
33025
  }
33256
33026
  props.onCancel();
33257
33027
  //@ts-ignore
33258
- queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$curren13 = queryTableRef.current) === null || _queryTableRef$curren13 === void 0 ? void 0 : (_queryTableRef$curren14 = _queryTableRef$curren13.tableRef) === null || _queryTableRef$curren14 === void 0 ? void 0 : (_queryTableRef$curren15 = _queryTableRef$curren14.current) === null || _queryTableRef$curren15 === void 0 ? void 0 : _queryTableRef$curren15.clearRowSelection();
33028
+ 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();
33259
33029
  };
33260
33030
  var config = React$1.useMemo(function () {
33261
- var _props$selectProps3, _props$ctx9, _props$value2, _props$ctx10, _props$ctx10$form;
33031
+ var _props$selectProps3, _props$ctx9, _props$value2, _props$ctx0, _props$ctx0$form;
33262
33032
  var returnConfig = {
33263
33033
  size: 'small',
33264
33034
  needPageHeader: false,
@@ -33267,7 +33037,7 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
33267
33037
  rowSelection: (props === null || props === void 0 ? void 0 : (_props$selectProps3 = props.selectProps) === null || _props$selectProps3 === void 0 ? void 0 : _props$selectProps3.multipleForQuery) && !isView ? {
33268
33038
  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) {
33269
33039
  return v.key || v;
33270
- })) || (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))
33040
+ })) || (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))
33271
33041
  } : false,
33272
33042
  remoteDataSource: remoteDataSource,
33273
33043
  fields: tableState.fields,
@@ -33275,8 +33045,8 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
33275
33045
  rowKey: rowKey,
33276
33046
  tableProps: !isView && {
33277
33047
  rowClassName: function rowClassName(record) {
33278
- var _props$ctx11, _props$value3, _props$ctx12, _props$ctx12$form;
33279
- return record[rowKey] == (!(props === null || props === void 0 ? void 0 : (_props$ctx11 = props.ctx) === null || _props$ctx11 === void 0 ? void 0 : _props$ctx11.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$ctx12 = props.ctx) === null || _props$ctx12 === void 0 ? void 0 : (_props$ctx12$form = _props$ctx12.form) === null || _props$ctx12$form === void 0 ? void 0 : _props$ctx12$form.getFieldValue(props.id))) ? 'tableSelectedRow' : '';
33048
+ var _props$ctx1, _props$value3, _props$ctx10, _props$ctx10$form;
33049
+ 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' : '';
33280
33050
  },
33281
33051
  onRow: function onRow(record) {
33282
33052
  return {
@@ -33321,10 +33091,10 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
33321
33091
  }, "\u63D0\u4EA4"), /*#__PURE__*/React__default['default'].createElement(antd.Button, {
33322
33092
  type: "default",
33323
33093
  onClick: function onClick() {
33324
- var _queryTableRef$curren16, _queryTableRef$curren17, _queryTableRef$curren18;
33094
+ var _queryTableRef$curren14, _queryTableRef$curren15, _queryTableRef$curren16;
33325
33095
  props.onCancel();
33326
33096
  //@ts-ignore
33327
- queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$curren16 = queryTableRef.current) === null || _queryTableRef$curren16 === void 0 ? void 0 : (_queryTableRef$curren17 = _queryTableRef$curren16.tableRef) === null || _queryTableRef$curren17 === void 0 ? void 0 : (_queryTableRef$curren18 = _queryTableRef$curren17.current) === null || _queryTableRef$curren18 === void 0 ? void 0 : _queryTableRef$curren18.clearRowSelection();
33097
+ 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();
33328
33098
  }
33329
33099
  }, "\u53D6\u6D88"))));
33330
33100
  });
@@ -33548,19 +33318,19 @@ var BsCascader = function BsCascader(_ref) {
33548
33318
  _useState2 = _slicedToArray(_useState, 2),
33549
33319
  handSource = _useState2[0],
33550
33320
  setHandSource = _useState2[1];
33551
- React$1.useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
33321
+ React$1.useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
33552
33322
  var resData, data;
33553
- return _regeneratorRuntime().wrap(function _callee$(_context) {
33554
- while (1) switch (_context.prev = _context.next) {
33323
+ return _regenerator().w(function (_context) {
33324
+ while (1) switch (_context.n) {
33555
33325
  case 0:
33556
33326
  if (!(!source && initRequestSource)) {
33557
- _context.next = 6;
33327
+ _context.n = 2;
33558
33328
  break;
33559
33329
  }
33560
- _context.next = 3;
33330
+ _context.n = 1;
33561
33331
  return initRequestSource();
33562
- case 3:
33563
- resData = _context.sent;
33332
+ case 1:
33333
+ resData = _context.v;
33564
33334
  data = (resData === null || resData === void 0 ? void 0 : resData.map(function (item) {
33565
33335
  return _objectSpread2(_objectSpread2({}, item), {}, {
33566
33336
  label: item.text,
@@ -33568,9 +33338,8 @@ var BsCascader = function BsCascader(_ref) {
33568
33338
  });
33569
33339
  })) || [];
33570
33340
  setHandSource(data);
33571
- case 6:
33572
- case "end":
33573
- return _context.stop();
33341
+ case 2:
33342
+ return _context.a(2);
33574
33343
  }
33575
33344
  }, _callee);
33576
33345
  })), []);
@@ -33700,20 +33469,17 @@ function getRegularThresholdRange(_x) {
33700
33469
  return _getRegularThresholdRange.apply(this, arguments);
33701
33470
  }
33702
33471
  function _getRegularThresholdRange() {
33703
- _getRegularThresholdRange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
33704
- return _regeneratorRuntime().wrap(function _callee$(_context) {
33705
- while (1) switch (_context.prev = _context.next) {
33472
+ _getRegularThresholdRange = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(params) {
33473
+ return _regenerator().w(function (_context) {
33474
+ while (1) switch (_context.n) {
33706
33475
  case 0:
33707
- return _context.abrupt("return", requestUtil({
33476
+ return _context.a(2, requestUtil({
33708
33477
  url: "/basic/regularThresholdRange/getVals/".concat(params.queryIdentify),
33709
33478
  method: 'POST',
33710
33479
  data: _objectSpread2(_objectSpread2({}, params), {}, {
33711
33480
  queryIdentify: undefined
33712
33481
  })
33713
33482
  }));
33714
- case 1:
33715
- case "end":
33716
- return _context.stop();
33717
33483
  }
33718
33484
  }, _callee);
33719
33485
  }));
@@ -33854,24 +33620,24 @@ var RuleField = /*#__PURE__*/function (_Component) {
33854
33620
  };
33855
33621
  //规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
33856
33622
  _this.getRegularThresholdRange = /*#__PURE__*/function () {
33857
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
33623
+ var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
33858
33624
  var thresholdQuery, extraRequestUrl, querParams, needQueryList, res;
33859
- return _regeneratorRuntime().wrap(function _callee$(_context) {
33860
- while (1) switch (_context.prev = _context.next) {
33625
+ return _regenerator().w(function (_context) {
33626
+ while (1) switch (_context.n) {
33861
33627
  case 0:
33862
33628
  if (queryIdentify) {
33863
- _context.next = 2;
33629
+ _context.n = 1;
33864
33630
  break;
33865
33631
  }
33866
- return _context.abrupt("return");
33867
- case 2:
33632
+ return _context.a(2);
33633
+ case 1:
33868
33634
  thresholdQuery = _this.state.thresholdQuery;
33869
33635
  extraRequestUrl = '';
33870
33636
  querParams = setParams(propertyCode, thresholdQuery);
33871
33637
  if (!queryIdentityInfo.find(function (item) {
33872
33638
  return item.identity == propertyCode;
33873
33639
  })) {
33874
- _context.next = 10;
33640
+ _context.n = 3;
33875
33641
  break;
33876
33642
  }
33877
33643
  //判断查询属性枚举时有没有必传参数,如果必传参数没有值则不调用查询接口
@@ -33885,15 +33651,15 @@ var RuleField = /*#__PURE__*/function (_Component) {
33885
33651
  if (!needQueryList.some(function (item) {
33886
33652
  return !querParams[item] || !querParams[item].length;
33887
33653
  })) {
33888
- _context.next = 9;
33654
+ _context.n = 2;
33889
33655
  break;
33890
33656
  }
33891
- return _context.abrupt("return");
33892
- case 9:
33657
+ return _context.a(2);
33658
+ case 2:
33893
33659
  extraRequestUrl = queryIdentityInfo.find(function (item) {
33894
33660
  return item.identity == propertyCode;
33895
33661
  }).requestUrl || '';
33896
- case 10:
33662
+ case 3:
33897
33663
  if (queryIdentifyType === 'dictCodeIdentify') {
33898
33664
  extraRequestUrl = "bscDictItem/selectDictItemsByDictCode"; // 字典接口
33899
33665
  querParams = {
@@ -33904,7 +33670,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
33904
33670
  // querParams = { dictCode: queryIdentify }
33905
33671
  }
33906
33672
  if (!extraRequestUrl) {
33907
- _context.next = 16;
33673
+ _context.n = 4;
33908
33674
  break;
33909
33675
  }
33910
33676
  if (queryIdentify == 'maintain_area_code') {
@@ -33943,43 +33709,42 @@ var RuleField = /*#__PURE__*/function (_Component) {
33943
33709
  return handleData;
33944
33710
  }
33945
33711
  });
33946
- _context.next = 29;
33712
+ _context.n = 8;
33947
33713
  break;
33948
- case 16:
33714
+ case 4:
33949
33715
  if (!(queryIdentifyType == 'objectPropertyListIdentify')) {
33950
- _context.next = 20;
33716
+ _context.n = 5;
33951
33717
  break;
33952
33718
  }
33953
33719
  _this.setState({
33954
33720
  thresholdList: queryIdentify
33955
33721
  });
33956
- _context.next = 29;
33722
+ _context.n = 8;
33957
33723
  break;
33958
- case 20:
33724
+ case 5:
33959
33725
  if (!(queryIdentifyType == 'objectPropertyCodeIdentify')) {
33960
- _context.next = 24;
33726
+ _context.n = 6;
33961
33727
  break;
33962
33728
  }
33963
33729
  // TODO待处理
33964
33730
  _this.setState({
33965
33731
  thresholdList: []
33966
33732
  });
33967
- _context.next = 29;
33733
+ _context.n = 8;
33968
33734
  break;
33969
- case 24:
33735
+ case 6:
33970
33736
  querParams.queryIdentify = queryIdentify;
33971
- _context.next = 27;
33737
+ _context.n = 7;
33972
33738
  return getRegularThresholdRange(querParams);
33973
- case 27:
33974
- res = _context.sent;
33739
+ case 7:
33740
+ res = _context.v;
33975
33741
  if (handleError(res)) {
33976
33742
  _this.setState({
33977
33743
  thresholdList: (res === null || res === void 0 ? void 0 : res.data) || []
33978
33744
  });
33979
33745
  }
33980
- case 29:
33981
- case "end":
33982
- return _context.stop();
33746
+ case 8:
33747
+ return _context.a(2);
33983
33748
  }
33984
33749
  }, _callee);
33985
33750
  }));
@@ -34811,11 +34576,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
34811
34576
  isAll: true,
34812
34577
  needNameAndCode: true,
34813
34578
  notChangeOnSelect: true,
34814
- initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
34815
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
34816
- while (1) switch (_context2.prev = _context2.next) {
34579
+ initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
34580
+ return _regenerator().w(function (_context2) {
34581
+ while (1) switch (_context2.n) {
34817
34582
  case 0:
34818
- _context2.next = 2;
34583
+ _context2.n = 1;
34819
34584
  return bssula.request({
34820
34585
  url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
34821
34586
  method: 'get',
@@ -34832,11 +34597,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
34832
34597
  return handleData;
34833
34598
  }
34834
34599
  });
34835
- case 2:
34836
- return _context2.abrupt("return", _context2.sent);
34837
- case 3:
34838
- case "end":
34839
- return _context2.stop();
34600
+ case 1:
34601
+ return _context2.a(2, _context2.v);
34840
34602
  }
34841
34603
  }, _callee2);
34842
34604
  })),
@@ -34860,11 +34622,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
34860
34622
  isAll: true,
34861
34623
  needNameAndCode: true,
34862
34624
  notChangeOnSelect: true,
34863
- initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
34864
- return _regeneratorRuntime().wrap(function _callee3$(_context3) {
34865
- while (1) switch (_context3.prev = _context3.next) {
34625
+ initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3() {
34626
+ return _regenerator().w(function (_context3) {
34627
+ while (1) switch (_context3.n) {
34866
34628
  case 0:
34867
- _context3.next = 2;
34629
+ _context3.n = 1;
34868
34630
  return bssula.request({
34869
34631
  url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
34870
34632
  method: 'get',
@@ -34881,11 +34643,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
34881
34643
  return handleData;
34882
34644
  }
34883
34645
  });
34884
- case 2:
34885
- return _context3.abrupt("return", _context3.sent);
34886
- case 3:
34887
- case "end":
34888
- return _context3.stop();
34646
+ case 1:
34647
+ return _context3.a(2, _context3.v);
34889
34648
  }
34890
34649
  }, _callee3);
34891
34650
  })),
@@ -34911,11 +34670,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
34911
34670
  isAll: true,
34912
34671
  needNameAndCode: true,
34913
34672
  notChangeOnSelect: true,
34914
- initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
34915
- return _regeneratorRuntime().wrap(function _callee4$(_context4) {
34916
- while (1) switch (_context4.prev = _context4.next) {
34673
+ initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4() {
34674
+ return _regenerator().w(function (_context4) {
34675
+ while (1) switch (_context4.n) {
34917
34676
  case 0:
34918
- _context4.next = 2;
34677
+ _context4.n = 1;
34919
34678
  return bssula.request({
34920
34679
  url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
34921
34680
  method: 'get',
@@ -34932,11 +34691,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
34932
34691
  return handleData;
34933
34692
  }
34934
34693
  });
34935
- case 2:
34936
- return _context4.abrupt("return", _context4.sent);
34937
- case 3:
34938
- case "end":
34939
- return _context4.stop();
34694
+ case 1:
34695
+ return _context4.a(2, _context4.v);
34940
34696
  }
34941
34697
  }, _callee4);
34942
34698
  })),
@@ -35623,8 +35379,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
35623
35379
  }
35624
35380
  }));
35625
35381
  } else {
35626
- var _values10;
35627
- var _currentValue9 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values10 = values) === null || _values10 === void 0 ? void 0 : _values10.map(function (s, vIndex) {
35382
+ var _values0;
35383
+ var _currentValue9 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values0 = values) === null || _values0 === void 0 ? void 0 : _values0.map(function (s, vIndex) {
35628
35384
  return {
35629
35385
  key: s,
35630
35386
  label: valueNames[vIndex],
@@ -35902,8 +35658,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
35902
35658
  }
35903
35659
  }));
35904
35660
  } else {
35905
- var _values11;
35906
- var _currentValue10 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values11 = values) === null || _values11 === void 0 ? void 0 : _values11.map(function (s, vIndex) {
35661
+ var _values1;
35662
+ var _currentValue0 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values1 = values) === null || _values1 === void 0 ? void 0 : _values1.map(function (s, vIndex) {
35907
35663
  return {
35908
35664
  key: s,
35909
35665
  label: valueNames[vIndex],
@@ -35925,7 +35681,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
35925
35681
  } : {}),
35926
35682
  disabled: disabled,
35927
35683
  labelInValue: true,
35928
- value: _currentValue10,
35684
+ value: _currentValue0,
35929
35685
  requestConfig: {
35930
35686
  filterInit: 'qp-code-in'
35931
35687
  },
@@ -36018,8 +35774,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
36018
35774
  }
36019
35775
  }));
36020
35776
  } else {
36021
- var _values12;
36022
- var _currentValue11 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values12 = values) === null || _values12 === void 0 ? void 0 : _values12.map(function (s, vIndex) {
35777
+ var _values10;
35778
+ var _currentValue1 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values10 = values) === null || _values10 === void 0 ? void 0 : _values10.map(function (s, vIndex) {
36023
35779
  return {
36024
35780
  key: s,
36025
35781
  label: valueNames[vIndex],
@@ -36041,7 +35797,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
36041
35797
  } : {}),
36042
35798
  disabled: disabled,
36043
35799
  labelInValue: true,
36044
- value: _currentValue11,
35800
+ value: _currentValue1,
36045
35801
  requestConfig: {
36046
35802
  filterInit: 'qp-code-in'
36047
35803
  },
@@ -36134,8 +35890,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
36134
35890
  }
36135
35891
  }));
36136
35892
  } else {
36137
- var _values13;
36138
- var _currentValue12 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values13 = values) === null || _values13 === void 0 ? void 0 : _values13.map(function (s, vIndex) {
35893
+ var _values11;
35894
+ var _currentValue10 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values11 = values) === null || _values11 === void 0 ? void 0 : _values11.map(function (s, vIndex) {
36139
35895
  return {
36140
35896
  key: s,
36141
35897
  label: valueNames[vIndex],
@@ -36157,7 +35913,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
36157
35913
  } : {}),
36158
35914
  disabled: disabled,
36159
35915
  labelInValue: true,
36160
- value: _currentValue12,
35916
+ value: _currentValue10,
36161
35917
  requestConfig: {
36162
35918
  filterInit: 'qp-brandCode-in'
36163
35919
  },
@@ -36348,8 +36104,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
36348
36104
  }
36349
36105
  }));
36350
36106
  } else {
36351
- var _values14;
36352
- var _currentValue13 = dataInputBusinessType === 12 ? ((_values14 = values) === null || _values14 === void 0 ? void 0 : _values14.map(function (s, vIndex) {
36107
+ var _values12;
36108
+ var _currentValue11 = dataInputBusinessType === 12 ? ((_values12 = values) === null || _values12 === void 0 ? void 0 : _values12.map(function (s, vIndex) {
36353
36109
  return {
36354
36110
  key: s,
36355
36111
  label: valueNames[vIndex]
@@ -36377,7 +36133,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
36377
36133
  isSearchForm: true,
36378
36134
  customSelectorConfig: (others === null || others === void 0 ? void 0 : others.customSelectorConfig) || {},
36379
36135
  disabled: disabled,
36380
- value: _currentValue13,
36136
+ value: _currentValue11,
36381
36137
  onChange: function onChange(value, sourceList) {
36382
36138
  if (dataInputBusinessType === 12) {
36383
36139
  var _value$map3, _sourceList$filter3;
@@ -36697,9 +36453,9 @@ var App$1 = function App(_ref) {
36697
36453
  UpdateState(res);
36698
36454
  };
36699
36455
  var _useState9 = React$1.useState(false),
36700
- _useState10 = _slicedToArray(_useState9, 2),
36701
- isModalVisible = _useState10[0],
36702
- setIsModalVisible = _useState10[1];
36456
+ _useState0 = _slicedToArray(_useState9, 2),
36457
+ isModalVisible = _useState0[0],
36458
+ setIsModalVisible = _useState0[1];
36703
36459
  var showModal = function showModal() {
36704
36460
  setIsModalVisible(true);
36705
36461
  };
@@ -37180,27 +36936,26 @@ function RenderCompItem(props) {
37180
36936
  dictData = _useState2[0],
37181
36937
  setDictData = _useState2[1];
37182
36938
  var getDictData = /*#__PURE__*/function () {
37183
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
36939
+ var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
37184
36940
  var _data$map;
37185
36941
  var data;
37186
- return _regeneratorRuntime().wrap(function _callee$(_context) {
37187
- while (1) switch (_context.prev = _context.next) {
36942
+ return _regenerator().w(function (_context) {
36943
+ while (1) switch (_context.n) {
37188
36944
  case 0:
37189
- _context.next = 2;
36945
+ _context.n = 1;
37190
36946
  return bssula.request({
37191
36947
  url: "/basic/bscDictItem/allItemList?qp-code-eq=".concat(ites.dictionaryCode)
37192
36948
  });
37193
- case 2:
37194
- data = _context.sent;
36949
+ case 1:
36950
+ data = _context.v;
37195
36951
  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) {
37196
36952
  return {
37197
36953
  text: item.dictItemName,
37198
36954
  value: item.dictItemCode
37199
36955
  };
37200
36956
  }));
37201
- case 4:
37202
- case "end":
37203
- return _context.stop();
36957
+ case 2:
36958
+ return _context.a(2);
37204
36959
  }
37205
36960
  }, _callee);
37206
36961
  }));
@@ -37441,11 +37196,11 @@ function RenderCompItem(props) {
37441
37196
  needNameAndCode: true,
37442
37197
  notChangeOnSelect: true,
37443
37198
  initRequestSource: function () {
37444
- var _initRequestSource = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
37445
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
37446
- while (1) switch (_context2.prev = _context2.next) {
37199
+ var _initRequestSource = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
37200
+ return _regenerator().w(function (_context2) {
37201
+ while (1) switch (_context2.n) {
37447
37202
  case 0:
37448
- _context2.next = 2;
37203
+ _context2.n = 1;
37449
37204
  return bssula.request({
37450
37205
  url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
37451
37206
  method: 'get',
@@ -37463,11 +37218,8 @@ function RenderCompItem(props) {
37463
37218
  return handleData;
37464
37219
  }
37465
37220
  });
37466
- case 2:
37467
- return _context2.abrupt("return", _context2.sent);
37468
- case 3:
37469
- case "end":
37470
- return _context2.stop();
37221
+ case 1:
37222
+ return _context2.a(2, _context2.v);
37471
37223
  }
37472
37224
  }, _callee2);
37473
37225
  }));
@@ -39517,13 +39269,13 @@ var BaseRule = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
39517
39269
  ruleTypeData = _useState8[0],
39518
39270
  setRuleTypeData = _useState8[1];
39519
39271
  var _useState9 = React$1.useState([]),
39520
- _useState10 = _slicedToArray(_useState9, 2),
39521
- ruleReturnConfig = _useState10[0],
39522
- setRuleReturnConfig = _useState10[1];
39523
- var _useState11 = React$1.useState({}),
39524
- _useState12 = _slicedToArray(_useState11, 2),
39525
- templateData = _useState12[0],
39526
- setTemplateData = _useState12[1];
39272
+ _useState0 = _slicedToArray(_useState9, 2),
39273
+ ruleReturnConfig = _useState0[0],
39274
+ setRuleReturnConfig = _useState0[1];
39275
+ var _useState1 = React$1.useState({}),
39276
+ _useState10 = _slicedToArray(_useState1, 2),
39277
+ templateData = _useState10[0],
39278
+ setTemplateData = _useState10[1];
39527
39279
  var loadRuleReturnConfig = function loadRuleReturnConfig(currentSceneId) {
39528
39280
  bssula.request({
39529
39281
  url: "/basic/ruleTemplate/".concat(currentSceneId),
@@ -39859,25 +39611,25 @@ var index$7 = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
39859
39611
  regularDataList = _useState8[0],
39860
39612
  setRegularDataList = _useState8[1];
39861
39613
  var _useState9 = React$1.useState([]),
39862
- _useState10 = _slicedToArray(_useState9, 2),
39863
- baseRuleDetailList = _useState10[0],
39864
- setBaseRuleDetailList = _useState10[1]; // 规则实例详情集合
39865
- var _useState11 = React$1.useState([]),
39614
+ _useState0 = _slicedToArray(_useState9, 2),
39615
+ baseRuleDetailList = _useState0[0],
39616
+ setBaseRuleDetailList = _useState0[1]; // 规则实例详情集合
39617
+ var _useState1 = React$1.useState([]),
39618
+ _useState10 = _slicedToArray(_useState1, 2),
39619
+ systemVariableList = _useState10[0],
39620
+ setSystemVariableList = _useState10[1];
39621
+ var _useState11 = React$1.useState(false),
39866
39622
  _useState12 = _slicedToArray(_useState11, 2),
39867
- systemVariableList = _useState12[0],
39868
- setSystemVariableList = _useState12[1];
39623
+ isGetDefRuleDataRes = _useState12[0],
39624
+ setIsGetDefRuleDataRes = _useState12[1]; // 为了在回显的时候辨别异步查询是否已完成,防止提前认为为新增设置了模板数据,导致再渲染编辑时候 输入框defaultValue不再渲染问题
39869
39625
  var _useState13 = React$1.useState(false),
39870
39626
  _useState14 = _slicedToArray(_useState13, 2),
39871
- isGetDefRuleDataRes = _useState14[0],
39872
- setIsGetDefRuleDataRes = _useState14[1]; // 为了在回显的时候辨别异步查询是否已完成,防止提前认为为新增设置了模板数据,导致再渲染编辑时候 输入框defaultValue不再渲染问题
39627
+ isGetRuleDataRes = _useState14[0],
39628
+ setIsGetRuleDataRes = _useState14[1];
39873
39629
  var _useState15 = React$1.useState(false),
39874
39630
  _useState16 = _slicedToArray(_useState15, 2),
39875
- isGetRuleDataRes = _useState16[0],
39876
- setIsGetRuleDataRes = _useState16[1];
39877
- var _useState17 = React$1.useState(false),
39878
- _useState18 = _slicedToArray(_useState17, 2),
39879
- groupOtherPriorityList = _useState18[0],
39880
- setGroupOtherPriorityList = _useState18[1];
39631
+ groupOtherPriorityList = _useState16[0],
39632
+ setGroupOtherPriorityList = _useState16[1];
39881
39633
  var baseRuleRef = React$1.useRef();
39882
39634
  var currentSceneName = (datail === null || datail === void 0 ? void 0 : datail.name) || '';
39883
39635
  // 查询规则组下所有规则实例