@bit-sun/business-component 4.2.0-alpha.6.9 → 4.2.1-alpha.1-aiwei

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. package/.umirc.ts +9 -9
  2. package/dist/components/Business/AddSelectBusiness/index.d.ts +3 -4
  3. package/dist/components/Business/BsLayouts/Components/AllFunc/drawContent.d.ts +1 -2
  4. package/dist/components/Business/BsLayouts/Components/ChooseStore/index.d.ts +1 -2
  5. package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.d.ts +1 -1
  6. package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/leftTree.d.ts +1 -1
  7. package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/rightTree.d.ts +2 -2
  8. package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/DrawContent.d.ts +1 -2
  9. package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/customMenuHeader.d.ts +1 -2
  10. package/dist/components/Business/BsLayouts/Components/CustomerMenu/index.d.ts +1 -1
  11. package/dist/components/Business/BsLayouts/Components/GlobalHeader/index.d.ts +1 -2
  12. package/dist/components/Business/BsLayouts/Components/RightContent/LoginModal.d.ts +1 -2
  13. package/dist/components/Business/BsLayouts/index.d.ts +1 -1
  14. package/dist/components/Business/BsSulaQueryTable/SearchItemSetting.d.ts +5 -5
  15. package/dist/components/Business/BsSulaQueryTable/index.d.ts +1 -2
  16. package/dist/components/Business/BsSulaQueryTable/setting.d.ts +6 -6
  17. package/dist/components/Business/BsSulaQueryTable/utils.d.ts +14 -15
  18. package/dist/components/Business/CommodityEntry/index.d.ts +1 -2
  19. package/dist/components/Business/CommonAlert/index.d.ts +1 -2
  20. package/dist/components/Business/CommonGuideWrapper/index.d.ts +3 -3
  21. package/dist/components/Business/DetailPageWrapper/index.d.ts +11 -12
  22. package/dist/components/Business/HomePageWrapper/index.d.ts +1 -2
  23. package/dist/components/Business/ItemPropertySelector/index.d.ts +1 -2
  24. package/dist/components/Business/JsonQueryTable/components/FieldsModifyModal.d.ts +1 -2
  25. package/dist/components/Business/JsonQueryTable/components/FieldsSettingsTable.d.ts +1 -2
  26. package/dist/components/Business/JsonQueryTable/components/Formula.d.ts +1 -2
  27. package/dist/components/Business/JsonQueryTable/components/MaintainOptions.d.ts +1 -2
  28. package/dist/components/Business/JsonQueryTable/drawer/index.d.ts +1 -2
  29. package/dist/components/Business/PropertyModal/index.d.ts +1 -2
  30. package/dist/components/Business/PropertyModal/propertyGroup.d.ts +1 -1
  31. package/dist/components/Business/SearchSelect/index.d.ts +1 -1
  32. package/dist/components/Business/StateFlow/index.d.ts +1 -2
  33. package/dist/components/Business/TreeSearchSelect/index.d.ts +1 -1
  34. package/dist/components/Business/columnSettingTable/columnSetting.d.ts +6 -6
  35. package/dist/components/Business/columnSettingTable/components/TableSumComponent.d.ts +1 -2
  36. package/dist/components/Business/columnSettingTable/index.d.ts +3 -3
  37. package/dist/components/Business/columnSettingTable/sulaSettingTable.d.ts +3 -3
  38. package/dist/components/Business/columnSettingTable/utils.d.ts +1 -2
  39. package/dist/components/Business/moreTreeTable/FixedScrollBar.d.ts +1 -1
  40. package/dist/components/Common/ParagraphCopier/index.d.ts +1 -1
  41. package/dist/components/Common/Section/index.d.ts +1 -1
  42. package/dist/components/Functional/AddSelect/index.d.ts +1 -2
  43. package/dist/components/Functional/AuthButton/index.d.ts +1 -2
  44. package/dist/components/Functional/DataImport/index.d.ts +3 -3
  45. package/dist/components/Functional/DataValidation/index.d.ts +5 -5
  46. package/dist/components/Functional/ExportFunctions/ExportIcon/index.d.ts +1 -2
  47. package/dist/components/Functional/QueryMutipleInput/index.d.ts +1 -2
  48. package/dist/components/Functional/QueryMutipleSelect/index.d.ts +1 -2
  49. package/dist/components/Functional/SearchSelect/index.d.ts +1 -1
  50. package/dist/components/Functional/SearchSelect/utils.d.ts +2 -3
  51. package/dist/components/Functional/TreeSearchSelect/index.d.ts +1 -2
  52. package/dist/components/Solution/RuleComponent/CustomPlugin/CustomSelector/CustomSelectorModal.d.ts +1 -1
  53. package/dist/components/Solution/RuleComponent/CustomPlugin/CustomSelector/index.d.ts +1 -2
  54. package/dist/components/Solution/RuleComponent/Formula.d.ts +1 -2
  55. package/dist/components/Solution/RuleComponent/InnerSelect.d.ts +1 -2
  56. package/dist/components/Solution/RuleComponent/RenderCompItem.d.ts +1 -2
  57. package/dist/components/Solution/RuleSetter/RuleInstance.d.ts +1 -2
  58. package/dist/components/Solution/RuleSetter/baseRule.d.ts +1 -1
  59. package/dist/components/Solution/RuleSetter/index.d.ts +1 -1
  60. package/dist/index.esm.js +1171 -1120
  61. package/dist/index.js +1171 -1120
  62. package/dist/plugin/TableColumnSetting/index.d.ts +5 -5
  63. package/dist/utils/TableUtils.d.ts +18 -19
  64. package/package.json +1 -1
  65. package/src/components/Business/BsSulaQueryTable/index.tsx +11 -10
  66. package/src/components/Business/BsSulaQueryTable/setting.tsx +6 -0
  67. package/src/components/Business/SearchSelect/BusinessUtils.tsx +221 -13
  68. package/src/components/Business/SearchSelect/index.md +1 -1
  69. package/src/components/Functional/DataValidation/index.tsx +22 -3
  70. package/src/components/Functional/SearchSelect/index.tsx +1 -0
  71. package/src/components/Solution/RuleComponent/RenderCompItem.tsx +9 -1
  72. package/src/components/Solution/RuleComponent/ruleFiled.js +25 -1
package/dist/index.js CHANGED
@@ -211,8 +211,8 @@ function _objectWithoutProperties(e, t) {
211
211
  r,
212
212
  i = _objectWithoutPropertiesLoose(e, t);
213
213
  if (Object.getOwnPropertySymbols) {
214
- var s = Object.getOwnPropertySymbols(e);
215
- for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
214
+ var n = Object.getOwnPropertySymbols(e);
215
+ for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
216
216
  }
217
217
  return i;
218
218
  }
@@ -220,7 +220,7 @@ function _objectWithoutPropertiesLoose(r, e) {
220
220
  if (null == r) return {};
221
221
  var t = {};
222
222
  for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
223
- if (e.includes(n)) continue;
223
+ if (-1 !== e.indexOf(n)) continue;
224
224
  t[n] = r[n];
225
225
  }
226
226
  return t;
@@ -230,306 +230,113 @@ function _possibleConstructorReturn(t, e) {
230
230
  if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
231
231
  return _assertThisInitialized(t);
232
232
  }
233
- function _regeneratorRuntime() {
234
- _regeneratorRuntime = function () {
235
- return e;
236
- };
237
- var t,
238
- e = {},
239
- r = Object.prototype,
240
- n = r.hasOwnProperty,
241
- o = Object.defineProperty || function (t, e, r) {
242
- t[e] = r.value;
243
- },
244
- i = "function" == typeof Symbol ? Symbol : {},
245
- a = i.iterator || "@@iterator",
246
- c = i.asyncIterator || "@@asyncIterator",
247
- u = i.toStringTag || "@@toStringTag";
248
- function define(t, e, r) {
249
- return Object.defineProperty(t, e, {
250
- value: r,
251
- enumerable: !0,
252
- configurable: !0,
253
- writable: !0
254
- }), t[e];
255
- }
256
- try {
257
- define({}, "");
258
- } catch (t) {
259
- define = function (t, e, r) {
260
- return t[e] = r;
261
- };
262
- }
263
- function wrap(t, e, r, n) {
264
- var i = e && e.prototype instanceof Generator ? e : Generator,
265
- a = Object.create(i.prototype),
266
- c = new Context(n || []);
267
- return o(a, "_invoke", {
268
- value: makeInvokeMethod(t, r, c)
269
- }), a;
270
- }
271
- function tryCatch(t, e, r) {
272
- try {
273
- return {
274
- type: "normal",
275
- arg: t.call(e, r)
276
- };
277
- } catch (t) {
278
- return {
279
- type: "throw",
280
- arg: t
233
+ function _regenerator() {
234
+ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
235
+ var e,
236
+ t,
237
+ r = "function" == typeof Symbol ? Symbol : {},
238
+ n = r.iterator || "@@iterator",
239
+ o = r.toStringTag || "@@toStringTag";
240
+ function i(r, n, o, i) {
241
+ var c = n && n.prototype instanceof Generator ? n : Generator,
242
+ u = Object.create(c.prototype);
243
+ return _regeneratorDefine(u, "_invoke", function (r, n, o) {
244
+ var i,
245
+ c,
246
+ u,
247
+ f = 0,
248
+ p = o || [],
249
+ y = !1,
250
+ G = {
251
+ p: 0,
252
+ n: 0,
253
+ v: e,
254
+ a: d,
255
+ f: d.bind(e, 4),
256
+ d: function (t, r) {
257
+ return i = t, c = 0, u = e, G.n = r, a;
258
+ }
259
+ };
260
+ function d(r, n) {
261
+ for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) {
262
+ var o,
263
+ i = p[t],
264
+ d = G.p,
265
+ l = i[2];
266
+ r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0));
267
+ }
268
+ if (o || r > 1) return a;
269
+ throw y = !0, n;
270
+ }
271
+ return function (o, p, l) {
272
+ if (f > 1) throw TypeError("Generator is already running");
273
+ for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) {
274
+ i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u);
275
+ try {
276
+ if (f = 2, i) {
277
+ if (c || (o = "next"), t = i[o]) {
278
+ if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object");
279
+ if (!t.done) return t;
280
+ u = t.value, c < 2 && (c = 0);
281
+ } else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1);
282
+ i = e;
283
+ } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break;
284
+ } catch (t) {
285
+ i = e, c = 1, u = t;
286
+ } finally {
287
+ f = 1;
288
+ }
289
+ }
290
+ return {
291
+ value: t,
292
+ done: y
293
+ };
281
294
  };
282
- }
295
+ }(r, o, i), !0), u;
283
296
  }
284
- e.wrap = wrap;
285
- var h = "suspendedStart",
286
- l = "suspendedYield",
287
- f = "executing",
288
- s = "completed",
289
- y = {};
297
+ var a = {};
290
298
  function Generator() {}
291
299
  function GeneratorFunction() {}
292
300
  function GeneratorFunctionPrototype() {}
293
- var p = {};
294
- define(p, a, function () {
301
+ t = Object.getPrototypeOf;
302
+ var c = [][n] ? t(t([][n]())) : (_regeneratorDefine(t = {}, n, function () {
303
+ return this;
304
+ }), t),
305
+ u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c);
306
+ function f(e) {
307
+ return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e;
308
+ }
309
+ return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine(u), _regeneratorDefine(u, o, "Generator"), _regeneratorDefine(u, n, function () {
295
310
  return this;
296
- });
297
- var d = Object.getPrototypeOf,
298
- v = d && d(d(values([])));
299
- v && v !== r && n.call(v, a) && (p = v);
300
- var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
301
- function defineIteratorMethods(t) {
302
- ["next", "throw", "return"].forEach(function (e) {
303
- define(t, e, function (t) {
304
- return this._invoke(e, t);
305
- });
306
- });
307
- }
308
- function AsyncIterator(t, e) {
309
- function invoke(r, o, i, a) {
310
- var c = tryCatch(t[r], t, o);
311
- if ("throw" !== c.type) {
312
- var u = c.arg,
313
- h = u.value;
314
- return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
315
- invoke("next", t, i, a);
316
- }, function (t) {
317
- invoke("throw", t, i, a);
318
- }) : e.resolve(h).then(function (t) {
319
- u.value = t, i(u);
320
- }, function (t) {
321
- return invoke("throw", t, i, a);
322
- });
323
- }
324
- a(c.arg);
325
- }
326
- var r;
327
- o(this, "_invoke", {
328
- value: function (t, n) {
329
- function callInvokeWithMethodAndArg() {
330
- return new e(function (e, r) {
331
- invoke(t, n, e, r);
332
- });
333
- }
334
- return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
335
- }
336
- });
337
- }
338
- function makeInvokeMethod(e, r, n) {
339
- var o = h;
340
- return function (i, a) {
341
- if (o === f) throw Error("Generator is already running");
342
- if (o === s) {
343
- if ("throw" === i) throw a;
344
- return {
345
- value: t,
346
- done: !0
347
- };
348
- }
349
- for (n.method = i, n.arg = a;;) {
350
- var c = n.delegate;
351
- if (c) {
352
- var u = maybeInvokeDelegate(c, n);
353
- if (u) {
354
- if (u === y) continue;
355
- return u;
356
- }
357
- }
358
- if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
359
- if (o === h) throw o = s, n.arg;
360
- n.dispatchException(n.arg);
361
- } else "return" === n.method && n.abrupt("return", n.arg);
362
- o = f;
363
- var p = tryCatch(e, r, n);
364
- if ("normal" === p.type) {
365
- if (o = n.done ? s : l, p.arg === y) continue;
366
- return {
367
- value: p.arg,
368
- done: n.done
369
- };
370
- }
371
- "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
372
- }
373
- };
374
- }
375
- function maybeInvokeDelegate(e, r) {
376
- var n = r.method,
377
- o = e.iterator[n];
378
- if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
379
- var i = tryCatch(o, e.iterator, r.arg);
380
- if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
381
- var a = i.arg;
382
- return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
383
- }
384
- function pushTryEntry(t) {
385
- var e = {
386
- tryLoc: t[0]
387
- };
388
- 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
389
- }
390
- function resetTryEntry(t) {
391
- var e = t.completion || {};
392
- e.type = "normal", delete e.arg, t.completion = e;
393
- }
394
- function Context(t) {
395
- this.tryEntries = [{
396
- tryLoc: "root"
397
- }], t.forEach(pushTryEntry, this), this.reset(!0);
398
- }
399
- function values(e) {
400
- if (e || "" === e) {
401
- var r = e[a];
402
- if (r) return r.call(e);
403
- if ("function" == typeof e.next) return e;
404
- if (!isNaN(e.length)) {
405
- var o = -1,
406
- i = function next() {
407
- for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
408
- return next.value = t, next.done = !0, next;
409
- };
410
- return i.next = i;
411
- }
412
- }
413
- throw new TypeError(typeof e + " is not iterable");
414
- }
415
- return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
416
- value: GeneratorFunctionPrototype,
417
- configurable: !0
418
- }), o(GeneratorFunctionPrototype, "constructor", {
419
- value: GeneratorFunction,
420
- configurable: !0
421
- }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
422
- var e = "function" == typeof t && t.constructor;
423
- return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
424
- }, e.mark = function (t) {
425
- return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
426
- }, e.awrap = function (t) {
311
+ }), _regeneratorDefine(u, "toString", function () {
312
+ return "[object Generator]";
313
+ }), (_regenerator = function () {
427
314
  return {
428
- __await: t
315
+ w: i,
316
+ m: f
429
317
  };
430
- }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
431
- return this;
432
- }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
433
- void 0 === i && (i = Promise);
434
- var a = new AsyncIterator(wrap(t, r, n, o), i);
435
- return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
436
- return t.done ? t.value : a.next();
437
- });
438
- }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
439
- return this;
440
- }), define(g, "toString", function () {
441
- return "[object Generator]";
442
- }), e.keys = function (t) {
443
- var e = Object(t),
444
- r = [];
445
- for (var n in e) r.push(n);
446
- return r.reverse(), function next() {
447
- for (; r.length;) {
448
- var t = r.pop();
449
- if (t in e) return next.value = t, next.done = !1, next;
450
- }
451
- return next.done = !0, next;
452
- };
453
- }, e.values = values, Context.prototype = {
454
- constructor: Context,
455
- reset: function (e) {
456
- if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
457
- },
458
- stop: function () {
459
- this.done = !0;
460
- var t = this.tryEntries[0].completion;
461
- if ("throw" === t.type) throw t.arg;
462
- return this.rval;
463
- },
464
- dispatchException: function (e) {
465
- if (this.done) throw e;
466
- var r = this;
467
- function handle(n, o) {
468
- return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
469
- }
470
- for (var o = this.tryEntries.length - 1; o >= 0; --o) {
471
- var i = this.tryEntries[o],
472
- a = i.completion;
473
- if ("root" === i.tryLoc) return handle("end");
474
- if (i.tryLoc <= this.prev) {
475
- var c = n.call(i, "catchLoc"),
476
- u = n.call(i, "finallyLoc");
477
- if (c && u) {
478
- if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
479
- if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
480
- } else if (c) {
481
- if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
482
- } else {
483
- if (!u) throw Error("try statement without catch or finally");
484
- if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
485
- }
486
- }
487
- }
488
- },
489
- abrupt: function (t, e) {
490
- for (var r = this.tryEntries.length - 1; r >= 0; --r) {
491
- var o = this.tryEntries[r];
492
- if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
493
- var i = o;
494
- break;
495
- }
496
- }
497
- i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
498
- var a = i ? i.completion : {};
499
- return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
500
- },
501
- complete: function (t, e) {
502
- if ("throw" === t.type) throw t.arg;
503
- return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
504
- },
505
- finish: function (t) {
506
- for (var e = this.tryEntries.length - 1; e >= 0; --e) {
507
- var r = this.tryEntries[e];
508
- if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
509
- }
510
- },
511
- catch: function (t) {
512
- for (var e = this.tryEntries.length - 1; e >= 0; --e) {
513
- var r = this.tryEntries[e];
514
- if (r.tryLoc === t) {
515
- var n = r.completion;
516
- if ("throw" === n.type) {
517
- var o = n.arg;
518
- resetTryEntry(r);
519
- }
520
- return o;
521
- }
522
- }
523
- throw Error("illegal catch attempt");
524
- },
525
- delegateYield: function (e, r, n) {
526
- return this.delegate = {
527
- iterator: values(e),
528
- resultName: r,
529
- nextLoc: n
530
- }, "next" === this.method && (this.arg = t), y;
318
+ })();
319
+ }
320
+ function _regeneratorDefine(e, r, n, t) {
321
+ var i = Object.defineProperty;
322
+ try {
323
+ i({}, "", {});
324
+ } catch (e) {
325
+ i = 0;
326
+ }
327
+ _regeneratorDefine = function (e, r, n, t) {
328
+ function o(r, n) {
329
+ _regeneratorDefine(e, r, function (e) {
330
+ return this._invoke(r, n, e);
331
+ });
531
332
  }
532
- }, e;
333
+ r ? i ? i(e, r, {
334
+ value: n,
335
+ enumerable: !t,
336
+ configurable: !t,
337
+ writable: !t
338
+ }) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2));
339
+ }, _regeneratorDefine(e, r, n, t);
533
340
  }
