@bit-sun/business-component 4.2.0-alpha.1 → 4.2.0-alpha.11

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 (90) hide show
  1. package/.umirc.ts +9 -9
  2. package/dist/components/Business/AddSelectBusiness/index.d.ts +3 -4
  3. package/dist/components/Business/BsLayouts/Components/AllFunc/drawContent.d.ts +1 -2
  4. package/dist/components/Business/BsLayouts/Components/ChooseStore/index.d.ts +1 -2
  5. package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.d.ts +1 -1
  6. package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/leftTree.d.ts +1 -1
  7. package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/rightTree.d.ts +2 -2
  8. package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/DrawContent.d.ts +1 -2
  9. package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/customMenuHeader.d.ts +1 -2
  10. package/dist/components/Business/BsLayouts/Components/CustomerMenu/index.d.ts +1 -1
  11. package/dist/components/Business/BsLayouts/Components/GlobalHeader/index.d.ts +1 -2
  12. package/dist/components/Business/BsLayouts/Components/RightContent/LoginModal.d.ts +1 -2
  13. package/dist/components/Business/BsLayouts/index.d.ts +1 -1
  14. package/dist/components/Business/BsSulaQueryTable/SearchItemSetting.d.ts +5 -5
  15. package/dist/components/Business/BsSulaQueryTable/index.d.ts +1 -2
  16. package/dist/components/Business/BsSulaQueryTable/setting.d.ts +6 -6
  17. package/dist/components/Business/BsSulaQueryTable/utils.d.ts +14 -15
  18. package/dist/components/Business/CommodityEntry/index.d.ts +1 -2
  19. package/dist/components/Business/CommonAlert/index.d.ts +1 -2
  20. package/dist/components/Business/CommonGuideWrapper/index.d.ts +3 -3
  21. package/dist/components/Business/DetailPageWrapper/index.d.ts +12 -12
  22. package/dist/components/Business/HomePageWrapper/index.d.ts +1 -2
  23. package/dist/components/Business/ItemPropertySelector/index.d.ts +1 -2
  24. package/dist/components/Business/JsonQueryTable/components/FieldsModifyModal.d.ts +1 -2
  25. package/dist/components/Business/JsonQueryTable/components/FieldsSettingsTable.d.ts +1 -2
  26. package/dist/components/Business/JsonQueryTable/components/Formula.d.ts +1 -2
  27. package/dist/components/Business/JsonQueryTable/components/MaintainOptions.d.ts +1 -2
  28. package/dist/components/Business/JsonQueryTable/drawer/index.d.ts +1 -2
  29. package/dist/components/Business/PropertyModal/index.d.ts +1 -2
  30. package/dist/components/Business/PropertyModal/propertyGroup.d.ts +1 -1
  31. package/dist/components/Business/SearchSelect/index.d.ts +1 -1
  32. package/dist/components/Business/StateFlow/index.d.ts +1 -2
  33. package/dist/components/Business/SystemLog/index.d.ts +78 -0
  34. package/dist/components/Business/TreeSearchSelect/index.d.ts +1 -1
  35. package/dist/components/Business/columnSettingTable/columnSetting.d.ts +6 -6
  36. package/dist/components/Business/columnSettingTable/components/TableSumComponent.d.ts +1 -2
  37. package/dist/components/Business/columnSettingTable/index.d.ts +3 -3
  38. package/dist/components/Business/columnSettingTable/sulaSettingTable.d.ts +3 -3
  39. package/dist/components/Business/columnSettingTable/utils.d.ts +1 -2
  40. package/dist/components/Business/moreTreeTable/FixedScrollBar.d.ts +1 -1
  41. package/dist/components/Common/ParagraphCopier/index.d.ts +1 -1
  42. package/dist/components/Common/Section/index.d.ts +1 -1
  43. package/dist/components/Functional/AddSelect/index.d.ts +1 -2
  44. package/dist/components/Functional/AuthButton/index.d.ts +1 -2
  45. package/dist/components/Functional/DataImport/index.d.ts +3 -3
  46. package/dist/components/Functional/DataValidation/index.d.ts +5 -5
  47. package/dist/components/Functional/ExportFunctions/ExportIcon/index.d.ts +1 -2
  48. package/dist/components/Functional/QueryMutipleInput/index.d.ts +1 -2
  49. package/dist/components/Functional/QueryMutipleSelect/index.d.ts +1 -2
  50. package/dist/components/Functional/SearchSelect/index.d.ts +1 -1
  51. package/dist/components/Functional/SearchSelect/utils.d.ts +2 -3
  52. package/dist/components/Functional/TreeSearchSelect/index.d.ts +1 -2
  53. package/dist/components/Solution/RuleComponent/CustomPlugin/CustomSelector/CustomSelectorModal.d.ts +1 -1
  54. package/dist/components/Solution/RuleComponent/CustomPlugin/CustomSelector/index.d.ts +1 -2
  55. package/dist/components/Solution/RuleComponent/Formula.d.ts +1 -2
  56. package/dist/components/Solution/RuleComponent/InnerSelect.d.ts +1 -2
  57. package/dist/components/Solution/RuleComponent/RenderCompItem.d.ts +1 -2
  58. package/dist/components/Solution/RuleSetter/RuleInstance.d.ts +1 -2
  59. package/dist/components/Solution/RuleSetter/baseRule.d.ts +1 -1
  60. package/dist/components/Solution/RuleSetter/index.d.ts +1 -1
  61. package/dist/index.d.ts +3 -0
  62. package/dist/index.esm.js +1843 -1176
  63. package/dist/index.js +1845 -1174
  64. package/dist/plugin/TableColumnSetting/index.d.ts +5 -5
  65. package/dist/utils/TableUtils.d.ts +18 -19
  66. package/dist/utils/utils.d.ts +41 -0
  67. package/docs/flow-control-readme.md +283 -0
  68. package/package.json +1 -1
  69. package/src/components/Business/BsSulaQueryTable/SearchItemSetting.tsx +0 -1
  70. package/src/components/Business/BsSulaQueryTable/index.md +57 -4
  71. package/src/components/Business/BsSulaQueryTable/index.tsx +164 -7
  72. package/src/components/Business/BsSulaQueryTable/setting.tsx +6 -0
  73. package/src/components/Business/DetailPageWrapper/index.tsx +81 -1
  74. package/src/components/Business/DetailPageWrapper/readme.md +89 -0
  75. package/src/components/Business/SearchSelect/BusinessUtils.tsx +364 -42
  76. package/src/components/Business/SystemLog/index.md +37 -0
  77. package/src/components/Business/SystemLog/index.tsx +87 -0
  78. package/src/components/Business/columnSettingTable/index.tsx +7 -6
  79. package/src/components/Business/columnSettingTable/sulaSettingTable.tsx +23 -22
  80. package/src/components/Functional/AddSelect/index.tsx +92 -0
  81. package/src/components/Functional/DataValidation/index.tsx +22 -3
  82. package/src/components/Functional/QueryMutipleInput/index.tsx +1 -1
  83. package/src/components/Functional/SearchSelect/index.tsx +6 -3
  84. package/src/components/Functional/SearchSelect/utils.tsx +4 -1
  85. package/src/components/Solution/RuleComponent/RenderCompItem.tsx +9 -1
  86. package/src/components/Solution/RuleComponent/RenderCompItem_README.md +189 -0
  87. package/src/components/Solution/RuleComponent/index.js +1 -0
  88. package/src/components/Solution/RuleComponent/ruleFiled.js +25 -1
  89. package/src/index.ts +7 -0
  90. package/src/utils/utils.ts +41 -1
package/dist/index.js CHANGED
@@ -230,306 +230,113 @@ function _possibleConstructorReturn(t, e) {
230
230
  if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
231
231
  return _assertThisInitialized(t);
232
232
  }
233
- function _regeneratorRuntime() {
234
- _regeneratorRuntime = function () {
235
- return e;
236
- };
237
- var t,
238
- e = {},
239
- r = Object.prototype,
240
- n = r.hasOwnProperty,
241
- o = Object.defineProperty || function (t, e, r) {
242
- t[e] = r.value;
243
- },
244
- i = "function" == typeof Symbol ? Symbol : {},
245
- a = i.iterator || "@@iterator",
246
- c = i.asyncIterator || "@@asyncIterator",
247
- u = i.toStringTag || "@@toStringTag";
248
- function define(t, e, r) {
249
- return Object.defineProperty(t, e, {
250
- value: r,
251
- enumerable: !0,
252
- configurable: !0,
253
- writable: !0
254
- }), t[e];
255
- }
256
- try {
257
- define({}, "");
258
- } catch (t) {
259
- define = function (t, e, r) {
260
- return t[e] = r;
261
- };
262
- }
263
- function wrap(t, e, r, n) {
264
- var i = e && e.prototype instanceof Generator ? e : Generator,
265
- a = Object.create(i.prototype),
266
- c = new Context(n || []);
267
- return o(a, "_invoke", {
268
- value: makeInvokeMethod(t, r, c)
269
- }), a;
270
- }
271
- function tryCatch(t, e, r) {
272
- try {
273
- return {
274
- type: "normal",
275
- arg: t.call(e, r)
276
- };
277
- } catch (t) {
278
- return {
279
- type: "throw",
280
- arg: t
233
+ function _regenerator() {
234
+ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
235
+ var e,
236
+ t,
237
+ r = "function" == typeof Symbol ? Symbol : {},
238
+ n = r.iterator || "@@iterator",
239
+ o = r.toStringTag || "@@toStringTag";
240
+ function i(r, n, o, i) {
241
+ var c = n && n.prototype instanceof Generator ? n : Generator,
242
+ u = Object.create(c.prototype);
243
+ return _regeneratorDefine(u, "_invoke", function (r, n, o) {
244
+ var i,
245
+ c,
246
+ u,
247
+ f = 0,
248
+ p = o || [],
249
+ y = !1,
250
+ G = {
251
+ p: 0,
252
+ n: 0,
253
+ v: e,
254
+ a: d,
255
+ f: d.bind(e, 4),
256
+ d: function (t, r) {
257
+ return i = t, c = 0, u = e, G.n = r, a;
258
+ }
259
+ };
260
+ function d(r, n) {
261
+ for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) {
262
+ var o,
263
+ i = p[t],
264
+ d = G.p,
265
+ l = i[2];
266
+ r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0));
267
+ }
268
+ if (o || r > 1) return a;
269
+ throw y = !0, n;
270
+ }
271
+ return function (o, p, l) {
272
+ if (f > 1) throw TypeError("Generator is already running");
273
+ for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) {
274
+ i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u);
275
+ try {
276
+ if (f = 2, i) {
277
+ if (c || (o = "next"), t = i[o]) {
278
+ if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object");
279
+ if (!t.done) return t;
280
+ u = t.value, c < 2 && (c = 0);
281
+ } else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1);
282
+ i = e;
283
+ } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break;
284
+ } catch (t) {
285
+ i = e, c = 1, u = t;
286
+ } finally {
287
+ f = 1;
288
+ }
289
+ }
290
+ return {
291
+ value: t,
292
+ done: y
293
+ };
281
294
  };
282
- }
295
+ }(r, o, i), !0), u;
283
296
  }
284
- e.wrap = wrap;
285
- var h = "suspendedStart",
286
- l = "suspendedYield",
287
- f = "executing",
288
- s = "completed",
289
- y = {};
297
+ var a = {};
290
298
  function Generator() {}
291
299
  function GeneratorFunction() {}
292
300
  function GeneratorFunctionPrototype() {}
293
- var p = {};
294
- define(p, a, function () {
301
+ t = Object.getPrototypeOf;
302
+ var c = [][n] ? t(t([][n]())) : (_regeneratorDefine(t = {}, n, function () {
303
+ return this;
304
+ }), t),
305
+ u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c);
306
+ function f(e) {
307
+ return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e;
308
+ }
309
+ return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine(u), _regeneratorDefine(u, o, "Generator"), _regeneratorDefine(u, n, function () {
295
310
  return this;
296
- });
297
- var d = Object.getPrototypeOf,
298
- v = d && d(d(values([])));
299
- v && v !== r && n.call(v, a) && (p = v);
300
- var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
301
- function defineIteratorMethods(t) {
302
- ["next", "throw", "return"].forEach(function (e) {
303
- define(t, e, function (t) {
304
- return this._invoke(e, t);
305
- });
306
- });
307
- }
308
- function AsyncIterator(t, e) {
309
- function invoke(r, o, i, a) {
310
- var c = tryCatch(t[r], t, o);
311
- if ("throw" !== c.type) {
312
- var u = c.arg,
313
- h = u.value;
314
- return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
315
- invoke("next", t, i, a);
316
- }, function (t) {
317
- invoke("throw", t, i, a);
318
- }) : e.resolve(h).then(function (t) {
319
- u.value = t, i(u);
320
- }, function (t) {
321
- return invoke("throw", t, i, a);
322
- });
323
- }
324
- a(c.arg);
325
- }
326
- var r;
327
- o(this, "_invoke", {
328
- value: function (t, n) {
329
- function callInvokeWithMethodAndArg() {
330
- return new e(function (e, r) {
331
- invoke(t, n, e, r);
332
- });
333
- }
334
- return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
335
- }
336
- });
337
- }
338
- function makeInvokeMethod(e, r, n) {
339
- var o = h;
340
- return function (i, a) {
341
- if (o === f) throw Error("Generator is already running");
342
- if (o === s) {
343
- if ("throw" === i) throw a;
344
- return {
345
- value: t,
346
- done: !0
347
- };
348
- }
349
- for (n.method = i, n.arg = a;;) {
350
- var c = n.delegate;
351
- if (c) {
352
- var u = maybeInvokeDelegate(c, n);
353
- if (u) {
354
- if (u === y) continue;
355
- return u;
356
- }
357
- }
358
- if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
359
- if (o === h) throw o = s, n.arg;
360
- n.dispatchException(n.arg);
361
- } else "return" === n.method && n.abrupt("return", n.arg);
362
- o = f;
363
- var p = tryCatch(e, r, n);
364
- if ("normal" === p.type) {
365
- if (o = n.done ? s : l, p.arg === y) continue;
366
- return {
367
- value: p.arg,
368
- done: n.done
369
- };
370
- }
371
- "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
372
- }
373
- };
374
- }
375
- function maybeInvokeDelegate(e, r) {
376
- var n = r.method,
377
- o = e.iterator[n];
378
- if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
379
- var i = tryCatch(o, e.iterator, r.arg);
380
- if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
381
- var a = i.arg;
382
- return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
383
- }
384
- function pushTryEntry(t) {
385
- var e = {
386
- tryLoc: t[0]
387
- };
388
- 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
389
- }
390
- function resetTryEntry(t) {
391
- var e = t.completion || {};
392
- e.type = "normal", delete e.arg, t.completion = e;
393
- }
394
- function Context(t) {
395
- this.tryEntries = [{
396
- tryLoc: "root"
397
- }], t.forEach(pushTryEntry, this), this.reset(!0);
398
- }
399
- function values(e) {
400
- if (e || "" === e) {
401
- var r = e[a];
402
- if (r) return r.call(e);
403
- if ("function" == typeof e.next) return e;
404
- if (!isNaN(e.length)) {
405
- var o = -1,
406
- i = function next() {
407
- for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
408
- return next.value = t, next.done = !0, next;
409
- };
410
- return i.next = i;
411
- }
412
- }
413
- throw new TypeError(typeof e + " is not iterable");
414
- }
415
- return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
416
- value: GeneratorFunctionPrototype,
417
- configurable: !0
418
- }), o(GeneratorFunctionPrototype, "constructor", {
419
- value: GeneratorFunction,
420
- configurable: !0
421
- }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
422
- var e = "function" == typeof t && t.constructor;
423
- return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
424
- }, e.mark = function (t) {
425
- return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
426
- }, e.awrap = function (t) {
311
+ }), _regeneratorDefine(u, "toString", function () {
312
+ return "[object Generator]";
313
+ }), (_regenerator = function () {
427
314
  return {
428
- __await: t
315
+ w: i,
316
+ m: f
429
317
  };
430
- }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
431
- return this;
432
- }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
433
- void 0 === i && (i = Promise);
434
- var a = new AsyncIterator(wrap(t, r, n, o), i);
435
- return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
436
- return t.done ? t.value : a.next();
437
- });
438
- }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
439
- return this;
440
- }), define(g, "toString", function () {
441
- return "[object Generator]";
442
- }), e.keys = function (t) {
443
- var e = Object(t),
444
- r = [];
445
- for (var n in e) r.push(n);
446
- return r.reverse(), function next() {
447
- for (; r.length;) {
448
- var t = r.pop();
449
- if (t in e) return next.value = t, next.done = !1, next;
450
- }
451
- return next.done = !0, next;
452
- };
453
- }, e.values = values, Context.prototype = {
454
- constructor: Context,
455
- reset: function (e) {
456
- if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
457
- },
458
- stop: function () {
459
- this.done = !0;
460
- var t = this.tryEntries[0].completion;
461
- if ("throw" === t.type) throw t.arg;
462
- return this.rval;
463
- },
464
- dispatchException: function (e) {
465
- if (this.done) throw e;
466
- var r = this;
467
- function handle(n, o) {
468
- return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
469
- }
470
- for (var o = this.tryEntries.length - 1; o >= 0; --o) {
471
- var i = this.tryEntries[o],
472
- a = i.completion;
473
- if ("root" === i.tryLoc) return handle("end");
474
- if (i.tryLoc <= this.prev) {
475
- var c = n.call(i, "catchLoc"),
476
- u = n.call(i, "finallyLoc");
477
- if (c && u) {
478
- if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
479
- if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
480
- } else if (c) {
481
- if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
482
- } else {
483
- if (!u) throw Error("try statement without catch or finally");
484
- if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
485
- }
486
- }
487
- }
488
- },
489
- abrupt: function (t, e) {
490
- for (var r = this.tryEntries.length - 1; r >= 0; --r) {
491
- var o = this.tryEntries[r];
492
- if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
493
- var i = o;
494
- break;
495
- }
496
- }
497
- i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
498
- var a = i ? i.completion : {};
499
- return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
500
- },
501
- complete: function (t, e) {
502
- if ("throw" === t.type) throw t.arg;
503
- return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
504
- },
505
- finish: function (t) {
506
- for (var e = this.tryEntries.length - 1; e >= 0; --e) {
507
- var r = this.tryEntries[e];
508
- if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
509
- }
510
- },
511
- catch: function (t) {
512
- for (var e = this.tryEntries.length - 1; e >= 0; --e) {
513
- var r = this.tryEntries[e];
514
- if (r.tryLoc === t) {
515
- var n = r.completion;
516
- if ("throw" === n.type) {
517
- var o = n.arg;
518
- resetTryEntry(r);
519
- }
520
- return o;
521
- }
522
- }
523
- throw Error("illegal catch attempt");
524
- },
525
- delegateYield: function (e, r, n) {
526
- return this.delegate = {
527
- iterator: values(e),
528
- resultName: r,
529
- nextLoc: n
530
- }, "next" === this.method && (this.arg = t), y;
318
+ })();
319
+ }
320
+ function _regeneratorDefine(e, r, n, t) {
321
+ var i = Object.defineProperty;
322
+ try {
323
+ i({}, "", {});
324
+ } catch (e) {
325
+ i = 0;
326
+ }
327
+ _regeneratorDefine = function (e, r, n, t) {
328
+ function o(r, n) {
329
+ _regeneratorDefine(e, r, function (e) {
330
+ return this._invoke(r, n, e);
331
+ });
531
332
  }
532
- }, e;
333
+ r ? i ? i(e, r, {
334
+ value: n,
335
+ enumerable: !t,
336
+ configurable: !t,
337
+ writable: !t
338
+ }) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2));
339
+ }, _regeneratorDefine(e, r, n, t);
533
340
  }
