@bit-sun/business-component 4.2.0-alpha.6.9 → 4.2.0-alpha.8

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 (76) hide show
  1. package/dist/components/Business/AddSelectBusiness/index.d.ts +3 -4
  2. package/dist/components/Business/BsLayouts/Components/AllFunc/drawContent.d.ts +1 -2
  3. package/dist/components/Business/BsLayouts/Components/ChooseStore/index.d.ts +1 -2
  4. package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.d.ts +1 -1
  5. package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/leftTree.d.ts +1 -1
  6. package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/rightTree.d.ts +2 -2
  7. package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/DrawContent.d.ts +1 -2
  8. package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/customMenuHeader.d.ts +1 -2
  9. package/dist/components/Business/BsLayouts/Components/CustomerMenu/index.d.ts +1 -1
  10. package/dist/components/Business/BsLayouts/Components/GlobalHeader/index.d.ts +1 -2
  11. package/dist/components/Business/BsLayouts/Components/RightContent/LoginModal.d.ts +1 -2
  12. package/dist/components/Business/BsLayouts/index.d.ts +1 -1
  13. package/dist/components/Business/BsSulaQueryTable/SearchItemSetting.d.ts +5 -5
  14. package/dist/components/Business/BsSulaQueryTable/index.d.ts +1 -2
  15. package/dist/components/Business/BsSulaQueryTable/setting.d.ts +6 -6
  16. package/dist/components/Business/BsSulaQueryTable/utils.d.ts +14 -15
  17. package/dist/components/Business/CommodityEntry/index.d.ts +1 -2
  18. package/dist/components/Business/CommonAlert/index.d.ts +1 -2
  19. package/dist/components/Business/CommonGuideWrapper/index.d.ts +3 -3
  20. package/dist/components/Business/DetailPageWrapper/index.d.ts +12 -12
  21. package/dist/components/Business/HomePageWrapper/index.d.ts +1 -2
  22. package/dist/components/Business/ItemPropertySelector/index.d.ts +1 -2
  23. package/dist/components/Business/JsonQueryTable/components/FieldsModifyModal.d.ts +1 -2
  24. package/dist/components/Business/JsonQueryTable/components/FieldsSettingsTable.d.ts +1 -2
  25. package/dist/components/Business/JsonQueryTable/components/Formula.d.ts +1 -2
  26. package/dist/components/Business/JsonQueryTable/components/MaintainOptions.d.ts +1 -2
  27. package/dist/components/Business/JsonQueryTable/drawer/index.d.ts +1 -2
  28. package/dist/components/Business/PropertyModal/index.d.ts +1 -2
  29. package/dist/components/Business/PropertyModal/propertyGroup.d.ts +1 -1
  30. package/dist/components/Business/SearchSelect/index.d.ts +1 -1
  31. package/dist/components/Business/StateFlow/index.d.ts +1 -2
  32. package/dist/components/Business/TreeSearchSelect/index.d.ts +1 -1
  33. package/dist/components/Business/columnSettingTable/columnSetting.d.ts +6 -6
  34. package/dist/components/Business/columnSettingTable/components/TableSumComponent.d.ts +1 -2
  35. package/dist/components/Business/columnSettingTable/index.d.ts +3 -3
  36. package/dist/components/Business/columnSettingTable/sulaSettingTable.d.ts +3 -3
  37. package/dist/components/Business/columnSettingTable/utils.d.ts +1 -2
  38. package/dist/components/Business/moreTreeTable/FixedScrollBar.d.ts +1 -1
  39. package/dist/components/Common/ParagraphCopier/index.d.ts +1 -1
  40. package/dist/components/Common/Section/index.d.ts +1 -1
  41. package/dist/components/Functional/AddSelect/index.d.ts +1 -2
  42. package/dist/components/Functional/AuthButton/index.d.ts +1 -2
  43. package/dist/components/Functional/DataImport/index.d.ts +3 -3
  44. package/dist/components/Functional/DataValidation/index.d.ts +5 -5
  45. package/dist/components/Functional/ExportFunctions/ExportIcon/index.d.ts +1 -2
  46. package/dist/components/Functional/QueryMutipleInput/index.d.ts +1 -2
  47. package/dist/components/Functional/QueryMutipleSelect/index.d.ts +1 -2
  48. package/dist/components/Functional/SearchSelect/index.d.ts +1 -1
  49. package/dist/components/Functional/SearchSelect/utils.d.ts +2 -3
  50. package/dist/components/Functional/TreeSearchSelect/index.d.ts +1 -2
  51. package/dist/components/Solution/RuleComponent/CustomPlugin/CustomSelector/CustomSelectorModal.d.ts +1 -1
  52. package/dist/components/Solution/RuleComponent/CustomPlugin/CustomSelector/index.d.ts +1 -2
  53. package/dist/components/Solution/RuleComponent/Formula.d.ts +1 -2
  54. package/dist/components/Solution/RuleComponent/InnerSelect.d.ts +1 -2
  55. package/dist/components/Solution/RuleComponent/RenderCompItem.d.ts +1 -2
  56. package/dist/components/Solution/RuleSetter/RuleInstance.d.ts +1 -2
  57. package/dist/components/Solution/RuleSetter/baseRule.d.ts +1 -1
  58. package/dist/components/Solution/RuleSetter/index.d.ts +1 -1
  59. package/dist/index.d.ts +2 -0
  60. package/dist/index.esm.js +1206 -1109
  61. package/dist/index.js +1207 -1108
  62. package/dist/plugin/TableColumnSetting/index.d.ts +5 -5
  63. package/dist/utils/TableUtils.d.ts +18 -19
  64. package/docs/flow-control-readme.md +283 -0
  65. package/package.json +1 -1
  66. package/src/components/Business/BsSulaQueryTable/index.md +57 -4
  67. package/src/components/Business/BsSulaQueryTable/index.tsx +164 -7
  68. package/src/components/Business/BsSulaQueryTable/setting.tsx +6 -0
  69. package/src/components/Business/DetailPageWrapper/index.tsx +81 -1
  70. package/src/components/Business/DetailPageWrapper/readme.md +89 -0
  71. package/src/components/Business/SearchSelect/BusinessUtils.tsx +26 -2
  72. package/src/components/Functional/DataValidation/index.tsx +22 -3
  73. package/src/components/Solution/RuleComponent/RenderCompItem.tsx +9 -1
  74. package/src/components/Solution/RuleComponent/RenderCompItem_README.md +189 -0
  75. package/src/components/Solution/RuleComponent/ruleFiled.js +25 -1
  76. package/src/index.ts +5 -0
package/dist/index.esm.js CHANGED
@@ -188,8 +188,8 @@ function _objectWithoutProperties(e, t) {
188
188
  r,
189
189
  i = _objectWithoutPropertiesLoose(e, t);
190
190
  if (Object.getOwnPropertySymbols) {
191
- var s = Object.getOwnPropertySymbols(e);
192
- for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
191
+ var n = Object.getOwnPropertySymbols(e);
192
+ for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
193
193
  }
194
194
  return i;
195
195
  }
@@ -197,7 +197,7 @@ function _objectWithoutPropertiesLoose(r, e) {
197
197
  if (null == r) return {};
198
198
  var t = {};
199
199
  for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
200
- if (e.includes(n)) continue;
200
+ if (-1 !== e.indexOf(n)) continue;
201
201
  t[n] = r[n];
202
202
  }
203
203
  return t;
@@ -207,306 +207,113 @@ function _possibleConstructorReturn(t, e) {
207
207
  if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
208
208
  return _assertThisInitialized(t);
209
209
  }
210
- function _regeneratorRuntime() {
211
- _regeneratorRuntime = function () {
212
- return e;
213
- };
214
- var t,
215
- e = {},
216
- r = Object.prototype,
217
- n = r.hasOwnProperty,
218
- o = Object.defineProperty || function (t, e, r) {
219
- t[e] = r.value;
220
- },
221
- i = "function" == typeof Symbol ? Symbol : {},
222
- a = i.iterator || "@@iterator",
223
- c = i.asyncIterator || "@@asyncIterator",
224
- u = i.toStringTag || "@@toStringTag";
225
- function define(t, e, r) {
226
- return Object.defineProperty(t, e, {
227
- value: r,
228
- enumerable: !0,
229
- configurable: !0,
230
- writable: !0
231
- }), t[e];
232
- }
233
- try {
234
- define({}, "");
235
- } catch (t) {
236
- define = function (t, e, r) {
237
- return t[e] = r;
238
- };
239
- }
240
- function wrap(t, e, r, n) {
241
- var i = e && e.prototype instanceof Generator ? e : Generator,
242
- a = Object.create(i.prototype),
243
- c = new Context(n || []);
244
- return o(a, "_invoke", {
245
- value: makeInvokeMethod(t, r, c)
246
- }), a;
247
- }
248
- function tryCatch(t, e, r) {
249
- try {
250
- return {
251
- type: "normal",
252
- arg: t.call(e, r)
253
- };
254
- } catch (t) {
255
- return {
256
- type: "throw",
257
- arg: t
210
+ function _regenerator() {
211
+ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
212
+ var e,
213
+ t,
214
+ r = "function" == typeof Symbol ? Symbol : {},
215
+ n = r.iterator || "@@iterator",
216
+ o = r.toStringTag || "@@toStringTag";
217
+ function i(r, n, o, i) {
218
+ var c = n && n.prototype instanceof Generator ? n : Generator,
219
+ u = Object.create(c.prototype);
220
+ return _regeneratorDefine(u, "_invoke", function (r, n, o) {
221
+ var i,
222
+ c,
223
+ u,
224
+ f = 0,
225
+ p = o || [],
226
+ y = !1,
227
+ G = {
228
+ p: 0,
229
+ n: 0,
230
+ v: e,
231
+ a: d,
232
+ f: d.bind(e, 4),
233
+ d: function (t, r) {
234
+ return i = t, c = 0, u = e, G.n = r, a;
235
+ }
236
+ };
237
+ function d(r, n) {
238
+ for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) {
239
+ var o,
240
+ i = p[t],
241
+ d = G.p,
242
+ l = i[2];
243
+ 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));
244
+ }
245
+ if (o || r > 1) return a;
246
+ throw y = !0, n;
247
+ }
248
+ return function (o, p, l) {
249
+ if (f > 1) throw TypeError("Generator is already running");
250
+ for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) {
251
+ i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u);
252
+ try {
253
+ if (f = 2, i) {
254
+ if (c || (o = "next"), t = i[o]) {
255
+ if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object");
256
+ if (!t.done) return t;
257
+ u = t.value, c < 2 && (c = 0);
258
+ } else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1);
259
+ i = e;
260
+ } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break;
261
+ } catch (t) {
262
+ i = e, c = 1, u = t;
263
+ } finally {
264
+ f = 1;
265
+ }
266
+ }
267
+ return {
268
+ value: t,
269
+ done: y
270
+ };
258
271
  };
259
- }
272
+ }(r, o, i), !0), u;
260
273
  }
261
- e.wrap = wrap;
262
- var h = "suspendedStart",
263
- l = "suspendedYield",
264
- f = "executing",
265
- s = "completed",
266
- y = {};
274
+ var a = {};
267
275
  function Generator() {}
268
276
  function GeneratorFunction() {}
269
277
  function GeneratorFunctionPrototype() {}
270
- var p = {};
271
- define(p, a, function () {
278
+ t = Object.getPrototypeOf;
279
+ var c = [][n] ? t(t([][n]())) : (_regeneratorDefine(t = {}, n, function () {
280
+ return this;
281
+ }), t),
282
+ u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c);
283
+ function f(e) {
284
+ return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e;
285
+ }
286
+ 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 () {
272
287
  return this;
273
- });
274
- var d = Object.getPrototypeOf,
275
- v = d && d(d(values([])));
276
- v && v !== r && n.call(v, a) && (p = v);
277
- var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
278
- function defineIteratorMethods(t) {
279
- ["next", "throw", "return"].forEach(function (e) {
280
- define(t, e, function (t) {
281
- return this._invoke(e, t);
282
- });
283
- });
284
- }
285
- function AsyncIterator(t, e) {
286
- function invoke(r, o, i, a) {
287
- var c = tryCatch(t[r], t, o);
288
- if ("throw" !== c.type) {
289
- var u = c.arg,
290
- h = u.value;
291
- return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
292
- invoke("next", t, i, a);
293
- }, function (t) {
294
- invoke("throw", t, i, a);
295
- }) : e.resolve(h).then(function (t) {
296
- u.value = t, i(u);
297
- }, function (t) {
298
- return invoke("throw", t, i, a);
299
- });
300
- }
301
- a(c.arg);
302
- }
303
- var r;
304
- o(this, "_invoke", {
305
- value: function (t, n) {
306
- function callInvokeWithMethodAndArg() {
307
- return new e(function (e, r) {
308
- invoke(t, n, e, r);
309
- });
310
- }
311
- return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
312
- }
313
- });
314
- }
315
- function makeInvokeMethod(e, r, n) {
316
- var o = h;
317
- return function (i, a) {
318
- if (o === f) throw Error("Generator is already running");
319
- if (o === s) {
320
- if ("throw" === i) throw a;
321
- return {
322
- value: t,
323
- done: !0
324
- };
325
- }
326
- for (n.method = i, n.arg = a;;) {
327
- var c = n.delegate;
328
- if (c) {
329
- var u = maybeInvokeDelegate(c, n);
330
- if (u) {
331
- if (u === y) continue;
332
- return u;
333
- }
334
- }
335
- if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
336
- if (o === h) throw o = s, n.arg;
337
- n.dispatchException(n.arg);
338
- } else "return" === n.method && n.abrupt("return", n.arg);
339
- o = f;
340
- var p = tryCatch(e, r, n);
341
- if ("normal" === p.type) {
342
- if (o = n.done ? s : l, p.arg === y) continue;
343
- return {
344
- value: p.arg,
345
- done: n.done
346
- };
347
- }
348
- "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
349
- }
350
- };
351
- }
352
- function maybeInvokeDelegate(e, r) {
353
- var n = r.method,
354
- o = e.iterator[n];
355
- 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;
356
- var i = tryCatch(o, e.iterator, r.arg);
357
- if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
358
- var a = i.arg;
359
- 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);
360
- }
361
- function pushTryEntry(t) {
362
- var e = {
363
- tryLoc: t[0]
364
- };
365
- 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
366
- }
367
- function resetTryEntry(t) {
368
- var e = t.completion || {};
369
- e.type = "normal", delete e.arg, t.completion = e;
370
- }
371
- function Context(t) {
372
- this.tryEntries = [{
373
- tryLoc: "root"
374
- }], t.forEach(pushTryEntry, this), this.reset(!0);
375
- }
376
- function values(e) {
377
- if (e || "" === e) {
378
- var r = e[a];
379
- if (r) return r.call(e);
380
- if ("function" == typeof e.next) return e;
381
- if (!isNaN(e.length)) {
382
- var o = -1,
383
- i = function next() {
384
- for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
385
- return next.value = t, next.done = !0, next;
386
- };
387
- return i.next = i;
388
- }
389
- }
390
- throw new TypeError(typeof e + " is not iterable");
391
- }
392
- return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
393
- value: GeneratorFunctionPrototype,
394
- configurable: !0
395
- }), o(GeneratorFunctionPrototype, "constructor", {
396
- value: GeneratorFunction,
397
- configurable: !0
398
- }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
399
- var e = "function" == typeof t && t.constructor;
400
- return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
401
- }, e.mark = function (t) {
402
- return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
403
- }, e.awrap = function (t) {
288
+ }), _regeneratorDefine(u, "toString", function () {
289
+ return "[object Generator]";
290
+ }), (_regenerator = function () {
404
291
  return {
405
- __await: t
292
+ w: i,
293
+ m: f
406
294
  };
407
- }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
408
- return this;
409
- }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
410
- void 0 === i && (i = Promise);
411
- var a = new AsyncIterator(wrap(t, r, n, o), i);
412
- return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
413
- return t.done ? t.value : a.next();
414
- });
415
- }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
416
- return this;
417
- }), define(g, "toString", function () {
418
- return "[object Generator]";
419
- }), e.keys = function (t) {
420
- var e = Object(t),
421
- r = [];
422
- for (var n in e) r.push(n);
423
- return r.reverse(), function next() {
424
- for (; r.length;) {
425
- var t = r.pop();
426
- if (t in e) return next.value = t, next.done = !1, next;
427
- }
428
- return next.done = !0, next;
429
- };
430
- }, e.values = values, Context.prototype = {
431
- constructor: Context,
432
- reset: function (e) {
433
- 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);
434
- },
435
- stop: function () {
436
- this.done = !0;
437
- var t = this.tryEntries[0].completion;
438
- if ("throw" === t.type) throw t.arg;
439
- return this.rval;
440
- },
441
- dispatchException: function (e) {
442
- if (this.done) throw e;
443
- var r = this;
444
- function handle(n, o) {
445
- return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
446
- }
447
- for (var o = this.tryEntries.length - 1; o >= 0; --o) {
448
- var i = this.tryEntries[o],
449
- a = i.completion;
450
- if ("root" === i.tryLoc) return handle("end");
451
- if (i.tryLoc <= this.prev) {
452
- var c = n.call(i, "catchLoc"),
453
- u = n.call(i, "finallyLoc");
454
- if (c && u) {
455
- if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
456
- if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
457
- } else if (c) {
458
- if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
459
- } else {
460
- if (!u) throw Error("try statement without catch or finally");
461
- if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
462
- }
463
- }
464
- }
465
- },
466
- abrupt: function (t, e) {
467
- for (var r = this.tryEntries.length - 1; r >= 0; --r) {
468
- var o = this.tryEntries[r];
469
- if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
470
- var i = o;
471
- break;
472
- }
473
- }
474
- i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
475
- var a = i ? i.completion : {};
476
- return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
477
- },
478
- complete: function (t, e) {
479
- if ("throw" === t.type) throw t.arg;
480
- 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;
481
- },
482
- finish: function (t) {
483
- for (var e = this.tryEntries.length - 1; e >= 0; --e) {
484
- var r = this.tryEntries[e];
485
- if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
486
- }
487
- },
488
- catch: function (t) {
489
- for (var e = this.tryEntries.length - 1; e >= 0; --e) {
490
- var r = this.tryEntries[e];
491
- if (r.tryLoc === t) {
492
- var n = r.completion;
493
- if ("throw" === n.type) {
494
- var o = n.arg;
495
- resetTryEntry(r);
496
- }
497
- return o;
498
- }
499
- }
500
- throw Error("illegal catch attempt");
501
- },
502
- delegateYield: function (e, r, n) {
503
- return this.delegate = {
504
- iterator: values(e),
505
- resultName: r,
506
- nextLoc: n
507
- }, "next" === this.method && (this.arg = t), y;
295
+ })();
296
+ }
297
+ function _regeneratorDefine(e, r, n, t) {
298
+ var i = Object.defineProperty;
299
+ try {
300
+ i({}, "", {});
301
+ } catch (e) {
302
+ i = 0;
303
+ }
304
+ _regeneratorDefine = function (e, r, n, t) {
305
+ function o(r, n) {
306
+ _regeneratorDefine(e, r, function (e) {
307
+ return this._invoke(r, n, e);
308
+ });
508
309
  }
509
- }, e;
310
+ r ? i ? i(e, r, {
311
+ value: n,
312
+ enumerable: !t,
313
+ configurable: !t,
314
+ writable: !t
315
+ }) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2));
316
+ }, _regeneratorDefine(e, r, n, t);
510
317
  }
