@kmkf-fe-packages/services-components 2.2.29 → 2.2.31-beta.0

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 (29) hide show
  1. package/README.md +1 -1
  2. package/dist/esm/components/BS/BsLogistics/index.js +9 -9
  3. package/dist/esm/components/BS/BsSystemOrder/index.js +4 -2
  4. package/dist/esm/components/BS/common/expressCode.js +1 -2
  5. package/dist/esm/components/BsE3/BsReissueE3/index.js +4 -1
  6. package/dist/esm/components/Common/index.js +5 -3
  7. package/dist/esm/components/CommonHeaderGood/index.js +164 -4
  8. package/dist/esm/components/JST/JstSendGood/index.js +1 -1
  9. package/dist/esm/components/LogisticsInterception/columnHeader.js +1 -1
  10. package/dist/esm/components/LogisticsInterception/interceptSenderMobile.js +3 -2
  11. package/dist/esm/components/LogisticsMoreInterception/InterceptAddress.js +4 -2
  12. package/dist/esm/components/LogisticsMoreInterception/InterceptApiStatus.js +1 -1
  13. package/dist/esm/components/LogisticsMoreInterception/interceptSenderMobile.d.ts +5 -5
  14. package/dist/esm/components/LogisticsMoreInterception/interceptSenderMobile.js +9 -9
  15. package/dist/esm/components/MsgStatus/index.js +6 -1
  16. package/dist/esm/components/Payment/PaymentAmount.d.ts +0 -1
  17. package/dist/esm/components/Payment/PaymentAmount.js +0 -4
  18. package/dist/esm/components/Public/Goods/index.js +8 -0
  19. package/dist/esm/components/Public/ReissueGoods/index.js +7 -3
  20. package/dist/esm/components/ReturnLogistics/index.d.ts +7 -6
  21. package/dist/esm/components/ReturnLogistics/index.js +34 -17
  22. package/dist/esm/components/WDT/WdtRessuie/index.js +7 -4
  23. package/dist/esm/factory.d.ts +1 -1
  24. package/dist/esm/factory.js +3 -0
  25. package/package.json +4 -4
  26. package/dist/esm/components/Common/constants/gy.d.ts +0 -3
  27. package/dist/esm/components/Common/constants/gy.js +0 -219
  28. package/dist/esm/components/Common/constants/wdt.d.ts +0 -3
  29. package/dist/esm/components/Common/constants/wdt.js +0 -308
