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

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 (65) hide show
  1. package/dist/components/Business/AddSelectBusiness/index.d.ts +4 -3
  2. package/dist/components/Business/BsLayouts/Components/AllFunc/drawContent.d.ts +2 -1
  3. package/dist/components/Business/BsLayouts/Components/ChooseStore/index.d.ts +2 -1
  4. package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.d.ts +1 -1
  5. package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/leftTree.d.ts +1 -1
  6. package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/rightTree.d.ts +2 -2
  7. package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/DrawContent.d.ts +2 -1
  8. package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/customMenuHeader.d.ts +2 -1
  9. package/dist/components/Business/BsLayouts/Components/CustomerMenu/index.d.ts +1 -1
  10. package/dist/components/Business/BsLayouts/Components/GlobalHeader/index.d.ts +2 -1
  11. package/dist/components/Business/BsLayouts/Components/RightContent/LoginModal.d.ts +2 -1
  12. package/dist/components/Business/BsLayouts/index.d.ts +1 -1
  13. package/dist/components/Business/BsSulaQueryTable/SearchItemSetting.d.ts +5 -5
  14. package/dist/components/Business/BsSulaQueryTable/index.d.ts +2 -1
  15. package/dist/components/Business/BsSulaQueryTable/setting.d.ts +6 -6
  16. package/dist/components/Business/BsSulaQueryTable/utils.d.ts +15 -14
  17. package/dist/components/Business/CommodityEntry/index.d.ts +2 -1
  18. package/dist/components/Business/CommonAlert/index.d.ts +2 -1
  19. package/dist/components/Business/CommonGuideWrapper/index.d.ts +3 -3
  20. package/dist/components/Business/DetailPageWrapper/index.d.ts +12 -11
  21. package/dist/components/Business/HomePageWrapper/index.d.ts +2 -1
  22. package/dist/components/Business/ItemPropertySelector/index.d.ts +2 -1
  23. package/dist/components/Business/JsonQueryTable/components/FieldsModifyModal.d.ts +2 -1
  24. package/dist/components/Business/JsonQueryTable/components/FieldsSettingsTable.d.ts +2 -1
  25. package/dist/components/Business/JsonQueryTable/components/Formula.d.ts +2 -1
  26. package/dist/components/Business/JsonQueryTable/components/MaintainOptions.d.ts +2 -1
  27. package/dist/components/Business/JsonQueryTable/drawer/index.d.ts +2 -1
  28. package/dist/components/Business/PropertyModal/index.d.ts +2 -1
  29. package/dist/components/Business/PropertyModal/propertyGroup.d.ts +1 -1
  30. package/dist/components/Business/SearchSelect/index.d.ts +1 -1
  31. package/dist/components/Business/StateFlow/index.d.ts +2 -1
  32. package/dist/components/Business/TreeSearchSelect/index.d.ts +1 -1
  33. package/dist/components/Business/columnSettingTable/columnSetting.d.ts +6 -6
  34. package/dist/components/Business/columnSettingTable/components/TableSumComponent.d.ts +2 -1
  35. package/dist/components/Business/columnSettingTable/index.d.ts +3 -3
  36. package/dist/components/Business/columnSettingTable/sulaSettingTable.d.ts +3 -3
  37. package/dist/components/Business/columnSettingTable/utils.d.ts +2 -1
  38. package/dist/components/Business/moreTreeTable/FixedScrollBar.d.ts +1 -1
  39. package/dist/components/Common/ParagraphCopier/index.d.ts +1 -1
  40. package/dist/components/Common/Section/index.d.ts +1 -1
  41. package/dist/components/Functional/AddSelect/index.d.ts +2 -1
  42. package/dist/components/Functional/AuthButton/index.d.ts +2 -1
  43. package/dist/components/Functional/DataImport/index.d.ts +3 -3
  44. package/dist/components/Functional/DataValidation/index.d.ts +4 -4
  45. package/dist/components/Functional/ExportFunctions/ExportIcon/index.d.ts +2 -1
  46. package/dist/components/Functional/QueryMutipleInput/index.d.ts +2 -1
  47. package/dist/components/Functional/QueryMutipleSelect/index.d.ts +2 -1
  48. package/dist/components/Functional/SearchSelect/index.d.ts +1 -1
  49. package/dist/components/Functional/SearchSelect/utils.d.ts +3 -2
  50. package/dist/components/Functional/TreeSearchSelect/index.d.ts +2 -1
  51. package/dist/components/Solution/RuleComponent/CustomPlugin/CustomSelector/CustomSelectorModal.d.ts +1 -1
  52. package/dist/components/Solution/RuleComponent/CustomPlugin/CustomSelector/index.d.ts +2 -1
  53. package/dist/components/Solution/RuleComponent/Formula.d.ts +2 -1
  54. package/dist/components/Solution/RuleComponent/InnerSelect.d.ts +2 -1
  55. package/dist/components/Solution/RuleComponent/RenderCompItem.d.ts +2 -1
  56. package/dist/components/Solution/RuleSetter/RuleInstance.d.ts +2 -1
  57. package/dist/components/Solution/RuleSetter/baseRule.d.ts +1 -1
  58. package/dist/components/Solution/RuleSetter/index.d.ts +1 -1
  59. package/dist/index.esm.js +1233 -773
  60. package/dist/index.js +1233 -773
  61. package/dist/plugin/TableColumnSetting/index.d.ts +5 -5
  62. package/dist/utils/TableUtils.d.ts +19 -18
  63. package/package.json +1 -1
  64. package/src/components/Business/SearchSelect/BusinessUtils.tsx +93 -2
  65. package/src/components/Functional/AddSelect/index.tsx +92 -0
package/dist/index.esm.js CHANGED
@@ -188,8 +188,8 @@ function _objectWithoutProperties(e, t) {
188
188
  r,
189
189
  i = _objectWithoutPropertiesLoose(e, t);
190
190
  if (Object.getOwnPropertySymbols) {
191
- var n = Object.getOwnPropertySymbols(e);
192
- for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
191
+ var s = Object.getOwnPropertySymbols(e);
192
+ for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
193
193
  }
194
194
  return i;
195
195
  }
@@ -197,7 +197,7 @@ function _objectWithoutPropertiesLoose(r, e) {
197
197
  if (null == r) return {};
198
198
  var t = {};
199
199
  for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
200
- if (-1 !== e.indexOf(n)) continue;
200
+ if (e.includes(n)) continue;
201
201
  t[n] = r[n];
202
202
  }
203
203
  return t;
@@ -207,115 +207,306 @@ function _possibleConstructorReturn(t, e) {
207
207
  if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
208
208
  return _assertThisInitialized(t);
209
209
  }
210
- function _regenerator() {
211
- /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
212
- var e,
213
- t,
214
- r = "function" == typeof Symbol ? Symbol : {},
215
- n = r.iterator || "@@iterator",
216
- o = r.toStringTag || "@@toStringTag";
217
- function i(r, n, o, i) {
218
- var c = n && n.prototype instanceof Generator ? n : Generator,
219
- u = Object.create(c.prototype);
220
- return _regeneratorDefine(u, "_invoke", function (r, n, o) {
221
- var i,
222
- c,
223
- u,
224
- f = 0,
225
- p = o || [],
226
- y = !1,
227
- G = {
228
- p: 0,
229
- n: 0,
230
- v: e,
231
- a: d,
232
- f: d.bind(e, 4),
233
- d: function (t, r) {
234
- return i = t, c = 0, u = e, G.n = r, a;
235
- }
236
- };
237
- function d(r, n) {
238
- for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) {
239
- var o,
240
- i = p[t],
241
- d = G.p,
242
- l = i[2];
243
- r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0));
244
- }
245
- if (o || r > 1) return a;
246
- throw y = !0, n;
247
- }
248
- return function (o, p, l) {
249
- if (f > 1) throw TypeError("Generator is already running");
250
- for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) {
251
- i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u);
252
- try {
253
- if (f = 2, i) {
254
- if (c || (o = "next"), t = i[o]) {
255
- if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object");
256
- if (!t.done) return t;
257
- u = t.value, c < 2 && (c = 0);
258
- } else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1);
259
- i = e;
260
- } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break;
261
- } catch (t) {
262
- i = e, c = 1, u = t;
263
- } finally {
264
- f = 1;
265
- }
266
- }
267
- return {
268
- value: t,
269
- done: y
270
- };
210
+ function _regeneratorRuntime() {
211
+ _regeneratorRuntime = function () {
212
+ return e;
213
+ };
214
+ var t,
215
+ e = {},
216
+ r = Object.prototype,
217
+ n = r.hasOwnProperty,
218
+ o = Object.defineProperty || function (t, e, r) {
219
+ t[e] = r.value;
220
+ },
221
+ i = "function" == typeof Symbol ? Symbol : {},
222
+ a = i.iterator || "@@iterator",
223
+ c = i.asyncIterator || "@@asyncIterator",
224
+ u = i.toStringTag || "@@toStringTag";
225
+ function define(t, e, r) {
226
+ return Object.defineProperty(t, e, {
227
+ value: r,
228
+ enumerable: !0,
229
+ configurable: !0,
230
+ writable: !0
231
+ }), t[e];
232
+ }
233
+ try {
234
+ define({}, "");
235
+ } catch (t) {
236
+ define = function (t, e, r) {
237
+ return t[e] = r;
238
+ };
239
+ }
240
+ function wrap(t, e, r, n) {
241
+ var i = e && e.prototype instanceof Generator ? e : Generator,
242
+ a = Object.create(i.prototype),
243
+ c = new Context(n || []);
244
+ return o(a, "_invoke", {
245
+ value: makeInvokeMethod(t, r, c)
246
+ }), a;
247
+ }
248
+ function tryCatch(t, e, r) {
249
+ try {
250
+ return {
251
+ type: "normal",
252
+ arg: t.call(e, r)
253
+ };
254
+ } catch (t) {
255
+ return {
256
+ type: "throw",
257
+ arg: t
271
258
  };
272
- }(r, o, i), !0), u;
259
+ }
273
260
  }
274
- var a = {};
261
+ e.wrap = wrap;
262
+ var h = "suspendedStart",
263
+ l = "suspendedYield",
264
+ f = "executing",
265
+ s = "completed",
266
+ y = {};
275
267
  function Generator() {}
276
268
  function GeneratorFunction() {}
277
269
  function GeneratorFunctionPrototype() {}
278
- t = Object.getPrototypeOf;
279
- var c = [][n] ? t(t([][n]())) : (_regeneratorDefine(t = {}, n, function () {
280
- return this;
281
- }), t),
282
- u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c);
283
- function f(e) {
284
- return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e;
285
- }
286
- return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine(u), _regeneratorDefine(u, o, "Generator"), _regeneratorDefine(u, n, function () {
270
+ var p = {};
271
+ define(p, a, function () {
287
272
  return this;
288
- }), _regeneratorDefine(u, "toString", function () {
289
- return "[object Generator]";
290
- }), (_regenerator = function () {
273
+ });
274
+ var d = Object.getPrototypeOf,
275
+ v = d && d(d(values([])));
276
+ v && v !== r && n.call(v, a) && (p = v);
277
+ var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
278
+ function defineIteratorMethods(t) {
279
+ ["next", "throw", "return"].forEach(function (e) {
280
+ define(t, e, function (t) {
281
+ return this._invoke(e, t);
282
+ });
283
+ });
284
+ }
285
+ function AsyncIterator(t, e) {
286
+ function invoke(r, o, i, a) {
287
+ var c = tryCatch(t[r], t, o);
288
+ if ("throw" !== c.type) {
289
+ var u = c.arg,
290
+ h = u.value;
291
+ return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
292
+ invoke("next", t, i, a);
293
+ }, function (t) {
294
+ invoke("throw", t, i, a);
295
+ }) : e.resolve(h).then(function (t) {
296
+ u.value = t, i(u);
297
+ }, function (t) {
298
+ return invoke("throw", t, i, a);
299
+ });
300
+ }
301
+ a(c.arg);
302
+ }
303
+ var r;
304
+ o(this, "_invoke", {
305
+ value: function (t, n) {
306
+ function callInvokeWithMethodAndArg() {
307
+ return new e(function (e, r) {
308
+ invoke(t, n, e, r);
309
+ });
310
+ }
311
+ return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
312
+ }
313
+ });
314
+ }
315
+ function makeInvokeMethod(e, r, n) {
316
+ var o = h;
317
+ return function (i, a) {
318
+ if (o === f) throw Error("Generator is already running");
319
+ if (o === s) {
320
+ if ("throw" === i) throw a;
321
+ return {
322
+ value: t,
323
+ done: !0
324
+ };
325
+ }
326
+ for (n.method = i, n.arg = a;;) {
327
+ var c = n.delegate;
328
+ if (c) {
329
+ var u = maybeInvokeDelegate(c, n);
330
+ if (u) {
331
+ if (u === y) continue;
332
+ return u;
333
+ }
334
+ }
335
+ if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
336
+ if (o === h) throw o = s, n.arg;
337
+ n.dispatchException(n.arg);
338
+ } else "return" === n.method && n.abrupt("return", n.arg);
339
+ o = f;
340
+ var p = tryCatch(e, r, n);
341
+ if ("normal" === p.type) {
342
+ if (o = n.done ? s : l, p.arg === y) continue;
343
+ return {
344
+ value: p.arg,
345
+ done: n.done
346
+ };
347
+ }
348
+ "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
349
+ }
350
+ };
351
+ }
352
+ function maybeInvokeDelegate(e, r) {
353
+ var n = r.method,
354
+ o = e.iterator[n];
355
+ if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
356
+ var i = tryCatch(o, e.iterator, r.arg);
357
+ if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
358
+ var a = i.arg;
359
+ return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
360
+ }
361
+ function pushTryEntry(t) {
362
+ var e = {
363
+ tryLoc: t[0]
364
+ };
365
+ 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
366
+ }
367
+ function resetTryEntry(t) {
368
+ var e = t.completion || {};
369
+ e.type = "normal", delete e.arg, t.completion = e;
370
+ }
371
+ function Context(t) {
372
+ this.tryEntries = [{
373
+ tryLoc: "root"
374
+ }], t.forEach(pushTryEntry, this), this.reset(!0);
375
+ }
376
+ function values(e) {
377
+ if (e || "" === e) {
378
+ var r = e[a];
379
+ if (r) return r.call(e);
380
+ if ("function" == typeof e.next) return e;
381
+ if (!isNaN(e.length)) {
382
+ var o = -1,
383
+ i = function next() {
384
+ for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
385
+ return next.value = t, next.done = !0, next;
386
+ };
387
+ return i.next = i;
388
+ }
389
+ }
390
+ throw new TypeError(typeof e + " is not iterable");
391
+ }
392
+ return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
393
+ value: GeneratorFunctionPrototype,
394
+ configurable: !0
395
+ }), o(GeneratorFunctionPrototype, "constructor", {
396
+ value: GeneratorFunction,
397
+ configurable: !0
398
+ }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
399
+ var e = "function" == typeof t && t.constructor;
400
+ return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
401
+ }, e.mark = function (t) {
402
+ return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
403
+ }, e.awrap = function (t) {
291
404
  return {
292
- w: i,
293
- m: f
405
+ __await: t
294
406
  };
295
- })();
296
- }
297
- function _regeneratorDefine(e, r, n, t) {
298
- var i = Object.defineProperty;
299
- try {
300
- i({}, "", {});
301
- } catch (e) {
302
- i = 0;
303
- }
304
- _regeneratorDefine = function (e, r, n, t) {
305
- if (r) i ? i(e, r, {
306
- value: n,
307
- enumerable: !t,
308
- configurable: !t,
309
- writable: !t
310
- }) : e[r] = n;else {
311
- function o(r, n) {
312
- _regeneratorDefine(e, r, function (e) {
313
- return this._invoke(r, n, e);
314
- });
407
+ }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
408
+ return this;
409
+ }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
410
+ void 0 === i && (i = Promise);
411
+ var a = new AsyncIterator(wrap(t, r, n, o), i);
412
+ return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
413
+ return t.done ? t.value : a.next();
414
+ });
415
+ }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
416
+ return this;
417
+ }), define(g, "toString", function () {
418
+ return "[object Generator]";
419
+ }), e.keys = function (t) {
420
+ var e = Object(t),
421
+ r = [];
422
+ for (var n in e) r.push(n);
423
+ return r.reverse(), function next() {
424
+ for (; r.length;) {
425
+ var t = r.pop();
426
+ if (t in e) return next.value = t, next.done = !1, next;
427
+ }
428
+ return next.done = !0, next;
429
+ };
430
+ }, e.values = values, Context.prototype = {
431
+ constructor: Context,
432
+ reset: function (e) {
433
+ if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
434
+ },
435
+ stop: function () {
436
+ this.done = !0;
437
+ var t = this.tryEntries[0].completion;
438
+ if ("throw" === t.type) throw t.arg;
439
+ return this.rval;
440
+ },
441
+ dispatchException: function (e) {
442
+ if (this.done) throw e;
443
+ var r = this;
444
+ function handle(n, o) {
445
+ return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
446
+ }
447
+ for (var o = this.tryEntries.length - 1; o >= 0; --o) {
448
+ var i = this.tryEntries[o],
449
+ a = i.completion;
450
+ if ("root" === i.tryLoc) return handle("end");
451
+ if (i.tryLoc <= this.prev) {
452
+ var c = n.call(i, "catchLoc"),
453
+ u = n.call(i, "finallyLoc");
454
+ if (c && u) {
455
+ if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
456
+ if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
457
+ } else if (c) {
458
+ if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
459
+ } else {
460
+ if (!u) throw Error("try statement without catch or finally");
461
+ if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
462
+ }
463
+ }
464
+ }
465
+ },
466
+ abrupt: function (t, e) {
467
+ for (var r = this.tryEntries.length - 1; r >= 0; --r) {
468
+ var o = this.tryEntries[r];
469
+ if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
470
+ var i = o;
471
+ break;
472
+ }
473
+ }
474
+ i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
475
+ var a = i ? i.completion : {};
476
+ return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
477
+ },
478
+ complete: function (t, e) {
479
+ if ("throw" === t.type) throw t.arg;
480
+ return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
481
+ },
482
+ finish: function (t) {
483
+ for (var e = this.tryEntries.length - 1; e >= 0; --e) {
484
+ var r = this.tryEntries[e];
485
+ if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
315
486
  }
316
- o("next", 0), o("throw", 1), o("return", 2);
487
+ },
488
+ catch: function (t) {
489
+ for (var e = this.tryEntries.length - 1; e >= 0; --e) {
490
+ var r = this.tryEntries[e];
491
+ if (r.tryLoc === t) {
492
+ var n = r.completion;
493
+ if ("throw" === n.type) {
494
+ var o = n.arg;
495
+ resetTryEntry(r);
496
+ }
497
+ return o;
498
+ }
499
+ }
500
+ throw Error("illegal catch attempt");
501
+ },
502
+ delegateYield: function (e, r, n) {
503
+ return this.delegate = {
504
+ iterator: values(e),
505
+ resultName: r,
506
+ nextLoc: n
507
+ }, "next" === this.method && (this.arg = t), y;
317
508
  }
318
- }, _regeneratorDefine(e, r, n, t);
509
+ }, e;
319
510
  }
