@kmkf-fe-packages/services-components 2.4.0-rc.0 → 2.4.1
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/Hooks/index.d.ts +2 -0
- package/dist/esm/Hooks/index.js +2 -0
- package/dist/esm/Hooks/useColumnsConfig.d.ts +26 -0
- package/dist/esm/Hooks/useColumnsConfig.js +243 -0
- package/dist/esm/Hooks/useGoodsSourceFormat.d.ts +29 -0
- package/dist/esm/Hooks/useGoodsSourceFormat.js +441 -0
- package/dist/esm/commonComponents/GlobalContext/hook/useGetHasErpData.d.ts +1 -1
- package/dist/esm/commonComponents/GlobalContext/hook/useGetHasErpData.js +4 -2
- package/dist/esm/commonComponents/GlobalContext/index.js +10 -3
- package/dist/esm/commonComponents/GlobalContext/orderQuery/useGetErpAddressData.js +14 -11
- package/dist/esm/commonComponents/GlobalContext/orderQuery/useGetErpLogisticsCompany.js +14 -12
- package/dist/esm/commonComponents/GlobalContext/orderQuery/useGetErpSendData.js +11 -9
- package/dist/esm/commonComponents/OperationLog/index.d.ts +2 -1
- package/dist/esm/commonComponents/OperationLog/index.js +4 -2
- package/dist/esm/commonComponents/QueryLogisticsTrack/index.d.ts +5 -3
- package/dist/esm/commonComponents/QueryLogisticsTrack/index.js +23 -19
- package/dist/esm/commonComponents/ShopList/index.js +3 -1
- package/dist/esm/components/BS/BsLogistics/index.d.ts +7 -2
- package/dist/esm/components/BS/BsLogistics/index.js +61 -8
- package/dist/esm/components/BS/BsSystemOrder/index.d.ts +8 -0
- package/dist/esm/components/BS/BsSystemOrder/index.js +56 -9
- package/dist/esm/components/BS/common/BsHeaderChild.d.ts +4 -4
- package/dist/esm/components/BS/common/BsHeaderChild.js +8 -8
- package/dist/esm/components/BS/common/BsHeaderGood.js +2 -2
- package/dist/esm/components/BS/common/BsHeaderPic.d.ts +2 -0
- package/dist/esm/components/BS/common/BsHeaderPic.js +20 -10
- package/dist/esm/components/BS/common/BsMemo.js +4 -1
- package/dist/esm/components/BS/common/BsType.js +4 -1
- package/dist/esm/components/BS/common/SystemOrderNo.js +4 -1
- package/dist/esm/components/BS/common/expressCode.d.ts +4 -1
- package/dist/esm/components/BS/common/expressCode.js +16 -4
- package/dist/esm/components/BS/common/expressCompany.d.ts +5 -2
- package/dist/esm/components/BS/common/expressCompany.js +31 -5
- package/dist/esm/components/BsE3/BsReissueE3/index.js +4 -1
- package/dist/esm/components/Cascader/index.d.ts +8 -6
- package/dist/esm/components/Cascader/index.js +26 -22
- package/dist/esm/components/Common/constants/bs.js +2 -2
- package/dist/esm/components/Common/constants/columnsBaseInfoMap.js +6 -2
- package/dist/esm/components/Common/constants/defaultColumns.js +2 -2
- package/dist/esm/components/Common/constants/wdt.js +104 -0
- package/dist/esm/components/Common/index.d.ts +3 -3
- package/dist/esm/components/Common/index.js +49 -28
- package/dist/esm/components/CommonDataTime/index.d.ts +2 -2
- package/dist/esm/components/CommonDataTime/index.js +2 -2
- package/dist/esm/components/CommonHeaderGood/index.js +1165 -18
- package/dist/esm/components/CommonInput/index.js +11 -3
- package/dist/esm/components/CommonMultiStatus/index.js +73 -36
- package/dist/esm/components/ErpTradeId/index.d.ts +2 -2
- package/dist/esm/components/ErpTradeId/index.js +7 -4
- package/dist/esm/components/File/index.d.ts +6 -6
- package/dist/esm/components/File/index.js +9 -10
- package/dist/esm/components/FlowOverallStatusSelect/index.d.ts +40 -0
- package/dist/esm/components/FlowOverallStatusSelect/index.js +180 -0
- package/dist/esm/components/GY/GyGoods/index.js +5 -1
- package/dist/esm/components/GY/GyReissue/index.js +5 -1
- package/dist/esm/components/GY/GyReturn/index.js +5 -1
- package/dist/esm/components/Input/index.d.ts +4 -4
- package/dist/esm/components/Input/index.js +35 -31
- package/dist/esm/components/JST/JstSendGood/index.js +17 -1
- package/dist/esm/components/KM/KmExchange/index.d.ts +35 -0
- package/dist/esm/components/KM/KmExchange/index.js +136 -0
- package/dist/esm/components/KmErpSendGood/index.js +1 -1
- package/dist/esm/components/Logistics/index.d.ts +1 -0
- package/dist/esm/components/Logistics/index.js +10 -0
- package/dist/esm/components/LogisticsInterception/columnHeader.js +1 -1
- package/dist/esm/components/LogisticsInterception/index.d.ts +20 -0
- package/dist/esm/components/LogisticsInterception/index.js +10 -5
- package/dist/esm/components/LogisticsInterception/interceptApiStatusReason.d.ts +45 -0
- package/dist/esm/components/LogisticsInterception/interceptApiStatusReason.js +97 -0
- package/dist/esm/components/LogisticsInterception/interceptSenderMobile.js +3 -2
- package/dist/esm/components/LogisticsMoreInterception/InterceptAddress.js +4 -2
- package/dist/esm/components/LogisticsMoreInterception/InterceptApiStatus.js +1 -1
- package/dist/esm/components/LogisticsMoreInterception/index.js +1 -0
- package/dist/esm/components/LogisticsMoreInterception/interceptSenderMobile.d.ts +5 -5
- package/dist/esm/components/LogisticsMoreInterception/interceptSenderMobile.js +9 -9
- package/dist/esm/components/OrderSubForm/index.d.ts +56 -0
- package/dist/esm/components/OrderSubForm/index.js +285 -0
- package/dist/esm/components/Payment/index.d.ts +13 -12
- package/dist/esm/components/Payment/index.js +31 -11
- package/dist/esm/components/PaymentVoucherCode/Preview.js +35 -9
- package/dist/esm/components/Picture/index.d.ts +5 -5
- package/dist/esm/components/Picture/index.js +20 -20
- package/dist/esm/components/PicturePro/index.d.ts +15 -6
- package/dist/esm/components/PicturePro/index.js +42 -25
- package/dist/esm/components/PostIng/index.d.ts +5 -0
- package/dist/esm/components/PostIng/index.js +42 -8
- package/dist/esm/components/Public/Goods/index.d.ts +10 -8
- package/dist/esm/components/Public/Goods/index.js +42 -2
- package/dist/esm/components/Public/ReissueGoods/index.js +62 -4
- package/dist/esm/components/Public/ReturnWarehouse/index.d.ts +51 -0
- package/dist/esm/components/Public/ReturnWarehouse/index.js +210 -0
- package/dist/esm/components/ReceiverAddress/index.d.ts +7 -6
- package/dist/esm/components/ReceiverAddress/index.js +41 -27
- package/dist/esm/components/Reissue/Logistics/index.js +2 -2
- package/dist/esm/components/Remark/index.d.ts +18 -2
- package/dist/esm/components/Remark/index.js +37 -2
- package/dist/esm/components/ReturnLogistics/index.d.ts +7 -6
- package/dist/esm/components/ReturnLogistics/index.js +34 -17
- package/dist/esm/components/SKX/SkxGoods/index.js +4 -0
- package/dist/esm/components/SKX/SkxIdInputSelect/index.js +4 -0
- package/dist/esm/components/Select/index.d.ts +1 -0
- package/dist/esm/components/Select/index.js +22 -11
- package/dist/esm/components/ShopInput/index.d.ts +5 -5
- package/dist/esm/components/ShopInput/index.js +12 -9
- package/dist/esm/components/StatusSelect/index.js +4 -0
- package/dist/esm/components/SubForm/children/HeaderChildFile.d.ts +30 -0
- package/dist/esm/components/SubForm/children/HeaderChildFile.js +117 -0
- package/dist/esm/components/SubForm/children/HeaderChildPic.d.ts +30 -0
- package/dist/esm/components/SubForm/children/HeaderChildPic.js +116 -0
- package/dist/esm/components/SubForm/index.js +78 -6
- package/dist/esm/components/TradeId/index.d.ts +5 -5
- package/dist/esm/components/TradeId/index.js +17 -14
- package/dist/esm/components/WDT/WdtRessuie/index.js +28 -8
- package/dist/esm/factory.d.ts +2 -2
- package/dist/esm/factory.js +37 -7
- package/dist/esm/index.d.ts +5 -0
- package/dist/esm/index.js +7 -1
- package/dist/esm/service/api.d.ts +3 -0
- package/dist/esm/service/api.js +34 -1
- package/dist/esm/type.d.ts +38 -0
- package/package.json +4 -4
- package/dist/esm/components/Common/constants/gy.d.ts +0 -3
- package/dist/esm/components/Common/constants/gy.js +0 -219
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.1",
|
|
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": "2.4.
|
|
25
|
-
"@kmkf-fe-packages/kmkf-utils": "2.4.
|
|
24
|
+
"@kmkf-fe-packages/basic-components": "2.4.1",
|
|
25
|
+
"@kmkf-fe-packages/kmkf-utils": "2.4.1",
|
|
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": "d3137c66c0026c9ab302b8daa6ec0a65e4d8b3a7",
|
|
45
45
|
"gitHooks": {
|
|
46
46
|
"pre-commit": "lint-staged"
|
|
47
47
|
}
|
|
@@ -1,219 +0,0 @@
|
|
|
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 ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
|
-
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; }
|
|
5
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
6
|
-
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); }
|
|
7
|
-
import React from "react";
|
|
8
|
-
import { isNull } from "@kmkf-fe-packages/kmkf-utils";
|
|
9
|
-
var getYesOrNo = function getYesOrNo(val) {
|
|
10
|
-
if (isNull(val)) return null;
|
|
11
|
-
return val ? "是" : "否";
|
|
12
|
-
};
|
|
13
|
-
var getColumns = function getColumns() {
|
|
14
|
-
var data = {
|
|
15
|
-
//管易商品信息
|
|
16
|
-
GY_GOODS: [{
|
|
17
|
-
dataIndex: "goodName",
|
|
18
|
-
title: "\u5546\u54C1\u540D\u79F0",
|
|
19
|
-
width: 150
|
|
20
|
-
}, {
|
|
21
|
-
dataIndex: "goodShortName",
|
|
22
|
-
title: "\u5546\u54C1\u7B80\u79F0",
|
|
23
|
-
width: 150
|
|
24
|
-
}, {
|
|
25
|
-
dataIndex: "goodNo",
|
|
26
|
-
title: "\u5546\u54C1\u7F16\u7801",
|
|
27
|
-
width: 200
|
|
28
|
-
}, {
|
|
29
|
-
dataIndex: "specName",
|
|
30
|
-
title: "SKU\u540D\u79F0",
|
|
31
|
-
align: "center",
|
|
32
|
-
ellipsis: true,
|
|
33
|
-
width: 250
|
|
34
|
-
}, {
|
|
35
|
-
dataIndex: "specNo",
|
|
36
|
-
title: "SKU\u7F16\u7801",
|
|
37
|
-
align: "center",
|
|
38
|
-
ellipsis: true,
|
|
39
|
-
width: 150
|
|
40
|
-
}, {
|
|
41
|
-
dataIndex: "qty",
|
|
42
|
-
title: "\u6570\u91CF",
|
|
43
|
-
width: 100
|
|
44
|
-
}, {
|
|
45
|
-
dataIndex: "price",
|
|
46
|
-
title: "\u5B9E\u9645\u5355\u4EF7",
|
|
47
|
-
width: 150
|
|
48
|
-
}, {
|
|
49
|
-
dataIndex: "amount",
|
|
50
|
-
title: "\u5B9E\u9645\u91D1\u989D",
|
|
51
|
-
width: 150
|
|
52
|
-
}, {
|
|
53
|
-
dataIndex: "originPrice",
|
|
54
|
-
title: "\u6807\u51C6\u5355\u4EF7",
|
|
55
|
-
width: 150
|
|
56
|
-
}, {
|
|
57
|
-
dataIndex: "originAmount",
|
|
58
|
-
title: "\u6807\u51C6\u91D1\u989D",
|
|
59
|
-
width: 150
|
|
60
|
-
}, {
|
|
61
|
-
dataIndex: "discountFee",
|
|
62
|
-
title: "\u8BA9\u5229\u91D1\u989D",
|
|
63
|
-
width: 150
|
|
64
|
-
}, {
|
|
65
|
-
dataIndex: "amountAfter",
|
|
66
|
-
title: "\u8BA9\u5229\u540E\u91D1\u989D",
|
|
67
|
-
width: 150
|
|
68
|
-
}, {
|
|
69
|
-
dataIndex: "cancel",
|
|
70
|
-
title: "\u662F\u5426\u53D6\u6D88",
|
|
71
|
-
width: 150,
|
|
72
|
-
render: function render(val) {
|
|
73
|
-
return /*#__PURE__*/React.createElement("span", null, getYesOrNo(val));
|
|
74
|
-
}
|
|
75
|
-
}, {
|
|
76
|
-
dataIndex: "isGift",
|
|
77
|
-
title: "\u662F\u5426\u8D60\u54C1",
|
|
78
|
-
width: 150,
|
|
79
|
-
render: function render(val) {
|
|
80
|
-
return /*#__PURE__*/React.createElement("span", null, getYesOrNo(val));
|
|
81
|
-
}
|
|
82
|
-
}, {
|
|
83
|
-
dataIndex: "skuNote",
|
|
84
|
-
title: "\u5546\u54C1\u5907\u6CE8",
|
|
85
|
-
width: 150
|
|
86
|
-
}].map(function (item) {
|
|
87
|
-
return _objectSpread(_objectSpread({}, item), {}, {
|
|
88
|
-
align: "center",
|
|
89
|
-
ellipsis: true
|
|
90
|
-
});
|
|
91
|
-
}),
|
|
92
|
-
//管易补发商品信息
|
|
93
|
-
GY_REISSUE_GOODS: [{
|
|
94
|
-
dataIndex: "goodName",
|
|
95
|
-
title: "\u5546\u54C1\u540D\u79F0",
|
|
96
|
-
width: 150
|
|
97
|
-
}, {
|
|
98
|
-
dataIndex: "goodShortName",
|
|
99
|
-
title: "\u5546\u54C1\u7B80\u79F0",
|
|
100
|
-
width: 150
|
|
101
|
-
}, {
|
|
102
|
-
dataIndex: "goodNo",
|
|
103
|
-
title: "\u5546\u54C1\u7F16\u7801",
|
|
104
|
-
width: 200
|
|
105
|
-
}, {
|
|
106
|
-
dataIndex: "specName",
|
|
107
|
-
title: "SKU\u540D\u79F0",
|
|
108
|
-
align: "center",
|
|
109
|
-
ellipsis: true,
|
|
110
|
-
width: 250
|
|
111
|
-
}, {
|
|
112
|
-
dataIndex: "specNo",
|
|
113
|
-
title: "SKU\u7F16\u7801",
|
|
114
|
-
align: "center",
|
|
115
|
-
ellipsis: true,
|
|
116
|
-
width: 150
|
|
117
|
-
}, {
|
|
118
|
-
dataIndex: "qty",
|
|
119
|
-
title: "\u6570\u91CF",
|
|
120
|
-
width: 100
|
|
121
|
-
}, {
|
|
122
|
-
dataIndex: "price",
|
|
123
|
-
title: "\u5B9E\u9645\u5355\u4EF7",
|
|
124
|
-
width: 150
|
|
125
|
-
}, {
|
|
126
|
-
dataIndex: "amount",
|
|
127
|
-
title: "\u5B9E\u9645\u91D1\u989D",
|
|
128
|
-
width: 150
|
|
129
|
-
}, {
|
|
130
|
-
dataIndex: "originPrice",
|
|
131
|
-
title: "\u6807\u51C6\u5355\u4EF7",
|
|
132
|
-
width: 150
|
|
133
|
-
}, {
|
|
134
|
-
dataIndex: "originAmount",
|
|
135
|
-
title: "\u6807\u51C6\u91D1\u989D",
|
|
136
|
-
width: 150
|
|
137
|
-
}, {
|
|
138
|
-
dataIndex: "isGift",
|
|
139
|
-
title: "\u662F\u5426\u8D60\u54C1",
|
|
140
|
-
width: 150,
|
|
141
|
-
render: function render(val) {
|
|
142
|
-
return /*#__PURE__*/React.createElement("span", null, getYesOrNo(val));
|
|
143
|
-
}
|
|
144
|
-
}].map(function (item) {
|
|
145
|
-
return _objectSpread(_objectSpread({}, item), {}, {
|
|
146
|
-
align: "center",
|
|
147
|
-
ellipsis: true
|
|
148
|
-
});
|
|
149
|
-
}),
|
|
150
|
-
//管易退货商品信息
|
|
151
|
-
GY_RETURN_GOODS: [{
|
|
152
|
-
dataIndex: "goodName",
|
|
153
|
-
title: "\u5546\u54C1\u540D\u79F0",
|
|
154
|
-
width: 150
|
|
155
|
-
}, {
|
|
156
|
-
dataIndex: "goodShortName",
|
|
157
|
-
title: "\u5546\u54C1\u7B80\u79F0",
|
|
158
|
-
width: 150
|
|
159
|
-
}, {
|
|
160
|
-
dataIndex: "goodNo",
|
|
161
|
-
title: "\u5546\u54C1\u7F16\u7801",
|
|
162
|
-
width: 200
|
|
163
|
-
}, {
|
|
164
|
-
dataIndex: "specName",
|
|
165
|
-
title: "SKU\u540D\u79F0",
|
|
166
|
-
align: "center",
|
|
167
|
-
ellipsis: true,
|
|
168
|
-
width: 250
|
|
169
|
-
}, {
|
|
170
|
-
dataIndex: "specNo",
|
|
171
|
-
title: "SKU\u7F16\u7801",
|
|
172
|
-
align: "center",
|
|
173
|
-
ellipsis: true,
|
|
174
|
-
width: 150
|
|
175
|
-
}, {
|
|
176
|
-
dataIndex: "qty",
|
|
177
|
-
title: "\u6570\u91CF",
|
|
178
|
-
width: 100
|
|
179
|
-
}, {
|
|
180
|
-
dataIndex: "price",
|
|
181
|
-
title: "\u5B9E\u9645\u5355\u4EF7",
|
|
182
|
-
width: 150
|
|
183
|
-
}, {
|
|
184
|
-
dataIndex: "amount",
|
|
185
|
-
title: "\u5B9E\u9645\u91D1\u989D",
|
|
186
|
-
width: 150
|
|
187
|
-
}, {
|
|
188
|
-
dataIndex: "originPrice",
|
|
189
|
-
title: "\u6807\u51C6\u5355\u4EF7",
|
|
190
|
-
width: 150
|
|
191
|
-
}, {
|
|
192
|
-
dataIndex: "originAmount",
|
|
193
|
-
title: "\u6807\u51C6\u91D1\u989D",
|
|
194
|
-
width: 150
|
|
195
|
-
}, {
|
|
196
|
-
dataIndex: "discountFee",
|
|
197
|
-
title: "\u8BA9\u5229\u91D1\u989D",
|
|
198
|
-
width: 150
|
|
199
|
-
}, {
|
|
200
|
-
dataIndex: "amountAfter",
|
|
201
|
-
title: "\u8BA9\u5229\u540E\u91D1\u989D",
|
|
202
|
-
width: 150
|
|
203
|
-
}, {
|
|
204
|
-
dataIndex: "isGift",
|
|
205
|
-
title: "\u662F\u5426\u8D60\u54C1",
|
|
206
|
-
width: 150,
|
|
207
|
-
render: function render(val) {
|
|
208
|
-
return /*#__PURE__*/React.createElement("span", null, getYesOrNo(val));
|
|
209
|
-
}
|
|
210
|
-
}].map(function (item) {
|
|
211
|
-
return _objectSpread(_objectSpread({}, item), {}, {
|
|
212
|
-
align: "center",
|
|
213
|
-
ellipsis: true
|
|
214
|
-
});
|
|
215
|
-
})
|
|
216
|
-
};
|
|
217
|
-
return data;
|
|
218
|
-
};
|
|
219
|
-
export default getColumns;
|