@kmkf-fe-packages/services-components 0.23.1-beta.1 → 0.23.1-beta.4
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.js +5 -4
- package/dist/esm/components/BS/BsSystemOrder/index.d.ts +7 -6
- package/dist/esm/components/BS/BsSystemOrder/index.js +22 -19
- package/dist/esm/components/BS/DeliveryNo/index.d.ts +6 -5
- package/dist/esm/components/BS/DeliveryNo/index.js +15 -12
- package/dist/esm/components/BS/common/BsMemo.d.ts +4 -4
- package/dist/esm/components/BS/common/BsMemo.js +16 -15
- package/dist/esm/components/BS/common/BsType.d.ts +4 -4
- package/dist/esm/components/BS/common/BsType.js +14 -13
- package/dist/esm/components/Common/index.d.ts +2 -1
- package/dist/esm/components/Common/index.js +168 -68
- package/dist/esm/components/CommonMultiStatus/index.d.ts +6 -5
- package/dist/esm/components/CommonMultiStatus/index.js +58 -51
- package/dist/esm/components/CommonSystemOrder/index.d.ts +6 -5
- package/dist/esm/components/CommonSystemOrder/index.js +29 -26
- package/dist/esm/components/Input/index.d.ts +7 -6
- package/dist/esm/components/Input/index.js +37 -26
- package/dist/esm/components/JST/JstLogistics/index.d.ts +11 -0
- package/dist/esm/components/JST/JstLogistics/index.js +21 -7
- package/dist/esm/components/Logistics/index.d.ts +6 -6
- package/dist/esm/components/Logistics/index.js +16 -15
- package/dist/esm/components/LogisticsMoreTrajectory/index.d.ts +48 -0
- package/dist/esm/components/LogisticsMoreTrajectory/index.js +119 -0
- package/dist/esm/components/LogisticsMoreTrajectory/trajectoryCode.d.ts +34 -0
- package/dist/esm/components/LogisticsMoreTrajectory/trajectoryCode.js +98 -0
- package/dist/esm/components/LogisticsMoreTrajectory/trajectoryCompany.d.ts +40 -0
- package/dist/esm/components/LogisticsMoreTrajectory/trajectoryCompany.js +95 -0
- package/dist/esm/components/LogisticsMoreTrajectory/trajectorySnapshot.d.ts +32 -0
- package/dist/esm/components/LogisticsMoreTrajectory/trajectorySnapshot.js +74 -0
- package/dist/esm/components/Payment/index.d.ts +12 -12
- package/dist/esm/components/Payment/index.js +11 -12
- package/dist/esm/components/TradeId/index.d.ts +1 -1
- package/dist/esm/components/TradeId/index.js +2 -2
- package/dist/esm/components/WDT/WdtGoods/index.d.ts +33 -0
- package/dist/esm/components/WDT/WdtGoods/index.js +121 -0
- package/dist/esm/constant.d.ts +1 -0
- package/dist/esm/constant.js +8 -0
- package/dist/esm/factory.d.ts +2 -2
- package/dist/esm/factory.js +13 -8
- package/dist/esm/index.d.ts +2 -0
- package/dist/esm/index.js +2 -0
- package/dist/esm/type.d.ts +12 -12
- package/package.json +4 -4
|
@@ -358,78 +358,178 @@ export var BsGoodsTable = function BsGoodsTable(_ref11) {
|
|
|
358
358
|
var list = _ref11.list,
|
|
359
359
|
showHeader = _ref11.showHeader,
|
|
360
360
|
_ref11$text = _ref11.text,
|
|
361
|
-
text = _ref11$text === void 0 ? '' : _ref11$text
|
|
361
|
+
text = _ref11$text === void 0 ? '' : _ref11$text,
|
|
362
|
+
type = _ref11.type;
|
|
362
363
|
//商品信息
|
|
363
|
-
|
|
364
|
+
|
|
365
|
+
var COLUMNS_MAP = function COLUMNS_MAP() {
|
|
364
366
|
var text = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
365
|
-
return
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
367
|
+
return function (type) {
|
|
368
|
+
var columns = [];
|
|
369
|
+
switch (type) {
|
|
370
|
+
case 'WDT_REISSUE_GOODS':
|
|
371
|
+
case 'WDT_GOODS':
|
|
372
|
+
columns = [{
|
|
373
|
+
dataIndex: 'goodId',
|
|
374
|
+
title: "SPUID",
|
|
375
|
+
align: 'center',
|
|
376
|
+
ellipsis: true,
|
|
377
|
+
width: 70
|
|
378
|
+
}, {
|
|
379
|
+
dataIndex: 'goodNo',
|
|
380
|
+
title: "SPU\u5546\u54C1\u7F16\u7801",
|
|
381
|
+
align: 'center',
|
|
382
|
+
ellipsis: true,
|
|
383
|
+
width: 100
|
|
384
|
+
}, {
|
|
385
|
+
dataIndex: 'specId',
|
|
386
|
+
title: "".concat(text, "SKUID"),
|
|
387
|
+
align: 'center',
|
|
388
|
+
ellipsis: true,
|
|
389
|
+
width: 100
|
|
390
|
+
}, {
|
|
391
|
+
dataIndex: 'goodName',
|
|
392
|
+
title: "".concat(text, "\u5546\u54C1\u540D\u79F0"),
|
|
393
|
+
align: 'center',
|
|
394
|
+
ellipsis: true,
|
|
395
|
+
width: 250
|
|
396
|
+
}, {
|
|
397
|
+
dataIndex: 'specNo',
|
|
398
|
+
title: "".concat(text, "sku\u7F16\u7801"),
|
|
399
|
+
align: 'center',
|
|
400
|
+
ellipsis: true,
|
|
401
|
+
width: 100
|
|
402
|
+
}, {
|
|
403
|
+
dataIndex: 'specName',
|
|
404
|
+
title: "".concat(text, "sku\u540D\u79F0"),
|
|
405
|
+
align: 'center',
|
|
406
|
+
ellipsis: true,
|
|
407
|
+
width: 250
|
|
408
|
+
}, {
|
|
409
|
+
dataIndex: 'imgUrl',
|
|
410
|
+
title: "\u56FE\u7247",
|
|
411
|
+
align: 'center',
|
|
412
|
+
ellipsis: true,
|
|
413
|
+
width: 100,
|
|
414
|
+
render: function render(val) {
|
|
415
|
+
return /*#__PURE__*/React.createElement(Image, {
|
|
416
|
+
width: 60,
|
|
417
|
+
src: val
|
|
418
|
+
});
|
|
419
|
+
}
|
|
420
|
+
}, {
|
|
421
|
+
dataIndex: 'orderPrice',
|
|
422
|
+
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
423
|
+
align: 'center',
|
|
424
|
+
ellipsis: true,
|
|
425
|
+
width: 100
|
|
426
|
+
}, {
|
|
427
|
+
dataIndex: 'num',
|
|
428
|
+
title: "".concat(text, "\u4E0B\u5355\u6570\u91CF"),
|
|
429
|
+
align: 'center',
|
|
430
|
+
ellipsis: true,
|
|
431
|
+
width: 100
|
|
432
|
+
}, {
|
|
433
|
+
dataIndex: 'actualNum',
|
|
434
|
+
title: "".concat(text, "\u5B9E\u53D1\u6570\u91CF"),
|
|
435
|
+
align: 'center',
|
|
436
|
+
ellipsis: true,
|
|
437
|
+
width: 100
|
|
438
|
+
}, {
|
|
439
|
+
dataIndex: 'sharePrice',
|
|
440
|
+
title: "\u5206\u644A\u4EF7",
|
|
441
|
+
align: 'center',
|
|
442
|
+
ellipsis: true,
|
|
443
|
+
width: 70
|
|
444
|
+
}, {
|
|
445
|
+
dataIndex: 'giftType',
|
|
446
|
+
title: "\u8D60\u54C1\u7C7B\u578B",
|
|
447
|
+
align: 'center',
|
|
448
|
+
ellipsis: true,
|
|
449
|
+
width: 100
|
|
450
|
+
}];
|
|
451
|
+
break;
|
|
452
|
+
default:
|
|
453
|
+
columns = [{
|
|
454
|
+
dataIndex: 'mark',
|
|
455
|
+
title: "\u5546\u54C1\u6807\u8BB0",
|
|
456
|
+
align: 'center',
|
|
457
|
+
ellipsis: true,
|
|
458
|
+
width: 100
|
|
459
|
+
}, {
|
|
460
|
+
dataIndex: 'skuName',
|
|
461
|
+
title: "".concat(text, "sku\u540D\u79F0"),
|
|
462
|
+
align: 'center',
|
|
463
|
+
ellipsis: true,
|
|
464
|
+
width: 200
|
|
465
|
+
}, {
|
|
466
|
+
dataIndex: 'sku',
|
|
467
|
+
title: "".concat(text, "sku\u7F16\u7801"),
|
|
468
|
+
align: 'center',
|
|
469
|
+
ellipsis: true,
|
|
470
|
+
width: 100
|
|
471
|
+
}, {
|
|
472
|
+
dataIndex: 'name',
|
|
473
|
+
title: "".concat(text, "\u540D\u79F0"),
|
|
474
|
+
align: 'center',
|
|
475
|
+
ellipsis: true,
|
|
476
|
+
width: 200
|
|
477
|
+
}, {
|
|
478
|
+
dataIndex: 'pic',
|
|
479
|
+
title: "\u56FE\u7247",
|
|
480
|
+
align: 'center',
|
|
481
|
+
ellipsis: true,
|
|
482
|
+
width: 100,
|
|
483
|
+
render: function render(val) {
|
|
484
|
+
return /*#__PURE__*/React.createElement(Image, {
|
|
485
|
+
width: 60,
|
|
486
|
+
src: val
|
|
487
|
+
});
|
|
488
|
+
}
|
|
489
|
+
}, {
|
|
490
|
+
dataIndex: 'code',
|
|
491
|
+
title: "".concat(text, "\u7F16\u7801"),
|
|
492
|
+
align: 'center',
|
|
493
|
+
ellipsis: true,
|
|
494
|
+
width: 100
|
|
495
|
+
}, {
|
|
496
|
+
dataIndex: 'money',
|
|
497
|
+
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
498
|
+
align: 'center',
|
|
499
|
+
ellipsis: true,
|
|
500
|
+
width: 100
|
|
501
|
+
}, {
|
|
502
|
+
dataIndex: 'number',
|
|
503
|
+
title: "".concat(text, "\u6570\u91CF"),
|
|
504
|
+
align: 'center',
|
|
505
|
+
ellipsis: true,
|
|
506
|
+
width: 100
|
|
507
|
+
}, {
|
|
508
|
+
dataIndex: 'share',
|
|
509
|
+
title: "\u5206\u644A\u4EF7",
|
|
510
|
+
align: 'center',
|
|
511
|
+
ellipsis: true,
|
|
512
|
+
width: 70
|
|
513
|
+
}, {
|
|
514
|
+
dataIndex: 'type',
|
|
515
|
+
title: "\u8D60\u54C1\u7C7B\u578B",
|
|
516
|
+
align: 'center',
|
|
517
|
+
ellipsis: true,
|
|
518
|
+
width: 100
|
|
519
|
+
}];
|
|
400
520
|
}
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
410
|
-
align: 'center',
|
|
411
|
-
ellipsis: true,
|
|
412
|
-
width: 100
|
|
413
|
-
}, {
|
|
414
|
-
dataIndex: 'number',
|
|
415
|
-
title: "".concat(text, "\u6570\u91CF"),
|
|
416
|
-
align: 'center',
|
|
417
|
-
ellipsis: true,
|
|
418
|
-
width: 100
|
|
419
|
-
}, {
|
|
420
|
-
dataIndex: 'share',
|
|
421
|
-
title: "\u5206\u644A\u4EF7",
|
|
422
|
-
align: 'center',
|
|
423
|
-
ellipsis: true,
|
|
424
|
-
width: 70
|
|
425
|
-
}, {
|
|
426
|
-
dataIndex: 'type',
|
|
427
|
-
title: "\u8D60\u54C1\u7C7B\u578B",
|
|
428
|
-
align: 'center',
|
|
429
|
-
ellipsis: true,
|
|
430
|
-
width: 100
|
|
431
|
-
}];
|
|
521
|
+
return columns;
|
|
522
|
+
};
|
|
523
|
+
};
|
|
524
|
+
//商品信息
|
|
525
|
+
var GOODS_INFO_COLUMNS = function GOODS_INFO_COLUMNS() {
|
|
526
|
+
var text = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
527
|
+
var COLUMNS_INFO = COLUMNS_MAP(text);
|
|
528
|
+
return COLUMNS_INFO(type);
|
|
432
529
|
};
|
|
530
|
+
// const GOODS_INFO_COLUMNS = (text = '') => {
|
|
531
|
+
// return
|
|
532
|
+
// }
|
|
433
533
|
var newColumns = useMemo(function () {
|
|
434
534
|
var columnList = [{
|
|
435
535
|
dataIndex: '',
|
|
@@ -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;
|
|
@@ -25,7 +25,7 @@ declare class CommonMultiStatus implements ComponentInterface {
|
|
|
25
25
|
type: string;
|
|
26
26
|
id: string;
|
|
27
27
|
name: string;
|
|
28
|
-
filterComponentType: "MultipleSelect" | "
|
|
28
|
+
filterComponentType: "MultipleSelect" | "SelectInput";
|
|
29
29
|
props: {
|
|
30
30
|
options: any[] | undefined;
|
|
31
31
|
fieldNames: {
|
|
@@ -34,6 +34,7 @@ declare class CommonMultiStatus implements ComponentInterface {
|
|
|
34
34
|
};
|
|
35
35
|
};
|
|
36
36
|
filterFn: (value: string) => (i: Record) => boolean;
|
|
37
|
+
formatFilterValue: ((value: any) => any) | null;
|
|
37
38
|
};
|
|
38
39
|
}
|
|
39
40
|
export default CommonMultiStatus;
|
|
@@ -8,72 +8,72 @@ 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
37
|
},
|
|
38
38
|
EXCHANGE_STATUS: {
|
|
39
39
|
options: [{
|
|
40
|
-
value:
|
|
41
|
-
label:
|
|
42
|
-
color:
|
|
40
|
+
value: '成功',
|
|
41
|
+
label: '成功',
|
|
42
|
+
color: '#52c41a'
|
|
43
43
|
}, {
|
|
44
|
-
value:
|
|
45
|
-
label:
|
|
46
|
-
color:
|
|
44
|
+
value: '失败',
|
|
45
|
+
label: '失败',
|
|
46
|
+
color: '#ff4d4f'
|
|
47
47
|
}],
|
|
48
|
-
key:
|
|
49
|
-
code:
|
|
50
|
-
name:
|
|
48
|
+
key: 'exchangeReason',
|
|
49
|
+
code: 'exchangeStatusValue',
|
|
50
|
+
name: '换货状态',
|
|
51
51
|
type: 1,
|
|
52
|
-
valueKey:
|
|
53
|
-
idKey:
|
|
54
|
-
failValue:
|
|
52
|
+
valueKey: 'status',
|
|
53
|
+
idKey: 'systemOrderId',
|
|
54
|
+
failValue: '失败'
|
|
55
55
|
},
|
|
56
56
|
WAREHOUSING_STATUS: {
|
|
57
57
|
options: [{
|
|
58
|
-
value:
|
|
59
|
-
label:
|
|
60
|
-
color:
|
|
58
|
+
value: '2',
|
|
59
|
+
label: '已入库',
|
|
60
|
+
color: '#52c41a'
|
|
61
61
|
}, {
|
|
62
|
-
value:
|
|
63
|
-
label:
|
|
64
|
-
color:
|
|
62
|
+
value: '1',
|
|
63
|
+
label: '部分入库',
|
|
64
|
+
color: '#e7780f'
|
|
65
65
|
}, {
|
|
66
|
-
value:
|
|
67
|
-
label:
|
|
68
|
-
color:
|
|
66
|
+
value: '0',
|
|
67
|
+
label: '未入库',
|
|
68
|
+
color: '#ff4d4f'
|
|
69
69
|
}],
|
|
70
|
-
key:
|
|
71
|
-
code:
|
|
72
|
-
name:
|
|
70
|
+
key: 'inStockStatusItemList',
|
|
71
|
+
code: 'inStockStatusList',
|
|
72
|
+
name: '商品入库状态(勿填)',
|
|
73
73
|
type: 2,
|
|
74
|
-
valueKey:
|
|
75
|
-
idKey:
|
|
76
|
-
failValue:
|
|
74
|
+
valueKey: 'status',
|
|
75
|
+
idKey: 'systemOrderId',
|
|
76
|
+
failValue: '失败'
|
|
77
77
|
}
|
|
78
78
|
};
|
|
79
79
|
var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(options) {
|
|
@@ -144,8 +144,8 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
|
|
|
144
144
|
var _typeMap$_this$type14;
|
|
145
145
|
return item[(_typeMap$_this$type14 = typeMap[_this.type]) === null || _typeMap$_this$type14 === void 0 ? void 0 : _typeMap$_this$type14.valueKey] === option.value;
|
|
146
146
|
});
|
|
147
|
-
return "".concat(item === null || item === void 0 ? void 0 : item[(_typeMap$_this$type15 = typeMap[_this.type]) === null || _typeMap$_this$type15 === void 0 ? void 0 : _typeMap$_this$type15.idKey], ":").concat(currentOption ? (currentOption === null || currentOption === void 0 ? void 0 : currentOption.label) ||
|
|
148
|
-
}).join(
|
|
147
|
+
return "".concat(item === null || item === void 0 ? void 0 : item[(_typeMap$_this$type15 = typeMap[_this.type]) === null || _typeMap$_this$type15 === void 0 ? void 0 : _typeMap$_this$type15.idKey], ":").concat(currentOption ? (currentOption === null || currentOption === void 0 ? void 0 : currentOption.label) || '' : (item === null || item === void 0 ? void 0 : item[(_typeMap$_this$type16 = typeMap[_this.type]) === null || _typeMap$_this$type16 === void 0 ? void 0 : _typeMap$_this$type16.valueKey]) || '');
|
|
148
|
+
}).join(',');
|
|
149
149
|
});
|
|
150
150
|
_defineProperty(this, "editRender", function (p) {
|
|
151
151
|
var _this$componentConfig, _this$componentConfig2, _typeMap$_this$type17;
|
|
@@ -164,16 +164,16 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
|
|
|
164
164
|
_defineProperty(this, "filterConfig", function (item) {
|
|
165
165
|
var _typeMap$_this$type18, _item$templateConfig;
|
|
166
166
|
return {
|
|
167
|
-
searchDefaultConditions: _this.type ===
|
|
167
|
+
searchDefaultConditions: _this.type === 'WAREHOUSING_STATUS' ? SYMBOL.in : SYMBOL.like,
|
|
168
168
|
type: item.type,
|
|
169
169
|
id: "".concat(item.id, "_").concat((_typeMap$_this$type18 = typeMap[_this.type]) === null || _typeMap$_this$type18 === void 0 ? void 0 : _typeMap$_this$type18.code),
|
|
170
170
|
name: "".concat(_this.name),
|
|
171
|
-
filterComponentType: _this.type ===
|
|
171
|
+
filterComponentType: _this.type === 'WAREHOUSING_STATUS' ? 'MultipleSelect' : 'SelectInput',
|
|
172
172
|
props: {
|
|
173
173
|
options: item === null || item === void 0 ? void 0 : (_item$templateConfig = item.templateConfig) === null || _item$templateConfig === void 0 ? void 0 : _item$templateConfig.reasonList,
|
|
174
174
|
fieldNames: {
|
|
175
|
-
label:
|
|
176
|
-
value:
|
|
175
|
+
label: 'label',
|
|
176
|
+
value: 'value'
|
|
177
177
|
}
|
|
178
178
|
},
|
|
179
179
|
filterFn: function filterFn(value) {
|
|
@@ -181,6 +181,13 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
|
|
|
181
181
|
var _typeMap$_this$type19;
|
|
182
182
|
return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, (_typeMap$_this$type19 = typeMap[_this.type]) === null || _typeMap$_this$type19 === void 0 ? void 0 : _typeMap$_this$type19.code), value);
|
|
183
183
|
};
|
|
184
|
+
},
|
|
185
|
+
formatFilterValue: _this.type === 'WAREHOUSING_STATUS' ? null : function (value) {
|
|
186
|
+
if (value.type === 'keywords') {
|
|
187
|
+
return value.keywords;
|
|
188
|
+
} else {
|
|
189
|
+
return value;
|
|
190
|
+
}
|
|
184
191
|
}
|
|
185
192
|
};
|
|
186
193
|
});
|
|
@@ -195,7 +202,7 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
|
|
|
195
202
|
this.isCombinationComponent = false;
|
|
196
203
|
this.canSort = false;
|
|
197
204
|
this.children = [];
|
|
198
|
-
this.dataType =
|
|
205
|
+
this.dataType = 'object';
|
|
199
206
|
this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
|
|
200
207
|
required: true,
|
|
201
208
|
validator: function validator(_, value) {
|
|
@@ -210,6 +217,6 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
|
|
|
210
217
|
return Promise.resolve();
|
|
211
218
|
}
|
|
212
219
|
}] : [];
|
|
213
|
-
this.align =
|
|
220
|
+
this.align = 'left';
|
|
214
221
|
});
|
|
215
222
|
export default CommonMultiStatus;
|
|
@@ -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 CommonSystemOrder 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;
|
|
@@ -21,12 +21,13 @@ declare class CommonSystemOrder implements ComponentInterface {
|
|
|
21
21
|
renderExport: (value: any, record: any) => any;
|
|
22
22
|
editRender: (p: any) => React.JSX.Element;
|
|
23
23
|
filterConfig: (item: ColumnConfig) => {
|
|
24
|
-
searchDefaultConditions: "
|
|
24
|
+
searchDefaultConditions: "in";
|
|
25
25
|
type: string;
|
|
26
26
|
id: string;
|
|
27
27
|
name: string;
|
|
28
28
|
filterComponentType: "Input";
|
|
29
29
|
filterFn: (value: string) => (i: Record) => boolean;
|
|
30
|
+
formatFilterValue: (input: string) => string | string[];
|
|
30
31
|
};
|
|
31
32
|
}
|
|
32
33
|
export default CommonSystemOrder;
|
|
@@ -6,42 +6,42 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
6
6
|
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; }
|
|
7
7
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
8
8
|
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); }
|
|
9
|
-
import React from
|
|
10
|
-
import some from
|
|
9
|
+
import React from 'react';
|
|
10
|
+
import some from 'lodash/some';
|
|
11
11
|
import GetFormItem from "../GetFormItem";
|
|
12
12
|
import { CommonOrderContent } from "../Common";
|
|
13
|
-
import { CommonSystemOrder as SystemOrder } from
|
|
13
|
+
import { CommonSystemOrder as SystemOrder } from '@kmkf-fe-packages/basic-components';
|
|
14
14
|
import ItemView from "../../commonComponents/ItemView";
|
|
15
|
-
import { isNull, filterFn as _filterFn } from
|
|
16
|
-
import { SYMBOL } from "../../constant";
|
|
15
|
+
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
16
|
+
import { SYMBOL, batchInput } from "../../constant";
|
|
17
17
|
var typeMap = {
|
|
18
18
|
BS_DELIVERY_NO: {
|
|
19
|
-
key:
|
|
20
|
-
code:
|
|
21
|
-
name:
|
|
19
|
+
key: 'deliveryNoList',
|
|
20
|
+
code: 'deliveryNoIds',
|
|
21
|
+
name: '出库单',
|
|
22
22
|
type: 1,
|
|
23
|
-
valueKey:
|
|
23
|
+
valueKey: 'deliveryNo'
|
|
24
24
|
},
|
|
25
25
|
RETURN_GOODS_TRADE_ID: {
|
|
26
|
-
key:
|
|
27
|
-
code:
|
|
28
|
-
name:
|
|
26
|
+
key: 'returnGoodsTradeItemList',
|
|
27
|
+
code: 'returnGoodsTradeIdList',
|
|
28
|
+
name: '退货单id',
|
|
29
29
|
type: 2,
|
|
30
|
-
valueKey:
|
|
30
|
+
valueKey: 'returnGoodsTradeId'
|
|
31
31
|
},
|
|
32
32
|
REISSUE_TRADE_ID: {
|
|
33
|
-
key:
|
|
34
|
-
code:
|
|
35
|
-
name:
|
|
33
|
+
key: 'tradeItemList',
|
|
34
|
+
code: 'tradeIdList',
|
|
35
|
+
name: '补发单id',
|
|
36
36
|
type: 3,
|
|
37
|
-
valueKey:
|
|
37
|
+
valueKey: 'billNo'
|
|
38
38
|
},
|
|
39
39
|
EXCHANGE_TRADE_ID: {
|
|
40
|
-
key:
|
|
41
|
-
code:
|
|
42
|
-
name:
|
|
40
|
+
key: 'tradeItemList',
|
|
41
|
+
code: 'tradeIdList',
|
|
42
|
+
name: '换货单id',
|
|
43
43
|
type: 4,
|
|
44
|
-
valueKey:
|
|
44
|
+
valueKey: 'billNo'
|
|
45
45
|
}
|
|
46
46
|
};
|
|
47
47
|
var CommonSystemOrder = /*#__PURE__*/_createClass(function CommonSystemOrder(options) {
|
|
@@ -106,7 +106,7 @@ var CommonSystemOrder = /*#__PURE__*/_createClass(function CommonSystemOrder(opt
|
|
|
106
106
|
return (list || []).map(function (item) {
|
|
107
107
|
var _typeMap$_this$type8;
|
|
108
108
|
return item === null || item === void 0 ? void 0 : item[(_typeMap$_this$type8 = typeMap[_this.type]) === null || _typeMap$_this$type8 === void 0 ? void 0 : _typeMap$_this$type8.valueKey];
|
|
109
|
-
}).join(
|
|
109
|
+
}).join(',');
|
|
110
110
|
});
|
|
111
111
|
_defineProperty(this, "editRender", function (p) {
|
|
112
112
|
var _this$componentConfig, _this$componentConfig2, _typeMap$_this$type9;
|
|
@@ -124,16 +124,19 @@ var CommonSystemOrder = /*#__PURE__*/_createClass(function CommonSystemOrder(opt
|
|
|
124
124
|
_defineProperty(this, "filterConfig", function (item) {
|
|
125
125
|
var _typeMap$_this$type10;
|
|
126
126
|
return {
|
|
127
|
-
searchDefaultConditions: SYMBOL.
|
|
127
|
+
searchDefaultConditions: SYMBOL.in,
|
|
128
128
|
type: item.type,
|
|
129
129
|
id: "".concat(item.id, "_").concat((_typeMap$_this$type10 = typeMap[_this.type]) === null || _typeMap$_this$type10 === void 0 ? void 0 : _typeMap$_this$type10.code),
|
|
130
130
|
name: "".concat(_this.name),
|
|
131
|
-
filterComponentType:
|
|
131
|
+
filterComponentType: 'Input',
|
|
132
132
|
filterFn: function filterFn(value) {
|
|
133
133
|
return function (i) {
|
|
134
134
|
var _typeMap$_this$type11;
|
|
135
135
|
return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, (_typeMap$_this$type11 = typeMap[_this.type]) === null || _typeMap$_this$type11 === void 0 ? void 0 : _typeMap$_this$type11.code), value);
|
|
136
136
|
};
|
|
137
|
+
},
|
|
138
|
+
formatFilterValue: function formatFilterValue(input) {
|
|
139
|
+
return batchInput(input);
|
|
137
140
|
}
|
|
138
141
|
};
|
|
139
142
|
});
|
|
@@ -146,7 +149,7 @@ var CommonSystemOrder = /*#__PURE__*/_createClass(function CommonSystemOrder(opt
|
|
|
146
149
|
this.isCombinationComponent = false;
|
|
147
150
|
this.canSort = false;
|
|
148
151
|
this.children = [];
|
|
149
|
-
this.dataType =
|
|
152
|
+
this.dataType = 'object';
|
|
150
153
|
this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
|
|
151
154
|
required: true,
|
|
152
155
|
validator: function validator(_, value) {
|
|
@@ -161,6 +164,6 @@ var CommonSystemOrder = /*#__PURE__*/_createClass(function CommonSystemOrder(opt
|
|
|
161
164
|
return Promise.resolve();
|
|
162
165
|
}
|
|
163
166
|
}] : [];
|
|
164
|
-
this.align =
|
|
167
|
+
this.align = 'left';
|
|
165
168
|
});
|
|
166
169
|
export default CommonSystemOrder;
|
|
@@ -1,17 +1,17 @@
|
|
|
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 BasicInput 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[
|
|
14
|
+
dataType: ComponentInterface["dataType"];
|
|
15
15
|
templateId?: string;
|
|
16
16
|
workOrderUniqueKey?: string;
|
|
17
17
|
constructor(options: PickOption);
|
|
@@ -22,12 +22,13 @@ declare class BasicInput implements ComponentInterface {
|
|
|
22
22
|
renderClient: (record: Record) => React.JSX.Element | null;
|
|
23
23
|
editRender: (p: any) => React.JSX.Element;
|
|
24
24
|
filterConfig: (item: ColumnConfig) => {
|
|
25
|
-
searchDefaultConditions: "
|
|
25
|
+
searchDefaultConditions: "in";
|
|
26
26
|
type: string;
|
|
27
27
|
id: string;
|
|
28
28
|
name: string;
|
|
29
|
-
filterComponentType: "
|
|
29
|
+
filterComponentType: "SelectInput";
|
|
30
30
|
filterFn: (value: string) => (i: Record) => boolean;
|
|
31
|
+
formatFilterValue: (value: any) => any;
|
|
31
32
|
};
|
|
32
33
|
}
|
|
33
34
|
export default BasicInput;
|