@bit-sun/business-component 4.2.1-alpha.6-aiwei → 4.2.1-alpha.8-aiwei

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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 +1169 -770
  60. package/dist/index.js +1168 -769
  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 -10
  65. package/src/components/Functional/SearchSelect/index.tsx +32 -1
package/dist/index.esm.js CHANGED
@@ -2,7 +2,7 @@ import axios from 'axios';
2
2
  import request$1 from 'umi-request';
3
3
  import cookie from 'js-cookie';
4
4
  import { message as message$1, Tooltip, Image, Popover, Card, Avatar, Badge, Menu, Input, InputNumber, Space, Button, Dropdown, Upload, Checkbox, Modal, ConfigProvider, Tag, Select, Spin, Form, Table, Empty, Row, Col, Tabs, TreeSelect, DatePicker, Typography, Alert, Breadcrumb, Drawer as Drawer$1, List, Radio, Tree, Result, Affix, Cascader, TimePicker, Divider, Switch, Collapse } from 'antd';
5
- import _, { omit, uniqBy, escapeRegExp, isNil, isBoolean, debounce, cloneDeep as cloneDeep$1, throttle, isEmpty } from 'lodash';
5
+ import _, { omit, uniqBy, escapeRegExp, isNil, trim, isBoolean, debounce, cloneDeep as cloneDeep$1, throttle, isEmpty } from 'lodash';
6
6
  import memoizeOne from 'memoize-one';
7
7
  import { formatMessage, history, useLocation, Link, useModel, setLocale, useIntl, request as request$3 } from 'umi';
8
8
  import isEqual from 'lodash/isEqual';
@@ -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,113 +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 () {
291
- return {
292
- w: i,
293
- m: f
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
+ }
294
350
  };
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
351
  }
304
- _regeneratorDefine = function (e, r, n, t) {
305
- function o(r, n) {
306
- _regeneratorDefine(e, r, function (e) {
307
- return this._invoke(r, n, e);
308
- });
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) {
404
+ return {
405
+ __await: t
406
+ };
407
+ }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
408
+ return this;
409
+ }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
410
+ void 0 === i && (i = Promise);
411
+ var a = new AsyncIterator(wrap(t, r, n, o), i);
412
+ return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
413
+ return t.done ? t.value : a.next();
414
+ });
415
+ }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
416
+ return this;
417
+ }), define(g, "toString", function () {
418
+ return "[object Generator]";
419
+ }), e.keys = function (t) {
420
+ var e = Object(t),
421
+ r = [];
422
+ for (var n in e) r.push(n);
423
+ return r.reverse(), function next() {
424
+ for (; r.length;) {
425
+ var t = r.pop();
426
+ if (t in e) return next.value = t, next.done = !1, next;
427
+ }
428
+ return next.done = !0, next;
429
+ };
430
+ }, e.values = values, Context.prototype = {
431
+ constructor: Context,
432
+ reset: function (e) {
433
+ if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
434
+ },
435
+ stop: function () {
436
+ this.done = !0;
437
+ var t = this.tryEntries[0].completion;
438
+ if ("throw" === t.type) throw t.arg;
439
+ return this.rval;
440
+ },
441
+ dispatchException: function (e) {
442
+ if (this.done) throw e;
443
+ var r = this;
444
+ function handle(n, o) {
445
+ return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
446
+ }
447
+ for (var o = this.tryEntries.length - 1; o >= 0; --o) {
448
+ var i = this.tryEntries[o],
449
+ a = i.completion;
450
+ if ("root" === i.tryLoc) return handle("end");
451
+ if (i.tryLoc <= this.prev) {
452
+ var c = n.call(i, "catchLoc"),
453
+ u = n.call(i, "finallyLoc");
454
+ if (c && u) {
455
+ if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
456
+ if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
457
+ } else if (c) {
458
+ if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
459
+ } else {
460
+ if (!u) throw Error("try statement without catch or finally");
461
+ if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
462
+ }
463
+ }
464
+ }
465
+ },
466
+ abrupt: function (t, e) {
467
+ for (var r = this.tryEntries.length - 1; r >= 0; --r) {
468
+ var o = this.tryEntries[r];
469
+ if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
470
+ var i = o;
471
+ break;
472
+ }
473
+ }
474
+ i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
475
+ var a = i ? i.completion : {};
476
+ return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
477
+ },
478
+ complete: function (t, e) {
479
+ if ("throw" === t.type) throw t.arg;
480
+ return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
481
+ },
482
+ finish: function (t) {
483
+ for (var e = this.tryEntries.length - 1; e >= 0; --e) {
484
+ var r = this.tryEntries[e];
485
+ if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
486
+ }
487
+ },
488
+ catch: function (t) {
489
+ for (var e = this.tryEntries.length - 1; e >= 0; --e) {
490
+ var r = this.tryEntries[e];
491
+ if (r.tryLoc === t) {
492
+ var n = r.completion;
493
+ if ("throw" === n.type) {
494
+ var o = n.arg;
495
+ resetTryEntry(r);
496
+ }
497
+ return o;
498
+ }
499
+ }
500
+ throw Error("illegal catch attempt");
501
+ },
502
+ delegateYield: function (e, r, n) {
503
+ return this.delegate = {
504
+ iterator: values(e),
505
+ resultName: r,
506
+ nextLoc: n
507
+ }, "next" === this.method && (this.arg = t), y;
309
508
  }
310
- r ? i ? i(e, r, {
311
- value: n,
312
- enumerable: !t,
313
- configurable: !t,
314
- writable: !t
315
- }) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2));
316
- }, _regeneratorDefine(e, r, n, t);
509
+ }, e;
317
510
  }
318
511
  function _setPrototypeOf(t, e) {
319
512
  return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
@@ -1386,22 +1579,22 @@ var parseToServe = function parseToServe(outdata, revertChart) {
1386
1579
  // sheepMap是表头字段中英文映射
1387
1580
  // sheetCount:表的数量,默认一张
1388
1581
  var resolveFile = /*#__PURE__*/function () {
1389
- var _ref3 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(file) {
1582
+ var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(file) {
1390
1583
  var config,
1391
1584
  data,
1392
1585
  _args = arguments;
1393
- return _regenerator().w(function (_context) {
1394
- while (1) switch (_context.n) {
1586
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
1587
+ while (1) switch (_context.prev = _context.next) {
1395
1588
  case 0:
1396
1589
  config = _args.length > 1 && _args[1] !== undefined ? _args[1] : {
1397
1590
  sheetMap: [],
1398
1591
  sheetCount: 1
1399
1592
  };
1400
- _context.n = 1;
1593
+ _context.next = 3;
1401
1594
  return analyseExcelToByte(file);
1402
- case 1:
1403
- data = _context.v;
1404
- 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) {
1405
1598
  var workbook = read(data, {
1406
1599
  type: 'binary'
1407
1600
  });
@@ -1413,6 +1606,9 @@ var resolveFile = /*#__PURE__*/function () {
1413
1606
  var outdata = parseToServe(sheetMapJsonList, config.sheetMap);
1414
1607
  resolve(outdata);
1415
1608
  }));
1609
+ case 5:
1610
+ case "end":
1611
+ return _context.stop();
1416
1612
  }
1417
1613
  }, _callee);
1418
1614
  }));
@@ -1422,40 +1618,41 @@ var resolveFile = /*#__PURE__*/function () {
1422
1618
  }();
1423
1619
  //读取文件
1424
1620
  var readerXlsxToList = /*#__PURE__*/function () {
1425
- 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) {
1426
1622
  var _ref5, callback, sheetMap, nowFile, data2, data;
1427
- return _regenerator().w(function (_context2) {
1428
- while (1) switch (_context2.n) {
1623
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
1624
+ while (1) switch (_context2.prev = _context2.next) {
1429
1625
  case 0:
1430
1626
  _ref5 = otherInfo || {}, callback = _ref5.callback, sheetMap = _ref5.sheetMap;
1431
1627
  if (!(Array.isArray(fileList) && fileList.length > 0)) {
1432
- _context2.n = 3;
1628
+ _context2.next = 15;
1433
1629
  break;
1434
1630
  }
1435
1631
  nowFile = fileList[fileList.length - 1]; // 阻止了默认上传file没有originFileObj了 得从fileList中去取
1436
- _context2.n = 1;
1632
+ _context2.next = 5;
1437
1633
  return resolveFile(nowFile.originFileObj, {
1438
1634
  sheetMap: fieldMappingReverse(sheetMap),
1439
1635
  sheetCount: 1
1440
1636
  });
1441
- case 1:
1442
- data2 = _context2.v;
1637
+ case 5:
1638
+ data2 = _context2.sent;
1443
1639
  data = data2[0];
1444
1640
  if (data.length) {
1445
- _context2.n = 2;
1641
+ _context2.next = 10;
1446
1642
  break;
1447
1643
  }
1448
1644
  message$1.error("\u8BF7\u5148\u5F55\u5165\u6570\u636E\u518D\u5BFC\u5165");
1449
- return _context2.a(2);
1450
- case 2:
1645
+ return _context2.abrupt("return");
1646
+ case 10:
1451
1647
  if (callback) callback(data);
1452
1648
  !callback && message$1.success("\u5BFC\u5165\u6210\u529F");
1453
- return _context2.a(2, data);
1454
- case 3:
1649
+ return _context2.abrupt("return", data);
1650
+ case 15:
1455
1651
  message$1.error("\u8BF7\u9009\u62E9\u6587\u4EF6");
1456
- return _context2.a(2);
1457
- case 4:
1458
- return _context2.a(2);
1652
+ return _context2.abrupt("return");
1653
+ case 17:
1654
+ case "end":
1655
+ return _context2.stop();
1459
1656
  }
1460
1657
  }, _callee2);
1461
1658
  }));
@@ -2407,14 +2604,17 @@ var requestUtil = function requestUtil(_ref) {
2407
2604
  return request$1(url, parms).then(handleResponseData);
2408
2605
  };
2409
2606
  var handleResponseData = /*#__PURE__*/function () {
2410
- var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(response) {
2411
- return _regenerator().w(function (_context) {
2412
- 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) {
2413
2610
  case 0:
2414
- return _context.a(2, Promise.resolve({
2611
+ return _context.abrupt("return", Promise.resolve({
2415
2612
  data: response,
2416
2613
  status: response.status
2417
2614
  }));
2615
+ case 1:
2616
+ case "end":
2617
+ return _context.stop();
2418
2618
  }
2419
2619
  }, _callee);
2420
2620
  }));
@@ -2787,11 +2987,11 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
2787
2987
  data: luckysheet.transToCellData(newData)
2788
2988
  });
2789
2989
  };
2790
- _this.resetData = /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
2990
+ _this.resetData = /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
2791
2991
  var _customerColumnsMappi;
2792
2992
  var _this$props, validDataUrl, validDataParams, updateData, columns, isBrandAuth, _this$props$isCheckSt, isCheckStockNum, customerColumnsMapping, checkSharedValue, beforeCheckCallback, resultData, resultColumns, otherParams;
2793
- return _regenerator().w(function (_context) {
2794
- while (1) switch (_context.n) {
2993
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
2994
+ while (1) switch (_context.prev = _context.next) {
2795
2995
  case 0:
2796
2996
  _this$props = _this.props, validDataUrl = _this$props.validDataUrl, validDataParams = _this$props.validDataParams, updateData = _this$props.updateData, columns = _this$props.columns, isBrandAuth = _this$props.isBrandAuth, _this$props$isCheckSt = _this$props.isCheckStockNum, isCheckStockNum = _this$props$isCheckSt === void 0 ? true : _this$props$isCheckSt, customerColumnsMapping = _this$props.customerColumnsMapping, checkSharedValue = _this$props.checkSharedValue, beforeCheckCallback = _this$props.beforeCheckCallback;
2797
2997
  resultData = _this.getData().filter(function (d) {
@@ -2816,19 +3016,19 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
2816
3016
  }
2817
3017
  // 调用回调函数
2818
3018
  if (!beforeCheckCallback) {
2819
- _context.n = 2;
3019
+ _context.next = 12;
2820
3020
  break;
2821
3021
  }
2822
- _context.n = 1;
3022
+ _context.next = 9;
2823
3023
  return beforeCheckCallback(resultData);
2824
- case 1:
2825
- resultData = _context.v;
3024
+ case 9:
3025
+ resultData = _context.sent;
2826
3026
  if (resultData) {
2827
- _context.n = 2;
3027
+ _context.next = 12;
2828
3028
  break;
2829
3029
  }
2830
- return _context.a(2);
2831
- case 2:
3030
+ return _context.abrupt("return");
3031
+ case 12:
2832
3032
  requestUtil.post(validDataUrl, _objectSpread2(_objectSpread2(_objectSpread2({}, otherParams), validDataParams), {}, {
2833
3033
  columns: resultColumns,
2834
3034
  data: resultData,
@@ -2884,8 +3084,9 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
2884
3084
  console.log(setExportData);
2885
3085
  setExportData([123123]);
2886
3086
  }).catch(function (err) {});
2887
- case 3:
2888
- return _context.a(2);
3087
+ case 13:
3088
+ case "end":
3089
+ return _context.stop();
2889
3090
  }
2890
3091
  }, _callee);
2891
3092
  }));