511
318
  function _setPrototypeOf(t, e) {
512
319
  return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
@@ -1579,22 +1386,22 @@ var parseToServe = function parseToServe(outdata, revertChart) {
1579
1386
  // sheepMap是表头字段中英文映射
1580
1387
  // sheetCount:表的数量,默认一张
1581
1388
  var resolveFile = /*#__PURE__*/function () {
1582
- var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(file) {
1389
+ var _ref3 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(file) {
1583
1390
  var config,
1584
1391
  data,
1585
1392
  _args = arguments;
1586
- return _regeneratorRuntime().wrap(function _callee$(_context) {
1587
- while (1) switch (_context.prev = _context.next) {
1393
+ return _regenerator().w(function (_context) {
1394
+ while (1) switch (_context.n) {
1588
1395
  case 0:
1589
1396
  config = _args.length > 1 && _args[1] !== undefined ? _args[1] : {
1590
1397
  sheetMap: [],
1591
1398
  sheetCount: 1
1592
1399
  };
1593
- _context.next = 3;
1400
+ _context.n = 1;
1594
1401
  return analyseExcelToByte(file);
1595
- case 3:
1596
- data = _context.sent;
1597
- return _context.abrupt("return", new Promise(function (resolve, reject) {
1402
+ case 1:
1403
+ data = _context.v;
1404
+ return _context.a(2, new Promise(function (resolve, reject) {
1598
1405
  var workbook = read(data, {
1599
1406
  type: 'binary'
1600
1407
  });
@@ -1606,9 +1413,6 @@ var resolveFile = /*#__PURE__*/function () {
1606
1413
  var outdata = parseToServe(sheetMapJsonList, config.sheetMap);
1607
1414
  resolve(outdata);
1608
1415
  }));
1609
- case 5:
1610
- case "end":
1611
- return _context.stop();
1612
1416
  }
1613
1417
  }, _callee);
1614
1418
  }));
@@ -1618,41 +1422,40 @@ var resolveFile = /*#__PURE__*/function () {
1618
1422
  }();
1619
1423
  //读取文件
1620
1424
  var readerXlsxToList = /*#__PURE__*/function () {
1621
- var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(file, fileList, uploadRef, done, otherInfo) {
1425
+ var _ref4 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(file, fileList, uploadRef, done, otherInfo) {
1622
1426
  var _ref5, callback, sheetMap, nowFile, data2, data;
1623
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
1624
- while (1) switch (_context2.prev = _context2.next) {
1427
+ return _regenerator().w(function (_context2) {
1428
+ while (1) switch (_context2.n) {
1625
1429
  case 0:
1626
1430
  _ref5 = otherInfo || {}, callback = _ref5.callback, sheetMap = _ref5.sheetMap;
1627
1431
  if (!(Array.isArray(fileList) && fileList.length > 0)) {
1628
- _context2.next = 15;
1432
+ _context2.n = 3;
1629
1433
  break;
1630
1434
  }
1631
1435
  nowFile = fileList[fileList.length - 1]; // 阻止了默认上传file没有originFileObj了 得从fileList中去取
1632
- _context2.next = 5;
1436
+ _context2.n = 1;
1633
1437
  return resolveFile(nowFile.originFileObj, {
1634
1438
  sheetMap: fieldMappingReverse(sheetMap),
1635
1439
  sheetCount: 1
1636
1440
  });
1637
- case 5:
1638
- data2 = _context2.sent;
1441
+ case 1:
1442
+ data2 = _context2.v;
1639
1443
  data = data2[0];
1640
1444
  if (data.length) {
1641
- _context2.next = 10;
1445
+ _context2.n = 2;
1642
1446
  break;
1643
1447
  }
1644
1448
  message$1.error("\u8BF7\u5148\u5F55\u5165\u6570\u636E\u518D\u5BFC\u5165");
1645
- return _context2.abrupt("return");
1646
- case 10:
1449
+ return _context2.a(2);
1450
+ case 2:
1647
1451
  if (callback) callback(data);
1648
1452
  !callback && message$1.success("\u5BFC\u5165\u6210\u529F");
1649
- return _context2.abrupt("return", data);
1650
- case 15:
1453
+ return _context2.a(2, data);
1454
+ case 3:
1651
1455
  message$1.error("\u8BF7\u9009\u62E9\u6587\u4EF6");
1652
- return _context2.abrupt("return");
1653
- case 17:
1654
- case "end":
1655
- return _context2.stop();
1456
+ return _context2.a(2);
1457
+ case 4:
1458
+ return _context2.a(2);
1656
1459
  }
1657
1460
  }, _callee2);
1658
1461
  }));
@@ -2604,17 +2407,14 @@ var requestUtil = function requestUtil(_ref) {
2604
2407
  return request$1(url, parms).then(handleResponseData);
2605
2408
  };
2606
2409
  var handleResponseData = /*#__PURE__*/function () {
2607
- var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(response) {
2608
- return _regeneratorRuntime().wrap(function _callee$(_context) {
2609
- while (1) switch (_context.prev = _context.next) {
2410
+ var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(response) {
2411
+ return _regenerator().w(function (_context) {
2412
+ while (1) switch (_context.n) {
2610
2413
  case 0:
2611
- return _context.abrupt("return", Promise.resolve({
2414
+ return _context.a(2, Promise.resolve({
2612
2415
  data: response,
2613
2416
  status: response.status
2614
2417
  }));
2615
- case 1:
2616
- case "end":
2617
- return _context.stop();
2618
2418
  }
2619
2419
  }, _callee);
2620
2420
  }));
@@ -2987,88 +2787,108 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
2987
2787
  data: luckysheet.transToCellData(newData)
2988
2788
  });
2989
2789
  };
2990
- _this.resetData = function () {
2790
+ _this.resetData = /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
2991
2791
  var _customerColumnsMappi;
2992
- var _this$props = _this.props,
2993
- validDataUrl = _this$props.validDataUrl,
2994
- validDataParams = _this$props.validDataParams,
2995
- updateData = _this$props.updateData,
2996
- columns = _this$props.columns,
2997
- isBrandAuth = _this$props.isBrandAuth,
2998
- _this$props$isCheckSt = _this$props.isCheckStockNum,
2999
- isCheckStockNum = _this$props$isCheckSt === void 0 ? true : _this$props$isCheckSt,
3000
- customerColumnsMapping = _this$props.customerColumnsMapping;
3001
- var resultData = _this.getData().filter(function (d) {
3002
- return _.compact(Object.values(d)).length;
3003
- });
3004
- var resultColumns = (customerColumnsMapping === null || customerColumnsMapping === void 0 ? void 0 : customerColumnsMapping.length) ? customerColumnsMapping === null || customerColumnsMapping === void 0 ? void 0 : (_customerColumnsMappi = customerColumnsMapping.filter(function (c) {
3005
- return !!(c === null || c === void 0 ? void 0 : c.name);
3006
- })) === null || _customerColumnsMappi === void 0 ? void 0 : _customerColumnsMappi.map(function (c) {
3007
- return c.name;
3008
- }) : columns;
3009
- // 处理业务参数
3010
- var otherParams = {};
3011
- if (isBrandAuth) {
3012
- otherParams = {
3013
- brandAuth: 'ctl-withAuth'
3014
- };
3015
- }
3016
- requestUtil.post(validDataUrl, _objectSpread2(_objectSpread2(_objectSpread2({}, otherParams), validDataParams), {}, {
3017
- columns: resultColumns,
3018
- data: resultData,
3019
- checkStockNum: isCheckStockNum
3020
- })).then(function (result) {
3021
- result = result.data;
3022
- if (judgeIsRequestError(result)) {
3023
- message$1.error(result.msg);
3024
- return;
3025
- }
3026
- var items = _this.state.items;
3027
- var validIndex = items.length;
3028
- var res = result.data;
3029
- var sheetData = luckysheet.getSheetData();
3030
- sheetData.map(function (item, index) {
3031
- if (!res[index]) return item;
3032
- var changeVMIndex = resultColumns === null || resultColumns === void 0 ? void 0 : resultColumns.findIndex(function (i) {
3033
- return i === 'skuCode';
3034
- });
3035
- if ((resultColumns === null || resultColumns === void 0 ? void 0 : resultColumns.find(function (i) {
3036
- return i === 'skuCode';
3037
- })) && item[changeVMIndex].v !== res[index].skuCode) {
3038
- item[changeVMIndex].v = res[index].skuCode;
3039
- item[changeVMIndex].m = res[index].skuCode;
3040
- }
3041
- if (res[index].flag) {
3042
- item[validIndex] = _objectSpread2(_objectSpread2({}, item[validIndex]), {}, {
3043
- v: '通过',
3044
- m: '通过',
3045
- fc: 'green' //字体颜色为 "#990000"
3046
- });
3047
- } else {
3048
- item[validIndex] = _objectSpread2(_objectSpread2({}, item[validIndex]), {}, {
3049
- v: res[index].checkResults,
3050
- m: res[index].checkResults,
3051
- fc: 'red' //字体颜色为 "#990000"
2792
+ var _this$props, validDataUrl, validDataParams, updateData, columns, isBrandAuth, _this$props$isCheckSt, isCheckStockNum, customerColumnsMapping, checkSharedValue, beforeCheckCallback, resultData, resultColumns, otherParams;
2793
+ return _regenerator().w(function (_context) {
2794
+ while (1) switch (_context.n) {
2795
+ case 0:
2796
+ _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;
2797
+ resultData = _this.getData().filter(function (d) {
2798
+ return _.compact(Object.values(d)).length;
3052
2799
  });
3053
- }
3054
- item[validIndex].ct = {
3055
- fa: 'General',
3056
- t: 'g'
3057
- };
3058
- });
3059
- // sheetData.map((item, index) => {
3060
- // luckysheet.setCellValue(index + 1, 4, 345)
3061
- // })
3062
- luckysheet.create(_this.setConfig(luckysheet.transToCellData(sheetData)));
3063
- _this.setState({
3064
- data: luckysheet.transToCellData(sheetData),
3065
- errorListCheck: false,
3066
- resultData: res
3067
- });
3068
- console.log(setExportData);
3069
- setExportData([123123]);
3070
- }).catch(function (err) {});
3071
- };
2800
+ resultColumns = (customerColumnsMapping === null || customerColumnsMapping === void 0 ? void 0 : customerColumnsMapping.length) ? customerColumnsMapping === null || customerColumnsMapping === void 0 ? void 0 : (_customerColumnsMappi = customerColumnsMapping.filter(function (c) {
2801
+ return !!(c === null || c === void 0 ? void 0 : c.name);
2802
+ })) === null || _customerColumnsMappi === void 0 ? void 0 : _customerColumnsMappi.map(function (c) {
2803
+ return c.name;
2804
+ }) : columns; // 处理业务参数
2805
+ otherParams = {};
2806
+ if (isBrandAuth) {
2807
+ otherParams = {
2808
+ brandAuth: 'ctl-withAuth'
2809
+ };
2810
+ }
2811
+ // 处理校验参数,隐藏校验参数(公用的部分)
2812
+ if (checkSharedValue) {
2813
+ resultData = resultData.map(function (d) {
2814
+ return _objectSpread2(_objectSpread2({}, d), checkSharedValue);
2815
+ });
2816
+ }
2817
+ // 调用回调函数
2818
+ if (!beforeCheckCallback) {
2819
+ _context.n = 2;
2820
+ break;
2821
+ }
2822
+ _context.n = 1;
2823
+ return beforeCheckCallback(resultData);
2824
+ case 1:
2825
+ resultData = _context.v;
2826
+ if (resultData) {
2827
+ _context.n = 2;
2828
+ break;
2829
+ }
2830
+ return _context.a(2);
2831
+ case 2:
2832
+ requestUtil.post(validDataUrl, _objectSpread2(_objectSpread2(_objectSpread2({}, otherParams), validDataParams), {}, {
2833
+ columns: resultColumns,
2834
+ data: resultData,
2835
+ checkStockNum: isCheckStockNum
2836
+ })).then(function (result) {
2837
+ result = result.data;
2838
+ if (judgeIsRequestError(result)) {
2839
+ message$1.error(result.msg);
2840
+ return;
2841
+ }
2842
+ var items = _this.state.items;
2843
+ var validIndex = items.length;
2844
+ var res = result.data;
2845
+ var sheetData = luckysheet.getSheetData();
2846
+ sheetData.map(function (item, index) {
2847
+ if (!res[index]) return item;
2848
+ var changeVMIndex = resultColumns === null || resultColumns === void 0 ? void 0 : resultColumns.findIndex(function (i) {
2849
+ return i === 'skuCode';
2850
+ });
2851
+ if ((resultColumns === null || resultColumns === void 0 ? void 0 : resultColumns.find(function (i) {
2852
+ return i === 'skuCode';
2853
+ })) && item[changeVMIndex].v !== res[index].skuCode) {
2854
+ item[changeVMIndex].v = res[index].skuCode;
2855
+ item[changeVMIndex].m = res[index].skuCode;
2856
+ }
2857
+ if (res[index].flag) {
2858
+ item[validIndex] = _objectSpread2(_objectSpread2({}, item[validIndex]), {}, {
2859
+ v: '通过',
2860
+ m: '通过',
2861
+ fc: 'green' //字体颜色为 "#990000"
2862
+ });
2863
+ } else {
2864
+ item[validIndex] = _objectSpread2(_objectSpread2({}, item[validIndex]), {}, {
2865
+ v: res[index].checkResults,
2866
+ m: res[index].checkResults,
2867
+ fc: 'red' //字体颜色为 "#990000"
2868
+ });
2869
+ }
2870
+ item[validIndex].ct = {
2871
+ fa: 'General',
2872
+ t: 'g'
2873
+ };
2874
+ });
2875
+ // sheetData.map((item, index) => {
2876
+ // luckysheet.setCellValue(index + 1, 4, 345)
2877
+ // })
2878
+ luckysheet.create(_this.setConfig(luckysheet.transToCellData(sheetData)));
2879
+ _this.setState({
2880
+ data: luckysheet.transToCellData(sheetData),
2881
+ errorListCheck: false,
2882
+ resultData: res
2883
+ });
2884
+ console.log(setExportData);
2885
+ setExportData([123123]);
2886
+ }).catch(function (err) {});
2887
+ case 3:
2888
+ return _context.a(2);
2889
+ }
2890
+ }, _callee);
2891
+ }));
3072
2892
  _this.filterData = function (type) {
3073
2893
  var _this$state = _this.state,
3074
2894
  showErrorData = _this$state.showErrorData,
@@ -3225,8 +3045,8 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
3225
3045
  if (!(res === null || res === void 0 ? void 0 : res[index])) return item;
3226
3046
  var rowItem = res[index];
3227
3047
  item === null || item === void 0 ? void 0 : item.forEach(function (element, colIndex) {
3228
- var _ref4;
3229
- var colKey = (_ref4 = Object.keys(rowItem) || []) === null || _ref4 === void 0 ? void 0 : _ref4[colIndex];
3048
+ var _ref5;
3049
+ var colKey = (_ref5 = Object.keys(rowItem) || []) === null || _ref5 === void 0 ? void 0 : _ref5[colIndex];
3230
3050
  if (!(rowItem === null || rowItem === void 0 ? void 0 : rowItem[colKey])) return element;
3231
3051
  element.m = rowItem[colKey];
3232
3052
  element.v = rowItem[colKey];
@@ -3302,10 +3122,10 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
3302
3122
  notExcelImport = _this$props6.notExcelImport,
3303
3123
  excelImportConfig = _this$props6.excelImportConfig,
3304
3124
  getTemplate = _this$props6.getTemplate;
3305
- var _ref5 = excelImportConfig || {},
3306
- size = _ref5.size,
3307
- accept = _ref5.accept,
3308
- suffixRule = _ref5.suffixRule;
3125
+ var _ref6 = excelImportConfig || {},
3126
+ size = _ref6.size,
3127
+ accept = _ref6.accept,
3128
+ suffixRule = _ref6.suffixRule;
3309
3129
  var totalSummary = this.getCount();
3310
3130
  var sheetMap = this.getSheetMap();
3311
3131
  var callBackFun = this.importExcelToLuckySheet;
@@ -3331,9 +3151,9 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
3331
3151
  var _Object$keys;
3332
3152
  if (!(sheetMap && ((_Object$keys = Object.keys(sheetMap)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.length))) return;
3333
3153
  if (info.file.status !== 'uploading') {
3334
- var _ref6 = info || {},
3335
- file = _ref6.file,
3336
- fileList = _ref6.fileList;
3154
+ var _ref7 = info || {},
3155
+ file = _ref7.file,
3156
+ fileList = _ref7.fileList;
3337
3157
  readerXlsxToList(file, fileList, null, null, {
3338
3158
  callback: function callback(excelData) {
3339
3159
  callBackFun(excelData);
@@ -4757,27 +4577,27 @@ var QueryMutipleSearchSelect = function QueryMutipleSearchSelect(_ref) {
4757
4577
  popvalue = _useState8[0],
4758
4578
  setPopValue = _useState8[1];
4759
4579
  var _useState9 = useState([]),
4760
- _useState10 = _slicedToArray(_useState9, 2),
4761
- source = _useState10[0],
4762
- setSource = _useState10[1];
4580
+ _useState0 = _slicedToArray(_useState9, 2),
4581
+ source = _useState0[0],
4582
+ setSource = _useState0[1];
4763
4583
  var _useDebounceFn = useDebounceFn(function () {
4764
4584
  getData();
4765
4585
  }, {
4766
4586
  wait: 1000
4767
4587
  }),
4768
4588
  run = _useDebounceFn.run;
4769
- var _useState11 = useState(false),
4589
+ var _useState1 = useState(false),
4590
+ _useState10 = _slicedToArray(_useState1, 2),
4591
+ fetching = _useState10[0],
4592
+ setFetching = _useState10[1];
4593
+ var _useState11 = useState(''),
4770
4594
  _useState12 = _slicedToArray(_useState11, 2),
4771
- fetching = _useState12[0],
4772
- setFetching = _useState12[1];
4773
- var _useState13 = useState(''),
4595
+ searchValue = _useState12[0],
4596
+ setSearchValue = _useState12[1];
4597
+ var _useState13 = useState(resultSourceKey),
4774
4598
  _useState14 = _slicedToArray(_useState13, 2),
4775
- searchValue = _useState14[0],
4776
- setSearchValue = _useState14[1];
4777
- var _useState15 = useState(resultSourceKey),
4778
- _useState16 = _slicedToArray(_useState15, 2),
4779
- uniqueValue = _useState16[0],
4780
- setUniqueValue = _useState16[1];
4599
+ uniqueValue = _useState14[0],
4600
+ setUniqueValue = _useState14[1];
4781
4601
  useEffect(function () {
4782
4602
  setPopValue(value);
4783
4603
  onValueChange(value);
@@ -5194,21 +5014,21 @@ var PropertySelector = function PropertySelector(_ref) {
5194
5014
  notCommonProperty = _useState8[0],
5195
5015
  setNotCommonProperty = _useState8[1];
5196
5016
  var _useState9 = useState(false),
5197
- _useState10 = _slicedToArray(_useState9, 2),
5198
- visible = _useState10[0],
5199
- setVisible = _useState10[1];
5200
- var _useState11 = useState(false),
5017
+ _useState0 = _slicedToArray(_useState9, 2),
5018
+ visible = _useState0[0],
5019
+ setVisible = _useState0[1];
5020
+ var _useState1 = useState(false),
5021
+ _useState10 = _slicedToArray(_useState1, 2),
5022
+ showNotCommon = _useState10[0],
5023
+ setShowNotCommon = _useState10[1]; // 是否展示非常用属性
5024
+ var _useState11 = useState([]),
5201
5025
  _useState12 = _slicedToArray(_useState11, 2),
5202
- showNotCommon = _useState12[0],
5203
- setShowNotCommon = _useState12[1]; // 是否展示非常用属性
5204
- var _useState13 = useState([]),
5026
+ classifyOptionList = _useState12[0],
5027
+ setClassifyOptionList = _useState12[1];
5028
+ var _useState13 = useState('1'),
5205
5029
  _useState14 = _slicedToArray(_useState13, 2),
5206
- classifyOptionList = _useState14[0],
5207
- setClassifyOptionList = _useState14[1];
5208
- var _useState15 = useState('1'),
5209
- _useState16 = _slicedToArray(_useState15, 2),
5210
- listKey = _useState16[0],
5211
- setListKey = _useState16[1];
5030
+ listKey = _useState14[0],
5031
+ setListKey = _useState14[1];
5212
5032
  useEffect(function () {
5213
5033
  requestUtil({
5214
5034
  url: '/items/class/withProperty?pageSize=500&currentPage=1',
@@ -5591,29 +5411,29 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
5591
5411
  scrollPage = _useState8[0],
5592
5412
  setScrollPage = _useState8[1];
5593
5413
  var _useState9 = useState(0),
5594
- _useState10 = _slicedToArray(_useState9, 2),
5595
- itemsTotal = _useState10[0],
5596
- setItemsTotal = _useState10[1];
5597
- var _useState11 = useState(false),
5414
+ _useState0 = _slicedToArray(_useState9, 2),
5415
+ itemsTotal = _useState0[0],
5416
+ setItemsTotal = _useState0[1];
5417
+ var _useState1 = useState(false),
5418
+ _useState10 = _slicedToArray(_useState1, 2),
5419
+ fetching = _useState10[0],
5420
+ setFetching = _useState10[1];
5421
+ var _useState11 = useState(''),
5598
5422
  _useState12 = _slicedToArray(_useState11, 2),
5599
- fetching = _useState12[0],
5600
- setFetching = _useState12[1];
5601
- var _useState13 = useState(''),
5423
+ searchValue = _useState12[0],
5424
+ setSearchValue = _useState12[1];
5425
+ var _useState13 = useState(false),
5602
5426
  _useState14 = _slicedToArray(_useState13, 2),
5603
- searchValue = _useState14[0],
5604
- setSearchValue = _useState14[1];
5605
- var _useState15 = useState(false),
5427
+ isModalVisible = _useState14[0],
5428
+ setIsModalVisible = _useState14[1];
5429
+ var _useState15 = useState(initVal),
5606
5430
  _useState16 = _slicedToArray(_useState15, 2),
5607
- isModalVisible = _useState16[0],
5608
- setIsModalVisible = _useState16[1];
5609
- var _useState17 = useState(initVal),
5431
+ popvalue = _useState16[0],
5432
+ setPopValue = _useState16[1];
5433
+ var _useState17 = useState(resultSourceKey),
5610
5434
  _useState18 = _slicedToArray(_useState17, 2),
5611
- popvalue = _useState18[0],
5612
- setPopValue = _useState18[1];
5613
- var _useState19 = useState(resultSourceKey),
5614
- _useState20 = _slicedToArray(_useState19, 2),
5615
- uniqueValue = _useState20[0],
5616
- setUniqueValue = _useState20[1];
5435
+ uniqueValue = _useState18[0],
5436
+ setUniqueValue = _useState18[1];
5617
5437
  var _useDebounceFn = useDebounceFn(function (v) {
5618
5438
  // 优化搜索参数 支持传多个
5619
5439
  var searchParams = {};
@@ -5642,58 +5462,58 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
5642
5462
  var _Form$useForm = Form.useForm(),
5643
5463
  _Form$useForm2 = _slicedToArray(_Form$useForm, 1),
5644
5464
  form = _Form$useForm2[0];
5465
+ var _useState19 = useState(true),
5466
+ _useState20 = _slicedToArray(_useState19, 2),
5467
+ collapsed = _useState20[0],
5468
+ setCollapsed = _useState20[1];
5645
5469
  var _useState21 = useState(true),
5646
5470
  _useState22 = _slicedToArray(_useState21, 2),
5647
- collapsed = _useState22[0],
5648
- setCollapsed = _useState22[1];
5649
- var _useState23 = useState(true),
5471
+ caretLeftFlag = _useState22[0],
5472
+ setCaretLeftFlag = _useState22[1];
5473
+ var _useState23 = useState([]),
5650
5474
  _useState24 = _slicedToArray(_useState23, 2),
5651
- caretLeftFlag = _useState24[0],
5652
- setCaretLeftFlag = _useState24[1];
5653
- var _useState25 = useState([]),
5475
+ tableData = _useState24[0],
5476
+ setTableData = _useState24[1];
5477
+ var _useState25 = useState(tableInitPagination),
5654
5478
  _useState26 = _slicedToArray(_useState25, 2),
5655
- tableData = _useState26[0],
5656
- setTableData = _useState26[1];
5657
- var _useState27 = useState(tableInitPagination),
5479
+ tablePagination = _useState26[0],
5480
+ setTablePagination = _useState26[1];
5481
+ var _useState27 = useState([]),
5658
5482
  _useState28 = _slicedToArray(_useState27, 2),
5659
- tablePagination = _useState28[0],
5660
- setTablePagination = _useState28[1];
5483
+ selectedRowKeys = _useState28[0],
5484
+ setSelectedRowKeys = _useState28[1];
5661
5485
  var _useState29 = useState([]),
5662
5486
  _useState30 = _slicedToArray(_useState29, 2),
5663
- selectedRowKeys = _useState30[0],
5664
- setSelectedRowKeys = _useState30[1];
5665
- var _useState31 = useState([]),
5487
+ selectedRows = _useState30[0],
5488
+ setSelectedRows = _useState30[1];
5489
+ var _useState31 = useState(false),
5666
5490
  _useState32 = _slicedToArray(_useState31, 2),
5667
- selectedRows = _useState32[0],
5668
- setSelectedRows = _useState32[1];
5491
+ checkedAll = _useState32[0],
5492
+ setCheckedAll = _useState32[1];
5669
5493
  var _useState33 = useState(false),
5670
5494
  _useState34 = _slicedToArray(_useState33, 2),
5671
- checkedAll = _useState34[0],
5672
- setCheckedAll = _useState34[1];
5673
- var _useState35 = useState(false),
5495
+ indeterminate = _useState34[0],
5496
+ setIndeterminate = _useState34[1];
5497
+ var _useState35 = useState({}),
5674
5498
  _useState36 = _slicedToArray(_useState35, 2),
5675
- indeterminate = _useState36[0],
5676
- setIndeterminate = _useState36[1];
5677
- var _useState37 = useState({}),
5499
+ tableFormParams = _useState36[0],
5500
+ setTableFormParams = _useState36[1];
5501
+ var _useState37 = useState(false),
5678
5502
  _useState38 = _slicedToArray(_useState37, 2),
5679
- tableFormParams = _useState38[0],
5680
- setTableFormParams = _useState38[1];
5681
- var _useState39 = useState(false),
5503
+ tooltipVisible = _useState38[0],
5504
+ setTooltipVisible = _useState38[1];
5505
+ var _useState39 = useState(handleTableColumns(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableColumns)),
5682
5506
  _useState40 = _slicedToArray(_useState39, 2),
5683
- tooltipVisible = _useState40[0],
5684
- setTooltipVisible = _useState40[1];
5685
- var _useState41 = useState(handleTableColumns(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableColumns)),
5507
+ tableShowColumns = _useState40[0],
5508
+ setTabletShowColumns = _useState40[1]; // 默认展示表头-modalTableProps?.tableColumns
5509
+ var _useState41 = useState(false),
5686
5510
  _useState42 = _slicedToArray(_useState41, 2),
5687
- tableShowColumns = _useState42[0],
5688
- setTabletShowColumns = _useState42[1]; // 默认展示表头-modalTableProps?.tableColumns
5511
+ confirmLoading = _useState42[0],
5512
+ setConfirmLoading = _useState42[1];
5689
5513
  var _useState43 = useState(false),
5690
5514
  _useState44 = _slicedToArray(_useState43, 2),
5691
- confirmLoading = _useState44[0],
5692
- setConfirmLoading = _useState44[1];
5693
- var _useState45 = useState(false),
5694
- _useState46 = _slicedToArray(_useState45, 2),
5695
- modalSearched = _useState46[0],
5696
- setModalSearched = _useState46[1];
5515
+ modalSearched = _useState44[0],
5516
+ setModalSearched = _useState44[1];
5697
5517
  var setSelectDataSource = function setSelectDataSource(list, total) {
5698
5518
  setItems(list);
5699
5519
  setItemsTotal(total);
@@ -6170,7 +5990,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
6170
5990
  })) || [];
6171
5991
  var searchList = (modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.noEmptySearchField) ? list : list === null || list === void 0 ? void 0 : list.concat(addKong);
6172
5992
  return searchList.map(function (i, index) {
6173
- var _i$field, _i$field3, _i$field5, _i$field7, _i$field9, _i$field10, _i$field11, _i$field12, _i$field14, _i$field15;
5993
+ var _i$field, _i$field3, _i$field5, _i$field7, _i$field9, _i$field0, _i$field1, _i$field10, _i$field12, _i$field13;
6174
5994
  if ((i === null || i === void 0 ? void 0 : i.type) === 'kong') return /*#__PURE__*/React$1.createElement(Col, {
6175
5995
  span: ColSpan,
6176
5996
  key: i
@@ -6268,7 +6088,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
6268
6088
  disabled: setDisabled(i.name)
6269
6089
  }))));
6270
6090
  }
6271
- 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') {
6091
+ 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') {
6272
6092
  return /*#__PURE__*/React$1.createElement(Col, {
6273
6093
  span: ColSpan,
6274
6094
  key: i.name
@@ -6282,7 +6102,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
6282
6102
  }
6283
6103
  })));
6284
6104
  }
6285
- if ((i === null || i === void 0 ? void 0 : (_i$field11 = i.field) === null || _i$field11 === void 0 ? void 0 : _i$field11.type) === 'proppertySelector') {
6105
+ if ((i === null || i === void 0 ? void 0 : (_i$field1 = i.field) === null || _i$field1 === void 0 ? void 0 : _i$field1.type) === 'proppertySelector') {
6286
6106
  return /*#__PURE__*/React$1.createElement(Col, {
6287
6107
  span: ColSpan,
6288
6108
  key: i.name
@@ -6292,8 +6112,8 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
6292
6112
  key: i.name
6293
6113
  }, /*#__PURE__*/React$1.createElement(PropertySelector, null)));
6294
6114
  }
6295
- 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') {
6296
- var _i$field13;
6115
+ 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') {
6116
+ var _i$field11;
6297
6117
  return /*#__PURE__*/React$1.createElement(Col, {
6298
6118
  span: ColSpan,
6299
6119
  key: i.name
@@ -6306,9 +6126,9 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
6306
6126
  width: '100%'
6307
6127
  },
6308
6128
  placeholder: "\u8BF7\u9009\u62E9"
6309
- }, i === null || i === void 0 ? void 0 : (_i$field13 = i.field) === null || _i$field13 === void 0 ? void 0 : _i$field13.props))));
6129
+ }, i === null || i === void 0 ? void 0 : (_i$field11 = i.field) === null || _i$field11 === void 0 ? void 0 : _i$field11.props))));
6310
6130
  }
6311
- if ((i === null || i === void 0 ? void 0 : (_i$field14 = i.field) === null || _i$field14 === void 0 ? void 0 : _i$field14.type) === 'multipleQuerySearchSelect') {
6131
+ if ((i === null || i === void 0 ? void 0 : (_i$field12 = i.field) === null || _i$field12 === void 0 ? void 0 : _i$field12.type) === 'multipleQuerySearchSelect') {
6312
6132
  return /*#__PURE__*/React$1.createElement(Col, {
6313
6133
  span: ColSpan,
6314
6134
  key: i.name
@@ -6337,7 +6157,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
6337
6157
  placeholder: "\u8BF7\u8F93\u5165",
6338
6158
  allowClear: true,
6339
6159
  maxLength: 100
6340
- }, i === null || i === void 0 ? void 0 : (_i$field15 = i.field) === null || _i$field15 === void 0 ? void 0 : _i$field15.props), {}, {
6160
+ }, i === null || i === void 0 ? void 0 : (_i$field13 = i.field) === null || _i$field13 === void 0 ? void 0 : _i$field13.props), {}, {
6341
6161
  disabled: setDisabled(i.name)
6342
6162
  }))));
6343
6163
  });
@@ -7657,135 +7477,132 @@ var AddSelect = function AddSelect(props) {
7657
7477
  _Form$useForm2 = _slicedToArray(_Form$useForm, 1),
7658
7478
  form = _Form$useForm2[0];
7659
7479
  var _useState9 = useState(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableSearchForm),
7660
- _useState10 = _slicedToArray(_useState9, 2),
7661
- tableSearchForm = _useState10[0],
7662
- setTableSearchForm = _useState10[1];
7663
- var _useState11 = useState(true),
7480
+ _useState0 = _slicedToArray(_useState9, 2),
7481
+ tableSearchForm = _useState0[0],
7482
+ setTableSearchForm = _useState0[1];
7483
+ var _useState1 = useState(true),
7484
+ _useState10 = _slicedToArray(_useState1, 2),
7485
+ caretLeftFlag = _useState10[0],
7486
+ setCaretLeftFlag = _useState10[1];
7487
+ var _useState11 = useState([]),
7664
7488
  _useState12 = _slicedToArray(_useState11, 2),
7665
- caretLeftFlag = _useState12[0],
7666
- setCaretLeftFlag = _useState12[1];
7667
- var _useState13 = useState([]),
7668
- _useState14 = _slicedToArray(_useState13, 2),
7669
- tableData = _useState14[0],
7670
- setTableData = _useState14[1];
7671
- var _useState15 = useState(_objectSpread2({
7489
+ tableData = _useState12[0],
7490
+ setTableData = _useState12[1];
7491
+ var _useState13 = useState(_objectSpread2({
7672
7492
  total: 0,
7673
7493
  size: "small",
7674
7494
  current: 1,
7675
7495
  pageSize: tableInitPageSize
7676
7496
  }, modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.topTablePagination)),
7497
+ _useState14 = _slicedToArray(_useState13, 2),
7498
+ tablePagination = _useState14[0],
7499
+ setTablePagination = _useState14[1];
7500
+ var _useState15 = useState([]),
7677
7501
  _useState16 = _slicedToArray(_useState15, 2),
7678
- tablePagination = _useState16[0],
7679
- setTablePagination = _useState16[1];
7680
- var _useState17 = useState([]),
7502
+ selectedRowKeys = _useState16[0],
7503
+ setSelectedRowKeys = _useState16[1];
7504
+ var _useState17 = useState({}),
7681
7505
  _useState18 = _slicedToArray(_useState17, 2),
7682
- selectedRowKeys = _useState18[0],
7683
- setSelectedRowKeys = _useState18[1];
7684
- var _useState19 = useState({}),
7506
+ tableFormParams = _useState18[0],
7507
+ setTableFormParams = _useState18[1];
7508
+ var _useState19 = useState(false),
7685
7509
  _useState20 = _slicedToArray(_useState19, 2),
7686
- tableFormParams = _useState20[0],
7687
- setTableFormParams = _useState20[1];
7510
+ confirmLoading = _useState20[0],
7511
+ setConfirmLoading = _useState20[1];
7688
7512
  var _useState21 = useState(false),
7689
7513
  _useState22 = _slicedToArray(_useState21, 2),
7690
- confirmLoading = _useState22[0],
7691
- setConfirmLoading = _useState22[1];
7692
- var _useState23 = useState(false),
7514
+ confirmContinueLoading = _useState22[0],
7515
+ setConfirmContinueLoading = _useState22[1];
7516
+ var _useState23 = useState([]),
7693
7517
  _useState24 = _slicedToArray(_useState23, 2),
7694
- confirmContinueLoading = _useState24[0],
7695
- setConfirmContinueLoading = _useState24[1];
7518
+ selectColumns = _useState24[0],
7519
+ setSelectColumns = _useState24[1];
7696
7520
  var _useState25 = useState([]),
7697
7521
  _useState26 = _slicedToArray(_useState25, 2),
7698
- selectColumns = _useState26[0],
7699
- setSelectColumns = _useState26[1];
7522
+ showColumns = _useState26[0],
7523
+ setShowColumns = _useState26[1];
7700
7524
  var _useState27 = useState([]),
7701
7525
  _useState28 = _slicedToArray(_useState27, 2),
7702
- showColumns = _useState28[0],
7703
- setShowColumns = _useState28[1];
7526
+ tableColumns = _useState28[0],
7527
+ setTableColumns = _useState28[1];
7704
7528
  var _useState29 = useState([]),
7705
7529
  _useState30 = _slicedToArray(_useState29, 2),
7706
- tableColumns = _useState30[0],
7707
- setTableColumns = _useState30[1];
7708
- var _useState31 = useState([]),
7709
- _useState32 = _slicedToArray(_useState31, 2),
7710
- showToChooseColumns = _useState32[0],
7711
- setShowToChooseColumns = _useState32[1];
7530
+ showToChooseColumns = _useState30[0],
7531
+ setShowToChooseColumns = _useState30[1];
7712
7532
  var codeToChoose = tableCodeList[0] || initTableCode[businessType][0];
7713
7533
  var codeSelected = tableCodeList[1] || initTableCode[businessType][1];
7714
7534
  // FIXME: 特殊业务逻辑
7715
7535
  var checkSelectChange = /*#__PURE__*/function () {
7716
- var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
7717
- var result;
7718
- return _regeneratorRuntime().wrap(function _callee$(_context) {
7719
- while (1) switch (_context.prev = _context.next) {
7536
+ var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
7537
+ var result, _t;
7538
+ return _regenerator().w(function (_context) {
7539
+ while (1) switch (_context.p = _context.n) {
7720
7540
  case 0:
7721
7541
  if (!(bType == 'skc' && tList.some(function (i) {
7722
7542
  return i[recordKey] == recordItem[recordKey] && i[selectItem.dataIndex] == changeValue;
7723
7543
  }))) {
7724
- _context.next = 3;
7544
+ _context.n = 1;
7725
7545
  break;
7726
7546
  }
7727
7547
  message$1.warning('相同skc配码不可设置相同哦');
7728
- return _context.abrupt("return", false);
7729
- case 3:
7548
+ return _context.a(2, false);
7549
+ case 1:
7730
7550
  if (!(bType == 'spu')) {
7731
- _context.next = 26;
7551
+ _context.n = 9;
7732
7552
  break;
7733
7553
  }
7734
7554
  if (!(selectItem.dataIndex == 'colorName' && tList.some(function (i) {
7735
7555
  return i[recordKey] == recordItem[recordKey] && i.selectPropertyGroupCode == recordItem.selectPropertyGroupCode && i[selectItem.dataIndex] == changeValue;
7736
7556
  }))) {
7737
- _context.next = 7;
7557
+ _context.n = 2;
7738
7558
  break;
7739
7559
  }
7740
7560
  message$1.warning('相同商品相同配码颜色不可设置相同哦');
7741
- return _context.abrupt("return", false);
7742
- case 7:
7561
+ return _context.a(2, false);
7562
+ case 2:
7743
7563
  if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && !recordItem.colorName)) {
7744
- _context.next = 10;
7564
+ _context.n = 3;
7745
7565
  break;
7746
7566
  }
7747
7567
  message$1.warning('请先选择颜色!');
7748
- return _context.abrupt("return", false);
7749
- case 10:
7568
+ return _context.a(2, false);
7569
+ case 3:
7750
7570
  if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && tList.some(function (i) {
7751
7571
  return i[recordKey] == recordItem[recordKey] && i.colorName == recordItem.colorName && i[selectItem.dataIndex] == changeValue;
7752
7572
  }))) {
7753
- _context.next = 13;
7573
+ _context.n = 4;
7754
7574
  break;
7755
7575
  }
7756
7576
  message$1.warning('相同商品相同颜色配码不可设置相同哦');
7757
- return _context.abrupt("return", false);
7758
- case 13:
7577
+ return _context.a(2, false);
7578
+ case 4:
7759
7579
  if (!(selectItem.dataIndex == 'selectPropertyGroupCode')) {
7760
- _context.next = 26;
7580
+ _context.n = 9;
7761
7581
  break;
7762
7582
  }
7763
7583
  result = true;
7764
- _context.prev = 15;
7765
- _context.next = 18;
7584
+ _context.p = 5;
7585
+ _context.n = 6;
7766
7586
  return checkSpuMatchCode({
7767
7587
  skcCode: recordItem[recordKey],
7768
7588
  matchingCode: changeValue,
7769
7589
  ext1: recordItem.colorName
7770
7590
  });
7771
- case 18:
7772
- result = _context.sent;
7591
+ case 6:
7592
+ result = _context.v;
7773
7593
  result = true;
7774
- _context.next = 25;
7594
+ _context.n = 8;
7775
7595
  break;
7776
- case 22:
7777
- _context.prev = 22;
7778
- _context.t0 = _context["catch"](15);
7779
- result = typeof _context.t0 == 'boolean' ? _context.t0 : false;
7780
- case 25:
7781
- return _context.abrupt("return", result);
7782
- case 26:
7783
- return _context.abrupt("return", true);
7784
- case 27:
7785
- case "end":
7786
- return _context.stop();
7787
- }
7788
- }, _callee, null, [[15, 22]]);
7596
+ case 7:
7597
+ _context.p = 7;
7598
+ _t = _context.v;
7599
+ result = typeof _t == 'boolean' ? _t : false;
7600
+ case 8:
7601
+ return _context.a(2, result);
7602
+ case 9:
7603
+ return _context.a(2, true);
7604
+ }
7605
+ }, _callee, null, [[5, 7]]);
7789
7606
  }));
7790
7607
  return function checkSelectChange(_x, _x2, _x3, _x4, _x5, _x6) {
7791
7608
  return _ref2.apply(this, arguments);
@@ -7876,17 +7693,16 @@ var AddSelect = function AddSelect(props) {
7876
7693
  e.target.blur();
7877
7694
  },
7878
7695
  onBlur: function () {
7879
- var _onBlur = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(e) {
7696
+ var _onBlur = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(e) {
7880
7697
  var value;
7881
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
7882
- while (1) switch (_context2.prev = _context2.next) {
7698
+ return _regenerator().w(function (_context2) {
7699
+ while (1) switch (_context2.n) {
7883
7700
  case 0:
7884
7701
  value = e.target.value;
7885
7702
  record[item.dataIndex] = value;
7886
7703
  editRecord(record);
7887
- case 3:
7888
- case "end":
7889
- return _context2.stop();
7704
+ case 1:
7705
+ return _context2.a(2);
7890
7706
  }
7891
7707
  }, _callee2);
7892
7708
  }));
@@ -8046,10 +7862,10 @@ var AddSelect = function AddSelect(props) {
8046
7862
  }
8047
7863
  _dom6 = null;
8048
7864
  } else if (e.keyCode === 38) {
8049
- var _e$nativeEvent$path$10;
7865
+ var _e$nativeEvent$path$0;
8050
7866
  e.stopPropagation();
8051
7867
  e.preventDefault();
8052
- var dom1 = (_e$nativeEvent$path$10 = e.nativeEvent.path[5].children[index]) === null || _e$nativeEvent$path$10 === void 0 ? void 0 : _e$nativeEvent$path$10.getElementsByTagName('input')[currentIndex];
7868
+ 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];
8053
7869
  if (dom1) {
8054
7870
  // dom1.value=""
8055
7871
  // dom1.setSelectionRange(100, 0);
@@ -8083,19 +7899,19 @@ var AddSelect = function AddSelect(props) {
8083
7899
  return /*#__PURE__*/React$1.createElement(Select, _objectSpread2(_objectSpread2({}, item.selectProps), {}, {
8084
7900
  value: text || null,
8085
7901
  onChange: function () {
8086
- var _onChange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(value) {
8087
- var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules;
8088
- return _regeneratorRuntime().wrap(function _callee3$(_context3) {
8089
- while (1) switch (_context3.prev = _context3.next) {
7902
+ var _onChange = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(value) {
7903
+ var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules, _t2;
7904
+ return _regenerator().w(function (_context3) {
7905
+ while (1) switch (_context3.p = _context3.n) {
8090
7906
  case 0:
8091
7907
  dataSourceSelectItem = (dataSourceList === null || dataSourceList === void 0 ? void 0 : dataSourceList.find(function (d) {
8092
7908
  return d[selectKey] == value;
8093
7909
  })) || {};
8094
7910
  if (!(item === null || item === void 0 ? void 0 : item.selectChangeCallback)) {
8095
- _context3.next = 6;
7911
+ _context3.n = 2;
8096
7912
  break;
8097
7913
  }
8098
- _context3.next = 4;
7914
+ _context3.n = 1;
8099
7915
  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, {
8100
7916
  record: record,
8101
7917
  index: index,
@@ -8105,10 +7921,10 @@ var AddSelect = function AddSelect(props) {
8105
7921
  dataSourceSelectItem: dataSourceSelectItem,
8106
7922
  editRecord: editRecord
8107
7923
  });
8108
- case 4:
8109
- _context3.next = 25;
7924
+ case 1:
7925
+ _context3.n = 10;
8110
7926
  break;
8111
- case 6:
7927
+ case 2:
8112
7928
  // 更新当前行数据函数
8113
7929
  changeValue = function changeValue(v, dSSItem) {
8114
7930
  var _item$dataSourceSelec;
@@ -8121,12 +7937,12 @@ var AddSelect = function AddSelect(props) {
8121
7937
  }
8122
7938
  }; // 处理校验,默认不校验
8123
7939
  isCheckPass = true;
8124
- _context3.prev = 8;
7940
+ _context3.p = 3;
8125
7941
  if (!(item === null || item === void 0 ? void 0 : item.selectCheckCallback)) {
8126
- _context3.next = 15;
7942
+ _context3.n = 5;
8127
7943
  break;
8128
7944
  }
8129
- _context3.next = 12;
7945
+ _context3.n = 4;
8130
7946
  return item === null || item === void 0 ? void 0 : item.selectCheckCallback(popvalue, {
8131
7947
  record: record,
8132
7948
  index: index,
@@ -8135,23 +7951,23 @@ var AddSelect = function AddSelect(props) {
8135
7951
  changeValue: value,
8136
7952
  dataSourceSelectItem: dataSourceSelectItem
8137
7953
  });
8138
- case 12:
8139
- isCheckPass = _context3.sent;
8140
- _context3.next = 19;
7954
+ case 4:
7955
+ isCheckPass = _context3.v;
7956
+ _context3.n = 7;
8141
7957
  break;
8142
- case 15:
8143
- _context3.next = 17;
7958
+ case 5:
7959
+ _context3.n = 6;
8144
7960
  return checkSelectChange(businessType, popvalue, mappingValueField, record, item, value);
8145
- case 17:
8146
- isConformToTheRules = _context3.sent;
7961
+ case 6:
7962
+ isConformToTheRules = _context3.v;
8147
7963
  isCheckPass = !isConformToTheRules;
8148
- case 19:
8149
- _context3.next = 23;
7964
+ case 7:
7965
+ _context3.n = 9;
8150
7966
  break;
8151
- case 21:
8152
- _context3.prev = 21;
8153
- _context3.t0 = _context3["catch"](8);
8154
- case 23:
7967
+ case 8:
7968
+ _context3.p = 8;
7969
+ _t2 = _context3.v;
7970
+ case 9:
8155
7971
  if (isCheckPass) {
8156
7972
  changeValue(value, dataSourceSelectItem);
8157
7973
  } else {
@@ -8159,11 +7975,10 @@ var AddSelect = function AddSelect(props) {
8159
7975
  }
8160
7976
  // 更新已选表格函数
8161
7977
  editRecord(record);
8162
- case 25:
8163
- case "end":
8164
- return _context3.stop();
7978
+ case 10:
7979
+ return _context3.a(2);
8165
7980
  }
8166
- }, _callee3, null, [[8, 21]]);
7981
+ }, _callee3, null, [[3, 8]]);
8167
7982
  }));
8168
7983
  function onChange(_x8) {
8169
7984
  return _onChange.apply(this, arguments);
@@ -9554,29 +9369,29 @@ var BillEntry = function BillEntry(_ref3) {
9554
9369
  dataIndex: 'propertyNameAndValue'
9555
9370
  }];
9556
9371
  var _useState9 = useState(false),
9557
- _useState10 = _slicedToArray(_useState9, 2),
9558
- isModalVisible = _useState10[0],
9559
- setIsModalVisible = _useState10[1];
9560
- var _useState11 = useState([{
9372
+ _useState0 = _slicedToArray(_useState9, 2),
9373
+ isModalVisible = _useState0[0],
9374
+ setIsModalVisible = _useState0[1];
9375
+ var _useState1 = useState([{
9561
9376
  hovered: false
9562
9377
  }]),
9563
- _useState12 = _slicedToArray(_useState11, 2),
9564
- data = _useState12[0],
9565
- setData = _useState12[1];
9378
+ _useState10 = _slicedToArray(_useState1, 2),
9379
+ data = _useState10[0],
9380
+ setData = _useState10[1];
9566
9381
  var tableRef = useRef(null);
9567
9382
  var codeSelected = tableCode;
9568
- var _useState13 = useState(false),
9383
+ var _useState11 = useState(false),
9384
+ _useState12 = _slicedToArray(_useState11, 2),
9385
+ loading = _useState12[0],
9386
+ setLoading = _useState12[1];
9387
+ var _useState13 = useState([]),
9569
9388
  _useState14 = _slicedToArray(_useState13, 2),
9570
- loading = _useState14[0],
9571
- setLoading = _useState14[1];
9389
+ selectColumns = _useState14[0],
9390
+ setSelectColumns = _useState14[1];
9572
9391
  var _useState15 = useState([]),
9573
9392
  _useState16 = _slicedToArray(_useState15, 2),
9574
- selectColumns = _useState16[0],
9575
- setSelectColumns = _useState16[1];
9576
- var _useState17 = useState([]),
9577
- _useState18 = _slicedToArray(_useState17, 2),
9578
- showColumns = _useState18[0],
9579
- setShowColumns = _useState18[1];
9393
+ showColumns = _useState16[0],
9394
+ setShowColumns = _useState16[1];
9580
9395
  useEffect(function () {
9581
9396
  setSelectColumns([].concat(_toConsumableArray(columns.map(function (item) {
9582
9397
  var inputLength = columns.filter(function (item) {
@@ -9692,42 +9507,42 @@ var BillEntry = function BillEntry(_ref3) {
9692
9507
  });
9693
9508
  };
9694
9509
  var handleSubmit = /*#__PURE__*/function () {
9695
- var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
9510
+ var _ref4 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
9696
9511
  var canEntryObject, _canEntryObject$error, messageInfo;
9697
- return _regeneratorRuntime().wrap(function _callee$(_context) {
9698
- while (1) switch (_context.prev = _context.next) {
9512
+ return _regenerator().w(function (_context) {
9513
+ while (1) switch (_context.n) {
9699
9514
  case 0:
9700
9515
  if (data === null || data === void 0 ? void 0 : data.length) {
9701
- _context.next = 3;
9516
+ _context.n = 1;
9702
9517
  break;
9703
9518
  }
9704
9519
  message$1.warning('至少录入一条数据');
9705
- return _context.abrupt("return");
9706
- case 3:
9520
+ return _context.a(2);
9521
+ case 1:
9707
9522
  if (data === null || data === void 0 ? void 0 : data.every(function (d) {
9708
9523
  return d.skuCode && d.name;
9709
9524
  })) {
9710
- _context.next = 6;
9525
+ _context.n = 2;
9711
9526
  break;
9712
9527
  }
9713
9528
  message$1.warning('录入商品不存在');
9714
- return _context.abrupt("return");
9715
- case 6:
9529
+ return _context.a(2);
9530
+ case 2:
9716
9531
  if (data === null || data === void 0 ? void 0 : data.every(function (d) {
9717
9532
  return d.count;
9718
9533
  })) {
9719
- _context.next = 9;
9534
+ _context.n = 3;
9720
9535
  break;
9721
9536
  }
9722
9537
  message$1.warning('请填写商品数量!');
9723
- return _context.abrupt("return");
9724
- case 9:
9725
- _context.next = 11;
9538
+ return _context.a(2);
9539
+ case 3:
9540
+ _context.n = 4;
9726
9541
  return isSkuCanEntry(data);
9727
- case 11:
9728
- canEntryObject = _context.sent;
9542
+ case 4:
9543
+ canEntryObject = _context.v;
9729
9544
  if (!((canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.flag) === false)) {
9730
- _context.next = 16;
9545
+ _context.n = 5;
9731
9546
  break;
9732
9547
  }
9733
9548
  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) {
@@ -9737,8 +9552,8 @@ var BillEntry = function BillEntry(_ref3) {
9737
9552
  content: messageInfo,
9738
9553
  duration: 6
9739
9554
  });
9740
- return _context.abrupt("return");
9741
- case 16:
9555
+ return _context.a(2);
9556
+ case 5:
9742
9557
  setLoading(true);
9743
9558
  onSaveCallback(data).then(function (res) {
9744
9559
  {
@@ -9756,9 +9571,8 @@ var BillEntry = function BillEntry(_ref3) {
9756
9571
  message$1.error(Error);
9757
9572
  setLoading(false);
9758
9573
  });
9759
- case 18:
9760
- case "end":
9761
- return _context.stop();
9574
+ case 6:
9575
+ return _context.a(2);
9762
9576
  }
9763
9577
  }, _callee);
9764
9578
  }));
@@ -11955,17 +11769,17 @@ function commonFun(type, prefixUrl, parentProps) {
11955
11769
  }
11956
11770
  }
11957
11771
  }];
11958
- var _queryHeaderParams10 = getQueryHeadersList({
11772
+ var _queryHeaderParams0 = getQueryHeadersList({
11959
11773
  querySelectHeadersList: querySelectHeadersList,
11960
11774
  extralHeaders: extralHeaders
11961
11775
  });
11962
- Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/org/listNoPage"), {}, getQueryHeadersItem(_queryHeaderParams10, 'qp-createOrgCode-eq')), loadSelectSource$1("/channel-manage/channelInfo/tree", {
11776
+ Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/org/listNoPage"), {}, getQueryHeadersItem(_queryHeaderParams0, 'qp-createOrgCode-eq')), loadSelectSource$1("/channel-manage/channelInfo/tree", {
11963
11777
  'qp-status-eq': 10,
11964
11778
  'qp-isMain-eq': 1,
11965
11779
  'qp-type-in': '1,2'
11966
- }, getQueryHeadersItem(_queryHeaderParams10, 'qp-orgCode-in')), loadSelectSource$1("/channel-manage/tagNode/getTree/10", {
11780
+ }, getQueryHeadersItem(_queryHeaderParams0, 'qp-orgCode-in')), loadSelectSource$1("/channel-manage/tagNode/getTree/10", {
11967
11781
  'qp-status-eq': 1
11968
- }, getQueryHeadersItem(_queryHeaderParams10, 'qp-orgCode-in'))]).then(function (x) {
11782
+ }, getQueryHeadersItem(_queryHeaderParams0, 'qp-orgCode-in'))]).then(function (x) {
11969
11783
  var firstElement = x === null || x === void 0 ? void 0 : x[0];
11970
11784
  var allList = firstElement && [firstElement, firstElement];
11971
11785
  formatSource(allList, 0, 2, tableSearchForm);
@@ -12151,7 +11965,7 @@ function commonFun(type, prefixUrl, parentProps) {
12151
11965
  }
12152
11966
  }
12153
11967
  }];
12154
- var _queryHeaderParams11 = getQueryHeadersList({
11968
+ var _queryHeaderParams1 = getQueryHeadersList({
12155
11969
  querySelectHeadersList: querySelectHeadersList,
12156
11970
  extralHeaders: extralHeaders
12157
11971
  });
@@ -12159,21 +11973,21 @@ function commonFun(type, prefixUrl, parentProps) {
12159
11973
  pageSize: 5000,
12160
11974
  currentPage: 1,
12161
11975
  'qp-companyType-eq': '30'
12162
- }, getQueryHeadersItem(_queryHeaderParams11, 'qp-conglomerateCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/company"), {
11976
+ }, getQueryHeadersItem(_queryHeaderParams1, 'qp-conglomerateCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/company"), {
12163
11977
  pageSize: 5000,
12164
11978
  currentPage: 1,
12165
11979
  'qp-companyType-eq': '20'
12166
- }, getQueryHeadersItem(_queryHeaderParams11, 'qp-companyCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/platformRecord/getPlatformRecordList"), {
11980
+ }, getQueryHeadersItem(_queryHeaderParams1, 'qp-companyCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/platformRecord/getPlatformRecordList"), {
12167
11981
  // pageSize: 5000,
12168
11982
  // currentPage: 1,
12169
11983
  'qp-status-eq': '1'
12170
- }, getQueryHeadersItem(_queryHeaderParams11, 'qp-plateformCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/store"), {
11984
+ }, getQueryHeadersItem(_queryHeaderParams1, 'qp-plateformCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/store"), {
12171
11985
  pageSize: 5000,
12172
11986
  currentPage: 1
12173
- }, getQueryHeadersItem(_queryHeaderParams11, 'qp-mainBrandCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/accountingSubject"), {
11987
+ }, getQueryHeadersItem(_queryHeaderParams1, 'qp-mainBrandCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/accountingSubject"), {
12174
11988
  pageSize: 5000,
12175
11989
  currentPage: 1
12176
- }, getQueryHeadersItem(_queryHeaderParams11, 'qp-accountingCode-in'))]).then(function (x) {
11990
+ }, getQueryHeadersItem(_queryHeaderParams1, 'qp-accountingCode-in'))]).then(function (x) {
12177
11991
  formatSource(x, 0, 2, tableSearchForm);
12178
11992
  formatSource(x, 1, 3, tableSearchForm);
12179
11993
  formatSource(x, 2, 5, tableSearchForm);
@@ -12342,8 +12156,26 @@ function commonFun(type, prefixUrl, parentProps) {
12342
12156
  }
12343
12157
  },
12344
12158
  initialSource: getDictionarySource$1('BUSINESS_StoreType')
12159
+ }, {
12160
+ name: "qp-brandCode-in",
12161
+ label: "品牌",
12162
+ field: {
12163
+ type: 'select',
12164
+ props: {
12165
+ mode: 'multiple',
12166
+ notFoundContent: '暂无数据',
12167
+ allowClear: true,
12168
+ showSearch: true,
12169
+ showArrow: true,
12170
+ maxTagCount: 1,
12171
+ optionFilterProp: 'children',
12172
+ filterOption: function filterOption(input, option) {
12173
+ return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
12174
+ }
12175
+ }
12176
+ }
12345
12177
  }];
12346
- var _queryHeaderParams12 = getQueryHeadersList({
12178
+ var _queryHeaderParams10 = getQueryHeadersList({
12347
12179
  querySelectHeadersList: querySelectHeadersList,
12348
12180
  extralHeaders: extralHeaders
12349
12181
  });
@@ -12351,13 +12183,17 @@ function commonFun(type, prefixUrl, parentProps) {
12351
12183
  'qp-employeeCode-eq': getEmployeeCode(),
12352
12184
  'qp-realOrg-eq': true,
12353
12185
  'qp-status-eq': 10
12354
- }, getQueryHeadersItem(_queryHeaderParams12, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/channelInfo/tree"), {
12186
+ }, getQueryHeadersItem(_queryHeaderParams10, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/channelInfo/tree"), {
12355
12187
  'qp-status-eq': 10,
12356
12188
  'qp-isMain-eq': 1,
12357
12189
  'qp-type-in': '1,2'
12358
- }, getQueryHeadersItem(_queryHeaderParams12, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/tagNode/getTree/10"), {
12190
+ }, getQueryHeadersItem(_queryHeaderParams10, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/tagNode/getTree/10"), {
12359
12191
  'qp-status-eq': 1
12360
- }, getQueryHeadersItem(_queryHeaderParams12, 'qp-orgCode-in'))]).then(function (x) {
12192
+ }, getQueryHeadersItem(_queryHeaderParams10, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/brand/queryBrandList"), {
12193
+ pageSize: 5000,
12194
+ currentPage: 1,
12195
+ 'ctl-withAuth': true
12196
+ }, getQueryHeadersItem(_queryHeaderParams10, 'ctl-withAuth'))]).then(function (x) {
12361
12197
  var channelDisabledJude = function channelDisabledJude(data) {
12362
12198
  return data['parentCode'] === '0';
12363
12199
  }; // 所属销售渠道 树节点不能点判断
@@ -12367,6 +12203,7 @@ function commonFun(type, prefixUrl, parentProps) {
12367
12203
  formatSource(x, 0, 3, tableSearchForm);
12368
12204
  formatTreeDataSource(x, 1, 4, tableSearchForm, ['code', 'name'], 'channelInfoSon', channelDisabledJude);
12369
12205
  formatTreeDataSource(x, 2, 5, tableSearchForm, ['code', 'name'], 'children', areaDisabledJude);
12206
+ formatSource(x, 3, 7, tableSearchForm, ['brandCode', 'name']);
12370
12207
  });
12371
12208
  modalTableProps = _objectSpread2({
12372
12209
  modalTableTitle: '选择商店',
@@ -12592,10 +12429,10 @@ function commonFun(type, prefixUrl, parentProps) {
12592
12429
  name: 'qp-email-like',
12593
12430
  label: '邮箱'
12594
12431
  }, {
12595
- name: 'qp-phone-like',
12432
+ name: 'qp-officeTelephone-like',
12596
12433
  label: '手机号'
12597
12434
  }];
12598
- var _queryHeaderParams13 = getQueryHeadersList({
12435
+ var _queryHeaderParams11 = getQueryHeadersList({
12599
12436
  querySelectHeadersList: querySelectHeadersList,
12600
12437
  extralHeaders: extralHeaders
12601
12438
  });
@@ -12603,7 +12440,7 @@ function commonFun(type, prefixUrl, parentProps) {
12603
12440
  pageSize: 5000,
12604
12441
  currentPage: 1,
12605
12442
  'qp-companyType-eq': 20
12606
- }, getQueryHeadersItem(_queryHeaderParams13, 'qp-companyCode-in'))]).then(function (x) {
12443
+ }, getQueryHeadersItem(_queryHeaderParams11, 'qp-companyCode-in'))]).then(function (x) {
12607
12444
  formatSource(x, 0, 2, tableSearchForm);
12608
12445
  });
12609
12446
  modalTableProps = _objectSpread2({
@@ -12712,13 +12549,13 @@ function commonFun(type, prefixUrl, parentProps) {
12712
12549
  name: 'qp-phone-like',
12713
12550
  label: '手机号'
12714
12551
  }]);
12715
- var _queryHeaderParams14 = getQueryHeadersList({
12552
+ var _queryHeaderParams12 = getQueryHeadersList({
12716
12553
  querySelectHeadersList: querySelectHeadersList,
12717
12554
  extralHeaders: extralHeaders
12718
12555
  });
12719
12556
  Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgViewNode/common/getTreeForOrgViewAndTenant"), {
12720
12557
  'orgViewCode': 'administrative-organization-view'
12721
- }, getQueryHeadersItem(_queryHeaderParams14, 'qp-code-in'))]).then(function (x) {
12558
+ }, getQueryHeadersItem(_queryHeaderParams12, 'qp-code-in'))]).then(function (x) {
12722
12559
  formatTreeDataSource(x, 0, 2, tableSearchForm, ['code', 'name']);
12723
12560
  });
12724
12561
  modalTableProps = _objectSpread2({
@@ -12769,7 +12606,7 @@ function commonFun(type, prefixUrl, parentProps) {
12769
12606
  dataIndex: 'email'
12770
12607
  }, {
12771
12608
  title: '手机号',
12772
- dataIndex: 'officeTelephone',
12609
+ dataIndex: 'phone',
12773
12610
  defaultSort: 4,
12774
12611
  render: function render(text, record) {
12775
12612
  return handleTextOverflow(text || (record === null || record === void 0 ? void 0 : record.phone));
@@ -12865,17 +12702,17 @@ function commonFun(type, prefixUrl, parentProps) {
12865
12702
  name: 'qp-remark-like',
12866
12703
  label: '备注'
12867
12704
  }];
12868
- var _queryHeaderParams15 = getQueryHeadersList({
12705
+ var _queryHeaderParams13 = getQueryHeadersList({
12869
12706
  querySelectHeadersList: querySelectHeadersList,
12870
12707
  extralHeaders: extralHeaders
12871
12708
  });
12872
12709
  Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/logisCompany"), {
12873
12710
  pageSize: 5000,
12874
12711
  currentPage: 1
12875
- }, getQueryHeadersItem(_queryHeaderParams15, logisCompanyCodeSingleSearchName)), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/printTemplate"), {
12712
+ }, getQueryHeadersItem(_queryHeaderParams13, logisCompanyCodeSingleSearchName)), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/printTemplate"), {
12876
12713
  pageSize: 5000,
12877
12714
  currentPage: 1
12878
- }, getQueryHeadersItem(_queryHeaderParams15, 'qp-sheetTemplateCode-in'))]).then(function (x) {
12715
+ }, getQueryHeadersItem(_queryHeaderParams13, 'qp-sheetTemplateCode-in'))]).then(function (x) {
12879
12716
  formatSource(x, 0, 2, tableSearchForm);
12880
12717
  formatSource(x, 1, 5, tableSearchForm);
12881
12718
  });
@@ -13045,14 +12882,14 @@ function commonFun(type, prefixUrl, parentProps) {
13045
12882
  }
13046
12883
  }
