@bit-sun/business-component 4.2.0-alpha.6.1 → 4.2.0-alpha.6.2

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 (71) hide show
  1. package/dist/components/Business/AddSelectBusiness/index.d.ts +4 -3
  2. package/dist/components/Business/BsLayouts/Components/AllFunc/drawContent.d.ts +2 -1
  3. package/dist/components/Business/BsLayouts/Components/ChooseStore/index.d.ts +2 -1
  4. package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.d.ts +1 -1
  5. package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/leftTree.d.ts +1 -1
  6. package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/rightTree.d.ts +2 -2
  7. package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/DrawContent.d.ts +2 -1
  8. package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/customMenuHeader.d.ts +2 -1
  9. package/dist/components/Business/BsLayouts/Components/CustomerMenu/index.d.ts +1 -1
  10. package/dist/components/Business/BsLayouts/Components/GlobalHeader/index.d.ts +2 -1
  11. package/dist/components/Business/BsLayouts/Components/RightContent/LoginModal.d.ts +2 -1
  12. package/dist/components/Business/BsLayouts/index.d.ts +1 -1
  13. package/dist/components/Business/BsSulaQueryTable/SearchItemSetting.d.ts +5 -5
  14. package/dist/components/Business/BsSulaQueryTable/index.d.ts +2 -1
  15. package/dist/components/Business/BsSulaQueryTable/setting.d.ts +6 -6
  16. package/dist/components/Business/BsSulaQueryTable/utils.d.ts +15 -14
  17. package/dist/components/Business/CommodityEntry/index.d.ts +2 -1
  18. package/dist/components/Business/CommonAlert/index.d.ts +2 -1
  19. package/dist/components/Business/CommonGuideWrapper/index.d.ts +3 -3
  20. package/dist/components/Business/DetailPageWrapper/index.d.ts +12 -11
  21. package/dist/components/Business/HomePageWrapper/index.d.ts +2 -1
  22. package/dist/components/Business/ItemPropertySelector/index.d.ts +2 -1
  23. package/dist/components/Business/JsonQueryTable/components/FieldsModifyModal.d.ts +2 -1
  24. package/dist/components/Business/JsonQueryTable/components/FieldsSettingsTable.d.ts +2 -1
  25. package/dist/components/Business/JsonQueryTable/components/Formula.d.ts +2 -1
  26. package/dist/components/Business/JsonQueryTable/components/MaintainOptions.d.ts +2 -1
  27. package/dist/components/Business/JsonQueryTable/drawer/index.d.ts +2 -1
  28. package/dist/components/Business/PropertyModal/index.d.ts +2 -1
  29. package/dist/components/Business/PropertyModal/propertyGroup.d.ts +1 -1
  30. package/dist/components/Business/SearchSelect/index.d.ts +1 -1
  31. package/dist/components/Business/StateFlow/index.d.ts +2 -1
  32. package/dist/components/Business/TreeSearchSelect/index.d.ts +1 -1
  33. package/dist/components/Business/columnSettingTable/columnSetting.d.ts +6 -6
  34. package/dist/components/Business/columnSettingTable/components/TableSumComponent.d.ts +2 -1
  35. package/dist/components/Business/columnSettingTable/index.d.ts +3 -3
  36. package/dist/components/Business/columnSettingTable/sulaSettingTable.d.ts +3 -3
  37. package/dist/components/Business/columnSettingTable/utils.d.ts +2 -1
  38. package/dist/components/Business/moreTreeTable/FixedScrollBar.d.ts +1 -1
  39. package/dist/components/Common/ParagraphCopier/index.d.ts +1 -1
  40. package/dist/components/Common/Section/index.d.ts +1 -1
  41. package/dist/components/Functional/AddSelect/index.d.ts +2 -1
  42. package/dist/components/Functional/AuthButton/index.d.ts +2 -1
  43. package/dist/components/Functional/DataImport/index.d.ts +3 -3
  44. package/dist/components/Functional/DataValidation/index.d.ts +4 -4
  45. package/dist/components/Functional/ExportFunctions/ExportIcon/index.d.ts +2 -1
  46. package/dist/components/Functional/QueryMutipleInput/index.d.ts +2 -1
  47. package/dist/components/Functional/QueryMutipleSelect/index.d.ts +2 -1
  48. package/dist/components/Functional/SearchSelect/index.d.ts +1 -1
  49. package/dist/components/Functional/SearchSelect/utils.d.ts +3 -2
  50. package/dist/components/Functional/TreeSearchSelect/index.d.ts +2 -1
  51. package/dist/components/Solution/RuleComponent/CustomPlugin/CustomSelector/CustomSelectorModal.d.ts +1 -1
  52. package/dist/components/Solution/RuleComponent/CustomPlugin/CustomSelector/index.d.ts +2 -1
  53. package/dist/components/Solution/RuleComponent/Formula.d.ts +2 -1
  54. package/dist/components/Solution/RuleComponent/InnerSelect.d.ts +2 -1
  55. package/dist/components/Solution/RuleComponent/RenderCompItem.d.ts +2 -1
  56. package/dist/components/Solution/RuleSetter/RuleInstance.d.ts +2 -1
  57. package/dist/components/Solution/RuleSetter/baseRule.d.ts +1 -1
  58. package/dist/components/Solution/RuleSetter/index.d.ts +1 -1
  59. package/dist/index.d.ts +0 -1
  60. package/dist/index.esm.js +1092 -860
  61. package/dist/index.js +1091 -861
  62. package/dist/plugin/TableColumnSetting/index.d.ts +5 -5
  63. package/dist/utils/TableUtils.d.ts +19 -18
  64. package/dist/utils/utils.d.ts +0 -41
  65. package/package.json +1 -1
  66. package/src/components/Business/SearchSelect/BusinessUtils.tsx +93 -2
  67. package/src/index.ts +0 -2
  68. package/src/utils/utils.ts +1 -41
  69. package/dist/components/Business/SystemLog/index.d.ts +0 -78
  70. package/src/components/Business/SystemLog/index.md +0 -37
  71. package/src/components/Business/SystemLog/index.tsx +0 -87
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 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]);
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]);
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 (-1 !== e.indexOf(n)) continue;
223
+ if (e.includes(n)) continue;
224
224
  t[n] = r[n];
225
225
  }
226
226
  return t;
@@ -230,115 +230,306 @@ 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 _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
- };
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
294
281
  };
295
- }(r, o, i), !0), u;
282
+ }
296
283
  }
297
- var a = {};
284
+ e.wrap = wrap;
285
+ var h = "suspendedStart",
286
+ l = "suspendedYield",
287
+ f = "executing",
288
+ s = "completed",
289
+ y = {};
298
290
  function Generator() {}
299
291
  function GeneratorFunction() {}
300
292
  function GeneratorFunctionPrototype() {}
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 () {
293
+ var p = {};
294
+ define(p, a, function () {
310
295
  return this;
311
- }), _regeneratorDefine(u, "toString", function () {
312
- return "[object Generator]";
313
- }), (_regenerator = function () {
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) {
314
427
  return {
315
- w: i,
316
- m: f
428
+ __await: t
317
429
  };
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
- });
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
+ }
338
487
  }
339
- o("next", 0), o("throw", 1), o("return", 2);
488
+ },
489
+ abrupt: function (t, e) {
490
+ for (var r = this.tryEntries.length - 1; r >= 0; --r) {
491
+ var o = this.tryEntries[r];
492
+ if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
493
+ var i = o;
494
+ break;
495
+ }
496
+ }
497
+ i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
498
+ var a = i ? i.completion : {};
499
+ return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
500
+ },
501
+ complete: function (t, e) {
502
+ if ("throw" === t.type) throw t.arg;
503
+ return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
504
+ },
505
+ finish: function (t) {
506
+ for (var e = this.tryEntries.length - 1; e >= 0; --e) {
507
+ var r = this.tryEntries[e];
508
+ if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
509
+ }
510
+ },
511
+ catch: function (t) {
512
+ for (var e = this.tryEntries.length - 1; e >= 0; --e) {
513
+ var r = this.tryEntries[e];
514
+ if (r.tryLoc === t) {
515
+ var n = r.completion;
516
+ if ("throw" === n.type) {
517
+ var o = n.arg;
518
+ resetTryEntry(r);
519
+ }
520
+ return o;
521
+ }
522
+ }
523
+ throw Error("illegal catch attempt");
524
+ },
525
+ delegateYield: function (e, r, n) {
526
+ return this.delegate = {
527
+ iterator: values(e),
528
+ resultName: r,
529
+ nextLoc: n
530
+ }, "next" === this.method && (this.arg = t), y;
340
531
  }
341
- }, _regeneratorDefine(e, r, n, t);
532
+ }, e;
342
533
  }
