@kmkf-fe-packages/services-components 1.26.1 → 1.28.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/commonComponents/CopyText/index.d.ts +1 -1
- package/dist/esm/commonComponents/GlobalContext/index.d.ts +1 -1
- package/dist/esm/commonComponents/GlobalContext/index.js +1 -0
- package/dist/esm/components/BS/BsSystemOrder/index.js +6 -163
- package/dist/esm/components/BS/common/BsMemo.d.ts +4 -4
- package/dist/esm/components/BS/common/BsMemo.js +19 -18
- package/dist/esm/components/BS/common/BsType.d.ts +4 -4
- package/dist/esm/components/BS/common/BsType.js +17 -16
- package/dist/esm/components/BS/common/SystemOrderNo.js +2 -1
- package/dist/esm/components/Common/constants/bs.d.ts +3 -0
- package/dist/esm/components/Common/constants/bs.js +90 -0
- package/dist/esm/components/Common/constants/bs_e3.d.ts +3 -0
- package/dist/esm/components/Common/constants/bs_e3.js +154 -0
- package/dist/esm/components/Common/constants/columnsBaseInfoMap.d.ts +5 -0
- package/dist/esm/components/Common/constants/columnsBaseInfoMap.js +26 -0
- package/dist/esm/components/Common/constants/defaultColumns.d.ts +3 -0
- package/dist/esm/components/Common/constants/defaultColumns.js +76 -0
- package/dist/esm/components/Common/constants/gy.d.ts +3 -0
- package/dist/esm/components/Common/constants/gy.js +153 -0
- package/dist/esm/components/Common/constants/system.d.ts +3 -0
- package/dist/esm/components/Common/constants/system.js +58 -0
- package/dist/esm/components/Common/constants/wdt.d.ts +3 -0
- package/dist/esm/components/Common/constants/wdt.js +280 -0
- package/dist/esm/components/Common/index.js +20 -743
- package/dist/esm/components/CommonHeaderGood/index.js +196 -0
- package/dist/esm/components/GY/GyGoods/index.d.ts +33 -0
- package/dist/esm/components/GY/GyGoods/index.js +123 -0
- package/dist/esm/components/GY/GyReissue/index.d.ts +58 -0
- package/dist/esm/components/GY/GyReissue/index.js +188 -0
- package/dist/esm/components/JST/JstSendGood/index.js +22 -13
- package/dist/esm/components/KmErpSendGood/index.js +11 -11
- package/dist/esm/components/PostIng/index.js +3 -2
- package/dist/esm/components/ReceiverAddress/index.js +74 -8
- package/dist/esm/components/Reissue/Logistics/index.d.ts +10 -1
- package/dist/esm/components/Reissue/Logistics/index.js +39 -10
- package/dist/esm/factory.d.ts +2 -2
- package/dist/esm/factory.js +7 -1
- package/dist/esm/index.d.ts +2 -0
- package/dist/esm/index.js +2 -0
- package/dist/esm/service/api.d.ts +1 -0
- package/dist/esm/service/api.js +47 -38
- package/dist/esm/type.d.ts +1 -1
- package/package.json +4 -4
|
@@ -14,13 +14,14 @@ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefine
|
|
|
14
14
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
15
15
|
import { Form, Button, Modal, Tooltip, Space, Image, Popover, Table, message, Typography } from "antd";
|
|
16
16
|
import React, { useState, useMemo } from "react";
|
|
17
|
-
import { ExpressData, SendDataCenter
|
|
17
|
+
import { ExpressData, SendDataCenter } from "@kmkf-fe-packages/kmkf-utils";
|
|
18
18
|
import { getAlipayBillReceipt } from "../../service/api";
|
|
19
19
|
import { CopyToClipboard } from "react-copy-to-clipboard";
|
|
20
20
|
import styles from "./index.module.less";
|
|
21
21
|
import defaultImg from "./img/default-img.png";
|
|
22
22
|
import CopyText from "../../commonComponents/CopyText";
|
|
23
|
-
import { KM_SYSTEM_ORDER_CONFIG, msgTypeCh, getMapping, columnsGoodsList } from "@kmkf-fe-packages/kmkf-utils";
|
|
23
|
+
import { KM_SYSTEM_ORDER_CONFIG, GY_SYSTEM_ORDER_CONFIG, BS_SYSTEM_ORDER_CONFIG, WLN_SYSTEM_ORDER_CONFIG, WDT_SYSTEM_ORDER_CONFIG, BS_E3_SYSTEM_ORDER_CONFIG, msgTypeCh, getMapping, columnsGoodsList } from "@kmkf-fe-packages/kmkf-utils";
|
|
24
|
+
import { getColumnsMap } from "./constants/columnsBaseInfoMap";
|
|
24
25
|
var Paragraph = Typography.Paragraph;
|
|
25
26
|
export var getFormItem = function getFormItem(_ref) {
|
|
26
27
|
var name = _ref.name,
|
|
@@ -266,8 +267,9 @@ export var JstGoodImage = function JstGoodImage(_ref6) {
|
|
|
266
267
|
return SendDataCenter.getInstance(platformType).getSendNameByCode(item.sendName);
|
|
267
268
|
};
|
|
268
269
|
return list !== null && list !== void 0 && list.length ? (list || []).map(function (item, index) {
|
|
269
|
-
var logisticsCompany = item.logisticsCompany
|
|
270
|
-
|
|
270
|
+
var logisticsCompany = item.logisticsCompany,
|
|
271
|
+
logisticsCompanyName = item.logisticsCompanyName;
|
|
272
|
+
var company = platformType === "gy" ? logisticsCompanyName : ExpressData.getInstance(platformType).getExpressNameByCode(logisticsCompany);
|
|
271
273
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Popover, {
|
|
272
274
|
content: content(item, index),
|
|
273
275
|
overlayStyle: {
|
|
@@ -331,8 +333,8 @@ export var CommonOrderContent = function CommonOrderContent(_ref8) {
|
|
|
331
333
|
id: item.returnLogisticsCode
|
|
332
334
|
};
|
|
333
335
|
return {
|
|
334
|
-
text: "
|
|
335
|
-
id: item.systemOrderId
|
|
336
|
+
text: "\u7CFB\u7EDF\u8BA2\u5355\u53F7".concat(index + 1),
|
|
337
|
+
id: item.systemOrderId || item.systemOrderNo
|
|
336
338
|
};
|
|
337
339
|
};
|
|
338
340
|
var orderContent = function orderContent(item, index) {
|
|
@@ -454,633 +456,11 @@ export var BsGoodsTable = function BsGoodsTable(_ref11) {
|
|
|
454
456
|
var COLUMNS_MAP = function COLUMNS_MAP() {
|
|
455
457
|
var text = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "";
|
|
456
458
|
return function (type) {
|
|
457
|
-
var
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
title: "商品名称",
|
|
463
|
-
align: "center",
|
|
464
|
-
ellipsis: true,
|
|
465
|
-
width: 200
|
|
466
|
-
}, {
|
|
467
|
-
dataIndex: "outerId",
|
|
468
|
-
title: "商品编码",
|
|
469
|
-
align: "center",
|
|
470
|
-
ellipsis: true,
|
|
471
|
-
width: 140
|
|
472
|
-
}, {
|
|
473
|
-
dataIndex: "picUrl",
|
|
474
|
-
title: "图片",
|
|
475
|
-
align: "center",
|
|
476
|
-
ellipsis: true,
|
|
477
|
-
width: 100,
|
|
478
|
-
render: function render(val) {
|
|
479
|
-
return /*#__PURE__*/React.createElement(Image, {
|
|
480
|
-
width: 60,
|
|
481
|
-
src: val
|
|
482
|
-
});
|
|
483
|
-
}
|
|
484
|
-
}, {
|
|
485
|
-
dataIndex: "numIid",
|
|
486
|
-
title: "商品id",
|
|
487
|
-
align: "center",
|
|
488
|
-
ellipsis: true,
|
|
489
|
-
width: 200
|
|
490
|
-
}, {
|
|
491
|
-
dataIndex: "skuId",
|
|
492
|
-
title: "SKU ID",
|
|
493
|
-
align: "center",
|
|
494
|
-
ellipsis: true,
|
|
495
|
-
width: 200
|
|
496
|
-
}, {
|
|
497
|
-
dataIndex: "outerSkuId",
|
|
498
|
-
title: "SKU 编码",
|
|
499
|
-
align: "center",
|
|
500
|
-
ellipsis: true,
|
|
501
|
-
width: 100
|
|
502
|
-
}, {
|
|
503
|
-
dataIndex: "propertiesName",
|
|
504
|
-
title: "SKU 信息",
|
|
505
|
-
align: "center",
|
|
506
|
-
ellipsis: true,
|
|
507
|
-
width: 200
|
|
508
|
-
}];
|
|
509
|
-
break;
|
|
510
|
-
case "WDT_REISSUE_GOODS":
|
|
511
|
-
case "WDT_GOODS":
|
|
512
|
-
columns = [{
|
|
513
|
-
dataIndex: "goodId",
|
|
514
|
-
title: "\u5546\u54C1ID",
|
|
515
|
-
align: "center",
|
|
516
|
-
ellipsis: true,
|
|
517
|
-
width: 70
|
|
518
|
-
}, {
|
|
519
|
-
dataIndex: "goodNo",
|
|
520
|
-
title: "\u5546\u54C1\u7F16\u7801",
|
|
521
|
-
align: "center",
|
|
522
|
-
ellipsis: true,
|
|
523
|
-
width: 180
|
|
524
|
-
}, {
|
|
525
|
-
dataIndex: "goodName",
|
|
526
|
-
title: "".concat(text, "\u5546\u54C1\u540D\u79F0"),
|
|
527
|
-
align: "center",
|
|
528
|
-
ellipsis: true,
|
|
529
|
-
width: 250
|
|
530
|
-
}, {
|
|
531
|
-
dataIndex: "specId",
|
|
532
|
-
title: "".concat(text, "SKUID"),
|
|
533
|
-
align: "center",
|
|
534
|
-
ellipsis: true,
|
|
535
|
-
width: 100
|
|
536
|
-
}, {
|
|
537
|
-
dataIndex: "specNo",
|
|
538
|
-
title: "".concat(text, "\u5546\u54C1SKU\u7F16\u7801"),
|
|
539
|
-
align: "center",
|
|
540
|
-
ellipsis: true,
|
|
541
|
-
width: 180
|
|
542
|
-
}, {
|
|
543
|
-
dataIndex: "specName",
|
|
544
|
-
title: "".concat(text, "\u5546\u54C1SKU\u540D\u79F0"),
|
|
545
|
-
align: "center",
|
|
546
|
-
ellipsis: true,
|
|
547
|
-
width: 250
|
|
548
|
-
}, {
|
|
549
|
-
dataIndex: "imgUrl",
|
|
550
|
-
title: "\u56FE\u7247",
|
|
551
|
-
align: "center",
|
|
552
|
-
ellipsis: true,
|
|
553
|
-
width: 100,
|
|
554
|
-
render: function render(val) {
|
|
555
|
-
return /*#__PURE__*/React.createElement(Image, {
|
|
556
|
-
width: 60,
|
|
557
|
-
src: val
|
|
558
|
-
});
|
|
559
|
-
}
|
|
560
|
-
}, {
|
|
561
|
-
dataIndex: "orderPrice",
|
|
562
|
-
title: "\u5B9E\u4ED8\u603B\u91D1\u989D",
|
|
563
|
-
align: "center",
|
|
564
|
-
ellipsis: true,
|
|
565
|
-
width: 100
|
|
566
|
-
}, {
|
|
567
|
-
dataIndex: "num",
|
|
568
|
-
title: "".concat(text, "\u6570\u91CF"),
|
|
569
|
-
align: "center",
|
|
570
|
-
ellipsis: true,
|
|
571
|
-
width: 100
|
|
572
|
-
},
|
|
573
|
-
// {
|
|
574
|
-
// dataIndex: 'actualNum',
|
|
575
|
-
// title: `${text}实发数量`,
|
|
576
|
-
// align: 'center',
|
|
577
|
-
// ellipsis: true,
|
|
578
|
-
// width: 100,
|
|
579
|
-
// },
|
|
580
|
-
{
|
|
581
|
-
dataIndex: "sharePrice",
|
|
582
|
-
title: "\u5206\u644A\u4EF7",
|
|
583
|
-
align: "center",
|
|
584
|
-
ellipsis: true,
|
|
585
|
-
width: 70
|
|
586
|
-
}, {
|
|
587
|
-
dataIndex: "giftType",
|
|
588
|
-
title: "\u8D60\u54C1\u65B9\u5F0F",
|
|
589
|
-
align: "center",
|
|
590
|
-
ellipsis: true,
|
|
591
|
-
width: 100,
|
|
592
|
-
render: function render(val) {
|
|
593
|
-
var giftTypeMap = {
|
|
594
|
-
0: "非赠品",
|
|
595
|
-
1: "自动赠送",
|
|
596
|
-
2: "手工赠送",
|
|
597
|
-
3: "回购自动送赠品",
|
|
598
|
-
4: "前N有礼送赠品",
|
|
599
|
-
6: "天猫优仓赠品",
|
|
600
|
-
7: "淘宝CRM会员送赠"
|
|
601
|
-
};
|
|
602
|
-
return /*#__PURE__*/React.createElement("span", null, giftTypeMap[val]);
|
|
603
|
-
}
|
|
604
|
-
}];
|
|
605
|
-
break;
|
|
606
|
-
case "WDT_RETURN_GOODS":
|
|
607
|
-
{
|
|
608
|
-
columns = [{
|
|
609
|
-
dataIndex: "goodId",
|
|
610
|
-
title: "\u5546\u54C1ID",
|
|
611
|
-
align: "center",
|
|
612
|
-
ellipsis: true,
|
|
613
|
-
width: 70
|
|
614
|
-
}, {
|
|
615
|
-
dataIndex: "goodNo",
|
|
616
|
-
title: "\u5546\u54C1\u7F16\u7801",
|
|
617
|
-
align: "center",
|
|
618
|
-
ellipsis: true,
|
|
619
|
-
width: 180
|
|
620
|
-
}, {
|
|
621
|
-
dataIndex: "goodName",
|
|
622
|
-
title: "".concat(text, "\u5546\u54C1\u540D\u79F0"),
|
|
623
|
-
align: "center",
|
|
624
|
-
ellipsis: true,
|
|
625
|
-
width: 250
|
|
626
|
-
}, {
|
|
627
|
-
dataIndex: "specId",
|
|
628
|
-
title: "".concat(text, "SKUID"),
|
|
629
|
-
align: "center",
|
|
630
|
-
ellipsis: true,
|
|
631
|
-
width: 100
|
|
632
|
-
}, {
|
|
633
|
-
dataIndex: "specNo",
|
|
634
|
-
title: "".concat(text, "\u5546\u54C1SKU\u7F16\u7801"),
|
|
635
|
-
align: "center",
|
|
636
|
-
ellipsis: true,
|
|
637
|
-
width: 180
|
|
638
|
-
}, {
|
|
639
|
-
dataIndex: "specName",
|
|
640
|
-
title: "".concat(text, "\u5546\u54C1SKU\u540D\u79F0"),
|
|
641
|
-
align: "center",
|
|
642
|
-
ellipsis: true,
|
|
643
|
-
width: 250
|
|
644
|
-
}, {
|
|
645
|
-
dataIndex: "num",
|
|
646
|
-
title: "".concat(text, "\u9000\u8D27\u6570\u91CF"),
|
|
647
|
-
align: "center",
|
|
648
|
-
ellipsis: true,
|
|
649
|
-
width: 100
|
|
650
|
-
}, {
|
|
651
|
-
dataIndex: "sharePrice",
|
|
652
|
-
title: "\u5206\u644A\u4EF7",
|
|
653
|
-
align: "center",
|
|
654
|
-
ellipsis: true,
|
|
655
|
-
width: 80
|
|
656
|
-
}, {
|
|
657
|
-
dataIndex: "returnPrice",
|
|
658
|
-
title: "".concat(text, "\u9000\u8D27\u91D1\u989D"),
|
|
659
|
-
align: "center",
|
|
660
|
-
ellipsis: true,
|
|
661
|
-
width: 100
|
|
662
|
-
}, {
|
|
663
|
-
dataIndex: "giftType",
|
|
664
|
-
title: "\u8D60\u54C1\u65B9\u5F0F",
|
|
665
|
-
align: "center",
|
|
666
|
-
ellipsis: true,
|
|
667
|
-
width: 100,
|
|
668
|
-
render: function render(val) {
|
|
669
|
-
var giftTypeMap = {
|
|
670
|
-
0: "非赠品",
|
|
671
|
-
1: "自动赠送",
|
|
672
|
-
2: "手工赠送",
|
|
673
|
-
3: "回购自动送赠品",
|
|
674
|
-
4: "前N有礼送赠品",
|
|
675
|
-
6: "天猫优仓赠品",
|
|
676
|
-
7: "淘宝CRM会员送赠"
|
|
677
|
-
};
|
|
678
|
-
return /*#__PURE__*/React.createElement("span", null, giftTypeMap[val]);
|
|
679
|
-
}
|
|
680
|
-
}, {
|
|
681
|
-
dataIndex: "type",
|
|
682
|
-
title: "".concat(text, "\u5546\u54C1\u7C7B\u578B"),
|
|
683
|
-
align: "center",
|
|
684
|
-
ellipsis: true,
|
|
685
|
-
width: 100,
|
|
686
|
-
render: function render(val) {
|
|
687
|
-
var typeMap = {
|
|
688
|
-
"1": "单品",
|
|
689
|
-
"2": "组合装"
|
|
690
|
-
};
|
|
691
|
-
return /*#__PURE__*/React.createElement("span", null, typeMap[val]);
|
|
692
|
-
}
|
|
693
|
-
}];
|
|
694
|
-
}
|
|
695
|
-
break;
|
|
696
|
-
case "WDT_EXCHANGE_GOODS":
|
|
697
|
-
{
|
|
698
|
-
columns = [{
|
|
699
|
-
dataIndex: "goodId",
|
|
700
|
-
title: "\u5546\u54C1ID",
|
|
701
|
-
align: "center",
|
|
702
|
-
ellipsis: true,
|
|
703
|
-
width: 70
|
|
704
|
-
}, {
|
|
705
|
-
dataIndex: "goodNo",
|
|
706
|
-
title: "\u5546\u54C1\u7F16\u7801",
|
|
707
|
-
align: "center",
|
|
708
|
-
ellipsis: true,
|
|
709
|
-
width: 180
|
|
710
|
-
}, {
|
|
711
|
-
dataIndex: "goodName",
|
|
712
|
-
title: "".concat(text, "\u5546\u54C1\u540D\u79F0"),
|
|
713
|
-
align: "center",
|
|
714
|
-
ellipsis: true,
|
|
715
|
-
width: 250
|
|
716
|
-
}, {
|
|
717
|
-
dataIndex: "specId",
|
|
718
|
-
title: "".concat(text, "SKUID"),
|
|
719
|
-
align: "center",
|
|
720
|
-
ellipsis: true,
|
|
721
|
-
width: 100
|
|
722
|
-
}, {
|
|
723
|
-
dataIndex: "specNo",
|
|
724
|
-
title: "".concat(text, "\u5546\u54C1SKU\u7F16\u7801"),
|
|
725
|
-
align: "center",
|
|
726
|
-
ellipsis: true,
|
|
727
|
-
width: 180
|
|
728
|
-
}, {
|
|
729
|
-
dataIndex: "specName",
|
|
730
|
-
title: "".concat(text, "\u5546\u54C1SKU\u540D\u79F0"),
|
|
731
|
-
align: "center",
|
|
732
|
-
ellipsis: true,
|
|
733
|
-
width: 250
|
|
734
|
-
}, {
|
|
735
|
-
dataIndex: "num",
|
|
736
|
-
title: "".concat(text, "\u6362\u51FA\u6570\u91CF"),
|
|
737
|
-
align: "center",
|
|
738
|
-
ellipsis: true,
|
|
739
|
-
width: 100
|
|
740
|
-
}, {
|
|
741
|
-
dataIndex: "price",
|
|
742
|
-
title: "".concat(text, "\u5546\u54C1\u5355\u4EF7"),
|
|
743
|
-
align: "center",
|
|
744
|
-
ellipsis: true,
|
|
745
|
-
width: 100
|
|
746
|
-
}, {
|
|
747
|
-
dataIndex: "exchangePrice",
|
|
748
|
-
title: "".concat(text, "\u6362\u51FA\u91D1\u989D"),
|
|
749
|
-
align: "center",
|
|
750
|
-
ellipsis: true,
|
|
751
|
-
width: 100
|
|
752
|
-
}, {
|
|
753
|
-
dataIndex: "giftType",
|
|
754
|
-
title: "\u8D60\u54C1\u65B9\u5F0F",
|
|
755
|
-
align: "center",
|
|
756
|
-
ellipsis: true,
|
|
757
|
-
width: 100,
|
|
758
|
-
render: function render(val) {
|
|
759
|
-
var giftTypeMap = {
|
|
760
|
-
0: "非赠品",
|
|
761
|
-
1: "自动赠送",
|
|
762
|
-
2: "手工赠送",
|
|
763
|
-
3: "回购自动送赠品",
|
|
764
|
-
4: "前N有礼送赠品",
|
|
765
|
-
6: "天猫优仓赠品",
|
|
766
|
-
7: "淘宝CRM会员送赠"
|
|
767
|
-
};
|
|
768
|
-
return /*#__PURE__*/React.createElement("span", null, giftTypeMap[val]);
|
|
769
|
-
}
|
|
770
|
-
}, {
|
|
771
|
-
dataIndex: "type",
|
|
772
|
-
title: "".concat(text, "\u5546\u54C1\u7C7B\u578B"),
|
|
773
|
-
align: "center",
|
|
774
|
-
ellipsis: true,
|
|
775
|
-
width: 100,
|
|
776
|
-
render: function render(val) {
|
|
777
|
-
var typeMap = {
|
|
778
|
-
"1": "单品",
|
|
779
|
-
"2": "组合装"
|
|
780
|
-
};
|
|
781
|
-
return /*#__PURE__*/React.createElement("span", null, typeMap[val]);
|
|
782
|
-
}
|
|
783
|
-
}];
|
|
784
|
-
}
|
|
785
|
-
break;
|
|
786
|
-
case "BS_E3_REISSUE_GOODS":
|
|
787
|
-
case "BS_E3_GOODS":
|
|
788
|
-
{
|
|
789
|
-
columns = [{
|
|
790
|
-
dataIndex: "sku",
|
|
791
|
-
title: "SKU",
|
|
792
|
-
align: "center",
|
|
793
|
-
ellipsis: true,
|
|
794
|
-
width: 150
|
|
795
|
-
}, {
|
|
796
|
-
dataIndex: "skuId",
|
|
797
|
-
title: "SKU ID",
|
|
798
|
-
align: "center",
|
|
799
|
-
ellipsis: true,
|
|
800
|
-
width: 150
|
|
801
|
-
}, {
|
|
802
|
-
dataIndex: "goodsName",
|
|
803
|
-
title: "\u5546\u54C1\u540D\u79F0",
|
|
804
|
-
align: "center",
|
|
805
|
-
ellipsis: true,
|
|
806
|
-
width: 150
|
|
807
|
-
}, {
|
|
808
|
-
dataIndex: "goodsShortName",
|
|
809
|
-
title: "\u5546\u54C1\u7B80\u79F0",
|
|
810
|
-
align: "center",
|
|
811
|
-
ellipsis: true,
|
|
812
|
-
width: 100
|
|
813
|
-
}, {
|
|
814
|
-
dataIndex: "picPath",
|
|
815
|
-
title: "\u5546\u54C1\u56FE\u7247",
|
|
816
|
-
align: "center",
|
|
817
|
-
ellipsis: true,
|
|
818
|
-
width: 100,
|
|
819
|
-
render: function render(val) {
|
|
820
|
-
return /*#__PURE__*/React.createElement(Image, {
|
|
821
|
-
width: 60,
|
|
822
|
-
src: val
|
|
823
|
-
});
|
|
824
|
-
}
|
|
825
|
-
}, {
|
|
826
|
-
dataIndex: "goodsSn",
|
|
827
|
-
title: "\u8D27\u53F7",
|
|
828
|
-
align: "center",
|
|
829
|
-
ellipsis: true,
|
|
830
|
-
width: 150
|
|
831
|
-
}, {
|
|
832
|
-
dataIndex: "goodsId",
|
|
833
|
-
title: "\u8D27\u53F7ID",
|
|
834
|
-
align: "center",
|
|
835
|
-
ellipsis: true,
|
|
836
|
-
width: 150
|
|
837
|
-
}, {
|
|
838
|
-
dataIndex: "colorName",
|
|
839
|
-
title: "\u989C\u8272\u540D\u79F0",
|
|
840
|
-
align: "center",
|
|
841
|
-
ellipsis: true,
|
|
842
|
-
width: 100
|
|
843
|
-
}, {
|
|
844
|
-
dataIndex: "colorCode",
|
|
845
|
-
title: "\u989C\u8272\u4EE3\u7801",
|
|
846
|
-
align: "center",
|
|
847
|
-
ellipsis: true,
|
|
848
|
-
width: 150
|
|
849
|
-
}, {
|
|
850
|
-
dataIndex: "sizeName",
|
|
851
|
-
title: "\u5C3A\u7801\u540D\u79F0",
|
|
852
|
-
align: "center",
|
|
853
|
-
ellipsis: true,
|
|
854
|
-
width: 100
|
|
855
|
-
}, {
|
|
856
|
-
dataIndex: "sizeCode",
|
|
857
|
-
title: "\u5C3A\u7801\u4EE3\u7801",
|
|
858
|
-
align: "center",
|
|
859
|
-
ellipsis: true,
|
|
860
|
-
width: 100
|
|
861
|
-
}, {
|
|
862
|
-
dataIndex: "brandName",
|
|
863
|
-
title: "\u54C1\u724C\u540D\u79F0",
|
|
864
|
-
align: "center",
|
|
865
|
-
ellipsis: true,
|
|
866
|
-
width: 150
|
|
867
|
-
}, {
|
|
868
|
-
dataIndex: "goodsNumber",
|
|
869
|
-
title: "\u5546\u54C1\u6570\u91CF",
|
|
870
|
-
align: "center",
|
|
871
|
-
ellipsis: true,
|
|
872
|
-
width: 100
|
|
873
|
-
}, {
|
|
874
|
-
dataIndex: "goodsPrice",
|
|
875
|
-
title: "\u5546\u54C1\u5355\u4EF7",
|
|
876
|
-
align: "center",
|
|
877
|
-
ellipsis: true,
|
|
878
|
-
width: 120
|
|
879
|
-
}, {
|
|
880
|
-
dataIndex: "shopPrice",
|
|
881
|
-
title: "\u5546\u54C1\u7F51\u5E97\u552E\u4EF7",
|
|
882
|
-
align: "center",
|
|
883
|
-
ellipsis: true,
|
|
884
|
-
width: 120
|
|
885
|
-
}, {
|
|
886
|
-
dataIndex: "sharePrice",
|
|
887
|
-
title: "\u5206\u644A\u4EF7",
|
|
888
|
-
align: "center",
|
|
889
|
-
ellipsis: true,
|
|
890
|
-
width: 120
|
|
891
|
-
}, {
|
|
892
|
-
dataIndex: "sharePayment",
|
|
893
|
-
title: "\u5206\u644A\u5B9E\u4ED8\u91D1\u989D",
|
|
894
|
-
align: "center",
|
|
895
|
-
ellipsis: true,
|
|
896
|
-
width: 120
|
|
897
|
-
}, {
|
|
898
|
-
dataIndex: "payment",
|
|
899
|
-
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
900
|
-
align: "center",
|
|
901
|
-
ellipsis: true,
|
|
902
|
-
width: 120
|
|
903
|
-
}, {
|
|
904
|
-
dataIndex: "tcSku",
|
|
905
|
-
title: "\u5957\u9910SKU",
|
|
906
|
-
align: "center",
|
|
907
|
-
ellipsis: true,
|
|
908
|
-
width: 150
|
|
909
|
-
}, {
|
|
910
|
-
dataIndex: "tcGoodsNumber",
|
|
911
|
-
title: "\u5957\u9910\u5957\u6570",
|
|
912
|
-
align: "center",
|
|
913
|
-
ellipsis: true,
|
|
914
|
-
width: 100
|
|
915
|
-
}, {
|
|
916
|
-
dataIndex: "taoCanSingleSl",
|
|
917
|
-
title: "\u5355\u4E2A\u5957\u9910\u6570\u91CF",
|
|
918
|
-
align: "center",
|
|
919
|
-
ellipsis: true,
|
|
920
|
-
width: 100
|
|
921
|
-
}, {
|
|
922
|
-
dataIndex: "isGift",
|
|
923
|
-
title: "\u662F\u5426\u8D60\u54C1",
|
|
924
|
-
align: "center",
|
|
925
|
-
ellipsis: true,
|
|
926
|
-
width: 100,
|
|
927
|
-
render: function render(val) {
|
|
928
|
-
return /*#__PURE__*/React.createElement("span", null, BS_E3_BOOLEAN_STATUS_MAP[val] || val);
|
|
929
|
-
}
|
|
930
|
-
}];
|
|
931
|
-
}
|
|
932
|
-
break;
|
|
933
|
-
case "BS_GOODS":
|
|
934
|
-
columns = [{
|
|
935
|
-
dataIndex: "mark",
|
|
936
|
-
title: "\u5546\u54C1\u6807\u8BB0",
|
|
937
|
-
align: "center",
|
|
938
|
-
ellipsis: true,
|
|
939
|
-
width: 100
|
|
940
|
-
}, {
|
|
941
|
-
dataIndex: "skuName",
|
|
942
|
-
title: "".concat(text, "sku\u540D\u79F0"),
|
|
943
|
-
align: "center",
|
|
944
|
-
ellipsis: true,
|
|
945
|
-
width: 200
|
|
946
|
-
}, {
|
|
947
|
-
dataIndex: "sku",
|
|
948
|
-
title: "".concat(text, "sku\u7F16\u7801"),
|
|
949
|
-
align: "center",
|
|
950
|
-
ellipsis: true,
|
|
951
|
-
width: 100
|
|
952
|
-
}, {
|
|
953
|
-
dataIndex: "name",
|
|
954
|
-
title: "".concat(text, "\u540D\u79F0"),
|
|
955
|
-
align: "center",
|
|
956
|
-
ellipsis: true,
|
|
957
|
-
width: 200
|
|
958
|
-
}, {
|
|
959
|
-
dataIndex: "pic",
|
|
960
|
-
title: "\u56FE\u7247",
|
|
961
|
-
align: "center",
|
|
962
|
-
ellipsis: true,
|
|
963
|
-
width: 100,
|
|
964
|
-
render: function render(val) {
|
|
965
|
-
return /*#__PURE__*/React.createElement(Image, {
|
|
966
|
-
width: 60,
|
|
967
|
-
src: val
|
|
968
|
-
});
|
|
969
|
-
}
|
|
970
|
-
}, {
|
|
971
|
-
dataIndex: "code",
|
|
972
|
-
title: "".concat(text, "\u7F16\u7801"),
|
|
973
|
-
align: "center",
|
|
974
|
-
ellipsis: true,
|
|
975
|
-
width: 100
|
|
976
|
-
}, {
|
|
977
|
-
dataIndex: "money",
|
|
978
|
-
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
979
|
-
align: "center",
|
|
980
|
-
ellipsis: true,
|
|
981
|
-
width: 100
|
|
982
|
-
}, {
|
|
983
|
-
dataIndex: "number",
|
|
984
|
-
title: "".concat(text, "\u6570\u91CF"),
|
|
985
|
-
align: "center",
|
|
986
|
-
ellipsis: true,
|
|
987
|
-
width: 100
|
|
988
|
-
}, {
|
|
989
|
-
dataIndex: "share",
|
|
990
|
-
title: "\u5206\u644A\u4EF7",
|
|
991
|
-
align: "center",
|
|
992
|
-
ellipsis: true,
|
|
993
|
-
width: 70
|
|
994
|
-
}, {
|
|
995
|
-
dataIndex: "type",
|
|
996
|
-
title: "\u8D60\u54C1\u7C7B\u578B",
|
|
997
|
-
align: "center",
|
|
998
|
-
ellipsis: true,
|
|
999
|
-
width: 100
|
|
1000
|
-
}, {
|
|
1001
|
-
dataIndex: "batch",
|
|
1002
|
-
title: "\u6279\u6B21\u53F7",
|
|
1003
|
-
align: "center",
|
|
1004
|
-
ellipsis: true,
|
|
1005
|
-
width: 100
|
|
1006
|
-
}, {
|
|
1007
|
-
dataIndex: "expireDate",
|
|
1008
|
-
title: "\u6709\u6548\u671F",
|
|
1009
|
-
align: "center",
|
|
1010
|
-
ellipsis: true,
|
|
1011
|
-
width: 100
|
|
1012
|
-
}];
|
|
1013
|
-
break;
|
|
1014
|
-
default:
|
|
1015
|
-
columns = [{
|
|
1016
|
-
dataIndex: "mark",
|
|
1017
|
-
title: "\u5546\u54C1\u6807\u8BB0",
|
|
1018
|
-
align: "center",
|
|
1019
|
-
ellipsis: true,
|
|
1020
|
-
width: 100
|
|
1021
|
-
}, {
|
|
1022
|
-
dataIndex: "skuName",
|
|
1023
|
-
title: "".concat(text, "sku\u540D\u79F0"),
|
|
1024
|
-
align: "center",
|
|
1025
|
-
ellipsis: true,
|
|
1026
|
-
width: 200
|
|
1027
|
-
}, {
|
|
1028
|
-
dataIndex: "sku",
|
|
1029
|
-
title: "".concat(text, "sku\u7F16\u7801"),
|
|
1030
|
-
align: "center",
|
|
1031
|
-
ellipsis: true,
|
|
1032
|
-
width: 100
|
|
1033
|
-
}, {
|
|
1034
|
-
dataIndex: "name",
|
|
1035
|
-
title: "".concat(text, "\u540D\u79F0"),
|
|
1036
|
-
align: "center",
|
|
1037
|
-
ellipsis: true,
|
|
1038
|
-
width: 200
|
|
1039
|
-
}, {
|
|
1040
|
-
dataIndex: "pic",
|
|
1041
|
-
title: "\u56FE\u7247",
|
|
1042
|
-
align: "center",
|
|
1043
|
-
ellipsis: true,
|
|
1044
|
-
width: 100,
|
|
1045
|
-
render: function render(val) {
|
|
1046
|
-
return /*#__PURE__*/React.createElement(Image, {
|
|
1047
|
-
width: 60,
|
|
1048
|
-
src: val
|
|
1049
|
-
});
|
|
1050
|
-
}
|
|
1051
|
-
}, {
|
|
1052
|
-
dataIndex: "code",
|
|
1053
|
-
title: "".concat(text, "\u7F16\u7801"),
|
|
1054
|
-
align: "center",
|
|
1055
|
-
ellipsis: true,
|
|
1056
|
-
width: 100
|
|
1057
|
-
}, {
|
|
1058
|
-
dataIndex: "money",
|
|
1059
|
-
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
1060
|
-
align: "center",
|
|
1061
|
-
ellipsis: true,
|
|
1062
|
-
width: 100
|
|
1063
|
-
}, {
|
|
1064
|
-
dataIndex: "number",
|
|
1065
|
-
title: "".concat(text, "\u6570\u91CF"),
|
|
1066
|
-
align: "center",
|
|
1067
|
-
ellipsis: true,
|
|
1068
|
-
width: 100
|
|
1069
|
-
}, {
|
|
1070
|
-
dataIndex: "share",
|
|
1071
|
-
title: "\u5206\u644A\u4EF7",
|
|
1072
|
-
align: "center",
|
|
1073
|
-
ellipsis: true,
|
|
1074
|
-
width: 70
|
|
1075
|
-
}, {
|
|
1076
|
-
dataIndex: "type",
|
|
1077
|
-
title: "\u8D60\u54C1\u7C7B\u578B",
|
|
1078
|
-
align: "center",
|
|
1079
|
-
ellipsis: true,
|
|
1080
|
-
width: 100
|
|
1081
|
-
}];
|
|
1082
|
-
}
|
|
1083
|
-
return columns;
|
|
459
|
+
var _columnsMap$type;
|
|
460
|
+
var columnsMap = getColumnsMap({
|
|
461
|
+
text: text
|
|
462
|
+
});
|
|
463
|
+
return (_columnsMap$type = columnsMap[type]) !== null && _columnsMap$type !== void 0 ? _columnsMap$type : columnsMap["default"];
|
|
1084
464
|
};
|
|
1085
465
|
};
|
|
1086
466
|
//商品信息
|
|
@@ -1255,123 +635,20 @@ export var BsSystemOrderTable = function BsSystemOrderTable(_ref13) {
|
|
|
1255
635
|
var value = _ref13.value,
|
|
1256
636
|
type = _ref13.type;
|
|
1257
637
|
var columnMap = {
|
|
1258
|
-
BS_SYSTEM_ORDER:
|
|
1259
|
-
dataIndex: "billType",
|
|
1260
|
-
title: "订单类型"
|
|
1261
|
-
}, {
|
|
1262
|
-
dataIndex: "billNo",
|
|
1263
|
-
title: "系统订单号"
|
|
1264
|
-
}, {
|
|
1265
|
-
dataIndex: "billTag",
|
|
1266
|
-
title: "标签"
|
|
1267
|
-
}, {
|
|
1268
|
-
title: "主播名称",
|
|
1269
|
-
dataIndex: "authorName"
|
|
1270
|
-
}, {
|
|
1271
|
-
title: "主播ID",
|
|
1272
|
-
dataIndex: "authorId"
|
|
1273
|
-
}
|
|
1274
|
-
// {
|
|
1275
|
-
// title: '直播活动',
|
|
1276
|
-
// dataIndex: 'liveActivites',
|
|
1277
|
-
// },
|
|
1278
|
-
],
|
|
1279
|
-
|
|
638
|
+
BS_SYSTEM_ORDER: BS_SYSTEM_ORDER_CONFIG.columns,
|
|
1280
639
|
KM_SYSTEM_ORDER: KM_SYSTEM_ORDER_CONFIG.columns,
|
|
1281
|
-
WLN_SYSTEM_ORDER:
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
dataIndex: "billNo",
|
|
1286
|
-
title: "系统订单号"
|
|
1287
|
-
}, {
|
|
1288
|
-
dataIndex: "billTag",
|
|
1289
|
-
title: "标签"
|
|
1290
|
-
}],
|
|
1291
|
-
WDT_SYSTEM_ORDER: [{
|
|
1292
|
-
dataIndex: "billType",
|
|
1293
|
-
title: "订单类型"
|
|
1294
|
-
}, {
|
|
1295
|
-
dataIndex: "billNo",
|
|
1296
|
-
title: "系统订单号"
|
|
1297
|
-
}, {
|
|
1298
|
-
dataIndex: "billTag",
|
|
1299
|
-
title: "订单标签"
|
|
1300
|
-
}],
|
|
1301
|
-
BS_E3_SYSTEM_ORDER: [{
|
|
1302
|
-
title: "系统订单号",
|
|
1303
|
-
dataIndex: "orderSn",
|
|
1304
|
-
width: 150,
|
|
1305
|
-
ellipsis: true
|
|
1306
|
-
}, {
|
|
1307
|
-
title: "订单状态",
|
|
1308
|
-
dataIndex: "orderStatus",
|
|
1309
|
-
width: 100,
|
|
1310
|
-
ellipsis: true,
|
|
1311
|
-
render: function render(val) {
|
|
1312
|
-
return /*#__PURE__*/React.createElement("span", null, BS_E3_ORDER_STATUS_MAP[val] || val);
|
|
1313
|
-
}
|
|
1314
|
-
}, {
|
|
1315
|
-
title: "是否被拆分",
|
|
1316
|
-
dataIndex: "isSplit",
|
|
1317
|
-
width: 100,
|
|
1318
|
-
ellipsis: true,
|
|
1319
|
-
render: function render(val) {
|
|
1320
|
-
return /*#__PURE__*/React.createElement("span", null, BS_E3_BOOLEAN_STATUS_MAP[val] || val);
|
|
1321
|
-
}
|
|
1322
|
-
}, {
|
|
1323
|
-
title: "是否拆分子单",
|
|
1324
|
-
dataIndex: "isSplitNew",
|
|
1325
|
-
width: 100,
|
|
1326
|
-
ellipsis: true,
|
|
1327
|
-
render: function render(val) {
|
|
1328
|
-
return /*#__PURE__*/React.createElement("span", null, BS_E3_BOOLEAN_STATUS_MAP[val] || val);
|
|
1329
|
-
}
|
|
1330
|
-
}, {
|
|
1331
|
-
title: "是否被合并",
|
|
1332
|
-
dataIndex: "isCombine",
|
|
1333
|
-
width: 100,
|
|
1334
|
-
ellipsis: true,
|
|
1335
|
-
render: function render(val) {
|
|
1336
|
-
return /*#__PURE__*/React.createElement("span", null, BS_E3_BOOLEAN_STATUS_MAP[val] || val);
|
|
1337
|
-
}
|
|
1338
|
-
}, {
|
|
1339
|
-
title: "是否合并新单",
|
|
1340
|
-
dataIndex: "isCombineNew",
|
|
1341
|
-
width: 100,
|
|
1342
|
-
ellipsis: true,
|
|
1343
|
-
render: function render(val) {
|
|
1344
|
-
return /*#__PURE__*/React.createElement("span", null, BS_E3_BOOLEAN_STATUS_MAP[val] || val);
|
|
1345
|
-
}
|
|
1346
|
-
}, {
|
|
1347
|
-
title: "是否复制单",
|
|
1348
|
-
dataIndex: "isCopy",
|
|
1349
|
-
width: 100,
|
|
1350
|
-
ellipsis: true,
|
|
1351
|
-
render: function render(val) {
|
|
1352
|
-
return /*#__PURE__*/React.createElement("span", null, BS_E3_BOOLEAN_STATUS_MAP[val] || val);
|
|
1353
|
-
}
|
|
1354
|
-
}, {
|
|
1355
|
-
title: "是否换货单",
|
|
1356
|
-
dataIndex: "isExchangeOrder",
|
|
1357
|
-
width: 100,
|
|
1358
|
-
ellipsis: true,
|
|
1359
|
-
render: function render(val) {
|
|
1360
|
-
return /*#__PURE__*/React.createElement("span", null, BS_E3_BOOLEAN_STATUS_MAP[val] || val);
|
|
1361
|
-
}
|
|
1362
|
-
}, {
|
|
1363
|
-
title: "订单备注",
|
|
1364
|
-
dataIndex: "orderMsg",
|
|
1365
|
-
width: 100,
|
|
1366
|
-
ellipsis: true
|
|
1367
|
-
}]
|
|
640
|
+
WLN_SYSTEM_ORDER: WLN_SYSTEM_ORDER_CONFIG.columns,
|
|
641
|
+
WDT_SYSTEM_ORDER: WDT_SYSTEM_ORDER_CONFIG.columns,
|
|
642
|
+
BS_E3_SYSTEM_ORDER: BS_E3_SYSTEM_ORDER_CONFIG.columns,
|
|
643
|
+
GY_SYSTEM_ORDER: GY_SYSTEM_ORDER_CONFIG.columns
|
|
1368
644
|
};
|
|
1369
645
|
var rowKeyMap = {
|
|
1370
646
|
BS_SYSTEM_ORDER: "billNo",
|
|
1371
647
|
KM_SYSTEM_ORDER: "billNo",
|
|
1372
648
|
WLN_SYSTEM_ORDER: "billNo",
|
|
1373
649
|
WDT_SYSTEM_ORDER: "billNo",
|
|
1374
|
-
BS_E3_SYSTEM_ORDER: "orderSn"
|
|
650
|
+
BS_E3_SYSTEM_ORDER: "orderSn",
|
|
651
|
+
GY_SYSTEM_ORDER: "billNo"
|
|
1375
652
|
};
|
|
1376
653
|
var rowSelection = {
|
|
1377
654
|
selectedRowKeys: (value === null || value === void 0 ? void 0 : value.selectIds) || ((value === null || value === void 0 ? void 0 : value.showOrderInfo) || []).reduce(function (prv, next) {
|