@bit-sun/business-component 4.2.0-alpha.6.8 → 4.2.0-alpha.7

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 (77) hide show
  1. package/dist/components/Business/AddSelectBusiness/index.d.ts +3 -4
  2. package/dist/components/Business/BsLayouts/Components/AllFunc/drawContent.d.ts +1 -2
  3. package/dist/components/Business/BsLayouts/Components/ChooseStore/index.d.ts +1 -2
  4. package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.d.ts +1 -1
  5. package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/leftTree.d.ts +1 -1
  6. package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/rightTree.d.ts +2 -2
  7. package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/DrawContent.d.ts +1 -2
  8. package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/customMenuHeader.d.ts +1 -2
  9. package/dist/components/Business/BsLayouts/Components/CustomerMenu/index.d.ts +1 -1
  10. package/dist/components/Business/BsLayouts/Components/GlobalHeader/index.d.ts +1 -2
  11. package/dist/components/Business/BsLayouts/Components/RightContent/LoginModal.d.ts +1 -2
  12. package/dist/components/Business/BsLayouts/index.d.ts +1 -1
  13. package/dist/components/Business/BsSulaQueryTable/SearchItemSetting.d.ts +5 -5
  14. package/dist/components/Business/BsSulaQueryTable/index.d.ts +1 -2
  15. package/dist/components/Business/BsSulaQueryTable/setting.d.ts +6 -6
  16. package/dist/components/Business/BsSulaQueryTable/utils.d.ts +14 -15
  17. package/dist/components/Business/CommodityEntry/index.d.ts +1 -2
  18. package/dist/components/Business/CommonAlert/index.d.ts +1 -2
  19. package/dist/components/Business/CommonGuideWrapper/index.d.ts +3 -3
  20. package/dist/components/Business/DetailPageWrapper/index.d.ts +12 -12
  21. package/dist/components/Business/HomePageWrapper/index.d.ts +1 -2
  22. package/dist/components/Business/ItemPropertySelector/index.d.ts +1 -2
  23. package/dist/components/Business/JsonQueryTable/components/FieldsModifyModal.d.ts +1 -2
  24. package/dist/components/Business/JsonQueryTable/components/FieldsSettingsTable.d.ts +1 -2
  25. package/dist/components/Business/JsonQueryTable/components/Formula.d.ts +1 -2
  26. package/dist/components/Business/JsonQueryTable/components/MaintainOptions.d.ts +1 -2
  27. package/dist/components/Business/JsonQueryTable/drawer/index.d.ts +1 -2
  28. package/dist/components/Business/PropertyModal/index.d.ts +1 -2
  29. package/dist/components/Business/PropertyModal/propertyGroup.d.ts +1 -1
  30. package/dist/components/Business/SearchSelect/index.d.ts +1 -1
  31. package/dist/components/Business/StateFlow/index.d.ts +1 -2
  32. package/dist/components/Business/TreeSearchSelect/index.d.ts +1 -1
  33. package/dist/components/Business/columnSettingTable/columnSetting.d.ts +6 -6
  34. package/dist/components/Business/columnSettingTable/components/TableSumComponent.d.ts +1 -2
  35. package/dist/components/Business/columnSettingTable/index.d.ts +3 -3
  36. package/dist/components/Business/columnSettingTable/sulaSettingTable.d.ts +3 -3
  37. package/dist/components/Business/columnSettingTable/utils.d.ts +1 -2
  38. package/dist/components/Business/moreTreeTable/FixedScrollBar.d.ts +1 -1
  39. package/dist/components/Common/ParagraphCopier/index.d.ts +1 -1
  40. package/dist/components/Common/Section/index.d.ts +1 -1
  41. package/dist/components/Functional/AddSelect/index.d.ts +1 -2
  42. package/dist/components/Functional/AuthButton/index.d.ts +1 -2
  43. package/dist/components/Functional/DataImport/index.d.ts +3 -3
  44. package/dist/components/Functional/DataValidation/index.d.ts +5 -5
  45. package/dist/components/Functional/ExportFunctions/ExportIcon/index.d.ts +1 -2
  46. package/dist/components/Functional/QueryMutipleInput/index.d.ts +1 -2
  47. package/dist/components/Functional/QueryMutipleSelect/index.d.ts +1 -2
  48. package/dist/components/Functional/SearchSelect/index.d.ts +1 -1
  49. package/dist/components/Functional/SearchSelect/utils.d.ts +2 -3
  50. package/dist/components/Functional/TreeSearchSelect/index.d.ts +1 -2
  51. package/dist/components/Solution/RuleComponent/CustomPlugin/CustomSelector/CustomSelectorModal.d.ts +1 -1
  52. package/dist/components/Solution/RuleComponent/CustomPlugin/CustomSelector/index.d.ts +1 -2
  53. package/dist/components/Solution/RuleComponent/Formula.d.ts +1 -2
  54. package/dist/components/Solution/RuleComponent/InnerSelect.d.ts +1 -2
  55. package/dist/components/Solution/RuleComponent/RenderCompItem.d.ts +1 -2
  56. package/dist/components/Solution/RuleSetter/RuleInstance.d.ts +1 -2
  57. package/dist/components/Solution/RuleSetter/baseRule.d.ts +1 -1
  58. package/dist/components/Solution/RuleSetter/index.d.ts +1 -1
  59. package/dist/index.d.ts +1 -0
  60. package/dist/index.esm.js +1383 -1151
  61. package/dist/index.js +1383 -1150
  62. package/dist/plugin/TableColumnSetting/index.d.ts +5 -5
  63. package/dist/utils/TableUtils.d.ts +18 -19
  64. package/package.json +1 -1
  65. package/src/components/Business/BsSulaQueryTable/index.md +57 -4
  66. package/src/components/Business/BsSulaQueryTable/index.tsx +164 -7
  67. package/src/components/Business/BsSulaQueryTable/setting.tsx +6 -0
  68. package/src/components/Business/DetailPageWrapper/index.tsx +81 -1
  69. package/src/components/Business/DetailPageWrapper/readme.md +89 -0
  70. package/src/components/Business/SearchSelect/BusinessUtils.tsx +45 -12
  71. package/src/components/Functional/AddSelect/index.tsx +92 -0
  72. package/src/components/Functional/DataValidation/index.tsx +22 -3
  73. package/src/components/Functional/SearchSelect/index.tsx +5 -2
  74. package/src/components/Solution/RuleComponent/RenderCompItem.tsx +9 -1
  75. package/src/components/Solution/RuleComponent/index.js +1 -0
  76. package/src/components/Solution/RuleComponent/ruleFiled.js +25 -1
  77. package/src/index.ts +4 -0
package/dist/index.esm.js CHANGED
@@ -188,8 +188,8 @@ function _objectWithoutProperties(e, t) {
188
188
  r,
189
189
  i = _objectWithoutPropertiesLoose(e, t);
190
190
  if (Object.getOwnPropertySymbols) {
191
- var s = Object.getOwnPropertySymbols(e);
192
- for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
191
+ var n = Object.getOwnPropertySymbols(e);
192
+ for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
193
193
  }
194
194
  return i;
195
195
  }
@@ -197,7 +197,7 @@ function _objectWithoutPropertiesLoose(r, e) {
197
197
  if (null == r) return {};
198
198
  var t = {};
199
199
  for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
200
- if (e.includes(n)) continue;
200
+ if (-1 !== e.indexOf(n)) continue;
201
201
  t[n] = r[n];
202
202
  }
203
203
  return t;
@@ -207,306 +207,113 @@ function _possibleConstructorReturn(t, e) {
207
207
  if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
208
208
  return _assertThisInitialized(t);
209
209
  }
210
- function _regeneratorRuntime() {
211
- _regeneratorRuntime = function () {
212
- return e;
213
- };
214
- var t,
215
- e = {},
216
- r = Object.prototype,
217
- n = r.hasOwnProperty,
218
- o = Object.defineProperty || function (t, e, r) {
219
- t[e] = r.value;
220
- },
221
- i = "function" == typeof Symbol ? Symbol : {},
222
- a = i.iterator || "@@iterator",
223
- c = i.asyncIterator || "@@asyncIterator",
224
- u = i.toStringTag || "@@toStringTag";
225
- function define(t, e, r) {
226
- return Object.defineProperty(t, e, {
227
- value: r,
228
- enumerable: !0,
229
- configurable: !0,
230
- writable: !0
231
- }), t[e];
232
- }
233
- try {
234
- define({}, "");
235
- } catch (t) {
236
- define = function (t, e, r) {
237
- return t[e] = r;
238
- };
239
- }
240
- function wrap(t, e, r, n) {
241
- var i = e && e.prototype instanceof Generator ? e : Generator,
242
- a = Object.create(i.prototype),
243
- c = new Context(n || []);
244
- return o(a, "_invoke", {
245
- value: makeInvokeMethod(t, r, c)
246
- }), a;
247
- }
248
- function tryCatch(t, e, r) {
249
- try {
250
- return {
251
- type: "normal",
252
- arg: t.call(e, r)
253
- };
254
- } catch (t) {
255
- return {
256
- type: "throw",
257
- arg: t
210
+ function _regenerator() {
211
+ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
212
+ var e,
213
+ t,
214
+ r = "function" == typeof Symbol ? Symbol : {},
215
+ n = r.iterator || "@@iterator",
216
+ o = r.toStringTag || "@@toStringTag";
217
+ function i(r, n, o, i) {
218
+ var c = n && n.prototype instanceof Generator ? n : Generator,
219
+ u = Object.create(c.prototype);
220
+ return _regeneratorDefine(u, "_invoke", function (r, n, o) {
221
+ var i,
222
+ c,
223
+ u,
224
+ f = 0,
225
+ p = o || [],
226
+ y = !1,
227
+ G = {
228
+ p: 0,
229
+ n: 0,
230
+ v: e,
231
+ a: d,
232
+ f: d.bind(e, 4),
233
+ d: function (t, r) {
234
+ return i = t, c = 0, u = e, G.n = r, a;
235
+ }
236
+ };
237
+ function d(r, n) {
238
+ for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) {
239
+ var o,
240
+ i = p[t],
241
+ d = G.p,
242
+ l = i[2];
243
+ r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0));
244
+ }
245
+ if (o || r > 1) return a;
246
+ throw y = !0, n;
247
+ }
248
+ return function (o, p, l) {
249
+ if (f > 1) throw TypeError("Generator is already running");
250
+ for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) {
251
+ i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u);
252
+ try {
253
+ if (f = 2, i) {
254
+ if (c || (o = "next"), t = i[o]) {
255
+ if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object");
256
+ if (!t.done) return t;
257
+ u = t.value, c < 2 && (c = 0);
258
+ } else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1);
259
+ i = e;
260
+ } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break;
261
+ } catch (t) {
262
+ i = e, c = 1, u = t;
263
+ } finally {
264
+ f = 1;
265
+ }
266
+ }
267
+ return {
268
+ value: t,
269
+ done: y
270
+ };
258
271
  };
259
- }
272
+ }(r, o, i), !0), u;
260
273
  }
261
- e.wrap = wrap;
262
- var h = "suspendedStart",
263
- l = "suspendedYield",
264
- f = "executing",
265
- s = "completed",
266
- y = {};
274
+ var a = {};
267
275
  function Generator() {}
268
276
  function GeneratorFunction() {}
269
277
  function GeneratorFunctionPrototype() {}
270
- var p = {};
271
- define(p, a, function () {
278
+ t = Object.getPrototypeOf;
279
+ var c = [][n] ? t(t([][n]())) : (_regeneratorDefine(t = {}, n, function () {
280
+ return this;
281
+ }), t),
282
+ u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c);
283
+ function f(e) {
284
+ return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e;
285
+ }
286
+ return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine(u), _regeneratorDefine(u, o, "Generator"), _regeneratorDefine(u, n, function () {
272
287
  return this;
273
- });
274
- var d = Object.getPrototypeOf,
275
- v = d && d(d(values([])));
276
- v && v !== r && n.call(v, a) && (p = v);
277
- var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
278
- function defineIteratorMethods(t) {
279
- ["next", "throw", "return"].forEach(function (e) {
280
- define(t, e, function (t) {
281
- return this._invoke(e, t);
282
- });
283
- });
284
- }
285
- function AsyncIterator(t, e) {
286
- function invoke(r, o, i, a) {
287
- var c = tryCatch(t[r], t, o);
288
- if ("throw" !== c.type) {
289
- var u = c.arg,
290
- h = u.value;
291
- return h && "object" == typeof h && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) {
292
- invoke("next", t, i, a);
293
- }, function (t) {
294
- invoke("throw", t, i, a);
295
- }) : e.resolve(h).then(function (t) {
296
- u.value = t, i(u);
297
- }, function (t) {
298
- return invoke("throw", t, i, a);
299
- });
300
- }
301
- a(c.arg);
302
- }
303
- var r;
304
- o(this, "_invoke", {
305
- value: function (t, n) {
306
- function callInvokeWithMethodAndArg() {
307
- return new e(function (e, r) {
308
- invoke(t, n, e, r);
309
- });
310
- }
311
- return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
312
- }
313
- });
314
- }
315
- function makeInvokeMethod(e, r, n) {
316
- var o = h;
317
- return function (i, a) {
318
- if (o === f) throw Error("Generator is already running");
319
- if (o === s) {
320
- if ("throw" === i) throw a;
321
- return {
322
- value: t,
323
- done: !0
324
- };
325
- }
326
- for (n.method = i, n.arg = a;;) {
327
- var c = n.delegate;
328
- if (c) {
329
- var u = maybeInvokeDelegate(c, n);
330
- if (u) {
331
- if (u === y) continue;
332
- return u;
333
- }
334
- }
335
- if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) {
336
- if (o === h) throw o = s, n.arg;
337
- n.dispatchException(n.arg);
338
- } else "return" === n.method && n.abrupt("return", n.arg);
339
- o = f;
340
- var p = tryCatch(e, r, n);
341
- if ("normal" === p.type) {
342
- if (o = n.done ? s : l, p.arg === y) continue;
343
- return {
344
- value: p.arg,
345
- done: n.done
346
- };
347
- }
348
- "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg);
349
- }
350
- };
351
- }
352
- function maybeInvokeDelegate(e, r) {
353
- var n = r.method,
354
- o = e.iterator[n];
355
- if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y;
356
- var i = tryCatch(o, e.iterator, r.arg);
357
- if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y;
358
- var a = i.arg;
359
- return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y);
360
- }
361
- function pushTryEntry(t) {
362
- var e = {
363
- tryLoc: t[0]
364
- };
365
- 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e);
366
- }
367
- function resetTryEntry(t) {
368
- var e = t.completion || {};
369
- e.type = "normal", delete e.arg, t.completion = e;
370
- }
371
- function Context(t) {
372
- this.tryEntries = [{
373
- tryLoc: "root"
374
- }], t.forEach(pushTryEntry, this), this.reset(!0);
375
- }
376
- function values(e) {
377
- if (e || "" === e) {
378
- var r = e[a];
379
- if (r) return r.call(e);
380
- if ("function" == typeof e.next) return e;
381
- if (!isNaN(e.length)) {
382
- var o = -1,
383
- i = function next() {
384
- for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next;
385
- return next.value = t, next.done = !0, next;
386
- };
387
- return i.next = i;
388
- }
389
- }
390
- throw new TypeError(typeof e + " is not iterable");
391
- }
392
- return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
393
- value: GeneratorFunctionPrototype,
394
- configurable: !0
395
- }), o(GeneratorFunctionPrototype, "constructor", {
396
- value: GeneratorFunction,
397
- configurable: !0
398
- }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) {
399
- var e = "function" == typeof t && t.constructor;
400
- return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name));
401
- }, e.mark = function (t) {
402
- return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t;
403
- }, e.awrap = function (t) {
288
+ }), _regeneratorDefine(u, "toString", function () {
289
+ return "[object Generator]";
290
+ }), (_regenerator = function () {
404
291
  return {
405
- __await: t
292
+ w: i,
293
+ m: f
406
294
  };
407
- }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () {
408
- return this;
409
- }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) {
410
- void 0 === i && (i = Promise);
411
- var a = new AsyncIterator(wrap(t, r, n, o), i);
412
- return e.isGeneratorFunction(r) ? a : a.next().then(function (t) {
413
- return t.done ? t.value : a.next();
414
- });
415
- }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () {
416
- return this;
417
- }), define(g, "toString", function () {
418
- return "[object Generator]";
419
- }), e.keys = function (t) {
420
- var e = Object(t),
421
- r = [];
422
- for (var n in e) r.push(n);
423
- return r.reverse(), function next() {
424
- for (; r.length;) {
425
- var t = r.pop();
426
- if (t in e) return next.value = t, next.done = !1, next;
427
- }
428
- return next.done = !0, next;
429
- };
430
- }, e.values = values, Context.prototype = {
431
- constructor: Context,
432
- reset: function (e) {
433
- if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t);
434
- },
435
- stop: function () {
436
- this.done = !0;
437
- var t = this.tryEntries[0].completion;
438
- if ("throw" === t.type) throw t.arg;
439
- return this.rval;
440
- },
441
- dispatchException: function (e) {
442
- if (this.done) throw e;
443
- var r = this;
444
- function handle(n, o) {
445
- return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o;
446
- }
447
- for (var o = this.tryEntries.length - 1; o >= 0; --o) {
448
- var i = this.tryEntries[o],
449
- a = i.completion;
450
- if ("root" === i.tryLoc) return handle("end");
451
- if (i.tryLoc <= this.prev) {
452
- var c = n.call(i, "catchLoc"),
453
- u = n.call(i, "finallyLoc");
454
- if (c && u) {
455
- if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
456
- if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
457
- } else if (c) {
458
- if (this.prev < i.catchLoc) return handle(i.catchLoc, !0);
459
- } else {
460
- if (!u) throw Error("try statement without catch or finally");
461
- if (this.prev < i.finallyLoc) return handle(i.finallyLoc);
462
- }
463
- }
464
- }
465
- },
466
- abrupt: function (t, e) {
467
- for (var r = this.tryEntries.length - 1; r >= 0; --r) {
468
- var o = this.tryEntries[r];
469
- if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) {
470
- var i = o;
471
- break;
472
- }
473
- }
474
- i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null);
475
- var a = i ? i.completion : {};
476
- return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a);
477
- },
478
- complete: function (t, e) {
479
- if ("throw" === t.type) throw t.arg;
480
- return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y;
481
- },
482
- finish: function (t) {
483
- for (var e = this.tryEntries.length - 1; e >= 0; --e) {
484
- var r = this.tryEntries[e];
485
- if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y;
486
- }
487
- },
488
- catch: function (t) {
489
- for (var e = this.tryEntries.length - 1; e >= 0; --e) {
490
- var r = this.tryEntries[e];
491
- if (r.tryLoc === t) {
492
- var n = r.completion;
493
- if ("throw" === n.type) {
494
- var o = n.arg;
495
- resetTryEntry(r);
496
- }
497
- return o;
498
- }
499
- }
500
- throw Error("illegal catch attempt");
501
- },
502
- delegateYield: function (e, r, n) {
503
- return this.delegate = {
504
- iterator: values(e),
505
- resultName: r,
506
- nextLoc: n
507
- }, "next" === this.method && (this.arg = t), y;
295
+ })();
296
+ }
297
+ function _regeneratorDefine(e, r, n, t) {
298
+ var i = Object.defineProperty;
299
+ try {
300
+ i({}, "", {});
301
+ } catch (e) {
302
+ i = 0;
303
+ }
304
+ _regeneratorDefine = function (e, r, n, t) {
305
+ function o(r, n) {
306
+ _regeneratorDefine(e, r, function (e) {
307
+ return this._invoke(r, n, e);
308
+ });
508
309
  }
509
- }, e;
310
+ r ? i ? i(e, r, {
311
+ value: n,
312
+ enumerable: !t,
313
+ configurable: !t,
314
+ writable: !t
315
+ }) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2));
316
+ }, _regeneratorDefine(e, r, n, t);
510
317
  }