320
511
  function _setPrototypeOf(t, e) {
321
512
  return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
@@ -1388,22 +1579,22 @@ var parseToServe = function parseToServe(outdata, revertChart) {
1388
1579
  // sheepMap是表头字段中英文映射
1389
1580
  // sheetCount:表的数量,默认一张
1390
1581
  var resolveFile = /*#__PURE__*/function () {
1391
- var _ref3 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(file) {
1582
+ var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(file) {
1392
1583
  var config,
1393
1584
  data,
1394
1585
  _args = arguments;
1395
- return _regenerator().w(function (_context) {
1396
- while (1) switch (_context.n) {
1586
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
1587
+ while (1) switch (_context.prev = _context.next) {
1397
1588
  case 0:
1398
1589
  config = _args.length > 1 && _args[1] !== undefined ? _args[1] : {
1399
1590
  sheetMap: [],
1400
1591
  sheetCount: 1
1401
1592
  };
1402
- _context.n = 1;
1593
+ _context.next = 3;
1403
1594
  return analyseExcelToByte(file);
1404
- case 1:
1405
- data = _context.v;
1406
- return _context.a(2, new Promise(function (resolve, reject) {
1595
+ case 3:
1596
+ data = _context.sent;
1597
+ return _context.abrupt("return", new Promise(function (resolve, reject) {
1407
1598
  var workbook = read(data, {
1408
1599
  type: 'binary'
1409
1600
  });
@@ -1415,6 +1606,9 @@ var resolveFile = /*#__PURE__*/function () {
1415
1606
  var outdata = parseToServe(sheetMapJsonList, config.sheetMap);
1416
1607
  resolve(outdata);
1417
1608
  }));
1609
+ case 5:
1610
+ case "end":
1611
+ return _context.stop();
1418
1612
  }
1419
1613
  }, _callee);
1420
1614
  }));
@@ -1424,40 +1618,41 @@ var resolveFile = /*#__PURE__*/function () {
1424
1618
  }();
1425
1619
  //读取文件
1426
1620
  var readerXlsxToList = /*#__PURE__*/function () {
1427
- var _ref4 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(file, fileList, uploadRef, done, otherInfo) {
1621
+ var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(file, fileList, uploadRef, done, otherInfo) {
1428
1622
  var _ref5, callback, sheetMap, nowFile, data2, data;
1429
- return _regenerator().w(function (_context2) {
1430
- while (1) switch (_context2.n) {
1623
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
1624
+ while (1) switch (_context2.prev = _context2.next) {
1431
1625
  case 0:
1432
1626
  _ref5 = otherInfo || {}, callback = _ref5.callback, sheetMap = _ref5.sheetMap;
1433
1627
  if (!(Array.isArray(fileList) && fileList.length > 0)) {
1434
- _context2.n = 3;
1628
+ _context2.next = 15;
1435
1629
  break;
1436
1630
  }
1437
1631
  nowFile = fileList[fileList.length - 1]; // 阻止了默认上传file没有originFileObj了 得从fileList中去取
1438
- _context2.n = 1;
1632
+ _context2.next = 5;
1439
1633
  return resolveFile(nowFile.originFileObj, {
1440
1634
  sheetMap: fieldMappingReverse(sheetMap),
1441
1635
  sheetCount: 1
1442
1636
  });
1443
- case 1:
1444
- data2 = _context2.v;
1637
+ case 5:
1638
+ data2 = _context2.sent;
1445
1639
  data = data2[0];
1446
1640
  if (data.length) {
1447
- _context2.n = 2;
1641
+ _context2.next = 10;
1448
1642
  break;
1449
1643
  }
1450
1644
  message$1.error("\u8BF7\u5148\u5F55\u5165\u6570\u636E\u518D\u5BFC\u5165");
1451
- return _context2.a(2);
1452
- case 2:
1645
+ return _context2.abrupt("return");
1646
+ case 10:
1453
1647
  if (callback) callback(data);
1454
1648
  !callback && message$1.success("\u5BFC\u5165\u6210\u529F");
1455
- return _context2.a(2, data);
1456
- case 3:
1649
+ return _context2.abrupt("return", data);
1650
+ case 15:
1457
1651
  message$1.error("\u8BF7\u9009\u62E9\u6587\u4EF6");
1458
- return _context2.a(2);
1459
- case 4:
1460
- return _context2.a(2);
1652
+ return _context2.abrupt("return");
1653
+ case 17:
1654
+ case "end":
1655
+ return _context2.stop();
1461
1656
  }
1462
1657
  }, _callee2);
1463
1658
  }));
@@ -2409,14 +2604,17 @@ var requestUtil = function requestUtil(_ref) {
2409
2604
  return request$1(url, parms).then(handleResponseData);
2410
2605
  };
2411
2606
  var handleResponseData = /*#__PURE__*/function () {
2412
- var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(response) {
2413
- return _regenerator().w(function (_context) {
2414
- while (1) switch (_context.n) {
2607
+ var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(response) {
2608
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
2609
+ while (1) switch (_context.prev = _context.next) {
2415
2610
  case 0:
2416
- return _context.a(2, Promise.resolve({
2611
+ return _context.abrupt("return", Promise.resolve({
2417
2612
  data: response,
2418
2613
  status: response.status
2419
2614
  }));
2615
+ case 1:
2616
+ case "end":
2617
+ return _context.stop();
2420
2618
  }
2421
2619
  }, _callee);
2422
2620
  }));
@@ -4559,27 +4757,27 @@ var QueryMutipleSearchSelect = function QueryMutipleSearchSelect(_ref) {
4559
4757
  popvalue = _useState8[0],
4560
4758
  setPopValue = _useState8[1];
4561
4759
  var _useState9 = useState([]),
4562
- _useState0 = _slicedToArray(_useState9, 2),
4563
- source = _useState0[0],
4564
- setSource = _useState0[1];
4760
+ _useState10 = _slicedToArray(_useState9, 2),
4761
+ source = _useState10[0],
4762
+ setSource = _useState10[1];
4565
4763
  var _useDebounceFn = useDebounceFn(function () {
4566
4764
  getData();
4567
4765
  }, {
4568
4766
  wait: 1000
4569
4767
  }),
4570
4768
  run = _useDebounceFn.run;
4571
- var _useState1 = useState(false),
4572
- _useState10 = _slicedToArray(_useState1, 2),
4573
- fetching = _useState10[0],
4574
- setFetching = _useState10[1];
4575
- var _useState11 = useState(''),
4769
+ var _useState11 = useState(false),
4576
4770
  _useState12 = _slicedToArray(_useState11, 2),
4577
- searchValue = _useState12[0],
4578
- setSearchValue = _useState12[1];
4579
- var _useState13 = useState(resultSourceKey),
4771
+ fetching = _useState12[0],
4772
+ setFetching = _useState12[1];
4773
+ var _useState13 = useState(''),
4580
4774
  _useState14 = _slicedToArray(_useState13, 2),
4581
- uniqueValue = _useState14[0],
4582
- setUniqueValue = _useState14[1];
4775
+ searchValue = _useState14[0],
4776
+ setSearchValue = _useState14[1];
4777
+ var _useState15 = useState(resultSourceKey),
4778
+ _useState16 = _slicedToArray(_useState15, 2),
4779
+ uniqueValue = _useState16[0],
4780
+ setUniqueValue = _useState16[1];
4583
4781
  useEffect(function () {
4584
4782
  setPopValue(value);
4585
4783
  onValueChange(value);
@@ -4996,21 +5194,21 @@ var PropertySelector = function PropertySelector(_ref) {
4996
5194
  notCommonProperty = _useState8[0],
4997
5195
  setNotCommonProperty = _useState8[1];
4998
5196
  var _useState9 = useState(false),
4999
- _useState0 = _slicedToArray(_useState9, 2),
5000
- visible = _useState0[0],
5001
- setVisible = _useState0[1];
5002
- var _useState1 = useState(false),
5003
- _useState10 = _slicedToArray(_useState1, 2),
5004
- showNotCommon = _useState10[0],
5005
- setShowNotCommon = _useState10[1]; // 是否展示非常用属性
5006
- var _useState11 = useState([]),
5197
+ _useState10 = _slicedToArray(_useState9, 2),
5198
+ visible = _useState10[0],
5199
+ setVisible = _useState10[1];
5200
+ var _useState11 = useState(false),
5007
5201
  _useState12 = _slicedToArray(_useState11, 2),
5008
- classifyOptionList = _useState12[0],
5009
- setClassifyOptionList = _useState12[1];
5010
- var _useState13 = useState('1'),
5202
+ showNotCommon = _useState12[0],
5203
+ setShowNotCommon = _useState12[1]; // 是否展示非常用属性
5204
+ var _useState13 = useState([]),
5011
5205
  _useState14 = _slicedToArray(_useState13, 2),
5012
- listKey = _useState14[0],
5013
- setListKey = _useState14[1];
5206
+ classifyOptionList = _useState14[0],
5207
+ setClassifyOptionList = _useState14[1];
5208
+ var _useState15 = useState('1'),
5209
+ _useState16 = _slicedToArray(_useState15, 2),
5210
+ listKey = _useState16[0],
5211
+ setListKey = _useState16[1];
5014
5212
  useEffect(function () {
5015
5213
  requestUtil({
5016
5214
  url: '/items/class/withProperty?pageSize=500&currentPage=1',
@@ -5389,29 +5587,29 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
5389
5587
  scrollPage = _useState8[0],
5390
5588
  setScrollPage = _useState8[1];
5391
5589
  var _useState9 = useState(0),
5392
- _useState0 = _slicedToArray(_useState9, 2),
5393
- itemsTotal = _useState0[0],
5394
- setItemsTotal = _useState0[1];
5395
- var _useState1 = useState(false),
5396
- _useState10 = _slicedToArray(_useState1, 2),
5397
- fetching = _useState10[0],
5398
- setFetching = _useState10[1];
5399
- var _useState11 = useState(''),
5590
+ _useState10 = _slicedToArray(_useState9, 2),
5591
+ itemsTotal = _useState10[0],
5592
+ setItemsTotal = _useState10[1];
5593
+ var _useState11 = useState(false),
5400
5594
  _useState12 = _slicedToArray(_useState11, 2),
5401
- searchValue = _useState12[0],
5402
- setSearchValue = _useState12[1];
5403
- var _useState13 = useState(false),
5595
+ fetching = _useState12[0],
5596
+ setFetching = _useState12[1];
5597
+ var _useState13 = useState(''),
5404
5598
  _useState14 = _slicedToArray(_useState13, 2),
5405
- isModalVisible = _useState14[0],
5406
- setIsModalVisible = _useState14[1];
5407
- var _useState15 = useState(initVal),
5599
+ searchValue = _useState14[0],
5600
+ setSearchValue = _useState14[1];
5601
+ var _useState15 = useState(false),
5408
5602
  _useState16 = _slicedToArray(_useState15, 2),
5409
- popvalue = _useState16[0],
5410
- setPopValue = _useState16[1];
5411
- var _useState17 = useState(resultSourceKey),
5603
+ isModalVisible = _useState16[0],
5604
+ setIsModalVisible = _useState16[1];
5605
+ var _useState17 = useState(initVal),
5412
5606
  _useState18 = _slicedToArray(_useState17, 2),
5413
- uniqueValue = _useState18[0],
5414
- setUniqueValue = _useState18[1];
5607
+ popvalue = _useState18[0],
5608
+ setPopValue = _useState18[1];
5609
+ var _useState19 = useState(resultSourceKey),
5610
+ _useState20 = _slicedToArray(_useState19, 2),
5611
+ uniqueValue = _useState20[0],
5612
+ setUniqueValue = _useState20[1];
5415
5613
  var _useDebounceFn = useDebounceFn(function (v) {
5416
5614
  // 优化搜索参数 支持传多个
5417
5615
  var searchParams = {};
@@ -5440,58 +5638,58 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
5440
5638
  var _Form$useForm = Form.useForm(),
5441
5639
  _Form$useForm2 = _slicedToArray(_Form$useForm, 1),
5442
5640
  form = _Form$useForm2[0];
5443
- var _useState19 = useState(true),
5444
- _useState20 = _slicedToArray(_useState19, 2),
5445
- collapsed = _useState20[0],
5446
- setCollapsed = _useState20[1];
5447
5641
  var _useState21 = useState(true),
5448
5642
  _useState22 = _slicedToArray(_useState21, 2),
5449
- caretLeftFlag = _useState22[0],
5450
- setCaretLeftFlag = _useState22[1];
5451
- var _useState23 = useState([]),
5643
+ collapsed = _useState22[0],
5644
+ setCollapsed = _useState22[1];
5645
+ var _useState23 = useState(true),
5452
5646
  _useState24 = _slicedToArray(_useState23, 2),
5453
- tableData = _useState24[0],
5454
- setTableData = _useState24[1];
5455
- var _useState25 = useState(tableInitPagination),
5647
+ caretLeftFlag = _useState24[0],
5648
+ setCaretLeftFlag = _useState24[1];
5649
+ var _useState25 = useState([]),
5456
5650
  _useState26 = _slicedToArray(_useState25, 2),
5457
- tablePagination = _useState26[0],
5458
- setTablePagination = _useState26[1];
5459
- var _useState27 = useState([]),
5651
+ tableData = _useState26[0],
5652
+ setTableData = _useState26[1];
5653
+ var _useState27 = useState(tableInitPagination),
5460
5654
  _useState28 = _slicedToArray(_useState27, 2),
5461
- selectedRowKeys = _useState28[0],
5462
- setSelectedRowKeys = _useState28[1];
5655
+ tablePagination = _useState28[0],
5656
+ setTablePagination = _useState28[1];
5463
5657
  var _useState29 = useState([]),
5464
5658
  _useState30 = _slicedToArray(_useState29, 2),
5465
- selectedRows = _useState30[0],
5466
- setSelectedRows = _useState30[1];
5467
- var _useState31 = useState(false),
5659
+ selectedRowKeys = _useState30[0],
5660
+ setSelectedRowKeys = _useState30[1];
5661
+ var _useState31 = useState([]),
5468
5662
  _useState32 = _slicedToArray(_useState31, 2),
5469
- checkedAll = _useState32[0],
5470
- setCheckedAll = _useState32[1];
5663
+ selectedRows = _useState32[0],
5664
+ setSelectedRows = _useState32[1];
5471
5665
  var _useState33 = useState(false),
5472
5666
  _useState34 = _slicedToArray(_useState33, 2),
5473
- indeterminate = _useState34[0],
5474
- setIndeterminate = _useState34[1];
5475
- var _useState35 = useState({}),
5667
+ checkedAll = _useState34[0],
5668
+ setCheckedAll = _useState34[1];
5669
+ var _useState35 = useState(false),
5476
5670
  _useState36 = _slicedToArray(_useState35, 2),
5477
- tableFormParams = _useState36[0],
5478
- setTableFormParams = _useState36[1];
5479
- var _useState37 = useState(false),
5671
+ indeterminate = _useState36[0],
5672
+ setIndeterminate = _useState36[1];
5673
+ var _useState37 = useState({}),
5480
5674
  _useState38 = _slicedToArray(_useState37, 2),
5481
- tooltipVisible = _useState38[0],
5482
- setTooltipVisible = _useState38[1];
5483
- var _useState39 = useState(handleTableColumns(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableColumns)),
5675
+ tableFormParams = _useState38[0],
5676
+ setTableFormParams = _useState38[1];
5677
+ var _useState39 = useState(false),
5484
5678
  _useState40 = _slicedToArray(_useState39, 2),
5485
- tableShowColumns = _useState40[0],
5486
- setTabletShowColumns = _useState40[1]; // 默认展示表头-modalTableProps?.tableColumns
5487
- var _useState41 = useState(false),
5679
+ tooltipVisible = _useState40[0],
5680
+ setTooltipVisible = _useState40[1];
5681
+ var _useState41 = useState(handleTableColumns(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableColumns)),
5488
5682
  _useState42 = _slicedToArray(_useState41, 2),
5489
- confirmLoading = _useState42[0],
5490
- setConfirmLoading = _useState42[1];
5683
+ tableShowColumns = _useState42[0],
5684
+ setTabletShowColumns = _useState42[1]; // 默认展示表头-modalTableProps?.tableColumns
5491
5685
  var _useState43 = useState(false),
5492
5686
  _useState44 = _slicedToArray(_useState43, 2),
5493
- modalSearched = _useState44[0],
5494
- setModalSearched = _useState44[1];
5687
+ confirmLoading = _useState44[0],
5688
+ setConfirmLoading = _useState44[1];
5689
+ var _useState45 = useState(false),
5690
+ _useState46 = _slicedToArray(_useState45, 2),
5691
+ modalSearched = _useState46[0],
5692
+ setModalSearched = _useState46[1];
5495
5693
  var setSelectDataSource = function setSelectDataSource(list, total) {
5496
5694
  setItems(list);
5497
5695
  setItemsTotal(total);
@@ -5961,7 +6159,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
5961
6159
  })) || [];
5962
6160
  var searchList = (modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.noEmptySearchField) ? list : list === null || list === void 0 ? void 0 : list.concat(addKong);
5963
6161
  return searchList.map(function (i, index) {
5964
- var _i$field, _i$field3, _i$field5, _i$field7, _i$field9, _i$field0, _i$field1, _i$field10, _i$field12, _i$field13;
6162
+ var _i$field, _i$field3, _i$field5, _i$field7, _i$field9, _i$field10, _i$field11, _i$field12, _i$field14, _i$field15;
5965
6163
  if ((i === null || i === void 0 ? void 0 : i.type) === 'kong') return /*#__PURE__*/React$1.createElement(Col, {
5966
6164
  span: ColSpan,
5967
6165
  key: i
@@ -6059,7 +6257,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
6059
6257
  disabled: setDisabled(i.name)
6060
6258
  }))));
6061
6259
  }
6062
- 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') {
6260
+ 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') {
6063
6261
  return /*#__PURE__*/React$1.createElement(Col, {
6064
6262
  span: ColSpan,
6065
6263
  key: i.name
@@ -6073,7 +6271,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
6073
6271
  }
6074
6272
  })));
6075
6273
  }
6076
- if ((i === null || i === void 0 ? void 0 : (_i$field1 = i.field) === null || _i$field1 === void 0 ? void 0 : _i$field1.type) === 'proppertySelector') {
6274
+ if ((i === null || i === void 0 ? void 0 : (_i$field11 = i.field) === null || _i$field11 === void 0 ? void 0 : _i$field11.type) === 'proppertySelector') {
6077
6275
  return /*#__PURE__*/React$1.createElement(Col, {
6078
6276
  span: ColSpan,
6079
6277
  key: i.name
@@ -6083,8 +6281,8 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
6083
6281
  key: i.name
6084
6282
  }, /*#__PURE__*/React$1.createElement(PropertySelector, null)));
6085
6283
  }
6086
- 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') {
6087
- var _i$field11;
6284
+ 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') {
6285
+ var _i$field13;
6088
6286
  return /*#__PURE__*/React$1.createElement(Col, {
6089
6287
  span: ColSpan,
6090
6288
  key: i.name
@@ -6097,9 +6295,9 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
6097
6295
  width: '100%'
6098
6296
  },
6099
6297
  placeholder: "\u8BF7\u9009\u62E9"
6100
- }, i === null || i === void 0 ? void 0 : (_i$field11 = i.field) === null || _i$field11 === void 0 ? void 0 : _i$field11.props))));
6298
+ }, i === null || i === void 0 ? void 0 : (_i$field13 = i.field) === null || _i$field13 === void 0 ? void 0 : _i$field13.props))));
6101
6299
  }
6102
- if ((i === null || i === void 0 ? void 0 : (_i$field12 = i.field) === null || _i$field12 === void 0 ? void 0 : _i$field12.type) === 'multipleQuerySearchSelect') {
6300
+ if ((i === null || i === void 0 ? void 0 : (_i$field14 = i.field) === null || _i$field14 === void 0 ? void 0 : _i$field14.type) === 'multipleQuerySearchSelect') {
6103
6301
  return /*#__PURE__*/React$1.createElement(Col, {
6104
6302
  span: ColSpan,
6105
6303
  key: i.name
@@ -6128,7 +6326,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
6128
6326
  placeholder: "\u8BF7\u8F93\u5165",
6129
6327
  allowClear: true,
6130
6328
  maxLength: 100
6131
- }, i === null || i === void 0 ? void 0 : (_i$field13 = i.field) === null || _i$field13 === void 0 ? void 0 : _i$field13.props), {}, {
6329
+ }, i === null || i === void 0 ? void 0 : (_i$field15 = i.field) === null || _i$field15 === void 0 ? void 0 : _i$field15.props), {}, {
6132
6330
  disabled: setDisabled(i.name)
6133
6331
  }))));
6134
6332
  });