13047
12884
  }];
13048
- var _queryHeaderParams16 = getQueryHeadersList({
12885
+ var _queryHeaderParams14 = getQueryHeadersList({
13049
12886
  querySelectHeadersList: querySelectHeadersList,
13050
12887
  extralHeaders: extralHeaders
13051
12888
  });
13052
12889
  Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/permissionCategory"), {
13053
12890
  pageSize: 5000,
13054
12891
  currentPage: 1
13055
- }, getQueryHeadersItem(_queryHeaderParams16, 'qp-categoryCode-eq'))]).then(function (x) {
12892
+ }, getQueryHeadersItem(_queryHeaderParams14, 'qp-categoryCode-eq'))]).then(function (x) {
13056
12893
  formatSource(x, 0, 2, tableSearchForm);
13057
12894
  });
13058
12895
  modalTableProps = _objectSpread2({
@@ -13149,7 +12986,7 @@ function commonFun(type, prefixUrl, parentProps) {
13149
12986
  }
13150
12987
  }
13151
12988
  }];
13152
- var _queryHeaderParams17 = getQueryHeadersList({
12989
+ var _queryHeaderParams15 = getQueryHeadersList({
13153
12990
  querySelectHeadersList: querySelectHeadersList,
13154
12991
  extralHeaders: extralHeaders
13155
12992
  });
@@ -13157,7 +12994,7 @@ function commonFun(type, prefixUrl, parentProps) {
13157
12994
  'qp-employeeCode-eq': getEmployeeCode(),
13158
12995
  'qp-realOrg-eq': true,
13159
12996
  'qp-status-eq': 10
13160
- }, getQueryHeadersItem(_queryHeaderParams17, 'qp-salesOrgCode-in'))]).then(function (x) {
12997
+ }, getQueryHeadersItem(_queryHeaderParams15, 'qp-salesOrgCode-in'))]).then(function (x) {
13161
12998
  formatSource(x, 0, 2, tableSearchForm);
13162
12999
  });