534
341
  function _setPrototypeOf(t, e) {
535
342
  return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
@@ -1602,22 +1409,22 @@ var parseToServe = function parseToServe(outdata, revertChart) {
1602
1409
  // sheepMap是表头字段中英文映射
1603
1410
  // sheetCount:表的数量,默认一张
1604
1411
  var resolveFile = /*#__PURE__*/function () {
1605
- var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(file) {
1412
+ var _ref3 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(file) {
1606
1413
  var config,
1607
1414
  data,
1608
1415
  _args = arguments;
1609
- return _regeneratorRuntime().wrap(function _callee$(_context) {
1610
- while (1) switch (_context.prev = _context.next) {
1416
+ return _regenerator().w(function (_context) {
1417
+ while (1) switch (_context.n) {
1611
1418
  case 0:
1612
1419
  config = _args.length > 1 && _args[1] !== undefined ? _args[1] : {
1613
1420
  sheetMap: [],
1614
1421
  sheetCount: 1
1615
1422
  };
1616
- _context.next = 3;
1423
+ _context.n = 1;
1617
1424
  return analyseExcelToByte(file);
1618
- case 3:
1619
- data = _context.sent;
1620
- return _context.abrupt("return", new Promise(function (resolve, reject) {
1425
+ case 1:
1426
+ data = _context.v;
1427
+ return _context.a(2, new Promise(function (resolve, reject) {
1621
1428
  var workbook = XLSX.read(data, {
1622
1429
  type: 'binary'
1623
1430
  });
@@ -1629,9 +1436,6 @@ var resolveFile = /*#__PURE__*/function () {
1629
1436
  var outdata = parseToServe(sheetMapJsonList, config.sheetMap);
1630
1437
  resolve(outdata);
1631
1438
  }));
1632
- case 5:
1633
- case "end":
1634
- return _context.stop();
1635
1439
  }
1636
1440
  }, _callee);
1637
1441
  }));
@@ -1641,41 +1445,40 @@ var resolveFile = /*#__PURE__*/function () {
1641
1445
  }();
1642
1446
  //读取文件
1643
1447
  var readerXlsxToList = /*#__PURE__*/function () {
1644
- var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(file, fileList, uploadRef, done, otherInfo) {
1448
+ var _ref4 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(file, fileList, uploadRef, done, otherInfo) {
1645
1449
  var _ref5, callback, sheetMap, nowFile, data2, data;
1646
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
1647
- while (1) switch (_context2.prev = _context2.next) {
1450
+ return _regenerator().w(function (_context2) {
1451
+ while (1) switch (_context2.n) {
1648
1452
  case 0:
1649
1453
  _ref5 = otherInfo || {}, callback = _ref5.callback, sheetMap = _ref5.sheetMap;
1650
1454
  if (!(Array.isArray(fileList) && fileList.length > 0)) {
1651
- _context2.next = 15;
1455
+ _context2.n = 3;
1652
1456
  break;
1653
1457
  }
1654
1458
  nowFile = fileList[fileList.length - 1]; // 阻止了默认上传file没有originFileObj了 得从fileList中去取
1655
- _context2.next = 5;
1459
+ _context2.n = 1;
1656
1460
  return resolveFile(nowFile.originFileObj, {
1657
1461
  sheetMap: fieldMappingReverse(sheetMap),
1658
1462
  sheetCount: 1
1659
1463
  });
1660
- case 5:
1661
- data2 = _context2.sent;
1464
+ case 1:
1465
+ data2 = _context2.v;
1662
1466
  data = data2[0];
1663
1467
  if (data.length) {
1664
- _context2.next = 10;
1468
+ _context2.n = 2;
1665
1469
  break;
1666
1470
  }
1667
1471
  antd.message.error("\u8BF7\u5148\u5F55\u5165\u6570\u636E\u518D\u5BFC\u5165");
1668
- return _context2.abrupt("return");
1669
- case 10:
1472
+ return _context2.a(2);
1473
+ case 2:
1670
1474
  if (callback) callback(data);
1671
1475
  !callback && antd.message.success("\u5BFC\u5165\u6210\u529F");
1672
- return _context2.abrupt("return", data);
1673
- case 15:
1476
+ return _context2.a(2, data);
1477
+ case 3:
1674
1478
  antd.message.error("\u8BF7\u9009\u62E9\u6587\u4EF6");
1675
- return _context2.abrupt("return");
1676
- case 17:
1677
- case "end":
1678
- return _context2.stop();
1479
+ return _context2.a(2);
1480
+ case 4:
1481
+ return _context2.a(2);
1679
1482
  }
1680
1483
  }, _callee2);
1681
1484
  }));
@@ -2627,17 +2430,14 @@ var requestUtil = function requestUtil(_ref) {
2627
2430
  return request__default['default'](url, parms).then(handleResponseData);
2628
2431
  };
2629
2432
  var handleResponseData = /*#__PURE__*/function () {
2630
- var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(response) {
2631
- return _regeneratorRuntime().wrap(function _callee$(_context) {
2632
- while (1) switch (_context.prev = _context.next) {
2433
+ var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(response) {
2434
+ return _regenerator().w(function (_context) {
2435
+ while (1) switch (_context.n) {
2633
2436
  case 0:
2634
- return _context.abrupt("return", Promise.resolve({
2437
+ return _context.a(2, Promise.resolve({
2635
2438
  data: response,
2636
2439
  status: response.status
2637
2440
  }));
2638
- case 1:
2639
- case "end":
2640
- return _context.stop();
2641
2441
  }
2642
2442
  }, _callee);
2643
2443
  }));
@@ -3010,88 +2810,108 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
3010
2810
  data: luckysheet.transToCellData(newData)
3011
2811
  });
3012
2812
  };
3013
- _this.resetData = function () {
2813
+ _this.resetData = /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
3014
2814
  var _customerColumnsMappi;
3015
- var _this$props = _this.props,
3016
- validDataUrl = _this$props.validDataUrl,
3017
- validDataParams = _this$props.validDataParams,
3018
- updateData = _this$props.updateData,
3019
- columns = _this$props.columns,
3020
- isBrandAuth = _this$props.isBrandAuth,
3021
- _this$props$isCheckSt = _this$props.isCheckStockNum,
3022
- isCheckStockNum = _this$props$isCheckSt === void 0 ? true : _this$props$isCheckSt,
3023
- customerColumnsMapping = _this$props.customerColumnsMapping;
3024
- var resultData = _this.getData().filter(function (d) {
3025
- return ___default['default'].compact(Object.values(d)).length;
3026
- });
3027
- var resultColumns = (customerColumnsMapping === null || customerColumnsMapping === void 0 ? void 0 : customerColumnsMapping.length) ? customerColumnsMapping === null || customerColumnsMapping === void 0 ? void 0 : (_customerColumnsMappi = customerColumnsMapping.filter(function (c) {
3028
- return !!(c === null || c === void 0 ? void 0 : c.name);
3029
- })) === null || _customerColumnsMappi === void 0 ? void 0 : _customerColumnsMappi.map(function (c) {
3030
- return c.name;
3031
- }) : columns;
3032
- // 处理业务参数
3033
- var otherParams = {};
3034
- if (isBrandAuth) {
3035
- otherParams = {
3036
- brandAuth: 'ctl-withAuth'
3037
- };
3038
- }
3039
- requestUtil.post(validDataUrl, _objectSpread2(_objectSpread2(_objectSpread2({}, otherParams), validDataParams), {}, {
3040
- columns: resultColumns,
3041
- data: resultData,
3042
- checkStockNum: isCheckStockNum
3043
- })).then(function (result) {
3044
- result = result.data;
3045
- if (judgeIsRequestError(result)) {
3046
- antd.message.error(result.msg);
3047
- return;
3048
- }
3049
- var items = _this.state.items;
3050
- var validIndex = items.length;
3051
- var res = result.data;
3052
- var sheetData = luckysheet.getSheetData();
3053
- sheetData.map(function (item, index) {
3054
- if (!res[index]) return item;
3055
- var changeVMIndex = resultColumns === null || resultColumns === void 0 ? void 0 : resultColumns.findIndex(function (i) {
3056
- return i === 'skuCode';
3057
- });
3058
- if ((resultColumns === null || resultColumns === void 0 ? void 0 : resultColumns.find(function (i) {
3059
- return i === 'skuCode';
3060
- })) && item[changeVMIndex].v !== res[index].skuCode) {
3061
- item[changeVMIndex].v = res[index].skuCode;
3062
- item[changeVMIndex].m = res[index].skuCode;
3063
- }
3064
- if (res[index].flag) {
3065
- item[validIndex] = _objectSpread2(_objectSpread2({}, item[validIndex]), {}, {
3066
- v: '通过',
3067
- m: '通过',
3068
- fc: 'green' //字体颜色为 "#990000"
3069
- });
3070
- } else {
3071
- item[validIndex] = _objectSpread2(_objectSpread2({}, item[validIndex]), {}, {
3072
- v: res[index].checkResults,
3073
- m: res[index].checkResults,
3074
- fc: 'red' //字体颜色为 "#990000"
2815
+ var _this$props, validDataUrl, validDataParams, updateData, columns, isBrandAuth, _this$props$isCheckSt, isCheckStockNum, customerColumnsMapping, checkSharedValue, beforeCheckCallback, resultData, resultColumns, otherParams;
2816
+ return _regenerator().w(function (_context) {
2817
+ while (1) switch (_context.n) {
2818
+ case 0:
2819
+ _this$props = _this.props, validDataUrl = _this$props.validDataUrl, validDataParams = _this$props.validDataParams, updateData = _this$props.updateData, columns = _this$props.columns, isBrandAuth = _this$props.isBrandAuth, _this$props$isCheckSt = _this$props.isCheckStockNum, isCheckStockNum = _this$props$isCheckSt === void 0 ? true : _this$props$isCheckSt, customerColumnsMapping = _this$props.customerColumnsMapping, checkSharedValue = _this$props.checkSharedValue, beforeCheckCallback = _this$props.beforeCheckCallback;
2820
+ resultData = _this.getData().filter(function (d) {
2821
+ return ___default['default'].compact(Object.values(d)).length;
3075
2822
  });
3076
- }
3077
- item[validIndex].ct = {
3078
- fa: 'General',
3079
- t: 'g'
3080
- };
3081
- });
3082
- // sheetData.map((item, index) => {
3083
- // luckysheet.setCellValue(index + 1, 4, 345)
3084
- // })
3085
- luckysheet.create(_this.setConfig(luckysheet.transToCellData(sheetData)));
3086
- _this.setState({
3087
- data: luckysheet.transToCellData(sheetData),
3088
- errorListCheck: false,
3089
- resultData: res
3090
- });
3091
- console.log(setExportData);
3092
- setExportData([123123]);
3093
- }).catch(function (err) {});
3094
- };
2823
+ resultColumns = (customerColumnsMapping === null || customerColumnsMapping === void 0 ? void 0 : customerColumnsMapping.length) ? customerColumnsMapping === null || customerColumnsMapping === void 0 ? void 0 : (_customerColumnsMappi = customerColumnsMapping.filter(function (c) {
2824
+ return !!(c === null || c === void 0 ? void 0 : c.name);
2825
+ })) === null || _customerColumnsMappi === void 0 ? void 0 : _customerColumnsMappi.map(function (c) {
2826
+ return c.name;
2827
+ }) : columns; // 处理业务参数
2828
+ otherParams = {};
2829
+ if (isBrandAuth) {
2830
+ otherParams = {
2831
+ brandAuth: 'ctl-withAuth'
2832
+ };
2833
+ }
2834
+ // 处理校验参数,隐藏校验参数(公用的部分)
2835
+ if (checkSharedValue) {
2836
+ resultData = resultData.map(function (d) {
2837
+ return _objectSpread2(_objectSpread2({}, d), checkSharedValue);
2838
+ });
2839
+ }
2840
+ // 调用回调函数
2841
+ if (!beforeCheckCallback) {
2842
+ _context.n = 2;
2843
+ break;
2844
+ }
2845
+ _context.n = 1;
2846
+ return beforeCheckCallback(resultData);
2847
+ case 1:
2848
+ resultData = _context.v;
2849
+ if (resultData) {
2850
+ _context.n = 2;
2851
+ break;
2852
+ }
2853
+ return _context.a(2);
2854
+ case 2:
2855
+ requestUtil.post(validDataUrl, _objectSpread2(_objectSpread2(_objectSpread2({}, otherParams), validDataParams), {}, {
2856
+ columns: resultColumns,
2857
+ data: resultData,
2858
+ checkStockNum: isCheckStockNum
2859
+ })).then(function (result) {
2860
+ result = result.data;
2861
+ if (judgeIsRequestError(result)) {
2862
+ antd.message.error(result.msg);
2863
+ return;
2864
+ }
2865
+ var items = _this.state.items;
2866
+ var validIndex = items.length;
2867
+ var res = result.data;
2868
+ var sheetData = luckysheet.getSheetData();
2869
+ sheetData.map(function (item, index) {
2870
+ if (!res[index]) return item;
2871
+ var changeVMIndex = resultColumns === null || resultColumns === void 0 ? void 0 : resultColumns.findIndex(function (i) {
2872
+ return i === 'skuCode';
2873
+ });
2874
+ if ((resultColumns === null || resultColumns === void 0 ? void 0 : resultColumns.find(function (i) {
2875
+ return i === 'skuCode';
2876
+ })) && item[changeVMIndex].v !== res[index].skuCode) {
2877
+ item[changeVMIndex].v = res[index].skuCode;
2878
+ item[changeVMIndex].m = res[index].skuCode;
2879
+ }
2880
+ if (res[index].flag) {
2881
+ item[validIndex] = _objectSpread2(_objectSpread2({}, item[validIndex]), {}, {
2882
+ v: '通过',
2883
+ m: '通过',
2884
+ fc: 'green' //字体颜色为 "#990000"
2885
+ });
2886
+ } else {
2887
+ item[validIndex] = _objectSpread2(_objectSpread2({}, item[validIndex]), {}, {
2888
+ v: res[index].checkResults,
2889
+ m: res[index].checkResults,
2890
+ fc: 'red' //字体颜色为 "#990000"
2891
+ });
2892
+ }
2893
+ item[validIndex].ct = {
2894
+ fa: 'General',
2895
+ t: 'g'
2896
+ };
2897
+ });
2898
+ // sheetData.map((item, index) => {
2899
+ // luckysheet.setCellValue(index + 1, 4, 345)
2900
+ // })
2901
+ luckysheet.create(_this.setConfig(luckysheet.transToCellData(sheetData)));
2902
+ _this.setState({
2903
+ data: luckysheet.transToCellData(sheetData),
2904
+ errorListCheck: false,
2905
+ resultData: res
2906
+ });
2907
+ console.log(setExportData);
2908
+ setExportData([123123]);
2909
+ }).catch(function (err) {});
2910
+ case 3:
2911
+ return _context.a(2);
2912
+ }
2913
+ }, _callee);
2914
+ }));
3095
2915
  _this.filterData = function (type) {
3096
2916
  var _this$state = _this.state,
3097
2917
  showErrorData = _this$state.showErrorData,
@@ -3248,8 +3068,8 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
3248
3068
  if (!(res === null || res === void 0 ? void 0 : res[index])) return item;
3249
3069
  var rowItem = res[index];
3250
3070
  item === null || item === void 0 ? void 0 : item.forEach(function (element, colIndex) {
3251
- var _ref4;
3252
- var colKey = (_ref4 = Object.keys(rowItem) || []) === null || _ref4 === void 0 ? void 0 : _ref4[colIndex];
3071
+ var _ref5;
3072
+ var colKey = (_ref5 = Object.keys(rowItem) || []) === null || _ref5 === void 0 ? void 0 : _ref5[colIndex];
3253
3073
  if (!(rowItem === null || rowItem === void 0 ? void 0 : rowItem[colKey])) return element;
3254
3074
  element.m = rowItem[colKey];
3255
3075
  element.v = rowItem[colKey];
@@ -3325,10 +3145,10 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
3325
3145
  notExcelImport = _this$props6.notExcelImport,
3326
3146
  excelImportConfig = _this$props6.excelImportConfig,
3327
3147
  getTemplate = _this$props6.getTemplate;
3328
- var _ref5 = excelImportConfig || {},
3329
- size = _ref5.size,
3330
- accept = _ref5.accept,
3331
- suffixRule = _ref5.suffixRule;
3148
+ var _ref6 = excelImportConfig || {},
3149
+ size = _ref6.size,
3150
+ accept = _ref6.accept,
3151
+ suffixRule = _ref6.suffixRule;
3332
3152
  var totalSummary = this.getCount();
3333
3153
  var sheetMap = this.getSheetMap();
3334
3154
  var callBackFun = this.importExcelToLuckySheet;
@@ -3354,9 +3174,9 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
3354
3174
  var _Object$keys;
3355
3175
  if (!(sheetMap && ((_Object$keys = Object.keys(sheetMap)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.length))) return;
3356
3176
  if (info.file.status !== 'uploading') {
3357
- var _ref6 = info || {},
3358
- file = _ref6.file,
3359
- fileList = _ref6.fileList;
3177
+ var _ref7 = info || {},
3178
+ file = _ref7.file,
3179
+ fileList = _ref7.fileList;
3360
3180
  readerXlsxToList(file, fileList, null, null, {
3361
3181
  callback: function callback(excelData) {
3362
3182
  callBackFun(excelData);
@@ -4780,27 +4600,27 @@ var QueryMutipleSearchSelect = function QueryMutipleSearchSelect(_ref) {
4780
4600
  popvalue = _useState8[0],
4781
4601
  setPopValue = _useState8[1];
4782
4602
  var _useState9 = React$1.useState([]),
4783
- _useState10 = _slicedToArray(_useState9, 2),
4784
- source = _useState10[0],
4785
- setSource = _useState10[1];
4603
+ _useState0 = _slicedToArray(_useState9, 2),
4604
+ source = _useState0[0],
4605
+ setSource = _useState0[1];
4786
4606
  var _useDebounceFn = ahooks.useDebounceFn(function () {
4787
4607
  getData();
4788
4608
  }, {
4789
4609
  wait: 1000
4790
4610
  }),
4791
4611
  run = _useDebounceFn.run;
4792
- var _useState11 = React$1.useState(false),
4612
+ var _useState1 = React$1.useState(false),
4613
+ _useState10 = _slicedToArray(_useState1, 2),
4614
+ fetching = _useState10[0],
4615
+ setFetching = _useState10[1];
4616
+ var _useState11 = React$1.useState(''),
4793
4617
  _useState12 = _slicedToArray(_useState11, 2),
4794
- fetching = _useState12[0],
4795
- setFetching = _useState12[1];
4796
- var _useState13 = React$1.useState(''),
4618
+ searchValue = _useState12[0],
4619
+ setSearchValue = _useState12[1];
4620
+ var _useState13 = React$1.useState(resultSourceKey),
4797
4621
  _useState14 = _slicedToArray(_useState13, 2),
4798
- searchValue = _useState14[0],
4799
- setSearchValue = _useState14[1];
4800
- var _useState15 = React$1.useState(resultSourceKey),
4801
- _useState16 = _slicedToArray(_useState15, 2),
4802
- uniqueValue = _useState16[0],
4803
- setUniqueValue = _useState16[1];
4622
+ uniqueValue = _useState14[0],
4623
+ setUniqueValue = _useState14[1];
4804
4624
  React$1.useEffect(function () {
4805
4625
  setPopValue(value);
4806
4626
  onValueChange(value);
@@ -5217,21 +5037,21 @@ var PropertySelector = function PropertySelector(_ref) {
5217
5037
  notCommonProperty = _useState8[0],
5218
5038
  setNotCommonProperty = _useState8[1];
5219
5039
  var _useState9 = React$1.useState(false),
5220
- _useState10 = _slicedToArray(_useState9, 2),
5221
- visible = _useState10[0],
5222
- setVisible = _useState10[1];
5223
- var _useState11 = React$1.useState(false),
5040
+ _useState0 = _slicedToArray(_useState9, 2),
5041
+ visible = _useState0[0],
5042
+ setVisible = _useState0[1];
5043
+ var _useState1 = React$1.useState(false),
5044
+ _useState10 = _slicedToArray(_useState1, 2),
5045
+ showNotCommon = _useState10[0],
5046
+ setShowNotCommon = _useState10[1]; // 是否展示非常用属性
5047
+ var _useState11 = React$1.useState([]),
5224
5048
  _useState12 = _slicedToArray(_useState11, 2),
5225
- showNotCommon = _useState12[0],
5226
- setShowNotCommon = _useState12[1]; // 是否展示非常用属性
5227
- var _useState13 = React$1.useState([]),
5049
+ classifyOptionList = _useState12[0],
5050
+ setClassifyOptionList = _useState12[1];
5051
+ var _useState13 = React$1.useState('1'),
5228
5052
  _useState14 = _slicedToArray(_useState13, 2),
5229
- classifyOptionList = _useState14[0],
5230
- setClassifyOptionList = _useState14[1];
5231
- var _useState15 = React$1.useState('1'),
5232
- _useState16 = _slicedToArray(_useState15, 2),
5233
- listKey = _useState16[0],
5234
- setListKey = _useState16[1];
5053
+ listKey = _useState14[0],
5054
+ setListKey = _useState14[1];
5235
5055
  React$1.useEffect(function () {
5236
5056
  requestUtil({
5237
5057
  url: '/items/class/withProperty?pageSize=500&currentPage=1',
@@ -5614,29 +5434,29 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
5614
5434
  scrollPage = _useState8[0],
5615
5435
  setScrollPage = _useState8[1];
5616
5436
  var _useState9 = React$1.useState(0),
5617
- _useState10 = _slicedToArray(_useState9, 2),
5618
- itemsTotal = _useState10[0],
5619
- setItemsTotal = _useState10[1];
5620
- var _useState11 = React$1.useState(false),
5437
+ _useState0 = _slicedToArray(_useState9, 2),
5438
+ itemsTotal = _useState0[0],
5439
+ setItemsTotal = _useState0[1];
5440
+ var _useState1 = React$1.useState(false),
5441
+ _useState10 = _slicedToArray(_useState1, 2),
5442
+ fetching = _useState10[0],
5443
+ setFetching = _useState10[1];
5444
+ var _useState11 = React$1.useState(''),
5621
5445
  _useState12 = _slicedToArray(_useState11, 2),
5622
- fetching = _useState12[0],
5623
- setFetching = _useState12[1];
5624
- var _useState13 = React$1.useState(''),
5446
+ searchValue = _useState12[0],
5447
+ setSearchValue = _useState12[1];
5448
+ var _useState13 = React$1.useState(false),
5625
5449
  _useState14 = _slicedToArray(_useState13, 2),
5626
- searchValue = _useState14[0],
5627
- setSearchValue = _useState14[1];
5628
- var _useState15 = React$1.useState(false),
5450
+ isModalVisible = _useState14[0],
5451
+ setIsModalVisible = _useState14[1];
5452
+ var _useState15 = React$1.useState(initVal),
5629
5453
  _useState16 = _slicedToArray(_useState15, 2),
5630
- isModalVisible = _useState16[0],
5631
- setIsModalVisible = _useState16[1];
5632
- var _useState17 = React$1.useState(initVal),
5454
+ popvalue = _useState16[0],
5455
+ setPopValue = _useState16[1];
5456
+ var _useState17 = React$1.useState(resultSourceKey),
5633
5457
  _useState18 = _slicedToArray(_useState17, 2),
5634
- popvalue = _useState18[0],
5635
- setPopValue = _useState18[1];
5636
- var _useState19 = React$1.useState(resultSourceKey),
5637
- _useState20 = _slicedToArray(_useState19, 2),
5638
- uniqueValue = _useState20[0],
5639
- setUniqueValue = _useState20[1];
5458
+ uniqueValue = _useState18[0],
5459
+ setUniqueValue = _useState18[1];
5640
5460
  var _useDebounceFn = ahooks.useDebounceFn(function (v) {
5641
5461
  // 优化搜索参数 支持传多个
5642
5462
  var searchParams = {};
@@ -5665,58 +5485,58 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
5665
5485
  var _Form$useForm = antd.Form.useForm(),
5666
5486
  _Form$useForm2 = _slicedToArray(_Form$useForm, 1),
5667
5487
  form = _Form$useForm2[0];
5488
+ var _useState19 = React$1.useState(true),
5489
+ _useState20 = _slicedToArray(_useState19, 2),
5490
+ collapsed = _useState20[0],
5491
+ setCollapsed = _useState20[1];
5668
5492
  var _useState21 = React$1.useState(true),
5669
5493
  _useState22 = _slicedToArray(_useState21, 2),
5670
- collapsed = _useState22[0],
5671
- setCollapsed = _useState22[1];
5672
- var _useState23 = React$1.useState(true),
5494
+ caretLeftFlag = _useState22[0],
5495
+ setCaretLeftFlag = _useState22[1];
5496
+ var _useState23 = React$1.useState([]),
5673
5497
  _useState24 = _slicedToArray(_useState23, 2),
5674
- caretLeftFlag = _useState24[0],
5675
- setCaretLeftFlag = _useState24[1];
5676
- var _useState25 = React$1.useState([]),
5498
+ tableData = _useState24[0],
5499
+ setTableData = _useState24[1];
5500
+ var _useState25 = React$1.useState(tableInitPagination),
5677
5501
  _useState26 = _slicedToArray(_useState25, 2),
5678
- tableData = _useState26[0],
5679
- setTableData = _useState26[1];
5680
- var _useState27 = React$1.useState(tableInitPagination),
5502
+ tablePagination = _useState26[0],
5503
+ setTablePagination = _useState26[1];
5504
+ var _useState27 = React$1.useState([]),
5681
5505
  _useState28 = _slicedToArray(_useState27, 2),
5682
- tablePagination = _useState28[0],
5683
- setTablePagination = _useState28[1];
5506
+ selectedRowKeys = _useState28[0],
5507
+ setSelectedRowKeys = _useState28[1];
5684
5508
  var _useState29 = React$1.useState([]),
5685
5509
  _useState30 = _slicedToArray(_useState29, 2),
5686
- selectedRowKeys = _useState30[0],
5687
- setSelectedRowKeys = _useState30[1];
5688
- var _useState31 = React$1.useState([]),
5510
+ selectedRows = _useState30[0],
5511
+ setSelectedRows = _useState30[1];
5512
+ var _useState31 = React$1.useState(false),
5689
5513
  _useState32 = _slicedToArray(_useState31, 2),
5690
- selectedRows = _useState32[0],
5691
- setSelectedRows = _useState32[1];
5514
+ checkedAll = _useState32[0],
5515
+ setCheckedAll = _useState32[1];
5692
5516
  var _useState33 = React$1.useState(false),
5693
5517
  _useState34 = _slicedToArray(_useState33, 2),
5694
- checkedAll = _useState34[0],
5695
- setCheckedAll = _useState34[1];
5696
- var _useState35 = React$1.useState(false),
5518
+ indeterminate = _useState34[0],
5519
+ setIndeterminate = _useState34[1];
5520
+ var _useState35 = React$1.useState({}),
5697
5521
  _useState36 = _slicedToArray(_useState35, 2),
5698
- indeterminate = _useState36[0],
5699
- setIndeterminate = _useState36[1];
5700
- var _useState37 = React$1.useState({}),
5522
+ tableFormParams = _useState36[0],
5523
+ setTableFormParams = _useState36[1];
5524
+ var _useState37 = React$1.useState(false),
5701
5525
  _useState38 = _slicedToArray(_useState37, 2),
5702
- tableFormParams = _useState38[0],
5703
- setTableFormParams = _useState38[1];
5704
- var _useState39 = React$1.useState(false),
5526
+ tooltipVisible = _useState38[0],
5527
+ setTooltipVisible = _useState38[1];
5528
+ var _useState39 = React$1.useState(handleTableColumns(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableColumns)),
5705
5529
  _useState40 = _slicedToArray(_useState39, 2),
5706
- tooltipVisible = _useState40[0],
5707
- setTooltipVisible = _useState40[1];
5708
- var _useState41 = React$1.useState(handleTableColumns(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableColumns)),
5530
+ tableShowColumns = _useState40[0],
5531
+ setTabletShowColumns = _useState40[1]; // 默认展示表头-modalTableProps?.tableColumns
5532
+ var _useState41 = React$1.useState(false),
5709
5533
  _useState42 = _slicedToArray(_useState41, 2),
5710
- tableShowColumns = _useState42[0],
5711
- setTabletShowColumns = _useState42[1]; // 默认展示表头-modalTableProps?.tableColumns
5534
+ confirmLoading = _useState42[0],
5535
+ setConfirmLoading = _useState42[1];
5712
5536
  var _useState43 = React$1.useState(false),
5713
5537
  _useState44 = _slicedToArray(_useState43, 2),
5714
- confirmLoading = _useState44[0],
5715
- setConfirmLoading = _useState44[1];
5716
- var _useState45 = React$1.useState(false),
5717
- _useState46 = _slicedToArray(_useState45, 2),
5718
- modalSearched = _useState46[0],
5719
- setModalSearched = _useState46[1];
5538
+ modalSearched = _useState44[0],
5539
+ setModalSearched = _useState44[1];
5720
5540
  var setSelectDataSource = function setSelectDataSource(list, total) {
5721
5541
  setItems(list);
5722
5542
  setItemsTotal(total);
@@ -6174,6 +5994,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
6174
5994
  };
6175
5995
  var formItem = function formItem(list) {
6176
5996
  if (isModalVisible && (list === null || list === void 0 ? void 0 : list.length)) {
5997
+ debugger;
6177
5998
  var setDisabled = function setDisabled(name) {
6178
5999
  if (fixedparamsDisabled && (fixedparameter === null || fixedparameter === void 0 ? void 0 : fixedparameter.length) && fixedparameter.find(function (item) {
6179
6000
  return item === name;
@@ -6193,7 +6014,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
6193
6014
  })) || [];
6194
6015
  var searchList = (modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.noEmptySearchField) ? list : list === null || list === void 0 ? void 0 : list.concat(addKong);
6195
6016
  return searchList.map(function (i, index) {
6196
- var _i$field, _i$field3, _i$field5, _i$field7, _i$field9, _i$field10, _i$field11, _i$field12, _i$field14, _i$field15;
6017
+ var _i$field, _i$field3, _i$field5, _i$field7, _i$field9, _i$field0, _i$field1, _i$field10, _i$field12, _i$field13;
6197
6018
  if ((i === null || i === void 0 ? void 0 : i.type) === 'kong') return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
6198
6019
  span: ColSpan,
6199
6020
  key: i
@@ -6291,7 +6112,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
6291
6112
  disabled: setDisabled(i.name)
6292
6113
  }))));
6293
6114
  }
6294
- 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') {
6115
+ 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') {
6295
6116
  return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
6296
6117
  span: ColSpan,
6297
6118
  key: i.name
@@ -6305,7 +6126,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
6305
6126
  }
6306
6127
  })));
6307
6128
  }
6308
- if ((i === null || i === void 0 ? void 0 : (_i$field11 = i.field) === null || _i$field11 === void 0 ? void 0 : _i$field11.type) === 'proppertySelector') {
6129
+ if ((i === null || i === void 0 ? void 0 : (_i$field1 = i.field) === null || _i$field1 === void 0 ? void 0 : _i$field1.type) === 'proppertySelector') {
6309
6130
  return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
6310
6131
  span: ColSpan,
6311
6132
  key: i.name
@@ -6315,8 +6136,8 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
6315
6136
  key: i.name
6316
6137
  }, /*#__PURE__*/React__default['default'].createElement(PropertySelector, null)));
6317
6138
  }
6318
- 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') {
6319
- var _i$field13;
6139
+ 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') {
6140
+ var _i$field11;
6320
6141
  return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
6321
6142
  span: ColSpan,
6322
6143
  key: i.name
@@ -6329,9 +6150,9 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
6329
6150
  width: '100%'
6330
6151
  },
6331
6152
  placeholder: "\u8BF7\u9009\u62E9"
6332
- }, i === null || i === void 0 ? void 0 : (_i$field13 = i.field) === null || _i$field13 === void 0 ? void 0 : _i$field13.props))));
6153
+ }, i === null || i === void 0 ? void 0 : (_i$field11 = i.field) === null || _i$field11 === void 0 ? void 0 : _i$field11.props))));
6333
6154
  }
6334
- if ((i === null || i === void 0 ? void 0 : (_i$field14 = i.field) === null || _i$field14 === void 0 ? void 0 : _i$field14.type) === 'multipleQuerySearchSelect') {
6155
+ if ((i === null || i === void 0 ? void 0 : (_i$field12 = i.field) === null || _i$field12 === void 0 ? void 0 : _i$field12.type) === 'multipleQuerySearchSelect') {
6335
6156
  return /*#__PURE__*/React__default['default'].createElement(antd.Col, {
6336
6157
  span: ColSpan,
6337
6158
  key: i.name
@@ -6360,7 +6181,7 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
6360
6181
  placeholder: "\u8BF7\u8F93\u5165",
6361
6182
  allowClear: true,
6362
6183
  maxLength: 100
6363
- }, i === null || i === void 0 ? void 0 : (_i$field15 = i.field) === null || _i$field15 === void 0 ? void 0 : _i$field15.props), {}, {
6184
+ }, i === null || i === void 0 ? void 0 : (_i$field13 = i.field) === null || _i$field13 === void 0 ? void 0 : _i$field13.props), {}, {
6364
6185
  disabled: setDisabled(i.name)
6365
6186
  }))));
6366
6187
  });
@@ -7680,135 +7501,132 @@ var AddSelect = function AddSelect(props) {
7680
7501
  _Form$useForm2 = _slicedToArray(_Form$useForm, 1),
7681
7502
  form = _Form$useForm2[0];
7682
7503
  var _useState9 = React$1.useState(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableSearchForm),
7683
- _useState10 = _slicedToArray(_useState9, 2),
7684
- tableSearchForm = _useState10[0],
7685
- setTableSearchForm = _useState10[1];
7686
- var _useState11 = React$1.useState(true),
7504
+ _useState0 = _slicedToArray(_useState9, 2),
7505
+ tableSearchForm = _useState0[0],
7506
+ setTableSearchForm = _useState0[1];
7507
+ var _useState1 = React$1.useState(true),
7508
+ _useState10 = _slicedToArray(_useState1, 2),
7509
+ caretLeftFlag = _useState10[0],
7510
+ setCaretLeftFlag = _useState10[1];
7511
+ var _useState11 = React$1.useState([]),
7687
7512
  _useState12 = _slicedToArray(_useState11, 2),
7688
- caretLeftFlag = _useState12[0],
7689
- setCaretLeftFlag = _useState12[1];
7690
- var _useState13 = React$1.useState([]),
7691
- _useState14 = _slicedToArray(_useState13, 2),
7692
- tableData = _useState14[0],
7693
- setTableData = _useState14[1];
7694
- var _useState15 = React$1.useState(_objectSpread2({
7513
+ tableData = _useState12[0],
7514
+ setTableData = _useState12[1];
7515
+ var _useState13 = React$1.useState(_objectSpread2({
7695
7516
  total: 0,
7696
7517
  size: "small",
7697
7518
  current: 1,
7698
7519
  pageSize: tableInitPageSize
7699
7520
  }, modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.topTablePagination)),
7521
+ _useState14 = _slicedToArray(_useState13, 2),
7522
+ tablePagination = _useState14[0],
7523
+ setTablePagination = _useState14[1];
7524
+ var _useState15 = React$1.useState([]),
7700
7525
  _useState16 = _slicedToArray(_useState15, 2),
7701
- tablePagination = _useState16[0],
7702
- setTablePagination = _useState16[1];
7703
- var _useState17 = React$1.useState([]),
7526
+ selectedRowKeys = _useState16[0],
7527
+ setSelectedRowKeys = _useState16[1];
7528
+ var _useState17 = React$1.useState({}),
7704
7529
  _useState18 = _slicedToArray(_useState17, 2),
7705
- selectedRowKeys = _useState18[0],
7706
- setSelectedRowKeys = _useState18[1];
7707
- var _useState19 = React$1.useState({}),
7530
+ tableFormParams = _useState18[0],
7531
+ setTableFormParams = _useState18[1];
7532
+ var _useState19 = React$1.useState(false),
7708
7533
  _useState20 = _slicedToArray(_useState19, 2),
7709
- tableFormParams = _useState20[0],
7710
- setTableFormParams = _useState20[1];
7534
+ confirmLoading = _useState20[0],
7535
+ setConfirmLoading = _useState20[1];
7711
7536
  var _useState21 = React$1.useState(false),
7712
7537
  _useState22 = _slicedToArray(_useState21, 2),
7713
- confirmLoading = _useState22[0],
7714
- setConfirmLoading = _useState22[1];
7715
- var _useState23 = React$1.useState(false),
7538
+ confirmContinueLoading = _useState22[0],
7539
+ setConfirmContinueLoading = _useState22[1];
7540
+ var _useState23 = React$1.useState([]),
7716
7541
  _useState24 = _slicedToArray(_useState23, 2),
7717
- confirmContinueLoading = _useState24[0],
7718
- setConfirmContinueLoading = _useState24[1];
7542
+ selectColumns = _useState24[0],
7543
+ setSelectColumns = _useState24[1];
7719
7544
  var _useState25 = React$1.useState([]),
7720
7545
  _useState26 = _slicedToArray(_useState25, 2),
7721
- selectColumns = _useState26[0],
7722
- setSelectColumns = _useState26[1];
7546
+ showColumns = _useState26[0],
7547
+ setShowColumns = _useState26[1];
7723
7548
  var _useState27 = React$1.useState([]),
7724
7549
  _useState28 = _slicedToArray(_useState27, 2),
7725
- showColumns = _useState28[0],
7726
- setShowColumns = _useState28[1];
7550
+ tableColumns = _useState28[0],
7551
+ setTableColumns = _useState28[1];
7727
7552
  var _useState29 = React$1.useState([]),
7728
7553
  _useState30 = _slicedToArray(_useState29, 2),
7729
- tableColumns = _useState30[0],
7730
- setTableColumns = _useState30[1];
7731
- var _useState31 = React$1.useState([]),
7732
- _useState32 = _slicedToArray(_useState31, 2),
7733
- showToChooseColumns = _useState32[0],
7734
- setShowToChooseColumns = _useState32[1];
7554
+ showToChooseColumns = _useState30[0],
7555
+ setShowToChooseColumns = _useState30[1];
7735
7556
  var codeToChoose = tableCodeList[0] || initTableCode[businessType][0];
7736
7557
  var codeSelected = tableCodeList[1] || initTableCode[businessType][1];
7737
7558
  // FIXME: 特殊业务逻辑
7738
7559
  var checkSelectChange = /*#__PURE__*/function () {
7739
- var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
7740
- var result;
7741
- return _regeneratorRuntime().wrap(function _callee$(_context) {
7742
- while (1) switch (_context.prev = _context.next) {
7560
+ var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
7561
+ var result, _t;
7562
+ return _regenerator().w(function (_context) {
7563
+ while (1) switch (_context.p = _context.n) {
7743
7564
  case 0:
7744
7565
  if (!(bType == 'skc' && tList.some(function (i) {
7745
7566
  return i[recordKey] == recordItem[recordKey] && i[selectItem.dataIndex] == changeValue;
7746
7567
  }))) {
7747
- _context.next = 3;
7568
+ _context.n = 1;
7748
7569
  break;
7749
7570
  }
7750
7571
  antd.message.warning('相同skc配码不可设置相同哦');
7751
- return _context.abrupt("return", false);
7752
- case 3:
7572
+ return _context.a(2, false);
7573
+ case 1:
7753
7574
  if (!(bType == 'spu')) {
7754
- _context.next = 26;
7575
+ _context.n = 9;
7755
7576
  break;
7756
7577
  }
7757
7578
  if (!(selectItem.dataIndex == 'colorName' && tList.some(function (i) {
7758
7579
  return i[recordKey] == recordItem[recordKey] && i.selectPropertyGroupCode == recordItem.selectPropertyGroupCode && i[selectItem.dataIndex] == changeValue;
7759
7580
  }))) {
7760
- _context.next = 7;
7581
+ _context.n = 2;
7761
7582
  break;
7762
7583
  }
7763
7584
  antd.message.warning('相同商品相同配码颜色不可设置相同哦');
7764
- return _context.abrupt("return", false);
7765
- case 7:
7585
+ return _context.a(2, false);
7586
+ case 2:
7766
7587
  if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && !recordItem.colorName)) {
7767
- _context.next = 10;
7588
+ _context.n = 3;
7768
7589
  break;
7769
7590
  }
7770
7591
  antd.message.warning('请先选择颜色!');
7771
- return _context.abrupt("return", false);
7772
- case 10:
7592
+ return _context.a(2, false);
7593
+ case 3:
7773
7594
  if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && tList.some(function (i) {
7774
7595
  return i[recordKey] == recordItem[recordKey] && i.colorName == recordItem.colorName && i[selectItem.dataIndex] == changeValue;
7775
7596
  }))) {
7776
- _context.next = 13;
7597
+ _context.n = 4;
7777
7598
  break;
7778
7599
  }
7779
7600
  antd.message.warning('相同商品相同颜色配码不可设置相同哦');
7780
- return _context.abrupt("return", false);
7781
- case 13:
7601
+ return _context.a(2, false);
7602
+ case 4:
7782
7603
  if (!(selectItem.dataIndex == 'selectPropertyGroupCode')) {
7783
- _context.next = 26;
7604
+ _context.n = 9;
7784
7605
  break;
7785
7606
  }
7786
7607
  result = true;
7787
- _context.prev = 15;
7788
- _context.next = 18;
7608
+ _context.p = 5;
7609
+ _context.n = 6;
7789
7610
  return checkSpuMatchCode({
7790
7611
  skcCode: recordItem[recordKey],
7791
7612
  matchingCode: changeValue,
7792
7613
  ext1: recordItem.colorName
7793
7614
  });
7794
- case 18:
7795
- result = _context.sent;
7615
+ case 6:
7616
+ result = _context.v;
7796
7617
  result = true;
7797
- _context.next = 25;
7618
+ _context.n = 8;
7798
7619
  break;
7799
- case 22:
7800
- _context.prev = 22;
7801
- _context.t0 = _context["catch"](15);
7802
- result = typeof _context.t0 == 'boolean' ? _context.t0 : false;
7803
- case 25:
7804
- return _context.abrupt("return", result);
7805
- case 26:
7806
- return _context.abrupt("return", true);
7807
- case 27:
7808
- case "end":
7809
- return _context.stop();
7810
- }
7811
- }, _callee, null, [[15, 22]]);
7620
+ case 7:
7621
+ _context.p = 7;
7622
+ _t = _context.v;
7623
+ result = typeof _t == 'boolean' ? _t : false;
7624
+ case 8:
7625
+ return _context.a(2, result);
7626
+ case 9:
7627
+ return _context.a(2, true);
7628
+ }
7629
+ }, _callee, null, [[5, 7]]);
7812
7630
  }));
7813
7631
  return function checkSelectChange(_x, _x2, _x3, _x4, _x5, _x6) {
7814
7632
  return _ref2.apply(this, arguments);
@@ -7899,17 +7717,16 @@ var AddSelect = function AddSelect(props) {
7899
7717
  e.target.blur();
7900
7718
  },
7901
7719
  onBlur: function () {
7902
- var _onBlur = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(e) {
7720
+ var _onBlur = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(e) {
7903
7721
  var value;
7904
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
7905
- while (1) switch (_context2.prev = _context2.next) {
7722
+ return _regenerator().w(function (_context2) {
7723
+ while (1) switch (_context2.n) {
7906
7724
  case 0:
7907
7725
  value = e.target.value;
7908
7726
  record[item.dataIndex] = value;
7909
7727
  editRecord(record);
7910
- case 3:
7911
- case "end":
7912
- return _context2.stop();
7728
+ case 1:
7729
+ return _context2.a(2);
7913
7730
  }
7914
7731
  }, _callee2);
7915
7732
  }));
@@ -8069,10 +7886,10 @@ var AddSelect = function AddSelect(props) {
8069
7886
  }
8070
7887
  _dom6 = null;
8071
7888
  } else if (e.keyCode === 38) {
8072
- var _e$nativeEvent$path$10;
7889
+ var _e$nativeEvent$path$0;
8073
7890
  e.stopPropagation();
8074
7891
  e.preventDefault();
8075
- 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];
7892
+ 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];
8076
7893
  if (dom1) {
8077
7894
  // dom1.value=""
8078
7895
  // dom1.setSelectionRange(100, 0);
@@ -8106,19 +7923,19 @@ var AddSelect = function AddSelect(props) {
8106
7923
  return /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2(_objectSpread2({}, item.selectProps), {}, {
8107
7924
  value: text || null,
8108
7925
  onChange: function () {
8109
- var _onChange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(value) {
8110
- var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules;
8111
- return _regeneratorRuntime().wrap(function _callee3$(_context3) {
8112
- while (1) switch (_context3.prev = _context3.next) {
7926
+ var _onChange = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(value) {
7927
+ var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules, _t2;
7928
+ return _regenerator().w(function (_context3) {
7929
+ while (1) switch (_context3.p = _context3.n) {
8113
7930
  case 0:
8114
7931
  dataSourceSelectItem = (dataSourceList === null || dataSourceList === void 0 ? void 0 : dataSourceList.find(function (d) {
8115
7932
  return d[selectKey] == value;
8116
7933
  })) || {};
8117
7934
  if (!(item === null || item === void 0 ? void 0 : item.selectChangeCallback)) {
8118
- _context3.next = 6;
7935
+ _context3.n = 2;
8119
7936
  break;
8120
7937
  }
8121
- _context3.next = 4;
7938
+ _context3.n = 1;
8122
7939
  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, {
8123
7940
  record: record,
8124
7941
  index: index,
@@ -8128,10 +7945,10 @@ var AddSelect = function AddSelect(props) {
8128
7945
  dataSourceSelectItem: dataSourceSelectItem,
8129
7946
  editRecord: editRecord
8130
7947
  });
8131
- case 4:
8132
- _context3.next = 25;
7948
+ case 1:
7949
+ _context3.n = 10;
8133
7950
  break;
8134
- case 6:
7951
+ case 2:
8135
7952
  // 更新当前行数据函数
8136
7953
  changeValue = function changeValue(v, dSSItem) {
8137
7954
  var _item$dataSourceSelec;
@@ -8144,12 +7961,12 @@ var AddSelect = function AddSelect(props) {
8144
7961
  }
8145
7962
  }; // 处理校验,默认不校验
8146
7963
  isCheckPass = true;
8147
- _context3.prev = 8;
7964
+ _context3.p = 3;
8148
7965
  if (!(item === null || item === void 0 ? void 0 : item.selectCheckCallback)) {
8149
- _context3.next = 15;
7966
+ _context3.n = 5;
8150
7967
  break;
8151
7968
  }
8152
- _context3.next = 12;
7969
+ _context3.n = 4;
8153
7970
  return item === null || item === void 0 ? void 0 : item.selectCheckCallback(popvalue, {
8154
7971
  record: record,
8155
7972
  index: index,
@@ -8158,23 +7975,23 @@ var AddSelect = function AddSelect(props) {
8158
7975
  changeValue: value,
8159
7976
  dataSourceSelectItem: dataSourceSelectItem
8160
7977
  });
8161
- case 12:
8162
- isCheckPass = _context3.sent;
8163
- _context3.next = 19;
7978
+ case 4:
7979
+ isCheckPass = _context3.v;
7980
+ _context3.n = 7;
8164
7981
  break;
8165
- case 15:
8166
- _context3.next = 17;
7982
+ case 5:
7983
+ _context3.n = 6;
8167
7984
  return checkSelectChange(businessType, popvalue, mappingValueField, record, item, value);
8168
- case 17:
8169
- isConformToTheRules = _context3.sent;
7985
+ case 6:
7986
+ isConformToTheRules = _context3.v;
8170
7987
  isCheckPass = !isConformToTheRules;
8171
- case 19:
8172
- _context3.next = 23;
7988
+ case 7:
7989
+ _context3.n = 9;
8173
7990
  break;
8174
- case 21:
8175
- _context3.prev = 21;
8176
- _context3.t0 = _context3["catch"](8);
8177
- case 23:
7991
+ case 8:
7992
+ _context3.p = 8;
7993
+ _t2 = _context3.v;
7994
+ case 9:
8178
7995
  if (isCheckPass) {
8179
7996
  changeValue(value, dataSourceSelectItem);
8180
7997
  } else {
@@ -8182,11 +7999,10 @@ var AddSelect = function AddSelect(props) {
8182
7999
  }
8183
8000
  // 更新已选表格函数
8184
8001
  editRecord(record);
8185
- case 25:
8186
- case "end":
8187
- return _context3.stop();
8002
+ case 10:
8003
+ return _context3.a(2);
8188
8004
  }
8189
- }, _callee3, null, [[8, 21]]);
8005
+ }, _callee3, null, [[3, 8]]);
8190
8006
  }));
8191
8007
  function onChange(_x8) {
8192
8008
  return _onChange.apply(this, arguments);
@@ -9577,29 +9393,29 @@ var BillEntry = function BillEntry(_ref3) {
9577
9393
  dataIndex: 'propertyNameAndValue'
9578
9394
  }];
9579
9395
  var _useState9 = React$1.useState(false),
9580
- _useState10 = _slicedToArray(_useState9, 2),
9581
- isModalVisible = _useState10[0],
9582
- setIsModalVisible = _useState10[1];
9583
- var _useState11 = React$1.useState([{
9396
+ _useState0 = _slicedToArray(_useState9, 2),
9397
+ isModalVisible = _useState0[0],
9398
+ setIsModalVisible = _useState0[1];
9399
+ var _useState1 = React$1.useState([{
9584
9400
  hovered: false
9585
9401
  }]),
9586
- _useState12 = _slicedToArray(_useState11, 2),
9587
- data = _useState12[0],
9588
- setData = _useState12[1];
9402
+ _useState10 = _slicedToArray(_useState1, 2),
9403
+ data = _useState10[0],
9404
+ setData = _useState10[1];
9589
9405
  var tableRef = React$1.useRef(null);
9590
9406
  var codeSelected = tableCode;
9591
- var _useState13 = React$1.useState(false),
9407
+ var _useState11 = React$1.useState(false),
9408
+ _useState12 = _slicedToArray(_useState11, 2),
9409
+ loading = _useState12[0],
9410
+ setLoading = _useState12[1];
9411
+ var _useState13 = React$1.useState([]),
9592
9412
  _useState14 = _slicedToArray(_useState13, 2),
9593
- loading = _useState14[0],
9594
- setLoading = _useState14[1];
9413
+ selectColumns = _useState14[0],
9414
+ setSelectColumns = _useState14[1];
9595
9415
  var _useState15 = React$1.useState([]),
9596
9416
  _useState16 = _slicedToArray(_useState15, 2),
9597
- selectColumns = _useState16[0],
9598
- setSelectColumns = _useState16[1];
9599
- var _useState17 = React$1.useState([]),
9600
- _useState18 = _slicedToArray(_useState17, 2),
9601
- showColumns = _useState18[0],
9602
- setShowColumns = _useState18[1];
9417
+ showColumns = _useState16[0],
9418
+ setShowColumns = _useState16[1];
9603
9419
  React$1.useEffect(function () {
9604
9420
  setSelectColumns([].concat(_toConsumableArray(columns.map(function (item) {
9605
9421
  var inputLength = columns.filter(function (item) {
@@ -9715,42 +9531,42 @@ var BillEntry = function BillEntry(_ref3) {
9715
9531
  });
9716
9532
  };
9717
9533
  var handleSubmit = /*#__PURE__*/function () {
9718
- var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
9534
+ var _ref4 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
9719
9535
  var canEntryObject, _canEntryObject$error, messageInfo;
9720
- return _regeneratorRuntime().wrap(function _callee$(_context) {
9721
- while (1) switch (_context.prev = _context.next) {
9536
+ return _regenerator().w(function (_context) {
9537
+ while (1) switch (_context.n) {
9722
9538
  case 0:
9723
9539
  if (data === null || data === void 0 ? void 0 : data.length) {
9724
- _context.next = 3;
9540
+ _context.n = 1;
9725
9541
  break;
9726
9542
  }
9727
9543
  antd.message.warning('至少录入一条数据');
9728
- return _context.abrupt("return");
9729
- case 3:
9544
+ return _context.a(2);
9545
+ case 1:
9730
9546
  if (data === null || data === void 0 ? void 0 : data.every(function (d) {
9731
9547
  return d.skuCode && d.name;
9732
9548
  })) {
9733
- _context.next = 6;
9549
+ _context.n = 2;
9734
9550
  break;
9735
9551
  }
9736
9552
  antd.message.warning('录入商品不存在');
9737
- return _context.abrupt("return");
9738
- case 6:
9553
+ return _context.a(2);
9554
+ case 2:
9739
9555
  if (data === null || data === void 0 ? void 0 : data.every(function (d) {
9740
9556
  return d.count;
9741
9557
  })) {
9742
- _context.next = 9;
9558
+ _context.n = 3;
9743
9559
  break;
9744
9560
  }
9745
9561
  antd.message.warning('请填写商品数量!');
9746
- return _context.abrupt("return");
9747
- case 9:
9748
- _context.next = 11;
9562
+ return _context.a(2);
9563
+ case 3:
9564
+ _context.n = 4;
9749
9565
  return isSkuCanEntry(data);
9750
- case 11:
9751
- canEntryObject = _context.sent;
9566
+ case 4:
9567
+ canEntryObject = _context.v;
9752
9568
  if (!((canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.flag) === false)) {
9753
- _context.next = 16;
9569
+ _context.n = 5;
9754
9570
  break;
9755
9571
  }
9756
9572
  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) {
@@ -9760,8 +9576,8 @@ var BillEntry = function BillEntry(_ref3) {
9760
9576
  content: messageInfo,
9761
9577
  duration: 6
9762
9578
  });
9763
- return _context.abrupt("return");
9764
- case 16:
9579
+ return _context.a(2);
9580
+ case 5:
9765
9581
  setLoading(true);
9766
9582
  onSaveCallback(data).then(function (res) {
9767
9583
  {
@@ -9779,9 +9595,8 @@ var BillEntry = function BillEntry(_ref3) {
9779
9595
  antd.message.error(Error);
9780
9596
  setLoading(false);
9781
9597
  });
9782
- case 18:
9783
- case "end":
9784
- return _context.stop();
9598
+ case 6:
9599
+ return _context.a(2);
9785
9600
  }
9786
9601
  }, _callee);
9787
9602
  }));
@@ -10214,6 +10029,7 @@ function commonFun(type, prefixUrl, parentProps) {
10214
10029
  var modalTableProps = _objectSpread2({
10215
10030
  modalTableTitle: '',
10216
10031
  tableSearchForm: tableSearchForm,
10032
+ visibleFieldsCount: 13,
10217
10033
  tableColumns: []
10218
10034
  }, modalTableBusProps);
10219
10035
  var needModalTable = (modalTableBusProps === null || modalTableBusProps === void 0 ? void 0 : modalTableBusProps.needModalTable) !== undefined ? modalTableBusProps === null || modalTableBusProps === void 0 ? void 0 : modalTableBusProps.needModalTable : true;
@@ -10579,15 +10395,172 @@ function commonFun(type, prefixUrl, parentProps) {
10579
10395
  }
10580
10396
  }
10581
10397
  }, {
10582
- name: 'UNIQUE_SPEC',
10583
- label: '属性',
10398
+ name: 'qp-skcCode-in',
10399
+ label: 'SKC编码',
10584
10400
  field: {
10585
- type: 'proppertySelector'
10401
+ type: 'multipleQuerySearchSelect',
10402
+ props: {
10403
+ selectProps: {
10404
+ mode: "multiple",
10405
+ placeholder: '请输入SKC编码查询'
10406
+ },
10407
+ requestConfig: {
10408
+ url: '/items/sku//listNoPage/Simple',
10409
+ filter: 'qp-skcCode,name-orGroup,like',
10410
+ mappingTextField: 'name',
10411
+ mappingValueField: 'skcCode',
10412
+ sourceName: 'qp-skcCode-in',
10413
+ specialBracket: true,
10414
+ otherParams: {
10415
+ 'ownOrgSign': getCurrentTargetBgId(),
10416
+ 'ctl-count': true
10417
+ } // 默认参数
10418
+ }
10419
+ }
10586
10420
  }
10587
- }];
10421
+ }, {
10422
+ name: 'qp-year-in',
10423
+ type: 'select',
10424
+ label: '年份',
10425
+ field: {
10426
+ type: 'select',
10427
+ props: {
10428
+ mode: 'multiple',
10429
+ notFoundContent: '暂无数据',
10430
+ allowClear: true,
10431
+ showSearch: true,
10432
+ showArrow: true,
10433
+ maxTagCount: 1,
10434
+ optionFilterProp: 'children',
10435
+ filterOption: function filterOption(input, option) {
10436
+ return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
10437
+ }
10438
+ }
10439
+ }
10440
+ }, {
10441
+ name: 'qp-season-in',
10442
+ type: 'select',
10443
+ label: '季节',
10444
+ field: {
10445
+ type: 'select',
10446
+ props: {
10447
+ mode: 'multiple',
10448
+ notFoundContent: '暂无数据',
10449
+ allowClear: true,
10450
+ showSearch: true,
10451
+ showArrow: true,
10452
+ maxTagCount: 1,
10453
+ optionFilterProp: 'children',
10454
+ filterOption: function filterOption(input, option) {
10455
+ return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
10456
+ }
10457
+ }
10458
+ }
10459
+ }, {
10460
+ name: 'qp-zzbdbm-in',
10461
+ type: 'select',
10462
+ label: '波段',
10463
+ field: {
10464
+ type: 'select',
10465
+ props: {
10466
+ mode: 'multiple',
10467
+ notFoundContent: '暂无数据',
10468
+ allowClear: true,
10469
+ showSearch: true,
10470
+ showArrow: true,
10471
+ maxTagCount: 1,
10472
+ optionFilterProp: 'children',
10473
+ filterOption: function filterOption(input, option) {
10474
+ return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
10475
+ }
10476
+ }
10477
+ }
10478
+ }, {
10479
+ name: 'qp-zzdlbm-in',
10480
+ type: 'select',
10481
+ label: '大类',
10482
+ field: {
10483
+ type: 'select',
10484
+ props: {
10485
+ mode: 'multiple',
10486
+ notFoundContent: '暂无数据',
10487
+ allowClear: true,
10488
+ showSearch: true,
10489
+ showArrow: true,
10490
+ maxTagCount: 1,
10491
+ optionFilterProp: 'children',
10492
+ filterOption: function filterOption(input, option) {
10493
+ return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
10494
+ }
10495
+ }
10496
+ }
10497
+ }, {
10498
+ name: 'qp-zzzlbm-in',
10499
+ type: 'select',
10500
+ label: '中类',
10501
+ field: {
10502
+ type: 'select',
10503
+ props: {
10504
+ mode: 'multiple',
10505
+ notFoundContent: '暂无数据',
10506
+ allowClear: true,
10507
+ showSearch: true,
10508
+ showArrow: true,
10509
+ maxTagCount: 1,
10510
+ optionFilterProp: 'children',
10511
+ filterOption: function filterOption(input, option) {
10512
+ return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
10513
+ }
10514
+ }
10515
+ }
10516
+ }, {
10517
+ name: 'qp-zzxlbm-in',
10518
+ type: 'select',
10519
+ label: '小类',
10520
+ field: {
10521
+ type: 'select',
10522
+ props: {
10523
+ mode: 'multiple',
10524
+ notFoundContent: '暂无数据',
10525
+ allowClear: true,
10526
+ showSearch: true,
10527
+ showArrow: true,
10528
+ maxTagCount: 1,
10529
+ optionFilterProp: 'children',
10530
+ filterOption: function filterOption(input, option) {
10531
+ return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
10532
+ }
10533
+ }
10534
+ }
10535
+ }
10536
+ // { name: 'UNIQUE_SPEC', label: '属性', field: {
10537
+ // type: 'proppertySelector',
10538
+ // } },
10539
+ ];
10588
10540
  var defaultQSHL = [{
10589
10541
  isOpen: true,
10590
10542
  queryKey: 'qp-brandId-in'
10543
+ }, {
10544
+ isOpen: true,
10545
+ queryKey: 'qp-categoryId-in'
10546
+ }, {
10547
+ isOpen: true,
10548
+ queryKey: 'qp-year-in'
10549
+ }, {
10550
+ isOpen: true,
10551
+ queryKey: 'qp-season-in'
10552
+ }, {
10553
+ isOpen: true,
10554
+ queryKey: 'qp-zzbdbm-in'
10555
+ }, {
10556
+ isOpen: true,
10557
+ queryKey: 'qp-zzdlbm-in'
10558
+ }, {
10559
+ isOpen: true,
10560
+ queryKey: 'qp-zzzlbm-in'
10561
+ }, {
10562
+ isOpen: true,
10563
+ queryKey: 'qp-zzxlbm-in'
10591
10564
  }];
10592
10565
  var _queryHeaderParams2 = getQueryHeadersList({
10593
10566
  defaultQSHL: defaultQSHL,
@@ -10601,14 +10574,39 @@ function commonFun(type, prefixUrl, parentProps) {
10601
10574
  }, getQueryHeadersItem(_queryHeaderParams2, 'qp-brandId-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/category/queryCategoryTree"), {
10602
10575
  pageSize: 5000,
10603
10576
  currentPage: 1
10604
- }, getQueryHeadersItem(_queryHeaderParams2, 'qp-categoryId-in'))]).then(function (x) {
10577
+ }, getQueryHeadersItem(_queryHeaderParams2, 'qp-categoryId-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/item/propertyValue"), {
10578
+ 'qp-propertyCode-eq': 'PROP_YEAR',
10579
+ pageSize: 999
10580
+ }, getQueryHeadersItem(_queryHeaderParams2, 'qp-year-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/item/propertyValue"), {
10581
+ 'qp-propertyCode-eq': 'PROP_SEASON',
10582
+ pageSize: 999
10583
+ }, getQueryHeadersItem(_queryHeaderParams2, 'qp-season-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/band"), {
10584
+ pageSize: 999,
10585
+ currentPage: 1
10586
+ }, getQueryHeadersItem(_queryHeaderParams2, 'qp-zzbdbm-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/rule/getClassPropertyValue/110000217"), {}, getQueryHeadersItem(_queryHeaderParams2, 'qp-zzdlbm-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/item/propertyValue"), {
10587
+ 'qp-propertyCode-eq': 'MID_CATA',
10588
+ pageSize: 999
10589
+ }, getQueryHeadersItem(_queryHeaderParams2, 'qp-zzzlbm-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/item/propertyValue"), {
10590
+ 'qp-propertyCode-eq': 'PROP_SUBCATEORY',
10591
+ pageSize: 999
10592
+ }, getQueryHeadersItem(_queryHeaderParams2, 'qp-zzxlbm-in'))]).then(function (x) {
10605
10593
  formatSource(x, 0, 3, tableSearchForm, ['id', 'name']);
10606
10594
  formatTreeDataSource(x, 1, 4, tableSearchForm);
10595
+ formatSource(x, 0, getFieldIndex(tableSearchForm, 'qp-brandId-in'), tableSearchForm, ['id', 'name']);
10596
+ formatTreeDataSource(x, 1, getFieldIndex(tableSearchForm, 'qp-categoryId-in'), tableSearchForm);
10597
+ formatSource(x, 2, getFieldIndex(tableSearchForm, 'qp-year-in'), tableSearchForm, ['value', 'value']);
10598
+ formatSource(x, 3, getFieldIndex(tableSearchForm, 'qp-season-in'), tableSearchForm, ['value', 'value']);
10599
+ formatSource(x, 4, getFieldIndex(tableSearchForm, 'qp-zzbdbm-in'), tableSearchForm, ['bandCode', 'bandName']);
10600
+ formatSource(x, 5, getFieldIndex(tableSearchForm, 'qp-zzdlbm-in'), tableSearchForm, ['value', 'value']);
10601
+ formatSource(x, 6, getFieldIndex(tableSearchForm, 'qp-zzzlbm-in'), tableSearchForm, ['value', 'value']);
10602
+ formatSource(x, 7, getFieldIndex(tableSearchForm, 'qp-zzxlbm-in'), tableSearchForm, ['value', 'value']);
10607
10603
  });
10608
10604
  modalTableProps = _objectSpread2({
10609
10605
  modalTableTitle: '选择SKU',
10610
10606
  tableSearchForm: tableSearchForm,
10611
10607
  isHorizontally: true,
10608
+ tableSearchColSpan: 6,
10609
+ visibleFieldsCount: 13,
10612
10610
  tableColumns: [{
10613
10611
  title: '序号',
10614
10612
  dataIndex: 'keyIndex',
@@ -11403,7 +11401,7 @@ function commonFun(type, prefixUrl, parentProps) {
11403
11401
  }, {
11404
11402
  name: 'qp-channelCode-in',
11405
11403
  type: 'treeSelect',
11406
- label: '销售渠道',
11404
+ label: '战区',
11407
11405
  field: {
11408
11406
  type: 'treeSelect',
11409
11407
  props: {
@@ -11425,7 +11423,7 @@ function commonFun(type, prefixUrl, parentProps) {
11425
11423
  }, {
11426
11424
  name: 'qp-refCode-in',
11427
11425
  type: 'treeSelect',
11428
- label: '营销区域',
11426
+ label: '大区',
11429
11427
  field: {
11430
11428
  type: 'treeSelect',
11431
11429
  props: {
@@ -11978,17 +11976,17 @@ function commonFun(type, prefixUrl, parentProps) {
11978
11976
  }
11979
11977
  }
11980
11978
  }];
11981
- var _queryHeaderParams10 = getQueryHeadersList({
11979
+ var _queryHeaderParams0 = getQueryHeadersList({
11982
11980
  querySelectHeadersList: querySelectHeadersList,
11983
11981
  extralHeaders: extralHeaders
11984
11982
  });
11985
- Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/org/listNoPage"), {}, getQueryHeadersItem(_queryHeaderParams10, 'qp-createOrgCode-eq')), loadSelectSource$1("/channel-manage/channelInfo/tree", {
11983
+ Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/org/listNoPage"), {}, getQueryHeadersItem(_queryHeaderParams0, 'qp-createOrgCode-eq')), loadSelectSource$1("/channel-manage/channelInfo/tree", {
11986
11984
  'qp-status-eq': 10,
11987
11985
  'qp-isMain-eq': 1,
11988
11986
  'qp-type-in': '1,2'
11989
- }, getQueryHeadersItem(_queryHeaderParams10, 'qp-orgCode-in')), loadSelectSource$1("/channel-manage/tagNode/getTree/10", {
11987
+ }, getQueryHeadersItem(_queryHeaderParams0, 'qp-orgCode-in')), loadSelectSource$1("/channel-manage/tagNode/getTree/10", {
11990
11988
  'qp-status-eq': 1
11991
- }, getQueryHeadersItem(_queryHeaderParams10, 'qp-orgCode-in'))]).then(function (x) {
11989
+ }, getQueryHeadersItem(_queryHeaderParams0, 'qp-orgCode-in'))]).then(function (x) {
11992
11990
  var firstElement = x === null || x === void 0 ? void 0 : x[0];
11993
11991
  var allList = firstElement && [firstElement, firstElement];
11994
11992
  formatSource(allList, 0, 2, tableSearchForm);
@@ -12174,7 +12172,7 @@ function commonFun(type, prefixUrl, parentProps) {
12174
12172
  }
12175
12173
  }
12176
12174
  }];
12177
- var _queryHeaderParams11 = getQueryHeadersList({
12175
+ var _queryHeaderParams1 = getQueryHeadersList({
12178
12176
  querySelectHeadersList: querySelectHeadersList,
12179
12177
  extralHeaders: extralHeaders
12180
12178
  });
@@ -12182,21 +12180,21 @@ function commonFun(type, prefixUrl, parentProps) {
12182
12180
  pageSize: 5000,
12183
12181
  currentPage: 1,
12184
12182
  'qp-companyType-eq': '30'
12185
- }, getQueryHeadersItem(_queryHeaderParams11, 'qp-conglomerateCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/company"), {
12183
+ }, getQueryHeadersItem(_queryHeaderParams1, 'qp-conglomerateCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/company"), {
12186
12184
  pageSize: 5000,
12187
12185
  currentPage: 1,
12188
12186
  'qp-companyType-eq': '20'
12189
- }, getQueryHeadersItem(_queryHeaderParams11, 'qp-companyCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/platformRecord/getPlatformRecordList"), {
12187
+ }, getQueryHeadersItem(_queryHeaderParams1, 'qp-companyCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/platformRecord/getPlatformRecordList"), {
12190
12188
  // pageSize: 5000,
12191
12189
  // currentPage: 1,
12192
12190
  'qp-status-eq': '1'
12193
- }, getQueryHeadersItem(_queryHeaderParams11, 'qp-plateformCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/store"), {
12191
+ }, getQueryHeadersItem(_queryHeaderParams1, 'qp-plateformCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/store"), {
12194
12192
  pageSize: 5000,
12195
12193
  currentPage: 1
12196
- }, getQueryHeadersItem(_queryHeaderParams11, 'qp-mainBrandCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/accountingSubject"), {
12194
+ }, getQueryHeadersItem(_queryHeaderParams1, 'qp-mainBrandCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/accountingSubject"), {
12197
12195
  pageSize: 5000,
12198
12196
  currentPage: 1
12199
- }, getQueryHeadersItem(_queryHeaderParams11, 'qp-accountingCode-in'))]).then(function (x) {
12197
+ }, getQueryHeadersItem(_queryHeaderParams1, 'qp-accountingCode-in'))]).then(function (x) {
12200
12198
  formatSource(x, 0, 2, tableSearchForm);
12201
12199
  formatSource(x, 1, 3, tableSearchForm);
12202
12200
  formatSource(x, 2, 5, tableSearchForm);
@@ -12304,7 +12302,7 @@ function commonFun(type, prefixUrl, parentProps) {
12304
12302
  }, {
12305
12303
  name: 'qp-channelCode-in',
12306
12304
  type: 'treeSelect',
12307
- label: '所属销售渠道',
12305
+ label: '战区',
12308
12306
  field: {
12309
12307
  type: 'treeSelect',
12310
12308
  props: {
@@ -12326,7 +12324,7 @@ function commonFun(type, prefixUrl, parentProps) {
12326
12324
  }, {
12327
12325
  name: 'qp-commonRelationAreaCode-in',
12328
12326
  type: 'treeSelect',
12329
- label: '营销区域',
12327
+ label: '大区',
12330
12328
  field: {
12331
12329
  type: 'treeSelect',
12332
12330
  props: {
@@ -12365,8 +12363,46 @@ function commonFun(type, prefixUrl, parentProps) {
12365
12363
  }
12366
12364
  },
12367
12365
  initialSource: getDictionarySource$1('BUSINESS_StoreType')
12366
+ }, {
12367
+ name: "qp-brandCode-in",
12368
+ label: "品牌",
12369
+ field: {
12370
+ type: 'select',
12371
+ props: {
12372
+ mode: 'multiple',
12373
+ notFoundContent: '暂无数据',
12374
+ allowClear: true,
12375
+ showSearch: true,
12376
+ showArrow: true,
12377
+ maxTagCount: 1,
12378
+ optionFilterProp: 'children',
12379
+ filterOption: function filterOption(input, option) {
12380
+ return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
12381
+ }
12382
+ }
12383
+ }
12384
+ }, {
12385
+ name: 'qp-manageSupervisor-like',
12386
+ label: '管理督导',
12387
+ type: 'input'
12388
+ }, {
12389
+ name: 'qp-directSupervisor-like',
12390
+ label: '直接督导',
12391
+ type: 'input'
12392
+ }, {
12393
+ name: 'qp-distributionItem-like',
12394
+ label: '分销商品',
12395
+ type: 'input'
12396
+ }, {
12397
+ name: 'qp-headItem-like',
12398
+ label: '总部商品',
12399
+ type: 'input'
12400
+ }, {
12401
+ name: 'qp-storeChannelName-like',
12402
+ label: '管理模式',
12403
+ type: 'input'
12368
12404
  }];
12369
- var _queryHeaderParams12 = getQueryHeadersList({
12405
+ var _queryHeaderParams10 = getQueryHeadersList({
12370
12406
  querySelectHeadersList: querySelectHeadersList,
12371
12407
  extralHeaders: extralHeaders
12372
12408
  });
@@ -12374,13 +12410,17 @@ function commonFun(type, prefixUrl, parentProps) {
12374
12410
  'qp-employeeCode-eq': getEmployeeCode(),
12375
12411
  'qp-realOrg-eq': true,
12376
12412
  'qp-status-eq': 10
12377
- }, getQueryHeadersItem(_queryHeaderParams12, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/channelInfo/tree"), {
12413
+ }, getQueryHeadersItem(_queryHeaderParams10, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/channelInfo/tree"), {
12378
12414
  'qp-status-eq': 10,
12379
12415
  'qp-isMain-eq': 1,
12380
12416
  'qp-type-in': '1,2'
12381
- }, getQueryHeadersItem(_queryHeaderParams12, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/tagNode/getTree/10"), {
12417
+ }, getQueryHeadersItem(_queryHeaderParams10, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/tagNode/getTree/10"), {
12382
12418
  'qp-status-eq': 1
12383
- }, getQueryHeadersItem(_queryHeaderParams12, 'qp-orgCode-in'))]).then(function (x) {
12419
+ }, getQueryHeadersItem(_queryHeaderParams10, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/brand/queryBrandList"), {
12420
+ pageSize: 5000,
12421
+ currentPage: 1,
12422
+ 'ctl-withAuth': true
12423
+ }, getQueryHeadersItem(_queryHeaderParams10, 'ctl-withAuth'))]).then(function (x) {
12384
12424
  var channelDisabledJude = function channelDisabledJude(data) {
12385
12425
  return data['parentCode'] === '0';
12386
12426
  }; // 所属销售渠道 树节点不能点判断
@@ -12390,6 +12430,7 @@ function commonFun(type, prefixUrl, parentProps) {
12390
12430
  formatSource(x, 0, 3, tableSearchForm);
12391
12431
  formatTreeDataSource(x, 1, 4, tableSearchForm, ['code', 'name'], 'channelInfoSon', channelDisabledJude);
12392
12432
  formatTreeDataSource(x, 2, 5, tableSearchForm, ['code', 'name'], 'children', areaDisabledJude);
12433
+ formatSource(x, 3, 7, tableSearchForm, ['brandCode', 'name']);
12393
12434
  });
12394
12435
  modalTableProps = _objectSpread2({
12395
12436
  modalTableTitle: '选择商店',
@@ -12453,6 +12494,36 @@ function commonFun(type, prefixUrl, parentProps) {
12453
12494
  return getDictionaryTextByValue$1('BUSINESS_StoreType', text);
12454
12495
  },
12455
12496
  width: 80
12497
+ }, {
12498
+ title: '品牌',
12499
+ dataIndex: 'brandName',
12500
+ defaultSort: 8,
12501
+ width: 80
12502
+ }, {
12503
+ title: '管理督导',
12504
+ dataIndex: 'manageSupervisor',
12505
+ defaultSort: 9,
12506
+ width: 100
12507
+ }, {
12508
+ title: '直接督导',
12509
+ dataIndex: 'directSupervisor',
12510
+ defaultSort: 10,
12511
+ width: 100
12512
+ }, {
12513
+ title: '分销商品',
12514
+ dataIndex: 'distributionItem',
12515
+ defaultSort: 11,
12516
+ width: 100
12517
+ }, {
12518
+ title: '总部商品',
12519
+ dataIndex: 'headItem',
12520
+ defaultSort: 12,
12521
+ width: 100
12522
+ }, {
12523
+ title: '管理模式',
12524
+ dataIndex: 'storeChannelName',
12525
+ defaultSort: 13,
12526
+ width: 100
12456
12527
  }],
12457
12528
  noEmptySearchField: true
12458
12529
  }, modalTableBusProps);
@@ -12615,10 +12686,10 @@ function commonFun(type, prefixUrl, parentProps) {
12615
12686
  name: 'qp-email-like',
12616
12687
  label: '邮箱'
12617
12688
  }, {
12618
- name: 'qp-phone-like',
12689
+ name: 'qp-officeTelephone-like',
12619
12690
  label: '手机号'
12620
12691
  }];
12621
- var _queryHeaderParams13 = getQueryHeadersList({
12692
+ var _queryHeaderParams11 = getQueryHeadersList({
12622
12693
  querySelectHeadersList: querySelectHeadersList,
12623
12694
  extralHeaders: extralHeaders
12624
12695
  });
@@ -12626,7 +12697,7 @@ function commonFun(type, prefixUrl, parentProps) {
12626
12697
  pageSize: 5000,
12627
12698
  currentPage: 1,
12628
12699
  'qp-companyType-eq': 20
12629
- }, getQueryHeadersItem(_queryHeaderParams13, 'qp-companyCode-in'))]).then(function (x) {
12700
+ }, getQueryHeadersItem(_queryHeaderParams11, 'qp-companyCode-in'))]).then(function (x) {
12630
12701
  formatSource(x, 0, 2, tableSearchForm);
12631
12702
  });
12632
12703
  modalTableProps = _objectSpread2({
@@ -12735,13 +12806,13 @@ function commonFun(type, prefixUrl, parentProps) {
12735
12806
  name: 'qp-phone-like',
12736
12807
  label: '手机号'
12737
12808
  }]);
12738
- var _queryHeaderParams14 = getQueryHeadersList({
12809
+ var _queryHeaderParams12 = getQueryHeadersList({
12739
12810
  querySelectHeadersList: querySelectHeadersList,
12740
12811
  extralHeaders: extralHeaders
12741
12812
  });
12742
12813
  Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgViewNode/common/getTreeForOrgViewAndTenant"), {
12743
12814
  'orgViewCode': 'administrative-organization-view'
12744
- }, getQueryHeadersItem(_queryHeaderParams14, 'qp-code-in'))]).then(function (x) {
12815
+ }, getQueryHeadersItem(_queryHeaderParams12, 'qp-code-in'))]).then(function (x) {
12745
12816
  formatTreeDataSource(x, 0, 2, tableSearchForm, ['code', 'name']);
12746
12817
  });
12747
12818
  modalTableProps = _objectSpread2({
@@ -12792,7 +12863,7 @@ function commonFun(type, prefixUrl, parentProps) {
12792
12863
  dataIndex: 'email'
12793
12864
  }, {
12794
12865
  title: '手机号',
12795
- dataIndex: 'officeTelephone',
12866
+ dataIndex: 'phone',
12796
12867
  defaultSort: 4,
12797
12868
  render: function render(text, record) {
12798
12869
  return handleTextOverflow(text || (record === null || record === void 0 ? void 0 : record.phone));
@@ -12888,17 +12959,17 @@ function commonFun(type, prefixUrl, parentProps) {
12888
12959
  name: 'qp-remark-like',
12889
12960
  label: '备注'
12890
12961
  }];
12891
- var _queryHeaderParams15 = getQueryHeadersList({
12962
+ var _queryHeaderParams13 = getQueryHeadersList({
12892
12963
  querySelectHeadersList: querySelectHeadersList,
12893
12964
  extralHeaders: extralHeaders
12894
12965
  });
12895
12966
  Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/logisCompany"), {
12896
12967
  pageSize: 5000,
12897
12968
  currentPage: 1
12898
- }, getQueryHeadersItem(_queryHeaderParams15, logisCompanyCodeSingleSearchName)), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/printTemplate"), {
12969
+ }, getQueryHeadersItem(_queryHeaderParams13, logisCompanyCodeSingleSearchName)), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/printTemplate"), {
12899
12970
  pageSize: 5000,
12900
12971
  currentPage: 1
12901
- }, getQueryHeadersItem(_queryHeaderParams15, 'qp-sheetTemplateCode-in'))]).then(function (x) {
12972
+ }, getQueryHeadersItem(_queryHeaderParams13, 'qp-sheetTemplateCode-in'))]).then(function (x) {
12902
12973
  formatSource(x, 0, 2, tableSearchForm);
12903
12974
  formatSource(x, 1, 5, tableSearchForm);
12904
12975
  });
@@ -13068,14 +13139,14 @@ function commonFun(type, prefixUrl, parentProps) {
13068
13139
  }
13069
13140
  }
