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

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 (178) 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/AddSelectBusiness/index.d.ts +1 -0
  9. package/dist/index.esm.js +415 -172
  10. package/dist/index.js +414 -170
  11. package/docs/index.md +21 -21
  12. package/lib/assets/drag.svg +17 -17
  13. package/lib/assets/exportFail.svg +37 -37
  14. package/lib/assets/exportProcessing.svg +28 -28
  15. package/lib/assets/exportSuccess.svg +34 -34
  16. package/lib/assets/label_icon_bottom.svg +25 -25
  17. package/lib/assets/upExport.svg +22 -22
  18. package/package.json +77 -77
  19. package/src/assets/32.svg +27 -27
  20. package/src/assets/addIcon.svg +17 -17
  21. package/src/assets/allfunc.svg +27 -27
  22. package/src/assets/arrowRight.svg +24 -24
  23. package/src/assets/btn-delete.svg +29 -29
  24. package/src/assets/btn-edit.svg +19 -19
  25. package/src/assets/btn-more.svg +17 -17
  26. package/src/assets/btn-submit.svg +19 -19
  27. package/src/assets/caidan.svg +11 -11
  28. package/src/assets/close.svg +26 -26
  29. package/src/assets/drag.svg +17 -17
  30. package/src/assets/exportFail.svg +37 -37
  31. package/src/assets/exportProcessing.svg +28 -28
  32. package/src/assets/exportSuccess.svg +34 -34
  33. package/src/assets/fixed-left-active.svg +11 -11
  34. package/src/assets/fixed-left.svg +15 -15
  35. package/src/assets/fixed-right-active.svg +11 -11
  36. package/src/assets/fixed-right.svg +15 -15
  37. package/src/assets/guanbi.svg +15 -15
  38. package/src/assets/icon-quanping.svg +15 -15
  39. package/src/assets/icon-shezhi.svg +17 -17
  40. package/src/assets/label_icon_bottom.svg +25 -25
  41. package/src/assets/list-no-img.svg +21 -21
  42. package/src/assets/morentouxiang-32.svg +23 -23
  43. package/src/assets/scanning.svg +24 -24
  44. package/src/assets/upExport.svg +22 -22
  45. package/src/components/Business/AddSelectBusiness/index.md +93 -63
  46. package/src/components/Business/AddSelectBusiness/index.tsx +601 -344
  47. package/src/components/Business/BsLayouts/Components/AllFunc/drawContent.tsx +111 -111
  48. package/src/components/Business/BsLayouts/Components/AllFunc/index.less +153 -153
  49. package/src/components/Business/BsLayouts/Components/AllFunc/index.tsx +70 -70
  50. package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.less +90 -90
  51. package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.tsx +37 -37
  52. package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/leftTree.tsx +242 -242
  53. package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/rightTree.tsx +384 -384
  54. package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/DrawContent.tsx +285 -285
  55. package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/customMenuHeader.tsx +74 -74
  56. package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/drawContent.less +170 -170
  57. package/src/components/Business/BsLayouts/Components/CustomerMenu/index.less +64 -64
  58. package/src/components/Business/BsLayouts/Components/CustomerMenu/index.tsx +153 -153
  59. package/src/components/Business/BsLayouts/Components/GlobalHeader/index.less +72 -72
  60. package/src/components/Business/BsLayouts/Components/GlobalHeader/index.tsx +157 -157
  61. package/src/components/Business/BsLayouts/Components/RightContent/LoginModal.tsx +85 -85
  62. package/src/components/Business/BsLayouts/Components/RightContent/home.less +218 -218
  63. package/src/components/Business/BsLayouts/Components/RightContent/index.tsx +156 -156
  64. package/src/components/Business/BsLayouts/Components/SearchFunc/index.less +160 -160
  65. package/src/components/Business/BsLayouts/Components/SearchFunc/index.tsx +75 -75
  66. package/src/components/Business/BsLayouts/index.less +79 -79
  67. package/src/components/Business/BsLayouts/index.tsx +1479 -1475
  68. package/src/components/Business/BsLayouts/service.ts +10 -10
  69. package/src/components/Business/BsLayouts/utils.tsx +225 -225
  70. package/src/components/Business/BsSulaQueryTable/SearchItemSetting.tsx +538 -538
  71. package/src/components/Business/BsSulaQueryTable/index.less +219 -219
  72. package/src/components/Business/BsSulaQueryTable/index.tsx +520 -520
  73. package/src/components/Business/BsSulaQueryTable/setting.tsx +802 -802
  74. package/src/components/Business/BsSulaQueryTable/utils.less +65 -65
  75. package/src/components/Business/BsSulaQueryTable/utils.tsx +688 -688
  76. package/src/components/Business/CommodityEntry/index.md +70 -70
  77. package/src/components/Business/CommodityEntry/index.tsx +80 -80
  78. package/src/components/Business/CommonAlert/index.tsx +23 -23
  79. package/src/components/Business/CommonGuideWrapper/index.less +111 -111
  80. package/src/components/Business/CommonGuideWrapper/index.md +39 -39
  81. package/src/components/Business/CommonGuideWrapper/index.tsx +83 -83
  82. package/src/components/Business/DetailPageWrapper/index.less +79 -79
  83. package/src/components/Business/DetailPageWrapper/index.tsx +313 -313
  84. package/src/components/Business/DetailPageWrapper/utils.tsx +100 -100
  85. package/src/components/Business/HomePageWrapper/index.less +33 -33
  86. package/src/components/Business/HomePageWrapper/index.md +45 -45
  87. package/src/components/Business/HomePageWrapper/index.tsx +162 -162
  88. package/src/components/Business/JsonQueryTable/components/FieldsModifyModal.tsx +824 -824
  89. package/src/components/Business/JsonQueryTable/components/FieldsSettingsTable.tsx +201 -205
  90. package/src/components/Business/JsonQueryTable/components/Formula.tsx +205 -205
  91. package/src/components/Business/JsonQueryTable/components/MaintainOptions.tsx +127 -127
  92. package/src/components/Business/JsonQueryTable/configButton/index.js +20 -20
  93. package/src/components/Business/JsonQueryTable/configTree/component/compactArrayView.js +25 -25
  94. package/src/components/Business/JsonQueryTable/configTree/component/compactObjectView.js +30 -30
  95. package/src/components/Business/JsonQueryTable/configTree/index.js +82 -82
  96. package/src/components/Business/JsonQueryTable/configTree/index.less +44 -44
  97. package/src/components/Business/JsonQueryTable/configTree/parser/highlight.js +57 -57
  98. package/src/components/Business/JsonQueryTable/configTree/parser/index.js +124 -124
  99. package/src/components/Business/JsonQueryTable/configTree/render/iconRender.js +29 -29
  100. package/src/components/Business/JsonQueryTable/configTree/render/nameRender.js +22 -22
  101. package/src/components/Business/JsonQueryTable/configTree/treeNode.js +116 -116
  102. package/src/components/Business/JsonQueryTable/drawer/index.tsx +12 -12
  103. package/src/components/Business/JsonQueryTable/function.ts +62 -62
  104. package/src/components/Business/JsonQueryTable/index.less +16 -16
  105. package/src/components/Business/JsonQueryTable/index.md +328 -328
  106. package/src/components/Business/JsonQueryTable/index.tsx +320 -449
  107. package/src/components/Business/JsonQueryTable/jsonEditor/index.js +346 -346
  108. package/src/components/Business/JsonQueryTable/jsonEditor/index.less +22 -22
  109. package/src/components/Business/JsonQueryTable/jsonEditor/lint/basicType.js +147 -147
  110. package/src/components/Business/JsonQueryTable/jsonEditor/lint/index.js +389 -389
  111. package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/actions.js +118 -118
  112. package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/dependency.js +22 -22
  113. package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/index.js +21 -21
  114. package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/request.js +65 -65
  115. package/src/components/Business/JsonQueryTable/static.ts +356 -356
  116. package/src/components/Business/SearchSelect/BusinessUtils.ts +1586 -1586
  117. package/src/components/Business/SearchSelect/common.ts +53 -53
  118. package/src/components/Business/SearchSelect/index.md +1254 -1254
  119. package/src/components/Business/SearchSelect/index.tsx +51 -51
  120. package/src/components/Business/SearchSelect/utils.ts +100 -100
  121. package/src/components/Business/StateFlow/index.less +130 -130
  122. package/src/components/Business/StateFlow/index.md +60 -60
  123. package/src/components/Business/StateFlow/index.tsx +29 -29
  124. package/src/components/Business/TreeSearchSelect/index.md +126 -126
  125. package/src/components/Business/TreeSearchSelect/index.tsx +34 -34
  126. package/src/components/Business/TreeSearchSelect/utils.ts +60 -60
  127. package/src/components/Business/columnSettingTable/columnSetting.tsx +764 -764
  128. package/src/components/Business/columnSettingTable/index.less +247 -247
  129. package/src/components/Business/columnSettingTable/index.md +357 -357
  130. package/src/components/Business/columnSettingTable/index.tsx +232 -232
  131. package/src/components/Business/columnSettingTable/sulaSettingTable.tsx +240 -240
  132. package/src/components/Business/columnSettingTable/utils.tsx +68 -68
  133. package/src/components/Business/moreTreeTable/index.less +99 -99
  134. package/src/components/Business/moreTreeTable/index.md +508 -508
  135. package/src/components/Business/moreTreeTable/index.tsx +315 -315
  136. package/src/components/Business/moreTreeTable/utils.ts +126 -126
  137. package/src/components/Functional/AddSelect/index.less +367 -367
  138. package/src/components/Functional/AddSelect/index.md +155 -155
  139. package/src/components/Functional/AddSelect/index.tsx +1165 -1072
  140. package/src/components/Functional/BillEntry/index.less +371 -371
  141. package/src/components/Functional/BillEntry/index.md +39 -39
  142. package/src/components/Functional/BillEntry/index.tsx +766 -766
  143. package/src/components/Functional/DataImport/index.less +63 -63
  144. package/src/components/Functional/DataImport/index.md +44 -44
  145. package/src/components/Functional/DataImport/index.tsx +695 -695
  146. package/src/components/Functional/DataValidation/index.less +63 -63
  147. package/src/components/Functional/DataValidation/index.md +39 -39
  148. package/src/components/Functional/DataValidation/index.tsx +687 -687
  149. package/src/components/Functional/ExportFunctions/ExportIcon/index.md +37 -37
  150. package/src/components/Functional/ExportFunctions/ExportIcon/index.tsx +59 -59
  151. package/src/components/Functional/QueryMutipleInput/index.less +37 -37
  152. package/src/components/Functional/QueryMutipleInput/index.md +33 -33
  153. package/src/components/Functional/QueryMutipleInput/index.tsx +128 -128
  154. package/src/components/Functional/SearchSelect/index.less +115 -115
  155. package/src/components/Functional/SearchSelect/index.md +141 -141
  156. package/src/components/Functional/SearchSelect/index.tsx +813 -813
  157. package/src/components/Functional/SearchSelect/utils.ts +3 -3
  158. package/src/components/Functional/TreeSearchSelect/index.md +47 -47
  159. package/src/components/Functional/TreeSearchSelect/index.tsx +160 -160
  160. package/src/index.ts +34 -34
  161. package/src/plugin/TableColumnSetting/index.less +247 -247
  162. package/src/plugin/TableColumnSetting/index.md +50 -50
  163. package/src/plugin/TableColumnSetting/index.tsx +724 -724
  164. package/src/plugin/TableColumnSetting/utils.ts +19 -19
  165. package/src/styles/bsDefault.less +1912 -1912
  166. package/src/utils/CheckOneUser/index.md +39 -39
  167. package/src/utils/CheckOneUser/index.ts +51 -51
  168. package/src/utils/LocalstorageUtils.ts +58 -58
  169. package/src/utils/TableUtils.tsx +18 -18
  170. package/src/utils/checkUtils.ts +39 -39
  171. package/src/utils/enumConfig.ts +11 -11
  172. package/src/utils/getFormMode.js +12 -12
  173. package/src/utils/index.ts +2 -2
  174. package/src/utils/requestUtils.ts +36 -34
  175. package/src/utils/serialize.js +7 -7
  176. package/src/utils/utils.ts +183 -183
  177. package/tsconfig.json +29 -29
  178. package/typings.d.ts +4 -4
