@kmkf-fe-packages/services-components 1.20.1 → 1.20.2-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.
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- declare type RequestType = "queryAddressData" | "queryBsAddressData" | "queryExpressInterceptData" | "queryLogisticsAddressData" | "queryPlatData" | "queryWdtAddressData" | "queryAllLogisticsCompany" | "queryLabel" | "queryWdtLogisticsCompany" | "queryWdtSendData";
2
+ declare type RequestType = "queryAddressData" | "queryBsAddressData" | "queryExpressInterceptData" | "queryLogisticsAddressData" | "queryPlatData" | "queryWdtAddressData" | "queryAllLogisticsCompany" | "queryLabel" | "queryWdtLogisticsCompany" | "queryBsE3LogisticsCompany" | "queryWdtSendData";
3
3
  declare const Global: ({ children, requestList, repeatRequestList, }: React.PropsWithChildren<{
4
4
  requestList?: RequestType[] | undefined;
5
5
  repeatRequestList?: Record<string, () => Promise<any>> | undefined;
@@ -15,7 +15,7 @@ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefine
15
15
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
16
16
  import React, { useEffect, useState } from "react";
17
17
  import { Skeleton, Button, Alert, Space } from "antd";
18
- import { queryExpressInterceptData, queryLogisticsAddressData, queryPlatData, queryLabel, queryAllLogisticsCompany, queryWdtLogisticsCompany, queryWdtSendData } from "../../service/api";
18
+ import { queryExpressInterceptData, queryLogisticsAddressData, queryPlatData, queryLabel, queryAllLogisticsCompany, queryWdtLogisticsCompany, queryBsE3LogisticsCompany, queryWdtSendData } from "../../service/api";
19
19
  import { servers } from "@kmkf-fe-packages/kmkf-utils";
20
20
  var Global = function Global(_ref) {
21
21
  var children = _ref.children,
@@ -43,6 +43,7 @@ var Global = function Global(_ref) {
43
43
  queryLabel: queryLabel,
44
44
  queryWdtAddressData: servers.queryWdtAddressData,
45
45
  queryWdtLogisticsCompany: queryWdtLogisticsCompany,
46
+ queryBsE3LogisticsCompany: queryBsE3LogisticsCompany,
46
47
  queryWdtSendData: queryWdtSendData
47
48
  };
48
49
  mergeMapping = _objectSpread(_objectSpread({}, mapping), repeatRequestList);
@@ -19,7 +19,8 @@ var typeMap = {
19
19
  ACTUAL_PAYMENT: 'actualPayment',
20
20
  BS_NET_RECEIPTS: 'bsNetReceipts',
21
21
  BS_DEPOSIT: 'bsDeposit',
22
- BS_PACKAGE_WEIGHT: 'bsPackageWeight'
22
+ BS_PACKAGE_WEIGHT: 'bsPackageWeight',
23
+ ACTUAL_RECEIPT_PAYMENT: 'actualReceiptPayment'
23
24
  };
24
25
  var ActualPayment = /*#__PURE__*/_createClass(function ActualPayment(options) {
25
26
  var _this = this;
@@ -162,7 +163,7 @@ var ActualPayment = /*#__PURE__*/_createClass(function ActualPayment(options) {
162
163
  this.canSort = true;
163
164
  this.children = [];
164
165
  this.componentConfig = options.componentConfig;
165
- this.rules = options.type === 'ACTUAL_PAYMENT' ? [{
166
+ this.rules = ['ACTUAL_PAYMENT', 'ACTUAL_RECEIPT_PAYMENT'].includes(options.type) ? [{
166
167
  pattern: /^\d+(\.\d{1,2})?$/,
167
168
  message: '字段为正数或最多两位小数'
168
169
  }] : [{
@@ -173,7 +174,8 @@ var ActualPayment = /*#__PURE__*/_createClass(function ActualPayment(options) {
173
174
  ACTUAL_PAYMENT: 'actualPayment',
174
175
  BS_NET_RECEIPTS: 'bsNetReceipts',
175
176
  BS_DEPOSIT: 'bsDeposit',
176
- BS_PACKAGE_WEIGHT: 'bsPackageWeight'
177
+ BS_PACKAGE_WEIGHT: 'bsPackageWeight',
178
+ ACTUAL_RECEIPT_PAYMENT: 'actualReceiptPayment'
177
179
  };
178
180
  });
179
181
  export default ActualPayment;
@@ -14,6 +14,7 @@ declare class BsLogistics implements ComponentInterface {
14
14
  [key: string]: any;
15
15
  }[];
16
16
  type: string;
17
+ platformType: string;
17
18
  rules: any[];
18
19
  componentConfig: ComponentInterface["componentConfig"];
19
20
  expressDateInstance: InstanceType<typeof ExpressData>;
@@ -23,19 +23,29 @@ var typeMap = {
23
23
  key: "bsLogisticsList",
24
24
  name: "bs",
25
25
  company: "bsLogisticsCompany",
26
- code: "bsLogisticsCode"
26
+ code: "bsLogisticsCode",
27
+ platformType: "default"
28
+ },
29
+ BS_E3_LOGISTICS: {
30
+ key: "bsE3LogisticsList",
31
+ name: "bsE3",
32
+ company: "bsE3LogisticsCompany",
33
+ code: "bsE3LogisticsCode",
34
+ platformType: "bsE3"
27
35
  },
28
36
  WLN_LOGISTICS: {
29
37
  key: "wlnLogisticsList",
30
38
  name: "万里牛",
31
39
  company: "wlnLogisticsCompany",
32
- code: "wlnLogisticsCode"
40
+ code: "wlnLogisticsCode",
41
+ platformType: "default"
33
42
  },
34
43
  WDT_LOGISTICS: {
35
44
  key: "wdtLogisticsList",
36
45
  name: "旺店通",
37
46
  company: "wdtLogisticsCompany",
38
- code: "wdtLogisticsCode"
47
+ code: "wdtLogisticsCode",
48
+ platformType: "wdt"
39
49
  }
40
50
  };
41
51
  var BsLogistics = /*#__PURE__*/_createClass(function BsLogistics(_options) {
@@ -46,6 +56,7 @@ var BsLogistics = /*#__PURE__*/_createClass(function BsLogistics(_options) {
46
56
  _typeMap$_options$typ4,
47
57
  _typeMap$_options$typ5,
48
58
  _typeMap$_options$typ6,
59
+ _typeMap$_options$typ7,
49
60
  _this$componentConfig5,
50
61
  _this$componentConfig7;
51
62
  _classCallCheck(this, BsLogistics);
@@ -54,6 +65,7 @@ var BsLogistics = /*#__PURE__*/_createClass(function BsLogistics(_options) {
54
65
  _defineProperty(this, "sortField", void 0);
55
66
  _defineProperty(this, "sortChildField", void 0);
56
67
  _defineProperty(this, "type", void 0);
68
+ _defineProperty(this, "platformType", void 0);
57
69
  _defineProperty(this, "rules", void 0);
58
70
  _defineProperty(this, "componentConfig", void 0);
59
71
  _defineProperty(this, "expressDateInstance", void 0);
@@ -74,7 +86,7 @@ var BsLogistics = /*#__PURE__*/_createClass(function BsLogistics(_options) {
74
86
  value: /*#__PURE__*/React.createElement(JstGoodImage, {
75
87
  list: record === null || record === void 0 ? void 0 : record[_this.id],
76
88
  type: 1,
77
- platformType: _this.type === 'WDT_LOGISTICS' ? 'wdt' : 'default'
89
+ platformType: _this.platformType
78
90
  })
79
91
  }) : null;
80
92
  });
@@ -104,7 +116,7 @@ var BsLogistics = /*#__PURE__*/_createClass(function BsLogistics(_options) {
104
116
  }, /*#__PURE__*/React.createElement(JstGoodImage, {
105
117
  list: list,
106
118
  type: 1,
107
- platformType: _this.type === 'WDT_LOGISTICS' ? 'wdt' : 'default'
119
+ platformType: _this.platformType
108
120
  }));
109
121
  });
110
122
  _defineProperty(this, "renderLog", function (r) {
@@ -132,7 +144,7 @@ var BsLogistics = /*#__PURE__*/_createClass(function BsLogistics(_options) {
132
144
  tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip : '',
133
145
  component: /*#__PURE__*/React.createElement(JstGoods, _extends({}, _this.componentConfig, {
134
146
  type: 1,
135
- platformType: _this.type === 'WDT_LOGISTICS' ? 'wdt' : 'default',
147
+ platformType: _this.platformType,
136
148
  options: _this.expressDateInstance.getExpressData(),
137
149
  onChange: p === null || p === void 0 ? void 0 : p.onChange
138
150
  }))
@@ -151,20 +163,21 @@ var BsLogistics = /*#__PURE__*/_createClass(function BsLogistics(_options) {
151
163
  this.sortField = "".concat(_options.id, "_").concat((_typeMap$_options$typ = typeMap[_options.type]) === null || _typeMap$_options$typ === void 0 ? void 0 : _typeMap$_options$typ.key);
152
164
  this.formField = "".concat(_options.id, "_").concat((_typeMap$_options$typ2 = typeMap[_options.type]) === null || _typeMap$_options$typ2 === void 0 ? void 0 : _typeMap$_options$typ2.key);
153
165
  this.type = _options.type;
166
+ this.platformType = (_typeMap$_options$typ3 = typeMap[_options.type]) === null || _typeMap$_options$typ3 === void 0 ? void 0 : _typeMap$_options$typ3.platformType;
154
167
  this.componentConfig = _options.componentConfig;
155
168
  this.isCombinationComponent = true;
156
169
  this.canSort = false;
157
170
  this.expressCompany = new ExpressCompany(_objectSpread(_objectSpread({}, _options), {}, {
158
171
  name: "物流公司",
159
172
  parentName: this.name,
160
- id: "".concat(_options.id, "_").concat((_typeMap$_options$typ3 = typeMap[_options.type]) === null || _typeMap$_options$typ3 === void 0 ? void 0 : _typeMap$_options$typ3.key, "_").concat((_typeMap$_options$typ4 = typeMap[_options.type]) === null || _typeMap$_options$typ4 === void 0 ? void 0 : _typeMap$_options$typ4.company),
173
+ id: "".concat(_options.id, "_").concat((_typeMap$_options$typ4 = typeMap[_options.type]) === null || _typeMap$_options$typ4 === void 0 ? void 0 : _typeMap$_options$typ4.key, "_").concat((_typeMap$_options$typ5 = typeMap[_options.type]) === null || _typeMap$_options$typ5 === void 0 ? void 0 : _typeMap$_options$typ5.company),
161
174
  width: 200,
162
- platformType: this.type === 'WDT_LOGISTICS' ? 'wdt' : 'default'
175
+ platformType: this.platformType
163
176
  }));
164
177
  this.expressCode = new ExpressCode(_objectSpread(_objectSpread({}, _options), {}, {
165
178
  name: "物流单号",
166
179
  parentName: this.name,
167
- id: "".concat(_options.id, "_").concat((_typeMap$_options$typ5 = typeMap[_options.type]) === null || _typeMap$_options$typ5 === void 0 ? void 0 : _typeMap$_options$typ5.key, "_").concat((_typeMap$_options$typ6 = typeMap[_options.type]) === null || _typeMap$_options$typ6 === void 0 ? void 0 : _typeMap$_options$typ6.code),
180
+ id: "".concat(_options.id, "_").concat((_typeMap$_options$typ6 = typeMap[_options.type]) === null || _typeMap$_options$typ6 === void 0 ? void 0 : _typeMap$_options$typ6.key, "_").concat((_typeMap$_options$typ7 = typeMap[_options.type]) === null || _typeMap$_options$typ7 === void 0 ? void 0 : _typeMap$_options$typ7.code),
168
181
  width: 200
169
182
  }));
170
183
  this.children = [this.expressCompany, this.expressCode];
@@ -189,7 +202,7 @@ var BsLogistics = /*#__PURE__*/_createClass(function BsLogistics(_options) {
189
202
  return Promise.resolve();
190
203
  }
191
204
  }] : [];
192
- this.expressDateInstance = ExpressData.getInstance(this.type === 'WDT_LOGISTICS' ? 'wdt' : 'default');
205
+ this.expressDateInstance = ExpressData.getInstance(this.platformType);
193
206
  this.sortChildField = this.getSortChildFields(((_this$componentConfig7 = this.componentConfig) === null || _this$componentConfig7 === void 0 ? void 0 : _this$componentConfig7.showField) || "", _options);
194
207
  });
195
208
  export default BsLogistics;
@@ -19,6 +19,9 @@ var typeMap = {
19
19
  BS_LOGISTICS: {
20
20
  key: "bsLogisticsItem"
21
21
  },
22
+ BS_E3_LOGISTICS: {
23
+ key: "bsE3LogisticsItem"
24
+ },
22
25
  WLN_LOGISTICS: {
23
26
  key: "wlnLogisticsItem"
24
27
  },
@@ -20,6 +20,9 @@ var typeMap = {
20
20
  BS_LOGISTICS: {
21
21
  key: "bsLogisticsItem"
22
22
  },
23
+ BS_E3_LOGISTICS: {
24
+ key: "bsE3LogisticsItem"
25
+ },
23
26
  WLN_LOGISTICS: {
24
27
  key: "wlnLogisticsItem"
25
28
  },
@@ -14,7 +14,7 @@ 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, WdtSendData, BS_E3_BOOLEAN_STATUS_MAP, BS_E3_ORDER_STATUS_MAP } from "@kmkf-fe-packages/kmkf-utils";
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
19
  import { CopyToClipboard } from 'react-copy-to-clipboard';
20
20
  import styles from "./index.module.less";
@@ -258,6 +258,9 @@ export var JstGoodImage = function JstGoodImage(_ref6) {
258
258
  type = _ref6.type,
259
259
  _ref6$platformType = _ref6.platformType,
260
260
  platformType = _ref6$platformType === void 0 ? 'default' : _ref6$platformType;
261
+ var getSendName = function getSendName(item, platformType) {
262
+ return SendDataCenter.getInstance(platformType).getSendNameByCode(item.sendName);
263
+ };
261
264
  return list !== null && list !== void 0 && list.length ? (list || []).map(function (item, index) {
262
265
  var logisticsCompany = item.logisticsCompany;
263
266
  var company = ExpressData.getInstance(platformType).getExpressNameByCode(logisticsCompany);
@@ -276,7 +279,7 @@ export var JstGoodImage = function JstGoodImage(_ref6) {
276
279
  text: item.logisticsCode
277
280
  })) : company ? company : item.logisticsCode ? /*#__PURE__*/React.createElement(CopyText, {
278
281
  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));
282
+ }) : 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));
280
283
  }) : null;
281
284
  };
282
285
  export var BsExpressRender = function BsExpressRender(_ref7) {
@@ -1274,6 +1277,7 @@ export var MsgContent = function MsgContent(_ref14) {
1274
1277
  _ref14$options = _ref14.options,
1275
1278
  options = _ref14$options === void 0 ? [] : _ref14$options;
1276
1279
  var msgTypeCh = {
1280
+ pdd: '拼多多',
1277
1281
  ding: '钉钉',
1278
1282
  wechat: '微信',
1279
1283
  qq: 'QQ',
@@ -1318,7 +1322,7 @@ export var MsgContent = function MsgContent(_ref14) {
1318
1322
  var key = item.msgType || 'ding';
1319
1323
  var formatMsgContent = /*#__PURE__*/React.createElement("span", {
1320
1324
  key: index
1321
- }, msgTypeCh[key], "-", item.ruleName, "-", currentOption ? currentOption.label : (item === null || item === void 0 ? void 0 : item[valueKey]) || "");
1325
+ }, msgTypeCh[key] || key, "-", item.ruleName, "-", currentOption ? currentOption.label : (item === null || item === void 0 ? void 0 : item[valueKey]) || "");
1322
1326
  return /*#__PURE__*/React.createElement("div", {
1323
1327
  key: "wrap_".concat(index),
1324
1328
  style: {
@@ -12,32 +12,43 @@ import GetFormItem from "../../GetFormItem";
12
12
  import { JstGoodImage } from "../../Common";
13
13
  import { JstGoods } from "@kmkf-fe-packages/basic-components";
14
14
  import ItemView from "../../../commonComponents/ItemView";
15
- import { isNull, filterFn as _filterFn, WdtSendData } from "@kmkf-fe-packages/kmkf-utils";
15
+ import { isNull, filterFn as _filterFn, SendDataCenter } from "@kmkf-fe-packages/kmkf-utils";
16
16
  import { SYMBOL } from "../../../constant";
17
17
  var typeMap = {
18
18
  JST_SEND_GOOD: {
19
19
  key: "jstItemList",
20
20
  name: "jst",
21
21
  sendId: "sendId",
22
- sendName: "sendName"
22
+ sendName: "sendName",
23
+ platformType: 'default'
23
24
  },
24
25
  BS_SEND_GOOD: {
25
26
  key: "bsSendGood",
26
27
  name: "bs",
27
28
  sendId: "bsSendId",
28
- sendName: "bsSendName"
29
+ sendName: "bsSendName",
30
+ platformType: 'default'
31
+ },
32
+ BS_E3_SEND_GOOD: {
33
+ key: "bsE3SendGood",
34
+ name: "bsE3",
35
+ sendId: "bsE3SendId",
36
+ sendName: "bsE3SendName",
37
+ platformType: 'bsE3'
29
38
  },
30
39
  WLN_SEND_GOOD: {
31
40
  key: "wlnSendGood",
32
41
  name: "wln",
33
42
  sendId: "wlnSendId",
34
- sendName: "wlnSendName"
43
+ sendName: "wlnSendName",
44
+ platformType: 'default'
35
45
  },
36
46
  WDT_SEND_GOOD: {
37
47
  key: "wdtSendGood",
38
48
  name: "wdt",
39
49
  sendId: "wdtSendId",
40
- sendName: "wdtSendName"
50
+ sendName: "wdtSendName",
51
+ platformType: 'wdt'
41
52
  }
42
53
  };
43
54
  var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
@@ -75,12 +86,11 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
75
86
  dataType: "arrayObject",
76
87
  disabled: type === 'sendName'
77
88
  };
78
- if (fieldType === 'WDT_SEND_GOOD') {
79
- sendName.options = WdtSendData.getInstance().getWdtSendData() || [];
80
- }
89
+ sendName.options = fieldType && SendDataCenter.getInstance(fieldType).getSendData();
81
90
  return [sendName, sendId];
82
91
  });
83
92
  _defineProperty(this, "renderClient", function (record) {
93
+ var _typeMap$_this$type;
84
94
  var isShow = Array.isArray(record === null || record === void 0 ? void 0 : record[_this.id]) ? some(record === null || record === void 0 ? void 0 : record[_this.id], function (item) {
85
95
  return !isNull(item);
86
96
  }) : false;
@@ -90,13 +100,13 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
90
100
  value: /*#__PURE__*/React.createElement(JstGoodImage, {
91
101
  list: record === null || record === void 0 ? void 0 : record[_this.id],
92
102
  type: 3,
93
- platformType: _this.type === 'WDT_SEND_GOOD' ? 'wdt' : 'default'
103
+ platformType: (_typeMap$_this$type = typeMap[_this.type]) === null || _typeMap$_this$type === void 0 ? void 0 : _typeMap$_this$type.platformType
94
104
  })
95
105
  }) : null;
96
106
  });
97
107
  _defineProperty(this, "renderPc", function (value, record) {
98
- var _typeMap$_this$type;
99
- var list = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat((_typeMap$_this$type = typeMap[_this.type]) === null || _typeMap$_this$type === void 0 ? void 0 : _typeMap$_this$type.key)];
108
+ var _typeMap$_this$type2, _typeMap$_this$type3;
109
+ var list = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat((_typeMap$_this$type2 = typeMap[_this.type]) === null || _typeMap$_this$type2 === void 0 ? void 0 : _typeMap$_this$type2.key)];
100
110
  //兼容多个商品
101
111
  return /*#__PURE__*/React.createElement("span", {
102
112
  onClick: function onClick(e) {
@@ -105,28 +115,28 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
105
115
  }, /*#__PURE__*/React.createElement(JstGoodImage, {
106
116
  list: list,
107
117
  type: 3,
108
- platformType: _this.type === 'WDT_SEND_GOOD' ? 'wdt' : 'default'
118
+ platformType: (_typeMap$_this$type3 = typeMap[_this.type]) === null || _typeMap$_this$type3 === void 0 ? void 0 : _typeMap$_this$type3.platformType
109
119
  }));
110
120
  });
111
121
  _defineProperty(this, "renderLog", function (r) {
112
- var _typeMap$_this$type2;
113
- var list = r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat((_typeMap$_this$type2 = typeMap[_this.type]) === null || _typeMap$_this$type2 === void 0 ? void 0 : _typeMap$_this$type2.key)];
122
+ var _typeMap$_this$type4;
123
+ var list = r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat((_typeMap$_this$type4 = typeMap[_this.type]) === null || _typeMap$_this$type4 === void 0 ? void 0 : _typeMap$_this$type4.key)];
114
124
  if (isNull(list)) return null;
115
125
  return _this.renderPc(undefined, r);
116
126
  });
117
127
  _defineProperty(this, "getComponentValue", function (r) {
118
- var _typeMap$_this$type3;
119
- return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat((_typeMap$_this$type3 = typeMap[_this.type]) === null || _typeMap$_this$type3 === void 0 ? void 0 : _typeMap$_this$type3.key)];
128
+ var _typeMap$_this$type5;
129
+ return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat((_typeMap$_this$type5 = typeMap[_this.type]) === null || _typeMap$_this$type5 === void 0 ? void 0 : _typeMap$_this$type5.key)];
120
130
  });
121
131
  _defineProperty(this, "renderExport", function (value, record) {
122
- var _typeMap$_this$type4;
123
- var list = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat((_typeMap$_this$type4 = typeMap[_this.type]) === null || _typeMap$_this$type4 === void 0 ? void 0 : _typeMap$_this$type4.key)];
132
+ var _typeMap$_this$type6;
133
+ var list = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat((_typeMap$_this$type6 = typeMap[_this.type]) === null || _typeMap$_this$type6 === void 0 ? void 0 : _typeMap$_this$type6.key)];
124
134
  return (list || []).map(function (item) {
125
- return [item === null || item === void 0 ? void 0 : item.sendId, _this.type === 'WDT_SEND_GOOD' ? WdtSendData.getInstance().getWdtSendNameByCode(item === null || item === void 0 ? void 0 : item.sendName) : item === null || item === void 0 ? void 0 : item.sendName].join("/");
135
+ return [item === null || item === void 0 ? void 0 : item.sendId, SendDataCenter.getInstance(_this.type).getSendNameByCode(item === null || item === void 0 ? void 0 : item.sendName)].join("/");
126
136
  }).join(",");
127
137
  });
128
138
  _defineProperty(this, "editRender", function (p) {
129
- var _this$componentConfig, _this$componentConfig2;
139
+ var _this$componentConfig, _this$componentConfig2, _typeMap$_this$type7;
130
140
  return /*#__PURE__*/React.createElement(GetFormItem, {
131
141
  title: _this.name,
132
142
  name: _this.id,
@@ -137,20 +147,20 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
137
147
  tooltip: (_this$componentConfig = _this.componentConfig) !== null && _this$componentConfig !== void 0 && _this$componentConfig.showTooltip ? (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.tooltip : '',
138
148
  component: /*#__PURE__*/React.createElement(JstGoods, _extends({}, _this.componentConfig, {
139
149
  type: 3,
140
- platformType: _this.type === 'WDT_SEND_GOOD' ? 'wdt' : 'default'
150
+ platformType: (_typeMap$_this$type7 = typeMap[_this.type]) === null || _typeMap$_this$type7 === void 0 ? void 0 : _typeMap$_this$type7.platformType
141
151
  }))
142
152
  });
143
153
  });
144
154
  _defineProperty(this, "filterConfig", function (item) {
145
- var _typeMap$_this$type5, _typeMap$_this$type6, _typeMap$_this$type8;
146
- return [_this.type === 'WDT_SEND_GOOD' ? {
155
+ var _typeMap$_this$type8, _typeMap$_this$type9, _typeMap$_this$type11;
156
+ return [_this.type === 'WDT_SEND_GOOD' || _this.type === 'BS_E3_SEND_GOOD' ? {
147
157
  searchDefaultConditions: SYMBOL.in,
148
158
  type: item.type,
149
- id: "".concat(item.id, "_").concat((_typeMap$_this$type5 = typeMap[_this.type]) === null || _typeMap$_this$type5 === void 0 ? void 0 : _typeMap$_this$type5.sendName),
159
+ id: "".concat(item.id, "_").concat((_typeMap$_this$type8 = typeMap[_this.type]) === null || _typeMap$_this$type8 === void 0 ? void 0 : _typeMap$_this$type8.sendName),
150
160
  name: "".concat(_this.name, "\u540D\u79F0"),
151
161
  filterComponentType: "MultipleSelect",
152
162
  props: {
153
- options: WdtSendData.getInstance().getWdtSendData() || []
163
+ options: SendDataCenter.getInstance(item.type).getSendData()
154
164
  },
155
165
  filterFn: function filterFn(value) {
156
166
  return function (i) {
@@ -165,13 +175,13 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
165
175
  } : {
166
176
  searchDefaultConditions: SYMBOL.like,
167
177
  type: item.type,
168
- id: "".concat(item.id, "_").concat((_typeMap$_this$type6 = typeMap[_this.type]) === null || _typeMap$_this$type6 === void 0 ? void 0 : _typeMap$_this$type6.sendName),
178
+ id: "".concat(item.id, "_").concat((_typeMap$_this$type9 = typeMap[_this.type]) === null || _typeMap$_this$type9 === void 0 ? void 0 : _typeMap$_this$type9.sendName),
169
179
  name: "".concat(_this.name, "\u540D\u79F0"),
170
180
  filterComponentType: "Input",
171
181
  filterFn: function filterFn(value) {
172
182
  return function (i) {
173
- var _ref2, _typeMap$_this$type7;
174
- return (_ref2 = _filterFn.filterTableListItemColumnValue(i, item.id, (_typeMap$_this$type7 = typeMap[_this.type]) === null || _typeMap$_this$type7 === void 0 ? void 0 : _typeMap$_this$type7.key) || []) === null || _ref2 === void 0 ? void 0 : _ref2.some(function (item) {
183
+ var _ref2, _typeMap$_this$type10;
184
+ return (_ref2 = _filterFn.filterTableListItemColumnValue(i, item.id, (_typeMap$_this$type10 = typeMap[_this.type]) === null || _typeMap$_this$type10 === void 0 ? void 0 : _typeMap$_this$type10.key) || []) === null || _ref2 === void 0 ? void 0 : _ref2.some(function (item) {
175
185
  var _String2;
176
186
  var name = item !== null && item !== void 0 && item.sendName ? (_String2 = String(item === null || item === void 0 ? void 0 : item.sendName)) === null || _String2 === void 0 ? void 0 : _String2.includes(value) : false;
177
187
  return name;
@@ -181,13 +191,13 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
181
191
  }, {
182
192
  searchDefaultConditions: SYMBOL.like,
183
193
  type: item.type,
184
- id: "".concat(item.id, "_").concat((_typeMap$_this$type8 = typeMap[_this.type]) === null || _typeMap$_this$type8 === void 0 ? void 0 : _typeMap$_this$type8.sendId),
194
+ id: "".concat(item.id, "_").concat((_typeMap$_this$type11 = typeMap[_this.type]) === null || _typeMap$_this$type11 === void 0 ? void 0 : _typeMap$_this$type11.sendId),
185
195
  name: "".concat(_this.name, "\u7F16\u7801"),
186
196
  filterComponentType: "Input",
187
197
  filterFn: function filterFn(value) {
188
198
  return function (i) {
189
- var _ref3, _typeMap$_this$type9;
190
- return (_ref3 = _filterFn.filterTableListItemColumnValue(i, item.id, (_typeMap$_this$type9 = typeMap[_this.type]) === null || _typeMap$_this$type9 === void 0 ? void 0 : _typeMap$_this$type9.key) || []) === null || _ref3 === void 0 ? void 0 : _ref3.some(function (item) {
199
+ var _ref3, _typeMap$_this$type12;
200
+ return (_ref3 = _filterFn.filterTableListItemColumnValue(i, item.id, (_typeMap$_this$type12 = typeMap[_this.type]) === null || _typeMap$_this$type12 === void 0 ? void 0 : _typeMap$_this$type12.key) || []) === null || _ref3 === void 0 ? void 0 : _ref3.some(function (item) {
191
201
  var _String3;
192
202
  var id = item !== null && item !== void 0 && item.sendId ? (_String3 = String(item === null || item === void 0 ? void 0 : item.sendId)) === null || _String3 === void 0 ? void 0 : _String3.includes(value) : false;
193
203
  return id;
@@ -12,7 +12,7 @@ import GetFormItem from "../GetFormItem";
12
12
  import { JstGoodImage } from "../Common";
13
13
  import { JstGoods } from "@kmkf-fe-packages/basic-components";
14
14
  import ItemView from "../../commonComponents/ItemView";
15
- import { isNull, filterFn as _filterFn, WdtSendData } from "@kmkf-fe-packages/kmkf-utils";
15
+ import { isNull, filterFn as _filterFn, SendDataCenter } from "@kmkf-fe-packages/kmkf-utils";
16
16
  import { SYMBOL } from "../../constant";
17
17
  var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
18
18
  var _this = this,
@@ -58,7 +58,7 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
58
58
  value: /*#__PURE__*/React.createElement(JstGoodImage, {
59
59
  list: record === null || record === void 0 ? void 0 : record[_this.id],
60
60
  type: 3,
61
- platformType: _this.type === 'WDT_SEND_GOOD' ? 'wdt' : 'default'
61
+ platformType: 'default'
62
62
  })
63
63
  }) : null;
64
64
  });
@@ -72,7 +72,7 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
72
72
  }, /*#__PURE__*/React.createElement(JstGoodImage, {
73
73
  list: list,
74
74
  type: 3,
75
- platformType: _this.type === 'WDT_SEND_GOOD' ? 'wdt' : 'default'
75
+ platformType: 'default'
76
76
  }));
77
77
  });
78
78
  _defineProperty(this, "renderLog", function (r) {
@@ -86,7 +86,7 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
86
86
  _defineProperty(this, "renderExport", function (value, record) {
87
87
  var list = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(_this.suffixKey)];
88
88
  return (list || []).map(function (item) {
89
- return [item === null || item === void 0 ? void 0 : item.sendId, _this.type === 'WDT_SEND_GOOD' ? WdtSendData.getInstance().getWdtSendNameByCode(item === null || item === void 0 ? void 0 : item.sendName) : item === null || item === void 0 ? void 0 : item.sendName].join("/");
89
+ return [item === null || item === void 0 ? void 0 : item.sendId, SendDataCenter.getInstance(_this.type).getSendNameByCode(item === null || item === void 0 ? void 0 : item.sendName)].join("/");
90
90
  }).join(",");
91
91
  });
92
92
  _defineProperty(this, "editRender", function (p) {
@@ -101,19 +101,19 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
101
101
  tooltip: (_this$componentConfig = _this.componentConfig) !== null && _this$componentConfig !== void 0 && _this$componentConfig.showTooltip ? (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.tooltip : '',
102
102
  component: /*#__PURE__*/React.createElement(JstGoods, _extends({}, _this.componentConfig, {
103
103
  type: 3,
104
- platformType: _this.type === 'WDT_SEND_GOOD' ? 'wdt' : 'default'
104
+ platformType: 'default'
105
105
  }))
106
106
  });
107
107
  });
108
108
  _defineProperty(this, "filterConfig", function (item) {
109
- return [_this.type === 'WDT_SEND_GOOD' ? {
109
+ return [_this.type === 'WDT_SEND_GOOD' || _this.type === 'BS_E3_SEND_GOOD' ? {
110
110
  searchDefaultConditions: SYMBOL.in,
111
111
  type: item.type,
112
112
  id: "".concat(item.id, "_").concat(_this.suffixSendName),
113
113
  name: "".concat(_this.name, "\u540D\u79F0"),
114
114
  filterComponentType: "MultipleSelect",
115
115
  props: {
116
- options: WdtSendData.getInstance().getWdtSendData() || []
116
+ options: SendDataCenter.getInstance(_this.type).getSendData()
117
117
  },
118
118
  filterFn: function filterFn(value) {
119
119
  return function (i) {
@@ -39,10 +39,15 @@ var typeMap = {
39
39
  label: '等待执行',
40
40
  color: '#e7780f'
41
41
  }, {
42
- oldValue: '等待发送',
42
+ oldValue: '不满足条件,无需执行',
43
43
  value: '不满足条件,无需执行',
44
44
  label: '不满足条件,无需执行',
45
45
  color: '#8A8A8A'
46
+ }, {
47
+ oldValue: '暂不满足条件,等待执行',
48
+ value: '暂不满足条件,等待执行',
49
+ label: '暂不满足条件,等待执行',
50
+ color: '#4D90F7'
46
51
  }],
47
52
  key: 'msgStatusValues',
48
53
  code: 'msgStatus4Search',
@@ -55,6 +60,7 @@ var typeMap = {
55
60
  }
56
61
  };
57
62
  var msgTypeCh = {
63
+ pdd: '拼多多',
58
64
  ding: '钉钉',
59
65
  wechat: '微信',
60
66
  qq: 'QQ',
@@ -134,7 +140,7 @@ var MsgStatus = /*#__PURE__*/_createClass(function MsgStatus(options) {
134
140
  return item[(_typeMap$_this$type14 = typeMap[_this.type]) === null || _typeMap$_this$type14 === void 0 ? void 0 : _typeMap$_this$type14.valueKey] === option.value;
135
141
  });
136
142
  var key = item.msgType || 'ding';
137
- return "".concat(msgTypeCh[key], "-").concat(item.ruleName, ":").concat(currentOption ? (currentOption === null || currentOption === void 0 ? void 0 : currentOption.label) || '' : (item === null || item === void 0 ? void 0 : item[(_typeMap$_this$type15 = typeMap[_this.type]) === null || _typeMap$_this$type15 === void 0 ? void 0 : _typeMap$_this$type15.valueKey]) || '');
143
+ return "".concat(msgTypeCh[key] || key, "-").concat(item.ruleName, ":").concat(currentOption ? (currentOption === null || currentOption === void 0 ? void 0 : currentOption.label) || '' : (item === null || item === void 0 ? void 0 : item[(_typeMap$_this$type15 = typeMap[_this.type]) === null || _typeMap$_this$type15 === void 0 ? void 0 : _typeMap$_this$type15.valueKey]) || '');
138
144
  }).join(',');
139
145
  });
140
146
  _defineProperty(this, "editRender", function (p) {
@@ -13,6 +13,7 @@ import { imgResize } from "@kmkf-fe-packages/kmkf-utils";
13
13
  import GetFormItem from "../GetFormItem";
14
14
  import ItemView from "../../commonComponents/ItemView";
15
15
  import { isNull } from "@kmkf-fe-packages/kmkf-utils";
16
+ var hostUrl = "https://kefu.kuaimai.com";
16
17
  var BasicPicture = /*#__PURE__*/_createClass(function BasicPicture(options) {
17
18
  var _this = this;
18
19
  _classCallCheck(this, BasicPicture);
@@ -56,7 +57,7 @@ var BasicPicture = /*#__PURE__*/_createClass(function BasicPicture(options) {
56
57
  return /*#__PURE__*/React.createElement("span", null, "--");
57
58
  }
58
59
  var finalPictures = _this.formatPictures(record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_picture")]).map(function (item) {
59
- return "".concat(window.location.origin, "/").concat(item);
60
+ return "".concat(hostUrl, "/").concat(item);
60
61
  });
61
62
  return /*#__PURE__*/React.createElement(Image.PreviewGroup, null, finalPictures === null || finalPictures === void 0 ? void 0 : finalPictures.map(function (pic) {
62
63
  return /*#__PURE__*/React.createElement("div", {
@@ -102,7 +103,7 @@ var BasicPicture = /*#__PURE__*/_createClass(function BasicPicture(options) {
102
103
  tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip : "",
103
104
  component: (_this$componentConfig5 = _this.componentConfig) !== null && _this$componentConfig5 !== void 0 && _this$componentConfig5.isSingleShop ? /*#__PURE__*/React.createElement(ApaasUpload, _this.componentConfig) : /*#__PURE__*/React.createElement(ApaasUploadAsync, _extends({}, _this.componentConfig, {
104
105
  uniqueKey: _this.id,
105
- hostUrl: "https://kefu.kuaimai.com"
106
+ hostUrl: hostUrl
106
107
  }))
107
108
  });
108
109
  });
@@ -75,6 +75,7 @@ export var factory = function factory(type, options) {
75
75
  case "RETURN_LOGISTICS_SELECT":
76
76
  return new ReturnLogistics(options);
77
77
  case "ACTUAL_PAYMENT":
78
+ case "ACTUAL_RECEIPT_PAYMENT":
78
79
  case "BS_NET_RECEIPTS":
79
80
  case "BS_DEPOSIT":
80
81
  case "BS_PACKAGE_WEIGHT":
@@ -135,6 +136,7 @@ export var factory = function factory(type, options) {
135
136
  return new BsSystemOrder(options);
136
137
  case "JST_SEND_GOOD":
137
138
  case "BS_SEND_GOOD":
139
+ case "BS_E3_SEND_GOOD":
138
140
  case "WLN_SEND_GOOD":
139
141
  case "WDT_SEND_GOOD":
140
142
  return new JstSendGood(options);
@@ -164,6 +166,7 @@ export var factory = function factory(type, options) {
164
166
  case "EXCHANGE_TRADE_ID":
165
167
  return new CommonSystemOrder(options);
166
168
  case "BS_LOGISTICS":
169
+ case "BS_E3_LOGISTICS":
167
170
  case "WLN_LOGISTICS":
168
171
  case "WDT_LOGISTICS":
169
172
  return new BsLogistics(options);
@@ -7,6 +7,7 @@ export declare const queryExpressInterceptData: () => Promise<void>;
7
7
  export declare const queryLogisticsAddressData: () => Promise<void>;
8
8
  export declare const queryAllLogisticsCompany: () => Promise<void>;
9
9
  export declare const queryWdtLogisticsCompany: () => Promise<void>;
10
+ export declare const queryBsE3LogisticsCompany: () => Promise<void>;
10
11
  export declare const queryWdtSendData: () => Promise<void>;
11
12
  export declare const getAlipayBillReceipt: (data: any) => Promise<any>;
12
13
  export declare const queryLabel: () => Promise<any>;
@@ -1,4 +1,7 @@
1
1
  function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2
+ function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var methodName = context.method, method = delegate.iterator[methodName]; if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel; var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) keys.push(key); return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, catch: function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
3
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
4
+ function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
2
5
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
3
6
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
4
7
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
@@ -10,7 +13,7 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
10
13
  function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
11
14
  function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
12
15
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
13
- import { AddressData, toTree, BsAddressData, WdtAddressData, PlatData, ExpressInterceptData, LogisticsAddressData, ExpressData, LabelData, WdtSendData, servers, WDT } from "@kmkf-fe-packages/kmkf-utils";
16
+ import { AddressData, toTree, BsAddressData, WdtAddressData, PlatData, ExpressInterceptData, LogisticsAddressData, ExpressData, LabelData, SendDataCenter, servers } from "@kmkf-fe-packages/kmkf-utils";
14
17
  import get from "lodash/get";
15
18
  import request from "./request";
16
19
  // 重复校验
@@ -257,12 +260,29 @@ export var queryWdtLogisticsCompany = function queryWdtLogisticsCompany() {
257
260
  instance.expressData = data;
258
261
  }).catch(console.log);
259
262
  };
260
- export var queryWdtSendData = function queryWdtSendData() {
261
- var instance = WdtSendData.getInstance();
262
- return WDT.getWarehouseDataAsync().then(function (data) {
263
- instance.wdtSendData = data;
263
+ export var queryBsE3LogisticsCompany = function queryBsE3LogisticsCompany() {
264
+ var instance = ExpressData.getInstance('bsE3');
265
+ return servers.BSE3.getLogisticsDataAsync().then(function (data) {
266
+ instance.expressData = data;
264
267
  }).catch(console.log);
265
268
  };
269
+ export var queryWdtSendData = /*#__PURE__*/function () {
270
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
271
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
272
+ while (1) switch (_context.prev = _context.next) {
273
+ case 0:
274
+ _context.next = 2;
275
+ return SendDataCenter.fetchData();
276
+ case 2:
277
+ case "end":
278
+ return _context.stop();
279
+ }
280
+ }, _callee);
281
+ }));
282
+ return function queryWdtSendData() {
283
+ return _ref.apply(this, arguments);
284
+ };
285
+ }();
266
286
  // 获取支付宝电子回单
267
287
  export var getAlipayBillReceipt = function getAlipayBillReceipt(data) {
268
288
  return request({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/services-components",
3
- "version": "1.20.1",
3
+ "version": "1.20.2-beta.0",
4
4
  "module": "dist/esm/index.js",
5
5
  "typings": "dist/esm/index.d.ts",
6
6
  "files": [
@@ -21,8 +21,8 @@
21
21
  ]
22
22
  },
23
23
  "dependencies": {
24
- "@kmkf-fe-packages/basic-components": "1.20.1",
25
- "@kmkf-fe-packages/kmkf-utils": "1.20.1",
24
+ "@kmkf-fe-packages/basic-components": "1.20.2-beta.0",
25
+ "@kmkf-fe-packages/kmkf-utils": "1.20.2-beta.0",
26
26
  "b64-to-blob": "^1.2.19",
27
27
  "html2canvas": "^1.4.1",
28
28
  "react-pdf-js": "^5.1.0"
@@ -41,7 +41,7 @@
41
41
  "publishConfig": {
42
42
  "access": "public"
43
43
  },
44
- "gitHead": "a1dc08d9ef872780fc160b4e09fd6b8d3f3bd933",
44
+ "gitHead": "48b12e530e4af7c424ab203864460cfc93a44632",
45
45
  "gitHooks": {
46
46
  "pre-commit": "lint-staged"
47
47
  }