13070
13141
  }];
13071
- var _queryHeaderParams16 = getQueryHeadersList({
13142
+ var _queryHeaderParams14 = getQueryHeadersList({
13072
13143
  querySelectHeadersList: querySelectHeadersList,
13073
13144
  extralHeaders: extralHeaders
13074
13145
  });
13075
13146
  Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/permissionCategory"), {
13076
13147
  pageSize: 5000,
13077
13148
  currentPage: 1
13078
- }, getQueryHeadersItem(_queryHeaderParams16, 'qp-categoryCode-eq'))]).then(function (x) {
13149
+ }, getQueryHeadersItem(_queryHeaderParams14, 'qp-categoryCode-eq'))]).then(function (x) {
13079
13150
  formatSource(x, 0, 2, tableSearchForm);
13080
13151
  });
13081
13152
  modalTableProps = _objectSpread2({
@@ -13172,7 +13243,7 @@ function commonFun(type, prefixUrl, parentProps) {
13172
13243
  }
13173
13244
  }
13174
13245
  }];
13175
- var _queryHeaderParams17 = getQueryHeadersList({
13246
+ var _queryHeaderParams15 = getQueryHeadersList({
13176
13247
  querySelectHeadersList: querySelectHeadersList,
13177
13248
  extralHeaders: extralHeaders
13178
13249
  });
@@ -13180,7 +13251,7 @@ function commonFun(type, prefixUrl, parentProps) {
13180
13251
  'qp-employeeCode-eq': getEmployeeCode(),
13181
13252
  'qp-realOrg-eq': true,
13182
13253
  'qp-status-eq': 10
13183
- }, getQueryHeadersItem(_queryHeaderParams17, 'qp-salesOrgCode-in'))]).then(function (x) {
13254
+ }, getQueryHeadersItem(_queryHeaderParams15, 'qp-salesOrgCode-in'))]).then(function (x) {
13184
13255
  formatSource(x, 0, 2, tableSearchForm);
13185
13256
  });