package/dist/index.esm.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import axios from 'axios';
2
2
  import { message, Menu, Space, Dropdown, Tooltip, Button, Checkbox, Input, Modal, Select, Form, Divider, Spin, Table, TreeSelect, Tag, Popover, Card, Avatar, Image, InputNumber, Typography, Alert, Anchor, Breadcrumb, Drawer as Drawer$1, List, Tree, Row, Col, Tabs, Affix } from 'antd';
3
3
  import _, { omit, debounce, cloneDeep as cloneDeep$1, isEmpty } from 'lodash';
4
- import React, { useState, useEffect, forwardRef, useImperativeHandle, useRef, useMemo, Component, useLayoutEffect, createRef, Fragment } from 'react';
4
+ import React, { useState, useEffect, forwardRef, useImperativeHandle, useRef, useMemo, Component, useLayoutEffect, createRef } from 'react';
5
5
  import { DragDropContext, Droppable, Draggable } from 'react-beautiful-dnd';
6
6
  import { UnorderedListOutlined, ProfileTwoTone, ExclamationCircleOutlined, DownOutlined, CopyOutlined, SearchOutlined, CaretLeftOutlined, CloseCircleOutlined, ArrowLeftOutlined, FolderOutlined, EllipsisOutlined, CaretDownOutlined, HomeOutlined, DoubleLeftOutlined, DoubleRightOutlined, MenuUnfoldOutlined, DashOutlined, SettingOutlined, BulbOutlined, PlayCircleOutlined, SaveOutlined, FullscreenExitOutlined } from '@ant-design/icons';
