@kmkf-fe-packages/services-components 2.0.0-rc.7 → 2.0.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 (66) hide show
  1. package/dist/esm/commonComponents/CopyText/index.d.ts +1 -1
  2. package/dist/esm/commonComponents/GlobalContext/index.d.ts +1 -1
  3. package/dist/esm/commonComponents/GlobalContext/index.js +5 -2
  4. package/dist/esm/components/BS/BsGoods/index.js +1 -1
  5. package/dist/esm/components/BS/BsLogistics/index.js +8 -1
  6. package/dist/esm/components/BS/BsSystemOrder/index.d.ts +5 -5
  7. package/dist/esm/components/BS/BsSystemOrder/index.js +12 -147
  8. package/dist/esm/components/BS/common/BsHeaderChild.d.ts +6 -4
  9. package/dist/esm/components/BS/common/BsHeaderChild.js +20 -9
  10. package/dist/esm/components/BS/common/BsHeaderGood.d.ts +1 -0
  11. package/dist/esm/components/BS/common/BsHeaderGood.js +139 -103
  12. package/dist/esm/components/BS/common/BsMemo.d.ts +4 -4
  13. package/dist/esm/components/BS/common/BsMemo.js +19 -18
  14. package/dist/esm/components/BS/common/BsType.d.ts +4 -4
  15. package/dist/esm/components/BS/common/BsType.js +17 -16
  16. package/dist/esm/components/BS/common/SystemOrderNo.js +2 -1
  17. package/dist/esm/components/BS/common/expressCode.js +4 -1
  18. package/dist/esm/components/BS/common/expressCompany.js +3 -0
  19. package/dist/esm/components/BsE3/BsGoods/index.js +1 -1
  20. package/dist/esm/components/BsE3/BsReissueE3/index.js +1 -1
  21. package/dist/esm/components/Common/constants/bs.d.ts +3 -0
  22. package/dist/esm/components/Common/constants/bs.js +90 -0
  23. package/dist/esm/components/Common/constants/bs_e3.d.ts +3 -0
  24. package/dist/esm/components/Common/constants/bs_e3.js +154 -0
  25. package/dist/esm/components/Common/constants/columnsBaseInfoMap.d.ts +5 -0
  26. package/dist/esm/components/Common/constants/columnsBaseInfoMap.js +26 -0
  27. package/dist/esm/components/Common/constants/defaultColumns.d.ts +3 -0
  28. package/dist/esm/components/Common/constants/defaultColumns.js +76 -0
  29. package/dist/esm/components/Common/constants/gy.d.ts +3 -0
  30. package/dist/esm/components/Common/constants/gy.js +153 -0
  31. package/dist/esm/components/Common/constants/system.d.ts +3 -0
  32. package/dist/esm/components/Common/constants/system.js +58 -0
  33. package/dist/esm/components/Common/constants/wdt.d.ts +3 -0
  34. package/dist/esm/components/Common/constants/wdt.js +280 -0
  35. package/dist/esm/components/Common/index.d.ts +13 -5
  36. package/dist/esm/components/Common/index.js +221 -912
  37. package/dist/esm/components/CommonHeaderGood/index.d.ts +1 -0
  38. package/dist/esm/components/CommonHeaderGood/index.js +322 -93
  39. package/dist/esm/components/CommonMultiStatus/index.d.ts +4 -4
  40. package/dist/esm/components/CommonMultiStatus/index.js +78 -74
  41. package/dist/esm/components/CommonSystemOrder/index.d.ts +4 -4
  42. package/dist/esm/components/CommonSystemOrder/index.js +25 -25
  43. package/dist/esm/components/EItemEnCode/index.d.ts +3 -1
  44. package/dist/esm/components/EItemEnCode/index.js +26 -29
  45. package/dist/esm/components/GY/GyGoods/index.d.ts +33 -0
  46. package/dist/esm/components/GY/GyGoods/index.js +123 -0
  47. package/dist/esm/components/GY/GyReissue/index.d.ts +58 -0
  48. package/dist/esm/components/GY/GyReissue/index.js +188 -0
  49. package/dist/esm/components/JST/JstSendGood/index.js +32 -16
  50. package/dist/esm/components/KmErpSendGood/index.js +11 -11
  51. package/dist/esm/components/MsgStatus/index.d.ts +5 -5
  52. package/dist/esm/components/MsgStatus/index.js +39 -48
  53. package/dist/esm/components/PostIng/index.js +3 -2
  54. package/dist/esm/components/ReceiverAddress/index.js +74 -8
  55. package/dist/esm/components/{JST/JstLogistics → Reissue/Logistics}/index.d.ts +12 -3
  56. package/dist/esm/components/{JST/JstLogistics → Reissue/Logistics}/index.js +36 -13
  57. package/dist/esm/components/StatusSelect/index.d.ts +1 -1
  58. package/dist/esm/components/StatusSelect/index.js +1 -2
  59. package/dist/esm/factory.d.ts +2 -2
  60. package/dist/esm/factory.js +10 -4
  61. package/dist/esm/index.d.ts +3 -1
  62. package/dist/esm/index.js +3 -1
  63. package/dist/esm/service/api.d.ts +3 -0
  64. package/dist/esm/service/api.js +59 -38
  65. package/dist/esm/type.d.ts +8 -3
  66. package/package.json +4 -4