343
534
  function _setPrototypeOf(t, e) {
344
535
  return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
@@ -1286,45 +1477,6 @@ var handleConvertResponse = function handleConvertResponse(items, total) {
1286
1477
  var noEmptyArray = function noEmptyArray(targetObj) {
1287
1478
  return Array.isArray(targetObj) && targetObj.length !== 0;
1288
1479
  };
1289
- var formContainerAndItemLayout = function formContainerAndItemLayout(type, title, name) {
1290
- return type === 'form' ? {
1291
- container: {
1292
- type: 'card',
1293
- props: {
1294
- title: title,
1295
- id: Math.random(),
1296
- level: 1,
1297
- name: name
1298
- }
1299
- },
1300
- itemLayout: {
1301
- span: 8,
1302
- labelCol: {
1303
- span: 8
1304
- },
1305
- wrapperCol: {
1306
- span: 18
1307
- }
1308
- }
1309
- } : {
1310
- container: {
1311
- type: 'card',
1312
- props: {
1313
- title: title,
1314
- id: Math.random(),
1315
- level: 1,
1316
- bordered: null,
1317
- isWhiteCard: true,
1318
- name: name
1319
- }
1320
- },
1321
- itemLayout: {
1322
- wrapperCol: {
1323
- span: 0
1324
- }
1325
- }
1326
- };
1327
- };
1328
1480
 
1329
1481
  // 判断某个按钮/菜单 是否有权限,返回布尔值
1330
1482
  var authFunc = function authFunc(code) {
@@ -1411,22 +1563,22 @@ var parseToServe = function parseToServe(outdata, revertChart) {
1411
1563
  // sheepMap是表头字段中英文映射
1412
1564
  // sheetCount:表的数量,默认一张
1413
1565
  var resolveFile = /*#__PURE__*/function () {
1414
- var _ref3 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(file) {
1566
+ var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(file) {
1415
1567
  var config,
1416
1568
  data,
1417
1569
  _args = arguments;
1418
- return _regenerator().w(function (_context) {
1419
- while (1) switch (_context.n) {
1570
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
1571
+ while (1) switch (_context.prev = _context.next) {
1420
1572
  case 0:
1421
1573
  config = _args.length > 1 && _args[1] !== undefined ? _args[1] : {
1422
1574
  sheetMap: [],
1423
1575
  sheetCount: 1
1424
1576
  };
1425
- _context.n = 1;
1577
+ _context.next = 3;
1426
1578
  return analyseExcelToByte(file);
1427
- case 1:
1428
- data = _context.v;
1429
- return _context.a(2, new Promise(function (resolve, reject) {
1579
+ case 3:
1580
+ data = _context.sent;
1581
+ return _context.abrupt("return", new Promise(function (resolve, reject) {
1430
1582
  var workbook = XLSX.read(data, {
1431
1583
  type: 'binary'
1432
1584
  });
@@ -1438,6 +1590,9 @@ var resolveFile = /*#__PURE__*/function () {
1438
1590
  var outdata = parseToServe(sheetMapJsonList, config.sheetMap);
1439
1591
  resolve(outdata);
1440
1592
  }));
1593
+ case 5:
1594
+ case "end":
1595
+ return _context.stop();
1441
1596
  }
1442
1597
  }, _callee);
1443
1598
  }));
@@ -1447,40 +1602,41 @@ var resolveFile = /*#__PURE__*/function () {
1447
1602
  }();
1448
1603
  //读取文件
1449
1604
  var readerXlsxToList = /*#__PURE__*/function () {
1450
- var _ref4 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(file, fileList, uploadRef, done, otherInfo) {
1605
+ var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(file, fileList, uploadRef, done, otherInfo) {
1451
1606
  var _ref5, callback, sheetMap, nowFile, data2, data;
1452
- return _regenerator().w(function (_context2) {
1453
- while (1) switch (_context2.n) {
1607
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
1608
+ while (1) switch (_context2.prev = _context2.next) {
1454
1609
  case 0:
1455
1610
  _ref5 = otherInfo || {}, callback = _ref5.callback, sheetMap = _ref5.sheetMap;
1456
1611
  if (!(Array.isArray(fileList) && fileList.length > 0)) {
1457
- _context2.n = 3;
1612
+ _context2.next = 15;
1458
1613
  break;
1459
1614
  }
1460
1615
  nowFile = fileList[fileList.length - 1]; // 阻止了默认上传file没有originFileObj了 得从fileList中去取
1461
- _context2.n = 1;
1616
+ _context2.next = 5;
1462
1617
  return resolveFile(nowFile.originFileObj, {
1463
1618
  sheetMap: fieldMappingReverse(sheetMap),
1464
1619
  sheetCount: 1
1465
1620
  });
1466
- case 1:
1467
- data2 = _context2.v;
1621
+ case 5:
1622
+ data2 = _context2.sent;
1468
1623
  data = data2[0];
1469
1624
  if (data.length) {
1470
- _context2.n = 2;
1625
+ _context2.next = 10;
1471
1626
  break;
1472
1627
  }
1473
1628
  antd.message.error("\u8BF7\u5148\u5F55\u5165\u6570\u636E\u518D\u5BFC\u5165");
1474
- return _context2.a(2);
1475
- case 2:
1629
+ return _context2.abrupt("return");
1630
+ case 10:
1476
1631
  if (callback) callback(data);
1477
1632
  !callback && antd.message.success("\u5BFC\u5165\u6210\u529F");
1478
- return _context2.a(2, data);
1479
- case 3:
1633
+ return _context2.abrupt("return", data);
1634
+ case 15:
1480
1635
  antd.message.error("\u8BF7\u9009\u62E9\u6587\u4EF6");
1481
- return _context2.a(2);
1482
- case 4:
1483
- return _context2.a(2);
1636
+ return _context2.abrupt("return");
1637
+ case 17:
1638
+ case "end":
1639
+ return _context2.stop();
1484
1640
  }
1485
1641
  }, _callee2);
1486
1642
  }));
@@ -2432,14 +2588,17 @@ var requestUtil = function requestUtil(_ref) {
2432
2588
  return request__default['default'](url, parms).then(handleResponseData);
2433
2589
  };
2434
2590
  var handleResponseData = /*#__PURE__*/function () {
2435
- var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(response) {
2436
- return _regenerator().w(function (_context) {
2437
- while (1) switch (_context.n) {
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) {
2438
2594
  case 0:
2439
- return _context.a(2, Promise.resolve({
2595
+ return _context.abrupt("return", Promise.resolve({
2440
2596
  data: response,
2441
2597
  status: response.status
2442
2598
  }));
2599
+ case 1:
2600
+ case "end":
2601
+ return _context.stop();
2443
2602
  }
2444
2603
  }, _callee);
2445
2604
  }));
@@ -4582,27 +4741,27 @@ var QueryMutipleSearchSelect = function QueryMutipleSearchSelect(_ref) {
4582
4741
  popvalue = _useState8[0],
4583
4742
  setPopValue = _useState8[1];
4584
4743
  var _useState9 = React$1.useState([]),
4585
- _useState0 = _slicedToArray(_useState9, 2),
4586
- source = _useState0[0],
4587
- setSource = _useState0[1];
4744
+ _useState10 = _slicedToArray(_useState9, 2),
4745
+ source = _useState10[0],
4746
+ setSource = _useState10[1];
4588
4747
  var _useDebounceFn = ahooks.useDebounceFn(function () {
4589
4748
  getData();
4590
4749
  }, {
4591
4750
  wait: 1000
4592
4751
  }),
4593
4752
  run = _useDebounceFn.run;
4594
- var _useState1 = React$1.useState(false),
4595
- _useState10 = _slicedToArray(_useState1, 2),
4596
- fetching = _useState10[0],
4597
- setFetching = _useState10[1];
4598
- var _useState11 = React$1.useState(''),
4753
+ var _useState11 = React$1.useState(false),
4599
4754
  _useState12 = _slicedToArray(_useState11, 2),
4600
- searchValue = _useState12[0],
4601
- setSearchValue = _useState12[1];
4602
- var _useState13 = React$1.useState(resultSourceKey),
4755
+ fetching = _useState12[0],
4756
+ setFetching = _useState12[1];
4757
+ var _useState13 = React$1.useState(''),
4603
4758
  _useState14 = _slicedToArray(_useState13, 2),
4604
- uniqueValue = _useState14[0],
4605
- setUniqueValue = _useState14[1];
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];
4606
4765
  React$1.useEffect(function () {
4607
4766
  setPopValue(value);
4608
4767
  onValueChange(value);
@@ -5019,21 +5178,21 @@ var PropertySelector = function PropertySelector(_ref) {
5019
5178
  notCommonProperty = _useState8[0],
5020
5179
  setNotCommonProperty = _useState8[1];
5021
5180
  var _useState9 = React$1.useState(false),
5022
- _useState0 = _slicedToArray(_useState9, 2),
5023
- visible = _useState0[0],
5024
- setVisible = _useState0[1];
5025
- var _useState1 = React$1.useState(false),
5026
- _useState10 = _slicedToArray(_useState1, 2),
5027
- showNotCommon = _useState10[0],
5028
- setShowNotCommon = _useState10[1]; // 是否展示非常用属性
5029
- var _useState11 = React$1.useState([]),
5181
+ _useState10 = _slicedToArray(_useState9, 2),
5182
+ visible = _useState10[0],
5183
+ setVisible = _useState10[1];
5184
+ var _useState11 = React$1.useState(false),
5030
5185
  _useState12 = _slicedToArray(_useState11, 2),
5031
- classifyOptionList = _useState12[0],
5032
- setClassifyOptionList = _useState12[1];
5033
- var _useState13 = React$1.useState('1'),
5186
+ showNotCommon = _useState12[0],
5187
+ setShowNotCommon = _useState12[1]; // 是否展示非常用属性
5188
+ var _useState13 = React$1.useState([]),
5034
5189
  _useState14 = _slicedToArray(_useState13, 2),
5035
- listKey = _useState14[0],
5036
- setListKey = _useState14[1];
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];
5037
5196
  React$1.useEffect(function () {
5038
5197
  requestUtil({
5039
5198
  url: '/items/class/withProperty?pageSize=500&currentPage=1',
@@ -5412,29 +5571,29 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
5412
5571
  scrollPage = _useState8[0],
5413
5572
  setScrollPage = _useState8[1];
5414
5573
  var _useState9 = React$1.useState(0),
5415
- _useState0 = _slicedToArray(_useState9, 2),
5416
- itemsTotal = _useState0[0],
5417
- setItemsTotal = _useState0[1];
5418
- var _useState1 = React$1.useState(false),
5419
- _useState10 = _slicedToArray(_useState1, 2),
5420
- fetching = _useState10[0],
5421
- setFetching = _useState10[1];
5422
- var _useState11 = React$1.useState(''),
5574
+ _useState10 = _slicedToArray(_useState9, 2),
5575
+ itemsTotal = _useState10[0],
5576
+ setItemsTotal = _useState10[1];
5577
+ var _useState11 = React$1.useState(false),
5423
5578
  _useState12 = _slicedToArray(_useState11, 2),
5424
- searchValue = _useState12[0],
5425
- setSearchValue = _useState12[1];
5426
- var _useState13 = React$1.useState(false),
5579
+ fetching = _useState12[0],
5580
+ setFetching = _useState12[1];
5581
+ var _useState13 = React$1.useState(''),
5427
5582
  _useState14 = _slicedToArray(_useState13, 2),
5428
- isModalVisible = _useState14[0],
5429
- setIsModalVisible = _useState14[1];
5430
- var _useState15 = React$1.useState(initVal),
5583
+ searchValue = _useState14[0],
5584
+ setSearchValue = _useState14[1];
5585
+ var _useState15 = React$1.useState(false),
5431
5586
  _useState16 = _slicedToArray(_useState15, 2),
5432
- popvalue = _useState16[0],
5433
- setPopValue = _useState16[1];
5434
- var _useState17 = React$1.useState(resultSourceKey),
5587
+ isModalVisible = _useState16[0],
5588
+ setIsModalVisible = _useState16[1];
5589
+ var _useState17 = React$1.useState(initVal),
5435
5590
  _useState18 = _slicedToArray(_useState17, 2),
5436
- uniqueValue = _useState18[0],
5437
- setUniqueValue = _useState18[1];
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];
5438
5597
  var _useDebounceFn = ahooks.useDebounceFn(function (v) {
5439
5598
  // 优化搜索参数 支持传多个
5440
5599
  var searchParams = {};
@@ -5463,58 +5622,58 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
5463
5622
  var _Form$useForm = antd.Form.useForm(),
5464
5623
  _Form$useForm2 = _slicedToArray(_Form$useForm, 1),
5465
5624
  form = _Form$useForm2[0];
5466
- var _useState19 = React$1.useState(true),
5467
- _useState20 = _slicedToArray(_useState19, 2),
5468
- collapsed = _useState20[0],
5469
- setCollapsed = _useState20[1];
5470
5625
  var _useState21 = React$1.useState(true),
5471
5626
  _useState22 = _slicedToArray(_useState21, 2),
5472
- caretLeftFlag = _useState22[0],
5473
- setCaretLeftFlag = _useState22[1];
5474
- var _useState23 = React$1.useState([]),
5627
+ collapsed = _useState22[0],
5628
+ setCollapsed = _useState22[1];
5629
+ var _useState23 = React$1.useState(true),
5475
5630
  _useState24 = _slicedToArray(_useState23, 2),
5476
- tableData = _useState24[0],
5477
- setTableData = _useState24[1];
5478
- var _useState25 = React$1.useState(tableInitPagination),
5631
+ caretLeftFlag = _useState24[0],
5632
+ setCaretLeftFlag = _useState24[1];
5633
+ var _useState25 = React$1.useState([]),
5479
5634
  _useState26 = _slicedToArray(_useState25, 2),
5480
- tablePagination = _useState26[0],
5481
- setTablePagination = _useState26[1];
5482
- var _useState27 = React$1.useState([]),
5635
+ tableData = _useState26[0],
5636
+ setTableData = _useState26[1];
5637
+ var _useState27 = React$1.useState(tableInitPagination),
5483
5638
  _useState28 = _slicedToArray(_useState27, 2),
5484
- selectedRowKeys = _useState28[0],
5485
- setSelectedRowKeys = _useState28[1];
5639
+ tablePagination = _useState28[0],
5640
+ setTablePagination = _useState28[1];
5486
5641
  var _useState29 = React$1.useState([]),
5487
5642
  _useState30 = _slicedToArray(_useState29, 2),
5488
- selectedRows = _useState30[0],
5489
- setSelectedRows = _useState30[1];
5490
- var _useState31 = React$1.useState(false),
5643
+ selectedRowKeys = _useState30[0],
5644
+ setSelectedRowKeys = _useState30[1];
5645
+ var _useState31 = React$1.useState([]),
5491
5646
  _useState32 = _slicedToArray(_useState31, 2),
5492
- checkedAll = _useState32[0],
5493
- setCheckedAll = _useState32[1];
5647
+ selectedRows = _useState32[0],
5648
+ setSelectedRows = _useState32[1];
5494
5649
  var _useState33 = React$1.useState(false),
5495
5650
  _useState34 = _slicedToArray(_useState33, 2),
5496
- indeterminate = _useState34[0],
5497
- setIndeterminate = _useState34[1];
5498
- var _useState35 = React$1.useState({}),
5651
+ checkedAll = _useState34[0],
5652
+ setCheckedAll = _useState34[1];
5653
+ var _useState35 = React$1.useState(false),
5499
5654
  _useState36 = _slicedToArray(_useState35, 2),
5500
- tableFormParams = _useState36[0],
5501
- setTableFormParams = _useState36[1];
5502
- var _useState37 = React$1.useState(false),
5655
+ indeterminate = _useState36[0],
5656
+ setIndeterminate = _useState36[1];
5657
+ var _useState37 = React$1.useState({}),
5503
5658
  _useState38 = _slicedToArray(_useState37, 2),
5504
- tooltipVisible = _useState38[0],
5505
- setTooltipVisible = _useState38[1];
5506
- var _useState39 = React$1.useState(handleTableColumns(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableColumns)),
5659
+ tableFormParams = _useState38[0],
5660
+ setTableFormParams = _useState38[1];
5661
+ var _useState39 = React$1.useState(false),
5507
5662
  _useState40 = _slicedToArray(_useState39, 2),
5508
- tableShowColumns = _useState40[0],
5509
- setTabletShowColumns = _useState40[1]; // 默认展示表头-modalTableProps?.tableColumns
5510
- var _useState41 = React$1.useState(false),
5663
+ tooltipVisible = _useState40[0],
5664
+ setTooltipVisible = _useState40[1];
5665
+ var _useState41 = React$1.useState(handleTableColumns(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableColumns)),
5511
5666
  _useState42 = _slicedToArray(_useState41, 2),
5512
- confirmLoading = _useState42[0],
5513
- setConfirmLoading = _useState42[1];
5667
+ tableShowColumns = _useState42[0],
5668
+ setTabletShowColumns = _useState42[1]; // 默认展示表头-modalTableProps?.tableColumns
5514
5669
  var _useState43 = React$1.useState(false),
5515
5670
  _useState44 = _slicedToArray(_useState43, 2),
5516
- modalSearched = _useState44[0],
5517
- setModalSearched = _useState44[1];
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];
5518
5677
  var setSelectDataSource = function setSelectDataSource(list, total) {
5519
5678
  setItems(list);
5520
5679
  setItemsTotal(total);
@@ -5984,7 +6143,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
5984
6143
  })) || [];
5985
6144
  var searchList = (modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.noEmptySearchField) ? list : list === null || list === void 0 ? void 0 : list.concat(addKong);
5986
6145
  return searchList.map(function (i, index) {
5987
- var _i$field, _i$field3, _i$field5, _i$field7, _i$field9, _i$field0, _i$field1, _i$field10, _i$field12, _i$field13;
6146
+ var _i$field, _i$field3, _i$field5, _i$field7, _i$field9, _i$field10, _i$field11, _i$field12, _i$field14, _i$field15;
5988
6147
  if ((i === null || i === void 0 ? void 0 : i.type) === 'kong') return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
5989
6148
  span: ColSpan,
5990
6149
  key: i
@@ -6082,7 +6241,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
6082
6241
  disabled: setDisabled(i.name)
6083
6242
  }))));
6084
6243
  }
6085
- 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') {
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') {
6086
6245
  return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
6087
6246
  span: ColSpan,
6088
6247
  key: i.name
@@ -6096,7 +6255,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
6096
6255
  }
6097
6256
  })));
6098
6257
  }
6099
- if ((i === null || i === void 0 ? void 0 : (_i$field1 = i.field) === null || _i$field1 === void 0 ? void 0 : _i$field1.type) === 'proppertySelector') {
6258
+ if ((i === null || i === void 0 ? void 0 : (_i$field11 = i.field) === null || _i$field11 === void 0 ? void 0 : _i$field11.type) === 'proppertySelector') {
6100
6259
  return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
6101
6260
  span: ColSpan,
6102
6261
  key: i.name
@@ -6106,8 +6265,8 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
6106
6265
  key: i.name
6107
6266
  }, /*#__PURE__*/React__default['default'].createElement(PropertySelector, null)));
6108
6267
  }
6109
- 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') {
6110
- var _i$field11;
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;
6111
6270
  return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
6112
6271
  span: ColSpan,
6113
6272
  key: i.name
@@ -6120,9 +6279,9 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
6120
6279
  width: '100%'
6121
6280
  },
6122
6281
  placeholder: "\u8BF7\u9009\u62E9"
6123
- }, i === null || i === void 0 ? void 0 : (_i$field11 = i.field) === null || _i$field11 === void 0 ? void 0 : _i$field11.props))));
6282
+ }, i === null || i === void 0 ? void 0 : (_i$field13 = i.field) === null || _i$field13 === void 0 ? void 0 : _i$field13.props))));
6124
6283
  }
6125
- if ((i === null || i === void 0 ? void 0 : (_i$field12 = i.field) === null || _i$field12 === void 0 ? void 0 : _i$field12.type) === 'multipleQuerySearchSelect') {
6284
+ if ((i === null || i === void 0 ? void 0 : (_i$field14 = i.field) === null || _i$field14 === void 0 ? void 0 : _i$field14.type) === 'multipleQuerySearchSelect') {
6126
6285
  return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
6127
6286
  span: ColSpan,
6128
6287
  key: i.name
@@ -6151,7 +6310,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
6151
6310
  placeholder: "\u8BF7\u8F93\u5165",
6152
6311
  allowClear: true,
6153
6312
  maxLength: 100
6154
- }, i === null || i === void 0 ? void 0 : (_i$field13 = i.field) === null || _i$field13 === void 0 ? void 0 : _i$field13.props), {}, {
6313
+ }, i === null || i === void 0 ? void 0 : (_i$field15 = i.field) === null || _i$field15 === void 0 ? void 0 : _i$field15.props), {}, {
6155
6314
  disabled: setDisabled(i.name)
6156
6315
  }))));
6157
6316
  });
@@ -7471,132 +7630,135 @@ var AddSelect = function AddSelect(props) {
7471
7630
  _Form$useForm2 = _slicedToArray(_Form$useForm, 1),
7472
7631
  form = _Form$useForm2[0];
7473
7632
  var _useState9 = React$1.useState(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableSearchForm),
7474
- _useState0 = _slicedToArray(_useState9, 2),
7475
- tableSearchForm = _useState0[0],
7476
- setTableSearchForm = _useState0[1];
7477
- var _useState1 = React$1.useState(true),
7478
- _useState10 = _slicedToArray(_useState1, 2),
7479
- caretLeftFlag = _useState10[0],
7480
- setCaretLeftFlag = _useState10[1];
7481
- var _useState11 = React$1.useState([]),
7633
+ _useState10 = _slicedToArray(_useState9, 2),
7634
+ tableSearchForm = _useState10[0],
7635
+ setTableSearchForm = _useState10[1];
7636
+ var _useState11 = React$1.useState(true),
7482
7637
  _useState12 = _slicedToArray(_useState11, 2),
7483
- tableData = _useState12[0],
7484
- setTableData = _useState12[1];
7485
- var _useState13 = React$1.useState(_objectSpread2({
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({
7486
7645
  total: 0,
7487
7646
  size: "small",
7488
7647
  current: 1,
7489
7648
  pageSize: tableInitPageSize
7490
7649
  }, modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.topTablePagination)),
7491
- _useState14 = _slicedToArray(_useState13, 2),
7492
- tablePagination = _useState14[0],
7493
- setTablePagination = _useState14[1];
7494
- var _useState15 = React$1.useState([]),
7495
7650
  _useState16 = _slicedToArray(_useState15, 2),
7496
- selectedRowKeys = _useState16[0],
7497
- setSelectedRowKeys = _useState16[1];
7498
- var _useState17 = React$1.useState({}),
7651
+ tablePagination = _useState16[0],
7652
+ setTablePagination = _useState16[1];
7653
+ var _useState17 = React$1.useState([]),
7499
7654
  _useState18 = _slicedToArray(_useState17, 2),
7500
- tableFormParams = _useState18[0],
7501
- setTableFormParams = _useState18[1];
7502
- var _useState19 = React$1.useState(false),
7655
+ selectedRowKeys = _useState18[0],
7656
+ setSelectedRowKeys = _useState18[1];
7657
+ var _useState19 = React$1.useState({}),
7503
7658
  _useState20 = _slicedToArray(_useState19, 2),
7504
- confirmLoading = _useState20[0],
7505
- setConfirmLoading = _useState20[1];
7659
+ tableFormParams = _useState20[0],
7660
+ setTableFormParams = _useState20[1];
7506
7661
  var _useState21 = React$1.useState(false),
7507
7662
  _useState22 = _slicedToArray(_useState21, 2),
7508
- confirmContinueLoading = _useState22[0],
7509
- setConfirmContinueLoading = _useState22[1];
7510
- var _useState23 = React$1.useState([]),
7663
+ confirmLoading = _useState22[0],
7664
+ setConfirmLoading = _useState22[1];
7665
+ var _useState23 = React$1.useState(false),
7511
7666
  _useState24 = _slicedToArray(_useState23, 2),
7512
- selectColumns = _useState24[0],
7513
- setSelectColumns = _useState24[1];
7667
+ confirmContinueLoading = _useState24[0],
7668
+ setConfirmContinueLoading = _useState24[1];
7514
7669
  var _useState25 = React$1.useState([]),
7515
7670
  _useState26 = _slicedToArray(_useState25, 2),
7516
- showColumns = _useState26[0],
7517
- setShowColumns = _useState26[1];
7671
+ selectColumns = _useState26[0],
7672
+ setSelectColumns = _useState26[1];
7518
7673
  var _useState27 = React$1.useState([]),
7519
7674
  _useState28 = _slicedToArray(_useState27, 2),
7520
- tableColumns = _useState28[0],
7521
- setTableColumns = _useState28[1];
7675
+ showColumns = _useState28[0],
7676
+ setShowColumns = _useState28[1];
7522
7677
  var _useState29 = React$1.useState([]),
7523
7678
  _useState30 = _slicedToArray(_useState29, 2),
7524
- showToChooseColumns = _useState30[0],
7525
- setShowToChooseColumns = _useState30[1];
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];
7526
7685
  var codeToChoose = tableCodeList[0] || initTableCode[businessType][0];
7527
7686
  var codeSelected = tableCodeList[1] || initTableCode[businessType][1];
7528
7687
  // FIXME: 特殊业务逻辑
7529
7688
  var checkSelectChange = /*#__PURE__*/function () {
7530
- var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
7531
- var result, _t;
7532
- return _regenerator().w(function (_context) {
7533
- while (1) switch (_context.n) {
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) {
7534
7693
  case 0:
7535
7694
  if (!(bType == 'skc' && tList.some(function (i) {
7536
7695
  return i[recordKey] == recordItem[recordKey] && i[selectItem.dataIndex] == changeValue;
7537
7696
  }))) {
7538
- _context.n = 1;
7697
+ _context.next = 3;
7539
7698
  break;
7540
7699
  }
7541
7700
  antd.message.warning('相同skc配码不可设置相同哦');
7542
- return _context.a(2, false);
7543
- case 1:
7701
+ return _context.abrupt("return", false);
7702
+ case 3:
7544
7703
  if (!(bType == 'spu')) {
7545
- _context.n = 9;
7704
+ _context.next = 26;
7546
7705
  break;
7547
7706
  }
7548
7707
  if (!(selectItem.dataIndex == 'colorName' && tList.some(function (i) {
7549
7708
  return i[recordKey] == recordItem[recordKey] && i.selectPropertyGroupCode == recordItem.selectPropertyGroupCode && i[selectItem.dataIndex] == changeValue;
7550
7709
  }))) {
7551
- _context.n = 2;
7710
+ _context.next = 7;
7552
7711
  break;
7553
7712
  }
7554
7713
  antd.message.warning('相同商品相同配码颜色不可设置相同哦');
7555
- return _context.a(2, false);
7556
- case 2:
7714
+ return _context.abrupt("return", false);
7715
+ case 7:
7557
7716
  if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && !recordItem.colorName)) {
7558
- _context.n = 3;
7717
+ _context.next = 10;
7559
7718
  break;
7560
7719
  }
7561
7720
  antd.message.warning('请先选择颜色!');
7562
- return _context.a(2, false);
7563
- case 3:
7721
+ return _context.abrupt("return", false);
7722
+ case 10:
7564
7723
  if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && tList.some(function (i) {
7565
7724
  return i[recordKey] == recordItem[recordKey] && i.colorName == recordItem.colorName && i[selectItem.dataIndex] == changeValue;
7566
7725
  }))) {
7567
- _context.n = 4;
7726
+ _context.next = 13;
7568
7727
  break;
7569
7728
  }
7570
7729
  antd.message.warning('相同商品相同颜色配码不可设置相同哦');
7571
- return _context.a(2, false);
7572
- case 4:
7730
+ return _context.abrupt("return", false);
7731
+ case 13:
7573
7732
  if (!(selectItem.dataIndex == 'selectPropertyGroupCode')) {
7574
- _context.n = 9;
7733
+ _context.next = 26;
7575
7734
  break;
7576
7735
  }
7577
7736
  result = true;
7578
- _context.p = 5;
7579
- _context.n = 6;
7737
+ _context.prev = 15;
7738
+ _context.next = 18;
7580
7739
  return checkSpuMatchCode({
7581
7740
  skcCode: recordItem[recordKey],
7582
7741
  matchingCode: changeValue,
7583
7742
  ext1: recordItem.colorName
7584
7743
  });
7585
- case 6:
7586
- result = _context.v;
7744
+ case 18:
7745
+ result = _context.sent;
7587
7746
  result = true;
7588
- _context.n = 8;
7747
+ _context.next = 25;
7589
7748
  break;
7590
- case 7:
7591
- _context.p = 7;
7592
- _t = _context.v;
7593
- result = typeof _t == 'boolean' ? _t : false;
7594
- case 8:
7595
- return _context.a(2, result);
7596
- case 9:
7597
- return _context.a(2, true);
7598
- }
7599
- }, _callee, null, [[5, 7]]);
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]]);
7600
7762
  }));
