@kmkf-fe-packages/services-components 2.0.0-rc.9 → 2.0.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/commonComponents/CopyText/index.d.ts +1 -1
- package/dist/esm/commonComponents/GlobalContext/index.d.ts +1 -1
- package/dist/esm/commonComponents/GlobalContext/index.js +5 -2
- package/dist/esm/components/BS/BsLogistics/index.js +8 -1
- package/dist/esm/components/BS/BsSystemOrder/index.js +6 -163
- package/dist/esm/components/BS/common/BsHeaderGood.js +13 -40
- package/dist/esm/components/BS/common/BsMemo.d.ts +4 -4
- package/dist/esm/components/BS/common/BsMemo.js +19 -18
- package/dist/esm/components/BS/common/BsType.d.ts +4 -4
- package/dist/esm/components/BS/common/BsType.js +17 -16
- package/dist/esm/components/BS/common/SystemOrderNo.js +2 -1
- 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/constants/bs.d.ts +3 -0
- package/dist/esm/components/Common/constants/bs.js +90 -0
- package/dist/esm/components/Common/constants/bs_e3.d.ts +3 -0
- package/dist/esm/components/Common/constants/bs_e3.js +154 -0
- package/dist/esm/components/Common/constants/columnsBaseInfoMap.d.ts +5 -0
- package/dist/esm/components/Common/constants/columnsBaseInfoMap.js +26 -0
- package/dist/esm/components/Common/constants/defaultColumns.d.ts +3 -0
- package/dist/esm/components/Common/constants/defaultColumns.js +76 -0
- package/dist/esm/components/Common/constants/gy.d.ts +3 -0
- package/dist/esm/components/Common/constants/gy.js +153 -0
- package/dist/esm/components/Common/constants/system.d.ts +3 -0
- package/dist/esm/components/Common/constants/system.js +58 -0
- package/dist/esm/components/Common/constants/wdt.d.ts +3 -0
- package/dist/esm/components/Common/constants/wdt.js +280 -0
- package/dist/esm/components/Common/index.d.ts +10 -3
- package/dist/esm/components/Common/index.js +74 -822
- package/dist/esm/components/CommonHeaderGood/index.js +196 -0
- package/dist/esm/components/CommonSystemOrder/index.d.ts +4 -4
- package/dist/esm/components/CommonSystemOrder/index.js +25 -25
- package/dist/esm/components/EItemEnCode/index.d.ts +3 -1
- package/dist/esm/components/EItemEnCode/index.js +26 -29
- package/dist/esm/components/GY/GyGoods/index.d.ts +33 -0
- package/dist/esm/components/GY/GyGoods/index.js +123 -0
- package/dist/esm/components/GY/GyReissue/index.d.ts +58 -0
- package/dist/esm/components/GY/GyReissue/index.js +188 -0
- package/dist/esm/components/Input/index.js +24 -21
- package/dist/esm/components/JST/JstSendGood/index.js +32 -16
- package/dist/esm/components/KmErpSendGood/index.js +11 -11
- package/dist/esm/components/MsgStatus/index.d.ts +5 -5
- package/dist/esm/components/MsgStatus/index.js +39 -48
- package/dist/esm/components/PostIng/index.js +3 -2
- package/dist/esm/components/ReceiverAddress/index.js +74 -8
- package/dist/esm/components/{JST/JstLogistics → Reissue/Logistics}/index.d.ts +12 -3
- package/dist/esm/components/{JST/JstLogistics → Reissue/Logistics}/index.js +36 -13
- package/dist/esm/components/StatusSelect/index.d.ts +1 -1
- package/dist/esm/components/StatusSelect/index.js +1 -2
- package/dist/esm/factory.d.ts +2 -2
- package/dist/esm/factory.js +10 -4
- package/dist/esm/index.d.ts +3 -1
- package/dist/esm/index.js +3 -1
- package/dist/esm/service/api.d.ts +3 -0
- package/dist/esm/service/api.js +59 -38
- package/dist/esm/type.d.ts +1 -1
- package/package.json +4 -4
- package/dist/esm/components/CommonHeaderGood/index copy.d.ts +0 -27
- package/dist/esm/components/CommonHeaderGood/index copy.js +0 -659
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";
|
|
@@ -86,6 +86,8 @@ export { default as Label } from "./components/Label";
|
|
|
86
86
|
export { default as MemberLevel } from "./components/MemberLevel";
|
|
87
87
|
export { default as KmErpSendGood } from "./components/KmErpSendGood";
|
|
88
88
|
export { default as AfterSalesOrderId } from "./components/AfterSalesOrderId";
|
|
89
|
+
export { default as GyGoods } from "./components/GY/GyGoods";
|
|
90
|
+
export { default as GyReissue } from "./components/GY/GyReissue";
|
|
89
91
|
// TODO: ERP 打款工单使用
|
|
90
92
|
export { default as KmErpOrderNum } from "./components/ErpTradeId/components/OrderNum";
|
|
91
93
|
export { factory } from "./factory";
|
|
@@ -8,6 +8,9 @@ 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>;
|
|
16
|
+
export declare const queryWorkOrderDetail: (data: any) => Promise<any>;
|
package/dist/esm/service/api.js
CHANGED
|
@@ -13,40 +13,40 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
13
13
|
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
14
14
|
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
15
15
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
16
|
-
import { AddressData, toTree, BsAddressData, WdtAddressData, PlatData, ExpressInterceptData, LogisticsAddressData, ExpressData, LabelData, SendDataCenter, servers } from
|
|
17
|
-
import get from
|
|
16
|
+
import { AddressData, toTree, BsAddressData, WdtAddressData, PlatData, ExpressInterceptData, LogisticsAddressData, ExpressData, LabelData, SendDataCenter, servers } from '@kmkf-fe-packages/kmkf-utils';
|
|
17
|
+
import get from 'lodash/get';
|
|
18
18
|
import request from "./request";
|
|
19
19
|
// 重复校验
|
|
20
20
|
export var replaceCheck = function replaceCheck(data) {
|
|
21
21
|
return request({
|
|
22
|
-
url:
|
|
23
|
-
method:
|
|
22
|
+
url: '/qy/gdfw/workOrder/repeatCheck',
|
|
23
|
+
method: 'post',
|
|
24
24
|
data: data
|
|
25
25
|
});
|
|
26
26
|
};
|
|
27
27
|
export var queryAddressData = function queryAddressData() {
|
|
28
28
|
return request({
|
|
29
|
-
url:
|
|
30
|
-
method:
|
|
29
|
+
url: '/qy/gdfw/template/queryAreas/noLogin',
|
|
30
|
+
method: 'get',
|
|
31
31
|
data: {}
|
|
32
32
|
}).then(function (resp) {
|
|
33
33
|
var map = {};
|
|
34
34
|
var res = {};
|
|
35
35
|
var list = resp.data;
|
|
36
36
|
for (var i = 0; i < list.length; i++) {
|
|
37
|
-
res[list[i][
|
|
38
|
-
map[list[i][
|
|
37
|
+
res[list[i]['id']] = [list[i]['name'], list[i]['parentId']];
|
|
38
|
+
map[list[i]['name']] = list[i]['id'];
|
|
39
39
|
}
|
|
40
40
|
var instance = AddressData.getInstance();
|
|
41
41
|
instance.addrData = res;
|
|
42
42
|
instance.addrNameMap = map;
|
|
43
|
-
instance.addressOptions = get(toTree(list, 0),
|
|
43
|
+
instance.addressOptions = get(toTree(list, 0), '0.children', []);
|
|
44
44
|
});
|
|
45
45
|
};
|
|
46
46
|
export var queryBsAddressData = function queryBsAddressData() {
|
|
47
47
|
return request({
|
|
48
|
-
url:
|
|
49
|
-
method:
|
|
48
|
+
url: '/qy/gdfw/template/queryBsAreas/noLogin',
|
|
49
|
+
method: 'get',
|
|
50
50
|
data: {}
|
|
51
51
|
}).then(function (resp) {
|
|
52
52
|
var map = {};
|
|
@@ -54,8 +54,8 @@ export var queryBsAddressData = function queryBsAddressData() {
|
|
|
54
54
|
var _resp$data = resp.data,
|
|
55
55
|
list = _resp$data === void 0 ? [] : _resp$data;
|
|
56
56
|
for (var i = 0; i < list.length; i++) {
|
|
57
|
-
res[list[i][
|
|
58
|
-
map[list[i][
|
|
57
|
+
res[list[i]['id']] = [list[i]['name'], list[i]['parentId']];
|
|
58
|
+
map[list[i]['name']] = list[i]['id'];
|
|
59
59
|
}
|
|
60
60
|
var instance = BsAddressData.getInstance();
|
|
61
61
|
instance.addrData = res;
|
|
@@ -65,8 +65,8 @@ export var queryBsAddressData = function queryBsAddressData() {
|
|
|
65
65
|
};
|
|
66
66
|
export var queryWdtAddressData = function queryWdtAddressData() {
|
|
67
67
|
return request({
|
|
68
|
-
url:
|
|
69
|
-
method:
|
|
68
|
+
url: '/qy/gdfw/template/queryWdtAreas/noLogin',
|
|
69
|
+
method: 'get',
|
|
70
70
|
data: {}
|
|
71
71
|
}).then(function (resp) {
|
|
72
72
|
var map = {};
|
|
@@ -74,8 +74,8 @@ export var queryWdtAddressData = function queryWdtAddressData() {
|
|
|
74
74
|
var _resp$data2 = resp.data,
|
|
75
75
|
list = _resp$data2 === void 0 ? [] : _resp$data2;
|
|
76
76
|
for (var i = 0; i < list.length; i++) {
|
|
77
|
-
res[list[i][
|
|
78
|
-
map[list[i][
|
|
77
|
+
res[list[i]['id']] = [list[i]['name'], list[i]['parentId']];
|
|
78
|
+
map[list[i]['name']] = list[i]['id'];
|
|
79
79
|
}
|
|
80
80
|
var instance = WdtAddressData.getInstance();
|
|
81
81
|
instance.addrData = res;
|
|
@@ -85,8 +85,8 @@ export var queryWdtAddressData = function queryWdtAddressData() {
|
|
|
85
85
|
};
|
|
86
86
|
export var queryPlatData = function queryPlatData() {
|
|
87
87
|
return request({
|
|
88
|
-
url:
|
|
89
|
-
method:
|
|
88
|
+
url: '/qy/platform/listPlatform/noLogin',
|
|
89
|
+
method: 'get',
|
|
90
90
|
data: {}
|
|
91
91
|
}).then(function (res) {
|
|
92
92
|
if (res.success) {
|
|
@@ -113,8 +113,8 @@ export var queryPlatData = function queryPlatData() {
|
|
|
113
113
|
};
|
|
114
114
|
export var queryExpressInterceptData = function queryExpressInterceptData() {
|
|
115
115
|
return request({
|
|
116
|
-
url:
|
|
117
|
-
method:
|
|
116
|
+
url: '/qy/logistics/listLogisticsWithInterceptInfo/noLogin',
|
|
117
|
+
method: 'get',
|
|
118
118
|
data: {
|
|
119
119
|
platformType: 118
|
|
120
120
|
}
|
|
@@ -122,10 +122,10 @@ export var queryExpressInterceptData = function queryExpressInterceptData() {
|
|
|
122
122
|
var data = res.data;
|
|
123
123
|
var instance = ExpressInterceptData.getInstance();
|
|
124
124
|
var companyTypeMap = {
|
|
125
|
-
SF:
|
|
126
|
-
ZTO:
|
|
127
|
-
JT:
|
|
128
|
-
DEFAULT:
|
|
125
|
+
SF: '顺丰',
|
|
126
|
+
ZTO: '中通',
|
|
127
|
+
JT: '极兔',
|
|
128
|
+
DEFAULT: ''
|
|
129
129
|
};
|
|
130
130
|
var expressList = data.map(function (item) {
|
|
131
131
|
return _objectSpread(_objectSpread({}, item), {}, {
|
|
@@ -190,26 +190,26 @@ export var queryExpressInterceptData = function queryExpressInterceptData() {
|
|
|
190
190
|
instance.typeOptions = Object.keys(typeObj).map(function (key) {
|
|
191
191
|
return {
|
|
192
192
|
label: key,
|
|
193
|
-
value: _toConsumableArray(typeObj[key]).join(
|
|
193
|
+
value: _toConsumableArray(typeObj[key]).join(',')
|
|
194
194
|
};
|
|
195
195
|
});
|
|
196
196
|
instance.typeConditionOptions = Object.keys(instance.typeNameMap).map(function (key) {
|
|
197
|
-
var type = key.split(
|
|
197
|
+
var type = key.split('|')[0];
|
|
198
198
|
return {
|
|
199
|
-
label: "".concat(companyTypeMap[type] ||
|
|
199
|
+
label: "".concat(companyTypeMap[type] || '').concat(instance.typeNameMap[key]),
|
|
200
200
|
value: key
|
|
201
201
|
};
|
|
202
202
|
});
|
|
203
203
|
instance.statusOptions = Object.keys(statusObj).map(function (key) {
|
|
204
204
|
return {
|
|
205
205
|
label: key,
|
|
206
|
-
value: _toConsumableArray(statusObj[key]).join(
|
|
206
|
+
value: _toConsumableArray(statusObj[key]).join(',')
|
|
207
207
|
};
|
|
208
208
|
});
|
|
209
209
|
var tempList = [];
|
|
210
210
|
var tempObj = {};
|
|
211
211
|
Object.keys(instance.statusNameMap).forEach(function (key) {
|
|
212
|
-
var type = key.split(
|
|
212
|
+
var type = key.split('|')[1];
|
|
213
213
|
if (!tempObj[type]) {
|
|
214
214
|
tempList.push({
|
|
215
215
|
label: instance.statusNameMap[key],
|
|
@@ -226,8 +226,8 @@ export var queryExpressInterceptData = function queryExpressInterceptData() {
|
|
|
226
226
|
};
|
|
227
227
|
export var queryLogisticsAddressData = function queryLogisticsAddressData() {
|
|
228
228
|
return request({
|
|
229
|
-
url:
|
|
230
|
-
method:
|
|
229
|
+
url: '/qy/userConfig/listLogisticsAddress',
|
|
230
|
+
method: 'get',
|
|
231
231
|
data: {}
|
|
232
232
|
}).then(function (res) {
|
|
233
233
|
var data = res.data;
|
|
@@ -239,8 +239,8 @@ export var queryLogisticsAddressData = function queryLogisticsAddressData() {
|
|
|
239
239
|
};
|
|
240
240
|
export var queryAllLogisticsCompany = function queryAllLogisticsCompany() {
|
|
241
241
|
return request({
|
|
242
|
-
url:
|
|
243
|
-
method:
|
|
242
|
+
url: '/qy/logistics/company/getAllLogisticsCompany/noLogin',
|
|
243
|
+
method: 'get',
|
|
244
244
|
data: {}
|
|
245
245
|
}).then(function (res) {
|
|
246
246
|
var data = res.data;
|
|
@@ -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) {
|
|
@@ -286,15 +298,15 @@ export var querySendData = /*#__PURE__*/function () {
|
|
|
286
298
|
// 获取支付宝电子回单
|
|
287
299
|
export var getAlipayBillReceipt = function getAlipayBillReceipt(data) {
|
|
288
300
|
return request({
|
|
289
|
-
url:
|
|
290
|
-
method:
|
|
301
|
+
url: '/qy/payment/paymentOrder/getAlipayBillReceipt',
|
|
302
|
+
method: 'post',
|
|
291
303
|
data: data
|
|
292
304
|
});
|
|
293
305
|
};
|
|
294
306
|
export var queryLabel = function queryLabel() {
|
|
295
307
|
return request({
|
|
296
|
-
url:
|
|
297
|
-
method:
|
|
308
|
+
url: '/qy/diamond/getConfigInfo',
|
|
309
|
+
method: 'get',
|
|
298
310
|
data: {
|
|
299
311
|
key: 'RISK_WARING_LABEL_LIST'
|
|
300
312
|
}
|
|
@@ -309,4 +321,13 @@ export var queryLabel = function queryLabel() {
|
|
|
309
321
|
instance.labelData = [];
|
|
310
322
|
}
|
|
311
323
|
});
|
|
324
|
+
};
|
|
325
|
+
|
|
326
|
+
//查询工单
|
|
327
|
+
export var queryWorkOrderDetail = function queryWorkOrderDetail(data) {
|
|
328
|
+
return request({
|
|
329
|
+
url: '/qy/gdfw/workOrder/queryWorkOrderDetail',
|
|
330
|
+
method: 'post',
|
|
331
|
+
data: data
|
|
332
|
+
});
|
|
312
333
|
};
|
package/dist/esm/type.d.ts
CHANGED
|
@@ -99,7 +99,7 @@ export interface ComponentInterface {
|
|
|
99
99
|
/**
|
|
100
100
|
* @description 显示字段名称
|
|
101
101
|
*/
|
|
102
|
-
showField?: "EXPRESS_COMPANY" | "EXPRESS_WAYBILL_CODE" | "EXPRESS_SNAPSHOT" | "all" | "bs" | "workOrder" | "logisticsCompany" | "logisticsCode";
|
|
102
|
+
showField?: "EXPRESS_COMPANY" | "EXPRESS_WAYBILL_CODE" | "EXPRESS_SNAPSHOT" | "all" | "bs" | "workOrder" | "logisticsCompany" | "logisticsCode" | string;
|
|
103
103
|
/**
|
|
104
104
|
* @description 是否选择SKU
|
|
105
105
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.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.0.
|
|
25
|
-
"@kmkf-fe-packages/kmkf-utils": "2.0.
|
|
24
|
+
"@kmkf-fe-packages/basic-components": "2.0.1",
|
|
25
|
+
"@kmkf-fe-packages/kmkf-utils": "2.0.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": "39da0071fd7c4db66b1c822e50456cbee761d3ff",
|
|
45
45
|
"gitHooks": {
|
|
46
46
|
"pre-commit": "lint-staged"
|
|
47
47
|
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { ComponentInterface, PickOption, ALignType, Record } from "../../type";
|
|
2
|
-
import React from "react";
|
|
3
|
-
declare class CommonHeaderGoods implements ComponentInterface {
|
|
4
|
-
name: string;
|
|
5
|
-
id: string;
|
|
6
|
-
sortField: string;
|
|
7
|
-
type: string;
|
|
8
|
-
componentConfig: ComponentInterface["componentConfig"];
|
|
9
|
-
align: ALignType;
|
|
10
|
-
width: number;
|
|
11
|
-
isCombinationComponent: boolean;
|
|
12
|
-
formField: string;
|
|
13
|
-
canSort: boolean;
|
|
14
|
-
children: ComponentInterface[];
|
|
15
|
-
dataType: ComponentInterface["dataType"];
|
|
16
|
-
itemKey: any;
|
|
17
|
-
constructor(options: PickOption);
|
|
18
|
-
getParentId: () => string;
|
|
19
|
-
renderClient: (record: any) => React.JSX.Element | null;
|
|
20
|
-
renderPc: (value: unknown, record: Record) => React.JSX.Element;
|
|
21
|
-
renderLog: (r: Record) => React.JSX.Element | null;
|
|
22
|
-
getComponentValue: (r: Record) => any;
|
|
23
|
-
renderExport: (value: string, record: Record) => any;
|
|
24
|
-
editRender: () => null;
|
|
25
|
-
filterConfig: () => never[];
|
|
26
|
-
}
|
|
27
|
-
export default CommonHeaderGoods;
|