@@ -7448,132 +7646,135 @@ var AddSelect = function AddSelect(props) {
7448
7646
  _Form$useForm2 = _slicedToArray(_Form$useForm, 1),
7449
7647
  form = _Form$useForm2[0];
7450
7648
  var _useState9 = useState(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableSearchForm),
7451
- _useState0 = _slicedToArray(_useState9, 2),
7452
- tableSearchForm = _useState0[0],
7453
- setTableSearchForm = _useState0[1];
7454
- var _useState1 = useState(true),
7455
- _useState10 = _slicedToArray(_useState1, 2),
7456
- caretLeftFlag = _useState10[0],
7457
- setCaretLeftFlag = _useState10[1];
7458
- var _useState11 = useState([]),
7649
+ _useState10 = _slicedToArray(_useState9, 2),
7650
+ tableSearchForm = _useState10[0],
7651
+ setTableSearchForm = _useState10[1];
7652
+ var _useState11 = useState(true),
7459
7653
  _useState12 = _slicedToArray(_useState11, 2),
7460
- tableData = _useState12[0],
7461
- setTableData = _useState12[1];
7462
- var _useState13 = useState(_objectSpread2({
7654
+ caretLeftFlag = _useState12[0],
7655
+ setCaretLeftFlag = _useState12[1];
7656
+ var _useState13 = useState([]),
7657
+ _useState14 = _slicedToArray(_useState13, 2),
7658
+ tableData = _useState14[0],
7659
+ setTableData = _useState14[1];
7660
+ var _useState15 = useState(_objectSpread2({
7463
7661
  total: 0,
7464
7662
  size: "small",
7465
7663
  current: 1,
7466
7664
  pageSize: tableInitPageSize
7467
7665
  }, modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.topTablePagination)),
7468
- _useState14 = _slicedToArray(_useState13, 2),
7469
- tablePagination = _useState14[0],
7470
- setTablePagination = _useState14[1];
7471
- var _useState15 = useState([]),
7472
7666
  _useState16 = _slicedToArray(_useState15, 2),
7473
- selectedRowKeys = _useState16[0],
7474
- setSelectedRowKeys = _useState16[1];
7475
- var _useState17 = useState({}),
7667
+ tablePagination = _useState16[0],
7668
+ setTablePagination = _useState16[1];
7669
+ var _useState17 = useState([]),
7476
7670
  _useState18 = _slicedToArray(_useState17, 2),
7477
- tableFormParams = _useState18[0],
7478
- setTableFormParams = _useState18[1];
7479
- var _useState19 = useState(false),
7671
+ selectedRowKeys = _useState18[0],
7672
+ setSelectedRowKeys = _useState18[1];
7673
+ var _useState19 = useState({}),
7480
7674
  _useState20 = _slicedToArray(_useState19, 2),
7481
- confirmLoading = _useState20[0],
7482
- setConfirmLoading = _useState20[1];
7675
+ tableFormParams = _useState20[0],
7676
+ setTableFormParams = _useState20[1];
7483
7677
  var _useState21 = useState(false),
7484
7678
  _useState22 = _slicedToArray(_useState21, 2),
7485
- confirmContinueLoading = _useState22[0],
7486
- setConfirmContinueLoading = _useState22[1];
7487
- var _useState23 = useState([]),
7679
+ confirmLoading = _useState22[0],
7680
+ setConfirmLoading = _useState22[1];
7681
+ var _useState23 = useState(false),
7488
7682
  _useState24 = _slicedToArray(_useState23, 2),
7489
- selectColumns = _useState24[0],
7490
- setSelectColumns = _useState24[1];
7683
+ confirmContinueLoading = _useState24[0],
7684
+ setConfirmContinueLoading = _useState24[1];
7491
7685
  var _useState25 = useState([]),
7492
7686
  _useState26 = _slicedToArray(_useState25, 2),
7493
- showColumns = _useState26[0],
7494
- setShowColumns = _useState26[1];
7687
+ selectColumns = _useState26[0],
7688
+ setSelectColumns = _useState26[1];
7495
7689
  var _useState27 = useState([]),
7496
7690
  _useState28 = _slicedToArray(_useState27, 2),
7497
- tableColumns = _useState28[0],
7498
- setTableColumns = _useState28[1];
7691
+ showColumns = _useState28[0],
7692
+ setShowColumns = _useState28[1];
7499
7693
  var _useState29 = useState([]),
7500
7694
  _useState30 = _slicedToArray(_useState29, 2),
7501
- showToChooseColumns = _useState30[0],
7502
- setShowToChooseColumns = _useState30[1];
7695
+ tableColumns = _useState30[0],
7696
+ setTableColumns = _useState30[1];
7697
+ var _useState31 = useState([]),
7698
+ _useState32 = _slicedToArray(_useState31, 2),
7699
+ showToChooseColumns = _useState32[0],
7700
+ setShowToChooseColumns = _useState32[1];
7503
7701
  var codeToChoose = tableCodeList[0] || initTableCode[businessType][0];
7504
7702
  var codeSelected = tableCodeList[1] || initTableCode[businessType][1];
7505
7703
  // FIXME: 特殊业务逻辑
7506
7704
  var checkSelectChange = /*#__PURE__*/function () {
7507
- var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
7508
- var result, _t;
7509
- return _regenerator().w(function (_context) {
7510
- while (1) switch (_context.n) {
7705
+ var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
7706
+ var result;
7707
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
7708
+ while (1) switch (_context.prev = _context.next) {
7511
7709
  case 0:
7512
7710
  if (!(bType == 'skc' && tList.some(function (i) {
7513
7711
  return i[recordKey] == recordItem[recordKey] && i[selectItem.dataIndex] == changeValue;
7514
7712
  }))) {
7515
- _context.n = 1;
7713
+ _context.next = 3;
7516
7714
  break;
7517
7715
  }
7518
7716
  message$1.warning('相同skc配码不可设置相同哦');
7519
- return _context.a(2, false);
7520
- case 1:
7717
+ return _context.abrupt("return", false);
7718
+ case 3:
7521
7719
  if (!(bType == 'spu')) {
7522
- _context.n = 9;
7720
+ _context.next = 26;
7523
7721
  break;
7524
7722
  }
7525
7723
  if (!(selectItem.dataIndex == 'colorName' && tList.some(function (i) {
7526
7724
  return i[recordKey] == recordItem[recordKey] && i.selectPropertyGroupCode == recordItem.selectPropertyGroupCode && i[selectItem.dataIndex] == changeValue;
7527
7725
  }))) {
7528
- _context.n = 2;
7726
+ _context.next = 7;
7529
7727
  break;
7530
7728
  }
7531
7729
  message$1.warning('相同商品相同配码颜色不可设置相同哦');
7532
- return _context.a(2, false);
7533
- case 2:
7730
+ return _context.abrupt("return", false);
7731
+ case 7:
7534
7732
  if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && !recordItem.colorName)) {
7535
- _context.n = 3;
7733
+ _context.next = 10;
7536
7734
  break;
7537
7735
  }
7538
7736
  message$1.warning('请先选择颜色!');
7539
- return _context.a(2, false);
7540
- case 3:
7737
+ return _context.abrupt("return", false);
7738
+ case 10:
7541
7739
  if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && tList.some(function (i) {
7542
7740
  return i[recordKey] == recordItem[recordKey] && i.colorName == recordItem.colorName && i[selectItem.dataIndex] == changeValue;
7543
7741
  }))) {
7544
- _context.n = 4;
7742
+ _context.next = 13;
7545
7743
  break;
7546
7744
  }
7547
7745
  message$1.warning('相同商品相同颜色配码不可设置相同哦');
7548
- return _context.a(2, false);
7549
- case 4:
7746
+ return _context.abrupt("return", false);
7747
+ case 13:
7550
7748
  if (!(selectItem.dataIndex == 'selectPropertyGroupCode')) {
7551
- _context.n = 9;
7749
+ _context.next = 26;
7552
7750
  break;
7553
7751
  }
7554
7752
  result = true;
7555
- _context.p = 5;
7556
- _context.n = 6;
7753
+ _context.prev = 15;
7754
+ _context.next = 18;
7557
7755
  return checkSpuMatchCode({
7558
7756
  skcCode: recordItem[recordKey],
7559
7757
  matchingCode: changeValue,
7560
7758
  ext1: recordItem.colorName
7561
7759
  });
7562
- case 6:
7563
- result = _context.v;
7760
+ case 18:
7761
+ result = _context.sent;
7564
7762
  result = true;
7565
- _context.n = 8;
7763
+ _context.next = 25;
7566
7764
  break;
7567
- case 7:
7568
- _context.p = 7;
7569
- _t = _context.v;
7570
- result = typeof _t == 'boolean' ? _t : false;
7571
- case 8:
7572
- return _context.a(2, result);
7573
- case 9:
7574
- return _context.a(2, true);
7575
- }
7576
- }, _callee, null, [[5, 7]]);
7765
+ case 22:
7766
+ _context.prev = 22;
7767
+ _context.t0 = _context["catch"](15);
7768
+ result = typeof _context.t0 == 'boolean' ? _context.t0 : false;
7769
+ case 25:
7770
+ return _context.abrupt("return", result);
7771
+ case 26:
7772
+ return _context.abrupt("return", true);
7773
+ case 27:
7774
+ case "end":
7775
+ return _context.stop();
7776
+ }
7777
+ }, _callee, null, [[15, 22]]);
7577
7778
  }));
7578
7779
  return function checkSelectChange(_x, _x2, _x3, _x4, _x5, _x6) {
7579
7780
  return _ref2.apply(this, arguments);
@@ -7651,6 +7852,116 @@ var AddSelect = function AddSelect(props) {
7651
7852
  acc[key] = typeof value === 'function' ? value === null || value === void 0 ? void 0 : value(record) : value;
7652
7853
  return acc;
7653
7854
  }, {});