7
7
  import { useDebounceFn, useMount } from 'ahooks';
@@ -87,7 +87,10 @@ function handleRequestAuthHeader(config) {
87
87
  }
88
88
  // 处理请求头
89
89
  var handleRequestHeader = function handleRequestHeader(config) {
90
+ var _resposne$accountPers, _resposne$employeeRes;
90
91
  config.headers['sso-sessionid'] = (resposne === null || resposne === void 0 ? void 0 : resposne.sessionId) || '';
92
+ config.headers['x-account-id'] = (resposne === null || resposne === void 0 ? void 0 : (_resposne$accountPers = resposne.accountPersonDetail) === null || _resposne$accountPers === void 0 ? void 0 : _resposne$accountPers.accountId) || -1;
93
+ config.headers['x-employee-id'] = (resposne === null || resposne === void 0 ? void 0 : (_resposne$employeeRes = resposne.employeeResVo) === null || _resposne$employeeRes === void 0 ? void 0 : _resposne$employeeRes.id) || 2;
91
94
  config.headers['x-tenant-id'] = getCurrentTenantId() || 1;
92
95
  if (localStorage.getItem('x-user-auth-context')) {
93
96
  config.headers['x-user-auth-context'] = localStorage.getItem('x-user-auth-context');
@@ -9892,7 +9895,11 @@ var AddSelect = function AddSelect(props) {
9892
9895
  buttonProps = _props$buttonProps === void 0 ? {} : _props$buttonProps,
9893
9896
  beforeShowModal = props.beforeShowModal,
9894
9897
  _props$tableCodeList = props.tableCodeList,
9895
- tableCodeList = _props$tableCodeList === void 0 ? [] : _props$tableCodeList;
9898
+ tableCodeList = _props$tableCodeList === void 0 ? [] : _props$tableCodeList,
9899
+ _props$businessType = props.businessType,
9900
+ businessType = _props$businessType === void 0 ? 'sku' : _props$businessType,
9901
+ _props$isAllowRepeate = props.isAllowRepeatedSelect,
9902
+ isAllowRepeatedSelect = _props$isAllowRepeate === void 0 ? false : _props$isAllowRepeate;
9896
9903
  var _ref = requestConfig || {},
9897
9904
  url = _ref.url,
9898
9905
  otherParams = _ref.otherParams,
@@ -9909,6 +9916,7 @@ var AddSelect = function AddSelect(props) {
9909
9916
  var realButtonProps = _objectSpread2({
9910
9917
  type: "primary"
9911
9918
  }, buttonProps);
9919
+ var selectRowKey = isAllowRepeatedSelect ? 'uuid' : mappingValueField;
9912
9920
  var selectMode = selectProps === null || selectProps === void 0 ? void 0 : selectProps.mode; // 设定当前选择器 为单选或者多选模式 无设定为单选模式(默认)
9913
9921
  var initVal = value || (selectMode ? [] : null);
9914
9922
  var pageSize = 100; // 下拉框默认分页 条数
@@ -10060,7 +10068,9 @@ var AddSelect = function AddSelect(props) {
10060
10068
  var _record$packingUnitLi, _record$packingUnitLi2;
10061
10069
  // let
10062
10070
  if (record.needFocus === true && currentIndex === 0) ;
10063
- var precisionObj = {};
10071
+ var precisionObj = businessType == 'skc' ? {
10072
+ precision: 0
10073
+ } : {};
10064
10074
  var unitAccuracy = (_record$packingUnitLi = record.packingUnitList) === null || _record$packingUnitLi === void 0 ? void 0 : (_record$packingUnitLi2 = _record$packingUnitLi[0]) === null || _record$packingUnitLi2 === void 0 ? void 0 : _record$packingUnitLi2.unitAccuracy;
10065
10075
  var isCountUnitAccuracyCheck = item.dataIndex == 'count' && unitAccuracy !== undefined;
10066
10076
  if (isCountUnitAccuracyCheck) {
@@ -10184,6 +10194,53 @@ var AddSelect = function AddSelect(props) {
10184
10194
  }
10185
10195
  });
10186
10196
  }
10197
+ var selectLength = modalTableProps.selectColumn.filter(function (item) {
10198
+ return item.isSelectItem;
10199
+ }).length;
10200
+ if (item.isSelectItem) {
10201
+ return _objectSpread2(_objectSpread2({}, item), {}, {
10202
+ render: function render(text, record, index) {
10203
+ var _item$dataSource;
10204
+ if ((_item$dataSource = item.dataSource) === null || _item$dataSource === void 0 ? void 0 : _item$dataSource.length) {
10205
+ return /*#__PURE__*/React.createElement(Select, {
10206
+ value: text || null,
10207
+ onChange: function onChange(value) {
10208
+ if (businessType == 'skc' && popvalue.some(function (i) {
10209
+ return i.code == record.code && i[item.dataIndex] == value;
10210
+ })) {
10211
+ message.warning('相同skc配码不可设置相同哦');
10212
+ record[item.dataIndex] = null;
10213
+ var _newPopValue = popvalue.map(function (i, innerIndex) {
10214
+ if (innerIndex == index) {
10215
+ i[item.dataIndex] = record[item.dataIndex];
10216
+ }
10217
+ return i;
10218
+ });
10219
+ setPopValue(_newPopValue);
10220
+ return false;
10221
+ }
10222
+ record[item.dataIndex] = value;
10223
+ var newPopValue = popvalue.map(function (i, innerIndex) {
10224
+ if (innerIndex == index) {
10225
+ i[item.dataIndex] = record[item.dataIndex];
10226
+ }
10227
+ return i;
10228
+ });
10229
+ setPopValue(newPopValue);
10230
+ },
10231
+ style: {
10232
+ width: '160px'
10233
+ }
10234
+ }, item.dataSource.map(function (item) {
10235
+ return /*#__PURE__*/React.createElement(Select.Option, {
10236
+ value: item.code
10237
+ }, item.name);
10238
+ }));
10239
+ }
10240
+ return /*#__PURE__*/React.createElement(React.Fragment, null);
10241
+ }
10242
+ });
10243
+ }
10187
10244
  return item;
10188
10245
  })), [{
10189
10246
  title: '操作',
@@ -10390,18 +10447,42 @@ var AddSelect = function AddSelect(props) {
10390
10447
  };
10391
10448
 
10392
10449
  useEffect(function () {
10393
- Promise.all([loadSelectSource("/items/brand/queryBrandList", {
10394
- pageSize: 5000,
10395
- currentPage: 1,
10396
- 'ctl-withAuth': true
10397
- }), loadSelectSource("/items/category/queryCategoryTree", {
10398
- pageSize: 5000,
10399
- currentPage: 1
10400
- })]).then(function (x) {
10401
- formatSource(x, 0, 2, tableSearchForm, ['id', 'name']);
10402
- formatTreeDataSource(x, 1, 3, tableSearchForm);
10403
- });
10404
- }, []);
10450
+ if (businessType == 'sku') {
10451
+ Promise.all([loadSelectSource("/items/brand/queryBrandList", {
10452
+ pageSize: 5000,
10453
+ currentPage: 1,
10454
+ 'ctl-withAuth': true
10455
+ }), loadSelectSource("/items/category/queryCategoryTree", {
10456
+ pageSize: 5000,
10457
+ currentPage: 1
10458
+ })]).then(function (x) {
10459
+ formatSource(x, 0, 2, tableSearchForm, ['id', 'name']);
10460
+ formatTreeDataSource(x, 1, 3, tableSearchForm);
10461
+ });
10462
+ }
10463
+ if (businessType == 'skc') {
10464
+ Promise.all([loadSelectSource("/items/item/propertyValue", {
10465
+ pageSize: 5000,
10466
+ currentPage: 1,
10467
+ 'qp-propertyId-eq': '1467042217951883265'
10468
+ }), loadSelectSource("/items/category/queryCategoryTree", {
10469
+ pageSize: 5000,
10470
+ currentPage: 1
10471
+ }), loadSelectSource("/items/class/withProperty", {
10472
+ pageSize: 5000,
10473
+ currentPage: 1
10474
+ }), loadSelectSource("/items/brand/queryBrandList", {
10475
+ pageSize: 5000,
10476
+ currentPage: 1,
10477
+ 'ctl-withAuth': true
10478
+ })]).then(function (x) {
10479
+ formatSource(x, 0, 3, tableSearchForm, ['id', 'name']);
10480
+ formatTreeDataSource(x, 1, 4, tableSearchForm);
10481
+ formatSource(x, 2, 5, tableSearchForm, ['id', 'name']);
10482
+ formatSource(x, 3, 6, tableSearchForm, ['id', 'name']);
10483
+ });
10484
+ }
10485
+ }, [businessType]);
10405
10486
  useEffect(function () {
10406
10487
  if (value) {
10407
10488
  setPopValue(value);
@@ -10531,8 +10612,18 @@ var AddSelect = function AddSelect(props) {
10531
10612
  selectRows[selectedRowKeys.length]['needFocus'] = true;
10532
10613
  }
10533
10614
  }
10534
- setPopValue(selectRows);
10535
- setSelectedRowKeys(selectKeys);
10615
+ if (isAllowRepeatedSelect) {
10616
+ var list = popvalue.concat(selectRows).map(function (i) {
10617
+ return _objectSpread2(_objectSpread2({}, i), {}, {
10618
+ uuid: i.uuid || uuid()
10619
+ });
10620
+ });
10621
+ setPopValue(list);
10622
+ setSelectedRowKeys([]);
10623
+ } else {
10624
+ setPopValue(selectRows);
10625
+ setSelectedRowKeys(selectKeys);
10626
+ }
10536
10627
  // setIndeterminate(!!filterRows.length && filterRows.length < tablePagination?.total);
10537
10628
  // setCheckedAll(filterRows.length === tablePagination?.total);
10538
10629
  };
@@ -10649,12 +10740,19 @@ var AddSelect = function AddSelect(props) {
10649
10740
  setSelectedRowKeys([]);
10650
10741
  };
10651
10742
  var deleteRecord = function deleteRecord(record) {
10652
- setPopValue(popvalue.filter(function (item) {
10653
- return item.skuCode !== record.skuCode;
10654
- }));
10655
- setSelectedRowKeys(_toConsumableArray(selectedRowKeys.filter(function (item) {
10656
- return item !== record.skuCode;
10657
- })));
10743
+ if (isAllowRepeatedSelect) {
10744
+ setPopValue(popvalue.filter(function (item) {
10745
+ return item.uuid !== record.uuid;
10746
+ }));
10747
+ setSelectedRowKeys([]);
10748
+ } else {
10749
+ setPopValue(popvalue.filter(function (item) {
10750
+ return item.skuCode !== record.skuCode;
10751
+ }));
10752
+ setSelectedRowKeys(_toConsumableArray(selectedRowKeys.filter(function (item) {
10753
+ return item !== record.skuCode;
10754
+ })));
10755
+ }
10658
10756
  };
10659
10757
  var inputIndex = 0;
10660
10758
  useEffect(function () {
@@ -10726,6 +10824,7 @@ var AddSelect = function AddSelect(props) {
10726
10824
  handleColumns(showSelectedCol, [], function (res) {
10727
10825
  return setShowColumnsCallback(res);
10728
10826
  });
10827
+ var selectLength = isAllowRepeatedSelect ? (popvalue === null || popvalue === void 0 ? void 0 : popvalue.length) || 0 : (selectedRowKeys === null || selectedRowKeys === void 0 ? void 0 : selectedRowKeys.length) || 0;
10729
10828
  return /*#__PURE__*/React.createElement("div", {
10730
10829
  className: 'add_select'
10731
10830
  }, /*#__PURE__*/React.createElement("div", {
@@ -10811,7 +10910,7 @@ var AddSelect = function AddSelect(props) {
10811
10910
  style: themeColor
10812
10911
  }, (tablePagination === null || tablePagination === void 0 ? void 0 : tablePagination.total) || 0), "\xA0\u9879", selectMode ? /*#__PURE__*/React.createElement("span", null, "\uFF0C \u672C\u6B21\u5DF2\u9009\xA0", /*#__PURE__*/React.createElement("span", {
10813
10912
  style: themeColor
10814
- }, (selectedRowKeys === null || selectedRowKeys === void 0 ? void 0 : selectedRowKeys.length) || 0), "\xA0\u9879") : ''), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("span", {
10913
+ }, selectLength), "\xA0\u9879") : ''), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("span", {
10815
10914
  style: {
10816
10915
  marginRight: 8
10817
10916
  }
@@ -10854,7 +10953,7 @@ var AddSelect = function AddSelect(props) {
10854
10953
  }
10855
10954
  }, /*#__PURE__*/React.createElement("span", null, "\u672C\u6B21\u5DF2\u9009\xA0", /*#__PURE__*/React.createElement("span", {
10856
10955
  style: themeColor
10857
- }, (selectedRowKeys === null || selectedRowKeys === void 0 ? void 0 : selectedRowKeys.length) || 0), "\xA0\u9879")), /*#__PURE__*/React.createElement("div", {
10956
+ }, selectLength), "\xA0\u9879")), /*#__PURE__*/React.createElement("div", {
10858
10957
  style: {
10859
10958
  display: 'flex'
10860
10959
  }
@@ -10888,7 +10987,7 @@ var AddSelect = function AddSelect(props) {
10888
10987
  dataSource: popvalue,
10889
10988
  pagination: false,
10890
10989
  // onChange={handleTableChange}
10891
- rowKey: mappingValueField,
10990
+ rowKey: selectRowKey,
10892
10991
  rowClassName: 'row-class',
10893
10992
  scroll: {
10894
10993
  y: 500
@@ -13866,7 +13965,8 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
13866
13965
  setValue(value);
13867
13966
  },
13868
13967
  beforeShowModal: parProps === null || parProps === void 0 ? void 0 : parProps.beforeShowModal,
13869
- onSaveCallback: parProps.onSaveCallback
13968
+ onSaveCallback: parProps.onSaveCallback,
13969
+ businessType: 'sku'
13870
13970
  // onSaveCallback: (rows) => {
13871
13971
  // console.log('save call', rows);
13872
13972
  // // return Promise.resolve(true);
@@ -14072,6 +14172,280 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
14072
14172
  modalTableProps: modalTableProps
14073
14173
  })));
