@kmkf-fe-packages/services-components 1.10.1-beta.4 → 1.11.0-alpha.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/README.md +1 -3
- package/dist/esm/commonComponents/GlobalContext/index.d.ts +1 -1
- package/dist/esm/commonComponents/GlobalContext/index.js +1 -1
- package/dist/esm/components/Common/index.js +2 -2
- package/dist/esm/components/CommonHeaderGood/index.js +12 -12
- package/dist/esm/factory.js +3 -2
- package/package.json +6 -7
package/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
declare type RequestType = "queryAddressData" | "queryBsAddressData" | "queryExpressInterceptData" | "queryLogisticsAddressData" | "queryPlatData" | "queryWdtAddressData" | "queryAllLogisticsCompany" | "
|
|
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, Result, Button } from "antd";
|
|
18
|
-
import { queryExpressInterceptData, queryLogisticsAddressData, queryPlatData,
|
|
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,
|
|
@@ -16,10 +16,10 @@ import { Form, Button, Modal, Tooltip, Space, Image, Popover, Table, message, Ty
|
|
|
16
16
|
import React, { useState, useMemo } from "react";
|
|
17
17
|
import { ExpressData, WdtSendData } from "@kmkf-fe-packages/kmkf-utils";
|
|
18
18
|
import { getAlipayBillReceipt } from "../../service/api";
|
|
19
|
-
import { CopyToClipboard } from
|
|
20
|
-
import CopyText from "../../commonComponents/CopyText";
|
|
19
|
+
import { CopyToClipboard } from 'react-copy-to-clipboard';
|
|
21
20
|
import styles from "./index.module.less";
|
|
22
21
|
import defaultImg from "./img/default-img.png";
|
|
22
|
+
import CopyText from "../../commonComponents/CopyText";
|
|
23
23
|
var Paragraph = Typography.Paragraph;
|
|
24
24
|
export var getFormItem = function getFormItem(_ref) {
|
|
25
25
|
var name = _ref.name,
|
|
@@ -26,13 +26,13 @@ var GoodHeaderMap = {
|
|
|
26
26
|
headerMap: {
|
|
27
27
|
goodId: {
|
|
28
28
|
component: BsHeaderChild,
|
|
29
|
-
name: "
|
|
29
|
+
name: "商品ID",
|
|
30
30
|
key: "goodId",
|
|
31
31
|
width: 140
|
|
32
32
|
},
|
|
33
33
|
goodNo: {
|
|
34
34
|
component: BsHeaderChild,
|
|
35
|
-
name: "
|
|
35
|
+
name: "商品编码",
|
|
36
36
|
key: "goodNo",
|
|
37
37
|
width: 180
|
|
38
38
|
},
|
|
@@ -92,8 +92,8 @@ var GoodHeaderMap = {
|
|
|
92
92
|
}
|
|
93
93
|
},
|
|
94
94
|
itemKey: {
|
|
95
|
-
goodId: "
|
|
96
|
-
goodNo: "
|
|
95
|
+
goodId: "商品ID",
|
|
96
|
+
goodNo: "商品编码",
|
|
97
97
|
goodName: "商品名称",
|
|
98
98
|
specId: "SKUID",
|
|
99
99
|
specNo: "商品SKU编码",
|
|
@@ -109,13 +109,13 @@ var GoodHeaderMap = {
|
|
|
109
109
|
headerMap: {
|
|
110
110
|
goodId: {
|
|
111
111
|
component: BsHeaderChild,
|
|
112
|
-
name: "
|
|
112
|
+
name: "商品ID",
|
|
113
113
|
key: "goodId",
|
|
114
114
|
width: 140
|
|
115
115
|
},
|
|
116
116
|
goodNo: {
|
|
117
117
|
component: BsHeaderChild,
|
|
118
|
-
name: "
|
|
118
|
+
name: "商品编码",
|
|
119
119
|
key: "goodNo",
|
|
120
120
|
width: 180
|
|
121
121
|
},
|
|
@@ -182,8 +182,8 @@ var GoodHeaderMap = {
|
|
|
182
182
|
}
|
|
183
183
|
},
|
|
184
184
|
itemKey: {
|
|
185
|
-
goodId: "
|
|
186
|
-
goodNo: "
|
|
185
|
+
goodId: "商品ID",
|
|
186
|
+
goodNo: "商品编码",
|
|
187
187
|
goodName: "商品名称",
|
|
188
188
|
specId: "SKUID",
|
|
189
189
|
specNo: "商品SKU编码",
|
|
@@ -200,13 +200,13 @@ var GoodHeaderMap = {
|
|
|
200
200
|
headerMap: {
|
|
201
201
|
goodId: {
|
|
202
202
|
component: BsHeaderChild,
|
|
203
|
-
name: "
|
|
203
|
+
name: "商品ID",
|
|
204
204
|
key: "goodId",
|
|
205
205
|
width: 140
|
|
206
206
|
},
|
|
207
207
|
goodNo: {
|
|
208
208
|
component: BsHeaderChild,
|
|
209
|
-
name: "
|
|
209
|
+
name: "商品编码",
|
|
210
210
|
key: "goodNo",
|
|
211
211
|
width: 180
|
|
212
212
|
},
|
|
@@ -273,8 +273,8 @@ var GoodHeaderMap = {
|
|
|
273
273
|
}
|
|
274
274
|
},
|
|
275
275
|
itemKey: {
|
|
276
|
-
goodId: "
|
|
277
|
-
goodNo: "
|
|
276
|
+
goodId: "商品ID",
|
|
277
|
+
goodNo: "商品编码",
|
|
278
278
|
goodName: "商品名称",
|
|
279
279
|
specId: "SKUID",
|
|
280
280
|
specNo: "商品SKU编码",
|
package/dist/esm/factory.js
CHANGED
|
@@ -141,8 +141,6 @@ export var factory = function factory(type, options) {
|
|
|
141
141
|
return new BsPosting(options);
|
|
142
142
|
case "BS_GOODS":
|
|
143
143
|
return new BsGoods(options);
|
|
144
|
-
case "WDT_GOODS":
|
|
145
|
-
return new WdtGoods(options);
|
|
146
144
|
case "BS_EXCHANGE_GOODS":
|
|
147
145
|
return new BsExchange(options);
|
|
148
146
|
case "WDT_EXCHANGE_GOODS":
|
|
@@ -207,6 +205,9 @@ export var factory = function factory(type, options) {
|
|
|
207
205
|
return new CommonDataTime(options);
|
|
208
206
|
case "FLOW_UPDATE_DATETIME":
|
|
209
207
|
return new CommonDataTime(options);
|
|
208
|
+
case "WDT_GOODS":
|
|
209
|
+
// 万里牛商品
|
|
210
|
+
return new WdtGoods(options);
|
|
210
211
|
case "BUSINESS_ORDER_NO":
|
|
211
212
|
return new CommonInput(options);
|
|
212
213
|
case "PAYMENT_VOUCHER_CODE":
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.11.0-alpha.0",
|
|
4
4
|
"module": "dist/esm/index.js",
|
|
5
5
|
"typings": "dist/esm/index.d.ts",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist"
|
|
8
8
|
],
|
|
9
9
|
"scripts": {
|
|
10
|
+
"sync": "yarn build && yalc push",
|
|
10
11
|
"build": "yarn run lint && father build",
|
|
11
12
|
"lint": "eslint '**/*.{ts,tsx}'",
|
|
12
|
-
"lint:fix": "eslint --fix '**/*.{ts,tsx}'"
|
|
13
|
-
"sync": "yarn build && yalc push"
|
|
13
|
+
"lint:fix": "eslint --fix '**/*.{ts,tsx}'"
|
|
14
14
|
},
|
|
15
15
|
"lint-staged": {
|
|
16
16
|
"*.{js,jsx,less,md,json}": [
|
|
@@ -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.11.0-alpha.0",
|
|
25
|
+
"@kmkf-fe-packages/kmkf-utils": "1.11.0-alpha.0",
|
|
26
26
|
"react-pdf-js": "^5.1.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
@@ -34,13 +34,12 @@
|
|
|
34
34
|
"peerDependencies": {
|
|
35
35
|
"@ant-design/icons": "^4.7.0",
|
|
36
36
|
"antd": "^4.21.4",
|
|
37
|
-
"copy-to-clipboard": "^3.3.3",
|
|
38
37
|
"react": "^16.8.0"
|
|
39
38
|
},
|
|
40
39
|
"publishConfig": {
|
|
41
40
|
"access": "public"
|
|
42
41
|
},
|
|
43
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "72a04da62ed02419fdf194f559aca975a6af27b9",
|
|
44
43
|
"gitHooks": {
|
|
45
44
|
"pre-commit": "lint-staged"
|
|
46
45
|
}
|