@kmkf-fe-packages/basic-components 2.3.2 → 2.3.5
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 +1903 -738
- package/dist/index.js +1902 -736
- package/dist/src/bs/component/GoodItem/index.d.ts +4 -1
- package/dist/src/bs/component/model/Columns/Erp/jky.d.ts +24 -0
- package/dist/src/bs/component/model/JkyGoodsModal/GoodsList.d.ts +32 -0
- package/dist/src/bs/component/model/JkyGoodsModal/index.d.ts +5 -0
- package/dist/src/common/CommonGoods/index.d.ts +4 -1
- package/dist/src/common/Reissue/index.d.ts +4 -1
- package/dist/src/constants/index.d.ts +1 -0
- package/dist/src/constants/jky.d.ts +3 -0
- package/dist/src/constants/systemOrderColumnsMap.d.ts +13 -0
- package/dist/src/jky/common/index.d.ts +3 -0
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -7774,7 +7774,9 @@ var Province = function Province(props) {
|
|
|
7774
7774
|
gy: kmkfUtils.GyAddressData.getInstance(),
|
|
7775
7775
|
km: kmkfUtils.AddressData.getInstance(),
|
|
7776
7776
|
jst: kmkfUtils.JstAddressData.getInstance()
|
|
7777
|
+
// jky: JkyAddressData.getInstance(),
|
|
7777
7778
|
};
|
|
7779
|
+
|
|
7778
7780
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.Cascader, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
7779
7781
|
options: ((_mapping$type = mapping[type]) === null || _mapping$type === void 0 ? void 0 : _mapping$type.addressOptions) || [],
|
|
7780
7782
|
style: {
|
|
@@ -8145,6 +8147,11 @@ var systemOrderMap = {
|
|
|
8145
8147
|
ids: 'wdtSystemSelectIds',
|
|
8146
8148
|
order: 'wdtSystemShowOrder'
|
|
8147
8149
|
},
|
|
8150
|
+
JKY_SYSTEM_ORDER: {
|
|
8151
|
+
no: 'jkySystemOrderNo',
|
|
8152
|
+
ids: 'jkySystemSelectIds',
|
|
8153
|
+
order: 'jkySystemShowOrder'
|
|
8154
|
+
},
|
|
8148
8155
|
BS_E3_SYSTEM_ORDER: {
|
|
8149
8156
|
no: 'bsE3SystemOrderNo',
|
|
8150
8157
|
ids: 'bsE3SystemSelectIds',
|
|
@@ -8622,7 +8629,8 @@ var processSceneStatus = function processSceneStatus(getValue) {
|
|
|
8622
8629
|
WAREHOUSING_STATUS: 'inStockStatusItemList',
|
|
8623
8630
|
BS_E3_WAREHOUSING_STATUS: 'bsE3InStockStatusItemList',
|
|
8624
8631
|
MSG_STATUS: 'msgStatusValues',
|
|
8625
|
-
WDT_WAREHOUSING_STATUS: 'wdtInStockStatusItemList'
|
|
8632
|
+
WDT_WAREHOUSING_STATUS: 'wdtInStockStatusItemList',
|
|
8633
|
+
JKY_WAREHOUSING_STATUS: 'jkyInStockStatusItemList'
|
|
8626
8634
|
};
|
|
8627
8635
|
return _defineProperty({}, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_").concat(STATUS_LIST_MAP[nex.workOrderComponentType])), []));
|
|
8628
8636
|
};
|
|
@@ -8716,6 +8724,33 @@ var processBsGoods = function processBsGoods(getValue) {
|
|
|
8716
8724
|
return _defineProperty({}, nex.uniqueKey, _values);
|
|
8717
8725
|
};
|
|
8718
8726
|
};
|
|
8727
|
+
var processJkyGoods = function processJkyGoods(templateColumns) {
|
|
8728
|
+
return function (getValue) {
|
|
8729
|
+
return function (nex, config) {
|
|
8730
|
+
var _values = {
|
|
8731
|
+
jkyGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_jkyGoods")), []),
|
|
8732
|
+
shopCode: getValue("".concat(nex.uniqueKey, "_shopCode"))
|
|
8733
|
+
};
|
|
8734
|
+
var selectIds = [];
|
|
8735
|
+
var orderNo = '';
|
|
8736
|
+
var tradeId = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
|
|
8737
|
+
return col.workOrderComponentType === 'TRADE_ID_INPUT';
|
|
8738
|
+
});
|
|
8739
|
+
if (tradeId) {
|
|
8740
|
+
orderNo = getValue("".concat(tradeId.uniqueKey, "_").concat(updateWorkTypeKeys[tradeId.workOrderComponentType]));
|
|
8741
|
+
}
|
|
8742
|
+
var jkySystemOrder = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
|
|
8743
|
+
return col.workOrderComponentType === 'JKY_SYSTEM_ORDER';
|
|
8744
|
+
});
|
|
8745
|
+
if (jkySystemOrder) {
|
|
8746
|
+
selectIds = jsonParseSecurity(getValue("".concat(jkySystemOrder.uniqueKey, "_").concat(systemOrderMap[jkySystemOrder.workOrderComponentType].ids)), []);
|
|
8747
|
+
}
|
|
8748
|
+
_values.selectIds = selectIds;
|
|
8749
|
+
_values.orderNo = orderNo;
|
|
8750
|
+
return _defineProperty({}, nex.uniqueKey, _values);
|
|
8751
|
+
};
|
|
8752
|
+
};
|
|
8753
|
+
};
|
|
8719
8754
|
var processWdtGoods = function processWdtGoods(templateColumns) {
|
|
8720
8755
|
return function (getValue) {
|
|
8721
8756
|
return function (nex, config) {
|
|
@@ -9007,6 +9042,11 @@ var processErpSystemOrder = function processErpSystemOrder(getValue) {
|
|
|
9007
9042
|
ids: 'wdtSystemSelectIds',
|
|
9008
9043
|
order: 'wdtSystemShowOrder'
|
|
9009
9044
|
},
|
|
9045
|
+
JKY_SYSTEM_ORDER: {
|
|
9046
|
+
no: 'jkySystemOrderNo',
|
|
9047
|
+
ids: 'jkySystemSelectIds',
|
|
9048
|
+
order: 'jkySystemShowOrder'
|
|
9049
|
+
},
|
|
9010
9050
|
BS_E3_SYSTEM_ORDER: {
|
|
9011
9051
|
no: 'bsE3SystemOrderNo',
|
|
9012
9052
|
ids: 'bsE3SystemSelectIds',
|
|
@@ -9266,14 +9306,14 @@ var processJstReturnGoods = function processJstReturnGoods(templateColumns) {
|
|
|
9266
9306
|
};
|
|
9267
9307
|
var processLabel = function processLabel(getValue) {
|
|
9268
9308
|
return function (nex, config) {
|
|
9269
|
-
var
|
|
9270
|
-
return
|
|
9309
|
+
var _ref74;
|
|
9310
|
+
return _ref74 = {}, _defineProperty(_ref74, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_label")), [])), _defineProperty(_ref74, "".concat(nex.uniqueKey, "_label"), jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_label")), [])), _ref74;
|
|
9271
9311
|
};
|
|
9272
9312
|
};
|
|
9273
9313
|
var processMemberLevel = function processMemberLevel(getValue) {
|
|
9274
9314
|
return function (nex, config) {
|
|
9275
|
-
var
|
|
9276
|
-
return
|
|
9315
|
+
var _ref75;
|
|
9316
|
+
return _ref75 = {}, _defineProperty(_ref75, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_memberLevel")), [])), _defineProperty(_ref75, "".concat(nex.uniqueKey, "_memberLevel"), jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_memberLevel")), [])), _ref75;
|
|
9277
9317
|
};
|
|
9278
9318
|
};
|
|
9279
9319
|
var processAfterSalesOrderId = function processAfterSalesOrderId(getValue) {
|
|
@@ -9377,6 +9417,7 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
|
|
|
9377
9417
|
BS_E3_WAREHOUSING_STATUS: processSceneStatus,
|
|
9378
9418
|
MSG_STATUS: processSceneStatus,
|
|
9379
9419
|
WDT_WAREHOUSING_STATUS: processSceneStatus,
|
|
9420
|
+
JKY_WAREHOUSING_STATUS: processSceneStatus,
|
|
9380
9421
|
BS_LOGISTICS: processErpLogistics,
|
|
9381
9422
|
WLN_LOGISTICS: processErpLogistics,
|
|
9382
9423
|
WDT_LOGISTICS: processErpLogistics,
|
|
@@ -9392,6 +9433,7 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
|
|
|
9392
9433
|
BS_POSTING: processBsPosting,
|
|
9393
9434
|
BS_GOODS: processBsGoods,
|
|
9394
9435
|
WDT_GOODS: processWdtGoods(templateColumns),
|
|
9436
|
+
JKY_GOODS: processJkyGoods(templateColumns),
|
|
9395
9437
|
WDT_AFTERSALE_GOODS: processWdtAftersaleGoods(templateColumns),
|
|
9396
9438
|
JST_AFTERSALE_GOODS: processJstAftersaleGoods(templateColumns),
|
|
9397
9439
|
BS_E3_GOODS: processBsE3Goods(templateColumns),
|
|
@@ -9410,6 +9452,7 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
|
|
|
9410
9452
|
KM_SYSTEM_ORDER: processErpSystemOrder,
|
|
9411
9453
|
WLN_SYSTEM_ORDER: processErpSystemOrder,
|
|
9412
9454
|
WDT_SYSTEM_ORDER: processErpSystemOrder,
|
|
9455
|
+
JKY_SYSTEM_ORDER: processErpSystemOrder,
|
|
9413
9456
|
WDT_RETURN_BILL_NO: processErpSystemOrder,
|
|
9414
9457
|
BS_E3_SYSTEM_ORDER: processErpSystemOrder,
|
|
9415
9458
|
JST_SYSTEM_ORDER: processErpSystemOrder,
|
|
@@ -12142,7 +12185,7 @@ var ChooseBaby = function ChooseBaby(props) {
|
|
|
12142
12185
|
}));
|
|
12143
12186
|
};
|
|
12144
12187
|
|
|
12145
|
-
var css_248z$7 = "#goods-wrap.goodsBox.single-row {\n max-height: 800px;\n overflow-y: auto;\n padding-top: 4px;\n flex-basis: 100%;\n}\n#goods-wrap.goodsBox.single-row .good-item.rich-item.with-pic,\n#goods-wrap.goodsBox.single-row .good-item.rich-item.with-attr,\n#goods-wrap.goodsBox.single-row .good-item.rich-item.with-attr.with-pic {\n flex-basis: 100%;\n}\n#goods-wrap.goodsBox.single-row .good-item.rich-item .good-attrs {\n flex-grow: 1;\n flex-shrink: 1;\n}\n#goods-wrap.goodsBox.single-row .good-item.rich-item .good-attrs .good-item-attr {\n flex-grow: 1;\n flex-shrink: 1;\n max-width: 80px;\n width: 20px;\n flex-basis: 20px;\n}\n#goods-wrap.goodsBox.single-row .good-item.rich-item .good-attrs .ant-input {\n flex-shrink: 1;\n flex-grow: 1;\n width: 20px;\n flex-basis: 40px;\n}\n#goods-wrap .good-item.rich-item {\n position: relative;\n border: 1px solid #ccc;\n display: flex;\n flex-basis: 80px;\n flex-wrap: nowrap;\n margin: 0 10px 10px 0;\n padding: 4px;\n}\n#goods-wrap .good-item.rich-item.with-pic {\n flex-basis: 90px;\n}\n#goods-wrap .good-item.rich-item.with-attr {\n flex-basis: 150px;\n}\n#goods-wrap .good-item.rich-item.with-attr.with-pic {\n flex-basis: 238px;\n}\n#goods-wrap .good-item.rich-item.with-attr.with-pic .goods-imgBox {\n margin-right: 8px;\n}\n#goods-wrap .good-item.rich-item .good-item-attr {\n margin-right: 6px;\n width: 52px;\n flex-basis: 52px;\n}\n#goods-wrap .good-item.rich-item .good-img {\n position: relative;\n width: 80px;\n height: 80px;\n border-radius: 4px;\n border: 1px solid #f2f3f5;\n margin: 0 10px 0 0;\n text-align: center;\n background-color: #f2f3f5;\n}\n#goods-wrap .good-item.rich-item .good-attrs {\n display: flex;\n flex-direction: column;\n font-size: 12px;\n}\n#goods-wrap .good-item.rich-item .good-attrs .ant-input {\n font-size: 12px;\n width: 80px;\n height: 20px;\n padding-left: 5px;\n padding-right: 5px;\n}\n#goods-wrap .good-item.rich-item .good-attrs .ant-input.id-textarea {\n width: 80px;\n resize: none;\n height: 45px;\n}\n#goods-wrap .good-item.rich-item .good-attrs div {\n display: flex;\n}\n#goods-wrap .good-item.rich-item .good-attrs div:not(:first-child) {\n margin-top: 4px;\n}\n";
|
|
12188
|
+
var css_248z$7 = "#goods-wrap.goodsBox.single-row {\n max-height: 800px;\n overflow-y: auto;\n padding-top: 4px;\n flex-basis: 100%;\n}\n#goods-wrap.goodsBox.single-row .good-item.rich-item.with-pic,\n#goods-wrap.goodsBox.single-row .good-item.rich-item.with-attr,\n#goods-wrap.goodsBox.single-row .good-item.rich-item.with-attr.with-pic {\n flex-basis: 100%;\n}\n#goods-wrap.goodsBox.single-row .good-item.rich-item .good-attrs {\n flex-grow: 1;\n flex-shrink: 1;\n}\n#goods-wrap.goodsBox.single-row .good-item.rich-item .good-attrs .good-item-attr {\n flex-grow: 1;\n flex-shrink: 1;\n max-width: 80px;\n width: 20px;\n flex-basis: 20px;\n}\n#goods-wrap.goodsBox.single-row .good-item.rich-item .good-attrs .ant-input {\n flex-shrink: 1;\n flex-grow: 1;\n width: 20px;\n flex-basis: 40px;\n}\n#goods-wrap .good-item.rich-item {\n position: relative;\n border: 1px solid #ccc;\n display: flex;\n flex-basis: 80px;\n flex-wrap: nowrap;\n margin: 0 10px 10px 0;\n padding: 4px;\n}\n#goods-wrap .good-item.rich-item.with-pic {\n flex-basis: 90px;\n}\n#goods-wrap .good-item.rich-item.with-attr {\n flex-basis: 150px;\n}\n#goods-wrap .good-item.rich-item.with-attr.with-pic {\n flex-basis: 238px;\n}\n#goods-wrap .good-item.rich-item.with-attr.with-pic .goods-imgBox {\n margin-right: 8px;\n}\n#goods-wrap .good-item.rich-item .good-item-attr {\n margin-right: 6px;\n width: 52px;\n flex-basis: 52px;\n}\n#goods-wrap .good-item.rich-item .good-img {\n position: relative;\n width: 80px;\n height: 80px;\n border-radius: 4px;\n border: 1px solid #f2f3f5;\n margin: 0 10px 0 0;\n text-align: center;\n background-color: #f2f3f5;\n}\n#goods-wrap .good-item.rich-item .good-attrs {\n display: flex;\n flex-direction: column;\n font-size: 12px;\n}\n#goods-wrap .good-item.rich-item .good-attrs .ant-input {\n font-size: 12px;\n width: 80px;\n height: 20px;\n padding-left: 5px;\n padding-right: 5px;\n}\n#goods-wrap .good-item.rich-item .good-attrs .ant-input.id-textarea {\n width: 80px;\n resize: none;\n height: 45px;\n}\n#goods-wrap .good-item.rich-item .good-attrs div {\n display: flex;\n}\n#goods-wrap .good-item.rich-item .good-attrs div:not(:first-child) {\n margin-top: 4px;\n}\n.goods-uploaded-state {\n display: flex;\n}\n.goods-uploaded-state .clear-all {\n float: right;\n color: #1966ff;\n cursor: pointer;\n margin-left: 12px;\n}\n";
|
|
12146
12189
|
styleInject(css_248z$7);
|
|
12147
12190
|
|
|
12148
12191
|
var GoodItem = function GoodItem(props) {
|
|
@@ -12471,13 +12514,22 @@ var GoodItem = function GoodItem(props) {
|
|
|
12471
12514
|
var hasAttr = React.useMemo(function () {
|
|
12472
12515
|
return hasPic ? headerList.length > 1 : headerList.length > 0;
|
|
12473
12516
|
}, [hasPic, headerList]);
|
|
12517
|
+
var clearAll = function clearAll() {
|
|
12518
|
+
onChange === null || onChange === void 0 ? void 0 : onChange({
|
|
12519
|
+
shopId: shopId,
|
|
12520
|
+
imgList: []
|
|
12521
|
+
});
|
|
12522
|
+
};
|
|
12474
12523
|
return /*#__PURE__*/React__default['default'].createElement("div", null, imgList.length === 0 ? /*#__PURE__*/React__default['default'].createElement("p", {
|
|
12475
12524
|
className: "goods-title"
|
|
12476
12525
|
}, "\u6700\u591A\u6DFB\u52A0", maxLength, "\u4E2A\u5B9D\u8D1D") : /*#__PURE__*/React__default['default'].createElement("p", {
|
|
12477
12526
|
className: "goods-uploaded-state"
|
|
12478
12527
|
}, "\u5DF2\u6DFB\u52A0", /*#__PURE__*/React__default['default'].createElement("span", {
|
|
12479
12528
|
className: "goods-uploaded-count"
|
|
12480
|
-
}, imgList.length), "/", maxLength,
|
|
12529
|
+
}, imgList.length), "/", maxLength, /*#__PURE__*/React__default['default'].createElement("span", {
|
|
12530
|
+
className: 'clear-all',
|
|
12531
|
+
onClick: clearAll
|
|
12532
|
+
}, "\u6E05\u7A7A")), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
12481
12533
|
ref: boxRef,
|
|
12482
12534
|
id: "goods-wrap",
|
|
12483
12535
|
className: "goodsBox goodsBox-item-horizontal--box".concat(isSingleRow ? ' single-row' : '')
|
|
@@ -13992,7 +14044,7 @@ var jstGoods = function jstGoods(props) {
|
|
|
13992
14044
|
changeIndex = _useState2[0],
|
|
13993
14045
|
setChangeIndex = _useState2[1]; //选中的包裹
|
|
13994
14046
|
var sendOptions = kmkfUtils.SendDataCenter.getInstance(platformType).getSendData();
|
|
13995
|
-
var isSelectName = ['wdt', 'bsE3', 'km', 'gy', 'jst', 'jy'].includes(platformType);
|
|
14047
|
+
var isSelectName = ['wdt', 'bsE3', 'km', 'gy', 'jst', 'jy', 'jky'].includes(platformType);
|
|
13996
14048
|
var expressDateInstance = kmkfUtils.ExpressData.getInstance(platformType);
|
|
13997
14049
|
var isSendGoodSavedId = isSelectName && !['jst'].includes(platformType);
|
|
13998
14050
|
React.useEffect(function () {
|
|
@@ -15364,6 +15416,187 @@ var jyColumns = [{
|
|
|
15364
15416
|
}
|
|
15365
15417
|
}];
|
|
15366
15418
|
|
|
15419
|
+
var getYesOrNo$2 = function getYesOrNo(val) {
|
|
15420
|
+
if (!lodash.isBoolean(val)) return null;
|
|
15421
|
+
return val ? '是' : '否';
|
|
15422
|
+
};
|
|
15423
|
+
var jkyColumns = [{
|
|
15424
|
+
dataIndex: 'goodName',
|
|
15425
|
+
title: "\u8D27\u54C1\u540D\u79F0",
|
|
15426
|
+
align: 'center',
|
|
15427
|
+
ellipsis: true,
|
|
15428
|
+
width: 150,
|
|
15429
|
+
render: renderTextEllipsis
|
|
15430
|
+
}, {
|
|
15431
|
+
dataIndex: 'goodNo',
|
|
15432
|
+
title: "\u8D27\u54C1\u7F16\u53F7",
|
|
15433
|
+
align: 'center',
|
|
15434
|
+
ellipsis: true,
|
|
15435
|
+
width: 150,
|
|
15436
|
+
render: renderTextEllipsis
|
|
15437
|
+
}, {
|
|
15438
|
+
dataIndex: 'goodId',
|
|
15439
|
+
title: "\u8D27\u54C1ID",
|
|
15440
|
+
align: 'center',
|
|
15441
|
+
ellipsis: true,
|
|
15442
|
+
width: 150,
|
|
15443
|
+
render: renderTextEllipsis
|
|
15444
|
+
}, {
|
|
15445
|
+
dataIndex: 'goodPicUrl',
|
|
15446
|
+
title: "\u8D27\u54C1\u4E3B\u56FE",
|
|
15447
|
+
align: 'center',
|
|
15448
|
+
ellipsis: true,
|
|
15449
|
+
width: 150,
|
|
15450
|
+
render: function render(picUrl) {
|
|
15451
|
+
return /*#__PURE__*/React__default['default'].createElement("img", {
|
|
15452
|
+
style: {
|
|
15453
|
+
width: '30px',
|
|
15454
|
+
height: '30px',
|
|
15455
|
+
objectFit: 'contain'
|
|
15456
|
+
},
|
|
15457
|
+
src: picUrl
|
|
15458
|
+
});
|
|
15459
|
+
}
|
|
15460
|
+
}, {
|
|
15461
|
+
dataIndex: 'goodShortName',
|
|
15462
|
+
title: "\u8D27\u54C1\u522B\u540D",
|
|
15463
|
+
align: 'center',
|
|
15464
|
+
ellipsis: true,
|
|
15465
|
+
width: 150,
|
|
15466
|
+
render: renderTextEllipsis
|
|
15467
|
+
}, {
|
|
15468
|
+
dataIndex: 'specBarcode',
|
|
15469
|
+
title: "\u8D27\u54C1\u6761\u7801",
|
|
15470
|
+
align: 'center',
|
|
15471
|
+
ellipsis: true,
|
|
15472
|
+
width: 150,
|
|
15473
|
+
render: renderTextEllipsis
|
|
15474
|
+
}, {
|
|
15475
|
+
dataIndex: 'categoryName',
|
|
15476
|
+
title: "\u8D27\u54C1\u7C7B\u522B",
|
|
15477
|
+
align: 'center',
|
|
15478
|
+
ellipsis: true,
|
|
15479
|
+
width: 150,
|
|
15480
|
+
render: renderTextEllipsis
|
|
15481
|
+
}, {
|
|
15482
|
+
dataIndex: 'brandName',
|
|
15483
|
+
title: "\u54C1\u724C",
|
|
15484
|
+
align: 'center',
|
|
15485
|
+
ellipsis: true,
|
|
15486
|
+
width: 200,
|
|
15487
|
+
render: renderTextEllipsis
|
|
15488
|
+
}, {
|
|
15489
|
+
dataIndex: 'specName',
|
|
15490
|
+
title: "\u89C4\u683C\u540D\u79F0",
|
|
15491
|
+
align: 'center',
|
|
15492
|
+
ellipsis: true,
|
|
15493
|
+
width: 150,
|
|
15494
|
+
render: renderTextEllipsis
|
|
15495
|
+
}, {
|
|
15496
|
+
dataIndex: 'specId',
|
|
15497
|
+
title: "\u89C4\u683CID",
|
|
15498
|
+
align: 'center',
|
|
15499
|
+
ellipsis: true,
|
|
15500
|
+
width: 150,
|
|
15501
|
+
render: renderTextEllipsis
|
|
15502
|
+
}, {
|
|
15503
|
+
dataIndex: 'specNo',
|
|
15504
|
+
title: "\u89C4\u683C\u7F16\u7801",
|
|
15505
|
+
align: 'center',
|
|
15506
|
+
ellipsis: true,
|
|
15507
|
+
width: 150,
|
|
15508
|
+
render: renderTextEllipsis
|
|
15509
|
+
}, {
|
|
15510
|
+
dataIndex: 'specImgUrl',
|
|
15511
|
+
title: "\u89C4\u683C\u56FE\u7247",
|
|
15512
|
+
align: 'center',
|
|
15513
|
+
ellipsis: true,
|
|
15514
|
+
width: 150,
|
|
15515
|
+
render: function render(val) {
|
|
15516
|
+
return /*#__PURE__*/React__default['default'].createElement("img", {
|
|
15517
|
+
style: {
|
|
15518
|
+
width: '30px',
|
|
15519
|
+
height: '30px',
|
|
15520
|
+
objectFit: 'contain'
|
|
15521
|
+
},
|
|
15522
|
+
src: val
|
|
15523
|
+
});
|
|
15524
|
+
}
|
|
15525
|
+
}, {
|
|
15526
|
+
dataIndex: 'colorName',
|
|
15527
|
+
title: "\u989C\u8272\u540D\u79F0",
|
|
15528
|
+
align: 'center',
|
|
15529
|
+
ellipsis: true,
|
|
15530
|
+
width: 150,
|
|
15531
|
+
render: renderTextEllipsis
|
|
15532
|
+
}, {
|
|
15533
|
+
dataIndex: 'colorCode',
|
|
15534
|
+
title: "\u989C\u8272\u4EE3\u7801",
|
|
15535
|
+
align: 'center',
|
|
15536
|
+
ellipsis: true,
|
|
15537
|
+
width: 150,
|
|
15538
|
+
render: renderTextEllipsis
|
|
15539
|
+
}, {
|
|
15540
|
+
dataIndex: 'sizeName',
|
|
15541
|
+
title: "\u5C3A\u7801\u540D\u79F0",
|
|
15542
|
+
align: 'center',
|
|
15543
|
+
ellipsis: true,
|
|
15544
|
+
width: 150,
|
|
15545
|
+
render: renderTextEllipsis
|
|
15546
|
+
}, {
|
|
15547
|
+
dataIndex: 'sizeCode',
|
|
15548
|
+
title: "\u5C3A\u7801\u4EE3\u7801",
|
|
15549
|
+
align: 'center',
|
|
15550
|
+
ellipsis: true,
|
|
15551
|
+
width: 150,
|
|
15552
|
+
render: renderTextEllipsis
|
|
15553
|
+
}, {
|
|
15554
|
+
dataIndex: 'marketPrice',
|
|
15555
|
+
title: "\u5E02\u573A\u4EF7",
|
|
15556
|
+
align: 'center',
|
|
15557
|
+
ellipsis: true,
|
|
15558
|
+
width: 150,
|
|
15559
|
+
render: renderTextEllipsis
|
|
15560
|
+
}, {
|
|
15561
|
+
dataIndex: 'retailPrice',
|
|
15562
|
+
title: "\u96F6\u552E\u4EF7",
|
|
15563
|
+
align: 'center',
|
|
15564
|
+
ellipsis: true,
|
|
15565
|
+
width: 150,
|
|
15566
|
+
render: renderTextEllipsis
|
|
15567
|
+
}, {
|
|
15568
|
+
dataIndex: 'memberPrice',
|
|
15569
|
+
title: "\u4F1A\u5458\u4EF7",
|
|
15570
|
+
align: 'center',
|
|
15571
|
+
ellipsis: true,
|
|
15572
|
+
width: 150,
|
|
15573
|
+
render: renderTextEllipsis
|
|
15574
|
+
}, {
|
|
15575
|
+
dataIndex: 'costPrice',
|
|
15576
|
+
title: "\u6210\u672C\u4EF7",
|
|
15577
|
+
align: 'center',
|
|
15578
|
+
ellipsis: true,
|
|
15579
|
+
width: 150,
|
|
15580
|
+
render: renderTextEllipsis
|
|
15581
|
+
}, {
|
|
15582
|
+
dataIndex: 'isVirtual',
|
|
15583
|
+
title: "\u662F\u5426\u865A\u62DF\u5546\u54C1",
|
|
15584
|
+
align: 'center',
|
|
15585
|
+
ellipsis: true,
|
|
15586
|
+
width: 150,
|
|
15587
|
+
render: function render(val) {
|
|
15588
|
+
return renderTextEllipsis(getYesOrNo$2(val));
|
|
15589
|
+
}
|
|
15590
|
+
}, {
|
|
15591
|
+
dataIndex: 'skuType',
|
|
15592
|
+
title: "\u662F\u5426\u7EC4\u5408\u88C5",
|
|
15593
|
+
ellipsis: true,
|
|
15594
|
+
width: 150,
|
|
15595
|
+
render: function render(val) {
|
|
15596
|
+
return renderTextEllipsis(getYesOrNo$2(val === 'combine'));
|
|
15597
|
+
}
|
|
15598
|
+
}];
|
|
15599
|
+
|
|
15367
15600
|
var getColumnsMap = function getColumnsMap() {
|
|
15368
15601
|
return lodash.cloneDeep({
|
|
15369
15602
|
gy: gyColumns,
|
|
@@ -15371,7 +15604,8 @@ var getColumnsMap = function getColumnsMap() {
|
|
|
15371
15604
|
wdt: wdtColumns,
|
|
15372
15605
|
bse3: bse3Columns,
|
|
15373
15606
|
km: kmColumns,
|
|
15374
|
-
jy: jyColumns
|
|
15607
|
+
jy: jyColumns,
|
|
15608
|
+
jky: jkyColumns
|
|
15375
15609
|
});
|
|
15376
15610
|
};
|
|
15377
15611
|
var getColumnsBaseInfo = function getColumnsBaseInfo() {
|
|
@@ -18600,87 +18834,334 @@ var JyGoodsModal = function JyGoodsModal(props, ref) {
|
|
|
18600
18834
|
};
|
|
18601
18835
|
var JyGoodsModal$1 = /*#__PURE__*/React.forwardRef(JyGoodsModal);
|
|
18602
18836
|
|
|
18603
|
-
var
|
|
18604
|
-
var
|
|
18605
|
-
|
|
18606
|
-
|
|
18607
|
-
return {
|
|
18608
|
-
|
|
18609
|
-
|
|
18610
|
-
|
|
18611
|
-
|
|
18612
|
-
|
|
18613
|
-
|
|
18614
|
-
}
|
|
18615
|
-
|
|
18616
|
-
|
|
18617
|
-
|
|
18618
|
-
|
|
18619
|
-
|
|
18620
|
-
|
|
18621
|
-
|
|
18622
|
-
|
|
18623
|
-
|
|
18624
|
-
|
|
18625
|
-
|
|
18626
|
-
|
|
18627
|
-
|
|
18628
|
-
|
|
18629
|
-
|
|
18630
|
-
|
|
18631
|
-
|
|
18632
|
-
|
|
18633
|
-
|
|
18634
|
-
|
|
18635
|
-
|
|
18636
|
-
|
|
18637
|
-
|
|
18638
|
-
|
|
18639
|
-
|
|
18640
|
-
|
|
18641
|
-
|
|
18642
|
-
|
|
18643
|
-
|
|
18644
|
-
|
|
18645
|
-
|
|
18646
|
-
|
|
18647
|
-
|
|
18648
|
-
|
|
18649
|
-
|
|
18650
|
-
|
|
18651
|
-
|
|
18652
|
-
|
|
18653
|
-
|
|
18654
|
-
|
|
18655
|
-
|
|
18656
|
-
|
|
18657
|
-
|
|
18658
|
-
|
|
18659
|
-
|
|
18660
|
-
|
|
18661
|
-
|
|
18662
|
-
|
|
18663
|
-
|
|
18664
|
-
|
|
18665
|
-
|
|
18666
|
-
|
|
18667
|
-
|
|
18668
|
-
|
|
18669
|
-
|
|
18670
|
-
|
|
18671
|
-
|
|
18672
|
-
|
|
18673
|
-
|
|
18674
|
-
},
|
|
18675
|
-
|
|
18676
|
-
|
|
18677
|
-
|
|
18678
|
-
|
|
18679
|
-
|
|
18680
|
-
|
|
18681
|
-
|
|
18682
|
-
|
|
18683
|
-
|
|
18837
|
+
var getTableData$6 = function getTableData(_ref, formData) {
|
|
18838
|
+
var current = _ref.current,
|
|
18839
|
+
pageSize = _ref.pageSize;
|
|
18840
|
+
var conditionList = transformFormData(formData);
|
|
18841
|
+
return extendRequest('/qy/gdfw/product/product/page', {
|
|
18842
|
+
method: 'post',
|
|
18843
|
+
data: {
|
|
18844
|
+
pageSize: pageSize,
|
|
18845
|
+
pageNo: current,
|
|
18846
|
+
platform: 'JKY_ERP',
|
|
18847
|
+
conditionList: conditionList
|
|
18848
|
+
}
|
|
18849
|
+
}).then(function (res) {
|
|
18850
|
+
var _res$data = res.data,
|
|
18851
|
+
_res$data$productSkuL = _res$data.productSkuList,
|
|
18852
|
+
productSkuList = _res$data$productSkuL === void 0 ? [] : _res$data$productSkuL,
|
|
18853
|
+
_res$data$total = _res$data.total,
|
|
18854
|
+
total = _res$data$total === void 0 ? 0 : _res$data$total;
|
|
18855
|
+
var newProducts = productSkuList.map(function (item, index) {
|
|
18856
|
+
return _objectSpread2({}, item);
|
|
18857
|
+
});
|
|
18858
|
+
return {
|
|
18859
|
+
total: total,
|
|
18860
|
+
list: newProducts
|
|
18861
|
+
};
|
|
18862
|
+
});
|
|
18863
|
+
};
|
|
18864
|
+
var searchFormData$5 = [{
|
|
18865
|
+
label: '规格名称',
|
|
18866
|
+
name: 'skuName',
|
|
18867
|
+
dataIndex: 'specName'
|
|
18868
|
+
}, {
|
|
18869
|
+
label: '规格编码',
|
|
18870
|
+
name: 'skuCode',
|
|
18871
|
+
dataIndex: 'specNo',
|
|
18872
|
+
type: 'optionalInput'
|
|
18873
|
+
}, {
|
|
18874
|
+
label: '货品名称',
|
|
18875
|
+
name: 'goodName'
|
|
18876
|
+
}, {
|
|
18877
|
+
label: '货品编码',
|
|
18878
|
+
name: 'goodNo',
|
|
18879
|
+
type: 'optionalInput'
|
|
18880
|
+
}];
|
|
18881
|
+
var GoodList$6 = function GoodList(props, ref) {
|
|
18882
|
+
var _useState = React.useState([]),
|
|
18883
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
18884
|
+
selectList = _useState2[0],
|
|
18885
|
+
setSelect = _useState2[1];
|
|
18886
|
+
var _useState3 = React.useState([]),
|
|
18887
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
18888
|
+
selectIds = _useState4[0],
|
|
18889
|
+
setSelectIds = _useState4[1];
|
|
18890
|
+
var _useGetColumns = useGetColumns('jky'),
|
|
18891
|
+
_useGetColumns2 = _slicedToArray(_useGetColumns, 3),
|
|
18892
|
+
columns = _useGetColumns2[0],
|
|
18893
|
+
showColumnsDataIndexList = _useGetColumns2[1],
|
|
18894
|
+
loading = _useGetColumns2[2];
|
|
18895
|
+
React.useImperativeHandle(ref, function () {
|
|
18896
|
+
return {
|
|
18897
|
+
getSelectGoodList: function getSelectGoodList() {
|
|
18898
|
+
return selectList;
|
|
18899
|
+
}
|
|
18900
|
+
};
|
|
18901
|
+
});
|
|
18902
|
+
var _Form$useForm = antd.Form.useForm(),
|
|
18903
|
+
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
18904
|
+
form = _Form$useForm2[0];
|
|
18905
|
+
var _useAntdTable = ahooks.useAntdTable(getTableData$6, {
|
|
18906
|
+
defaultPageSize: 10,
|
|
18907
|
+
form: form
|
|
18908
|
+
}),
|
|
18909
|
+
tableProps = _useAntdTable.tableProps,
|
|
18910
|
+
search = _useAntdTable.search,
|
|
18911
|
+
params = _useAntdTable.params;
|
|
18912
|
+
var submit = search.submit,
|
|
18913
|
+
reset = search.reset;
|
|
18914
|
+
var rowSelection = {
|
|
18915
|
+
selectedRowKeys: selectIds,
|
|
18916
|
+
fixed: true,
|
|
18917
|
+
onSelect: function onSelect(record, selected) {
|
|
18918
|
+
if (selected) {
|
|
18919
|
+
setSelectIds([].concat(_toConsumableArray(selectIds), [record.id]));
|
|
18920
|
+
setSelect([].concat(_toConsumableArray(selectList), [record]));
|
|
18921
|
+
} else {
|
|
18922
|
+
setSelectIds(selectIds.filter(function (t) {
|
|
18923
|
+
return t !== record.id;
|
|
18924
|
+
}));
|
|
18925
|
+
setSelect(selectList.filter(function (t) {
|
|
18926
|
+
return t.id !== record.id;
|
|
18927
|
+
}));
|
|
18928
|
+
}
|
|
18929
|
+
},
|
|
18930
|
+
onSelectAll: function onSelectAll(selected, selectedRows, changeRows) {
|
|
18931
|
+
if (selected) {
|
|
18932
|
+
setSelectIds([].concat(_toConsumableArray(selectIds), _toConsumableArray(changeRows.map(function (t) {
|
|
18933
|
+
return t.id;
|
|
18934
|
+
}))));
|
|
18935
|
+
setSelect([].concat(_toConsumableArray(selectList), _toConsumableArray(changeRows)));
|
|
18936
|
+
} else {
|
|
18937
|
+
setSelectIds(lodash.difference(selectIds, changeRows.map(function (t) {
|
|
18938
|
+
return t.id;
|
|
18939
|
+
})));
|
|
18940
|
+
var list = lodash.differenceWith(selectList, changeRows, function (arrVal, othVal) {
|
|
18941
|
+
return arrVal.id !== othVal.id;
|
|
18942
|
+
});
|
|
18943
|
+
setSelect(list);
|
|
18944
|
+
}
|
|
18945
|
+
},
|
|
18946
|
+
getCheckboxProps: function getCheckboxProps(record) {
|
|
18947
|
+
var options = {
|
|
18948
|
+
disabled: (props.selectedRows || []).map(function (row) {
|
|
18949
|
+
return row.specId || record.id;
|
|
18950
|
+
}).includes(record.specId || record.id),
|
|
18951
|
+
name: record.id
|
|
18952
|
+
};
|
|
18953
|
+
return options;
|
|
18954
|
+
}
|
|
18955
|
+
};
|
|
18956
|
+
var showTable = function showTable() {
|
|
18957
|
+
var handleDelete = function handleDelete(record) {
|
|
18958
|
+
setSelectIds(selectIds.filter(function (t) {
|
|
18959
|
+
return t !== record.id;
|
|
18960
|
+
}));
|
|
18961
|
+
setSelect(selectList.filter(function (t) {
|
|
18962
|
+
return t.id !== record.id;
|
|
18963
|
+
}));
|
|
18964
|
+
};
|
|
18965
|
+
var showColumns = [{
|
|
18966
|
+
dataIndex: '',
|
|
18967
|
+
title: "\u64CD\u4F5C",
|
|
18968
|
+
ellipsis: true,
|
|
18969
|
+
width: 100,
|
|
18970
|
+
render: function render(val, record) {
|
|
18971
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
18972
|
+
type: "link",
|
|
18973
|
+
onClick: function onClick() {
|
|
18974
|
+
return handleDelete(record);
|
|
18975
|
+
}
|
|
18976
|
+
}, "\u5220\u9664");
|
|
18977
|
+
}
|
|
18978
|
+
}].concat(lodash.takeRight(columns, columns.length - 1));
|
|
18979
|
+
return selectList.length ? /*#__PURE__*/React__default['default'].createElement("div", {
|
|
18980
|
+
style: {
|
|
18981
|
+
width: '100%',
|
|
18982
|
+
maxWidth: '387px'
|
|
18983
|
+
}
|
|
18984
|
+
}, /*#__PURE__*/React__default['default'].createElement(antd.Table, {
|
|
18985
|
+
columns: showColumns,
|
|
18986
|
+
rowKey: 'id',
|
|
18987
|
+
dataSource: selectList,
|
|
18988
|
+
scroll: {
|
|
18989
|
+
x: '100%',
|
|
18990
|
+
y: 250
|
|
18991
|
+
},
|
|
18992
|
+
pagination: {
|
|
18993
|
+
size: 'small',
|
|
18994
|
+
total: selectIds.length,
|
|
18995
|
+
pageSize: 10,
|
|
18996
|
+
showSizeChanger: false
|
|
18997
|
+
}
|
|
18998
|
+
})) : null;
|
|
18999
|
+
};
|
|
19000
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Skeleton, {
|
|
19001
|
+
active: true,
|
|
19002
|
+
loading: loading
|
|
19003
|
+
}, /*#__PURE__*/React__default['default'].createElement(SearchForm, {
|
|
19004
|
+
searchFormData: searchFormData$5,
|
|
19005
|
+
form: form,
|
|
19006
|
+
showColumnsDataIndexList: showColumnsDataIndexList,
|
|
19007
|
+
submit: submit,
|
|
19008
|
+
reset: reset
|
|
19009
|
+
}), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
19010
|
+
style: {
|
|
19011
|
+
marginTop: '4px'
|
|
19012
|
+
}
|
|
19013
|
+
}, /*#__PURE__*/React__default['default'].createElement(antd.Table, _objectSpread2({
|
|
19014
|
+
className: "GoodModalColumns",
|
|
19015
|
+
rowSelection: rowSelection,
|
|
19016
|
+
rowKey: "id",
|
|
19017
|
+
columns: columns,
|
|
19018
|
+
scroll: {
|
|
19019
|
+
x: '100%',
|
|
19020
|
+
y: 250
|
|
19021
|
+
},
|
|
19022
|
+
size: "small"
|
|
19023
|
+
}, tableProps))), /*#__PURE__*/React__default['default'].createElement(antd.Popover, {
|
|
19024
|
+
getPopupContainer: function getPopupContainer(triggerNode) {
|
|
19025
|
+
return triggerNode.parentElement;
|
|
19026
|
+
},
|
|
19027
|
+
content: showTable(),
|
|
19028
|
+
title: "\u5DF2\u9009\u62E9".concat(selectList.length, "\u4E2A\u5546\u54C1")
|
|
19029
|
+
}, /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
19030
|
+
danger: true,
|
|
19031
|
+
type: "text"
|
|
19032
|
+
}, "\u5DF2\u9009".concat(selectList.length > 99 ? '99+' : selectList.length, "\u4E2A\u5546\u54C1"), /*#__PURE__*/React__default['default'].createElement(icons.CaretUpOutlined, null))));
|
|
19033
|
+
};
|
|
19034
|
+
var JkyGoodsList = /*#__PURE__*/React.forwardRef(GoodList$6);
|
|
19035
|
+
|
|
19036
|
+
var JkyGoodsModal = function JkyGoodsModal(props, ref) {
|
|
19037
|
+
React.useImperativeHandle(ref, function () {
|
|
19038
|
+
return {
|
|
19039
|
+
open: function open(shopCode) {
|
|
19040
|
+
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
19041
|
+
setVisible(true);
|
|
19042
|
+
setSelectedRows(options.value || []);
|
|
19043
|
+
}
|
|
19044
|
+
};
|
|
19045
|
+
});
|
|
19046
|
+
var onSubmit = props.onSubmit,
|
|
19047
|
+
width = props.width;
|
|
19048
|
+
var _useState = React.useState(false),
|
|
19049
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
19050
|
+
visible = _useState2[0],
|
|
19051
|
+
setVisible = _useState2[1];
|
|
19052
|
+
var _useState3 = React.useState([]),
|
|
19053
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
19054
|
+
selectedRows = _useState4[0],
|
|
19055
|
+
setSelectedRows = _useState4[1];
|
|
19056
|
+
var jkyGoodsListRef = React.useRef(null);
|
|
19057
|
+
var _onCancel = function onCancel() {
|
|
19058
|
+
setVisible(false);
|
|
19059
|
+
};
|
|
19060
|
+
var onOk = function onOk() {
|
|
19061
|
+
var _jkyGoodsListRef$curr;
|
|
19062
|
+
var selectedList = ((_jkyGoodsListRef$curr = jkyGoodsListRef.current) === null || _jkyGoodsListRef$curr === void 0 ? void 0 : _jkyGoodsListRef$curr.getSelectGoodList()) || [];
|
|
19063
|
+
onSubmit(selectedList);
|
|
19064
|
+
_onCancel();
|
|
19065
|
+
};
|
|
19066
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, visible && /*#__PURE__*/React__default['default'].createElement(antd.Modal, {
|
|
19067
|
+
title: '选择商品',
|
|
19068
|
+
okText: '确认',
|
|
19069
|
+
cancelText: '取消',
|
|
19070
|
+
visible: visible,
|
|
19071
|
+
width: width || 850,
|
|
19072
|
+
onCancel: function onCancel() {
|
|
19073
|
+
_onCancel();
|
|
19074
|
+
},
|
|
19075
|
+
onOk: onOk,
|
|
19076
|
+
wrapClassName: "goodModal"
|
|
19077
|
+
}, /*#__PURE__*/React__default['default'].createElement(JkyGoodsList, {
|
|
19078
|
+
ref: jkyGoodsListRef,
|
|
19079
|
+
selectedRows: selectedRows
|
|
19080
|
+
})));
|
|
19081
|
+
};
|
|
19082
|
+
var JkyGoodsModal$1 = /*#__PURE__*/React.forwardRef(JkyGoodsModal);
|
|
19083
|
+
|
|
19084
|
+
var getColumns = function getColumns(_ref) {
|
|
19085
|
+
var _ref$text = _ref.text,
|
|
19086
|
+
disabled = _ref.disabled,
|
|
19087
|
+
updateHandle = _ref.updateHandle;
|
|
19088
|
+
return {
|
|
19089
|
+
//百胜E3补发商品
|
|
19090
|
+
BS_E3_REISSUE_GOODS: [{
|
|
19091
|
+
dataIndex: 'sku',
|
|
19092
|
+
title: "SKU",
|
|
19093
|
+
width: 150,
|
|
19094
|
+
render: renderTextEllipsis
|
|
19095
|
+
}, {
|
|
19096
|
+
dataIndex: 'skuId',
|
|
19097
|
+
title: "SKU ID",
|
|
19098
|
+
width: 150,
|
|
19099
|
+
render: renderTextEllipsis
|
|
19100
|
+
}, {
|
|
19101
|
+
dataIndex: 'goodsName',
|
|
19102
|
+
title: "\u5546\u54C1\u540D\u79F0",
|
|
19103
|
+
width: 150,
|
|
19104
|
+
render: renderTextEllipsis
|
|
19105
|
+
}, {
|
|
19106
|
+
dataIndex: 'goodsShortName',
|
|
19107
|
+
title: "\u5546\u54C1\u7B80\u79F0",
|
|
19108
|
+
width: 150,
|
|
19109
|
+
render: renderTextEllipsis
|
|
19110
|
+
}, {
|
|
19111
|
+
dataIndex: 'picPath',
|
|
19112
|
+
title: "\u5546\u54C1\u56FE\u7247",
|
|
19113
|
+
width: 150,
|
|
19114
|
+
render: function render(val) {
|
|
19115
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Image, {
|
|
19116
|
+
width: 30,
|
|
19117
|
+
src: val
|
|
19118
|
+
});
|
|
19119
|
+
}
|
|
19120
|
+
}, {
|
|
19121
|
+
dataIndex: 'goodsSn',
|
|
19122
|
+
title: "\u8D27\u53F7",
|
|
19123
|
+
width: 150,
|
|
19124
|
+
render: renderTextEllipsis
|
|
19125
|
+
}, {
|
|
19126
|
+
dataIndex: 'goodsId',
|
|
19127
|
+
title: "\u8D27\u53F7ID",
|
|
19128
|
+
width: 150,
|
|
19129
|
+
render: renderTextEllipsis
|
|
19130
|
+
}, {
|
|
19131
|
+
dataIndex: 'colorName',
|
|
19132
|
+
title: "\u989C\u8272\u540D\u79F0",
|
|
19133
|
+
width: 150,
|
|
19134
|
+
render: renderTextEllipsis
|
|
19135
|
+
}, {
|
|
19136
|
+
dataIndex: 'colorCode',
|
|
19137
|
+
title: "\u989C\u8272\u4EE3\u7801",
|
|
19138
|
+
width: 150,
|
|
19139
|
+
render: renderTextEllipsis
|
|
19140
|
+
}, {
|
|
19141
|
+
dataIndex: 'sizeName',
|
|
19142
|
+
title: "\u5C3A\u7801\u540D\u79F0",
|
|
19143
|
+
width: 150,
|
|
19144
|
+
render: renderTextEllipsis
|
|
19145
|
+
}, {
|
|
19146
|
+
dataIndex: 'sizeCode',
|
|
19147
|
+
title: "\u5C3A\u7801\u4EE3\u7801",
|
|
19148
|
+
width: 150,
|
|
19149
|
+
render: renderTextEllipsis
|
|
19150
|
+
}, {
|
|
19151
|
+
dataIndex: 'brandName',
|
|
19152
|
+
title: "\u54C1\u724C\u540D\u79F0",
|
|
19153
|
+
width: 150,
|
|
19154
|
+
render: renderTextEllipsis
|
|
19155
|
+
}, {
|
|
19156
|
+
dataIndex: 'goodsNumber',
|
|
19157
|
+
title: "\u5546\u54C1\u6570\u91CF",
|
|
19158
|
+
width: 150
|
|
19159
|
+
}, {
|
|
19160
|
+
dataIndex: 'goodsPrice',
|
|
19161
|
+
title: "\u5546\u54C1\u5355\u4EF7",
|
|
19162
|
+
width: 150
|
|
19163
|
+
}, {
|
|
19164
|
+
dataIndex: 'shopPrice',
|
|
18684
19165
|
title: "\u5546\u54C1\u7F51\u5E97\u552E\u4EF7",
|
|
18685
19166
|
width: 150
|
|
18686
19167
|
}, {
|
|
@@ -19909,7 +20390,7 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
19909
20390
|
};
|
|
19910
20391
|
};
|
|
19911
20392
|
|
|
19912
|
-
var getYesOrNo$
|
|
20393
|
+
var getYesOrNo$3 = function getYesOrNo(val) {
|
|
19913
20394
|
if (kmkfUtils.isNull(val)) return null;
|
|
19914
20395
|
return val ? '是' : '否';
|
|
19915
20396
|
};
|
|
@@ -20060,7 +20541,7 @@ var getColumns$3 = function getColumns(_ref) {
|
|
|
20060
20541
|
label: '否',
|
|
20061
20542
|
value: false
|
|
20062
20543
|
}]
|
|
20063
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo$
|
|
20544
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo$3(val));
|
|
20064
20545
|
},
|
|
20065
20546
|
width: 100
|
|
20066
20547
|
}]
|
|
@@ -20072,7 +20553,7 @@ var isNumberOrNumberString$1 = function isNumberOrNumberString(value) {
|
|
|
20072
20553
|
if (typeof value === 'string' && !isNaN(Number(value)) && value.trim() !== '') return true;
|
|
20073
20554
|
return false;
|
|
20074
20555
|
};
|
|
20075
|
-
var getYesOrNo$
|
|
20556
|
+
var getYesOrNo$4 = function getYesOrNo(val) {
|
|
20076
20557
|
if (kmkfUtils.isNull(val)) return null;
|
|
20077
20558
|
return val ? '是' : '否';
|
|
20078
20559
|
};
|
|
@@ -20187,7 +20668,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
20187
20668
|
title: "\u662F\u5426\u53D6\u6D88",
|
|
20188
20669
|
width: 150,
|
|
20189
20670
|
render: function render(val) {
|
|
20190
|
-
return /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo$
|
|
20671
|
+
return /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo$4(val));
|
|
20191
20672
|
}
|
|
20192
20673
|
}, {
|
|
20193
20674
|
dataIndex: 'isGift',
|
|
@@ -20206,7 +20687,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
20206
20687
|
label: '否',
|
|
20207
20688
|
value: 0
|
|
20208
20689
|
}]
|
|
20209
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo$
|
|
20690
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo$4(val));
|
|
20210
20691
|
}
|
|
20211
20692
|
}, {
|
|
20212
20693
|
dataIndex: 'skuNote',
|
|
@@ -20332,7 +20813,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
20332
20813
|
label: '否',
|
|
20333
20814
|
value: 0
|
|
20334
20815
|
}]
|
|
20335
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo$
|
|
20816
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo$4(val));
|
|
20336
20817
|
}
|
|
20337
20818
|
}].map(function (item) {
|
|
20338
20819
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
@@ -20461,7 +20942,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
20461
20942
|
label: '否',
|
|
20462
20943
|
value: 0
|
|
20463
20944
|
}]
|
|
20464
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo$
|
|
20945
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo$4(val));
|
|
20465
20946
|
}
|
|
20466
20947
|
}].map(function (item) {
|
|
20467
20948
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
@@ -20877,10 +21358,121 @@ var getColumns$5 = function getColumns() {
|
|
|
20877
21358
|
render: function render(val, record) {
|
|
20878
21359
|
return (record.qty || 0) * (+record.salePrice || 0);
|
|
20879
21360
|
}
|
|
20880
|
-
}, {
|
|
20881
|
-
dataIndex: 'batchId',
|
|
20882
|
-
title: '批次号',
|
|
20883
|
-
render: renderTextEllipsis
|
|
21361
|
+
}, {
|
|
21362
|
+
dataIndex: 'batchId',
|
|
21363
|
+
title: '批次号',
|
|
21364
|
+
render: renderTextEllipsis
|
|
21365
|
+
}, {
|
|
21366
|
+
dataIndex: 'isGift',
|
|
21367
|
+
title: '是否赠品',
|
|
21368
|
+
width: 100,
|
|
21369
|
+
render: function render(val, record, index) {
|
|
21370
|
+
return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
21371
|
+
value: val,
|
|
21372
|
+
onChange: function onChange(value) {
|
|
21373
|
+
updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(value, index, 'isGift');
|
|
21374
|
+
},
|
|
21375
|
+
options: [{
|
|
21376
|
+
label: '是',
|
|
21377
|
+
value: true
|
|
21378
|
+
}, {
|
|
21379
|
+
label: '否',
|
|
21380
|
+
value: false
|
|
21381
|
+
}]
|
|
21382
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, typeof val !== 'boolean' ? '' : val ? '是' : '否');
|
|
21383
|
+
}
|
|
21384
|
+
}, {
|
|
21385
|
+
dataIndex: 'remark',
|
|
21386
|
+
title: '备注',
|
|
21387
|
+
render: function render(val, record, index) {
|
|
21388
|
+
return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
21389
|
+
style: {
|
|
21390
|
+
width: 70
|
|
21391
|
+
},
|
|
21392
|
+
value: val,
|
|
21393
|
+
onChange: function onChange(e) {
|
|
21394
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(e.target.value, index, 'remark');
|
|
21395
|
+
}
|
|
21396
|
+
}) : renderTextEllipsis(val);
|
|
21397
|
+
}
|
|
21398
|
+
}, {
|
|
21399
|
+
dataIndex: 'outerOiId',
|
|
21400
|
+
title: '子订单号',
|
|
21401
|
+
width: 240,
|
|
21402
|
+
render: renderTextEllipsis
|
|
21403
|
+
}].map(fillAttrs),
|
|
21404
|
+
JST_EXCHANGE_GOODS: [{
|
|
21405
|
+
dataIndex: 'name',
|
|
21406
|
+
title: '商品名称',
|
|
21407
|
+
render: renderTextEllipsis
|
|
21408
|
+
}, {
|
|
21409
|
+
dataIndex: 'skuId',
|
|
21410
|
+
title: '商品编码',
|
|
21411
|
+
render: renderTextEllipsis
|
|
21412
|
+
}, {
|
|
21413
|
+
dataIndex: 'iId',
|
|
21414
|
+
title: '款式编码',
|
|
21415
|
+
render: renderTextEllipsis
|
|
21416
|
+
}, {
|
|
21417
|
+
dataIndex: 'pic',
|
|
21418
|
+
title: '商品图片',
|
|
21419
|
+
width: 100,
|
|
21420
|
+
render: function render(val) {
|
|
21421
|
+
return /*#__PURE__*/React__default['default'].createElement(ApaasImage, {
|
|
21422
|
+
width: 30,
|
|
21423
|
+
src: val
|
|
21424
|
+
});
|
|
21425
|
+
}
|
|
21426
|
+
}, {
|
|
21427
|
+
dataIndex: 'propertiesValue',
|
|
21428
|
+
title: '规格值',
|
|
21429
|
+
render: renderTextEllipsis
|
|
21430
|
+
}, {
|
|
21431
|
+
dataIndex: 'saleBasePrice',
|
|
21432
|
+
title: '原价',
|
|
21433
|
+
render: function render(price) {
|
|
21434
|
+
return price || price === 0 ? Number(price).toFixed(2) : '';
|
|
21435
|
+
}
|
|
21436
|
+
}, {
|
|
21437
|
+
dataIndex: 'salePrice',
|
|
21438
|
+
title: '单价',
|
|
21439
|
+
width: 120,
|
|
21440
|
+
render: function render(val, record, index) {
|
|
21441
|
+
return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
21442
|
+
style: {
|
|
21443
|
+
width: 70
|
|
21444
|
+
},
|
|
21445
|
+
value: val,
|
|
21446
|
+
min: 0,
|
|
21447
|
+
precision: 2,
|
|
21448
|
+
onChange: function onChange(num) {
|
|
21449
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'salePrice');
|
|
21450
|
+
}
|
|
21451
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val || val === 0 ? Number(val).toFixed(2) : '');
|
|
21452
|
+
}
|
|
21453
|
+
}, {
|
|
21454
|
+
dataIndex: 'qty',
|
|
21455
|
+
title: '数量',
|
|
21456
|
+
width: 100,
|
|
21457
|
+
render: function render(val, record, index) {
|
|
21458
|
+
return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
21459
|
+
style: {
|
|
21460
|
+
width: 70
|
|
21461
|
+
},
|
|
21462
|
+
value: val,
|
|
21463
|
+
min: 1,
|
|
21464
|
+
precision: 0,
|
|
21465
|
+
onChange: function onChange(num) {
|
|
21466
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'qty');
|
|
21467
|
+
}
|
|
21468
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
21469
|
+
}
|
|
21470
|
+
}, {
|
|
21471
|
+
dataIndex: 'saleAmount',
|
|
21472
|
+
title: '总金额',
|
|
21473
|
+
render: function render(val, record) {
|
|
21474
|
+
return (record.qty || 0) * (+record.salePrice || 0);
|
|
21475
|
+
}
|
|
20884
21476
|
}, {
|
|
20885
21477
|
dataIndex: 'isGift',
|
|
20886
21478
|
title: '是否赠品',
|
|
@@ -20914,67 +21506,248 @@ var getColumns$5 = function getColumns() {
|
|
|
20914
21506
|
}
|
|
20915
21507
|
}) : renderTextEllipsis(val);
|
|
20916
21508
|
}
|
|
20917
|
-
}, {
|
|
20918
|
-
dataIndex: 'outerOiId',
|
|
20919
|
-
title: '子订单号',
|
|
20920
|
-
width: 240,
|
|
20921
|
-
render: renderTextEllipsis
|
|
20922
21509
|
}].map(fillAttrs),
|
|
20923
|
-
|
|
20924
|
-
|
|
20925
|
-
|
|
21510
|
+
// jst售后商品信息
|
|
21511
|
+
JST_AFTERSALE_GOODS: [{
|
|
21512
|
+
dataIndex: 'asId',
|
|
21513
|
+
title: "\u805A\u6C34\u6F6D\u552E\u540E\u5355\u53F7",
|
|
21514
|
+
width: 200,
|
|
21515
|
+
align: 'center',
|
|
21516
|
+
ellipsis: true,
|
|
20926
21517
|
render: renderTextEllipsis
|
|
20927
21518
|
}, {
|
|
20928
|
-
dataIndex: '
|
|
20929
|
-
title:
|
|
21519
|
+
dataIndex: 'asiId',
|
|
21520
|
+
title: "\u552E\u540E\u5B50\u5355\u53F7",
|
|
21521
|
+
width: 200,
|
|
21522
|
+
align: 'center',
|
|
21523
|
+
ellipsis: true,
|
|
20930
21524
|
render: renderTextEllipsis
|
|
20931
21525
|
}, {
|
|
20932
|
-
dataIndex: '
|
|
20933
|
-
title:
|
|
21526
|
+
dataIndex: 'outerOiId',
|
|
21527
|
+
title: "\u5B50\u8BA2\u5355\u53F7",
|
|
21528
|
+
width: 200,
|
|
21529
|
+
align: 'center',
|
|
21530
|
+
ellipsis: true,
|
|
20934
21531
|
render: renderTextEllipsis
|
|
20935
21532
|
}, {
|
|
20936
21533
|
dataIndex: 'pic',
|
|
20937
|
-
title:
|
|
21534
|
+
title: "\u56FE\u7247",
|
|
20938
21535
|
width: 100,
|
|
21536
|
+
align: 'center',
|
|
20939
21537
|
render: function render(val) {
|
|
20940
21538
|
return /*#__PURE__*/React__default['default'].createElement(ApaasImage, {
|
|
20941
21539
|
width: 30,
|
|
20942
21540
|
src: val
|
|
20943
21541
|
});
|
|
20944
|
-
}
|
|
21542
|
+
},
|
|
21543
|
+
headerComponentType: 'pic'
|
|
21544
|
+
}, {
|
|
21545
|
+
dataIndex: 'name',
|
|
21546
|
+
title: "\u5546\u54C1\u540D\u79F0",
|
|
21547
|
+
width: 250,
|
|
21548
|
+
align: 'center',
|
|
21549
|
+
ellipsis: true,
|
|
21550
|
+
render: renderTextEllipsis
|
|
21551
|
+
}, {
|
|
21552
|
+
dataIndex: 'skuId',
|
|
21553
|
+
title: "\u5546\u54C1\u7F16\u7801",
|
|
21554
|
+
width: 200,
|
|
21555
|
+
align: 'center',
|
|
21556
|
+
ellipsis: true,
|
|
21557
|
+
render: renderTextEllipsis
|
|
20945
21558
|
}, {
|
|
20946
21559
|
dataIndex: 'propertiesValue',
|
|
20947
|
-
title:
|
|
21560
|
+
title: "\u89C4\u683C\u5C5E\u6027\u503C",
|
|
21561
|
+
width: 200,
|
|
21562
|
+
align: 'center',
|
|
21563
|
+
ellipsis: true,
|
|
20948
21564
|
render: renderTextEllipsis
|
|
20949
21565
|
}, {
|
|
20950
|
-
dataIndex: '
|
|
20951
|
-
title:
|
|
20952
|
-
|
|
20953
|
-
|
|
21566
|
+
dataIndex: 'qty',
|
|
21567
|
+
title: "\u7533\u8BF7\u6570\u91CF",
|
|
21568
|
+
width: 150,
|
|
21569
|
+
align: 'center',
|
|
21570
|
+
ellipsis: true,
|
|
21571
|
+
render: renderTextEllipsis
|
|
21572
|
+
}, {
|
|
21573
|
+
dataIndex: 'rQty',
|
|
21574
|
+
title: "\u5B9E\u6536\u9000\u8D27\u6570\u91CF",
|
|
21575
|
+
width: 150,
|
|
21576
|
+
align: 'center',
|
|
21577
|
+
ellipsis: true,
|
|
21578
|
+
render: renderTextEllipsis
|
|
21579
|
+
}, {
|
|
21580
|
+
dataIndex: 'defectiveQty',
|
|
21581
|
+
title: "\u6B21\u54C1\u6570\u91CF",
|
|
21582
|
+
width: 150,
|
|
21583
|
+
align: 'center',
|
|
21584
|
+
ellipsis: true,
|
|
21585
|
+
render: renderTextEllipsis
|
|
21586
|
+
}, {
|
|
21587
|
+
dataIndex: 'amount',
|
|
21588
|
+
title: "\u7533\u8BF7\u91D1\u989D",
|
|
21589
|
+
width: 150,
|
|
21590
|
+
align: 'center',
|
|
21591
|
+
ellipsis: true,
|
|
21592
|
+
render: renderTextEllipsis
|
|
21593
|
+
}, {
|
|
21594
|
+
dataIndex: 'shopAmount',
|
|
21595
|
+
title: "\u7EBF\u4E0A\u660E\u7EC6\u91D1\u989D",
|
|
21596
|
+
width: 150,
|
|
21597
|
+
align: 'center',
|
|
21598
|
+
ellipsis: true,
|
|
21599
|
+
render: renderTextEllipsis
|
|
21600
|
+
}, {
|
|
21601
|
+
dataIndex: 'price',
|
|
21602
|
+
title: "\u5355\u4EF7",
|
|
21603
|
+
width: 150,
|
|
21604
|
+
align: 'center',
|
|
21605
|
+
ellipsis: true,
|
|
21606
|
+
render: renderTextEllipsis
|
|
21607
|
+
}, {
|
|
21608
|
+
dataIndex: 'combineSkuId',
|
|
21609
|
+
title: "\u7EC4\u5408\u5546\u54C1\u7F16\u7801",
|
|
21610
|
+
width: 250,
|
|
21611
|
+
align: 'center',
|
|
21612
|
+
ellipsis: true,
|
|
21613
|
+
render: renderTextEllipsis
|
|
21614
|
+
}, {
|
|
21615
|
+
dataIndex: 'shopSkuId',
|
|
21616
|
+
title: "\u5E97\u94FA\u5546\u54C1\u7F16\u7801",
|
|
21617
|
+
width: 200,
|
|
21618
|
+
align: 'center',
|
|
21619
|
+
ellipsis: true,
|
|
21620
|
+
render: renderTextEllipsis
|
|
21621
|
+
}, {
|
|
21622
|
+
dataIndex: 'iId',
|
|
21623
|
+
title: "\u6B3E\u5F0F\u7F16\u7801",
|
|
21624
|
+
width: 200,
|
|
21625
|
+
align: 'center',
|
|
21626
|
+
ellipsis: true,
|
|
21627
|
+
render: renderTextEllipsis
|
|
21628
|
+
}, {
|
|
21629
|
+
dataIndex: 'type',
|
|
21630
|
+
title: "\u552E\u540E\u7C7B\u578B",
|
|
21631
|
+
width: 150,
|
|
21632
|
+
align: 'center',
|
|
21633
|
+
ellipsis: true,
|
|
21634
|
+
render: renderTextEllipsis
|
|
21635
|
+
}, {
|
|
21636
|
+
dataIndex: 'skuType',
|
|
21637
|
+
title: "\u5546\u54C1\u7C7B\u578B",
|
|
21638
|
+
width: 150,
|
|
21639
|
+
align: 'center',
|
|
21640
|
+
ellipsis: true,
|
|
21641
|
+
render: renderTextEllipsis
|
|
21642
|
+
}, {
|
|
21643
|
+
dataIndex: 'isGift',
|
|
21644
|
+
title: '是否赠品',
|
|
21645
|
+
width: 100,
|
|
21646
|
+
render: function render(val) {
|
|
21647
|
+
return /*#__PURE__*/React__default['default'].createElement("span", null, typeof val !== 'boolean' ? '' : val ? '是' : '否');
|
|
21648
|
+
},
|
|
21649
|
+
headerMapping: {
|
|
21650
|
+
transformValue: function transformValue(val) {
|
|
21651
|
+
return typeof val !== 'boolean' ? '' : val ? '是' : '否';
|
|
21652
|
+
},
|
|
21653
|
+
renderExport: function renderExport(val) {
|
|
21654
|
+
return typeof val !== 'boolean' ? '' : val ? '是' : '否';
|
|
21655
|
+
}
|
|
20954
21656
|
}
|
|
20955
21657
|
}, {
|
|
20956
|
-
dataIndex: '
|
|
20957
|
-
title:
|
|
20958
|
-
width:
|
|
20959
|
-
|
|
20960
|
-
|
|
20961
|
-
|
|
20962
|
-
|
|
20963
|
-
|
|
20964
|
-
|
|
20965
|
-
|
|
20966
|
-
|
|
20967
|
-
|
|
20968
|
-
|
|
20969
|
-
|
|
20970
|
-
|
|
21658
|
+
dataIndex: 'receiveDate',
|
|
21659
|
+
title: "\u5165\u4ED3\u65F6\u95F4",
|
|
21660
|
+
width: 200,
|
|
21661
|
+
align: 'center',
|
|
21662
|
+
ellipsis: true,
|
|
21663
|
+
render: renderTextEllipsis
|
|
21664
|
+
}, {
|
|
21665
|
+
dataIndex: 'remark',
|
|
21666
|
+
title: "\u660E\u7EC6\u5907\u6CE8",
|
|
21667
|
+
width: 200,
|
|
21668
|
+
align: 'center',
|
|
21669
|
+
ellipsis: true,
|
|
21670
|
+
render: renderTextEllipsis
|
|
21671
|
+
}]
|
|
21672
|
+
};
|
|
21673
|
+
};
|
|
21674
|
+
|
|
21675
|
+
function toNum$3(value) {
|
|
21676
|
+
if (typeof value === 'string') {
|
|
21677
|
+
return value ? +value : void 0;
|
|
21678
|
+
}
|
|
21679
|
+
if (typeof value === 'number') {
|
|
21680
|
+
return value;
|
|
21681
|
+
}
|
|
21682
|
+
return void 0;
|
|
21683
|
+
}
|
|
21684
|
+
var getColumns$6 = function getColumns(_ref) {
|
|
21685
|
+
var _ref$text = _ref.text,
|
|
21686
|
+
disabled = _ref.disabled,
|
|
21687
|
+
updateHandle = _ref.updateHandle;
|
|
21688
|
+
return {
|
|
21689
|
+
KM_GOODS: [{
|
|
21690
|
+
dataIndex: 'skuPropertiesName',
|
|
21691
|
+
title: "\u89C4\u683C\u540D\u79F0",
|
|
21692
|
+
width: 250,
|
|
21693
|
+
render: renderTextEllipsis
|
|
21694
|
+
}, {
|
|
21695
|
+
dataIndex: 'sysTitle',
|
|
21696
|
+
title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
|
|
21697
|
+
width: 150,
|
|
21698
|
+
render: renderTextEllipsis
|
|
21699
|
+
}, {
|
|
21700
|
+
dataIndex: 'title',
|
|
21701
|
+
title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
|
|
21702
|
+
width: 150,
|
|
21703
|
+
render: renderTextEllipsis
|
|
21704
|
+
}, {
|
|
21705
|
+
dataIndex: 'shortTitle',
|
|
21706
|
+
title: "\u5546\u54C1\u7B80\u79F0",
|
|
21707
|
+
width: 150,
|
|
21708
|
+
render: renderTextEllipsis
|
|
21709
|
+
}, {
|
|
21710
|
+
dataIndex: 'sysOuterId',
|
|
21711
|
+
title: "\u7CFB\u7EDF\u5546\u5BB6\u7F16\u7801",
|
|
21712
|
+
width: 150,
|
|
21713
|
+
render: renderTextEllipsis
|
|
21714
|
+
}, {
|
|
21715
|
+
dataIndex: 'skuSysId',
|
|
21716
|
+
title: "\u7CFB\u7EDF\u89C4\u683CID",
|
|
21717
|
+
width: 150,
|
|
21718
|
+
render: renderTextEllipsis
|
|
21719
|
+
}, {
|
|
21720
|
+
dataIndex: 'skuId',
|
|
21721
|
+
title: "\u5E73\u53F0\u89C4\u683CID",
|
|
21722
|
+
width: 170,
|
|
21723
|
+
render: renderTextEllipsis
|
|
21724
|
+
}, {
|
|
21725
|
+
dataIndex: 'outerSkuId',
|
|
21726
|
+
title: "\u5E73\u53F0\u89C4\u683C\u7F16\u7801",
|
|
21727
|
+
width: 170,
|
|
21728
|
+
render: renderTextEllipsis
|
|
21729
|
+
}, {
|
|
21730
|
+
dataIndex: 'itemSysId',
|
|
21731
|
+
title: "\u7CFB\u7EDF\u5546\u54C1ID",
|
|
21732
|
+
width: 150,
|
|
21733
|
+
render: renderTextEllipsis
|
|
21734
|
+
}, {
|
|
21735
|
+
dataIndex: 'sysPicPath',
|
|
21736
|
+
title: "\u5546\u54C1\u56FE\u7247",
|
|
21737
|
+
width: 100,
|
|
21738
|
+
render: function render(val) {
|
|
21739
|
+
var imgUrl = (val === null || val === void 0 ? void 0 : val.startsWith('http')) ? val : "https://erp.superboss.cc".concat(val);
|
|
21740
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Image, {
|
|
21741
|
+
width: 30,
|
|
21742
|
+
src: imgUrl
|
|
21743
|
+
});
|
|
20971
21744
|
}
|
|
20972
21745
|
}, {
|
|
20973
|
-
dataIndex: '
|
|
20974
|
-
title:
|
|
21746
|
+
dataIndex: 'num',
|
|
21747
|
+
title: "\u6570\u91CF",
|
|
20975
21748
|
width: 100,
|
|
20976
21749
|
render: function render(val, record, index) {
|
|
20977
|
-
return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
21750
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
20978
21751
|
style: {
|
|
20979
21752
|
width: 70
|
|
20980
21753
|
},
|
|
@@ -20982,216 +21755,212 @@ var getColumns$5 = function getColumns() {
|
|
|
20982
21755
|
min: 1,
|
|
20983
21756
|
precision: 0,
|
|
20984
21757
|
onChange: function onChange(num) {
|
|
20985
|
-
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, '
|
|
21758
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'num');
|
|
20986
21759
|
}
|
|
20987
21760
|
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
20988
21761
|
}
|
|
20989
21762
|
}, {
|
|
20990
|
-
dataIndex: '
|
|
20991
|
-
title:
|
|
20992
|
-
|
|
20993
|
-
return (record.qty || 0) * (+record.salePrice || 0);
|
|
20994
|
-
}
|
|
20995
|
-
}, {
|
|
20996
|
-
dataIndex: 'isGift',
|
|
20997
|
-
title: '是否赠品',
|
|
20998
|
-
width: 100,
|
|
20999
|
-
render: function render(val, record, index) {
|
|
21000
|
-
return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
21001
|
-
value: val,
|
|
21002
|
-
onChange: function onChange(value) {
|
|
21003
|
-
updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(value, index, 'isGift');
|
|
21004
|
-
},
|
|
21005
|
-
options: [{
|
|
21006
|
-
label: '是',
|
|
21007
|
-
value: true
|
|
21008
|
-
}, {
|
|
21009
|
-
label: '否',
|
|
21010
|
-
value: false
|
|
21011
|
-
}]
|
|
21012
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, typeof val !== 'boolean' ? '' : val ? '是' : '否');
|
|
21013
|
-
}
|
|
21014
|
-
}, {
|
|
21015
|
-
dataIndex: 'remark',
|
|
21016
|
-
title: '备注',
|
|
21763
|
+
dataIndex: 'payment',
|
|
21764
|
+
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
21765
|
+
width: 150,
|
|
21017
21766
|
render: function render(val, record, index) {
|
|
21018
|
-
return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.
|
|
21767
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
21019
21768
|
style: {
|
|
21020
|
-
width:
|
|
21769
|
+
width: 130
|
|
21021
21770
|
},
|
|
21022
21771
|
value: val,
|
|
21023
|
-
|
|
21024
|
-
|
|
21772
|
+
min: 0,
|
|
21773
|
+
precision: 2,
|
|
21774
|
+
onChange: function onChange(num) {
|
|
21775
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'payment');
|
|
21025
21776
|
}
|
|
21026
|
-
}) :
|
|
21777
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val || val === 0 ? Number(val).toFixed(2) : '');
|
|
21027
21778
|
}
|
|
21028
|
-
}].map(fillAttrs),
|
|
21029
|
-
// jst售后商品信息
|
|
21030
|
-
JST_AFTERSALE_GOODS: [{
|
|
21031
|
-
dataIndex: 'asId',
|
|
21032
|
-
title: "\u805A\u6C34\u6F6D\u552E\u540E\u5355\u53F7",
|
|
21033
|
-
width: 200,
|
|
21034
|
-
align: 'center',
|
|
21035
|
-
ellipsis: true,
|
|
21036
|
-
render: renderTextEllipsis
|
|
21037
|
-
}, {
|
|
21038
|
-
dataIndex: 'asiId',
|
|
21039
|
-
title: "\u552E\u540E\u5B50\u5355\u53F7",
|
|
21040
|
-
width: 200,
|
|
21041
|
-
align: 'center',
|
|
21042
|
-
ellipsis: true,
|
|
21043
|
-
render: renderTextEllipsis
|
|
21044
21779
|
}, {
|
|
21045
|
-
dataIndex: '
|
|
21046
|
-
title: "\
|
|
21047
|
-
width:
|
|
21048
|
-
align: 'center',
|
|
21049
|
-
ellipsis: true,
|
|
21050
|
-
render: renderTextEllipsis
|
|
21051
|
-
}, {
|
|
21052
|
-
dataIndex: 'pic',
|
|
21053
|
-
title: "\u56FE\u7247",
|
|
21054
|
-
width: 100,
|
|
21055
|
-
align: 'center',
|
|
21780
|
+
dataIndex: 'price',
|
|
21781
|
+
title: "\u5546\u54C1\u9500\u552E\u4EF7",
|
|
21782
|
+
width: 150,
|
|
21056
21783
|
render: function render(val) {
|
|
21057
|
-
return
|
|
21058
|
-
|
|
21059
|
-
src: val
|
|
21060
|
-
});
|
|
21061
|
-
},
|
|
21062
|
-
headerComponentType: 'pic'
|
|
21784
|
+
return val || val === 0 ? Number(val).toFixed(2) : '';
|
|
21785
|
+
}
|
|
21063
21786
|
}, {
|
|
21064
|
-
dataIndex: '
|
|
21065
|
-
title: "\u5546\u54C1\
|
|
21066
|
-
width:
|
|
21067
|
-
align: 'center',
|
|
21068
|
-
ellipsis: true,
|
|
21787
|
+
dataIndex: 'type',
|
|
21788
|
+
title: "\u5546\u54C1\u7C7B\u578B",
|
|
21789
|
+
width: 150,
|
|
21069
21790
|
render: renderTextEllipsis
|
|
21070
21791
|
}, {
|
|
21071
|
-
dataIndex: '
|
|
21072
|
-
title: "\u5546\
|
|
21073
|
-
width:
|
|
21074
|
-
align: 'center',
|
|
21075
|
-
ellipsis: true,
|
|
21792
|
+
dataIndex: 'supplierName',
|
|
21793
|
+
title: "\u4F9B\u5E94\u5546\u540D\u79F0",
|
|
21794
|
+
width: 150,
|
|
21076
21795
|
render: renderTextEllipsis
|
|
21077
21796
|
}, {
|
|
21078
|
-
dataIndex: '
|
|
21079
|
-
title: "\
|
|
21080
|
-
width:
|
|
21081
|
-
|
|
21082
|
-
|
|
21797
|
+
dataIndex: 'supplierCode',
|
|
21798
|
+
title: "\u4F9B\u5E94\u5546\u7F16\u7801",
|
|
21799
|
+
width: 150,
|
|
21800
|
+
render: renderTextEllipsis
|
|
21801
|
+
}].map(function (item) {
|
|
21802
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
21803
|
+
align: 'center',
|
|
21804
|
+
ellipsis: true
|
|
21805
|
+
});
|
|
21806
|
+
}),
|
|
21807
|
+
KM_REISSUE_GOODS: [{
|
|
21808
|
+
dataIndex: 'skuPropertiesName',
|
|
21809
|
+
title: "\u89C4\u683C\u540D\u79F0",
|
|
21810
|
+
width: 250,
|
|
21083
21811
|
render: renderTextEllipsis
|
|
21084
21812
|
}, {
|
|
21085
|
-
dataIndex: '
|
|
21086
|
-
title: "\
|
|
21813
|
+
dataIndex: 'sysTitle',
|
|
21814
|
+
title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
|
|
21087
21815
|
width: 150,
|
|
21088
|
-
align: 'center',
|
|
21089
|
-
ellipsis: true,
|
|
21090
21816
|
render: renderTextEllipsis
|
|
21091
21817
|
}, {
|
|
21092
|
-
dataIndex: '
|
|
21093
|
-
title: "\
|
|
21818
|
+
dataIndex: 'shortTitle',
|
|
21819
|
+
title: "\u5546\u54C1\u7B80\u79F0",
|
|
21094
21820
|
width: 150,
|
|
21095
|
-
align: 'center',
|
|
21096
|
-
ellipsis: true,
|
|
21097
21821
|
render: renderTextEllipsis
|
|
21098
21822
|
}, {
|
|
21099
|
-
dataIndex: '
|
|
21100
|
-
title: "\
|
|
21823
|
+
dataIndex: 'title',
|
|
21824
|
+
title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
|
|
21101
21825
|
width: 150,
|
|
21102
|
-
align: 'center',
|
|
21103
|
-
ellipsis: true,
|
|
21104
21826
|
render: renderTextEllipsis
|
|
21105
21827
|
}, {
|
|
21106
|
-
dataIndex: '
|
|
21107
|
-
title: "\
|
|
21828
|
+
dataIndex: 'sysOuterId',
|
|
21829
|
+
title: "\u7CFB\u7EDF\u5546\u5BB6\u7F16\u7801",
|
|
21108
21830
|
width: 150,
|
|
21109
|
-
align: 'center',
|
|
21110
|
-
ellipsis: true,
|
|
21111
21831
|
render: renderTextEllipsis
|
|
21112
21832
|
}, {
|
|
21113
|
-
dataIndex: '
|
|
21114
|
-
title: "\
|
|
21833
|
+
dataIndex: 'itemSysId',
|
|
21834
|
+
title: "\u7CFB\u7EDF\u5546\u54C1ID",
|
|
21115
21835
|
width: 150,
|
|
21116
|
-
align: 'center',
|
|
21117
|
-
ellipsis: true,
|
|
21118
21836
|
render: renderTextEllipsis
|
|
21119
21837
|
}, {
|
|
21120
|
-
dataIndex: '
|
|
21121
|
-
title: "\
|
|
21838
|
+
dataIndex: 'skuSysId',
|
|
21839
|
+
title: "\u7CFB\u7EDF\u89C4\u683CID",
|
|
21122
21840
|
width: 150,
|
|
21123
|
-
align: 'center',
|
|
21124
|
-
ellipsis: true,
|
|
21125
21841
|
render: renderTextEllipsis
|
|
21126
21842
|
}, {
|
|
21127
|
-
dataIndex: '
|
|
21128
|
-
title: "\
|
|
21129
|
-
width:
|
|
21130
|
-
align: 'center',
|
|
21131
|
-
ellipsis: true,
|
|
21843
|
+
dataIndex: 'skuId',
|
|
21844
|
+
title: "\u5E73\u53F0\u89C4\u683CID",
|
|
21845
|
+
width: 170,
|
|
21132
21846
|
render: renderTextEllipsis
|
|
21133
21847
|
}, {
|
|
21134
|
-
dataIndex: '
|
|
21135
|
-
title: "\
|
|
21136
|
-
width:
|
|
21137
|
-
align: 'center',
|
|
21138
|
-
ellipsis: true,
|
|
21848
|
+
dataIndex: 'outerSkuId',
|
|
21849
|
+
title: "\u5E73\u53F0\u89C4\u683C\u7F16\u7801",
|
|
21850
|
+
width: 170,
|
|
21139
21851
|
render: renderTextEllipsis
|
|
21140
21852
|
}, {
|
|
21141
|
-
dataIndex: '
|
|
21142
|
-
title: "\
|
|
21143
|
-
width:
|
|
21144
|
-
|
|
21145
|
-
|
|
21146
|
-
|
|
21853
|
+
dataIndex: 'realNum',
|
|
21854
|
+
title: "\u5B9E\u9645\u8865\u53D1\u6570\u91CF",
|
|
21855
|
+
width: 100,
|
|
21856
|
+
validator: function validator(_rule, value) {
|
|
21857
|
+
var title = '';
|
|
21858
|
+
if (((value === null || value === void 0 ? void 0 : value.kmReissueGoods) || []).some(function (goods) {
|
|
21859
|
+
var realNum = toNum$3(goods === null || goods === void 0 ? void 0 : goods.realNum);
|
|
21860
|
+
var res = typeof realNum === 'number' ? realNum < 1 : true;
|
|
21861
|
+
if (res) {
|
|
21862
|
+
title = (goods === null || goods === void 0 ? void 0 : goods.goodName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodName, "]") : '';
|
|
21863
|
+
}
|
|
21864
|
+
return res;
|
|
21865
|
+
})) {
|
|
21866
|
+
return Promise.reject("".concat(title, "\u5B9E\u9645\u8865\u53D1\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
|
|
21867
|
+
}
|
|
21868
|
+
},
|
|
21869
|
+
render: function render(val, record, index) {
|
|
21870
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
21871
|
+
style: {
|
|
21872
|
+
width: 70
|
|
21873
|
+
},
|
|
21874
|
+
value: val,
|
|
21875
|
+
min: 1,
|
|
21876
|
+
precision: 0,
|
|
21877
|
+
onChange: function onChange(num) {
|
|
21878
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'realNum');
|
|
21879
|
+
}
|
|
21880
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
21881
|
+
}
|
|
21882
|
+
}, {
|
|
21883
|
+
dataIndex: 'desiredNum',
|
|
21884
|
+
title: "\u5E94\u8865\u53D1\u6570\u91CF",
|
|
21885
|
+
width: 100,
|
|
21886
|
+
render: function render(val, record, index) {
|
|
21887
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
21888
|
+
style: {
|
|
21889
|
+
width: 70
|
|
21890
|
+
},
|
|
21891
|
+
value: val,
|
|
21892
|
+
min: 1,
|
|
21893
|
+
precision: 0,
|
|
21894
|
+
onChange: function onChange(num) {
|
|
21895
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'desiredNum');
|
|
21896
|
+
}
|
|
21897
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
21898
|
+
}
|
|
21899
|
+
}, {
|
|
21900
|
+
dataIndex: 'price',
|
|
21901
|
+
title: "\u5546\u54C1\u9500\u552E\u4EF7",
|
|
21902
|
+
width: 150,
|
|
21903
|
+
render: function render(val) {
|
|
21904
|
+
return val || val === 0 ? Number(val).toFixed(2) : '';
|
|
21905
|
+
}
|
|
21906
|
+
}, {
|
|
21907
|
+
dataIndex: 'payment',
|
|
21908
|
+
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
21909
|
+
width: 150,
|
|
21910
|
+
render: function render(val, record, index) {
|
|
21911
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
21912
|
+
style: {
|
|
21913
|
+
width: 130
|
|
21914
|
+
},
|
|
21915
|
+
value: val,
|
|
21916
|
+
min: 0,
|
|
21917
|
+
precision: 2,
|
|
21918
|
+
onChange: function onChange(num) {
|
|
21919
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'payment');
|
|
21920
|
+
}
|
|
21921
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val || val === 0 ? Number(val).toFixed(2) : '');
|
|
21922
|
+
}
|
|
21147
21923
|
}, {
|
|
21148
21924
|
dataIndex: 'type',
|
|
21149
|
-
title: "\
|
|
21925
|
+
title: "\u5546\u54C1\u7C7B\u578B",
|
|
21926
|
+
width: 150,
|
|
21927
|
+
render: renderTextEllipsis
|
|
21928
|
+
}, {
|
|
21929
|
+
dataIndex: 'supplierName',
|
|
21930
|
+
title: "\u4F9B\u5E94\u5546\u540D\u79F0",
|
|
21150
21931
|
width: 150,
|
|
21151
|
-
align: 'center',
|
|
21152
|
-
ellipsis: true,
|
|
21153
21932
|
render: renderTextEllipsis
|
|
21154
21933
|
}, {
|
|
21155
|
-
dataIndex: '
|
|
21156
|
-
title: "\u5546\
|
|
21934
|
+
dataIndex: 'supplierCode',
|
|
21935
|
+
title: "\u4F9B\u5E94\u5546\u7F16\u7801",
|
|
21157
21936
|
width: 150,
|
|
21158
|
-
align: 'center',
|
|
21159
|
-
ellipsis: true,
|
|
21160
21937
|
render: renderTextEllipsis
|
|
21161
21938
|
}, {
|
|
21162
|
-
dataIndex: '
|
|
21163
|
-
title:
|
|
21939
|
+
dataIndex: 'sysPicPath',
|
|
21940
|
+
title: "\u5546\u54C1\u56FE\u7247",
|
|
21164
21941
|
width: 100,
|
|
21165
21942
|
render: function render(val) {
|
|
21166
|
-
|
|
21167
|
-
|
|
21168
|
-
|
|
21169
|
-
|
|
21170
|
-
|
|
21171
|
-
},
|
|
21172
|
-
renderExport: function renderExport(val) {
|
|
21173
|
-
return typeof val !== 'boolean' ? '' : val ? '是' : '否';
|
|
21174
|
-
}
|
|
21943
|
+
var imgUrl = (val === null || val === void 0 ? void 0 : val.startsWith('http')) ? val : "https://erp.superboss.cc".concat(val);
|
|
21944
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Image, {
|
|
21945
|
+
width: 30,
|
|
21946
|
+
src: imgUrl
|
|
21947
|
+
});
|
|
21175
21948
|
}
|
|
21176
|
-
}
|
|
21177
|
-
|
|
21178
|
-
|
|
21179
|
-
|
|
21180
|
-
|
|
21181
|
-
|
|
21182
|
-
render: renderTextEllipsis
|
|
21183
|
-
}, {
|
|
21184
|
-
dataIndex: 'remark',
|
|
21185
|
-
title: "\u660E\u7EC6\u5907\u6CE8",
|
|
21186
|
-
width: 200,
|
|
21187
|
-
align: 'center',
|
|
21188
|
-
ellipsis: true,
|
|
21189
|
-
render: renderTextEllipsis
|
|
21190
|
-
}]
|
|
21949
|
+
}].map(function (item) {
|
|
21950
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
21951
|
+
align: 'center',
|
|
21952
|
+
ellipsis: true
|
|
21953
|
+
});
|
|
21954
|
+
})
|
|
21191
21955
|
};
|
|
21192
21956
|
};
|
|
21193
21957
|
|
|
21194
|
-
function
|
|
21958
|
+
var isNumberOrNumberString$2 = function isNumberOrNumberString(value) {
|
|
21959
|
+
if (typeof value === 'number') return true;
|
|
21960
|
+
if (typeof value === 'string' && !isNaN(Number(value)) && value.trim() !== '') return true;
|
|
21961
|
+
return false;
|
|
21962
|
+
};
|
|
21963
|
+
function toNum$4(value) {
|
|
21195
21964
|
if (typeof value === 'string') {
|
|
21196
21965
|
return value ? +value : void 0;
|
|
21197
21966
|
}
|
|
@@ -21200,69 +21969,117 @@ function toNum$3(value) {
|
|
|
21200
21969
|
}
|
|
21201
21970
|
return void 0;
|
|
21202
21971
|
}
|
|
21203
|
-
var getColumns$
|
|
21972
|
+
var getColumns$7 = function getColumns(_ref) {
|
|
21204
21973
|
var _ref$text = _ref.text,
|
|
21205
21974
|
disabled = _ref.disabled,
|
|
21206
|
-
updateHandle = _ref.updateHandle
|
|
21975
|
+
updateHandle = _ref.updateHandle,
|
|
21976
|
+
updateDataHandle = _ref.updateDataHandle;
|
|
21207
21977
|
return {
|
|
21208
|
-
|
|
21209
|
-
|
|
21210
|
-
|
|
21211
|
-
|
|
21978
|
+
//巨益商品信息
|
|
21979
|
+
JY_GOODS: [{
|
|
21980
|
+
dataIndex: 'productName',
|
|
21981
|
+
title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
|
|
21982
|
+
align: 'center',
|
|
21983
|
+
ellipsis: true,
|
|
21984
|
+
width: 150,
|
|
21212
21985
|
render: renderTextEllipsis
|
|
21213
21986
|
}, {
|
|
21214
|
-
dataIndex: '
|
|
21215
|
-
title: "\u7CFB\u7EDF\u5546\u54C1\
|
|
21987
|
+
dataIndex: 'productCode',
|
|
21988
|
+
title: "\u7CFB\u7EDF\u5546\u54C1\u7F16\u7801",
|
|
21989
|
+
align: 'center',
|
|
21990
|
+
ellipsis: true,
|
|
21216
21991
|
width: 150,
|
|
21217
21992
|
render: renderTextEllipsis
|
|
21218
21993
|
}, {
|
|
21219
|
-
dataIndex: '
|
|
21220
|
-
title: "\
|
|
21994
|
+
dataIndex: 'productId',
|
|
21995
|
+
title: "\u7CFB\u7EDF\u5546\u54C1ID",
|
|
21996
|
+
align: 'center',
|
|
21997
|
+
ellipsis: true,
|
|
21221
21998
|
width: 150,
|
|
21222
21999
|
render: renderTextEllipsis
|
|
21223
22000
|
}, {
|
|
21224
|
-
dataIndex: '
|
|
21225
|
-
title: "\
|
|
22001
|
+
dataIndex: 'skuName',
|
|
22002
|
+
title: "\u7CFB\u7EDF\u89C4\u683C\u540D\u79F0",
|
|
22003
|
+
align: 'center',
|
|
22004
|
+
ellipsis: true,
|
|
21226
22005
|
width: 150,
|
|
21227
22006
|
render: renderTextEllipsis
|
|
21228
22007
|
}, {
|
|
21229
|
-
dataIndex: '
|
|
21230
|
-
title: "\u7CFB\u7EDF\
|
|
22008
|
+
dataIndex: 'skuCode',
|
|
22009
|
+
title: "\u7CFB\u7EDF\u89C4\u683C\u7F16\u7801",
|
|
22010
|
+
align: 'center',
|
|
22011
|
+
ellipsis: true,
|
|
21231
22012
|
width: 150,
|
|
21232
22013
|
render: renderTextEllipsis
|
|
21233
22014
|
}, {
|
|
21234
|
-
dataIndex: '
|
|
21235
|
-
title: "\
|
|
22015
|
+
dataIndex: 'specId',
|
|
22016
|
+
title: "\u89C4\u683CID",
|
|
22017
|
+
align: 'center',
|
|
22018
|
+
ellipsis: true,
|
|
21236
22019
|
width: 150,
|
|
21237
22020
|
render: renderTextEllipsis
|
|
21238
22021
|
}, {
|
|
21239
|
-
dataIndex: '
|
|
21240
|
-
title: "\
|
|
21241
|
-
width:
|
|
22022
|
+
dataIndex: 'goodsClass',
|
|
22023
|
+
title: "\u8D27\u54C1\u7C7B\u522B",
|
|
22024
|
+
width: 150,
|
|
21242
22025
|
render: renderTextEllipsis
|
|
21243
22026
|
}, {
|
|
21244
|
-
dataIndex: '
|
|
21245
|
-
title: "\
|
|
21246
|
-
width:
|
|
22027
|
+
dataIndex: 'code',
|
|
22028
|
+
title: "\u6761\u7801",
|
|
22029
|
+
width: 150,
|
|
22030
|
+
render: renderTextEllipsis
|
|
22031
|
+
},
|
|
22032
|
+
// {
|
|
22033
|
+
// dataIndex: 'specName',
|
|
22034
|
+
// title: `规格名称`,
|
|
22035
|
+
// align: 'center',
|
|
22036
|
+
// ellipsis: true,
|
|
22037
|
+
// width: 200,
|
|
22038
|
+
// },
|
|
22039
|
+
// {
|
|
22040
|
+
// dataIndex: 'specCode',
|
|
22041
|
+
// title: `规格编号`,
|
|
22042
|
+
// align: 'center',
|
|
22043
|
+
// ellipsis: true,
|
|
22044
|
+
// width: 150,
|
|
22045
|
+
// },
|
|
22046
|
+
{
|
|
22047
|
+
dataIndex: 'mallProductName',
|
|
22048
|
+
title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
|
|
22049
|
+
align: 'center',
|
|
22050
|
+
ellipsis: true,
|
|
22051
|
+
width: 250,
|
|
21247
22052
|
render: renderTextEllipsis
|
|
21248
22053
|
}, {
|
|
21249
|
-
dataIndex: '
|
|
21250
|
-
title: "\
|
|
22054
|
+
dataIndex: 'mallProductOutCode',
|
|
22055
|
+
title: "\u5E73\u53F0\u5546\u54C1\u7F16\u7801",
|
|
22056
|
+
align: 'center',
|
|
22057
|
+
ellipsis: true,
|
|
21251
22058
|
width: 150,
|
|
21252
22059
|
render: renderTextEllipsis
|
|
21253
22060
|
}, {
|
|
21254
|
-
dataIndex: '
|
|
21255
|
-
title: "\
|
|
21256
|
-
|
|
21257
|
-
|
|
21258
|
-
|
|
21259
|
-
|
|
21260
|
-
width: 30,
|
|
21261
|
-
src: imgUrl
|
|
21262
|
-
});
|
|
21263
|
-
}
|
|
22061
|
+
dataIndex: 'mallProductId',
|
|
22062
|
+
title: "\u5E73\u53F0\u5546\u54C1ID",
|
|
22063
|
+
align: 'center',
|
|
22064
|
+
ellipsis: true,
|
|
22065
|
+
width: 250,
|
|
22066
|
+
render: renderTextEllipsis
|
|
21264
22067
|
}, {
|
|
21265
|
-
dataIndex: '
|
|
22068
|
+
dataIndex: 'mallSkuName',
|
|
22069
|
+
title: "\u5E73\u53F0\u89C4\u683C\u540D\u79F0",
|
|
22070
|
+
align: 'center',
|
|
22071
|
+
ellipsis: true,
|
|
22072
|
+
width: 250,
|
|
22073
|
+
render: renderTextEllipsis
|
|
22074
|
+
}, {
|
|
22075
|
+
dataIndex: 'mallSkuId',
|
|
22076
|
+
title: "\u5E73\u53F0\u89C4\u683CID",
|
|
22077
|
+
align: 'center',
|
|
22078
|
+
ellipsis: true,
|
|
22079
|
+
width: 250,
|
|
22080
|
+
render: renderTextEllipsis
|
|
22081
|
+
}, {
|
|
22082
|
+
dataIndex: 'sellCount',
|
|
21266
22083
|
title: "\u6570\u91CF",
|
|
21267
22084
|
width: 100,
|
|
21268
22085
|
render: function render(val, record, index) {
|
|
@@ -21274,13 +22091,16 @@ var getColumns$6 = function getColumns(_ref) {
|
|
|
21274
22091
|
min: 1,
|
|
21275
22092
|
precision: 0,
|
|
21276
22093
|
onChange: function onChange(num) {
|
|
21277
|
-
|
|
22094
|
+
updateDataHandle({
|
|
22095
|
+
sellCount: num,
|
|
22096
|
+
sellTotal: num && isNumberOrNumberString$2(record.sellPrice) ? num * record.sellPrice : null
|
|
22097
|
+
}, index);
|
|
21278
22098
|
}
|
|
21279
22099
|
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
21280
22100
|
}
|
|
21281
22101
|
}, {
|
|
21282
|
-
dataIndex: '
|
|
21283
|
-
title: "\
|
|
22102
|
+
dataIndex: 'sellPrice',
|
|
22103
|
+
title: "\u5355\u4EF7",
|
|
21284
22104
|
width: 150,
|
|
21285
22105
|
render: function render(val, record, index) {
|
|
21286
22106
|
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
@@ -21291,98 +22111,198 @@ var getColumns$6 = function getColumns(_ref) {
|
|
|
21291
22111
|
min: 0,
|
|
21292
22112
|
precision: 2,
|
|
21293
22113
|
onChange: function onChange(num) {
|
|
21294
|
-
|
|
22114
|
+
updateDataHandle({
|
|
22115
|
+
sellPrice: num,
|
|
22116
|
+
sellTotal: num && isNumberOrNumberString$2(record.sellCount) ? num * record.sellCount : null
|
|
22117
|
+
}, index);
|
|
21295
22118
|
}
|
|
21296
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val
|
|
22119
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
22120
|
+
}
|
|
22121
|
+
}, {
|
|
22122
|
+
dataIndex: 'mallSellingPrice',
|
|
22123
|
+
title: "\u5E73\u53F0\u5546\u54C1\u4EF7\u683C",
|
|
22124
|
+
width: 150
|
|
22125
|
+
}, {
|
|
22126
|
+
dataIndex: 'sellTotal',
|
|
22127
|
+
title: "\u91D1\u989D",
|
|
22128
|
+
width: 150
|
|
22129
|
+
}, {
|
|
22130
|
+
dataIndex: 'settlementPrice',
|
|
22131
|
+
title: "\u7ED3\u7B97\u4EF7",
|
|
22132
|
+
width: 150
|
|
22133
|
+
}, {
|
|
22134
|
+
dataIndex: 'divideOrderFee',
|
|
22135
|
+
title: "\u5206\u644A\u5B9E\u4ED8\u91D1\u989D",
|
|
22136
|
+
width: 150
|
|
22137
|
+
}, {
|
|
22138
|
+
dataIndex: 'bfit',
|
|
22139
|
+
title: "\u662F\u5426\u7EC4\u5408\u88C5",
|
|
22140
|
+
width: 150,
|
|
22141
|
+
render: function render(val, record, index) {
|
|
22142
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
22143
|
+
dropdownStyle: {
|
|
22144
|
+
zIndex: 2000
|
|
22145
|
+
},
|
|
22146
|
+
getPopupContainer: function getPopupContainer() {
|
|
22147
|
+
return document.body;
|
|
22148
|
+
},
|
|
22149
|
+
value: val,
|
|
22150
|
+
onChange: function onChange(value) {
|
|
22151
|
+
updateHandle(value, index, 'bfit');
|
|
22152
|
+
},
|
|
22153
|
+
options: [{
|
|
22154
|
+
label: '是',
|
|
22155
|
+
value: 'True'
|
|
22156
|
+
}, {
|
|
22157
|
+
label: '否',
|
|
22158
|
+
value: 'False'
|
|
22159
|
+
}]
|
|
22160
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val === 'True' ? '是' : '否');
|
|
22161
|
+
}
|
|
22162
|
+
}, {
|
|
22163
|
+
dataIndex: 'combinationName',
|
|
22164
|
+
title: "\u7EC4\u5408\u5546\u54C1\u540D\u79F0",
|
|
22165
|
+
width: 150,
|
|
22166
|
+
render: renderTextEllipsis
|
|
22167
|
+
}, {
|
|
22168
|
+
dataIndex: 'combinationCode',
|
|
22169
|
+
title: "\u7EC4\u5408\u5546\u54C1\u7F16\u7801",
|
|
22170
|
+
width: 150,
|
|
22171
|
+
render: renderTextEllipsis
|
|
22172
|
+
}, {
|
|
22173
|
+
dataIndex: 'gift',
|
|
22174
|
+
title: "\u662F\u5426\u8D60\u54C1",
|
|
22175
|
+
width: 150,
|
|
22176
|
+
render: function render(val, record, index) {
|
|
22177
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
22178
|
+
dropdownStyle: {
|
|
22179
|
+
zIndex: 2000
|
|
22180
|
+
},
|
|
22181
|
+
getPopupContainer: function getPopupContainer() {
|
|
22182
|
+
return document.body;
|
|
22183
|
+
},
|
|
22184
|
+
value: val,
|
|
22185
|
+
onChange: function onChange(value) {
|
|
22186
|
+
updateHandle(value, index, 'gift');
|
|
22187
|
+
},
|
|
22188
|
+
options: [{
|
|
22189
|
+
label: '是',
|
|
22190
|
+
value: '1'
|
|
22191
|
+
}, {
|
|
22192
|
+
label: '否',
|
|
22193
|
+
value: '0'
|
|
22194
|
+
}]
|
|
22195
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val === '1' ? '是' : '否');
|
|
21297
22196
|
}
|
|
22197
|
+
}].map(function (item) {
|
|
22198
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
22199
|
+
align: 'center',
|
|
22200
|
+
ellipsis: true
|
|
22201
|
+
});
|
|
22202
|
+
}),
|
|
22203
|
+
// 巨益补发商品信息
|
|
22204
|
+
JY_REISSUE_GOODS: [{
|
|
22205
|
+
dataIndex: 'productName',
|
|
22206
|
+
title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
|
|
22207
|
+
align: 'center',
|
|
22208
|
+
ellipsis: true,
|
|
22209
|
+
width: 150,
|
|
22210
|
+
render: renderTextEllipsis
|
|
21298
22211
|
}, {
|
|
21299
|
-
dataIndex: '
|
|
21300
|
-
title: "\u5546\u54C1\
|
|
22212
|
+
dataIndex: 'productCode',
|
|
22213
|
+
title: "\u7CFB\u7EDF\u5546\u54C1\u7F16\u7801",
|
|
22214
|
+
align: 'center',
|
|
22215
|
+
ellipsis: true,
|
|
21301
22216
|
width: 150,
|
|
21302
|
-
render:
|
|
21303
|
-
return val || val === 0 ? Number(val).toFixed(2) : '';
|
|
21304
|
-
}
|
|
22217
|
+
render: renderTextEllipsis
|
|
21305
22218
|
}, {
|
|
21306
|
-
dataIndex: '
|
|
21307
|
-
title: "\
|
|
22219
|
+
dataIndex: 'productId',
|
|
22220
|
+
title: "\u7CFB\u7EDF\u5546\u54C1ID",
|
|
22221
|
+
align: 'center',
|
|
22222
|
+
ellipsis: true,
|
|
21308
22223
|
width: 150,
|
|
21309
22224
|
render: renderTextEllipsis
|
|
21310
22225
|
}, {
|
|
21311
|
-
dataIndex: '
|
|
21312
|
-
title: "\
|
|
22226
|
+
dataIndex: 'skuName',
|
|
22227
|
+
title: "\u7CFB\u7EDF\u89C4\u683C\u540D\u79F0",
|
|
22228
|
+
align: 'center',
|
|
22229
|
+
ellipsis: true,
|
|
21313
22230
|
width: 150,
|
|
21314
22231
|
render: renderTextEllipsis
|
|
21315
22232
|
}, {
|
|
21316
|
-
dataIndex: '
|
|
21317
|
-
title: "\
|
|
22233
|
+
dataIndex: 'skuCode',
|
|
22234
|
+
title: "\u7CFB\u7EDF\u89C4\u683C\u7F16\u7801",
|
|
22235
|
+
align: 'center',
|
|
22236
|
+
ellipsis: true,
|
|
21318
22237
|
width: 150,
|
|
21319
22238
|
render: renderTextEllipsis
|
|
21320
|
-
}
|
|
21321
|
-
|
|
21322
|
-
|
|
21323
|
-
|
|
21324
|
-
|
|
21325
|
-
|
|
21326
|
-
KM_REISSUE_GOODS: [{
|
|
21327
|
-
dataIndex: 'skuPropertiesName',
|
|
21328
|
-
title: "\u89C4\u683C\u540D\u79F0",
|
|
21329
|
-
width: 250,
|
|
22239
|
+
}, {
|
|
22240
|
+
dataIndex: 'specId',
|
|
22241
|
+
title: "\u89C4\u683CID",
|
|
22242
|
+
align: 'center',
|
|
22243
|
+
ellipsis: true,
|
|
22244
|
+
width: 150,
|
|
21330
22245
|
render: renderTextEllipsis
|
|
21331
22246
|
}, {
|
|
21332
|
-
dataIndex: '
|
|
21333
|
-
title: "\
|
|
22247
|
+
dataIndex: 'goodsClass',
|
|
22248
|
+
title: "\u8D27\u54C1\u7C7B\u522B",
|
|
21334
22249
|
width: 150,
|
|
21335
22250
|
render: renderTextEllipsis
|
|
21336
22251
|
}, {
|
|
21337
|
-
dataIndex: '
|
|
21338
|
-
title: "\
|
|
22252
|
+
dataIndex: 'code',
|
|
22253
|
+
title: "\u6761\u7801",
|
|
21339
22254
|
width: 150,
|
|
21340
22255
|
render: renderTextEllipsis
|
|
21341
22256
|
}, {
|
|
21342
|
-
dataIndex: '
|
|
22257
|
+
dataIndex: 'mallProductName',
|
|
21343
22258
|
title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
|
|
22259
|
+
align: 'center',
|
|
22260
|
+
ellipsis: true,
|
|
21344
22261
|
width: 150,
|
|
21345
22262
|
render: renderTextEllipsis
|
|
21346
22263
|
}, {
|
|
21347
|
-
dataIndex: '
|
|
21348
|
-
title: "\
|
|
22264
|
+
dataIndex: 'mallProductOutCode',
|
|
22265
|
+
title: "\u5E73\u53F0\u5546\u54C1\u7F16\u7801",
|
|
22266
|
+
align: 'center',
|
|
22267
|
+
ellipsis: true,
|
|
21349
22268
|
width: 150,
|
|
21350
22269
|
render: renderTextEllipsis
|
|
21351
22270
|
}, {
|
|
21352
|
-
dataIndex: '
|
|
21353
|
-
title: "\
|
|
22271
|
+
dataIndex: 'mallProductId',
|
|
22272
|
+
title: "\u5E73\u53F0\u5546\u54C1ID",
|
|
22273
|
+
align: 'center',
|
|
22274
|
+
ellipsis: true,
|
|
21354
22275
|
width: 150,
|
|
21355
22276
|
render: renderTextEllipsis
|
|
21356
22277
|
}, {
|
|
21357
|
-
dataIndex: '
|
|
21358
|
-
title: "\
|
|
22278
|
+
dataIndex: 'mallSkuName',
|
|
22279
|
+
title: "\u5E73\u53F0\u89C4\u683C\u540D\u79F0",
|
|
22280
|
+
align: 'center',
|
|
22281
|
+
ellipsis: true,
|
|
21359
22282
|
width: 150,
|
|
21360
22283
|
render: renderTextEllipsis
|
|
21361
22284
|
}, {
|
|
21362
|
-
dataIndex: '
|
|
22285
|
+
dataIndex: 'mallSkuId',
|
|
21363
22286
|
title: "\u5E73\u53F0\u89C4\u683CID",
|
|
21364
|
-
|
|
21365
|
-
|
|
21366
|
-
|
|
21367
|
-
dataIndex: 'outerSkuId',
|
|
21368
|
-
title: "\u5E73\u53F0\u89C4\u683C\u7F16\u7801",
|
|
21369
|
-
width: 170,
|
|
22287
|
+
align: 'center',
|
|
22288
|
+
ellipsis: true,
|
|
22289
|
+
width: 150,
|
|
21370
22290
|
render: renderTextEllipsis
|
|
21371
22291
|
}, {
|
|
21372
|
-
dataIndex: '
|
|
21373
|
-
title: "\
|
|
22292
|
+
dataIndex: 'sellCount',
|
|
22293
|
+
title: "\u6570\u91CF",
|
|
21374
22294
|
width: 100,
|
|
21375
22295
|
validator: function validator(_rule, value) {
|
|
21376
|
-
var
|
|
21377
|
-
if (((value === null || value === void 0 ? void 0 : value.
|
|
21378
|
-
var
|
|
21379
|
-
var res = typeof
|
|
22296
|
+
var productName = '';
|
|
22297
|
+
if (((value === null || value === void 0 ? void 0 : value.jyReissueGoods) || []).some(function (goods) {
|
|
22298
|
+
var qty = toNum$4(goods === null || goods === void 0 ? void 0 : goods.sellCount);
|
|
22299
|
+
var res = typeof qty === 'number' ? qty < 1 : true;
|
|
21380
22300
|
if (res) {
|
|
21381
|
-
|
|
22301
|
+
productName = (goods === null || goods === void 0 ? void 0 : goods.productName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.productName, "]") : '';
|
|
21382
22302
|
}
|
|
21383
22303
|
return res;
|
|
21384
22304
|
})) {
|
|
21385
|
-
return Promise.reject("".concat(
|
|
22305
|
+
return Promise.reject("".concat(productName, "\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
|
|
21386
22306
|
}
|
|
21387
22307
|
},
|
|
21388
22308
|
render: function render(val, record, index) {
|
|
@@ -21394,76 +22314,88 @@ var getColumns$6 = function getColumns(_ref) {
|
|
|
21394
22314
|
min: 1,
|
|
21395
22315
|
precision: 0,
|
|
21396
22316
|
onChange: function onChange(num) {
|
|
21397
|
-
|
|
22317
|
+
updateDataHandle({
|
|
22318
|
+
sellCount: num,
|
|
22319
|
+
sellTotal: num && isNumberOrNumberString$2(record.sellPrice) ? num * record.sellPrice : null
|
|
22320
|
+
}, index);
|
|
21398
22321
|
}
|
|
21399
22322
|
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
21400
22323
|
}
|
|
21401
22324
|
}, {
|
|
21402
|
-
dataIndex: '
|
|
21403
|
-
title: "\
|
|
21404
|
-
width:
|
|
22325
|
+
dataIndex: 'sellPrice',
|
|
22326
|
+
title: "\u5355\u4EF7",
|
|
22327
|
+
width: 150,
|
|
21405
22328
|
render: function render(val, record, index) {
|
|
21406
22329
|
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
21407
22330
|
style: {
|
|
21408
|
-
width:
|
|
22331
|
+
width: 130
|
|
21409
22332
|
},
|
|
21410
22333
|
value: val,
|
|
21411
|
-
min:
|
|
21412
|
-
precision:
|
|
22334
|
+
min: 0,
|
|
22335
|
+
precision: 2,
|
|
21413
22336
|
onChange: function onChange(num) {
|
|
21414
|
-
|
|
22337
|
+
updateDataHandle({
|
|
22338
|
+
sellPrice: num,
|
|
22339
|
+
sellTotal: num && isNumberOrNumberString$2(record.sellCount) ? num * record.sellCount : null
|
|
22340
|
+
}, index);
|
|
21415
22341
|
}
|
|
21416
22342
|
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
21417
22343
|
}
|
|
21418
22344
|
}, {
|
|
21419
|
-
dataIndex: '
|
|
21420
|
-
title: "\u5546\u54C1\
|
|
21421
|
-
width: 150
|
|
21422
|
-
render: function render(val) {
|
|
21423
|
-
return val || val === 0 ? Number(val).toFixed(2) : '';
|
|
21424
|
-
}
|
|
22345
|
+
dataIndex: 'mallSellingPrice',
|
|
22346
|
+
title: "\u5E73\u53F0\u5546\u54C1\u4EF7\u683C",
|
|
22347
|
+
width: 150
|
|
21425
22348
|
}, {
|
|
21426
|
-
dataIndex: '
|
|
21427
|
-
title: "\
|
|
22349
|
+
dataIndex: 'sellTotal',
|
|
22350
|
+
title: "\u91D1\u989D",
|
|
22351
|
+
width: 150
|
|
22352
|
+
}, {
|
|
22353
|
+
dataIndex: 'bfit',
|
|
22354
|
+
title: "\u662F\u5426\u7EC4\u5408\u88C5",
|
|
21428
22355
|
width: 150,
|
|
21429
22356
|
render: function render(val, record, index) {
|
|
21430
|
-
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.
|
|
21431
|
-
style: {
|
|
21432
|
-
width: 130
|
|
21433
|
-
},
|
|
22357
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
21434
22358
|
value: val,
|
|
21435
|
-
|
|
21436
|
-
|
|
21437
|
-
|
|
21438
|
-
|
|
21439
|
-
|
|
21440
|
-
|
|
22359
|
+
onChange: function onChange(value) {
|
|
22360
|
+
updateHandle(value, index, 'bfit');
|
|
22361
|
+
},
|
|
22362
|
+
options: [{
|
|
22363
|
+
label: '是',
|
|
22364
|
+
value: 'True'
|
|
22365
|
+
}, {
|
|
22366
|
+
label: '否',
|
|
22367
|
+
value: 'False'
|
|
22368
|
+
}]
|
|
22369
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val === 'True' ? '是' : '否');
|
|
21441
22370
|
}
|
|
21442
22371
|
}, {
|
|
21443
|
-
dataIndex: '
|
|
21444
|
-
title: "\u5546\u54C1\
|
|
22372
|
+
dataIndex: 'combinationName',
|
|
22373
|
+
title: "\u7EC4\u5408\u5546\u54C1\u540D\u79F0",
|
|
21445
22374
|
width: 150,
|
|
21446
22375
|
render: renderTextEllipsis
|
|
21447
22376
|
}, {
|
|
21448
|
-
dataIndex: '
|
|
21449
|
-
title: "\
|
|
22377
|
+
dataIndex: 'combinationCode',
|
|
22378
|
+
title: "\u7EC4\u5408\u5546\u54C1\u7F16\u7801",
|
|
21450
22379
|
width: 150,
|
|
21451
22380
|
render: renderTextEllipsis
|
|
21452
22381
|
}, {
|
|
21453
|
-
dataIndex: '
|
|
21454
|
-
title: "\
|
|
22382
|
+
dataIndex: 'gift',
|
|
22383
|
+
title: "\u662F\u5426\u8D60\u54C1",
|
|
21455
22384
|
width: 150,
|
|
21456
|
-
render:
|
|
21457
|
-
|
|
21458
|
-
|
|
21459
|
-
|
|
21460
|
-
|
|
21461
|
-
|
|
21462
|
-
|
|
21463
|
-
|
|
21464
|
-
|
|
21465
|
-
|
|
21466
|
-
|
|
22385
|
+
render: function render(val, record, index) {
|
|
22386
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
22387
|
+
value: val,
|
|
22388
|
+
onChange: function onChange(value) {
|
|
22389
|
+
updateHandle(value, index, 'gift');
|
|
22390
|
+
},
|
|
22391
|
+
options: [{
|
|
22392
|
+
label: '是',
|
|
22393
|
+
value: '1'
|
|
22394
|
+
}, {
|
|
22395
|
+
label: '否',
|
|
22396
|
+
value: '0'
|
|
22397
|
+
}]
|
|
22398
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val === '1' ? '是' : '否');
|
|
21467
22399
|
}
|
|
21468
22400
|
}].map(function (item) {
|
|
21469
22401
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
@@ -21474,12 +22406,54 @@ var getColumns$6 = function getColumns(_ref) {
|
|
|
21474
22406
|
};
|
|
21475
22407
|
};
|
|
21476
22408
|
|
|
21477
|
-
var
|
|
22409
|
+
var getColumns$8 = function getColumns(_ref) {
|
|
22410
|
+
var _ref$text = _ref.text,
|
|
22411
|
+
disabled = _ref.disabled,
|
|
22412
|
+
updateHandle = _ref.updateHandle,
|
|
22413
|
+
updateDataHandle = _ref.updateDataHandle;
|
|
22414
|
+
return {
|
|
22415
|
+
//[SKX]商品信息(ON)
|
|
22416
|
+
SKX_GOODS: [{
|
|
22417
|
+
dataIndex: 'skuEcode',
|
|
22418
|
+
title: "[SKX]\u53D1\u8D27\u5355\u660E\u7EC6-skuEcode",
|
|
22419
|
+
width: 250
|
|
22420
|
+
}, {
|
|
22421
|
+
dataIndex: 'subOrderId',
|
|
22422
|
+
title: "[SKX]\u53D1\u8D27\u5355-\u5B50\u8BA2\u5355\u53F7",
|
|
22423
|
+
width: 300
|
|
22424
|
+
}, {
|
|
22425
|
+
dataIndex: 'onBillNo',
|
|
22426
|
+
title: "[SKX]ON\u51FA\u5E93\u901A\u77E5\u5355\u53F7",
|
|
22427
|
+
width: 200
|
|
22428
|
+
}].map(function (item) {
|
|
22429
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
22430
|
+
align: 'center',
|
|
22431
|
+
ellipsis: true
|
|
22432
|
+
});
|
|
22433
|
+
}),
|
|
22434
|
+
//[SKX]退货商品信息(TH)
|
|
22435
|
+
SKX_RETURN_GOODS: [{
|
|
22436
|
+
dataIndex: 'returnSkuEcode',
|
|
22437
|
+
title: "[SKX]\u9000\u8D27\u5355\u660E\u7EC6-returnSkuEcode",
|
|
22438
|
+
width: 300
|
|
22439
|
+
}, {
|
|
22440
|
+
dataIndex: 'returnSubOrderId',
|
|
22441
|
+
title: "[SKX]\u9000\u8D27\u5355-\u5B50\u8BA2\u5355\u53F7",
|
|
22442
|
+
width: 300
|
|
22443
|
+
}, {
|
|
22444
|
+
dataIndex: 'returnBillNo',
|
|
22445
|
+
title: "[SKX]TH\u9000\u6362\u8D27\u5355\u53F7",
|
|
22446
|
+
width: 200
|
|
22447
|
+
}]
|
|
22448
|
+
};
|
|
22449
|
+
};
|
|
22450
|
+
|
|
22451
|
+
var isNumberOrNumberString$3 = function isNumberOrNumberString(value) {
|
|
21478
22452
|
if (typeof value === 'number') return true;
|
|
21479
22453
|
if (typeof value === 'string' && !isNaN(Number(value)) && value.trim() !== '') return true;
|
|
21480
22454
|
return false;
|
|
21481
22455
|
};
|
|
21482
|
-
function toNum$
|
|
22456
|
+
function toNum$5(value) {
|
|
21483
22457
|
if (typeof value === 'string') {
|
|
21484
22458
|
return value ? +value : void 0;
|
|
21485
22459
|
}
|
|
@@ -21488,44 +22462,44 @@ function toNum$4(value) {
|
|
|
21488
22462
|
}
|
|
21489
22463
|
return void 0;
|
|
21490
22464
|
}
|
|
21491
|
-
var getColumns$
|
|
22465
|
+
var getColumns$9 = function getColumns(_ref) {
|
|
21492
22466
|
var _ref$text = _ref.text,
|
|
21493
22467
|
disabled = _ref.disabled,
|
|
21494
22468
|
updateHandle = _ref.updateHandle,
|
|
21495
22469
|
updateDataHandle = _ref.updateDataHandle;
|
|
21496
22470
|
return {
|
|
21497
|
-
|
|
21498
|
-
|
|
21499
|
-
dataIndex: '
|
|
21500
|
-
title: "\
|
|
22471
|
+
//吉客云商品信息
|
|
22472
|
+
JKY_GOODS: [{
|
|
22473
|
+
dataIndex: 'goodsNo',
|
|
22474
|
+
title: "\u8D27\u54C1\u7F16\u53F7",
|
|
21501
22475
|
align: 'center',
|
|
21502
22476
|
ellipsis: true,
|
|
21503
22477
|
width: 150,
|
|
21504
22478
|
render: renderTextEllipsis
|
|
21505
22479
|
}, {
|
|
21506
|
-
dataIndex: '
|
|
21507
|
-
title: "\
|
|
22480
|
+
dataIndex: 'goodsName',
|
|
22481
|
+
title: "\u8D27\u54C1\u540D\u79F0",
|
|
21508
22482
|
align: 'center',
|
|
21509
22483
|
ellipsis: true,
|
|
21510
22484
|
width: 150,
|
|
21511
22485
|
render: renderTextEllipsis
|
|
21512
22486
|
}, {
|
|
21513
|
-
dataIndex: '
|
|
21514
|
-
title: "\
|
|
22487
|
+
dataIndex: 'goodsId',
|
|
22488
|
+
title: "\u8D27\u54C1ID",
|
|
21515
22489
|
align: 'center',
|
|
21516
22490
|
ellipsis: true,
|
|
21517
22491
|
width: 150,
|
|
21518
22492
|
render: renderTextEllipsis
|
|
21519
22493
|
}, {
|
|
21520
|
-
dataIndex: '
|
|
21521
|
-
title: "\
|
|
22494
|
+
dataIndex: 'barcode',
|
|
22495
|
+
title: "\u8D27\u54C1\u6761\u7801",
|
|
21522
22496
|
align: 'center',
|
|
21523
22497
|
ellipsis: true,
|
|
21524
22498
|
width: 150,
|
|
21525
22499
|
render: renderTextEllipsis
|
|
21526
22500
|
}, {
|
|
21527
|
-
dataIndex: '
|
|
21528
|
-
title: "\
|
|
22501
|
+
dataIndex: 'specName',
|
|
22502
|
+
title: "\u89C4\u683C\u540D\u79F0",
|
|
21529
22503
|
align: 'center',
|
|
21530
22504
|
ellipsis: true,
|
|
21531
22505
|
width: 150,
|
|
@@ -21537,82 +22511,18 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
21537
22511
|
ellipsis: true,
|
|
21538
22512
|
width: 150,
|
|
21539
22513
|
render: renderTextEllipsis
|
|
21540
|
-
},
|
|
21541
|
-
// {
|
|
21542
|
-
// dataIndex: 'goodsName',
|
|
21543
|
-
// title: `货品名称`,
|
|
21544
|
-
// width: 250,
|
|
21545
|
-
// },
|
|
21546
|
-
// {
|
|
21547
|
-
// dataIndex: 'goodsCode',
|
|
21548
|
-
// title: `货品编号`,
|
|
21549
|
-
// width: 200,
|
|
21550
|
-
// },
|
|
21551
|
-
// {
|
|
21552
|
-
// dataIndex: 'goodsId',
|
|
21553
|
-
// title: `货品ID`,
|
|
21554
|
-
// width: 150,
|
|
21555
|
-
// },
|
|
21556
|
-
{
|
|
21557
|
-
dataIndex: 'goodsClass',
|
|
21558
|
-
title: "\u8D27\u54C1\u7C7B\u522B",
|
|
21559
|
-
width: 150,
|
|
21560
|
-
render: renderTextEllipsis
|
|
21561
|
-
}, {
|
|
21562
|
-
dataIndex: 'code',
|
|
21563
|
-
title: "\u6761\u7801",
|
|
21564
|
-
width: 150,
|
|
21565
|
-
render: renderTextEllipsis
|
|
21566
|
-
},
|
|
21567
|
-
// {
|
|
21568
|
-
// dataIndex: 'specName',
|
|
21569
|
-
// title: `规格名称`,
|
|
21570
|
-
// align: 'center',
|
|
21571
|
-
// ellipsis: true,
|
|
21572
|
-
// width: 200,
|
|
21573
|
-
// },
|
|
21574
|
-
// {
|
|
21575
|
-
// dataIndex: 'specCode',
|
|
21576
|
-
// title: `规格编号`,
|
|
21577
|
-
// align: 'center',
|
|
21578
|
-
// ellipsis: true,
|
|
21579
|
-
// width: 150,
|
|
21580
|
-
// },
|
|
21581
|
-
{
|
|
21582
|
-
dataIndex: 'mallProductName',
|
|
21583
|
-
title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
|
|
21584
|
-
align: 'center',
|
|
21585
|
-
ellipsis: true,
|
|
21586
|
-
width: 250,
|
|
21587
|
-
render: renderTextEllipsis
|
|
21588
22514
|
}, {
|
|
21589
|
-
dataIndex: '
|
|
21590
|
-
title: "\
|
|
22515
|
+
dataIndex: 'skuImgUrl',
|
|
22516
|
+
title: "\u89C4\u683C\u56FE\u7247",
|
|
21591
22517
|
align: 'center',
|
|
21592
22518
|
ellipsis: true,
|
|
21593
22519
|
width: 150,
|
|
21594
|
-
render:
|
|
21595
|
-
|
|
21596
|
-
|
|
21597
|
-
|
|
21598
|
-
|
|
21599
|
-
|
|
21600
|
-
width: 250,
|
|
21601
|
-
render: renderTextEllipsis
|
|
21602
|
-
}, {
|
|
21603
|
-
dataIndex: 'mallSkuName',
|
|
21604
|
-
title: "\u5E73\u53F0\u89C4\u683C\u540D\u79F0",
|
|
21605
|
-
align: 'center',
|
|
21606
|
-
ellipsis: true,
|
|
21607
|
-
width: 250,
|
|
21608
|
-
render: renderTextEllipsis
|
|
21609
|
-
}, {
|
|
21610
|
-
dataIndex: 'mallSkuId',
|
|
21611
|
-
title: "\u5E73\u53F0\u89C4\u683CID",
|
|
21612
|
-
align: 'center',
|
|
21613
|
-
ellipsis: true,
|
|
21614
|
-
width: 250,
|
|
21615
|
-
render: renderTextEllipsis
|
|
22520
|
+
render: function render(val) {
|
|
22521
|
+
return /*#__PURE__*/React__default['default'].createElement(ApaasImage, {
|
|
22522
|
+
width: 30,
|
|
22523
|
+
src: val
|
|
22524
|
+
});
|
|
22525
|
+
}
|
|
21616
22526
|
}, {
|
|
21617
22527
|
dataIndex: 'sellCount',
|
|
21618
22528
|
title: "\u6570\u91CF",
|
|
@@ -21628,11 +22538,16 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
21628
22538
|
onChange: function onChange(num) {
|
|
21629
22539
|
updateDataHandle({
|
|
21630
22540
|
sellCount: num,
|
|
21631
|
-
sellTotal: num && isNumberOrNumberString$
|
|
22541
|
+
sellTotal: num && isNumberOrNumberString$3(record.sellPrice) ? num * record.sellPrice : null
|
|
21632
22542
|
}, index);
|
|
21633
22543
|
}
|
|
21634
22544
|
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
21635
22545
|
}
|
|
22546
|
+
}, {
|
|
22547
|
+
dataIndex: 'actualSendCount',
|
|
22548
|
+
title: "\u5B9E\u53D1\u6570\u91CF",
|
|
22549
|
+
width: 150,
|
|
22550
|
+
render: renderTextEllipsis
|
|
21636
22551
|
}, {
|
|
21637
22552
|
dataIndex: 'sellPrice',
|
|
21638
22553
|
title: "\u5355\u4EF7",
|
|
@@ -21648,30 +22563,57 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
21648
22563
|
onChange: function onChange(num) {
|
|
21649
22564
|
updateDataHandle({
|
|
21650
22565
|
sellPrice: num,
|
|
21651
|
-
sellTotal: num && isNumberOrNumberString$
|
|
22566
|
+
sellTotal: num && isNumberOrNumberString$3(record.sellCount) ? num * record.sellCount : null
|
|
21652
22567
|
}, index);
|
|
21653
22568
|
}
|
|
21654
22569
|
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
21655
22570
|
}
|
|
21656
22571
|
}, {
|
|
21657
|
-
dataIndex: '
|
|
21658
|
-
title: "\
|
|
22572
|
+
dataIndex: 'sellTotal',
|
|
22573
|
+
title: "\u603B\u91D1\u989D",
|
|
21659
22574
|
width: 150
|
|
21660
22575
|
}, {
|
|
21661
|
-
dataIndex: '
|
|
21662
|
-
title: "\u91D1\u989D",
|
|
22576
|
+
dataIndex: 'discountTotal',
|
|
22577
|
+
title: "\u62B5\u6263\u91D1\u989D",
|
|
21663
22578
|
width: 150
|
|
21664
22579
|
}, {
|
|
21665
|
-
dataIndex: '
|
|
21666
|
-
title: "\
|
|
22580
|
+
dataIndex: 'shareFavourableFee',
|
|
22581
|
+
title: "\u5206\u644A\u91D1\u989D",
|
|
21667
22582
|
width: 150
|
|
21668
22583
|
}, {
|
|
21669
|
-
dataIndex: '
|
|
21670
|
-
title: "\u5206\u644A\
|
|
22584
|
+
dataIndex: 'shareFavourableAfterFee',
|
|
22585
|
+
title: "\u5206\u644A\u540E\u91D1\u989D",
|
|
21671
22586
|
width: 150
|
|
21672
22587
|
}, {
|
|
21673
|
-
dataIndex: '
|
|
21674
|
-
title: "\
|
|
22588
|
+
dataIndex: 'customerPrice',
|
|
22589
|
+
title: "\u7EC8\u7AEF\u9500\u552E\u5355\u4EF7",
|
|
22590
|
+
width: 150
|
|
22591
|
+
}, {
|
|
22592
|
+
dataIndex: 'customerTotal',
|
|
22593
|
+
title: "\u7EC8\u7AEF\u9500\u552E\u91D1\u989D",
|
|
22594
|
+
width: 150
|
|
22595
|
+
}, {
|
|
22596
|
+
dataIndex: 'divideSellTotal',
|
|
22597
|
+
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
22598
|
+
width: 150,
|
|
22599
|
+
render: function render(val, record, index) {
|
|
22600
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
22601
|
+
style: {
|
|
22602
|
+
width: 130
|
|
22603
|
+
},
|
|
22604
|
+
value: val,
|
|
22605
|
+
min: 0,
|
|
22606
|
+
precision: 2,
|
|
22607
|
+
onChange: function onChange(num) {
|
|
22608
|
+
updateDataHandle({
|
|
22609
|
+
divideSellTotal: num
|
|
22610
|
+
}, index);
|
|
22611
|
+
}
|
|
22612
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
22613
|
+
}
|
|
22614
|
+
}, {
|
|
22615
|
+
dataIndex: 'isGift',
|
|
22616
|
+
title: "\u662F\u5426\u8D60\u54C1",
|
|
21675
22617
|
width: 150,
|
|
21676
22618
|
render: function render(val, record, index) {
|
|
21677
22619
|
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
@@ -21683,30 +22625,45 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
21683
22625
|
},
|
|
21684
22626
|
value: val,
|
|
21685
22627
|
onChange: function onChange(value) {
|
|
21686
|
-
updateHandle(value, index, '
|
|
22628
|
+
updateHandle(value, index, 'isGift');
|
|
21687
22629
|
},
|
|
21688
22630
|
options: [{
|
|
21689
22631
|
label: '是',
|
|
21690
|
-
value:
|
|
22632
|
+
value: 1
|
|
21691
22633
|
}, {
|
|
21692
22634
|
label: '否',
|
|
21693
|
-
value:
|
|
22635
|
+
value: 0
|
|
21694
22636
|
}]
|
|
21695
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val
|
|
22637
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val == 1 ? '是' : '否');
|
|
21696
22638
|
}
|
|
21697
22639
|
}, {
|
|
21698
|
-
dataIndex: '
|
|
21699
|
-
title: "\u7EC4\u5408\
|
|
21700
|
-
width: 150,
|
|
21701
|
-
render: renderTextEllipsis
|
|
21702
|
-
}, {
|
|
21703
|
-
dataIndex: 'combinationCode',
|
|
21704
|
-
title: "\u7EC4\u5408\u5546\u54C1\u7F16\u7801",
|
|
22640
|
+
dataIndex: 'isFit',
|
|
22641
|
+
title: "\u662F\u5426\u7EC4\u5408\u88C5",
|
|
21705
22642
|
width: 150,
|
|
21706
|
-
render:
|
|
22643
|
+
render: function render(val, record, index) {
|
|
22644
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
22645
|
+
dropdownStyle: {
|
|
22646
|
+
zIndex: 2000
|
|
22647
|
+
},
|
|
22648
|
+
getPopupContainer: function getPopupContainer() {
|
|
22649
|
+
return document.body;
|
|
22650
|
+
},
|
|
22651
|
+
value: val,
|
|
22652
|
+
onChange: function onChange(value) {
|
|
22653
|
+
updateHandle(value, index, 'isFit');
|
|
22654
|
+
},
|
|
22655
|
+
options: [{
|
|
22656
|
+
label: '是',
|
|
22657
|
+
value: 1
|
|
22658
|
+
}, {
|
|
22659
|
+
label: '否',
|
|
22660
|
+
value: 0
|
|
22661
|
+
}]
|
|
22662
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val == 1 ? '是' : '否');
|
|
22663
|
+
}
|
|
21707
22664
|
}, {
|
|
21708
|
-
dataIndex: '
|
|
21709
|
-
title: "\u662F\u5426\
|
|
22665
|
+
dataIndex: 'isPresell',
|
|
22666
|
+
title: "\u662F\u5426\u9884\u552E\u8D27\u54C1",
|
|
21710
22667
|
width: 150,
|
|
21711
22668
|
render: function render(val, record, index) {
|
|
21712
22669
|
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
@@ -21718,7 +22675,7 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
21718
22675
|
},
|
|
21719
22676
|
value: val,
|
|
21720
22677
|
onChange: function onChange(value) {
|
|
21721
|
-
updateHandle(value, index, '
|
|
22678
|
+
updateHandle(value, index, 'isPresell');
|
|
21722
22679
|
},
|
|
21723
22680
|
options: [{
|
|
21724
22681
|
label: '是',
|
|
@@ -21727,121 +22684,175 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
21727
22684
|
label: '否',
|
|
21728
22685
|
value: '0'
|
|
21729
22686
|
}]
|
|
21730
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val
|
|
22687
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val == '1' ? '是' : '否');
|
|
21731
22688
|
}
|
|
21732
|
-
}
|
|
21733
|
-
|
|
21734
|
-
|
|
21735
|
-
ellipsis: true
|
|
21736
|
-
});
|
|
21737
|
-
}),
|
|
21738
|
-
// 巨益补发商品信息
|
|
21739
|
-
JY_REISSUE_GOODS: [{
|
|
21740
|
-
dataIndex: 'productName',
|
|
21741
|
-
title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
|
|
22689
|
+
}, {
|
|
22690
|
+
dataIndex: 'brandName',
|
|
22691
|
+
title: "\u54C1\u724C",
|
|
21742
22692
|
align: 'center',
|
|
21743
22693
|
ellipsis: true,
|
|
21744
|
-
width:
|
|
22694
|
+
width: 200,
|
|
21745
22695
|
render: renderTextEllipsis
|
|
21746
22696
|
}, {
|
|
21747
|
-
dataIndex: '
|
|
21748
|
-
title: "\
|
|
22697
|
+
dataIndex: 'cateName',
|
|
22698
|
+
title: "\u8D27\u54C1\u7C7B\u522B",
|
|
21749
22699
|
align: 'center',
|
|
21750
22700
|
ellipsis: true,
|
|
21751
22701
|
width: 150,
|
|
21752
22702
|
render: renderTextEllipsis
|
|
21753
22703
|
}, {
|
|
21754
|
-
dataIndex: '
|
|
21755
|
-
title: "\
|
|
22704
|
+
dataIndex: 'goodsTags',
|
|
22705
|
+
title: "\u8D27\u54C1\u6807\u7B7E",
|
|
21756
22706
|
align: 'center',
|
|
21757
22707
|
ellipsis: true,
|
|
21758
|
-
width:
|
|
22708
|
+
width: 250,
|
|
21759
22709
|
render: renderTextEllipsis
|
|
21760
22710
|
}, {
|
|
21761
|
-
dataIndex: '
|
|
21762
|
-
title: "\
|
|
22711
|
+
dataIndex: 'goodsMemo',
|
|
22712
|
+
title: "\u8D27\u54C1\u5907\u6CE8",
|
|
21763
22713
|
align: 'center',
|
|
21764
22714
|
ellipsis: true,
|
|
21765
|
-
width:
|
|
22715
|
+
width: 250,
|
|
21766
22716
|
render: renderTextEllipsis
|
|
21767
22717
|
}, {
|
|
21768
|
-
dataIndex: '
|
|
21769
|
-
title: "\
|
|
22718
|
+
dataIndex: 'tradeGoodsNo',
|
|
22719
|
+
title: "\u4EA4\u6613\u8D27\u54C1\u7F16\u53F7",
|
|
21770
22720
|
align: 'center',
|
|
21771
22721
|
ellipsis: true,
|
|
21772
|
-
width:
|
|
22722
|
+
width: 250,
|
|
21773
22723
|
render: renderTextEllipsis
|
|
21774
22724
|
}, {
|
|
21775
|
-
dataIndex: '
|
|
21776
|
-
title: "\
|
|
21777
|
-
align: 'center',
|
|
22725
|
+
dataIndex: 'tradeGoodsName',
|
|
22726
|
+
title: "\u4EA4\u6613\u8D27\u54C1\u540D\u79F0",
|
|
21778
22727
|
ellipsis: true,
|
|
21779
|
-
width:
|
|
22728
|
+
width: 250,
|
|
21780
22729
|
render: renderTextEllipsis
|
|
21781
22730
|
}, {
|
|
21782
|
-
dataIndex: '
|
|
21783
|
-
title: "\
|
|
21784
|
-
|
|
22731
|
+
dataIndex: 'tradeGoodsSpec',
|
|
22732
|
+
title: "\u4EA4\u6613\u89C4\u683C\u540D\u79F0",
|
|
22733
|
+
ellipsis: true,
|
|
22734
|
+
width: 250,
|
|
21785
22735
|
render: renderTextEllipsis
|
|
21786
22736
|
}, {
|
|
21787
|
-
dataIndex: '
|
|
21788
|
-
title: "\
|
|
22737
|
+
dataIndex: 'sourceSubtradeNo',
|
|
22738
|
+
title: "\u7F51\u5E97\u5B50\u8BA2\u5355\u53F7",
|
|
22739
|
+
ellipsis: true,
|
|
22740
|
+
width: 250,
|
|
22741
|
+
render: renderTextEllipsis
|
|
22742
|
+
}, {
|
|
22743
|
+
dataIndex: 'platGoodsId',
|
|
22744
|
+
title: "\u5E73\u53F0\u5546\u54C1ID",
|
|
22745
|
+
ellipsis: true,
|
|
22746
|
+
width: 250,
|
|
22747
|
+
render: renderTextEllipsis
|
|
22748
|
+
}, {
|
|
22749
|
+
dataIndex: 'subTradeId',
|
|
22750
|
+
title: "\u5546\u54C1\u660E\u7EC6ID",
|
|
22751
|
+
ellipsis: true,
|
|
22752
|
+
width: 250,
|
|
22753
|
+
render: renderTextEllipsis
|
|
22754
|
+
}, {
|
|
22755
|
+
dataIndex: 'batchNo',
|
|
22756
|
+
title: "\u6279\u6B21\u53F7",
|
|
22757
|
+
ellipsis: true,
|
|
22758
|
+
width: 250,
|
|
22759
|
+
render: renderTextEllipsis
|
|
22760
|
+
}, {
|
|
22761
|
+
dataIndex: 'sendCount',
|
|
22762
|
+
title: "\u6279\u6B21\u6570\u91CF",
|
|
22763
|
+
ellipsis: true,
|
|
22764
|
+
width: 250,
|
|
22765
|
+
render: renderTextEllipsis
|
|
22766
|
+
}, {
|
|
22767
|
+
dataIndex: 'productDate',
|
|
22768
|
+
title: "\u751F\u4EA7\u65E5\u671F",
|
|
22769
|
+
ellipsis: true,
|
|
22770
|
+
width: 250,
|
|
22771
|
+
render: renderTextEllipsis
|
|
22772
|
+
}, {
|
|
22773
|
+
dataIndex: 'expireDate',
|
|
22774
|
+
title: "\u5230\u671F\u65E5\u671F",
|
|
22775
|
+
ellipsis: true,
|
|
22776
|
+
width: 250,
|
|
22777
|
+
render: renderTextEllipsis
|
|
22778
|
+
}].map(function (item) {
|
|
22779
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
22780
|
+
align: 'center',
|
|
22781
|
+
ellipsis: true
|
|
22782
|
+
});
|
|
22783
|
+
}),
|
|
22784
|
+
// 吉客云补发商品信息
|
|
22785
|
+
JKY_REISSUE_GOODS: [{
|
|
22786
|
+
dataIndex: 'goodsNo',
|
|
22787
|
+
title: "\u8D27\u54C1\u7F16\u53F7",
|
|
22788
|
+
align: 'center',
|
|
22789
|
+
ellipsis: true,
|
|
21789
22790
|
width: 150,
|
|
21790
22791
|
render: renderTextEllipsis
|
|
21791
22792
|
}, {
|
|
21792
|
-
dataIndex: '
|
|
21793
|
-
title: "\
|
|
22793
|
+
dataIndex: 'goodsName',
|
|
22794
|
+
title: "\u8D27\u54C1\u540D\u79F0",
|
|
21794
22795
|
align: 'center',
|
|
21795
22796
|
ellipsis: true,
|
|
21796
22797
|
width: 150,
|
|
21797
22798
|
render: renderTextEllipsis
|
|
21798
22799
|
}, {
|
|
21799
|
-
dataIndex: '
|
|
21800
|
-
title: "\
|
|
22800
|
+
dataIndex: 'goodsId',
|
|
22801
|
+
title: "\u8D27\u54C1ID",
|
|
21801
22802
|
align: 'center',
|
|
21802
22803
|
ellipsis: true,
|
|
21803
22804
|
width: 150,
|
|
21804
22805
|
render: renderTextEllipsis
|
|
21805
22806
|
}, {
|
|
21806
|
-
dataIndex: '
|
|
21807
|
-
title: "\
|
|
22807
|
+
dataIndex: 'barcode',
|
|
22808
|
+
title: "\u8D27\u54C1\u6761\u7801",
|
|
21808
22809
|
align: 'center',
|
|
21809
22810
|
ellipsis: true,
|
|
21810
22811
|
width: 150,
|
|
21811
22812
|
render: renderTextEllipsis
|
|
21812
22813
|
}, {
|
|
21813
|
-
dataIndex: '
|
|
21814
|
-
title: "\
|
|
22814
|
+
dataIndex: 'specName',
|
|
22815
|
+
title: "\u89C4\u683C\u540D\u79F0",
|
|
21815
22816
|
align: 'center',
|
|
21816
22817
|
ellipsis: true,
|
|
21817
22818
|
width: 150,
|
|
21818
22819
|
render: renderTextEllipsis
|
|
21819
22820
|
}, {
|
|
21820
|
-
dataIndex: '
|
|
21821
|
-
title: "\
|
|
22821
|
+
dataIndex: 'specId',
|
|
22822
|
+
title: "\u89C4\u683CID",
|
|
21822
22823
|
align: 'center',
|
|
21823
22824
|
ellipsis: true,
|
|
21824
22825
|
width: 150,
|
|
21825
22826
|
render: renderTextEllipsis
|
|
22827
|
+
}, {
|
|
22828
|
+
dataIndex: 'skuImgUrl',
|
|
22829
|
+
title: "\u89C4\u683C\u56FE\u7247",
|
|
22830
|
+
width: 150,
|
|
22831
|
+
render: function render(val) {
|
|
22832
|
+
return /*#__PURE__*/React__default['default'].createElement(ApaasImage, {
|
|
22833
|
+
width: 30,
|
|
22834
|
+
src: val
|
|
22835
|
+
});
|
|
22836
|
+
}
|
|
21826
22837
|
}, {
|
|
21827
22838
|
dataIndex: 'sellCount',
|
|
21828
|
-
title: "\u6570\u91CF",
|
|
22839
|
+
title: "\u53D1\u8D27\u6570\u91CF",
|
|
21829
22840
|
width: 100,
|
|
21830
22841
|
validator: function validator(_rule, value) {
|
|
21831
|
-
var
|
|
21832
|
-
if (((value === null || value === void 0 ? void 0 : value.
|
|
21833
|
-
var qty = toNum$
|
|
22842
|
+
var goodsName = '';
|
|
22843
|
+
if (((value === null || value === void 0 ? void 0 : value.jkyReissueGoods) || []).some(function (goods) {
|
|
22844
|
+
var qty = toNum$5(goods === null || goods === void 0 ? void 0 : goods.sellCount);
|
|
21834
22845
|
var res = typeof qty === 'number' ? qty < 1 : true;
|
|
21835
22846
|
if (res) {
|
|
21836
|
-
|
|
22847
|
+
goodsName = (goods === null || goods === void 0 ? void 0 : goods.goodsName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodsName, "]") : '';
|
|
21837
22848
|
}
|
|
21838
22849
|
return res;
|
|
21839
22850
|
})) {
|
|
21840
|
-
return Promise.reject("".concat(
|
|
22851
|
+
return Promise.reject("".concat(goodsName, "\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
|
|
21841
22852
|
}
|
|
21842
22853
|
},
|
|
21843
22854
|
render: function render(val, record, index) {
|
|
21844
|
-
return
|
|
22855
|
+
return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
21845
22856
|
style: {
|
|
21846
22857
|
width: 70
|
|
21847
22858
|
},
|
|
@@ -21851,7 +22862,7 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
21851
22862
|
onChange: function onChange(num) {
|
|
21852
22863
|
updateDataHandle({
|
|
21853
22864
|
sellCount: num,
|
|
21854
|
-
sellTotal: num && isNumberOrNumberString$
|
|
22865
|
+
sellTotal: num && isNumberOrNumberString$3(record.sellPrice) ? num * record.sellPrice : null
|
|
21855
22866
|
}, index);
|
|
21856
22867
|
}
|
|
21857
22868
|
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
@@ -21861,7 +22872,7 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
21861
22872
|
title: "\u5355\u4EF7",
|
|
21862
22873
|
width: 150,
|
|
21863
22874
|
render: function render(val, record, index) {
|
|
21864
|
-
return
|
|
22875
|
+
return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
21865
22876
|
style: {
|
|
21866
22877
|
width: 130
|
|
21867
22878
|
},
|
|
@@ -21871,119 +22882,90 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
21871
22882
|
onChange: function onChange(num) {
|
|
21872
22883
|
updateDataHandle({
|
|
21873
22884
|
sellPrice: num,
|
|
21874
|
-
sellTotal: num && isNumberOrNumberString$
|
|
22885
|
+
sellTotal: num && isNumberOrNumberString$3(record.sellCount) ? num * record.sellCount : null
|
|
21875
22886
|
}, index);
|
|
21876
22887
|
}
|
|
21877
22888
|
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
21878
22889
|
}
|
|
21879
|
-
}, {
|
|
21880
|
-
dataIndex: 'mallSellingPrice',
|
|
21881
|
-
title: "\u5E73\u53F0\u5546\u54C1\u4EF7\u683C",
|
|
21882
|
-
width: 150
|
|
21883
22890
|
}, {
|
|
21884
22891
|
dataIndex: 'sellTotal',
|
|
21885
|
-
title: "\u91D1\u989D",
|
|
21886
|
-
width: 150
|
|
22892
|
+
title: "\u603B\u91D1\u989D",
|
|
22893
|
+
width: 150,
|
|
22894
|
+
render: function render(val, record, index) {
|
|
22895
|
+
if ((typeof record.sellCount === 'number' || record.sellCount) && (typeof record.sellPrice === 'number' || record.sellPrice)) {
|
|
22896
|
+
return record.sellCount * record.sellPrice;
|
|
22897
|
+
}
|
|
22898
|
+
return '';
|
|
22899
|
+
}
|
|
21887
22900
|
}, {
|
|
21888
|
-
dataIndex: '
|
|
21889
|
-
title: "\
|
|
22901
|
+
dataIndex: 'reason',
|
|
22902
|
+
title: "\u9000\u6362\u539F\u56E0",
|
|
22903
|
+
width: 250,
|
|
22904
|
+
render: function render(val, record, index) {
|
|
22905
|
+
return !disabled ? /*#__PURE__*/React__default['default'].createElement(ApaasInput, {
|
|
22906
|
+
onChange: function onChange(e) {
|
|
22907
|
+
updateHandle(e.target.value, index, 'reason');
|
|
22908
|
+
}
|
|
22909
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
22910
|
+
}
|
|
22911
|
+
}, {
|
|
22912
|
+
dataIndex: 'isGift',
|
|
22913
|
+
title: "\u662F\u5426\u8D60\u54C1",
|
|
21890
22914
|
width: 150,
|
|
21891
22915
|
render: function render(val, record, index) {
|
|
21892
|
-
return
|
|
22916
|
+
return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
21893
22917
|
value: val,
|
|
21894
22918
|
onChange: function onChange(value) {
|
|
21895
|
-
updateHandle(value, index, '
|
|
22919
|
+
updateHandle(value, index, 'isGift');
|
|
21896
22920
|
},
|
|
21897
22921
|
options: [{
|
|
21898
22922
|
label: '是',
|
|
21899
|
-
value:
|
|
22923
|
+
value: 1
|
|
21900
22924
|
}, {
|
|
21901
22925
|
label: '否',
|
|
21902
|
-
value:
|
|
22926
|
+
value: 0
|
|
21903
22927
|
}]
|
|
21904
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val ===
|
|
22928
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val === 1 ? '是' : '否');
|
|
21905
22929
|
}
|
|
21906
22930
|
}, {
|
|
21907
|
-
dataIndex: '
|
|
21908
|
-
title: "\u7EC4\u5408\
|
|
21909
|
-
width: 150,
|
|
21910
|
-
render: renderTextEllipsis
|
|
21911
|
-
}, {
|
|
21912
|
-
dataIndex: 'combinationCode',
|
|
21913
|
-
title: "\u7EC4\u5408\u5546\u54C1\u7F16\u7801",
|
|
21914
|
-
width: 150,
|
|
21915
|
-
render: renderTextEllipsis
|
|
21916
|
-
}, {
|
|
21917
|
-
dataIndex: 'gift',
|
|
21918
|
-
title: "\u662F\u5426\u8D60\u54C1",
|
|
22931
|
+
dataIndex: 'isFit',
|
|
22932
|
+
title: "\u662F\u5426\u7EC4\u5408\u88C5",
|
|
21919
22933
|
width: 150,
|
|
21920
22934
|
render: function render(val, record, index) {
|
|
21921
|
-
return
|
|
22935
|
+
return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
21922
22936
|
value: val,
|
|
21923
22937
|
onChange: function onChange(value) {
|
|
21924
|
-
updateHandle(value, index, '
|
|
22938
|
+
updateHandle(value, index, 'isFit');
|
|
21925
22939
|
},
|
|
21926
22940
|
options: [{
|
|
21927
22941
|
label: '是',
|
|
21928
|
-
value:
|
|
22942
|
+
value: 1
|
|
21929
22943
|
}, {
|
|
21930
22944
|
label: '否',
|
|
21931
|
-
value:
|
|
22945
|
+
value: 0
|
|
21932
22946
|
}]
|
|
21933
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val ===
|
|
22947
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val === 1 ? '是' : '否');
|
|
21934
22948
|
}
|
|
21935
|
-
}].map(function (item) {
|
|
21936
|
-
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
21937
|
-
align: 'center',
|
|
21938
|
-
ellipsis: true
|
|
21939
|
-
});
|
|
21940
|
-
})
|
|
21941
|
-
};
|
|
21942
|
-
};
|
|
21943
|
-
|
|
21944
|
-
var getColumns$8 = function getColumns(_ref) {
|
|
21945
|
-
var _ref$text = _ref.text,
|
|
21946
|
-
disabled = _ref.disabled,
|
|
21947
|
-
updateHandle = _ref.updateHandle,
|
|
21948
|
-
updateDataHandle = _ref.updateDataHandle;
|
|
21949
|
-
return {
|
|
21950
|
-
//[SKX]商品信息(ON)
|
|
21951
|
-
SKX_GOODS: [{
|
|
21952
|
-
dataIndex: 'skuEcode',
|
|
21953
|
-
title: "[SKX]\u53D1\u8D27\u5355\u660E\u7EC6-skuEcode",
|
|
21954
|
-
width: 250
|
|
21955
22949
|
}, {
|
|
21956
|
-
dataIndex: '
|
|
21957
|
-
title: "
|
|
21958
|
-
width:
|
|
22950
|
+
dataIndex: 'brandName',
|
|
22951
|
+
title: "\u54C1\u724C",
|
|
22952
|
+
width: 150,
|
|
22953
|
+
render: renderTextEllipsis
|
|
21959
22954
|
}, {
|
|
21960
|
-
dataIndex: '
|
|
21961
|
-
title: "
|
|
21962
|
-
width:
|
|
22955
|
+
dataIndex: 'cateName',
|
|
22956
|
+
title: "\u8D27\u54C1\u7C7B\u522B",
|
|
22957
|
+
width: 150,
|
|
22958
|
+
render: renderTextEllipsis
|
|
21963
22959
|
}].map(function (item) {
|
|
21964
22960
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
21965
22961
|
align: 'center',
|
|
21966
22962
|
ellipsis: true
|
|
21967
22963
|
});
|
|
21968
|
-
})
|
|
21969
|
-
//[SKX]退货商品信息(TH)
|
|
21970
|
-
SKX_RETURN_GOODS: [{
|
|
21971
|
-
dataIndex: 'returnSkuEcode',
|
|
21972
|
-
title: "[SKX]\u9000\u8D27\u5355\u660E\u7EC6-returnSkuEcode",
|
|
21973
|
-
width: 300
|
|
21974
|
-
}, {
|
|
21975
|
-
dataIndex: 'returnSubOrderId',
|
|
21976
|
-
title: "[SKX]\u9000\u8D27\u5355-\u5B50\u8BA2\u5355\u53F7",
|
|
21977
|
-
width: 300
|
|
21978
|
-
}, {
|
|
21979
|
-
dataIndex: 'returnBillNo',
|
|
21980
|
-
title: "[SKX]TH\u9000\u6362\u8D27\u5355\u53F7",
|
|
21981
|
-
width: 200
|
|
21982
|
-
}]
|
|
22964
|
+
})
|
|
21983
22965
|
};
|
|
21984
22966
|
};
|
|
21985
22967
|
|
|
21986
|
-
var getColumns$
|
|
22968
|
+
var getColumns$a = function getColumns(_ref) {
|
|
21987
22969
|
var _ref$text = _ref.text,
|
|
21988
22970
|
text = _ref$text === void 0 ? '' : _ref$text,
|
|
21989
22971
|
disabled = _ref.disabled,
|
|
@@ -22100,7 +23082,7 @@ var getColumnsMap$1 = function getColumnsMap(args) {
|
|
|
22100
23082
|
disabled = _ref.disabled,
|
|
22101
23083
|
updateHandle = _ref.updateHandle,
|
|
22102
23084
|
updateDataHandle = _ref.updateDataHandle;
|
|
22103
|
-
return _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, getColumns$1({
|
|
23085
|
+
return _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, getColumns$1({
|
|
22104
23086
|
text: text,
|
|
22105
23087
|
disabled: disabled,
|
|
22106
23088
|
updateHandle: updateHandle
|
|
@@ -22138,8 +23120,13 @@ var getColumnsMap$1 = function getColumnsMap(args) {
|
|
|
22138
23120
|
text: text,
|
|
22139
23121
|
disabled: disabled,
|
|
22140
23122
|
updateHandle: updateHandle
|
|
23123
|
+
})), getColumns$9({
|
|
23124
|
+
text: text,
|
|
23125
|
+
disabled: disabled,
|
|
23126
|
+
updateHandle: updateHandle,
|
|
23127
|
+
updateDataHandle: updateDataHandle
|
|
22141
23128
|
})), {}, {
|
|
22142
|
-
default: getColumns$
|
|
23129
|
+
default: getColumns$a({
|
|
22143
23130
|
text: text,
|
|
22144
23131
|
disabled: disabled,
|
|
22145
23132
|
updateHandle: updateHandle
|
|
@@ -22286,6 +23273,9 @@ var isErpType = {
|
|
|
22286
23273
|
},
|
|
22287
23274
|
isJy: function isJy(type) {
|
|
22288
23275
|
return ['JY_GOODS', 'JY_REISSUE_GOODS'].includes(type);
|
|
23276
|
+
},
|
|
23277
|
+
isJky: function isJky(type) {
|
|
23278
|
+
return ['JKY_GOODS', 'JKY_REISSUE_GOODS'].includes(type);
|
|
22289
23279
|
}
|
|
22290
23280
|
};
|
|
22291
23281
|
var processGoods$1 = function processGoods(_ref) {
|
|
@@ -22338,6 +23328,13 @@ var processGoods$1 = function processGoods(_ref) {
|
|
|
22338
23328
|
canUpdateNumber: canUpdateNumber,
|
|
22339
23329
|
source: source
|
|
22340
23330
|
});
|
|
23331
|
+
} else if (isErpType.isJky(type)) {
|
|
23332
|
+
newList = processJkyGoods$1({
|
|
23333
|
+
list: list,
|
|
23334
|
+
type: type,
|
|
23335
|
+
canUpdateNumber: canUpdateNumber,
|
|
23336
|
+
source: source
|
|
23337
|
+
});
|
|
22341
23338
|
} else {
|
|
22342
23339
|
newList = processDefaultGoods({
|
|
22343
23340
|
list: list,
|
|
@@ -22386,11 +23383,45 @@ var processJyGoods = function processJyGoods(_ref2) {
|
|
|
22386
23383
|
});
|
|
22387
23384
|
});
|
|
22388
23385
|
};
|
|
22389
|
-
|
|
22390
|
-
var processWdtGoods$1 = function processWdtGoods(_ref3) {
|
|
23386
|
+
var processJkyGoods$1 = function processJkyGoods(_ref3) {
|
|
22391
23387
|
var list = _ref3.list,
|
|
22392
|
-
type = _ref3.type,
|
|
22393
23388
|
canUpdateNumber = _ref3.canUpdateNumber;
|
|
23389
|
+
return list.map(function (item) {
|
|
23390
|
+
var goodName = item.goodName,
|
|
23391
|
+
goodNo = item.goodNo,
|
|
23392
|
+
goodId = item.goodId,
|
|
23393
|
+
specBarcode = item.specBarcode,
|
|
23394
|
+
retailPrice = item.retailPrice,
|
|
23395
|
+
isGift = item.isGift,
|
|
23396
|
+
skuType = item.skuType,
|
|
23397
|
+
specImgUrl = item.specImgUrl,
|
|
23398
|
+
categoryName = item.categoryName;
|
|
23399
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
23400
|
+
cateName: categoryName,
|
|
23401
|
+
goodsName: goodName,
|
|
23402
|
+
goodsNo: goodNo,
|
|
23403
|
+
goodsId: goodId,
|
|
23404
|
+
barcode: specBarcode,
|
|
23405
|
+
skuImgUrl: specImgUrl,
|
|
23406
|
+
combinationName: goodName,
|
|
23407
|
+
combinationCode: goodNo,
|
|
23408
|
+
isGift: isGift ? 1 : 0,
|
|
23409
|
+
isFit: skuType === 'combine' ? 1 : 0,
|
|
23410
|
+
uuid: kmkfUtils.uuid(),
|
|
23411
|
+
canDelete: true,
|
|
23412
|
+
sellCount: 1,
|
|
23413
|
+
sellPrice: retailPrice,
|
|
23414
|
+
sellTotal: retailPrice ? (retailPrice * 1).toFixed(2) : '',
|
|
23415
|
+
canEdit: true,
|
|
23416
|
+
canUpdateNumber: canUpdateNumber
|
|
23417
|
+
});
|
|
23418
|
+
});
|
|
23419
|
+
};
|
|
23420
|
+
// 处理不同类型的商品数据
|
|
23421
|
+
var processWdtGoods$1 = function processWdtGoods(_ref4) {
|
|
23422
|
+
var list = _ref4.list,
|
|
23423
|
+
type = _ref4.type,
|
|
23424
|
+
canUpdateNumber = _ref4.canUpdateNumber;
|
|
22394
23425
|
return list.map(function (item) {
|
|
22395
23426
|
var processedItem = _objectSpread2(_objectSpread2({}, item), {}, {
|
|
22396
23427
|
uuid: kmkfUtils.uuid(),
|
|
@@ -22408,9 +23439,9 @@ var processWdtGoods$1 = function processWdtGoods(_ref3) {
|
|
|
22408
23439
|
return processedItem;
|
|
22409
23440
|
});
|
|
22410
23441
|
};
|
|
22411
|
-
var processBsE3Goods$1 = function processBsE3Goods(
|
|
22412
|
-
var list =
|
|
22413
|
-
canUpdateNumber =
|
|
23442
|
+
var processBsE3Goods$1 = function processBsE3Goods(_ref5) {
|
|
23443
|
+
var list = _ref5.list,
|
|
23444
|
+
canUpdateNumber = _ref5.canUpdateNumber;
|
|
22414
23445
|
return list.map(function (item) {
|
|
22415
23446
|
var specNo = item.specNo,
|
|
22416
23447
|
specId = item.specId,
|
|
@@ -22445,9 +23476,9 @@ var processBsE3Goods$1 = function processBsE3Goods(_ref4) {
|
|
|
22445
23476
|
});
|
|
22446
23477
|
});
|
|
22447
23478
|
};
|
|
22448
|
-
var processGyGoods$1 = function processGyGoods(
|
|
22449
|
-
var list =
|
|
22450
|
-
source =
|
|
23479
|
+
var processGyGoods$1 = function processGyGoods(_ref6) {
|
|
23480
|
+
var list = _ref6.list,
|
|
23481
|
+
source = _ref6.source;
|
|
22451
23482
|
var isFormWorkOrder = source === 'workOrder';
|
|
22452
23483
|
return list.map(function (item) {
|
|
22453
23484
|
var goodName = item.goodName,
|
|
@@ -22474,8 +23505,8 @@ var processGyGoods$1 = function processGyGoods(_ref5) {
|
|
|
22474
23505
|
});
|
|
22475
23506
|
});
|
|
22476
23507
|
};
|
|
22477
|
-
var processJstGoods$1 = function processJstGoods(
|
|
22478
|
-
var list =
|
|
23508
|
+
var processJstGoods$1 = function processJstGoods(_ref7) {
|
|
23509
|
+
var list = _ref7.list;
|
|
22479
23510
|
return list.map(function (item) {
|
|
22480
23511
|
return {
|
|
22481
23512
|
name: item.goodName,
|
|
@@ -22493,9 +23524,9 @@ var processJstGoods$1 = function processJstGoods(_ref6) {
|
|
|
22493
23524
|
};
|
|
22494
23525
|
});
|
|
22495
23526
|
};
|
|
22496
|
-
var processKmGoods$1 = function processKmGoods(
|
|
22497
|
-
var list =
|
|
22498
|
-
type =
|
|
23527
|
+
var processKmGoods$1 = function processKmGoods(_ref8) {
|
|
23528
|
+
var list = _ref8.list,
|
|
23529
|
+
type = _ref8.type;
|
|
22499
23530
|
var initParamsMap = {
|
|
22500
23531
|
KM_GOODS: {
|
|
22501
23532
|
num: 1
|
|
@@ -22527,9 +23558,9 @@ var processKmGoods$1 = function processKmGoods(_ref7) {
|
|
|
22527
23558
|
}, initParamsMap[type] || {});
|
|
22528
23559
|
});
|
|
22529
23560
|
};
|
|
22530
|
-
var processDefaultGoods = function processDefaultGoods(
|
|
22531
|
-
var list =
|
|
22532
|
-
canUpdateNumber =
|
|
23561
|
+
var processDefaultGoods = function processDefaultGoods(_ref9) {
|
|
23562
|
+
var list = _ref9.list,
|
|
23563
|
+
canUpdateNumber = _ref9.canUpdateNumber;
|
|
22533
23564
|
return list.map(function (item) {
|
|
22534
23565
|
var goodsId = item.goodsId,
|
|
22535
23566
|
name = item.name,
|
|
@@ -22574,6 +23605,8 @@ var GoodsModalMap = {
|
|
|
22574
23605
|
KM_REISSUE_GOODS: KmGoodsModal,
|
|
22575
23606
|
JY_GOODS: JyGoodsModal$1,
|
|
22576
23607
|
JY_REISSUE_GOODS: JyGoodsModal$1,
|
|
23608
|
+
JKY_GOODS: JkyGoodsModal$1,
|
|
23609
|
+
JKY_REISSUE_GOODS: JkyGoodsModal$1,
|
|
22577
23610
|
OTHER_GOODS: GoodsModal$2
|
|
22578
23611
|
};
|
|
22579
23612
|
var systemOrderNoMap = {
|
|
@@ -22586,6 +23619,8 @@ var systemOrderNoMap = {
|
|
|
22586
23619
|
WLN_GOODS: 'tradeNo',
|
|
22587
23620
|
JY_GOODS: 'tradeNo',
|
|
22588
23621
|
JY_REISSUE_GOODS: 'tradeNo',
|
|
23622
|
+
JKY_GOODS: 'tradeNo',
|
|
23623
|
+
JKY_REISSUE_GOODS: 'tradeNo',
|
|
22589
23624
|
KM_REISSUE_GOODS: 'sid',
|
|
22590
23625
|
JST_REISSUE_GOODS: 'oId',
|
|
22591
23626
|
GY_REISSUE_GOODS: 'code',
|
|
@@ -22798,6 +23833,7 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
|
22798
23833
|
}
|
|
22799
23834
|
}), /*#__PURE__*/React__default['default'].createElement("span", null, "\u5DF2\u9009\u62E9(", currentTradeOriginGoods === null || currentTradeOriginGoods === void 0 ? void 0 : currentTradeOriginGoods.length, "/", filterDataSource === null || filterDataSource === void 0 ? void 0 : filterDataSource.length, ")")));
|
|
22800
23835
|
};
|
|
23836
|
+
SelectTradeGoods.displayName = 'SelectTradeGoods';
|
|
22801
23837
|
var getButtonText = function getButtonText() {
|
|
22802
23838
|
var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
22803
23839
|
if (['KM_GOODS', 'KM_REISSUE_GOODS'].includes(type)) {
|
|
@@ -22818,6 +23854,9 @@ var getButtonText = function getButtonText() {
|
|
|
22818
23854
|
if (['JY_GOODS', 'JY_REISSUE_GOODS'].includes(type)) {
|
|
22819
23855
|
return '选择巨益ERP商品';
|
|
22820
23856
|
}
|
|
23857
|
+
if (['JKY_GOODS', 'JKY_REISSUE_GOODS'].includes(type)) {
|
|
23858
|
+
return '选择吉客云ERP商品';
|
|
23859
|
+
}
|
|
22821
23860
|
return '选择商品';
|
|
22822
23861
|
};
|
|
22823
23862
|
var GoodItem$1 = function GoodItem(props) {
|
|
@@ -22875,8 +23914,8 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
22875
23914
|
var jstReturnGoods = antd.Form === null || antd.Form === void 0 ? void 0 : antd.Form.useWatch('3979edfd6d', form);
|
|
22876
23915
|
var isShowSelectTradeGoods = type !== 'JST_EXCHANGE_GOODS' || (jstReturnGoods === null || jstReturnGoods === void 0 ? void 0 : jstReturnGoods.jstSystemOrderNo);
|
|
22877
23916
|
// 判断是否为是否展示系统单筛选项
|
|
22878
|
-
var isShowSelect = type && ['WDT_GOODS', 'BS_E3_GOODS', 'GY_GOODS', 'JST_GOODS', 'WLN_GOODS', 'KM_GOODS', 'JY_GOODS', 'JY_REISSUE_GOODS', 'GY_REISSUE_GOODS', 'KM_REISSUE_GOODS', 'BS_E3_REISSUE_GOODS', 'WDT_REISSUE_GOODS', 'JST_REISSUE_GOODS'].includes(type) || false;
|
|
22879
|
-
var isReissueType = type && ['GY_REISSUE_GOODS', 'KM_REISSUE_GOODS', 'BS_E3_REISSUE_GOODS', 'WDT_REISSUE_GOODS', 'JST_REISSUE_GOODS', 'JY_REISSUE_GOODS'].includes(type) || false;
|
|
23917
|
+
var isShowSelect = type && ['WDT_GOODS', 'BS_E3_GOODS', 'GY_GOODS', 'JST_GOODS', 'WLN_GOODS', 'KM_GOODS', 'JY_GOODS', 'JY_REISSUE_GOODS', 'JKY_GOODS', 'JKY_REISSUE_GOODS', 'GY_REISSUE_GOODS', 'KM_REISSUE_GOODS', 'BS_E3_REISSUE_GOODS', 'WDT_REISSUE_GOODS', 'JST_REISSUE_GOODS'].includes(type) || false;
|
|
23918
|
+
var isReissueType = type && ['GY_REISSUE_GOODS', 'KM_REISSUE_GOODS', 'BS_E3_REISSUE_GOODS', 'WDT_REISSUE_GOODS', 'JST_REISSUE_GOODS', 'JY_REISSUE_GOODS', 'JKY_REISSUE_GOODS'].includes(type) || false;
|
|
22880
23919
|
var refModal = React.useRef();
|
|
22881
23920
|
console.debug('表格数据', value);
|
|
22882
23921
|
var handleDelete = function handleDelete(record, index) {
|
|
@@ -22967,6 +24006,8 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
22967
24006
|
case 'KM_REISSUE_GOODS':
|
|
22968
24007
|
case 'JY_GOODS':
|
|
22969
24008
|
case 'JY_REISSUE_GOODS':
|
|
24009
|
+
case 'JKY_GOODS':
|
|
24010
|
+
case 'JKY_REISSUE_GOODS':
|
|
22970
24011
|
case 'SKX_GOODS':
|
|
22971
24012
|
case 'SKX_RETURN_GOODS':
|
|
22972
24013
|
{
|
|
@@ -24171,7 +25212,7 @@ var jyUtils = {
|
|
|
24171
25212
|
};
|
|
24172
25213
|
|
|
24173
25214
|
var singletonMap$7 = new Map();
|
|
24174
|
-
var
|
|
25215
|
+
var getJkyOrderListSingleton = function getJkyOrderListSingleton(orderNo) {
|
|
24175
25216
|
if (!singletonMap$7.has(orderNo)) {
|
|
24176
25217
|
var p = new Promise(function (resolve, reject) {
|
|
24177
25218
|
var doReject = function doReject(err) {
|
|
@@ -24179,6 +25220,54 @@ var getOrderListSingleton$2 = function getOrderListSingleton(orderNo) {
|
|
|
24179
25220
|
singletonMap$7.delete(orderNo);
|
|
24180
25221
|
reject(err);
|
|
24181
25222
|
};
|
|
25223
|
+
extendRequest('/qy/gdfw/jky/erp/trade/fullInfo', {
|
|
25224
|
+
method: 'post',
|
|
25225
|
+
data: {
|
|
25226
|
+
sourceTradeNos: orderNo
|
|
25227
|
+
}
|
|
25228
|
+
}).then(function (res) {
|
|
25229
|
+
if (res === null || res === void 0 ? void 0 : res.success) {
|
|
25230
|
+
var _res$data, _res$data2;
|
|
25231
|
+
if (res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.length) {
|
|
25232
|
+
var _filterJkyOrders;
|
|
25233
|
+
res.data.trades = (_filterJkyOrders = kmkfUtils.filterJkyOrders(res === null || res === void 0 ? void 0 : res.data, orderNo)) === null || _filterJkyOrders === void 0 ? void 0 : _filterJkyOrders.map(function (item) {
|
|
25234
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
25235
|
+
tradeFrom: kmkfUtils.JKY_ORDER_FROM_MAP[item.tradeFrom],
|
|
25236
|
+
tradeType: kmkfUtils.JKY_ORDER_TYPE_MAP[item.tradeType],
|
|
25237
|
+
tradeStatus: kmkfUtils.JKY_ORDER_STATUS_MAP[item.tradeStatus],
|
|
25238
|
+
logisticName: kmkfUtils.getJkyLogisticInfo(item, 'logisticName'),
|
|
25239
|
+
logisticCode: kmkfUtils.getJkyLogisticInfo(item, 'logisticCode'),
|
|
25240
|
+
logisticNo: kmkfUtils.getJkyLogisticInfo(item, 'logisticNo')
|
|
25241
|
+
});
|
|
25242
|
+
});
|
|
25243
|
+
}
|
|
25244
|
+
resolve(((_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.trades) || []);
|
|
25245
|
+
// 延迟10秒清除,保证订单的时效性
|
|
25246
|
+
setTimeout(function () {
|
|
25247
|
+
singletonMap$7.delete(orderNo);
|
|
25248
|
+
}, 1000 * 10);
|
|
25249
|
+
} else {
|
|
25250
|
+
doReject(res);
|
|
25251
|
+
}
|
|
25252
|
+
}).catch(doReject);
|
|
25253
|
+
});
|
|
25254
|
+
singletonMap$7.set(orderNo, p);
|
|
25255
|
+
}
|
|
25256
|
+
return singletonMap$7.get(orderNo);
|
|
25257
|
+
};
|
|
25258
|
+
var jkyUtils = {
|
|
25259
|
+
getJkyOrderListSingleton: getJkyOrderListSingleton
|
|
25260
|
+
};
|
|
25261
|
+
|
|
25262
|
+
var singletonMap$8 = new Map();
|
|
25263
|
+
var getOrderListSingleton$2 = function getOrderListSingleton(orderNo) {
|
|
25264
|
+
if (!singletonMap$8.has(orderNo)) {
|
|
25265
|
+
var p = new Promise(function (resolve, reject) {
|
|
25266
|
+
var doReject = function doReject(err) {
|
|
25267
|
+
// 清空掉错误的请求记录
|
|
25268
|
+
singletonMap$8.delete(orderNo);
|
|
25269
|
+
reject(err);
|
|
25270
|
+
};
|
|
24182
25271
|
extendRequest('/qy/gdfw/order/kmErpOrderDetail', {
|
|
24183
25272
|
method: 'post',
|
|
24184
25273
|
data: {
|
|
@@ -24202,16 +25291,16 @@ var getOrderListSingleton$2 = function getOrderListSingleton(orderNo) {
|
|
|
24202
25291
|
}
|
|
24203
25292
|
// 延迟10秒清除,保证订单的时效性
|
|
24204
25293
|
setTimeout(function () {
|
|
24205
|
-
singletonMap$
|
|
25294
|
+
singletonMap$8.delete(orderNo);
|
|
24206
25295
|
}, 1000 * 10);
|
|
24207
25296
|
} else {
|
|
24208
25297
|
doReject(data);
|
|
24209
25298
|
}
|
|
24210
25299
|
}).catch(doReject);
|
|
24211
25300
|
});
|
|
24212
|
-
singletonMap$
|
|
25301
|
+
singletonMap$8.set(orderNo, p);
|
|
24213
25302
|
}
|
|
24214
|
-
return singletonMap$
|
|
25303
|
+
return singletonMap$8.get(orderNo);
|
|
24215
25304
|
};
|
|
24216
25305
|
var kmUtils = {
|
|
24217
25306
|
getOrderListSingleton: getOrderListSingleton$2
|
|
@@ -24228,6 +25317,7 @@ var columnsMap = {
|
|
|
24228
25317
|
GY_SYSTEM_ORDER: kmkfUtils.GY_SYSTEM_ORDER_CONFIG.columns,
|
|
24229
25318
|
JST_SYSTEM_ORDER: kmkfUtils.JST_SYSTEM_ORDER_CONFIG.columns,
|
|
24230
25319
|
JY_SYSTEM_ORDER: kmkfUtils.JY_SYSTEM_ORDER_CONFIG.columns,
|
|
25320
|
+
JKY_SYSTEM_ORDER: kmkfUtils.JKY_SYSTEM_ORDER_CONFIG.columns,
|
|
24231
25321
|
WDT_RETURN_BILL_NO: kmkfUtils.WDT_RETURN_BILL_NO_CONFIG.columns
|
|
24232
25322
|
};
|
|
24233
25323
|
var rowKeyMap = {
|
|
@@ -24239,6 +25329,7 @@ var rowKeyMap = {
|
|
|
24239
25329
|
GY_SYSTEM_ORDER: 'billNo',
|
|
24240
25330
|
JST_SYSTEM_ORDER: 'oId',
|
|
24241
25331
|
JY_SYSTEM_ORDER: 'tradeNo',
|
|
25332
|
+
JKY_SYSTEM_ORDER: 'tradeNo',
|
|
24242
25333
|
WDT_RETURN_BILL_NO: 'refundNo'
|
|
24243
25334
|
};
|
|
24244
25335
|
var index$2 = (function (props) {
|
|
@@ -24253,7 +25344,6 @@ var index$2 = (function (props) {
|
|
|
24253
25344
|
React.useEffect(function () {
|
|
24254
25345
|
var _value$orders, _value$showOrderInfo;
|
|
24255
25346
|
valueRef.current = value;
|
|
24256
|
-
console.log('value77777777', value);
|
|
24257
25347
|
if (!(value === null || value === void 0 ? void 0 : (_value$orders = value.orders) === null || _value$orders === void 0 ? void 0 : _value$orders.length) && (value === null || value === void 0 ? void 0 : value.orderNo) && (value === null || value === void 0 ? void 0 : (_value$showOrderInfo = value.showOrderInfo) === null || _value$showOrderInfo === void 0 ? void 0 : _value$showOrderInfo.length) && !onceRef.current) {
|
|
24258
25348
|
onceRef.current = true;
|
|
24259
25349
|
if (type === 'BS_SYSTEM_ORDER') {
|
|
@@ -24272,6 +25362,8 @@ var index$2 = (function (props) {
|
|
|
24272
25362
|
getJstOrderList(value.orderNo);
|
|
24273
25363
|
} else if (type === 'JY_SYSTEM_ORDER') {
|
|
24274
25364
|
getJyOrderList(value.orderNo);
|
|
25365
|
+
} else if (type === 'JKY_SYSTEM_ORDER') {
|
|
25366
|
+
getJkyOrderList(value.orderNo);
|
|
24275
25367
|
}
|
|
24276
25368
|
}
|
|
24277
25369
|
}, [value, type]);
|
|
@@ -24511,8 +25603,8 @@ var index$2 = (function (props) {
|
|
|
24511
25603
|
while (1) switch (_context8.prev = _context8.next) {
|
|
24512
25604
|
case 0:
|
|
24513
25605
|
jyUtils.getJyOrderListSingleton(orderNo).then(function (data) {
|
|
24514
|
-
var trades = (
|
|
24515
|
-
return kmkfUtils.getIsPlatformCodesIncludeOrderNos(item.
|
|
25606
|
+
var trades = (data || []).filter(function (item) {
|
|
25607
|
+
return kmkfUtils.getIsPlatformCodesIncludeOrderNos(item.tradeId, orderNo);
|
|
24516
25608
|
});
|
|
24517
25609
|
_onChange === null || _onChange === void 0 ? void 0 : _onChange(_objectSpread2(_objectSpread2({}, valueRef.current || {}), {}, {
|
|
24518
25610
|
orders: trades,
|
|
@@ -24536,6 +25628,28 @@ var index$2 = (function (props) {
|
|
|
24536
25628
|
return _ref10.apply(this, arguments);
|
|
24537
25629
|
};
|
|
24538
25630
|
}();
|
|
25631
|
+
var getJkyOrderList = /*#__PURE__*/function () {
|
|
25632
|
+
var _ref12 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9(orderNo) {
|
|
25633
|
+
return _regeneratorRuntime().wrap(function _callee9$(_context9) {
|
|
25634
|
+
while (1) switch (_context9.prev = _context9.next) {
|
|
25635
|
+
case 0:
|
|
25636
|
+
jkyUtils.getJkyOrderListSingleton(orderNo).then(function (data) {
|
|
25637
|
+
_onChange === null || _onChange === void 0 ? void 0 : _onChange(_objectSpread2(_objectSpread2({}, valueRef.current || {}), {}, {
|
|
25638
|
+
orders: data || [],
|
|
25639
|
+
showOrderInfo: data || []
|
|
25640
|
+
}));
|
|
25641
|
+
});
|
|
25642
|
+
onceRef.current = false;
|
|
25643
|
+
case 2:
|
|
25644
|
+
case "end":
|
|
25645
|
+
return _context9.stop();
|
|
25646
|
+
}
|
|
25647
|
+
}, _callee9);
|
|
25648
|
+
}));
|
|
25649
|
+
return function getJkyOrderList(_x9) {
|
|
25650
|
+
return _ref12.apply(this, arguments);
|
|
25651
|
+
};
|
|
25652
|
+
}();
|
|
24539
25653
|
var rowSelection = {
|
|
24540
25654
|
selectedRowKeys: (value === null || value === void 0 ? void 0 : value.selectIds) || [],
|
|
24541
25655
|
fixed: true,
|
|
@@ -24960,16 +26074,16 @@ var orderSubFormConstants = {
|
|
|
24960
26074
|
};
|
|
24961
26075
|
|
|
24962
26076
|
var getSelectWidgetMap$1 = orderSubFormConstants.getSelectWidgetMap;
|
|
24963
|
-
var singletonMap$
|
|
26077
|
+
var singletonMap$9 = new Map();
|
|
24964
26078
|
var getOrderListSingleton$3 = function getOrderListSingleton(parmas) {
|
|
24965
26079
|
var orderNo = parmas.orderNo,
|
|
24966
26080
|
shopId = parmas.shopId;
|
|
24967
26081
|
var key = "".concat(orderNo, "-").concat(shopId);
|
|
24968
|
-
if (!singletonMap$
|
|
26082
|
+
if (!singletonMap$9.has(key)) {
|
|
24969
26083
|
var p = new Promise(function (resolve, reject) {
|
|
24970
26084
|
var doReject = function doReject(err) {
|
|
24971
26085
|
// 清空掉错误的请求记录
|
|
24972
|
-
singletonMap$
|
|
26086
|
+
singletonMap$9.delete(key);
|
|
24973
26087
|
reject(err);
|
|
24974
26088
|
};
|
|
24975
26089
|
extendRequest('/qy/gdfw/order/subOrderItemsDetail', {
|
|
@@ -24985,16 +26099,16 @@ var getOrderListSingleton$3 = function getOrderListSingleton(parmas) {
|
|
|
24985
26099
|
}
|
|
24986
26100
|
// 延迟10秒清除,保证订单的时效性
|
|
24987
26101
|
setTimeout(function () {
|
|
24988
|
-
singletonMap$
|
|
26102
|
+
singletonMap$9.delete(key);
|
|
24989
26103
|
}, 1000 * 10);
|
|
24990
26104
|
} else {
|
|
24991
26105
|
doReject(data);
|
|
24992
26106
|
}
|
|
24993
26107
|
}).catch(doReject);
|
|
24994
26108
|
});
|
|
24995
|
-
singletonMap$
|
|
26109
|
+
singletonMap$9.set(key, p);
|
|
24996
26110
|
}
|
|
24997
|
-
return singletonMap$
|
|
26111
|
+
return singletonMap$9.get(key);
|
|
24998
26112
|
};
|
|
24999
26113
|
var renderEditItem = function renderEditItem(_ref) {
|
|
25000
26114
|
var item = _ref.item,
|
|
@@ -25427,6 +26541,9 @@ var isErpType$1 = {
|
|
|
25427
26541
|
},
|
|
25428
26542
|
isJy: function isJy(type) {
|
|
25429
26543
|
return ['JY_GOODS'].includes(type);
|
|
26544
|
+
},
|
|
26545
|
+
isJky: function isJky(type) {
|
|
26546
|
+
return ['JKY_GOODS'].includes(type);
|
|
25430
26547
|
}
|
|
25431
26548
|
};
|
|
25432
26549
|
var processAllOrders = function processAllOrders(_ref) {
|
|
@@ -25496,8 +26613,8 @@ var processGyOrders = function processGyOrders(_ref4) {
|
|
|
25496
26613
|
var processJyOrders = function processJyOrders(_ref5) {
|
|
25497
26614
|
var data = _ref5.data,
|
|
25498
26615
|
orderNo = _ref5.orderNo;
|
|
25499
|
-
var trades = (
|
|
25500
|
-
return kmkfUtils.getIsPlatformCodesIncludeOrderNos(item.
|
|
26616
|
+
var trades = (data || []).filter(function (item) {
|
|
26617
|
+
return kmkfUtils.getIsPlatformCodesIncludeOrderNos(item.tradeId, orderNo);
|
|
25501
26618
|
});
|
|
25502
26619
|
return trades;
|
|
25503
26620
|
};
|
|
@@ -25727,6 +26844,32 @@ var componentMap$2 = {
|
|
|
25727
26844
|
},
|
|
25728
26845
|
getOrderList: jyUtils.getJyOrderListSingleton
|
|
25729
26846
|
},
|
|
26847
|
+
JKY_GOODS: {
|
|
26848
|
+
type: 'jky',
|
|
26849
|
+
key: 'jkyGoods',
|
|
26850
|
+
name: '吉客云',
|
|
26851
|
+
orderNo: 'tradeNo',
|
|
26852
|
+
goodDetailOrderNo: 'tradeNo',
|
|
26853
|
+
eventNameMap: {
|
|
26854
|
+
// pubsub 事件
|
|
26855
|
+
type: 'jkyType',
|
|
26856
|
+
updateGoodsHandle: kmkfUtils.updateJkyGoodsHandle,
|
|
26857
|
+
selectListReturn: 'jkySelectListReturn',
|
|
26858
|
+
selectList: 'jkySelectList',
|
|
26859
|
+
reissueSelectList: 'jkyReissueSelectList',
|
|
26860
|
+
reissueSelectListReturn: 'jkyReissueSelectListReturn',
|
|
26861
|
+
reissueDeleteGood: 'jkyReissueDeleteGood',
|
|
26862
|
+
changeShopCode: 'jkyChangeShopCode',
|
|
26863
|
+
reissueType: 'jkyReissueType',
|
|
26864
|
+
returnType: 'jkyReturnType',
|
|
26865
|
+
returnSelectListReturn: 'jkyReturnSelectListReturn',
|
|
26866
|
+
returnSelectList: 'jkyReturnSelectList',
|
|
26867
|
+
deleteGood: 'jkyDeleteGood',
|
|
26868
|
+
returnDeleteGood: 'jkyReturnDeleteGood',
|
|
26869
|
+
exchangeDeleteGood: 'jkyExchangeDeleteGood'
|
|
26870
|
+
},
|
|
26871
|
+
getOrderList: jkyUtils.getJkyOrderListSingleton
|
|
26872
|
+
},
|
|
25730
26873
|
WDT_AFTERSALE_GOODS: {
|
|
25731
26874
|
type: 'wdtAftersale',
|
|
25732
26875
|
key: 'wdtAftersaleGoods',
|
|
@@ -26157,6 +27300,7 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
26157
27300
|
}
|
|
26158
27301
|
}));
|
|
26159
27302
|
};
|
|
27303
|
+
CommonGoods.displayName = 'CommonGoods';
|
|
26160
27304
|
|
|
26161
27305
|
var componentMap$3 = {
|
|
26162
27306
|
WDT_RETURN_GOODS: {
|
|
@@ -26808,10 +27952,26 @@ var typeMap$2 = {
|
|
|
26808
27952
|
outerOiIdKey: '',
|
|
26809
27953
|
goodDetailsKey: 'subOrderDetails',
|
|
26810
27954
|
isShowSelectTradeGoods: true
|
|
27955
|
+
},
|
|
27956
|
+
JKY_REISSUE_GOODS: {
|
|
27957
|
+
compType: '补发',
|
|
27958
|
+
key: 'jkyReissueGoods',
|
|
27959
|
+
typeName: 'jkyReissueType',
|
|
27960
|
+
systemOrder: 'jkySystemOrder',
|
|
27961
|
+
systemOrderNo: 'jkySystemOrderNo',
|
|
27962
|
+
getOrderList: jkyUtils.getJkyOrderListSingleton,
|
|
27963
|
+
updateGoodsHandle: kmkfUtils.updateJkyGoodsHandle,
|
|
27964
|
+
alwaysShowChooseErpGoodsBtn: true,
|
|
27965
|
+
orderTypeKey: 'orderType',
|
|
27966
|
+
oIdKey: 'tradeNo',
|
|
27967
|
+
outerOiIdKey: '',
|
|
27968
|
+
goodDetailsKey: 'goodsDetail',
|
|
27969
|
+
isShowSelectTradeGoods: true,
|
|
27970
|
+
showModeBtn: false
|
|
26811
27971
|
}
|
|
26812
27972
|
};
|
|
26813
27973
|
var PublicReissue = function PublicReissue(props) {
|
|
26814
|
-
var _typeMap$
|
|
27974
|
+
var _typeMap$type35, _typeMap$type41, _typeMap$type42, _typeMap$type43, _typeMap$type44, _value$typeMap$type$s8, _typeMap$type45, _typeMap$type46, _typeMap$type47, _typeMap$type48, _typeMap$type49, _typeMap$type50, _typeMap$type51, _typeMap$type52, _value$typeMap$type$s9, _typeMap$type53, _typeMap$type54, _typeMap$type55, _typeMap$type56;
|
|
26815
27975
|
var value = props.value,
|
|
26816
27976
|
onChange = props.onChange,
|
|
26817
27977
|
_props$reasonList = props.reasonList,
|
|
@@ -27012,7 +28172,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
27012
28172
|
}
|
|
27013
28173
|
}, [sysItemIdMap]);
|
|
27014
28174
|
var getGoodDetails = function getGoodDetails(_ref5) {
|
|
27015
|
-
var _typeMap$type18, _typeMap$type19, _value$typeMap$type$s6, _typeMap$type20, _typeMap$type21, _typeMap$type22, _typeMap$type23
|
|
28175
|
+
var _typeMap$type18, _typeMap$type19, _value$typeMap$type$s6, _typeMap$type20, _typeMap$type21, _typeMap$type22, _typeMap$type23;
|
|
27016
28176
|
var mode = _ref5.mode,
|
|
27017
28177
|
sysOrderNo = _ref5.sysOrderNo,
|
|
27018
28178
|
_ref5$isAllOrders = _ref5.isAllOrders,
|
|
@@ -27034,14 +28194,17 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
27034
28194
|
orderRest = {
|
|
27035
28195
|
canEdit: true
|
|
27036
28196
|
};
|
|
28197
|
+
} else if (['JKY_REISSUE_GOODS'].includes(type)) {
|
|
28198
|
+
orderRest = {
|
|
28199
|
+
canEdit: true
|
|
28200
|
+
};
|
|
27037
28201
|
}
|
|
27038
28202
|
var orders = isAllOrders ? (value === null || value === void 0 ? void 0 : (_value$typeMap$type$s6 = value[(_typeMap$type20 = typeMap$2[type]) === null || _typeMap$type20 === void 0 ? void 0 : _typeMap$type20.systemOrder]) === null || _value$typeMap$type$s6 === void 0 ? void 0 : _value$typeMap$type$s6.orders) || [] : order ? [order] : [];
|
|
27039
28203
|
var hasGoodDetails = orders === null || orders === void 0 ? void 0 : orders.some(function (order) {
|
|
27040
28204
|
var _order$typeMap$type$g;
|
|
27041
28205
|
return order === null || order === void 0 ? void 0 : (_order$typeMap$type$g = order[typeMap$2[type].goodDetailsKey]) === null || _order$typeMap$type$g === void 0 ? void 0 : _order$typeMap$type$g.length;
|
|
27042
28206
|
});
|
|
27043
|
-
|
|
27044
|
-
var goodDetails = hasGoodDetails ? (!isAllOrders || ((_typeMap$type22 = typeMap$2[type]) === null || _typeMap$type22 === void 0 ? void 0 : _typeMap$type22.isSelectTradeGoodsMerge)) && typeMap$2[type].mergeIdenticalGoods ? typeMap$2[type].mergeIdenticalGoods((_typeMap$type23 = typeMap$2[type]) === null || _typeMap$type23 === void 0 ? void 0 : _typeMap$type23.updateGoodsHandle(orders, orderRest)) : (_typeMap$type24 = typeMap$2[type]) === null || _typeMap$type24 === void 0 ? void 0 : _typeMap$type24.updateGoodsHandle(orders, orderRest) : [];
|
|
28207
|
+
var goodDetails = hasGoodDetails ? (!isAllOrders || ((_typeMap$type21 = typeMap$2[type]) === null || _typeMap$type21 === void 0 ? void 0 : _typeMap$type21.isSelectTradeGoodsMerge)) && typeMap$2[type].mergeIdenticalGoods ? typeMap$2[type].mergeIdenticalGoods((_typeMap$type22 = typeMap$2[type]) === null || _typeMap$type22 === void 0 ? void 0 : _typeMap$type22.updateGoodsHandle(orders, orderRest)) : (_typeMap$type23 = typeMap$2[type]) === null || _typeMap$type23 === void 0 ? void 0 : _typeMap$type23.updateGoodsHandle(orders, orderRest) : [];
|
|
27045
28208
|
var orderNo = systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orderNo;
|
|
27046
28209
|
var list = mode && !isAllOrders ? goodDetails.filter(function (goodItem) {
|
|
27047
28210
|
return !orderNo || goodItem[typeMap$2[type].outerOiIdKey] === orderNo;
|
|
@@ -27049,30 +28212,30 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
27049
28212
|
return list;
|
|
27050
28213
|
};
|
|
27051
28214
|
var changeGoodHandle = function changeGoodHandle(val) {
|
|
27052
|
-
var _typeMap$
|
|
28215
|
+
var _typeMap$type24;
|
|
27053
28216
|
var newValue = _objectSpread2({}, value);
|
|
27054
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28217
|
+
newValue["".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)] = val || [];
|
|
27055
28218
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
27056
28219
|
};
|
|
27057
28220
|
var changeSystemOrderHandle = function changeSystemOrderHandle(val) {
|
|
27058
|
-
var _typeMap$
|
|
28221
|
+
var _typeMap$type25, _typeMap$type26, _value$typeMap$type$t2, _typeMap$type31, _value$typeMap$type$t3, _typeMap$type33;
|
|
27059
28222
|
var newValue = _objectSpread2({}, value);
|
|
27060
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
27061
|
-
if (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
27062
|
-
var _value$typeMap$type$s7, _typeMap$
|
|
27063
|
-
var orders = (value === null || value === void 0 ? void 0 : (_value$typeMap$type$s7 = value[(_typeMap$
|
|
28223
|
+
newValue["".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)] = val;
|
|
28224
|
+
if (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type26 = typeMap$2[type]) === null || _typeMap$type26 === void 0 ? void 0 : _typeMap$type26.systemOrderBillType) {
|
|
28225
|
+
var _value$typeMap$type$s7, _typeMap$type27, _typeMap$type29, _typeMap$type30;
|
|
28226
|
+
var orders = (value === null || value === void 0 ? void 0 : (_value$typeMap$type$s7 = value[(_typeMap$type27 = typeMap$2[type]) === null || _typeMap$type27 === void 0 ? void 0 : _typeMap$type27.systemOrder]) === null || _value$typeMap$type$s7 === void 0 ? void 0 : _value$typeMap$type$s7.orders) || [];
|
|
27064
28227
|
var targetOrder = val && orders.find(function (oItem) {
|
|
27065
|
-
var _typeMap$
|
|
27066
|
-
return oItem[(_typeMap$
|
|
28228
|
+
var _typeMap$type28;
|
|
28229
|
+
return oItem[(_typeMap$type28 = typeMap$2[type]) === null || _typeMap$type28 === void 0 ? void 0 : _typeMap$type28.oIdKey] === val;
|
|
27067
28230
|
});
|
|
27068
|
-
newValue[(_typeMap$
|
|
27069
|
-
}
|
|
27070
|
-
if (['2'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t2 = value[(_typeMap$
|
|
27071
|
-
var _typeMap$
|
|
27072
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
27073
|
-
} else if (['1'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t3 = value[(_typeMap$
|
|
27074
|
-
var _typeMap$
|
|
27075
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28231
|
+
newValue[(_typeMap$type29 = typeMap$2[type]) === null || _typeMap$type29 === void 0 ? void 0 : _typeMap$type29.systemOrderBillType] = targetOrder === null || targetOrder === void 0 ? void 0 : targetOrder[(_typeMap$type30 = typeMap$2[type]) === null || _typeMap$type30 === void 0 ? void 0 : _typeMap$type30.orderTypeKey];
|
|
28232
|
+
}
|
|
28233
|
+
if (['2'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t2 = value[(_typeMap$type31 = typeMap$2[type]) === null || _typeMap$type31 === void 0 ? void 0 : _typeMap$type31.typeName]) === null || _value$typeMap$type$t2 === void 0 ? void 0 : _value$typeMap$type$t2[0])) {
|
|
28234
|
+
var _typeMap$type32;
|
|
28235
|
+
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type32 = typeMap$2[type]) === null || _typeMap$type32 === void 0 ? void 0 : _typeMap$type32.key)] = [];
|
|
28236
|
+
} else if (['1'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t3 = value[(_typeMap$type33 = typeMap$2[type]) === null || _typeMap$type33 === void 0 ? void 0 : _typeMap$type33.typeName]) === null || _value$typeMap$type$t3 === void 0 ? void 0 : _value$typeMap$type$t3[0])) {
|
|
28237
|
+
var _typeMap$type34;
|
|
28238
|
+
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type34 = typeMap$2[type]) === null || _typeMap$type34 === void 0 ? void 0 : _typeMap$type34.key)] = getGoodDetails({
|
|
27076
28239
|
mode: isStrict,
|
|
27077
28240
|
sysOrderNo: val
|
|
27078
28241
|
});
|
|
@@ -27080,27 +28243,27 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
27080
28243
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue, 'systemOrder');
|
|
27081
28244
|
};
|
|
27082
28245
|
//显示选择商品按钮
|
|
27083
|
-
var showChangeBtn = !!(value === null || value === void 0 ? void 0 : value[(_typeMap$
|
|
28246
|
+
var showChangeBtn = !!(value === null || value === void 0 ? void 0 : value[(_typeMap$type35 = typeMap$2[type]) === null || _typeMap$type35 === void 0 ? void 0 : _typeMap$type35.systemOrderNo]);
|
|
27084
28247
|
var selectedGoodsChange = React.useCallback(function (skuList) {
|
|
27085
|
-
var _typeMap$
|
|
28248
|
+
var _typeMap$type36, _typeMap$type37, _typeMap$type38, _uniqBy, _typeMap$type39;
|
|
27086
28249
|
var newValue = _objectSpread2({}, value);
|
|
27087
28250
|
// 原订单商品
|
|
27088
28251
|
var originTradeGoodList = getGoodDetails({
|
|
27089
28252
|
mode: isStrict,
|
|
27090
|
-
isAllOrders: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28253
|
+
isAllOrders: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type36 = typeMap$2[type]) === null || _typeMap$type36 === void 0 ? void 0 : _typeMap$type36.isShowSelectTradeGoods
|
|
27091
28254
|
}) || [];
|
|
27092
28255
|
// 当前选中的所有商品【包含了原订单+商品库】
|
|
27093
|
-
var currentSelectGoodList = (value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
27094
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
27095
|
-
var _typeMap$
|
|
27096
|
-
return skuList.includes(item[(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28256
|
+
var currentSelectGoodList = (value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type37 = typeMap$2[type]) === null || _typeMap$type37 === void 0 ? void 0 : _typeMap$type37.key)]) || [];
|
|
28257
|
+
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type38 = typeMap$2[type]) === null || _typeMap$type38 === void 0 ? void 0 : _typeMap$type38.key)] = (_uniqBy = lodash.uniqBy(originTradeGoodList.concat(currentSelectGoodList), (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type39 = typeMap$2[type]) === null || _typeMap$type39 === void 0 ? void 0 : _typeMap$type39.uniqueKey) || 'uuid')) === null || _uniqBy === void 0 ? void 0 : _uniqBy.filter(function (item) {
|
|
28258
|
+
var _typeMap$type40;
|
|
28259
|
+
return skuList.includes(item[(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type40 = typeMap$2[type]) === null || _typeMap$type40 === void 0 ? void 0 : _typeMap$type40.uniqueKey) || 'uuid']);
|
|
27097
28260
|
});
|
|
27098
28261
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
27099
|
-
}, [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28262
|
+
}, [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type41 = typeMap$2[type]) === null || _typeMap$type41 === void 0 ? void 0 : _typeMap$type41.key)], isStrict]);
|
|
27100
28263
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.Row, {
|
|
27101
28264
|
gutter: 8,
|
|
27102
28265
|
wrap: true,
|
|
27103
|
-
id: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28266
|
+
id: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type42 = typeMap$2[type]) === null || _typeMap$type42 === void 0 ? void 0 : _typeMap$type42.key) || "".concat(Date.now())
|
|
27104
28267
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
27105
28268
|
className: "gutter-row",
|
|
27106
28269
|
xs: {
|
|
@@ -27116,12 +28279,12 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
27116
28279
|
},
|
|
27117
28280
|
disabled: disabled,
|
|
27118
28281
|
allowClear: false,
|
|
27119
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28282
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type43 = typeMap$2[type]) === null || _typeMap$type43 === void 0 ? void 0 : _typeMap$type43.systemOrderNo)],
|
|
27120
28283
|
onChange: function onChange(val) {
|
|
27121
28284
|
return changeSystemOrderHandle(val);
|
|
27122
28285
|
},
|
|
27123
|
-
placeholder: "\u9009\u62E9".concat((typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
27124
|
-
}, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s8 = value[(_typeMap$
|
|
28286
|
+
placeholder: "\u9009\u62E9".concat((typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type44 = typeMap$2[type]) === null || _typeMap$type44 === void 0 ? void 0 : _typeMap$type44.compType) || '', "\u7CFB\u7EDF\u5355")
|
|
28287
|
+
}, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s8 = value[(_typeMap$type45 = typeMap$2[type]) === null || _typeMap$type45 === void 0 ? void 0 : _typeMap$type45.systemOrder]) === null || _value$typeMap$type$s8 === void 0 ? void 0 : _value$typeMap$type$s8.showOrderInfo) || []).map(function (item) {
|
|
27125
28288
|
return /*#__PURE__*/React__default['default'].createElement(antd.Select.Option, {
|
|
27126
28289
|
key: item[typeMap$2[type].oIdKey],
|
|
27127
28290
|
value: item[typeMap$2[type].oIdKey],
|
|
@@ -27143,11 +28306,11 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
27143
28306
|
disabled: isSettingConfig ? !isSettingConfig : disabled,
|
|
27144
28307
|
allowClear: false,
|
|
27145
28308
|
options: reasonList,
|
|
27146
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28309
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type46 = typeMap$2[type]) === null || _typeMap$type46 === void 0 ? void 0 : _typeMap$type46.typeName)],
|
|
27147
28310
|
onChange: function onChange(val) {
|
|
27148
28311
|
return changeTypeHandle(val);
|
|
27149
28312
|
}
|
|
27150
|
-
})), (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28313
|
+
})), (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type47 = typeMap$2[type]) === null || _typeMap$type47 === void 0 ? void 0 : _typeMap$type47.systemOrderBillType) && !isSettingConfig && /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
27151
28314
|
className: "gutter-row",
|
|
27152
28315
|
xs: {
|
|
27153
28316
|
span: 11
|
|
@@ -27156,7 +28319,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
27156
28319
|
span: 6
|
|
27157
28320
|
}
|
|
27158
28321
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
27159
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28322
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type48 = typeMap$2[type]) === null || _typeMap$type48 === void 0 ? void 0 : _typeMap$type48.systemOrderBillType)],
|
|
27160
28323
|
disabled: disabled,
|
|
27161
28324
|
readOnly: true
|
|
27162
28325
|
}))), /*#__PURE__*/React__default['default'].createElement(GoodItem$1, _objectSpread2(_objectSpread2({
|
|
@@ -27167,15 +28330,15 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
27167
28330
|
canUpdateNumber: showChangeBtn,
|
|
27168
28331
|
hasSelectedSystemOrder: showChangeBtn,
|
|
27169
28332
|
// showChangeBtn={showChangeBtn || typeMap?.[type]?.isShowSelectTradeGoods}
|
|
27170
|
-
alwaysShowChooseErpGoodsBtn: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28333
|
+
alwaysShowChooseErpGoodsBtn: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type49 = typeMap$2[type]) === null || _typeMap$type49 === void 0 ? void 0 : _typeMap$type49.alwaysShowChooseErpGoodsBtn,
|
|
27171
28334
|
// showErpGoodsBtn={typeMap?.[type]?.showErpGoodsBtn}
|
|
27172
28335
|
shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
|
|
27173
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28336
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type50 = typeMap$2[type]) === null || _typeMap$type50 === void 0 ? void 0 : _typeMap$type50.key)],
|
|
27174
28337
|
onChange: function onChange(val) {
|
|
27175
28338
|
return changeGoodHandle(val);
|
|
27176
28339
|
},
|
|
27177
28340
|
onModeChange: handleModeChange,
|
|
27178
|
-
showModeBtn:
|
|
28341
|
+
showModeBtn: !!(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type51 = typeMap$2[type]) === null || _typeMap$type51 === void 0 ? void 0 : _typeMap$type51.showModeBtn),
|
|
27179
28342
|
isStrict: isStrict,
|
|
27180
28343
|
isShowSelectTradeGoods: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type52 = typeMap$2[type]) === null || _typeMap$type52 === void 0 ? void 0 : _typeMap$type52.isShowSelectTradeGoods,
|
|
27181
28344
|
systemOrders: value === null || value === void 0 ? void 0 : (_value$typeMap$type$s9 = value[(_typeMap$type53 = typeMap$2[type]) === null || _typeMap$type53 === void 0 ? void 0 : _typeMap$type53.systemOrder]) === null || _value$typeMap$type$s9 === void 0 ? void 0 : _value$typeMap$type$s9.orders,
|
|
@@ -27190,6 +28353,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
27190
28353
|
}
|
|
27191
28354
|
})));
|
|
27192
28355
|
};
|
|
28356
|
+
PublicReissue.displayName = 'PublicReissue';
|
|
27193
28357
|
|
|
27194
28358
|
var css_248z$g = ".goodsBox {\n display: flex;\n flex-wrap: wrap;\n}\n.goods-imgBox {\n position: relative;\n width: 80px;\n height: 80px;\n border: 1px solid #F2F3F5;\n margin: 0 10px 10px 0;\n text-align: center;\n}\n.icon-close {\n position: absolute;\n top: -5px;\n right: -5px;\n width: 13px;\n height: 13px;\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: 50%;\n z-index: 3;\n background-color: #fff;\n cursor: pointer;\n}\n.img {\n width: 100%;\n height: 100%;\n -o-object-fit: contain;\n object-fit: contain;\n}\n.goods-title {\n margin: 0 0 10px 5px;\n color: #4E5969;\n}\n.deg90 {\n transform: rotate(90deg);\n}\n.goodMain {\n display: flex;\n flex-wrap: wrap;\n height: 265px;\n overflow-y: auto;\n margin-bottom: 10px;\n}\n.goodMain .goodItem {\n width: 140px;\n height: 175px;\n padding: 11px 10px 0;\n text-align: center;\n display: inline-block;\n vertical-align: top;\n margin-bottom: 10px;\n margin-right: 30px;\n border: 1px solid #e6e6e6;\n cursor: pointer;\n transition: border 0.3s;\n}\n.goodMain .goodItem .goodImg {\n width: 120px;\n height: 120px;\n}\n.goodMain .goodItem .goodText {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.goodMain .goodItem.active {\n border: 1px solid #3089dc;\n}\n.right-context {\n display: flex;\n flex-direction: column;\n}\n";
|
|
27195
28359
|
styleInject(css_248z$g);
|
|
@@ -29482,6 +30646,7 @@ var SYSTEM_ORDER_COLUMNS_MAP = {
|
|
|
29482
30646
|
GY_SYSTEM_ORDER: kmkfUtils.GY_SYSTEM_ORDER_CONFIG.columns,
|
|
29483
30647
|
JST_SYSTEM_ORDER: kmkfUtils.JST_SYSTEM_ORDER_CONFIG.columns,
|
|
29484
30648
|
JY_SYSTEM_ORDER: kmkfUtils.JY_SYSTEM_ORDER_CONFIG.columns,
|
|
30649
|
+
JKY_SYSTEM_ORDER: kmkfUtils.JKY_SYSTEM_ORDER_CONFIG.columns,
|
|
29485
30650
|
WDT_RETURN_BILL_NO: kmkfUtils.WDT_RETURN_BILL_NO_CONFIG.columns
|
|
29486
30651
|
};
|
|
29487
30652
|
|
|
@@ -29564,6 +30729,7 @@ exports.erpColumnsMap = erpColumnsMap;
|
|
|
29564
30729
|
exports.erpFormValidator = erpFormValidator;
|
|
29565
30730
|
exports.erpModalColumnsMap = index$1;
|
|
29566
30731
|
exports.getGyColumns = getColumns$4;
|
|
30732
|
+
exports.getJkyColumns = getColumns$9;
|
|
29567
30733
|
exports.getJstColumns = getColumns$5;
|
|
29568
30734
|
exports.getJyColumns = getColumns$7;
|
|
29569
30735
|
exports.getKmColumns = getColumns$6;
|