7855
+ // 可输入非数字字符
7856
+ if (item.canInputString) {
7857
+ return /*#__PURE__*/React$1.createElement(InputNumber, _objectSpread2(_objectSpread2({
7858
+ min: 0,
7859
+ precision: 0,
7860
+ controls: false
7861
+ }, inputProps), {}, {
7862
+ value: text || '',
7863
+ keyboard: false,
7864
+ onPressEnter: function onPressEnter(e) {
7865
+ e.target.blur();
7866
+ },
7867
+ onBlur: function () {
7868
+ var _onBlur = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(e) {
7869
+ var value;
7870
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
7871
+ while (1) switch (_context2.prev = _context2.next) {
7872
+ case 0:
7873
+ value = e.target.value;
7874
+ record[item.dataIndex] = value;
7875
+ editRecord(record);
7876
+ case 3:
7877
+ case "end":
7878
+ return _context2.stop();
7879
+ }
7880
+ }, _callee2);
7881
+ }));
7882
+ function onBlur(_x7) {
7883
+ return _onBlur.apply(this, arguments);
7884
+ }
7885
+ return onBlur;
7886
+ }(),
7887
+ onKeyDown: function onKeyDown(e) {
7888
+ if (e.keyCode === 13 && e.ctrlKey) {
7889
+ var _document$getElementB;
7890
+ handleOk(true);
7891
+ (_document$getElementB = document.getElementById("first-query")) === null || _document$getElementB === void 0 ? void 0 : _document$getElementB.focus();
7892
+ }
7893
+ if (e.keyCode === 8 && e.ctrlKey) {
7894
+ var _e$nativeEvent$path$;
7895
+ message$1.success('删除当前行');
7896
+ e.stopPropagation();
7897
+ e.preventDefault();
7898
+ var dom = (_e$nativeEvent$path$ = e.nativeEvent.path[5].children[index + 2]) === null || _e$nativeEvent$path$ === void 0 ? void 0 : _e$nativeEvent$path$.getElementsByTagName('input')[currentIndex];
7899
+ if (dom) {
7900
+ dom.select();
7901
+ dom.focus();
7902
+ dom.scrollIntoView(false);
7903
+ }
7904
+ dom = null;
7905
+ deleteRecord(record);
7906
+ }
7907
+ if (e.keyCode === 37 && e.shiftKey) {
7908
+ var _e$nativeEvent$path$2;
7909
+ // 左滑动
7910
+ e.stopPropagation();
7911
+ e.preventDefault();
7912
+ var _dom = (_e$nativeEvent$path$2 = e.nativeEvent.path[5].children[index + 1]) === null || _e$nativeEvent$path$2 === void 0 ? void 0 : _e$nativeEvent$path$2.getElementsByTagName('input')[currentIndex - 1];
7913
+ if (_dom) {
7914
+ _dom.select();
7915
+ _dom.focus();
7916
+ _dom.scrollIntoView(false);
7917
+ }
7918
+ _dom = null;
7919
+ }
7920
+ if (e.keyCode === 39 && e.shiftKey) {
7921
+ var _e$nativeEvent$path$3;
7922
+ // 右滑
7923
+ e.stopPropagation();
7924
+ e.preventDefault();
7925
+ var _dom2 = (_e$nativeEvent$path$3 = e.nativeEvent.path[5].children[index + 1]) === null || _e$nativeEvent$path$3 === void 0 ? void 0 : _e$nativeEvent$path$3.getElementsByTagName('input')[currentIndex + 1];
7926
+ if (_dom2) {
7927
+ _dom2.select();
7928
+ _dom2.focus();
7929
+ _dom2.scrollIntoView(false);
7930
+ }
7931
+ _dom2 = null;
7932
+ }
7933
+ if (e.keyCode === 40) {
7934
+ var _e$nativeEvent$path$4;
7935
+ e.stopPropagation();
7936
+ e.preventDefault();
7937
+ var _dom3 = (_e$nativeEvent$path$4 = e.nativeEvent.path[5].children[index + 2]) === null || _e$nativeEvent$path$4 === void 0 ? void 0 : _e$nativeEvent$path$4.getElementsByTagName('input')[currentIndex];
7938
+ if (_dom3) {
7939
+ _dom3.select();
7940
+ _dom3.focus();
7941
+ _dom3.scrollIntoView(false);
7942
+ }
7943
+ _dom3 = null;
7944
+ } else if (e.keyCode === 38) {
7945
+ var _e$nativeEvent$path$5;
7946
+ e.stopPropagation();
7947
+ e.preventDefault();
7948
+ var dom1 = (_e$nativeEvent$path$5 = e.nativeEvent.path[5].children[index]) === null || _e$nativeEvent$path$5 === void 0 ? void 0 : _e$nativeEvent$path$5.getElementsByTagName('input')[currentIndex];
7949
+ if (dom1) {
7950
+ // dom1.value=""
7951
+ // dom1.setSelectionRange(100, 0);
7952
+ dom1.select();
7953
+ dom1.focus();
7954
+ dom1.scrollIntoViewIfNeeded(false);
7955
+ // dom1.value=record['count']
7956
+ }
7957
+ dom1 = null;
7958
+ } else if (e.keyCode === 9 && index === selectedRowKeys.length - 1 && currentIndex === inputLength - 1) {
7959
+ e.stopPropagation();
7960
+ e.preventDefault();
7961
+ }
7962
+ }
7963
+ }));
7964
+ }
7654
7965
  return /*#__PURE__*/React$1.createElement(InputNumber, _objectSpread2(_objectSpread2(_objectSpread2({}, inputProps), {}, {
7655
7966
  value: text || '',
7656
7967
  min: 0,
@@ -7668,16 +7979,16 @@ var AddSelect = function AddSelect(props) {
7668
7979
  // }}
7669
7980
  onKeyDown: function onKeyDown(e) {
7670
7981
  if (e.keyCode === 13 && e.ctrlKey) {
7671
- var _document$getElementB;
7982
+ var _document$getElementB2;
7672
7983
  handleOk(true);
7673
- (_document$getElementB = document.getElementById("first-query")) === null || _document$getElementB === void 0 ? void 0 : _document$getElementB.focus();
7984
+ (_document$getElementB2 = document.getElementById("first-query")) === null || _document$getElementB2 === void 0 ? void 0 : _document$getElementB2.focus();
7674
7985
  }
7675
7986
  if (e.keyCode === 8 && e.ctrlKey) {
7676
- var _e$nativeEvent$path$;
7987
+ var _e$nativeEvent$path$6;
7677
7988
  message$1.success('删除当前行');
7678
7989
  e.stopPropagation();
7679
7990
  e.preventDefault();
7680
- var dom = (_e$nativeEvent$path$ = e.nativeEvent.path[5].children[index + 2]) === null || _e$nativeEvent$path$ === void 0 ? void 0 : _e$nativeEvent$path$.getElementsByTagName('input')[currentIndex];
7991
+ var dom = (_e$nativeEvent$path$6 = e.nativeEvent.path[5].children[index + 2]) === null || _e$nativeEvent$path$6 === void 0 ? void 0 : _e$nativeEvent$path$6.getElementsByTagName('input')[currentIndex];
7681
7992
  if (dom) {
7682
7993
  dom.select();
7683
7994
  dom.focus();
@@ -7687,47 +7998,47 @@ var AddSelect = function AddSelect(props) {
7687
7998
  deleteRecord(record);
7688
7999
  }
7689
8000
  if (e.keyCode === 37 && e.shiftKey) {
7690
- var _e$nativeEvent$path$2;
8001
+ var _e$nativeEvent$path$7;
7691
8002
  // 左滑动
7692
8003
  e.stopPropagation();
7693
8004
  e.preventDefault();
7694
- var _dom = (_e$nativeEvent$path$2 = e.nativeEvent.path[5].children[index + 1]) === null || _e$nativeEvent$path$2 === void 0 ? void 0 : _e$nativeEvent$path$2.getElementsByTagName('input')[currentIndex - 1];
7695
- if (_dom) {
7696
- _dom.select();
7697
- _dom.focus();
7698
- _dom.scrollIntoView(false);
8005
+ var _dom4 = (_e$nativeEvent$path$7 = e.nativeEvent.path[5].children[index + 1]) === null || _e$nativeEvent$path$7 === void 0 ? void 0 : _e$nativeEvent$path$7.getElementsByTagName('input')[currentIndex - 1];
8006
+ if (_dom4) {
8007
+ _dom4.select();
8008
+ _dom4.focus();
8009
+ _dom4.scrollIntoView(false);
7699
8010
  }
7700
- _dom = null;
8011
+ _dom4 = null;
7701
8012
  }
7702
8013
  if (e.keyCode === 39 && e.shiftKey) {
7703
- var _e$nativeEvent$path$3;
8014
+ var _e$nativeEvent$path$8;
7704
8015
  // 右滑
7705
8016
  e.stopPropagation();
7706
8017
  e.preventDefault();
7707
- var _dom2 = (_e$nativeEvent$path$3 = e.nativeEvent.path[5].children[index + 1]) === null || _e$nativeEvent$path$3 === void 0 ? void 0 : _e$nativeEvent$path$3.getElementsByTagName('input')[currentIndex + 1];
7708
- if (_dom2) {
7709
- _dom2.select();
7710
- _dom2.focus();
7711
- _dom2.scrollIntoView(false);
8018
+ var _dom5 = (_e$nativeEvent$path$8 = e.nativeEvent.path[5].children[index + 1]) === null || _e$nativeEvent$path$8 === void 0 ? void 0 : _e$nativeEvent$path$8.getElementsByTagName('input')[currentIndex + 1];
8019
+ if (_dom5) {
8020
+ _dom5.select();
8021
+ _dom5.focus();
8022
+ _dom5.scrollIntoView(false);
7712
8023
  }
7713
- _dom2 = null;
8024
+ _dom5 = null;
7714
8025
  }
7715
8026
  if (e.keyCode === 40) {
7716
- var _e$nativeEvent$path$4;
8027
+ var _e$nativeEvent$path$9;
7717
8028
  e.stopPropagation();
7718
8029
  e.preventDefault();
7719
- var _dom3 = (_e$nativeEvent$path$4 = e.nativeEvent.path[5].children[index + 2]) === null || _e$nativeEvent$path$4 === void 0 ? void 0 : _e$nativeEvent$path$4.getElementsByTagName('input')[currentIndex];
7720
- if (_dom3) {
7721
- _dom3.select();
7722
- _dom3.focus();
7723
- _dom3.scrollIntoView(false);
8030
+ var _dom6 = (_e$nativeEvent$path$9 = e.nativeEvent.path[5].children[index + 2]) === null || _e$nativeEvent$path$9 === void 0 ? void 0 : _e$nativeEvent$path$9.getElementsByTagName('input')[currentIndex];
8031
+ if (_dom6) {
8032
+ _dom6.select();
8033
+ _dom6.focus();
8034
+ _dom6.scrollIntoView(false);
7724
8035
  }
7725
- _dom3 = null;
8036
+ _dom6 = null;
7726
8037
  } else if (e.keyCode === 38) {
7727
- var _e$nativeEvent$path$5;
8038
+ var _e$nativeEvent$path$10;
7728
8039
  e.stopPropagation();
7729
8040
  e.preventDefault();
7730
- var dom1 = (_e$nativeEvent$path$5 = e.nativeEvent.path[5].children[index]) === null || _e$nativeEvent$path$5 === void 0 ? void 0 : _e$nativeEvent$path$5.getElementsByTagName('input')[currentIndex];
8041
+ 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];
7731
8042
  if (dom1) {
7732
8043
  // dom1.value=""
7733
8044
  // dom1.setSelectionRange(100, 0);
@@ -7761,19 +8072,19 @@ var AddSelect = function AddSelect(props) {
7761
8072
  return /*#__PURE__*/React$1.createElement(Select, _objectSpread2(_objectSpread2({}, item.selectProps), {}, {
7762
8073
  value: text || null,
7763
8074
  onChange: function () {
7764
- var _onChange = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(value) {
7765
- var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules, _t2;
7766
- return _regenerator().w(function (_context2) {
7767
- while (1) switch (_context2.n) {
8075
+ var _onChange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(value) {
8076
+ var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules;
8077
+ return _regeneratorRuntime().wrap(function _callee3$(_context3) {
8078
+ while (1) switch (_context3.prev = _context3.next) {
7768
8079
  case 0:
7769
8080
  dataSourceSelectItem = (dataSourceList === null || dataSourceList === void 0 ? void 0 : dataSourceList.find(function (d) {
7770
8081
  return d[selectKey] == value;
7771
8082
  })) || {};
7772
8083
  if (!(item === null || item === void 0 ? void 0 : item.selectChangeCallback)) {
7773
- _context2.n = 2;
8084
+ _context3.next = 6;
7774
8085
  break;
7775
8086
  }
7776
- _context2.n = 1;
8087
+ _context3.next = 4;
7777
8088
  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, {
7778
8089
  record: record,
7779
8090
  index: index,
@@ -7783,10 +8094,10 @@ var AddSelect = function AddSelect(props) {
7783
8094
  dataSourceSelectItem: dataSourceSelectItem,
7784
8095
  editRecord: editRecord
7785
8096
  });
7786
- case 1:
7787
- _context2.n = 10;
8097
+ case 4:
8098
+ _context3.next = 25;
7788
8099
  break;
7789
- case 2:
8100
+ case 6:
7790
8101
  // 更新当前行数据函数
7791
8102
  changeValue = function changeValue(v, dSSItem) {
7792
8103
  var _item$dataSourceSelec;
@@ -7799,12 +8110,12 @@ var AddSelect = function AddSelect(props) {
7799
8110
  }
7800
8111
  }; // 处理校验,默认不校验
7801
8112
  isCheckPass = true;
7802
- _context2.p = 3;
8113
+ _context3.prev = 8;
7803
8114
  if (!(item === null || item === void 0 ? void 0 : item.selectCheckCallback)) {
7804
- _context2.n = 5;
8115
+ _context3.next = 15;
7805
8116
  break;
7806
8117
  }
7807
- _context2.n = 4;
8118
+ _context3.next = 12;
7808
8119
  return item === null || item === void 0 ? void 0 : item.selectCheckCallback(popvalue, {
7809
8120
  record: record,
7810
8121
  index: index,
@@ -7813,23 +8124,23 @@ var AddSelect = function AddSelect(props) {
7813
8124
  changeValue: value,
7814
8125
  dataSourceSelectItem: dataSourceSelectItem
7815
8126
  });
7816
- case 4:
7817
- isCheckPass = _context2.v;
7818
- _context2.n = 7;
8127
+ case 12:
8128
+ isCheckPass = _context3.sent;
8129
+ _context3.next = 19;
7819
8130
  break;
7820
- case 5:
7821
- _context2.n = 6;
8131
+ case 15:
8132
+ _context3.next = 17;
7822
8133
  return checkSelectChange(businessType, popvalue, mappingValueField, record, item, value);
7823
- case 6:
7824
- isConformToTheRules = _context2.v;
8134
+ case 17:
8135
+ isConformToTheRules = _context3.sent;
7825
8136
  isCheckPass = !isConformToTheRules;
7826
- case 7:
7827
- _context2.n = 9;
8137
+ case 19:
8138
+ _context3.next = 23;
7828
8139
  break;
7829
- case 8:
7830
- _context2.p = 8;
7831
- _t2 = _context2.v;
7832
- case 9:
8140
+ case 21:
8141
+ _context3.prev = 21;
8142
+ _context3.t0 = _context3["catch"](8);
8143
+ case 23:
7833
8144
  if (isCheckPass) {
7834
8145
  changeValue(value, dataSourceSelectItem);
7835
8146
  } else {
@@ -7837,12 +8148,13 @@ var AddSelect = function AddSelect(props) {
7837
8148
  }
7838
8149
  // 更新已选表格函数
7839
8150
  editRecord(record);
7840
- case 10:
7841
- return _context2.a(2);
8151
+ case 25:
8152
+ case "end":
8153
+ return _context3.stop();
7842
8154
  }
7843
- }, _callee2, null, [[3, 8]]);
8155
+ }, _callee3, null, [[8, 21]]);
7844
8156
  }));
7845
- function onChange(_x7) {
8157
+ function onChange(_x8) {
7846
8158
  return _onChange.apply(this, arguments);
7847
8159
  }
7848
8160
  return onChange;
@@ -8102,8 +8414,8 @@ var AddSelect = function AddSelect(props) {
8102
8414
  }
8103
8415
  }
8104
8416
  setTimeout(function () {
8105
- var _document$getElementB2;
8106
- (_document$getElementB2 = document.getElementById("first-query")) === null || _document$getElementB2 === void 0 ? void 0 : _document$getElementB2.focus();
8417
+ var _document$getElementB3;
8418
+ (_document$getElementB3 = document.getElementById("first-query")) === null || _document$getElementB3 === void 0 ? void 0 : _document$getElementB3.focus();
8107
8419
  }, 50);
8108
8420
  };
8109
8421
  // 将格式化完的数据回显到 表格中
@@ -8133,7 +8445,7 @@ var AddSelect = function AddSelect(props) {
8133
8445
  handleLoading(isContinue, true);
8134
8446
  onSaveCallback(popvalue).then(function (res) {
8135
8447
  {
8136
- var _Object$keys2, _document$getElementB3;
8448
+ var _Object$keys2, _document$getElementB4;
8137
8449
  // 成功信息可以在调用处处理 即resolve({messageSuccessBackInfo: { needThrowSuccess: false } })、resolve({messageSuccessBackInfo: { needThrowSuccess: true, successMessage: '已保存' } })
8138
8450
  var initSuccessMessage = '保存成功';
8139
8451
  var rmsbi = (res === null || res === void 0 ? void 0 : res.messageSuccessBackInfo) || {};
@@ -8143,7 +8455,7 @@ var AddSelect = function AddSelect(props) {
8143
8455
  message$1.success(initSuccessMessage);
8144
8456
  }
8145
8457
  deleteSelectRows();
8146
- (_document$getElementB3 = document.getElementById('first-query')) === null || _document$getElementB3 === void 0 ? void 0 : _document$getElementB3.focus();
8458
+ (_document$getElementB4 = document.getElementById('first-query')) === null || _document$getElementB4 === void 0 ? void 0 : _document$getElementB4.focus();
8147
8459
  !isContinue && handleCancel();
8148
8460
  }
8149
8461
  handleLoading(isContinue, false);
@@ -9231,29 +9543,29 @@ var BillEntry = function BillEntry(_ref3) {
9231
9543
  dataIndex: 'propertyNameAndValue'
9232
9544
  }];
9233
9545
  var _useState9 = useState(false),
9234
- _useState0 = _slicedToArray(_useState9, 2),
9235
- isModalVisible = _useState0[0],
9236
- setIsModalVisible = _useState0[1];
9237
- var _useState1 = useState([{
9546
+ _useState10 = _slicedToArray(_useState9, 2),
9547
+ isModalVisible = _useState10[0],
9548
+ setIsModalVisible = _useState10[1];
9549
+ var _useState11 = useState([{
9238
9550
  hovered: false
9239
9551
  }]),
9240
- _useState10 = _slicedToArray(_useState1, 2),
9241
- data = _useState10[0],
9242
- setData = _useState10[1];
9552
+ _useState12 = _slicedToArray(_useState11, 2),
9553
+ data = _useState12[0],
9554
+ setData = _useState12[1];
9243
9555
  var tableRef = useRef(null);
9244
9556
  var codeSelected = tableCode;
9245
- var _useState11 = useState(false),
9246
- _useState12 = _slicedToArray(_useState11, 2),
9247
- loading = _useState12[0],
9248
- setLoading = _useState12[1];
9249
- var _useState13 = useState([]),
9557
+ var _useState13 = useState(false),
9250
9558
  _useState14 = _slicedToArray(_useState13, 2),
9251
- selectColumns = _useState14[0],
9252
- setSelectColumns = _useState14[1];
9559
+ loading = _useState14[0],
9560
+ setLoading = _useState14[1];
9253
9561
  var _useState15 = useState([]),
9254
9562
  _useState16 = _slicedToArray(_useState15, 2),
9255
- showColumns = _useState16[0],
9256
- setShowColumns = _useState16[1];
9563
+ selectColumns = _useState16[0],
9564
+ setSelectColumns = _useState16[1];
9565
+ var _useState17 = useState([]),
9566
+ _useState18 = _slicedToArray(_useState17, 2),
9567
+ showColumns = _useState18[0],
9568
+ setShowColumns = _useState18[1];
9257
9569
  useEffect(function () {
9258
9570
  setSelectColumns([].concat(_toConsumableArray(columns.map(function (item) {
9259
9571
  var inputLength = columns.filter(function (item) {
@@ -9369,42 +9681,42 @@ var BillEntry = function BillEntry(_ref3) {
9369
9681
  });
9370
9682
  };
9371
9683
  var handleSubmit = /*#__PURE__*/function () {
9372
- var _ref4 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
9684
+ var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
9373
9685
  var canEntryObject, _canEntryObject$error, messageInfo;
9374
- return _regenerator().w(function (_context) {
9375
- while (1) switch (_context.n) {
9686
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
9687
+ while (1) switch (_context.prev = _context.next) {
9376
9688
  case 0:
9377
9689
  if (data === null || data === void 0 ? void 0 : data.length) {
9378
- _context.n = 1;
9690
+ _context.next = 3;
9379
9691
  break;
9380
9692
  }
9381
9693
  message$1.warning('至少录入一条数据');
9382
- return _context.a(2);
9383
- case 1:
9694
+ return _context.abrupt("return");
9695
+ case 3:
9384
9696
  if (data === null || data === void 0 ? void 0 : data.every(function (d) {
9385
9697
  return d.skuCode && d.name;
9386
9698
  })) {
9387
- _context.n = 2;
9699
+ _context.next = 6;
9388
9700
  break;
9389
9701
  }
9390
9702
  message$1.warning('录入商品不存在');
9391
- return _context.a(2);
9392
- case 2:
9703
+ return _context.abrupt("return");
9704
+ case 6:
9393
9705
  if (data === null || data === void 0 ? void 0 : data.every(function (d) {
9394
9706
  return d.count;
9395
9707
  })) {
9396
- _context.n = 3;
9708
+ _context.next = 9;
9397
9709
  break;
9398
9710
  }
9399
9711
  message$1.warning('请填写商品数量!');
9400
- return _context.a(2);
9401
- case 3:
9402
- _context.n = 4;
9712
+ return _context.abrupt("return");
9713
+ case 9:
9714
+ _context.next = 11;
9403
9715
  return isSkuCanEntry(data);
9404
- case 4:
9405
- canEntryObject = _context.v;
9716
+ case 11:
9717
+ canEntryObject = _context.sent;
9406
9718
  if (!((canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.flag) === false)) {
9407
- _context.n = 5;
9719
+ _context.next = 16;
9408
9720
  break;
9409
9721
  }
9410
9722
  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) {
@@ -9414,8 +9726,8 @@ var BillEntry = function BillEntry(_ref3) {
9414
9726
  content: messageInfo,
9415
9727
  duration: 6
9416
9728
  });
9417
- return _context.a(2);
9418
- case 5:
9729
+ return _context.abrupt("return");
9730
+ case 16:
9419
9731
  setLoading(true);
9420
9732
  onSaveCallback(data).then(function (res) {
9421
9733
  {
@@ -9433,8 +9745,9 @@ var BillEntry = function BillEntry(_ref3) {
9433
9745
  message$1.error(Error);
9434
9746
  setLoading(false);
9435
9747
  });
9436
- case 6:
9437
- return _context.a(2);
9748
+ case 18:
9749
+ case "end":
9750
+ return _context.stop();
9438
9751
  }
9439
9752
  }, _callee);
9440
9753
  }));
@@ -11010,6 +11323,26 @@ function commonFun(type, prefixUrl, parentProps) {
11010
11323
  }, (requestConfigProp === null || requestConfigProp === void 0 ? void 0 : requestConfigProp.addOtherParams) || {}),
11011
11324
  sourceName: 'warehouseIds'
11012
11325
  }, requestConfigProp);
11326
+ var _queryHeaderParams7 = getQueryHeadersList({
11327
+ querySelectHeadersList: querySelectHeadersList,
11328
+ extralHeaders: extralHeaders
11329
+ });
11330
+ Promise.all([loadSelectSource$1("/channel-manage/channelInfo/tree", {
11331
+ 'qp-status-eq': 10,
11332
+ 'qp-isMain-eq': 1,
11333
+ 'qp-type-in': '1,2'
11334
+ }, getQueryHeadersItem(_queryHeaderParams7, 'qp-orgCode-in')), loadSelectSource$1("/channel-manage/tagNode/getTree/10", {
11335
+ 'qp-status-eq': 1
11336
+ }, getQueryHeadersItem(_queryHeaderParams7, 'qp-orgCode-in'))]).then(function (x) {
11337
+ var channelDisabledJude = function channelDisabledJude(data) {
11338
+ return data['parentCode'] === '0';
11339
+ }; // 所属销售渠道 树节点不能点判断
11340
+ var areaDisabledJude = function areaDisabledJude(data) {
11341
+ return data['parent'] === '0';
11342
+ }; // 所属营销区域 树节点不能点判断
11343
+ formatTreeDataSource(x, 0, 4, tableSearchForm, ['code', 'name'], 'channelInfoSon', channelDisabledJude);
11344
+ formatTreeDataSource(x, 1, 5, tableSearchForm, ['code', 'name'], 'children', areaDisabledJude);
11345
+ });
11013
11346
  tableSearchForm = [{
11014
11347
  name: 'realWarehouseName*multiInput',
11015
11348
  label: '逻辑仓名称',
@@ -11033,6 +11366,70 @@ function commonFun(type, prefixUrl, parentProps) {
11033
11366
  },
11034
11367
  label: '管理大区',
11035
11368
  initialSource: getDictionarySource$1('BUSINESS_belongArea')
11369
+ }, {
11370
+ name: 'qp-channelCode-in',
11371
+ type: 'treeSelect',
11372
+ label: '销售渠道',
11373
+ field: {
11374
+ type: 'treeSelect',
11375
+ props: {
11376
+ multiple: true,
11377
+ treeData: [],
11378
+ treeCheckable: false,
11379
+ notFoundContent: '暂无数据',
11380
+ allowClear: true,
11381
+ showSearch: true,
11382
+ showArrow: true,
11383
+ maxTagCount: 1,
11384
+ optionFilterProp: 'children',
11385
+ filterOption: function filterOption(input, option) {
11386
+ return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
11387
+ },
11388
+ showCheckedStrategy: 'TreeSelect.SHOW_ALL'
11389
+ }
11390
+ }
11391
+ }, {
11392
+ name: 'qp-refCode-in',
11393
+ type: 'treeSelect',
11394
+ label: '营销区域',
11395
+ field: {
11396
+ type: 'treeSelect',
11397
+ props: {
11398
+ multiple: true,
11399
+ treeData: [],
11400
+ treeCheckable: false,
11401
+ notFoundContent: '暂无数据',
11402
+ allowClear: true,
11403
+ showSearch: true,
11404
+ showArrow: true,
11405
+ maxTagCount: 1,
11406
+ optionFilterProp: 'children',
11407
+ filterOption: function filterOption(input, option) {
11408
+ return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
11409
+ },
11410
+ showCheckedStrategy: 'TreeSelect.SHOW_ALL'
11411
+ }
11412
+ }
11413
+ }, {
11414
+ name: 'qp-type-in',
11415
+ type: 'select',
11416
+ label: '店铺性质',
11417
+ field: {
11418
+ type: 'select',
11419
+ props: {
11420
+ mode: 'multiple',
11421
+ notFoundContent: '暂无数据',
11422
+ allowClear: true,
11423
+ showSearch: true,
11424
+ showArrow: true,
11425
+ maxTagCount: 1,
11426
+ optionFilterProp: 'children',
11427
+ filterOption: function filterOption(input, option) {
11428
+ return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
11429
+ }
11430
+ }
11431
+ },
11432
+ initialSource: getDictionarySource$1('BUSINESS_StoreType')
11036
11433
  }].concat(_toConsumableArray((modalTableBusProps === null || modalTableBusProps === void 0 ? void 0 : modalTableBusProps.needStatusSearch) ? [{
11037
11434
  name: 'qp-isEnable-eq',
11038
11435
  type: 'select',
@@ -11061,10 +11458,28 @@ function commonFun(type, prefixUrl, parentProps) {
11061
11458
  render: function render(text) {
11062
11459
  return getDictionaryTextByValue$1('SC00004', text);
11063
11460
  }
11461
+ }, {
11462
+ title: '所属销售渠道',
11463
+ dataIndex: 'channelName',
11464
+ defaultSort: 4,
11465
+ width: 100
11466
+ }, {
11467
+ title: '营销区域',
11468
+ dataIndex: 'commonRelationAreaName',
11469
+ defaultSort: 5,
11470
+ width: 100
11471
+ }, {
11472
+ title: '店铺性质',
11473
+ dataIndex: 'type',
11474
+ defaultSort: 6,
11475
+ render: function render(text) {
11476
+ return getDictionaryTextByValue$1('BUSINESS_StoreType', text);
11477
+ },
11478
+ width: 80
11064
11479
  }].concat(_toConsumableArray((modalTableBusProps === null || modalTableBusProps === void 0 ? void 0 : modalTableBusProps.needStatusSearch) ? [{
11065
11480
  title: '状态',
11066
11481
  dataIndex: 'isEnable',
11067
- defaultSort: 4,
11482
+ defaultSort: 7,
11068
11483
  render: function render(text) {
11069
11484
  return getDictionaryTextByValue$1('SC00001', text);
11070
11485
  }
@@ -11130,13 +11545,13 @@ function commonFun(type, prefixUrl, parentProps) {
11130
11545
  label: '运营仓状态',
11131
11546
  initialSource: getDictionarySource$1('SC00001')
11132
11547
  }] : []));
11133
- var _queryHeaderParams7 = getQueryHeadersList({
11548
+ var _queryHeaderParams8 = getQueryHeadersList({
11134
11549
  querySelectHeadersList: querySelectHeadersList,
11135
11550
  extralHeaders: extralHeaders
11136
11551
  });
11137
11552
  Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/groupInfo/listNoPage"), {
11138
11553
  'qp-status-eq': 1
11139
- }, getQueryHeadersItem(_queryHeaderParams7, 'qp-groupCode-in'))]).then(function (x) {
11554
+ }, getQueryHeadersItem(_queryHeaderParams8, 'qp-groupCode-in'))]).then(function (x) {
11140
11555
  formatSource(x, 0, 2, tableSearchForm, ['groupCode', 'groupName']);
11141
11556
  });
11142
11557
  modalTableProps = _objectSpread2({
@@ -11314,7 +11729,7 @@ function commonFun(type, prefixUrl, parentProps) {
11314
11729
  label: '共享类型',
11315
11730
  initialSource: sharingTypeDataList
11316
11731
  }];
11317
- var _queryHeaderParams8 = getQueryHeadersList({
11732
+ var _queryHeaderParams9 = getQueryHeadersList({
11318
11733
  querySelectHeadersList: querySelectHeadersList,
11319
11734
  extralHeaders: extralHeaders
11320
11735
  });
@@ -11322,14 +11737,14 @@ function commonFun(type, prefixUrl, parentProps) {
11322
11737
  pageSize: 5000,
11323
11738
  currentPage: 1,
11324
11739
  'qp-companyType-eq': '30'
11325
- }, getQueryHeadersItem(_queryHeaderParams8, 'qp-conglomerateCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/accountingSubject"), {
11740
+ }, getQueryHeadersItem(_queryHeaderParams9, 'qp-conglomerateCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/accountingSubject"), {
11326
11741
  pageSize: 5000,
11327
11742
  currentPage: 1
11328
- }, getQueryHeadersItem(_queryHeaderParams8, 'qp-accountingCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/company"), {
11743
+ }, getQueryHeadersItem(_queryHeaderParams9, 'qp-accountingCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/company"), {
11329
11744
  pageSize: 5000,
11330
11745
  currentPage: 1,
11331
11746
  'qp-companyType-eq': '20'
11332
- }, getQueryHeadersItem(_queryHeaderParams8, 'qp-sharingType-in'))]).then(function (x) {
11747
+ }, getQueryHeadersItem(_queryHeaderParams9, 'qp-sharingType-in'))]).then(function (x) {
11333
11748
  formatSource(x, 0, 2, tableSearchForm);
11334
11749
  formatSource(x, 1, 3, tableSearchForm);
11335
11750
  formatSource(x, 2, 4, tableSearchForm);
@@ -11442,11 +11857,11 @@ function commonFun(type, prefixUrl, parentProps) {
11442
11857
  }
11443
11858
  }
11444
11859
  }];
11445
- var _queryHeaderParams9 = getQueryHeadersList({
11860
+ var _queryHeaderParams10 = getQueryHeadersList({
11446
11861
  querySelectHeadersList: querySelectHeadersList,
11447
11862
  extralHeaders: extralHeaders
11448
11863
  });
11449
- Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/org/listNoPage"), {}, getQueryHeadersItem(_queryHeaderParams9, 'qp-createOrgCode-eq'))]).then(function (x) {
11864
+ Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/org/listNoPage"), {}, getQueryHeadersItem(_queryHeaderParams10, 'qp-createOrgCode-eq'))]).then(function (x) {
11450
11865
  var firstElement = x === null || x === void 0 ? void 0 : x[0];
11451
11866
  var allList = firstElement && [firstElement, firstElement];
11452
11867
  formatSource(allList, 0, 2, tableSearchForm);
@@ -11608,7 +12023,7 @@ function commonFun(type, prefixUrl, parentProps) {
11608
12023
  }
11609
12024
  }
11610
12025
  }];
11611
- var _queryHeaderParams0 = getQueryHeadersList({
12026
+ var _queryHeaderParams11 = getQueryHeadersList({
11612
12027
  querySelectHeadersList: querySelectHeadersList,
11613
12028
  extralHeaders: extralHeaders
11614
12029
  });
@@ -11616,21 +12031,21 @@ function commonFun(type, prefixUrl, parentProps) {
11616
12031
  pageSize: 5000,
11617
12032
  currentPage: 1,
11618
12033
  'qp-companyType-eq': '30'
11619
- }, getQueryHeadersItem(_queryHeaderParams0, 'qp-conglomerateCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/company"), {
12034
+ }, getQueryHeadersItem(_queryHeaderParams11, 'qp-conglomerateCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/company"), {
11620
12035
  pageSize: 5000,
11621
12036
  currentPage: 1,
11622
12037
  'qp-companyType-eq': '20'
11623
- }, getQueryHeadersItem(_queryHeaderParams0, 'qp-companyCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/platformRecord/getPlatformRecordList"), {
12038
+ }, getQueryHeadersItem(_queryHeaderParams11, 'qp-companyCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/platformRecord/getPlatformRecordList"), {
11624
12039
  // pageSize: 5000,
11625
12040
  // currentPage: 1,
11626
12041
  'qp-status-eq': '1'
11627
- }, getQueryHeadersItem(_queryHeaderParams0, 'qp-plateformCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/store"), {
12042
+ }, getQueryHeadersItem(_queryHeaderParams11, 'qp-plateformCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/store"), {
11628
12043
  pageSize: 5000,
11629
12044
  currentPage: 1
11630
- }, getQueryHeadersItem(_queryHeaderParams0, 'qp-mainBrandCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/accountingSubject"), {
12045
+ }, getQueryHeadersItem(_queryHeaderParams11, 'qp-mainBrandCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/accountingSubject"), {
11631
12046
  pageSize: 5000,
11632
12047
  currentPage: 1
11633
- }, getQueryHeadersItem(_queryHeaderParams0, 'qp-accountingCode-in'))]).then(function (x) {
12048
+ }, getQueryHeadersItem(_queryHeaderParams11, 'qp-accountingCode-in'))]).then(function (x) {
11634
12049
  formatSource(x, 0, 2, tableSearchForm);
11635
12050
  formatSource(x, 1, 3, tableSearchForm);
11636
12051
  formatSource(x, 2, 5, tableSearchForm);
@@ -11800,7 +12215,7 @@ function commonFun(type, prefixUrl, parentProps) {
11800
12215
  },
11801
12216
  initialSource: getDictionarySource$1('BUSINESS_StoreType')
11802
12217
  }];
11803
- var _queryHeaderParams1 = getQueryHeadersList({
12218
+ var _queryHeaderParams12 = getQueryHeadersList({
11804
12219
  querySelectHeadersList: querySelectHeadersList,
11805
12220
  extralHeaders: extralHeaders
11806
12221
  });
@@ -11808,13 +12223,13 @@ function commonFun(type, prefixUrl, parentProps) {
11808
12223
  'qp-employeeCode-eq': getEmployeeCode(),
11809
12224
  'qp-realOrg-eq': true,
11810
12225
  'qp-status-eq': 10
11811
- }, getQueryHeadersItem(_queryHeaderParams1, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/channelInfo/tree"), {
12226
+ }, getQueryHeadersItem(_queryHeaderParams12, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/channelInfo/tree"), {
11812
12227
  'qp-status-eq': 10,
11813
12228
  'qp-isMain-eq': 1,
11814
12229
  'qp-type-in': '1,2'
11815
- }, getQueryHeadersItem(_queryHeaderParams1, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/tagNode/getTree/10"), {
12230
+ }, getQueryHeadersItem(_queryHeaderParams12, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/tagNode/getTree/10"), {
11816
12231
  'qp-status-eq': 1
11817
- }, getQueryHeadersItem(_queryHeaderParams1, 'qp-orgCode-in'))]).then(function (x) {
12232
+ }, getQueryHeadersItem(_queryHeaderParams12, 'qp-orgCode-in'))]).then(function (x) {
11818
12233
  var channelDisabledJude = function channelDisabledJude(data) {
11819
12234
  return data['parentCode'] === '0';
11820
12235
  }; // 所属销售渠道 树节点不能点判断
@@ -12052,7 +12467,7 @@ function commonFun(type, prefixUrl, parentProps) {
12052
12467
  name: 'qp-officeTelephone-like',
12053
12468
  label: '手机号'
12054
12469
  }];
12055
- var _queryHeaderParams10 = getQueryHeadersList({
12470
+ var _queryHeaderParams13 = getQueryHeadersList({
12056
12471
  querySelectHeadersList: querySelectHeadersList,
12057
12472
  extralHeaders: extralHeaders
12058
12473
  });
@@ -12060,7 +12475,7 @@ function commonFun(type, prefixUrl, parentProps) {
12060
12475
  pageSize: 5000,
12061
12476
  currentPage: 1,
12062
12477
  'qp-companyType-eq': 20
12063
- }, getQueryHeadersItem(_queryHeaderParams10, 'qp-companyCode-in'))]).then(function (x) {
12478
+ }, getQueryHeadersItem(_queryHeaderParams13, 'qp-companyCode-in'))]).then(function (x) {
12064
12479
  formatSource(x, 0, 2, tableSearchForm);
12065
12480
  });
12066
12481
  modalTableProps = _objectSpread2({
@@ -12169,13 +12584,13 @@ function commonFun(type, prefixUrl, parentProps) {
12169
12584
  name: 'qp-officeTelephone-like',
12170
12585
  label: '手机号'
12171
12586
  }]);
12172
- var _queryHeaderParams11 = getQueryHeadersList({
12587
+ var _queryHeaderParams14 = getQueryHeadersList({
12173
12588
  querySelectHeadersList: querySelectHeadersList,
12174
12589
  extralHeaders: extralHeaders
12175
12590
  });
12176
12591
  Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgViewNode/common/getTreeForOrgViewAndTenant"), {
12177
12592
  'orgViewCode': 'administrative-organization-view'
12178
- }, getQueryHeadersItem(_queryHeaderParams11, 'qp-code-in'))]).then(function (x) {
12593
+ }, getQueryHeadersItem(_queryHeaderParams14, 'qp-code-in'))]).then(function (x) {
12179
12594
  formatTreeDataSource(x, 0, 2, tableSearchForm, ['code', 'name']);
12180
12595
  });
12181
12596
  modalTableProps = _objectSpread2({
@@ -12322,17 +12737,17 @@ function commonFun(type, prefixUrl, parentProps) {
12322
12737
  name: 'qp-remark-like',
12323
12738
  label: '备注'
12324
12739
  }];
12325
- var _queryHeaderParams12 = getQueryHeadersList({
12740
+ var _queryHeaderParams15 = getQueryHeadersList({
12326
12741
  querySelectHeadersList: querySelectHeadersList,
12327
12742
  extralHeaders: extralHeaders
12328
12743
  });
12329
12744
  Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/logisCompany"), {
12330
12745
  pageSize: 5000,
12331
12746
  currentPage: 1
12332
- }, getQueryHeadersItem(_queryHeaderParams12, logisCompanyCodeSingleSearchName)), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/printTemplate"), {
12747
+ }, getQueryHeadersItem(_queryHeaderParams15, logisCompanyCodeSingleSearchName)), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/printTemplate"), {
12333
12748
  pageSize: 5000,
12334
12749
  currentPage: 1
12335
- }, getQueryHeadersItem(_queryHeaderParams12, 'qp-sheetTemplateCode-in'))]).then(function (x) {
12750
+ }, getQueryHeadersItem(_queryHeaderParams15, 'qp-sheetTemplateCode-in'))]).then(function (x) {
12336
12751
  formatSource(x, 0, 2, tableSearchForm);
12337
12752
  formatSource(x, 1, 5, tableSearchForm);
12338
12753
  });
@@ -12502,14 +12917,14 @@ function commonFun(type, prefixUrl, parentProps) {
12502
12917
  }
12503
12918
  }
12504
12919
  }];
12505
- var _queryHeaderParams13 = getQueryHeadersList({
12920
+ var _queryHeaderParams16 = getQueryHeadersList({
12506
12921
  querySelectHeadersList: querySelectHeadersList,
12507
12922
  extralHeaders: extralHeaders
12508
12923
  });
12509
12924
  Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/permissionCategory"), {
12510
12925
  pageSize: 5000,
12511
12926
  currentPage: 1
12512
- }, getQueryHeadersItem(_queryHeaderParams13, 'qp-categoryCode-eq'))]).then(function (x) {
12927
+ }, getQueryHeadersItem(_queryHeaderParams16, 'qp-categoryCode-eq'))]).then(function (x) {
12513
12928
  formatSource(x, 0, 2, tableSearchForm);
12514
12929
  });