511
318
  function _setPrototypeOf(t, e) {
512
319
  return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
@@ -1579,22 +1386,22 @@ var parseToServe = function parseToServe(outdata, revertChart) {
1579
1386
  // sheepMap是表头字段中英文映射
1580
1387
  // sheetCount:表的数量,默认一张
1581
1388
  var resolveFile = /*#__PURE__*/function () {
1582
- var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(file) {
1389
+ var _ref3 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(file) {
1583
1390
  var config,
1584
1391
  data,
1585
1392
  _args = arguments;
1586
- return _regeneratorRuntime().wrap(function _callee$(_context) {
1587
- while (1) switch (_context.prev = _context.next) {
1393
+ return _regenerator().w(function (_context) {
1394
+ while (1) switch (_context.n) {
1588
1395
  case 0:
1589
1396
  config = _args.length > 1 && _args[1] !== undefined ? _args[1] : {
1590
1397
  sheetMap: [],
1591
1398
  sheetCount: 1
1592
1399
  };
1593
- _context.next = 3;
1400
+ _context.n = 1;
1594
1401
  return analyseExcelToByte(file);
1595
- case 3:
1596
- data = _context.sent;
1597
- return _context.abrupt("return", new Promise(function (resolve, reject) {
1402
+ case 1:
1403
+ data = _context.v;
1404
+ return _context.a(2, new Promise(function (resolve, reject) {
1598
1405
  var workbook = read(data, {
1599
1406
  type: 'binary'
1600
1407
  });
@@ -1606,9 +1413,6 @@ var resolveFile = /*#__PURE__*/function () {
1606
1413
  var outdata = parseToServe(sheetMapJsonList, config.sheetMap);
1607
1414
  resolve(outdata);
1608
1415
  }));
1609
- case 5:
1610
- case "end":
1611
- return _context.stop();
1612
1416
  }
1613
1417
  }, _callee);
1614
1418
  }));
@@ -1618,41 +1422,40 @@ var resolveFile = /*#__PURE__*/function () {
1618
1422
  }();
1619
1423
  //读取文件
1620
1424
  var readerXlsxToList = /*#__PURE__*/function () {
1621
- var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(file, fileList, uploadRef, done, otherInfo) {
1425
+ var _ref4 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(file, fileList, uploadRef, done, otherInfo) {
1622
1426
  var _ref5, callback, sheetMap, nowFile, data2, data;
1623
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
1624
- while (1) switch (_context2.prev = _context2.next) {
1427
+ return _regenerator().w(function (_context2) {
1428
+ while (1) switch (_context2.n) {
1625
1429
  case 0:
1626
1430
  _ref5 = otherInfo || {}, callback = _ref5.callback, sheetMap = _ref5.sheetMap;
1627
1431
  if (!(Array.isArray(fileList) && fileList.length > 0)) {
1628
- _context2.next = 15;
1432
+ _context2.n = 3;
1629
1433
  break;
1630
1434
  }
1631
1435
  nowFile = fileList[fileList.length - 1]; // 阻止了默认上传file没有originFileObj了 得从fileList中去取
1632
- _context2.next = 5;
1436
+ _context2.n = 1;
1633
1437
  return resolveFile(nowFile.originFileObj, {
1634
1438
  sheetMap: fieldMappingReverse(sheetMap),
1635
1439
  sheetCount: 1
1636
1440
  });
1637
- case 5:
1638
- data2 = _context2.sent;
1441
+ case 1:
1442
+ data2 = _context2.v;
1639
1443
  data = data2[0];
1640
1444
  if (data.length) {
1641
- _context2.next = 10;
1445
+ _context2.n = 2;
1642
1446
  break;
1643
1447
  }
1644
1448
  message$1.error("\u8BF7\u5148\u5F55\u5165\u6570\u636E\u518D\u5BFC\u5165");
1645
- return _context2.abrupt("return");
1646
- case 10:
1449
+ return _context2.a(2);
1450
+ case 2:
1647
1451
  if (callback) callback(data);
1648
1452
  !callback && message$1.success("\u5BFC\u5165\u6210\u529F");
1649
- return _context2.abrupt("return", data);
1650
- case 15:
1453
+ return _context2.a(2, data);
1454
+ case 3:
1651
1455
  message$1.error("\u8BF7\u9009\u62E9\u6587\u4EF6");
1652
- return _context2.abrupt("return");
1653
- case 17:
1654
- case "end":
1655
- return _context2.stop();
1456
+ return _context2.a(2);
1457
+ case 4:
1458
+ return _context2.a(2);
1656
1459
  }
1657
1460
  }, _callee2);
1658
1461
  }));
@@ -2604,17 +2407,14 @@ var requestUtil = function requestUtil(_ref) {
2604
2407
  return request$1(url, parms).then(handleResponseData);
2605
2408
  };
2606
2409
  var handleResponseData = /*#__PURE__*/function () {
2607
- var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(response) {
2608
- return _regeneratorRuntime().wrap(function _callee$(_context) {
2609
- while (1) switch (_context.prev = _context.next) {
2410
+ var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(response) {
2411
+ return _regenerator().w(function (_context) {
2412
+ while (1) switch (_context.n) {
2610
2413
  case 0:
2611
- return _context.abrupt("return", Promise.resolve({
2414
+ return _context.a(2, Promise.resolve({
2612
2415
  data: response,
2613
2416
  status: response.status
2614
2417
  }));
2615
- case 1:
2616
- case "end":
2617
- return _context.stop();
2618
2418
  }
2619
2419
  }, _callee);
2620
2420
  }));
@@ -2987,88 +2787,108 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
2987
2787
  data: luckysheet.transToCellData(newData)
2988
2788
  });
2989
2789
  };
2990
- _this.resetData = function () {
2790
+ _this.resetData = /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
2991
2791
  var _customerColumnsMappi;
2992
- var _this$props = _this.props,
2993
- validDataUrl = _this$props.validDataUrl,
2994
- validDataParams = _this$props.validDataParams,
2995
- updateData = _this$props.updateData,
2996
- columns = _this$props.columns,
2997
- isBrandAuth = _this$props.isBrandAuth,
2998
- _this$props$isCheckSt = _this$props.isCheckStockNum,
2999
- isCheckStockNum = _this$props$isCheckSt === void 0 ? true : _this$props$isCheckSt,
3000
- customerColumnsMapping = _this$props.customerColumnsMapping;
3001
- var resultData = _this.getData().filter(function (d) {
3002
- return _.compact(Object.values(d)).length;
3003
- });
3004
- var resultColumns = (customerColumnsMapping === null || customerColumnsMapping === void 0 ? void 0 : customerColumnsMapping.length) ? customerColumnsMapping === null || customerColumnsMapping === void 0 ? void 0 : (_customerColumnsMappi = customerColumnsMapping.filter(function (c) {
3005
- return !!(c === null || c === void 0 ? void 0 : c.name);
3006
- })) === null || _customerColumnsMappi === void 0 ? void 0 : _customerColumnsMappi.map(function (c) {
3007
- return c.name;
3008
- }) : columns;
3009
- // 处理业务参数
3010
- var otherParams = {};
3011
- if (isBrandAuth) {
3012
- otherParams = {
3013
- brandAuth: 'ctl-withAuth'
3014
- };
3015
- }
3016
- requestUtil.post(validDataUrl, _objectSpread2(_objectSpread2(_objectSpread2({}, otherParams), validDataParams), {}, {
3017
- columns: resultColumns,
3018
- data: resultData,
3019
- checkStockNum: isCheckStockNum
3020
- })).then(function (result) {
3021
- result = result.data;
3022
- if (judgeIsRequestError(result)) {
3023
- message$1.error(result.msg);
3024
- return;
3025
- }
3026
- var items = _this.state.items;
3027
- var validIndex = items.length;
3028
- var res = result.data;
3029
- var sheetData = luckysheet.getSheetData();
3030
- sheetData.map(function (item, index) {
3031
- if (!res[index]) return item;
3032
- var changeVMIndex = resultColumns === null || resultColumns === void 0 ? void 0 : resultColumns.findIndex(function (i) {
3033
- return i === 'skuCode';
3034
- });
3035
- if ((resultColumns === null || resultColumns === void 0 ? void 0 : resultColumns.find(function (i) {
3036
- return i === 'skuCode';
3037
- })) && item[changeVMIndex].v !== res[index].skuCode) {
3038
- item[changeVMIndex].v = res[index].skuCode;
3039
- item[changeVMIndex].m = res[index].skuCode;
3040
- }
3041
- if (res[index].flag) {
3042
- item[validIndex] = _objectSpread2(_objectSpread2({}, item[validIndex]), {}, {
3043
- v: '通过',
3044
- m: '通过',
3045
- fc: 'green' //字体颜色为 "#990000"
3046
- });
3047
- } else {
3048
- item[validIndex] = _objectSpread2(_objectSpread2({}, item[validIndex]), {}, {
3049
- v: res[index].checkResults,
3050
- m: res[index].checkResults,
3051
- fc: 'red' //字体颜色为 "#990000"
2792
+ var _this$props, validDataUrl, validDataParams, updateData, columns, isBrandAuth, _this$props$isCheckSt, isCheckStockNum, customerColumnsMapping, checkSharedValue, beforeCheckCallback, resultData, resultColumns, otherParams;
2793
+ return _regenerator().w(function (_context) {
2794
+ while (1) switch (_context.n) {
2795
+ case 0:
2796
+ _this$props = _this.props, validDataUrl = _this$props.validDataUrl, validDataParams = _this$props.validDataParams, updateData = _this$props.updateData, columns = _this$props.columns, isBrandAuth = _this$props.isBrandAuth, _this$props$isCheckSt = _this$props.isCheckStockNum, isCheckStockNum = _this$props$isCheckSt === void 0 ? true : _this$props$isCheckSt, customerColumnsMapping = _this$props.customerColumnsMapping, checkSharedValue = _this$props.checkSharedValue, beforeCheckCallback = _this$props.beforeCheckCallback;
2797
+ resultData = _this.getData().filter(function (d) {
2798
+ return _.compact(Object.values(d)).length;
3052
2799
  });
3053
- }
3054
- item[validIndex].ct = {
3055
- fa: 'General',
3056
- t: 'g'
3057
- };
3058
- });
3059
- // sheetData.map((item, index) => {
3060
- // luckysheet.setCellValue(index + 1, 4, 345)
3061
- // })
3062
- luckysheet.create(_this.setConfig(luckysheet.transToCellData(sheetData)));
3063
- _this.setState({
3064
- data: luckysheet.transToCellData(sheetData),
3065
- errorListCheck: false,
3066
- resultData: res
3067
- });
3068
- console.log(setExportData);
3069
- setExportData([123123]);
3070
- }).catch(function (err) {});
3071
- };
2800
+ resultColumns = (customerColumnsMapping === null || customerColumnsMapping === void 0 ? void 0 : customerColumnsMapping.length) ? customerColumnsMapping === null || customerColumnsMapping === void 0 ? void 0 : (_customerColumnsMappi = customerColumnsMapping.filter(function (c) {
2801
+ return !!(c === null || c === void 0 ? void 0 : c.name);
2802
+ })) === null || _customerColumnsMappi === void 0 ? void 0 : _customerColumnsMappi.map(function (c) {
2803
+ return c.name;
2804
+ }) : columns; // 处理业务参数
2805
+ otherParams = {};
2806
+ if (isBrandAuth) {
2807
+ otherParams = {
2808
+ brandAuth: 'ctl-withAuth'
2809
+ };
2810
+ }
2811
+ // 处理校验参数,隐藏校验参数(公用的部分)
2812
+ if (checkSharedValue) {
2813
+ resultData = resultData.map(function (d) {
2814
+ return _objectSpread2(_objectSpread2({}, d), checkSharedValue);
2815
+ });
2816
+ }
2817
+ // 调用回调函数
2818
+ if (!beforeCheckCallback) {
2819
+ _context.n = 2;
2820
+ break;
2821
+ }
2822
+ _context.n = 1;
2823
+ return beforeCheckCallback(resultData);
2824
+ case 1:
2825
+ resultData = _context.v;
2826
+ if (resultData) {
2827
+ _context.n = 2;
2828
+ break;
2829
+ }
2830
+ return _context.a(2);
2831
+ case 2:
2832
+ requestUtil.post(validDataUrl, _objectSpread2(_objectSpread2(_objectSpread2({}, otherParams), validDataParams), {}, {
2833
+ columns: resultColumns,
2834
+ data: resultData,
2835
+ checkStockNum: isCheckStockNum
2836
+ })).then(function (result) {
2837
+ result = result.data;
2838
+ if (judgeIsRequestError(result)) {
2839
+ message$1.error(result.msg);
2840
+ return;
2841
+ }
2842
+ var items = _this.state.items;
2843
+ var validIndex = items.length;
2844
+ var res = result.data;
2845
+ var sheetData = luckysheet.getSheetData();
2846
+ sheetData.map(function (item, index) {
2847
+ if (!res[index]) return item;
2848
+ var changeVMIndex = resultColumns === null || resultColumns === void 0 ? void 0 : resultColumns.findIndex(function (i) {
2849
+ return i === 'skuCode';
2850
+ });
2851
+ if ((resultColumns === null || resultColumns === void 0 ? void 0 : resultColumns.find(function (i) {
2852
+ return i === 'skuCode';
2853
+ })) && item[changeVMIndex].v !== res[index].skuCode) {
2854
+ item[changeVMIndex].v = res[index].skuCode;
2855
+ item[changeVMIndex].m = res[index].skuCode;
2856
+ }
2857
+ if (res[index].flag) {
2858
+ item[validIndex] = _objectSpread2(_objectSpread2({}, item[validIndex]), {}, {
2859
+ v: '通过',
2860
+ m: '通过',
2861
+ fc: 'green' //字体颜色为 "#990000"
2862
+ });
2863
+ } else {
2864
+ item[validIndex] = _objectSpread2(_objectSpread2({}, item[validIndex]), {}, {
2865
+ v: res[index].checkResults,
2866
+ m: res[index].checkResults,
2867
+ fc: 'red' //字体颜色为 "#990000"
2868
+ });
2869
+ }
2870
+ item[validIndex].ct = {
2871
+ fa: 'General',
2872
+ t: 'g'
2873
+ };
2874
+ });
2875
+ // sheetData.map((item, index) => {
2876
+ // luckysheet.setCellValue(index + 1, 4, 345)
2877
+ // })
2878
+ luckysheet.create(_this.setConfig(luckysheet.transToCellData(sheetData)));
2879
+ _this.setState({
2880
+ data: luckysheet.transToCellData(sheetData),
2881
+ errorListCheck: false,
2882
+ resultData: res
2883
+ });
2884
+ console.log(setExportData);
2885
+ setExportData([123123]);
2886
+ }).catch(function (err) {});
2887
+ case 3:
2888
+ return _context.a(2);
2889
+ }
2890
+ }, _callee);
2891
+ }));
3072
2892
  _this.filterData = function (type) {
3073
2893
  var _this$state = _this.state,
3074
2894
  showErrorData = _this$state.showErrorData,
@@ -3225,8 +3045,8 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
3225
3045
  if (!(res === null || res === void 0 ? void 0 : res[index])) return item;
3226
3046
  var rowItem = res[index];
3227
3047
  item === null || item === void 0 ? void 0 : item.forEach(function (element, colIndex) {
3228
- var _ref4;
3229
- var colKey = (_ref4 = Object.keys(rowItem) || []) === null || _ref4 === void 0 ? void 0 : _ref4[colIndex];
3048
+ var _ref5;
3049
+ var colKey = (_ref5 = Object.keys(rowItem) || []) === null || _ref5 === void 0 ? void 0 : _ref5[colIndex];
3230
3050
  if (!(rowItem === null || rowItem === void 0 ? void 0 : rowItem[colKey])) return element;
3231
3051
  element.m = rowItem[colKey];
3232
3052
  element.v = rowItem[colKey];
@@ -3302,10 +3122,10 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
3302
3122
  notExcelImport = _this$props6.notExcelImport,
3303
3123
  excelImportConfig = _this$props6.excelImportConfig,
3304
3124
  getTemplate = _this$props6.getTemplate;
3305
- var _ref5 = excelImportConfig || {},
3306
- size = _ref5.size,
3307
- accept = _ref5.accept,
3308
- suffixRule = _ref5.suffixRule;
3125
+ var _ref6 = excelImportConfig || {},
3126
+ size = _ref6.size,
3127
+ accept = _ref6.accept,
3128
+ suffixRule = _ref6.suffixRule;
3309
3129
  var totalSummary = this.getCount();
3310
3130
  var sheetMap = this.getSheetMap();
3311
3131
  var callBackFun = this.importExcelToLuckySheet;
@@ -3331,9 +3151,9 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
3331
3151
  var _Object$keys;
3332
3152
  if (!(sheetMap && ((_Object$keys = Object.keys(sheetMap)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.length))) return;
3333
3153
  if (info.file.status !== 'uploading') {
3334
- var _ref6 = info || {},
3335
- file = _ref6.file,
3336
- fileList = _ref6.fileList;
3154
+ var _ref7 = info || {},
3155
+ file = _ref7.file,
3156
+ fileList = _ref7.fileList;
3337
3157
  readerXlsxToList(file, fileList, null, null, {
3338
3158
  callback: function callback(excelData) {
3339
3159
  callBackFun(excelData);
@@ -4757,27 +4577,27 @@ var QueryMutipleSearchSelect = function QueryMutipleSearchSelect(_ref) {
4757
4577
  popvalue = _useState8[0],
4758
4578
  setPopValue = _useState8[1];
4759
4579
  var _useState9 = useState([]),
4760
- _useState10 = _slicedToArray(_useState9, 2),
4761
- source = _useState10[0],
4762
- setSource = _useState10[1];
4580
+ _useState0 = _slicedToArray(_useState9, 2),
4581
+ source = _useState0[0],
4582
+ setSource = _useState0[1];
4763
4583
  var _useDebounceFn = useDebounceFn(function () {
4764
4584
  getData();
4765
4585
  }, {
4766
4586
  wait: 1000
4767
4587
  }),
4768
4588
  run = _useDebounceFn.run;
4769
- var _useState11 = useState(false),
4589
+ var _useState1 = useState(false),
4590
+ _useState10 = _slicedToArray(_useState1, 2),
4591
+ fetching = _useState10[0],
4592
+ setFetching = _useState10[1];
4593
+ var _useState11 = useState(''),
4770
4594
  _useState12 = _slicedToArray(_useState11, 2),
4771
- fetching = _useState12[0],
4772
- setFetching = _useState12[1];
4773
- var _useState13 = useState(''),
4595
+ searchValue = _useState12[0],
4596
+ setSearchValue = _useState12[1];
4597
+ var _useState13 = useState(resultSourceKey),
4774
4598
  _useState14 = _slicedToArray(_useState13, 2),
4775
- searchValue = _useState14[0],
4776
- setSearchValue = _useState14[1];
4777
- var _useState15 = useState(resultSourceKey),
4778
- _useState16 = _slicedToArray(_useState15, 2),
4779
- uniqueValue = _useState16[0],
4780
- setUniqueValue = _useState16[1];
4599
+ uniqueValue = _useState14[0],
4600
+ setUniqueValue = _useState14[1];
4781
4601
  useEffect(function () {
4782
4602
  setPopValue(value);
4783
4603
  onValueChange(value);
@@ -5194,21 +5014,21 @@ var PropertySelector = function PropertySelector(_ref) {
5194
5014
  notCommonProperty = _useState8[0],
5195
5015
  setNotCommonProperty = _useState8[1];
5196
5016
  var _useState9 = useState(false),
5197
- _useState10 = _slicedToArray(_useState9, 2),
5198
- visible = _useState10[0],
5199
- setVisible = _useState10[1];
5200
- var _useState11 = useState(false),
5017
+ _useState0 = _slicedToArray(_useState9, 2),
5018
+ visible = _useState0[0],
5019
+ setVisible = _useState0[1];
5020
+ var _useState1 = useState(false),
5021
+ _useState10 = _slicedToArray(_useState1, 2),
5022
+ showNotCommon = _useState10[0],
5023
+ setShowNotCommon = _useState10[1]; // 是否展示非常用属性
5024
+ var _useState11 = useState([]),
5201
5025
  _useState12 = _slicedToArray(_useState11, 2),
5202
- showNotCommon = _useState12[0],
5203
- setShowNotCommon = _useState12[1]; // 是否展示非常用属性
5204
- var _useState13 = useState([]),
5026
+ classifyOptionList = _useState12[0],
5027
+ setClassifyOptionList = _useState12[1];
5028
+ var _useState13 = useState('1'),
5205
5029
  _useState14 = _slicedToArray(_useState13, 2),
5206
- classifyOptionList = _useState14[0],
5207
- setClassifyOptionList = _useState14[1];
5208
- var _useState15 = useState('1'),
5209
- _useState16 = _slicedToArray(_useState15, 2),
5210
- listKey = _useState16[0],
5211
- setListKey = _useState16[1];
5030
+ listKey = _useState14[0],
5031
+ setListKey = _useState14[1];
5212
5032
  useEffect(function () {
5213
5033
  requestUtil({
5214
5034
  url: '/items/class/withProperty?pageSize=500&currentPage=1',
@@ -5472,6 +5292,8 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
5472
5292
  highestPopContainer = _props$highestPopCont === void 0 ? undefined : _props$highestPopCont,
5473
5293
  fieldComponent = props.fieldComponent,
5474
5294
  onSaveCallback = props.onSaveCallback,
5295
+ _props$returnFormat = props.returnFormat,
5296
+ returnFormat = _props$returnFormat === void 0 ? [] : _props$returnFormat,
5475
5297
  selectBusinessType = props.selectBusinessType;
5476
5298
  var _ref = rCTemp || {},
5477
5299
  url = _ref.url,
@@ -5530,14 +5352,16 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
5530
5352
  var currentPage = 1;
5531
5353
  var selectParamsKey = (requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.filter) || 'qp-codeAndName-like';
5532
5354
  var selectParamsInitKey = (requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.filterInit) || selectParamsKey;
5533
- var currentSelectProps = _objectSpread2(_objectSpread2({}, selectProps), {}, {
5355
+ var currentSelectProps = _objectSpread2(_objectSpread2({
5356
+ // 回显字段可自定义
5357
+ optionLabelProp: "label"
5358
+ }, selectProps), {}, {
5534
5359
  // 以下属性不可更改----设计配置项
5535
5360
  showArrow: true,
5536
5361
  showSearch: true,
5537
5362
  filterOption: false,
5538
5363
  allowClear: true,
5539
5364
  listHeight: 160,
5540
- optionLabelProp: "label",
5541
5365
  autoClearSearchValue: false,
5542
5366
  placement: 'bottomRight'
5543
5367
  });
@@ -5587,29 +5411,29 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
5587
5411
  scrollPage = _useState8[0],
5588
5412
  setScrollPage = _useState8[1];
5589
5413
  var _useState9 = useState(0),
5590
- _useState10 = _slicedToArray(_useState9, 2),
5591
- itemsTotal = _useState10[0],
5592
- setItemsTotal = _useState10[1];
5593
- 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(''),
5594
5422
  _useState12 = _slicedToArray(_useState11, 2),
5595
- fetching = _useState12[0],
5596
- setFetching = _useState12[1];
5597
- var _useState13 = useState(''),
5423
+ searchValue = _useState12[0],
5424
+ setSearchValue = _useState12[1];
5425
+ var _useState13 = useState(false),
5598
5426
  _useState14 = _slicedToArray(_useState13, 2),
5599
- searchValue = _useState14[0],
5600
- setSearchValue = _useState14[1];
5601
- var _useState15 = useState(false),
5427
+ isModalVisible = _useState14[0],
5428
+ setIsModalVisible = _useState14[1];
5429
+ var _useState15 = useState(initVal),
5602
5430
  _useState16 = _slicedToArray(_useState15, 2),
5603
- isModalVisible = _useState16[0],
5604
- setIsModalVisible = _useState16[1];
5605
- var _useState17 = useState(initVal),
5431
+ popvalue = _useState16[0],
5432
+ setPopValue = _useState16[1];
5433
+ var _useState17 = useState(resultSourceKey),
5606
5434
  _useState18 = _slicedToArray(_useState17, 2),
5607
- popvalue = _useState18[0],
5608
- setPopValue = _useState18[1];
5609
- var _useState19 = useState(resultSourceKey),
5610
- _useState20 = _slicedToArray(_useState19, 2),
5611
- uniqueValue = _useState20[0],
5612
- setUniqueValue = _useState20[1];
5435
+ uniqueValue = _useState18[0],
5436
+ setUniqueValue = _useState18[1];
5613
5437
  var _useDebounceFn = useDebounceFn(function (v) {
5614
5438
  // 优化搜索参数 支持传多个
5615
5439
  var searchParams = {};
@@ -5638,58 +5462,58 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
5638
5462
  var _Form$useForm = Form.useForm(),
5639
5463
  _Form$useForm2 = _slicedToArray(_Form$useForm, 1),
5640
5464
  form = _Form$useForm2[0];
5465
+ var _useState19 = useState(true),
5466
+ _useState20 = _slicedToArray(_useState19, 2),
5467
+ collapsed = _useState20[0],
5468
+ setCollapsed = _useState20[1];
5641
5469
  var _useState21 = useState(true),
5642
5470
  _useState22 = _slicedToArray(_useState21, 2),
5643
- collapsed = _useState22[0],
5644
- setCollapsed = _useState22[1];
5645
- var _useState23 = useState(true),
5471
+ caretLeftFlag = _useState22[0],
5472
+ setCaretLeftFlag = _useState22[1];
5473
+ var _useState23 = useState([]),
5646
5474
  _useState24 = _slicedToArray(_useState23, 2),
5647
- caretLeftFlag = _useState24[0],
5648
- setCaretLeftFlag = _useState24[1];
5649
- var _useState25 = useState([]),
5475
+ tableData = _useState24[0],
5476
+ setTableData = _useState24[1];
5477
+ var _useState25 = useState(tableInitPagination),
5650
5478
  _useState26 = _slicedToArray(_useState25, 2),
5651
- tableData = _useState26[0],
5652
- setTableData = _useState26[1];
5653
- var _useState27 = useState(tableInitPagination),
5479
+ tablePagination = _useState26[0],
5480
+ setTablePagination = _useState26[1];
5481
+ var _useState27 = useState([]),
5654
5482
  _useState28 = _slicedToArray(_useState27, 2),
5655
- tablePagination = _useState28[0],
5656
- setTablePagination = _useState28[1];
5483
+ selectedRowKeys = _useState28[0],
5484
+ setSelectedRowKeys = _useState28[1];
5657
5485
  var _useState29 = useState([]),
5658
5486
  _useState30 = _slicedToArray(_useState29, 2),
5659
- selectedRowKeys = _useState30[0],
5660
- setSelectedRowKeys = _useState30[1];
5661
- var _useState31 = useState([]),
5487
+ selectedRows = _useState30[0],
5488
+ setSelectedRows = _useState30[1];
5489
+ var _useState31 = useState(false),
5662
5490
  _useState32 = _slicedToArray(_useState31, 2),
5663
- selectedRows = _useState32[0],
5664
- setSelectedRows = _useState32[1];
5491
+ checkedAll = _useState32[0],
5492
+ setCheckedAll = _useState32[1];
5665
5493
  var _useState33 = useState(false),
5666
5494
  _useState34 = _slicedToArray(_useState33, 2),
5667
- checkedAll = _useState34[0],
5668
- setCheckedAll = _useState34[1];
5669
- var _useState35 = useState(false),
5495
+ indeterminate = _useState34[0],
5496
+ setIndeterminate = _useState34[1];
5497
+ var _useState35 = useState({}),
5670
5498
  _useState36 = _slicedToArray(_useState35, 2),
5671
- indeterminate = _useState36[0],
5672
- setIndeterminate = _useState36[1];
5673
- var _useState37 = useState({}),
5499
+ tableFormParams = _useState36[0],
5500
+ setTableFormParams = _useState36[1];
5501
+ var _useState37 = useState(false),
5674
5502
  _useState38 = _slicedToArray(_useState37, 2),
5675
- tableFormParams = _useState38[0],
5676
- setTableFormParams = _useState38[1];
5677
- 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)),
5678
5506
  _useState40 = _slicedToArray(_useState39, 2),
5679
- tooltipVisible = _useState40[0],
5680
- setTooltipVisible = _useState40[1];
5681
- 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),
5682
5510
  _useState42 = _slicedToArray(_useState41, 2),
5683
- tableShowColumns = _useState42[0],
5684
- setTabletShowColumns = _useState42[1]; // 默认展示表头-modalTableProps?.tableColumns
5511
+ confirmLoading = _useState42[0],
5512
+ setConfirmLoading = _useState42[1];
5685
5513
  var _useState43 = useState(false),
5686
5514
  _useState44 = _slicedToArray(_useState43, 2),
5687
- confirmLoading = _useState44[0],
5688
- setConfirmLoading = _useState44[1];
5689
- var _useState45 = useState(false),
5690
- _useState46 = _slicedToArray(_useState45, 2),
5691
- modalSearched = _useState46[0],
5692
- setModalSearched = _useState46[1];
5515
+ modalSearched = _useState44[0],
5516
+ setModalSearched = _useState44[1];
5693
5517
  var setSelectDataSource = function setSelectDataSource(list, total) {
5694
5518
  setItems(list);
5695
5519
  setItemsTotal(total);
@@ -6006,12 +5830,19 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
6006
5830
  };
6007
5831
  var formaData = function formaData(value, source) {
6008
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
+ };
6009
5840
  var formatResult = value.map(function (i) {
6010
- return {
5841
+ return Object.assign.apply(Object, [{
6011
5842
  key: i[mappingValueField] || i.key,
6012
5843
  label: i[mappingTextField] || i.label,
6013
5844
  value: i[mappingValueField] || i.value
6014
- };
5845
+ }].concat(_toConsumableArray(getFromat(returnFormat, i))));
6015
5846
  });
6016
5847
  onChange(selectMode ? formatResult : formatResult[0], value, source);
6017
5848
  } else {
@@ -6159,7 +5990,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
6159
5990
  })) || [];
6160
5991
  var searchList = (modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.noEmptySearchField) ? list : list === null || list === void 0 ? void 0 : list.concat(addKong);
6161
5992
  return searchList.map(function (i, index) {
6162
- 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;
6163
5994
  if ((i === null || i === void 0 ? void 0 : i.type) === 'kong') return /*#__PURE__*/React$1.createElement(Col, {
6164
5995
  span: ColSpan,
6165
5996
  key: i
@@ -6257,7 +6088,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
6257
6088
  disabled: setDisabled(i.name)
6258
6089
  }))));
6259
6090
  }
6260
- if ((i === null || i === void 0 ? void 0 : i.type) === 'multipleQueryInput' || (i === null || i === void 0 ? void 0 : (_i$field10 = i.field) === null || _i$field10 === void 0 ? void 0 : _i$field10.type) === 'multipleQueryInput') {
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') {
6261
6092
  return /*#__PURE__*/React$1.createElement(Col, {
6262
6093
  span: ColSpan,
6263
6094
  key: i.name
@@ -6271,7 +6102,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
6271
6102
  }
6272
6103
  })));
6273
6104
  }
6274
- 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') {
6275
6106
  return /*#__PURE__*/React$1.createElement(Col, {
6276
6107
  span: ColSpan,
6277
6108
  key: i.name
@@ -6281,8 +6112,8 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
6281
6112
  key: i.name
6282
6113
  }, /*#__PURE__*/React$1.createElement(PropertySelector, null)));
6283
6114
  }
6284
- if ((i === null || i === void 0 ? void 0 : i.type) === 'itemPropertySelector' || (i === null || i === void 0 ? void 0 : (_i$field12 = i.field) === null || _i$field12 === void 0 ? void 0 : _i$field12.type) === 'itemPropertySelector') {
6285
- var _i$field13;
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;
6286
6117
  return /*#__PURE__*/React$1.createElement(Col, {
6287
6118
  span: ColSpan,
6288
6119
  key: i.name
@@ -6295,9 +6126,9 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
6295
6126
  width: '100%'
6296
6127
  },
6297
6128
  placeholder: "\u8BF7\u9009\u62E9"
6298
- }, 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))));
6299
6130
  }
6300
- 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') {
6301
6132
  return /*#__PURE__*/React$1.createElement(Col, {
6302
6133
  span: ColSpan,
6303
6134
  key: i.name
@@ -6326,7 +6157,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
6326
6157
  placeholder: "\u8BF7\u8F93\u5165",
6327
6158
  allowClear: true,
6328
6159
  maxLength: 100
6329
- }, 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), {}, {
6330
6161
  disabled: setDisabled(i.name)
6331
6162
  }))));
6332
6163
  });
@@ -7646,135 +7477,132 @@ var AddSelect = function AddSelect(props) {
7646
7477
  _Form$useForm2 = _slicedToArray(_Form$useForm, 1),
7647
7478
  form = _Form$useForm2[0];
7648
7479
  var _useState9 = useState(modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.tableSearchForm),
7649
- _useState10 = _slicedToArray(_useState9, 2),
7650
- tableSearchForm = _useState10[0],
7651
- setTableSearchForm = _useState10[1];
7652
- 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([]),
7653
7488
  _useState12 = _slicedToArray(_useState11, 2),
7654
- caretLeftFlag = _useState12[0],
7655
- setCaretLeftFlag = _useState12[1];
7656
- var _useState13 = useState([]),
7657
- _useState14 = _slicedToArray(_useState13, 2),
7658
- tableData = _useState14[0],
7659
- setTableData = _useState14[1];
7660
- var _useState15 = useState(_objectSpread2({
7489
+ tableData = _useState12[0],
7490
+ setTableData = _useState12[1];
7491
+ var _useState13 = useState(_objectSpread2({
7661
7492
  total: 0,
7662
7493
  size: "small",
7663
7494
  current: 1,
7664
7495
  pageSize: tableInitPageSize
7665
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([]),
7666
7501
  _useState16 = _slicedToArray(_useState15, 2),
7667
- tablePagination = _useState16[0],
7668
- setTablePagination = _useState16[1];
7669
- var _useState17 = useState([]),
7502
+ selectedRowKeys = _useState16[0],
7503
+ setSelectedRowKeys = _useState16[1];
7504
+ var _useState17 = useState({}),
7670
7505
  _useState18 = _slicedToArray(_useState17, 2),
7671
- selectedRowKeys = _useState18[0],
7672
- setSelectedRowKeys = _useState18[1];
7673
- var _useState19 = useState({}),
7506
+ tableFormParams = _useState18[0],
7507
+ setTableFormParams = _useState18[1];
7508
+ var _useState19 = useState(false),
7674
7509
  _useState20 = _slicedToArray(_useState19, 2),
7675
- tableFormParams = _useState20[0],
7676
- setTableFormParams = _useState20[1];
7510
+ confirmLoading = _useState20[0],
7511
+ setConfirmLoading = _useState20[1];
7677
7512
  var _useState21 = useState(false),
7678
7513
  _useState22 = _slicedToArray(_useState21, 2),
7679
- confirmLoading = _useState22[0],
7680
- setConfirmLoading = _useState22[1];
7681
- var _useState23 = useState(false),
7514
+ confirmContinueLoading = _useState22[0],
7515
+ setConfirmContinueLoading = _useState22[1];
7516
+ var _useState23 = useState([]),
7682
7517
  _useState24 = _slicedToArray(_useState23, 2),
7683
- confirmContinueLoading = _useState24[0],
7684
- setConfirmContinueLoading = _useState24[1];
7518
+ selectColumns = _useState24[0],
7519
+ setSelectColumns = _useState24[1];
7685
7520
  var _useState25 = useState([]),
7686
7521
  _useState26 = _slicedToArray(_useState25, 2),
7687
- selectColumns = _useState26[0],
7688
- setSelectColumns = _useState26[1];
7522
+ showColumns = _useState26[0],
7523
+ setShowColumns = _useState26[1];
7689
7524
  var _useState27 = useState([]),
7690
7525
  _useState28 = _slicedToArray(_useState27, 2),
7691
- showColumns = _useState28[0],
7692
- setShowColumns = _useState28[1];
7526
+ tableColumns = _useState28[0],
7527
+ setTableColumns = _useState28[1];
7693
7528
  var _useState29 = useState([]),
7694
7529
  _useState30 = _slicedToArray(_useState29, 2),
7695
- tableColumns = _useState30[0],
7696
- setTableColumns = _useState30[1];
7697
- var _useState31 = useState([]),
7698
- _useState32 = _slicedToArray(_useState31, 2),
7699
- showToChooseColumns = _useState32[0],
7700
- setShowToChooseColumns = _useState32[1];
7530
+ showToChooseColumns = _useState30[0],
7531
+ setShowToChooseColumns = _useState30[1];
7701
7532
  var codeToChoose = tableCodeList[0] || initTableCode[businessType][0];
7702
7533
  var codeSelected = tableCodeList[1] || initTableCode[businessType][1];
7703
7534
  // FIXME: 特殊业务逻辑
7704
7535
  var checkSelectChange = /*#__PURE__*/function () {
7705
- var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
7706
- var result;
7707
- return _regeneratorRuntime().wrap(function _callee$(_context) {
7708
- while (1) switch (_context.prev = _context.next) {
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) {
7709
7540
  case 0:
7710
7541
  if (!(bType == 'skc' && tList.some(function (i) {
7711
7542
  return i[recordKey] == recordItem[recordKey] && i[selectItem.dataIndex] == changeValue;
7712
7543
  }))) {
7713
- _context.next = 3;
7544
+ _context.n = 1;
7714
7545
  break;
7715
7546
  }
7716
7547
  message$1.warning('相同skc配码不可设置相同哦');
7717
- return _context.abrupt("return", false);
7718
- case 3:
7548
+ return _context.a(2, false);
7549
+ case 1:
7719
7550
  if (!(bType == 'spu')) {
7720
- _context.next = 26;
7551
+ _context.n = 9;
7721
7552
  break;
7722
7553
  }
7723
7554
  if (!(selectItem.dataIndex == 'colorName' && tList.some(function (i) {
7724
7555
  return i[recordKey] == recordItem[recordKey] && i.selectPropertyGroupCode == recordItem.selectPropertyGroupCode && i[selectItem.dataIndex] == changeValue;
7725
7556
  }))) {
7726
- _context.next = 7;
7557
+ _context.n = 2;
7727
7558
  break;
7728
7559
  }
7729
7560
  message$1.warning('相同商品相同配码颜色不可设置相同哦');
7730
- return _context.abrupt("return", false);
7731
- case 7:
7561
+ return _context.a(2, false);
7562
+ case 2:
7732
7563
  if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && !recordItem.colorName)) {
7733
- _context.next = 10;
7564
+ _context.n = 3;
7734
7565
  break;
7735
7566
  }
7736
7567
  message$1.warning('请先选择颜色!');
7737
- return _context.abrupt("return", false);
7738
- case 10:
7568
+ return _context.a(2, false);
7569
+ case 3:
7739
7570
  if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && tList.some(function (i) {
7740
7571
  return i[recordKey] == recordItem[recordKey] && i.colorName == recordItem.colorName && i[selectItem.dataIndex] == changeValue;
7741
7572
  }))) {
7742
- _context.next = 13;
7573
+ _context.n = 4;
7743
7574
  break;
7744
7575
  }
7745
7576
  message$1.warning('相同商品相同颜色配码不可设置相同哦');
7746
- return _context.abrupt("return", false);
7747
- case 13:
7577
+ return _context.a(2, false);
7578
+ case 4:
7748
7579
  if (!(selectItem.dataIndex == 'selectPropertyGroupCode')) {
7749
- _context.next = 26;
7580
+ _context.n = 9;
7750
7581
  break;
7751
7582
  }
7752
7583
  result = true;
7753
- _context.prev = 15;
7754
- _context.next = 18;
7584
+ _context.p = 5;
7585
+ _context.n = 6;
7755
7586
  return checkSpuMatchCode({
7756
7587
  skcCode: recordItem[recordKey],
7757
7588
  matchingCode: changeValue,
7758
7589
  ext1: recordItem.colorName
7759
7590
  });
7760
- case 18:
7761
- result = _context.sent;
7591
+ case 6:
7592
+ result = _context.v;
7762
7593
  result = true;
7763
- _context.next = 25;
7594
+ _context.n = 8;
7764
7595
  break;
7765
- case 22:
7766
- _context.prev = 22;
7767
- _context.t0 = _context["catch"](15);
7768
- result = typeof _context.t0 == 'boolean' ? _context.t0 : false;
7769
- case 25:
7770
- return _context.abrupt("return", result);
7771
- case 26:
7772
- return _context.abrupt("return", true);
7773
- case 27:
7774
- case "end":
7775
- return _context.stop();
7776
- }
7777
- }, _callee, null, [[15, 22]]);
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]]);
7778
7606
  }));
7779
7607
  return function checkSelectChange(_x, _x2, _x3, _x4, _x5, _x6) {
7780
7608
  return _ref2.apply(this, arguments);
@@ -7852,6 +7680,115 @@ var AddSelect = function AddSelect(props) {
7852
7680
  acc[key] = typeof value === 'function' ? value === null || value === void 0 ? void 0 : value(record) : value;
7853
7681
  return acc;
7854
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
+ }
7855
7792
  return /*#__PURE__*/React$1.createElement(InputNumber, _objectSpread2(_objectSpread2(_objectSpread2({}, inputProps), {}, {
7856
7793
  value: text || '',
7857
7794
  min: 0,
@@ -7869,16 +7806,16 @@ var AddSelect = function AddSelect(props) {
7869
7806
  // }}
7870
7807
  onKeyDown: function onKeyDown(e) {
7871
7808
  if (e.keyCode === 13 && e.ctrlKey) {
7872
- var _document$getElementB;
7809
+ var _document$getElementB2;
7873
7810
  handleOk(true);
7874
- (_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();
7875
7812
  }
7876
7813
  if (e.keyCode === 8 && e.ctrlKey) {
7877
- var _e$nativeEvent$path$;
7814
+ var _e$nativeEvent$path$6;
7878
7815
  message$1.success('删除当前行');
7879
7816
  e.stopPropagation();
7880
7817
  e.preventDefault();
7881
- 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];
7882
7819
  if (dom) {
7883
7820
  dom.select();
7884
7821
  dom.focus();
@@ -7888,47 +7825,47 @@ var AddSelect = function AddSelect(props) {
7888
7825
  deleteRecord(record);
7889
7826
  }
7890
7827
  if (e.keyCode === 37 && e.shiftKey) {
7891
- var _e$nativeEvent$path$2;
7828
+ var _e$nativeEvent$path$7;
7892
7829
  // 左滑动
7893
7830
  e.stopPropagation();
7894
7831
  e.preventDefault();
7895
- 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];
7896
- if (_dom) {
7897
- _dom.select();
7898
- _dom.focus();
7899
- _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);
7900
7837
  }
7901
- _dom = null;
7838
+ _dom4 = null;
7902
7839
  }
7903
7840
  if (e.keyCode === 39 && e.shiftKey) {
7904
- var _e$nativeEvent$path$3;
7841
+ var _e$nativeEvent$path$8;
7905
7842
  // 右滑
7906
7843
  e.stopPropagation();
7907
7844
  e.preventDefault();
7908
- 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];
7909
- if (_dom2) {
7910
- _dom2.select();
7911
- _dom2.focus();
7912
- _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);
7913
7850
  }
7914
- _dom2 = null;
7851
+ _dom5 = null;
7915
7852
  }
7916
7853
  if (e.keyCode === 40) {
7917
- var _e$nativeEvent$path$4;
7854
+ var _e$nativeEvent$path$9;
7918
7855
  e.stopPropagation();
7919
7856
  e.preventDefault();
7920
- 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];
7921
- if (_dom3) {
7922
- _dom3.select();
7923
- _dom3.focus();
7924
- _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);
7925
7862
  }
7926
- _dom3 = null;
7863
+ _dom6 = null;
7927
7864
  } else if (e.keyCode === 38) {
7928
- var _e$nativeEvent$path$5;
7865
+ var _e$nativeEvent$path$0;
7929
7866
  e.stopPropagation();
7930
7867
  e.preventDefault();
7931
- 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];
7932
7869
  if (dom1) {
7933
7870
  // dom1.value=""
7934
7871
  // dom1.setSelectionRange(100, 0);
@@ -7962,19 +7899,19 @@ var AddSelect = function AddSelect(props) {
7962
7899
  return /*#__PURE__*/React$1.createElement(Select, _objectSpread2(_objectSpread2({}, item.selectProps), {}, {
7963
7900
  value: text || null,
7964
7901
  onChange: function () {
7965
- var _onChange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
7966
- var dataSourceSelectItem, _item$selectChangeCal, changeValue, isCheckPass, isConformToTheRules;
7967
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
7968
- 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) {
7969
7906
  case 0:
7970
7907
  dataSourceSelectItem = (dataSourceList === null || dataSourceList === void 0 ? void 0 : dataSourceList.find(function (d) {
7971
7908
  return d[selectKey] == value;
7972
7909
  })) || {};
7973
7910
  if (!(item === null || item === void 0 ? void 0 : item.selectChangeCallback)) {
7974
- _context2.next = 6;
7911
+ _context3.n = 2;
7975
7912
  break;
7976
7913
  }
7977
- _context2.next = 4;
7914
+ _context3.n = 1;
7978
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, {
7979
7916
  record: record,
7980
7917
  index: index,
@@ -7984,10 +7921,10 @@ var AddSelect = function AddSelect(props) {
7984
7921
  dataSourceSelectItem: dataSourceSelectItem,
7985
7922
  editRecord: editRecord
7986
7923
  });
7987
- case 4:
7988
- _context2.next = 25;
7924
+ case 1:
7925
+ _context3.n = 10;
7989
7926
  break;
7990
- case 6:
7927
+ case 2:
7991
7928
  // 更新当前行数据函数
7992
7929
  changeValue = function changeValue(v, dSSItem) {
7993
7930
  var _item$dataSourceSelec;
@@ -8000,12 +7937,12 @@ var AddSelect = function AddSelect(props) {
8000
7937
  }
8001
7938
  }; // 处理校验,默认不校验
8002
7939
  isCheckPass = true;
8003
- _context2.prev = 8;
7940
+ _context3.p = 3;
8004
7941
  if (!(item === null || item === void 0 ? void 0 : item.selectCheckCallback)) {
8005
- _context2.next = 15;
7942
+ _context3.n = 5;
8006
7943
  break;
8007
7944
  }
8008
- _context2.next = 12;
7945
+ _context3.n = 4;
8009
7946
  return item === null || item === void 0 ? void 0 : item.selectCheckCallback(popvalue, {
8010
7947
  record: record,
8011
7948
  index: index,
@@ -8014,23 +7951,23 @@ var AddSelect = function AddSelect(props) {
8014
7951
  changeValue: value,
8015
7952
  dataSourceSelectItem: dataSourceSelectItem
8016
7953
  });
8017
- case 12:
8018
- isCheckPass = _context2.sent;
8019
- _context2.next = 19;
7954
+ case 4:
7955
+ isCheckPass = _context3.v;
7956
+ _context3.n = 7;
8020
7957
  break;
8021
- case 15:
8022
- _context2.next = 17;
7958
+ case 5:
7959
+ _context3.n = 6;
8023
7960
  return checkSelectChange(businessType, popvalue, mappingValueField, record, item, value);
8024
- case 17:
8025
- isConformToTheRules = _context2.sent;
7961
+ case 6:
7962
+ isConformToTheRules = _context3.v;
8026
7963
  isCheckPass = !isConformToTheRules;
8027
- case 19:
8028
- _context2.next = 23;
7964
+ case 7:
7965
+ _context3.n = 9;
8029
7966
  break;
8030
- case 21:
8031
- _context2.prev = 21;
8032
- _context2.t0 = _context2["catch"](8);
8033
- case 23:
7967
+ case 8:
7968
+ _context3.p = 8;
7969
+ _t2 = _context3.v;
7970
+ case 9:
8034
7971
  if (isCheckPass) {
8035
7972
  changeValue(value, dataSourceSelectItem);
8036
7973
  } else {
@@ -8038,13 +7975,12 @@ var AddSelect = function AddSelect(props) {
8038
7975
  }
8039
7976
  // 更新已选表格函数
8040
7977
  editRecord(record);
8041
- case 25:
8042
- case "end":
8043
- return _context2.stop();
7978
+ case 10:
7979
+ return _context3.a(2);
8044
7980
  }
8045
- }, _callee2, null, [[8, 21]]);
7981
+ }, _callee3, null, [[3, 8]]);
8046
7982
  }));
8047
- function onChange(_x7) {
7983
+ function onChange(_x8) {
8048
7984
  return _onChange.apply(this, arguments);
8049
7985
  }
8050
7986
  return onChange;
@@ -8304,8 +8240,8 @@ var AddSelect = function AddSelect(props) {
8304
8240
  }
8305
8241
  }
8306
8242
  setTimeout(function () {
8307
- var _document$getElementB2;
8308
- (_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();
8309
8245
  }, 50);
8310
8246
  };
8311
8247
  // 将格式化完的数据回显到 表格中
@@ -8335,7 +8271,7 @@ var AddSelect = function AddSelect(props) {
8335
8271
  handleLoading(isContinue, true);
8336
8272
  onSaveCallback(popvalue).then(function (res) {
8337
8273
  {
8338
- var _Object$keys2, _document$getElementB3;
8274
+ var _Object$keys2, _document$getElementB4;
8339
8275
  // 成功信息可以在调用处处理 即resolve({messageSuccessBackInfo: { needThrowSuccess: false } })、resolve({messageSuccessBackInfo: { needThrowSuccess: true, successMessage: '已保存' } })
8340
8276
  var initSuccessMessage = '保存成功';
8341
8277
  var rmsbi = (res === null || res === void 0 ? void 0 : res.messageSuccessBackInfo) || {};
@@ -8345,7 +8281,7 @@ var AddSelect = function AddSelect(props) {
8345
8281
  message$1.success(initSuccessMessage);
8346
8282
  }
8347
8283
  deleteSelectRows();
8348
- (_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();
8349
8285
  !isContinue && handleCancel();
8350
8286
  }
8351
8287
  handleLoading(isContinue, false);
@@ -9433,29 +9369,29 @@ var BillEntry = function BillEntry(_ref3) {
9433
9369
  dataIndex: 'propertyNameAndValue'
9434
9370
  }];
9435
9371
  var _useState9 = useState(false),
9436
- _useState10 = _slicedToArray(_useState9, 2),
9437
- isModalVisible = _useState10[0],
9438
- setIsModalVisible = _useState10[1];
9439
- var _useState11 = useState([{
9372
+ _useState0 = _slicedToArray(_useState9, 2),
9373
+ isModalVisible = _useState0[0],
9374
+ setIsModalVisible = _useState0[1];
9375
+ var _useState1 = useState([{
9440
9376
  hovered: false
9441
9377
  }]),
9442
- _useState12 = _slicedToArray(_useState11, 2),
9443
- data = _useState12[0],
9444
- setData = _useState12[1];
9378
+ _useState10 = _slicedToArray(_useState1, 2),
9379
+ data = _useState10[0],
9380
+ setData = _useState10[1];
9445
9381
  var tableRef = useRef(null);
9446
9382
  var codeSelected = tableCode;
9447
- 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([]),
9448
9388
  _useState14 = _slicedToArray(_useState13, 2),
9449
- loading = _useState14[0],
9450
- setLoading = _useState14[1];
9389
+ selectColumns = _useState14[0],
9390
+ setSelectColumns = _useState14[1];
9451
9391
  var _useState15 = useState([]),
9452
9392
  _useState16 = _slicedToArray(_useState15, 2),
9453
- selectColumns = _useState16[0],
9454
- setSelectColumns = _useState16[1];
9455
- var _useState17 = useState([]),
9456
- _useState18 = _slicedToArray(_useState17, 2),
9457
- showColumns = _useState18[0],
9458
- setShowColumns = _useState18[1];
9393
+ showColumns = _useState16[0],
9394
+ setShowColumns = _useState16[1];
9459
9395
  useEffect(function () {
9460
9396
  setSelectColumns([].concat(_toConsumableArray(columns.map(function (item) {
9461
9397
  var inputLength = columns.filter(function (item) {
@@ -9571,42 +9507,42 @@ var BillEntry = function BillEntry(_ref3) {
9571
9507
  });
9572
9508
  };
9573
9509
  var handleSubmit = /*#__PURE__*/function () {
9574
- var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
9510
+ var _ref4 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
9575
9511
  var canEntryObject, _canEntryObject$error, messageInfo;
9576
- return _regeneratorRuntime().wrap(function _callee$(_context) {
9577
- while (1) switch (_context.prev = _context.next) {
9512
+ return _regenerator().w(function (_context) {
9513
+ while (1) switch (_context.n) {
9578
9514
  case 0:
9579
9515
  if (data === null || data === void 0 ? void 0 : data.length) {
9580
- _context.next = 3;
9516
+ _context.n = 1;
9581
9517
  break;
9582
9518
  }
9583
9519
  message$1.warning('至少录入一条数据');
9584
- return _context.abrupt("return");
9585
- case 3:
9520
+ return _context.a(2);
9521
+ case 1:
9586
9522
  if (data === null || data === void 0 ? void 0 : data.every(function (d) {
9587
9523
  return d.skuCode && d.name;
9588
9524
  })) {
9589
- _context.next = 6;
9525
+ _context.n = 2;
9590
9526
  break;
9591
9527
  }
9592
9528
  message$1.warning('录入商品不存在');
9593
- return _context.abrupt("return");
9594
- case 6:
9529
+ return _context.a(2);
9530
+ case 2:
9595
9531
  if (data === null || data === void 0 ? void 0 : data.every(function (d) {
9596
9532
  return d.count;
9597
9533
  })) {
9598
- _context.next = 9;
9534
+ _context.n = 3;
9599
9535
  break;
9600
9536
  }
9601
9537
  message$1.warning('请填写商品数量!');
9602
- return _context.abrupt("return");
9603
- case 9:
9604
- _context.next = 11;
9538
+ return _context.a(2);
9539
+ case 3:
9540
+ _context.n = 4;
9605
9541
  return isSkuCanEntry(data);
9606
- case 11:
9607
- canEntryObject = _context.sent;
9542
+ case 4:
9543
+ canEntryObject = _context.v;
9608
9544
  if (!((canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.flag) === false)) {
9609
- _context.next = 16;
9545
+ _context.n = 5;
9610
9546
  break;
9611
9547
  }
9612
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) {
@@ -9616,8 +9552,8 @@ var BillEntry = function BillEntry(_ref3) {
9616
9552
  content: messageInfo,
9617
9553
  duration: 6
9618
9554
  });
9619
- return _context.abrupt("return");
9620
- case 16:
9555
+ return _context.a(2);
9556
+ case 5:
9621
9557
  setLoading(true);
9622
9558
  onSaveCallback(data).then(function (res) {
9623
9559
  {
@@ -9635,9 +9571,8 @@ var BillEntry = function BillEntry(_ref3) {
9635
9571
  message$1.error(Error);
9636
9572
  setLoading(false);
9637
9573
  });
9638
- case 18:
9639
- case "end":
9640
- return _context.stop();
9574
+ case 6:
9575
+ return _context.a(2);
9641
9576
  }
9642
9577
  }, _callee);
9643
9578
  }));
@@ -10523,10 +10458,10 @@ function commonFun(type, prefixUrl, parentProps) {
10523
10458
  selectProps = _objectSpread2({
10524
10459
  placeholder: '输入商品(SPU)编码或名称',
10525
10460
  renderTableColumns: [{
10526
- title: '商品编码(SPU)',
10461
+ title: 'SPU编码',
10527
10462
  dataIndex: 'itemCode'
10528
10463
  }, {
10529
- title: '商品名称(SPU)',
10464
+ title: 'SPU名称',
10530
10465
  dataIndex: 'name'
10531
10466
  }]
10532
10467
  }, selectConfigProps);
@@ -10543,11 +10478,11 @@ function commonFun(type, prefixUrl, parentProps) {
10543
10478
  }, requestConfigProp);
10544
10479
  tableSearchForm = [{
10545
10480
  name: 'itemCode*multiInput',
10546
- label: '商品编码(SPU)',
10481
+ label: 'SPU编码',
10547
10482
  type: 'multipleQueryInput'
10548
10483
  }, {
10549
10484
  name: 'name*multiInput',
10550
- label: '商品名称(SPU)',
10485
+ label: 'SPU名称',
10551
10486
  type: 'multipleQueryInput'
10552
10487
  }, {
10553
10488
  name: 'qp-brandId-in',
@@ -10641,11 +10576,11 @@ function commonFun(type, prefixUrl, parentProps) {
10641
10576
  dataIndex: 'keyIndex',
10642
10577
  defaultSort: 0
10643
10578
  }, {
10644
- title: '商品编码(SPU)',
10579
+ title: 'SPU编码',
10645
10580
  dataIndex: 'itemCode',
10646
10581
  defaultSort: 1
10647
10582
  }, {
10648
- title: '商品名称(SPU) ',
10583
+ title: 'SPU名称',
10649
10584
  dataIndex: 'name',
10650
10585
  defaultSort: 2
10651
10586
  }, {
@@ -10999,7 +10934,7 @@ function commonFun(type, prefixUrl, parentProps) {
10999
10934
  options: getQueryHeadersItem(_queryHeaderParams5, 'qp-brandId-in')
11000
10935
  }], ['colorName', 'categoryId', 'classId', 'brandId'], hiddenFields);
11001
10936
  var fieldLoadSource = fieldsRequest.map(function (i) {
11002
- return loadSelectSource$1(i.url, i.params, options);
10937
+ return loadSelectSource$1(i.url, i.params, i.options);
11003
10938
  });
11004
10939
  requestConfig = _objectSpread2({
11005
10940
  url: "".concat(prefixUrl.selectPrefix, "/skc/skcSelect"),
@@ -11348,6 +11283,14 @@ function commonFun(type, prefixUrl, parentProps) {
11348
11283
  render: function render(text) {
11349
11284
  return getDictionaryTextByValue$1('SC00004', text);
11350
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
11351
11294
  }, {
11352
11295
  title: '所属销售渠道',
11353
11296
  dataIndex: 'channelName',
@@ -11369,7 +11312,7 @@ function commonFun(type, prefixUrl, parentProps) {
11369
11312
  }].concat(_toConsumableArray((modalTableBusProps === null || modalTableBusProps === void 0 ? void 0 : modalTableBusProps.needStatusSearch) ? [{
11370
11313
  title: '状态',
11371
11314
  dataIndex: 'isEnable',
11372
- defaultSort: 7,
11315
+ defaultSort: 8,
11373
11316
  render: function render(text) {
11374
11317
  return getDictionaryTextByValue$1('SC00001', text);
11375
11318
  }
@@ -11826,17 +11769,17 @@ function commonFun(type, prefixUrl, parentProps) {
11826
11769
  }
11827
11770
  }
11828
11771
  }];
11829
- var _queryHeaderParams10 = getQueryHeadersList({
11772
+ var _queryHeaderParams0 = getQueryHeadersList({
11830
11773
  querySelectHeadersList: querySelectHeadersList,
11831
11774
  extralHeaders: extralHeaders
11832
11775
  });
11833
- Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/org/listNoPage"), {}, getQueryHeadersItem(_queryHeaderParams10, 'qp-createOrgCode-eq')), loadSelectSource$1("/channel-manage/channelInfo/tree", {
11776
+ Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/org/listNoPage"), {}, getQueryHeadersItem(_queryHeaderParams0, 'qp-createOrgCode-eq')), loadSelectSource$1("/channel-manage/channelInfo/tree", {
11834
11777
  'qp-status-eq': 10,
11835
11778
  'qp-isMain-eq': 1,
11836
11779
  'qp-type-in': '1,2'
11837
- }, getQueryHeadersItem(_queryHeaderParams10, 'qp-orgCode-in')), loadSelectSource$1("/channel-manage/tagNode/getTree/10", {
11780
+ }, getQueryHeadersItem(_queryHeaderParams0, 'qp-orgCode-in')), loadSelectSource$1("/channel-manage/tagNode/getTree/10", {
11838
11781
  'qp-status-eq': 1
11839
- }, getQueryHeadersItem(_queryHeaderParams10, 'qp-orgCode-in'))]).then(function (x) {
11782
+ }, getQueryHeadersItem(_queryHeaderParams0, 'qp-orgCode-in'))]).then(function (x) {
11840
11783
  var firstElement = x === null || x === void 0 ? void 0 : x[0];
11841
11784
  var allList = firstElement && [firstElement, firstElement];
11842
11785
  formatSource(allList, 0, 2, tableSearchForm);
@@ -11911,12 +11854,17 @@ function commonFun(type, prefixUrl, parentProps) {
11911
11854
  sourceName: 'code'
11912
11855
  }, requestConfigProp);
11913
11856
  tableSearchForm = [{
11914
- name: 'qp-name-like',
11915
- label: '店铺名称'
11916
- }, {
11917
- name: 'qp-code-like',
11918
- label: '店铺编码'
11857
+ name: 'name*multiInput',
11858
+ label: '店铺名称',
11859
+ type: 'multipleQueryInput'
11919
11860
  }, {
11861
+ name: 'code*multiInput',
11862
+ label: '店铺编码',
11863
+ type: 'multipleQueryInput'
11864
+ },
11865
+ // { name: 'qp-name-like', label: '店铺名称' },
11866
+ // { name: 'qp-code-like', label: '店铺编码' },
11867
+ {
11920
11868
  name: 'qp-conglomerateCode-in',
11921
11869
  type: 'select',
11922
11870
  label: '归属集团',
@@ -12017,7 +11965,7 @@ function commonFun(type, prefixUrl, parentProps) {
12017
11965
  }
12018
11966
  }
12019
11967
  }];
12020
- var _queryHeaderParams11 = getQueryHeadersList({
11968
+ var _queryHeaderParams1 = getQueryHeadersList({
12021
11969
  querySelectHeadersList: querySelectHeadersList,
12022
11970
  extralHeaders: extralHeaders
12023
11971
  });
@@ -12025,21 +11973,21 @@ function commonFun(type, prefixUrl, parentProps) {
12025
11973
  pageSize: 5000,
12026
11974
  currentPage: 1,
12027
11975
  'qp-companyType-eq': '30'
12028
- }, getQueryHeadersItem(_queryHeaderParams11, 'qp-conglomerateCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/company"), {
11976
+ }, getQueryHeadersItem(_queryHeaderParams1, 'qp-conglomerateCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/company"), {
12029
11977
  pageSize: 5000,
12030
11978
  currentPage: 1,
12031
11979
  'qp-companyType-eq': '20'
12032
- }, getQueryHeadersItem(_queryHeaderParams11, 'qp-companyCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/platformRecord/getPlatformRecordList"), {
11980
+ }, getQueryHeadersItem(_queryHeaderParams1, 'qp-companyCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/platformRecord/getPlatformRecordList"), {
12033
11981
  // pageSize: 5000,
12034
11982
  // currentPage: 1,
12035
11983
  'qp-status-eq': '1'
12036
- }, getQueryHeadersItem(_queryHeaderParams11, 'qp-plateformCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/store"), {
11984
+ }, getQueryHeadersItem(_queryHeaderParams1, 'qp-plateformCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/store"), {
12037
11985
  pageSize: 5000,
12038
11986
  currentPage: 1
12039
- }, getQueryHeadersItem(_queryHeaderParams11, 'qp-mainBrandCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/accountingSubject"), {
11987
+ }, getQueryHeadersItem(_queryHeaderParams1, 'qp-mainBrandCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/accountingSubject"), {
12040
11988
  pageSize: 5000,
12041
11989
  currentPage: 1
12042
- }, getQueryHeadersItem(_queryHeaderParams11, 'qp-accountingCode-in'))]).then(function (x) {
11990
+ }, getQueryHeadersItem(_queryHeaderParams1, 'qp-accountingCode-in'))]).then(function (x) {
12043
11991
  formatSource(x, 0, 2, tableSearchForm);
12044
11992
  formatSource(x, 1, 3, tableSearchForm);
12045
11993
  formatSource(x, 2, 5, tableSearchForm);
@@ -12208,8 +12156,26 @@ function commonFun(type, prefixUrl, parentProps) {
12208
12156
  }
12209
12157
  },
12210
12158
  initialSource: getDictionarySource$1('BUSINESS_StoreType')
12159
+ }, {
12160
+ name: "qp-brandCode-in",
12161
+ label: "品牌",
12162
+ field: {
12163
+ type: 'select',
12164
+ props: {
12165
+ mode: 'multiple',
12166
+ notFoundContent: '暂无数据',
12167
+ allowClear: true,
12168
+ showSearch: true,
12169
+ showArrow: true,
12170
+ maxTagCount: 1,
12171
+ optionFilterProp: 'children',
12172
+ filterOption: function filterOption(input, option) {
12173
+ return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
12174
+ }
12175
+ }
12176
+ }
12211
12177
  }];
12212
- var _queryHeaderParams12 = getQueryHeadersList({
12178
+ var _queryHeaderParams10 = getQueryHeadersList({
12213
12179
  querySelectHeadersList: querySelectHeadersList,
12214
12180
  extralHeaders: extralHeaders
12215
12181
  });
@@ -12217,13 +12183,17 @@ function commonFun(type, prefixUrl, parentProps) {
12217
12183
  'qp-employeeCode-eq': getEmployeeCode(),
12218
12184
  'qp-realOrg-eq': true,
12219
12185
  'qp-status-eq': 10
12220
- }, getQueryHeadersItem(_queryHeaderParams12, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/channelInfo/tree"), {
12186
+ }, getQueryHeadersItem(_queryHeaderParams10, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/channelInfo/tree"), {
12221
12187
  'qp-status-eq': 10,
12222
12188
  'qp-isMain-eq': 1,
12223
12189
  'qp-type-in': '1,2'
12224
- }, getQueryHeadersItem(_queryHeaderParams12, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/tagNode/getTree/10"), {
12190
+ }, getQueryHeadersItem(_queryHeaderParams10, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/tagNode/getTree/10"), {
12225
12191
  'qp-status-eq': 1
12226
- }, getQueryHeadersItem(_queryHeaderParams12, 'qp-orgCode-in'))]).then(function (x) {
12192
+ }, getQueryHeadersItem(_queryHeaderParams10, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/brand/queryBrandList"), {
12193
+ pageSize: 5000,
12194
+ currentPage: 1,
12195
+ 'ctl-withAuth': true
12196
+ }, getQueryHeadersItem(_queryHeaderParams10, 'ctl-withAuth'))]).then(function (x) {
12227
12197
  var channelDisabledJude = function channelDisabledJude(data) {
12228
12198
  return data['parentCode'] === '0';
12229
12199
  }; // 所属销售渠道 树节点不能点判断
@@ -12233,6 +12203,7 @@ function commonFun(type, prefixUrl, parentProps) {
12233
12203
  formatSource(x, 0, 3, tableSearchForm);
12234
12204
  formatTreeDataSource(x, 1, 4, tableSearchForm, ['code', 'name'], 'channelInfoSon', channelDisabledJude);
12235
12205
  formatTreeDataSource(x, 2, 5, tableSearchForm, ['code', 'name'], 'children', areaDisabledJude);
12206
+ formatSource(x, 3, 7, tableSearchForm, ['brandCode', 'name']);
12236
12207
  });
12237
12208
  modalTableProps = _objectSpread2({
12238
12209
  modalTableTitle: '选择商店',
@@ -12461,7 +12432,7 @@ function commonFun(type, prefixUrl, parentProps) {
12461
12432
  name: 'qp-officeTelephone-like',
12462
12433
  label: '手机号'
12463
12434
  }];
12464
- var _queryHeaderParams13 = getQueryHeadersList({
12435
+ var _queryHeaderParams11 = getQueryHeadersList({
12465
12436
  querySelectHeadersList: querySelectHeadersList,
12466
12437
  extralHeaders: extralHeaders
12467
12438
  });
@@ -12469,7 +12440,7 @@ function commonFun(type, prefixUrl, parentProps) {
12469
12440
  pageSize: 5000,
12470
12441
  currentPage: 1,
12471
12442
  'qp-companyType-eq': 20
12472
- }, getQueryHeadersItem(_queryHeaderParams13, 'qp-companyCode-in'))]).then(function (x) {
12443
+ }, getQueryHeadersItem(_queryHeaderParams11, 'qp-companyCode-in'))]).then(function (x) {
12473
12444
  formatSource(x, 0, 2, tableSearchForm);
12474
12445
  });
12475
12446
  modalTableProps = _objectSpread2({
@@ -12575,16 +12546,16 @@ function commonFun(type, prefixUrl, parentProps) {
12575
12546
  name: 'qp-email-like',
12576
12547
  label: '邮箱'
12577
12548
  }, {
12578
- name: 'qp-officeTelephone-like',
12549
+ name: 'qp-phone-like',
12579
12550
  label: '手机号'
12580
12551
  }]);
12581
- var _queryHeaderParams14 = getQueryHeadersList({
12552
+ var _queryHeaderParams12 = getQueryHeadersList({
12582
12553
  querySelectHeadersList: querySelectHeadersList,
12583
12554
  extralHeaders: extralHeaders
12584
12555
  });
12585
12556
  Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgViewNode/common/getTreeForOrgViewAndTenant"), {
12586
12557
  'orgViewCode': 'administrative-organization-view'
12587
- }, getQueryHeadersItem(_queryHeaderParams14, 'qp-code-in'))]).then(function (x) {
12558
+ }, getQueryHeadersItem(_queryHeaderParams12, 'qp-code-in'))]).then(function (x) {
12588
12559
  formatTreeDataSource(x, 0, 2, tableSearchForm, ['code', 'name']);
12589
12560
  });
12590
12561
  modalTableProps = _objectSpread2({
@@ -12635,7 +12606,7 @@ function commonFun(type, prefixUrl, parentProps) {
12635
12606
  dataIndex: 'email'
12636
12607
  }, {
12637
12608
  title: '手机号',
12638
- dataIndex: 'officeTelephone',
12609
+ dataIndex: 'phone',
12639
12610
  defaultSort: 4,
12640
12611
  render: function render(text, record) {
12641
12612
  return handleTextOverflow(text || (record === null || record === void 0 ? void 0 : record.phone));
@@ -12731,17 +12702,17 @@ function commonFun(type, prefixUrl, parentProps) {
12731
12702
  name: 'qp-remark-like',
12732
12703
  label: '备注'
12733
12704
  }];
12734
- var _queryHeaderParams15 = getQueryHeadersList({
12705
+ var _queryHeaderParams13 = getQueryHeadersList({
12735
12706
  querySelectHeadersList: querySelectHeadersList,
12736
12707
  extralHeaders: extralHeaders
12737
12708
  });
12738
12709
  Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/logisCompany"), {
12739
12710
  pageSize: 5000,
12740
12711
  currentPage: 1
12741
- }, getQueryHeadersItem(_queryHeaderParams15, logisCompanyCodeSingleSearchName)), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/printTemplate"), {
12712
+ }, getQueryHeadersItem(_queryHeaderParams13, logisCompanyCodeSingleSearchName)), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/printTemplate"), {
12742
12713
  pageSize: 5000,
12743
12714
  currentPage: 1
12744
- }, getQueryHeadersItem(_queryHeaderParams15, 'qp-sheetTemplateCode-in'))]).then(function (x) {
12715
+ }, getQueryHeadersItem(_queryHeaderParams13, 'qp-sheetTemplateCode-in'))]).then(function (x) {
12745
12716
  formatSource(x, 0, 2, tableSearchForm);
12746
12717
  formatSource(x, 1, 5, tableSearchForm);
12747
12718
  });
@@ -12911,14 +12882,14 @@ function commonFun(type, prefixUrl, parentProps) {
12911
12882
  }
12912
12883
  }
12913
12884
  }];
12914
- var _queryHeaderParams16 = getQueryHeadersList({
12885
+ var _queryHeaderParams14 = getQueryHeadersList({
12915
12886
  querySelectHeadersList: querySelectHeadersList,
12916
12887
  extralHeaders: extralHeaders
12917
12888
  });
12918
12889
  Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/permissionCategory"), {
12919
12890
  pageSize: 5000,
12920
12891
  currentPage: 1
12921
- }, getQueryHeadersItem(_queryHeaderParams16, 'qp-categoryCode-eq'))]).then(function (x) {
12892
+ }, getQueryHeadersItem(_queryHeaderParams14, 'qp-categoryCode-eq'))]).then(function (x) {
12922
12893
  formatSource(x, 0, 2, tableSearchForm);
12923
12894
  });
12924
12895
  modalTableProps = _objectSpread2({
@@ -13015,7 +12986,7 @@ function commonFun(type, prefixUrl, parentProps) {
13015
12986
  }
13016
12987
  }
13017
12988
  }];
13018
- var _queryHeaderParams17 = getQueryHeadersList({
12989
+ var _queryHeaderParams15 = getQueryHeadersList({
13019
12990
  querySelectHeadersList: querySelectHeadersList,
13020
12991
  extralHeaders: extralHeaders
13021
12992
  });
@@ -13023,7 +12994,7 @@ function commonFun(type, prefixUrl, parentProps) {
13023
12994
  'qp-employeeCode-eq': getEmployeeCode(),
13024
12995
  'qp-realOrg-eq': true,
13025
12996
  'qp-status-eq': 10
13026
- }, getQueryHeadersItem(_queryHeaderParams17, 'qp-salesOrgCode-in'))]).then(function (x) {
12997
+ }, getQueryHeadersItem(_queryHeaderParams15, 'qp-salesOrgCode-in'))]).then(function (x) {
13027
12998
  formatSource(x, 0, 2, tableSearchForm);
13028
12999
  });
