@kmkf-fe-packages/services-components 0.28.2-rc.9 → 0.28.3-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.
Files changed (64) hide show
  1. package/README.md +1 -0
  2. package/dist/esm/commonComponents/CopyText/index.d.ts +7 -0
  3. package/dist/esm/commonComponents/CopyText/index.js +14 -0
  4. package/dist/esm/commonComponents/GlobalContext/index.d.ts +1 -1
  5. package/dist/esm/commonComponents/GlobalContext/index.js +8 -5
  6. package/dist/esm/commonComponents/PlatBuyer/index.d.ts +1 -1
  7. package/dist/esm/commonComponents/PlatBuyer/index.js +4 -17
  8. package/dist/esm/commonComponents/QueryLogisticsTrack/index.d.ts +1 -1
  9. package/dist/esm/commonComponents/QueryLogisticsTrack/index.js +21 -15
  10. package/dist/esm/components/BS/BsLogistics/index.js +12 -7
  11. package/dist/esm/components/BS/BsReissue/index.js +7 -7
  12. package/dist/esm/components/BS/common/SystemOrderNo.d.ts +26 -0
  13. package/dist/esm/components/BS/common/SystemOrderNo.js +94 -0
  14. package/dist/esm/components/BS/common/expressCompany.d.ts +4 -1
  15. package/dist/esm/components/BS/common/expressCompany.js +5 -2
  16. package/dist/esm/components/BS/common/index.d.ts +1 -0
  17. package/dist/esm/components/BS/common/index.js +2 -1
  18. package/dist/esm/components/Common/index.d.ts +2 -2
  19. package/dist/esm/components/Common/index.js +187 -176
  20. package/dist/esm/components/CommonTradeId/index.d.ts +5 -6
  21. package/dist/esm/components/CommonTradeId/index.js +15 -26
  22. package/dist/esm/components/ErpTradeId/components/OrderNum/index.d.ts +1 -0
  23. package/dist/esm/components/ErpTradeId/components/OrderNum/index.js +7 -7
  24. package/dist/esm/components/ErpTradeId/components/OrderNum/{index.module.scss → index.less} +2 -2
  25. package/dist/esm/components/ExpressCode/index.d.ts +2 -2
  26. package/dist/esm/components/ExpressCode/index.js +9 -5
  27. package/dist/esm/components/FlowWorkOrderId/index.d.ts +2 -3
  28. package/dist/esm/components/FlowWorkOrderId/index.js +4 -18
  29. package/dist/esm/components/JST/JstLogistics/index.js +16 -11
  30. package/dist/esm/components/JST/JstSendGood/index.js +8 -5
  31. package/dist/esm/components/LogisticsInterception/index.d.ts +16 -4
  32. package/dist/esm/components/LogisticsInterception/index.js +6 -11
  33. package/dist/esm/components/LogisticsMoreInterception/index.d.ts +13 -13
  34. package/dist/esm/components/LogisticsMoreInterception/index.js +17 -14
  35. package/dist/esm/components/LogisticsMoreInterception/{interceptItem.d.ts → interceptCode.d.ts} +2 -2
  36. package/dist/esm/components/LogisticsMoreInterception/{interceptItem.js → interceptCode.js} +7 -4
  37. package/dist/esm/components/LogisticsMoreTrajectory/index.d.ts +3 -3
  38. package/dist/esm/components/LogisticsMoreTrajectory/index.js +16 -7
  39. package/dist/esm/components/LogisticsMoreTrajectory/trajectoryLastLogisticsInfo.d.ts +30 -0
  40. package/dist/esm/components/{LogisticsInterception/InterceptState.js → LogisticsMoreTrajectory/trajectoryLastLogisticsInfo.js} +37 -46
  41. package/dist/esm/components/LogisticsMoreTrajectory/trajectoryLastUpdateTime.d.ts +29 -0
  42. package/dist/esm/components/LogisticsMoreTrajectory/trajectoryLastUpdateTime.js +77 -0
  43. package/dist/esm/components/LogisticsMoreTrajectory/trajectoryStatus.d.ts +32 -0
  44. package/dist/esm/components/LogisticsMoreTrajectory/trajectoryStatus.js +96 -0
  45. package/dist/esm/components/LogisticsTrajectory/index.js +2 -1
  46. package/dist/esm/components/LogisticsTrajectory/trajectoryStatus.d.ts +3 -1
  47. package/dist/esm/components/LogisticsTrajectory/trajectoryStatus.js +4 -4
  48. package/dist/esm/components/Payment/PaymentTid.d.ts +2 -2
  49. package/dist/esm/components/Payment/PaymentTid.js +14 -3
  50. package/dist/esm/components/TradeId/index.d.ts +0 -1
  51. package/dist/esm/components/TradeId/index.js +7 -19
  52. package/dist/esm/components/WDT/WdtRessuie/index.d.ts +58 -0
  53. package/dist/esm/components/WDT/WdtRessuie/index.js +185 -0
  54. package/dist/esm/components/WorkOrderId/index.d.ts +2 -3
  55. package/dist/esm/components/WorkOrderId/index.js +4 -18
  56. package/dist/esm/factory.d.ts +2 -2
  57. package/dist/esm/factory.js +6 -2
  58. package/dist/esm/index.d.ts +4 -3
  59. package/dist/esm/index.js +1 -0
  60. package/dist/esm/service/api.d.ts +2 -0
  61. package/dist/esm/service/api.js +13 -1
  62. package/dist/esm/type.d.ts +4 -2
  63. package/package.json +4 -4
  64. 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 "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