@@ -0,0 +1,280 @@
1
+ import React from "react";
2
+ import { Image } from "antd";
3
+ var getColumns = function getColumns(_ref) {
4
+ var _ref$text = _ref.text,
5
+ text = _ref$text === void 0 ? "" : _ref$text;
6
+ var data = {
7
+ //旺店通商品信息
8
+ WDT_GOODS: [{
9
+ dataIndex: "goodId",
10
+ title: "\u5546\u54C1ID",
11
+ align: "center",
12
+ ellipsis: true,
13
+ width: 70
14
+ }, {
15
+ dataIndex: "goodNo",
16
+ title: "\u5546\u54C1\u7F16\u7801",
17
+ align: "center",
18
+ ellipsis: true,
19
+ width: 180
20
+ }, {
21
+ dataIndex: "goodName",
22
+ title: "".concat(text, "\u5546\u54C1\u540D\u79F0"),
23
+ align: "center",
24
+ ellipsis: true,
25
+ width: 250
26
+ }, {
27
+ dataIndex: "specId",
28
+ title: "".concat(text, "SKUID"),
29
+ align: "center",
30
+ ellipsis: true,
31
+ width: 100
32
+ }, {
33
+ dataIndex: "specNo",
34
+ title: "".concat(text, "\u5546\u54C1SKU\u7F16\u7801"),
35
+ align: "center",
36
+ ellipsis: true,
37
+ width: 180
38
+ }, {
39
+ dataIndex: "specName",
40
+ title: "".concat(text, "\u5546\u54C1SKU\u540D\u79F0"),
41
+ align: "center",
42
+ ellipsis: true,
43
+ width: 250
44
+ }, {
45
+ dataIndex: "imgUrl",
46
+ title: "\u56FE\u7247",
47
+ align: "center",
48
+ ellipsis: true,
49
+ width: 100,
50
+ render: function render(val) {
51
+ return /*#__PURE__*/React.createElement(Image, {
52
+ width: 60,
53
+ src: val
54
+ });
55
+ }
56
+ }, {
57
+ dataIndex: "orderPrice",
58
+ title: "\u5B9E\u4ED8\u603B\u91D1\u989D",
59
+ align: "center",
60
+ ellipsis: true,
61
+ width: 100
62
+ }, {
63
+ dataIndex: "num",
64
+ title: "".concat(text, "\u6570\u91CF"),
65
+ align: "center",
66
+ ellipsis: true,
67
+ width: 100
68
+ },
69
+ // {
70
+ // dataIndex: 'actualNum',
71
+ // title: `${text}实发数量`,
72
+ // align: 'center',
73
+ // ellipsis: true,
74
+ // width: 100,
75
+ // },
76
+ {
77
+ dataIndex: "sharePrice",
78
+ title: "\u5206\u644A\u4EF7",
79
+ align: "center",
80
+ ellipsis: true,
81
+ width: 70
82
+ }, {
83
+ dataIndex: "giftType",
84
+ title: "\u8D60\u54C1\u65B9\u5F0F",
85
+ align: "center",
86
+ ellipsis: true,
87
+ width: 100,
88
+ render: function render(val) {
89
+ var giftTypeMap = {
90
+ 0: "非赠品",
91
+ 1: "自动赠送",
92
+ 2: "手工赠送",
93
+ 3: "回购自动送赠品",
94
+ 4: "前N有礼送赠品",
95
+ 6: "天猫优仓赠品",
96
+ 7: "淘宝CRM会员送赠"
97
+ };
98
+ return /*#__PURE__*/React.createElement("span", null, giftTypeMap[val]);
99
+ }
100
+ }],
101
+ //旺店通退货商品信息
102
+ WDT_RETURN_GOODS: [{
103
+ dataIndex: "goodId",
104
+ title: "\u5546\u54C1ID",
105
+ align: "center",
106
+ ellipsis: true,
107
+ width: 70
108
+ }, {
109
+ dataIndex: "goodNo",
110
+ title: "\u5546\u54C1\u7F16\u7801",
111
+ align: "center",
112
+ ellipsis: true,
113
+ width: 180
114
+ }, {
115
+ dataIndex: "goodName",
116
+ title: "".concat(text, "\u5546\u54C1\u540D\u79F0"),
117
+ align: "center",
118
+ ellipsis: true,
119
+ width: 250
120
+ }, {
121
+ dataIndex: "specId",
122
+ title: "".concat(text, "SKUID"),
123
+ align: "center",
124
+ ellipsis: true,
125
+ width: 100
126
+ }, {
127
+ dataIndex: "specNo",
128
+ title: "".concat(text, "\u5546\u54C1SKU\u7F16\u7801"),
129
+ align: "center",
130
+ ellipsis: true,
131
+ width: 180
132
+ }, {
133
+ dataIndex: "specName",
134
+ title: "".concat(text, "\u5546\u54C1SKU\u540D\u79F0"),
135
+ align: "center",
136
+ ellipsis: true,
137
+ width: 250
138
+ }, {
139
+ dataIndex: "num",
140
+ title: "".concat(text, "\u9000\u8D27\u6570\u91CF"),
141
+ align: "center",
142
+ ellipsis: true,
143
+ width: 100
144
+ }, {
145
+ dataIndex: "sharePrice",
146
+ title: "\u5206\u644A\u4EF7",
147
+ align: "center",
148
+ ellipsis: true,
149
+ width: 80
150
+ }, {
151
+ dataIndex: "returnPrice",
152
+ title: "".concat(text, "\u9000\u8D27\u91D1\u989D"),
153
+ align: "center",
154
+ ellipsis: true,
155
+ width: 100
156
+ }, {
157
+ dataIndex: "giftType",
158
+ title: "\u8D60\u54C1\u65B9\u5F0F",
159
+ align: "center",
160
+ ellipsis: true,
161
+ width: 100,
162
+ render: function render(val) {
163
+ var giftTypeMap = {
164
+ 0: "非赠品",
165
+ 1: "自动赠送",
166
+ 2: "手工赠送",
167
+ 3: "回购自动送赠品",
168
+ 4: "前N有礼送赠品",
169
+ 6: "天猫优仓赠品",
170
+ 7: "淘宝CRM会员送赠"
171
+ };
172
+ return /*#__PURE__*/React.createElement("span", null, giftTypeMap[val]);
173
+ }
174
+ }, {
175
+ dataIndex: "type",
176
+ title: "".concat(text, "\u5546\u54C1\u7C7B\u578B"),
177
+ align: "center",
178
+ ellipsis: true,
179
+ width: 100,
180
+ render: function render(val) {
181
+ var typeMap = {
182
+ "1": "单品",
183
+ "2": "组合装"
184
+ };
185
+ return /*#__PURE__*/React.createElement("span", null, typeMap[val]);
186
+ }
187
+ }],
188
+ //旺店通换出商品信息
189
+ WDT_EXCHANGE_GOODS: [{
190
+ dataIndex: "goodId",
191
+ title: "\u5546\u54C1ID",
192
+ align: "center",
193
+ ellipsis: true,
194
+ width: 70
195
+ }, {
196
+ dataIndex: "goodNo",
197
+ title: "\u5546\u54C1\u7F16\u7801",
198
+ align: "center",
199
+ ellipsis: true,
200
+ width: 180
201
+ }, {
202
+ dataIndex: "goodName",
203
+ title: "".concat(text, "\u5546\u54C1\u540D\u79F0"),
204
+ align: "center",
205
+ ellipsis: true,
206
+ width: 250
207
+ }, {
208
+ dataIndex: "specId",
209
+ title: "".concat(text, "SKUID"),
210
+ align: "center",
211
+ ellipsis: true,
212
+ width: 100
213
+ }, {
214
+ dataIndex: "specNo",
215
+ title: "".concat(text, "\u5546\u54C1SKU\u7F16\u7801"),
216
+ align: "center",
217
+ ellipsis: true,
218
+ width: 180
219
+ }, {
220
+ dataIndex: "specName",
221
+ title: "".concat(text, "\u5546\u54C1SKU\u540D\u79F0"),
222
+ align: "center",
223
+ ellipsis: true,
224
+ width: 250
225
+ }, {
226
+ dataIndex: "num",
227
+ title: "".concat(text, "\u6362\u51FA\u6570\u91CF"),
228
+ align: "center",
229
+ ellipsis: true,
230
+ width: 100
231
+ }, {
232
+ dataIndex: "price",
233
+ title: "".concat(text, "\u5546\u54C1\u5355\u4EF7"),
234
+ align: "center",
235
+ ellipsis: true,
236
+ width: 100
237
+ }, {
238
+ dataIndex: "exchangePrice",
239
+ title: "".concat(text, "\u6362\u51FA\u91D1\u989D"),
240
+ align: "center",
241
+ ellipsis: true,
242
+ width: 100
243
+ }, {
244
+ dataIndex: "giftType",
245
+ title: "\u8D60\u54C1\u65B9\u5F0F",
246
+ align: "center",
247
+ ellipsis: true,
248
+ width: 100,
249
+ render: function render(val) {
250
+ var giftTypeMap = {
251
+ 0: "非赠品",
252
+ 1: "自动赠送",
253
+ 2: "手工赠送",
254
+ 3: "回购自动送赠品",
255
+ 4: "前N有礼送赠品",
256
+ 6: "天猫优仓赠品",
257
+ 7: "淘宝CRM会员送赠"
258
+ };
259
+ return /*#__PURE__*/React.createElement("span", null, giftTypeMap[val]);
260
+ }
261
+ }, {
262
+ dataIndex: "type",
263
+ title: "".concat(text, "\u5546\u54C1\u7C7B\u578B"),
264
+ align: "center",
265
+ ellipsis: true,
266
+ width: 100,
267
+ render: function render(val) {
268
+ var typeMap = {
269
+ "1": "单品",
270
+ "2": "组合装"
271
+ };
272
+ return /*#__PURE__*/React.createElement("span", null, typeMap[val]);
273
+ }
274
+ }]
275
+ };
276
+ //旺店通补发商品信息
277
+ data["WDT_REISSUE_GOODS"] = data["WDT_GOODS"];
278
+ return data;
279
+ };
280
+ export default getColumns;
@@ -1,4 +1,5 @@
1
1
  import React from "react";