@@ -4577,27 +4778,27 @@ var QueryMutipleSearchSelect = function QueryMutipleSearchSelect(_ref) {
4577
4778
  popvalue = _useState8[0],
4578
4779
  setPopValue = _useState8[1];
4579
4780
  var _useState9 = useState([]),
4580
- _useState0 = _slicedToArray(_useState9, 2),
4581
- source = _useState0[0],
4582
- setSource = _useState0[1];
4781
+ _useState10 = _slicedToArray(_useState9, 2),
4782
+ source = _useState10[0],
4783
+ setSource = _useState10[1];
4583
4784
  var _useDebounceFn = useDebounceFn(function () {
4584
4785
  getData();
4585
4786
  }, {
4586
4787
  wait: 1000
4587
4788
  }),
4588
4789
  run = _useDebounceFn.run;
4589
- var _useState1 = useState(false),
4590
- _useState10 = _slicedToArray(_useState1, 2),
4591
- fetching = _useState10[0],
4592
- setFetching = _useState10[1];
4593
- var _useState11 = useState(''),
4790
+ var _useState11 = useState(false),
4594
4791
  _useState12 = _slicedToArray(_useState11, 2),
4595
- searchValue = _useState12[0],
4596
- setSearchValue = _useState12[1];
4597
- var _useState13 = useState(resultSourceKey),
4792
+ fetching = _useState12[0],
4793
+ setFetching = _useState12[1];
4794
+ var _useState13 = useState(''),
4598
4795
  _useState14 = _slicedToArray(_useState13, 2),
4599
- uniqueValue = _useState14[0],
4600
- setUniqueValue = _useState14[1];
4796
+ searchValue = _useState14[0],
4797
+ setSearchValue = _useState14[1];
4798
+ var _useState15 = useState(resultSourceKey),
4799
+ _useState16 = _slicedToArray(_useState15, 2),
4800
+ uniqueValue = _useState16[0],
4801
+ setUniqueValue = _useState16[1];
4601
4802
  useEffect(function () {
4602
4803
  setPopValue(value);
4603
4804
  onValueChange(value);
@@ -5014,21 +5215,21 @@ var PropertySelector = function PropertySelector(_ref) {
5014
5215
  notCommonProperty = _useState8[0],
5015
5216
  setNotCommonProperty = _useState8[1];
5016
5217
  var _useState9 = useState(false),
5017
- _useState0 = _slicedToArray(_useState9, 2),
5018
- visible = _useState0[0],
5019
- setVisible = _useState0[1];
5020
- var _useState1 = useState(false),
5021
- _useState10 = _slicedToArray(_useState1, 2),
5022
- showNotCommon = _useState10[0],
5023
- setShowNotCommon = _useState10[1]; // 是否展示非常用属性
5024
- var _useState11 = useState([]),
5218
+ _useState10 = _slicedToArray(_useState9, 2),
5219
+ visible = _useState10[0],
5220
+ setVisible = _useState10[1];
5221
+ var _useState11 = useState(false),
5025
5222
  _useState12 = _slicedToArray(_useState11, 2),
5026
- classifyOptionList = _useState12[0],
5027
- setClassifyOptionList = _useState12[1];
5028
- var _useState13 = useState('1'),
5223
+ showNotCommon = _useState12[0],
5224
+ setShowNotCommon = _useState12[1]; // 是否展示非常用属性
5225
+ var _useState13 = useState([]),
5029
5226
  _useState14 = _slicedToArray(_useState13, 2),
5030
- listKey = _useState14[0],
5031
- setListKey = _useState14[1];
5227
+ classifyOptionList = _useState14[0],
5228
+ setClassifyOptionList = _useState14[1];
5229
+ var _useState15 = useState('1'),
5230
+ _useState16 = _slicedToArray(_useState15, 2),
5231
+ listKey = _useState16[0],
5232
+ setListKey = _useState16[1];
5032
5233
  useEffect(function () {
5033
5234
  requestUtil({
5034
5235
  url: '/items/class/withProperty?pageSize=500&currentPage=1',
@@ -5323,7 +5524,9 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
5323
5524
  viewShowValueStr = _ref.viewShowValueStr,
5324
5525
  searchStartLength = _ref.searchStartLength,
5325
5526
  _ref$isQuery = _ref.isQuery,
5326
- isQuery = _ref$isQuery === void 0 ? false : _ref$isQuery;
5527
+ isQuery = _ref$isQuery === void 0 ? false : _ref$isQuery,
5528
+ _ref$requireSearchCon = _ref.requireSearchCondition,
5529
+ requireSearchCondition = _ref$requireSearchCon === void 0 ? false : _ref$requireSearchCon;
5327
5530
  var requestConfig = _objectSpread2({
5328
5531
  url: url,
5329
5532
  method: method,
@@ -5411,29 +5614,29 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
5411
5614
  scrollPage = _useState8[0],
5412
5615
  setScrollPage = _useState8[1];
5413
5616
  var _useState9 = useState(0),
5414
- _useState0 = _slicedToArray(_useState9, 2),
5415
- itemsTotal = _useState0[0],
5416
- setItemsTotal = _useState0[1];
5417
- var _useState1 = useState(false),
5418
- _useState10 = _slicedToArray(_useState1, 2),
5419
- fetching = _useState10[0],
5420
- setFetching = _useState10[1];
5421
- var _useState11 = useState(''),
5617
+ _useState10 = _slicedToArray(_useState9, 2),
5618
+ itemsTotal = _useState10[0],
5619
+ setItemsTotal = _useState10[1];
5620
+ var _useState11 = useState(false),
5422
5621
  _useState12 = _slicedToArray(_useState11, 2),
5423
- searchValue = _useState12[0],
5424
- setSearchValue = _useState12[1];
5425
- var _useState13 = useState(false),
5622
+ fetching = _useState12[0],
5623
+ setFetching = _useState12[1];
5624
+ var _useState13 = useState(''),
5426
5625
  _useState14 = _slicedToArray(_useState13, 2),
5427
- isModalVisible = _useState14[0],
5428
- setIsModalVisible = _useState14[1];
5429
- var _useState15 = useState(initVal),
5626
+ searchValue = _useState14[0],
5627
+ setSearchValue = _useState14[1];
5628
+ var _useState15 = useState(false),
5430
5629
  _useState16 = _slicedToArray(_useState15, 2),
5431
- popvalue = _useState16[0],
5432
- setPopValue = _useState16[1];
5433
- var _useState17 = useState(resultSourceKey),
5630
+ isModalVisible = _useState16[0],
5631
+ setIsModalVisible = _useState16[1];
5632
+ var _useState17 = useState(initVal),
5434
5633
  _useState18 = _slicedToArray(_useState17, 2),
5435
- uniqueValue = _useState18[0],
5436
- setUniqueValue = _useState18[1];
5634
+ popvalue = _useState18[0],
5635
+ setPopValue = _useState18[1];
5636
+ var _useState19 = useState(resultSourceKey),
5637
+ _useState20 = _slicedToArray(_useState19, 2),
5638
+ uniqueValue = _useState20[0],
5639
+ setUniqueValue = _useState20[1];
5437
5640
  var _useDebounceFn = useDebounceFn(function (v) {
5438
5641
  // 优化搜索参数 支持传多个
5439
5642
  var searchParams = {};
@@ -5462,58 +5665,58 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
5462
5665
  var _Form$useForm = Form.useForm(),
5463
5666
  _Form$useForm2 = _slicedToArray(_Form$useForm, 1),
5464
5667
  form = _Form$useForm2[0];
5465
- var _useState19 = useState(true),
5466
- _useState20 = _slicedToArray(_useState19, 2),
5467
- collapsed = _useState20[0],
5468
- setCollapsed = _useState20[1];
5469
5668
  var _useState21 = useState(true),
5470
5669
  _useState22 = _slicedToArray(_useState21, 2),
5471
- caretLeftFlag = _useState22[0],
5472
- setCaretLeftFlag = _useState22[1];
5473
- var _useState23 = useState([]),
5670
+ collapsed = _useState22[0],
5671
+ setCollapsed = _useState22[1];
5672
+ var _useState23 = useState(true),
5474
5673
  _useState24 = _slicedToArray(_useState23, 2),
5475
- tableData = _useState24[0],
5476
- setTableData = _useState24[1];
5477
- var _useState25 = useState(tableInitPagination),
5674
+ caretLeftFlag = _useState24[0],
5675
+ setCaretLeftFlag = _useState24[1];
5676
+ var _useState25 = useState([]),
5478
5677
  _useState26 = _slicedToArray(_useState25, 2),
5479
- tablePagination = _useState26[0],
5480
- setTablePagination = _useState26[1];
5481
- var _useState27 = useState([]),
5678
+ tableData = _useState26[0],
5679
+ setTableData = _useState26[1];
5680
+ var _useState27 = useState(tableInitPagination),
5482
5681
  _useState28 = _slicedToArray(_useState27, 2),
5483
- selectedRowKeys = _useState28[0],
5484
- setSelectedRowKeys = _useState28[1];
5682
+ tablePagination = _useState28[0],
5683
+ setTablePagination = _useState28[1];
5485
5684
  var _useState29 = useState([]),
5486
5685
  _useState30 = _slicedToArray(_useState29, 2),
5487
- selectedRows = _useState30[0],
5488
- setSelectedRows = _useState30[1];
5489
- var _useState31 = useState(false),
5686
+ selectedRowKeys = _useState30[0],
5687
+ setSelectedRowKeys = _useState30[1];
5688
+ var _useState31 = useState([]),
5490
5689
  _useState32 = _slicedToArray(_useState31, 2),
5491
- checkedAll = _useState32[0],
5492
- setCheckedAll = _useState32[1];
5690
+ selectedRows = _useState32[0],
5691
+ setSelectedRows = _useState32[1];
5493
5692
  var _useState33 = useState(false),
5494
5693
  _useState34 = _slicedToArray(_useState33, 2),
5495
- indeterminate = _useState34[0],
5496
- setIndeterminate = _useState34[1];
5497
- var _useState35 = useState({}),
5694
+ checkedAll = _useState34[0],
5695
+ setCheckedAll = _useState34[1];
5696
+ var _useState35 = useState(false),
5498
5697
  _useState36 = _slicedToArray(_useState35, 2),
5499
- tableFormParams = _useState36[0],
5500
- setTableFormParams = _useState36[1];
5501
- var _useState37 = useState(false),
5698
+ indeterminate = _useState36[0],
5699
+ setIndeterminate = _useState36[1];
5700
+ var _useState37 = useState({}),
5502
5701
  _useState38 = _slicedToArray(_useState37, 2),
5503
- tooltipVisible = _useState38[0],
5504
- setTooltipVisible = _useState38[1];
5505
- var _useState39 = useState(handleTableColumns(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableColumns)),
5702
+ tableFormParams = _useState38[0],
5703
+ setTableFormParams = _useState38[1];
5704
+ var _useState39 = useState(false),
5506
5705
  _useState40 = _slicedToArray(_useState39, 2),
5507
- tableShowColumns = _useState40[0],
5508
- setTabletShowColumns = _useState40[1]; // 默认展示表头-modalTableProps?.tableColumns
5509
- var _useState41 = useState(false),
5706
+ tooltipVisible = _useState40[0],
5707
+ setTooltipVisible = _useState40[1];
5708
+ var _useState41 = useState(handleTableColumns(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableColumns)),
5510
5709
  _useState42 = _slicedToArray(_useState41, 2),
5511
- confirmLoading = _useState42[0],
5512
- setConfirmLoading = _useState42[1];
5710
+ tableShowColumns = _useState42[0],
5711
+ setTabletShowColumns = _useState42[1]; // 默认展示表头-modalTableProps?.tableColumns
5513
5712
  var _useState43 = useState(false),
5514
5713
  _useState44 = _slicedToArray(_useState43, 2),
5515
- modalSearched = _useState44[0],
5516
- setModalSearched = _useState44[1];
5714
+ confirmLoading = _useState44[0],
5715
+ setConfirmLoading = _useState44[1];
5716
+ var _useState45 = useState(false),
5717
+ _useState46 = _slicedToArray(_useState45, 2),
5718
+ modalSearched = _useState46[0],
5719
+ setModalSearched = _useState46[1];
5517
5720
  var setSelectDataSource = function setSelectDataSource(list, total) {
5518
5721
  setItems(list);
5519
5722
  setItemsTotal(total);
@@ -5886,6 +6089,16 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
5886
6089
  };
5887
6090
  var onSearchTable = function onSearchTable() {
5888
6091
  var params = form.getFieldsValue();
6092
+ // 必须选择一个值
6093
+ if (requireSearchCondition) {
6094
+ var hasValidValue = Object.values(params).some(function (value) {
6095
+ return Array.isArray(value) && value.length > 0 || typeof value === 'string' && value.trim().length > 0;
6096
+ });
6097
+ if (!hasValidValue) {
6098
+ message$1.warning('请至少选择一个搜索条件');
6099
+ return;
6100
+ }
6101
+ }
5889
6102
  setModalSearched(true);
5890
6103
  setTableFormParams(params);
5891
6104
  getData(_objectSpread2(_objectSpread2({}, params), {}, {
@@ -5991,7 +6204,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
5991
6204
  })) || [];
5992
6205
  var searchList = (modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.noEmptySearchField) ? list : list === null || list === void 0 ? void 0 : list.concat(addKong);
5993
6206
  return searchList.map(function (i, index) {
5994
- var _i$field, _i$field3, _i$field5, _i$field7, _i$field9, _i$field0, _i$field1, _i$field10, _i$field12, _i$field13;
6207
+ var _i$field, _i$field3, _i$field5, _i$field7, _i$field9, _i$field10, _i$field11, _i$field12, _i$field14, _i$field15;
5995
6208
  if ((i === null || i === void 0 ? void 0 : i.type) === 'kong') return /*#__PURE__*/React$1.createElement(Col, {
5996
6209
  span: ColSpan,
5997
6210
  key: i
@@ -6089,7 +6302,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
6089
6302
  disabled: setDisabled(i.name)
6090
6303
  }))));
6091
6304
  }
6092
- 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') {
6305
+ 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') {
6093
6306
  return /*#__PURE__*/React$1.createElement(Col, {
6094
6307
  span: ColSpan,
6095
6308
  key: i.name
@@ -6103,7 +6316,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
6103
6316
  }
6104
6317
  })));
6105
6318
  }
6106
- if ((i === null || i === void 0 ? void 0 : (_i$field1 = i.field) === null || _i$field1 === void 0 ? void 0 : _i$field1.type) === 'proppertySelector') {
6319
+ if ((i === null || i === void 0 ? void 0 : (_i$field11 = i.field) === null || _i$field11 === void 0 ? void 0 : _i$field11.type) === 'proppertySelector') {
6107
6320
  return /*#__PURE__*/React$1.createElement(Col, {
6108
6321
  span: ColSpan,
6109
6322
  key: i.name
@@ -6113,8 +6326,8 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
6113
6326
  key: i.name
6114
6327
  }, /*#__PURE__*/React$1.createElement(PropertySelector, null)));
6115
6328
  }
6116
- 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') {
6117
- var _i$field11;
6329
+ 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') {
6330
+ var _i$field13;
6118
6331
  return /*#__PURE__*/React$1.createElement(Col, {
6119
6332
  span: ColSpan,
6120
6333
  key: i.name
@@ -6127,9 +6340,9 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
6127
6340
  width: '100%'
6128
6341
  },
6129
6342
  placeholder: "\u8BF7\u9009\u62E9"
6130
- }, i === null || i === void 0 ? void 0 : (_i$field11 = i.field) === null || _i$field11 === void 0 ? void 0 : _i$field11.props))));
6343
+ }, i === null || i === void 0 ? void 0 : (_i$field13 = i.field) === null || _i$field13 === void 0 ? void 0 : _i$field13.props))));
6131
6344
  }
6132
- if ((i === null || i === void 0 ? void 0 : (_i$field12 = i.field) === null || _i$field12 === void 0 ? void 0 : _i$field12.type) === 'multipleQuerySearchSelect') {
6345
+ if ((i === null || i === void 0 ? void 0 : (_i$field14 = i.field) === null || _i$field14 === void 0 ? void 0 : _i$field14.type) === 'multipleQuerySearchSelect') {
6133
6346
  return /*#__PURE__*/React$1.createElement(Col, {
6134
6347
  span: ColSpan,
6135
6348
  key: i.name
@@ -6158,7 +6371,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
6158
6371
  placeholder: "\u8BF7\u8F93\u5165",
6159
6372
  allowClear: true,
6160
6373
  maxLength: 100
6161
- }, i === null || i === void 0 ? void 0 : (_i$field13 = i.field) === null || _i$field13 === void 0 ? void 0 : _i$field13.props), {}, {
6374
+ }, i === null || i === void 0 ? void 0 : (_i$field15 = i.field) === null || _i$field15 === void 0 ? void 0 : _i$field15.props), {}, {
6162
6375
  disabled: setDisabled(i.name)
6163
6376
  }))));
6164
6377
  });
@@ -6180,7 +6393,26 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
6180
6393
  });
6181
6394
  };
6182
6395
  var renderShowTable = function renderShowTable(tableList, type) {
6183
- var tableBoxHeighth = getTableHeigth(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableSearchForm);
6396
+ var _modalTableProps$tabl;
6397
+ var viCount = (modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.visibleFieldsCount) || defaultVisibleFieldsCount;
6398
+ var canExpand = hasMoreQueryFields(modalTableProps);
6399
+ var collapsedList = modalTableProps === null || modalTableProps === void 0 ? void 0 : (_modalTableProps$tabl = modalTableProps.tableSearchForm) === null || _modalTableProps$tabl === void 0 ? void 0 : _modalTableProps$tabl.slice(0, viCount);
6400
+ var baseHeight = getTableHeigth(collapsedList);
6401
+ var rowsCollapsed = getFormRowInfo(collapsedList, modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableSearchColSpan).totalRows;
6402
+ var rowsExpandedData = getFormRowInfo(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableSearchForm, modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableSearchColSpan);
6403
+ var rowsExpanded = rowsExpandedData.totalRows;
6404
+ var isMoreAction = false;
6405
+ if (24 / (modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableSearchColSpan) - rowsExpandedData.emptyArray.length === 1) {
6406
+ rowsExpanded++;
6407
+ isMoreAction = true;
6408
+ }
6409
+ var extraRows = !collapsed && canExpand ? Math.max(0, rowsExpanded - rowsCollapsed) : 0;
6410
+ var tableBoxHeighth = baseHeight;
6411
+ if (isMoreAction && extraRows > 0) {
6412
+ tableBoxHeighth = tableBoxHeighth + (extraRows - 1 ? extraRows - 1 : 0) * 34 + 32;
6413
+ } else {
6414
+ tableBoxHeighth = tableBoxHeighth + extraRows * 34;
6415
+ }
6184
6416
  var x = (tableList === null || tableList === void 0 ? void 0 : tableList.length) ? 82 : 28; // 无数据没有分页,有数据计算减去:分页 24+16*2+10 「高 + margin * 2 + paddingBottom 10 」
6185
6417
  var oSY = "calc(100vh - ".concat(tableBoxHeighth, "px - ").concat(x, "px)");
6186
6418
  var mTB = "calc(50vh - ".concat(tableBoxHeighth / 2, "px - ").concat(x / 2, "px - 40px)");
@@ -7478,132 +7710,135 @@ var AddSelect = function AddSelect(props) {
7478
7710
  _Form$useForm2 = _slicedToArray(_Form$useForm, 1),
7479
7711
  form = _Form$useForm2[0];
7480
7712
  var _useState9 = useState(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableSearchForm),
7481
- _useState0 = _slicedToArray(_useState9, 2),
7482
- tableSearchForm = _useState0[0],
7483
- setTableSearchForm = _useState0[1];
7484
- var _useState1 = useState(true),
7485
- _useState10 = _slicedToArray(_useState1, 2),
7486
- caretLeftFlag = _useState10[0],
7487
- setCaretLeftFlag = _useState10[1];
7488
- var _useState11 = useState([]),
7713
+ _useState10 = _slicedToArray(_useState9, 2),
7714
+ tableSearchForm = _useState10[0],
7715
+ setTableSearchForm = _useState10[1];
7716
+ var _useState11 = useState(true),
7489
7717
  _useState12 = _slicedToArray(_useState11, 2),
7490
- tableData = _useState12[0],
7491
- setTableData = _useState12[1];
7492
- var _useState13 = useState(_objectSpread2({
7718
+ caretLeftFlag = _useState12[0],
7719
+ setCaretLeftFlag = _useState12[1];
7720
+ var _useState13 = useState([]),
7721
+ _useState14 = _slicedToArray(_useState13, 2),
7722
+ tableData = _useState14[0],
7723
+ setTableData = _useState14[1];
7724
+ var _useState15 = useState(_objectSpread2({
7493
7725
  total: 0,
7494
7726
  size: "small",
7495
7727
  current: 1,
7496
7728
  pageSize: tableInitPageSize
7497
7729
  }, modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.topTablePagination)),
7498
- _useState14 = _slicedToArray(_useState13, 2),
7499
- tablePagination = _useState14[0],
7500
- setTablePagination = _useState14[1];
7501
- var _useState15 = useState([]),
7502
7730
  _useState16 = _slicedToArray(_useState15, 2),
7503
- selectedRowKeys = _useState16[0],
7504
- setSelectedRowKeys = _useState16[1];
7505
- var _useState17 = useState({}),
7731
+ tablePagination = _useState16[0],
7732
+ setTablePagination = _useState16[1];
7733
+ var _useState17 = useState([]),
7506
7734
  _useState18 = _slicedToArray(_useState17, 2),
7507
- tableFormParams = _useState18[0],
7508
- setTableFormParams = _useState18[1];
7509
- var _useState19 = useState(false),
7735
+ selectedRowKeys = _useState18[0],
7736
+ setSelectedRowKeys = _useState18[1];
7737
+ var _useState19 = useState({}),
7510
7738
  _useState20 = _slicedToArray(_useState19, 2),
7511
- confirmLoading = _useState20[0],
7512
- setConfirmLoading = _useState20[1];
7739
+ tableFormParams = _useState20[0],
7740
+ setTableFormParams = _useState20[1];
7513
7741
  var _useState21 = useState(false),
7514
7742
  _useState22 = _slicedToArray(_useState21, 2),
7515
- confirmContinueLoading = _useState22[0],
7516
- setConfirmContinueLoading = _useState22[1];
7517
- var _useState23 = useState([]),
7743
+ confirmLoading = _useState22[0],
7744
+ setConfirmLoading = _useState22[1];
7745
+ var _useState23 = useState(false),
7518
7746
  _useState24 = _slicedToArray(_useState23, 2),
7519
- selectColumns = _useState24[0],
7520
- setSelectColumns = _useState24[1];
7747
+ confirmContinueLoading = _useState24[0],
7748
+ setConfirmContinueLoading = _useState24[1];
7521
7749
  var _useState25 = useState([]),
7522
7750
  _useState26 = _slicedToArray(_useState25, 2),
7523
- showColumns = _useState26[0],
7524
- setShowColumns = _useState26[1];
7751
+ selectColumns = _useState26[0],
7752
+ setSelectColumns = _useState26[1];
7525
7753
  var _useState27 = useState([]),
7526
7754
  _useState28 = _slicedToArray(_useState27, 2),
7527
- tableColumns = _useState28[0],
7528
- setTableColumns = _useState28[1];
7755
+ showColumns = _useState28[0],
7756
+ setShowColumns = _useState28[1];
7529
7757
  var _useState29 = useState([]),
7530
7758
  _useState30 = _slicedToArray(_useState29, 2),
7531
- showToChooseColumns = _useState30[0],
7532
- setShowToChooseColumns = _useState30[1];
7759
+ tableColumns = _useState30[0],
7760
+ setTableColumns = _useState30[1];
7761
+ var _useState31 = useState([]),
7762
+ _useState32 = _slicedToArray(_useState31, 2),
7763
+ showToChooseColumns = _useState32[0],
7764
+ setShowToChooseColumns = _useState32[1];
7533
7765
  var codeToChoose = tableCodeList[0] || initTableCode[businessType][0];
7534
7766
  var codeSelected = tableCodeList[1] || initTableCode[businessType][1];
7535
7767
  // FIXME: 特殊业务逻辑
7536
7768
  var checkSelectChange = /*#__PURE__*/function () {
7537
- var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
7538
- var result, _t;
7539
- return _regenerator().w(function (_context) {
7540
- while (1) switch (_context.p = _context.n) {
7769
+ var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
7770
+ var result;
7771
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
7772
+ while (1) switch (_context.prev = _context.next) {
7541
7773
  case 0:
7542
7774
  if (!(bType == 'skc' && tList.some(function (i) {
7543
7775
  return i[recordKey] == recordItem[recordKey] && i[selectItem.dataIndex] == changeValue;
7544
7776
  }))) {
7545
- _context.n = 1;
7777
+ _context.next = 3;
7546
7778
  break;
7547
7779
  }
7548
7780
  message$1.warning('相同skc配码不可设置相同哦');
7549
- return _context.a(2, false);
7550
- case 1:
7781
+ return _context.abrupt("return", false);
7782
+ case 3:
7551
7783
  if (!(bType == 'spu')) {
7552
- _context.n = 9;
7784
+ _context.next = 26;
7553
7785
  break;
7554
7786
  }
7555
7787
  if (!(selectItem.dataIndex == 'colorName' && tList.some(function (i) {
7556
7788
  return i[recordKey] == recordItem[recordKey] && i.selectPropertyGroupCode == recordItem.selectPropertyGroupCode && i[selectItem.dataIndex] == changeValue;
7557
7789
  }))) {
7558
- _context.n = 2;
7790
+ _context.next = 7;
7559
7791
  break;
7560
7792
  }
7561
7793
  message$1.warning('相同商品相同配码颜色不可设置相同哦');
7562
- return _context.a(2, false);
7563
- case 2:
7794
+ return _context.abrupt("return", false);
7795
+ case 7:
7564
7796
  if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && !recordItem.colorName)) {
7565
- _context.n = 3;
7797
+ _context.next = 10;
7566
7798
  break;
7567
7799
  }
7568
7800
  message$1.warning('请先选择颜色!');
7569
- return _context.a(2, false);
7570
- case 3:
7801
+ return _context.abrupt("return", false);
7802
+ case 10:
7571
7803
  if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && tList.some(function (i) {
7572
7804
  return i[recordKey] == recordItem[recordKey] && i.colorName == recordItem.colorName && i[selectItem.dataIndex] == changeValue;
7573
7805
  }))) {
7574
- _context.n = 4;
7806
+ _context.next = 13;
7575
7807
  break;
7576
7808
  }
7577
7809
  message$1.warning('相同商品相同颜色配码不可设置相同哦');
7578
- return _context.a(2, false);
7579
- case 4:
7810
+ return _context.abrupt("return", false);
7811
+ case 13:
7580
7812
  if (!(selectItem.dataIndex == 'selectPropertyGroupCode')) {
7581
- _context.n = 9;
7813
+ _context.next = 26;
7582
7814
  break;
7583
7815
  }
7584
7816
  result = true;
7585
- _context.p = 5;
7586
- _context.n = 6;
7817
+ _context.prev = 15;
7818
+ _context.next = 18;
7587
7819
  return checkSpuMatchCode({
7588
7820
  skcCode: recordItem[recordKey],
7589
7821
  matchingCode: changeValue,
7590
7822
  ext1: recordItem.colorName
7591
7823
  });
7592
- case 6:
7593
- result = _context.v;
7824
+ case 18:
7825
+ result = _context.sent;
7594
7826
  result = true;
7595
- _context.n = 8;
7827
+ _context.next = 25;
7596
7828
  break;
7597
- case 7:
7598
- _context.p = 7;
7599
- _t = _context.v;
7600
- result = typeof _t == 'boolean' ? _t : false;
7601
- case 8:
7602
- return _context.a(2, result);
7603
- case 9:
7604
- return _context.a(2, true);
7605
- }
7606
- }, _callee, null, [[5, 7]]);
7829
+ case 22:
7830
+ _context.prev = 22;
7831
+ _context.t0 = _context["catch"](15);
7832
+ result = typeof _context.t0 == 'boolean' ? _context.t0 : false;
7833
+ case 25:
7834
+ return _context.abrupt("return", result);
7835
+ case 26:
7836
+ return _context.abrupt("return", true);
7837
+ case 27:
7838
+ case "end":
7839
+ return _context.stop();
7840
+ }
7841
+ }, _callee, null, [[15, 22]]);
7607
7842
  }));