+ 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: "relative"
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) !== "tabao" ? item.picUrl : item.picUrl + "_40x40.jpg" : defaultImg;
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 === "itemCode" && !showHeader.includes("picUrl") ? null : (item === null || item === void 0 ? void 0 : item.platform) === "taobao" ? /*#__PURE__*/React.createElement("a", {
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) : "javascript:void(0);"
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: "40px",
65
- height: "40px",
66
- objectFit: "contain"
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: "40px",
72
- height: "40px",
73
- objectFit: "contain"
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 === "itemId" && /*#__PURE__*/React.createElement(TextTool, {
79
- title: "商品id",
79
+ }, type === 'itemId' && /*#__PURE__*/React.createElement(TextTool, {
80
+ title: '商品id',
80
81
  text: item.numIid
81
- }), type === "itemCode" && /*#__PURE__*/React.createElement(React.Fragment, null, showHeader.includes("title") && /*#__PURE__*/React.createElement(TextTool, {
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("outerId") && /*#__PURE__*/React.createElement(TextTool, {
85
- title: "商品编码",
85
+ }), showHeader.includes('outerId') && /*#__PURE__*/React.createElement(TextTool, {
86
+ title: '商品编码',
86
87
  text: item.outerId
87
- }), showHeader.includes("numIid") && /*#__PURE__*/React.createElement(TextTool, {
88
- title: "商品id",
88
+ }), showHeader.includes('numIid') && /*#__PURE__*/React.createElement(TextTool, {
89
+ title: '商品id',
89
90
  text: item.numIid
90
- }), showHeader.includes("skuId") && /*#__PURE__*/React.createElement(TextTool, {
91
- title: "SKU ID",
91
+ }), showHeader.includes('skuId') && /*#__PURE__*/React.createElement(TextTool, {
92
+ title: 'SKU ID',
92
93
  text: item.skuId
93
- }), showHeader.includes("outerSkuId") && /*#__PURE__*/React.createElement(TextTool, {
94
- title: "SKU 编码",
94
+ }), showHeader.includes('outerSkuId') && /*#__PURE__*/React.createElement(TextTool, {
95
+ title: 'SKU 编码',
95
96
  text: item.outerSkuId
96
- }), showHeader.includes("propertiesName") && /*#__PURE__*/React.createElement(TextTool, {
97
- title: "SKU 信息",
97
+ }), showHeader.includes('propertiesName') && /*#__PURE__*/React.createElement(TextTool, {
98
+ title: 'SKU 信息',
98
99
  text: item.propertiesName
99
- })), (type === "itemThird" || type === "jstItemThird") && (item.itemId || item.supplierItemOuterId) && /*#__PURE__*/React.createElement(TextTool, {
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 === "itemThird" || type === "jstItemThird") && item.supplierName && /*#__PURE__*/React.createElement(TextTool, {
103
- title: "供应商名称",
103
+ }), (type === 'itemThird' || type === 'jstItemThird') && item.supplierName && /*#__PURE__*/React.createElement(TextTool, {
104
+ title: '供应商名称',
104
105
  text: item.supplierName
105
- }), type !== "itemCode" && item.propertiesName && /*#__PURE__*/React.createElement(TextTool, {
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: "hidden",
120
- whiteSpace: "nowrap",
121
- textOverflow: "ellipsis"
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: "flex",
152
- flexWrap: "wrap"
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: "50%"
158
+ width: '50%'
158
159
  },
159
160
  key: index
160
- }, type === "itemCode" && !showHeader.includes("picUrl") ? null : /*#__PURE__*/React.createElement("a", {
161
- 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);"),
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: "12px",
165
- marginTop: "8px",
166
- padding: "2px",
167
- border: "1px dashed #ccc",
168
- display: "inline-block"
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: "72px",
175
- height: "72px",
176
- objectFit: "contain"
175
+ width: '72px',
176
+ height: '72px',
177
+ objectFit: 'contain'
177
178
  }
178
- })), /*#__PURE__*/React.createElement("div", null, type === "itemId" && /*#__PURE__*/React.createElement(TextTool, {
179
- title: "商品id",
179
+ })), /*#__PURE__*/React.createElement("div", null, type === 'itemId' && /*#__PURE__*/React.createElement(TextTool, {
180
+ title: '商品id',
180
181
  text: i.numIid
181
- }), type === "itemCode" && /*#__PURE__*/React.createElement(React.Fragment, null, showHeader.includes("title") && /*#__PURE__*/React.createElement(TextTool, {
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("outerId") && /*#__PURE__*/React.createElement(TextTool, {
185
- title: "商品编码",
185
+ }), showHeader.includes('outerId') && /*#__PURE__*/React.createElement(TextTool, {
186
+ title: '商品编码',
186
187
  text: i.outerId
187
- }), showHeader.includes("numIid") && /*#__PURE__*/React.createElement(TextTool, {
188
- title: "商品id",
188
+ }), showHeader.includes('numIid') && /*#__PURE__*/React.createElement(TextTool, {
189
+ title: '商品id',
189
190
  text: i.numIid
190
- }), showHeader.includes("skuId") && /*#__PURE__*/React.createElement(TextTool, {
191
- title: "SKU ID",
191
+ }), showHeader.includes('skuId') && /*#__PURE__*/React.createElement(TextTool, {
192
+ title: 'SKU ID',
192
193
  text: i.skuId
193
- }), showHeader.includes("outerSkuId") && /*#__PURE__*/React.createElement(TextTool, {
194
- title: "SKU 编码",
194
+ }), showHeader.includes('outerSkuId') && /*#__PURE__*/React.createElement(TextTool, {
195
+ title: 'SKU 编码',
195
196
  text: i.outerSkuId
196
- }), showHeader.includes("propertiesName") && /*#__PURE__*/React.createElement(TextTool, {
197
- title: "SKU 信息",
197
+ }), showHeader.includes('propertiesName') && /*#__PURE__*/React.createElement(TextTool, {
198
+ title: 'SKU 信息',
198
199
  text: i.propertiesName
199
- })), (type === "itemThird" || type === "jstItemThird") && (i.itemId || i.supplierItemOuterId) && /*#__PURE__*/React.createElement(TextTool, {
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 === "itemThird" || type === "jstItemThird") && i.supplierName && /*#__PURE__*/React.createElement(TextTool, {
203
- title: "供应商名称",
203
+ }), (type === 'itemThird' || type === 'jstItemThird') && i.supplierName && /*#__PURE__*/React.createElement(TextTool, {
204
+ title: '供应商名称',
204
205
  text: i.supplierName
205
- }), type !== "itemCode" && i.propertiesName && /*#__PURE__*/React.createElement(TextTool, {
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 ? "" : _ref5$type,
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 === "itemSelect" ? "flex" : "block"
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: "center"
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: "#1890ff",
270
- cursor: "pointer"
272
+ color: '#1890ff',
273
+ cursor: 'pointer'
271
274
  }
272
- }, "\u5305\u88F9".concat(index + 1), ":")), type === 1 ? /*#__PURE__*/React.createElement("span", null, company && item.logisticsCode ? [company, item.logisticsCode].join("/") : company ? company : item.logisticsCode) : 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, item.sendName].join("/") : item.sendId ? item.sendId : item.sendName) : null, type === 4 ? /*#__PURE__*/React.createElement("span", null, (item === null || item === void 0 ? void 0 : item.deliveryNo) || "") : null));
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: "#1890ff",
292
- cursor: "pointer"
300
+ color: '#1890ff',
301
+ cursor: 'pointer'
293
302
  }