@@ -1,308 +0,0 @@
1
- import React from "react";
2
- import { Image } from "antd";
3
- import { CopyTextIcon } from "@kmkf-fe-packages/basic-components";
4
- var getColumns = function getColumns(_ref) {
5
- var _ref$text = _ref.text,
6
- text = _ref$text === void 0 ? "" : _ref$text;
7
- var data = {
8
- //旺店通商品信息
9
- WDT_GOODS: [{
10
- dataIndex: "goodId",
11
- title: "\u5546\u54C1ID",
12
- align: "center",
13
- ellipsis: true,
14
- width: 70
15
- }, {
16
- dataIndex: "goodNo",
17
- title: "\u5546\u54C1\u7F16\u7801",
18
- align: "center",
19
- ellipsis: true,
20
- width: 180
21
- }, {
22
- dataIndex: "goodName",
23
- title: "".concat(text, "\u5546\u54C1\u540D\u79F0"),
24
- align: "center",
25
- width: 250,
26
- render: function render(text) {
27
- return /*#__PURE__*/React.createElement(CopyTextIcon, {
28
- val: text
29
- });
30
- }
31
- }, {
32
- dataIndex: "specId",
33
- title: "".concat(text, "SKUID"),
34
- align: "center",
35
- ellipsis: true,
36
- width: 100
37
- }, {
38
- dataIndex: "specNo",
39
- title: "".concat(text, "\u5546\u54C1SKU\u7F16\u7801"),
40
- align: "center",
41
- ellipsis: true,
42
- width: 180
43
- }, {
44
- dataIndex: "specName",
45
- title: "".concat(text, "\u5546\u54C1SKU\u540D\u79F0"),
46
- align: "center",
47
- width: 250,
48
- render: function render(text) {
49
- return /*#__PURE__*/React.createElement(CopyTextIcon, {
50
- val: text
51
- });
52
- }
53
- }, {
54
- dataIndex: "imgUrl",
55
- title: "\u56FE\u7247",
56
- align: "center",
57
- ellipsis: true,
58
- width: 100,
59
- render: function render(val) {
60
- return /*#__PURE__*/React.createElement(Image, {
61
- width: 60,
62
- src: val
63
- });
64
- }
65
- }, {
66
- dataIndex: "orderPrice",
67
- title: "\u6210\u4EA4\u603B\u91D1\u989D",
68
- align: "center",
69
- ellipsis: true,
70
- width: 100,
71
- render: function render(val, record) {
72
- return (record.num || record.num === 0) && (val || val === 0) ? Number(val * record.num).toFixed(2) : null;
73
- }
74
- }, {
75
- dataIndex: "num",
76
- title: "".concat(text, "\u6570\u91CF"),
77
- align: "center",
78
- ellipsis: true,
79
- width: 100
80
- },
81
- // {
82
- // dataIndex: 'actualNum',
83
- // title: `${text}实发数量`,
84
- // align: 'center',
85
- // ellipsis: true,
86
- // width: 100,
87
- // },
88
- {
89
- dataIndex: "sharePrice",
90
- title: "\u5206\u644A\u4EF7",
91
- align: "center",
92
- ellipsis: true,
93
- width: 70
94
- }, {
95
- dataIndex: "giftType",
96
- title: "\u8D60\u54C1\u65B9\u5F0F",
97
- align: "center",
98
- ellipsis: true,
99
- width: 100,
100
- render: function render(val) {
101
- var giftTypeMap = {
102
- 0: "非赠品",
103
- 1: "自动赠送",
104
- 2: "手工赠送",
105
- 3: "回购自动送赠品",
106
- 4: "前N有礼送赠品",
107
- 6: "天猫优仓赠品",
108
- 7: "淘宝CRM会员送赠"
109
- };
110
- return /*#__PURE__*/React.createElement("span", null, giftTypeMap[val]);
111
- }
112
- }],
113
- //旺店通退货商品信息
114
- WDT_RETURN_GOODS: [{
115
- dataIndex: "goodId",
116
- title: "\u5546\u54C1ID",
117
- align: "center",
118
- ellipsis: true,
119
- width: 70
120
- }, {
121
- dataIndex: "goodNo",
122
- title: "\u5546\u54C1\u7F16\u7801",
123
- align: "center",
124
- ellipsis: true,
125
- width: 180
126
- }, {
127
- dataIndex: "goodName",
128
- title: "".concat(text, "\u5546\u54C1\u540D\u79F0"),
129
- align: "center",
130
- width: 250,
131
- render: function render(text) {
132
- return /*#__PURE__*/React.createElement(CopyTextIcon, {
133
- val: text
134
- });
135
- }
136
- }, {
137
- dataIndex: "specId",
138
- title: "".concat(text, "SKUID"),
139
- align: "center",
140
- ellipsis: true,
141
- width: 100
142
- }, {
143
- dataIndex: "specNo",
144
- title: "".concat(text, "\u5546\u54C1SKU\u7F16\u7801"),
145
- align: "center",
146
- ellipsis: true,
147
- width: 180
148
- }, {
149
- dataIndex: "specName",
150
- title: "".concat(text, "\u5546\u54C1SKU\u540D\u79F0"),
151
- align: "center",
152
- width: 250,
153
- render: function render(text) {
154
- return /*#__PURE__*/React.createElement(CopyTextIcon, {
155
- val: text
156
- });
157
- }
158
- }, {
159
- dataIndex: "num",
160
- title: "".concat(text, "\u9000\u8D27\u6570\u91CF"),
161
- align: "center",
162
- ellipsis: true,
163
- width: 100
164
- }, {
165
- dataIndex: "sharePrice",
166
- title: "\u5206\u644A\u4EF7",
167
- align: "center",
168
- ellipsis: true,
169
- width: 80
170
- }, {
171
- dataIndex: "returnPrice",
172
- title: "".concat(text, "\u9000\u8D27\u91D1\u989D"),
173
- align: "center",
174
- ellipsis: true,
175
- width: 100
176
- }, {
177
- dataIndex: "giftType",
178
- title: "\u8D60\u54C1\u65B9\u5F0F",
179
- align: "center",
180
- ellipsis: true,
181
- width: 100,
182
- render: function render(val) {
183
- var giftTypeMap = {
184
- 0: "非赠品",
185
- 1: "自动赠送",
186
- 2: "手工赠送",
187
- 3: "回购自动送赠品",
188
- 4: "前N有礼送赠品",
189
- 6: "天猫优仓赠品",
190
- 7: "淘宝CRM会员送赠"
191
- };
192
- return /*#__PURE__*/React.createElement("span", null, giftTypeMap[val]);
193
- }
194
- }, {
195
- dataIndex: "type",
196
- title: "".concat(text, "\u5546\u54C1\u7C7B\u578B"),
197
- align: "center",
198
- ellipsis: true,
199
- width: 100,
200
- render: function render(val) {
201
- var typeMap = {
202
- "1": "单品",
203
- "2": "组合装"
204
- };
205
- return /*#__PURE__*/React.createElement("span", null, typeMap[val]);
206
- }
207
- }],
208
- //旺店通换出商品信息
209
- WDT_EXCHANGE_GOODS: [{
210
- dataIndex: "goodId",
211
- title: "\u5546\u54C1ID",
212
- align: "center",
213
- ellipsis: true,
214
- width: 70
215
- }, {
216
- dataIndex: "goodNo",
217
- title: "\u5546\u54C1\u7F16\u7801",
218
- align: "center",
219
- ellipsis: true,
220
- width: 180
221
- }, {
222
- dataIndex: "goodName",
223
- title: "".concat(text, "\u5546\u54C1\u540D\u79F0"),
224
- align: "center",
225
- width: 250,
226
- render: function render(text) {
227
- return /*#__PURE__*/React.createElement(CopyTextIcon, {
228
- val: text
229
- });
230
- }
231
- }, {
232
- dataIndex: "specId",
233
- title: "".concat(text, "SKUID"),
234
- align: "center",
235
- ellipsis: true,
236
- width: 100
237
- }, {
238
- dataIndex: "specNo",
239
- title: "".concat(text, "\u5546\u54C1SKU\u7F16\u7801"),
240
- align: "center",
241
- ellipsis: true,
242
- width: 180
243
- }, {
244
- dataIndex: "specName",
245
- title: "".concat(text, "\u5546\u54C1SKU\u540D\u79F0"),
246
- align: "center",
247
- width: 250,
248
- render: function render(text) {
249
- return /*#__PURE__*/React.createElement(CopyTextIcon, {
250
- val: text
251
- });
252
- }
253
- }, {
254
- dataIndex: "num",
255
- title: "".concat(text, "\u6362\u51FA\u6570\u91CF"),
256
- align: "center",
257
- ellipsis: true,
258
- width: 100
259
- }, {
260
- dataIndex: "price",
261
- title: "".concat(text, "\u5546\u54C1\u5355\u4EF7"),
262
- align: "center",
263
- ellipsis: true,
264
- width: 100
265
- }, {
266
- dataIndex: "exchangePrice",
267
- title: "".concat(text, "\u6362\u51FA\u91D1\u989D"),
268
- align: "center",
269
- ellipsis: true,
270
- width: 100
271
- }, {
272
- dataIndex: "giftType",
273
- title: "\u8D60\u54C1\u65B9\u5F0F",
274
- align: "center",
275
- ellipsis: true,
276
- width: 100,
277
- render: function render(val) {
278
- var giftTypeMap = {
279
- 0: "非赠品",
280
- 1: "自动赠送",
281
- 2: "手工赠送",
282
- 3: "回购自动送赠品",
283
- 4: "前N有礼送赠品",
284
- 6: "天猫优仓赠品",
285
- 7: "淘宝CRM会员送赠"
286
- };
287
- return /*#__PURE__*/React.createElement("span", null, giftTypeMap[val]);
288
- }
289
- }, {
290
- dataIndex: "type",
291
- title: "".concat(text, "\u5546\u54C1\u7C7B\u578B"),
292
- align: "center",
293
- ellipsis: true,
294
- width: 100,
295
- render: function render(val) {
296
- var typeMap = {
297
- "1": "单品",
298
- "2": "组合装"
299
- };
300
- return /*#__PURE__*/React.createElement("span", null, typeMap[val]);
301
- }
302
- }]
303
- };
304
- //旺店通补发商品信息
305
- data["WDT_REISSUE_GOODS"] = data["WDT_GOODS"];
306
- return data;
307
- };
308
- export default getColumns;