@bit-sun/business-component 2.0.39-alpha.6 → 2.0.40

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 (47) hide show
  1. package/.fatherrc.ts +1 -3
  2. package/.umirc.ts +6 -6
  3. package/dist/components/Business/BsSulaQueryTable/setting.d.ts +0 -1
  4. package/dist/index.d.ts +0 -1
  5. package/dist/index.esm.js +2699 -8096
  6. package/dist/index.js +2689 -8091
  7. package/package.json +4 -10
  8. package/src/assets/list-no-img.svg +22 -0
  9. package/src/components/Business/BsLayouts/Components/SearchFunc/index.less +0 -1
  10. package/src/components/Business/BsLayouts/utils.tsx +4 -1
  11. package/src/components/Business/BsSulaQueryTable/index.tsx +93 -123
  12. package/src/components/Business/BsSulaQueryTable/setting.tsx +55 -71
  13. package/src/components/Business/BsSulaQueryTable/utils.tsx +5 -8
  14. package/src/components/Business/DetailPageWrapper/index.tsx +1 -1
  15. package/src/components/Business/columnSettingTable/index.tsx +25 -19
  16. package/src/components/Business/columnSettingTable/sulaSettingTable.tsx +25 -19
  17. package/src/components/Functional/DataImport/index.tsx +6 -0
  18. package/src/components/Functional/DataValidation/index.md +1 -0
  19. package/src/components/Functional/DataValidation/index.tsx +8 -2
  20. package/src/index.ts +0 -2
  21. package/src/styles/bsDefault.less +11 -0
  22. package/dist/components/Business/JsonQueryTable/drawer/index.d.ts +0 -2
  23. package/dist/components/Business/JsonQueryTable/index.d.ts +0 -3
  24. package/src/assets/defaultBusiness.less +0 -1896
  25. package/src/components/Business/JsonQueryTable/configButton/index.js +0 -20
  26. package/src/components/Business/JsonQueryTable/configTree/component/compactArrayView.js +0 -25
  27. package/src/components/Business/JsonQueryTable/configTree/component/compactObjectView.js +0 -30
  28. package/src/components/Business/JsonQueryTable/configTree/index.js +0 -82
  29. package/src/components/Business/JsonQueryTable/configTree/index.less +0 -44
  30. package/src/components/Business/JsonQueryTable/configTree/parser/highlight.js +0 -57
  31. package/src/components/Business/JsonQueryTable/configTree/parser/index.js +0 -124
  32. package/src/components/Business/JsonQueryTable/configTree/render/iconRender.js +0 -29
  33. package/src/components/Business/JsonQueryTable/configTree/render/nameRender.js +0 -22
  34. package/src/components/Business/JsonQueryTable/configTree/treeNode.js +0 -116
  35. package/src/components/Business/JsonQueryTable/drawer/index.tsx +0 -12
  36. package/src/components/Business/JsonQueryTable/index.md +0 -92
  37. package/src/components/Business/JsonQueryTable/index.tsx +0 -95
  38. package/src/components/Business/JsonQueryTable/jsonEditor/index.js +0 -340
  39. package/src/components/Business/JsonQueryTable/jsonEditor/index.less +0 -22
  40. package/src/components/Business/JsonQueryTable/jsonEditor/lint/basicType.js +0 -147
  41. package/src/components/Business/JsonQueryTable/jsonEditor/lint/index.js +0 -388
  42. package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/actions.js +0 -118
  43. package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/dependency.js +0 -22
  44. package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/index.js +0 -21
  45. package/src/components/Business/JsonQueryTable/jsonEditor/suggestions/request.js +0 -65
  46. package/src/utils/getFormMode.js +0 -12
  47. package/src/utils/serialize.js +0 -8