7601
7763
  return function checkSelectChange(_x, _x2, _x3, _x4, _x5, _x6) {
7602
7764
  return _ref2.apply(this, arguments);
@@ -7784,19 +7946,19 @@ var AddSelect = function AddSelect(props) {
7784
7946
  return /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2(_objectSpread2({}, item.selectProps), {}, {
7785
7947
  value: text || null,
7786
7948
  onChange: function () {
7787
- var _onChange = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(value) {
7788
- var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules, _t2;
7789
- return _regenerator().w(function (_context2) {
7790
- while (1) switch (_context2.n) {
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) {
7791
7953
  case 0:
7792
7954
  dataSourceSelectItem = (dataSourceList === null || dataSourceList === void 0 ? void 0 : dataSourceList.find(function (d) {
7793
7955
  return d[selectKey] == value;
7794
7956
  })) || {};
7795
7957
  if (!(item === null || item === void 0 ? void 0 : item.selectChangeCallback)) {
7796
- _context2.n = 2;
7958
+ _context2.next = 6;
7797
7959
  break;
7798
7960
  }
7799
- _context2.n = 1;
7961
+ _context2.next = 4;
7800
7962
  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, {
7801
7963
  record: record,
7802
7964
  index: index,
@@ -7806,10 +7968,10 @@ var AddSelect = function AddSelect(props) {
7806
7968
  dataSourceSelectItem: dataSourceSelectItem,
7807
7969
  editRecord: editRecord
7808
7970
  });
7809
- case 1:
7810
- _context2.n = 10;
7971
+ case 4:
7972
+ _context2.next = 25;
7811
7973
  break;
7812
- case 2:
7974
+ case 6:
7813
7975
  // 更新当前行数据函数
7814
7976
  changeValue = function changeValue(v, dSSItem) {
7815
7977
  var _item$dataSourceSelec;
@@ -7822,12 +7984,12 @@ var AddSelect = function AddSelect(props) {
7822
7984
  }
7823
7985
  }; // 处理校验,默认不校验
7824
7986
  isCheckPass = true;
7825
- _context2.p = 3;
7987
+ _context2.prev = 8;
7826
7988
  if (!(item === null || item === void 0 ? void 0 : item.selectCheckCallback)) {
7827
- _context2.n = 5;
7989
+ _context2.next = 15;
7828
7990
  break;
7829
7991
  }
7830
- _context2.n = 4;
7992
+ _context2.next = 12;
7831
7993
  return item === null || item === void 0 ? void 0 : item.selectCheckCallback(popvalue, {
7832
7994
  record: record,
7833
7995
  index: index,
@@ -7836,23 +7998,23 @@ var AddSelect = function AddSelect(props) {
7836
7998
  changeValue: value,
7837
7999
  dataSourceSelectItem: dataSourceSelectItem
7838
8000
  });
7839
- case 4:
7840
- isCheckPass = _context2.v;
7841
- _context2.n = 7;
8001
+ case 12:
8002
+ isCheckPass = _context2.sent;
8003
+ _context2.next = 19;
7842
8004
  break;
7843
- case 5:
7844
- _context2.n = 6;
8005
+ case 15:
8006
+ _context2.next = 17;
7845
8007
  return checkSelectChange(businessType, popvalue, mappingValueField, record, item, value);
7846
- case 6:
7847
- isConformToTheRules = _context2.v;
8008
+ case 17:
8009
+ isConformToTheRules = _context2.sent;
7848
8010
  isCheckPass = !isConformToTheRules;
7849
- case 7:
7850
- _context2.n = 9;
8011
+ case 19:
8012
+ _context2.next = 23;
7851
8013
  break;
7852
- case 8:
7853
- _context2.p = 8;
7854
- _t2 = _context2.v;
7855
- case 9:
8014
+ case 21:
8015
+ _context2.prev = 21;
8016
+ _context2.t0 = _context2["catch"](8);
8017
+ case 23:
7856
8018
  if (isCheckPass) {
7857
8019
  changeValue(value, dataSourceSelectItem);
7858
8020
  } else {
@@ -7860,10 +8022,11 @@ var AddSelect = function AddSelect(props) {
7860
8022
  }
7861
8023
  // 更新已选表格函数
7862
8024
  editRecord(record);
7863
- case 10:
7864
- return _context2.a(2);
8025
+ case 25:
8026
+ case "end":
8027
+ return _context2.stop();
7865
8028
  }
7866
- }, _callee2, null, [[3, 8]]);
8029
+ }, _callee2, null, [[8, 21]]);
7867
8030
  }));
7868
8031
  function onChange(_x7) {
7869
8032
  return _onChange.apply(this, arguments);
@@ -9254,29 +9417,29 @@ var BillEntry = function BillEntry(_ref3) {
9254
9417
  dataIndex: 'propertyNameAndValue'
9255
9418
  }];
9256
9419
  var _useState9 = React$1.useState(false),
9257
- _useState0 = _slicedToArray(_useState9, 2),
9258
- isModalVisible = _useState0[0],
9259
- setIsModalVisible = _useState0[1];
9260
- var _useState1 = React$1.useState([{
9420
+ _useState10 = _slicedToArray(_useState9, 2),
9421
+ isModalVisible = _useState10[0],
9422
+ setIsModalVisible = _useState10[1];
9423
+ var _useState11 = React$1.useState([{
9261
9424
  hovered: false
9262
9425
  }]),
9263
- _useState10 = _slicedToArray(_useState1, 2),
9264
- data = _useState10[0],
9265
- setData = _useState10[1];
9426
+ _useState12 = _slicedToArray(_useState11, 2),
9427
+ data = _useState12[0],
9428
+ setData = _useState12[1];
9266
9429
  var tableRef = React$1.useRef(null);
9267
9430
  var codeSelected = tableCode;
9268
- var _useState11 = React$1.useState(false),
9269
- _useState12 = _slicedToArray(_useState11, 2),
9270
- loading = _useState12[0],
9271
- setLoading = _useState12[1];
9272
- var _useState13 = React$1.useState([]),
9431
+ var _useState13 = React$1.useState(false),
9273
9432
  _useState14 = _slicedToArray(_useState13, 2),
9274
- selectColumns = _useState14[0],
9275
- setSelectColumns = _useState14[1];
9433
+ loading = _useState14[0],
9434
+ setLoading = _useState14[1];
9276
9435
  var _useState15 = React$1.useState([]),
9277
9436
  _useState16 = _slicedToArray(_useState15, 2),
9278
- showColumns = _useState16[0],
9279
- setShowColumns = _useState16[1];
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];
9280
9443
  React$1.useEffect(function () {
9281
9444
  setSelectColumns([].concat(_toConsumableArray(columns.map(function (item) {
9282
9445
  var inputLength = columns.filter(function (item) {
@@ -9392,42 +9555,42 @@ var BillEntry = function BillEntry(_ref3) {
9392
9555
  });
9393
9556
  };
9394
9557
  var handleSubmit = /*#__PURE__*/function () {
9395
- var _ref4 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
9558
+ var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
9396
9559
  var canEntryObject, _canEntryObject$error, messageInfo;
9397
- return _regenerator().w(function (_context) {
9398
- while (1) switch (_context.n) {
9560
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
9561
+ while (1) switch (_context.prev = _context.next) {
9399
9562
  case 0:
9400
9563
  if (data === null || data === void 0 ? void 0 : data.length) {
9401
- _context.n = 1;
9564
+ _context.next = 3;
9402
9565
  break;
9403
9566
  }
9404
9567
  antd.message.warning('至少录入一条数据');
9405
- return _context.a(2);
9406
- case 1:
9568
+ return _context.abrupt("return");
9569
+ case 3:
9407
9570
  if (data === null || data === void 0 ? void 0 : data.every(function (d) {
9408
9571
  return d.skuCode && d.name;
9409
9572
  })) {
9410
- _context.n = 2;
9573
+ _context.next = 6;
9411
9574
  break;
9412
9575
  }
9413
9576
  antd.message.warning('录入商品不存在');
9414
- return _context.a(2);
9415
- case 2:
9577
+ return _context.abrupt("return");
9578
+ case 6:
9416
9579
  if (data === null || data === void 0 ? void 0 : data.every(function (d) {
9417
9580
  return d.count;
9418
9581
  })) {
9419
- _context.n = 3;
9582
+ _context.next = 9;
9420
9583
  break;
9421
9584
  }
9422
9585
  antd.message.warning('请填写商品数量!');
9423
- return _context.a(2);
9424
- case 3:
9425
- _context.n = 4;
9586
+ return _context.abrupt("return");
9587
+ case 9:
9588
+ _context.next = 11;
9426
9589
  return isSkuCanEntry(data);
9427
- case 4:
9428
- canEntryObject = _context.v;
9590
+ case 11:
9591
+ canEntryObject = _context.sent;
9429
9592
  if (!((canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.flag) === false)) {
9430
- _context.n = 5;
9593
+ _context.next = 16;
9431
9594
  break;
9432
9595
  }
9433
9596
  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) {
@@ -9437,8 +9600,8 @@ var BillEntry = function BillEntry(_ref3) {
9437
9600
  content: messageInfo,
9438
9601
  duration: 6
9439
9602
  });
9440
- return _context.a(2);
9441
- case 5:
9603
+ return _context.abrupt("return");
9604
+ case 16:
9442
9605
  setLoading(true);
9443
9606
  onSaveCallback(data).then(function (res) {
9444
9607
  {
@@ -9456,8 +9619,9 @@ var BillEntry = function BillEntry(_ref3) {
9456
9619
  antd.message.error(Error);
9457
9620
  setLoading(false);
9458
9621
  });
9459
- case 6:
9460
- return _context.a(2);
9622
+ case 18:
9623
+ case "end":
9624
+ return _context.stop();
9461
9625
  }
9462
9626
  }, _callee);
9463
9627
  }));
@@ -11033,6 +11197,26 @@ function commonFun(type, prefixUrl, parentProps) {
11033
11197
  }, (requestConfigProp === null || requestConfigProp === void 0 ? void 0 : requestConfigProp.addOtherParams) || {}),
11034
11198
  sourceName: 'warehouseIds'
11035
11199
  }, requestConfigProp);
11200
+ var _queryHeaderParams7 = getQueryHeadersList({
11201
+ querySelectHeadersList: querySelectHeadersList,
11202
+ extralHeaders: extralHeaders
11203
+ });
11204
+ Promise.all([loadSelectSource$1("/channel-manage/channelInfo/tree", {
11205
+ 'qp-status-eq': 10,
11206
+ 'qp-isMain-eq': 1,
11207
+ 'qp-type-in': '1,2'
11208
+ }, getQueryHeadersItem(_queryHeaderParams7, 'qp-orgCode-in')), loadSelectSource$1("/channel-manage/tagNode/getTree/10", {
11209
+ 'qp-status-eq': 1
11210
+ }, getQueryHeadersItem(_queryHeaderParams7, 'qp-orgCode-in'))]).then(function (x) {
11211
+ var channelDisabledJude = function channelDisabledJude(data) {
11212
+ return data['parentCode'] === '0';
11213
+ }; // 所属销售渠道 树节点不能点判断
11214
+ var areaDisabledJude = function areaDisabledJude(data) {
11215
+ return data['parent'] === '0';
11216
+ }; // 所属营销区域 树节点不能点判断
11217
+ formatTreeDataSource(x, 0, 4, tableSearchForm, ['code', 'name'], 'channelInfoSon', channelDisabledJude);
11218
+ formatTreeDataSource(x, 1, 5, tableSearchForm, ['code', 'name'], 'children', areaDisabledJude);
11219
+ });
11036
11220
  tableSearchForm = [{
11037
11221
  name: 'realWarehouseName*multiInput',
11038
11222
  label: '逻辑仓名称',
@@ -11056,6 +11240,70 @@ function commonFun(type, prefixUrl, parentProps) {
11056
11240
  },
11057
11241
  label: '管理大区',
11058
11242
  initialSource: getDictionarySource$1('BUSINESS_belongArea')
11243
+ }, {
11244
+ name: 'qp-channelCode-in',
11245
+ type: 'treeSelect',
11246
+ label: '销售渠道',
11247
+ field: {
11248
+ type: 'treeSelect',
11249
+ props: {
11250
+ multiple: true,
11251
+ treeData: [],
11252
+ treeCheckable: false,
11253
+ notFoundContent: '暂无数据',
11254
+ allowClear: true,
11255
+ showSearch: true,
11256
+ showArrow: true,
11257
+ maxTagCount: 1,
11258
+ optionFilterProp: 'children',
11259
+ filterOption: function filterOption(input, option) {
11260
+ return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
11261
+ },
11262
+ showCheckedStrategy: 'TreeSelect.SHOW_ALL'
11263
+ }
11264
+ }
11265
+ }, {
11266
+ name: 'qp-refCode-in',
11267
+ type: 'treeSelect',
11268
+ label: '营销区域',
11269
+ field: {
11270
+ type: 'treeSelect',
11271
+ props: {
11272
+ multiple: true,
11273
+ treeData: [],
11274
+ treeCheckable: false,
11275
+ notFoundContent: '暂无数据',
11276
+ allowClear: true,
11277
+ showSearch: true,
11278
+ showArrow: true,
11279
+ maxTagCount: 1,
11280
+ optionFilterProp: 'children',
11281
+ filterOption: function filterOption(input, option) {
11282
+ return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
11283
+ },
11284
+ showCheckedStrategy: 'TreeSelect.SHOW_ALL'
11285
+ }
11286
+ }
11287
+ }, {
11288
+ name: 'qp-type-in',
11289
+ type: 'select',
11290
+ label: '店铺性质',
11291
+ field: {
11292
+ type: 'select',
11293
+ props: {
11294
+ mode: 'multiple',
11295
+ notFoundContent: '暂无数据',
11296
+ allowClear: true,
11297
+ showSearch: true,
11298
+ showArrow: true,
11299
+ maxTagCount: 1,
11300
+ optionFilterProp: 'children',
11301
+ filterOption: function filterOption(input, option) {
11302
+ return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
11303
+ }
11304
+ }
11305
+ },
11306
+ initialSource: getDictionarySource$1('BUSINESS_StoreType')
11059
11307
  }].concat(_toConsumableArray((modalTableBusProps === null || modalTableBusProps === void 0 ? void 0 : modalTableBusProps.needStatusSearch) ? [{
11060
11308
  name: 'qp-isEnable-eq',
11061
11309
  type: 'select',
@@ -11084,10 +11332,28 @@ function commonFun(type, prefixUrl, parentProps) {
11084
11332
  render: function render(text) {
11085
11333
  return getDictionaryTextByValue$1('SC00004', text);
11086
11334
  }
11335
+ }, {
11336
+ title: '所属销售渠道',
11337
+ dataIndex: 'channelName',
11338
+ defaultSort: 4,
11339
+ width: 100
11340
+ }, {
11341
+ title: '营销区域',
11342
+ dataIndex: 'commonRelationAreaName',
11343
+ defaultSort: 5,
11344
+ width: 100
11345
+ }, {
11346
+ title: '店铺性质',
11347
+ dataIndex: 'type',
11348
+ defaultSort: 6,
11349
+ render: function render(text) {
11350
+ return getDictionaryTextByValue$1('BUSINESS_StoreType', text);
11351
+ },
11352
+ width: 80
11087
11353
  }].concat(_toConsumableArray((modalTableBusProps === null || modalTableBusProps === void 0 ? void 0 : modalTableBusProps.needStatusSearch) ? [{
11088
11354
  title: '状态',
11089
11355
  dataIndex: 'isEnable',
11090
- defaultSort: 4,
11356
+ defaultSort: 7,
11091
11357
  render: function render(text) {
11092
11358
  return getDictionaryTextByValue$1('SC00001', text);
11093
11359
  }
@@ -11153,13 +11419,13 @@ function commonFun(type, prefixUrl, parentProps) {
11153
11419
  label: '运营仓状态',
11154
11420
  initialSource: getDictionarySource$1('SC00001')
11155
11421
  }] : []));
11156
- var _queryHeaderParams7 = getQueryHeadersList({
11422
+ var _queryHeaderParams8 = getQueryHeadersList({
11157
11423
  querySelectHeadersList: querySelectHeadersList,
11158
11424
  extralHeaders: extralHeaders
11159
11425
  });
11160
11426
  Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/groupInfo/listNoPage"), {
11161
11427
  'qp-status-eq': 1
11162
- }, getQueryHeadersItem(_queryHeaderParams7, 'qp-groupCode-in'))]).then(function (x) {
11428
+ }, getQueryHeadersItem(_queryHeaderParams8, 'qp-groupCode-in'))]).then(function (x) {
11163
11429
  formatSource(x, 0, 2, tableSearchForm, ['groupCode', 'groupName']);
11164
11430
  });
11165
11431
  modalTableProps = _objectSpread2({
@@ -11337,7 +11603,7 @@ function commonFun(type, prefixUrl, parentProps) {
11337
11603
  label: '共享类型',
11338
11604
  initialSource: sharingTypeDataList
11339
11605
  }];
11340
- var _queryHeaderParams8 = getQueryHeadersList({
11606
+ var _queryHeaderParams9 = getQueryHeadersList({
11341
11607
  querySelectHeadersList: querySelectHeadersList,
11342
11608
  extralHeaders: extralHeaders
11343
11609
  });
@@ -11345,14 +11611,14 @@ function commonFun(type, prefixUrl, parentProps) {
11345
11611
  pageSize: 5000,
11346
11612
  currentPage: 1,
11347
11613
  'qp-companyType-eq': '30'
11348
- }, getQueryHeadersItem(_queryHeaderParams8, 'qp-conglomerateCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/accountingSubject"), {
11614
+ }, getQueryHeadersItem(_queryHeaderParams9, 'qp-conglomerateCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/accountingSubject"), {
11349
11615
  pageSize: 5000,
11350
11616
  currentPage: 1
11351
- }, getQueryHeadersItem(_queryHeaderParams8, 'qp-accountingCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/company"), {
11617
+ }, getQueryHeadersItem(_queryHeaderParams9, 'qp-accountingCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/company"), {
11352
11618
  pageSize: 5000,
11353
11619
  currentPage: 1,
11354
11620
  'qp-companyType-eq': '20'
11355
- }, getQueryHeadersItem(_queryHeaderParams8, 'qp-sharingType-in'))]).then(function (x) {
11621
+ }, getQueryHeadersItem(_queryHeaderParams9, 'qp-sharingType-in'))]).then(function (x) {
11356
11622
  formatSource(x, 0, 2, tableSearchForm);
11357
11623
  formatSource(x, 1, 3, tableSearchForm);
11358
11624
  formatSource(x, 2, 4, tableSearchForm);
@@ -11465,11 +11731,11 @@ function commonFun(type, prefixUrl, parentProps) {
11465
11731
  }
11466
11732
  }
11467
11733
  }];
11468
- var _queryHeaderParams9 = getQueryHeadersList({
11734
+ var _queryHeaderParams10 = getQueryHeadersList({
11469
11735
  querySelectHeadersList: querySelectHeadersList,
11470
11736
  extralHeaders: extralHeaders
11471
11737
  });
11472
- Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/org/listNoPage"), {}, getQueryHeadersItem(_queryHeaderParams9, 'qp-createOrgCode-eq'))]).then(function (x) {
11738
+ Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/org/listNoPage"), {}, getQueryHeadersItem(_queryHeaderParams10, 'qp-createOrgCode-eq'))]).then(function (x) {
11473
11739
  var firstElement = x === null || x === void 0 ? void 0 : x[0];
11474
11740
  var allList = firstElement && [firstElement, firstElement];
11475
11741
  formatSource(allList, 0, 2, tableSearchForm);
@@ -11631,7 +11897,7 @@ function commonFun(type, prefixUrl, parentProps) {
11631
11897
  }
11632
11898
  }
11633
11899
  }];
11634
- var _queryHeaderParams0 = getQueryHeadersList({
11900
+ var _queryHeaderParams11 = getQueryHeadersList({
11635
11901
  querySelectHeadersList: querySelectHeadersList,
11636
11902
  extralHeaders: extralHeaders
11637
11903
  });
@@ -11639,21 +11905,21 @@ function commonFun(type, prefixUrl, parentProps) {
11639
11905
  pageSize: 5000,
11640
11906
  currentPage: 1,
11641
11907
  'qp-companyType-eq': '30'
11642
- }, getQueryHeadersItem(_queryHeaderParams0, 'qp-conglomerateCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/company"), {
11908
+ }, getQueryHeadersItem(_queryHeaderParams11, 'qp-conglomerateCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/company"), {
11643
11909
  pageSize: 5000,
11644
11910
  currentPage: 1,
11645
11911
  'qp-companyType-eq': '20'
11646
- }, getQueryHeadersItem(_queryHeaderParams0, 'qp-companyCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/platformRecord/getPlatformRecordList"), {
11912
+ }, getQueryHeadersItem(_queryHeaderParams11, 'qp-companyCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/platformRecord/getPlatformRecordList"), {
11647
11913
  // pageSize: 5000,
11648
11914
  // currentPage: 1,
11649
11915
  'qp-status-eq': '1'
11650
- }, getQueryHeadersItem(_queryHeaderParams0, 'qp-plateformCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/store"), {
11916
+ }, getQueryHeadersItem(_queryHeaderParams11, 'qp-plateformCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/store"), {
11651
11917
  pageSize: 5000,
11652
11918
  currentPage: 1
11653
- }, getQueryHeadersItem(_queryHeaderParams0, 'qp-mainBrandCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/accountingSubject"), {
11919
+ }, getQueryHeadersItem(_queryHeaderParams11, 'qp-mainBrandCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/accountingSubject"), {
11654
11920
  pageSize: 5000,
11655
11921
  currentPage: 1
11656
- }, getQueryHeadersItem(_queryHeaderParams0, 'qp-accountingCode-in'))]).then(function (x) {
11922
+ }, getQueryHeadersItem(_queryHeaderParams11, 'qp-accountingCode-in'))]).then(function (x) {
11657
11923
  formatSource(x, 0, 2, tableSearchForm);
11658
11924
  formatSource(x, 1, 3, tableSearchForm);
11659
11925
  formatSource(x, 2, 5, tableSearchForm);
@@ -11823,7 +12089,7 @@ function commonFun(type, prefixUrl, parentProps) {
11823
12089
  },
11824
12090
  initialSource: getDictionarySource$1('BUSINESS_StoreType')
11825
12091
  }];
11826
- var _queryHeaderParams1 = getQueryHeadersList({
12092
+ var _queryHeaderParams12 = getQueryHeadersList({
11827
12093
  querySelectHeadersList: querySelectHeadersList,
11828
12094
  extralHeaders: extralHeaders
11829
12095
  });
@@ -11831,13 +12097,13 @@ function commonFun(type, prefixUrl, parentProps) {
11831
12097
  'qp-employeeCode-eq': getEmployeeCode(),
11832
12098
  'qp-realOrg-eq': true,
11833
12099
  'qp-status-eq': 10
11834
- }, getQueryHeadersItem(_queryHeaderParams1, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/channelInfo/tree"), {
12100
+ }, getQueryHeadersItem(_queryHeaderParams12, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/channelInfo/tree"), {
11835
12101
  'qp-status-eq': 10,
11836
12102
  'qp-isMain-eq': 1,
11837
12103
  'qp-type-in': '1,2'
11838
- }, getQueryHeadersItem(_queryHeaderParams1, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/tagNode/getTree/10"), {
12104
+ }, getQueryHeadersItem(_queryHeaderParams12, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/tagNode/getTree/10"), {
11839
12105
  'qp-status-eq': 1
11840
- }, getQueryHeadersItem(_queryHeaderParams1, 'qp-orgCode-in'))]).then(function (x) {
12106
+ }, getQueryHeadersItem(_queryHeaderParams12, 'qp-orgCode-in'))]).then(function (x) {
11841
12107
  var channelDisabledJude = function channelDisabledJude(data) {
11842
12108
  return data['parentCode'] === '0';
11843
12109
  }; // 所属销售渠道 树节点不能点判断
@@ -12075,7 +12341,7 @@ function commonFun(type, prefixUrl, parentProps) {
12075
12341
  name: 'qp-officeTelephone-like',
12076
12342
  label: '手机号'
12077
12343
  }];
12078
- var _queryHeaderParams10 = getQueryHeadersList({
12344
+ var _queryHeaderParams13 = getQueryHeadersList({
12079
12345
  querySelectHeadersList: querySelectHeadersList,
12080
12346
  extralHeaders: extralHeaders
12081
12347
  });
@@ -12083,7 +12349,7 @@ function commonFun(type, prefixUrl, parentProps) {
12083
12349
  pageSize: 5000,
12084
12350
  currentPage: 1,
12085
12351
  'qp-companyType-eq': 20
12086
- }, getQueryHeadersItem(_queryHeaderParams10, 'qp-companyCode-in'))]).then(function (x) {
12352
+ }, getQueryHeadersItem(_queryHeaderParams13, 'qp-companyCode-in'))]).then(function (x) {
12087
12353
  formatSource(x, 0, 2, tableSearchForm);
12088
12354
  });
