@kmkf-fe-packages/services-components 1.25.1 → 1.26.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 +4 -2
- package/dist/esm/components/BS/BsLogistics/index.js +8 -1
- package/dist/esm/components/BS/common/BsHeaderGood.js +13 -40
- package/dist/esm/components/BS/common/expressCode.js +4 -1
- package/dist/esm/components/BS/common/expressCompany.js +3 -0
- package/dist/esm/components/Common/index.d.ts +9 -2
- package/dist/esm/components/Common/index.js +27 -77
- package/dist/esm/components/EItemEnCode/index.d.ts +2 -1
- package/dist/esm/components/EItemEnCode/index.js +10 -27
- package/dist/esm/components/MsgStatus/index.d.ts +5 -5
- package/dist/esm/components/MsgStatus/index.js +39 -48
- package/dist/esm/components/{JST/JstLogistics → Reissue/Logistics}/index.d.ts +2 -2
- package/dist/esm/components/{JST/JstLogistics → Reissue/Logistics}/index.js +3 -9
- package/dist/esm/factory.d.ts +2 -2
- package/dist/esm/factory.js +3 -3
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/service/api.d.ts +2 -0
- package/dist/esm/service/api.js +12 -0
- 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" | "queryBsE3LogisticsCompany" | "querySendData";
|
|
2
|
+
declare type RequestType = "queryAddressData" | "queryBsAddressData" | "queryExpressInterceptData" | "queryLogisticsAddressData" | "queryPlatData" | "queryWdtAddressData" | "queryAllLogisticsCompany" | "queryLabel" | "queryWdtLogisticsCompany" | "queryBsE3LogisticsCompany" | "querySendData" | "queryJSTLogisticsCompany" | "queryWLNLogisticsCompany";
|
|
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, queryBsE3LogisticsCompany, querySendData } from "../../service/api";
|
|
18
|
+
import { queryExpressInterceptData, queryLogisticsAddressData, queryPlatData, queryLabel, queryAllLogisticsCompany, queryWdtLogisticsCompany, queryBsE3LogisticsCompany, querySendData, queryJSTLogisticsCompany, queryWLNLogisticsCompany } 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,
|
|
@@ -44,7 +44,9 @@ var Global = function Global(_ref) {
|
|
|
44
44
|
queryWdtAddressData: servers.queryWdtAddressData,
|
|
45
45
|
queryWdtLogisticsCompany: queryWdtLogisticsCompany,
|
|
46
46
|
queryBsE3LogisticsCompany: queryBsE3LogisticsCompany,
|
|
47
|
-
querySendData: querySendData
|
|
47
|
+
querySendData: querySendData,
|
|
48
|
+
queryJSTLogisticsCompany: queryJSTLogisticsCompany,
|
|
49
|
+
queryWLNLogisticsCompany: queryWLNLogisticsCompany
|
|
48
50
|
};
|
|
49
51
|
mergeMapping = _objectSpread(_objectSpread({}, mapping), repeatRequestList);
|
|
50
52
|
promises = [];
|
|
@@ -38,7 +38,7 @@ var typeMap = {
|
|
|
38
38
|
name: "万里牛",
|
|
39
39
|
company: "wlnLogisticsCompany",
|
|
40
40
|
code: "wlnLogisticsCode",
|
|
41
|
-
platformType: "
|
|
41
|
+
platformType: "wln"
|
|
42
42
|
},
|
|
43
43
|
WDT_LOGISTICS: {
|
|
44
44
|
key: "wdtLogisticsList",
|
|
@@ -46,6 +46,13 @@ var typeMap = {
|
|
|
46
46
|
company: "wdtLogisticsCompany",
|
|
47
47
|
code: "wdtLogisticsCode",
|
|
48
48
|
platformType: "wdt"
|
|
49
|
+
},
|
|
50
|
+
JST_LOGISTICS: {
|
|
51
|
+
key: "jstItemList",
|
|
52
|
+
name: "聚水潭",
|
|
53
|
+
company: "logisticsCompany",
|
|
54
|
+
code: "logisticsCode",
|
|
55
|
+
platformType: 'jst'
|
|
49
56
|
}
|
|
50
57
|
};
|
|
51
58
|
var BsLogistics = /*#__PURE__*/_createClass(function BsLogistics(_options) {
|
|
@@ -21,6 +21,7 @@ import React from "react";
|
|
|
21
21
|
import ItemView from "../../../commonComponents/ItemView";
|
|
22
22
|
import { isNull } from "@kmkf-fe-packages/kmkf-utils";
|
|
23
23
|
import { BsHeaderPic, BsHeaderChild, BsHeaderGoodPic } from "./index";
|
|
24
|
+
import { getMapping, columnsGoodsList } from "@kmkf-fe-packages/kmkf-utils";
|
|
24
25
|
var HeaderMap = {
|
|
25
26
|
mark: {
|
|
26
27
|
component: BsHeaderChild,
|
|
@@ -46,6 +47,12 @@ var HeaderMap = {
|
|
|
46
47
|
key: "name",
|
|
47
48
|
width: 200
|
|
48
49
|
},
|
|
50
|
+
num: {
|
|
51
|
+
component: BsHeaderChild,
|
|
52
|
+
name: "商品数量",
|
|
53
|
+
key: "num",
|
|
54
|
+
width: 200
|
|
55
|
+
},
|
|
49
56
|
code: {
|
|
50
57
|
component: BsHeaderChild,
|
|
51
58
|
name: "编码",
|
|
@@ -215,15 +222,7 @@ var BsHeaderGods = /*#__PURE__*/function () {
|
|
|
215
222
|
this.isCombinationComponent = true;
|
|
216
223
|
this.canSort = false;
|
|
217
224
|
this.dataType = "string";
|
|
218
|
-
this.itemKey = options.type === "ITEM_ENCODE" ? {
|
|
219
|
-
title: "商品名称",
|
|
220
|
-
outerId: "商品编码",
|
|
221
|
-
picUrl: "图片",
|
|
222
|
-
numIid: "商品id",
|
|
223
|
-
skuId: "SKU ID",
|
|
224
|
-
outerSkuId: "SKU 编码",
|
|
225
|
-
propertiesName: "SKU 信息"
|
|
226
|
-
} : {
|
|
225
|
+
this.itemKey = options.type === "ITEM_ENCODE" ? getMapping(columnsGoodsList) : {
|
|
227
226
|
mark: "商品标记",
|
|
228
227
|
pic: "图片",
|
|
229
228
|
name: "名称",
|
|
@@ -238,36 +237,6 @@ var BsHeaderGods = /*#__PURE__*/function () {
|
|
|
238
237
|
expireDate: "有效期"
|
|
239
238
|
};
|
|
240
239
|
this.children = this.getChildren(options);
|
|
241
|
-
// [
|
|
242
|
-
// ...Object.keys(HeaderMap).reduce((prv: any, key: string) => {
|
|
243
|
-
// if (options?.componentConfig?.showHeader?.includes(key)) {
|
|
244
|
-
// prv.push(
|
|
245
|
-
// new HeaderMap[key].component({
|
|
246
|
-
// ...options,
|
|
247
|
-
// name: this.itemKey[key],
|
|
248
|
-
// id: `${options.id}_${HeaderMap[key].key}`,
|
|
249
|
-
// width: HeaderMap[key].width,
|
|
250
|
-
// })
|
|
251
|
-
// );
|
|
252
|
-
// }
|
|
253
|
-
// return prv;
|
|
254
|
-
// }, []),
|
|
255
|
-
// ...(options?.componentConfig?.showHeader || []).reduce(
|
|
256
|
-
// (prv: any, next: string) => {
|
|
257
|
-
// if (HeaderMap[next]) {
|
|
258
|
-
// prv.push(
|
|
259
|
-
// new HeaderMap[next].component({
|
|
260
|
-
// ...options,
|
|
261
|
-
// name: this.itemKey[next],
|
|
262
|
-
// id: `${options.id}_${HeaderMap[next].key}`,
|
|
263
|
-
// })
|
|
264
|
-
// );
|
|
265
|
-
// }
|
|
266
|
-
// return prv;
|
|
267
|
-
// },
|
|
268
|
-
// []
|
|
269
|
-
// ),
|
|
270
|
-
// ];
|
|
271
240
|
}
|
|
272
241
|
_createClass(BsHeaderGods, [{
|
|
273
242
|
key: "getChildren",
|
|
@@ -275,9 +244,13 @@ var BsHeaderGods = /*#__PURE__*/function () {
|
|
|
275
244
|
var _options$componentCon,
|
|
276
245
|
_this2 = this;
|
|
277
246
|
var showHeader = options === null || options === void 0 ? void 0 : (_options$componentCon = options.componentConfig) === null || _options$componentCon === void 0 ? void 0 : _options$componentCon.showHeader;
|
|
247
|
+
var dataIndexList = [];
|
|
248
|
+
if (!Array.isArray(showHeader)) {
|
|
249
|
+
dataIndexList = Object.keys(this.itemKey);
|
|
250
|
+
showHeader = dataIndexList;
|
|
251
|
+
}
|
|
278
252
|
var isStringArray = Array.isArray(showHeader) && typeof showHeader[0] === "string";
|
|
279
253
|
var isObjectArray = Array.isArray(showHeader) && Object.prototype.toString.call(showHeader[0]) === "[object Object]";
|
|
280
|
-
var dataIndexList = [];
|
|
281
254
|
if (isStringArray) {
|
|
282
255
|
dataIndexList = showHeader;
|
|
283
256
|
} else if (isObjectArray) {
|
|
@@ -26,7 +26,10 @@ var typeMap = {
|
|
|
26
26
|
key: "wlnLogisticsItem"
|
|
27
27
|
},
|
|
28
28
|
WDT_LOGISTICS: {
|
|
29
|
-
key:
|
|
29
|
+
key: "wdtLogisticsItem"
|
|
30
|
+
},
|
|
31
|
+
JST_LOGISTICS: {
|
|
32
|
+
key: "jstLogisticsItem"
|
|
30
33
|
}
|
|
31
34
|
};
|
|
32
35
|
var ExpressCode = /*#__PURE__*/_createClass(function ExpressCode(options) {
|
|
@@ -12,9 +12,16 @@ export declare const showImage: ({ item, type, index, showHeader, }: {
|
|
|
12
12
|
item: any;
|
|
13
13
|
type: string;
|
|
14
14
|
index: number;
|
|
15
|
-
showHeader:
|
|
15
|
+
showHeader: string[];
|
|
16
|
+
}) => React.JSX.Element;
|
|
17
|
+
export declare const ShowTotalImage: ({ total, allImage, type, showHeader, }: {
|
|
18
|
+
total: number;
|
|
19
|
+
allImage: {
|
|
20
|
+
[key: string]: any;
|
|
21
|
+
}[];
|
|
22
|
+
type: string;
|
|
23
|
+
showHeader: string[];
|
|
16
24
|
}) => React.JSX.Element;
|
|
17
|
-
export declare const ShowTotalImage: ({ total, allImage, type, showHeader, }: any) => React.JSX.Element;
|
|
18
25
|
export declare const GoodImage: ({ list, type, showHeader }: any) => React.JSX.Element | null;
|
|
19
26
|
export declare const JstGoodImage: ({ list, type, platformType, }: any) => any;
|
|
20
27
|
export declare const BsExpressRender: ({ list, showField, platformType, }: any) => any;
|
|
@@ -20,7 +20,7 @@ import { CopyToClipboard } from "react-copy-to-clipboard";
|
|
|
20
20
|
import styles from "./index.module.less";
|
|
21
21
|
import defaultImg from "./img/default-img.png";
|
|
22
22
|
import CopyText from "../../commonComponents/CopyText";
|
|
23
|
-
import { KM_SYSTEM_ORDER_CONFIG } from "@kmkf-fe-packages/kmkf-utils";
|
|
23
|
+
import { KM_SYSTEM_ORDER_CONFIG, msgTypeCh, getMapping, columnsGoodsList } from "@kmkf-fe-packages/kmkf-utils";
|
|
24
24
|
var Paragraph = Typography.Paragraph;
|
|
25
25
|
export var getFormItem = function getFormItem(_ref) {
|
|
26
26
|
var name = _ref.name,
|
|
@@ -55,23 +55,11 @@ export var showImage = function showImage(_ref2) {
|
|
|
55
55
|
index = _ref2.index,
|
|
56
56
|
showHeader = _ref2.showHeader;
|
|
57
57
|
var picUrl = item.picUrl ? (item === null || item === void 0 ? void 0 : item.platform) !== "tabao" ? item.picUrl : item.picUrl + "_40x40.jpg" : defaultImg;
|
|
58
|
-
var
|
|
59
|
-
var isStringArray = Array.isArray(showHeader) && typeof showHeader[0] === "string";
|
|
60
|
-
var isObjectArray = Array.isArray(showHeader) && Object.prototype.toString.call(showHeader[0]) === "[object Object]";
|
|
61
|
-
var dataIndexList = [];
|
|
62
|
-
if (isStringArray) {
|
|
63
|
-
dataIndexList = showHeader;
|
|
64
|
-
} else if (isObjectArray) {
|
|
65
|
-
dataIndexList = showHeader.map(function (item) {
|
|
66
|
-
return item.dataIndex;
|
|
67
|
-
});
|
|
68
|
-
}
|
|
69
|
-
return dataIndexList;
|
|
70
|
-
}, [showHeader]);
|
|
58
|
+
var mapping_itemCode = getMapping(columnsGoodsList);
|
|
71
59
|
return /*#__PURE__*/React.createElement("div", {
|
|
72
60
|
className: styles.goodImgBox,
|
|
73
61
|
key: index
|
|
74
|
-
}, type === "itemCode" && !
|
|
62
|
+
}, type === "itemCode" && !showHeader.includes("picUrl") ? null : (item === null || item === void 0 ? void 0 : item.platform) === "taobao" ? /*#__PURE__*/React.createElement("a", {
|
|
75
63
|
target: "_blank",
|
|
76
64
|
href: item.numIid ? "https://item.taobao.com/item.htm?id=".concat(item.numIid) : "javascript:void(0);"
|
|
77
65
|
}, /*#__PURE__*/React.createElement("img", {
|
|
@@ -89,28 +77,20 @@ export var showImage = function showImage(_ref2) {
|
|
|
89
77
|
},
|
|
90
78
|
src: picUrl
|
|
91
79
|
}), /*#__PURE__*/React.createElement("div", {
|
|
92
|
-
className: styles.options
|
|
80
|
+
className: styles.options,
|
|
81
|
+
onClick: function onClick() {
|
|
82
|
+
console.log("show---", showHeader);
|
|
83
|
+
}
|
|
93
84
|
}, type === "itemId" && /*#__PURE__*/React.createElement(TextTool, {
|
|
94
85
|
title: "商品id",
|
|
95
86
|
text: item.numIid
|
|
96
|
-
}), type === "itemCode" && /*#__PURE__*/React.createElement(React.Fragment, null,
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
title: "商品id",
|
|
104
|
-
text: item.numIid
|
|
105
|
-
}), showHeaderMap.includes("skuId") && /*#__PURE__*/React.createElement(TextTool, {
|
|
106
|
-
title: "SKU ID",
|
|
107
|
-
text: item.skuId
|
|
108
|
-
}), showHeaderMap.includes("outerSkuId") && /*#__PURE__*/React.createElement(TextTool, {
|
|
109
|
-
title: "SKU 编码",
|
|
110
|
-
text: item.outerSkuId
|
|
111
|
-
}), showHeaderMap.includes("propertiesName") && /*#__PURE__*/React.createElement(TextTool, {
|
|
112
|
-
title: "SKU 信息",
|
|
113
|
-
text: item.propertiesName
|
|
87
|
+
}), type === "itemCode" && /*#__PURE__*/React.createElement(React.Fragment, null, showHeader.filter(function (dataIndex) {
|
|
88
|
+
return dataIndex !== "picUrl";
|
|
89
|
+
}).map(function (dataIndex) {
|
|
90
|
+
return /*#__PURE__*/React.createElement(TextTool, {
|
|
91
|
+
title: mapping_itemCode[dataIndex],
|
|
92
|
+
text: item[dataIndex]
|
|
93
|
+
});
|
|
114
94
|
})), (type === "itemThird" || type === "jstItemThird") && (item.itemId || item.supplierItemOuterId) && /*#__PURE__*/React.createElement(TextTool, {
|
|
115
95
|
title: "供应商编码",
|
|
116
96
|
text: item.itemId || item.supplierItemOuterId
|
|
@@ -149,19 +129,7 @@ export var ShowTotalImage = function ShowTotalImage(_ref4) {
|
|
|
149
129
|
_useState2 = _slicedToArray(_useState, 2),
|
|
150
130
|
visible = _useState2[0],
|
|
151
131
|
setVisible = _useState2[1];
|
|
152
|
-
var
|
|
153
|
-
var isStringArray = Array.isArray(showHeader) && typeof showHeader[0] === "string";
|
|
154
|
-
var isObjectArray = Array.isArray(showHeader) && Object.prototype.toString.call(showHeader[0]) === "[object Object]";
|
|
155
|
-
var dataIndexList = [];
|
|
156
|
-
if (isStringArray) {
|
|
157
|
-
dataIndexList = showHeader;
|
|
158
|
-
} else if (isObjectArray) {
|
|
159
|
-
dataIndexList = showHeader.map(function (item) {
|
|
160
|
-
return item.dataIndex;
|
|
161
|
-
});
|
|
162
|
-
}
|
|
163
|
-
return dataIndexList;
|
|
164
|
-
}, [showHeader]);
|
|
132
|
+
var mapping_itemCode = getMapping(columnsGoodsList);
|
|
165
133
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Button, {
|
|
166
134
|
type: "link",
|
|
167
135
|
onClick: function onClick() {
|
|
@@ -185,7 +153,7 @@ export var ShowTotalImage = function ShowTotalImage(_ref4) {
|
|
|
185
153
|
width: "50%"
|
|
186
154
|
},
|
|
187
155
|
key: index
|
|
188
|
-
}, type === "itemCode" && !
|
|
156
|
+
}, type === "itemCode" && !showHeader.includes("picUrl") ? null : /*#__PURE__*/React.createElement("a", {
|
|
189
157
|
href: i.link || ((i === null || i === void 0 ? void 0 : i.platform) === "taobao" && i.numIid ? "https://item.taobao.com/item.htm?id=".concat(i.numIid) : "javascript:void(0);"),
|
|
190
158
|
target: "__blank",
|
|
191
159
|
style: {
|
|
@@ -206,24 +174,13 @@ export var ShowTotalImage = function ShowTotalImage(_ref4) {
|
|
|
206
174
|
})), /*#__PURE__*/React.createElement("div", null, type === "itemId" && /*#__PURE__*/React.createElement(TextTool, {
|
|
207
175
|
title: "商品id",
|
|
208
176
|
text: i.numIid
|
|
209
|
-
}), type === "itemCode" && /*#__PURE__*/React.createElement(React.Fragment, null,
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
title: "商品id",
|
|
217
|
-
text: i.numIid
|
|
218
|
-
}), showHeaderMap.includes("skuId") && /*#__PURE__*/React.createElement(TextTool, {
|
|
219
|
-
title: "SKU ID",
|
|
220
|
-
text: i.skuId
|
|
221
|
-
}), showHeaderMap.includes("outerSkuId") && /*#__PURE__*/React.createElement(TextTool, {
|
|
222
|
-
title: "SKU 编码",
|
|
223
|
-
text: i.outerSkuId
|
|
224
|
-
}), showHeaderMap.includes("propertiesName") && /*#__PURE__*/React.createElement(TextTool, {
|
|
225
|
-
title: "SKU 信息",
|
|
226
|
-
text: i.propertiesName
|
|
177
|
+
}), type === "itemCode" && /*#__PURE__*/React.createElement(React.Fragment, null, showHeader.filter(function (dataIndex) {
|
|
178
|
+
return dataIndex !== "picUrl";
|
|
179
|
+
}).map(function (dataIndex) {
|
|
180
|
+
return /*#__PURE__*/React.createElement(TextTool, {
|
|
181
|
+
title: mapping_itemCode[dataIndex],
|
|
182
|
+
text: i[dataIndex]
|
|
183
|
+
});
|
|
227
184
|
})), (type === "itemThird" || type === "jstItemThird") && (i.itemId || i.supplierItemOuterId) && /*#__PURE__*/React.createElement(TextTool, {
|
|
228
185
|
title: "供应商编码",
|
|
229
186
|
text: i.itemId || i.supplierItemOuterId
|
|
@@ -253,7 +210,9 @@ export var GoodImage = function GoodImage(_ref5) {
|
|
|
253
210
|
if (isStringArray) {
|
|
254
211
|
dataIndexList = showHeader;
|
|
255
212
|
} else if (isObjectArray) {
|
|
256
|
-
dataIndexList = showHeader.
|
|
213
|
+
dataIndexList = showHeader.filter(function (item) {
|
|
214
|
+
return item.show !== false;
|
|
215
|
+
}).map(function (item) {
|
|
257
216
|
return item.dataIndex;
|
|
258
217
|
});
|
|
259
218
|
}
|
|
@@ -273,7 +232,7 @@ export var GoodImage = function GoodImage(_ref5) {
|
|
|
273
232
|
}), total > initShowTotal && /*#__PURE__*/React.createElement(ShowTotalImage, {
|
|
274
233
|
total: total,
|
|
275
234
|
allImage: list,
|
|
276
|
-
showHeader:
|
|
235
|
+
showHeader: showHeaderMap,
|
|
277
236
|
type: type
|
|
278
237
|
})) : null;
|
|
279
238
|
};
|
|
@@ -1459,15 +1418,6 @@ export var MsgContent = function MsgContent(_ref14) {
|
|
|
1459
1418
|
failValue = _ref14.failValue,
|
|
1460
1419
|
_ref14$options = _ref14.options,
|
|
1461
1420
|
options = _ref14$options === void 0 ? [] : _ref14$options;
|
|
1462
|
-
var msgTypeCh = {
|
|
1463
|
-
ding: "钉钉",
|
|
1464
|
-
wechat: "微信",
|
|
1465
|
-
qq: "QQ",
|
|
1466
|
-
qywx: "企业微信",
|
|
1467
|
-
YZDKH: "邮政拦截",
|
|
1468
|
-
YT: "圆通拦截",
|
|
1469
|
-
feishu: "飞书"
|
|
1470
|
-
};
|
|
1471
1421
|
var getColorByStatus = function getColorByStatus(value) {
|
|
1472
1422
|
var _options$find2;
|
|
1473
1423
|
return ((_options$find2 = options.find(function (innerItem) {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ComponentInterface, PickOption, ColumnConfig, Record } from "../../type";
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { BsHeaderGood } from "../BS/common/index";
|
|
4
|
+
import type { ShowHeaderObjType } from "../../type";
|
|
4
5
|
declare class EItemEncode implements ComponentInterface {
|
|
5
6
|
name: string;
|
|
6
7
|
id: string;
|
|
@@ -15,7 +16,7 @@ declare class EItemEncode implements ComponentInterface {
|
|
|
15
16
|
children: ComponentInterface[];
|
|
16
17
|
goods: BsHeaderGood;
|
|
17
18
|
dataType: ComponentInterface["dataType"];
|
|
18
|
-
showHeader: string[];
|
|
19
|
+
showHeader: (string | ShowHeaderObjType)[];
|
|
19
20
|
platform?: ComponentInterface["platform"];
|
|
20
21
|
sortChildField: {
|
|
21
22
|
name: string;
|
|
@@ -16,6 +16,7 @@ import { BsHeaderGood } from "../BS/common/index";
|
|
|
16
16
|
import ItemView from "../../commonComponents/ItemView";
|
|
17
17
|
import { isNull } from "@kmkf-fe-packages/kmkf-utils";
|
|
18
18
|
import { SYMBOL } from "../../constant";
|
|
19
|
+
import { columnsGoodsList } from "@kmkf-fe-packages/kmkf-utils";
|
|
19
20
|
var EItemEncode = /*#__PURE__*/_createClass(function EItemEncode(options) {
|
|
20
21
|
var _this = this,
|
|
21
22
|
_this$componentConfig3,
|
|
@@ -38,41 +39,23 @@ var EItemEncode = /*#__PURE__*/_createClass(function EItemEncode(options) {
|
|
|
38
39
|
_defineProperty(this, "platform", void 0);
|
|
39
40
|
_defineProperty(this, "sortChildField", void 0);
|
|
40
41
|
_defineProperty(this, "getSortChildFields", function () {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
numIid: "商品id",
|
|
45
|
-
skuId: "skuId",
|
|
46
|
-
outerSkuId: "sku编码",
|
|
47
|
-
propertiesName: "sku信息"
|
|
48
|
-
};
|
|
49
|
-
return Object.keys(mapping).map(function (item) {
|
|
42
|
+
return columnsGoodsList.filter(function (item) {
|
|
43
|
+
return !["picUrl", "num"].includes(item.dataIndex);
|
|
44
|
+
}).map(function (item) {
|
|
50
45
|
return {
|
|
51
|
-
name:
|
|
52
|
-
key: "".concat(_this.id, "_").concat(item),
|
|
46
|
+
name: item.title,
|
|
47
|
+
key: "".concat(_this.id, "_").concat(item.dataIndex),
|
|
53
48
|
dataType: "arrayObject",
|
|
54
|
-
disabled: !_this.showHeader.includes(item)
|
|
49
|
+
disabled: !_this.showHeader.includes(item.dataIndex)
|
|
55
50
|
};
|
|
56
51
|
});
|
|
57
52
|
});
|
|
58
53
|
_defineProperty(this, "getShowHeader", function (showHeader) {
|
|
59
54
|
if (!Array.isArray(showHeader)) {
|
|
60
|
-
return
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
// 商品编码
|
|
64
|
-
"picUrl",
|
|
65
|
-
// 图片
|
|
66
|
-
"numIid",
|
|
67
|
-
// 商品id
|
|
68
|
-
"skuId",
|
|
69
|
-
// skuId
|
|
70
|
-
"outerSkuId",
|
|
71
|
-
// sku编码
|
|
72
|
-
"propertiesName" // sku 信息
|
|
73
|
-
];
|
|
55
|
+
return columnsGoodsList.map(function (item) {
|
|
56
|
+
return item.dataIndex;
|
|
57
|
+
});
|
|
74
58
|
}
|
|
75
|
-
|
|
76
59
|
var isStringArray = Array.isArray(showHeader) && typeof showHeader[0] === "string";
|
|
77
60
|
var isObjectArray = Array.isArray(showHeader) && Object.prototype.toString.call(showHeader[0]) === "[object Object]";
|
|
78
61
|
if (isStringArray) return showHeader;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from
|
|
2
|
-
import React from
|
|
1
|
+
import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from "../../type";
|
|
2
|
+
import React from "react";
|
|
3
3
|
declare class MsgStatus implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
6
6
|
sortField: string;
|
|
7
7
|
type: string;
|
|
8
8
|
rules: any[];
|
|
9
|
-
componentConfig: ComponentInterface[
|
|
9
|
+
componentConfig: ComponentInterface["componentConfig"];
|
|
10
10
|
align: ALignType;
|
|
11
11
|
isCombinationComponent: boolean;
|
|
12
12
|
formField: string;
|
|
13
13
|
canSort: boolean;
|
|
14
14
|
children: ComponentInterface[];
|
|
15
|
-
dataType: ComponentInterface[
|
|
16
|
-
options: ComponentInterface[
|
|
15
|
+
dataType: ComponentInterface["dataType"];
|
|
16
|
+
options: ComponentInterface["options"];
|
|
17
17
|
constructor(options: PickOption);
|
|
18
18
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
19
19
|
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
@@ -8,61 +8,52 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
8
8
|
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; }
|
|
9
9
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
10
10
|
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
11
|
-
import React from
|
|
12
|
-
import some from
|
|
11
|
+
import React from "react";
|
|
12
|
+
import some from "lodash/some";
|
|
13
13
|
import GetFormItem from "../GetFormItem";
|
|
14
14
|
import { MsgContent } from "../Common";
|
|
15
|
-
import { MsgStatus as Status } from
|
|
15
|
+
import { MsgStatus as Status } from "@kmkf-fe-packages/basic-components";
|
|
16
16
|
import ItemView from "../../commonComponents/ItemView";
|
|
17
|
-
import { isNull, filterFn as _filterFn } from
|
|
17
|
+
import { isNull, filterFn as _filterFn, msgTypeCh } from "@kmkf-fe-packages/kmkf-utils";
|
|
18
18
|
import { SYMBOL } from "../../constant";
|
|
19
19
|
var typeMap = {
|
|
20
20
|
MSG_STATUS: {
|
|
21
21
|
options: [{
|
|
22
|
-
oldValue:
|
|
23
|
-
value:
|
|
24
|
-
label:
|
|
25
|
-
color:
|
|
22
|
+
oldValue: "发送成功",
|
|
23
|
+
value: "执行成功",
|
|
24
|
+
label: "执行成功",
|
|
25
|
+
color: "#52c41a"
|
|
26
26
|
}, {
|
|
27
|
-
oldValue:
|
|
28
|
-
value:
|
|
29
|
-
label:
|
|
30
|
-
color:
|
|
27
|
+
oldValue: "已发送",
|
|
28
|
+
value: "执行中",
|
|
29
|
+
label: "执行中",
|
|
30
|
+
color: "#52c41a"
|
|
31
31
|
}, {
|
|
32
|
-
oldValue:
|
|
33
|
-
value:
|
|
34
|
-
label:
|
|
35
|
-
color:
|
|
32
|
+
oldValue: "发送失败",
|
|
33
|
+
value: "执行失败",
|
|
34
|
+
label: "执行失败",
|
|
35
|
+
color: "#ff4d4f"
|
|
36
36
|
}, {
|
|
37
|
-
oldValue:
|
|
38
|
-
value:
|
|
39
|
-
label:
|
|
40
|
-
color:
|
|
37
|
+
oldValue: "等待发送",
|
|
38
|
+
value: "等待执行",
|
|
39
|
+
label: "等待执行",
|
|
40
|
+
color: "#e7780f"
|
|
41
41
|
}, {
|
|
42
|
-
oldValue:
|
|
43
|
-
value:
|
|
44
|
-
label:
|
|
45
|
-
color:
|
|
42
|
+
oldValue: "等待发送",
|
|
43
|
+
value: "不满足条件,无需执行",
|
|
44
|
+
label: "不满足条件,无需执行",
|
|
45
|
+
color: "#8A8A8A"
|
|
46
46
|
}],
|
|
47
|
-
key:
|
|
48
|
-
code:
|
|
49
|
-
name:
|
|
47
|
+
key: "msgStatusValues",
|
|
48
|
+
code: "msgStatus4Search",
|
|
49
|
+
name: "任务状态",
|
|
50
50
|
type: 1,
|
|
51
|
-
valueKey:
|
|
52
|
-
idKey:
|
|
51
|
+
valueKey: "status",
|
|
52
|
+
idKey: "systemOrderId",
|
|
53
53
|
// 添加 发送失败 是为了兼容老数据
|
|
54
|
-
failValue: [
|
|
54
|
+
failValue: ["执行失败", "发送失败"]
|
|
55
55
|
}
|
|
56
56
|
};
|
|
57
|
-
var msgTypeCh = {
|
|
58
|
-
ding: '钉钉',
|
|
59
|
-
wechat: '微信',
|
|
60
|
-
qq: 'QQ',
|
|
61
|
-
qywx: '企业微信',
|
|
62
|
-
YZDKH: '邮政拦截',
|
|
63
|
-
YT: '圆通拦截',
|
|
64
|
-
feishu: "飞书"
|
|
65
|
-
};
|
|
66
57
|
var MsgStatus = /*#__PURE__*/_createClass(function MsgStatus(options) {
|
|
67
58
|
var _this = this,
|
|
68
59
|
_typeMap$options$type,
|
|
@@ -133,9 +124,9 @@ var MsgStatus = /*#__PURE__*/_createClass(function MsgStatus(options) {
|
|
|
133
124
|
var _typeMap$_this$type14;
|
|
134
125
|
return item[(_typeMap$_this$type14 = typeMap[_this.type]) === null || _typeMap$_this$type14 === void 0 ? void 0 : _typeMap$_this$type14.valueKey] === option.value;
|
|
135
126
|
});
|
|
136
|
-
var key = item.msgType ||
|
|
137
|
-
return "".concat(msgTypeCh[key], "-").concat(item.ruleName, ":").concat(currentOption ? (currentOption === null || currentOption === void 0 ? void 0 : currentOption.label) ||
|
|
138
|
-
}).join(
|
|
127
|
+
var key = item.msgType || "ding";
|
|
128
|
+
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]) || "");
|
|
129
|
+
}).join(",");
|
|
139
130
|
});
|
|
140
131
|
_defineProperty(this, "editRender", function (p) {
|
|
141
132
|
var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4, _typeMap$_this$type16;
|
|
@@ -146,7 +137,7 @@ var MsgStatus = /*#__PURE__*/_createClass(function MsgStatus(options) {
|
|
|
146
137
|
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
147
138
|
display: p === null || p === void 0 ? void 0 : p.display,
|
|
148
139
|
required: (_this$componentConfig = (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.required) !== null && _this$componentConfig !== void 0 ? _this$componentConfig : false,
|
|
149
|
-
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 :
|
|
140
|
+
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 : "",
|
|
150
141
|
component: /*#__PURE__*/React.createElement(Status, _extends({}, _this.componentConfig, {
|
|
151
142
|
type: (_typeMap$_this$type16 = typeMap[_this.type]) === null || _typeMap$_this$type16 === void 0 ? void 0 : _typeMap$_this$type16.type,
|
|
152
143
|
failValue: typeMap[_this.type].failValue
|
|
@@ -160,12 +151,12 @@ var MsgStatus = /*#__PURE__*/_createClass(function MsgStatus(options) {
|
|
|
160
151
|
type: item.type,
|
|
161
152
|
id: "".concat(item.id, "_").concat((_typeMap$_this$type17 = typeMap[_this.type]) === null || _typeMap$_this$type17 === void 0 ? void 0 : _typeMap$_this$type17.code),
|
|
162
153
|
name: "".concat(_this.name),
|
|
163
|
-
filterComponentType:
|
|
154
|
+
filterComponentType: "MultipleSelect",
|
|
164
155
|
props: {
|
|
165
156
|
options: item === null || item === void 0 ? void 0 : (_item$templateConfig = item.templateConfig) === null || _item$templateConfig === void 0 ? void 0 : _item$templateConfig.reasonList,
|
|
166
157
|
fieldNames: {
|
|
167
|
-
label:
|
|
168
|
-
value:
|
|
158
|
+
label: "label",
|
|
159
|
+
value: "value"
|
|
169
160
|
}
|
|
170
161
|
},
|
|
171
162
|
filterFn: function filterFn(value) {
|
|
@@ -187,7 +178,7 @@ var MsgStatus = /*#__PURE__*/_createClass(function MsgStatus(options) {
|
|
|
187
178
|
this.isCombinationComponent = false;
|
|
188
179
|
this.canSort = false;
|
|
189
180
|
this.children = [];
|
|
190
|
-
this.dataType =
|
|
181
|
+
this.dataType = "weakenArray";
|
|
191
182
|
this.rules = (_this$componentConfig5 = this.componentConfig) !== null && _this$componentConfig5 !== void 0 && _this$componentConfig5.required ? [{
|
|
192
183
|
required: true,
|
|
193
184
|
validator: function validator(_, value) {
|
|
@@ -202,7 +193,7 @@ var MsgStatus = /*#__PURE__*/_createClass(function MsgStatus(options) {
|
|
|
202
193
|
return Promise.resolve();
|
|
203
194
|
}
|
|
204
195
|
}] : [];
|
|
205
|
-
this.align =
|
|
196
|
+
this.align = "left";
|
|
206
197
|
this.options = (_typeMap$options$type3 = typeMap[options.type]) === null || _typeMap$options$type3 === void 0 ? void 0 : _typeMap$options$type3.options;
|
|
207
198
|
});
|
|
208
199
|
export default MsgStatus;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from "../../../type";
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { ExpressData } from "@kmkf-fe-packages/kmkf-utils";
|
|
4
|
-
declare class
|
|
4
|
+
declare class Logistics implements ComponentInterface {
|
|
5
5
|
name: string;
|
|
6
6
|
id: string;
|
|
7
7
|
sortField: string;
|
|
@@ -60,4 +60,4 @@ declare class JstLogistics implements ComponentInterface {
|
|
|
60
60
|
formatFilterValue?: undefined;
|
|
61
61
|
})[];
|
|
62
62
|
}
|
|
63
|
-
export default
|
|
63
|
+
export default Logistics;
|
|
@@ -16,12 +16,6 @@ import ItemView from "../../../commonComponents/ItemView";
|
|
|
16
16
|
import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
|
|
17
17
|
import { SYMBOL, batchInput } from "../../../constant";
|
|
18
18
|
var typeMap = {
|
|
19
|
-
JST_LOGISTICS: {
|
|
20
|
-
key: "jstItemList",
|
|
21
|
-
name: "jst",
|
|
22
|
-
company: "logisticsCompany",
|
|
23
|
-
code: "logisticsCode"
|
|
24
|
-
},
|
|
25
19
|
REISSUE_LOGISTICS: {
|
|
26
20
|
key: "reissueLogisticsList",
|
|
27
21
|
name: "reissue",
|
|
@@ -29,14 +23,14 @@ var typeMap = {
|
|
|
29
23
|
code: "reissueLogisticsCode"
|
|
30
24
|
}
|
|
31
25
|
};
|
|
32
|
-
var
|
|
26
|
+
var Logistics = /*#__PURE__*/_createClass(function Logistics(_options) {
|
|
33
27
|
var _this = this,
|
|
34
28
|
_typeMap$_options$typ,
|
|
35
29
|
_typeMap$_options$typ2,
|
|
36
30
|
_this$componentConfig8,
|
|
37
31
|
_this$componentConfig9,
|
|
38
32
|
_this$componentConfig10;
|
|
39
|
-
_classCallCheck(this,
|
|
33
|
+
_classCallCheck(this, Logistics);
|
|
40
34
|
_defineProperty(this, "name", void 0);
|
|
41
35
|
_defineProperty(this, "id", void 0);
|
|
42
36
|
_defineProperty(this, "sortField", void 0);
|
|
@@ -203,4 +197,4 @@ var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(_options) {
|
|
|
203
197
|
this.expressDateInstance = ExpressData.getInstance((_this$componentConfig9 = this.componentConfig) === null || _this$componentConfig9 === void 0 ? void 0 : _this$componentConfig9.logistics);
|
|
204
198
|
this.sortChildField = this.getSortChildFields(((_this$componentConfig10 = this.componentConfig) === null || _this$componentConfig10 === void 0 ? void 0 : _this$componentConfig10.showField) || "", _options);
|
|
205
199
|
});
|
|
206
|
-
export default
|
|
200
|
+
export default Logistics;
|
package/dist/esm/factory.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ReissueLogistics, 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, AfterSalesOrderId, BsE3Goods, BsE3Reissue, MemberLevel } from "./index";
|
|
2
2
|
import { PickOption } from "./type";
|
|
3
|
-
export declare const factory: (type: string, options: PickOption) => BsLogistics |
|
|
3
|
+
export declare const factory: (type: string, options: PickOption) => BsLogistics | BsSystemOrder | JstSendGood | MsgStatus | ReissueLogistics | 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 | Payment | 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 | MemberLevel | AfterSalesOrderId;
|
package/dist/esm/factory.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ReissueLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, SubForm, CommonDataTime, TradeId, ShopName, ErpTradeId, 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,
|
|
2
2
|
// CommonTradeId,
|
|
3
3
|
CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, WdtGoods, WdtReturn, WdtExchange, CommonInput, PaymentVoucherCode, Label, WdtReissue, AfterSalesOrderId, BsE3Goods, BsE3Reissue, MemberLevel } from "./index";
|
|
4
4
|
export var factory = function factory(type, options) {
|
|
@@ -122,9 +122,8 @@ export var factory = function factory(type, options) {
|
|
|
122
122
|
return new CommonDataTime(options);
|
|
123
123
|
case "TEMPLATE_ID_INPUT":
|
|
124
124
|
return new TemplateSelect(options);
|
|
125
|
-
case "JST_LOGISTICS":
|
|
126
125
|
case "REISSUE_LOGISTICS":
|
|
127
|
-
return new
|
|
126
|
+
return new ReissueLogistics(options);
|
|
128
127
|
case "JST_ITEM_SELECT_THIRD":
|
|
129
128
|
return new JstItemSelect(options);
|
|
130
129
|
case "JST_SUPPLY":
|
|
@@ -171,6 +170,7 @@ export var factory = function factory(type, options) {
|
|
|
171
170
|
case "BS_E3_LOGISTICS":
|
|
172
171
|
case "WLN_LOGISTICS":
|
|
173
172
|
case "WDT_LOGISTICS":
|
|
173
|
+
case "JST_LOGISTICS":
|
|
174
174
|
return new BsLogistics(options);
|
|
175
175
|
case "FLOW_WORK_ORDER_ID_INPUT":
|
|
176
176
|
return new FlowWorkOrderId(options);
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -34,7 +34,7 @@ export { default as SystemOrderNo } from "./components/SystemOrderNo";
|
|
|
34
34
|
export { default as Ordinary } from "./components/Ordinary";
|
|
35
35
|
export { default as ThirdItemSelect } from "./components/ThirdItemSelect";
|
|
36
36
|
export { default as Payment } from "./components/Payment";
|
|
37
|
-
export { default as
|
|
37
|
+
export { default as ReissueLogistics } from "./components/Reissue/Logistics";
|
|
38
38
|
export { default as JstItemSelect } from "./components/JST/JstItemSelect";
|
|
39
39
|
export { default as JstSendGood } from "./components/JST/JstSendGood";
|
|
40
40
|
export { default as JstSupply } from "./components/JST/JstSupply";
|
package/dist/esm/index.js
CHANGED
|
@@ -34,7 +34,7 @@ export { default as SystemOrderNo } from "./components/SystemOrderNo";
|
|
|
34
34
|
export { default as Ordinary } from "./components/Ordinary";
|
|
35
35
|
export { default as ThirdItemSelect } from "./components/ThirdItemSelect";
|
|
36
36
|
export { default as Payment } from "./components/Payment";
|
|
37
|
-
export { default as
|
|
37
|
+
export { default as ReissueLogistics } from "./components/Reissue/Logistics";
|
|
38
38
|
export { default as JstItemSelect } from "./components/JST/JstItemSelect";
|
|
39
39
|
export { default as JstSendGood } from "./components/JST/JstSendGood";
|
|
40
40
|
export { default as JstSupply } from "./components/JST/JstSupply";
|
|
@@ -8,6 +8,8 @@ export declare const queryLogisticsAddressData: () => Promise<void>;
|
|
|
8
8
|
export declare const queryAllLogisticsCompany: () => Promise<void>;
|
|
9
9
|
export declare const queryWdtLogisticsCompany: () => Promise<void>;
|
|
10
10
|
export declare const queryBsE3LogisticsCompany: () => Promise<void>;
|
|
11
|
+
export declare const queryJSTLogisticsCompany: () => Promise<void>;
|
|
12
|
+
export declare const queryWLNLogisticsCompany: () => Promise<void>;
|
|
11
13
|
export declare const querySendData: () => Promise<void>;
|
|
12
14
|
export declare const getAlipayBillReceipt: (data: any) => Promise<any>;
|
|
13
15
|
export declare const queryLabel: () => Promise<any>;
|
package/dist/esm/service/api.js
CHANGED
|
@@ -266,6 +266,18 @@ export var queryBsE3LogisticsCompany = function queryBsE3LogisticsCompany() {
|
|
|
266
266
|
instance.expressData = data;
|
|
267
267
|
}).catch(console.log);
|
|
268
268
|
};
|
|
269
|
+
export var queryJSTLogisticsCompany = function queryJSTLogisticsCompany() {
|
|
270
|
+
var instance = ExpressData.getInstance('jst');
|
|
271
|
+
return servers.JST.getLogisticsDataAsync().then(function (data) {
|
|
272
|
+
instance.expressData = data;
|
|
273
|
+
}).catch(console.log);
|
|
274
|
+
};
|
|
275
|
+
export var queryWLNLogisticsCompany = function queryWLNLogisticsCompany() {
|
|
276
|
+
var instance = ExpressData.getInstance('wln');
|
|
277
|
+
return servers.WLN.getLogisticsDataAsync().then(function (data) {
|
|
278
|
+
instance.expressData = data;
|
|
279
|
+
}).catch(console.log);
|
|
280
|
+
};
|
|
269
281
|
export var querySendData = /*#__PURE__*/function () {
|
|
270
282
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
271
283
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.26.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.26.0",
|
|
25
|
+
"@kmkf-fe-packages/kmkf-utils": "1.26.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": "adac4396452e1d31651bf5e712b78e96b6619954",
|
|
45
45
|
"gitHooks": {
|
|
46
46
|
"pre-commit": "lint-staged"
|
|
47
47
|
}
|