14074
14174
  };
14175
+ var AddSkcSelect = function AddSkcSelect(parProps) {
14176
+ var selectProps = {
14177
+ mode: 'multiple'
14178
+ };
14179
+ var _useState3 = useState((selectProps === null || selectProps === void 0 ? void 0 : selectProps.mode) ? [] : null),
14180
+ _useState4 = _slicedToArray(_useState3, 2),
14181
+ value = _useState4[0],
14182
+ setValue = _useState4[1];
14183
+ var _useState5 = useState([]),
14184
+ _useState6 = _slicedToArray(_useState5, 2),
14185
+ propertyList = _useState6[0],
14186
+ setPropertyList = _useState6[1];
14187
+ useEffect(function () {
14188
+ axios.get("/items/itemPropertyValueGroup/listNoPage").then(function (result) {
14189
+ var _result, _result2;
14190
+ result = result.data;
14191
+ if (((_result = result) === null || _result === void 0 ? void 0 : _result.status) && result.status !== '0' || ((_result2 = result) === null || _result2 === void 0 ? void 0 : _result2.code) && result.code !== '000000') {
14192
+ message.error(result.msg);
14193
+ return;
14194
+ }
14195
+ var data = result.data || [];
14196
+ setPropertyList(data);
14197
+ }).catch(function (err) {});
14198
+ }, []);
14199
+ var initialSelectColumn = [{
14200
+ title: 'SKC编码',
14201
+ width: 150,
14202
+ dataIndex: 'code'
14203
+ }, {
14204
+ title: 'SKC名称',
14205
+ width: 200,
14206
+ ellipsis: {
14207
+ showTitle: false
14208
+ },
14209
+ render: function render(text) {
14210
+ return /*#__PURE__*/React.createElement(Tooltip, {
14211
+ placement: "topLeft",
14212
+ title: text
14213
+ }, text);
14214
+ },
14215
+ dataIndex: 'name'
14216
+ }, {
14217
+ title: '颜色',
14218
+ width: 200,
14219
+ ellipsis: {
14220
+ showTitle: false
14221
+ },
14222
+ render: function render(text) {
14223
+ return /*#__PURE__*/React.createElement(Tooltip, {
14224
+ placement: "topLeft",
14225
+ title: text
14226
+ }, text);
14227
+ },
14228
+ dataIndex: 'colorName'
14229
+ }, {
14230
+ title: '配码',
14231
+ dataIndex: 'selectPropertyGroupCode',
14232
+ width: 160,
14233
+ isSelectItem: true,
14234
+ dataSource: propertyList
14235
+ }, {
14236
+ title: '数量',
14237
+ width: 100,
14238
+ isInputItem: true,
14239
+ dataIndex: 'count'
14240
+ }];
14241
+ var mTpSelectColumn = handleSelectColumn(initialSelectColumn, parProps);
14242
+ var props = {
14243
+ buttonText: parProps.buttonText || '新增',
14244
+ buttonProps: parProps.buttonProps || {},
14245
+ tableCodeList: parProps.tableCodeList || ['skcSelect-tableOptionsToChoosePartCode', 'skcSelect-tableSelectedItemPartCode'],
14246
+ value: value,
14247
+ // labelInValue: true, // 非必填 默认为false
14248
+ requestConfig: _objectSpread2({
14249
+ url: "/items/skc/skcSelect",
14250
+ filter: 'qp-name-like',
14251
+ otherParams: {},
14252
+ mappingTextField: 'name',
14253
+ mappingValueField: 'code'
14254
+ }, parProps.requestConfig),
14255
+ selectProps: selectProps,
14256
+ onChange: function onChange(value) {
14257
+ console.log(value);
14258
+ setValue(value);
14259
+ },
14260
+ beforeShowModal: parProps === null || parProps === void 0 ? void 0 : parProps.beforeShowModal,
14261
+ onSaveCallback: parProps.onSaveCallback,
14262
+ businessType: 'skc',
14263
+ isAllowRepeatedSelect: true
14264
+ };
14265
+ var modalTableProps = {
14266
+ modalTableTitle: '选择商品',
14267
+ tableSearchForm: [{
14268
+ name: 'qp-code-like',
14269
+ label: 'SKC编码'
14270
+ }, {
14271
+ name: 'qp-skcName-like',
14272
+ label: 'SKC名称'
14273
+ }, {
14274
+ name: 'qp-itemName-like',
14275
+ label: '商品名称'
14276
+ }, {
14277
+ name: 'qp-colorName-in',
14278
+ type: 'select',
14279
+ label: '颜色',
14280
+ field: {
14281
+ type: 'select',
14282
+ props: {
14283
+ mode: 'multiple',
14284
+ notFoundContent: '暂无数据',
14285
+ allowClear: true,
14286
+ showSearch: true,
14287
+ showArrow: true,
14288
+ maxTagCount: 1,
14289
+ optionFilterProp: 'children',
14290
+ filterOption: function filterOption(input, option) {
14291
+ return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
14292
+ }
14293
+ }
14294
+ }
14295
+ }, {
14296
+ name: 'qp-categoryId-in',
14297
+ type: 'treeSelect',
14298
+ label: '类目',
14299
+ field: {
14300
+ type: 'treeSelect',
14301
+ props: {
14302
+ treeData: [],
14303
+ treeCheckable: true,
14304
+ showSearch: true,
14305
+ allowClear: true,
14306
+ showArrow: true,
14307
+ treeNodeFilterProp: 'title',
14308
+ treeDefaultExpandAll: true,
14309
+ maxTagCount: 1,
14310
+ placeholder: '请选择',
14311
+ style: {
14312
+ width: '100%'
14313
+ },
14314
+ dropdownStyle: {
14315
+ maxHeight: 400,
14316
+ maxWidth: 100,
14317
+ overflow: 'auto'
14318
+ }
14319
+ }
14320
+ }
14321
+ }, {
14322
+ name: 'qp-classId-in',
14323
+ type: 'select',
14324
+ label: '品类',
14325
+ field: {
14326
+ type: 'select',
14327
+ props: {
14328
+ mode: 'multiple',
14329
+ notFoundContent: '暂无数据',
14330
+ allowClear: true,
14331
+ showSearch: true,
14332
+ showArrow: true,
14333
+ maxTagCount: 1,
14334
+ optionFilterProp: 'children',
14335
+ filterOption: function filterOption(input, option) {
14336
+ return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
14337
+ }
14338
+ }
14339
+ }
14340
+ }, {
14341
+ name: 'qp-brandId-in',
14342
+ type: 'select',
14343
+ label: '品牌',
14344
+ field: {
14345
+ type: 'select',
14346
+ props: {
14347
+ mode: 'multiple',
14348
+ notFoundContent: '暂无数据',
14349
+ allowClear: true,
14350
+ showSearch: true,
14351
+ showArrow: true,
14352
+ maxTagCount: 1,
14353
+ optionFilterProp: 'children',
14354
+ filterOption: function filterOption(input, option) {
14355
+ return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
14356
+ }
14357
+ }
14358
+ }
14359
+ }],
14360
+ tableColumns: [{
14361
+ title: 'SKC编码',
14362
+ width: 150,
14363
+ dataIndex: 'code'
14364
+ }, {
14365
+ title: 'SKC名称',
14366
+ width: 200,
14367
+ ellipsis: {
14368
+ showTitle: false
14369
+ },
14370
+ render: function render(text) {
14371
+ return /*#__PURE__*/React.createElement(Tooltip, {
14372
+ placement: "topLeft",
14373
+ title: text
14374
+ }, text);
14375
+ },
14376
+ dataIndex: 'name'
14377
+ }, {
14378
+ title: '商品名称',
14379
+ width: 100,
14380
+ ellipsis: {
14381
+ showTitle: false
14382
+ },
14383
+ dataIndex: 'itemName',
14384
+ render: function render(text) {
14385
+ return /*#__PURE__*/React.createElement(Tooltip, {
14386
+ placement: "topLeft",
14387
+ title: text
14388
+ }, text);
14389
+ }
14390
+ }, {
14391
+ title: '颜色',
14392
+ width: 100,
14393
+ ellipsis: {
14394
+ showTitle: false
14395
+ },
14396
+ render: function render(text) {
14397
+ return /*#__PURE__*/React.createElement(Tooltip, {
14398
+ placement: "topLeft",
14399
+ title: text
14400
+ }, text);
14401
+ },
14402
+ dataIndex: 'colorName'
14403
+ }, {
14404
+ title: '类目',
14405
+ width: 100,
14406
+ ellipsis: {
14407
+ showTitle: false
14408
+ },
14409
+ render: function render(text) {
14410
+ return /*#__PURE__*/React.createElement(Tooltip, {
14411
+ placement: "topLeft",
14412
+ title: text
14413
+ }, text);
14414
+ },
14415
+ dataIndex: 'categoryName'
14416
+ }, {
14417
+ title: '品类',
14418
+ width: 100,
14419
+ ellipsis: {
14420
+ showTitle: false
14421
+ },
14422
+ render: function render(text) {
14423
+ return /*#__PURE__*/React.createElement(Tooltip, {
14424
+ placement: "topLeft",
14425
+ title: text
14426
+ }, text);
14427
+ },
14428
+ dataIndex: 'className'
14429
+ }, {
14430
+ title: '品牌',
14431
+ width: 100,
14432
+ ellipsis: {
14433
+ showTitle: false
14434
+ },
14435
+ render: function render(text) {
14436
+ return /*#__PURE__*/React.createElement(Tooltip, {
14437
+ placement: "topLeft",
14438
+ title: text
14439
+ }, text);
14440
+ },
14441
+ dataIndex: 'brandName'
14442
+ }],
14443
+ selectColumn: mTpSelectColumn
14444
+ };
14445
+ return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(AddSelect, _objectSpread2(_objectSpread2({}, props), {}, {
14446
+ modalTableProps: modalTableProps
14447
+ })));
14448
+ };
14075
14449
 
