@bit-sun/business-component 2.2.36 → 2.2.38

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 (190) hide show
  1. package/.editorconfig +16 -16
  2. package/.fatherrc.ts +5 -5
  3. package/.gitlab-ci.yml +179 -179
  4. package/.prettierignore +7 -7
  5. package/.prettierrc +11 -11
  6. package/.umirc.ts +74 -74
  7. package/README.md +27 -27
  8. package/dist/components/Business/BsLayouts/Components/AllFunc/drawContent.d.ts +1 -1
  9. package/dist/components/Business/BsLayouts/Components/AllFunc/index.d.ts +1 -1
  10. package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.d.ts +1 -1
  11. package/dist/components/Business/BsLayouts/Components/CustomerMenu/index.d.ts +1 -1
  12. package/dist/components/Business/BsLayouts/Components/RightContent/index.d.ts +2 -2
  13. package/dist/components/Business/BsLayouts/Components/SearchFunc/index.d.ts +2 -2
  14. package/dist/components/Business/BsLayouts/index.d.ts +2 -2
  15. package/dist/components/Business/BsSulaQueryTable/utils.d.ts +2 -2
  16. package/dist/components/Business/SearchSelect/index.d.ts +1 -1
  17. package/dist/components/Functional/SearchSelect/index.d.ts +1 -1
  18. package/dist/index.esm.js +653 -642
  19. package/dist/index.js +653 -642
  20. package/dist/utils/TableUtils.d.ts +2 -2
  21. package/dist/utils/utils.d.ts +1 -1
  22. package/docs/index.md +21 -21
  23. package/lib/assets/drag.svg +17 -17
  24. package/lib/assets/exportFail.svg +37 -37
  25. package/lib/assets/exportProcessing.svg +28 -28
  26. package/lib/assets/exportSuccess.svg +34 -34
  27. package/lib/assets/label_icon_bottom.svg +25 -25
  28. package/lib/assets/upExport.svg +22 -22
  29. package/package.json +77 -77
  30. package/src/assets/32.svg +27 -27
  31. package/src/assets/addIcon.svg +17 -17
  32. package/src/assets/allfunc.svg +27 -27
  33. package/src/assets/arrowRight.svg +24 -24
  34. package/src/assets/btn-delete.svg +29 -29
  35. package/src/assets/btn-edit.svg +19 -19
  36. package/src/assets/btn-more.svg +17 -17
  37. package/src/assets/btn-submit.svg +19 -19
  38. package/src/assets/caidan.svg +11 -11
  39. package/src/assets/close.svg +26 -26
  40. package/src/assets/drag.svg +17 -17
  41. package/src/assets/exportFail.svg +37 -37
  42. package/src/assets/exportProcessing.svg +28 -28
  43. package/src/assets/exportSuccess.svg +34 -34
  44. package/src/assets/fixed-left-active.svg +11 -11
  45. package/src/assets/fixed-left.svg +15 -15
  46. package/src/assets/fixed-right-active.svg +11 -11
  47. package/src/assets/fixed-right.svg +15 -15
  48. package/src/assets/guanbi.svg +15 -15
  49. package/src/assets/icon-quanping.svg +15 -15
  50. package/src/assets/icon-shezhi.svg +17 -17
  51. package/src/assets/label_icon_bottom.svg +25 -25
  52. package/src/assets/list-no-img.svg +21 -21
  53. package/src/assets/morentouxiang-32.svg +23 -23
  54. package/src/assets/scanning.svg +24 -24
  55. package/src/assets/upExport.svg +22 -22
  56. package/src/components/Business/AddSelectBusiness/index.md +161 -161
  57. package/src/components/Business/AddSelectBusiness/index.tsx +861 -861
  58. package/src/components/Business/BsLayouts/Components/AllFunc/drawContent.tsx +111 -111
  59. package/src/components/Business/BsLayouts/Components/AllFunc/index.less +153 -153
  60. package/src/components/Business/BsLayouts/Components/AllFunc/index.tsx +70 -70
  61. package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.less +90 -90
  62. package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.tsx +37 -37
  63. package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/leftTree.tsx +242 -242
  64. package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/rightTree.tsx +384 -384
  65. package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/DrawContent.tsx +285 -285
  66. package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/customMenuHeader.tsx +74 -74
  67. package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/drawContent.less +170 -170
  68. package/src/components/Business/BsLayouts/Components/CustomerMenu/index.less +64 -64
  69. package/src/components/Business/BsLayouts/Components/CustomerMenu/index.tsx +153 -153
  70. package/src/components/Business/BsLayouts/Components/GlobalHeader/index.less +72 -72
  71. package/src/components/Business/BsLayouts/Components/GlobalHeader/index.tsx +157 -157
  72. package/src/components/Business/BsLayouts/Components/RightContent/LoginModal.tsx +85 -85
  73. package/src/components/Business/BsLayouts/Components/RightContent/home.less +218 -218
  74. package/src/components/Business/BsLayouts/Components/RightContent/index.tsx +155 -155
  75. package/src/components/Business/BsLayouts/Components/SearchFunc/index.less +160 -160
  76. package/src/components/Business/BsLayouts/Components/SearchFunc/index.tsx +75 -75
  77. package/src/components/Business/BsLayouts/index.less +79 -79
  78. package/src/components/Business/BsLayouts/index.tsx +1484 -1484
  79. package/src/components/Business/BsLayouts/service.ts +10 -10
  80. package/src/components/Business/BsLayouts/utils.tsx +203 -203
  81. package/src/components/Business/BsSulaQueryTable/SearchItemSetting.tsx +538 -538
  82. package/src/components/Business/BsSulaQueryTable/index.less +219 -219
  83. package/src/components/Business/BsSulaQueryTable/index.tsx +527 -527
  84. package/src/components/Business/BsSulaQueryTable/setting.tsx +802 -802
  85. package/src/components/Business/BsSulaQueryTable/utils.less +65 -65
  86. package/src/components/Business/BsSulaQueryTable/utils.tsx +688 -688
  87. package/src/components/Business/CommodityEntry/index.md +70 -70
  88. package/src/components/Business/CommodityEntry/index.tsx +80 -80
  89. package/src/components/Business/CommonAlert/index.tsx +23 -23
  90. package/src/components/Business/CommonGuideWrapper/index.less +111 -111
  91. package/src/components/Business/CommonGuideWrapper/index.md +39 -39
  92. package/src/components/Business/CommonGuideWrapper/index.tsx +83 -83
  93. package/src/components/Business/DetailPageWrapper/index.less +79 -79
  94. package/src/components/Business/DetailPageWrapper/index.tsx +313 -313
  95. package/src/components/Business/DetailPageWrapper/utils.tsx +100 -100
  96. package/src/components/Business/HomePageWrapper/index.less +33 -33
  97. package/src/components/Business/HomePageWrapper/index.md +45 -45
  98. package/src/components/Business/HomePageWrapper/index.tsx +162 -162
  99. package/src/components/Business/JsonQueryTable/components/FieldsModifyModal.tsx +824 -824
  100. package/src/components/Business/JsonQueryTable/components/FieldsSettingsTable.tsx +201 -201
  101. package/src/components/Business/JsonQueryTable/components/Formula.tsx +205 -205
  102. package/src/components/Business/JsonQueryTable/components/MaintainOptions.tsx +127 -127
  103. package/src/components/Business/JsonQueryTable/configButton/index.js +20 -20
  104. package/src/components/Business/JsonQueryTable/configTree/component/compactArrayView.js +25 -25
  105. package/src/components/Business/JsonQueryTable/configTree/component/compactObjectView.js +30 -30
  106. package/src/components/Business/JsonQueryTable/configTree/index.js +82 -82
  107. package/src/components/Business/JsonQueryTable/configTree/index.less +44 -44
  108. package/src/components/Business/JsonQueryTable/configTree/parser/highlight.js +57 -57
  109. package/src/components/Business/JsonQueryTable/configTree/parser/index.js +124 -124
  110. package/src/components/Business/JsonQueryTable/configTree/render/iconRender.js +29 -29
  111. package/src/components/Business/JsonQueryTable/configTree/render/nameRender.js +22 -22
  112. package/src/components/Business/JsonQueryTable/configTree/treeNode.js +116 -116
  113. package/src/components/Business/JsonQueryTable/drawer/index.tsx +12 -12
  114. package/src/components/Business/JsonQueryTable/function.ts +62 -62
  115. package/src/components/Business/JsonQueryTable/index.less +16 -16
  116. package/src/components/Business/JsonQueryTable/index.md +328 -328
  117. package/src/components/Business/JsonQueryTable/index.tsx +320 -320
  118. package/src/components/Business/JsonQueryTable/jsonEditor/index.js +346 -346
  119. package/src/components/Business/JsonQueryTable/jsonEditor/index.less +22 -22
  120. package/src/components/Business/JsonQueryTable/jsonEditor/lint/basicType.js +147 -147
  121. package/src/components/Business/JsonQueryTable/jsonEditor/lint/index.js +389 -389
  122. package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/actions.js +118 -118
  123. package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/dependency.js +22 -22
  124. package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/index.js +21 -21
  125. package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/request.js +65 -65
  126. package/src/components/Business/JsonQueryTable/static.ts +390 -390
  127. package/src/components/Business/SearchSelect/BusinessUtils.ts +1732 -1731
  128. package/src/components/Business/SearchSelect/common.ts +53 -53
  129. package/src/components/Business/SearchSelect/index.md +1319 -1319
  130. package/src/components/Business/SearchSelect/index.tsx +51 -51
  131. package/src/components/Business/SearchSelect/utils.ts +100 -100
  132. package/src/components/Business/StateFlow/index.less +130 -130
  133. package/src/components/Business/StateFlow/index.md +60 -60
  134. package/src/components/Business/StateFlow/index.tsx +29 -29
  135. package/src/components/Business/TreeSearchSelect/index.md +154 -154
  136. package/src/components/Business/TreeSearchSelect/index.tsx +34 -34
  137. package/src/components/Business/TreeSearchSelect/utils.ts +69 -69
  138. package/src/components/Business/columnSettingTable/columnSetting.tsx +764 -764
  139. package/src/components/Business/columnSettingTable/index.less +247 -247
  140. package/src/components/Business/columnSettingTable/index.md +357 -357
  141. package/src/components/Business/columnSettingTable/index.tsx +232 -232
  142. package/src/components/Business/columnSettingTable/sulaSettingTable.tsx +240 -240
  143. package/src/components/Business/columnSettingTable/utils.tsx +68 -68
  144. package/src/components/Business/moreTreeTable/index.less +99 -99
  145. package/src/components/Business/moreTreeTable/index.md +448 -448
  146. package/src/components/Business/moreTreeTable/index.tsx +368 -365
  147. package/src/components/Business/moreTreeTable/utils.ts +126 -126
  148. package/src/components/Functional/AddSelect/helps.ts +14 -14
  149. package/src/components/Functional/AddSelect/index.less +367 -367
  150. package/src/components/Functional/AddSelect/index.md +155 -155
  151. package/src/components/Functional/AddSelect/index.tsx +1279 -1279
  152. package/src/components/Functional/BillEntry/index.less +371 -371
  153. package/src/components/Functional/BillEntry/index.md +39 -39
  154. package/src/components/Functional/BillEntry/index.tsx +772 -772
  155. package/src/components/Functional/DataImport/index.less +63 -63
  156. package/src/components/Functional/DataImport/index.md +44 -44
  157. package/src/components/Functional/DataImport/index.tsx +695 -695
  158. package/src/components/Functional/DataValidation/index.less +63 -63
  159. package/src/components/Functional/DataValidation/index.md +39 -39
  160. package/src/components/Functional/DataValidation/index.tsx +687 -687
  161. package/src/components/Functional/ExportFunctions/ExportIcon/index.md +37 -37
  162. package/src/components/Functional/ExportFunctions/ExportIcon/index.tsx +59 -59
  163. package/src/components/Functional/QueryMutipleInput/index.less +37 -37
  164. package/src/components/Functional/QueryMutipleInput/index.md +33 -33
  165. package/src/components/Functional/QueryMutipleInput/index.tsx +128 -128
  166. package/src/components/Functional/SearchSelect/index.less +115 -115
  167. package/src/components/Functional/SearchSelect/index.md +141 -141
  168. package/src/components/Functional/SearchSelect/index.tsx +849 -849
  169. package/src/components/Functional/SearchSelect/utils.ts +3 -3
  170. package/src/components/Functional/TreeSearchSelect/index.md +47 -47
  171. package/src/components/Functional/TreeSearchSelect/index.tsx +162 -162
  172. package/src/index.ts +34 -34
  173. package/src/plugin/TableColumnSetting/index.less +247 -247
  174. package/src/plugin/TableColumnSetting/index.md +50 -50
  175. package/src/plugin/TableColumnSetting/index.tsx +724 -724
  176. package/src/plugin/TableColumnSetting/utils.ts +19 -19
  177. package/src/styles/bsDefault.less +1912 -1912
  178. package/src/utils/CheckOneUser/index.md +39 -39
  179. package/src/utils/CheckOneUser/index.ts +51 -51
  180. package/src/utils/LocalstorageUtils.ts +90 -90
  181. package/src/utils/TableUtils.tsx +18 -18
  182. package/src/utils/checkUtils.ts +39 -39
  183. package/src/utils/enumConfig.ts +11 -11
  184. package/src/utils/getFormMode.js +12 -12
  185. package/src/utils/index.ts +3 -3
  186. package/src/utils/requestUtils.ts +34 -34
  187. package/src/utils/serialize.js +7 -7
  188. package/src/utils/utils.ts +183 -183
  189. package/tsconfig.json +29 -29
  190. package/typings.d.ts +4 -4