7608
7843
  return function checkSelectChange(_x, _x2, _x3, _x4, _x5, _x6) {
7609
7844
  return _ref2.apply(this, arguments);
@@ -7694,16 +7929,17 @@ var AddSelect = function AddSelect(props) {
7694
7929
  e.target.blur();
7695
7930
  },
7696
7931
  onBlur: function () {
7697
- var _onBlur = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(e) {
7932
+ var _onBlur = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(e) {
7698
7933
  var value;
7699
- return _regenerator().w(function (_context2) {
7700
- while (1) switch (_context2.n) {
7934
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
7935
+ while (1) switch (_context2.prev = _context2.next) {
7701
7936
  case 0:
7702
7937
  value = e.target.value;
7703
7938
  record[item.dataIndex] = value;
7704
7939
  editRecord(record);
7705
- case 1:
7706
- return _context2.a(2);
7940
+ case 3:
7941
+ case "end":
7942
+ return _context2.stop();
7707
7943
  }
7708
7944
  }, _callee2);
7709
7945
  }));
@@ -7863,10 +8099,10 @@ var AddSelect = function AddSelect(props) {
7863
8099
  }
7864
8100
  _dom6 = null;
7865
8101
  } else if (e.keyCode === 38) {
7866
- var _e$nativeEvent$path$0;
8102
+ var _e$nativeEvent$path$10;
7867
8103
  e.stopPropagation();
7868
8104
  e.preventDefault();
7869
- var dom1 = (_e$nativeEvent$path$0 = e.nativeEvent.path[5].children[index]) === null || _e$nativeEvent$path$0 === void 0 ? void 0 : _e$nativeEvent$path$0.getElementsByTagName('input')[currentIndex];
8105
+ 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];
7870
8106
  if (dom1) {
7871
8107
  // dom1.value=""
7872
8108
  // dom1.setSelectionRange(100, 0);
@@ -7900,19 +8136,19 @@ var AddSelect = function AddSelect(props) {
7900
8136
  return /*#__PURE__*/React$1.createElement(Select, _objectSpread2(_objectSpread2({}, item.selectProps), {}, {
7901
8137
  value: text || null,
7902
8138
  onChange: function () {
7903
- var _onChange = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(value) {
7904
- var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules, _t2;
7905
- return _regenerator().w(function (_context3) {
7906
- while (1) switch (_context3.p = _context3.n) {
8139
+ var _onChange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(value) {
8140
+ var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules;
8141
+ return _regeneratorRuntime().wrap(function _callee3$(_context3) {
8142
+ while (1) switch (_context3.prev = _context3.next) {
7907
8143
  case 0:
7908
8144
  dataSourceSelectItem = (dataSourceList === null || dataSourceList === void 0 ? void 0 : dataSourceList.find(function (d) {
7909
8145
  return d[selectKey] == value;
7910
8146
  })) || {};
7911
8147
  if (!(item === null || item === void 0 ? void 0 : item.selectChangeCallback)) {
7912
- _context3.n = 2;
8148
+ _context3.next = 6;
7913
8149
  break;
7914
8150
  }
7915
- _context3.n = 1;
8151
+ _context3.next = 4;
7916
8152
  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, {
7917
8153
  record: record,
7918
8154
  index: index,
@@ -7922,10 +8158,10 @@ var AddSelect = function AddSelect(props) {
7922
8158
  dataSourceSelectItem: dataSourceSelectItem,
7923
8159
  editRecord: editRecord
7924
8160
  });
7925
- case 1:
7926
- _context3.n = 10;
8161
+ case 4:
8162
+ _context3.next = 25;
7927
8163
  break;
7928
- case 2:
8164
+ case 6:
7929
8165
  // 更新当前行数据函数
7930
8166
  changeValue = function changeValue(v, dSSItem) {
7931
8167
  var _item$dataSourceSelec;
@@ -7938,12 +8174,12 @@ var AddSelect = function AddSelect(props) {
7938
8174
  }
7939
8175
  }; // 处理校验,默认不校验
7940
8176
  isCheckPass = true;
7941
- _context3.p = 3;
8177
+ _context3.prev = 8;
7942
8178
  if (!(item === null || item === void 0 ? void 0 : item.selectCheckCallback)) {
7943
- _context3.n = 5;
8179
+ _context3.next = 15;
7944
8180
  break;
7945
8181
  }
7946
- _context3.n = 4;
8182
+ _context3.next = 12;
7947
8183
  return item === null || item === void 0 ? void 0 : item.selectCheckCallback(popvalue, {
7948
8184
  record: record,
7949
8185
  index: index,
@@ -7952,23 +8188,23 @@ var AddSelect = function AddSelect(props) {
7952
8188
  changeValue: value,
7953
8189
  dataSourceSelectItem: dataSourceSelectItem
7954
8190
  });
7955
- case 4:
7956
- isCheckPass = _context3.v;
7957
- _context3.n = 7;
8191
+ case 12:
8192
+ isCheckPass = _context3.sent;
8193
+ _context3.next = 19;
7958
8194
  break;
7959
- case 5:
7960
- _context3.n = 6;
8195
+ case 15:
8196
+ _context3.next = 17;
7961
8197
  return checkSelectChange(businessType, popvalue, mappingValueField, record, item, value);
7962
- case 6:
7963
- isConformToTheRules = _context3.v;
8198
+ case 17:
8199
+ isConformToTheRules = _context3.sent;
7964
8200
  isCheckPass = !isConformToTheRules;
7965
- case 7:
7966
- _context3.n = 9;
8201
+ case 19:
8202
+ _context3.next = 23;
7967
8203
  break;
7968
- case 8:
7969
- _context3.p = 8;
7970
- _t2 = _context3.v;
7971
- case 9:
8204
+ case 21:
8205
+ _context3.prev = 21;
8206
+ _context3.t0 = _context3["catch"](8);
8207
+ case 23:
7972
8208
  if (isCheckPass) {
7973
8209
  changeValue(value, dataSourceSelectItem);
7974
8210
  } else {
@@ -7976,10 +8212,11 @@ var AddSelect = function AddSelect(props) {
7976
8212
  }
7977
8213
  // 更新已选表格函数
7978
8214
  editRecord(record);
7979
- case 10:
7980
- return _context3.a(2);
8215
+ case 25:
8216
+ case "end":
8217
+ return _context3.stop();
7981
8218
  }
7982
- }, _callee3, null, [[3, 8]]);
8219
+ }, _callee3, null, [[8, 21]]);
7983
8220
  }));
7984
8221
  function onChange(_x8) {
7985
8222
  return _onChange.apply(this, arguments);
@@ -9370,29 +9607,29 @@ var BillEntry = function BillEntry(_ref3) {
9370
9607
  dataIndex: 'propertyNameAndValue'
9371
9608
  }];
9372
9609
  var _useState9 = useState(false),
9373
- _useState0 = _slicedToArray(_useState9, 2),
9374
- isModalVisible = _useState0[0],
9375
- setIsModalVisible = _useState0[1];
9376
- var _useState1 = useState([{
9610
+ _useState10 = _slicedToArray(_useState9, 2),
9611
+ isModalVisible = _useState10[0],
9612
+ setIsModalVisible = _useState10[1];
9613
+ var _useState11 = useState([{
9377
9614
  hovered: false
9378
9615
  }]),
9379
- _useState10 = _slicedToArray(_useState1, 2),
9380
- data = _useState10[0],
9381
- setData = _useState10[1];
9616
+ _useState12 = _slicedToArray(_useState11, 2),
9617
+ data = _useState12[0],
9618
+ setData = _useState12[1];
9382
9619
  var tableRef = useRef(null);
9383
9620
  var codeSelected = tableCode;
9384
- var _useState11 = useState(false),
9385
- _useState12 = _slicedToArray(_useState11, 2),
9386
- loading = _useState12[0],
9387
- setLoading = _useState12[1];
9388
- var _useState13 = useState([]),
9621
+ var _useState13 = useState(false),
9389
9622
  _useState14 = _slicedToArray(_useState13, 2),
9390
- selectColumns = _useState14[0],
9391
- setSelectColumns = _useState14[1];
9623
+ loading = _useState14[0],
9624
+ setLoading = _useState14[1];
9392
9625
  var _useState15 = useState([]),
9393
9626
  _useState16 = _slicedToArray(_useState15, 2),
9394
- showColumns = _useState16[0],
9395
- setShowColumns = _useState16[1];
9627
+ selectColumns = _useState16[0],
9628
+ setSelectColumns = _useState16[1];
9629
+ var _useState17 = useState([]),
9630
+ _useState18 = _slicedToArray(_useState17, 2),
9631
+ showColumns = _useState18[0],
9632
+ setShowColumns = _useState18[1];
9396
9633
  useEffect(function () {
9397
9634
  setSelectColumns([].concat(_toConsumableArray(columns.map(function (item) {
9398
9635
  var inputLength = columns.filter(function (item) {
@@ -9508,42 +9745,42 @@ var BillEntry = function BillEntry(_ref3) {
9508
9745
  });
9509
9746
  };
9510
9747
  var handleSubmit = /*#__PURE__*/function () {
9511
- var _ref4 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
9748
+ var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
9512
9749
  var canEntryObject, _canEntryObject$error, messageInfo;
9513
- return _regenerator().w(function (_context) {
9514
- while (1) switch (_context.n) {
9750
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
9751
+ while (1) switch (_context.prev = _context.next) {
9515
9752
  case 0:
9516
9753
  if (data === null || data === void 0 ? void 0 : data.length) {
9517
- _context.n = 1;
9754
+ _context.next = 3;
9518
9755
  break;
9519
9756
  }
9520
9757
  message$1.warning('至少录入一条数据');
9521
- return _context.a(2);
9522
- case 1:
9758
+ return _context.abrupt("return");
9759
+ case 3:
9523
9760
  if (data === null || data === void 0 ? void 0 : data.every(function (d) {
9524
9761
  return d.skuCode && d.name;
9525
9762
  })) {
9526
- _context.n = 2;
9763
+ _context.next = 6;
9527
9764
  break;
9528
9765
  }
9529
9766
  message$1.warning('录入商品不存在');
9530
- return _context.a(2);
9531
- case 2:
9767
+ return _context.abrupt("return");
9768
+ case 6:
9532
9769
  if (data === null || data === void 0 ? void 0 : data.every(function (d) {
9533
9770
  return d.count;
9534
9771
  })) {
9535
- _context.n = 3;
9772
+ _context.next = 9;
9536
9773
  break;
9537
9774
  }
9538
9775
  message$1.warning('请填写商品数量!');
9539
- return _context.a(2);
9540
- case 3:
9541
- _context.n = 4;
9776
+ return _context.abrupt("return");
9777
+ case 9:
9778
+ _context.next = 11;
9542
9779
  return isSkuCanEntry(data);
9543
- case 4:
9544
- canEntryObject = _context.v;
9780
+ case 11:
9781
+ canEntryObject = _context.sent;
9545
9782
  if (!((canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.flag) === false)) {
9546
- _context.n = 5;
9783
+ _context.next = 16;
9547
9784
  break;
9548
9785
  }
9549
9786
  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) {
@@ -9553,8 +9790,8 @@ var BillEntry = function BillEntry(_ref3) {
9553
9790
  content: messageInfo,
9554
9791
  duration: 6
9555
9792
  });
9556
- return _context.a(2);
9557
- case 5:
9793
+ return _context.abrupt("return");
9794
+ case 16:
9558
9795
  setLoading(true);
9559
9796
  onSaveCallback(data).then(function (res) {
9560
9797
  {
@@ -9572,8 +9809,9 @@ var BillEntry = function BillEntry(_ref3) {
9572
9809
  message$1.error(Error);
9573
9810
  setLoading(false);
9574
9811
  });
9575
- case 6:
9576
- return _context.a(2);
9812
+ case 18:
9813
+ case "end":
9814
+ return _context.stop();
9577
9815
  }
9578
9816
  }, _callee);
9579
9817
  }));
@@ -11882,18 +12120,18 @@ function commonFun(type, prefixUrl, parentProps) {
11882
12120
  name: 'qp-code-like',
11883
12121
  label: '客户编码'
11884
12122
  }, {
11885
- name: 'qp-createOrgCode-eq',
12123
+ name: 'qp-createOrgCode-in',
11886
12124
  type: 'select',
11887
12125
  label: '创建组织',
11888
12126
  field: {
11889
12127
  type: 'select',
11890
12128
  props: {
11891
- // mode: 'multiple',
12129
+ mode: 'multiple',
11892
12130
  notFoundContent: '暂无数据',
11893
12131
  allowClear: true,
11894
12132
  showSearch: true,
11895
12133
  showArrow: true,
11896
- // maxTagCount: 1,
12134
+ maxTagCount: 1,
11897
12135
  optionFilterProp: 'children',
11898
12136
  filterOption: function filterOption(input, option) {
11899
12137
  return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
@@ -11964,17 +12202,17 @@ function commonFun(type, prefixUrl, parentProps) {
11964
12202
  }
11965
12203
  }
11966
12204
  }];
11967
- var _queryHeaderParams0 = getQueryHeadersList({
12205
+ var _queryHeaderParams10 = getQueryHeadersList({
11968
12206
  querySelectHeadersList: querySelectHeadersList,
11969
12207
  extralHeaders: extralHeaders
11970
12208
  });
11971
- Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/org/listNoPage"), {}, getQueryHeadersItem(_queryHeaderParams0, 'qp-createOrgCode-eq')), loadSelectSource$1("/channel-manage/channelInfo/tree", {
12209
+ Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/org/listNoPage"), {}, getQueryHeadersItem(_queryHeaderParams10, 'qp-createOrgCode-eq')), loadSelectSource$1("/channel-manage/channelInfo/tree", {
11972
12210
  'qp-status-eq': 10,
11973
12211
  'qp-isMain-eq': 1,
11974
12212
  'qp-type-in': '1,2'
11975
- }, getQueryHeadersItem(_queryHeaderParams0, 'qp-orgCode-in')), loadSelectSource$1("/channel-manage/tagNode/getTree/10", {
12213
+ }, getQueryHeadersItem(_queryHeaderParams10, 'qp-orgCode-in')), loadSelectSource$1("/channel-manage/tagNode/getTree/10", {
11976
12214
  'qp-status-eq': 1
11977
- }, getQueryHeadersItem(_queryHeaderParams0, 'qp-orgCode-in'))]).then(function (x) {
12215
+ }, getQueryHeadersItem(_queryHeaderParams10, 'qp-orgCode-in'))]).then(function (x) {
11978
12216
  var firstElement = x === null || x === void 0 ? void 0 : x[0];
11979
12217
  var allList = firstElement && [firstElement, firstElement];
11980
12218
  formatSource(allList, 0, 2, tableSearchForm);
@@ -12160,7 +12398,7 @@ function commonFun(type, prefixUrl, parentProps) {
12160
12398
  }
12161
12399
  }
12162
12400
  }];
12163
- var _queryHeaderParams1 = getQueryHeadersList({
12401
+ var _queryHeaderParams11 = getQueryHeadersList({
12164
12402
  querySelectHeadersList: querySelectHeadersList,
12165
12403
  extralHeaders: extralHeaders
12166
12404
  });
@@ -12168,21 +12406,21 @@ function commonFun(type, prefixUrl, parentProps) {
12168
12406
  pageSize: 5000,
12169
12407
  currentPage: 1,
12170
12408
  'qp-companyType-eq': '30'
12171
- }, getQueryHeadersItem(_queryHeaderParams1, 'qp-conglomerateCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/company"), {
12409
+ }, getQueryHeadersItem(_queryHeaderParams11, 'qp-conglomerateCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/company"), {
12172
12410
  pageSize: 5000,
12173
12411
  currentPage: 1,
12174
12412
  'qp-companyType-eq': '20'
12175
- }, getQueryHeadersItem(_queryHeaderParams1, 'qp-companyCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/platformRecord/getPlatformRecordList"), {
12413
+ }, getQueryHeadersItem(_queryHeaderParams11, 'qp-companyCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/platformRecord/getPlatformRecordList"), {
12176
12414
  // pageSize: 5000,
12177
12415
  // currentPage: 1,
12178
12416
  'qp-status-eq': '1'
12179
- }, getQueryHeadersItem(_queryHeaderParams1, 'qp-plateformCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/store"), {
12417
+ }, getQueryHeadersItem(_queryHeaderParams11, 'qp-plateformCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/store"), {
12180
12418
  pageSize: 5000,
12181
12419
  currentPage: 1
12182
- }, getQueryHeadersItem(_queryHeaderParams1, 'qp-mainBrandCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/accountingSubject"), {
12420
+ }, getQueryHeadersItem(_queryHeaderParams11, 'qp-mainBrandCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/accountingSubject"), {
12183
12421
  pageSize: 5000,
12184
12422
  currentPage: 1
12185
- }, getQueryHeadersItem(_queryHeaderParams1, 'qp-accountingCode-in'))]).then(function (x) {
12423
+ }, getQueryHeadersItem(_queryHeaderParams11, 'qp-accountingCode-in'))]).then(function (x) {
12186
12424
  formatSource(x, 0, 2, tableSearchForm);
12187
12425
  formatSource(x, 1, 3, tableSearchForm);
12188
12426
  formatSource(x, 2, 5, tableSearchForm);
@@ -12371,26 +12609,102 @@ function commonFun(type, prefixUrl, parentProps) {
12371
12609
  }
12372
12610
  }, {
12373
12611
  name: 'qp-manageSupervisor-like',
12612
+ type: 'select',
12374
12613
  label: '管理督导',
12375
- type: 'input'
12614
+ field: {
12615
+ type: 'select',
12616
+ props: {
12617
+ notFoundContent: '暂无数据',
12618
+ allowClear: true,
12619
+ showSearch: true,
12620
+ showArrow: true,
12621
+ maxTagCount: 1,
12622
+ optionFilterProp: 'children',
12623
+ filterOption: function filterOption(input, option) {
12624
+ var _option$value;
12625
+ debugger;
12626
+ return ((_option$value = option === null || option === void 0 ? void 0 : option.value) !== null && _option$value !== void 0 ? _option$value : '').toLowerCase().includes(input.toLowerCase());
12627
+ }
12628
+ }
12629
+ }
12376
12630
  }, {
12377
12631
  name: 'qp-directSupervisor-like',
12632
+ type: 'select',
12378
12633
  label: '直接督导',
12379
- type: 'input'
12634
+ field: {
12635
+ type: 'select',
12636
+ props: {
12637
+ notFoundContent: '暂无数据',
12638
+ allowClear: true,
12639
+ showSearch: true,
12640
+ showArrow: true,
12641
+ maxTagCount: 1,
12642
+ optionFilterProp: 'children',
12643
+ filterOption: function filterOption(input, option) {
12644
+ var _option$value2;
12645
+ return ((_option$value2 = option === null || option === void 0 ? void 0 : option.value) !== null && _option$value2 !== void 0 ? _option$value2 : '').toLowerCase().includes(input.toLowerCase());
12646
+ }
12647
+ }
12648
+ }
12380
12649
  }, {
12381
12650
  name: 'qp-distributionItem-like',
12651
+ type: 'select',
12382
12652
  label: '分销商品',
12383
- type: 'input'
12653
+ field: {
12654
+ type: 'select',
12655
+ props: {
12656
+ notFoundContent: '暂无数据',
12657
+ allowClear: true,
12658
+ showSearch: true,
12659
+ showArrow: true,
12660
+ maxTagCount: 1,
12661
+ optionFilterProp: 'children',
12662
+ filterOption: function filterOption(input, option) {
12663
+ var _option$value3;
12664
+ return ((_option$value3 = option === null || option === void 0 ? void 0 : option.value) !== null && _option$value3 !== void 0 ? _option$value3 : '').toLowerCase().includes(input.toLowerCase());
12665
+ }
12666
+ }
12667
+ }
12384
12668
  }, {
12385
12669
  name: 'qp-headItem-like',
12670
+ type: 'select',
12386
12671
  label: '总部商品',
12387
- type: 'input'
12672
+ field: {
12673
+ type: 'select',
12674
+ props: {
12675
+ notFoundContent: '暂无数据',
12676
+ allowClear: true,
12677
+ showSearch: true,
12678
+ showArrow: true,
12679
+ maxTagCount: 1,
12680
+ optionFilterProp: 'children',
12681
+ filterOption: function filterOption(input, option) {
12682
+ var _option$value4;
12683
+ return ((_option$value4 = option === null || option === void 0 ? void 0 : option.value) !== null && _option$value4 !== void 0 ? _option$value4 : '').toLowerCase().includes(input.toLowerCase());
12684
+ }
12685
+ }
12686
+ }
12388
12687
  }, {
12389
12688
  name: 'qp-storeChannelName-like',
12689
+ type: 'select',
12390
12690
  label: '管理模式',
12391
- type: 'input'
12691
+ field: {
12692
+ type: 'select',
12693
+ props: {
12694
+ notFoundContent: '暂无数据',
12695
+ allowClear: true,
12696
+ showSearch: true,
12697
+ showArrow: true,
12698
+ maxTagCount: 1,
12699
+ optionFilterProp: 'children',
12700
+ filterOption: function filterOption(input, option) {
12701
+ var _option$value5;
12702
+ return ((_option$value5 = option === null || option === void 0 ? void 0 : option.value) !== null && _option$value5 !== void 0 ? _option$value5 : '').toLowerCase().includes(input.toLowerCase());
12703
+ }
12704
+ }
12705
+ }
12392
12706
  }];
12393
- var _queryHeaderParams10 = getQueryHeadersList({
12707
+ var _queryHeaderParams12 = getQueryHeadersList({
12394
12708
  querySelectHeadersList: querySelectHeadersList,
12395
12709
  extralHeaders: extralHeaders
12396
12710
  });
@@ -12398,18 +12712,18 @@ function commonFun(type, prefixUrl, parentProps) {
12398
12712
  'qp-employeeCode-eq': getEmployeeCode(),
12399
12713
  'qp-realOrg-eq': true,
12400
12714
  'qp-status-eq': 10
12401
- }, getQueryHeadersItem(_queryHeaderParams10, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/channelInfo/tree"), {
12715
+ }, getQueryHeadersItem(_queryHeaderParams12, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/channelInfo/tree"), {
12402
12716
  'qp-status-eq': 10,
12403
12717
  'qp-isMain-eq': 1,
12404
12718
  'qp-type-in': '1,2'
12405
- }, getQueryHeadersItem(_queryHeaderParams10, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/tagNode/getTree/10"), {
12719
+ }, getQueryHeadersItem(_queryHeaderParams12, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/tagNode/getTree/10"), {
12406
12720
  'qp-status-eq': 1
12407
- }, getQueryHeadersItem(_queryHeaderParams10, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/brand/queryBrandList"), {
12721
+ }, getQueryHeadersItem(_queryHeaderParams12, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/brand/queryBrandList"), {
12408
12722
  pageSize: 5000,
12409
12723
  currentPage: 1,
12410
12724
  'ctl-withAuth': true
12411
- }, getQueryHeadersItem(_queryHeaderParams10, 'ctl-withAuth'))]).then(function (x) {
12412
- var _x$3, _x$3$data$, _x$3$data$$channelInf;
12725
+ }, getQueryHeadersItem(_queryHeaderParams12, 'ctl-withAuth')), loadSelectSource$1("/channel-manage/store/selectStoreOperationalInfo", {}, getQueryHeadersItem(_queryHeaderParams12, 'qp-orgCode-in'))]).then(function (x) {
12726
+ var _x$3, _x$3$data$, _x$3$data$$channelInf, _x$4, _opList, _opList$, _opList2, _opList3, _opList4, _opList5, _opList6;
12413
12727
  var newData1 = [];
12414
12728
  (_x$3 = x[1]) === null || _x$3 === void 0 ? void 0 : (_x$3$data$ = _x$3.data[0]) === null || _x$3$data$ === void 0 ? void 0 : (_x$3$data$$channelInf = _x$3$data$.channelInfoSon) === null || _x$3$data$$channelInf === void 0 ? void 0 : _x$3$data$$channelInf.forEach(function (item) {
12415
12729
  newData1.push({
@@ -12428,6 +12742,46 @@ function commonFun(type, prefixUrl, parentProps) {
12428
12742
  formatTreeDataSource(x, 1, 4, tableSearchForm, ['code', 'name'], 'channelInfoSon', channelDisabledJude);
12429
12743
  formatTreeDataSource(x, 2, 5, tableSearchForm, ['code', 'name'], 'children', areaDisabledJude);
12430
12744
  formatSource(x, 3, 7, tableSearchForm, ['brandCode', 'name']);
12745
+ var opRaw = (_x$4 = x[4]) === null || _x$4 === void 0 ? void 0 : _x$4.data;
12746
+ // 新增label属性
12747
+ (_opList = opList) === null || _opList === void 0 ? void 0 : _opList.forEach(function (r) {
12748
+ r.label = r === null || r === void 0 ? void 0 : r.value;
12749
+ });
12750
+ var opList = Array.isArray(opRaw) ? opRaw : (opRaw === null || opRaw === void 0 ? void 0 : opRaw.items) || (opRaw === null || opRaw === void 0 ? void 0 : opRaw.list) || [];
12751
+ if (Array.isArray(opList) && Array.isArray(opList[0]) && !((_opList$ = opList[0]) === null || _opList$ === void 0 ? void 0 : _opList$.field)) {
12752
+ opList = opList[0];
12753
+ }
12754
+ var m1 = (_opList2 = opList) === null || _opList2 === void 0 ? void 0 : _opList2.filter(function (r) {
12755
+ return (r === null || r === void 0 ? void 0 : r.field) === 'manage_supervisor' && trim(r === null || r === void 0 ? void 0 : r.value);
12756
+ });
12757
+ var m2 = (_opList3 = opList) === null || _opList3 === void 0 ? void 0 : _opList3.filter(function (r) {
12758
+ return (r === null || r === void 0 ? void 0 : r.field) === 'direct_supervisor' && trim(r === null || r === void 0 ? void 0 : r.value);
12759
+ });
12760
+ var m3 = (_opList4 = opList) === null || _opList4 === void 0 ? void 0 : _opList4.filter(function (r) {
12761
+ return (r === null || r === void 0 ? void 0 : r.field) === 'distribution_item' && trim(r === null || r === void 0 ? void 0 : r.value);
12762
+ });
12763
+ debugger;
12764
+ var m4 = (_opList5 = opList) === null || _opList5 === void 0 ? void 0 : _opList5.filter(function (r) {
12765
+ return (r === null || r === void 0 ? void 0 : r.field) === 'head_item' && trim(r === null || r === void 0 ? void 0 : r.value);
12766
+ });
12767
+ var m5 = (_opList6 = opList) === null || _opList6 === void 0 ? void 0 : _opList6.filter(function (r) {
12768
+ return (r === null || r === void 0 ? void 0 : r.field) === 'store_channel_name' && trim(r === null || r === void 0 ? void 0 : r.value);
12769
+ });
12770
+ tableSearchForm[8] = _objectSpread2(_objectSpread2({}, tableSearchForm[8]), {}, {
12771
+ initialSource: m1
12772
+ });
12773
+ tableSearchForm[9] = _objectSpread2(_objectSpread2({}, tableSearchForm[9]), {}, {
12774
+ initialSource: m2
12775
+ });
12776
+ tableSearchForm[10] = _objectSpread2(_objectSpread2({}, tableSearchForm[10]), {}, {
12777
+ initialSource: m3
12778
+ });
12779
+ tableSearchForm[11] = _objectSpread2(_objectSpread2({}, tableSearchForm[11]), {}, {
12780
+ initialSource: m4
12781
+ });
12782
+ tableSearchForm[12] = _objectSpread2(_objectSpread2({}, tableSearchForm[12]), {}, {
12783
+ initialSource: m5
12784
+ });
12431
12785
  });
12432
12786
  modalTableProps = _objectSpread2({
12433
12787
  modalTableTitle: '选择商店',
@@ -12686,7 +13040,7 @@ function commonFun(type, prefixUrl, parentProps) {
12686
13040
  name: 'qp-officeTelephone-like',
12687
13041
  label: '手机号'
12688
13042
  }];
12689
- var _queryHeaderParams11 = getQueryHeadersList({
13043
+ var _queryHeaderParams13 = getQueryHeadersList({
12690
13044
  querySelectHeadersList: querySelectHeadersList,
12691
13045
  extralHeaders: extralHeaders
12692
13046
  });
@@ -12694,7 +13048,7 @@ function commonFun(type, prefixUrl, parentProps) {
12694
13048
  pageSize: 5000,
12695
13049
  currentPage: 1,
12696
13050
  'qp-companyType-eq': 20
12697
- }, getQueryHeadersItem(_queryHeaderParams11, 'qp-companyCode-in'))]).then(function (x) {
13051
+ }, getQueryHeadersItem(_queryHeaderParams13, 'qp-companyCode-in'))]).then(function (x) {
12698
13052
  formatSource(x, 0, 2, tableSearchForm);
12699
13053
  });
12700
13054
  modalTableProps = _objectSpread2({
@@ -12803,13 +13157,13 @@ function commonFun(type, prefixUrl, parentProps) {
12803
13157
  name: 'qp-phone-like',
12804
13158
  label: '手机号'
12805
13159
  }]);
12806
- var _queryHeaderParams12 = getQueryHeadersList({
13160
+ var _queryHeaderParams14 = getQueryHeadersList({
12807
13161
  querySelectHeadersList: querySelectHeadersList,
12808
13162
  extralHeaders: extralHeaders
12809
13163
  });
12810
13164
  Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgViewNode/common/getTreeForOrgViewAndTenant"), {
12811
13165
  'orgViewCode': 'administrative-organization-view'
12812
- }, getQueryHeadersItem(_queryHeaderParams12, 'qp-code-in'))]).then(function (x) {
13166
+ }, getQueryHeadersItem(_queryHeaderParams14, 'qp-code-in'))]).then(function (x) {
12813
13167
  formatTreeDataSource(x, 0, 2, tableSearchForm, ['code', 'name']);
12814
13168
  });
12815
13169
  modalTableProps = _objectSpread2({
@@ -12956,17 +13310,17 @@ function commonFun(type, prefixUrl, parentProps) {
12956
13310
  name: 'qp-remark-like',
12957
13311
  label: '备注'
12958
13312
  }];
12959
- var _queryHeaderParams13 = getQueryHeadersList({
13313
+ var _queryHeaderParams15 = getQueryHeadersList({
12960
13314
  querySelectHeadersList: querySelectHeadersList,
12961
13315
  extralHeaders: extralHeaders
12962
13316
  });
12963
13317
  Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/logisCompany"), {
12964
13318
  pageSize: 5000,
12965
13319
  currentPage: 1
12966
- }, getQueryHeadersItem(_queryHeaderParams13, logisCompanyCodeSingleSearchName)), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/printTemplate"), {
13320
+ }, getQueryHeadersItem(_queryHeaderParams15, logisCompanyCodeSingleSearchName)), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/printTemplate"), {
12967
13321
  pageSize: 5000,
12968
13322
  currentPage: 1
12969
- }, getQueryHeadersItem(_queryHeaderParams13, 'qp-sheetTemplateCode-in'))]).then(function (x) {
13323
+ }, getQueryHeadersItem(_queryHeaderParams15, 'qp-sheetTemplateCode-in'))]).then(function (x) {
12970
13324
  formatSource(x, 0, 2, tableSearchForm);
12971
13325
  formatSource(x, 1, 5, tableSearchForm);
12972
13326
  });
@@ -13136,14 +13490,14 @@ function commonFun(type, prefixUrl, parentProps) {
13136
13490
  }
13137
13491
  }
