@kmkf-fe-packages/services-components 0.28.2-rc.9 → 0.29.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/dist/esm/commonComponents/CopyText/index.d.ts +7 -0
- package/dist/esm/commonComponents/CopyText/index.js +14 -0
- package/dist/esm/commonComponents/GlobalContext/index.d.ts +1 -1
- package/dist/esm/commonComponents/GlobalContext/index.js +8 -5
- package/dist/esm/commonComponents/PlatBuyer/index.d.ts +1 -1
- package/dist/esm/commonComponents/PlatBuyer/index.js +4 -17
- package/dist/esm/commonComponents/QueryLogisticsTrack/index.d.ts +1 -1
- package/dist/esm/commonComponents/QueryLogisticsTrack/index.js +21 -15
- package/dist/esm/components/BS/BsLogistics/index.js +12 -7
- package/dist/esm/components/BS/BsReissue/index.js +7 -7
- package/dist/esm/components/BS/common/BsMemo.js +2 -1
- package/dist/esm/components/BS/common/BsType.js +2 -1
- package/dist/esm/components/BS/common/SystemOrderNo.d.ts +26 -0
- package/dist/esm/components/BS/common/SystemOrderNo.js +94 -0
- package/dist/esm/components/BS/common/expressCompany.d.ts +4 -1
- package/dist/esm/components/BS/common/expressCompany.js +5 -2
- package/dist/esm/components/BS/common/index.d.ts +1 -0
- package/dist/esm/components/BS/common/index.js +2 -1
- package/dist/esm/components/Common/index.d.ts +2 -2
- package/dist/esm/components/Common/index.js +353 -177
- package/dist/esm/components/CommonHeaderGood/index.js +168 -0
- package/dist/esm/components/CommonTradeId/index.d.ts +5 -6
- package/dist/esm/components/CommonTradeId/index.js +15 -26
- package/dist/esm/components/ErpTradeId/components/OrderNum/index.d.ts +1 -0
- package/dist/esm/components/ErpTradeId/components/OrderNum/index.js +7 -7
- package/dist/esm/components/ErpTradeId/components/OrderNum/{index.module.scss → index.less} +2 -2
- package/dist/esm/components/ExpressCode/index.d.ts +2 -2
- package/dist/esm/components/ExpressCode/index.js +9 -5
- package/dist/esm/components/FlowWorkOrderId/index.d.ts +2 -3
- package/dist/esm/components/FlowWorkOrderId/index.js +4 -18
- package/dist/esm/components/JST/JstLogistics/index.js +16 -11
- package/dist/esm/components/JST/JstSendGood/index.js +8 -5
- package/dist/esm/components/LogisticsInterception/index.d.ts +16 -4
- package/dist/esm/components/LogisticsInterception/index.js +6 -11
- package/dist/esm/components/LogisticsMoreInterception/index.d.ts +13 -13
- package/dist/esm/components/LogisticsMoreInterception/index.js +17 -14
- package/dist/esm/components/LogisticsMoreInterception/{interceptItem.d.ts → interceptCode.d.ts} +2 -2
- package/dist/esm/components/LogisticsMoreInterception/{interceptItem.js → interceptCode.js} +7 -4
- package/dist/esm/components/LogisticsMoreTrajectory/index.d.ts +3 -3
- package/dist/esm/components/LogisticsMoreTrajectory/index.js +16 -7
- package/dist/esm/components/LogisticsMoreTrajectory/trajectoryLastLogisticsInfo.d.ts +30 -0
- package/dist/esm/components/{LogisticsInterception/InterceptState.js → LogisticsMoreTrajectory/trajectoryLastLogisticsInfo.js} +37 -46
- package/dist/esm/components/LogisticsMoreTrajectory/trajectoryLastUpdateTime.d.ts +29 -0
- package/dist/esm/components/LogisticsMoreTrajectory/trajectoryLastUpdateTime.js +77 -0
- package/dist/esm/components/LogisticsMoreTrajectory/trajectoryStatus.d.ts +32 -0
- package/dist/esm/components/LogisticsMoreTrajectory/trajectoryStatus.js +96 -0
- package/dist/esm/components/LogisticsTrajectory/index.js +2 -1
- package/dist/esm/components/LogisticsTrajectory/trajectoryStatus.d.ts +3 -1
- package/dist/esm/components/LogisticsTrajectory/trajectoryStatus.js +4 -4
- package/dist/esm/components/Payment/PaymentTid.d.ts +2 -2
- package/dist/esm/components/Payment/PaymentTid.js +14 -3
- package/dist/esm/components/TradeId/index.d.ts +0 -1
- package/dist/esm/components/TradeId/index.js +7 -19
- package/dist/esm/components/WDT/WdtExchange/index.d.ts +35 -0
- package/dist/esm/components/WDT/WdtExchange/index.js +183 -0
- package/dist/esm/components/WDT/WdtRessuie/index.d.ts +58 -0
- package/dist/esm/components/WDT/WdtRessuie/index.js +185 -0
- package/dist/esm/components/WDT/WdtReturn/index.d.ts +54 -0
- package/dist/esm/components/WDT/WdtReturn/index.js +150 -0
- package/dist/esm/components/WorkOrderId/index.d.ts +2 -3
- package/dist/esm/components/WorkOrderId/index.js +4 -18
- package/dist/esm/factory.d.ts +2 -2
- package/dist/esm/factory.js +10 -2
- package/dist/esm/index.d.ts +6 -3
- package/dist/esm/index.js +3 -0
- package/dist/esm/service/api.d.ts +2 -0
- package/dist/esm/service/api.js +13 -1
- package/dist/esm/type.d.ts +4 -2
- package/package.json +4 -4
- package/dist/esm/components/LogisticsInterception/InterceptState.d.ts +0 -37
|
@@ -14,11 +14,12 @@ 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 } from "@kmkf-fe-packages/kmkf-utils";
|
|
17
|
+
import { ExpressData, WdtSendData } 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
|
+
import CopyText from "../../commonComponents/CopyText";
|
|
22
23
|
var Paragraph = Typography.Paragraph;
|
|
23
24
|
export var getFormItem = function getFormItem(_ref) {
|
|
24
25
|
var name = _ref.name,
|
|
@@ -37,7 +38,7 @@ export var getFormItem = function getFormItem(_ref) {
|
|
|
37
38
|
return /*#__PURE__*/React.createElement("div", {
|
|
38
39
|
className: "form-item--wrap",
|
|
39
40
|
style: {
|
|
40
|
-
position:
|
|
41
|
+
position: 'relative'
|
|
41
42
|
}
|
|
42
43
|
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
43
44
|
name: name,
|
|
@@ -52,58 +53,58 @@ export var showImage = function showImage(_ref2) {
|
|
|
52
53
|
type = _ref2.type,
|
|
53
54
|
index = _ref2.index,
|
|
54
55
|
showHeader = _ref2.showHeader;
|
|
55
|
-
var picUrl = item.picUrl ? (item === null || item === void 0 ? void 0 : item.platform) !==
|
|
56
|
+
var picUrl = item.picUrl ? (item === null || item === void 0 ? void 0 : item.platform) !== 'tabao' ? item.picUrl : item.picUrl + '_40x40.jpg' : defaultImg;
|
|
56
57
|
return /*#__PURE__*/React.createElement("div", {
|
|
57
58
|
className: styles.goodImgBox,
|
|
58
59
|
key: index
|
|
59
|
-
}, type ===
|
|
60
|
+
}, type === 'itemCode' && !showHeader.includes('picUrl') ? null : (item === null || item === void 0 ? void 0 : item.platform) === 'taobao' ? /*#__PURE__*/React.createElement("a", {
|
|
60
61
|
target: "_blank",
|
|
61
|
-
href: item.numIid ? "https://item.taobao.com/item.htm?id=".concat(item.numIid) :
|
|
62
|
+
href: item.numIid ? "https://item.taobao.com/item.htm?id=".concat(item.numIid) : 'javascript:void(0);'
|
|
62
63
|
}, /*#__PURE__*/React.createElement("img", {
|
|
63
64
|
style: {
|
|
64
|
-
width:
|
|
65
|
-
height:
|
|
66
|
-
objectFit:
|
|
65
|
+
width: '40px',
|
|
66
|
+
height: '40px',
|
|
67
|
+
objectFit: 'contain'
|
|
67
68
|
},
|
|
68
69
|
src: picUrl
|
|
69
70
|
})) : /*#__PURE__*/React.createElement("img", {
|
|
70
71
|
style: {
|
|
71
|
-
width:
|
|
72
|
-
height:
|
|
73
|
-
objectFit:
|
|
72
|
+
width: '40px',
|
|
73
|
+
height: '40px',
|
|
74
|
+
objectFit: 'contain'
|
|
74
75
|
},
|
|
75
76
|
src: picUrl
|
|
76
77
|
}), /*#__PURE__*/React.createElement("div", {
|
|
77
78
|
className: styles.options
|
|
78
|
-
}, type ===
|
|
79
|
-
title:
|
|
79
|
+
}, type === 'itemId' && /*#__PURE__*/React.createElement(TextTool, {
|
|
80
|
+
title: '商品id',
|
|
80
81
|
text: item.numIid
|
|
81
|
-
}), type ===
|
|
82
|
-
title:
|
|
82
|
+
}), type === 'itemCode' && /*#__PURE__*/React.createElement(React.Fragment, null, showHeader.includes('title') && /*#__PURE__*/React.createElement(TextTool, {
|
|
83
|
+
title: '商品名称',
|
|
83
84
|
text: item.title
|
|
84
|
-
}), showHeader.includes(
|
|
85
|
-
title:
|
|
85
|
+
}), showHeader.includes('outerId') && /*#__PURE__*/React.createElement(TextTool, {
|
|
86
|
+
title: '商品编码',
|
|
86
87
|
text: item.outerId
|
|
87
|
-
}), showHeader.includes(
|
|
88
|
-
title:
|
|
88
|
+
}), showHeader.includes('numIid') && /*#__PURE__*/React.createElement(TextTool, {
|
|
89
|
+
title: '商品id',
|
|
89
90
|
text: item.numIid
|
|
90
|
-
}), showHeader.includes(
|
|
91
|
-
title:
|
|
91
|
+
}), showHeader.includes('skuId') && /*#__PURE__*/React.createElement(TextTool, {
|
|
92
|
+
title: 'SKU ID',
|
|
92
93
|
text: item.skuId
|
|
93
|
-
}), showHeader.includes(
|
|
94
|
-
title:
|
|
94
|
+
}), showHeader.includes('outerSkuId') && /*#__PURE__*/React.createElement(TextTool, {
|
|
95
|
+
title: 'SKU 编码',
|
|
95
96
|
text: item.outerSkuId
|
|
96
|
-
}), showHeader.includes(
|
|
97
|
-
title:
|
|
97
|
+
}), showHeader.includes('propertiesName') && /*#__PURE__*/React.createElement(TextTool, {
|
|
98
|
+
title: 'SKU 信息',
|
|
98
99
|
text: item.propertiesName
|
|
99
|
-
})), (type ===
|
|
100
|
-
title:
|
|
100
|
+
})), (type === 'itemThird' || type === 'jstItemThird') && (item.itemId || item.supplierItemOuterId) && /*#__PURE__*/React.createElement(TextTool, {
|
|
101
|
+
title: '供应商编码',
|
|
101
102
|
text: item.itemId || item.supplierItemOuterId
|
|
102
|
-
}), (type ===
|
|
103
|
-
title:
|
|
103
|
+
}), (type === 'itemThird' || type === 'jstItemThird') && item.supplierName && /*#__PURE__*/React.createElement(TextTool, {
|
|
104
|
+
title: '供应商名称',
|
|
104
105
|
text: item.supplierName
|
|
105
|
-
}), type !==
|
|
106
|
-
title:
|
|
106
|
+
}), type !== 'itemCode' && item.propertiesName && /*#__PURE__*/React.createElement(TextTool, {
|
|
107
|
+
title: '规格',
|
|
107
108
|
text: item.propertiesName
|
|
108
109
|
})));
|
|
109
110
|
};
|
|
@@ -116,9 +117,9 @@ var TextTool = function TextTool(_ref3) {
|
|
|
116
117
|
title: text
|
|
117
118
|
}, /*#__PURE__*/React.createElement("div", {
|
|
118
119
|
style: {
|
|
119
|
-
overflow:
|
|
120
|
-
whiteSpace:
|
|
121
|
-
textOverflow:
|
|
120
|
+
overflow: 'hidden',
|
|
121
|
+
whiteSpace: 'nowrap',
|
|
122
|
+
textOverflow: 'ellipsis'
|
|
122
123
|
}
|
|
123
124
|
}, title, ":", text));
|
|
124
125
|
};
|
|
@@ -148,62 +149,62 @@ export var ShowTotalImage = function ShowTotalImage(_ref4) {
|
|
|
148
149
|
title: "\u6240\u6709\u9009\u62E9\u5B9D\u8D1D"
|
|
149
150
|
}, /*#__PURE__*/React.createElement("div", {
|
|
150
151
|
style: {
|
|
151
|
-
display:
|
|
152
|
-
flexWrap:
|
|
152
|
+
display: 'flex',
|
|
153
|
+
flexWrap: 'wrap'
|
|
153
154
|
}
|
|
154
155
|
}, allImage.map(function (i, index) {
|
|
155
156
|
return /*#__PURE__*/React.createElement("div", {
|
|
156
157
|
style: {
|
|
157
|
-
width:
|
|
158
|
+
width: '50%'
|
|
158
159
|
},
|
|
159
160
|
key: index
|
|
160
|
-
}, type ===
|
|
161
|
-
href: i.link || ((i === null || i === void 0 ? void 0 : i.platform) ===
|
|
161
|
+
}, type === 'itemCode' && !showHeader.includes('picUrl') ? null : /*#__PURE__*/React.createElement("a", {
|
|
162
|
+
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);'),
|
|
162
163
|
target: "__blank",
|
|
163
164
|
style: {
|
|
164
|
-
marginRight:
|
|
165
|
-
marginTop:
|
|
166
|
-
padding:
|
|
167
|
-
border:
|
|
168
|
-
display:
|
|
165
|
+
marginRight: '12px',
|
|
166
|
+
marginTop: '8px',
|
|
167
|
+
padding: '2px',
|
|
168
|
+
border: '1px dashed #ccc',
|
|
169
|
+
display: 'inline-block'
|
|
169
170
|
}
|
|
170
171
|
}, /*#__PURE__*/React.createElement("img", {
|
|
171
172
|
alt: "",
|
|
172
173
|
src: i.picUrl || defaultImg,
|
|
173
174
|
style: {
|
|
174
|
-
width:
|
|
175
|
-
height:
|
|
176
|
-
objectFit:
|
|
175
|
+
width: '72px',
|
|
176
|
+
height: '72px',
|
|
177
|
+
objectFit: 'contain'
|
|
177
178
|
}
|
|
178
|
-
})), /*#__PURE__*/React.createElement("div", null, type ===
|
|
179
|
-
title:
|
|
179
|
+
})), /*#__PURE__*/React.createElement("div", null, type === 'itemId' && /*#__PURE__*/React.createElement(TextTool, {
|
|
180
|
+
title: '商品id',
|
|
180
181
|
text: i.numIid
|
|
181
|
-
}), type ===
|
|
182
|
-
title:
|
|
182
|
+
}), type === 'itemCode' && /*#__PURE__*/React.createElement(React.Fragment, null, showHeader.includes('title') && /*#__PURE__*/React.createElement(TextTool, {
|
|
183
|
+
title: '商品名称',
|
|
183
184
|
text: i.title
|
|
184
|
-
}), showHeader.includes(
|
|
185
|
-
title:
|
|
185
|
+
}), showHeader.includes('outerId') && /*#__PURE__*/React.createElement(TextTool, {
|
|
186
|
+
title: '商品编码',
|
|
186
187
|
text: i.outerId
|
|
187
|
-
}), showHeader.includes(
|
|
188
|
-
title:
|
|
188
|
+
}), showHeader.includes('numIid') && /*#__PURE__*/React.createElement(TextTool, {
|
|
189
|
+
title: '商品id',
|
|
189
190
|
text: i.numIid
|
|
190
|
-
}), showHeader.includes(
|
|
191
|
-
title:
|
|
191
|
+
}), showHeader.includes('skuId') && /*#__PURE__*/React.createElement(TextTool, {
|
|
192
|
+
title: 'SKU ID',
|
|
192
193
|
text: i.skuId
|
|
193
|
-
}), showHeader.includes(
|
|
194
|
-
title:
|
|
194
|
+
}), showHeader.includes('outerSkuId') && /*#__PURE__*/React.createElement(TextTool, {
|
|
195
|
+
title: 'SKU 编码',
|
|
195
196
|
text: i.outerSkuId
|
|
196
|
-
}), showHeader.includes(
|
|
197
|
-
title:
|
|
197
|
+
}), showHeader.includes('propertiesName') && /*#__PURE__*/React.createElement(TextTool, {
|
|
198
|
+
title: 'SKU 信息',
|
|
198
199
|
text: i.propertiesName
|
|
199
|
-
})), (type ===
|
|
200
|
-
title:
|
|
200
|
+
})), (type === 'itemThird' || type === 'jstItemThird') && (i.itemId || i.supplierItemOuterId) && /*#__PURE__*/React.createElement(TextTool, {
|
|
201
|
+
title: '供应商编码',
|
|
201
202
|
text: i.itemId || i.supplierItemOuterId
|
|
202
|
-
}), (type ===
|
|
203
|
-
title:
|
|
203
|
+
}), (type === 'itemThird' || type === 'jstItemThird') && i.supplierName && /*#__PURE__*/React.createElement(TextTool, {
|
|
204
|
+
title: '供应商名称',
|
|
204
205
|
text: i.supplierName
|
|
205
|
-
}), type !==
|
|
206
|
-
title:
|
|
206
|
+
}), type !== 'itemCode' && i.propertiesName && /*#__PURE__*/React.createElement(TextTool, {
|
|
207
|
+
title: '规格',
|
|
207
208
|
text: i.propertiesName
|
|
208
209
|
})));
|
|
209
210
|
}))));
|
|
@@ -213,14 +214,14 @@ export var GoodImage = function GoodImage(_ref5) {
|
|
|
213
214
|
var _list$slice;
|
|
214
215
|
var list = _ref5.list,
|
|
215
216
|
_ref5$type = _ref5.type,
|
|
216
|
-
type = _ref5$type === void 0 ?
|
|
217
|
+
type = _ref5$type === void 0 ? '' : _ref5$type,
|
|
217
218
|
_ref5$showHeader = _ref5.showHeader,
|
|
218
219
|
showHeader = _ref5$showHeader === void 0 ? [] : _ref5$showHeader;
|
|
219
220
|
var total = (list === null || list === void 0 ? void 0 : list.length) || 0;
|
|
220
221
|
var initShowTotal = 3;
|
|
221
222
|
return (list === null || list === void 0 ? void 0 : list.length) > 0 ? /*#__PURE__*/React.createElement("div", {
|
|
222
223
|
style: {
|
|
223
|
-
display: type ===
|
|
224
|
+
display: type === 'itemSelect' ? 'flex' : 'block'
|
|
224
225
|
}
|
|
225
226
|
}, 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) {
|
|
226
227
|
return showImage({
|
|
@@ -239,7 +240,7 @@ export var GoodImage = function GoodImage(_ref5) {
|
|
|
239
240
|
var content = function content(item, index) {
|
|
240
241
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
241
242
|
style: {
|
|
242
|
-
textAlign:
|
|
243
|
+
textAlign: 'center'
|
|
243
244
|
}
|
|
244
245
|
}, "\u5305\u88F9".concat(index + 1, "\u5546\u54C1\u4FE1\u606F")), ((item === null || item === void 0 ? void 0 : item.items) || []).map(function (t, index) {
|
|
245
246
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -254,10 +255,12 @@ var content = function content(item, index) {
|
|
|
254
255
|
export var JstGoodImage = function JstGoodImage(_ref6) {
|
|
255
256
|
var _ref6$list = _ref6.list,
|
|
256
257
|
list = _ref6$list === void 0 ? [] : _ref6$list,
|
|
257
|
-
type = _ref6.type
|
|
258
|
+
type = _ref6.type,
|
|
259
|
+
_ref6$platformType = _ref6.platformType,
|
|
260
|
+
platformType = _ref6$platformType === void 0 ? 'default' : _ref6$platformType;
|
|
258
261
|
return list !== null && list !== void 0 && list.length ? (list || []).map(function (item, index) {
|
|
259
262
|
var logisticsCompany = item.logisticsCompany;
|
|
260
|
-
var company = ExpressData.getInstance().getExpressNameByCode(logisticsCompany);
|
|
263
|
+
var company = ExpressData.getInstance(platformType).getExpressNameByCode(logisticsCompany);
|
|
261
264
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Popover, {
|
|
262
265
|
content: content(item, index),
|
|
263
266
|
overlayStyle: {
|
|
@@ -266,20 +269,26 @@ export var JstGoodImage = function JstGoodImage(_ref6) {
|
|
|
266
269
|
}, /*#__PURE__*/React.createElement("span", {
|
|
267
270
|
key: index,
|
|
268
271
|
style: {
|
|
269
|
-
color:
|
|
270
|
-
cursor:
|
|
272
|
+
color: '#1890ff',
|
|
273
|
+
cursor: 'pointer'
|
|
271
274
|
}
|
|
272
|
-
}, "\u5305\u88F9".concat(index + 1), ":")), type === 1 ? /*#__PURE__*/React.createElement("span", null, company && item.logisticsCode ?
|
|
275
|
+
}, "\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, {
|
|
276
|
+
text: item.logisticsCode
|
|
277
|
+
})) : company ? company : item.logisticsCode ? /*#__PURE__*/React.createElement(CopyText, {
|
|
278
|
+
text: item.logisticsCode
|
|
279
|
+
}) : 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, platformType === 'wdt' ? WdtSendData.getInstance().getWdtSendNameByCode(item.sendName) : item.sendName].join("/") : item.sendId ? item.sendId : platformType === 'wdt' ? WdtSendData.getInstance().getWdtSendNameByCode(item.sendName) : item.sendName) : null, type === 4 ? /*#__PURE__*/React.createElement("span", null, (item === null || item === void 0 ? void 0 : item.deliveryNo) || '') : null));
|
|
273
280
|
}) : null;
|
|
274
281
|
};
|
|
275
282
|
export var BsExpressRender = function BsExpressRender(_ref7) {
|
|
276
283
|
var _ref7$list = _ref7.list,
|
|
277
284
|
list = _ref7$list === void 0 ? [] : _ref7$list,
|
|
278
285
|
_ref7$showField = _ref7.showField,
|
|
279
|
-
showField = _ref7$showField === void 0 ? "" : _ref7$showField
|
|
286
|
+
showField = _ref7$showField === void 0 ? "" : _ref7$showField,
|
|
287
|
+
_ref7$platformType = _ref7.platformType,
|
|
288
|
+
platformType = _ref7$platformType === void 0 ? "default" : _ref7$platformType;
|
|
280
289
|
return list !== null && list !== void 0 && list.length ? (list || []).map(function (item, index) {
|
|
281
290
|
var logisticsCompany = item.logisticsCompany;
|
|
282
|
-
var company = ExpressData.getInstance().getExpressNameByCode(logisticsCompany);
|
|
291
|
+
var company = ExpressData.getInstance(platformType).getExpressNameByCode(logisticsCompany);
|
|
283
292
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Popover, {
|
|
284
293
|
content: content(item, index),
|
|
285
294
|
overlayStyle: {
|
|
@@ -288,10 +297,12 @@ export var BsExpressRender = function BsExpressRender(_ref7) {
|
|
|
288
297
|
}, /*#__PURE__*/React.createElement("span", {
|
|
289
298
|
key: index,
|
|
290
299
|
style: {
|
|
291
|
-
color:
|
|
292
|
-
cursor:
|
|
300
|
+
color: '#1890ff',
|
|
301
|
+
cursor: 'pointer'
|
|
293
302
|
}
|
|
294
|
-
}, "\u5305\u88F9", ":")), showField ===
|
|
303
|
+
}, "\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, {
|
|
304
|
+
text: item.logisticsCode
|
|
305
|
+
}) : null) : null));
|
|
295
306
|
}) : null;
|
|
296
307
|
};
|
|
297
308
|
export var CommonOrderContent = function CommonOrderContent(_ref8) {
|
|
@@ -304,7 +315,7 @@ export var CommonOrderContent = function CommonOrderContent(_ref8) {
|
|
|
304
315
|
var orderContent = function orderContent(item, index) {
|
|
305
316
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
306
317
|
style: {
|
|
307
|
-
textAlign:
|
|
318
|
+
textAlign: 'center'
|
|
308
319
|
}
|
|
309
320
|
}, "\u7CFB\u7EDF\u8BA2\u5355\u53F7", index + 1, "\uFF1A", item.systemOrderId));
|
|
310
321
|
};
|
|
@@ -312,7 +323,7 @@ export var CommonOrderContent = function CommonOrderContent(_ref8) {
|
|
|
312
323
|
var _options$find;
|
|
313
324
|
var color = ((_options$find = options.find(function (it) {
|
|
314
325
|
return item[valueKey] === it.value;
|
|
315
|
-
})) === null || _options$find === void 0 ? void 0 : _options$find.color) ||
|
|
326
|
+
})) === null || _options$find === void 0 ? void 0 : _options$find.color) || '#000';
|
|
316
327
|
var currentOption = options.find(function (option) {
|
|
317
328
|
return item[valueKey] === option.value;
|
|
318
329
|
});
|
|
@@ -324,14 +335,14 @@ export var CommonOrderContent = function CommonOrderContent(_ref8) {
|
|
|
324
335
|
}, /*#__PURE__*/React.createElement("span", {
|
|
325
336
|
key: index,
|
|
326
337
|
style: {
|
|
327
|
-
color:
|
|
328
|
-
cursor:
|
|
338
|
+
color: '#1890ff',
|
|
339
|
+
cursor: 'pointer'
|
|
329
340
|
}
|
|
330
341
|
}, "\u7CFB\u7EDF\u8BA2\u5355\u53F7".concat(index + 1), ":")), /*#__PURE__*/React.createElement("span", {
|
|
331
342
|
style: {
|
|
332
343
|
color: color
|
|
333
344
|
}
|
|
334
|
-
}, currentOption ? currentOption.label : (item === null || item === void 0 ? void 0 : item[valueKey]) ||
|
|
345
|
+
}, 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", {
|
|
335
346
|
className: "c-red"
|
|
336
347
|
}, item.reason));
|
|
337
348
|
}) : null;
|
|
@@ -343,22 +354,22 @@ export var BsGoodImage = function BsGoodImage(_ref9) {
|
|
|
343
354
|
index = _ref9.index;
|
|
344
355
|
var picUrl = item.picUrl || defaultImg;
|
|
345
356
|
var keyMap = {
|
|
346
|
-
name:
|
|
347
|
-
code:
|
|
348
|
-
skuId:
|
|
349
|
-
money:
|
|
350
|
-
number:
|
|
351
|
-
share:
|
|
352
|
-
type:
|
|
357
|
+
name: 'bs名称',
|
|
358
|
+
code: 'bs编码',
|
|
359
|
+
skuId: 'bssku编码',
|
|
360
|
+
money: 'bs实付金额',
|
|
361
|
+
number: 'bs数量',
|
|
362
|
+
share: 'bs分摊价',
|
|
363
|
+
type: 'bs赠品类型'
|
|
353
364
|
};
|
|
354
365
|
return /*#__PURE__*/React.createElement("div", {
|
|
355
366
|
className: styles.goodImgBox,
|
|
356
367
|
key: index
|
|
357
368
|
}, /*#__PURE__*/React.createElement("img", {
|
|
358
369
|
style: {
|
|
359
|
-
width:
|
|
360
|
-
height:
|
|
361
|
-
objectFit:
|
|
370
|
+
width: '40px',
|
|
371
|
+
height: '40px',
|
|
372
|
+
objectFit: 'contain'
|
|
362
373
|
},
|
|
363
374
|
src: picUrl
|
|
364
375
|
}), /*#__PURE__*/React.createElement("div", {
|
|
@@ -380,11 +391,11 @@ export var BsExchangeList = function BsExchangeList(_ref10) {
|
|
|
380
391
|
return /*#__PURE__*/React.createElement(React.Fragment, null, BsGoodsTable({
|
|
381
392
|
list: (item === null || item === void 0 ? void 0 : item.bsExchangeReturnGoods) || [],
|
|
382
393
|
showHeader: showHeader,
|
|
383
|
-
text:
|
|
394
|
+
text: '退回'
|
|
384
395
|
}), BsGoodsTable({
|
|
385
396
|
list: item === null || item === void 0 ? void 0 : item.bsExchangeSwapOutGoods,
|
|
386
397
|
showHeader: showHeader,
|
|
387
|
-
text:
|
|
398
|
+
text: '换出'
|
|
388
399
|
}));
|
|
389
400
|
}));
|
|
390
401
|
};
|
|
@@ -404,7 +415,6 @@ export var BsGoodsTable = function BsGoodsTable(_ref11) {
|
|
|
404
415
|
text = _ref11$text === void 0 ? '' : _ref11$text,
|
|
405
416
|
type = _ref11.type;
|
|
406
417
|
//商品信息
|
|
407
|
-
|
|
408
418
|
var COLUMNS_MAP = function COLUMNS_MAP() {
|
|
409
419
|
var text = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
410
420
|
return function (type) {
|
|
@@ -412,21 +422,21 @@ export var BsGoodsTable = function BsGoodsTable(_ref11) {
|
|
|
412
422
|
switch (type) {
|
|
413
423
|
case 'ITEM_ENCODE':
|
|
414
424
|
columns = [{
|
|
415
|
-
dataIndex:
|
|
416
|
-
title:
|
|
417
|
-
align:
|
|
425
|
+
dataIndex: 'title',
|
|
426
|
+
title: '商品名称',
|
|
427
|
+
align: 'center',
|
|
418
428
|
ellipsis: true,
|
|
419
429
|
width: 200
|
|
420
430
|
}, {
|
|
421
|
-
dataIndex:
|
|
422
|
-
title:
|
|
423
|
-
align:
|
|
431
|
+
dataIndex: 'outerId',
|
|
432
|
+
title: '商品编码',
|
|
433
|
+
align: 'center',
|
|
424
434
|
ellipsis: true,
|
|
425
435
|
width: 140
|
|
426
436
|
}, {
|
|
427
|
-
dataIndex:
|
|
428
|
-
title:
|
|
429
|
-
align:
|
|
437
|
+
dataIndex: 'picUrl',
|
|
438
|
+
title: '图片',
|
|
439
|
+
align: 'center',
|
|
430
440
|
ellipsis: true,
|
|
431
441
|
width: 100,
|
|
432
442
|
render: function render(val) {
|
|
@@ -436,27 +446,27 @@ export var BsGoodsTable = function BsGoodsTable(_ref11) {
|
|
|
436
446
|
});
|
|
437
447
|
}
|
|
438
448
|
}, {
|
|
439
|
-
dataIndex:
|
|
440
|
-
title:
|
|
441
|
-
align:
|
|
449
|
+
dataIndex: 'numIid',
|
|
450
|
+
title: '商品id',
|
|
451
|
+
align: 'center',
|
|
442
452
|
ellipsis: true,
|
|
443
453
|
width: 200
|
|
444
454
|
}, {
|
|
445
|
-
dataIndex:
|
|
446
|
-
title:
|
|
447
|
-
align:
|
|
455
|
+
dataIndex: 'skuId',
|
|
456
|
+
title: 'SKU ID',
|
|
457
|
+
align: 'center',
|
|
448
458
|
ellipsis: true,
|
|
449
459
|
width: 200
|
|
450
460
|
}, {
|
|
451
|
-
dataIndex:
|
|
452
|
-
title:
|
|
453
|
-
align:
|
|
461
|
+
dataIndex: 'outerSkuId',
|
|
462
|
+
title: 'SKU 编码',
|
|
463
|
+
align: 'center',
|
|
454
464
|
ellipsis: true,
|
|
455
465
|
width: 100
|
|
456
466
|
}, {
|
|
457
|
-
dataIndex:
|
|
458
|
-
title:
|
|
459
|
-
align:
|
|
467
|
+
dataIndex: 'propertiesName',
|
|
468
|
+
title: 'SKU 信息',
|
|
469
|
+
align: 'center',
|
|
460
470
|
ellipsis: true,
|
|
461
471
|
width: 200
|
|
462
472
|
}];
|
|
@@ -557,6 +567,172 @@ export var BsGoodsTable = function BsGoodsTable(_ref11) {
|
|
|
557
567
|
}
|
|
558
568
|
}];
|
|
559
569
|
break;
|
|
570
|
+
case 'WDT_RETURN_GOODS':
|
|
571
|
+
{
|
|
572
|
+
columns = [{
|
|
573
|
+
dataIndex: 'goodId',
|
|
574
|
+
title: "SPUID",
|
|
575
|
+
align: 'center',
|
|
576
|
+
ellipsis: true,
|
|
577
|
+
width: 70
|
|
578
|
+
}, {
|
|
579
|
+
dataIndex: 'goodNo',
|
|
580
|
+
title: "\u5546\u54C1SPU\u7F16\u7801",
|
|
581
|
+
align: 'center',
|
|
582
|
+
ellipsis: true,
|
|
583
|
+
width: 180
|
|
584
|
+
}, {
|
|
585
|
+
dataIndex: 'goodName',
|
|
586
|
+
title: "".concat(text, "\u5546\u54C1\u540D\u79F0"),
|
|
587
|
+
align: 'center',
|
|
588
|
+
ellipsis: true,
|
|
589
|
+
width: 250
|
|
590
|
+
}, {
|
|
591
|
+
dataIndex: 'specId',
|
|
592
|
+
title: "".concat(text, "SKUID"),
|
|
593
|
+
align: 'center',
|
|
594
|
+
ellipsis: true,
|
|
595
|
+
width: 100
|
|
596
|
+
}, {
|
|
597
|
+
dataIndex: 'specNo',
|
|
598
|
+
title: "".concat(text, "\u5546\u54C1SKU\u7F16\u7801"),
|
|
599
|
+
align: 'center',
|
|
600
|
+
ellipsis: true,
|
|
601
|
+
width: 180
|
|
602
|
+
}, {
|
|
603
|
+
dataIndex: 'specName',
|
|
604
|
+
title: "".concat(text, "\u5546\u54C1SKU\u540D\u79F0"),
|
|
605
|
+
align: 'center',
|
|
606
|
+
ellipsis: true,
|
|
607
|
+
width: 250
|
|
608
|
+
}, {
|
|
609
|
+
dataIndex: 'num',
|
|
610
|
+
title: "".concat(text, "\u9000\u8D27\u6570\u91CF"),
|
|
611
|
+
align: 'center',
|
|
612
|
+
ellipsis: true,
|
|
613
|
+
width: 100
|
|
614
|
+
}, {
|
|
615
|
+
dataIndex: 'sharePrice',
|
|
616
|
+
title: "\u5206\u644A\u4EF7",
|
|
617
|
+
align: 'center',
|
|
618
|
+
ellipsis: true,
|
|
619
|
+
width: 80
|
|
620
|
+
}, {
|
|
621
|
+
dataIndex: 'returnPrice',
|
|
622
|
+
title: "".concat(text, "\u9000\u8D27\u91D1\u989D"),
|
|
623
|
+
align: 'center',
|
|
624
|
+
ellipsis: true,
|
|
625
|
+
width: 100
|
|
626
|
+
}, {
|
|
627
|
+
dataIndex: 'giftType',
|
|
628
|
+
title: "\u8D60\u54C1\u65B9\u5F0F",
|
|
629
|
+
align: 'center',
|
|
630
|
+
ellipsis: true,
|
|
631
|
+
width: 100,
|
|
632
|
+
render: function render(val) {
|
|
633
|
+
var giftTypeMap = {
|
|
634
|
+
0: '非赠品',
|
|
635
|
+
1: '自动赠送',
|
|
636
|
+
2: '手工赠送',
|
|
637
|
+
3: '回购自动送赠品',
|
|
638
|
+
4: '前N有礼送赠品',
|
|
639
|
+
6: '天猫优仓赠品',
|
|
640
|
+
7: '淘宝CRM会员送赠'
|
|
641
|
+
};
|
|
642
|
+
return /*#__PURE__*/React.createElement("span", null, giftTypeMap[val]);
|
|
643
|
+
}
|
|
644
|
+
}, {
|
|
645
|
+
dataIndex: 'productType',
|
|
646
|
+
title: "".concat(text, "\u5546\u54C1\u7C7B\u578B"),
|
|
647
|
+
align: 'center',
|
|
648
|
+
ellipsis: true,
|
|
649
|
+
width: 100
|
|
650
|
+
}];
|
|
651
|
+
}
|
|
652
|
+
break;
|
|
653
|
+
case 'WDT_EXCHANGE_GOODS':
|
|
654
|
+
{
|
|
655
|
+
columns = [{
|
|
656
|
+
dataIndex: 'goodId',
|
|
657
|
+
title: "SPUID",
|
|
658
|
+
align: 'center',
|
|
659
|
+
ellipsis: true,
|
|
660
|
+
width: 70
|
|
661
|
+
}, {
|
|
662
|
+
dataIndex: 'goodNo',
|
|
663
|
+
title: "\u5546\u54C1SPU\u7F16\u7801",
|
|
664
|
+
align: 'center',
|
|
665
|
+
ellipsis: true,
|
|
666
|
+
width: 180
|
|
667
|
+
}, {
|
|
668
|
+
dataIndex: 'goodName',
|
|
669
|
+
title: "".concat(text, "\u5546\u54C1\u540D\u79F0"),
|
|
670
|
+
align: 'center',
|
|
671
|
+
ellipsis: true,
|
|
672
|
+
width: 250
|
|
673
|
+
}, {
|
|
674
|
+
dataIndex: 'specId',
|
|
675
|
+
title: "".concat(text, "SKUID"),
|
|
676
|
+
align: 'center',
|
|
677
|
+
ellipsis: true,
|
|
678
|
+
width: 100
|
|
679
|
+
}, {
|
|
680
|
+
dataIndex: 'specNo',
|
|
681
|
+
title: "".concat(text, "\u5546\u54C1SKU\u7F16\u7801"),
|
|
682
|
+
align: 'center',
|
|
683
|
+
ellipsis: true,
|
|
684
|
+
width: 180
|
|
685
|
+
}, {
|
|
686
|
+
dataIndex: 'specName',
|
|
687
|
+
title: "".concat(text, "\u5546\u54C1SKU\u540D\u79F0"),
|
|
688
|
+
align: 'center',
|
|
689
|
+
ellipsis: true,
|
|
690
|
+
width: 250
|
|
691
|
+
}, {
|
|
692
|
+
dataIndex: 'num',
|
|
693
|
+
title: "".concat(text, "\u6362\u51FA\u6570\u91CF"),
|
|
694
|
+
align: 'center',
|
|
695
|
+
ellipsis: true,
|
|
696
|
+
width: 100
|
|
697
|
+
}, {
|
|
698
|
+
dataIndex: 'price',
|
|
699
|
+
title: "".concat(text, "\u5546\u54C1\u5355\u4EF7"),
|
|
700
|
+
align: 'center',
|
|
701
|
+
ellipsis: true,
|
|
702
|
+
width: 100
|
|
703
|
+
}, {
|
|
704
|
+
dataIndex: 'exchangePrice',
|
|
705
|
+
title: "".concat(text, "\u6362\u51FA\u91D1\u989D"),
|
|
706
|
+
align: 'center',
|
|
707
|
+
ellipsis: true,
|
|
708
|
+
width: 100
|
|
709
|
+
}, {
|
|
710
|
+
dataIndex: 'giftType',
|
|
711
|
+
title: "\u8D60\u54C1\u65B9\u5F0F",
|
|
712
|
+
align: 'center',
|
|
713
|
+
ellipsis: true,
|
|
714
|
+
width: 100,
|
|
715
|
+
render: function render(val) {
|
|
716
|
+
var giftTypeMap = {
|
|
717
|
+
0: '非赠品',
|
|
718
|
+
1: '自动赠送',
|
|
719
|
+
2: '手工赠送',
|
|
720
|
+
3: '回购自动送赠品',
|
|
721
|
+
4: '前N有礼送赠品',
|
|
722
|
+
6: '天猫优仓赠品',
|
|
723
|
+
7: '淘宝CRM会员送赠'
|
|
724
|
+
};
|
|
725
|
+
return /*#__PURE__*/React.createElement("span", null, giftTypeMap[val]);
|
|
726
|
+
}
|
|
727
|
+
}, {
|
|
728
|
+
dataIndex: 'productType',
|
|
729
|
+
title: "".concat(text, "\u5546\u54C1\u7C7B\u578B"),
|
|
730
|
+
align: 'center',
|
|
731
|
+
ellipsis: true,
|
|
732
|
+
width: 100
|
|
733
|
+
}];
|
|
734
|
+
}
|
|
735
|
+
break;
|
|
560
736
|
default:
|
|
561
737
|
columns = [{
|
|
562
738
|
dataIndex: 'mark',
|
|
@@ -636,7 +812,7 @@ export var BsGoodsTable = function BsGoodsTable(_ref11) {
|
|
|
636
812
|
return COLUMNS_INFO(type);
|
|
637
813
|
};
|
|
638
814
|
// const GOODS_INFO_COLUMNS = (text = '') => {
|
|
639
|
-
// return
|
|
815
|
+
// return
|
|
640
816
|
// }
|
|
641
817
|
var newColumns = useMemo(function () {
|
|
642
818
|
var columnList = [{
|
|
@@ -676,15 +852,15 @@ export var FileRender = function FileRender(_ref12) {
|
|
|
676
852
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
677
853
|
visible = _useState4[0],
|
|
678
854
|
setVisible = _useState4[1];
|
|
679
|
-
var _useState5 = useState(
|
|
855
|
+
var _useState5 = useState(''),
|
|
680
856
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
681
857
|
fileUrl = _useState6[0],
|
|
682
858
|
setFileUrl = _useState6[1];
|
|
683
|
-
var _useState7 = useState(
|
|
859
|
+
var _useState7 = useState(''),
|
|
684
860
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
685
861
|
fileType = _useState8[0],
|
|
686
862
|
setFileType = _useState8[1];
|
|
687
|
-
var _useState9 = useState(
|
|
863
|
+
var _useState9 = useState(''),
|
|
688
864
|
_useState10 = _slicedToArray(_useState9, 2),
|
|
689
865
|
fileName = _useState10[0],
|
|
690
866
|
setFileName = _useState10[1];
|
|
@@ -693,24 +869,24 @@ export var FileRender = function FileRender(_ref12) {
|
|
|
693
869
|
downloading = _useState12[0],
|
|
694
870
|
setDownloading = _useState12[1];
|
|
695
871
|
var handleCancel = function handleCancel() {
|
|
696
|
-
setFileUrl(
|
|
697
|
-
setFileName(
|
|
872
|
+
setFileUrl('');
|
|
873
|
+
setFileName('');
|
|
698
874
|
setVisible(false);
|
|
699
875
|
setDownloading(false);
|
|
700
876
|
};
|
|
701
877
|
var onPreview = function onPreview(file) {
|
|
702
878
|
var _file$url;
|
|
703
|
-
var fileArr = file === null || file === void 0 ? void 0 : (_file$url = file.url) === null || _file$url === void 0 ? void 0 : _file$url.split(
|
|
879
|
+
var fileArr = file === null || file === void 0 ? void 0 : (_file$url = file.url) === null || _file$url === void 0 ? void 0 : _file$url.split('.');
|
|
704
880
|
var fileType = fileArr[fileArr.length - 1];
|
|
705
|
-
if ([
|
|
881
|
+
if (['png', 'jpg', 'jpeg', 'gif', 'bmp', 'svg'].includes(fileType.toLowerCase())) {
|
|
706
882
|
setFileUrl(file === null || file === void 0 ? void 0 : file.url);
|
|
707
883
|
setFileName(file === null || file === void 0 ? void 0 : file.name);
|
|
708
|
-
setFileType(
|
|
884
|
+
setFileType('pic');
|
|
709
885
|
setVisible(true);
|
|
710
|
-
} else if ([
|
|
886
|
+
} else if (['mp4', 'avi', 'mpeg', 'asf', 'mov', '3gp', 'wmv', 'rmvb'].includes(fileType.toLowerCase())) {
|
|
711
887
|
setFileUrl(file === null || file === void 0 ? void 0 : file.url);
|
|
712
888
|
setFileName(file === null || file === void 0 ? void 0 : file.name);
|
|
713
|
-
setFileType(
|
|
889
|
+
setFileType('video');
|
|
714
890
|
setVisible(true);
|
|
715
891
|
} else {
|
|
716
892
|
window.open(file === null || file === void 0 ? void 0 : file.url);
|
|
@@ -721,9 +897,9 @@ export var FileRender = function FileRender(_ref12) {
|
|
|
721
897
|
fetch(url).then(function (res) {
|
|
722
898
|
return res.blob();
|
|
723
899
|
}).then(function (blob) {
|
|
724
|
-
var a = document.createElement(
|
|
900
|
+
var a = document.createElement('a');
|
|
725
901
|
document.body.appendChild(a);
|
|
726
|
-
a.style.display =
|
|
902
|
+
a.style.display = 'none';
|
|
727
903
|
var url = window.URL.createObjectURL(blob);
|
|
728
904
|
a.href = url;
|
|
729
905
|
a.download = name;
|
|
@@ -737,9 +913,9 @@ export var FileRender = function FileRender(_ref12) {
|
|
|
737
913
|
return /*#__PURE__*/React.createElement(React.Fragment, null, fileList.map(function (item) {
|
|
738
914
|
return /*#__PURE__*/React.createElement("a", {
|
|
739
915
|
style: {
|
|
740
|
-
color:
|
|
741
|
-
cursor:
|
|
742
|
-
display:
|
|
916
|
+
color: '#1890ff',
|
|
917
|
+
cursor: 'pointer',
|
|
918
|
+
display: 'block'
|
|
743
919
|
},
|
|
744
920
|
onClick: function onClick(e) {
|
|
745
921
|
e.preventDefault();
|
|
@@ -761,20 +937,20 @@ export var FileRender = function FileRender(_ref12) {
|
|
|
761
937
|
}, "\u4E0B\u8F7D") : /*#__PURE__*/React.createElement(CopyToClipboard, {
|
|
762
938
|
text: fileUrl,
|
|
763
939
|
onCopy: function onCopy() {
|
|
764
|
-
message.success(
|
|
940
|
+
message.success('复制成功');
|
|
765
941
|
}
|
|
766
942
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
767
943
|
type: "link"
|
|
768
|
-
}, "\u4E0B\u8F7D\u5730\u5740")), fileType ===
|
|
944
|
+
}, "\u4E0B\u8F7D\u5730\u5740")), fileType === 'pic' ? /*#__PURE__*/React.createElement("img", {
|
|
769
945
|
alt: "example",
|
|
770
946
|
style: {
|
|
771
|
-
width:
|
|
947
|
+
width: '100%'
|
|
772
948
|
},
|
|
773
949
|
src: fileUrl
|
|
774
950
|
}) : /*#__PURE__*/React.createElement("video", {
|
|
775
951
|
style: {
|
|
776
|
-
width:
|
|
777
|
-
height:
|
|
952
|
+
width: '100%',
|
|
953
|
+
height: '100%'
|
|
778
954
|
},
|
|
779
955
|
autoPlay: true,
|
|
780
956
|
controls: true,
|
|
@@ -786,34 +962,34 @@ export var BsSystemOrderTable = function BsSystemOrderTable(_ref13) {
|
|
|
786
962
|
type = _ref13.type;
|
|
787
963
|
var columnMap = {
|
|
788
964
|
BS_SYSTEM_ORDER: [{
|
|
789
|
-
dataIndex:
|
|
790
|
-
title:
|
|
965
|
+
dataIndex: 'billType',
|
|
966
|
+
title: '订单类型'
|
|
791
967
|
}, {
|
|
792
|
-
dataIndex:
|
|
793
|
-
title:
|
|
968
|
+
dataIndex: 'billNo',
|
|
969
|
+
title: '系统订单号'
|
|
794
970
|
}, {
|
|
795
|
-
dataIndex:
|
|
796
|
-
title:
|
|
971
|
+
dataIndex: 'billTag',
|
|
972
|
+
title: '标记'
|
|
797
973
|
}],
|
|
798
974
|
WLN_SYSTEM_ORDER: [{
|
|
799
|
-
dataIndex:
|
|
800
|
-
title:
|
|
975
|
+
dataIndex: 'billType',
|
|
976
|
+
title: '单据类型'
|
|
801
977
|
}, {
|
|
802
|
-
dataIndex:
|
|
803
|
-
title:
|
|
978
|
+
dataIndex: 'billNo',
|
|
979
|
+
title: '系统订单号'
|
|
804
980
|
}, {
|
|
805
|
-
dataIndex:
|
|
806
|
-
title:
|
|
981
|
+
dataIndex: 'billTag',
|
|
982
|
+
title: '标签'
|
|
807
983
|
}],
|
|
808
984
|
WDT_SYSTEM_ORDER: [{
|
|
809
|
-
dataIndex:
|
|
810
|
-
title:
|
|
985
|
+
dataIndex: 'billType',
|
|
986
|
+
title: '订单类型'
|
|
811
987
|
}, {
|
|
812
|
-
dataIndex:
|
|
813
|
-
title:
|
|
988
|
+
dataIndex: 'billNo',
|
|
989
|
+
title: '系统订单号'
|
|
814
990
|
}, {
|
|
815
|
-
dataIndex:
|
|
816
|
-
title:
|
|
991
|
+
dataIndex: 'billTag',
|
|
992
|
+
title: '订单标签'
|
|
817
993
|
}]
|
|
818
994
|
};
|
|
819
995
|
var rowSelection = {
|
|
@@ -835,14 +1011,14 @@ export var BsSystemOrderTable = function BsSystemOrderTable(_ref13) {
|
|
|
835
1011
|
dataSource: (value === null || value === void 0 ? void 0 : value.showOrderInfo) || [],
|
|
836
1012
|
columns: columnMap[type] || [],
|
|
837
1013
|
rowSelection: rowSelection,
|
|
838
|
-
rowKey:
|
|
1014
|
+
rowKey: 'billNo',
|
|
839
1015
|
size: "small",
|
|
840
1016
|
pagination: false,
|
|
841
1017
|
scroll: {
|
|
842
|
-
x:
|
|
1018
|
+
x: '100%'
|
|
843
1019
|
},
|
|
844
1020
|
locale: {
|
|
845
|
-
emptyText:
|
|
1021
|
+
emptyText: '暂无数据'
|
|
846
1022
|
}
|
|
847
1023
|
});
|
|
848
1024
|
};
|
|
@@ -862,33 +1038,33 @@ export var MsgContent = function MsgContent(_ref14) {
|
|
|
862
1038
|
_ref14$options = _ref14.options,
|
|
863
1039
|
options = _ref14$options === void 0 ? [] : _ref14$options;
|
|
864
1040
|
var msgTypeCh = {
|
|
865
|
-
ding:
|
|
866
|
-
wechat:
|
|
867
|
-
qq:
|
|
868
|
-
qywx:
|
|
1041
|
+
ding: '钉钉',
|
|
1042
|
+
wechat: '微信',
|
|
1043
|
+
qq: 'QQ',
|
|
1044
|
+
qywx: '企业微信'
|
|
869
1045
|
};
|
|
870
1046
|
var detailContent = function detailContent(item) {
|
|
871
1047
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
872
1048
|
style: {
|
|
873
|
-
textAlign:
|
|
1049
|
+
textAlign: 'left'
|
|
874
1050
|
}
|
|
875
1051
|
}, /*#__PURE__*/React.createElement("div", null, item.ruleName)));
|
|
876
1052
|
};
|
|
877
1053
|
return /*#__PURE__*/React.createElement(Space, {
|
|
878
|
-
direction: !horizontal ?
|
|
1054
|
+
direction: !horizontal ? 'vertical' : 'horizontal'
|
|
879
1055
|
}, Array.isArray(list) ? (list || []).map(function (item, index) {
|
|
880
1056
|
var _options$find2;
|
|
881
1057
|
var color = ((_options$find2 = options.find(function (innerItem) {
|
|
882
1058
|
return item[valueKey] === innerItem.label;
|
|
883
|
-
})) === null || _options$find2 === void 0 ? void 0 : _options$find2.color) ||
|
|
1059
|
+
})) === null || _options$find2 === void 0 ? void 0 : _options$find2.color) || '#000';
|
|
884
1060
|
var currentOption = options.find(function (option) {
|
|
885
1061
|
return item[valueKey] === option.value;
|
|
886
1062
|
});
|
|
887
|
-
var key = item.msgType ||
|
|
1063
|
+
var key = item.msgType || 'ding';
|
|
888
1064
|
return /*#__PURE__*/React.createElement("div", {
|
|
889
1065
|
style: {
|
|
890
1066
|
color: color,
|
|
891
|
-
cursor:
|
|
1067
|
+
cursor: 'pointer'
|
|
892
1068
|
}
|
|
893
1069
|
}, /*#__PURE__*/React.createElement(Popover, {
|
|
894
1070
|
content: detailContent(item),
|
|
@@ -897,7 +1073,7 @@ export var MsgContent = function MsgContent(_ref14) {
|
|
|
897
1073
|
}
|
|
898
1074
|
}, /*#__PURE__*/React.createElement("span", {
|
|
899
1075
|
key: index
|
|
900
|
-
}, msgTypeCh[key], "-", currentOption ? currentOption.label : (item === null || item === void 0 ? void 0 : item[valueKey]) ||
|
|
1076
|
+
}, msgTypeCh[key], "-", currentOption ? currentOption.label : (item === null || item === void 0 ? void 0 : item[valueKey]) || '')));
|
|
901
1077
|
}) : null);
|
|
902
1078
|
};
|
|
903
1079
|
//获取付款凭证
|
|
@@ -908,7 +1084,7 @@ export var AlipayBill = function AlipayBill(props) {
|
|
|
908
1084
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
909
1085
|
visible = _useState14[0],
|
|
910
1086
|
setVisible = _useState14[1];
|
|
911
|
-
var _useState15 = useState(
|
|
1087
|
+
var _useState15 = useState(''),
|
|
912
1088
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
913
1089
|
msg = _useState16[0],
|
|
914
1090
|
setMsg = _useState16[1];
|
|
@@ -933,7 +1109,7 @@ export var AlipayBill = function AlipayBill(props) {
|
|
|
933
1109
|
data = res.data, msg = res.message;
|
|
934
1110
|
if (data) {
|
|
935
1111
|
setHasUrl(true);
|
|
936
|
-
if ([
|
|
1112
|
+
if (['fxg'].includes(platform)) {
|
|
937
1113
|
setMsg(data);
|
|
938
1114
|
setVisible(true);
|
|
939
1115
|
} else {
|
|
@@ -960,8 +1136,8 @@ export var AlipayBill = function AlipayBill(props) {
|
|
|
960
1136
|
};
|
|
961
1137
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("span", {
|
|
962
1138
|
style: {
|
|
963
|
-
color:
|
|
964
|
-
cursor:
|
|
1139
|
+
color: '#1890ff',
|
|
1140
|
+
cursor: 'pointer'
|
|
965
1141
|
},
|
|
966
1142
|
onClick: voucherHandle
|
|
967
1143
|
}, value), /*#__PURE__*/React.createElement(Modal, {
|
|
@@ -969,7 +1145,7 @@ export var AlipayBill = function AlipayBill(props) {
|
|
|
969
1145
|
visible: visible,
|
|
970
1146
|
footer: false,
|
|
971
1147
|
onCancel: closeHandle
|
|
972
|
-
}, [
|
|
1148
|
+
}, ['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, {
|
|
973
1149
|
copyable: true
|
|
974
1150
|
}, msg)) : msg));
|
|
975
1151
|
};
|