294
- }, "\u5305\u88F9", ":")), showField === "company" ? /*#__PURE__*/React.createElement("span", null, company ? company : null) : null, showField === "code" ? /*#__PURE__*/React.createElement("span", null, item.logisticsCode ? item.logisticsCode : null) : null));
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: "center"
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) || "#000";
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: "#1890ff",
328
- cursor: "pointer"
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]) || "")), item.reason && (item === null || item === void 0 ? void 0 : item[valueKey]) !== "成功" && /*#__PURE__*/React.createElement("div", {
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: "bs名称",
347
- code: "bs编码",
348
- skuId: "bssku编码",
349
- money: "bs实付金额",
350
- number: "bs数量",
351
- share: "bs分摊价",
352
- type: "bs赠品类型"
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: "40px",
360
- height: "40px",
361
- objectFit: "contain"
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
  };
@@ -412,21 +423,21 @@ export var BsGoodsTable = function BsGoodsTable(_ref11) {
412
423
  switch (type) {
413
424
  case 'ITEM_ENCODE':
414
425
  columns = [{
415
- dataIndex: "title",
416
- title: "商品名称",
417
- align: "center",
426
+ dataIndex: 'title',
427
+ title: '商品名称',
428
+ align: 'center',
418
429
  ellipsis: true,
419
430
  width: 200
420
431
  }, {
421
- dataIndex: "outerId",
422
- title: "商品编码",
423
- align: "center",
432
+ dataIndex: 'outerId',
433
+ title: '商品编码',
434
+ align: 'center',
424
435
  ellipsis: true,
425
436
  width: 140
426
437
  }, {
427
- dataIndex: "picUrl",
428
- title: "图片",
429
- align: "center",
438
+ dataIndex: 'picUrl',
439
+ title: '图片',
440
+ align: 'center',
430
441
  ellipsis: true,
431
442
  width: 100,
432
443
  render: function render(val) {
@@ -436,27 +447,27 @@ export var BsGoodsTable = function BsGoodsTable(_ref11) {
436
447
  });
437
448
  }
438
449
  }, {
439
- dataIndex: "numIid",
440
- title: "商品id",
441
- align: "center",
450
+ dataIndex: 'numIid',
451
+ title: '商品id',
452
+ align: 'center',
442
453
  ellipsis: true,
443
454
  width: 200
444
455
  }, {
445
- dataIndex: "skuId",
446
- title: "SKU ID",
447
- align: "center",
456
+ dataIndex: 'skuId',
457
+ title: 'SKU ID',
458
+ align: 'center',
448
459
  ellipsis: true,
449
460
  width: 200
450
461
  }, {
451
- dataIndex: "outerSkuId",
452
- title: "SKU 编码",
453
- align: "center",
462
+ dataIndex: 'outerSkuId',
463
+ title: 'SKU 编码',
464
+ align: 'center',
454
465
  ellipsis: true,
455
466
  width: 100
456
467
  }, {
457
- dataIndex: "propertiesName",
458
- title: "SKU 信息",
459
- align: "center",
468
+ dataIndex: 'propertiesName',
469
+ title: 'SKU 信息',
470
+ align: 'center',
460
471
  ellipsis: true,
461
472
  width: 200
462
473
  }];
@@ -636,7 +647,7 @@ export var BsGoodsTable = function BsGoodsTable(_ref11) {
636
647
  return COLUMNS_INFO(type);
637
648
  };
638
649
  // const GOODS_INFO_COLUMNS = (text = '') => {
639
- // return
650
+ // return
640
651
  // }
641
652
  var newColumns = useMemo(function () {
642
653
  var columnList = [{
@@ -676,15 +687,15 @@ export var FileRender = function FileRender(_ref12) {
676
687
  _useState4 = _slicedToArray(_useState3, 2),
677
688
  visible = _useState4[0],
678
689
  setVisible = _useState4[1];
679
- var _useState5 = useState(""),
690
+ var _useState5 = useState(''),
680
691
  _useState6 = _slicedToArray(_useState5, 2),
681
692
  fileUrl = _useState6[0],
682
693
  setFileUrl = _useState6[1];
683
- var _useState7 = useState(""),
694
+ var _useState7 = useState(''),
684
695
  _useState8 = _slicedToArray(_useState7, 2),
685
696
  fileType = _useState8[0],
686
697
  setFileType = _useState8[1];
687
- var _useState9 = useState(""),
698
+ var _useState9 = useState(''),
688
699
  _useState10 = _slicedToArray(_useState9, 2),
689
700
  fileName = _useState10[0],
690
701
  setFileName = _useState10[1];
@@ -693,24 +704,24 @@ export var FileRender = function FileRender(_ref12) {
693
704
  downloading = _useState12[0],
694
705
  setDownloading = _useState12[1];
695
706
  var handleCancel = function handleCancel() {
696
- setFileUrl("");
697
- setFileName("");
707
+ setFileUrl('');
708
+ setFileName('');
698
709
  setVisible(false);
699
710
  setDownloading(false);
700
711
  };
701
712
  var onPreview = function onPreview(file) {
702
713
  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(".");
714
+ var fileArr = file === null || file === void 0 ? void 0 : (_file$url = file.url) === null || _file$url === void 0 ? void 0 : _file$url.split('.');
704
715
  var fileType = fileArr[fileArr.length - 1];
705
- if (["png", "jpg", "jpeg", "gif", "bmp", "svg"].includes(fileType.toLowerCase())) {
716
+ if (['png', 'jpg', 'jpeg', 'gif', 'bmp', 'svg'].includes(fileType.toLowerCase())) {
706
717
  setFileUrl(file === null || file === void 0 ? void 0 : file.url);
707
718
  setFileName(file === null || file === void 0 ? void 0 : file.name);
708
- setFileType("pic");
719
+ setFileType('pic');
709
720
  setVisible(true);
710
- } else if (["mp4", "avi", "mpeg", "asf", "mov", "3gp", "wmv", "rmvb"].includes(fileType.toLowerCase())) {
721
+ } else if (['mp4', 'avi', 'mpeg', 'asf', 'mov', '3gp', 'wmv', 'rmvb'].includes(fileType.toLowerCase())) {
711
722
  setFileUrl(file === null || file === void 0 ? void 0 : file.url);
712
723
  setFileName(file === null || file === void 0 ? void 0 : file.name);
713
- setFileType("video");
724
+ setFileType('video');
714
725
  setVisible(true);
715
726
  } else {
716
727
  window.open(file === null || file === void 0 ? void 0 : file.url);
@@ -721,9 +732,9 @@ export var FileRender = function FileRender(_ref12) {
721
732
  fetch(url).then(function (res) {
722
733
  return res.blob();
723
734
  }).then(function (blob) {
724
- var a = document.createElement("a");
735
+ var a = document.createElement('a');
725
736
  document.body.appendChild(a);
726
- a.style.display = "none";
737
+ a.style.display = 'none';
727
738
  var url = window.URL.createObjectURL(blob);
728
739
  a.href = url;
729
740
  a.download = name;
@@ -737,9 +748,9 @@ export var FileRender = function FileRender(_ref12) {
737
748
  return /*#__PURE__*/React.createElement(React.Fragment, null, fileList.map(function (item) {
738
749
  return /*#__PURE__*/React.createElement("a", {
739
750
  style: {
740
- color: "#1890ff",
741
- cursor: "pointer",
742
- display: "block"
751
+ color: '#1890ff',
752
+ cursor: 'pointer',
753
+ display: 'block'
743
754
  },
744
755
  onClick: function onClick(e) {
745
756
  e.preventDefault();
@@ -761,20 +772,20 @@ export var FileRender = function FileRender(_ref12) {
761
772
  }, "\u4E0B\u8F7D") : /*#__PURE__*/React.createElement(CopyToClipboard, {
762
773
  text: fileUrl,
763
774
  onCopy: function onCopy() {
764
- message.success("复制成功");
775
+ message.success('复制成功');
765
776
  }
766
777
  }, /*#__PURE__*/React.createElement(Button, {
767
778
  type: "link"
768
- }, "\u4E0B\u8F7D\u5730\u5740")), fileType === "pic" ? /*#__PURE__*/React.createElement("img", {
779
+ }, "\u4E0B\u8F7D\u5730\u5740")), fileType === 'pic' ? /*#__PURE__*/React.createElement("img", {
769
780
  alt: "example",
770
781
  style: {
771
- width: "100%"
782
+ width: '100%'
772
783
  },
773
784
  src: fileUrl
774
785
  }) : /*#__PURE__*/React.createElement("video", {
775
786
  style: {
776
- width: "100%",
777
- height: "100%"
787
+ width: '100%',
788
+ height: '100%'
778
789
  },
779
790
  autoPlay: true,
780
791
  controls: true,
@@ -786,34 +797,34 @@ export var BsSystemOrderTable = function BsSystemOrderTable(_ref13) {
786
797
  type = _ref13.type;
787
798
  var columnMap = {
788
799
  BS_SYSTEM_ORDER: [{
789
- dataIndex: "billType",
790
- title: "订单类型"
800
+ dataIndex: 'billType',
801
+ title: '订单类型'
791
802
  }, {
792
- dataIndex: "billNo",
793
- title: "系统订单号"
803
+ dataIndex: 'billNo',
804
+ title: '系统订单号'
794
805
  }, {
795
- dataIndex: "billTag",
796
- title: "标记"
806
+ dataIndex: 'billTag',
807
+ title: '标记'
797
808
  }],
798
809
  WLN_SYSTEM_ORDER: [{
799
- dataIndex: "billType",
800
- title: "单据类型"
810
+ dataIndex: 'billType',
811
+ title: '单据类型'
801
812
  }, {
802
- dataIndex: "billNo",
803
- title: "系统订单号"
813
+ dataIndex: 'billNo',
814
+ title: '系统订单号'
804
815
  }, {
805
- dataIndex: "billTag",
806
- title: "标签"
816
+ dataIndex: 'billTag',
817
+ title: '标签'
807
818
  }],
808
819
  WDT_SYSTEM_ORDER: [{
809
- dataIndex: "billType",
810
- title: "订单类型"
820
+ dataIndex: 'billType',
821
+ title: '订单类型'
811
822
  }, {
812
- dataIndex: "billNo",
813
- title: "系统订单号"
823
+ dataIndex: 'billNo',
824
+ title: '系统订单号'
814
825
  }, {
815
- dataIndex: "billTag",
816
- title: "订单标签"
826
+ dataIndex: 'billTag',
827
+ title: '订单标签'
817
828
  }]
818
829
  };
819
830
  var rowSelection = {
@@ -835,14 +846,14 @@ export var BsSystemOrderTable = function BsSystemOrderTable(_ref13) {
835
846
  dataSource: (value === null || value === void 0 ? void 0 : value.showOrderInfo) || [],
836
847
  columns: columnMap[type] || [],
837
848
  rowSelection: rowSelection,
838
- rowKey: "billNo",
849
+ rowKey: 'billNo',
839
850
  size: "small",
840
851
  pagination: false,
841
852
  scroll: {
842
- x: "100%"
853
+ x: '100%'
843
854
  },
844
855
  locale: {
845
- emptyText: "暂无数据"
856
+ emptyText: '暂无数据'
846
857
  }
847
858
  });
848
859
  };
@@ -862,33 +873,33 @@ export var MsgContent = function MsgContent(_ref14) {
862
873
  _ref14$options = _ref14.options,
863
874
  options = _ref14$options === void 0 ? [] : _ref14$options;
864
875
  var msgTypeCh = {
865
- ding: "钉钉",
866
- wechat: "微信",
867
- qq: "QQ",
868
- qywx: "企业微信"
876
+ ding: '钉钉',
877
+ wechat: '微信',
878
+ qq: 'QQ',
879
+ qywx: '企业微信'
869
880
  };
870
881
  var detailContent = function detailContent(item) {
871
882
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
872
883
  style: {
873
- textAlign: "left"
884
+ textAlign: 'left'
874
885
  }
875
886
  }, /*#__PURE__*/React.createElement("div", null, item.ruleName)));
876
887
  };
877
888
  return /*#__PURE__*/React.createElement(Space, {
878
- direction: !horizontal ? "vertical" : "horizontal"
889
+ direction: !horizontal ? 'vertical' : 'horizontal'
879
890
  }, Array.isArray(list) ? (list || []).map(function (item, index) {
880
891
  var _options$find2;
881
892
  var color = ((_options$find2 = options.find(function (innerItem) {
882
893
  return item[valueKey] === innerItem.label;
883
- })) === null || _options$find2 === void 0 ? void 0 : _options$find2.color) || "#000";
894
+ })) === null || _options$find2 === void 0 ? void 0 : _options$find2.color) || '#000';
884
895
  var currentOption = options.find(function (option) {
885
896
  return item[valueKey] === option.value;
886
897
  });
887
- var key = item.msgType || "ding";
898
+ var key = item.msgType || 'ding';
888
899
  return /*#__PURE__*/React.createElement("div", {
889
900
  style: {
890
901
  color: color,
891
- cursor: "pointer"
902
+ cursor: 'pointer'
892
903
  }
893
904
  }, /*#__PURE__*/React.createElement(Popover, {
894
905
  content: detailContent(item),
@@ -897,7 +908,7 @@ export var MsgContent = function MsgContent(_ref14) {
897
908
  }
898
909
  }, /*#__PURE__*/React.createElement("span", {
899
910
  key: index
900
- }, msgTypeCh[key], "-", currentOption ? currentOption.label : (item === null || item === void 0 ? void 0 : item[valueKey]) || "")));
911
+ }, msgTypeCh[key], "-", currentOption ? currentOption.label : (item === null || item === void 0 ? void 0 : item[valueKey]) || '')));
901
912
  }) : null);
902
913
  };
903
914
  //获取付款凭证
@@ -908,7 +919,7 @@ export var AlipayBill = function AlipayBill(props) {
908
919
  _useState14 = _slicedToArray(_useState13, 2),
909
920
  visible = _useState14[0],
910
921
  setVisible = _useState14[1];
911
- var _useState15 = useState(""),
922
+ var _useState15 = useState(''),
912
923
  _useState16 = _slicedToArray(_useState15, 2),
913
924
  msg = _useState16[0],
914
925
  setMsg = _useState16[1];
@@ -933,7 +944,7 @@ export var AlipayBill = function AlipayBill(props) {
933
944
  data = res.data, msg = res.message;
934
945
  if (data) {
935
946
  setHasUrl(true);
936
- if (["fxg"].includes(platform)) {
947
+ if (['fxg'].includes(platform)) {
937
948
  setMsg(data);
938
949
  setVisible(true);
939
950
  } else {
@@ -960,8 +971,8 @@ export var AlipayBill = function AlipayBill(props) {
960
971
  };
961
972
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("span", {
962
973
  style: {
963
- color: "#1890ff",
964
- cursor: "pointer"
974
+ color: '#1890ff',
975
+ cursor: 'pointer'
965
976
  },
966
977
  onClick: voucherHandle
967
978
  }, value), /*#__PURE__*/React.createElement(Modal, {
@@ -969,7 +980,7 @@ export var AlipayBill = function AlipayBill(props) {
969
980
  visible: visible,
970
981
  footer: false,
971
982
  onCancel: closeHandle
972
- }, ["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, {
983
+ }, ['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
984
  copyable: true
974
985
  }, msg)) : msg));
975
986
  };