534
341
  function _setPrototypeOf(t, e) {
535
342
  return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
@@ -1477,6 +1284,45 @@ var handleConvertResponse = function handleConvertResponse(items, total) {
1477
1284
  var noEmptyArray = function noEmptyArray(targetObj) {
1478
1285
  return Array.isArray(targetObj) && targetObj.length !== 0;
1479
1286
  };
1287
+ var formContainerAndItemLayout = function formContainerAndItemLayout(type, title, name) {
1288
+ return type === 'form' ? {
1289
+ container: {
1290
+ type: 'card',
1291
+ props: {
1292
+ title: title,
1293
+ id: Math.random(),
1294
+ level: 1,
1295
+ name: name
1296
+ }
1297
+ },
1298
+ itemLayout: {
1299
+ span: 8,
1300
+ labelCol: {
1301
+ span: 8
1302
+ },
1303
+ wrapperCol: {
1304
+ span: 18
1305
+ }
1306
+ }
1307
+ } : {
1308
+ container: {
1309
+ type: 'card',
1310
+ props: {
1311
+ title: title,
1312
+ id: Math.random(),
1313
+ level: 1,
1314
+ bordered: null,
1315
+ isWhiteCard: true,
1316
+ name: name
1317
+ }
1318
+ },
1319
+ itemLayout: {
1320
+ wrapperCol: {
1321
+ span: 0
1322
+ }
1323
+ }
1324
+ };
1325
+ };
1480
1326
 
1481
1327
  // 判断某个按钮/菜单 是否有权限,返回布尔值
1482
1328
  var authFunc = function authFunc(code) {
@@ -1563,22 +1409,22 @@ var parseToServe = function parseToServe(outdata, revertChart) {
1563
1409
  // sheepMap是表头字段中英文映射
1564
1410
  // sheetCount:表的数量,默认一张
1565
1411
  var resolveFile = /*#__PURE__*/function () {
1566
- var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(file) {
1412
+ var _ref3 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(file) {
1567
1413
  var config,
1568
1414
  data,
1569
1415
  _args = arguments;
1570
- return _regeneratorRuntime().wrap(function _callee$(_context) {
1571
- while (1) switch (_context.prev = _context.next) {
1416
+ return _regenerator().w(function (_context) {
1417
+ while (1) switch (_context.n) {
1572
1418
  case 0:
1573
1419
  config = _args.length > 1 && _args[1] !== undefined ? _args[1] : {
1574
1420
  sheetMap: [],
1575
1421
  sheetCount: 1
1576
1422
  };
1577
- _context.next = 3;
1423
+ _context.n = 1;
1578
1424
  return analyseExcelToByte(file);
1579
- case 3:
1580
- data = _context.sent;
1581
- return _context.abrupt("return", new Promise(function (resolve, reject) {
1425
+ case 1:
1426
+ data = _context.v;
1427
+ return _context.a(2, new Promise(function (resolve, reject) {
1582
1428
  var workbook = XLSX.read(data, {
1583
1429
  type: 'binary'
1584
1430
  });
@@ -1590,9 +1436,6 @@ var resolveFile = /*#__PURE__*/function () {
1590
1436
  var outdata = parseToServe(sheetMapJsonList, config.sheetMap);
1591
1437
  resolve(outdata);
1592
1438
  }));
1593
- case 5:
1594
- case "end":
1595
- return _context.stop();
1596
1439
  }
1597
1440
  }, _callee);
1598
1441
  }));
@@ -1602,41 +1445,40 @@ var resolveFile = /*#__PURE__*/function () {
1602
1445
  }();
1603
1446
  //读取文件
1604
1447
  var readerXlsxToList = /*#__PURE__*/function () {
1605
- var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(file, fileList, uploadRef, done, otherInfo) {
1448
+ var _ref4 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(file, fileList, uploadRef, done, otherInfo) {
1606
1449
  var _ref5, callback, sheetMap, nowFile, data2, data;
1607
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
1608
- while (1) switch (_context2.prev = _context2.next) {
1450
+ return _regenerator().w(function (_context2) {
1451
+ while (1) switch (_context2.n) {
1609
1452
  case 0:
1610
1453
  _ref5 = otherInfo || {}, callback = _ref5.callback, sheetMap = _ref5.sheetMap;
1611
1454
  if (!(Array.isArray(fileList) && fileList.length > 0)) {
1612
- _context2.next = 15;
1455
+ _context2.n = 3;
1613
1456
  break;
1614
1457
  }
1615
1458
  nowFile = fileList[fileList.length - 1]; // 阻止了默认上传file没有originFileObj了 得从fileList中去取
1616
- _context2.next = 5;
1459
+ _context2.n = 1;
1617
1460
  return resolveFile(nowFile.originFileObj, {
1618
1461
  sheetMap: fieldMappingReverse(sheetMap),
1619
1462
  sheetCount: 1
1620
1463
  });
1621
- case 5:
1622
- data2 = _context2.sent;
1464
+ case 1:
1465
+ data2 = _context2.v;
1623
1466
  data = data2[0];
1624
1467
  if (data.length) {
1625
- _context2.next = 10;
1468
+ _context2.n = 2;
1626
1469
  break;
1627
1470
  }
1628
1471
  antd.message.error("\u8BF7\u5148\u5F55\u5165\u6570\u636E\u518D\u5BFC\u5165");
1629
- return _context2.abrupt("return");
1630
- case 10:
1472
+ return _context2.a(2);
1473
+ case 2:
1631
1474
  if (callback) callback(data);
1632
1475
  !callback && antd.message.success("\u5BFC\u5165\u6210\u529F");
1633
- return _context2.abrupt("return", data);
1634
- case 15:
1476
+ return _context2.a(2, data);
1477
+ case 3:
1635
1478
  antd.message.error("\u8BF7\u9009\u62E9\u6587\u4EF6");
1636
- return _context2.abrupt("return");
1637
- case 17:
1638
- case "end":
1639
- return _context2.stop();
1479
+ return _context2.a(2);
1480
+ case 4:
1481
+ return _context2.a(2);
1640
1482
  }
1641
1483
  }, _callee2);
1642
1484
  }));
@@ -2588,17 +2430,14 @@ var requestUtil = function requestUtil(_ref) {
2588
2430
  return request__default['default'](url, parms).then(handleResponseData);
2589
2431
  };
2590
2432
  var handleResponseData = /*#__PURE__*/function () {
2591
- var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(response) {
2592
- return _regeneratorRuntime().wrap(function _callee$(_context) {
2593
- while (1) switch (_context.prev = _context.next) {
2433
+ var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(response) {
2434
+ return _regenerator().w(function (_context) {
2435
+ while (1) switch (_context.n) {
2594
2436
  case 0:
2595
- return _context.abrupt("return", Promise.resolve({
2437
+ return _context.a(2, Promise.resolve({
2596
2438
  data: response,
2597
2439
  status: response.status
2598
2440
  }));
2599
- case 1:
2600
- case "end":
2601
- return _context.stop();
2602
2441
  }
2603
2442
  }, _callee);
2604
2443
  }));
@@ -2971,88 +2810,108 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
2971
2810
  data: luckysheet.transToCellData(newData)
2972
2811
  });
2973
2812
  };
2974
- _this.resetData = function () {
2813
+ _this.resetData = /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
2975
2814
  var _customerColumnsMappi;
2976
- var _this$props = _this.props,
2977
- validDataUrl = _this$props.validDataUrl,
2978
- validDataParams = _this$props.validDataParams,
2979
- updateData = _this$props.updateData,
2980
- columns = _this$props.columns,
2981
- isBrandAuth = _this$props.isBrandAuth,
2982
- _this$props$isCheckSt = _this$props.isCheckStockNum,
2983
- isCheckStockNum = _this$props$isCheckSt === void 0 ? true : _this$props$isCheckSt,
2984
- customerColumnsMapping = _this$props.customerColumnsMapping;
2985
- var resultData = _this.getData().filter(function (d) {
2986
- return ___default['default'].compact(Object.values(d)).length;
2987
- });
2988
- var resultColumns = (customerColumnsMapping === null || customerColumnsMapping === void 0 ? void 0 : customerColumnsMapping.length) ? customerColumnsMapping === null || customerColumnsMapping === void 0 ? void 0 : (_customerColumnsMappi = customerColumnsMapping.filter(function (c) {
2989
- return !!(c === null || c === void 0 ? void 0 : c.name);
2990
- })) === null || _customerColumnsMappi === void 0 ? void 0 : _customerColumnsMappi.map(function (c) {
2991
- return c.name;
2992
- }) : columns;
2993
- // 处理业务参数
2994
- var otherParams = {};
2995
- if (isBrandAuth) {
2996
- otherParams = {
2997
- brandAuth: 'ctl-withAuth'
2998
- };
2999
- }
3000
- requestUtil.post(validDataUrl, _objectSpread2(_objectSpread2(_objectSpread2({}, otherParams), validDataParams), {}, {
3001
- columns: resultColumns,
3002
- data: resultData,
3003
- checkStockNum: isCheckStockNum
3004
- })).then(function (result) {
3005
- result = result.data;
3006
- if (judgeIsRequestError(result)) {
3007
- antd.message.error(result.msg);
3008
- return;
3009
- }
3010
- var items = _this.state.items;
3011
- var validIndex = items.length;
3012
- var res = result.data;
3013
- var sheetData = luckysheet.getSheetData();
3014
- sheetData.map(function (item, index) {
3015
- if (!res[index]) return item;
3016
- var changeVMIndex = resultColumns === null || resultColumns === void 0 ? void 0 : resultColumns.findIndex(function (i) {
3017
- return i === 'skuCode';
3018
- });
3019
- if ((resultColumns === null || resultColumns === void 0 ? void 0 : resultColumns.find(function (i) {
3020
- return i === 'skuCode';
3021
- })) && item[changeVMIndex].v !== res[index].skuCode) {
3022
- item[changeVMIndex].v = res[index].skuCode;
3023
- item[changeVMIndex].m = res[index].skuCode;
3024
- }
3025
- if (res[index].flag) {
3026
- item[validIndex] = _objectSpread2(_objectSpread2({}, item[validIndex]), {}, {
3027
- v: '通过',
3028
- m: '通过',
3029
- fc: 'green' //字体颜色为 "#990000"
3030
- });
3031
- } else {
3032
- item[validIndex] = _objectSpread2(_objectSpread2({}, item[validIndex]), {}, {
3033
- v: res[index].checkResults,
3034
- m: res[index].checkResults,
3035
- fc: 'red' //字体颜色为 "#990000"
2815
+ var _this$props, validDataUrl, validDataParams, updateData, columns, isBrandAuth, _this$props$isCheckSt, isCheckStockNum, customerColumnsMapping, checkSharedValue, beforeCheckCallback, resultData, resultColumns, otherParams;
2816
+ return _regenerator().w(function (_context) {
2817
+ while (1) switch (_context.n) {
2818
+ case 0:
2819
+ _this$props = _this.props, validDataUrl = _this$props.validDataUrl, validDataParams = _this$props.validDataParams, updateData = _this$props.updateData, columns = _this$props.columns, isBrandAuth = _this$props.isBrandAuth, _this$props$isCheckSt = _this$props.isCheckStockNum, isCheckStockNum = _this$props$isCheckSt === void 0 ? true : _this$props$isCheckSt, customerColumnsMapping = _this$props.customerColumnsMapping, checkSharedValue = _this$props.checkSharedValue, beforeCheckCallback = _this$props.beforeCheckCallback;
2820
+ resultData = _this.getData().filter(function (d) {
2821
+ return ___default['default'].compact(Object.values(d)).length;
3036
2822
  });
3037
- }
3038
- item[validIndex].ct = {
3039
- fa: 'General',
3040
- t: 'g'
3041
- };
3042
- });
3043
- // sheetData.map((item, index) => {
3044
- // luckysheet.setCellValue(index + 1, 4, 345)
3045
- // })
3046
- luckysheet.create(_this.setConfig(luckysheet.transToCellData(sheetData)));
3047
- _this.setState({
3048
- data: luckysheet.transToCellData(sheetData),
3049
- errorListCheck: false,
3050
- resultData: res
3051
- });
3052
- console.log(setExportData);
3053
- setExportData([123123]);
3054
- }).catch(function (err) {});
3055
- };
2823
+ resultColumns = (customerColumnsMapping === null || customerColumnsMapping === void 0 ? void 0 : customerColumnsMapping.length) ? customerColumnsMapping === null || customerColumnsMapping === void 0 ? void 0 : (_customerColumnsMappi = customerColumnsMapping.filter(function (c) {
2824
+ return !!(c === null || c === void 0 ? void 0 : c.name);
2825
+ })) === null || _customerColumnsMappi === void 0 ? void 0 : _customerColumnsMappi.map(function (c) {
2826
+ return c.name;
2827
+ }) : columns; // 处理业务参数
2828
+ otherParams = {};
2829
+ if (isBrandAuth) {
2830
+ otherParams = {
2831
+ brandAuth: 'ctl-withAuth'
2832
+ };
2833
+ }
2834
+ // 处理校验参数,隐藏校验参数(公用的部分)
2835
+ if (checkSharedValue) {
2836
+ resultData = resultData.map(function (d) {
2837
+ return _objectSpread2(_objectSpread2({}, d), checkSharedValue);
2838
+ });
2839
+ }
2840
+ // 调用回调函数
2841
+ if (!beforeCheckCallback) {
2842
+ _context.n = 2;
2843
+ break;
2844
+ }
2845
+ _context.n = 1;
2846
+ return beforeCheckCallback(resultData);
2847
+ case 1:
2848
+ resultData = _context.v;
2849
+ if (resultData) {
2850
+ _context.n = 2;
2851
+ break;
2852
+ }
2853
+ return _context.a(2);
2854
+ case 2:
2855
+ requestUtil.post(validDataUrl, _objectSpread2(_objectSpread2(_objectSpread2({}, otherParams), validDataParams), {}, {
2856
+ columns: resultColumns,
2857
+ data: resultData,
2858
+ checkStockNum: isCheckStockNum
2859
+ })).then(function (result) {
2860
+ result = result.data;
2861
+ if (judgeIsRequestError(result)) {
2862
+ antd.message.error(result.msg);
2863
+ return;
2864
+ }
2865
+ var items = _this.state.items;
2866
+ var validIndex = items.length;
2867
+ var res = result.data;
2868
+ var sheetData = luckysheet.getSheetData();
2869
+ sheetData.map(function (item, index) {
2870
+ if (!res[index]) return item;
2871
+ var changeVMIndex = resultColumns === null || resultColumns === void 0 ? void 0 : resultColumns.findIndex(function (i) {
2872
+ return i === 'skuCode';
2873
+ });
2874
+ if ((resultColumns === null || resultColumns === void 0 ? void 0 : resultColumns.find(function (i) {
2875
+ return i === 'skuCode';
2876
+ })) && item[changeVMIndex].v !== res[index].skuCode) {
2877
+ item[changeVMIndex].v = res[index].skuCode;
2878
+ item[changeVMIndex].m = res[index].skuCode;
2879
+ }
2880
+ if (res[index].flag) {
2881
+ item[validIndex] = _objectSpread2(_objectSpread2({}, item[validIndex]), {}, {
2882
+ v: '通过',
2883
+ m: '通过',
2884
+ fc: 'green' //字体颜色为 "#990000"
2885
+ });
2886
+ } else {
2887
+ item[validIndex] = _objectSpread2(_objectSpread2({}, item[validIndex]), {}, {
2888
+ v: res[index].checkResults,
2889
+ m: res[index].checkResults,
2890
+ fc: 'red' //字体颜色为 "#990000"
2891
+ });
2892
+ }
2893
+ item[validIndex].ct = {
2894
+ fa: 'General',
2895
+ t: 'g'
2896
+ };
2897
+ });
2898
+ // sheetData.map((item, index) => {
2899
+ // luckysheet.setCellValue(index + 1, 4, 345)
2900
+ // })
2901
+ luckysheet.create(_this.setConfig(luckysheet.transToCellData(sheetData)));
2902
+ _this.setState({
2903
+ data: luckysheet.transToCellData(sheetData),
2904
+ errorListCheck: false,
2905
+ resultData: res
2906
+ });
2907
+ console.log(setExportData);
2908
+ setExportData([123123]);
2909
+ }).catch(function (err) {});
2910
+ case 3:
2911
+ return _context.a(2);
2912
+ }
2913
+ }, _callee);
2914
+ }));
3056
2915
  _this.filterData = function (type) {
3057
2916
  var _this$state = _this.state,
3058
2917
  showErrorData = _this$state.showErrorData,
@@ -3209,8 +3068,8 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
3209
3068
  if (!(res === null || res === void 0 ? void 0 : res[index])) return item;
3210
3069
  var rowItem = res[index];
3211
3070
  item === null || item === void 0 ? void 0 : item.forEach(function (element, colIndex) {
3212
- var _ref4;
3213
- var colKey = (_ref4 = Object.keys(rowItem) || []) === null || _ref4 === void 0 ? void 0 : _ref4[colIndex];
3071
+ var _ref5;
3072
+ var colKey = (_ref5 = Object.keys(rowItem) || []) === null || _ref5 === void 0 ? void 0 : _ref5[colIndex];
3214
3073
  if (!(rowItem === null || rowItem === void 0 ? void 0 : rowItem[colKey])) return element;
3215
3074
  element.m = rowItem[colKey];
3216
3075
  element.v = rowItem[colKey];
@@ -3286,10 +3145,10 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
3286
3145
  notExcelImport = _this$props6.notExcelImport,
3287
3146
  excelImportConfig = _this$props6.excelImportConfig,
3288
3147
  getTemplate = _this$props6.getTemplate;
3289
- var _ref5 = excelImportConfig || {},
3290
- size = _ref5.size,
3291
- accept = _ref5.accept,
3292
- suffixRule = _ref5.suffixRule;
3148
+ var _ref6 = excelImportConfig || {},
3149
+ size = _ref6.size,
3150
+ accept = _ref6.accept,
3151
+ suffixRule = _ref6.suffixRule;
3293
3152
  var totalSummary = this.getCount();
3294
3153
  var sheetMap = this.getSheetMap();
3295
3154
  var callBackFun = this.importExcelToLuckySheet;
@@ -3315,9 +3174,9 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
3315
3174
  var _Object$keys;
3316
3175
  if (!(sheetMap && ((_Object$keys = Object.keys(sheetMap)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.length))) return;
3317
3176
  if (info.file.status !== 'uploading') {
3318
- var _ref6 = info || {},
3319
- file = _ref6.file,
3320
- fileList = _ref6.fileList;
3177
+ var _ref7 = info || {},
3178
+ file = _ref7.file,
3179
+ fileList = _ref7.fileList;
3321
3180
  readerXlsxToList(file, fileList, null, null, {
3322
3181
  callback: function callback(excelData) {
3323
3182
  callBackFun(excelData);
@@ -4124,7 +3983,8 @@ var QueryMutipleInput = function QueryMutipleInput(_ref) {
4124
3983
  setIsModalVisible(true);
4125
3984
  //弹窗打开时 默认搜索内容换行显示
4126
3985
  setPopValue(function (data) {
4127
- return data.replace(/,/g, '\n');
3986
+ var _data$replace;
3987
+ return data === null || data === void 0 ? void 0 : (_data$replace = data.replace) === null || _data$replace === void 0 ? void 0 : _data$replace.call(data, /,/g, '\n');
4128
3988
  });
4129
3989
  };
4130
3990
  var handleOk = function handleOk() {
@@ -4616,11 +4476,13 @@ var maxTagPlaceholder = function maxTagPlaceholder(selectedValues, _ref4) {
4616
4476
  };
4617
4477
  // 弹窗数据表头处理
4618
4478
  var handleTableColumns = function handleTableColumns(tableColumns) {
4479
+ var _showTableColumns, _showTableColumns2;
4619
4480
  // 按照默认设置排序 > 没有排序字段的展示所有列表头 > 没有表头列不展示
4620
4481
  var showTableColumns = (tableColumns === null || tableColumns === void 0 ? void 0 : tableColumns.filter(function (s) {
4621
4482
  return typeof s.defaultSort == 'number';
4622
4483
  })) || tableColumns || [];
4623
- return (showTableColumns === null || showTableColumns === void 0 ? void 0 : showTableColumns.sort(function (a, b) {
4484
+ showTableColumns = ((_showTableColumns = showTableColumns) === null || _showTableColumns === void 0 ? void 0 : _showTableColumns.length) ? showTableColumns : tableColumns;
4485
+ return ((_showTableColumns2 = showTableColumns) === null || _showTableColumns2 === void 0 ? void 0 : _showTableColumns2.sort(function (a, b) {
4624
4486
  return a.defaultSort - b.defaultSort;
4625
4487
  })) || [];
4626
4488
  };
@@ -4738,27 +4600,27 @@ var QueryMutipleSearchSelect = function QueryMutipleSearchSelect(_ref) {
4738
4600
  popvalue = _useState8[0],
4739
4601
  setPopValue = _useState8[1];
4740
4602
  var _useState9 = React$1.useState([]),
4741
- _useState10 = _slicedToArray(_useState9, 2),
4742
- source = _useState10[0],
4743
- setSource = _useState10[1];
4603
+ _useState0 = _slicedToArray(_useState9, 2),
4604
+ source = _useState0[0],
4605
+ setSource = _useState0[1];
4744
4606
  var _useDebounceFn = ahooks.useDebounceFn(function () {
4745
4607
  getData();
4746
4608
  }, {
4747
4609
  wait: 1000
4748
4610
  }),
4749
4611
  run = _useDebounceFn.run;
4750
- var _useState11 = React$1.useState(false),
4612
+ var _useState1 = React$1.useState(false),
4613
+ _useState10 = _slicedToArray(_useState1, 2),
4614
+ fetching = _useState10[0],
4615
+ setFetching = _useState10[1];
4616
+ var _useState11 = React$1.useState(''),
4751
4617
  _useState12 = _slicedToArray(_useState11, 2),
4752
- fetching = _useState12[0],
4753
- setFetching = _useState12[1];
4754
- var _useState13 = React$1.useState(''),
4618
+ searchValue = _useState12[0],
4619
+ setSearchValue = _useState12[1];
4620
+ var _useState13 = React$1.useState(resultSourceKey),
4755
4621
  _useState14 = _slicedToArray(_useState13, 2),
4756
- searchValue = _useState14[0],
4757
- setSearchValue = _useState14[1];
4758
- var _useState15 = React$1.useState(resultSourceKey),
4759
- _useState16 = _slicedToArray(_useState15, 2),
4760
- uniqueValue = _useState16[0],
4761
- setUniqueValue = _useState16[1];
4622
+ uniqueValue = _useState14[0],
4623
+ setUniqueValue = _useState14[1];
4762
4624
  React$1.useEffect(function () {
4763
4625
  setPopValue(value);
4764
4626
  onValueChange(value);
@@ -5175,21 +5037,21 @@ var PropertySelector = function PropertySelector(_ref) {
5175
5037
  notCommonProperty = _useState8[0],
5176
5038
  setNotCommonProperty = _useState8[1];
5177
5039
  var _useState9 = React$1.useState(false),
5178
- _useState10 = _slicedToArray(_useState9, 2),
5179
- visible = _useState10[0],
5180
- setVisible = _useState10[1];
5181
- var _useState11 = React$1.useState(false),
5040
+ _useState0 = _slicedToArray(_useState9, 2),
5041
+ visible = _useState0[0],
5042
+ setVisible = _useState0[1];
5043
+ var _useState1 = React$1.useState(false),
5044
+ _useState10 = _slicedToArray(_useState1, 2),
5045
+ showNotCommon = _useState10[0],
5046
+ setShowNotCommon = _useState10[1]; // 是否展示非常用属性
5047
+ var _useState11 = React$1.useState([]),
5182
5048
  _useState12 = _slicedToArray(_useState11, 2),
5183
- showNotCommon = _useState12[0],
5184
- setShowNotCommon = _useState12[1]; // 是否展示非常用属性
5185
- var _useState13 = React$1.useState([]),
5049
+ classifyOptionList = _useState12[0],
5050
+ setClassifyOptionList = _useState12[1];
5051
+ var _useState13 = React$1.useState('1'),
5186
5052
  _useState14 = _slicedToArray(_useState13, 2),
5187
- classifyOptionList = _useState14[0],
5188
- setClassifyOptionList = _useState14[1];
5189
- var _useState15 = React$1.useState('1'),
5190
- _useState16 = _slicedToArray(_useState15, 2),
5191
- listKey = _useState16[0],
5192
- setListKey = _useState16[1];
5053
+ listKey = _useState14[0],
5054
+ setListKey = _useState14[1];
5193
5055
  React$1.useEffect(function () {
5194
5056
  requestUtil({
5195
5057
  url: '/items/class/withProperty?pageSize=500&currentPage=1',
@@ -5453,6 +5315,8 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
5453
5315
  highestPopContainer = _props$highestPopCont === void 0 ? undefined : _props$highestPopCont,
5454
5316
  fieldComponent = props.fieldComponent,
5455
5317
  onSaveCallback = props.onSaveCallback,
5318
+ _props$returnFormat = props.returnFormat,
5319
+ returnFormat = _props$returnFormat === void 0 ? [] : _props$returnFormat,
5456
5320
  selectBusinessType = props.selectBusinessType;
5457
5321
  var _ref = rCTemp || {},
5458
5322
  url = _ref.url,
@@ -5511,14 +5375,16 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
5511
5375
  var currentPage = 1;
5512
5376
  var selectParamsKey = (requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.filter) || 'qp-codeAndName-like';
5513
5377
  var selectParamsInitKey = (requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.filterInit) || selectParamsKey;
5514
- var currentSelectProps = _objectSpread2(_objectSpread2({}, selectProps), {}, {
5378
+ var currentSelectProps = _objectSpread2(_objectSpread2({
5379
+ // 回显字段可自定义
5380
+ optionLabelProp: "label"
5381
+ }, selectProps), {}, {
5515
5382
  // 以下属性不可更改----设计配置项
5516
5383
  showArrow: true,
5517
5384
  showSearch: true,
5518
5385
  filterOption: false,
5519
5386
  allowClear: true,
5520
5387
  listHeight: 160,
5521
- optionLabelProp: "label",
5522
5388
  autoClearSearchValue: false,
5523
5389
  placement: 'bottomRight'
5524
5390
  });
@@ -5535,7 +5401,8 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
5535
5401
  };
5536
5402
  var tableInitPagination = _objectSpread2(_objectSpread2({}, initPagination), {}, {
5537
5403
  total: 0,
5538
- current: 1
5404
+ current: 1,
5405
+ pageSizeOptions: [10, 20, 50, 100, 500, 1000]
5539
5406
  });
5540
5407
  var disabled = !!noOperate || (selectProps === null || selectProps === void 0 ? void 0 : selectProps.disabled) || (props === null || props === void 0 ? void 0 : props.disabled);
5541
5408
  var isHaveDependency = fixedparameter && fieldValToParam && ctx;
@@ -5567,29 +5434,29 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
5567
5434
  scrollPage = _useState8[0],
5568
5435
  setScrollPage = _useState8[1];
5569
5436
  var _useState9 = React$1.useState(0),
5570
- _useState10 = _slicedToArray(_useState9, 2),
5571
- itemsTotal = _useState10[0],
5572
- setItemsTotal = _useState10[1];
5573
- var _useState11 = React$1.useState(false),
5437
+ _useState0 = _slicedToArray(_useState9, 2),
5438
+ itemsTotal = _useState0[0],
5439
+ setItemsTotal = _useState0[1];
5440
+ var _useState1 = React$1.useState(false),
5441
+ _useState10 = _slicedToArray(_useState1, 2),
5442
+ fetching = _useState10[0],
5443
+ setFetching = _useState10[1];
5444
+ var _useState11 = React$1.useState(''),
5574
5445
  _useState12 = _slicedToArray(_useState11, 2),
5575
- fetching = _useState12[0],
5576
- setFetching = _useState12[1];
5577
- var _useState13 = React$1.useState(''),
5446
+ searchValue = _useState12[0],
5447
+ setSearchValue = _useState12[1];
5448
+ var _useState13 = React$1.useState(false),
5578
5449
  _useState14 = _slicedToArray(_useState13, 2),
5579
- searchValue = _useState14[0],
5580
- setSearchValue = _useState14[1];
5581
- var _useState15 = React$1.useState(false),
5450
+ isModalVisible = _useState14[0],
5451
+ setIsModalVisible = _useState14[1];
5452
+ var _useState15 = React$1.useState(initVal),
5582
5453
  _useState16 = _slicedToArray(_useState15, 2),
5583
- isModalVisible = _useState16[0],
5584
- setIsModalVisible = _useState16[1];
5585
- var _useState17 = React$1.useState(initVal),
5454
+ popvalue = _useState16[0],
5455
+ setPopValue = _useState16[1];
5456
+ var _useState17 = React$1.useState(resultSourceKey),
5586
5457
  _useState18 = _slicedToArray(_useState17, 2),
5587
- popvalue = _useState18[0],
5588
- setPopValue = _useState18[1];
5589
- var _useState19 = React$1.useState(resultSourceKey),
5590
- _useState20 = _slicedToArray(_useState19, 2),
5591
- uniqueValue = _useState20[0],
5592
- setUniqueValue = _useState20[1];
5458
+ uniqueValue = _useState18[0],
5459
+ setUniqueValue = _useState18[1];
5593
5460
  var _useDebounceFn = ahooks.useDebounceFn(function (v) {
5594
5461
  // 优化搜索参数 支持传多个
5595
5462
  var searchParams = {};
@@ -5618,58 +5485,58 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
5618
5485
  var _Form$useForm = antd.Form.useForm(),
5619
5486
  _Form$useForm2 = _slicedToArray(_Form$useForm, 1),
5620
5487
  form = _Form$useForm2[0];
5488
+ var _useState19 = React$1.useState(true),
5489
+ _useState20 = _slicedToArray(_useState19, 2),
5490
+ collapsed = _useState20[0],
5491
+ setCollapsed = _useState20[1];
5621
5492
  var _useState21 = React$1.useState(true),
5622
5493
  _useState22 = _slicedToArray(_useState21, 2),
5623
- collapsed = _useState22[0],
5624
- setCollapsed = _useState22[1];
5625
- var _useState23 = React$1.useState(true),
5494
+ caretLeftFlag = _useState22[0],
5495
+ setCaretLeftFlag = _useState22[1];
5496
+ var _useState23 = React$1.useState([]),
5626
5497
  _useState24 = _slicedToArray(_useState23, 2),
5627
- caretLeftFlag = _useState24[0],
5628
- setCaretLeftFlag = _useState24[1];
5629
- var _useState25 = React$1.useState([]),
5498
+ tableData = _useState24[0],
5499
+ setTableData = _useState24[1];
5500
+ var _useState25 = React$1.useState(tableInitPagination),
5630
5501
  _useState26 = _slicedToArray(_useState25, 2),
5631
- tableData = _useState26[0],
5632
- setTableData = _useState26[1];
5633
- var _useState27 = React$1.useState(tableInitPagination),
5502
+ tablePagination = _useState26[0],
5503
+ setTablePagination = _useState26[1];
5504
+ var _useState27 = React$1.useState([]),
5634
5505
  _useState28 = _slicedToArray(_useState27, 2),
5635
- tablePagination = _useState28[0],
5636
- setTablePagination = _useState28[1];
5506
+ selectedRowKeys = _useState28[0],
5507
+ setSelectedRowKeys = _useState28[1];
5637
5508
  var _useState29 = React$1.useState([]),
5638
5509
  _useState30 = _slicedToArray(_useState29, 2),
5639
- selectedRowKeys = _useState30[0],
5640
- setSelectedRowKeys = _useState30[1];
5641
- var _useState31 = React$1.useState([]),
5510
+ selectedRows = _useState30[0],
5511
+ setSelectedRows = _useState30[1];
5512
+ var _useState31 = React$1.useState(false),
5642
5513
  _useState32 = _slicedToArray(_useState31, 2),
5643
- selectedRows = _useState32[0],
5644
- setSelectedRows = _useState32[1];
5514
+ checkedAll = _useState32[0],
5515
+ setCheckedAll = _useState32[1];
5645
5516
  var _useState33 = React$1.useState(false),
5646
5517
  _useState34 = _slicedToArray(_useState33, 2),
5647
- checkedAll = _useState34[0],
5648
- setCheckedAll = _useState34[1];
5649
- var _useState35 = React$1.useState(false),
5518
+ indeterminate = _useState34[0],
5519
+ setIndeterminate = _useState34[1];
5520
+ var _useState35 = React$1.useState({}),
5650
5521
  _useState36 = _slicedToArray(_useState35, 2),
5651
- indeterminate = _useState36[0],
5652
- setIndeterminate = _useState36[1];
5653
- var _useState37 = React$1.useState({}),
5522
+ tableFormParams = _useState36[0],
5523
+ setTableFormParams = _useState36[1];
5524
+ var _useState37 = React$1.useState(false),
5654
5525
  _useState38 = _slicedToArray(_useState37, 2),
5655
- tableFormParams = _useState38[0],
5656
- setTableFormParams = _useState38[1];
5657
- var _useState39 = React$1.useState(false),
5526
+ tooltipVisible = _useState38[0],
5527
+ setTooltipVisible = _useState38[1];
5528
+ var _useState39 = React$1.useState(handleTableColumns(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableColumns)),
5658
5529
  _useState40 = _slicedToArray(_useState39, 2),
5659
- tooltipVisible = _useState40[0],
5660
- setTooltipVisible = _useState40[1];
5661
- var _useState41 = React$1.useState(handleTableColumns(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableColumns)),
5530
+ tableShowColumns = _useState40[0],
5531
+ setTabletShowColumns = _useState40[1]; // 默认展示表头-modalTableProps?.tableColumns
5532
+ var _useState41 = React$1.useState(false),
5662
5533
  _useState42 = _slicedToArray(_useState41, 2),
5663
- tableShowColumns = _useState42[0],
5664
- setTabletShowColumns = _useState42[1]; // 默认展示表头-modalTableProps?.tableColumns
5534
+ confirmLoading = _useState42[0],
5535
+ setConfirmLoading = _useState42[1];
5665
5536
  var _useState43 = React$1.useState(false),
5666
5537
  _useState44 = _slicedToArray(_useState43, 2),
5667
- confirmLoading = _useState44[0],
5668
- setConfirmLoading = _useState44[1];
5669
- var _useState45 = React$1.useState(false),
5670
- _useState46 = _slicedToArray(_useState45, 2),
5671
- modalSearched = _useState46[0],
5672
- setModalSearched = _useState46[1];
5538
+ modalSearched = _useState44[0],
5539
+ setModalSearched = _useState44[1];
5673
5540
  var setSelectDataSource = function setSelectDataSource(list, total) {
5674
5541
  setItems(list);
5675
5542
  setItemsTotal(total);
@@ -5986,12 +5853,19 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
5986
5853
  };
5987
5854
  var formaData = function formaData(value, source) {
5988
5855
  if (labelInValue) {
5856
+ var getFromat = function getFromat(format, val) {
5857
+ return format.map(function (_ref8) {
5858
+ var key = _ref8.key,
5859
+ value = _ref8.value;
5860
+ return _defineProperty({}, key, val[value]);
5861
+ });
5862
+ };
5989
5863
  var formatResult = value.map(function (i) {
5990
- return {
5864
+ return Object.assign.apply(Object, [{
5991
5865
  key: i[mappingValueField] || i.key,
5992
5866
  label: i[mappingTextField] || i.label,
5993
5867
  value: i[mappingValueField] || i.value
5994
- };
5868
+ }].concat(_toConsumableArray(getFromat(returnFormat, i))));
5995
5869
  });
5996
5870
  onChange(selectMode ? formatResult : formatResult[0], value, source);
5997
5871
  } else {
@@ -6139,7 +6013,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
6139
6013
  })) || [];
6140
6014
  var searchList = (modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.noEmptySearchField) ? list : list === null || list === void 0 ? void 0 : list.concat(addKong);
6141
6015
  return searchList.map(function (i, index) {
6142
- var _i$field, _i$field3, _i$field5, _i$field7, _i$field9, _i$field10, _i$field11, _i$field12, _i$field14, _i$field15;
6016
+ var _i$field, _i$field3, _i$field5, _i$field7, _i$field9, _i$field0, _i$field1, _i$field10, _i$field12, _i$field13;
6143
6017
  if ((i === null || i === void 0 ? void 0 : i.type) === 'kong') return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
6144
6018
  span: ColSpan,
6145
6019
  key: i
@@ -6237,7 +6111,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
6237
6111
  disabled: setDisabled(i.name)
6238
6112
  }))));
6239
6113
  }
6240
- 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') {
6114
+ 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') {
6241
6115
  return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
6242
6116
  span: ColSpan,
6243
6117
  key: i.name
@@ -6251,7 +6125,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
6251
6125
  }
6252
6126
  })));
6253
6127
  }
6254
- if ((i === null || i === void 0 ? void 0 : (_i$field11 = i.field) === null || _i$field11 === void 0 ? void 0 : _i$field11.type) === 'proppertySelector') {
6128
+ if ((i === null || i === void 0 ? void 0 : (_i$field1 = i.field) === null || _i$field1 === void 0 ? void 0 : _i$field1.type) === 'proppertySelector') {
6255
6129
  return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
6256
6130
  span: ColSpan,
6257
6131
  key: i.name
@@ -6261,8 +6135,8 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
6261
6135
  key: i.name
6262
6136
  }, /*#__PURE__*/React__default['default'].createElement(PropertySelector, null)));
6263
6137
  }
6264
- 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') {
6265
- var _i$field13;
6138
+ 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') {
6139
+ var _i$field11;
6266
6140
  return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
6267
6141
  span: ColSpan,
6268
6142
  key: i.name
@@ -6275,9 +6149,9 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
6275
6149
  width: '100%'
6276
6150
  },
6277
6151
  placeholder: "\u8BF7\u9009\u62E9"
6278
- }, i === null || i === void 0 ? void 0 : (_i$field13 = i.field) === null || _i$field13 === void 0 ? void 0 : _i$field13.props))));
6152
+ }, i === null || i === void 0 ? void 0 : (_i$field11 = i.field) === null || _i$field11 === void 0 ? void 0 : _i$field11.props))));
6279
6153
  }
6280
- if ((i === null || i === void 0 ? void 0 : (_i$field14 = i.field) === null || _i$field14 === void 0 ? void 0 : _i$field14.type) === 'multipleQuerySearchSelect') {
6154
+ if ((i === null || i === void 0 ? void 0 : (_i$field12 = i.field) === null || _i$field12 === void 0 ? void 0 : _i$field12.type) === 'multipleQuerySearchSelect') {
6281
6155
  return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
6282
6156
  span: ColSpan,
6283
6157
  key: i.name
@@ -6306,7 +6180,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
6306
6180
  placeholder: "\u8BF7\u8F93\u5165",
6307
6181
  allowClear: true,
6308
6182
  maxLength: 100
6309
- }, i === null || i === void 0 ? void 0 : (_i$field15 = i.field) === null || _i$field15 === void 0 ? void 0 : _i$field15.props), {}, {
6183
+ }, i === null || i === void 0 ? void 0 : (_i$field13 = i.field) === null || _i$field13 === void 0 ? void 0 : _i$field13.props), {}, {
6310
6184
  disabled: setDisabled(i.name)
6311
6185
  }))));
6312
6186
  });
@@ -7626,135 +7500,132 @@ var AddSelect = function AddSelect(props) {
7626
7500
  _Form$useForm2 = _slicedToArray(_Form$useForm, 1),
7627
7501
  form = _Form$useForm2[0];
7628
7502
  var _useState9 = React$1.useState(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableSearchForm),
7629
- _useState10 = _slicedToArray(_useState9, 2),
7630
- tableSearchForm = _useState10[0],
7631
- setTableSearchForm = _useState10[1];
7632
- var _useState11 = React$1.useState(true),
7503
+ _useState0 = _slicedToArray(_useState9, 2),
7504
+ tableSearchForm = _useState0[0],
7505
+ setTableSearchForm = _useState0[1];
7506
+ var _useState1 = React$1.useState(true),
7507
+ _useState10 = _slicedToArray(_useState1, 2),
7508
+ caretLeftFlag = _useState10[0],
7509
+ setCaretLeftFlag = _useState10[1];
7510
+ var _useState11 = React$1.useState([]),
7633
7511
  _useState12 = _slicedToArray(_useState11, 2),
7634
- caretLeftFlag = _useState12[0],
7635
- setCaretLeftFlag = _useState12[1];
7636
- var _useState13 = React$1.useState([]),
7637
- _useState14 = _slicedToArray(_useState13, 2),
7638
- tableData = _useState14[0],
7639
- setTableData = _useState14[1];
7640
- var _useState15 = React$1.useState(_objectSpread2({
7512
+ tableData = _useState12[0],
7513
+ setTableData = _useState12[1];
7514
+ var _useState13 = React$1.useState(_objectSpread2({
7641
7515
  total: 0,
7642
7516
  size: "small",
7643
7517
  current: 1,
7644
7518
  pageSize: tableInitPageSize
7645
7519
  }, modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.topTablePagination)),
7520
+ _useState14 = _slicedToArray(_useState13, 2),
7521
+ tablePagination = _useState14[0],
7522
+ setTablePagination = _useState14[1];
7523
+ var _useState15 = React$1.useState([]),
7646
7524
  _useState16 = _slicedToArray(_useState15, 2),
7647
- tablePagination = _useState16[0],
7648
- setTablePagination = _useState16[1];
7649
- var _useState17 = React$1.useState([]),
7525
+ selectedRowKeys = _useState16[0],
7526
+ setSelectedRowKeys = _useState16[1];
7527
+ var _useState17 = React$1.useState({}),
7650
7528
  _useState18 = _slicedToArray(_useState17, 2),
7651
- selectedRowKeys = _useState18[0],
7652
- setSelectedRowKeys = _useState18[1];
7653
- var _useState19 = React$1.useState({}),
7529
+ tableFormParams = _useState18[0],
7530
+ setTableFormParams = _useState18[1];
7531
+ var _useState19 = React$1.useState(false),
7654
7532
  _useState20 = _slicedToArray(_useState19, 2),
7655
- tableFormParams = _useState20[0],
7656
- setTableFormParams = _useState20[1];
7533
+ confirmLoading = _useState20[0],
7534
+ setConfirmLoading = _useState20[1];
7657
7535
  var _useState21 = React$1.useState(false),
7658
7536
  _useState22 = _slicedToArray(_useState21, 2),
7659
- confirmLoading = _useState22[0],
7660
- setConfirmLoading = _useState22[1];
7661
- var _useState23 = React$1.useState(false),
7537
+ confirmContinueLoading = _useState22[0],
7538
+ setConfirmContinueLoading = _useState22[1];
7539
+ var _useState23 = React$1.useState([]),
7662
7540
  _useState24 = _slicedToArray(_useState23, 2),
7663
- confirmContinueLoading = _useState24[0],
7664
- setConfirmContinueLoading = _useState24[1];
7541
+ selectColumns = _useState24[0],
7542
+ setSelectColumns = _useState24[1];
7665
7543
  var _useState25 = React$1.useState([]),
7666
7544
  _useState26 = _slicedToArray(_useState25, 2),
7667
- selectColumns = _useState26[0],
7668
- setSelectColumns = _useState26[1];
7545
+ showColumns = _useState26[0],
7546
+ setShowColumns = _useState26[1];
7669
7547
  var _useState27 = React$1.useState([]),
7670
7548
  _useState28 = _slicedToArray(_useState27, 2),
7671
- showColumns = _useState28[0],
7672
- setShowColumns = _useState28[1];
7549
+ tableColumns = _useState28[0],
7550
+ setTableColumns = _useState28[1];
7673
7551
  var _useState29 = React$1.useState([]),
7674
7552
  _useState30 = _slicedToArray(_useState29, 2),
7675
- tableColumns = _useState30[0],
7676
- setTableColumns = _useState30[1];
7677
- var _useState31 = React$1.useState([]),
7678
- _useState32 = _slicedToArray(_useState31, 2),
7679
- showToChooseColumns = _useState32[0],
7680
- setShowToChooseColumns = _useState32[1];
7553
+ showToChooseColumns = _useState30[0],
7554
+ setShowToChooseColumns = _useState30[1];
7681
7555
  var codeToChoose = tableCodeList[0] || initTableCode[businessType][0];
7682
7556
  var codeSelected = tableCodeList[1] || initTableCode[businessType][1];
7683
7557
  // FIXME: 特殊业务逻辑
7684
7558
  var checkSelectChange = /*#__PURE__*/function () {
7685
- var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
7686
- var result;
7687
- return _regeneratorRuntime().wrap(function _callee$(_context) {
7688
- while (1) switch (_context.prev = _context.next) {
7559
+ var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
7560
+ var result, _t;
7561
+ return _regenerator().w(function (_context) {
7562
+ while (1) switch (_context.p = _context.n) {
7689
7563
  case 0:
7690
7564
  if (!(bType == 'skc' && tList.some(function (i) {
7691
7565
  return i[recordKey] == recordItem[recordKey] && i[selectItem.dataIndex] == changeValue;
7692
7566
  }))) {
7693
- _context.next = 3;
7567
+ _context.n = 1;
7694
7568
  break;
7695
7569
  }
7696
7570
  antd.message.warning('相同skc配码不可设置相同哦');
7697
- return _context.abrupt("return", false);
7698
- case 3:
7571
+ return _context.a(2, false);
7572
+ case 1:
7699
7573
  if (!(bType == 'spu')) {
7700
- _context.next = 26;
7574
+ _context.n = 9;
7701
7575
  break;
7702
7576
  }
7703
7577
  if (!(selectItem.dataIndex == 'colorName' && tList.some(function (i) {
7704
7578
  return i[recordKey] == recordItem[recordKey] && i.selectPropertyGroupCode == recordItem.selectPropertyGroupCode && i[selectItem.dataIndex] == changeValue;
7705
7579
  }))) {
7706
- _context.next = 7;
7580
+ _context.n = 2;
7707
7581
  break;
7708
7582
  }
7709
7583
  antd.message.warning('相同商品相同配码颜色不可设置相同哦');
7710
- return _context.abrupt("return", false);
7711
- case 7:
7584
+ return _context.a(2, false);
7585
+ case 2:
7712
7586
  if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && !recordItem.colorName)) {
7713
- _context.next = 10;
7587
+ _context.n = 3;
7714
7588
  break;
7715
7589
  }
7716
7590
  antd.message.warning('请先选择颜色!');
7717
- return _context.abrupt("return", false);
7718
- case 10:
7591
+ return _context.a(2, false);
7592
+ case 3:
7719
7593
  if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && tList.some(function (i) {
7720
7594
  return i[recordKey] == recordItem[recordKey] && i.colorName == recordItem.colorName && i[selectItem.dataIndex] == changeValue;
7721
7595
  }))) {
7722
- _context.next = 13;
7596
+ _context.n = 4;
7723
7597
  break;
7724
7598
  }
7725
7599
  antd.message.warning('相同商品相同颜色配码不可设置相同哦');
7726
- return _context.abrupt("return", false);
7727
- case 13:
7600
+ return _context.a(2, false);
7601
+ case 4:
7728
7602
  if (!(selectItem.dataIndex == 'selectPropertyGroupCode')) {
7729
- _context.next = 26;
7603
+ _context.n = 9;
7730
7604
  break;
7731
7605
  }
7732
7606
  result = true;
7733
- _context.prev = 15;
7734
- _context.next = 18;
7607
+ _context.p = 5;
7608
+ _context.n = 6;
7735
7609
  return checkSpuMatchCode({
7736
7610
  skcCode: recordItem[recordKey],
7737
7611
  matchingCode: changeValue,
7738
7612
  ext1: recordItem.colorName
7739
7613
  });
7740
- case 18:
7741
- result = _context.sent;
7614
+ case 6:
7615
+ result = _context.v;
7742
7616
  result = true;
7743
- _context.next = 25;
7617
+ _context.n = 8;
7744
7618
  break;
7745
- case 22:
7746
- _context.prev = 22;
7747
- _context.t0 = _context["catch"](15);
7748
- result = typeof _context.t0 == 'boolean' ? _context.t0 : false;
7749
- case 25:
7750
- return _context.abrupt("return", result);
7751
- case 26:
7752
- return _context.abrupt("return", true);
7753
- case 27:
7754
- case "end":
7755
- return _context.stop();
7756
- }
7757
- }, _callee, null, [[15, 22]]);
7619
+ case 7:
7620
+ _context.p = 7;
7621
+ _t = _context.v;
7622
+ result = typeof _t == 'boolean' ? _t : false;
7623
+ case 8:
7624
+ return _context.a(2, result);
7625
+ case 9:
7626
+ return _context.a(2, true);
7627
+ }
7628
+ }, _callee, null, [[5, 7]]);
7758
7629
  }));
7759
7630
  return function checkSelectChange(_x, _x2, _x3, _x4, _x5, _x6) {
7760
7631
  return _ref2.apply(this, arguments);
@@ -7832,6 +7703,115 @@ var AddSelect = function AddSelect(props) {
7832
7703
  acc[key] = typeof value === 'function' ? value === null || value === void 0 ? void 0 : value(record) : value;
7833
7704
  return acc;
7834
7705
  }, {});
7706
+ // 可输入非数字字符
7707
+ if (item.canInputString) {
7708
+ return /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, _objectSpread2(_objectSpread2({
7709
+ min: 0,
7710
+ precision: 0,
7711
+ controls: false
7712
+ }, inputProps), {}, {
7713
+ value: text || '',
7714
+ keyboard: false,
7715
+ onPressEnter: function onPressEnter(e) {
7716
+ e.target.blur();
7717
+ },
7718
+ onBlur: function () {
7719
+ var _onBlur = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(e) {
7720
+ var value;
7721
+ return _regenerator().w(function (_context2) {
7722
+ while (1) switch (_context2.n) {
7723
+ case 0:
7724
+ value = e.target.value;
7725
+ record[item.dataIndex] = value;
7726
+ editRecord(record);
7727
+ case 1:
7728
+ return _context2.a(2);
7729
+ }
7730
+ }, _callee2);
7731
+ }));
7732
+ function onBlur(_x7) {
7733
+ return _onBlur.apply(this, arguments);
7734
+ }
7735
+ return onBlur;
7736
+ }(),
7737
+ onKeyDown: function onKeyDown(e) {
7738
+ if (e.keyCode === 13 && e.ctrlKey) {
7739
+ var _document$getElementB;
7740
+ handleOk(true);
7741
+ (_document$getElementB = document.getElementById("first-query")) === null || _document$getElementB === void 0 ? void 0 : _document$getElementB.focus();
7742
+ }
7743
+ if (e.keyCode === 8 && e.ctrlKey) {
7744
+ var _e$nativeEvent$path$;
7745
+ antd.message.success('删除当前行');
7746
+ e.stopPropagation();
7747
+ e.preventDefault();
7748
+ var dom = (_e$nativeEvent$path$ = e.nativeEvent.path[5].children[index + 2]) === null || _e$nativeEvent$path$ === void 0 ? void 0 : _e$nativeEvent$path$.getElementsByTagName('input')[currentIndex];
7749
+ if (dom) {
7750
+ dom.select();
7751
+ dom.focus();
7752
+ dom.scrollIntoView(false);
7753
+ }
7754
+ dom = null;
7755
+ deleteRecord(record);
7756
+ }
7757
+ if (e.keyCode === 37 && e.shiftKey) {
7758
+ var _e$nativeEvent$path$2;
7759
+ // 左滑动
7760
+ e.stopPropagation();
7761
+ e.preventDefault();
7762
+ var _dom = (_e$nativeEvent$path$2 = e.nativeEvent.path[5].children[index + 1]) === null || _e$nativeEvent$path$2 === void 0 ? void 0 : _e$nativeEvent$path$2.getElementsByTagName('input')[currentIndex - 1];
7763
+ if (_dom) {
7764
+ _dom.select();
7765
+ _dom.focus();
7766
+ _dom.scrollIntoView(false);
7767
+ }
7768
+ _dom = null;
7769
+ }
7770
+ if (e.keyCode === 39 && e.shiftKey) {
7771
+ var _e$nativeEvent$path$3;
7772
+ // 右滑
7773
+ e.stopPropagation();
7774
+ e.preventDefault();
7775
+ var _dom2 = (_e$nativeEvent$path$3 = e.nativeEvent.path[5].children[index + 1]) === null || _e$nativeEvent$path$3 === void 0 ? void 0 : _e$nativeEvent$path$3.getElementsByTagName('input')[currentIndex + 1];
7776
+ if (_dom2) {
7777
+ _dom2.select();
7778
+ _dom2.focus();
7779
+ _dom2.scrollIntoView(false);
7780
+ }
7781
+ _dom2 = null;
7782
+ }
7783
+ if (e.keyCode === 40) {
7784
+ var _e$nativeEvent$path$4;
7785
+ e.stopPropagation();
7786
+ e.preventDefault();
7787
+ var _dom3 = (_e$nativeEvent$path$4 = e.nativeEvent.path[5].children[index + 2]) === null || _e$nativeEvent$path$4 === void 0 ? void 0 : _e$nativeEvent$path$4.getElementsByTagName('input')[currentIndex];
7788
+ if (_dom3) {
7789
+ _dom3.select();
7790
+ _dom3.focus();
7791
+ _dom3.scrollIntoView(false);
7792
+ }
7793
+ _dom3 = null;
7794
+ } else if (e.keyCode === 38) {
7795
+ var _e$nativeEvent$path$5;
7796
+ e.stopPropagation();
7797
+ e.preventDefault();
7798
+ var dom1 = (_e$nativeEvent$path$5 = e.nativeEvent.path[5].children[index]) === null || _e$nativeEvent$path$5 === void 0 ? void 0 : _e$nativeEvent$path$5.getElementsByTagName('input')[currentIndex];
7799
+ if (dom1) {
7800
+ // dom1.value=""
7801
+ // dom1.setSelectionRange(100, 0);
7802
+ dom1.select();
7803
+ dom1.focus();
7804
+ dom1.scrollIntoViewIfNeeded(false);
7805
+ // dom1.value=record['count']
7806
+ }
7807
+ dom1 = null;
7808
+ } else if (e.keyCode === 9 && index === selectedRowKeys.length - 1 && currentIndex === inputLength - 1) {
7809
+ e.stopPropagation();
7810
+ e.preventDefault();
7811
+ }
7812
+ }
7813
+ }));
7814
+ }
7835
7815
  return /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, _objectSpread2(_objectSpread2(_objectSpread2({}, inputProps), {}, {
7836
7816
  value: text || '',
7837
7817
  min: 0,
@@ -7849,16 +7829,16 @@ var AddSelect = function AddSelect(props) {
7849
7829
  // }}
7850
7830
  onKeyDown: function onKeyDown(e) {
7851
7831
  if (e.keyCode === 13 && e.ctrlKey) {
7852
- var _document$getElementB;
7832
+ var _document$getElementB2;
7853
7833
  handleOk(true);
7854
- (_document$getElementB = document.getElementById("first-query")) === null || _document$getElementB === void 0 ? void 0 : _document$getElementB.focus();
7834
+ (_document$getElementB2 = document.getElementById("first-query")) === null || _document$getElementB2 === void 0 ? void 0 : _document$getElementB2.focus();
7855
7835
  }
7856
7836
  if (e.keyCode === 8 && e.ctrlKey) {
7857
- var _e$nativeEvent$path$;
7837
+ var _e$nativeEvent$path$6;
7858
7838
  antd.message.success('删除当前行');
7859
7839
  e.stopPropagation();
7860
7840
  e.preventDefault();
7861
- var dom = (_e$nativeEvent$path$ = e.nativeEvent.path[5].children[index + 2]) === null || _e$nativeEvent$path$ === void 0 ? void 0 : _e$nativeEvent$path$.getElementsByTagName('input')[currentIndex];
7841
+ var dom = (_e$nativeEvent$path$6 = e.nativeEvent.path[5].children[index + 2]) === null || _e$nativeEvent$path$6 === void 0 ? void 0 : _e$nativeEvent$path$6.getElementsByTagName('input')[currentIndex];
7862
7842
  if (dom) {
7863
7843
  dom.select();
7864
7844
  dom.focus();
@@ -7868,47 +7848,47 @@ var AddSelect = function AddSelect(props) {
7868
7848
  deleteRecord(record);
7869
7849
  }
7870
7850
  if (e.keyCode === 37 && e.shiftKey) {
7871
- var _e$nativeEvent$path$2;
7851
+ var _e$nativeEvent$path$7;
7872
7852
  // 左滑动
7873
7853
  e.stopPropagation();
7874
7854
  e.preventDefault();
7875
- var _dom = (_e$nativeEvent$path$2 = e.nativeEvent.path[5].children[index + 1]) === null || _e$nativeEvent$path$2 === void 0 ? void 0 : _e$nativeEvent$path$2.getElementsByTagName('input')[currentIndex - 1];
7876
- if (_dom) {
7877
- _dom.select();
7878
- _dom.focus();
7879
- _dom.scrollIntoView(false);
7855
+ var _dom4 = (_e$nativeEvent$path$7 = e.nativeEvent.path[5].children[index + 1]) === null || _e$nativeEvent$path$7 === void 0 ? void 0 : _e$nativeEvent$path$7.getElementsByTagName('input')[currentIndex - 1];
7856
+ if (_dom4) {
7857
+ _dom4.select();
7858
+ _dom4.focus();
7859
+ _dom4.scrollIntoView(false);
7880
7860
  }
7881
- _dom = null;
7861
+ _dom4 = null;
7882
7862
  }
7883
7863
  if (e.keyCode === 39 && e.shiftKey) {
7884
- var _e$nativeEvent$path$3;
7864
+ var _e$nativeEvent$path$8;
7885
7865
  // 右滑
7886
7866
  e.stopPropagation();
7887
7867
  e.preventDefault();
7888
- var _dom2 = (_e$nativeEvent$path$3 = e.nativeEvent.path[5].children[index + 1]) === null || _e$nativeEvent$path$3 === void 0 ? void 0 : _e$nativeEvent$path$3.getElementsByTagName('input')[currentIndex + 1];
7889
- if (_dom2) {
7890
- _dom2.select();
7891
- _dom2.focus();
7892
- _dom2.scrollIntoView(false);
7868
+ var _dom5 = (_e$nativeEvent$path$8 = e.nativeEvent.path[5].children[index + 1]) === null || _e$nativeEvent$path$8 === void 0 ? void 0 : _e$nativeEvent$path$8.getElementsByTagName('input')[currentIndex + 1];
7869
+ if (_dom5) {
7870
+ _dom5.select();
7871
+ _dom5.focus();
7872
+ _dom5.scrollIntoView(false);
7893
7873
  }
7894
- _dom2 = null;
7874
+ _dom5 = null;
7895
7875
  }
7896
7876
  if (e.keyCode === 40) {
7897
- var _e$nativeEvent$path$4;
7877
+ var _e$nativeEvent$path$9;
7898
7878
  e.stopPropagation();
7899
7879
  e.preventDefault();
7900
- var _dom3 = (_e$nativeEvent$path$4 = e.nativeEvent.path[5].children[index + 2]) === null || _e$nativeEvent$path$4 === void 0 ? void 0 : _e$nativeEvent$path$4.getElementsByTagName('input')[currentIndex];
7901
- if (_dom3) {
7902
- _dom3.select();
7903
- _dom3.focus();
7904
- _dom3.scrollIntoView(false);
7880
+ var _dom6 = (_e$nativeEvent$path$9 = e.nativeEvent.path[5].children[index + 2]) === null || _e$nativeEvent$path$9 === void 0 ? void 0 : _e$nativeEvent$path$9.getElementsByTagName('input')[currentIndex];
7881
+ if (_dom6) {
7882
+ _dom6.select();
7883
+ _dom6.focus();
7884
+ _dom6.scrollIntoView(false);
7905
7885
  }
7906
- _dom3 = null;
7886
+ _dom6 = null;
7907
7887
  } else if (e.keyCode === 38) {
7908
- var _e$nativeEvent$path$5;
7888
+ var _e$nativeEvent$path$0;
7909
7889
  e.stopPropagation();
7910
7890
  e.preventDefault();
7911
- var dom1 = (_e$nativeEvent$path$5 = e.nativeEvent.path[5].children[index]) === null || _e$nativeEvent$path$5 === void 0 ? void 0 : _e$nativeEvent$path$5.getElementsByTagName('input')[currentIndex];
7891
+ var dom1 = (_e$nativeEvent$path$0 = e.nativeEvent.path[5].children[index]) === null || _e$nativeEvent$path$0 === void 0 ? void 0 : _e$nativeEvent$path$0.getElementsByTagName('input')[currentIndex];
7912
7892
  if (dom1) {
7913
7893
  // dom1.value=""
7914
7894
  // dom1.setSelectionRange(100, 0);
@@ -7942,19 +7922,19 @@ var AddSelect = function AddSelect(props) {
7942
7922
  return /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2(_objectSpread2({}, item.selectProps), {}, {
7943
7923
  value: text || null,
7944
7924
  onChange: function () {
7945
- var _onChange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
7946
- var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules;
7947
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
7948
- while (1) switch (_context2.prev = _context2.next) {
7925
+ var _onChange = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(value) {
7926
+ var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules, _t2;
7927
+ return _regenerator().w(function (_context3) {
7928
+ while (1) switch (_context3.p = _context3.n) {
7949
7929
  case 0:
7950
7930
  dataSourceSelectItem = (dataSourceList === null || dataSourceList === void 0 ? void 0 : dataSourceList.find(function (d) {
7951
7931
  return d[selectKey] == value;
7952
7932
  })) || {};
7953
7933
  if (!(item === null || item === void 0 ? void 0 : item.selectChangeCallback)) {
7954
- _context2.next = 6;
7934
+ _context3.n = 2;
7955
7935
  break;
7956
7936
  }
7957
- _context2.next = 4;
7937
+ _context3.n = 1;
7958
7938
  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, {
7959
7939
  record: record,
7960
7940
  index: index,
@@ -7964,10 +7944,10 @@ var AddSelect = function AddSelect(props) {
7964
7944
  dataSourceSelectItem: dataSourceSelectItem,
7965
7945
  editRecord: editRecord
7966
7946
  });
7967
- case 4:
7968
- _context2.next = 25;
7947
+ case 1:
7948
+ _context3.n = 10;
7969
7949
  break;
7970
- case 6:
7950
+ case 2:
7971
7951
  // 更新当前行数据函数
7972
7952
  changeValue = function changeValue(v, dSSItem) {
7973
7953
  var _item$dataSourceSelec;
@@ -7980,12 +7960,12 @@ var AddSelect = function AddSelect(props) {
7980
7960
  }
7981
7961
  }; // 处理校验,默认不校验
7982
7962
  isCheckPass = true;
7983
- _context2.prev = 8;
7963
+ _context3.p = 3;
7984
7964
  if (!(item === null || item === void 0 ? void 0 : item.selectCheckCallback)) {
7985
- _context2.next = 15;
7965
+ _context3.n = 5;
7986
7966
  break;
7987
7967
  }
7988
- _context2.next = 12;
7968
+ _context3.n = 4;
7989
7969
  return item === null || item === void 0 ? void 0 : item.selectCheckCallback(popvalue, {
7990
7970
  record: record,
7991
7971
  index: index,
@@ -7994,23 +7974,23 @@ var AddSelect = function AddSelect(props) {
7994
7974
  changeValue: value,
7995
7975
  dataSourceSelectItem: dataSourceSelectItem
7996
7976
  });
7997
- case 12:
7998
- isCheckPass = _context2.sent;
7999
- _context2.next = 19;
7977
+ case 4:
7978
+ isCheckPass = _context3.v;
7979
+ _context3.n = 7;
8000
7980
  break;
8001
- case 15:
8002
- _context2.next = 17;
7981
+ case 5:
7982
+ _context3.n = 6;
8003
7983
  return checkSelectChange(businessType, popvalue, mappingValueField, record, item, value);
8004
- case 17:
8005
- isConformToTheRules = _context2.sent;
7984
+ case 6:
7985
+ isConformToTheRules = _context3.v;
8006
7986
  isCheckPass = !isConformToTheRules;
8007
- case 19:
8008
- _context2.next = 23;
7987
+ case 7:
7988
+ _context3.n = 9;
8009
7989
  break;
8010
- case 21:
8011
- _context2.prev = 21;
8012
- _context2.t0 = _context2["catch"](8);
8013
- case 23:
7990
+ case 8:
7991
+ _context3.p = 8;
7992
+ _t2 = _context3.v;
7993
+ case 9:
8014
7994
  if (isCheckPass) {
8015
7995
  changeValue(value, dataSourceSelectItem);
8016
7996
  } else {
@@ -8018,13 +7998,12 @@ var AddSelect = function AddSelect(props) {
8018
7998
  }
8019
7999
  // 更新已选表格函数
8020
8000
  editRecord(record);
8021
- case 25:
8022
- case "end":
8023
- return _context2.stop();
8001
+ case 10:
8002
+ return _context3.a(2);
8024
8003
  }
8025
- }, _callee2, null, [[8, 21]]);
8004
+ }, _callee3, null, [[3, 8]]);
8026
8005
  }));
8027
- function onChange(_x7) {
8006
+ function onChange(_x8) {
8028
8007
  return _onChange.apply(this, arguments);
8029
8008
  }
8030
8009
  return onChange;
@@ -8284,8 +8263,8 @@ var AddSelect = function AddSelect(props) {
8284
8263
  }
8285
8264
  }
8286
8265
  setTimeout(function () {
8287
- var _document$getElementB2;
8288
- (_document$getElementB2 = document.getElementById("first-query")) === null || _document$getElementB2 === void 0 ? void 0 : _document$getElementB2.focus();
8266
+ var _document$getElementB3;
8267
+ (_document$getElementB3 = document.getElementById("first-query")) === null || _document$getElementB3 === void 0 ? void 0 : _document$getElementB3.focus();
8289
8268
  }, 50);
8290
8269
  };
8291
8270
  // 将格式化完的数据回显到 表格中
@@ -8315,7 +8294,7 @@ var AddSelect = function AddSelect(props) {
8315
8294
  handleLoading(isContinue, true);
8316
8295
  onSaveCallback(popvalue).then(function (res) {
8317
8296
  {
8318
- var _Object$keys2, _document$getElementB3;
8297
+ var _Object$keys2, _document$getElementB4;
8319
8298
  // 成功信息可以在调用处处理 即resolve({messageSuccessBackInfo: { needThrowSuccess: false } })、resolve({messageSuccessBackInfo: { needThrowSuccess: true, successMessage: '已保存' } })
8320
8299
  var initSuccessMessage = '保存成功';
8321
8300
  var rmsbi = (res === null || res === void 0 ? void 0 : res.messageSuccessBackInfo) || {};
@@ -8325,7 +8304,7 @@ var AddSelect = function AddSelect(props) {
8325
8304
  antd.message.success(initSuccessMessage);
8326
8305
  }
8327
8306
  deleteSelectRows();
8328
- (_document$getElementB3 = document.getElementById('first-query')) === null || _document$getElementB3 === void 0 ? void 0 : _document$getElementB3.focus();
8307
+ (_document$getElementB4 = document.getElementById('first-query')) === null || _document$getElementB4 === void 0 ? void 0 : _document$getElementB4.focus();
8329
8308
  !isContinue && handleCancel();
8330
8309
  }
8331
8310
  handleLoading(isContinue, false);
@@ -9413,29 +9392,29 @@ var BillEntry = function BillEntry(_ref3) {
9413
9392
  dataIndex: 'propertyNameAndValue'
9414
9393
  }];
9415
9394
  var _useState9 = React$1.useState(false),
9416
- _useState10 = _slicedToArray(_useState9, 2),
9417
- isModalVisible = _useState10[0],
9418
- setIsModalVisible = _useState10[1];
9419
- var _useState11 = React$1.useState([{
9395
+ _useState0 = _slicedToArray(_useState9, 2),
9396
+ isModalVisible = _useState0[0],
9397
+ setIsModalVisible = _useState0[1];
9398
+ var _useState1 = React$1.useState([{
9420
9399
  hovered: false
9421
9400
  }]),
9422
- _useState12 = _slicedToArray(_useState11, 2),
9423
- data = _useState12[0],
9424
- setData = _useState12[1];
9401
+ _useState10 = _slicedToArray(_useState1, 2),
9402
+ data = _useState10[0],
9403
+ setData = _useState10[1];
9425
9404
  var tableRef = React$1.useRef(null);
9426
9405
  var codeSelected = tableCode;
9427
- var _useState13 = React$1.useState(false),
9406
+ var _useState11 = React$1.useState(false),
9407
+ _useState12 = _slicedToArray(_useState11, 2),
9408
+ loading = _useState12[0],
9409
+ setLoading = _useState12[1];
9410
+ var _useState13 = React$1.useState([]),
9428
9411
  _useState14 = _slicedToArray(_useState13, 2),
9429
- loading = _useState14[0],
9430
- setLoading = _useState14[1];
9412
+ selectColumns = _useState14[0],
9413
+ setSelectColumns = _useState14[1];
9431
9414
  var _useState15 = React$1.useState([]),
9432
9415
  _useState16 = _slicedToArray(_useState15, 2),
9433
- selectColumns = _useState16[0],
9434
- setSelectColumns = _useState16[1];
9435
- var _useState17 = React$1.useState([]),
9436
- _useState18 = _slicedToArray(_useState17, 2),
9437
- showColumns = _useState18[0],
9438
- setShowColumns = _useState18[1];
9416
+ showColumns = _useState16[0],
9417
+ setShowColumns = _useState16[1];
9439
9418
  React$1.useEffect(function () {
9440
9419
  setSelectColumns([].concat(_toConsumableArray(columns.map(function (item) {
9441
9420
  var inputLength = columns.filter(function (item) {
@@ -9551,42 +9530,42 @@ var BillEntry = function BillEntry(_ref3) {
9551
9530
  });
9552
9531
  };
9553
9532
  var handleSubmit = /*#__PURE__*/function () {
9554
- var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
9533
+ var _ref4 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
9555
9534
  var canEntryObject, _canEntryObject$error, messageInfo;
9556
- return _regeneratorRuntime().wrap(function _callee$(_context) {
9557
- while (1) switch (_context.prev = _context.next) {
9535
+ return _regenerator().w(function (_context) {
9536
+ while (1) switch (_context.n) {
9558
9537
  case 0:
9559
9538
  if (data === null || data === void 0 ? void 0 : data.length) {
9560
- _context.next = 3;
9539
+ _context.n = 1;
9561
9540
  break;
9562
9541
  }
9563
9542
  antd.message.warning('至少录入一条数据');
9564
- return _context.abrupt("return");
9565
- case 3:
9543
+ return _context.a(2);
9544
+ case 1:
9566
9545
  if (data === null || data === void 0 ? void 0 : data.every(function (d) {
9567
9546
  return d.skuCode && d.name;
9568
9547
  })) {
9569
- _context.next = 6;
9548
+ _context.n = 2;
9570
9549
  break;
9571
9550
  }
9572
9551
  antd.message.warning('录入商品不存在');
9573
- return _context.abrupt("return");
9574
- case 6:
9552
+ return _context.a(2);
9553
+ case 2:
9575
9554
  if (data === null || data === void 0 ? void 0 : data.every(function (d) {
9576
9555
  return d.count;
9577
9556
  })) {
9578
- _context.next = 9;
9557
+ _context.n = 3;
9579
9558
  break;
9580
9559
  }
9581
9560
  antd.message.warning('请填写商品数量!');
9582
- return _context.abrupt("return");
9583
- case 9:
9584
- _context.next = 11;
9561
+ return _context.a(2);
9562
+ case 3:
9563
+ _context.n = 4;
9585
9564
  return isSkuCanEntry(data);
9586
- case 11:
9587
- canEntryObject = _context.sent;
9565
+ case 4:
9566
+ canEntryObject = _context.v;
9588
9567
  if (!((canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.flag) === false)) {
9589
- _context.next = 16;
9568
+ _context.n = 5;
9590
9569
  break;
9591
9570
  }
9592
9571
  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) {
@@ -9596,8 +9575,8 @@ var BillEntry = function BillEntry(_ref3) {
9596
9575
  content: messageInfo,
9597
9576
  duration: 6
9598
9577
  });
9599
- return _context.abrupt("return");
9600
- case 16:
9578
+ return _context.a(2);
9579
+ case 5:
9601
9580
  setLoading(true);
9602
9581
  onSaveCallback(data).then(function (res) {
9603
9582
  {
@@ -9615,9 +9594,8 @@ var BillEntry = function BillEntry(_ref3) {
9615
9594
  antd.message.error(Error);
9616
9595
  setLoading(false);
9617
9596
  });
9618
- case 18:
9619
- case "end":
9620
- return _context.stop();
9597
+ case 6:
9598
+ return _context.a(2);
9621
9599
  }
9622
9600
  }, _callee);
9623
9601
  }));
@@ -10013,31 +9991,36 @@ function commonFun(type, prefixUrl, parentProps) {
10013
9991
  });
10014
9992
  };
10015
9993
  // 格式化树选择器数据源
10016
- var _mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue, disabledJudge) {
10017
- var haveChildren = Array.isArray(treeDataItem.children) && treeDataItem.children.length > 0;
9994
+ var _mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue, disabledJudge, childrenKey) {
9995
+ var haveChildren = Array.isArray(treeDataItem[childrenKey]) && treeDataItem[childrenKey].length > 0;
10018
9996
  return {
10019
9997
  title: treeDataItem[resKeyValue[1]],
10020
9998
  value: treeDataItem[resKeyValue[0]],
10021
9999
  parentId: treeDataItem.parent,
10022
10000
  data: _objectSpread2({}, treeDataItem),
10023
10001
  isLeaf: !haveChildren,
10024
- disabled: disabledJudge !== undefined ? disabledJudge : haveChildren,
10025
- children: haveChildren ? treeDataItem.children.map(function (i) {
10026
- return _mapSearchTree(i, resKeyValue, disabledJudge);
10002
+ disabled: disabledJudge !== undefined ? _.isBoolean(disabledJudge) ? disabledJudge : disabledJudge(treeDataItem) : haveChildren,
10003
+ children: haveChildren ? treeDataItem[childrenKey].map(function (i) {
10004
+ return _mapSearchTree(i, resKeyValue, disabledJudge, childrenKey);
10027
10005
  }) : []
10028
10006
  };
10029
10007
  };
10030
10008
  var formatTreeDataSource = function formatTreeDataSource(reData, position, changePosition, changeSearchForm) {
10031
10009
  var _reData$position2;
10032
10010
  var resKeyValue = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : ['id', 'name'];
10011
+ var childrenKey = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : 'children';
10012
+ var nodeDisabledJudge = arguments.length > 6 ? arguments[6] : undefined;
10033
10013
  var data = reData && ((_reData$position2 = reData[position]) === null || _reData$position2 === void 0 ? void 0 : _reData$position2.data);
10034
10014
  var disabledJudge;
10035
10015
  if (data && _typeof(data) === 'object' && !Array.isArray(data) && Object.keys(data).length > 0) {
10036
10016
  data = [data];
10037
10017
  disabledJudge = false;
10038
10018
  }
10019
+ if (nodeDisabledJudge) {
10020
+ disabledJudge = nodeDisabledJudge;
10021
+ }
10039
10022
  var formatData = data && Array.isArray(data) && data.length && data.map(function (ites) {
10040
- return _mapSearchTree(ites, resKeyValue, disabledJudge);
10023
+ return _mapSearchTree(ites, resKeyValue, disabledJudge, childrenKey);
10041
10024
  }) || [];
10042
10025
  changeSearchForm[changePosition].field.props.treeData = formatData;
10043
10026
  };
@@ -10498,10 +10481,10 @@ function commonFun(type, prefixUrl, parentProps) {
10498
10481
  selectProps = _objectSpread2({
10499
10482
  placeholder: '输入商品(SPU)编码或名称',
10500
10483
  renderTableColumns: [{
10501
- title: '商品编码(SPU)',
10484
+ title: 'SPU编码',
10502
10485
  dataIndex: 'itemCode'
10503
10486
  }, {
10504
- title: '商品名称(SPU)',
10487
+ title: 'SPU名称',
10505
10488
  dataIndex: 'name'
10506
10489
  }]
10507
10490
  }, selectConfigProps);
@@ -10518,11 +10501,11 @@ function commonFun(type, prefixUrl, parentProps) {
10518
10501
  }, requestConfigProp);
10519
10502
  tableSearchForm = [{
10520
10503
  name: 'itemCode*multiInput',
10521
- label: '商品编码(SPU)',
10504
+ label: 'SPU编码',
10522
10505
  type: 'multipleQueryInput'
10523
10506
  }, {
10524
10507
  name: 'name*multiInput',
10525
- label: '商品名称(SPU)',
10508
+ label: 'SPU名称',
10526
10509
  type: 'multipleQueryInput'
10527
10510
  }, {
10528
10511
  name: 'qp-brandId-in',
@@ -10616,11 +10599,11 @@ function commonFun(type, prefixUrl, parentProps) {
10616
10599
  dataIndex: 'keyIndex',
10617
10600
  defaultSort: 0
10618
10601
  }, {
10619
- title: '商品编码(SPU)',
10602
+ title: 'SPU编码',
10620
10603
  dataIndex: 'itemCode',
10621
10604
  defaultSort: 1
10622
10605
  }, {
10623
- title: '商品名称(SPU) ',
10606
+ title: 'SPU名称',
10624
10607
  dataIndex: 'name',
10625
10608
  defaultSort: 2
10626
10609
  }, {
@@ -10974,7 +10957,7 @@ function commonFun(type, prefixUrl, parentProps) {
10974
10957
  options: getQueryHeadersItem(_queryHeaderParams5, 'qp-brandId-in')
10975
10958
  }], ['colorName', 'categoryId', 'classId', 'brandId'], hiddenFields);
10976
10959
  var fieldLoadSource = fieldsRequest.map(function (i) {
10977
- return loadSelectSource$1(i.url, i.params, options);
10960
+ return loadSelectSource$1(i.url, i.params, i.options);
10978
10961
  });
10979
10962
  requestConfig = _objectSpread2({
10980
10963
  url: "".concat(prefixUrl.selectPrefix, "/skc/skcSelect"),
@@ -11188,6 +11171,26 @@ function commonFun(type, prefixUrl, parentProps) {
11188
11171
  }, (requestConfigProp === null || requestConfigProp === void 0 ? void 0 : requestConfigProp.addOtherParams) || {}),
11189
11172
  sourceName: 'warehouseIds'
11190
11173
  }, requestConfigProp);
11174
+ var _queryHeaderParams7 = getQueryHeadersList({
11175
+ querySelectHeadersList: querySelectHeadersList,
11176
+ extralHeaders: extralHeaders
11177
+ });
11178
+ Promise.all([loadSelectSource$1("/channel-manage/channelInfo/tree", {
11179
+ 'qp-status-eq': 10,
11180
+ 'qp-isMain-eq': 1,
11181
+ 'qp-type-in': '1,2'
11182
+ }, getQueryHeadersItem(_queryHeaderParams7, 'qp-orgCode-in')), loadSelectSource$1("/channel-manage/tagNode/getTree/10", {
11183
+ 'qp-status-eq': 1
11184
+ }, getQueryHeadersItem(_queryHeaderParams7, 'qp-orgCode-in'))]).then(function (x) {
11185
+ var channelDisabledJude = function channelDisabledJude(data) {
11186
+ return data['parentCode'] === '0';
11187
+ }; // 所属销售渠道 树节点不能点判断
11188
+ var areaDisabledJude = function areaDisabledJude(data) {
11189
+ return data['parent'] === '0';
11190
+ }; // 所属营销区域 树节点不能点判断
11191
+ formatTreeDataSource(x, 0, 4, tableSearchForm, ['code', 'name'], 'channelInfoSon', channelDisabledJude);
11192
+ formatTreeDataSource(x, 1, 5, tableSearchForm, ['code', 'name'], 'children', areaDisabledJude);
11193
+ });
11191
11194
  tableSearchForm = [{
11192
11195
  name: 'realWarehouseName*multiInput',
11193
11196
  label: '逻辑仓名称',
@@ -11211,6 +11214,70 @@ function commonFun(type, prefixUrl, parentProps) {
11211
11214
  },
11212
11215
  label: '管理大区',
11213
11216
  initialSource: getDictionarySource$1('BUSINESS_belongArea')
11217
+ }, {
11218
+ name: 'qp-channelCode-in',
11219
+ type: 'treeSelect',
11220
+ label: '销售渠道',
11221
+ field: {
11222
+ type: 'treeSelect',
11223
+ props: {
11224
+ multiple: true,
11225
+ treeData: [],
11226
+ treeCheckable: false,
11227
+ notFoundContent: '暂无数据',
11228
+ allowClear: true,
11229
+ showSearch: true,
11230
+ showArrow: true,
11231
+ maxTagCount: 1,
11232
+ optionFilterProp: 'children',
11233
+ filterOption: function filterOption(input, option) {
11234
+ return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
11235
+ },
11236
+ showCheckedStrategy: 'TreeSelect.SHOW_ALL'
11237
+ }
11238
+ }
11239
+ }, {
11240
+ name: 'qp-refCode-in',
11241
+ type: 'treeSelect',
11242
+ label: '营销区域',
11243
+ field: {
11244
+ type: 'treeSelect',
11245
+ props: {
11246
+ multiple: true,
11247
+ treeData: [],
11248
+ treeCheckable: false,
11249
+ notFoundContent: '暂无数据',
11250
+ allowClear: true,
11251
+ showSearch: true,
11252
+ showArrow: true,
11253
+ maxTagCount: 1,
11254
+ optionFilterProp: 'children',
11255
+ filterOption: function filterOption(input, option) {
11256
+ return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
11257
+ },
11258
+ showCheckedStrategy: 'TreeSelect.SHOW_ALL'
11259
+ }
11260
+ }
11261
+ }, {
11262
+ name: 'qp-type-in',
11263
+ type: 'select',
11264
+ label: '店铺性质',
11265
+ field: {
11266
+ type: 'select',
11267
+ props: {
11268
+ mode: 'multiple',
11269
+ notFoundContent: '暂无数据',
11270
+ allowClear: true,
11271
+ showSearch: true,
11272
+ showArrow: true,
11273
+ maxTagCount: 1,
11274
+ optionFilterProp: 'children',
11275
+ filterOption: function filterOption(input, option) {
11276
+ return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
11277
+ }
11278
+ }
11279
+ },
11280
+ initialSource: getDictionarySource$1('BUSINESS_StoreType')
11214
11281
  }].concat(_toConsumableArray((modalTableBusProps === null || modalTableBusProps === void 0 ? void 0 : modalTableBusProps.needStatusSearch) ? [{
11215
11282
  name: 'qp-isEnable-eq',
11216
11283
  type: 'select',
@@ -11239,10 +11306,36 @@ function commonFun(type, prefixUrl, parentProps) {
11239
11306
  render: function render(text) {
11240
11307
  return getDictionaryTextByValue$1('SC00004', text);
11241
11308
  }
11309
+ }, {
11310
+ title: '运营组名称',
11311
+ dataIndex: 'groupCode',
11312
+ defaultSort: 7,
11313
+ render: function render(text, record) {
11314
+ return (record === null || record === void 0 ? void 0 : record.groupName) ? "\u3010".concat(text, "\u3011").concat(record === null || record === void 0 ? void 0 : record.groupName) : "";
11315
+ },
11316
+ width: 100
11317
+ }, {
11318
+ title: '所属销售渠道',
11319
+ dataIndex: 'channelName',
11320
+ defaultSort: 4,
11321
+ width: 100
11322
+ }, {
11323
+ title: '营销区域',
11324
+ dataIndex: 'commonRelationAreaName',
11325
+ defaultSort: 5,
11326
+ width: 100
11327
+ }, {
11328
+ title: '店铺性质',
11329
+ dataIndex: 'type',
11330
+ defaultSort: 6,
11331
+ render: function render(text) {
11332
+ return getDictionaryTextByValue$1('BUSINESS_StoreType', text);
11333
+ },
11334
+ width: 80
11242
11335
  }].concat(_toConsumableArray((modalTableBusProps === null || modalTableBusProps === void 0 ? void 0 : modalTableBusProps.needStatusSearch) ? [{
11243
11336
  title: '状态',
11244
11337
  dataIndex: 'isEnable',
11245
- defaultSort: 4,
11338
+ defaultSort: 8,
11246
11339
  render: function render(text) {
11247
11340
  return getDictionaryTextByValue$1('SC00001', text);
11248
11341
  }
@@ -11302,20 +11395,50 @@ function commonFun(type, prefixUrl, parentProps) {
11302
11395
  }
11303
11396
  }
11304
11397
  }
11398
+ }, {
11399
+ name: 'qp-channelCode-in',
11400
+ type: 'treeSelect',
11401
+ label: '销售渠道',
11402
+ field: {
11403
+ type: 'treeSelect',
11404
+ props: {
11405
+ multiple: true,
11406
+ treeData: [],
11407
+ treeCheckable: false,
11408
+ notFoundContent: '暂无数据',
11409
+ allowClear: true,
11410
+ showSearch: true,
11411
+ showArrow: true,
11412
+ maxTagCount: 1,
11413
+ optionFilterProp: 'children',
11414
+ filterOption: function filterOption(input, option) {
11415
+ return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
11416
+ },
11417
+ showCheckedStrategy: 'TreeSelect.SHOW_ALL'
11418
+ }
11419
+ }
11305
11420
  }].concat(_toConsumableArray((modalTableBusProps === null || modalTableBusProps === void 0 ? void 0 : modalTableBusProps.needStatusSearch) ? [{
11306
11421
  name: 'qp-status-eq',
11307
11422
  type: 'select',
11308
11423
  label: '运营仓状态',
11309
11424
  initialSource: getDictionarySource$1('SC00001')
11310
11425
  }] : []));
11311
- var _queryHeaderParams7 = getQueryHeadersList({
11426
+ var _queryHeaderParams8 = getQueryHeadersList({
11312
11427
  querySelectHeadersList: querySelectHeadersList,
11313
11428
  extralHeaders: extralHeaders
11314
11429
  });
11315
11430
  Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/groupInfo/listNoPage"), {
11316
11431
  'qp-status-eq': 1
11317
- }, getQueryHeadersItem(_queryHeaderParams7, 'qp-groupCode-in'))]).then(function (x) {
11432
+ }, getQueryHeadersItem(_queryHeaderParams8, 'qp-groupCode-in')), loadSelectSource$1("/channel-manage/channelInfo/tree", {
11433
+ 'qp-status-eq': 10,
11434
+ 'qp-isMain-eq': 1,
11435
+ 'qp-type-in': '1,2'
11436
+ }, getQueryHeadersItem(_queryHeaderParams8, 'qp-orgCode-in'))]).then(function (x) {
11318
11437
  formatSource(x, 0, 2, tableSearchForm, ['groupCode', 'groupName']);
11438
+ var channelDisabledJude = function channelDisabledJude(data) {
11439
+ return data['parentCode'] === '0';
11440
+ }; // 所属销售渠道 树节点不能点判断
11441
+ formatTreeDataSource(x, 1, 3, tableSearchForm, ['code', 'name'], 'channelInfoSon', channelDisabledJude);
11319
11442
  });
11320
11443
  modalTableProps = _objectSpread2({
11321
11444
  modalTableTitle: '选择运营仓',
@@ -11343,7 +11466,12 @@ function commonFun(type, prefixUrl, parentProps) {
11343
11466
  render: function render(text) {
11344
11467
  return getDictionaryTextByValue$1('SC00001', text);
11345
11468
  }
11346
- }] : []))
11469
+ }] : []), [{
11470
+ title: '所属销售渠道',
11471
+ dataIndex: 'channelName',
11472
+ defaultSort: 5,
11473
+ width: 100
11474
+ }])
11347
11475
  }, modalTableBusProps);
11348
11476
  }
11349
11477
  // 仓库选择器(虚拟、渠道仓)(无弹窗)
@@ -11492,7 +11620,7 @@ function commonFun(type, prefixUrl, parentProps) {
11492
11620
  label: '共享类型',
11493
11621
  initialSource: sharingTypeDataList
11494
11622
  }];
11495
- var _queryHeaderParams8 = getQueryHeadersList({
11623
+ var _queryHeaderParams9 = getQueryHeadersList({
11496
11624
  querySelectHeadersList: querySelectHeadersList,
11497
11625
  extralHeaders: extralHeaders
11498
11626
  });
@@ -11500,14 +11628,14 @@ function commonFun(type, prefixUrl, parentProps) {
11500
11628
  pageSize: 5000,
11501
11629
  currentPage: 1,
11502
11630
  'qp-companyType-eq': '30'
11503
- }, getQueryHeadersItem(_queryHeaderParams8, 'qp-conglomerateCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/accountingSubject"), {
11631
+ }, getQueryHeadersItem(_queryHeaderParams9, 'qp-conglomerateCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/accountingSubject"), {
11504
11632
  pageSize: 5000,
11505
11633
  currentPage: 1
11506
- }, getQueryHeadersItem(_queryHeaderParams8, 'qp-accountingCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/company"), {
11634
+ }, getQueryHeadersItem(_queryHeaderParams9, 'qp-accountingCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/company"), {
11507
11635
  pageSize: 5000,
11508
11636
  currentPage: 1,
11509
11637
  'qp-companyType-eq': '20'
11510
- }, getQueryHeadersItem(_queryHeaderParams8, 'qp-sharingType-in'))]).then(function (x) {
11638
+ }, getQueryHeadersItem(_queryHeaderParams9, 'qp-sharingType-in'))]).then(function (x) {
11511
11639
  formatSource(x, 0, 2, tableSearchForm);
11512
11640
  formatSource(x, 1, 3, tableSearchForm);
11513
11641
  formatSource(x, 2, 4, tableSearchForm);
@@ -11580,7 +11708,8 @@ function commonFun(type, prefixUrl, parentProps) {
11580
11708
  label: '客户名称'
11581
11709
  }, {
11582
11710
  name: 'qp-code-like',
11583
- label: '客户编码'
11711
+ label: '客户编码',
11712
+ type: 'multipleQueryInput'
11584
11713
  }, {
11585
11714
  name: 'qp-createOrgCode-eq',
11586
11715
  type: 'select',
@@ -11619,16 +11748,74 @@ function commonFun(type, prefixUrl, parentProps) {
11619
11748
  }
11620
11749
  }
11621
11750
  }
11751
+ }, {
11752
+ name: 'qp-saleChannel-in',
11753
+ type: 'treeSelect',
11754
+ label: '销售渠道',
11755
+ field: {
11756
+ type: 'treeSelect',
11757
+ props: {
11758
+ multiple: true,
11759
+ treeData: [],
11760
+ treeCheckable: false,
11761
+ notFoundContent: '暂无数据',
11762
+ allowClear: true,
11763
+ showSearch: true,
11764
+ showArrow: true,
11765
+ maxTagCount: 1,
11766
+ optionFilterProp: 'children',
11767
+ filterOption: function filterOption(input, option) {
11768
+ return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
11769
+ },
11770
+ showCheckedStrategy: 'TreeSelect.SHOW_ALL'
11771
+ }
11772
+ }
11773
+ }, {
11774
+ name: 'qp-refCode-in',
11775
+ type: 'treeSelect',
11776
+ label: '营销区域',
11777
+ field: {
11778
+ type: 'treeSelect',
11779
+ props: {
11780
+ multiple: true,
11781
+ treeData: [],
11782
+ treeCheckable: false,
11783
+ notFoundContent: '暂无数据',
11784
+ allowClear: true,
11785
+ showSearch: true,
11786
+ showArrow: true,
11787
+ maxTagCount: 1,
11788
+ optionFilterProp: 'children',
11789
+ filterOption: function filterOption(input, option) {
11790
+ return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
11791
+ },
11792
+ showCheckedStrategy: 'TreeSelect.SHOW_ALL'
11793
+ }
11794
+ }
11622
11795
  }];
11623
- var _queryHeaderParams9 = getQueryHeadersList({
11796
+ var _queryHeaderParams0 = getQueryHeadersList({
11624
11797
  querySelectHeadersList: querySelectHeadersList,
11625
11798
  extralHeaders: extralHeaders
11626
11799
  });
11627
- Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/org/listNoPage"), {}, getQueryHeadersItem(_queryHeaderParams9, 'qp-createOrgCode-eq'))]).then(function (x) {
11800
+ Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/org/listNoPage"), {}, getQueryHeadersItem(_queryHeaderParams0, 'qp-createOrgCode-eq')), loadSelectSource$1("/channel-manage/channelInfo/tree", {
11801
+ 'qp-status-eq': 10,
11802
+ 'qp-isMain-eq': 1,
11803
+ 'qp-type-in': '1,2'
11804
+ }, getQueryHeadersItem(_queryHeaderParams0, 'qp-orgCode-in')), loadSelectSource$1("/channel-manage/tagNode/getTree/10", {
11805
+ 'qp-status-eq': 1
11806
+ }, getQueryHeadersItem(_queryHeaderParams0, 'qp-orgCode-in'))]).then(function (x) {
11628
11807
  var firstElement = x === null || x === void 0 ? void 0 : x[0];
11629
11808
  var allList = firstElement && [firstElement, firstElement];
11630
11809
  formatSource(allList, 0, 2, tableSearchForm);
11631
11810
  formatSource(allList, 1, 3, tableSearchForm);
11811
+ var channelDisabledJude = function channelDisabledJude(data) {
11812
+ return data['parentCode'] === '0';
11813
+ }; // 所属销售渠道 树节点不能点判断
11814
+ var areaDisabledJude = function areaDisabledJude(data) {
11815
+ return data['parent'] === '0';
11816
+ }; // 所属营销区域 树节点不能点判断
11817
+ formatTreeDataSource(x, 1, 4, tableSearchForm, ['code', 'name'], 'channelInfoSon', channelDisabledJude);
11818
+ formatTreeDataSource(x, 2, 5, tableSearchForm, ['code', 'name'], 'children', areaDisabledJude);
11632
11819
  });
11633
11820
  modalTableProps = _objectSpread2({
11634
11821
  modalTableTitle: '选择客户',
@@ -11652,7 +11839,18 @@ function commonFun(type, prefixUrl, parentProps) {
11652
11839
  }, {
11653
11840
  title: '使用组织',
11654
11841
  dataIndex: 'salesOrgName',
11655
- defaultSort: 4
11842
+ defaultSort: 4,
11843
+ width: 100
11844
+ }, {
11845
+ title: '所属销售渠道',
11846
+ dataIndex: 'channelName',
11847
+ defaultSort: 5,
11848
+ width: 100
11849
+ }, {
11850
+ title: '营销区域',
11851
+ dataIndex: 'commonRelationAreaName',
11852
+ defaultSort: 6,
11853
+ width: 100
11656
11854
  }]
11657
11855
  }, modalTableBusProps);
11658
11856
  }
@@ -11680,12 +11878,17 @@ function commonFun(type, prefixUrl, parentProps) {
11680
11878
  sourceName: 'code'
11681
11879
  }, requestConfigProp);
11682
11880
  tableSearchForm = [{
11683
- name: 'qp-name-like',
11684
- label: '店铺名称'
11685
- }, {
11686
- name: 'qp-code-like',
11687
- label: '店铺编码'
11881
+ name: 'name*multiInput',
11882
+ label: '店铺名称',
11883
+ type: 'multipleQueryInput'
11688
11884
  }, {
11885
+ name: 'code*multiInput',
11886
+ label: '店铺编码',
11887
+ type: 'multipleQueryInput'
11888
+ },
11889
+ // { name: 'qp-name-like', label: '店铺名称' },
11890
+ // { name: 'qp-code-like', label: '店铺编码' },
11891
+ {
11689
11892
  name: 'qp-conglomerateCode-in',
11690
11893
  type: 'select',
11691
11894
  label: '归属集团',
@@ -11786,7 +11989,7 @@ function commonFun(type, prefixUrl, parentProps) {
11786
11989
  }
11787
11990
  }
11788
11991
  }];
11789
- var _queryHeaderParams10 = getQueryHeadersList({
11992
+ var _queryHeaderParams1 = getQueryHeadersList({
11790
11993
  querySelectHeadersList: querySelectHeadersList,
11791
11994
  extralHeaders: extralHeaders
11792
11995
  });
@@ -11794,21 +11997,21 @@ function commonFun(type, prefixUrl, parentProps) {
11794
11997
  pageSize: 5000,
11795
11998
  currentPage: 1,
11796
11999
  'qp-companyType-eq': '30'
11797
- }, getQueryHeadersItem(_queryHeaderParams10, 'qp-conglomerateCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/company"), {
12000
+ }, getQueryHeadersItem(_queryHeaderParams1, 'qp-conglomerateCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/company"), {
11798
12001
  pageSize: 5000,
11799
12002
  currentPage: 1,
11800
12003
  'qp-companyType-eq': '20'
11801
- }, getQueryHeadersItem(_queryHeaderParams10, 'qp-companyCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/platformRecord/getPlatformRecordList"), {
12004
+ }, getQueryHeadersItem(_queryHeaderParams1, 'qp-companyCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/platformRecord/getPlatformRecordList"), {
11802
12005
  // pageSize: 5000,
11803
12006
  // currentPage: 1,
11804
12007
  'qp-status-eq': '1'
11805
- }, getQueryHeadersItem(_queryHeaderParams10, 'qp-plateformCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/store"), {
12008
+ }, getQueryHeadersItem(_queryHeaderParams1, 'qp-plateformCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/store"), {
11806
12009
  pageSize: 5000,
11807
12010
  currentPage: 1
11808
- }, getQueryHeadersItem(_queryHeaderParams10, 'qp-mainBrandCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/accountingSubject"), {
12011
+ }, getQueryHeadersItem(_queryHeaderParams1, 'qp-mainBrandCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/accountingSubject"), {
11809
12012
  pageSize: 5000,
11810
12013
  currentPage: 1
11811
- }, getQueryHeadersItem(_queryHeaderParams10, 'qp-accountingCode-in'))]).then(function (x) {
12014
+ }, getQueryHeadersItem(_queryHeaderParams1, 'qp-accountingCode-in'))]).then(function (x) {
11812
12015
  formatSource(x, 0, 2, tableSearchForm);
11813
12016
  formatSource(x, 1, 3, tableSearchForm);
11814
12017
  formatSource(x, 2, 5, tableSearchForm);
@@ -11874,7 +12077,8 @@ function commonFun(type, prefixUrl, parentProps) {
11874
12077
  mappingTextField: 'name',
11875
12078
  mappingValueField: 'code',
11876
12079
  otherParams: _objectSpread2({
11877
- sorter: 'desc-id'
12080
+ sorter: 'desc-id',
12081
+ 'qp-status-in': 10
11878
12082
  }, (requestConfigProp === null || requestConfigProp === void 0 ? void 0 : requestConfigProp.addOtherParams) || {}),
11879
12083
  sourceName: 'code'
11880
12084
  }, requestConfigProp);
@@ -11891,12 +12095,9 @@ function commonFun(type, prefixUrl, parentProps) {
11891
12095
  type: 'select',
11892
12096
  label: '商店类型',
11893
12097
  initialSource: shopFile2Type
11894
- }, {
11895
- name: 'qp-status-in',
11896
- type: 'select',
11897
- label: '商店状态',
11898
- initialSource: shopFile2Status
11899
- }, {
12098
+ },
12099
+ // { name: 'qp-status-in', type: 'select', label: '商店状态', initialSource: shopFile2Status },
12100
+ {
11900
12101
  name: 'qp-orgCode-in',
11901
12102
  type: 'select',
11902
12103
  label: '所属销售组织',
@@ -11915,8 +12116,90 @@ function commonFun(type, prefixUrl, parentProps) {
11915
12116
  }
11916
12117
  }
11917
12118
  }
12119
+ }, {
12120
+ name: 'qp-channelCode-in',
12121
+ type: 'treeSelect',
12122
+ label: '所属销售渠道',
12123
+ field: {
12124
+ type: 'treeSelect',
12125
+ props: {
12126
+ multiple: true,
12127
+ treeData: [],
12128
+ treeCheckable: false,
12129
+ notFoundContent: '暂无数据',
12130
+ allowClear: true,
12131
+ showSearch: true,
12132
+ showArrow: true,
12133
+ maxTagCount: 1,
12134
+ optionFilterProp: 'children',
12135
+ filterOption: function filterOption(input, option) {
12136
+ return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
12137
+ },
12138
+ showCheckedStrategy: 'TreeSelect.SHOW_ALL'
12139
+ }
12140
+ }
12141
+ }, {
12142
+ name: 'qp-commonRelationAreaCode-in',
12143
+ type: 'treeSelect',
12144
+ label: '营销区域',
12145
+ field: {
12146
+ type: 'treeSelect',
12147
+ props: {
12148
+ multiple: true,
12149
+ treeData: [],
12150
+ treeCheckable: false,
12151
+ notFoundContent: '暂无数据',
12152
+ allowClear: true,
12153
+ showSearch: true,
12154
+ showArrow: true,
12155
+ maxTagCount: 1,
12156
+ optionFilterProp: 'children',
12157
+ filterOption: function filterOption(input, option) {
12158
+ return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
12159
+ },
12160
+ showCheckedStrategy: 'TreeSelect.SHOW_ALL'
12161
+ }
12162
+ }
12163
+ }, {
12164
+ name: 'qp-businessType-in',
12165
+ type: 'select',
12166
+ label: '店铺性质',
12167
+ field: {
12168
+ type: 'select',
12169
+ props: {
12170
+ mode: 'multiple',
12171
+ notFoundContent: '暂无数据',
12172
+ allowClear: true,
12173
+ showSearch: true,
12174
+ showArrow: true,
12175
+ maxTagCount: 1,
12176
+ optionFilterProp: 'children',
12177
+ filterOption: function filterOption(input, option) {
12178
+ return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
12179
+ }
12180
+ }
12181
+ },
12182
+ initialSource: getDictionarySource$1('BUSINESS_StoreType')
12183
+ }, {
12184
+ name: "qp-brandCode-in",
12185
+ label: "品牌",
12186
+ field: {
12187
+ type: 'select',
12188
+ props: {
12189
+ mode: 'multiple',
12190
+ notFoundContent: '暂无数据',
12191
+ allowClear: true,
12192
+ showSearch: true,
12193
+ showArrow: true,
12194
+ maxTagCount: 1,
12195
+ optionFilterProp: 'children',
12196
+ filterOption: function filterOption(input, option) {
12197
+ return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
12198
+ }
12199
+ }
12200
+ }
11918
12201
  }];
11919
- var _queryHeaderParams11 = getQueryHeadersList({
12202
+ var _queryHeaderParams10 = getQueryHeadersList({
11920
12203
  querySelectHeadersList: querySelectHeadersList,
11921
12204
  extralHeaders: extralHeaders
11922
12205
  });
@@ -11924,8 +12207,27 @@ function commonFun(type, prefixUrl, parentProps) {
11924
12207
  'qp-employeeCode-eq': getEmployeeCode(),
11925
12208
  'qp-realOrg-eq': true,
11926
12209
  'qp-status-eq': 10
11927
- }, getQueryHeadersItem(_queryHeaderParams11, 'qp-orgCode-in'))]).then(function (x) {
11928
- formatSource(x, 0, 4, tableSearchForm);
12210
+ }, getQueryHeadersItem(_queryHeaderParams10, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/channelInfo/tree"), {
12211
+ 'qp-status-eq': 10,
12212
+ 'qp-isMain-eq': 1,
12213
+ 'qp-type-in': '1,2'
12214
+ }, getQueryHeadersItem(_queryHeaderParams10, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/tagNode/getTree/10"), {
12215
+ 'qp-status-eq': 1
12216
+ }, getQueryHeadersItem(_queryHeaderParams10, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/brand/queryBrandList"), {
12217
+ pageSize: 5000,
12218
+ currentPage: 1,
12219
+ 'ctl-withAuth': true
12220
+ }, getQueryHeadersItem(_queryHeaderParams10, 'ctl-withAuth'))]).then(function (x) {
12221
+ var channelDisabledJude = function channelDisabledJude(data) {
12222
+ return data['parentCode'] === '0';
12223
+ }; // 所属销售渠道 树节点不能点判断
12224
+ var areaDisabledJude = function areaDisabledJude(data) {
12225
+ return data['parent'] === '0';
12226
+ }; // 所属营销区域 树节点不能点判断
12227
+ formatSource(x, 0, 3, tableSearchForm);
12228
+ formatTreeDataSource(x, 1, 4, tableSearchForm, ['code', 'name'], 'channelInfoSon', channelDisabledJude);
12229
+ formatTreeDataSource(x, 2, 5, tableSearchForm, ['code', 'name'], 'children', areaDisabledJude);
12230
+ formatSource(x, 3, 7, tableSearchForm, ['brandCode', 'name']);
11929
12231
  });