13186
13257
  modalTableProps = _objectSpread2({
@@ -13286,13 +13357,13 @@ function commonFun(type, prefixUrl, parentProps) {
13286
13357
  },
13287
13358
  initialSource: nodeType
13288
13359
  }];
13289
- var _queryHeaderParams18 = getQueryHeadersList({
13360
+ var _queryHeaderParams16 = getQueryHeadersList({
13290
13361
  querySelectHeadersList: querySelectHeadersList,
13291
13362
  extralHeaders: extralHeaders
13292
13363
  });
13293
13364
  Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgView/getOrgViewListNoPage"), {
13294
13365
  'qp-status-eq': 10
13295
- }, getQueryHeadersItem(_queryHeaderParams18, 'qp-orgViewCode-in'))]).then(function (x) {
13366
+ }, getQueryHeadersItem(_queryHeaderParams16, 'qp-orgViewCode-in'))]).then(function (x) {
13296
13367
  formatSource(x, 0, 2, tableSearchForm);
13297
13368
  });
13298
13369
  modalTableProps = _objectSpread2({
@@ -13618,13 +13689,13 @@ function commonFun(type, prefixUrl, parentProps) {
13618
13689
  },
13619
13690
  initialSource: nodeType
13620
13691
  }];
13621
- var _queryHeaderParams19 = getQueryHeadersList({
13692
+ var _queryHeaderParams17 = getQueryHeadersList({
13622
13693
  querySelectHeadersList: querySelectHeadersList,
13623
13694
  extralHeaders: extralHeaders
13624
13695
  });
13625
13696
  Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgView/getOrgViewListNoPage"), {
13626
13697
  'qp-status-eq': 10
13627
- }, getQueryHeadersItem(_queryHeaderParams19, 'qp-orgViewCode-in'))]).then(function (x) {
13698
+ }, getQueryHeadersItem(_queryHeaderParams17, 'qp-orgViewCode-in'))]).then(function (x) {
13628
13699
  formatSource(x, 0, 2, tableSearchForm);
13629
13700
  });