13029
13000
  modalTableProps = _objectSpread2({
@@ -13129,13 +13100,13 @@ function commonFun(type, prefixUrl, parentProps) {
13129
13100
  },
13130
13101
  initialSource: nodeType
13131
13102
  }];
13132
- var _queryHeaderParams18 = getQueryHeadersList({
13103
+ var _queryHeaderParams16 = getQueryHeadersList({
13133
13104
  querySelectHeadersList: querySelectHeadersList,
13134
13105
  extralHeaders: extralHeaders
13135
13106
  });
13136
13107
  Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgView/getOrgViewListNoPage"), {
13137
13108
  'qp-status-eq': 10
13138
- }, getQueryHeadersItem(_queryHeaderParams18, 'qp-orgViewCode-in'))]).then(function (x) {
13109
+ }, getQueryHeadersItem(_queryHeaderParams16, 'qp-orgViewCode-in'))]).then(function (x) {
13139
13110
  formatSource(x, 0, 2, tableSearchForm);
13140
13111
  });
13141
13112
  modalTableProps = _objectSpread2({
@@ -13461,13 +13432,13 @@ function commonFun(type, prefixUrl, parentProps) {
13461
13432
  },
13462
13433
  initialSource: nodeType
13463
13434
  }];
13464
- var _queryHeaderParams19 = getQueryHeadersList({
13435
+ var _queryHeaderParams17 = getQueryHeadersList({
13465
13436
  querySelectHeadersList: querySelectHeadersList,
13466
13437
  extralHeaders: extralHeaders
13467
13438
  });
13468
13439
  Promise.all([loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/orgView/getOrgViewListNoPage"), {
13469
13440
  'qp-status-eq': 10
13470
- }, getQueryHeadersItem(_queryHeaderParams19, 'qp-orgViewCode-in'))]).then(function (x) {
13441
+ }, getQueryHeadersItem(_queryHeaderParams17, 'qp-orgViewCode-in'))]).then(function (x) {
13471
13442
  formatSource(x, 0, 2, tableSearchForm);
13472
13443
  });