13138
13492
  }];
13139
- var _queryHeaderParams14 = getQueryHeadersList({
13493
+ var _queryHeaderParams16 = getQueryHeadersList({
13140
13494
  querySelectHeadersList: querySelectHeadersList,
13141
13495
  extralHeaders: extralHeaders
13142
13496
  });
13143
13497
  Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/permissionCategory"), {
13144
13498
  pageSize: 5000,
13145
13499
  currentPage: 1
13146
- }, getQueryHeadersItem(_queryHeaderParams14, 'qp-categoryCode-eq'))]).then(function (x) {
13500
+ }, getQueryHeadersItem(_queryHeaderParams16, 'qp-categoryCode-eq'))]).then(function (x) {
13147
13501
  formatSource(x, 0, 2, tableSearchForm);
13148
13502
  });
13149
13503
  modalTableProps = _objectSpread2({
@@ -13240,7 +13594,7 @@ function commonFun(type, prefixUrl, parentProps) {
13240
13594
  }
13241
13595
  }
13242
13596
  }];
13243
- var _queryHeaderParams15 = getQueryHeadersList({
13597
+ var _queryHeaderParams17 = getQueryHeadersList({
13244
13598
  querySelectHeadersList: querySelectHeadersList,
13245
13599
  extralHeaders: extralHeaders
13246
13600
  });
@@ -13248,7 +13602,7 @@ function commonFun(type, prefixUrl, parentProps) {
13248
13602
  'qp-employeeCode-eq': getEmployeeCode(),
13249
13603
  'qp-realOrg-eq': true,
13250
13604
  'qp-status-eq': 10
13251
- }, getQueryHeadersItem(_queryHeaderParams15, 'qp-salesOrgCode-in'))]).then(function (x) {
13605
+ }, getQueryHeadersItem(_queryHeaderParams17, 'qp-salesOrgCode-in'))]).then(function (x) {
13252
13606
  formatSource(x, 0, 2, tableSearchForm);
13253
13607
  });