13630
13701
  modalTableProps = _objectSpread2({
@@ -14569,9 +14640,9 @@ var AddSpuSelect = function AddSpuSelect(parProps) {
14569
14640
  value = _useState8[0],
14570
14641
  setValue = _useState8[1];
14571
14642
  var _useState9 = React$1.useState([]),
14572
- _useState10 = _slicedToArray(_useState9, 2),
14573
- propertyList = _useState10[0],
14574
- setPropertyList = _useState10[1];
14643
+ _useState0 = _slicedToArray(_useState9, 2),
14644
+ propertyList = _useState0[0],
14645
+ setPropertyList = _useState0[1];
14575
14646
  React$1.useEffect(function () {
14576
14647
  if (parProps === null || parProps === void 0 ? void 0 : parProps.isSingleColor) {
14577
14648
  // type: 1 尺码组; 2 配码组
@@ -14994,7 +15065,7 @@ function getStorageVale(storageKeyString) {
14994
15065
  var _storageKeyString$spl = storageKeyString.split('.'),
14995
15066
  _storageKeyString$spl2 = _toArray(_storageKeyString$spl),
14996
15067
  localstorage = _storageKeyString$spl2[0],
14997
- restKeyArrays = _storageKeyString$spl2.slice(1);
15068
+ restKeyArrays = _arrayLikeToArray(_storageKeyString$spl2).slice(1);
14998
15069
  var localStorageInfo = window.localStorage.getItem(localstorage);
14999
15070
  if (!restKeyArrays.length) return localStorageInfo;
15000
15071
  var returnVal = JSON.parse(localStorageInfo || '{}');
@@ -15095,46 +15166,45 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
15095
15166
  requestUtil.get("".concat(url, "?").concat(querystring.stringify(paramsData)), {
15096
15167
  headers: headers
15097
15168
  }).then(/*#__PURE__*/function () {
15098
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(res) {
15169
+ var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(res) {
15099
15170
  var _ctx$form;
15100
15171
  var resData, coverData, data, dataList;
15101
- return _regeneratorRuntime().wrap(function _callee$(_context) {
15102
- while (1) switch (_context.prev = _context.next) {
15172
+ return _regenerator().w(function (_context) {
15173
+ while (1) switch (_context.n) {
15103
15174
  case 0:
15104
15175
  resData = (res === null || res === void 0 ? void 0 : res.data) || [];
15105
15176
  if (!judgeIsRequestSuccess(resData)) {
15106
- _context.next = 13;
15177
+ _context.n = 4;
15107
15178
  break;
15108
15179
  }
15109
15180
  data = resData.data;
15110
15181
  if (!remoteSource.converter) {
15111
- _context.next = 9;
15182
+ _context.n = 2;
15112
15183
  break;
15113
15184
  }
15114
- _context.next = 6;
15185
+ _context.n = 1;
15115
15186
  return remoteSource.converter({
15116
15187
  data: [data]
15117
15188
  });
15118
- case 6:
15119
- coverData = _context.sent;
15120
- _context.next = 11;
15189
+ case 1:
15190
+ coverData = _context.v;
15191
+ _context.n = 3;
15121
15192
  break;
15122
- case 9:
15193
+ case 2:
15123
15194
  dataList = data && Array.isArray(data) ? data : data && [data] || [];
15124
15195
  coverData = dataList.length && dataList.map(function (ites) {
15125
15196
  return _mapSearchTree(ites);
15126
15197
  }) || [];
15127
- case 11:
15128
- _context.next = 14;
15198
+ case 3:
15199
+ _context.n = 5;
15129
15200
  break;
15130
- case 13:
15201
+ case 4:
15131
15202
  coverData = [];
15132
- case 14:
15203
+ case 5:
15133
15204
  setTreeData(coverData);
15134
15205
  ctx === null || ctx === void 0 ? void 0 : (_ctx$form = ctx.form) === null || _ctx$form === void 0 ? void 0 : _ctx$form.setFieldSource(ctx.name, coverData);
15135
- case 16:
15136
- case "end":
15137
- return _context.stop();
15206
+ case 6:
15207
+ return _context.a(2);
15138
15208
  }
15139
15209
  }, _callee);
15140
15210
  }));
@@ -18033,6 +18103,9 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
18033
18103
  title: '列首',
18034
18104
  dataIndex: 'fixedLeft',
18035
18105
  render: function render(text, record) {
18106
+ if (_this.props.disableColumnFixed) {
18107
+ return null;
18108
+ }
18036
18109
  return /*#__PURE__*/React__default['default'].createElement("span", {
18037
18110
  onClick: function onClick() {
18038
18111
  var sortDataSource = _this.state.sortDataSource;
@@ -18109,6 +18182,9 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
18109
18182
  title: '列尾',
18110
18183
  dataIndex: 'fixedRight',
18111
18184
  render: function render(text, record) {
18185
+ if (_this.props.disableColumnFixed) {
18186
+ return null;
18187
+ }
18112
18188
  return /*#__PURE__*/React__default['default'].createElement("span", {
18113
18189
  onClick: function onClick() {
18114
18190
  var sortDataSource = _this.state.sortDataSource;
@@ -19358,7 +19434,7 @@ var ResizeableTitle$2 = function ResizeableTitle(props) {
19358
19434
  }, /*#__PURE__*/React__default['default'].createElement("th", _objectSpread2({}, restProps)));
19359
19435
  };
19360
19436
  var BsSulaQueryTable = (function (props) {
19361
- var _rowsRef$current5, _props$expandable, _sortTableRef$current3, _value$exportConfig6;
19437
+ var _rowsRef$current5, _props$expandable, _sortTableRef$current3, _props$tableProps, _value$exportConfig6;
19362
19438
  var bsTableCode = (props === null || props === void 0 ? void 0 : props.tableCode) || window.location.hash; //设置列字段的唯一标识
19363
19439
  var rowsRef = React$1.useRef(null);
19364
19440
  // 获取 table columns中所有的 key 防止有的地方是 dataindex
@@ -19436,38 +19512,37 @@ var BsSulaQueryTable = (function (props) {
19436
19512
  };
19437
19513
  var refs = React$1.useRef(null);
19438
19514
  var _useState9 = React$1.useState(''),
19439
- _useState10 = _slicedToArray(_useState9, 2),
19440
- pagePath = _useState10[0],
19441
- setPagePath = _useState10[1];
19515
+ _useState0 = _slicedToArray(_useState9, 2),
19516
+ pagePath = _useState0[0],
19517
+ setPagePath = _useState0[1];
19442
19518
  var _useLocation = umi.useLocation(),
19443
19519
  pathname = _useLocation.pathname,
19444
- _useLocation$state = _useLocation.state,
19445
- state = _useLocation$state === void 0 ? {} : _useLocation$state;
19446
- var _useState11 = React$1.useState(false),
19447
- _useState12 = _slicedToArray(_useState11, 2),
19448
- isFullScreen = _useState12[0],
19449
- setIsFnllScreen = _useState12[1];
19520
+ _useLocation$state = _useLocation.state;
19521
+ var _useState1 = React$1.useState(false),
19522
+ _useState10 = _slicedToArray(_useState1, 2),
19523
+ isFullScreen = _useState10[0],
19524
+ setIsFnllScreen = _useState10[1];
19450
19525
  // @ts-nocheck
19451
19526
  var value = props;
19452
19527
  var _props$fields = props.fields,
19453
19528
  fields = _props$fields === void 0 ? [] : _props$fields;
19454
- var _useState13 = React$1.useState([]),
19455
- _useState14 = _slicedToArray(_useState13, 2),
19456
- showColumn = _useState14[0],
19457
- setShowColumns = _useState14[1]; // 列字段
19529
+ var _useState11 = React$1.useState([]),
19530
+ _useState12 = _slicedToArray(_useState11, 2),
19531
+ showColumn = _useState12[0],
19532
+ setShowColumns = _useState12[1]; // 列字段
19458
19533
  var originSearchFields = getSettingFieldOrColumn(getConfigFromlocalstorage(ENUM$1.BROWSER_CACHE.SEARCH_FIELDS_CONDITION), fields, 'searchFields');
19459
- var _useState15 = React$1.useState(originSearchFields),
19534
+ var _useState13 = React$1.useState(originSearchFields),
19535
+ _useState14 = _slicedToArray(_useState13, 2),
19536
+ showSearchFields = _useState14[0],
19537
+ setShowSearchFields = _useState14[1]; //搜索项字段
19538
+ var _useState15 = React$1.useState([]),
19460
19539
  _useState16 = _slicedToArray(_useState15, 2),
19461
- showSearchFields = _useState16[0],
19462
- setShowSearchFields = _useState16[1]; //搜索项字段
19463
- var _useState17 = React$1.useState([]),
19540
+ showExportColumn = _useState16[0],
19541
+ setShowExportColumns = _useState16[1]; // 导出列字段
19542
+ var _useState17 = React$1.useState(''),
19464
19543
  _useState18 = _slicedToArray(_useState17, 2),
19465
- showExportColumn = _useState18[0],
19466
- setShowExportColumns = _useState18[1]; // 导出列字段
19467
- var _useState19 = React$1.useState(''),
19468
- _useState20 = _slicedToArray(_useState19, 2),
19469
- height = _useState20[0],
19470
- setHeight = _useState20[1];
19544
+ height = _useState18[0],
19545
+ setHeight = _useState18[1];
19471
19546
  var sortTableRef = React$1.useRef(null);
19472
19547
  var searchTableRef = React$1.useRef(null);
19473
19548
  var exportTableRef = React$1.useRef(null);
@@ -19918,17 +19993,16 @@ var BsSulaQueryTable = (function (props) {
19918
19993
  isFullScreen: isFullScreen
19919
19994
  });
19920
19995
  React$1.useEffect(function () {
19921
- if (!localStorage.getItem('isTabChange') || (state === null || state === void 0 ? void 0 : state.updateCurrentPage)) {
19922
- if (pagePath === pathname) {
19923
- var _config$ref, _config$ref$current, _config$ref$current$t, _config$ref$current$t2;
19924
- // @ts-ignore
19925
- (_config$ref = config.ref) === null || _config$ref === void 0 ? void 0 : (_config$ref$current = _config$ref.current) === null || _config$ref$current === void 0 ? void 0 : (_config$ref$current$t = _config$ref$current.tableRef) === null || _config$ref$current$t === void 0 ? void 0 : (_config$ref$current$t2 = _config$ref$current$t.current) === null || _config$ref$current$t2 === void 0 ? void 0 : _config$ref$current$t2.refreshTable();
19926
- }
19927
- }
19928
- setTimeout(function () {
19929
- // 处理页面刷新两面
19930
- localStorage.removeItem('isTabChange');
19931
- }, 0);
19996
+ // if (!localStorage.getItem('isTabChange') || state?.updateCurrentPage) {
19997
+ // if (pagePath === pathname) {
19998
+ // // @ts-ignore
19999
+ // config.ref?.current?.tableRef?.current?.refreshTable();
20000
+ // }
20001
+ // }
20002
+ // setTimeout(() => {
20003
+ // // 处理页面刷新两面
20004
+ // localStorage.removeItem('isTabChange');
20005
+ // }, 0);
19932
20006
  }, [pathname]);
19933
20007
  var expandedRowKeys = props === null || props === void 0 ? void 0 : (_props$expandable = props.expandable) === null || _props$expandable === void 0 ? void 0 : _props$expandable.expandedRowKeys;
19934
20008
  //todo summary属性已经被使用,为了兼容之前的,现在使用 summaryList
@@ -20019,6 +20093,7 @@ var BsSulaQueryTable = (function (props) {
20019
20093
  id: "bs-sula-query-table"
20020
20094
  }, /*#__PURE__*/React__default['default'].createElement(MemoQueryTable, _objectSpread2({}, memoConfig)), /*#__PURE__*/React__default['default'].createElement(SortableTable$1, {
20021
20095
  ref: sortTableRef,
20096
+ disableColumnFixed: (_props$tableProps = props.tableProps) === null || _props$tableProps === void 0 ? void 0 : _props$tableProps.isVirtualTable,
20022
20097
  setShowColumns: setResizeShowColumns,
20023
20098
  showColumn: showColumn,
20024
20099
  setInitialTableInfo: setInitialTableInfo,
@@ -20095,7 +20170,7 @@ var matchPath = function matchPath(pathname) {
20095
20170
  if (!match) return null;
20096
20171
  var _match = _toArray(match),
20097
20172
  url = _match[0],
20098
- values = _match.slice(1);
20173
+ values = _arrayLikeToArray(_match).slice(1);
20099
20174
  var isExact = pathname === url;
20100
20175
  if (exact && !isExact) return null;
20101
20176
  return {
@@ -20515,22 +20590,19 @@ function outLogin(_x) {
20515
20590
  return _outLogin.apply(this, arguments);
20516
20591
  }
20517
20592
  function _outLogin() {
20518
- _outLogin = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
20593
+ _outLogin = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(params) {
20519
20594
  var res;
20520
- return _regeneratorRuntime().wrap(function _callee$(_context) {
20521
- while (1) switch (_context.prev = _context.next) {
20595
+ return _regenerator().w(function (_context) {
20596
+ while (1) switch (_context.n) {
20522
20597
  case 0:
20523
- _context.next = 2;
20598
+ _context.n = 1;
20524
20599
  return requestUtil({
20525
20600
  url: '/user/web/loginOut',
20526
20601
  method: 'GET'
20527
20602
  });
20528
- case 2:
20529
- res = _context.sent;
20530
- return _context.abrupt("return", res);
20531
- case 4:
20532
- case "end":
20533
- return _context.stop();
20603
+ case 1:
20604
+ res = _context.v;
20605
+ return _context.a(2, res);
20534
20606
  }
20535
20607
  }, _callee);
20536
20608
  }));
@@ -20657,20 +20729,20 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
20657
20729
  });
20658
20730
  };
20659
20731
  var loginOut = /*#__PURE__*/function () {
20660
- var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
20732
+ var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
20661
20733
  var sessionId;
20662
- return _regeneratorRuntime().wrap(function _callee$(_context) {
20663
- while (1) switch (_context.prev = _context.next) {
20734
+ return _regenerator().w(function (_context) {
20735
+ while (1) switch (_context.n) {
20664
20736
  case 0:
20665
- _context.next = 2;
20737
+ _context.n = 1;
20666
20738
  return getSessionId();
20667
- case 2:
20668
- sessionId = _context.sent;
20669
- _context.next = 5;
20739
+ case 1:
20740
+ sessionId = _context.v;
20741
+ _context.n = 2;
20670
20742
  return outLogin({
20671
20743
  sessionId: sessionId
20672
20744
  });
20673
- case 5:
20745
+ case 2:
20674
20746
  // @ts-ignore
20675
20747
  if (BUILD_TYPE) {
20676
20748
  antd.message.success('退出登录成功');
@@ -20680,9 +20752,8 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
20680
20752
  } else {
20681
20753
  setLoginOutPath();
20682
20754
  }
20683
- case 6:
20684
- case "end":
20685
- return _context.stop();
20755
+ case 3:
20756
+ return _context.a(2);
20686
20757
  }
20687
20758
  }, _callee);
20688
20759
  }));
@@ -20769,18 +20840,15 @@ function getStoreByName(_x) {
20769
20840
  return _getStoreByName.apply(this, arguments);
20770
20841
  }
20771
20842
  function _getStoreByName() {
20772
- _getStoreByName = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
20773
- return _regeneratorRuntime().wrap(function _callee$(_context) {
20774
- while (1) switch (_context.prev = _context.next) {
20843
+ _getStoreByName = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(params) {
20844
+ return _regenerator().w(function (_context) {
20845
+ while (1) switch (_context.n) {
20775
20846
  case 0:
20776
- return _context.abrupt("return", requestUtil({
20847
+ return _context.a(2, requestUtil({
20777
20848
  url: '/store-house/orgViewNode/listNoPage',
20778
20849
  method: 'GET',
20779
20850
  params: _objectSpread2({}, params)
20780
20851
  }));
20781
- case 1:
20782
- case "end":
20783
- return _context.stop();
20784
20852
  }
20785
20853
  }, _callee);
20786
20854
  }));
@@ -20815,33 +20883,33 @@ var ChooseStore = function ChooseStore(props) {
20815
20883
  openSelect = _useState8[0],
20816
20884
  setOpenSelect = _useState8[1];
20817
20885
  var _useState9 = React$1.useState([]),
20818
- _useState10 = _slicedToArray(_useState9, 2),
20819
- options = _useState10[0],
20820
- setOptions = _useState10[1];
20821
- var _useState11 = React$1.useState([]),
20886
+ _useState0 = _slicedToArray(_useState9, 2),
20887
+ options = _useState0[0],
20888
+ setOptions = _useState0[1];
20889
+ var _useState1 = React$1.useState([]),
20890
+ _useState10 = _slicedToArray(_useState1, 2),
20891
+ rescouse = _useState10[0],
20892
+ setRescouse = _useState10[1];
20893
+ var _useState11 = React$1.useState(''),
20822
20894
  _useState12 = _slicedToArray(_useState11, 2),
20823
- rescouse = _useState12[0],
20824
- setRescouse = _useState12[1];
20825
- var _useState13 = React$1.useState(''),
20826
- _useState14 = _slicedToArray(_useState13, 2),
20827
- searchValue = _useState14[0],
20828
- setSearchValue = _useState14[1];
20829
- var _useState15 = React$1.useState([{
20895
+ searchValue = _useState12[0],
20896
+ setSearchValue = _useState12[1];
20897
+ var _useState13 = React$1.useState([{
20830
20898
  label: name,
20831
20899
  value: code
20832
20900
  }]),
20833
- _useState16 = _slicedToArray(_useState15, 2),
20834
- store = _useState16[0],
20835
- setStore = _useState16[1];
20901
+ _useState14 = _slicedToArray(_useState13, 2),
20902
+ store = _useState14[0],
20903
+ setStore = _useState14[1];
20836
20904
  function fetchUserList(_x, _x2) {
20837
20905
  return _fetchUserList.apply(this, arguments);
20838
20906
  }
20839
20907
  function _fetchUserList() {
20840
- _fetchUserList = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(storeName, init) {
20841
- return _regeneratorRuntime().wrap(function _callee3$(_context3) {
20842
- while (1) switch (_context3.prev = _context3.next) {
20908
+ _fetchUserList = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(storeName, init) {
20909
+ return _regenerator().w(function (_context3) {
20910
+ while (1) switch (_context3.n) {
20843
20911
  case 0:
20844
- return _context3.abrupt("return", getStoreByName({
20912
+ return _context3.a(2, getStoreByName({
20845
20913
  orgName: storeName ? storeName : undefined,
20846
20914
  platCompanyCode: init ? undefined : key,
20847
20915
  'qp-employeeCode-eq': employeeCode || 'EMP231011000002',
@@ -20860,9 +20928,6 @@ var ChooseStore = function ChooseStore(props) {
20860
20928
  };
20861
20929
  });
20862
20930
  }));
20863
- case 1:
20864
- case "end":
20865
- return _context3.stop();
20866
20931
  }
20867
20932
  }, _callee3);
20868
20933
  }));
@@ -20885,20 +20950,19 @@ var ChooseStore = function ChooseStore(props) {
20885
20950
  return debounce__default['default'](loadOptions, debounceTimeout);
20886
20951
  }, [debounceTimeout, key]);
20887
20952
  var changeInput = /*#__PURE__*/function () {
20888
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(str) {
20953
+ var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(str) {
20889
20954
  var res;
20890
- return _regeneratorRuntime().wrap(function _callee$(_context) {
20891
- while (1) switch (_context.prev = _context.next) {
20955
+ return _regenerator().w(function (_context) {
20956
+ while (1) switch (_context.n) {
20892
20957
  case 0:
20893
- _context.next = 2;
20958
+ _context.n = 1;
20894
20959
  return debounceFetcher(str);
20895
- case 2:
20896
- res = _context.sent;
20960
+ case 1:
20961
+ res = _context.v;
20897
20962
  setOptions(res);
20898
20963
  setRescouse(res);
20899
- case 5:
20900
- case "end":
20901
- return _context.stop();
20964
+ case 2:
20965
+ return _context.a(2);
20902
20966
  }
20903
20967
  }, _callee);
20904
20968
  }));
@@ -20907,15 +20971,15 @@ var ChooseStore = function ChooseStore(props) {
20907
20971
  };
20908
20972
  }();
20909
20973
  React$1.useEffect(function () {
20910
- _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
20974
+ _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
20911
20975
  var res;
20912
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
20913
- while (1) switch (_context2.prev = _context2.next) {
20976
+ return _regenerator().w(function (_context2) {
20977
+ while (1) switch (_context2.n) {
20914
20978
  case 0:
20915
- _context2.next = 2;
20979
+ _context2.n = 1;
20916
20980
  return fetchUserList(undefined, true);
20917
- case 2:
20918
- res = _context2.sent;
20981
+ case 1:
20982
+ res = _context2.v;
20919
20983
  res.map(function (item, indexNumber) {
20920
20984
  if (item.label === name) {
20921
20985
  setIndex(indexNumber);
@@ -20931,9 +20995,8 @@ var ChooseStore = function ChooseStore(props) {
20931
20995
  });
20932
20996
  setOptions(res);
20933
20997
  setRescouse(res);
20934
- case 6:
20935
- case "end":
20936
- return _context2.stop();
20998
+ case 2:
20999
+ return _context2.a(2);
20937
21000
  }
20938
21001
  }, _callee2);
20939
21002
  }))();
@@ -21982,25 +22045,25 @@ var DrawContent$1 = function DrawContent(_ref) {
21982
22045
  currentOneLevel = _useState8[0],
21983
22046
  setCurrentOneLevel = _useState8[1];
21984
22047
  var _useState9 = React$1.useState([]),
21985
- _useState10 = _slicedToArray(_useState9, 2),
21986
- SearhData = _useState10[0],
21987
- setSearchMenuData = _useState10[1];
21988
- var _useState11 = React$1.useState(600),
22048
+ _useState0 = _slicedToArray(_useState9, 2),
22049
+ SearhData = _useState0[0],
22050
+ setSearchMenuData = _useState0[1];
22051
+ var _useState1 = React$1.useState(600),
22052
+ _useState10 = _slicedToArray(_useState1, 2),
22053
+ rightMenuHeight = _useState10[0],
22054
+ setHeight = _useState10[1];
22055
+ var _useState11 = React$1.useState(900),
21989
22056
  _useState12 = _slicedToArray(_useState11, 2),
21990
- rightMenuHeight = _useState12[0],
21991
- setHeight = _useState12[1];
21992
- var _useState13 = React$1.useState(900),
22057
+ drawHeight = _useState12[0],
22058
+ setDrawHeight = _useState12[1];
22059
+ var _useState13 = React$1.useState(false),
21993
22060
  _useState14 = _slicedToArray(_useState13, 2),
21994
- drawHeight = _useState14[0],
21995
- setDrawHeight = _useState14[1];
22061
+ moreBtnShow = _useState14[0],
22062
+ setMoreBtnShow = _useState14[1];
21996
22063
  var _useState15 = React$1.useState(false),
21997
22064
  _useState16 = _slicedToArray(_useState15, 2),
21998
- moreBtnShow = _useState16[0],
21999
- setMoreBtnShow = _useState16[1];
22000
- var _useState17 = React$1.useState(false),
22001
- _useState18 = _slicedToArray(_useState17, 2),
22002
- showScroll = _useState18[0],
22003
- setShowScroll = _useState18[1];
22065
+ showScroll = _useState16[0],
22066
+ setShowScroll = _useState16[1];
22004
22067
  React$1.useEffect(function () {
22005
22068
  var _originRoutes$find;
22006
22069
  getMenuContentHeight();
@@ -23611,14 +23674,11 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
23611
23674
  },
23612
23675
  menu: {
23613
23676
  request: function () {
23614
- var _request = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
23615
- return _regeneratorRuntime().wrap(function _callee$(_context) {
23616
- while (1) switch (_context.prev = _context.next) {
23677
+ var _request = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
23678
+ return _regenerator().w(function (_context) {
23679
+ while (1) switch (_context.n) {
23617
23680
  case 0:
23618
- return _context.abrupt("return", JSON.parse(localStorage.getItem("customerMenu_".concat(itemPath, "_front")) || '[]'));
23619
- case 1:
23620
- case "end":
23621
- return _context.stop();
23681
+ return _context.a(2, JSON.parse(localStorage.getItem("customerMenu_".concat(itemPath, "_front")) || '[]'));
23622
23682
  }
23623
23683
  }, _callee);
23624
23684
  }));
@@ -24023,31 +24083,31 @@ var index$6 = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
24023
24083
  multiTableData = _useState8[0],
24024
24084
  setMmultiTableData = _useState8[1]; //多表头数据
24025
24085
  var _useState9 = React$1.useState(10),
24026
- _useState10 = _slicedToArray(_useState9, 2),
24027
- viewCount = _useState10[0],
24028
- setViewCount = _useState10[1]; //虚拟表格每次渲染数量
24086
+ _useState0 = _slicedToArray(_useState9, 2),
24087
+ viewCount = _useState0[0],
24088
+ setViewCount = _useState0[1]; //虚拟表格每次渲染数量
24029
24089
  var itemWidth = 100; // 表格每一项宽度
24030
- var _useState11 = React$1.useState((props === null || props === void 0 ? void 0 : props.colHeaderWidth) || 400),
24031
- _useState12 = _slicedToArray(_useState11, 2),
24032
- realColHeaderWidth = _useState12[0],
24033
- setLeftWidth = _useState12[1];
24090
+ var _useState1 = React$1.useState((props === null || props === void 0 ? void 0 : props.colHeaderWidth) || 400),
24091
+ _useState10 = _slicedToArray(_useState1, 2),
24092
+ realColHeaderWidth = _useState10[0],
24093
+ setLeftWidth = _useState10[1];
24034
24094
  var viewPort = React$1.useRef(null);
24035
24095
  var topScrollBar = React$1.useRef(null);
24036
24096
  var leftTableRef = React$1.useRef(null);
24037
24097
  //起始渲染item
24038
- var _useState13 = React$1.useState(0),
24039
- _useState14 = _slicedToArray(_useState13, 2),
24040
- startIndex = _useState14[0],
24041
- setStartIndex = _useState14[1];
24098
+ var _useState11 = React$1.useState(0),
24099
+ _useState12 = _slicedToArray(_useState11, 2),
24100
+ startIndex = _useState12[0],
24101
+ setStartIndex = _useState12[1];
24042
24102
  //结束渲染item
24043
24103
  var endIndex = React$1.useMemo(function () {
24044
24104
  return startIndex + viewCount;
24045
24105
  }, [startIndex, viewCount]);
24046
24106
  //表格偏移量
24047
- var _useState15 = React$1.useState(0),
24048
- _useState16 = _slicedToArray(_useState15, 2),
24049
- offsetWidth = _useState16[0],
24050
- setOffset = _useState16[1];
24107
+ var _useState13 = React$1.useState(0),
24108
+ _useState14 = _slicedToArray(_useState13, 2),
24109
+ offsetWidth = _useState14[0],
24110
+ setOffset = _useState14[1];
24051
24111
  React$1.useEffect(function () {
24052
24112
  setTimeout(function () {
24053
24113
  var realLeftTableWidth = leftTableRef.current.clientWidth;
@@ -31351,11 +31411,11 @@ var valueType = {
31351
31411
  };
31352
31412
 
31353
31413
  var getDynamicDict = /*#__PURE__*/function () {
31354
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
31355
- return _regeneratorRuntime().wrap(function _callee$(_context) {
31356
- while (1) switch (_context.prev = _context.next) {
31414
+ var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(dictionaryCode) {
31415
+ return _regenerator().w(function (_context) {
31416
+ while (1) switch (_context.n) {
31357
31417
  case 0:
31358
- _context.next = 2;
31418
+ _context.n = 1;
31359
31419
  return bssula.request({
31360
31420
  url: "/basic/dictDynamicItem/getDynamicData/".concat(dictionaryCode),
31361
31421
  converter: function converter(_ref2) {
@@ -31368,11 +31428,8 @@ var getDynamicDict = /*#__PURE__*/function () {
31368
31428
  });
31369
31429
  }
31370
31430
  });
31371
- case 2:
31372
- return _context.abrupt("return", _context.sent);
31373
- case 3:
31374
- case "end":
31375
- return _context.stop();
31431
+ case 1:
31432
+ return _context.a(2, _context.v);
31376
31433
  }
31377
31434
  }, _callee);
31378
31435
  }));
@@ -31419,12 +31476,12 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
31419
31476
  value: false
31420
31477
  }];
31421
31478
  var ref = React$1.useRef();
31422
- ahooks.useMount(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
31423
- var _ref$current, source;
31424
- return _regeneratorRuntime().wrap(function _callee$(_context) {
31425
- while (1) switch (_context.prev = _context.next) {
31479
+ ahooks.useMount(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
31480
+ var _ref$current, source, _t, _t2;
31481
+ return _regenerator().w(function (_context) {
31482
+ while (1) switch (_context.n) {
31426
31483
  case 0:
31427
- _context.next = 2;
31484
+ _context.n = 1;
31428
31485
  return setIsShowAndType(function (prev) {
31429
31486
  if (record.inputType === 20 || record.inputType === 30) {
31430
31487
  return {
@@ -31435,40 +31492,39 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
31435
31492
  }
31436
31493
  return prev;
31437
31494
  });
31438
- case 2:
31495
+ case 1:
31439
31496
  if (!record.dictionaryCode) {
31440
- _context.next = 17;
31497
+ _context.n = 7;
31441
31498
  break;
31442
31499
  }
31443
31500
  if (!(record.choiceType == 20)) {
31444
- _context.next = 7;
31501
+ _context.n = 2;
31445
31502
  break;
31446
31503
  }
31447
- _context.t0 = getDictionarySource(record.dictionaryCode);
31448
- _context.next = 15;
31504
+ _t = getDictionarySource(record.dictionaryCode);
31505
+ _context.n = 6;
31449
31506
  break;
31450
- case 7:
31507
+ case 2:
31451
31508
  if (!(record.choiceType == 30)) {
31452
- _context.next = 13;
31509
+ _context.n = 4;
31453
31510
  break;
31454
31511
  }
31455
- _context.next = 10;
31512
+ _context.n = 3;
31456
31513
  return getDynamicDict(record.dictionaryCode);
31457
- case 10:
31458
- _context.t1 = _context.sent;
31459
- _context.next = 14;
31514
+ case 3:
31515
+ _t2 = _context.v;
31516
+ _context.n = 5;
31460
31517
  break;
31461
- case 13:
31462
- _context.t1 = [];
31463
- case 14:
31464
- _context.t0 = _context.t1;
31465
- case 15:
31466
- source = _context.t0;
31518
+ case 4:
31519
+ _t2 = [];
31520
+ case 5:
31521
+ _t = _t2;
31522
+ case 6:
31523
+ source = _t;
31467
31524
  // @ts-ignore
31468
31525
  ref === null || ref === void 0 ? void 0 : (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.setFieldSource('defaultValue', source);
31469
- case 17:
31470
- case "end":
31471
- return _context.stop();
31526
+ case 7:
31527
+ return _context.a(2);
31472
31528
  }
31473
31529
  }, _callee);
31474
31530
  })));
@@ -31533,10 +31589,10 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
31533
31589
  source: {
31534
31590
  relates: ['dictionaryCode', 'dictionaryCode_dynamic', 'choiceType'],
31535
31591
  type: function () {
31536
- var _type = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
31592
+ var _type = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(_ref3) {
31537
31593
  var form, values, name, relates, source;
31538
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
31539
- while (1) switch (_context2.prev = _context2.next) {
31594
+ return _regenerator().w(function (_context2) {
31595
+ while (1) switch (_context2.n) {
31540
31596
  case 0:
31541
31597
  form = _ref3.form, values = _ref3.values, name = _ref3.name, relates = _ref3.relates;
31542
31598
  if (values[0]) {
@@ -31545,19 +31601,18 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
31545
31601
  form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], getDictionarySource(values[0]));
31546
31602
  }
31547
31603
  if (!values[1]) {
31548
- _context2.next = 9;
31604
+ _context2.n = 2;
31549
31605
  break;
31550
31606
  }
31551
- _context2.next = 5;
31607
+ _context2.n = 1;
31552
31608
  return getDynamicDict(record.dictionaryCode || values[1]);
31553
- case 5:
31554
- source = _context2.sent;
31609
+ case 1:
31610
+ source = _context2.v;
31555
31611
  form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
31556
31612
  form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
31557
31613
  form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], source);
31558
- case 9:
31559
- case "end":
31560
- return _context2.stop();
31614
+ case 2:
31615
+ return _context2.a(2);
31561
31616
  }
31562
31617
  }, _callee2);
31563
31618
  }));
@@ -32013,25 +32068,25 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
32013
32068
  source: {
32014
32069
  relates: ['choiceType', 'inputType'],
32015
32070
  type: function () {
32016
- var _type2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
32071
+ var _type2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(_ref0) {
32017
32072
  var values, name, form, source;
32018
- return _regeneratorRuntime().wrap(function _callee3$(_context3) {
32019
- while (1) switch (_context3.prev = _context3.next) {
32073
+ return _regenerator().w(function (_context3) {
32074
+ while (1) switch (_context3.n) {
32020
32075
  case 0:
32021
- values = _ref10.values, name = _ref10.name, form = _ref10.form;
32076
+ values = _ref0.values, name = _ref0.name, form = _ref0.form;
32022
32077
  if (values[1] === 40) {
32023
32078
  form === null || form === void 0 ? void 0 : form.setFieldValue(name, null);
32024
32079
  form.setFieldVisible(name, false);
32025
32080
  }
32026
32081
  if (!(values[0] === 30)) {
32027
- _context3.next = 10;
32082
+ _context3.n = 2;
32028
32083
  break;
32029
32084
  }
32030
- _context3.next = 5;
32085
+ _context3.n = 1;
32031
32086
  return bssula.request({
32032
32087
  url: '/basic/dictDynamicItem/queryList',
32033
- converter: function converter(_ref11) {
32034
- var data = _ref11.data;
32088
+ converter: function converter(_ref1) {
32089
+ var data = _ref1.data;
32035
32090
  return data === null || data === void 0 ? void 0 : data.map(function (d) {
32036
32091
  return {
32037
32092
  text: d.dictCode,
@@ -32040,17 +32095,16 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
32040
32095
  });
32041
32096
  }
32042
32097
  });
32043
- case 5:
32044
- source = _context3.sent;
32098
+ case 1:
32099
+ source = _context3.v;
32045
32100
  form === null || form === void 0 ? void 0 : form.setFieldSource(name, source);
32046
32101
  form.setFieldVisible(name, true);
32047
- _context3.next = 11;
32102
+ _context3.n = 3;
32048
32103
  break;
32049
- case 10:
32104
+ case 2:
32050
32105
  form.setFieldVisible(name, false);
32051
- case 11:
32052
- case "end":
32053
- return _context3.stop();
32106
+ case 3:
32107
+ return _context3.a(2);
32054
32108
  }
32055
32109
  }, _callee3);
32056
32110
  }));
@@ -32065,8 +32119,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
32065
32119
  name: 'enumeration',
32066
32120
  label: '维护自定义选项',
32067
32121
  field: {
32068
- type: function type(_ref12) {
32069
- var form = _ref12.form;
32122
+ type: function type(_ref10) {
32123
+ var form = _ref10.form;
32070
32124
  return /*#__PURE__*/React__default['default'].createElement(antd.Button, {
32071
32125
  type: 'link',
32072
32126
  onClick: function onClick() {
@@ -32092,10 +32146,10 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
32092
32146
  dependency: {
32093
32147
  source: {
32094
32148
  relates: ['choiceType'],
32095
- type: function type(_ref13) {
32096
- var values = _ref13.values,
32097
- name = _ref13.name,
32098
- form = _ref13.form;
32149
+ type: function type(_ref11) {
32150
+ var values = _ref11.values,
32151
+ name = _ref11.name,
32152
+ form = _ref11.form;
32099
32153
  if (values[0] === 10) {
32100
32154
  form.setFieldVisible(name, true);
32101
32155
  } else {
@@ -32111,10 +32165,10 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
32111
32165
  dependency: {
32112
32166
  visible: {
32113
32167
  relates: ['choiceType'],
32114
- type: function type(_ref14) {
32115
- var name = _ref14.name,
32116
- values = _ref14.values,
32117
- form = _ref14.form;
32168
+ type: function type(_ref12) {
32169
+ var name = _ref12.name,
32170
+ values = _ref12.values,
32171
+ form = _ref12.form;
32118
32172
  if (values[0] == 330) {
32119
32173
  form.setFieldVisible(name, true);
32120
32174
  } else {
@@ -32138,8 +32192,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
32138
32192
  params: {
32139
32193
  'qp-businessType-eq': record.businessType
32140
32194
  },
32141
- converter: function converter(_ref15) {
32142
- var data = _ref15.data;
32195
+ converter: function converter(_ref13) {
32196
+ var data = _ref13.data;
32143
32197
  return (data === null || data === void 0 ? void 0 : data.map(function (d) {
32144
32198
  return {
32145
32199
  text: d.name,
@@ -32179,8 +32233,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
32179
32233
  'qp-businessType-eq': record.businessType,
32180
32234
  'qp-status-eq': 1
32181
32235
  },
32182
- converter: function converter(_ref16) {
32183
- var data = _ref16.data;
32236
+ converter: function converter(_ref14) {
32237
+ var data = _ref14.data;
32184
32238
  return (data === null || data === void 0 ? void 0 : data.map(function (d) {
32185
32239
  var _d$code;
32186
32240
  return {
@@ -32208,8 +32262,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
32208
32262
  remoteSource: {
32209
32263
  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),
32210
32264
  method: 'get',
32211
- converter: function converter(_ref17) {
32212
- var data = _ref17.data;
32265
+ converter: function converter(_ref15) {
32266
+ var data = _ref15.data;
32213
32267
  if (lineDetail.moduleType == 1) {
32214
32268
  return (data === null || data === void 0 ? void 0 : data.map(function (d) {
32215
32269
  return {
@@ -32235,16 +32289,16 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
32235
32289
  width: 900,
32236
32290
  maskClosable: false,
32237
32291
  onOk: function () {
32238
- var _onOk = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
32292
+ var _onOk = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4() {
32239
32293
  var _ref$current4, _res$editableStatus;
32240
32294
  var res, _res$defaultValue;
32241
- return _regeneratorRuntime().wrap(function _callee4$(_context4) {
32242
- while (1) switch (_context4.prev = _context4.next) {
32295
+ return _regenerator().w(function (_context4) {
32296
+ while (1) switch (_context4.n) {
32243
32297
  case 0:
32244
- _context4.next = 2;
32298
+ _context4.n = 1;
32245
32299
  return ref === null || ref === void 0 ? void 0 : (_ref$current4 = ref.current) === null || _ref$current4 === void 0 ? void 0 : _ref$current4.validateFields();
32246
- case 2:
32247
- res = _context4.sent;
32300
+ case 1:
32301
+ res = _context4.v;
32248
32302
  res.editableStatus = (_res$editableStatus = res.editableStatus) === null || _res$editableStatus === void 0 ? void 0 : _res$editableStatus.join(',');
32249
32303
  res.fieldGroup = record.fieldGroup;
32250
32304
  res.businessType = record.businessType;
@@ -32271,7 +32325,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
32271
32325
  delete res.formula;
32272
32326
  delete res.showValue;
32273
32327
  if (!(mode === 'create')) {
32274
- _context4.next = 18;
32328
+ _context4.n = 2;
32275
32329
  break;
32276
32330
  }
32277
32331
  bssula.request({
@@ -32283,8 +32337,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
32283
32337
  onParentOk();
32284
32338
  }
32285
32339
  });
32286
- return _context4.abrupt("return");
32287
- case 18:
32340
+ return _context4.a(2);
32341
+ case 2:
32288
32342
  bssula.request({
32289
32343
  url: "/basic/flow/businessField/".concat(record.id),
32290
32344
  method: 'PATCH',
@@ -32294,9 +32348,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
32294
32348
  onParentOk();
32295
32349
  }
32296
32350
  });
32297
- case 19:
32298
- case "end":
32299
- return _context4.stop();
32351
+ case 3:
32352
+ return _context4.a(2);
32300
32353
  }
32301
32354
  }, _callee4);
32302
32355
  }));
@@ -32752,21 +32805,21 @@ var JsonQueryTable = /*#__PURE__*/React__default['default'].memo(function (props
32752
32805
  jsonEditorVal = _useState8[0],
32753
32806
  setJsonEditorVal = _useState8[1];
32754
32807
  var _useState9 = React$1.useState({}),
32755
- _useState10 = _slicedToArray(_useState9, 2),
32756
- moduleParams = _useState10[0],
32757
- setModuleParams = _useState10[1];
32758
- var _useState11 = React$1.useState('main'),
32808
+ _useState0 = _slicedToArray(_useState9, 2),
32809
+ moduleParams = _useState0[0],
32810
+ setModuleParams = _useState0[1];
32811
+ var _useState1 = React$1.useState('main'),
32812
+ _useState10 = _slicedToArray(_useState1, 2),
32813
+ activeKey = _useState10[0],
32814
+ setActiveKey = _useState10[1]; //默认详情页配置
32815
+ var _useState11 = React$1.useState({}),
32759
32816
  _useState12 = _slicedToArray(_useState11, 2),
32760
- activeKey = _useState12[0],
32761
- setActiveKey = _useState12[1]; //默认详情页配置
32762
- var _useState13 = React$1.useState({}),
32817
+ tablesConfigParams = _useState12[0],
32818
+ setTablesConfigParams = _useState12[1];
32819
+ var _useState13 = React$1.useState([]),
32763
32820
  _useState14 = _slicedToArray(_useState13, 2),
32764
- tablesConfigParams = _useState14[0],
32765
- setTablesConfigParams = _useState14[1];
32766
- var _useState15 = React$1.useState([]),
32767
- _useState16 = _slicedToArray(_useState15, 2),
32768
- tableJsonEditorValsArr = _useState16[0],
32769
- setTableJsonEditorValsArr = _useState16[1];
32821
+ tableJsonEditorValsArr = _useState14[0],
32822
+ setTableJsonEditorValsArr = _useState14[1];
32770
32823
  React$1.useEffect(function () {
32771
32824
  Promise.all([requestUtil.get("/basic/flow/businessFieldGroup/one?moduleType=2&layoutPoint=".concat(pageType))]).then(function (_ref2) {
32772
32825
  var _ref3 = _slicedToArray(_ref2, 1),
@@ -32797,7 +32850,7 @@ var JsonQueryTable = /*#__PURE__*/React__default['default'].memo(function (props
32797
32850
  });
32798
32851
  Promise.all(axiosArr).then(function (_ref5) {
32799
32852
  var _ref6 = _toArray(_ref5),
32800
- resArr = _ref6.slice(0);
32853
+ resArr = _arrayLikeToArray(_ref6).slice(0);
32801
32854
  var configParams = {};
32802
32855
  detailTablesSetting.map(function (item, index) {
32803
32856
  var _resArr$index;
@@ -33142,11 +33195,11 @@ function getMetaData(_x) {
33142
33195
 
33143
33196
  // 获取数据
33144
33197
  function _getMetaData() {
33145
- _getMetaData = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(id) {
33146
- return _regeneratorRuntime().wrap(function _callee$(_context) {
33147
- while (1) switch (_context.prev = _context.next) {
33198
+ _getMetaData = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(id) {
33199
+ return _regenerator().w(function (_context) {
33200
+ while (1) switch (_context.n) {
33148
33201
  case 0:
33149
- return _context.abrupt("return", new Promise(function (resolve, reject) {
33202
+ return _context.a(2, new Promise(function (resolve, reject) {
33150
33203
  umi.request('/basic/entityProperty/listNoPage', {
33151
33204
  params: {
33152
33205
  'qp-entityId-eq': id
@@ -33158,9 +33211,6 @@ function _getMetaData() {
33158
33211
  reject([]);
33159
33212
  });
33160
33213
  }));
33161
- case 1:
33162
- case "end":
33163
- return _context.stop();
33164
33214
  }
33165
33215
  }, _callee);
33166
33216
  }));
@@ -33364,11 +33414,11 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
33364
33414
  tableState = _useState4[0],
33365
33415
  setTableState = _useState4[1];
33366
33416
  var handleOpen = /*#__PURE__*/function () {
33367
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
33417
+ var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
33368
33418
  var _props$customSelector, _props$customSelector2, _props$ctx4, _props$value, _props$value$map, _props$ctx5, _props$ctx5$form, _props$selectProps;
33369
33419
  var requestConfigNew, metaDataId, metaData, realMetaData, columns, fields, initValue, _queryTableRef$curren, _queryTableRef$curren2, _queryTableRef$curren3;
33370
- return _regeneratorRuntime().wrap(function _callee$(_context) {
33371
- while (1) switch (_context.prev = _context.next) {
33420
+ return _regenerator().w(function (_context) {
33421
+ while (1) switch (_context.n) {
33372
33422
  case 0:
33373
33423
  requestConfigNew = assembleRequest(props.customSelectorConfig, {
33374
33424
  isSearchForm: props.isSearchForm,
@@ -33376,16 +33426,16 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
33376
33426
  searchFormData: searchFormData
33377
33427
  });
33378
33428
  if (requestConfigNew) {
33379
- _context.next = 3;
33429
+ _context.n = 1;
33380
33430
  break;
33381
33431
  }
33382
- return _context.abrupt("return");
33383
- case 3:
33432
+ return _context.a(2);
33433
+ case 1:
33384
33434
  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;
33385
- _context.next = 6;
33435
+ _context.n = 2;
33386
33436
  return getMetaData(metaDataId);
33387
- case 6:
33388
- metaData = _context.sent;
33437
+ case 2:
33438
+ metaData = _context.v;
33389
33439
  realMetaData = (metaData === null || metaData === void 0 ? void 0 : metaData.filter(function (item) {
33390
33440
  return (item === null || item === void 0 ? void 0 : item.inputType) != 1;
33391
33441
  })) || [];
@@ -33425,9 +33475,8 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
33425
33475
  // @ts-ignore
33426
33476
  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);
33427
33477
  }
33428
- case 14:
33429
- case "end":
33430
- return _context.stop();
33478
+ case 3:
33479
+ return _context.a(2);
33431
33480
  }
33432
33481
  }, _callee);
33433
33482
  }));
@@ -33530,7 +33579,7 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
33530
33579
  }, [requestConfig, tableState.columns]);
33531
33580
  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';
33532
33581
  var handleOk = function handleOk(rowData) {
33533
- var _props$selectProps2, _props$customSelector6, _props$customSelector7, _queryTableRef$curren13, _queryTableRef$curren14, _queryTableRef$curren15;
33582
+ var _props$selectProps2, _props$customSelector6, _props$customSelector7, _queryTableRef$curren11, _queryTableRef$curren12, _queryTableRef$curren13;
33534
33583
  var setSource = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
33535
33584
  //多选数据处理
33536
33585
  if (props === null || props === void 0 ? void 0 : (_props$selectProps2 = props.selectProps) === null || _props$selectProps2 === void 0 ? void 0 : _props$selectProps2.multipleForQuery) {
@@ -33541,9 +33590,9 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
33541
33590
  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()) || [];
33542
33591
  var realSelectedRows = selectedRows;
33543
33592
  if (!rowData && (selectedKesys === null || selectedKesys === void 0 ? void 0 : selectedKesys.length) !== (selectedRows === null || selectedRows === void 0 ? void 0 : selectedRows.length)) {
33544
- var _queryTableRef$curren10, _queryTableRef$curren11, _queryTableRef$curren12;
33593
+ var _queryTableRef$curren0, _queryTableRef$curren1, _queryTableRef$curren10;
33545
33594
  // @ts-ignore
33546
- 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()) || [];
33595
+ 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()) || [];
33547
33596
  realSelectedRows = dataSource === null || dataSource === void 0 ? void 0 : dataSource.filter(function (s) {
33548
33597
  return selectedKesys.includes(s[rowKey]);
33549
33598
  });
@@ -33576,10 +33625,10 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
33576
33625
  });
33577
33626
  }
33578
33627
  mappings.map(function (item) {
33579
- var _props$customSelector10, _props$customSelector11, _props$customSelector12, _props$customSelector13;
33580
- 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]) {
33581
- var _props$customSelector14, _props$customSelector15;
33582
- 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];
33628
+ var _props$customSelector0, _props$customSelector1, _props$customSelector10, _props$customSelector11;
33629
+ 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]) {
33630
+ var _props$customSelector12, _props$customSelector13;
33631
+ 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];
33583
33632
  }
33584
33633
  values[item.codeMappingTo] = rowData[item.codeMappingFrom];
33585
33634
  });
@@ -33634,10 +33683,10 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
33634
33683
  }
33635
33684
  props.onCancel();
33636
33685
  //@ts-ignore
33637
- 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();
33686
+ 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();
33638
33687
  };
33639
33688
  var config = React$1.useMemo(function () {
33640
- var _props$selectProps3, _props$ctx9, _props$value2, _props$ctx10, _props$ctx10$form;
33689
+ var _props$selectProps3, _props$ctx9, _props$value2, _props$ctx0, _props$ctx0$form;
33641
33690
  var returnConfig = {
33642
33691
  size: 'small',
33643
33692
  needPageHeader: false,
@@ -33646,7 +33695,7 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
33646
33695
  rowSelection: (props === null || props === void 0 ? void 0 : (_props$selectProps3 = props.selectProps) === null || _props$selectProps3 === void 0 ? void 0 : _props$selectProps3.multipleForQuery) && !isView ? {
33647
33696
  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) {
33648
33697
  return v.key || v;
33649
- })) || (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))
33698
+ })) || (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))
33650
33699
  } : false,
33651
33700
  remoteDataSource: remoteDataSource,
33652
33701
  fields: tableState.fields,
@@ -33654,8 +33703,8 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
33654
33703
  rowKey: rowKey,
33655
33704
  tableProps: !isView && {
33656
33705
  rowClassName: function rowClassName(record) {
33657
- var _props$ctx11, _props$value3, _props$ctx12, _props$ctx12$form;
33658
- 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' : '';
33706
+ var _props$ctx1, _props$value3, _props$ctx10, _props$ctx10$form;
33707
+ 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' : '';
33659
33708
  },
33660
33709
  onRow: function onRow(record) {
33661
33710
  return {
@@ -33700,10 +33749,10 @@ var CustomSelectorModal = /*#__PURE__*/React$1.forwardRef(function (props, ref)
33700
33749
  }, "\u63D0\u4EA4"), /*#__PURE__*/React__default['default'].createElement(antd.Button, {
33701
33750
  type: "default",
33702
33751
  onClick: function onClick() {
33703
- var _queryTableRef$curren16, _queryTableRef$curren17, _queryTableRef$curren18;
33752
+ var _queryTableRef$curren14, _queryTableRef$curren15, _queryTableRef$curren16;
33704
33753
  props.onCancel();
33705
33754
  //@ts-ignore
33706
- 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();
33755
+ 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();
33707
33756
  }
33708
33757
  }, "\u53D6\u6D88"))));
33709
33758
  });
@@ -33927,19 +33976,19 @@ var BsCascader = function BsCascader(_ref) {
33927
33976
  _useState2 = _slicedToArray(_useState, 2),
33928
33977
  handSource = _useState2[0],
33929
33978
  setHandSource = _useState2[1];
33930
- React$1.useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
33979
+ React$1.useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
33931
33980
  var resData, data;
33932
- return _regeneratorRuntime().wrap(function _callee$(_context) {
33933
- while (1) switch (_context.prev = _context.next) {
33981
+ return _regenerator().w(function (_context) {
33982
+ while (1) switch (_context.n) {
33934
33983
  case 0:
33935
33984
  if (!(!source && initRequestSource)) {
33936
- _context.next = 6;
33985
+ _context.n = 2;
33937
33986
  break;
33938
33987
  }
33939
- _context.next = 3;
33988
+ _context.n = 1;
33940
33989
  return initRequestSource();
33941
- case 3:
33942
- resData = _context.sent;
33990
+ case 1:
33991
+ resData = _context.v;
33943
33992
  data = (resData === null || resData === void 0 ? void 0 : resData.map(function (item) {
33944
33993
  return _objectSpread2(_objectSpread2({}, item), {}, {
33945
33994
  label: item.text,
@@ -33947,9 +33996,8 @@ var BsCascader = function BsCascader(_ref) {
33947
33996
  });
33948
33997
  })) || [];
33949
33998
  setHandSource(data);
33950
- case 6:
33951
- case "end":
33952
- return _context.stop();
33999
+ case 2:
34000
+ return _context.a(2);
33953
34001
  }
33954
34002
  }, _callee);
33955
34003
  })), []);
@@ -34079,20 +34127,17 @@ function getRegularThresholdRange(_x) {
34079
34127
  return _getRegularThresholdRange.apply(this, arguments);
34080
34128
  }
34081
34129
  function _getRegularThresholdRange() {
34082
- _getRegularThresholdRange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
34083
- return _regeneratorRuntime().wrap(function _callee$(_context) {
34084
- while (1) switch (_context.prev = _context.next) {
34130
+ _getRegularThresholdRange = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(params) {
34131
+ return _regenerator().w(function (_context) {
34132
+ while (1) switch (_context.n) {
34085
34133
  case 0:
34086
- return _context.abrupt("return", requestUtil({
34134
+ return _context.a(2, requestUtil({
34087
34135
  url: "/basic/regularThresholdRange/getVals/".concat(params.queryIdentify),
34088
34136
  method: 'POST',
34089
34137
  data: _objectSpread2(_objectSpread2({}, params), {}, {
34090
34138
  queryIdentify: undefined
34091
34139
  })
34092
34140
  }));
34093
- case 1:
34094
- case "end":
34095
- return _context.stop();
34096
34141
  }
34097
34142
  }, _callee);
34098
34143
  }));
@@ -34233,24 +34278,24 @@ var RuleField = /*#__PURE__*/function (_Component) {
34233
34278
  };
34234
34279
  //规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
34235
34280
  _this.getRegularThresholdRange = /*#__PURE__*/function () {
34236
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
34281
+ var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
34237
34282
  var thresholdQuery, extraRequestUrl, querParams, needQueryList, res;
34238
- return _regeneratorRuntime().wrap(function _callee$(_context) {
34239
- while (1) switch (_context.prev = _context.next) {
34283
+ return _regenerator().w(function (_context) {
34284
+ while (1) switch (_context.n) {
34240
34285
  case 0:
34241
34286
  if (queryIdentify) {
34242
- _context.next = 2;
34287
+ _context.n = 1;
34243
34288
  break;
34244
34289
  }
34245
- return _context.abrupt("return");
34246
- case 2:
34290
+ return _context.a(2);
34291
+ case 1:
34247
34292
  thresholdQuery = _this.state.thresholdQuery;
34248
34293
  extraRequestUrl = '';
34249
34294
  querParams = setParams(propertyCode, thresholdQuery);
34250
34295
  if (!queryIdentityInfo.find(function (item) {
34251
34296
  return item.identity == propertyCode;
34252
34297
  })) {
34253
- _context.next = 10;
34298
+ _context.n = 3;
34254
34299
  break;
34255
34300
  }
34256
34301
  //判断查询属性枚举时有没有必传参数,如果必传参数没有值则不调用查询接口
@@ -34264,15 +34309,15 @@ var RuleField = /*#__PURE__*/function (_Component) {
34264
34309
  if (!needQueryList.some(function (item) {
34265
34310
  return !querParams[item] || !querParams[item].length;
34266
34311
  })) {
34267
- _context.next = 9;
34312
+ _context.n = 2;
34268
34313
  break;
34269
34314
  }
34270
- return _context.abrupt("return");
34271
- case 9:
34315
+ return _context.a(2);
34316
+ case 2:
34272
34317
  extraRequestUrl = queryIdentityInfo.find(function (item) {
34273
34318
  return item.identity == propertyCode;
34274
34319
  }).requestUrl || '';
34275
- case 10:
34320
+ case 3:
34276
34321
  if (queryIdentifyType === 'dictCodeIdentify') {
34277
34322
  extraRequestUrl = "bscDictItem/selectDictItemsByDictCode"; // 字典接口
34278
34323
  querParams = {
@@ -34283,7 +34328,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
34283
34328
  // querParams = { dictCode: queryIdentify }
34284
34329
  }
34285
34330
  if (!extraRequestUrl) {
34286
- _context.next = 16;
34331
+ _context.n = 4;
34287
34332
  break;
34288
34333
  }
34289
34334
  if (queryIdentify == 'maintain_area_code') {
@@ -34322,43 +34367,42 @@ var RuleField = /*#__PURE__*/function (_Component) {
34322
34367
  return handleData;
34323
34368
  }
34324
34369
  });
34325
- _context.next = 29;
34370
+ _context.n = 8;
34326
34371
  break;
34327
- case 16:
34372
+ case 4:
34328
34373
  if (!(queryIdentifyType == 'objectPropertyListIdentify')) {
34329
- _context.next = 20;
34374
+ _context.n = 5;
34330
34375
  break;
34331
34376
  }
34332
34377
  _this.setState({
34333
34378
  thresholdList: queryIdentify
34334
34379
  });
34335
- _context.next = 29;
34380
+ _context.n = 8;
34336
34381
  break;
34337
- case 20:
34382
+ case 5:
34338
34383
  if (!(queryIdentifyType == 'objectPropertyCodeIdentify')) {
34339
- _context.next = 24;
34384
+ _context.n = 6;
34340
34385
  break;
34341
34386
  }
34342
34387
  // TODO待处理
34343
34388
  _this.setState({
34344
34389
  thresholdList: []
34345
34390
  });
34346
- _context.next = 29;
34391
+ _context.n = 8;
34347
34392
  break;
34348
- case 24:
34393
+ case 6:
34349
34394
  querParams.queryIdentify = queryIdentify;
34350
- _context.next = 27;
34395
+ _context.n = 7;
34351
34396
  return getRegularThresholdRange(querParams);
34352
- case 27:
34353
- res = _context.sent;
34397
+ case 7:
34398
+ res = _context.v;
34354
34399
  if (handleError(res)) {
34355
34400
  _this.setState({
34356
34401
  thresholdList: (res === null || res === void 0 ? void 0 : res.data) || []
34357
34402
  });
34358
34403
  }
34359
- case 29:
34360
- case "end":
34361
- return _context.stop();
34404
+ case 8:
34405
+ return _context.a(2);
34362
34406
  }
34363
34407
  }, _callee);
34364
34408
  }));
@@ -35190,11 +35234,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
35190
35234
  isAll: true,
35191
35235
  needNameAndCode: true,
35192
35236
  notChangeOnSelect: true,
35193
- initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
35194
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
35195
- while (1) switch (_context2.prev = _context2.next) {
35237
+ initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
35238
+ return _regenerator().w(function (_context2) {
35239
+ while (1) switch (_context2.n) {
35196
35240
  case 0:
35197
- _context2.next = 2;
35241
+ _context2.n = 1;
35198
35242
  return bssula.request({
35199
35243
  url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
35200
35244
  method: 'get',
@@ -35211,11 +35255,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
35211
35255
  return handleData;
35212
35256
  }
35213
35257
  });
35214
- case 2:
35215
- return _context2.abrupt("return", _context2.sent);
35216
- case 3:
35217
- case "end":
35218
- return _context2.stop();
35258
+ case 1:
35259
+ return _context2.a(2, _context2.v);
35219
35260
  }
35220
35261
  }, _callee2);
35221
35262
  })),
@@ -35239,11 +35280,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
35239
35280
  isAll: true,
35240
35281
  needNameAndCode: true,
35241
35282
  notChangeOnSelect: true,
35242
- initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
35243
- return _regeneratorRuntime().wrap(function _callee3$(_context3) {
35244
- while (1) switch (_context3.prev = _context3.next) {
35283
+ initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3() {
35284
+ return _regenerator().w(function (_context3) {
35285
+ while (1) switch (_context3.n) {
35245
35286
  case 0:
35246
- _context3.next = 2;
35287
+ _context3.n = 1;
35247
35288
  return bssula.request({
35248
35289
  url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
35249
35290
  method: 'get',
@@ -35260,11 +35301,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
35260
35301
  return handleData;
35261
35302
  }
35262
35303
  });
35263
- case 2:
35264
- return _context3.abrupt("return", _context3.sent);
35265
- case 3:
35266
- case "end":
35267
- return _context3.stop();
35304
+ case 1:
35305
+ return _context3.a(2, _context3.v);
35268
35306
  }
35269
35307
  }, _callee3);
35270
35308
  })),
@@ -35290,11 +35328,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
35290
35328
  isAll: true,
35291
35329
  needNameAndCode: true,
35292
35330
  notChangeOnSelect: true,
35293
- initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
35294
- return _regeneratorRuntime().wrap(function _callee4$(_context4) {
35295
- while (1) switch (_context4.prev = _context4.next) {
35331
+ initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4() {
35332
+ return _regenerator().w(function (_context4) {
35333
+ while (1) switch (_context4.n) {
35296
35334
  case 0:
35297
- _context4.next = 2;
35335
+ _context4.n = 1;
35298
35336
  return bssula.request({
35299
35337
  url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
35300
35338
  method: 'get',
@@ -35311,11 +35349,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
35311
35349
  return handleData;
35312
35350
  }
35313
35351
  });
35314
- case 2:
35315
- return _context4.abrupt("return", _context4.sent);
35316
- case 3:
35317
- case "end":
35318
- return _context4.stop();
35352
+ case 1:
35353
+ return _context4.a(2, _context4.v);
35319
35354
  }
35320
35355
  }, _callee4);
35321
35356
  })),
@@ -36002,8 +36037,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
36002
36037
  }
36003
36038
  }));
36004
36039
  } else {
36005
- var _values10;
36006
- var _currentValue9 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values10 = values) === null || _values10 === void 0 ? void 0 : _values10.map(function (s, vIndex) {
36040
+ var _values0;
36041
+ var _currentValue9 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values0 = values) === null || _values0 === void 0 ? void 0 : _values0.map(function (s, vIndex) {
36007
36042
  return {
36008
36043
  key: s,
36009
36044
  label: valueNames[vIndex],
@@ -36213,7 +36248,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
36213
36248
  }
36214
36249
  }
36215
36250
  // 配送方式选择器
36216
- if (dataChoiceBusinessType == 310) {
36251
+ if (dataChoiceBusinessType == 310 || dataChoiceBusinessType == 311) {
36217
36252
  if (INTERVAL_TYPE.indexOf(selectOperation) > -1) {
36218
36253
  return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
36219
36254
  selectBusinessType: "deliveryMode",
@@ -36227,9 +36262,14 @@ var RuleField = /*#__PURE__*/function (_Component) {
36227
36262
  disabled: disabled,
36228
36263
  labelInValue: true,
36229
36264
  value: values[0],
36230
- requestConfig: {
36265
+ requestConfig: _objectSpread2(_objectSpread2({}, dataChoiceBusinessType === 311 ? {
36266
+ otherParams: {
36267
+ // 配送方式只选择标准配送方式
36268
+ 'qp-recordChannnelCode-eq': 80
36269
+ }
36270
+ } : {}), {}, {
36231
36271
  filterInit: 'qp-code-in'
36232
- },
36272
+ }),
36233
36273
  onChange: function onChange(value) {
36234
36274
  if (dataInputBusinessType === 12) {
36235
36275
  values[0] = value.map(function (i) {
@@ -36259,9 +36299,14 @@ var RuleField = /*#__PURE__*/function (_Component) {
36259
36299
  disabled: disabled,
36260
36300
  labelInValue: true,
36261
36301
  value: values[1],
36262
- requestConfig: {
36302
+ requestConfig: _objectSpread2(_objectSpread2({}, dataChoiceBusinessType === 311 ? {
36303
+ otherParams: {
36304
+ // 配送方式只选择标准配送方式
36305
+ 'qp-recordChannnelCode-eq': 80
36306
+ }
36307
+ } : {}), {}, {
36263
36308
  filterInit: 'qp-code-in'
36264
- },
36309
+ }),
36265
36310
  onChange: function onChange(value) {
36266
36311
  if (dataInputBusinessType === 12) {
36267
36312
  values[1] = value.map(function (i) {
@@ -36281,8 +36326,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
36281
36326
  }
36282
36327
  }));
36283
36328
  } else {
36284
- var _values11;
36285
- var _currentValue10 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values11 = values) === null || _values11 === void 0 ? void 0 : _values11.map(function (s, vIndex) {
36329
+ var _values1;
36330
+ var _currentValue0 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values1 = values) === null || _values1 === void 0 ? void 0 : _values1.map(function (s, vIndex) {
36286
36331
  return {
36287
36332
  key: s,
36288
36333
  label: valueNames[vIndex],
@@ -36304,10 +36349,15 @@ var RuleField = /*#__PURE__*/function (_Component) {
36304
36349
  } : {}),
36305
36350
  disabled: disabled,
36306
36351
  labelInValue: true,
36307
- value: _currentValue10,
36308
- requestConfig: {
36352
+ value: _currentValue0,
36353
+ requestConfig: _objectSpread2(_objectSpread2({}, dataChoiceBusinessType === 311 ? {
36354
+ otherParams: {
36355
+ // 配送方式只选择标准配送方式
36356
+ 'qp-recordChannnelCode-eq': 80
36357
+ }
36358
+ } : {}), {}, {
36309
36359
  filterInit: 'qp-code-in'
36310
- },
36360
+ }),
36311
36361
  onChange: function onChange(value) {
36312
36362
  if (dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1) {
36313
36363
  values = value.map(function (i) {
@@ -36397,8 +36447,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
36397
36447
  }
36398
36448
  }));
36399
36449
  } else {
36400
- var _values12;
36401
- var _currentValue11 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values12 = values) === null || _values12 === void 0 ? void 0 : _values12.map(function (s, vIndex) {
36450
+ var _values10;
36451
+ var _currentValue1 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values10 = values) === null || _values10 === void 0 ? void 0 : _values10.map(function (s, vIndex) {
36402
36452
  return {
36403
36453
  key: s,
36404
36454
  label: valueNames[vIndex],
@@ -36420,7 +36470,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
36420
36470
  } : {}),
36421
36471
  disabled: disabled,
36422
36472
  labelInValue: true,
36423
- value: _currentValue11,
36473
+ value: _currentValue1,
36424
36474
  requestConfig: {
36425
36475
  filterInit: 'qp-code-in'
36426
36476
  },
@@ -36513,8 +36563,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
36513
36563
  }
36514
36564
  }));
36515
36565
  } else {
36516
- var _values13;
36517
- var _currentValue12 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values13 = values) === null || _values13 === void 0 ? void 0 : _values13.map(function (s, vIndex) {
36566
+ var _values11;
36567
+ var _currentValue10 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values11 = values) === null || _values11 === void 0 ? void 0 : _values11.map(function (s, vIndex) {
36518
36568
  return {
36519
36569
  key: s,
36520
36570
  label: valueNames[vIndex],
@@ -36536,7 +36586,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
36536
36586
  } : {}),
36537
36587
  disabled: disabled,
36538
36588
  labelInValue: true,
36539
- value: _currentValue12,
36589
+ value: _currentValue10,
36540
36590
  requestConfig: {
36541
36591
  filterInit: 'qp-brandCode-in'
36542
36592
  },
@@ -36727,8 +36777,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
36727
36777
  }
36728
36778
  }));
36729
36779
  } else {
36730
- var _values14;
36731
- var _currentValue13 = dataInputBusinessType === 12 ? ((_values14 = values) === null || _values14 === void 0 ? void 0 : _values14.map(function (s, vIndex) {
36780
+ var _values12;
36781
+ var _currentValue11 = dataInputBusinessType === 12 ? ((_values12 = values) === null || _values12 === void 0 ? void 0 : _values12.map(function (s, vIndex) {
36732
36782
  return {
36733
36783
  key: s,
36734
36784
  label: valueNames[vIndex]
@@ -36756,7 +36806,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
36756
36806
  isSearchForm: true,
36757
36807
  customSelectorConfig: (others === null || others === void 0 ? void 0 : others.customSelectorConfig) || {},
36758
36808
  disabled: disabled,
36759
- value: _currentValue13,
36809
+ value: _currentValue11,
36760
36810
  onChange: function onChange(value, sourceList) {
36761
36811
  if (dataInputBusinessType === 12) {
36762
36812
  var _value$map3, _sourceList$filter3;
@@ -37076,9 +37126,9 @@ var App$1 = function App(_ref) {
37076
37126
  UpdateState(res);
37077
37127
  };
37078
37128
  var _useState9 = React$1.useState(false),
37079
- _useState10 = _slicedToArray(_useState9, 2),
37080
- isModalVisible = _useState10[0],
37081
- setIsModalVisible = _useState10[1];
37129
+ _useState0 = _slicedToArray(_useState9, 2),
37130
+ isModalVisible = _useState0[0],
37131
+ setIsModalVisible = _useState0[1];
37082
37132
  var showModal = function showModal() {
37083
37133
  setIsModalVisible(true);
37084
37134
  };
@@ -37559,27 +37609,26 @@ function RenderCompItem(props) {
37559
37609
  dictData = _useState2[0],
37560
37610
  setDictData = _useState2[1];
37561
37611
  var getDictData = /*#__PURE__*/function () {
37562
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
37612
+ var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
37563
37613
  var _data$map;
37564
37614
  var data;
37565
- return _regeneratorRuntime().wrap(function _callee$(_context) {
37566
- while (1) switch (_context.prev = _context.next) {
37615
+ return _regenerator().w(function (_context) {
37616
+ while (1) switch (_context.n) {
37567
37617
  case 0:
37568
- _context.next = 2;
37618
+ _context.n = 1;
37569
37619
  return bssula.request({
37570
37620
  url: "/basic/bscDictItem/allItemList?qp-code-eq=".concat(ites.dictionaryCode)
37571
37621
  });
37572
- case 2:
37573
- data = _context.sent;
37622
+ case 1:
37623
+ data = _context.v;
37574
37624
  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) {
37575
37625
  return {
37576
37626
  text: item.dictItemName,
37577
37627
  value: item.dictItemCode
37578
37628
  };
37579
37629
  }));
37580
- case 4:
37581
- case "end":
37582
- return _context.stop();
37630
+ case 2:
37631
+ return _context.a(2);
37583
37632
  }
37584
37633
  }, _callee);
37585
37634
  }));
@@ -37820,11 +37869,11 @@ function RenderCompItem(props) {
37820
37869
  needNameAndCode: true,
37821
37870
  notChangeOnSelect: true,
37822
37871
  initRequestSource: function () {
37823
- var _initRequestSource = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
37824
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
37825
- while (1) switch (_context2.prev = _context2.next) {
37872
+ var _initRequestSource = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
37873
+ return _regenerator().w(function (_context2) {
37874
+ while (1) switch (_context2.n) {
37826
37875
  case 0:
37827
- _context2.next = 2;
37876
+ _context2.n = 1;
37828
37877
  return bssula.request({
37829
37878
  url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
37830
37879
  method: 'get',
@@ -37842,11 +37891,8 @@ function RenderCompItem(props) {
37842
37891
  return handleData;
37843
37892
  }
37844
37893
  });
37845
- case 2:
37846
- return _context2.abrupt("return", _context2.sent);
37847
- case 3:
37848
- case "end":
37849
- return _context2.stop();
37894
+ case 1:
37895
+ return _context2.a(2, _context2.v);
37850
37896
  }
37851
37897
  }, _callee2);
37852
37898
  }));
@@ -38011,7 +38057,7 @@ function RenderCompItem(props) {
38011
38057
  getPopupContainer: function getPopupContainer() {
38012
38058
  return document.body;
38013
38059
  }
38014
- })) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 310 && (/*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
38060
+ })) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && ((ites === null || ites === void 0 ? void 0 : ites.choiceType) === 310 || (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 311) && (/*#__PURE__*/React__default['default'].createElement(BusinessSearchSelect$1, {
38015
38061
  selectBusinessType: "deliveryMode",
38016
38062
  selectProps: _objectSpread2({
38017
38063
  style: styleCommon,
@@ -38023,9 +38069,14 @@ function RenderCompItem(props) {
38023
38069
  disabled: disabled,
38024
38070
  labelInValue: true,
38025
38071
  value: showValue(ites.code),
38026
- requestConfig: {
38072
+ requestConfig: _objectSpread2(_objectSpread2({}, (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 311 ? {
38073
+ otherParams: {
38074
+ // 配送方式只选择标准配送方式
38075
+ 'qp-recordChannnelCode-eq': 80
38076
+ }
38077
+ } : {}), {}, {
38027
38078
  filterInit: 'qp-code-in'
38028
- },
38079
+ }),
38029
38080
  onChange: function onChange(value) {
38030
38081
  handleEdit(ites.code, value);
38031
38082
  },
@@ -39897,13 +39948,13 @@ var BaseRule = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
39897
39948
  ruleTypeData = _useState8[0],
39898
39949
  setRuleTypeData = _useState8[1];
39899
39950
  var _useState9 = React$1.useState([]),
39900
- _useState10 = _slicedToArray(_useState9, 2),
39901
- ruleReturnConfig = _useState10[0],
39902
- setRuleReturnConfig = _useState10[1];
39903
- var _useState11 = React$1.useState({}),
39904
- _useState12 = _slicedToArray(_useState11, 2),
39905
- templateData = _useState12[0],
39906
- setTemplateData = _useState12[1];
39951
+ _useState0 = _slicedToArray(_useState9, 2),
39952
+ ruleReturnConfig = _useState0[0],
39953
+ setRuleReturnConfig = _useState0[1];
39954
+ var _useState1 = React$1.useState({}),
39955
+ _useState10 = _slicedToArray(_useState1, 2),
39956
+ templateData = _useState10[0],
39957
+ setTemplateData = _useState10[1];
39907
39958
  var loadRuleReturnConfig = function loadRuleReturnConfig(currentSceneId) {
39908
39959
  bssula.request({
39909
39960
  url: "/basic/ruleTemplate/".concat(currentSceneId),
@@ -40239,25 +40290,25 @@ var index$7 = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
40239
40290
  regularDataList = _useState8[0],
40240
40291
  setRegularDataList = _useState8[1];
40241
40292
  var _useState9 = React$1.useState([]),
40242
- _useState10 = _slicedToArray(_useState9, 2),
40243
- baseRuleDetailList = _useState10[0],
40244
- setBaseRuleDetailList = _useState10[1]; // 规则实例详情集合
40245
- var _useState11 = React$1.useState([]),
40293
+ _useState0 = _slicedToArray(_useState9, 2),
40294
+ baseRuleDetailList = _useState0[0],
40295
+ setBaseRuleDetailList = _useState0[1]; // 规则实例详情集合
40296
+ var _useState1 = React$1.useState([]),
40297
+ _useState10 = _slicedToArray(_useState1, 2),
40298
+ systemVariableList = _useState10[0],
40299
+ setSystemVariableList = _useState10[1];
40300
+ var _useState11 = React$1.useState(false),
40246
40301
  _useState12 = _slicedToArray(_useState11, 2),
40247
- systemVariableList = _useState12[0],
40248
- setSystemVariableList = _useState12[1];
40302
+ isGetDefRuleDataRes = _useState12[0],
40303
+ setIsGetDefRuleDataRes = _useState12[1]; // 为了在回显的时候辨别异步查询是否已完成,防止提前认为为新增设置了模板数据,导致再渲染编辑时候 输入框defaultValue不再渲染问题
40249
40304
  var _useState13 = React$1.useState(false),
40250
40305
  _useState14 = _slicedToArray(_useState13, 2),
40251
- isGetDefRuleDataRes = _useState14[0],
40252
- setIsGetDefRuleDataRes = _useState14[1]; // 为了在回显的时候辨别异步查询是否已完成,防止提前认为为新增设置了模板数据,导致再渲染编辑时候 输入框defaultValue不再渲染问题
40306
+ isGetRuleDataRes = _useState14[0],
40307
+ setIsGetRuleDataRes = _useState14[1];
40253
40308
  var _useState15 = React$1.useState(false),
40254
40309
  _useState16 = _slicedToArray(_useState15, 2),
40255
- isGetRuleDataRes = _useState16[0],
40256
- setIsGetRuleDataRes = _useState16[1];
40257
- var _useState17 = React$1.useState(false),
40258
- _useState18 = _slicedToArray(_useState17, 2),
40259
- groupOtherPriorityList = _useState18[0],
40260
- setGroupOtherPriorityList = _useState18[1];
40310
+ groupOtherPriorityList = _useState16[0],
40311
+ setGroupOtherPriorityList = _useState16[1];
40261
40312
  var baseRuleRef = React$1.useRef();
40262
40313
  var currentSceneName = (datail === null || datail === void 0 ? void 0 : datail.name) || '';
40263
40314
  // 查询规则组下所有规则实例