@kmkf-fe-packages/services-components 1.22.1-beta.3 → 1.22.1-beta.32

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