@bit-sun/business-component 2.0.10 → 2.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/.editorconfig +16 -16
  2. package/.fatherrc.ts +4 -4
  3. package/.gitlab-ci.yml +135 -174
  4. package/.prettierignore +7 -7
  5. package/.prettierrc +11 -11
  6. package/.umirc.ts +90 -74
  7. package/Dockerfile +11 -0
  8. package/README.md +27 -27
  9. package/dist/app.d.ts +0 -0
  10. package/dist/components/Business/SearchSelect/index.d.ts +1 -1
  11. package/dist/components/Functional/SearchSelect/index.d.ts +2 -1
  12. package/dist/components/sulaQueryTable/BsSulaQueryTable.d.ts +2 -0
  13. package/dist/components/sulaQueryTable/draggableTable.d.ts +22 -0
  14. package/dist/components/sulaQueryTable/statusComponent.d.ts +2 -0
  15. package/dist/components/sulaQueryTable/utils.d.ts +41 -0
  16. package/dist/index.esm.js +7302 -6793
  17. package/dist/index.js +7300 -6792
  18. package/docs/index.md +21 -21
  19. package/nginx.conf +43 -0
  20. package/package.json +60 -50
  21. package/src/app.tsx +3 -0
  22. package/src/components/Business/AddSelectBusiness/index.md +41 -41
  23. package/src/components/Business/AddSelectBusiness/index.tsx +300 -300
  24. package/src/components/Business/CommodityEntry/index.md +69 -69
  25. package/src/components/Business/CommodityEntry/index.tsx +78 -78
  26. package/src/components/Business/SearchSelect/BusinessUtils.ts +1445 -1445
  27. package/src/components/Business/SearchSelect/common.ts +53 -53
  28. package/src/components/Business/SearchSelect/index.md +1137 -1137
  29. package/src/components/Business/SearchSelect/index.tsx +49 -44
  30. package/src/components/Business/SearchSelect/utils.ts +99 -99
  31. package/src/components/Business/TreeSearchSelect/index.md +126 -126
  32. package/src/components/Business/TreeSearchSelect/index.tsx +34 -34
  33. package/src/components/Business/TreeSearchSelect/utils.ts +60 -60
  34. package/src/components/Functional/AddSelect/index.less +352 -352
  35. package/src/components/Functional/AddSelect/index.md +120 -120
  36. package/src/components/Functional/AddSelect/index.tsx +896 -896
  37. package/src/components/Functional/BillEntry/index.less +371 -371
  38. package/src/components/Functional/BillEntry/index.md +37 -37
  39. package/src/components/Functional/BillEntry/index.tsx +561 -561
  40. package/src/components/Functional/DataImport/index.less +63 -63
  41. package/src/components/Functional/DataImport/index.md +44 -44
  42. package/src/components/Functional/DataImport/index.tsx +689 -689
  43. package/src/components/Functional/DataValidation/index.less +63 -63
  44. package/src/components/Functional/DataValidation/index.md +38 -38
  45. package/src/components/Functional/DataValidation/index.tsx +680 -680
  46. package/src/components/Functional/QueryMutipleInput/index.less +37 -37
  47. package/src/components/Functional/QueryMutipleInput/index.md +33 -33
  48. package/src/components/Functional/QueryMutipleInput/index.tsx +128 -128
  49. package/src/components/Functional/SearchSelect/index.less +115 -115
  50. package/src/components/Functional/SearchSelect/index.md +141 -141
  51. package/src/components/Functional/SearchSelect/index.tsx +772 -732
  52. package/src/components/Functional/TreeSearchSelect/index.md +47 -47
  53. package/src/components/Functional/TreeSearchSelect/index.tsx +149 -149
  54. package/src/components/sulaQueryTable/BsSulaQueryTable.tsx +368 -0
  55. package/src/components/sulaQueryTable/draggableTable.tsx +111 -0
  56. package/src/components/sulaQueryTable/index.md +271 -0
  57. package/src/components/sulaQueryTable/status-component.less +8 -0
  58. package/src/components/sulaQueryTable/statusComponent.tsx +42 -0
  59. package/src/components/sulaQueryTable/utils.less +48 -0
  60. package/src/components/sulaQueryTable/utils.tsx +336 -0
  61. package/src/global.less +97 -0
  62. package/src/index.ts +22 -22
  63. package/src/utils/CheckOneUser/index.md +39 -39
  64. package/src/utils/CheckOneUser/index.ts +51 -51
  65. package/src/utils/requestUtils.ts +32 -32
  66. package/tsconfig.json +29 -29
  67. package/typings.d.ts +2 -2