13163
13000
  modalTableProps = _objectSpread2({
@@ -13263,13 +13100,13 @@ function commonFun(type, prefixUrl, parentProps) {
13263
13100
  },
13264
13101
  initialSource: nodeType
13265
13102
  }];
13266
- var _queryHeaderParams18 = getQueryHeadersList({
13103
+ var _queryHeaderParams16 = getQueryHeadersList({
13267
13104
  querySelectHeadersList: querySelectHeadersList,
13268
13105
  extralHeaders: extralHeaders
13269
13106
  });
13270
13107
  Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgView/getOrgViewListNoPage"), {
13271
13108
  'qp-status-eq': 10
13272
- }, getQueryHeadersItem(_queryHeaderParams18, 'qp-orgViewCode-in'))]).then(function (x) {
13109
+ }, getQueryHeadersItem(_queryHeaderParams16, 'qp-orgViewCode-in'))]).then(function (x) {
13273
13110
  formatSource(x, 0, 2, tableSearchForm);
13274
13111
  });
13275
13112
  modalTableProps = _objectSpread2({
@@ -13595,13 +13432,13 @@ function commonFun(type, prefixUrl, parentProps) {
13595
13432
  },
13596
13433
  initialSource: nodeType
13597
13434
  }];
13598
- var _queryHeaderParams19 = getQueryHeadersList({
13435
+ var _queryHeaderParams17 = getQueryHeadersList({
13599
13436
  querySelectHeadersList: querySelectHeadersList,
13600
13437
  extralHeaders: extralHeaders
13601
13438
  });
13602
13439
  Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgView/getOrgViewListNoPage"), {
13603
13440
  'qp-status-eq': 10
13604
- }, getQueryHeadersItem(_queryHeaderParams19, 'qp-orgViewCode-in'))]).then(function (x) {
13441
+ }, getQueryHeadersItem(_queryHeaderParams17, 'qp-orgViewCode-in'))]).then(function (x) {
13605
13442
  formatSource(x, 0, 2, tableSearchForm);
13606
13443
  });