14076
14450
  var CommodityEntry = function CommodityEntry(props) {
14077
14451
  var dataValidationRef = useRef();
@@ -21133,7 +21507,12 @@ var WrapperComponent = /*#__PURE__*/function (_React$Component) {
21133
21507
  }
21134
21508
  _createClass(WrapperComponent, [{
21135
21509
  key: "shouldComponentUpdate",
21136
- value: function shouldComponentUpdate() {
21510
+ value: function shouldComponentUpdate(nextProps) {
21511
+ var _nextProps$item, _nextProps$item$key;
21512
+ if (window.__POWERED_BY_WUJIE__ && (nextProps === null || nextProps === void 0 ? void 0 : (_nextProps$item = nextProps.item) === null || _nextProps$item === void 0 ? void 0 : (_nextProps$item$key = _nextProps$item.key) === null || _nextProps$item$key === void 0 ? void 0 : _nextProps$item$key.indexOf('edit-template-template')) > -1) {
21513
+ // 适配wujie环境主应用下渲染打印编辑器
21514
+ return true;
21515
+ }
21137
21516
  return false;
21138
21517
  }
21139
21518
  }, {
@@ -29474,9 +29853,7 @@ var FieldsSettingsTable = (function (props) {
29474
29853
  _props$codeProps = props.codeProps,
29475
29854
  codeProps = _props$codeProps === void 0 ? '' : _props$codeProps,
29476
29855
  moduleType = props.moduleType,
29477
- moduleRelationId = props.moduleRelationId,
29478
- _props$tableFlag = props.tableFlag,
29479
- tableFlag = _props$tableFlag === void 0 ? false : _props$tableFlag;
29856
+ moduleRelationId = props.moduleRelationId;
29480
29857
  var ref = useRef(null);
29481
29858
  var _useState = useState({
29482
29859
  visible: false,
@@ -29565,9 +29942,6 @@ var FieldsSettingsTable = (function (props) {
29565
29942
  render: function render(_ref2) {
29566
29943
  var text = _ref2.text,
29567
29944
  record = _ref2.record;
29568
- if (tableFlag) {
29569
- return /*#__PURE__*/React.createElement("div", null, " \u5217\u8868\uFF1A", "{\"key\": \"extensionFields,".concat(record.code, "\",\"dataIndex\": \"extensionFields,").concat(record.code, "\",\"title\": \"").concat(record.name, "\"},"));
29570
- }
29571
29945
  if (!codeProps.columns) {
29572
29946
  return /*#__PURE__*/React.createElement("div", null, "\u8868\u5355\uFF1A", "{\"name\": \"extensionFields,".concat(record.code, "\",\"label\": \"").concat(record.name, "\"},"));
29573
29947
  }
@@ -29803,10 +30177,7 @@ var JsonQueryTable = /*#__PURE__*/React.memo(function (props) {
29803
30177
  codeProps = props.codeProps,
29804
30178
  customerFields = props.customerFields,
29805
30179
  initialSetting = props.initialSetting,
29806
- pageType = props.pageType,
29807
- _props$detailTablesSe = props.detailTablesSetting,
29808
- detailTablesSetting = _props$detailTablesSe === void 0 ? [] : _props$detailTablesSe,
29809
- saveTableCallBack = props.saveTableCallBack;
30180
+ pageType = props.pageType;
29810
30181
  var codeFilter = {};
29811
30182
  if (codeProps.columns) {
29812
30183
  // table
@@ -29830,6 +30201,7 @@ var JsonQueryTable = /*#__PURE__*/React.memo(function (props) {
29830
30201
  fields: codeProps.fields
29831
30202
  }).fields;
29832
30203
  }
30204
+ console.log('codeFilter', codeFilter);
29833
30205
  var styleRef = useRef(null);
29834
30206
  var _useState = useState(false),
29835
30207
  _useState2 = _slicedToArray(_useState, 2),
@@ -29851,18 +30223,6 @@ var JsonQueryTable = /*#__PURE__*/React.memo(function (props) {
29851
30223
  _useState10 = _slicedToArray(_useState9, 2),
29852
30224
  moduleParams = _useState10[0],
29853
30225
  setModuleParams = _useState10[1];
29854
- var _useState11 = useState('main'),
29855
- _useState12 = _slicedToArray(_useState11, 2),
29856
- activeKey = _useState12[0],
29857
- setActiveKey = _useState12[1]; //默认详情页配置
29858
- var _useState13 = useState({}),
29859
- _useState14 = _slicedToArray(_useState13, 2),
29860
- tablesConfigParams = _useState14[0],
29861
- setTablesConfigParams = _useState14[1];
29862
- var _useState15 = useState([]),
29863
- _useState16 = _slicedToArray(_useState15, 2),
29864
- tableJsonEditorValsArr = _useState16[0],
29865
- setTableJsonEditorValsArr = _useState16[1];
29866
30226
  useEffect(function () {
29867
30227
  Promise.all([axios.get("/basic/flow/businessFieldGroup/one?moduleType=2&layoutPoint=".concat(pageType))]).then(function (_ref2) {
29868
30228
  var _ref3 = _slicedToArray(_ref2, 1),
@@ -29886,56 +30246,6 @@ var JsonQueryTable = /*#__PURE__*/React.memo(function (props) {
29886
30246
  }
29887
30247
  });
29888
30248
  }, []);
29889
- useEffect(function () {
29890
- //明细表的配置数据
29891
- var axiosArr = detailTablesSetting.map(function (item) {
29892
- return axios.get("/basic/flow/businessFieldGroup/one?moduleType=2&layoutPoint=".concat(item.tableCode));
29893
- });
29894
- Promise.all(axiosArr).then(function (_ref5) {
29895
- var _ref6 = _toArray(_ref5),
29896
- resArr = _ref6.slice(0);
29897
- detailTablesSetting.map(function (item, index) {
29898
- var _resArr$index;
29899
- var _ref7 = ((_resArr$index = resArr[index]) === null || _resArr$index === void 0 ? void 0 : _resArr$index.data) || {},
29900
- code = _ref7.code,
29901
- data = _ref7.data;
29902
- if (data) {
29903
- var businessType = data.businessType,
29904
- fieldGroup = data.code,
29905
- moduleType = data.moduleType;
29906
- setTablesConfigParams(_objectSpread2(_objectSpread2({}, tablesConfigParams), {}, _defineProperty({}, item.tableCode, {
29907
- businessType: businessType,
29908
- fieldGroup: fieldGroup,
29909
- moduleType: moduleType,
29910
- tableFlag: true
29911
- })));
29912
- }
29913
- });
29914
- });
29915
- var detailTableCodeFilter = detailTablesSetting.map(function (item) {
29916
- if ((item === null || item === void 0 ? void 0 : item.initialSetting) && (item === null || item === void 0 ? void 0 : item.initialSetting.length)) {
29917
- return _objectSpread2(_objectSpread2({}, item), {}, {
29918
- columns: item === null || item === void 0 ? void 0 : item.initialSetting
29919
- });
29920
- }
29921
- return _objectSpread2(_objectSpread2({}, item), {}, {
29922
- columns: item === null || item === void 0 ? void 0 : item.columns.map(function (childItem) {
29923
- return {
29924
- key: childItem.key || childItem.dataIndex,
29925
- dataIndex: childItem.dataIndex || childItem.key,
29926
- isStaticCode: true,
29927
- title: childItem.title
29928
- };
29929
- })
29930
- });
29931
- });
29932
- setTableJsonEditorValsArr(_toConsumableArray(detailTableCodeFilter));
29933
- detailTableCodeFilter.map(function (item) {
29934
- if ((item === null || item === void 0 ? void 0 : item.initialSetting) && (item === null || item === void 0 ? void 0 : item.initialSetting.length)) {
29935
- onClickRunDetailTables(item.initialSetting, false, item.tableCode, detailTableCodeFilter);
29936
- }
29937
- });
29938
- }, [detailTablesSetting.length]);
29939
30249
  var onClickRun = function onClickRun(value, isSave) {
29940
30250
  setJsonEditorVal(value);
29941
30251
  try {
@@ -29945,40 +30255,6 @@ var JsonQueryTable = /*#__PURE__*/React.memo(function (props) {
29945
30255
  message.error(e);
29946
30256
  }
29947
30257
  };
29948
- //明细表保存
29949
- var onClickRunDetailTables = function onClickRunDetailTables(value, isSave, tableCode, tableSouce) {
29950
- var targetCode = tableCode || activeKey;
29951
- var targetTableSource = tableSouce || tableJsonEditorValsArr;
29952
- var newArr = targetTableSource.map(function (item) {
29953
- if (item.tableCode == targetCode) {
29954
- return _objectSpread2(_objectSpread2({}, item), {}, {
29955
- columns: value
29956
- });
29957
- }
29958
- return item;
29959
- });
29960
- setTableJsonEditorValsArr(_toConsumableArray(newArr));
29961
- try {
29962
- var target = targetTableSource.find(function (item) {
29963
- return item.tableCode == targetCode;
29964
- });
29965
- var _codeProps = {
29966
- fields: [],
29967
- columns: target === null || target === void 0 ? void 0 : target.columns
29968
- };
29969
- var newValue = {
29970
- fields: [],
29971
- columns: value
29972
- };
29973
- var result = hanleCallbackValue(_codeProps, newValue, target === null || target === void 0 ? void 0 : target.customerFields);
29974
- saveTableCallBack({
29975
- columns: result.columns,
29976
- tableCode: targetCode
29977
- }, isSave, value);
29978
- } catch (e) {
29979
- message.error(e);
29980
- }
29981
- };
29982
30258
  React.useEffect(function () {
29983
30259
  localStorage.setItem('jsonEditorVal', JSON.stringify(jsonEditorVal || {}));
29984
30260
  }, [jsonEditorVal]);
@@ -30000,26 +30276,9 @@ var JsonQueryTable = /*#__PURE__*/React.memo(function (props) {
30000
30276
  return setVisible(false);
30001
30277
  },
30002
30278
  className: 'customFieldsDrawer'
30003
- }, detailTablesSetting.length == 0 && /*#__PURE__*/React.createElement(Fragment, null, isEmpty(moduleParams) ? /*#__PURE__*/React.createElement("div", {
30004
- style: {
30005
- padding: "10px 0",
30006
- fontSize: "16px",
30007
- fontWeight: "bolder"
30008
- }
30009
- }, "\u63D0\u793A\uFF1A\u4E1A\u52A1\u5BF9\u8C61\u672A\u7EF4\u62A4\uFF0C\u8BF7\u5728\u901A\u7528\u5355\u636E\u5BF9\u5E94\u4E1A\u52A1\u7C7B\u578B\u4E0B\u7EF4\u62A4\u4E1A\u52A1\u5BF9\u8C61") : /*#__PURE__*/React.createElement(FieldsSettingsTable, _objectSpread2({}, tableParams)), /*#__PURE__*/React.createElement(Editor, {
30010
- type: "table",
30011
- onRun: onClickRun,
30012
- value: jsonEditorVal,
30013
- shallowHeight: height
30014
- })), detailTablesSetting.length > 0 && /*#__PURE__*/React.createElement(Tabs, {
30015
- defaultActiveKey: activeKey,
30016
- onChange: function onChange(v) {
30017
- return setActiveKey(v);
30018
- }
30019
- }, /*#__PURE__*/React.createElement(Tabs.TabPane, {
30020
- tab: "\u8BE6\u60C5\u9875\u914D\u7F6E",
30021
- key: "main"
30022
- }, isEmpty(moduleParams) ? /*#__PURE__*/React.createElement("div", {
30279
+ }, /*#__PURE__*/React.createElement("div", {
30280
+ ref: styleRef
30281
+ }), isEmpty(moduleParams) ? /*#__PURE__*/React.createElement("div", {
30023
30282
  style: {
30024
30283
  padding: "10px 0",
30025
30284
  fontSize: "16px",
@@ -30030,23 +30289,7 @@ var JsonQueryTable = /*#__PURE__*/React.memo(function (props) {
30030
30289
  onRun: onClickRun,
30031
30290
  value: jsonEditorVal,
30032
30291
  shallowHeight: height
30033
- })), tableJsonEditorValsArr.map(function (k) {
30034
- return /*#__PURE__*/React.createElement(Tabs.TabPane, {
30035
- tab: k.title,
30036
- key: k.tableCode
30037
- }, !tablesConfigParams[k.tableCode] ? /*#__PURE__*/React.createElement("div", {
30038
- style: {
30039
- padding: "10px 0",
30040
- fontSize: "16px",
30041
- fontWeight: "bolder"
30042
- }
30043
- }, "\u63D0\u793A\uFF1A\u4E1A\u52A1\u5BF9\u8C61\u672A\u7EF4\u62A4\uFF0C\u8BF7\u5728\u901A\u7528\u5355\u636E\u5BF9\u5E94\u4E1A\u52A1\u7C7B\u578B\u4E0B\u7EF4\u62A4\u4E1A\u52A1\u5BF9\u8C61") : /*#__PURE__*/React.createElement(FieldsSettingsTable, _objectSpread2({}, tablesConfigParams[k.tableCode])), /*#__PURE__*/React.createElement(Editor, {
30044
- type: "table",
30045
- onRun: onClickRunDetailTables,
30046
- value: k.columns,
30047
- shallowHeight: height
30048
- }));
30049
- }))), !visible && isAdmin() && /*#__PURE__*/React.createElement(ConfigButton, {
30292
+ })), !visible && isAdmin() && /*#__PURE__*/React.createElement(ConfigButton, {
30050
30293
  type: 'primary',
30051
30294
  onClick: function onClick() {
30052
30295
  return setVisible(true);
@@ -30054,4 +30297,4 @@ var JsonQueryTable = /*#__PURE__*/React.memo(function (props) {
30054
30297
  }, "setting"));
30055
30298
  });
30056
30299
 
30057
- export { AddSelect, AddSkuSelect, BillEntry, index$5 as BsLayout, BsSulaQueryTable, BusinessSearchSelect$1 as BusinessSearchSelect, index$1 as BusinessTreeSearchSelect, index as CheckOneUser, ColumnSettingTable, CommodityEntry, DataImport, DataValidation, index$3 as DetailPageWrapper, ExportIcon, GuideWrapper, index$4 as HomePageWrapper, JsonQueryTable, index$6 as MoreTreeTable, QueryMutipleInput, SearchSelect, index$2 as StateFlow, ColumnSettingSulaTable as SulaColumnSettingTable, TableColumnSetting, TreeSearchSelect };
30300
+ export { AddSelect, AddSkcSelect, AddSkuSelect, BillEntry, index$5 as BsLayout, BsSulaQueryTable, BusinessSearchSelect$1 as BusinessSearchSelect, index$1 as BusinessTreeSearchSelect, index as CheckOneUser, ColumnSettingTable, CommodityEntry, DataImport, DataValidation, index$3 as DetailPageWrapper, ExportIcon, GuideWrapper, index$4 as HomePageWrapper, JsonQueryTable, index$6 as MoreTreeTable, QueryMutipleInput, SearchSelect, index$2 as StateFlow, ColumnSettingSulaTable as SulaColumnSettingTable, TableColumnSetting, TreeSearchSelect };