13473
13444
  modalTableProps = _objectSpread2({
@@ -14412,9 +14383,9 @@ var AddSpuSelect = function AddSpuSelect(parProps) {
14412
14383
  value = _useState8[0],
14413
14384
  setValue = _useState8[1];
14414
14385
  var _useState9 = useState([]),
14415
- _useState10 = _slicedToArray(_useState9, 2),
14416
- propertyList = _useState10[0],
14417
- setPropertyList = _useState10[1];
14386
+ _useState0 = _slicedToArray(_useState9, 2),
14387
+ propertyList = _useState0[0],
14388
+ setPropertyList = _useState0[1];
14418
14389
  useEffect(function () {
14419
14390
  if (parProps === null || parProps === void 0 ? void 0 : parProps.isSingleColor) {
14420
14391
  // type: 1 尺码组; 2 配码组
@@ -14837,7 +14808,7 @@ function getStorageVale(storageKeyString) {
14837
14808
  var _storageKeyString$spl = storageKeyString.split('.'),
14838
14809
  _storageKeyString$spl2 = _toArray(_storageKeyString$spl),
14839
14810
  localstorage = _storageKeyString$spl2[0],
14840
- restKeyArrays = _storageKeyString$spl2.slice(1);
14811
+ restKeyArrays = _arrayLikeToArray(_storageKeyString$spl2).slice(1);
14841
14812
  var localStorageInfo = window.localStorage.getItem(localstorage);
14842
14813
  if (!restKeyArrays.length) return localStorageInfo;
14843
14814
  var returnVal = JSON.parse(localStorageInfo || '{}');
@@ -14938,46 +14909,45 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
14938
14909
  requestUtil.get("".concat(url, "?").concat(stringify(paramsData)), {
14939
14910
  headers: headers
14940
14911
  }).then(/*#__PURE__*/function () {
14941
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(res) {
14912
+ var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(res) {
14942
14913
  var _ctx$form;
14943
14914
  var resData, coverData, data, dataList;
14944
- return _regeneratorRuntime().wrap(function _callee$(_context) {
14945
- while (1) switch (_context.prev = _context.next) {
14915
+ return _regenerator().w(function (_context) {
14916
+ while (1) switch (_context.n) {
14946
14917
  case 0:
14947
14918
  resData = (res === null || res === void 0 ? void 0 : res.data) || [];
14948
14919
  if (!judgeIsRequestSuccess(resData)) {
14949
- _context.next = 13;
14920
+ _context.n = 4;
14950
14921
  break;
14951
14922
  }
14952
14923
  data = resData.data;
14953
14924
  if (!remoteSource.converter) {
14954
- _context.next = 9;
14925
+ _context.n = 2;
14955
14926
  break;
14956
14927
  }
14957
- _context.next = 6;
14928
+ _context.n = 1;
14958
14929
  return remoteSource.converter({
14959
14930
  data: [data]
14960
14931
  });
14961
- case 6:
14962
- coverData = _context.sent;
14963
- _context.next = 11;
14932
+ case 1:
14933
+ coverData = _context.v;
14934
+ _context.n = 3;
14964
14935
  break;
14965
- case 9:
14936
+ case 2:
14966
14937
  dataList = data && Array.isArray(data) ? data : data && [data] || [];
14967
14938
  coverData = dataList.length && dataList.map(function (ites) {
14968
14939
  return _mapSearchTree(ites);
14969
14940
  }) || [];
14970
- case 11:
14971
- _context.next = 14;
14941
+ case 3:
14942
+ _context.n = 5;
14972
14943
  break;
14973
- case 13:
14944
+ case 4:
14974
14945
  coverData = [];
14975
- case 14:
14946
+ case 5:
14976
14947
  setTreeData(coverData);
14977
14948
  ctx === null || ctx === void 0 ? void 0 : (_ctx$form = ctx.form) === null || _ctx$form === void 0 ? void 0 : _ctx$form.setFieldSource(ctx.name, coverData);
14978
- case 16:
14979
- case "end":
14980
- return _context.stop();
14949
+ case 6:
14950
+ return _context.a(2);
14981
14951
  }
14982
14952
  }, _callee);
14983
14953
  }));
@@ -17380,7 +17350,9 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
17380
17350
  title = _ref.title,
17381
17351
  pathToRegexp = _ref.pathToRegexp,
17382
17352
  backHistoryPath = _ref.backHistoryPath,
17383
- onBack = _ref.onBack;
17353
+ onBack = _ref.onBack,
17354
+ tradeType = _ref.tradeType,
17355
+ fromStatus = _ref.fromStatus;
17384
17356
  var _useState3 = useState(false),
17385
17357
  _useState4 = _slicedToArray(_useState3, 2),
17386
17358
  isFullScreen = _useState4[0],
@@ -17463,14 +17435,50 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
17463
17435
  }
17464
17436
  }
17465
17437
  };
17438
+ var getFlowButtons = function getFlowButtons() {
17439
+ try {
17440
+ return JSON.parse(localStorage.getItem('BUSINESS_FLOW_BUTTONS') || '[]');
17441
+ } catch (e) {
17442
+ return [];
17443
+ }
17444
+ };
17445
+ var filterByFlowRules = function filterByFlowRules(list, ctx) {
17446
+ var _find;
17447
+ var flowList = getFlowButtons();
17448
+ if (!(flowList === null || flowList === void 0 ? void 0 : flowList.length) || typeof ctx.tradeType !== 'number') return list;
17449
+ var entry = flowList.find(function (i) {
17450
+ return (i === null || i === void 0 ? void 0 : i.tradeType) === ctx.tradeType;
17451
+ });
17452
+ if (!entry) return list;
17453
+ var ctrlSet = new Set(((entry === null || entry === void 0 ? void 0 : entry.controlButtons) || []).filter(Boolean));
17454
+ var statButtons = ((_find = ((entry === null || entry === void 0 ? void 0 : entry.config) || []).find(function (c) {
17455
+ return (c === null || c === void 0 ? void 0 : c.fromStatus) === ctx.status;
17456
+ })) === null || _find === void 0 ? void 0 : _find.buttons) || [];
17457
+ var allowedSet = new Set((statButtons || []).filter(Boolean).filter(function (b) {
17458
+ return ctrlSet.size ? ctrlSet.has(b) : true;
17459
+ }));
17460
+ return list.filter(function (ui) {
17461
+ var _ui$props3, _ui$props4;
17462
+ var uiCode = ui.code || ui.buttonCode || (ui === null || ui === void 0 ? void 0 : (_ui$props3 = ui.props) === null || _ui$props3 === void 0 ? void 0 : _ui$props3.code) || (ui === null || ui === void 0 ? void 0 : (_ui$props4 = ui.props) === null || _ui$props4 === void 0 ? void 0 : _ui$props4.buttonCode);
17463
+ if (!uiCode) return true;
17464
+ if (ctrlSet.size && !ctrlSet.has(uiCode)) return true; // 非流程控制按钮不处理
17465
+ return allowedSet.has(uiCode);
17466
+ });
17467
+ };
17466
17468
  var renderPageActionList = function renderPageActionList(actionLists) {
17467
17469
  var _actionLists$;
17468
17470
  var authButton = localStorage.getItem(getMenuAuthDataKey()) ? JSON.parse(localStorage.getItem(getMenuAuthDataKey())) : [];
17469
17471
  var visibleActions = actionLists.filter(function (action) {
17470
- return (action.visible && action.visible !== 'false' || judgeIsEmpty$1(action.visible)) && (!shouldUseAuth() || judgeIsEmpty$1(action.code) || authButton.filter(function (item) {
17472
+ return (action.visible && action.visible !== 'false' || judgeIsEmpty$1(action.visible)) && (!shouldUseAuth() || judgeIsEmpty$1(action.code) || authButton.some(function (item) {
17471
17473
  return item === action.code;
17472
17474
  }));
17473
17475
  });
17476
+ if (typeof tradeType === 'number') {
17477
+ visibleActions = filterByFlowRules(visibleActions, {
17478
+ tradeType: tradeType,
17479
+ status: fromStatus
17480
+ });
17481
+ }
17474
17482
  var renderButton = function renderButton(item, type) {
17475
17483
  return /*#__PURE__*/React$1.createElement(Button, _objectSpread2({
17476
17484
  type: type || 'primary',
@@ -17583,6 +17591,68 @@ var DetailWrapper = /*#__PURE__*/React$1.memo(function (_ref) {
17583
17591
  }
17584
17592
  return true;
17585
17593
  });
17594
+ var processDetailButtonsVisible = function processDetailButtonsVisible(buttons, params) {
17595
+ var _ref4 = params || {},
17596
+ tradeType = _ref4.tradeType,
17597
+ fromStatus = _ref4.fromStatus;
17598
+ var getFlowButtons = function getFlowButtons() {
17599
+ try {
17600
+ return JSON.parse(localStorage.getItem('BUSINESS_FLOW_BUTTONS') || '[]');
17601
+ } catch (e) {
17602
+ return [];
17603
+ }
17604
+ };
17605
+ var evalVisible = function evalVisible(v, ctx) {
17606
+ if (typeof v === 'string') {
17607
+ var expr = v.replace(/^#\{|\}$/g, '');
17608
+ try {
17609
+ var keys = Object.keys(ctx || {});
17610
+ var vals = keys.map(function (k) {
17611
+ return ctx[k];
17612
+ });
17613
+ // eslint-disable-next-line no-new-func
17614
+ return Function.apply(void 0, keys.concat(["return (".concat(expr, ");")])).apply(void 0, _toConsumableArray(vals));
17615
+ } catch (e) {
17616
+ return true;
17617
+ }
17618
+ }
17619
+ if (v === undefined) return true;
17620
+ return !!v;
17621
+ };
17622
+ var ctrlSet = new Set();
17623
+ var allowedSet = new Set();
17624
+ if (typeof tradeType === 'number') {
17625
+ var flowList = getFlowButtons();
17626
+ var entry = flowList.find(function (i) {
17627
+ return (i === null || i === void 0 ? void 0 : i.tradeType) === tradeType;
17628
+ });
17629
+ if (entry) {
17630
+ var _find2;
17631
+ ctrlSet = new Set(((entry === null || entry === void 0 ? void 0 : entry.controlButtons) || []).filter(Boolean));
17632
+ var statButtons = ((_find2 = ((entry === null || entry === void 0 ? void 0 : entry.config) || []).find(function (c) {
17633
+ return (c === null || c === void 0 ? void 0 : c.fromStatus) === fromStatus;
17634
+ })) === null || _find2 === void 0 ? void 0 : _find2.buttons) || [];
17635
+ allowedSet = new Set((statButtons || []).filter(Boolean).filter(function (b) {
17636
+ return ctrlSet.size ? ctrlSet.has(b) : true;
17637
+ }));
17638
+ }
17639
+ }
17640
+ var processed = (buttons || []).map(function (btn) {
17641
+ var visBase = evalVisible(btn === null || btn === void 0 ? void 0 : btn.visible, params);
17642
+ var vis = visBase;
17643
+ if (typeof tradeType === 'number' && ctrlSet && allowedSet && (btn === null || btn === void 0 ? void 0 : btn.code)) {
17644
+ if (ctrlSet.size === 0 || !ctrlSet.has(btn.code)) {
17645
+ vis = visBase;
17646
+ } else {
17647
+ vis = visBase && allowedSet.has(btn.code);
17648
+ }
17649
+ }
17650
+ return _objectSpread2(_objectSpread2({}, btn), {}, {
17651
+ visible: vis
17652
+ });
17653
+ });
17654
+ return processed;
17655
+ };
17586
17656
 
17587
17657
  var css_248z$h = ".bs_home_page_head_wrapper {\n position: sticky;\n background: #fff;\n width: 100%;\n top: 0px;\n z-index: 10;\n}\n.home_page_head {\n display: flex;\n justify-content: space-between;\n align-items: center;\n background-color: #FFFFFF;\n border-bottom: 1px solid #f0f0f0;\n padding: 6px 16px 5px;\n font-weight: 500;\n}\n.home_page_head .home_page_title_wrapper {\n display: flex;\n align-items: center;\n height: 20px;\n line-height: 20px;\n}\n.home_page_head .home_page_title {\n font-family: PingFangSC-Medium;\n font-weight: 600;\n font-size: 16px;\n color: #000000;\n letter-spacing: 0;\n flex-grow: 1;\n padding-right: 10px;\n display: none;\n}\n.home_page_head .ant-breadcrumb {\n display: block !important;\n}\n.home_page_head .ant-breadcrumb .ant-breadcrumb-separator {\n margin: 0 2px;\n}\n.home_page_head .ant-breadcrumb li .bread_name {\n color: #8B8B8B;\n font-size: 12px;\n line-height: 16px;\n cursor: pointer;\n}\n.home_page_head .ant-breadcrumb li .bread_name_last {\n color: #282828;\n}\n";
17588
17658
  styleInject(css_248z$h);
@@ -17876,6 +17946,9 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
17876
17946
  title: '列首',
17877
17947
  dataIndex: 'fixedLeft',
17878
17948
  render: function render(text, record) {
17949
+ if (_this.props.disableColumnFixed) {
17950
+ return null;
17951
+ }
17879
17952
  return /*#__PURE__*/React$1.createElement("span", {
17880
17953
  onClick: function onClick() {
17881
17954
  var sortDataSource = _this.state.sortDataSource;
@@ -17952,6 +18025,9 @@ var SortableTable$1 = /*#__PURE__*/function (_React$Component) {
17952
18025
  title: '列尾',
17953
18026
  dataIndex: 'fixedRight',
17954
18027
  render: function render(text, record) {
18028
+ if (_this.props.disableColumnFixed) {
18029
+ return null;
18030
+ }
17955
18031
  return /*#__PURE__*/React$1.createElement("span", {
17956
18032
  onClick: function onClick() {
17957
18033
  var sortDataSource = _this.state.sortDataSource;
@@ -19201,7 +19277,7 @@ var ResizeableTitle$2 = function ResizeableTitle(props) {
19201
19277
  }, /*#__PURE__*/React$1.createElement("th", _objectSpread2({}, restProps)));
19202
19278
  };
19203
19279
  var BsSulaQueryTable = (function (props) {
19204
- var _rowsRef$current5, _props$expandable, _sortTableRef$current3, _value$exportConfig6;
19280
+ var _rowsRef$current5, _props$expandable, _sortTableRef$current3, _props$tableProps, _value$exportConfig6;
19205
19281
  var bsTableCode = (props === null || props === void 0 ? void 0 : props.tableCode) || window.location.hash; //设置列字段的唯一标识
19206
19282
  var rowsRef = useRef(null);
19207
19283
  // 获取 table columns中所有的 key 防止有的地方是 dataindex
@@ -19279,38 +19355,38 @@ var BsSulaQueryTable = (function (props) {
19279
19355
  };
19280
19356
  var refs = useRef(null);
19281
19357
  var _useState9 = useState(''),
19282
- _useState10 = _slicedToArray(_useState9, 2),
19283
- pagePath = _useState10[0],
19284
- setPagePath = _useState10[1];
19358
+ _useState0 = _slicedToArray(_useState9, 2),
19359
+ pagePath = _useState0[0],
19360
+ setPagePath = _useState0[1];
19285
19361
  var _useLocation = useLocation(),
19286
19362
  pathname = _useLocation.pathname,
19287
19363
  _useLocation$state = _useLocation.state,
19288
19364
  state = _useLocation$state === void 0 ? {} : _useLocation$state;
19289
- var _useState11 = useState(false),
19290
- _useState12 = _slicedToArray(_useState11, 2),
19291
- isFullScreen = _useState12[0],
19292
- setIsFnllScreen = _useState12[1];
19365
+ var _useState1 = useState(false),
19366
+ _useState10 = _slicedToArray(_useState1, 2),
19367
+ isFullScreen = _useState10[0],
19368
+ setIsFnllScreen = _useState10[1];
19293
19369
  // @ts-nocheck
19294
19370
  var value = props;
19295
19371
  var _props$fields = props.fields,
19296
19372
  fields = _props$fields === void 0 ? [] : _props$fields;
19297
- var _useState13 = useState([]),
19298
- _useState14 = _slicedToArray(_useState13, 2),
19299
- showColumn = _useState14[0],
19300
- setShowColumns = _useState14[1]; // 列字段
19373
+ var _useState11 = useState([]),
19374
+ _useState12 = _slicedToArray(_useState11, 2),
19375
+ showColumn = _useState12[0],
19376
+ setShowColumns = _useState12[1]; // 列字段
19301
19377
  var originSearchFields = getSettingFieldOrColumn(getConfigFromlocalstorage(ENUM$1.BROWSER_CACHE.SEARCH_FIELDS_CONDITION), fields, 'searchFields');
19302
- var _useState15 = useState(originSearchFields),
19378
+ var _useState13 = useState(originSearchFields),
19379
+ _useState14 = _slicedToArray(_useState13, 2),
19380
+ showSearchFields = _useState14[0],
19381
+ setShowSearchFields = _useState14[1]; //搜索项字段
19382
+ var _useState15 = useState([]),
19303
19383
  _useState16 = _slicedToArray(_useState15, 2),
19304
- showSearchFields = _useState16[0],
19305
- setShowSearchFields = _useState16[1]; //搜索项字段
19306
- var _useState17 = useState([]),
19384
+ showExportColumn = _useState16[0],
19385
+ setShowExportColumns = _useState16[1]; // 导出列字段
19386
+ var _useState17 = useState(''),
19307
19387
  _useState18 = _slicedToArray(_useState17, 2),
19308
- showExportColumn = _useState18[0],
19309
- setShowExportColumns = _useState18[1]; // 导出列字段
19310
- var _useState19 = useState(''),
19311
- _useState20 = _slicedToArray(_useState19, 2),
19312
- height = _useState20[0],
19313
- setHeight = _useState20[1];
19388
+ height = _useState18[0],
19389
+ setHeight = _useState18[1];
19314
19390
  var sortTableRef = useRef(null);
19315
19391
  var searchTableRef = useRef(null);
19316
19392
  var exportTableRef = useRef(null);
@@ -19563,10 +19639,22 @@ var BsSulaQueryTable = (function (props) {
19563
19639
  };
19564
19640
  }
19565
19641
  }, (value === null || value === void 0 ? void 0 : value.tableProps) || {});
19566
- // @ts-ignore
19567
19642
  if (tableProps === null || tableProps === void 0 ? void 0 : (_tableProps$initialPa = tableProps.initialPaging) === null || _tableProps$initialPa === void 0 ? void 0 : _tableProps$initialPa.pagination) {
19568
- // @ts-ignore
19569
19643
  tableProps.initialPaging.pagination.showSizeChanger = true;
19644
+ // 分页大小改变时,更新本地存储
19645
+ var onShowSizeChange = function onShowSizeChange(current, size) {
19646
+ var allPaginationData = JSON.parse(localStorage.getItem('paginationData') || "{}");
19647
+ allPaginationData[bsTableCode] = size;
19648
+ localStorage.setItem('paginationData', JSON.stringify(allPaginationData || {}));
19649
+ };
19650
+ tableProps.initialPaging.pagination.onShowSizeChange = onShowSizeChange;
19651
+ // 从本地存储中获取分页大小
19652
+ var pageSize = JSON.parse(localStorage.getItem('paginationData') || "{}")[bsTableCode];
19653
+ if (pageSize) {
19654
+ tableProps.initialPaging.pagination.pageSize = pageSize;
19655
+ tableProps.pageSize = pageSize;
19656
+ tableProps.defaultPageSize = pageSize;
19657
+ }
19570
19658
  }
19571
19659
  return tableProps;
19572
19660
  };
@@ -19651,13 +19739,124 @@ var BsSulaQueryTable = (function (props) {
19651
19739
  if (value.rowSelection) {
19652
19740
  value.rowSelection.columnWidth = 50;
19653
19741
  }
19742
+ if (typeof props.tradeType !== 'number') {
19743
+ return _objectSpread2(_objectSpread2({}, value), {}, {
19744
+ actionsRender: actionsRender
19745
+ });
19746
+ }
19747
+ try {
19748
+ var raw = JSON.parse(localStorage.getItem('BUSINESS_FLOW_BUTTONS') || '[]');
19749
+ var entry = raw.find(function (i) {
19750
+ return (i === null || i === void 0 ? void 0 : i.tradeType) === props.tradeType;
19751
+ });
19752
+ if (entry) {
19753
+ var ctrlSet = new Set(((entry === null || entry === void 0 ? void 0 : entry.controlButtons) || []).filter(Boolean));
19754
+ var allowedTopSet = new Set();
19755
+ ((entry === null || entry === void 0 ? void 0 : entry.config) || []).forEach(function (c) {
19756
+ ((c === null || c === void 0 ? void 0 : c.buttons) || []).filter(Boolean).forEach(function (b) {
19757
+ if (!ctrlSet.size || ctrlSet.has(b)) allowedTopSet.add(b);
19758
+ });
19759
+ });
19760
+ console.debug('[FlowCtrl:top]', {
19761
+ ctrlSize: ctrlSet.size,
19762
+ allowedTopSize: allowedTopSet.size
19763
+ });
19764
+ actionsRender = actionsRender.filter(function (ui) {
19765
+ var code = ui === null || ui === void 0 ? void 0 : ui.code;
19766
+ if (!code) return true;
19767
+ if (ctrlSet.size && !ctrlSet.has(code)) return true; // 非流程控制按钮不处理
19768
+ var keep = allowedTopSet.has(code);
19769
+ if (code) console.debug('[FlowCtrl:top-element]', {
19770
+ code: code,
19771
+ keep: keep
19772
+ });
19773
+ return keep;
19774
+ });
19775
+ }
19776
+ } catch (e) {}
19777
+ var remoteDataSource = value === null || value === void 0 ? void 0 : value.remoteDataSource;
19778
+ if (remoteDataSource) {
19779
+ var _ctrlSet = new Set();
19780
+ var btnStatusMap = new Map();
19781
+ try {
19782
+ var _raw = JSON.parse(localStorage.getItem('BUSINESS_FLOW_BUTTONS') || '[]');
19783
+ var _entry = _raw.find(function (i) {
19784
+ return (i === null || i === void 0 ? void 0 : i.tradeType) === props.tradeType;
19785
+ });
19786
+ if (_entry) {
19787
+ _ctrlSet = new Set(((_entry === null || _entry === void 0 ? void 0 : _entry.controlButtons) || []).filter(Boolean));
19788
+ ((_entry === null || _entry === void 0 ? void 0 : _entry.config) || []).forEach(function (c) {
19789
+ ((c === null || c === void 0 ? void 0 : c.buttons) || []).filter(Boolean).forEach(function (b) {
19790
+ if (!_ctrlSet.size || _ctrlSet.has(b)) {
19791
+ var set = btnStatusMap.get(b) || new Set();
19792
+ set.add(c === null || c === void 0 ? void 0 : c.fromStatus);
19793
+ btnStatusMap.set(b, set);
19794
+ }
19795
+ });
19796
+ });
19797
+ }
19798
+ } catch (e) {}
19799
+ var getByPath = function getByPath(obj, path) {
19800
+ if (!obj || !path) return undefined;
19801
+ var parts = path.split('.');
19802
+ var cur = obj;
19803
+ for (var i = 0; i < parts.length; i++) {
19804
+ var _cur;
19805
+ cur = (_cur = cur) === null || _cur === void 0 ? void 0 : _cur[parts[i]];
19806
+ if (cur === undefined) return undefined;
19807
+ }
19808
+ return cur;
19809
+ };
19810
+ var statusPath = props === null || props === void 0 ? void 0 : props.statusFieldPath;
19811
+ var augment = function augment(result) {
19812
+ if (!btnStatusMap || btnStatusMap.size === 0) return result;
19813
+ if (result && Array.isArray(result.list)) {
19814
+ result.list = result.list.map(function (rec) {
19815
+ var _ref2, _ref3, _ref4, _rec$status;
19816
+ var status = statusPath ? getByPath(rec, statusPath) : (_ref2 = (_ref3 = (_ref4 = (_rec$status = rec === null || rec === void 0 ? void 0 : rec.status) !== null && _rec$status !== void 0 ? _rec$status : rec === null || rec === void 0 ? void 0 : rec.orderStatus) !== null && _ref4 !== void 0 ? _ref4 : rec === null || rec === void 0 ? void 0 : rec.flowStatus) !== null && _ref3 !== void 0 ? _ref3 : rec === null || rec === void 0 ? void 0 : rec.tradeStatus) !== null && _ref2 !== void 0 ? _ref2 : rec === null || rec === void 0 ? void 0 : rec.currentStatus;
19817
+ var map = {};
19818
+ btnStatusMap.forEach(function (set, code) {
19819
+ map[code] = set.has(status) ? true : undefined;
19820
+ });
19821
+ return _objectSpread2(_objectSpread2({}, rec), {}, {
19822
+ __flowAllowedMap: map
19823
+ });
19824
+ });
19825
+ }
19826
+ return result;
19827
+ };
19828
+ if (Array.isArray(remoteDataSource.converter)) {
19829
+ var stages = remoteDataSource.converter;
19830
+ var pipeline = function pipeline(args) {
19831
+ var res = args;
19832
+ for (var i = 0; i < stages.length; i++) {
19833
+ res = stages[i](res);
19834
+ }
19835
+ res = augment(res);
19836
+ return res;
19837
+ };
19838
+ remoteDataSource = _objectSpread2(_objectSpread2({}, remoteDataSource), {}, {
19839
+ converter: pipeline
19840
+ });
19841
+ } else if (typeof remoteDataSource.converter === 'function') {
19842
+ var orig = remoteDataSource.converter;
19843
+ var wrap = function wrap(args) {
19844
+ var res = orig(args);
19845
+ return augment(res);
19846
+ };
19847
+ remoteDataSource = _objectSpread2(_objectSpread2({}, remoteDataSource), {}, {
19848
+ converter: wrap
19849
+ });
19850
+ }
19851
+ }
19654
19852
  return _objectSpread2(_objectSpread2({}, value), {}, {
19655
- actionsRender: actionsRender
19853
+ actionsRender: actionsRender,
19854
+ remoteDataSource: remoteDataSource
19656
19855
  });
19657
19856
  };
19658
19857
  var handleResize = function handleResize(index) {
19659
- return function (e, _ref2) {
19660
- var size = _ref2.size;
19858
+ return function (e, _ref5) {
19859
+ var size = _ref5.size;
19661
19860
  setShowColumns(function (columns) {
19662
19861
  var newColumns = _toConsumableArray(columns);
19663
19862
  newColumns[index] = _objectSpread2(_objectSpread2({}, newColumns[index]), {}, {
@@ -19685,11 +19884,66 @@ var BsSulaQueryTable = (function (props) {
19685
19884
  // 优化一下 减少复杂度
19686
19885
  var titleMap = toMapByKey(value.columns, 'title');
19687
19886
  // 加上排序
19887
+ var hasFlowEntry = typeof props.tradeType === 'number' && function () {
19888
+ try {
19889
+ var raw = JSON.parse(localStorage.getItem('BUSINESS_FLOW_BUTTONS') || '[]');
19890
+ return !!raw.find(function (i) {
19891
+ return (i === null || i === void 0 ? void 0 : i.tradeType) === props.tradeType;
19892
+ });
19893
+ } catch (e) {
19894
+ return false;
19895
+ }
19896
+ }();
19897
+ var hasControlRange = typeof props.tradeType === 'number' && function () {
19898
+ try {
19899
+ var raw = JSON.parse(localStorage.getItem('BUSINESS_FLOW_BUTTONS') || '[]');
19900
+ var entry = raw.find(function (i) {
19901
+ return (i === null || i === void 0 ? void 0 : i.tradeType) === props.tradeType;
19902
+ });
19903
+ if (!entry) return false;
19904
+ var _ctrlSet2 = new Set(((entry === null || entry === void 0 ? void 0 : entry.controlButtons) || []).filter(Boolean));
19905
+ return _ctrlSet2.size > 0;
19906
+ } catch (e) {
19907
+ return false;
19908
+ }
19909
+ }();
19910
+ var toExpr = function toExpr(v) {
19911
+ if (typeof v === 'string') return v.replace(/^#\{|\}$/g, '');
19912
+ if (v === undefined) return 'true';
19913
+ return v ? 'true' : 'false';
19914
+ };
19915
+ // 读取当前 tradeType 的控制范围,用于只在控制按钮上追加流程表达式
19916
+ var ctrlSet = new Set();
19917
+ if (hasFlowEntry) {
19918
+ try {
19919
+ var raw = JSON.parse(localStorage.getItem('BUSINESS_FLOW_BUTTONS') || '[]');
19920
+ var entry = raw.find(function (i) {
19921
+ return (i === null || i === void 0 ? void 0 : i.tradeType) === props.tradeType;
19922
+ });
19923
+ if (entry) ctrlSet = new Set(((entry === null || entry === void 0 ? void 0 : entry.controlButtons) || []).filter(Boolean));
19924
+ } catch (e) {}
19925
+ }
19926
+ var augmentPermissionRender = function augmentPermissionRender(arr, set) {
19927
+ return arr.map(function (el) {
19928
+ var code = el === null || el === void 0 ? void 0 : el.code;
19929
+ if (!code) return el;
19930
+ // 非控制范围按钮不追加流程控制,保持原 visible
19931
+ if (!set || set.size === 0 || !set.has(code)) return el;
19932
+ var base = toExpr(el.visible);
19933
+ var flow = "record.__flowAllowedMap['".concat(code, "'] == true");
19934
+ return _objectSpread2(_objectSpread2({}, el), {}, {
19935
+ visible: "#{(".concat(base, ") && (").concat(flow, ")}")
19936
+ });
19937
+ });
19938
+ };
19688
19939
  var cols = showColumn.map(function (i) {
19689
- var _titleMap$renderToStr, _titleMap$renderToStr2;
19940
+ var orig = titleMap[renderToString(i.title)] || {};
19941
+ var origRender = orig.render;
19942
+ var isPerm = orig.isPermissionColumn;
19943
+ var newRender = Array.isArray(origRender) && isPerm && hasFlowEntry && hasControlRange ? augmentPermissionRender(origRender, ctrlSet) : origRender;
19690
19944
  return _objectSpread2(_objectSpread2({}, i), {}, {
19691
- isPermissionColumn: (_titleMap$renderToStr = titleMap[renderToString(i.title)]) === null || _titleMap$renderToStr === void 0 ? void 0 : _titleMap$renderToStr.isPermissionColumn,
19692
- render: (_titleMap$renderToStr2 = titleMap[renderToString(i.title)]) === null || _titleMap$renderToStr2 === void 0 ? void 0 : _titleMap$renderToStr2.render
19945
+ isPermissionColumn: isPerm,
19946
+ render: newRender
19693
19947
  });
19694
19948
  });
19695
19949
  cols.forEach(function (i) {
@@ -19862,6 +20116,7 @@ var BsSulaQueryTable = (function (props) {
19862
20116
  id: "bs-sula-query-table"
19863
20117
  }, /*#__PURE__*/React$1.createElement(MemoQueryTable, _objectSpread2({}, memoConfig)), /*#__PURE__*/React$1.createElement(SortableTable$1, {
19864
20118
  ref: sortTableRef,
20119
+ disableColumnFixed: (_props$tableProps = props.tableProps) === null || _props$tableProps === void 0 ? void 0 : _props$tableProps.isVirtualTable,
19865
20120
  setShowColumns: setResizeShowColumns,
19866
20121
  showColumn: showColumn,
19867
20122
  setInitialTableInfo: setInitialTableInfo,
@@ -19938,7 +20193,7 @@ var matchPath = function matchPath(pathname) {
19938
20193
  if (!match) return null;
19939
20194
  var _match = _toArray(match),
19940
20195
  url = _match[0],
19941
- values = _match.slice(1);
20196
+ values = _arrayLikeToArray(_match).slice(1);
19942
20197
  var isExact = pathname === url;
19943
20198
  if (exact && !isExact) return null;
19944
20199
  return {
@@ -20358,22 +20613,19 @@ function outLogin(_x) {
20358
20613
  return _outLogin.apply(this, arguments);
20359
20614
  }
20360
20615
  function _outLogin() {
20361
- _outLogin = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
20616
+ _outLogin = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(params) {
20362
20617
  var res;
20363
- return _regeneratorRuntime().wrap(function _callee$(_context) {
20364
- while (1) switch (_context.prev = _context.next) {
20618
+ return _regenerator().w(function (_context) {
20619
+ while (1) switch (_context.n) {
20365
20620
  case 0:
20366
- _context.next = 2;
20621
+ _context.n = 1;
20367
20622
  return requestUtil({
20368
20623
  url: '/user/web/loginOut',
20369
20624
  method: 'GET'
20370
20625
  });
20371
- case 2:
20372
- res = _context.sent;
20373
- return _context.abrupt("return", res);
20374
- case 4:
20375
- case "end":
20376
- return _context.stop();
20626
+ case 1:
20627
+ res = _context.v;
20628
+ return _context.a(2, res);
20377
20629
  }
20378
20630
  }, _callee);
20379
20631
  }));
@@ -20500,20 +20752,20 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
20500
20752
  });
20501
20753
  };
20502
20754
  var loginOut = /*#__PURE__*/function () {
20503
- var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
20755
+ var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
20504
20756
  var sessionId;
20505
- return _regeneratorRuntime().wrap(function _callee$(_context) {
20506
- while (1) switch (_context.prev = _context.next) {
20757
+ return _regenerator().w(function (_context) {
20758
+ while (1) switch (_context.n) {
20507
20759
  case 0:
20508
- _context.next = 2;
20760
+ _context.n = 1;
20509
20761
  return getSessionId();
20510
- case 2:
20511
- sessionId = _context.sent;
20512
- _context.next = 5;
20762
+ case 1:
20763
+ sessionId = _context.v;
20764
+ _context.n = 2;
20513
20765
  return outLogin({
20514
20766
  sessionId: sessionId
20515
20767
  });
20516
- case 5:
20768
+ case 2:
20517
20769
  // @ts-ignore
20518
20770
  if (BUILD_TYPE) {
20519
20771
  message$1.success('退出登录成功');
@@ -20523,9 +20775,8 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
20523
20775
  } else {
20524
20776
  setLoginOutPath();
20525
20777
  }
20526
- case 6:
20527
- case "end":
20528
- return _context.stop();
20778
+ case 3:
20779
+ return _context.a(2);
20529
20780
  }
20530
20781
  }, _callee);
20531
20782
  }));
@@ -20612,18 +20863,15 @@ function getStoreByName(_x) {
20612
20863
  return _getStoreByName.apply(this, arguments);
20613
20864
  }
20614
20865
  function _getStoreByName() {
20615
- _getStoreByName = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
20616
- return _regeneratorRuntime().wrap(function _callee$(_context) {
20617
- while (1) switch (_context.prev = _context.next) {
20866
+ _getStoreByName = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(params) {
20867
+ return _regenerator().w(function (_context) {
20868
+ while (1) switch (_context.n) {
20618
20869
  case 0:
20619
- return _context.abrupt("return", requestUtil({
20870
+ return _context.a(2, requestUtil({
20620
20871
  url: '/store-house/orgViewNode/listNoPage',
20621
20872
  method: 'GET',
20622
20873
  params: _objectSpread2({}, params)
20623
20874
  }));
20624
- case 1:
20625
- case "end":
20626
- return _context.stop();
20627
20875
  }
20628
20876
  }, _callee);
20629
20877
  }));
@@ -20658,33 +20906,33 @@ var ChooseStore = function ChooseStore(props) {
20658
20906
  openSelect = _useState8[0],
20659
20907
  setOpenSelect = _useState8[1];
20660
20908
  var _useState9 = useState([]),
20661
- _useState10 = _slicedToArray(_useState9, 2),
20662
- options = _useState10[0],
20663
- setOptions = _useState10[1];
20664
- var _useState11 = useState([]),
20909
+ _useState0 = _slicedToArray(_useState9, 2),
20910
+ options = _useState0[0],
20911
+ setOptions = _useState0[1];
20912
+ var _useState1 = useState([]),
20913
+ _useState10 = _slicedToArray(_useState1, 2),
20914
+ rescouse = _useState10[0],
20915
+ setRescouse = _useState10[1];
20916
+ var _useState11 = useState(''),
20665
20917
  _useState12 = _slicedToArray(_useState11, 2),
20666
- rescouse = _useState12[0],
20667
- setRescouse = _useState12[1];
20668
- var _useState13 = useState(''),
20669
- _useState14 = _slicedToArray(_useState13, 2),
20670
- searchValue = _useState14[0],
20671
- setSearchValue = _useState14[1];
20672
- var _useState15 = useState([{
20918
+ searchValue = _useState12[0],
20919
+ setSearchValue = _useState12[1];
20920
+ var _useState13 = useState([{
20673
20921
  label: name,
20674
20922
  value: code
20675
20923
  }]),
20676
- _useState16 = _slicedToArray(_useState15, 2),
20677
- store = _useState16[0],
20678
- setStore = _useState16[1];
20924
+ _useState14 = _slicedToArray(_useState13, 2),
20925
+ store = _useState14[0],
20926
+ setStore = _useState14[1];
20679
20927
  function fetchUserList(_x, _x2) {
20680
20928
  return _fetchUserList.apply(this, arguments);
20681
20929
  }
20682
20930
  function _fetchUserList() {
20683
- _fetchUserList = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(storeName, init) {
20684
- return _regeneratorRuntime().wrap(function _callee3$(_context3) {
20685
- while (1) switch (_context3.prev = _context3.next) {
20931
+ _fetchUserList = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(storeName, init) {
20932
+ return _regenerator().w(function (_context3) {
20933
+ while (1) switch (_context3.n) {
20686
20934
  case 0:
20687
- return _context3.abrupt("return", getStoreByName({
20935
+ return _context3.a(2, getStoreByName({
20688
20936
  orgName: storeName ? storeName : undefined,
20689
20937
  platCompanyCode: init ? undefined : key,
20690
20938
  'qp-employeeCode-eq': employeeCode || 'EMP231011000002',
@@ -20703,9 +20951,6 @@ var ChooseStore = function ChooseStore(props) {
20703
20951
  };
20704
20952
  });
20705
20953
  }));
20706
- case 1:
20707
- case "end":
20708
- return _context3.stop();
20709
20954
  }
20710
20955
  }, _callee3);
20711
20956
  }));
@@ -20728,20 +20973,19 @@ var ChooseStore = function ChooseStore(props) {
20728
20973
  return debounce$1(loadOptions, debounceTimeout);
20729
20974
  }, [debounceTimeout, key]);
20730
20975
  var changeInput = /*#__PURE__*/function () {
20731
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(str) {
20976
+ var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(str) {
20732
20977
  var res;
20733
- return _regeneratorRuntime().wrap(function _callee$(_context) {
20734
- while (1) switch (_context.prev = _context.next) {
20978
+ return _regenerator().w(function (_context) {
20979
+ while (1) switch (_context.n) {
20735
20980
  case 0:
20736
- _context.next = 2;
20981
+ _context.n = 1;
20737
20982
  return debounceFetcher(str);
20738
- case 2:
20739
- res = _context.sent;
20983
+ case 1:
20984
+ res = _context.v;
20740
20985
  setOptions(res);
20741
20986
  setRescouse(res);
20742
- case 5:
20743
- case "end":
20744
- return _context.stop();
20987
+ case 2:
20988
+ return _context.a(2);
20745
20989
  }
20746
20990
  }, _callee);
20747
20991
  }));
@@ -20750,15 +20994,15 @@ var ChooseStore = function ChooseStore(props) {
20750
20994
  };
20751
20995
  }();
20752
20996
  useEffect(function () {
20753
- _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
20997
+ _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
20754
20998
  var res;
20755
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
20756
- while (1) switch (_context2.prev = _context2.next) {
20999
+ return _regenerator().w(function (_context2) {
21000
+ while (1) switch (_context2.n) {
20757
21001
  case 0:
20758
- _context2.next = 2;
21002
+ _context2.n = 1;
20759
21003
  return fetchUserList(undefined, true);
20760
- case 2:
20761
- res = _context2.sent;
21004
+ case 1:
21005
+ res = _context2.v;
20762
21006
  res.map(function (item, indexNumber) {
20763
21007
  if (item.label === name) {
20764
21008
  setIndex(indexNumber);
@@ -20774,9 +21018,8 @@ var ChooseStore = function ChooseStore(props) {
20774
21018
  });
20775
21019
  setOptions(res);
20776
21020
  setRescouse(res);
20777
- case 6:
20778
- case "end":
20779
- return _context2.stop();
21021
+ case 2:
21022
+ return _context2.a(2);
20780
21023
  }
20781
21024
  }, _callee2);
20782
21025
  }))();
@@ -21825,25 +22068,25 @@ var DrawContent$1 = function DrawContent(_ref) {
21825
22068
  currentOneLevel = _useState8[0],
21826
22069
  setCurrentOneLevel = _useState8[1];
21827
22070
  var _useState9 = useState([]),
21828
- _useState10 = _slicedToArray(_useState9, 2),
21829
- SearhData = _useState10[0],
21830
- setSearchMenuData = _useState10[1];
21831
- var _useState11 = useState(600),
22071
+ _useState0 = _slicedToArray(_useState9, 2),
22072
+ SearhData = _useState0[0],
22073
+ setSearchMenuData = _useState0[1];
22074
+ var _useState1 = useState(600),
22075
+ _useState10 = _slicedToArray(_useState1, 2),
22076
+ rightMenuHeight = _useState10[0],
22077
+ setHeight = _useState10[1];
22078
+ var _useState11 = useState(900),
21832
22079
  _useState12 = _slicedToArray(_useState11, 2),
21833
- rightMenuHeight = _useState12[0],
21834
- setHeight = _useState12[1];
21835
- var _useState13 = useState(900),
22080
+ drawHeight = _useState12[0],
22081
+ setDrawHeight = _useState12[1];
22082
+ var _useState13 = useState(false),
21836
22083
  _useState14 = _slicedToArray(_useState13, 2),
21837
- drawHeight = _useState14[0],
21838
- setDrawHeight = _useState14[1];
22084
+ moreBtnShow = _useState14[0],
22085
+ setMoreBtnShow = _useState14[1];
21839
22086
  var _useState15 = useState(false),
21840
22087
  _useState16 = _slicedToArray(_useState15, 2),
21841
- moreBtnShow = _useState16[0],
21842
- setMoreBtnShow = _useState16[1];
21843
- var _useState17 = useState(false),
21844
- _useState18 = _slicedToArray(_useState17, 2),
21845
- showScroll = _useState18[0],
21846
- setShowScroll = _useState18[1];
22088
+ showScroll = _useState16[0],
22089
+ setShowScroll = _useState16[1];
21847
22090
  useEffect(function () {
21848
22091
  var _originRoutes$find;
21849
22092
  getMenuContentHeight();
@@ -23454,14 +23697,11 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
23454
23697
  },
23455
23698
  menu: {
23456
23699
  request: function () {
23457
- var _request = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
23458
- return _regeneratorRuntime().wrap(function _callee$(_context) {
23459
- while (1) switch (_context.prev = _context.next) {
23700
+ var _request = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
23701
+ return _regenerator().w(function (_context) {
23702
+ while (1) switch (_context.n) {
23460
23703
  case 0:
23461
- return _context.abrupt("return", JSON.parse(localStorage.getItem("customerMenu_".concat(itemPath, "_front")) || '[]'));
23462
- case 1:
23463
- case "end":
23464
- return _context.stop();
23704
+ return _context.a(2, JSON.parse(localStorage.getItem("customerMenu_".concat(itemPath, "_front")) || '[]'));
23465
23705
  }
23466
23706
  }, _callee);
23467
23707
  }));
@@ -23866,31 +24106,31 @@ var index$6 = /*#__PURE__*/forwardRef(function (props, ref) {
23866
24106
  multiTableData = _useState8[0],
23867
24107
  setMmultiTableData = _useState8[1]; //多表头数据
23868
24108
  var _useState9 = useState(10),
23869
- _useState10 = _slicedToArray(_useState9, 2),
23870
- viewCount = _useState10[0],
23871
- setViewCount = _useState10[1]; //虚拟表格每次渲染数量
24109
+ _useState0 = _slicedToArray(_useState9, 2),
24110
+ viewCount = _useState0[0],
24111
+ setViewCount = _useState0[1]; //虚拟表格每次渲染数量
23872
24112
  var itemWidth = 100; // 表格每一项宽度
23873
- var _useState11 = useState((props === null || props === void 0 ? void 0 : props.colHeaderWidth) || 400),
23874
- _useState12 = _slicedToArray(_useState11, 2),
23875
- realColHeaderWidth = _useState12[0],
23876
- setLeftWidth = _useState12[1];
24113
+ var _useState1 = useState((props === null || props === void 0 ? void 0 : props.colHeaderWidth) || 400),
24114
+ _useState10 = _slicedToArray(_useState1, 2),
24115
+ realColHeaderWidth = _useState10[0],
24116
+ setLeftWidth = _useState10[1];
23877
24117
  var viewPort = useRef(null);
23878
24118
  var topScrollBar = useRef(null);
23879
24119
  var leftTableRef = useRef(null);
23880
24120
  //起始渲染item
23881
- var _useState13 = useState(0),
23882
- _useState14 = _slicedToArray(_useState13, 2),
23883
- startIndex = _useState14[0],
23884
- setStartIndex = _useState14[1];
24121
+ var _useState11 = useState(0),
24122
+ _useState12 = _slicedToArray(_useState11, 2),
24123
+ startIndex = _useState12[0],
24124
+ setStartIndex = _useState12[1];
23885
24125
  //结束渲染item
23886
24126
  var endIndex = useMemo(function () {
23887
24127
  return startIndex + viewCount;
23888
24128
  }, [startIndex, viewCount]);
23889
24129
  //表格偏移量
23890
- var _useState15 = useState(0),
23891
- _useState16 = _slicedToArray(_useState15, 2),
23892
- offsetWidth = _useState16[0],
23893
- setOffset = _useState16[1];
24130
+ var _useState13 = useState(0),
24131
+ _useState14 = _slicedToArray(_useState13, 2),
24132
+ offsetWidth = _useState14[0],
24133
+ setOffset = _useState14[1];
23894
24134
  useEffect(function () {
23895
24135
  setTimeout(function () {
23896
24136
  var realLeftTableWidth = leftTableRef.current.clientWidth;
@@ -31194,11 +31434,11 @@ var valueType = {
31194
31434
  };
31195
31435
 
31196
31436
  var getDynamicDict = /*#__PURE__*/function () {
31197
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
31198
- return _regeneratorRuntime().wrap(function _callee$(_context) {
31199
- while (1) switch (_context.prev = _context.next) {
31437
+ var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(dictionaryCode) {
31438
+ return _regenerator().w(function (_context) {
31439
+ while (1) switch (_context.n) {
31200
31440
  case 0:
31201
- _context.next = 2;
31441
+ _context.n = 1;
31202
31442
  return request$2({
31203
31443
  url: "/basic/dictDynamicItem/getDynamicData/".concat(dictionaryCode),
31204
31444
  converter: function converter(_ref2) {
@@ -31211,11 +31451,8 @@ var getDynamicDict = /*#__PURE__*/function () {
31211
31451
  });
31212
31452
  }
31213
31453
  });
31214
- case 2:
31215
- return _context.abrupt("return", _context.sent);
31216
- case 3:
31217
- case "end":
31218
- return _context.stop();
31454
+ case 1:
31455
+ return _context.a(2, _context.v);
31219
31456
  }
31220
31457
  }, _callee);
31221
31458
  }));
@@ -31262,12 +31499,12 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
31262
31499
  value: false
31263
31500
  }];
31264
31501
  var ref = useRef();
31265
- useMount(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
31266
- var _ref$current, source;
31267
- return _regeneratorRuntime().wrap(function _callee$(_context) {
31268
- while (1) switch (_context.prev = _context.next) {
31502
+ useMount(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
31503
+ var _ref$current, source, _t, _t2;
31504
+ return _regenerator().w(function (_context) {
31505
+ while (1) switch (_context.n) {
31269
31506
  case 0:
31270
- _context.next = 2;
31507
+ _context.n = 1;
31271
31508
  return setIsShowAndType(function (prev) {
31272
31509
  if (record.inputType === 20 || record.inputType === 30) {
31273
31510
  return {
@@ -31278,40 +31515,39 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
31278
31515
  }
31279
31516
  return prev;
31280
31517
  });
31281
- case 2:
31518
+ case 1:
31282
31519
  if (!record.dictionaryCode) {
31283
- _context.next = 17;
31520
+ _context.n = 7;
31284
31521
  break;
31285
31522
  }
31286
31523
  if (!(record.choiceType == 20)) {
31287
- _context.next = 7;
31524
+ _context.n = 2;
31288
31525
  break;
31289
31526
  }
31290
- _context.t0 = getDictionarySource(record.dictionaryCode);
31291
- _context.next = 15;
31527
+ _t = getDictionarySource(record.dictionaryCode);
31528
+ _context.n = 6;
31292
31529
  break;
31293
- case 7:
31530
+ case 2:
31294
31531
  if (!(record.choiceType == 30)) {
31295
- _context.next = 13;
31532
+ _context.n = 4;
31296
31533
  break;
31297
31534
  }
31298
- _context.next = 10;
31535
+ _context.n = 3;
31299
31536
  return getDynamicDict(record.dictionaryCode);
31300
- case 10:
31301
- _context.t1 = _context.sent;
31302
- _context.next = 14;
31537
+ case 3:
31538
+ _t2 = _context.v;
31539
+ _context.n = 5;
31303
31540
  break;
31304
- case 13:
31305
- _context.t1 = [];
31306
- case 14:
31307
- _context.t0 = _context.t1;
31308
- case 15:
31309
- source = _context.t0;
31541
+ case 4:
31542
+ _t2 = [];
31543
+ case 5:
31544
+ _t = _t2;
31545
+ case 6:
31546
+ source = _t;
31310
31547
  // @ts-ignore
31311
31548
  ref === null || ref === void 0 ? void 0 : (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.setFieldSource('defaultValue', source);
31312
- case 17:
31313
- case "end":
31314
- return _context.stop();
31549
+ case 7:
31550
+ return _context.a(2);
31315
31551
  }
31316
31552
  }, _callee);
31317
31553
  })));
@@ -31376,10 +31612,10 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
31376
31612
  source: {
31377
31613
  relates: ['dictionaryCode', 'dictionaryCode_dynamic', 'choiceType'],
31378
31614
  type: function () {
31379
- var _type = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
31615
+ var _type = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(_ref3) {
31380
31616
  var form, values, name, relates, source;
31381
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
31382
- while (1) switch (_context2.prev = _context2.next) {
31617
+ return _regenerator().w(function (_context2) {
31618
+ while (1) switch (_context2.n) {
31383
31619
  case 0:
31384
31620
  form = _ref3.form, values = _ref3.values, name = _ref3.name, relates = _ref3.relates;
31385
31621
  if (values[0]) {
@@ -31388,19 +31624,18 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
31388
31624
  form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], getDictionarySource(values[0]));
31389
31625
  }
31390
31626
  if (!values[1]) {
31391
- _context2.next = 9;
31627
+ _context2.n = 2;
31392
31628
  break;
31393
31629
  }
31394
- _context2.next = 5;
31630
+ _context2.n = 1;
31395
31631
  return getDynamicDict(record.dictionaryCode || values[1]);
31396
- case 5:
31397
- source = _context2.sent;
31632
+ case 1:
31633
+ source = _context2.v;
31398
31634
  form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
31399
31635
  form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
31400
31636
  form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], source);
31401
- case 9:
31402
- case "end":
31403
- return _context2.stop();
31637
+ case 2:
31638
+ return _context2.a(2);
31404
31639
  }
31405
31640
  }, _callee2);
31406
31641
  }));
@@ -31856,25 +32091,25 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
31856
32091
  source: {
31857
32092
  relates: ['choiceType', 'inputType'],
31858
32093
  type: function () {
31859
- var _type2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
32094
+ var _type2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(_ref0) {
31860
32095
  var values, name, form, source;
31861
- return _regeneratorRuntime().wrap(function _callee3$(_context3) {
31862
- while (1) switch (_context3.prev = _context3.next) {
32096
+ return _regenerator().w(function (_context3) {
32097
+ while (1) switch (_context3.n) {
31863
32098
  case 0:
31864
- values = _ref10.values, name = _ref10.name, form = _ref10.form;
32099
+ values = _ref0.values, name = _ref0.name, form = _ref0.form;
31865
32100
  if (values[1] === 40) {
31866
32101
  form === null || form === void 0 ? void 0 : form.setFieldValue(name, null);
31867
32102
  form.setFieldVisible(name, false);
31868
32103
  }
31869
32104
  if (!(values[0] === 30)) {
31870
- _context3.next = 10;
32105
+ _context3.n = 2;
31871
32106
  break;
31872
32107
  }
31873
- _context3.next = 5;
32108
+ _context3.n = 1;
31874
32109
  return request$2({
31875
32110
  url: '/basic/dictDynamicItem/queryList',
31876
- converter: function converter(_ref11) {
31877
- var data = _ref11.data;
32111
+ converter: function converter(_ref1) {
32112
+ var data = _ref1.data;
31878
32113
  return data === null || data === void 0 ? void 0 : data.map(function (d) {
31879
32114
  return {
31880
32115
  text: d.dictCode,
@@ -31883,17 +32118,16 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
31883
32118
  });
31884
32119
  }
31885
32120
  });
31886
- case 5:
31887
- source = _context3.sent;
32121
+ case 1:
32122
+ source = _context3.v;
31888
32123
  form === null || form === void 0 ? void 0 : form.setFieldSource(name, source);
31889
32124
  form.setFieldVisible(name, true);
31890
- _context3.next = 11;
32125
+ _context3.n = 3;
31891
32126
  break;
31892
- case 10:
32127
+ case 2:
31893
32128
  form.setFieldVisible(name, false);
31894
- case 11:
31895
- case "end":
31896
- return _context3.stop();
32129
+ case 3:
32130
+ return _context3.a(2);
31897
32131
  }
31898
32132
  }, _callee3);
31899
32133
  }));
@@ -31908,8 +32142,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
31908
32142
  name: 'enumeration',
31909
32143
  label: '维护自定义选项',
31910
32144
  field: {
31911
- type: function type(_ref12) {
31912
- var form = _ref12.form;
32145
+ type: function type(_ref10) {
32146
+ var form = _ref10.form;
31913
32147
  return /*#__PURE__*/React$1.createElement(Button, {
31914
32148
  type: 'link',
31915
32149
  onClick: function onClick() {
@@ -31935,10 +32169,10 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
31935
32169
  dependency: {
31936
32170
  source: {
31937
32171
  relates: ['choiceType'],
31938
- type: function type(_ref13) {
31939
- var values = _ref13.values,
31940
- name = _ref13.name,
31941
- form = _ref13.form;
32172
+ type: function type(_ref11) {
32173
+ var values = _ref11.values,
32174
+ name = _ref11.name,
32175
+ form = _ref11.form;
31942
32176
  if (values[0] === 10) {
31943
32177
  form.setFieldVisible(name, true);
31944
32178
  } else {
@@ -31954,10 +32188,10 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
31954
32188
  dependency: {
31955
32189
  visible: {
31956
32190
  relates: ['choiceType'],
31957
- type: function type(_ref14) {
31958
- var name = _ref14.name,
31959
- values = _ref14.values,
31960
- form = _ref14.form;
32191
+ type: function type(_ref12) {
32192
+ var name = _ref12.name,
32193
+ values = _ref12.values,
32194
+ form = _ref12.form;
31961
32195
  if (values[0] == 330) {
31962
32196
  form.setFieldVisible(name, true);
31963
32197
  } else {
@@ -31981,8 +32215,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
31981
32215
  params: {
31982
32216
  'qp-businessType-eq': record.businessType
31983
32217
  },
31984
- converter: function converter(_ref15) {
31985
- var data = _ref15.data;
32218
+ converter: function converter(_ref13) {
32219
+ var data = _ref13.data;
31986
32220
  return (data === null || data === void 0 ? void 0 : data.map(function (d) {
31987
32221
  return {
31988
32222
  text: d.name,
@@ -32022,8 +32256,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
32022
32256
  'qp-businessType-eq': record.businessType,
32023
32257
  'qp-status-eq': 1
32024
32258
  },
32025
- converter: function converter(_ref16) {
32026
- var data = _ref16.data;
32259
+ converter: function converter(_ref14) {
32260
+ var data = _ref14.data;
32027
32261
  return (data === null || data === void 0 ? void 0 : data.map(function (d) {
32028
32262
  var _d$code;
32029
32263
  return {
@@ -32051,8 +32285,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
32051
32285
  remoteSource: {
32052
32286
  url: lineDetail.moduleType == 1 ? "/basic/planModelField/listNoPage?qp-modelCode-eq=".concat(lineDetail === null || lineDetail === void 0 ? void 0 : lineDetail.moduleRelationId) : "/basic/flow/businessField/metaFieldMapping?metaEntityCode=".concat(lineDetail === null || lineDetail === void 0 ? void 0 : lineDetail.moduleRelationId, "&fieldMapping=").concat(record === null || record === void 0 ? void 0 : record.fieldMapping),
32053
32287
  method: 'get',
32054
- converter: function converter(_ref17) {
32055
- var data = _ref17.data;
32288
+ converter: function converter(_ref15) {
32289
+ var data = _ref15.data;
32056
32290
  if (lineDetail.moduleType == 1) {
32057
32291
  return (data === null || data === void 0 ? void 0 : data.map(function (d) {
32058
32292
  return {
@@ -32078,16 +32312,16 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
32078
32312
  width: 900,
32079
32313
  maskClosable: false,
32080
32314
  onOk: function () {
32081
- var _onOk = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
32315
+ var _onOk = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4() {
32082
32316
  var _ref$current4, _res$editableStatus;
32083
32317
  var res, _res$defaultValue;
32084
- return _regeneratorRuntime().wrap(function _callee4$(_context4) {
32085
- while (1) switch (_context4.prev = _context4.next) {
32318
+ return _regenerator().w(function (_context4) {
32319
+ while (1) switch (_context4.n) {
32086
32320
  case 0:
32087
- _context4.next = 2;
32321
+ _context4.n = 1;
32088
32322
  return ref === null || ref === void 0 ? void 0 : (_ref$current4 = ref.current) === null || _ref$current4 === void 0 ? void 0 : _ref$current4.validateFields();
32089
- case 2:
32090
- res = _context4.sent;
32323
+ case 1:
32324
+ res = _context4.v;
32091
32325
  res.editableStatus = (_res$editableStatus = res.editableStatus) === null || _res$editableStatus === void 0 ? void 0 : _res$editableStatus.join(',');
32092
32326
  res.fieldGroup = record.fieldGroup;
32093
32327
  res.businessType = record.businessType;
@@ -32114,7 +32348,7 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
32114
32348
  delete res.formula;
32115
32349
  delete res.showValue;
32116
32350
  if (!(mode === 'create')) {
32117
- _context4.next = 18;
32351
+ _context4.n = 2;
32118
32352
  break;
32119
32353
  }
32120
32354
  request$2({
@@ -32126,8 +32360,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
32126
32360
  onParentOk();
32127
32361
  }
32128
32362
  });
32129
- return _context4.abrupt("return");
32130
- case 18:
32363
+ return _context4.a(2);
32364
+ case 2:
32131
32365
  request$2({
32132
32366
  url: "/basic/flow/businessField/".concat(record.id),
32133
32367
  method: 'PATCH',
@@ -32137,9 +32371,8 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
32137
32371
  onParentOk();
32138
32372
  }
32139
32373
  });
32140
- case 19:
32141
- case "end":
32142
- return _context4.stop();
32374
+ case 3:
32375
+ return _context4.a(2);
32143
32376
  }
32144
32377
  }, _callee4);
32145
32378
  }));
@@ -32595,21 +32828,21 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
32595
32828
  jsonEditorVal = _useState8[0],
32596
32829
  setJsonEditorVal = _useState8[1];
32597
32830
  var _useState9 = useState({}),
32598
- _useState10 = _slicedToArray(_useState9, 2),
32599
- moduleParams = _useState10[0],
32600
- setModuleParams = _useState10[1];
32601
- var _useState11 = useState('main'),
32831
+ _useState0 = _slicedToArray(_useState9, 2),
32832
+ moduleParams = _useState0[0],
32833
+ setModuleParams = _useState0[1];
32834
+ var _useState1 = useState('main'),
32835
+ _useState10 = _slicedToArray(_useState1, 2),
32836
+ activeKey = _useState10[0],
32837
+ setActiveKey = _useState10[1]; //默认详情页配置
32838
+ var _useState11 = useState({}),
32602
32839
  _useState12 = _slicedToArray(_useState11, 2),
32603
- activeKey = _useState12[0],
32604
- setActiveKey = _useState12[1]; //默认详情页配置
32605
- var _useState13 = useState({}),
32840
+ tablesConfigParams = _useState12[0],
32841
+ setTablesConfigParams = _useState12[1];
32842
+ var _useState13 = useState([]),
32606
32843
  _useState14 = _slicedToArray(_useState13, 2),
32607
- tablesConfigParams = _useState14[0],
32608
- setTablesConfigParams = _useState14[1];
32609
- var _useState15 = useState([]),
32610
- _useState16 = _slicedToArray(_useState15, 2),
32611
- tableJsonEditorValsArr = _useState16[0],
32612
- setTableJsonEditorValsArr = _useState16[1];
32844
+ tableJsonEditorValsArr = _useState14[0],
32845
+ setTableJsonEditorValsArr = _useState14[1];
32613
32846
  useEffect(function () {
32614
32847
  Promise.all([requestUtil.get("/basic/flow/businessFieldGroup/one?moduleType=2&layoutPoint=".concat(pageType))]).then(function (_ref2) {
32615
32848
  var _ref3 = _slicedToArray(_ref2, 1),
@@ -32640,7 +32873,7 @@ var JsonQueryTable = /*#__PURE__*/React$1.memo(function (props) {
32640
32873
  });
32641
32874
  Promise.all(axiosArr).then(function (_ref5) {
32642
32875
  var _ref6 = _toArray(_ref5),
32643
- resArr = _ref6.slice(0);
32876
+ resArr = _arrayLikeToArray(_ref6).slice(0);
32644
32877
  var configParams = {};
32645
32878
  detailTablesSetting.map(function (item, index) {
32646
32879
  var _resArr$index;
@@ -32985,11 +33218,11 @@ function getMetaData(_x) {
32985
33218
 
32986
33219
  // 获取数据
32987
33220
  function _getMetaData() {
32988
- _getMetaData = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(id) {
32989
- return _regeneratorRuntime().wrap(function _callee$(_context) {
32990
- while (1) switch (_context.prev = _context.next) {
33221
+ _getMetaData = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(id) {
33222
+ return _regenerator().w(function (_context) {
33223
+ while (1) switch (_context.n) {
32991
33224
  case 0:
32992
- return _context.abrupt("return", new Promise(function (resolve, reject) {
33225
+ return _context.a(2, new Promise(function (resolve, reject) {
32993
33226
  request$3('/basic/entityProperty/listNoPage', {
32994
33227
  params: {
32995
33228
  'qp-entityId-eq': id
@@ -33001,9 +33234,6 @@ function _getMetaData() {
33001
33234
  reject([]);
33002
33235
  });
33003
33236
  }));
33004
- case 1:
33005
- case "end":
33006
- return _context.stop();
33007
33237
  }
33008
33238
  }, _callee);
33009
33239
  }));
@@ -33207,11 +33437,11 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
33207
33437
  tableState = _useState4[0],
33208
33438
  setTableState = _useState4[1];
33209
33439
  var handleOpen = /*#__PURE__*/function () {
33210
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
33440
+ var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
33211
33441
  var _props$customSelector, _props$customSelector2, _props$ctx4, _props$value, _props$value$map, _props$ctx5, _props$ctx5$form, _props$selectProps;
33212
33442
  var requestConfigNew, metaDataId, metaData, realMetaData, columns, fields, initValue, _queryTableRef$curren, _queryTableRef$curren2, _queryTableRef$curren3;
33213
- return _regeneratorRuntime().wrap(function _callee$(_context) {
33214
- while (1) switch (_context.prev = _context.next) {
33443
+ return _regenerator().w(function (_context) {
33444
+ while (1) switch (_context.n) {
33215
33445
  case 0:
33216
33446
  requestConfigNew = assembleRequest(props.customSelectorConfig, {
33217
33447
  isSearchForm: props.isSearchForm,
@@ -33219,16 +33449,16 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
33219
33449
  searchFormData: searchFormData
33220
33450
  });
33221
33451
  if (requestConfigNew) {
33222
- _context.next = 3;
33452
+ _context.n = 1;
33223
33453
  break;
33224
33454
  }
33225
- return _context.abrupt("return");
33226
- case 3:
33455
+ return _context.a(2);
33456
+ case 1:
33227
33457
  metaDataId = (_props$customSelector = props.customSelectorConfig) === null || _props$customSelector === void 0 ? void 0 : (_props$customSelector2 = _props$customSelector.targetMetaData) === null || _props$customSelector2 === void 0 ? void 0 : _props$customSelector2.id;
33228
- _context.next = 6;
33458
+ _context.n = 2;
33229
33459
  return getMetaData(metaDataId);
33230
- case 6:
33231
- metaData = _context.sent;
33460
+ case 2:
33461
+ metaData = _context.v;
33232
33462
  realMetaData = (metaData === null || metaData === void 0 ? void 0 : metaData.filter(function (item) {
33233
33463
  return (item === null || item === void 0 ? void 0 : item.inputType) != 1;
33234
33464
  })) || [];
@@ -33268,9 +33498,8 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
33268
33498
  // @ts-ignore
33269
33499
  queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$curren = queryTableRef.current) === null || _queryTableRef$curren === void 0 ? void 0 : (_queryTableRef$curren2 = _queryTableRef$curren.tableRef) === null || _queryTableRef$curren2 === void 0 ? void 0 : (_queryTableRef$curren3 = _queryTableRef$curren2.current) === null || _queryTableRef$curren3 === void 0 ? void 0 : _queryTableRef$curren3.bsSetSelectInfo(initValue);
33270
33500
  }
33271
- case 14:
33272
- case "end":
33273
- return _context.stop();
33501
+ case 3:
33502
+ return _context.a(2);
33274
33503
  }
33275
33504
  }, _callee);
33276
33505
  }));
@@ -33373,7 +33602,7 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
33373
33602
  }, [requestConfig, tableState.columns]);
33374
33603
  var rowKey = (_ref3 = (_fieldMappingItem$cod = fieldMappingItem === null || fieldMappingItem === void 0 ? void 0 : fieldMappingItem.codeMappingFrom) !== null && _fieldMappingItem$cod !== void 0 ? _fieldMappingItem$cod : 'id') !== null && _ref3 !== void 0 ? _ref3 : 'code';
33375
33604
  var handleOk = function handleOk(rowData) {
33376
- var _props$selectProps2, _props$customSelector6, _props$customSelector7, _queryTableRef$curren13, _queryTableRef$curren14, _queryTableRef$curren15;
33605
+ var _props$selectProps2, _props$customSelector6, _props$customSelector7, _queryTableRef$curren11, _queryTableRef$curren12, _queryTableRef$curren13;
33377
33606
  var setSource = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
33378
33607
  //多选数据处理
33379
33608
  if (props === null || props === void 0 ? void 0 : (_props$selectProps2 = props.selectProps) === null || _props$selectProps2 === void 0 ? void 0 : _props$selectProps2.multipleForQuery) {
@@ -33384,9 +33613,9 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
33384
33613
  var selectedRows = (queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$curren7 = queryTableRef.current) === null || _queryTableRef$curren7 === void 0 ? void 0 : (_queryTableRef$curren8 = _queryTableRef$curren7.tableRef) === null || _queryTableRef$curren8 === void 0 ? void 0 : (_queryTableRef$curren9 = _queryTableRef$curren8.current) === null || _queryTableRef$curren9 === void 0 ? void 0 : _queryTableRef$curren9.getSelectedRows()) || [];
33385
33614
  var realSelectedRows = selectedRows;
33386
33615
  if (!rowData && (selectedKesys === null || selectedKesys === void 0 ? void 0 : selectedKesys.length) !== (selectedRows === null || selectedRows === void 0 ? void 0 : selectedRows.length)) {
33387
- var _queryTableRef$curren10, _queryTableRef$curren11, _queryTableRef$curren12;
33616
+ var _queryTableRef$curren0, _queryTableRef$curren1, _queryTableRef$curren10;
33388
33617
  // @ts-ignore
33389
- var dataSource = (queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$curren10 = queryTableRef.current) === null || _queryTableRef$curren10 === void 0 ? void 0 : (_queryTableRef$curren11 = _queryTableRef$curren10.tableRef) === null || _queryTableRef$curren11 === void 0 ? void 0 : (_queryTableRef$curren12 = _queryTableRef$curren11.current) === null || _queryTableRef$curren12 === void 0 ? void 0 : _queryTableRef$curren12.getDataSource()) || [];
33618
+ var dataSource = (queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$curren0 = queryTableRef.current) === null || _queryTableRef$curren0 === void 0 ? void 0 : (_queryTableRef$curren1 = _queryTableRef$curren0.tableRef) === null || _queryTableRef$curren1 === void 0 ? void 0 : (_queryTableRef$curren10 = _queryTableRef$curren1.current) === null || _queryTableRef$curren10 === void 0 ? void 0 : _queryTableRef$curren10.getDataSource()) || [];
33390
33619
  realSelectedRows = dataSource === null || dataSource === void 0 ? void 0 : dataSource.filter(function (s) {
33391
33620
  return selectedKesys.includes(s[rowKey]);
33392
33621
  });
@@ -33419,10 +33648,10 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
33419
33648
  });
33420
33649
  }
33421
33650
  mappings.map(function (item) {
33422
- var _props$customSelector10, _props$customSelector11, _props$customSelector12, _props$customSelector13;
33423
- 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]) {
33424
- var _props$customSelector14, _props$customSelector15;
33425
- values["".concat(item.codeMappingTo, "Name")] = rowData[(_props$customSelector14 = props.customSelectorConfig) === null || _props$customSelector14 === void 0 ? void 0 : (_props$customSelector15 = _props$customSelector14.extraData) === null || _props$customSelector15 === void 0 ? void 0 : _props$customSelector15.echoLabel];
33651
+ var _props$customSelector0, _props$customSelector1, _props$customSelector10, _props$customSelector11;
33652
+ if (((_props$customSelector0 = props.customSelectorConfig) === null || _props$customSelector0 === void 0 ? void 0 : (_props$customSelector1 = _props$customSelector0.extraData) === null || _props$customSelector1 === void 0 ? void 0 : _props$customSelector1.echoLabel) && item.codeMappingTo === prop && rowData[(_props$customSelector10 = props.customSelectorConfig) === null || _props$customSelector10 === void 0 ? void 0 : (_props$customSelector11 = _props$customSelector10.extraData) === null || _props$customSelector11 === void 0 ? void 0 : _props$customSelector11.echoLabel]) {
33653
+ var _props$customSelector12, _props$customSelector13;
33654
+ values["".concat(item.codeMappingTo, "Name")] = rowData[(_props$customSelector12 = props.customSelectorConfig) === null || _props$customSelector12 === void 0 ? void 0 : (_props$customSelector13 = _props$customSelector12.extraData) === null || _props$customSelector13 === void 0 ? void 0 : _props$customSelector13.echoLabel];
33426
33655
  }
33427
33656
  values[item.codeMappingTo] = rowData[item.codeMappingFrom];
33428
33657
  });
@@ -33477,10 +33706,10 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
33477
33706
  }
33478
33707
  props.onCancel();
33479
33708
  //@ts-ignore
33480
- queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$curren13 = queryTableRef.current) === null || _queryTableRef$curren13 === void 0 ? void 0 : (_queryTableRef$curren14 = _queryTableRef$curren13.tableRef) === null || _queryTableRef$curren14 === void 0 ? void 0 : (_queryTableRef$curren15 = _queryTableRef$curren14.current) === null || _queryTableRef$curren15 === void 0 ? void 0 : _queryTableRef$curren15.clearRowSelection();
33709
+ queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$curren11 = queryTableRef.current) === null || _queryTableRef$curren11 === void 0 ? void 0 : (_queryTableRef$curren12 = _queryTableRef$curren11.tableRef) === null || _queryTableRef$curren12 === void 0 ? void 0 : (_queryTableRef$curren13 = _queryTableRef$curren12.current) === null || _queryTableRef$curren13 === void 0 ? void 0 : _queryTableRef$curren13.clearRowSelection();
33481
33710
  };
33482
33711
  var config = useMemo(function () {
33483
- var _props$selectProps3, _props$ctx9, _props$value2, _props$ctx10, _props$ctx10$form;
33712
+ var _props$selectProps3, _props$ctx9, _props$value2, _props$ctx0, _props$ctx0$form;
33484
33713
  var returnConfig = {
33485
33714
  size: 'small',
33486
33715
  needPageHeader: false,
@@ -33489,7 +33718,7 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
33489
33718
  rowSelection: (props === null || props === void 0 ? void 0 : (_props$selectProps3 = props.selectProps) === null || _props$selectProps3 === void 0 ? void 0 : _props$selectProps3.multipleForQuery) && !isView ? {
33490
33719
  selectedRowKeys: !(props === null || props === void 0 ? void 0 : (_props$ctx9 = props.ctx) === null || _props$ctx9 === void 0 ? void 0 : _props$ctx9.form) && (props === null || props === void 0 ? void 0 : (_props$value2 = props.value) === null || _props$value2 === void 0 ? void 0 : _props$value2.map(function (v) {
33491
33720
  return v.key || v;
33492
- })) || (props === null || props === void 0 ? void 0 : (_props$ctx10 = props.ctx) === null || _props$ctx10 === void 0 ? void 0 : (_props$ctx10$form = _props$ctx10.form) === null || _props$ctx10$form === void 0 ? void 0 : _props$ctx10$form.getFieldValue(props.id))
33721
+ })) || (props === null || props === void 0 ? void 0 : (_props$ctx0 = props.ctx) === null || _props$ctx0 === void 0 ? void 0 : (_props$ctx0$form = _props$ctx0.form) === null || _props$ctx0$form === void 0 ? void 0 : _props$ctx0$form.getFieldValue(props.id))
33493
33722
  } : false,
33494
33723
  remoteDataSource: remoteDataSource,
33495
33724
  fields: tableState.fields,
@@ -33497,8 +33726,8 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
33497
33726
  rowKey: rowKey,
33498
33727
  tableProps: !isView && {
33499
33728
  rowClassName: function rowClassName(record) {
33500
- var _props$ctx11, _props$value3, _props$ctx12, _props$ctx12$form;
33501
- return record[rowKey] == (!(props === null || props === void 0 ? void 0 : (_props$ctx11 = props.ctx) === null || _props$ctx11 === void 0 ? void 0 : _props$ctx11.form) && ((props === null || props === void 0 ? void 0 : (_props$value3 = props.value) === null || _props$value3 === void 0 ? void 0 : _props$value3.key) || (props === null || props === void 0 ? void 0 : props.value)) || (props === null || props === void 0 ? void 0 : (_props$ctx12 = props.ctx) === null || _props$ctx12 === void 0 ? void 0 : (_props$ctx12$form = _props$ctx12.form) === null || _props$ctx12$form === void 0 ? void 0 : _props$ctx12$form.getFieldValue(props.id))) ? 'tableSelectedRow' : '';
33729
+ var _props$ctx1, _props$value3, _props$ctx10, _props$ctx10$form;
33730
+ return record[rowKey] == (!(props === null || props === void 0 ? void 0 : (_props$ctx1 = props.ctx) === null || _props$ctx1 === void 0 ? void 0 : _props$ctx1.form) && ((props === null || props === void 0 ? void 0 : (_props$value3 = props.value) === null || _props$value3 === void 0 ? void 0 : _props$value3.key) || (props === null || props === void 0 ? void 0 : props.value)) || (props === null || props === void 0 ? void 0 : (_props$ctx10 = props.ctx) === null || _props$ctx10 === void 0 ? void 0 : (_props$ctx10$form = _props$ctx10.form) === null || _props$ctx10$form === void 0 ? void 0 : _props$ctx10$form.getFieldValue(props.id))) ? 'tableSelectedRow' : '';
33502
33731
  },
33503
33732
  onRow: function onRow(record) {
33504
33733
  return {
@@ -33543,10 +33772,10 @@ var CustomSelectorModal = /*#__PURE__*/forwardRef(function (props, ref) {
33543
33772
  }, "\u63D0\u4EA4"), /*#__PURE__*/React$1.createElement(Button, {
33544
33773
  type: "default",
33545
33774
  onClick: function onClick() {
33546
- var _queryTableRef$curren16, _queryTableRef$curren17, _queryTableRef$curren18;
33775
+ var _queryTableRef$curren14, _queryTableRef$curren15, _queryTableRef$curren16;
33547
33776
  props.onCancel();
33548
33777
  //@ts-ignore
33549
- queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$curren16 = queryTableRef.current) === null || _queryTableRef$curren16 === void 0 ? void 0 : (_queryTableRef$curren17 = _queryTableRef$curren16.tableRef) === null || _queryTableRef$curren17 === void 0 ? void 0 : (_queryTableRef$curren18 = _queryTableRef$curren17.current) === null || _queryTableRef$curren18 === void 0 ? void 0 : _queryTableRef$curren18.clearRowSelection();
33778
+ queryTableRef === null || queryTableRef === void 0 ? void 0 : (_queryTableRef$curren14 = queryTableRef.current) === null || _queryTableRef$curren14 === void 0 ? void 0 : (_queryTableRef$curren15 = _queryTableRef$curren14.tableRef) === null || _queryTableRef$curren15 === void 0 ? void 0 : (_queryTableRef$curren16 = _queryTableRef$curren15.current) === null || _queryTableRef$curren16 === void 0 ? void 0 : _queryTableRef$curren16.clearRowSelection();
33550
33779
  }
33551
33780
  }, "\u53D6\u6D88"))));
33552
33781
  });
@@ -33770,19 +33999,19 @@ var BsCascader = function BsCascader(_ref) {
33770
33999
  _useState2 = _slicedToArray(_useState, 2),
33771
34000
  handSource = _useState2[0],
33772
34001
  setHandSource = _useState2[1];
33773
- useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
34002
+ useEffect(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
33774
34003
  var resData, data;
33775
- return _regeneratorRuntime().wrap(function _callee$(_context) {
33776
- while (1) switch (_context.prev = _context.next) {
34004
+ return _regenerator().w(function (_context) {
34005
+ while (1) switch (_context.n) {
33777
34006
  case 0:
33778
34007
  if (!(!source && initRequestSource)) {
33779
- _context.next = 6;
34008
+ _context.n = 2;
33780
34009
  break;
33781
34010
  }
33782
- _context.next = 3;
34011
+ _context.n = 1;
33783
34012
  return initRequestSource();
33784
- case 3:
33785
- resData = _context.sent;
34013
+ case 1:
34014
+ resData = _context.v;
33786
34015
  data = (resData === null || resData === void 0 ? void 0 : resData.map(function (item) {
33787
34016
  return _objectSpread2(_objectSpread2({}, item), {}, {
33788
34017
  label: item.text,
@@ -33790,9 +34019,8 @@ var BsCascader = function BsCascader(_ref) {
33790
34019
  });
33791
34020
  })) || [];
33792
34021
  setHandSource(data);
33793
- case 6:
33794
- case "end":
33795
- return _context.stop();
34022
+ case 2:
34023
+ return _context.a(2);
33796
34024
  }
33797
34025
  }, _callee);
33798
34026
  })), []);
@@ -33922,20 +34150,17 @@ function getRegularThresholdRange(_x) {
33922
34150
  return _getRegularThresholdRange.apply(this, arguments);
33923
34151
  }
33924
34152
  function _getRegularThresholdRange() {
33925
- _getRegularThresholdRange = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
33926
- return _regeneratorRuntime().wrap(function _callee$(_context) {
33927
- while (1) switch (_context.prev = _context.next) {
34153
+ _getRegularThresholdRange = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(params) {
34154
+ return _regenerator().w(function (_context) {
34155
+ while (1) switch (_context.n) {
33928
34156
  case 0:
33929
- return _context.abrupt("return", requestUtil({
34157
+ return _context.a(2, requestUtil({
33930
34158
  url: "/basic/regularThresholdRange/getVals/".concat(params.queryIdentify),
33931
34159
  method: 'POST',
33932
34160
  data: _objectSpread2(_objectSpread2({}, params), {}, {
33933
34161
  queryIdentify: undefined
33934
34162
  })
33935
34163
  }));
33936
- case 1:
33937
- case "end":
33938
- return _context.stop();
33939
34164
  }
33940
34165
  }, _callee);
33941
34166
  }));
@@ -34076,24 +34301,24 @@ var RuleField = /*#__PURE__*/function (_Component) {
34076
34301
  };
34077
34302
  //规则对象属性枚举值查询处理 queryIdentify有值是表示该属性有枚举选择
34078
34303
  _this.getRegularThresholdRange = /*#__PURE__*/function () {
34079
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
34304
+ var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(queryIdentify, propertyCode, queryIdentifyType) {
34080
34305
  var thresholdQuery, extraRequestUrl, querParams, needQueryList, res;
34081
- return _regeneratorRuntime().wrap(function _callee$(_context) {
34082
- while (1) switch (_context.prev = _context.next) {
34306
+ return _regenerator().w(function (_context) {
34307
+ while (1) switch (_context.n) {
34083
34308
  case 0:
34084
34309
  if (queryIdentify) {
34085
- _context.next = 2;
34310
+ _context.n = 1;
34086
34311
  break;
34087
34312
  }
34088
- return _context.abrupt("return");
34089
- case 2:
34313
+ return _context.a(2);
34314
+ case 1:
34090
34315
  thresholdQuery = _this.state.thresholdQuery;
34091
34316
  extraRequestUrl = '';
34092
34317
  querParams = setParams(propertyCode, thresholdQuery);
34093
34318
  if (!queryIdentityInfo.find(function (item) {
34094
34319
  return item.identity == propertyCode;
34095
34320
  })) {
34096
- _context.next = 10;
34321
+ _context.n = 3;
34097
34322
  break;
34098
34323
  }
34099
34324
  //判断查询属性枚举时有没有必传参数,如果必传参数没有值则不调用查询接口
@@ -34107,15 +34332,15 @@ var RuleField = /*#__PURE__*/function (_Component) {
34107
34332
  if (!needQueryList.some(function (item) {
34108
34333
  return !querParams[item] || !querParams[item].length;
34109
34334
  })) {
34110
- _context.next = 9;
34335
+ _context.n = 2;
34111
34336
  break;
34112
34337
  }
34113
- return _context.abrupt("return");
34114
- case 9:
34338
+ return _context.a(2);
34339
+ case 2:
34115
34340
  extraRequestUrl = queryIdentityInfo.find(function (item) {
34116
34341
  return item.identity == propertyCode;
34117
34342
  }).requestUrl || '';
34118
- case 10:
34343
+ case 3:
34119
34344
  if (queryIdentifyType === 'dictCodeIdentify') {
34120
34345
  extraRequestUrl = "bscDictItem/selectDictItemsByDictCode"; // 字典接口
34121
34346
  querParams = {
@@ -34126,7 +34351,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
34126
34351
  // querParams = { dictCode: queryIdentify }
34127
34352
  }
34128
34353
  if (!extraRequestUrl) {
34129
- _context.next = 16;
34354
+ _context.n = 4;
34130
34355
  break;
34131
34356
  }
34132
34357
  if (queryIdentify == 'maintain_area_code') {
@@ -34165,43 +34390,42 @@ var RuleField = /*#__PURE__*/function (_Component) {
34165
34390
  return handleData;
34166
34391
  }
34167
34392
  });
34168
- _context.next = 29;
34393
+ _context.n = 8;
34169
34394
  break;
34170
- case 16:
34395
+ case 4:
34171
34396
  if (!(queryIdentifyType == 'objectPropertyListIdentify')) {
34172
- _context.next = 20;
34397
+ _context.n = 5;
34173
34398
  break;
34174
34399
  }
34175
34400
  _this.setState({
34176
34401
  thresholdList: queryIdentify
34177
34402
  });
34178
- _context.next = 29;
34403
+ _context.n = 8;
34179
34404
  break;
34180
- case 20:
34405
+ case 5:
34181
34406
  if (!(queryIdentifyType == 'objectPropertyCodeIdentify')) {
34182
- _context.next = 24;
34407
+ _context.n = 6;
34183
34408
  break;
34184
34409
  }
34185
34410
  // TODO待处理
34186
34411
  _this.setState({
34187
34412
  thresholdList: []
34188
34413
  });
34189
- _context.next = 29;
34414
+ _context.n = 8;
34190
34415
  break;
34191
- case 24:
34416
+ case 6:
34192
34417
  querParams.queryIdentify = queryIdentify;
34193
- _context.next = 27;
34418
+ _context.n = 7;
34194
34419
  return getRegularThresholdRange(querParams);
34195
- case 27:
34196
- res = _context.sent;
34420
+ case 7:
34421
+ res = _context.v;
34197
34422
  if (handleError(res)) {
34198
34423
  _this.setState({
34199
34424
  thresholdList: (res === null || res === void 0 ? void 0 : res.data) || []
34200
34425
  });
34201
34426
  }
34202
- case 29:
34203
- case "end":
34204
- return _context.stop();
34427
+ case 8:
34428
+ return _context.a(2);
34205
34429
  }
34206
34430
  }, _callee);
34207
34431
  }));
@@ -35033,11 +35257,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
35033
35257
  isAll: true,
35034
35258
  needNameAndCode: true,
35035
35259
  notChangeOnSelect: true,
35036
- initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
35037
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
35038
- while (1) switch (_context2.prev = _context2.next) {
35260
+ initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
35261
+ return _regenerator().w(function (_context2) {
35262
+ while (1) switch (_context2.n) {
35039
35263
  case 0:
35040
- _context2.next = 2;
35264
+ _context2.n = 1;
35041
35265
  return request$2({
35042
35266
  url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
35043
35267
  method: 'get',
@@ -35054,11 +35278,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
35054
35278
  return handleData;
35055
35279
  }
35056
35280
  });
35057
- case 2:
35058
- return _context2.abrupt("return", _context2.sent);
35059
- case 3:
35060
- case "end":
35061
- return _context2.stop();
35281
+ case 1:
35282
+ return _context2.a(2, _context2.v);
35062
35283
  }
35063
35284
  }, _callee2);
35064
35285
  })),
@@ -35082,11 +35303,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
35082
35303
  isAll: true,
35083
35304
  needNameAndCode: true,
35084
35305
  notChangeOnSelect: true,
35085
- initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
35086
- return _regeneratorRuntime().wrap(function _callee3$(_context3) {
35087
- while (1) switch (_context3.prev = _context3.next) {
35306
+ initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3() {
35307
+ return _regenerator().w(function (_context3) {
35308
+ while (1) switch (_context3.n) {
35088
35309
  case 0:
35089
- _context3.next = 2;
35310
+ _context3.n = 1;
35090
35311
  return request$2({
35091
35312
  url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
35092
35313
  method: 'get',
@@ -35103,11 +35324,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
35103
35324
  return handleData;
35104
35325
  }
35105
35326
  });
35106
- case 2:
35107
- return _context3.abrupt("return", _context3.sent);
35108
- case 3:
35109
- case "end":
35110
- return _context3.stop();
35327
+ case 1:
35328
+ return _context3.a(2, _context3.v);
35111
35329
  }
35112
35330
  }, _callee3);
35113
35331
  })),
@@ -35133,11 +35351,11 @@ var RuleField = /*#__PURE__*/function (_Component) {
35133
35351
  isAll: true,
35134
35352
  needNameAndCode: true,
35135
35353
  notChangeOnSelect: true,
35136
- initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
35137
- return _regeneratorRuntime().wrap(function _callee4$(_context4) {
35138
- while (1) switch (_context4.prev = _context4.next) {
35354
+ initRequestSource: /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4() {
35355
+ return _regenerator().w(function (_context4) {
35356
+ while (1) switch (_context4.n) {
35139
35357
  case 0:
35140
- _context4.next = 2;
35358
+ _context4.n = 1;
35141
35359
  return request$2({
35142
35360
  url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
35143
35361
  method: 'get',
@@ -35154,11 +35372,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
35154
35372
  return handleData;
35155
35373
  }
35156
35374
  });
35157
- case 2:
35158
- return _context4.abrupt("return", _context4.sent);
35159
- case 3:
35160
- case "end":
35161
- return _context4.stop();
35375
+ case 1:
35376
+ return _context4.a(2, _context4.v);
35162
35377
  }
35163
35378
  }, _callee4);
35164
35379
  })),
@@ -35845,8 +36060,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
35845
36060
  }
35846
36061
  }));
35847
36062
  } else {
35848
- var _values10;
35849
- var _currentValue9 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values10 = values) === null || _values10 === void 0 ? void 0 : _values10.map(function (s, vIndex) {
36063
+ var _values0;
36064
+ var _currentValue9 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values0 = values) === null || _values0 === void 0 ? void 0 : _values0.map(function (s, vIndex) {
35850
36065
  return {
35851
36066
  key: s,
35852
36067
  label: valueNames[vIndex],
@@ -36056,7 +36271,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
36056
36271
  }
36057
36272
  }
36058
36273
  // 配送方式选择器
36059
- if (dataChoiceBusinessType == 310) {
36274
+ if (dataChoiceBusinessType == 310 || dataChoiceBusinessType == 311) {
36060
36275
  if (INTERVAL_TYPE.indexOf(selectOperation) > -1) {
36061
36276
  return /*#__PURE__*/React$1.createElement(React$1.Fragment, null, /*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
36062
36277
  selectBusinessType: "deliveryMode",
@@ -36070,9 +36285,14 @@ var RuleField = /*#__PURE__*/function (_Component) {
36070
36285
  disabled: disabled,
36071
36286
  labelInValue: true,
36072
36287
  value: values[0],
36073
- requestConfig: {
36288
+ requestConfig: _objectSpread2(_objectSpread2({}, dataChoiceBusinessType === 311 ? {
36289
+ otherParams: {
36290
+ // 配送方式只选择标准配送方式
36291
+ 'qp-recordChannnelCode-eq': 80
36292
+ }
36293
+ } : {}), {}, {
36074
36294
  filterInit: 'qp-code-in'
36075
- },
36295
+ }),
36076
36296
  onChange: function onChange(value) {
36077
36297
  if (dataInputBusinessType === 12) {
36078
36298
  values[0] = value.map(function (i) {
@@ -36102,9 +36322,14 @@ var RuleField = /*#__PURE__*/function (_Component) {
36102
36322
  disabled: disabled,
36103
36323
  labelInValue: true,
36104
36324
  value: values[1],
36105
- requestConfig: {
36325
+ requestConfig: _objectSpread2(_objectSpread2({}, dataChoiceBusinessType === 311 ? {
36326
+ otherParams: {
36327
+ // 配送方式只选择标准配送方式
36328
+ 'qp-recordChannnelCode-eq': 80
36329
+ }
36330
+ } : {}), {}, {
36106
36331
  filterInit: 'qp-code-in'
36107
- },
36332
+ }),
36108
36333
  onChange: function onChange(value) {
36109
36334
  if (dataInputBusinessType === 12) {
36110
36335
  values[1] = value.map(function (i) {
@@ -36124,8 +36349,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
36124
36349
  }
36125
36350
  }));
36126
36351
  } else {
36127
- var _values11;
36128
- var _currentValue10 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values11 = values) === null || _values11 === void 0 ? void 0 : _values11.map(function (s, vIndex) {
36352
+ var _values1;
36353
+ var _currentValue0 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values1 = values) === null || _values1 === void 0 ? void 0 : _values1.map(function (s, vIndex) {
36129
36354
  return {
36130
36355
  key: s,
36131
36356
  label: valueNames[vIndex],
@@ -36147,10 +36372,15 @@ var RuleField = /*#__PURE__*/function (_Component) {
36147
36372
  } : {}),
36148
36373
  disabled: disabled,
36149
36374
  labelInValue: true,
36150
- value: _currentValue10,
36151
- requestConfig: {
36375
+ value: _currentValue0,
36376
+ requestConfig: _objectSpread2(_objectSpread2({}, dataChoiceBusinessType === 311 ? {
36377
+ otherParams: {
36378
+ // 配送方式只选择标准配送方式
36379
+ 'qp-recordChannnelCode-eq': 80
36380
+ }
36381
+ } : {}), {}, {
36152
36382
  filterInit: 'qp-code-in'
36153
- },
36383
+ }),
36154
36384
  onChange: function onChange(value) {
36155
36385
  if (dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1) {
36156
36386
  values = value.map(function (i) {
@@ -36240,8 +36470,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
36240
36470
  }
36241
36471
  }));
36242
36472
  } else {
36243
- var _values12;
36244
- var _currentValue11 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values12 = values) === null || _values12 === void 0 ? void 0 : _values12.map(function (s, vIndex) {
36473
+ var _values10;
36474
+ var _currentValue1 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values10 = values) === null || _values10 === void 0 ? void 0 : _values10.map(function (s, vIndex) {
36245
36475
  return {
36246
36476
  key: s,
36247
36477
  label: valueNames[vIndex],
@@ -36263,7 +36493,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
36263
36493
  } : {}),
36264
36494
  disabled: disabled,
36265
36495
  labelInValue: true,
36266
- value: _currentValue11,
36496
+ value: _currentValue1,
36267
36497
  requestConfig: {
36268
36498
  filterInit: 'qp-code-in'
36269
36499
  },
@@ -36356,8 +36586,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
36356
36586
  }
36357
36587
  }));
36358
36588
  } else {
36359
- var _values13;
36360
- var _currentValue12 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values13 = values) === null || _values13 === void 0 ? void 0 : _values13.map(function (s, vIndex) {
36589
+ var _values11;
36590
+ var _currentValue10 = dataInputBusinessType === 12 || SET_TYPE.indexOf(selectOperation) > -1 ? ((_values11 = values) === null || _values11 === void 0 ? void 0 : _values11.map(function (s, vIndex) {
36361
36591
  return {
36362
36592
  key: s,
36363
36593
  label: valueNames[vIndex],
@@ -36379,7 +36609,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
36379
36609
  } : {}),
36380
36610
  disabled: disabled,
36381
36611
  labelInValue: true,
36382
- value: _currentValue12,
36612
+ value: _currentValue10,
36383
36613
  requestConfig: {
36384
36614
  filterInit: 'qp-brandCode-in'
36385
36615
  },
@@ -36570,8 +36800,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
36570
36800
  }
36571
36801
  }));
36572
36802
  } else {
36573
- var _values14;
36574
- var _currentValue13 = dataInputBusinessType === 12 ? ((_values14 = values) === null || _values14 === void 0 ? void 0 : _values14.map(function (s, vIndex) {
36803
+ var _values12;
36804
+ var _currentValue11 = dataInputBusinessType === 12 ? ((_values12 = values) === null || _values12 === void 0 ? void 0 : _values12.map(function (s, vIndex) {
36575
36805
  return {
36576
36806
  key: s,
36577
36807
  label: valueNames[vIndex]
@@ -36599,7 +36829,7 @@ var RuleField = /*#__PURE__*/function (_Component) {
36599
36829
  isSearchForm: true,
36600
36830
  customSelectorConfig: (others === null || others === void 0 ? void 0 : others.customSelectorConfig) || {},
36601
36831
  disabled: disabled,
36602
- value: _currentValue13,
36832
+ value: _currentValue11,
36603
36833
  onChange: function onChange(value, sourceList) {
36604
36834
  if (dataInputBusinessType === 12) {
36605
36835
  var _value$map3, _sourceList$filter3;
@@ -36919,9 +37149,9 @@ var App$1 = function App(_ref) {
36919
37149
  UpdateState(res);
36920
37150
  };
36921
37151
  var _useState9 = useState(false),
36922
- _useState10 = _slicedToArray(_useState9, 2),
36923
- isModalVisible = _useState10[0],
36924
- setIsModalVisible = _useState10[1];
37152
+ _useState0 = _slicedToArray(_useState9, 2),
37153
+ isModalVisible = _useState0[0],
37154
+ setIsModalVisible = _useState0[1];
36925
37155
  var showModal = function showModal() {
36926
37156
  setIsModalVisible(true);
36927
37157
  };
@@ -37402,27 +37632,26 @@ function RenderCompItem(props) {
37402
37632
  dictData = _useState2[0],
37403
37633
  setDictData = _useState2[1];
37404
37634
  var getDictData = /*#__PURE__*/function () {
37405
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
37635
+ var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
37406
37636
  var _data$map;
37407
37637
  var data;
37408
- return _regeneratorRuntime().wrap(function _callee$(_context) {
37409
- while (1) switch (_context.prev = _context.next) {
37638
+ return _regenerator().w(function (_context) {
37639
+ while (1) switch (_context.n) {
37410
37640
  case 0:
37411
- _context.next = 2;
37641
+ _context.n = 1;
37412
37642
  return request$2({
37413
37643
  url: "/basic/bscDictItem/allItemList?qp-code-eq=".concat(ites.dictionaryCode)
37414
37644
  });
37415
- case 2:
37416
- data = _context.sent;
37645
+ case 1:
37646
+ data = _context.v;
37417
37647
  setDictData(data === null || data === void 0 ? void 0 : (_data$map = data.map) === null || _data$map === void 0 ? void 0 : _data$map.call(data, function (item) {
37418
37648
  return {
37419
37649
  text: item.dictItemName,
37420
37650
  value: item.dictItemCode
37421
37651
  };
37422
37652
  }));
37423
- case 4:
37424
- case "end":
37425
- return _context.stop();
37653
+ case 2:
37654
+ return _context.a(2);
37426
37655
  }
37427
37656
  }, _callee);
37428
37657
  }));
@@ -37663,11 +37892,11 @@ function RenderCompItem(props) {
37663
37892
  needNameAndCode: true,
37664
37893
  notChangeOnSelect: true,
37665
37894
  initRequestSource: function () {
37666
- var _initRequestSource = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
37667
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
37668
- while (1) switch (_context2.prev = _context2.next) {
37895
+ var _initRequestSource = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2() {
37896
+ return _regenerator().w(function (_context2) {
37897
+ while (1) switch (_context2.n) {
37669
37898
  case 0:
37670
- _context2.next = 2;
37899
+ _context2.n = 1;
37671
37900
  return request$2({
37672
37901
  url: '/basic/bscArea/getBscAreaList?qp-level-eq=1&qp-pid-eq=100000',
37673
37902
  method: 'get',
@@ -37685,11 +37914,8 @@ function RenderCompItem(props) {
37685
37914
  return handleData;
37686
37915
  }
37687
37916
  });
37688
- case 2:
37689
- return _context2.abrupt("return", _context2.sent);
37690
- case 3:
37691
- case "end":
37692
- return _context2.stop();
37917
+ case 1:
37918
+ return _context2.a(2, _context2.v);
37693
37919
  }
37694
37920
  }, _callee2);
37695
37921
  }));
@@ -37854,7 +38080,7 @@ function RenderCompItem(props) {
37854
38080
  getPopupContainer: function getPopupContainer() {
37855
38081
  return document.body;
37856
38082
  }
37857
- })) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 310 && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
38083
+ })) || null, ((ites === null || ites === void 0 ? void 0 : ites.inputType) === 20 || (ites === null || ites === void 0 ? void 0 : ites.inputType) === 30) && ((ites === null || ites === void 0 ? void 0 : ites.choiceType) === 310 || (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 311) && (/*#__PURE__*/React$1.createElement(BusinessSearchSelect$1, {
37858
38084
  selectBusinessType: "deliveryMode",
37859
38085
  selectProps: _objectSpread2({
37860
38086
  style: styleCommon,
@@ -37866,9 +38092,14 @@ function RenderCompItem(props) {
37866
38092
  disabled: disabled,
37867
38093
  labelInValue: true,
37868
38094
  value: showValue(ites.code),
37869
- requestConfig: {
38095
+ requestConfig: _objectSpread2(_objectSpread2({}, (ites === null || ites === void 0 ? void 0 : ites.choiceType) === 311 ? {
38096
+ otherParams: {
38097
+ // 配送方式只选择标准配送方式
38098
+ 'qp-recordChannnelCode-eq': 80
38099
+ }
38100
+ } : {}), {}, {
37870
38101
  filterInit: 'qp-code-in'
37871
- },
38102
+ }),
37872
38103
  onChange: function onChange(value) {
37873
38104
  handleEdit(ites.code, value);
37874
38105
  },
@@ -38479,7 +38710,8 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
38479
38710
  display: 'flex',
38480
38711
  marginBottom: '0px',
38481
38712
  padding: '10px 0px'
38482
- }
38713
+ },
38714
+ key: itemDetail.elementId
38483
38715
  }, /*#__PURE__*/React$1.createElement("div", {
38484
38716
  className: 'logical_operate_content',
38485
38717
  style: {
@@ -39739,13 +39971,13 @@ var BaseRule = /*#__PURE__*/forwardRef(function (props, ref) {
39739
39971
  ruleTypeData = _useState8[0],
39740
39972
  setRuleTypeData = _useState8[1];
39741
39973
  var _useState9 = useState([]),
39742
- _useState10 = _slicedToArray(_useState9, 2),
39743
- ruleReturnConfig = _useState10[0],
39744
- setRuleReturnConfig = _useState10[1];
39745
- var _useState11 = useState({}),
39746
- _useState12 = _slicedToArray(_useState11, 2),
39747
- templateData = _useState12[0],
39748
- setTemplateData = _useState12[1];
39974
+ _useState0 = _slicedToArray(_useState9, 2),
39975
+ ruleReturnConfig = _useState0[0],
39976
+ setRuleReturnConfig = _useState0[1];
39977
+ var _useState1 = useState({}),
39978
+ _useState10 = _slicedToArray(_useState1, 2),
39979
+ templateData = _useState10[0],
39980
+ setTemplateData = _useState10[1];
39749
39981
  var loadRuleReturnConfig = function loadRuleReturnConfig(currentSceneId) {
39750
39982
  request$2({
39751
39983
  url: "/basic/ruleTemplate/".concat(currentSceneId),
@@ -40081,25 +40313,25 @@ var index$7 = /*#__PURE__*/forwardRef(function (props, ref) {
40081
40313
  regularDataList = _useState8[0],
40082
40314
  setRegularDataList = _useState8[1];
40083
40315
  var _useState9 = useState([]),
40084
- _useState10 = _slicedToArray(_useState9, 2),
40085
- baseRuleDetailList = _useState10[0],
40086
- setBaseRuleDetailList = _useState10[1]; // 规则实例详情集合
40087
- var _useState11 = useState([]),
40316
+ _useState0 = _slicedToArray(_useState9, 2),
40317
+ baseRuleDetailList = _useState0[0],
40318
+ setBaseRuleDetailList = _useState0[1]; // 规则实例详情集合
40319
+ var _useState1 = useState([]),
40320
+ _useState10 = _slicedToArray(_useState1, 2),
40321
+ systemVariableList = _useState10[0],
40322
+ setSystemVariableList = _useState10[1];
40323
+ var _useState11 = useState(false),
40088
40324
  _useState12 = _slicedToArray(_useState11, 2),
40089
- systemVariableList = _useState12[0],
40090
- setSystemVariableList = _useState12[1];
40325
+ isGetDefRuleDataRes = _useState12[0],
40326
+ setIsGetDefRuleDataRes = _useState12[1]; // 为了在回显的时候辨别异步查询是否已完成,防止提前认为为新增设置了模板数据,导致再渲染编辑时候 输入框defaultValue不再渲染问题
40091
40327
  var _useState13 = useState(false),
40092
40328
  _useState14 = _slicedToArray(_useState13, 2),
40093
- isGetDefRuleDataRes = _useState14[0],
40094
- setIsGetDefRuleDataRes = _useState14[1]; // 为了在回显的时候辨别异步查询是否已完成,防止提前认为为新增设置了模板数据,导致再渲染编辑时候 输入框defaultValue不再渲染问题
40329
+ isGetRuleDataRes = _useState14[0],
40330
+ setIsGetRuleDataRes = _useState14[1];
40095
40331
  var _useState15 = useState(false),
40096
40332
  _useState16 = _slicedToArray(_useState15, 2),
40097
- isGetRuleDataRes = _useState16[0],
40098
- setIsGetRuleDataRes = _useState16[1];
40099
- var _useState17 = useState(false),
40100
- _useState18 = _slicedToArray(_useState17, 2),
40101
- groupOtherPriorityList = _useState18[0],
40102
- setGroupOtherPriorityList = _useState18[1];
40333
+ groupOtherPriorityList = _useState16[0],
40334
+ setGroupOtherPriorityList = _useState16[1];
40103
40335
  var baseRuleRef = useRef();
40104
40336
  var currentSceneName = (datail === null || datail === void 0 ? void 0 : datail.name) || '';
40105
40337
  // 查询规则组下所有规则实例
@@ -40502,4 +40734,4 @@ var SystemLog = function SystemLog(_ref) {
40502
40734
  });
40503
40735
  };
40504
40736
 
40505
- export { AddSelect, AddSkcSelect, AddSkuSelect, AddSpuSelect, AuthButton, BillEntry, BsCascader, index$5 as BsLayout, BsSulaQueryTable, BusinessSearchSelect$1 as BusinessSearchSelect, BusinessTreeSearchSelect$1 as BusinessTreeSearchSelect, index$1 as CheckOneUser, ColumnSettingTable, ColumnsEdit, CommodityEntry, CustomSelector, DataImport, DataValidation, index$3 as DetailPageWrapper, EllipsisTooltip, ExportIcon, index$8 as ExtendedCollapse, GuideWrapper, HandleTotalCount, index$4 as HomePageWrapper, JsonQueryTable, ModalUtils, index$6 as MoreTreeTable, ParagraphCopier, PropertySelector, QueryMutipleInput, QueryMutipleSearchSelect, RuleObjectComponent as RuleComponent, index$7 as RuleSetter, SearchSelect, Section, index$2 as StateFlow, ColumnSettingSulaTable as SulaColumnSettingTable, SystemLog, TableColumnSetting, TreeSearchSelect, authFunc, calculateValidPeriod, checkQuantityAccuracy, _coverToParallel as coverToParallel, createUniqID, downloadExcel, ergodicMenuRoutes, formContainerAndItemLayout, _formatter as formatter, getAccountID, getAccountId, getBreadcrumbNameMap, getCommonInfoKey, getConfigTableColumns, getCurrentTargetBgId, getCurrentTenantId, getDictionarySource, getDictionaryTextByValue, getEmployeeCode, getEmployeeId, getItemDefaultWidth$1 as getItemDefaultWidth, getJoinDictionaryText, getLastKey, getLimitMenuDataKey, getLocalStorageSaveKey, getMenuAuthDataKey, getSessionId, getSkuImg, getTenantList, getUserId, getUserName, go2BackAndClose, handleAntdColumnsSpecialParams, handleBaseUrlPre, handleBeforeUpload, handleBssulaColumnsSpecialParams, handleCommonTimeRender$1 as handleCommonTimeRender, handleConvertResponse, handleError, handleExport, handleExportBarCode, handleJudgeAuthButtons, handleOssUrl, handleRequestAuthHeader, handleRequestHeader, handleRequestUrl, handleStatusBadge, handleTextBreakSpaces, handleTextDouble$1 as handleTextDouble, handleTextDoubleOrId, handleTextLineFeed$1 as handleTextLineFeed, handleTextOverflow$1 as handleTextOverflow, handleTextTooltip, handleTextWarp, handleTextWarpCustom, handleTooltip$1 as handleTooltip, handleTooltipHours$1 as handleTooltipHours, handleUserPhone, judgeIsEmpty, judgeIsRequestError, judgeIsRequestSuccess, keyToWord, memoizeOneFormatter, noEmptyArr, noEmptyArray, paramsControl, parseWidth, precisionQuantity, randomString, readerXlsxToList, removeCurrentTenantId, removeTenantList, renderFixed2, renderNumberText, saveCurrentTenantId, saveTenantList, setConfigTableColumns, shouldUseAuth, socketFunctions, sulaTableRenderTooltip, tableColumnsImage$1 as tableColumnsImage, textIcon, updateGuanDate, userColumns$1 as userColumns, userInfoCard$1 as userInfoCard, uuid, writeListToXlsx };
40737
+ export { AddSelect, AddSkcSelect, AddSkuSelect, AddSpuSelect, AuthButton, BillEntry, BsCascader, index$5 as BsLayout, BsSulaQueryTable, BusinessSearchSelect$1 as BusinessSearchSelect, BusinessTreeSearchSelect$1 as BusinessTreeSearchSelect, index$1 as CheckOneUser, ColumnSettingTable, ColumnsEdit, CommodityEntry, CustomSelector, DataImport, DataValidation, index$3 as DetailPageWrapper, EllipsisTooltip, ExportIcon, index$8 as ExtendedCollapse, GuideWrapper, HandleTotalCount, index$4 as HomePageWrapper, JsonQueryTable, ModalUtils, index$6 as MoreTreeTable, ParagraphCopier, PropertySelector, QueryMutipleInput, QueryMutipleSearchSelect, 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 };