13254
13608
  modalTableProps = _objectSpread2({
@@ -13354,13 +13708,13 @@ function commonFun(type, prefixUrl, parentProps) {
13354
13708
  },
13355
13709
  initialSource: nodeType
13356
13710
  }];
13357
- var _queryHeaderParams16 = getQueryHeadersList({
13711
+ var _queryHeaderParams18 = getQueryHeadersList({
13358
13712
  querySelectHeadersList: querySelectHeadersList,
13359
13713
  extralHeaders: extralHeaders
13360
13714
  });
13361
13715
  Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgView/getOrgViewListNoPage"), {
13362
13716
  'qp-status-eq': 10
13363
- }, getQueryHeadersItem(_queryHeaderParams16, 'qp-orgViewCode-in'))]).then(function (x) {
13717
+ }, getQueryHeadersItem(_queryHeaderParams18, 'qp-orgViewCode-in'))]).then(function (x) {
13364
13718
  formatSource(x, 0, 2, tableSearchForm);
13365
13719
  });
13366
13720
  modalTableProps = _objectSpread2({
@@ -13686,13 +14040,13 @@ function commonFun(type, prefixUrl, parentProps) {
13686
14040
  },
13687
14041
  initialSource: nodeType
13688
14042
  }];
13689
- var _queryHeaderParams17 = getQueryHeadersList({
14043
+ var _queryHeaderParams19 = getQueryHeadersList({
13690
14044
  querySelectHeadersList: querySelectHeadersList,
13691
14045
  extralHeaders: extralHeaders
13692
14046
  });
13693
14047
  Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgView/getOrgViewListNoPage"), {
13694
14048
  'qp-status-eq': 10
13695
- }, getQueryHeadersItem(_queryHeaderParams17, 'qp-orgViewCode-in'))]).then(function (x) {
14049
+ }, getQueryHeadersItem(_queryHeaderParams19, 'qp-orgViewCode-in'))]).then(function (x) {
13696
14050
  formatSource(x, 0, 2, tableSearchForm);
13697
14051
  });