12089
12355
  modalTableProps = _objectSpread2({
@@ -12192,13 +12458,13 @@ function commonFun(type, prefixUrl, parentProps) {
12192
12458
  name: 'qp-officeTelephone-like',
12193
12459
  label: '手机号'
12194
12460
  }]);
12195
- var _queryHeaderParams11 = getQueryHeadersList({
12461
+ var _queryHeaderParams14 = getQueryHeadersList({
12196
12462
  querySelectHeadersList: querySelectHeadersList,
12197
12463
  extralHeaders: extralHeaders
12198
12464
  });
12199
12465
  Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgViewNode/common/getTreeForOrgViewAndTenant"), {
12200
12466
  'orgViewCode': 'administrative-organization-view'
12201
- }, getQueryHeadersItem(_queryHeaderParams11, 'qp-code-in'))]).then(function (x) {
12467
+ }, getQueryHeadersItem(_queryHeaderParams14, 'qp-code-in'))]).then(function (x) {
12202
12468
  formatTreeDataSource(x, 0, 2, tableSearchForm, ['code', 'name']);
12203
12469
  });
12204
12470
  modalTableProps = _objectSpread2({
@@ -12345,17 +12611,17 @@ function commonFun(type, prefixUrl, parentProps) {
12345
12611
  name: 'qp-remark-like',
12346
12612
  label: '备注'
12347
12613
  }];
12348
- var _queryHeaderParams12 = getQueryHeadersList({
12614
+ var _queryHeaderParams15 = getQueryHeadersList({
12349
12615
  querySelectHeadersList: querySelectHeadersList,
12350
12616
  extralHeaders: extralHeaders
12351
12617
  });
12352
12618
  Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/logisCompany"), {
12353
12619
  pageSize: 5000,
12354
12620
  currentPage: 1
12355
- }, getQueryHeadersItem(_queryHeaderParams12, logisCompanyCodeSingleSearchName)), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/printTemplate"), {
12621
+ }, getQueryHeadersItem(_queryHeaderParams15, logisCompanyCodeSingleSearchName)), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/printTemplate"), {
12356
12622
  pageSize: 5000,
12357
12623
  currentPage: 1
12358
- }, getQueryHeadersItem(_queryHeaderParams12, 'qp-sheetTemplateCode-in'))]).then(function (x) {
12624
+ }, getQueryHeadersItem(_queryHeaderParams15, 'qp-sheetTemplateCode-in'))]).then(function (x) {
12359
12625
  formatSource(x, 0, 2, tableSearchForm);
12360
12626
  formatSource(x, 1, 5, tableSearchForm);
12361
12627
  });
@@ -12525,14 +12791,14 @@ function commonFun(type, prefixUrl, parentProps) {
12525
12791
  }
12526
12792
  }
12527
12793
  }];
12528
- var _queryHeaderParams13 = getQueryHeadersList({
12794
+ var _queryHeaderParams16 = getQueryHeadersList({
12529
12795
  querySelectHeadersList: querySelectHeadersList,
12530
12796
  extralHeaders: extralHeaders
12531
12797
  });
12532
12798
  Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/permissionCategory"), {
12533
12799
  pageSize: 5000,
12534
12800
  currentPage: 1
12535
- }, getQueryHeadersItem(_queryHeaderParams13, 'qp-categoryCode-eq'))]).then(function (x) {
12801
+ }, getQueryHeadersItem(_queryHeaderParams16, 'qp-categoryCode-eq'))]).then(function (x) {
12536
12802
  formatSource(x, 0, 2, tableSearchForm);
12537
12803
  });
12538
12804
  modalTableProps = _objectSpread2({
@@ -12629,7 +12895,7 @@ function commonFun(type, prefixUrl, parentProps) {
12629
12895
  }
12630
12896
  }
12631
12897
  }];
12632
- var _queryHeaderParams14 = getQueryHeadersList({
12898
+ var _queryHeaderParams17 = getQueryHeadersList({
12633
12899
  querySelectHeadersList: querySelectHeadersList,
12634
12900
  extralHeaders: extralHeaders
12635
12901
  });
@@ -12637,7 +12903,7 @@ function commonFun(type, prefixUrl, parentProps) {
12637
12903
  'qp-employeeCode-eq': getEmployeeCode(),
12638
12904
  'qp-realOrg-eq': true,
12639
12905
  'qp-status-eq': 10
12640
- }, getQueryHeadersItem(_queryHeaderParams14, 'qp-salesOrgCode-in'))]).then(function (x) {
12906
+ }, getQueryHeadersItem(_queryHeaderParams17, 'qp-salesOrgCode-in'))]).then(function (x) {
12641
12907
  formatSource(x, 0, 2, tableSearchForm);
12642
12908
  });
12643
12909
  modalTableProps = _objectSpread2({
@@ -12743,13 +13009,13 @@ function commonFun(type, prefixUrl, parentProps) {
12743
13009
  },
12744
13010
  initialSource: nodeType
12745
13011
  }];
12746
- var _queryHeaderParams15 = getQueryHeadersList({
13012
+ var _queryHeaderParams18 = getQueryHeadersList({
12747
13013
  querySelectHeadersList: querySelectHeadersList,
12748
13014
  extralHeaders: extralHeaders
12749
13015
  });
12750
13016
  Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgView/getOrgViewListNoPage"), {
12751
13017
  'qp-status-eq': 10
12752
- }, getQueryHeadersItem(_queryHeaderParams15, 'qp-orgViewCode-in'))]).then(function (x) {
13018
+ }, getQueryHeadersItem(_queryHeaderParams18, 'qp-orgViewCode-in'))]).then(function (x) {
12753
13019
  formatSource(x, 0, 2, tableSearchForm);
12754
13020
  });
12755
13021
  modalTableProps = _objectSpread2({
@@ -13075,13 +13341,13 @@ function commonFun(type, prefixUrl, parentProps) {
13075
13341
  },
13076
13342
  initialSource: nodeType
13077
13343
  }];
13078
- var _queryHeaderParams16 = getQueryHeadersList({
13344
+ var _queryHeaderParams19 = getQueryHeadersList({
13079
13345
  querySelectHeadersList: querySelectHeadersList,
13080
13346
  extralHeaders: extralHeaders
13081
13347
  });
13082
13348
  Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgView/getOrgViewListNoPage"), {
13083
13349
  'qp-status-eq': 10
13084
- }, getQueryHeadersItem(_queryHeaderParams16, 'qp-orgViewCode-in'))]).then(function (x) {
13350
+ }, getQueryHeadersItem(_queryHeaderParams19, 'qp-orgViewCode-in'))]).then(function (x) {
13085
13351
  formatSource(x, 0, 2, tableSearchForm);
13086
13352
  });