@@ -72,23 +72,25 @@ export default class ColumnSettingTable extends React.Component {
72
72
  const { showColumns }: any = this.state;
73
73
  let summaryRow = rowSelection ? [{}, ...showColumns] : [...showColumns];
74
74
  let summaryInitial = summary().cont;
75
- let summaryDom: any = <Table.Summary.Row>
76
- {
77
- [...summaryRow].map((item: any, index: number) => {
78
- return (
79
- <Table.Summary.Cell index={index}>
80
- <Text type="danger">
81
- {
82
- summaryInitial.filter((inner:any) => inner.key === item.dataIndex || inner.key === item.key).length ?
83
- `${item.title}: ${summaryInitial.filter((inner:any) => inner.key === item.dataIndex || inner.key === item.key)[0].value}` : ''
84
-
85
- }
86
- </Text>
87
- </Table.Summary.Cell>
88
- )
89
- })
90
- }
91
- </Table.Summary.Row >;
75
+ let summaryDom: any = <Table.Summary fixed>
76
+ <Table.Summary.Row>
77
+ {
78
+ [...summaryRow].map((item: any, index: number) => {
79
+ return (
80
+ <Table.Summary.Cell index={rowSelection ? index : index - 1}>
81
+ <Text type="danger">
82
+ {
83
+ summaryInitial.filter((inner: any) => inner.key === item.dataIndex || inner.key === item.key).length ?
84
+ `${item.title}: ${summaryInitial.filter((inner: any) => inner.key === item.dataIndex || inner.key === item.key)[0].value}` : ''
85
+
86
+ }
87
+ </Text>
88
+ </Table.Summary.Cell>
89
+ )
90
+ })
91
+ }
92
+ </Table.Summary.Row >
93
+ </Table.Summary>
92
94
  return () => summaryDom
93
95
  };
94
96
 
@@ -153,7 +155,7 @@ export default class ColumnSettingTable extends React.Component {
153
155
  };
154
156
 