package/dist/index.esm.js CHANGED
@@ -135,33 +135,6 @@ axios.interceptors.request.use(function (config) {
135
135
  return config;
136
136
  });
137
137
 
138
- function _iterableToArrayLimit(arr, i) {
139
- var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
140
- if (null != _i) {
141
- var _s,
142
- _e,
143
- _x,
144
- _r,
145
- _arr = [],
146
- _n = !0,
147
- _d = !1;
148
- try {
149
- if (_x = (_i = _i.call(arr)).next, 0 === i) {
150
- if (Object(_i) !== _i) return;
151
- _n = !1;
152
- } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
153
- } catch (err) {
154
- _d = !0, _e = err;
155
- } finally {
156
- try {
157
- if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return;
158
- } finally {
159
- if (_d) throw _e;
160
- }
161
- }
162
- return _arr;
163
- }
164
- }
165
138
  function ownKeys(object, enumerableOnly) {
166
139
  var keys = Object.keys(object);
167
140
  if (Object.getOwnPropertySymbols) {
@@ -318,9 +291,14 @@ function _regeneratorRuntime() {
318
291
  };
319
292
  }
320
293
  function maybeInvokeDelegate(delegate, context) {
321
- var methodName = context.method,
322
- method = delegate.iterator[methodName];
323
- if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel;
294
+ var method = delegate.iterator[context.method];
295
+ if (undefined === method) {
296
+ if (context.delegate = null, "throw" === context.method) {
297
+ if (delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
298
+ context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
299
+ }
300
+ return ContinueSentinel;
301
+ }
324
302
  var record = tryCatch(method, delegate.iterator, context.arg);
325
303
  if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
326
304
  var info = record.arg;
@@ -534,7 +512,7 @@ function _defineProperties(target, props) {
534
512
  descriptor.enumerable = descriptor.enumerable || false;
535
513
  descriptor.configurable = true;
536
514
  if ("value" in descriptor) descriptor.writable = true;
537
- Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
515
+ Object.defineProperty(target, descriptor.key, descriptor);
538
516
  }
539
517
  }
540
518
  function _createClass(Constructor, protoProps, staticProps) {
@@ -546,7 +524,6 @@ function _createClass(Constructor, protoProps, staticProps) {
546
524
  return Constructor;
547
525
  }
548
526
  function _defineProperty(obj, key, value) {
549
- key = _toPropertyKey(key);
550
527
  if (key in obj) {
551
528
  Object.defineProperty(obj, key, {
552
529
  value: value,
@@ -675,6 +652,30 @@ function _arrayWithHoles(arr) {
675
652
  function _iterableToArray(iter) {
676
653
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
677
654
  }
655
+ function _iterableToArrayLimit(arr, i) {
656
+ var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
657
+ if (_i == null) return;
658
+ var _arr = [];
659
+ var _n = true;
660
+ var _d = false;
661
+ var _s, _e;
662
+ try {
663
+ for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
664
+ _arr.push(_s.value);
665
+ if (i && _arr.length === i) break;
666
+ }
667
+ } catch (err) {
668
+ _d = true;
669
+ _e = err;
670
+ } finally {
671
+ try {
672
+ if (!_n && _i["return"] != null) _i["return"]();
673
+ } finally {
674
+ if (_d) throw _e;
675
+ }
676
+ }
677
+ return _arr;
678
+ }
678
679
  function _unsupportedIterableToArray(o, minLen) {
679
680
  if (!o) return;
680
681
  if (typeof o === "string") return _arrayLikeToArray(o, minLen);
@@ -694,20 +695,6 @@ function _nonIterableSpread() {
694
695
  function _nonIterableRest() {
695
696
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
696
697
  }
697
- function _toPrimitive(input, hint) {
698
- if (typeof input !== "object" || input === null) return input;
699
- var prim = input[Symbol.toPrimitive];
700
- if (prim !== undefined) {
701
- var res = prim.call(input, hint || "default");
702
- if (typeof res !== "object") return res;
703
- throw new TypeError("@@toPrimitive must return a primitive value.");
704
- }
705
- return (hint === "string" ? String : Number)(input);
706
- }
707
- function _toPropertyKey(arg) {
708
- var key = _toPrimitive(arg, "string");
709
- return typeof key === "symbol" ? key : String(key);
710
- }
711
698
 
712
699
  var checkQuantityAccuracy = function checkQuantityAccuracy(value, accuracy, errorInfo) {
713
700
  var errorMessage = _objectSpread2({
@@ -2279,85 +2266,84 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
2279
2266
  });
2280
2267
  }
2281
2268
  // 数组对象处理,对带有特殊标记的name进行处理
2282
- var _loop = function _loop() {
2269
+ for (var key in params) {
2283
2270
  if (Object.prototype.hasOwnProperty.call(params, key)) {
2284
- var element = params[key];
2285
- if (element && key.indexOf('*number*') >= 0) {
2286
- var dataParams = key.split('*number*');
2287
- dataParams.forEach(function (value, index) {
2288
- params[value] = element[index];
2289
- });
2290
- delete params[key];
2291
- } else if (element && key.indexOf('*address*') >= 0) {
2292
- var _dataParams = key.split('*address*');
2293
- _dataParams.forEach(function (value, index) {
2294
- params[value] = element.PCDCode[index];
2295
- });
2296
- delete params[key];
2297
- } else if (element && key.indexOf('*costType*') >= 0) {
2298
- var _dataParams2 = key.split('*costType*');
2299
- // eslint-disable-next-line prefer-destructuring
2300
- params[_dataParams2[0]] = element[1];
2301
- delete params[key];
2302
- } else if (element && key.indexOf('*fullDate*') >= 0) {
2303
- var _dataParams3 = key.split('*fullDate*');
2304
- _dataParams3.forEach(function (value, index) {
2305
- if (index === 0) {
2306
- params[value] = moment(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
2307
- } else {
2308
- params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
2271
+ (function () {
2272
+ var element = params[key];
2273
+ if (element && key.indexOf('*number*') >= 0) {
2274
+ var dataParams = key.split('*number*');
2275
+ dataParams.forEach(function (value, index) {
2276
+ params[value] = element[index];
2277
+ });
2278
+ delete params[key];
2279
+ } else if (element && key.indexOf('*address*') >= 0) {
2280
+ var _dataParams = key.split('*address*');
2281
+ _dataParams.forEach(function (value, index) {
2282
+ params[value] = element.PCDCode[index];
2283
+ });
2284
+ delete params[key];
2285
+ } else if (element && key.indexOf('*costType*') >= 0) {
2286
+ var _dataParams2 = key.split('*costType*');
2287
+ // eslint-disable-next-line prefer-destructuring
2288
+ params[_dataParams2[0]] = element[1];
2289
+ delete params[key];
2290
+ } else if (element && key.indexOf('*fullDate*') >= 0) {
2291
+ var _dataParams3 = key.split('*fullDate*');
2292
+ _dataParams3.forEach(function (value, index) {
2293
+ if (index === 0) {
2294
+ params[value] = moment(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
2295
+ } else {
2296
+ params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
2297
+ }
2298
+ });
2299
+ delete params[key];
2300
+ } else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
2301
+ var _dataParams4 = key.split('*checkBox*');
2302
+ if (element) {
2303
+ params[_dataParams4[0]] = 0;
2309
2304
  }
2310
- });
2311
- delete params[key];
2312
- } else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
2313
- var _dataParams4 = key.split('*checkBox*');
2314
- if (element) {
2315
- params[_dataParams4[0]] = 0;
2316
- }
2317
- delete params[key];
2318
- } else if (element && key.indexOf('*cascader*') >= 0) {
2319
- var _dataParams5 = key.split('*cascader*');
2320
- params[_dataParams5[0]] = element[element.length - 1];
2321
- delete params[key];
2322
- } else if (element && key.indexOf('*date*') >= 0) {
2323
- var _dataParams6 = key.split('*date*');
2324
- _dataParams6.forEach(function (value, index) {
2325
- if (index === 0) {
2326
- params[value] = moment(element[index]).format('YYYY-MM-DD');
2305
+ delete params[key];
2306
+ } else if (element && key.indexOf('*cascader*') >= 0) {
2307
+ var _dataParams5 = key.split('*cascader*');
2308
+ params[_dataParams5[0]] = element[element.length - 1];
2309
+ delete params[key];
2310
+ } else if (element && key.indexOf('*date*') >= 0) {
2311
+ var _dataParams6 = key.split('*date*');
2312
+ _dataParams6.forEach(function (value, index) {
2313
+ if (index === 0) {
2314
+ params[value] = moment(element[index]).format('YYYY-MM-DD');
2315
+ } else {
2316
+ params[value] = moment(element[index]).format('YYYY-MM-DD');
2317
+ }
2318
+ });
2319
+ delete params[key];
2320
+ } else if (element && key.indexOf('*') >= 0) {
2321
+ var _dataParams7 = key.split('*');
2322
+ _dataParams7.forEach(function (value, index) {
2323
+ params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
2324
+ });
2325
+ delete params[key];
2326
+ } else if (element && key.indexOf('_selectNumberRange') >= 0) {
2327
+ // key = xxxxx_selectNumberRange qp-xxxxx-gt
2328
+ var _dataParams8 = key.split('_selectNumberRange')[0];
2329
+ if (params[key][0] === 'range') {
2330
+ if (params[key][1][0]) {
2331
+ params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
2332
+ }
2333
+ if (params[key][1][1]) {
2334
+ params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
2335
+ }
2327
2336
  } else {
2328
- params[value] = moment(element[index]).format('YYYY-MM-DD');
2329
- }
2330
- });
2331
- delete params[key];
2332
- } else if (element && key.indexOf('*') >= 0) {
2333
- var _dataParams7 = key.split('*');
2334
- _dataParams7.forEach(function (value, index) {
2335
- params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
2336
- });
2337
- delete params[key];
2338
- } else if (element && key.indexOf('_selectNumberRange') >= 0) {
2339
- // key = xxxxx_selectNumberRange qp-xxxxx-gt
2340
- var _dataParams8 = key.split('_selectNumberRange')[0];
2341
- if (params[key][0] === 'range') {
2342
- if (params[key][1][0]) {
2343
- params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
2344
- }
2345
- if (params[key][1][1]) {
2346
- params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
2337
+ params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
2347
2338
  }
2348
- } else {
2349
- params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
2339
+ delete params[key];
2340
+ } else if (Array.isArray(element)) {
2341
+ params[key] = element.join(',');
2342
+ } else if (element == null || element === undefined || String(element).trim() === '') {
2343
+ delete params[key];
2350
2344
  }
2351
- delete params[key];
2352
- } else if (Array.isArray(element)) {
2353
- params[key] = element.join(',');
2354
- } else if (element == null || element === undefined || String(element).trim() === '') {
2355
- delete params[key];
2356
- }
2345
+ })();
2357
2346
  }
2358
- };
2359
- for (var key in params) {
2360
- _loop();
2361
2347
  }
2362
2348
  var queryParams = _objectSpread2(_objectSpread2(_objectSpread2({
2363
2349
  pageSize: pageSize,
@@ -9573,59 +9559,58 @@ var getItemDefaultWidth = function getItemDefaultWidth(item) {
9573
9559
  * @returns 返回处理后的查询参数
9574
9560
  */
9575
9561
  function queryParams(params, flag) {
9576
- var _loop = function _loop() {
9562
+ for (var key in params) {
9577
9563
  if (Object.prototype.hasOwnProperty.call(params, key)) {
9578
- var element = params[key];
9579
- if (element && key.indexOf('*number*') >= 0) {
9580
- var dataParams = key.split('*number*');
9581
- dataParams.forEach(function (value, index) {
9582
- params[value] = element[index];
9583
- });
9584
- delete params[key];
9585
- } else if (element && key.indexOf('*address*') >= 0) {
9586
- var _dataParams = key.split('*address*');
9587
- _dataParams.forEach(function (value, index) {
9588
- params[value] = element.PCDCode[index];
9589
- });
9590
- delete params[key];
9591
- } else if (element && key.indexOf('*costType*') >= 0) {
9592
- var _dataParams2 = key.split('*costType*');
9593
- // eslint-disable-next-line prefer-destructuring
9594
- params[_dataParams2[0]] = element[1];
9595
- delete params[key];
9596
- } else if (element && key.indexOf('*fullDate*') >= 0) {
9597
- var _dataParams3 = key.split('*fullDate*');
9598
- _dataParams3.forEach(function (value, index) {
9599
- if (index === 0) {
9600
- params[value] = hooks(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
9564
+ (function () {
9565
+ var element = params[key];
9566
+ if (element && key.indexOf('*number*') >= 0) {
9567
+ var dataParams = key.split('*number*');
9568
+ dataParams.forEach(function (value, index) {
9569
+ params[value] = element[index];
9570
+ });
9571
+ delete params[key];
9572
+ } else if (element && key.indexOf('*address*') >= 0) {
9573
+ var _dataParams = key.split('*address*');
9574
+ _dataParams.forEach(function (value, index) {
9575
+ params[value] = element.PCDCode[index];
9576
+ });
9577
+ delete params[key];
9578
+ } else if (element && key.indexOf('*costType*') >= 0) {
9579
+ var _dataParams2 = key.split('*costType*');
9580
+ // eslint-disable-next-line prefer-destructuring
9581
+ params[_dataParams2[0]] = element[1];
9582
+ delete params[key];
9583
+ } else if (element && key.indexOf('*fullDate*') >= 0) {
9584
+ var _dataParams3 = key.split('*fullDate*');
9585
+ _dataParams3.forEach(function (value, index) {
9586
+ if (index === 0) {
9587
+ params[value] = hooks(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
9588
+ } else {
9589
+ params[value] = hooks(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
9590
+ }
9591
+ });
9592
+ delete params[key];
9593
+ } else if (element && key.indexOf('*') >= 0) {
9594
+ var _dataParams4 = key.split('*');
9595
+ _dataParams4.forEach(function (value, index) {
9596
+ params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
9597
+ });
9598
+ delete params[key];
9599
+ } else if (element && key.indexOf('_likeIn_') >= 0) {
9600
+ var _dataParams5 = key.split('_likeIn_');
9601
+ if (element.indexOf(',') >= 0) {
9602
+ params["qp-".concat(_dataParams5[0], "-in")] = element.split(',').join(',');
9603
+ params["qp-".concat(_dataParams5[0], "-like")] = null;
9601
9604
  } else {
9602
- params[value] = hooks(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
9605
+ params["qp-".concat(_dataParams5[0], "-like")] = element;
9606
+ params["qp-".concat(_dataParams5[0], "-in")] = null;
9603
9607
  }
9604
- });
9605
- delete params[key];
9606
- } else if (element && key.indexOf('*') >= 0) {
9607
- var _dataParams4 = key.split('*');
9608
- _dataParams4.forEach(function (value, index) {
9609
- params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
9610
- });
9611
- delete params[key];
9612
- } else if (element && key.indexOf('_likeIn_') >= 0) {
9613
- var _dataParams5 = key.split('_likeIn_');
9614
- if (element.indexOf(',') >= 0) {
9615
- params["qp-".concat(_dataParams5[0], "-in")] = element.split(',').join(',');
9616
- params["qp-".concat(_dataParams5[0], "-like")] = null;
9617
- } else {
9618
- params["qp-".concat(_dataParams5[0], "-like")] = element;
9619
- params["qp-".concat(_dataParams5[0], "-in")] = null;
9608
+ delete params[key];
9609
+ } else if (Array.isArray(element)) {
9610
+ params[key] = element.join(',');
9620
9611
  }
9621
- delete params[key];
9622
- } else if (Array.isArray(element)) {
9623
- params[key] = element.join(',');
9624
- }
9612
+ })();
9625
9613
  }
9626
- };
9627
- for (var key in params) {
9628
- _loop();
9629
9614
  }
9630
9615
  return flag ? params : qs.stringify(params);
9631
9616
  }
@@ -10155,74 +10140,76 @@ var AddSelect = function AddSelect(props) {
10155
10140
  var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(bType, tList, recordKey, recordItem, selectItem, changeValue) {
10156
10141
  var result;
10157
10142
  return _regeneratorRuntime().wrap(function _callee$(_context) {
10158
- while (1) switch (_context.prev = _context.next) {
10159
- case 0:
10160
- if (!(bType == 'skc' && tList.some(function (i) {
10161
- return i[recordKey] == recordItem[recordKey] && i[selectItem.dataIndex] == changeValue;
10162
- }))) {
10163
- _context.next = 3;
10164
- break;
10165
- }
10166
- message.warning('相同skc配码不可设置相同哦');
10167
- return _context.abrupt("return", false);
10168
- case 3:
10169
- if (!(bType == 'spu')) {
10170
- _context.next = 26;
10171
- break;
10172
- }
10173
- if (!(selectItem.dataIndex == 'colorName' && tList.some(function (i) {
10174
- return i[recordKey] == recordItem[recordKey] && i.selectPropertyGroupCode == recordItem.selectPropertyGroupCode && i[selectItem.dataIndex] == changeValue;
10175
- }))) {
10176
- _context.next = 7;
10177
- break;
10178
- }
10179
- message.warning('相同商品相同配码颜色不可设置相同哦');
10180
- return _context.abrupt("return", false);
10181
- case 7:
10182
- if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && !recordItem.colorName)) {
10183
- _context.next = 10;
10184
- break;
10185
- }
10186
- message.warning('请先选择颜色!');
10187
- return _context.abrupt("return", false);
10188
- case 10:
10189
- if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && tList.some(function (i) {
10190
- return i[recordKey] == recordItem[recordKey] && i.colorName == recordItem.colorName && i[selectItem.dataIndex] == changeValue;
10191
- }))) {
10192
- _context.next = 13;
10193
- break;
10194
- }
10195
- message.warning('相同商品相同颜色配码不可设置相同哦');
10196
- return _context.abrupt("return", false);
10197
- case 13:
10198
- if (!(selectItem.dataIndex == 'selectPropertyGroupCode')) {
10199
- _context.next = 26;
10143
+ while (1) {
10144
+ switch (_context.prev = _context.next) {
10145
+ case 0:
10146
+ if (!(bType == 'skc' && tList.some(function (i) {
10147
+ return i[recordKey] == recordItem[recordKey] && i[selectItem.dataIndex] == changeValue;
10148
+ }))) {
10149
+ _context.next = 3;
10150
+ break;
10151
+ }
10152
+ message.warning('相同skc配码不可设置相同哦');
10153
+ return _context.abrupt("return", false);
10154
+ case 3:
10155
+ if (!(bType == 'spu')) {
10156
+ _context.next = 26;
10157
+ break;
10158
+ }
10159
+ if (!(selectItem.dataIndex == 'colorName' && tList.some(function (i) {
10160
+ return i[recordKey] == recordItem[recordKey] && i.selectPropertyGroupCode == recordItem.selectPropertyGroupCode && i[selectItem.dataIndex] == changeValue;
10161
+ }))) {
10162
+ _context.next = 7;
10163
+ break;
10164
+ }
10165
+ message.warning('相同商品相同配码颜色不可设置相同哦');
10166
+ return _context.abrupt("return", false);
10167
+ case 7:
10168
+ if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && !recordItem.colorName)) {
10169
+ _context.next = 10;
10170
+ break;
10171
+ }
10172
+ message.warning('请先选择颜色!');
10173
+ return _context.abrupt("return", false);
10174
+ case 10:
10175
+ if (!(selectItem.dataIndex == 'selectPropertyGroupCode' && tList.some(function (i) {
10176
+ return i[recordKey] == recordItem[recordKey] && i.colorName == recordItem.colorName && i[selectItem.dataIndex] == changeValue;
10177
+ }))) {
10178
+ _context.next = 13;
10179
+ break;
10180
+ }
10181
+ message.warning('相同商品相同颜色配码不可设置相同哦');
10182
+ return _context.abrupt("return", false);
10183
+ case 13:
10184
+ if (!(selectItem.dataIndex == 'selectPropertyGroupCode')) {
10185
+ _context.next = 26;
10186
+ break;
10187
+ }
10188
+ result = true;
10189
+ _context.prev = 15;
10190
+ _context.next = 18;
10191
+ return checkSpuMatchCode({
10192
+ skcCode: recordItem[recordKey],
10193
+ matchingCode: changeValue,
10194
+ ext1: recordItem.colorName
10195
+ });
10196
+ case 18:
10197
+ result = _context.sent;
10198
+ result = true;
10199
+ _context.next = 25;
10200
10200
  break;
10201
- }
10202
- result = true;
10203
- _context.prev = 15;
10204
- _context.next = 18;
10205
- return checkSpuMatchCode({
10206
- skcCode: recordItem[recordKey],
10207
- matchingCode: changeValue,
10208
- ext1: recordItem.colorName
10209
- });
10210
- case 18:
10211
- result = _context.sent;
10212
- result = true;
10213
- _context.next = 25;
10214
- break;
10215
- case 22:
10216
- _context.prev = 22;
10217
- _context.t0 = _context["catch"](15);
10218
- result = typeof _context.t0 == 'boolean' ? _context.t0 : false;
10219
- case 25:
10220
- return _context.abrupt("return", result);
10221
- case 26:
10222
- return _context.abrupt("return", true);
10223
- case 27:
10224
- case "end":
10225
- return _context.stop();
10201
+ case 22:
10202
+ _context.prev = 22;
10203
+ _context.t0 = _context["catch"](15);
10204
+ result = typeof _context.t0 == 'boolean' ? _context.t0 : false;
10205
+ case 25:
10206
+ return _context.abrupt("return", result);
10207
+ case 26:
10208
+ return _context.abrupt("return", true);
10209
+ case 27:
10210
+ case "end":
10211
+ return _context.stop();
10212
+ }
10226
10213
  }
10227
10214
  }, _callee, null, [[15, 22]]);
10228
10215
  }));
@@ -10414,27 +10401,29 @@ var AddSelect = function AddSelect(props) {
10414
10401
  var _onChange = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(value) {
10415
10402
  var isConformToTheRules, newPopValue;
10416
10403
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
10417
- while (1) switch (_context2.prev = _context2.next) {
10418
- case 0:
10419
- _context2.next = 2;
10420
- return checkSelectChange(businessType, popvalue, mappingValueField, record, item, value);
10421
- case 2:
10422
- isConformToTheRules = _context2.sent;
10423
- if (isConformToTheRules) {
10424
- record[item.dataIndex] = value;
10425
- } else {
10426
- record[item.dataIndex] = null;
10427
- }
10428
- newPopValue = popvalue.map(function (i, innerIndex) {
10429
- if (innerIndex == index) {
10430
- i[item.dataIndex] = record[item.dataIndex];
10404
+ while (1) {
10405
+ switch (_context2.prev = _context2.next) {
10406
+ case 0:
10407
+ _context2.next = 2;
10408
+ return checkSelectChange(businessType, popvalue, mappingValueField, record, item, value);
10409
+ case 2:
10410
+ isConformToTheRules = _context2.sent;
10411
+ if (isConformToTheRules) {
10412
+ record[item.dataIndex] = value;
10413
+ } else {
10414
+ record[item.dataIndex] = null;
10431
10415
  }
10432
- return i;
10433
- });
10434
- setPopValue(newPopValue);
10435
- case 6:
10436
- case "end":
10437
- return _context2.stop();
10416
+ newPopValue = popvalue.map(function (i, innerIndex) {
10417
+ if (innerIndex == index) {
10418
+ i[item.dataIndex] = record[item.dataIndex];
10419
+ }
10420
+ return i;
10421
+ });
10422
+ setPopValue(newPopValue);
10423
+ case 6:
10424
+ case "end":
10425
+ return _context2.stop();
10426
+ }
10438
10427
  }
10439
10428
  }, _callee2);
10440
10429
  }));
@@ -10494,85 +10483,84 @@ var AddSelect = function AddSelect(props) {
10494
10483
  });
10495
10484
  }
10496
10485
  // 数组对象处理,对带有特殊标记的name进行处理
10497
- var _loop = function _loop() {
10486
+ for (var key in params) {
10498
10487
  if (Object.prototype.hasOwnProperty.call(params, key)) {
10499
- var element = params[key];
10500
- if (element && key.indexOf('*number*') >= 0) {
10501
- var dataParams = key.split('*number*');
10502
- dataParams.forEach(function (value, index) {
10503
- params[value] = element[index];
10504
- });
10505
- delete params[key];
10506
- } else if (element && key.indexOf('*address*') >= 0) {
10507
- var _dataParams = key.split('*address*');
10508
- _dataParams.forEach(function (value, index) {
10509
- params[value] = element.PCDCode[index];
10510
- });
10511
- delete params[key];
10512
- } else if (element && key.indexOf('*costType*') >= 0) {
10513
- var _dataParams2 = key.split('*costType*');
10514
- // eslint-disable-next-line prefer-destructuring
10515
- params[_dataParams2[0]] = element[1];
10516
- delete params[key];
10517
- } else if (element && key.indexOf('*fullDate*') >= 0) {
10518
- var _dataParams3 = key.split('*fullDate*');
10519
- _dataParams3.forEach(function (value, index) {
10520
- if (index === 0) {
10521
- params[value] = moment(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
10522
- } else {
10523
- params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
10488
+ (function () {
10489
+ var element = params[key];
10490
+ if (element && key.indexOf('*number*') >= 0) {
10491
+ var dataParams = key.split('*number*');
10492
+ dataParams.forEach(function (value, index) {
10493
+ params[value] = element[index];
10494
+ });
10495
+ delete params[key];
10496
+ } else if (element && key.indexOf('*address*') >= 0) {
10497
+ var _dataParams = key.split('*address*');
10498
+ _dataParams.forEach(function (value, index) {
10499
+ params[value] = element.PCDCode[index];
10500
+ });
10501
+ delete params[key];
10502
+ } else if (element && key.indexOf('*costType*') >= 0) {
10503
+ var _dataParams2 = key.split('*costType*');
10504
+ // eslint-disable-next-line prefer-destructuring
10505
+ params[_dataParams2[0]] = element[1];
10506
+ delete params[key];
10507
+ } else if (element && key.indexOf('*fullDate*') >= 0) {
10508
+ var _dataParams3 = key.split('*fullDate*');
10509
+ _dataParams3.forEach(function (value, index) {
10510
+ if (index === 0) {
10511
+ params[value] = moment(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
10512
+ } else {
10513
+ params[value] = moment(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
10514
+ }
10515
+ });
10516
+ delete params[key];
10517
+ } else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
10518
+ var _dataParams4 = key.split('*checkBox*');
10519
+ if (element) {
10520
+ params[_dataParams4[0]] = 0;
10524
10521
  }
10525
- });
10526
- delete params[key];
10527
- } else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
10528
- var _dataParams4 = key.split('*checkBox*');
10529
- if (element) {
10530
- params[_dataParams4[0]] = 0;
10531
- }
10532
- delete params[key];
10533
- } else if (element && key.indexOf('*cascader*') >= 0) {
10534
- var _dataParams5 = key.split('*cascader*');
10535
- params[_dataParams5[0]] = element[element.length - 1];
10536
- delete params[key];
10537
- } else if (element && key.indexOf('*date*') >= 0) {
10538
- var _dataParams6 = key.split('*date*');
10539
- _dataParams6.forEach(function (value, index) {
10540
- if (index === 0) {
10541
- params[value] = moment(element[index]).format('YYYY-MM-DD');
10522
+ delete params[key];
10523
+ } else if (element && key.indexOf('*cascader*') >= 0) {
10524
+ var _dataParams5 = key.split('*cascader*');
10525
+ params[_dataParams5[0]] = element[element.length - 1];
10526
+ delete params[key];
10527
+ } else if (element && key.indexOf('*date*') >= 0) {
10528
+ var _dataParams6 = key.split('*date*');
10529
+ _dataParams6.forEach(function (value, index) {
10530
+ if (index === 0) {
10531
+ params[value] = moment(element[index]).format('YYYY-MM-DD');
10532
+ } else {
10533
+ params[value] = moment(element[index]).format('YYYY-MM-DD');
10534
+ }
10535
+ });
10536
+ delete params[key];
10537
+ } else if (element && key.indexOf('*') >= 0) {
10538
+ var _dataParams7 = key.split('*');
10539
+ _dataParams7.forEach(function (value, index) {
10540
+ params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
10541
+ });
10542
+ delete params[key];
10543
+ } else if (element && key.indexOf('_selectNumberRange') >= 0) {
10544
+ // key = xxxxx_selectNumberRange qp-xxxxx-gt
10545
+ var _dataParams8 = key.split('_selectNumberRange')[0];
10546
+ if (params[key][0] === 'range') {
10547
+ if (params[key][1][0]) {
10548
+ params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
10549
+ }
10550
+ if (params[key][1][1]) {
10551
+ params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
10552
+ }
10542
10553
  } else {
10543
- params[value] = moment(element[index]).format('YYYY-MM-DD');
10554
+ params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
10544
10555
  }
10545
- });
10546
- delete params[key];
10547
- } else if (element && key.indexOf('*') >= 0) {
10548
- var _dataParams7 = key.split('*');
10549
- _dataParams7.forEach(function (value, index) {
10550
- params[value] = element[index].format('YYYY-MM-DD HH:mm:ss');
10551
- });
10552
- delete params[key];
10553
- } else if (element && key.indexOf('_selectNumberRange') >= 0) {
10554
- // key = xxxxx_selectNumberRange qp-xxxxx-gt
10555
- var _dataParams8 = key.split('_selectNumberRange')[0];
10556
- if (params[key][0] === 'range') {
10557
- if (params[key][1][0]) {
10558
- params["qp-".concat(_dataParams8, "-ge")] = params[key][1][0];
10559
- }
10560
- if (params[key][1][1]) {
10561
- params["qp-".concat(_dataParams8, "-le")] = params[key][1][1];
10562
- }
10563
- } else {
10564
- params["qp-".concat(_dataParams8, "-").concat(params[key][0])] = params[key][1];
10556
+ delete params[key];
10557
+ } else if (Array.isArray(element)) {
10558
+ params[key] = element.join(',');
10559
+ } else if (element == null || element === undefined || String(element).trim() === '') {
10560
+ delete params[key];
10565
10561
  }
10566
- delete params[key];
10567
- } else if (Array.isArray(element)) {
10568
- params[key] = element.join(',');
10569
- } else if (element == null || element === undefined || String(element).trim() === '') {
10570
- delete params[key];
10571
- }
10562
+ })();
10572
10563
  }
10573
- };
10574
- for (var key in params) {
10575
- _loop();
10576
10564
  }
10577
10565
  var queryParams = _objectSpread2(_objectSpread2(_objectSpread2({
10578
10566
  pageSize: pageSize,
@@ -12027,70 +12015,72 @@ var BillEntry = function BillEntry(_ref3) {
12027
12015
  var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
12028
12016
  var canEntryObject, _canEntryObject$error, messageInfo;
12029
12017
  return _regeneratorRuntime().wrap(function _callee$(_context) {
12030
- while (1) switch (_context.prev = _context.next) {
12031
- case 0:
12032
- if (data === null || data === void 0 ? void 0 : data.length) {
12033
- _context.next = 3;
12034
- break;
12035
- }
12036
- message.warning('至少录入一条数据');
12037
- return _context.abrupt("return");
12038
- case 3:
12039
- if (data === null || data === void 0 ? void 0 : data.every(function (d) {
12040
- return d.skuCode && d.name;
12041
- })) {
12042
- _context.next = 6;
12043
- break;
12044
- }
12045
- message.warning('请选择商品!');
12046
- return _context.abrupt("return");
12047
- case 6:
12048
- if (data === null || data === void 0 ? void 0 : data.every(function (d) {
12049
- return d.count;
12050
- })) {
12051
- _context.next = 9;
12052
- break;
12053
- }
12054
- message.warning('请填写商品数量!');
12055
- return _context.abrupt("return");
12056
- case 9:
12057
- _context.next = 11;
12058
- return isSkuCanEntry(data);
12059
- case 11:
12060
- canEntryObject = _context.sent;
12061
- if (!((canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.flag) === false)) {
12062
- _context.next = 16;
12063
- break;
12064
- }
12065
- 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) {
12066
- return /*#__PURE__*/React.createElement("div", null, i.skuCode, "\u6821\u9A8C\u5931\u8D25\uFF1A", i.checkResults);
12067
- }));
12068
- messageInfo && message.warning({
12069
- content: messageInfo,
12070
- duration: 6
12071
- });
12072
- return _context.abrupt("return");
12073
- case 16:
12074
- setLoading(true);
12075
- onSaveCallback(data).then(function (res) {
12076
- {
12077
- var _Object$keys;
12078
- var initSuccessMessage = '保存成功';
12079
- var rmsbi = (res === null || res === void 0 ? void 0 : res.messageSuccessBackInfo) || {};
12080
- if (rmsbi && ((_Object$keys = Object.keys(rmsbi)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.length)) {
12081
- (rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.needThrowSuccess) ? message.success((rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.successMessage) || initSuccessMessage) : null;
12082
- } else {
12083
- message.success(initSuccessMessage);
12084
- }
12018
+ while (1) {
12019
+ switch (_context.prev = _context.next) {
12020
+ case 0:
12021
+ if (data === null || data === void 0 ? void 0 : data.length) {
12022
+ _context.next = 3;
12023
+ break;
12085
12024
  }
12086
- setLoading(false);
12087
- }).catch(function (Error) {
12088
- message.error(Error);
12089
- setLoading(false);
12090
- });
12091
- case 18:
12092
- case "end":
12093
- return _context.stop();
12025
+ message.warning('至少录入一条数据');
12026
+ return _context.abrupt("return");
12027
+ case 3:
12028
+ if (data === null || data === void 0 ? void 0 : data.every(function (d) {
12029
+ return d.skuCode && d.name;
12030
+ })) {
12031
+ _context.next = 6;
12032
+ break;
12033
+ }
12034
+ message.warning('请选择商品!');
12035
+ return _context.abrupt("return");
12036
+ case 6:
12037
+ if (data === null || data === void 0 ? void 0 : data.every(function (d) {
12038
+ return d.count;
12039
+ })) {
12040
+ _context.next = 9;
12041
+ break;
12042
+ }
12043
+ message.warning('请填写商品数量!');
12044
+ return _context.abrupt("return");
12045
+ case 9:
12046
+ _context.next = 11;
12047
+ return isSkuCanEntry(data);
12048
+ case 11:
12049
+ canEntryObject = _context.sent;
12050
+ if (!((canEntryObject === null || canEntryObject === void 0 ? void 0 : canEntryObject.flag) === false)) {
12051
+ _context.next = 16;
12052
+ break;
12053
+ }
12054
+ 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) {
12055
+ return /*#__PURE__*/React.createElement("div", null, i.skuCode, "\u6821\u9A8C\u5931\u8D25\uFF1A", i.checkResults);
12056
+ }));
12057
+ messageInfo && message.warning({
12058
+ content: messageInfo,
12059
+ duration: 6
12060
+ });
12061
+ return _context.abrupt("return");
12062
+ case 16:
12063
+ setLoading(true);
12064
+ onSaveCallback(data).then(function (res) {
12065
+ {
12066
+ var _Object$keys;
12067
+ var initSuccessMessage = '保存成功';
12068
+ var rmsbi = (res === null || res === void 0 ? void 0 : res.messageSuccessBackInfo) || {};
12069
+ if (rmsbi && ((_Object$keys = Object.keys(rmsbi)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.length)) {
12070
+ (rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.needThrowSuccess) ? message.success((rmsbi === null || rmsbi === void 0 ? void 0 : rmsbi.successMessage) || initSuccessMessage) : null;
12071
+ } else {
12072
+ message.success(initSuccessMessage);
12073
+ }
12074
+ }
12075
+ setLoading(false);
12076
+ }).catch(function (Error) {
12077
+ message.error(Error);
12078
+ setLoading(false);
12079
+ });
12080
+ case 18:
12081
+ case "end":
12082
+ return _context.stop();
12083
+ }
12094
12084
  }
12095
12085
  }, _callee);
12096
12086
  }));
@@ -13505,6 +13495,7 @@ function commonFun(type, prefixUrl, requestConfigProp, modalTableBusProps) {
13505
13495
  mappingTextField: 'name',
13506
13496
  mappingValueField: 'code',
13507
13497
  otherParams: {
13498
+ 'qp-isMain-eq': 1,
13508
13499
  'qp-status-eq': 1,
13509
13500
  sorter: 'desc-id'
13510
13501
  },
@@ -15342,42 +15333,44 @@ var TreeSearchSelect = function TreeSearchSelect(props) {
15342
15333
  var _ctx$form;
15343
15334
  var resData, coverData, data, dataList;
15344
15335
  return _regeneratorRuntime().wrap(function _callee$(_context) {
15345
- while (1) switch (_context.prev = _context.next) {
15346
- case 0:
15347
- resData = (res === null || res === void 0 ? void 0 : res.data) || [];
15348
- if (!(resData.status === '0' || resData.code === '000000')) {
15349
- _context.next = 13;
15336
+ while (1) {
15337
+ switch (_context.prev = _context.next) {
15338
+ case 0:
15339
+ resData = (res === null || res === void 0 ? void 0 : res.data) || [];
15340
+ if (!(resData.status === '0' || resData.code === '000000')) {
15341
+ _context.next = 13;
15342
+ break;
15343
+ }
15344
+ data = resData.data;
15345
+ if (!remoteSource.converter) {
15346
+ _context.next = 9;
15347
+ break;
15348
+ }
15349
+ _context.next = 6;
15350
+ return remoteSource.converter({
15351
+ data: [data]
15352
+ });
15353
+ case 6:
15354
+ coverData = _context.sent;
15355
+ _context.next = 11;
15350
15356
  break;
15351
- }
15352
- data = resData.data;
15353
- if (!remoteSource.converter) {
15354
- _context.next = 9;
15357
+ case 9:
15358
+ dataList = data && Array.isArray(data) ? data : data && [data] || [];
15359
+ coverData = dataList.length && dataList.map(function (ites) {
15360
+ return mapSearchTree(ites);
15361
+ }) || [];
15362
+ case 11:
15363
+ _context.next = 14;
15355
15364
  break;
15356
- }
15357
- _context.next = 6;
15358
- return remoteSource.converter({
15359
- data: [data]
15360
- });
15361
- case 6:
15362
- coverData = _context.sent;
15363
- _context.next = 11;
15364
- break;
15365
- case 9:
15366
- dataList = data && Array.isArray(data) ? data : data && [data] || [];
15367
- coverData = dataList.length && dataList.map(function (ites) {
15368
- return mapSearchTree(ites);
15369
- }) || [];
15370
- case 11:
15371
- _context.next = 14;
15372
- break;
15373
- case 13:
15374
- coverData = [];
15375
- case 14:
15376
- setTreeData(coverData);
15377
- ctx === null || ctx === void 0 ? void 0 : (_ctx$form = ctx.form) === null || _ctx$form === void 0 ? void 0 : _ctx$form.setFieldSource(ctx.name, coverData);
15378
- case 16:
15379
- case "end":
15380
- return _context.stop();
15365
+ case 13:
15366
+ coverData = [];
15367
+ case 14:
15368
+ setTreeData(coverData);
15369
+ ctx === null || ctx === void 0 ? void 0 : (_ctx$form = ctx.form) === null || _ctx$form === void 0 ? void 0 : _ctx$form.setFieldSource(ctx.name, coverData);
15370
+ case 16:
15371
+ case "end":
15372
+ return _context.stop();
15373
+ }
15381
15374
  }
15382
15375
  }, _callee);
15383
15376
  }));
@@ -19415,19 +19408,21 @@ function _outLogin() {
19415
19408
  _outLogin = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(params) {
19416
19409
  var res;
19417
19410
  return _regeneratorRuntime().wrap(function _callee$(_context) {
19418
- while (1) switch (_context.prev = _context.next) {
19419
- case 0:
19420
- _context.next = 2;
19421
- return axios({
19422
- url: '/user/web/loginOut',
19423
- method: 'GET'
19424
- });
19425
- case 2:
19426
- res = _context.sent;
19427
- return _context.abrupt("return", res);
19428
- case 4:
19429
- case "end":
19430
- return _context.stop();
19411
+ while (1) {
19412
+ switch (_context.prev = _context.next) {
19413
+ case 0:
19414
+ _context.next = 2;
19415
+ return axios({
19416
+ url: '/user/web/loginOut',
19417
+ method: 'GET'
19418
+ });
19419
+ case 2:
19420
+ res = _context.sent;
19421
+ return _context.abrupt("return", res);
19422
+ case 4:
19423
+ case "end":
19424
+ return _context.stop();
19425
+ }
19431
19426
  }
19432
19427
  }, _callee);
19433
19428
  }));
@@ -19556,29 +19551,31 @@ var GlobalHeaderRight = function GlobalHeaderRight(_ref) {
19556
19551
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
19557
19552
  var sessionId;
19558
19553
  return _regeneratorRuntime().wrap(function _callee$(_context) {
19559
- while (1) switch (_context.prev = _context.next) {
19560
- case 0:
19561
- _context.next = 2;
19562
- return getSessionId();
19563
- case 2:
19564
- sessionId = _context.sent;
19565
- _context.next = 5;
19566
- return outLogin({
19567
- sessionId: sessionId
19568
- });
19569
- case 5:
19570
- // @ts-ignore
19571
- if (BUILD_TYPE) {
19572
- message.success('退出登录成功');
19573
- history.replace({
19574
- pathname: '/user/login'
19554
+ while (1) {
19555
+ switch (_context.prev = _context.next) {
19556
+ case 0:
19557
+ _context.next = 2;
19558
+ return getSessionId();
19559
+ case 2:
19560
+ sessionId = _context.sent;
19561
+ _context.next = 5;
19562
+ return outLogin({
19563
+ sessionId: sessionId
19575
19564
  });
19576
- } else {
19577
- setLoginOutPath();
19578
- }
19579
- case 6:
19580
- case "end":
19581
- return _context.stop();
19565
+ case 5:
19566
+ // @ts-ignore
19567
+ if (BUILD_TYPE) {
19568
+ message.success('退出登录成功');
19569
+ history.replace({
19570
+ pathname: '/user/login'
19571
+ });
19572
+ } else {
19573
+ setLoginOutPath();
19574
+ }
19575
+ case 6:
19576
+ case "end":
19577
+ return _context.stop();
19578
+ }
19582
19579
  }
19583
19580
  }, _callee);
19584
19581
  }));
@@ -21406,7 +21403,6 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
21406
21403
  showSubMenu: isShow
21407
21404
  });
21408
21405
  }, 500);
21409
- //设置tabs标签左右滚动
21410
21406
  _this.setTabNavTransLate = function (num) {
21411
21407
  var _document$getElementB, _document$getElementB2, _document$getElementB3, _document$getElementB4, _document$defaultView;
21412
21408
  var globalTabsNav = (_document$getElementB = document.getElementById('globalTabs')) === null || _document$getElementB === void 0 ? void 0 : (_document$getElementB2 = _document$getElementB.getElementsByClassName('ant-tabs-nav-list')) === null || _document$getElementB2 === void 0 ? void 0 : _document$getElementB2[0];
@@ -22087,12 +22083,14 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
22087
22083
  request: function () {
22088
22084
  var _request = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
22089
22085
  return _regeneratorRuntime().wrap(function _callee$(_context) {
22090
- while (1) switch (_context.prev = _context.next) {
22091
- case 0:
22092
- return _context.abrupt("return", JSON.parse(localStorage.getItem("customerMenu_".concat(itemPath, "_front")) || '[]'));
22093
- case 1:
22094
- case "end":
22095
- return _context.stop();
22086
+ while (1) {
22087
+ switch (_context.prev = _context.next) {
22088
+ case 0:
22089
+ return _context.abrupt("return", JSON.parse(localStorage.getItem("customerMenu_".concat(itemPath, "_front")) || '[]'));
22090
+ case 1:
22091
+ case "end":
22092
+ return _context.stop();
22093
+ }
22096
22094
  }
22097
22095
  }, _callee);
22098
22096
  }));
@@ -22618,10 +22616,13 @@ var index$7 = /*#__PURE__*/forwardRef(function (props, ref) {
22618
22616
  }, /*#__PURE__*/React.createElement("tbody", null, config.colLastData.map(function (item, index) {
22619
22617
  var fixedTop = item.fixed ? "".concat(index * 40 + config.colHeaderToTop, "px") : 0;
22620
22618
  return /*#__PURE__*/React.createElement("tr", null, colTableData.map(function (record, index) {
22621
- var _record$_rowConfig;
22619
+ var _record$_rowConfig, _item$onCell;
22622
22620
  var tdHidden = (record === null || record === void 0 ? void 0 : (_record$_rowConfig = record['_rowConfig']) === null || _record$_rowConfig === void 0 ? void 0 : _record$_rowConfig.hidden) ? 'none' : 'table-cell';
22621
+ var onCellResult = ((_item$onCell = item.onCell) === null || _item$onCell === void 0 ? void 0 : _item$onCell.call(item, record, index)) || {};
22622
+ var _onCellResult$addStyl = onCellResult.addStyle,
22623
+ addStyle = _onCellResult$addStyl === void 0 ? {} : _onCellResult$addStyl;
22623
22624
  return /*#__PURE__*/React.createElement("td", {
22624
- style: {
22625
+ style: _objectSpread2(_objectSpread2({}, addStyle), {}, {
22625
22626
  display: tdHidden,
22626
22627
  background: index % 2 === 1 || item.fixed ? '#f7f8fb' : '#fff',
22627
22628
  minWidth: '100px',
@@ -22631,7 +22632,7 @@ var index$7 = /*#__PURE__*/forwardRef(function (props, ref) {
22631
22632
  top: fixedTop,
22632
22633
  color: item.fixed ? '#000000' : 'inherit',
22633
22634
  zIndex: item.fixed ? 10 : ''
22634
- }
22635
+ })
22635
22636
  }, item.render ? item.render({
22636
22637
  text: record[item.key || item.dataIndex],
22637
22638
  record: record,
@@ -29652,26 +29653,28 @@ var valueType = {
29652
29653
  var getDynamicDict = /*#__PURE__*/function () {
29653
29654
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(dictionaryCode) {
29654
29655
  return _regeneratorRuntime().wrap(function _callee$(_context) {
29655
- while (1) switch (_context.prev = _context.next) {
29656
- case 0:
29657
- _context.next = 2;
29658
- return request$1({
29659
- url: "/basic/dictDynamicItem/getDynamicData/".concat(dictionaryCode),
29660
- converter: function converter(_ref2) {
29661
- var data = _ref2.data;
29662
- return data === null || data === void 0 ? void 0 : data.map(function (d) {
29663
- return {
29664
- text: d.name,
29665
- value: d.code || d.brandCode
29666
- };
29667
- });
29668
- }
29669
- });
29670
- case 2:
29671
- return _context.abrupt("return", _context.sent);
29672
- case 3:
29673
- case "end":
29674
- return _context.stop();
29656
+ while (1) {
29657
+ switch (_context.prev = _context.next) {
29658
+ case 0:
29659
+ _context.next = 2;
29660
+ return request$1({
29661
+ url: "/basic/dictDynamicItem/getDynamicData/".concat(dictionaryCode),
29662
+ converter: function converter(_ref2) {
29663
+ var data = _ref2.data;
29664
+ return data === null || data === void 0 ? void 0 : data.map(function (d) {
29665
+ return {
29666
+ text: d.name,
29667
+ value: d.code || d.brandCode
29668
+ };
29669
+ });
29670
+ }
29671
+ });
29672
+ case 2:
29673
+ return _context.abrupt("return", _context.sent);
29674
+ case 3:
29675
+ case "end":
29676
+ return _context.stop();
29677
+ }
29675
29678
  }
29676
29679
  }, _callee);
29677
29680
  }));
@@ -29721,53 +29724,55 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
29721
29724
  useMount( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
29722
29725
  var _ref$current, source;
29723
29726
  return _regeneratorRuntime().wrap(function _callee$(_context) {
29724
- while (1) switch (_context.prev = _context.next) {
29725
- case 0:
29726
- _context.next = 2;
29727
- return setIsShowAndType(function (prev) {
29728
- if (record.inputType === 20 || record.inputType === 30) {
29729
- return {
29730
- isShow: true,
29731
- singleOrMultiple: record.inputType,
29732
- type: record.choiceType
29733
- };
29727
+ while (1) {
29728
+ switch (_context.prev = _context.next) {
29729
+ case 0:
29730
+ _context.next = 2;
29731
+ return setIsShowAndType(function (prev) {
29732
+ if (record.inputType === 20 || record.inputType === 30) {
29733
+ return {
29734
+ isShow: true,
29735
+ singleOrMultiple: record.inputType,
29736
+ type: record.choiceType
29737
+ };
29738
+ }
29739
+ return prev;
29740
+ });
29741
+ case 2:
29742
+ if (!record.dictionaryCode) {
29743
+ _context.next = 17;
29744
+ break;
29734
29745
  }
29735
- return prev;
29736
- });
29737
- case 2:
29738
- if (!record.dictionaryCode) {
29739
- _context.next = 17;
29740
- break;
29741
- }
29742
- if (!(record.choiceType == 20)) {
29743
- _context.next = 7;
29746
+ if (!(record.choiceType == 20)) {
29747
+ _context.next = 7;
29748
+ break;
29749
+ }
29750
+ _context.t0 = getDictionarySource(record.dictionaryCode);
29751
+ _context.next = 15;
29744
29752
  break;
29745
- }
29746
- _context.t0 = getDictionarySource(record.dictionaryCode);
29747
- _context.next = 15;
29748
- break;
29749
- case 7:
29750
- if (!(record.choiceType == 30)) {
29751
- _context.next = 13;
29753
+ case 7:
29754
+ if (!(record.choiceType == 30)) {
29755
+ _context.next = 13;
29756
+ break;
29757
+ }
29758
+ _context.next = 10;
29759
+ return getDynamicDict(record.dictionaryCode);
29760
+ case 10:
29761
+ _context.t1 = _context.sent;
29762
+ _context.next = 14;
29752
29763
  break;
29753
- }
29754
- _context.next = 10;
29755
- return getDynamicDict(record.dictionaryCode);
29756
- case 10:
29757
- _context.t1 = _context.sent;
29758
- _context.next = 14;
29759
- break;
29760
- case 13:
29761
- _context.t1 = [];
29762
- case 14:
29763
- _context.t0 = _context.t1;
29764
- case 15:
29765
- source = _context.t0;
29766
- // @ts-ignore
29767
- ref === null || ref === void 0 ? void 0 : (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.setFieldSource('defaultValue', source);
29768
- case 17:
29769
- case "end":
29770
- return _context.stop();
29764
+ case 13:
29765
+ _context.t1 = [];
29766
+ case 14:
29767
+ _context.t0 = _context.t1;
29768
+ case 15:
29769
+ source = _context.t0;
29770
+ // @ts-ignore
29771
+ ref === null || ref === void 0 ? void 0 : (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.setFieldSource('defaultValue', source);
29772
+ case 17:
29773
+ case "end":
29774
+ return _context.stop();
29775
+ }
29771
29776
  }
29772
29777
  }, _callee);
29773
29778
  })));
@@ -29835,28 +29840,30 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
29835
29840
  var _type = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref3) {
29836
29841
  var form, values, name, relates, source;
29837
29842
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
29838
- while (1) switch (_context2.prev = _context2.next) {
29839
- case 0:
29840
- form = _ref3.form, values = _ref3.values, name = _ref3.name, relates = _ref3.relates;
29841
- if (values[0]) {
29843
+ while (1) {
29844
+ switch (_context2.prev = _context2.next) {
29845
+ case 0:
29846
+ form = _ref3.form, values = _ref3.values, name = _ref3.name, relates = _ref3.relates;
29847
+ if (values[0]) {
29848
+ form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
29849
+ form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
29850
+ form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], getDictionarySource(values[0]));
29851
+ }
29852
+ if (!values[1]) {
29853
+ _context2.next = 9;
29854
+ break;
29855
+ }
29856
+ _context2.next = 5;
29857
+ return getDynamicDict(record.dictionaryCode || values[1]);
29858
+ case 5:
29859
+ source = _context2.sent;
29842
29860
  form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
29843
29861
  form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
29844
- form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], getDictionarySource(values[0]));
29845
- }
29846
- if (!values[1]) {
29847
- _context2.next = 9;
29848
- break;
29849
- }
29850
- _context2.next = 5;
29851
- return getDynamicDict(record.dictionaryCode || values[1]);
29852
- case 5:
29853
- source = _context2.sent;
29854
- form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], []);
29855
- form === null || form === void 0 ? void 0 : form.setFieldValue(name[0], undefined);
29856
- form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], source);
29857
- case 9:
29858
- case "end":
29859
- return _context2.stop();
29862
+ form === null || form === void 0 ? void 0 : form.setFieldSource(name[0], source);
29863
+ case 9:
29864
+ case "end":
29865
+ return _context2.stop();
29866
+ }
29860
29867
  }
29861
29868
  }, _callee2);
29862
29869
  }));
@@ -30316,41 +30323,43 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
30316
30323
  var _type2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref10) {
30317
30324
  var values, name, form, source;
30318
30325
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
30319
- while (1) switch (_context3.prev = _context3.next) {
30320
- case 0:
30321
- values = _ref10.values, name = _ref10.name, form = _ref10.form;
30322
- if (values[1] === 40) {
30323
- form === null || form === void 0 ? void 0 : form.setFieldValue(name, null);
30324
- form.setFieldVisible(name, false);
30325
- }
30326
- if (!(values[0] === 30)) {
30327
- _context3.next = 10;
30328
- break;
30329
- }
30330
- _context3.next = 5;
30331
- return request$1({
30332
- url: '/basic/dictDynamicItem/queryList',
30333
- converter: function converter(_ref11) {
30334
- var data = _ref11.data;
30335
- return data === null || data === void 0 ? void 0 : data.map(function (d) {
30336
- return {
30337
- text: d.dictCode,
30338
- value: d.dictCode
30339
- };
30340
- });
30326
+ while (1) {
30327
+ switch (_context3.prev = _context3.next) {
30328
+ case 0:
30329
+ values = _ref10.values, name = _ref10.name, form = _ref10.form;
30330
+ if (values[1] === 40) {
30331
+ form === null || form === void 0 ? void 0 : form.setFieldValue(name, null);
30332
+ form.setFieldVisible(name, false);
30341
30333
  }
30342
- });
30343
- case 5:
30344
- source = _context3.sent;
30345
- form === null || form === void 0 ? void 0 : form.setFieldSource(name, source);
30346
- form.setFieldVisible(name, true);
30347
- _context3.next = 11;
30348
- break;
30349
- case 10:
30350
- form.setFieldVisible(name, false);
30351
- case 11:
30352
- case "end":
30353
- return _context3.stop();
30334
+ if (!(values[0] === 30)) {
30335
+ _context3.next = 10;
30336
+ break;
30337
+ }
30338
+ _context3.next = 5;
30339
+ return request$1({
30340
+ url: '/basic/dictDynamicItem/queryList',
30341
+ converter: function converter(_ref11) {
30342
+ var data = _ref11.data;
30343
+ return data === null || data === void 0 ? void 0 : data.map(function (d) {
30344
+ return {
30345
+ text: d.dictCode,
30346
+ value: d.dictCode
30347
+ };
30348
+ });
30349
+ }
30350
+ });
30351
+ case 5:
30352
+ source = _context3.sent;
30353
+ form === null || form === void 0 ? void 0 : form.setFieldSource(name, source);
30354
+ form.setFieldVisible(name, true);
30355
+ _context3.next = 11;
30356
+ break;
30357
+ case 10:
30358
+ form.setFieldVisible(name, false);
30359
+ case 11:
30360
+ case "end":
30361
+ return _context3.stop();
30362
+ }
30354
30363
  }
30355
30364
  }, _callee3);
30356
30365
  }));
@@ -30539,64 +30548,66 @@ var FieldsModifyModal = function FieldsModifyModal(props) {
30539
30548
  var _ref$current4, _res$editableStatus;
30540
30549
  var res, _res$defaultValue;
30541
30550
  return _regeneratorRuntime().wrap(function _callee4$(_context4) {
30542
- while (1) switch (_context4.prev = _context4.next) {
30543
- case 0:
30544
- _context4.next = 2;
30545
- return ref === null || ref === void 0 ? void 0 : (_ref$current4 = ref.current) === null || _ref$current4 === void 0 ? void 0 : _ref$current4.validateFields();
30546
- case 2:
30547
- res = _context4.sent;
30548
- res.editableStatus = (_res$editableStatus = res.editableStatus) === null || _res$editableStatus === void 0 ? void 0 : _res$editableStatus.join(',');
30549
- res.fieldGroup = record.fieldGroup;
30550
- res.businessType = record.businessType;
30551
- res.info = {
30552
- enumeration: res.enumeration,
30553
- dictionaryCode: res.dictionaryCode || (res === null || res === void 0 ? void 0 : res['dictionaryCode_dynamic']),
30554
- formula: res.formula,
30555
- scale: res.scale,
30556
- variable: res.variable
30557
- };
30558
- res.createVisibleFlag = res.showValue.indexOf('createVisibleFlag') >= 0;
30559
- res.editVisibleFlag = res.showValue.indexOf('editVisibleFlag') >= 0;
30560
- res.createEditableFlag = res.showValue.indexOf('createEditableFlag') >= 0;
30561
- if (res.inputType === 40) {
30562
- res.valueType = 22;
30563
- }
30564
- // 把数组处理成文本
30565
- if (res.inputType === 30) {
30566
- if (res.defaultValue) {
30567
- res.defaultValue = (_res$defaultValue = res.defaultValue) === null || _res$defaultValue === void 0 ? void 0 : _res$defaultValue.join(',');
30551
+ while (1) {
30552
+ switch (_context4.prev = _context4.next) {
30553
+ case 0:
30554
+ _context4.next = 2;
30555
+ return ref === null || ref === void 0 ? void 0 : (_ref$current4 = ref.current) === null || _ref$current4 === void 0 ? void 0 : _ref$current4.validateFields();
30556
+ case 2:
30557
+ res = _context4.sent;
30558
+ res.editableStatus = (_res$editableStatus = res.editableStatus) === null || _res$editableStatus === void 0 ? void 0 : _res$editableStatus.join(',');
30559
+ res.fieldGroup = record.fieldGroup;
30560
+ res.businessType = record.businessType;
30561
+ res.info = {
30562
+ enumeration: res.enumeration,
30563
+ dictionaryCode: res.dictionaryCode || (res === null || res === void 0 ? void 0 : res['dictionaryCode_dynamic']),
30564
+ formula: res.formula,
30565
+ scale: res.scale,
30566
+ variable: res.variable
30567
+ };
30568
+ res.createVisibleFlag = res.showValue.indexOf('createVisibleFlag') >= 0;
30569
+ res.editVisibleFlag = res.showValue.indexOf('editVisibleFlag') >= 0;
30570
+ res.createEditableFlag = res.showValue.indexOf('createEditableFlag') >= 0;
30571
+ if (res.inputType === 40) {
30572
+ res.valueType = 22;
30568
30573
  }
30569
- }
30570
- res.fieldMapping = res.fieldMapping || '';
30571
- delete res.formula;
30572
- delete res.showValue;
30573
- if (!(mode === 'create')) {
30574
- _context4.next = 18;
30575
- break;
30576
- }
30577
- request$1({
30578
- url: "/basic/flow/businessField",
30579
- method: 'POST',
30580
- params: res,
30581
- successMessage: '创建成功!',
30582
- converter: function converter() {
30583
- onParentOk();
30574
+ // 把数组处理成文本
30575
+ if (res.inputType === 30) {
30576
+ if (res.defaultValue) {
30577
+ res.defaultValue = (_res$defaultValue = res.defaultValue) === null || _res$defaultValue === void 0 ? void 0 : _res$defaultValue.join(',');
30578
+ }
30584
30579
  }
30585
- });
30586
- return _context4.abrupt("return");
30587
- case 18:
30588
- request$1({
30589
- url: "/basic/flow/businessField/".concat(record.id),
30590
- method: 'PATCH',
30591
- params: res,
30592
- successMessage: '修改成功!',
30593
- converter: function converter() {
30594
- onParentOk();
30580
+ res.fieldMapping = res.fieldMapping || '';
30581
+ delete res.formula;
30582
+ delete res.showValue;
30583
+ if (!(mode === 'create')) {
30584
+ _context4.next = 18;
30585
+ break;
30595
30586
  }
30596
- });
30597
- case 19:
30598
- case "end":
30599
- return _context4.stop();
30587
+ request$1({
30588
+ url: "/basic/flow/businessField",
30589
+ method: 'POST',
30590
+ params: res,
30591
+ successMessage: '创建成功!',
30592
+ converter: function converter() {
30593
+ onParentOk();
30594
+ }
30595
+ });
30596
+ return _context4.abrupt("return");
30597
+ case 18:
30598
+ request$1({
30599
+ url: "/basic/flow/businessField/".concat(record.id),
30600
+ method: 'PATCH',
30601
+ params: res,
30602
+ successMessage: '修改成功!',
30603
+ converter: function converter() {
30604
+ onParentOk();
30605
+ }
30606
+ });
30607
+ case 19:
30608
+ case "end":
30609
+ return _context4.stop();
30610
+ }
30600
30611
  }
30601
30612
  }, _callee4);
30602
30613
  }));