@kmkf-fe-packages/services-components 1.20.2-beta.5 → 1.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/commonComponents/GlobalContext/index.d.ts +1 -1
- package/dist/esm/commonComponents/GlobalContext/index.js +1 -2
- package/dist/esm/components/BS/BsLogistics/index.d.ts +0 -1
- package/dist/esm/components/BS/BsLogistics/index.js +10 -23
- package/dist/esm/components/BS/BsSystemOrder/index.js +0 -12
- package/dist/esm/components/BS/common/expressCode.js +0 -3
- package/dist/esm/components/BS/common/expressCompany.js +0 -3
- package/dist/esm/components/Cascader/index.js +2 -2
- package/dist/esm/components/Common/index.js +3 -7
- package/dist/esm/components/JST/JstSendGood/index.js +31 -41
- package/dist/esm/components/KmErpSendGood/index.js +7 -7
- package/dist/esm/components/MsgStatus/index.js +2 -8
- package/dist/esm/factory.d.ts +1 -1
- package/dist/esm/factory.js +0 -2
- package/dist/esm/service/api.d.ts +0 -1
- package/dist/esm/service/api.js +5 -25
- package/package.json +4 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
declare type RequestType = "queryAddressData" | "queryBsAddressData" | "queryExpressInterceptData" | "queryLogisticsAddressData" | "queryPlatData" | "queryWdtAddressData" | "queryAllLogisticsCompany" | "queryLabel" | "queryWdtLogisticsCompany" | "
|
|
2
|
+
declare type RequestType = "queryAddressData" | "queryBsAddressData" | "queryExpressInterceptData" | "queryLogisticsAddressData" | "queryPlatData" | "queryWdtAddressData" | "queryAllLogisticsCompany" | "queryLabel" | "queryWdtLogisticsCompany" | "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,
|
|
18
|
+
import { queryExpressInterceptData, queryLogisticsAddressData, queryPlatData, queryLabel, queryAllLogisticsCompany, queryWdtLogisticsCompany, 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,7 +43,6 @@ var Global = function Global(_ref) {
|
|
|
43
43
|
queryLabel: queryLabel,
|
|
44
44
|
queryWdtAddressData: servers.queryWdtAddressData,
|
|
45
45
|
queryWdtLogisticsCompany: queryWdtLogisticsCompany,
|
|
46
|
-
queryBsE3LogisticsCompany: queryBsE3LogisticsCompany,
|
|
47
46
|
queryWdtSendData: queryWdtSendData
|
|
48
47
|
};
|
|
49
48
|
mergeMapping = _objectSpread(_objectSpread({}, mapping), repeatRequestList);
|
|
@@ -14,7 +14,6 @@ declare class BsLogistics implements ComponentInterface {
|
|
|
14
14
|
[key: string]: any;
|
|
15
15
|
}[];
|
|
16
16
|
type: string;
|
|
17
|
-
platformType: string;
|
|
18
17
|
rules: any[];
|
|
19
18
|
componentConfig: ComponentInterface["componentConfig"];
|
|
20
19
|
expressDateInstance: InstanceType<typeof ExpressData>;
|
|
@@ -23,29 +23,19 @@ var typeMap = {
|
|
|
23
23
|
key: "bsLogisticsList",
|
|
24
24
|
name: "bs",
|
|
25
25
|
company: "bsLogisticsCompany",
|
|
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"
|
|
26
|
+
code: "bsLogisticsCode"
|
|
35
27
|
},
|
|
36
28
|
WLN_LOGISTICS: {
|
|
37
29
|
key: "wlnLogisticsList",
|
|
38
30
|
name: "万里牛",
|
|
39
31
|
company: "wlnLogisticsCompany",
|
|
40
|
-
code: "wlnLogisticsCode"
|
|
41
|
-
platformType: "default"
|
|
32
|
+
code: "wlnLogisticsCode"
|
|
42
33
|
},
|
|
43
34
|
WDT_LOGISTICS: {
|
|
44
35
|
key: "wdtLogisticsList",
|
|
45
36
|
name: "旺店通",
|
|
46
37
|
company: "wdtLogisticsCompany",
|
|
47
|
-
code: "wdtLogisticsCode"
|
|
48
|
-
platformType: "wdt"
|
|
38
|
+
code: "wdtLogisticsCode"
|
|
49
39
|
}
|
|
50
40
|
};
|
|
51
41
|
var BsLogistics = /*#__PURE__*/_createClass(function BsLogistics(_options) {
|
|
@@ -56,7 +46,6 @@ var BsLogistics = /*#__PURE__*/_createClass(function BsLogistics(_options) {
|
|
|
56
46
|
_typeMap$_options$typ4,
|
|
57
47
|
_typeMap$_options$typ5,
|
|
58
48
|
_typeMap$_options$typ6,
|
|
59
|
-
_typeMap$_options$typ7,
|
|
60
49
|
_this$componentConfig5,
|
|
61
50
|
_this$componentConfig7;
|
|
62
51
|
_classCallCheck(this, BsLogistics);
|
|
@@ -65,7 +54,6 @@ var BsLogistics = /*#__PURE__*/_createClass(function BsLogistics(_options) {
|
|
|
65
54
|
_defineProperty(this, "sortField", void 0);
|
|
66
55
|
_defineProperty(this, "sortChildField", void 0);
|
|
67
56
|
_defineProperty(this, "type", void 0);
|
|
68
|
-
_defineProperty(this, "platformType", void 0);
|
|
69
57
|
_defineProperty(this, "rules", void 0);
|
|
70
58
|
_defineProperty(this, "componentConfig", void 0);
|
|
71
59
|
_defineProperty(this, "expressDateInstance", void 0);
|
|
@@ -86,7 +74,7 @@ var BsLogistics = /*#__PURE__*/_createClass(function BsLogistics(_options) {
|
|
|
86
74
|
value: /*#__PURE__*/React.createElement(JstGoodImage, {
|
|
87
75
|
list: record === null || record === void 0 ? void 0 : record[_this.id],
|
|
88
76
|
type: 1,
|
|
89
|
-
platformType: _this.
|
|
77
|
+
platformType: _this.type === 'WDT_LOGISTICS' ? 'wdt' : 'default'
|
|
90
78
|
})
|
|
91
79
|
}) : null;
|
|
92
80
|
});
|
|
@@ -116,7 +104,7 @@ var BsLogistics = /*#__PURE__*/_createClass(function BsLogistics(_options) {
|
|
|
116
104
|
}, /*#__PURE__*/React.createElement(JstGoodImage, {
|
|
117
105
|
list: list,
|
|
118
106
|
type: 1,
|
|
119
|
-
platformType: _this.
|
|
107
|
+
platformType: _this.type === 'WDT_LOGISTICS' ? 'wdt' : 'default'
|
|
120
108
|
}));
|
|
121
109
|
});
|
|
122
110
|
_defineProperty(this, "renderLog", function (r) {
|
|
@@ -144,7 +132,7 @@ var BsLogistics = /*#__PURE__*/_createClass(function BsLogistics(_options) {
|
|
|
144
132
|
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 : '',
|
|
145
133
|
component: /*#__PURE__*/React.createElement(JstGoods, _extends({}, _this.componentConfig, {
|
|
146
134
|
type: 1,
|
|
147
|
-
platformType: _this.
|
|
135
|
+
platformType: _this.type === 'WDT_LOGISTICS' ? 'wdt' : 'default',
|
|
148
136
|
options: _this.expressDateInstance.getExpressData(),
|
|
149
137
|
onChange: p === null || p === void 0 ? void 0 : p.onChange
|
|
150
138
|
}))
|
|
@@ -163,21 +151,20 @@ var BsLogistics = /*#__PURE__*/_createClass(function BsLogistics(_options) {
|
|
|
163
151
|
this.sortField = "".concat(_options.id, "_").concat((_typeMap$_options$typ = typeMap[_options.type]) === null || _typeMap$_options$typ === void 0 ? void 0 : _typeMap$_options$typ.key);
|
|
164
152
|
this.formField = "".concat(_options.id, "_").concat((_typeMap$_options$typ2 = typeMap[_options.type]) === null || _typeMap$_options$typ2 === void 0 ? void 0 : _typeMap$_options$typ2.key);
|
|
165
153
|
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;
|
|
167
154
|
this.componentConfig = _options.componentConfig;
|
|
168
155
|
this.isCombinationComponent = true;
|
|
169
156
|
this.canSort = false;
|
|
170
157
|
this.expressCompany = new ExpressCompany(_objectSpread(_objectSpread({}, _options), {}, {
|
|
171
158
|
name: "物流公司",
|
|
172
159
|
parentName: this.name,
|
|
173
|
-
id: "".concat(_options.id, "_").concat((_typeMap$_options$
|
|
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),
|
|
174
161
|
width: 200,
|
|
175
|
-
platformType: this.
|
|
162
|
+
platformType: this.type === 'WDT_LOGISTICS' ? 'wdt' : 'default'
|
|
176
163
|
}));
|
|
177
164
|
this.expressCode = new ExpressCode(_objectSpread(_objectSpread({}, _options), {}, {
|
|
178
165
|
name: "物流单号",
|
|
179
166
|
parentName: this.name,
|
|
180
|
-
id: "".concat(_options.id, "_").concat((_typeMap$_options$
|
|
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),
|
|
181
168
|
width: 200
|
|
182
169
|
}));
|
|
183
170
|
this.children = [this.expressCompany, this.expressCode];
|
|
@@ -202,7 +189,7 @@ var BsLogistics = /*#__PURE__*/_createClass(function BsLogistics(_options) {
|
|
|
202
189
|
return Promise.resolve();
|
|
203
190
|
}
|
|
204
191
|
}] : [];
|
|
205
|
-
this.expressDateInstance = ExpressData.getInstance(this.
|
|
192
|
+
this.expressDateInstance = ExpressData.getInstance(this.type === 'WDT_LOGISTICS' ? 'wdt' : 'default');
|
|
206
193
|
this.sortChildField = this.getSortChildFields(((_this$componentConfig7 = this.componentConfig) === null || _this$componentConfig7 === void 0 ? void 0 : _this$componentConfig7.showField) || "", _options);
|
|
207
194
|
});
|
|
208
195
|
export default BsLogistics;
|
|
@@ -33,18 +33,6 @@ var typeMap = {
|
|
|
33
33
|
title: "标签",
|
|
34
34
|
dataIndex: "billTag",
|
|
35
35
|
width: 150
|
|
36
|
-
}, {
|
|
37
|
-
title: '主播名称',
|
|
38
|
-
dataIndex: 'authorName',
|
|
39
|
-
width: 150
|
|
40
|
-
}, {
|
|
41
|
-
title: '主播ID',
|
|
42
|
-
dataIndex: 'authorId',
|
|
43
|
-
width: 150
|
|
44
|
-
}, {
|
|
45
|
-
title: '直播活动',
|
|
46
|
-
dataIndex: 'liveActivites',
|
|
47
|
-
width: 150
|
|
48
36
|
}]
|
|
49
37
|
},
|
|
50
38
|
WLN_SYSTEM_ORDER: {
|
|
@@ -51,7 +51,7 @@ var BasicCascader = /*#__PURE__*/_createClass(function BasicCascader(_options) {
|
|
|
51
51
|
}
|
|
52
52
|
return /*#__PURE__*/React.createElement("span", null, (_ref = (record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_multSelect")]) || []) === null || _ref === void 0 ? void 0 : (_ref$map = _ref.map(function (item) {
|
|
53
53
|
return item === null || item === void 0 ? void 0 : item.label;
|
|
54
|
-
})) === null || _ref$map === void 0 ? void 0 : _ref$map.join(
|
|
54
|
+
})) === null || _ref$map === void 0 ? void 0 : _ref$map.join(','));
|
|
55
55
|
// return (
|
|
56
56
|
// <span>
|
|
57
57
|
// {findLabelBySelectValue(
|
|
@@ -79,7 +79,7 @@ var BasicCascader = /*#__PURE__*/_createClass(function BasicCascader(_options) {
|
|
|
79
79
|
}
|
|
80
80
|
return (_ref2 = (record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_multSelect")]) || []) === null || _ref2 === void 0 ? void 0 : (_ref2$map = _ref2.map(function (item) {
|
|
81
81
|
return item === null || item === void 0 ? void 0 : item.label;
|
|
82
|
-
})) === null || _ref2$map === void 0 ? void 0 : _ref2$map.join(
|
|
82
|
+
})) === null || _ref2$map === void 0 ? void 0 : _ref2$map.join(',');
|
|
83
83
|
// return findLabelBySelectValue(
|
|
84
84
|
// (record?.[`${this.id}_multSelect`] || [])?.map(
|
|
85
85
|
// (item: any) => item.actived
|
|
@@ -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,
|
|
17
|
+
import { ExpressData, WdtSendData, 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,9 +258,6 @@ 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
|
-
};
|
|
264
261
|
return list !== null && list !== void 0 && list.length ? (list || []).map(function (item, index) {
|
|
265
262
|
var logisticsCompany = item.logisticsCompany;
|
|
266
263
|
var company = ExpressData.getInstance(platformType).getExpressNameByCode(logisticsCompany);
|
|
@@ -279,7 +276,7 @@ export var JstGoodImage = function JstGoodImage(_ref6) {
|
|
|
279
276
|
text: item.logisticsCode
|
|
280
277
|
})) : company ? company : item.logisticsCode ? /*#__PURE__*/React.createElement(CopyText, {
|
|
281
278
|
text: item.logisticsCode
|
|
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,
|
|
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));
|
|
283
280
|
}) : null;
|
|
284
281
|
};
|
|
285
282
|
export var BsExpressRender = function BsExpressRender(_ref7) {
|
|
@@ -1277,7 +1274,6 @@ export var MsgContent = function MsgContent(_ref14) {
|
|
|
1277
1274
|
_ref14$options = _ref14.options,
|
|
1278
1275
|
options = _ref14$options === void 0 ? [] : _ref14$options;
|
|
1279
1276
|
var msgTypeCh = {
|
|
1280
|
-
pdd: '拼多多',
|
|
1281
1277
|
ding: '钉钉',
|
|
1282
1278
|
wechat: '微信',
|
|
1283
1279
|
qq: 'QQ',
|
|
@@ -1322,7 +1318,7 @@ export var MsgContent = function MsgContent(_ref14) {
|
|
|
1322
1318
|
var key = item.msgType || 'ding';
|
|
1323
1319
|
var formatMsgContent = /*#__PURE__*/React.createElement("span", {
|
|
1324
1320
|
key: index
|
|
1325
|
-
}, msgTypeCh[key]
|
|
1321
|
+
}, msgTypeCh[key], "-", item.ruleName, "-", currentOption ? currentOption.label : (item === null || item === void 0 ? void 0 : item[valueKey]) || "");
|
|
1326
1322
|
return /*#__PURE__*/React.createElement("div", {
|
|
1327
1323
|
key: "wrap_".concat(index),
|
|
1328
1324
|
style: {
|
|
@@ -12,43 +12,32 @@ 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,
|
|
15
|
+
import { isNull, filterFn as _filterFn, WdtSendData } 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"
|
|
23
|
-
platformType: 'default'
|
|
22
|
+
sendName: "sendName"
|
|
24
23
|
},
|
|
25
24
|
BS_SEND_GOOD: {
|
|
26
25
|
key: "bsSendGood",
|
|
27
26
|
name: "bs",
|
|
28
27
|
sendId: "bsSendId",
|
|
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'
|
|
28
|
+
sendName: "bsSendName"
|
|
38
29
|
},
|
|
39
30
|
WLN_SEND_GOOD: {
|
|
40
31
|
key: "wlnSendGood",
|
|
41
32
|
name: "wln",
|
|
42
33
|
sendId: "wlnSendId",
|
|
43
|
-
sendName: "wlnSendName"
|
|
44
|
-
platformType: 'default'
|
|
34
|
+
sendName: "wlnSendName"
|
|
45
35
|
},
|
|
46
36
|
WDT_SEND_GOOD: {
|
|
47
37
|
key: "wdtSendGood",
|
|
48
38
|
name: "wdt",
|
|
49
39
|
sendId: "wdtSendId",
|
|
50
|
-
sendName: "wdtSendName"
|
|
51
|
-
platformType: 'wdt'
|
|
40
|
+
sendName: "wdtSendName"
|
|
52
41
|
}
|
|
53
42
|
};
|
|
54
43
|
var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
|
|
@@ -86,11 +75,12 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
|
|
|
86
75
|
dataType: "arrayObject",
|
|
87
76
|
disabled: type === 'sendName'
|
|
88
77
|
};
|
|
89
|
-
|
|
78
|
+
if (fieldType === 'WDT_SEND_GOOD') {
|
|
79
|
+
sendName.options = WdtSendData.getInstance().getWdtSendData() || [];
|
|
80
|
+
}
|
|
90
81
|
return [sendName, sendId];
|
|
91
82
|
});
|
|
92
83
|
_defineProperty(this, "renderClient", function (record) {
|
|
93
|
-
var _typeMap$_this$type;
|
|
94
84
|
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) {
|
|
95
85
|
return !isNull(item);
|
|
96
86
|
}) : false;
|
|
@@ -100,13 +90,13 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
|
|
|
100
90
|
value: /*#__PURE__*/React.createElement(JstGoodImage, {
|
|
101
91
|
list: record === null || record === void 0 ? void 0 : record[_this.id],
|
|
102
92
|
type: 3,
|
|
103
|
-
platformType:
|
|
93
|
+
platformType: _this.type === 'WDT_SEND_GOOD' ? 'wdt' : 'default'
|
|
104
94
|
})
|
|
105
95
|
}) : null;
|
|
106
96
|
});
|
|
107
97
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
108
|
-
var _typeMap$_this$
|
|
109
|
-
var list = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat((_typeMap$_this$
|
|
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)];
|
|
110
100
|
//兼容多个商品
|
|
111
101
|
return /*#__PURE__*/React.createElement("span", {
|
|
112
102
|
onClick: function onClick(e) {
|
|
@@ -115,28 +105,28 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
|
|
|
115
105
|
}, /*#__PURE__*/React.createElement(JstGoodImage, {
|
|
116
106
|
list: list,
|
|
117
107
|
type: 3,
|
|
118
|
-
platformType:
|
|
108
|
+
platformType: _this.type === 'WDT_SEND_GOOD' ? 'wdt' : 'default'
|
|
119
109
|
}));
|
|
120
110
|
});
|
|
121
111
|
_defineProperty(this, "renderLog", function (r) {
|
|
122
|
-
var _typeMap$_this$
|
|
123
|
-
var list = r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat((_typeMap$_this$
|
|
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)];
|
|
124
114
|
if (isNull(list)) return null;
|
|
125
115
|
return _this.renderPc(undefined, r);
|
|
126
116
|
});
|
|
127
117
|
_defineProperty(this, "getComponentValue", function (r) {
|
|
128
|
-
var _typeMap$_this$
|
|
129
|
-
return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat((_typeMap$_this$
|
|
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)];
|
|
130
120
|
});
|
|
131
121
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
132
|
-
var _typeMap$_this$
|
|
133
|
-
var list = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat((_typeMap$_this$
|
|
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)];
|
|
134
124
|
return (list || []).map(function (item) {
|
|
135
|
-
return [item === null || item === void 0 ? void 0 : item.sendId,
|
|
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("/");
|
|
136
126
|
}).join(",");
|
|
137
127
|
});
|
|
138
128
|
_defineProperty(this, "editRender", function (p) {
|
|
139
|
-
var _this$componentConfig, _this$componentConfig2
|
|
129
|
+
var _this$componentConfig, _this$componentConfig2;
|
|
140
130
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
141
131
|
title: _this.name,
|
|
142
132
|
name: _this.id,
|
|
@@ -147,20 +137,20 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
|
|
|
147
137
|
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 : '',
|
|
148
138
|
component: /*#__PURE__*/React.createElement(JstGoods, _extends({}, _this.componentConfig, {
|
|
149
139
|
type: 3,
|
|
150
|
-
platformType:
|
|
140
|
+
platformType: _this.type === 'WDT_SEND_GOOD' ? 'wdt' : 'default'
|
|
151
141
|
}))
|
|
152
142
|
});
|
|
153
143
|
});
|
|
154
144
|
_defineProperty(this, "filterConfig", function (item) {
|
|
155
|
-
var _typeMap$_this$
|
|
156
|
-
return [_this.type === 'WDT_SEND_GOOD'
|
|
145
|
+
var _typeMap$_this$type5, _typeMap$_this$type6, _typeMap$_this$type8;
|
|
146
|
+
return [_this.type === 'WDT_SEND_GOOD' ? {
|
|
157
147
|
searchDefaultConditions: SYMBOL.in,
|
|
158
148
|
type: item.type,
|
|
159
|
-
id: "".concat(item.id, "_").concat((_typeMap$_this$
|
|
149
|
+
id: "".concat(item.id, "_").concat((_typeMap$_this$type5 = typeMap[_this.type]) === null || _typeMap$_this$type5 === void 0 ? void 0 : _typeMap$_this$type5.sendName),
|
|
160
150
|
name: "".concat(_this.name, "\u540D\u79F0"),
|
|
161
151
|
filterComponentType: "MultipleSelect",
|
|
162
152
|
props: {
|
|
163
|
-
options:
|
|
153
|
+
options: WdtSendData.getInstance().getWdtSendData() || []
|
|
164
154
|
},
|
|
165
155
|
filterFn: function filterFn(value) {
|
|
166
156
|
return function (i) {
|
|
@@ -175,13 +165,13 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
|
|
|
175
165
|
} : {
|
|
176
166
|
searchDefaultConditions: SYMBOL.like,
|
|
177
167
|
type: item.type,
|
|
178
|
-
id: "".concat(item.id, "_").concat((_typeMap$_this$
|
|
168
|
+
id: "".concat(item.id, "_").concat((_typeMap$_this$type6 = typeMap[_this.type]) === null || _typeMap$_this$type6 === void 0 ? void 0 : _typeMap$_this$type6.sendName),
|
|
179
169
|
name: "".concat(_this.name, "\u540D\u79F0"),
|
|
180
170
|
filterComponentType: "Input",
|
|
181
171
|
filterFn: function filterFn(value) {
|
|
182
172
|
return function (i) {
|
|
183
|
-
var _ref2, _typeMap$_this$
|
|
184
|
-
return (_ref2 = _filterFn.filterTableListItemColumnValue(i, item.id, (_typeMap$_this$
|
|
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) {
|
|
185
175
|
var _String2;
|
|
186
176
|
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;
|
|
187
177
|
return name;
|
|
@@ -191,13 +181,13 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
|
|
|
191
181
|
}, {
|
|
192
182
|
searchDefaultConditions: SYMBOL.like,
|
|
193
183
|
type: item.type,
|
|
194
|
-
id: "".concat(item.id, "_").concat((_typeMap$_this$
|
|
184
|
+
id: "".concat(item.id, "_").concat((_typeMap$_this$type8 = typeMap[_this.type]) === null || _typeMap$_this$type8 === void 0 ? void 0 : _typeMap$_this$type8.sendId),
|
|
195
185
|
name: "".concat(_this.name, "\u7F16\u7801"),
|
|
196
186
|
filterComponentType: "Input",
|
|
197
187
|
filterFn: function filterFn(value) {
|
|
198
188
|
return function (i) {
|
|
199
|
-
var _ref3, _typeMap$_this$
|
|
200
|
-
return (_ref3 = _filterFn.filterTableListItemColumnValue(i, item.id, (_typeMap$_this$
|
|
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) {
|
|
201
191
|
var _String3;
|
|
202
192
|
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;
|
|
203
193
|
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,
|
|
15
|
+
import { isNull, filterFn as _filterFn, WdtSendData } 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: 'default'
|
|
61
|
+
platformType: _this.type === 'WDT_SEND_GOOD' ? 'wdt' : '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: 'default'
|
|
75
|
+
platformType: _this.type === 'WDT_SEND_GOOD' ? 'wdt' : '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,
|
|
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("/");
|
|
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: 'default'
|
|
104
|
+
platformType: _this.type === 'WDT_SEND_GOOD' ? 'wdt' : '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' ? {
|
|
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:
|
|
116
|
+
options: WdtSendData.getInstance().getWdtSendData() || []
|
|
117
117
|
},
|
|
118
118
|
filterFn: function filterFn(value) {
|
|
119
119
|
return function (i) {
|
|
@@ -39,15 +39,10 @@ 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'
|
|
51
46
|
}],
|
|
52
47
|
key: 'msgStatusValues',
|
|
53
48
|
code: 'msgStatus4Search',
|
|
@@ -60,7 +55,6 @@ var typeMap = {
|
|
|
60
55
|
}
|
|
61
56
|
};
|
|
62
57
|
var msgTypeCh = {
|
|
63
|
-
pdd: '拼多多',
|
|
64
58
|
ding: '钉钉',
|
|
65
59
|
wechat: '微信',
|
|
66
60
|
qq: 'QQ',
|
|
@@ -140,7 +134,7 @@ var MsgStatus = /*#__PURE__*/_createClass(function MsgStatus(options) {
|
|
|
140
134
|
return item[(_typeMap$_this$type14 = typeMap[_this.type]) === null || _typeMap$_this$type14 === void 0 ? void 0 : _typeMap$_this$type14.valueKey] === option.value;
|
|
141
135
|
});
|
|
142
136
|
var key = item.msgType || 'ding';
|
|
143
|
-
return "".concat(msgTypeCh[key]
|
|
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]) || '');
|
|
144
138
|
}).join(',');
|
|
145
139
|
});
|
|
146
140
|
_defineProperty(this, "editRender", function (p) {
|
package/dist/esm/factory.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { JstLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, SubForm, CommonDataTime, TradeId, ShopName, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, FlowMarkSelect, FlowTag, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, PrevSubmitter, FlowCreator, Handler, CompletedUser, LogisticsInterception, LogisticsMoreInterception, LogisticsTrajectory, LogisticsMoreTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, WdtGoods, WdtReturn, WdtExchange, CommonInput, PaymentVoucherCode, Label, WdtReissue, KmErpSendGood, AfterSalesOrderId, BsE3Goods, BsE3Reissue } from "./index";
|
|
2
2
|
import { PickOption } from "./type";
|
|
3
|
-
export declare const factory: (type: string, options: PickOption) => ActualPayment | BsLogistics | BasicCascader | JstSendGood | KmErpSendGood | MsgStatus | BasicPicture | BasicInput | BasicAddress | BasicCheckbox | BasicDataTime | BasicSelect | BasicRadio | BasicTextArea | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | SubForm | CommonDataTime | TradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | JstLogistics | JstItemSelect | JstSupply |
|
|
3
|
+
export declare const factory: (type: string, options: PickOption) => ActualPayment | BsLogistics | BsSystemOrder | BasicCascader | JstSendGood | KmErpSendGood | MsgStatus | BasicPicture | BasicInput | BasicAddress | BasicCheckbox | BasicDataTime | BasicSelect | BasicRadio | BasicTextArea | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | SubForm | CommonDataTime | TradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | JstLogistics | JstItemSelect | JstSupply | BsGoods | BsE3Goods | BsE3Reissue | BsExchange | BsReissue | BsReturn | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsMoreInterception | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | StatusSelect | Calculation | CommonSystemOrder | CommonMultiStatus | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting | NodeInput | FlowWorkOrderStatus | WdtGoods | WdtReissue | WdtReturn | WdtExchange | CommonInput | PaymentVoucherCode | Label | AfterSalesOrderId;
|
package/dist/esm/factory.js
CHANGED
|
@@ -136,7 +136,6 @@ export var factory = function factory(type, options) {
|
|
|
136
136
|
return new BsSystemOrder(options);
|
|
137
137
|
case "JST_SEND_GOOD":
|
|
138
138
|
case "BS_SEND_GOOD":
|
|
139
|
-
case "BS_E3_SEND_GOOD":
|
|
140
139
|
case "WLN_SEND_GOOD":
|
|
141
140
|
case "WDT_SEND_GOOD":
|
|
142
141
|
return new JstSendGood(options);
|
|
@@ -166,7 +165,6 @@ export var factory = function factory(type, options) {
|
|
|
166
165
|
case "EXCHANGE_TRADE_ID":
|
|
167
166
|
return new CommonSystemOrder(options);
|
|
168
167
|
case "BS_LOGISTICS":
|
|
169
|
-
case "BS_E3_LOGISTICS":
|
|
170
168
|
case "WLN_LOGISTICS":
|
|
171
169
|
case "WDT_LOGISTICS":
|
|
172
170
|
return new BsLogistics(options);
|
|
@@ -7,7 +7,6 @@ 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>;
|
|
11
10
|
export declare const queryWdtSendData: () => Promise<void>;
|
|
12
11
|
export declare const getAlipayBillReceipt: (data: any) => Promise<any>;
|
|
13
12
|
export declare const queryLabel: () => Promise<any>;
|
package/dist/esm/service/api.js
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
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); }); }; }
|
|
5
2
|
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; }
|
|
6
3
|
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; }
|
|
7
4
|
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; }
|
|
@@ -13,7 +10,7 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
13
10
|
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
14
11
|
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
15
12
|
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; }
|
|
16
|
-
import { AddressData, toTree, BsAddressData, WdtAddressData, PlatData, ExpressInterceptData, LogisticsAddressData, ExpressData, LabelData,
|
|
13
|
+
import { AddressData, toTree, BsAddressData, WdtAddressData, PlatData, ExpressInterceptData, LogisticsAddressData, ExpressData, LabelData, WdtSendData, servers, WDT } from "@kmkf-fe-packages/kmkf-utils";
|
|
17
14
|
import get from "lodash/get";
|
|
18
15
|
import request from "./request";
|
|
19
16
|
// 重复校验
|
|
@@ -260,29 +257,12 @@ export var queryWdtLogisticsCompany = function queryWdtLogisticsCompany() {
|
|
|
260
257
|
instance.expressData = data;
|
|
261
258
|
}).catch(console.log);
|
|
262
259
|
};
|
|
263
|
-
export var
|
|
264
|
-
var instance =
|
|
265
|
-
return
|
|
266
|
-
instance.
|
|
260
|
+
export var queryWdtSendData = function queryWdtSendData() {
|
|
261
|
+
var instance = WdtSendData.getInstance();
|
|
262
|
+
return WDT.getWarehouseDataAsync().then(function (data) {
|
|
263
|
+
instance.wdtSendData = data;
|
|
267
264
|
}).catch(console.log);
|
|
268
265
|
};
|
|
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
|
-
}();
|
|
286
266
|
// 获取支付宝电子回单
|
|
287
267
|
export var getAlipayBillReceipt = function getAlipayBillReceipt(data) {
|
|
288
268
|
return request({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.21.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.
|
|
25
|
-
"@kmkf-fe-packages/kmkf-utils": "1.
|
|
24
|
+
"@kmkf-fe-packages/basic-components": "1.21.0",
|
|
25
|
+
"@kmkf-fe-packages/kmkf-utils": "1.21.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": "
|
|
44
|
+
"gitHead": "df819f2bf1b1ae464d683f5bdf8efa61a91b6810",
|
|
45
45
|
"gitHooks": {
|
|
46
46
|
"pre-commit": "lint-staged"
|
|
47
47
|
}
|