@kmkf-fe-packages/services-components 1.22.6 → 1.23.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.
- package/dist/esm/components/BS/BsGoods/index.js +1 -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 +166 -103
- 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 +443 -386
- package/dist/esm/components/CommonHeaderGood/index copy.d.ts +27 -0
- package/dist/esm/components/CommonHeaderGood/index copy.js +659 -0
- 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 +4 -4
- package/dist/esm/components/CommonMultiStatus/index.js +78 -74
- package/dist/esm/factory.d.ts +1 -1
- 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,
|
|
@@ -241,12 +280,12 @@ export var GoodImage = function GoodImage(_ref5) {
|
|
|
241
280
|
var content = function content(item, index) {
|
|
242
281
|
return /*#__PURE__*/React.createElement("div", {
|
|
243
282
|
style: {
|
|
244
|
-
maxHeight:
|
|
245
|
-
overflowY:
|
|
283
|
+
maxHeight: "300px",
|
|
284
|
+
overflowY: "auto"
|
|
246
285
|
}
|
|
247
286
|
}, /*#__PURE__*/React.createElement("div", {
|
|
248
287
|
style: {
|
|
249
|
-
textAlign:
|
|
288
|
+
textAlign: "center"
|
|
250
289
|
}
|
|
251
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) {
|
|
252
291
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -263,7 +302,7 @@ export var JstGoodImage = function JstGoodImage(_ref6) {
|
|
|
263
302
|
list = _ref6$list === void 0 ? [] : _ref6$list,
|
|
264
303
|
type = _ref6.type,
|
|
265
304
|
_ref6$platformType = _ref6.platformType,
|
|
266
|
-
platformType = _ref6$platformType === void 0 ?
|
|
305
|
+
platformType = _ref6$platformType === void 0 ? "default" : _ref6$platformType;
|
|
267
306
|
var getSendName = function getSendName(item) {
|
|
268
307
|
return SendDataCenter.getInstance(platformType).getSendNameByCode(item.sendName);
|
|
269
308
|
};
|
|
@@ -278,14 +317,14 @@ export var JstGoodImage = function JstGoodImage(_ref6) {
|
|
|
278
317
|
}, /*#__PURE__*/React.createElement("span", {
|
|
279
318
|
key: index,
|
|
280
319
|
style: {
|
|
281
|
-
color:
|
|
282
|
-
cursor:
|
|
320
|
+
color: "#1890ff",
|
|
321
|
+
cursor: "pointer"
|
|
283
322
|
}
|
|
284
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, {
|
|
285
324
|
text: item.logisticsCode
|
|
286
325
|
})) : company ? company : item.logisticsCode ? /*#__PURE__*/React.createElement(CopyText, {
|
|
287
326
|
text: item.logisticsCode
|
|
288
|
-
}) : 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));
|
|
289
328
|
}) : null;
|
|
290
329
|
};
|
|
291
330
|
export var BsExpressRender = function BsExpressRender(_ref7) {
|
|
@@ -306,10 +345,10 @@ export var BsExpressRender = function BsExpressRender(_ref7) {
|
|
|
306
345
|
}, /*#__PURE__*/React.createElement("span", {
|
|
307
346
|
key: index,
|
|
308
347
|
style: {
|
|
309
|
-
color:
|
|
310
|
-
cursor:
|
|
348
|
+
color: "#1890ff",
|
|
349
|
+
cursor: "pointer"
|
|
311
350
|
}
|
|
312
|
-
}, "\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, {
|
|
313
352
|
text: item.logisticsCode
|
|
314
353
|
}) : null) : null));
|
|
315
354
|
}) : null;
|
|
@@ -324,17 +363,19 @@ export var CommonOrderContent = function CommonOrderContent(_ref8) {
|
|
|
324
363
|
_ref8$isShowPopover = _ref8.isShowPopover,
|
|
325
364
|
isShowPopover = _ref8$isShowPopover === void 0 ? true : _ref8$isShowPopover;
|
|
326
365
|
var orderContent = function orderContent(item, index) {
|
|
366
|
+
var _item$platformId;
|
|
367
|
+
var leftText = item.platformId ? "平台售后单号" : "系统订单号" + (index + 1);
|
|
327
368
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
328
369
|
style: {
|
|
329
|
-
textAlign:
|
|
370
|
+
textAlign: "center"
|
|
330
371
|
}
|
|
331
|
-
}, "\
|
|
372
|
+
}, leftText, "\uFF1A", (_item$platformId = item.platformId) !== null && _item$platformId !== void 0 ? _item$platformId : item.systemOrderId));
|
|
332
373
|
};
|
|
333
374
|
return list !== null && list !== void 0 && list.length ? (list || []).map(function (item, index) {
|
|
334
375
|
var _options$find;
|
|
335
376
|
var color = ((_options$find = options.find(function (it) {
|
|
336
377
|
return item[valueKey] === it.value;
|
|
337
|
-
})) === null || _options$find === void 0 ? void 0 : _options$find.color) ||
|
|
378
|
+
})) === null || _options$find === void 0 ? void 0 : _options$find.color) || "#000";
|
|
338
379
|
var currentOption = options.find(function (option) {
|
|
339
380
|
return item[valueKey] === option.value;
|
|
340
381
|
});
|
|
@@ -346,14 +387,14 @@ export var CommonOrderContent = function CommonOrderContent(_ref8) {
|
|
|
346
387
|
}, /*#__PURE__*/React.createElement("span", {
|
|
347
388
|
key: index,
|
|
348
389
|
style: {
|
|
349
|
-
color:
|
|
350
|
-
cursor:
|
|
390
|
+
color: "#1890ff",
|
|
391
|
+
cursor: "pointer"
|
|
351
392
|
}
|
|
352
|
-
}, "
|
|
393
|
+
}, "".concat(item.platformId ? "平台售后单号" : "系统订单号" + (index + 1)), ":")) : null, /*#__PURE__*/React.createElement("span", {
|
|
353
394
|
style: {
|
|
354
395
|
color: color
|
|
355
396
|
}
|
|
356
|
-
}, currentOption ? currentOption.label : (item === null || item === void 0 ? void 0 : item[valueKey]) ||
|
|
397
|
+
}, 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", {
|
|
357
398
|
className: "c-red"
|
|
358
399
|
}, item.reason));
|
|
359
400
|
}) : null;
|
|
@@ -365,22 +406,22 @@ export var BsGoodImage = function BsGoodImage(_ref9) {
|
|
|
365
406
|
index = _ref9.index;
|
|
366
407
|
var picUrl = item.picUrl || defaultImg;
|
|
367
408
|
var keyMap = {
|
|
368
|
-
name:
|
|
369
|
-
code:
|
|
370
|
-
skuId:
|
|
371
|
-
money:
|
|
372
|
-
number:
|
|
373
|
-
share:
|
|
374
|
-
type:
|
|
409
|
+
name: "bs名称",
|
|
410
|
+
code: "bs编码",
|
|
411
|
+
skuId: "bssku编码",
|
|
412
|
+
money: "bs实付金额",
|
|
413
|
+
number: "bs数量",
|
|
414
|
+
share: "bs分摊价",
|
|
415
|
+
type: "bs赠品类型"
|
|
375
416
|
};
|
|
376
417
|
return /*#__PURE__*/React.createElement("div", {
|
|
377
418
|
className: styles.goodImgBox,
|
|
378
419
|
key: index
|
|
379
420
|
}, /*#__PURE__*/React.createElement("img", {
|
|
380
421
|
style: {
|
|
381
|
-
width:
|
|
382
|
-
height:
|
|
383
|
-
objectFit:
|
|
422
|
+
width: "40px",
|
|
423
|
+
height: "40px",
|
|
424
|
+
objectFit: "contain"
|
|
384
425
|
},
|
|
385
426
|
src: picUrl
|
|
386
427
|
}), /*#__PURE__*/React.createElement("div", {
|
|
@@ -402,11 +443,11 @@ export var BsExchangeList = function BsExchangeList(_ref10) {
|
|
|
402
443
|
return /*#__PURE__*/React.createElement(React.Fragment, null, BsGoodsTable({
|
|
403
444
|
list: (item === null || item === void 0 ? void 0 : item.bsExchangeReturnGoods) || [],
|
|
404
445
|
showHeader: showHeader,
|
|
405
|
-
text:
|
|
446
|
+
text: "退回"
|
|
406
447
|
}), BsGoodsTable({
|
|
407
448
|
list: item === null || item === void 0 ? void 0 : item.bsExchangeSwapOutGoods,
|
|
408
449
|
showHeader: showHeader,
|
|
409
|
-
text:
|
|
450
|
+
text: "换出"
|
|
410
451
|
}));
|
|
411
452
|
}));
|
|
412
453
|
};
|
|
@@ -423,31 +464,31 @@ export var BsGoodsTable = function BsGoodsTable(_ref11) {
|
|
|
423
464
|
var list = _ref11.list,
|
|
424
465
|
showHeader = _ref11.showHeader,
|
|
425
466
|
_ref11$text = _ref11.text,
|
|
426
|
-
text = _ref11$text === void 0 ?
|
|
467
|
+
text = _ref11$text === void 0 ? "" : _ref11$text,
|
|
427
468
|
type = _ref11.type;
|
|
428
469
|
//商品信息
|
|
429
470
|
var COLUMNS_MAP = function COLUMNS_MAP() {
|
|
430
|
-
var text = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] :
|
|
471
|
+
var text = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
|
|
431
472
|
return function (type) {
|
|
432
473
|
var columns = [];
|
|
433
474
|
switch (type) {
|
|
434
|
-
case
|
|
475
|
+
case "ITEM_ENCODE":
|
|
435
476
|
columns = [{
|
|
436
|
-
dataIndex:
|
|
437
|
-
title:
|
|
438
|
-
align:
|
|
477
|
+
dataIndex: "title",
|
|
478
|
+
title: "商品名称",
|
|
479
|
+
align: "center",
|
|
439
480
|
ellipsis: true,
|
|
440
481
|
width: 200
|
|
441
482
|
}, {
|
|
442
|
-
dataIndex:
|
|
443
|
-
title:
|
|
444
|
-
align:
|
|
483
|
+
dataIndex: "outerId",
|
|
484
|
+
title: "商品编码",
|
|
485
|
+
align: "center",
|
|
445
486
|
ellipsis: true,
|
|
446
487
|
width: 140
|
|
447
488
|
}, {
|
|
448
|
-
dataIndex:
|
|
449
|
-
title:
|
|
450
|
-
align:
|
|
489
|
+
dataIndex: "picUrl",
|
|
490
|
+
title: "图片",
|
|
491
|
+
align: "center",
|
|
451
492
|
ellipsis: true,
|
|
452
493
|
width: 100,
|
|
453
494
|
render: function render(val) {
|
|
@@ -457,73 +498,73 @@ export var BsGoodsTable = function BsGoodsTable(_ref11) {
|
|
|
457
498
|
});
|
|
458
499
|
}
|
|
459
500
|
}, {
|
|
460
|
-
dataIndex:
|
|
461
|
-
title:
|
|
462
|
-
align:
|
|
501
|
+
dataIndex: "numIid",
|
|
502
|
+
title: "商品id",
|
|
503
|
+
align: "center",
|
|
463
504
|
ellipsis: true,
|
|
464
505
|
width: 200
|
|
465
506
|
}, {
|
|
466
|
-
dataIndex:
|
|
467
|
-
title:
|
|
468
|
-
align:
|
|
507
|
+
dataIndex: "skuId",
|
|
508
|
+
title: "SKU ID",
|
|
509
|
+
align: "center",
|
|
469
510
|
ellipsis: true,
|
|
470
511
|
width: 200
|
|
471
512
|
}, {
|
|
472
|
-
dataIndex:
|
|
473
|
-
title:
|
|
474
|
-
align:
|
|
513
|
+
dataIndex: "outerSkuId",
|
|
514
|
+
title: "SKU 编码",
|
|
515
|
+
align: "center",
|
|
475
516
|
ellipsis: true,
|
|
476
517
|
width: 100
|
|
477
518
|
}, {
|
|
478
|
-
dataIndex:
|
|
479
|
-
title:
|
|
480
|
-
align:
|
|
519
|
+
dataIndex: "propertiesName",
|
|
520
|
+
title: "SKU 信息",
|
|
521
|
+
align: "center",
|
|
481
522
|
ellipsis: true,
|
|
482
523
|
width: 200
|
|
483
524
|
}];
|
|
484
525
|
break;
|
|
485
|
-
case
|
|
486
|
-
case
|
|
526
|
+
case "WDT_REISSUE_GOODS":
|
|
527
|
+
case "WDT_GOODS":
|
|
487
528
|
columns = [{
|
|
488
|
-
dataIndex:
|
|
529
|
+
dataIndex: "goodId",
|
|
489
530
|
title: "\u5546\u54C1ID",
|
|
490
|
-
align:
|
|
531
|
+
align: "center",
|
|
491
532
|
ellipsis: true,
|
|
492
533
|
width: 70
|
|
493
534
|
}, {
|
|
494
|
-
dataIndex:
|
|
535
|
+
dataIndex: "goodNo",
|
|
495
536
|
title: "\u5546\u54C1\u7F16\u7801",
|
|
496
|
-
align:
|
|
537
|
+
align: "center",
|
|
497
538
|
ellipsis: true,
|
|
498
539
|
width: 180
|
|
499
540
|
}, {
|
|
500
|
-
dataIndex:
|
|
541
|
+
dataIndex: "goodName",
|
|
501
542
|
title: "".concat(text, "\u5546\u54C1\u540D\u79F0"),
|
|
502
|
-
align:
|
|
543
|
+
align: "center",
|
|
503
544
|
ellipsis: true,
|
|
504
545
|
width: 250
|
|
505
546
|
}, {
|
|
506
|
-
dataIndex:
|
|
547
|
+
dataIndex: "specId",
|
|
507
548
|
title: "".concat(text, "SKUID"),
|
|
508
|
-
align:
|
|
549
|
+
align: "center",
|
|
509
550
|
ellipsis: true,
|
|
510
551
|
width: 100
|
|
511
552
|
}, {
|
|
512
|
-
dataIndex:
|
|
553
|
+
dataIndex: "specNo",
|
|
513
554
|
title: "".concat(text, "\u5546\u54C1SKU\u7F16\u7801"),
|
|
514
|
-
align:
|
|
555
|
+
align: "center",
|
|
515
556
|
ellipsis: true,
|
|
516
557
|
width: 180
|
|
517
558
|
}, {
|
|
518
|
-
dataIndex:
|
|
559
|
+
dataIndex: "specName",
|
|
519
560
|
title: "".concat(text, "\u5546\u54C1SKU\u540D\u79F0"),
|
|
520
|
-
align:
|
|
561
|
+
align: "center",
|
|
521
562
|
ellipsis: true,
|
|
522
563
|
width: 250
|
|
523
564
|
}, {
|
|
524
|
-
dataIndex:
|
|
565
|
+
dataIndex: "imgUrl",
|
|
525
566
|
title: "\u56FE\u7247",
|
|
526
|
-
align:
|
|
567
|
+
align: "center",
|
|
527
568
|
ellipsis: true,
|
|
528
569
|
width: 100,
|
|
529
570
|
render: function render(val) {
|
|
@@ -533,15 +574,15 @@ export var BsGoodsTable = function BsGoodsTable(_ref11) {
|
|
|
533
574
|
});
|
|
534
575
|
}
|
|
535
576
|
}, {
|
|
536
|
-
dataIndex:
|
|
577
|
+
dataIndex: "orderPrice",
|
|
537
578
|
title: "\u5B9E\u4ED8\u603B\u91D1\u989D",
|
|
538
|
-
align:
|
|
579
|
+
align: "center",
|
|
539
580
|
ellipsis: true,
|
|
540
581
|
width: 100
|
|
541
582
|
}, {
|
|
542
|
-
dataIndex:
|
|
583
|
+
dataIndex: "num",
|
|
543
584
|
title: "".concat(text, "\u6570\u91CF"),
|
|
544
|
-
align:
|
|
585
|
+
align: "center",
|
|
545
586
|
ellipsis: true,
|
|
546
587
|
width: 100
|
|
547
588
|
},
|
|
@@ -553,242 +594,242 @@ export var BsGoodsTable = function BsGoodsTable(_ref11) {
|
|
|
553
594
|
// width: 100,
|
|
554
595
|
// },
|
|
555
596
|
{
|
|
556
|
-
dataIndex:
|
|
597
|
+
dataIndex: "sharePrice",
|
|
557
598
|
title: "\u5206\u644A\u4EF7",
|
|
558
|
-
align:
|
|
599
|
+
align: "center",
|
|
559
600
|
ellipsis: true,
|
|
560
601
|
width: 70
|
|
561
602
|
}, {
|
|
562
|
-
dataIndex:
|
|
603
|
+
dataIndex: "giftType",
|
|
563
604
|
title: "\u8D60\u54C1\u65B9\u5F0F",
|
|
564
|
-
align:
|
|
605
|
+
align: "center",
|
|
565
606
|
ellipsis: true,
|
|
566
607
|
width: 100,
|
|
567
608
|
render: function render(val) {
|
|
568
609
|
var giftTypeMap = {
|
|
569
|
-
0:
|
|
570
|
-
1:
|
|
571
|
-
2:
|
|
572
|
-
3:
|
|
573
|
-
4:
|
|
574
|
-
6:
|
|
575
|
-
7:
|
|
610
|
+
0: "非赠品",
|
|
611
|
+
1: "自动赠送",
|
|
612
|
+
2: "手工赠送",
|
|
613
|
+
3: "回购自动送赠品",
|
|
614
|
+
4: "前N有礼送赠品",
|
|
615
|
+
6: "天猫优仓赠品",
|
|
616
|
+
7: "淘宝CRM会员送赠"
|
|
576
617
|
};
|
|
577
618
|
return /*#__PURE__*/React.createElement("span", null, giftTypeMap[val]);
|
|
578
619
|
}
|
|
579
620
|
}];
|
|
580
621
|
break;
|
|
581
|
-
case
|
|
622
|
+
case "WDT_RETURN_GOODS":
|
|
582
623
|
{
|
|
583
624
|
columns = [{
|
|
584
|
-
dataIndex:
|
|
625
|
+
dataIndex: "goodId",
|
|
585
626
|
title: "\u5546\u54C1ID",
|
|
586
|
-
align:
|
|
627
|
+
align: "center",
|
|
587
628
|
ellipsis: true,
|
|
588
629
|
width: 70
|
|
589
630
|
}, {
|
|
590
|
-
dataIndex:
|
|
631
|
+
dataIndex: "goodNo",
|
|
591
632
|
title: "\u5546\u54C1\u7F16\u7801",
|
|
592
|
-
align:
|
|
633
|
+
align: "center",
|
|
593
634
|
ellipsis: true,
|
|
594
635
|
width: 180
|
|
595
636
|
}, {
|
|
596
|
-
dataIndex:
|
|
637
|
+
dataIndex: "goodName",
|
|
597
638
|
title: "".concat(text, "\u5546\u54C1\u540D\u79F0"),
|
|
598
|
-
align:
|
|
639
|
+
align: "center",
|
|
599
640
|
ellipsis: true,
|
|
600
641
|
width: 250
|
|
601
642
|
}, {
|
|
602
|
-
dataIndex:
|
|
643
|
+
dataIndex: "specId",
|
|
603
644
|
title: "".concat(text, "SKUID"),
|
|
604
|
-
align:
|
|
645
|
+
align: "center",
|
|
605
646
|
ellipsis: true,
|
|
606
647
|
width: 100
|
|
607
648
|
}, {
|
|
608
|
-
dataIndex:
|
|
649
|
+
dataIndex: "specNo",
|
|
609
650
|
title: "".concat(text, "\u5546\u54C1SKU\u7F16\u7801"),
|
|
610
|
-
align:
|
|
651
|
+
align: "center",
|
|
611
652
|
ellipsis: true,
|
|
612
653
|
width: 180
|
|
613
654
|
}, {
|
|
614
|
-
dataIndex:
|
|
655
|
+
dataIndex: "specName",
|
|
615
656
|
title: "".concat(text, "\u5546\u54C1SKU\u540D\u79F0"),
|
|
616
|
-
align:
|
|
657
|
+
align: "center",
|
|
617
658
|
ellipsis: true,
|
|
618
659
|
width: 250
|
|
619
660
|
}, {
|
|
620
|
-
dataIndex:
|
|
661
|
+
dataIndex: "num",
|
|
621
662
|
title: "".concat(text, "\u9000\u8D27\u6570\u91CF"),
|
|
622
|
-
align:
|
|
663
|
+
align: "center",
|
|
623
664
|
ellipsis: true,
|
|
624
665
|
width: 100
|
|
625
666
|
}, {
|
|
626
|
-
dataIndex:
|
|
667
|
+
dataIndex: "sharePrice",
|
|
627
668
|
title: "\u5206\u644A\u4EF7",
|
|
628
|
-
align:
|
|
669
|
+
align: "center",
|
|
629
670
|
ellipsis: true,
|
|
630
671
|
width: 80
|
|
631
672
|
}, {
|
|
632
|
-
dataIndex:
|
|
673
|
+
dataIndex: "returnPrice",
|
|
633
674
|
title: "".concat(text, "\u9000\u8D27\u91D1\u989D"),
|
|
634
|
-
align:
|
|
675
|
+
align: "center",
|
|
635
676
|
ellipsis: true,
|
|
636
677
|
width: 100
|
|
637
678
|
}, {
|
|
638
|
-
dataIndex:
|
|
679
|
+
dataIndex: "giftType",
|
|
639
680
|
title: "\u8D60\u54C1\u65B9\u5F0F",
|
|
640
|
-
align:
|
|
681
|
+
align: "center",
|
|
641
682
|
ellipsis: true,
|
|
642
683
|
width: 100,
|
|
643
684
|
render: function render(val) {
|
|
644
685
|
var giftTypeMap = {
|
|
645
|
-
0:
|
|
646
|
-
1:
|
|
647
|
-
2:
|
|
648
|
-
3:
|
|
649
|
-
4:
|
|
650
|
-
6:
|
|
651
|
-
7:
|
|
686
|
+
0: "非赠品",
|
|
687
|
+
1: "自动赠送",
|
|
688
|
+
2: "手工赠送",
|
|
689
|
+
3: "回购自动送赠品",
|
|
690
|
+
4: "前N有礼送赠品",
|
|
691
|
+
6: "天猫优仓赠品",
|
|
692
|
+
7: "淘宝CRM会员送赠"
|
|
652
693
|
};
|
|
653
694
|
return /*#__PURE__*/React.createElement("span", null, giftTypeMap[val]);
|
|
654
695
|
}
|
|
655
696
|
}, {
|
|
656
|
-
dataIndex:
|
|
697
|
+
dataIndex: "type",
|
|
657
698
|
title: "".concat(text, "\u5546\u54C1\u7C7B\u578B"),
|
|
658
|
-
align:
|
|
699
|
+
align: "center",
|
|
659
700
|
ellipsis: true,
|
|
660
701
|
width: 100,
|
|
661
702
|
render: function render(val) {
|
|
662
703
|
var typeMap = {
|
|
663
|
-
|
|
664
|
-
|
|
704
|
+
"1": "单品",
|
|
705
|
+
"2": "组合装"
|
|
665
706
|
};
|
|
666
707
|
return /*#__PURE__*/React.createElement("span", null, typeMap[val]);
|
|
667
708
|
}
|
|
668
709
|
}];
|
|
669
710
|
}
|
|
670
711
|
break;
|
|
671
|
-
case
|
|
712
|
+
case "WDT_EXCHANGE_GOODS":
|
|
672
713
|
{
|
|
673
714
|
columns = [{
|
|
674
|
-
dataIndex:
|
|
715
|
+
dataIndex: "goodId",
|
|
675
716
|
title: "\u5546\u54C1ID",
|
|
676
|
-
align:
|
|
717
|
+
align: "center",
|
|
677
718
|
ellipsis: true,
|
|
678
719
|
width: 70
|
|
679
720
|
}, {
|
|
680
|
-
dataIndex:
|
|
721
|
+
dataIndex: "goodNo",
|
|
681
722
|
title: "\u5546\u54C1\u7F16\u7801",
|
|
682
|
-
align:
|
|
723
|
+
align: "center",
|
|
683
724
|
ellipsis: true,
|
|
684
725
|
width: 180
|
|
685
726
|
}, {
|
|
686
|
-
dataIndex:
|
|
727
|
+
dataIndex: "goodName",
|
|
687
728
|
title: "".concat(text, "\u5546\u54C1\u540D\u79F0"),
|
|
688
|
-
align:
|
|
729
|
+
align: "center",
|
|
689
730
|
ellipsis: true,
|
|
690
731
|
width: 250
|
|
691
732
|
}, {
|
|
692
|
-
dataIndex:
|
|
733
|
+
dataIndex: "specId",
|
|
693
734
|
title: "".concat(text, "SKUID"),
|
|
694
|
-
align:
|
|
735
|
+
align: "center",
|
|
695
736
|
ellipsis: true,
|
|
696
737
|
width: 100
|
|
697
738
|
}, {
|
|
698
|
-
dataIndex:
|
|
739
|
+
dataIndex: "specNo",
|
|
699
740
|
title: "".concat(text, "\u5546\u54C1SKU\u7F16\u7801"),
|
|
700
|
-
align:
|
|
741
|
+
align: "center",
|
|
701
742
|
ellipsis: true,
|
|
702
743
|
width: 180
|
|
703
744
|
}, {
|
|
704
|
-
dataIndex:
|
|
745
|
+
dataIndex: "specName",
|
|
705
746
|
title: "".concat(text, "\u5546\u54C1SKU\u540D\u79F0"),
|
|
706
|
-
align:
|
|
747
|
+
align: "center",
|
|
707
748
|
ellipsis: true,
|
|
708
749
|
width: 250
|
|
709
750
|
}, {
|
|
710
|
-
dataIndex:
|
|
751
|
+
dataIndex: "num",
|
|
711
752
|
title: "".concat(text, "\u6362\u51FA\u6570\u91CF"),
|
|
712
|
-
align:
|
|
753
|
+
align: "center",
|
|
713
754
|
ellipsis: true,
|
|
714
755
|
width: 100
|
|
715
756
|
}, {
|
|
716
|
-
dataIndex:
|
|
757
|
+
dataIndex: "price",
|
|
717
758
|
title: "".concat(text, "\u5546\u54C1\u5355\u4EF7"),
|
|
718
|
-
align:
|
|
759
|
+
align: "center",
|
|
719
760
|
ellipsis: true,
|
|
720
761
|
width: 100
|
|
721
762
|
}, {
|
|
722
|
-
dataIndex:
|
|
763
|
+
dataIndex: "exchangePrice",
|
|
723
764
|
title: "".concat(text, "\u6362\u51FA\u91D1\u989D"),
|
|
724
|
-
align:
|
|
765
|
+
align: "center",
|
|
725
766
|
ellipsis: true,
|
|
726
767
|
width: 100
|
|
727
768
|
}, {
|
|
728
|
-
dataIndex:
|
|
769
|
+
dataIndex: "giftType",
|
|
729
770
|
title: "\u8D60\u54C1\u65B9\u5F0F",
|
|
730
|
-
align:
|
|
771
|
+
align: "center",
|
|
731
772
|
ellipsis: true,
|
|
732
773
|
width: 100,
|
|
733
774
|
render: function render(val) {
|
|
734
775
|
var giftTypeMap = {
|
|
735
|
-
0:
|
|
736
|
-
1:
|
|
737
|
-
2:
|
|
738
|
-
3:
|
|
739
|
-
4:
|
|
740
|
-
6:
|
|
741
|
-
7:
|
|
776
|
+
0: "非赠品",
|
|
777
|
+
1: "自动赠送",
|
|
778
|
+
2: "手工赠送",
|
|
779
|
+
3: "回购自动送赠品",
|
|
780
|
+
4: "前N有礼送赠品",
|
|
781
|
+
6: "天猫优仓赠品",
|
|
782
|
+
7: "淘宝CRM会员送赠"
|
|
742
783
|
};
|
|
743
784
|
return /*#__PURE__*/React.createElement("span", null, giftTypeMap[val]);
|
|
744
785
|
}
|
|
745
786
|
}, {
|
|
746
|
-
dataIndex:
|
|
787
|
+
dataIndex: "type",
|
|
747
788
|
title: "".concat(text, "\u5546\u54C1\u7C7B\u578B"),
|
|
748
|
-
align:
|
|
789
|
+
align: "center",
|
|
749
790
|
ellipsis: true,
|
|
750
791
|
width: 100,
|
|
751
792
|
render: function render(val) {
|
|
752
793
|
var typeMap = {
|
|
753
|
-
|
|
754
|
-
|
|
794
|
+
"1": "单品",
|
|
795
|
+
"2": "组合装"
|
|
755
796
|
};
|
|
756
797
|
return /*#__PURE__*/React.createElement("span", null, typeMap[val]);
|
|
757
798
|
}
|
|
758
799
|
}];
|
|
759
800
|
}
|
|
760
801
|
break;
|
|
761
|
-
case
|
|
762
|
-
case
|
|
802
|
+
case "BS_E3_REISSUE_GOODS":
|
|
803
|
+
case "BS_E3_GOODS":
|
|
763
804
|
{
|
|
764
805
|
columns = [{
|
|
765
|
-
dataIndex:
|
|
806
|
+
dataIndex: "sku",
|
|
766
807
|
title: "SKU",
|
|
767
|
-
align:
|
|
808
|
+
align: "center",
|
|
768
809
|
ellipsis: true,
|
|
769
810
|
width: 150
|
|
770
811
|
}, {
|
|
771
|
-
dataIndex:
|
|
812
|
+
dataIndex: "skuId",
|
|
772
813
|
title: "SKU ID",
|
|
773
|
-
align:
|
|
814
|
+
align: "center",
|
|
774
815
|
ellipsis: true,
|
|
775
816
|
width: 150
|
|
776
817
|
}, {
|
|
777
|
-
dataIndex:
|
|
818
|
+
dataIndex: "goodsName",
|
|
778
819
|
title: "\u5546\u54C1\u540D\u79F0",
|
|
779
|
-
align:
|
|
820
|
+
align: "center",
|
|
780
821
|
ellipsis: true,
|
|
781
822
|
width: 150
|
|
782
823
|
}, {
|
|
783
|
-
dataIndex:
|
|
824
|
+
dataIndex: "goodsShortName",
|
|
784
825
|
title: "\u5546\u54C1\u7B80\u79F0",
|
|
785
|
-
align:
|
|
826
|
+
align: "center",
|
|
786
827
|
ellipsis: true,
|
|
787
828
|
width: 100
|
|
788
829
|
}, {
|
|
789
|
-
dataIndex:
|
|
830
|
+
dataIndex: "picPath",
|
|
790
831
|
title: "\u5546\u54C1\u56FE\u7247",
|
|
791
|
-
align:
|
|
832
|
+
align: "center",
|
|
792
833
|
ellipsis: true,
|
|
793
834
|
width: 100,
|
|
794
835
|
render: function render(val) {
|
|
@@ -798,105 +839,105 @@ export var BsGoodsTable = function BsGoodsTable(_ref11) {
|
|
|
798
839
|
});
|
|
799
840
|
}
|
|
800
841
|
}, {
|
|
801
|
-
dataIndex:
|
|
842
|
+
dataIndex: "goodsSn",
|
|
802
843
|
title: "\u8D27\u53F7",
|
|
803
|
-
align:
|
|
844
|
+
align: "center",
|
|
804
845
|
ellipsis: true,
|
|
805
846
|
width: 150
|
|
806
847
|
}, {
|
|
807
|
-
dataIndex:
|
|
848
|
+
dataIndex: "goodsId",
|
|
808
849
|
title: "\u8D27\u53F7ID",
|
|
809
|
-
align:
|
|
850
|
+
align: "center",
|
|
810
851
|
ellipsis: true,
|
|
811
852
|
width: 150
|
|
812
853
|
}, {
|
|
813
|
-
dataIndex:
|
|
854
|
+
dataIndex: "colorName",
|
|
814
855
|
title: "\u989C\u8272\u540D\u79F0",
|
|
815
|
-
align:
|
|
856
|
+
align: "center",
|
|
816
857
|
ellipsis: true,
|
|
817
858
|
width: 100
|
|
818
859
|
}, {
|
|
819
|
-
dataIndex:
|
|
860
|
+
dataIndex: "colorCode",
|
|
820
861
|
title: "\u989C\u8272\u4EE3\u7801",
|
|
821
|
-
align:
|
|
862
|
+
align: "center",
|
|
822
863
|
ellipsis: true,
|
|
823
864
|
width: 150
|
|
824
865
|
}, {
|
|
825
|
-
dataIndex:
|
|
866
|
+
dataIndex: "sizeName",
|
|
826
867
|
title: "\u5C3A\u7801\u540D\u79F0",
|
|
827
|
-
align:
|
|
868
|
+
align: "center",
|
|
828
869
|
ellipsis: true,
|
|
829
870
|
width: 100
|
|
830
871
|
}, {
|
|
831
|
-
dataIndex:
|
|
872
|
+
dataIndex: "sizeCode",
|
|
832
873
|
title: "\u5C3A\u7801\u4EE3\u7801",
|
|
833
|
-
align:
|
|
874
|
+
align: "center",
|
|
834
875
|
ellipsis: true,
|
|
835
876
|
width: 100
|
|
836
877
|
}, {
|
|
837
|
-
dataIndex:
|
|
878
|
+
dataIndex: "brandName",
|
|
838
879
|
title: "\u54C1\u724C\u540D\u79F0",
|
|
839
|
-
align:
|
|
880
|
+
align: "center",
|
|
840
881
|
ellipsis: true,
|
|
841
882
|
width: 150
|
|
842
883
|
}, {
|
|
843
|
-
dataIndex:
|
|
884
|
+
dataIndex: "goodsNumber",
|
|
844
885
|
title: "\u5546\u54C1\u6570\u91CF",
|
|
845
|
-
align:
|
|
886
|
+
align: "center",
|
|
846
887
|
ellipsis: true,
|
|
847
888
|
width: 100
|
|
848
889
|
}, {
|
|
849
|
-
dataIndex:
|
|
890
|
+
dataIndex: "goodsPrice",
|
|
850
891
|
title: "\u5546\u54C1\u5355\u4EF7",
|
|
851
|
-
align:
|
|
892
|
+
align: "center",
|
|
852
893
|
ellipsis: true,
|
|
853
894
|
width: 120
|
|
854
895
|
}, {
|
|
855
|
-
dataIndex:
|
|
896
|
+
dataIndex: "shopPrice",
|
|
856
897
|
title: "\u5546\u54C1\u7F51\u5E97\u552E\u4EF7",
|
|
857
|
-
align:
|
|
898
|
+
align: "center",
|
|
858
899
|
ellipsis: true,
|
|
859
900
|
width: 120
|
|
860
901
|
}, {
|
|
861
|
-
dataIndex:
|
|
902
|
+
dataIndex: "sharePrice",
|
|
862
903
|
title: "\u5206\u644A\u4EF7",
|
|
863
|
-
align:
|
|
904
|
+
align: "center",
|
|
864
905
|
ellipsis: true,
|
|
865
906
|
width: 120
|
|
866
907
|
}, {
|
|
867
|
-
dataIndex:
|
|
908
|
+
dataIndex: "sharePayment",
|
|
868
909
|
title: "\u5206\u644A\u5B9E\u4ED8\u91D1\u989D",
|
|
869
|
-
align:
|
|
910
|
+
align: "center",
|
|
870
911
|
ellipsis: true,
|
|
871
912
|
width: 120
|
|
872
913
|
}, {
|
|
873
|
-
dataIndex:
|
|
914
|
+
dataIndex: "payment",
|
|
874
915
|
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
875
|
-
align:
|
|
916
|
+
align: "center",
|
|
876
917
|
ellipsis: true,
|
|
877
918
|
width: 120
|
|
878
919
|
}, {
|
|
879
|
-
dataIndex:
|
|
920
|
+
dataIndex: "tcSku",
|
|
880
921
|
title: "\u5957\u9910SKU",
|
|
881
|
-
align:
|
|
922
|
+
align: "center",
|
|
882
923
|
ellipsis: true,
|
|
883
924
|
width: 150
|
|
884
925
|
}, {
|
|
885
|
-
dataIndex:
|
|
926
|
+
dataIndex: "tcGoodsNumber",
|
|
886
927
|
title: "\u5957\u9910\u5957\u6570",
|
|
887
|
-
align:
|
|
928
|
+
align: "center",
|
|
888
929
|
ellipsis: true,
|
|
889
930
|
width: 100
|
|
890
931
|
}, {
|
|
891
|
-
dataIndex:
|
|
932
|
+
dataIndex: "taoCanSingleSl",
|
|
892
933
|
title: "\u5355\u4E2A\u5957\u9910\u6570\u91CF",
|
|
893
|
-
align:
|
|
934
|
+
align: "center",
|
|
894
935
|
ellipsis: true,
|
|
895
936
|
width: 100
|
|
896
937
|
}, {
|
|
897
|
-
dataIndex:
|
|
938
|
+
dataIndex: "isGift",
|
|
898
939
|
title: "\u662F\u5426\u8D60\u54C1",
|
|
899
|
-
align:
|
|
940
|
+
align: "center",
|
|
900
941
|
ellipsis: true,
|
|
901
942
|
width: 100,
|
|
902
943
|
render: function render(val) {
|
|
@@ -905,35 +946,35 @@ export var BsGoodsTable = function BsGoodsTable(_ref11) {
|
|
|
905
946
|
}];
|
|
906
947
|
}
|
|
907
948
|
break;
|
|
908
|
-
case
|
|
949
|
+
case "BS_GOODS":
|
|
909
950
|
columns = [{
|
|
910
|
-
dataIndex:
|
|
951
|
+
dataIndex: "mark",
|
|
911
952
|
title: "\u5546\u54C1\u6807\u8BB0",
|
|
912
|
-
align:
|
|
953
|
+
align: "center",
|
|
913
954
|
ellipsis: true,
|
|
914
955
|
width: 100
|
|
915
956
|
}, {
|
|
916
|
-
dataIndex:
|
|
957
|
+
dataIndex: "skuName",
|
|
917
958
|
title: "".concat(text, "sku\u540D\u79F0"),
|
|
918
|
-
align:
|
|
959
|
+
align: "center",
|
|
919
960
|
ellipsis: true,
|
|
920
961
|
width: 200
|
|
921
962
|
}, {
|
|
922
|
-
dataIndex:
|
|
963
|
+
dataIndex: "sku",
|
|
923
964
|
title: "".concat(text, "sku\u7F16\u7801"),
|
|
924
|
-
align:
|
|
965
|
+
align: "center",
|
|
925
966
|
ellipsis: true,
|
|
926
967
|
width: 100
|
|
927
968
|
}, {
|
|
928
|
-
dataIndex:
|
|
969
|
+
dataIndex: "name",
|
|
929
970
|
title: "".concat(text, "\u540D\u79F0"),
|
|
930
|
-
align:
|
|
971
|
+
align: "center",
|
|
931
972
|
ellipsis: true,
|
|
932
973
|
width: 200
|
|
933
974
|
}, {
|
|
934
|
-
dataIndex:
|
|
975
|
+
dataIndex: "pic",
|
|
935
976
|
title: "\u56FE\u7247",
|
|
936
|
-
align:
|
|
977
|
+
align: "center",
|
|
937
978
|
ellipsis: true,
|
|
938
979
|
width: 100,
|
|
939
980
|
render: function render(val) {
|
|
@@ -943,78 +984,78 @@ export var BsGoodsTable = function BsGoodsTable(_ref11) {
|
|
|
943
984
|
});
|
|
944
985
|
}
|
|
945
986
|
}, {
|
|
946
|
-
dataIndex:
|
|
987
|
+
dataIndex: "code",
|
|
947
988
|
title: "".concat(text, "\u7F16\u7801"),
|
|
948
|
-
align:
|
|
989
|
+
align: "center",
|
|
949
990
|
ellipsis: true,
|
|
950
991
|
width: 100
|
|
951
992
|
}, {
|
|
952
|
-
dataIndex:
|
|
993
|
+
dataIndex: "money",
|
|
953
994
|
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
954
|
-
align:
|
|
995
|
+
align: "center",
|
|
955
996
|
ellipsis: true,
|
|
956
997
|
width: 100
|
|
957
998
|
}, {
|
|
958
|
-
dataIndex:
|
|
999
|
+
dataIndex: "number",
|
|
959
1000
|
title: "".concat(text, "\u6570\u91CF"),
|
|
960
|
-
align:
|
|
1001
|
+
align: "center",
|
|
961
1002
|
ellipsis: true,
|
|
962
1003
|
width: 100
|
|
963
1004
|
}, {
|
|
964
|
-
dataIndex:
|
|
1005
|
+
dataIndex: "share",
|
|
965
1006
|
title: "\u5206\u644A\u4EF7",
|
|
966
|
-
align:
|
|
1007
|
+
align: "center",
|
|
967
1008
|
ellipsis: true,
|
|
968
1009
|
width: 70
|
|
969
1010
|
}, {
|
|
970
|
-
dataIndex:
|
|
1011
|
+
dataIndex: "type",
|
|
971
1012
|
title: "\u8D60\u54C1\u7C7B\u578B",
|
|
972
|
-
align:
|
|
1013
|
+
align: "center",
|
|
973
1014
|
ellipsis: true,
|
|
974
1015
|
width: 100
|
|
975
1016
|
}, {
|
|
976
|
-
dataIndex:
|
|
1017
|
+
dataIndex: "batch",
|
|
977
1018
|
title: "\u6279\u6B21\u53F7",
|
|
978
|
-
align:
|
|
1019
|
+
align: "center",
|
|
979
1020
|
ellipsis: true,
|
|
980
1021
|
width: 100
|
|
981
1022
|
}, {
|
|
982
|
-
dataIndex:
|
|
1023
|
+
dataIndex: "expireDate",
|
|
983
1024
|
title: "\u6709\u6548\u671F",
|
|
984
|
-
align:
|
|
1025
|
+
align: "center",
|
|
985
1026
|
ellipsis: true,
|
|
986
1027
|
width: 100
|
|
987
1028
|
}];
|
|
988
1029
|
break;
|
|
989
1030
|
default:
|
|
990
1031
|
columns = [{
|
|
991
|
-
dataIndex:
|
|
1032
|
+
dataIndex: "mark",
|
|
992
1033
|
title: "\u5546\u54C1\u6807\u8BB0",
|
|
993
|
-
align:
|
|
1034
|
+
align: "center",
|
|
994
1035
|
ellipsis: true,
|
|
995
1036
|
width: 100
|
|
996
1037
|
}, {
|
|
997
|
-
dataIndex:
|
|
1038
|
+
dataIndex: "skuName",
|
|
998
1039
|
title: "".concat(text, "sku\u540D\u79F0"),
|
|
999
|
-
align:
|
|
1040
|
+
align: "center",
|
|
1000
1041
|
ellipsis: true,
|
|
1001
1042
|
width: 200
|
|
1002
1043
|
}, {
|
|
1003
|
-
dataIndex:
|
|
1044
|
+
dataIndex: "sku",
|
|
1004
1045
|
title: "".concat(text, "sku\u7F16\u7801"),
|
|
1005
|
-
align:
|
|
1046
|
+
align: "center",
|
|
1006
1047
|
ellipsis: true,
|
|
1007
1048
|
width: 100
|
|
1008
1049
|
}, {
|
|
1009
|
-
dataIndex:
|
|
1050
|
+
dataIndex: "name",
|
|
1010
1051
|
title: "".concat(text, "\u540D\u79F0"),
|
|
1011
|
-
align:
|
|
1052
|
+
align: "center",
|
|
1012
1053
|
ellipsis: true,
|
|
1013
1054
|
width: 200
|
|
1014
1055
|
}, {
|
|
1015
|
-
dataIndex:
|
|
1056
|
+
dataIndex: "pic",
|
|
1016
1057
|
title: "\u56FE\u7247",
|
|
1017
|
-
align:
|
|
1058
|
+
align: "center",
|
|
1018
1059
|
ellipsis: true,
|
|
1019
1060
|
width: 100,
|
|
1020
1061
|
render: function render(val) {
|
|
@@ -1024,33 +1065,33 @@ export var BsGoodsTable = function BsGoodsTable(_ref11) {
|
|
|
1024
1065
|
});
|
|
1025
1066
|
}
|
|
1026
1067
|
}, {
|
|
1027
|
-
dataIndex:
|
|
1068
|
+
dataIndex: "code",
|
|
1028
1069
|
title: "".concat(text, "\u7F16\u7801"),
|
|
1029
|
-
align:
|
|
1070
|
+
align: "center",
|
|
1030
1071
|
ellipsis: true,
|
|
1031
1072
|
width: 100
|
|
1032
1073
|
}, {
|
|
1033
|
-
dataIndex:
|
|
1074
|
+
dataIndex: "money",
|
|
1034
1075
|
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
1035
|
-
align:
|
|
1076
|
+
align: "center",
|
|
1036
1077
|
ellipsis: true,
|
|
1037
1078
|
width: 100
|
|
1038
1079
|
}, {
|
|
1039
|
-
dataIndex:
|
|
1080
|
+
dataIndex: "number",
|
|
1040
1081
|
title: "".concat(text, "\u6570\u91CF"),
|
|
1041
|
-
align:
|
|
1082
|
+
align: "center",
|
|
1042
1083
|
ellipsis: true,
|
|
1043
1084
|
width: 100
|
|
1044
1085
|
}, {
|
|
1045
|
-
dataIndex:
|
|
1086
|
+
dataIndex: "share",
|
|
1046
1087
|
title: "\u5206\u644A\u4EF7",
|
|
1047
|
-
align:
|
|
1088
|
+
align: "center",
|
|
1048
1089
|
ellipsis: true,
|
|
1049
1090
|
width: 70
|
|
1050
1091
|
}, {
|
|
1051
|
-
dataIndex:
|
|
1092
|
+
dataIndex: "type",
|
|
1052
1093
|
title: "\u8D60\u54C1\u7C7B\u578B",
|
|
1053
|
-
align:
|
|
1094
|
+
align: "center",
|
|
1054
1095
|
ellipsis: true,
|
|
1055
1096
|
width: 100
|
|
1056
1097
|
}];
|
|
@@ -1060,7 +1101,7 @@ export var BsGoodsTable = function BsGoodsTable(_ref11) {
|
|
|
1060
1101
|
};
|
|
1061
1102
|
//商品信息
|
|
1062
1103
|
var GOODS_INFO_COLUMNS = function GOODS_INFO_COLUMNS() {
|
|
1063
|
-
var text = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] :
|
|
1104
|
+
var text = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
|
|
1064
1105
|
var COLUMNS_INFO = COLUMNS_MAP(text);
|
|
1065
1106
|
return COLUMNS_INFO(type);
|
|
1066
1107
|
};
|
|
@@ -1068,31 +1109,47 @@ export var BsGoodsTable = function BsGoodsTable(_ref11) {
|
|
|
1068
1109
|
// return
|
|
1069
1110
|
// }
|
|
1070
1111
|
var newColumns = useMemo(function () {
|
|
1112
|
+
var initBaseInfoColumns = GOODS_INFO_COLUMNS();
|
|
1113
|
+
var baseInfoColumns = [];
|
|
1114
|
+
var isStringArray = Array.isArray(showHeader) && typeof showHeader[0] === "string";
|
|
1115
|
+
var isObjectArray = Array.isArray(showHeader) && Object.prototype.toString.call(showHeader[0]) === "[object Object]";
|
|
1116
|
+
if (isStringArray) {
|
|
1117
|
+
baseInfoColumns = initBaseInfoColumns.filter(function (col) {
|
|
1118
|
+
return showHeader.includes(col.dataIndex);
|
|
1119
|
+
});
|
|
1120
|
+
} else if (isObjectArray) {
|
|
1121
|
+
baseInfoColumns = showHeader.filter(function (col) {
|
|
1122
|
+
return col.show !== false;
|
|
1123
|
+
}).map(function (col) {
|
|
1124
|
+
var currentCol = initBaseInfoColumns.find(function (item) {
|
|
1125
|
+
return item.dataIndex === col.dataIndex;
|
|
1126
|
+
});
|
|
1127
|
+
return currentCol ? currentCol : undefined;
|
|
1128
|
+
}).filter(Boolean);
|
|
1129
|
+
}
|
|
1071
1130
|
var columnList = [{
|
|
1072
|
-
dataIndex:
|
|
1073
|
-
title:
|
|
1074
|
-
align:
|
|
1131
|
+
dataIndex: "",
|
|
1132
|
+
title: "序号",
|
|
1133
|
+
align: "center",
|
|
1075
1134
|
ellipsis: true,
|
|
1076
1135
|
width: 50,
|
|
1077
1136
|
render: function render(val, record, index) {
|
|
1078
1137
|
return /*#__PURE__*/React.createElement("span", null, index + 1);
|
|
1079
1138
|
}
|
|
1080
|
-
}].concat(_toConsumableArray(
|
|
1081
|
-
return showHeader.includes(t === null || t === void 0 ? void 0 : t.dataIndex);
|
|
1082
|
-
})));
|
|
1139
|
+
}].concat(_toConsumableArray(baseInfoColumns));
|
|
1083
1140
|
return columnList;
|
|
1084
1141
|
}, [showHeader, list]);
|
|
1085
1142
|
return /*#__PURE__*/React.createElement(Table, {
|
|
1086
1143
|
columns: newColumns,
|
|
1087
1144
|
dataSource: list,
|
|
1088
|
-
rowKey:
|
|
1145
|
+
rowKey: "uuid",
|
|
1089
1146
|
size: "small",
|
|
1090
1147
|
pagination: false,
|
|
1091
1148
|
scroll: {
|
|
1092
|
-
x:
|
|
1149
|
+
x: "100%"
|
|
1093
1150
|
},
|
|
1094
1151
|
locale: {
|
|
1095
|
-
emptyText:
|
|
1152
|
+
emptyText: "暂无数据"
|
|
1096
1153
|
}
|
|
1097
1154
|
});
|
|
1098
1155
|
};
|
|
@@ -1105,15 +1162,15 @@ export var FileRender = function FileRender(_ref12) {
|
|
|
1105
1162
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
1106
1163
|
visible = _useState4[0],
|
|
1107
1164
|
setVisible = _useState4[1];
|
|
1108
|
-
var _useState5 = useState(
|
|
1165
|
+
var _useState5 = useState(""),
|
|
1109
1166
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
1110
1167
|
fileUrl = _useState6[0],
|
|
1111
1168
|
setFileUrl = _useState6[1];
|
|
1112
|
-
var _useState7 = useState(
|
|
1169
|
+
var _useState7 = useState(""),
|
|
1113
1170
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
1114
1171
|
fileType = _useState8[0],
|
|
1115
1172
|
setFileType = _useState8[1];
|
|
1116
|
-
var _useState9 = useState(
|
|
1173
|
+
var _useState9 = useState(""),
|
|
1117
1174
|
_useState10 = _slicedToArray(_useState9, 2),
|
|
1118
1175
|
fileName = _useState10[0],
|
|
1119
1176
|
setFileName = _useState10[1];
|
|
@@ -1122,24 +1179,24 @@ export var FileRender = function FileRender(_ref12) {
|
|
|
1122
1179
|
downloading = _useState12[0],
|
|
1123
1180
|
setDownloading = _useState12[1];
|
|
1124
1181
|
var handleCancel = function handleCancel() {
|
|
1125
|
-
setFileUrl(
|
|
1126
|
-
setFileName(
|
|
1182
|
+
setFileUrl("");
|
|
1183
|
+
setFileName("");
|
|
1127
1184
|
setVisible(false);
|
|
1128
1185
|
setDownloading(false);
|
|
1129
1186
|
};
|
|
1130
1187
|
var onPreview = function onPreview(file) {
|
|
1131
1188
|
var _file$url;
|
|
1132
|
-
var fileArr = file === null || file === void 0 ? void 0 : (_file$url = file.url) === null || _file$url === void 0 ? void 0 : _file$url.split(
|
|
1189
|
+
var fileArr = file === null || file === void 0 ? void 0 : (_file$url = file.url) === null || _file$url === void 0 ? void 0 : _file$url.split(".");
|
|
1133
1190
|
var fileType = fileArr[fileArr.length - 1];
|
|
1134
|
-
if ([
|
|
1191
|
+
if (["png", "jpg", "jpeg", "gif", "bmp", "svg"].includes(fileType.toLowerCase())) {
|
|
1135
1192
|
setFileUrl(file === null || file === void 0 ? void 0 : file.url);
|
|
1136
1193
|
setFileName(file === null || file === void 0 ? void 0 : file.name);
|
|
1137
|
-
setFileType(
|
|
1194
|
+
setFileType("pic");
|
|
1138
1195
|
setVisible(true);
|
|
1139
|
-
} else if ([
|
|
1196
|
+
} else if (["mp4", "avi", "mpeg", "asf", "mov", "3gp", "wmv", "rmvb"].includes(fileType.toLowerCase())) {
|
|
1140
1197
|
setFileUrl(file === null || file === void 0 ? void 0 : file.url);
|
|
1141
1198
|
setFileName(file === null || file === void 0 ? void 0 : file.name);
|
|
1142
|
-
setFileType(
|
|
1199
|
+
setFileType("video");
|
|
1143
1200
|
setVisible(true);
|
|
1144
1201
|
} else {
|
|
1145
1202
|
window.open(file === null || file === void 0 ? void 0 : file.url);
|
|
@@ -1150,9 +1207,9 @@ export var FileRender = function FileRender(_ref12) {
|
|
|
1150
1207
|
fetch(url).then(function (res) {
|
|
1151
1208
|
return res.blob();
|
|
1152
1209
|
}).then(function (blob) {
|
|
1153
|
-
var a = document.createElement(
|
|
1210
|
+
var a = document.createElement("a");
|
|
1154
1211
|
document.body.appendChild(a);
|
|
1155
|
-
a.style.display =
|
|
1212
|
+
a.style.display = "none";
|
|
1156
1213
|
var url = window.URL.createObjectURL(blob);
|
|
1157
1214
|
a.href = url;
|
|
1158
1215
|
a.download = name;
|
|
@@ -1166,9 +1223,9 @@ export var FileRender = function FileRender(_ref12) {
|
|
|
1166
1223
|
return /*#__PURE__*/React.createElement(React.Fragment, null, fileList.map(function (item) {
|
|
1167
1224
|
return /*#__PURE__*/React.createElement("a", {
|
|
1168
1225
|
style: {
|
|
1169
|
-
color:
|
|
1170
|
-
cursor:
|
|
1171
|
-
display:
|
|
1226
|
+
color: "#1890ff",
|
|
1227
|
+
cursor: "pointer",
|
|
1228
|
+
display: "block"
|
|
1172
1229
|
},
|
|
1173
1230
|
onClick: function onClick(e) {
|
|
1174
1231
|
e.preventDefault();
|
|
@@ -1190,20 +1247,20 @@ export var FileRender = function FileRender(_ref12) {
|
|
|
1190
1247
|
}, "\u4E0B\u8F7D") : /*#__PURE__*/React.createElement(CopyToClipboard, {
|
|
1191
1248
|
text: fileUrl,
|
|
1192
1249
|
onCopy: function onCopy() {
|
|
1193
|
-
message.success(
|
|
1250
|
+
message.success("复制成功");
|
|
1194
1251
|
}
|
|
1195
1252
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
1196
1253
|
type: "link"
|
|
1197
|
-
}, "\u4E0B\u8F7D\u5730\u5740")), fileType ===
|
|
1254
|
+
}, "\u4E0B\u8F7D\u5730\u5740")), fileType === "pic" ? /*#__PURE__*/React.createElement("img", {
|
|
1198
1255
|
alt: "example",
|
|
1199
1256
|
style: {
|
|
1200
|
-
width:
|
|
1257
|
+
width: "100%"
|
|
1201
1258
|
},
|
|
1202
1259
|
src: fileUrl
|
|
1203
1260
|
}) : /*#__PURE__*/React.createElement("video", {
|
|
1204
1261
|
style: {
|
|
1205
|
-
width:
|
|
1206
|
-
height:
|
|
1262
|
+
width: "100%",
|
|
1263
|
+
height: "100%"
|
|
1207
1264
|
},
|
|
1208
1265
|
autoPlay: true,
|
|
1209
1266
|
controls: true,
|
|
@@ -1215,20 +1272,20 @@ export var BsSystemOrderTable = function BsSystemOrderTable(_ref13) {
|
|
|
1215
1272
|
type = _ref13.type;
|
|
1216
1273
|
var columnMap = {
|
|
1217
1274
|
BS_SYSTEM_ORDER: [{
|
|
1218
|
-
dataIndex:
|
|
1219
|
-
title:
|
|
1275
|
+
dataIndex: "billType",
|
|
1276
|
+
title: "订单类型"
|
|
1220
1277
|
}, {
|
|
1221
|
-
dataIndex:
|
|
1222
|
-
title:
|
|
1278
|
+
dataIndex: "billNo",
|
|
1279
|
+
title: "系统订单号"
|
|
1223
1280
|
}, {
|
|
1224
|
-
dataIndex:
|
|
1225
|
-
title:
|
|
1281
|
+
dataIndex: "billTag",
|
|
1282
|
+
title: "标签"
|
|
1226
1283
|
}, {
|
|
1227
|
-
title:
|
|
1228
|
-
dataIndex:
|
|
1284
|
+
title: "主播名称",
|
|
1285
|
+
dataIndex: "authorName"
|
|
1229
1286
|
}, {
|
|
1230
|
-
title:
|
|
1231
|
-
dataIndex:
|
|
1287
|
+
title: "主播ID",
|
|
1288
|
+
dataIndex: "authorId"
|
|
1232
1289
|
}
|
|
1233
1290
|
// {
|
|
1234
1291
|
// title: '直播活动',
|
|
@@ -1238,24 +1295,24 @@ export var BsSystemOrderTable = function BsSystemOrderTable(_ref13) {
|
|
|
1238
1295
|
|
|
1239
1296
|
KM_SYSTEM_ORDER: KM_SYSTEM_ORDER_CONFIG.columns,
|
|
1240
1297
|
WLN_SYSTEM_ORDER: [{
|
|
1241
|
-
dataIndex:
|
|
1242
|
-
title:
|
|
1298
|
+
dataIndex: "billType",
|
|
1299
|
+
title: "单据类型"
|
|
1243
1300
|
}, {
|
|
1244
|
-
dataIndex:
|
|
1245
|
-
title:
|
|
1301
|
+
dataIndex: "billNo",
|
|
1302
|
+
title: "系统订单号"
|
|
1246
1303
|
}, {
|
|
1247
|
-
dataIndex:
|
|
1248
|
-
title:
|
|
1304
|
+
dataIndex: "billTag",
|
|
1305
|
+
title: "标签"
|
|
1249
1306
|
}],
|
|
1250
1307
|
WDT_SYSTEM_ORDER: [{
|
|
1251
|
-
dataIndex:
|
|
1252
|
-
title:
|
|
1308
|
+
dataIndex: "billType",
|
|
1309
|
+
title: "订单类型"
|
|
1253
1310
|
}, {
|
|
1254
|
-
dataIndex:
|
|
1255
|
-
title:
|
|
1311
|
+
dataIndex: "billNo",
|
|
1312
|
+
title: "系统订单号"
|
|
1256
1313
|
}, {
|
|
1257
|
-
dataIndex:
|
|
1258
|
-
title:
|
|
1314
|
+
dataIndex: "billTag",
|
|
1315
|
+
title: "订单标签"
|
|
1259
1316
|
}],
|
|
1260
1317
|
BS_E3_SYSTEM_ORDER: [{
|
|
1261
1318
|
title: "系统订单号",
|
|
@@ -1326,16 +1383,16 @@ export var BsSystemOrderTable = function BsSystemOrderTable(_ref13) {
|
|
|
1326
1383
|
}]
|
|
1327
1384
|
};
|
|
1328
1385
|
var rowKeyMap = {
|
|
1329
|
-
BS_SYSTEM_ORDER:
|
|
1330
|
-
KM_SYSTEM_ORDER:
|
|
1331
|
-
WLN_SYSTEM_ORDER:
|
|
1332
|
-
WDT_SYSTEM_ORDER:
|
|
1333
|
-
BS_E3_SYSTEM_ORDER:
|
|
1386
|
+
BS_SYSTEM_ORDER: "billNo",
|
|
1387
|
+
KM_SYSTEM_ORDER: "billNo",
|
|
1388
|
+
WLN_SYSTEM_ORDER: "billNo",
|
|
1389
|
+
WDT_SYSTEM_ORDER: "billNo",
|
|
1390
|
+
BS_E3_SYSTEM_ORDER: "orderSn"
|
|
1334
1391
|
};
|
|
1335
1392
|
var rowSelection = {
|
|
1336
1393
|
selectedRowKeys: (value === null || value === void 0 ? void 0 : value.selectIds) || ((value === null || value === void 0 ? void 0 : value.showOrderInfo) || []).reduce(function (prv, next) {
|
|
1337
1394
|
if (next.select) {
|
|
1338
|
-
prv.push(next[rowKeyMap[type]] ||
|
|
1395
|
+
prv.push(next[rowKeyMap[type]] || "billNo");
|
|
1339
1396
|
}
|
|
1340
1397
|
return prv;
|
|
1341
1398
|
}, []),
|
|
@@ -1351,14 +1408,14 @@ export var BsSystemOrderTable = function BsSystemOrderTable(_ref13) {
|
|
|
1351
1408
|
dataSource: (value === null || value === void 0 ? void 0 : value.showOrderInfo) || [],
|
|
1352
1409
|
columns: columnMap[type] || [],
|
|
1353
1410
|
rowSelection: rowSelection,
|
|
1354
|
-
rowKey: rowKeyMap[type] ||
|
|
1411
|
+
rowKey: rowKeyMap[type] || "billNo",
|
|
1355
1412
|
size: "small",
|
|
1356
1413
|
pagination: false,
|
|
1357
1414
|
scroll: {
|
|
1358
|
-
x:
|
|
1415
|
+
x: "100%"
|
|
1359
1416
|
},
|
|
1360
1417
|
locale: {
|
|
1361
|
-
emptyText:
|
|
1418
|
+
emptyText: "暂无数据"
|
|
1362
1419
|
}
|
|
1363
1420
|
});
|
|
1364
1421
|
};
|
|
@@ -1378,19 +1435,19 @@ export var MsgContent = function MsgContent(_ref14) {
|
|
|
1378
1435
|
_ref14$options = _ref14.options,
|
|
1379
1436
|
options = _ref14$options === void 0 ? [] : _ref14$options;
|
|
1380
1437
|
var msgTypeCh = {
|
|
1381
|
-
ding:
|
|
1382
|
-
wechat:
|
|
1383
|
-
qq:
|
|
1384
|
-
qywx:
|
|
1385
|
-
YZDKH:
|
|
1386
|
-
YT:
|
|
1387
|
-
feishu:
|
|
1438
|
+
ding: "钉钉",
|
|
1439
|
+
wechat: "微信",
|
|
1440
|
+
qq: "QQ",
|
|
1441
|
+
qywx: "企业微信",
|
|
1442
|
+
YZDKH: "邮政拦截",
|
|
1443
|
+
YT: "圆通拦截",
|
|
1444
|
+
feishu: "飞书"
|
|
1388
1445
|
};
|
|
1389
1446
|
var getColorByStatus = function getColorByStatus(value) {
|
|
1390
1447
|
var _options$find2;
|
|
1391
1448
|
return ((_options$find2 = options.find(function (innerItem) {
|
|
1392
1449
|
return value === innerItem.label || value === innerItem.oldValue;
|
|
1393
|
-
})) === null || _options$find2 === void 0 ? void 0 : _options$find2.color) ||
|
|
1450
|
+
})) === null || _options$find2 === void 0 ? void 0 : _options$find2.color) || "#000";
|
|
1394
1451
|
};
|
|
1395
1452
|
var detailContent = function detailContent(item) {
|
|
1396
1453
|
var _item$msgReceivers;
|
|
@@ -1412,14 +1469,14 @@ export var MsgContent = function MsgContent(_ref14) {
|
|
|
1412
1469
|
}, "\u5931\u8D25\u539F\u56E0\uFF1A", item.failReason)));
|
|
1413
1470
|
};
|
|
1414
1471
|
return /*#__PURE__*/React.createElement(Space, {
|
|
1415
|
-
direction: !horizontal ?
|
|
1472
|
+
direction: !horizontal ? "vertical" : "horizontal"
|
|
1416
1473
|
}, Array.isArray(list) ? (list || []).map(function (item, index) {
|
|
1417
1474
|
var _item$msgReceivers2;
|
|
1418
1475
|
var color = getColorByStatus(item[valueKey]);
|
|
1419
1476
|
var currentOption = options.find(function (option) {
|
|
1420
1477
|
return item[valueKey] === option.value;
|
|
1421
1478
|
});
|
|
1422
|
-
var key = item.msgType ||
|
|
1479
|
+
var key = item.msgType || "ding";
|
|
1423
1480
|
var formatMsgContent = /*#__PURE__*/React.createElement("span", {
|
|
1424
1481
|
key: index
|
|
1425
1482
|
}, msgTypeCh[key], "-", item.ruleName, "-", currentOption ? currentOption.label : (item === null || item === void 0 ? void 0 : item[valueKey]) || "");
|
|
@@ -1447,7 +1504,7 @@ export var AlipayBill = function AlipayBill(props) {
|
|
|
1447
1504
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
1448
1505
|
visible = _useState14[0],
|
|
1449
1506
|
setVisible = _useState14[1];
|
|
1450
|
-
var _useState15 = useState(
|
|
1507
|
+
var _useState15 = useState(""),
|
|
1451
1508
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
1452
1509
|
msg = _useState16[0],
|
|
1453
1510
|
setMsg = _useState16[1];
|
|
@@ -1472,7 +1529,7 @@ export var AlipayBill = function AlipayBill(props) {
|
|
|
1472
1529
|
data = res.data, msg = res.message;
|
|
1473
1530
|
if (data) {
|
|
1474
1531
|
setHasUrl(true);
|
|
1475
|
-
if ([
|
|
1532
|
+
if (["fxg"].includes(platform)) {
|
|
1476
1533
|
setMsg(data);
|
|
1477
1534
|
setVisible(true);
|
|
1478
1535
|
} else {
|
|
@@ -1499,8 +1556,8 @@ export var AlipayBill = function AlipayBill(props) {
|
|
|
1499
1556
|
};
|
|
1500
1557
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("span", {
|
|
1501
1558
|
style: {
|
|
1502
|
-
color:
|
|
1503
|
-
cursor:
|
|
1559
|
+
color: "#1890ff",
|
|
1560
|
+
cursor: "pointer"
|
|
1504
1561
|
},
|
|
1505
1562
|
onClick: voucherHandle
|
|
1506
1563
|
}, value), /*#__PURE__*/React.createElement(Modal, {
|
|
@@ -1508,7 +1565,7 @@ export var AlipayBill = function AlipayBill(props) {
|
|
|
1508
1565
|
visible: visible,
|
|
1509
1566
|
footer: false,
|
|
1510
1567
|
onCancel: closeHandle
|
|
1511
|
-
}, [
|
|
1568
|
+
}, ["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, {
|
|
1512
1569
|
copyable: true
|
|
1513
1570
|
}, msg)) : msg));
|
|
1514
1571
|
};
|