@kmkf-fe-packages/basic-components 1.22.1-beta.3 → 1.22.1-beta.34
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 +1369 -868
- package/dist/index.js +1368 -866
- 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/index.esm.js
CHANGED
|
@@ -4,7 +4,7 @@ import { EyeOutlined, DeleteOutlined, CloseCircleOutlined, CaretUpOutlined } fro
|
|
|
4
4
|
import request, { extend as extend$1 } from 'umi-request';
|
|
5
5
|
import { CopyToClipboard } from 'react-copy-to-clipboard';
|
|
6
6
|
import { AddressData, BsAddressData, WdtAddressData, request as request$1, ExpressData, uuid, LogisticsAddressData, SendDataCenter, BS_E3_BOOLEAN_STATUS_MAP, filterWdtOrders, WDT_ORDER_TYPE_MAP, filterBsE3Orders, filterKmOrders, KM_SYSTEM_ORDER_CONFIG, BS_E3_ORDER_STATUS_MAP, updateWdtGoodsHandle, updateBsE3GoodsHandle } from '@kmkf-fe-packages/kmkf-utils';
|
|
7
|
-
import { debounce, isNaN as isNaN$1, isNumber as isNumber$1, cloneDeep, difference, differenceWith, takeRight, reject, isEmpty } from 'lodash';
|
|
7
|
+
import { debounce, isNaN as isNaN$1, isNumber as isNumber$1, cloneDeep, difference, differenceWith, takeRight, reject, isEmpty, intersection, uniqBy } from 'lodash';
|
|
8
8
|
import { useUpdateEffect, useDebounceEffect, useAntdTable } from 'ahooks';
|
|
9
9
|
import zhCN from 'antd/lib/locale/zh_CN';
|
|
10
10
|
import pubsub from 'pubsub-js';
|
|
@@ -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", {
|
|
@@ -10963,6 +11004,11 @@ var jstGoods = function jstGoods(props) {
|
|
|
10963
11004
|
onChange === null || onChange === void 0 ? void 0 : onChange(typeInitValueMap[type]);
|
|
10964
11005
|
}
|
|
10965
11006
|
}, [value, type]);
|
|
11007
|
+
useEffect(function () {
|
|
11008
|
+
if (changeIndex > (value === null || value === void 0 ? void 0 : value.length) - 1) {
|
|
11009
|
+
setChangeIndex(0);
|
|
11010
|
+
}
|
|
11011
|
+
}, value);
|
|
10966
11012
|
var content = function content(item, index) {
|
|
10967
11013
|
return /*#__PURE__*/React.createElement("div", {
|
|
10968
11014
|
style: {
|
|
@@ -10973,7 +11019,7 @@ var jstGoods = function jstGoods(props) {
|
|
|
10973
11019
|
style: {
|
|
10974
11020
|
textAlign: 'center'
|
|
10975
11021
|
}
|
|
10976
|
-
}, "\u5305\u88F9".concat(index + 1, "\u5546\u54C1\u4FE1\u606F")), ((item === null || item === void 0 ? void 0 : item.items) || []).map(function (t, index) {
|
|
11022
|
+
}, "\u5305\u88F9".concat(index + 1, "\u5546\u54C1\u4FE1\u606F"), item.sid && /*#__PURE__*/React.createElement("span", null, "(\u7CFB\u7EDF\u5355\u53F7:", item.sid, ")")), ((item === null || item === void 0 ? void 0 : item.items) || []).map(function (t, index) {
|
|
10977
11023
|
return /*#__PURE__*/React.createElement("div", {
|
|
10978
11024
|
key: index
|
|
10979
11025
|
}, /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Image, {
|
|
@@ -12426,231 +12472,1209 @@ var GoodsModal$4 = function GoodsModal(props, ref) {
|
|
|
12426
12472
|
};
|
|
12427
12473
|
var BsE3GoodsModal = /*#__PURE__*/forwardRef(GoodsModal$4);
|
|
12428
12474
|
|
|
12429
|
-
var
|
|
12430
|
-
|
|
12431
|
-
|
|
12432
|
-
|
|
12433
|
-
|
|
12434
|
-
|
|
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
|
-
precision: 0,
|
|
12509
|
-
onChange: function onChange(num) {
|
|
12510
|
-
return updateHandle(num, index, 'goodsNumber');
|
|
12511
|
-
}
|
|
12512
|
-
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
12513
|
-
};
|
|
12514
|
-
},
|
|
12515
|
-
goodsPrice: function goodsPrice(_ref2) {
|
|
12516
|
-
var disabled = _ref2.disabled,
|
|
12517
|
-
updateHandle = _ref2.updateHandle;
|
|
12518
|
-
return function (val, record, index) {
|
|
12519
|
-
return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
12520
|
-
style: {
|
|
12521
|
-
width: 70
|
|
12522
|
-
},
|
|
12523
|
-
value: val,
|
|
12524
|
-
min: 0,
|
|
12525
|
-
onChange: function onChange(value) {
|
|
12526
|
-
return updateHandle(value, index, 'goodsPrice');
|
|
12527
|
-
}
|
|
12528
|
-
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
12529
|
-
};
|
|
12530
|
-
},
|
|
12531
|
-
isGift: function isGift(_ref3) {
|
|
12532
|
-
var disabled = _ref3.disabled,
|
|
12533
|
-
updateHandle = _ref3.updateHandle;
|
|
12534
|
-
return function (val, record, index) {
|
|
12535
|
-
var options = [{
|
|
12536
|
-
label: '是',
|
|
12537
|
-
value: 1
|
|
12538
|
-
}, {
|
|
12539
|
-
label: '否',
|
|
12540
|
-
value: 0
|
|
12541
|
-
}];
|
|
12542
|
-
return !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
12543
|
-
style: {
|
|
12544
|
-
width: 70
|
|
12545
|
-
},
|
|
12546
|
-
options: options,
|
|
12547
|
-
value: val,
|
|
12548
|
-
onChange: function onChange(value) {
|
|
12549
|
-
return updateHandle(value, index, 'isGift');
|
|
12550
|
-
},
|
|
12551
|
-
getPopupContainer: function getPopupContainer() {
|
|
12552
|
-
return document.getElementById('bsE3ReissueGoods');
|
|
12553
|
-
}
|
|
12554
|
-
}) : /*#__PURE__*/React.createElement("span", null, +val ? '是' : '否');
|
|
12555
|
-
};
|
|
12556
|
-
}
|
|
12557
|
-
};
|
|
12558
|
-
var getBsE3ReissueGoodColumns = function getBsE3ReissueGoodColumns(_ref4) {
|
|
12559
|
-
var disabled = _ref4.disabled,
|
|
12560
|
-
updateHandle = _ref4.updateHandle,
|
|
12561
|
-
operate = _ref4.operate;
|
|
12562
|
-
return columns$3.map(function (item) {
|
|
12563
|
-
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",
|
|
12564
12554
|
align: 'center',
|
|
12565
|
-
ellipsis: true
|
|
12566
|
-
|
|
12567
|
-
|
|
12568
|
-
|
|
12569
|
-
|
|
12570
|
-
|
|
12571
|
-
|
|
12572
|
-
|
|
12573
|
-
|
|
12574
|
-
|
|
12575
|
-
|
|
12576
|
-
|
|
12577
|
-
|
|
12578
|
-
|
|
12579
|
-
|
|
12580
|
-
|
|
12581
|
-
|
|
12582
|
-
|
|
12583
|
-
|
|
12584
|
-
|
|
12585
|
-
|
|
12586
|
-
|
|
12587
|
-
|
|
12588
|
-
|
|
12589
|
-
|
|
12590
|
-
|
|
12591
|
-
|
|
12592
|
-
|
|
12593
|
-
|
|
12594
|
-
|
|
12595
|
-
|
|
12596
|
-
|
|
12597
|
-
|
|
12598
|
-
|
|
12599
|
-
|
|
12600
|
-
|
|
12601
|
-
|
|
12602
|
-
|
|
12603
|
-
|
|
12604
|
-
|
|
12605
|
-
|
|
12606
|
-
|
|
12607
|
-
|
|
12608
|
-
|
|
12609
|
-
|
|
12610
|
-
|
|
12611
|
-
|
|
12612
|
-
|
|
12613
|
-
|
|
12614
|
-
|
|
12615
|
-
|
|
12616
|
-
|
|
12617
|
-
|
|
12618
|
-
|
|
12619
|
-
|
|
12620
|
-
|
|
12621
|
-
|
|
12622
|
-
|
|
12623
|
-
|
|
12624
|
-
|
|
12625
|
-
|
|
12626
|
-
|
|
12627
|
-
|
|
12628
|
-
|
|
12629
|
-
|
|
12630
|
-
|
|
12631
|
-
|
|
12632
|
-
|
|
12633
|
-
|
|
12634
|
-
|
|
12635
|
-
|
|
12636
|
-
|
|
12637
|
-
|
|
12638
|
-
|
|
12639
|
-
|
|
12640
|
-
|
|
12641
|
-
|
|
12642
|
-
|
|
12643
|
-
|
|
12644
|
-
|
|
12645
|
-
|
|
12646
|
-
|
|
12647
|
-
|
|
12648
|
-
|
|
12649
|
-
|
|
12650
|
-
|
|
12651
|
-
|
|
12652
|
-
|
|
12653
|
-
|
|
12555
|
+
ellipsis: true,
|
|
12556
|
+
width: 150
|
|
12557
|
+
}, {
|
|
12558
|
+
dataIndex: 'skuId',
|
|
12559
|
+
title: "SKU ID",
|
|
12560
|
+
align: 'center',
|
|
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]({
|
|
13574
|
+
disabled: disabled,
|
|
13575
|
+
updateHandle: updateHandle
|
|
13576
|
+
})
|
|
13577
|
+
});
|
|
13578
|
+
}
|
|
13579
|
+
return newItem;
|
|
13580
|
+
});
|
|
13581
|
+
};
|
|
13582
|
+
|
|
13583
|
+
var MAIN_FIELD = 'uuid';
|
|
13584
|
+
var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
13585
|
+
var columns = _ref.columns,
|
|
13586
|
+
dataSource = _ref.dataSource,
|
|
13587
|
+
selectedRowKeys = _ref.selectedRowKeys,
|
|
13588
|
+
onChangeSelectedKeys = _ref.onChangeSelectedKeys;
|
|
13589
|
+
var _useState = useState(false),
|
|
13590
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
13591
|
+
tradeGoodsVisible = _useState2[0],
|
|
13592
|
+
setTradeGoodsVisible = _useState2[1];
|
|
13593
|
+
var openModal = function openModal() {
|
|
13594
|
+
return setTradeGoodsVisible(true);
|
|
13595
|
+
};
|
|
13596
|
+
var closeModal = function closeModal() {
|
|
13597
|
+
return setTradeGoodsVisible(false);
|
|
13598
|
+
};
|
|
13599
|
+
var currentTradeOriginGoods = intersection(dataSource === null || dataSource === void 0 ? void 0 : dataSource.map(function (item) {
|
|
13600
|
+
return item === null || item === void 0 ? void 0 : item[MAIN_FIELD];
|
|
13601
|
+
}), selectedRowKeys);
|
|
13602
|
+
var unCurrentTradeOriginGoods = difference(selectedRowKeys, dataSource === null || dataSource === void 0 ? void 0 : dataSource.map(function (item) {
|
|
13603
|
+
return item === null || item === void 0 ? void 0 : item[MAIN_FIELD];
|
|
13604
|
+
}));
|
|
13605
|
+
var handleChangeSelectedKeys = function handleChangeSelectedKeys(keys) {
|
|
13606
|
+
console.log('handleChangeSelectedKeys', keys, unCurrentTradeOriginGoods);
|
|
13607
|
+
onChangeSelectedKeys(keys.concat(unCurrentTradeOriginGoods));
|
|
13608
|
+
};
|
|
13609
|
+
var rowSelection = {
|
|
13610
|
+
selectedRowKeys: selectedRowKeys,
|
|
13611
|
+
onChange: handleChangeSelectedKeys
|
|
13612
|
+
};
|
|
13613
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Button, {
|
|
13614
|
+
type: "link",
|
|
13615
|
+
onClick: openModal
|
|
13616
|
+
}, "\u9009\u62E9\u8BA2\u5355\u5546\u54C1"), /*#__PURE__*/React.createElement(Modal, {
|
|
13617
|
+
title: "\u8BA2\u5355\u5546\u54C1",
|
|
13618
|
+
visible: tradeGoodsVisible,
|
|
13619
|
+
footer: null,
|
|
13620
|
+
onCancel: closeModal
|
|
13621
|
+
}, /*#__PURE__*/React.createElement(Table, {
|
|
13622
|
+
rowKey: MAIN_FIELD,
|
|
13623
|
+
rowSelection: rowSelection,
|
|
13624
|
+
columns: columns,
|
|
13625
|
+
dataSource: dataSource,
|
|
13626
|
+
pagination: false,
|
|
13627
|
+
scroll: {
|
|
13628
|
+
x: 500,
|
|
13629
|
+
y: 500
|
|
13630
|
+
}
|
|
13631
|
+
}), /*#__PURE__*/React.createElement("span", null, "\u5DF2\u9009\u62E9(", currentTradeOriginGoods === null || currentTradeOriginGoods === void 0 ? void 0 : currentTradeOriginGoods.length, "/", dataSource === null || dataSource === void 0 ? void 0 : dataSource.length, ")")));
|
|
13632
|
+
};
|
|
13633
|
+
var getButtonText = function getButtonText() {
|
|
13634
|
+
var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
13635
|
+
if (['BS_E3_GOODS', 'BS_E3_REISSUE_GOODS', 'BS_E3_EXCHANGE_GOODS'].includes(type)) {
|
|
13636
|
+
return '选择百胜ERP商品';
|
|
13637
|
+
}
|
|
13638
|
+
if (['WDT_REISSUE_GOODS'].includes(type)) {
|
|
13639
|
+
return '选择旺店通商品';
|
|
13640
|
+
}
|
|
13641
|
+
return '选择商品';
|
|
13642
|
+
};
|
|
13643
|
+
var GoodItem$1 = function GoodItem(props) {
|
|
13644
|
+
var _props$value = props.value,
|
|
13645
|
+
value = _props$value === void 0 ? [] : _props$value,
|
|
13646
|
+
type = props.type,
|
|
13647
|
+
onChange = props.onChange,
|
|
13648
|
+
disabled = props.disabled,
|
|
13649
|
+
_props$showHeader = props.showHeader,
|
|
13650
|
+
showHeader = _props$showHeader === void 0 ? [] : _props$showHeader,
|
|
13651
|
+
width = props.width,
|
|
13652
|
+
_props$shopList = props.shopList,
|
|
13653
|
+
shopList = _props$shopList === void 0 ? [] : _props$shopList,
|
|
13654
|
+
_props$shopId = props.shopId,
|
|
13655
|
+
shopId = _props$shopId === void 0 ? '' : _props$shopId,
|
|
13656
|
+
_props$maxLength = props.maxLength,
|
|
13657
|
+
maxLength = _props$maxLength === void 0 ? 20 : _props$maxLength,
|
|
13658
|
+
_props$showChangeBtn = props.showChangeBtn,
|
|
13659
|
+
showChangeBtn = _props$showChangeBtn === void 0 ? true : _props$showChangeBtn,
|
|
13660
|
+
_props$showModeBtn = props.showModeBtn,
|
|
13661
|
+
showModeBtn = _props$showModeBtn === void 0 ? false : _props$showModeBtn,
|
|
13662
|
+
_props$isStrict = props.isStrict,
|
|
13663
|
+
isStrict = _props$isStrict === void 0 ? false : _props$isStrict,
|
|
13664
|
+
_props$tableSelect = props.tableSelect,
|
|
13665
|
+
tableSelect = _props$tableSelect === void 0 ? false : _props$tableSelect,
|
|
13666
|
+
_props$selectType = props.selectType,
|
|
13667
|
+
selectType = _props$selectType === void 0 ? '' : _props$selectType,
|
|
13668
|
+
_props$otherOperation = props.otherOperations,
|
|
13669
|
+
otherOperations = _props$otherOperation === void 0 ? null : _props$otherOperation,
|
|
13670
|
+
_props$canUpdateNumbe = props.canUpdateNumber,
|
|
13671
|
+
canUpdateNumber = _props$canUpdateNumbe === void 0 ? false : _props$canUpdateNumbe,
|
|
13672
|
+
shopCode = props.shopCode,
|
|
13673
|
+
_props$companyKey = props.companyKey,
|
|
13674
|
+
companyKey = _props$companyKey === void 0 ? '' : _props$companyKey,
|
|
13675
|
+
onSelect = props.onSelect,
|
|
13676
|
+
onDelete = props.onDelete,
|
|
13677
|
+
onModeChange = props.onModeChange,
|
|
12654
13678
|
tradeGoods = props.tradeGoods;
|
|
12655
13679
|
var refModal = useRef();
|
|
12656
13680
|
console.debug('表格数据', value);
|
|
@@ -12671,7 +13695,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
12671
13695
|
// TODO: 商品订单中以选中商品
|
|
12672
13696
|
var selectedGoods = useMemo(function () {
|
|
12673
13697
|
return value === null || value === void 0 ? void 0 : value.map(function (v) {
|
|
12674
|
-
return v
|
|
13698
|
+
return v === null || v === void 0 ? void 0 : v[MAIN_FIELD];
|
|
12675
13699
|
});
|
|
12676
13700
|
}, [value]);
|
|
12677
13701
|
var updateHandle = function updateHandle(val, index, columnType) {
|
|
@@ -12711,501 +13735,27 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
12711
13735
|
return function (type) {
|
|
12712
13736
|
var columns = [];
|
|
12713
13737
|
switch (type) {
|
|
12714
|
-
case 'WDT_REISSUE_GOODS':
|
|
12715
13738
|
case 'WDT_GOODS':
|
|
12716
|
-
columns = [{
|
|
12717
|
-
dataIndex: 'goodId',
|
|
12718
|
-
title: "\u5546\u54C1ID",
|
|
12719
|
-
align: 'center',
|
|
12720
|
-
ellipsis: true,
|
|
12721
|
-
width: 70
|
|
12722
|
-
}, {
|
|
12723
|
-
dataIndex: 'goodNo',
|
|
12724
|
-
title: "\u5546\u54C1\u7F16\u7801",
|
|
12725
|
-
align: 'center',
|
|
12726
|
-
ellipsis: true,
|
|
12727
|
-
width: 180
|
|
12728
|
-
}, {
|
|
12729
|
-
dataIndex: 'goodName',
|
|
12730
|
-
title: "".concat(text, "\u5546\u54C1\u540D\u79F0"),
|
|
12731
|
-
align: 'center',
|
|
12732
|
-
ellipsis: true,
|
|
12733
|
-
width: 250
|
|
12734
|
-
}, {
|
|
12735
|
-
dataIndex: 'specId',
|
|
12736
|
-
title: "".concat(text, "SKUID"),
|
|
12737
|
-
align: 'center',
|
|
12738
|
-
ellipsis: true,
|
|
12739
|
-
width: 100
|
|
12740
|
-
}, {
|
|
12741
|
-
dataIndex: 'specNo',
|
|
12742
|
-
title: "".concat(text, "\u5546\u54C1SKU\u7F16\u7801"),
|
|
12743
|
-
align: 'center',
|
|
12744
|
-
ellipsis: true,
|
|
12745
|
-
width: 180
|
|
12746
|
-
}, {
|
|
12747
|
-
dataIndex: 'specName',
|
|
12748
|
-
title: "".concat(text, "\u5546\u54C1SKU\u540D\u79F0"),
|
|
12749
|
-
align: 'center',
|
|
12750
|
-
ellipsis: true,
|
|
12751
|
-
width: 250
|
|
12752
|
-
}, {
|
|
12753
|
-
dataIndex: 'orderPrice',
|
|
12754
|
-
title: "\u5B9E\u4ED8\u603B\u91D1\u989D",
|
|
12755
|
-
align: 'center',
|
|
12756
|
-
ellipsis: true,
|
|
12757
|
-
width: 100
|
|
12758
|
-
}, {
|
|
12759
|
-
dataIndex: 'num',
|
|
12760
|
-
title: "".concat(text, "\u6570\u91CF"),
|
|
12761
|
-
align: 'center',
|
|
12762
|
-
ellipsis: true,
|
|
12763
|
-
width: 100,
|
|
12764
|
-
render: function render(val, record, index) {
|
|
12765
|
-
return record.canUpdateNumber && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
12766
|
-
style: {
|
|
12767
|
-
width: 70
|
|
12768
|
-
},
|
|
12769
|
-
value: val,
|
|
12770
|
-
min: 1,
|
|
12771
|
-
precision: 0,
|
|
12772
|
-
onChange: function onChange(num) {
|
|
12773
|
-
return updateHandle(num, index, 'num');
|
|
12774
|
-
}
|
|
12775
|
-
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
12776
|
-
}
|
|
12777
|
-
},
|
|
12778
|
-
// {
|
|
12779
|
-
// dataIndex: 'actualNum',
|
|
12780
|
-
// title: `${text}实发数量`,
|
|
12781
|
-
// align: 'center',
|
|
12782
|
-
// ellipsis: true,
|
|
12783
|
-
// width: 100,
|
|
12784
|
-
// },
|
|
12785
|
-
{
|
|
12786
|
-
dataIndex: 'sharePrice',
|
|
12787
|
-
title: "\u5206\u644A\u4EF7",
|
|
12788
|
-
align: 'center',
|
|
12789
|
-
ellipsis: true,
|
|
12790
|
-
width: 70
|
|
12791
|
-
}, {
|
|
12792
|
-
dataIndex: 'giftType',
|
|
12793
|
-
title: "\u8D60\u54C1\u65B9\u5F0F",
|
|
12794
|
-
align: 'center',
|
|
12795
|
-
ellipsis: true,
|
|
12796
|
-
width: 100,
|
|
12797
|
-
render: function render(val) {
|
|
12798
|
-
var giftTypeMap = {
|
|
12799
|
-
0: '非赠品',
|
|
12800
|
-
1: '自动赠送',
|
|
12801
|
-
2: '手工赠送',
|
|
12802
|
-
3: '回购自动送赠品',
|
|
12803
|
-
4: '前N有礼送赠品',
|
|
12804
|
-
6: '天猫优仓赠品',
|
|
12805
|
-
7: '淘宝CRM会员送赠'
|
|
12806
|
-
};
|
|
12807
|
-
return /*#__PURE__*/React.createElement("span", null, giftTypeMap[val]);
|
|
12808
|
-
}
|
|
12809
|
-
}];
|
|
12810
|
-
break;
|
|
12811
13739
|
case 'WDT_RETURN_GOODS':
|
|
12812
|
-
{
|
|
12813
|
-
columns = [{
|
|
12814
|
-
dataIndex: 'goodId',
|
|
12815
|
-
title: "\u5546\u54C1ID",
|
|
12816
|
-
align: 'center',
|
|
12817
|
-
ellipsis: true,
|
|
12818
|
-
width: 70
|
|
12819
|
-
}, {
|
|
12820
|
-
dataIndex: 'goodNo',
|
|
12821
|
-
title: "\u5546\u54C1\u7F16\u7801",
|
|
12822
|
-
align: 'center',
|
|
12823
|
-
ellipsis: true,
|
|
12824
|
-
width: 180
|
|
12825
|
-
}, {
|
|
12826
|
-
dataIndex: 'goodName',
|
|
12827
|
-
title: "".concat(text, "\u5546\u54C1\u540D\u79F0"),
|
|
12828
|
-
align: 'center',
|
|
12829
|
-
ellipsis: true,
|
|
12830
|
-
width: 250
|
|
12831
|
-
}, {
|
|
12832
|
-
dataIndex: 'specId',
|
|
12833
|
-
title: "".concat(text, "SKUID"),
|
|
12834
|
-
align: 'center',
|
|
12835
|
-
ellipsis: true,
|
|
12836
|
-
width: 100
|
|
12837
|
-
}, {
|
|
12838
|
-
dataIndex: 'specNo',
|
|
12839
|
-
title: "".concat(text, "\u5546\u54C1SKU\u7F16\u7801"),
|
|
12840
|
-
align: 'center',
|
|
12841
|
-
ellipsis: true,
|
|
12842
|
-
width: 180
|
|
12843
|
-
}, {
|
|
12844
|
-
dataIndex: 'specName',
|
|
12845
|
-
title: "".concat(text, "\u5546\u54C1SKU\u540D\u79F0"),
|
|
12846
|
-
align: 'center',
|
|
12847
|
-
ellipsis: true,
|
|
12848
|
-
width: 250
|
|
12849
|
-
}, {
|
|
12850
|
-
dataIndex: 'num',
|
|
12851
|
-
title: "".concat(text, "\u9000\u8D27\u6570\u91CF"),
|
|
12852
|
-
align: 'center',
|
|
12853
|
-
ellipsis: true,
|
|
12854
|
-
width: 100,
|
|
12855
|
-
render: function render(val, record, index) {
|
|
12856
|
-
return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
12857
|
-
style: {
|
|
12858
|
-
width: 70
|
|
12859
|
-
},
|
|
12860
|
-
value: val,
|
|
12861
|
-
min: 1,
|
|
12862
|
-
precision: 0,
|
|
12863
|
-
onChange: function onChange(num) {
|
|
12864
|
-
return updateHandle(num, index, 'num');
|
|
12865
|
-
}
|
|
12866
|
-
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
12867
|
-
}
|
|
12868
|
-
}, {
|
|
12869
|
-
dataIndex: 'sharePrice',
|
|
12870
|
-
title: "\u5206\u644A\u4EF7",
|
|
12871
|
-
align: 'center',
|
|
12872
|
-
ellipsis: true,
|
|
12873
|
-
width: 80,
|
|
12874
|
-
render: function render(val, record, index) {
|
|
12875
|
-
return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
12876
|
-
style: {
|
|
12877
|
-
width: 70
|
|
12878
|
-
},
|
|
12879
|
-
value: val,
|
|
12880
|
-
min: 0,
|
|
12881
|
-
onChange: function onChange(value) {
|
|
12882
|
-
return updateHandle(value, index, 'sharePrice');
|
|
12883
|
-
}
|
|
12884
|
-
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
12885
|
-
}
|
|
12886
|
-
}, {
|
|
12887
|
-
dataIndex: 'returnPrice',
|
|
12888
|
-
title: "".concat(text, "\u9000\u8D27\u91D1\u989D"),
|
|
12889
|
-
align: 'center',
|
|
12890
|
-
ellipsis: true,
|
|
12891
|
-
width: 100
|
|
12892
|
-
}, {
|
|
12893
|
-
dataIndex: 'giftType',
|
|
12894
|
-
title: "\u8D60\u54C1\u65B9\u5F0F",
|
|
12895
|
-
align: 'center',
|
|
12896
|
-
ellipsis: true,
|
|
12897
|
-
width: 100,
|
|
12898
|
-
render: function render(val) {
|
|
12899
|
-
var giftTypeMap = {
|
|
12900
|
-
0: '非赠品',
|
|
12901
|
-
1: '自动赠送',
|
|
12902
|
-
2: '手工赠送',
|
|
12903
|
-
3: '回购自动送赠品',
|
|
12904
|
-
4: '前N有礼送赠品',
|
|
12905
|
-
6: '天猫优仓赠品',
|
|
12906
|
-
7: '淘宝CRM会员送赠'
|
|
12907
|
-
};
|
|
12908
|
-
return /*#__PURE__*/React.createElement("span", null, giftTypeMap[val]);
|
|
12909
|
-
}
|
|
12910
|
-
}, {
|
|
12911
|
-
dataIndex: 'type',
|
|
12912
|
-
title: "".concat(text, "\u5546\u54C1\u7C7B\u578B"),
|
|
12913
|
-
align: 'center',
|
|
12914
|
-
ellipsis: true,
|
|
12915
|
-
width: 100,
|
|
12916
|
-
render: function render(val, record, index) {
|
|
12917
|
-
var options = [{
|
|
12918
|
-
label: '单品',
|
|
12919
|
-
value: '1'
|
|
12920
|
-
}, {
|
|
12921
|
-
label: '组合装',
|
|
12922
|
-
value: '2'
|
|
12923
|
-
}];
|
|
12924
|
-
return !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
12925
|
-
style: {
|
|
12926
|
-
width: 70
|
|
12927
|
-
},
|
|
12928
|
-
options: options,
|
|
12929
|
-
value: val,
|
|
12930
|
-
onChange: function onChange(value) {
|
|
12931
|
-
return updateHandle(value, index, 'type');
|
|
12932
|
-
}
|
|
12933
|
-
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
12934
|
-
}
|
|
12935
|
-
}];
|
|
12936
|
-
}
|
|
12937
|
-
break;
|
|
12938
13740
|
case 'WDT_EXCHANGE_GOODS':
|
|
13741
|
+
case 'BS_E3_GOODS':
|
|
13742
|
+
case 'BS_GOODS':
|
|
13743
|
+
case 'WLN_GOODS':
|
|
12939
13744
|
{
|
|
12940
|
-
columns =
|
|
12941
|
-
|
|
12942
|
-
|
|
12943
|
-
|
|
12944
|
-
|
|
12945
|
-
width: 70
|
|
12946
|
-
}, {
|
|
12947
|
-
dataIndex: 'goodNo',
|
|
12948
|
-
title: "\u5546\u54C1\u7F16\u7801",
|
|
12949
|
-
align: 'center',
|
|
12950
|
-
ellipsis: true,
|
|
12951
|
-
width: 180
|
|
12952
|
-
}, {
|
|
12953
|
-
dataIndex: 'goodName',
|
|
12954
|
-
title: "".concat(text, "\u5546\u54C1\u540D\u79F0"),
|
|
12955
|
-
align: 'center',
|
|
12956
|
-
ellipsis: true,
|
|
12957
|
-
width: 250
|
|
12958
|
-
}, {
|
|
12959
|
-
dataIndex: 'specId',
|
|
12960
|
-
title: "".concat(text, "SKUID"),
|
|
12961
|
-
align: 'center',
|
|
12962
|
-
ellipsis: true,
|
|
12963
|
-
width: 100
|
|
12964
|
-
}, {
|
|
12965
|
-
dataIndex: 'specNo',
|
|
12966
|
-
title: "".concat(text, "\u5546\u54C1SKU\u7F16\u7801"),
|
|
12967
|
-
align: 'center',
|
|
12968
|
-
ellipsis: true,
|
|
12969
|
-
width: 180
|
|
12970
|
-
}, {
|
|
12971
|
-
dataIndex: 'specName',
|
|
12972
|
-
title: "".concat(text, "\u5546\u54C1SKU\u540D\u79F0"),
|
|
12973
|
-
align: 'center',
|
|
12974
|
-
ellipsis: true,
|
|
12975
|
-
width: 250
|
|
12976
|
-
}, {
|
|
12977
|
-
dataIndex: 'num',
|
|
12978
|
-
title: "".concat(text, "\u6362\u51FA\u6570\u91CF"),
|
|
12979
|
-
align: 'center',
|
|
12980
|
-
ellipsis: true,
|
|
12981
|
-
width: 100,
|
|
12982
|
-
render: function render(val, record, index) {
|
|
12983
|
-
return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
12984
|
-
style: {
|
|
12985
|
-
width: 70
|
|
12986
|
-
},
|
|
12987
|
-
value: val,
|
|
12988
|
-
min: 1,
|
|
12989
|
-
precision: 0,
|
|
12990
|
-
onChange: function onChange(num) {
|
|
12991
|
-
return updateHandle(num, index, 'num');
|
|
12992
|
-
}
|
|
12993
|
-
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
12994
|
-
}
|
|
12995
|
-
}, {
|
|
12996
|
-
dataIndex: 'price',
|
|
12997
|
-
title: "".concat(text, "\u5546\u54C1\u5355\u4EF7"),
|
|
12998
|
-
align: 'center',
|
|
12999
|
-
ellipsis: true,
|
|
13000
|
-
width: 100,
|
|
13001
|
-
render: function render(val, record, index) {
|
|
13002
|
-
return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
13003
|
-
style: {
|
|
13004
|
-
width: 70
|
|
13005
|
-
},
|
|
13006
|
-
value: val,
|
|
13007
|
-
min: 0,
|
|
13008
|
-
onChange: function onChange(value) {
|
|
13009
|
-
return updateHandle(value, index, 'price');
|
|
13010
|
-
}
|
|
13011
|
-
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
13012
|
-
}
|
|
13013
|
-
}, {
|
|
13014
|
-
dataIndex: 'exchangePrice',
|
|
13015
|
-
title: "".concat(text, "\u6362\u51FA\u91D1\u989D"),
|
|
13016
|
-
align: 'center',
|
|
13017
|
-
ellipsis: true,
|
|
13018
|
-
width: 100
|
|
13019
|
-
}, {
|
|
13020
|
-
dataIndex: 'giftType',
|
|
13021
|
-
title: "\u8D60\u54C1\u65B9\u5F0F",
|
|
13022
|
-
align: 'center',
|
|
13023
|
-
ellipsis: true,
|
|
13024
|
-
width: 100,
|
|
13025
|
-
render: function render(val) {
|
|
13026
|
-
var giftTypeMap = {
|
|
13027
|
-
0: '非赠品',
|
|
13028
|
-
1: '自动赠送',
|
|
13029
|
-
2: '手工赠送',
|
|
13030
|
-
3: '回购自动送赠品',
|
|
13031
|
-
4: '前N有礼送赠品',
|
|
13032
|
-
6: '天猫优仓赠品',
|
|
13033
|
-
7: '淘宝CRM会员送赠'
|
|
13034
|
-
};
|
|
13035
|
-
return /*#__PURE__*/React.createElement("span", null, giftTypeMap[val]);
|
|
13036
|
-
}
|
|
13037
|
-
}, {
|
|
13038
|
-
dataIndex: 'type',
|
|
13039
|
-
title: "".concat(text, "\u5546\u54C1\u7C7B\u578B"),
|
|
13040
|
-
align: 'center',
|
|
13041
|
-
ellipsis: true,
|
|
13042
|
-
width: 100,
|
|
13043
|
-
render: function render(val, record, index) {
|
|
13044
|
-
var options = [{
|
|
13045
|
-
label: '单品',
|
|
13046
|
-
value: '1'
|
|
13047
|
-
}, {
|
|
13048
|
-
label: '组合装',
|
|
13049
|
-
value: '2'
|
|
13050
|
-
}];
|
|
13051
|
-
return !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
13052
|
-
style: {
|
|
13053
|
-
width: 70
|
|
13054
|
-
},
|
|
13055
|
-
options: options,
|
|
13056
|
-
value: val,
|
|
13057
|
-
onChange: function onChange(value) {
|
|
13058
|
-
return updateHandle(value, index, 'type');
|
|
13059
|
-
}
|
|
13060
|
-
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
13061
|
-
}
|
|
13062
|
-
}];
|
|
13745
|
+
columns = getColumnsMap({
|
|
13746
|
+
text: text,
|
|
13747
|
+
disabled: disabled,
|
|
13748
|
+
updateHandle: updateHandle
|
|
13749
|
+
})[type];
|
|
13063
13750
|
}
|
|
13064
13751
|
break;
|
|
13065
|
-
case '
|
|
13752
|
+
case 'WDT_REISSUE_GOODS':
|
|
13066
13753
|
{
|
|
13067
|
-
columns =
|
|
13068
|
-
|
|
13069
|
-
|
|
13070
|
-
|
|
13071
|
-
|
|
13072
|
-
width: 150
|
|
13073
|
-
}, {
|
|
13074
|
-
dataIndex: 'skuId',
|
|
13075
|
-
title: "SKU ID",
|
|
13076
|
-
align: 'center',
|
|
13077
|
-
ellipsis: true,
|
|
13078
|
-
width: 150
|
|
13079
|
-
}, {
|
|
13080
|
-
dataIndex: 'goodsName',
|
|
13081
|
-
title: "\u5546\u54C1\u540D\u79F0",
|
|
13082
|
-
align: 'center',
|
|
13083
|
-
ellipsis: true,
|
|
13084
|
-
width: 150
|
|
13085
|
-
}, {
|
|
13086
|
-
dataIndex: 'goodsShortName',
|
|
13087
|
-
title: "\u5546\u54C1\u7B80\u79F0",
|
|
13088
|
-
align: 'center',
|
|
13089
|
-
ellipsis: true,
|
|
13090
|
-
width: 100
|
|
13091
|
-
}, {
|
|
13092
|
-
dataIndex: 'picPath',
|
|
13093
|
-
title: "\u5546\u54C1\u56FE\u7247",
|
|
13094
|
-
align: 'center',
|
|
13095
|
-
ellipsis: true,
|
|
13096
|
-
width: 100,
|
|
13097
|
-
render: function render(val) {
|
|
13098
|
-
return /*#__PURE__*/React.createElement(Image, {
|
|
13099
|
-
width: 60,
|
|
13100
|
-
src: val
|
|
13101
|
-
});
|
|
13102
|
-
}
|
|
13103
|
-
}, {
|
|
13104
|
-
dataIndex: 'goodsSn',
|
|
13105
|
-
title: "\u8D27\u53F7",
|
|
13106
|
-
align: 'center',
|
|
13107
|
-
ellipsis: true,
|
|
13108
|
-
width: 150
|
|
13109
|
-
}, {
|
|
13110
|
-
dataIndex: 'goodsId',
|
|
13111
|
-
title: "\u8D27\u53F7ID",
|
|
13112
|
-
align: 'center',
|
|
13113
|
-
ellipsis: true,
|
|
13114
|
-
width: 150
|
|
13115
|
-
}, {
|
|
13116
|
-
dataIndex: 'colorName',
|
|
13117
|
-
title: "\u989C\u8272\u540D\u79F0",
|
|
13118
|
-
align: 'center',
|
|
13119
|
-
ellipsis: true,
|
|
13120
|
-
width: 100
|
|
13121
|
-
}, {
|
|
13122
|
-
dataIndex: 'colorCode',
|
|
13123
|
-
title: "\u989C\u8272\u4EE3\u7801",
|
|
13124
|
-
align: 'center',
|
|
13125
|
-
ellipsis: true,
|
|
13126
|
-
width: 150
|
|
13127
|
-
}, {
|
|
13128
|
-
dataIndex: 'sizeName',
|
|
13129
|
-
title: "\u5C3A\u7801\u540D\u79F0",
|
|
13130
|
-
align: 'center',
|
|
13131
|
-
ellipsis: true,
|
|
13132
|
-
width: 100
|
|
13133
|
-
}, {
|
|
13134
|
-
dataIndex: 'sizeCode',
|
|
13135
|
-
title: "\u5C3A\u7801\u4EE3\u7801",
|
|
13136
|
-
align: 'center',
|
|
13137
|
-
ellipsis: true,
|
|
13138
|
-
width: 100
|
|
13139
|
-
}, {
|
|
13140
|
-
dataIndex: 'brandName',
|
|
13141
|
-
title: "\u54C1\u724C\u540D\u79F0",
|
|
13142
|
-
align: 'center',
|
|
13143
|
-
ellipsis: true,
|
|
13144
|
-
width: 150
|
|
13145
|
-
}, {
|
|
13146
|
-
dataIndex: 'goodsNumber',
|
|
13147
|
-
title: "\u5546\u54C1\u6570\u91CF",
|
|
13148
|
-
align: 'center',
|
|
13149
|
-
ellipsis: true,
|
|
13150
|
-
width: 100
|
|
13151
|
-
}, {
|
|
13152
|
-
dataIndex: 'goodsPrice',
|
|
13153
|
-
title: "\u5546\u54C1\u5355\u4EF7",
|
|
13154
|
-
align: 'center',
|
|
13155
|
-
ellipsis: true,
|
|
13156
|
-
width: 120
|
|
13157
|
-
}, {
|
|
13158
|
-
dataIndex: 'shopPrice',
|
|
13159
|
-
title: "\u5546\u54C1\u7F51\u5E97\u552E\u4EF7",
|
|
13160
|
-
align: 'center',
|
|
13161
|
-
ellipsis: true,
|
|
13162
|
-
width: 120
|
|
13163
|
-
}, {
|
|
13164
|
-
dataIndex: 'sharePrice',
|
|
13165
|
-
title: "\u5206\u644A\u4EF7",
|
|
13166
|
-
align: 'center',
|
|
13167
|
-
ellipsis: true,
|
|
13168
|
-
width: 120
|
|
13169
|
-
}, {
|
|
13170
|
-
dataIndex: 'sharePayment',
|
|
13171
|
-
title: "\u5206\u644A\u5B9E\u4ED8\u91D1\u989D",
|
|
13172
|
-
align: 'center',
|
|
13173
|
-
ellipsis: true,
|
|
13174
|
-
width: 120
|
|
13175
|
-
}, {
|
|
13176
|
-
dataIndex: 'payment',
|
|
13177
|
-
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
13178
|
-
align: 'center',
|
|
13179
|
-
ellipsis: true,
|
|
13180
|
-
width: 120
|
|
13181
|
-
}, {
|
|
13182
|
-
dataIndex: 'tcSku',
|
|
13183
|
-
title: "\u5957\u9910SKU",
|
|
13184
|
-
align: 'center',
|
|
13185
|
-
ellipsis: true,
|
|
13186
|
-
width: 150
|
|
13187
|
-
}, {
|
|
13188
|
-
dataIndex: 'tcGoodsNumber',
|
|
13189
|
-
title: "\u5957\u9910\u5957\u6570",
|
|
13190
|
-
align: 'center',
|
|
13191
|
-
ellipsis: true,
|
|
13192
|
-
width: 100
|
|
13193
|
-
}, {
|
|
13194
|
-
dataIndex: 'taoCanSingleSl',
|
|
13195
|
-
title: "\u5355\u4E2A\u5957\u9910\u6570\u91CF",
|
|
13196
|
-
align: 'center',
|
|
13197
|
-
ellipsis: true,
|
|
13198
|
-
width: 100
|
|
13199
|
-
}, {
|
|
13200
|
-
dataIndex: 'isGift',
|
|
13201
|
-
title: "\u662F\u5426\u8D60\u54C1",
|
|
13202
|
-
align: 'center',
|
|
13203
|
-
ellipsis: true,
|
|
13204
|
-
width: 100,
|
|
13205
|
-
render: function render(val) {
|
|
13206
|
-
return /*#__PURE__*/React.createElement("span", null, BS_E3_BOOLEAN_STATUS_MAP[val] || val);
|
|
13207
|
-
}
|
|
13208
|
-
}];
|
|
13754
|
+
columns = getWdtReissueGoodColumns({
|
|
13755
|
+
disabled: disabled,
|
|
13756
|
+
updateHandle: updateHandle,
|
|
13757
|
+
operate: operate
|
|
13758
|
+
});
|
|
13209
13759
|
}
|
|
13210
13760
|
break;
|
|
13211
13761
|
case 'BS_E3_REISSUE_GOODS':
|
|
@@ -13218,102 +13768,11 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
13218
13768
|
}
|
|
13219
13769
|
break;
|
|
13220
13770
|
default:
|
|
13221
|
-
columns =
|
|
13222
|
-
|
|
13223
|
-
|
|
13224
|
-
|
|
13225
|
-
|
|
13226
|
-
width: 70,
|
|
13227
|
-
render: function render(val, record, index) {
|
|
13228
|
-
return /*#__PURE__*/React.createElement(Select, {
|
|
13229
|
-
options: [{
|
|
13230
|
-
label: '是',
|
|
13231
|
-
value: '是'
|
|
13232
|
-
}, {
|
|
13233
|
-
label: '否',
|
|
13234
|
-
value: '否'
|
|
13235
|
-
}],
|
|
13236
|
-
disabled: disabled,
|
|
13237
|
-
value: val,
|
|
13238
|
-
onChange: function onChange(val) {
|
|
13239
|
-
return updateHandle(val, index, 'mark');
|
|
13240
|
-
}
|
|
13241
|
-
});
|
|
13242
|
-
}
|
|
13243
|
-
}, {
|
|
13244
|
-
dataIndex: 'skuName',
|
|
13245
|
-
title: "".concat(text, "sku\u540D\u79F0"),
|
|
13246
|
-
align: 'center',
|
|
13247
|
-
ellipsis: true,
|
|
13248
|
-
width: 250
|
|
13249
|
-
}, {
|
|
13250
|
-
dataIndex: 'sku',
|
|
13251
|
-
title: "".concat(text, "sku\u7F16\u7801"),
|
|
13252
|
-
align: 'center',
|
|
13253
|
-
ellipsis: true,
|
|
13254
|
-
width: 100
|
|
13255
|
-
}, {
|
|
13256
|
-
dataIndex: 'name',
|
|
13257
|
-
title: "".concat(text, "\u540D\u79F0"),
|
|
13258
|
-
align: 'center',
|
|
13259
|
-
ellipsis: true,
|
|
13260
|
-
width: 250
|
|
13261
|
-
}, {
|
|
13262
|
-
dataIndex: 'pic',
|
|
13263
|
-
title: "\u56FE\u7247",
|
|
13264
|
-
align: 'center',
|
|
13265
|
-
ellipsis: true,
|
|
13266
|
-
width: 100,
|
|
13267
|
-
render: function render(val) {
|
|
13268
|
-
return /*#__PURE__*/React.createElement(Image, {
|
|
13269
|
-
width: 60,
|
|
13270
|
-
src: val
|
|
13271
|
-
});
|
|
13272
|
-
}
|
|
13273
|
-
}, {
|
|
13274
|
-
dataIndex: 'code',
|
|
13275
|
-
title: "".concat(text, "\u7F16\u7801"),
|
|
13276
|
-
align: 'center',
|
|
13277
|
-
ellipsis: true,
|
|
13278
|
-
width: 100
|
|
13279
|
-
}, {
|
|
13280
|
-
dataIndex: 'money',
|
|
13281
|
-
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
13282
|
-
align: 'center',
|
|
13283
|
-
ellipsis: true,
|
|
13284
|
-
width: 100
|
|
13285
|
-
}, {
|
|
13286
|
-
dataIndex: 'number',
|
|
13287
|
-
title: "".concat(text, "\u6570\u91CF"),
|
|
13288
|
-
align: 'center',
|
|
13289
|
-
ellipsis: true,
|
|
13290
|
-
width: 100,
|
|
13291
|
-
render: function render(val, record, index) {
|
|
13292
|
-
return record.canUpdateNumber && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
13293
|
-
style: {
|
|
13294
|
-
width: 70
|
|
13295
|
-
},
|
|
13296
|
-
value: val,
|
|
13297
|
-
min: 1,
|
|
13298
|
-
precision: 0,
|
|
13299
|
-
onChange: function onChange(num) {
|
|
13300
|
-
return updateHandle(num, index, 'number');
|
|
13301
|
-
}
|
|
13302
|
-
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
13303
|
-
}
|
|
13304
|
-
}, {
|
|
13305
|
-
dataIndex: 'share',
|
|
13306
|
-
title: "\u5206\u644A\u4EF7",
|
|
13307
|
-
align: 'center',
|
|
13308
|
-
ellipsis: true,
|
|
13309
|
-
width: 70
|
|
13310
|
-
}, {
|
|
13311
|
-
dataIndex: 'type',
|
|
13312
|
-
title: "\u8D60\u54C1\u7C7B\u578B",
|
|
13313
|
-
align: 'center',
|
|
13314
|
-
ellipsis: true,
|
|
13315
|
-
width: 100
|
|
13316
|
-
}];
|
|
13771
|
+
columns = getColumnsMap({
|
|
13772
|
+
text: text,
|
|
13773
|
+
disabled: disabled,
|
|
13774
|
+
updateHandle: updateHandle
|
|
13775
|
+
})['default'];
|
|
13317
13776
|
}
|
|
13318
13777
|
return columns;
|
|
13319
13778
|
};
|
|
@@ -13325,6 +13784,24 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
13325
13784
|
return COLUMNS_INFO(type);
|
|
13326
13785
|
};
|
|
13327
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
|
+
}
|
|
13328
13805
|
var columnList = [{
|
|
13329
13806
|
dataIndex: '',
|
|
13330
13807
|
title: '序号',
|
|
@@ -13334,9 +13811,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
13334
13811
|
render: function render(val, record, index) {
|
|
13335
13812
|
return /*#__PURE__*/React.createElement("span", null, index + 1);
|
|
13336
13813
|
}
|
|
13337
|
-
}].concat(_toConsumableArray(
|
|
13338
|
-
return showHeader.includes(t === null || t === void 0 ? void 0 : t.dataIndex);
|
|
13339
|
-
})));
|
|
13814
|
+
}].concat(_toConsumableArray(baseInfoColumns));
|
|
13340
13815
|
if (!disabled) {
|
|
13341
13816
|
columnList.push({
|
|
13342
13817
|
dataIndex: '',
|
|
@@ -13414,6 +13889,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
13414
13889
|
isGift: '',
|
|
13415
13890
|
uuid: uuid(),
|
|
13416
13891
|
canDelete: true,
|
|
13892
|
+
canEdit: true,
|
|
13417
13893
|
goodsNumber: 1,
|
|
13418
13894
|
canUpdateNumber: canUpdateNumber
|
|
13419
13895
|
});
|
|
@@ -13485,7 +13961,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
13485
13961
|
}), /*#__PURE__*/React.createElement(Button, {
|
|
13486
13962
|
type: "link",
|
|
13487
13963
|
onClick: handleChangeGoods
|
|
13488
|
-
},
|
|
13964
|
+
}, getButtonText(type)), otherOperations), /*#__PURE__*/React.createElement(Table, _objectSpread2(_objectSpread2({}, tableConfig), {}, {
|
|
13489
13965
|
columns: newColumns,
|
|
13490
13966
|
dataSource: value,
|
|
13491
13967
|
rowKey: 'uuid',
|
|
@@ -15164,7 +15640,7 @@ var typeMap$1 = {
|
|
|
15164
15640
|
}
|
|
15165
15641
|
};
|
|
15166
15642
|
var wdtReissue = function wdtReissue(props) {
|
|
15167
|
-
var _value$wdtSystemOrder, _typeMap$
|
|
15643
|
+
var _value$wdtSystemOrder, _typeMap$type26, _typeMap$type28, _typeMap$type29, _value$typeMap$type$s5, _typeMap$type30, _typeMap$type31, _typeMap$type32;
|
|
15168
15644
|
var value = props.value,
|
|
15169
15645
|
onChange = props.onChange,
|
|
15170
15646
|
_props$reasonList = props.reasonList,
|
|
@@ -15324,11 +15800,26 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
15324
15800
|
}
|
|
15325
15801
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
15326
15802
|
};
|
|
15803
|
+
var selectedGoodsChange = useCallback(function (skuList) {
|
|
15804
|
+
var _typeMap$type23, _typeMap$type24, _uniqBy, _typeMap$type25;
|
|
15805
|
+
var newValue = _objectSpread2({}, value);
|
|
15806
|
+
// 原订单商品
|
|
15807
|
+
var originTradeGoodList = getGoodDetails({
|
|
15808
|
+
mode: isStrict
|
|
15809
|
+
}) || [];
|
|
15810
|
+
// 当前选中的所有商品【包含了原订单+商品库】
|
|
15811
|
+
var currentSelectGoodList = (value === null || value === void 0 ? void 0 : value["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type23 = typeMap$1[type]) === null || _typeMap$type23 === void 0 ? void 0 : _typeMap$type23.key)]) || [];
|
|
15812
|
+
newValue["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type24 = typeMap$1[type]) === null || _typeMap$type24 === void 0 ? void 0 : _typeMap$type24.key)] = (_uniqBy = uniqBy(originTradeGoodList.concat(currentSelectGoodList), 'uuid')) === null || _uniqBy === void 0 ? void 0 : _uniqBy.filter(function (item) {
|
|
15813
|
+
return skuList.includes(item.uuid);
|
|
15814
|
+
});
|
|
15815
|
+
console.log('商品发生变化', newValue["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type25 = typeMap$1[type]) === null || _typeMap$type25 === void 0 ? void 0 : _typeMap$type25.key)]);
|
|
15816
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
15817
|
+
}, [value === null || value === void 0 ? void 0 : value["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type26 = typeMap$1[type]) === null || _typeMap$type26 === void 0 ? void 0 : _typeMap$type26.key)], isStrict]);
|
|
15327
15818
|
//显示选择商品按钮 原单换不显示选择商品
|
|
15328
15819
|
var showChangeBtn = useMemo(function () {
|
|
15329
|
-
var _typeMap$
|
|
15330
|
-
return !!(value === null || value === void 0 ? void 0 : value[(_typeMap$
|
|
15331
|
-
}, [value === null || value === void 0 ? void 0 : value[(_typeMap$
|
|
15820
|
+
var _typeMap$type27;
|
|
15821
|
+
return !!(value === null || value === void 0 ? void 0 : value[(_typeMap$type27 = typeMap$1[type]) === null || _typeMap$type27 === void 0 ? void 0 : _typeMap$type27.systemOrderNo]);
|
|
15822
|
+
}, [value === null || value === void 0 ? void 0 : value[(_typeMap$type28 = typeMap$1[type]) === null || _typeMap$type28 === void 0 ? void 0 : _typeMap$type28.systemOrderNo]]);
|
|
15332
15823
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Row, {
|
|
15333
15824
|
gutter: 8,
|
|
15334
15825
|
wrap: true
|
|
@@ -15346,12 +15837,12 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
15346
15837
|
},
|
|
15347
15838
|
disabled: disabled,
|
|
15348
15839
|
allowClear: false,
|
|
15349
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$
|
|
15840
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type29 = typeMap$1[type]) === null || _typeMap$type29 === void 0 ? void 0 : _typeMap$type29.systemOrderNo)],
|
|
15350
15841
|
onChange: function onChange(val) {
|
|
15351
15842
|
return changeSystemOrderHandle(val);
|
|
15352
15843
|
},
|
|
15353
15844
|
placeholder: "\u9009\u62E9\u8865\u53D1\u7CFB\u7EDF\u5355"
|
|
15354
|
-
}, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s5 = value[(_typeMap$
|
|
15845
|
+
}, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s5 = value[(_typeMap$type30 = typeMap$1[type]) === null || _typeMap$type30 === void 0 ? void 0 : _typeMap$type30.systemOrder]) === null || _value$typeMap$type$s5 === void 0 ? void 0 : _value$typeMap$type$s5.showOrderInfo) || []).map(function (item) {
|
|
15355
15846
|
return /*#__PURE__*/React.createElement(Select.Option, {
|
|
15356
15847
|
key: item.billNo,
|
|
15357
15848
|
value: item.billNo,
|
|
@@ -15372,7 +15863,7 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
15372
15863
|
disabled: disabled,
|
|
15373
15864
|
allowClear: false,
|
|
15374
15865
|
options: reasonList,
|
|
15375
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$
|
|
15866
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type31 = typeMap$1[type]) === null || _typeMap$type31 === void 0 ? void 0 : _typeMap$type31.typeName)],
|
|
15376
15867
|
onChange: function onChange(val) {
|
|
15377
15868
|
return changeTypeHandle(val);
|
|
15378
15869
|
}
|
|
@@ -15384,13 +15875,19 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
15384
15875
|
canUpdateNumber: showChangeBtn,
|
|
15385
15876
|
showChangeBtn: showChangeBtn,
|
|
15386
15877
|
shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
|
|
15387
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$
|
|
15878
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type32 = typeMap$1[type]) === null || _typeMap$type32 === void 0 ? void 0 : _typeMap$type32.key)],
|
|
15388
15879
|
onChange: function onChange(val) {
|
|
15389
15880
|
return changeGoodHandle(val);
|
|
15390
15881
|
},
|
|
15391
15882
|
onModeChange: handleModeChange,
|
|
15392
15883
|
showModeBtn: showModeBtn,
|
|
15393
|
-
isStrict: isStrict
|
|
15884
|
+
isStrict: isStrict,
|
|
15885
|
+
tradeGoods: {
|
|
15886
|
+
originDataSource: getGoodDetails({
|
|
15887
|
+
mode: isStrict
|
|
15888
|
+
}),
|
|
15889
|
+
selectedGoodsChange: selectedGoodsChange
|
|
15890
|
+
}
|
|
15394
15891
|
})));
|
|
15395
15892
|
};
|
|
15396
15893
|
|
|
@@ -16176,7 +16673,7 @@ var typeMap$2 = {
|
|
|
16176
16673
|
}
|
|
16177
16674
|
};
|
|
16178
16675
|
var bsE3Reissue = function bsE3Reissue(props) {
|
|
16179
|
-
var _typeMap$type21, _typeMap$
|
|
16676
|
+
var _typeMap$type21, _typeMap$type24, _typeMap$type25, _value$typeMap$type$s5, _typeMap$type26, _typeMap$type27, _typeMap$type28;
|
|
16180
16677
|
var value = props.value,
|
|
16181
16678
|
onChange = props.onChange,
|
|
16182
16679
|
_props$reasonList = props.reasonList,
|
|
@@ -16314,15 +16811,19 @@ var bsE3Reissue = function bsE3Reissue(props) {
|
|
|
16314
16811
|
return !!(value === null || value === void 0 ? void 0 : value[(_typeMap$type20 = typeMap$2[type]) === null || _typeMap$type20 === void 0 ? void 0 : _typeMap$type20.systemOrderNo]);
|
|
16315
16812
|
}, [value === null || value === void 0 ? void 0 : value[(_typeMap$type21 = typeMap$2[type]) === null || _typeMap$type21 === void 0 ? void 0 : _typeMap$type21.systemOrderNo]]);
|
|
16316
16813
|
var selectedGoodsChange = useCallback(function (skuList) {
|
|
16317
|
-
var _typeMap$type22,
|
|
16814
|
+
var _typeMap$type22, _typeMap$type23, _uniqBy;
|
|
16318
16815
|
var newValue = _objectSpread2({}, value);
|
|
16319
|
-
|
|
16816
|
+
// 原订单商品
|
|
16817
|
+
var originTradeGoodList = getGoodDetails({
|
|
16320
16818
|
mode: isStrict
|
|
16321
|
-
})
|
|
16322
|
-
|
|
16819
|
+
}) || [];
|
|
16820
|
+
// 当前选中的所有商品【包含了原订单+商品库】
|
|
16821
|
+
var currentSelectGoodList = (value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type22 = typeMap$2[type]) === null || _typeMap$type22 === void 0 ? void 0 : _typeMap$type22.key)]) || [];
|
|
16822
|
+
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type23 = typeMap$2[type]) === null || _typeMap$type23 === void 0 ? void 0 : _typeMap$type23.key)] = (_uniqBy = uniqBy(originTradeGoodList.concat(currentSelectGoodList), 'uuid')) === null || _uniqBy === void 0 ? void 0 : _uniqBy.filter(function (item) {
|
|
16823
|
+
return skuList.includes(item.uuid);
|
|
16323
16824
|
});
|
|
16324
16825
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
16325
|
-
}, [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
16826
|
+
}, [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type24 = typeMap$2[type]) === null || _typeMap$type24 === void 0 ? void 0 : _typeMap$type24.key)], isStrict]);
|
|
16326
16827
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Row, {
|
|
16327
16828
|
gutter: 8,
|
|
16328
16829
|
wrap: true,
|
|
@@ -16341,12 +16842,12 @@ var bsE3Reissue = function bsE3Reissue(props) {
|
|
|
16341
16842
|
},
|
|
16342
16843
|
disabled: disabled,
|
|
16343
16844
|
allowClear: false,
|
|
16344
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
16845
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type25 = typeMap$2[type]) === null || _typeMap$type25 === void 0 ? void 0 : _typeMap$type25.systemOrderNo)],
|
|
16345
16846
|
onChange: function onChange(val) {
|
|
16346
16847
|
return changeSystemOrderHandle(val);
|
|
16347
16848
|
},
|
|
16348
16849
|
placeholder: "\u9009\u62E9\u8865\u53D1\u7CFB\u7EDF\u5355"
|
|
16349
|
-
}, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s5 = value[(_typeMap$
|
|
16850
|
+
}, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s5 = value[(_typeMap$type26 = typeMap$2[type]) === null || _typeMap$type26 === void 0 ? void 0 : _typeMap$type26.systemOrder]) === null || _value$typeMap$type$s5 === void 0 ? void 0 : _value$typeMap$type$s5.showOrderInfo) || []).map(function (item) {
|
|
16350
16851
|
return /*#__PURE__*/React.createElement(Select.Option, {
|
|
16351
16852
|
key: item.billNo,
|
|
16352
16853
|
value: item.billNo,
|
|
@@ -16367,7 +16868,7 @@ var bsE3Reissue = function bsE3Reissue(props) {
|
|
|
16367
16868
|
disabled: disabled,
|
|
16368
16869
|
allowClear: false,
|
|
16369
16870
|
options: reasonList,
|
|
16370
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
16871
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type27 = typeMap$2[type]) === null || _typeMap$type27 === void 0 ? void 0 : _typeMap$type27.typeName)],
|
|
16371
16872
|
onChange: function onChange(val) {
|
|
16372
16873
|
return changeTypeHandle(val);
|
|
16373
16874
|
}
|
|
@@ -16379,7 +16880,7 @@ var bsE3Reissue = function bsE3Reissue(props) {
|
|
|
16379
16880
|
canUpdateNumber: showChangeBtn,
|
|
16380
16881
|
showChangeBtn: showChangeBtn,
|
|
16381
16882
|
shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
|
|
16382
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
16883
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type28 = typeMap$2[type]) === null || _typeMap$type28 === void 0 ? void 0 : _typeMap$type28.key)],
|
|
16383
16884
|
onChange: function onChange(val) {
|
|
16384
16885
|
return changeGoodHandle(val);
|
|
16385
16886
|
},
|
|
@@ -16395,4 +16896,4 @@ var bsE3Reissue = function bsE3Reissue(props) {
|
|
|
16395
16896
|
})));
|
|
16396
16897
|
};
|
|
16397
16898
|
|
|
16398
|
-
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 };
|
|
16899
|
+
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 };
|