12515
12930
  modalTableProps = _objectSpread2({
@@ -12606,7 +13021,7 @@ function commonFun(type, prefixUrl, parentProps) {
12606
13021
  }
12607
13022
  }
12608
13023
  }];
12609
- var _queryHeaderParams14 = getQueryHeadersList({
13024
+ var _queryHeaderParams17 = getQueryHeadersList({
12610
13025
  querySelectHeadersList: querySelectHeadersList,
12611
13026
  extralHeaders: extralHeaders
12612
13027
  });
@@ -12614,7 +13029,7 @@ function commonFun(type, prefixUrl, parentProps) {
12614
13029
  'qp-employeeCode-eq': getEmployeeCode(),
12615
13030
  'qp-realOrg-eq': true,
12616
13031
  'qp-status-eq': 10
12617
- }, getQueryHeadersItem(_queryHeaderParams14, 'qp-salesOrgCode-in'))]).then(function (x) {
13032
+ }, getQueryHeadersItem(_queryHeaderParams17, 'qp-salesOrgCode-in'))]).then(function (x) {
12618
13033
  formatSource(x, 0, 2, tableSearchForm);
12619
13034
  });
12620
13035
  modalTableProps = _objectSpread2({
@@ -12720,13 +13135,13 @@ function commonFun(type, prefixUrl, parentProps) {
12720
13135
  },
12721
13136
  initialSource: nodeType
12722
13137
  }];
12723
- var _queryHeaderParams15 = getQueryHeadersList({
13138
+ var _queryHeaderParams18 = getQueryHeadersList({
12724
13139
  querySelectHeadersList: querySelectHeadersList,
12725
13140
  extralHeaders: extralHeaders
12726
13141
  });
12727
13142
  Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgView/getOrgViewListNoPage"), {
12728
13143
  'qp-status-eq': 10
12729
- }, getQueryHeadersItem(_queryHeaderParams15, 'qp-orgViewCode-in'))]).then(function (x) {
13144
+ }, getQueryHeadersItem(_queryHeaderParams18, 'qp-orgViewCode-in'))]).then(function (x) {
12730
13145
  formatSource(x, 0, 2, tableSearchForm);
12731
13146
  });
12732
13147
  modalTableProps = _objectSpread2({
@@ -13052,13 +13467,13 @@ function commonFun(type, prefixUrl, parentProps) {
13052
13467
  },
13053
13468
  initialSource: nodeType
13054
13469
  }];
13055
- var _queryHeaderParams16 = getQueryHeadersList({
13470
+ var _queryHeaderParams19 = getQueryHeadersList({
13056
13471
  querySelectHeadersList: querySelectHeadersList,
13057
13472
  extralHeaders: extralHeaders
13058
13473
  });
13059
13474
  Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgView/getOrgViewListNoPage"), {
13060
13475
  'qp-status-eq': 10
13061
- }, getQueryHeadersItem(_queryHeaderParams16, 'qp-orgViewCode-in'))]).then(function (x) {
13476
+ }, getQueryHeadersItem(_queryHeaderParams19, 'qp-orgViewCode-in'))]).then(function (x) {
13062
13477
  formatSource(x, 0, 2, tableSearchForm);
13063
13478
  });
