@kmkf-fe-packages/services-components 0.11.0-alpha.0 → 0.11.0-alpha.10
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/BS/BsLogistics/index.d.ts +7 -7
- package/dist/esm/components/BS/BsLogistics/index.js +30 -26
- package/dist/esm/components/BS/BsSystemOrder/index.js +31 -14
- package/dist/esm/components/BS/common/expressCode.d.ts +1 -0
- package/dist/esm/components/BS/common/expressCode.js +13 -3
- package/dist/esm/components/BS/common/expressCompany.d.ts +7 -6
- package/dist/esm/components/BS/common/expressCompany.js +24 -13
- package/dist/esm/components/Common/index.d.ts +2 -2
- package/dist/esm/components/Common/index.js +140 -130
- package/dist/esm/components/CommonMultiStatus/index.d.ts +4 -4
- package/dist/esm/components/CommonMultiStatus/index.js +50 -31
- package/dist/esm/components/CommonSystemOrder/index.d.ts +4 -4
- package/dist/esm/components/CommonSystemOrder/index.js +24 -25
- package/dist/esm/components/CompletedUser/index.js +1 -1
- package/dist/esm/components/FlowMarkSelect/index.js +1 -1
- package/dist/esm/components/Handler/index.js +1 -1
- package/dist/esm/components/Input/index.js +18 -0
- package/dist/esm/components/PlatForm/index.d.ts +2 -2
- package/dist/esm/components/PlatForm/index.js +2 -2
- package/dist/esm/components/ShopInput/index.js +1 -1
- package/dist/esm/components/StatusSelect/index.d.ts +5 -5
- package/dist/esm/components/StatusSelect/index.js +37 -51
- package/dist/esm/components/Submitter/index.js +1 -1
- package/dist/esm/components/WLN/WlnGoods/index.js +4 -3
- package/dist/esm/factory.d.ts +3 -3
- package/dist/esm/factory.js +91 -90
- package/dist/esm/type.d.ts +2 -0
- 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) {
|
|
@@ -261,7 +261,7 @@ export var CommonOrderContent = function CommonOrderContent(_ref8) {
|
|
|
261
261
|
var orderContent = function orderContent(item, index) {
|
|
262
262
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
263
263
|
style: {
|
|
264
|
-
textAlign:
|
|
264
|
+
textAlign: 'center'
|
|
265
265
|
}
|
|
266
266
|
}, "\u7CFB\u7EDF\u8BA2\u5355\u53F7", index + 1, "\uFF1A", item.systemOrderId));
|
|
267
267
|
};
|
|
@@ -269,7 +269,7 @@ export var CommonOrderContent = function CommonOrderContent(_ref8) {
|
|
|
269
269
|
var _options$find;
|
|
270
270
|
var color = ((_options$find = options.find(function (item) {
|
|
271
271
|
return item[valueKey] === failValue;
|
|
272
|
-
})) === null || _options$find === void 0 ? void 0 : _options$find.color) ||
|
|
272
|
+
})) === null || _options$find === void 0 ? void 0 : _options$find.color) || '#000';
|
|
273
273
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Popover, {
|
|
274
274
|
content: orderContent(item, index),
|
|
275
275
|
overlayStyle: {
|
|
@@ -278,14 +278,14 @@ export var CommonOrderContent = function CommonOrderContent(_ref8) {
|
|
|
278
278
|
}, /*#__PURE__*/React.createElement("span", {
|
|
279
279
|
key: index,
|
|
280
280
|
style: {
|
|
281
|
-
color:
|
|
282
|
-
cursor:
|
|
281
|
+
color: '#1890ff',
|
|
282
|
+
cursor: 'pointer'
|
|
283
283
|
}
|
|
284
284
|
}, "\u7CFB\u7EDF\u8BA2\u5355\u53F7".concat(index + 1), ":")), /*#__PURE__*/React.createElement("span", {
|
|
285
285
|
style: {
|
|
286
286
|
color: color
|
|
287
287
|
}
|
|
288
|
-
}, (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", {
|
|
289
289
|
className: "c-red"
|
|
290
290
|
}, item.reason));
|
|
291
291
|
}) : null;
|
|
@@ -297,22 +297,22 @@ export var BsGoodImage = function BsGoodImage(_ref9) {
|
|
|
297
297
|
index = _ref9.index;
|
|
298
298
|
var picUrl = item.picUrl || defaultImg;
|
|
299
299
|
var keyMap = {
|
|
300
|
-
name:
|
|
301
|
-
code:
|
|
302
|
-
skuId:
|
|
303
|
-
money:
|
|
304
|
-
number:
|
|
305
|
-
share:
|
|
306
|
-
type:
|
|
300
|
+
name: 'bs名称',
|
|
301
|
+
code: 'bs编码',
|
|
302
|
+
skuId: 'bssku编码',
|
|
303
|
+
money: 'bs实付金额',
|
|
304
|
+
number: 'bs数量',
|
|
305
|
+
share: 'bs分摊价',
|
|
306
|
+
type: 'bs赠品类型'
|
|
307
307
|
};
|
|
308
308
|
return /*#__PURE__*/React.createElement("div", {
|
|
309
309
|
className: styles.goodImgBox,
|
|
310
310
|
key: index
|
|
311
311
|
}, /*#__PURE__*/React.createElement("img", {
|
|
312
312
|
style: {
|
|
313
|
-
width:
|
|
314
|
-
height:
|
|
315
|
-
objectFit:
|
|
313
|
+
width: '40px',
|
|
314
|
+
height: '40px',
|
|
315
|
+
objectFit: 'contain'
|
|
316
316
|
},
|
|
317
317
|
src: picUrl
|
|
318
318
|
}), /*#__PURE__*/React.createElement("div", {
|
|
@@ -334,11 +334,11 @@ export var BsExchangeList = function BsExchangeList(_ref10) {
|
|
|
334
334
|
return /*#__PURE__*/React.createElement(React.Fragment, null, BsGoodsTable({
|
|
335
335
|
list: (item === null || item === void 0 ? void 0 : item.bsExchangeReturnGoods) || [],
|
|
336
336
|
showHeader: showHeader,
|
|
337
|
-
text:
|
|
337
|
+
text: '退回'
|
|
338
338
|
}), BsGoodsTable({
|
|
339
339
|
list: item === null || item === void 0 ? void 0 : item.bsExchangeSwapOutGoods,
|
|
340
340
|
showHeader: showHeader,
|
|
341
|
-
text:
|
|
341
|
+
text: '换出'
|
|
342
342
|
}));
|
|
343
343
|
}));
|
|
344
344
|
};
|
|
@@ -355,38 +355,38 @@ export var BsGoodsTable = function BsGoodsTable(_ref11) {
|
|
|
355
355
|
var list = _ref11.list,
|
|
356
356
|
showHeader = _ref11.showHeader,
|
|
357
357
|
_ref11$text = _ref11.text,
|
|
358
|
-
text = _ref11$text === void 0 ?
|
|
358
|
+
text = _ref11$text === void 0 ? '' : _ref11$text;
|
|
359
359
|
//商品信息
|
|
360
360
|
var GOODS_INFO_COLUMNS = function GOODS_INFO_COLUMNS() {
|
|
361
|
-
var text = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] :
|
|
361
|
+
var text = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
362
362
|
return [{
|
|
363
|
-
dataIndex:
|
|
363
|
+
dataIndex: 'mark',
|
|
364
364
|
title: "\u5546\u54C1\u6807\u8BB0",
|
|
365
|
-
align:
|
|
365
|
+
align: 'center',
|
|
366
366
|
ellipsis: true,
|
|
367
367
|
width: 100
|
|
368
368
|
}, {
|
|
369
|
-
dataIndex:
|
|
369
|
+
dataIndex: 'skuName',
|
|
370
370
|
title: "".concat(text, "sku\u540D\u79F0"),
|
|
371
|
-
align:
|
|
371
|
+
align: 'center',
|
|
372
372
|
ellipsis: true,
|
|
373
373
|
width: 200
|
|
374
374
|
}, {
|
|
375
|
-
dataIndex:
|
|
375
|
+
dataIndex: 'sku',
|
|
376
376
|
title: "".concat(text, "sku\u7F16\u7801"),
|
|
377
|
-
align:
|
|
377
|
+
align: 'center',
|
|
378
378
|
ellipsis: true,
|
|
379
379
|
width: 100
|
|
380
380
|
}, {
|
|
381
|
-
dataIndex:
|
|
381
|
+
dataIndex: 'name',
|
|
382
382
|
title: "".concat(text, "\u540D\u79F0"),
|
|
383
|
-
align:
|
|
383
|
+
align: 'center',
|
|
384
384
|
ellipsis: true,
|
|
385
385
|
width: 200
|
|
386
386
|
}, {
|
|
387
|
-
dataIndex:
|
|
387
|
+
dataIndex: 'pic',
|
|
388
388
|
title: "\u56FE\u7247",
|
|
389
|
-
align:
|
|
389
|
+
align: 'center',
|
|
390
390
|
ellipsis: true,
|
|
391
391
|
width: 100,
|
|
392
392
|
render: function render(val) {
|
|
@@ -396,42 +396,42 @@ export var BsGoodsTable = function BsGoodsTable(_ref11) {
|
|
|
396
396
|
});
|
|
397
397
|
}
|
|
398
398
|
}, {
|
|
399
|
-
dataIndex:
|
|
399
|
+
dataIndex: 'code',
|
|
400
400
|
title: "".concat(text, "\u7F16\u7801"),
|
|
401
|
-
align:
|
|
401
|
+
align: 'center',
|
|
402
402
|
ellipsis: true,
|
|
403
403
|
width: 100
|
|
404
404
|
}, {
|
|
405
|
-
dataIndex:
|
|
405
|
+
dataIndex: 'money',
|
|
406
406
|
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
407
|
-
align:
|
|
407
|
+
align: 'center',
|
|
408
408
|
ellipsis: true,
|
|
409
409
|
width: 100
|
|
410
410
|
}, {
|
|
411
|
-
dataIndex:
|
|
411
|
+
dataIndex: 'number',
|
|
412
412
|
title: "".concat(text, "\u6570\u91CF"),
|
|
413
|
-
align:
|
|
413
|
+
align: 'center',
|
|
414
414
|
ellipsis: true,
|
|
415
415
|
width: 100
|
|
416
416
|
}, {
|
|
417
|
-
dataIndex:
|
|
417
|
+
dataIndex: 'share',
|
|
418
418
|
title: "\u5206\u644A\u4EF7",
|
|
419
|
-
align:
|
|
419
|
+
align: 'center',
|
|
420
420
|
ellipsis: true,
|
|
421
421
|
width: 70
|
|
422
422
|
}, {
|
|
423
|
-
dataIndex:
|
|
423
|
+
dataIndex: 'type',
|
|
424
424
|
title: "\u8D60\u54C1\u7C7B\u578B",
|
|
425
|
-
align:
|
|
425
|
+
align: 'center',
|
|
426
426
|
ellipsis: true,
|
|
427
427
|
width: 100
|
|
428
428
|
}];
|
|
429
429
|
};
|
|
430
430
|
var newColumns = useMemo(function () {
|
|
431
431
|
var columnList = [{
|
|
432
|
-
dataIndex:
|
|
433
|
-
title:
|
|
434
|
-
align:
|
|
432
|
+
dataIndex: '',
|
|
433
|
+
title: '序号',
|
|
434
|
+
align: 'center',
|
|
435
435
|
ellipsis: true,
|
|
436
436
|
width: 50,
|
|
437
437
|
render: function render(val, record, index) {
|
|
@@ -445,14 +445,14 @@ export var BsGoodsTable = function BsGoodsTable(_ref11) {
|
|
|
445
445
|
return /*#__PURE__*/React.createElement(Table, {
|
|
446
446
|
columns: newColumns,
|
|
447
447
|
dataSource: list,
|
|
448
|
-
rowKey:
|
|
448
|
+
rowKey: 'uuid',
|
|
449
449
|
size: "small",
|
|
450
450
|
pagination: false,
|
|
451
451
|
scroll: {
|
|
452
|
-
x:
|
|
452
|
+
x: '100%'
|
|
453
453
|
},
|
|
454
454
|
locale: {
|
|
455
|
-
emptyText:
|
|
455
|
+
emptyText: '暂无数据'
|
|
456
456
|
}
|
|
457
457
|
});
|
|
458
458
|
};
|
|
@@ -465,15 +465,15 @@ export var FileRender = function FileRender(_ref12) {
|
|
|
465
465
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
466
466
|
visible = _useState4[0],
|
|
467
467
|
setVisible = _useState4[1];
|
|
468
|
-
var _useState5 = useState(
|
|
468
|
+
var _useState5 = useState(''),
|
|
469
469
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
470
470
|
fileUrl = _useState6[0],
|
|
471
471
|
setFileUrl = _useState6[1];
|
|
472
|
-
var _useState7 = useState(
|
|
472
|
+
var _useState7 = useState(''),
|
|
473
473
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
474
474
|
fileType = _useState8[0],
|
|
475
475
|
setFileType = _useState8[1];
|
|
476
|
-
var _useState9 = useState(
|
|
476
|
+
var _useState9 = useState(''),
|
|
477
477
|
_useState10 = _slicedToArray(_useState9, 2),
|
|
478
478
|
fileName = _useState10[0],
|
|
479
479
|
setFileName = _useState10[1];
|
|
@@ -482,24 +482,24 @@ export var FileRender = function FileRender(_ref12) {
|
|
|
482
482
|
downloading = _useState12[0],
|
|
483
483
|
setDownloading = _useState12[1];
|
|
484
484
|
var handleCancel = function handleCancel() {
|
|
485
|
-
setFileUrl(
|
|
486
|
-
setFileName(
|
|
485
|
+
setFileUrl('');
|
|
486
|
+
setFileName('');
|
|
487
487
|
setVisible(false);
|
|
488
488
|
setDownloading(false);
|
|
489
489
|
};
|
|
490
490
|
var onPreview = function onPreview(file) {
|
|
491
491
|
var _file$url;
|
|
492
|
-
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('.');
|
|
493
493
|
var fileType = fileArr[fileArr.length - 1];
|
|
494
|
-
if ([
|
|
494
|
+
if (['png', 'jpg', 'jpeg', 'gif', 'bmp', 'svg'].includes(fileType.toLowerCase())) {
|
|
495
495
|
setFileUrl(file === null || file === void 0 ? void 0 : file.url);
|
|
496
496
|
setFileName(file === null || file === void 0 ? void 0 : file.name);
|
|
497
|
-
setFileType(
|
|
497
|
+
setFileType('pic');
|
|
498
498
|
setVisible(true);
|
|
499
|
-
} else if ([
|
|
499
|
+
} else if (['mp4', 'avi', 'mpeg', 'asf', 'mov', '3gp', 'wmv', 'rmvb'].includes(fileType.toLowerCase())) {
|
|
500
500
|
setFileUrl(file === null || file === void 0 ? void 0 : file.url);
|
|
501
501
|
setFileName(file === null || file === void 0 ? void 0 : file.name);
|
|
502
|
-
setFileType(
|
|
502
|
+
setFileType('video');
|
|
503
503
|
setVisible(true);
|
|
504
504
|
} else {
|
|
505
505
|
window.open(file === null || file === void 0 ? void 0 : file.url);
|
|
@@ -510,9 +510,9 @@ export var FileRender = function FileRender(_ref12) {
|
|
|
510
510
|
fetch(url).then(function (res) {
|
|
511
511
|
return res.blob();
|
|
512
512
|
}).then(function (blob) {
|
|
513
|
-
var a = document.createElement(
|
|
513
|
+
var a = document.createElement('a');
|
|
514
514
|
document.body.appendChild(a);
|
|
515
|
-
a.style.display =
|
|
515
|
+
a.style.display = 'none';
|
|
516
516
|
var url = window.URL.createObjectURL(blob);
|
|
517
517
|
a.href = url;
|
|
518
518
|
a.download = name;
|
|
@@ -526,8 +526,8 @@ export var FileRender = function FileRender(_ref12) {
|
|
|
526
526
|
return /*#__PURE__*/React.createElement(React.Fragment, null, fileList.map(function (item) {
|
|
527
527
|
return /*#__PURE__*/React.createElement("a", {
|
|
528
528
|
style: {
|
|
529
|
-
color:
|
|
530
|
-
cursor:
|
|
529
|
+
color: '#1890ff',
|
|
530
|
+
cursor: 'pointer',
|
|
531
531
|
display: 'block'
|
|
532
532
|
},
|
|
533
533
|
onClick: function onClick(e) {
|
|
@@ -550,20 +550,20 @@ export var FileRender = function FileRender(_ref12) {
|
|
|
550
550
|
}, "\u4E0B\u8F7D") : /*#__PURE__*/React.createElement(CopyToClipboard, {
|
|
551
551
|
text: fileUrl,
|
|
552
552
|
onCopy: function onCopy() {
|
|
553
|
-
message.success(
|
|
553
|
+
message.success('复制成功');
|
|
554
554
|
}
|
|
555
555
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
556
556
|
type: "link"
|
|
557
|
-
}, "\u4E0B\u8F7D\u5730\u5740")), fileType ===
|
|
557
|
+
}, "\u4E0B\u8F7D\u5730\u5740")), fileType === 'pic' ? /*#__PURE__*/React.createElement("img", {
|
|
558
558
|
alt: "example",
|
|
559
559
|
style: {
|
|
560
|
-
width:
|
|
560
|
+
width: '100%'
|
|
561
561
|
},
|
|
562
562
|
src: fileUrl
|
|
563
563
|
}) : /*#__PURE__*/React.createElement("video", {
|
|
564
564
|
style: {
|
|
565
|
-
width:
|
|
566
|
-
height:
|
|
565
|
+
width: '100%',
|
|
566
|
+
height: '100%'
|
|
567
567
|
},
|
|
568
568
|
autoPlay: true,
|
|
569
569
|
controls: true,
|
|
@@ -571,16 +571,26 @@ export var FileRender = function FileRender(_ref12) {
|
|
|
571
571
|
})));
|
|
572
572
|
};
|
|
573
573
|
export var BsSystemOrderTable = function BsSystemOrderTable(_ref13) {
|
|
574
|
-
var value = _ref13.value
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
574
|
+
var value = _ref13.value,
|
|
575
|
+
type = _ref13.type;
|
|
576
|
+
var columns = type === 'WLN_SYSTEM_ORDER' ? [{
|
|
577
|
+
dataIndex: 'billType',
|
|
578
|
+
title: '单据类型'
|
|
578
579
|
}, {
|
|
579
|
-
dataIndex:
|
|
580
|
-
title:
|
|
580
|
+
dataIndex: 'billNo',
|
|
581
|
+
title: '系统订单号'
|
|
581
582
|
}, {
|
|
582
|
-
dataIndex:
|
|
583
|
-
title:
|
|
583
|
+
dataIndex: 'billTag',
|
|
584
|
+
title: '标签'
|
|
585
|
+
}] : [{
|
|
586
|
+
dataIndex: 'billType',
|
|
587
|
+
title: '订单类型'
|
|
588
|
+
}, {
|
|
589
|
+
dataIndex: 'billNo',
|
|
590
|
+
title: '系统订单号'
|
|
591
|
+
}, {
|
|
592
|
+
dataIndex: 'billTag',
|
|
593
|
+
title: '标记'
|
|
584
594
|
}];
|
|
585
595
|
var rowSelection = {
|
|
586
596
|
selectedRowKeys: (value === null || value === void 0 ? void 0 : value.selectIds) || [],
|
|
@@ -596,14 +606,14 @@ export var BsSystemOrderTable = function BsSystemOrderTable(_ref13) {
|
|
|
596
606
|
dataSource: (value === null || value === void 0 ? void 0 : value.showOrderInfo) || [],
|
|
597
607
|
columns: columns,
|
|
598
608
|
rowSelection: rowSelection,
|
|
599
|
-
rowKey:
|
|
609
|
+
rowKey: 'billNo',
|
|
600
610
|
size: "small",
|
|
601
611
|
pagination: false,
|
|
602
612
|
scroll: {
|
|
603
|
-
x:
|
|
613
|
+
x: '100%'
|
|
604
614
|
},
|
|
605
615
|
locale: {
|
|
606
|
-
emptyText:
|
|
616
|
+
emptyText: '暂无数据'
|
|
607
617
|
}
|
|
608
618
|
});
|
|
609
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;
|