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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) hide show
  1. package/.umirc.ts +9 -9
  2. package/dist/components/Business/AddSelectBusiness/index.d.ts +3 -4
  3. package/dist/components/Business/BsLayouts/Components/AllFunc/drawContent.d.ts +1 -2
  4. package/dist/components/Business/BsLayouts/Components/ChooseStore/index.d.ts +1 -2
  5. package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.d.ts +1 -1
  6. package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/leftTree.d.ts +1 -1
  7. package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/rightTree.d.ts +2 -2
  8. package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/DrawContent.d.ts +1 -2
  9. package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/customMenuHeader.d.ts +1 -2
  10. package/dist/components/Business/BsLayouts/Components/CustomerMenu/index.d.ts +1 -1
  11. package/dist/components/Business/BsLayouts/Components/GlobalHeader/index.d.ts +1 -2
  12. package/dist/components/Business/BsLayouts/Components/RightContent/LoginModal.d.ts +1 -2
  13. package/dist/components/Business/BsLayouts/index.d.ts +1 -1
  14. package/dist/components/Business/BsSulaQueryTable/SearchItemSetting.d.ts +5 -5
  15. package/dist/components/Business/BsSulaQueryTable/index.d.ts +1 -2
  16. package/dist/components/Business/BsSulaQueryTable/setting.d.ts +6 -6
  17. package/dist/components/Business/BsSulaQueryTable/utils.d.ts +14 -15
  18. package/dist/components/Business/CommodityEntry/index.d.ts +1 -2
  19. package/dist/components/Business/CommonAlert/index.d.ts +1 -2
  20. package/dist/components/Business/CommonGuideWrapper/index.d.ts +3 -3
  21. package/dist/components/Business/DetailPageWrapper/index.d.ts +12 -12
  22. package/dist/components/Business/HomePageWrapper/index.d.ts +1 -2
  23. package/dist/components/Business/ItemPropertySelector/index.d.ts +1 -2
  24. package/dist/components/Business/JsonQueryTable/components/FieldsModifyModal.d.ts +1 -2
  25. package/dist/components/Business/JsonQueryTable/components/FieldsSettingsTable.d.ts +1 -2
  26. package/dist/components/Business/JsonQueryTable/components/Formula.d.ts +1 -2
  27. package/dist/components/Business/JsonQueryTable/components/MaintainOptions.d.ts +1 -2
  28. package/dist/components/Business/JsonQueryTable/drawer/index.d.ts +1 -2
  29. package/dist/components/Business/PropertyModal/index.d.ts +1 -2
  30. package/dist/components/Business/PropertyModal/propertyGroup.d.ts +1 -1
  31. package/dist/components/Business/SearchSelect/index.d.ts +1 -1
  32. package/dist/components/Business/StateFlow/index.d.ts +1 -2
  33. package/dist/components/Business/SystemLog/index.d.ts +78 -0
  34. package/dist/components/Business/TreeSearchSelect/index.d.ts +1 -1
  35. package/dist/components/Business/columnSettingTable/columnSetting.d.ts +6 -6
  36. package/dist/components/Business/columnSettingTable/components/TableSumComponent.d.ts +1 -2
  37. package/dist/components/Business/columnSettingTable/index.d.ts +3 -3
  38. package/dist/components/Business/columnSettingTable/sulaSettingTable.d.ts +3 -3
  39. package/dist/components/Business/columnSettingTable/utils.d.ts +1 -2
  40. package/dist/components/Business/moreTreeTable/FixedScrollBar.d.ts +1 -1
  41. package/dist/components/Common/ParagraphCopier/index.d.ts +1 -1
  42. package/dist/components/Common/Section/index.d.ts +1 -1
  43. package/dist/components/Functional/AddSelect/index.d.ts +1 -2
  44. package/dist/components/Functional/AuthButton/index.d.ts +1 -2
  45. package/dist/components/Functional/DataImport/index.d.ts +3 -3
  46. package/dist/components/Functional/DataValidation/index.d.ts +5 -5
  47. package/dist/components/Functional/ExportFunctions/ExportIcon/index.d.ts +1 -2
  48. package/dist/components/Functional/QueryMutipleInput/index.d.ts +1 -2
  49. package/dist/components/Functional/QueryMutipleSelect/index.d.ts +1 -2
  50. package/dist/components/Functional/SearchSelect/index.d.ts +1 -1
  51. package/dist/components/Functional/SearchSelect/utils.d.ts +2 -3
  52. package/dist/components/Functional/TreeSearchSelect/index.d.ts +1 -2
  53. package/dist/components/Solution/RuleComponent/CustomPlugin/CustomSelector/CustomSelectorModal.d.ts +1 -1
  54. package/dist/components/Solution/RuleComponent/CustomPlugin/CustomSelector/index.d.ts +1 -2
  55. package/dist/components/Solution/RuleComponent/Formula.d.ts +1 -2
  56. package/dist/components/Solution/RuleComponent/InnerSelect.d.ts +1 -2
  57. package/dist/components/Solution/RuleComponent/RenderCompItem.d.ts +1 -2
  58. package/dist/components/Solution/RuleSetter/RuleInstance.d.ts +1 -2
  59. package/dist/components/Solution/RuleSetter/baseRule.d.ts +1 -1
  60. package/dist/components/Solution/RuleSetter/index.d.ts +1 -1
  61. package/dist/index.d.ts +3 -0
  62. package/dist/index.esm.js +1843 -1176
  63. package/dist/index.js +1845 -1174
  64. package/dist/plugin/TableColumnSetting/index.d.ts +5 -5
  65. package/dist/utils/TableUtils.d.ts +18 -19
  66. package/dist/utils/utils.d.ts +41 -0
  67. package/docs/flow-control-readme.md +283 -0
  68. package/package.json +1 -1
  69. package/src/components/Business/BsSulaQueryTable/SearchItemSetting.tsx +0 -1
  70. package/src/components/Business/BsSulaQueryTable/index.md +57 -4
  71. package/src/components/Business/BsSulaQueryTable/index.tsx +164 -7
  72. package/src/components/Business/BsSulaQueryTable/setting.tsx +6 -0
  73. package/src/components/Business/DetailPageWrapper/index.tsx +81 -1
  74. package/src/components/Business/DetailPageWrapper/readme.md +89 -0
  75. package/src/components/Business/SearchSelect/BusinessUtils.tsx +364 -42
  76. package/src/components/Business/SystemLog/index.md +37 -0
  77. package/src/components/Business/SystemLog/index.tsx +87 -0
  78. package/src/components/Business/columnSettingTable/index.tsx +7 -6
  79. package/src/components/Business/columnSettingTable/sulaSettingTable.tsx +23 -22
  80. package/src/components/Functional/AddSelect/index.tsx +92 -0
  81. package/src/components/Functional/DataValidation/index.tsx +22 -3
  82. package/src/components/Functional/QueryMutipleInput/index.tsx +1 -1
  83. package/src/components/Functional/SearchSelect/index.tsx +6 -3
  84. package/src/components/Functional/SearchSelect/utils.tsx +4 -1
  85. package/src/components/Solution/RuleComponent/RenderCompItem.tsx +9 -1
  86. package/src/components/Solution/RuleComponent/RenderCompItem_README.md +189 -0
  87. package/src/components/Solution/RuleComponent/index.js +1 -0
  88. package/src/components/Solution/RuleComponent/ruleFiled.js +25 -1
  89. package/src/index.ts +7 -0
  90. package/src/utils/utils.ts +41 -1
package/dist/index.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, debounce, cloneDeep as cloneDeep$1, throttle, isEmpty } from 'lodash';
5
+ import _, { omit, uniqBy, escapeRegExp, isNil, 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';
@@ -207,306 +207,113 @@ function _possibleConstructorReturn(t, e) {
207
207
  if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
208
208
  return _assertThisInitialized(t);
209
209
  }
210
- function _regeneratorRuntime() {
211
- _regeneratorRuntime = function () {
212
- return e;
213
- };
214
- var t,
215
- e = {},
216
- r = Object.prototype,
217
- n = r.hasOwnProperty,
218
- o = Object.defineProperty || function (t, e, r) {
219
- t[e] = r.value;
220
- },
221
- i = "function" == typeof Symbol ? Symbol : {},
222
- a = i.iterator || "@@iterator",
223
- c = i.asyncIterator || "@@asyncIterator",
224
- u = i.toStringTag || "@@toStringTag";
225
- function define(t, e, r) {
226
- return Object.defineProperty(t, e, {
227
- value: r,
228
- enumerable: !0,
229
- configurable: !0,
230
- writable: !0
231
- }), t[e];
232
- }
233
- try {
234
- define({}, "");
235
- } catch (t) {
236
- define = function (t, e, r) {
237
- return t[e] = r;
238
- };
239
- }
240
- function wrap(t, e, r, n) {
241
- var i = e && e.prototype instanceof Generator ? e : Generator,
242
- a = Object.create(i.prototype),
243
- c = new Context(n || []);
244
- return o(a, "_invoke", {
245
- value: makeInvokeMethod(t, r, c)
246
- }), a;
247
- }
248
- function tryCatch(t, e, r) {
249
- try {
250
- return {
251
- type: "normal",
252
- arg: t.call(e, r)
253
- };
254
- } catch (t) {
255
- return {
256
- type: "throw",
257
- arg: t
210
+ function _regenerator() {
211
+ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
212
+ var e,
213
+ t,
214
+ r = "function" == typeof Symbol ? Symbol : {},
215
+ n = r.iterator || "@@iterator",
216
+ o = r.toStringTag || "@@toStringTag";
217
+ function i(r, n, o, i) {
218
+ var c = n && n.prototype instanceof Generator ? n : Generator,
219
+ u = Object.create(c.prototype);
220
+ return _regeneratorDefine(u, "_invoke", function (r, n, o) {
221
+ var i,
222
+ c,
223
+ u,
224
+ f = 0,
225
+ p = o || [],
226
+ y = !1,
227
+ G = {
228
+ p: 0,
229
+ n: 0,
230
+ v: e,
231
+ a: d,
232
+ f: d.bind(e, 4),
233
+ d: function (t, r) {
234
+ return i = t, c = 0, u = e, G.n = r, a;
235
+ }
236
+ };
237
+ function d(r, n) {
238
+ for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) {
239
+ var o,
240
+ i = p[t],
241
+ d = G.p,
242
+ l = i[2];
243
+ r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0));
244
+ }
245
+ if (o || r > 1) return a;
246
+ throw y = !0, n;
247
+ }
248
+ return function (o, p, l) {
249
+ if (f > 1) throw TypeError("Generator is already running");
250
+ for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) {
251
+ i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u);
252
+ try {
253
+ if (f = 2, i) {
254
+ if (c || (o = "next"), t = i[o]) {
255
+ if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object");
256
+ if (!t.done) return t;
257
+ u = t.value, c < 2 && (c = 0);
258
+ } else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1);
259
+ i = e;
260
+ } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break;
261
+ } catch (t) {
262
+ i = e, c = 1, u = t;
263
+ } finally {
264
+ f = 1;
265
+ }
266
+ }
267
+ return {
268
+ value: t,
269
+ done: y
270
+ };
258
271
  };
259
- }
272
+ }(r, o, i), !0), u;
260
273
  }
261
- e.wrap = wrap;
262
- var h = "suspendedStart",
263
- l = "suspendedYield",
264
- f = "executing",
265
- s = "completed",
266
- y = {};
274
+ var a = {};
267
275
  function Generator() {}
268
276
  function GeneratorFunction() {}
269
277
  function GeneratorFunctionPrototype() {}
270
- var p = {};
271
- define(p, a, function () {
278
+ t = Object.getPrototypeOf;
279
+ var c = [][n] ? t(t([][n]())) : (_regeneratorDefine(t = {}, n, function () {
280
+ return this;
281
+ }), t),
282
+ u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c);
283
+ function f(e) {
284
+ return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e;
285
+ }
286
+ return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine(u), _regeneratorDefine(u, o, "Generator"), _regeneratorDefine(u, n, function () {
272
287
  return this;
273
- });
274
- var d = Object.getPrototypeOf,
275
- v = d && d(d(values([])));
276
- v && v !== r && n.call(v, a) && (p = v);
277
- var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
278
- function defineIteratorMethods(t) {
279
- ["next", "throw", "return"].forEach(function (e) {
280
- define(t, e, function (t) {
281
- return this._invoke(e, t);
282
- });
283
- });
284
- }
285
- function AsyncIterator(t, e) {
286
- function invoke(r, o, i, a) {
287
- var c = tryCatch(t[r], t, o);
288
- if ("throw" !== c.type) {
289
- var u = c.arg,
290
- h = u.value;
291
- return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
292
- invoke("next", t, i, a);
293
- }, function (t) {
294
- invoke("throw", t, i, a);
295
- }) : e.resolve(h).then(function (t) {
296
- u.value = t, i(u);
297
- }, function (t) {
298
- return invoke("throw", t, i, a);
299
- });
300
- }
301
- a(c.arg);
302
- }
303
- var r;
304
- o(this, "_invoke", {
305
- value: function (t, n) {
306
- function callInvokeWithMethodAndArg() {
307
- return new e(function (e, r) {
308
- invoke(t, n, e, r);
309
- });
310
- }
311
- return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
312
- }
313
- });
314
- }
315
- function makeInvokeMethod(e, r, n) {
316
- var o = h;
317
- return function (i, a) {
318
- if (o === f) throw Error("Generator is already running");
319
- if (o === s) {
320
- if ("throw" === i) throw a;
321
- return {
322
- value: t,
323
- done: !0
324
- };
325
- }
326
- for (n.method = i, n.arg = a;;) {
327
- var c = n.delegate;
328
- if (c) {
329
- var u = maybeInvokeDelegate(c, n);
330
- if (u) {
331
- if (u === y) continue;
332
- return u;
333
- }
334
- }
335
- if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
336
- if (o === h) throw o = s, n.arg;
337
- n.dispatchException(n.arg);
338
- } else "return" === n.method && n.abrupt("return", n.arg);
339
- o = f;
340
- var p = tryCatch(e, r, n);
341
- if ("normal" === p.type) {
342
- if (o = n.done ? s : l, p.arg === y) continue;
343
- return {
344
- value: p.arg,
345
- done: n.done
346
- };
347
- }
348
- "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
349
- }
350
- };
351
- }
352
- function maybeInvokeDelegate(e, r) {
353
- var n = r.method,
354
- o = e.iterator[n];
355
- if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
356
- var i = tryCatch(o, e.iterator, r.arg);
357
- if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
358
- var a = i.arg;
359
- return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
360
- }
361
- function pushTryEntry(t) {
362
- var e = {
363
- tryLoc: t[0]
364
- };
365
- 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
366
- }
367
- function resetTryEntry(t) {
368
- var e = t.completion || {};
369
- e.type = "normal", delete e.arg, t.completion = e;
370
- }
371
- function Context(t) {
372
- this.tryEntries = [{
373
- tryLoc: "root"
374
- }], t.forEach(pushTryEntry, this), this.reset(!0);
375
- }
376
- function values(e) {
377
- if (e || "" === e) {
378
- var r = e[a];
379
- if (r) return r.call(e);
380
- if ("function" == typeof e.next) return e;
381
- if (!isNaN(e.length)) {
382
- var o = -1,
383
- i = function next() {
384
- for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
385
- return next.value = t, next.done = !0, next;
386
- };
387
- return i.next = i;
388
- }
389
- }
390
- throw new TypeError(typeof e + " is not iterable");
391
- }
392
- return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
393
- value: GeneratorFunctionPrototype,
394
- configurable: !0
395
- }), o(GeneratorFunctionPrototype, "constructor", {
396
- value: GeneratorFunction,
397
- configurable: !0
398
- }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
399
- var e = "function" == typeof t && t.constructor;
400
- return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
401
- }, e.mark = function (t) {
402
- return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
403
- }, e.awrap = function (t) {
288
+ }), _regeneratorDefine(u, "toString", function () {
289
+ return "[object Generator]";
290
+ }), (_regenerator = function () {
404
291
  return {
405
- __await: t
292
+ w: i,
293
+ m: f
406
294
  };
407
- }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
408
- return this;
409
- }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
410
- void 0 === i && (i = Promise);
411
- var a = new AsyncIterator(wrap(t, r, n, o), i);
412
- return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
413
- return t.done ? t.value : a.next();
414
- });
415
- }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
416
- return this;
417
- }), define(g, "toString", function () {
418
- return "[object Generator]";
419
- }), e.keys = function (t) {
420
- var e = Object(t),
421
- r = [];
422
- for (var n in e) r.push(n);
423
- return r.reverse(), function next() {
424
- for (; r.length;) {
425
- var t = r.pop();
426
- if (t in e) return next.value = t, next.done = !1, next;
427
- }
428
- return next.done = !0, next;
429
- };
430
- }, e.values = values, Context.prototype = {
431
- constructor: Context,
432
- reset: function (e) {
433
- if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
434
- },
435
- stop: function () {
436
- this.done = !0;
437
- var t = this.tryEntries[0].completion;
438
- if ("throw" === t.type) throw t.arg;
439
- return this.rval;
440
- },
441
- dispatchException: function (e) {
442
- if (this.done) throw e;
443
- var r = this;
444
- function handle(n, o) {
445
- return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
446
- }
447
- for (var o = this.tryEntries.length - 1; o >= 0; --o) {
448
- var i = this.tryEntries[o],
449
- a = i.completion;
450
- if ("root" === i.tryLoc) return handle("end");
451
- if (i.tryLoc <= this.prev) {
452
- var c = n.call(i, "catchLoc"),
453
- u = n.call(i, "finallyLoc");
454
- if (c && u) {
455
- if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
456
- if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
457
- } else if (c) {
458
- if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
459
- } else {
460
- if (!u) throw Error("try statement without catch or finally");
461
- if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
462
- }
463
- }
464
- }
465
- },
466
- abrupt: function (t, e) {
467
- for (var r = this.tryEntries.length - 1; r >= 0; --r) {
468
- var o = this.tryEntries[r];
469
- if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
470
- var i = o;
471
- break;
472
- }
473
- }
474
- i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
475
- var a = i ? i.completion : {};
476
- return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
477
- },
478
- complete: function (t, e) {
479
- if ("throw" === t.type) throw t.arg;
480
- return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
481
- },
482
- finish: function (t) {
483
- for (var e = this.tryEntries.length - 1; e >= 0; --e) {
484
- var r = this.tryEntries[e];
485
- if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
486
- }
487
- },
488
- catch: function (t) {
489
- for (var e = this.tryEntries.length - 1; e >= 0; --e) {
490
- var r = this.tryEntries[e];
491
- if (r.tryLoc === t) {
492
- var n = r.completion;
493
- if ("throw" === n.type) {
494
- var o = n.arg;
495
- resetTryEntry(r);
496
- }
497
- return o;
498
- }
499
- }
500
- throw Error("illegal catch attempt");
501
- },
502
- delegateYield: function (e, r, n) {
503
- return this.delegate = {
504
- iterator: values(e),
505
- resultName: r,
506
- nextLoc: n
507
- }, "next" === this.method && (this.arg = t), y;
295
+ })();
296
+ }
297
+ function _regeneratorDefine(e, r, n, t) {
298
+ var i = Object.defineProperty;
299
+ try {
300
+ i({}, "", {});
301
+ } catch (e) {
302
+ i = 0;
303
+ }
304
+ _regeneratorDefine = function (e, r, n, t) {
305
+ function o(r, n) {
306
+ _regeneratorDefine(e, r, function (e) {
307
+ return this._invoke(r, n, e);
308
+ });
508
309
  }
509
- }, e;
310
+ r ? i ? i(e, r, {
311
+ value: n,
312
+ enumerable: !t,
313
+ configurable: !t,
314
+ writable: !t
315
+ }) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2));
316
+ }, _regeneratorDefine(e, r, n, t);
510
317
  }