@@ -1,120 +1,120 @@
1
- ---
2
- nav:
3
- title: '组件'
4
- order: 1
5
- group:
6
- title: 功能组件
7
- order: 0
8
- title: 添加选择器
9
- order: 3
10
- ---
11
-
12
- ## AddSelect
13
-
14
- Demo:
15
-
16
- ```tsx
17
- import React, { useState } from 'react';
18
- import { AddSelect } from '../../../index';
19
-
20
- export default () => {
21
- const selectProps = {
22
- mode: 'multiple',
23
- }
24
- const [value, setValue] = useState(selectProps?.mode ? [] : null);
25
- const props = {
26
- value,
27
- // labelInValue: true, // 非必填 默认为false
28
- requestConfig: {
29
- url: `/items/sku/pager/v2`,
30
- filter: 'qp-name-like', // 过滤参数 支持'qp-name-like'和['qp-name-like', 'qp-code-like']两种结构
31
- otherParams: {
32
- 'qp-combination-eq': false,
33
- }, // 默认参数
34
- mappingTextField: 'name',
35
- mappingValueField: 'skuCode',
36
- },
37
- selectProps,
38
- onChange: (value: any) => {
39
- console.log(value)
40
- setValue(value)
41
- },
42
- onSaveCallback: (rows) => {
43
- console.log('save call', rows);
44
- // return Promise.resolve(true);
45
- // return Promise.reject('FAILE')
46
- }
47
- };
48
- const DictionaryUC000013 = [{ text: '共享', value: '10' }, { text: '私有', value: '20' }]
49
- const modalTableProps = {
50
- modalTableTitle: '选择商品',
51
- tableSearchForm: [
52
- { name: 'qp-name-like', label: 'SKU名称' }, // field: { type: 'input', props: { placeholder: '8888'}}
53
- { name: 'qp-code-like', label: 'SKU编码' },
54
- ],
55
- tableColumns: [
56
- {
57
- title: '商品编码',
58
- width: 150,
59
- dataIndex: 'skuCode',
60
- },
61
- {
62
- title: '商品名称',
63
- width: 250,
64
- dataIndex: 'name',
65
- },
66
- {
67
- title: '归属集团',
68
- width: 150,
69
- dataIndex: 'conglomerateName',
70
- },
71
- {
72
- title: '归属法人公司',
73
- width: 150,
74
- dataIndex: 'legalCompanyName',
75
- },
76
- ],
77
- selectColumn: [
78
- {
79
- title: '商品编码',
80
- width: 150,
81
- dataIndex: 'skuCode',
82
- },
83
- {
84
- title: '商品名称',
85
- width: 250,
86
- dataIndex: 'name',
87
- },
88
- {
89
- title: '数量',
90
- width: 150,
91
- isInputItem: true,
92
- dataIndex: 'count',
93
- },
94
- {
95
- title: '价格',
96
- width: 150,
97
- dataIndex: 'price',
98
- isInputItem: true,
99
- },
100
- {
101
- title: '折扣',
102
- width: 150,
103
- dataIndex: 'sales',
104
- isInputItem: true,
105
- }
106
- ]
107
- }
108
-
109
- return (
110
- <div>
111
- <AddSelect
112
- {...props}
113
- modalTableProps={modalTableProps}
114
- />
115
- </div>
116
- );
117
- };
118
- ```
119
-
120
- More skills for writing demo: https://d.umijs.org/guide/demo-principle
1
+ ---
2
+ nav:
3
+ title: '组件'
4
+ order: 1
5
+ group:
6
+ title: 功能组件
7
+ order: 0
8
+ title: 添加选择器
9
+ order: 3
10
+ ---
11
+
12
+ ## AddSelect
13
+
14
+ Demo:
15
+
16
+ ```tsx
17
+ import React, { useState } from 'react';
18
+ import { AddSelect } from '../../../index';
19
+
20
+ export default () => {
21
+ const selectProps = {
22
+ mode: 'multiple',
23
+ }
24
+ const [value, setValue] = useState(selectProps?.mode ? [] : null);
25
+ const props = {
26
+ value,
27
+ // labelInValue: true, // 非必填 默认为false
28
+ requestConfig: {
29
+ url: `/items/sku/pager/v2`,
30
+ filter: 'qp-name-like', // 过滤参数 支持'qp-name-like'和['qp-name-like', 'qp-code-like']两种结构
31
+ otherParams: {
32
+ 'qp-combination-eq': false,
33
+ }, // 默认参数
34
+ mappingTextField: 'name',
35
+ mappingValueField: 'skuCode',
36
+ },
37
+ selectProps,
38
+ onChange: (value: any) => {
39
+ console.log(value)
40
+ setValue(value)
41
+ },
42
+ onSaveCallback: (rows) => {
43
+ console.log('save call', rows);
44
+ // return Promise.resolve(true);
45
+ // return Promise.reject('FAILE')
46
+ }
47
+ };
48
+ const DictionaryUC000013 = [{ text: '共享', value: '10' }, { text: '私有', value: '20' }]
49
+ const modalTableProps = {
50
+ modalTableTitle: '选择商品',
51
+ tableSearchForm: [
52
+ { name: 'qp-name-like', label: 'SKU名称' }, // field: { type: 'input', props: { placeholder: '8888'}}
53
+ { name: 'qp-code-like', label: 'SKU编码' },
54
+ ],
55
+ tableColumns: [
56
+ {
57
+ title: '商品编码',
58
+ width: 150,
59
+ dataIndex: 'skuCode',
60
+ },
61
+ {
62
+ title: '商品名称',
63
+ width: 250,
64
+ dataIndex: 'name',
65
+ },
66
+ {
67
+ title: '归属集团',
68
+ width: 150,
69
+ dataIndex: 'conglomerateName',
70
+ },
71
+ {
72
+ title: '归属法人公司',
73
+ width: 150,
74
+ dataIndex: 'legalCompanyName',
75
+ },
76
+ ],
77
+ selectColumn: [
78
+ {
79
+ title: '商品编码',
80
+ width: 150,
81
+ dataIndex: 'skuCode',
82
+ },
83
+ {
84
+ title: '商品名称',
85
+ width: 250,
86
+ dataIndex: 'name',
87
+ },
88
+ {
89
+ title: '数量',
90
+ width: 150,
91
+ isInputItem: true,
92
+ dataIndex: 'count',
93
+ },
94
+ {
95
+ title: '价格',
96
+ width: 150,
97
+ dataIndex: 'price',
98
+ isInputItem: true,
99
+ },
100
+ {
101
+ title: '折扣',
102
+ width: 150,
103
+ dataIndex: 'sales',
104
+ isInputItem: true,
105
+ }
106
+ ]
107
+ }
108
+
109
+ return (
110
+ <div>
111
+ <AddSelect
112
+ {...props}
113
+ modalTableProps={modalTableProps}
114
+ />
115
+ </div>
116
+ );
117
+ };
118
+ ```
119
+
120
+ More skills for writing demo: https://d.umijs.org/guide/demo-principle