2
+ import { ShowHeaderObjType } from "../../type";
2
3
  declare type getFormItemProps = {
3
4
  name: string;
4
5
  title: string;
@@ -13,11 +14,18 @@ export declare const showImage: ({ item, type, index, showHeader, }: {
13
14
  index: number;
14
15
  showHeader: string[];
15
16
  }) => React.JSX.Element;
16
- export declare const ShowTotalImage: ({ total, allImage, type, showHeader, }: any) => React.JSX.Element;
17
+ export declare const ShowTotalImage: ({ total, allImage, type, showHeader, }: {
18
+ total: number;
19
+ allImage: {
20
+ [key: string]: any;
21
+ }[];
22
+ type: string;
23
+ showHeader: string[];
24
+ }) => React.JSX.Element;
17
25
  export declare const GoodImage: ({ list, type, showHeader }: any) => React.JSX.Element | null;
18
- export declare const JstGoodImage: ({ list, type, platformType }: any) => any;
19
- export declare const BsExpressRender: ({ list, showField, platformType }: any) => any;
20
- export declare const CommonOrderContent: ({ list, valueKey, failValue, options, isShowPopover }: any) => any;
26
+ export declare const JstGoodImage: ({ list, type, platformType, }: any) => any;
27
+ export declare const BsExpressRender: ({ list, showField, platformType, }: any) => any;
28
+ export declare const CommonOrderContent: ({ list, valueKey: initValueKey, failValue, options, isShowPopover, }: any) => any;
21
29
  export declare const BsGoodImage: ({ item, index }: {
22
30
  item: any;
23
31
  index: number;
@@ -26,7 +34,7 @@ export declare const BsExchangeList: ({ list, showHeader }: any) => React.JSX.El
26
34
  export declare const BsGoodPic: (list: string[]) => React.JSX.Element[];
27
35
  export declare const BsGoodsTable: ({ list, showHeader, text, type, }: {
28
36
  list: any[];
29
- showHeader: string[];
37
+ showHeader: (string | ShowHeaderObjType)[];
30
38
  text?: string | undefined;
31
39
  type?: string | undefined;
32
40
  }) => React.JSX.Element;