13698
14052
  modalTableProps = _objectSpread2({
@@ -14637,9 +14991,9 @@ var AddSpuSelect = function AddSpuSelect(parProps) {
14637
14991
  value = _useState8[0],
14638
14992
  setValue = _useState8[1];
14639
14993
  var _useState9 = useState([]),
14640
- _useState0 = _slicedToArray(_useState9, 2),
14641
- propertyList = _useState0[0],
14642
- setPropertyList = _useState0[1];
14994
+ _useState10 = _slicedToArray(_useState9, 2),
14995
+ propertyList = _useState10[0],
14996
+ setPropertyList = _useState10[1];
14643
14997
  useEffect(function () {
14644
14998
  if (parProps === null || parProps === void 0 ? void 0 : parProps.isSingleColor) {
14645
14999
  // type: 1 尺码组; 2 配码组
@@ -15062,7 +15416,7 @@ function getStorageVale(storageKeyString) {
15062
15416
  var _storageKeyString$spl = storageKeyString.split('.'),
15063
15417
  _storageKeyString$spl2 = _toArray(_storageKeyString$spl),
15064
15418
  localstorage = _storageKeyString$spl2[0],
15065
- restKeyArrays = _arrayLikeToArray(_storageKeyString$spl2).slice(1);
15419
+ restKeyArrays = _storageKeyString$spl2.slice(1);
15066
15420
  var localStorageInfo = window.localStorage.getItem(localstorage);
15067
15421
  if (!restKeyArrays.length) return localStorageInfo;
15068
15422
  var returnVal = JSON.parse(localStorageInfo || '{}');
@@ -15163,45 +15517,46 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
15163
15517
  requestUtil.get("".concat(url, "?").concat(stringify(paramsData)), {
15164
15518
  headers: headers
15165
15519
  }).then(/*#__PURE__*/function () {
15166
- var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(res) {
15520
+ var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(res) {
15167
15521
  var _ctx$form;
15168
15522
  var resData, coverData, data, dataList;
15169
- return _regenerator().w(function (_context) {
15170
- while (1) switch (_context.n) {
15523
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
15524
+ while (1) switch (_context.prev = _context.next) {
15171
15525
  case 0:
15172
15526
  resData = (res === null || res === void 0 ? void 0 : res.data) || [];
15173
15527
  if (!judgeIsRequestSuccess(resData)) {
15174
- _context.n = 4;
15528
+ _context.next = 13;
15175
15529
  break;
15176
15530
  }
15177
15531
  data = resData.data;
15178
15532
  if (!remoteSource.converter) {
15179
- _context.n = 2;
15533
+ _context.next = 9;
15180
15534
  break;
15181
15535
  }
15182
- _context.n = 1;
15536
+ _context.next = 6;
15183
15537
  return remoteSource.converter({
15184
15538
  data: [data]
15185
15539
  });
15186
- case 1:
15187
- coverData = _context.v;
15188
- _context.n = 3;
15540
+ case 6:
15541
+ coverData = _context.sent;
15542
+ _context.next = 11;
15189
15543
  break;
15190
- case 2:
15544
+ case 9:
15191
15545
  dataList = data && Array.isArray(data) ? data : data && [data] || [];
15192
15546
  coverData = dataList.length && dataList.map(function (ites) {
15193
15547
  return _mapSearchTree(ites);
15194
15548
  }) || [];
15195
- case 3:
15196
- _context.n = 5;
15549
+ case 11:
15550
+ _context.next = 14;
15197
15551
  break;
15198
- case 4:
15552
+ case 13:
15199
15553
  coverData = [];
15200
- case 5:
15554
+ case 14:
15201
15555
  setTreeData(coverData);
15202
15556
  ctx === null || ctx === void 0 ? void 0 : (_ctx$form = ctx.form) === null || _ctx$form === void 0 ? void 0 : _ctx$form.setFieldSource(ctx.name, coverData);
15203
- case 6:
15204
- return _context.a(2);
15557
+ case 16:
15558
+ case "end":
15559
+ return _context.stop();
15205
15560
  }
15206
15561
  }, _callee);
15207
15562
  }));
@@ -19509,37 +19864,37 @@ var BsSulaQueryTable = (function (props) {
19509
19864
  };
19510
19865
  var refs = useRef(null);
19511
19866
  var _useState9 = useState(''),
19512
- _useState0 = _slicedToArray(_useState9, 2),
19513
- pagePath = _useState0[0],
19514
- setPagePath = _useState0[1];
19867
+ _useState10 = _slicedToArray(_useState9, 2),
19868
+ pagePath = _useState10[0],
19869
+ setPagePath = _useState10[1];
19515
19870
  var _useLocation = useLocation(),
19516
19871
  pathname = _useLocation.pathname,
19517
19872
  _useLocation$state = _useLocation.state;
19518
- var _useState1 = useState(false),
19519
- _useState10 = _slicedToArray(_useState1, 2),
19520
- isFullScreen = _useState10[0],
19521
- setIsFnllScreen = _useState10[1];
19873
+ var _useState11 = useState(false),
19874
+ _useState12 = _slicedToArray(_useState11, 2),
19875
+ isFullScreen = _useState12[0],
19876
+ setIsFnllScreen = _useState12[1];
19522
19877
  // @ts-nocheck
19523
19878
  var value = props;
19524
19879
  var _props$fields = props.fields,
19525
19880
  fields = _props$fields === void 0 ? [] : _props$fields;
19526
- var _useState11 = useState([]),
19527
- _useState12 = _slicedToArray(_useState11, 2),
19528
- showColumn = _useState12[0],
19529
- setShowColumns = _useState12[1]; // 列字段
19530
- var originSearchFields = getSettingFieldOrColumn(getConfigFromlocalstorage(ENUM$1.BROWSER_CACHE.SEARCH_FIELDS_CONDITION), fields, 'searchFields');
19531
- var _useState13 = useState(originSearchFields),
19881
+ var _useState13 = useState([]),
19532
19882
  _useState14 = _slicedToArray(_useState13, 2),
19533
- showSearchFields = _useState14[0],
19534
- setShowSearchFields = _useState14[1]; //搜索项字段
19535
- var _useState15 = useState([]),
19883
+ showColumn = _useState14[0],
19884
+ setShowColumns = _useState14[1]; // 列字段
19885
+ var originSearchFields = getSettingFieldOrColumn(getConfigFromlocalstorage(ENUM$1.BROWSER_CACHE.SEARCH_FIELDS_CONDITION), fields, 'searchFields');
19886
+ var _useState15 = useState(originSearchFields),
19536
19887
  _useState16 = _slicedToArray(_useState15, 2),
19537
- showExportColumn = _useState16[0],
19538
- setShowExportColumns = _useState16[1]; // 导出列字段
19539
- var _useState17 = useState(''),
19888
+ showSearchFields = _useState16[0],
19889
+ setShowSearchFields = _useState16[1]; //搜索项字段
19890
+ var _useState17 = useState([]),
19540
19891
  _useState18 = _slicedToArray(_useState17, 2),
19541
- height = _useState18[0],
19542
- setHeight = _useState18[1];
19892
+ showExportColumn = _useState18[0],
19893
+ setShowExportColumns = _useState18[1]; // 导出列字段
19894
+ var _useState19 = useState(''),
19895
+ _useState20 = _slicedToArray(_useState19, 2),
19896
+ height = _useState20[0],
19897
+ setHeight = _useState20[1];
19543
19898
  var sortTableRef = useRef(null);
19544
19899
  var searchTableRef = useRef(null);
19545
19900
  var exportTableRef = useRef(null);
@@ -20167,7 +20522,7 @@ var matchPath = function matchPath(pathname) {
20167
20522
  if (!match) return null;
20168
20523
  var _match = _toArray(match),
20169
20524
  url = _match[0],
20170
- values = _arrayLikeToArray(_match).slice(1);
20525
+ values = _match.slice(1);
20171
20526
  var isExact = pathname === url;
20172
20527
  if (exact && !isExact) return null;
20173
20528
  return {
@@ -20587,19 +20942,22 @@ function outLogin(_x) {
20587
20942
  return _outLogin.apply(this, arguments);
20588
20943
  }
20589
20944
  function _outLogin() {
20590
- _outLogin = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(params) {
20945
+ _outLogin = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
20591
20946
  var res;
20592
- return _regenerator().w(function (_context) {
20593
- while (1) switch (_context.n) {
20947
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
20948
+ while (1) switch (_context.prev = _context.next) {
20594
20949
  case 0:
20595
- _context.n = 1;
20950
+ _context.next = 2;
20596
20951
  return requestUtil({
20597
20952
  url: '/user/web/loginOut',
20598
20953
  method: 'GET'
20599
20954
  });
20600
- case 1:
20601
- res = _context.v;
20602
- return _context.a(2, res);
20955
+ case 2:
20956
+ res = _context.sent;
20957
+ return _context.abrupt("return", res);
20958
+ case 4:
20959
+ case "end":
20960
+ return _context.stop();
20603
20961
  }
20604
20962
  }, _callee);
20605
20963
  }));
@@ -20726,20 +21084,20 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
20726
21084
  });
20727
21085
  };
20728
21086
  var loginOut = /*#__PURE__*/function () {
20729
- var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
21087
+ var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
20730
21088
  var sessionId;
20731
- return _regenerator().w(function (_context) {
20732
- while (1) switch (_context.n) {
21089
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
21090
+ while (1) switch (_context.prev = _context.next) {
20733
21091
  case 0:
20734
- _context.n = 1;
21092
+ _context.next = 2;
20735
21093
  return getSessionId();
20736
- case 1:
20737
- sessionId = _context.v;
20738
- _context.n = 2;
21094
+ case 2:
21095
+ sessionId = _context.sent;
21096
+ _context.next = 5;
20739
21097
  return outLogin({
20740
21098
  sessionId: sessionId
20741
21099
  });
20742
- case 2:
21100
+ case 5:
20743
21101
  // @ts-ignore
20744
21102
  if (BUILD_TYPE) {
20745
21103
  message$1.success('退出登录成功');
@@ -20749,8 +21107,9 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
20749
21107
  } else {
20750
21108
  setLoginOutPath();
20751
21109
  }
20752
- case 3:
20753
- return _context.a(2);
21110
+ case 6:
21111
+ case "end":
21112
+ return _context.stop();
20754
21113
  }
20755
21114
  }, _callee);
20756
21115
  }));
@@ -20837,15 +21196,18 @@ function getStoreByName(_x) {
20837
21196
  return _getStoreByName.apply(this, arguments);
20838
21197
  }
20839
21198
  function _getStoreByName() {
20840
- _getStoreByName = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(params) {
20841
- return _regenerator().w(function (_context) {
20842
- while (1) switch (_context.n) {
21199
+ _getStoreByName = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
21200
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
21201
+ while (1) switch (_context.prev = _context.next) {
20843
21202
  case 0:
20844
- return _context.a(2, requestUtil({
21203
+ return _context.abrupt("return", requestUtil({
20845
21204
  url: '/store-house/orgViewNode/listNoPage',
20846
21205
  method: 'GET',
20847
21206
  params: _objectSpread2({}, params)
20848
21207
  }));
21208
+ case 1:
21209
+ case "end":
21210
+ return _context.stop();
20849
21211
  }
20850
21212
  }, _callee);
20851
21213
  }));
@@ -20880,33 +21242,33 @@ var ChooseStore = function ChooseStore(props) {
20880
21242
  openSelect = _useState8[0],
20881
21243
  setOpenSelect = _useState8[1];
20882
21244
  var _useState9 = useState([]),
20883
- _useState0 = _slicedToArray(_useState9, 2),
20884
- options = _useState0[0],
20885
- setOptions = _useState0[1];
20886
- var _useState1 = useState([]),
20887
- _useState10 = _slicedToArray(_useState1, 2),
20888
- rescouse = _useState10[0],
20889
- setRescouse = _useState10[1];
20890
- var _useState11 = useState(''),
21245
+ _useState10 = _slicedToArray(_useState9, 2),
21246
+ options = _useState10[0],
21247
+ setOptions = _useState10[1];
21248
+ var _useState11 = useState([]),
20891
21249
  _useState12 = _slicedToArray(_useState11, 2),
20892
- searchValue = _useState12[0],
20893
- setSearchValue = _useState12[1];
20894
- var _useState13 = useState([{
21250
+ rescouse = _useState12[0],
21251
+ setRescouse = _useState12[1];
21252
+ var _useState13 = useState(''),
21253
+ _useState14 = _slicedToArray(_useState13, 2),
21254
+ searchValue = _useState14[0],
21255
+ setSearchValue = _useState14[1];
21256
+ var _useState15 = useState([{
20895
21257
  label: name,
20896
21258
  value: code
20897
21259
  }]),
20898
- _useState14 = _slicedToArray(_useState13, 2),
20899
- store = _useState14[0],
20900
- setStore = _useState14[1];
21260
+ _useState16 = _slicedToArray(_useState15, 2),
21261
+ store = _useState16[0],
21262
+ setStore = _useState16[1];
20901
21263
  function fetchUserList(_x, _x2) {
20902
21264
  return _fetchUserList.apply(this, arguments);
20903
21265
  }
20904
21266
  function _fetchUserList() {
20905
- _fetchUserList = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(storeName, init) {
20906
- return _regenerator().w(function (_context3) {
20907
- while (1) switch (_context3.n) {
21267
+ _fetchUserList = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(storeName, init) {
21268
+ return _regeneratorRuntime().wrap(function _callee3$(_context3) {
21269
+ while (1) switch (_context3.prev = _context3.next) {
20908
21270
  case 0:
20909
- return _context3.a(2, getStoreByName({
21271
+ return _context3.abrupt("return", getStoreByName({
20910
21272
  orgName: storeName ? storeName : undefined,
20911
21273
  platCompanyCode: init ? undefined : key,
20912
21274
  'qp-employeeCode-eq': employeeCode || 'EMP231011000002',
@@ -20925,6 +21287,9 @@ var ChooseStore = function ChooseStore(props) {
20925
21287
  };
20926
21288
  });
20927
21289
  }));
21290
+ case 1:
21291
+ case "end":
21292
+ return _context3.stop();
20928
21293
  }
20929
21294
  }, _callee3);
20930
21295
  }));
@@ -20947,19 +21312,20 @@ var ChooseStore = function ChooseStore(props) {
20947
21312
  return debounce$1(loadOptions, debounceTimeout);
20948
21313
  }, [debounceTimeout, key]);
20949
21314
  var changeInput = /*#__PURE__*/function () {
20950
- var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(str) {
21315
+ var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(str) {
20951
21316
  var res;
20952
- return _regenerator().w(function (_context) {
20953
- while (1) switch (_context.n) {
21317
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
21318
+ while (1) switch (_context.prev = _context.next) {
20954
21319
  case 0:
20955
- _context.n = 1;
21320
+ _context.next = 2;
20956
21321
  return debounceFetcher(str);
20957
- case 1:
20958
- res = _context.v;
21322
+ case 2:
21323
+ res = _context.sent;
20959
21324
  setOptions(res);
20960
21325
  setRescouse(res);
20961
- case 2:
20962
- return _context.a(2);
21326
+ case 5:
21327
+ case "end":
21328
+ return _context.stop();
20963
21329
  }
20964
21330
  }, _callee);
20965
21331
  }));
@@ -20968,15 +21334,15 @@ var ChooseStore = function ChooseStore(props) {
20968
21334
  };
20969
21335
  }();
20970
21336
  useEffect(function () {
20971
- _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
21337
+ _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
20972
21338
  var res;
20973
- return _regenerator().w(function (_context2) {
20974
- while (1) switch (_context2.n) {
21339
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
21340
+ while (1) switch (_context2.prev = _context2.next) {
20975
21341
  case 0:
20976
- _context2.n = 1;
21342
+ _context2.next = 2;
20977
21343
  return fetchUserList(undefined, true);
20978
- case 1:
20979
- res = _context2.v;
21344
+ case 2:
21345
+ res = _context2.sent;
20980
21346
  res.map(function (item, indexNumber) {
20981
21347
  if (item.label === name) {
20982
21348
  setIndex(indexNumber);
@@ -20992,8 +21358,9 @@ var ChooseStore = function ChooseStore(props) {
20992
21358
  });
20993
21359
  setOptions(res);
20994
21360
  setRescouse(res);
20995
- case 2:
20996
- return _context2.a(2);
21361
+ case 6:
21362
+ case "end":
21363
+ return _context2.stop();
20997
21364
  }
20998
21365
  }, _callee2);
20999
21366
  }))();
@@ -22042,25 +22409,25 @@ var DrawContent$1 = function DrawContent(_ref) {
22042
22409
  currentOneLevel = _useState8[0],
22043
22410
  setCurrentOneLevel = _useState8[1];
22044
22411
  var _useState9 = useState([]),
22045
- _useState0 = _slicedToArray(_useState9, 2),
22046
- SearhData = _useState0[0],
22047
- setSearchMenuData = _useState0[1];
22048
- var _useState1 = useState(600),
22049
- _useState10 = _slicedToArray(_useState1, 2),
22050
- rightMenuHeight = _useState10[0],
22051
- setHeight = _useState10[1];
22052
- var _useState11 = useState(900),
22412
+ _useState10 = _slicedToArray(_useState9, 2),
22413
+ SearhData = _useState10[0],
22414
+ setSearchMenuData = _useState10[1];
22415
+ var _useState11 = useState(600),
22053
22416
  _useState12 = _slicedToArray(_useState11, 2),
22054
- drawHeight = _useState12[0],
22055
- setDrawHeight = _useState12[1];
22056
- var _useState13 = useState(false),
22417
+ rightMenuHeight = _useState12[0],
22418
+ setHeight = _useState12[1];
22419
+ var _useState13 = useState(900),
22057
22420
  _useState14 = _slicedToArray(_useState13, 2),
22058
- moreBtnShow = _useState14[0],
22059
- setMoreBtnShow = _useState14[1];
22421
+ drawHeight = _useState14[0],
22422
+ setDrawHeight = _useState14[1];
22060
22423
  var _useState15 = useState(false),
22061
22424
  _useState16 = _slicedToArray(_useState15, 2),
22062
- showScroll = _useState16[0],
22063
- setShowScroll = _useState16[1];
22425
+ moreBtnShow = _useState16[0],
22426
+ setMoreBtnShow = _useState16[1];
22427
+ var _useState17 = useState(false),
22428
+ _useState18 = _slicedToArray(_useState17, 2),
22429
+ showScroll = _useState18[0],
22430
+ setShowScroll = _useState18[1];
22064
22431
  useEffect(function () {
22065
22432
  var _originRoutes$find;
22066
22433
  getMenuContentHeight();
@@ -23671,11 +24038,14 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
23671
24038
  },
23672
24039
  menu: {
23673
24040
  request: function () {
23674
- var _request = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
23675
- return _regenerator().w(function (_context) {
23676
- while (1) switch (_context.n) {
24041
+ var _request = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
24042
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
24043
+ while (1) switch (_context.prev = _context.next) {
23677
24044
  case 0:
23678
- return _context.a(2, JSON.parse(localStorage.getItem("customerMenu_".concat(itemPath, "_front")) || '[]'));
24045
+ return _context.abrupt("return", JSON.parse(localStorage.getItem("customerMenu_".concat(itemPath, "_front")) || '[]'));
24046
+ case 1:
24047
+ case "end":
24048
+ return _context.stop();
23679
24049
  }
23680
24050
  }, _callee);
23681
24051
  }));
@@ -24080,31 +24450,31 @@ var index$6 = /*#__PURE__*/forwardRef(function (props, ref) {
24080
24450
  multiTableData = _useState8[0],
24081
24451
  setMmultiTableData = _useState8[1]; //多表头数据
24082
24452
  var _useState9 = useState(10),
24083
- _useState0 = _slicedToArray(_useState9, 2),
24084
- viewCount = _useState0[0],
24085
- setViewCount = _useState0[1]; //虚拟表格每次渲染数量
24453
+ _useState10 = _slicedToArray(_useState9, 2),
24454
+ viewCount = _useState10[0],
24455
+ setViewCount = _useState10[1]; //虚拟表格每次渲染数量
24086
24456
  var itemWidth = 100; // 表格每一项宽度
24087
- var _useState1 = useState((props === null || props === void 0 ? void 0 : props.colHeaderWidth) || 400),
24088
- _useState10 = _slicedToArray(_useState1, 2),
24089
- realColHeaderWidth = _useState10[0],
24090
- setLeftWidth = _useState10[1];
24457
+ var _useState11 = useState((props === null || props === void 0 ? void 0 : props.colHeaderWidth) || 400),
24458
+ _useState12 = _slicedToArray(_useState11, 2),
24459
+ realColHeaderWidth = _useState12[0],
24460
+ setLeftWidth = _useState12[1];
24091
24461
  var viewPort = useRef(null);
24092
24462
  var topScrollBar = useRef(null);
24093
24463
  var leftTableRef = useRef(null);
24094
24464
  //起始渲染item
24095
- var _useState11 = useState(0),
24096
- _useState12 = _slicedToArray(_useState11, 2),
24097
- startIndex = _useState12[0],
24098
- setStartIndex = _useState12[1];
24465
+ var _useState13 = useState(0),
24466
+ _useState14 = _slicedToArray(_useState13, 2),
24467
+ startIndex = _useState14[0],
24468
+ setStartIndex = _useState14[1];
24099
24469
  //结束渲染item
24100
24470
  var endIndex = useMemo(function () {
24101
24471
  return startIndex + viewCount;
24102
24472
  }, [startIndex, viewCount]);
24103
24473
  //表格偏移量
24104
- var _useState13 = useState(0),
24105
- _useState14 = _slicedToArray(_useState13, 2),
24106
- offsetWidth = _useState14[0],
24107
- setOffset = _useState14[1];
24474
+ var _useState15 = useState(0),
24475
+ _useState16 = _slicedToArray(_useState15, 2),
24476
+ offsetWidth = _useState16[0],
24477
+ setOffset = _useState16[1];
24108
24478
  useEffect(function () {
24109
24479
  setTimeout(function () {
24110
24480
  var realLeftTableWidth = leftTableRef.current.clientWidth;
@@ -31408,11 +31778,11 @@ var valueType = {
31408
31778
  };
31409
31779
 
31410
31780
  var getDynamicDict = /*#__PURE__*/function () {
31411
- var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(dictionaryCode) {
31412
- return _regenerator().w(function (_context) {
31413
- while (1) switch (_context.n) {
31781
+ var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
31782
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
31783
+ while (1) switch (_context.prev = _context.next) {
31414
31784
  case 0:
31415
- _context.n = 1;
31785
+ _context.next = 2;
31416
31786
  return request$2({
31417
31787
  url: "/basic/dictDynamicItem/getDynamicData/".concat(dictionaryCode),
31418
31788
  converter: function converter(_ref2) {
@@ -31425,8 +31795,11 @@ var getDynamicDict = /*#__PURE__*/function () {
31425
31795
  });
31426
31796
  }
31427
31797
  });
31428
- case 1:
31429
- return _context.a(2, _context.v);
31798
+ case 2:
31799
+ return _context.abrupt("return", _context.sent);
31800
+ case 3:
31801
+ case "end":
31802
+ return _context.stop();
31430
31803
  }
31431
31804
  }, _callee);
31432
31805
  }));
@@ -31473,12 +31846,12 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
31473
31846
  value: false
31474
31847
  }];
31475
31848
  var ref = useRef();
31476
- useMount(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
31477
- var _ref$current, source, _t, _t2;
31478
- return _regenerator().w(function (_context) {
31479
- while (1) switch (_context.n) {
31849
+ useMount(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
31850
+ var _ref$current, source;
31851
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
31852
+ while (1) switch (_context.prev = _context.next) {
31480
31853
  case 0:
31481
- _context.n = 1;
31854
+ _context.next = 2;
31482
31855
  return setIsShowAndType(function (prev) {
31483
31856
  if (record.inputType === 20 || record.inputType === 30) {
31484
31857
  return {
@@ -31489,39 +31862,40 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
31489
31862
  }
31490
31863
  return prev;
31491
31864
  });
31492
- case 1:
31865
+ case 2:
31493
31866
  if (!record.dictionaryCode) {
31494
- _context.n = 7;
31867
+ _context.next = 17;
31495
31868
  break;
31496
31869
  }
31497
31870
  if (!(record.choiceType == 20)) {
31498
- _context.n = 2;
31871
+ _context.next = 7;
31499
31872
  break;
31500
31873
  }
31501
- _t = getDictionarySource(record.dictionaryCode);
31502
- _context.n = 6;
31874
+ _context.t0 = getDictionarySource(record.dictionaryCode);
31875
+ _context.next = 15;
31503
31876
  break;
31504
- case 2:
31877
+ case 7:
31505
31878
  if (!(record.choiceType == 30)) {
31506
- _context.n = 4;
31879
+ _context.next = 13;
31507
31880
  break;
31508
31881
  }
31509
- _context.n = 3;
31882
+ _context.next = 10;
31510
31883
  return getDynamicDict(record.dictionaryCode);
31511
- case 3:
31512
- _t2 = _context.v;
31513
- _context.n = 5;
31884
+ case 10:
31885
+ _context.t1 = _context.sent;
31886
+ _context.next = 14;
31514
31887
  break;
31515
- case 4:
31516
- _t2 = [];
31517
- case 5:
31518
- _t = _t2;
31519
- case 6:
31520
- source = _t;
31888
+ case 13:
31889
+ _context.t1 = [];
31890
+ case 14:
31891
+ _context.t0 = _context.t1;
31892
+ case 15:
31893
+ source = _context.t0;
31521
31894
  // @ts-ignore
31522
31895
  ref === null || ref === void 0 ? void 0 : (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.setFieldSource('defaultValue', source);
31523
- case 7:
31524
- return _context.a(2);
31896
+ case 17:
31897
+ case "end":
31898
+ return _context.stop();
31525
31899
  }
31526
31900
  }, _callee);
31527
31901
  })));
@@ -31586,10 +31960,10 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
31586
31960
  source: {
31587
31961
  relates: ['dictionaryCode', 'dictionaryCode_dynamic', 'choiceType'],
31588
31962
  type: function () {
31589
- var _type = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(_ref3) {
31963
+ var _type = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
31590
31964
  var form, values, name, relates, source;
31591
- return _regenerator().w(function (_context2) {
31592
- while (1) switch (_context2.n) {
31965
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
31966
+ while (1) switch (_context2.prev = _context2.next) {
31593
31967
  case 0:
31594
31968
  form = _ref3.form, values = _ref3.values, name = _ref3.name, relates = _ref3.relates;
31595
31969
  if (values[0]) {
@@ -31598,18 +31972,19 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
31598
31972
  form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], getDictionarySource(values[0]));
31599
31973
  }
31600
31974
  if (!values[1]) {
31601
- _context2.n = 2;
31975
+ _context2.next = 9;
31602
31976
  break;
31603
31977
  }
31604
- _context2.n = 1;
31978
+ _context2.next = 5;
31605
31979
  return getDynamicDict(record.dictionaryCode || values[1]);
31606
- case 1:
31607
- source = _context2.v;
31980
+ case 5:
31981
+ source = _context2.sent;
31608
31982
  form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
31609
31983
  form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
31610
31984
  form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], source);
31611
- case 2:
31612
- return _context2.a(2);
31985
+ case 9:
31986
+ case "end":
31987
+ return _context2.stop();
31613
31988
  }
31614
31989
  }, _callee2);
31615
31990
  }));
@@ -32065,25 +32440,25 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
32065
32440
  source: {
32066
32441
  relates: ['choiceType', 'inputType'],
32067
32442
  type: function () {
32068
- var _type2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(_ref0) {
32443
+ var _type2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
32069
32444
  var values, name, form, source;
32070
- return _regenerator().w(function (_context3) {
32071
- while (1) switch (_context3.n) {
32445
+ return _regeneratorRuntime().wrap(function _callee3$(_context3) {
32446
+ while (1) switch (_context3.prev = _context3.next) {
32072
32447
  case 0:
32073
- values = _ref0.values, name = _ref0.name, form = _ref0.form;
32448
+ values = _ref10.values, name = _ref10.name, form = _ref10.form;
32074
32449
  if (values[1] === 40) {
32075
32450
  form === null || form === void 0 ? void 0 : form.setFieldValue(name, null);
32076
32451
  form.setFieldVisible(name, false);
32077
32452
  }
32078
32453
  if (!(values[0] === 30)) {
32079
- _context3.n = 2;
32454
+ _context3.next = 10;
32080
32455
  break;
32081
32456
  }
32082
- _context3.n = 1;
32457
+ _context3.next = 5;
32083
32458
  return request$2({
32084
32459
  url: '/basic/dictDynamicItem/queryList',
32085
- converter: function converter(_ref1) {
32086
- var data = _ref1.data;
32460
+ converter: function converter(_ref11) {
32461
+ var data = _ref11.data;
32087
32462
  return data === null || data === void 0 ? void 0 : data.map(function (d) {
32088
32463
  return {
32089
32464
  text: d.dictCode,
@@ -32092,16 +32467,17 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
32092
32467
  });
32093
32468
  }
32094
32469
  });
32095
- case 1:
32096
- source = _context3.v;
32470
+ case 5:
32471
+ source = _context3.sent;
32097
32472
  form === null || form === void 0 ? void 0 : form.setFieldSource(name, source);
32098
32473
  form.setFieldVisible(name, true);
32099
- _context3.n = 3;
32474
+ _context3.next = 11;
32100
32475
  break;
32101
- case 2:
32476
+ case 10:
32102
32477
  form.setFieldVisible(name, false);
32103
- case 3:
32104
- return _context3.a(2);
32478
+ case 11:
32479
+ case "end":
32480
+ return _context3.stop();
32105
32481
  }
32106
32482
  }, _callee3);
32107
32483
  }));
@@ -32116,8 +32492,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
32116
32492
  name: 'enumeration',
32117
32493
  label: '维护自定义选项',
32118
32494
  field: {
32119
- type: function type(_ref10) {
32120
- var form = _ref10.form;
32495
+ type: function type(_ref12) {
32496
+ var form = _ref12.form;
32121
32497
  return /*#__PURE__*/React$1.createElement(Button, {
32122
32498
  type: 'link',
32123
32499
  onClick: function onClick() {
@@ -32143,10 +32519,10 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
32143
32519
  dependency: {
32144
32520
  source: {
32145
32521
  relates: ['choiceType'],
32146
- type: function type(_ref11) {
32147
- var values = _ref11.values,
32148
- name = _ref11.name,
32149
- form = _ref11.form;
32522
+ type: function type(_ref13) {
32523
+ var values = _ref13.values,
32524
+ name = _ref13.name,
32525
+ form = _ref13.form;
32150
32526
  if (values[0] === 10) {
32151
32527
  form.setFieldVisible(name, true);
32152
32528
  } else {
@@ -32162,10 +32538,10 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
32162
32538
  dependency: {
32163
32539
  visible: {
32164
32540
  relates: ['choiceType'],
32165
- type: function type(_ref12) {
32166
- var name = _ref12.name,
32167
- values = _ref12.values,
32168
- form = _ref12.form;
32541
+ type: function type(_ref14) {
32542
+ var name = _ref14.name,
32543
+ values = _ref14.values,
32544
+ form = _ref14.form;
32169
32545
  if (values[0] == 330) {
32170
32546
  form.setFieldVisible(name, true);
32171
32547
  } else {
@@ -32189,8 +32565,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
32189
32565
  params: {
32190
32566
  'qp-businessType-eq': record.businessType
32191
32567
  },
32192
- converter: function converter(_ref13) {
32193
- var data = _ref13.data;
32568
+ converter: function converter(_ref15) {
32569
+ var data = _ref15.data;
32194
32570
  return (data === null || data === void 0 ? void 0 : data.map(function (d) {
32195
32571
  return {
32196
32572
  text: d.name,
@@ -32230,8 +32606,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
32230
32606
  'qp-businessType-eq': record.businessType,
32231
32607
  'qp-status-eq': 1
32232
32608
  },
32233
- converter: function converter(_ref14) {
32234
- var data = _ref14.data;
32609
+ converter: function converter(_ref16) {
32610
+ var data = _ref16.data;
32235
32611
  return (data === null || data === void 0 ? void 0 : data.map(function (d) {
32236
32612
  var _d$code;
32237
32613
  return {
@@ -32259,8 +32635,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
32259
32635
  remoteSource: {
32260
32636
  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),
32261
32637
  method: 'get',
32262
- converter: function converter(_ref15) {
32263
- var data = _ref15.data;
32638
+ converter: function converter(_ref17) {
32639
+ var data = _ref17.data;
32264
32640
  if (lineDetail.moduleType == 1) {
32265
32641
  return (data === null || data === void 0 ? void 0 : data.map(function (d) {
32266
32642
  return {
@@ -32286,16 +32662,16 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
32286
32662
  width: 900,
32287
32663
  maskClosable: false,
32288
32664
  onOk: function () {
32289
- var _onOk = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4() {
32665
+ var _onOk = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
32290
32666
  var _ref$current4, _res$editableStatus;
32291
32667
  var res, _res$defaultValue;
32292
- return _regenerator().w(function (_context4) {
32293
- while (1) switch (_context4.n) {
32668
+ return _regeneratorRuntime().wrap(function _callee4$(_context4) {
32669
+ while (1) switch (_context4.prev = _context4.next) {
32294
32670
  case 0:
32295
- _context4.n = 1;
32671
+ _context4.next = 2;
32296
32672
  return ref === null || ref === void 0 ? void 0 : (_ref$current4 = ref.current) === null || _ref$current4 === void 0 ? void 0 : _ref$current4.validateFields();
32297
- case 1:
32298
- res = _context4.v;
32673
+ case 2:
32674
+ res = _context4.sent;
32299
32675
  res.editableStatus = (_res$editableStatus = res.editableStatus) === null || _res$editableStatus === void 0 ? void 0 : _res$editableStatus.join(',');
32300
32676
  res.fieldGroup = record.fieldGroup;
32301
32677
  res.businessType = record.businessType;
@@ -32322,7 +32698,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
32322
32698
  delete res.formula;
32323
32699
  delete res.showValue;
32324
32700
  if (!(mode === 'create')) {
32325
- _context4.n = 2;
32701
+ _context4.next = 18;
32326
32702
  break;
32327
32703
  }
32328
32704
  request$2({
@@ -32334,8 +32710,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
32334
32710
  onParentOk();
32335
32711
  }
32336
32712
  });
32337
- return _context4.a(2);
32338
- case 2:
32713
+ return _context4.abrupt("return");
32714
+ case 18:
32339
32715
  request$2({
32340
32716
  url: "/basic/flow/businessField/".concat(record.id),
32341
32717
  method: 'PATCH',
@@ -32345,8 +32721,9 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
32345
32721
  onParentOk();
32346
32722
  }
32347
32723
  });
32348
- case 3:
32349
- return _context4.a(2);
32724
+ case 19:
32725
+ case "end":
32726
+ return _context4.stop();
32350
32727
  }
32351
32728
  }, _callee4);
32352
32729
  }));
@@ -32802,21 +33179,21 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
32802
33179
  jsonEditorVal = _useState8[0],
32803
33180
  setJsonEditorVal = _useState8[1];
32804
33181
  var _useState9 = useState({}),
32805
- _useState0 = _slicedToArray(_useState9, 2),
32806
- moduleParams = _useState0[0],
32807
- setModuleParams = _useState0[1];
32808
- var _useState1 = useState('main'),
32809
- _useState10 = _slicedToArray(_useState1, 2),
32810
- activeKey = _useState10[0],
32811
- setActiveKey = _useState10[1]; //默认详情页配置
32812
- var _useState11 = useState({}),
33182
+ _useState10 = _slicedToArray(_useState9, 2),
33183
+ moduleParams = _useState10[0],
33184
+ setModuleParams = _useState10[1];
33185
+ var _useState11 = useState('main'),
32813
33186
  _useState12 = _slicedToArray(_useState11, 2),
32814
- tablesConfigParams = _useState12[0],
32815
- setTablesConfigParams = _useState12[1];
32816
- var _useState13 = useState([]),
33187
+ activeKey = _useState12[0],
33188
+ setActiveKey = _useState12[1]; //默认详情页配置
33189
+ var _useState13 = useState({}),
32817
33190
  _useState14 = _slicedToArray(_useState13, 2),
32818
- tableJsonEditorValsArr = _useState14[0],
32819
- setTableJsonEditorValsArr = _useState14[1];
33191
+ tablesConfigParams = _useState14[0],
33192
+ setTablesConfigParams = _useState14[1];
33193
+ var _useState15 = useState([]),
33194
+ _useState16 = _slicedToArray(_useState15, 2),
33195
+ tableJsonEditorValsArr = _useState16[0],
33196
+ setTableJsonEditorValsArr = _useState16[1];
32820
33197
  useEffect(function () {
32821
33198
  Promise.all([requestUtil.get("/basic/flow/businessFieldGroup/one?moduleType=2&layoutPoint=".concat(pageType))]).then(function (_ref2) {
32822
33199
  var _ref3 = _slicedToArray(_ref2, 1),
@@ -32847,7 +33224,7 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
32847
33224
  });
32848
33225
  Promise.all(axiosArr).then(function (_ref5) {
32849
33226
  var _ref6 = _toArray(_ref5),
32850
- resArr = _arrayLikeToArray(_ref6).slice(0);
33227
+ resArr = _ref6.slice(0);
32851
33228
  var configParams = {};
32852
33229
  detailTablesSetting.map(function (item, index) {
32853
33230
  var _resArr$index;
@@ -33192,11 +33569,11 @@ function getMetaData(_x) {
33192
33569
 
33193
33570
  // 获取数据
33194
33571
  function _getMetaData() {
33195
- _getMetaData = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(id) {
33196
- return _regenerator().w(function (_context) {
33197
- while (1) switch (_context.n) {
33572
+ _getMetaData = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(id) {
33573
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
33574
+ while (1) switch (_context.prev = _context.next) {
33198
33575
  case 0:
33199
- return _context.a(2, new Promise(function (resolve, reject) {
33576
+ return _context.abrupt("return", new Promise(function (resolve, reject) {
33200
33577
  request$3('/basic/entityProperty/listNoPage', {
33201
33578
  params: {
33202
33579
  'qp-entityId-eq': id
@@ -33208,6 +33585,9 @@ function _getMetaData() {
33208
33585
  reject([]);
33209
33586
  });
33210
33587
  }));
33588
+ case 1:
33589
+ case "end":
33590
+ return _context.stop();
33211
33591
  }
33212
33592
  }, _callee);
33213
33593
  }));
@@ -33411,11 +33791,11 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
33411
33791
  tableState = _useState4[0],
33412
33792
  setTableState = _useState4[1];
33413
33793
  var handleOpen = /*#__PURE__*/function () {
33414
- var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
33794
+ var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
33415
33795
  var _props$customSelector, _props$customSelector2, _props$ctx4, _props$value, _props$value$map, _props$ctx5, _props$ctx5$form, _props$selectProps;
33416
33796
  var requestConfigNew, metaDataId, metaData, realMetaData, columns, fields, initValue, _queryTableRef$curren, _queryTableRef$curren2, _queryTableRef$curren3;
33417
- return _regenerator().w(function (_context) {
33418
- while (1) switch (_context.n) {
33797
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
33798
+ while (1) switch (_context.prev = _context.next) {
33419
33799
  case 0:
33420
33800
  requestConfigNew = assembleRequest(props.customSelectorConfig, {
33421
33801
  isSearchForm: props.isSearchForm,
@@ -33423,16 +33803,16 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
33423
33803
  searchFormData: searchFormData
33424
33804
  });
33425
33805
  if (requestConfigNew) {
33426
- _context.n = 1;
33806
+ _context.next = 3;
33427
33807
  break;
33428
33808
  }
33429
- return _context.a(2);
33430
- case 1:
33809
+ return _context.abrupt("return");
33810
+ case 3:
33431
33811
  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;
33432
- _context.n = 2;
33812
+ _context.next = 6;
33433
33813
  return getMetaData(metaDataId);
33434
- case 2:
33435
- metaData = _context.v;
33814
+ case 6:
33815
+ metaData = _context.sent;
33436
33816
  realMetaData = (metaData === null || metaData === void 0 ? void 0 : metaData.filter(function (item) {
33437
33817
  return (item === null || item === void 0 ? void 0 : item.inputType) != 1;
33438
33818
  })) || [];
@@ -33472,8 +33852,9 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
33472
33852
  // @ts-ignore
33473
33853
  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);
33474
33854
  }
33475
- case 3:
33476
- return _context.a(2);
33855
+ case 14:
33856
+ case "end":
33857
+ return _context.stop();
33477
33858
  }
33478
33859
  }, _callee);
33479
33860
  }));
@@ -33576,7 +33957,7 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
33576
33957
  }, [requestConfig, tableState.columns]);
33577
33958
  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';
33578
33959
  var handleOk = function handleOk(rowData) {
33579
- var _props$selectProps2, _props$customSelector6, _props$customSelector7, _queryTableRef$curren11, _queryTableRef$curren12, _queryTableRef$curren13;
33960
+ var _props$selectProps2, _props$customSelector6, _props$customSelector7, _queryTableRef$curren13, _queryTableRef$curren14, _queryTableRef$curren15;
33580
33961
  var setSource = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
33581
33962
  //多选数据处理
33582
33963
  if (props === null || props === void 0 ? void 0 : (_props$selectProps2 = props.selectProps) === null || _props$selectProps2 === void 0 ? void 0 : _props$selectProps2.multipleForQuery) {
@@ -33587,9 +33968,9 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
33587
33968
  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()) || [];
33588
33969
  var realSelectedRows = selectedRows;
33589
33970
  if (!rowData && (selectedKesys === null || selectedKesys === void 0 ? void 0 : selectedKesys.length) !== (selectedRows === null || selectedRows === void 0 ? void 0 : selectedRows.length)) {
33590
- var _queryTableRef$curren0, _queryTableRef$curren1, _queryTableRef$curren10;
33971
+ var _queryTableRef$curren10, _queryTableRef$curren11, _queryTableRef$curren12;
33591
33972
  // @ts-ignore
33592
- 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()) || [];
33973
+ 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()) || [];
33593
33974
  realSelectedRows = dataSource === null || dataSource === void 0 ? void 0 : dataSource.filter(function (s) {
33594
33975
  return selectedKesys.includes(s[rowKey]);
33595
33976
  });
@@ -33622,10 +34003,10 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
33622
34003
  });
33623
34004
  }
33624
34005
  mappings.map(function (item) {
33625
- var _props$customSelector0, _props$customSelector1, _props$customSelector10, _props$customSelector11;
33626
- 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]) {
33627
- var _props$customSelector12, _props$customSelector13;
33628
- 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];
34006
+ var _props$customSelector10, _props$customSelector11, _props$customSelector12, _props$customSelector13;
34007
+ 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]) {
34008
+ var _props$customSelector14, _props$customSelector15;
34009
+ 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];
33629
34010
  }
33630
34011
  values[item.codeMappingTo] = rowData[item.codeMappingFrom];
33631
34012
  });
@@ -33680,10 +34061,10 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
33680
34061
  }
33681
34062
  props.onCancel();
33682
34063
  //@ts-ignore
33683
- 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();
34064
+ 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();
33684
34065
  };
33685
34066
  var config = useMemo(function () {
33686
- var _props$selectProps3, _props$ctx9, _props$value2, _props$ctx0, _props$ctx0$form;
34067
+ var _props$selectProps3, _props$ctx9, _props$value2, _props$ctx10, _props$ctx10$form;
33687
34068
  var returnConfig = {
33688
34069
  size: 'small',
33689
34070
  needPageHeader: false,
@@ -33692,7 +34073,7 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
33692
34073
  rowSelection: (props === null || props === void 0 ? void 0 : (_props$selectProps3 = props.selectProps) === null || _props$selectProps3 === void 0 ? void 0 : _props$selectProps3.multipleForQuery) && !isView ? {
33693
34074
  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) {
33694
34075
  return v.key || v;
33695
- })) || (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))
34076
+ })) || (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))
33696
34077
  } : false,
33697
34078
  remoteDataSource: remoteDataSource,
33698
34079
  fields: tableState.fields,
@@ -33700,8 +34081,8 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
33700
34081
  rowKey: rowKey,
33701
34082
  tableProps: !isView && {
33702
34083
  rowClassName: function rowClassName(record) {
33703
- var _props$ctx1, _props$value3, _props$ctx10, _props$ctx10$form;
33704
- 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' : '';
34084
+ var _props$ctx11, _props$value3, _props$ctx12, _props$ctx12$form;
34085
+ 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' : '';
33705
34086
  },
33706
34087
  onRow: function onRow(record) {
33707
34088
  return {
@@ -33746,10 +34127,10 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
33746
34127
  }, "\u63D0\u4EA4"), /*#__PURE__*/React$1.createElement(Button, {
33747
34128
  type: "default",
33748
34129
  onClick: function onClick() {
33749
- var _queryTableRef$curren14, _queryTableRef$curren15, _queryTableRef$curren16;
34130
+ var _queryTableRef$curren16, _queryTableRef$curren17, _queryTableRef$curren18;
33750
34131
  props.onCancel();
33751
34132
  //@ts-ignore
33752
- 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();
34133
+ 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();
33753
34134
  }
33754
34135
  }, "\u53D6\u6D88"))));
33755
34136
  });
@@ -33973,19 +34354,19 @@ var BsCascader = function BsCascader(_ref) {
33973
34354
  _useState2 = _slicedToArray(_useState, 2),
33974
34355
  handSource = _useState2[0],
33975
34356
  setHandSource = _useState2[1];
33976
- useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
34357
+ useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
33977
34358
  var resData, data;
33978
- return _regenerator().w(function (_context) {
33979
- while (1) switch (_context.n) {
34359
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
34360
+ while (1) switch (_context.prev = _context.next) {
33980
34361
  case 0:
33981
34362
  if (!(!source && initRequestSource)) {
33982
- _context.n = 2;
34363
+ _context.next = 6;
33983
34364
  break;
33984
34365
  }
33985
- _context.n = 1;
34366
+ _context.next = 3;
33986
34367
  return initRequestSource();
33987
- case 1:
33988
- resData = _context.v;
34368
+ case 3:
34369
+ resData = _context.sent;
33989
34370
  data = (resData === null || resData === void 0 ? void 0 : resData.map(function (item) {
33990
34371
  return _objectSpread2(_objectSpread2({}, item), {}, {
33991
34372
  label: item.text,
@@ -33993,8 +34374,9 @@ var BsCascader = function BsCascader(_ref) {
33993
34374
  });
33994
34375
  })) || [];
33995
34376
  setHandSource(data);
33996
- case 2:
33997
- return _context.a(2);
34377
+ case 6:
34378
+ case "end":
34379
+ return _context.stop();
33998
34380
  }
33999
34381
  }, _callee);
34000
34382
  })), []);
@@ -34124,17 +34506,20 @@ function getRegularThresholdRange(_x) {
34124
34506
  return _getRegularThresholdRange.apply(this, arguments);
34125
34507
  }
34126
34508
  function _getRegularThresholdRange() {
34127
- _getRegularThresholdRange = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(params) {
34128
- return _regenerator().w(function (_context) {
34129
- while (1) switch (_context.n) {
34509
+ _getRegularThresholdRange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
34510
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
34511
+ while (1) switch (_context.prev = _context.next) {
34130
34512
  case 0:
34131
- return _context.a(2, requestUtil({
34513
+ return _context.abrupt("return", requestUtil({
34132
34514
  url: "/basic/regularThresholdRange/getVals/".concat(params.queryIdentify),
34133
34515
  method: 'POST',
34134
34516
  data: _objectSpread2(_objectSpread2({}, params), {}, {
34135
34517
  queryIdentify: undefined
34136
34518
  })
34137
34519
  }));
34520
+ case 1:
34521
+ case "end":
34522
+ return _context.stop();
34138
34523
  }
34139
34524
  }, _callee);
34140
34525
  }));
@@ -34275,24 +34660,24 @@ var RuleField = /*#__PURE__*/function (_Component) {
34275
34660
  };
34276
34661
  //规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
34277
34662
  _this.getRegularThresholdRange = /*#__PURE__*/function () {
34278
- var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
34663
+ var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
34279
34664
  var thresholdQuery, extraRequestUrl, querParams, needQueryList, res;
34280
- return _regenerator().w(function (_context) {
34281
- while (1) switch (_context.n) {
34665
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
34666
+ while (1) switch (_context.prev = _context.next) {
34282
34667
  case 0:
34283
34668
  if (queryIdentify) {
34284
- _context.n = 1;
34669
+ _context.next = 2;
34285
34670
  break;
34286
34671
  }
34287
- return _context.a(2);
34288
- case 1:
34672
+ return _context.abrupt("return");
34673
+ case 2:
34289
34674
  thresholdQuery = _this.state.thresholdQuery;
34290
34675
  extraRequestUrl = '';
34291
34676
  querParams = setParams(propertyCode, thresholdQuery);
34292
34677
  if (!queryIdentityInfo.find(function (item) {
34293
34678
  return item.identity == propertyCode;
34294
34679
  })) {
34295
- _context.n = 3;
34680
+ _context.next = 10;
34296
34681
  break;
34297
34682
  }
34298
34683
  //判断查询属性枚举时有没有必传参数,如果必传参数没有值则不调用查询接口
@@ -34306,15 +34691,15 @@ var RuleField = /*#__PURE__*/function (_Component) {
34306
34691
  if (!needQueryList.some(function (item) {
34307
34692
  return !querParams[item] || !querParams[item].length;
34308
34693
  })) {
34309
- _context.n = 2;
34694
+ _context.next = 9;
34310
34695
  break;
34311
34696
  }
34312
- return _context.a(2);
34313
- case 2:
34697
+ return _context.abrupt("return");
34698
+ case 9:
34314
34699
  extraRequestUrl = queryIdentityInfo.find(function (item) {
34315
34700
  return item.identity == propertyCode;
34316
34701
  }).requestUrl || '';
34317
- case 3:
34702
+ case 10:
34318
34703
  if (queryIdentifyType === 'dictCodeIdentify') {
34319
34704
  extraRequestUrl = "bscDictItem/selectDictItemsByDictCode"; // 字典接口
34320
34705
  querParams = {
@@ -34325,7 +34710,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
34325
34710
  // querParams = { dictCode: queryIdentify }
34326
34711
  }
34327
34712
  if (!extraRequestUrl) {
34328
- _context.n = 4;
34713
+ _context.next = 16;
34329
34714
  break;
34330
34715
  }
34331
34716
  if (queryIdentify == 'maintain_area_code') {
@@ -34364,42 +34749,43 @@ var RuleField = /*#__PURE__*/function (_Component) {
34364
34749
  return handleData;
34365
34750
  }
34366
34751
  });
34367
- _context.n = 8;
34752
+ _context.next = 29;
34368
34753
  break;
34369
- case 4:
34754
+ case 16:
34370
34755
  if (!(queryIdentifyType == 'objectPropertyListIdentify')) {
34371
- _context.n = 5;
34756
+ _context.next = 20;
34372
34757
  break;
34373
34758
  }
34374
34759
  _this.setState({
34375
34760
  thresholdList: queryIdentify
34376
34761
  });
34377
- _context.n = 8;
34762
+ _context.next = 29;
34378
34763
  break;
34379
- case 5:
34764
+ case 20:
34380
34765
  if (!(queryIdentifyType == 'objectPropertyCodeIdentify')) {
34381
- _context.n = 6;
34766
+ _context.next = 24;
34382
34767
  break;
34383
34768
  }
34384
34769
  // TODO待处理
34385
34770
  _this.setState({
34386
34771
  thresholdList: []
34387
34772
  });
34388
- _context.n = 8;
34773
+ _context.next = 29;
34389
34774
  break;
34390
- case 6:
34775
+ case 24:
34391
34776
  querParams.queryIdentify = queryIdentify;
34392
- _context.n = 7;
34777
+ _context.next = 27;
34393
34778
  return getRegularThresholdRange(querParams);
34394
- case 7:
34395
- res = _context.v;
34779
+ case 27:
34780
+ res = _context.sent;
34396
34781
  if (handleError(res)) {
34397
34782
  _this.setState({
34398
34783
  thresholdList: (res === null || res === void 0 ? void 0 : res.data) || []
34399
34784
  });
34400
34785
  }
34401
- case 8:
34402
- return _context.a(2);
34786
+ case 29:
34787
+ case "end":
34788
+ return _context.stop();
34403
34789
  }
34404
34790
  }, _callee);
34405
34791
  }));
@@ -35231,11 +35617,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
35231
35617
  isAll: true,
35232
35618
  needNameAndCode: true,
35233
35619
  notChangeOnSelect: true,
35234
- initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
35235
- return _regenerator().w(function (_context2) {
35236
- while (1) switch (_context2.n) {
35620
+ initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
35621
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
35622
+ while (1) switch (_context2.prev = _context2.next) {
35237
35623
  case 0:
35238
- _context2.n = 1;
35624
+ _context2.next = 2;
35239
35625
  return request$2({
35240
35626
  url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
35241
35627
  method: 'get',
@@ -35252,8 +35638,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
35252
35638
  return handleData;
35253
35639
  }
35254
35640
  });
35255
- case 1:
35256
- return _context2.a(2, _context2.v);
35641
+ case 2:
35642
+ return _context2.abrupt("return", _context2.sent);
35643
+ case 3:
35644
+ case "end":
35645
+ return _context2.stop();
35257
35646
  }
35258
35647
  }, _callee2);
35259
35648
  })),
@@ -35277,11 +35666,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
35277
35666
  isAll: true,
35278
35667
  needNameAndCode: true,
35279
35668
  notChangeOnSelect: true,
35280
- initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3() {
35281
- return _regenerator().w(function (_context3) {
35282
- while (1) switch (_context3.n) {
35669
+ initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
35670
+ return _regeneratorRuntime().wrap(function _callee3$(_context3) {
35671
+ while (1) switch (_context3.prev = _context3.next) {
35283
35672
  case 0:
35284
- _context3.n = 1;
35673
+ _context3.next = 2;
35285
35674
  return request$2({
35286
35675
  url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
35287
35676
  method: 'get',
@@ -35298,8 +35687,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
35298
35687
  return handleData;
35299
35688
  }
35300
35689
  });
35301
- case 1:
35302
- return _context3.a(2, _context3.v);
35690
+ case 2:
35691
+ return _context3.abrupt("return", _context3.sent);
35692
+ case 3:
35693
+ case "end":
35694
+ return _context3.stop();
35303
35695
  }
35304
35696
  }, _callee3);
35305
35697
  })),
@@ -35325,11 +35717,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
35325
35717
  isAll: true,
35326
35718
  needNameAndCode: true,
35327
35719
  notChangeOnSelect: true,
35328
- initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4() {
35329
- return _regenerator().w(function (_context4) {
35330
- while (1) switch (_context4.n) {
35720
+ initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
35721
+ return _regeneratorRuntime().wrap(function _callee4$(_context4) {
35722
+ while (1) switch (_context4.prev = _context4.next) {
35331
35723
  case 0:
35332
- _context4.n = 1;
35724
+ _context4.next = 2;
35333
35725
  return request$2({
35334
35726
  url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
35335
35727
  method: 'get',
@@ -35346,8 +35738,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
35346
35738
  return handleData;
35347
35739
  }
35348
35740
  });
35349
- case 1:
35350
- return _context4.a(2, _context4.v);
35741
+ case 2:
35742
+ return _context4.abrupt("return", _context4.sent);
35743
+ case 3:
35744
+ case "end":
35745
+ return _context4.stop();
35351
35746
  }
35352
35747
  }, _callee4);
35353
35748
  })),
@@ -36034,8 +36429,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
36034
36429
  }
36035
36430
  }));
36036
36431
  } else {
36037
- var _values0;
36038
- var _currentValue9 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values0 = values) === null || _values0 === void 0 ? void 0 : _values0.map(function (s, vIndex) {
36432
+ var _values10;
36433
+ var _currentValue9 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values10 = values) === null || _values10 === void 0 ? void 0 : _values10.map(function (s, vIndex) {
36039
36434
  return {
36040
36435
  key: s,
36041
36436
  label: valueNames[vIndex],
@@ -36323,8 +36718,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
36323
36718
  }
36324
36719
  }));
36325
36720
  } else {
36326
- var _values1;
36327
- var _currentValue0 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values1 = values) === null || _values1 === void 0 ? void 0 : _values1.map(function (s, vIndex) {
36721
+ var _values11;
36722
+ var _currentValue10 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values11 = values) === null || _values11 === void 0 ? void 0 : _values11.map(function (s, vIndex) {
36328
36723
  return {
36329
36724
  key: s,
36330
36725
  label: valueNames[vIndex],
@@ -36346,7 +36741,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
36346
36741
  } : {}),
36347
36742
  disabled: disabled,
36348
36743
  labelInValue: true,
36349
- value: _currentValue0,
36744
+ value: _currentValue10,
36350
36745
  requestConfig: _objectSpread2(_objectSpread2({}, dataChoiceBusinessType === 311 ? {
36351
36746
  otherParams: {
36352
36747
  // 配送方式只选择标准配送方式
@@ -36444,8 +36839,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
36444
36839
  }
36445
36840
  }));
36446
36841
  } else {
36447
- var _values10;
36448
- var _currentValue1 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values10 = values) === null || _values10 === void 0 ? void 0 : _values10.map(function (s, vIndex) {
36842
+ var _values12;
36843
+ var _currentValue11 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values12 = values) === null || _values12 === void 0 ? void 0 : _values12.map(function (s, vIndex) {
36449
36844
  return {
36450
36845
  key: s,
36451
36846
  label: valueNames[vIndex],
@@ -36467,7 +36862,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
36467
36862
  } : {}),
36468
36863
  disabled: disabled,
36469
36864
  labelInValue: true,
36470
- value: _currentValue1,
36865
+ value: _currentValue11,
36471
36866
  requestConfig: {
36472
36867
  filterInit: 'qp-code-in'
36473
36868
  },
@@ -36560,8 +36955,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
36560
36955
  }
36561
36956
  }));
36562
36957
  } else {
36563
- var _values11;
36564
- var _currentValue10 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values11 = values) === null || _values11 === void 0 ? void 0 : _values11.map(function (s, vIndex) {
36958
+ var _values13;
36959
+ var _currentValue12 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values13 = values) === null || _values13 === void 0 ? void 0 : _values13.map(function (s, vIndex) {
36565
36960
  return {
36566
36961
  key: s,
36567
36962
  label: valueNames[vIndex],
@@ -36583,7 +36978,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
36583
36978
  } : {}),
36584
36979
  disabled: disabled,
36585
36980
  labelInValue: true,
36586
- value: _currentValue10,
36981
+ value: _currentValue12,
36587
36982
  requestConfig: {
36588
36983
  filterInit: 'qp-brandCode-in'
36589
36984
  },
@@ -36774,8 +37169,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
36774
37169
  }
36775
37170
  }));
36776
37171
  } else {
36777
- var _values12;
36778
- var _currentValue11 = dataInputBusinessType === 12 ? ((_values12 = values) === null || _values12 === void 0 ? void 0 : _values12.map(function (s, vIndex) {
37172
+ var _values14;
37173
+ var _currentValue13 = dataInputBusinessType === 12 ? ((_values14 = values) === null || _values14 === void 0 ? void 0 : _values14.map(function (s, vIndex) {
36779
37174
  return {
36780
37175
  key: s,
36781
37176
  label: valueNames[vIndex]
@@ -36803,7 +37198,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
36803
37198
  isSearchForm: true,
36804
37199
  customSelectorConfig: (others === null || others === void 0 ? void 0 : others.customSelectorConfig) || {},
36805
37200
  disabled: disabled,
36806
- value: _currentValue11,
37201
+ value: _currentValue13,
36807
37202
  onChange: function onChange(value, sourceList) {
36808
37203
  if (dataInputBusinessType === 12) {
36809
37204
  var _value$map3, _sourceList$filter3;
@@ -37123,9 +37518,9 @@ var App$1 = function App(_ref) {
37123
37518
  UpdateState(res);
37124
37519
  };
37125
37520
  var _useState9 = useState(false),
37126
- _useState0 = _slicedToArray(_useState9, 2),
37127
- isModalVisible = _useState0[0],
37128
- setIsModalVisible = _useState0[1];
37521
+ _useState10 = _slicedToArray(_useState9, 2),
37522
+ isModalVisible = _useState10[0],
37523
+ setIsModalVisible = _useState10[1];
37129
37524
  var showModal = function showModal() {
37130
37525
  setIsModalVisible(true);
37131
37526
  };
@@ -37606,26 +38001,27 @@ function RenderCompItem(props) {
37606
38001
  dictData = _useState2[0],
37607
38002
  setDictData = _useState2[1];
37608
38003
  var getDictData = /*#__PURE__*/function () {
37609
- var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
38004
+ var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
37610
38005
  var _data$map;
37611
38006
  var data;
37612
- return _regenerator().w(function (_context) {
37613
- while (1) switch (_context.n) {
38007
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
38008
+ while (1) switch (_context.prev = _context.next) {
37614
38009
  case 0:
37615
- _context.n = 1;
38010
+ _context.next = 2;
37616
38011
  return request$2({
37617
38012
  url: "/basic/bscDictItem/allItemList?qp-code-eq=".concat(ites.dictionaryCode)
37618
38013
  });
37619
- case 1:
37620
- data = _context.v;
38014
+ case 2:
38015
+ data = _context.sent;
37621
38016
  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) {
37622
38017
  return {
37623
38018
  text: item.dictItemName,
37624
38019
  value: item.dictItemCode
37625
38020
  };
37626
38021
  }));
37627
- case 2:
37628
- return _context.a(2);
38022
+ case 4:
38023
+ case "end":
38024
+ return _context.stop();
37629
38025
  }
37630
38026
  }, _callee);
37631
38027
  }));
@@ -37866,11 +38262,11 @@ function RenderCompItem(props) {
37866
38262
  needNameAndCode: true,
37867
38263
  notChangeOnSelect: true,
37868
38264
  initRequestSource: function () {
37869
- var _initRequestSource = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
37870
- return _regenerator().w(function (_context2) {
37871
- while (1) switch (_context2.n) {
38265
+ var _initRequestSource = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
38266
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
38267
+ while (1) switch (_context2.prev = _context2.next) {
37872
38268
  case 0:
37873
- _context2.n = 1;
38269
+ _context2.next = 2;
37874
38270
  return request$2({
37875
38271
  url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
37876
38272
  method: 'get',
@@ -37888,8 +38284,11 @@ function RenderCompItem(props) {
37888
38284
  return handleData;
37889
38285
  }
37890
38286
  });
37891
- case 1:
37892
- return _context2.a(2, _context2.v);
38287
+ case 2:
38288
+ return _context2.abrupt("return", _context2.sent);
38289
+ case 3:
38290
+ case "end":
38291
+ return _context2.stop();
37893
38292
  }
37894
38293
  }, _callee2);
37895
38294
  }));
@@ -39945,13 +40344,13 @@ var BaseRule = /*#__PURE__*/forwardRef(function (props, ref) {
39945
40344
  ruleTypeData = _useState8[0],
39946
40345
  setRuleTypeData = _useState8[1];
39947
40346
  var _useState9 = useState([]),
39948
- _useState0 = _slicedToArray(_useState9, 2),
39949
- ruleReturnConfig = _useState0[0],
39950
- setRuleReturnConfig = _useState0[1];
39951
- var _useState1 = useState({}),
39952
- _useState10 = _slicedToArray(_useState1, 2),
39953
- templateData = _useState10[0],
39954
- setTemplateData = _useState10[1];
40347
+ _useState10 = _slicedToArray(_useState9, 2),
40348
+ ruleReturnConfig = _useState10[0],
40349
+ setRuleReturnConfig = _useState10[1];
40350
+ var _useState11 = useState({}),
40351
+ _useState12 = _slicedToArray(_useState11, 2),
40352
+ templateData = _useState12[0],
40353
+ setTemplateData = _useState12[1];
39955
40354
  var loadRuleReturnConfig = function loadRuleReturnConfig(currentSceneId) {
39956
40355
  request$2({
39957
40356
  url: "/basic/ruleTemplate/".concat(currentSceneId),
@@ -40287,25 +40686,25 @@ var index$7 = /*#__PURE__*/forwardRef(function (props, ref) {
40287
40686
  regularDataList = _useState8[0],
40288
40687
  setRegularDataList = _useState8[1];
40289
40688
  var _useState9 = useState([]),
40290
- _useState0 = _slicedToArray(_useState9, 2),
40291
- baseRuleDetailList = _useState0[0],
40292
- setBaseRuleDetailList = _useState0[1]; // 规则实例详情集合
40293
- var _useState1 = useState([]),
40294
- _useState10 = _slicedToArray(_useState1, 2),
40295
- systemVariableList = _useState10[0],
40296
- setSystemVariableList = _useState10[1];
40297
- var _useState11 = useState(false),
40689
+ _useState10 = _slicedToArray(_useState9, 2),
40690
+ baseRuleDetailList = _useState10[0],
40691
+ setBaseRuleDetailList = _useState10[1]; // 规则实例详情集合
40692
+ var _useState11 = useState([]),
40298
40693
  _useState12 = _slicedToArray(_useState11, 2),
40299
- isGetDefRuleDataRes = _useState12[0],
40300
- setIsGetDefRuleDataRes = _useState12[1]; // 为了在回显的时候辨别异步查询是否已完成,防止提前认为为新增设置了模板数据,导致再渲染编辑时候 输入框defaultValue不再渲染问题
40694
+ systemVariableList = _useState12[0],
40695
+ setSystemVariableList = _useState12[1];
40301
40696
  var _useState13 = useState(false),
40302
40697
  _useState14 = _slicedToArray(_useState13, 2),
40303
- isGetRuleDataRes = _useState14[0],
40304
- setIsGetRuleDataRes = _useState14[1];
40698
+ isGetDefRuleDataRes = _useState14[0],
40699
+ setIsGetDefRuleDataRes = _useState14[1]; // 为了在回显的时候辨别异步查询是否已完成,防止提前认为为新增设置了模板数据,导致再渲染编辑时候 输入框defaultValue不再渲染问题
40305
40700
  var _useState15 = useState(false),
40306
40701
  _useState16 = _slicedToArray(_useState15, 2),
40307
- groupOtherPriorityList = _useState16[0],
40308
- setGroupOtherPriorityList = _useState16[1];
40702
+ isGetRuleDataRes = _useState16[0],
40703
+ setIsGetRuleDataRes = _useState16[1];
40704
+ var _useState17 = useState(false),
40705
+ _useState18 = _slicedToArray(_useState17, 2),
40706
+ groupOtherPriorityList = _useState18[0],
40707
+ setGroupOtherPriorityList = _useState18[1];
40309
40708
  var baseRuleRef = useRef();
40310
40709
  var currentSceneName = (datail === null || datail === void 0 ? void 0 : datail.name) || '';
40311
40710
  // 查询规则组下所有规则实例