@bit-sun/business-component 1.2.4-alpha.1 → 1.2.4
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.
- package/.fatherrc.ts +0 -1
- package/.umirc.ts +16 -31
- package/dist/components/Business/SearchSelect/BusinessUtils.d.ts +1 -1
- package/dist/components/Business/SearchSelect/common.d.ts +1 -5
- package/dist/components/Business/SearchSelect/index.d.ts +1 -1
- package/dist/components/Business/SearchSelect/utils.d.ts +1 -2
- package/dist/components/Functional/SearchSelect/index.d.ts +1 -2
- package/dist/index.d.ts +0 -15
- package/dist/index.esm.js +4456 -19407
- package/dist/index.js +4443 -19411
- package/package.json +5 -26
- package/src/components/Business/CommodityEntry/index.md +3 -4
- package/src/components/Business/CommodityEntry/index.tsx +2 -7
- package/src/components/Business/SearchSelect/BusinessUtils.ts +14 -107
- package/src/components/Business/SearchSelect/common.ts +1 -20
- package/src/components/Business/SearchSelect/index.md +30 -60
- package/src/components/Business/SearchSelect/index.tsx +12 -21
- package/src/components/Business/SearchSelect/utils.ts +4 -30
- package/src/components/Functional/DataImport/index.tsx +2 -1
- package/src/components/Functional/DataValidation/index.tsx +1 -1
- package/src/components/Functional/SearchSelect/index.tsx +121 -218
- package/src/index.ts +6 -15
- package/typings.d.ts +0 -3
- package/dist/components/Business/AddSelectBusiness/index.d.ts +0 -1
- package/dist/components/Business/BsLayouts/Components/AllFunc/drawContent.d.ts +0 -4
- package/dist/components/Business/BsLayouts/Components/AllFunc/index.d.ts +0 -4
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.d.ts +0 -4
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/leftTree.d.ts +0 -17
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/rightTree.d.ts +0 -30
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/DrawContent.d.ts +0 -3
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/customMenuHeader.d.ts +0 -2
- package/dist/components/Business/BsLayouts/Components/CustomerMenu/index.d.ts +0 -4
- package/dist/components/Business/BsLayouts/Components/GlobalHeader/index.d.ts +0 -4
- package/dist/components/Business/BsLayouts/Components/RightContent/LoginModal.d.ts +0 -2
- package/dist/components/Business/BsLayouts/Components/RightContent/index.d.ts +0 -8
- package/dist/components/Business/BsLayouts/Components/SearchFunc/index.d.ts +0 -8
- package/dist/components/Business/BsLayouts/index.d.ts +0 -18
- package/dist/components/Business/BsLayouts/service.d.ts +0 -1
- package/dist/components/Business/BsLayouts/utils.d.ts +0 -13
- package/dist/components/Business/BsSulaQueryTable/index.d.ts +0 -2
- package/dist/components/Business/BsSulaQueryTable/setting.d.ts +0 -58
- package/dist/components/Business/BsSulaQueryTable/utils.d.ts +0 -98
- package/dist/components/Business/CommonAlert/index.d.ts +0 -3
- package/dist/components/Business/CommonGuideWrapper/index.d.ts +0 -6
- package/dist/components/Business/DetailPageWrapper/index.d.ts +0 -9
- package/dist/components/Business/DetailPageWrapper/utils.d.ts +0 -8
- package/dist/components/Business/HomePageWrapper/index.d.ts +0 -3
- package/dist/components/Business/StateFlow/index.d.ts +0 -3
- package/dist/components/Business/TreeSearchSelect/index.d.ts +0 -3
- package/dist/components/Business/TreeSearchSelect/utils.d.ts +0 -2
- package/dist/components/Business/columnSettingTable/columnSetting.d.ts +0 -54
- package/dist/components/Business/columnSettingTable/index.d.ts +0 -16
- package/dist/components/Business/columnSettingTable/sulaSettingTable.d.ts +0 -17
- package/dist/components/Business/columnSettingTable/utils.d.ts +0 -8
- package/dist/components/Functional/AddSelect/index.d.ts +0 -3
- package/dist/components/Functional/BillEntry/index.d.ts +0 -4
- package/dist/components/Functional/ExportFunctions/ExportIcon/index.d.ts +0 -12
- package/dist/components/Functional/TreeSearchSelect/index.d.ts +0 -2
- package/dist/utils/enumConfig.d.ts +0 -10
- package/dist/utils/requestUtils.d.ts +0 -1
- package/dist/utils/utils.d.ts +0 -3
- package/lib/assets/arrow_top.png +0 -0
- package/lib/assets/drag.svg +0 -17
- package/lib/assets/exportFail.svg +0 -38
- package/lib/assets/exportProcessing.svg +0 -29
- package/lib/assets/exportSuccess.svg +0 -35
- package/lib/assets/exportlogo.png +0 -0
- package/lib/assets/label_icon_bottom.svg +0 -26
- package/lib/assets/upExport.svg +0 -23
- package/src/assets/32.svg +0 -28
- package/src/assets/addIcon.svg +0 -18
- package/src/assets/allfunc.svg +0 -28
- package/src/assets/arrowRight.svg +0 -25
- package/src/assets/arrow_top.png +0 -0
- package/src/assets/btn-delete.svg +0 -30
- package/src/assets/btn-edit.svg +0 -20
- package/src/assets/btn-more.svg +0 -18
- package/src/assets/btn-submit.svg +0 -20
- package/src/assets/caidan.svg +0 -12
- package/src/assets/close.svg +0 -26
- package/src/assets/closeicon.png +0 -0
- package/src/assets/drag.svg +0 -17
- package/src/assets/exportFail.svg +0 -38
- package/src/assets/exportProcessing.svg +0 -29
- package/src/assets/exportSuccess.svg +0 -35
- package/src/assets/exportlogo.png +0 -0
- package/src/assets/fixed-left-active.svg +0 -12
- package/src/assets/fixed-left.svg +0 -16
- package/src/assets/fixed-right-active.svg +0 -12
- package/src/assets/fixed-right.svg +0 -16
- package/src/assets/guanbi.svg +0 -16
- package/src/assets/icon-quanping.svg +0 -16
- package/src/assets/icon-shezhi.svg +0 -18
- package/src/assets/label_icon_bottom.svg +0 -26
- package/src/assets/list-no-img.svg +0 -22
- package/src/assets/morentouxiang-32.svg +0 -24
- package/src/assets/right.png +0 -0
- package/src/assets/scanning.svg +0 -25
- package/src/assets/upExport.svg +0 -23
- package/src/assets/xinglan-icon-out.png +0 -0
- package/src/components/Business/AddSelectBusiness/index.md +0 -41
- package/src/components/Business/AddSelectBusiness/index.tsx +0 -290
- package/src/components/Business/BsLayouts/Components/AllFunc/drawContent.tsx +0 -112
- package/src/components/Business/BsLayouts/Components/AllFunc/index.less +0 -153
- package/src/components/Business/BsLayouts/Components/AllFunc/index.tsx +0 -70
- package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.less +0 -90
- package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/index.tsx +0 -38
- package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/leftTree.tsx +0 -243
- package/src/components/Business/BsLayouts/Components/CustomerMenu/MenuSetting/rightTree.tsx +0 -385
- package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/DrawContent.tsx +0 -286
- package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/customMenuHeader.tsx +0 -75
- package/src/components/Business/BsLayouts/Components/CustomerMenu/globalMenu/drawContent.less +0 -171
- package/src/components/Business/BsLayouts/Components/CustomerMenu/index.less +0 -65
- package/src/components/Business/BsLayouts/Components/CustomerMenu/index.tsx +0 -154
- package/src/components/Business/BsLayouts/Components/GlobalHeader/index.less +0 -73
- package/src/components/Business/BsLayouts/Components/GlobalHeader/index.tsx +0 -158
- package/src/components/Business/BsLayouts/Components/RightContent/LoginModal.tsx +0 -85
- package/src/components/Business/BsLayouts/Components/RightContent/home.less +0 -218
- package/src/components/Business/BsLayouts/Components/RightContent/index.tsx +0 -156
- package/src/components/Business/BsLayouts/Components/SearchFunc/index.less +0 -161
- package/src/components/Business/BsLayouts/Components/SearchFunc/index.tsx +0 -76
- package/src/components/Business/BsLayouts/index.less +0 -80
- package/src/components/Business/BsLayouts/index.tsx +0 -1465
- package/src/components/Business/BsLayouts/service.ts +0 -11
- package/src/components/Business/BsLayouts/utils.tsx +0 -211
- package/src/components/Business/BsSulaQueryTable/index.less +0 -220
- package/src/components/Business/BsSulaQueryTable/index.tsx +0 -505
- package/src/components/Business/BsSulaQueryTable/setting.tsx +0 -799
- package/src/components/Business/BsSulaQueryTable/utils.less +0 -65
- package/src/components/Business/BsSulaQueryTable/utils.tsx +0 -688
- package/src/components/Business/CommonAlert/index.less +0 -0
- package/src/components/Business/CommonAlert/index.tsx +0 -23
- package/src/components/Business/CommonGuideWrapper/index.less +0 -112
- package/src/components/Business/CommonGuideWrapper/index.md +0 -39
- package/src/components/Business/CommonGuideWrapper/index.tsx +0 -84
- package/src/components/Business/DetailPageWrapper/index.less +0 -80
- package/src/components/Business/DetailPageWrapper/index.tsx +0 -335
- package/src/components/Business/DetailPageWrapper/utils.tsx +0 -101
- package/src/components/Business/HomePageWrapper/index.less +0 -33
- package/src/components/Business/HomePageWrapper/index.md +0 -45
- package/src/components/Business/HomePageWrapper/index.tsx +0 -162
- package/src/components/Business/StateFlow/index.less +0 -131
- package/src/components/Business/StateFlow/index.md +0 -60
- package/src/components/Business/StateFlow/index.tsx +0 -30
- package/src/components/Business/TreeSearchSelect/index.md +0 -126
- package/src/components/Business/TreeSearchSelect/index.tsx +0 -34
- package/src/components/Business/TreeSearchSelect/utils.ts +0 -60
- package/src/components/Business/columnSettingTable/columnSetting.tsx +0 -764
- package/src/components/Business/columnSettingTable/index.less +0 -247
- package/src/components/Business/columnSettingTable/index.md +0 -358
- package/src/components/Business/columnSettingTable/index.tsx +0 -233
- package/src/components/Business/columnSettingTable/sulaSettingTable.tsx +0 -241
- package/src/components/Business/columnSettingTable/utils.tsx +0 -69
- package/src/components/Functional/AddSelect/index.less +0 -367
- package/src/components/Functional/AddSelect/index.md +0 -122
- package/src/components/Functional/AddSelect/index.tsx +0 -962
- package/src/components/Functional/BillEntry/index.less +0 -371
- package/src/components/Functional/BillEntry/index.md +0 -39
- package/src/components/Functional/BillEntry/index.tsx +0 -613
- package/src/components/Functional/ExportFunctions/ExportIcon/index.md +0 -37
- package/src/components/Functional/ExportFunctions/ExportIcon/index.tsx +0 -59
- package/src/components/Functional/TreeSearchSelect/index.md +0 -47
- package/src/components/Functional/TreeSearchSelect/index.tsx +0 -149
- package/src/styles/bsDefault.less +0 -1907
- package/src/utils/enumConfig.ts +0 -10
- package/src/utils/requestUtils.ts +0 -33
- package/src/utils/utils.ts +0 -52
|
@@ -1,247 +0,0 @@
|
|
|
1
|
-
// 列自定义
|
|
2
|
-
.sort_table_wrapper {
|
|
3
|
-
.sort_table {
|
|
4
|
-
display: flex;
|
|
5
|
-
|
|
6
|
-
.sort_table_column_wrapper {
|
|
7
|
-
width: 560px;
|
|
8
|
-
margin-right: 10px;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.sort_table_content_wrapper {
|
|
12
|
-
width: 210px;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.sort_table_column_count,
|
|
16
|
-
.sort_table_content_count {
|
|
17
|
-
height: 20px;
|
|
18
|
-
font-family: PingFangSC-Regular;
|
|
19
|
-
font-weight: 400;
|
|
20
|
-
font-size: 14px;
|
|
21
|
-
color: #000000;
|
|
22
|
-
letter-spacing: 0;
|
|
23
|
-
|
|
24
|
-
span {
|
|
25
|
-
color: #848484;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.sort_table_column {
|
|
30
|
-
margin-top: 10px;
|
|
31
|
-
width: 560px;
|
|
32
|
-
height: 430px;
|
|
33
|
-
overflow: auto;
|
|
34
|
-
padding: 10px;
|
|
35
|
-
background: #ffffff;
|
|
36
|
-
border: 1px solid #d9d9d9;
|
|
37
|
-
border-radius: 5px;
|
|
38
|
-
|
|
39
|
-
&_all {
|
|
40
|
-
display: flex;
|
|
41
|
-
flex-wrap: wrap;
|
|
42
|
-
justify-content: space-between;
|
|
43
|
-
|
|
44
|
-
&_empty {
|
|
45
|
-
width: 538px;
|
|
46
|
-
line-height: 360px;
|
|
47
|
-
text-align: center;
|
|
48
|
-
font-family: PingFangSC-Regular;
|
|
49
|
-
font-weight: 400;
|
|
50
|
-
font-size: 14px;
|
|
51
|
-
color: #848484;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
&_special {
|
|
56
|
-
margin-top: 40px;
|
|
57
|
-
width: 100px;
|
|
58
|
-
height: 20px;
|
|
59
|
-
font-family: PingFangSC-Regular;
|
|
60
|
-
font-weight: 400;
|
|
61
|
-
font-size: 14px;
|
|
62
|
-
color: #848484;
|
|
63
|
-
letter-spacing: 0;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
.ant-checkbox-wrapper {
|
|
67
|
-
width: 144px;
|
|
68
|
-
margin-top: 16px;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.ant-checkbox-wrapper+.ant-checkbox-wrapper {
|
|
72
|
-
margin-left: 0px;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
.sort_table_content {
|
|
77
|
-
margin-top: 10px;
|
|
78
|
-
padding-top: 10px;
|
|
79
|
-
padding-bottom: 10px;
|
|
80
|
-
border: 1px solid #d9d9d9;
|
|
81
|
-
border-radius: 5px;
|
|
82
|
-
|
|
83
|
-
.ant-table-wrapper {
|
|
84
|
-
padding: 0px !important;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.sort_table_title {
|
|
88
|
-
height: 32px;
|
|
89
|
-
line-height: 32px;
|
|
90
|
-
padding-left: 10px;
|
|
91
|
-
color: gray;
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
div.ant-modal-header {
|
|
97
|
-
width: 820px;
|
|
98
|
-
height: 64px;
|
|
99
|
-
background: #ffffff;
|
|
100
|
-
padding: 20px;
|
|
101
|
-
border: 0px;
|
|
102
|
-
|
|
103
|
-
div.ant-modal-title {
|
|
104
|
-
height: 24px;
|
|
105
|
-
font-family: PingFangSC-Medium;
|
|
106
|
-
font-weight: 500;
|
|
107
|
-
font-size: 18px;
|
|
108
|
-
color: #000000;
|
|
109
|
-
letter-spacing: 0;
|
|
110
|
-
line-height: 24px;
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
.ant-modal-body {
|
|
115
|
-
padding: 0 20px !important;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
.ant-modal-close-x {
|
|
119
|
-
height: 24px;
|
|
120
|
-
font-family: PingFangSC-Medium;
|
|
121
|
-
font-weight: 500;
|
|
122
|
-
font-size: 18px;
|
|
123
|
-
color: #000000;
|
|
124
|
-
letter-spacing: 0;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
.ant-input-affix-wrapper {
|
|
128
|
-
padding: 0px;
|
|
129
|
-
padding-right: 10px;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
input {
|
|
133
|
-
height: 32px;
|
|
134
|
-
padding: 6px 4px;
|
|
135
|
-
border-radius: 5px;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
.ant-input-prefix {
|
|
139
|
-
width: 24px;
|
|
140
|
-
height: 24px;
|
|
141
|
-
margin: 4px;
|
|
142
|
-
// border: 1px dashed #d9d9d9;
|
|
143
|
-
display: flex;
|
|
144
|
-
justify-content: center;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
.ant-modal-footer {
|
|
148
|
-
height: 70px;
|
|
149
|
-
border: 0;
|
|
150
|
-
padding: 20px;
|
|
151
|
-
|
|
152
|
-
.ant-btn {
|
|
153
|
-
width: 80px;
|
|
154
|
-
height: 34px;
|
|
155
|
-
border-radius: 5px;
|
|
156
|
-
|
|
157
|
-
span {
|
|
158
|
-
font-family: PingFangSC-Medium;
|
|
159
|
-
font-weight: 600;
|
|
160
|
-
font-size: 14px;
|
|
161
|
-
letter-spacing: 0;
|
|
162
|
-
text-align: center;
|
|
163
|
-
line-height: 20px;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
&:first-child {
|
|
167
|
-
margin-right: 524px;
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
.ant-table-wrapper::-webkit-scrollbar {
|
|
173
|
-
display: none;
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
.ant-table-wrapper {
|
|
177
|
-
margin-top: 10px;
|
|
178
|
-
height: 364px;
|
|
179
|
-
overflow: scroll;
|
|
180
|
-
padding-bottom: 50px;
|
|
181
|
-
|
|
182
|
-
tr {
|
|
183
|
-
height: 36px;
|
|
184
|
-
|
|
185
|
-
td {
|
|
186
|
-
width: 24px !important;
|
|
187
|
-
height: 36px !important;
|
|
188
|
-
font-family: PingFangSC-Regular;
|
|
189
|
-
font-weight: 400;
|
|
190
|
-
font-size: 14px;
|
|
191
|
-
color: #000000;
|
|
192
|
-
letter-spacing: 0;
|
|
193
|
-
|
|
194
|
-
&:first-child {
|
|
195
|
-
padding-left: 10px !important;
|
|
196
|
-
padding-right: 0px !important;
|
|
197
|
-
width: 115px !important;
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
img {
|
|
201
|
-
// border: 1px dashed #d9d9d9;
|
|
202
|
-
cursor: pointer;
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
&:not(:first-child) {
|
|
206
|
-
padding-left: 0px !important;
|
|
207
|
-
padding-right: 0px !important;
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
&:last-child {
|
|
211
|
-
padding-left: 0px !important;
|
|
212
|
-
padding-right: 3px !important;
|
|
213
|
-
width: 34px !important;
|
|
214
|
-
|
|
215
|
-
img {
|
|
216
|
-
// border: 1px dashed #d9d9d9;
|
|
217
|
-
position: relative;
|
|
218
|
-
top: 1px;
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
.global_tab_nav_style {
|
|
227
|
-
top: 2px !important;
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
.row-dragging {
|
|
231
|
-
background: #fafafa;
|
|
232
|
-
border: 1px solid #ccc;
|
|
233
|
-
z-index: 10000;
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
.row-dragging td {
|
|
237
|
-
padding: 7px 16px;
|
|
238
|
-
display: none;
|
|
239
|
-
|
|
240
|
-
}
|
|
241
|
-
.row-dragging td:first-child {
|
|
242
|
-
display: inline-block;
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
.row-dragging .drag-visible {
|
|
246
|
-
visibility: visible;
|
|
247
|
-
}
|
|
@@ -1,358 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
nav:
|
|
3
|
-
title: '组件1'
|
|
4
|
-
order: 1
|
|
5
|
-
group:
|
|
6
|
-
title: 业务组件
|
|
7
|
-
order: 1
|
|
8
|
-
title: 列设置表格
|
|
9
|
-
order: 2
|
|
10
|
-
---
|
|
11
|
-
|
|
12
|
-
# 详情页表格列设置
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
## antd列设置表格
|
|
16
|
-
|
|
17
|
-
```tsx
|
|
18
|
-
import React, { useState } from 'react';
|
|
19
|
-
import { ColumnSettingTable } from '../../../index.ts';
|
|
20
|
-
|
|
21
|
-
export default () => {
|
|
22
|
-
const columns = [
|
|
23
|
-
{
|
|
24
|
-
dataIndex: 'lineNo',
|
|
25
|
-
title: '行号',
|
|
26
|
-
width: 80,
|
|
27
|
-
fixed: 'left',
|
|
28
|
-
ellipsis: {
|
|
29
|
-
showTitle: false,
|
|
30
|
-
},
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
dataIndex: 'skuName',
|
|
34
|
-
title: '商品名称',
|
|
35
|
-
fixed: 'left',
|
|
36
|
-
ellipsis: {
|
|
37
|
-
showTitle: false,
|
|
38
|
-
},
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
dataIndex: 'spuCode',
|
|
42
|
-
title: '商品代码',
|
|
43
|
-
fixed: 'left',
|
|
44
|
-
ellipsis: {
|
|
45
|
-
showTitle: true,
|
|
46
|
-
},
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
dataIndex: 'skuCode',
|
|
50
|
-
title: 'SKU',
|
|
51
|
-
fixed: 'left',
|
|
52
|
-
ellipsis: {
|
|
53
|
-
showTitle: true,
|
|
54
|
-
},
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
dataIndex: 'skuSpec',
|
|
58
|
-
title: '商品规格',
|
|
59
|
-
ellipsis: {
|
|
60
|
-
showTitle: false,
|
|
61
|
-
},
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
dataIndex: 'barCode',
|
|
65
|
-
title: '条码',
|
|
66
|
-
ellipsis: {
|
|
67
|
-
showTitle: false,
|
|
68
|
-
},
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
dataIndex: 'executeAmount',
|
|
72
|
-
title: '可执行数量',
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
dataIndex: 'planAmount',
|
|
76
|
-
title: '数量',
|
|
77
|
-
ellipsis: {
|
|
78
|
-
showTitle: false,
|
|
79
|
-
},
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
dataIndex: 'baseUnitCode',
|
|
83
|
-
title: '单位',
|
|
84
|
-
ellipsis: {
|
|
85
|
-
showTitle: false,
|
|
86
|
-
},
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
dataIndex: 'completeAmount',
|
|
90
|
-
title: '累计入库数量',
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
dataIndex: 'reverseNumber',
|
|
94
|
-
title: '累计退货数量',
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
dataIndex: 'taxRate',
|
|
98
|
-
title: '税率',
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
dataIndex: 'taxAmount',
|
|
102
|
-
title: '税额',
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
dataIndex: 'standardPrice',
|
|
106
|
-
title: '标准单价',
|
|
107
|
-
},
|
|
108
|
-
]
|
|
109
|
-
const config = {
|
|
110
|
-
scroll: {
|
|
111
|
-
x: '100%',
|
|
112
|
-
},
|
|
113
|
-
rowKey: 'id',
|
|
114
|
-
dataSource: [{}, {}],
|
|
115
|
-
pagination: {
|
|
116
|
-
showTotal: (total: any) => `共 ${total} 条`,
|
|
117
|
-
showQuickJumper: true,
|
|
118
|
-
hideOnSinglePage: true,
|
|
119
|
-
current: 1,
|
|
120
|
-
pageSize: 10,
|
|
121
|
-
total: 10,
|
|
122
|
-
size: 'small'
|
|
123
|
-
},
|
|
124
|
-
rowSelection: {
|
|
125
|
-
},
|
|
126
|
-
summary: () => {
|
|
127
|
-
return {
|
|
128
|
-
diy: true,
|
|
129
|
-
cont: [
|
|
130
|
-
{
|
|
131
|
-
key: 'spuCode',
|
|
132
|
-
value: 100,
|
|
133
|
-
},
|
|
134
|
-
{
|
|
135
|
-
key: 'skuSpec',
|
|
136
|
-
value: 200,
|
|
137
|
-
},
|
|
138
|
-
{
|
|
139
|
-
key: 'executeAmount',
|
|
140
|
-
value: 300,
|
|
141
|
-
},
|
|
142
|
-
{
|
|
143
|
-
key: 'completeAmount',
|
|
144
|
-
value: 300,
|
|
145
|
-
},
|
|
146
|
-
{
|
|
147
|
-
key: 'taxAmount',
|
|
148
|
-
value: 300,
|
|
149
|
-
},
|
|
150
|
-
{
|
|
151
|
-
key: 'standardPrice',
|
|
152
|
-
value: 300,
|
|
153
|
-
},
|
|
154
|
-
],
|
|
155
|
-
}
|
|
156
|
-
},
|
|
157
|
-
dynamicColumns: [
|
|
158
|
-
{
|
|
159
|
-
key: 'expectTime',
|
|
160
|
-
},
|
|
161
|
-
{
|
|
162
|
-
key: 'planAmount',
|
|
163
|
-
},
|
|
164
|
-
{
|
|
165
|
-
key: 'price',
|
|
166
|
-
},
|
|
167
|
-
],
|
|
168
|
-
columns,
|
|
169
|
-
tableCode: 'uniquecode-1',
|
|
170
|
-
}
|
|
171
|
-
return (
|
|
172
|
-
<ColumnSettingTable
|
|
173
|
-
{
|
|
174
|
-
...config
|
|
175
|
-
}
|
|
176
|
-
/>
|
|
177
|
-
|
|
178
|
-
);
|
|
179
|
-
};
|
|
180
|
-
```
|
|
181
|
-
|
|
182
|
-
## sula列设置表格
|
|
183
|
-
|
|
184
|
-
```tsx
|
|
185
|
-
import React, { useState } from 'react';
|
|
186
|
-
import { SulaColumnSettingTable } from '../../../index.ts';
|
|
187
|
-
|
|
188
|
-
export default () => {
|
|
189
|
-
const settingTableRef = React.useRef(null);
|
|
190
|
-
const columns = [
|
|
191
|
-
{
|
|
192
|
-
dataIndex: 'lineNo',
|
|
193
|
-
title: '行号',
|
|
194
|
-
width: 80,
|
|
195
|
-
fixed: 'left',
|
|
196
|
-
ellipsis: {
|
|
197
|
-
showTitle: false,
|
|
198
|
-
},
|
|
199
|
-
},
|
|
200
|
-
{
|
|
201
|
-
dataIndex: 'skuName',
|
|
202
|
-
title: '商品名称',
|
|
203
|
-
fixed: 'left',
|
|
204
|
-
ellipsis: {
|
|
205
|
-
showTitle: false,
|
|
206
|
-
},
|
|
207
|
-
},
|
|
208
|
-
{
|
|
209
|
-
dataIndex: 'spuCode',
|
|
210
|
-
title: '商品代码',
|
|
211
|
-
fixed: 'left',
|
|
212
|
-
ellipsis: {
|
|
213
|
-
showTitle: true,
|
|
214
|
-
},
|
|
215
|
-
},
|
|
216
|
-
{
|
|
217
|
-
dataIndex: 'skuCode',
|
|
218
|
-
title: 'SKU',
|
|
219
|
-
fixed: 'left',
|
|
220
|
-
ellipsis: {
|
|
221
|
-
showTitle: true,
|
|
222
|
-
},
|
|
223
|
-
},
|
|
224
|
-
{
|
|
225
|
-
dataIndex: 'skuSpec',
|
|
226
|
-
title: '商品规格',
|
|
227
|
-
ellipsis: {
|
|
228
|
-
showTitle: false,
|
|
229
|
-
},
|
|
230
|
-
},
|
|
231
|
-
{
|
|
232
|
-
dataIndex: 'barCode',
|
|
233
|
-
title: '条码',
|
|
234
|
-
ellipsis: {
|
|
235
|
-
showTitle: false,
|
|
236
|
-
},
|
|
237
|
-
},
|
|
238
|
-
{
|
|
239
|
-
dataIndex: 'executeAmount',
|
|
240
|
-
title: '可执行数量',
|
|
241
|
-
},
|
|
242
|
-
{
|
|
243
|
-
dataIndex: 'planAmount',
|
|
244
|
-
title: '数量',
|
|
245
|
-
ellipsis: {
|
|
246
|
-
showTitle: false,
|
|
247
|
-
},
|
|
248
|
-
},
|
|
249
|
-
{
|
|
250
|
-
dataIndex: 'baseUnitCode',
|
|
251
|
-
title: '单位',
|
|
252
|
-
ellipsis: {
|
|
253
|
-
showTitle: false,
|
|
254
|
-
},
|
|
255
|
-
},
|
|
256
|
-
{
|
|
257
|
-
dataIndex: 'completeAmount',
|
|
258
|
-
title: '累计入库数量',
|
|
259
|
-
},
|
|
260
|
-
{
|
|
261
|
-
dataIndex: 'reverseNumber',
|
|
262
|
-
title: '累计退货数量',
|
|
263
|
-
},
|
|
264
|
-
{
|
|
265
|
-
dataIndex: 'taxRate',
|
|
266
|
-
title: '税率',
|
|
267
|
-
},
|
|
268
|
-
{
|
|
269
|
-
dataIndex: 'taxAmount',
|
|
270
|
-
title: '税额',
|
|
271
|
-
},
|
|
272
|
-
{
|
|
273
|
-
dataIndex: 'standardPrice',
|
|
274
|
-
title: '标准单价',
|
|
275
|
-
},
|
|
276
|
-
]
|
|
277
|
-
const config = {
|
|
278
|
-
modeType: 'view',
|
|
279
|
-
scroll: {
|
|
280
|
-
x: '100%',
|
|
281
|
-
},
|
|
282
|
-
rowKey: 'id',
|
|
283
|
-
// initialDataSource: [{}, {}],
|
|
284
|
-
remoteDataSource: {
|
|
285
|
-
url: 'xxxxxx',
|
|
286
|
-
converter: ({ data }: any) => {
|
|
287
|
-
return {
|
|
288
|
-
list: [{},{}],
|
|
289
|
-
total: 2
|
|
290
|
-
};
|
|
291
|
-
},
|
|
292
|
-
},
|
|
293
|
-
pagination: {
|
|
294
|
-
showTotal: (total: any) => `共 ${total} 条`,
|
|
295
|
-
showQuickJumper: true,
|
|
296
|
-
hideOnSinglePage: true,
|
|
297
|
-
current: 1,
|
|
298
|
-
pageSize: 10,
|
|
299
|
-
total: 10,
|
|
300
|
-
size: 'small'
|
|
301
|
-
},
|
|
302
|
-
rowSelection: {
|
|
303
|
-
},
|
|
304
|
-
summary: () => {
|
|
305
|
-
return {
|
|
306
|
-
diy: true,
|
|
307
|
-
cont: [
|
|
308
|
-
{
|
|
309
|
-
key: 'spuCode',
|
|
310
|
-
value: 100,
|
|
311
|
-
},
|
|
312
|
-
{
|
|
313
|
-
key: 'skuSpec',
|
|
314
|
-
value: 200,
|
|
315
|
-
},
|
|
316
|
-
{
|
|
317
|
-
key: 'executeAmount',
|
|
318
|
-
value: 300,
|
|
319
|
-
},
|
|
320
|
-
{
|
|
321
|
-
key: 'completeAmount',
|
|
322
|
-
value: 300,
|
|
323
|
-
},
|
|
324
|
-
{
|
|
325
|
-
key: 'taxAmount',
|
|
326
|
-
value: 300,
|
|
327
|
-
},
|
|
328
|
-
{
|
|
329
|
-
key: 'standardPrice',
|
|
330
|
-
value: 300,
|
|
331
|
-
},
|
|
332
|
-
],
|
|
333
|
-
}
|
|
334
|
-
},
|
|
335
|
-
dynamicColumns: [
|
|
336
|
-
{
|
|
337
|
-
key: 'expectTime',
|
|
338
|
-
},
|
|
339
|
-
{
|
|
340
|
-
key: 'planAmount',
|
|
341
|
-
},
|
|
342
|
-
{
|
|
343
|
-
key: 'price',
|
|
344
|
-
},
|
|
345
|
-
],
|
|
346
|
-
columns,
|
|
347
|
-
tableCode: 'uniquecode-1',
|
|
348
|
-
}
|
|
349
|
-
return (
|
|
350
|
-
<SulaColumnSettingTable
|
|
351
|
-
{
|
|
352
|
-
...config
|
|
353
|
-
}
|
|
354
|
-
ref={settingTableRef}
|
|
355
|
-
/>
|
|
356
|
-
);
|
|
357
|
-
};
|
|
358
|
-
```
|