11930
12232
  modalTableProps = _objectSpread2({
11931
12233
  modalTableTitle: '选择商店',
@@ -11933,19 +12235,23 @@ function commonFun(type, prefixUrl, parentProps) {
11933
12235
  tableColumns: [{
11934
12236
  title: '序号',
11935
12237
  dataIndex: 'keyIndex',
11936
- defaultSort: 0
12238
+ defaultSort: 0,
12239
+ width: 60
11937
12240
  }, {
11938
12241
  title: '商店编码',
11939
12242
  dataIndex: 'code',
11940
- defaultSort: 1
12243
+ defaultSort: 1,
12244
+ width: 100
11941
12245
  }, {
11942
12246
  title: '商店名称',
11943
12247
  dataIndex: 'name',
11944
- defaultSort: 2
12248
+ defaultSort: 2,
12249
+ width: 120
11945
12250
  }, {
11946
12251
  title: '商店类型',
11947
12252
  dataIndex: 'type',
11948
12253
  defaultSort: 3,
12254
+ width: 100,
11949
12255
  render: function render(text) {
11950
12256
  var _shopFile2Type$find;
11951
12257
  return (_shopFile2Type$find = shopFile2Type.find(function (i) {
@@ -11955,6 +12261,7 @@ function commonFun(type, prefixUrl, parentProps) {
11955
12261
  }, {
11956
12262
  title: '启用状态',
11957
12263
  dataIndex: 'status',
12264
+ width: 80,
11958
12265
  render: function render(text) {
11959
12266
  var _shopFile2Status$find;
11960
12267
  return (_shopFile2Status$find = shopFile2Status.find(function (i) {
@@ -11964,8 +12271,28 @@ function commonFun(type, prefixUrl, parentProps) {
11964
12271
  }, {
11965
12272
  title: '所属销售组织',
11966
12273
  dataIndex: 'orgName',
11967
- defaultSort: 4
11968
- }]
12274
+ defaultSort: 4,
12275
+ width: 95
12276
+ }, {
12277
+ title: '所属销售渠道',
12278
+ dataIndex: 'channelName',
12279
+ defaultSort: 5,
12280
+ width: 100
12281
+ }, {
12282
+ title: '营销区域',
12283
+ dataIndex: 'commonRelationAreaName',
12284
+ defaultSort: 6,
12285
+ width: 100
12286
+ }, {
12287
+ title: '店铺性质',
12288
+ dataIndex: 'businessType',
12289
+ defaultSort: 7,
12290
+ render: function render(text) {
12291
+ return getDictionaryTextByValue$1('BUSINESS_StoreType', text);
12292
+ },
12293
+ width: 80
12294
+ }],
12295
+ noEmptySearchField: true
11969
12296
  }, modalTableBusProps);
11970
12297
  }
11971
12298
  // 核算主体选择器(无弹窗)
@@ -12129,7 +12456,7 @@ function commonFun(type, prefixUrl, parentProps) {
12129
12456
  name: 'qp-officeTelephone-like',
12130
12457
  label: '手机号'
12131
12458
  }];
12132
- var _queryHeaderParams12 = getQueryHeadersList({
12459
+ var _queryHeaderParams11 = getQueryHeadersList({
12133
12460
  querySelectHeadersList: querySelectHeadersList,
12134
12461
  extralHeaders: extralHeaders
12135
12462
  });
@@ -12137,7 +12464,7 @@ function commonFun(type, prefixUrl, parentProps) {
12137
12464
  pageSize: 5000,
12138
12465
  currentPage: 1,
12139
12466
  'qp-companyType-eq': 20
12140
- }, getQueryHeadersItem(_queryHeaderParams12, 'qp-companyCode-in'))]).then(function (x) {
12467
+ }, getQueryHeadersItem(_queryHeaderParams11, 'qp-companyCode-in'))]).then(function (x) {
12141
12468
  formatSource(x, 0, 2, tableSearchForm);
12142
12469
  });
12143
12470
  modalTableProps = _objectSpread2({
@@ -12243,16 +12570,16 @@ function commonFun(type, prefixUrl, parentProps) {
12243
12570
  name: 'qp-email-like',
12244
12571
  label: '邮箱'
12245
12572
  }, {
12246
- name: 'qp-officeTelephone-like',
12573
+ name: 'qp-phone-like',
12247
12574
  label: '手机号'
12248
12575
  }]);
12249
- var _queryHeaderParams13 = getQueryHeadersList({
12576
+ var _queryHeaderParams12 = getQueryHeadersList({
12250
12577
  querySelectHeadersList: querySelectHeadersList,
12251
12578
  extralHeaders: extralHeaders
12252
12579
  });
12253
12580
  Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgViewNode/common/getTreeForOrgViewAndTenant"), {
12254
12581
  'orgViewCode': 'administrative-organization-view'
12255
- }, getQueryHeadersItem(_queryHeaderParams13, 'qp-code-in'))]).then(function (x) {
12582
+ }, getQueryHeadersItem(_queryHeaderParams12, 'qp-code-in'))]).then(function (x) {
12256
12583
  formatTreeDataSource(x, 0, 2, tableSearchForm, ['code', 'name']);
12257
12584
  });