511
318
  function _setPrototypeOf(t, e) {
512
319
  return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
@@ -1454,6 +1261,45 @@ var handleConvertResponse = function handleConvertResponse(items, total) {
1454
1261
  var noEmptyArray = function noEmptyArray(targetObj) {
1455
1262
  return Array.isArray(targetObj) && targetObj.length !== 0;
1456
1263
  };
1264
+ var formContainerAndItemLayout = function formContainerAndItemLayout(type, title, name) {
1265
+ return type === 'form' ? {
1266
+ container: {
1267
+ type: 'card',
1268
+ props: {
1269
+ title: title,
1270
+ id: Math.random(),
1271
+ level: 1,
1272
+ name: name
1273
+ }
1274
+ },
1275
+ itemLayout: {
1276
+ span: 8,
1277
+ labelCol: {
1278
+ span: 8
1279
+ },
1280
+ wrapperCol: {
1281
+ span: 18
1282
+ }
1283
+ }
1284
+ } : {
1285
+ container: {
1286
+ type: 'card',
1287
+ props: {
1288
+ title: title,
1289
+ id: Math.random(),
1290
+ level: 1,
1291
+ bordered: null,
1292
+ isWhiteCard: true,
1293
+ name: name
1294
+ }
1295
+ },
1296
+ itemLayout: {
1297
+ wrapperCol: {
1298
+ span: 0
1299
+ }
1300
+ }
1301
+ };
1302
+ };
1457
1303
 
1458
1304
  // 判断某个按钮/菜单 是否有权限,返回布尔值
1459
1305
  var authFunc = function authFunc(code) {
@@ -1540,22 +1386,22 @@ var parseToServe = function parseToServe(outdata, revertChart) {
1540
1386
  // sheepMap是表头字段中英文映射
1541
1387
  // sheetCount:表的数量,默认一张
1542
1388
  var resolveFile = /*#__PURE__*/function () {
1543
- var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(file) {
1389
+ var _ref3 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(file) {
1544
1390
  var config,
1545
1391
  data,
1546
1392
  _args = arguments;
1547
- return _regeneratorRuntime().wrap(function _callee$(_context) {
1548
- while (1) switch (_context.prev = _context.next) {
1393
+ return _regenerator().w(function (_context) {
1394
+ while (1) switch (_context.n) {
1549
1395
  case 0:
1550
1396
  config = _args.length > 1 && _args[1] !== undefined ? _args[1] : {
1551
1397
  sheetMap: [],
1552
1398
  sheetCount: 1
1553
1399
  };
1554
- _context.next = 3;
1400
+ _context.n = 1;
1555
1401
  return analyseExcelToByte(file);
1556
- case 3:
1557
- data = _context.sent;
1558
- return _context.abrupt("return", new Promise(function (resolve, reject) {
1402
+ case 1:
1403
+ data = _context.v;
1404
+ return _context.a(2, new Promise(function (resolve, reject) {
1559
1405
  var workbook = read(data, {
1560
1406
  type: 'binary'
1561
1407
  });
@@ -1567,9 +1413,6 @@ var resolveFile = /*#__PURE__*/function () {
1567
1413
  var outdata = parseToServe(sheetMapJsonList, config.sheetMap);
1568
1414
  resolve(outdata);
1569
1415
  }));
1570
- case 5:
1571
- case "end":
1572
- return _context.stop();
1573
1416
  }
1574
1417
  }, _callee);
1575
1418
  }));
@@ -1579,41 +1422,40 @@ var resolveFile = /*#__PURE__*/function () {
1579
1422
  }();
1580
1423
  //读取文件
1581
1424
  var readerXlsxToList = /*#__PURE__*/function () {
1582
- var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(file, fileList, uploadRef, done, otherInfo) {
1425
+ var _ref4 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(file, fileList, uploadRef, done, otherInfo) {
1583
1426
  var _ref5, callback, sheetMap, nowFile, data2, data;
1584
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
1585
- while (1) switch (_context2.prev = _context2.next) {
1427
+ return _regenerator().w(function (_context2) {
1428
+ while (1) switch (_context2.n) {
1586
1429
  case 0:
1587
1430
  _ref5 = otherInfo || {}, callback = _ref5.callback, sheetMap = _ref5.sheetMap;
1588
1431
  if (!(Array.isArray(fileList) && fileList.length > 0)) {
1589
- _context2.next = 15;
1432
+ _context2.n = 3;
1590
1433
  break;
1591
1434
  }
1592
1435
  nowFile = fileList[fileList.length - 1]; // 阻止了默认上传file没有originFileObj了 得从fileList中去取
1593
- _context2.next = 5;
1436
+ _context2.n = 1;
1594
1437
  return resolveFile(nowFile.originFileObj, {
1595
1438
  sheetMap: fieldMappingReverse(sheetMap),
1596
1439
  sheetCount: 1
1597
1440
  });
1598
- case 5:
1599
- data2 = _context2.sent;
1441
+ case 1:
1442
+ data2 = _context2.v;
1600
1443
  data = data2[0];
1601
1444
  if (data.length) {
1602
- _context2.next = 10;
1445
+ _context2.n = 2;
1603
1446
  break;
1604
1447
  }
1605
1448
  message$1.error("\u8BF7\u5148\u5F55\u5165\u6570\u636E\u518D\u5BFC\u5165");
1606
- return _context2.abrupt("return");
1607
- case 10:
1449
+ return _context2.a(2);
1450
+ case 2:
1608
1451
  if (callback) callback(data);
1609
1452
  !callback && message$1.success("\u5BFC\u5165\u6210\u529F");
1610
- return _context2.abrupt("return", data);
1611
- case 15:
1453
+ return _context2.a(2, data);
1454
+ case 3:
1612
1455
  message$1.error("\u8BF7\u9009\u62E9\u6587\u4EF6");
1613
- return _context2.abrupt("return");
1614
- case 17:
1615
- case "end":
1616
- return _context2.stop();
1456
+ return _context2.a(2);
1457
+ case 4:
1458
+ return _context2.a(2);
1617
1459
  }
1618
1460
  }, _callee2);
1619
1461
  }));
@@ -2565,17 +2407,14 @@ var requestUtil = function requestUtil(_ref) {
2565
2407
  return request$1(url, parms).then(handleResponseData);
2566
2408
  };
2567
2409
  var handleResponseData = /*#__PURE__*/function () {
2568
- var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(response) {
2569
- return _regeneratorRuntime().wrap(function _callee$(_context) {
2570
- while (1) switch (_context.prev = _context.next) {
2410
+ var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(response) {
2411
+ return _regenerator().w(function (_context) {
2412
+ while (1) switch (_context.n) {
2571
2413
  case 0:
2572
- return _context.abrupt("return", Promise.resolve({
2414
+ return _context.a(2, Promise.resolve({
2573
2415
  data: response,
2574
2416
  status: response.status
2575
2417
  }));
2576
- case 1:
2577
- case "end":
2578
- return _context.stop();
2579
2418
  }
2580
2419
  }, _callee);
2581
2420
  }));
@@ -2948,88 +2787,108 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
2948
2787
  data: luckysheet.transToCellData(newData)
2949
2788
  });
2950
2789
  };
2951
- _this.resetData = function () {
2790
+ _this.resetData = /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
2952
2791
  var _customerColumnsMappi;
2953
- var _this$props = _this.props,
2954
- validDataUrl = _this$props.validDataUrl,
2955
- validDataParams = _this$props.validDataParams,
2956
- updateData = _this$props.updateData,
2957
- columns = _this$props.columns,
2958
- isBrandAuth = _this$props.isBrandAuth,
2959
- _this$props$isCheckSt = _this$props.isCheckStockNum,
2960
- isCheckStockNum = _this$props$isCheckSt === void 0 ? true : _this$props$isCheckSt,
2961
- customerColumnsMapping = _this$props.customerColumnsMapping;
2962
- var resultData = _this.getData().filter(function (d) {
2963
- return _.compact(Object.values(d)).length;
2964
- });
2965
- var resultColumns = (customerColumnsMapping === null || customerColumnsMapping === void 0 ? void 0 : customerColumnsMapping.length) ? customerColumnsMapping === null || customerColumnsMapping === void 0 ? void 0 : (_customerColumnsMappi = customerColumnsMapping.filter(function (c) {
2966
- return !!(c === null || c === void 0 ? void 0 : c.name);
2967
- })) === null || _customerColumnsMappi === void 0 ? void 0 : _customerColumnsMappi.map(function (c) {
2968
- return c.name;
2969
- }) : columns;
2970
- // 处理业务参数
2971
- var otherParams = {};
2972
- if (isBrandAuth) {
2973
- otherParams = {
2974
- brandAuth: 'ctl-withAuth'
2975
- };
2976
- }
2977
- requestUtil.post(validDataUrl, _objectSpread2(_objectSpread2(_objectSpread2({}, otherParams), validDataParams), {}, {
2978
- columns: resultColumns,
2979
- data: resultData,
2980
- checkStockNum: isCheckStockNum
2981
- })).then(function (result) {
2982
- result = result.data;
2983
- if (judgeIsRequestError(result)) {
2984
- message$1.error(result.msg);
2985
- return;
2986
- }
2987
- var items = _this.state.items;
2988
- var validIndex = items.length;
2989
- var res = result.data;
2990
- var sheetData = luckysheet.getSheetData();
2991
- sheetData.map(function (item, index) {
2992
- if (!res[index]) return item;
2993
- var changeVMIndex = resultColumns === null || resultColumns === void 0 ? void 0 : resultColumns.findIndex(function (i) {
2994
- return i === 'skuCode';
2995
- });
2996
- if ((resultColumns === null || resultColumns === void 0 ? void 0 : resultColumns.find(function (i) {
2997
- return i === 'skuCode';
2998
- })) && item[changeVMIndex].v !== res[index].skuCode) {
2999
- item[changeVMIndex].v = res[index].skuCode;
3000
- item[changeVMIndex].m = res[index].skuCode;
3001
- }
3002
- if (res[index].flag) {
3003
- item[validIndex] = _objectSpread2(_objectSpread2({}, item[validIndex]), {}, {
3004
- v: '通过',
3005
- m: '通过',
3006
- fc: 'green' //字体颜色为 "#990000"
3007
- });
3008
- } else {
3009
- item[validIndex] = _objectSpread2(_objectSpread2({}, item[validIndex]), {}, {
3010
- v: res[index].checkResults,
3011
- m: res[index].checkResults,
3012
- fc: 'red' //字体颜色为 "#990000"
2792
+ var _this$props, validDataUrl, validDataParams, updateData, columns, isBrandAuth, _this$props$isCheckSt, isCheckStockNum, customerColumnsMapping, checkSharedValue, beforeCheckCallback, resultData, resultColumns, otherParams;
2793
+ return _regenerator().w(function (_context) {
2794
+ while (1) switch (_context.n) {
2795
+ case 0:
2796
+ _this$props = _this.props, validDataUrl = _this$props.validDataUrl, validDataParams = _this$props.validDataParams, updateData = _this$props.updateData, columns = _this$props.columns, isBrandAuth = _this$props.isBrandAuth, _this$props$isCheckSt = _this$props.isCheckStockNum, isCheckStockNum = _this$props$isCheckSt === void 0 ? true : _this$props$isCheckSt, customerColumnsMapping = _this$props.customerColumnsMapping, checkSharedValue = _this$props.checkSharedValue, beforeCheckCallback = _this$props.beforeCheckCallback;
2797
+ resultData = _this.getData().filter(function (d) {
2798
+ return _.compact(Object.values(d)).length;
3013
2799
  });
3014
- }
3015
- item[validIndex].ct = {
3016
- fa: 'General',
3017
- t: 'g'
3018
- };
3019
- });
3020
- // sheetData.map((item, index) => {
3021
- // luckysheet.setCellValue(index + 1, 4, 345)
3022
- // })
3023
- luckysheet.create(_this.setConfig(luckysheet.transToCellData(sheetData)));
3024
- _this.setState({
3025
- data: luckysheet.transToCellData(sheetData),
3026
- errorListCheck: false,
3027
- resultData: res
3028
- });
3029
- console.log(setExportData);
3030
- setExportData([123123]);
3031
- }).catch(function (err) {});
3032
- };
2800
+ resultColumns = (customerColumnsMapping === null || customerColumnsMapping === void 0 ? void 0 : customerColumnsMapping.length) ? customerColumnsMapping === null || customerColumnsMapping === void 0 ? void 0 : (_customerColumnsMappi = customerColumnsMapping.filter(function (c) {
2801
+ return !!(c === null || c === void 0 ? void 0 : c.name);
2802
+ })) === null || _customerColumnsMappi === void 0 ? void 0 : _customerColumnsMappi.map(function (c) {
2803
+ return c.name;
2804
+ }) : columns; // 处理业务参数
2805
+ otherParams = {};
2806
+ if (isBrandAuth) {
2807
+ otherParams = {
2808
+ brandAuth: 'ctl-withAuth'
2809
+ };
2810
+ }
2811
+ // 处理校验参数,隐藏校验参数(公用的部分)
2812
+ if (checkSharedValue) {
2813
+ resultData = resultData.map(function (d) {
2814
+ return _objectSpread2(_objectSpread2({}, d), checkSharedValue);
2815
+ });
2816
+ }
2817
+ // 调用回调函数
2818
+ if (!beforeCheckCallback) {
2819
+ _context.n = 2;
2820
+ break;
2821
+ }
2822
+ _context.n = 1;
2823
+ return beforeCheckCallback(resultData);
2824
+ case 1:
2825
+ resultData = _context.v;
2826
+ if (resultData) {
2827
+ _context.n = 2;
2828
+ break;
2829
+ }
2830
+ return _context.a(2);
2831
+ case 2:
2832
+ requestUtil.post(validDataUrl, _objectSpread2(_objectSpread2(_objectSpread2({}, otherParams), validDataParams), {}, {
2833
+ columns: resultColumns,
2834
+ data: resultData,
2835
+ checkStockNum: isCheckStockNum
2836
+ })).then(function (result) {
2837
+ result = result.data;
2838
+ if (judgeIsRequestError(result)) {
2839
+ message$1.error(result.msg);
2840
+ return;
2841
+ }
2842
+ var items = _this.state.items;
2843
+ var validIndex = items.length;
2844
+ var res = result.data;
2845
+ var sheetData = luckysheet.getSheetData();
2846
+ sheetData.map(function (item, index) {
2847
+ if (!res[index]) return item;
2848
+ var changeVMIndex = resultColumns === null || resultColumns === void 0 ? void 0 : resultColumns.findIndex(function (i) {
2849
+ return i === 'skuCode';
2850
+ });
2851
+ if ((resultColumns === null || resultColumns === void 0 ? void 0 : resultColumns.find(function (i) {
2852
+ return i === 'skuCode';
2853
+ })) && item[changeVMIndex].v !== res[index].skuCode) {
2854
+ item[changeVMIndex].v = res[index].skuCode;
2855
+ item[changeVMIndex].m = res[index].skuCode;
2856
+ }
2857
+ if (res[index].flag) {
2858
+ item[validIndex] = _objectSpread2(_objectSpread2({}, item[validIndex]), {}, {
2859
+ v: '通过',
2860
+ m: '通过',
2861
+ fc: 'green' //字体颜色为 "#990000"
2862
+ });
2863
+ } else {
2864
+ item[validIndex] = _objectSpread2(_objectSpread2({}, item[validIndex]), {}, {
2865
+ v: res[index].checkResults,
2866
+ m: res[index].checkResults,
2867
+ fc: 'red' //字体颜色为 "#990000"
2868
+ });
2869
+ }
2870
+ item[validIndex].ct = {
2871
+ fa: 'General',
2872
+ t: 'g'
2873
+ };
2874
+ });
2875
+ // sheetData.map((item, index) => {
2876
+ // luckysheet.setCellValue(index + 1, 4, 345)
2877
+ // })
2878
+ luckysheet.create(_this.setConfig(luckysheet.transToCellData(sheetData)));
2879
+ _this.setState({
2880
+ data: luckysheet.transToCellData(sheetData),
2881
+ errorListCheck: false,
2882
+ resultData: res
2883
+ });
2884
+ console.log(setExportData);
2885
+ setExportData([123123]);
2886
+ }).catch(function (err) {});
2887
+ case 3:
2888
+ return _context.a(2);
2889
+ }
2890
+ }, _callee);
2891
+ }));
3033
2892
  _this.filterData = function (type) {
3034
2893
  var _this$state = _this.state,
3035
2894
  showErrorData = _this$state.showErrorData,
@@ -3186,8 +3045,8 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
3186
3045
  if (!(res === null || res === void 0 ? void 0 : res[index])) return item;
3187
3046
  var rowItem = res[index];
3188
3047
  item === null || item === void 0 ? void 0 : item.forEach(function (element, colIndex) {
3189
- var _ref4;
3190
- var colKey = (_ref4 = Object.keys(rowItem) || []) === null || _ref4 === void 0 ? void 0 : _ref4[colIndex];
3048
+ var _ref5;
3049
+ var colKey = (_ref5 = Object.keys(rowItem) || []) === null || _ref5 === void 0 ? void 0 : _ref5[colIndex];
3191
3050
  if (!(rowItem === null || rowItem === void 0 ? void 0 : rowItem[colKey])) return element;
3192
3051
  element.m = rowItem[colKey];
3193
3052
  element.v = rowItem[colKey];
@@ -3263,10 +3122,10 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
3263
3122
  notExcelImport = _this$props6.notExcelImport,
3264
3123
  excelImportConfig = _this$props6.excelImportConfig,
3265
3124
  getTemplate = _this$props6.getTemplate;
3266
- var _ref5 = excelImportConfig || {},
3267
- size = _ref5.size,
3268
- accept = _ref5.accept,
3269
- suffixRule = _ref5.suffixRule;
3125
+ var _ref6 = excelImportConfig || {},
3126
+ size = _ref6.size,
3127
+ accept = _ref6.accept,
3128
+ suffixRule = _ref6.suffixRule;
3270
3129
  var totalSummary = this.getCount();
3271
3130
  var sheetMap = this.getSheetMap();
3272
3131
  var callBackFun = this.importExcelToLuckySheet;
@@ -3292,9 +3151,9 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
3292
3151
  var _Object$keys;
3293
3152
  if (!(sheetMap && ((_Object$keys = Object.keys(sheetMap)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.length))) return;
3294
3153
  if (info.file.status !== 'uploading') {
3295
- var _ref6 = info || {},
3296
- file = _ref6.file,
3297
- fileList = _ref6.fileList;
3154
+ var _ref7 = info || {},
3155
+ file = _ref7.file,
3156
+ fileList = _ref7.fileList;
3298
3157
  readerXlsxToList(file, fileList, null, null, {
3299
3158
  callback: function callback(excelData) {
3300
3159
  callBackFun(excelData);
@@ -4101,7 +3960,8 @@ var QueryMutipleInput = function QueryMutipleInput(_ref) {
4101
3960
  setIsModalVisible(true);
4102
3961
  //弹窗打开时 默认搜索内容换行显示
4103
3962
  setPopValue(function (data) {
4104
- return data.replace(/,/g, '\n');
3963
+ var _data$replace;
3964
+ return data === null || data === void 0 ? void 0 : (_data$replace = data.replace) === null || _data$replace === void 0 ? void 0 : _data$replace.call(data, /,/g, '\n');
4105
3965
  });
4106
3966
  };
4107
3967
  var handleOk = function handleOk() {
@@ -4593,11 +4453,13 @@ var maxTagPlaceholder = function maxTagPlaceholder(selectedValues, _ref4) {
4593
4453
  };
4594
4454
  // 弹窗数据表头处理
4595
4455
  var handleTableColumns = function handleTableColumns(tableColumns) {
4456
+ var _showTableColumns, _showTableColumns2;
4596
4457
  // 按照默认设置排序 > 没有排序字段的展示所有列表头 > 没有表头列不展示
4597
4458
  var showTableColumns = (tableColumns === null || tableColumns === void 0 ? void 0 : tableColumns.filter(function (s) {
4598
4459
  return typeof s.defaultSort == 'number';
4599
4460
  })) || tableColumns || [];
4600
- return (showTableColumns === null || showTableColumns === void 0 ? void 0 : showTableColumns.sort(function (a, b) {
4461
+ showTableColumns = ((_showTableColumns = showTableColumns) === null || _showTableColumns === void 0 ? void 0 : _showTableColumns.length) ? showTableColumns : tableColumns;
4462
+ return ((_showTableColumns2 = showTableColumns) === null || _showTableColumns2 === void 0 ? void 0 : _showTableColumns2.sort(function (a, b) {
4601
4463
  return a.defaultSort - b.defaultSort;
4602
4464
  })) || [];
4603
4465
  };
@@ -4715,27 +4577,27 @@ var QueryMutipleSearchSelect = function QueryMutipleSearchSelect(_ref) {
4715
4577
  popvalue = _useState8[0],
4716
4578
  setPopValue = _useState8[1];
4717
4579
  var _useState9 = useState([]),
4718
- _useState10 = _slicedToArray(_useState9, 2),
4719
- source = _useState10[0],
4720
- setSource = _useState10[1];
4580
+ _useState0 = _slicedToArray(_useState9, 2),
4581
+ source = _useState0[0],
4582
+ setSource = _useState0[1];
4721
4583
  var _useDebounceFn = useDebounceFn(function () {
4722
4584
  getData();
4723
4585
  }, {
4724
4586
  wait: 1000
4725
4587
  }),
4726
4588
  run = _useDebounceFn.run;
4727
- var _useState11 = useState(false),
4589
+ var _useState1 = useState(false),
4590
+ _useState10 = _slicedToArray(_useState1, 2),
4591
+ fetching = _useState10[0],
4592
+ setFetching = _useState10[1];
4593
+ var _useState11 = useState(''),
4728
4594
  _useState12 = _slicedToArray(_useState11, 2),
4729
- fetching = _useState12[0],
4730
- setFetching = _useState12[1];
4731
- var _useState13 = useState(''),
4595
+ searchValue = _useState12[0],
4596
+ setSearchValue = _useState12[1];
4597
+ var _useState13 = useState(resultSourceKey),
4732
4598
  _useState14 = _slicedToArray(_useState13, 2),
4733
- searchValue = _useState14[0],
4734
- setSearchValue = _useState14[1];
4735
- var _useState15 = useState(resultSourceKey),
4736
- _useState16 = _slicedToArray(_useState15, 2),
4737
- uniqueValue = _useState16[0],
4738
- setUniqueValue = _useState16[1];
4599
+ uniqueValue = _useState14[0],
4600
+ setUniqueValue = _useState14[1];
4739
4601
  useEffect(function () {
4740
4602
  setPopValue(value);
4741
4603
  onValueChange(value);
@@ -5152,21 +5014,21 @@ var PropertySelector = function PropertySelector(_ref) {
5152
5014
  notCommonProperty = _useState8[0],
5153
5015
  setNotCommonProperty = _useState8[1];
5154
5016
  var _useState9 = useState(false),
5155
- _useState10 = _slicedToArray(_useState9, 2),
5156
- visible = _useState10[0],
5157
- setVisible = _useState10[1];
5158
- var _useState11 = useState(false),
5017
+ _useState0 = _slicedToArray(_useState9, 2),
5018
+ visible = _useState0[0],
5019
+ setVisible = _useState0[1];
5020
+ var _useState1 = useState(false),
5021
+ _useState10 = _slicedToArray(_useState1, 2),
5022
+ showNotCommon = _useState10[0],
5023
+ setShowNotCommon = _useState10[1]; // 是否展示非常用属性
5024
+ var _useState11 = useState([]),
5159
5025
  _useState12 = _slicedToArray(_useState11, 2),
5160
- showNotCommon = _useState12[0],
5161
- setShowNotCommon = _useState12[1]; // 是否展示非常用属性
5162
- var _useState13 = useState([]),
5026
+ classifyOptionList = _useState12[0],
5027
+ setClassifyOptionList = _useState12[1];
5028
+ var _useState13 = useState('1'),
5163
5029
  _useState14 = _slicedToArray(_useState13, 2),
5164
- classifyOptionList = _useState14[0],
5165
- setClassifyOptionList = _useState14[1];
5166
- var _useState15 = useState('1'),
5167
- _useState16 = _slicedToArray(_useState15, 2),
5168
- listKey = _useState16[0],
5169
- setListKey = _useState16[1];
5030
+ listKey = _useState14[0],
5031
+ setListKey = _useState14[1];
5170
5032
  useEffect(function () {
5171
5033
  requestUtil({
5172
5034
  url: '/items/class/withProperty?pageSize=500&currentPage=1',
@@ -5430,6 +5292,8 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
5430
5292
  highestPopContainer = _props$highestPopCont === void 0 ? undefined : _props$highestPopCont,
5431
5293
  fieldComponent = props.fieldComponent,
5432
5294
  onSaveCallback = props.onSaveCallback,
5295
+ _props$returnFormat = props.returnFormat,
5296
+ returnFormat = _props$returnFormat === void 0 ? [] : _props$returnFormat,
5433
5297
  selectBusinessType = props.selectBusinessType;
5434
5298
  var _ref = rCTemp || {},
5435
5299
  url = _ref.url,
@@ -5488,14 +5352,16 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
5488
5352
  var currentPage = 1;
5489
5353
  var selectParamsKey = (requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.filter) || 'qp-codeAndName-like';
5490
5354
  var selectParamsInitKey = (requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.filterInit) || selectParamsKey;
5491
- var currentSelectProps = _objectSpread2(_objectSpread2({}, selectProps), {}, {
5355
+ var currentSelectProps = _objectSpread2(_objectSpread2({
5356
+ // 回显字段可自定义
5357
+ optionLabelProp: "label"
5358
+ }, selectProps), {}, {
5492
5359
  // 以下属性不可更改----设计配置项
5493
5360
  showArrow: true,
5494
5361
  showSearch: true,
5495
5362
  filterOption: false,
5496
5363
  allowClear: true,
5497
5364
  listHeight: 160,
5498
- optionLabelProp: "label",
5499
5365
  autoClearSearchValue: false,
5500
5366
  placement: 'bottomRight'
5501
5367
  });
@@ -5512,7 +5378,8 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
5512
5378
  };
5513
5379
  var tableInitPagination = _objectSpread2(_objectSpread2({}, initPagination), {}, {
5514
5380
  total: 0,
5515
- current: 1
5381
+ current: 1,
5382
+ pageSizeOptions: [10, 20, 50, 100, 500, 1000]
5516
5383
  });
5517
5384
  var disabled = !!noOperate || (selectProps === null || selectProps === void 0 ? void 0 : selectProps.disabled) || (props === null || props === void 0 ? void 0 : props.disabled);
5518
5385
  var isHaveDependency = fixedparameter && fieldValToParam && ctx;
@@ -5544,29 +5411,29 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
5544
5411
  scrollPage = _useState8[0],
5545
5412
  setScrollPage = _useState8[1];
5546
5413
  var _useState9 = useState(0),
5547
- _useState10 = _slicedToArray(_useState9, 2),
5548
- itemsTotal = _useState10[0],
5549
- setItemsTotal = _useState10[1];
5550
- var _useState11 = useState(false),
5414
+ _useState0 = _slicedToArray(_useState9, 2),
5415
+ itemsTotal = _useState0[0],
5416
+ setItemsTotal = _useState0[1];
5417
+ var _useState1 = useState(false),
5418
+ _useState10 = _slicedToArray(_useState1, 2),
5419
+ fetching = _useState10[0],
5420
+ setFetching = _useState10[1];
5421
+ var _useState11 = useState(''),
5551
5422
  _useState12 = _slicedToArray(_useState11, 2),
5552
- fetching = _useState12[0],
5553
- setFetching = _useState12[1];
5554
- var _useState13 = useState(''),
5423
+ searchValue = _useState12[0],
5424
+ setSearchValue = _useState12[1];
5425
+ var _useState13 = useState(false),
5555
5426
  _useState14 = _slicedToArray(_useState13, 2),
5556
- searchValue = _useState14[0],
5557
- setSearchValue = _useState14[1];
5558
- var _useState15 = useState(false),
5427
+ isModalVisible = _useState14[0],
5428
+ setIsModalVisible = _useState14[1];
5429
+ var _useState15 = useState(initVal),
5559
5430
  _useState16 = _slicedToArray(_useState15, 2),
5560
- isModalVisible = _useState16[0],
5561
- setIsModalVisible = _useState16[1];
5562
- var _useState17 = useState(initVal),
5431
+ popvalue = _useState16[0],
5432
+ setPopValue = _useState16[1];
5433
+ var _useState17 = useState(resultSourceKey),
5563
5434
  _useState18 = _slicedToArray(_useState17, 2),
5564
- popvalue = _useState18[0],
5565
- setPopValue = _useState18[1];
5566
- var _useState19 = useState(resultSourceKey),
5567
- _useState20 = _slicedToArray(_useState19, 2),
5568
- uniqueValue = _useState20[0],
5569
- setUniqueValue = _useState20[1];
5435
+ uniqueValue = _useState18[0],
5436
+ setUniqueValue = _useState18[1];
5570
5437
  var _useDebounceFn = useDebounceFn(function (v) {
5571
5438
  // 优化搜索参数 支持传多个
5572
5439
  var searchParams = {};
@@ -5595,58 +5462,58 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
5595
5462
  var _Form$useForm = Form.useForm(),
5596
5463
  _Form$useForm2 = _slicedToArray(_Form$useForm, 1),
5597
5464
  form = _Form$useForm2[0];
5465
+ var _useState19 = useState(true),
5466
+ _useState20 = _slicedToArray(_useState19, 2),
5467
+ collapsed = _useState20[0],
5468
+ setCollapsed = _useState20[1];
5598
5469
  var _useState21 = useState(true),
5599
5470
  _useState22 = _slicedToArray(_useState21, 2),
5600
- collapsed = _useState22[0],
5601
- setCollapsed = _useState22[1];
5602
- var _useState23 = useState(true),
5471
+ caretLeftFlag = _useState22[0],
5472
+ setCaretLeftFlag = _useState22[1];
5473
+ var _useState23 = useState([]),
5603
5474
  _useState24 = _slicedToArray(_useState23, 2),
5604
- caretLeftFlag = _useState24[0],
5605
- setCaretLeftFlag = _useState24[1];
5606
- var _useState25 = useState([]),
5475
+ tableData = _useState24[0],
5476
+ setTableData = _useState24[1];
5477
+ var _useState25 = useState(tableInitPagination),
5607
5478
  _useState26 = _slicedToArray(_useState25, 2),
5608
- tableData = _useState26[0],
5609
- setTableData = _useState26[1];
5610
- var _useState27 = useState(tableInitPagination),
5479
+ tablePagination = _useState26[0],
5480
+ setTablePagination = _useState26[1];
5481
+ var _useState27 = useState([]),
5611
5482
  _useState28 = _slicedToArray(_useState27, 2),
5612
- tablePagination = _useState28[0],
5613
- setTablePagination = _useState28[1];
5483
+ selectedRowKeys = _useState28[0],
5484
+ setSelectedRowKeys = _useState28[1];
5614
5485
  var _useState29 = useState([]),
5615
5486
  _useState30 = _slicedToArray(_useState29, 2),
5616
- selectedRowKeys = _useState30[0],
5617
- setSelectedRowKeys = _useState30[1];
5618
- var _useState31 = useState([]),
5487
+ selectedRows = _useState30[0],
5488
+ setSelectedRows = _useState30[1];
5489
+ var _useState31 = useState(false),
5619
5490
  _useState32 = _slicedToArray(_useState31, 2),
5620
- selectedRows = _useState32[0],
5621
- setSelectedRows = _useState32[1];
5491
+ checkedAll = _useState32[0],
5492
+ setCheckedAll = _useState32[1];
5622
5493
  var _useState33 = useState(false),
5623
5494
  _useState34 = _slicedToArray(_useState33, 2),
5624
- checkedAll = _useState34[0],
5625
- setCheckedAll = _useState34[1];
5626
- var _useState35 = useState(false),
5495
+ indeterminate = _useState34[0],
5496
+ setIndeterminate = _useState34[1];
5497
+ var _useState35 = useState({}),
5627
5498
  _useState36 = _slicedToArray(_useState35, 2),
5628
- indeterminate = _useState36[0],
5629
- setIndeterminate = _useState36[1];
5630
- var _useState37 = useState({}),
5499
+ tableFormParams = _useState36[0],
5500
+ setTableFormParams = _useState36[1];
5501
+ var _useState37 = useState(false),
5631
5502
  _useState38 = _slicedToArray(_useState37, 2),
5632
- tableFormParams = _useState38[0],
5633
- setTableFormParams = _useState38[1];
5634
- var _useState39 = useState(false),
5503
+ tooltipVisible = _useState38[0],
5504
+ setTooltipVisible = _useState38[1];
5505
+ var _useState39 = useState(handleTableColumns(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableColumns)),
5635
5506
  _useState40 = _slicedToArray(_useState39, 2),
5636
- tooltipVisible = _useState40[0],
5637
- setTooltipVisible = _useState40[1];
5638
- var _useState41 = useState(handleTableColumns(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableColumns)),
5507
+ tableShowColumns = _useState40[0],
5508
+ setTabletShowColumns = _useState40[1]; // 默认展示表头-modalTableProps?.tableColumns
5509
+ var _useState41 = useState(false),
5639
5510
  _useState42 = _slicedToArray(_useState41, 2),
5640
- tableShowColumns = _useState42[0],
5641
- setTabletShowColumns = _useState42[1]; // 默认展示表头-modalTableProps?.tableColumns
5511
+ confirmLoading = _useState42[0],
5512
+ setConfirmLoading = _useState42[1];
5642
5513
  var _useState43 = useState(false),
5643
5514
  _useState44 = _slicedToArray(_useState43, 2),
5644
- confirmLoading = _useState44[0],
5645
- setConfirmLoading = _useState44[1];
5646
- var _useState45 = useState(false),
5647
- _useState46 = _slicedToArray(_useState45, 2),
5648
- modalSearched = _useState46[0],
5649
- setModalSearched = _useState46[1];
5515
+ modalSearched = _useState44[0],
5516
+ setModalSearched = _useState44[1];
5650
5517
  var setSelectDataSource = function setSelectDataSource(list, total) {
5651
5518
  setItems(list);
5652
5519
  setItemsTotal(total);
@@ -5963,12 +5830,19 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
5963
5830
  };
5964
5831
  var formaData = function formaData(value, source) {
5965
5832
  if (labelInValue) {
5833
+ var getFromat = function getFromat(format, val) {
5834
+ return format.map(function (_ref8) {
5835
+ var key = _ref8.key,
5836
+ value = _ref8.value;
5837
+ return _defineProperty({}, key, val[value]);
5838
+ });
5839
+ };
5966
5840
  var formatResult = value.map(function (i) {
5967
- return {
5841
+ return Object.assign.apply(Object, [{
5968
5842
  key: i[mappingValueField] || i.key,
5969
5843
  label: i[mappingTextField] || i.label,
5970
5844
  value: i[mappingValueField] || i.value
5971
- };
5845
+ }].concat(_toConsumableArray(getFromat(returnFormat, i))));
5972
5846
  });
5973
5847
  onChange(selectMode ? formatResult : formatResult[0], value, source);
5974
5848
  } else {
@@ -6116,7 +5990,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
6116
5990
  })) || [];
6117
5991
  var searchList = (modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.noEmptySearchField) ? list : list === null || list === void 0 ? void 0 : list.concat(addKong);
6118
5992
  return searchList.map(function (i, index) {
6119
- var _i$field, _i$field3, _i$field5, _i$field7, _i$field9, _i$field10, _i$field11, _i$field12, _i$field14, _i$field15;
5993
+ var _i$field, _i$field3, _i$field5, _i$field7, _i$field9, _i$field0, _i$field1, _i$field10, _i$field12, _i$field13;
6120
5994
  if ((i === null || i === void 0 ? void 0 : i.type) === 'kong') return /*#__PURE__*/React$1.createElement(Col, {
6121
5995
  span: ColSpan,
6122
5996
  key: i
@@ -6214,7 +6088,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
6214
6088
  disabled: setDisabled(i.name)
6215
6089
  }))));
6216
6090
  }
6217
- if ((i === null || i === void 0 ? void 0 : i.type) === 'multipleQueryInput' || (i === null || i === void 0 ? void 0 : (_i$field10 = i.field) === null || _i$field10 === void 0 ? void 0 : _i$field10.type) === 'multipleQueryInput') {
6091
+ if ((i === null || i === void 0 ? void 0 : i.type) === 'multipleQueryInput' || (i === null || i === void 0 ? void 0 : (_i$field0 = i.field) === null || _i$field0 === void 0 ? void 0 : _i$field0.type) === 'multipleQueryInput') {
6218
6092
  return /*#__PURE__*/React$1.createElement(Col, {
6219
6093
  span: ColSpan,
6220
6094
  key: i.name
@@ -6228,7 +6102,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
6228
6102
  }
6229
6103
  })));
6230
6104
  }
6231
- if ((i === null || i === void 0 ? void 0 : (_i$field11 = i.field) === null || _i$field11 === void 0 ? void 0 : _i$field11.type) === 'proppertySelector') {
6105
+ if ((i === null || i === void 0 ? void 0 : (_i$field1 = i.field) === null || _i$field1 === void 0 ? void 0 : _i$field1.type) === 'proppertySelector') {
6232
6106
  return /*#__PURE__*/React$1.createElement(Col, {
6233
6107
  span: ColSpan,
6234
6108
  key: i.name
@@ -6238,8 +6112,8 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
6238
6112
  key: i.name
6239
6113
  }, /*#__PURE__*/React$1.createElement(PropertySelector, null)));
6240
6114
  }
6241
- 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') {
6242
- var _i$field13;
6115
+ if ((i === null || i === void 0 ? void 0 : i.type) === 'itemPropertySelector' || (i === null || i === void 0 ? void 0 : (_i$field10 = i.field) === null || _i$field10 === void 0 ? void 0 : _i$field10.type) === 'itemPropertySelector') {
6116
+ var _i$field11;
6243
6117
  return /*#__PURE__*/React$1.createElement(Col, {
6244
6118
  span: ColSpan,
6245
6119
  key: i.name
@@ -6252,9 +6126,9 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
6252
6126
  width: '100%'
6253
6127
  },
6254
6128
  placeholder: "\u8BF7\u9009\u62E9"
6255
- }, i === null || i === void 0 ? void 0 : (_i$field13 = i.field) === null || _i$field13 === void 0 ? void 0 : _i$field13.props))));
6129
+ }, i === null || i === void 0 ? void 0 : (_i$field11 = i.field) === null || _i$field11 === void 0 ? void 0 : _i$field11.props))));
6256
6130
  }
6257
- if ((i === null || i === void 0 ? void 0 : (_i$field14 = i.field) === null || _i$field14 === void 0 ? void 0 : _i$field14.type) === 'multipleQuerySearchSelect') {
6131
+ if ((i === null || i === void 0 ? void 0 : (_i$field12 = i.field) === null || _i$field12 === void 0 ? void 0 : _i$field12.type) === 'multipleQuerySearchSelect') {
6258
6132
  return /*#__PURE__*/React$1.createElement(Col, {
6259
6133
  span: ColSpan,
6260
6134
  key: i.name
@@ -6283,7 +6157,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
6283
6157
  placeholder: "\u8BF7\u8F93\u5165",
6284
6158
  allowClear: true,
6285
6159
  maxLength: 100
6286
- }, i === null || i === void 0 ? void 0 : (_i$field15 = i.field) === null || _i$field15 === void 0 ? void 0 : _i$field15.props), {}, {
6160
+ }, i === null || i === void 0 ? void 0 : (_i$field13 = i.field) === null || _i$field13 === void 0 ? void 0 : _i$field13.props), {}, {
6287
6161
  disabled: setDisabled(i.name)
6288
6162
  }))));
6289
6163
  });
@@ -7603,135 +7477,132 @@ var AddSelect = function AddSelect(props) {
7603
7477
  _Form$useForm2 = _slicedToArray(_Form$useForm, 1),
7604
7478
  form = _Form$useForm2[0];
7605
7479
  var _useState9 = useState(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableSearchForm),
7606
- _useState10 = _slicedToArray(_useState9, 2),
7607
- tableSearchForm = _useState10[0],
7608
- setTableSearchForm = _useState10[1];
7609
- var _useState11 = useState(true),
7480
+ _useState0 = _slicedToArray(_useState9, 2),
7481
+ tableSearchForm = _useState0[0],
7482
+ setTableSearchForm = _useState0[1];
7483
+ var _useState1 = useState(true),
7484
+ _useState10 = _slicedToArray(_useState1, 2),
7485
+ caretLeftFlag = _useState10[0],
7486
+ setCaretLeftFlag = _useState10[1];
7487
+ var _useState11 = useState([]),
7610
7488
  _useState12 = _slicedToArray(_useState11, 2),
7611
- caretLeftFlag = _useState12[0],
7612
- setCaretLeftFlag = _useState12[1];
7613
- var _useState13 = useState([]),
7614
- _useState14 = _slicedToArray(_useState13, 2),
7615
- tableData = _useState14[0],
7616
- setTableData = _useState14[1];
7617
- var _useState15 = useState(_objectSpread2({
7489
+ tableData = _useState12[0],
7490
+ setTableData = _useState12[1];
7491
+ var _useState13 = useState(_objectSpread2({
7618
7492
  total: 0,
7619
7493
  size: "small",
7620
7494
  current: 1,
7621
7495
  pageSize: tableInitPageSize
7622
7496
  }, modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.topTablePagination)),
7497
+ _useState14 = _slicedToArray(_useState13, 2),
7498
+ tablePagination = _useState14[0],
7499
+ setTablePagination = _useState14[1];
7500
+ var _useState15 = useState([]),
7623
7501
  _useState16 = _slicedToArray(_useState15, 2),
7624
- tablePagination = _useState16[0],
7625
- setTablePagination = _useState16[1];
7626
- var _useState17 = useState([]),
7502
+ selectedRowKeys = _useState16[0],
7503
+ setSelectedRowKeys = _useState16[1];
7504
+ var _useState17 = useState({}),
7627
7505
  _useState18 = _slicedToArray(_useState17, 2),
7628
- selectedRowKeys = _useState18[0],
7629
- setSelectedRowKeys = _useState18[1];
7630
- var _useState19 = useState({}),
7506
+ tableFormParams = _useState18[0],
7507
+ setTableFormParams = _useState18[1];
7508
+ var _useState19 = useState(false),
7631
7509
  _useState20 = _slicedToArray(_useState19, 2),
7632
- tableFormParams = _useState20[0],
7633
- setTableFormParams = _useState20[1];
7510
+ confirmLoading = _useState20[0],
7511
+ setConfirmLoading = _useState20[1];
7634
7512
  var _useState21 = useState(false),
7635
7513
  _useState22 = _slicedToArray(_useState21, 2),
7636
- confirmLoading = _useState22[0],
7637
- setConfirmLoading = _useState22[1];
7638
- var _useState23 = useState(false),
7514
+ confirmContinueLoading = _useState22[0],
7515
+ setConfirmContinueLoading = _useState22[1];
7516
+ var _useState23 = useState([]),
7639
7517
  _useState24 = _slicedToArray(_useState23, 2),
7640
- confirmContinueLoading = _useState24[0],
7641
- setConfirmContinueLoading = _useState24[1];
7518
+ selectColumns = _useState24[0],
7519
+ setSelectColumns = _useState24[1];
7642
7520
  var _useState25 = useState([]),
7643
7521
  _useState26 = _slicedToArray(_useState25, 2),
7644
- selectColumns = _useState26[0],
7645
- setSelectColumns = _useState26[1];
7522
+ showColumns = _useState26[0],
7523
+ setShowColumns = _useState26[1];
7646
7524
  var _useState27 = useState([]),
7647
7525
  _useState28 = _slicedToArray(_useState27, 2),
7648
- showColumns = _useState28[0],
7649
- setShowColumns = _useState28[1];
7526
+ tableColumns = _useState28[0],
7527
+ setTableColumns = _useState28[1];
7650
7528
  var _useState29 = useState([]),
7651
7529
  _useState30 = _slicedToArray(_useState29, 2),
7652
- tableColumns = _useState30[0],
7653
- setTableColumns = _useState30[1];
7654
- var _useState31 = useState([]),
7655
- _useState32 = _slicedToArray(_useState31, 2),
7656
- showToChooseColumns = _useState32[0],
7657
- setShowToChooseColumns = _useState32[1];
7530
+ showToChooseColumns = _useState30[0],
7531
+ setShowToChooseColumns = _useState30[1];
7658
7532
  var codeToChoose = tableCodeList[0] || initTableCode[businessType][0];
7659
7533
  var codeSelected = tableCodeList[1] || initTableCode[businessType][1];
7660
7534
  // FIXME: 特殊业务逻辑
7661
7535
  var checkSelectChange = /*#__PURE__*/function () {
7662
- var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
7663
- var result;
7664
- return _regeneratorRuntime().wrap(function _callee$(_context) {
7665
- while (1) switch (_context.prev = _context.next) {
7536
+ var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
7537
+ var result, _t;
7538
+ return _regenerator().w(function (_context) {
7539
+ while (1) switch (_context.p = _context.n) {
7666
7540
  case 0:
7667
7541
  if (!(bType == 'skc' && tList.some(function (i) {
7668
7542
  return i[recordKey] == recordItem[recordKey] && i[selectItem.dataIndex] == changeValue;
7669
7543
  }))) {
7670
- _context.next = 3;
7544
+ _context.n = 1;
7671
7545
  break;
7672
7546
  }
7673
7547
  message$1.warning('相同skc配码不可设置相同哦');
7674
- return _context.abrupt("return", false);
7675
- case 3:
7548
+ return _context.a(2, false);
7549
+ case 1:
7676
7550
  if (!(bType == 'spu')) {
7677
- _context.next = 26;
7551
+ _context.n = 9;
7678
7552
  break;
7679
7553
  }
7680
7554
  if (!(selectItem.dataIndex == 'colorName' && tList.some(function (i) {
7681
7555
  return i[recordKey] == recordItem[recordKey] && i.selectPropertyGroupCode == recordItem.selectPropertyGroupCode && i[selectItem.dataIndex] == changeValue;
7682
7556
  }))) {
7683
- _context.next = 7;
7557
+ _context.n = 2;
7684
7558
  break;
7685
7559
  }
7686
7560
  message$1.warning('相同商品相同配码颜色不可设置相同哦');
7687
- return _context.abrupt("return", false);
7688
- case 7:
7561
+ return _context.a(2, false);
7562
+ case 2:
7689
7563
  if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && !recordItem.colorName)) {
7690
- _context.next = 10;
7564
+ _context.n = 3;
7691
7565
  break;
7692
7566
  }
7693
7567
  message$1.warning('请先选择颜色!');
7694
- return _context.abrupt("return", false);
7695
- case 10:
7568
+ return _context.a(2, false);
7569
+ case 3:
7696
7570
  if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && tList.some(function (i) {
7697
7571
  return i[recordKey] == recordItem[recordKey] && i.colorName == recordItem.colorName && i[selectItem.dataIndex] == changeValue;
7698
7572
  }))) {
7699
- _context.next = 13;
7573
+ _context.n = 4;
7700
7574
  break;
7701
7575
  }
7702
7576
  message$1.warning('相同商品相同颜色配码不可设置相同哦');
7703
- return _context.abrupt("return", false);
7704
- case 13:
7577
+ return _context.a(2, false);
7578
+ case 4:
7705
7579
  if (!(selectItem.dataIndex == 'selectPropertyGroupCode')) {
7706
- _context.next = 26;
7580
+ _context.n = 9;
7707
7581
  break;
7708
7582
  }
7709
7583
  result = true;
7710
- _context.prev = 15;
7711
- _context.next = 18;
7584
+ _context.p = 5;
7585
+ _context.n = 6;
7712
7586
  return checkSpuMatchCode({
7713
7587
  skcCode: recordItem[recordKey],
7714
7588
  matchingCode: changeValue,
7715
7589
  ext1: recordItem.colorName
7716
7590
  });
7717
- case 18:
7718
- result = _context.sent;
7591
+ case 6:
7592
+ result = _context.v;
7719
7593
  result = true;
7720
- _context.next = 25;
7594
+ _context.n = 8;
7721
7595
  break;
7722
- case 22:
7723
- _context.prev = 22;
7724
- _context.t0 = _context["catch"](15);
7725
- result = typeof _context.t0 == 'boolean' ? _context.t0 : false;
7726
- case 25:
7727
- return _context.abrupt("return", result);
7728
- case 26:
7729
- return _context.abrupt("return", true);
7730
- case 27:
7731
- case "end":
7732
- return _context.stop();
7733
- }
7734
- }, _callee, null, [[15, 22]]);
7596
+ case 7:
7597
+ _context.p = 7;
7598
+ _t = _context.v;
7599
+ result = typeof _t == 'boolean' ? _t : false;
7600
+ case 8:
7601
+ return _context.a(2, result);
7602
+ case 9:
7603
+ return _context.a(2, true);
7604
+ }
7605
+ }, _callee, null, [[5, 7]]);
7735
7606
  }));
7736
7607
  return function checkSelectChange(_x, _x2, _x3, _x4, _x5, _x6) {
7737
7608
  return _ref2.apply(this, arguments);
@@ -7809,6 +7680,115 @@ var AddSelect = function AddSelect(props) {
7809
7680
  acc[key] = typeof value === 'function' ? value === null || value === void 0 ? void 0 : value(record) : value;
7810
7681
  return acc;
7811
7682
  }, {});
7683
+ // 可输入非数字字符
7684
+ if (item.canInputString) {
7685
+ return /*#__PURE__*/React$1.createElement(InputNumber, _objectSpread2(_objectSpread2({
7686
+ min: 0,
7687
+ precision: 0,
7688
+ controls: false
7689
+ }, inputProps), {}, {
7690
+ value: text || '',
7691
+ keyboard: false,
7692
+ onPressEnter: function onPressEnter(e) {
7693
+ e.target.blur();
7694
+ },
7695
+ onBlur: function () {
7696
+ var _onBlur = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(e) {
7697
+ var value;
7698
+ return _regenerator().w(function (_context2) {
7699
+ while (1) switch (_context2.n) {
7700
+ case 0:
7701
+ value = e.target.value;
7702
+ record[item.dataIndex] = value;
7703
+ editRecord(record);
7704
+ case 1:
7705
+ return _context2.a(2);
7706
+ }
7707
+ }, _callee2);
7708
+ }));
7709
+ function onBlur(_x7) {
7710
+ return _onBlur.apply(this, arguments);
7711
+ }
7712
+ return onBlur;
7713
+ }(),
7714
+ onKeyDown: function onKeyDown(e) {
7715
+ if (e.keyCode === 13 && e.ctrlKey) {
7716
+ var _document$getElementB;
7717
+ handleOk(true);
7718
+ (_document$getElementB = document.getElementById("first-query")) === null || _document$getElementB === void 0 ? void 0 : _document$getElementB.focus();
7719
+ }
7720
+ if (e.keyCode === 8 && e.ctrlKey) {
7721
+ var _e$nativeEvent$path$;
7722
+ message$1.success('删除当前行');
7723
+ e.stopPropagation();
7724
+ e.preventDefault();
7725
+ var dom = (_e$nativeEvent$path$ = e.nativeEvent.path[5].children[index + 2]) === null || _e$nativeEvent$path$ === void 0 ? void 0 : _e$nativeEvent$path$.getElementsByTagName('input')[currentIndex];
7726
+ if (dom) {
7727
+ dom.select();
7728
+ dom.focus();
7729
+ dom.scrollIntoView(false);
7730
+ }
7731
+ dom = null;
7732
+ deleteRecord(record);
7733
+ }
7734
+ if (e.keyCode === 37 && e.shiftKey) {
7735
+ var _e$nativeEvent$path$2;
7736
+ // 左滑动
7737
+ e.stopPropagation();
7738
+ e.preventDefault();
7739
+ var _dom = (_e$nativeEvent$path$2 = e.nativeEvent.path[5].children[index + 1]) === null || _e$nativeEvent$path$2 === void 0 ? void 0 : _e$nativeEvent$path$2.getElementsByTagName('input')[currentIndex - 1];
7740
+ if (_dom) {
7741
+ _dom.select();
7742
+ _dom.focus();
7743
+ _dom.scrollIntoView(false);
7744
+ }
7745
+ _dom = null;
7746
+ }
7747
+ if (e.keyCode === 39 && e.shiftKey) {
7748
+ var _e$nativeEvent$path$3;
7749
+ // 右滑
7750
+ e.stopPropagation();
7751
+ e.preventDefault();
7752
+ var _dom2 = (_e$nativeEvent$path$3 = e.nativeEvent.path[5].children[index + 1]) === null || _e$nativeEvent$path$3 === void 0 ? void 0 : _e$nativeEvent$path$3.getElementsByTagName('input')[currentIndex + 1];
7753
+ if (_dom2) {
7754
+ _dom2.select();
7755
+ _dom2.focus();
7756
+ _dom2.scrollIntoView(false);
7757
+ }
7758
+ _dom2 = null;
7759
+ }
7760
+ if (e.keyCode === 40) {
7761
+ var _e$nativeEvent$path$4;
7762
+ e.stopPropagation();
7763
+ e.preventDefault();
7764
+ var _dom3 = (_e$nativeEvent$path$4 = e.nativeEvent.path[5].children[index + 2]) === null || _e$nativeEvent$path$4 === void 0 ? void 0 : _e$nativeEvent$path$4.getElementsByTagName('input')[currentIndex];
7765
+ if (_dom3) {
7766
+ _dom3.select();
7767
+ _dom3.focus();
7768
+ _dom3.scrollIntoView(false);
7769
+ }
7770
+ _dom3 = null;
7771
+ } else if (e.keyCode === 38) {
7772
+ var _e$nativeEvent$path$5;
7773
+ e.stopPropagation();
7774
+ e.preventDefault();
7775
+ var dom1 = (_e$nativeEvent$path$5 = e.nativeEvent.path[5].children[index]) === null || _e$nativeEvent$path$5 === void 0 ? void 0 : _e$nativeEvent$path$5.getElementsByTagName('input')[currentIndex];
7776
+ if (dom1) {
7777
+ // dom1.value=""
7778
+ // dom1.setSelectionRange(100, 0);
7779
+ dom1.select();
7780
+ dom1.focus();
7781
+ dom1.scrollIntoViewIfNeeded(false);
7782
+ // dom1.value=record['count']
7783
+ }
7784
+ dom1 = null;
7785
+ } else if (e.keyCode === 9 && index === selectedRowKeys.length - 1 && currentIndex === inputLength - 1) {
7786
+ e.stopPropagation();
7787
+ e.preventDefault();
7788
+ }
7789
+ }
7790
+ }));
7791
+ }
7812
7792
  return /*#__PURE__*/React$1.createElement(InputNumber, _objectSpread2(_objectSpread2(_objectSpread2({}, inputProps), {}, {
7813
7793
  value: text || '',
7814
7794
  min: 0,
@@ -7826,16 +7806,16 @@ var AddSelect = function AddSelect(props) {
7826
7806
  // }}
7827
7807
  onKeyDown: function onKeyDown(e) {
7828
7808
  if (e.keyCode === 13 && e.ctrlKey) {
7829
- var _document$getElementB;
7809
+ var _document$getElementB2;
7830
7810
  handleOk(true);
7831
- (_document$getElementB = document.getElementById("first-query")) === null || _document$getElementB === void 0 ? void 0 : _document$getElementB.focus();
7811
+ (_document$getElementB2 = document.getElementById("first-query")) === null || _document$getElementB2 === void 0 ? void 0 : _document$getElementB2.focus();
7832
7812
  }
7833
7813
  if (e.keyCode === 8 && e.ctrlKey) {
7834
- var _e$nativeEvent$path$;
7814
+ var _e$nativeEvent$path$6;
7835
7815
  message$1.success('删除当前行');
7836
7816
  e.stopPropagation();
7837
7817
  e.preventDefault();
7838
- var dom = (_e$nativeEvent$path$ = e.nativeEvent.path[5].children[index + 2]) === null || _e$nativeEvent$path$ === void 0 ? void 0 : _e$nativeEvent$path$.getElementsByTagName('input')[currentIndex];
7818
+ var dom = (_e$nativeEvent$path$6 = e.nativeEvent.path[5].children[index + 2]) === null || _e$nativeEvent$path$6 === void 0 ? void 0 : _e$nativeEvent$path$6.getElementsByTagName('input')[currentIndex];
7839
7819
  if (dom) {
7840
7820
  dom.select();
7841
7821
  dom.focus();
@@ -7845,47 +7825,47 @@ var AddSelect = function AddSelect(props) {
7845
7825
  deleteRecord(record);
7846
7826
  }
7847
7827
  if (e.keyCode === 37 && e.shiftKey) {
7848
- var _e$nativeEvent$path$2;
7828
+ var _e$nativeEvent$path$7;
7849
7829
  // 左滑动
7850
7830
  e.stopPropagation();
7851
7831
  e.preventDefault();
7852
- var _dom = (_e$nativeEvent$path$2 = e.nativeEvent.path[5].children[index + 1]) === null || _e$nativeEvent$path$2 === void 0 ? void 0 : _e$nativeEvent$path$2.getElementsByTagName('input')[currentIndex - 1];
7853
- if (_dom) {
7854
- _dom.select();
7855
- _dom.focus();
7856
- _dom.scrollIntoView(false);
7832
+ var _dom4 = (_e$nativeEvent$path$7 = e.nativeEvent.path[5].children[index + 1]) === null || _e$nativeEvent$path$7 === void 0 ? void 0 : _e$nativeEvent$path$7.getElementsByTagName('input')[currentIndex - 1];
7833
+ if (_dom4) {
7834
+ _dom4.select();
7835
+ _dom4.focus();
7836
+ _dom4.scrollIntoView(false);
7857
7837
  }
7858
- _dom = null;
7838
+ _dom4 = null;
7859
7839
  }
7860
7840
  if (e.keyCode === 39 && e.shiftKey) {
7861
- var _e$nativeEvent$path$3;
7841
+ var _e$nativeEvent$path$8;
7862
7842
  // 右滑
7863
7843
  e.stopPropagation();
7864
7844
  e.preventDefault();
7865
- var _dom2 = (_e$nativeEvent$path$3 = e.nativeEvent.path[5].children[index + 1]) === null || _e$nativeEvent$path$3 === void 0 ? void 0 : _e$nativeEvent$path$3.getElementsByTagName('input')[currentIndex + 1];
7866
- if (_dom2) {
7867
- _dom2.select();
7868
- _dom2.focus();
7869
- _dom2.scrollIntoView(false);
7845
+ var _dom5 = (_e$nativeEvent$path$8 = e.nativeEvent.path[5].children[index + 1]) === null || _e$nativeEvent$path$8 === void 0 ? void 0 : _e$nativeEvent$path$8.getElementsByTagName('input')[currentIndex + 1];
7846
+ if (_dom5) {
7847
+ _dom5.select();
7848
+ _dom5.focus();
7849
+ _dom5.scrollIntoView(false);
7870
7850
  }
7871
- _dom2 = null;
7851
+ _dom5 = null;
7872
7852
  }
7873
7853
  if (e.keyCode === 40) {
7874
- var _e$nativeEvent$path$4;
7854
+ var _e$nativeEvent$path$9;
7875
7855
  e.stopPropagation();
7876
7856
  e.preventDefault();
7877
- var _dom3 = (_e$nativeEvent$path$4 = e.nativeEvent.path[5].children[index + 2]) === null || _e$nativeEvent$path$4 === void 0 ? void 0 : _e$nativeEvent$path$4.getElementsByTagName('input')[currentIndex];
7878
- if (_dom3) {
7879
- _dom3.select();
7880
- _dom3.focus();
7881
- _dom3.scrollIntoView(false);
7857
+ var _dom6 = (_e$nativeEvent$path$9 = e.nativeEvent.path[5].children[index + 2]) === null || _e$nativeEvent$path$9 === void 0 ? void 0 : _e$nativeEvent$path$9.getElementsByTagName('input')[currentIndex];
7858
+ if (_dom6) {
7859
+ _dom6.select();
7860
+ _dom6.focus();
7861
+ _dom6.scrollIntoView(false);
7882
7862
  }
7883
- _dom3 = null;
7863
+ _dom6 = null;
7884
7864
  } else if (e.keyCode === 38) {
7885
- var _e$nativeEvent$path$5;
7865
+ var _e$nativeEvent$path$0;
7886
7866
  e.stopPropagation();
7887
7867
  e.preventDefault();
7888
- var dom1 = (_e$nativeEvent$path$5 = e.nativeEvent.path[5].children[index]) === null || _e$nativeEvent$path$5 === void 0 ? void 0 : _e$nativeEvent$path$5.getElementsByTagName('input')[currentIndex];
7868
+ var dom1 = (_e$nativeEvent$path$0 = e.nativeEvent.path[5].children[index]) === null || _e$nativeEvent$path$0 === void 0 ? void 0 : _e$nativeEvent$path$0.getElementsByTagName('input')[currentIndex];
7889
7869
  if (dom1) {
7890
7870
  // dom1.value=""
7891
7871
  // dom1.setSelectionRange(100, 0);
@@ -7919,19 +7899,19 @@ var AddSelect = function AddSelect(props) {
7919
7899
  return /*#__PURE__*/React$1.createElement(Select, _objectSpread2(_objectSpread2({}, item.selectProps), {}, {
7920
7900
  value: text || null,
7921
7901
  onChange: function () {
7922
- var _onChange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
7923
- var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules;
7924
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
7925
- while (1) switch (_context2.prev = _context2.next) {
7902
+ var _onChange = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(value) {
7903
+ var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules, _t2;
7904
+ return _regenerator().w(function (_context3) {
7905
+ while (1) switch (_context3.p = _context3.n) {
7926
7906
  case 0:
7927
7907
  dataSourceSelectItem = (dataSourceList === null || dataSourceList === void 0 ? void 0 : dataSourceList.find(function (d) {
7928
7908
  return d[selectKey] == value;
7929
7909
  })) || {};
7930
7910
  if (!(item === null || item === void 0 ? void 0 : item.selectChangeCallback)) {
7931
- _context2.next = 6;
7911
+ _context3.n = 2;
7932
7912
  break;
7933
7913
  }
7934
- _context2.next = 4;
7914
+ _context3.n = 1;
7935
7915
  return item === null || item === void 0 ? void 0 : (_item$selectChangeCal = item.selectChangeCallback) === null || _item$selectChangeCal === void 0 ? void 0 : _item$selectChangeCal.call(item, popvalue, setPopValue, {
7936
7916
  record: record,
7937
7917
  index: index,
@@ -7941,10 +7921,10 @@ var AddSelect = function AddSelect(props) {
7941
7921
  dataSourceSelectItem: dataSourceSelectItem,
7942
7922
  editRecord: editRecord
7943
7923
  });
7944
- case 4:
7945
- _context2.next = 25;
7924
+ case 1:
7925
+ _context3.n = 10;
7946
7926
  break;
7947
- case 6:
7927
+ case 2:
7948
7928
  // 更新当前行数据函数
7949
7929
  changeValue = function changeValue(v, dSSItem) {
7950
7930
  var _item$dataSourceSelec;
@@ -7957,12 +7937,12 @@ var AddSelect = function AddSelect(props) {
7957
7937
  }
7958
7938
  }; // 处理校验,默认不校验
7959
7939
  isCheckPass = true;
7960
- _context2.prev = 8;
7940
+ _context3.p = 3;
7961
7941
  if (!(item === null || item === void 0 ? void 0 : item.selectCheckCallback)) {
7962
- _context2.next = 15;
7942
+ _context3.n = 5;
7963
7943
  break;
7964
7944
  }
7965
- _context2.next = 12;
7945
+ _context3.n = 4;
7966
7946
  return item === null || item === void 0 ? void 0 : item.selectCheckCallback(popvalue, {
7967
7947
  record: record,
7968
7948
  index: index,
@@ -7971,23 +7951,23 @@ var AddSelect = function AddSelect(props) {
7971
7951
  changeValue: value,
7972
7952
  dataSourceSelectItem: dataSourceSelectItem
7973
7953
  });
7974
- case 12:
7975
- isCheckPass = _context2.sent;
7976
- _context2.next = 19;
7954
+ case 4:
7955
+ isCheckPass = _context3.v;
7956
+ _context3.n = 7;
7977
7957
  break;
7978
- case 15:
7979
- _context2.next = 17;
7958
+ case 5:
7959
+ _context3.n = 6;
7980
7960
  return checkSelectChange(businessType, popvalue, mappingValueField, record, item, value);
7981
- case 17:
7982
- isConformToTheRules = _context2.sent;
7961
+ case 6:
7962
+ isConformToTheRules = _context3.v;
7983
7963
  isCheckPass = !isConformToTheRules;
7984
- case 19:
7985
- _context2.next = 23;
7964
+ case 7:
7965
+ _context3.n = 9;
7986
7966
  break;
7987
- case 21:
7988
- _context2.prev = 21;
7989
- _context2.t0 = _context2["catch"](8);
7990
- case 23:
7967
+ case 8:
7968
+ _context3.p = 8;
7969
+ _t2 = _context3.v;
7970
+ case 9:
7991
7971
  if (isCheckPass) {
7992
7972
  changeValue(value, dataSourceSelectItem);
7993
7973
  } else {
@@ -7995,13 +7975,12 @@ var AddSelect = function AddSelect(props) {
7995
7975
  }
7996
7976
  // 更新已选表格函数
7997
7977
  editRecord(record);
7998
- case 25:
7999
- case "end":
8000
- return _context2.stop();
7978
+ case 10:
7979
+ return _context3.a(2);
8001
7980
  }
8002
- }, _callee2, null, [[8, 21]]);
7981
+ }, _callee3, null, [[3, 8]]);
8003
7982
  }));
8004
- function onChange(_x7) {
7983
+ function onChange(_x8) {
8005
7984
  return _onChange.apply(this, arguments);
8006
7985
  }
8007
7986
  return onChange;
@@ -8261,8 +8240,8 @@ var AddSelect = function AddSelect(props) {
8261
8240
  }
8262
8241
  }
8263
8242
  setTimeout(function () {
8264
- var _document$getElementB2;
8265
- (_document$getElementB2 = document.getElementById("first-query")) === null || _document$getElementB2 === void 0 ? void 0 : _document$getElementB2.focus();
8243
+ var _document$getElementB3;
8244
+ (_document$getElementB3 = document.getElementById("first-query")) === null || _document$getElementB3 === void 0 ? void 0 : _document$getElementB3.focus();
8266
8245
  }, 50);
8267
8246
  };
8268
8247
  // 将格式化完的数据回显到 表格中
@@ -8292,7 +8271,7 @@ var AddSelect = function AddSelect(props) {
8292
8271
  handleLoading(isContinue, true);
8293
8272
  onSaveCallback(popvalue).then(function (res) {
8294
8273
  {
8295
- var _Object$keys2, _document$getElementB3;
8274
+ var _Object$keys2, _document$getElementB4;
8296
8275
  // 成功信息可以在调用处处理 即resolve({messageSuccessBackInfo: { needThrowSuccess: false } })、resolve({messageSuccessBackInfo: { needThrowSuccess: true, successMessage: '已保存' } })
8297
8276
  var initSuccessMessage = '保存成功';
8298
8277
  var rmsbi = (res === null || res === void 0 ? void 0 : res.messageSuccessBackInfo) || {};
@@ -8302,7 +8281,7 @@ var AddSelect = function AddSelect(props) {
8302
8281
  message$1.success(initSuccessMessage);
8303
8282
  }
8304
8283
  deleteSelectRows();
8305
- (_document$getElementB3 = document.getElementById('first-query')) === null || _document$getElementB3 === void 0 ? void 0 : _document$getElementB3.focus();
8284
+ (_document$getElementB4 = document.getElementById('first-query')) === null || _document$getElementB4 === void 0 ? void 0 : _document$getElementB4.focus();
8306
8285
  !isContinue && handleCancel();
8307
8286
  }
8308
8287
  handleLoading(isContinue, false);
@@ -9390,29 +9369,29 @@ var BillEntry = function BillEntry(_ref3) {
9390
9369
  dataIndex: 'propertyNameAndValue'
9391
9370
  }];
9392
9371
  var _useState9 = useState(false),
9393
- _useState10 = _slicedToArray(_useState9, 2),
9394
- isModalVisible = _useState10[0],
9395
- setIsModalVisible = _useState10[1];
9396
- var _useState11 = useState([{
9372
+ _useState0 = _slicedToArray(_useState9, 2),
9373
+ isModalVisible = _useState0[0],
9374
+ setIsModalVisible = _useState0[1];
9375
+ var _useState1 = useState([{
9397
9376
  hovered: false
9398
9377
  }]),
9399
- _useState12 = _slicedToArray(_useState11, 2),
9400
- data = _useState12[0],
9401
- setData = _useState12[1];
9378
+ _useState10 = _slicedToArray(_useState1, 2),
9379
+ data = _useState10[0],
9380
+ setData = _useState10[1];
9402
9381
  var tableRef = useRef(null);
9403
9382
  var codeSelected = tableCode;
9404
- var _useState13 = useState(false),
9383
+ var _useState11 = useState(false),
9384
+ _useState12 = _slicedToArray(_useState11, 2),
9385
+ loading = _useState12[0],
9386
+ setLoading = _useState12[1];
9387
+ var _useState13 = useState([]),
9405
9388
  _useState14 = _slicedToArray(_useState13, 2),
9406
- loading = _useState14[0],
9407
- setLoading = _useState14[1];
9389
+ selectColumns = _useState14[0],
9390
+ setSelectColumns = _useState14[1];
9408
9391
  var _useState15 = useState([]),
9409
9392
  _useState16 = _slicedToArray(_useState15, 2),
9410
- selectColumns = _useState16[0],
9411
- setSelectColumns = _useState16[1];
9412
- var _useState17 = useState([]),
9413
- _useState18 = _slicedToArray(_useState17, 2),
9414
- showColumns = _useState18[0],
9415
- setShowColumns = _useState18[1];
9393
+ showColumns = _useState16[0],
9394
+ setShowColumns = _useState16[1];
9416
9395
  useEffect(function () {
9417
9396
  setSelectColumns([].concat(_toConsumableArray(columns.map(function (item) {
9418
9397
  var inputLength = columns.filter(function (item) {
@@ -9528,42 +9507,42 @@ var BillEntry = function BillEntry(_ref3) {
9528
9507
  });
9529
9508
  };
9530
9509
  var handleSubmit = /*#__PURE__*/function () {
9531
- var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
9510
+ var _ref4 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
9532
9511
  var canEntryObject, _canEntryObject$error, messageInfo;
9533
- return _regeneratorRuntime().wrap(function _callee$(_context) {
9534
- while (1) switch (_context.prev = _context.next) {
9512
+ return _regenerator().w(function (_context) {
9513
+ while (1) switch (_context.n) {
9535
9514
  case 0:
9536
9515
  if (data === null || data === void 0 ? void 0 : data.length) {
9537
- _context.next = 3;
9516
+ _context.n = 1;
9538
9517
  break;
9539
9518
  }
9540
9519
  message$1.warning('至少录入一条数据');
9541
- return _context.abrupt("return");
9542
- case 3:
9520
+ return _context.a(2);
9521
+ case 1:
9543
9522
  if (data === null || data === void 0 ? void 0 : data.every(function (d) {
9544
9523
  return d.skuCode && d.name;
9545
9524
  })) {
9546
- _context.next = 6;
9525
+ _context.n = 2;
9547
9526
  break;
9548
9527
  }
9549
9528
  message$1.warning('录入商品不存在');
9550
- return _context.abrupt("return");
9551
- case 6:
9529
+ return _context.a(2);
9530
+ case 2:
9552
9531
  if (data === null || data === void 0 ? void 0 : data.every(function (d) {
9553
9532
  return d.count;
9554
9533
  })) {
9555
- _context.next = 9;
9534
+ _context.n = 3;
9556
9535
  break;
9557
9536
  }
9558
9537
  message$1.warning('请填写商品数量!');
9559
- return _context.abrupt("return");
9560
- case 9:
9561
- _context.next = 11;
9538
+ return _context.a(2);
9539
+ case 3:
9540
+ _context.n = 4;
9562
9541
  return isSkuCanEntry(data);
9563
- case 11:
9564
- canEntryObject = _context.sent;
9542
+ case 4:
9543
+ canEntryObject = _context.v;
9565
9544
  if (!((canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.flag) === false)) {
9566
- _context.next = 16;
9545
+ _context.n = 5;
9567
9546
  break;
9568
9547
  }
9569
9548
  messageInfo = (canEntryObject === null || canEntryObject === void 0 ? void 0 : (_canEntryObject$error = canEntryObject.errorList) === null || _canEntryObject$error === void 0 ? void 0 : _canEntryObject$error.length) && (canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.errorList.map(function (i) {
@@ -9573,8 +9552,8 @@ var BillEntry = function BillEntry(_ref3) {
9573
9552
  content: messageInfo,
9574
9553
  duration: 6
9575
9554
  });
9576
- return _context.abrupt("return");
9577
- case 16:
9555
+ return _context.a(2);
9556
+ case 5:
9578
9557
  setLoading(true);
9579
9558
  onSaveCallback(data).then(function (res) {
9580
9559
  {
@@ -9592,9 +9571,8 @@ var BillEntry = function BillEntry(_ref3) {
9592
9571
  message$1.error(Error);
9593
9572
  setLoading(false);
9594
9573
  });
9595
- case 18:
9596
- case "end":
9597
- return _context.stop();
9574
+ case 6:
9575
+ return _context.a(2);
9598
9576
  }
9599
9577
  }, _callee);
9600
9578
  }));
@@ -9990,31 +9968,36 @@ function commonFun(type, prefixUrl, parentProps) {
9990
9968
  });
9991
9969
  };
9992
9970
  // 格式化树选择器数据源
9993
- var _mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue, disabledJudge) {
9994
- var haveChildren = Array.isArray(treeDataItem.children) && treeDataItem.children.length > 0;
9971
+ var _mapSearchTree = function mapSearchTree(treeDataItem, resKeyValue, disabledJudge, childrenKey) {
9972
+ var haveChildren = Array.isArray(treeDataItem[childrenKey]) && treeDataItem[childrenKey].length > 0;
9995
9973
  return {
9996
9974
  title: treeDataItem[resKeyValue[1]],
9997
9975
  value: treeDataItem[resKeyValue[0]],
9998
9976
  parentId: treeDataItem.parent,
9999
9977
  data: _objectSpread2({}, treeDataItem),
10000
9978
  isLeaf: !haveChildren,
10001
- disabled: disabledJudge !== undefined ? disabledJudge : haveChildren,
10002
- children: haveChildren ? treeDataItem.children.map(function (i) {
10003
- return _mapSearchTree(i, resKeyValue, disabledJudge);
9979
+ disabled: disabledJudge !== undefined ? isBoolean(disabledJudge) ? disabledJudge : disabledJudge(treeDataItem) : haveChildren,
9980
+ children: haveChildren ? treeDataItem[childrenKey].map(function (i) {
9981
+ return _mapSearchTree(i, resKeyValue, disabledJudge, childrenKey);
10004
9982
  }) : []
10005
9983
  };
10006
9984
  };
10007
9985
  var formatTreeDataSource = function formatTreeDataSource(reData, position, changePosition, changeSearchForm) {
10008
9986
  var _reData$position2;
10009
9987
  var resKeyValue = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : ['id', 'name'];
9988
+ var childrenKey = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : 'children';
9989
+ var nodeDisabledJudge = arguments.length > 6 ? arguments[6] : undefined;
10010
9990
  var data = reData && ((_reData$position2 = reData[position]) === null || _reData$position2 === void 0 ? void 0 : _reData$position2.data);
10011
9991
  var disabledJudge;
10012
9992
  if (data && _typeof(data) === 'object' && !Array.isArray(data) && Object.keys(data).length > 0) {
10013
9993
  data = [data];
10014
9994
  disabledJudge = false;
10015
9995
  }
9996
+ if (nodeDisabledJudge) {
9997
+ disabledJudge = nodeDisabledJudge;
9998
+ }
10016
9999
  var formatData = data && Array.isArray(data) && data.length && data.map(function (ites) {
10017
- return _mapSearchTree(ites, resKeyValue, disabledJudge);
10000
+ return _mapSearchTree(ites, resKeyValue, disabledJudge, childrenKey);
10018
10001
  }) || [];
10019
10002
  changeSearchForm[changePosition].field.props.treeData = formatData;
10020
10003
  };
@@ -10475,10 +10458,10 @@ function commonFun(type, prefixUrl, parentProps) {
10475
10458
  selectProps = _objectSpread2({
10476
10459
  placeholder: '输入商品(SPU)编码或名称',
10477
10460
  renderTableColumns: [{
10478
- title: '商品编码(SPU)',
10461
+ title: 'SPU编码',
10479
10462
  dataIndex: 'itemCode'
10480
10463
  }, {
10481
- title: '商品名称(SPU)',
10464
+ title: 'SPU名称',
10482
10465
  dataIndex: 'name'
10483
10466
  }]
10484
10467
  }, selectConfigProps);
@@ -10495,11 +10478,11 @@ function commonFun(type, prefixUrl, parentProps) {
10495
10478
  }, requestConfigProp);
10496
10479
  tableSearchForm = [{
10497
10480
  name: 'itemCode*multiInput',
10498
- label: '商品编码(SPU)',
10481
+ label: 'SPU编码',
10499
10482
  type: 'multipleQueryInput'
10500
10483
  }, {
10501
10484
  name: 'name*multiInput',
10502
- label: '商品名称(SPU)',
10485
+ label: 'SPU名称',
10503
10486
  type: 'multipleQueryInput'
10504
10487
  }, {
10505
10488
  name: 'qp-brandId-in',
@@ -10593,11 +10576,11 @@ function commonFun(type, prefixUrl, parentProps) {
10593
10576
  dataIndex: 'keyIndex',
10594
10577
  defaultSort: 0
10595
10578
  }, {
10596
- title: '商品编码(SPU)',
10579
+ title: 'SPU编码',
10597
10580
  dataIndex: 'itemCode',
10598
10581
  defaultSort: 1
10599
10582
  }, {
10600
- title: '商品名称(SPU) ',
10583
+ title: 'SPU名称',
10601
10584
  dataIndex: 'name',
10602
10585
  defaultSort: 2
10603
10586
  }, {
@@ -10951,7 +10934,7 @@ function commonFun(type, prefixUrl, parentProps) {
10951
10934
  options: getQueryHeadersItem(_queryHeaderParams5, 'qp-brandId-in')
10952
10935
  }], ['colorName', 'categoryId', 'classId', 'brandId'], hiddenFields);
10953
10936
  var fieldLoadSource = fieldsRequest.map(function (i) {
10954
- return loadSelectSource$1(i.url, i.params, options);
10937
+ return loadSelectSource$1(i.url, i.params, i.options);
10955
10938
  });
10956
10939
  requestConfig = _objectSpread2({
10957
10940
  url: "".concat(prefixUrl.selectPrefix, "/skc/skcSelect"),
@@ -11165,6 +11148,26 @@ function commonFun(type, prefixUrl, parentProps) {
11165
11148
  }, (requestConfigProp === null || requestConfigProp === void 0 ? void 0 : requestConfigProp.addOtherParams) || {}),
11166
11149
  sourceName: 'warehouseIds'
11167
11150
  }, requestConfigProp);
11151
+ var _queryHeaderParams7 = getQueryHeadersList({
11152
+ querySelectHeadersList: querySelectHeadersList,
11153
+ extralHeaders: extralHeaders
11154
+ });
11155
+ Promise.all([loadSelectSource$1("/channel-manage/channelInfo/tree", {
11156
+ 'qp-status-eq': 10,
11157
+ 'qp-isMain-eq': 1,
11158
+ 'qp-type-in': '1,2'
11159
+ }, getQueryHeadersItem(_queryHeaderParams7, 'qp-orgCode-in')), loadSelectSource$1("/channel-manage/tagNode/getTree/10", {
11160
+ 'qp-status-eq': 1
11161
+ }, getQueryHeadersItem(_queryHeaderParams7, 'qp-orgCode-in'))]).then(function (x) {
11162
+ var channelDisabledJude = function channelDisabledJude(data) {
11163
+ return data['parentCode'] === '0';
11164
+ }; // 所属销售渠道 树节点不能点判断
11165
+ var areaDisabledJude = function areaDisabledJude(data) {
11166
+ return data['parent'] === '0';
11167
+ }; // 所属营销区域 树节点不能点判断
11168
+ formatTreeDataSource(x, 0, 4, tableSearchForm, ['code', 'name'], 'channelInfoSon', channelDisabledJude);
11169
+ formatTreeDataSource(x, 1, 5, tableSearchForm, ['code', 'name'], 'children', areaDisabledJude);
11170
+ });
11168
11171
  tableSearchForm = [{
11169
11172
  name: 'realWarehouseName*multiInput',
11170
11173
  label: '逻辑仓名称',
@@ -11188,6 +11191,70 @@ function commonFun(type, prefixUrl, parentProps) {
11188
11191
  },
11189
11192
  label: '管理大区',
11190
11193
  initialSource: getDictionarySource$1('BUSINESS_belongArea')
11194
+ }, {
11195
+ name: 'qp-channelCode-in',
11196
+ type: 'treeSelect',
11197
+ label: '销售渠道',
11198
+ field: {
11199
+ type: 'treeSelect',
11200
+ props: {
11201
+ multiple: true,
11202
+ treeData: [],
11203
+ treeCheckable: false,
11204
+ notFoundContent: '暂无数据',
11205
+ allowClear: true,
11206
+ showSearch: true,
11207
+ showArrow: true,
11208
+ maxTagCount: 1,
11209
+ optionFilterProp: 'children',
11210
+ filterOption: function filterOption(input, option) {
11211
+ return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
11212
+ },
11213
+ showCheckedStrategy: 'TreeSelect.SHOW_ALL'
11214
+ }
11215
+ }
11216
+ }, {
11217
+ name: 'qp-refCode-in',
11218
+ type: 'treeSelect',
11219
+ label: '营销区域',
11220
+ field: {
11221
+ type: 'treeSelect',
11222
+ props: {
11223
+ multiple: true,
11224
+ treeData: [],
11225
+ treeCheckable: false,
11226
+ notFoundContent: '暂无数据',
11227
+ allowClear: true,
11228
+ showSearch: true,
11229
+ showArrow: true,
11230
+ maxTagCount: 1,
11231
+ optionFilterProp: 'children',
11232
+ filterOption: function filterOption(input, option) {
11233
+ return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
11234
+ },
11235
+ showCheckedStrategy: 'TreeSelect.SHOW_ALL'
11236
+ }
11237
+ }
11238
+ }, {
11239
+ name: 'qp-type-in',
11240
+ type: 'select',
11241
+ label: '店铺性质',
11242
+ field: {
11243
+ type: 'select',
11244
+ props: {
11245
+ mode: 'multiple',
11246
+ notFoundContent: '暂无数据',
11247
+ allowClear: true,
11248
+ showSearch: true,
11249
+ showArrow: true,
11250
+ maxTagCount: 1,
11251
+ optionFilterProp: 'children',
11252
+ filterOption: function filterOption(input, option) {
11253
+ return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
11254
+ }
11255
+ }
11256
+ },
11257
+ initialSource: getDictionarySource$1('BUSINESS_StoreType')
11191
11258
  }].concat(_toConsumableArray((modalTableBusProps === null || modalTableBusProps === void 0 ? void 0 : modalTableBusProps.needStatusSearch) ? [{
11192
11259
  name: 'qp-isEnable-eq',
11193
11260
  type: 'select',
@@ -11216,10 +11283,36 @@ function commonFun(type, prefixUrl, parentProps) {
11216
11283
  render: function render(text) {
11217
11284
  return getDictionaryTextByValue$1('SC00004', text);
11218
11285
  }
11286
+ }, {
11287
+ title: '运营组名称',
11288
+ dataIndex: 'groupCode',
11289
+ defaultSort: 7,
11290
+ render: function render(text, record) {
11291
+ return (record === null || record === void 0 ? void 0 : record.groupName) ? "\u3010".concat(text, "\u3011").concat(record === null || record === void 0 ? void 0 : record.groupName) : "";
11292
+ },
11293
+ width: 100
11294
+ }, {
11295
+ title: '所属销售渠道',
11296
+ dataIndex: 'channelName',
11297
+ defaultSort: 4,
11298
+ width: 100
11299
+ }, {
11300
+ title: '营销区域',
11301
+ dataIndex: 'commonRelationAreaName',
11302
+ defaultSort: 5,
11303
+ width: 100
11304
+ }, {
11305
+ title: '店铺性质',
11306
+ dataIndex: 'type',
11307
+ defaultSort: 6,
11308
+ render: function render(text) {
11309
+ return getDictionaryTextByValue$1('BUSINESS_StoreType', text);
11310
+ },
11311
+ width: 80
11219
11312
  }].concat(_toConsumableArray((modalTableBusProps === null || modalTableBusProps === void 0 ? void 0 : modalTableBusProps.needStatusSearch) ? [{
11220
11313
  title: '状态',
11221
11314
  dataIndex: 'isEnable',
11222
- defaultSort: 4,
11315
+ defaultSort: 8,
11223
11316
  render: function render(text) {
11224
11317
  return getDictionaryTextByValue$1('SC00001', text);
11225
11318
  }
@@ -11279,20 +11372,50 @@ function commonFun(type, prefixUrl, parentProps) {
11279
11372
  }
11280
11373
  }
11281
11374
  }
11375
+ }, {
11376
+ name: 'qp-channelCode-in',
11377
+ type: 'treeSelect',
11378
+ label: '销售渠道',
11379
+ field: {
11380
+ type: 'treeSelect',
11381
+ props: {
11382
+ multiple: true,
11383
+ treeData: [],
11384
+ treeCheckable: false,
11385
+ notFoundContent: '暂无数据',
11386
+ allowClear: true,
11387
+ showSearch: true,
11388
+ showArrow: true,
11389
+ maxTagCount: 1,
11390
+ optionFilterProp: 'children',
11391
+ filterOption: function filterOption(input, option) {
11392
+ return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
11393
+ },
11394
+ showCheckedStrategy: 'TreeSelect.SHOW_ALL'
11395
+ }
11396
+ }
11282
11397
  }].concat(_toConsumableArray((modalTableBusProps === null || modalTableBusProps === void 0 ? void 0 : modalTableBusProps.needStatusSearch) ? [{
11283
11398
  name: 'qp-status-eq',
11284
11399
  type: 'select',
11285
11400
  label: '运营仓状态',
11286
11401
  initialSource: getDictionarySource$1('SC00001')
11287
11402
  }] : []));
11288
- var _queryHeaderParams7 = getQueryHeadersList({
11403
+ var _queryHeaderParams8 = getQueryHeadersList({
11289
11404
  querySelectHeadersList: querySelectHeadersList,
11290
11405
  extralHeaders: extralHeaders
11291
11406
  });
11292
11407
  Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/groupInfo/listNoPage"), {
11293
11408
  'qp-status-eq': 1
11294
- }, getQueryHeadersItem(_queryHeaderParams7, 'qp-groupCode-in'))]).then(function (x) {
11409
+ }, getQueryHeadersItem(_queryHeaderParams8, 'qp-groupCode-in')), loadSelectSource$1("/channel-manage/channelInfo/tree", {
11410
+ 'qp-status-eq': 10,
11411
+ 'qp-isMain-eq': 1,
11412
+ 'qp-type-in': '1,2'
11413
+ }, getQueryHeadersItem(_queryHeaderParams8, 'qp-orgCode-in'))]).then(function (x) {
11295
11414
  formatSource(x, 0, 2, tableSearchForm, ['groupCode', 'groupName']);
11415
+ var channelDisabledJude = function channelDisabledJude(data) {
11416
+ return data['parentCode'] === '0';
11417
+ }; // 所属销售渠道 树节点不能点判断
11418
+ formatTreeDataSource(x, 1, 3, tableSearchForm, ['code', 'name'], 'channelInfoSon', channelDisabledJude);
11296
11419
  });
11297
11420
  modalTableProps = _objectSpread2({
11298
11421
  modalTableTitle: '选择运营仓',
@@ -11320,7 +11443,12 @@ function commonFun(type, prefixUrl, parentProps) {
11320
11443
  render: function render(text) {
11321
11444
  return getDictionaryTextByValue$1('SC00001', text);
11322
11445
  }
11323
- }] : []))
11446
+ }] : []), [{
11447
+ title: '所属销售渠道',
11448
+ dataIndex: 'channelName',
11449
+ defaultSort: 5,
11450
+ width: 100
11451
+ }])
11324
11452
  }, modalTableBusProps);
11325
11453
  }
11326
11454
  // 仓库选择器(虚拟、渠道仓)(无弹窗)
@@ -11469,7 +11597,7 @@ function commonFun(type, prefixUrl, parentProps) {
11469
11597
  label: '共享类型',
11470
11598
  initialSource: sharingTypeDataList
11471
11599
  }];
11472
- var _queryHeaderParams8 = getQueryHeadersList({
11600
+ var _queryHeaderParams9 = getQueryHeadersList({
11473
11601
  querySelectHeadersList: querySelectHeadersList,
11474
11602
  extralHeaders: extralHeaders
11475
11603
  });
@@ -11477,14 +11605,14 @@ function commonFun(type, prefixUrl, parentProps) {
11477
11605
  pageSize: 5000,
11478
11606
  currentPage: 1,
11479
11607
  'qp-companyType-eq': '30'
11480
- }, getQueryHeadersItem(_queryHeaderParams8, 'qp-conglomerateCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/accountingSubject"), {
11608
+ }, getQueryHeadersItem(_queryHeaderParams9, 'qp-conglomerateCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/accountingSubject"), {
11481
11609
  pageSize: 5000,
11482
11610
  currentPage: 1
11483
- }, getQueryHeadersItem(_queryHeaderParams8, 'qp-accountingCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/company"), {
11611
+ }, getQueryHeadersItem(_queryHeaderParams9, 'qp-accountingCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/company"), {
11484
11612
  pageSize: 5000,
11485
11613
  currentPage: 1,
11486
11614
  'qp-companyType-eq': '20'
11487
- }, getQueryHeadersItem(_queryHeaderParams8, 'qp-sharingType-in'))]).then(function (x) {
11615
+ }, getQueryHeadersItem(_queryHeaderParams9, 'qp-sharingType-in'))]).then(function (x) {
11488
11616
  formatSource(x, 0, 2, tableSearchForm);
11489
11617
  formatSource(x, 1, 3, tableSearchForm);
11490
11618
  formatSource(x, 2, 4, tableSearchForm);
@@ -11557,7 +11685,8 @@ function commonFun(type, prefixUrl, parentProps) {
11557
11685
  label: '客户名称'
11558
11686
  }, {
11559
11687
  name: 'qp-code-like',
11560
- label: '客户编码'
11688
+ label: '客户编码',
11689
+ type: 'multipleQueryInput'
11561
11690
  }, {
11562
11691
  name: 'qp-createOrgCode-eq',
11563
11692
  type: 'select',
@@ -11596,16 +11725,74 @@ function commonFun(type, prefixUrl, parentProps) {
11596
11725
  }
11597
11726
  }
11598
11727
  }
11728
+ }, {
11729
+ name: 'qp-saleChannel-in',
11730
+ type: 'treeSelect',
11731
+ label: '销售渠道',
11732
+ field: {
11733
+ type: 'treeSelect',
11734
+ props: {
11735
+ multiple: true,
11736
+ treeData: [],
11737
+ treeCheckable: false,
11738
+ notFoundContent: '暂无数据',
11739
+ allowClear: true,
11740
+ showSearch: true,
11741
+ showArrow: true,
11742
+ maxTagCount: 1,
11743
+ optionFilterProp: 'children',
11744
+ filterOption: function filterOption(input, option) {
11745
+ return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
11746
+ },
11747
+ showCheckedStrategy: 'TreeSelect.SHOW_ALL'
11748
+ }
11749
+ }
11750
+ }, {
11751
+ name: 'qp-refCode-in',
11752
+ type: 'treeSelect',
11753
+ label: '营销区域',
11754
+ field: {
11755
+ type: 'treeSelect',
11756
+ props: {
11757
+ multiple: true,
11758
+ treeData: [],
11759
+ treeCheckable: false,
11760
+ notFoundContent: '暂无数据',
11761
+ allowClear: true,
11762
+ showSearch: true,
11763
+ showArrow: true,
11764
+ maxTagCount: 1,
11765
+ optionFilterProp: 'children',
11766
+ filterOption: function filterOption(input, option) {
11767
+ return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
11768
+ },
11769
+ showCheckedStrategy: 'TreeSelect.SHOW_ALL'
11770
+ }
11771
+ }
11599
11772
  }];
11600
- var _queryHeaderParams9 = getQueryHeadersList({
11773
+ var _queryHeaderParams0 = getQueryHeadersList({
11601
11774
  querySelectHeadersList: querySelectHeadersList,
11602
11775
  extralHeaders: extralHeaders
11603
11776
  });
11604
- Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/org/listNoPage"), {}, getQueryHeadersItem(_queryHeaderParams9, 'qp-createOrgCode-eq'))]).then(function (x) {
11777
+ Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/org/listNoPage"), {}, getQueryHeadersItem(_queryHeaderParams0, 'qp-createOrgCode-eq')), loadSelectSource$1("/channel-manage/channelInfo/tree", {
11778
+ 'qp-status-eq': 10,
11779
+ 'qp-isMain-eq': 1,
11780
+ 'qp-type-in': '1,2'
11781
+ }, getQueryHeadersItem(_queryHeaderParams0, 'qp-orgCode-in')), loadSelectSource$1("/channel-manage/tagNode/getTree/10", {
11782
+ 'qp-status-eq': 1
11783
+ }, getQueryHeadersItem(_queryHeaderParams0, 'qp-orgCode-in'))]).then(function (x) {
11605
11784
  var firstElement = x === null || x === void 0 ? void 0 : x[0];
11606
11785
  var allList = firstElement && [firstElement, firstElement];
11607
11786
  formatSource(allList, 0, 2, tableSearchForm);
11608
11787
  formatSource(allList, 1, 3, tableSearchForm);
11788
+ var channelDisabledJude = function channelDisabledJude(data) {
11789
+ return data['parentCode'] === '0';
11790
+ }; // 所属销售渠道 树节点不能点判断
11791
+ var areaDisabledJude = function areaDisabledJude(data) {
11792
+ return data['parent'] === '0';
11793
+ }; // 所属营销区域 树节点不能点判断
11794
+ formatTreeDataSource(x, 1, 4, tableSearchForm, ['code', 'name'], 'channelInfoSon', channelDisabledJude);
11795
+ formatTreeDataSource(x, 2, 5, tableSearchForm, ['code', 'name'], 'children', areaDisabledJude);
11609
11796
  });
11610
11797
  modalTableProps = _objectSpread2({
11611
11798
  modalTableTitle: '选择客户',
@@ -11629,7 +11816,18 @@ function commonFun(type, prefixUrl, parentProps) {
11629
11816
  }, {
11630
11817
  title: '使用组织',
11631
11818
  dataIndex: 'salesOrgName',
11632
- defaultSort: 4
11819
+ defaultSort: 4,
11820
+ width: 100
11821
+ }, {
11822
+ title: '所属销售渠道',
11823
+ dataIndex: 'channelName',
11824
+ defaultSort: 5,
11825
+ width: 100
11826
+ }, {
11827
+ title: '营销区域',
11828
+ dataIndex: 'commonRelationAreaName',
11829
+ defaultSort: 6,
11830
+ width: 100
11633
11831
  }]
11634
11832
  }, modalTableBusProps);
11635
11833
  }
@@ -11657,12 +11855,17 @@ function commonFun(type, prefixUrl, parentProps) {
11657
11855
  sourceName: 'code'
11658
11856
  }, requestConfigProp);
11659
11857
  tableSearchForm = [{
11660
- name: 'qp-name-like',
11661
- label: '店铺名称'
11662
- }, {
11663
- name: 'qp-code-like',
11664
- label: '店铺编码'
11858
+ name: 'name*multiInput',
11859
+ label: '店铺名称',
11860
+ type: 'multipleQueryInput'
11665
11861
  }, {
11862
+ name: 'code*multiInput',
11863
+ label: '店铺编码',
11864
+ type: 'multipleQueryInput'
11865
+ },
11866
+ // { name: 'qp-name-like', label: '店铺名称' },
11867
+ // { name: 'qp-code-like', label: '店铺编码' },
11868
+ {
11666
11869
  name: 'qp-conglomerateCode-in',
11667
11870
  type: 'select',
11668
11871
  label: '归属集团',
@@ -11763,7 +11966,7 @@ function commonFun(type, prefixUrl, parentProps) {
11763
11966
  }
11764
11967
  }
11765
11968
  }];
11766
- var _queryHeaderParams10 = getQueryHeadersList({
11969
+ var _queryHeaderParams1 = getQueryHeadersList({
11767
11970
  querySelectHeadersList: querySelectHeadersList,
11768
11971
  extralHeaders: extralHeaders
11769
11972
  });
@@ -11771,21 +11974,21 @@ function commonFun(type, prefixUrl, parentProps) {
11771
11974
  pageSize: 5000,
11772
11975
  currentPage: 1,
11773
11976
  'qp-companyType-eq': '30'
11774
- }, getQueryHeadersItem(_queryHeaderParams10, 'qp-conglomerateCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/company"), {
11977
+ }, getQueryHeadersItem(_queryHeaderParams1, 'qp-conglomerateCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/company"), {
11775
11978
  pageSize: 5000,
11776
11979
  currentPage: 1,
11777
11980
  'qp-companyType-eq': '20'
11778
- }, getQueryHeadersItem(_queryHeaderParams10, 'qp-companyCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/platformRecord/getPlatformRecordList"), {
11981
+ }, getQueryHeadersItem(_queryHeaderParams1, 'qp-companyCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/platformRecord/getPlatformRecordList"), {
11779
11982
  // pageSize: 5000,
11780
11983
  // currentPage: 1,
11781
11984
  'qp-status-eq': '1'
11782
- }, getQueryHeadersItem(_queryHeaderParams10, 'qp-plateformCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/store"), {
11985
+ }, getQueryHeadersItem(_queryHeaderParams1, 'qp-plateformCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/store"), {
11783
11986
  pageSize: 5000,
11784
11987
  currentPage: 1
11785
- }, getQueryHeadersItem(_queryHeaderParams10, 'qp-mainBrandCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/accountingSubject"), {
11988
+ }, getQueryHeadersItem(_queryHeaderParams1, 'qp-mainBrandCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/accountingSubject"), {
11786
11989
  pageSize: 5000,
11787
11990
  currentPage: 1
11788
- }, getQueryHeadersItem(_queryHeaderParams10, 'qp-accountingCode-in'))]).then(function (x) {
11991
+ }, getQueryHeadersItem(_queryHeaderParams1, 'qp-accountingCode-in'))]).then(function (x) {
11789
11992
  formatSource(x, 0, 2, tableSearchForm);
11790
11993
  formatSource(x, 1, 3, tableSearchForm);
11791
11994
  formatSource(x, 2, 5, tableSearchForm);
@@ -11851,7 +12054,8 @@ function commonFun(type, prefixUrl, parentProps) {
11851
12054
  mappingTextField: 'name',
11852
12055
  mappingValueField: 'code',
11853
12056
  otherParams: _objectSpread2({
11854
- sorter: 'desc-id'
12057
+ sorter: 'desc-id',
12058
+ 'qp-status-in': 10
11855
12059
  }, (requestConfigProp === null || requestConfigProp === void 0 ? void 0 : requestConfigProp.addOtherParams) || {}),
11856
12060
  sourceName: 'code'
11857
12061
  }, requestConfigProp);
@@ -11868,12 +12072,9 @@ function commonFun(type, prefixUrl, parentProps) {
11868
12072
  type: 'select',
11869
12073
  label: '商店类型',
11870
12074
  initialSource: shopFile2Type
11871
- }, {
11872
- name: 'qp-status-in',
11873
- type: 'select',
11874
- label: '商店状态',
11875
- initialSource: shopFile2Status
11876
- }, {
12075
+ },
12076
+ // { name: 'qp-status-in', type: 'select', label: '商店状态', initialSource: shopFile2Status },
12077
+ {
11877
12078
  name: 'qp-orgCode-in',
11878
12079
  type: 'select',
11879
12080
  label: '所属销售组织',
@@ -11892,8 +12093,90 @@ function commonFun(type, prefixUrl, parentProps) {
11892
12093
  }
11893
12094
  }
11894
12095
  }
12096
+ }, {
12097
+ name: 'qp-channelCode-in',
12098
+ type: 'treeSelect',
12099
+ label: '所属销售渠道',
12100
+ field: {
12101
+ type: 'treeSelect',
12102
+ props: {
12103
+ multiple: true,
12104
+ treeData: [],
12105
+ treeCheckable: false,
12106
+ notFoundContent: '暂无数据',
12107
+ allowClear: true,
12108
+ showSearch: true,
12109
+ showArrow: true,
12110
+ maxTagCount: 1,
12111
+ optionFilterProp: 'children',
12112
+ filterOption: function filterOption(input, option) {
12113
+ return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
12114
+ },
12115
+ showCheckedStrategy: 'TreeSelect.SHOW_ALL'
12116
+ }
12117
+ }
12118
+ }, {
12119
+ name: 'qp-commonRelationAreaCode-in',
12120
+ type: 'treeSelect',
12121
+ label: '营销区域',
12122
+ field: {
12123
+ type: 'treeSelect',
12124
+ props: {
12125
+ multiple: true,
12126
+ treeData: [],
12127
+ treeCheckable: false,
12128
+ notFoundContent: '暂无数据',
12129
+ allowClear: true,
12130
+ showSearch: true,
12131
+ showArrow: true,
12132
+ maxTagCount: 1,
12133
+ optionFilterProp: 'children',
12134
+ filterOption: function filterOption(input, option) {
12135
+ return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
12136
+ },
12137
+ showCheckedStrategy: 'TreeSelect.SHOW_ALL'
12138
+ }
12139
+ }
12140
+ }, {
12141
+ name: 'qp-businessType-in',
12142
+ type: 'select',
12143
+ label: '店铺性质',
12144
+ field: {
12145
+ type: 'select',
12146
+ props: {
12147
+ mode: 'multiple',
12148
+ notFoundContent: '暂无数据',
12149
+ allowClear: true,
12150
+ showSearch: true,
12151
+ showArrow: true,
12152
+ maxTagCount: 1,
12153
+ optionFilterProp: 'children',
12154
+ filterOption: function filterOption(input, option) {
12155
+ return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
12156
+ }
12157
+ }
12158
+ },
12159
+ initialSource: getDictionarySource$1('BUSINESS_StoreType')
12160
+ }, {
12161
+ name: "qp-brandCode-in",
12162
+ label: "品牌",
12163
+ field: {
12164
+ type: 'select',
12165
+ props: {
12166
+ mode: 'multiple',
12167
+ notFoundContent: '暂无数据',
12168
+ allowClear: true,
12169
+ showSearch: true,
12170
+ showArrow: true,
12171
+ maxTagCount: 1,
12172
+ optionFilterProp: 'children',
12173
+ filterOption: function filterOption(input, option) {
12174
+ return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
12175
+ }
12176
+ }
12177
+ }
11895
12178
  }];
11896
- var _queryHeaderParams11 = getQueryHeadersList({
12179
+ var _queryHeaderParams10 = getQueryHeadersList({
11897
12180
  querySelectHeadersList: querySelectHeadersList,
11898
12181
  extralHeaders: extralHeaders
11899
12182
  });
@@ -11901,8 +12184,27 @@ function commonFun(type, prefixUrl, parentProps) {
11901
12184
  'qp-employeeCode-eq': getEmployeeCode(),
11902
12185
  'qp-realOrg-eq': true,
11903
12186
  'qp-status-eq': 10
11904
- }, getQueryHeadersItem(_queryHeaderParams11, 'qp-orgCode-in'))]).then(function (x) {
11905
- formatSource(x, 0, 4, tableSearchForm);
12187
+ }, getQueryHeadersItem(_queryHeaderParams10, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/channelInfo/tree"), {
12188
+ 'qp-status-eq': 10,
12189
+ 'qp-isMain-eq': 1,
12190
+ 'qp-type-in': '1,2'
12191
+ }, getQueryHeadersItem(_queryHeaderParams10, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/tagNode/getTree/10"), {
12192
+ 'qp-status-eq': 1
12193
+ }, getQueryHeadersItem(_queryHeaderParams10, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/brand/queryBrandList"), {
12194
+ pageSize: 5000,
12195
+ currentPage: 1,
12196
+ 'ctl-withAuth': true
12197
+ }, getQueryHeadersItem(_queryHeaderParams10, 'ctl-withAuth'))]).then(function (x) {
12198
+ var channelDisabledJude = function channelDisabledJude(data) {
12199
+ return data['parentCode'] === '0';
12200
+ }; // 所属销售渠道 树节点不能点判断
12201
+ var areaDisabledJude = function areaDisabledJude(data) {
12202
+ return data['parent'] === '0';
12203
+ }; // 所属营销区域 树节点不能点判断
12204
+ formatSource(x, 0, 3, tableSearchForm);
12205
+ formatTreeDataSource(x, 1, 4, tableSearchForm, ['code', 'name'], 'channelInfoSon', channelDisabledJude);
12206
+ formatTreeDataSource(x, 2, 5, tableSearchForm, ['code', 'name'], 'children', areaDisabledJude);
12207
+ formatSource(x, 3, 7, tableSearchForm, ['brandCode', 'name']);
11906
12208
  });
11907
12209
  modalTableProps = _objectSpread2({
11908
12210
  modalTableTitle: '选择商店',
@@ -11910,19 +12212,23 @@ function commonFun(type, prefixUrl, parentProps) {
11910
12212
  tableColumns: [{
11911
12213
  title: '序号',
11912
12214
  dataIndex: 'keyIndex',
11913
- defaultSort: 0
12215
+ defaultSort: 0,
12216
+ width: 60
11914
12217
  }, {
11915
12218
  title: '商店编码',
11916
12219
  dataIndex: 'code',
11917
- defaultSort: 1
12220
+ defaultSort: 1,
12221
+ width: 100
11918
12222
  }, {
11919
12223
  title: '商店名称',
11920
12224
  dataIndex: 'name',
11921
- defaultSort: 2
12225
+ defaultSort: 2,
12226
+ width: 120
11922
12227
  }, {
11923
12228
  title: '商店类型',
11924
12229
  dataIndex: 'type',
11925
12230
  defaultSort: 3,
12231
+ width: 100,
11926
12232
  render: function render(text) {
11927
12233
  var _shopFile2Type$find;
11928
12234
  return (_shopFile2Type$find = shopFile2Type.find(function (i) {
@@ -11932,6 +12238,7 @@ function commonFun(type, prefixUrl, parentProps) {
11932
12238
  }, {
11933
12239
  title: '启用状态',
11934
12240
  dataIndex: 'status',
12241
+ width: 80,
11935
12242
  render: function render(text) {
11936
12243
  var _shopFile2Status$find;
11937
12244
  return (_shopFile2Status$find = shopFile2Status.find(function (i) {
@@ -11941,8 +12248,28 @@ function commonFun(type, prefixUrl, parentProps) {
11941
12248
  }, {
11942
12249
  title: '所属销售组织',
11943
12250
  dataIndex: 'orgName',
11944
- defaultSort: 4
11945
- }]
12251
+ defaultSort: 4,
12252
+ width: 95
12253
+ }, {
12254
+ title: '所属销售渠道',
12255
+ dataIndex: 'channelName',
12256
+ defaultSort: 5,
12257
+ width: 100
12258
+ }, {
12259
+ title: '营销区域',
12260
+ dataIndex: 'commonRelationAreaName',
12261
+ defaultSort: 6,
12262
+ width: 100
12263
+ }, {
12264
+ title: '店铺性质',
12265
+ dataIndex: 'businessType',
12266
+ defaultSort: 7,
12267
+ render: function render(text) {
12268
+ return getDictionaryTextByValue$1('BUSINESS_StoreType', text);
12269
+ },
12270
+ width: 80
12271
+ }],
12272
+ noEmptySearchField: true
11946
12273
  }, modalTableBusProps);
11947
12274
  }
11948
12275
  // 核算主体选择器(无弹窗)
@@ -12106,7 +12433,7 @@ function commonFun(type, prefixUrl, parentProps) {
12106
12433
  name: 'qp-officeTelephone-like',
12107
12434
  label: '手机号'
12108
12435
  }];
12109
- var _queryHeaderParams12 = getQueryHeadersList({
12436
+ var _queryHeaderParams11 = getQueryHeadersList({
12110
12437
  querySelectHeadersList: querySelectHeadersList,
12111
12438
  extralHeaders: extralHeaders
12112
12439
  });
@@ -12114,7 +12441,7 @@ function commonFun(type, prefixUrl, parentProps) {
12114
12441
  pageSize: 5000,
12115
12442
  currentPage: 1,
12116
12443
  'qp-companyType-eq': 20
12117
- }, getQueryHeadersItem(_queryHeaderParams12, 'qp-companyCode-in'))]).then(function (x) {
12444
+ }, getQueryHeadersItem(_queryHeaderParams11, 'qp-companyCode-in'))]).then(function (x) {
12118
12445
  formatSource(x, 0, 2, tableSearchForm);
12119
12446
  });
12120
12447
  modalTableProps = _objectSpread2({
@@ -12220,16 +12547,16 @@ function commonFun(type, prefixUrl, parentProps) {
12220
12547
  name: 'qp-email-like',
12221
12548
  label: '邮箱'
12222
12549
  }, {
12223
- name: 'qp-officeTelephone-like',
12550
+ name: 'qp-phone-like',
12224
12551
  label: '手机号'
12225
12552
  }]);
12226
- var _queryHeaderParams13 = getQueryHeadersList({
12553
+ var _queryHeaderParams12 = getQueryHeadersList({
12227
12554
  querySelectHeadersList: querySelectHeadersList,
12228
12555
  extralHeaders: extralHeaders
12229
12556
  });
12230
12557
  Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgViewNode/common/getTreeForOrgViewAndTenant"), {
12231
12558
  'orgViewCode': 'administrative-organization-view'
12232
- }, getQueryHeadersItem(_queryHeaderParams13, 'qp-code-in'))]).then(function (x) {
12559
+ }, getQueryHeadersItem(_queryHeaderParams12, 'qp-code-in'))]).then(function (x) {
12233
12560
  formatTreeDataSource(x, 0, 2, tableSearchForm, ['code', 'name']);
12234
12561
  });
12235
12562
  modalTableProps = _objectSpread2({
@@ -12280,7 +12607,7 @@ function commonFun(type, prefixUrl, parentProps) {
12280
12607
  dataIndex: 'email'
12281
12608
  }, {
12282
12609
  title: '手机号',
12283
- dataIndex: 'officeTelephone',
12610
+ dataIndex: 'phone',
12284
12611
  defaultSort: 4,
12285
12612
  render: function render(text, record) {
12286
12613
  return handleTextOverflow(text || (record === null || record === void 0 ? void 0 : record.phone));
@@ -12376,17 +12703,17 @@ function commonFun(type, prefixUrl, parentProps) {
12376
12703
  name: 'qp-remark-like',
12377
12704
  label: '备注'
12378
12705
  }];
12379
- var _queryHeaderParams14 = getQueryHeadersList({
12706
+ var _queryHeaderParams13 = getQueryHeadersList({
12380
12707
  querySelectHeadersList: querySelectHeadersList,
12381
12708
  extralHeaders: extralHeaders
12382
12709
  });
12383
12710
  Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/logisCompany"), {
12384
12711
  pageSize: 5000,
12385
12712
  currentPage: 1
12386
- }, getQueryHeadersItem(_queryHeaderParams14, logisCompanyCodeSingleSearchName)), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/printTemplate"), {
12713
+ }, getQueryHeadersItem(_queryHeaderParams13, logisCompanyCodeSingleSearchName)), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/printTemplate"), {
12387
12714
  pageSize: 5000,
12388
12715
  currentPage: 1
12389
- }, getQueryHeadersItem(_queryHeaderParams14, 'qp-sheetTemplateCode-in'))]).then(function (x) {
12716
+ }, getQueryHeadersItem(_queryHeaderParams13, 'qp-sheetTemplateCode-in'))]).then(function (x) {
12390
12717
  formatSource(x, 0, 2, tableSearchForm);
12391
12718
  formatSource(x, 1, 5, tableSearchForm);
12392
12719
  });
@@ -12556,14 +12883,14 @@ function commonFun(type, prefixUrl, parentProps) {
12556
12883
  }
12557
12884
  }
12558
12885
  }];
12559
- var _queryHeaderParams15 = getQueryHeadersList({
12886
+ var _queryHeaderParams14 = getQueryHeadersList({
12560
12887
  querySelectHeadersList: querySelectHeadersList,
12561
12888
  extralHeaders: extralHeaders
12562
12889
  });
12563
12890
  Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/permissionCategory"), {
12564
12891
  pageSize: 5000,
12565
12892
  currentPage: 1
12566
- }, getQueryHeadersItem(_queryHeaderParams15, 'qp-categoryCode-eq'))]).then(function (x) {
12893
+ }, getQueryHeadersItem(_queryHeaderParams14, 'qp-categoryCode-eq'))]).then(function (x) {
12567
12894
  formatSource(x, 0, 2, tableSearchForm);
12568
12895
  });
12569
12896
  modalTableProps = _objectSpread2({
@@ -12660,7 +12987,7 @@ function commonFun(type, prefixUrl, parentProps) {
12660
12987
  }
12661
12988
  }
12662
12989
  }];
12663
- var _queryHeaderParams16 = getQueryHeadersList({
12990
+ var _queryHeaderParams15 = getQueryHeadersList({
12664
12991
  querySelectHeadersList: querySelectHeadersList,
12665
12992
  extralHeaders: extralHeaders
12666
12993
  });
@@ -12668,7 +12995,7 @@ function commonFun(type, prefixUrl, parentProps) {
12668
12995
  'qp-employeeCode-eq': getEmployeeCode(),
12669
12996
  'qp-realOrg-eq': true,
12670
12997
  'qp-status-eq': 10
12671
- }, getQueryHeadersItem(_queryHeaderParams16, 'qp-salesOrgCode-in'))]).then(function (x) {
12998
+ }, getQueryHeadersItem(_queryHeaderParams15, 'qp-salesOrgCode-in'))]).then(function (x) {
12672
12999
  formatSource(x, 0, 2, tableSearchForm);
12673
13000
  });
12674
13001
  modalTableProps = _objectSpread2({
@@ -12774,13 +13101,13 @@ function commonFun(type, prefixUrl, parentProps) {
12774
13101
  },
12775
13102
  initialSource: nodeType
12776
13103
  }];
12777
- var _queryHeaderParams17 = getQueryHeadersList({
13104
+ var _queryHeaderParams16 = getQueryHeadersList({
12778
13105
  querySelectHeadersList: querySelectHeadersList,
12779
13106
  extralHeaders: extralHeaders
12780
13107
  });
12781
13108
  Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgView/getOrgViewListNoPage"), {
12782
13109
  'qp-status-eq': 10
12783
- }, getQueryHeadersItem(_queryHeaderParams17, 'qp-orgViewCode-in'))]).then(function (x) {
13110
+ }, getQueryHeadersItem(_queryHeaderParams16, 'qp-orgViewCode-in'))]).then(function (x) {
12784
13111
  formatSource(x, 0, 2, tableSearchForm);
12785
13112
  });