13064
13479
  modalTableProps = _objectSpread2({
@@ -14003,9 +14418,9 @@ var AddSpuSelect = function AddSpuSelect(parProps) {
14003
14418
  value = _useState8[0],
14004
14419
  setValue = _useState8[1];
14005
14420
  var _useState9 = useState([]),
14006
- _useState0 = _slicedToArray(_useState9, 2),
14007
- propertyList = _useState0[0],
14008
- setPropertyList = _useState0[1];
14421
+ _useState10 = _slicedToArray(_useState9, 2),
14422
+ propertyList = _useState10[0],
14423
+ setPropertyList = _useState10[1];
14009
14424
  useEffect(function () {
14010
14425
  if (parProps === null || parProps === void 0 ? void 0 : parProps.isSingleColor) {
14011
14426
  // type: 1 尺码组; 2 配码组
@@ -14529,45 +14944,46 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
14529
14944
  requestUtil.get("".concat(url, "?").concat(stringify(paramsData)), {
14530
14945
  headers: headers
14531
14946
  }).then(/*#__PURE__*/function () {
14532
- var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(res) {
14947
+ var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(res) {
14533
14948
  var _ctx$form;
14534
14949
  var resData, coverData, data, dataList;
14535
- return _regenerator().w(function (_context) {
14536
- while (1) switch (_context.n) {
14950
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
14951
+ while (1) switch (_context.prev = _context.next) {
14537
14952
  case 0:
14538
14953
  resData = (res === null || res === void 0 ? void 0 : res.data) || [];
14539
14954
  if (!judgeIsRequestSuccess(resData)) {
14540
- _context.n = 4;
14955
+ _context.next = 13;
14541
14956
  break;
14542
14957
  }
14543
14958
  data = resData.data;
14544
14959
  if (!remoteSource.converter) {
14545
- _context.n = 2;
14960
+ _context.next = 9;
14546
14961
  break;
14547
14962
  }
14548
- _context.n = 1;
14963
+ _context.next = 6;
14549
14964
  return remoteSource.converter({
14550
14965
  data: [data]
14551
14966
  });
14552
- case 1:
14553
- coverData = _context.v;
14554
- _context.n = 3;
14967
+ case 6:
14968
+ coverData = _context.sent;
14969
+ _context.next = 11;
14555
14970
  break;
14556
- case 2:
14971
+ case 9:
14557
14972
  dataList = data && Array.isArray(data) ? data : data && [data] || [];
14558
14973
  coverData = dataList.length && dataList.map(function (ites) {
14559
14974
  return _mapSearchTree(ites);
14560
14975
  }) || [];
14561
- case 3:
14562
- _context.n = 5;
14976
+ case 11:
14977
+ _context.next = 14;
14563
14978
  break;
14564
- case 4:
14979
+ case 13:
14565
14980
  coverData = [];
14566
- case 5:
14981
+ case 14:
14567
14982
  setTreeData(coverData);
14568
14983
  ctx === null || ctx === void 0 ? void 0 : (_ctx$form = ctx.form) === null || _ctx$form === void 0 ? void 0 : _ctx$form.setFieldSource(ctx.name, coverData);
14569
- case 6:
14570
- return _context.a(2);
14984
+ case 16:
14985
+ case "end":
14986
+ return _context.stop();
14571
14987
  }
14572
14988
  }, _callee);
14573
14989
  }));
@@ -18869,38 +19285,38 @@ var BsSulaQueryTable = (function (props) {
18869
19285
  };
18870
19286
  var refs = useRef(null);
18871
19287
  var _useState9 = useState(''),
18872
- _useState0 = _slicedToArray(_useState9, 2),
18873
- pagePath = _useState0[0],
18874
- setPagePath = _useState0[1];
19288
+ _useState10 = _slicedToArray(_useState9, 2),
19289
+ pagePath = _useState10[0],
19290
+ setPagePath = _useState10[1];
18875
19291
  var _useLocation = useLocation(),
18876
19292
  pathname = _useLocation.pathname,
18877
19293
  _useLocation$state = _useLocation.state,
18878
19294
  state = _useLocation$state === void 0 ? {} : _useLocation$state;
18879
- var _useState1 = useState(false),
18880
- _useState10 = _slicedToArray(_useState1, 2),
18881
- isFullScreen = _useState10[0],
18882
- setIsFnllScreen = _useState10[1];
19295
+ var _useState11 = useState(false),
19296
+ _useState12 = _slicedToArray(_useState11, 2),
19297
+ isFullScreen = _useState12[0],
19298
+ setIsFnllScreen = _useState12[1];
18883
19299
  // @ts-nocheck
18884
19300
  var value = props;
18885
19301
  var _props$fields = props.fields,
18886
19302
  fields = _props$fields === void 0 ? [] : _props$fields;
18887
- var _useState11 = useState([]),
18888
- _useState12 = _slicedToArray(_useState11, 2),
18889
- showColumn = _useState12[0],
18890
- setShowColumns = _useState12[1]; // 列字段
18891
- var originSearchFields = getSettingFieldOrColumn(getConfigFromlocalstorage(ENUM$1.BROWSER_CACHE.SEARCH_FIELDS_CONDITION), fields, 'searchFields');
18892
- var _useState13 = useState(originSearchFields),
19303
+ var _useState13 = useState([]),
18893
19304
  _useState14 = _slicedToArray(_useState13, 2),
18894
- showSearchFields = _useState14[0],
18895
- setShowSearchFields = _useState14[1]; //搜索项字段
18896
- var _useState15 = useState([]),
19305
+ showColumn = _useState14[0],
19306
+ setShowColumns = _useState14[1]; // 列字段
19307
+ var originSearchFields = getSettingFieldOrColumn(getConfigFromlocalstorage(ENUM$1.BROWSER_CACHE.SEARCH_FIELDS_CONDITION), fields, 'searchFields');
19308
+ var _useState15 = useState(originSearchFields),
18897
19309
  _useState16 = _slicedToArray(_useState15, 2),
18898
- showExportColumn = _useState16[0],
18899
- setShowExportColumns = _useState16[1]; // 导出列字段
18900
- var _useState17 = useState(''),
19310
+ showSearchFields = _useState16[0],
19311
+ setShowSearchFields = _useState16[1]; //搜索项字段
19312
+ var _useState17 = useState([]),
18901
19313
  _useState18 = _slicedToArray(_useState17, 2),
18902
- height = _useState18[0],
18903
- setHeight = _useState18[1];
19314
+ showExportColumn = _useState18[0],
19315
+ setShowExportColumns = _useState18[1]; // 导出列字段
19316
+ var _useState19 = useState(''),
19317
+ _useState20 = _slicedToArray(_useState19, 2),
19318
+ height = _useState20[0],
19319
+ setHeight = _useState20[1];
18904
19320
  var sortTableRef = useRef(null);
18905
19321
  var searchTableRef = useRef(null);
18906
19322
  var exportTableRef = useRef(null);
@@ -19948,19 +20364,22 @@ function outLogin(_x) {
19948
20364
  return _outLogin.apply(this, arguments);
19949
20365
  }
19950
20366
  function _outLogin() {
19951
- _outLogin = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(params) {
20367
+ _outLogin = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
19952
20368
  var res;
19953
- return _regenerator().w(function (_context) {
19954
- while (1) switch (_context.n) {
20369
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
20370
+ while (1) switch (_context.prev = _context.next) {
19955
20371
  case 0:
19956
- _context.n = 1;
20372
+ _context.next = 2;
19957
20373
  return requestUtil({
19958
20374
  url: '/user/web/loginOut',
19959
20375
  method: 'GET'
19960
20376
  });
19961
- case 1:
19962
- res = _context.v;
19963
- return _context.a(2, res);
20377
+ case 2:
20378
+ res = _context.sent;
20379
+ return _context.abrupt("return", res);
20380
+ case 4:
20381
+ case "end":
20382
+ return _context.stop();
19964
20383
  }
19965
20384
  }, _callee);
19966
20385
  }));
@@ -20087,20 +20506,20 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
20087
20506
  });
20088
20507
  };
20089
20508
  var loginOut = /*#__PURE__*/function () {
20090
- var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
20509
+ var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
20091
20510
  var sessionId;
20092
- return _regenerator().w(function (_context) {
20093
- while (1) switch (_context.n) {
20511
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
20512
+ while (1) switch (_context.prev = _context.next) {
20094
20513
  case 0:
20095
- _context.n = 1;
20514
+ _context.next = 2;
20096
20515
  return getSessionId();
20097
- case 1:
20098
- sessionId = _context.v;
20099
- _context.n = 2;
20516
+ case 2:
20517
+ sessionId = _context.sent;
20518
+ _context.next = 5;
20100
20519
  return outLogin({
20101
20520
  sessionId: sessionId
20102
20521
  });
20103
- case 2:
20522
+ case 5:
20104
20523
  // @ts-ignore
20105
20524
  if (BUILD_TYPE) {
20106
20525
  message$1.success('退出登录成功');
@@ -20110,8 +20529,9 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
20110
20529
  } else {
20111
20530
  setLoginOutPath();
20112
20531
  }
20113
- case 3:
20114
- return _context.a(2);
20532
+ case 6:
20533
+ case "end":
20534
+ return _context.stop();
20115
20535
  }
20116
20536
  }, _callee);
20117
20537
  }));
@@ -20198,15 +20618,18 @@ function getStoreByName(_x) {
20198
20618
  return _getStoreByName.apply(this, arguments);
20199
20619
  }
20200
20620
  function _getStoreByName() {
20201
- _getStoreByName = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(params) {
20202
- return _regenerator().w(function (_context) {
20203
- while (1) switch (_context.n) {
20621
+ _getStoreByName = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
20622
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
20623
+ while (1) switch (_context.prev = _context.next) {
20204
20624
  case 0:
20205
- return _context.a(2, requestUtil({
20625
+ return _context.abrupt("return", requestUtil({
20206
20626
  url: '/store-house/orgViewNode/listNoPage',
20207
20627
  method: 'GET',
20208
20628
  params: _objectSpread2({}, params)
20209
20629
  }));
20630
+ case 1:
20631
+ case "end":
20632
+ return _context.stop();
20210
20633
  }
20211
20634
  }, _callee);
20212
20635
  }));
@@ -20241,33 +20664,33 @@ var ChooseStore = function ChooseStore(props) {
20241
20664
  openSelect = _useState8[0],
20242
20665
  setOpenSelect = _useState8[1];
20243
20666
  var _useState9 = useState([]),
20244
- _useState0 = _slicedToArray(_useState9, 2),
20245
- options = _useState0[0],
20246
- setOptions = _useState0[1];
20247
- var _useState1 = useState([]),
20248
- _useState10 = _slicedToArray(_useState1, 2),
20249
- rescouse = _useState10[0],
20250
- setRescouse = _useState10[1];
20251
- var _useState11 = useState(''),
20667
+ _useState10 = _slicedToArray(_useState9, 2),
20668
+ options = _useState10[0],
20669
+ setOptions = _useState10[1];
20670
+ var _useState11 = useState([]),
20252
20671
  _useState12 = _slicedToArray(_useState11, 2),
20253
- searchValue = _useState12[0],
20254
- setSearchValue = _useState12[1];
20255
- var _useState13 = useState([{
20672
+ rescouse = _useState12[0],
20673
+ setRescouse = _useState12[1];
20674
+ var _useState13 = useState(''),
20675
+ _useState14 = _slicedToArray(_useState13, 2),
20676
+ searchValue = _useState14[0],
20677
+ setSearchValue = _useState14[1];
20678
+ var _useState15 = useState([{
20256
20679
  label: name,
20257
20680
  value: code
20258
20681
  }]),
20259
- _useState14 = _slicedToArray(_useState13, 2),
20260
- store = _useState14[0],
20261
- setStore = _useState14[1];
20682
+ _useState16 = _slicedToArray(_useState15, 2),
20683
+ store = _useState16[0],
20684
+ setStore = _useState16[1];
20262
20685
  function fetchUserList(_x, _x2) {
20263
20686
  return _fetchUserList.apply(this, arguments);
20264
20687
  }
20265
20688
  function _fetchUserList() {
20266
- _fetchUserList = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(storeName, init) {
20267
- return _regenerator().w(function (_context3) {
20268
- while (1) switch (_context3.n) {
20689
+ _fetchUserList = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(storeName, init) {
20690
+ return _regeneratorRuntime().wrap(function _callee3$(_context3) {
20691
+ while (1) switch (_context3.prev = _context3.next) {
20269
20692
  case 0:
20270
- return _context3.a(2, getStoreByName({
20693
+ return _context3.abrupt("return", getStoreByName({
20271
20694
  orgName: storeName ? storeName : undefined,
20272
20695
  platCompanyCode: init ? undefined : key,
20273
20696
  'qp-employeeCode-eq': employeeCode || 'EMP231011000002',
@@ -20286,6 +20709,9 @@ var ChooseStore = function ChooseStore(props) {
20286
20709
  };
20287
20710
  });
20288
20711
  }));
20712
+ case 1:
20713
+ case "end":
20714
+ return _context3.stop();
20289
20715
  }
20290
20716
  }, _callee3);
20291
20717
  }));
@@ -20308,19 +20734,20 @@ var ChooseStore = function ChooseStore(props) {
20308
20734
  return debounce$1(loadOptions, debounceTimeout);
20309
20735
  }, [debounceTimeout, key]);
20310
20736
  var changeInput = /*#__PURE__*/function () {
20311
- var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(str) {
20737
+ var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(str) {
20312
20738
  var res;
20313
- return _regenerator().w(function (_context) {
20314
- while (1) switch (_context.n) {
20739
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
20740
+ while (1) switch (_context.prev = _context.next) {
20315
20741
  case 0:
20316
- _context.n = 1;
20742
+ _context.next = 2;
20317
20743
  return debounceFetcher(str);
20318
- case 1:
20319
- res = _context.v;
20744
+ case 2:
20745
+ res = _context.sent;
20320
20746
  setOptions(res);
20321
20747
  setRescouse(res);
20322
- case 2:
20323
- return _context.a(2);
20748
+ case 5:
20749
+ case "end":
20750
+ return _context.stop();
20324
20751
  }
20325
20752
  }, _callee);
20326
20753
  }));
@@ -20329,15 +20756,15 @@ var ChooseStore = function ChooseStore(props) {
20329
20756
  };
20330
20757
  }();
20331
20758
  useEffect(function () {
20332
- _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
20759
+ _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
20333
20760
  var res;
20334
- return _regenerator().w(function (_context2) {
20335
- while (1) switch (_context2.n) {
20761
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
20762
+ while (1) switch (_context2.prev = _context2.next) {
20336
20763
  case 0:
20337
- _context2.n = 1;
20764
+ _context2.next = 2;
20338
20765
  return fetchUserList(undefined, true);
20339
- case 1:
20340
- res = _context2.v;
20766
+ case 2:
20767
+ res = _context2.sent;
20341
20768
  res.map(function (item, indexNumber) {
20342
20769
  if (item.label === name) {
20343
20770
  setIndex(indexNumber);
@@ -20353,8 +20780,9 @@ var ChooseStore = function ChooseStore(props) {
20353
20780
  });
20354
20781
  setOptions(res);
20355
20782
  setRescouse(res);
20356
- case 2:
20357
- return _context2.a(2);
20783
+ case 6:
20784
+ case "end":
20785
+ return _context2.stop();
20358
20786
  }
20359
20787
  }, _callee2);
20360
20788
  }))();
@@ -21403,25 +21831,25 @@ var DrawContent$1 = function DrawContent(_ref) {
21403
21831
  currentOneLevel = _useState8[0],
21404
21832
  setCurrentOneLevel = _useState8[1];
21405
21833
  var _useState9 = useState([]),
21406
- _useState0 = _slicedToArray(_useState9, 2),
21407
- SearhData = _useState0[0],
21408
- setSearchMenuData = _useState0[1];
21409
- var _useState1 = useState(600),
21410
- _useState10 = _slicedToArray(_useState1, 2),
21411
- rightMenuHeight = _useState10[0],
21412
- setHeight = _useState10[1];
21413
- var _useState11 = useState(900),
21834
+ _useState10 = _slicedToArray(_useState9, 2),
21835
+ SearhData = _useState10[0],
21836
+ setSearchMenuData = _useState10[1];
21837
+ var _useState11 = useState(600),
21414
21838
  _useState12 = _slicedToArray(_useState11, 2),
21415
- drawHeight = _useState12[0],
21416
- setDrawHeight = _useState12[1];
21417
- var _useState13 = useState(false),
21839
+ rightMenuHeight = _useState12[0],
21840
+ setHeight = _useState12[1];
21841
+ var _useState13 = useState(900),
21418
21842
  _useState14 = _slicedToArray(_useState13, 2),
21419
- moreBtnShow = _useState14[0],
21420
- setMoreBtnShow = _useState14[1];
21843
+ drawHeight = _useState14[0],
21844
+ setDrawHeight = _useState14[1];
21421
21845
  var _useState15 = useState(false),
21422
21846
  _useState16 = _slicedToArray(_useState15, 2),
21423
- showScroll = _useState16[0],
21424
- setShowScroll = _useState16[1];
21847
+ moreBtnShow = _useState16[0],
21848
+ setMoreBtnShow = _useState16[1];
21849
+ var _useState17 = useState(false),
21850
+ _useState18 = _slicedToArray(_useState17, 2),
21851
+ showScroll = _useState18[0],
21852
+ setShowScroll = _useState18[1];
21425
21853
  useEffect(function () {
21426
21854
  var _originRoutes$find;
21427
21855
  getMenuContentHeight();
@@ -23032,11 +23460,14 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
23032
23460
  },
23033
23461
  menu: {
23034
23462
  request: function () {
23035
- var _request = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
23036
- return _regenerator().w(function (_context) {
23037
- while (1) switch (_context.n) {
23463
+ var _request = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
23464
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
23465
+ while (1) switch (_context.prev = _context.next) {
23038
23466
  case 0:
23039
- return _context.a(2, JSON.parse(localStorage.getItem("customerMenu_".concat(itemPath, "_front")) || '[]'));
23467
+ return _context.abrupt("return", JSON.parse(localStorage.getItem("customerMenu_".concat(itemPath, "_front")) || '[]'));
23468
+ case 1:
23469
+ case "end":
23470
+ return _context.stop();
23040
23471
  }
23041
23472
  }, _callee);
23042
23473
  }));
@@ -23441,31 +23872,31 @@ var index$6 = /*#__PURE__*/forwardRef(function (props, ref) {
23441
23872
  multiTableData = _useState8[0],
23442
23873
  setMmultiTableData = _useState8[1]; //多表头数据
23443
23874
  var _useState9 = useState(10),
23444
- _useState0 = _slicedToArray(_useState9, 2),
23445
- viewCount = _useState0[0],
23446
- setViewCount = _useState0[1]; //虚拟表格每次渲染数量
23875
+ _useState10 = _slicedToArray(_useState9, 2),
23876
+ viewCount = _useState10[0],
23877
+ setViewCount = _useState10[1]; //虚拟表格每次渲染数量
23447
23878
  var itemWidth = 100; // 表格每一项宽度
23448
- var _useState1 = useState((props === null || props === void 0 ? void 0 : props.colHeaderWidth) || 400),
23449
- _useState10 = _slicedToArray(_useState1, 2),
23450
- realColHeaderWidth = _useState10[0],
23451
- setLeftWidth = _useState10[1];
23879
+ var _useState11 = useState((props === null || props === void 0 ? void 0 : props.colHeaderWidth) || 400),
23880
+ _useState12 = _slicedToArray(_useState11, 2),
23881
+ realColHeaderWidth = _useState12[0],
23882
+ setLeftWidth = _useState12[1];
23452
23883
  var viewPort = useRef(null);
23453
23884
  var topScrollBar = useRef(null);
23454
23885
  var leftTableRef = useRef(null);
23455
23886
  //起始渲染item
23456
- var _useState11 = useState(0),
23457
- _useState12 = _slicedToArray(_useState11, 2),
23458
- startIndex = _useState12[0],
23459
- setStartIndex = _useState12[1];
23887
+ var _useState13 = useState(0),
23888
+ _useState14 = _slicedToArray(_useState13, 2),
23889
+ startIndex = _useState14[0],
23890
+ setStartIndex = _useState14[1];
23460
23891
  //结束渲染item
23461
23892
  var endIndex = useMemo(function () {
23462
23893
  return startIndex + viewCount;
23463
23894
  }, [startIndex, viewCount]);
23464
23895
  //表格偏移量
23465
- var _useState13 = useState(0),
23466
- _useState14 = _slicedToArray(_useState13, 2),
23467
- offsetWidth = _useState14[0],
23468
- setOffset = _useState14[1];
23896
+ var _useState15 = useState(0),
23897
+ _useState16 = _slicedToArray(_useState15, 2),
23898
+ offsetWidth = _useState16[0],
23899
+ setOffset = _useState16[1];
23469
23900
  useEffect(function () {
23470
23901
  setTimeout(function () {
23471
23902
  var realLeftTableWidth = leftTableRef.current.clientWidth;
@@ -30769,11 +31200,11 @@ var valueType = {
30769
31200
  };
30770
31201
 
30771
31202
  var getDynamicDict = /*#__PURE__*/function () {
30772
- var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(dictionaryCode) {
30773
- return _regenerator().w(function (_context) {
30774
- while (1) switch (_context.n) {
31203
+ var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
31204
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
31205
+ while (1) switch (_context.prev = _context.next) {
30775
31206
  case 0:
30776
- _context.n = 1;
31207
+ _context.next = 2;
30777
31208
  return request$2({
30778
31209
  url: "/basic/dictDynamicItem/getDynamicData/".concat(dictionaryCode),
30779
31210
  converter: function converter(_ref2) {
@@ -30786,8 +31217,11 @@ var getDynamicDict = /*#__PURE__*/function () {
30786
31217
  });
30787
31218
  }
30788
31219
  });
30789
- case 1:
30790
- return _context.a(2, _context.v);
31220
+ case 2:
31221
+ return _context.abrupt("return", _context.sent);
31222
+ case 3:
31223
+ case "end":
31224
+ return _context.stop();
30791
31225
  }
30792
31226
  }, _callee);
30793
31227
  }));
@@ -30834,12 +31268,12 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
30834
31268
  value: false
30835
31269
  }];
30836
31270
  var ref = useRef();
30837
- useMount(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
30838
- var _ref$current, source, _t, _t2;
30839
- return _regenerator().w(function (_context) {
30840
- while (1) switch (_context.n) {
31271
+ useMount(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
31272
+ var _ref$current, source;
31273
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
31274
+ while (1) switch (_context.prev = _context.next) {
30841
31275
  case 0:
30842
- _context.n = 1;
31276
+ _context.next = 2;
30843
31277
  return setIsShowAndType(function (prev) {
30844
31278
  if (record.inputType === 20 || record.inputType === 30) {
30845
31279
  return {
@@ -30850,39 +31284,40 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
30850
31284
  }
30851
31285
  return prev;
30852
31286
  });
30853
- case 1:
31287
+ case 2:
30854
31288
  if (!record.dictionaryCode) {
30855
- _context.n = 7;
31289
+ _context.next = 17;
30856
31290
  break;
30857
31291
  }
30858
31292
  if (!(record.choiceType == 20)) {
30859
- _context.n = 2;
31293
+ _context.next = 7;
30860
31294
  break;
30861
31295
  }
30862
- _t = getDictionarySource(record.dictionaryCode);
30863
- _context.n = 6;
31296
+ _context.t0 = getDictionarySource(record.dictionaryCode);
31297
+ _context.next = 15;
30864
31298
  break;
30865
- case 2:
31299
+ case 7:
30866
31300
  if (!(record.choiceType == 30)) {
30867
- _context.n = 4;
31301
+ _context.next = 13;
30868
31302
  break;
30869
31303
  }
30870
- _context.n = 3;
31304
+ _context.next = 10;
30871
31305
  return getDynamicDict(record.dictionaryCode);
30872
- case 3:
30873
- _t2 = _context.v;
30874
- _context.n = 5;
31306
+ case 10:
31307
+ _context.t1 = _context.sent;
31308
+ _context.next = 14;
30875
31309
  break;
30876
- case 4:
30877
- _t2 = [];
30878
- case 5:
30879
- _t = _t2;
30880
- case 6:
30881
- source = _t;
31310
+ case 13:
31311
+ _context.t1 = [];
31312
+ case 14:
31313
+ _context.t0 = _context.t1;
31314
+ case 15:
31315
+ source = _context.t0;
30882
31316
  // @ts-ignore
30883
31317
  ref === null || ref === void 0 ? void 0 : (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.setFieldSource('defaultValue', source);
30884
- case 7:
30885
- return _context.a(2);
31318
+ case 17:
31319
+ case "end":
31320
+ return _context.stop();
30886
31321
  }
30887
31322
  }, _callee);
30888
31323
  })));
@@ -30947,10 +31382,10 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
30947
31382
  source: {
30948
31383
  relates: ['dictionaryCode', 'dictionaryCode_dynamic', 'choiceType'],
30949
31384
  type: function () {
30950
- var _type = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(_ref3) {
31385
+ var _type = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
30951
31386
  var form, values, name, relates, source;
30952
- return _regenerator().w(function (_context2) {
30953
- while (1) switch (_context2.n) {
31387
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
31388
+ while (1) switch (_context2.prev = _context2.next) {
30954
31389
  case 0:
30955
31390
  form = _ref3.form, values = _ref3.values, name = _ref3.name, relates = _ref3.relates;
30956
31391
  if (values[0]) {
@@ -30959,18 +31394,19 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
30959
31394
  form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], getDictionarySource(values[0]));
30960
31395
  }
30961
31396
  if (!values[1]) {
30962
- _context2.n = 2;
31397
+ _context2.next = 9;
30963
31398
  break;
30964
31399
  }
30965
- _context2.n = 1;
31400
+ _context2.next = 5;
30966
31401
  return getDynamicDict(record.dictionaryCode || values[1]);
30967
- case 1:
30968
- source = _context2.v;
31402
+ case 5:
31403
+ source = _context2.sent;
30969
31404
  form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
30970
31405
  form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
30971
31406
  form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], source);
30972
- case 2:
30973
- return _context2.a(2);
31407
+ case 9:
31408
+ case "end":
31409
+ return _context2.stop();
30974
31410
  }
30975
31411
  }, _callee2);
30976
31412
  }));
@@ -31426,25 +31862,25 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
31426
31862
  source: {
31427
31863
  relates: ['choiceType', 'inputType'],
31428
31864
  type: function () {
31429
- var _type2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(_ref0) {
31865
+ var _type2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
31430
31866
  var values, name, form, source;
31431
- return _regenerator().w(function (_context3) {
31432
- while (1) switch (_context3.n) {
31867
+ return _regeneratorRuntime().wrap(function _callee3$(_context3) {
31868
+ while (1) switch (_context3.prev = _context3.next) {
31433
31869
  case 0:
31434
- values = _ref0.values, name = _ref0.name, form = _ref0.form;
31870
+ values = _ref10.values, name = _ref10.name, form = _ref10.form;
31435
31871
  if (values[1] === 40) {
31436
31872
  form === null || form === void 0 ? void 0 : form.setFieldValue(name, null);
31437
31873
  form.setFieldVisible(name, false);
31438
31874
  }
31439
31875
  if (!(values[0] === 30)) {
31440
- _context3.n = 2;
31876
+ _context3.next = 10;
31441
31877
  break;
31442
31878
  }
31443
- _context3.n = 1;
31879
+ _context3.next = 5;
31444
31880
  return request$2({
31445
31881
  url: '/basic/dictDynamicItem/queryList',
31446
- converter: function converter(_ref1) {
31447
- var data = _ref1.data;
31882
+ converter: function converter(_ref11) {
31883
+ var data = _ref11.data;
31448
31884
  return data === null || data === void 0 ? void 0 : data.map(function (d) {
31449
31885
  return {
31450
31886
  text: d.dictCode,
@@ -31453,16 +31889,17 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
31453
31889
  });
31454
31890
  }
31455
31891
  });
31456
- case 1:
31457
- source = _context3.v;
31892
+ case 5:
31893
+ source = _context3.sent;
31458
31894
  form === null || form === void 0 ? void 0 : form.setFieldSource(name, source);
31459
31895
  form.setFieldVisible(name, true);
31460
- _context3.n = 3;
31896
+ _context3.next = 11;
31461
31897
  break;
31462
- case 2:
31898
+ case 10:
31463
31899
  form.setFieldVisible(name, false);
31464
- case 3:
31465
- return _context3.a(2);
31900
+ case 11:
31901
+ case "end":
31902
+ return _context3.stop();
31466
31903
  }
31467
31904
  }, _callee3);
31468
31905
  }));
@@ -31477,8 +31914,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
31477
31914
  name: 'enumeration',
31478
31915
  label: '维护自定义选项',
31479
31916
  field: {
31480
- type: function type(_ref10) {
31481
- var form = _ref10.form;
31917
+ type: function type(_ref12) {
31918
+ var form = _ref12.form;
31482
31919
  return /*#__PURE__*/React$1.createElement(Button, {
31483
31920
  type: 'link',
31484
31921
  onClick: function onClick() {
@@ -31504,10 +31941,10 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
31504
31941
  dependency: {
31505
31942
  source: {
31506
31943
  relates: ['choiceType'],
31507
- type: function type(_ref11) {
31508
- var values = _ref11.values,
31509
- name = _ref11.name,
31510
- form = _ref11.form;
31944
+ type: function type(_ref13) {
31945
+ var values = _ref13.values,
31946
+ name = _ref13.name,
31947
+ form = _ref13.form;
31511
31948
  if (values[0] === 10) {
31512
31949
  form.setFieldVisible(name, true);
31513
31950
  } else {
@@ -31523,10 +31960,10 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
31523
31960
  dependency: {
31524
31961
  visible: {
31525
31962
  relates: ['choiceType'],
31526
- type: function type(_ref12) {
31527
- var name = _ref12.name,
31528
- values = _ref12.values,
31529
- form = _ref12.form;
31963
+ type: function type(_ref14) {
31964
+ var name = _ref14.name,
31965
+ values = _ref14.values,
31966
+ form = _ref14.form;
31530
31967
  if (values[0] == 330) {
31531
31968
  form.setFieldVisible(name, true);
31532
31969
  } else {
@@ -31550,8 +31987,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
31550
31987
  params: {
31551
31988
  'qp-businessType-eq': record.businessType
31552
31989
  },
31553
- converter: function converter(_ref13) {
31554
- var data = _ref13.data;
31990
+ converter: function converter(_ref15) {
31991
+ var data = _ref15.data;
31555
31992
  return (data === null || data === void 0 ? void 0 : data.map(function (d) {
31556
31993
  return {
31557
31994
  text: d.name,
@@ -31591,8 +32028,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
31591
32028
  'qp-businessType-eq': record.businessType,
31592
32029
  'qp-status-eq': 1
31593
32030
  },
31594
- converter: function converter(_ref14) {
31595
- var data = _ref14.data;
32031
+ converter: function converter(_ref16) {
32032
+ var data = _ref16.data;
31596
32033
  return (data === null || data === void 0 ? void 0 : data.map(function (d) {
31597
32034
  var _d$code;
31598
32035
  return {
@@ -31620,8 +32057,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
31620
32057
  remoteSource: {
31621
32058
  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),
31622
32059
  method: 'get',
31623
- converter: function converter(_ref15) {
31624
- var data = _ref15.data;
32060
+ converter: function converter(_ref17) {
32061
+ var data = _ref17.data;
31625
32062
  if (lineDetail.moduleType == 1) {
31626
32063
  return (data === null || data === void 0 ? void 0 : data.map(function (d) {
31627
32064
  return {
@@ -31647,16 +32084,16 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
31647
32084
  width: 900,
31648
32085
  maskClosable: false,
31649
32086
  onOk: function () {
31650
- var _onOk = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4() {
32087
+ var _onOk = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
31651
32088
  var _ref$current4, _res$editableStatus;
31652
32089
  var res, _res$defaultValue;
31653
- return _regenerator().w(function (_context4) {
31654
- while (1) switch (_context4.n) {
32090
+ return _regeneratorRuntime().wrap(function _callee4$(_context4) {
32091
+ while (1) switch (_context4.prev = _context4.next) {
31655
32092
  case 0:
31656
- _context4.n = 1;
32093
+ _context4.next = 2;
31657
32094
  return ref === null || ref === void 0 ? void 0 : (_ref$current4 = ref.current) === null || _ref$current4 === void 0 ? void 0 : _ref$current4.validateFields();
31658
- case 1:
31659
- res = _context4.v;
32095
+ case 2:
32096
+ res = _context4.sent;
31660
32097
  res.editableStatus = (_res$editableStatus = res.editableStatus) === null || _res$editableStatus === void 0 ? void 0 : _res$editableStatus.join(',');
31661
32098
  res.fieldGroup = record.fieldGroup;
31662
32099
  res.businessType = record.businessType;
@@ -31683,7 +32120,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
31683
32120
  delete res.formula;
31684
32121
  delete res.showValue;
31685
32122
  if (!(mode === 'create')) {
31686
- _context4.n = 2;
32123
+ _context4.next = 18;
31687
32124
  break;
31688
32125
  }
31689
32126
  request$2({
@@ -31695,8 +32132,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
31695
32132
  onParentOk();
31696
32133
  }
31697
32134
  });
31698
- return _context4.a(2);
31699
- case 2:
32135
+ return _context4.abrupt("return");
32136
+ case 18:
31700
32137
  request$2({
31701
32138
  url: "/basic/flow/businessField/".concat(record.id),
31702
32139
  method: 'PATCH',
@@ -31706,8 +32143,9 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
31706
32143
  onParentOk();
31707
32144
  }
31708
32145
  });
31709
- case 3:
31710
- return _context4.a(2);
32146
+ case 19:
32147
+ case "end":
32148
+ return _context4.stop();
31711
32149
  }
31712
32150
  }, _callee4);
31713
32151
  }));
@@ -32163,21 +32601,21 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
32163
32601
  jsonEditorVal = _useState8[0],
32164
32602
  setJsonEditorVal = _useState8[1];
32165
32603
  var _useState9 = useState({}),
32166
- _useState0 = _slicedToArray(_useState9, 2),
32167
- moduleParams = _useState0[0],
32168
- setModuleParams = _useState0[1];
32169
- var _useState1 = useState('main'),
32170
- _useState10 = _slicedToArray(_useState1, 2),
32171
- activeKey = _useState10[0],
32172
- setActiveKey = _useState10[1]; //默认详情页配置
32173
- var _useState11 = useState({}),
32604
+ _useState10 = _slicedToArray(_useState9, 2),
32605
+ moduleParams = _useState10[0],
32606
+ setModuleParams = _useState10[1];
32607
+ var _useState11 = useState('main'),
32174
32608
  _useState12 = _slicedToArray(_useState11, 2),
32175
- tablesConfigParams = _useState12[0],
32176
- setTablesConfigParams = _useState12[1];
32177
- var _useState13 = useState([]),
32609
+ activeKey = _useState12[0],
32610
+ setActiveKey = _useState12[1]; //默认详情页配置
32611
+ var _useState13 = useState({}),
32178
32612
  _useState14 = _slicedToArray(_useState13, 2),
32179
- tableJsonEditorValsArr = _useState14[0],
32180
- setTableJsonEditorValsArr = _useState14[1];
32613
+ tablesConfigParams = _useState14[0],
32614
+ setTablesConfigParams = _useState14[1];
32615
+ var _useState15 = useState([]),
32616
+ _useState16 = _slicedToArray(_useState15, 2),
32617
+ tableJsonEditorValsArr = _useState16[0],
32618
+ setTableJsonEditorValsArr = _useState16[1];
32181
32619
  useEffect(function () {
32182
32620
  Promise.all([requestUtil.get("/basic/flow/businessFieldGroup/one?moduleType=2&layoutPoint=".concat(pageType))]).then(function (_ref2) {
32183
32621
  var _ref3 = _slicedToArray(_ref2, 1),
@@ -32553,11 +32991,11 @@ function getMetaData(_x) {
32553
32991
 
32554
32992
  // 获取数据
32555
32993
  function _getMetaData() {
32556
- _getMetaData = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(id) {
32557
- return _regenerator().w(function (_context) {
32558
- while (1) switch (_context.n) {
32994
+ _getMetaData = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(id) {
32995
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
32996
+ while (1) switch (_context.prev = _context.next) {
32559
32997
  case 0:
32560
- return _context.a(2, new Promise(function (resolve, reject) {
32998
+ return _context.abrupt("return", new Promise(function (resolve, reject) {
32561
32999
  request$3('/basic/entityProperty/listNoPage', {
32562
33000
  params: {
32563
33001
  'qp-entityId-eq': id
@@ -32569,6 +33007,9 @@ function _getMetaData() {
32569
33007
  reject([]);
32570
33008
  });
32571
33009
  }));
33010
+ case 1:
33011
+ case "end":
33012
+ return _context.stop();
32572
33013
  }
32573
33014
  }, _callee);
32574
33015
  }));
@@ -32772,11 +33213,11 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
32772
33213
  tableState = _useState4[0],
32773
33214
  setTableState = _useState4[1];
32774
33215
  var handleOpen = /*#__PURE__*/function () {
32775
- var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
33216
+ var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
32776
33217
  var _props$customSelector, _props$customSelector2, _props$ctx4, _props$value, _props$value$map, _props$ctx5, _props$ctx5$form, _props$selectProps;
32777
33218
  var requestConfigNew, metaDataId, metaData, realMetaData, columns, fields, initValue, _queryTableRef$curren, _queryTableRef$curren2, _queryTableRef$curren3;
32778
- return _regenerator().w(function (_context) {
32779
- while (1) switch (_context.n) {
33219
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
33220
+ while (1) switch (_context.prev = _context.next) {
32780
33221
  case 0:
32781
33222
  requestConfigNew = assembleRequest(props.customSelectorConfig, {
32782
33223
  isSearchForm: props.isSearchForm,
@@ -32784,16 +33225,16 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
32784
33225
  searchFormData: searchFormData
32785
33226
  });
32786
33227
  if (requestConfigNew) {
32787
- _context.n = 1;
33228
+ _context.next = 3;
32788
33229
  break;
32789
33230
  }
32790
- return _context.a(2);
32791
- case 1:
33231
+ return _context.abrupt("return");
33232
+ case 3:
32792
33233
  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;
32793
- _context.n = 2;
33234
+ _context.next = 6;
32794
33235
  return getMetaData(metaDataId);
32795
- case 2:
32796
- metaData = _context.v;
33236
+ case 6:
33237
+ metaData = _context.sent;
32797
33238
  realMetaData = (metaData === null || metaData === void 0 ? void 0 : metaData.filter(function (item) {
32798
33239
  return (item === null || item === void 0 ? void 0 : item.inputType) != 1;
32799
33240
  })) || [];
@@ -32833,8 +33274,9 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
32833
33274
  // @ts-ignore
32834
33275
  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);
32835
33276
  }
32836
- case 3:
32837
- return _context.a(2);
33277
+ case 14:
33278
+ case "end":
33279
+ return _context.stop();
32838
33280
  }
32839
33281
  }, _callee);
32840
33282
  }));
@@ -32937,7 +33379,7 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
32937
33379
  }, [requestConfig, tableState.columns]);
32938
33380
  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';
32939
33381
  var handleOk = function handleOk(rowData) {
32940
- var _props$selectProps2, _props$customSelector6, _props$customSelector7, _queryTableRef$curren11, _queryTableRef$curren12, _queryTableRef$curren13;
33382
+ var _props$selectProps2, _props$customSelector6, _props$customSelector7, _queryTableRef$curren13, _queryTableRef$curren14, _queryTableRef$curren15;
32941
33383
  var setSource = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
32942
33384
  //多选数据处理
32943
33385
  if (props === null || props === void 0 ? void 0 : (_props$selectProps2 = props.selectProps) === null || _props$selectProps2 === void 0 ? void 0 : _props$selectProps2.multipleForQuery) {
@@ -32948,9 +33390,9 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
32948
33390
  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()) || [];
32949
33391
  var realSelectedRows = selectedRows;
32950
33392
  if (!rowData && (selectedKesys === null || selectedKesys === void 0 ? void 0 : selectedKesys.length) !== (selectedRows === null || selectedRows === void 0 ? void 0 : selectedRows.length)) {
32951
- var _queryTableRef$curren0, _queryTableRef$curren1, _queryTableRef$curren10;
33393
+ var _queryTableRef$curren10, _queryTableRef$curren11, _queryTableRef$curren12;
32952
33394
  // @ts-ignore
32953
- 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()) || [];
33395
+ 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()) || [];
32954
33396
  realSelectedRows = dataSource === null || dataSource === void 0 ? void 0 : dataSource.filter(function (s) {
32955
33397
  return selectedKesys.includes(s[rowKey]);
32956
33398
  });
@@ -32983,10 +33425,10 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
32983
33425
  });
32984
33426
  }
32985
33427
  mappings.map(function (item) {
32986
- var _props$customSelector0, _props$customSelector1, _props$customSelector10, _props$customSelector11;
32987
- 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]) {
32988
- var _props$customSelector12, _props$customSelector13;
32989
- 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];
33428
+ var _props$customSelector10, _props$customSelector11, _props$customSelector12, _props$customSelector13;
33429
+ 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]) {
33430
+ var _props$customSelector14, _props$customSelector15;
33431
+ 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];
32990
33432
  }
32991
33433
  values[item.codeMappingTo] = rowData[item.codeMappingFrom];
32992
33434
  });
@@ -33041,10 +33483,10 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
33041
33483
  }
33042
33484
  props.onCancel();
33043
33485
  //@ts-ignore
33044
- 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();
33486
+ 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();
33045
33487
  };
33046
33488
  var config = useMemo(function () {
33047
- var _props$selectProps3, _props$ctx9, _props$value2, _props$ctx0, _props$ctx0$form;
33489
+ var _props$selectProps3, _props$ctx9, _props$value2, _props$ctx10, _props$ctx10$form;
33048
33490
  var returnConfig = {
33049
33491
  size: 'small',
33050
33492
  needPageHeader: false,
@@ -33053,7 +33495,7 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
33053
33495
  rowSelection: (props === null || props === void 0 ? void 0 : (_props$selectProps3 = props.selectProps) === null || _props$selectProps3 === void 0 ? void 0 : _props$selectProps3.multipleForQuery) && !isView ? {
33054
33496
  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) {
33055
33497
  return v.key || v;
33056
- })) || (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))
33498
+ })) || (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))
33057
33499
  } : false,
33058
33500
  remoteDataSource: remoteDataSource,
33059
33501
  fields: tableState.fields,
@@ -33061,8 +33503,8 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
33061
33503
  rowKey: rowKey,
33062
33504
  tableProps: !isView && {
33063
33505
  rowClassName: function rowClassName(record) {
33064
- var _props$ctx1, _props$value3, _props$ctx10, _props$ctx10$form;
33065
- 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' : '';
33506
+ var _props$ctx11, _props$value3, _props$ctx12, _props$ctx12$form;
33507
+ 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' : '';
33066
33508
  },
33067
33509
  onRow: function onRow(record) {
33068
33510
  return {
@@ -33107,10 +33549,10 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
33107
33549
  }, "\u63D0\u4EA4"), /*#__PURE__*/React$1.createElement(Button, {
33108
33550
  type: "default",
33109
33551
  onClick: function onClick() {
33110
- var _queryTableRef$curren14, _queryTableRef$curren15, _queryTableRef$curren16;
33552
+ var _queryTableRef$curren16, _queryTableRef$curren17, _queryTableRef$curren18;
33111
33553
  props.onCancel();
33112
33554
  //@ts-ignore
33113
- 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();
33555
+ 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();
33114
33556
  }
33115
33557
  }, "\u53D6\u6D88"))));
33116
33558
  });
@@ -33334,19 +33776,19 @@ var BsCascader = function BsCascader(_ref) {
33334
33776
  _useState2 = _slicedToArray(_useState, 2),
33335
33777
  handSource = _useState2[0],
33336
33778
  setHandSource = _useState2[1];
33337
- useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
33779
+ useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
33338
33780
  var resData, data;
33339
- return _regenerator().w(function (_context) {
33340
- while (1) switch (_context.n) {
33781
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
33782
+ while (1) switch (_context.prev = _context.next) {
33341
33783
  case 0:
33342
33784
  if (!(!source && initRequestSource)) {
33343
- _context.n = 2;
33785
+ _context.next = 6;
33344
33786
  break;
33345
33787
  }
33346
- _context.n = 1;
33788
+ _context.next = 3;
33347
33789
  return initRequestSource();
33348
- case 1:
33349
- resData = _context.v;
33790
+ case 3:
33791
+ resData = _context.sent;
33350
33792
  data = (resData === null || resData === void 0 ? void 0 : resData.map(function (item) {
33351
33793
  return _objectSpread2(_objectSpread2({}, item), {}, {
33352
33794
  label: item.text,
@@ -33354,8 +33796,9 @@ var BsCascader = function BsCascader(_ref) {
33354
33796
  });
33355
33797
  })) || [];
33356
33798
  setHandSource(data);
33357
- case 2:
33358
- return _context.a(2);
33799
+ case 6:
33800
+ case "end":
33801
+ return _context.stop();
33359
33802
  }
33360
33803
  }, _callee);
33361
33804
  })), []);
@@ -33485,17 +33928,20 @@ function getRegularThresholdRange(_x) {
33485
33928
  return _getRegularThresholdRange.apply(this, arguments);
33486
33929
  }
33487
33930
  function _getRegularThresholdRange() {
33488
- _getRegularThresholdRange = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(params) {
33489
- return _regenerator().w(function (_context) {
33490
- while (1) switch (_context.n) {
33931
+ _getRegularThresholdRange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
33932
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
33933
+ while (1) switch (_context.prev = _context.next) {
33491
33934
  case 0:
33492
- return _context.a(2, requestUtil({
33935
+ return _context.abrupt("return", requestUtil({
33493
33936
  url: "/basic/regularThresholdRange/getVals/".concat(params.queryIdentify),
33494
33937
  method: 'POST',
33495
33938
  data: _objectSpread2(_objectSpread2({}, params), {}, {
33496
33939
  queryIdentify: undefined
33497
33940
  })
33498
33941
  }));
33942
+ case 1:
33943
+ case "end":
33944
+ return _context.stop();
33499
33945
  }
33500
33946
  }, _callee);
33501
33947
  }));
@@ -33636,24 +34082,24 @@ var RuleField = /*#__PURE__*/function (_Component) {
33636
34082
  };
33637
34083
  //规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
33638
34084
  _this.getRegularThresholdRange = /*#__PURE__*/function () {
33639
- var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
34085
+ var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
33640
34086
  var thresholdQuery, extraRequestUrl, querParams, needQueryList, res;
33641
- return _regenerator().w(function (_context) {
33642
- while (1) switch (_context.n) {
34087
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
34088
+ while (1) switch (_context.prev = _context.next) {
33643
34089
  case 0:
33644
34090
  if (queryIdentify) {
33645
- _context.n = 1;
34091
+ _context.next = 2;
33646
34092
  break;
33647
34093
  }
33648
- return _context.a(2);
33649
- case 1:
34094
+ return _context.abrupt("return");
34095
+ case 2:
33650
34096
  thresholdQuery = _this.state.thresholdQuery;
33651
34097
  extraRequestUrl = '';
33652
34098
  querParams = setParams(propertyCode, thresholdQuery);
33653
34099
  if (!queryIdentityInfo.find(function (item) {
33654
34100
  return item.identity == propertyCode;
33655
34101
  })) {
33656
- _context.n = 3;
34102
+ _context.next = 10;
33657
34103
  break;
33658
34104
  }
33659
34105
  //判断查询属性枚举时有没有必传参数,如果必传参数没有值则不调用查询接口
@@ -33667,15 +34113,15 @@ var RuleField = /*#__PURE__*/function (_Component) {
33667
34113
  if (!needQueryList.some(function (item) {
33668
34114
  return !querParams[item] || !querParams[item].length;
33669
34115
  })) {
33670
- _context.n = 2;
34116
+ _context.next = 9;
33671
34117
  break;
33672
34118
  }
33673
- return _context.a(2);
33674
- case 2:
34119
+ return _context.abrupt("return");
34120
+ case 9:
33675
34121
  extraRequestUrl = queryIdentityInfo.find(function (item) {
33676
34122
  return item.identity == propertyCode;
33677
34123
  }).requestUrl || '';
33678
- case 3:
34124
+ case 10:
33679
34125
  if (queryIdentifyType === 'dictCodeIdentify') {
33680
34126
  extraRequestUrl = "bscDictItem/selectDictItemsByDictCode"; // 字典接口
33681
34127
  querParams = {
@@ -33686,7 +34132,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
33686
34132
  // querParams = { dictCode: queryIdentify }
33687
34133
  }
33688
34134
  if (!extraRequestUrl) {
33689
- _context.n = 4;
34135
+ _context.next = 16;
33690
34136
  break;
33691
34137
  }
33692
34138
  if (queryIdentify == 'maintain_area_code') {
@@ -33725,42 +34171,43 @@ var RuleField = /*#__PURE__*/function (_Component) {
33725
34171
  return handleData;
33726
34172
  }
33727
34173
  });
33728
- _context.n = 8;
34174
+ _context.next = 29;
33729
34175
  break;
33730
- case 4:
34176
+ case 16:
33731
34177
  if (!(queryIdentifyType == 'objectPropertyListIdentify')) {
33732
- _context.n = 5;
34178
+ _context.next = 20;
33733
34179
  break;
33734
34180
  }
33735
34181
  _this.setState({
33736
34182
  thresholdList: queryIdentify
33737
34183
  });
33738
- _context.n = 8;
34184
+ _context.next = 29;
33739
34185
  break;
33740
- case 5:
34186
+ case 20:
33741
34187
  if (!(queryIdentifyType == 'objectPropertyCodeIdentify')) {
33742
- _context.n = 6;
34188
+ _context.next = 24;
33743
34189
  break;
33744
34190
  }
33745
34191
  // TODO待处理
33746
34192
  _this.setState({
33747
34193
  thresholdList: []
33748
34194
  });
33749
- _context.n = 8;
34195
+ _context.next = 29;
33750
34196
  break;
33751
- case 6:
34197
+ case 24:
33752
34198
  querParams.queryIdentify = queryIdentify;
33753
- _context.n = 7;
34199
+ _context.next = 27;
33754
34200
  return getRegularThresholdRange(querParams);
33755
- case 7:
33756
- res = _context.v;
34201
+ case 27:
34202
+ res = _context.sent;
33757
34203
  if (handleError(res)) {
33758
34204
  _this.setState({
33759
34205
  thresholdList: (res === null || res === void 0 ? void 0 : res.data) || []
33760
34206
  });
33761
34207
  }
33762
- case 8:
33763
- return _context.a(2);
34208
+ case 29:
34209
+ case "end":
34210
+ return _context.stop();
33764
34211
  }
33765
34212
  }, _callee);
33766
34213
  }));
@@ -34592,11 +35039,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
34592
35039
  isAll: true,
34593
35040
  needNameAndCode: true,
34594
35041
  notChangeOnSelect: true,
34595
- initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
34596
- return _regenerator().w(function (_context2) {
34597
- while (1) switch (_context2.n) {
35042
+ initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
35043
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
35044
+ while (1) switch (_context2.prev = _context2.next) {
34598
35045
  case 0:
34599
- _context2.n = 1;
35046
+ _context2.next = 2;
34600
35047
  return request$2({
34601
35048
  url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
34602
35049
  method: 'get',
@@ -34613,8 +35060,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
34613
35060
  return handleData;
34614
35061
  }
34615
35062
  });
34616
- case 1:
34617
- return _context2.a(2, _context2.v);
35063
+ case 2:
35064
+ return _context2.abrupt("return", _context2.sent);
35065
+ case 3:
35066
+ case "end":
35067
+ return _context2.stop();
34618
35068
  }
34619
35069
  }, _callee2);
34620
35070
  })),
@@ -34638,11 +35088,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
34638
35088
  isAll: true,
34639
35089
  needNameAndCode: true,
34640
35090
  notChangeOnSelect: true,
34641
- initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3() {
34642
- return _regenerator().w(function (_context3) {
34643
- while (1) switch (_context3.n) {
35091
+ initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
35092
+ return _regeneratorRuntime().wrap(function _callee3$(_context3) {
35093
+ while (1) switch (_context3.prev = _context3.next) {
34644
35094
  case 0:
34645
- _context3.n = 1;
35095
+ _context3.next = 2;
34646
35096
  return request$2({
34647
35097
  url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
34648
35098
  method: 'get',
@@ -34659,8 +35109,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
34659
35109
  return handleData;
34660
35110
  }
34661
35111
  });
34662
- case 1:
34663
- return _context3.a(2, _context3.v);
35112
+ case 2:
35113
+ return _context3.abrupt("return", _context3.sent);
35114
+ case 3:
35115
+ case "end":
35116
+ return _context3.stop();
34664
35117
  }
34665
35118
  }, _callee3);
34666
35119
  })),
@@ -34686,11 +35139,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
34686
35139
  isAll: true,
34687
35140
  needNameAndCode: true,
34688
35141
  notChangeOnSelect: true,
34689
- initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4() {
34690
- return _regenerator().w(function (_context4) {
34691
- while (1) switch (_context4.n) {
35142
+ initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
35143
+ return _regeneratorRuntime().wrap(function _callee4$(_context4) {
35144
+ while (1) switch (_context4.prev = _context4.next) {
34692
35145
  case 0:
34693
- _context4.n = 1;
35146
+ _context4.next = 2;
34694
35147
  return request$2({
34695
35148
  url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
34696
35149
  method: 'get',
@@ -34707,8 +35160,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
34707
35160
  return handleData;
34708
35161
  }
34709
35162
  });
34710
- case 1:
34711
- return _context4.a(2, _context4.v);
35163
+ case 2:
35164
+ return _context4.abrupt("return", _context4.sent);
35165
+ case 3:
35166
+ case "end":
35167
+ return _context4.stop();
34712
35168
  }
34713
35169
  }, _callee4);
34714
35170
  })),
@@ -35395,8 +35851,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
35395
35851
  }
35396
35852
  }));
35397
35853
  } else {
35398
- var _values0;
35399
- var _currentValue9 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values0 = values) === null || _values0 === void 0 ? void 0 : _values0.map(function (s, vIndex) {
35854
+ var _values10;
35855
+ var _currentValue9 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values10 = values) === null || _values10 === void 0 ? void 0 : _values10.map(function (s, vIndex) {
35400
35856
  return {
35401
35857
  key: s,
35402
35858
  label: valueNames[vIndex],
@@ -35674,8 +36130,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
35674
36130
  }
35675
36131
  }));
35676
36132
  } else {
35677
- var _values1;
35678
- var _currentValue0 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values1 = values) === null || _values1 === void 0 ? void 0 : _values1.map(function (s, vIndex) {
36133
+ var _values11;
36134
+ var _currentValue10 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values11 = values) === null || _values11 === void 0 ? void 0 : _values11.map(function (s, vIndex) {
35679
36135
  return {
35680
36136
  key: s,
35681
36137
  label: valueNames[vIndex],
@@ -35697,7 +36153,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
35697
36153
  } : {}),
35698
36154
  disabled: disabled,
35699
36155
  labelInValue: true,
35700
- value: _currentValue0,
36156
+ value: _currentValue10,
35701
36157
  requestConfig: {
35702
36158
  filterInit: 'qp-code-in'
35703
36159
  },
@@ -35790,8 +36246,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
35790
36246
  }
35791
36247
  }));
35792
36248
  } else {
35793
- var _values10;
35794
- var _currentValue1 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values10 = values) === null || _values10 === void 0 ? void 0 : _values10.map(function (s, vIndex) {
36249
+ var _values12;
36250
+ var _currentValue11 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values12 = values) === null || _values12 === void 0 ? void 0 : _values12.map(function (s, vIndex) {
35795
36251
  return {
35796
36252
  key: s,
35797
36253
  label: valueNames[vIndex],
@@ -35813,7 +36269,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
35813
36269
  } : {}),
35814
36270
  disabled: disabled,
35815
36271
  labelInValue: true,
35816
- value: _currentValue1,
36272
+ value: _currentValue11,
35817
36273
  requestConfig: {
35818
36274
  filterInit: 'qp-code-in'
35819
36275
  },
@@ -35906,8 +36362,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
35906
36362
  }
35907
36363
  }));
35908
36364
  } else {
35909
- var _values11;
35910
- var _currentValue10 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values11 = values) === null || _values11 === void 0 ? void 0 : _values11.map(function (s, vIndex) {
36365
+ var _values13;
36366
+ var _currentValue12 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values13 = values) === null || _values13 === void 0 ? void 0 : _values13.map(function (s, vIndex) {
35911
36367
  return {
35912
36368
  key: s,
35913
36369
  label: valueNames[vIndex],
@@ -35929,7 +36385,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
35929
36385
  } : {}),
35930
36386
  disabled: disabled,
35931
36387
  labelInValue: true,
35932
- value: _currentValue10,
36388
+ value: _currentValue12,
35933
36389
  requestConfig: {
35934
36390
  filterInit: 'qp-brandCode-in'
35935
36391
  },
@@ -36120,8 +36576,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
36120
36576
  }
36121
36577
  }));
36122
36578
  } else {
36123
- var _values12;
36124
- var _currentValue11 = dataInputBusinessType === 12 ? ((_values12 = values) === null || _values12 === void 0 ? void 0 : _values12.map(function (s, vIndex) {
36579
+ var _values14;
36580
+ var _currentValue13 = dataInputBusinessType === 12 ? ((_values14 = values) === null || _values14 === void 0 ? void 0 : _values14.map(function (s, vIndex) {
36125
36581
  return {
36126
36582
  key: s,
36127
36583
  label: valueNames[vIndex]
@@ -36149,7 +36605,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
36149
36605
  isSearchForm: true,
36150
36606
  customSelectorConfig: (others === null || others === void 0 ? void 0 : others.customSelectorConfig) || {},
36151
36607
  disabled: disabled,
36152
- value: _currentValue11,
36608
+ value: _currentValue13,
36153
36609
  onChange: function onChange(value, sourceList) {
36154
36610
  if (dataInputBusinessType === 12) {
36155
36611
  var _value$map3, _sourceList$filter3;
@@ -36469,9 +36925,9 @@ var App$1 = function App(_ref) {
36469
36925
  UpdateState(res);
36470
36926
  };
36471
36927
  var _useState9 = useState(false),
36472
- _useState0 = _slicedToArray(_useState9, 2),
36473
- isModalVisible = _useState0[0],
36474
- setIsModalVisible = _useState0[1];
36928
+ _useState10 = _slicedToArray(_useState9, 2),
36929
+ isModalVisible = _useState10[0],
36930
+ setIsModalVisible = _useState10[1];
36475
36931
  var showModal = function showModal() {
36476
36932
  setIsModalVisible(true);
36477
36933
  };
@@ -36952,26 +37408,27 @@ function RenderCompItem(props) {
36952
37408
  dictData = _useState2[0],
36953
37409
  setDictData = _useState2[1];
36954
37410
  var getDictData = /*#__PURE__*/function () {
36955
- var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
37411
+ var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
36956
37412
  var _data$map;
36957
37413
  var data;
36958
- return _regenerator().w(function (_context) {
36959
- while (1) switch (_context.n) {
37414
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
37415
+ while (1) switch (_context.prev = _context.next) {
36960
37416
  case 0:
36961
- _context.n = 1;
37417
+ _context.next = 2;
36962
37418
  return request$2({
36963
37419
  url: "/basic/bscDictItem/allItemList?qp-code-eq=".concat(ites.dictionaryCode)
36964
37420
  });
36965
- case 1:
36966
- data = _context.v;
37421
+ case 2:
37422
+ data = _context.sent;
36967
37423
  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) {
36968
37424
  return {
36969
37425
  text: item.dictItemName,
36970
37426
  value: item.dictItemCode
36971
37427
  };
36972
37428
  }));
36973
- case 2:
36974
- return _context.a(2);
37429
+ case 4:
37430
+ case "end":
37431
+ return _context.stop();
36975
37432
  }
36976
37433
  }, _callee);
36977
37434
  }));
@@ -37212,11 +37669,11 @@ function RenderCompItem(props) {
37212
37669
  needNameAndCode: true,
37213
37670
  notChangeOnSelect: true,
37214
37671
  initRequestSource: function () {
37215
- var _initRequestSource = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
37216
- return _regenerator().w(function (_context2) {
37217
- while (1) switch (_context2.n) {
37672
+ var _initRequestSource = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
37673
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
37674
+ while (1) switch (_context2.prev = _context2.next) {
37218
37675
  case 0:
37219
- _context2.n = 1;
37676
+ _context2.next = 2;
37220
37677
  return request$2({
37221
37678
  url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
37222
37679
  method: 'get',
@@ -37234,8 +37691,11 @@ function RenderCompItem(props) {
37234
37691
  return handleData;
37235
37692
  }
37236
37693
  });
37237
- case 1:
37238
- return _context2.a(2, _context2.v);
37694
+ case 2:
37695
+ return _context2.abrupt("return", _context2.sent);
37696
+ case 3:
37697
+ case "end":
37698
+ return _context2.stop();
37239
37699
  }
37240
37700
  }, _callee2);
37241
37701
  }));
@@ -39285,13 +39745,13 @@ var BaseRule = /*#__PURE__*/forwardRef(function (props, ref) {
39285
39745
  ruleTypeData = _useState8[0],
39286
39746
  setRuleTypeData = _useState8[1];
39287
39747
  var _useState9 = useState([]),
39288
- _useState0 = _slicedToArray(_useState9, 2),
39289
- ruleReturnConfig = _useState0[0],
39290
- setRuleReturnConfig = _useState0[1];
39291
- var _useState1 = useState({}),
39292
- _useState10 = _slicedToArray(_useState1, 2),
39293
- templateData = _useState10[0],
39294
- setTemplateData = _useState10[1];
39748
+ _useState10 = _slicedToArray(_useState9, 2),
39749
+ ruleReturnConfig = _useState10[0],
39750
+ setRuleReturnConfig = _useState10[1];
39751
+ var _useState11 = useState({}),
39752
+ _useState12 = _slicedToArray(_useState11, 2),
39753
+ templateData = _useState12[0],
39754
+ setTemplateData = _useState12[1];
39295
39755
  var loadRuleReturnConfig = function loadRuleReturnConfig(currentSceneId) {
39296
39756
  request$2({
39297
39757
  url: "/basic/ruleTemplate/".concat(currentSceneId),
@@ -39627,25 +40087,25 @@ var index$7 = /*#__PURE__*/forwardRef(function (props, ref) {
39627
40087
  regularDataList = _useState8[0],
39628
40088
  setRegularDataList = _useState8[1];
39629
40089
  var _useState9 = useState([]),
39630
- _useState0 = _slicedToArray(_useState9, 2),
39631
- baseRuleDetailList = _useState0[0],
39632
- setBaseRuleDetailList = _useState0[1]; // 规则实例详情集合
39633
- var _useState1 = useState([]),
39634
- _useState10 = _slicedToArray(_useState1, 2),
39635
- systemVariableList = _useState10[0],
39636
- setSystemVariableList = _useState10[1];
39637
- var _useState11 = useState(false),
40090
+ _useState10 = _slicedToArray(_useState9, 2),
40091
+ baseRuleDetailList = _useState10[0],
40092
+ setBaseRuleDetailList = _useState10[1]; // 规则实例详情集合
40093
+ var _useState11 = useState([]),
39638
40094
  _useState12 = _slicedToArray(_useState11, 2),
39639
- isGetDefRuleDataRes = _useState12[0],
39640
- setIsGetDefRuleDataRes = _useState12[1]; // 为了在回显的时候辨别异步查询是否已完成,防止提前认为为新增设置了模板数据,导致再渲染编辑时候 输入框defaultValue不再渲染问题
40095
+ systemVariableList = _useState12[0],
40096
+ setSystemVariableList = _useState12[1];
39641
40097
  var _useState13 = useState(false),
39642
40098
  _useState14 = _slicedToArray(_useState13, 2),
39643
- isGetRuleDataRes = _useState14[0],
39644
- setIsGetRuleDataRes = _useState14[1];
40099
+ isGetDefRuleDataRes = _useState14[0],
40100
+ setIsGetDefRuleDataRes = _useState14[1]; // 为了在回显的时候辨别异步查询是否已完成,防止提前认为为新增设置了模板数据,导致再渲染编辑时候 输入框defaultValue不再渲染问题
39645
40101
  var _useState15 = useState(false),
39646
40102
  _useState16 = _slicedToArray(_useState15, 2),
39647
- groupOtherPriorityList = _useState16[0],
39648
- setGroupOtherPriorityList = _useState16[1];
40103
+ isGetRuleDataRes = _useState16[0],
40104
+ setIsGetRuleDataRes = _useState16[1];
40105
+ var _useState17 = useState(false),
40106
+ _useState18 = _slicedToArray(_useState17, 2),
40107
+ groupOtherPriorityList = _useState18[0],
40108
+ setGroupOtherPriorityList = _useState18[1];
39649
40109
  var baseRuleRef = useRef();
39650
40110
  var currentSceneName = (datail === null || datail === void 0 ? void 0 : datail.name) || '';
39651
40111
  // 查询规则组下所有规则实例