@kmkf-fe-packages/basic-components 2.0.0-rc.4 → 2.0.0-rc.9
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/index.esm.js +1210 -1015
- package/dist/index.js +1210 -1014
- package/dist/src/bs/component/GoodItem/constants/bsE3ReissueGoodsColumns.d.ts +7 -0
- package/dist/src/bs/component/GoodItem/constants/wdtReissueGoodsColumns.d.ts +9 -0
- package/dist/src/bs/component/GoodItem/index copy.d.ts +36 -0
- package/dist/src/bs/component/GoodItem/index.d.ts +5 -1
- package/dist/src/common/Goods/RichItem copy.d.ts +26 -0
- package/dist/src/common/Goods/RichItem.d.ts +6 -1
- package/dist/src/constants/bs_e3.d.ts +3 -0
- package/dist/src/constants/columnsBaseInfoMap.d.ts +7 -0
- package/dist/src/constants/wdt.d.ts +3 -0
- package/dist/src/constants/wln.d.ts +3 -0
- package/dist/src/index.d.ts +1 -0
- package/package.json +3 -3
- package/dist/src/bs/component/GoodItem/bsE3ReissueGoodsColumns.d.ts +0 -29
- package/dist/src/bs/component/GoodItem/wdtReissueGoodsColumns.d.ts +0 -22
package/dist/index.esm.js
CHANGED
|
@@ -9563,10 +9563,29 @@ var GoodItem = function GoodItem(props) {
|
|
|
9563
9563
|
return _ref5.apply(this, arguments);
|
|
9564
9564
|
};
|
|
9565
9565
|
}();
|
|
9566
|
-
var headerList =
|
|
9567
|
-
|
|
9568
|
-
]
|
|
9569
|
-
|
|
9566
|
+
var headerList = useMemo(function () {
|
|
9567
|
+
if (!Array.isArray(showHeader)) return ['title', 'outerId', 'picUrl', 'numIid', 'skuId', 'outerSkuId', 'propertiesName' // sku 信息
|
|
9568
|
+
];
|
|
9569
|
+
|
|
9570
|
+
var isStringArray = Array.isArray(showHeader) && typeof showHeader[0] === 'string';
|
|
9571
|
+
var isObjectArray = Array.isArray(showHeader) && Object.prototype.toString.call(showHeader[0]) === '[object Object]';
|
|
9572
|
+
var dataIndexList = [];
|
|
9573
|
+
if (isStringArray) {
|
|
9574
|
+
dataIndexList = showHeader;
|
|
9575
|
+
} else if (isObjectArray) {
|
|
9576
|
+
dataIndexList = showHeader.map(function (item) {
|
|
9577
|
+
return item.dataIndex;
|
|
9578
|
+
});
|
|
9579
|
+
}
|
|
9580
|
+
return isStringArray ? showHeader : isObjectArray ? showHeader.filter(function (item) {
|
|
9581
|
+
return item.show !== false;
|
|
9582
|
+
}).map(function (item) {
|
|
9583
|
+
return item.dataIndex;
|
|
9584
|
+
}) : [] || {
|
|
9585
|
+
1: ['title', 'outerId', 'picUrl', 'numIid', 'skuId', 'outerSkuId', 'propertiesName' // sku 信息
|
|
9586
|
+
]
|
|
9587
|
+
}[type] || [];
|
|
9588
|
+
}, [showHeader]);
|
|
9570
9589
|
//修改参数
|
|
9571
9590
|
var handleChangeValue = function handleChangeValue(key, index) {
|
|
9572
9591
|
return function (e) {
|
|
@@ -9581,35 +9600,57 @@ var GoodItem = function GoodItem(props) {
|
|
|
9581
9600
|
};
|
|
9582
9601
|
};
|
|
9583
9602
|
// TODO: 目前只做了type 1的处理,其他的还是走老的文件 ./index.tsx
|
|
9584
|
-
var goodItemAttrs =
|
|
9585
|
-
|
|
9586
|
-
|
|
9587
|
-
|
|
9588
|
-
|
|
9589
|
-
|
|
9590
|
-
|
|
9591
|
-
|
|
9592
|
-
|
|
9593
|
-
|
|
9594
|
-
|
|
9595
|
-
|
|
9596
|
-
|
|
9597
|
-
|
|
9598
|
-
|
|
9599
|
-
|
|
9600
|
-
|
|
9601
|
-
|
|
9602
|
-
|
|
9603
|
-
|
|
9604
|
-
|
|
9605
|
-
|
|
9606
|
-
|
|
9607
|
-
|
|
9608
|
-
|
|
9609
|
-
|
|
9610
|
-
|
|
9611
|
-
|
|
9612
|
-
|
|
9603
|
+
var goodItemAttrs = useMemo(function () {
|
|
9604
|
+
var initList = [{
|
|
9605
|
+
isShow: headerList.includes('title'),
|
|
9606
|
+
key: 'title',
|
|
9607
|
+
label: '商品名称'
|
|
9608
|
+
}, {
|
|
9609
|
+
isShow: headerList.includes('outerId'),
|
|
9610
|
+
key: 'outerId',
|
|
9611
|
+
label: '商品编码'
|
|
9612
|
+
},
|
|
9613
|
+
// { isShow: headerList.includes('picUrl'), key: 'picUrl', label: '图片' },
|
|
9614
|
+
{
|
|
9615
|
+
isShow: headerList.includes('numIid'),
|
|
9616
|
+
key: 'numIid',
|
|
9617
|
+
label: '商品id'
|
|
9618
|
+
}, {
|
|
9619
|
+
isShow: changeSku && headerList.includes('skuId'),
|
|
9620
|
+
key: 'skuId',
|
|
9621
|
+
label: 'SKU ID'
|
|
9622
|
+
}, {
|
|
9623
|
+
isShow: changeSku && headerList.includes('outerSkuId'),
|
|
9624
|
+
key: 'outerSkuId',
|
|
9625
|
+
label: 'SKU 编码'
|
|
9626
|
+
}, {
|
|
9627
|
+
isShow: changeSku && headerList.includes('propertiesName'),
|
|
9628
|
+
key: 'propertiesName',
|
|
9629
|
+
label: 'SKU 信息'
|
|
9630
|
+
}];
|
|
9631
|
+
if (!Array.isArray(showHeader)) return initList;
|
|
9632
|
+
var newList = [];
|
|
9633
|
+
var isStringArray = Array.isArray(showHeader) && typeof showHeader[0] === 'string';
|
|
9634
|
+
var isObjectArray = Array.isArray(showHeader) && Object.prototype.toString.call(showHeader[0]) === '[object Object]';
|
|
9635
|
+
(isStringArray ? showHeader : isObjectArray ? showHeader.map(function (item) {
|
|
9636
|
+
return item.dataIndex;
|
|
9637
|
+
}) : []).forEach(function (dataIndex) {
|
|
9638
|
+
if (initList.find(function (item) {
|
|
9639
|
+
return item.key === dataIndex;
|
|
9640
|
+
})) {
|
|
9641
|
+
newList.push(initList.find(function (item) {
|
|
9642
|
+
return item.key === dataIndex;
|
|
9643
|
+
}));
|
|
9644
|
+
}
|
|
9645
|
+
});
|
|
9646
|
+
return newList;
|
|
9647
|
+
}, [headerList, showHeader]);
|
|
9648
|
+
var hasPic = useMemo(function () {
|
|
9649
|
+
return headerList.includes('picUrl');
|
|
9650
|
+
}, [headerList]);
|
|
9651
|
+
var hasAttr = useMemo(function () {
|
|
9652
|
+
return hasPic ? headerList.length > 1 : headerList.length > 0;
|
|
9653
|
+
}, [hasPic, headerList]);
|
|
9613
9654
|
return /*#__PURE__*/React.createElement("div", null, imgList.length === 0 ? /*#__PURE__*/React.createElement("p", {
|
|
9614
9655
|
className: "goods-title"
|
|
9615
9656
|
}, "\u6700\u591A\u6DFB\u52A0", maxLength, "\u4E2A\u5B9D\u8D1D") : /*#__PURE__*/React.createElement("p", {
|
|
@@ -12431,244 +12472,1105 @@ var GoodsModal$4 = function GoodsModal(props, ref) {
|
|
|
12431
12472
|
};
|
|
12432
12473
|
var BsE3GoodsModal = /*#__PURE__*/forwardRef(GoodsModal$4);
|
|
12433
12474
|
|
|
12434
|
-
var
|
|
12435
|
-
|
|
12436
|
-
|
|
12437
|
-
|
|
12438
|
-
|
|
12439
|
-
|
|
12440
|
-
|
|
12441
|
-
|
|
12442
|
-
|
|
12443
|
-
|
|
12444
|
-
|
|
12445
|
-
|
|
12446
|
-
|
|
12447
|
-
|
|
12448
|
-
|
|
12449
|
-
|
|
12450
|
-
|
|
12451
|
-
|
|
12452
|
-
|
|
12453
|
-
|
|
12454
|
-
|
|
12455
|
-
|
|
12456
|
-
|
|
12457
|
-
|
|
12458
|
-
|
|
12459
|
-
|
|
12460
|
-
|
|
12461
|
-
|
|
12462
|
-
|
|
12463
|
-
|
|
12464
|
-
|
|
12465
|
-
|
|
12466
|
-
|
|
12467
|
-
|
|
12468
|
-
|
|
12469
|
-
|
|
12470
|
-
|
|
12471
|
-
|
|
12472
|
-
|
|
12473
|
-
|
|
12474
|
-
|
|
12475
|
-
|
|
12476
|
-
|
|
12477
|
-
|
|
12478
|
-
|
|
12479
|
-
|
|
12480
|
-
|
|
12481
|
-
|
|
12482
|
-
|
|
12483
|
-
|
|
12484
|
-
|
|
12485
|
-
|
|
12486
|
-
|
|
12487
|
-
|
|
12488
|
-
|
|
12489
|
-
|
|
12490
|
-
|
|
12491
|
-
|
|
12492
|
-
|
|
12493
|
-
|
|
12494
|
-
|
|
12495
|
-
|
|
12496
|
-
|
|
12497
|
-
|
|
12498
|
-
|
|
12499
|
-
|
|
12500
|
-
|
|
12501
|
-
}
|
|
12502
|
-
|
|
12503
|
-
|
|
12504
|
-
|
|
12505
|
-
|
|
12506
|
-
|
|
12507
|
-
|
|
12508
|
-
|
|
12509
|
-
|
|
12510
|
-
|
|
12511
|
-
|
|
12512
|
-
|
|
12513
|
-
precision: 0,
|
|
12514
|
-
onChange: function onChange(num) {
|
|
12515
|
-
return updateHandle(num, index, 'goodsNumber');
|
|
12516
|
-
}
|
|
12517
|
-
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
12518
|
-
};
|
|
12519
|
-
},
|
|
12520
|
-
goodsPrice: function goodsPrice(_ref2) {
|
|
12521
|
-
var disabled = _ref2.disabled,
|
|
12522
|
-
updateHandle = _ref2.updateHandle;
|
|
12523
|
-
return function (val, record, index) {
|
|
12524
|
-
return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
12525
|
-
style: {
|
|
12526
|
-
width: 70
|
|
12527
|
-
},
|
|
12528
|
-
value: val,
|
|
12529
|
-
min: 0,
|
|
12530
|
-
onChange: function onChange(value) {
|
|
12531
|
-
return updateHandle(value, index, 'goodsPrice');
|
|
12532
|
-
}
|
|
12533
|
-
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
12534
|
-
};
|
|
12535
|
-
},
|
|
12536
|
-
isGift: function isGift(_ref3) {
|
|
12537
|
-
var disabled = _ref3.disabled,
|
|
12538
|
-
updateHandle = _ref3.updateHandle;
|
|
12539
|
-
return function (val, record, index) {
|
|
12540
|
-
var options = [{
|
|
12541
|
-
label: '是',
|
|
12542
|
-
value: 1
|
|
12543
|
-
}, {
|
|
12544
|
-
label: '否',
|
|
12545
|
-
value: 0
|
|
12546
|
-
}];
|
|
12547
|
-
return !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
12548
|
-
style: {
|
|
12549
|
-
width: 70
|
|
12550
|
-
},
|
|
12551
|
-
options: options,
|
|
12552
|
-
value: val,
|
|
12553
|
-
onChange: function onChange(value) {
|
|
12554
|
-
return updateHandle(value, index, 'isGift');
|
|
12555
|
-
},
|
|
12556
|
-
getPopupContainer: function getPopupContainer() {
|
|
12557
|
-
return document.getElementById('bsE3ReissueGoods');
|
|
12558
|
-
}
|
|
12559
|
-
}) : /*#__PURE__*/React.createElement("span", null, +val ? '是' : '否');
|
|
12560
|
-
};
|
|
12561
|
-
}
|
|
12562
|
-
};
|
|
12563
|
-
var getBsE3ReissueGoodColumns = function getBsE3ReissueGoodColumns(_ref4) {
|
|
12564
|
-
var disabled = _ref4.disabled,
|
|
12565
|
-
updateHandle = _ref4.updateHandle,
|
|
12566
|
-
operate = _ref4.operate;
|
|
12567
|
-
return columns$3.map(function (item) {
|
|
12568
|
-
var newItem = _objectSpread2({
|
|
12475
|
+
var getColumns = function getColumns(_ref) {
|
|
12476
|
+
var _ref$text = _ref.text,
|
|
12477
|
+
text = _ref$text === void 0 ? '' : _ref$text,
|
|
12478
|
+
disabled = _ref.disabled,
|
|
12479
|
+
updateHandle = _ref.updateHandle;
|
|
12480
|
+
return {
|
|
12481
|
+
//百胜E3补发商品
|
|
12482
|
+
BS_E3_REISSUE_GOODS: [{
|
|
12483
|
+
dataIndex: 'sku',
|
|
12484
|
+
title: "SKU",
|
|
12485
|
+
width: 150
|
|
12486
|
+
}, {
|
|
12487
|
+
dataIndex: 'skuId',
|
|
12488
|
+
title: "SKU ID",
|
|
12489
|
+
width: 150
|
|
12490
|
+
}, {
|
|
12491
|
+
dataIndex: 'goodsName',
|
|
12492
|
+
title: "\u5546\u54C1\u540D\u79F0",
|
|
12493
|
+
width: 150
|
|
12494
|
+
}, {
|
|
12495
|
+
dataIndex: 'goodsShortName',
|
|
12496
|
+
title: "\u5546\u54C1\u7B80\u79F0",
|
|
12497
|
+
width: 150
|
|
12498
|
+
}, {
|
|
12499
|
+
dataIndex: 'picPath',
|
|
12500
|
+
title: "\u5546\u54C1\u56FE\u7247",
|
|
12501
|
+
width: 150
|
|
12502
|
+
}, {
|
|
12503
|
+
dataIndex: 'goodsSn',
|
|
12504
|
+
title: "\u8D27\u53F7",
|
|
12505
|
+
width: 150
|
|
12506
|
+
}, {
|
|
12507
|
+
dataIndex: 'goodsId',
|
|
12508
|
+
title: "\u8D27\u53F7ID",
|
|
12509
|
+
width: 150
|
|
12510
|
+
}, {
|
|
12511
|
+
dataIndex: 'colorName',
|
|
12512
|
+
title: "\u989C\u8272\u540D\u79F0",
|
|
12513
|
+
width: 150
|
|
12514
|
+
}, {
|
|
12515
|
+
dataIndex: 'colorCode',
|
|
12516
|
+
title: "\u989C\u8272\u4EE3\u7801",
|
|
12517
|
+
width: 150
|
|
12518
|
+
}, {
|
|
12519
|
+
dataIndex: 'sizeName',
|
|
12520
|
+
title: "\u5C3A\u7801\u540D\u79F0",
|
|
12521
|
+
width: 150
|
|
12522
|
+
}, {
|
|
12523
|
+
dataIndex: 'sizeCode',
|
|
12524
|
+
title: "\u5C3A\u7801\u4EE3\u7801",
|
|
12525
|
+
width: 150
|
|
12526
|
+
}, {
|
|
12527
|
+
dataIndex: 'brandName',
|
|
12528
|
+
title: "\u54C1\u724C\u540D\u79F0",
|
|
12529
|
+
width: 150
|
|
12530
|
+
}, {
|
|
12531
|
+
dataIndex: 'goodsNumber',
|
|
12532
|
+
title: "\u5546\u54C1\u6570\u91CF",
|
|
12533
|
+
width: 150
|
|
12534
|
+
}, {
|
|
12535
|
+
dataIndex: 'goodsPrice',
|
|
12536
|
+
title: "\u5546\u54C1\u5355\u4EF7",
|
|
12537
|
+
width: 150
|
|
12538
|
+
}, {
|
|
12539
|
+
dataIndex: 'shopPrice',
|
|
12540
|
+
title: "\u5546\u54C1\u7F51\u5E97\u552E\u4EF7",
|
|
12541
|
+
width: 150
|
|
12542
|
+
}, {
|
|
12543
|
+
dataIndex: 'isGift',
|
|
12544
|
+
title: "\u662F\u5426\u8D60\u54C1",
|
|
12545
|
+
width: 150,
|
|
12546
|
+
render: function render(val) {
|
|
12547
|
+
return /*#__PURE__*/React.createElement("span", null, +val ? '是' : '否');
|
|
12548
|
+
}
|
|
12549
|
+
}],
|
|
12550
|
+
//百胜E3商品信息
|
|
12551
|
+
BS_E3_GOODS: [{
|
|
12552
|
+
dataIndex: 'sku',
|
|
12553
|
+
title: "SKU",
|
|
12569
12554
|
align: 'center',
|
|
12570
|
-
ellipsis: true
|
|
12571
|
-
|
|
12572
|
-
|
|
12573
|
-
|
|
12574
|
-
|
|
12575
|
-
disabled: disabled,
|
|
12576
|
-
updateHandle: updateHandle
|
|
12577
|
-
})
|
|
12578
|
-
});
|
|
12579
|
-
}
|
|
12580
|
-
return newItem;
|
|
12581
|
-
});
|
|
12582
|
-
};
|
|
12583
|
-
|
|
12584
|
-
var renderGiftType = function renderGiftType(val) {
|
|
12585
|
-
var giftTypeMap = {
|
|
12586
|
-
0: '非赠品',
|
|
12587
|
-
1: '自动赠送',
|
|
12588
|
-
2: '手工赠送',
|
|
12589
|
-
3: '回购自动送赠品',
|
|
12590
|
-
4: '前N有礼送赠品',
|
|
12591
|
-
6: '天猫优仓赠品',
|
|
12592
|
-
7: '淘宝CRM会员送赠'
|
|
12593
|
-
};
|
|
12594
|
-
return /*#__PURE__*/React.createElement("span", null, giftTypeMap[val]);
|
|
12595
|
-
};
|
|
12596
|
-
var columns$4 = [{
|
|
12597
|
-
dataIndex: 'goodId',
|
|
12598
|
-
title: "\u5546\u54C1ID",
|
|
12599
|
-
width: 120
|
|
12600
|
-
}, {
|
|
12601
|
-
dataIndex: 'goodNo',
|
|
12602
|
-
title: "\u5546\u54C1\u7F16\u7801",
|
|
12603
|
-
width: 200
|
|
12604
|
-
}, {
|
|
12605
|
-
dataIndex: 'goodName',
|
|
12606
|
-
title: "\u5546\u54C1\u540D\u79F0",
|
|
12607
|
-
width: 200
|
|
12608
|
-
}, {
|
|
12609
|
-
dataIndex: 'specId',
|
|
12610
|
-
title: "SKUID",
|
|
12611
|
-
width: 150
|
|
12612
|
-
}, {
|
|
12613
|
-
dataIndex: 'specNo',
|
|
12614
|
-
title: "\u5546\u54C1SKU\u7F16\u7801",
|
|
12615
|
-
width: 200
|
|
12616
|
-
}, {
|
|
12617
|
-
dataIndex: 'specName',
|
|
12618
|
-
title: "\u5546\u54C1SKU\u540D\u79F0",
|
|
12619
|
-
width: 250
|
|
12620
|
-
}, {
|
|
12621
|
-
dataIndex: 'orderPrice',
|
|
12622
|
-
title: "\u5B9E\u4ED8\u603B\u91D1\u989D",
|
|
12623
|
-
width: 200
|
|
12624
|
-
}, {
|
|
12625
|
-
dataIndex: 'num',
|
|
12626
|
-
title: "\u6570\u91CF",
|
|
12627
|
-
width: 100
|
|
12628
|
-
}, {
|
|
12629
|
-
dataIndex: 'sharePrice',
|
|
12630
|
-
title: "\u5206\u644A\u4EF7",
|
|
12631
|
-
width: 150
|
|
12632
|
-
}, {
|
|
12633
|
-
dataIndex: 'giftType',
|
|
12634
|
-
title: "\u8D60\u54C1\u65B9\u5F0F",
|
|
12635
|
-
width: 100,
|
|
12636
|
-
render: renderGiftType
|
|
12637
|
-
}];
|
|
12638
|
-
var renderFieldMap$1 = {
|
|
12639
|
-
num: function num(_ref) {
|
|
12640
|
-
var disabled = _ref.disabled,
|
|
12641
|
-
updateHandle = _ref.updateHandle;
|
|
12642
|
-
return function (val, record, index) {
|
|
12643
|
-
return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
12644
|
-
style: {
|
|
12645
|
-
width: 70
|
|
12646
|
-
},
|
|
12647
|
-
value: val,
|
|
12648
|
-
min: 1,
|
|
12649
|
-
precision: 0,
|
|
12650
|
-
onChange: function onChange(num) {
|
|
12651
|
-
return updateHandle(num, index, 'num');
|
|
12652
|
-
}
|
|
12653
|
-
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
12654
|
-
};
|
|
12655
|
-
},
|
|
12656
|
-
giftType: function giftType() {
|
|
12657
|
-
return renderGiftType;
|
|
12658
|
-
}
|
|
12659
|
-
};
|
|
12660
|
-
var getWdtReissueGoodColumns = function getWdtReissueGoodColumns(_ref2) {
|
|
12661
|
-
var disabled = _ref2.disabled,
|
|
12662
|
-
updateHandle = _ref2.updateHandle,
|
|
12663
|
-
operate = _ref2.operate;
|
|
12664
|
-
return columns$4.map(function (item) {
|
|
12665
|
-
var newItem = _objectSpread2({
|
|
12555
|
+
ellipsis: true,
|
|
12556
|
+
width: 150
|
|
12557
|
+
}, {
|
|
12558
|
+
dataIndex: 'skuId',
|
|
12559
|
+
title: "SKU ID",
|
|
12666
12560
|
align: 'center',
|
|
12667
|
-
ellipsis: true
|
|
12668
|
-
|
|
12669
|
-
|
|
12670
|
-
|
|
12671
|
-
|
|
12561
|
+
ellipsis: true,
|
|
12562
|
+
width: 150
|
|
12563
|
+
}, {
|
|
12564
|
+
dataIndex: 'goodsName',
|
|
12565
|
+
title: "\u5546\u54C1\u540D\u79F0",
|
|
12566
|
+
align: 'center',
|
|
12567
|
+
ellipsis: true,
|
|
12568
|
+
width: 150
|
|
12569
|
+
}, {
|
|
12570
|
+
dataIndex: 'goodsShortName',
|
|
12571
|
+
title: "\u5546\u54C1\u7B80\u79F0",
|
|
12572
|
+
align: 'center',
|
|
12573
|
+
ellipsis: true,
|
|
12574
|
+
width: 100
|
|
12575
|
+
}, {
|
|
12576
|
+
dataIndex: 'picPath',
|
|
12577
|
+
title: "\u5546\u54C1\u56FE\u7247",
|
|
12578
|
+
align: 'center',
|
|
12579
|
+
ellipsis: true,
|
|
12580
|
+
width: 100,
|
|
12581
|
+
render: function render(val) {
|
|
12582
|
+
return /*#__PURE__*/React.createElement(Image, {
|
|
12583
|
+
width: 60,
|
|
12584
|
+
src: val
|
|
12585
|
+
});
|
|
12586
|
+
}
|
|
12587
|
+
}, {
|
|
12588
|
+
dataIndex: 'goodsSn',
|
|
12589
|
+
title: "\u8D27\u53F7",
|
|
12590
|
+
align: 'center',
|
|
12591
|
+
ellipsis: true,
|
|
12592
|
+
width: 150
|
|
12593
|
+
}, {
|
|
12594
|
+
dataIndex: 'goodsId',
|
|
12595
|
+
title: "\u8D27\u53F7ID",
|
|
12596
|
+
align: 'center',
|
|
12597
|
+
ellipsis: true,
|
|
12598
|
+
width: 150
|
|
12599
|
+
}, {
|
|
12600
|
+
dataIndex: 'colorName',
|
|
12601
|
+
title: "\u989C\u8272\u540D\u79F0",
|
|
12602
|
+
align: 'center',
|
|
12603
|
+
ellipsis: true,
|
|
12604
|
+
width: 100
|
|
12605
|
+
}, {
|
|
12606
|
+
dataIndex: 'colorCode',
|
|
12607
|
+
title: "\u989C\u8272\u4EE3\u7801",
|
|
12608
|
+
align: 'center',
|
|
12609
|
+
ellipsis: true,
|
|
12610
|
+
width: 150
|
|
12611
|
+
}, {
|
|
12612
|
+
dataIndex: 'sizeName',
|
|
12613
|
+
title: "\u5C3A\u7801\u540D\u79F0",
|
|
12614
|
+
align: 'center',
|
|
12615
|
+
ellipsis: true,
|
|
12616
|
+
width: 100
|
|
12617
|
+
}, {
|
|
12618
|
+
dataIndex: 'sizeCode',
|
|
12619
|
+
title: "\u5C3A\u7801\u4EE3\u7801",
|
|
12620
|
+
align: 'center',
|
|
12621
|
+
ellipsis: true,
|
|
12622
|
+
width: 100
|
|
12623
|
+
}, {
|
|
12624
|
+
dataIndex: 'brandName',
|
|
12625
|
+
title: "\u54C1\u724C\u540D\u79F0",
|
|
12626
|
+
align: 'center',
|
|
12627
|
+
ellipsis: true,
|
|
12628
|
+
width: 150
|
|
12629
|
+
}, {
|
|
12630
|
+
dataIndex: 'goodsNumber',
|
|
12631
|
+
title: "\u5546\u54C1\u6570\u91CF",
|
|
12632
|
+
align: 'center',
|
|
12633
|
+
ellipsis: true,
|
|
12634
|
+
width: 100,
|
|
12635
|
+
render: function render(val, record, index) {
|
|
12636
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
12637
|
+
style: {
|
|
12638
|
+
width: 70
|
|
12639
|
+
},
|
|
12640
|
+
value: val,
|
|
12641
|
+
min: 1,
|
|
12642
|
+
precision: 0,
|
|
12643
|
+
onChange: function onChange(num) {
|
|
12644
|
+
return updateHandle(num, index, 'goodsNumber');
|
|
12645
|
+
}
|
|
12646
|
+
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
12647
|
+
}
|
|
12648
|
+
}, {
|
|
12649
|
+
dataIndex: 'goodsPrice',
|
|
12650
|
+
title: "\u5546\u54C1\u5355\u4EF7",
|
|
12651
|
+
align: 'center',
|
|
12652
|
+
ellipsis: true,
|
|
12653
|
+
width: 120,
|
|
12654
|
+
render: function render(val, record, index) {
|
|
12655
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
12656
|
+
style: {
|
|
12657
|
+
width: 70
|
|
12658
|
+
},
|
|
12659
|
+
value: val,
|
|
12660
|
+
min: 0,
|
|
12661
|
+
precision: 2,
|
|
12662
|
+
onChange: function onChange(num) {
|
|
12663
|
+
return updateHandle(num, index, 'goodsPrice');
|
|
12664
|
+
}
|
|
12665
|
+
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
12666
|
+
}
|
|
12667
|
+
}, {
|
|
12668
|
+
dataIndex: 'shopPrice',
|
|
12669
|
+
title: "\u5546\u54C1\u7F51\u5E97\u552E\u4EF7",
|
|
12670
|
+
align: 'center',
|
|
12671
|
+
ellipsis: true,
|
|
12672
|
+
width: 120
|
|
12673
|
+
}, {
|
|
12674
|
+
dataIndex: 'sharePrice',
|
|
12675
|
+
title: "\u5206\u644A\u4EF7",
|
|
12676
|
+
align: 'center',
|
|
12677
|
+
ellipsis: true,
|
|
12678
|
+
width: 120
|
|
12679
|
+
}, {
|
|
12680
|
+
dataIndex: 'sharePayment',
|
|
12681
|
+
title: "\u5206\u644A\u5B9E\u4ED8\u91D1\u989D",
|
|
12682
|
+
align: 'center',
|
|
12683
|
+
ellipsis: true,
|
|
12684
|
+
width: 120
|
|
12685
|
+
}, {
|
|
12686
|
+
dataIndex: 'payment',
|
|
12687
|
+
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
12688
|
+
align: 'center',
|
|
12689
|
+
ellipsis: true,
|
|
12690
|
+
width: 120,
|
|
12691
|
+
render: function render(val, record, index) {
|
|
12692
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
12693
|
+
style: {
|
|
12694
|
+
width: 70
|
|
12695
|
+
},
|
|
12696
|
+
value: val,
|
|
12697
|
+
min: 0,
|
|
12698
|
+
precision: 2,
|
|
12699
|
+
onChange: function onChange(num) {
|
|
12700
|
+
return updateHandle(num, index, 'payment');
|
|
12701
|
+
}
|
|
12702
|
+
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
12703
|
+
}
|
|
12704
|
+
}, {
|
|
12705
|
+
dataIndex: 'tcSku',
|
|
12706
|
+
title: "\u5957\u9910SKU",
|
|
12707
|
+
align: 'center',
|
|
12708
|
+
ellipsis: true,
|
|
12709
|
+
width: 150
|
|
12710
|
+
}, {
|
|
12711
|
+
dataIndex: 'tcGoodsNumber',
|
|
12712
|
+
title: "\u5957\u9910\u5957\u6570",
|
|
12713
|
+
align: 'center',
|
|
12714
|
+
ellipsis: true,
|
|
12715
|
+
width: 100
|
|
12716
|
+
}, {
|
|
12717
|
+
dataIndex: 'taoCanSingleSl',
|
|
12718
|
+
title: "\u5355\u4E2A\u5957\u9910\u6570\u91CF",
|
|
12719
|
+
align: 'center',
|
|
12720
|
+
ellipsis: true,
|
|
12721
|
+
width: 100
|
|
12722
|
+
}, {
|
|
12723
|
+
dataIndex: 'isGift',
|
|
12724
|
+
title: "\u662F\u5426\u8D60\u54C1",
|
|
12725
|
+
align: 'center',
|
|
12726
|
+
ellipsis: true,
|
|
12727
|
+
width: 100,
|
|
12728
|
+
render: function render(val) {
|
|
12729
|
+
return /*#__PURE__*/React.createElement("span", null, BS_E3_BOOLEAN_STATUS_MAP[val] || val);
|
|
12730
|
+
}
|
|
12731
|
+
}],
|
|
12732
|
+
BS_GOODS: [{
|
|
12733
|
+
dataIndex: 'mark',
|
|
12734
|
+
title: "\u5546\u54C1\u6807\u8BB0",
|
|
12735
|
+
align: 'center',
|
|
12736
|
+
ellipsis: true,
|
|
12737
|
+
width: 70,
|
|
12738
|
+
render: function render(val, record, index) {
|
|
12739
|
+
return /*#__PURE__*/React.createElement(Select, {
|
|
12740
|
+
options: [{
|
|
12741
|
+
label: '是',
|
|
12742
|
+
value: '是'
|
|
12743
|
+
}, {
|
|
12744
|
+
label: '否',
|
|
12745
|
+
value: '否'
|
|
12746
|
+
}],
|
|
12747
|
+
disabled: disabled,
|
|
12748
|
+
value: val,
|
|
12749
|
+
onChange: function onChange(val) {
|
|
12750
|
+
return updateHandle(val, index, 'mark');
|
|
12751
|
+
}
|
|
12752
|
+
});
|
|
12753
|
+
}
|
|
12754
|
+
}, {
|
|
12755
|
+
dataIndex: 'skuName',
|
|
12756
|
+
title: "".concat(text, "sku\u540D\u79F0"),
|
|
12757
|
+
align: 'center',
|
|
12758
|
+
ellipsis: true,
|
|
12759
|
+
width: 250
|
|
12760
|
+
}, {
|
|
12761
|
+
dataIndex: 'sku',
|
|
12762
|
+
title: "".concat(text, "sku\u7F16\u7801"),
|
|
12763
|
+
align: 'center',
|
|
12764
|
+
ellipsis: true,
|
|
12765
|
+
width: 100
|
|
12766
|
+
}, {
|
|
12767
|
+
dataIndex: 'name',
|
|
12768
|
+
title: "".concat(text, "\u540D\u79F0"),
|
|
12769
|
+
align: 'center',
|
|
12770
|
+
ellipsis: true,
|
|
12771
|
+
width: 250
|
|
12772
|
+
}, {
|
|
12773
|
+
dataIndex: 'pic',
|
|
12774
|
+
title: "\u56FE\u7247",
|
|
12775
|
+
align: 'center',
|
|
12776
|
+
ellipsis: true,
|
|
12777
|
+
width: 100,
|
|
12778
|
+
render: function render(val) {
|
|
12779
|
+
return /*#__PURE__*/React.createElement(Image, {
|
|
12780
|
+
width: 60,
|
|
12781
|
+
src: val
|
|
12782
|
+
});
|
|
12783
|
+
}
|
|
12784
|
+
}, {
|
|
12785
|
+
dataIndex: 'code',
|
|
12786
|
+
title: "".concat(text, "\u7F16\u7801"),
|
|
12787
|
+
align: 'center',
|
|
12788
|
+
ellipsis: true,
|
|
12789
|
+
width: 100
|
|
12790
|
+
}, {
|
|
12791
|
+
dataIndex: 'money',
|
|
12792
|
+
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
12793
|
+
align: 'center',
|
|
12794
|
+
ellipsis: true,
|
|
12795
|
+
width: 100
|
|
12796
|
+
}, {
|
|
12797
|
+
dataIndex: 'number',
|
|
12798
|
+
title: "".concat(text, "\u6570\u91CF"),
|
|
12799
|
+
align: 'center',
|
|
12800
|
+
ellipsis: true,
|
|
12801
|
+
width: 100,
|
|
12802
|
+
render: function render(val, record, index) {
|
|
12803
|
+
return record.canUpdateNumber && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
12804
|
+
style: {
|
|
12805
|
+
width: 70
|
|
12806
|
+
},
|
|
12807
|
+
value: val,
|
|
12808
|
+
min: 1,
|
|
12809
|
+
precision: 0,
|
|
12810
|
+
onChange: function onChange(num) {
|
|
12811
|
+
return updateHandle(num, index, 'number');
|
|
12812
|
+
}
|
|
12813
|
+
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
12814
|
+
}
|
|
12815
|
+
}, {
|
|
12816
|
+
dataIndex: 'share',
|
|
12817
|
+
title: "\u5206\u644A\u4EF7",
|
|
12818
|
+
align: 'center',
|
|
12819
|
+
ellipsis: true,
|
|
12820
|
+
width: 70
|
|
12821
|
+
}, {
|
|
12822
|
+
dataIndex: 'type',
|
|
12823
|
+
title: "\u8D60\u54C1\u7C7B\u578B",
|
|
12824
|
+
align: 'center',
|
|
12825
|
+
ellipsis: true,
|
|
12826
|
+
width: 100
|
|
12827
|
+
}, {
|
|
12828
|
+
dataIndex: 'batch',
|
|
12829
|
+
title: "\u6279\u6B21\u53F7",
|
|
12830
|
+
align: 'center',
|
|
12831
|
+
ellipsis: true,
|
|
12832
|
+
width: 100
|
|
12833
|
+
}, {
|
|
12834
|
+
dataIndex: 'expireDate',
|
|
12835
|
+
title: "\u6709\u6548\u671F",
|
|
12836
|
+
align: 'center',
|
|
12837
|
+
ellipsis: true,
|
|
12838
|
+
width: 100
|
|
12839
|
+
}]
|
|
12840
|
+
};
|
|
12841
|
+
};
|
|
12842
|
+
|
|
12843
|
+
var renderGiftType = function renderGiftType(val) {
|
|
12844
|
+
var giftTypeMap = {
|
|
12845
|
+
0: '非赠品',
|
|
12846
|
+
1: '自动赠送',
|
|
12847
|
+
2: '手工赠送',
|
|
12848
|
+
3: '回购自动送赠品',
|
|
12849
|
+
4: '前N有礼送赠品',
|
|
12850
|
+
6: '天猫优仓赠品',
|
|
12851
|
+
7: '淘宝CRM会员送赠'
|
|
12852
|
+
};
|
|
12853
|
+
return /*#__PURE__*/React.createElement("span", null, giftTypeMap[val]);
|
|
12854
|
+
};
|
|
12855
|
+
var renderFieldMap = {
|
|
12856
|
+
num: function num(_ref) {
|
|
12857
|
+
var disabled = _ref.disabled,
|
|
12858
|
+
updateHandle = _ref.updateHandle;
|
|
12859
|
+
return function (val, record, index) {
|
|
12860
|
+
return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
12861
|
+
style: {
|
|
12862
|
+
width: 70
|
|
12863
|
+
},
|
|
12864
|
+
value: val,
|
|
12865
|
+
min: 1,
|
|
12866
|
+
precision: 0,
|
|
12867
|
+
onChange: function onChange(num) {
|
|
12868
|
+
return updateHandle(num, index, 'num');
|
|
12869
|
+
}
|
|
12870
|
+
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
12871
|
+
};
|
|
12872
|
+
},
|
|
12873
|
+
giftType: function giftType() {
|
|
12874
|
+
return renderGiftType;
|
|
12875
|
+
}
|
|
12876
|
+
};
|
|
12877
|
+
var getWdtReissueGoodColumns = function getWdtReissueGoodColumns(_ref2) {
|
|
12878
|
+
var disabled = _ref2.disabled,
|
|
12879
|
+
updateHandle = _ref2.updateHandle,
|
|
12880
|
+
operate = _ref2.operate;
|
|
12881
|
+
return getColumnsMap()['WDT_REISSUE_GOODS'].map(function (item) {
|
|
12882
|
+
var newItem = _objectSpread2({
|
|
12883
|
+
align: 'center',
|
|
12884
|
+
ellipsis: true
|
|
12885
|
+
}, item);
|
|
12886
|
+
if (operate && (renderFieldMap === null || renderFieldMap === void 0 ? void 0 : renderFieldMap[item.dataIndex])) {
|
|
12887
|
+
return _objectSpread2(_objectSpread2({}, newItem), {}, {
|
|
12888
|
+
render: renderFieldMap === null || renderFieldMap === void 0 ? void 0 : renderFieldMap[item.dataIndex]({
|
|
12889
|
+
disabled: disabled,
|
|
12890
|
+
updateHandle: updateHandle
|
|
12891
|
+
})
|
|
12892
|
+
});
|
|
12893
|
+
}
|
|
12894
|
+
return newItem;
|
|
12895
|
+
});
|
|
12896
|
+
};
|
|
12897
|
+
|
|
12898
|
+
var getColumns$1 = function getColumns(_ref) {
|
|
12899
|
+
var _ref$text = _ref.text,
|
|
12900
|
+
text = _ref$text === void 0 ? '' : _ref$text,
|
|
12901
|
+
disabled = _ref.disabled,
|
|
12902
|
+
updateHandle = _ref.updateHandle;
|
|
12903
|
+
return {
|
|
12904
|
+
//旺店通补发商品信息
|
|
12905
|
+
WDT_REISSUE_GOODS: [{
|
|
12906
|
+
dataIndex: 'goodId',
|
|
12907
|
+
title: "\u5546\u54C1ID",
|
|
12908
|
+
width: 120
|
|
12909
|
+
}, {
|
|
12910
|
+
dataIndex: 'goodNo',
|
|
12911
|
+
title: "\u5546\u54C1\u7F16\u7801",
|
|
12912
|
+
width: 200
|
|
12913
|
+
}, {
|
|
12914
|
+
dataIndex: 'goodName',
|
|
12915
|
+
title: "\u5546\u54C1\u540D\u79F0",
|
|
12916
|
+
width: 200
|
|
12917
|
+
}, {
|
|
12918
|
+
dataIndex: 'specId',
|
|
12919
|
+
title: "SKUID",
|
|
12920
|
+
width: 150
|
|
12921
|
+
}, {
|
|
12922
|
+
dataIndex: 'specNo',
|
|
12923
|
+
title: "\u5546\u54C1SKU\u7F16\u7801",
|
|
12924
|
+
width: 200
|
|
12925
|
+
}, {
|
|
12926
|
+
dataIndex: 'specName',
|
|
12927
|
+
title: "\u5546\u54C1SKU\u540D\u79F0",
|
|
12928
|
+
width: 250
|
|
12929
|
+
}, {
|
|
12930
|
+
dataIndex: 'orderPrice',
|
|
12931
|
+
title: "\u5B9E\u4ED8\u603B\u91D1\u989D",
|
|
12932
|
+
width: 200
|
|
12933
|
+
}, {
|
|
12934
|
+
dataIndex: 'num',
|
|
12935
|
+
title: "\u6570\u91CF",
|
|
12936
|
+
width: 100
|
|
12937
|
+
}, {
|
|
12938
|
+
dataIndex: 'sharePrice',
|
|
12939
|
+
title: "\u5206\u644A\u4EF7",
|
|
12940
|
+
width: 150
|
|
12941
|
+
}, {
|
|
12942
|
+
dataIndex: 'giftType',
|
|
12943
|
+
title: "\u8D60\u54C1\u65B9\u5F0F",
|
|
12944
|
+
width: 100,
|
|
12945
|
+
render: renderGiftType
|
|
12946
|
+
}],
|
|
12947
|
+
//旺店通商品信息
|
|
12948
|
+
WDT_GOODS: [{
|
|
12949
|
+
dataIndex: 'goodId',
|
|
12950
|
+
title: "\u5546\u54C1ID",
|
|
12951
|
+
align: 'center',
|
|
12952
|
+
ellipsis: true,
|
|
12953
|
+
width: 70
|
|
12954
|
+
}, {
|
|
12955
|
+
dataIndex: 'goodNo',
|
|
12956
|
+
title: "\u5546\u54C1\u7F16\u7801",
|
|
12957
|
+
align: 'center',
|
|
12958
|
+
ellipsis: true,
|
|
12959
|
+
width: 180
|
|
12960
|
+
}, {
|
|
12961
|
+
dataIndex: 'goodName',
|
|
12962
|
+
title: "".concat(text, "\u5546\u54C1\u540D\u79F0"),
|
|
12963
|
+
align: 'center',
|
|
12964
|
+
ellipsis: true,
|
|
12965
|
+
width: 250
|
|
12966
|
+
}, {
|
|
12967
|
+
dataIndex: 'specId',
|
|
12968
|
+
title: "".concat(text, "SKUID"),
|
|
12969
|
+
align: 'center',
|
|
12970
|
+
ellipsis: true,
|
|
12971
|
+
width: 100
|
|
12972
|
+
}, {
|
|
12973
|
+
dataIndex: 'specNo',
|
|
12974
|
+
title: "".concat(text, "\u5546\u54C1SKU\u7F16\u7801"),
|
|
12975
|
+
align: 'center',
|
|
12976
|
+
ellipsis: true,
|
|
12977
|
+
width: 180
|
|
12978
|
+
}, {
|
|
12979
|
+
dataIndex: 'specName',
|
|
12980
|
+
title: "".concat(text, "\u5546\u54C1SKU\u540D\u79F0"),
|
|
12981
|
+
align: 'center',
|
|
12982
|
+
ellipsis: true,
|
|
12983
|
+
width: 250
|
|
12984
|
+
}, {
|
|
12985
|
+
dataIndex: 'orderPrice',
|
|
12986
|
+
title: "\u5B9E\u4ED8\u603B\u91D1\u989D",
|
|
12987
|
+
align: 'center',
|
|
12988
|
+
ellipsis: true,
|
|
12989
|
+
width: 100
|
|
12990
|
+
}, {
|
|
12991
|
+
dataIndex: 'num',
|
|
12992
|
+
title: "".concat(text, "\u6570\u91CF"),
|
|
12993
|
+
align: 'center',
|
|
12994
|
+
ellipsis: true,
|
|
12995
|
+
width: 100,
|
|
12996
|
+
render: function render(val, record, index) {
|
|
12997
|
+
return record.canUpdateNumber && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
12998
|
+
style: {
|
|
12999
|
+
width: 70
|
|
13000
|
+
},
|
|
13001
|
+
value: val,
|
|
13002
|
+
min: 1,
|
|
13003
|
+
precision: 0,
|
|
13004
|
+
onChange: function onChange(num) {
|
|
13005
|
+
return updateHandle(num, index, 'num');
|
|
13006
|
+
}
|
|
13007
|
+
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
13008
|
+
}
|
|
13009
|
+
}, {
|
|
13010
|
+
dataIndex: 'sharePrice',
|
|
13011
|
+
title: "\u5206\u644A\u4EF7",
|
|
13012
|
+
align: 'center',
|
|
13013
|
+
ellipsis: true,
|
|
13014
|
+
width: 70
|
|
13015
|
+
}, {
|
|
13016
|
+
dataIndex: 'giftType',
|
|
13017
|
+
title: "\u8D60\u54C1\u65B9\u5F0F",
|
|
13018
|
+
align: 'center',
|
|
13019
|
+
ellipsis: true,
|
|
13020
|
+
width: 100,
|
|
13021
|
+
render: function render(val) {
|
|
13022
|
+
var giftTypeMap = {
|
|
13023
|
+
0: '非赠品',
|
|
13024
|
+
1: '自动赠送',
|
|
13025
|
+
2: '手工赠送',
|
|
13026
|
+
3: '回购自动送赠品',
|
|
13027
|
+
4: '前N有礼送赠品',
|
|
13028
|
+
6: '天猫优仓赠品',
|
|
13029
|
+
7: '淘宝CRM会员送赠'
|
|
13030
|
+
};
|
|
13031
|
+
return /*#__PURE__*/React.createElement("span", null, giftTypeMap[val]);
|
|
13032
|
+
}
|
|
13033
|
+
}],
|
|
13034
|
+
//旺店通退货商品信息
|
|
13035
|
+
WDT_RETURN_GOODS: [{
|
|
13036
|
+
dataIndex: 'goodId',
|
|
13037
|
+
title: "\u5546\u54C1ID",
|
|
13038
|
+
align: 'center',
|
|
13039
|
+
ellipsis: true,
|
|
13040
|
+
width: 70
|
|
13041
|
+
}, {
|
|
13042
|
+
dataIndex: 'goodNo',
|
|
13043
|
+
title: "\u5546\u54C1\u7F16\u7801",
|
|
13044
|
+
align: 'center',
|
|
13045
|
+
ellipsis: true,
|
|
13046
|
+
width: 180
|
|
13047
|
+
}, {
|
|
13048
|
+
dataIndex: 'goodName',
|
|
13049
|
+
title: "".concat(text, "\u5546\u54C1\u540D\u79F0"),
|
|
13050
|
+
align: 'center',
|
|
13051
|
+
ellipsis: true,
|
|
13052
|
+
width: 250
|
|
13053
|
+
}, {
|
|
13054
|
+
dataIndex: 'specId',
|
|
13055
|
+
title: "".concat(text, "SKUID"),
|
|
13056
|
+
align: 'center',
|
|
13057
|
+
ellipsis: true,
|
|
13058
|
+
width: 100
|
|
13059
|
+
}, {
|
|
13060
|
+
dataIndex: 'specNo',
|
|
13061
|
+
title: "".concat(text, "\u5546\u54C1SKU\u7F16\u7801"),
|
|
13062
|
+
align: 'center',
|
|
13063
|
+
ellipsis: true,
|
|
13064
|
+
width: 180
|
|
13065
|
+
}, {
|
|
13066
|
+
dataIndex: 'specName',
|
|
13067
|
+
title: "".concat(text, "\u5546\u54C1SKU\u540D\u79F0"),
|
|
13068
|
+
align: 'center',
|
|
13069
|
+
ellipsis: true,
|
|
13070
|
+
width: 250
|
|
13071
|
+
}, {
|
|
13072
|
+
dataIndex: 'num',
|
|
13073
|
+
title: "".concat(text, "\u9000\u8D27\u6570\u91CF"),
|
|
13074
|
+
align: 'center',
|
|
13075
|
+
ellipsis: true,
|
|
13076
|
+
width: 100,
|
|
13077
|
+
render: function render(val, record, index) {
|
|
13078
|
+
return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
13079
|
+
style: {
|
|
13080
|
+
width: 70
|
|
13081
|
+
},
|
|
13082
|
+
value: val,
|
|
13083
|
+
min: 1,
|
|
13084
|
+
precision: 0,
|
|
13085
|
+
onChange: function onChange(num) {
|
|
13086
|
+
return updateHandle(num, index, 'num');
|
|
13087
|
+
}
|
|
13088
|
+
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
13089
|
+
}
|
|
13090
|
+
}, {
|
|
13091
|
+
dataIndex: 'sharePrice',
|
|
13092
|
+
title: "\u5206\u644A\u4EF7",
|
|
13093
|
+
align: 'center',
|
|
13094
|
+
ellipsis: true,
|
|
13095
|
+
width: 80,
|
|
13096
|
+
render: function render(val, record, index) {
|
|
13097
|
+
return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
13098
|
+
style: {
|
|
13099
|
+
width: 70
|
|
13100
|
+
},
|
|
13101
|
+
value: val,
|
|
13102
|
+
min: 0,
|
|
13103
|
+
onChange: function onChange(value) {
|
|
13104
|
+
return updateHandle(value, index, 'sharePrice');
|
|
13105
|
+
}
|
|
13106
|
+
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
13107
|
+
}
|
|
13108
|
+
}, {
|
|
13109
|
+
dataIndex: 'returnPrice',
|
|
13110
|
+
title: "".concat(text, "\u9000\u8D27\u91D1\u989D"),
|
|
13111
|
+
align: 'center',
|
|
13112
|
+
ellipsis: true,
|
|
13113
|
+
width: 100
|
|
13114
|
+
}, {
|
|
13115
|
+
dataIndex: 'giftType',
|
|
13116
|
+
title: "\u8D60\u54C1\u65B9\u5F0F",
|
|
13117
|
+
align: 'center',
|
|
13118
|
+
ellipsis: true,
|
|
13119
|
+
width: 100,
|
|
13120
|
+
render: function render(val) {
|
|
13121
|
+
var giftTypeMap = {
|
|
13122
|
+
0: '非赠品',
|
|
13123
|
+
1: '自动赠送',
|
|
13124
|
+
2: '手工赠送',
|
|
13125
|
+
3: '回购自动送赠品',
|
|
13126
|
+
4: '前N有礼送赠品',
|
|
13127
|
+
6: '天猫优仓赠品',
|
|
13128
|
+
7: '淘宝CRM会员送赠'
|
|
13129
|
+
};
|
|
13130
|
+
return /*#__PURE__*/React.createElement("span", null, giftTypeMap[val]);
|
|
13131
|
+
}
|
|
13132
|
+
}, {
|
|
13133
|
+
dataIndex: 'type',
|
|
13134
|
+
title: "".concat(text, "\u5546\u54C1\u7C7B\u578B"),
|
|
13135
|
+
align: 'center',
|
|
13136
|
+
ellipsis: true,
|
|
13137
|
+
width: 100,
|
|
13138
|
+
render: function render(val, record, index) {
|
|
13139
|
+
var options = [{
|
|
13140
|
+
label: '单品',
|
|
13141
|
+
value: '1'
|
|
13142
|
+
}, {
|
|
13143
|
+
label: '组合装',
|
|
13144
|
+
value: '2'
|
|
13145
|
+
}];
|
|
13146
|
+
return !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
13147
|
+
style: {
|
|
13148
|
+
width: 70
|
|
13149
|
+
},
|
|
13150
|
+
options: options,
|
|
13151
|
+
value: val,
|
|
13152
|
+
onChange: function onChange(value) {
|
|
13153
|
+
return updateHandle(value, index, 'type');
|
|
13154
|
+
}
|
|
13155
|
+
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
13156
|
+
}
|
|
13157
|
+
}],
|
|
13158
|
+
//旺店通换出商品信息
|
|
13159
|
+
WDT_EXCHANGE_GOODS: [{
|
|
13160
|
+
dataIndex: 'goodId',
|
|
13161
|
+
title: "\u5546\u54C1ID",
|
|
13162
|
+
align: 'center',
|
|
13163
|
+
ellipsis: true,
|
|
13164
|
+
width: 70
|
|
13165
|
+
}, {
|
|
13166
|
+
dataIndex: 'goodNo',
|
|
13167
|
+
title: "\u5546\u54C1\u7F16\u7801",
|
|
13168
|
+
align: 'center',
|
|
13169
|
+
ellipsis: true,
|
|
13170
|
+
width: 180
|
|
13171
|
+
}, {
|
|
13172
|
+
dataIndex: 'goodName',
|
|
13173
|
+
title: "".concat(text, "\u5546\u54C1\u540D\u79F0"),
|
|
13174
|
+
align: 'center',
|
|
13175
|
+
ellipsis: true,
|
|
13176
|
+
width: 250
|
|
13177
|
+
}, {
|
|
13178
|
+
dataIndex: 'specId',
|
|
13179
|
+
title: "".concat(text, "SKUID"),
|
|
13180
|
+
align: 'center',
|
|
13181
|
+
ellipsis: true,
|
|
13182
|
+
width: 100
|
|
13183
|
+
}, {
|
|
13184
|
+
dataIndex: 'specNo',
|
|
13185
|
+
title: "".concat(text, "\u5546\u54C1SKU\u7F16\u7801"),
|
|
13186
|
+
align: 'center',
|
|
13187
|
+
ellipsis: true,
|
|
13188
|
+
width: 180
|
|
13189
|
+
}, {
|
|
13190
|
+
dataIndex: 'specName',
|
|
13191
|
+
title: "".concat(text, "\u5546\u54C1SKU\u540D\u79F0"),
|
|
13192
|
+
align: 'center',
|
|
13193
|
+
ellipsis: true,
|
|
13194
|
+
width: 250
|
|
13195
|
+
}, {
|
|
13196
|
+
dataIndex: 'num',
|
|
13197
|
+
title: "".concat(text, "\u6362\u51FA\u6570\u91CF"),
|
|
13198
|
+
align: 'center',
|
|
13199
|
+
ellipsis: true,
|
|
13200
|
+
width: 100,
|
|
13201
|
+
render: function render(val, record, index) {
|
|
13202
|
+
return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
13203
|
+
style: {
|
|
13204
|
+
width: 70
|
|
13205
|
+
},
|
|
13206
|
+
value: val,
|
|
13207
|
+
min: 1,
|
|
13208
|
+
precision: 0,
|
|
13209
|
+
onChange: function onChange(num) {
|
|
13210
|
+
return updateHandle(num, index, 'num');
|
|
13211
|
+
}
|
|
13212
|
+
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
13213
|
+
}
|
|
13214
|
+
}, {
|
|
13215
|
+
dataIndex: 'price',
|
|
13216
|
+
title: "".concat(text, "\u5546\u54C1\u5355\u4EF7"),
|
|
13217
|
+
align: 'center',
|
|
13218
|
+
ellipsis: true,
|
|
13219
|
+
width: 100,
|
|
13220
|
+
render: function render(val, record, index) {
|
|
13221
|
+
return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
13222
|
+
style: {
|
|
13223
|
+
width: 70
|
|
13224
|
+
},
|
|
13225
|
+
value: val,
|
|
13226
|
+
min: 0,
|
|
13227
|
+
onChange: function onChange(value) {
|
|
13228
|
+
return updateHandle(value, index, 'price');
|
|
13229
|
+
}
|
|
13230
|
+
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
13231
|
+
}
|
|
13232
|
+
}, {
|
|
13233
|
+
dataIndex: 'exchangePrice',
|
|
13234
|
+
title: "".concat(text, "\u6362\u51FA\u91D1\u989D"),
|
|
13235
|
+
align: 'center',
|
|
13236
|
+
ellipsis: true,
|
|
13237
|
+
width: 100
|
|
13238
|
+
}, {
|
|
13239
|
+
dataIndex: 'giftType',
|
|
13240
|
+
title: "\u8D60\u54C1\u65B9\u5F0F",
|
|
13241
|
+
align: 'center',
|
|
13242
|
+
ellipsis: true,
|
|
13243
|
+
width: 100,
|
|
13244
|
+
render: function render(val) {
|
|
13245
|
+
var giftTypeMap = {
|
|
13246
|
+
0: '非赠品',
|
|
13247
|
+
1: '自动赠送',
|
|
13248
|
+
2: '手工赠送',
|
|
13249
|
+
3: '回购自动送赠品',
|
|
13250
|
+
4: '前N有礼送赠品',
|
|
13251
|
+
6: '天猫优仓赠品',
|
|
13252
|
+
7: '淘宝CRM会员送赠'
|
|
13253
|
+
};
|
|
13254
|
+
return /*#__PURE__*/React.createElement("span", null, giftTypeMap[val]);
|
|
13255
|
+
}
|
|
13256
|
+
}, {
|
|
13257
|
+
dataIndex: 'type',
|
|
13258
|
+
title: "".concat(text, "\u5546\u54C1\u7C7B\u578B"),
|
|
13259
|
+
align: 'center',
|
|
13260
|
+
ellipsis: true,
|
|
13261
|
+
width: 100,
|
|
13262
|
+
render: function render(val, record, index) {
|
|
13263
|
+
var options = [{
|
|
13264
|
+
label: '单品',
|
|
13265
|
+
value: '1'
|
|
13266
|
+
}, {
|
|
13267
|
+
label: '组合装',
|
|
13268
|
+
value: '2'
|
|
13269
|
+
}];
|
|
13270
|
+
return !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
13271
|
+
style: {
|
|
13272
|
+
width: 70
|
|
13273
|
+
},
|
|
13274
|
+
options: options,
|
|
13275
|
+
value: val,
|
|
13276
|
+
onChange: function onChange(value) {
|
|
13277
|
+
return updateHandle(value, index, 'type');
|
|
13278
|
+
}
|
|
13279
|
+
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
13280
|
+
}
|
|
13281
|
+
}]
|
|
13282
|
+
};
|
|
13283
|
+
};
|
|
13284
|
+
|
|
13285
|
+
var getColumns$2 = function getColumns(_ref) {
|
|
13286
|
+
var _ref$text = _ref.text,
|
|
13287
|
+
text = _ref$text === void 0 ? '' : _ref$text,
|
|
13288
|
+
disabled = _ref.disabled,
|
|
13289
|
+
updateHandle = _ref.updateHandle;
|
|
13290
|
+
return {
|
|
13291
|
+
//万里牛商品信息
|
|
13292
|
+
WLN_GOODS: [{
|
|
13293
|
+
dataIndex: 'skuName',
|
|
13294
|
+
title: "".concat(text, "sku\u540D\u79F0"),
|
|
13295
|
+
align: 'center',
|
|
13296
|
+
ellipsis: true,
|
|
13297
|
+
width: 250
|
|
13298
|
+
}, {
|
|
13299
|
+
dataIndex: 'sku',
|
|
13300
|
+
title: "".concat(text, "sku\u7F16\u7801"),
|
|
13301
|
+
align: 'center',
|
|
13302
|
+
ellipsis: true,
|
|
13303
|
+
width: 100
|
|
13304
|
+
}, {
|
|
13305
|
+
dataIndex: 'name',
|
|
13306
|
+
title: "".concat(text, "\u540D\u79F0"),
|
|
13307
|
+
align: 'center',
|
|
13308
|
+
ellipsis: true,
|
|
13309
|
+
width: 250
|
|
13310
|
+
}, {
|
|
13311
|
+
dataIndex: 'pic',
|
|
13312
|
+
title: "\u56FE\u7247",
|
|
13313
|
+
align: 'center',
|
|
13314
|
+
ellipsis: true,
|
|
13315
|
+
width: 100,
|
|
13316
|
+
render: function render(val) {
|
|
13317
|
+
return /*#__PURE__*/React.createElement(Image, {
|
|
13318
|
+
width: 60,
|
|
13319
|
+
src: val
|
|
13320
|
+
});
|
|
13321
|
+
}
|
|
13322
|
+
}, {
|
|
13323
|
+
dataIndex: 'code',
|
|
13324
|
+
title: "".concat(text, "\u7F16\u7801"),
|
|
13325
|
+
align: 'center',
|
|
13326
|
+
ellipsis: true,
|
|
13327
|
+
width: 100
|
|
13328
|
+
}, {
|
|
13329
|
+
dataIndex: 'money',
|
|
13330
|
+
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
13331
|
+
align: 'center',
|
|
13332
|
+
ellipsis: true,
|
|
13333
|
+
width: 100
|
|
13334
|
+
}, {
|
|
13335
|
+
dataIndex: 'number',
|
|
13336
|
+
title: "".concat(text, "\u6570\u91CF"),
|
|
13337
|
+
align: 'center',
|
|
13338
|
+
ellipsis: true,
|
|
13339
|
+
width: 100,
|
|
13340
|
+
render: function render(val, record, index) {
|
|
13341
|
+
return record.canUpdateNumber && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
13342
|
+
style: {
|
|
13343
|
+
width: 70
|
|
13344
|
+
},
|
|
13345
|
+
value: val,
|
|
13346
|
+
min: 1,
|
|
13347
|
+
precision: 0,
|
|
13348
|
+
onChange: function onChange(num) {
|
|
13349
|
+
return updateHandle(num, index, 'number');
|
|
13350
|
+
}
|
|
13351
|
+
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
13352
|
+
}
|
|
13353
|
+
}, {
|
|
13354
|
+
dataIndex: 'share',
|
|
13355
|
+
title: "\u5206\u644A\u4EF7",
|
|
13356
|
+
align: 'center',
|
|
13357
|
+
ellipsis: true,
|
|
13358
|
+
width: 70
|
|
13359
|
+
}, {
|
|
13360
|
+
dataIndex: 'type',
|
|
13361
|
+
title: "\u8D60\u54C1\u7C7B\u578B",
|
|
13362
|
+
align: 'center',
|
|
13363
|
+
ellipsis: true,
|
|
13364
|
+
width: 100
|
|
13365
|
+
}]
|
|
13366
|
+
};
|
|
13367
|
+
};
|
|
13368
|
+
|
|
13369
|
+
var getColumnsMap = function getColumnsMap(args) {
|
|
13370
|
+
var _ref = args || {},
|
|
13371
|
+
_ref$text = _ref.text,
|
|
13372
|
+
text = _ref$text === void 0 ? '' : _ref$text,
|
|
13373
|
+
disabled = _ref.disabled,
|
|
13374
|
+
updateHandle = _ref.updateHandle;
|
|
13375
|
+
return _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, getColumns({
|
|
13376
|
+
text: text,
|
|
13377
|
+
disabled: disabled,
|
|
13378
|
+
updateHandle: updateHandle
|
|
13379
|
+
})), getColumns$1({
|
|
13380
|
+
text: text,
|
|
13381
|
+
disabled: disabled,
|
|
13382
|
+
updateHandle: updateHandle
|
|
13383
|
+
})), getColumns$2({
|
|
13384
|
+
text: text,
|
|
13385
|
+
disabled: disabled,
|
|
13386
|
+
updateHandle: updateHandle
|
|
13387
|
+
})), {}, {
|
|
13388
|
+
default: [{
|
|
13389
|
+
dataIndex: 'mark',
|
|
13390
|
+
title: "\u5546\u54C1\u6807\u8BB0",
|
|
13391
|
+
align: 'center',
|
|
13392
|
+
ellipsis: true,
|
|
13393
|
+
width: 70,
|
|
13394
|
+
render: function render(val, record, index) {
|
|
13395
|
+
return /*#__PURE__*/React.createElement(Select, {
|
|
13396
|
+
options: [{
|
|
13397
|
+
label: '是',
|
|
13398
|
+
value: '是'
|
|
13399
|
+
}, {
|
|
13400
|
+
label: '否',
|
|
13401
|
+
value: '否'
|
|
13402
|
+
}],
|
|
13403
|
+
disabled: disabled,
|
|
13404
|
+
value: val,
|
|
13405
|
+
onChange: function onChange(val) {
|
|
13406
|
+
return updateHandle(val, index, 'mark');
|
|
13407
|
+
}
|
|
13408
|
+
});
|
|
13409
|
+
}
|
|
13410
|
+
}, {
|
|
13411
|
+
dataIndex: 'skuName',
|
|
13412
|
+
title: "".concat(text, "sku\u540D\u79F0"),
|
|
13413
|
+
align: 'center',
|
|
13414
|
+
ellipsis: true,
|
|
13415
|
+
width: 250
|
|
13416
|
+
}, {
|
|
13417
|
+
dataIndex: 'sku',
|
|
13418
|
+
title: "".concat(text, "sku\u7F16\u7801"),
|
|
13419
|
+
align: 'center',
|
|
13420
|
+
ellipsis: true,
|
|
13421
|
+
width: 100
|
|
13422
|
+
}, {
|
|
13423
|
+
dataIndex: 'name',
|
|
13424
|
+
title: "".concat(text, "\u540D\u79F0"),
|
|
13425
|
+
align: 'center',
|
|
13426
|
+
ellipsis: true,
|
|
13427
|
+
width: 250
|
|
13428
|
+
}, {
|
|
13429
|
+
dataIndex: 'pic',
|
|
13430
|
+
title: "\u56FE\u7247",
|
|
13431
|
+
align: 'center',
|
|
13432
|
+
ellipsis: true,
|
|
13433
|
+
width: 100,
|
|
13434
|
+
render: function render(val) {
|
|
13435
|
+
return /*#__PURE__*/React.createElement(Image, {
|
|
13436
|
+
width: 60,
|
|
13437
|
+
src: val
|
|
13438
|
+
});
|
|
13439
|
+
}
|
|
13440
|
+
}, {
|
|
13441
|
+
dataIndex: 'code',
|
|
13442
|
+
title: "".concat(text, "\u7F16\u7801"),
|
|
13443
|
+
align: 'center',
|
|
13444
|
+
ellipsis: true,
|
|
13445
|
+
width: 100
|
|
13446
|
+
}, {
|
|
13447
|
+
dataIndex: 'money',
|
|
13448
|
+
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
13449
|
+
align: 'center',
|
|
13450
|
+
ellipsis: true,
|
|
13451
|
+
width: 100
|
|
13452
|
+
}, {
|
|
13453
|
+
dataIndex: 'number',
|
|
13454
|
+
title: "".concat(text, "\u6570\u91CF"),
|
|
13455
|
+
align: 'center',
|
|
13456
|
+
ellipsis: true,
|
|
13457
|
+
width: 100,
|
|
13458
|
+
render: function render(val, record, index) {
|
|
13459
|
+
return record.canUpdateNumber && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
13460
|
+
style: {
|
|
13461
|
+
width: 70
|
|
13462
|
+
},
|
|
13463
|
+
value: val,
|
|
13464
|
+
min: 1,
|
|
13465
|
+
precision: 0,
|
|
13466
|
+
onChange: function onChange(num) {
|
|
13467
|
+
return updateHandle(num, index, 'number');
|
|
13468
|
+
}
|
|
13469
|
+
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
13470
|
+
}
|
|
13471
|
+
}, {
|
|
13472
|
+
dataIndex: 'share',
|
|
13473
|
+
title: "\u5206\u644A\u4EF7",
|
|
13474
|
+
align: 'center',
|
|
13475
|
+
ellipsis: true,
|
|
13476
|
+
width: 70
|
|
13477
|
+
}, {
|
|
13478
|
+
dataIndex: 'type',
|
|
13479
|
+
title: "\u8D60\u54C1\u7C7B\u578B",
|
|
13480
|
+
align: 'center',
|
|
13481
|
+
ellipsis: true,
|
|
13482
|
+
width: 100
|
|
13483
|
+
}]
|
|
13484
|
+
});
|
|
13485
|
+
};
|
|
13486
|
+
var getColumnsBaseInfo = function getColumnsBaseInfo() {
|
|
13487
|
+
var clone_columnsMap = cloneDeep(getColumnsMap());
|
|
13488
|
+
var newColumns = {};
|
|
13489
|
+
Object.keys(clone_columnsMap).forEach(function (key) {
|
|
13490
|
+
newColumns[key] = clone_columnsMap[key].map(function (col) {
|
|
13491
|
+
return {
|
|
13492
|
+
title: col.title,
|
|
13493
|
+
dataIndex: col.dataIndex
|
|
13494
|
+
};
|
|
13495
|
+
});
|
|
13496
|
+
});
|
|
13497
|
+
return newColumns;
|
|
13498
|
+
};
|
|
13499
|
+
var columnsBaseInfoMap = getColumnsBaseInfo();
|
|
13500
|
+
|
|
13501
|
+
var renderFieldMap$1 = {
|
|
13502
|
+
goodsNumber: function goodsNumber(_ref) {
|
|
13503
|
+
var disabled = _ref.disabled,
|
|
13504
|
+
updateHandle = _ref.updateHandle;
|
|
13505
|
+
return function (val, record, index) {
|
|
13506
|
+
return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
13507
|
+
style: {
|
|
13508
|
+
width: 70
|
|
13509
|
+
},
|
|
13510
|
+
value: val,
|
|
13511
|
+
min: 1,
|
|
13512
|
+
precision: 0,
|
|
13513
|
+
onChange: function onChange(num) {
|
|
13514
|
+
return updateHandle(num, index, 'goodsNumber');
|
|
13515
|
+
}
|
|
13516
|
+
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
13517
|
+
};
|
|
13518
|
+
},
|
|
13519
|
+
goodsPrice: function goodsPrice(_ref2) {
|
|
13520
|
+
var disabled = _ref2.disabled,
|
|
13521
|
+
updateHandle = _ref2.updateHandle;
|
|
13522
|
+
return function (val, record, index) {
|
|
13523
|
+
return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
13524
|
+
style: {
|
|
13525
|
+
width: 70
|
|
13526
|
+
},
|
|
13527
|
+
value: val,
|
|
13528
|
+
min: 0,
|
|
13529
|
+
onChange: function onChange(value) {
|
|
13530
|
+
return updateHandle(value, index, 'goodsPrice');
|
|
13531
|
+
}
|
|
13532
|
+
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
13533
|
+
};
|
|
13534
|
+
},
|
|
13535
|
+
isGift: function isGift(_ref3) {
|
|
13536
|
+
var disabled = _ref3.disabled,
|
|
13537
|
+
updateHandle = _ref3.updateHandle;
|
|
13538
|
+
return function (val, record, index) {
|
|
13539
|
+
var options = [{
|
|
13540
|
+
label: '是',
|
|
13541
|
+
value: 1
|
|
13542
|
+
}, {
|
|
13543
|
+
label: '否',
|
|
13544
|
+
value: 0
|
|
13545
|
+
}];
|
|
13546
|
+
return !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
13547
|
+
style: {
|
|
13548
|
+
width: 70
|
|
13549
|
+
},
|
|
13550
|
+
options: options,
|
|
13551
|
+
value: val,
|
|
13552
|
+
onChange: function onChange(value) {
|
|
13553
|
+
return updateHandle(value, index, 'isGift');
|
|
13554
|
+
},
|
|
13555
|
+
getPopupContainer: function getPopupContainer() {
|
|
13556
|
+
return document.getElementById('bsE3ReissueGoods');
|
|
13557
|
+
}
|
|
13558
|
+
}) : /*#__PURE__*/React.createElement("span", null, +val ? '是' : '否');
|
|
13559
|
+
};
|
|
13560
|
+
}
|
|
13561
|
+
};
|
|
13562
|
+
var getBsE3ReissueGoodColumns = function getBsE3ReissueGoodColumns(_ref4) {
|
|
13563
|
+
var disabled = _ref4.disabled,
|
|
13564
|
+
updateHandle = _ref4.updateHandle,
|
|
13565
|
+
operate = _ref4.operate;
|
|
13566
|
+
return getColumnsMap()['BS_E3_REISSUE_GOODS'].map(function (item) {
|
|
13567
|
+
var newItem = _objectSpread2({
|
|
13568
|
+
align: 'center',
|
|
13569
|
+
ellipsis: true
|
|
13570
|
+
}, item);
|
|
13571
|
+
if (operate && (renderFieldMap$1 === null || renderFieldMap$1 === void 0 ? void 0 : renderFieldMap$1[item.dataIndex])) {
|
|
13572
|
+
return _objectSpread2(_objectSpread2({}, newItem), {}, {
|
|
13573
|
+
render: renderFieldMap$1 === null || renderFieldMap$1 === void 0 ? void 0 : renderFieldMap$1[item.dataIndex]({
|
|
12672
13574
|
disabled: disabled,
|
|
12673
13575
|
updateHandle: updateHandle
|
|
12674
13576
|
})
|
|
@@ -12833,548 +13735,27 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
12833
13735
|
return function (type) {
|
|
12834
13736
|
var columns = [];
|
|
12835
13737
|
switch (type) {
|
|
12836
|
-
case 'WDT_REISSUE_GOODS':
|
|
12837
|
-
{
|
|
12838
|
-
columns = getWdtReissueGoodColumns({
|
|
12839
|
-
disabled: disabled,
|
|
12840
|
-
updateHandle: updateHandle,
|
|
12841
|
-
operate: operate
|
|
12842
|
-
});
|
|
12843
|
-
}
|
|
12844
|
-
break;
|
|
12845
13738
|
case 'WDT_GOODS':
|
|
12846
|
-
columns = [{
|
|
12847
|
-
dataIndex: 'goodId',
|
|
12848
|
-
title: "\u5546\u54C1ID",
|
|
12849
|
-
align: 'center',
|
|
12850
|
-
ellipsis: true,
|
|
12851
|
-
width: 70
|
|
12852
|
-
}, {
|
|
12853
|
-
dataIndex: 'goodNo',
|
|
12854
|
-
title: "\u5546\u54C1\u7F16\u7801",
|
|
12855
|
-
align: 'center',
|
|
12856
|
-
ellipsis: true,
|
|
12857
|
-
width: 180
|
|
12858
|
-
}, {
|
|
12859
|
-
dataIndex: 'goodName',
|
|
12860
|
-
title: "".concat(text, "\u5546\u54C1\u540D\u79F0"),
|
|
12861
|
-
align: 'center',
|
|
12862
|
-
ellipsis: true,
|
|
12863
|
-
width: 250
|
|
12864
|
-
}, {
|
|
12865
|
-
dataIndex: 'specId',
|
|
12866
|
-
title: "".concat(text, "SKUID"),
|
|
12867
|
-
align: 'center',
|
|
12868
|
-
ellipsis: true,
|
|
12869
|
-
width: 100
|
|
12870
|
-
}, {
|
|
12871
|
-
dataIndex: 'specNo',
|
|
12872
|
-
title: "".concat(text, "\u5546\u54C1SKU\u7F16\u7801"),
|
|
12873
|
-
align: 'center',
|
|
12874
|
-
ellipsis: true,
|
|
12875
|
-
width: 180
|
|
12876
|
-
}, {
|
|
12877
|
-
dataIndex: 'specName',
|
|
12878
|
-
title: "".concat(text, "\u5546\u54C1SKU\u540D\u79F0"),
|
|
12879
|
-
align: 'center',
|
|
12880
|
-
ellipsis: true,
|
|
12881
|
-
width: 250
|
|
12882
|
-
}, {
|
|
12883
|
-
dataIndex: 'orderPrice',
|
|
12884
|
-
title: "\u5B9E\u4ED8\u603B\u91D1\u989D",
|
|
12885
|
-
align: 'center',
|
|
12886
|
-
ellipsis: true,
|
|
12887
|
-
width: 100
|
|
12888
|
-
}, {
|
|
12889
|
-
dataIndex: 'num',
|
|
12890
|
-
title: "".concat(text, "\u6570\u91CF"),
|
|
12891
|
-
align: 'center',
|
|
12892
|
-
ellipsis: true,
|
|
12893
|
-
width: 100,
|
|
12894
|
-
render: function render(val, record, index) {
|
|
12895
|
-
return record.canUpdateNumber && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
12896
|
-
style: {
|
|
12897
|
-
width: 70
|
|
12898
|
-
},
|
|
12899
|
-
value: val,
|
|
12900
|
-
min: 1,
|
|
12901
|
-
precision: 0,
|
|
12902
|
-
onChange: function onChange(num) {
|
|
12903
|
-
return updateHandle(num, index, 'num');
|
|
12904
|
-
}
|
|
12905
|
-
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
12906
|
-
}
|
|
12907
|
-
},
|
|
12908
|
-
// {
|
|
12909
|
-
// dataIndex: 'actualNum',
|
|
12910
|
-
// title: `${text}实发数量`,
|
|
12911
|
-
// align: 'center',
|
|
12912
|
-
// ellipsis: true,
|
|
12913
|
-
// width: 100,
|
|
12914
|
-
// },
|
|
12915
|
-
{
|
|
12916
|
-
dataIndex: 'sharePrice',
|
|
12917
|
-
title: "\u5206\u644A\u4EF7",
|
|
12918
|
-
align: 'center',
|
|
12919
|
-
ellipsis: true,
|
|
12920
|
-
width: 70
|
|
12921
|
-
}, {
|
|
12922
|
-
dataIndex: 'giftType',
|
|
12923
|
-
title: "\u8D60\u54C1\u65B9\u5F0F",
|
|
12924
|
-
align: 'center',
|
|
12925
|
-
ellipsis: true,
|
|
12926
|
-
width: 100,
|
|
12927
|
-
render: function render(val) {
|
|
12928
|
-
var giftTypeMap = {
|
|
12929
|
-
0: '非赠品',
|
|
12930
|
-
1: '自动赠送',
|
|
12931
|
-
2: '手工赠送',
|
|
12932
|
-
3: '回购自动送赠品',
|
|
12933
|
-
4: '前N有礼送赠品',
|
|
12934
|
-
6: '天猫优仓赠品',
|
|
12935
|
-
7: '淘宝CRM会员送赠'
|
|
12936
|
-
};
|
|
12937
|
-
return /*#__PURE__*/React.createElement("span", null, giftTypeMap[val]);
|
|
12938
|
-
}
|
|
12939
|
-
}];
|
|
12940
|
-
break;
|
|
12941
13739
|
case 'WDT_RETURN_GOODS':
|
|
12942
|
-
{
|
|
12943
|
-
columns = [{
|
|
12944
|
-
dataIndex: 'goodId',
|
|
12945
|
-
title: "\u5546\u54C1ID",
|
|
12946
|
-
align: 'center',
|
|
12947
|
-
ellipsis: true,
|
|
12948
|
-
width: 70
|
|
12949
|
-
}, {
|
|
12950
|
-
dataIndex: 'goodNo',
|
|
12951
|
-
title: "\u5546\u54C1\u7F16\u7801",
|
|
12952
|
-
align: 'center',
|
|
12953
|
-
ellipsis: true,
|
|
12954
|
-
width: 180
|
|
12955
|
-
}, {
|
|
12956
|
-
dataIndex: 'goodName',
|
|
12957
|
-
title: "".concat(text, "\u5546\u54C1\u540D\u79F0"),
|
|
12958
|
-
align: 'center',
|
|
12959
|
-
ellipsis: true,
|
|
12960
|
-
width: 250
|
|
12961
|
-
}, {
|
|
12962
|
-
dataIndex: 'specId',
|
|
12963
|
-
title: "".concat(text, "SKUID"),
|
|
12964
|
-
align: 'center',
|
|
12965
|
-
ellipsis: true,
|
|
12966
|
-
width: 100
|
|
12967
|
-
}, {
|
|
12968
|
-
dataIndex: 'specNo',
|
|
12969
|
-
title: "".concat(text, "\u5546\u54C1SKU\u7F16\u7801"),
|
|
12970
|
-
align: 'center',
|
|
12971
|
-
ellipsis: true,
|
|
12972
|
-
width: 180
|
|
12973
|
-
}, {
|
|
12974
|
-
dataIndex: 'specName',
|
|
12975
|
-
title: "".concat(text, "\u5546\u54C1SKU\u540D\u79F0"),
|
|
12976
|
-
align: 'center',
|
|
12977
|
-
ellipsis: true,
|
|
12978
|
-
width: 250
|
|
12979
|
-
}, {
|
|
12980
|
-
dataIndex: 'num',
|
|
12981
|
-
title: "".concat(text, "\u9000\u8D27\u6570\u91CF"),
|
|
12982
|
-
align: 'center',
|
|
12983
|
-
ellipsis: true,
|
|
12984
|
-
width: 100,
|
|
12985
|
-
render: function render(val, record, index) {
|
|
12986
|
-
return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
12987
|
-
style: {
|
|
12988
|
-
width: 70
|
|
12989
|
-
},
|
|
12990
|
-
value: val,
|
|
12991
|
-
min: 1,
|
|
12992
|
-
precision: 0,
|
|
12993
|
-
onChange: function onChange(num) {
|
|
12994
|
-
return updateHandle(num, index, 'num');
|
|
12995
|
-
}
|
|
12996
|
-
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
12997
|
-
}
|
|
12998
|
-
}, {
|
|
12999
|
-
dataIndex: 'sharePrice',
|
|
13000
|
-
title: "\u5206\u644A\u4EF7",
|
|
13001
|
-
align: 'center',
|
|
13002
|
-
ellipsis: true,
|
|
13003
|
-
width: 80,
|
|
13004
|
-
render: function render(val, record, index) {
|
|
13005
|
-
return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
13006
|
-
style: {
|
|
13007
|
-
width: 70
|
|
13008
|
-
},
|
|
13009
|
-
value: val,
|
|
13010
|
-
min: 0,
|
|
13011
|
-
onChange: function onChange(value) {
|
|
13012
|
-
return updateHandle(value, index, 'sharePrice');
|
|
13013
|
-
}
|
|
13014
|
-
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
13015
|
-
}
|
|
13016
|
-
}, {
|
|
13017
|
-
dataIndex: 'returnPrice',
|
|
13018
|
-
title: "".concat(text, "\u9000\u8D27\u91D1\u989D"),
|
|
13019
|
-
align: 'center',
|
|
13020
|
-
ellipsis: true,
|
|
13021
|
-
width: 100
|
|
13022
|
-
}, {
|
|
13023
|
-
dataIndex: 'giftType',
|
|
13024
|
-
title: "\u8D60\u54C1\u65B9\u5F0F",
|
|
13025
|
-
align: 'center',
|
|
13026
|
-
ellipsis: true,
|
|
13027
|
-
width: 100,
|
|
13028
|
-
render: function render(val) {
|
|
13029
|
-
var giftTypeMap = {
|
|
13030
|
-
0: '非赠品',
|
|
13031
|
-
1: '自动赠送',
|
|
13032
|
-
2: '手工赠送',
|
|
13033
|
-
3: '回购自动送赠品',
|
|
13034
|
-
4: '前N有礼送赠品',
|
|
13035
|
-
6: '天猫优仓赠品',
|
|
13036
|
-
7: '淘宝CRM会员送赠'
|
|
13037
|
-
};
|
|
13038
|
-
return /*#__PURE__*/React.createElement("span", null, giftTypeMap[val]);
|
|
13039
|
-
}
|
|
13040
|
-
}, {
|
|
13041
|
-
dataIndex: 'type',
|
|
13042
|
-
title: "".concat(text, "\u5546\u54C1\u7C7B\u578B"),
|
|
13043
|
-
align: 'center',
|
|
13044
|
-
ellipsis: true,
|
|
13045
|
-
width: 100,
|
|
13046
|
-
render: function render(val, record, index) {
|
|
13047
|
-
var options = [{
|
|
13048
|
-
label: '单品',
|
|
13049
|
-
value: '1'
|
|
13050
|
-
}, {
|
|
13051
|
-
label: '组合装',
|
|
13052
|
-
value: '2'
|
|
13053
|
-
}];
|
|
13054
|
-
return !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
13055
|
-
style: {
|
|
13056
|
-
width: 70
|
|
13057
|
-
},
|
|
13058
|
-
options: options,
|
|
13059
|
-
value: val,
|
|
13060
|
-
onChange: function onChange(value) {
|
|
13061
|
-
return updateHandle(value, index, 'type');
|
|
13062
|
-
}
|
|
13063
|
-
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
13064
|
-
}
|
|
13065
|
-
}];
|
|
13066
|
-
}
|
|
13067
|
-
break;
|
|
13068
13740
|
case 'WDT_EXCHANGE_GOODS':
|
|
13741
|
+
case 'BS_E3_GOODS':
|
|
13742
|
+
case 'BS_GOODS':
|
|
13743
|
+
case 'WLN_GOODS':
|
|
13069
13744
|
{
|
|
13070
|
-
columns =
|
|
13071
|
-
|
|
13072
|
-
|
|
13073
|
-
|
|
13074
|
-
|
|
13075
|
-
width: 70
|
|
13076
|
-
}, {
|
|
13077
|
-
dataIndex: 'goodNo',
|
|
13078
|
-
title: "\u5546\u54C1\u7F16\u7801",
|
|
13079
|
-
align: 'center',
|
|
13080
|
-
ellipsis: true,
|
|
13081
|
-
width: 180
|
|
13082
|
-
}, {
|
|
13083
|
-
dataIndex: 'goodName',
|
|
13084
|
-
title: "".concat(text, "\u5546\u54C1\u540D\u79F0"),
|
|
13085
|
-
align: 'center',
|
|
13086
|
-
ellipsis: true,
|
|
13087
|
-
width: 250
|
|
13088
|
-
}, {
|
|
13089
|
-
dataIndex: 'specId',
|
|
13090
|
-
title: "".concat(text, "SKUID"),
|
|
13091
|
-
align: 'center',
|
|
13092
|
-
ellipsis: true,
|
|
13093
|
-
width: 100
|
|
13094
|
-
}, {
|
|
13095
|
-
dataIndex: 'specNo',
|
|
13096
|
-
title: "".concat(text, "\u5546\u54C1SKU\u7F16\u7801"),
|
|
13097
|
-
align: 'center',
|
|
13098
|
-
ellipsis: true,
|
|
13099
|
-
width: 180
|
|
13100
|
-
}, {
|
|
13101
|
-
dataIndex: 'specName',
|
|
13102
|
-
title: "".concat(text, "\u5546\u54C1SKU\u540D\u79F0"),
|
|
13103
|
-
align: 'center',
|
|
13104
|
-
ellipsis: true,
|
|
13105
|
-
width: 250
|
|
13106
|
-
}, {
|
|
13107
|
-
dataIndex: 'num',
|
|
13108
|
-
title: "".concat(text, "\u6362\u51FA\u6570\u91CF"),
|
|
13109
|
-
align: 'center',
|
|
13110
|
-
ellipsis: true,
|
|
13111
|
-
width: 100,
|
|
13112
|
-
render: function render(val, record, index) {
|
|
13113
|
-
return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
13114
|
-
style: {
|
|
13115
|
-
width: 70
|
|
13116
|
-
},
|
|
13117
|
-
value: val,
|
|
13118
|
-
min: 1,
|
|
13119
|
-
precision: 0,
|
|
13120
|
-
onChange: function onChange(num) {
|
|
13121
|
-
return updateHandle(num, index, 'num');
|
|
13122
|
-
}
|
|
13123
|
-
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
13124
|
-
}
|
|
13125
|
-
}, {
|
|
13126
|
-
dataIndex: 'price',
|
|
13127
|
-
title: "".concat(text, "\u5546\u54C1\u5355\u4EF7"),
|
|
13128
|
-
align: 'center',
|
|
13129
|
-
ellipsis: true,
|
|
13130
|
-
width: 100,
|
|
13131
|
-
render: function render(val, record, index) {
|
|
13132
|
-
return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
13133
|
-
style: {
|
|
13134
|
-
width: 70
|
|
13135
|
-
},
|
|
13136
|
-
value: val,
|
|
13137
|
-
min: 0,
|
|
13138
|
-
onChange: function onChange(value) {
|
|
13139
|
-
return updateHandle(value, index, 'price');
|
|
13140
|
-
}
|
|
13141
|
-
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
13142
|
-
}
|
|
13143
|
-
}, {
|
|
13144
|
-
dataIndex: 'exchangePrice',
|
|
13145
|
-
title: "".concat(text, "\u6362\u51FA\u91D1\u989D"),
|
|
13146
|
-
align: 'center',
|
|
13147
|
-
ellipsis: true,
|
|
13148
|
-
width: 100
|
|
13149
|
-
}, {
|
|
13150
|
-
dataIndex: 'giftType',
|
|
13151
|
-
title: "\u8D60\u54C1\u65B9\u5F0F",
|
|
13152
|
-
align: 'center',
|
|
13153
|
-
ellipsis: true,
|
|
13154
|
-
width: 100,
|
|
13155
|
-
render: function render(val) {
|
|
13156
|
-
var giftTypeMap = {
|
|
13157
|
-
0: '非赠品',
|
|
13158
|
-
1: '自动赠送',
|
|
13159
|
-
2: '手工赠送',
|
|
13160
|
-
3: '回购自动送赠品',
|
|
13161
|
-
4: '前N有礼送赠品',
|
|
13162
|
-
6: '天猫优仓赠品',
|
|
13163
|
-
7: '淘宝CRM会员送赠'
|
|
13164
|
-
};
|
|
13165
|
-
return /*#__PURE__*/React.createElement("span", null, giftTypeMap[val]);
|
|
13166
|
-
}
|
|
13167
|
-
}, {
|
|
13168
|
-
dataIndex: 'type',
|
|
13169
|
-
title: "".concat(text, "\u5546\u54C1\u7C7B\u578B"),
|
|
13170
|
-
align: 'center',
|
|
13171
|
-
ellipsis: true,
|
|
13172
|
-
width: 100,
|
|
13173
|
-
render: function render(val, record, index) {
|
|
13174
|
-
var options = [{
|
|
13175
|
-
label: '单品',
|
|
13176
|
-
value: '1'
|
|
13177
|
-
}, {
|
|
13178
|
-
label: '组合装',
|
|
13179
|
-
value: '2'
|
|
13180
|
-
}];
|
|
13181
|
-
return !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
13182
|
-
style: {
|
|
13183
|
-
width: 70
|
|
13184
|
-
},
|
|
13185
|
-
options: options,
|
|
13186
|
-
value: val,
|
|
13187
|
-
onChange: function onChange(value) {
|
|
13188
|
-
return updateHandle(value, index, 'type');
|
|
13189
|
-
}
|
|
13190
|
-
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
13191
|
-
}
|
|
13192
|
-
}];
|
|
13745
|
+
columns = getColumnsMap({
|
|
13746
|
+
text: text,
|
|
13747
|
+
disabled: disabled,
|
|
13748
|
+
updateHandle: updateHandle
|
|
13749
|
+
})[type];
|
|
13193
13750
|
}
|
|
13194
13751
|
break;
|
|
13195
|
-
case '
|
|
13752
|
+
case 'WDT_REISSUE_GOODS':
|
|
13196
13753
|
{
|
|
13197
|
-
columns =
|
|
13198
|
-
|
|
13199
|
-
|
|
13200
|
-
|
|
13201
|
-
|
|
13202
|
-
width: 150
|
|
13203
|
-
}, {
|
|
13204
|
-
dataIndex: 'skuId',
|
|
13205
|
-
title: "SKU ID",
|
|
13206
|
-
align: 'center',
|
|
13207
|
-
ellipsis: true,
|
|
13208
|
-
width: 150
|
|
13209
|
-
}, {
|
|
13210
|
-
dataIndex: 'goodsName',
|
|
13211
|
-
title: "\u5546\u54C1\u540D\u79F0",
|
|
13212
|
-
align: 'center',
|
|
13213
|
-
ellipsis: true,
|
|
13214
|
-
width: 150
|
|
13215
|
-
}, {
|
|
13216
|
-
dataIndex: 'goodsShortName',
|
|
13217
|
-
title: "\u5546\u54C1\u7B80\u79F0",
|
|
13218
|
-
align: 'center',
|
|
13219
|
-
ellipsis: true,
|
|
13220
|
-
width: 100
|
|
13221
|
-
}, {
|
|
13222
|
-
dataIndex: 'picPath',
|
|
13223
|
-
title: "\u5546\u54C1\u56FE\u7247",
|
|
13224
|
-
align: 'center',
|
|
13225
|
-
ellipsis: true,
|
|
13226
|
-
width: 100,
|
|
13227
|
-
render: function render(val) {
|
|
13228
|
-
return /*#__PURE__*/React.createElement(Image, {
|
|
13229
|
-
width: 60,
|
|
13230
|
-
src: val
|
|
13231
|
-
});
|
|
13232
|
-
}
|
|
13233
|
-
}, {
|
|
13234
|
-
dataIndex: 'goodsSn',
|
|
13235
|
-
title: "\u8D27\u53F7",
|
|
13236
|
-
align: 'center',
|
|
13237
|
-
ellipsis: true,
|
|
13238
|
-
width: 150
|
|
13239
|
-
}, {
|
|
13240
|
-
dataIndex: 'goodsId',
|
|
13241
|
-
title: "\u8D27\u53F7ID",
|
|
13242
|
-
align: 'center',
|
|
13243
|
-
ellipsis: true,
|
|
13244
|
-
width: 150
|
|
13245
|
-
}, {
|
|
13246
|
-
dataIndex: 'colorName',
|
|
13247
|
-
title: "\u989C\u8272\u540D\u79F0",
|
|
13248
|
-
align: 'center',
|
|
13249
|
-
ellipsis: true,
|
|
13250
|
-
width: 100
|
|
13251
|
-
}, {
|
|
13252
|
-
dataIndex: 'colorCode',
|
|
13253
|
-
title: "\u989C\u8272\u4EE3\u7801",
|
|
13254
|
-
align: 'center',
|
|
13255
|
-
ellipsis: true,
|
|
13256
|
-
width: 150
|
|
13257
|
-
}, {
|
|
13258
|
-
dataIndex: 'sizeName',
|
|
13259
|
-
title: "\u5C3A\u7801\u540D\u79F0",
|
|
13260
|
-
align: 'center',
|
|
13261
|
-
ellipsis: true,
|
|
13262
|
-
width: 100
|
|
13263
|
-
}, {
|
|
13264
|
-
dataIndex: 'sizeCode',
|
|
13265
|
-
title: "\u5C3A\u7801\u4EE3\u7801",
|
|
13266
|
-
align: 'center',
|
|
13267
|
-
ellipsis: true,
|
|
13268
|
-
width: 100
|
|
13269
|
-
}, {
|
|
13270
|
-
dataIndex: 'brandName',
|
|
13271
|
-
title: "\u54C1\u724C\u540D\u79F0",
|
|
13272
|
-
align: 'center',
|
|
13273
|
-
ellipsis: true,
|
|
13274
|
-
width: 150
|
|
13275
|
-
}, {
|
|
13276
|
-
dataIndex: 'goodsNumber',
|
|
13277
|
-
title: "\u5546\u54C1\u6570\u91CF",
|
|
13278
|
-
align: 'center',
|
|
13279
|
-
ellipsis: true,
|
|
13280
|
-
width: 100,
|
|
13281
|
-
render: function render(val, record, index) {
|
|
13282
|
-
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
13283
|
-
style: {
|
|
13284
|
-
width: 70
|
|
13285
|
-
},
|
|
13286
|
-
value: val,
|
|
13287
|
-
min: 1,
|
|
13288
|
-
precision: 0,
|
|
13289
|
-
onChange: function onChange(num) {
|
|
13290
|
-
return updateHandle(num, index, 'goodsNumber');
|
|
13291
|
-
}
|
|
13292
|
-
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
13293
|
-
}
|
|
13294
|
-
}, {
|
|
13295
|
-
dataIndex: 'goodsPrice',
|
|
13296
|
-
title: "\u5546\u54C1\u5355\u4EF7",
|
|
13297
|
-
align: 'center',
|
|
13298
|
-
ellipsis: true,
|
|
13299
|
-
width: 120,
|
|
13300
|
-
render: function render(val, record, index) {
|
|
13301
|
-
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
13302
|
-
style: {
|
|
13303
|
-
width: 70
|
|
13304
|
-
},
|
|
13305
|
-
value: val,
|
|
13306
|
-
min: 0,
|
|
13307
|
-
precision: 2,
|
|
13308
|
-
onChange: function onChange(num) {
|
|
13309
|
-
return updateHandle(num, index, 'goodsPrice');
|
|
13310
|
-
}
|
|
13311
|
-
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
13312
|
-
}
|
|
13313
|
-
}, {
|
|
13314
|
-
dataIndex: 'shopPrice',
|
|
13315
|
-
title: "\u5546\u54C1\u7F51\u5E97\u552E\u4EF7",
|
|
13316
|
-
align: 'center',
|
|
13317
|
-
ellipsis: true,
|
|
13318
|
-
width: 120
|
|
13319
|
-
}, {
|
|
13320
|
-
dataIndex: 'sharePrice',
|
|
13321
|
-
title: "\u5206\u644A\u4EF7",
|
|
13322
|
-
align: 'center',
|
|
13323
|
-
ellipsis: true,
|
|
13324
|
-
width: 120
|
|
13325
|
-
}, {
|
|
13326
|
-
dataIndex: 'sharePayment',
|
|
13327
|
-
title: "\u5206\u644A\u5B9E\u4ED8\u91D1\u989D",
|
|
13328
|
-
align: 'center',
|
|
13329
|
-
ellipsis: true,
|
|
13330
|
-
width: 120
|
|
13331
|
-
}, {
|
|
13332
|
-
dataIndex: 'payment',
|
|
13333
|
-
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
13334
|
-
align: 'center',
|
|
13335
|
-
ellipsis: true,
|
|
13336
|
-
width: 120,
|
|
13337
|
-
render: function render(val, record, index) {
|
|
13338
|
-
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
13339
|
-
style: {
|
|
13340
|
-
width: 70
|
|
13341
|
-
},
|
|
13342
|
-
value: val,
|
|
13343
|
-
min: 0,
|
|
13344
|
-
precision: 2,
|
|
13345
|
-
onChange: function onChange(num) {
|
|
13346
|
-
return updateHandle(num, index, 'payment');
|
|
13347
|
-
}
|
|
13348
|
-
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
13349
|
-
}
|
|
13350
|
-
}, {
|
|
13351
|
-
dataIndex: 'tcSku',
|
|
13352
|
-
title: "\u5957\u9910SKU",
|
|
13353
|
-
align: 'center',
|
|
13354
|
-
ellipsis: true,
|
|
13355
|
-
width: 150
|
|
13356
|
-
}, {
|
|
13357
|
-
dataIndex: 'tcGoodsNumber',
|
|
13358
|
-
title: "\u5957\u9910\u5957\u6570",
|
|
13359
|
-
align: 'center',
|
|
13360
|
-
ellipsis: true,
|
|
13361
|
-
width: 100
|
|
13362
|
-
}, {
|
|
13363
|
-
dataIndex: 'taoCanSingleSl',
|
|
13364
|
-
title: "\u5355\u4E2A\u5957\u9910\u6570\u91CF",
|
|
13365
|
-
align: 'center',
|
|
13366
|
-
ellipsis: true,
|
|
13367
|
-
width: 100
|
|
13368
|
-
}, {
|
|
13369
|
-
dataIndex: 'isGift',
|
|
13370
|
-
title: "\u662F\u5426\u8D60\u54C1",
|
|
13371
|
-
align: 'center',
|
|
13372
|
-
ellipsis: true,
|
|
13373
|
-
width: 100,
|
|
13374
|
-
render: function render(val) {
|
|
13375
|
-
return /*#__PURE__*/React.createElement("span", null, BS_E3_BOOLEAN_STATUS_MAP[val] || val);
|
|
13376
|
-
}
|
|
13377
|
-
}];
|
|
13754
|
+
columns = getWdtReissueGoodColumns({
|
|
13755
|
+
disabled: disabled,
|
|
13756
|
+
updateHandle: updateHandle,
|
|
13757
|
+
operate: operate
|
|
13758
|
+
});
|
|
13378
13759
|
}
|
|
13379
13760
|
break;
|
|
13380
13761
|
case 'BS_E3_REISSUE_GOODS':
|
|
@@ -13386,213 +13767,12 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
13386
13767
|
});
|
|
13387
13768
|
}
|
|
13388
13769
|
break;
|
|
13389
|
-
case 'BS_GOODS':
|
|
13390
|
-
columns = [{
|
|
13391
|
-
dataIndex: 'mark',
|
|
13392
|
-
title: "\u5546\u54C1\u6807\u8BB0",
|
|
13393
|
-
align: 'center',
|
|
13394
|
-
ellipsis: true,
|
|
13395
|
-
width: 70,
|
|
13396
|
-
render: function render(val, record, index) {
|
|
13397
|
-
return /*#__PURE__*/React.createElement(Select, {
|
|
13398
|
-
options: [{
|
|
13399
|
-
label: '是',
|
|
13400
|
-
value: '是'
|
|
13401
|
-
}, {
|
|
13402
|
-
label: '否',
|
|
13403
|
-
value: '否'
|
|
13404
|
-
}],
|
|
13405
|
-
disabled: disabled,
|
|
13406
|
-
value: val,
|
|
13407
|
-
onChange: function onChange(val) {
|
|
13408
|
-
return updateHandle(val, index, 'mark');
|
|
13409
|
-
}
|
|
13410
|
-
});
|
|
13411
|
-
}
|
|
13412
|
-
}, {
|
|
13413
|
-
dataIndex: 'skuName',
|
|
13414
|
-
title: "".concat(text, "sku\u540D\u79F0"),
|
|
13415
|
-
align: 'center',
|
|
13416
|
-
ellipsis: true,
|
|
13417
|
-
width: 250
|
|
13418
|
-
}, {
|
|
13419
|
-
dataIndex: 'sku',
|
|
13420
|
-
title: "".concat(text, "sku\u7F16\u7801"),
|
|
13421
|
-
align: 'center',
|
|
13422
|
-
ellipsis: true,
|
|
13423
|
-
width: 100
|
|
13424
|
-
}, {
|
|
13425
|
-
dataIndex: 'name',
|
|
13426
|
-
title: "".concat(text, "\u540D\u79F0"),
|
|
13427
|
-
align: 'center',
|
|
13428
|
-
ellipsis: true,
|
|
13429
|
-
width: 250
|
|
13430
|
-
}, {
|
|
13431
|
-
dataIndex: 'pic',
|
|
13432
|
-
title: "\u56FE\u7247",
|
|
13433
|
-
align: 'center',
|
|
13434
|
-
ellipsis: true,
|
|
13435
|
-
width: 100,
|
|
13436
|
-
render: function render(val) {
|
|
13437
|
-
return /*#__PURE__*/React.createElement(Image, {
|
|
13438
|
-
width: 60,
|
|
13439
|
-
src: val
|
|
13440
|
-
});
|
|
13441
|
-
}
|
|
13442
|
-
}, {
|
|
13443
|
-
dataIndex: 'code',
|
|
13444
|
-
title: "".concat(text, "\u7F16\u7801"),
|
|
13445
|
-
align: 'center',
|
|
13446
|
-
ellipsis: true,
|
|
13447
|
-
width: 100
|
|
13448
|
-
}, {
|
|
13449
|
-
dataIndex: 'money',
|
|
13450
|
-
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
13451
|
-
align: 'center',
|
|
13452
|
-
ellipsis: true,
|
|
13453
|
-
width: 100
|
|
13454
|
-
}, {
|
|
13455
|
-
dataIndex: 'number',
|
|
13456
|
-
title: "".concat(text, "\u6570\u91CF"),
|
|
13457
|
-
align: 'center',
|
|
13458
|
-
ellipsis: true,
|
|
13459
|
-
width: 100,
|
|
13460
|
-
render: function render(val, record, index) {
|
|
13461
|
-
return record.canUpdateNumber && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
13462
|
-
style: {
|
|
13463
|
-
width: 70
|
|
13464
|
-
},
|
|
13465
|
-
value: val,
|
|
13466
|
-
min: 1,
|
|
13467
|
-
precision: 0,
|
|
13468
|
-
onChange: function onChange(num) {
|
|
13469
|
-
return updateHandle(num, index, 'number');
|
|
13470
|
-
}
|
|
13471
|
-
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
13472
|
-
}
|
|
13473
|
-
}, {
|
|
13474
|
-
dataIndex: 'share',
|
|
13475
|
-
title: "\u5206\u644A\u4EF7",
|
|
13476
|
-
align: 'center',
|
|
13477
|
-
ellipsis: true,
|
|
13478
|
-
width: 70
|
|
13479
|
-
}, {
|
|
13480
|
-
dataIndex: 'type',
|
|
13481
|
-
title: "\u8D60\u54C1\u7C7B\u578B",
|
|
13482
|
-
align: 'center',
|
|
13483
|
-
ellipsis: true,
|
|
13484
|
-
width: 100
|
|
13485
|
-
}, {
|
|
13486
|
-
dataIndex: 'batch',
|
|
13487
|
-
title: "\u6279\u6B21\u53F7",
|
|
13488
|
-
align: 'center',
|
|
13489
|
-
ellipsis: true,
|
|
13490
|
-
width: 100
|
|
13491
|
-
}, {
|
|
13492
|
-
dataIndex: 'expireDate',
|
|
13493
|
-
title: "\u6709\u6548\u671F",
|
|
13494
|
-
align: 'center',
|
|
13495
|
-
ellipsis: true,
|
|
13496
|
-
width: 100
|
|
13497
|
-
}];
|
|
13498
|
-
break;
|
|
13499
13770
|
default:
|
|
13500
|
-
columns =
|
|
13501
|
-
|
|
13502
|
-
|
|
13503
|
-
|
|
13504
|
-
|
|
13505
|
-
width: 70,
|
|
13506
|
-
render: function render(val, record, index) {
|
|
13507
|
-
return /*#__PURE__*/React.createElement(Select, {
|
|
13508
|
-
options: [{
|
|
13509
|
-
label: '是',
|
|
13510
|
-
value: '是'
|
|
13511
|
-
}, {
|
|
13512
|
-
label: '否',
|
|
13513
|
-
value: '否'
|
|
13514
|
-
}],
|
|
13515
|
-
disabled: disabled,
|
|
13516
|
-
value: val,
|
|
13517
|
-
onChange: function onChange(val) {
|
|
13518
|
-
return updateHandle(val, index, 'mark');
|
|
13519
|
-
}
|
|
13520
|
-
});
|
|
13521
|
-
}
|
|
13522
|
-
}, {
|
|
13523
|
-
dataIndex: 'skuName',
|
|
13524
|
-
title: "".concat(text, "sku\u540D\u79F0"),
|
|
13525
|
-
align: 'center',
|
|
13526
|
-
ellipsis: true,
|
|
13527
|
-
width: 250
|
|
13528
|
-
}, {
|
|
13529
|
-
dataIndex: 'sku',
|
|
13530
|
-
title: "".concat(text, "sku\u7F16\u7801"),
|
|
13531
|
-
align: 'center',
|
|
13532
|
-
ellipsis: true,
|
|
13533
|
-
width: 100
|
|
13534
|
-
}, {
|
|
13535
|
-
dataIndex: 'name',
|
|
13536
|
-
title: "".concat(text, "\u540D\u79F0"),
|
|
13537
|
-
align: 'center',
|
|
13538
|
-
ellipsis: true,
|
|
13539
|
-
width: 250
|
|
13540
|
-
}, {
|
|
13541
|
-
dataIndex: 'pic',
|
|
13542
|
-
title: "\u56FE\u7247",
|
|
13543
|
-
align: 'center',
|
|
13544
|
-
ellipsis: true,
|
|
13545
|
-
width: 100,
|
|
13546
|
-
render: function render(val) {
|
|
13547
|
-
return /*#__PURE__*/React.createElement(Image, {
|
|
13548
|
-
width: 60,
|
|
13549
|
-
src: val
|
|
13550
|
-
});
|
|
13551
|
-
}
|
|
13552
|
-
}, {
|
|
13553
|
-
dataIndex: 'code',
|
|
13554
|
-
title: "".concat(text, "\u7F16\u7801"),
|
|
13555
|
-
align: 'center',
|
|
13556
|
-
ellipsis: true,
|
|
13557
|
-
width: 100
|
|
13558
|
-
}, {
|
|
13559
|
-
dataIndex: 'money',
|
|
13560
|
-
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
13561
|
-
align: 'center',
|
|
13562
|
-
ellipsis: true,
|
|
13563
|
-
width: 100
|
|
13564
|
-
}, {
|
|
13565
|
-
dataIndex: 'number',
|
|
13566
|
-
title: "".concat(text, "\u6570\u91CF"),
|
|
13567
|
-
align: 'center',
|
|
13568
|
-
ellipsis: true,
|
|
13569
|
-
width: 100,
|
|
13570
|
-
render: function render(val, record, index) {
|
|
13571
|
-
return record.canUpdateNumber && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
13572
|
-
style: {
|
|
13573
|
-
width: 70
|
|
13574
|
-
},
|
|
13575
|
-
value: val,
|
|
13576
|
-
min: 1,
|
|
13577
|
-
precision: 0,
|
|
13578
|
-
onChange: function onChange(num) {
|
|
13579
|
-
return updateHandle(num, index, 'number');
|
|
13580
|
-
}
|
|
13581
|
-
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
13582
|
-
}
|
|
13583
|
-
}, {
|
|
13584
|
-
dataIndex: 'share',
|
|
13585
|
-
title: "\u5206\u644A\u4EF7",
|
|
13586
|
-
align: 'center',
|
|
13587
|
-
ellipsis: true,
|
|
13588
|
-
width: 70
|
|
13589
|
-
}, {
|
|
13590
|
-
dataIndex: 'type',
|
|
13591
|
-
title: "\u8D60\u54C1\u7C7B\u578B",
|
|
13592
|
-
align: 'center',
|
|
13593
|
-
ellipsis: true,
|
|
13594
|
-
width: 100
|
|
13595
|
-
}];
|
|
13771
|
+
columns = getColumnsMap({
|
|
13772
|
+
text: text,
|
|
13773
|
+
disabled: disabled,
|
|
13774
|
+
updateHandle: updateHandle
|
|
13775
|
+
})['default'];
|
|
13596
13776
|
}
|
|
13597
13777
|
return columns;
|
|
13598
13778
|
};
|
|
@@ -13604,6 +13784,24 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
13604
13784
|
return COLUMNS_INFO(type);
|
|
13605
13785
|
};
|
|
13606
13786
|
var newColumns = useMemo(function () {
|
|
13787
|
+
var initBaseInfoColumns = GOODS_INFO_COLUMNS();
|
|
13788
|
+
var baseInfoColumns = [];
|
|
13789
|
+
var isStringArray = Array.isArray(showHeader) && typeof showHeader[0] === 'string';
|
|
13790
|
+
var isObjectArray = Array.isArray(showHeader) && Object.prototype.toString.call(showHeader[0]) === '[object Object]';
|
|
13791
|
+
if (isStringArray) {
|
|
13792
|
+
baseInfoColumns = initBaseInfoColumns.filter(function (col) {
|
|
13793
|
+
return showHeader.includes(col.dataIndex);
|
|
13794
|
+
});
|
|
13795
|
+
} else if (isObjectArray) {
|
|
13796
|
+
baseInfoColumns = showHeader.filter(function (col) {
|
|
13797
|
+
return col.show !== false;
|
|
13798
|
+
}).map(function (col) {
|
|
13799
|
+
var currentCol = initBaseInfoColumns.find(function (item) {
|
|
13800
|
+
return item.dataIndex === col.dataIndex;
|
|
13801
|
+
});
|
|
13802
|
+
return currentCol ? currentCol : undefined;
|
|
13803
|
+
}).filter(Boolean);
|
|
13804
|
+
}
|
|
13607
13805
|
var columnList = [{
|
|
13608
13806
|
dataIndex: '',
|
|
13609
13807
|
title: '序号',
|
|
@@ -13613,9 +13811,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
13613
13811
|
render: function render(val, record, index) {
|
|
13614
13812
|
return /*#__PURE__*/React.createElement("span", null, index + 1);
|
|
13615
13813
|
}
|
|
13616
|
-
}].concat(_toConsumableArray(
|
|
13617
|
-
return showHeader.includes(t === null || t === void 0 ? void 0 : t.dataIndex);
|
|
13618
|
-
})));
|
|
13814
|
+
}].concat(_toConsumableArray(baseInfoColumns));
|
|
13619
13815
|
if (!disabled) {
|
|
13620
13816
|
columnList.push({
|
|
13621
13817
|
dataIndex: '',
|
|
@@ -13649,7 +13845,6 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
13649
13845
|
}].concat(_toConsumableArray(columns));
|
|
13650
13846
|
}, []);
|
|
13651
13847
|
var onSubmit = function onSubmit(list) {
|
|
13652
|
-
console.log('🚀 ~ onSubmit ~ list:', list);
|
|
13653
13848
|
var newList = [];
|
|
13654
13849
|
if (['WDT_REISSUE_GOODS', 'WDT_GOODS', 'WDT_EXCHANGE_GOODS'].includes(type)) {
|
|
13655
13850
|
newList = list.map(function (item) {
|
|
@@ -16700,4 +16895,4 @@ var bsE3Reissue = function bsE3Reissue(props) {
|
|
|
16700
16895
|
})));
|
|
16701
16896
|
};
|
|
16702
16897
|
|
|
16703
|
-
export { ApaasAddress as Address, AliPay, Province as ApaasAddress, ApaasCascader, ApaasCheckbox, ApaasDate, withFormItem as ApaasHoc, ApaasInput, ApaasInputNumber, ApaasLogistics, ApaasMultipleSelect, ApaasPosting, ApaasRadio, ApaasRate, ApaasSelect, ApaasSlider, ApaasTextArea, ApaasUpload, index as ApaasUploadAsync, ApaasUploadFile, bsE3Reissue as BsE3Reissue, BsExchange, BsGoods, BsReissue, BsReturnGoods as BsReturn, index$1 as BsSystemOrder, BuyerNick, CalculationInput, ChooseBaby, CommonExchangeGoods, CommonGoods, CommonSystemOrder$1 as CommonMultiStatus, CommonReturnGoods, CommonStatus, CommonSystemOrder, ExpressLogistics, Goods, index$2 as GoodsTable, IdentifyAddress, Invoice, jstGoods as JstGoods, ItemList as JstItemList, LogisticsInterception, LogisticsMoreInterception, LogisticsMoreTrajectory, LogisticsTrajectory, MsgStatus, ParseLogistics, Payment, RemarkInput as Remark, ExpressLogistics as ReturnLogistics, ShopNameSelect as ShopName, Status, SubForm, Supplier, TBGoodId, TBGoodSerial, TradeId, WdtGoodList, wdtReissue as WdtReissue, WlnGoods };
|
|
16898
|
+
export { ApaasAddress as Address, AliPay, Province as ApaasAddress, ApaasCascader, ApaasCheckbox, ApaasDate, withFormItem as ApaasHoc, ApaasInput, ApaasInputNumber, ApaasLogistics, ApaasMultipleSelect, ApaasPosting, ApaasRadio, ApaasRate, ApaasSelect, ApaasSlider, ApaasTextArea, ApaasUpload, index as ApaasUploadAsync, ApaasUploadFile, bsE3Reissue as BsE3Reissue, BsExchange, BsGoods, BsReissue, BsReturnGoods as BsReturn, index$1 as BsSystemOrder, BuyerNick, CalculationInput, ChooseBaby, CommonExchangeGoods, CommonGoods, CommonSystemOrder$1 as CommonMultiStatus, CommonReturnGoods, CommonStatus, CommonSystemOrder, ExpressLogistics, Goods, index$2 as GoodsTable, IdentifyAddress, Invoice, jstGoods as JstGoods, ItemList as JstItemList, LogisticsInterception, LogisticsMoreInterception, LogisticsMoreTrajectory, LogisticsTrajectory, MsgStatus, ParseLogistics, Payment, RemarkInput as Remark, ExpressLogistics as ReturnLogistics, ShopNameSelect as ShopName, Status, SubForm, Supplier, TBGoodId, TBGoodSerial, TradeId, WdtGoodList, wdtReissue as WdtReissue, WlnGoods, columnsBaseInfoMap };
|