12786
13113
  modalTableProps = _objectSpread2({
@@ -13106,13 +13433,13 @@ function commonFun(type, prefixUrl, parentProps) {
13106
13433
  },
13107
13434
  initialSource: nodeType
13108
13435
  }];
13109
- var _queryHeaderParams18 = getQueryHeadersList({
13436
+ var _queryHeaderParams17 = getQueryHeadersList({
13110
13437
  querySelectHeadersList: querySelectHeadersList,
13111
13438
  extralHeaders: extralHeaders
13112
13439
  });
13113
13440
  Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgView/getOrgViewListNoPage"), {
13114
13441
  'qp-status-eq': 10
13115
- }, getQueryHeadersItem(_queryHeaderParams18, 'qp-orgViewCode-in'))]).then(function (x) {
13442
+ }, getQueryHeadersItem(_queryHeaderParams17, 'qp-orgViewCode-in'))]).then(function (x) {
13116
13443
  formatSource(x, 0, 2, tableSearchForm);
13117
13444
  });
13118
13445
  modalTableProps = _objectSpread2({
@@ -14057,9 +14384,9 @@ var AddSpuSelect = function AddSpuSelect(parProps) {
14057
14384
  value = _useState8[0],
14058
14385
  setValue = _useState8[1];
14059
14386
  var _useState9 = useState([]),
14060
- _useState10 = _slicedToArray(_useState9, 2),
14061
- propertyList = _useState10[0],
14062
- setPropertyList = _useState10[1];
14387
+ _useState0 = _slicedToArray(_useState9, 2),
14388
+ propertyList = _useState0[0],
14389
+ setPropertyList = _useState0[1];
14063
14390
  useEffect(function () {
14064
14391
  if (parProps === null || parProps === void 0 ? void 0 : parProps.isSingleColor) {
14065
14392
  // type: 1 尺码组; 2 配码组
@@ -14482,7 +14809,7 @@ function getStorageVale(storageKeyString) {
14482
14809
  var _storageKeyString$spl = storageKeyString.split('.'),
14483
14810
  _storageKeyString$spl2 = _toArray(_storageKeyString$spl),
14484
14811
  localstorage = _storageKeyString$spl2[0],
14485
- restKeyArrays = _storageKeyString$spl2.slice(1);
14812
+ restKeyArrays = _arrayLikeToArray(_storageKeyString$spl2).slice(1);
14486
14813
  var localStorageInfo = window.localStorage.getItem(localstorage);
14487
14814
  if (!restKeyArrays.length) return localStorageInfo;
14488
14815
  var returnVal = JSON.parse(localStorageInfo || '{}');
@@ -14583,46 +14910,45 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
14583
14910
  requestUtil.get("".concat(url, "?").concat(stringify(paramsData)), {
14584
14911
  headers: headers
14585
14912
  }).then(/*#__PURE__*/function () {
14586
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(res) {
14913
+ var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(res) {
14587
14914
  var _ctx$form;
14588
14915
  var resData, coverData, data, dataList;
14589
- return _regeneratorRuntime().wrap(function _callee$(_context) {
14590
- while (1) switch (_context.prev = _context.next) {
14916
+ return _regenerator().w(function (_context) {
14917
+ while (1) switch (_context.n) {
14591
14918
  case 0:
14592
14919
  resData = (res === null || res === void 0 ? void 0 : res.data) || [];
14593
14920
  if (!judgeIsRequestSuccess(resData)) {
14594
- _context.next = 13;
14921
+ _context.n = 4;
14595
14922
  break;
14596
14923
  }
14597
14924
  data = resData.data;
14598
14925
  if (!remoteSource.converter) {
14599
- _context.next = 9;
14926
+ _context.n = 2;
14600
14927
  break;
14601
14928
  }
14602
- _context.next = 6;
14929
+ _context.n = 1;
14603
14930
  return remoteSource.converter({
14604
14931
  data: [data]
14605
14932
  });
14606
- case 6:
14607
- coverData = _context.sent;
14608
- _context.next = 11;
14933
+ case 1:
14934
+ coverData = _context.v;
14935
+ _context.n = 3;
14609
14936
  break;
14610
- case 9:
14937
+ case 2:
14611
14938
  dataList = data && Array.isArray(data) ? data : data && [data] || [];
14612
14939
  coverData = dataList.length && dataList.map(function (ites) {
14613
14940
  return _mapSearchTree(ites);
14614
14941
  }) || [];
14615
- case 11:
14616
- _context.next = 14;
14942
+ case 3:
14943
+ _context.n = 5;
14617
14944
  break;
14618
- case 13:
14945
+ case 4:
14619
14946
  coverData = [];
14620
- case 14:
14947
+ case 5:
14621
14948
  setTreeData(coverData);
14622
14949
  ctx === null || ctx === void 0 ? void 0 : (_ctx$form = ctx.form) === null || _ctx$form === void 0 ? void 0 : _ctx$form.setFieldSource(ctx.name, coverData);
14623
- case 16:
14624
- case "end":
14625
- return _context.stop();
14950
+ case 6:
14951
+ return _context.a(2);
14626
14952
  }
14627
14953
  }, _callee);
14628
14954
  }));
@@ -17025,7 +17351,9 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
17025
17351
  title = _ref.title,
17026
17352
  pathToRegexp = _ref.pathToRegexp,
17027
17353
  backHistoryPath = _ref.backHistoryPath,
17028
- onBack = _ref.onBack;
17354
+ onBack = _ref.onBack,
17355
+ tradeType = _ref.tradeType,
17356
+ fromStatus = _ref.fromStatus;
17029
17357
  var _useState3 = useState(false),
17030
17358
  _useState4 = _slicedToArray(_useState3, 2),
17031
17359
  isFullScreen = _useState4[0],
@@ -17108,14 +17436,50 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
17108
17436
  }
17109
17437
  }
17110
17438
  };
17439
+ var getFlowButtons = function getFlowButtons() {
17440
+ try {
17441
+ return JSON.parse(localStorage.getItem('BUSINESS_FLOW_BUTTONS') || '[]');
17442
+ } catch (e) {
17443
+ return [];
17444
+ }
17445
+ };
17446
+ var filterByFlowRules = function filterByFlowRules(list, ctx) {
17447
+ var _find;
17448
+ var flowList = getFlowButtons();
17449
+ if (!(flowList === null || flowList === void 0 ? void 0 : flowList.length) || typeof ctx.tradeType !== 'number') return list;
17450
+ var entry = flowList.find(function (i) {
17451
+ return (i === null || i === void 0 ? void 0 : i.tradeType) === ctx.tradeType;
17452
+ });
17453
+ if (!entry) return list;
17454
+ var ctrlSet = new Set(((entry === null || entry === void 0 ? void 0 : entry.controlButtons) || []).filter(Boolean));
17455
+ var statButtons = ((_find = ((entry === null || entry === void 0 ? void 0 : entry.config) || []).find(function (c) {
17456
+ return (c === null || c === void 0 ? void 0 : c.fromStatus) === ctx.status;
17457
+ })) === null || _find === void 0 ? void 0 : _find.buttons) || [];
17458
+ var allowedSet = new Set((statButtons || []).filter(Boolean).filter(function (b) {
17459
+ return ctrlSet.size ? ctrlSet.has(b) : true;
17460
+ }));
17461
+ return list.filter(function (ui) {
17462
+ var _ui$props3, _ui$props4;
17463
+ var uiCode = ui.code || ui.buttonCode || (ui === null || ui === void 0 ? void 0 : (_ui$props3 = ui.props) === null || _ui$props3 === void 0 ? void 0 : _ui$props3.code) || (ui === null || ui === void 0 ? void 0 : (_ui$props4 = ui.props) === null || _ui$props4 === void 0 ? void 0 : _ui$props4.buttonCode);
17464
+ if (!uiCode) return true;
17465
+ if (ctrlSet.size && !ctrlSet.has(uiCode)) return true; // 非流程控制按钮不处理
17466
+ return allowedSet.has(uiCode);
17467
+ });
17468
+ };
17111
17469
  var renderPageActionList = function renderPageActionList(actionLists) {
17112
17470
  var _actionLists$;
17113
17471
  var authButton = localStorage.getItem(getMenuAuthDataKey()) ? JSON.parse(localStorage.getItem(getMenuAuthDataKey())) : [];
17114
17472
  var visibleActions = actionLists.filter(function (action) {
17115
- return (action.visible && action.visible !== 'false' || judgeIsEmpty$1(action.visible)) && (!shouldUseAuth() || judgeIsEmpty$1(action.code) || authButton.filter(function (item) {
17473
+ return (action.visible && action.visible !== 'false' || judgeIsEmpty$1(action.visible)) && (!shouldUseAuth() || judgeIsEmpty$1(action.code) || authButton.some(function (item) {
17116
17474
  return item === action.code;
17117
17475
  }));
17118
17476
  });
17477
+ if (typeof tradeType === 'number') {
17478
+ visibleActions = filterByFlowRules(visibleActions, {
17479
+ tradeType: tradeType,
17480
+ status: fromStatus
17481
+ });
17482
+ }
17119
17483
  var renderButton = function renderButton(item, type) {
17120
17484
  return /*#__PURE__*/React$1.createElement(Button, _objectSpread2({
17121
17485
  type: type || 'primary',
@@ -17228,6 +17592,68 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
17228
17592
  }
17229
17593
  return true;
17230
17594
  });
17595
+ var processDetailButtonsVisible = function processDetailButtonsVisible(buttons, params) {
17596
+ var _ref4 = params || {},
17597
+ tradeType = _ref4.tradeType,
17598
+ fromStatus = _ref4.fromStatus;
17599
+ var getFlowButtons = function getFlowButtons() {
17600
+ try {
17601
+ return JSON.parse(localStorage.getItem('BUSINESS_FLOW_BUTTONS') || '[]');
17602
+ } catch (e) {
17603
+ return [];
17604
+ }
17605
+ };
17606
+ var evalVisible = function evalVisible(v, ctx) {
17607
+ if (typeof v === 'string') {
17608
+ var expr = v.replace(/^#\{|\}$/g, '');
17609
+ try {
17610
+ var keys = Object.keys(ctx || {});
17611
+ var vals = keys.map(function (k) {
17612
+ return ctx[k];
17613
+ });
17614
+ // eslint-disable-next-line no-new-func
17615
+ return Function.apply(void 0, keys.concat(["return (".concat(expr, ");")])).apply(void 0, _toConsumableArray(vals));
17616
+ } catch (e) {
17617
+ return true;
17618
+ }
17619
+ }
17620
+ if (v === undefined) return true;
17621
+ return !!v;
17622
+ };
17623
+ var ctrlSet = new Set();
17624
+ var allowedSet = new Set();
17625
+ if (typeof tradeType === 'number') {
17626
+ var flowList = getFlowButtons();
17627
+ var entry = flowList.find(function (i) {
17628
+ return (i === null || i === void 0 ? void 0 : i.tradeType) === tradeType;
17629
+ });
17630
+ if (entry) {
17631
+ var _find2;
17632
+ ctrlSet = new Set(((entry === null || entry === void 0 ? void 0 : entry.controlButtons) || []).filter(Boolean));
17633
+ var statButtons = ((_find2 = ((entry === null || entry === void 0 ? void 0 : entry.config) || []).find(function (c) {
17634
+ return (c === null || c === void 0 ? void 0 : c.fromStatus) === fromStatus;
17635
+ })) === null || _find2 === void 0 ? void 0 : _find2.buttons) || [];
17636
+ allowedSet = new Set((statButtons || []).filter(Boolean).filter(function (b) {
17637
+ return ctrlSet.size ? ctrlSet.has(b) : true;
17638
+ }));
17639
+ }
17640
+ }
17641
+ var processed = (buttons || []).map(function (btn) {
17642
+ var visBase = evalVisible(btn === null || btn === void 0 ? void 0 : btn.visible, params);
17643
+ var vis = visBase;
17644
+ if (typeof tradeType === 'number' && ctrlSet && allowedSet && (btn === null || btn === void 0 ? void 0 : btn.code)) {
17645
+ if (ctrlSet.size === 0 || !ctrlSet.has(btn.code)) {
17646
+ vis = visBase;
17647
+ } else {
17648
+ vis = visBase && allowedSet.has(btn.code);
17649
+ }
17650
+ }
17651
+ return _objectSpread2(_objectSpread2({}, btn), {}, {
17652
+ visible: vis
17653
+ });
17654
+ });
17655
+ return processed;
17656
+ };
17231
17657
 
17232
17658
  var css_248z$h = ".bs_home_page_head_wrapper {\n position: sticky;\n background: #fff;\n width: 100%;\n top: 0px;\n z-index: 10;\n}\n.home_page_head {\n display: flex;\n justify-content: space-between;\n align-items: center;\n background-color: #FFFFFF;\n border-bottom: 1px solid #f0f0f0;\n padding: 6px 16px 5px;\n font-weight: 500;\n}\n.home_page_head .home_page_title_wrapper {\n display: flex;\n align-items: center;\n height: 20px;\n line-height: 20px;\n}\n.home_page_head .home_page_title {\n font-family: PingFangSC-Medium;\n font-weight: 600;\n font-size: 16px;\n color: #000000;\n letter-spacing: 0;\n flex-grow: 1;\n padding-right: 10px;\n display: none;\n}\n.home_page_head .ant-breadcrumb {\n display: block !important;\n}\n.home_page_head .ant-breadcrumb .ant-breadcrumb-separator {\n margin: 0 2px;\n}\n.home_page_head .ant-breadcrumb li .bread_name {\n color: #8B8B8B;\n font-size: 12px;\n line-height: 16px;\n cursor: pointer;\n}\n.home_page_head .ant-breadcrumb li .bread_name_last {\n color: #282828;\n}\n";
17233
17659
  styleInject(css_248z$h);
@@ -17521,6 +17947,9 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
17521
17947
  title: '列首',
17522
17948
  dataIndex: 'fixedLeft',
17523
17949
  render: function render(text, record) {
17950
+ if (_this.props.disableColumnFixed) {
17951
+ return null;
17952
+ }
17524
17953
  return /*#__PURE__*/React$1.createElement("span", {
17525
17954
  onClick: function onClick() {
17526
17955
  var sortDataSource = _this.state.sortDataSource;
@@ -17597,6 +18026,9 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
17597
18026
  title: '列尾',
17598
18027
  dataIndex: 'fixedRight',
17599
18028
  render: function render(text, record) {
18029
+ if (_this.props.disableColumnFixed) {
18030
+ return null;
18031
+ }
17600
18032
  return /*#__PURE__*/React$1.createElement("span", {
17601
18033
  onClick: function onClick() {
17602
18034
  var sortDataSource = _this.state.sortDataSource;
@@ -18846,7 +19278,7 @@ var ResizeableTitle$2 = function ResizeableTitle(props) {
18846
19278
  }, /*#__PURE__*/React$1.createElement("th", _objectSpread2({}, restProps)));
18847
19279
  };
18848
19280
  var BsSulaQueryTable = (function (props) {
18849
- var _rowsRef$current5, _props$expandable, _sortTableRef$current3, _value$exportConfig6;
19281
+ var _rowsRef$current5, _props$expandable, _sortTableRef$current3, _props$tableProps, _value$exportConfig6;
18850
19282
  var bsTableCode = (props === null || props === void 0 ? void 0 : props.tableCode) || window.location.hash; //设置列字段的唯一标识
18851
19283
  var rowsRef = useRef(null);
18852
19284
  // 获取 table columns中所有的 key 防止有的地方是 dataindex
@@ -18924,38 +19356,38 @@ var BsSulaQueryTable = (function (props) {
18924
19356
  };
18925
19357
  var refs = useRef(null);
18926
19358
  var _useState9 = useState(''),
18927
- _useState10 = _slicedToArray(_useState9, 2),
18928
- pagePath = _useState10[0],
18929
- setPagePath = _useState10[1];
19359
+ _useState0 = _slicedToArray(_useState9, 2),
19360
+ pagePath = _useState0[0],
19361
+ setPagePath = _useState0[1];
18930
19362
  var _useLocation = useLocation(),
18931
19363
  pathname = _useLocation.pathname,
18932
19364
  _useLocation$state = _useLocation.state,
18933
19365
  state = _useLocation$state === void 0 ? {} : _useLocation$state;
18934
- var _useState11 = useState(false),
18935
- _useState12 = _slicedToArray(_useState11, 2),
18936
- isFullScreen = _useState12[0],
18937
- setIsFnllScreen = _useState12[1];
19366
+ var _useState1 = useState(false),
19367
+ _useState10 = _slicedToArray(_useState1, 2),
19368
+ isFullScreen = _useState10[0],
19369
+ setIsFnllScreen = _useState10[1];
18938
19370
  // @ts-nocheck
18939
19371
  var value = props;
18940
19372
  var _props$fields = props.fields,
18941
19373
  fields = _props$fields === void 0 ? [] : _props$fields;
18942
- var _useState13 = useState([]),
18943
- _useState14 = _slicedToArray(_useState13, 2),
18944
- showColumn = _useState14[0],
18945
- setShowColumns = _useState14[1]; // 列字段
19374
+ var _useState11 = useState([]),
19375
+ _useState12 = _slicedToArray(_useState11, 2),
19376
+ showColumn = _useState12[0],
19377
+ setShowColumns = _useState12[1]; // 列字段
18946
19378
  var originSearchFields = getSettingFieldOrColumn(getConfigFromlocalstorage(ENUM$1.BROWSER_CACHE.SEARCH_FIELDS_CONDITION), fields, 'searchFields');
18947
- var _useState15 = useState(originSearchFields),
19379
+ var _useState13 = useState(originSearchFields),
19380
+ _useState14 = _slicedToArray(_useState13, 2),
19381
+ showSearchFields = _useState14[0],
19382
+ setShowSearchFields = _useState14[1]; //搜索项字段
19383
+ var _useState15 = useState([]),
18948
19384
  _useState16 = _slicedToArray(_useState15, 2),
18949
- showSearchFields = _useState16[0],
18950
- setShowSearchFields = _useState16[1]; //搜索项字段
18951
- var _useState17 = useState([]),
19385
+ showExportColumn = _useState16[0],
19386
+ setShowExportColumns = _useState16[1]; // 导出列字段
19387
+ var _useState17 = useState(''),
18952
19388
  _useState18 = _slicedToArray(_useState17, 2),
18953
- showExportColumn = _useState18[0],
18954
- setShowExportColumns = _useState18[1]; // 导出列字段
18955
- var _useState19 = useState(''),
18956
- _useState20 = _slicedToArray(_useState19, 2),
18957
- height = _useState20[0],
18958
- setHeight = _useState20[1];
19389
+ height = _useState18[0],
19390
+ setHeight = _useState18[1];
18959
19391
  var sortTableRef = useRef(null);
18960
19392
  var searchTableRef = useRef(null);
18961
19393
  var exportTableRef = useRef(null);
@@ -19208,10 +19640,22 @@ var BsSulaQueryTable = (function (props) {
19208
19640
  };
19209
19641
  }
19210
19642
  }, (value === null || value === void 0 ? void 0 : value.tableProps) || {});
19211
- // @ts-ignore
19212
19643
  if (tableProps === null || tableProps === void 0 ? void 0 : (_tableProps$initialPa = tableProps.initialPaging) === null || _tableProps$initialPa === void 0 ? void 0 : _tableProps$initialPa.pagination) {
19213
- // @ts-ignore
19214
19644
  tableProps.initialPaging.pagination.showSizeChanger = true;
19645
+ // 分页大小改变时,更新本地存储
19646
+ var onShowSizeChange = function onShowSizeChange(current, size) {
19647
+ var allPaginationData = JSON.parse(localStorage.getItem('paginationData') || "{}");
19648
+ allPaginationData[bsTableCode] = size;
19649
+ localStorage.setItem('paginationData', JSON.stringify(allPaginationData || {}));
19650
+ };
19651
+ tableProps.initialPaging.pagination.onShowSizeChange = onShowSizeChange;
19652
+ // 从本地存储中获取分页大小
19653
+ var pageSize = JSON.parse(localStorage.getItem('paginationData') || "{}")[bsTableCode];
19654
+ if (pageSize) {
19655
+ tableProps.initialPaging.pagination.pageSize = pageSize;
19656
+ tableProps.pageSize = pageSize;
19657
+ tableProps.defaultPageSize = pageSize;
19658
+ }
19215
19659
  }
19216
19660
  return tableProps;
19217
19661
  };
@@ -19296,13 +19740,124 @@ var BsSulaQueryTable = (function (props) {
19296
19740
  if (value.rowSelection) {
19297
19741
  value.rowSelection.columnWidth = 50;
19298
19742
  }
19743
+ if (typeof props.tradeType !== 'number') {
19744
+ return _objectSpread2(_objectSpread2({}, value), {}, {
19745
+ actionsRender: actionsRender
19746
+ });
19747
+ }
19748
+ try {
19749
+ var raw = JSON.parse(localStorage.getItem('BUSINESS_FLOW_BUTTONS') || '[]');
19750
+ var entry = raw.find(function (i) {
19751
+ return (i === null || i === void 0 ? void 0 : i.tradeType) === props.tradeType;
19752
+ });
19753
+ if (entry) {
19754
+ var ctrlSet = new Set(((entry === null || entry === void 0 ? void 0 : entry.controlButtons) || []).filter(Boolean));
19755
+ var allowedTopSet = new Set();
19756
+ ((entry === null || entry === void 0 ? void 0 : entry.config) || []).forEach(function (c) {
19757
+ ((c === null || c === void 0 ? void 0 : c.buttons) || []).filter(Boolean).forEach(function (b) {
19758
+ if (!ctrlSet.size || ctrlSet.has(b)) allowedTopSet.add(b);
19759
+ });
19760
+ });
19761
+ console.debug('[FlowCtrl:top]', {
19762
+ ctrlSize: ctrlSet.size,
19763
+ allowedTopSize: allowedTopSet.size
19764
+ });
19765
+ actionsRender = actionsRender.filter(function (ui) {
19766
+ var code = ui === null || ui === void 0 ? void 0 : ui.code;
19767
+ if (!code) return true;
19768
+ if (ctrlSet.size && !ctrlSet.has(code)) return true; // 非流程控制按钮不处理
19769
+ var keep = allowedTopSet.has(code);
19770
+ if (code) console.debug('[FlowCtrl:top-element]', {
19771
+ code: code,
19772
+ keep: keep
19773
+ });
19774
+ return keep;
19775
+ });
19776
+ }
19777
+ } catch (e) {}
19778
+ var remoteDataSource = value === null || value === void 0 ? void 0 : value.remoteDataSource;
19779
+ if (remoteDataSource) {
19780
+ var _ctrlSet = new Set();
19781
+ var btnStatusMap = new Map();
19782
+ try {
19783
+ var _raw = JSON.parse(localStorage.getItem('BUSINESS_FLOW_BUTTONS') || '[]');
19784
+ var _entry = _raw.find(function (i) {
19785
+ return (i === null || i === void 0 ? void 0 : i.tradeType) === props.tradeType;
19786
+ });
19787
+ if (_entry) {
19788
+ _ctrlSet = new Set(((_entry === null || _entry === void 0 ? void 0 : _entry.controlButtons) || []).filter(Boolean));
19789
+ ((_entry === null || _entry === void 0 ? void 0 : _entry.config) || []).forEach(function (c) {
19790
+ ((c === null || c === void 0 ? void 0 : c.buttons) || []).filter(Boolean).forEach(function (b) {
19791
+ if (!_ctrlSet.size || _ctrlSet.has(b)) {
19792
+ var set = btnStatusMap.get(b) || new Set();
19793
+ set.add(c === null || c === void 0 ? void 0 : c.fromStatus);
19794
+ btnStatusMap.set(b, set);
19795
+ }
19796
+ });
19797
+ });
19798
+ }
19799
+ } catch (e) {}
19800
+ var getByPath = function getByPath(obj, path) {
19801
+ if (!obj || !path) return undefined;
19802
+ var parts = path.split('.');
19803
+ var cur = obj;
19804
+ for (var i = 0; i < parts.length; i++) {
19805
+ var _cur;
19806
+ cur = (_cur = cur) === null || _cur === void 0 ? void 0 : _cur[parts[i]];
19807
+ if (cur === undefined) return undefined;
19808
+ }
19809
+ return cur;
19810
+ };
19811
+ var statusPath = props === null || props === void 0 ? void 0 : props.statusFieldPath;
19812
+ var augment = function augment(result) {
19813
+ if (!btnStatusMap || btnStatusMap.size === 0) return result;
19814
+ if (result && Array.isArray(result.list)) {
19815
+ result.list = result.list.map(function (rec) {
19816
+ var _ref2, _ref3, _ref4, _rec$status;
19817
+ var status = statusPath ? getByPath(rec, statusPath) : (_ref2 = (_ref3 = (_ref4 = (_rec$status = rec === null || rec === void 0 ? void 0 : rec.status) !== null && _rec$status !== void 0 ? _rec$status : rec === null || rec === void 0 ? void 0 : rec.orderStatus) !== null && _ref4 !== void 0 ? _ref4 : rec === null || rec === void 0 ? void 0 : rec.flowStatus) !== null && _ref3 !== void 0 ? _ref3 : rec === null || rec === void 0 ? void 0 : rec.tradeStatus) !== null && _ref2 !== void 0 ? _ref2 : rec === null || rec === void 0 ? void 0 : rec.currentStatus;
19818
+ var map = {};
19819
+ btnStatusMap.forEach(function (set, code) {
19820
+ map[code] = set.has(status) ? true : undefined;
19821
+ });
19822
+ return _objectSpread2(_objectSpread2({}, rec), {}, {
19823
+ __flowAllowedMap: map
19824
+ });
19825
+ });
19826
+ }
19827
+ return result;
19828
+ };
19829
+ if (Array.isArray(remoteDataSource.converter)) {
19830
+ var stages = remoteDataSource.converter;
19831
+ var pipeline = function pipeline(args) {
19832
+ var res = args;
19833
+ for (var i = 0; i < stages.length; i++) {
19834
+ res = stages[i](res);
19835
+ }
19836
+ res = augment(res);
19837
+ return res;
19838
+ };
19839
+ remoteDataSource = _objectSpread2(_objectSpread2({}, remoteDataSource), {}, {
19840
+ converter: pipeline
19841
+ });
19842
+ } else if (typeof remoteDataSource.converter === 'function') {
19843
+ var orig = remoteDataSource.converter;
19844
+ var wrap = function wrap(args) {
19845
+ var res = orig(args);
19846
+ return augment(res);
19847
+ };
19848
+ remoteDataSource = _objectSpread2(_objectSpread2({}, remoteDataSource), {}, {
19849
+ converter: wrap
19850
+ });
19851
+ }
19852
+ }
19299
19853
  return _objectSpread2(_objectSpread2({}, value), {}, {
19300
- actionsRender: actionsRender
19854
+ actionsRender: actionsRender,
19855
+ remoteDataSource: remoteDataSource
19301
19856
  });
19302
19857
  };
19303
19858
  var handleResize = function handleResize(index) {
19304
- return function (e, _ref2) {
19305
- var size = _ref2.size;
19859
+ return function (e, _ref5) {
19860
+ var size = _ref5.size;
19306
19861
  setShowColumns(function (columns) {
19307
19862
  var newColumns = _toConsumableArray(columns);
19308
19863
  newColumns[index] = _objectSpread2(_objectSpread2({}, newColumns[index]), {}, {
@@ -19330,11 +19885,66 @@ var BsSulaQueryTable = (function (props) {
19330
19885
  // 优化一下 减少复杂度
19331
19886
  var titleMap = toMapByKey(value.columns, 'title');
19332
19887
  // 加上排序
19888
+ var hasFlowEntry = typeof props.tradeType === 'number' && function () {
19889
+ try {
19890
+ var raw = JSON.parse(localStorage.getItem('BUSINESS_FLOW_BUTTONS') || '[]');
19891
+ return !!raw.find(function (i) {
19892
+ return (i === null || i === void 0 ? void 0 : i.tradeType) === props.tradeType;
19893
+ });
19894
+ } catch (e) {
19895
+ return false;
19896
+ }
19897
+ }();
19898
+ var hasControlRange = typeof props.tradeType === 'number' && function () {
19899
+ try {
19900
+ var raw = JSON.parse(localStorage.getItem('BUSINESS_FLOW_BUTTONS') || '[]');
19901
+ var entry = raw.find(function (i) {
19902
+ return (i === null || i === void 0 ? void 0 : i.tradeType) === props.tradeType;
19903
+ });
19904
+ if (!entry) return false;
19905
+ var _ctrlSet2 = new Set(((entry === null || entry === void 0 ? void 0 : entry.controlButtons) || []).filter(Boolean));
19906
+ return _ctrlSet2.size > 0;
19907
+ } catch (e) {
19908
+ return false;
19909
+ }
19910
+ }();
19911
+ var toExpr = function toExpr(v) {
19912
+ if (typeof v === 'string') return v.replace(/^#\{|\}$/g, '');
19913
+ if (v === undefined) return 'true';
19914
+ return v ? 'true' : 'false';
19915
+ };
19916
+ // 读取当前 tradeType 的控制范围,用于只在控制按钮上追加流程表达式
19917
+ var ctrlSet = new Set();
19918
+ if (hasFlowEntry) {
19919
+ try {
19920
+ var raw = JSON.parse(localStorage.getItem('BUSINESS_FLOW_BUTTONS') || '[]');
19921
+ var entry = raw.find(function (i) {
19922
+ return (i === null || i === void 0 ? void 0 : i.tradeType) === props.tradeType;
19923
+ });
19924
+ if (entry) ctrlSet = new Set(((entry === null || entry === void 0 ? void 0 : entry.controlButtons) || []).filter(Boolean));
19925
+ } catch (e) {}
19926
+ }
19927
+ var augmentPermissionRender = function augmentPermissionRender(arr, set) {
19928
+ return arr.map(function (el) {
19929
+ var code = el === null || el === void 0 ? void 0 : el.code;
19930
+ if (!code) return el;
19931
+ // 非控制范围按钮不追加流程控制,保持原 visible
19932
+ if (!set || set.size === 0 || !set.has(code)) return el;
19933
+ var base = toExpr(el.visible);
19934
+ var flow = "record.__flowAllowedMap['".concat(code, "'] == true");
19935
+ return _objectSpread2(_objectSpread2({}, el), {}, {
19936
+ visible: "#{(".concat(base, ") && (").concat(flow, ")}")
19937
+ });
19938
+ });
19939
+ };
19333
19940
  var cols = showColumn.map(function (i) {
19334
- var _titleMap$renderToStr, _titleMap$renderToStr2;
19941
+ var orig = titleMap[renderToString(i.title)] || {};
19942
+ var origRender = orig.render;
19943
+ var isPerm = orig.isPermissionColumn;
19944
+ var newRender = Array.isArray(origRender) && isPerm && hasFlowEntry && hasControlRange ? augmentPermissionRender(origRender, ctrlSet) : origRender;
19335
19945
  return _objectSpread2(_objectSpread2({}, i), {}, {
19336
- isPermissionColumn: (_titleMap$renderToStr = titleMap[renderToString(i.title)]) === null || _titleMap$renderToStr === void 0 ? void 0 : _titleMap$renderToStr.isPermissionColumn,
19337
- render: (_titleMap$renderToStr2 = titleMap[renderToString(i.title)]) === null || _titleMap$renderToStr2 === void 0 ? void 0 : _titleMap$renderToStr2.render
19946
+ isPermissionColumn: isPerm,
19947
+ render: newRender
19338
19948
  });
19339
19949
  });
19340
19950
  cols.forEach(function (i) {
@@ -19507,6 +20117,7 @@ var BsSulaQueryTable = (function (props) {
19507
20117
  id: "bs-sula-query-table"
19508
20118
  }, /*#__PURE__*/React$1.createElement(MemoQueryTable, _objectSpread2({}, memoConfig)), /*#__PURE__*/React$1.createElement(SortableTable$1, {
19509
20119
  ref: sortTableRef,
20120
+ disableColumnFixed: (_props$tableProps = props.tableProps) === null || _props$tableProps === void 0 ? void 0 : _props$tableProps.isVirtualTable,
19510
20121
  setShowColumns: setResizeShowColumns,
19511
20122
  showColumn: showColumn,
19512
20123
  setInitialTableInfo: setInitialTableInfo,
@@ -19583,7 +20194,7 @@ var matchPath = function matchPath(pathname) {
19583
20194
  if (!match) return null;
19584
20195
  var _match = _toArray(match),
19585
20196
  url = _match[0],
19586
- values = _match.slice(1);
20197
+ values = _arrayLikeToArray(_match).slice(1);
19587
20198
  var isExact = pathname === url;
19588
20199
  if (exact && !isExact) return null;
19589
20200
  return {
@@ -20003,22 +20614,19 @@ function outLogin(_x) {
20003
20614
  return _outLogin.apply(this, arguments);
20004
20615
  }
20005
20616
  function _outLogin() {
20006
- _outLogin = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
20617
+ _outLogin = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(params) {
20007
20618
  var res;
20008
- return _regeneratorRuntime().wrap(function _callee$(_context) {
20009
- while (1) switch (_context.prev = _context.next) {
20619
+ return _regenerator().w(function (_context) {
20620
+ while (1) switch (_context.n) {
20010
20621
  case 0:
20011
- _context.next = 2;
20622
+ _context.n = 1;
20012
20623
  return requestUtil({
20013
20624
  url: '/user/web/loginOut',
20014
20625
  method: 'GET'
20015
20626
  });
20016
- case 2:
20017
- res = _context.sent;
20018
- return _context.abrupt("return", res);
20019
- case 4:
20020
- case "end":
20021
- return _context.stop();
20627
+ case 1:
20628
+ res = _context.v;
20629
+ return _context.a(2, res);
20022
20630
  }
20023
20631
  }, _callee);
20024
20632
  }));
@@ -20145,20 +20753,20 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
20145
20753
  });
20146
20754
  };
20147
20755
  var loginOut = /*#__PURE__*/function () {
20148
- var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
20756
+ var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
20149
20757
  var sessionId;
20150
- return _regeneratorRuntime().wrap(function _callee$(_context) {
20151
- while (1) switch (_context.prev = _context.next) {
20758
+ return _regenerator().w(function (_context) {
20759
+ while (1) switch (_context.n) {
20152
20760
  case 0:
20153
- _context.next = 2;
20761
+ _context.n = 1;
20154
20762
  return getSessionId();
20155
- case 2:
20156
- sessionId = _context.sent;
20157
- _context.next = 5;
20763
+ case 1:
20764
+ sessionId = _context.v;
20765
+ _context.n = 2;
20158
20766
  return outLogin({
20159
20767
  sessionId: sessionId
20160
20768
  });
20161
- case 5:
20769
+ case 2:
20162
20770
  // @ts-ignore
20163
20771
  if (BUILD_TYPE) {
20164
20772
  message$1.success('退出登录成功');
@@ -20168,9 +20776,8 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
20168
20776
  } else {
20169
20777
  setLoginOutPath();
20170
20778
  }
20171
- case 6:
20172
- case "end":
20173
- return _context.stop();
20779
+ case 3:
20780
+ return _context.a(2);
20174
20781
  }
20175
20782
  }, _callee);
20176
20783
  }));
@@ -20257,18 +20864,15 @@ function getStoreByName(_x) {
20257
20864
  return _getStoreByName.apply(this, arguments);
20258
20865
  }
20259
20866
  function _getStoreByName() {
20260
- _getStoreByName = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
20261
- return _regeneratorRuntime().wrap(function _callee$(_context) {
20262
- while (1) switch (_context.prev = _context.next) {
20867
+ _getStoreByName = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(params) {
20868
+ return _regenerator().w(function (_context) {
20869
+ while (1) switch (_context.n) {
20263
20870
  case 0:
20264
- return _context.abrupt("return", requestUtil({
20871
+ return _context.a(2, requestUtil({
20265
20872
  url: '/store-house/orgViewNode/listNoPage',
20266
20873
  method: 'GET',
20267
20874
  params: _objectSpread2({}, params)
20268
20875
  }));
20269
- case 1:
20270
- case "end":
20271
- return _context.stop();
20272
20876
  }
20273
20877
  }, _callee);
20274
20878
  }));
@@ -20303,33 +20907,33 @@ var ChooseStore = function ChooseStore(props) {
20303
20907
  openSelect = _useState8[0],
20304
20908
  setOpenSelect = _useState8[1];
20305
20909
  var _useState9 = useState([]),
20306
- _useState10 = _slicedToArray(_useState9, 2),
20307
- options = _useState10[0],
20308
- setOptions = _useState10[1];
20309
- var _useState11 = useState([]),
20910
+ _useState0 = _slicedToArray(_useState9, 2),
20911
+ options = _useState0[0],
20912
+ setOptions = _useState0[1];
20913
+ var _useState1 = useState([]),
20914
+ _useState10 = _slicedToArray(_useState1, 2),
20915
+ rescouse = _useState10[0],
20916
+ setRescouse = _useState10[1];
20917
+ var _useState11 = useState(''),
20310
20918
  _useState12 = _slicedToArray(_useState11, 2),
20311
- rescouse = _useState12[0],
20312
- setRescouse = _useState12[1];
20313
- var _useState13 = useState(''),
20314
- _useState14 = _slicedToArray(_useState13, 2),
20315
- searchValue = _useState14[0],
20316
- setSearchValue = _useState14[1];
20317
- var _useState15 = useState([{
20919
+ searchValue = _useState12[0],
20920
+ setSearchValue = _useState12[1];
20921
+ var _useState13 = useState([{
20318
20922
  label: name,
20319
20923
  value: code
20320
20924
  }]),
20321
- _useState16 = _slicedToArray(_useState15, 2),
20322
- store = _useState16[0],
20323
- setStore = _useState16[1];
20925
+ _useState14 = _slicedToArray(_useState13, 2),
20926
+ store = _useState14[0],
20927
+ setStore = _useState14[1];
20324
20928
  function fetchUserList(_x, _x2) {
20325
20929
  return _fetchUserList.apply(this, arguments);
20326
20930
  }
20327
20931
  function _fetchUserList() {
20328
- _fetchUserList = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(storeName, init) {
20329
- return _regeneratorRuntime().wrap(function _callee3$(_context3) {
20330
- while (1) switch (_context3.prev = _context3.next) {
20932
+ _fetchUserList = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(storeName, init) {
20933
+ return _regenerator().w(function (_context3) {
20934
+ while (1) switch (_context3.n) {
20331
20935
  case 0:
20332
- return _context3.abrupt("return", getStoreByName({
20936
+ return _context3.a(2, getStoreByName({
20333
20937
  orgName: storeName ? storeName : undefined,
20334
20938
  platCompanyCode: init ? undefined : key,
20335
20939
  'qp-employeeCode-eq': employeeCode || 'EMP231011000002',
@@ -20348,9 +20952,6 @@ var ChooseStore = function ChooseStore(props) {
20348
20952
  };
20349
20953
  });
20350
20954
  }));
20351
- case 1:
20352
- case "end":
20353
- return _context3.stop();
20354
20955
  }
20355
20956
  }, _callee3);
20356
20957
  }));
@@ -20373,20 +20974,19 @@ var ChooseStore = function ChooseStore(props) {
20373
20974
  return debounce$1(loadOptions, debounceTimeout);
20374
20975
  }, [debounceTimeout, key]);
20375
20976
  var changeInput = /*#__PURE__*/function () {
20376
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(str) {
20977
+ var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(str) {
20377
20978
  var res;
20378
- return _regeneratorRuntime().wrap(function _callee$(_context) {
20379
- while (1) switch (_context.prev = _context.next) {
20979
+ return _regenerator().w(function (_context) {
20980
+ while (1) switch (_context.n) {
20380
20981
  case 0:
20381
- _context.next = 2;
20982
+ _context.n = 1;
20382
20983
  return debounceFetcher(str);
20383
- case 2:
20384
- res = _context.sent;
20984
+ case 1:
20985
+ res = _context.v;
20385
20986
  setOptions(res);
20386
20987
  setRescouse(res);
20387
- case 5:
20388
- case "end":
20389
- return _context.stop();
20988
+ case 2:
20989
+ return _context.a(2);
20390
20990
  }
20391
20991
  }, _callee);
20392
20992
  }));
@@ -20395,15 +20995,15 @@ var ChooseStore = function ChooseStore(props) {
20395
20995
  };
20396
20996
  }();
20397
20997
  useEffect(function () {
20398
- _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
20998
+ _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
20399
20999
  var res;
20400
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
20401
- while (1) switch (_context2.prev = _context2.next) {
21000
+ return _regenerator().w(function (_context2) {
21001
+ while (1) switch (_context2.n) {
20402
21002
  case 0:
20403
- _context2.next = 2;
21003
+ _context2.n = 1;
20404
21004
  return fetchUserList(undefined, true);
20405
- case 2:
20406
- res = _context2.sent;
21005
+ case 1:
21006
+ res = _context2.v;
20407
21007
  res.map(function (item, indexNumber) {
20408
21008
  if (item.label === name) {
20409
21009
  setIndex(indexNumber);
@@ -20419,9 +21019,8 @@ var ChooseStore = function ChooseStore(props) {
20419
21019
  });
20420
21020
  setOptions(res);
20421
21021
  setRescouse(res);
20422
- case 6:
20423
- case "end":
20424
- return _context2.stop();
21022
+ case 2:
21023
+ return _context2.a(2);
20425
21024
  }
20426
21025
  }, _callee2);
20427
21026
  }))();
@@ -21470,25 +22069,25 @@ var DrawContent$1 = function DrawContent(_ref) {
21470
22069
  currentOneLevel = _useState8[0],
21471
22070
  setCurrentOneLevel = _useState8[1];
21472
22071
  var _useState9 = useState([]),
21473
- _useState10 = _slicedToArray(_useState9, 2),
21474
- SearhData = _useState10[0],
21475
- setSearchMenuData = _useState10[1];
21476
- var _useState11 = useState(600),
22072
+ _useState0 = _slicedToArray(_useState9, 2),
22073
+ SearhData = _useState0[0],
22074
+ setSearchMenuData = _useState0[1];
22075
+ var _useState1 = useState(600),
22076
+ _useState10 = _slicedToArray(_useState1, 2),
22077
+ rightMenuHeight = _useState10[0],
22078
+ setHeight = _useState10[1];
22079
+ var _useState11 = useState(900),
21477
22080
  _useState12 = _slicedToArray(_useState11, 2),
21478
- rightMenuHeight = _useState12[0],
21479
- setHeight = _useState12[1];
21480
- var _useState13 = useState(900),
22081
+ drawHeight = _useState12[0],
22082
+ setDrawHeight = _useState12[1];
22083
+ var _useState13 = useState(false),
21481
22084
  _useState14 = _slicedToArray(_useState13, 2),
21482
- drawHeight = _useState14[0],
21483
- setDrawHeight = _useState14[1];
22085
+ moreBtnShow = _useState14[0],
22086
+ setMoreBtnShow = _useState14[1];
21484
22087
  var _useState15 = useState(false),
21485
22088
  _useState16 = _slicedToArray(_useState15, 2),
21486
- moreBtnShow = _useState16[0],
21487
- setMoreBtnShow = _useState16[1];
21488
- var _useState17 = useState(false),
21489
- _useState18 = _slicedToArray(_useState17, 2),
21490
- showScroll = _useState18[0],
21491
- setShowScroll = _useState18[1];
22089
+ showScroll = _useState16[0],
22090
+ setShowScroll = _useState16[1];
21492
22091
  useEffect(function () {
21493
22092
  var _originRoutes$find;
21494
22093
  getMenuContentHeight();
@@ -23099,14 +23698,11 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
23099
23698
  },
23100
23699
  menu: {
23101
23700
  request: function () {
23102
- var _request = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
23103
- return _regeneratorRuntime().wrap(function _callee$(_context) {
23104
- while (1) switch (_context.prev = _context.next) {
23701
+ var _request = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
23702
+ return _regenerator().w(function (_context) {
23703
+ while (1) switch (_context.n) {
23105
23704
  case 0:
23106
- return _context.abrupt("return", JSON.parse(localStorage.getItem("customerMenu_".concat(itemPath, "_front")) || '[]'));
23107
- case 1:
23108
- case "end":
23109
- return _context.stop();
23705
+ return _context.a(2, JSON.parse(localStorage.getItem("customerMenu_".concat(itemPath, "_front")) || '[]'));
23110
23706
  }
23111
23707
  }, _callee);
23112
23708
  }));
@@ -23511,31 +24107,31 @@ var index$6 = /*#__PURE__*/forwardRef(function (props, ref) {
23511
24107
  multiTableData = _useState8[0],
23512
24108
  setMmultiTableData = _useState8[1]; //多表头数据
23513
24109
  var _useState9 = useState(10),
23514
- _useState10 = _slicedToArray(_useState9, 2),
23515
- viewCount = _useState10[0],
23516
- setViewCount = _useState10[1]; //虚拟表格每次渲染数量
24110
+ _useState0 = _slicedToArray(_useState9, 2),
24111
+ viewCount = _useState0[0],
24112
+ setViewCount = _useState0[1]; //虚拟表格每次渲染数量
23517
24113
  var itemWidth = 100; // 表格每一项宽度
23518
- var _useState11 = useState((props === null || props === void 0 ? void 0 : props.colHeaderWidth) || 400),
23519
- _useState12 = _slicedToArray(_useState11, 2),
23520
- realColHeaderWidth = _useState12[0],
23521
- setLeftWidth = _useState12[1];
24114
+ var _useState1 = useState((props === null || props === void 0 ? void 0 : props.colHeaderWidth) || 400),
24115
+ _useState10 = _slicedToArray(_useState1, 2),
24116
+ realColHeaderWidth = _useState10[0],
24117
+ setLeftWidth = _useState10[1];
23522
24118
  var viewPort = useRef(null);
23523
24119
  var topScrollBar = useRef(null);
23524
24120
  var leftTableRef = useRef(null);
23525
24121
  //起始渲染item
23526
- var _useState13 = useState(0),
23527
- _useState14 = _slicedToArray(_useState13, 2),
23528
- startIndex = _useState14[0],
23529
- setStartIndex = _useState14[1];
24122
+ var _useState11 = useState(0),
24123
+ _useState12 = _slicedToArray(_useState11, 2),
24124
+ startIndex = _useState12[0],
24125
+ setStartIndex = _useState12[1];
23530
24126
  //结束渲染item
23531
24127
  var endIndex = useMemo(function () {
23532
24128
  return startIndex + viewCount;
23533
24129
  }, [startIndex, viewCount]);
23534
24130
  //表格偏移量
23535
- var _useState15 = useState(0),
23536
- _useState16 = _slicedToArray(_useState15, 2),
23537
- offsetWidth = _useState16[0],
23538
- setOffset = _useState16[1];
24131
+ var _useState13 = useState(0),
24132
+ _useState14 = _slicedToArray(_useState13, 2),
24133
+ offsetWidth = _useState14[0],
24134
+ setOffset = _useState14[1];
23539
24135
  useEffect(function () {
23540
24136
  setTimeout(function () {
23541
24137
  var realLeftTableWidth = leftTableRef.current.clientWidth;
@@ -30839,11 +31435,11 @@ var valueType = {
30839
31435
  };
30840
31436
 
30841
31437
  var getDynamicDict = /*#__PURE__*/function () {
30842
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
30843
- return _regeneratorRuntime().wrap(function _callee$(_context) {
30844
- while (1) switch (_context.prev = _context.next) {
31438
+ var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(dictionaryCode) {
31439
+ return _regenerator().w(function (_context) {
31440
+ while (1) switch (_context.n) {
30845
31441
  case 0:
30846
- _context.next = 2;
31442
+ _context.n = 1;
30847
31443
  return request$2({
30848
31444
  url: "/basic/dictDynamicItem/getDynamicData/".concat(dictionaryCode),
30849
31445
  converter: function converter(_ref2) {
@@ -30856,11 +31452,8 @@ var getDynamicDict = /*#__PURE__*/function () {
30856
31452
  });
30857
31453
  }
30858
31454
  });
30859
- case 2:
30860
- return _context.abrupt("return", _context.sent);
30861
- case 3:
30862
- case "end":
30863
- return _context.stop();
31455
+ case 1:
31456
+ return _context.a(2, _context.v);
30864
31457
  }
30865
31458
  }, _callee);
30866
31459
  }));
@@ -30907,12 +31500,12 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
30907
31500
  value: false
30908
31501
  }];
30909
31502
  var ref = useRef();
30910
- useMount(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
30911
- var _ref$current, source;
30912
- return _regeneratorRuntime().wrap(function _callee$(_context) {
30913
- while (1) switch (_context.prev = _context.next) {
31503
+ useMount(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
31504
+ var _ref$current, source, _t, _t2;
31505
+ return _regenerator().w(function (_context) {
31506
+ while (1) switch (_context.n) {
30914
31507
  case 0:
30915
- _context.next = 2;
31508
+ _context.n = 1;
30916
31509
  return setIsShowAndType(function (prev) {
30917
31510
  if (record.inputType === 20 || record.inputType === 30) {
30918
31511
  return {
@@ -30923,40 +31516,39 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
30923
31516
  }
30924
31517
  return prev;
30925
31518
  });
30926
- case 2:
31519
+ case 1:
30927
31520
  if (!record.dictionaryCode) {
30928
- _context.next = 17;
31521
+ _context.n = 7;
30929
31522
  break;
30930
31523
  }
30931
31524
  if (!(record.choiceType == 20)) {
30932
- _context.next = 7;
31525
+ _context.n = 2;
30933
31526
  break;
30934
31527
  }
30935
- _context.t0 = getDictionarySource(record.dictionaryCode);
30936
- _context.next = 15;
31528
+ _t = getDictionarySource(record.dictionaryCode);
31529
+ _context.n = 6;
30937
31530
  break;
30938
- case 7:
31531
+ case 2:
30939
31532
  if (!(record.choiceType == 30)) {
30940
- _context.next = 13;
31533
+ _context.n = 4;
30941
31534
  break;
30942
31535
  }
30943
- _context.next = 10;
31536
+ _context.n = 3;
30944
31537
  return getDynamicDict(record.dictionaryCode);
30945
- case 10:
30946
- _context.t1 = _context.sent;
30947
- _context.next = 14;
31538
+ case 3:
31539
+ _t2 = _context.v;
31540
+ _context.n = 5;
30948
31541
  break;
30949
- case 13:
30950
- _context.t1 = [];
30951
- case 14:
30952
- _context.t0 = _context.t1;
30953
- case 15:
30954
- source = _context.t0;
31542
+ case 4:
31543
+ _t2 = [];
31544
+ case 5:
31545
+ _t = _t2;
31546
+ case 6:
31547
+ source = _t;
30955
31548
  // @ts-ignore
30956
31549
  ref === null || ref === void 0 ? void 0 : (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.setFieldSource('defaultValue', source);
30957
- case 17:
30958
- case "end":
30959
- return _context.stop();
31550
+ case 7:
31551
+ return _context.a(2);
30960
31552
  }
30961
31553
  }, _callee);
30962
31554
  })));
@@ -31021,10 +31613,10 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
31021
31613
  source: {
31022
31614
  relates: ['dictionaryCode', 'dictionaryCode_dynamic', 'choiceType'],
31023
31615
  type: function () {
31024
- var _type = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
31616
+ var _type = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(_ref3) {
31025
31617
  var form, values, name, relates, source;
31026
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
31027
- while (1) switch (_context2.prev = _context2.next) {
31618
+ return _regenerator().w(function (_context2) {
31619
+ while (1) switch (_context2.n) {
31028
31620
  case 0:
31029
31621
  form = _ref3.form, values = _ref3.values, name = _ref3.name, relates = _ref3.relates;
31030
31622
  if (values[0]) {
@@ -31033,19 +31625,18 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
31033
31625
  form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], getDictionarySource(values[0]));
31034
31626
  }
31035
31627
  if (!values[1]) {
31036
- _context2.next = 9;
31628
+ _context2.n = 2;
31037
31629
  break;
31038
31630
  }
31039
- _context2.next = 5;
31631
+ _context2.n = 1;
31040
31632
  return getDynamicDict(record.dictionaryCode || values[1]);
31041
- case 5:
31042
- source = _context2.sent;
31633
+ case 1:
31634
+ source = _context2.v;
31043
31635
  form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
31044
31636
  form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
31045
31637
  form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], source);
31046
- case 9:
31047
- case "end":
31048
- return _context2.stop();
31638
+ case 2:
31639
+ return _context2.a(2);
31049
31640
  }
31050
31641
  }, _callee2);
31051
31642
  }));
@@ -31501,25 +32092,25 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
31501
32092
  source: {
31502
32093
  relates: ['choiceType', 'inputType'],
31503
32094
  type: function () {
31504
- var _type2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
32095
+ var _type2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(_ref0) {
31505
32096
  var values, name, form, source;
31506
- return _regeneratorRuntime().wrap(function _callee3$(_context3) {
31507
- while (1) switch (_context3.prev = _context3.next) {
32097
+ return _regenerator().w(function (_context3) {
32098
+ while (1) switch (_context3.n) {
31508
32099
  case 0:
31509
- values = _ref10.values, name = _ref10.name, form = _ref10.form;
32100
+ values = _ref0.values, name = _ref0.name, form = _ref0.form;
31510
32101
  if (values[1] === 40) {
31511
32102
  form === null || form === void 0 ? void 0 : form.setFieldValue(name, null);
31512
32103
  form.setFieldVisible(name, false);
31513
32104
  }
31514
32105
  if (!(values[0] === 30)) {
31515
- _context3.next = 10;
32106
+ _context3.n = 2;
31516
32107
  break;
31517
32108
  }
31518
- _context3.next = 5;
32109
+ _context3.n = 1;
31519
32110
  return request$2({
31520
32111
  url: '/basic/dictDynamicItem/queryList',
31521
- converter: function converter(_ref11) {
31522
- var data = _ref11.data;
32112
+ converter: function converter(_ref1) {
32113
+ var data = _ref1.data;
31523
32114
  return data === null || data === void 0 ? void 0 : data.map(function (d) {
31524
32115
  return {
31525
32116
  text: d.dictCode,
@@ -31528,17 +32119,16 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
31528
32119
  });
31529
32120
  }
31530
32121
  });
31531
- case 5:
31532
- source = _context3.sent;
32122
+ case 1:
32123
+ source = _context3.v;
31533
32124
  form === null || form === void 0 ? void 0 : form.setFieldSource(name, source);
31534
32125
  form.setFieldVisible(name, true);
31535
- _context3.next = 11;
32126
+ _context3.n = 3;
31536
32127
  break;
31537
- case 10:
32128
+ case 2:
31538
32129
  form.setFieldVisible(name, false);
31539
- case 11:
31540
- case "end":
31541
- return _context3.stop();
32130
+ case 3:
32131
+ return _context3.a(2);
31542
32132
  }
31543
32133
  }, _callee3);
31544
32134
  }));
@@ -31553,8 +32143,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
31553
32143
  name: 'enumeration',
31554
32144
  label: '维护自定义选项',
31555
32145
  field: {
31556
- type: function type(_ref12) {
31557
- var form = _ref12.form;
32146
+ type: function type(_ref10) {
32147
+ var form = _ref10.form;
31558
32148
  return /*#__PURE__*/React$1.createElement(Button, {
31559
32149
  type: 'link',
31560
32150
  onClick: function onClick() {
@@ -31580,10 +32170,10 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
31580
32170
  dependency: {
31581
32171
  source: {
31582
32172
  relates: ['choiceType'],
31583
- type: function type(_ref13) {
31584
- var values = _ref13.values,
31585
- name = _ref13.name,
31586
- form = _ref13.form;
32173
+ type: function type(_ref11) {
32174
+ var values = _ref11.values,
32175
+ name = _ref11.name,
32176
+ form = _ref11.form;
31587
32177
  if (values[0] === 10) {
31588
32178
  form.setFieldVisible(name, true);
31589
32179
  } else {
@@ -31599,10 +32189,10 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
31599
32189
  dependency: {
31600
32190
  visible: {
31601
32191
  relates: ['choiceType'],
31602
- type: function type(_ref14) {
31603
- var name = _ref14.name,
31604
- values = _ref14.values,
31605
- form = _ref14.form;
32192
+ type: function type(_ref12) {
32193
+ var name = _ref12.name,
32194
+ values = _ref12.values,
32195
+ form = _ref12.form;
31606
32196
  if (values[0] == 330) {
31607
32197
  form.setFieldVisible(name, true);
31608
32198
  } else {
@@ -31626,8 +32216,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
31626
32216
  params: {
31627
32217
  'qp-businessType-eq': record.businessType
31628
32218
  },
31629
- converter: function converter(_ref15) {
31630
- var data = _ref15.data;
32219
+ converter: function converter(_ref13) {
32220
+ var data = _ref13.data;
31631
32221
  return (data === null || data === void 0 ? void 0 : data.map(function (d) {
31632
32222
  return {
31633
32223
  text: d.name,
@@ -31667,8 +32257,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
31667
32257
  'qp-businessType-eq': record.businessType,
31668
32258
  'qp-status-eq': 1
31669
32259
  },
31670
- converter: function converter(_ref16) {
31671
- var data = _ref16.data;
32260
+ converter: function converter(_ref14) {
32261
+ var data = _ref14.data;
31672
32262
  return (data === null || data === void 0 ? void 0 : data.map(function (d) {
31673
32263
  var _d$code;
31674
32264
  return {
@@ -31696,8 +32286,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
31696
32286
  remoteSource: {
31697
32287
  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),
31698
32288
  method: 'get',
31699
- converter: function converter(_ref17) {
31700
- var data = _ref17.data;
32289
+ converter: function converter(_ref15) {
32290
+ var data = _ref15.data;
31701
32291
  if (lineDetail.moduleType == 1) {
31702
32292
  return (data === null || data === void 0 ? void 0 : data.map(function (d) {
31703
32293
  return {
@@ -31723,16 +32313,16 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
31723
32313
  width: 900,
31724
32314
  maskClosable: false,
31725
32315
  onOk: function () {
31726
- var _onOk = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
32316
+ var _onOk = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4() {
31727
32317
  var _ref$current4, _res$editableStatus;
31728
32318
  var res, _res$defaultValue;
31729
- return _regeneratorRuntime().wrap(function _callee4$(_context4) {
31730
- while (1) switch (_context4.prev = _context4.next) {
32319
+ return _regenerator().w(function (_context4) {
32320
+ while (1) switch (_context4.n) {
31731
32321
  case 0:
31732
- _context4.next = 2;
32322
+ _context4.n = 1;
31733
32323
  return ref === null || ref === void 0 ? void 0 : (_ref$current4 = ref.current) === null || _ref$current4 === void 0 ? void 0 : _ref$current4.validateFields();
31734
- case 2:
31735
- res = _context4.sent;
32324
+ case 1:
32325
+ res = _context4.v;
31736
32326
  res.editableStatus = (_res$editableStatus = res.editableStatus) === null || _res$editableStatus === void 0 ? void 0 : _res$editableStatus.join(',');
31737
32327
  res.fieldGroup = record.fieldGroup;
31738
32328
  res.businessType = record.businessType;
@@ -31759,7 +32349,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
31759
32349
  delete res.formula;
31760
32350
  delete res.showValue;
31761
32351
  if (!(mode === 'create')) {
31762
- _context4.next = 18;
32352
+ _context4.n = 2;
31763
32353
  break;
31764
32354
  }
31765
32355
  request$2({
@@ -31771,8 +32361,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
31771
32361
  onParentOk();
31772
32362
  }
31773
32363
  });
31774
- return _context4.abrupt("return");
31775
- case 18:
32364
+ return _context4.a(2);
32365
+ case 2:
31776
32366
  request$2({
31777
32367
  url: "/basic/flow/businessField/".concat(record.id),
31778
32368
  method: 'PATCH',
@@ -31782,9 +32372,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
31782
32372
  onParentOk();
31783
32373
  }
31784
32374
  });
31785
- case 19:
31786
- case "end":
31787
- return _context4.stop();
32375
+ case 3:
32376
+ return _context4.a(2);
31788
32377
  }
31789
32378
  }, _callee4);
31790
32379
  }));
@@ -32240,21 +32829,21 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
32240
32829
  jsonEditorVal = _useState8[0],
32241
32830
  setJsonEditorVal = _useState8[1];
32242
32831
  var _useState9 = useState({}),
32243
- _useState10 = _slicedToArray(_useState9, 2),
32244
- moduleParams = _useState10[0],
32245
- setModuleParams = _useState10[1];
32246
- var _useState11 = useState('main'),
32832
+ _useState0 = _slicedToArray(_useState9, 2),
32833
+ moduleParams = _useState0[0],
32834
+ setModuleParams = _useState0[1];
32835
+ var _useState1 = useState('main'),
32836
+ _useState10 = _slicedToArray(_useState1, 2),
32837
+ activeKey = _useState10[0],
32838
+ setActiveKey = _useState10[1]; //默认详情页配置
32839
+ var _useState11 = useState({}),
32247
32840
  _useState12 = _slicedToArray(_useState11, 2),
32248
- activeKey = _useState12[0],
32249
- setActiveKey = _useState12[1]; //默认详情页配置
32250
- var _useState13 = useState({}),
32841
+ tablesConfigParams = _useState12[0],
32842
+ setTablesConfigParams = _useState12[1];
32843
+ var _useState13 = useState([]),
32251
32844
  _useState14 = _slicedToArray(_useState13, 2),
32252
- tablesConfigParams = _useState14[0],
32253
- setTablesConfigParams = _useState14[1];
32254
- var _useState15 = useState([]),
32255
- _useState16 = _slicedToArray(_useState15, 2),
32256
- tableJsonEditorValsArr = _useState16[0],
32257
- setTableJsonEditorValsArr = _useState16[1];
32845
+ tableJsonEditorValsArr = _useState14[0],
32846
+ setTableJsonEditorValsArr = _useState14[1];
32258
32847
  useEffect(function () {
32259
32848
  Promise.all([requestUtil.get("/basic/flow/businessFieldGroup/one?moduleType=2&layoutPoint=".concat(pageType))]).then(function (_ref2) {
32260
32849
  var _ref3 = _slicedToArray(_ref2, 1),
@@ -32285,7 +32874,7 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
32285
32874
  });
32286
32875
  Promise.all(axiosArr).then(function (_ref5) {
32287
32876
  var _ref6 = _toArray(_ref5),
32288
- resArr = _ref6.slice(0);
32877
+ resArr = _arrayLikeToArray(_ref6).slice(0);
32289
32878
  var configParams = {};
32290
32879
  detailTablesSetting.map(function (item, index) {
32291
32880
  var _resArr$index;
@@ -32630,11 +33219,11 @@ function getMetaData(_x) {
32630
33219
 
32631
33220
  // 获取数据
32632
33221
  function _getMetaData() {
32633
- _getMetaData = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(id) {
32634
- return _regeneratorRuntime().wrap(function _callee$(_context) {
32635
- while (1) switch (_context.prev = _context.next) {
33222
+ _getMetaData = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(id) {
33223
+ return _regenerator().w(function (_context) {
33224
+ while (1) switch (_context.n) {
32636
33225
  case 0:
32637
- return _context.abrupt("return", new Promise(function (resolve, reject) {
33226
+ return _context.a(2, new Promise(function (resolve, reject) {
32638
33227
  request$3('/basic/entityProperty/listNoPage', {
32639
33228
  params: {
32640
33229
  'qp-entityId-eq': id
@@ -32646,9 +33235,6 @@ function _getMetaData() {
32646
33235
  reject([]);
32647
33236
  });
32648
33237
  }));
32649
- case 1:
32650
- case "end":
32651
- return _context.stop();
32652
33238
  }
32653
33239
  }, _callee);
32654
33240
  }));
@@ -32852,11 +33438,11 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
32852
33438
  tableState = _useState4[0],
32853
33439
  setTableState = _useState4[1];
32854
33440
  var handleOpen = /*#__PURE__*/function () {
32855
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
33441
+ var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
32856
33442
  var _props$customSelector, _props$customSelector2, _props$ctx4, _props$value, _props$value$map, _props$ctx5, _props$ctx5$form, _props$selectProps;
32857
33443
  var requestConfigNew, metaDataId, metaData, realMetaData, columns, fields, initValue, _queryTableRef$curren, _queryTableRef$curren2, _queryTableRef$curren3;
32858
- return _regeneratorRuntime().wrap(function _callee$(_context) {
32859
- while (1) switch (_context.prev = _context.next) {
33444
+ return _regenerator().w(function (_context) {
33445
+ while (1) switch (_context.n) {
32860
33446
  case 0:
32861
33447
  requestConfigNew = assembleRequest(props.customSelectorConfig, {
32862
33448
  isSearchForm: props.isSearchForm,
@@ -32864,16 +33450,16 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
32864
33450
  searchFormData: searchFormData
32865
33451
  });
32866
33452
  if (requestConfigNew) {
32867
- _context.next = 3;
33453
+ _context.n = 1;
32868
33454
  break;
32869
33455
  }
32870
- return _context.abrupt("return");
32871
- case 3:
33456
+ return _context.a(2);
33457
+ case 1:
32872
33458
  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;
32873
- _context.next = 6;
33459
+ _context.n = 2;
32874
33460
  return getMetaData(metaDataId);
32875
- case 6:
32876
- metaData = _context.sent;
33461
+ case 2:
33462
+ metaData = _context.v;
32877
33463
  realMetaData = (metaData === null || metaData === void 0 ? void 0 : metaData.filter(function (item) {
32878
33464
  return (item === null || item === void 0 ? void 0 : item.inputType) != 1;
32879
33465
  })) || [];
@@ -32913,9 +33499,8 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
32913
33499
  // @ts-ignore
32914
33500
  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);
32915
33501
  }
32916
- case 14:
32917
- case "end":
32918
- return _context.stop();
33502
+ case 3:
33503
+ return _context.a(2);
32919
33504
  }
32920
33505
  }, _callee);
32921
33506
  }));
@@ -33018,7 +33603,7 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
33018
33603
  }, [requestConfig, tableState.columns]);
33019
33604
  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';
33020
33605
  var handleOk = function handleOk(rowData) {
33021
- var _props$selectProps2, _props$customSelector6, _props$customSelector7, _queryTableRef$curren13, _queryTableRef$curren14, _queryTableRef$curren15;
33606
+ var _props$selectProps2, _props$customSelector6, _props$customSelector7, _queryTableRef$curren11, _queryTableRef$curren12, _queryTableRef$curren13;
33022
33607
  var setSource = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
33023
33608
  //多选数据处理
33024
33609
  if (props === null || props === void 0 ? void 0 : (_props$selectProps2 = props.selectProps) === null || _props$selectProps2 === void 0 ? void 0 : _props$selectProps2.multipleForQuery) {
@@ -33029,9 +33614,9 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
33029
33614
  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()) || [];
33030
33615
  var realSelectedRows = selectedRows;
33031
33616
  if (!rowData && (selectedKesys === null || selectedKesys === void 0 ? void 0 : selectedKesys.length) !== (selectedRows === null || selectedRows === void 0 ? void 0 : selectedRows.length)) {
33032
- var _queryTableRef$curren10, _queryTableRef$curren11, _queryTableRef$curren12;
33617
+ var _queryTableRef$curren0, _queryTableRef$curren1, _queryTableRef$curren10;
33033
33618
  // @ts-ignore
33034
- 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()) || [];
33619
+ 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()) || [];
33035
33620
  realSelectedRows = dataSource === null || dataSource === void 0 ? void 0 : dataSource.filter(function (s) {
33036
33621
  return selectedKesys.includes(s[rowKey]);
33037
33622
  });
@@ -33064,10 +33649,10 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
33064
33649
  });
33065
33650
  }
33066
33651
  mappings.map(function (item) {
33067
- var _props$customSelector10, _props$customSelector11, _props$customSelector12, _props$customSelector13;
33068
- 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]) {
33069
- var _props$customSelector14, _props$customSelector15;
33070
- 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];
33652
+ var _props$customSelector0, _props$customSelector1, _props$customSelector10, _props$customSelector11;
33653
+ 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]) {
33654
+ var _props$customSelector12, _props$customSelector13;
33655
+ 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];
33071
33656
  }
33072
33657
  values[item.codeMappingTo] = rowData[item.codeMappingFrom];
33073
33658
  });
@@ -33122,10 +33707,10 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
33122
33707
  }
33123
33708
  props.onCancel();
33124
33709
  //@ts-ignore
33125
- 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();
33710
+ 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();
33126
33711
  };
33127
33712
  var config = useMemo(function () {
33128
- var _props$selectProps3, _props$ctx9, _props$value2, _props$ctx10, _props$ctx10$form;
33713
+ var _props$selectProps3, _props$ctx9, _props$value2, _props$ctx0, _props$ctx0$form;
33129
33714
  var returnConfig = {
33130
33715
  size: 'small',
33131
33716
  needPageHeader: false,
@@ -33134,7 +33719,7 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
33134
33719
  rowSelection: (props === null || props === void 0 ? void 0 : (_props$selectProps3 = props.selectProps) === null || _props$selectProps3 === void 0 ? void 0 : _props$selectProps3.multipleForQuery) && !isView ? {
33135
33720
  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) {
33136
33721
  return v.key || v;
33137
- })) || (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))
33722
+ })) || (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))
33138
33723
  } : false,
33139
33724
  remoteDataSource: remoteDataSource,
33140
33725
  fields: tableState.fields,
@@ -33142,8 +33727,8 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
33142
33727
  rowKey: rowKey,
33143
33728
  tableProps: !isView && {
33144
33729
  rowClassName: function rowClassName(record) {
33145
- var _props$ctx11, _props$value3, _props$ctx12, _props$ctx12$form;
33146
- 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' : '';
33730
+ var _props$ctx1, _props$value3, _props$ctx10, _props$ctx10$form;
33731
+ 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' : '';
33147
33732
  },
33148
33733
  onRow: function onRow(record) {
33149
33734
  return {
@@ -33188,10 +33773,10 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
33188
33773
  }, "\u63D0\u4EA4"), /*#__PURE__*/React$1.createElement(Button, {
33189
33774
  type: "default",
33190
33775
  onClick: function onClick() {
33191
- var _queryTableRef$curren16, _queryTableRef$curren17, _queryTableRef$curren18;
33776
+ var _queryTableRef$curren14, _queryTableRef$curren15, _queryTableRef$curren16;
33192
33777
  props.onCancel();
33193
33778
  //@ts-ignore
33194
- 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();
33779
+ 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();
33195
33780
  }
33196
33781
  }, "\u53D6\u6D88"))));
33197
33782
  });
@@ -33415,19 +34000,19 @@ var BsCascader = function BsCascader(_ref) {
33415
34000
  _useState2 = _slicedToArray(_useState, 2),
33416
34001
  handSource = _useState2[0],
33417
34002
  setHandSource = _useState2[1];
33418
- useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
34003
+ useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
33419
34004
  var resData, data;
33420
- return _regeneratorRuntime().wrap(function _callee$(_context) {
33421
- while (1) switch (_context.prev = _context.next) {
34005
+ return _regenerator().w(function (_context) {
34006
+ while (1) switch (_context.n) {
33422
34007
  case 0:
33423
34008
  if (!(!source && initRequestSource)) {
33424
- _context.next = 6;
34009
+ _context.n = 2;
33425
34010
  break;
33426
34011
  }
33427
- _context.next = 3;
34012
+ _context.n = 1;
33428
34013
  return initRequestSource();
33429
- case 3:
33430
- resData = _context.sent;
34014
+ case 1:
34015
+ resData = _context.v;
33431
34016
  data = (resData === null || resData === void 0 ? void 0 : resData.map(function (item) {
33432
34017
  return _objectSpread2(_objectSpread2({}, item), {}, {
33433
34018
  label: item.text,
@@ -33435,9 +34020,8 @@ var BsCascader = function BsCascader(_ref) {
33435
34020
  });
33436
34021
  })) || [];
33437
34022
  setHandSource(data);
33438
- case 6:
33439
- case "end":
33440
- return _context.stop();
34023
+ case 2:
34024
+ return _context.a(2);
33441
34025
  }
33442
34026
  }, _callee);
33443
34027
  })), []);
@@ -33567,20 +34151,17 @@ function getRegularThresholdRange(_x) {
33567
34151
  return _getRegularThresholdRange.apply(this, arguments);
33568
34152
  }
33569
34153
  function _getRegularThresholdRange() {
33570
- _getRegularThresholdRange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
33571
- return _regeneratorRuntime().wrap(function _callee$(_context) {
33572
- while (1) switch (_context.prev = _context.next) {
34154
+ _getRegularThresholdRange = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(params) {
34155
+ return _regenerator().w(function (_context) {
34156
+ while (1) switch (_context.n) {
33573
34157
  case 0:
33574
- return _context.abrupt("return", requestUtil({
34158
+ return _context.a(2, requestUtil({
33575
34159
  url: "/basic/regularThresholdRange/getVals/".concat(params.queryIdentify),
33576
34160
  method: 'POST',
33577
34161
  data: _objectSpread2(_objectSpread2({}, params), {}, {
33578
34162
  queryIdentify: undefined
33579
34163
  })
33580
34164
  }));
33581
- case 1:
33582
- case "end":
33583
- return _context.stop();
33584
34165
  }
33585
34166
  }, _callee);
33586
34167
  }));
@@ -33721,24 +34302,24 @@ var RuleField = /*#__PURE__*/function (_Component) {
33721
34302
  };
33722
34303
  //规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
33723
34304
  _this.getRegularThresholdRange = /*#__PURE__*/function () {
33724
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
34305
+ var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
33725
34306
  var thresholdQuery, extraRequestUrl, querParams, needQueryList, res;
33726
- return _regeneratorRuntime().wrap(function _callee$(_context) {
33727
- while (1) switch (_context.prev = _context.next) {
34307
+ return _regenerator().w(function (_context) {
34308
+ while (1) switch (_context.n) {
33728
34309
  case 0:
33729
34310
  if (queryIdentify) {
33730
- _context.next = 2;
34311
+ _context.n = 1;
33731
34312
  break;
33732
34313
  }
33733
- return _context.abrupt("return");
33734
- case 2:
34314
+ return _context.a(2);
34315
+ case 1:
33735
34316
  thresholdQuery = _this.state.thresholdQuery;
33736
34317
  extraRequestUrl = '';
33737
34318
  querParams = setParams(propertyCode, thresholdQuery);
33738
34319
  if (!queryIdentityInfo.find(function (item) {
33739
34320
  return item.identity == propertyCode;
33740
34321
  })) {
33741
- _context.next = 10;
34322
+ _context.n = 3;
33742
34323
  break;
33743
34324
  }
33744
34325
  //判断查询属性枚举时有没有必传参数,如果必传参数没有值则不调用查询接口
@@ -33752,15 +34333,15 @@ var RuleField = /*#__PURE__*/function (_Component) {
33752
34333
  if (!needQueryList.some(function (item) {
33753
34334
  return !querParams[item] || !querParams[item].length;
33754
34335
  })) {
33755
- _context.next = 9;
34336
+ _context.n = 2;
33756
34337
  break;
33757
34338
  }
33758
- return _context.abrupt("return");
33759
- case 9:
34339
+ return _context.a(2);
34340
+ case 2:
33760
34341
  extraRequestUrl = queryIdentityInfo.find(function (item) {
33761
34342
  return item.identity == propertyCode;
33762
34343
  }).requestUrl || '';
33763
- case 10:
34344
+ case 3:
33764
34345
  if (queryIdentifyType === 'dictCodeIdentify') {
33765
34346
  extraRequestUrl = "bscDictItem/selectDictItemsByDictCode"; // 字典接口
33766
34347
  querParams = {
@@ -33771,7 +34352,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
33771
34352
  // querParams = { dictCode: queryIdentify }
33772
34353
  }
33773
34354
  if (!extraRequestUrl) {
33774
- _context.next = 16;
34355
+ _context.n = 4;
33775
34356
  break;
33776
34357
  }
33777
34358
  if (queryIdentify == 'maintain_area_code') {
@@ -33810,43 +34391,42 @@ var RuleField = /*#__PURE__*/function (_Component) {
33810
34391
  return handleData;
33811
34392
  }
33812
34393
  });
33813
- _context.next = 29;
34394
+ _context.n = 8;
33814
34395
  break;
33815
- case 16:
34396
+ case 4:
33816
34397
  if (!(queryIdentifyType == 'objectPropertyListIdentify')) {
33817
- _context.next = 20;
34398
+ _context.n = 5;
33818
34399
  break;
33819
34400
  }
33820
34401
  _this.setState({
33821
34402
  thresholdList: queryIdentify
33822
34403
  });
33823
- _context.next = 29;
34404
+ _context.n = 8;
33824
34405
  break;
33825
- case 20:
34406
+ case 5:
33826
34407
  if (!(queryIdentifyType == 'objectPropertyCodeIdentify')) {
33827
- _context.next = 24;
34408
+ _context.n = 6;
33828
34409
  break;
33829
34410
  }
33830
34411
  // TODO待处理
33831
34412
  _this.setState({
33832
34413
  thresholdList: []
33833
34414
  });
33834
- _context.next = 29;
34415
+ _context.n = 8;
33835
34416
  break;
33836
- case 24:
34417
+ case 6:
33837
34418
  querParams.queryIdentify = queryIdentify;
33838
- _context.next = 27;
34419
+ _context.n = 7;
33839
34420
  return getRegularThresholdRange(querParams);
33840
- case 27:
33841
- res = _context.sent;
34421
+ case 7:
34422
+ res = _context.v;
33842
34423
  if (handleError(res)) {
33843
34424
  _this.setState({
33844
34425
  thresholdList: (res === null || res === void 0 ? void 0 : res.data) || []
33845
34426
  });
33846
34427
  }
33847
- case 29:
33848
- case "end":
33849
- return _context.stop();
34428
+ case 8:
34429
+ return _context.a(2);
33850
34430
  }
33851
34431
  }, _callee);
33852
34432
  }));
@@ -34678,11 +35258,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
34678
35258
  isAll: true,
34679
35259
  needNameAndCode: true,
34680
35260
  notChangeOnSelect: true,
34681
- initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
34682
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
34683
- while (1) switch (_context2.prev = _context2.next) {
35261
+ initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
35262
+ return _regenerator().w(function (_context2) {
35263
+ while (1) switch (_context2.n) {
34684
35264
  case 0:
34685
- _context2.next = 2;
35265
+ _context2.n = 1;
34686
35266
  return request$2({
34687
35267
  url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
34688
35268
  method: 'get',
@@ -34699,11 +35279,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
34699
35279
  return handleData;
34700
35280
  }
34701
35281
  });
34702
- case 2:
34703
- return _context2.abrupt("return", _context2.sent);
34704
- case 3:
34705
- case "end":
34706
- return _context2.stop();
35282
+ case 1:
35283
+ return _context2.a(2, _context2.v);
34707
35284
  }
34708
35285
  }, _callee2);
34709
35286
  })),
@@ -34727,11 +35304,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
34727
35304
  isAll: true,
34728
35305
  needNameAndCode: true,
34729
35306
  notChangeOnSelect: true,
34730
- initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
34731
- return _regeneratorRuntime().wrap(function _callee3$(_context3) {
34732
- while (1) switch (_context3.prev = _context3.next) {
35307
+ initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3() {
35308
+ return _regenerator().w(function (_context3) {
35309
+ while (1) switch (_context3.n) {
34733
35310
  case 0:
34734
- _context3.next = 2;
35311
+ _context3.n = 1;
34735
35312
  return request$2({
34736
35313
  url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
34737
35314
  method: 'get',
@@ -34748,11 +35325,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
34748
35325
  return handleData;
34749
35326
  }
34750
35327
  });
34751
- case 2:
34752
- return _context3.abrupt("return", _context3.sent);
34753
- case 3:
34754
- case "end":
34755
- return _context3.stop();
35328
+ case 1:
35329
+ return _context3.a(2, _context3.v);
34756
35330
  }
34757
35331
  }, _callee3);
34758
35332
  })),
@@ -34778,11 +35352,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
34778
35352
  isAll: true,
34779
35353
  needNameAndCode: true,
34780
35354
  notChangeOnSelect: true,
34781
- initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
34782
- return _regeneratorRuntime().wrap(function _callee4$(_context4) {
34783
- while (1) switch (_context4.prev = _context4.next) {
35355
+ initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4() {
35356
+ return _regenerator().w(function (_context4) {
35357
+ while (1) switch (_context4.n) {
34784
35358
  case 0:
34785
- _context4.next = 2;
35359
+ _context4.n = 1;
34786
35360
  return request$2({
34787
35361
  url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
34788
35362
  method: 'get',
@@ -34799,11 +35373,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
34799
35373
  return handleData;
34800
35374
  }
34801
35375
  });
34802
- case 2:
34803
- return _context4.abrupt("return", _context4.sent);
34804
- case 3:
34805
- case "end":
34806
- return _context4.stop();
35376
+ case 1:
35377
+ return _context4.a(2, _context4.v);
34807
35378
  }
34808
35379
  }, _callee4);
34809
35380
  })),
@@ -35490,8 +36061,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
35490
36061
  }
35491
36062
  }));
35492
36063
  } else {
35493
- var _values10;
35494
- var _currentValue9 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values10 = values) === null || _values10 === void 0 ? void 0 : _values10.map(function (s, vIndex) {
36064
+ var _values0;
36065
+ var _currentValue9 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values0 = values) === null || _values0 === void 0 ? void 0 : _values0.map(function (s, vIndex) {
35495
36066
  return {
35496
36067
  key: s,
35497
36068
  label: valueNames[vIndex],
@@ -35701,7 +36272,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
35701
36272
  }
35702
36273
  }
35703
36274
  // 配送方式选择器
35704
- if (dataChoiceBusinessType == 310) {
36275
+ if (dataChoiceBusinessType == 310 || dataChoiceBusinessType == 311) {
35705
36276
  if (INTERVAL_TYPE.indexOf(selectOperation) > -1) {
35706
36277
  return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
35707
36278
  selectBusinessType: "deliveryMode",
@@ -35715,9 +36286,14 @@ var RuleField = /*#__PURE__*/function (_Component) {
35715
36286
  disabled: disabled,
35716
36287
  labelInValue: true,
35717
36288
  value: values[0],
35718
- requestConfig: {
36289
+ requestConfig: _objectSpread2(_objectSpread2({}, dataChoiceBusinessType === 311 ? {
36290
+ otherParams: {
36291
+ // 配送方式只选择标准配送方式
36292
+ 'qp-recordChannnelCode-eq': 80
36293
+ }
36294
+ } : {}), {}, {
35719
36295
  filterInit: 'qp-code-in'
35720
- },
36296
+ }),
35721
36297
  onChange: function onChange(value) {
35722
36298
  if (dataInputBusinessType === 12) {
35723
36299
  values[0] = value.map(function (i) {
@@ -35747,9 +36323,14 @@ var RuleField = /*#__PURE__*/function (_Component) {
35747
36323
  disabled: disabled,
35748
36324
  labelInValue: true,
35749
36325
  value: values[1],
35750
- requestConfig: {
36326
+ requestConfig: _objectSpread2(_objectSpread2({}, dataChoiceBusinessType === 311 ? {
36327
+ otherParams: {
36328
+ // 配送方式只选择标准配送方式
36329
+ 'qp-recordChannnelCode-eq': 80
36330
+ }
36331
+ } : {}), {}, {
35751
36332
  filterInit: 'qp-code-in'
35752
- },
36333
+ }),
35753
36334
  onChange: function onChange(value) {
35754
36335
  if (dataInputBusinessType === 12) {
35755
36336
  values[1] = value.map(function (i) {
@@ -35769,8 +36350,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
35769
36350
  }
35770
36351
  }));
35771
36352
  } else {
35772
- var _values11;
35773
- var _currentValue10 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values11 = values) === null || _values11 === void 0 ? void 0 : _values11.map(function (s, vIndex) {
36353
+ var _values1;
36354
+ var _currentValue0 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values1 = values) === null || _values1 === void 0 ? void 0 : _values1.map(function (s, vIndex) {
35774
36355
  return {
35775
36356
  key: s,
35776
36357
  label: valueNames[vIndex],
@@ -35792,10 +36373,15 @@ var RuleField = /*#__PURE__*/function (_Component) {
35792
36373
  } : {}),
35793
36374
  disabled: disabled,
35794
36375
  labelInValue: true,
35795
- value: _currentValue10,
35796
- requestConfig: {
36376
+ value: _currentValue0,
36377
+ requestConfig: _objectSpread2(_objectSpread2({}, dataChoiceBusinessType === 311 ? {
36378
+ otherParams: {
36379
+ // 配送方式只选择标准配送方式
36380
+ 'qp-recordChannnelCode-eq': 80
36381
+ }
36382
+ } : {}), {}, {
35797
36383
  filterInit: 'qp-code-in'
35798
- },
36384
+ }),
35799
36385
  onChange: function onChange(value) {
35800
36386
  if (dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1) {
35801
36387
  values = value.map(function (i) {
@@ -35885,8 +36471,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
35885
36471
  }
35886
36472
  }));
35887
36473
  } else {
35888
- var _values12;
35889
- var _currentValue11 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values12 = values) === null || _values12 === void 0 ? void 0 : _values12.map(function (s, vIndex) {
36474
+ var _values10;
36475
+ var _currentValue1 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values10 = values) === null || _values10 === void 0 ? void 0 : _values10.map(function (s, vIndex) {
35890
36476
  return {
35891
36477
  key: s,
35892
36478
  label: valueNames[vIndex],
@@ -35908,7 +36494,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
35908
36494
  } : {}),
35909
36495
  disabled: disabled,
35910
36496
  labelInValue: true,
35911
- value: _currentValue11,
36497
+ value: _currentValue1,
35912
36498
  requestConfig: {
35913
36499
  filterInit: 'qp-code-in'
35914
36500
  },
@@ -36001,8 +36587,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
36001
36587
  }
36002
36588
  }));
36003
36589
  } else {
36004
- var _values13;
36005
- var _currentValue12 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values13 = values) === null || _values13 === void 0 ? void 0 : _values13.map(function (s, vIndex) {
36590
+ var _values11;
36591
+ var _currentValue10 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values11 = values) === null || _values11 === void 0 ? void 0 : _values11.map(function (s, vIndex) {
36006
36592
  return {
36007
36593
  key: s,
36008
36594
  label: valueNames[vIndex],
@@ -36024,7 +36610,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
36024
36610
  } : {}),
36025
36611
  disabled: disabled,
36026
36612
  labelInValue: true,
36027
- value: _currentValue12,
36613
+ value: _currentValue10,
36028
36614
  requestConfig: {
36029
36615
  filterInit: 'qp-brandCode-in'
36030
36616
  },
@@ -36215,8 +36801,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
36215
36801
  }
36216
36802
  }));
36217
36803
  } else {
36218
- var _values14;
36219
- var _currentValue13 = dataInputBusinessType === 12 ? ((_values14 = values) === null || _values14 === void 0 ? void 0 : _values14.map(function (s, vIndex) {
36804
+ var _values12;
36805
+ var _currentValue11 = dataInputBusinessType === 12 ? ((_values12 = values) === null || _values12 === void 0 ? void 0 : _values12.map(function (s, vIndex) {
36220
36806
  return {
36221
36807
  key: s,
36222
36808
  label: valueNames[vIndex]
@@ -36244,7 +36830,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
36244
36830
  isSearchForm: true,
36245
36831
  customSelectorConfig: (others === null || others === void 0 ? void 0 : others.customSelectorConfig) || {},
36246
36832
  disabled: disabled,
36247
- value: _currentValue13,
36833
+ value: _currentValue11,
36248
36834
  onChange: function onChange(value, sourceList) {
36249
36835
  if (dataInputBusinessType === 12) {
36250
36836
  var _value$map3, _sourceList$filter3;
@@ -36564,9 +37150,9 @@ var App$1 = function App(_ref) {
36564
37150
  UpdateState(res);
36565
37151
  };
36566
37152
  var _useState9 = useState(false),
36567
- _useState10 = _slicedToArray(_useState9, 2),
36568
- isModalVisible = _useState10[0],
36569
- setIsModalVisible = _useState10[1];
37153
+ _useState0 = _slicedToArray(_useState9, 2),
37154
+ isModalVisible = _useState0[0],
37155
+ setIsModalVisible = _useState0[1];
36570
37156
  var showModal = function showModal() {
36571
37157
  setIsModalVisible(true);
36572
37158
  };
@@ -37047,27 +37633,26 @@ function RenderCompItem(props) {
37047
37633
  dictData = _useState2[0],
37048
37634
  setDictData = _useState2[1];
37049
37635
  var getDictData = /*#__PURE__*/function () {
37050
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
37636
+ var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
37051
37637
  var _data$map;
37052
37638
  var data;
37053
- return _regeneratorRuntime().wrap(function _callee$(_context) {
37054
- while (1) switch (_context.prev = _context.next) {
37639
+ return _regenerator().w(function (_context) {
37640
+ while (1) switch (_context.n) {
37055
37641
  case 0:
37056
- _context.next = 2;
37642
+ _context.n = 1;
37057
37643
  return request$2({
37058
37644
  url: "/basic/bscDictItem/allItemList?qp-code-eq=".concat(ites.dictionaryCode)
37059
37645
  });
37060
- case 2:
37061
- data = _context.sent;
37646
+ case 1:
37647
+ data = _context.v;
37062
37648
  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) {
37063
37649
  return {
37064
37650
  text: item.dictItemName,
37065
37651
  value: item.dictItemCode
37066
37652
  };
37067
37653
  }));
37068
- case 4:
37069
- case "end":
37070
- return _context.stop();
37654
+ case 2:
37655
+ return _context.a(2);
37071
37656
  }
37072
37657
  }, _callee);
37073
37658
  }));
@@ -37308,11 +37893,11 @@ function RenderCompItem(props) {
37308
37893
  needNameAndCode: true,
37309
37894
  notChangeOnSelect: true,
37310
37895
  initRequestSource: function () {
37311
- var _initRequestSource = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
37312
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
37313
- while (1) switch (_context2.prev = _context2.next) {
37896
+ var _initRequestSource = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
37897
+ return _regenerator().w(function (_context2) {
37898
+ while (1) switch (_context2.n) {
37314
37899
  case 0:
37315
- _context2.next = 2;
37900
+ _context2.n = 1;
37316
37901
  return request$2({
37317
37902
  url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
37318
37903
  method: 'get',
@@ -37330,11 +37915,8 @@ function RenderCompItem(props) {
37330
37915
  return handleData;
37331
37916
  }
37332
37917
  });
37333
- case 2:
37334
- return _context2.abrupt("return", _context2.sent);
37335
- case 3:
37336
- case "end":
37337
- return _context2.stop();
37918
+ case 1:
37919
+ return _context2.a(2, _context2.v);
37338
37920
  }
37339
37921
  }, _callee2);
37340
37922
  }));
@@ -37499,7 +38081,7 @@ function RenderCompItem(props) {
37499
38081
  getPopupContainer: function getPopupContainer() {
37500
38082
  return document.body;
37501
38083
  }
37502
- })) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 310 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
38084
+ })) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && ((ites === null || ites === void 0 ? void 0 : ites.choiceType) === 310 || (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 311) && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
37503
38085
  selectBusinessType: "deliveryMode",
37504
38086
  selectProps: _objectSpread2({
37505
38087
  style: styleCommon,
@@ -37511,9 +38093,14 @@ function RenderCompItem(props) {
37511
38093
  disabled: disabled,
37512
38094
  labelInValue: true,
37513
38095
  value: showValue(ites.code),
37514
- requestConfig: {
38096
+ requestConfig: _objectSpread2(_objectSpread2({}, (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 311 ? {
38097
+ otherParams: {
38098
+ // 配送方式只选择标准配送方式
38099
+ 'qp-recordChannnelCode-eq': 80
38100
+ }
38101
+ } : {}), {}, {
37515
38102
  filterInit: 'qp-code-in'
37516
- },
38103
+ }),
37517
38104
  onChange: function onChange(value) {
37518
38105
  handleEdit(ites.code, value);
37519
38106
  },
@@ -38124,7 +38711,8 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
38124
38711
  display: 'flex',
38125
38712
  marginBottom: '0px',
38126
38713
  padding: '10px 0px'
38127
- }
38714
+ },
38715
+ key: itemDetail.elementId
38128
38716
  }, /*#__PURE__*/React$1.createElement("div", {
38129
38717
  className: 'logical_operate_content',
38130
38718
  style: {
@@ -39384,13 +39972,13 @@ var BaseRule = /*#__PURE__*/forwardRef(function (props, ref) {
39384
39972
  ruleTypeData = _useState8[0],
39385
39973
  setRuleTypeData = _useState8[1];
39386
39974
  var _useState9 = useState([]),
39387
- _useState10 = _slicedToArray(_useState9, 2),
39388
- ruleReturnConfig = _useState10[0],
39389
- setRuleReturnConfig = _useState10[1];
39390
- var _useState11 = useState({}),
39391
- _useState12 = _slicedToArray(_useState11, 2),
39392
- templateData = _useState12[0],
39393
- setTemplateData = _useState12[1];
39975
+ _useState0 = _slicedToArray(_useState9, 2),
39976
+ ruleReturnConfig = _useState0[0],
39977
+ setRuleReturnConfig = _useState0[1];
39978
+ var _useState1 = useState({}),
39979
+ _useState10 = _slicedToArray(_useState1, 2),
39980
+ templateData = _useState10[0],
39981
+ setTemplateData = _useState10[1];
39394
39982
  var loadRuleReturnConfig = function loadRuleReturnConfig(currentSceneId) {
39395
39983
  request$2({
39396
39984
  url: "/basic/ruleTemplate/".concat(currentSceneId),
@@ -39726,25 +40314,25 @@ var index$7 = /*#__PURE__*/forwardRef(function (props, ref) {
39726
40314
  regularDataList = _useState8[0],
39727
40315
  setRegularDataList = _useState8[1];
39728
40316
  var _useState9 = useState([]),
39729
- _useState10 = _slicedToArray(_useState9, 2),
39730
- baseRuleDetailList = _useState10[0],
39731
- setBaseRuleDetailList = _useState10[1]; // 规则实例详情集合
39732
- var _useState11 = useState([]),
40317
+ _useState0 = _slicedToArray(_useState9, 2),
40318
+ baseRuleDetailList = _useState0[0],
40319
+ setBaseRuleDetailList = _useState0[1]; // 规则实例详情集合
40320
+ var _useState1 = useState([]),
40321
+ _useState10 = _slicedToArray(_useState1, 2),
40322
+ systemVariableList = _useState10[0],
40323
+ setSystemVariableList = _useState10[1];
40324
+ var _useState11 = useState(false),
39733
40325
  _useState12 = _slicedToArray(_useState11, 2),
39734
- systemVariableList = _useState12[0],
39735
- setSystemVariableList = _useState12[1];
40326
+ isGetDefRuleDataRes = _useState12[0],
40327
+ setIsGetDefRuleDataRes = _useState12[1]; // 为了在回显的时候辨别异步查询是否已完成,防止提前认为为新增设置了模板数据,导致再渲染编辑时候 输入框defaultValue不再渲染问题
39736
40328
  var _useState13 = useState(false),
39737
40329
  _useState14 = _slicedToArray(_useState13, 2),
39738
- isGetDefRuleDataRes = _useState14[0],
39739
- setIsGetDefRuleDataRes = _useState14[1]; // 为了在回显的时候辨别异步查询是否已完成,防止提前认为为新增设置了模板数据,导致再渲染编辑时候 输入框defaultValue不再渲染问题
40330
+ isGetRuleDataRes = _useState14[0],
40331
+ setIsGetRuleDataRes = _useState14[1];
39740
40332
  var _useState15 = useState(false),
39741
40333
  _useState16 = _slicedToArray(_useState15, 2),
39742
- isGetRuleDataRes = _useState16[0],
39743
- setIsGetRuleDataRes = _useState16[1];
39744
- var _useState17 = useState(false),
39745
- _useState18 = _slicedToArray(_useState17, 2),
39746
- groupOtherPriorityList = _useState18[0],
39747
- setGroupOtherPriorityList = _useState18[1];
40334
+ groupOtherPriorityList = _useState16[0],
40335
+ setGroupOtherPriorityList = _useState16[1];
39748
40336
  var baseRuleRef = useRef();
39749
40337
  var currentSceneName = (datail === null || datail === void 0 ? void 0 : datail.name) || '';
39750
40338
  // 查询规则组下所有规则实例
@@ -40068,4 +40656,83 @@ var ParagraphCopier = function ParagraphCopier(props) {
40068
40656
  }, children));
40069
40657
  };
40070
40658
 
40071
- export { AddSelect, AddSkcSelect, AddSkuSelect, AddSpuSelect, AuthButton, BillEntry, BsCascader, index$5 as BsLayout, BsSulaQueryTable, BusinessSearchSelect$1 as BusinessSearchSelect, BusinessTreeSearchSelect$1 as BusinessTreeSearchSelect, index$1 as CheckOneUser, ColumnSettingTable, ColumnsEdit, CommodityEntry, CustomSelector, DataImport, DataValidation, index$3 as DetailPageWrapper, EllipsisTooltip, ExportIcon, index$8 as ExtendedCollapse, GuideWrapper, HandleTotalCount, index$4 as HomePageWrapper, JsonQueryTable, ModalUtils, index$6 as MoreTreeTable, ParagraphCopier, PropertySelector, QueryMutipleInput, QueryMutipleSearchSelect, RuleObjectComponent as RuleComponent, index$7 as RuleSetter, SearchSelect, Section, index$2 as StateFlow, ColumnSettingSulaTable as SulaColumnSettingTable, TableColumnSetting, TreeSearchSelect, authFunc, calculateValidPeriod, checkQuantityAccuracy, _coverToParallel as coverToParallel, createUniqID, downloadExcel, ergodicMenuRoutes, _formatter as formatter, getAccountID, getAccountId, getBreadcrumbNameMap, getCommonInfoKey, getConfigTableColumns, getCurrentTargetBgId, getCurrentTenantId, getDictionarySource, getDictionaryTextByValue, getEmployeeCode, getEmployeeId, getItemDefaultWidth$1 as getItemDefaultWidth, getJoinDictionaryText, getLastKey, getLimitMenuDataKey, getLocalStorageSaveKey, getMenuAuthDataKey, getSessionId, getSkuImg, getTenantList, getUserId, getUserName, go2BackAndClose, handleAntdColumnsSpecialParams, handleBaseUrlPre, handleBeforeUpload, handleBssulaColumnsSpecialParams, handleCommonTimeRender$1 as handleCommonTimeRender, handleConvertResponse, handleError, handleExport, handleExportBarCode, handleJudgeAuthButtons, handleOssUrl, handleRequestAuthHeader, handleRequestHeader, handleRequestUrl, handleStatusBadge, handleTextBreakSpaces, handleTextDouble$1 as handleTextDouble, handleTextDoubleOrId, handleTextLineFeed$1 as handleTextLineFeed, handleTextOverflow$1 as handleTextOverflow, handleTextTooltip, handleTextWarp, handleTextWarpCustom, handleTooltip$1 as handleTooltip, handleTooltipHours$1 as handleTooltipHours, handleUserPhone, judgeIsEmpty, judgeIsRequestError, judgeIsRequestSuccess, keyToWord, memoizeOneFormatter, noEmptyArr, noEmptyArray, paramsControl, parseWidth, precisionQuantity, randomString, readerXlsxToList, removeCurrentTenantId, removeTenantList, renderFixed2, renderNumberText, saveCurrentTenantId, saveTenantList, setConfigTableColumns, shouldUseAuth, socketFunctions, sulaTableRenderTooltip, tableColumnsImage$1 as tableColumnsImage, textIcon, updateGuanDate, userColumns$1 as userColumns, userInfoCard$1 as userInfoCard, uuid, writeListToXlsx };
40659
+ //操作日志
40660
+ var SystemLog = function SystemLog(_ref) {
40661
+ var modeType = _ref.modeType,
40662
+ code = _ref.code,
40663
+ containerName = _ref.containerName,
40664
+ _ref$renderLogRef = _ref.renderLogRef,
40665
+ renderLogRef = _ref$renderLogRef === void 0 ? {} : _ref$renderLogRef,
40666
+ _ref$extraParams = _ref.extraParams,
40667
+ extraParams = _ref$extraParams === void 0 ? {} : _ref$extraParams;
40668
+ return _objectSpread2(_objectSpread2({}, formContainerAndItemLayout('table', '操作日志', containerName)), {}, {
40669
+ initialVisible: modeType != 'create',
40670
+ fields: [{
40671
+ name: 'table',
40672
+ label: false,
40673
+ itemLayout: {
40674
+ span: 24,
40675
+ labelCol: {
40676
+ span: 0
40677
+ },
40678
+ wrapperCol: {
40679
+ span: 24
40680
+ }
40681
+ },
40682
+ field: function field(ctx) {
40683
+ return code && /*#__PURE__*/React$1.createElement(Table$1, {
40684
+ remoteDataSource: {
40685
+ url: "/oms-ops/logInfo?qp-businessCode-eq=".concat(code),
40686
+ convertParams: function convertParams(_ref2) {
40687
+ var params = _ref2.params;
40688
+ return _objectSpread2({
40689
+ pageSize: params.pageSize,
40690
+ currentPage: params.current
40691
+ }, extraParams);
40692
+ },
40693
+ converter: function converter(_ref3) {
40694
+ var data = _ref3.data;
40695
+ return _objectSpread2({}, handleConvertResponse(data.list, data.total || data.totalCount));
40696
+ }
40697
+ },
40698
+ columns: [{
40699
+ title: '操作人',
40700
+ dataIndex: 'handlerName'
40701
+ }, {
40702
+ title: '操作名称',
40703
+ dataIndex: 'handlerType'
40704
+ }, {
40705
+ title: '操作时间',
40706
+ dataIndex: 'handlerTime',
40707
+ render: function render(_ref4) {
40708
+ var text = _ref4.text;
40709
+ return handleCommonTimeRender$1(text);
40710
+ }
40711
+ }, {
40712
+ title: '操作内容',
40713
+ dataIndex: 'logcontent'
40714
+ }],
40715
+ style: {
40716
+ width: '100%',
40717
+ marginTop: '-16px',
40718
+ padding: '0px'
40719
+ },
40720
+ rowKey: "id",
40721
+ scroll: {
40722
+ x: 'max-content'
40723
+ },
40724
+ pagination: {
40725
+ showTotal: function showTotal(total) {
40726
+ return "\u5171 ".concat(total, " \u6761");
40727
+ },
40728
+ showQuickJumper: true,
40729
+ hideOnSinglePage: true
40730
+ },
40731
+ ref: renderLogRef
40732
+ });
40733
+ }
40734
+ }]
40735
+ });
40736
+ };
40737
+
40738
+ export { AddSelect, AddSkcSelect, AddSkuSelect, AddSpuSelect, AuthButton, BillEntry, BsCascader, index$5 as BsLayout, BsSulaQueryTable, BusinessSearchSelect$1 as BusinessSearchSelect, BusinessTreeSearchSelect$1 as BusinessTreeSearchSelect, index$1 as CheckOneUser, ColumnSettingTable, ColumnsEdit, CommodityEntry, CustomSelector, DataImport, DataValidation, index$3 as DetailPageWrapper, EllipsisTooltip, ExportIcon, index$8 as ExtendedCollapse, GuideWrapper, HandleTotalCount, index$4 as HomePageWrapper, JsonQueryTable, ModalUtils, index$6 as MoreTreeTable, ParagraphCopier, PropertySelector, QueryMutipleInput, QueryMutipleSearchSelect, RenderCompItem, RuleObjectComponent as RuleComponent, index$7 as RuleSetter, SearchSelect, Section, index$2 as StateFlow, ColumnSettingSulaTable as SulaColumnSettingTable, SystemLog, TableColumnSetting, TreeSearchSelect, authFunc, calculateValidPeriod, checkQuantityAccuracy, _coverToParallel as coverToParallel, createUniqID, downloadExcel, ergodicMenuRoutes, formContainerAndItemLayout, _formatter as formatter, getAccountID, getAccountId, getBreadcrumbNameMap, getCommonInfoKey, getConfigTableColumns, getCurrentTargetBgId, getCurrentTenantId, getDictionarySource, getDictionaryTextByValue, getEmployeeCode, getEmployeeId, getItemDefaultWidth$1 as getItemDefaultWidth, getJoinDictionaryText, getLastKey, getLimitMenuDataKey, getLocalStorageSaveKey, getMenuAuthDataKey, getSessionId, getSkuImg, getTenantList, getUserId, getUserName, go2BackAndClose, handleAntdColumnsSpecialParams, handleBaseUrlPre, handleBeforeUpload, handleBssulaColumnsSpecialParams, handleCommonTimeRender$1 as handleCommonTimeRender, handleConvertResponse, handleError, handleExport, handleExportBarCode, handleJudgeAuthButtons, handleOssUrl, handleRequestAuthHeader, handleRequestHeader, handleRequestUrl, handleStatusBadge, handleTextBreakSpaces, handleTextDouble$1 as handleTextDouble, handleTextDoubleOrId, handleTextLineFeed$1 as handleTextLineFeed, handleTextOverflow$1 as handleTextOverflow, handleTextTooltip, handleTextWarp, handleTextWarpCustom, handleTooltip$1 as handleTooltip, handleTooltipHours$1 as handleTooltipHours, handleUserPhone, judgeIsEmpty, judgeIsRequestError, judgeIsRequestSuccess, keyToWord, memoizeOneFormatter, noEmptyArr, noEmptyArray, paramsControl, parseWidth, precisionQuantity, processDetailButtonsVisible, randomString, readerXlsxToList, removeCurrentTenantId, removeTenantList, renderFixed2, renderNumberText, saveCurrentTenantId, saveTenantList, setConfigTableColumns, shouldUseAuth, socketFunctions, sulaTableRenderTooltip, tableColumnsImage$1 as tableColumnsImage, textIcon, updateGuanDate, userColumns$1 as userColumns, userInfoCard$1 as userInfoCard, uuid, writeListToXlsx };