12258
12585
  modalTableProps = _objectSpread2({
@@ -12303,7 +12630,7 @@ function commonFun(type, prefixUrl, parentProps) {
12303
12630
  dataIndex: 'email'
12304
12631
  }, {
12305
12632
  title: '手机号',
12306
- dataIndex: 'officeTelephone',
12633
+ dataIndex: 'phone',
12307
12634
  defaultSort: 4,
12308
12635
  render: function render(text, record) {
12309
12636
  return handleTextOverflow(text || (record === null || record === void 0 ? void 0 : record.phone));
@@ -12399,17 +12726,17 @@ function commonFun(type, prefixUrl, parentProps) {
12399
12726
  name: 'qp-remark-like',
12400
12727
  label: '备注'
12401
12728
  }];
12402
- var _queryHeaderParams14 = getQueryHeadersList({
12729
+ var _queryHeaderParams13 = getQueryHeadersList({
12403
12730
  querySelectHeadersList: querySelectHeadersList,
12404
12731
  extralHeaders: extralHeaders
12405
12732
  });
12406
12733
  Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/logisCompany"), {
12407
12734
  pageSize: 5000,
12408
12735
  currentPage: 1
12409
- }, getQueryHeadersItem(_queryHeaderParams14, logisCompanyCodeSingleSearchName)), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/printTemplate"), {
12736
+ }, getQueryHeadersItem(_queryHeaderParams13, logisCompanyCodeSingleSearchName)), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/printTemplate"), {
12410
12737
  pageSize: 5000,
12411
12738
  currentPage: 1
12412
- }, getQueryHeadersItem(_queryHeaderParams14, 'qp-sheetTemplateCode-in'))]).then(function (x) {
12739
+ }, getQueryHeadersItem(_queryHeaderParams13, 'qp-sheetTemplateCode-in'))]).then(function (x) {
12413
12740
  formatSource(x, 0, 2, tableSearchForm);
12414
12741
  formatSource(x, 1, 5, tableSearchForm);
12415
12742
  });
