@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
|
@@ -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" | "queryGyAddressData" | "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,
|
|
@@ -42,9 +42,12 @@ var Global = function Global(_ref) {
|
|
|
42
42
|
queryAllLogisticsCompany: queryAllLogisticsCompany,
|
|
43
43
|
queryLabel: queryLabel,
|
|
44
44
|
queryWdtAddressData: servers.queryWdtAddressData,
|
|
45
|
+
queryGyAddressData: servers.queryGyAddressData,
|
|
45
46
|
queryWdtLogisticsCompany: queryWdtLogisticsCompany,
|
|
46
47
|
queryBsE3LogisticsCompany: queryBsE3LogisticsCompany,
|
|
47
|
-
querySendData: querySendData
|
|
48
|
+
querySendData: querySendData,
|
|
49
|
+
queryJSTLogisticsCompany: queryJSTLogisticsCompany,
|
|
50
|
+
queryWLNLogisticsCompany: queryWLNLogisticsCompany
|
|
48
51
|
};
|
|
49
52
|
mergeMapping = _objectSpread(_objectSpread({}, mapping), repeatRequestList);
|
|
50
53
|
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) {
|
|
@@ -11,175 +11,18 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
11
11
|
import React from "react";
|
|
12
12
|
import GetFormItem from "../../GetFormItem";
|
|
13
13
|
import ItemView from "../../../commonComponents/ItemView";
|
|
14
|
-
import { isNull,
|
|
14
|
+
import { isNull, KM_SYSTEM_ORDER_CONFIG, GY_SYSTEM_ORDER_CONFIG, BS_SYSTEM_ORDER_CONFIG, WLN_SYSTEM_ORDER_CONFIG, WDT_SYSTEM_ORDER_CONFIG, BS_E3_SYSTEM_ORDER_CONFIG } from "@kmkf-fe-packages/kmkf-utils";
|
|
15
15
|
import { BsSystemOrder as SystemOrder } from "@kmkf-fe-packages/basic-components";
|
|
16
16
|
import { BsSystemOrderTable } from "../../Common";
|
|
17
17
|
import { BsHeaderChild } from "../common/index";
|
|
18
18
|
import { SYMBOL, batchInput } from "../../../constant";
|
|
19
19
|
var typeMap = {
|
|
20
|
-
BS_SYSTEM_ORDER:
|
|
21
|
-
key: "bsSystemShowOrder",
|
|
22
|
-
name: "百胜",
|
|
23
|
-
selectId: "bsSystemSelectIds",
|
|
24
|
-
columns: [{
|
|
25
|
-
title: "单据类型",
|
|
26
|
-
dataIndex: "billType",
|
|
27
|
-
width: 150
|
|
28
|
-
}, {
|
|
29
|
-
title: "系统订单号",
|
|
30
|
-
dataIndex: "billNo",
|
|
31
|
-
width: 150
|
|
32
|
-
}, {
|
|
33
|
-
title: "标签",
|
|
34
|
-
dataIndex: "billTag",
|
|
35
|
-
width: 150
|
|
36
|
-
}, {
|
|
37
|
-
title: "主播名称",
|
|
38
|
-
dataIndex: "authorName",
|
|
39
|
-
width: 150
|
|
40
|
-
}, {
|
|
41
|
-
title: "主播ID",
|
|
42
|
-
dataIndex: "authorId",
|
|
43
|
-
width: 150
|
|
44
|
-
}
|
|
45
|
-
// {
|
|
46
|
-
// title: '直播活动',
|
|
47
|
-
// dataIndex: 'liveActivites',
|
|
48
|
-
// width: 150,
|
|
49
|
-
// },
|
|
50
|
-
]
|
|
51
|
-
},
|
|
52
|
-
|
|
20
|
+
BS_SYSTEM_ORDER: BS_SYSTEM_ORDER_CONFIG,
|
|
53
21
|
KM_SYSTEM_ORDER: KM_SYSTEM_ORDER_CONFIG,
|
|
54
|
-
WLN_SYSTEM_ORDER:
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
columns: [{
|
|
59
|
-
title: "订单类型",
|
|
60
|
-
dataIndex: "billType",
|
|
61
|
-
width: 150
|
|
62
|
-
}, {
|
|
63
|
-
title: "系统订单号",
|
|
64
|
-
dataIndex: "billNo",
|
|
65
|
-
width: 150
|
|
66
|
-
}, {
|
|
67
|
-
title: "标记",
|
|
68
|
-
dataIndex: "billTag",
|
|
69
|
-
width: 150
|
|
70
|
-
}]
|
|
71
|
-
},
|
|
72
|
-
WDT_SYSTEM_ORDER: {
|
|
73
|
-
key: "wdtSystemShowOrder",
|
|
74
|
-
name: "旺店通",
|
|
75
|
-
selectId: "wdtSystemSelectIds",
|
|
76
|
-
columns: [{
|
|
77
|
-
title: "订单类型",
|
|
78
|
-
dataIndex: "billType",
|
|
79
|
-
width: 150
|
|
80
|
-
}, {
|
|
81
|
-
title: "系统订单号",
|
|
82
|
-
dataIndex: "billNo",
|
|
83
|
-
width: 150
|
|
84
|
-
}, {
|
|
85
|
-
title: "订单标签",
|
|
86
|
-
dataIndex: "billTag",
|
|
87
|
-
width: 150
|
|
88
|
-
}]
|
|
89
|
-
},
|
|
90
|
-
BS_E3_SYSTEM_ORDER: {
|
|
91
|
-
key: "bsE3SystemShowOrder",
|
|
92
|
-
name: "百胜",
|
|
93
|
-
selectId: "bsE3SystemSelectIds",
|
|
94
|
-
columns: [{
|
|
95
|
-
title: "系统订单号",
|
|
96
|
-
dataIndex: "orderSn",
|
|
97
|
-
width: 150,
|
|
98
|
-
ellipsis: true
|
|
99
|
-
}, {
|
|
100
|
-
title: "订单状态",
|
|
101
|
-
dataIndex: "orderStatus",
|
|
102
|
-
width: 100,
|
|
103
|
-
ellipsis: true,
|
|
104
|
-
render: function render(val) {
|
|
105
|
-
return /*#__PURE__*/React.createElement("span", null, BS_E3_ORDER_STATUS_MAP[val] || val);
|
|
106
|
-
},
|
|
107
|
-
renderExport: function renderExport(val) {
|
|
108
|
-
return BS_E3_ORDER_STATUS_MAP[val] || val;
|
|
109
|
-
}
|
|
110
|
-
}, {
|
|
111
|
-
title: "是否被拆分",
|
|
112
|
-
dataIndex: "isSplit",
|
|
113
|
-
width: 100,
|
|
114
|
-
ellipsis: true,
|
|
115
|
-
render: function render(val) {
|
|
116
|
-
return /*#__PURE__*/React.createElement("span", null, BS_E3_BOOLEAN_STATUS_MAP[val] || val);
|
|
117
|
-
},
|
|
118
|
-
renderExport: function renderExport(val) {
|
|
119
|
-
return BS_E3_BOOLEAN_STATUS_MAP[val] || val;
|
|
120
|
-
}
|
|
121
|
-
}, {
|
|
122
|
-
title: "是否拆分子单",
|
|
123
|
-
dataIndex: "isSplitNew",
|
|
124
|
-
width: 100,
|
|
125
|
-
ellipsis: true,
|
|
126
|
-
render: function render(val) {
|
|
127
|
-
return /*#__PURE__*/React.createElement("span", null, BS_E3_BOOLEAN_STATUS_MAP[val] || val);
|
|
128
|
-
},
|
|
129
|
-
renderExport: function renderExport(val) {
|
|
130
|
-
return BS_E3_BOOLEAN_STATUS_MAP[val] || val;
|
|
131
|
-
}
|
|
132
|
-
}, {
|
|
133
|
-
title: "是否被合并",
|
|
134
|
-
dataIndex: "isCombine",
|
|
135
|
-
width: 100,
|
|
136
|
-
ellipsis: true,
|
|
137
|
-
render: function render(val) {
|
|
138
|
-
return /*#__PURE__*/React.createElement("span", null, BS_E3_BOOLEAN_STATUS_MAP[val] || val);
|
|
139
|
-
},
|
|
140
|
-
renderExport: function renderExport(val) {
|
|
141
|
-
return BS_E3_BOOLEAN_STATUS_MAP[val] || val;
|
|
142
|
-
}
|
|
143
|
-
}, {
|
|
144
|
-
title: "是否合并新单",
|
|
145
|
-
dataIndex: "isCombineNew",
|
|
146
|
-
width: 100,
|
|
147
|
-
ellipsis: true,
|
|
148
|
-
render: function render(val) {
|
|
149
|
-
return /*#__PURE__*/React.createElement("span", null, BS_E3_BOOLEAN_STATUS_MAP[val] || val);
|
|
150
|
-
},
|
|
151
|
-
renderExport: function renderExport(val) {
|
|
152
|
-
return BS_E3_BOOLEAN_STATUS_MAP[val] || val;
|
|
153
|
-
}
|
|
154
|
-
}, {
|
|
155
|
-
title: "是否复制单",
|
|
156
|
-
dataIndex: "isCopy",
|
|
157
|
-
width: 100,
|
|
158
|
-
ellipsis: true,
|
|
159
|
-
render: function render(val) {
|
|
160
|
-
return /*#__PURE__*/React.createElement("span", null, BS_E3_BOOLEAN_STATUS_MAP[val] || val);
|
|
161
|
-
},
|
|
162
|
-
renderExport: function renderExport(val) {
|
|
163
|
-
return BS_E3_BOOLEAN_STATUS_MAP[val] || val;
|
|
164
|
-
}
|
|
165
|
-
}, {
|
|
166
|
-
title: "是否换货单",
|
|
167
|
-
dataIndex: "isExchangeOrder",
|
|
168
|
-
width: 100,
|
|
169
|
-
ellipsis: true,
|
|
170
|
-
render: function render(val) {
|
|
171
|
-
return /*#__PURE__*/React.createElement("span", null, BS_E3_BOOLEAN_STATUS_MAP[val] || val);
|
|
172
|
-
},
|
|
173
|
-
renderExport: function renderExport(val) {
|
|
174
|
-
return BS_E3_BOOLEAN_STATUS_MAP[val] || val;
|
|
175
|
-
}
|
|
176
|
-
}, {
|
|
177
|
-
title: "订单备注",
|
|
178
|
-
dataIndex: "orderMsg",
|
|
179
|
-
width: 150,
|
|
180
|
-
ellipsis: true
|
|
181
|
-
}]
|
|
182
|
-
}
|
|
22
|
+
WLN_SYSTEM_ORDER: WLN_SYSTEM_ORDER_CONFIG,
|
|
23
|
+
WDT_SYSTEM_ORDER: WDT_SYSTEM_ORDER_CONFIG,
|
|
24
|
+
BS_E3_SYSTEM_ORDER: BS_E3_SYSTEM_ORDER_CONFIG,
|
|
25
|
+
GY_SYSTEM_ORDER: GY_SYSTEM_ORDER_CONFIG
|
|
183
26
|
};
|
|
184
27
|
var BsSystemOrder = /*#__PURE__*/_createClass(function BsSystemOrder(options) {
|
|
185
28
|
var _this = this,
|
|
@@ -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) {
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { ComponentInterface, PickOption, ALignType, Record } from
|
|
2
|
-
import React from
|
|
1
|
+
import { ComponentInterface, PickOption, ALignType, Record } from "../../../type";
|
|
2
|
+
import React from "react";
|
|
3
3
|
declare class BsMemo implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
6
6
|
sortField: string;
|
|
7
7
|
type: string;
|
|
8
|
-
componentConfig: ComponentInterface[
|
|
8
|
+
componentConfig: ComponentInterface["componentConfig"];
|
|
9
9
|
align: ALignType;
|
|
10
10
|
width: number;
|
|
11
11
|
isCombinationComponent: boolean;
|
|
12
12
|
formField: string;
|
|
13
13
|
canSort: boolean;
|
|
14
14
|
children: ComponentInterface[];
|
|
15
|
-
dataType: ComponentInterface[
|
|
15
|
+
dataType: ComponentInterface["dataType"];
|
|
16
16
|
constructor(options: PickOption);
|
|
17
17
|
getParentId: () => string;
|
|
18
18
|
renderClient: (r: any) => React.JSX.Element | null;
|
|
@@ -11,16 +11,17 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
11
11
|
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; }
|
|
12
12
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
13
13
|
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); }
|
|
14
|
-
import React from
|
|
14
|
+
import React from "react";
|
|
15
15
|
import ItemView from "../../../commonComponents/ItemView";
|
|
16
|
-
import { isNull } from
|
|
16
|
+
import { isNull } from "@kmkf-fe-packages/kmkf-utils";
|
|
17
17
|
var componentType = {
|
|
18
|
-
BS_EXCHANGE_GOODS:
|
|
19
|
-
BS_REISSUE_GOODS:
|
|
20
|
-
BS_RETURN_GOODS:
|
|
21
|
-
WDT_REISSUE_GOODS:
|
|
22
|
-
WDT_RETURN_GOODS:
|
|
23
|
-
BS_E3_REISSUE_GOODS:
|
|
18
|
+
BS_EXCHANGE_GOODS: "bsExchangeType",
|
|
19
|
+
BS_REISSUE_GOODS: "bsReissueType",
|
|
20
|
+
BS_RETURN_GOODS: "bsReturnType",
|
|
21
|
+
WDT_REISSUE_GOODS: "wdtReissueType",
|
|
22
|
+
WDT_RETURN_GOODS: "wdtReturnType",
|
|
23
|
+
BS_E3_REISSUE_GOODS: "bsE3ReissueType",
|
|
24
|
+
GY_REISSUE_GOODS: "gyReissueType"
|
|
24
25
|
};
|
|
25
26
|
var BsMemo = /*#__PURE__*/_createClass(function BsMemo(options) {
|
|
26
27
|
var _this = this;
|
|
@@ -38,7 +39,7 @@ var BsMemo = /*#__PURE__*/_createClass(function BsMemo(options) {
|
|
|
38
39
|
_defineProperty(this, "children", void 0);
|
|
39
40
|
_defineProperty(this, "dataType", void 0);
|
|
40
41
|
_defineProperty(this, "getParentId", function () {
|
|
41
|
-
var _this$id$split = _this.id.split(
|
|
42
|
+
var _this$id$split = _this.id.split("_"),
|
|
42
43
|
_this$id$split2 = _slicedToArray(_this$id$split, 2),
|
|
43
44
|
key = _this$id$split2[0],
|
|
44
45
|
name = _this$id$split2[1];
|
|
@@ -46,14 +47,14 @@ var BsMemo = /*#__PURE__*/_createClass(function BsMemo(options) {
|
|
|
46
47
|
});
|
|
47
48
|
_defineProperty(this, "renderClient", function (r) {
|
|
48
49
|
var _r$key$componentType$, _r$key, _r$key$componentType$2, _r$key2, _r$key2$componentType, _find, _this$componentConfig, _find2;
|
|
49
|
-
var _this$getParentId$spl = _this.getParentId().split(
|
|
50
|
+
var _this$getParentId$spl = _this.getParentId().split("_"),
|
|
50
51
|
_this$getParentId$spl2 = _slicedToArray(_this$getParentId$spl, 1),
|
|
51
52
|
key = _this$getParentId$spl2[0];
|
|
52
53
|
if (!(r !== null && r !== void 0 && (_r$key$componentType$ = r[key][componentType[_this.type]]) !== null && _r$key$componentType$ !== void 0 && _r$key$componentType$.length)) {
|
|
53
54
|
return null;
|
|
54
55
|
}
|
|
55
|
-
var type = r !== null && r !== void 0 && r[key] ? r === null || r === void 0 ? void 0 : (_r$key = r[key]) === null || _r$key === void 0 ? void 0 : (_r$key$componentType$2 = _r$key[componentType[_this.type]]) === null || _r$key$componentType$2 === void 0 ? void 0 : _r$key$componentType$2[0] :
|
|
56
|
-
var memo = r !== null && r !== void 0 && r[key] ? r === null || r === void 0 ? void 0 : (_r$key2 = r[key]) === null || _r$key2 === void 0 ? void 0 : (_r$key2$componentType = _r$key2[componentType[_this.type]]) === null || _r$key2$componentType === void 0 ? void 0 : _r$key2$componentType[1] :
|
|
56
|
+
var type = r !== null && r !== void 0 && r[key] ? r === null || r === void 0 ? void 0 : (_r$key = r[key]) === null || _r$key === void 0 ? void 0 : (_r$key$componentType$2 = _r$key[componentType[_this.type]]) === null || _r$key$componentType$2 === void 0 ? void 0 : _r$key$componentType$2[0] : "";
|
|
57
|
+
var memo = r !== null && r !== void 0 && r[key] ? r === null || r === void 0 ? void 0 : (_r$key2 = r[key]) === null || _r$key2 === void 0 ? void 0 : (_r$key2$componentType = _r$key2[componentType[_this.type]]) === null || _r$key2$componentType === void 0 ? void 0 : _r$key2$componentType[1] : "";
|
|
57
58
|
var children = (_find = (((_this$componentConfig = _this.componentConfig) === null || _this$componentConfig === void 0 ? void 0 : _this$componentConfig.reasonList) || []).find(function (item) {
|
|
58
59
|
return item.value === type;
|
|
59
60
|
})) === null || _find === void 0 ? void 0 : _find.children;
|
|
@@ -68,7 +69,7 @@ var BsMemo = /*#__PURE__*/_createClass(function BsMemo(options) {
|
|
|
68
69
|
});
|
|
69
70
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
70
71
|
var _this$getComponentVal;
|
|
71
|
-
return /*#__PURE__*/React.createElement("span", null, (_this$getComponentVal = _this.getComponentValue(record)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal :
|
|
72
|
+
return /*#__PURE__*/React.createElement("span", null, (_this$getComponentVal = _this.getComponentValue(record)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal : "--");
|
|
72
73
|
});
|
|
73
74
|
_defineProperty(this, "renderLog", function (r) {
|
|
74
75
|
var id = _this.getParentId();
|
|
@@ -78,8 +79,8 @@ var BsMemo = /*#__PURE__*/_createClass(function BsMemo(options) {
|
|
|
78
79
|
_defineProperty(this, "getComponentValue", function (r) {
|
|
79
80
|
var _r$id, _r$id2, _find3, _this$componentConfig2, _find4;
|
|
80
81
|
var id = _this.getParentId();
|
|
81
|
-
var type = r !== null && r !== void 0 && r[id] ? r === null || r === void 0 ? void 0 : (_r$id = r[id]) === null || _r$id === void 0 ? void 0 : _r$id[0] :
|
|
82
|
-
var memo = r !== null && r !== void 0 && r[id] ? r === null || r === void 0 ? void 0 : (_r$id2 = r[id]) === null || _r$id2 === void 0 ? void 0 : _r$id2[1] :
|
|
82
|
+
var type = r !== null && r !== void 0 && r[id] ? r === null || r === void 0 ? void 0 : (_r$id = r[id]) === null || _r$id === void 0 ? void 0 : _r$id[0] : "";
|
|
83
|
+
var memo = r !== null && r !== void 0 && r[id] ? r === null || r === void 0 ? void 0 : (_r$id2 = r[id]) === null || _r$id2 === void 0 ? void 0 : _r$id2[1] : "";
|
|
83
84
|
var children = (_find3 = (((_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.reasonList) || []).find(function (item) {
|
|
84
85
|
return item.value === type;
|
|
85
86
|
})) === null || _find3 === void 0 ? void 0 : _find3.children;
|
|
@@ -90,7 +91,7 @@ var BsMemo = /*#__PURE__*/_createClass(function BsMemo(options) {
|
|
|
90
91
|
});
|
|
91
92
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
92
93
|
var _this$getComponentVal2;
|
|
93
|
-
return (_this$getComponentVal2 = _this.getComponentValue(record)) !== null && _this$getComponentVal2 !== void 0 ? _this$getComponentVal2 :
|
|
94
|
+
return (_this$getComponentVal2 = _this.getComponentValue(record)) !== null && _this$getComponentVal2 !== void 0 ? _this$getComponentVal2 : "--";
|
|
94
95
|
});
|
|
95
96
|
_defineProperty(this, "editRender", function () {
|
|
96
97
|
return null;
|
|
@@ -104,11 +105,11 @@ var BsMemo = /*#__PURE__*/_createClass(function BsMemo(options) {
|
|
|
104
105
|
this.formField = options.id;
|
|
105
106
|
this.type = options.type;
|
|
106
107
|
this.componentConfig = options.componentConfig;
|
|
107
|
-
this.align =
|
|
108
|
+
this.align = "left";
|
|
108
109
|
this.width = 140;
|
|
109
110
|
this.isCombinationComponent = false;
|
|
110
111
|
this.canSort = false;
|
|
111
|
-
this.dataType =
|
|
112
|
+
this.dataType = "string";
|
|
112
113
|
this.children = [];
|
|
113
114
|
});
|
|
114
115
|
export default BsMemo;
|
|
@@ -1,18 +1,18 @@
|
|
|
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 BsType implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
6
6
|
sortField: string;
|
|
7
7
|
type: string;
|
|
8
|
-
componentConfig: ComponentInterface[
|
|
8
|
+
componentConfig: ComponentInterface["componentConfig"];
|
|
9
9
|
align: ALignType;
|
|
10
10
|
width: number;
|
|
11
11
|
isCombinationComponent: boolean;
|
|
12
12
|
formField: string;
|
|
13
13
|
canSort: boolean;
|
|
14
14
|
children: ComponentInterface[];
|
|
15
|
-
dataType: ComponentInterface[
|
|
15
|
+
dataType: ComponentInterface["dataType"];
|
|
16
16
|
constructor(options: PickOption);
|
|
17
17
|
getParentId: () => string;
|
|
18
18
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
@@ -11,17 +11,18 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
11
11
|
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; }
|
|
12
12
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
13
13
|
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); }
|
|
14
|
-
import React from
|
|
14
|
+
import React from "react";
|
|
15
15
|
import ItemView from "../../../commonComponents/ItemView";
|
|
16
|
-
import { isNull, filterFn as _filterFn } from
|
|
16
|
+
import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
|
|
17
17
|
import { SYMBOL } from "../../../constant";
|
|
18
18
|
var componentType = {
|
|
19
|
-
BS_EXCHANGE_GOODS:
|
|
20
|
-
BS_REISSUE_GOODS:
|
|
21
|
-
BS_RETURN_GOODS:
|
|
22
|
-
WDT_REISSUE_GOODS:
|
|
23
|
-
WDT_RETURN_GOODS:
|
|
24
|
-
BS_E3_REISSUE_GOODS:
|
|
19
|
+
BS_EXCHANGE_GOODS: "bsExchangeType",
|
|
20
|
+
BS_REISSUE_GOODS: "bsReissueType",
|
|
21
|
+
BS_RETURN_GOODS: "bsReturnType",
|
|
22
|
+
WDT_REISSUE_GOODS: "wdtReissueType",
|
|
23
|
+
WDT_RETURN_GOODS: "wdtReturnType",
|
|
24
|
+
BS_E3_REISSUE_GOODS: "bsE3ReissueType",
|
|
25
|
+
GY_REISSUE_GOODS: "gyReissueType"
|
|
25
26
|
};
|
|
26
27
|
var BsType = /*#__PURE__*/_createClass(function BsType(options) {
|
|
27
28
|
var _this = this;
|
|
@@ -39,7 +40,7 @@ var BsType = /*#__PURE__*/_createClass(function BsType(options) {
|
|
|
39
40
|
_defineProperty(this, "children", void 0);
|
|
40
41
|
_defineProperty(this, "dataType", void 0);
|
|
41
42
|
_defineProperty(this, "getParentId", function () {
|
|
42
|
-
var _this$id$split = _this.id.split(
|
|
43
|
+
var _this$id$split = _this.id.split("_"),
|
|
43
44
|
_this$id$split2 = _slicedToArray(_this$id$split, 2),
|
|
44
45
|
key = _this$id$split2[0],
|
|
45
46
|
name = _this$id$split2[1];
|
|
@@ -47,7 +48,7 @@ var BsType = /*#__PURE__*/_createClass(function BsType(options) {
|
|
|
47
48
|
});
|
|
48
49
|
_defineProperty(this, "renderClient", function (record) {
|
|
49
50
|
var _record$key$component, _find, _this$componentConfig;
|
|
50
|
-
var _this$getParentId$spl = _this.getParentId().split(
|
|
51
|
+
var _this$getParentId$spl = _this.getParentId().split("_"),
|
|
51
52
|
_this$getParentId$spl2 = _slicedToArray(_this$getParentId$spl, 1),
|
|
52
53
|
key = _this$getParentId$spl2[0];
|
|
53
54
|
if (!(record !== null && record !== void 0 && (_record$key$component = record[key][componentType[_this.type]]) !== null && _record$key$component !== void 0 && _record$key$component.length)) {
|
|
@@ -65,7 +66,7 @@ var BsType = /*#__PURE__*/_createClass(function BsType(options) {
|
|
|
65
66
|
});
|
|
66
67
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
67
68
|
var _this$getComponentVal;
|
|
68
|
-
return /*#__PURE__*/React.createElement("span", null, (_this$getComponentVal = _this.getComponentValue(record)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal :
|
|
69
|
+
return /*#__PURE__*/React.createElement("span", null, (_this$getComponentVal = _this.getComponentValue(record)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal : "--");
|
|
69
70
|
});
|
|
70
71
|
_defineProperty(this, "renderLog", function (r) {
|
|
71
72
|
var id = _this.getParentId();
|
|
@@ -75,7 +76,7 @@ var BsType = /*#__PURE__*/_createClass(function BsType(options) {
|
|
|
75
76
|
_defineProperty(this, "getComponentValue", function (r) {
|
|
76
77
|
var _r$id, _find2, _this$componentConfig2;
|
|
77
78
|
var id = _this.getParentId();
|
|
78
|
-
var type = r !== null && r !== void 0 && r[id] ? r === null || r === void 0 ? void 0 : (_r$id = r[id]) === null || _r$id === void 0 ? void 0 : _r$id[0] :
|
|
79
|
+
var type = r !== null && r !== void 0 && r[id] ? r === null || r === void 0 ? void 0 : (_r$id = r[id]) === null || _r$id === void 0 ? void 0 : _r$id[0] : "";
|
|
79
80
|
var text = (_find2 = (((_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.reasonList) || []).find(function (item) {
|
|
80
81
|
return item.value === type;
|
|
81
82
|
})) === null || _find2 === void 0 ? void 0 : _find2.label;
|
|
@@ -83,7 +84,7 @@ var BsType = /*#__PURE__*/_createClass(function BsType(options) {
|
|
|
83
84
|
});
|
|
84
85
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
85
86
|
var _this$getComponentVal2;
|
|
86
|
-
return (_this$getComponentVal2 = _this.getComponentValue(record)) !== null && _this$getComponentVal2 !== void 0 ? _this$getComponentVal2 :
|
|
87
|
+
return (_this$getComponentVal2 = _this.getComponentValue(record)) !== null && _this$getComponentVal2 !== void 0 ? _this$getComponentVal2 : "--";
|
|
87
88
|
});
|
|
88
89
|
_defineProperty(this, "editRender", function () {
|
|
89
90
|
return null;
|
|
@@ -97,7 +98,7 @@ var BsType = /*#__PURE__*/_createClass(function BsType(options) {
|
|
|
97
98
|
type: item.type,
|
|
98
99
|
id: _this.id,
|
|
99
100
|
name: "".concat(item.name, "-\u7C7B\u578B"),
|
|
100
|
-
filterComponentType:
|
|
101
|
+
filterComponentType: "Cascader",
|
|
101
102
|
props: {
|
|
102
103
|
options: (item === null || item === void 0 ? void 0 : (_item$config = item.config) === null || _item$config === void 0 ? void 0 : _item$config.reasonList) || []
|
|
103
104
|
},
|
|
@@ -119,11 +120,11 @@ var BsType = /*#__PURE__*/_createClass(function BsType(options) {
|
|
|
119
120
|
this.formField = options.id;
|
|
120
121
|
this.type = options.type;
|
|
121
122
|
this.componentConfig = options.componentConfig;
|
|
122
|
-
this.align =
|
|
123
|
+
this.align = "left";
|
|
123
124
|
this.width = 140;
|
|
124
125
|
this.isCombinationComponent = false;
|
|
125
126
|
this.canSort = false;
|
|
126
|
-
this.dataType =
|
|
127
|
+
this.dataType = "string";
|
|
127
128
|
this.children = [];
|
|
128
129
|
});
|
|
129
130
|
export default BsType;
|
|
@@ -16,7 +16,8 @@ import ItemView from "../../../commonComponents/ItemView";
|
|
|
16
16
|
import { isNull } from "@kmkf-fe-packages/kmkf-utils";
|
|
17
17
|
var componentType = {
|
|
18
18
|
WDT_REISSUE_GOODS: "wdtSystemOrderNo",
|
|
19
|
-
BS_E3_REISSUE_GOODS: "bsE3SystemOrderNo"
|
|
19
|
+
BS_E3_REISSUE_GOODS: "bsE3SystemOrderNo",
|
|
20
|
+
GY_REISSUE_GOODS: "gySystemOrderNo"
|
|
20
21
|
};
|
|
21
22
|
var SystemOrderNo = /*#__PURE__*/_createClass(function SystemOrderNo(options) {
|
|
22
23
|
var _this = this;
|
|
@@ -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) {
|