@kmkf-fe-packages/services-components 2.0.0-rc.9 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/commonComponents/CopyText/index.d.ts +1 -1
- package/dist/esm/commonComponents/GlobalContext/index.d.ts +1 -1
- package/dist/esm/commonComponents/GlobalContext/index.js +5 -2
- package/dist/esm/components/BS/BsLogistics/index.js +8 -1
- package/dist/esm/components/BS/BsSystemOrder/index.js +6 -163
- package/dist/esm/components/BS/common/BsHeaderGood.js +13 -40
- package/dist/esm/components/BS/common/BsMemo.d.ts +4 -4
- package/dist/esm/components/BS/common/BsMemo.js +19 -18
- package/dist/esm/components/BS/common/BsType.d.ts +4 -4
- package/dist/esm/components/BS/common/BsType.js +17 -16
- package/dist/esm/components/BS/common/SystemOrderNo.js +2 -1
- package/dist/esm/components/BS/common/expressCode.js +4 -1
- package/dist/esm/components/BS/common/expressCompany.js +3 -0
- package/dist/esm/components/Common/constants/bs.d.ts +3 -0
- package/dist/esm/components/Common/constants/bs.js +90 -0
- package/dist/esm/components/Common/constants/bs_e3.d.ts +3 -0
- package/dist/esm/components/Common/constants/bs_e3.js +154 -0
- package/dist/esm/components/Common/constants/columnsBaseInfoMap.d.ts +5 -0
- package/dist/esm/components/Common/constants/columnsBaseInfoMap.js +26 -0
- package/dist/esm/components/Common/constants/defaultColumns.d.ts +3 -0
- package/dist/esm/components/Common/constants/defaultColumns.js +76 -0
- package/dist/esm/components/Common/constants/gy.d.ts +3 -0
- package/dist/esm/components/Common/constants/gy.js +153 -0
- package/dist/esm/components/Common/constants/system.d.ts +3 -0
- package/dist/esm/components/Common/constants/system.js +58 -0
- package/dist/esm/components/Common/constants/wdt.d.ts +3 -0
- package/dist/esm/components/Common/constants/wdt.js +280 -0
- package/dist/esm/components/Common/index.d.ts +10 -3
- package/dist/esm/components/Common/index.js +74 -822
- package/dist/esm/components/CommonHeaderGood/index.js +196 -0
- 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 +3 -1
- package/dist/esm/components/EItemEnCode/index.js +26 -29
- package/dist/esm/components/GY/GyGoods/index.d.ts +33 -0
- package/dist/esm/components/GY/GyGoods/index.js +123 -0
- package/dist/esm/components/GY/GyReissue/index.d.ts +58 -0
- package/dist/esm/components/GY/GyReissue/index.js +188 -0
- package/dist/esm/components/JST/JstSendGood/index.js +32 -16
- package/dist/esm/components/KmErpSendGood/index.js +11 -11
- package/dist/esm/components/MsgStatus/index.d.ts +5 -5
- package/dist/esm/components/MsgStatus/index.js +39 -48
- package/dist/esm/components/PostIng/index.js +3 -2
- package/dist/esm/components/ReceiverAddress/index.js +74 -8
- package/dist/esm/components/{JST/JstLogistics → Reissue/Logistics}/index.d.ts +12 -3
- package/dist/esm/components/{JST/JstLogistics → Reissue/Logistics}/index.js +36 -13
- package/dist/esm/components/StatusSelect/index.d.ts +1 -1
- package/dist/esm/components/StatusSelect/index.js +1 -2
- package/dist/esm/factory.d.ts +2 -2
- package/dist/esm/factory.js +10 -4
- package/dist/esm/index.d.ts +3 -1
- package/dist/esm/index.js +3 -1
- package/dist/esm/service/api.d.ts +3 -0
- package/dist/esm/service/api.js +59 -38
- package/dist/esm/type.d.ts +1 -1
- package/package.json +4 -4
- package/dist/esm/components/CommonHeaderGood/index copy.d.ts +0 -27
- package/dist/esm/components/CommonHeaderGood/index copy.js +0 -659
|
@@ -14,13 +14,14 @@ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefine
|
|
|
14
14
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
15
15
|
import { Form, Button, Modal, Tooltip, Space, Image, Popover, Table, message, Typography } from "antd";
|
|
16
16
|
import React, { useState, useMemo } from "react";
|
|
17
|
-
import { ExpressData, SendDataCenter
|
|
17
|
+
import { ExpressData, SendDataCenter } from "@kmkf-fe-packages/kmkf-utils";
|
|
18
18
|
import { getAlipayBillReceipt } from "../../service/api";
|
|
19
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 "@kmkf-fe-packages/kmkf-utils";
|
|
23
|
+
import { KM_SYSTEM_ORDER_CONFIG, GY_SYSTEM_ORDER_CONFIG, BS_SYSTEM_ORDER_CONFIG, WLN_SYSTEM_ORDER_CONFIG, WDT_SYSTEM_ORDER_CONFIG, BS_E3_SYSTEM_ORDER_CONFIG, msgTypeCh, getMapping, columnsGoodsList } from "@kmkf-fe-packages/kmkf-utils";
|
|
24
|
+
import { getColumnsMap } from "./constants/columnsBaseInfoMap";
|
|
24
25
|
var Paragraph = Typography.Paragraph;
|
|
25
26
|
export var getFormItem = function getFormItem(_ref) {
|
|
26
27
|
var name = _ref.name,
|
|
@@ -55,23 +56,11 @@ export var showImage = function showImage(_ref2) {
|
|
|
55
56
|
index = _ref2.index,
|
|
56
57
|
showHeader = _ref2.showHeader;
|
|
57
58
|
var picUrl = item.picUrl ? (item === null || item === void 0 ? void 0 : item.platform) !== "tabao" ? item.picUrl : item.picUrl + "_40x40.jpg" : defaultImg;
|
|
58
|
-
var
|
|
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]);
|
|
59
|
+
var mapping_itemCode = getMapping(columnsGoodsList);
|
|
71
60
|
return /*#__PURE__*/React.createElement("div", {
|
|
72
61
|
className: styles.goodImgBox,
|
|
73
62
|
key: index
|
|
74
|
-
}, type === "itemCode" && !
|
|
63
|
+
}, type === "itemCode" && !showHeader.includes("picUrl") ? null : (item === null || item === void 0 ? void 0 : item.platform) === "taobao" ? /*#__PURE__*/React.createElement("a", {
|
|
75
64
|
target: "_blank",
|
|
76
65
|
href: item.numIid ? "https://item.taobao.com/item.htm?id=".concat(item.numIid) : "javascript:void(0);"
|
|
77
66
|
}, /*#__PURE__*/React.createElement("img", {
|
|
@@ -89,28 +78,20 @@ export var showImage = function showImage(_ref2) {
|
|
|
89
78
|
},
|
|
90
79
|
src: picUrl
|
|
91
80
|
}), /*#__PURE__*/React.createElement("div", {
|
|
92
|
-
className: styles.options
|
|
81
|
+
className: styles.options,
|
|
82
|
+
onClick: function onClick() {
|
|
83
|
+
console.log("show---", showHeader);
|
|
84
|
+
}
|
|
93
85
|
}, type === "itemId" && /*#__PURE__*/React.createElement(TextTool, {
|
|
94
86
|
title: "商品id",
|
|
95
87
|
text: item.numIid
|
|
96
|
-
}), type === "itemCode" && /*#__PURE__*/React.createElement(React.Fragment, null,
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
title: "商品id",
|
|
104
|
-
text: item.numIid
|
|
105
|
-
}), showHeaderMap.includes("skuId") && /*#__PURE__*/React.createElement(TextTool, {
|
|
106
|
-
title: "SKU ID",
|
|
107
|
-
text: item.skuId
|
|
108
|
-
}), showHeaderMap.includes("outerSkuId") && /*#__PURE__*/React.createElement(TextTool, {
|
|
109
|
-
title: "SKU 编码",
|
|
110
|
-
text: item.outerSkuId
|
|
111
|
-
}), showHeaderMap.includes("propertiesName") && /*#__PURE__*/React.createElement(TextTool, {
|
|
112
|
-
title: "SKU 信息",
|
|
113
|
-
text: item.propertiesName
|
|
88
|
+
}), type === "itemCode" && /*#__PURE__*/React.createElement(React.Fragment, null, showHeader.filter(function (dataIndex) {
|
|
89
|
+
return dataIndex !== "picUrl";
|
|
90
|
+
}).map(function (dataIndex) {
|
|
91
|
+
return /*#__PURE__*/React.createElement(TextTool, {
|
|
92
|
+
title: mapping_itemCode[dataIndex],
|
|
93
|
+
text: item[dataIndex]
|
|
94
|
+
});
|
|
114
95
|
})), (type === "itemThird" || type === "jstItemThird") && (item.itemId || item.supplierItemOuterId) && /*#__PURE__*/React.createElement(TextTool, {
|
|
115
96
|
title: "供应商编码",
|
|
116
97
|
text: item.itemId || item.supplierItemOuterId
|
|
@@ -149,19 +130,7 @@ export var ShowTotalImage = function ShowTotalImage(_ref4) {
|
|
|
149
130
|
_useState2 = _slicedToArray(_useState, 2),
|
|
150
131
|
visible = _useState2[0],
|
|
151
132
|
setVisible = _useState2[1];
|
|
152
|
-
var
|
|
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]);
|
|
133
|
+
var mapping_itemCode = getMapping(columnsGoodsList);
|
|
165
134
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Button, {
|
|
166
135
|
type: "link",
|
|
167
136
|
onClick: function onClick() {
|
|
@@ -185,7 +154,7 @@ export var ShowTotalImage = function ShowTotalImage(_ref4) {
|
|
|
185
154
|
width: "50%"
|
|
186
155
|
},
|
|
187
156
|
key: index
|
|
188
|
-
}, type === "itemCode" && !
|
|
157
|
+
}, type === "itemCode" && !showHeader.includes("picUrl") ? null : /*#__PURE__*/React.createElement("a", {
|
|
189
158
|
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);"),
|
|
190
159
|
target: "__blank",
|
|
191
160
|
style: {
|
|
@@ -206,24 +175,13 @@ export var ShowTotalImage = function ShowTotalImage(_ref4) {
|
|
|
206
175
|
})), /*#__PURE__*/React.createElement("div", null, type === "itemId" && /*#__PURE__*/React.createElement(TextTool, {
|
|
207
176
|
title: "商品id",
|
|
208
177
|
text: i.numIid
|
|
209
|
-
}), type === "itemCode" && /*#__PURE__*/React.createElement(React.Fragment, null,
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
title: "商品id",
|
|
217
|
-
text: i.numIid
|
|
218
|
-
}), showHeaderMap.includes("skuId") && /*#__PURE__*/React.createElement(TextTool, {
|
|
219
|
-
title: "SKU ID",
|
|
220
|
-
text: i.skuId
|
|
221
|
-
}), showHeaderMap.includes("outerSkuId") && /*#__PURE__*/React.createElement(TextTool, {
|
|
222
|
-
title: "SKU 编码",
|
|
223
|
-
text: i.outerSkuId
|
|
224
|
-
}), showHeaderMap.includes("propertiesName") && /*#__PURE__*/React.createElement(TextTool, {
|
|
225
|
-
title: "SKU 信息",
|
|
226
|
-
text: i.propertiesName
|
|
178
|
+
}), type === "itemCode" && /*#__PURE__*/React.createElement(React.Fragment, null, showHeader.filter(function (dataIndex) {
|
|
179
|
+
return dataIndex !== "picUrl";
|
|
180
|
+
}).map(function (dataIndex) {
|
|
181
|
+
return /*#__PURE__*/React.createElement(TextTool, {
|
|
182
|
+
title: mapping_itemCode[dataIndex],
|
|
183
|
+
text: i[dataIndex]
|
|
184
|
+
});
|
|
227
185
|
})), (type === "itemThird" || type === "jstItemThird") && (i.itemId || i.supplierItemOuterId) && /*#__PURE__*/React.createElement(TextTool, {
|
|
228
186
|
title: "供应商编码",
|
|
229
187
|
text: i.itemId || i.supplierItemOuterId
|
|
@@ -253,7 +211,9 @@ export var GoodImage = function GoodImage(_ref5) {
|
|
|
253
211
|
if (isStringArray) {
|
|
254
212
|
dataIndexList = showHeader;
|
|
255
213
|
} else if (isObjectArray) {
|
|
256
|
-
dataIndexList = showHeader.
|
|
214
|
+
dataIndexList = showHeader.filter(function (item) {
|
|
215
|
+
return item.show !== false;
|
|
216
|
+
}).map(function (item) {
|
|
257
217
|
return item.dataIndex;
|
|
258
218
|
});
|
|
259
219
|
}
|
|
@@ -273,7 +233,7 @@ export var GoodImage = function GoodImage(_ref5) {
|
|
|
273
233
|
}), total > initShowTotal && /*#__PURE__*/React.createElement(ShowTotalImage, {
|
|
274
234
|
total: total,
|
|
275
235
|
allImage: list,
|
|
276
|
-
showHeader:
|
|
236
|
+
showHeader: showHeaderMap,
|
|
277
237
|
type: type
|
|
278
238
|
})) : null;
|
|
279
239
|
};
|
|
@@ -307,8 +267,9 @@ export var JstGoodImage = function JstGoodImage(_ref6) {
|
|
|
307
267
|
return SendDataCenter.getInstance(platformType).getSendNameByCode(item.sendName);
|
|
308
268
|
};
|
|
309
269
|
return list !== null && list !== void 0 && list.length ? (list || []).map(function (item, index) {
|
|
310
|
-
var logisticsCompany = item.logisticsCompany
|
|
311
|
-
|
|
270
|
+
var logisticsCompany = item.logisticsCompany,
|
|
271
|
+
logisticsCompanyName = item.logisticsCompanyName;
|
|
272
|
+
var company = platformType === "gy" ? logisticsCompanyName : ExpressData.getInstance(platformType).getExpressNameByCode(logisticsCompany);
|
|
312
273
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Popover, {
|
|
313
274
|
content: content(item, index),
|
|
314
275
|
overlayStyle: {
|
|
@@ -356,23 +317,48 @@ export var BsExpressRender = function BsExpressRender(_ref7) {
|
|
|
356
317
|
export var CommonOrderContent = function CommonOrderContent(_ref8) {
|
|
357
318
|
var _ref8$list = _ref8.list,
|
|
358
319
|
list = _ref8$list === void 0 ? [] : _ref8$list,
|
|
359
|
-
|
|
320
|
+
initValueKey = _ref8.valueKey,
|
|
360
321
|
failValue = _ref8.failValue,
|
|
361
322
|
_ref8$options = _ref8.options,
|
|
362
323
|
options = _ref8$options === void 0 ? [] : _ref8$options,
|
|
363
324
|
_ref8$isShowPopover = _ref8.isShowPopover,
|
|
364
325
|
isShowPopover = _ref8$isShowPopover === void 0 ? true : _ref8$isShowPopover;
|
|
326
|
+
var getContentData = function getContentData(item, index) {
|
|
327
|
+
if (item.platformId) return {
|
|
328
|
+
text: "平台售后单号",
|
|
329
|
+
id: item.platformId
|
|
330
|
+
};
|
|
331
|
+
if (item.returnLogisticsCode) return {
|
|
332
|
+
text: "物流单号",
|
|
333
|
+
id: item.returnLogisticsCode
|
|
334
|
+
};
|
|
335
|
+
return {
|
|
336
|
+
text: "\u7CFB\u7EDF\u8BA2\u5355\u53F7".concat(index + 1),
|
|
337
|
+
id: item.systemOrderId || item.systemOrderNo
|
|
338
|
+
};
|
|
339
|
+
};
|
|
365
340
|
var orderContent = function orderContent(item, index) {
|
|
366
|
-
var
|
|
367
|
-
var leftText = item.platformId ? "平台售后单号" : "系统订单号" + (index + 1);
|
|
341
|
+
var contentData = getContentData(item, index);
|
|
368
342
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
369
343
|
style: {
|
|
370
344
|
textAlign: "center"
|
|
371
345
|
}
|
|
372
|
-
},
|
|
346
|
+
}, contentData.text, "\uFF1A", contentData.id));
|
|
373
347
|
};
|
|
374
348
|
return list !== null && list !== void 0 && list.length ? (list || []).map(function (item, index) {
|
|
375
349
|
var _options$find;
|
|
350
|
+
var valueKey = "";
|
|
351
|
+
if (Array.isArray(initValueKey)) {
|
|
352
|
+
for (var _index = 0; _index < initValueKey.length; _index++) {
|
|
353
|
+
var itemKey = initValueKey[_index];
|
|
354
|
+
if (item[itemKey]) {
|
|
355
|
+
valueKey = itemKey;
|
|
356
|
+
break;
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
} else {
|
|
360
|
+
valueKey = initValueKey;
|
|
361
|
+
}
|
|
376
362
|
var color = ((_options$find = options.find(function (it) {
|
|
377
363
|
return item[valueKey] === it.value;
|
|
378
364
|
})) === null || _options$find === void 0 ? void 0 : _options$find.color) || "#000";
|
|
@@ -390,7 +376,7 @@ export var CommonOrderContent = function CommonOrderContent(_ref8) {
|
|
|
390
376
|
color: "#1890ff",
|
|
391
377
|
cursor: "pointer"
|
|
392
378
|
}
|
|
393
|
-
}, "".concat(item
|
|
379
|
+
}, "".concat(getContentData(item, index).text), ":")) : null, /*#__PURE__*/React.createElement("span", {
|
|
394
380
|
style: {
|
|
395
381
|
color: color
|
|
396
382
|
}
|
|
@@ -470,633 +456,11 @@ export var BsGoodsTable = function BsGoodsTable(_ref11) {
|
|
|
470
456
|
var COLUMNS_MAP = function COLUMNS_MAP() {
|
|
471
457
|
var text = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
|
|
472
458
|
return function (type) {
|
|
473
|
-
var
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
title: "商品名称",
|
|
479
|
-
align: "center",
|
|
480
|
-
ellipsis: true,
|
|
481
|
-
width: 200
|
|
482
|
-
}, {
|
|
483
|
-
dataIndex: "outerId",
|
|
484
|
-
title: "商品编码",
|
|
485
|
-
align: "center",
|
|
486
|
-
ellipsis: true,
|
|
487
|
-
width: 140
|
|
488
|
-
}, {
|
|
489
|
-
dataIndex: "picUrl",
|
|
490
|
-
title: "图片",
|
|
491
|
-
align: "center",
|
|
492
|
-
ellipsis: true,
|
|
493
|
-
width: 100,
|
|
494
|
-
render: function render(val) {
|
|
495
|
-
return /*#__PURE__*/React.createElement(Image, {
|
|
496
|
-
width: 60,
|
|
497
|
-
src: val
|
|
498
|
-
});
|
|
499
|
-
}
|
|
500
|
-
}, {
|
|
501
|
-
dataIndex: "numIid",
|
|
502
|
-
title: "商品id",
|
|
503
|
-
align: "center",
|
|
504
|
-
ellipsis: true,
|
|
505
|
-
width: 200
|
|
506
|
-
}, {
|
|
507
|
-
dataIndex: "skuId",
|
|
508
|
-
title: "SKU ID",
|
|
509
|
-
align: "center",
|
|
510
|
-
ellipsis: true,
|
|
511
|
-
width: 200
|
|
512
|
-
}, {
|
|
513
|
-
dataIndex: "outerSkuId",
|
|
514
|
-
title: "SKU 编码",
|
|
515
|
-
align: "center",
|
|
516
|
-
ellipsis: true,
|
|
517
|
-
width: 100
|
|
518
|
-
}, {
|
|
519
|
-
dataIndex: "propertiesName",
|
|
520
|
-
title: "SKU 信息",
|
|
521
|
-
align: "center",
|
|
522
|
-
ellipsis: true,
|
|
523
|
-
width: 200
|
|
524
|
-
}];
|
|
525
|
-
break;
|
|
526
|
-
case "WDT_REISSUE_GOODS":
|
|
527
|
-
case "WDT_GOODS":
|
|
528
|
-
columns = [{
|
|
529
|
-
dataIndex: "goodId",
|
|
530
|
-
title: "\u5546\u54C1ID",
|
|
531
|
-
align: "center",
|
|
532
|
-
ellipsis: true,
|
|
533
|
-
width: 70
|
|
534
|
-
}, {
|
|
535
|
-
dataIndex: "goodNo",
|
|
536
|
-
title: "\u5546\u54C1\u7F16\u7801",
|
|
537
|
-
align: "center",
|
|
538
|
-
ellipsis: true,
|
|
539
|
-
width: 180
|
|
540
|
-
}, {
|
|
541
|
-
dataIndex: "goodName",
|
|
542
|
-
title: "".concat(text, "\u5546\u54C1\u540D\u79F0"),
|
|
543
|
-
align: "center",
|
|
544
|
-
ellipsis: true,
|
|
545
|
-
width: 250
|
|
546
|
-
}, {
|
|
547
|
-
dataIndex: "specId",
|
|
548
|
-
title: "".concat(text, "SKUID"),
|
|
549
|
-
align: "center",
|
|
550
|
-
ellipsis: true,
|
|
551
|
-
width: 100
|
|
552
|
-
}, {
|
|
553
|
-
dataIndex: "specNo",
|
|
554
|
-
title: "".concat(text, "\u5546\u54C1SKU\u7F16\u7801"),
|
|
555
|
-
align: "center",
|
|
556
|
-
ellipsis: true,
|
|
557
|
-
width: 180
|
|
558
|
-
}, {
|
|
559
|
-
dataIndex: "specName",
|
|
560
|
-
title: "".concat(text, "\u5546\u54C1SKU\u540D\u79F0"),
|
|
561
|
-
align: "center",
|
|
562
|
-
ellipsis: true,
|
|
563
|
-
width: 250
|
|
564
|
-
}, {
|
|
565
|
-
dataIndex: "imgUrl",
|
|
566
|
-
title: "\u56FE\u7247",
|
|
567
|
-
align: "center",
|
|
568
|
-
ellipsis: true,
|
|
569
|
-
width: 100,
|
|
570
|
-
render: function render(val) {
|
|
571
|
-
return /*#__PURE__*/React.createElement(Image, {
|
|
572
|
-
width: 60,
|
|
573
|
-
src: val
|
|
574
|
-
});
|
|
575
|
-
}
|
|
576
|
-
}, {
|
|
577
|
-
dataIndex: "orderPrice",
|
|
578
|
-
title: "\u5B9E\u4ED8\u603B\u91D1\u989D",
|
|
579
|
-
align: "center",
|
|
580
|
-
ellipsis: true,
|
|
581
|
-
width: 100
|
|
582
|
-
}, {
|
|
583
|
-
dataIndex: "num",
|
|
584
|
-
title: "".concat(text, "\u6570\u91CF"),
|
|
585
|
-
align: "center",
|
|
586
|
-
ellipsis: true,
|
|
587
|
-
width: 100
|
|
588
|
-
},
|
|
589
|
-
// {
|
|
590
|
-
// dataIndex: 'actualNum',
|
|
591
|
-
// title: `${text}实发数量`,
|
|
592
|
-
// align: 'center',
|
|
593
|
-
// ellipsis: true,
|
|
594
|
-
// width: 100,
|
|
595
|
-
// },
|
|
596
|
-
{
|
|
597
|
-
dataIndex: "sharePrice",
|
|
598
|
-
title: "\u5206\u644A\u4EF7",
|
|
599
|
-
align: "center",
|
|
600
|
-
ellipsis: true,
|
|
601
|
-
width: 70
|
|
602
|
-
}, {
|
|
603
|
-
dataIndex: "giftType",
|
|
604
|
-
title: "\u8D60\u54C1\u65B9\u5F0F",
|
|
605
|
-
align: "center",
|
|
606
|
-
ellipsis: true,
|
|
607
|
-
width: 100,
|
|
608
|
-
render: function render(val) {
|
|
609
|
-
var giftTypeMap = {
|
|
610
|
-
0: "非赠品",
|
|
611
|
-
1: "自动赠送",
|
|
612
|
-
2: "手工赠送",
|
|
613
|
-
3: "回购自动送赠品",
|
|
614
|
-
4: "前N有礼送赠品",
|
|
615
|
-
6: "天猫优仓赠品",
|
|
616
|
-
7: "淘宝CRM会员送赠"
|
|
617
|
-
};
|
|
618
|
-
return /*#__PURE__*/React.createElement("span", null, giftTypeMap[val]);
|
|
619
|
-
}
|
|
620
|
-
}];
|
|
621
|
-
break;
|
|
622
|
-
case "WDT_RETURN_GOODS":
|
|
623
|
-
{
|
|
624
|
-
columns = [{
|
|
625
|
-
dataIndex: "goodId",
|
|
626
|
-
title: "\u5546\u54C1ID",
|
|
627
|
-
align: "center",
|
|
628
|
-
ellipsis: true,
|
|
629
|
-
width: 70
|
|
630
|
-
}, {
|
|
631
|
-
dataIndex: "goodNo",
|
|
632
|
-
title: "\u5546\u54C1\u7F16\u7801",
|
|
633
|
-
align: "center",
|
|
634
|
-
ellipsis: true,
|
|
635
|
-
width: 180
|
|
636
|
-
}, {
|
|
637
|
-
dataIndex: "goodName",
|
|
638
|
-
title: "".concat(text, "\u5546\u54C1\u540D\u79F0"),
|
|
639
|
-
align: "center",
|
|
640
|
-
ellipsis: true,
|
|
641
|
-
width: 250
|
|
642
|
-
}, {
|
|
643
|
-
dataIndex: "specId",
|
|
644
|
-
title: "".concat(text, "SKUID"),
|
|
645
|
-
align: "center",
|
|
646
|
-
ellipsis: true,
|
|
647
|
-
width: 100
|
|
648
|
-
}, {
|
|
649
|
-
dataIndex: "specNo",
|
|
650
|
-
title: "".concat(text, "\u5546\u54C1SKU\u7F16\u7801"),
|
|
651
|
-
align: "center",
|
|
652
|
-
ellipsis: true,
|
|
653
|
-
width: 180
|
|
654
|
-
}, {
|
|
655
|
-
dataIndex: "specName",
|
|
656
|
-
title: "".concat(text, "\u5546\u54C1SKU\u540D\u79F0"),
|
|
657
|
-
align: "center",
|
|
658
|
-
ellipsis: true,
|
|
659
|
-
width: 250
|
|
660
|
-
}, {
|
|
661
|
-
dataIndex: "num",
|
|
662
|
-
title: "".concat(text, "\u9000\u8D27\u6570\u91CF"),
|
|
663
|
-
align: "center",
|
|
664
|
-
ellipsis: true,
|
|
665
|
-
width: 100
|
|
666
|
-
}, {
|
|
667
|
-
dataIndex: "sharePrice",
|
|
668
|
-
title: "\u5206\u644A\u4EF7",
|
|
669
|
-
align: "center",
|
|
670
|
-
ellipsis: true,
|
|
671
|
-
width: 80
|
|
672
|
-
}, {
|
|
673
|
-
dataIndex: "returnPrice",
|
|
674
|
-
title: "".concat(text, "\u9000\u8D27\u91D1\u989D"),
|
|
675
|
-
align: "center",
|
|
676
|
-
ellipsis: true,
|
|
677
|
-
width: 100
|
|
678
|
-
}, {
|
|
679
|
-
dataIndex: "giftType",
|
|
680
|
-
title: "\u8D60\u54C1\u65B9\u5F0F",
|
|
681
|
-
align: "center",
|
|
682
|
-
ellipsis: true,
|
|
683
|
-
width: 100,
|
|
684
|
-
render: function render(val) {
|
|
685
|
-
var giftTypeMap = {
|
|
686
|
-
0: "非赠品",
|
|
687
|
-
1: "自动赠送",
|
|
688
|
-
2: "手工赠送",
|
|
689
|
-
3: "回购自动送赠品",
|
|
690
|
-
4: "前N有礼送赠品",
|
|
691
|
-
6: "天猫优仓赠品",
|
|
692
|
-
7: "淘宝CRM会员送赠"
|
|
693
|
-
};
|
|
694
|
-
return /*#__PURE__*/React.createElement("span", null, giftTypeMap[val]);
|
|
695
|
-
}
|
|
696
|
-
}, {
|
|
697
|
-
dataIndex: "type",
|
|
698
|
-
title: "".concat(text, "\u5546\u54C1\u7C7B\u578B"),
|
|
699
|
-
align: "center",
|
|
700
|
-
ellipsis: true,
|
|
701
|
-
width: 100,
|
|
702
|
-
render: function render(val) {
|
|
703
|
-
var typeMap = {
|
|
704
|
-
"1": "单品",
|
|
705
|
-
"2": "组合装"
|
|
706
|
-
};
|
|
707
|
-
return /*#__PURE__*/React.createElement("span", null, typeMap[val]);
|
|
708
|
-
}
|
|
709
|
-
}];
|
|
710
|
-
}
|
|
711
|
-
break;
|
|
712
|
-
case "WDT_EXCHANGE_GOODS":
|
|
713
|
-
{
|
|
714
|
-
columns = [{
|
|
715
|
-
dataIndex: "goodId",
|
|
716
|
-
title: "\u5546\u54C1ID",
|
|
717
|
-
align: "center",
|
|
718
|
-
ellipsis: true,
|
|
719
|
-
width: 70
|
|
720
|
-
}, {
|
|
721
|
-
dataIndex: "goodNo",
|
|
722
|
-
title: "\u5546\u54C1\u7F16\u7801",
|
|
723
|
-
align: "center",
|
|
724
|
-
ellipsis: true,
|
|
725
|
-
width: 180
|
|
726
|
-
}, {
|
|
727
|
-
dataIndex: "goodName",
|
|
728
|
-
title: "".concat(text, "\u5546\u54C1\u540D\u79F0"),
|
|
729
|
-
align: "center",
|
|
730
|
-
ellipsis: true,
|
|
731
|
-
width: 250
|
|
732
|
-
}, {
|
|
733
|
-
dataIndex: "specId",
|
|
734
|
-
title: "".concat(text, "SKUID"),
|
|
735
|
-
align: "center",
|
|
736
|
-
ellipsis: true,
|
|
737
|
-
width: 100
|
|
738
|
-
}, {
|
|
739
|
-
dataIndex: "specNo",
|
|
740
|
-
title: "".concat(text, "\u5546\u54C1SKU\u7F16\u7801"),
|
|
741
|
-
align: "center",
|
|
742
|
-
ellipsis: true,
|
|
743
|
-
width: 180
|
|
744
|
-
}, {
|
|
745
|
-
dataIndex: "specName",
|
|
746
|
-
title: "".concat(text, "\u5546\u54C1SKU\u540D\u79F0"),
|
|
747
|
-
align: "center",
|
|
748
|
-
ellipsis: true,
|
|
749
|
-
width: 250
|
|
750
|
-
}, {
|
|
751
|
-
dataIndex: "num",
|
|
752
|
-
title: "".concat(text, "\u6362\u51FA\u6570\u91CF"),
|
|
753
|
-
align: "center",
|
|
754
|
-
ellipsis: true,
|
|
755
|
-
width: 100
|
|
756
|
-
}, {
|
|
757
|
-
dataIndex: "price",
|
|
758
|
-
title: "".concat(text, "\u5546\u54C1\u5355\u4EF7"),
|
|
759
|
-
align: "center",
|
|
760
|
-
ellipsis: true,
|
|
761
|
-
width: 100
|
|
762
|
-
}, {
|
|
763
|
-
dataIndex: "exchangePrice",
|
|
764
|
-
title: "".concat(text, "\u6362\u51FA\u91D1\u989D"),
|
|
765
|
-
align: "center",
|
|
766
|
-
ellipsis: true,
|
|
767
|
-
width: 100
|
|
768
|
-
}, {
|
|
769
|
-
dataIndex: "giftType",
|
|
770
|
-
title: "\u8D60\u54C1\u65B9\u5F0F",
|
|
771
|
-
align: "center",
|
|
772
|
-
ellipsis: true,
|
|
773
|
-
width: 100,
|
|
774
|
-
render: function render(val) {
|
|
775
|
-
var giftTypeMap = {
|
|
776
|
-
0: "非赠品",
|
|
777
|
-
1: "自动赠送",
|
|
778
|
-
2: "手工赠送",
|
|
779
|
-
3: "回购自动送赠品",
|
|
780
|
-
4: "前N有礼送赠品",
|
|
781
|
-
6: "天猫优仓赠品",
|
|
782
|
-
7: "淘宝CRM会员送赠"
|
|
783
|
-
};
|
|
784
|
-
return /*#__PURE__*/React.createElement("span", null, giftTypeMap[val]);
|
|
785
|
-
}
|
|
786
|
-
}, {
|
|
787
|
-
dataIndex: "type",
|
|
788
|
-
title: "".concat(text, "\u5546\u54C1\u7C7B\u578B"),
|
|
789
|
-
align: "center",
|
|
790
|
-
ellipsis: true,
|
|
791
|
-
width: 100,
|
|
792
|
-
render: function render(val) {
|
|
793
|
-
var typeMap = {
|
|
794
|
-
"1": "单品",
|
|
795
|
-
"2": "组合装"
|
|
796
|
-
};
|
|
797
|
-
return /*#__PURE__*/React.createElement("span", null, typeMap[val]);
|
|
798
|
-
}
|
|
799
|
-
}];
|
|
800
|
-
}
|
|
801
|
-
break;
|
|
802
|
-
case "BS_E3_REISSUE_GOODS":
|
|
803
|
-
case "BS_E3_GOODS":
|
|
804
|
-
{
|
|
805
|
-
columns = [{
|
|
806
|
-
dataIndex: "sku",
|
|
807
|
-
title: "SKU",
|
|
808
|
-
align: "center",
|
|
809
|
-
ellipsis: true,
|
|
810
|
-
width: 150
|
|
811
|
-
}, {
|
|
812
|
-
dataIndex: "skuId",
|
|
813
|
-
title: "SKU ID",
|
|
814
|
-
align: "center",
|
|
815
|
-
ellipsis: true,
|
|
816
|
-
width: 150
|
|
817
|
-
}, {
|
|
818
|
-
dataIndex: "goodsName",
|
|
819
|
-
title: "\u5546\u54C1\u540D\u79F0",
|
|
820
|
-
align: "center",
|
|
821
|
-
ellipsis: true,
|
|
822
|
-
width: 150
|
|
823
|
-
}, {
|
|
824
|
-
dataIndex: "goodsShortName",
|
|
825
|
-
title: "\u5546\u54C1\u7B80\u79F0",
|
|
826
|
-
align: "center",
|
|
827
|
-
ellipsis: true,
|
|
828
|
-
width: 100
|
|
829
|
-
}, {
|
|
830
|
-
dataIndex: "picPath",
|
|
831
|
-
title: "\u5546\u54C1\u56FE\u7247",
|
|
832
|
-
align: "center",
|
|
833
|
-
ellipsis: true,
|
|
834
|
-
width: 100,
|
|
835
|
-
render: function render(val) {
|
|
836
|
-
return /*#__PURE__*/React.createElement(Image, {
|
|
837
|
-
width: 60,
|
|
838
|
-
src: val
|
|
839
|
-
});
|
|
840
|
-
}
|
|
841
|
-
}, {
|
|
842
|
-
dataIndex: "goodsSn",
|
|
843
|
-
title: "\u8D27\u53F7",
|
|
844
|
-
align: "center",
|
|
845
|
-
ellipsis: true,
|
|
846
|
-
width: 150
|
|
847
|
-
}, {
|
|
848
|
-
dataIndex: "goodsId",
|
|
849
|
-
title: "\u8D27\u53F7ID",
|
|
850
|
-
align: "center",
|
|
851
|
-
ellipsis: true,
|
|
852
|
-
width: 150
|
|
853
|
-
}, {
|
|
854
|
-
dataIndex: "colorName",
|
|
855
|
-
title: "\u989C\u8272\u540D\u79F0",
|
|
856
|
-
align: "center",
|
|
857
|
-
ellipsis: true,
|
|
858
|
-
width: 100
|
|
859
|
-
}, {
|
|
860
|
-
dataIndex: "colorCode",
|
|
861
|
-
title: "\u989C\u8272\u4EE3\u7801",
|
|
862
|
-
align: "center",
|
|
863
|
-
ellipsis: true,
|
|
864
|
-
width: 150
|
|
865
|
-
}, {
|
|
866
|
-
dataIndex: "sizeName",
|
|
867
|
-
title: "\u5C3A\u7801\u540D\u79F0",
|
|
868
|
-
align: "center",
|
|
869
|
-
ellipsis: true,
|
|
870
|
-
width: 100
|
|
871
|
-
}, {
|
|
872
|
-
dataIndex: "sizeCode",
|
|
873
|
-
title: "\u5C3A\u7801\u4EE3\u7801",
|
|
874
|
-
align: "center",
|
|
875
|
-
ellipsis: true,
|
|
876
|
-
width: 100
|
|
877
|
-
}, {
|
|
878
|
-
dataIndex: "brandName",
|
|
879
|
-
title: "\u54C1\u724C\u540D\u79F0",
|
|
880
|
-
align: "center",
|
|
881
|
-
ellipsis: true,
|
|
882
|
-
width: 150
|
|
883
|
-
}, {
|
|
884
|
-
dataIndex: "goodsNumber",
|
|
885
|
-
title: "\u5546\u54C1\u6570\u91CF",
|
|
886
|
-
align: "center",
|
|
887
|
-
ellipsis: true,
|
|
888
|
-
width: 100
|
|
889
|
-
}, {
|
|
890
|
-
dataIndex: "goodsPrice",
|
|
891
|
-
title: "\u5546\u54C1\u5355\u4EF7",
|
|
892
|
-
align: "center",
|
|
893
|
-
ellipsis: true,
|
|
894
|
-
width: 120
|
|
895
|
-
}, {
|
|
896
|
-
dataIndex: "shopPrice",
|
|
897
|
-
title: "\u5546\u54C1\u7F51\u5E97\u552E\u4EF7",
|
|
898
|
-
align: "center",
|
|
899
|
-
ellipsis: true,
|
|
900
|
-
width: 120
|
|
901
|
-
}, {
|
|
902
|
-
dataIndex: "sharePrice",
|
|
903
|
-
title: "\u5206\u644A\u4EF7",
|
|
904
|
-
align: "center",
|
|
905
|
-
ellipsis: true,
|
|
906
|
-
width: 120
|
|
907
|
-
}, {
|
|
908
|
-
dataIndex: "sharePayment",
|
|
909
|
-
title: "\u5206\u644A\u5B9E\u4ED8\u91D1\u989D",
|
|
910
|
-
align: "center",
|
|
911
|
-
ellipsis: true,
|
|
912
|
-
width: 120
|
|
913
|
-
}, {
|
|
914
|
-
dataIndex: "payment",
|
|
915
|
-
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
916
|
-
align: "center",
|
|
917
|
-
ellipsis: true,
|
|
918
|
-
width: 120
|
|
919
|
-
}, {
|
|
920
|
-
dataIndex: "tcSku",
|
|
921
|
-
title: "\u5957\u9910SKU",
|
|
922
|
-
align: "center",
|
|
923
|
-
ellipsis: true,
|
|
924
|
-
width: 150
|
|
925
|
-
}, {
|
|
926
|
-
dataIndex: "tcGoodsNumber",
|
|
927
|
-
title: "\u5957\u9910\u5957\u6570",
|
|
928
|
-
align: "center",
|
|
929
|
-
ellipsis: true,
|
|
930
|
-
width: 100
|
|
931
|
-
}, {
|
|
932
|
-
dataIndex: "taoCanSingleSl",
|
|
933
|
-
title: "\u5355\u4E2A\u5957\u9910\u6570\u91CF",
|
|
934
|
-
align: "center",
|
|
935
|
-
ellipsis: true,
|
|
936
|
-
width: 100
|
|
937
|
-
}, {
|
|
938
|
-
dataIndex: "isGift",
|
|
939
|
-
title: "\u662F\u5426\u8D60\u54C1",
|
|
940
|
-
align: "center",
|
|
941
|
-
ellipsis: true,
|
|
942
|
-
width: 100,
|
|
943
|
-
render: function render(val) {
|
|
944
|
-
return /*#__PURE__*/React.createElement("span", null, BS_E3_BOOLEAN_STATUS_MAP[val] || val);
|
|
945
|
-
}
|
|
946
|
-
}];
|
|
947
|
-
}
|
|
948
|
-
break;
|
|
949
|
-
case "BS_GOODS":
|
|
950
|
-
columns = [{
|
|
951
|
-
dataIndex: "mark",
|
|
952
|
-
title: "\u5546\u54C1\u6807\u8BB0",
|
|
953
|
-
align: "center",
|
|
954
|
-
ellipsis: true,
|
|
955
|
-
width: 100
|
|
956
|
-
}, {
|
|
957
|
-
dataIndex: "skuName",
|
|
958
|
-
title: "".concat(text, "sku\u540D\u79F0"),
|
|
959
|
-
align: "center",
|
|
960
|
-
ellipsis: true,
|
|
961
|
-
width: 200
|
|
962
|
-
}, {
|
|
963
|
-
dataIndex: "sku",
|
|
964
|
-
title: "".concat(text, "sku\u7F16\u7801"),
|
|
965
|
-
align: "center",
|
|
966
|
-
ellipsis: true,
|
|
967
|
-
width: 100
|
|
968
|
-
}, {
|
|
969
|
-
dataIndex: "name",
|
|
970
|
-
title: "".concat(text, "\u540D\u79F0"),
|
|
971
|
-
align: "center",
|
|
972
|
-
ellipsis: true,
|
|
973
|
-
width: 200
|
|
974
|
-
}, {
|
|
975
|
-
dataIndex: "pic",
|
|
976
|
-
title: "\u56FE\u7247",
|
|
977
|
-
align: "center",
|
|
978
|
-
ellipsis: true,
|
|
979
|
-
width: 100,
|
|
980
|
-
render: function render(val) {
|
|
981
|
-
return /*#__PURE__*/React.createElement(Image, {
|
|
982
|
-
width: 60,
|
|
983
|
-
src: val
|
|
984
|
-
});
|
|
985
|
-
}
|
|
986
|
-
}, {
|
|
987
|
-
dataIndex: "code",
|
|
988
|
-
title: "".concat(text, "\u7F16\u7801"),
|
|
989
|
-
align: "center",
|
|
990
|
-
ellipsis: true,
|
|
991
|
-
width: 100
|
|
992
|
-
}, {
|
|
993
|
-
dataIndex: "money",
|
|
994
|
-
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
995
|
-
align: "center",
|
|
996
|
-
ellipsis: true,
|
|
997
|
-
width: 100
|
|
998
|
-
}, {
|
|
999
|
-
dataIndex: "number",
|
|
1000
|
-
title: "".concat(text, "\u6570\u91CF"),
|
|
1001
|
-
align: "center",
|
|
1002
|
-
ellipsis: true,
|
|
1003
|
-
width: 100
|
|
1004
|
-
}, {
|
|
1005
|
-
dataIndex: "share",
|
|
1006
|
-
title: "\u5206\u644A\u4EF7",
|
|
1007
|
-
align: "center",
|
|
1008
|
-
ellipsis: true,
|
|
1009
|
-
width: 70
|
|
1010
|
-
}, {
|
|
1011
|
-
dataIndex: "type",
|
|
1012
|
-
title: "\u8D60\u54C1\u7C7B\u578B",
|
|
1013
|
-
align: "center",
|
|
1014
|
-
ellipsis: true,
|
|
1015
|
-
width: 100
|
|
1016
|
-
}, {
|
|
1017
|
-
dataIndex: "batch",
|
|
1018
|
-
title: "\u6279\u6B21\u53F7",
|
|
1019
|
-
align: "center",
|
|
1020
|
-
ellipsis: true,
|
|
1021
|
-
width: 100
|
|
1022
|
-
}, {
|
|
1023
|
-
dataIndex: "expireDate",
|
|
1024
|
-
title: "\u6709\u6548\u671F",
|
|
1025
|
-
align: "center",
|
|
1026
|
-
ellipsis: true,
|
|
1027
|
-
width: 100
|
|
1028
|
-
}];
|
|
1029
|
-
break;
|
|
1030
|
-
default:
|
|
1031
|
-
columns = [{
|
|
1032
|
-
dataIndex: "mark",
|
|
1033
|
-
title: "\u5546\u54C1\u6807\u8BB0",
|
|
1034
|
-
align: "center",
|
|
1035
|
-
ellipsis: true,
|
|
1036
|
-
width: 100
|
|
1037
|
-
}, {
|
|
1038
|
-
dataIndex: "skuName",
|
|
1039
|
-
title: "".concat(text, "sku\u540D\u79F0"),
|
|
1040
|
-
align: "center",
|
|
1041
|
-
ellipsis: true,
|
|
1042
|
-
width: 200
|
|
1043
|
-
}, {
|
|
1044
|
-
dataIndex: "sku",
|
|
1045
|
-
title: "".concat(text, "sku\u7F16\u7801"),
|
|
1046
|
-
align: "center",
|
|
1047
|
-
ellipsis: true,
|
|
1048
|
-
width: 100
|
|
1049
|
-
}, {
|
|
1050
|
-
dataIndex: "name",
|
|
1051
|
-
title: "".concat(text, "\u540D\u79F0"),
|
|
1052
|
-
align: "center",
|
|
1053
|
-
ellipsis: true,
|
|
1054
|
-
width: 200
|
|
1055
|
-
}, {
|
|
1056
|
-
dataIndex: "pic",
|
|
1057
|
-
title: "\u56FE\u7247",
|
|
1058
|
-
align: "center",
|
|
1059
|
-
ellipsis: true,
|
|
1060
|
-
width: 100,
|
|
1061
|
-
render: function render(val) {
|
|
1062
|
-
return /*#__PURE__*/React.createElement(Image, {
|
|
1063
|
-
width: 60,
|
|
1064
|
-
src: val
|
|
1065
|
-
});
|
|
1066
|
-
}
|
|
1067
|
-
}, {
|
|
1068
|
-
dataIndex: "code",
|
|
1069
|
-
title: "".concat(text, "\u7F16\u7801"),
|
|
1070
|
-
align: "center",
|
|
1071
|
-
ellipsis: true,
|
|
1072
|
-
width: 100
|
|
1073
|
-
}, {
|
|
1074
|
-
dataIndex: "money",
|
|
1075
|
-
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
1076
|
-
align: "center",
|
|
1077
|
-
ellipsis: true,
|
|
1078
|
-
width: 100
|
|
1079
|
-
}, {
|
|
1080
|
-
dataIndex: "number",
|
|
1081
|
-
title: "".concat(text, "\u6570\u91CF"),
|
|
1082
|
-
align: "center",
|
|
1083
|
-
ellipsis: true,
|
|
1084
|
-
width: 100
|
|
1085
|
-
}, {
|
|
1086
|
-
dataIndex: "share",
|
|
1087
|
-
title: "\u5206\u644A\u4EF7",
|
|
1088
|
-
align: "center",
|
|
1089
|
-
ellipsis: true,
|
|
1090
|
-
width: 70
|
|
1091
|
-
}, {
|
|
1092
|
-
dataIndex: "type",
|
|
1093
|
-
title: "\u8D60\u54C1\u7C7B\u578B",
|
|
1094
|
-
align: "center",
|
|
1095
|
-
ellipsis: true,
|
|
1096
|
-
width: 100
|
|
1097
|
-
}];
|
|
1098
|
-
}
|
|
1099
|
-
return columns;
|
|
459
|
+
var _columnsMap$type;
|
|
460
|
+
var columnsMap = getColumnsMap({
|
|
461
|
+
text: text
|
|
462
|
+
});
|
|
463
|
+
return (_columnsMap$type = columnsMap[type]) !== null && _columnsMap$type !== void 0 ? _columnsMap$type : columnsMap["default"];
|
|
1100
464
|
};
|
|
1101
465
|
};
|
|
1102
466
|
//商品信息
|
|
@@ -1271,123 +635,20 @@ export var BsSystemOrderTable = function BsSystemOrderTable(_ref13) {
|
|
|
1271
635
|
var value = _ref13.value,
|
|
1272
636
|
type = _ref13.type;
|
|
1273
637
|
var columnMap = {
|
|
1274
|
-
BS_SYSTEM_ORDER:
|
|
1275
|
-
dataIndex: "billType",
|
|
1276
|
-
title: "订单类型"
|
|
1277
|
-
}, {
|
|
1278
|
-
dataIndex: "billNo",
|
|
1279
|
-
title: "系统订单号"
|
|
1280
|
-
}, {
|
|
1281
|
-
dataIndex: "billTag",
|
|
1282
|
-
title: "标签"
|
|
1283
|
-
}, {
|
|
1284
|
-
title: "主播名称",
|
|
1285
|
-
dataIndex: "authorName"
|
|
1286
|
-
}, {
|
|
1287
|
-
title: "主播ID",
|
|
1288
|
-
dataIndex: "authorId"
|
|
1289
|
-
}
|
|
1290
|
-
// {
|
|
1291
|
-
// title: '直播活动',
|
|
1292
|
-
// dataIndex: 'liveActivites',
|
|
1293
|
-
// },
|
|
1294
|
-
],
|
|
1295
|
-
|
|
638
|
+
BS_SYSTEM_ORDER: BS_SYSTEM_ORDER_CONFIG.columns,
|
|
1296
639
|
KM_SYSTEM_ORDER: KM_SYSTEM_ORDER_CONFIG.columns,
|
|
1297
|
-
WLN_SYSTEM_ORDER:
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
dataIndex: "billNo",
|
|
1302
|
-
title: "系统订单号"
|
|
1303
|
-
}, {
|
|
1304
|
-
dataIndex: "billTag",
|
|
1305
|
-
title: "标签"
|
|
1306
|
-
}],
|
|
1307
|
-
WDT_SYSTEM_ORDER: [{
|
|
1308
|
-
dataIndex: "billType",
|
|
1309
|
-
title: "订单类型"
|
|
1310
|
-
}, {
|
|
1311
|
-
dataIndex: "billNo",
|
|
1312
|
-
title: "系统订单号"
|
|
1313
|
-
}, {
|
|
1314
|
-
dataIndex: "billTag",
|
|
1315
|
-
title: "订单标签"
|
|
1316
|
-
}],
|
|
1317
|
-
BS_E3_SYSTEM_ORDER: [{
|
|
1318
|
-
title: "系统订单号",
|
|
1319
|
-
dataIndex: "orderSn",
|
|
1320
|
-
width: 150,
|
|
1321
|
-
ellipsis: true
|
|
1322
|
-
}, {
|
|
1323
|
-
title: "订单状态",
|
|
1324
|
-
dataIndex: "orderStatus",
|
|
1325
|
-
width: 100,
|
|
1326
|
-
ellipsis: true,
|
|
1327
|
-
render: function render(val) {
|
|
1328
|
-
return /*#__PURE__*/React.createElement("span", null, BS_E3_ORDER_STATUS_MAP[val] || val);
|
|
1329
|
-
}
|
|
1330
|
-
}, {
|
|
1331
|
-
title: "是否被拆分",
|
|
1332
|
-
dataIndex: "isSplit",
|
|
1333
|
-
width: 100,
|
|
1334
|
-
ellipsis: true,
|
|
1335
|
-
render: function render(val) {
|
|
1336
|
-
return /*#__PURE__*/React.createElement("span", null, BS_E3_BOOLEAN_STATUS_MAP[val] || val);
|
|
1337
|
-
}
|
|
1338
|
-
}, {
|
|
1339
|
-
title: "是否拆分子单",
|
|
1340
|
-
dataIndex: "isSplitNew",
|
|
1341
|
-
width: 100,
|
|
1342
|
-
ellipsis: true,
|
|
1343
|
-
render: function render(val) {
|
|
1344
|
-
return /*#__PURE__*/React.createElement("span", null, BS_E3_BOOLEAN_STATUS_MAP[val] || val);
|
|
1345
|
-
}
|
|
1346
|
-
}, {
|
|
1347
|
-
title: "是否被合并",
|
|
1348
|
-
dataIndex: "isCombine",
|
|
1349
|
-
width: 100,
|
|
1350
|
-
ellipsis: true,
|
|
1351
|
-
render: function render(val) {
|
|
1352
|
-
return /*#__PURE__*/React.createElement("span", null, BS_E3_BOOLEAN_STATUS_MAP[val] || val);
|
|
1353
|
-
}
|
|
1354
|
-
}, {
|
|
1355
|
-
title: "是否合并新单",
|
|
1356
|
-
dataIndex: "isCombineNew",
|
|
1357
|
-
width: 100,
|
|
1358
|
-
ellipsis: true,
|
|
1359
|
-
render: function render(val) {
|
|
1360
|
-
return /*#__PURE__*/React.createElement("span", null, BS_E3_BOOLEAN_STATUS_MAP[val] || val);
|
|
1361
|
-
}
|
|
1362
|
-
}, {
|
|
1363
|
-
title: "是否复制单",
|
|
1364
|
-
dataIndex: "isCopy",
|
|
1365
|
-
width: 100,
|
|
1366
|
-
ellipsis: true,
|
|
1367
|
-
render: function render(val) {
|
|
1368
|
-
return /*#__PURE__*/React.createElement("span", null, BS_E3_BOOLEAN_STATUS_MAP[val] || val);
|
|
1369
|
-
}
|
|
1370
|
-
}, {
|
|
1371
|
-
title: "是否换货单",
|
|
1372
|
-
dataIndex: "isExchangeOrder",
|
|
1373
|
-
width: 100,
|
|
1374
|
-
ellipsis: true,
|
|
1375
|
-
render: function render(val) {
|
|
1376
|
-
return /*#__PURE__*/React.createElement("span", null, BS_E3_BOOLEAN_STATUS_MAP[val] || val);
|
|
1377
|
-
}
|
|
1378
|
-
}, {
|
|
1379
|
-
title: "订单备注",
|
|
1380
|
-
dataIndex: "orderMsg",
|
|
1381
|
-
width: 100,
|
|
1382
|
-
ellipsis: true
|
|
1383
|
-
}]
|
|
640
|
+
WLN_SYSTEM_ORDER: WLN_SYSTEM_ORDER_CONFIG.columns,
|
|
641
|
+
WDT_SYSTEM_ORDER: WDT_SYSTEM_ORDER_CONFIG.columns,
|
|
642
|
+
BS_E3_SYSTEM_ORDER: BS_E3_SYSTEM_ORDER_CONFIG.columns,
|
|
643
|
+
GY_SYSTEM_ORDER: GY_SYSTEM_ORDER_CONFIG.columns
|
|
1384
644
|
};
|
|
1385
645
|
var rowKeyMap = {
|
|
1386
646
|
BS_SYSTEM_ORDER: "billNo",
|
|
1387
647
|
KM_SYSTEM_ORDER: "billNo",
|
|
1388
648
|
WLN_SYSTEM_ORDER: "billNo",
|
|
1389
649
|
WDT_SYSTEM_ORDER: "billNo",
|
|
1390
|
-
BS_E3_SYSTEM_ORDER: "orderSn"
|
|
650
|
+
BS_E3_SYSTEM_ORDER: "orderSn",
|
|
651
|
+
GY_SYSTEM_ORDER: "billNo"
|
|
1391
652
|
};
|
|
1392
653
|
var rowSelection = {
|
|
1393
654
|
selectedRowKeys: (value === null || value === void 0 ? void 0 : value.selectIds) || ((value === null || value === void 0 ? void 0 : value.showOrderInfo) || []).reduce(function (prv, next) {
|
|
@@ -1434,15 +695,6 @@ export var MsgContent = function MsgContent(_ref14) {
|
|
|
1434
695
|
failValue = _ref14.failValue,
|
|
1435
696
|
_ref14$options = _ref14.options,
|
|
1436
697
|
options = _ref14$options === void 0 ? [] : _ref14$options;
|
|
1437
|
-
var msgTypeCh = {
|
|
1438
|
-
ding: "钉钉",
|
|
1439
|
-
wechat: "微信",
|
|
1440
|
-
qq: "QQ",
|
|
1441
|
-
qywx: "企业微信",
|
|
1442
|
-
YZDKH: "邮政拦截",
|
|
1443
|
-
YT: "圆通拦截",
|
|
1444
|
-
feishu: "飞书"
|
|
1445
|
-
};
|
|
1446
698
|
var getColorByStatus = function getColorByStatus(value) {
|
|
1447
699
|
var _options$find2;
|
|
1448
700
|
return ((_options$find2 = options.find(function (innerItem) {
|