@kmkf-fe-packages/services-components 1.22.1-beta.4 → 1.22.1-beta.41
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/dist/esm/commonComponents/GlobalContext/index.d.ts +1 -1
- package/dist/esm/commonComponents/GlobalContext/index.js +4 -2
- package/dist/esm/commonComponents/ShopList/index.d.ts +2 -1
- package/dist/esm/commonComponents/ShopList/index.js +5 -5
- package/dist/esm/components/BS/BsGoods/index.js +6 -2
- package/dist/esm/components/BS/BsLogistics/index.js +8 -1
- package/dist/esm/components/BS/BsSystemOrder/index.d.ts +5 -5
- package/dist/esm/components/BS/BsSystemOrder/index.js +37 -15
- package/dist/esm/components/BS/common/BsHeaderChild.d.ts +6 -4
- package/dist/esm/components/BS/common/BsHeaderChild.js +20 -9
- package/dist/esm/components/BS/common/BsHeaderGood.d.ts +1 -0
- package/dist/esm/components/BS/common/BsHeaderGood.js +151 -101
- package/dist/esm/components/BS/common/expressCode.js +4 -1
- package/dist/esm/components/BS/common/expressCompany.js +3 -0
- package/dist/esm/components/BsE3/BsGoods/index.js +1 -1
- package/dist/esm/components/BsE3/BsReissueE3/index.js +1 -1
- package/dist/esm/components/Common/index.d.ts +6 -5
- package/dist/esm/components/Common/index.js +532 -364
- package/dist/esm/components/CommonHeaderGood/index.d.ts +1 -0
- package/dist/esm/components/CommonHeaderGood/index.js +126 -93
- package/dist/esm/components/CommonMultiStatus/index.d.ts +5 -4
- package/dist/esm/components/CommonMultiStatus/index.js +98 -65
- package/dist/esm/components/CommonSystemOrder/index.d.ts +4 -4
- package/dist/esm/components/CommonSystemOrder/index.js +25 -25
- package/dist/esm/components/EItemEnCode/index.d.ts +2 -1
- package/dist/esm/components/EItemEnCode/index.js +28 -29
- package/dist/esm/components/JST/JstSendGood/index.js +1 -1
- package/dist/esm/components/MemberLevel/index.d.ts +35 -0
- package/dist/esm/components/MemberLevel/index.js +119 -0
- package/dist/esm/components/Payment/PaymentAmount.d.ts +0 -1
- package/dist/esm/components/Payment/PaymentAmount.js +0 -4
- package/dist/esm/components/Radio/index.js +3 -2
- package/dist/esm/components/{JST/JstLogistics → Reissue/Logistics}/index.d.ts +2 -2
- package/dist/esm/components/{JST/JstLogistics → Reissue/Logistics}/index.js +3 -9
- package/dist/esm/factory.d.ts +2 -2
- package/dist/esm/factory.js +7 -4
- package/dist/esm/index.d.ts +2 -1
- package/dist/esm/index.js +2 -1
- package/dist/esm/service/api.d.ts +2 -0
- package/dist/esm/service/api.js +12 -0
- package/dist/esm/type.d.ts +7 -2
- package/package.json +4 -4
|
@@ -16,11 +16,11 @@ import { Form, Button, Modal, Tooltip, Space, Image, Popover, Table, message, Ty
|
|
|
16
16
|
import React, { useState, useMemo } from "react";
|
|
17
17
|
import { ExpressData, SendDataCenter, BS_E3_BOOLEAN_STATUS_MAP, BS_E3_ORDER_STATUS_MAP } from "@kmkf-fe-packages/kmkf-utils";
|
|
18
18
|
import { getAlipayBillReceipt } from "../../service/api";
|
|
19
|
-
import { CopyToClipboard } from
|
|
19
|
+
import { CopyToClipboard } from "react-copy-to-clipboard";
|
|
20
20
|
import styles from "./index.module.less";
|
|
21
21
|
import defaultImg from "./img/default-img.png";
|
|
22
22
|
import CopyText from "../../commonComponents/CopyText";
|
|
23
|
-
import { KM_SYSTEM_ORDER_CONFIG } from
|
|
23
|
+
import { KM_SYSTEM_ORDER_CONFIG } from "@kmkf-fe-packages/kmkf-utils";
|
|
24
24
|
var Paragraph = Typography.Paragraph;
|
|
25
25
|
export var getFormItem = function getFormItem(_ref) {
|
|
26
26
|
var name = _ref.name,
|
|
@@ -39,7 +39,7 @@ export var getFormItem = function getFormItem(_ref) {
|
|
|
39
39
|
return /*#__PURE__*/React.createElement("div", {
|
|
40
40
|
className: "form-item--wrap",
|
|
41
41
|
style: {
|
|
42
|
-
position:
|
|
42
|
+
position: "relative"
|
|
43
43
|
}
|
|
44
44
|
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
45
45
|
name: name,
|
|
@@ -54,58 +54,71 @@ export var showImage = function showImage(_ref2) {
|
|
|
54
54
|
type = _ref2.type,
|
|
55
55
|
index = _ref2.index,
|
|
56
56
|
showHeader = _ref2.showHeader;
|
|
57
|
-
var picUrl = item.picUrl ? (item === null || item === void 0 ? void 0 : item.platform) !==
|
|
57
|
+
var picUrl = item.picUrl ? (item === null || item === void 0 ? void 0 : item.platform) !== "tabao" ? item.picUrl : item.picUrl + "_40x40.jpg" : defaultImg;
|
|
58
|
+
var showHeaderMap = useMemo(function () {
|
|
59
|
+
var isStringArray = Array.isArray(showHeader) && typeof showHeader[0] === "string";
|
|
60
|
+
var isObjectArray = Array.isArray(showHeader) && Object.prototype.toString.call(showHeader[0]) === "[object Object]";
|
|
61
|
+
var dataIndexList = [];
|
|
62
|
+
if (isStringArray) {
|
|
63
|
+
dataIndexList = showHeader;
|
|
64
|
+
} else if (isObjectArray) {
|
|
65
|
+
dataIndexList = showHeader.map(function (item) {
|
|
66
|
+
return item.dataIndex;
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
return dataIndexList;
|
|
70
|
+
}, [showHeader]);
|
|
58
71
|
return /*#__PURE__*/React.createElement("div", {
|
|
59
72
|
className: styles.goodImgBox,
|
|
60
73
|
key: index
|
|
61
|
-
}, type ===
|
|
74
|
+
}, type === "itemCode" && !showHeaderMap.includes("picUrl") ? null : (item === null || item === void 0 ? void 0 : item.platform) === "taobao" ? /*#__PURE__*/React.createElement("a", {
|
|
62
75
|
target: "_blank",
|
|
63
|
-
href: item.numIid ? "https://item.taobao.com/item.htm?id=".concat(item.numIid) :
|
|
76
|
+
href: item.numIid ? "https://item.taobao.com/item.htm?id=".concat(item.numIid) : "javascript:void(0);"
|
|
64
77
|
}, /*#__PURE__*/React.createElement("img", {
|
|
65
78
|
style: {
|
|
66
|
-
width:
|
|
67
|
-
height:
|
|
68
|
-
objectFit:
|
|
79
|
+
width: "40px",
|
|
80
|
+
height: "40px",
|
|
81
|
+
objectFit: "contain"
|
|
69
82
|
},
|
|
70
83
|
src: picUrl
|
|
71
84
|
})) : /*#__PURE__*/React.createElement("img", {
|
|
72
85
|
style: {
|
|
73
|
-
width:
|
|
74
|
-
height:
|
|
75
|
-
objectFit:
|
|
86
|
+
width: "40px",
|
|
87
|
+
height: "40px",
|
|
88
|
+
objectFit: "contain"
|
|
76
89
|
},
|
|
77
90
|
src: picUrl
|
|
78
91
|
}), /*#__PURE__*/React.createElement("div", {
|
|
79
92
|
className: styles.options
|
|
80
|
-
}, type ===
|
|
81
|
-
title:
|
|
93
|
+
}, type === "itemId" && /*#__PURE__*/React.createElement(TextTool, {
|
|
94
|
+
title: "商品id",
|
|
82
95
|
text: item.numIid
|
|
83
|
-
}), type ===
|
|
84
|
-
title:
|
|
96
|
+
}), type === "itemCode" && /*#__PURE__*/React.createElement(React.Fragment, null, showHeaderMap.includes("title") && /*#__PURE__*/React.createElement(TextTool, {
|
|
97
|
+
title: "商品名称",
|
|
85
98
|
text: item.title
|
|
86
|
-
}),
|
|
87
|
-
title:
|
|
99
|
+
}), showHeaderMap.includes("outerId") && /*#__PURE__*/React.createElement(TextTool, {
|
|
100
|
+
title: "商品编码",
|
|
88
101
|
text: item.outerId
|
|
89
|
-
}),
|
|
90
|
-
title:
|
|
102
|
+
}), showHeaderMap.includes("numIid") && /*#__PURE__*/React.createElement(TextTool, {
|
|
103
|
+
title: "商品id",
|
|
91
104
|
text: item.numIid
|
|
92
|
-
}),
|
|
93
|
-
title:
|
|
105
|
+
}), showHeaderMap.includes("skuId") && /*#__PURE__*/React.createElement(TextTool, {
|
|
106
|
+
title: "SKU ID",
|
|
94
107
|
text: item.skuId
|
|
95
|
-
}),
|
|
96
|
-
title:
|
|
108
|
+
}), showHeaderMap.includes("outerSkuId") && /*#__PURE__*/React.createElement(TextTool, {
|
|
109
|
+
title: "SKU 编码",
|
|
97
110
|
text: item.outerSkuId
|
|
98
|
-
}),
|
|
99
|
-
title:
|
|
111
|
+
}), showHeaderMap.includes("propertiesName") && /*#__PURE__*/React.createElement(TextTool, {
|
|
112
|
+
title: "SKU 信息",
|
|
100
113
|
text: item.propertiesName
|
|
101
|
-
})), (type ===
|
|
102
|
-
title:
|
|
114
|
+
})), (type === "itemThird" || type === "jstItemThird") && (item.itemId || item.supplierItemOuterId) && /*#__PURE__*/React.createElement(TextTool, {
|
|
115
|
+
title: "供应商编码",
|
|
103
116
|
text: item.itemId || item.supplierItemOuterId
|
|
104
|
-
}), (type ===
|
|
105
|
-
title:
|
|
117
|
+
}), (type === "itemThird" || type === "jstItemThird") && item.supplierName && /*#__PURE__*/React.createElement(TextTool, {
|
|
118
|
+
title: "供应商名称",
|
|
106
119
|
text: item.supplierName
|
|
107
|
-
}), type !==
|
|
108
|
-
title:
|
|
120
|
+
}), type !== "itemCode" && item.propertiesName && /*#__PURE__*/React.createElement(TextTool, {
|
|
121
|
+
title: "规格",
|
|
109
122
|
text: item.propertiesName
|
|
110
123
|
})));
|
|
111
124
|
};
|
|
@@ -118,9 +131,9 @@ var TextTool = function TextTool(_ref3) {
|
|
|
118
131
|
title: text
|
|
119
132
|
}, /*#__PURE__*/React.createElement("div", {
|
|
120
133
|
style: {
|
|
121
|
-
overflow:
|
|
122
|
-
whiteSpace:
|
|
123
|
-
textOverflow:
|
|
134
|
+
overflow: "hidden",
|
|
135
|
+
whiteSpace: "nowrap",
|
|
136
|
+
textOverflow: "ellipsis"
|
|
124
137
|
}
|
|
125
138
|
}, title, ":", text));
|
|
126
139
|
};
|
|
@@ -136,6 +149,19 @@ export var ShowTotalImage = function ShowTotalImage(_ref4) {
|
|
|
136
149
|
_useState2 = _slicedToArray(_useState, 2),
|
|
137
150
|
visible = _useState2[0],
|
|
138
151
|
setVisible = _useState2[1];
|
|
152
|
+
var showHeaderMap = useMemo(function () {
|
|
153
|
+
var isStringArray = Array.isArray(showHeader) && typeof showHeader[0] === "string";
|
|
154
|
+
var isObjectArray = Array.isArray(showHeader) && Object.prototype.toString.call(showHeader[0]) === "[object Object]";
|
|
155
|
+
var dataIndexList = [];
|
|
156
|
+
if (isStringArray) {
|
|
157
|
+
dataIndexList = showHeader;
|
|
158
|
+
} else if (isObjectArray) {
|
|
159
|
+
dataIndexList = showHeader.map(function (item) {
|
|
160
|
+
return item.dataIndex;
|
|
161
|
+
});
|
|
162
|
+
}
|
|
163
|
+
return dataIndexList;
|
|
164
|
+
}, [showHeader]);
|
|
139
165
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Button, {
|
|
140
166
|
type: "link",
|
|
141
167
|
onClick: function onClick() {
|
|
@@ -150,62 +176,62 @@ export var ShowTotalImage = function ShowTotalImage(_ref4) {
|
|
|
150
176
|
title: "\u6240\u6709\u9009\u62E9\u5B9D\u8D1D"
|
|
151
177
|
}, /*#__PURE__*/React.createElement("div", {
|
|
152
178
|
style: {
|
|
153
|
-
display:
|
|
154
|
-
flexWrap:
|
|
179
|
+
display: "flex",
|
|
180
|
+
flexWrap: "wrap"
|
|
155
181
|
}
|
|
156
182
|
}, allImage.map(function (i, index) {
|
|
157
183
|
return /*#__PURE__*/React.createElement("div", {
|
|
158
184
|
style: {
|
|
159
|
-
width:
|
|
185
|
+
width: "50%"
|
|
160
186
|
},
|
|
161
187
|
key: index
|
|
162
|
-
}, type ===
|
|
163
|
-
href: i.link || ((i === null || i === void 0 ? void 0 : i.platform) ===
|
|
188
|
+
}, type === "itemCode" && !showHeaderMap.includes("picUrl") ? null : /*#__PURE__*/React.createElement("a", {
|
|
189
|
+
href: i.link || ((i === null || i === void 0 ? void 0 : i.platform) === "taobao" && i.numIid ? "https://item.taobao.com/item.htm?id=".concat(i.numIid) : "javascript:void(0);"),
|
|
164
190
|
target: "__blank",
|
|
165
191
|
style: {
|
|
166
|
-
marginRight:
|
|
167
|
-
marginTop:
|
|
168
|
-
padding:
|
|
169
|
-
border:
|
|
170
|
-
display:
|
|
192
|
+
marginRight: "12px",
|
|
193
|
+
marginTop: "8px",
|
|
194
|
+
padding: "2px",
|
|
195
|
+
border: "1px dashed #ccc",
|
|
196
|
+
display: "inline-block"
|
|
171
197
|
}
|
|
172
198
|
}, /*#__PURE__*/React.createElement("img", {
|
|
173
199
|
alt: "",
|
|
174
200
|
src: i.picUrl || defaultImg,
|
|
175
201
|
style: {
|
|
176
|
-
width:
|
|
177
|
-
height:
|
|
178
|
-
objectFit:
|
|
202
|
+
width: "72px",
|
|
203
|
+
height: "72px",
|
|
204
|
+
objectFit: "contain"
|
|
179
205
|
}
|
|
180
|
-
})), /*#__PURE__*/React.createElement("div", null, type ===
|
|
181
|
-
title:
|
|
206
|
+
})), /*#__PURE__*/React.createElement("div", null, type === "itemId" && /*#__PURE__*/React.createElement(TextTool, {
|
|
207
|
+
title: "商品id",
|
|
182
208
|
text: i.numIid
|
|
183
|
-
}), type ===
|
|
184
|
-
title:
|
|
209
|
+
}), type === "itemCode" && /*#__PURE__*/React.createElement(React.Fragment, null, showHeaderMap.includes("title") && /*#__PURE__*/React.createElement(TextTool, {
|
|
210
|
+
title: "商品名称",
|
|
185
211
|
text: i.title
|
|
186
|
-
}),
|
|
187
|
-
title:
|
|
212
|
+
}), showHeaderMap.includes("outerId") && /*#__PURE__*/React.createElement(TextTool, {
|
|
213
|
+
title: "商品编码",
|
|
188
214
|
text: i.outerId
|
|
189
|
-
}),
|
|
190
|
-
title:
|
|
215
|
+
}), showHeaderMap.includes("numIid") && /*#__PURE__*/React.createElement(TextTool, {
|
|
216
|
+
title: "商品id",
|
|
191
217
|
text: i.numIid
|
|
192
|
-
}),
|
|
193
|
-
title:
|
|
218
|
+
}), showHeaderMap.includes("skuId") && /*#__PURE__*/React.createElement(TextTool, {
|
|
219
|
+
title: "SKU ID",
|
|
194
220
|
text: i.skuId
|
|
195
|
-
}),
|
|
196
|
-
title:
|
|
221
|
+
}), showHeaderMap.includes("outerSkuId") && /*#__PURE__*/React.createElement(TextTool, {
|
|
222
|
+
title: "SKU 编码",
|
|
197
223
|
text: i.outerSkuId
|
|
198
|
-
}),
|
|
199
|
-
title:
|
|
224
|
+
}), showHeaderMap.includes("propertiesName") && /*#__PURE__*/React.createElement(TextTool, {
|
|
225
|
+
title: "SKU 信息",
|
|
200
226
|
text: i.propertiesName
|
|
201
|
-
})), (type ===
|
|
202
|
-
title:
|
|
227
|
+
})), (type === "itemThird" || type === "jstItemThird") && (i.itemId || i.supplierItemOuterId) && /*#__PURE__*/React.createElement(TextTool, {
|
|
228
|
+
title: "供应商编码",
|
|
203
229
|
text: i.itemId || i.supplierItemOuterId
|
|
204
|
-
}), (type ===
|
|
205
|
-
title:
|
|
230
|
+
}), (type === "itemThird" || type === "jstItemThird") && i.supplierName && /*#__PURE__*/React.createElement(TextTool, {
|
|
231
|
+
title: "供应商名称",
|
|
206
232
|
text: i.supplierName
|
|
207
|
-
}), type !==
|
|
208
|
-
title:
|
|
233
|
+
}), type !== "itemCode" && i.propertiesName && /*#__PURE__*/React.createElement(TextTool, {
|
|
234
|
+
title: "规格",
|
|
209
235
|
text: i.propertiesName
|
|
210
236
|
})));
|
|
211
237
|
}))));
|
|
@@ -215,21 +241,34 @@ export var GoodImage = function GoodImage(_ref5) {
|
|
|
215
241
|
var _list$slice;
|
|
216
242
|
var list = _ref5.list,
|
|
217
243
|
_ref5$type = _ref5.type,
|
|
218
|
-
type = _ref5$type === void 0 ?
|
|
244
|
+
type = _ref5$type === void 0 ? "" : _ref5$type,
|
|
219
245
|
_ref5$showHeader = _ref5.showHeader,
|
|
220
246
|
showHeader = _ref5$showHeader === void 0 ? [] : _ref5$showHeader;
|
|
221
247
|
var total = (list === null || list === void 0 ? void 0 : list.length) || 0;
|
|
222
248
|
var initShowTotal = 3;
|
|
249
|
+
var showHeaderMap = useMemo(function () {
|
|
250
|
+
var isStringArray = Array.isArray(showHeader) && typeof showHeader[0] === "string";
|
|
251
|
+
var isObjectArray = Array.isArray(showHeader) && Object.prototype.toString.call(showHeader[0]) === "[object Object]";
|
|
252
|
+
var dataIndexList = [];
|
|
253
|
+
if (isStringArray) {
|
|
254
|
+
dataIndexList = showHeader;
|
|
255
|
+
} else if (isObjectArray) {
|
|
256
|
+
dataIndexList = showHeader.map(function (item) {
|
|
257
|
+
return item.dataIndex;
|
|
258
|
+
});
|
|
259
|
+
}
|
|
260
|
+
return dataIndexList;
|
|
261
|
+
}, [showHeader]);
|
|
223
262
|
return (list === null || list === void 0 ? void 0 : list.length) > 0 ? /*#__PURE__*/React.createElement("div", {
|
|
224
263
|
style: {
|
|
225
|
-
display: type ===
|
|
264
|
+
display: type === "itemSelect" ? "flex" : "block"
|
|
226
265
|
}
|
|
227
266
|
}, list === null || list === void 0 ? void 0 : (_list$slice = list.slice(0, initShowTotal)) === null || _list$slice === void 0 ? void 0 : _list$slice.map(function (item, index) {
|
|
228
267
|
return showImage({
|
|
229
268
|
item: item,
|
|
230
269
|
type: type,
|
|
231
270
|
index: index,
|
|
232
|
-
showHeader:
|
|
271
|
+
showHeader: showHeaderMap
|
|
233
272
|
});
|
|
234
273
|
}), total > initShowTotal && /*#__PURE__*/React.createElement(ShowTotalImage, {
|
|
235
274
|
total: total,
|
|
@@ -239,11 +278,16 @@ export var GoodImage = function GoodImage(_ref5) {
|
|
|
239
278
|
})) : null;
|
|
240
279
|
};
|
|
241
280
|
var content = function content(item, index) {
|
|
242
|
-
return /*#__PURE__*/React.createElement("div",
|
|
281
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
282
|
+
style: {
|
|
283
|
+
maxHeight: "300px",
|
|
284
|
+
overflowY: "auto"
|
|
285
|
+
}
|
|
286
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
243
287
|
style: {
|
|
244
|
-
textAlign:
|
|
288
|
+
textAlign: "center"
|
|
245
289
|
}
|
|
246
|
-
}, "\u5305\u88F9".concat(index + 1, "\u5546\u54C1\u4FE1\u606F")), ((item === null || item === void 0 ? void 0 : item.items) || []).map(function (t, index) {
|
|
290
|
+
}, "\u5305\u88F9".concat(index + 1, "\u5546\u54C1\u4FE1\u606F"), item.sid && /*#__PURE__*/React.createElement("span", null, "(\u7CFB\u7EDF\u5355\u53F7:", item.sid, ")")), ((item === null || item === void 0 ? void 0 : item.items) || []).map(function (t, index) {
|
|
247
291
|
return /*#__PURE__*/React.createElement("div", {
|
|
248
292
|
key: index
|
|
249
293
|
}, /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Image, {
|
|
@@ -258,8 +302,8 @@ export var JstGoodImage = function JstGoodImage(_ref6) {
|
|
|
258
302
|
list = _ref6$list === void 0 ? [] : _ref6$list,
|
|
259
303
|
type = _ref6.type,
|
|
260
304
|
_ref6$platformType = _ref6.platformType,
|
|
261
|
-
platformType = _ref6$platformType === void 0 ?
|
|
262
|
-
var getSendName = function getSendName(item
|
|
305
|
+
platformType = _ref6$platformType === void 0 ? "default" : _ref6$platformType;
|
|
306
|
+
var getSendName = function getSendName(item) {
|
|
263
307
|
return SendDataCenter.getInstance(platformType).getSendNameByCode(item.sendName);
|
|
264
308
|
};
|
|
265
309
|
return list !== null && list !== void 0 && list.length ? (list || []).map(function (item, index) {
|
|
@@ -273,14 +317,14 @@ export var JstGoodImage = function JstGoodImage(_ref6) {
|
|
|
273
317
|
}, /*#__PURE__*/React.createElement("span", {
|
|
274
318
|
key: index,
|
|
275
319
|
style: {
|
|
276
|
-
color:
|
|
277
|
-
cursor:
|
|
320
|
+
color: "#1890ff",
|
|
321
|
+
cursor: "pointer"
|
|
278
322
|
}
|
|
279
323
|
}, "\u5305\u88F9".concat(index + 1), ":")), type === 1 ? /*#__PURE__*/React.createElement("span", null, company && item.logisticsCode ? /*#__PURE__*/React.createElement(React.Fragment, null, company, "/", /*#__PURE__*/React.createElement(CopyText, {
|
|
280
324
|
text: item.logisticsCode
|
|
281
325
|
})) : company ? company : item.logisticsCode ? /*#__PURE__*/React.createElement(CopyText, {
|
|
282
326
|
text: item.logisticsCode
|
|
283
|
-
}) : null) : null, type === 2 ? /*#__PURE__*/React.createElement("span", null, item.supplyName && item.supplyId ? [item.supplyId, item.supplyName].join(
|
|
327
|
+
}) : null) : null, type === 2 ? /*#__PURE__*/React.createElement("span", null, item.supplyName && item.supplyId ? [item.supplyId, item.supplyName].join("/") : item.supplyId ? item.supplyId : item.supplyName) : null, type === 3 ? /*#__PURE__*/React.createElement("span", null, item.sendName && item.sendId ? [item.sendId, getSendName(item)].join("/") : item.sendId ? item.sendId : getSendName(item)) : null, type === 4 ? /*#__PURE__*/React.createElement("span", null, (item === null || item === void 0 ? void 0 : item.deliveryNo) || "") : null));
|
|
284
328
|
}) : null;
|
|
285
329
|
};
|
|
286
330
|
export var BsExpressRender = function BsExpressRender(_ref7) {
|
|
@@ -301,10 +345,10 @@ export var BsExpressRender = function BsExpressRender(_ref7) {
|
|
|
301
345
|
}, /*#__PURE__*/React.createElement("span", {
|
|
302
346
|
key: index,
|
|
303
347
|
style: {
|
|
304
|
-
color:
|
|
305
|
-
cursor:
|
|
348
|
+
color: "#1890ff",
|
|
349
|
+
cursor: "pointer"
|
|
306
350
|
}
|
|
307
|
-
}, "\u5305\u88F9", ":")), showField ===
|
|
351
|
+
}, "\u5305\u88F9", ":")), showField === "company" ? /*#__PURE__*/React.createElement("span", null, company ? company : null) : null, showField === "code" ? /*#__PURE__*/React.createElement("span", null, item.logisticsCode ? /*#__PURE__*/React.createElement(CopyText, {
|
|
308
352
|
text: item.logisticsCode
|
|
309
353
|
}) : null) : null));
|
|
310
354
|
}) : null;
|
|
@@ -312,24 +356,51 @@ export var BsExpressRender = function BsExpressRender(_ref7) {
|
|
|
312
356
|
export var CommonOrderContent = function CommonOrderContent(_ref8) {
|
|
313
357
|
var _ref8$list = _ref8.list,
|
|
314
358
|
list = _ref8$list === void 0 ? [] : _ref8$list,
|
|
315
|
-
|
|
359
|
+
initValueKey = _ref8.valueKey,
|
|
316
360
|
failValue = _ref8.failValue,
|
|
317
361
|
_ref8$options = _ref8.options,
|
|
318
362
|
options = _ref8$options === void 0 ? [] : _ref8$options,
|
|
319
363
|
_ref8$isShowPopover = _ref8.isShowPopover,
|
|
320
364
|
isShowPopover = _ref8$isShowPopover === void 0 ? true : _ref8$isShowPopover;
|
|
365
|
+
var getContentData = function getContentData(item, index) {
|
|
366
|
+
if (item.platformId) return {
|
|
367
|
+
text: "平台售后单号",
|
|
368
|
+
id: item.platformId
|
|
369
|
+
};
|
|
370
|
+
if (item.returnLogisticsCode) return {
|
|
371
|
+
text: "物流单号",
|
|
372
|
+
id: item.returnLogisticsCode
|
|
373
|
+
};
|
|
374
|
+
return {
|
|
375
|
+
text: "系统订单号" + (index + 1),
|
|
376
|
+
id: item.systemOrderId
|
|
377
|
+
};
|
|
378
|
+
};
|
|
321
379
|
var orderContent = function orderContent(item, index) {
|
|
380
|
+
var contentData = getContentData(item, index);
|
|
322
381
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
323
382
|
style: {
|
|
324
|
-
textAlign:
|
|
383
|
+
textAlign: "center"
|
|
325
384
|
}
|
|
326
|
-
},
|
|
385
|
+
}, contentData.text, "\uFF1A", contentData.id));
|
|
327
386
|
};
|
|
328
387
|
return list !== null && list !== void 0 && list.length ? (list || []).map(function (item, index) {
|
|
329
388
|
var _options$find;
|
|
389
|
+
var valueKey = "";
|
|
390
|
+
if (Array.isArray(initValueKey)) {
|
|
391
|
+
for (var _index = 0; _index < initValueKey.length; _index++) {
|
|
392
|
+
var itemKey = initValueKey[_index];
|
|
393
|
+
if (item[itemKey]) {
|
|
394
|
+
valueKey = itemKey;
|
|
395
|
+
break;
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
} else {
|
|
399
|
+
valueKey = initValueKey;
|
|
400
|
+
}
|
|
330
401
|
var color = ((_options$find = options.find(function (it) {
|
|
331
402
|
return item[valueKey] === it.value;
|
|
332
|
-
})) === null || _options$find === void 0 ? void 0 : _options$find.color) ||
|
|
403
|
+
})) === null || _options$find === void 0 ? void 0 : _options$find.color) || "#000";
|
|
333
404
|
var currentOption = options.find(function (option) {
|
|
334
405
|
return item[valueKey] === option.value;
|
|
335
406
|
});
|
|
@@ -341,14 +412,14 @@ export var CommonOrderContent = function CommonOrderContent(_ref8) {
|
|
|
341
412
|
}, /*#__PURE__*/React.createElement("span", {
|
|
342
413
|
key: index,
|
|
343
414
|
style: {
|
|
344
|
-
color:
|
|
345
|
-
cursor:
|
|
415
|
+
color: "#1890ff",
|
|
416
|
+
cursor: "pointer"
|
|
346
417
|
}
|
|
347
|
-
}, "
|
|
418
|
+
}, "".concat(getContentData(item, index).text), ":")) : null, /*#__PURE__*/React.createElement("span", {
|
|
348
419
|
style: {
|
|
349
420
|
color: color
|
|
350
421
|
}
|
|
351
|
-
}, currentOption ? currentOption.label : (item === null || item === void 0 ? void 0 : item[valueKey]) ||
|
|
422
|
+
}, currentOption ? currentOption.label : (item === null || item === void 0 ? void 0 : item[valueKey]) || "")), item.reason && (item === null || item === void 0 ? void 0 : item[valueKey]) !== "成功" && /*#__PURE__*/React.createElement("div", {
|
|
352
423
|
className: "c-red"
|
|
353
424
|
}, item.reason));
|
|
354
425
|
}) : null;
|
|
@@ -360,22 +431,22 @@ export var BsGoodImage = function BsGoodImage(_ref9) {
|
|
|
360
431
|
index = _ref9.index;
|
|
361
432
|
var picUrl = item.picUrl || defaultImg;
|
|
362
433
|
var keyMap = {
|
|
363
|
-
name:
|
|
364
|
-
code:
|
|
365
|
-
skuId:
|
|
366
|
-
money:
|
|
367
|
-
number:
|
|
368
|
-
share:
|
|
369
|
-
type:
|
|
434
|
+
name: "bs名称",
|
|
435
|
+
code: "bs编码",
|
|
436
|
+
skuId: "bssku编码",
|
|
437
|
+
money: "bs实付金额",
|
|
438
|
+
number: "bs数量",
|
|
439
|
+
share: "bs分摊价",
|
|
440
|
+
type: "bs赠品类型"
|
|
370
441
|
};
|
|
371
442
|
return /*#__PURE__*/React.createElement("div", {
|
|
372
443
|
className: styles.goodImgBox,
|
|
373
444
|
key: index
|
|
374
445
|
}, /*#__PURE__*/React.createElement("img", {
|
|
375
446
|
style: {
|
|
376
|
-
width:
|
|
377
|
-
height:
|
|
378
|
-
objectFit:
|
|
447
|
+
width: "40px",
|
|
448
|
+
height: "40px",
|
|
449
|
+
objectFit: "contain"
|
|
379
450
|
},
|
|
380
451
|
src: picUrl
|
|
381
452
|
}), /*#__PURE__*/React.createElement("div", {
|
|
@@ -397,11 +468,11 @@ export var BsExchangeList = function BsExchangeList(_ref10) {
|
|
|
397
468
|
return /*#__PURE__*/React.createElement(React.Fragment, null, BsGoodsTable({
|
|
398
469
|
list: (item === null || item === void 0 ? void 0 : item.bsExchangeReturnGoods) || [],
|
|
399
470
|
showHeader: showHeader,
|
|
400
|
-
text:
|
|
471
|
+
text: "退回"
|
|
401
472
|
}), BsGoodsTable({
|
|
402
473
|
list: item === null || item === void 0 ? void 0 : item.bsExchangeSwapOutGoods,
|
|
403
474
|
showHeader: showHeader,
|
|
404
|
-
text:
|
|
475
|
+
text: "换出"
|
|
405
476
|
}));
|
|
406
477
|
}));
|
|
407
478
|
};
|
|
@@ -418,31 +489,31 @@ export var BsGoodsTable = function BsGoodsTable(_ref11) {
|
|
|
418
489
|
var list = _ref11.list,
|
|
419
490
|
showHeader = _ref11.showHeader,
|
|
420
491
|
_ref11$text = _ref11.text,
|
|
421
|
-
text = _ref11$text === void 0 ?
|
|
492
|
+
text = _ref11$text === void 0 ? "" : _ref11$text,
|
|
422
493
|
type = _ref11.type;
|
|
423
494
|
//商品信息
|
|
424
495
|
var COLUMNS_MAP = function COLUMNS_MAP() {
|
|
425
|
-
var text = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] :
|
|
496
|
+
var text = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
|
|
426
497
|
return function (type) {
|
|
427
498
|
var columns = [];
|
|
428
499
|
switch (type) {
|
|
429
|
-
case
|
|
500
|
+
case "ITEM_ENCODE":
|
|
430
501
|
columns = [{
|
|
431
|
-
dataIndex:
|
|
432
|
-
title:
|
|
433
|
-
align:
|
|
502
|
+
dataIndex: "title",
|
|
503
|
+
title: "商品名称",
|
|
504
|
+
align: "center",
|
|
434
505
|
ellipsis: true,
|
|
435
506
|
width: 200
|
|
436
507
|
}, {
|
|
437
|
-
dataIndex:
|
|
438
|
-
title:
|
|
439
|
-
align:
|
|
508
|
+
dataIndex: "outerId",
|
|
509
|
+
title: "商品编码",
|
|
510
|
+
align: "center",
|
|
440
511
|
ellipsis: true,
|
|
441
512
|
width: 140
|
|
442
513
|
}, {
|
|
443
|
-
dataIndex:
|
|
444
|
-
title:
|
|
445
|
-
align:
|
|
514
|
+
dataIndex: "picUrl",
|
|
515
|
+
title: "图片",
|
|
516
|
+
align: "center",
|
|
446
517
|
ellipsis: true,
|
|
447
518
|
width: 100,
|
|
448
519
|
render: function render(val) {
|
|
@@ -452,73 +523,73 @@ export var BsGoodsTable = function BsGoodsTable(_ref11) {
|
|
|
452
523
|
});
|
|
453
524
|
}
|
|
454
525
|
}, {
|
|
455
|
-
dataIndex:
|
|
456
|
-
title:
|
|
457
|
-
align:
|
|
526
|
+
dataIndex: "numIid",
|
|
527
|
+
title: "商品id",
|
|
528
|
+
align: "center",
|
|
458
529
|
ellipsis: true,
|
|
459
530
|
width: 200
|
|
460
531
|
}, {
|
|
461
|
-
dataIndex:
|
|
462
|
-
title:
|
|
463
|
-
align:
|
|
532
|
+
dataIndex: "skuId",
|
|
533
|
+
title: "SKU ID",
|
|
534
|
+
align: "center",
|
|
464
535
|
ellipsis: true,
|
|
465
536
|
width: 200
|
|
466
537
|
}, {
|
|
467
|
-
dataIndex:
|
|
468
|
-
title:
|
|
469
|
-
align:
|
|
538
|
+
dataIndex: "outerSkuId",
|
|
539
|
+
title: "SKU 编码",
|
|
540
|
+
align: "center",
|
|
470
541
|
ellipsis: true,
|
|
471
542
|
width: 100
|
|
472
543
|
}, {
|
|
473
|
-
dataIndex:
|
|
474
|
-
title:
|
|
475
|
-
align:
|
|
544
|
+
dataIndex: "propertiesName",
|
|
545
|
+
title: "SKU 信息",
|
|
546
|
+
align: "center",
|
|
476
547
|
ellipsis: true,
|
|
477
548
|
width: 200
|
|
478
549
|
}];
|
|
479
550
|
break;
|
|
480
|
-
case
|
|
481
|
-
case
|
|
551
|
+
case "WDT_REISSUE_GOODS":
|
|
552
|
+
case "WDT_GOODS":
|
|
482
553
|
columns = [{
|
|
483
|
-
dataIndex:
|
|
554
|
+
dataIndex: "goodId",
|
|
484
555
|
title: "\u5546\u54C1ID",
|
|
485
|
-
align:
|
|
556
|
+
align: "center",
|
|
486
557
|
ellipsis: true,
|
|
487
558
|
width: 70
|
|
488
559
|
}, {
|
|
489
|
-
dataIndex:
|
|
560
|
+
dataIndex: "goodNo",
|
|
490
561
|
title: "\u5546\u54C1\u7F16\u7801",
|
|
491
|
-
align:
|
|
562
|
+
align: "center",
|
|
492
563
|
ellipsis: true,
|
|
493
564
|
width: 180
|
|
494
565
|
}, {
|
|
495
|
-
dataIndex:
|
|
566
|
+
dataIndex: "goodName",
|
|
496
567
|
title: "".concat(text, "\u5546\u54C1\u540D\u79F0"),
|
|
497
|
-
align:
|
|
568
|
+
align: "center",
|
|
498
569
|
ellipsis: true,
|
|
499
570
|
width: 250
|
|
500
571
|
}, {
|
|
501
|
-
dataIndex:
|
|
572
|
+
dataIndex: "specId",
|
|
502
573
|
title: "".concat(text, "SKUID"),
|
|
503
|
-
align:
|
|
574
|
+
align: "center",
|
|
504
575
|
ellipsis: true,
|
|
505
576
|
width: 100
|
|
506
577
|
}, {
|
|
507
|
-
dataIndex:
|
|
578
|
+
dataIndex: "specNo",
|
|
508
579
|
title: "".concat(text, "\u5546\u54C1SKU\u7F16\u7801"),
|
|
509
|
-
align:
|
|
580
|
+
align: "center",
|
|
510
581
|
ellipsis: true,
|
|
511
582
|
width: 180
|
|
512
583
|
}, {
|
|
513
|
-
dataIndex:
|
|
584
|
+
dataIndex: "specName",
|
|
514
585
|
title: "".concat(text, "\u5546\u54C1SKU\u540D\u79F0"),
|
|
515
|
-
align:
|
|
586
|
+
align: "center",
|
|
516
587
|
ellipsis: true,
|
|
517
588
|
width: 250
|
|
518
589
|
}, {
|
|
519
|
-
dataIndex:
|
|
590
|
+
dataIndex: "imgUrl",
|
|
520
591
|
title: "\u56FE\u7247",
|
|
521
|
-
align:
|
|
592
|
+
align: "center",
|
|
522
593
|
ellipsis: true,
|
|
523
594
|
width: 100,
|
|
524
595
|
render: function render(val) {
|
|
@@ -528,15 +599,15 @@ export var BsGoodsTable = function BsGoodsTable(_ref11) {
|
|
|
528
599
|
});
|
|
529
600
|
}
|
|
530
601
|
}, {
|
|
531
|
-
dataIndex:
|
|
602
|
+
dataIndex: "orderPrice",
|
|
532
603
|
title: "\u5B9E\u4ED8\u603B\u91D1\u989D",
|
|
533
|
-
align:
|
|
604
|
+
align: "center",
|
|
534
605
|
ellipsis: true,
|
|
535
606
|
width: 100
|
|
536
607
|
}, {
|
|
537
|
-
dataIndex:
|
|
608
|
+
dataIndex: "num",
|
|
538
609
|
title: "".concat(text, "\u6570\u91CF"),
|
|
539
|
-
align:
|
|
610
|
+
align: "center",
|
|
540
611
|
ellipsis: true,
|
|
541
612
|
width: 100
|
|
542
613
|
},
|
|
@@ -548,242 +619,242 @@ export var BsGoodsTable = function BsGoodsTable(_ref11) {
|
|
|
548
619
|
// width: 100,
|
|
549
620
|
// },
|
|
550
621
|
{
|
|
551
|
-
dataIndex:
|
|
622
|
+
dataIndex: "sharePrice",
|
|
552
623
|
title: "\u5206\u644A\u4EF7",
|
|
553
|
-
align:
|
|
624
|
+
align: "center",
|
|
554
625
|
ellipsis: true,
|
|
555
626
|
width: 70
|
|
556
627
|
}, {
|
|
557
|
-
dataIndex:
|
|
628
|
+
dataIndex: "giftType",
|
|
558
629
|
title: "\u8D60\u54C1\u65B9\u5F0F",
|
|
559
|
-
align:
|
|
630
|
+
align: "center",
|
|
560
631
|
ellipsis: true,
|
|
561
632
|
width: 100,
|
|
562
633
|
render: function render(val) {
|
|
563
634
|
var giftTypeMap = {
|
|
564
|
-
0:
|
|
565
|
-
1:
|
|
566
|
-
2:
|
|
567
|
-
3:
|
|
568
|
-
4:
|
|
569
|
-
6:
|
|
570
|
-
7:
|
|
635
|
+
0: "非赠品",
|
|
636
|
+
1: "自动赠送",
|
|
637
|
+
2: "手工赠送",
|
|
638
|
+
3: "回购自动送赠品",
|
|
639
|
+
4: "前N有礼送赠品",
|
|
640
|
+
6: "天猫优仓赠品",
|
|
641
|
+
7: "淘宝CRM会员送赠"
|
|
571
642
|
};
|
|
572
643
|
return /*#__PURE__*/React.createElement("span", null, giftTypeMap[val]);
|
|
573
644
|
}
|
|
574
645
|
}];
|
|
575
646
|
break;
|
|
576
|
-
case
|
|
647
|
+
case "WDT_RETURN_GOODS":
|
|
577
648
|
{
|
|
578
649
|
columns = [{
|
|
579
|
-
dataIndex:
|
|
650
|
+
dataIndex: "goodId",
|
|
580
651
|
title: "\u5546\u54C1ID",
|
|
581
|
-
align:
|
|
652
|
+
align: "center",
|
|
582
653
|
ellipsis: true,
|
|
583
654
|
width: 70
|
|
584
655
|
}, {
|
|
585
|
-
dataIndex:
|
|
656
|
+
dataIndex: "goodNo",
|
|
586
657
|
title: "\u5546\u54C1\u7F16\u7801",
|
|
587
|
-
align:
|
|
658
|
+
align: "center",
|
|
588
659
|
ellipsis: true,
|
|
589
660
|
width: 180
|
|
590
661
|
}, {
|
|
591
|
-
dataIndex:
|
|
662
|
+
dataIndex: "goodName",
|
|
592
663
|
title: "".concat(text, "\u5546\u54C1\u540D\u79F0"),
|
|
593
|
-
align:
|
|
664
|
+
align: "center",
|
|
594
665
|
ellipsis: true,
|
|
595
666
|
width: 250
|
|
596
667
|
}, {
|
|
597
|
-
dataIndex:
|
|
668
|
+
dataIndex: "specId",
|
|
598
669
|
title: "".concat(text, "SKUID"),
|
|
599
|
-
align:
|
|
670
|
+
align: "center",
|
|
600
671
|
ellipsis: true,
|
|
601
672
|
width: 100
|
|
602
673
|
}, {
|
|
603
|
-
dataIndex:
|
|
674
|
+
dataIndex: "specNo",
|
|
604
675
|
title: "".concat(text, "\u5546\u54C1SKU\u7F16\u7801"),
|
|
605
|
-
align:
|
|
676
|
+
align: "center",
|
|
606
677
|
ellipsis: true,
|
|
607
678
|
width: 180
|
|
608
679
|
}, {
|
|
609
|
-
dataIndex:
|
|
680
|
+
dataIndex: "specName",
|
|
610
681
|
title: "".concat(text, "\u5546\u54C1SKU\u540D\u79F0"),
|
|
611
|
-
align:
|
|
682
|
+
align: "center",
|
|
612
683
|
ellipsis: true,
|
|
613
684
|
width: 250
|
|
614
685
|
}, {
|
|
615
|
-
dataIndex:
|
|
686
|
+
dataIndex: "num",
|
|
616
687
|
title: "".concat(text, "\u9000\u8D27\u6570\u91CF"),
|
|
617
|
-
align:
|
|
688
|
+
align: "center",
|
|
618
689
|
ellipsis: true,
|
|
619
690
|
width: 100
|
|
620
691
|
}, {
|
|
621
|
-
dataIndex:
|
|
692
|
+
dataIndex: "sharePrice",
|
|
622
693
|
title: "\u5206\u644A\u4EF7",
|
|
623
|
-
align:
|
|
694
|
+
align: "center",
|
|
624
695
|
ellipsis: true,
|
|
625
696
|
width: 80
|
|
626
697
|
}, {
|
|
627
|
-
dataIndex:
|
|
698
|
+
dataIndex: "returnPrice",
|
|
628
699
|
title: "".concat(text, "\u9000\u8D27\u91D1\u989D"),
|
|
629
|
-
align:
|
|
700
|
+
align: "center",
|
|
630
701
|
ellipsis: true,
|
|
631
702
|
width: 100
|
|
632
703
|
}, {
|
|
633
|
-
dataIndex:
|
|
704
|
+
dataIndex: "giftType",
|
|
634
705
|
title: "\u8D60\u54C1\u65B9\u5F0F",
|
|
635
|
-
align:
|
|
706
|
+
align: "center",
|
|
636
707
|
ellipsis: true,
|
|
637
708
|
width: 100,
|
|
638
709
|
render: function render(val) {
|
|
639
710
|
var giftTypeMap = {
|
|
640
|
-
0:
|
|
641
|
-
1:
|
|
642
|
-
2:
|
|
643
|
-
3:
|
|
644
|
-
4:
|
|
645
|
-
6:
|
|
646
|
-
7:
|
|
711
|
+
0: "非赠品",
|
|
712
|
+
1: "自动赠送",
|
|
713
|
+
2: "手工赠送",
|
|
714
|
+
3: "回购自动送赠品",
|
|
715
|
+
4: "前N有礼送赠品",
|
|
716
|
+
6: "天猫优仓赠品",
|
|
717
|
+
7: "淘宝CRM会员送赠"
|
|
647
718
|
};
|
|
648
719
|
return /*#__PURE__*/React.createElement("span", null, giftTypeMap[val]);
|
|
649
720
|
}
|
|
650
721
|
}, {
|
|
651
|
-
dataIndex:
|
|
722
|
+
dataIndex: "type",
|
|
652
723
|
title: "".concat(text, "\u5546\u54C1\u7C7B\u578B"),
|
|
653
|
-
align:
|
|
724
|
+
align: "center",
|
|
654
725
|
ellipsis: true,
|
|
655
726
|
width: 100,
|
|
656
727
|
render: function render(val) {
|
|
657
728
|
var typeMap = {
|
|
658
|
-
|
|
659
|
-
|
|
729
|
+
"1": "单品",
|
|
730
|
+
"2": "组合装"
|
|
660
731
|
};
|
|
661
732
|
return /*#__PURE__*/React.createElement("span", null, typeMap[val]);
|
|
662
733
|
}
|
|
663
734
|
}];
|
|
664
735
|
}
|
|
665
736
|
break;
|
|
666
|
-
case
|
|
737
|
+
case "WDT_EXCHANGE_GOODS":
|
|
667
738
|
{
|
|
668
739
|
columns = [{
|
|
669
|
-
dataIndex:
|
|
740
|
+
dataIndex: "goodId",
|
|
670
741
|
title: "\u5546\u54C1ID",
|
|
671
|
-
align:
|
|
742
|
+
align: "center",
|
|
672
743
|
ellipsis: true,
|
|
673
744
|
width: 70
|
|
674
745
|
}, {
|
|
675
|
-
dataIndex:
|
|
746
|
+
dataIndex: "goodNo",
|
|
676
747
|
title: "\u5546\u54C1\u7F16\u7801",
|
|
677
|
-
align:
|
|
748
|
+
align: "center",
|
|
678
749
|
ellipsis: true,
|
|
679
750
|
width: 180
|
|
680
751
|
}, {
|
|
681
|
-
dataIndex:
|
|
752
|
+
dataIndex: "goodName",
|
|
682
753
|
title: "".concat(text, "\u5546\u54C1\u540D\u79F0"),
|
|
683
|
-
align:
|
|
754
|
+
align: "center",
|
|
684
755
|
ellipsis: true,
|
|
685
756
|
width: 250
|
|
686
757
|
}, {
|
|
687
|
-
dataIndex:
|
|
758
|
+
dataIndex: "specId",
|
|
688
759
|
title: "".concat(text, "SKUID"),
|
|
689
|
-
align:
|
|
760
|
+
align: "center",
|
|
690
761
|
ellipsis: true,
|
|
691
762
|
width: 100
|
|
692
763
|
}, {
|
|
693
|
-
dataIndex:
|
|
764
|
+
dataIndex: "specNo",
|
|
694
765
|
title: "".concat(text, "\u5546\u54C1SKU\u7F16\u7801"),
|
|
695
|
-
align:
|
|
766
|
+
align: "center",
|
|
696
767
|
ellipsis: true,
|
|
697
768
|
width: 180
|
|
698
769
|
}, {
|
|
699
|
-
dataIndex:
|
|
770
|
+
dataIndex: "specName",
|
|
700
771
|
title: "".concat(text, "\u5546\u54C1SKU\u540D\u79F0"),
|
|
701
|
-
align:
|
|
772
|
+
align: "center",
|
|
702
773
|
ellipsis: true,
|
|
703
774
|
width: 250
|
|
704
775
|
}, {
|
|
705
|
-
dataIndex:
|
|
776
|
+
dataIndex: "num",
|
|
706
777
|
title: "".concat(text, "\u6362\u51FA\u6570\u91CF"),
|
|
707
|
-
align:
|
|
778
|
+
align: "center",
|
|
708
779
|
ellipsis: true,
|
|
709
780
|
width: 100
|
|
710
781
|
}, {
|
|
711
|
-
dataIndex:
|
|
782
|
+
dataIndex: "price",
|
|
712
783
|
title: "".concat(text, "\u5546\u54C1\u5355\u4EF7"),
|
|
713
|
-
align:
|
|
784
|
+
align: "center",
|
|
714
785
|
ellipsis: true,
|
|
715
786
|
width: 100
|
|
716
787
|
}, {
|
|
717
|
-
dataIndex:
|
|
788
|
+
dataIndex: "exchangePrice",
|
|
718
789
|
title: "".concat(text, "\u6362\u51FA\u91D1\u989D"),
|
|
719
|
-
align:
|
|
790
|
+
align: "center",
|
|
720
791
|
ellipsis: true,
|
|
721
792
|
width: 100
|
|
722
793
|
}, {
|
|
723
|
-
dataIndex:
|
|
794
|
+
dataIndex: "giftType",
|
|
724
795
|
title: "\u8D60\u54C1\u65B9\u5F0F",
|
|
725
|
-
align:
|
|
796
|
+
align: "center",
|
|
726
797
|
ellipsis: true,
|
|
727
798
|
width: 100,
|
|
728
799
|
render: function render(val) {
|
|
729
800
|
var giftTypeMap = {
|
|
730
|
-
0:
|
|
731
|
-
1:
|
|
732
|
-
2:
|
|
733
|
-
3:
|
|
734
|
-
4:
|
|
735
|
-
6:
|
|
736
|
-
7:
|
|
801
|
+
0: "非赠品",
|
|
802
|
+
1: "自动赠送",
|
|
803
|
+
2: "手工赠送",
|
|
804
|
+
3: "回购自动送赠品",
|
|
805
|
+
4: "前N有礼送赠品",
|
|
806
|
+
6: "天猫优仓赠品",
|
|
807
|
+
7: "淘宝CRM会员送赠"
|
|
737
808
|
};
|
|
738
809
|
return /*#__PURE__*/React.createElement("span", null, giftTypeMap[val]);
|
|
739
810
|
}
|
|
740
811
|
}, {
|
|
741
|
-
dataIndex:
|
|
812
|
+
dataIndex: "type",
|
|
742
813
|
title: "".concat(text, "\u5546\u54C1\u7C7B\u578B"),
|
|
743
|
-
align:
|
|
814
|
+
align: "center",
|
|
744
815
|
ellipsis: true,
|
|
745
816
|
width: 100,
|
|
746
817
|
render: function render(val) {
|
|
747
818
|
var typeMap = {
|
|
748
|
-
|
|
749
|
-
|
|
819
|
+
"1": "单品",
|
|
820
|
+
"2": "组合装"
|
|
750
821
|
};
|
|
751
822
|
return /*#__PURE__*/React.createElement("span", null, typeMap[val]);
|
|
752
823
|
}
|
|
753
824
|
}];
|
|
754
825
|
}
|
|
755
826
|
break;
|
|
756
|
-
case
|
|
757
|
-
case
|
|
827
|
+
case "BS_E3_REISSUE_GOODS":
|
|
828
|
+
case "BS_E3_GOODS":
|
|
758
829
|
{
|
|
759
830
|
columns = [{
|
|
760
|
-
dataIndex:
|
|
831
|
+
dataIndex: "sku",
|
|
761
832
|
title: "SKU",
|
|
762
|
-
align:
|
|
833
|
+
align: "center",
|
|
763
834
|
ellipsis: true,
|
|
764
835
|
width: 150
|
|
765
836
|
}, {
|
|
766
|
-
dataIndex:
|
|
837
|
+
dataIndex: "skuId",
|
|
767
838
|
title: "SKU ID",
|
|
768
|
-
align:
|
|
839
|
+
align: "center",
|
|
769
840
|
ellipsis: true,
|
|
770
841
|
width: 150
|
|
771
842
|
}, {
|
|
772
|
-
dataIndex:
|
|
843
|
+
dataIndex: "goodsName",
|
|
773
844
|
title: "\u5546\u54C1\u540D\u79F0",
|
|
774
|
-
align:
|
|
845
|
+
align: "center",
|
|
775
846
|
ellipsis: true,
|
|
776
847
|
width: 150
|
|
777
848
|
}, {
|
|
778
|
-
dataIndex:
|
|
849
|
+
dataIndex: "goodsShortName",
|
|
779
850
|
title: "\u5546\u54C1\u7B80\u79F0",
|
|
780
|
-
align:
|
|
851
|
+
align: "center",
|
|
781
852
|
ellipsis: true,
|
|
782
853
|
width: 100
|
|
783
854
|
}, {
|
|
784
|
-
dataIndex:
|
|
855
|
+
dataIndex: "picPath",
|
|
785
856
|
title: "\u5546\u54C1\u56FE\u7247",
|
|
786
|
-
align:
|
|
857
|
+
align: "center",
|
|
787
858
|
ellipsis: true,
|
|
788
859
|
width: 100,
|
|
789
860
|
render: function render(val) {
|
|
@@ -793,105 +864,105 @@ export var BsGoodsTable = function BsGoodsTable(_ref11) {
|
|
|
793
864
|
});
|
|
794
865
|
}
|
|
795
866
|
}, {
|
|
796
|
-
dataIndex:
|
|
867
|
+
dataIndex: "goodsSn",
|
|
797
868
|
title: "\u8D27\u53F7",
|
|
798
|
-
align:
|
|
869
|
+
align: "center",
|
|
799
870
|
ellipsis: true,
|
|
800
871
|
width: 150
|
|
801
872
|
}, {
|
|
802
|
-
dataIndex:
|
|
873
|
+
dataIndex: "goodsId",
|
|
803
874
|
title: "\u8D27\u53F7ID",
|
|
804
|
-
align:
|
|
875
|
+
align: "center",
|
|
805
876
|
ellipsis: true,
|
|
806
877
|
width: 150
|
|
807
878
|
}, {
|
|
808
|
-
dataIndex:
|
|
879
|
+
dataIndex: "colorName",
|
|
809
880
|
title: "\u989C\u8272\u540D\u79F0",
|
|
810
|
-
align:
|
|
881
|
+
align: "center",
|
|
811
882
|
ellipsis: true,
|
|
812
883
|
width: 100
|
|
813
884
|
}, {
|
|
814
|
-
dataIndex:
|
|
885
|
+
dataIndex: "colorCode",
|
|
815
886
|
title: "\u989C\u8272\u4EE3\u7801",
|
|
816
|
-
align:
|
|
887
|
+
align: "center",
|
|
817
888
|
ellipsis: true,
|
|
818
889
|
width: 150
|
|
819
890
|
}, {
|
|
820
|
-
dataIndex:
|
|
891
|
+
dataIndex: "sizeName",
|
|
821
892
|
title: "\u5C3A\u7801\u540D\u79F0",
|
|
822
|
-
align:
|
|
893
|
+
align: "center",
|
|
823
894
|
ellipsis: true,
|
|
824
895
|
width: 100
|
|
825
896
|
}, {
|
|
826
|
-
dataIndex:
|
|
897
|
+
dataIndex: "sizeCode",
|
|
827
898
|
title: "\u5C3A\u7801\u4EE3\u7801",
|
|
828
|
-
align:
|
|
899
|
+
align: "center",
|
|
829
900
|
ellipsis: true,
|
|
830
901
|
width: 100
|
|
831
902
|
}, {
|
|
832
|
-
dataIndex:
|
|
903
|
+
dataIndex: "brandName",
|
|
833
904
|
title: "\u54C1\u724C\u540D\u79F0",
|
|
834
|
-
align:
|
|
905
|
+
align: "center",
|
|
835
906
|
ellipsis: true,
|
|
836
907
|
width: 150
|
|
837
908
|
}, {
|
|
838
|
-
dataIndex:
|
|
909
|
+
dataIndex: "goodsNumber",
|
|
839
910
|
title: "\u5546\u54C1\u6570\u91CF",
|
|
840
|
-
align:
|
|
911
|
+
align: "center",
|
|
841
912
|
ellipsis: true,
|
|
842
913
|
width: 100
|
|
843
914
|
}, {
|
|
844
|
-
dataIndex:
|
|
915
|
+
dataIndex: "goodsPrice",
|
|
845
916
|
title: "\u5546\u54C1\u5355\u4EF7",
|
|
846
|
-
align:
|
|
917
|
+
align: "center",
|
|
847
918
|
ellipsis: true,
|
|
848
919
|
width: 120
|
|
849
920
|
}, {
|
|
850
|
-
dataIndex:
|
|
921
|
+
dataIndex: "shopPrice",
|
|
851
922
|
title: "\u5546\u54C1\u7F51\u5E97\u552E\u4EF7",
|
|
852
|
-
align:
|
|
923
|
+
align: "center",
|
|
853
924
|
ellipsis: true,
|
|
854
925
|
width: 120
|
|
855
926
|
}, {
|
|
856
|
-
dataIndex:
|
|
927
|
+
dataIndex: "sharePrice",
|
|
857
928
|
title: "\u5206\u644A\u4EF7",
|
|
858
|
-
align:
|
|
929
|
+
align: "center",
|
|
859
930
|
ellipsis: true,
|
|
860
931
|
width: 120
|
|
861
932
|
}, {
|
|
862
|
-
dataIndex:
|
|
933
|
+
dataIndex: "sharePayment",
|
|
863
934
|
title: "\u5206\u644A\u5B9E\u4ED8\u91D1\u989D",
|
|
864
|
-
align:
|
|
935
|
+
align: "center",
|
|
865
936
|
ellipsis: true,
|
|
866
937
|
width: 120
|
|
867
938
|
}, {
|
|
868
|
-
dataIndex:
|
|
939
|
+
dataIndex: "payment",
|
|
869
940
|
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
870
|
-
align:
|
|
941
|
+
align: "center",
|
|
871
942
|
ellipsis: true,
|
|
872
943
|
width: 120
|
|
873
944
|
}, {
|
|
874
|
-
dataIndex:
|
|
945
|
+
dataIndex: "tcSku",
|
|
875
946
|
title: "\u5957\u9910SKU",
|
|
876
|
-
align:
|
|
947
|
+
align: "center",
|
|
877
948
|
ellipsis: true,
|
|
878
949
|
width: 150
|
|
879
950
|
}, {
|
|
880
|
-
dataIndex:
|
|
951
|
+
dataIndex: "tcGoodsNumber",
|
|
881
952
|
title: "\u5957\u9910\u5957\u6570",
|
|
882
|
-
align:
|
|
953
|
+
align: "center",
|
|
883
954
|
ellipsis: true,
|
|
884
955
|
width: 100
|
|
885
956
|
}, {
|
|
886
|
-
dataIndex:
|
|
957
|
+
dataIndex: "taoCanSingleSl",
|
|
887
958
|
title: "\u5355\u4E2A\u5957\u9910\u6570\u91CF",
|
|
888
|
-
align:
|
|
959
|
+
align: "center",
|
|
889
960
|
ellipsis: true,
|
|
890
961
|
width: 100
|
|
891
962
|
}, {
|
|
892
|
-
dataIndex:
|
|
963
|
+
dataIndex: "isGift",
|
|
893
964
|
title: "\u662F\u5426\u8D60\u54C1",
|
|
894
|
-
align:
|
|
965
|
+
align: "center",
|
|
895
966
|
ellipsis: true,
|
|
896
967
|
width: 100,
|
|
897
968
|
render: function render(val) {
|
|
@@ -900,35 +971,116 @@ export var BsGoodsTable = function BsGoodsTable(_ref11) {
|
|
|
900
971
|
}];
|
|
901
972
|
}
|
|
902
973
|
break;
|
|
974
|
+
case "BS_GOODS":
|
|
975
|
+
columns = [{
|
|
976
|
+
dataIndex: "mark",
|
|
977
|
+
title: "\u5546\u54C1\u6807\u8BB0",
|
|
978
|
+
align: "center",
|
|
979
|
+
ellipsis: true,
|
|
980
|
+
width: 100
|
|
981
|
+
}, {
|
|
982
|
+
dataIndex: "skuName",
|
|
983
|
+
title: "".concat(text, "sku\u540D\u79F0"),
|
|
984
|
+
align: "center",
|
|
985
|
+
ellipsis: true,
|
|
986
|
+
width: 200
|
|
987
|
+
}, {
|
|
988
|
+
dataIndex: "sku",
|
|
989
|
+
title: "".concat(text, "sku\u7F16\u7801"),
|
|
990
|
+
align: "center",
|
|
991
|
+
ellipsis: true,
|
|
992
|
+
width: 100
|
|
993
|
+
}, {
|
|
994
|
+
dataIndex: "name",
|
|
995
|
+
title: "".concat(text, "\u540D\u79F0"),
|
|
996
|
+
align: "center",
|
|
997
|
+
ellipsis: true,
|
|
998
|
+
width: 200
|
|
999
|
+
}, {
|
|
1000
|
+
dataIndex: "pic",
|
|
1001
|
+
title: "\u56FE\u7247",
|
|
1002
|
+
align: "center",
|
|
1003
|
+
ellipsis: true,
|
|
1004
|
+
width: 100,
|
|
1005
|
+
render: function render(val) {
|
|
1006
|
+
return /*#__PURE__*/React.createElement(Image, {
|
|
1007
|
+
width: 60,
|
|
1008
|
+
src: val
|
|
1009
|
+
});
|
|
1010
|
+
}
|
|
1011
|
+
}, {
|
|
1012
|
+
dataIndex: "code",
|
|
1013
|
+
title: "".concat(text, "\u7F16\u7801"),
|
|
1014
|
+
align: "center",
|
|
1015
|
+
ellipsis: true,
|
|
1016
|
+
width: 100
|
|
1017
|
+
}, {
|
|
1018
|
+
dataIndex: "money",
|
|
1019
|
+
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
1020
|
+
align: "center",
|
|
1021
|
+
ellipsis: true,
|
|
1022
|
+
width: 100
|
|
1023
|
+
}, {
|
|
1024
|
+
dataIndex: "number",
|
|
1025
|
+
title: "".concat(text, "\u6570\u91CF"),
|
|
1026
|
+
align: "center",
|
|
1027
|
+
ellipsis: true,
|
|
1028
|
+
width: 100
|
|
1029
|
+
}, {
|
|
1030
|
+
dataIndex: "share",
|
|
1031
|
+
title: "\u5206\u644A\u4EF7",
|
|
1032
|
+
align: "center",
|
|
1033
|
+
ellipsis: true,
|
|
1034
|
+
width: 70
|
|
1035
|
+
}, {
|
|
1036
|
+
dataIndex: "type",
|
|
1037
|
+
title: "\u8D60\u54C1\u7C7B\u578B",
|
|
1038
|
+
align: "center",
|
|
1039
|
+
ellipsis: true,
|
|
1040
|
+
width: 100
|
|
1041
|
+
}, {
|
|
1042
|
+
dataIndex: "batch",
|
|
1043
|
+
title: "\u6279\u6B21\u53F7",
|
|
1044
|
+
align: "center",
|
|
1045
|
+
ellipsis: true,
|
|
1046
|
+
width: 100
|
|
1047
|
+
}, {
|
|
1048
|
+
dataIndex: "expireDate",
|
|
1049
|
+
title: "\u6709\u6548\u671F",
|
|
1050
|
+
align: "center",
|
|
1051
|
+
ellipsis: true,
|
|
1052
|
+
width: 100
|
|
1053
|
+
}];
|
|
1054
|
+
break;
|
|
903
1055
|
default:
|
|
904
1056
|
columns = [{
|
|
905
|
-
dataIndex:
|
|
1057
|
+
dataIndex: "mark",
|
|
906
1058
|
title: "\u5546\u54C1\u6807\u8BB0",
|
|
907
|
-
align:
|
|
1059
|
+
align: "center",
|
|
908
1060
|
ellipsis: true,
|
|
909
1061
|
width: 100
|
|
910
1062
|
}, {
|
|
911
|
-
dataIndex:
|
|
1063
|
+
dataIndex: "skuName",
|
|
912
1064
|
title: "".concat(text, "sku\u540D\u79F0"),
|
|
913
|
-
align:
|
|
1065
|
+
align: "center",
|
|
914
1066
|
ellipsis: true,
|
|
915
1067
|
width: 200
|
|
916
1068
|
}, {
|
|
917
|
-
dataIndex:
|
|
1069
|
+
dataIndex: "sku",
|
|
918
1070
|
title: "".concat(text, "sku\u7F16\u7801"),
|
|
919
|
-
align:
|
|
1071
|
+
align: "center",
|
|
920
1072
|
ellipsis: true,
|
|
921
1073
|
width: 100
|
|
922
1074
|
}, {
|
|
923
|
-
dataIndex:
|
|
1075
|
+
dataIndex: "name",
|
|
924
1076
|
title: "".concat(text, "\u540D\u79F0"),
|
|
925
|
-
align:
|
|
1077
|
+
align: "center",
|
|
926
1078
|
ellipsis: true,
|
|
927
1079
|
width: 200
|
|
928
1080
|
}, {
|
|
929
|
-
dataIndex:
|
|
1081
|
+
dataIndex: "pic",
|
|
930
1082
|
title: "\u56FE\u7247",
|
|
931
|
-
align:
|
|
1083
|
+
align: "center",
|
|
932
1084
|
ellipsis: true,
|
|
933
1085
|
width: 100,
|
|
934
1086
|
render: function render(val) {
|
|
@@ -938,33 +1090,33 @@ export var BsGoodsTable = function BsGoodsTable(_ref11) {
|
|
|
938
1090
|
});
|
|
939
1091
|
}
|
|
940
1092
|
}, {
|
|
941
|
-
dataIndex:
|
|
1093
|
+
dataIndex: "code",
|
|
942
1094
|
title: "".concat(text, "\u7F16\u7801"),
|
|
943
|
-
align:
|
|
1095
|
+
align: "center",
|
|
944
1096
|
ellipsis: true,
|
|
945
1097
|
width: 100
|
|
946
1098
|
}, {
|
|
947
|
-
dataIndex:
|
|
1099
|
+
dataIndex: "money",
|
|
948
1100
|
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
949
|
-
align:
|
|
1101
|
+
align: "center",
|
|
950
1102
|
ellipsis: true,
|
|
951
1103
|
width: 100
|
|
952
1104
|
}, {
|
|
953
|
-
dataIndex:
|
|
1105
|
+
dataIndex: "number",
|
|
954
1106
|
title: "".concat(text, "\u6570\u91CF"),
|
|
955
|
-
align:
|
|
1107
|
+
align: "center",
|
|
956
1108
|
ellipsis: true,
|
|
957
1109
|
width: 100
|
|
958
1110
|
}, {
|
|
959
|
-
dataIndex:
|
|
1111
|
+
dataIndex: "share",
|
|
960
1112
|
title: "\u5206\u644A\u4EF7",
|
|
961
|
-
align:
|
|
1113
|
+
align: "center",
|
|
962
1114
|
ellipsis: true,
|
|
963
1115
|
width: 70
|
|
964
1116
|
}, {
|
|
965
|
-
dataIndex:
|
|
1117
|
+
dataIndex: "type",
|
|
966
1118
|
title: "\u8D60\u54C1\u7C7B\u578B",
|
|
967
|
-
align:
|
|
1119
|
+
align: "center",
|
|
968
1120
|
ellipsis: true,
|
|
969
1121
|
width: 100
|
|
970
1122
|
}];
|
|
@@ -974,7 +1126,7 @@ export var BsGoodsTable = function BsGoodsTable(_ref11) {
|
|
|
974
1126
|
};
|
|
975
1127
|
//商品信息
|
|
976
1128
|
var GOODS_INFO_COLUMNS = function GOODS_INFO_COLUMNS() {
|
|
977
|
-
var text = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] :
|
|
1129
|
+
var text = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
|
|
978
1130
|
var COLUMNS_INFO = COLUMNS_MAP(text);
|
|
979
1131
|
return COLUMNS_INFO(type);
|
|
980
1132
|
};
|
|
@@ -982,31 +1134,47 @@ export var BsGoodsTable = function BsGoodsTable(_ref11) {
|
|
|
982
1134
|
// return
|
|
983
1135
|
// }
|
|
984
1136
|
var newColumns = useMemo(function () {
|
|
1137
|
+
var initBaseInfoColumns = GOODS_INFO_COLUMNS();
|
|
1138
|
+
var baseInfoColumns = [];
|
|
1139
|
+
var isStringArray = Array.isArray(showHeader) && typeof showHeader[0] === "string";
|
|
1140
|
+
var isObjectArray = Array.isArray(showHeader) && Object.prototype.toString.call(showHeader[0]) === "[object Object]";
|
|
1141
|
+
if (isStringArray) {
|
|
1142
|
+
baseInfoColumns = initBaseInfoColumns.filter(function (col) {
|
|
1143
|
+
return showHeader.includes(col.dataIndex);
|
|
1144
|
+
});
|
|
1145
|
+
} else if (isObjectArray) {
|
|
1146
|
+
baseInfoColumns = showHeader.filter(function (col) {
|
|
1147
|
+
return col.show !== false;
|
|
1148
|
+
}).map(function (col) {
|
|
1149
|
+
var currentCol = initBaseInfoColumns.find(function (item) {
|
|
1150
|
+
return item.dataIndex === col.dataIndex;
|
|
1151
|
+
});
|
|
1152
|
+
return currentCol ? currentCol : undefined;
|
|
1153
|
+
}).filter(Boolean);
|
|
1154
|
+
}
|
|
985
1155
|
var columnList = [{
|
|
986
|
-
dataIndex:
|
|
987
|
-
title:
|
|
988
|
-
align:
|
|
1156
|
+
dataIndex: "",
|
|
1157
|
+
title: "序号",
|
|
1158
|
+
align: "center",
|
|
989
1159
|
ellipsis: true,
|
|
990
1160
|
width: 50,
|
|
991
1161
|
render: function render(val, record, index) {
|
|
992
1162
|
return /*#__PURE__*/React.createElement("span", null, index + 1);
|
|
993
1163
|
}
|
|
994
|
-
}].concat(_toConsumableArray(
|
|
995
|
-
return showHeader.includes(t === null || t === void 0 ? void 0 : t.dataIndex);
|
|
996
|
-
})));
|
|
1164
|
+
}].concat(_toConsumableArray(baseInfoColumns));
|
|
997
1165
|
return columnList;
|
|
998
1166
|
}, [showHeader, list]);
|
|
999
1167
|
return /*#__PURE__*/React.createElement(Table, {
|
|
1000
1168
|
columns: newColumns,
|
|
1001
1169
|
dataSource: list,
|
|
1002
|
-
rowKey:
|
|
1170
|
+
rowKey: "uuid",
|
|
1003
1171
|
size: "small",
|
|
1004
1172
|
pagination: false,
|
|
1005
1173
|
scroll: {
|
|
1006
|
-
x:
|
|
1174
|
+
x: "100%"
|
|
1007
1175
|
},
|
|
1008
1176
|
locale: {
|
|
1009
|
-
emptyText:
|
|
1177
|
+
emptyText: "暂无数据"
|
|
1010
1178
|
}
|
|
1011
1179
|
});
|
|
1012
1180
|
};
|
|
@@ -1019,15 +1187,15 @@ export var FileRender = function FileRender(_ref12) {
|
|
|
1019
1187
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
1020
1188
|
visible = _useState4[0],
|
|
1021
1189
|
setVisible = _useState4[1];
|
|
1022
|
-
var _useState5 = useState(
|
|
1190
|
+
var _useState5 = useState(""),
|
|
1023
1191
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
1024
1192
|
fileUrl = _useState6[0],
|
|
1025
1193
|
setFileUrl = _useState6[1];
|
|
1026
|
-
var _useState7 = useState(
|
|
1194
|
+
var _useState7 = useState(""),
|
|
1027
1195
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
1028
1196
|
fileType = _useState8[0],
|
|
1029
1197
|
setFileType = _useState8[1];
|
|
1030
|
-
var _useState9 = useState(
|
|
1198
|
+
var _useState9 = useState(""),
|
|
1031
1199
|
_useState10 = _slicedToArray(_useState9, 2),
|
|
1032
1200
|
fileName = _useState10[0],
|
|
1033
1201
|
setFileName = _useState10[1];
|
|
@@ -1036,24 +1204,24 @@ export var FileRender = function FileRender(_ref12) {
|
|
|
1036
1204
|
downloading = _useState12[0],
|
|
1037
1205
|
setDownloading = _useState12[1];
|
|
1038
1206
|
var handleCancel = function handleCancel() {
|
|
1039
|
-
setFileUrl(
|
|
1040
|
-
setFileName(
|
|
1207
|
+
setFileUrl("");
|
|
1208
|
+
setFileName("");
|
|
1041
1209
|
setVisible(false);
|
|
1042
1210
|
setDownloading(false);
|
|
1043
1211
|
};
|
|
1044
1212
|
var onPreview = function onPreview(file) {
|
|
1045
1213
|
var _file$url;
|
|
1046
|
-
var fileArr = file === null || file === void 0 ? void 0 : (_file$url = file.url) === null || _file$url === void 0 ? void 0 : _file$url.split(
|
|
1214
|
+
var fileArr = file === null || file === void 0 ? void 0 : (_file$url = file.url) === null || _file$url === void 0 ? void 0 : _file$url.split(".");
|
|
1047
1215
|
var fileType = fileArr[fileArr.length - 1];
|
|
1048
|
-
if ([
|
|
1216
|
+
if (["png", "jpg", "jpeg", "gif", "bmp", "svg"].includes(fileType.toLowerCase())) {
|
|
1049
1217
|
setFileUrl(file === null || file === void 0 ? void 0 : file.url);
|
|
1050
1218
|
setFileName(file === null || file === void 0 ? void 0 : file.name);
|
|
1051
|
-
setFileType(
|
|
1219
|
+
setFileType("pic");
|
|
1052
1220
|
setVisible(true);
|
|
1053
|
-
} else if ([
|
|
1221
|
+
} else if (["mp4", "avi", "mpeg", "asf", "mov", "3gp", "wmv", "rmvb"].includes(fileType.toLowerCase())) {
|
|
1054
1222
|
setFileUrl(file === null || file === void 0 ? void 0 : file.url);
|
|
1055
1223
|
setFileName(file === null || file === void 0 ? void 0 : file.name);
|
|
1056
|
-
setFileType(
|
|
1224
|
+
setFileType("video");
|
|
1057
1225
|
setVisible(true);
|
|
1058
1226
|
} else {
|
|
1059
1227
|
window.open(file === null || file === void 0 ? void 0 : file.url);
|
|
@@ -1064,9 +1232,9 @@ export var FileRender = function FileRender(_ref12) {
|
|
|
1064
1232
|
fetch(url).then(function (res) {
|
|
1065
1233
|
return res.blob();
|
|
1066
1234
|
}).then(function (blob) {
|
|
1067
|
-
var a = document.createElement(
|
|
1235
|
+
var a = document.createElement("a");
|
|
1068
1236
|
document.body.appendChild(a);
|
|
1069
|
-
a.style.display =
|
|
1237
|
+
a.style.display = "none";
|
|
1070
1238
|
var url = window.URL.createObjectURL(blob);
|
|
1071
1239
|
a.href = url;
|
|
1072
1240
|
a.download = name;
|
|
@@ -1080,9 +1248,9 @@ export var FileRender = function FileRender(_ref12) {
|
|
|
1080
1248
|
return /*#__PURE__*/React.createElement(React.Fragment, null, fileList.map(function (item) {
|
|
1081
1249
|
return /*#__PURE__*/React.createElement("a", {
|
|
1082
1250
|
style: {
|
|
1083
|
-
color:
|
|
1084
|
-
cursor:
|
|
1085
|
-
display:
|
|
1251
|
+
color: "#1890ff",
|
|
1252
|
+
cursor: "pointer",
|
|
1253
|
+
display: "block"
|
|
1086
1254
|
},
|
|
1087
1255
|
onClick: function onClick(e) {
|
|
1088
1256
|
e.preventDefault();
|
|
@@ -1104,20 +1272,20 @@ export var FileRender = function FileRender(_ref12) {
|
|
|
1104
1272
|
}, "\u4E0B\u8F7D") : /*#__PURE__*/React.createElement(CopyToClipboard, {
|
|
1105
1273
|
text: fileUrl,
|
|
1106
1274
|
onCopy: function onCopy() {
|
|
1107
|
-
message.success(
|
|
1275
|
+
message.success("复制成功");
|
|
1108
1276
|
}
|
|
1109
1277
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
1110
1278
|
type: "link"
|
|
1111
|
-
}, "\u4E0B\u8F7D\u5730\u5740")), fileType ===
|
|
1279
|
+
}, "\u4E0B\u8F7D\u5730\u5740")), fileType === "pic" ? /*#__PURE__*/React.createElement("img", {
|
|
1112
1280
|
alt: "example",
|
|
1113
1281
|
style: {
|
|
1114
|
-
width:
|
|
1282
|
+
width: "100%"
|
|
1115
1283
|
},
|
|
1116
1284
|
src: fileUrl
|
|
1117
1285
|
}) : /*#__PURE__*/React.createElement("video", {
|
|
1118
1286
|
style: {
|
|
1119
|
-
width:
|
|
1120
|
-
height:
|
|
1287
|
+
width: "100%",
|
|
1288
|
+
height: "100%"
|
|
1121
1289
|
},
|
|
1122
1290
|
autoPlay: true,
|
|
1123
1291
|
controls: true,
|
|
@@ -1129,20 +1297,20 @@ export var BsSystemOrderTable = function BsSystemOrderTable(_ref13) {
|
|
|
1129
1297
|
type = _ref13.type;
|
|
1130
1298
|
var columnMap = {
|
|
1131
1299
|
BS_SYSTEM_ORDER: [{
|
|
1132
|
-
dataIndex:
|
|
1133
|
-
title:
|
|
1300
|
+
dataIndex: "billType",
|
|
1301
|
+
title: "订单类型"
|
|
1134
1302
|
}, {
|
|
1135
|
-
dataIndex:
|
|
1136
|
-
title:
|
|
1303
|
+
dataIndex: "billNo",
|
|
1304
|
+
title: "系统订单号"
|
|
1137
1305
|
}, {
|
|
1138
|
-
dataIndex:
|
|
1139
|
-
title:
|
|
1306
|
+
dataIndex: "billTag",
|
|
1307
|
+
title: "标签"
|
|
1140
1308
|
}, {
|
|
1141
|
-
title:
|
|
1142
|
-
dataIndex:
|
|
1309
|
+
title: "主播名称",
|
|
1310
|
+
dataIndex: "authorName"
|
|
1143
1311
|
}, {
|
|
1144
|
-
title:
|
|
1145
|
-
dataIndex:
|
|
1312
|
+
title: "主播ID",
|
|
1313
|
+
dataIndex: "authorId"
|
|
1146
1314
|
}
|
|
1147
1315
|
// {
|
|
1148
1316
|
// title: '直播活动',
|
|
@@ -1152,24 +1320,24 @@ export var BsSystemOrderTable = function BsSystemOrderTable(_ref13) {
|
|
|
1152
1320
|
|
|
1153
1321
|
KM_SYSTEM_ORDER: KM_SYSTEM_ORDER_CONFIG.columns,
|
|
1154
1322
|
WLN_SYSTEM_ORDER: [{
|
|
1155
|
-
dataIndex:
|
|
1156
|
-
title:
|
|
1323
|
+
dataIndex: "billType",
|
|
1324
|
+
title: "单据类型"
|
|
1157
1325
|
}, {
|
|
1158
|
-
dataIndex:
|
|
1159
|
-
title:
|
|
1326
|
+
dataIndex: "billNo",
|
|
1327
|
+
title: "系统订单号"
|
|
1160
1328
|
}, {
|
|
1161
|
-
dataIndex:
|
|
1162
|
-
title:
|
|
1329
|
+
dataIndex: "billTag",
|
|
1330
|
+
title: "标签"
|
|
1163
1331
|
}],
|
|
1164
1332
|
WDT_SYSTEM_ORDER: [{
|
|
1165
|
-
dataIndex:
|
|
1166
|
-
title:
|
|
1333
|
+
dataIndex: "billType",
|
|
1334
|
+
title: "订单类型"
|
|
1167
1335
|
}, {
|
|
1168
|
-
dataIndex:
|
|
1169
|
-
title:
|
|
1336
|
+
dataIndex: "billNo",
|
|
1337
|
+
title: "系统订单号"
|
|
1170
1338
|
}, {
|
|
1171
|
-
dataIndex:
|
|
1172
|
-
title:
|
|
1339
|
+
dataIndex: "billTag",
|
|
1340
|
+
title: "订单标签"
|
|
1173
1341
|
}],
|
|
1174
1342
|
BS_E3_SYSTEM_ORDER: [{
|
|
1175
1343
|
title: "系统订单号",
|
|
@@ -1240,16 +1408,16 @@ export var BsSystemOrderTable = function BsSystemOrderTable(_ref13) {
|
|
|
1240
1408
|
}]
|
|
1241
1409
|
};
|
|
1242
1410
|
var rowKeyMap = {
|
|
1243
|
-
BS_SYSTEM_ORDER:
|
|
1244
|
-
KM_SYSTEM_ORDER:
|
|
1245
|
-
WLN_SYSTEM_ORDER:
|
|
1246
|
-
WDT_SYSTEM_ORDER:
|
|
1247
|
-
BS_E3_SYSTEM_ORDER:
|
|
1411
|
+
BS_SYSTEM_ORDER: "billNo",
|
|
1412
|
+
KM_SYSTEM_ORDER: "billNo",
|
|
1413
|
+
WLN_SYSTEM_ORDER: "billNo",
|
|
1414
|
+
WDT_SYSTEM_ORDER: "billNo",
|
|
1415
|
+
BS_E3_SYSTEM_ORDER: "orderSn"
|
|
1248
1416
|
};
|
|
1249
1417
|
var rowSelection = {
|
|
1250
1418
|
selectedRowKeys: (value === null || value === void 0 ? void 0 : value.selectIds) || ((value === null || value === void 0 ? void 0 : value.showOrderInfo) || []).reduce(function (prv, next) {
|
|
1251
1419
|
if (next.select) {
|
|
1252
|
-
prv.push(next[rowKeyMap[type]] ||
|
|
1420
|
+
prv.push(next[rowKeyMap[type]] || "billNo");
|
|
1253
1421
|
}
|
|
1254
1422
|
return prv;
|
|
1255
1423
|
}, []),
|
|
@@ -1265,14 +1433,14 @@ export var BsSystemOrderTable = function BsSystemOrderTable(_ref13) {
|
|
|
1265
1433
|
dataSource: (value === null || value === void 0 ? void 0 : value.showOrderInfo) || [],
|
|
1266
1434
|
columns: columnMap[type] || [],
|
|
1267
1435
|
rowSelection: rowSelection,
|
|
1268
|
-
rowKey: rowKeyMap[type] ||
|
|
1436
|
+
rowKey: rowKeyMap[type] || "billNo",
|
|
1269
1437
|
size: "small",
|
|
1270
1438
|
pagination: false,
|
|
1271
1439
|
scroll: {
|
|
1272
|
-
x:
|
|
1440
|
+
x: "100%"
|
|
1273
1441
|
},
|
|
1274
1442
|
locale: {
|
|
1275
|
-
emptyText:
|
|
1443
|
+
emptyText: "暂无数据"
|
|
1276
1444
|
}
|
|
1277
1445
|
});
|
|
1278
1446
|
};
|
|
@@ -1292,20 +1460,20 @@ export var MsgContent = function MsgContent(_ref14) {
|
|
|
1292
1460
|
_ref14$options = _ref14.options,
|
|
1293
1461
|
options = _ref14$options === void 0 ? [] : _ref14$options;
|
|
1294
1462
|
var msgTypeCh = {
|
|
1295
|
-
pdd:
|
|
1296
|
-
ding:
|
|
1297
|
-
wechat:
|
|
1298
|
-
qq:
|
|
1299
|
-
qywx:
|
|
1300
|
-
YZDKH:
|
|
1301
|
-
YT:
|
|
1302
|
-
feishu:
|
|
1463
|
+
pdd: "拼多多",
|
|
1464
|
+
ding: "钉钉",
|
|
1465
|
+
wechat: "微信",
|
|
1466
|
+
qq: "QQ",
|
|
1467
|
+
qywx: "企业微信",
|
|
1468
|
+
YZDKH: "邮政拦截",
|
|
1469
|
+
YT: "圆通拦截",
|
|
1470
|
+
feishu: "飞书"
|
|
1303
1471
|
};
|
|
1304
1472
|
var getColorByStatus = function getColorByStatus(value) {
|
|
1305
1473
|
var _options$find2;
|
|
1306
1474
|
return ((_options$find2 = options.find(function (innerItem) {
|
|
1307
1475
|
return value === innerItem.label || value === innerItem.oldValue;
|
|
1308
|
-
})) === null || _options$find2 === void 0 ? void 0 : _options$find2.color) ||
|
|
1476
|
+
})) === null || _options$find2 === void 0 ? void 0 : _options$find2.color) || "#000";
|
|
1309
1477
|
};
|
|
1310
1478
|
var detailContent = function detailContent(item) {
|
|
1311
1479
|
var _item$msgReceivers;
|
|
@@ -1327,14 +1495,14 @@ export var MsgContent = function MsgContent(_ref14) {
|
|
|
1327
1495
|
}, "\u5931\u8D25\u539F\u56E0\uFF1A", item.failReason)));
|
|
1328
1496
|
};
|
|
1329
1497
|
return /*#__PURE__*/React.createElement(Space, {
|
|
1330
|
-
direction: !horizontal ?
|
|
1498
|
+
direction: !horizontal ? "vertical" : "horizontal"
|
|
1331
1499
|
}, Array.isArray(list) ? (list || []).map(function (item, index) {
|
|
1332
1500
|
var _item$msgReceivers2;
|
|
1333
1501
|
var color = getColorByStatus(item[valueKey]);
|
|
1334
1502
|
var currentOption = options.find(function (option) {
|
|
1335
1503
|
return item[valueKey] === option.value;
|
|
1336
1504
|
});
|
|
1337
|
-
var key = item.msgType ||
|
|
1505
|
+
var key = item.msgType || "ding";
|
|
1338
1506
|
var formatMsgContent = /*#__PURE__*/React.createElement("span", {
|
|
1339
1507
|
key: index
|
|
1340
1508
|
}, msgTypeCh[key] || key, "-", item.ruleName, "-", currentOption ? currentOption.label : (item === null || item === void 0 ? void 0 : item[valueKey]) || "");
|
|
@@ -1362,7 +1530,7 @@ export var AlipayBill = function AlipayBill(props) {
|
|
|
1362
1530
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
1363
1531
|
visible = _useState14[0],
|
|
1364
1532
|
setVisible = _useState14[1];
|
|
1365
|
-
var _useState15 = useState(
|
|
1533
|
+
var _useState15 = useState(""),
|
|
1366
1534
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
1367
1535
|
msg = _useState16[0],
|
|
1368
1536
|
setMsg = _useState16[1];
|
|
@@ -1387,7 +1555,7 @@ export var AlipayBill = function AlipayBill(props) {
|
|
|
1387
1555
|
data = res.data, msg = res.message;
|
|
1388
1556
|
if (data) {
|
|
1389
1557
|
setHasUrl(true);
|
|
1390
|
-
if ([
|
|
1558
|
+
if (["fxg"].includes(platform)) {
|
|
1391
1559
|
setMsg(data);
|
|
1392
1560
|
setVisible(true);
|
|
1393
1561
|
} else {
|
|
@@ -1414,8 +1582,8 @@ export var AlipayBill = function AlipayBill(props) {
|
|
|
1414
1582
|
};
|
|
1415
1583
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("span", {
|
|
1416
1584
|
style: {
|
|
1417
|
-
color:
|
|
1418
|
-
cursor:
|
|
1585
|
+
color: "#1890ff",
|
|
1586
|
+
cursor: "pointer"
|
|
1419
1587
|
},
|
|
1420
1588
|
onClick: voucherHandle
|
|
1421
1589
|
}, value), /*#__PURE__*/React.createElement(Modal, {
|
|
@@ -1423,7 +1591,7 @@ export var AlipayBill = function AlipayBill(props) {
|
|
|
1423
1591
|
visible: visible,
|
|
1424
1592
|
footer: false,
|
|
1425
1593
|
onCancel: closeHandle
|
|
1426
|
-
}, [
|
|
1594
|
+
}, ["fxg"].includes(platform) && hasUrl ? /*#__PURE__*/React.createElement("div", null, "\u8BF7\u590D\u5236\u94FE\u63A5\u5728\u6D4F\u89C8\u5668\u4E0A\u6253\u5F00\uFF0C\u94FE\u63A5\uFF1A", /*#__PURE__*/React.createElement(Paragraph, {
|
|
1427
1595
|
copyable: true
|
|
1428
1596
|
}, msg)) : msg));
|
|
1429
1597
|
};
|