@@ -12579,14 +12906,14 @@ function commonFun(type, prefixUrl, parentProps) {
12579
12906
  }
12580
12907
  }
12581
12908
  }];
12582
- var _queryHeaderParams15 = getQueryHeadersList({
12909
+ var _queryHeaderParams14 = getQueryHeadersList({
12583
12910
  querySelectHeadersList: querySelectHeadersList,
12584
12911
  extralHeaders: extralHeaders
12585
12912
  });
12586
12913
  Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/permissionCategory"), {
12587
12914
  pageSize: 5000,
12588
12915
  currentPage: 1
12589
- }, getQueryHeadersItem(_queryHeaderParams15, 'qp-categoryCode-eq'))]).then(function (x) {
12916
+ }, getQueryHeadersItem(_queryHeaderParams14, 'qp-categoryCode-eq'))]).then(function (x) {
12590
12917
  formatSource(x, 0, 2, tableSearchForm);
12591
12918
  });
12592
12919
  modalTableProps = _objectSpread2({
@@ -12683,7 +13010,7 @@ function commonFun(type, prefixUrl, parentProps) {
12683
13010
  }
12684
13011
  }
12685
13012
  }];
12686
- var _queryHeaderParams16 = getQueryHeadersList({
13013
+ var _queryHeaderParams15 = getQueryHeadersList({
12687
13014
  querySelectHeadersList: querySelectHeadersList,
12688
13015
  extralHeaders: extralHeaders
12689
13016
  });
@@ -12691,7 +13018,7 @@ function commonFun(type, prefixUrl, parentProps) {
12691
13018
  'qp-employeeCode-eq': getEmployeeCode(),
12692
13019
  'qp-realOrg-eq': true,
12693
13020
  'qp-status-eq': 10
12694
- }, getQueryHeadersItem(_queryHeaderParams16, 'qp-salesOrgCode-in'))]).then(function (x) {
13021
+ }, getQueryHeadersItem(_queryHeaderParams15, 'qp-salesOrgCode-in'))]).then(function (x) {
12695
13022
  formatSource(x, 0, 2, tableSearchForm);
12696
13023
  });
12697
13024
  modalTableProps = _objectSpread2({
@@ -12797,13 +13124,13 @@ function commonFun(type, prefixUrl, parentProps) {
12797
13124
  },
12798
13125
  initialSource: nodeType
12799
13126
  }];
12800
- var _queryHeaderParams17 = getQueryHeadersList({
13127
+ var _queryHeaderParams16 = getQueryHeadersList({
12801
13128
  querySelectHeadersList: querySelectHeadersList,
12802
13129
  extralHeaders: extralHeaders
12803
13130
  });
12804
13131
  Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgView/getOrgViewListNoPage"), {
12805
13132
  'qp-status-eq': 10
12806
- }, getQueryHeadersItem(_queryHeaderParams17, 'qp-orgViewCode-in'))]).then(function (x) {
13133
+ }, getQueryHeadersItem(_queryHeaderParams16, 'qp-orgViewCode-in'))]).then(function (x) {
12807
13134
  formatSource(x, 0, 2, tableSearchForm);
12808
13135
  });
12809
13136
  modalTableProps = _objectSpread2({
@@ -13129,13 +13456,13 @@ function commonFun(type, prefixUrl, parentProps) {
13129
13456
  },
13130
13457
  initialSource: nodeType
13131
13458
  }];
13132
- var _queryHeaderParams18 = getQueryHeadersList({
13459
+ var _queryHeaderParams17 = getQueryHeadersList({
13133
13460
  querySelectHeadersList: querySelectHeadersList,
13134
13461
  extralHeaders: extralHeaders
13135
13462
  });
13136
13463
  Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgView/getOrgViewListNoPage"), {
13137
13464
  'qp-status-eq': 10
13138
- }, getQueryHeadersItem(_queryHeaderParams18, 'qp-orgViewCode-in'))]).then(function (x) {
13465
+ }, getQueryHeadersItem(_queryHeaderParams17, 'qp-orgViewCode-in'))]).then(function (x) {
13139
13466
  formatSource(x, 0, 2, tableSearchForm);
13140
13467
  });