155
157
  render() {
156
- const { columns, tableCode, summary = undefined, dynamicColumns = [], ...restProps }: any = this.props;
158
+ const { columns, tableCode, summary = undefined, dynamicColumns = [], scroll={}, ...restProps }: any = this.props;
157
159
  let otherTableInfo = {
158
160
  ...restProps,
159
161
  };
@@ -194,7 +196,11 @@ export default class ColumnSettingTable extends React.Component {
194
196
 
195
197
  otherTableInfo = {
196
198
  ...otherTableInfo,
197
- scroll: { x: restProps.overScrollX || this.getTableScrollXWidth(showCol) },
199
+ scroll: {
200
+ y: 400,
201
+ ...scroll,
202
+ x: restProps.overScrollX || this.getTableScrollXWidth(showCol)
203
+ },
198
204
  summary: showSummary,
199
205
  }
200
206
  return (
@@ -78,23 +78,25 @@ export default class ColumnSettingSulaTable extends React.Component {
78
78
  const { showColumns }: any = this.state;
79
79
  let summaryRow = rowSelection ? [{}, ...showColumns] : [...showColumns];
80
80
  let summaryInitial = summary().cont;
81
- let summaryDom: any = <Table.Summary.Row>
82
- {
83
- [...summaryRow].map((item: any, index: number) => {
84
- return (
85
- <Table.Summary.Cell index={rowSelection ? index : index-1}>
86
- <Text type="danger">
87
- {
88
- summaryInitial.filter((inner:any) => inner.key === item.dataIndex || inner.key === item.key).length ?
89
- `${item.title}: ${summaryInitial.filter((inner:any) => inner.key === item.dataIndex || inner.key === item.key)[0].value}` : ''
90
-
91
- }
92
- </Text>
93
- </Table.Summary.Cell>
94
- )
95
- })
96
- }
97
- </Table.Summary.Row >;
81
+ let summaryDom: any = <Table.Summary fixed>
82
+ <Table.Summary.Row>
83
+ {
84
+ [...summaryRow].map((item: any, index: number) => {
85
+ return (
86
+ <Table.Summary.Cell index={rowSelection ? index : index - 1}>
87
+ <Text type="danger">
88
+ {
89
+ summaryInitial.filter((inner: any) => inner.key === item.dataIndex || inner.key === item.key).length ?
90
+ `${item.title}: ${summaryInitial.filter((inner: any) => inner.key === item.dataIndex || inner.key === item.key)[0].value}` : ''
91
+
92
+ }
93
+ </Text>
94
+ </Table.Summary.Cell>
95
+ )
96
+ })
97
+ }
98
+ </Table.Summary.Row >
99
+ </Table.Summary>
98
100
  return () => summaryDom
99
101
  };
100
102
 
@@ -159,7 +161,7 @@ export default class ColumnSettingSulaTable extends React.Component {
159
161
  };
160
162
 
161
163
  render() {
162
- const { style=null, columns, tableCode, summary = undefined, dynamicColumns = [], ...restProps }: any = this.props;
164
+ const { style=null, columns, tableCode, summary = undefined, dynamicColumns = [], scroll={}, ...restProps }: any = this.props;
163
165
  let otherTableInfo = {
164
166
  ...restProps,
165
167
  };
@@ -200,7 +202,11 @@ export default class ColumnSettingSulaTable extends React.Component {
200
202
 
201
203
  otherTableInfo = {
202
204
  ...otherTableInfo,
203
- scroll: { x: restProps.overScrollX || this.getTableScrollXWidth(showCol) },
205
+ scroll: {
206
+ y: 400,
207
+ ...scroll,
208
+ x: restProps.overScrollX || this.getTableScrollXWidth(showCol)
209
+ },
204
210
  summary: showSummary,
205
211
  }
206
212
  return (
@@ -58,6 +58,12 @@ const mapping = new Map([
58
58
  ['newUniqueCode', '新唯一码'],
59
59
  ['relationRecordCode', '单据编码'],
60
60
  ['remark', '备注'],
61
+ ['externalCode', 'JDE商品编码'],
62
+ ['realWarehouseCode', '仓库编码'],
63
+ ['syncRate', '按百分比'],
64
+ ['assignQuantity', '按指定数量'],
65
+ ['retainQuantity', ' 按保留数量'],
66
+ ['priority', ' 优先级'],
61
67
  ]);
62
68
 
63
69
  // for dnd
@@ -26,6 +26,7 @@ export default () => {
26
26
  // columns={['skuCode', 'quantity', 'price']}
27
27
  columns={["skuCode", "quantity", "price"]} // 需要哪些列展示,以及展示的顺序
28
28
  validDataUrl="/wms-ops/recordDetailImport/check" // 校验的接口url
29
+ validDataParams={{ recordCode: '111' }}
29
30
  onRef={(ref) => {
30
31
  dataValidationRef = ref;
31
32
  }}
@@ -58,7 +58,12 @@ const mapping = new Map([
58
58
  ['newUniqueCode', '新唯一码'],
59
59
  ['relationRecordCode', '单据编码'],
60
60
  ['remark', '备注'],
61
- ['externalCode', 'JDE商品编码']
61
+ ['externalCode', 'JDE商品编码'],
62
+ ['realWarehouseCode', '仓库编码'],
63
+ ['syncRate', '按百分比'],
64
+ ['assignQuantity', '按指定数量'],
65
+ ['retainQuantity', ' 按保留数量'],
66
+ ['priority', ' 优先级'],
62
67
  ]);
63
68
 
64
69
  // for dnd
@@ -401,7 +406,7 @@ class DataValidation extends React.Component {
401
406
  };
402
407
 
403
408
  resetData = () => {
404
- const { validDataUrl, updateData, columns, isBrandAuth, isCheckStockNum = true } = this.props;
409
+ const { validDataUrl, validDataParams, updateData, columns, isBrandAuth, isCheckStockNum = true } = this.props;
405
410
  const resultData = this.getData().filter(d => {
406
411
  return _.compact(Object.values(d)).length
407
412
  })
@@ -415,6 +420,7 @@ class DataValidation extends React.Component {
415
420
  axios
416
421
  .post(validDataUrl, {
417
422
  ...otherParams,
423
+ ...validDataParams,
418
424
  columns: columns,
419
425
  data: resultData,
420
426
  checkStockNum: isCheckStockNum
package/src/index.ts CHANGED
@@ -29,5 +29,3 @@ export { default as DetailPageWrapper } from './components/Business/DetailPageWr
29
29
  export { default as HomePageWrapper } from './components/Business/HomePageWrapper';
30
30
  export { default as BsSulaQueryTable } from './components/Business/BsSulaQueryTable';
31
31
  export { default as BsLayout } from './components/Business/BsLayouts';
32
- export { default as JsonQueryTable } from './components/Business/JsonQueryTable';
33
-
@@ -1431,6 +1431,9 @@ body .ant-table .ant-table-container .ant-table-thead > tr > th {
1431
1431
 
1432
1432
  .clomnsImg {
1433
1433
  :global {
1434
+ .ant-image {
1435
+ margin: 8px;
1436
+ }
1434
1437
  .ant-image-mask-info {
1435
1438
  font-size: 12px !important;
1436
1439
  padding: 0;
@@ -1438,6 +1441,14 @@ body .ant-table .ant-table-container .ant-table-thead > tr > th {
1438
1441
  }
1439
1442
  }
1440
1443
  }
1444
+ .clomnsImg2 {
1445
+ margin: 8px;
1446
+ img {
1447
+ width: 28px;
1448
+ height: 28px;
1449
+ }
1450
+ }
1451
+
1441
1452
 
1442
1453
  .ant-table-wrapper {
1443
1454
  padding: 0 8px;
@@ -1,2 +0,0 @@
1
- declare const _default: (props: any) => JSX.Element;
2
- export default _default;
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const JsonQueryTable: React.NamedExoticComponent<object>;
3
- export default JsonQueryTable;