13087
13353
  modalTableProps = _objectSpread2({
@@ -14026,9 +14292,9 @@ var AddSpuSelect = function AddSpuSelect(parProps) {
14026
14292
  value = _useState8[0],
14027
14293
  setValue = _useState8[1];
14028
14294
  var _useState9 = React$1.useState([]),
14029
- _useState0 = _slicedToArray(_useState9, 2),
14030
- propertyList = _useState0[0],
14031
- setPropertyList = _useState0[1];
14295
+ _useState10 = _slicedToArray(_useState9, 2),
14296
+ propertyList = _useState10[0],
14297
+ setPropertyList = _useState10[1];
14032
14298
  React$1.useEffect(function () {
14033
14299
  if (parProps === null || parProps === void 0 ? void 0 : parProps.isSingleColor) {
14034
14300
  // type: 1 尺码组; 2 配码组
@@ -14552,45 +14818,46 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
14552
14818
  requestUtil.get("".concat(url, "?").concat(querystring.stringify(paramsData)), {
14553
14819
  headers: headers
14554
14820
  }).then(/*#__PURE__*/function () {
14555
- var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(res) {
14821
+ var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(res) {
14556
14822
  var _ctx$form;
14557
14823
  var resData, coverData, data, dataList;
14558
- return _regenerator().w(function (_context) {
14559
- while (1) switch (_context.n) {
14824
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
14825
+ while (1) switch (_context.prev = _context.next) {
14560
14826
  case 0:
14561
14827
  resData = (res === null || res === void 0 ? void 0 : res.data) || [];
14562
14828
  if (!judgeIsRequestSuccess(resData)) {
14563
- _context.n = 4;
14829
+ _context.next = 13;
14564
14830
  break;
14565
14831
  }
14566
14832
  data = resData.data;
14567
14833
  if (!remoteSource.converter) {
14568
- _context.n = 2;
14834
+ _context.next = 9;
14569
14835
  break;
14570
14836
  }
14571
- _context.n = 1;
14837
+ _context.next = 6;
14572
14838
  return remoteSource.converter({
14573
14839
  data: [data]
14574
14840
  });
14575
- case 1:
14576
- coverData = _context.v;
14577
- _context.n = 3;
14841
+ case 6:
14842
+ coverData = _context.sent;
14843
+ _context.next = 11;
14578
14844
  break;
14579
- case 2:
14845
+ case 9:
14580
14846
  dataList = data && Array.isArray(data) ? data : data && [data] || [];
14581
14847
  coverData = dataList.length && dataList.map(function (ites) {
14582
14848
  return _mapSearchTree(ites);
14583
14849
  }) || [];
14584
- case 3:
14585
- _context.n = 5;
14850
+ case 11:
14851
+ _context.next = 14;
14586
14852
  break;
14587
- case 4:
14853
+ case 13:
14588
14854
  coverData = [];
14589
- case 5:
14855
+ case 14:
14590
14856
  setTreeData(coverData);
14591
14857
  ctx === null || ctx === void 0 ? void 0 : (_ctx$form = ctx.form) === null || _ctx$form === void 0 ? void 0 : _ctx$form.setFieldSource(ctx.name, coverData);
14592
- case 6:
14593
- return _context.a(2);
14858
+ case 16:
14859
+ case "end":
14860
+ return _context.stop();
14594
14861
  }
14595
14862
  }, _callee);
14596
14863
  }));
@@ -18892,38 +19159,38 @@ var BsSulaQueryTable = (function (props) {
18892
19159
  };
18893
19160
  var refs = React$1.useRef(null);
18894
19161
  var _useState9 = React$1.useState(''),
18895
- _useState0 = _slicedToArray(_useState9, 2),
18896
- pagePath = _useState0[0],
18897
- setPagePath = _useState0[1];
19162
+ _useState10 = _slicedToArray(_useState9, 2),
19163
+ pagePath = _useState10[0],
19164
+ setPagePath = _useState10[1];
18898
19165
  var _useLocation = umi.useLocation(),
18899
19166
  pathname = _useLocation.pathname,
18900
19167
  _useLocation$state = _useLocation.state,
18901
19168
  state = _useLocation$state === void 0 ? {} : _useLocation$state;
18902
- var _useState1 = React$1.useState(false),
18903
- _useState10 = _slicedToArray(_useState1, 2),
18904
- isFullScreen = _useState10[0],
18905
- setIsFnllScreen = _useState10[1];
19169
+ var _useState11 = React$1.useState(false),
19170
+ _useState12 = _slicedToArray(_useState11, 2),
19171
+ isFullScreen = _useState12[0],
19172
+ setIsFnllScreen = _useState12[1];
18906
19173
  // @ts-nocheck
18907
19174
  var value = props;
18908
19175
  var _props$fields = props.fields,
18909
19176
  fields = _props$fields === void 0 ? [] : _props$fields;
18910
- var _useState11 = React$1.useState([]),
18911
- _useState12 = _slicedToArray(_useState11, 2),
18912
- showColumn = _useState12[0],
18913
- setShowColumns = _useState12[1]; // 列字段
18914
- var originSearchFields = getSettingFieldOrColumn(getConfigFromlocalstorage(ENUM$1.BROWSER_CACHE.SEARCH_FIELDS_CONDITION), fields, 'searchFields');
18915
- var _useState13 = React$1.useState(originSearchFields),
19177
+ var _useState13 = React$1.useState([]),
18916
19178
  _useState14 = _slicedToArray(_useState13, 2),
18917
- showSearchFields = _useState14[0],
18918
- setShowSearchFields = _useState14[1]; //搜索项字段
18919
- var _useState15 = React$1.useState([]),
19179
+ showColumn = _useState14[0],
19180
+ setShowColumns = _useState14[1]; // 列字段
19181
+ var originSearchFields = getSettingFieldOrColumn(getConfigFromlocalstorage(ENUM$1.BROWSER_CACHE.SEARCH_FIELDS_CONDITION), fields, 'searchFields');
19182
+ var _useState15 = React$1.useState(originSearchFields),
18920
19183
  _useState16 = _slicedToArray(_useState15, 2),
18921
- showExportColumn = _useState16[0],
18922
- setShowExportColumns = _useState16[1]; // 导出列字段
18923
- var _useState17 = React$1.useState(''),
19184
+ showSearchFields = _useState16[0],
19185
+ setShowSearchFields = _useState16[1]; //搜索项字段
19186
+ var _useState17 = React$1.useState([]),
18924
19187
  _useState18 = _slicedToArray(_useState17, 2),
18925
- height = _useState18[0],
18926
- setHeight = _useState18[1];
19188
+ showExportColumn = _useState18[0],
19189
+ setShowExportColumns = _useState18[1]; // 导出列字段
19190
+ var _useState19 = React$1.useState(''),
19191
+ _useState20 = _slicedToArray(_useState19, 2),
19192
+ height = _useState20[0],
19193
+ setHeight = _useState20[1];
18927
19194
  var sortTableRef = React$1.useRef(null);
18928
19195
  var searchTableRef = React$1.useRef(null);
18929
19196
  var exportTableRef = React$1.useRef(null);
@@ -19971,19 +20238,22 @@ function outLogin(_x) {
19971
20238
  return _outLogin.apply(this, arguments);
19972
20239
  }
19973
20240
  function _outLogin() {
19974
- _outLogin = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(params) {
20241
+ _outLogin = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
19975
20242
  var res;
19976
- return _regenerator().w(function (_context) {
19977
- while (1) switch (_context.n) {
20243
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
20244
+ while (1) switch (_context.prev = _context.next) {
19978
20245
  case 0:
19979
- _context.n = 1;
20246
+ _context.next = 2;
19980
20247
  return requestUtil({
19981
20248
  url: '/user/web/loginOut',
19982
20249
  method: 'GET'
19983
20250
  });
19984
- case 1:
19985
- res = _context.v;
19986
- return _context.a(2, res);
20251
+ case 2:
20252
+ res = _context.sent;
20253
+ return _context.abrupt("return", res);
20254
+ case 4:
20255
+ case "end":
20256
+ return _context.stop();
19987
20257
  }
19988
20258
  }, _callee);
19989
20259
  }));
@@ -20110,20 +20380,20 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
20110
20380
  });
20111
20381
  };
20112
20382
  var loginOut = /*#__PURE__*/function () {
20113
- var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
20383
+ var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
20114
20384
  var sessionId;
20115
- return _regenerator().w(function (_context) {
20116
- while (1) switch (_context.n) {
20385
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
20386
+ while (1) switch (_context.prev = _context.next) {
20117
20387
  case 0:
20118
- _context.n = 1;
20388
+ _context.next = 2;
20119
20389
  return getSessionId();
20120
- case 1:
20121
- sessionId = _context.v;
20122
- _context.n = 2;
20390
+ case 2:
20391
+ sessionId = _context.sent;
20392
+ _context.next = 5;
20123
20393
  return outLogin({
20124
20394
  sessionId: sessionId
20125
20395
  });
20126
- case 2:
20396
+ case 5:
20127
20397
  // @ts-ignore
20128
20398
  if (BUILD_TYPE) {
20129
20399
  antd.message.success('退出登录成功');
@@ -20133,8 +20403,9 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
20133
20403
  } else {
20134
20404
  setLoginOutPath();
20135
20405
  }
20136
- case 3:
20137
- return _context.a(2);
20406
+ case 6:
20407
+ case "end":
20408
+ return _context.stop();
20138
20409
  }
20139
20410
  }, _callee);
20140
20411
  }));
@@ -20221,15 +20492,18 @@ function getStoreByName(_x) {
20221
20492
  return _getStoreByName.apply(this, arguments);
20222
20493
  }
20223
20494
  function _getStoreByName() {
20224
- _getStoreByName = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(params) {
20225
- return _regenerator().w(function (_context) {
20226
- while (1) switch (_context.n) {
20495
+ _getStoreByName = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
20496
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
20497
+ while (1) switch (_context.prev = _context.next) {
20227
20498
  case 0:
20228
- return _context.a(2, requestUtil({
20499
+ return _context.abrupt("return", requestUtil({
20229
20500
  url: '/store-house/orgViewNode/listNoPage',
20230
20501
  method: 'GET',
20231
20502
  params: _objectSpread2({}, params)
20232
20503
  }));
20504
+ case 1:
20505
+ case "end":
20506
+ return _context.stop();
20233
20507
  }
20234
20508
  }, _callee);
20235
20509
  }));
@@ -20264,33 +20538,33 @@ var ChooseStore = function ChooseStore(props) {
20264
20538
  openSelect = _useState8[0],
20265
20539
  setOpenSelect = _useState8[1];
20266
20540
  var _useState9 = React$1.useState([]),
20267
- _useState0 = _slicedToArray(_useState9, 2),
20268
- options = _useState0[0],
20269
- setOptions = _useState0[1];
20270
- var _useState1 = React$1.useState([]),
20271
- _useState10 = _slicedToArray(_useState1, 2),
20272
- rescouse = _useState10[0],
20273
- setRescouse = _useState10[1];
20274
- var _useState11 = React$1.useState(''),
20541
+ _useState10 = _slicedToArray(_useState9, 2),
20542
+ options = _useState10[0],
20543
+ setOptions = _useState10[1];
20544
+ var _useState11 = React$1.useState([]),
20275
20545
  _useState12 = _slicedToArray(_useState11, 2),
20276
- searchValue = _useState12[0],
20277
- setSearchValue = _useState12[1];
20278
- var _useState13 = React$1.useState([{
20546
+ rescouse = _useState12[0],
20547
+ setRescouse = _useState12[1];
20548
+ var _useState13 = React$1.useState(''),
20549
+ _useState14 = _slicedToArray(_useState13, 2),
20550
+ searchValue = _useState14[0],
20551
+ setSearchValue = _useState14[1];
20552
+ var _useState15 = React$1.useState([{
20279
20553
  label: name,
20280
20554
  value: code
20281
20555
  }]),
20282
- _useState14 = _slicedToArray(_useState13, 2),
20283
- store = _useState14[0],
20284
- setStore = _useState14[1];
20556
+ _useState16 = _slicedToArray(_useState15, 2),
20557
+ store = _useState16[0],
20558
+ setStore = _useState16[1];
20285
20559
  function fetchUserList(_x, _x2) {
20286
20560
  return _fetchUserList.apply(this, arguments);
20287
20561
  }
20288
20562
  function _fetchUserList() {
20289
- _fetchUserList = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(storeName, init) {
20290
- return _regenerator().w(function (_context3) {
20291
- while (1) switch (_context3.n) {
20563
+ _fetchUserList = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(storeName, init) {
20564
+ return _regeneratorRuntime().wrap(function _callee3$(_context3) {
20565
+ while (1) switch (_context3.prev = _context3.next) {
20292
20566
  case 0:
20293
- return _context3.a(2, getStoreByName({
20567
+ return _context3.abrupt("return", getStoreByName({
20294
20568
  orgName: storeName ? storeName : undefined,
20295
20569
  platCompanyCode: init ? undefined : key,
20296
20570
  'qp-employeeCode-eq': employeeCode || 'EMP231011000002',
@@ -20309,6 +20583,9 @@ var ChooseStore = function ChooseStore(props) {
20309
20583
  };
20310
20584
  });
20311
20585
  }));
20586
+ case 1:
20587
+ case "end":
20588
+ return _context3.stop();
20312
20589
  }
20313
20590
  }, _callee3);
20314
20591
  }));
@@ -20331,19 +20608,20 @@ var ChooseStore = function ChooseStore(props) {
20331
20608
  return debounce__default['default'](loadOptions, debounceTimeout);
20332
20609
  }, [debounceTimeout, key]);
20333
20610
  var changeInput = /*#__PURE__*/function () {
20334
- var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(str) {
20611
+ var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(str) {
20335
20612
  var res;
20336
- return _regenerator().w(function (_context) {
20337
- while (1) switch (_context.n) {
20613
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
20614
+ while (1) switch (_context.prev = _context.next) {
20338
20615
  case 0:
20339
- _context.n = 1;
20616
+ _context.next = 2;
20340
20617
  return debounceFetcher(str);
20341
- case 1:
20342
- res = _context.v;
20618
+ case 2:
20619
+ res = _context.sent;
20343
20620
  setOptions(res);
20344
20621
  setRescouse(res);
20345
- case 2:
20346
- return _context.a(2);
20622
+ case 5:
20623
+ case "end":
20624
+ return _context.stop();
20347
20625
  }
20348
20626
  }, _callee);
20349
20627
  }));
@@ -20352,15 +20630,15 @@ var ChooseStore = function ChooseStore(props) {
20352
20630
  };
20353
20631
  }();
20354
20632
  React$1.useEffect(function () {
20355
- _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
20633
+ _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
20356
20634
  var res;
20357
- return _regenerator().w(function (_context2) {
20358
- while (1) switch (_context2.n) {
20635
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
20636
+ while (1) switch (_context2.prev = _context2.next) {
20359
20637
  case 0:
20360
- _context2.n = 1;
20638
+ _context2.next = 2;
20361
20639
  return fetchUserList(undefined, true);
20362
- case 1:
20363
- res = _context2.v;
20640
+ case 2:
20641
+ res = _context2.sent;
20364
20642
  res.map(function (item, indexNumber) {
20365
20643
  if (item.label === name) {
20366
20644
  setIndex(indexNumber);
@@ -20376,8 +20654,9 @@ var ChooseStore = function ChooseStore(props) {
20376
20654
  });
20377
20655
  setOptions(res);
20378
20656
  setRescouse(res);
20379
- case 2:
20380
- return _context2.a(2);
20657
+ case 6:
20658
+ case "end":
20659
+ return _context2.stop();
20381
20660
  }
20382
20661
  }, _callee2);
20383
20662
  }))();
@@ -21426,25 +21705,25 @@ var DrawContent$1 = function DrawContent(_ref) {
21426
21705
  currentOneLevel = _useState8[0],
21427
21706
  setCurrentOneLevel = _useState8[1];
21428
21707
  var _useState9 = React$1.useState([]),
21429
- _useState0 = _slicedToArray(_useState9, 2),
21430
- SearhData = _useState0[0],
21431
- setSearchMenuData = _useState0[1];
21432
- var _useState1 = React$1.useState(600),
21433
- _useState10 = _slicedToArray(_useState1, 2),
21434
- rightMenuHeight = _useState10[0],
21435
- setHeight = _useState10[1];
21436
- var _useState11 = React$1.useState(900),
21708
+ _useState10 = _slicedToArray(_useState9, 2),
21709
+ SearhData = _useState10[0],
21710
+ setSearchMenuData = _useState10[1];
21711
+ var _useState11 = React$1.useState(600),
21437
21712
  _useState12 = _slicedToArray(_useState11, 2),
21438
- drawHeight = _useState12[0],
21439
- setDrawHeight = _useState12[1];
21440
- var _useState13 = React$1.useState(false),
21713
+ rightMenuHeight = _useState12[0],
21714
+ setHeight = _useState12[1];
21715
+ var _useState13 = React$1.useState(900),
21441
21716
  _useState14 = _slicedToArray(_useState13, 2),
21442
- moreBtnShow = _useState14[0],
21443
- setMoreBtnShow = _useState14[1];
21717
+ drawHeight = _useState14[0],
21718
+ setDrawHeight = _useState14[1];
21444
21719
  var _useState15 = React$1.useState(false),
21445
21720
  _useState16 = _slicedToArray(_useState15, 2),
21446
- showScroll = _useState16[0],
21447
- setShowScroll = _useState16[1];
21721
+ moreBtnShow = _useState16[0],
21722
+ setMoreBtnShow = _useState16[1];
21723
+ var _useState17 = React$1.useState(false),
21724
+ _useState18 = _slicedToArray(_useState17, 2),
21725
+ showScroll = _useState18[0],
21726
+ setShowScroll = _useState18[1];
21448
21727
  React$1.useEffect(function () {
21449
21728
  var _originRoutes$find;
21450
21729
  getMenuContentHeight();
@@ -23055,11 +23334,14 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
23055
23334
  },
23056
23335
  menu: {
23057
23336
  request: function () {
23058
- var _request = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
23059
- return _regenerator().w(function (_context) {
23060
- while (1) switch (_context.n) {
23337
+ var _request = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
23338
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
23339
+ while (1) switch (_context.prev = _context.next) {
23061
23340
  case 0:
23062
- return _context.a(2, JSON.parse(localStorage.getItem("customerMenu_".concat(itemPath, "_front")) || '[]'));
23341
+ return _context.abrupt("return", JSON.parse(localStorage.getItem("customerMenu_".concat(itemPath, "_front")) || '[]'));
23342
+ case 1:
23343
+ case "end":
23344
+ return _context.stop();
23063
23345
  }
23064
23346
  }, _callee);
23065
23347
  }));
@@ -23464,31 +23746,31 @@ var index$6 = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
23464
23746
  multiTableData = _useState8[0],
23465
23747
  setMmultiTableData = _useState8[1]; //多表头数据
23466
23748
  var _useState9 = React$1.useState(10),
23467
- _useState0 = _slicedToArray(_useState9, 2),
23468
- viewCount = _useState0[0],
23469
- setViewCount = _useState0[1]; //虚拟表格每次渲染数量
23749
+ _useState10 = _slicedToArray(_useState9, 2),
23750
+ viewCount = _useState10[0],
23751
+ setViewCount = _useState10[1]; //虚拟表格每次渲染数量
23470
23752
  var itemWidth = 100; // 表格每一项宽度
23471
- var _useState1 = React$1.useState((props === null || props === void 0 ? void 0 : props.colHeaderWidth) || 400),
23472
- _useState10 = _slicedToArray(_useState1, 2),
23473
- realColHeaderWidth = _useState10[0],
23474
- setLeftWidth = _useState10[1];
23753
+ var _useState11 = React$1.useState((props === null || props === void 0 ? void 0 : props.colHeaderWidth) || 400),
23754
+ _useState12 = _slicedToArray(_useState11, 2),
23755
+ realColHeaderWidth = _useState12[0],
23756
+ setLeftWidth = _useState12[1];
23475
23757
  var viewPort = React$1.useRef(null);
23476
23758
  var topScrollBar = React$1.useRef(null);
23477
23759
  var leftTableRef = React$1.useRef(null);
23478
23760
  //起始渲染item
23479
- var _useState11 = React$1.useState(0),
23480
- _useState12 = _slicedToArray(_useState11, 2),
23481
- startIndex = _useState12[0],
23482
- setStartIndex = _useState12[1];
23761
+ var _useState13 = React$1.useState(0),
23762
+ _useState14 = _slicedToArray(_useState13, 2),
23763
+ startIndex = _useState14[0],
23764
+ setStartIndex = _useState14[1];
23483
23765
  //结束渲染item
23484
23766
  var endIndex = React$1.useMemo(function () {
23485
23767
  return startIndex + viewCount;
23486
23768
  }, [startIndex, viewCount]);
23487
23769
  //表格偏移量
23488
- var _useState13 = React$1.useState(0),
23489
- _useState14 = _slicedToArray(_useState13, 2),
23490
- offsetWidth = _useState14[0],
23491
- setOffset = _useState14[1];
23770
+ var _useState15 = React$1.useState(0),
23771
+ _useState16 = _slicedToArray(_useState15, 2),
23772
+ offsetWidth = _useState16[0],
23773
+ setOffset = _useState16[1];
23492
23774
  React$1.useEffect(function () {
23493
23775
  setTimeout(function () {
23494
23776
  var realLeftTableWidth = leftTableRef.current.clientWidth;
@@ -30792,11 +31074,11 @@ var valueType = {
30792
31074
  };
30793
31075
 
30794
31076
  var getDynamicDict = /*#__PURE__*/function () {
30795
- var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(dictionaryCode) {
30796
- return _regenerator().w(function (_context) {
30797
- while (1) switch (_context.n) {
31077
+ var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
31078
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
31079
+ while (1) switch (_context.prev = _context.next) {
30798
31080
  case 0:
30799
- _context.n = 1;
31081
+ _context.next = 2;
30800
31082
  return bssula.request({
30801
31083
  url: "/basic/dictDynamicItem/getDynamicData/".concat(dictionaryCode),
30802
31084
  converter: function converter(_ref2) {
@@ -30809,8 +31091,11 @@ var getDynamicDict = /*#__PURE__*/function () {
30809
31091
  });
30810
31092
  }
30811
31093
  });
30812
- case 1:
30813
- return _context.a(2, _context.v);
31094
+ case 2:
31095
+ return _context.abrupt("return", _context.sent);
31096
+ case 3:
31097
+ case "end":
31098
+ return _context.stop();
30814
31099
  }
30815
31100
  }, _callee);
30816
31101
  }));
@@ -30857,12 +31142,12 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
30857
31142
  value: false
30858
31143
  }];
30859
31144
  var ref = React$1.useRef();
30860
- ahooks.useMount(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
30861
- var _ref$current, source, _t, _t2;
30862
- return _regenerator().w(function (_context) {
30863
- while (1) switch (_context.n) {
31145
+ ahooks.useMount(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
31146
+ var _ref$current, source;
31147
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
31148
+ while (1) switch (_context.prev = _context.next) {
30864
31149
  case 0:
30865
- _context.n = 1;
31150
+ _context.next = 2;
30866
31151
  return setIsShowAndType(function (prev) {
30867
31152
  if (record.inputType === 20 || record.inputType === 30) {
30868
31153
  return {
@@ -30873,39 +31158,40 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
30873
31158
  }
30874
31159
  return prev;
30875
31160
  });
30876
- case 1:
31161
+ case 2:
30877
31162
  if (!record.dictionaryCode) {
30878
- _context.n = 7;
31163
+ _context.next = 17;
30879
31164
  break;
30880
31165
  }
30881
31166
  if (!(record.choiceType == 20)) {
30882
- _context.n = 2;
31167
+ _context.next = 7;
30883
31168
  break;
30884
31169
  }
30885
- _t = getDictionarySource(record.dictionaryCode);
30886
- _context.n = 6;
31170
+ _context.t0 = getDictionarySource(record.dictionaryCode);
31171
+ _context.next = 15;
30887
31172
  break;
30888
- case 2:
31173
+ case 7:
30889
31174
  if (!(record.choiceType == 30)) {
30890
- _context.n = 4;
31175
+ _context.next = 13;
30891
31176
  break;
30892
31177
  }
30893
- _context.n = 3;
31178
+ _context.next = 10;
30894
31179
  return getDynamicDict(record.dictionaryCode);
30895
- case 3:
30896
- _t2 = _context.v;
30897
- _context.n = 5;
31180
+ case 10:
31181
+ _context.t1 = _context.sent;
31182
+ _context.next = 14;
30898
31183
  break;
30899
- case 4:
30900
- _t2 = [];
30901
- case 5:
30902
- _t = _t2;
30903
- case 6:
30904
- source = _t;
31184
+ case 13:
31185
+ _context.t1 = [];
31186
+ case 14:
31187
+ _context.t0 = _context.t1;
31188
+ case 15:
31189
+ source = _context.t0;
30905
31190
  // @ts-ignore
30906
31191
  ref === null || ref === void 0 ? void 0 : (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.setFieldSource('defaultValue', source);
30907
- case 7:
30908
- return _context.a(2);
31192
+ case 17:
31193
+ case "end":
31194
+ return _context.stop();
30909
31195
  }
30910
31196
  }, _callee);
30911
31197
  })));
@@ -30970,10 +31256,10 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
30970
31256
  source: {
30971
31257
  relates: ['dictionaryCode', 'dictionaryCode_dynamic', 'choiceType'],
30972
31258
  type: function () {
30973
- var _type = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(_ref3) {
31259
+ var _type = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
30974
31260
  var form, values, name, relates, source;
30975
- return _regenerator().w(function (_context2) {
30976
- while (1) switch (_context2.n) {
31261
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
31262
+ while (1) switch (_context2.prev = _context2.next) {
30977
31263
  case 0:
30978
31264
  form = _ref3.form, values = _ref3.values, name = _ref3.name, relates = _ref3.relates;
30979
31265
  if (values[0]) {
@@ -30982,18 +31268,19 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
30982
31268
  form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], getDictionarySource(values[0]));
30983
31269
  }
30984
31270
  if (!values[1]) {
30985
- _context2.n = 2;
31271
+ _context2.next = 9;
30986
31272
  break;
30987
31273
  }
30988
- _context2.n = 1;
31274
+ _context2.next = 5;
30989
31275
  return getDynamicDict(record.dictionaryCode || values[1]);
30990
- case 1:
30991
- source = _context2.v;
31276
+ case 5:
31277
+ source = _context2.sent;
30992
31278
  form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
30993
31279
  form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
30994
31280
  form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], source);
30995
- case 2:
30996
- return _context2.a(2);
31281
+ case 9:
31282
+ case "end":
31283
+ return _context2.stop();
30997
31284
  }
30998
31285
  }, _callee2);
30999
31286
  }));
@@ -31449,25 +31736,25 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
31449
31736
  source: {
31450
31737
  relates: ['choiceType', 'inputType'],
31451
31738
  type: function () {
31452
- var _type2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(_ref0) {
31739
+ var _type2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
31453
31740
  var values, name, form, source;
31454
- return _regenerator().w(function (_context3) {
31455
- while (1) switch (_context3.n) {
31741
+ return _regeneratorRuntime().wrap(function _callee3$(_context3) {
31742
+ while (1) switch (_context3.prev = _context3.next) {
31456
31743
  case 0:
31457
- values = _ref0.values, name = _ref0.name, form = _ref0.form;
31744
+ values = _ref10.values, name = _ref10.name, form = _ref10.form;
31458
31745
  if (values[1] === 40) {
31459
31746
  form === null || form === void 0 ? void 0 : form.setFieldValue(name, null);
31460
31747
  form.setFieldVisible(name, false);
31461
31748
  }
31462
31749
  if (!(values[0] === 30)) {
31463
- _context3.n = 2;
31750
+ _context3.next = 10;
31464
31751
  break;
31465
31752
  }
31466
- _context3.n = 1;
31753
+ _context3.next = 5;
31467
31754
  return bssula.request({
31468
31755
  url: '/basic/dictDynamicItem/queryList',
31469
- converter: function converter(_ref1) {
31470
- var data = _ref1.data;
31756
+ converter: function converter(_ref11) {
31757
+ var data = _ref11.data;
31471
31758
  return data === null || data === void 0 ? void 0 : data.map(function (d) {
31472
31759
  return {
31473
31760
  text: d.dictCode,
@@ -31476,16 +31763,17 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
31476
31763
  });
31477
31764
  }
31478
31765
  });
31479
- case 1:
31480
- source = _context3.v;
31766
+ case 5:
31767
+ source = _context3.sent;
31481
31768
  form === null || form === void 0 ? void 0 : form.setFieldSource(name, source);
31482
31769
  form.setFieldVisible(name, true);
31483
- _context3.n = 3;
31770
+ _context3.next = 11;
31484
31771
  break;
31485
- case 2:
31772
+ case 10:
31486
31773
  form.setFieldVisible(name, false);
31487
- case 3:
31488
- return _context3.a(2);
31774
+ case 11:
31775
+ case "end":
31776
+ return _context3.stop();
31489
31777
  }
31490
31778
  }, _callee3);
31491
31779
  }));
@@ -31500,8 +31788,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
31500
31788
  name: 'enumeration',
31501
31789
  label: '维护自定义选项',
31502
31790
  field: {
31503
- type: function type(_ref10) {
31504
- var form = _ref10.form;
31791
+ type: function type(_ref12) {
31792
+ var form = _ref12.form;
31505
31793
  return /*#__PURE__*/React__default['default'].createElement(antd.Button, {
31506
31794
  type: 'link',
31507
31795
  onClick: function onClick() {
@@ -31527,10 +31815,10 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
31527
31815
  dependency: {
31528
31816
  source: {
31529
31817
  relates: ['choiceType'],
31530
- type: function type(_ref11) {
31531
- var values = _ref11.values,
31532
- name = _ref11.name,
31533
- form = _ref11.form;
31818
+ type: function type(_ref13) {
31819
+ var values = _ref13.values,
31820
+ name = _ref13.name,
31821
+ form = _ref13.form;
31534
31822
  if (values[0] === 10) {
31535
31823
  form.setFieldVisible(name, true);
31536
31824
  } else {
@@ -31546,10 +31834,10 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
31546
31834
  dependency: {
31547
31835
  visible: {
31548
31836
  relates: ['choiceType'],
31549
- type: function type(_ref12) {
31550
- var name = _ref12.name,
31551
- values = _ref12.values,
31552
- form = _ref12.form;
31837
+ type: function type(_ref14) {
31838
+ var name = _ref14.name,
31839
+ values = _ref14.values,
31840
+ form = _ref14.form;
31553
31841
  if (values[0] == 330) {
31554
31842
  form.setFieldVisible(name, true);
31555
31843
  } else {
@@ -31573,8 +31861,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
31573
31861
  params: {
31574
31862
  'qp-businessType-eq': record.businessType
31575
31863
  },
31576
- converter: function converter(_ref13) {
31577
- var data = _ref13.data;
31864
+ converter: function converter(_ref15) {
31865
+ var data = _ref15.data;
31578
31866
  return (data === null || data === void 0 ? void 0 : data.map(function (d) {
31579
31867
  return {
31580
31868
  text: d.name,
@@ -31614,8 +31902,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
31614
31902
  'qp-businessType-eq': record.businessType,
31615
31903
  'qp-status-eq': 1
31616
31904
  },
31617
- converter: function converter(_ref14) {
31618
- var data = _ref14.data;
31905
+ converter: function converter(_ref16) {
31906
+ var data = _ref16.data;
31619
31907
  return (data === null || data === void 0 ? void 0 : data.map(function (d) {
31620
31908
  var _d$code;
31621
31909
  return {
@@ -31643,8 +31931,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
31643
31931
  remoteSource: {
31644
31932
  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),
31645
31933
  method: 'get',
31646
- converter: function converter(_ref15) {
31647
- var data = _ref15.data;
31934
+ converter: function converter(_ref17) {
31935
+ var data = _ref17.data;
31648
31936
  if (lineDetail.moduleType == 1) {
31649
31937
  return (data === null || data === void 0 ? void 0 : data.map(function (d) {
31650
31938
  return {
@@ -31670,16 +31958,16 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
31670
31958
  width: 900,
31671
31959
  maskClosable: false,
31672
31960
  onOk: function () {
31673
- var _onOk = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4() {
31961
+ var _onOk = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
31674
31962
  var _ref$current4, _res$editableStatus;
31675
31963
  var res, _res$defaultValue;
31676
- return _regenerator().w(function (_context4) {
31677
- while (1) switch (_context4.n) {
31964
+ return _regeneratorRuntime().wrap(function _callee4$(_context4) {
31965
+ while (1) switch (_context4.prev = _context4.next) {
31678
31966
  case 0:
31679
- _context4.n = 1;
31967
+ _context4.next = 2;
31680
31968
  return ref === null || ref === void 0 ? void 0 : (_ref$current4 = ref.current) === null || _ref$current4 === void 0 ? void 0 : _ref$current4.validateFields();
31681
- case 1:
31682
- res = _context4.v;
31969
+ case 2:
31970
+ res = _context4.sent;
31683
31971
  res.editableStatus = (_res$editableStatus = res.editableStatus) === null || _res$editableStatus === void 0 ? void 0 : _res$editableStatus.join(',');
31684
31972
  res.fieldGroup = record.fieldGroup;
31685
31973
  res.businessType = record.businessType;
@@ -31706,7 +31994,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
31706
31994
  delete res.formula;
31707
31995
  delete res.showValue;
31708
31996
  if (!(mode === 'create')) {
31709
- _context4.n = 2;
31997
+ _context4.next = 18;
31710
31998
  break;
31711
31999
  }
31712
32000
  bssula.request({
@@ -31718,8 +32006,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
31718
32006
  onParentOk();
31719
32007
  }
31720
32008
  });
31721
- return _context4.a(2);
31722
- case 2:
32009
+ return _context4.abrupt("return");
32010
+ case 18:
31723
32011
  bssula.request({
31724
32012
  url: "/basic/flow/businessField/".concat(record.id),
31725
32013
  method: 'PATCH',
@@ -31729,8 +32017,9 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
31729
32017
  onParentOk();
31730
32018
  }
31731
32019
  });
31732
- case 3:
31733
- return _context4.a(2);
32020
+ case 19:
32021
+ case "end":
32022
+ return _context4.stop();
31734
32023
  }
31735
32024
  }, _callee4);
31736
32025
  }));
@@ -32186,21 +32475,21 @@ var JsonQueryTable = /*#__PURE__*/React__default['default'].memo(function (props
32186
32475
  jsonEditorVal = _useState8[0],
32187
32476
  setJsonEditorVal = _useState8[1];
32188
32477
  var _useState9 = React$1.useState({}),
32189
- _useState0 = _slicedToArray(_useState9, 2),
32190
- moduleParams = _useState0[0],
32191
- setModuleParams = _useState0[1];
32192
- var _useState1 = React$1.useState('main'),
32193
- _useState10 = _slicedToArray(_useState1, 2),
32194
- activeKey = _useState10[0],
32195
- setActiveKey = _useState10[1]; //默认详情页配置
32196
- var _useState11 = React$1.useState({}),
32478
+ _useState10 = _slicedToArray(_useState9, 2),
32479
+ moduleParams = _useState10[0],
32480
+ setModuleParams = _useState10[1];
32481
+ var _useState11 = React$1.useState('main'),
32197
32482
  _useState12 = _slicedToArray(_useState11, 2),
32198
- tablesConfigParams = _useState12[0],
32199
- setTablesConfigParams = _useState12[1];
32200
- var _useState13 = React$1.useState([]),
32483
+ activeKey = _useState12[0],
32484
+ setActiveKey = _useState12[1]; //默认详情页配置
32485
+ var _useState13 = React$1.useState({}),
32201
32486
  _useState14 = _slicedToArray(_useState13, 2),
32202
- tableJsonEditorValsArr = _useState14[0],
32203
- setTableJsonEditorValsArr = _useState14[1];
32487
+ tablesConfigParams = _useState14[0],
32488
+ setTablesConfigParams = _useState14[1];
32489
+ var _useState15 = React$1.useState([]),
32490
+ _useState16 = _slicedToArray(_useState15, 2),
32491
+ tableJsonEditorValsArr = _useState16[0],
32492
+ setTableJsonEditorValsArr = _useState16[1];
32204
32493
  React$1.useEffect(function () {
32205
32494
  Promise.all([requestUtil.get("/basic/flow/businessFieldGroup/one?moduleType=2&layoutPoint=".concat(pageType))]).then(function (_ref2) {
32206
32495
  var _ref3 = _slicedToArray(_ref2, 1),
@@ -32576,11 +32865,11 @@ function getMetaData(_x) {
32576
32865
 
32577
32866
  // 获取数据
32578
32867
  function _getMetaData() {
32579
- _getMetaData = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(id) {
32580
- return _regenerator().w(function (_context) {
32581
- while (1) switch (_context.n) {
32868
+ _getMetaData = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(id) {
32869
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
32870
+ while (1) switch (_context.prev = _context.next) {
32582
32871
  case 0:
32583
- return _context.a(2, new Promise(function (resolve, reject) {
32872
+ return _context.abrupt("return", new Promise(function (resolve, reject) {
32584
32873
  umi.request('/basic/entityProperty/listNoPage', {
32585
32874
  params: {
32586
32875
  'qp-entityId-eq': id
@@ -32592,6 +32881,9 @@ function _getMetaData() {
32592
32881
  reject([]);
32593
32882
  });
32594
32883
  }));
32884
+ case 1:
32885
+ case "end":
32886
+ return _context.stop();
32595
32887
  }
32596
32888
  }, _callee);
32597
32889
  }));
@@ -32795,11 +33087,11 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
32795
33087
  tableState = _useState4[0],
32796
33088
  setTableState = _useState4[1];
32797
33089
  var handleOpen = /*#__PURE__*/function () {
32798
- var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
33090
+ var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
32799
33091
  var _props$customSelector, _props$customSelector2, _props$ctx4, _props$value, _props$value$map, _props$ctx5, _props$ctx5$form, _props$selectProps;
32800
33092
  var requestConfigNew, metaDataId, metaData, realMetaData, columns, fields, initValue, _queryTableRef$curren, _queryTableRef$curren2, _queryTableRef$curren3;
32801
- return _regenerator().w(function (_context) {
32802
- while (1) switch (_context.n) {
33093
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
33094
+ while (1) switch (_context.prev = _context.next) {
32803
33095
  case 0:
32804
33096
  requestConfigNew = assembleRequest(props.customSelectorConfig, {
32805
33097
  isSearchForm: props.isSearchForm,
@@ -32807,16 +33099,16 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
32807
33099
  searchFormData: searchFormData
32808
33100
  });
32809
33101
  if (requestConfigNew) {
32810
- _context.n = 1;
33102
+ _context.next = 3;
32811
33103
  break;
32812
33104
  }
32813
- return _context.a(2);
32814
- case 1:
33105
+ return _context.abrupt("return");
33106
+ case 3:
32815
33107
  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;
32816
- _context.n = 2;
33108
+ _context.next = 6;
32817
33109
  return getMetaData(metaDataId);
32818
- case 2:
32819
- metaData = _context.v;
33110
+ case 6:
33111
+ metaData = _context.sent;
32820
33112
  realMetaData = (metaData === null || metaData === void 0 ? void 0 : metaData.filter(function (item) {
32821
33113
  return (item === null || item === void 0 ? void 0 : item.inputType) != 1;
32822
33114
  })) || [];
@@ -32856,8 +33148,9 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
32856
33148
  // @ts-ignore
32857
33149
  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);
32858
33150
  }
32859
- case 3:
32860
- return _context.a(2);
33151
+ case 14:
33152
+ case "end":
33153
+ return _context.stop();
32861
33154
  }
32862
33155
  }, _callee);
32863
33156
  }));
@@ -32960,7 +33253,7 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
32960
33253
  }, [requestConfig, tableState.columns]);
32961
33254
  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';
32962
33255
  var handleOk = function handleOk(rowData) {
32963
- var _props$selectProps2, _props$customSelector6, _props$customSelector7, _queryTableRef$curren11, _queryTableRef$curren12, _queryTableRef$curren13;
33256
+ var _props$selectProps2, _props$customSelector6, _props$customSelector7, _queryTableRef$curren13, _queryTableRef$curren14, _queryTableRef$curren15;
32964
33257
  var setSource = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
32965
33258
  //多选数据处理
32966
33259
  if (props === null || props === void 0 ? void 0 : (_props$selectProps2 = props.selectProps) === null || _props$selectProps2 === void 0 ? void 0 : _props$selectProps2.multipleForQuery) {
@@ -32971,9 +33264,9 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
32971
33264
  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()) || [];
32972
33265
  var realSelectedRows = selectedRows;
32973
33266
  if (!rowData && (selectedKesys === null || selectedKesys === void 0 ? void 0 : selectedKesys.length) !== (selectedRows === null || selectedRows === void 0 ? void 0 : selectedRows.length)) {
32974
- var _queryTableRef$curren0, _queryTableRef$curren1, _queryTableRef$curren10;
33267
+ var _queryTableRef$curren10, _queryTableRef$curren11, _queryTableRef$curren12;
32975
33268
  // @ts-ignore
32976
- 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()) || [];
33269
+ 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()) || [];
32977
33270
  realSelectedRows = dataSource === null || dataSource === void 0 ? void 0 : dataSource.filter(function (s) {
32978
33271
  return selectedKesys.includes(s[rowKey]);
32979
33272
  });
@@ -33006,10 +33299,10 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
33006
33299
  });
33007
33300
  }
33008
33301
  mappings.map(function (item) {
33009
- var _props$customSelector0, _props$customSelector1, _props$customSelector10, _props$customSelector11;
33010
- 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]) {
33011
- var _props$customSelector12, _props$customSelector13;
33012
- 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];
33302
+ var _props$customSelector10, _props$customSelector11, _props$customSelector12, _props$customSelector13;
33303
+ 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]) {
33304
+ var _props$customSelector14, _props$customSelector15;
33305
+ 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];
33013
33306
  }
33014
33307
  values[item.codeMappingTo] = rowData[item.codeMappingFrom];
33015
33308
  });
@@ -33064,10 +33357,10 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
33064
33357
  }
33065
33358
  props.onCancel();
33066
33359
  //@ts-ignore
33067
- 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();
33360
+ 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();
33068
33361
  };
33069
33362
  var config = React$1.useMemo(function () {
33070
- var _props$selectProps3, _props$ctx9, _props$value2, _props$ctx0, _props$ctx0$form;
33363
+ var _props$selectProps3, _props$ctx9, _props$value2, _props$ctx10, _props$ctx10$form;
33071
33364
  var returnConfig = {
33072
33365
  size: 'small',
33073
33366
  needPageHeader: false,
@@ -33076,7 +33369,7 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
33076
33369
  rowSelection: (props === null || props === void 0 ? void 0 : (_props$selectProps3 = props.selectProps) === null || _props$selectProps3 === void 0 ? void 0 : _props$selectProps3.multipleForQuery) && !isView ? {
33077
33370
  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) {
33078
33371
  return v.key || v;
33079
- })) || (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))
33372
+ })) || (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))
33080
33373
  } : false,
33081
33374
  remoteDataSource: remoteDataSource,
33082
33375
  fields: tableState.fields,
@@ -33084,8 +33377,8 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
33084
33377
  rowKey: rowKey,
33085
33378
  tableProps: !isView && {
33086
33379
  rowClassName: function rowClassName(record) {
33087
- var _props$ctx1, _props$value3, _props$ctx10, _props$ctx10$form;
33088
- 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' : '';
33380
+ var _props$ctx11, _props$value3, _props$ctx12, _props$ctx12$form;
33381
+ 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' : '';
33089
33382
  },
33090
33383
  onRow: function onRow(record) {
33091
33384
  return {
@@ -33130,10 +33423,10 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
33130
33423
  }, "\u63D0\u4EA4"), /*#__PURE__*/React__default['default'].createElement(antd.Button, {
33131
33424
  type: "default",
33132
33425
  onClick: function onClick() {
33133
- var _queryTableRef$curren14, _queryTableRef$curren15, _queryTableRef$curren16;
33426
+ var _queryTableRef$curren16, _queryTableRef$curren17, _queryTableRef$curren18;
33134
33427
  props.onCancel();
33135
33428
  //@ts-ignore
33136
- 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();
33429
+ 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();
33137
33430
  }
33138
33431
  }, "\u53D6\u6D88"))));
33139
33432
  });
@@ -33357,19 +33650,19 @@ var BsCascader = function BsCascader(_ref) {
33357
33650
  _useState2 = _slicedToArray(_useState, 2),
33358
33651
  handSource = _useState2[0],
33359
33652
  setHandSource = _useState2[1];
33360
- React$1.useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
33653
+ React$1.useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
33361
33654
  var resData, data;
33362
- return _regenerator().w(function (_context) {
33363
- while (1) switch (_context.n) {
33655
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
33656
+ while (1) switch (_context.prev = _context.next) {
33364
33657
  case 0:
33365
33658
  if (!(!source && initRequestSource)) {
33366
- _context.n = 2;
33659
+ _context.next = 6;
33367
33660
  break;
33368
33661
  }
33369
- _context.n = 1;
33662
+ _context.next = 3;
33370
33663
  return initRequestSource();
33371
- case 1:
33372
- resData = _context.v;
33664
+ case 3:
33665
+ resData = _context.sent;
33373
33666
  data = (resData === null || resData === void 0 ? void 0 : resData.map(function (item) {
33374
33667
  return _objectSpread2(_objectSpread2({}, item), {}, {
33375
33668
  label: item.text,
@@ -33377,8 +33670,9 @@ var BsCascader = function BsCascader(_ref) {
33377
33670
  });
33378
33671
  })) || [];
33379
33672
  setHandSource(data);
33380
- case 2:
33381
- return _context.a(2);
33673
+ case 6:
33674
+ case "end":
33675
+ return _context.stop();
33382
33676
  }
33383
33677
  }, _callee);
33384
33678
  })), []);
@@ -33508,17 +33802,20 @@ function getRegularThresholdRange(_x) {
33508
33802
  return _getRegularThresholdRange.apply(this, arguments);
33509
33803
  }
33510
33804
  function _getRegularThresholdRange() {
33511
- _getRegularThresholdRange = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(params) {
33512
- return _regenerator().w(function (_context) {
33513
- while (1) switch (_context.n) {
33805
+ _getRegularThresholdRange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
33806
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
33807
+ while (1) switch (_context.prev = _context.next) {
33514
33808
  case 0:
33515
- return _context.a(2, requestUtil({
33809
+ return _context.abrupt("return", requestUtil({
33516
33810
  url: "/basic/regularThresholdRange/getVals/".concat(params.queryIdentify),
33517
33811
  method: 'POST',
33518
33812
  data: _objectSpread2(_objectSpread2({}, params), {}, {
33519
33813
  queryIdentify: undefined
33520
33814
  })
33521
33815
  }));
33816
+ case 1:
33817
+ case "end":
33818
+ return _context.stop();
33522
33819
  }
33523
33820
  }, _callee);
33524
33821
  }));
@@ -33659,24 +33956,24 @@ var RuleField = /*#__PURE__*/function (_Component) {
33659
33956
  };
33660
33957
  //规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
33661
33958
  _this.getRegularThresholdRange = /*#__PURE__*/function () {
33662
- var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
33959
+ var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
33663
33960
  var thresholdQuery, extraRequestUrl, querParams, needQueryList, res;
33664
- return _regenerator().w(function (_context) {
33665
- while (1) switch (_context.n) {
33961
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
33962
+ while (1) switch (_context.prev = _context.next) {
33666
33963
  case 0:
33667
33964
  if (queryIdentify) {
33668
- _context.n = 1;
33965
+ _context.next = 2;
33669
33966
  break;
33670
33967
  }
33671
- return _context.a(2);
33672
- case 1:
33968
+ return _context.abrupt("return");
33969
+ case 2:
33673
33970
  thresholdQuery = _this.state.thresholdQuery;
33674
33971
  extraRequestUrl = '';
33675
33972
  querParams = setParams(propertyCode, thresholdQuery);
33676
33973
  if (!queryIdentityInfo.find(function (item) {
33677
33974
  return item.identity == propertyCode;
33678
33975
  })) {
33679
- _context.n = 3;
33976
+ _context.next = 10;
33680
33977
  break;
33681
33978
  }
33682
33979
  //判断查询属性枚举时有没有必传参数,如果必传参数没有值则不调用查询接口
@@ -33690,15 +33987,15 @@ var RuleField = /*#__PURE__*/function (_Component) {
33690
33987
  if (!needQueryList.some(function (item) {
33691
33988
  return !querParams[item] || !querParams[item].length;
33692
33989
  })) {
33693
- _context.n = 2;
33990
+ _context.next = 9;
33694
33991
  break;
33695
33992
  }
33696
- return _context.a(2);
33697
- case 2:
33993
+ return _context.abrupt("return");
33994
+ case 9:
33698
33995
  extraRequestUrl = queryIdentityInfo.find(function (item) {
33699
33996
  return item.identity == propertyCode;
33700
33997
  }).requestUrl || '';
33701
- case 3:
33998
+ case 10:
33702
33999
  if (queryIdentifyType === 'dictCodeIdentify') {
33703
34000
  extraRequestUrl = "bscDictItem/selectDictItemsByDictCode"; // 字典接口
33704
34001
  querParams = {
@@ -33709,7 +34006,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
33709
34006
  // querParams = { dictCode: queryIdentify }
33710
34007
  }
33711
34008
  if (!extraRequestUrl) {
33712
- _context.n = 4;
34009
+ _context.next = 16;
33713
34010
  break;
33714
34011
  }
33715
34012
  if (queryIdentify == 'maintain_area_code') {
@@ -33748,42 +34045,43 @@ var RuleField = /*#__PURE__*/function (_Component) {
33748
34045
  return handleData;
33749
34046
  }
33750
34047
  });
33751
- _context.n = 8;
34048
+ _context.next = 29;
33752
34049
  break;
33753
- case 4:
34050
+ case 16:
33754
34051
  if (!(queryIdentifyType == 'objectPropertyListIdentify')) {
33755
- _context.n = 5;
34052
+ _context.next = 20;
33756
34053
  break;
33757
34054
  }
33758
34055
  _this.setState({
33759
34056
  thresholdList: queryIdentify
33760
34057
  });
33761
- _context.n = 8;
34058
+ _context.next = 29;
33762
34059
  break;
33763
- case 5:
34060
+ case 20:
33764
34061
  if (!(queryIdentifyType == 'objectPropertyCodeIdentify')) {
33765
- _context.n = 6;
34062
+ _context.next = 24;
33766
34063
  break;
33767
34064
  }
33768
34065
  // TODO待处理
33769
34066
  _this.setState({
33770
34067
  thresholdList: []
33771
34068
  });
33772
- _context.n = 8;
34069
+ _context.next = 29;
33773
34070
  break;
33774
- case 6:
34071
+ case 24:
33775
34072
  querParams.queryIdentify = queryIdentify;
33776
- _context.n = 7;
34073
+ _context.next = 27;
33777
34074
  return getRegularThresholdRange(querParams);
33778
- case 7:
33779
- res = _context.v;
34075
+ case 27:
34076
+ res = _context.sent;
33780
34077
  if (handleError(res)) {
33781
34078
  _this.setState({
33782
34079
  thresholdList: (res === null || res === void 0 ? void 0 : res.data) || []
33783
34080
  });
33784
34081
  }
33785
- case 8:
33786
- return _context.a(2);
34082
+ case 29:
34083
+ case "end":
34084
+ return _context.stop();
33787
34085
  }
33788
34086
  }, _callee);
33789
34087
  }));
@@ -34615,11 +34913,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
34615
34913
  isAll: true,
34616
34914
  needNameAndCode: true,
34617
34915
  notChangeOnSelect: true,
34618
- initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
34619
- return _regenerator().w(function (_context2) {
34620
- while (1) switch (_context2.n) {
34916
+ initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
34917
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
34918
+ while (1) switch (_context2.prev = _context2.next) {
34621
34919
  case 0:
34622
- _context2.n = 1;
34920
+ _context2.next = 2;
34623
34921
  return bssula.request({
34624
34922
  url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
34625
34923
  method: 'get',
@@ -34636,8 +34934,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
34636
34934
  return handleData;
34637
34935
  }
34638
34936
  });
34639
- case 1:
34640
- return _context2.a(2, _context2.v);
34937
+ case 2:
34938
+ return _context2.abrupt("return", _context2.sent);
34939
+ case 3:
34940
+ case "end":
34941
+ return _context2.stop();
34641
34942
  }
34642
34943
  }, _callee2);
34643
34944
  })),
@@ -34661,11 +34962,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
34661
34962
  isAll: true,
34662
34963
  needNameAndCode: true,
34663
34964
  notChangeOnSelect: true,
34664
- initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3() {
34665
- return _regenerator().w(function (_context3) {
34666
- while (1) switch (_context3.n) {
34965
+ initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
34966
+ return _regeneratorRuntime().wrap(function _callee3$(_context3) {
34967
+ while (1) switch (_context3.prev = _context3.next) {
34667
34968
  case 0:
34668
- _context3.n = 1;
34969
+ _context3.next = 2;
34669
34970
  return bssula.request({
34670
34971
  url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
34671
34972
  method: 'get',
@@ -34682,8 +34983,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
34682
34983
  return handleData;
34683
34984
  }
34684
34985
  });
34685
- case 1:
34686
- return _context3.a(2, _context3.v);
34986
+ case 2:
34987
+ return _context3.abrupt("return", _context3.sent);
34988
+ case 3:
34989
+ case "end":
34990
+ return _context3.stop();
34687
34991
  }
34688
34992
  }, _callee3);
34689
34993
  })),
@@ -34709,11 +35013,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
34709
35013
  isAll: true,
34710
35014
  needNameAndCode: true,
34711
35015
  notChangeOnSelect: true,
34712
- initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4() {
34713
- return _regenerator().w(function (_context4) {
34714
- while (1) switch (_context4.n) {
35016
+ initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
35017
+ return _regeneratorRuntime().wrap(function _callee4$(_context4) {
35018
+ while (1) switch (_context4.prev = _context4.next) {
34715
35019
  case 0:
34716
- _context4.n = 1;
35020
+ _context4.next = 2;
34717
35021
  return bssula.request({
34718
35022
  url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
34719
35023
  method: 'get',
@@ -34730,8 +35034,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
34730
35034
  return handleData;
34731
35035
  }
34732
35036
  });
34733
- case 1:
34734
- return _context4.a(2, _context4.v);
35037
+ case 2:
35038
+ return _context4.abrupt("return", _context4.sent);
35039
+ case 3:
35040
+ case "end":
35041
+ return _context4.stop();
34735
35042
  }
34736
35043
  }, _callee4);
34737
35044
  })),
@@ -35418,8 +35725,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
35418
35725
  }
35419
35726
  }));
35420
35727
  } else {
35421
- var _values0;
35422
- var _currentValue9 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values0 = values) === null || _values0 === void 0 ? void 0 : _values0.map(function (s, vIndex) {
35728
+ var _values10;
35729
+ var _currentValue9 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values10 = values) === null || _values10 === void 0 ? void 0 : _values10.map(function (s, vIndex) {
35423
35730
  return {
35424
35731
  key: s,
35425
35732
  label: valueNames[vIndex],
@@ -35697,8 +36004,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
35697
36004
  }
35698
36005
  }));
35699
36006
  } else {
35700
- var _values1;
35701
- var _currentValue0 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values1 = values) === null || _values1 === void 0 ? void 0 : _values1.map(function (s, vIndex) {
36007
+ var _values11;
36008
+ var _currentValue10 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values11 = values) === null || _values11 === void 0 ? void 0 : _values11.map(function (s, vIndex) {
35702
36009
  return {
35703
36010
  key: s,
35704
36011
  label: valueNames[vIndex],
@@ -35720,7 +36027,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
35720
36027
  } : {}),
35721
36028
  disabled: disabled,
35722
36029
  labelInValue: true,
35723
- value: _currentValue0,
36030
+ value: _currentValue10,
35724
36031
  requestConfig: {
35725
36032
  filterInit: 'qp-code-in'
35726
36033
  },
@@ -35813,8 +36120,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
35813
36120
  }
35814
36121
  }));
35815
36122
  } else {
35816
- var _values10;
35817
- var _currentValue1 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values10 = values) === null || _values10 === void 0 ? void 0 : _values10.map(function (s, vIndex) {
36123
+ var _values12;
36124
+ var _currentValue11 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values12 = values) === null || _values12 === void 0 ? void 0 : _values12.map(function (s, vIndex) {
35818
36125
  return {
35819
36126
  key: s,
35820
36127
  label: valueNames[vIndex],
@@ -35836,7 +36143,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
35836
36143
  } : {}),
35837
36144
  disabled: disabled,
35838
36145
  labelInValue: true,
35839
- value: _currentValue1,
36146
+ value: _currentValue11,
35840
36147
  requestConfig: {
35841
36148
  filterInit: 'qp-code-in'
35842
36149
  },
@@ -35929,8 +36236,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
35929
36236
  }
35930
36237
  }));
35931
36238
  } else {
35932
- var _values11;
35933
- var _currentValue10 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values11 = values) === null || _values11 === void 0 ? void 0 : _values11.map(function (s, vIndex) {
36239
+ var _values13;
36240
+ var _currentValue12 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values13 = values) === null || _values13 === void 0 ? void 0 : _values13.map(function (s, vIndex) {
35934
36241
  return {
35935
36242
  key: s,
35936
36243
  label: valueNames[vIndex],
@@ -35952,7 +36259,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
35952
36259
  } : {}),
35953
36260
  disabled: disabled,
35954
36261
  labelInValue: true,
35955
- value: _currentValue10,
36262
+ value: _currentValue12,
35956
36263
  requestConfig: {
35957
36264
  filterInit: 'qp-brandCode-in'
35958
36265
  },
@@ -36143,8 +36450,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
36143
36450
  }
36144
36451
  }));
36145
36452
  } else {
36146
- var _values12;
36147
- var _currentValue11 = dataInputBusinessType === 12 ? ((_values12 = values) === null || _values12 === void 0 ? void 0 : _values12.map(function (s, vIndex) {
36453
+ var _values14;
36454
+ var _currentValue13 = dataInputBusinessType === 12 ? ((_values14 = values) === null || _values14 === void 0 ? void 0 : _values14.map(function (s, vIndex) {
36148
36455
  return {
36149
36456
  key: s,
36150
36457
  label: valueNames[vIndex]
@@ -36172,7 +36479,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
36172
36479
  isSearchForm: true,
36173
36480
  customSelectorConfig: (others === null || others === void 0 ? void 0 : others.customSelectorConfig) || {},
36174
36481
  disabled: disabled,
36175
- value: _currentValue11,
36482
+ value: _currentValue13,
36176
36483
  onChange: function onChange(value, sourceList) {
36177
36484
  if (dataInputBusinessType === 12) {
36178
36485
  var _value$map3, _sourceList$filter3;
@@ -36492,9 +36799,9 @@ var App$1 = function App(_ref) {
36492
36799
  UpdateState(res);
36493
36800
  };
36494
36801
  var _useState9 = React$1.useState(false),
36495
- _useState0 = _slicedToArray(_useState9, 2),
36496
- isModalVisible = _useState0[0],
36497
- setIsModalVisible = _useState0[1];
36802
+ _useState10 = _slicedToArray(_useState9, 2),
36803
+ isModalVisible = _useState10[0],
36804
+ setIsModalVisible = _useState10[1];
36498
36805
  var showModal = function showModal() {
36499
36806
  setIsModalVisible(true);
36500
36807
  };
@@ -36975,26 +37282,27 @@ function RenderCompItem(props) {
36975
37282
  dictData = _useState2[0],
36976
37283
  setDictData = _useState2[1];
36977
37284
  var getDictData = /*#__PURE__*/function () {
36978
- var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
37285
+ var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
36979
37286
  var _data$map;
36980
37287
  var data;
36981
- return _regenerator().w(function (_context) {
36982
- while (1) switch (_context.n) {
37288
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
37289
+ while (1) switch (_context.prev = _context.next) {
36983
37290
  case 0:
36984
- _context.n = 1;
37291
+ _context.next = 2;
36985
37292
  return bssula.request({
36986
37293
  url: "/basic/bscDictItem/allItemList?qp-code-eq=".concat(ites.dictionaryCode)
36987
37294
  });
36988
- case 1:
36989
- data = _context.v;
37295
+ case 2:
37296
+ data = _context.sent;
36990
37297
  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) {
36991
37298
  return {
36992
37299
  text: item.dictItemName,
36993
37300
  value: item.dictItemCode
36994
37301
  };
36995
37302
  }));
36996
- case 2:
36997
- return _context.a(2);
37303
+ case 4:
37304
+ case "end":
37305
+ return _context.stop();
36998
37306
  }
36999
37307
  }, _callee);
37000
37308
  }));
@@ -37235,11 +37543,11 @@ function RenderCompItem(props) {
37235
37543
  needNameAndCode: true,
37236
37544
  notChangeOnSelect: true,
37237
37545
  initRequestSource: function () {
37238
- var _initRequestSource = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
37239
- return _regenerator().w(function (_context2) {
37240
- while (1) switch (_context2.n) {
37546
+ var _initRequestSource = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
37547
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
37548
+ while (1) switch (_context2.prev = _context2.next) {
37241
37549
  case 0:
37242
- _context2.n = 1;
37550
+ _context2.next = 2;
37243
37551
  return bssula.request({
37244
37552
  url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
37245
37553
  method: 'get',
@@ -37257,8 +37565,11 @@ function RenderCompItem(props) {
37257
37565
  return handleData;
37258
37566
  }
37259
37567
  });
37260
- case 1:
37261
- return _context2.a(2, _context2.v);
37568
+ case 2:
37569
+ return _context2.abrupt("return", _context2.sent);
37570
+ case 3:
37571
+ case "end":
37572
+ return _context2.stop();
37262
37573
  }
37263
37574
  }, _callee2);
37264
37575
  }));
@@ -39308,13 +39619,13 @@ var BaseRule = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
39308
39619
  ruleTypeData = _useState8[0],
39309
39620
  setRuleTypeData = _useState8[1];
39310
39621
  var _useState9 = React$1.useState([]),
39311
- _useState0 = _slicedToArray(_useState9, 2),
39312
- ruleReturnConfig = _useState0[0],
39313
- setRuleReturnConfig = _useState0[1];
39314
- var _useState1 = React$1.useState({}),
39315
- _useState10 = _slicedToArray(_useState1, 2),
39316
- templateData = _useState10[0],
39317
- setTemplateData = _useState10[1];
39622
+ _useState10 = _slicedToArray(_useState9, 2),
39623
+ ruleReturnConfig = _useState10[0],
39624
+ setRuleReturnConfig = _useState10[1];
39625
+ var _useState11 = React$1.useState({}),
39626
+ _useState12 = _slicedToArray(_useState11, 2),
39627
+ templateData = _useState12[0],
39628
+ setTemplateData = _useState12[1];
39318
39629
  var loadRuleReturnConfig = function loadRuleReturnConfig(currentSceneId) {
39319
39630
  bssula.request({
39320
39631
  url: "/basic/ruleTemplate/".concat(currentSceneId),
@@ -39650,25 +39961,25 @@ var index$7 = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
39650
39961
  regularDataList = _useState8[0],
39651
39962
  setRegularDataList = _useState8[1];
39652
39963
  var _useState9 = React$1.useState([]),
39653
- _useState0 = _slicedToArray(_useState9, 2),
39654
- baseRuleDetailList = _useState0[0],
39655
- setBaseRuleDetailList = _useState0[1]; // 规则实例详情集合
39656
- var _useState1 = React$1.useState([]),
39657
- _useState10 = _slicedToArray(_useState1, 2),
39658
- systemVariableList = _useState10[0],
39659
- setSystemVariableList = _useState10[1];
39660
- var _useState11 = React$1.useState(false),
39964
+ _useState10 = _slicedToArray(_useState9, 2),
39965
+ baseRuleDetailList = _useState10[0],
39966
+ setBaseRuleDetailList = _useState10[1]; // 规则实例详情集合
39967
+ var _useState11 = React$1.useState([]),
39661
39968
  _useState12 = _slicedToArray(_useState11, 2),
39662
- isGetDefRuleDataRes = _useState12[0],
39663
- setIsGetDefRuleDataRes = _useState12[1]; // 为了在回显的时候辨别异步查询是否已完成,防止提前认为为新增设置了模板数据,导致再渲染编辑时候 输入框defaultValue不再渲染问题
39969
+ systemVariableList = _useState12[0],
39970
+ setSystemVariableList = _useState12[1];
39664
39971
  var _useState13 = React$1.useState(false),
39665
39972
  _useState14 = _slicedToArray(_useState13, 2),
39666
- isGetRuleDataRes = _useState14[0],
39667
- setIsGetRuleDataRes = _useState14[1];
39973
+ isGetDefRuleDataRes = _useState14[0],
39974
+ setIsGetDefRuleDataRes = _useState14[1]; // 为了在回显的时候辨别异步查询是否已完成,防止提前认为为新增设置了模板数据,导致再渲染编辑时候 输入框defaultValue不再渲染问题
39668
39975
  var _useState15 = React$1.useState(false),
39669
39976
  _useState16 = _slicedToArray(_useState15, 2),
39670
- groupOtherPriorityList = _useState16[0],
39671
- setGroupOtherPriorityList = _useState16[1];
39977
+ isGetRuleDataRes = _useState16[0],
39978
+ setIsGetRuleDataRes = _useState16[1];
39979
+ var _useState17 = React$1.useState(false),
39980
+ _useState18 = _slicedToArray(_useState17, 2),
39981
+ groupOtherPriorityList = _useState18[0],
39982
+ setGroupOtherPriorityList = _useState18[1];
39672
39983
  var baseRuleRef = React$1.useRef();
39673
39984
  var currentSceneName = (datail === null || datail === void 0 ? void 0 : datail.name) || '';
39674
39985
  // 查询规则组下所有规则实例
@@ -39992,85 +40303,6 @@ var ParagraphCopier = function ParagraphCopier(props) {
39992
40303
  }, children));
39993
40304
  };
39994
40305
 
39995
- //操作日志
39996
- var SystemLog = function SystemLog(_ref) {
39997
- var modeType = _ref.modeType,
39998
- code = _ref.code,
39999
- containerName = _ref.containerName,
40000
- _ref$renderLogRef = _ref.renderLogRef,
40001
- renderLogRef = _ref$renderLogRef === void 0 ? {} : _ref$renderLogRef,
40002
- _ref$extraParams = _ref.extraParams,
40003
- extraParams = _ref$extraParams === void 0 ? {} : _ref$extraParams;
40004
- return _objectSpread2(_objectSpread2({}, formContainerAndItemLayout('table', '操作日志', containerName)), {}, {
40005
- initialVisible: modeType != 'create',
40006
- fields: [{
40007
- name: 'table',
40008
- label: false,
40009
- itemLayout: {
40010
- span: 24,
40011
- labelCol: {
40012
- span: 0
40013
- },
40014
- wrapperCol: {
40015
- span: 24
40016
- }
40017
- },
40018
- field: function field(ctx) {
40019
- return code && /*#__PURE__*/React__default['default'].createElement(bssula.Table, {
40020
- remoteDataSource: {
40021
- url: "/oms-ops/logInfo?qp-businessCode-eq=".concat(code),
40022
- convertParams: function convertParams(_ref2) {
40023
- var params = _ref2.params;
40024
- return _objectSpread2({
40025
- pageSize: params.pageSize,
40026
- currentPage: params.current
40027
- }, extraParams);
40028
- },
40029
- converter: function converter(_ref3) {
40030
- var data = _ref3.data;
40031
- return _objectSpread2({}, handleConvertResponse(data.list, data.total || data.totalCount));
40032
- }
40033
- },
40034
- columns: [{
40035
- title: '操作人',
40036
- dataIndex: 'handlerName'
40037
- }, {
40038
- title: '操作名称',
40039
- dataIndex: 'handlerType'
40040
- }, {
40041
- title: '操作时间',
40042
- dataIndex: 'handlerTime',
40043
- render: function render(_ref4) {
40044
- var text = _ref4.text;
40045
- return handleCommonTimeRender$1(text);
40046
- }
40047
- }, {
40048
- title: '操作内容',
40049
- dataIndex: 'logcontent'
40050
- }],
40051
- style: {
40052
- width: '100%',
40053
- marginTop: '-16px',
40054
- padding: '0px'
40055
- },
40056
- rowKey: "id",
40057
- scroll: {
40058
- x: 'max-content'
40059
- },
40060
- pagination: {
40061
- showTotal: function showTotal(total) {
40062
- return "\u5171 ".concat(total, " \u6761");
40063
- },
40064
- showQuickJumper: true,
40065
- hideOnSinglePage: true
40066
- },
40067
- ref: renderLogRef
40068
- });
40069
- }
40070
- }]
40071
- });
40072
- };
40073
-
40074
40306
  exports.AddSelect = AddSelect;
40075
40307
  exports.AddSkcSelect = AddSkcSelect;
40076
40308
  exports.AddSkuSelect = AddSkuSelect;
@@ -40109,7 +40341,6 @@ exports.SearchSelect = SearchSelect;
40109
40341
  exports.Section = Section;
40110
40342
  exports.StateFlow = index$2;
40111
40343
  exports.SulaColumnSettingTable = ColumnSettingSulaTable;
40112
- exports.SystemLog = SystemLog;
40113
40344
  exports.TableColumnSetting = TableColumnSetting;
40114
40345
  exports.TreeSearchSelect = TreeSearchSelect;
40115
40346
  exports.authFunc = authFunc;
@@ -40119,7 +40350,6 @@ exports.coverToParallel = _coverToParallel;
40119
40350
  exports.createUniqID = createUniqID;
40120
40351
  exports.downloadExcel = downloadExcel;
40121
40352
  exports.ergodicMenuRoutes = ergodicMenuRoutes;
40122
- exports.formContainerAndItemLayout = formContainerAndItemLayout;
40123
40353
  exports.formatter = _formatter;
40124
40354
  exports.getAccountID = getAccountID;
40125
40355
  exports.getAccountId = getAccountId;