13141
13468
  modalTableProps = _objectSpread2({
@@ -14080,9 +14407,9 @@ var AddSpuSelect = function AddSpuSelect(parProps) {
14080
14407
  value = _useState8[0],
14081
14408
  setValue = _useState8[1];
14082
14409
  var _useState9 = React$1.useState([]),
14083
- _useState10 = _slicedToArray(_useState9, 2),
14084
- propertyList = _useState10[0],
14085
- setPropertyList = _useState10[1];
14410
+ _useState0 = _slicedToArray(_useState9, 2),
14411
+ propertyList = _useState0[0],
14412
+ setPropertyList = _useState0[1];
14086
14413
  React$1.useEffect(function () {
14087
14414
  if (parProps === null || parProps === void 0 ? void 0 : parProps.isSingleColor) {
14088
14415
  // type: 1 尺码组; 2 配码组
@@ -14505,7 +14832,7 @@ function getStorageVale(storageKeyString) {
14505
14832
  var _storageKeyString$spl = storageKeyString.split('.'),
14506
14833
  _storageKeyString$spl2 = _toArray(_storageKeyString$spl),
14507
14834
  localstorage = _storageKeyString$spl2[0],
14508
- restKeyArrays = _storageKeyString$spl2.slice(1);
14835
+ restKeyArrays = _arrayLikeToArray(_storageKeyString$spl2).slice(1);
14509
14836
  var localStorageInfo = window.localStorage.getItem(localstorage);
14510
14837
  if (!restKeyArrays.length) return localStorageInfo;
14511
14838
  var returnVal = JSON.parse(localStorageInfo || '{}');
@@ -14606,46 +14933,45 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
14606
14933
  requestUtil.get("".concat(url, "?").concat(querystring.stringify(paramsData)), {
14607
14934
  headers: headers
14608
14935
  }).then(/*#__PURE__*/function () {
14609
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(res) {
14936
+ var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(res) {
14610
14937
  var _ctx$form;
14611
14938
  var resData, coverData, data, dataList;
14612
- return _regeneratorRuntime().wrap(function _callee$(_context) {
14613
- while (1) switch (_context.prev = _context.next) {
14939
+ return _regenerator().w(function (_context) {
14940
+ while (1) switch (_context.n) {
14614
14941
  case 0:
14615
14942
  resData = (res === null || res === void 0 ? void 0 : res.data) || [];
14616
14943
  if (!judgeIsRequestSuccess(resData)) {
14617
- _context.next = 13;
14944
+ _context.n = 4;
14618
14945
  break;
14619
14946
  }
14620
14947
  data = resData.data;
14621
14948
  if (!remoteSource.converter) {
14622
- _context.next = 9;
14949
+ _context.n = 2;
14623
14950
  break;
14624
14951
  }
14625
- _context.next = 6;
14952
+ _context.n = 1;
14626
14953
  return remoteSource.converter({
14627
14954
  data: [data]
14628
14955
  });
14629
- case 6:
14630
- coverData = _context.sent;
14631
- _context.next = 11;
14956
+ case 1:
14957
+ coverData = _context.v;
14958
+ _context.n = 3;
14632
14959
  break;
14633
- case 9:
14960
+ case 2:
14634
14961
  dataList = data && Array.isArray(data) ? data : data && [data] || [];
14635
14962
  coverData = dataList.length && dataList.map(function (ites) {
14636
14963
  return _mapSearchTree(ites);
14637
14964
  }) || [];
14638
- case 11:
14639
- _context.next = 14;
14965
+ case 3:
14966
+ _context.n = 5;
14640
14967
  break;
14641
- case 13:
14968
+ case 4:
14642
14969
  coverData = [];
14643
- case 14:
14970
+ case 5:
14644
14971
  setTreeData(coverData);
14645
14972
  ctx === null || ctx === void 0 ? void 0 : (_ctx$form = ctx.form) === null || _ctx$form === void 0 ? void 0 : _ctx$form.setFieldSource(ctx.name, coverData);
14646
- case 16:
14647
- case "end":
14648
- return _context.stop();
14973
+ case 6:
14974
+ return _context.a(2);
14649
14975
  }
14650
14976
  }, _callee);
14651
14977
  }));
@@ -17048,7 +17374,9 @@ var DetailWrapper = /*#__PURE__*/React__default['default'].memo(function (_ref)
17048
17374
  title = _ref.title,
17049
17375
  pathToRegexp = _ref.pathToRegexp,
17050
17376
  backHistoryPath = _ref.backHistoryPath,
17051
- onBack = _ref.onBack;
17377
+ onBack = _ref.onBack,
17378
+ tradeType = _ref.tradeType,
17379
+ fromStatus = _ref.fromStatus;
17052
17380
  var _useState3 = React$1.useState(false),
17053
17381
  _useState4 = _slicedToArray(_useState3, 2),
17054
17382
  isFullScreen = _useState4[0],
@@ -17131,14 +17459,50 @@ var DetailWrapper = /*#__PURE__*/React__default['default'].memo(function (_ref)
17131
17459
  }
17132
17460
  }
17133
17461
  };
17462
+ var getFlowButtons = function getFlowButtons() {
17463
+ try {
17464
+ return JSON.parse(localStorage.getItem('BUSINESS_FLOW_BUTTONS') || '[]');
17465
+ } catch (e) {
17466
+ return [];
17467
+ }
17468
+ };
17469
+ var filterByFlowRules = function filterByFlowRules(list, ctx) {
17470
+ var _find;
17471
+ var flowList = getFlowButtons();
17472
+ if (!(flowList === null || flowList === void 0 ? void 0 : flowList.length) || typeof ctx.tradeType !== 'number') return list;
17473
+ var entry = flowList.find(function (i) {
17474
+ return (i === null || i === void 0 ? void 0 : i.tradeType) === ctx.tradeType;
17475
+ });
17476
+ if (!entry) return list;
17477
+ var ctrlSet = new Set(((entry === null || entry === void 0 ? void 0 : entry.controlButtons) || []).filter(Boolean));
17478
+ var statButtons = ((_find = ((entry === null || entry === void 0 ? void 0 : entry.config) || []).find(function (c) {
17479
+ return (c === null || c === void 0 ? void 0 : c.fromStatus) === ctx.status;
17480
+ })) === null || _find === void 0 ? void 0 : _find.buttons) || [];
17481
+ var allowedSet = new Set((statButtons || []).filter(Boolean).filter(function (b) {
17482
+ return ctrlSet.size ? ctrlSet.has(b) : true;
17483
+ }));
17484
+ return list.filter(function (ui) {
17485
+ var _ui$props3, _ui$props4;
17486
+ var uiCode = ui.code || ui.buttonCode || (ui === null || ui === void 0 ? void 0 : (_ui$props3 = ui.props) === null || _ui$props3 === void 0 ? void 0 : _ui$props3.code) || (ui === null || ui === void 0 ? void 0 : (_ui$props4 = ui.props) === null || _ui$props4 === void 0 ? void 0 : _ui$props4.buttonCode);
17487
+ if (!uiCode) return true;
17488
+ if (ctrlSet.size && !ctrlSet.has(uiCode)) return true; // 非流程控制按钮不处理
17489
+ return allowedSet.has(uiCode);
17490
+ });
17491
+ };
17134
17492
  var renderPageActionList = function renderPageActionList(actionLists) {
17135
17493
  var _actionLists$;
17136
17494
  var authButton = localStorage.getItem(getMenuAuthDataKey()) ? JSON.parse(localStorage.getItem(getMenuAuthDataKey())) : [];
17137
17495
  var visibleActions = actionLists.filter(function (action) {
17138
- return (action.visible && action.visible !== 'false' || judgeIsEmpty$1(action.visible)) && (!shouldUseAuth() || judgeIsEmpty$1(action.code) || authButton.filter(function (item) {
17496
+ return (action.visible && action.visible !== 'false' || judgeIsEmpty$1(action.visible)) && (!shouldUseAuth() || judgeIsEmpty$1(action.code) || authButton.some(function (item) {
17139
17497
  return item === action.code;
17140
17498
  }));
17141
17499
  });
17500
+ if (typeof tradeType === 'number') {
17501
+ visibleActions = filterByFlowRules(visibleActions, {
17502
+ tradeType: tradeType,
17503
+ status: fromStatus
17504
+ });
17505
+ }
17142
17506
  var renderButton = function renderButton(item, type) {
17143
17507
  return /*#__PURE__*/React__default['default'].createElement(antd.Button, _objectSpread2({
17144
17508
  type: type || 'primary',
@@ -17251,6 +17615,68 @@ var DetailWrapper = /*#__PURE__*/React__default['default'].memo(function (_ref)
17251
17615
  }
17252
17616
  return true;
17253
17617
  });
17618
+ var processDetailButtonsVisible = function processDetailButtonsVisible(buttons, params) {
17619
+ var _ref4 = params || {},
17620
+ tradeType = _ref4.tradeType,
17621
+ fromStatus = _ref4.fromStatus;
17622
+ var getFlowButtons = function getFlowButtons() {
17623
+ try {
17624
+ return JSON.parse(localStorage.getItem('BUSINESS_FLOW_BUTTONS') || '[]');
17625
+ } catch (e) {
17626
+ return [];
17627
+ }
17628
+ };
17629
+ var evalVisible = function evalVisible(v, ctx) {
17630
+ if (typeof v === 'string') {
17631
+ var expr = v.replace(/^#\{|\}$/g, '');
17632
+ try {
17633
+ var keys = Object.keys(ctx || {});
17634
+ var vals = keys.map(function (k) {
17635
+ return ctx[k];
17636
+ });
17637
+ // eslint-disable-next-line no-new-func
17638
+ return Function.apply(void 0, keys.concat(["return (".concat(expr, ");")])).apply(void 0, _toConsumableArray(vals));
17639
+ } catch (e) {
17640
+ return true;
17641
+ }
17642
+ }
17643
+ if (v === undefined) return true;
17644
+ return !!v;
17645
+ };
17646
+ var ctrlSet = new Set();
17647
+ var allowedSet = new Set();
17648
+ if (typeof tradeType === 'number') {
17649
+ var flowList = getFlowButtons();
17650
+ var entry = flowList.find(function (i) {
17651
+ return (i === null || i === void 0 ? void 0 : i.tradeType) === tradeType;
17652
+ });
17653
+ if (entry) {
17654
+ var _find2;
17655
+ ctrlSet = new Set(((entry === null || entry === void 0 ? void 0 : entry.controlButtons) || []).filter(Boolean));
17656
+ var statButtons = ((_find2 = ((entry === null || entry === void 0 ? void 0 : entry.config) || []).find(function (c) {
17657
+ return (c === null || c === void 0 ? void 0 : c.fromStatus) === fromStatus;
17658
+ })) === null || _find2 === void 0 ? void 0 : _find2.buttons) || [];
17659
+ allowedSet = new Set((statButtons || []).filter(Boolean).filter(function (b) {
17660
+ return ctrlSet.size ? ctrlSet.has(b) : true;
17661
+ }));
17662
+ }
17663
+ }
17664
+ var processed = (buttons || []).map(function (btn) {
17665
+ var visBase = evalVisible(btn === null || btn === void 0 ? void 0 : btn.visible, params);
17666
+ var vis = visBase;
17667
+ if (typeof tradeType === 'number' && ctrlSet && allowedSet && (btn === null || btn === void 0 ? void 0 : btn.code)) {
17668
+ if (ctrlSet.size === 0 || !ctrlSet.has(btn.code)) {
17669
+ vis = visBase;
17670
+ } else {
17671
+ vis = visBase && allowedSet.has(btn.code);
17672
+ }
17673
+ }
17674
+ return _objectSpread2(_objectSpread2({}, btn), {}, {
17675
+ visible: vis
17676
+ });
17677
+ });
17678
+ return processed;
17679
+ };
17254
17680
 
17255
17681
  var css_248z$h = ".bs_home_page_head_wrapper {\n position: sticky;\n background: #fff;\n width: 100%;\n top: 0px;\n z-index: 10;\n}\n.home_page_head {\n display: flex;\n justify-content: space-between;\n align-items: center;\n background-color: #FFFFFF;\n border-bottom: 1px solid #f0f0f0;\n padding: 6px 16px 5px;\n font-weight: 500;\n}\n.home_page_head .home_page_title_wrapper {\n display: flex;\n align-items: center;\n height: 20px;\n line-height: 20px;\n}\n.home_page_head .home_page_title {\n font-family: PingFangSC-Medium;\n font-weight: 600;\n font-size: 16px;\n color: #000000;\n letter-spacing: 0;\n flex-grow: 1;\n padding-right: 10px;\n display: none;\n}\n.home_page_head .ant-breadcrumb {\n display: block !important;\n}\n.home_page_head .ant-breadcrumb .ant-breadcrumb-separator {\n margin: 0 2px;\n}\n.home_page_head .ant-breadcrumb li .bread_name {\n color: #8B8B8B;\n font-size: 12px;\n line-height: 16px;\n cursor: pointer;\n}\n.home_page_head .ant-breadcrumb li .bread_name_last {\n color: #282828;\n}\n";
17256
17682
  styleInject(css_248z$h);
@@ -17544,6 +17970,9 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
17544
17970
  title: '列首',
17545
17971
  dataIndex: 'fixedLeft',
17546
17972
  render: function render(text, record) {
17973
+ if (_this.props.disableColumnFixed) {
17974
+ return null;
17975
+ }
17547
17976
  return /*#__PURE__*/React__default['default'].createElement("span", {
17548
17977
  onClick: function onClick() {
17549
17978
  var sortDataSource = _this.state.sortDataSource;
@@ -17620,6 +18049,9 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
17620
18049
  title: '列尾',
17621
18050
  dataIndex: 'fixedRight',
17622
18051
  render: function render(text, record) {
18052
+ if (_this.props.disableColumnFixed) {
18053
+ return null;
18054
+ }
17623
18055
  return /*#__PURE__*/React__default['default'].createElement("span", {
17624
18056
  onClick: function onClick() {
17625
18057
  var sortDataSource = _this.state.sortDataSource;
@@ -18869,7 +19301,7 @@ var ResizeableTitle$2 = function ResizeableTitle(props) {
18869
19301
  }, /*#__PURE__*/React__default['default'].createElement("th", _objectSpread2({}, restProps)));
18870
19302
  };
18871
19303
  var BsSulaQueryTable = (function (props) {
18872
- var _rowsRef$current5, _props$expandable, _sortTableRef$current3, _value$exportConfig6;
19304
+ var _rowsRef$current5, _props$expandable, _sortTableRef$current3, _props$tableProps, _value$exportConfig6;
18873
19305
  var bsTableCode = (props === null || props === void 0 ? void 0 : props.tableCode) || window.location.hash; //设置列字段的唯一标识
18874
19306
  var rowsRef = React$1.useRef(null);
18875
19307
  // 获取 table columns中所有的 key 防止有的地方是 dataindex
@@ -18947,38 +19379,38 @@ var BsSulaQueryTable = (function (props) {
18947
19379
  };
18948
19380
  var refs = React$1.useRef(null);
18949
19381
  var _useState9 = React$1.useState(''),
18950
- _useState10 = _slicedToArray(_useState9, 2),
18951
- pagePath = _useState10[0],
18952
- setPagePath = _useState10[1];
19382
+ _useState0 = _slicedToArray(_useState9, 2),
19383
+ pagePath = _useState0[0],
19384
+ setPagePath = _useState0[1];
18953
19385
  var _useLocation = umi.useLocation(),
18954
19386
  pathname = _useLocation.pathname,
18955
19387
  _useLocation$state = _useLocation.state,
18956
19388
  state = _useLocation$state === void 0 ? {} : _useLocation$state;
18957
- var _useState11 = React$1.useState(false),
18958
- _useState12 = _slicedToArray(_useState11, 2),
18959
- isFullScreen = _useState12[0],
18960
- setIsFnllScreen = _useState12[1];
19389
+ var _useState1 = React$1.useState(false),
19390
+ _useState10 = _slicedToArray(_useState1, 2),
19391
+ isFullScreen = _useState10[0],
19392
+ setIsFnllScreen = _useState10[1];
18961
19393
  // @ts-nocheck
18962
19394
  var value = props;
18963
19395
  var _props$fields = props.fields,
18964
19396
  fields = _props$fields === void 0 ? [] : _props$fields;
18965
- var _useState13 = React$1.useState([]),
18966
- _useState14 = _slicedToArray(_useState13, 2),
18967
- showColumn = _useState14[0],
18968
- setShowColumns = _useState14[1]; // 列字段
19397
+ var _useState11 = React$1.useState([]),
19398
+ _useState12 = _slicedToArray(_useState11, 2),
19399
+ showColumn = _useState12[0],
19400
+ setShowColumns = _useState12[1]; // 列字段
18969
19401
  var originSearchFields = getSettingFieldOrColumn(getConfigFromlocalstorage(ENUM$1.BROWSER_CACHE.SEARCH_FIELDS_CONDITION), fields, 'searchFields');
18970
- var _useState15 = React$1.useState(originSearchFields),
19402
+ var _useState13 = React$1.useState(originSearchFields),
19403
+ _useState14 = _slicedToArray(_useState13, 2),
19404
+ showSearchFields = _useState14[0],
19405
+ setShowSearchFields = _useState14[1]; //搜索项字段
19406
+ var _useState15 = React$1.useState([]),
18971
19407
  _useState16 = _slicedToArray(_useState15, 2),
18972
- showSearchFields = _useState16[0],
18973
- setShowSearchFields = _useState16[1]; //搜索项字段
18974
- var _useState17 = React$1.useState([]),
19408
+ showExportColumn = _useState16[0],
19409
+ setShowExportColumns = _useState16[1]; // 导出列字段
19410
+ var _useState17 = React$1.useState(''),
18975
19411
  _useState18 = _slicedToArray(_useState17, 2),
18976
- showExportColumn = _useState18[0],
18977
- setShowExportColumns = _useState18[1]; // 导出列字段
18978
- var _useState19 = React$1.useState(''),
18979
- _useState20 = _slicedToArray(_useState19, 2),
18980
- height = _useState20[0],
18981
- setHeight = _useState20[1];
19412
+ height = _useState18[0],
19413
+ setHeight = _useState18[1];
18982
19414
  var sortTableRef = React$1.useRef(null);
18983
19415
  var searchTableRef = React$1.useRef(null);
18984
19416
  var exportTableRef = React$1.useRef(null);
@@ -19231,10 +19663,22 @@ var BsSulaQueryTable = (function (props) {
19231
19663
  };
19232
19664
  }
19233
19665
  }, (value === null || value === void 0 ? void 0 : value.tableProps) || {});
19234
- // @ts-ignore
19235
19666
  if (tableProps === null || tableProps === void 0 ? void 0 : (_tableProps$initialPa = tableProps.initialPaging) === null || _tableProps$initialPa === void 0 ? void 0 : _tableProps$initialPa.pagination) {
19236
- // @ts-ignore
19237
19667
  tableProps.initialPaging.pagination.showSizeChanger = true;
19668
+ // 分页大小改变时,更新本地存储
19669
+ var onShowSizeChange = function onShowSizeChange(current, size) {
19670
+ var allPaginationData = JSON.parse(localStorage.getItem('paginationData') || "{}");
19671
+ allPaginationData[bsTableCode] = size;
19672
+ localStorage.setItem('paginationData', JSON.stringify(allPaginationData || {}));
19673
+ };
19674
+ tableProps.initialPaging.pagination.onShowSizeChange = onShowSizeChange;
19675
+ // 从本地存储中获取分页大小
19676
+ var pageSize = JSON.parse(localStorage.getItem('paginationData') || "{}")[bsTableCode];
19677
+ if (pageSize) {
19678
+ tableProps.initialPaging.pagination.pageSize = pageSize;
19679
+ tableProps.pageSize = pageSize;
19680
+ tableProps.defaultPageSize = pageSize;
19681
+ }
19238
19682
  }
19239
19683
  return tableProps;
19240
19684
  };
@@ -19319,13 +19763,124 @@ var BsSulaQueryTable = (function (props) {
19319
19763
  if (value.rowSelection) {
19320
19764
  value.rowSelection.columnWidth = 50;
19321
19765
  }
19766
+ if (typeof props.tradeType !== 'number') {
19767
+ return _objectSpread2(_objectSpread2({}, value), {}, {
19768
+ actionsRender: actionsRender
19769
+ });
19770
+ }
19771
+ try {
19772
+ var raw = JSON.parse(localStorage.getItem('BUSINESS_FLOW_BUTTONS') || '[]');
19773
+ var entry = raw.find(function (i) {
19774
+ return (i === null || i === void 0 ? void 0 : i.tradeType) === props.tradeType;
19775
+ });
19776
+ if (entry) {
19777
+ var ctrlSet = new Set(((entry === null || entry === void 0 ? void 0 : entry.controlButtons) || []).filter(Boolean));
19778
+ var allowedTopSet = new Set();
19779
+ ((entry === null || entry === void 0 ? void 0 : entry.config) || []).forEach(function (c) {
19780
+ ((c === null || c === void 0 ? void 0 : c.buttons) || []).filter(Boolean).forEach(function (b) {
19781
+ if (!ctrlSet.size || ctrlSet.has(b)) allowedTopSet.add(b);
19782
+ });
19783
+ });
19784
+ console.debug('[FlowCtrl:top]', {
19785
+ ctrlSize: ctrlSet.size,
19786
+ allowedTopSize: allowedTopSet.size
19787
+ });
19788
+ actionsRender = actionsRender.filter(function (ui) {
19789
+ var code = ui === null || ui === void 0 ? void 0 : ui.code;
19790
+ if (!code) return true;
19791
+ if (ctrlSet.size && !ctrlSet.has(code)) return true; // 非流程控制按钮不处理
19792
+ var keep = allowedTopSet.has(code);
19793
+ if (code) console.debug('[FlowCtrl:top-element]', {
19794
+ code: code,
19795
+ keep: keep
19796
+ });
19797
+ return keep;
19798
+ });
19799
+ }
19800
+ } catch (e) {}
19801
+ var remoteDataSource = value === null || value === void 0 ? void 0 : value.remoteDataSource;
19802
+ if (remoteDataSource) {
19803
+ var _ctrlSet = new Set();
19804
+ var btnStatusMap = new Map();
19805
+ try {
19806
+ var _raw = JSON.parse(localStorage.getItem('BUSINESS_FLOW_BUTTONS') || '[]');
19807
+ var _entry = _raw.find(function (i) {
19808
+ return (i === null || i === void 0 ? void 0 : i.tradeType) === props.tradeType;
19809
+ });
19810
+ if (_entry) {
19811
+ _ctrlSet = new Set(((_entry === null || _entry === void 0 ? void 0 : _entry.controlButtons) || []).filter(Boolean));
19812
+ ((_entry === null || _entry === void 0 ? void 0 : _entry.config) || []).forEach(function (c) {
19813
+ ((c === null || c === void 0 ? void 0 : c.buttons) || []).filter(Boolean).forEach(function (b) {
19814
+ if (!_ctrlSet.size || _ctrlSet.has(b)) {
19815
+ var set = btnStatusMap.get(b) || new Set();
19816
+ set.add(c === null || c === void 0 ? void 0 : c.fromStatus);
19817
+ btnStatusMap.set(b, set);
19818
+ }
19819
+ });
19820
+ });
19821
+ }
19822
+ } catch (e) {}
19823
+ var getByPath = function getByPath(obj, path) {
19824
+ if (!obj || !path) return undefined;
19825
+ var parts = path.split('.');
19826
+ var cur = obj;
19827
+ for (var i = 0; i < parts.length; i++) {
19828
+ var _cur;
19829
+ cur = (_cur = cur) === null || _cur === void 0 ? void 0 : _cur[parts[i]];
19830
+ if (cur === undefined) return undefined;
19831
+ }
19832
+ return cur;
19833
+ };
19834
+ var statusPath = props === null || props === void 0 ? void 0 : props.statusFieldPath;
19835
+ var augment = function augment(result) {
19836
+ if (!btnStatusMap || btnStatusMap.size === 0) return result;
19837
+ if (result && Array.isArray(result.list)) {
19838
+ result.list = result.list.map(function (rec) {
19839
+ var _ref2, _ref3, _ref4, _rec$status;
19840
+ var status = statusPath ? getByPath(rec, statusPath) : (_ref2 = (_ref3 = (_ref4 = (_rec$status = rec === null || rec === void 0 ? void 0 : rec.status) !== null && _rec$status !== void 0 ? _rec$status : rec === null || rec === void 0 ? void 0 : rec.orderStatus) !== null && _ref4 !== void 0 ? _ref4 : rec === null || rec === void 0 ? void 0 : rec.flowStatus) !== null && _ref3 !== void 0 ? _ref3 : rec === null || rec === void 0 ? void 0 : rec.tradeStatus) !== null && _ref2 !== void 0 ? _ref2 : rec === null || rec === void 0 ? void 0 : rec.currentStatus;
19841
+ var map = {};
19842
+ btnStatusMap.forEach(function (set, code) {
19843
+ map[code] = set.has(status) ? true : undefined;
19844
+ });
19845
+ return _objectSpread2(_objectSpread2({}, rec), {}, {
19846
+ __flowAllowedMap: map
19847
+ });
19848
+ });
19849
+ }
19850
+ return result;
19851
+ };
19852
+ if (Array.isArray(remoteDataSource.converter)) {
19853
+ var stages = remoteDataSource.converter;
19854
+ var pipeline = function pipeline(args) {
19855
+ var res = args;
19856
+ for (var i = 0; i < stages.length; i++) {
19857
+ res = stages[i](res);
19858
+ }
19859
+ res = augment(res);
19860
+ return res;
19861
+ };
19862
+ remoteDataSource = _objectSpread2(_objectSpread2({}, remoteDataSource), {}, {
19863
+ converter: pipeline
19864
+ });
19865
+ } else if (typeof remoteDataSource.converter === 'function') {
19866
+ var orig = remoteDataSource.converter;
19867
+ var wrap = function wrap(args) {
19868
+ var res = orig(args);
19869
+ return augment(res);
19870
+ };
19871
+ remoteDataSource = _objectSpread2(_objectSpread2({}, remoteDataSource), {}, {
19872
+ converter: wrap
19873
+ });
19874
+ }
19875
+ }
19322
19876
  return _objectSpread2(_objectSpread2({}, value), {}, {
19323
- actionsRender: actionsRender
19877
+ actionsRender: actionsRender,
19878
+ remoteDataSource: remoteDataSource
19324
19879
  });
19325
19880
  };
19326
19881
  var handleResize = function handleResize(index) {
19327
- return function (e, _ref2) {
19328
- var size = _ref2.size;
19882
+ return function (e, _ref5) {
19883
+ var size = _ref5.size;
19329
19884
  setShowColumns(function (columns) {
19330
19885
  var newColumns = _toConsumableArray(columns);
19331
19886
  newColumns[index] = _objectSpread2(_objectSpread2({}, newColumns[index]), {}, {
@@ -19353,11 +19908,66 @@ var BsSulaQueryTable = (function (props) {
19353
19908
  // 优化一下 减少复杂度
19354
19909
  var titleMap = toMapByKey(value.columns, 'title');
19355
19910
  // 加上排序
19911
+ var hasFlowEntry = typeof props.tradeType === 'number' && function () {
19912
+ try {
19913
+ var raw = JSON.parse(localStorage.getItem('BUSINESS_FLOW_BUTTONS') || '[]');
19914
+ return !!raw.find(function (i) {
19915
+ return (i === null || i === void 0 ? void 0 : i.tradeType) === props.tradeType;
19916
+ });
19917
+ } catch (e) {
19918
+ return false;
19919
+ }
19920
+ }();
19921
+ var hasControlRange = typeof props.tradeType === 'number' && function () {
19922
+ try {
19923
+ var raw = JSON.parse(localStorage.getItem('BUSINESS_FLOW_BUTTONS') || '[]');
19924
+ var entry = raw.find(function (i) {
19925
+ return (i === null || i === void 0 ? void 0 : i.tradeType) === props.tradeType;
19926
+ });
19927
+ if (!entry) return false;
19928
+ var _ctrlSet2 = new Set(((entry === null || entry === void 0 ? void 0 : entry.controlButtons) || []).filter(Boolean));
19929
+ return _ctrlSet2.size > 0;
19930
+ } catch (e) {
19931
+ return false;
19932
+ }
19933
+ }();
19934
+ var toExpr = function toExpr(v) {
19935
+ if (typeof v === 'string') return v.replace(/^#\{|\}$/g, '');
19936
+ if (v === undefined) return 'true';
19937
+ return v ? 'true' : 'false';
19938
+ };
19939
+ // 读取当前 tradeType 的控制范围,用于只在控制按钮上追加流程表达式
19940
+ var ctrlSet = new Set();
19941
+ if (hasFlowEntry) {
19942
+ try {
19943
+ var raw = JSON.parse(localStorage.getItem('BUSINESS_FLOW_BUTTONS') || '[]');
19944
+ var entry = raw.find(function (i) {
19945
+ return (i === null || i === void 0 ? void 0 : i.tradeType) === props.tradeType;
19946
+ });
19947
+ if (entry) ctrlSet = new Set(((entry === null || entry === void 0 ? void 0 : entry.controlButtons) || []).filter(Boolean));
19948
+ } catch (e) {}
19949
+ }
19950
+ var augmentPermissionRender = function augmentPermissionRender(arr, set) {
19951
+ return arr.map(function (el) {
19952
+ var code = el === null || el === void 0 ? void 0 : el.code;
19953
+ if (!code) return el;
19954
+ // 非控制范围按钮不追加流程控制,保持原 visible
19955
+ if (!set || set.size === 0 || !set.has(code)) return el;
19956
+ var base = toExpr(el.visible);
19957
+ var flow = "record.__flowAllowedMap['".concat(code, "'] == true");
19958
+ return _objectSpread2(_objectSpread2({}, el), {}, {
19959
+ visible: "#{(".concat(base, ") && (").concat(flow, ")}")
19960
+ });
19961
+ });
19962
+ };
19356
19963
  var cols = showColumn.map(function (i) {
19357
- var _titleMap$renderToStr, _titleMap$renderToStr2;
19964
+ var orig = titleMap[renderToString(i.title)] || {};
19965
+ var origRender = orig.render;
19966
+ var isPerm = orig.isPermissionColumn;
19967
+ var newRender = Array.isArray(origRender) && isPerm && hasFlowEntry && hasControlRange ? augmentPermissionRender(origRender, ctrlSet) : origRender;
19358
19968
  return _objectSpread2(_objectSpread2({}, i), {}, {
19359
- isPermissionColumn: (_titleMap$renderToStr = titleMap[renderToString(i.title)]) === null || _titleMap$renderToStr === void 0 ? void 0 : _titleMap$renderToStr.isPermissionColumn,
19360
- render: (_titleMap$renderToStr2 = titleMap[renderToString(i.title)]) === null || _titleMap$renderToStr2 === void 0 ? void 0 : _titleMap$renderToStr2.render
19969
+ isPermissionColumn: isPerm,
19970
+ render: newRender
19361
19971
  });
19362
19972
  });
19363
19973
  cols.forEach(function (i) {
@@ -19530,6 +20140,7 @@ var BsSulaQueryTable = (function (props) {
19530
20140
  id: "bs-sula-query-table"
19531
20141
  }, /*#__PURE__*/React__default['default'].createElement(MemoQueryTable, _objectSpread2({}, memoConfig)), /*#__PURE__*/React__default['default'].createElement(SortableTable$1, {
19532
20142
  ref: sortTableRef,
20143
+ disableColumnFixed: (_props$tableProps = props.tableProps) === null || _props$tableProps === void 0 ? void 0 : _props$tableProps.isVirtualTable,
19533
20144
  setShowColumns: setResizeShowColumns,
19534
20145
  showColumn: showColumn,
19535
20146
  setInitialTableInfo: setInitialTableInfo,
@@ -19606,7 +20217,7 @@ var matchPath = function matchPath(pathname) {
19606
20217
  if (!match) return null;
19607
20218
  var _match = _toArray(match),
19608
20219
  url = _match[0],
19609
- values = _match.slice(1);
20220
+ values = _arrayLikeToArray(_match).slice(1);
19610
20221
  var isExact = pathname === url;
19611
20222
  if (exact && !isExact) return null;
19612
20223
  return {
@@ -20026,22 +20637,19 @@ function outLogin(_x) {
20026
20637
  return _outLogin.apply(this, arguments);
20027
20638
  }
20028
20639
  function _outLogin() {
20029
- _outLogin = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
20640
+ _outLogin = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(params) {
20030
20641
  var res;
20031
- return _regeneratorRuntime().wrap(function _callee$(_context) {
20032
- while (1) switch (_context.prev = _context.next) {
20642
+ return _regenerator().w(function (_context) {
20643
+ while (1) switch (_context.n) {
20033
20644
  case 0:
20034
- _context.next = 2;
20645
+ _context.n = 1;
20035
20646
  return requestUtil({
20036
20647
  url: '/user/web/loginOut',
20037
20648
  method: 'GET'
20038
20649
  });
20039
- case 2:
20040
- res = _context.sent;
20041
- return _context.abrupt("return", res);
20042
- case 4:
20043
- case "end":
20044
- return _context.stop();
20650
+ case 1:
20651
+ res = _context.v;
20652
+ return _context.a(2, res);
20045
20653
  }
20046
20654
  }, _callee);
20047
20655
  }));
@@ -20168,20 +20776,20 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
20168
20776
  });
20169
20777
  };
20170
20778
  var loginOut = /*#__PURE__*/function () {
20171
- var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
20779
+ var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
20172
20780
  var sessionId;
20173
- return _regeneratorRuntime().wrap(function _callee$(_context) {
20174
- while (1) switch (_context.prev = _context.next) {
20781
+ return _regenerator().w(function (_context) {
20782
+ while (1) switch (_context.n) {
20175
20783
  case 0:
20176
- _context.next = 2;
20784
+ _context.n = 1;
20177
20785
  return getSessionId();
20178
- case 2:
20179
- sessionId = _context.sent;
20180
- _context.next = 5;
20786
+ case 1:
20787
+ sessionId = _context.v;
20788
+ _context.n = 2;
20181
20789
  return outLogin({
20182
20790
  sessionId: sessionId
20183
20791
  });
20184
- case 5:
20792
+ case 2:
20185
20793
  // @ts-ignore
20186
20794
  if (BUILD_TYPE) {
20187
20795
  antd.message.success('退出登录成功');
@@ -20191,9 +20799,8 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
20191
20799
  } else {
20192
20800
  setLoginOutPath();
20193
20801
  }
20194
- case 6:
20195
- case "end":
20196
- return _context.stop();
20802
+ case 3:
20803
+ return _context.a(2);
20197
20804
  }
20198
20805
  }, _callee);
20199
20806
  }));
@@ -20280,18 +20887,15 @@ function getStoreByName(_x) {
20280
20887
  return _getStoreByName.apply(this, arguments);
20281
20888
  }
20282
20889
  function _getStoreByName() {
20283
- _getStoreByName = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
20284
- return _regeneratorRuntime().wrap(function _callee$(_context) {
20285
- while (1) switch (_context.prev = _context.next) {
20890
+ _getStoreByName = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(params) {
20891
+ return _regenerator().w(function (_context) {
20892
+ while (1) switch (_context.n) {
20286
20893
  case 0:
20287
- return _context.abrupt("return", requestUtil({
20894
+ return _context.a(2, requestUtil({
20288
20895
  url: '/store-house/orgViewNode/listNoPage',
20289
20896
  method: 'GET',
20290
20897
  params: _objectSpread2({}, params)
20291
20898
  }));
20292
- case 1:
20293
- case "end":
20294
- return _context.stop();
20295
20899
  }
20296
20900
  }, _callee);
20297
20901
  }));
@@ -20326,33 +20930,33 @@ var ChooseStore = function ChooseStore(props) {
20326
20930
  openSelect = _useState8[0],
20327
20931
  setOpenSelect = _useState8[1];
20328
20932
  var _useState9 = React$1.useState([]),
20329
- _useState10 = _slicedToArray(_useState9, 2),
20330
- options = _useState10[0],
20331
- setOptions = _useState10[1];
20332
- var _useState11 = React$1.useState([]),
20933
+ _useState0 = _slicedToArray(_useState9, 2),
20934
+ options = _useState0[0],
20935
+ setOptions = _useState0[1];
20936
+ var _useState1 = React$1.useState([]),
20937
+ _useState10 = _slicedToArray(_useState1, 2),
20938
+ rescouse = _useState10[0],
20939
+ setRescouse = _useState10[1];
20940
+ var _useState11 = React$1.useState(''),
20333
20941
  _useState12 = _slicedToArray(_useState11, 2),
20334
- rescouse = _useState12[0],
20335
- setRescouse = _useState12[1];
20336
- var _useState13 = React$1.useState(''),
20337
- _useState14 = _slicedToArray(_useState13, 2),
20338
- searchValue = _useState14[0],
20339
- setSearchValue = _useState14[1];
20340
- var _useState15 = React$1.useState([{
20942
+ searchValue = _useState12[0],
20943
+ setSearchValue = _useState12[1];
20944
+ var _useState13 = React$1.useState([{
20341
20945
  label: name,
20342
20946
  value: code
20343
20947
  }]),
20344
- _useState16 = _slicedToArray(_useState15, 2),
20345
- store = _useState16[0],
20346
- setStore = _useState16[1];
20948
+ _useState14 = _slicedToArray(_useState13, 2),
20949
+ store = _useState14[0],
20950
+ setStore = _useState14[1];
20347
20951
  function fetchUserList(_x, _x2) {
20348
20952
  return _fetchUserList.apply(this, arguments);
20349
20953
  }
20350
20954
  function _fetchUserList() {
20351
- _fetchUserList = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(storeName, init) {
20352
- return _regeneratorRuntime().wrap(function _callee3$(_context3) {
20353
- while (1) switch (_context3.prev = _context3.next) {
20955
+ _fetchUserList = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(storeName, init) {
20956
+ return _regenerator().w(function (_context3) {
20957
+ while (1) switch (_context3.n) {
20354
20958
  case 0:
20355
- return _context3.abrupt("return", getStoreByName({
20959
+ return _context3.a(2, getStoreByName({
20356
20960
  orgName: storeName ? storeName : undefined,
20357
20961
  platCompanyCode: init ? undefined : key,
20358
20962
  'qp-employeeCode-eq': employeeCode || 'EMP231011000002',
@@ -20371,9 +20975,6 @@ var ChooseStore = function ChooseStore(props) {
20371
20975
  };
20372
20976
  });
20373
20977
  }));
20374
- case 1:
20375
- case "end":
20376
- return _context3.stop();
20377
20978
  }
20378
20979
  }, _callee3);
20379
20980
  }));
@@ -20396,20 +20997,19 @@ var ChooseStore = function ChooseStore(props) {
20396
20997
  return debounce__default['default'](loadOptions, debounceTimeout);
20397
20998
  }, [debounceTimeout, key]);
20398
20999
  var changeInput = /*#__PURE__*/function () {
20399
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(str) {
21000
+ var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(str) {
20400
21001
  var res;
20401
- return _regeneratorRuntime().wrap(function _callee$(_context) {
20402
- while (1) switch (_context.prev = _context.next) {
21002
+ return _regenerator().w(function (_context) {
21003
+ while (1) switch (_context.n) {
20403
21004
  case 0:
20404
- _context.next = 2;
21005
+ _context.n = 1;
20405
21006
  return debounceFetcher(str);
20406
- case 2:
20407
- res = _context.sent;
21007
+ case 1:
21008
+ res = _context.v;
20408
21009
  setOptions(res);
20409
21010
  setRescouse(res);
20410
- case 5:
20411
- case "end":
20412
- return _context.stop();
21011
+ case 2:
21012
+ return _context.a(2);
20413
21013
  }
20414
21014
  }, _callee);
20415
21015
  }));
@@ -20418,15 +21018,15 @@ var ChooseStore = function ChooseStore(props) {
20418
21018
  };
20419
21019
  }();
20420
21020
  React$1.useEffect(function () {
20421
- _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
21021
+ _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
20422
21022
  var res;
20423
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
20424
- while (1) switch (_context2.prev = _context2.next) {
21023
+ return _regenerator().w(function (_context2) {
21024
+ while (1) switch (_context2.n) {
20425
21025
  case 0:
20426
- _context2.next = 2;
21026
+ _context2.n = 1;
20427
21027
  return fetchUserList(undefined, true);
20428
- case 2:
20429
- res = _context2.sent;
21028
+ case 1:
21029
+ res = _context2.v;
20430
21030
  res.map(function (item, indexNumber) {
20431
21031
  if (item.label === name) {
20432
21032
  setIndex(indexNumber);
@@ -20442,9 +21042,8 @@ var ChooseStore = function ChooseStore(props) {
20442
21042
  });
20443
21043
  setOptions(res);
20444
21044
  setRescouse(res);
20445
- case 6:
20446
- case "end":
20447
- return _context2.stop();
21045
+ case 2:
21046
+ return _context2.a(2);
20448
21047
  }
20449
21048
  }, _callee2);
20450
21049
  }))();
@@ -21493,25 +22092,25 @@ var DrawContent$1 = function DrawContent(_ref) {
21493
22092
  currentOneLevel = _useState8[0],
21494
22093
  setCurrentOneLevel = _useState8[1];
21495
22094
  var _useState9 = React$1.useState([]),
21496
- _useState10 = _slicedToArray(_useState9, 2),
21497
- SearhData = _useState10[0],
21498
- setSearchMenuData = _useState10[1];
21499
- var _useState11 = React$1.useState(600),
22095
+ _useState0 = _slicedToArray(_useState9, 2),
22096
+ SearhData = _useState0[0],
22097
+ setSearchMenuData = _useState0[1];
22098
+ var _useState1 = React$1.useState(600),
22099
+ _useState10 = _slicedToArray(_useState1, 2),
22100
+ rightMenuHeight = _useState10[0],
22101
+ setHeight = _useState10[1];
22102
+ var _useState11 = React$1.useState(900),
21500
22103
  _useState12 = _slicedToArray(_useState11, 2),
21501
- rightMenuHeight = _useState12[0],
21502
- setHeight = _useState12[1];
21503
- var _useState13 = React$1.useState(900),
22104
+ drawHeight = _useState12[0],
22105
+ setDrawHeight = _useState12[1];
22106
+ var _useState13 = React$1.useState(false),
21504
22107
  _useState14 = _slicedToArray(_useState13, 2),
21505
- drawHeight = _useState14[0],
21506
- setDrawHeight = _useState14[1];
22108
+ moreBtnShow = _useState14[0],
22109
+ setMoreBtnShow = _useState14[1];
21507
22110
  var _useState15 = React$1.useState(false),
21508
22111
  _useState16 = _slicedToArray(_useState15, 2),
21509
- moreBtnShow = _useState16[0],
21510
- setMoreBtnShow = _useState16[1];
21511
- var _useState17 = React$1.useState(false),
21512
- _useState18 = _slicedToArray(_useState17, 2),
21513
- showScroll = _useState18[0],
21514
- setShowScroll = _useState18[1];
22112
+ showScroll = _useState16[0],
22113
+ setShowScroll = _useState16[1];
21515
22114
  React$1.useEffect(function () {
21516
22115
  var _originRoutes$find;
21517
22116
  getMenuContentHeight();
@@ -23122,14 +23721,11 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
23122
23721
  },
23123
23722
  menu: {
23124
23723
  request: function () {
23125
- var _request = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
23126
- return _regeneratorRuntime().wrap(function _callee$(_context) {
23127
- while (1) switch (_context.prev = _context.next) {
23724
+ var _request = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
23725
+ return _regenerator().w(function (_context) {
23726
+ while (1) switch (_context.n) {
23128
23727
  case 0:
23129
- return _context.abrupt("return", JSON.parse(localStorage.getItem("customerMenu_".concat(itemPath, "_front")) || '[]'));
23130
- case 1:
23131
- case "end":
23132
- return _context.stop();
23728
+ return _context.a(2, JSON.parse(localStorage.getItem("customerMenu_".concat(itemPath, "_front")) || '[]'));
23133
23729
  }
23134
23730
  }, _callee);
23135
23731
  }));
@@ -23534,31 +24130,31 @@ var index$6 = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
23534
24130
  multiTableData = _useState8[0],
23535
24131
  setMmultiTableData = _useState8[1]; //多表头数据
23536
24132
  var _useState9 = React$1.useState(10),
23537
- _useState10 = _slicedToArray(_useState9, 2),
23538
- viewCount = _useState10[0],
23539
- setViewCount = _useState10[1]; //虚拟表格每次渲染数量
24133
+ _useState0 = _slicedToArray(_useState9, 2),
24134
+ viewCount = _useState0[0],
24135
+ setViewCount = _useState0[1]; //虚拟表格每次渲染数量
23540
24136
  var itemWidth = 100; // 表格每一项宽度
23541
- var _useState11 = React$1.useState((props === null || props === void 0 ? void 0 : props.colHeaderWidth) || 400),
23542
- _useState12 = _slicedToArray(_useState11, 2),
23543
- realColHeaderWidth = _useState12[0],
23544
- setLeftWidth = _useState12[1];
24137
+ var _useState1 = React$1.useState((props === null || props === void 0 ? void 0 : props.colHeaderWidth) || 400),
24138
+ _useState10 = _slicedToArray(_useState1, 2),
24139
+ realColHeaderWidth = _useState10[0],
24140
+ setLeftWidth = _useState10[1];
23545
24141
  var viewPort = React$1.useRef(null);
23546
24142
  var topScrollBar = React$1.useRef(null);
23547
24143
  var leftTableRef = React$1.useRef(null);
23548
24144
  //起始渲染item
23549
- var _useState13 = React$1.useState(0),
23550
- _useState14 = _slicedToArray(_useState13, 2),
23551
- startIndex = _useState14[0],
23552
- setStartIndex = _useState14[1];
24145
+ var _useState11 = React$1.useState(0),
24146
+ _useState12 = _slicedToArray(_useState11, 2),
24147
+ startIndex = _useState12[0],
24148
+ setStartIndex = _useState12[1];
23553
24149
  //结束渲染item
23554
24150
  var endIndex = React$1.useMemo(function () {
23555
24151
  return startIndex + viewCount;
23556
24152
  }, [startIndex, viewCount]);
23557
24153
  //表格偏移量
23558
- var _useState15 = React$1.useState(0),
23559
- _useState16 = _slicedToArray(_useState15, 2),
23560
- offsetWidth = _useState16[0],
23561
- setOffset = _useState16[1];
24154
+ var _useState13 = React$1.useState(0),
24155
+ _useState14 = _slicedToArray(_useState13, 2),
24156
+ offsetWidth = _useState14[0],
24157
+ setOffset = _useState14[1];
23562
24158
  React$1.useEffect(function () {
23563
24159
  setTimeout(function () {
23564
24160
  var realLeftTableWidth = leftTableRef.current.clientWidth;
@@ -30862,11 +31458,11 @@ var valueType = {
30862
31458
  };
30863
31459
 
30864
31460
  var getDynamicDict = /*#__PURE__*/function () {
30865
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
30866
- return _regeneratorRuntime().wrap(function _callee$(_context) {
30867
- while (1) switch (_context.prev = _context.next) {
31461
+ var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(dictionaryCode) {
31462
+ return _regenerator().w(function (_context) {
31463
+ while (1) switch (_context.n) {
30868
31464
  case 0:
30869
- _context.next = 2;
31465
+ _context.n = 1;
30870
31466
  return bssula.request({
30871
31467
  url: "/basic/dictDynamicItem/getDynamicData/".concat(dictionaryCode),
30872
31468
  converter: function converter(_ref2) {
@@ -30879,11 +31475,8 @@ var getDynamicDict = /*#__PURE__*/function () {
30879
31475
  });
30880
31476
  }
30881
31477
  });
30882
- case 2:
30883
- return _context.abrupt("return", _context.sent);
30884
- case 3:
30885
- case "end":
30886
- return _context.stop();
31478
+ case 1:
31479
+ return _context.a(2, _context.v);
30887
31480
  }
30888
31481
  }, _callee);
30889
31482
  }));
@@ -30930,12 +31523,12 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
30930
31523
  value: false
30931
31524
  }];
30932
31525
  var ref = React$1.useRef();
30933
- ahooks.useMount(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
30934
- var _ref$current, source;
30935
- return _regeneratorRuntime().wrap(function _callee$(_context) {
30936
- while (1) switch (_context.prev = _context.next) {
31526
+ ahooks.useMount(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
31527
+ var _ref$current, source, _t, _t2;
31528
+ return _regenerator().w(function (_context) {
31529
+ while (1) switch (_context.n) {
30937
31530
  case 0:
30938
- _context.next = 2;
31531
+ _context.n = 1;
30939
31532
  return setIsShowAndType(function (prev) {
30940
31533
  if (record.inputType === 20 || record.inputType === 30) {
30941
31534
  return {
@@ -30946,40 +31539,39 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
30946
31539
  }
30947
31540
  return prev;
30948
31541
  });
30949
- case 2:
31542
+ case 1:
30950
31543
  if (!record.dictionaryCode) {
30951
- _context.next = 17;
31544
+ _context.n = 7;
30952
31545
  break;
30953
31546
  }
30954
31547
  if (!(record.choiceType == 20)) {
30955
- _context.next = 7;
31548
+ _context.n = 2;
30956
31549
  break;
30957
31550
  }
30958
- _context.t0 = getDictionarySource(record.dictionaryCode);
30959
- _context.next = 15;
31551
+ _t = getDictionarySource(record.dictionaryCode);
31552
+ _context.n = 6;
30960
31553
  break;
30961
- case 7:
31554
+ case 2:
30962
31555
  if (!(record.choiceType == 30)) {
30963
- _context.next = 13;
31556
+ _context.n = 4;
30964
31557
  break;
30965
31558
  }
30966
- _context.next = 10;
31559
+ _context.n = 3;
30967
31560
  return getDynamicDict(record.dictionaryCode);
30968
- case 10:
30969
- _context.t1 = _context.sent;
30970
- _context.next = 14;
31561
+ case 3:
31562
+ _t2 = _context.v;
31563
+ _context.n = 5;
30971
31564
  break;
30972
- case 13:
30973
- _context.t1 = [];
30974
- case 14:
30975
- _context.t0 = _context.t1;
30976
- case 15:
30977
- source = _context.t0;
31565
+ case 4:
31566
+ _t2 = [];
31567
+ case 5:
31568
+ _t = _t2;
31569
+ case 6:
31570
+ source = _t;
30978
31571
  // @ts-ignore
30979
31572
  ref === null || ref === void 0 ? void 0 : (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.setFieldSource('defaultValue', source);
30980
- case 17:
30981
- case "end":
30982
- return _context.stop();
31573
+ case 7:
31574
+ return _context.a(2);
30983
31575
  }
30984
31576
  }, _callee);
30985
31577
  })));
@@ -31044,10 +31636,10 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
31044
31636
  source: {
31045
31637
  relates: ['dictionaryCode', 'dictionaryCode_dynamic', 'choiceType'],
31046
31638
  type: function () {
31047
- var _type = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
31639
+ var _type = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(_ref3) {
31048
31640
  var form, values, name, relates, source;
31049
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
31050
- while (1) switch (_context2.prev = _context2.next) {
31641
+ return _regenerator().w(function (_context2) {
31642
+ while (1) switch (_context2.n) {
31051
31643
  case 0:
31052
31644
  form = _ref3.form, values = _ref3.values, name = _ref3.name, relates = _ref3.relates;
31053
31645
  if (values[0]) {
@@ -31056,19 +31648,18 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
31056
31648
  form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], getDictionarySource(values[0]));
31057
31649
  }
31058
31650
  if (!values[1]) {
31059
- _context2.next = 9;
31651
+ _context2.n = 2;
31060
31652
  break;
31061
31653
  }
31062
- _context2.next = 5;
31654
+ _context2.n = 1;
31063
31655
  return getDynamicDict(record.dictionaryCode || values[1]);
31064
- case 5:
31065
- source = _context2.sent;
31656
+ case 1:
31657
+ source = _context2.v;
31066
31658
  form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
31067
31659
  form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
31068
31660
  form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], source);
31069
- case 9:
31070
- case "end":
31071
- return _context2.stop();
31661
+ case 2:
31662
+ return _context2.a(2);
31072
31663
  }
31073
31664
  }, _callee2);
31074
31665
  }));
@@ -31524,25 +32115,25 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
31524
32115
  source: {
31525
32116
  relates: ['choiceType', 'inputType'],
31526
32117
  type: function () {
31527
- var _type2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
32118
+ var _type2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(_ref0) {
31528
32119
  var values, name, form, source;
31529
- return _regeneratorRuntime().wrap(function _callee3$(_context3) {
31530
- while (1) switch (_context3.prev = _context3.next) {
32120
+ return _regenerator().w(function (_context3) {
32121
+ while (1) switch (_context3.n) {
31531
32122
  case 0:
31532
- values = _ref10.values, name = _ref10.name, form = _ref10.form;
32123
+ values = _ref0.values, name = _ref0.name, form = _ref0.form;
31533
32124
  if (values[1] === 40) {
31534
32125
  form === null || form === void 0 ? void 0 : form.setFieldValue(name, null);
31535
32126
  form.setFieldVisible(name, false);
31536
32127
  }
31537
32128
  if (!(values[0] === 30)) {
31538
- _context3.next = 10;
32129
+ _context3.n = 2;
31539
32130
  break;
31540
32131
  }
31541
- _context3.next = 5;
32132
+ _context3.n = 1;
31542
32133
  return bssula.request({
31543
32134
  url: '/basic/dictDynamicItem/queryList',
31544
- converter: function converter(_ref11) {
31545
- var data = _ref11.data;
32135
+ converter: function converter(_ref1) {
32136
+ var data = _ref1.data;
31546
32137
  return data === null || data === void 0 ? void 0 : data.map(function (d) {
31547
32138
  return {
31548
32139
  text: d.dictCode,
@@ -31551,17 +32142,16 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
31551
32142
  });
31552
32143
  }
31553
32144
  });
31554
- case 5:
31555
- source = _context3.sent;
32145
+ case 1:
32146
+ source = _context3.v;
31556
32147
  form === null || form === void 0 ? void 0 : form.setFieldSource(name, source);
31557
32148
  form.setFieldVisible(name, true);
31558
- _context3.next = 11;
32149
+ _context3.n = 3;
31559
32150
  break;
31560
- case 10:
32151
+ case 2:
31561
32152
  form.setFieldVisible(name, false);
31562
- case 11:
31563
- case "end":
31564
- return _context3.stop();
32153
+ case 3:
32154
+ return _context3.a(2);
31565
32155
  }
31566
32156
  }, _callee3);
31567
32157
  }));
@@ -31576,8 +32166,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
31576
32166
  name: 'enumeration',
31577
32167
  label: '维护自定义选项',
31578
32168
  field: {
31579
- type: function type(_ref12) {
31580
- var form = _ref12.form;
32169
+ type: function type(_ref10) {
32170
+ var form = _ref10.form;
31581
32171
  return /*#__PURE__*/React__default['default'].createElement(antd.Button, {
31582
32172
  type: 'link',
31583
32173
  onClick: function onClick() {
@@ -31603,10 +32193,10 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
31603
32193
  dependency: {
31604
32194
  source: {
31605
32195
  relates: ['choiceType'],
31606
- type: function type(_ref13) {
31607
- var values = _ref13.values,
31608
- name = _ref13.name,
31609
- form = _ref13.form;
32196
+ type: function type(_ref11) {
32197
+ var values = _ref11.values,
32198
+ name = _ref11.name,
32199
+ form = _ref11.form;
31610
32200
  if (values[0] === 10) {
31611
32201
  form.setFieldVisible(name, true);
31612
32202
  } else {
@@ -31622,10 +32212,10 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
31622
32212
  dependency: {
31623
32213
  visible: {
31624
32214
  relates: ['choiceType'],
31625
- type: function type(_ref14) {
31626
- var name = _ref14.name,
31627
- values = _ref14.values,
31628
- form = _ref14.form;
32215
+ type: function type(_ref12) {
32216
+ var name = _ref12.name,
32217
+ values = _ref12.values,
32218
+ form = _ref12.form;
31629
32219
  if (values[0] == 330) {
31630
32220
  form.setFieldVisible(name, true);
31631
32221
  } else {
@@ -31649,8 +32239,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
31649
32239
  params: {
31650
32240
  'qp-businessType-eq': record.businessType
31651
32241
  },
31652
- converter: function converter(_ref15) {
31653
- var data = _ref15.data;
32242
+ converter: function converter(_ref13) {
32243
+ var data = _ref13.data;
31654
32244
  return (data === null || data === void 0 ? void 0 : data.map(function (d) {
31655
32245
  return {
31656
32246
  text: d.name,
@@ -31690,8 +32280,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
31690
32280
  'qp-businessType-eq': record.businessType,
31691
32281
  'qp-status-eq': 1
31692
32282
  },
31693
- converter: function converter(_ref16) {
31694
- var data = _ref16.data;
32283
+ converter: function converter(_ref14) {
32284
+ var data = _ref14.data;
31695
32285
  return (data === null || data === void 0 ? void 0 : data.map(function (d) {
31696
32286
  var _d$code;
31697
32287
  return {
@@ -31719,8 +32309,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
31719
32309
  remoteSource: {
31720
32310
  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),
31721
32311
  method: 'get',
31722
- converter: function converter(_ref17) {
31723
- var data = _ref17.data;
32312
+ converter: function converter(_ref15) {
32313
+ var data = _ref15.data;
31724
32314
  if (lineDetail.moduleType == 1) {
31725
32315
  return (data === null || data === void 0 ? void 0 : data.map(function (d) {
31726
32316
  return {
@@ -31746,16 +32336,16 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
31746
32336
  width: 900,
31747
32337
  maskClosable: false,
31748
32338
  onOk: function () {
31749
- var _onOk = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
32339
+ var _onOk = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4() {
31750
32340
  var _ref$current4, _res$editableStatus;
31751
32341
  var res, _res$defaultValue;
31752
- return _regeneratorRuntime().wrap(function _callee4$(_context4) {
31753
- while (1) switch (_context4.prev = _context4.next) {
32342
+ return _regenerator().w(function (_context4) {
32343
+ while (1) switch (_context4.n) {
31754
32344
  case 0:
31755
- _context4.next = 2;
32345
+ _context4.n = 1;
31756
32346
  return ref === null || ref === void 0 ? void 0 : (_ref$current4 = ref.current) === null || _ref$current4 === void 0 ? void 0 : _ref$current4.validateFields();
31757
- case 2:
31758
- res = _context4.sent;
32347
+ case 1:
32348
+ res = _context4.v;
31759
32349
  res.editableStatus = (_res$editableStatus = res.editableStatus) === null || _res$editableStatus === void 0 ? void 0 : _res$editableStatus.join(',');
31760
32350
  res.fieldGroup = record.fieldGroup;
31761
32351
  res.businessType = record.businessType;
@@ -31782,7 +32372,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
31782
32372
  delete res.formula;
31783
32373
  delete res.showValue;
31784
32374
  if (!(mode === 'create')) {
31785
- _context4.next = 18;
32375
+ _context4.n = 2;
31786
32376
  break;
31787
32377
  }
31788
32378
  bssula.request({
@@ -31794,8 +32384,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
31794
32384
  onParentOk();
31795
32385
  }
31796
32386
  });
31797
- return _context4.abrupt("return");
31798
- case 18:
32387
+ return _context4.a(2);
32388
+ case 2:
31799
32389
  bssula.request({
31800
32390
  url: "/basic/flow/businessField/".concat(record.id),
31801
32391
  method: 'PATCH',
@@ -31805,9 +32395,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
31805
32395
  onParentOk();
31806
32396
  }
31807
32397
  });
31808
- case 19:
31809
- case "end":
31810
- return _context4.stop();
32398
+ case 3:
32399
+ return _context4.a(2);
31811
32400
  }
31812
32401
  }, _callee4);
31813
32402
  }));
@@ -32263,21 +32852,21 @@ var JsonQueryTable = /*#__PURE__*/React__default['default'].memo(function (props
32263
32852
  jsonEditorVal = _useState8[0],
32264
32853
  setJsonEditorVal = _useState8[1];
32265
32854
  var _useState9 = React$1.useState({}),
32266
- _useState10 = _slicedToArray(_useState9, 2),
32267
- moduleParams = _useState10[0],
32268
- setModuleParams = _useState10[1];
32269
- var _useState11 = React$1.useState('main'),
32855
+ _useState0 = _slicedToArray(_useState9, 2),
32856
+ moduleParams = _useState0[0],
32857
+ setModuleParams = _useState0[1];
32858
+ var _useState1 = React$1.useState('main'),
32859
+ _useState10 = _slicedToArray(_useState1, 2),
32860
+ activeKey = _useState10[0],
32861
+ setActiveKey = _useState10[1]; //默认详情页配置
32862
+ var _useState11 = React$1.useState({}),
32270
32863
  _useState12 = _slicedToArray(_useState11, 2),
32271
- activeKey = _useState12[0],
32272
- setActiveKey = _useState12[1]; //默认详情页配置
32273
- var _useState13 = React$1.useState({}),
32864
+ tablesConfigParams = _useState12[0],
32865
+ setTablesConfigParams = _useState12[1];
32866
+ var _useState13 = React$1.useState([]),
32274
32867
  _useState14 = _slicedToArray(_useState13, 2),
32275
- tablesConfigParams = _useState14[0],
32276
- setTablesConfigParams = _useState14[1];
32277
- var _useState15 = React$1.useState([]),
32278
- _useState16 = _slicedToArray(_useState15, 2),
32279
- tableJsonEditorValsArr = _useState16[0],
32280
- setTableJsonEditorValsArr = _useState16[1];
32868
+ tableJsonEditorValsArr = _useState14[0],
32869
+ setTableJsonEditorValsArr = _useState14[1];
32281
32870
  React$1.useEffect(function () {
32282
32871
  Promise.all([requestUtil.get("/basic/flow/businessFieldGroup/one?moduleType=2&layoutPoint=".concat(pageType))]).then(function (_ref2) {
32283
32872
  var _ref3 = _slicedToArray(_ref2, 1),
@@ -32308,7 +32897,7 @@ var JsonQueryTable = /*#__PURE__*/React__default['default'].memo(function (props
32308
32897
  });
32309
32898
  Promise.all(axiosArr).then(function (_ref5) {
32310
32899
  var _ref6 = _toArray(_ref5),
32311
- resArr = _ref6.slice(0);
32900
+ resArr = _arrayLikeToArray(_ref6).slice(0);
32312
32901
  var configParams = {};
32313
32902
  detailTablesSetting.map(function (item, index) {
32314
32903
  var _resArr$index;
@@ -32653,11 +33242,11 @@ function getMetaData(_x) {
32653
33242
 
32654
33243
  // 获取数据
32655
33244
  function _getMetaData() {
32656
- _getMetaData = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(id) {
32657
- return _regeneratorRuntime().wrap(function _callee$(_context) {
32658
- while (1) switch (_context.prev = _context.next) {
33245
+ _getMetaData = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(id) {
33246
+ return _regenerator().w(function (_context) {
33247
+ while (1) switch (_context.n) {
32659
33248
  case 0:
32660
- return _context.abrupt("return", new Promise(function (resolve, reject) {
33249
+ return _context.a(2, new Promise(function (resolve, reject) {
32661
33250
  umi.request('/basic/entityProperty/listNoPage', {
32662
33251
  params: {
32663
33252
  'qp-entityId-eq': id
@@ -32669,9 +33258,6 @@ function _getMetaData() {
32669
33258
  reject([]);
32670
33259
  });
32671
33260
  }));
32672
- case 1:
32673
- case "end":
32674
- return _context.stop();
32675
33261
  }
32676
33262
  }, _callee);
32677
33263
  }));
@@ -32875,11 +33461,11 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
32875
33461
  tableState = _useState4[0],
32876
33462
  setTableState = _useState4[1];
32877
33463
  var handleOpen = /*#__PURE__*/function () {
32878
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
33464
+ var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
32879
33465
  var _props$customSelector, _props$customSelector2, _props$ctx4, _props$value, _props$value$map, _props$ctx5, _props$ctx5$form, _props$selectProps;
32880
33466
  var requestConfigNew, metaDataId, metaData, realMetaData, columns, fields, initValue, _queryTableRef$curren, _queryTableRef$curren2, _queryTableRef$curren3;
32881
- return _regeneratorRuntime().wrap(function _callee$(_context) {
32882
- while (1) switch (_context.prev = _context.next) {
33467
+ return _regenerator().w(function (_context) {
33468
+ while (1) switch (_context.n) {
32883
33469
  case 0:
32884
33470
  requestConfigNew = assembleRequest(props.customSelectorConfig, {
32885
33471
  isSearchForm: props.isSearchForm,
@@ -32887,16 +33473,16 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
32887
33473
  searchFormData: searchFormData
32888
33474
  });
32889
33475
  if (requestConfigNew) {
32890
- _context.next = 3;
33476
+ _context.n = 1;
32891
33477
  break;
32892
33478
  }
32893
- return _context.abrupt("return");
32894
- case 3:
33479
+ return _context.a(2);
33480
+ case 1:
32895
33481
  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;
32896
- _context.next = 6;
33482
+ _context.n = 2;
32897
33483
  return getMetaData(metaDataId);
32898
- case 6:
32899
- metaData = _context.sent;
33484
+ case 2:
33485
+ metaData = _context.v;
32900
33486
  realMetaData = (metaData === null || metaData === void 0 ? void 0 : metaData.filter(function (item) {
32901
33487
  return (item === null || item === void 0 ? void 0 : item.inputType) != 1;
32902
33488
  })) || [];
@@ -32936,9 +33522,8 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
32936
33522
  // @ts-ignore
32937
33523
  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);
32938
33524
  }
32939
- case 14:
32940
- case "end":
32941
- return _context.stop();
33525
+ case 3:
33526
+ return _context.a(2);
32942
33527
  }
32943
33528
  }, _callee);
32944
33529
  }));
@@ -33041,7 +33626,7 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
33041
33626
  }, [requestConfig, tableState.columns]);
33042
33627
  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';
33043
33628
  var handleOk = function handleOk(rowData) {
33044
- var _props$selectProps2, _props$customSelector6, _props$customSelector7, _queryTableRef$curren13, _queryTableRef$curren14, _queryTableRef$curren15;
33629
+ var _props$selectProps2, _props$customSelector6, _props$customSelector7, _queryTableRef$curren11, _queryTableRef$curren12, _queryTableRef$curren13;
33045
33630
  var setSource = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
33046
33631
  //多选数据处理
33047
33632
  if (props === null || props === void 0 ? void 0 : (_props$selectProps2 = props.selectProps) === null || _props$selectProps2 === void 0 ? void 0 : _props$selectProps2.multipleForQuery) {
@@ -33052,9 +33637,9 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
33052
33637
  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()) || [];
33053
33638
  var realSelectedRows = selectedRows;
33054
33639
  if (!rowData && (selectedKesys === null || selectedKesys === void 0 ? void 0 : selectedKesys.length) !== (selectedRows === null || selectedRows === void 0 ? void 0 : selectedRows.length)) {
33055
- var _queryTableRef$curren10, _queryTableRef$curren11, _queryTableRef$curren12;
33640
+ var _queryTableRef$curren0, _queryTableRef$curren1, _queryTableRef$curren10;
33056
33641
  // @ts-ignore
33057
- 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()) || [];
33642
+ 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()) || [];
33058
33643
  realSelectedRows = dataSource === null || dataSource === void 0 ? void 0 : dataSource.filter(function (s) {
33059
33644
  return selectedKesys.includes(s[rowKey]);
33060
33645
  });
@@ -33087,10 +33672,10 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
33087
33672
  });
33088
33673
  }
33089
33674
  mappings.map(function (item) {
33090
- var _props$customSelector10, _props$customSelector11, _props$customSelector12, _props$customSelector13;
33091
- 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]) {
33092
- var _props$customSelector14, _props$customSelector15;
33093
- 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];
33675
+ var _props$customSelector0, _props$customSelector1, _props$customSelector10, _props$customSelector11;
33676
+ 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]) {
33677
+ var _props$customSelector12, _props$customSelector13;
33678
+ 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];
33094
33679
  }
33095
33680
  values[item.codeMappingTo] = rowData[item.codeMappingFrom];
33096
33681
  });
@@ -33145,10 +33730,10 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
33145
33730
  }
33146
33731
  props.onCancel();
33147
33732
  //@ts-ignore
33148
- 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();
33733
+ 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();
33149
33734
  };
33150
33735
  var config = React$1.useMemo(function () {
33151
- var _props$selectProps3, _props$ctx9, _props$value2, _props$ctx10, _props$ctx10$form;
33736
+ var _props$selectProps3, _props$ctx9, _props$value2, _props$ctx0, _props$ctx0$form;
33152
33737
  var returnConfig = {
33153
33738
  size: 'small',
33154
33739
  needPageHeader: false,
@@ -33157,7 +33742,7 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
33157
33742
  rowSelection: (props === null || props === void 0 ? void 0 : (_props$selectProps3 = props.selectProps) === null || _props$selectProps3 === void 0 ? void 0 : _props$selectProps3.multipleForQuery) && !isView ? {
33158
33743
  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) {
33159
33744
  return v.key || v;
33160
- })) || (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))
33745
+ })) || (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))
33161
33746
  } : false,
33162
33747
  remoteDataSource: remoteDataSource,
33163
33748
  fields: tableState.fields,
@@ -33165,8 +33750,8 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
33165
33750
  rowKey: rowKey,
33166
33751
  tableProps: !isView && {
33167
33752
  rowClassName: function rowClassName(record) {
33168
- var _props$ctx11, _props$value3, _props$ctx12, _props$ctx12$form;
33169
- 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' : '';
33753
+ var _props$ctx1, _props$value3, _props$ctx10, _props$ctx10$form;
33754
+ 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' : '';
33170
33755
  },
33171
33756
  onRow: function onRow(record) {
33172
33757
  return {
@@ -33211,10 +33796,10 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
33211
33796
  }, "\u63D0\u4EA4"), /*#__PURE__*/React__default['default'].createElement(antd.Button, {
33212
33797
  type: "default",
33213
33798
  onClick: function onClick() {
33214
- var _queryTableRef$curren16, _queryTableRef$curren17, _queryTableRef$curren18;
33799
+ var _queryTableRef$curren14, _queryTableRef$curren15, _queryTableRef$curren16;
33215
33800
  props.onCancel();
33216
33801
  //@ts-ignore
33217
- 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();
33802
+ 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();
33218
33803
  }
33219
33804
  }, "\u53D6\u6D88"))));
33220
33805
  });
@@ -33438,19 +34023,19 @@ var BsCascader = function BsCascader(_ref) {
33438
34023
  _useState2 = _slicedToArray(_useState, 2),
33439
34024
  handSource = _useState2[0],
33440
34025
  setHandSource = _useState2[1];
33441
- React$1.useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
34026
+ React$1.useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
33442
34027
  var resData, data;
33443
- return _regeneratorRuntime().wrap(function _callee$(_context) {
33444
- while (1) switch (_context.prev = _context.next) {
34028
+ return _regenerator().w(function (_context) {
34029
+ while (1) switch (_context.n) {
33445
34030
  case 0:
33446
34031
  if (!(!source && initRequestSource)) {
33447
- _context.next = 6;
34032
+ _context.n = 2;
33448
34033
  break;
33449
34034
  }
33450
- _context.next = 3;
34035
+ _context.n = 1;
33451
34036
  return initRequestSource();
33452
- case 3:
33453
- resData = _context.sent;
34037
+ case 1:
34038
+ resData = _context.v;
33454
34039
  data = (resData === null || resData === void 0 ? void 0 : resData.map(function (item) {
33455
34040
  return _objectSpread2(_objectSpread2({}, item), {}, {
33456
34041
  label: item.text,
@@ -33458,9 +34043,8 @@ var BsCascader = function BsCascader(_ref) {
33458
34043
  });
33459
34044
  })) || [];
33460
34045
  setHandSource(data);
33461
- case 6:
33462
- case "end":
33463
- return _context.stop();
34046
+ case 2:
34047
+ return _context.a(2);
33464
34048
  }
33465
34049
  }, _callee);
33466
34050
  })), []);
@@ -33590,20 +34174,17 @@ function getRegularThresholdRange(_x) {
33590
34174
  return _getRegularThresholdRange.apply(this, arguments);
33591
34175
  }
33592
34176
  function _getRegularThresholdRange() {
33593
- _getRegularThresholdRange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
33594
- return _regeneratorRuntime().wrap(function _callee$(_context) {
33595
- while (1) switch (_context.prev = _context.next) {
34177
+ _getRegularThresholdRange = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(params) {
34178
+ return _regenerator().w(function (_context) {
34179
+ while (1) switch (_context.n) {
33596
34180
  case 0:
33597
- return _context.abrupt("return", requestUtil({
34181
+ return _context.a(2, requestUtil({
33598
34182
  url: "/basic/regularThresholdRange/getVals/".concat(params.queryIdentify),
33599
34183
  method: 'POST',
33600
34184
  data: _objectSpread2(_objectSpread2({}, params), {}, {
33601
34185
  queryIdentify: undefined
33602
34186
  })
33603
34187
  }));
33604
- case 1:
33605
- case "end":
33606
- return _context.stop();
33607
34188
  }
33608
34189
  }, _callee);
33609
34190
  }));
@@ -33744,24 +34325,24 @@ var RuleField = /*#__PURE__*/function (_Component) {
33744
34325
  };
33745
34326
  //规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
33746
34327
  _this.getRegularThresholdRange = /*#__PURE__*/function () {
33747
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
34328
+ var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
33748
34329
  var thresholdQuery, extraRequestUrl, querParams, needQueryList, res;
33749
- return _regeneratorRuntime().wrap(function _callee$(_context) {
33750
- while (1) switch (_context.prev = _context.next) {
34330
+ return _regenerator().w(function (_context) {
34331
+ while (1) switch (_context.n) {
33751
34332
  case 0:
33752
34333
  if (queryIdentify) {
33753
- _context.next = 2;
34334
+ _context.n = 1;
33754
34335
  break;
33755
34336
  }
33756
- return _context.abrupt("return");
33757
- case 2:
34337
+ return _context.a(2);
34338
+ case 1:
33758
34339
  thresholdQuery = _this.state.thresholdQuery;
33759
34340
  extraRequestUrl = '';
33760
34341
  querParams = setParams(propertyCode, thresholdQuery);
33761
34342
  if (!queryIdentityInfo.find(function (item) {
33762
34343
  return item.identity == propertyCode;
33763
34344
  })) {
33764
- _context.next = 10;
34345
+ _context.n = 3;
33765
34346
  break;
33766
34347
  }
33767
34348
  //判断查询属性枚举时有没有必传参数,如果必传参数没有值则不调用查询接口
@@ -33775,15 +34356,15 @@ var RuleField = /*#__PURE__*/function (_Component) {
33775
34356
  if (!needQueryList.some(function (item) {
33776
34357
  return !querParams[item] || !querParams[item].length;
33777
34358
  })) {
33778
- _context.next = 9;
34359
+ _context.n = 2;
33779
34360
  break;
33780
34361
  }
33781
- return _context.abrupt("return");
33782
- case 9:
34362
+ return _context.a(2);
34363
+ case 2:
33783
34364
  extraRequestUrl = queryIdentityInfo.find(function (item) {
33784
34365
  return item.identity == propertyCode;
33785
34366
  }).requestUrl || '';
33786
- case 10:
34367
+ case 3:
33787
34368
  if (queryIdentifyType === 'dictCodeIdentify') {
33788
34369
  extraRequestUrl = "bscDictItem/selectDictItemsByDictCode"; // 字典接口
33789
34370
  querParams = {
@@ -33794,7 +34375,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
33794
34375
  // querParams = { dictCode: queryIdentify }
33795
34376
  }
33796
34377
  if (!extraRequestUrl) {
33797
- _context.next = 16;
34378
+ _context.n = 4;
33798
34379
  break;
33799
34380
  }
33800
34381
  if (queryIdentify == 'maintain_area_code') {
@@ -33833,43 +34414,42 @@ var RuleField = /*#__PURE__*/function (_Component) {
33833
34414
  return handleData;
33834
34415
  }
33835
34416
  });
33836
- _context.next = 29;
34417
+ _context.n = 8;
33837
34418
  break;
33838
- case 16:
34419
+ case 4:
33839
34420
  if (!(queryIdentifyType == 'objectPropertyListIdentify')) {
33840
- _context.next = 20;
34421
+ _context.n = 5;
33841
34422
  break;
33842
34423
  }
33843
34424
  _this.setState({
33844
34425
  thresholdList: queryIdentify
33845
34426
  });
33846
- _context.next = 29;
34427
+ _context.n = 8;
33847
34428
  break;
33848
- case 20:
34429
+ case 5:
33849
34430
  if (!(queryIdentifyType == 'objectPropertyCodeIdentify')) {
33850
- _context.next = 24;
34431
+ _context.n = 6;
33851
34432
  break;
33852
34433
  }
33853
34434
  // TODO待处理
33854
34435
  _this.setState({
33855
34436
  thresholdList: []
33856
34437
  });
33857
- _context.next = 29;
34438
+ _context.n = 8;
33858
34439
  break;
33859
- case 24:
34440
+ case 6:
33860
34441
  querParams.queryIdentify = queryIdentify;
33861
- _context.next = 27;
34442
+ _context.n = 7;
33862
34443
  return getRegularThresholdRange(querParams);
33863
- case 27:
33864
- res = _context.sent;
34444
+ case 7:
34445
+ res = _context.v;
33865
34446
  if (handleError(res)) {
33866
34447
  _this.setState({
33867
34448
  thresholdList: (res === null || res === void 0 ? void 0 : res.data) || []
33868
34449
  });
33869
34450
  }
33870
- case 29:
33871
- case "end":
33872
- return _context.stop();
34451
+ case 8:
34452
+ return _context.a(2);
33873
34453
  }
33874
34454
  }, _callee);
33875
34455
  }));
@@ -34701,11 +35281,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
34701
35281
  isAll: true,
34702
35282
  needNameAndCode: true,
34703
35283
  notChangeOnSelect: true,
34704
- initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
34705
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
34706
- while (1) switch (_context2.prev = _context2.next) {
35284
+ initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
35285
+ return _regenerator().w(function (_context2) {
35286
+ while (1) switch (_context2.n) {
34707
35287
  case 0:
34708
- _context2.next = 2;
35288
+ _context2.n = 1;
34709
35289
  return bssula.request({
34710
35290
  url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
34711
35291
  method: 'get',
@@ -34722,11 +35302,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
34722
35302
  return handleData;
34723
35303
  }
34724
35304
  });
34725
- case 2:
34726
- return _context2.abrupt("return", _context2.sent);
34727
- case 3:
34728
- case "end":
34729
- return _context2.stop();
35305
+ case 1:
35306
+ return _context2.a(2, _context2.v);
34730
35307
  }
34731
35308
  }, _callee2);
34732
35309
  })),
@@ -34750,11 +35327,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
34750
35327
  isAll: true,
34751
35328
  needNameAndCode: true,
34752
35329
  notChangeOnSelect: true,
34753
- initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
34754
- return _regeneratorRuntime().wrap(function _callee3$(_context3) {
34755
- while (1) switch (_context3.prev = _context3.next) {
35330
+ initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3() {
35331
+ return _regenerator().w(function (_context3) {
35332
+ while (1) switch (_context3.n) {
34756
35333
  case 0:
34757
- _context3.next = 2;
35334
+ _context3.n = 1;
34758
35335
  return bssula.request({
34759
35336
  url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
34760
35337
  method: 'get',
@@ -34771,11 +35348,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
34771
35348
  return handleData;
34772
35349
  }
34773
35350
  });
34774
- case 2:
34775
- return _context3.abrupt("return", _context3.sent);
34776
- case 3:
34777
- case "end":
34778
- return _context3.stop();
35351
+ case 1:
35352
+ return _context3.a(2, _context3.v);
34779
35353
  }
34780
35354
  }, _callee3);
34781
35355
  })),
@@ -34801,11 +35375,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
34801
35375
  isAll: true,
34802
35376
  needNameAndCode: true,
34803
35377
  notChangeOnSelect: true,
34804
- initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
34805
- return _regeneratorRuntime().wrap(function _callee4$(_context4) {
34806
- while (1) switch (_context4.prev = _context4.next) {
35378
+ initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4() {
35379
+ return _regenerator().w(function (_context4) {
35380
+ while (1) switch (_context4.n) {
34807
35381
  case 0:
34808
- _context4.next = 2;
35382
+ _context4.n = 1;
34809
35383
  return bssula.request({
34810
35384
  url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
34811
35385
  method: 'get',
@@ -34822,11 +35396,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
34822
35396
  return handleData;
34823
35397
  }
34824
35398
  });
34825
- case 2:
34826
- return _context4.abrupt("return", _context4.sent);
34827
- case 3:
34828
- case "end":
34829
- return _context4.stop();
35399
+ case 1:
35400
+ return _context4.a(2, _context4.v);
34830
35401
  }
34831
35402
  }, _callee4);
34832
35403
  })),
@@ -35513,8 +36084,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
35513
36084
  }
35514
36085
  }));
35515
36086
  } else {
35516
- var _values10;
35517
- var _currentValue9 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values10 = values) === null || _values10 === void 0 ? void 0 : _values10.map(function (s, vIndex) {
36087
+ var _values0;
36088
+ var _currentValue9 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values0 = values) === null || _values0 === void 0 ? void 0 : _values0.map(function (s, vIndex) {
35518
36089
  return {
35519
36090
  key: s,
35520
36091
  label: valueNames[vIndex],
@@ -35724,7 +36295,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
35724
36295
  }
35725
36296
  }
35726
36297
  // 配送方式选择器
35727
- if (dataChoiceBusinessType == 310) {
36298
+ if (dataChoiceBusinessType == 310 || dataChoiceBusinessType == 311) {
35728
36299
  if (INTERVAL_TYPE.indexOf(selectOperation) > -1) {
35729
36300
  return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
35730
36301
  selectBusinessType: "deliveryMode",
@@ -35738,9 +36309,14 @@ var RuleField = /*#__PURE__*/function (_Component) {
35738
36309
  disabled: disabled,
35739
36310
  labelInValue: true,
35740
36311
  value: values[0],
35741
- requestConfig: {
36312
+ requestConfig: _objectSpread2(_objectSpread2({}, dataChoiceBusinessType === 311 ? {
36313
+ otherParams: {
36314
+ // 配送方式只选择标准配送方式
36315
+ 'qp-recordChannnelCode-eq': 80
36316
+ }
36317
+ } : {}), {}, {
35742
36318
  filterInit: 'qp-code-in'
35743
- },
36319
+ }),
35744
36320
  onChange: function onChange(value) {
35745
36321
  if (dataInputBusinessType === 12) {
35746
36322
  values[0] = value.map(function (i) {
@@ -35770,9 +36346,14 @@ var RuleField = /*#__PURE__*/function (_Component) {
35770
36346
  disabled: disabled,
35771
36347
  labelInValue: true,
35772
36348
  value: values[1],
35773
- requestConfig: {
36349
+ requestConfig: _objectSpread2(_objectSpread2({}, dataChoiceBusinessType === 311 ? {
36350
+ otherParams: {
36351
+ // 配送方式只选择标准配送方式
36352
+ 'qp-recordChannnelCode-eq': 80
36353
+ }
36354
+ } : {}), {}, {
35774
36355
  filterInit: 'qp-code-in'
35775
- },
36356
+ }),
35776
36357
  onChange: function onChange(value) {
35777
36358
  if (dataInputBusinessType === 12) {
35778
36359
  values[1] = value.map(function (i) {
@@ -35792,8 +36373,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
35792
36373
  }
35793
36374
  }));
35794
36375
  } else {
35795
- var _values11;
35796
- var _currentValue10 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values11 = values) === null || _values11 === void 0 ? void 0 : _values11.map(function (s, vIndex) {
36376
+ var _values1;
36377
+ var _currentValue0 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values1 = values) === null || _values1 === void 0 ? void 0 : _values1.map(function (s, vIndex) {
35797
36378
  return {
35798
36379
  key: s,
35799
36380
  label: valueNames[vIndex],
@@ -35815,10 +36396,15 @@ var RuleField = /*#__PURE__*/function (_Component) {
35815
36396
  } : {}),
35816
36397
  disabled: disabled,
35817
36398
  labelInValue: true,
35818
- value: _currentValue10,
35819
- requestConfig: {
36399
+ value: _currentValue0,
36400
+ requestConfig: _objectSpread2(_objectSpread2({}, dataChoiceBusinessType === 311 ? {
36401
+ otherParams: {
36402
+ // 配送方式只选择标准配送方式
36403
+ 'qp-recordChannnelCode-eq': 80
36404
+ }
36405
+ } : {}), {}, {
35820
36406
  filterInit: 'qp-code-in'
35821
- },
36407
+ }),
35822
36408
  onChange: function onChange(value) {
35823
36409
  if (dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1) {
35824
36410
  values = value.map(function (i) {
@@ -35908,8 +36494,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
35908
36494
  }
35909
36495
  }));
35910
36496
  } else {
35911
- var _values12;
35912
- var _currentValue11 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values12 = values) === null || _values12 === void 0 ? void 0 : _values12.map(function (s, vIndex) {
36497
+ var _values10;
36498
+ var _currentValue1 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values10 = values) === null || _values10 === void 0 ? void 0 : _values10.map(function (s, vIndex) {
35913
36499
  return {
35914
36500
  key: s,
35915
36501
  label: valueNames[vIndex],
@@ -35931,7 +36517,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
35931
36517
  } : {}),
35932
36518
  disabled: disabled,
35933
36519
  labelInValue: true,
35934
- value: _currentValue11,
36520
+ value: _currentValue1,
35935
36521
  requestConfig: {
35936
36522
  filterInit: 'qp-code-in'
35937
36523
  },
@@ -36024,8 +36610,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
36024
36610
  }
36025
36611
  }));
36026
36612
  } else {
36027
- var _values13;
36028
- var _currentValue12 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values13 = values) === null || _values13 === void 0 ? void 0 : _values13.map(function (s, vIndex) {
36613
+ var _values11;
36614
+ var _currentValue10 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values11 = values) === null || _values11 === void 0 ? void 0 : _values11.map(function (s, vIndex) {
36029
36615
  return {
36030
36616
  key: s,
36031
36617
  label: valueNames[vIndex],
@@ -36047,7 +36633,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
36047
36633
  } : {}),
36048
36634
  disabled: disabled,
36049
36635
  labelInValue: true,
36050
- value: _currentValue12,
36636
+ value: _currentValue10,
36051
36637
  requestConfig: {
36052
36638
  filterInit: 'qp-brandCode-in'
36053
36639
  },
@@ -36238,8 +36824,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
36238
36824
  }
36239
36825
  }));
36240
36826
  } else {
36241
- var _values14;
36242
- var _currentValue13 = dataInputBusinessType === 12 ? ((_values14 = values) === null || _values14 === void 0 ? void 0 : _values14.map(function (s, vIndex) {
36827
+ var _values12;
36828
+ var _currentValue11 = dataInputBusinessType === 12 ? ((_values12 = values) === null || _values12 === void 0 ? void 0 : _values12.map(function (s, vIndex) {
36243
36829
  return {
36244
36830
  key: s,
36245
36831
  label: valueNames[vIndex]
@@ -36267,7 +36853,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
36267
36853
  isSearchForm: true,
36268
36854
  customSelectorConfig: (others === null || others === void 0 ? void 0 : others.customSelectorConfig) || {},
36269
36855
  disabled: disabled,
36270
- value: _currentValue13,
36856
+ value: _currentValue11,
36271
36857
  onChange: function onChange(value, sourceList) {
36272
36858
  if (dataInputBusinessType === 12) {
36273
36859
  var _value$map3, _sourceList$filter3;
@@ -36587,9 +37173,9 @@ var App$1 = function App(_ref) {
36587
37173
  UpdateState(res);
36588
37174
  };
36589
37175
  var _useState9 = React$1.useState(false),
36590
- _useState10 = _slicedToArray(_useState9, 2),
36591
- isModalVisible = _useState10[0],
36592
- setIsModalVisible = _useState10[1];
37176
+ _useState0 = _slicedToArray(_useState9, 2),
37177
+ isModalVisible = _useState0[0],
37178
+ setIsModalVisible = _useState0[1];
36593
37179
  var showModal = function showModal() {
36594
37180
  setIsModalVisible(true);
36595
37181
  };
@@ -37070,27 +37656,26 @@ function RenderCompItem(props) {
37070
37656
  dictData = _useState2[0],
37071
37657
  setDictData = _useState2[1];
37072
37658
  var getDictData = /*#__PURE__*/function () {
37073
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
37659
+ var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
37074
37660
  var _data$map;
37075
37661
  var data;
37076
- return _regeneratorRuntime().wrap(function _callee$(_context) {
37077
- while (1) switch (_context.prev = _context.next) {
37662
+ return _regenerator().w(function (_context) {
37663
+ while (1) switch (_context.n) {
37078
37664
  case 0:
37079
- _context.next = 2;
37665
+ _context.n = 1;
37080
37666
  return bssula.request({
37081
37667
  url: "/basic/bscDictItem/allItemList?qp-code-eq=".concat(ites.dictionaryCode)
37082
37668
  });
37083
- case 2:
37084
- data = _context.sent;
37669
+ case 1:
37670
+ data = _context.v;
37085
37671
  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) {
37086
37672
  return {
37087
37673
  text: item.dictItemName,
37088
37674
  value: item.dictItemCode
37089
37675
  };
37090
37676
  }));
37091
- case 4:
37092
- case "end":
37093
- return _context.stop();
37677
+ case 2:
37678
+ return _context.a(2);
37094
37679
  }
37095
37680
  }, _callee);
37096
37681
  }));
@@ -37331,11 +37916,11 @@ function RenderCompItem(props) {
37331
37916
  needNameAndCode: true,
37332
37917
  notChangeOnSelect: true,
37333
37918
  initRequestSource: function () {
37334
- var _initRequestSource = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
37335
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
37336
- while (1) switch (_context2.prev = _context2.next) {
37919
+ var _initRequestSource = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
37920
+ return _regenerator().w(function (_context2) {
37921
+ while (1) switch (_context2.n) {
37337
37922
  case 0:
37338
- _context2.next = 2;
37923
+ _context2.n = 1;
37339
37924
  return bssula.request({
37340
37925
  url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
37341
37926
  method: 'get',
@@ -37353,11 +37938,8 @@ function RenderCompItem(props) {
37353
37938
  return handleData;
37354
37939
  }
37355
37940
  });
37356
- case 2:
37357
- return _context2.abrupt("return", _context2.sent);
37358
- case 3:
37359
- case "end":
37360
- return _context2.stop();
37941
+ case 1:
37942
+ return _context2.a(2, _context2.v);
37361
37943
  }
37362
37944
  }, _callee2);
37363
37945
  }));
@@ -37522,7 +38104,7 @@ function RenderCompItem(props) {
37522
38104
  getPopupContainer: function getPopupContainer() {
37523
38105
  return document.body;
37524
38106
  }
37525
- })) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 310 && (/*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
38107
+ })) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && ((ites === null || ites === void 0 ? void 0 : ites.choiceType) === 310 || (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 311) && (/*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
37526
38108
  selectBusinessType: "deliveryMode",
37527
38109
  selectProps: _objectSpread2({
37528
38110
  style: styleCommon,
@@ -37534,9 +38116,14 @@ function RenderCompItem(props) {
37534
38116
  disabled: disabled,
37535
38117
  labelInValue: true,
37536
38118
  value: showValue(ites.code),
37537
- requestConfig: {
38119
+ requestConfig: _objectSpread2(_objectSpread2({}, (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 311 ? {
38120
+ otherParams: {
38121
+ // 配送方式只选择标准配送方式
38122
+ 'qp-recordChannnelCode-eq': 80
38123
+ }
38124
+ } : {}), {}, {
37538
38125
  filterInit: 'qp-code-in'
37539
- },
38126
+ }),
37540
38127
  onChange: function onChange(value) {
37541
38128
  handleEdit(ites.code, value);
37542
38129
  },
@@ -38147,7 +38734,8 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
38147
38734
  display: 'flex',
38148
38735
  marginBottom: '0px',
38149
38736
  padding: '10px 0px'
38150
- }
38737
+ },
38738
+ key: itemDetail.elementId
38151
38739
  }, /*#__PURE__*/React__default['default'].createElement("div", {
38152
38740
  className: 'logical_operate_content',
38153
38741
  style: {
@@ -39407,13 +39995,13 @@ var BaseRule = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
39407
39995
  ruleTypeData = _useState8[0],
39408
39996
  setRuleTypeData = _useState8[1];
39409
39997
  var _useState9 = React$1.useState([]),
39410
- _useState10 = _slicedToArray(_useState9, 2),
39411
- ruleReturnConfig = _useState10[0],
39412
- setRuleReturnConfig = _useState10[1];
39413
- var _useState11 = React$1.useState({}),
39414
- _useState12 = _slicedToArray(_useState11, 2),
39415
- templateData = _useState12[0],
39416
- setTemplateData = _useState12[1];
39998
+ _useState0 = _slicedToArray(_useState9, 2),
39999
+ ruleReturnConfig = _useState0[0],
40000
+ setRuleReturnConfig = _useState0[1];
40001
+ var _useState1 = React$1.useState({}),
40002
+ _useState10 = _slicedToArray(_useState1, 2),
40003
+ templateData = _useState10[0],
40004
+ setTemplateData = _useState10[1];
39417
40005
  var loadRuleReturnConfig = function loadRuleReturnConfig(currentSceneId) {
39418
40006
  bssula.request({
39419
40007
  url: "/basic/ruleTemplate/".concat(currentSceneId),
@@ -39749,25 +40337,25 @@ var index$7 = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
39749
40337
  regularDataList = _useState8[0],
39750
40338
  setRegularDataList = _useState8[1];
39751
40339
  var _useState9 = React$1.useState([]),
39752
- _useState10 = _slicedToArray(_useState9, 2),
39753
- baseRuleDetailList = _useState10[0],
39754
- setBaseRuleDetailList = _useState10[1]; // 规则实例详情集合
39755
- var _useState11 = React$1.useState([]),
40340
+ _useState0 = _slicedToArray(_useState9, 2),
40341
+ baseRuleDetailList = _useState0[0],
40342
+ setBaseRuleDetailList = _useState0[1]; // 规则实例详情集合
40343
+ var _useState1 = React$1.useState([]),
40344
+ _useState10 = _slicedToArray(_useState1, 2),
40345
+ systemVariableList = _useState10[0],
40346
+ setSystemVariableList = _useState10[1];
40347
+ var _useState11 = React$1.useState(false),
39756
40348
  _useState12 = _slicedToArray(_useState11, 2),
39757
- systemVariableList = _useState12[0],
39758
- setSystemVariableList = _useState12[1];
40349
+ isGetDefRuleDataRes = _useState12[0],
40350
+ setIsGetDefRuleDataRes = _useState12[1]; // 为了在回显的时候辨别异步查询是否已完成,防止提前认为为新增设置了模板数据,导致再渲染编辑时候 输入框defaultValue不再渲染问题
39759
40351
  var _useState13 = React$1.useState(false),
39760
40352
  _useState14 = _slicedToArray(_useState13, 2),
39761
- isGetDefRuleDataRes = _useState14[0],
39762
- setIsGetDefRuleDataRes = _useState14[1]; // 为了在回显的时候辨别异步查询是否已完成,防止提前认为为新增设置了模板数据,导致再渲染编辑时候 输入框defaultValue不再渲染问题
40353
+ isGetRuleDataRes = _useState14[0],
40354
+ setIsGetRuleDataRes = _useState14[1];
39763
40355
  var _useState15 = React$1.useState(false),
39764
40356
  _useState16 = _slicedToArray(_useState15, 2),
39765
- isGetRuleDataRes = _useState16[0],
39766
- setIsGetRuleDataRes = _useState16[1];
39767
- var _useState17 = React$1.useState(false),
39768
- _useState18 = _slicedToArray(_useState17, 2),
39769
- groupOtherPriorityList = _useState18[0],
39770
- setGroupOtherPriorityList = _useState18[1];
40357
+ groupOtherPriorityList = _useState16[0],
40358
+ setGroupOtherPriorityList = _useState16[1];
39771
40359
  var baseRuleRef = React$1.useRef();
39772
40360
  var currentSceneName = (datail === null || datail === void 0 ? void 0 : datail.name) || '';
39773
40361
  // 查询规则组下所有规则实例
@@ -40091,6 +40679,85 @@ var ParagraphCopier = function ParagraphCopier(props) {
40091
40679
  }, children));
40092
40680
  };
40093
40681
 
40682
+ //操作日志
40683
+ var SystemLog = function SystemLog(_ref) {
40684
+ var modeType = _ref.modeType,
40685
+ code = _ref.code,
40686
+ containerName = _ref.containerName,
40687
+ _ref$renderLogRef = _ref.renderLogRef,
40688
+ renderLogRef = _ref$renderLogRef === void 0 ? {} : _ref$renderLogRef,
40689
+ _ref$extraParams = _ref.extraParams,
40690
+ extraParams = _ref$extraParams === void 0 ? {} : _ref$extraParams;
40691
+ return _objectSpread2(_objectSpread2({}, formContainerAndItemLayout('table', '操作日志', containerName)), {}, {
40692
+ initialVisible: modeType != 'create',
40693
+ fields: [{
40694
+ name: 'table',
40695
+ label: false,
40696
+ itemLayout: {
40697
+ span: 24,
40698
+ labelCol: {
40699
+ span: 0
40700
+ },
40701
+ wrapperCol: {
40702
+ span: 24
40703
+ }
40704
+ },
40705
+ field: function field(ctx) {
40706
+ return code && /*#__PURE__*/React__default['default'].createElement(bssula.Table, {
40707
+ remoteDataSource: {
40708
+ url: "/oms-ops/logInfo?qp-businessCode-eq=".concat(code),
40709
+ convertParams: function convertParams(_ref2) {
40710
+ var params = _ref2.params;
40711
+ return _objectSpread2({
40712
+ pageSize: params.pageSize,
40713
+ currentPage: params.current
40714
+ }, extraParams);
40715
+ },
40716
+ converter: function converter(_ref3) {
40717
+ var data = _ref3.data;
40718
+ return _objectSpread2({}, handleConvertResponse(data.list, data.total || data.totalCount));
40719
+ }
40720
+ },
40721
+ columns: [{
40722
+ title: '操作人',
40723
+ dataIndex: 'handlerName'
40724
+ }, {
40725
+ title: '操作名称',
40726
+ dataIndex: 'handlerType'
40727
+ }, {
40728
+ title: '操作时间',
40729
+ dataIndex: 'handlerTime',
40730
+ render: function render(_ref4) {
40731
+ var text = _ref4.text;
40732
+ return handleCommonTimeRender$1(text);
40733
+ }
40734
+ }, {
40735
+ title: '操作内容',
40736
+ dataIndex: 'logcontent'
40737
+ }],
40738
+ style: {
40739
+ width: '100%',
40740
+ marginTop: '-16px',
40741
+ padding: '0px'
40742
+ },
40743
+ rowKey: "id",
40744
+ scroll: {
40745
+ x: 'max-content'
40746
+ },
40747
+ pagination: {
40748
+ showTotal: function showTotal(total) {
40749
+ return "\u5171 ".concat(total, " \u6761");
40750
+ },
40751
+ showQuickJumper: true,
40752
+ hideOnSinglePage: true
40753
+ },
40754
+ ref: renderLogRef
40755
+ });
40756
+ }
40757
+ }]
40758
+ });
40759
+ };
40760
+
40094
40761
  exports.AddSelect = AddSelect;
40095
40762
  exports.AddSkcSelect = AddSkcSelect;
40096
40763
  exports.AddSkuSelect = AddSkuSelect;
@@ -40123,12 +40790,14 @@ exports.ParagraphCopier = ParagraphCopier;
40123
40790
  exports.PropertySelector = PropertySelector;
40124
40791
  exports.QueryMutipleInput = QueryMutipleInput;
40125
40792
  exports.QueryMutipleSearchSelect = QueryMutipleSearchSelect;
40793
+ exports.RenderCompItem = RenderCompItem;
40126
40794
  exports.RuleComponent = RuleObjectComponent;
40127
40795
  exports.RuleSetter = index$7;
40128
40796
  exports.SearchSelect = SearchSelect;
40129
40797
  exports.Section = Section;
40130
40798
  exports.StateFlow = index$2;
40131
40799
  exports.SulaColumnSettingTable = ColumnSettingSulaTable;
40800
+ exports.SystemLog = SystemLog;
40132
40801
  exports.TableColumnSetting = TableColumnSetting;
40133
40802
  exports.TreeSearchSelect = TreeSearchSelect;
40134
40803
  exports.authFunc = authFunc;
@@ -40138,6 +40807,7 @@ exports.coverToParallel = _coverToParallel;
40138
40807
  exports.createUniqID = createUniqID;
40139
40808
  exports.downloadExcel = downloadExcel;
40140
40809
  exports.ergodicMenuRoutes = ergodicMenuRoutes;
40810
+ exports.formContainerAndItemLayout = formContainerAndItemLayout;
40141
40811
  exports.formatter = _formatter;
40142
40812
  exports.getAccountID = getAccountID;
40143
40813
  exports.getAccountId = getAccountId;
@@ -40198,6 +40868,7 @@ exports.noEmptyArray = noEmptyArray;
40198
40868
  exports.paramsControl = paramsControl;
40199
40869
  exports.parseWidth = parseWidth;
40200
40870
  exports.precisionQuantity = precisionQuantity;
40871
+ exports.processDetailButtonsVisible = processDetailButtonsVisible;
40201
40872
  exports.randomString = randomString;
40202
40873
  exports.readerXlsxToList = readerXlsxToList;
40203
40874
  exports.removeCurrentTenantId = removeCurrentTenantId;