13607
13444
  modalTableProps = _objectSpread2({
@@ -14546,9 +14383,9 @@ var AddSpuSelect = function AddSpuSelect(parProps) {
14546
14383
  value = _useState8[0],
14547
14384
  setValue = _useState8[1];
14548
14385
  var _useState9 = useState([]),
14549
- _useState10 = _slicedToArray(_useState9, 2),
14550
- propertyList = _useState10[0],
14551
- setPropertyList = _useState10[1];
14386
+ _useState0 = _slicedToArray(_useState9, 2),
14387
+ propertyList = _useState0[0],
14388
+ setPropertyList = _useState0[1];
14552
14389
  useEffect(function () {
14553
14390
  if (parProps === null || parProps === void 0 ? void 0 : parProps.isSingleColor) {
14554
14391
  // type: 1 尺码组; 2 配码组
@@ -14971,7 +14808,7 @@ function getStorageVale(storageKeyString) {
14971
14808
  var _storageKeyString$spl = storageKeyString.split('.'),
14972
14809
  _storageKeyString$spl2 = _toArray(_storageKeyString$spl),
14973
14810
  localstorage = _storageKeyString$spl2[0],
14974
- restKeyArrays = _storageKeyString$spl2.slice(1);
14811
+ restKeyArrays = _arrayLikeToArray(_storageKeyString$spl2).slice(1);
14975
14812
  var localStorageInfo = window.localStorage.getItem(localstorage);
14976
14813
  if (!restKeyArrays.length) return localStorageInfo;
14977
14814
  var returnVal = JSON.parse(localStorageInfo || '{}');
@@ -15072,46 +14909,45 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
15072
14909
  requestUtil.get("".concat(url, "?").concat(stringify(paramsData)), {
15073
14910
  headers: headers
15074
14911
  }).then(/*#__PURE__*/function () {
15075
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(res) {
14912
+ var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(res) {
15076
14913
  var _ctx$form;
15077
14914
  var resData, coverData, data, dataList;
15078
- return _regeneratorRuntime().wrap(function _callee$(_context) {
15079
- while (1) switch (_context.prev = _context.next) {
14915
+ return _regenerator().w(function (_context) {
14916
+ while (1) switch (_context.n) {
15080
14917
  case 0:
15081
14918
  resData = (res === null || res === void 0 ? void 0 : res.data) || [];
15082
14919
  if (!judgeIsRequestSuccess(resData)) {
15083
- _context.next = 13;
14920
+ _context.n = 4;
15084
14921
  break;
15085
14922
  }
15086
14923
  data = resData.data;
15087
14924
  if (!remoteSource.converter) {
15088
- _context.next = 9;
14925
+ _context.n = 2;
15089
14926
  break;
15090
14927
  }
15091
- _context.next = 6;
14928
+ _context.n = 1;
15092
14929
  return remoteSource.converter({
15093
14930
  data: [data]
15094
14931
  });
15095
- case 6:
15096
- coverData = _context.sent;
15097
- _context.next = 11;
14932
+ case 1:
14933
+ coverData = _context.v;
14934
+ _context.n = 3;
15098
14935
  break;
15099
- case 9:
14936
+ case 2:
15100
14937
  dataList = data && Array.isArray(data) ? data : data && [data] || [];
15101
14938
  coverData = dataList.length && dataList.map(function (ites) {
15102
14939
  return _mapSearchTree(ites);
15103
14940
  }) || [];
15104
- case 11:
15105
- _context.next = 14;
14941
+ case 3:
14942
+ _context.n = 5;
15106
14943
  break;
15107
- case 13:
14944
+ case 4:
15108
14945
  coverData = [];
15109
- case 14:
14946
+ case 5:
15110
14947
  setTreeData(coverData);
15111
14948
  ctx === null || ctx === void 0 ? void 0 : (_ctx$form = ctx.form) === null || _ctx$form === void 0 ? void 0 : _ctx$form.setFieldSource(ctx.name, coverData);
15112
- case 16:
15113
- case "end":
15114
- return _context.stop();
14949
+ case 6:
14950
+ return _context.a(2);
15115
14951
  }
15116
14952
  }, _callee);
15117
14953
  }));
@@ -17514,7 +17350,9 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
17514
17350
  title = _ref.title,
17515
17351
  pathToRegexp = _ref.pathToRegexp,
17516
17352
  backHistoryPath = _ref.backHistoryPath,
17517
- onBack = _ref.onBack;
17353
+ onBack = _ref.onBack,
17354
+ tradeType = _ref.tradeType,
17355
+ fromStatus = _ref.fromStatus;
17518
17356
  var _useState3 = useState(false),
17519
17357
  _useState4 = _slicedToArray(_useState3, 2),
17520
17358
  isFullScreen = _useState4[0],
@@ -17597,14 +17435,50 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
17597
17435
  }
17598
17436
  }
17599
17437
  };
17438
+ var getFlowButtons = function getFlowButtons() {
17439
+ try {
17440
+ return JSON.parse(localStorage.getItem('BUSINESS_FLOW_BUTTONS') || '[]');
17441
+ } catch (e) {
17442
+ return [];
17443
+ }
17444
+ };
17445
+ var filterByFlowRules = function filterByFlowRules(list, ctx) {
17446
+ var _find;
17447
+ var flowList = getFlowButtons();
17448
+ if (!(flowList === null || flowList === void 0 ? void 0 : flowList.length) || typeof ctx.tradeType !== 'number') return list;
17449
+ var entry = flowList.find(function (i) {
17450
+ return (i === null || i === void 0 ? void 0 : i.tradeType) === ctx.tradeType;
17451
+ });
17452
+ if (!entry) return list;
17453
+ var ctrlSet = new Set(((entry === null || entry === void 0 ? void 0 : entry.controlButtons) || []).filter(Boolean));
17454
+ var statButtons = ((_find = ((entry === null || entry === void 0 ? void 0 : entry.config) || []).find(function (c) {
17455
+ return (c === null || c === void 0 ? void 0 : c.fromStatus) === ctx.status;
17456
+ })) === null || _find === void 0 ? void 0 : _find.buttons) || [];
17457
+ var allowedSet = new Set((statButtons || []).filter(Boolean).filter(function (b) {
17458
+ return ctrlSet.size ? ctrlSet.has(b) : true;
17459
+ }));
17460
+ return list.filter(function (ui) {
17461
+ var _ui$props3, _ui$props4;
17462
+ 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);
17463
+ if (!uiCode) return true;
17464
+ if (ctrlSet.size && !ctrlSet.has(uiCode)) return true; // 非流程控制按钮不处理
17465
+ return allowedSet.has(uiCode);
17466
+ });
17467
+ };
17600
17468
  var renderPageActionList = function renderPageActionList(actionLists) {
17601
17469
  var _actionLists$;
17602
17470
  var authButton = localStorage.getItem(getMenuAuthDataKey()) ? JSON.parse(localStorage.getItem(getMenuAuthDataKey())) : [];
17603
17471
  var visibleActions = actionLists.filter(function (action) {
17604
- return (action.visible && action.visible !== 'false' || judgeIsEmpty$1(action.visible)) && (!shouldUseAuth() || judgeIsEmpty$1(action.code) || authButton.filter(function (item) {
17472
+ return (action.visible && action.visible !== 'false' || judgeIsEmpty$1(action.visible)) && (!shouldUseAuth() || judgeIsEmpty$1(action.code) || authButton.some(function (item) {
17605
17473
  return item === action.code;
17606
17474
  }));
17607
17475
  });
17476
+ if (typeof tradeType === 'number') {
17477
+ visibleActions = filterByFlowRules(visibleActions, {
17478
+ tradeType: tradeType,
17479
+ status: fromStatus
17480
+ });
17481
+ }
17608
17482
  var renderButton = function renderButton(item, type) {
17609
17483
  return /*#__PURE__*/React$1.createElement(Button, _objectSpread2({
17610
17484
  type: type || 'primary',
@@ -17717,6 +17591,68 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
17717
17591
  }
17718
17592
  return true;
17719
17593
  });
17594
+ var processDetailButtonsVisible = function processDetailButtonsVisible(buttons, params) {
17595
+ var _ref4 = params || {},
17596
+ tradeType = _ref4.tradeType,
17597
+ fromStatus = _ref4.fromStatus;
17598
+ var getFlowButtons = function getFlowButtons() {
17599
+ try {
17600
+ return JSON.parse(localStorage.getItem('BUSINESS_FLOW_BUTTONS') || '[]');
17601
+ } catch (e) {
17602
+ return [];
17603
+ }
17604
+ };
17605
+ var evalVisible = function evalVisible(v, ctx) {
17606
+ if (typeof v === 'string') {
17607
+ var expr = v.replace(/^#\{|\}$/g, '');
17608
+ try {
17609
+ var keys = Object.keys(ctx || {});
17610
+ var vals = keys.map(function (k) {
17611
+ return ctx[k];
17612
+ });
17613
+ // eslint-disable-next-line no-new-func
17614
+ return Function.apply(void 0, keys.concat(["return (".concat(expr, ");")])).apply(void 0, _toConsumableArray(vals));
17615
+ } catch (e) {
17616
+ return true;
17617
+ }
17618
+ }
17619
+ if (v === undefined) return true;
17620
+ return !!v;
17621
+ };
17622
+ var ctrlSet = new Set();
17623
+ var allowedSet = new Set();
17624
+ if (typeof tradeType === 'number') {
17625
+ var flowList = getFlowButtons();
17626
+ var entry = flowList.find(function (i) {
17627
+ return (i === null || i === void 0 ? void 0 : i.tradeType) === tradeType;
17628
+ });
17629
+ if (entry) {
17630
+ var _find2;
17631
+ ctrlSet = new Set(((entry === null || entry === void 0 ? void 0 : entry.controlButtons) || []).filter(Boolean));
17632
+ var statButtons = ((_find2 = ((entry === null || entry === void 0 ? void 0 : entry.config) || []).find(function (c) {
17633
+ return (c === null || c === void 0 ? void 0 : c.fromStatus) === fromStatus;
17634
+ })) === null || _find2 === void 0 ? void 0 : _find2.buttons) || [];
17635
+ allowedSet = new Set((statButtons || []).filter(Boolean).filter(function (b) {
17636
+ return ctrlSet.size ? ctrlSet.has(b) : true;
17637
+ }));
17638
+ }
17639
+ }
17640
+ var processed = (buttons || []).map(function (btn) {
17641
+ var visBase = evalVisible(btn === null || btn === void 0 ? void 0 : btn.visible, params);
17642
+ var vis = visBase;
17643
+ if (typeof tradeType === 'number' && ctrlSet && allowedSet && (btn === null || btn === void 0 ? void 0 : btn.code)) {
17644
+ if (ctrlSet.size === 0 || !ctrlSet.has(btn.code)) {
17645
+ vis = visBase;
17646
+ } else {
17647
+ vis = visBase && allowedSet.has(btn.code);
17648
+ }
17649
+ }
17650
+ return _objectSpread2(_objectSpread2({}, btn), {}, {
17651
+ visible: vis
17652
+ });
17653
+ });
17654
+ return processed;
17655
+ };
17720
17656
 
17721
17657
  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";
17722
17658
  styleInject(css_248z$h);
@@ -18010,6 +17946,9 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
18010
17946
  title: '列首',
18011
17947
  dataIndex: 'fixedLeft',
18012
17948
  render: function render(text, record) {
17949
+ if (_this.props.disableColumnFixed) {
17950
+ return null;
17951
+ }
18013
17952
  return /*#__PURE__*/React$1.createElement("span", {
18014
17953
  onClick: function onClick() {
18015
17954
  var sortDataSource = _this.state.sortDataSource;
@@ -18086,6 +18025,9 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
18086
18025
  title: '列尾',
18087
18026
  dataIndex: 'fixedRight',
18088
18027
  render: function render(text, record) {
18028
+ if (_this.props.disableColumnFixed) {
18029
+ return null;
18030
+ }
18089
18031
  return /*#__PURE__*/React$1.createElement("span", {
18090
18032
  onClick: function onClick() {
18091
18033
  var sortDataSource = _this.state.sortDataSource;
@@ -19335,7 +19277,7 @@ var ResizeableTitle$2 = function ResizeableTitle(props) {
19335
19277
  }, /*#__PURE__*/React$1.createElement("th", _objectSpread2({}, restProps)));
19336
19278
  };
19337
19279
  var BsSulaQueryTable = (function (props) {
19338
- var _rowsRef$current5, _props$expandable, _sortTableRef$current3, _value$exportConfig6;
19280
+ var _rowsRef$current5, _props$expandable, _sortTableRef$current3, _props$tableProps, _value$exportConfig6;
19339
19281
  var bsTableCode = (props === null || props === void 0 ? void 0 : props.tableCode) || window.location.hash; //设置列字段的唯一标识
19340
19282
  var rowsRef = useRef(null);
19341
19283
  // 获取 table columns中所有的 key 防止有的地方是 dataindex
@@ -19413,38 +19355,38 @@ var BsSulaQueryTable = (function (props) {
19413
19355
  };
19414
19356
  var refs = useRef(null);
19415
19357
  var _useState9 = useState(''),
19416
- _useState10 = _slicedToArray(_useState9, 2),
19417
- pagePath = _useState10[0],
19418
- setPagePath = _useState10[1];
19358
+ _useState0 = _slicedToArray(_useState9, 2),
19359
+ pagePath = _useState0[0],
19360
+ setPagePath = _useState0[1];
19419
19361
  var _useLocation = useLocation(),
19420
19362
  pathname = _useLocation.pathname,
19421
19363
  _useLocation$state = _useLocation.state,
19422
19364
  state = _useLocation$state === void 0 ? {} : _useLocation$state;
19423
- var _useState11 = useState(false),
19424
- _useState12 = _slicedToArray(_useState11, 2),
19425
- isFullScreen = _useState12[0],
19426
- setIsFnllScreen = _useState12[1];
19365
+ var _useState1 = useState(false),
19366
+ _useState10 = _slicedToArray(_useState1, 2),
19367
+ isFullScreen = _useState10[0],
19368
+ setIsFnllScreen = _useState10[1];
19427
19369
  // @ts-nocheck
19428
19370
  var value = props;
19429
19371
  var _props$fields = props.fields,
19430
19372
  fields = _props$fields === void 0 ? [] : _props$fields;
19431
- var _useState13 = useState([]),
19432
- _useState14 = _slicedToArray(_useState13, 2),
19433
- showColumn = _useState14[0],
19434
- setShowColumns = _useState14[1]; // 列字段
19373
+ var _useState11 = useState([]),
19374
+ _useState12 = _slicedToArray(_useState11, 2),
19375
+ showColumn = _useState12[0],
19376
+ setShowColumns = _useState12[1]; // 列字段
19435
19377
  var originSearchFields = getSettingFieldOrColumn(getConfigFromlocalstorage(ENUM$1.BROWSER_CACHE.SEARCH_FIELDS_CONDITION), fields, 'searchFields');
19436
- var _useState15 = useState(originSearchFields),
19378
+ var _useState13 = useState(originSearchFields),
19379
+ _useState14 = _slicedToArray(_useState13, 2),
19380
+ showSearchFields = _useState14[0],
19381
+ setShowSearchFields = _useState14[1]; //搜索项字段
19382
+ var _useState15 = useState([]),
19437
19383
  _useState16 = _slicedToArray(_useState15, 2),
19438
- showSearchFields = _useState16[0],
19439
- setShowSearchFields = _useState16[1]; //搜索项字段
19440
- var _useState17 = useState([]),
19384
+ showExportColumn = _useState16[0],
19385
+ setShowExportColumns = _useState16[1]; // 导出列字段
19386
+ var _useState17 = useState(''),
19441
19387
  _useState18 = _slicedToArray(_useState17, 2),
19442
- showExportColumn = _useState18[0],
19443
- setShowExportColumns = _useState18[1]; // 导出列字段
19444
- var _useState19 = useState(''),
19445
- _useState20 = _slicedToArray(_useState19, 2),
19446
- height = _useState20[0],
19447
- setHeight = _useState20[1];
19388
+ height = _useState18[0],
19389
+ setHeight = _useState18[1];
19448
19390
  var sortTableRef = useRef(null);
19449
19391
  var searchTableRef = useRef(null);
19450
19392
  var exportTableRef = useRef(null);
@@ -19697,10 +19639,22 @@ var BsSulaQueryTable = (function (props) {
19697
19639
  };
19698
19640
  }
19699
19641
  }, (value === null || value === void 0 ? void 0 : value.tableProps) || {});
19700
- // @ts-ignore
19701
19642
  if (tableProps === null || tableProps === void 0 ? void 0 : (_tableProps$initialPa = tableProps.initialPaging) === null || _tableProps$initialPa === void 0 ? void 0 : _tableProps$initialPa.pagination) {
19702
- // @ts-ignore
19703
19643
  tableProps.initialPaging.pagination.showSizeChanger = true;
19644
+ // 分页大小改变时,更新本地存储
19645
+ var onShowSizeChange = function onShowSizeChange(current, size) {
19646
+ var allPaginationData = JSON.parse(localStorage.getItem('paginationData') || "{}");
19647
+ allPaginationData[bsTableCode] = size;
19648
+ localStorage.setItem('paginationData', JSON.stringify(allPaginationData || {}));
19649
+ };
19650
+ tableProps.initialPaging.pagination.onShowSizeChange = onShowSizeChange;
19651
+ // 从本地存储中获取分页大小
19652
+ var pageSize = JSON.parse(localStorage.getItem('paginationData') || "{}")[bsTableCode];
19653
+ if (pageSize) {
19654
+ tableProps.initialPaging.pagination.pageSize = pageSize;
19655
+ tableProps.pageSize = pageSize;
19656
+ tableProps.defaultPageSize = pageSize;
19657
+ }
19704
19658
  }
19705
19659
  return tableProps;
19706
19660
  };
@@ -19785,13 +19739,124 @@ var BsSulaQueryTable = (function (props) {
19785
19739
  if (value.rowSelection) {
19786
19740
  value.rowSelection.columnWidth = 50;
19787
19741
  }
19742
+ if (typeof props.tradeType !== 'number') {
19743
+ return _objectSpread2(_objectSpread2({}, value), {}, {
19744
+ actionsRender: actionsRender
19745
+ });
19746
+ }
19747
+ try {
19748
+ var raw = JSON.parse(localStorage.getItem('BUSINESS_FLOW_BUTTONS') || '[]');
19749
+ var entry = raw.find(function (i) {
19750
+ return (i === null || i === void 0 ? void 0 : i.tradeType) === props.tradeType;
19751
+ });
19752
+ if (entry) {
19753
+ var ctrlSet = new Set(((entry === null || entry === void 0 ? void 0 : entry.controlButtons) || []).filter(Boolean));
19754
+ var allowedTopSet = new Set();
19755
+ ((entry === null || entry === void 0 ? void 0 : entry.config) || []).forEach(function (c) {
19756
+ ((c === null || c === void 0 ? void 0 : c.buttons) || []).filter(Boolean).forEach(function (b) {
19757
+ if (!ctrlSet.size || ctrlSet.has(b)) allowedTopSet.add(b);
19758
+ });
19759
+ });
19760
+ console.debug('[FlowCtrl:top]', {
19761
+ ctrlSize: ctrlSet.size,
19762
+ allowedTopSize: allowedTopSet.size
19763
+ });
19764
+ actionsRender = actionsRender.filter(function (ui) {
19765
+ var code = ui === null || ui === void 0 ? void 0 : ui.code;
19766
+ if (!code) return true;
19767
+ if (ctrlSet.size && !ctrlSet.has(code)) return true; // 非流程控制按钮不处理
19768
+ var keep = allowedTopSet.has(code);
19769
+ if (code) console.debug('[FlowCtrl:top-element]', {
19770
+ code: code,
19771
+ keep: keep
19772
+ });
19773
+ return keep;
19774
+ });
19775
+ }
19776
+ } catch (e) {}
19777
+ var remoteDataSource = value === null || value === void 0 ? void 0 : value.remoteDataSource;
19778
+ if (remoteDataSource) {
19779
+ var _ctrlSet = new Set();
19780
+ var btnStatusMap = new Map();
19781
+ try {
19782
+ var _raw = JSON.parse(localStorage.getItem('BUSINESS_FLOW_BUTTONS') || '[]');
19783
+ var _entry = _raw.find(function (i) {
19784
+ return (i === null || i === void 0 ? void 0 : i.tradeType) === props.tradeType;
19785
+ });
19786
+ if (_entry) {
19787
+ _ctrlSet = new Set(((_entry === null || _entry === void 0 ? void 0 : _entry.controlButtons) || []).filter(Boolean));
19788
+ ((_entry === null || _entry === void 0 ? void 0 : _entry.config) || []).forEach(function (c) {
19789
+ ((c === null || c === void 0 ? void 0 : c.buttons) || []).filter(Boolean).forEach(function (b) {
19790
+ if (!_ctrlSet.size || _ctrlSet.has(b)) {
19791
+ var set = btnStatusMap.get(b) || new Set();
19792
+ set.add(c === null || c === void 0 ? void 0 : c.fromStatus);
19793
+ btnStatusMap.set(b, set);
19794
+ }
19795
+ });
19796
+ });
19797
+ }
19798
+ } catch (e) {}
19799
+ var getByPath = function getByPath(obj, path) {
19800
+ if (!obj || !path) return undefined;
19801
+ var parts = path.split('.');
19802
+ var cur = obj;
19803
+ for (var i = 0; i < parts.length; i++) {
19804
+ var _cur;
19805
+ cur = (_cur = cur) === null || _cur === void 0 ? void 0 : _cur[parts[i]];
19806
+ if (cur === undefined) return undefined;
19807
+ }
19808
+ return cur;
19809
+ };
19810
+ var statusPath = props === null || props === void 0 ? void 0 : props.statusFieldPath;
19811
+ var augment = function augment(result) {
19812
+ if (!btnStatusMap || btnStatusMap.size === 0) return result;
19813
+ if (result && Array.isArray(result.list)) {
19814
+ result.list = result.list.map(function (rec) {
19815
+ var _ref2, _ref3, _ref4, _rec$status;
19816
+ 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;
19817
+ var map = {};
19818
+ btnStatusMap.forEach(function (set, code) {
19819
+ map[code] = set.has(status) ? true : undefined;
19820
+ });
19821
+ return _objectSpread2(_objectSpread2({}, rec), {}, {
19822
+ __flowAllowedMap: map
19823
+ });
19824
+ });
19825
+ }
19826
+ return result;
19827
+ };
19828
+ if (Array.isArray(remoteDataSource.converter)) {
19829
+ var stages = remoteDataSource.converter;
19830
+ var pipeline = function pipeline(args) {
19831
+ var res = args;
19832
+ for (var i = 0; i < stages.length; i++) {
19833
+ res = stages[i](res);
19834
+ }
19835
+ res = augment(res);
19836
+ return res;
19837
+ };
19838
+ remoteDataSource = _objectSpread2(_objectSpread2({}, remoteDataSource), {}, {
19839
+ converter: pipeline
19840
+ });
19841
+ } else if (typeof remoteDataSource.converter === 'function') {
19842
+ var orig = remoteDataSource.converter;
19843
+ var wrap = function wrap(args) {
19844
+ var res = orig(args);
19845
+ return augment(res);
19846
+ };
19847
+ remoteDataSource = _objectSpread2(_objectSpread2({}, remoteDataSource), {}, {
19848
+ converter: wrap
19849
+ });
19850
+ }
19851
+ }
19788
19852
  return _objectSpread2(_objectSpread2({}, value), {}, {
19789
- actionsRender: actionsRender
19853
+ actionsRender: actionsRender,
19854
+ remoteDataSource: remoteDataSource
19790
19855
  });
19791
19856
  };
19792
19857
  var handleResize = function handleResize(index) {
19793
- return function (e, _ref2) {
19794
- var size = _ref2.size;
19858
+ return function (e, _ref5) {
19859
+ var size = _ref5.size;
19795
19860
  setShowColumns(function (columns) {
19796
19861
  var newColumns = _toConsumableArray(columns);
19797
19862
  newColumns[index] = _objectSpread2(_objectSpread2({}, newColumns[index]), {}, {
@@ -19819,11 +19884,66 @@ var BsSulaQueryTable = (function (props) {
19819
19884
  // 优化一下 减少复杂度
19820
19885
  var titleMap = toMapByKey(value.columns, 'title');
19821
19886
  // 加上排序
19887
+ var hasFlowEntry = typeof props.tradeType === 'number' && function () {
19888
+ try {
19889
+ var raw = JSON.parse(localStorage.getItem('BUSINESS_FLOW_BUTTONS') || '[]');
19890
+ return !!raw.find(function (i) {
19891
+ return (i === null || i === void 0 ? void 0 : i.tradeType) === props.tradeType;
19892
+ });
19893
+ } catch (e) {
19894
+ return false;
19895
+ }
19896
+ }();
19897
+ var hasControlRange = typeof props.tradeType === 'number' && function () {
19898
+ try {
19899
+ var raw = JSON.parse(localStorage.getItem('BUSINESS_FLOW_BUTTONS') || '[]');
19900
+ var entry = raw.find(function (i) {
19901
+ return (i === null || i === void 0 ? void 0 : i.tradeType) === props.tradeType;
19902
+ });
19903
+ if (!entry) return false;
19904
+ var _ctrlSet2 = new Set(((entry === null || entry === void 0 ? void 0 : entry.controlButtons) || []).filter(Boolean));
19905
+ return _ctrlSet2.size > 0;
19906
+ } catch (e) {
19907
+ return false;
19908
+ }
19909
+ }();
19910
+ var toExpr = function toExpr(v) {
19911
+ if (typeof v === 'string') return v.replace(/^#\{|\}$/g, '');
19912
+ if (v === undefined) return 'true';
19913
+ return v ? 'true' : 'false';
19914
+ };
19915
+ // 读取当前 tradeType 的控制范围,用于只在控制按钮上追加流程表达式
19916
+ var ctrlSet = new Set();
19917
+ if (hasFlowEntry) {
19918
+ try {
19919
+ var raw = JSON.parse(localStorage.getItem('BUSINESS_FLOW_BUTTONS') || '[]');
19920
+ var entry = raw.find(function (i) {
19921
+ return (i === null || i === void 0 ? void 0 : i.tradeType) === props.tradeType;
19922
+ });
19923
+ if (entry) ctrlSet = new Set(((entry === null || entry === void 0 ? void 0 : entry.controlButtons) || []).filter(Boolean));
19924
+ } catch (e) {}
19925
+ }
19926
+ var augmentPermissionRender = function augmentPermissionRender(arr, set) {
19927
+ return arr.map(function (el) {
19928
+ var code = el === null || el === void 0 ? void 0 : el.code;
19929
+ if (!code) return el;
19930
+ // 非控制范围按钮不追加流程控制,保持原 visible
19931
+ if (!set || set.size === 0 || !set.has(code)) return el;
19932
+ var base = toExpr(el.visible);
19933
+ var flow = "record.__flowAllowedMap['".concat(code, "'] == true");
19934
+ return _objectSpread2(_objectSpread2({}, el), {}, {
19935
+ visible: "#{(".concat(base, ") && (").concat(flow, ")}")
19936
+ });
19937
+ });
19938
+ };
19822
19939
  var cols = showColumn.map(function (i) {
19823
- var _titleMap$renderToStr, _titleMap$renderToStr2;
19940
+ var orig = titleMap[renderToString(i.title)] || {};
19941
+ var origRender = orig.render;
19942
+ var isPerm = orig.isPermissionColumn;
19943
+ var newRender = Array.isArray(origRender) && isPerm && hasFlowEntry && hasControlRange ? augmentPermissionRender(origRender, ctrlSet) : origRender;
19824
19944
  return _objectSpread2(_objectSpread2({}, i), {}, {
19825
- isPermissionColumn: (_titleMap$renderToStr = titleMap[renderToString(i.title)]) === null || _titleMap$renderToStr === void 0 ? void 0 : _titleMap$renderToStr.isPermissionColumn,
19826
- render: (_titleMap$renderToStr2 = titleMap[renderToString(i.title)]) === null || _titleMap$renderToStr2 === void 0 ? void 0 : _titleMap$renderToStr2.render
19945
+ isPermissionColumn: isPerm,
19946
+ render: newRender
19827
19947
  });
19828
19948
  });
19829
19949
  cols.forEach(function (i) {
@@ -19996,6 +20116,7 @@ var BsSulaQueryTable = (function (props) {
19996
20116
  id: "bs-sula-query-table"
19997
20117
  }, /*#__PURE__*/React$1.createElement(MemoQueryTable, _objectSpread2({}, memoConfig)), /*#__PURE__*/React$1.createElement(SortableTable$1, {
19998
20118
  ref: sortTableRef,
20119
+ disableColumnFixed: (_props$tableProps = props.tableProps) === null || _props$tableProps === void 0 ? void 0 : _props$tableProps.isVirtualTable,
19999
20120
  setShowColumns: setResizeShowColumns,
20000
20121
  showColumn: showColumn,
20001
20122
  setInitialTableInfo: setInitialTableInfo,
@@ -20072,7 +20193,7 @@ var matchPath = function matchPath(pathname) {
20072
20193
  if (!match) return null;
20073
20194
  var _match = _toArray(match),
20074
20195
  url = _match[0],
20075
- values = _match.slice(1);
20196
+ values = _arrayLikeToArray(_match).slice(1);
20076
20197
  var isExact = pathname === url;
20077
20198
  if (exact && !isExact) return null;
20078
20199
  return {
@@ -20492,22 +20613,19 @@ function outLogin(_x) {
20492
20613
  return _outLogin.apply(this, arguments);
20493
20614
  }
20494
20615
  function _outLogin() {
20495
- _outLogin = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
20616
+ _outLogin = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(params) {
20496
20617
  var res;
20497
- return _regeneratorRuntime().wrap(function _callee$(_context) {
20498
- while (1) switch (_context.prev = _context.next) {
20618
+ return _regenerator().w(function (_context) {
20619
+ while (1) switch (_context.n) {
20499
20620
  case 0:
20500
- _context.next = 2;
20621
+ _context.n = 1;
20501
20622
  return requestUtil({
20502
20623
  url: '/user/web/loginOut',
20503
20624
  method: 'GET'
20504
20625
  });
20505
- case 2:
20506
- res = _context.sent;
20507
- return _context.abrupt("return", res);
20508
- case 4:
20509
- case "end":
20510
- return _context.stop();
20626
+ case 1:
20627
+ res = _context.v;
20628
+ return _context.a(2, res);
20511
20629
  }
20512
20630
  }, _callee);
20513
20631
  }));
@@ -20634,20 +20752,20 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
20634
20752
  });
20635
20753
  };
20636
20754
  var loginOut = /*#__PURE__*/function () {
20637
- var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
20755
+ var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
20638
20756
  var sessionId;
20639
- return _regeneratorRuntime().wrap(function _callee$(_context) {
20640
- while (1) switch (_context.prev = _context.next) {
20757
+ return _regenerator().w(function (_context) {
20758
+ while (1) switch (_context.n) {
20641
20759
  case 0:
20642
- _context.next = 2;
20760
+ _context.n = 1;
20643
20761
  return getSessionId();
20644
- case 2:
20645
- sessionId = _context.sent;
20646
- _context.next = 5;
20762
+ case 1:
20763
+ sessionId = _context.v;
20764
+ _context.n = 2;
20647
20765
  return outLogin({
20648
20766
  sessionId: sessionId
20649
20767
  });
20650
- case 5:
20768
+ case 2:
20651
20769
  // @ts-ignore
20652
20770
  if (BUILD_TYPE) {
20653
20771
  message$1.success('退出登录成功');
@@ -20657,9 +20775,8 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
20657
20775
  } else {
20658
20776
  setLoginOutPath();
20659
20777
  }
20660
- case 6:
20661
- case "end":
20662
- return _context.stop();
20778
+ case 3:
20779
+ return _context.a(2);
20663
20780
  }
20664
20781
  }, _callee);
20665
20782
  }));
@@ -20746,18 +20863,15 @@ function getStoreByName(_x) {
20746
20863
  return _getStoreByName.apply(this, arguments);
20747
20864
  }
20748
20865
  function _getStoreByName() {
20749
- _getStoreByName = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
20750
- return _regeneratorRuntime().wrap(function _callee$(_context) {
20751
- while (1) switch (_context.prev = _context.next) {
20866
+ _getStoreByName = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(params) {
20867
+ return _regenerator().w(function (_context) {
20868
+ while (1) switch (_context.n) {
20752
20869
  case 0:
20753
- return _context.abrupt("return", requestUtil({
20870
+ return _context.a(2, requestUtil({
20754
20871
  url: '/store-house/orgViewNode/listNoPage',
20755
20872
  method: 'GET',
20756
20873
  params: _objectSpread2({}, params)
20757
20874
  }));
20758
- case 1:
20759
- case "end":
20760
- return _context.stop();
20761
20875
  }
20762
20876
  }, _callee);
20763
20877
  }));
@@ -20792,33 +20906,33 @@ var ChooseStore = function ChooseStore(props) {
20792
20906
  openSelect = _useState8[0],
20793
20907
  setOpenSelect = _useState8[1];
20794
20908
  var _useState9 = useState([]),
20795
- _useState10 = _slicedToArray(_useState9, 2),
20796
- options = _useState10[0],
20797
- setOptions = _useState10[1];
20798
- var _useState11 = useState([]),
20909
+ _useState0 = _slicedToArray(_useState9, 2),
20910
+ options = _useState0[0],
20911
+ setOptions = _useState0[1];
20912
+ var _useState1 = useState([]),
20913
+ _useState10 = _slicedToArray(_useState1, 2),
20914
+ rescouse = _useState10[0],
20915
+ setRescouse = _useState10[1];
20916
+ var _useState11 = useState(''),
20799
20917
  _useState12 = _slicedToArray(_useState11, 2),
20800
- rescouse = _useState12[0],
20801
- setRescouse = _useState12[1];
20802
- var _useState13 = useState(''),
20803
- _useState14 = _slicedToArray(_useState13, 2),
20804
- searchValue = _useState14[0],
20805
- setSearchValue = _useState14[1];
20806
- var _useState15 = useState([{
20918
+ searchValue = _useState12[0],
20919
+ setSearchValue = _useState12[1];
20920
+ var _useState13 = useState([{
20807
20921
  label: name,
20808
20922
  value: code
20809
20923
  }]),
20810
- _useState16 = _slicedToArray(_useState15, 2),
20811
- store = _useState16[0],
20812
- setStore = _useState16[1];
20924
+ _useState14 = _slicedToArray(_useState13, 2),
20925
+ store = _useState14[0],
20926
+ setStore = _useState14[1];
20813
20927
  function fetchUserList(_x, _x2) {
20814
20928
  return _fetchUserList.apply(this, arguments);
20815
20929
  }
20816
20930
  function _fetchUserList() {
20817
- _fetchUserList = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(storeName, init) {
20818
- return _regeneratorRuntime().wrap(function _callee3$(_context3) {
20819
- while (1) switch (_context3.prev = _context3.next) {
20931
+ _fetchUserList = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(storeName, init) {
20932
+ return _regenerator().w(function (_context3) {
20933
+ while (1) switch (_context3.n) {
20820
20934
  case 0:
20821
- return _context3.abrupt("return", getStoreByName({
20935
+ return _context3.a(2, getStoreByName({
20822
20936
  orgName: storeName ? storeName : undefined,
20823
20937
  platCompanyCode: init ? undefined : key,
20824
20938
  'qp-employeeCode-eq': employeeCode || 'EMP231011000002',
@@ -20837,9 +20951,6 @@ var ChooseStore = function ChooseStore(props) {
20837
20951
  };
20838
20952
  });
20839
20953
  }));
20840
- case 1:
20841
- case "end":
20842
- return _context3.stop();
20843
20954
  }
20844
20955
  }, _callee3);
20845
20956
  }));
@@ -20862,20 +20973,19 @@ var ChooseStore = function ChooseStore(props) {
20862
20973
  return debounce$1(loadOptions, debounceTimeout);
20863
20974
  }, [debounceTimeout, key]);
20864
20975
  var changeInput = /*#__PURE__*/function () {
20865
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(str) {
20976
+ var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(str) {
20866
20977
  var res;
20867
- return _regeneratorRuntime().wrap(function _callee$(_context) {
20868
- while (1) switch (_context.prev = _context.next) {
20978
+ return _regenerator().w(function (_context) {
20979
+ while (1) switch (_context.n) {
20869
20980
  case 0:
20870
- _context.next = 2;
20981
+ _context.n = 1;
20871
20982
  return debounceFetcher(str);
20872
- case 2:
20873
- res = _context.sent;
20983
+ case 1:
20984
+ res = _context.v;
20874
20985
  setOptions(res);
20875
20986
  setRescouse(res);
20876
- case 5:
20877
- case "end":
20878
- return _context.stop();
20987
+ case 2:
20988
+ return _context.a(2);
20879
20989
  }
20880
20990
  }, _callee);
20881
20991
  }));
@@ -20884,15 +20994,15 @@ var ChooseStore = function ChooseStore(props) {
20884
20994
  };
20885
20995
  }();
20886
20996
  useEffect(function () {
20887
- _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
20997
+ _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
20888
20998
  var res;
20889
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
20890
- while (1) switch (_context2.prev = _context2.next) {
20999
+ return _regenerator().w(function (_context2) {
21000
+ while (1) switch (_context2.n) {
20891
21001
  case 0:
20892
- _context2.next = 2;
21002
+ _context2.n = 1;
20893
21003
  return fetchUserList(undefined, true);
20894
- case 2:
20895
- res = _context2.sent;
21004
+ case 1:
21005
+ res = _context2.v;
20896
21006
  res.map(function (item, indexNumber) {
20897
21007
  if (item.label === name) {
20898
21008
  setIndex(indexNumber);
@@ -20908,9 +21018,8 @@ var ChooseStore = function ChooseStore(props) {
20908
21018
  });
20909
21019
  setOptions(res);
20910
21020
  setRescouse(res);
20911
- case 6:
20912
- case "end":
20913
- return _context2.stop();
21021
+ case 2:
21022
+ return _context2.a(2);
20914
21023
  }
20915
21024
  }, _callee2);
20916
21025
  }))();
@@ -21959,25 +22068,25 @@ var DrawContent$1 = function DrawContent(_ref) {
21959
22068
  currentOneLevel = _useState8[0],
21960
22069
  setCurrentOneLevel = _useState8[1];
21961
22070
  var _useState9 = useState([]),
21962
- _useState10 = _slicedToArray(_useState9, 2),
21963
- SearhData = _useState10[0],
21964
- setSearchMenuData = _useState10[1];
21965
- var _useState11 = useState(600),
22071
+ _useState0 = _slicedToArray(_useState9, 2),
22072
+ SearhData = _useState0[0],
22073
+ setSearchMenuData = _useState0[1];
22074
+ var _useState1 = useState(600),
22075
+ _useState10 = _slicedToArray(_useState1, 2),
22076
+ rightMenuHeight = _useState10[0],
22077
+ setHeight = _useState10[1];
22078
+ var _useState11 = useState(900),
21966
22079
  _useState12 = _slicedToArray(_useState11, 2),
21967
- rightMenuHeight = _useState12[0],
21968
- setHeight = _useState12[1];
21969
- var _useState13 = useState(900),
22080
+ drawHeight = _useState12[0],
22081
+ setDrawHeight = _useState12[1];
22082
+ var _useState13 = useState(false),
21970
22083
  _useState14 = _slicedToArray(_useState13, 2),
21971
- drawHeight = _useState14[0],
21972
- setDrawHeight = _useState14[1];
22084
+ moreBtnShow = _useState14[0],
22085
+ setMoreBtnShow = _useState14[1];
21973
22086
  var _useState15 = useState(false),
21974
22087
  _useState16 = _slicedToArray(_useState15, 2),
21975
- moreBtnShow = _useState16[0],
21976
- setMoreBtnShow = _useState16[1];
21977
- var _useState17 = useState(false),
21978
- _useState18 = _slicedToArray(_useState17, 2),
21979
- showScroll = _useState18[0],
21980
- setShowScroll = _useState18[1];
22088
+ showScroll = _useState16[0],
22089
+ setShowScroll = _useState16[1];
21981
22090
  useEffect(function () {
21982
22091
  var _originRoutes$find;
21983
22092
  getMenuContentHeight();
@@ -23588,14 +23697,11 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
23588
23697
  },
23589
23698
  menu: {
23590
23699
  request: function () {
23591
- var _request = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
23592
- return _regeneratorRuntime().wrap(function _callee$(_context) {
23593
- while (1) switch (_context.prev = _context.next) {
23700
+ var _request = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
23701
+ return _regenerator().w(function (_context) {
23702
+ while (1) switch (_context.n) {
23594
23703
  case 0:
23595
- return _context.abrupt("return", JSON.parse(localStorage.getItem("customerMenu_".concat(itemPath, "_front")) || '[]'));
23596
- case 1:
23597
- case "end":
23598
- return _context.stop();
23704
+ return _context.a(2, JSON.parse(localStorage.getItem("customerMenu_".concat(itemPath, "_front")) || '[]'));
23599
23705
  }
23600
23706
  }, _callee);
23601
23707
  }));
@@ -24000,31 +24106,31 @@ var index$6 = /*#__PURE__*/forwardRef(function (props, ref) {
24000
24106
  multiTableData = _useState8[0],
24001
24107
  setMmultiTableData = _useState8[1]; //多表头数据
24002
24108
  var _useState9 = useState(10),
24003
- _useState10 = _slicedToArray(_useState9, 2),
24004
- viewCount = _useState10[0],
24005
- setViewCount = _useState10[1]; //虚拟表格每次渲染数量
24109
+ _useState0 = _slicedToArray(_useState9, 2),
24110
+ viewCount = _useState0[0],
24111
+ setViewCount = _useState0[1]; //虚拟表格每次渲染数量
24006
24112
  var itemWidth = 100; // 表格每一项宽度
24007
- var _useState11 = useState((props === null || props === void 0 ? void 0 : props.colHeaderWidth) || 400),
24008
- _useState12 = _slicedToArray(_useState11, 2),
24009
- realColHeaderWidth = _useState12[0],
24010
- setLeftWidth = _useState12[1];
24113
+ var _useState1 = useState((props === null || props === void 0 ? void 0 : props.colHeaderWidth) || 400),
24114
+ _useState10 = _slicedToArray(_useState1, 2),
24115
+ realColHeaderWidth = _useState10[0],
24116
+ setLeftWidth = _useState10[1];
24011
24117
  var viewPort = useRef(null);
24012
24118
  var topScrollBar = useRef(null);
24013
24119
  var leftTableRef = useRef(null);
24014
24120
  //起始渲染item
24015
- var _useState13 = useState(0),
24016
- _useState14 = _slicedToArray(_useState13, 2),
24017
- startIndex = _useState14[0],
24018
- setStartIndex = _useState14[1];
24121
+ var _useState11 = useState(0),
24122
+ _useState12 = _slicedToArray(_useState11, 2),
24123
+ startIndex = _useState12[0],
24124
+ setStartIndex = _useState12[1];
24019
24125
  //结束渲染item
24020
24126
  var endIndex = useMemo(function () {
24021
24127
  return startIndex + viewCount;
24022
24128
  }, [startIndex, viewCount]);
24023
24129
  //表格偏移量
24024
- var _useState15 = useState(0),
24025
- _useState16 = _slicedToArray(_useState15, 2),
24026
- offsetWidth = _useState16[0],
24027
- setOffset = _useState16[1];
24130
+ var _useState13 = useState(0),
24131
+ _useState14 = _slicedToArray(_useState13, 2),
24132
+ offsetWidth = _useState14[0],
24133
+ setOffset = _useState14[1];
24028
24134
  useEffect(function () {
24029
24135
  setTimeout(function () {
24030
24136
  var realLeftTableWidth = leftTableRef.current.clientWidth;
@@ -31328,11 +31434,11 @@ var valueType = {
31328
31434
  };
31329
31435
 
31330
31436
  var getDynamicDict = /*#__PURE__*/function () {
31331
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
31332
- return _regeneratorRuntime().wrap(function _callee$(_context) {
31333
- while (1) switch (_context.prev = _context.next) {
31437
+ var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(dictionaryCode) {
31438
+ return _regenerator().w(function (_context) {
31439
+ while (1) switch (_context.n) {
31334
31440
  case 0:
31335
- _context.next = 2;
31441
+ _context.n = 1;
31336
31442
  return request$2({
31337
31443
  url: "/basic/dictDynamicItem/getDynamicData/".concat(dictionaryCode),
31338
31444
  converter: function converter(_ref2) {
@@ -31345,11 +31451,8 @@ var getDynamicDict = /*#__PURE__*/function () {
31345
31451
  });
31346
31452
  }
31347
31453
  });
31348
- case 2:
31349
- return _context.abrupt("return", _context.sent);
31350
- case 3:
31351
- case "end":
31352
- return _context.stop();
31454
+ case 1:
31455
+ return _context.a(2, _context.v);
31353
31456
  }
31354
31457
  }, _callee);
31355
31458
  }));
@@ -31396,12 +31499,12 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
31396
31499
  value: false
31397
31500
  }];
31398
31501
  var ref = useRef();
31399
- useMount(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
31400
- var _ref$current, source;
31401
- return _regeneratorRuntime().wrap(function _callee$(_context) {
31402
- while (1) switch (_context.prev = _context.next) {
31502
+ useMount(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
31503
+ var _ref$current, source, _t, _t2;
31504
+ return _regenerator().w(function (_context) {
31505
+ while (1) switch (_context.n) {
31403
31506
  case 0:
31404
- _context.next = 2;
31507
+ _context.n = 1;
31405
31508
  return setIsShowAndType(function (prev) {
31406
31509
  if (record.inputType === 20 || record.inputType === 30) {
31407
31510
  return {
@@ -31412,40 +31515,39 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
31412
31515
  }
31413
31516
  return prev;
31414
31517
  });
31415
- case 2:
31518
+ case 1:
31416
31519
  if (!record.dictionaryCode) {
31417
- _context.next = 17;
31520
+ _context.n = 7;
31418
31521
  break;
31419
31522
  }
31420
31523
  if (!(record.choiceType == 20)) {
31421
- _context.next = 7;
31524
+ _context.n = 2;
31422
31525
  break;
31423
31526
  }
31424
- _context.t0 = getDictionarySource(record.dictionaryCode);
31425
- _context.next = 15;
31527
+ _t = getDictionarySource(record.dictionaryCode);
31528
+ _context.n = 6;
31426
31529
  break;
31427
- case 7:
31530
+ case 2:
31428
31531
  if (!(record.choiceType == 30)) {
31429
- _context.next = 13;
31532
+ _context.n = 4;
31430
31533
  break;
31431
31534
  }
31432
- _context.next = 10;
31535
+ _context.n = 3;
31433
31536
  return getDynamicDict(record.dictionaryCode);
31434
- case 10:
31435
- _context.t1 = _context.sent;
31436
- _context.next = 14;
31537
+ case 3:
31538
+ _t2 = _context.v;
31539
+ _context.n = 5;
31437
31540
  break;
31438
- case 13:
31439
- _context.t1 = [];
31440
- case 14:
31441
- _context.t0 = _context.t1;
31442
- case 15:
31443
- source = _context.t0;
31541
+ case 4:
31542
+ _t2 = [];
31543
+ case 5:
31544
+ _t = _t2;
31545
+ case 6:
31546
+ source = _t;
31444
31547
  // @ts-ignore
31445
31548
  ref === null || ref === void 0 ? void 0 : (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.setFieldSource('defaultValue', source);
31446
- case 17:
31447
- case "end":
31448
- return _context.stop();
31549
+ case 7:
31550
+ return _context.a(2);
31449
31551
  }
31450
31552
  }, _callee);
31451
31553
  })));
@@ -31510,10 +31612,10 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
31510
31612
  source: {
31511
31613
  relates: ['dictionaryCode', 'dictionaryCode_dynamic', 'choiceType'],
31512
31614
  type: function () {
31513
- var _type = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
31615
+ var _type = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(_ref3) {
31514
31616
  var form, values, name, relates, source;
31515
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
31516
- while (1) switch (_context2.prev = _context2.next) {
31617
+ return _regenerator().w(function (_context2) {
31618
+ while (1) switch (_context2.n) {
31517
31619
  case 0:
31518
31620
  form = _ref3.form, values = _ref3.values, name = _ref3.name, relates = _ref3.relates;
31519
31621
  if (values[0]) {
@@ -31522,19 +31624,18 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
31522
31624
  form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], getDictionarySource(values[0]));
31523
31625
  }
31524
31626
  if (!values[1]) {
31525
- _context2.next = 9;
31627
+ _context2.n = 2;
31526
31628
  break;
31527
31629
  }
31528
- _context2.next = 5;
31630
+ _context2.n = 1;
31529
31631
  return getDynamicDict(record.dictionaryCode || values[1]);
31530
- case 5:
31531
- source = _context2.sent;
31632
+ case 1:
31633
+ source = _context2.v;
31532
31634
  form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
31533
31635
  form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
31534
31636
  form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], source);
31535
- case 9:
31536
- case "end":
31537
- return _context2.stop();
31637
+ case 2:
31638
+ return _context2.a(2);
31538
31639
  }
31539
31640
  }, _callee2);
31540
31641
  }));
@@ -31990,25 +32091,25 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
31990
32091
  source: {
31991
32092
  relates: ['choiceType', 'inputType'],
31992
32093
  type: function () {
31993
- var _type2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
32094
+ var _type2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(_ref0) {
31994
32095
  var values, name, form, source;
31995
- return _regeneratorRuntime().wrap(function _callee3$(_context3) {
31996
- while (1) switch (_context3.prev = _context3.next) {
32096
+ return _regenerator().w(function (_context3) {
32097
+ while (1) switch (_context3.n) {
31997
32098
  case 0:
31998
- values = _ref10.values, name = _ref10.name, form = _ref10.form;
32099
+ values = _ref0.values, name = _ref0.name, form = _ref0.form;
31999
32100
  if (values[1] === 40) {
32000
32101
  form === null || form === void 0 ? void 0 : form.setFieldValue(name, null);
32001
32102
  form.setFieldVisible(name, false);
32002
32103
  }
32003
32104
  if (!(values[0] === 30)) {
32004
- _context3.next = 10;
32105
+ _context3.n = 2;
32005
32106
  break;
32006
32107
  }
32007
- _context3.next = 5;
32108
+ _context3.n = 1;
32008
32109
  return request$2({
32009
32110
  url: '/basic/dictDynamicItem/queryList',
32010
- converter: function converter(_ref11) {
32011
- var data = _ref11.data;
32111
+ converter: function converter(_ref1) {
32112
+ var data = _ref1.data;
32012
32113
  return data === null || data === void 0 ? void 0 : data.map(function (d) {
32013
32114
  return {
32014
32115
  text: d.dictCode,
@@ -32017,17 +32118,16 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
32017
32118
  });
32018
32119
  }
32019
32120
  });
32020
- case 5:
32021
- source = _context3.sent;
32121
+ case 1:
32122
+ source = _context3.v;
32022
32123
  form === null || form === void 0 ? void 0 : form.setFieldSource(name, source);
32023
32124
  form.setFieldVisible(name, true);
32024
- _context3.next = 11;
32125
+ _context3.n = 3;
32025
32126
  break;
32026
- case 10:
32127
+ case 2:
32027
32128
  form.setFieldVisible(name, false);
32028
- case 11:
32029
- case "end":
32030
- return _context3.stop();
32129
+ case 3:
32130
+ return _context3.a(2);
32031
32131
  }
32032
32132
  }, _callee3);
32033
32133
  }));
@@ -32042,8 +32142,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
32042
32142
  name: 'enumeration',
32043
32143
  label: '维护自定义选项',
32044
32144
  field: {
32045
- type: function type(_ref12) {
32046
- var form = _ref12.form;
32145
+ type: function type(_ref10) {
32146
+ var form = _ref10.form;
32047
32147
  return /*#__PURE__*/React$1.createElement(Button, {
32048
32148
  type: 'link',
32049
32149
  onClick: function onClick() {
@@ -32069,10 +32169,10 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
32069
32169
  dependency: {
32070
32170
  source: {
32071
32171
  relates: ['choiceType'],
32072
- type: function type(_ref13) {
32073
- var values = _ref13.values,
32074
- name = _ref13.name,
32075
- form = _ref13.form;
32172
+ type: function type(_ref11) {
32173
+ var values = _ref11.values,
32174
+ name = _ref11.name,
32175
+ form = _ref11.form;
32076
32176
  if (values[0] === 10) {
32077
32177
  form.setFieldVisible(name, true);
32078
32178
  } else {
@@ -32088,10 +32188,10 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
32088
32188
  dependency: {
32089
32189
  visible: {
32090
32190
  relates: ['choiceType'],
32091
- type: function type(_ref14) {
32092
- var name = _ref14.name,
32093
- values = _ref14.values,
32094
- form = _ref14.form;
32191
+ type: function type(_ref12) {
32192
+ var name = _ref12.name,
32193
+ values = _ref12.values,
32194
+ form = _ref12.form;
32095
32195
  if (values[0] == 330) {
32096
32196
  form.setFieldVisible(name, true);
32097
32197
  } else {
@@ -32115,8 +32215,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
32115
32215
  params: {
32116
32216
  'qp-businessType-eq': record.businessType
32117
32217
  },
32118
- converter: function converter(_ref15) {
32119
- var data = _ref15.data;
32218
+ converter: function converter(_ref13) {
32219
+ var data = _ref13.data;
32120
32220
  return (data === null || data === void 0 ? void 0 : data.map(function (d) {
32121
32221
  return {
32122
32222
  text: d.name,
@@ -32156,8 +32256,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
32156
32256
  'qp-businessType-eq': record.businessType,
32157
32257
  'qp-status-eq': 1
32158
32258
  },
32159
- converter: function converter(_ref16) {
32160
- var data = _ref16.data;
32259
+ converter: function converter(_ref14) {
32260
+ var data = _ref14.data;
32161
32261
  return (data === null || data === void 0 ? void 0 : data.map(function (d) {
32162
32262
  var _d$code;
32163
32263
  return {
@@ -32185,8 +32285,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
32185
32285
  remoteSource: {
32186
32286
  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),
32187
32287
  method: 'get',
32188
- converter: function converter(_ref17) {
32189
- var data = _ref17.data;
32288
+ converter: function converter(_ref15) {
32289
+ var data = _ref15.data;
32190
32290
  if (lineDetail.moduleType == 1) {
32191
32291
  return (data === null || data === void 0 ? void 0 : data.map(function (d) {
32192
32292
  return {
@@ -32212,16 +32312,16 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
32212
32312
  width: 900,
32213
32313
  maskClosable: false,
32214
32314
  onOk: function () {
32215
- var _onOk = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
32315
+ var _onOk = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4() {
32216
32316
  var _ref$current4, _res$editableStatus;
32217
32317
  var res, _res$defaultValue;
32218
- return _regeneratorRuntime().wrap(function _callee4$(_context4) {
32219
- while (1) switch (_context4.prev = _context4.next) {
32318
+ return _regenerator().w(function (_context4) {
32319
+ while (1) switch (_context4.n) {
32220
32320
  case 0:
32221
- _context4.next = 2;
32321
+ _context4.n = 1;
32222
32322
  return ref === null || ref === void 0 ? void 0 : (_ref$current4 = ref.current) === null || _ref$current4 === void 0 ? void 0 : _ref$current4.validateFields();
32223
- case 2:
32224
- res = _context4.sent;
32323
+ case 1:
32324
+ res = _context4.v;
32225
32325
  res.editableStatus = (_res$editableStatus = res.editableStatus) === null || _res$editableStatus === void 0 ? void 0 : _res$editableStatus.join(',');
32226
32326
  res.fieldGroup = record.fieldGroup;
32227
32327
  res.businessType = record.businessType;
@@ -32248,7 +32348,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
32248
32348
  delete res.formula;
32249
32349
  delete res.showValue;
32250
32350
  if (!(mode === 'create')) {
32251
- _context4.next = 18;
32351
+ _context4.n = 2;
32252
32352
  break;
32253
32353
  }
32254
32354
  request$2({
@@ -32260,8 +32360,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
32260
32360
  onParentOk();
32261
32361
  }
32262
32362
  });
32263
- return _context4.abrupt("return");
32264
- case 18:
32363
+ return _context4.a(2);
32364
+ case 2:
32265
32365
  request$2({
32266
32366
  url: "/basic/flow/businessField/".concat(record.id),
32267
32367
  method: 'PATCH',
@@ -32271,9 +32371,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
32271
32371
  onParentOk();
32272
32372
  }
32273
32373
  });
32274
- case 19:
32275
- case "end":
32276
- return _context4.stop();
32374
+ case 3:
32375
+ return _context4.a(2);
32277
32376
  }
32278
32377
  }, _callee4);
32279
32378
  }));
@@ -32729,21 +32828,21 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
32729
32828
  jsonEditorVal = _useState8[0],
32730
32829
  setJsonEditorVal = _useState8[1];
32731
32830
  var _useState9 = useState({}),
32732
- _useState10 = _slicedToArray(_useState9, 2),
32733
- moduleParams = _useState10[0],
32734
- setModuleParams = _useState10[1];
32735
- var _useState11 = useState('main'),
32831
+ _useState0 = _slicedToArray(_useState9, 2),
32832
+ moduleParams = _useState0[0],
32833
+ setModuleParams = _useState0[1];
32834
+ var _useState1 = useState('main'),
32835
+ _useState10 = _slicedToArray(_useState1, 2),
32836
+ activeKey = _useState10[0],
32837
+ setActiveKey = _useState10[1]; //默认详情页配置
32838
+ var _useState11 = useState({}),
32736
32839
  _useState12 = _slicedToArray(_useState11, 2),
32737
- activeKey = _useState12[0],
32738
- setActiveKey = _useState12[1]; //默认详情页配置
32739
- var _useState13 = useState({}),
32840
+ tablesConfigParams = _useState12[0],
32841
+ setTablesConfigParams = _useState12[1];
32842
+ var _useState13 = useState([]),
32740
32843
  _useState14 = _slicedToArray(_useState13, 2),
32741
- tablesConfigParams = _useState14[0],
32742
- setTablesConfigParams = _useState14[1];
32743
- var _useState15 = useState([]),
32744
- _useState16 = _slicedToArray(_useState15, 2),
32745
- tableJsonEditorValsArr = _useState16[0],
32746
- setTableJsonEditorValsArr = _useState16[1];
32844
+ tableJsonEditorValsArr = _useState14[0],
32845
+ setTableJsonEditorValsArr = _useState14[1];
32747
32846
  useEffect(function () {
32748
32847
  Promise.all([requestUtil.get("/basic/flow/businessFieldGroup/one?moduleType=2&layoutPoint=".concat(pageType))]).then(function (_ref2) {
32749
32848
  var _ref3 = _slicedToArray(_ref2, 1),
@@ -32774,7 +32873,7 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
32774
32873
  });
32775
32874
  Promise.all(axiosArr).then(function (_ref5) {
32776
32875
  var _ref6 = _toArray(_ref5),
32777
- resArr = _ref6.slice(0);
32876
+ resArr = _arrayLikeToArray(_ref6).slice(0);
32778
32877
  var configParams = {};
32779
32878
  detailTablesSetting.map(function (item, index) {
32780
32879
  var _resArr$index;
@@ -33119,11 +33218,11 @@ function getMetaData(_x) {
33119
33218
 
33120
33219
  // 获取数据
33121
33220
  function _getMetaData() {
33122
- _getMetaData = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(id) {
33123
- return _regeneratorRuntime().wrap(function _callee$(_context) {
33124
- while (1) switch (_context.prev = _context.next) {
33221
+ _getMetaData = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(id) {
33222
+ return _regenerator().w(function (_context) {
33223
+ while (1) switch (_context.n) {
33125
33224
  case 0:
33126
- return _context.abrupt("return", new Promise(function (resolve, reject) {
33225
+ return _context.a(2, new Promise(function (resolve, reject) {
33127
33226
  request$3('/basic/entityProperty/listNoPage', {
33128
33227
  params: {
33129
33228
  'qp-entityId-eq': id
@@ -33135,9 +33234,6 @@ function _getMetaData() {
33135
33234
  reject([]);
33136
33235
  });
33137
33236
  }));
33138
- case 1:
33139
- case "end":
33140
- return _context.stop();
33141
33237
  }
33142
33238
  }, _callee);
33143
33239
  }));
@@ -33341,11 +33437,11 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
33341
33437
  tableState = _useState4[0],
33342
33438
  setTableState = _useState4[1];
33343
33439
  var handleOpen = /*#__PURE__*/function () {
33344
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
33440
+ var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
33345
33441
  var _props$customSelector, _props$customSelector2, _props$ctx4, _props$value, _props$value$map, _props$ctx5, _props$ctx5$form, _props$selectProps;
33346
33442
  var requestConfigNew, metaDataId, metaData, realMetaData, columns, fields, initValue, _queryTableRef$curren, _queryTableRef$curren2, _queryTableRef$curren3;
33347
- return _regeneratorRuntime().wrap(function _callee$(_context) {
33348
- while (1) switch (_context.prev = _context.next) {
33443
+ return _regenerator().w(function (_context) {
33444
+ while (1) switch (_context.n) {
33349
33445
  case 0:
33350
33446
  requestConfigNew = assembleRequest(props.customSelectorConfig, {
33351
33447
  isSearchForm: props.isSearchForm,
@@ -33353,16 +33449,16 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
33353
33449
  searchFormData: searchFormData
33354
33450
  });
33355
33451
  if (requestConfigNew) {
33356
- _context.next = 3;
33452
+ _context.n = 1;
33357
33453
  break;
33358
33454
  }
33359
- return _context.abrupt("return");
33360
- case 3:
33455
+ return _context.a(2);
33456
+ case 1:
33361
33457
  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;
33362
- _context.next = 6;
33458
+ _context.n = 2;
33363
33459
  return getMetaData(metaDataId);
33364
- case 6:
33365
- metaData = _context.sent;
33460
+ case 2:
33461
+ metaData = _context.v;
33366
33462
  realMetaData = (metaData === null || metaData === void 0 ? void 0 : metaData.filter(function (item) {
33367
33463
  return (item === null || item === void 0 ? void 0 : item.inputType) != 1;
33368
33464
  })) || [];
@@ -33402,9 +33498,8 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
33402
33498
  // @ts-ignore
33403
33499
  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);
33404
33500
  }
33405
- case 14:
33406
- case "end":
33407
- return _context.stop();
33501
+ case 3:
33502
+ return _context.a(2);
33408
33503
  }
33409
33504
  }, _callee);
33410
33505
  }));
@@ -33507,7 +33602,7 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
33507
33602
  }, [requestConfig, tableState.columns]);
33508
33603
  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';
33509
33604
  var handleOk = function handleOk(rowData) {
33510
- var _props$selectProps2, _props$customSelector6, _props$customSelector7, _queryTableRef$curren13, _queryTableRef$curren14, _queryTableRef$curren15;
33605
+ var _props$selectProps2, _props$customSelector6, _props$customSelector7, _queryTableRef$curren11, _queryTableRef$curren12, _queryTableRef$curren13;
33511
33606
  var setSource = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
33512
33607
  //多选数据处理
33513
33608
  if (props === null || props === void 0 ? void 0 : (_props$selectProps2 = props.selectProps) === null || _props$selectProps2 === void 0 ? void 0 : _props$selectProps2.multipleForQuery) {
@@ -33518,9 +33613,9 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
33518
33613
  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()) || [];
33519
33614
  var realSelectedRows = selectedRows;
33520
33615
  if (!rowData && (selectedKesys === null || selectedKesys === void 0 ? void 0 : selectedKesys.length) !== (selectedRows === null || selectedRows === void 0 ? void 0 : selectedRows.length)) {
33521
- var _queryTableRef$curren10, _queryTableRef$curren11, _queryTableRef$curren12;
33616
+ var _queryTableRef$curren0, _queryTableRef$curren1, _queryTableRef$curren10;
33522
33617
  // @ts-ignore
33523
- 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()) || [];
33618
+ 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()) || [];
33524
33619
  realSelectedRows = dataSource === null || dataSource === void 0 ? void 0 : dataSource.filter(function (s) {
33525
33620
  return selectedKesys.includes(s[rowKey]);
33526
33621
  });
@@ -33553,10 +33648,10 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
33553
33648
  });
33554
33649
  }
33555
33650
  mappings.map(function (item) {
33556
- var _props$customSelector10, _props$customSelector11, _props$customSelector12, _props$customSelector13;
33557
- 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]) {
33558
- var _props$customSelector14, _props$customSelector15;
33559
- 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];
33651
+ var _props$customSelector0, _props$customSelector1, _props$customSelector10, _props$customSelector11;
33652
+ 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]) {
33653
+ var _props$customSelector12, _props$customSelector13;
33654
+ 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];
33560
33655
  }
33561
33656
  values[item.codeMappingTo] = rowData[item.codeMappingFrom];
33562
33657
  });
@@ -33611,10 +33706,10 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
33611
33706
  }
33612
33707
  props.onCancel();
33613
33708
  //@ts-ignore
33614
- 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();
33709
+ 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();
33615
33710
  };
33616
33711
  var config = useMemo(function () {
33617
- var _props$selectProps3, _props$ctx9, _props$value2, _props$ctx10, _props$ctx10$form;
33712
+ var _props$selectProps3, _props$ctx9, _props$value2, _props$ctx0, _props$ctx0$form;
33618
33713
  var returnConfig = {
33619
33714
  size: 'small',
33620
33715
  needPageHeader: false,
@@ -33623,7 +33718,7 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
33623
33718
  rowSelection: (props === null || props === void 0 ? void 0 : (_props$selectProps3 = props.selectProps) === null || _props$selectProps3 === void 0 ? void 0 : _props$selectProps3.multipleForQuery) && !isView ? {
33624
33719
  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) {
33625
33720
  return v.key || v;
33626
- })) || (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))
33721
+ })) || (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))
33627
33722
  } : false,
33628
33723
  remoteDataSource: remoteDataSource,
33629
33724
  fields: tableState.fields,
@@ -33631,8 +33726,8 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
33631
33726
  rowKey: rowKey,
33632
33727
  tableProps: !isView && {
33633
33728
  rowClassName: function rowClassName(record) {
33634
- var _props$ctx11, _props$value3, _props$ctx12, _props$ctx12$form;
33635
- 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' : '';
33729
+ var _props$ctx1, _props$value3, _props$ctx10, _props$ctx10$form;
33730
+ 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' : '';
33636
33731
  },
33637
33732
  onRow: function onRow(record) {
33638
33733
  return {
@@ -33677,10 +33772,10 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
33677
33772
  }, "\u63D0\u4EA4"), /*#__PURE__*/React$1.createElement(Button, {
33678
33773
  type: "default",
33679
33774
  onClick: function onClick() {
33680
- var _queryTableRef$curren16, _queryTableRef$curren17, _queryTableRef$curren18;
33775
+ var _queryTableRef$curren14, _queryTableRef$curren15, _queryTableRef$curren16;
33681
33776
  props.onCancel();
33682
33777
  //@ts-ignore
33683
- 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();
33778
+ 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();
33684
33779
  }
33685
33780
  }, "\u53D6\u6D88"))));
33686
33781
  });
@@ -33904,19 +33999,19 @@ var BsCascader = function BsCascader(_ref) {
33904
33999
  _useState2 = _slicedToArray(_useState, 2),
33905
34000
  handSource = _useState2[0],
33906
34001
  setHandSource = _useState2[1];
33907
- useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
34002
+ useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
33908
34003
  var resData, data;
33909
- return _regeneratorRuntime().wrap(function _callee$(_context) {
33910
- while (1) switch (_context.prev = _context.next) {
34004
+ return _regenerator().w(function (_context) {
34005
+ while (1) switch (_context.n) {
33911
34006
  case 0:
33912
34007
  if (!(!source && initRequestSource)) {
33913
- _context.next = 6;
34008
+ _context.n = 2;
33914
34009
  break;
33915
34010
  }
33916
- _context.next = 3;
34011
+ _context.n = 1;
33917
34012
  return initRequestSource();
33918
- case 3:
33919
- resData = _context.sent;
34013
+ case 1:
34014
+ resData = _context.v;
33920
34015
  data = (resData === null || resData === void 0 ? void 0 : resData.map(function (item) {
33921
34016
  return _objectSpread2(_objectSpread2({}, item), {}, {
33922
34017
  label: item.text,
@@ -33924,9 +34019,8 @@ var BsCascader = function BsCascader(_ref) {
33924
34019
  });
33925
34020
  })) || [];
33926
34021
  setHandSource(data);
33927
- case 6:
33928
- case "end":
33929
- return _context.stop();
34022
+ case 2:
34023
+ return _context.a(2);
33930
34024
  }
33931
34025
  }, _callee);
33932
34026
  })), []);
@@ -34056,20 +34150,17 @@ function getRegularThresholdRange(_x) {
34056
34150
  return _getRegularThresholdRange.apply(this, arguments);
34057
34151
  }
34058
34152
  function _getRegularThresholdRange() {
34059
- _getRegularThresholdRange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
34060
- return _regeneratorRuntime().wrap(function _callee$(_context) {
34061
- while (1) switch (_context.prev = _context.next) {
34153
+ _getRegularThresholdRange = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(params) {
34154
+ return _regenerator().w(function (_context) {
34155
+ while (1) switch (_context.n) {
34062
34156
  case 0:
34063
- return _context.abrupt("return", requestUtil({
34157
+ return _context.a(2, requestUtil({
34064
34158
  url: "/basic/regularThresholdRange/getVals/".concat(params.queryIdentify),
34065
34159
  method: 'POST',
34066
34160
  data: _objectSpread2(_objectSpread2({}, params), {}, {
34067
34161
  queryIdentify: undefined
34068
34162
  })
34069
34163
  }));
34070
- case 1:
34071
- case "end":
34072
- return _context.stop();
34073
34164
  }
34074
34165
  }, _callee);
34075
34166
  }));
@@ -34210,24 +34301,24 @@ var RuleField = /*#__PURE__*/function (_Component) {
34210
34301
  };
34211
34302
  //规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
34212
34303
  _this.getRegularThresholdRange = /*#__PURE__*/function () {
34213
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
34304
+ var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
34214
34305
  var thresholdQuery, extraRequestUrl, querParams, needQueryList, res;
34215
- return _regeneratorRuntime().wrap(function _callee$(_context) {
34216
- while (1) switch (_context.prev = _context.next) {
34306
+ return _regenerator().w(function (_context) {
34307
+ while (1) switch (_context.n) {
34217
34308
  case 0:
34218
34309
  if (queryIdentify) {
34219
- _context.next = 2;
34310
+ _context.n = 1;
34220
34311
  break;
34221
34312
  }
34222
- return _context.abrupt("return");
34223
- case 2:
34313
+ return _context.a(2);
34314
+ case 1:
34224
34315
  thresholdQuery = _this.state.thresholdQuery;
34225
34316
  extraRequestUrl = '';
34226
34317
  querParams = setParams(propertyCode, thresholdQuery);
34227
34318
  if (!queryIdentityInfo.find(function (item) {
34228
34319
  return item.identity == propertyCode;
34229
34320
  })) {
34230
- _context.next = 10;
34321
+ _context.n = 3;
34231
34322
  break;
34232
34323
  }
34233
34324
  //判断查询属性枚举时有没有必传参数,如果必传参数没有值则不调用查询接口
@@ -34241,15 +34332,15 @@ var RuleField = /*#__PURE__*/function (_Component) {
34241
34332
  if (!needQueryList.some(function (item) {
34242
34333
  return !querParams[item] || !querParams[item].length;
34243
34334
  })) {
34244
- _context.next = 9;
34335
+ _context.n = 2;
34245
34336
  break;
34246
34337
  }
34247
- return _context.abrupt("return");
34248
- case 9:
34338
+ return _context.a(2);
34339
+ case 2:
34249
34340
  extraRequestUrl = queryIdentityInfo.find(function (item) {
34250
34341
  return item.identity == propertyCode;
34251
34342
  }).requestUrl || '';
34252
- case 10:
34343
+ case 3:
34253
34344
  if (queryIdentifyType === 'dictCodeIdentify') {
34254
34345
  extraRequestUrl = "bscDictItem/selectDictItemsByDictCode"; // 字典接口
34255
34346
  querParams = {
@@ -34260,7 +34351,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
34260
34351
  // querParams = { dictCode: queryIdentify }
34261
34352
  }
34262
34353
  if (!extraRequestUrl) {
34263
- _context.next = 16;
34354
+ _context.n = 4;
34264
34355
  break;
34265
34356
  }
34266
34357
  if (queryIdentify == 'maintain_area_code') {
@@ -34299,43 +34390,42 @@ var RuleField = /*#__PURE__*/function (_Component) {
34299
34390
  return handleData;
34300
34391
  }
34301
34392
  });
34302
- _context.next = 29;
34393
+ _context.n = 8;
34303
34394
  break;
34304
- case 16:
34395
+ case 4:
34305
34396
  if (!(queryIdentifyType == 'objectPropertyListIdentify')) {
34306
- _context.next = 20;
34397
+ _context.n = 5;
34307
34398
  break;
34308
34399
  }
34309
34400
  _this.setState({
34310
34401
  thresholdList: queryIdentify
34311
34402
  });
34312
- _context.next = 29;
34403
+ _context.n = 8;
34313
34404
  break;
34314
- case 20:
34405
+ case 5:
34315
34406
  if (!(queryIdentifyType == 'objectPropertyCodeIdentify')) {
34316
- _context.next = 24;
34407
+ _context.n = 6;
34317
34408
  break;
34318
34409
  }
34319
34410
  // TODO待处理
34320
34411
  _this.setState({
34321
34412
  thresholdList: []
34322
34413
  });
34323
- _context.next = 29;
34414
+ _context.n = 8;
34324
34415
  break;
34325
- case 24:
34416
+ case 6:
34326
34417
  querParams.queryIdentify = queryIdentify;
34327
- _context.next = 27;
34418
+ _context.n = 7;
34328
34419
  return getRegularThresholdRange(querParams);
34329
- case 27:
34330
- res = _context.sent;
34420
+ case 7:
34421
+ res = _context.v;
34331
34422
  if (handleError(res)) {
34332
34423
  _this.setState({
34333
34424
  thresholdList: (res === null || res === void 0 ? void 0 : res.data) || []
34334
34425
  });
34335
34426
  }
34336
- case 29:
34337
- case "end":
34338
- return _context.stop();
34427
+ case 8:
34428
+ return _context.a(2);
34339
34429
  }
34340
34430
  }, _callee);
34341
34431
  }));
@@ -35167,11 +35257,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
35167
35257
  isAll: true,
35168
35258
  needNameAndCode: true,
35169
35259
  notChangeOnSelect: true,
35170
- initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
35171
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
35172
- while (1) switch (_context2.prev = _context2.next) {
35260
+ initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
35261
+ return _regenerator().w(function (_context2) {
35262
+ while (1) switch (_context2.n) {
35173
35263
  case 0:
35174
- _context2.next = 2;
35264
+ _context2.n = 1;
35175
35265
  return request$2({
35176
35266
  url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
35177
35267
  method: 'get',
@@ -35188,11 +35278,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
35188
35278
  return handleData;
35189
35279
  }
35190
35280
  });
35191
- case 2:
35192
- return _context2.abrupt("return", _context2.sent);
35193
- case 3:
35194
- case "end":
35195
- return _context2.stop();
35281
+ case 1:
35282
+ return _context2.a(2, _context2.v);
35196
35283
  }
35197
35284
  }, _callee2);
35198
35285
  })),
@@ -35216,11 +35303,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
35216
35303
  isAll: true,
35217
35304
  needNameAndCode: true,
35218
35305
  notChangeOnSelect: true,
35219
- initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
35220
- return _regeneratorRuntime().wrap(function _callee3$(_context3) {
35221
- while (1) switch (_context3.prev = _context3.next) {
35306
+ initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3() {
35307
+ return _regenerator().w(function (_context3) {
35308
+ while (1) switch (_context3.n) {
35222
35309
  case 0:
35223
- _context3.next = 2;
35310
+ _context3.n = 1;
35224
35311
  return request$2({
35225
35312
  url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
35226
35313
  method: 'get',
@@ -35237,11 +35324,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
35237
35324
  return handleData;
35238
35325
  }
35239
35326
  });
35240
- case 2:
35241
- return _context3.abrupt("return", _context3.sent);
35242
- case 3:
35243
- case "end":
35244
- return _context3.stop();
35327
+ case 1:
35328
+ return _context3.a(2, _context3.v);
35245
35329
  }
35246
35330
  }, _callee3);
35247
35331
  })),
@@ -35267,11 +35351,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
35267
35351
  isAll: true,
35268
35352
  needNameAndCode: true,
35269
35353
  notChangeOnSelect: true,
35270
- initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
35271
- return _regeneratorRuntime().wrap(function _callee4$(_context4) {
35272
- while (1) switch (_context4.prev = _context4.next) {
35354
+ initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4() {
35355
+ return _regenerator().w(function (_context4) {
35356
+ while (1) switch (_context4.n) {
35273
35357
  case 0:
35274
- _context4.next = 2;
35358
+ _context4.n = 1;
35275
35359
  return request$2({
35276
35360
  url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
35277
35361
  method: 'get',
@@ -35288,11 +35372,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
35288
35372
  return handleData;
35289
35373
  }
35290
35374
  });
35291
- case 2:
35292
- return _context4.abrupt("return", _context4.sent);
35293
- case 3:
35294
- case "end":
35295
- return _context4.stop();
35375
+ case 1:
35376
+ return _context4.a(2, _context4.v);
35296
35377
  }
35297
35378
  }, _callee4);
35298
35379
  })),
@@ -35979,8 +36060,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
35979
36060
  }
35980
36061
  }));
35981
36062
  } else {
35982
- var _values10;
35983
- var _currentValue9 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values10 = values) === null || _values10 === void 0 ? void 0 : _values10.map(function (s, vIndex) {
36063
+ var _values0;
36064
+ var _currentValue9 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values0 = values) === null || _values0 === void 0 ? void 0 : _values0.map(function (s, vIndex) {
35984
36065
  return {
35985
36066
  key: s,
35986
36067
  label: valueNames[vIndex],
@@ -36190,7 +36271,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
36190
36271
  }
36191
36272
  }
36192
36273
  // 配送方式选择器
36193
- if (dataChoiceBusinessType == 310) {
36274
+ if (dataChoiceBusinessType == 310 || dataChoiceBusinessType == 311) {
36194
36275
  if (INTERVAL_TYPE.indexOf(selectOperation) > -1) {
36195
36276
  return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
36196
36277
  selectBusinessType: "deliveryMode",
@@ -36204,9 +36285,14 @@ var RuleField = /*#__PURE__*/function (_Component) {
36204
36285
  disabled: disabled,
36205
36286
  labelInValue: true,
36206
36287
  value: values[0],
36207
- requestConfig: {
36288
+ requestConfig: _objectSpread2(_objectSpread2({}, dataChoiceBusinessType === 311 ? {
36289
+ otherParams: {
36290
+ // 配送方式只选择标准配送方式
36291
+ 'qp-recordChannnelCode-eq': 80
36292
+ }
36293
+ } : {}), {}, {
36208
36294
  filterInit: 'qp-code-in'
36209
- },
36295
+ }),
36210
36296
  onChange: function onChange(value) {
36211
36297
  if (dataInputBusinessType === 12) {
36212
36298
  values[0] = value.map(function (i) {
@@ -36236,9 +36322,14 @@ var RuleField = /*#__PURE__*/function (_Component) {
36236
36322
  disabled: disabled,
36237
36323
  labelInValue: true,
36238
36324
  value: values[1],
36239
- requestConfig: {
36325
+ requestConfig: _objectSpread2(_objectSpread2({}, dataChoiceBusinessType === 311 ? {
36326
+ otherParams: {
36327
+ // 配送方式只选择标准配送方式
36328
+ 'qp-recordChannnelCode-eq': 80
36329
+ }
36330
+ } : {}), {}, {
36240
36331
  filterInit: 'qp-code-in'
36241
- },
36332
+ }),
36242
36333
  onChange: function onChange(value) {
36243
36334
  if (dataInputBusinessType === 12) {
36244
36335
  values[1] = value.map(function (i) {
@@ -36258,8 +36349,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
36258
36349
  }
36259
36350
  }));
36260
36351
  } else {
36261
- var _values11;
36262
- var _currentValue10 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values11 = values) === null || _values11 === void 0 ? void 0 : _values11.map(function (s, vIndex) {
36352
+ var _values1;
36353
+ var _currentValue0 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values1 = values) === null || _values1 === void 0 ? void 0 : _values1.map(function (s, vIndex) {
36263
36354
  return {
36264
36355
  key: s,
36265
36356
  label: valueNames[vIndex],
@@ -36281,10 +36372,15 @@ var RuleField = /*#__PURE__*/function (_Component) {
36281
36372
  } : {}),
36282
36373
  disabled: disabled,
36283
36374
  labelInValue: true,
36284
- value: _currentValue10,
36285
- requestConfig: {
36375
+ value: _currentValue0,
36376
+ requestConfig: _objectSpread2(_objectSpread2({}, dataChoiceBusinessType === 311 ? {
36377
+ otherParams: {
36378
+ // 配送方式只选择标准配送方式
36379
+ 'qp-recordChannnelCode-eq': 80
36380
+ }
36381
+ } : {}), {}, {
36286
36382
  filterInit: 'qp-code-in'
36287
- },
36383
+ }),
36288
36384
  onChange: function onChange(value) {
36289
36385
  if (dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1) {
36290
36386
  values = value.map(function (i) {
@@ -36374,8 +36470,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
36374
36470
  }
36375
36471
  }));
36376
36472
  } else {
36377
- var _values12;
36378
- var _currentValue11 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values12 = values) === null || _values12 === void 0 ? void 0 : _values12.map(function (s, vIndex) {
36473
+ var _values10;
36474
+ var _currentValue1 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values10 = values) === null || _values10 === void 0 ? void 0 : _values10.map(function (s, vIndex) {
36379
36475
  return {
36380
36476
  key: s,
36381
36477
  label: valueNames[vIndex],
@@ -36397,7 +36493,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
36397
36493
  } : {}),
36398
36494
  disabled: disabled,
36399
36495
  labelInValue: true,
36400
- value: _currentValue11,
36496
+ value: _currentValue1,
36401
36497
  requestConfig: {
36402
36498
  filterInit: 'qp-code-in'
36403
36499
  },
@@ -36490,8 +36586,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
36490
36586
  }
36491
36587
  }));
36492
36588
  } else {
36493
- var _values13;
36494
- var _currentValue12 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values13 = values) === null || _values13 === void 0 ? void 0 : _values13.map(function (s, vIndex) {
36589
+ var _values11;
36590
+ var _currentValue10 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values11 = values) === null || _values11 === void 0 ? void 0 : _values11.map(function (s, vIndex) {
36495
36591
  return {
36496
36592
  key: s,
36497
36593
  label: valueNames[vIndex],
@@ -36513,7 +36609,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
36513
36609
  } : {}),
36514
36610
  disabled: disabled,
36515
36611
  labelInValue: true,
36516
- value: _currentValue12,
36612
+ value: _currentValue10,
36517
36613
  requestConfig: {
36518
36614
  filterInit: 'qp-brandCode-in'
36519
36615
  },
@@ -36704,8 +36800,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
36704
36800
  }
36705
36801
  }));
36706
36802
  } else {
36707
- var _values14;
36708
- var _currentValue13 = dataInputBusinessType === 12 ? ((_values14 = values) === null || _values14 === void 0 ? void 0 : _values14.map(function (s, vIndex) {
36803
+ var _values12;
36804
+ var _currentValue11 = dataInputBusinessType === 12 ? ((_values12 = values) === null || _values12 === void 0 ? void 0 : _values12.map(function (s, vIndex) {
36709
36805
  return {
36710
36806
  key: s,
36711
36807
  label: valueNames[vIndex]
@@ -36733,7 +36829,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
36733
36829
  isSearchForm: true,
36734
36830
  customSelectorConfig: (others === null || others === void 0 ? void 0 : others.customSelectorConfig) || {},
36735
36831
  disabled: disabled,
36736
- value: _currentValue13,
36832
+ value: _currentValue11,
36737
36833
  onChange: function onChange(value, sourceList) {
36738
36834
  if (dataInputBusinessType === 12) {
36739
36835
  var _value$map3, _sourceList$filter3;
@@ -37053,9 +37149,9 @@ var App$1 = function App(_ref) {
37053
37149
  UpdateState(res);
37054
37150
  };
37055
37151
  var _useState9 = useState(false),
37056
- _useState10 = _slicedToArray(_useState9, 2),
37057
- isModalVisible = _useState10[0],
37058
- setIsModalVisible = _useState10[1];
37152
+ _useState0 = _slicedToArray(_useState9, 2),
37153
+ isModalVisible = _useState0[0],
37154
+ setIsModalVisible = _useState0[1];
37059
37155
  var showModal = function showModal() {
37060
37156
  setIsModalVisible(true);
37061
37157
  };
@@ -37536,27 +37632,26 @@ function RenderCompItem(props) {
37536
37632
  dictData = _useState2[0],
37537
37633
  setDictData = _useState2[1];
37538
37634
  var getDictData = /*#__PURE__*/function () {
37539
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
37635
+ var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
37540
37636
  var _data$map;
37541
37637
  var data;
37542
- return _regeneratorRuntime().wrap(function _callee$(_context) {
37543
- while (1) switch (_context.prev = _context.next) {
37638
+ return _regenerator().w(function (_context) {
37639
+ while (1) switch (_context.n) {
37544
37640
  case 0:
37545
- _context.next = 2;
37641
+ _context.n = 1;
37546
37642
  return request$2({
37547
37643
  url: "/basic/bscDictItem/allItemList?qp-code-eq=".concat(ites.dictionaryCode)
37548
37644
  });
37549
- case 2:
37550
- data = _context.sent;
37645
+ case 1:
37646
+ data = _context.v;
37551
37647
  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) {
37552
37648
  return {
37553
37649
  text: item.dictItemName,
37554
37650
  value: item.dictItemCode
37555
37651
  };
37556
37652
  }));
37557
- case 4:
37558
- case "end":
37559
- return _context.stop();
37653
+ case 2:
37654
+ return _context.a(2);
37560
37655
  }
37561
37656
  }, _callee);
37562
37657
  }));
@@ -37797,11 +37892,11 @@ function RenderCompItem(props) {
37797
37892
  needNameAndCode: true,
37798
37893
  notChangeOnSelect: true,
37799
37894
  initRequestSource: function () {
37800
- var _initRequestSource = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
37801
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
37802
- while (1) switch (_context2.prev = _context2.next) {
37895
+ var _initRequestSource = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
37896
+ return _regenerator().w(function (_context2) {
37897
+ while (1) switch (_context2.n) {
37803
37898
  case 0:
37804
- _context2.next = 2;
37899
+ _context2.n = 1;
37805
37900
  return request$2({
37806
37901
  url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
37807
37902
  method: 'get',
@@ -37819,11 +37914,8 @@ function RenderCompItem(props) {
37819
37914
  return handleData;
37820
37915
  }
37821
37916
  });
37822
- case 2:
37823
- return _context2.abrupt("return", _context2.sent);
37824
- case 3:
37825
- case "end":
37826
- return _context2.stop();
37917
+ case 1:
37918
+ return _context2.a(2, _context2.v);
37827
37919
  }
37828
37920
  }, _callee2);
37829
37921
  }));
@@ -37988,7 +38080,7 @@ function RenderCompItem(props) {
37988
38080
  getPopupContainer: function getPopupContainer() {
37989
38081
  return document.body;
37990
38082
  }
37991
- })) || 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$1.createElement(BusinessSearchSelect$1, {
38083
+ })) || 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$1.createElement(BusinessSearchSelect$1, {
37992
38084
  selectBusinessType: "deliveryMode",
37993
38085
  selectProps: _objectSpread2({
37994
38086
  style: styleCommon,
@@ -38000,9 +38092,14 @@ function RenderCompItem(props) {
38000
38092
  disabled: disabled,
38001
38093
  labelInValue: true,
38002
38094
  value: showValue(ites.code),
38003
- requestConfig: {
38095
+ requestConfig: _objectSpread2(_objectSpread2({}, (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 311 ? {
38096
+ otherParams: {
38097
+ // 配送方式只选择标准配送方式
38098
+ 'qp-recordChannnelCode-eq': 80
38099
+ }
38100
+ } : {}), {}, {
38004
38101
  filterInit: 'qp-code-in'
38005
- },
38102
+ }),
38006
38103
  onChange: function onChange(value) {
38007
38104
  handleEdit(ites.code, value);
38008
38105
  },
@@ -39874,13 +39971,13 @@ var BaseRule = /*#__PURE__*/forwardRef(function (props, ref) {
39874
39971
  ruleTypeData = _useState8[0],
39875
39972
  setRuleTypeData = _useState8[1];
39876
39973
  var _useState9 = useState([]),
39877
- _useState10 = _slicedToArray(_useState9, 2),
39878
- ruleReturnConfig = _useState10[0],
39879
- setRuleReturnConfig = _useState10[1];
39880
- var _useState11 = useState({}),
39881
- _useState12 = _slicedToArray(_useState11, 2),
39882
- templateData = _useState12[0],
39883
- setTemplateData = _useState12[1];
39974
+ _useState0 = _slicedToArray(_useState9, 2),
39975
+ ruleReturnConfig = _useState0[0],
39976
+ setRuleReturnConfig = _useState0[1];
39977
+ var _useState1 = useState({}),
39978
+ _useState10 = _slicedToArray(_useState1, 2),
39979
+ templateData = _useState10[0],
39980
+ setTemplateData = _useState10[1];
39884
39981
  var loadRuleReturnConfig = function loadRuleReturnConfig(currentSceneId) {
39885
39982
  request$2({
39886
39983
  url: "/basic/ruleTemplate/".concat(currentSceneId),
@@ -40216,25 +40313,25 @@ var index$7 = /*#__PURE__*/forwardRef(function (props, ref) {
40216
40313
  regularDataList = _useState8[0],
40217
40314
  setRegularDataList = _useState8[1];
40218
40315
  var _useState9 = useState([]),
40219
- _useState10 = _slicedToArray(_useState9, 2),
40220
- baseRuleDetailList = _useState10[0],
40221
- setBaseRuleDetailList = _useState10[1]; // 规则实例详情集合
40222
- var _useState11 = useState([]),
40316
+ _useState0 = _slicedToArray(_useState9, 2),
40317
+ baseRuleDetailList = _useState0[0],
40318
+ setBaseRuleDetailList = _useState0[1]; // 规则实例详情集合
40319
+ var _useState1 = useState([]),
40320
+ _useState10 = _slicedToArray(_useState1, 2),
40321
+ systemVariableList = _useState10[0],
40322
+ setSystemVariableList = _useState10[1];
40323
+ var _useState11 = useState(false),
40223
40324
  _useState12 = _slicedToArray(_useState11, 2),
40224
- systemVariableList = _useState12[0],
40225
- setSystemVariableList = _useState12[1];
40325
+ isGetDefRuleDataRes = _useState12[0],
40326
+ setIsGetDefRuleDataRes = _useState12[1]; // 为了在回显的时候辨别异步查询是否已完成,防止提前认为为新增设置了模板数据,导致再渲染编辑时候 输入框defaultValue不再渲染问题
40226
40327
  var _useState13 = useState(false),
40227
40328
  _useState14 = _slicedToArray(_useState13, 2),
40228
- isGetDefRuleDataRes = _useState14[0],
40229
- setIsGetDefRuleDataRes = _useState14[1]; // 为了在回显的时候辨别异步查询是否已完成,防止提前认为为新增设置了模板数据,导致再渲染编辑时候 输入框defaultValue不再渲染问题
40329
+ isGetRuleDataRes = _useState14[0],
40330
+ setIsGetRuleDataRes = _useState14[1];
40230
40331
  var _useState15 = useState(false),
40231
40332
  _useState16 = _slicedToArray(_useState15, 2),
40232
- isGetRuleDataRes = _useState16[0],
40233
- setIsGetRuleDataRes = _useState16[1];
40234
- var _useState17 = useState(false),
40235
- _useState18 = _slicedToArray(_useState17, 2),
40236
- groupOtherPriorityList = _useState18[0],
40237
- setGroupOtherPriorityList = _useState18[1];
40333
+ groupOtherPriorityList = _useState16[0],
40334
+ setGroupOtherPriorityList = _useState16[1];
40238
40335
  var baseRuleRef = useRef();
40239
40336
  var currentSceneName = (datail === null || datail === void 0 ? void 0 : datail.name) || '';
40240
40337
  // 查询规则组下所有规则实例
@@ -40637,4 +40734,4 @@ var SystemLog = function SystemLog(_ref) {
40637
40734
  });
40638
40735
  };
40639
40736
 
40640
- export { AddSelect, AddSkcSelect, AddSkuSelect, AddSpuSelect, AuthButton, BillEntry, BsCascader, index$5 as BsLayout, BsSulaQueryTable, BusinessSearchSelect$1 as BusinessSearchSelect, BusinessTreeSearchSelect$1 as BusinessTreeSearchSelect, index$1 as CheckOneUser, ColumnSettingTable, ColumnsEdit, CommodityEntry, CustomSelector, DataImport, DataValidation, index$3 as DetailPageWrapper, EllipsisTooltip, ExportIcon, index$8 as ExtendedCollapse, GuideWrapper, HandleTotalCount, index$4 as HomePageWrapper, JsonQueryTable, ModalUtils, index$6 as MoreTreeTable, ParagraphCopier, PropertySelector, QueryMutipleInput, QueryMutipleSearchSelect, RuleObjectComponent as RuleComponent, index$7 as RuleSetter, SearchSelect, Section, index$2 as StateFlow, ColumnSettingSulaTable as SulaColumnSettingTable, SystemLog, TableColumnSetting, TreeSearchSelect, authFunc, calculateValidPeriod, checkQuantityAccuracy, _coverToParallel as coverToParallel, createUniqID, downloadExcel, ergodicMenuRoutes, formContainerAndItemLayout, _formatter as formatter, getAccountID, getAccountId, getBreadcrumbNameMap, getCommonInfoKey, getConfigTableColumns, getCurrentTargetBgId, getCurrentTenantId, getDictionarySource, getDictionaryTextByValue, getEmployeeCode, getEmployeeId, getItemDefaultWidth$1 as getItemDefaultWidth, getJoinDictionaryText, getLastKey, getLimitMenuDataKey, getLocalStorageSaveKey, getMenuAuthDataKey, getSessionId, getSkuImg, getTenantList, getUserId, getUserName, go2BackAndClose, handleAntdColumnsSpecialParams, handleBaseUrlPre, handleBeforeUpload, handleBssulaColumnsSpecialParams, handleCommonTimeRender$1 as handleCommonTimeRender, handleConvertResponse, handleError, handleExport, handleExportBarCode, handleJudgeAuthButtons, handleOssUrl, handleRequestAuthHeader, handleRequestHeader, handleRequestUrl, handleStatusBadge, handleTextBreakSpaces, handleTextDouble$1 as handleTextDouble, handleTextDoubleOrId, handleTextLineFeed$1 as handleTextLineFeed, handleTextOverflow$1 as handleTextOverflow, handleTextTooltip, handleTextWarp, handleTextWarpCustom, handleTooltip$1 as handleTooltip, handleTooltipHours$1 as handleTooltipHours, handleUserPhone, judgeIsEmpty, judgeIsRequestError, judgeIsRequestSuccess, keyToWord, memoizeOneFormatter, noEmptyArr, noEmptyArray, paramsControl, parseWidth, precisionQuantity, randomString, readerXlsxToList, removeCurrentTenantId, removeTenantList, renderFixed2, renderNumberText, saveCurrentTenantId, saveTenantList, setConfigTableColumns, shouldUseAuth, socketFunctions, sulaTableRenderTooltip, tableColumnsImage$1 as tableColumnsImage, textIcon, updateGuanDate, userColumns$1 as userColumns, userInfoCard$1 as userInfoCard, uuid, writeListToXlsx };
40737
+ export { AddSelect, AddSkcSelect, AddSkuSelect, AddSpuSelect, AuthButton, BillEntry, BsCascader, index$5 as BsLayout, BsSulaQueryTable, BusinessSearchSelect$1 as BusinessSearchSelect, BusinessTreeSearchSelect$1 as BusinessTreeSearchSelect, index$1 as CheckOneUser, ColumnSettingTable, ColumnsEdit, CommodityEntry, CustomSelector, DataImport, DataValidation, index$3 as DetailPageWrapper, EllipsisTooltip, ExportIcon, index$8 as ExtendedCollapse, GuideWrapper, HandleTotalCount, index$4 as HomePageWrapper, JsonQueryTable, ModalUtils, index$6 as MoreTreeTable, ParagraphCopier, PropertySelector, QueryMutipleInput, QueryMutipleSearchSelect, RenderCompItem, RuleObjectComponent as RuleComponent, index$7 as RuleSetter, SearchSelect, Section, index$2 as StateFlow, ColumnSettingSulaTable as SulaColumnSettingTable, SystemLog, TableColumnSetting, TreeSearchSelect, authFunc, calculateValidPeriod, checkQuantityAccuracy, _coverToParallel as coverToParallel, createUniqID, downloadExcel, ergodicMenuRoutes, formContainerAndItemLayout, _formatter as formatter, getAccountID, getAccountId, getBreadcrumbNameMap, getCommonInfoKey, getConfigTableColumns, getCurrentTargetBgId, getCurrentTenantId, getDictionarySource, getDictionaryTextByValue, getEmployeeCode, getEmployeeId, getItemDefaultWidth$1 as getItemDefaultWidth, getJoinDictionaryText, getLastKey, getLimitMenuDataKey, getLocalStorageSaveKey, getMenuAuthDataKey, getSessionId, getSkuImg, getTenantList, getUserId, getUserName, go2BackAndClose, handleAntdColumnsSpecialParams, handleBaseUrlPre, handleBeforeUpload, handleBssulaColumnsSpecialParams, handleCommonTimeRender$1 as handleCommonTimeRender, handleConvertResponse, handleError, handleExport, handleExportBarCode, handleJudgeAuthButtons, handleOssUrl, handleRequestAuthHeader, handleRequestHeader, handleRequestUrl, handleStatusBadge, handleTextBreakSpaces, handleTextDouble$1 as handleTextDouble, handleTextDoubleOrId, handleTextLineFeed$1 as handleTextLineFeed, handleTextOverflow$1 as handleTextOverflow, handleTextTooltip, handleTextWarp, handleTextWarpCustom, handleTooltip$1 as handleTooltip, handleTooltipHours$1 as handleTooltipHours, handleUserPhone, judgeIsEmpty, judgeIsRequestError, judgeIsRequestSuccess, keyToWord, memoizeOneFormatter, noEmptyArr, noEmptyArray, paramsControl, parseWidth, precisionQuantity, processDetailButtonsVisible, randomString, readerXlsxToList, removeCurrentTenantId, removeTenantList, renderFixed2, renderNumberText, saveCurrentTenantId, saveTenantList, setConfigTableColumns, shouldUseAuth, socketFunctions, sulaTableRenderTooltip, tableColumnsImage$1 as tableColumnsImage, textIcon, updateGuanDate, userColumns$1 as userColumns, userInfoCard$1 as userInfoCard, uuid, writeListToXlsx };