@kmkf-fe-packages/services-components 0.11.0-alpha.4 → 0.11.0-alpha.5
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/components/Common/index.d.ts +1 -1
- package/dist/esm/components/Common/index.js +136 -137
- package/dist/esm/components/CommonMultiStatus/index.d.ts +4 -4
- package/dist/esm/components/CommonMultiStatus/index.js +38 -20
- package/dist/esm/components/CommonSystemOrder/index.js +1 -3
- package/dist/esm/components/StatusSelect/index.d.ts +5 -5
- package/dist/esm/components/StatusSelect/index.js +37 -51
- package/dist/esm/factory.d.ts +3 -3
- package/dist/esm/factory.js +90 -90
- package/package.json +4 -4
|
@@ -8,10 +8,10 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
8
8
|
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; }
|
|
9
9
|
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
10
10
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
11
|
-
import { Form, Button, Modal, Tooltip, Space, Image, Popover, Table, message } from
|
|
12
|
-
import React, { useState, useMemo } from
|
|
13
|
-
import { ExpressData } from
|
|
14
|
-
import { CopyToClipboard } from
|
|
11
|
+
import { Form, Button, Modal, Tooltip, Space, Image, Popover, Table, message } from 'antd';
|
|
12
|
+
import React, { useState, useMemo } from 'react';
|
|
13
|
+
import { ExpressData } from '@kmkf-fe-packages/kmkf-utils';
|
|
14
|
+
import { CopyToClipboard } from 'react-copy-to-clipboard';
|
|
15
15
|
import styles from "./index.module.less";
|
|
16
16
|
import defaultImg from "./img/default-img.png";
|
|
17
17
|
export var getFormItem = function getFormItem(_ref) {
|
|
@@ -31,7 +31,7 @@ export var getFormItem = function getFormItem(_ref) {
|
|
|
31
31
|
return /*#__PURE__*/React.createElement("div", {
|
|
32
32
|
className: "form-item--wrap",
|
|
33
33
|
style: {
|
|
34
|
-
position:
|
|
34
|
+
position: 'relative'
|
|
35
35
|
}
|
|
36
36
|
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
37
37
|
name: name,
|
|
@@ -45,43 +45,43 @@ export var showImage = function showImage(_ref2) {
|
|
|
45
45
|
var item = _ref2.item,
|
|
46
46
|
type = _ref2.type,
|
|
47
47
|
index = _ref2.index;
|
|
48
|
-
var picUrl = item.picUrl ? (item === null || item === void 0 ? void 0 : item.platform) !==
|
|
48
|
+
var picUrl = item.picUrl ? (item === null || item === void 0 ? void 0 : item.platform) !== 'tabao' ? item.picUrl : item.picUrl + '_40x40.jpg' : defaultImg;
|
|
49
49
|
return /*#__PURE__*/React.createElement("div", {
|
|
50
50
|
className: styles.goodImgBox,
|
|
51
51
|
key: index
|
|
52
|
-
}, (item === null || item === void 0 ? void 0 : item.platform) ===
|
|
52
|
+
}, (item === null || item === void 0 ? void 0 : item.platform) === 'taobao' ? /*#__PURE__*/React.createElement("a", {
|
|
53
53
|
target: "_blank",
|
|
54
54
|
href: "https://item.taobao.com/item.htm?id=".concat(item.numIid)
|
|
55
55
|
}, /*#__PURE__*/React.createElement("img", {
|
|
56
56
|
style: {
|
|
57
|
-
width:
|
|
58
|
-
height:
|
|
59
|
-
objectFit:
|
|
57
|
+
width: '40px',
|
|
58
|
+
height: '40px',
|
|
59
|
+
objectFit: 'contain'
|
|
60
60
|
},
|
|
61
61
|
src: picUrl
|
|
62
62
|
})) : /*#__PURE__*/React.createElement("img", {
|
|
63
63
|
style: {
|
|
64
|
-
width:
|
|
65
|
-
height:
|
|
66
|
-
objectFit:
|
|
64
|
+
width: '40px',
|
|
65
|
+
height: '40px',
|
|
66
|
+
objectFit: 'contain'
|
|
67
67
|
},
|
|
68
68
|
src: picUrl
|
|
69
69
|
}), /*#__PURE__*/React.createElement("div", {
|
|
70
70
|
className: styles.options
|
|
71
|
-
}, type ===
|
|
72
|
-
title:
|
|
71
|
+
}, type === 'itemId' && /*#__PURE__*/React.createElement(TextTool, {
|
|
72
|
+
title: '商品id',
|
|
73
73
|
text: item.numIid
|
|
74
|
-
}), type ===
|
|
75
|
-
title:
|
|
74
|
+
}), type === 'itemCode' && /*#__PURE__*/React.createElement(TextTool, {
|
|
75
|
+
title: '商品编码',
|
|
76
76
|
text: item.outerId
|
|
77
|
-
}), (type ===
|
|
78
|
-
title:
|
|
77
|
+
}), (type === 'itemThird' || type === 'jstItemThird') && (item.itemId || item.supplierItemOuterId) && /*#__PURE__*/React.createElement(TextTool, {
|
|
78
|
+
title: '供应商编码',
|
|
79
79
|
text: item.itemId || item.supplierItemOuterId
|
|
80
|
-
}), (type ===
|
|
81
|
-
title:
|
|
80
|
+
}), (type === 'itemThird' || type === 'jstItemThird') && item.supplierName && /*#__PURE__*/React.createElement(TextTool, {
|
|
81
|
+
title: '供应商名称',
|
|
82
82
|
text: item.supplierName
|
|
83
83
|
}), item.propertiesName && /*#__PURE__*/React.createElement(TextTool, {
|
|
84
|
-
title:
|
|
84
|
+
title: '规格',
|
|
85
85
|
text: item.propertiesName
|
|
86
86
|
})));
|
|
87
87
|
};
|
|
@@ -94,9 +94,9 @@ var TextTool = function TextTool(_ref3) {
|
|
|
94
94
|
title: text
|
|
95
95
|
}, /*#__PURE__*/React.createElement("div", {
|
|
96
96
|
style: {
|
|
97
|
-
overflow:
|
|
98
|
-
whiteSpace:
|
|
99
|
-
textOverflow:
|
|
97
|
+
overflow: 'hidden',
|
|
98
|
+
whiteSpace: 'nowrap',
|
|
99
|
+
textOverflow: 'ellipsis'
|
|
100
100
|
}
|
|
101
101
|
}, title, ":", text));
|
|
102
102
|
};
|
|
@@ -124,47 +124,47 @@ export var ShowTotalImage = function ShowTotalImage(_ref4) {
|
|
|
124
124
|
title: "\u6240\u6709\u9009\u62E9\u5B9D\u8D1D"
|
|
125
125
|
}, /*#__PURE__*/React.createElement("div", {
|
|
126
126
|
style: {
|
|
127
|
-
display:
|
|
128
|
-
flexWrap:
|
|
127
|
+
display: 'flex',
|
|
128
|
+
flexWrap: 'wrap'
|
|
129
129
|
}
|
|
130
130
|
}, allImage.map(function (i, index) {
|
|
131
131
|
return /*#__PURE__*/React.createElement("div", {
|
|
132
132
|
style: {
|
|
133
|
-
width:
|
|
133
|
+
width: '50%'
|
|
134
134
|
},
|
|
135
135
|
key: index
|
|
136
136
|
}, /*#__PURE__*/React.createElement("a", {
|
|
137
137
|
href: i.link,
|
|
138
138
|
target: "__blank",
|
|
139
139
|
style: {
|
|
140
|
-
marginRight:
|
|
141
|
-
marginTop:
|
|
142
|
-
padding:
|
|
143
|
-
border:
|
|
144
|
-
display:
|
|
140
|
+
marginRight: '12px',
|
|
141
|
+
marginTop: '8px',
|
|
142
|
+
padding: '2px',
|
|
143
|
+
border: '1px dashed #ccc',
|
|
144
|
+
display: 'inline-block'
|
|
145
145
|
}
|
|
146
146
|
}, /*#__PURE__*/React.createElement("img", {
|
|
147
147
|
alt: "",
|
|
148
148
|
src: i.picUrl || defaultImg,
|
|
149
149
|
style: {
|
|
150
|
-
width:
|
|
151
|
-
height:
|
|
152
|
-
objectFit:
|
|
150
|
+
width: '72px',
|
|
151
|
+
height: '72px',
|
|
152
|
+
objectFit: 'contain'
|
|
153
153
|
}
|
|
154
|
-
})), /*#__PURE__*/React.createElement("div", null, type ===
|
|
155
|
-
title:
|
|
154
|
+
})), /*#__PURE__*/React.createElement("div", null, type === 'itemId' && /*#__PURE__*/React.createElement(TextTool, {
|
|
155
|
+
title: '商品id',
|
|
156
156
|
text: i.numIid
|
|
157
|
-
}), type ===
|
|
158
|
-
title:
|
|
157
|
+
}), type === 'itemCode' && /*#__PURE__*/React.createElement(TextTool, {
|
|
158
|
+
title: '商品编码',
|
|
159
159
|
text: i.outerId
|
|
160
|
-
}), (type ===
|
|
161
|
-
title:
|
|
160
|
+
}), (type === 'itemThird' || type === 'jstItemThird') && (i.itemId || i.supplierItemOuterId) && /*#__PURE__*/React.createElement(TextTool, {
|
|
161
|
+
title: '供应商编码',
|
|
162
162
|
text: i.itemId || i.supplierItemOuterId
|
|
163
|
-
}), (type ===
|
|
164
|
-
title:
|
|
163
|
+
}), (type === 'itemThird' || type === 'jstItemThird') && i.supplierName && /*#__PURE__*/React.createElement(TextTool, {
|
|
164
|
+
title: '供应商名称',
|
|
165
165
|
text: i.supplierName
|
|
166
166
|
}), i.propertiesName && /*#__PURE__*/React.createElement(TextTool, {
|
|
167
|
-
title:
|
|
167
|
+
title: '规格',
|
|
168
168
|
text: i.propertiesName
|
|
169
169
|
})));
|
|
170
170
|
}))));
|
|
@@ -174,12 +174,12 @@ export var GoodImage = function GoodImage(_ref5) {
|
|
|
174
174
|
var _list$slice;
|
|
175
175
|
var list = _ref5.list,
|
|
176
176
|
_ref5$type = _ref5.type,
|
|
177
|
-
type = _ref5$type === void 0 ?
|
|
177
|
+
type = _ref5$type === void 0 ? '' : _ref5$type;
|
|
178
178
|
var total = (list === null || list === void 0 ? void 0 : list.length) || 0;
|
|
179
179
|
var initShowTotal = 3;
|
|
180
180
|
return (list === null || list === void 0 ? void 0 : list.length) > 0 ? /*#__PURE__*/React.createElement("div", {
|
|
181
181
|
style: {
|
|
182
|
-
display: type ===
|
|
182
|
+
display: type === 'itemSelect' ? 'flex' : 'block'
|
|
183
183
|
}
|
|
184
184
|
}, list === null || list === void 0 ? void 0 : (_list$slice = list.slice(0, initShowTotal)) === null || _list$slice === void 0 ? void 0 : _list$slice.map(function (item, index) {
|
|
185
185
|
return showImage({
|
|
@@ -196,7 +196,7 @@ export var GoodImage = function GoodImage(_ref5) {
|
|
|
196
196
|
var content = function content(item, index) {
|
|
197
197
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
198
198
|
style: {
|
|
199
|
-
textAlign:
|
|
199
|
+
textAlign: 'center'
|
|
200
200
|
}
|
|
201
201
|
}, "\u5305\u88F9".concat(index + 1, "\u5546\u54C1\u4FE1\u606F")), ((item === null || item === void 0 ? void 0 : item.items) || []).map(function (t, index) {
|
|
202
202
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -223,17 +223,17 @@ export var JstGoodImage = function JstGoodImage(_ref6) {
|
|
|
223
223
|
}, /*#__PURE__*/React.createElement("span", {
|
|
224
224
|
key: index,
|
|
225
225
|
style: {
|
|
226
|
-
color:
|
|
227
|
-
cursor:
|
|
226
|
+
color: '#1890ff',
|
|
227
|
+
cursor: 'pointer'
|
|
228
228
|
}
|
|
229
|
-
}, "\u5305\u88F9".concat(index + 1), ":")), type === 1 ? /*#__PURE__*/React.createElement("span", null, company && item.logisticsCode ? [company, item.logisticsCode].join(
|
|
229
|
+
}, "\u5305\u88F9".concat(index + 1), ":")), type === 1 ? /*#__PURE__*/React.createElement("span", null, company && item.logisticsCode ? [company, item.logisticsCode].join('/') : company ? company : item.logisticsCode) : null, type === 2 ? /*#__PURE__*/React.createElement("span", null, item.supplyName && item.supplyId ? [item.supplyId, item.supplyName].join('/') : item.supplyId ? item.supplyId : item.supplyName) : null, type === 3 ? /*#__PURE__*/React.createElement("span", null, item.sendName && item.sendId ? [item.sendId, item.sendName].join('/') : item.sendId ? item.sendId : item.sendName) : null, type === 4 ? /*#__PURE__*/React.createElement("span", null, (item === null || item === void 0 ? void 0 : item.deliveryNo) || '') : null));
|
|
230
230
|
}) : null;
|
|
231
231
|
};
|
|
232
232
|
export var BsExpressRender = function BsExpressRender(_ref7) {
|
|
233
233
|
var _ref7$list = _ref7.list,
|
|
234
234
|
list = _ref7$list === void 0 ? [] : _ref7$list,
|
|
235
235
|
_ref7$showField = _ref7.showField,
|
|
236
|
-
showField = _ref7$showField === void 0 ?
|
|
236
|
+
showField = _ref7$showField === void 0 ? '' : _ref7$showField;
|
|
237
237
|
return list !== null && list !== void 0 && list.length ? (list || []).map(function (item, index) {
|
|
238
238
|
var logisticsCompany = item.logisticsCompany;
|
|
239
239
|
var company = ExpressData.getInstance().getExpressNameByCode(logisticsCompany);
|
|
@@ -245,10 +245,10 @@ export var BsExpressRender = function BsExpressRender(_ref7) {
|
|
|
245
245
|
}, /*#__PURE__*/React.createElement("span", {
|
|
246
246
|
key: index,
|
|
247
247
|
style: {
|
|
248
|
-
color:
|
|
249
|
-
cursor:
|
|
248
|
+
color: '#1890ff',
|
|
249
|
+
cursor: 'pointer'
|
|
250
250
|
}
|
|
251
|
-
}, "\u5305\u88F9", ":")), showField ===
|
|
251
|
+
}, "\u5305\u88F9", ":")), showField === 'company' ? /*#__PURE__*/React.createElement("span", null, company ? company : null) : null, showField === 'code' ? /*#__PURE__*/React.createElement("span", null, item.logisticsCode ? item.logisticsCode : null) : null));
|
|
252
252
|
}) : null;
|
|
253
253
|
};
|
|
254
254
|
export var CommonOrderContent = function CommonOrderContent(_ref8) {
|
|
@@ -258,11 +258,10 @@ export var CommonOrderContent = function CommonOrderContent(_ref8) {
|
|
|
258
258
|
failValue = _ref8.failValue,
|
|
259
259
|
_ref8$options = _ref8.options,
|
|
260
260
|
options = _ref8$options === void 0 ? [] : _ref8$options;
|
|
261
|
-
console.log("CommonOrderContent", list);
|
|
262
261
|
var orderContent = function orderContent(item, index) {
|
|
263
262
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
264
263
|
style: {
|
|
265
|
-
textAlign:
|
|
264
|
+
textAlign: 'center'
|
|
266
265
|
}
|
|
267
266
|
}, "\u7CFB\u7EDF\u8BA2\u5355\u53F7", index + 1, "\uFF1A", item.systemOrderId));
|
|
268
267
|
};
|
|
@@ -270,7 +269,7 @@ export var CommonOrderContent = function CommonOrderContent(_ref8) {
|
|
|
270
269
|
var _options$find;
|
|
271
270
|
var color = ((_options$find = options.find(function (item) {
|
|
272
271
|
return item[valueKey] === failValue;
|
|
273
|
-
})) === null || _options$find === void 0 ? void 0 : _options$find.color) ||
|
|
272
|
+
})) === null || _options$find === void 0 ? void 0 : _options$find.color) || '#000';
|
|
274
273
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Popover, {
|
|
275
274
|
content: orderContent(item, index),
|
|
276
275
|
overlayStyle: {
|
|
@@ -279,14 +278,14 @@ export var CommonOrderContent = function CommonOrderContent(_ref8) {
|
|
|
279
278
|
}, /*#__PURE__*/React.createElement("span", {
|
|
280
279
|
key: index,
|
|
281
280
|
style: {
|
|
282
|
-
color:
|
|
283
|
-
cursor:
|
|
281
|
+
color: '#1890ff',
|
|
282
|
+
cursor: 'pointer'
|
|
284
283
|
}
|
|
285
284
|
}, "\u7CFB\u7EDF\u8BA2\u5355\u53F7".concat(index + 1), ":")), /*#__PURE__*/React.createElement("span", {
|
|
286
285
|
style: {
|
|
287
286
|
color: color
|
|
288
287
|
}
|
|
289
|
-
}, (item === null || item === void 0 ? void 0 : item[valueKey]) ||
|
|
288
|
+
}, (item === null || item === void 0 ? void 0 : item[valueKey]) || '')), item.reason && (item === null || item === void 0 ? void 0 : item[valueKey]) !== "成功" && /*#__PURE__*/React.createElement("div", {
|
|
290
289
|
className: "c-red"
|
|
291
290
|
}, item.reason));
|
|
292
291
|
}) : null;
|
|
@@ -298,22 +297,22 @@ export var BsGoodImage = function BsGoodImage(_ref9) {
|
|
|
298
297
|
index = _ref9.index;
|
|
299
298
|
var picUrl = item.picUrl || defaultImg;
|
|
300
299
|
var keyMap = {
|
|
301
|
-
name:
|
|
302
|
-
code:
|
|
303
|
-
skuId:
|
|
304
|
-
money:
|
|
305
|
-
number:
|
|
306
|
-
share:
|
|
307
|
-
type:
|
|
300
|
+
name: 'bs名称',
|
|
301
|
+
code: 'bs编码',
|
|
302
|
+
skuId: 'bssku编码',
|
|
303
|
+
money: 'bs实付金额',
|
|
304
|
+
number: 'bs数量',
|
|
305
|
+
share: 'bs分摊价',
|
|
306
|
+
type: 'bs赠品类型'
|
|
308
307
|
};
|
|
309
308
|
return /*#__PURE__*/React.createElement("div", {
|
|
310
309
|
className: styles.goodImgBox,
|
|
311
310
|
key: index
|
|
312
311
|
}, /*#__PURE__*/React.createElement("img", {
|
|
313
312
|
style: {
|
|
314
|
-
width:
|
|
315
|
-
height:
|
|
316
|
-
objectFit:
|
|
313
|
+
width: '40px',
|
|
314
|
+
height: '40px',
|
|
315
|
+
objectFit: 'contain'
|
|
317
316
|
},
|
|
318
317
|
src: picUrl
|
|
319
318
|
}), /*#__PURE__*/React.createElement("div", {
|
|
@@ -335,11 +334,11 @@ export var BsExchangeList = function BsExchangeList(_ref10) {
|
|
|
335
334
|
return /*#__PURE__*/React.createElement(React.Fragment, null, BsGoodsTable({
|
|
336
335
|
list: (item === null || item === void 0 ? void 0 : item.bsExchangeReturnGoods) || [],
|
|
337
336
|
showHeader: showHeader,
|
|
338
|
-
text:
|
|
337
|
+
text: '退回'
|
|
339
338
|
}), BsGoodsTable({
|
|
340
339
|
list: item === null || item === void 0 ? void 0 : item.bsExchangeSwapOutGoods,
|
|
341
340
|
showHeader: showHeader,
|
|
342
|
-
text:
|
|
341
|
+
text: '换出'
|
|
343
342
|
}));
|
|
344
343
|
}));
|
|
345
344
|
};
|
|
@@ -356,38 +355,38 @@ export var BsGoodsTable = function BsGoodsTable(_ref11) {
|
|
|
356
355
|
var list = _ref11.list,
|
|
357
356
|
showHeader = _ref11.showHeader,
|
|
358
357
|
_ref11$text = _ref11.text,
|
|
359
|
-
text = _ref11$text === void 0 ?
|
|
358
|
+
text = _ref11$text === void 0 ? '' : _ref11$text;
|
|
360
359
|
//商品信息
|
|
361
360
|
var GOODS_INFO_COLUMNS = function GOODS_INFO_COLUMNS() {
|
|
362
|
-
var text = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] :
|
|
361
|
+
var text = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
363
362
|
return [{
|
|
364
|
-
dataIndex:
|
|
363
|
+
dataIndex: 'mark',
|
|
365
364
|
title: "\u5546\u54C1\u6807\u8BB0",
|
|
366
|
-
align:
|
|
365
|
+
align: 'center',
|
|
367
366
|
ellipsis: true,
|
|
368
367
|
width: 100
|
|
369
368
|
}, {
|
|
370
|
-
dataIndex:
|
|
369
|
+
dataIndex: 'skuName',
|
|
371
370
|
title: "".concat(text, "sku\u540D\u79F0"),
|
|
372
|
-
align:
|
|
371
|
+
align: 'center',
|
|
373
372
|
ellipsis: true,
|
|
374
373
|
width: 200
|
|
375
374
|
}, {
|
|
376
|
-
dataIndex:
|
|
375
|
+
dataIndex: 'sku',
|
|
377
376
|
title: "".concat(text, "sku\u7F16\u7801"),
|
|
378
|
-
align:
|
|
377
|
+
align: 'center',
|
|
379
378
|
ellipsis: true,
|
|
380
379
|
width: 100
|
|
381
380
|
}, {
|
|
382
|
-
dataIndex:
|
|
381
|
+
dataIndex: 'name',
|
|
383
382
|
title: "".concat(text, "\u540D\u79F0"),
|
|
384
|
-
align:
|
|
383
|
+
align: 'center',
|
|
385
384
|
ellipsis: true,
|
|
386
385
|
width: 200
|
|
387
386
|
}, {
|
|
388
|
-
dataIndex:
|
|
387
|
+
dataIndex: 'pic',
|
|
389
388
|
title: "\u56FE\u7247",
|
|
390
|
-
align:
|
|
389
|
+
align: 'center',
|
|
391
390
|
ellipsis: true,
|
|
392
391
|
width: 100,
|
|
393
392
|
render: function render(val) {
|
|
@@ -397,42 +396,42 @@ export var BsGoodsTable = function BsGoodsTable(_ref11) {
|
|
|
397
396
|
});
|
|
398
397
|
}
|
|
399
398
|
}, {
|
|
400
|
-
dataIndex:
|
|
399
|
+
dataIndex: 'code',
|
|
401
400
|
title: "".concat(text, "\u7F16\u7801"),
|
|
402
|
-
align:
|
|
401
|
+
align: 'center',
|
|
403
402
|
ellipsis: true,
|
|
404
403
|
width: 100
|
|
405
404
|
}, {
|
|
406
|
-
dataIndex:
|
|
405
|
+
dataIndex: 'money',
|
|
407
406
|
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
408
|
-
align:
|
|
407
|
+
align: 'center',
|
|
409
408
|
ellipsis: true,
|
|
410
409
|
width: 100
|
|
411
410
|
}, {
|
|
412
|
-
dataIndex:
|
|
411
|
+
dataIndex: 'number',
|
|
413
412
|
title: "".concat(text, "\u6570\u91CF"),
|
|
414
|
-
align:
|
|
413
|
+
align: 'center',
|
|
415
414
|
ellipsis: true,
|
|
416
415
|
width: 100
|
|
417
416
|
}, {
|
|
418
|
-
dataIndex:
|
|
417
|
+
dataIndex: 'share',
|
|
419
418
|
title: "\u5206\u644A\u4EF7",
|
|
420
|
-
align:
|
|
419
|
+
align: 'center',
|
|
421
420
|
ellipsis: true,
|
|
422
421
|
width: 70
|
|
423
422
|
}, {
|
|
424
|
-
dataIndex:
|
|
423
|
+
dataIndex: 'type',
|
|
425
424
|
title: "\u8D60\u54C1\u7C7B\u578B",
|
|
426
|
-
align:
|
|
425
|
+
align: 'center',
|
|
427
426
|
ellipsis: true,
|
|
428
427
|
width: 100
|
|
429
428
|
}];
|
|
430
429
|
};
|
|
431
430
|
var newColumns = useMemo(function () {
|
|
432
431
|
var columnList = [{
|
|
433
|
-
dataIndex:
|
|
434
|
-
title:
|
|
435
|
-
align:
|
|
432
|
+
dataIndex: '',
|
|
433
|
+
title: '序号',
|
|
434
|
+
align: 'center',
|
|
436
435
|
ellipsis: true,
|
|
437
436
|
width: 50,
|
|
438
437
|
render: function render(val, record, index) {
|
|
@@ -446,14 +445,14 @@ export var BsGoodsTable = function BsGoodsTable(_ref11) {
|
|
|
446
445
|
return /*#__PURE__*/React.createElement(Table, {
|
|
447
446
|
columns: newColumns,
|
|
448
447
|
dataSource: list,
|
|
449
|
-
rowKey:
|
|
448
|
+
rowKey: 'uuid',
|
|
450
449
|
size: "small",
|
|
451
450
|
pagination: false,
|
|
452
451
|
scroll: {
|
|
453
|
-
x:
|
|
452
|
+
x: '100%'
|
|
454
453
|
},
|
|
455
454
|
locale: {
|
|
456
|
-
emptyText:
|
|
455
|
+
emptyText: '暂无数据'
|
|
457
456
|
}
|
|
458
457
|
});
|
|
459
458
|
};
|
|
@@ -466,15 +465,15 @@ export var FileRender = function FileRender(_ref12) {
|
|
|
466
465
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
467
466
|
visible = _useState4[0],
|
|
468
467
|
setVisible = _useState4[1];
|
|
469
|
-
var _useState5 = useState(
|
|
468
|
+
var _useState5 = useState(''),
|
|
470
469
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
471
470
|
fileUrl = _useState6[0],
|
|
472
471
|
setFileUrl = _useState6[1];
|
|
473
|
-
var _useState7 = useState(
|
|
472
|
+
var _useState7 = useState(''),
|
|
474
473
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
475
474
|
fileType = _useState8[0],
|
|
476
475
|
setFileType = _useState8[1];
|
|
477
|
-
var _useState9 = useState(
|
|
476
|
+
var _useState9 = useState(''),
|
|
478
477
|
_useState10 = _slicedToArray(_useState9, 2),
|
|
479
478
|
fileName = _useState10[0],
|
|
480
479
|
setFileName = _useState10[1];
|
|
@@ -483,24 +482,24 @@ export var FileRender = function FileRender(_ref12) {
|
|
|
483
482
|
downloading = _useState12[0],
|
|
484
483
|
setDownloading = _useState12[1];
|
|
485
484
|
var handleCancel = function handleCancel() {
|
|
486
|
-
setFileUrl(
|
|
487
|
-
setFileName(
|
|
485
|
+
setFileUrl('');
|
|
486
|
+
setFileName('');
|
|
488
487
|
setVisible(false);
|
|
489
488
|
setDownloading(false);
|
|
490
489
|
};
|
|
491
490
|
var onPreview = function onPreview(file) {
|
|
492
491
|
var _file$url;
|
|
493
|
-
var fileArr = file === null || file === void 0 ? void 0 : (_file$url = file.url) === null || _file$url === void 0 ? void 0 : _file$url.split(
|
|
492
|
+
var fileArr = file === null || file === void 0 ? void 0 : (_file$url = file.url) === null || _file$url === void 0 ? void 0 : _file$url.split('.');
|
|
494
493
|
var fileType = fileArr[fileArr.length - 1];
|
|
495
|
-
if ([
|
|
494
|
+
if (['png', 'jpg', 'jpeg', 'gif', 'bmp', 'svg'].includes(fileType.toLowerCase())) {
|
|
496
495
|
setFileUrl(file === null || file === void 0 ? void 0 : file.url);
|
|
497
496
|
setFileName(file === null || file === void 0 ? void 0 : file.name);
|
|
498
|
-
setFileType(
|
|
497
|
+
setFileType('pic');
|
|
499
498
|
setVisible(true);
|
|
500
|
-
} else if ([
|
|
499
|
+
} else if (['mp4', 'avi', 'mpeg', 'asf', 'mov', '3gp', 'wmv', 'rmvb'].includes(fileType.toLowerCase())) {
|
|
501
500
|
setFileUrl(file === null || file === void 0 ? void 0 : file.url);
|
|
502
501
|
setFileName(file === null || file === void 0 ? void 0 : file.name);
|
|
503
|
-
setFileType(
|
|
502
|
+
setFileType('video');
|
|
504
503
|
setVisible(true);
|
|
505
504
|
} else {
|
|
506
505
|
window.open(file === null || file === void 0 ? void 0 : file.url);
|
|
@@ -511,9 +510,9 @@ export var FileRender = function FileRender(_ref12) {
|
|
|
511
510
|
fetch(url).then(function (res) {
|
|
512
511
|
return res.blob();
|
|
513
512
|
}).then(function (blob) {
|
|
514
|
-
var a = document.createElement(
|
|
513
|
+
var a = document.createElement('a');
|
|
515
514
|
document.body.appendChild(a);
|
|
516
|
-
a.style.display =
|
|
515
|
+
a.style.display = 'none';
|
|
517
516
|
var url = window.URL.createObjectURL(blob);
|
|
518
517
|
a.href = url;
|
|
519
518
|
a.download = name;
|
|
@@ -527,9 +526,9 @@ export var FileRender = function FileRender(_ref12) {
|
|
|
527
526
|
return /*#__PURE__*/React.createElement(React.Fragment, null, fileList.map(function (item) {
|
|
528
527
|
return /*#__PURE__*/React.createElement("a", {
|
|
529
528
|
style: {
|
|
530
|
-
color:
|
|
531
|
-
cursor:
|
|
532
|
-
display:
|
|
529
|
+
color: '#1890ff',
|
|
530
|
+
cursor: 'pointer',
|
|
531
|
+
display: 'block'
|
|
533
532
|
},
|
|
534
533
|
onClick: function onClick(e) {
|
|
535
534
|
e.preventDefault();
|
|
@@ -551,20 +550,20 @@ export var FileRender = function FileRender(_ref12) {
|
|
|
551
550
|
}, "\u4E0B\u8F7D") : /*#__PURE__*/React.createElement(CopyToClipboard, {
|
|
552
551
|
text: fileUrl,
|
|
553
552
|
onCopy: function onCopy() {
|
|
554
|
-
message.success(
|
|
553
|
+
message.success('复制成功');
|
|
555
554
|
}
|
|
556
555
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
557
556
|
type: "link"
|
|
558
|
-
}, "\u4E0B\u8F7D\u5730\u5740")), fileType ===
|
|
557
|
+
}, "\u4E0B\u8F7D\u5730\u5740")), fileType === 'pic' ? /*#__PURE__*/React.createElement("img", {
|
|
559
558
|
alt: "example",
|
|
560
559
|
style: {
|
|
561
|
-
width:
|
|
560
|
+
width: '100%'
|
|
562
561
|
},
|
|
563
562
|
src: fileUrl
|
|
564
563
|
}) : /*#__PURE__*/React.createElement("video", {
|
|
565
564
|
style: {
|
|
566
|
-
width:
|
|
567
|
-
height:
|
|
565
|
+
width: '100%',
|
|
566
|
+
height: '100%'
|
|
568
567
|
},
|
|
569
568
|
autoPlay: true,
|
|
570
569
|
controls: true,
|
|
@@ -574,24 +573,24 @@ export var FileRender = function FileRender(_ref12) {
|
|
|
574
573
|
export var BsSystemOrderTable = function BsSystemOrderTable(_ref13) {
|
|
575
574
|
var value = _ref13.value,
|
|
576
575
|
type = _ref13.type;
|
|
577
|
-
var columns = type ===
|
|
578
|
-
dataIndex:
|
|
579
|
-
title:
|
|
576
|
+
var columns = type === 'WLN_SYSTEM_ORDER' ? [{
|
|
577
|
+
dataIndex: 'billType',
|
|
578
|
+
title: '单据类型'
|
|
580
579
|
}, {
|
|
581
|
-
dataIndex:
|
|
582
|
-
title:
|
|
580
|
+
dataIndex: 'billNo',
|
|
581
|
+
title: '系统订单号'
|
|
583
582
|
}, {
|
|
584
|
-
dataIndex:
|
|
585
|
-
title:
|
|
583
|
+
dataIndex: 'billTag',
|
|
584
|
+
title: '标签'
|
|
586
585
|
}] : [{
|
|
587
|
-
dataIndex:
|
|
588
|
-
title:
|
|
586
|
+
dataIndex: 'billType',
|
|
587
|
+
title: '订单类型'
|
|
589
588
|
}, {
|
|
590
|
-
dataIndex:
|
|
591
|
-
title:
|
|
589
|
+
dataIndex: 'billNo',
|
|
590
|
+
title: '系统订单号'
|
|
592
591
|
}, {
|
|
593
|
-
dataIndex:
|
|
594
|
-
title:
|
|
592
|
+
dataIndex: 'billTag',
|
|
593
|
+
title: '标记'
|
|
595
594
|
}];
|
|
596
595
|
var rowSelection = {
|
|
597
596
|
selectedRowKeys: (value === null || value === void 0 ? void 0 : value.selectIds) || [],
|
|
@@ -607,14 +606,14 @@ export var BsSystemOrderTable = function BsSystemOrderTable(_ref13) {
|
|
|
607
606
|
dataSource: (value === null || value === void 0 ? void 0 : value.showOrderInfo) || [],
|
|
608
607
|
columns: columns,
|
|
609
608
|
rowSelection: rowSelection,
|
|
610
|
-
rowKey:
|
|
609
|
+
rowKey: 'billNo',
|
|
611
610
|
size: "small",
|
|
612
611
|
pagination: false,
|
|
613
612
|
scroll: {
|
|
614
|
-
x:
|
|
613
|
+
x: '100%'
|
|
615
614
|
},
|
|
616
615
|
locale: {
|
|
617
|
-
emptyText:
|
|
616
|
+
emptyText: '暂无数据'
|
|
618
617
|
}
|
|
619
618
|
});
|
|
620
619
|
};
|
|
@@ -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 CommonMultiStatus 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[
|
|
15
|
+
dataType: ComponentInterface['dataType'];
|
|
16
16
|
constructor(options: PickOption);
|
|
17
17
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
18
18
|
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
@@ -8,32 +8,50 @@ 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 { CommonOrderContent } from "../Common";
|
|
15
|
-
import { CommonMultiStatus as Status } from
|
|
15
|
+
import { CommonMultiStatus 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 } from '@kmkf-fe-packages/kmkf-utils';
|
|
18
18
|
import { SYMBOL } from "../../constant";
|
|
19
19
|
var typeMap = {
|
|
20
20
|
RETURN_GOODS_STATUS: {
|
|
21
21
|
options: [{
|
|
22
|
-
value:
|
|
23
|
-
label:
|
|
24
|
-
color:
|
|
22
|
+
value: '成功',
|
|
23
|
+
label: '成功',
|
|
24
|
+
color: '#52c41a'
|
|
25
25
|
}, {
|
|
26
|
-
value:
|
|
27
|
-
label:
|
|
28
|
-
color:
|
|
26
|
+
value: '失败',
|
|
27
|
+
label: '失败',
|
|
28
|
+
color: '#ff4d4f'
|
|
29
29
|
}],
|
|
30
|
-
key:
|
|
31
|
-
code:
|
|
32
|
-
name:
|
|
30
|
+
key: 'returnGoodsStatusList',
|
|
31
|
+
code: 'returnGoodsStatusValue',
|
|
32
|
+
name: '退货状态',
|
|
33
33
|
type: 1,
|
|
34
|
-
valueKey:
|
|
35
|
-
idKey:
|
|
36
|
-
failValue:
|
|
34
|
+
valueKey: 'status',
|
|
35
|
+
idKey: 'systemOrderId',
|
|
36
|
+
failValue: '失败'
|
|
37
|
+
},
|
|
38
|
+
EXCHANGE_STATUS: {
|
|
39
|
+
options: [{
|
|
40
|
+
value: '成功',
|
|
41
|
+
label: '成功',
|
|
42
|
+
color: '#52c41a'
|
|
43
|
+
}, {
|
|
44
|
+
value: '失败',
|
|
45
|
+
label: '失败',
|
|
46
|
+
color: '#ff4d4f'
|
|
47
|
+
}],
|
|
48
|
+
key: 'bsExchangeReason',
|
|
49
|
+
code: 'bsExchangeStatusValue',
|
|
50
|
+
name: '退货状态',
|
|
51
|
+
type: 1,
|
|
52
|
+
valueKey: 'status',
|
|
53
|
+
idKey: 'systemOrderId',
|
|
54
|
+
failValue: '失败'
|
|
37
55
|
}
|
|
38
56
|
};
|
|
39
57
|
var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(options) {
|
|
@@ -101,7 +119,7 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
|
|
|
101
119
|
return (list || []).map(function (item) {
|
|
102
120
|
var _typeMap$_this$type11, _typeMap$_this$type12;
|
|
103
121
|
return "".concat(item === null || item === void 0 ? void 0 : item[(_typeMap$_this$type11 = typeMap[_this.type]) === null || _typeMap$_this$type11 === void 0 ? void 0 : _typeMap$_this$type11.idKey], ":").concat(item === null || item === void 0 ? void 0 : item[(_typeMap$_this$type12 = typeMap[_this.type]) === null || _typeMap$_this$type12 === void 0 ? void 0 : _typeMap$_this$type12.valueKey]);
|
|
104
|
-
}).join(
|
|
122
|
+
}).join(',');
|
|
105
123
|
});
|
|
106
124
|
_defineProperty(this, "editRender", function (p) {
|
|
107
125
|
var _this$componentConfig, _this$componentConfig2, _typeMap$_this$type13;
|
|
@@ -124,7 +142,7 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
|
|
|
124
142
|
type: item.type,
|
|
125
143
|
id: "".concat(item.id, "_").concat((_typeMap$_this$type14 = typeMap[_this.type]) === null || _typeMap$_this$type14 === void 0 ? void 0 : _typeMap$_this$type14.code),
|
|
126
144
|
name: "".concat(_this.name),
|
|
127
|
-
filterComponentType:
|
|
145
|
+
filterComponentType: 'Input',
|
|
128
146
|
filterFn: function filterFn(value) {
|
|
129
147
|
return function (i) {
|
|
130
148
|
var _typeMap$_this$type15;
|
|
@@ -144,7 +162,7 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
|
|
|
144
162
|
this.isCombinationComponent = false;
|
|
145
163
|
this.canSort = false;
|
|
146
164
|
this.children = [];
|
|
147
|
-
this.dataType =
|
|
165
|
+
this.dataType = 'object';
|
|
148
166
|
this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
|
|
149
167
|
required: true,
|
|
150
168
|
validator: function validator(_, value) {
|
|
@@ -159,6 +177,6 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
|
|
|
159
177
|
return Promise.resolve();
|
|
160
178
|
}
|
|
161
179
|
}] : [];
|
|
162
|
-
this.align =
|
|
180
|
+
this.align = 'left';
|
|
163
181
|
});
|
|
164
182
|
export default CommonMultiStatus;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
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 _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
3
3
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
4
4
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
5
5
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
@@ -65,7 +65,6 @@ var CommonSystemOrder = /*#__PURE__*/_createClass(function CommonSystemOrder(opt
|
|
|
65
65
|
_defineProperty(this, "renderClient", function (record) {
|
|
66
66
|
var _typeMap$_this$type, _typeMap$_this$type2;
|
|
67
67
|
var list = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat((_typeMap$_this$type = typeMap[_this.type]) === null || _typeMap$_this$type === void 0 ? void 0 : _typeMap$_this$type.key)];
|
|
68
|
-
console.log('renderClient', record, list, _typeof(list));
|
|
69
68
|
var isShow = Array.isArray(record === null || record === void 0 ? void 0 : record[_this.id]) ? some(record === null || record === void 0 ? void 0 : record[_this.id], function (item) {
|
|
70
69
|
return !isNull(item);
|
|
71
70
|
}) : false;
|
|
@@ -81,7 +80,6 @@ var CommonSystemOrder = /*#__PURE__*/_createClass(function CommonSystemOrder(opt
|
|
|
81
80
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
82
81
|
var _typeMap$_this$type3, _typeMap$_this$type4, _typeMap$_this$type5;
|
|
83
82
|
var list = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat((_typeMap$_this$type3 = typeMap[_this.type]) === null || _typeMap$_this$type3 === void 0 ? void 0 : _typeMap$_this$type3.key)];
|
|
84
|
-
console.log('renderPc', record, list, _typeof(list));
|
|
85
83
|
//兼容多个商品
|
|
86
84
|
return /*#__PURE__*/React.createElement("span", {
|
|
87
85
|
onClick: function onClick(e) {
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { ComponentInterface, PickOption, ColumnConfig, Record } from
|
|
2
|
-
import React from
|
|
1
|
+
import { ComponentInterface, PickOption, ColumnConfig, Record } from '../../type';
|
|
2
|
+
import React from 'react';
|
|
3
3
|
declare class StatusSelect 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
|
isCombinationComponent: boolean;
|
|
11
11
|
formField: string;
|
|
12
12
|
canSort: boolean;
|
|
13
13
|
children: ComponentInterface[];
|
|
14
|
-
dataType: ComponentInterface[
|
|
15
|
-
options: ComponentInterface[
|
|
14
|
+
dataType: ComponentInterface['dataType'];
|
|
15
|
+
options: ComponentInterface['options'];
|
|
16
16
|
constructor(options: PickOption);
|
|
17
17
|
editRender: (p: any) => React.JSX.Element;
|
|
18
18
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
@@ -8,69 +8,55 @@ 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 { CommonStatus } from
|
|
11
|
+
import React from 'react';
|
|
12
|
+
import { CommonStatus } from '@kmkf-fe-packages/basic-components';
|
|
13
13
|
import GetFormItem from "../GetFormItem";
|
|
14
14
|
import ItemView from "../../commonComponents/ItemView";
|
|
15
|
-
import { isNull, filterFn as _filterFn } from
|
|
15
|
+
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
16
16
|
import { SYMBOL } from "../../constant";
|
|
17
17
|
// const statusOptions: Array<{ value: string }> = [{ value: '成功' }, { value: '失败' }]
|
|
18
18
|
var selectTypeMap = {
|
|
19
19
|
REISSUE_STATUS: {
|
|
20
20
|
options: [{
|
|
21
|
-
value:
|
|
22
|
-
label:
|
|
23
|
-
color:
|
|
24
|
-
}, {
|
|
25
|
-
value: "失败",
|
|
26
|
-
label: "失败",
|
|
27
|
-
color: "#ff4d4f"
|
|
28
|
-
}],
|
|
29
|
-
key: "reissueStatusValue",
|
|
30
|
-
info: "reissueReason",
|
|
31
|
-
failValue: "失败"
|
|
32
|
-
},
|
|
33
|
-
EXCHANGE_STATUS: {
|
|
34
|
-
options: [{
|
|
35
|
-
value: "成功",
|
|
36
|
-
label: "成功",
|
|
37
|
-
color: "#52c41a"
|
|
21
|
+
value: '成功',
|
|
22
|
+
label: '成功',
|
|
23
|
+
color: '#52c41a'
|
|
38
24
|
}, {
|
|
39
|
-
value:
|
|
40
|
-
label:
|
|
41
|
-
color:
|
|
25
|
+
value: '失败',
|
|
26
|
+
label: '失败',
|
|
27
|
+
color: '#ff4d4f'
|
|
42
28
|
}],
|
|
43
|
-
key:
|
|
44
|
-
info:
|
|
45
|
-
failValue:
|
|
29
|
+
key: 'reissueStatusValue',
|
|
30
|
+
info: 'reissueReason',
|
|
31
|
+
failValue: '失败'
|
|
46
32
|
},
|
|
47
33
|
ADJUST_WORK_ORDER_STATUS: {
|
|
48
34
|
options: [{
|
|
49
|
-
value:
|
|
50
|
-
label:
|
|
51
|
-
color:
|
|
35
|
+
value: '成功',
|
|
36
|
+
label: '成功',
|
|
37
|
+
color: '#52c41a'
|
|
52
38
|
}, {
|
|
53
|
-
value:
|
|
54
|
-
label:
|
|
55
|
-
color:
|
|
39
|
+
value: '失败',
|
|
40
|
+
label: '失败',
|
|
41
|
+
color: '#ff4d4f'
|
|
56
42
|
}],
|
|
57
|
-
key:
|
|
58
|
-
info:
|
|
59
|
-
failValue:
|
|
43
|
+
key: 'adjustWorkOrderStatusValue',
|
|
44
|
+
info: 'adjustWorkOrderReason',
|
|
45
|
+
failValue: '失败'
|
|
60
46
|
},
|
|
61
47
|
CREATE_STATUS: {
|
|
62
48
|
options: [{
|
|
63
|
-
value:
|
|
64
|
-
label:
|
|
65
|
-
color:
|
|
49
|
+
value: '成功',
|
|
50
|
+
label: '成功',
|
|
51
|
+
color: '#52c41a'
|
|
66
52
|
}, {
|
|
67
|
-
value:
|
|
68
|
-
label:
|
|
69
|
-
color:
|
|
53
|
+
value: '失败',
|
|
54
|
+
label: '失败',
|
|
55
|
+
color: '#ff4d4f'
|
|
70
56
|
}],
|
|
71
|
-
key:
|
|
72
|
-
info:
|
|
73
|
-
failValue:
|
|
57
|
+
key: 'createStatusValue',
|
|
58
|
+
info: 'createReason',
|
|
59
|
+
failValue: '失败'
|
|
74
60
|
},
|
|
75
61
|
INVOICE_STATUS: {
|
|
76
62
|
options: [{
|
|
@@ -121,7 +107,7 @@ var StatusSelect = /*#__PURE__*/_createClass(function StatusSelect(options) {
|
|
|
121
107
|
var status = record === null || record === void 0 ? void 0 : (_record$_this$id = record[_this.id]) === null || _record$_this$id === void 0 ? void 0 : _record$_this$id.status;
|
|
122
108
|
var statusColor = ((_selectTypeMap$_this$ = selectTypeMap[_this.type].options.find(function (item) {
|
|
123
109
|
return item.value === status;
|
|
124
|
-
})) === null || _selectTypeMap$_this$ === void 0 ? void 0 : _selectTypeMap$_this$.color) ||
|
|
110
|
+
})) === null || _selectTypeMap$_this$ === void 0 ? void 0 : _selectTypeMap$_this$.color) || '#000';
|
|
125
111
|
return !isNull(record === null || record === void 0 ? void 0 : (_record$_this$id2 = record[_this.id]) === null || _record$_this$id2 === void 0 ? void 0 : _record$_this$id2.status) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
126
112
|
id: _this.id,
|
|
127
113
|
label: _this.name,
|
|
@@ -129,7 +115,7 @@ var StatusSelect = /*#__PURE__*/_createClass(function StatusSelect(options) {
|
|
|
129
115
|
style: {
|
|
130
116
|
color: statusColor
|
|
131
117
|
}
|
|
132
|
-
}, record === null || record === void 0 ? void 0 : (_record$_this$id3 = record[_this.id]) === null || _record$_this$id3 === void 0 ? void 0 : _record$_this$id3.status), /*#__PURE__*/React.createElement("div", null, (record === null || record === void 0 ? void 0 : (_record$_this$id4 = record[_this.id]) === null || _record$_this$id4 === void 0 ? void 0 : _record$_this$id4.reason) ||
|
|
118
|
+
}, record === null || record === void 0 ? void 0 : (_record$_this$id3 = record[_this.id]) === null || _record$_this$id3 === void 0 ? void 0 : _record$_this$id3.status), /*#__PURE__*/React.createElement("div", null, (record === null || record === void 0 ? void 0 : (_record$_this$id4 = record[_this.id]) === null || _record$_this$id4 === void 0 ? void 0 : _record$_this$id4.reason) || ''))
|
|
133
119
|
}) : null;
|
|
134
120
|
});
|
|
135
121
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
@@ -137,12 +123,12 @@ var StatusSelect = /*#__PURE__*/_createClass(function StatusSelect(options) {
|
|
|
137
123
|
var status = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(selectTypeMap[_this.type].key)];
|
|
138
124
|
var statusColor = ((_selectTypeMap$_this$2 = selectTypeMap[_this.type].options.find(function (item) {
|
|
139
125
|
return item.value === status;
|
|
140
|
-
})) === null || _selectTypeMap$_this$2 === void 0 ? void 0 : _selectTypeMap$_this$2.color) ||
|
|
126
|
+
})) === null || _selectTypeMap$_this$2 === void 0 ? void 0 : _selectTypeMap$_this$2.color) || '#000';
|
|
141
127
|
return !isNull(status) ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
142
128
|
style: {
|
|
143
129
|
color: statusColor
|
|
144
130
|
}
|
|
145
|
-
}, record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(selectTypeMap[_this.type].key)]), /*#__PURE__*/React.createElement("div", null, (record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(selectTypeMap[_this.type].info)]) ||
|
|
131
|
+
}, record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(selectTypeMap[_this.type].key)]), /*#__PURE__*/React.createElement("div", null, (record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(selectTypeMap[_this.type].info)]) || '')) : '--';
|
|
146
132
|
});
|
|
147
133
|
_defineProperty(this, "renderLog", function (r) {
|
|
148
134
|
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat(selectTypeMap[_this.type].key)])) return null;
|
|
@@ -153,7 +139,7 @@ var StatusSelect = /*#__PURE__*/_createClass(function StatusSelect(options) {
|
|
|
153
139
|
});
|
|
154
140
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
155
141
|
var _record;
|
|
156
|
-
return (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(selectTypeMap[_this.type].key)]) !== null && _record !== void 0 ? _record :
|
|
142
|
+
return (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(selectTypeMap[_this.type].key)]) !== null && _record !== void 0 ? _record : '--';
|
|
157
143
|
});
|
|
158
144
|
_defineProperty(this, "filterConfig", function (item) {
|
|
159
145
|
return {
|
|
@@ -163,7 +149,7 @@ var StatusSelect = /*#__PURE__*/_createClass(function StatusSelect(options) {
|
|
|
163
149
|
// 过滤组件id
|
|
164
150
|
name: item.name,
|
|
165
151
|
// 过滤组件名称
|
|
166
|
-
filterComponentType:
|
|
152
|
+
filterComponentType: 'MultipleSelect',
|
|
167
153
|
props: {
|
|
168
154
|
options: selectTypeMap[_this.type].options
|
|
169
155
|
},
|
|
@@ -186,7 +172,7 @@ var StatusSelect = /*#__PURE__*/_createClass(function StatusSelect(options) {
|
|
|
186
172
|
this.isCombinationComponent = false;
|
|
187
173
|
this.canSort = true;
|
|
188
174
|
this.children = [];
|
|
189
|
-
this.dataType =
|
|
175
|
+
this.dataType = 'string';
|
|
190
176
|
this.options = selectTypeMap[options.type].options;
|
|
191
177
|
});
|
|
192
178
|
export default StatusSelect;
|
package/dist/esm/factory.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { JstLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, CommonDataTime, TradeId, ShopName, ErpTradeId, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, FlowMarkSelect, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, Handler, CompletedUser, LogisticsInterception, LogisticsTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods } from
|
|
2
|
-
import { PickOption } from
|
|
3
|
-
export declare const factory: (type: string, options: PickOption) =>
|
|
1
|
+
import { JstLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, CommonDataTime, TradeId, ShopName, ErpTradeId, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, FlowMarkSelect, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, Handler, CompletedUser, LogisticsInterception, LogisticsTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods } from './index';
|
|
2
|
+
import { PickOption } from './type';
|
|
3
|
+
export declare const factory: (type: string, options: PickOption) => BsLogistics | CommonMultiStatus | CommonSystemOrder | StatusSelect | BasicInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicRadio | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | CommonDataTime | TradeId | ErpTradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | JstLogistics | JstItemSelect | JstSendGood | JstSupply | BsSystemOrder | BsGoods | BsExchange | BsReissue | BsReturn | FlowStatusSelect | FlowMarkSelect | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsTrajectory | PlatForm | ShopInput | Submitter | Handler | CompletedUser | FlowWorkOrderId | Calculation | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods;
|
package/dist/esm/factory.js
CHANGED
|
@@ -4,169 +4,169 @@ CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine
|
|
|
4
4
|
export var factory = function factory(type, options) {
|
|
5
5
|
var _options$componentCon;
|
|
6
6
|
switch (type) {
|
|
7
|
-
case
|
|
7
|
+
case 'PLATFORM_INPUT':
|
|
8
8
|
return new PlatForm();
|
|
9
|
-
case
|
|
9
|
+
case 'SHOP_INPUT':
|
|
10
10
|
return new ShopInput(options);
|
|
11
|
-
case
|
|
11
|
+
case 'OPERATOR_INPUT':
|
|
12
12
|
return new Submitter(options);
|
|
13
|
-
case
|
|
13
|
+
case 'HANDLER_INPUT':
|
|
14
14
|
return new Handler(options);
|
|
15
|
-
case
|
|
15
|
+
case 'COMPLETED_USER_INPUT':
|
|
16
16
|
return new CompletedUser(options);
|
|
17
|
-
case
|
|
17
|
+
case 'INPUT':
|
|
18
18
|
return new BasicInput(options);
|
|
19
|
-
case
|
|
19
|
+
case 'RADIO':
|
|
20
20
|
return new BasicRadio(options);
|
|
21
|
-
case
|
|
21
|
+
case 'TEXTAREA':
|
|
22
22
|
return new BasicTextArea(options);
|
|
23
|
-
case
|
|
23
|
+
case 'CHECKBOX':
|
|
24
24
|
return new BasicCheckbox(options);
|
|
25
|
-
case
|
|
25
|
+
case 'DATETIME':
|
|
26
26
|
return new BasicDataTime(options);
|
|
27
|
-
case
|
|
28
|
-
case
|
|
27
|
+
case 'SELECT':
|
|
28
|
+
case 'BUYER_MESSAGE_NOTICE':
|
|
29
29
|
return new BasicSelect(options);
|
|
30
|
-
case
|
|
30
|
+
case 'PICTURE':
|
|
31
31
|
return new BasicPicture(options);
|
|
32
|
-
case
|
|
32
|
+
case 'BASIC_MULT_SELECT':
|
|
33
33
|
return new BasicMultSelect(options);
|
|
34
|
-
case
|
|
34
|
+
case 'MULT_SELECT':
|
|
35
35
|
return new BasicCascader(options);
|
|
36
|
-
case
|
|
36
|
+
case 'BASIC_ADDRESS':
|
|
37
37
|
return new BasicAddress(options);
|
|
38
|
-
case
|
|
38
|
+
case 'BASIC_GRADE':
|
|
39
39
|
return new BasicGrade(options);
|
|
40
|
-
case
|
|
40
|
+
case 'RATE':
|
|
41
41
|
return new BasicRate(options);
|
|
42
|
-
case
|
|
42
|
+
case 'FILE':
|
|
43
43
|
return new BasicFile(options);
|
|
44
|
-
case
|
|
44
|
+
case 'POSTING':
|
|
45
45
|
return new BasicPosting(options);
|
|
46
|
-
case
|
|
46
|
+
case 'SHOP_NAME_INPUT':
|
|
47
47
|
return new ShopName(options);
|
|
48
|
-
case
|
|
48
|
+
case 'TRADE_ID_INPUT':
|
|
49
49
|
return options !== null && options !== void 0 && (_options$componentCon = options.componentConfig) !== null && _options$componentCon !== void 0 && _options$componentCon.erpFlag ? new ErpTradeId(options) : new TradeId(options);
|
|
50
|
-
case
|
|
50
|
+
case 'BUYER_NICK_INPUT':
|
|
51
51
|
return new BuyerNick(options);
|
|
52
|
-
case
|
|
52
|
+
case 'RECEIVER_NAME_INPUT':
|
|
53
53
|
return new ReceiverName(options);
|
|
54
|
-
case
|
|
54
|
+
case 'RECEIVER_MOBILE_INPUT':
|
|
55
55
|
return new ReceiverMobile(options);
|
|
56
|
-
case
|
|
56
|
+
case 'RECEIVER_ADDRESS_INPUT':
|
|
57
57
|
return new ReceiverAddress(options);
|
|
58
|
-
case
|
|
59
|
-
case
|
|
60
|
-
case
|
|
61
|
-
case
|
|
62
|
-
case
|
|
63
|
-
case
|
|
64
|
-
case
|
|
58
|
+
case 'TRADE_CREATE_DATETIME':
|
|
59
|
+
case 'TRADE_PAYMENT_DATETIME':
|
|
60
|
+
case 'TRADE_DELIVERY_DATETIME':
|
|
61
|
+
case 'TRADE_CLOSING_DATETIME':
|
|
62
|
+
case 'BS_SIGNING_TIME':
|
|
63
|
+
case 'BS_SEND_TIME':
|
|
64
|
+
case 'BS_TRADE_PAYMENT_TIME':
|
|
65
65
|
return new TradeDateTime(options);
|
|
66
|
-
case
|
|
66
|
+
case 'EXPRESS_LOGISTICS_SELECT':
|
|
67
67
|
return new Logistics(options);
|
|
68
|
-
case
|
|
68
|
+
case 'RETURN_LOGISTICS_SELECT':
|
|
69
69
|
return new ReturnLogistics(options);
|
|
70
|
-
case
|
|
71
|
-
case
|
|
72
|
-
case
|
|
73
|
-
case
|
|
70
|
+
case 'ACTUAL_PAYMENT':
|
|
71
|
+
case 'BS_NET_RECEIPTS':
|
|
72
|
+
case 'BS_DEPOSIT':
|
|
73
|
+
case 'BS_PACKAGE_WEIGHT':
|
|
74
74
|
return new ActualPayment(options);
|
|
75
|
-
case
|
|
75
|
+
case 'REMARK_INPUT':
|
|
76
76
|
return new ERemark(options);
|
|
77
|
-
case
|
|
77
|
+
case 'ITEM_SELECT':
|
|
78
78
|
return new ItemSelect(options);
|
|
79
|
-
case
|
|
79
|
+
case 'ITEM_ID':
|
|
80
80
|
return new ItemId(options);
|
|
81
|
-
case
|
|
81
|
+
case 'ITEM_ENCODE':
|
|
82
82
|
return new ItemEnCode(options);
|
|
83
|
-
case
|
|
83
|
+
case 'ALI_PAY_INPUT':
|
|
84
84
|
return new AliPay(options);
|
|
85
|
-
case
|
|
85
|
+
case 'ORDINARY_INVOICE':
|
|
86
86
|
return new Ordinary(options);
|
|
87
|
-
case
|
|
87
|
+
case 'ITEM_SELECT_THIRD':
|
|
88
88
|
return new ThirdItemSelect(options);
|
|
89
|
-
case
|
|
89
|
+
case 'ENTERPRISE_PAYMENT':
|
|
90
90
|
return new Payment(options);
|
|
91
|
-
case
|
|
91
|
+
case 'SYSTEM_ORDER_NO':
|
|
92
92
|
return new SystemOrderNo(options);
|
|
93
|
-
case
|
|
93
|
+
case 'LOGISTICS_INTERCEPTION':
|
|
94
94
|
return new LogisticsInterception(options);
|
|
95
|
-
case
|
|
95
|
+
case 'LOGISTICS_TRAJECTORY':
|
|
96
96
|
return new LogisticsTrajectory(options);
|
|
97
|
-
case
|
|
97
|
+
case 'WORK_ORDER_ID_INPUT':
|
|
98
98
|
return new WorkOrderId(options);
|
|
99
|
-
case
|
|
99
|
+
case 'FLOW_STATUS_SELECT':
|
|
100
100
|
return new FlowStatusSelect(options);
|
|
101
|
-
case
|
|
101
|
+
case 'FLOW_MARK_SELECT':
|
|
102
102
|
return new FlowMarkSelect(options);
|
|
103
|
-
case
|
|
103
|
+
case 'COMPLETED_DATETIME':
|
|
104
104
|
return new CommonDataTime(options);
|
|
105
|
-
case
|
|
105
|
+
case 'CREATED_DATETIME':
|
|
106
106
|
return new CommonDataTime(options);
|
|
107
|
-
case
|
|
107
|
+
case 'UPDATE_DATETIME':
|
|
108
108
|
return new CommonDataTime(options);
|
|
109
|
-
case
|
|
109
|
+
case 'TEMPLATE_ID_INPUT':
|
|
110
110
|
return new TemplateSelect(options);
|
|
111
|
-
case
|
|
112
|
-
case
|
|
111
|
+
case 'JST_LOGISTICS':
|
|
112
|
+
case 'REISSUE_LOGISTICS':
|
|
113
113
|
return new JstLogistics(options);
|
|
114
|
-
case
|
|
114
|
+
case 'JST_ITEM_SELECT_THIRD':
|
|
115
115
|
return new JstItemSelect(options);
|
|
116
|
-
case
|
|
116
|
+
case 'JST_SUPPLY':
|
|
117
117
|
return new JstSupply(options);
|
|
118
|
-
case
|
|
119
|
-
case
|
|
118
|
+
case 'BS_SYSTEM_ORDER':
|
|
119
|
+
case 'WLN_SYSTEM_ORDER':
|
|
120
120
|
return new BsSystemOrder(options);
|
|
121
|
-
case
|
|
122
|
-
case
|
|
123
|
-
case
|
|
121
|
+
case 'JST_SEND_GOOD':
|
|
122
|
+
case 'BS_SEND_GOOD':
|
|
123
|
+
case 'WLN_SEND_GOOD':
|
|
124
124
|
return new JstSendGood(options);
|
|
125
|
-
case
|
|
125
|
+
case 'BS_POSTING':
|
|
126
126
|
return new BasicPosting(options);
|
|
127
|
-
case
|
|
127
|
+
case 'BS_GOODS':
|
|
128
128
|
return new BsGoods(options);
|
|
129
|
-
case
|
|
129
|
+
case 'BS_EXCHANGE_GOODS':
|
|
130
130
|
return new BsExchange(options);
|
|
131
|
-
case
|
|
131
|
+
case 'BS_REISSUE_GOODS':
|
|
132
132
|
return new BsReissue(options);
|
|
133
|
-
case
|
|
133
|
+
case 'BS_RETURN_GOODS':
|
|
134
134
|
return new BsReturn(options);
|
|
135
|
-
case
|
|
136
|
-
case
|
|
137
|
-
case
|
|
138
|
-
case
|
|
135
|
+
case 'BS_DELIVERY_NO':
|
|
136
|
+
case 'RETURN_GOODS_TRADE_ID':
|
|
137
|
+
case 'REISSUE_TRADE_ID':
|
|
138
|
+
case 'EXCHANGE_TRADE_ID':
|
|
139
139
|
return new CommonSystemOrder(options);
|
|
140
|
-
case
|
|
141
|
-
case
|
|
140
|
+
case 'BS_LOGISTICS':
|
|
141
|
+
case 'WLN_LOGISTICS':
|
|
142
142
|
return new BsLogistics(options);
|
|
143
|
-
case
|
|
143
|
+
case 'FLOW_WORK_ORDER_ID_INPUT':
|
|
144
144
|
return new FlowWorkOrderId(options);
|
|
145
|
-
case
|
|
145
|
+
case 'OUTER_WORK_ORDER_ID_INPUT':
|
|
146
146
|
return new FlowWorkOrderId(options);
|
|
147
|
-
case
|
|
148
|
-
case
|
|
149
|
-
case
|
|
150
|
-
case
|
|
151
|
-
case "INVOICE_STATUS":
|
|
147
|
+
case 'REISSUE_STATUS':
|
|
148
|
+
case 'ADJUST_WORK_ORDER_STATUS':
|
|
149
|
+
case 'CREATE_STATUS':
|
|
150
|
+
case 'INVOICE_STATUS':
|
|
152
151
|
return new StatusSelect(options);
|
|
153
|
-
case
|
|
152
|
+
case 'RETURN_GOODS_STATUS':
|
|
153
|
+
case 'EXCHANGE_STATUS':
|
|
154
154
|
return new CommonMultiStatus(options);
|
|
155
155
|
// case 'REISSUE_TRADE_ID':
|
|
156
156
|
// case 'EXCHANGE_TRADE_ID':
|
|
157
157
|
// return new CommonTradeId(options)
|
|
158
|
-
case
|
|
158
|
+
case 'NUMERICAL_CALCULATION':
|
|
159
159
|
return new Calculation(options);
|
|
160
|
-
case
|
|
160
|
+
case 'NODE_DEAD_LINE_INPUT':
|
|
161
161
|
// 工单时效
|
|
162
162
|
return new NodeDeadLine(options);
|
|
163
|
-
case
|
|
163
|
+
case 'HANDLER_DEAD_LINE_INPUT':
|
|
164
164
|
// 处理人时效
|
|
165
165
|
return new HandlerDeadLine(options);
|
|
166
|
-
case
|
|
166
|
+
case 'NODE_STAY_DURATION_INPUT':
|
|
167
167
|
// 工单停留时长
|
|
168
168
|
return new NodeStayDuration(options);
|
|
169
|
-
case
|
|
169
|
+
case 'WLN_GOODS':
|
|
170
170
|
// 万里牛商品
|
|
171
171
|
return new WlnGoods(options);
|
|
172
172
|
default:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "0.11.0-alpha.
|
|
3
|
+
"version": "0.11.0-alpha.5",
|
|
4
4
|
"module": "dist/esm/index.js",
|
|
5
5
|
"typings": "dist/esm/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"father": "^4.1.7"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@kmkf-fe-packages/basic-components": "^0.11.0-alpha.
|
|
30
|
-
"@kmkf-fe-packages/kmkf-utils": "^0.11.0-alpha.
|
|
29
|
+
"@kmkf-fe-packages/basic-components": "^0.11.0-alpha.5",
|
|
30
|
+
"@kmkf-fe-packages/kmkf-utils": "^0.11.0-alpha.5"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
33
|
"@ant-design/icons": "^4.7.0",
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"gitHooks": {
|
|
41
41
|
"pre-commit": "lint-staged"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "6ab786729a215ecae2bbb8bbfa0887b832addda3"
|
|
44
44
|
}
|