@kmkf-fe-packages/basic-components 2.3.3 → 2.3.6
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 +1898 -742
- package/dist/index.js +1897 -740
- 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,
|
|
@@ -14001,7 +14044,7 @@ var jstGoods = function jstGoods(props) {
|
|
|
14001
14044
|
changeIndex = _useState2[0],
|
|
14002
14045
|
setChangeIndex = _useState2[1]; //选中的包裹
|
|
14003
14046
|
var sendOptions = kmkfUtils.SendDataCenter.getInstance(platformType).getSendData();
|
|
14004
|
-
var isSelectName = ['wdt', 'bsE3', 'km', 'gy', 'jst', 'jy'].includes(platformType);
|
|
14047
|
+
var isSelectName = ['wdt', 'bsE3', 'km', 'gy', 'jst', 'jy', 'jky'].includes(platformType);
|
|
14005
14048
|
var expressDateInstance = kmkfUtils.ExpressData.getInstance(platformType);
|
|
14006
14049
|
var isSendGoodSavedId = isSelectName && !['jst'].includes(platformType);
|
|
14007
14050
|
React.useEffect(function () {
|
|
@@ -15373,6 +15416,187 @@ var jyColumns = [{
|
|
|
15373
15416
|
}
|
|
15374
15417
|
}];
|
|
15375
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
|
+
|
|
15376
15600
|
var getColumnsMap = function getColumnsMap() {
|
|
15377
15601
|
return lodash.cloneDeep({
|
|
15378
15602
|
gy: gyColumns,
|
|
@@ -15380,7 +15604,8 @@ var getColumnsMap = function getColumnsMap() {
|
|
|
15380
15604
|
wdt: wdtColumns,
|
|
15381
15605
|
bse3: bse3Columns,
|
|
15382
15606
|
km: kmColumns,
|
|
15383
|
-
jy: jyColumns
|
|
15607
|
+
jy: jyColumns,
|
|
15608
|
+
jky: jkyColumns
|
|
15384
15609
|
});
|
|
15385
15610
|
};
|
|
15386
15611
|
var getColumnsBaseInfo = function getColumnsBaseInfo() {
|
|
@@ -18609,92 +18834,339 @@ var JyGoodsModal = function JyGoodsModal(props, ref) {
|
|
|
18609
18834
|
};
|
|
18610
18835
|
var JyGoodsModal$1 = /*#__PURE__*/React.forwardRef(JyGoodsModal);
|
|
18611
18836
|
|
|
18612
|
-
var
|
|
18613
|
-
var
|
|
18614
|
-
|
|
18615
|
-
|
|
18616
|
-
return {
|
|
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
|
-
},
|
|
18684
|
-
|
|
18685
|
-
|
|
18686
|
-
|
|
18687
|
-
|
|
18688
|
-
|
|
18689
|
-
|
|
18690
|
-
|
|
18691
|
-
|
|
18692
|
-
|
|
18693
|
-
|
|
18694
|
-
|
|
18695
|
-
|
|
18696
|
-
|
|
18697
|
-
|
|
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',
|
|
19165
|
+
title: "\u5546\u54C1\u7F51\u5E97\u552E\u4EF7",
|
|
19166
|
+
width: 150
|
|
19167
|
+
}, {
|
|
19168
|
+
dataIndex: 'isGift',
|
|
19169
|
+
title: "\u662F\u5426\u8D60\u54C1",
|
|
18698
19170
|
width: 150,
|
|
18699
19171
|
render: function render(val) {
|
|
18700
19172
|
return /*#__PURE__*/React__default['default'].createElement("span", null, +val ? '是' : '否');
|
|
@@ -19918,7 +20390,7 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
19918
20390
|
};
|
|
19919
20391
|
};
|
|
19920
20392
|
|
|
19921
|
-
var getYesOrNo$
|
|
20393
|
+
var getYesOrNo$3 = function getYesOrNo(val) {
|
|
19922
20394
|
if (kmkfUtils.isNull(val)) return null;
|
|
19923
20395
|
return val ? '是' : '否';
|
|
19924
20396
|
};
|
|
@@ -20069,7 +20541,7 @@ var getColumns$3 = function getColumns(_ref) {
|
|
|
20069
20541
|
label: '否',
|
|
20070
20542
|
value: false
|
|
20071
20543
|
}]
|
|
20072
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo$
|
|
20544
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo$3(val));
|
|
20073
20545
|
},
|
|
20074
20546
|
width: 100
|
|
20075
20547
|
}]
|
|
@@ -20081,7 +20553,7 @@ var isNumberOrNumberString$1 = function isNumberOrNumberString(value) {
|
|
|
20081
20553
|
if (typeof value === 'string' && !isNaN(Number(value)) && value.trim() !== '') return true;
|
|
20082
20554
|
return false;
|
|
20083
20555
|
};
|
|
20084
|
-
var getYesOrNo$
|
|
20556
|
+
var getYesOrNo$4 = function getYesOrNo(val) {
|
|
20085
20557
|
if (kmkfUtils.isNull(val)) return null;
|
|
20086
20558
|
return val ? '是' : '否';
|
|
20087
20559
|
};
|
|
@@ -20196,7 +20668,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
20196
20668
|
title: "\u662F\u5426\u53D6\u6D88",
|
|
20197
20669
|
width: 150,
|
|
20198
20670
|
render: function render(val) {
|
|
20199
|
-
return /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo$
|
|
20671
|
+
return /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo$4(val));
|
|
20200
20672
|
}
|
|
20201
20673
|
}, {
|
|
20202
20674
|
dataIndex: 'isGift',
|
|
@@ -20215,7 +20687,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
20215
20687
|
label: '否',
|
|
20216
20688
|
value: 0
|
|
20217
20689
|
}]
|
|
20218
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo$
|
|
20690
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo$4(val));
|
|
20219
20691
|
}
|
|
20220
20692
|
}, {
|
|
20221
20693
|
dataIndex: 'skuNote',
|
|
@@ -20341,7 +20813,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
20341
20813
|
label: '否',
|
|
20342
20814
|
value: 0
|
|
20343
20815
|
}]
|
|
20344
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo$
|
|
20816
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo$4(val));
|
|
20345
20817
|
}
|
|
20346
20818
|
}].map(function (item) {
|
|
20347
20819
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
@@ -20470,7 +20942,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
20470
20942
|
label: '否',
|
|
20471
20943
|
value: 0
|
|
20472
20944
|
}]
|
|
20473
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo$
|
|
20945
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo$4(val));
|
|
20474
20946
|
}
|
|
20475
20947
|
}].map(function (item) {
|
|
20476
20948
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
@@ -20886,10 +21358,121 @@ var getColumns$5 = function getColumns() {
|
|
|
20886
21358
|
render: function render(val, record) {
|
|
20887
21359
|
return (record.qty || 0) * (+record.salePrice || 0);
|
|
20888
21360
|
}
|
|
20889
|
-
}, {
|
|
20890
|
-
dataIndex: 'batchId',
|
|
20891
|
-
title: '批次号',
|
|
20892
|
-
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
|
+
}
|
|
20893
21476
|
}, {
|
|
20894
21477
|
dataIndex: 'isGift',
|
|
20895
21478
|
title: '是否赠品',
|
|
@@ -20923,67 +21506,248 @@ var getColumns$5 = function getColumns() {
|
|
|
20923
21506
|
}
|
|
20924
21507
|
}) : renderTextEllipsis(val);
|
|
20925
21508
|
}
|
|
20926
|
-
}, {
|
|
20927
|
-
dataIndex: 'outerOiId',
|
|
20928
|
-
title: '子订单号',
|
|
20929
|
-
width: 240,
|
|
20930
|
-
render: renderTextEllipsis
|
|
20931
21509
|
}].map(fillAttrs),
|
|
20932
|
-
|
|
20933
|
-
|
|
20934
|
-
|
|
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,
|
|
20935
21517
|
render: renderTextEllipsis
|
|
20936
21518
|
}, {
|
|
20937
|
-
dataIndex: '
|
|
20938
|
-
title:
|
|
21519
|
+
dataIndex: 'asiId',
|
|
21520
|
+
title: "\u552E\u540E\u5B50\u5355\u53F7",
|
|
21521
|
+
width: 200,
|
|
21522
|
+
align: 'center',
|
|
21523
|
+
ellipsis: true,
|
|
20939
21524
|
render: renderTextEllipsis
|
|
20940
21525
|
}, {
|
|
20941
|
-
dataIndex: '
|
|
20942
|
-
title:
|
|
21526
|
+
dataIndex: 'outerOiId',
|
|
21527
|
+
title: "\u5B50\u8BA2\u5355\u53F7",
|
|
21528
|
+
width: 200,
|
|
21529
|
+
align: 'center',
|
|
21530
|
+
ellipsis: true,
|
|
20943
21531
|
render: renderTextEllipsis
|
|
20944
21532
|
}, {
|
|
20945
21533
|
dataIndex: 'pic',
|
|
20946
|
-
title:
|
|
21534
|
+
title: "\u56FE\u7247",
|
|
20947
21535
|
width: 100,
|
|
21536
|
+
align: 'center',
|
|
20948
21537
|
render: function render(val) {
|
|
20949
21538
|
return /*#__PURE__*/React__default['default'].createElement(ApaasImage, {
|
|
20950
21539
|
width: 30,
|
|
20951
21540
|
src: val
|
|
20952
21541
|
});
|
|
20953
|
-
}
|
|
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
|
|
20954
21558
|
}, {
|
|
20955
21559
|
dataIndex: 'propertiesValue',
|
|
20956
|
-
title:
|
|
21560
|
+
title: "\u89C4\u683C\u5C5E\u6027\u503C",
|
|
21561
|
+
width: 200,
|
|
21562
|
+
align: 'center',
|
|
21563
|
+
ellipsis: true,
|
|
20957
21564
|
render: renderTextEllipsis
|
|
20958
21565
|
}, {
|
|
20959
|
-
dataIndex: '
|
|
20960
|
-
title:
|
|
20961
|
-
|
|
20962
|
-
|
|
20963
|
-
|
|
21566
|
+
dataIndex: 'qty',
|
|
21567
|
+
title: "\u7533\u8BF7\u6570\u91CF",
|
|
21568
|
+
width: 150,
|
|
21569
|
+
align: 'center',
|
|
21570
|
+
ellipsis: true,
|
|
21571
|
+
render: renderTextEllipsis
|
|
20964
21572
|
}, {
|
|
20965
|
-
dataIndex: '
|
|
20966
|
-
title:
|
|
20967
|
-
width:
|
|
20968
|
-
|
|
20969
|
-
|
|
20970
|
-
|
|
20971
|
-
|
|
20972
|
-
|
|
20973
|
-
|
|
20974
|
-
|
|
20975
|
-
|
|
20976
|
-
|
|
20977
|
-
|
|
20978
|
-
|
|
20979
|
-
|
|
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
|
+
}
|
|
20980
21656
|
}
|
|
20981
21657
|
}, {
|
|
20982
|
-
dataIndex: '
|
|
20983
|
-
title:
|
|
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
|
+
});
|
|
21744
|
+
}
|
|
21745
|
+
}, {
|
|
21746
|
+
dataIndex: 'num',
|
|
21747
|
+
title: "\u6570\u91CF",
|
|
20984
21748
|
width: 100,
|
|
20985
21749
|
render: function render(val, record, index) {
|
|
20986
|
-
return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
21750
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
20987
21751
|
style: {
|
|
20988
21752
|
width: 70
|
|
20989
21753
|
},
|
|
@@ -20991,216 +21755,212 @@ var getColumns$5 = function getColumns() {
|
|
|
20991
21755
|
min: 1,
|
|
20992
21756
|
precision: 0,
|
|
20993
21757
|
onChange: function onChange(num) {
|
|
20994
|
-
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, '
|
|
21758
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'num');
|
|
20995
21759
|
}
|
|
20996
21760
|
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
20997
21761
|
}
|
|
20998
21762
|
}, {
|
|
20999
|
-
dataIndex: '
|
|
21000
|
-
title:
|
|
21001
|
-
|
|
21002
|
-
return (record.qty || 0) * (+record.salePrice || 0);
|
|
21003
|
-
}
|
|
21004
|
-
}, {
|
|
21005
|
-
dataIndex: 'isGift',
|
|
21006
|
-
title: '是否赠品',
|
|
21007
|
-
width: 100,
|
|
21008
|
-
render: function render(val, record, index) {
|
|
21009
|
-
return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
21010
|
-
value: val,
|
|
21011
|
-
onChange: function onChange(value) {
|
|
21012
|
-
updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(value, index, 'isGift');
|
|
21013
|
-
},
|
|
21014
|
-
options: [{
|
|
21015
|
-
label: '是',
|
|
21016
|
-
value: true
|
|
21017
|
-
}, {
|
|
21018
|
-
label: '否',
|
|
21019
|
-
value: false
|
|
21020
|
-
}]
|
|
21021
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, typeof val !== 'boolean' ? '' : val ? '是' : '否');
|
|
21022
|
-
}
|
|
21023
|
-
}, {
|
|
21024
|
-
dataIndex: 'remark',
|
|
21025
|
-
title: '备注',
|
|
21763
|
+
dataIndex: 'payment',
|
|
21764
|
+
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
21765
|
+
width: 150,
|
|
21026
21766
|
render: function render(val, record, index) {
|
|
21027
|
-
return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.
|
|
21767
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
21028
21768
|
style: {
|
|
21029
|
-
width:
|
|
21769
|
+
width: 130
|
|
21030
21770
|
},
|
|
21031
21771
|
value: val,
|
|
21032
|
-
|
|
21033
|
-
|
|
21772
|
+
min: 0,
|
|
21773
|
+
precision: 2,
|
|
21774
|
+
onChange: function onChange(num) {
|
|
21775
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'payment');
|
|
21034
21776
|
}
|
|
21035
|
-
}) :
|
|
21777
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val || val === 0 ? Number(val).toFixed(2) : '');
|
|
21036
21778
|
}
|
|
21037
|
-
}].map(fillAttrs),
|
|
21038
|
-
// jst售后商品信息
|
|
21039
|
-
JST_AFTERSALE_GOODS: [{
|
|
21040
|
-
dataIndex: 'asId',
|
|
21041
|
-
title: "\u805A\u6C34\u6F6D\u552E\u540E\u5355\u53F7",
|
|
21042
|
-
width: 200,
|
|
21043
|
-
align: 'center',
|
|
21044
|
-
ellipsis: true,
|
|
21045
|
-
render: renderTextEllipsis
|
|
21046
|
-
}, {
|
|
21047
|
-
dataIndex: 'asiId',
|
|
21048
|
-
title: "\u552E\u540E\u5B50\u5355\u53F7",
|
|
21049
|
-
width: 200,
|
|
21050
|
-
align: 'center',
|
|
21051
|
-
ellipsis: true,
|
|
21052
|
-
render: renderTextEllipsis
|
|
21053
|
-
}, {
|
|
21054
|
-
dataIndex: 'outerOiId',
|
|
21055
|
-
title: "\u5B50\u8BA2\u5355\u53F7",
|
|
21056
|
-
width: 200,
|
|
21057
|
-
align: 'center',
|
|
21058
|
-
ellipsis: true,
|
|
21059
|
-
render: renderTextEllipsis
|
|
21060
21779
|
}, {
|
|
21061
|
-
dataIndex: '
|
|
21062
|
-
title: "\
|
|
21063
|
-
width:
|
|
21064
|
-
align: 'center',
|
|
21780
|
+
dataIndex: 'price',
|
|
21781
|
+
title: "\u5546\u54C1\u9500\u552E\u4EF7",
|
|
21782
|
+
width: 150,
|
|
21065
21783
|
render: function render(val) {
|
|
21066
|
-
return
|
|
21067
|
-
|
|
21068
|
-
src: val
|
|
21069
|
-
});
|
|
21070
|
-
},
|
|
21071
|
-
headerComponentType: 'pic'
|
|
21784
|
+
return val || val === 0 ? Number(val).toFixed(2) : '';
|
|
21785
|
+
}
|
|
21072
21786
|
}, {
|
|
21073
|
-
dataIndex: '
|
|
21074
|
-
title: "\u5546\u54C1\
|
|
21075
|
-
width:
|
|
21076
|
-
align: 'center',
|
|
21077
|
-
ellipsis: true,
|
|
21787
|
+
dataIndex: 'type',
|
|
21788
|
+
title: "\u5546\u54C1\u7C7B\u578B",
|
|
21789
|
+
width: 150,
|
|
21078
21790
|
render: renderTextEllipsis
|
|
21079
21791
|
}, {
|
|
21080
|
-
dataIndex: '
|
|
21081
|
-
title: "\u5546\
|
|
21082
|
-
width:
|
|
21083
|
-
align: 'center',
|
|
21084
|
-
ellipsis: true,
|
|
21792
|
+
dataIndex: 'supplierName',
|
|
21793
|
+
title: "\u4F9B\u5E94\u5546\u540D\u79F0",
|
|
21794
|
+
width: 150,
|
|
21085
21795
|
render: renderTextEllipsis
|
|
21086
21796
|
}, {
|
|
21087
|
-
dataIndex: '
|
|
21088
|
-
title: "\
|
|
21089
|
-
width:
|
|
21090
|
-
|
|
21091
|
-
|
|
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,
|
|
21092
21811
|
render: renderTextEllipsis
|
|
21093
21812
|
}, {
|
|
21094
|
-
dataIndex: '
|
|
21095
|
-
title: "\
|
|
21813
|
+
dataIndex: 'sysTitle',
|
|
21814
|
+
title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
|
|
21096
21815
|
width: 150,
|
|
21097
|
-
align: 'center',
|
|
21098
|
-
ellipsis: true,
|
|
21099
21816
|
render: renderTextEllipsis
|
|
21100
21817
|
}, {
|
|
21101
|
-
dataIndex: '
|
|
21102
|
-
title: "\
|
|
21818
|
+
dataIndex: 'shortTitle',
|
|
21819
|
+
title: "\u5546\u54C1\u7B80\u79F0",
|
|
21103
21820
|
width: 150,
|
|
21104
|
-
align: 'center',
|
|
21105
|
-
ellipsis: true,
|
|
21106
21821
|
render: renderTextEllipsis
|
|
21107
21822
|
}, {
|
|
21108
|
-
dataIndex: '
|
|
21109
|
-
title: "\
|
|
21823
|
+
dataIndex: 'title',
|
|
21824
|
+
title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
|
|
21110
21825
|
width: 150,
|
|
21111
|
-
align: 'center',
|
|
21112
|
-
ellipsis: true,
|
|
21113
21826
|
render: renderTextEllipsis
|
|
21114
21827
|
}, {
|
|
21115
|
-
dataIndex: '
|
|
21116
|
-
title: "\
|
|
21828
|
+
dataIndex: 'sysOuterId',
|
|
21829
|
+
title: "\u7CFB\u7EDF\u5546\u5BB6\u7F16\u7801",
|
|
21117
21830
|
width: 150,
|
|
21118
|
-
align: 'center',
|
|
21119
|
-
ellipsis: true,
|
|
21120
21831
|
render: renderTextEllipsis
|
|
21121
21832
|
}, {
|
|
21122
|
-
dataIndex: '
|
|
21123
|
-
title: "\
|
|
21833
|
+
dataIndex: 'itemSysId',
|
|
21834
|
+
title: "\u7CFB\u7EDF\u5546\u54C1ID",
|
|
21124
21835
|
width: 150,
|
|
21125
|
-
align: 'center',
|
|
21126
|
-
ellipsis: true,
|
|
21127
21836
|
render: renderTextEllipsis
|
|
21128
21837
|
}, {
|
|
21129
|
-
dataIndex: '
|
|
21130
|
-
title: "\
|
|
21838
|
+
dataIndex: 'skuSysId',
|
|
21839
|
+
title: "\u7CFB\u7EDF\u89C4\u683CID",
|
|
21131
21840
|
width: 150,
|
|
21132
|
-
align: 'center',
|
|
21133
|
-
ellipsis: true,
|
|
21134
21841
|
render: renderTextEllipsis
|
|
21135
21842
|
}, {
|
|
21136
|
-
dataIndex: '
|
|
21137
|
-
title: "\
|
|
21138
|
-
width:
|
|
21139
|
-
align: 'center',
|
|
21140
|
-
ellipsis: true,
|
|
21843
|
+
dataIndex: 'skuId',
|
|
21844
|
+
title: "\u5E73\u53F0\u89C4\u683CID",
|
|
21845
|
+
width: 170,
|
|
21141
21846
|
render: renderTextEllipsis
|
|
21142
21847
|
}, {
|
|
21143
|
-
dataIndex: '
|
|
21144
|
-
title: "\
|
|
21145
|
-
width:
|
|
21146
|
-
align: 'center',
|
|
21147
|
-
ellipsis: true,
|
|
21848
|
+
dataIndex: 'outerSkuId',
|
|
21849
|
+
title: "\u5E73\u53F0\u89C4\u683C\u7F16\u7801",
|
|
21850
|
+
width: 170,
|
|
21148
21851
|
render: renderTextEllipsis
|
|
21149
21852
|
}, {
|
|
21150
|
-
dataIndex: '
|
|
21151
|
-
title: "\
|
|
21152
|
-
width:
|
|
21153
|
-
|
|
21154
|
-
|
|
21155
|
-
|
|
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
|
+
}
|
|
21156
21923
|
}, {
|
|
21157
21924
|
dataIndex: 'type',
|
|
21158
|
-
title: "\
|
|
21925
|
+
title: "\u5546\u54C1\u7C7B\u578B",
|
|
21926
|
+
width: 150,
|
|
21927
|
+
render: renderTextEllipsis
|
|
21928
|
+
}, {
|
|
21929
|
+
dataIndex: 'supplierName',
|
|
21930
|
+
title: "\u4F9B\u5E94\u5546\u540D\u79F0",
|
|
21159
21931
|
width: 150,
|
|
21160
|
-
align: 'center',
|
|
21161
|
-
ellipsis: true,
|
|
21162
21932
|
render: renderTextEllipsis
|
|
21163
21933
|
}, {
|
|
21164
|
-
dataIndex: '
|
|
21165
|
-
title: "\u5546\
|
|
21934
|
+
dataIndex: 'supplierCode',
|
|
21935
|
+
title: "\u4F9B\u5E94\u5546\u7F16\u7801",
|
|
21166
21936
|
width: 150,
|
|
21167
|
-
align: 'center',
|
|
21168
|
-
ellipsis: true,
|
|
21169
21937
|
render: renderTextEllipsis
|
|
21170
21938
|
}, {
|
|
21171
|
-
dataIndex: '
|
|
21172
|
-
title:
|
|
21939
|
+
dataIndex: 'sysPicPath',
|
|
21940
|
+
title: "\u5546\u54C1\u56FE\u7247",
|
|
21173
21941
|
width: 100,
|
|
21174
21942
|
render: function render(val) {
|
|
21175
|
-
|
|
21176
|
-
|
|
21177
|
-
|
|
21178
|
-
|
|
21179
|
-
|
|
21180
|
-
},
|
|
21181
|
-
renderExport: function renderExport(val) {
|
|
21182
|
-
return typeof val !== 'boolean' ? '' : val ? '是' : '否';
|
|
21183
|
-
}
|
|
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
|
+
});
|
|
21184
21948
|
}
|
|
21185
|
-
}
|
|
21186
|
-
|
|
21187
|
-
|
|
21188
|
-
|
|
21189
|
-
|
|
21190
|
-
|
|
21191
|
-
render: renderTextEllipsis
|
|
21192
|
-
}, {
|
|
21193
|
-
dataIndex: 'remark',
|
|
21194
|
-
title: "\u660E\u7EC6\u5907\u6CE8",
|
|
21195
|
-
width: 200,
|
|
21196
|
-
align: 'center',
|
|
21197
|
-
ellipsis: true,
|
|
21198
|
-
render: renderTextEllipsis
|
|
21199
|
-
}]
|
|
21949
|
+
}].map(function (item) {
|
|
21950
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
21951
|
+
align: 'center',
|
|
21952
|
+
ellipsis: true
|
|
21953
|
+
});
|
|
21954
|
+
})
|
|
21200
21955
|
};
|
|
21201
21956
|
};
|
|
21202
21957
|
|
|
21203
|
-
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) {
|
|
21204
21964
|
if (typeof value === 'string') {
|
|
21205
21965
|
return value ? +value : void 0;
|
|
21206
21966
|
}
|
|
@@ -21209,69 +21969,117 @@ function toNum$3(value) {
|
|
|
21209
21969
|
}
|
|
21210
21970
|
return void 0;
|
|
21211
21971
|
}
|
|
21212
|
-
var getColumns$
|
|
21972
|
+
var getColumns$7 = function getColumns(_ref) {
|
|
21213
21973
|
var _ref$text = _ref.text,
|
|
21214
21974
|
disabled = _ref.disabled,
|
|
21215
|
-
updateHandle = _ref.updateHandle
|
|
21975
|
+
updateHandle = _ref.updateHandle,
|
|
21976
|
+
updateDataHandle = _ref.updateDataHandle;
|
|
21216
21977
|
return {
|
|
21217
|
-
|
|
21218
|
-
|
|
21219
|
-
|
|
21220
|
-
|
|
21978
|
+
//巨益商品信息
|
|
21979
|
+
JY_GOODS: [{
|
|
21980
|
+
dataIndex: 'productName',
|
|
21981
|
+
title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
|
|
21982
|
+
align: 'center',
|
|
21983
|
+
ellipsis: true,
|
|
21984
|
+
width: 150,
|
|
21221
21985
|
render: renderTextEllipsis
|
|
21222
21986
|
}, {
|
|
21223
|
-
dataIndex: '
|
|
21224
|
-
title: "\u7CFB\u7EDF\u5546\u54C1\
|
|
21987
|
+
dataIndex: 'productCode',
|
|
21988
|
+
title: "\u7CFB\u7EDF\u5546\u54C1\u7F16\u7801",
|
|
21989
|
+
align: 'center',
|
|
21990
|
+
ellipsis: true,
|
|
21225
21991
|
width: 150,
|
|
21226
21992
|
render: renderTextEllipsis
|
|
21227
21993
|
}, {
|
|
21228
|
-
dataIndex: '
|
|
21229
|
-
title: "\
|
|
21994
|
+
dataIndex: 'productId',
|
|
21995
|
+
title: "\u7CFB\u7EDF\u5546\u54C1ID",
|
|
21996
|
+
align: 'center',
|
|
21997
|
+
ellipsis: true,
|
|
21230
21998
|
width: 150,
|
|
21231
21999
|
render: renderTextEllipsis
|
|
21232
22000
|
}, {
|
|
21233
|
-
dataIndex: '
|
|
21234
|
-
title: "\
|
|
22001
|
+
dataIndex: 'skuName',
|
|
22002
|
+
title: "\u7CFB\u7EDF\u89C4\u683C\u540D\u79F0",
|
|
22003
|
+
align: 'center',
|
|
22004
|
+
ellipsis: true,
|
|
21235
22005
|
width: 150,
|
|
21236
22006
|
render: renderTextEllipsis
|
|
21237
22007
|
}, {
|
|
21238
|
-
dataIndex: '
|
|
21239
|
-
title: "\u7CFB\u7EDF\
|
|
22008
|
+
dataIndex: 'skuCode',
|
|
22009
|
+
title: "\u7CFB\u7EDF\u89C4\u683C\u7F16\u7801",
|
|
22010
|
+
align: 'center',
|
|
22011
|
+
ellipsis: true,
|
|
21240
22012
|
width: 150,
|
|
21241
22013
|
render: renderTextEllipsis
|
|
21242
22014
|
}, {
|
|
21243
|
-
dataIndex: '
|
|
21244
|
-
title: "\
|
|
22015
|
+
dataIndex: 'specId',
|
|
22016
|
+
title: "\u89C4\u683CID",
|
|
22017
|
+
align: 'center',
|
|
22018
|
+
ellipsis: true,
|
|
21245
22019
|
width: 150,
|
|
21246
22020
|
render: renderTextEllipsis
|
|
21247
22021
|
}, {
|
|
21248
|
-
dataIndex: '
|
|
21249
|
-
title: "\
|
|
21250
|
-
width:
|
|
22022
|
+
dataIndex: 'goodsClass',
|
|
22023
|
+
title: "\u8D27\u54C1\u7C7B\u522B",
|
|
22024
|
+
width: 150,
|
|
21251
22025
|
render: renderTextEllipsis
|
|
21252
22026
|
}, {
|
|
21253
|
-
dataIndex: '
|
|
21254
|
-
title: "\
|
|
21255
|
-
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,
|
|
21256
22052
|
render: renderTextEllipsis
|
|
21257
22053
|
}, {
|
|
21258
|
-
dataIndex: '
|
|
21259
|
-
title: "\
|
|
22054
|
+
dataIndex: 'mallProductOutCode',
|
|
22055
|
+
title: "\u5E73\u53F0\u5546\u54C1\u7F16\u7801",
|
|
22056
|
+
align: 'center',
|
|
22057
|
+
ellipsis: true,
|
|
21260
22058
|
width: 150,
|
|
21261
22059
|
render: renderTextEllipsis
|
|
21262
22060
|
}, {
|
|
21263
|
-
dataIndex: '
|
|
21264
|
-
title: "\
|
|
21265
|
-
|
|
21266
|
-
|
|
21267
|
-
|
|
21268
|
-
|
|
21269
|
-
width: 30,
|
|
21270
|
-
src: imgUrl
|
|
21271
|
-
});
|
|
21272
|
-
}
|
|
22061
|
+
dataIndex: 'mallProductId',
|
|
22062
|
+
title: "\u5E73\u53F0\u5546\u54C1ID",
|
|
22063
|
+
align: 'center',
|
|
22064
|
+
ellipsis: true,
|
|
22065
|
+
width: 250,
|
|
22066
|
+
render: renderTextEllipsis
|
|
21273
22067
|
}, {
|
|
21274
|
-
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',
|
|
21275
22083
|
title: "\u6570\u91CF",
|
|
21276
22084
|
width: 100,
|
|
21277
22085
|
render: function render(val, record, index) {
|
|
@@ -21283,13 +22091,16 @@ var getColumns$6 = function getColumns(_ref) {
|
|
|
21283
22091
|
min: 1,
|
|
21284
22092
|
precision: 0,
|
|
21285
22093
|
onChange: function onChange(num) {
|
|
21286
|
-
|
|
22094
|
+
updateDataHandle({
|
|
22095
|
+
sellCount: num,
|
|
22096
|
+
sellTotal: num && isNumberOrNumberString$2(record.sellPrice) ? num * record.sellPrice : null
|
|
22097
|
+
}, index);
|
|
21287
22098
|
}
|
|
21288
22099
|
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
21289
22100
|
}
|
|
21290
22101
|
}, {
|
|
21291
|
-
dataIndex: '
|
|
21292
|
-
title: "\
|
|
22102
|
+
dataIndex: 'sellPrice',
|
|
22103
|
+
title: "\u5355\u4EF7",
|
|
21293
22104
|
width: 150,
|
|
21294
22105
|
render: function render(val, record, index) {
|
|
21295
22106
|
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
@@ -21300,98 +22111,198 @@ var getColumns$6 = function getColumns(_ref) {
|
|
|
21300
22111
|
min: 0,
|
|
21301
22112
|
precision: 2,
|
|
21302
22113
|
onChange: function onChange(num) {
|
|
21303
|
-
|
|
22114
|
+
updateDataHandle({
|
|
22115
|
+
sellPrice: num,
|
|
22116
|
+
sellTotal: num && isNumberOrNumberString$2(record.sellCount) ? num * record.sellCount : null
|
|
22117
|
+
}, index);
|
|
21304
22118
|
}
|
|
21305
|
-
}) : /*#__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' ? '是' : '否');
|
|
21306
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
|
|
21307
22211
|
}, {
|
|
21308
|
-
dataIndex: '
|
|
21309
|
-
title: "\u5546\u54C1\
|
|
22212
|
+
dataIndex: 'productCode',
|
|
22213
|
+
title: "\u7CFB\u7EDF\u5546\u54C1\u7F16\u7801",
|
|
22214
|
+
align: 'center',
|
|
22215
|
+
ellipsis: true,
|
|
21310
22216
|
width: 150,
|
|
21311
|
-
render:
|
|
21312
|
-
return val || val === 0 ? Number(val).toFixed(2) : '';
|
|
21313
|
-
}
|
|
22217
|
+
render: renderTextEllipsis
|
|
21314
22218
|
}, {
|
|
21315
|
-
dataIndex: '
|
|
21316
|
-
title: "\
|
|
22219
|
+
dataIndex: 'productId',
|
|
22220
|
+
title: "\u7CFB\u7EDF\u5546\u54C1ID",
|
|
22221
|
+
align: 'center',
|
|
22222
|
+
ellipsis: true,
|
|
21317
22223
|
width: 150,
|
|
21318
22224
|
render: renderTextEllipsis
|
|
21319
22225
|
}, {
|
|
21320
|
-
dataIndex: '
|
|
21321
|
-
title: "\
|
|
22226
|
+
dataIndex: 'skuName',
|
|
22227
|
+
title: "\u7CFB\u7EDF\u89C4\u683C\u540D\u79F0",
|
|
22228
|
+
align: 'center',
|
|
22229
|
+
ellipsis: true,
|
|
21322
22230
|
width: 150,
|
|
21323
22231
|
render: renderTextEllipsis
|
|
21324
22232
|
}, {
|
|
21325
|
-
dataIndex: '
|
|
21326
|
-
title: "\
|
|
22233
|
+
dataIndex: 'skuCode',
|
|
22234
|
+
title: "\u7CFB\u7EDF\u89C4\u683C\u7F16\u7801",
|
|
22235
|
+
align: 'center',
|
|
22236
|
+
ellipsis: true,
|
|
21327
22237
|
width: 150,
|
|
21328
22238
|
render: renderTextEllipsis
|
|
21329
|
-
}
|
|
21330
|
-
|
|
21331
|
-
|
|
21332
|
-
|
|
21333
|
-
|
|
21334
|
-
|
|
21335
|
-
KM_REISSUE_GOODS: [{
|
|
21336
|
-
dataIndex: 'skuPropertiesName',
|
|
21337
|
-
title: "\u89C4\u683C\u540D\u79F0",
|
|
21338
|
-
width: 250,
|
|
22239
|
+
}, {
|
|
22240
|
+
dataIndex: 'specId',
|
|
22241
|
+
title: "\u89C4\u683CID",
|
|
22242
|
+
align: 'center',
|
|
22243
|
+
ellipsis: true,
|
|
22244
|
+
width: 150,
|
|
21339
22245
|
render: renderTextEllipsis
|
|
21340
22246
|
}, {
|
|
21341
|
-
dataIndex: '
|
|
21342
|
-
title: "\
|
|
22247
|
+
dataIndex: 'goodsClass',
|
|
22248
|
+
title: "\u8D27\u54C1\u7C7B\u522B",
|
|
21343
22249
|
width: 150,
|
|
21344
22250
|
render: renderTextEllipsis
|
|
21345
22251
|
}, {
|
|
21346
|
-
dataIndex: '
|
|
21347
|
-
title: "\
|
|
22252
|
+
dataIndex: 'code',
|
|
22253
|
+
title: "\u6761\u7801",
|
|
21348
22254
|
width: 150,
|
|
21349
22255
|
render: renderTextEllipsis
|
|
21350
22256
|
}, {
|
|
21351
|
-
dataIndex: '
|
|
22257
|
+
dataIndex: 'mallProductName',
|
|
21352
22258
|
title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
|
|
22259
|
+
align: 'center',
|
|
22260
|
+
ellipsis: true,
|
|
21353
22261
|
width: 150,
|
|
21354
22262
|
render: renderTextEllipsis
|
|
21355
22263
|
}, {
|
|
21356
|
-
dataIndex: '
|
|
21357
|
-
title: "\
|
|
22264
|
+
dataIndex: 'mallProductOutCode',
|
|
22265
|
+
title: "\u5E73\u53F0\u5546\u54C1\u7F16\u7801",
|
|
22266
|
+
align: 'center',
|
|
22267
|
+
ellipsis: true,
|
|
21358
22268
|
width: 150,
|
|
21359
22269
|
render: renderTextEllipsis
|
|
21360
22270
|
}, {
|
|
21361
|
-
dataIndex: '
|
|
21362
|
-
title: "\
|
|
22271
|
+
dataIndex: 'mallProductId',
|
|
22272
|
+
title: "\u5E73\u53F0\u5546\u54C1ID",
|
|
22273
|
+
align: 'center',
|
|
22274
|
+
ellipsis: true,
|
|
21363
22275
|
width: 150,
|
|
21364
22276
|
render: renderTextEllipsis
|
|
21365
22277
|
}, {
|
|
21366
|
-
dataIndex: '
|
|
21367
|
-
title: "\
|
|
22278
|
+
dataIndex: 'mallSkuName',
|
|
22279
|
+
title: "\u5E73\u53F0\u89C4\u683C\u540D\u79F0",
|
|
22280
|
+
align: 'center',
|
|
22281
|
+
ellipsis: true,
|
|
21368
22282
|
width: 150,
|
|
21369
22283
|
render: renderTextEllipsis
|
|
21370
22284
|
}, {
|
|
21371
|
-
dataIndex: '
|
|
22285
|
+
dataIndex: 'mallSkuId',
|
|
21372
22286
|
title: "\u5E73\u53F0\u89C4\u683CID",
|
|
21373
|
-
|
|
21374
|
-
|
|
21375
|
-
|
|
21376
|
-
dataIndex: 'outerSkuId',
|
|
21377
|
-
title: "\u5E73\u53F0\u89C4\u683C\u7F16\u7801",
|
|
21378
|
-
width: 170,
|
|
22287
|
+
align: 'center',
|
|
22288
|
+
ellipsis: true,
|
|
22289
|
+
width: 150,
|
|
21379
22290
|
render: renderTextEllipsis
|
|
21380
22291
|
}, {
|
|
21381
|
-
dataIndex: '
|
|
21382
|
-
title: "\
|
|
22292
|
+
dataIndex: 'sellCount',
|
|
22293
|
+
title: "\u6570\u91CF",
|
|
21383
22294
|
width: 100,
|
|
21384
22295
|
validator: function validator(_rule, value) {
|
|
21385
|
-
var
|
|
21386
|
-
if (((value === null || value === void 0 ? void 0 : value.
|
|
21387
|
-
var
|
|
21388
|
-
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;
|
|
21389
22300
|
if (res) {
|
|
21390
|
-
|
|
22301
|
+
productName = (goods === null || goods === void 0 ? void 0 : goods.productName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.productName, "]") : '';
|
|
21391
22302
|
}
|
|
21392
22303
|
return res;
|
|
21393
22304
|
})) {
|
|
21394
|
-
return Promise.reject("".concat(
|
|
22305
|
+
return Promise.reject("".concat(productName, "\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
|
|
21395
22306
|
}
|
|
21396
22307
|
},
|
|
21397
22308
|
render: function render(val, record, index) {
|
|
@@ -21403,76 +22314,88 @@ var getColumns$6 = function getColumns(_ref) {
|
|
|
21403
22314
|
min: 1,
|
|
21404
22315
|
precision: 0,
|
|
21405
22316
|
onChange: function onChange(num) {
|
|
21406
|
-
|
|
22317
|
+
updateDataHandle({
|
|
22318
|
+
sellCount: num,
|
|
22319
|
+
sellTotal: num && isNumberOrNumberString$2(record.sellPrice) ? num * record.sellPrice : null
|
|
22320
|
+
}, index);
|
|
21407
22321
|
}
|
|
21408
22322
|
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
21409
22323
|
}
|
|
21410
22324
|
}, {
|
|
21411
|
-
dataIndex: '
|
|
21412
|
-
title: "\
|
|
21413
|
-
width:
|
|
22325
|
+
dataIndex: 'sellPrice',
|
|
22326
|
+
title: "\u5355\u4EF7",
|
|
22327
|
+
width: 150,
|
|
21414
22328
|
render: function render(val, record, index) {
|
|
21415
22329
|
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
21416
22330
|
style: {
|
|
21417
|
-
width:
|
|
22331
|
+
width: 130
|
|
21418
22332
|
},
|
|
21419
22333
|
value: val,
|
|
21420
|
-
min:
|
|
21421
|
-
precision:
|
|
22334
|
+
min: 0,
|
|
22335
|
+
precision: 2,
|
|
21422
22336
|
onChange: function onChange(num) {
|
|
21423
|
-
|
|
22337
|
+
updateDataHandle({
|
|
22338
|
+
sellPrice: num,
|
|
22339
|
+
sellTotal: num && isNumberOrNumberString$2(record.sellCount) ? num * record.sellCount : null
|
|
22340
|
+
}, index);
|
|
21424
22341
|
}
|
|
21425
22342
|
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
21426
22343
|
}
|
|
21427
22344
|
}, {
|
|
21428
|
-
dataIndex: '
|
|
21429
|
-
title: "\u5546\u54C1\
|
|
21430
|
-
width: 150
|
|
21431
|
-
render: function render(val) {
|
|
21432
|
-
return val || val === 0 ? Number(val).toFixed(2) : '';
|
|
21433
|
-
}
|
|
22345
|
+
dataIndex: 'mallSellingPrice',
|
|
22346
|
+
title: "\u5E73\u53F0\u5546\u54C1\u4EF7\u683C",
|
|
22347
|
+
width: 150
|
|
21434
22348
|
}, {
|
|
21435
|
-
dataIndex: '
|
|
21436
|
-
title: "\
|
|
22349
|
+
dataIndex: 'sellTotal',
|
|
22350
|
+
title: "\u91D1\u989D",
|
|
22351
|
+
width: 150
|
|
22352
|
+
}, {
|
|
22353
|
+
dataIndex: 'bfit',
|
|
22354
|
+
title: "\u662F\u5426\u7EC4\u5408\u88C5",
|
|
21437
22355
|
width: 150,
|
|
21438
22356
|
render: function render(val, record, index) {
|
|
21439
|
-
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.
|
|
21440
|
-
style: {
|
|
21441
|
-
width: 130
|
|
21442
|
-
},
|
|
22357
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
21443
22358
|
value: val,
|
|
21444
|
-
|
|
21445
|
-
|
|
21446
|
-
|
|
21447
|
-
|
|
21448
|
-
|
|
21449
|
-
|
|
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' ? '是' : '否');
|
|
21450
22370
|
}
|
|
21451
22371
|
}, {
|
|
21452
|
-
dataIndex: '
|
|
21453
|
-
title: "\u5546\u54C1\
|
|
22372
|
+
dataIndex: 'combinationName',
|
|
22373
|
+
title: "\u7EC4\u5408\u5546\u54C1\u540D\u79F0",
|
|
21454
22374
|
width: 150,
|
|
21455
22375
|
render: renderTextEllipsis
|
|
21456
22376
|
}, {
|
|
21457
|
-
dataIndex: '
|
|
21458
|
-
title: "\
|
|
22377
|
+
dataIndex: 'combinationCode',
|
|
22378
|
+
title: "\u7EC4\u5408\u5546\u54C1\u7F16\u7801",
|
|
21459
22379
|
width: 150,
|
|
21460
22380
|
render: renderTextEllipsis
|
|
21461
22381
|
}, {
|
|
21462
|
-
dataIndex: '
|
|
21463
|
-
title: "\
|
|
22382
|
+
dataIndex: 'gift',
|
|
22383
|
+
title: "\u662F\u5426\u8D60\u54C1",
|
|
21464
22384
|
width: 150,
|
|
21465
|
-
render:
|
|
21466
|
-
|
|
21467
|
-
|
|
21468
|
-
|
|
21469
|
-
|
|
21470
|
-
|
|
21471
|
-
|
|
21472
|
-
|
|
21473
|
-
|
|
21474
|
-
|
|
21475
|
-
|
|
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' ? '是' : '否');
|
|
21476
22399
|
}
|
|
21477
22400
|
}].map(function (item) {
|
|
21478
22401
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
@@ -21483,12 +22406,54 @@ var getColumns$6 = function getColumns(_ref) {
|
|
|
21483
22406
|
};
|
|
21484
22407
|
};
|
|
21485
22408
|
|
|
21486
|
-
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) {
|
|
21487
22452
|
if (typeof value === 'number') return true;
|
|
21488
22453
|
if (typeof value === 'string' && !isNaN(Number(value)) && value.trim() !== '') return true;
|
|
21489
22454
|
return false;
|
|
21490
22455
|
};
|
|
21491
|
-
function toNum$
|
|
22456
|
+
function toNum$5(value) {
|
|
21492
22457
|
if (typeof value === 'string') {
|
|
21493
22458
|
return value ? +value : void 0;
|
|
21494
22459
|
}
|
|
@@ -21497,44 +22462,44 @@ function toNum$4(value) {
|
|
|
21497
22462
|
}
|
|
21498
22463
|
return void 0;
|
|
21499
22464
|
}
|
|
21500
|
-
var getColumns$
|
|
22465
|
+
var getColumns$9 = function getColumns(_ref) {
|
|
21501
22466
|
var _ref$text = _ref.text,
|
|
21502
22467
|
disabled = _ref.disabled,
|
|
21503
22468
|
updateHandle = _ref.updateHandle,
|
|
21504
22469
|
updateDataHandle = _ref.updateDataHandle;
|
|
21505
22470
|
return {
|
|
21506
|
-
|
|
21507
|
-
|
|
21508
|
-
dataIndex: '
|
|
21509
|
-
title: "\
|
|
22471
|
+
//吉客云商品信息
|
|
22472
|
+
JKY_GOODS: [{
|
|
22473
|
+
dataIndex: 'goodsNo',
|
|
22474
|
+
title: "\u8D27\u54C1\u7F16\u53F7",
|
|
21510
22475
|
align: 'center',
|
|
21511
22476
|
ellipsis: true,
|
|
21512
22477
|
width: 150,
|
|
21513
22478
|
render: renderTextEllipsis
|
|
21514
22479
|
}, {
|
|
21515
|
-
dataIndex: '
|
|
21516
|
-
title: "\
|
|
22480
|
+
dataIndex: 'goodsName',
|
|
22481
|
+
title: "\u8D27\u54C1\u540D\u79F0",
|
|
21517
22482
|
align: 'center',
|
|
21518
22483
|
ellipsis: true,
|
|
21519
22484
|
width: 150,
|
|
21520
22485
|
render: renderTextEllipsis
|
|
21521
22486
|
}, {
|
|
21522
|
-
dataIndex: '
|
|
21523
|
-
title: "\
|
|
22487
|
+
dataIndex: 'goodsId',
|
|
22488
|
+
title: "\u8D27\u54C1ID",
|
|
21524
22489
|
align: 'center',
|
|
21525
22490
|
ellipsis: true,
|
|
21526
22491
|
width: 150,
|
|
21527
22492
|
render: renderTextEllipsis
|
|
21528
22493
|
}, {
|
|
21529
|
-
dataIndex: '
|
|
21530
|
-
title: "\
|
|
22494
|
+
dataIndex: 'barcode',
|
|
22495
|
+
title: "\u8D27\u54C1\u6761\u7801",
|
|
21531
22496
|
align: 'center',
|
|
21532
22497
|
ellipsis: true,
|
|
21533
22498
|
width: 150,
|
|
21534
22499
|
render: renderTextEllipsis
|
|
21535
22500
|
}, {
|
|
21536
|
-
dataIndex: '
|
|
21537
|
-
title: "\
|
|
22501
|
+
dataIndex: 'specName',
|
|
22502
|
+
title: "\u89C4\u683C\u540D\u79F0",
|
|
21538
22503
|
align: 'center',
|
|
21539
22504
|
ellipsis: true,
|
|
21540
22505
|
width: 150,
|
|
@@ -21546,82 +22511,18 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
21546
22511
|
ellipsis: true,
|
|
21547
22512
|
width: 150,
|
|
21548
22513
|
render: renderTextEllipsis
|
|
21549
|
-
},
|
|
21550
|
-
// {
|
|
21551
|
-
// dataIndex: 'goodsName',
|
|
21552
|
-
// title: `货品名称`,
|
|
21553
|
-
// width: 250,
|
|
21554
|
-
// },
|
|
21555
|
-
// {
|
|
21556
|
-
// dataIndex: 'goodsCode',
|
|
21557
|
-
// title: `货品编号`,
|
|
21558
|
-
// width: 200,
|
|
21559
|
-
// },
|
|
21560
|
-
// {
|
|
21561
|
-
// dataIndex: 'goodsId',
|
|
21562
|
-
// title: `货品ID`,
|
|
21563
|
-
// width: 150,
|
|
21564
|
-
// },
|
|
21565
|
-
{
|
|
21566
|
-
dataIndex: 'goodsClass',
|
|
21567
|
-
title: "\u8D27\u54C1\u7C7B\u522B",
|
|
21568
|
-
width: 150,
|
|
21569
|
-
render: renderTextEllipsis
|
|
21570
|
-
}, {
|
|
21571
|
-
dataIndex: 'code',
|
|
21572
|
-
title: "\u6761\u7801",
|
|
21573
|
-
width: 150,
|
|
21574
|
-
render: renderTextEllipsis
|
|
21575
|
-
},
|
|
21576
|
-
// {
|
|
21577
|
-
// dataIndex: 'specName',
|
|
21578
|
-
// title: `规格名称`,
|
|
21579
|
-
// align: 'center',
|
|
21580
|
-
// ellipsis: true,
|
|
21581
|
-
// width: 200,
|
|
21582
|
-
// },
|
|
21583
|
-
// {
|
|
21584
|
-
// dataIndex: 'specCode',
|
|
21585
|
-
// title: `规格编号`,
|
|
21586
|
-
// align: 'center',
|
|
21587
|
-
// ellipsis: true,
|
|
21588
|
-
// width: 150,
|
|
21589
|
-
// },
|
|
21590
|
-
{
|
|
21591
|
-
dataIndex: 'mallProductName',
|
|
21592
|
-
title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
|
|
21593
|
-
align: 'center',
|
|
21594
|
-
ellipsis: true,
|
|
21595
|
-
width: 250,
|
|
21596
|
-
render: renderTextEllipsis
|
|
21597
22514
|
}, {
|
|
21598
|
-
dataIndex: '
|
|
21599
|
-
title: "\
|
|
22515
|
+
dataIndex: 'skuImgUrl',
|
|
22516
|
+
title: "\u89C4\u683C\u56FE\u7247",
|
|
21600
22517
|
align: 'center',
|
|
21601
22518
|
ellipsis: true,
|
|
21602
22519
|
width: 150,
|
|
21603
|
-
render:
|
|
21604
|
-
|
|
21605
|
-
|
|
21606
|
-
|
|
21607
|
-
|
|
21608
|
-
|
|
21609
|
-
width: 250,
|
|
21610
|
-
render: renderTextEllipsis
|
|
21611
|
-
}, {
|
|
21612
|
-
dataIndex: 'mallSkuName',
|
|
21613
|
-
title: "\u5E73\u53F0\u89C4\u683C\u540D\u79F0",
|
|
21614
|
-
align: 'center',
|
|
21615
|
-
ellipsis: true,
|
|
21616
|
-
width: 250,
|
|
21617
|
-
render: renderTextEllipsis
|
|
21618
|
-
}, {
|
|
21619
|
-
dataIndex: 'mallSkuId',
|
|
21620
|
-
title: "\u5E73\u53F0\u89C4\u683CID",
|
|
21621
|
-
align: 'center',
|
|
21622
|
-
ellipsis: true,
|
|
21623
|
-
width: 250,
|
|
21624
|
-
render: renderTextEllipsis
|
|
22520
|
+
render: function render(val) {
|
|
22521
|
+
return /*#__PURE__*/React__default['default'].createElement(ApaasImage, {
|
|
22522
|
+
width: 30,
|
|
22523
|
+
src: val
|
|
22524
|
+
});
|
|
22525
|
+
}
|
|
21625
22526
|
}, {
|
|
21626
22527
|
dataIndex: 'sellCount',
|
|
21627
22528
|
title: "\u6570\u91CF",
|
|
@@ -21637,11 +22538,16 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
21637
22538
|
onChange: function onChange(num) {
|
|
21638
22539
|
updateDataHandle({
|
|
21639
22540
|
sellCount: num,
|
|
21640
|
-
sellTotal: num && isNumberOrNumberString$
|
|
22541
|
+
sellTotal: num && isNumberOrNumberString$3(record.sellPrice) ? num * record.sellPrice : null
|
|
21641
22542
|
}, index);
|
|
21642
22543
|
}
|
|
21643
22544
|
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
21644
22545
|
}
|
|
22546
|
+
}, {
|
|
22547
|
+
dataIndex: 'actualSendCount',
|
|
22548
|
+
title: "\u5B9E\u53D1\u6570\u91CF",
|
|
22549
|
+
width: 150,
|
|
22550
|
+
render: renderTextEllipsis
|
|
21645
22551
|
}, {
|
|
21646
22552
|
dataIndex: 'sellPrice',
|
|
21647
22553
|
title: "\u5355\u4EF7",
|
|
@@ -21657,30 +22563,57 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
21657
22563
|
onChange: function onChange(num) {
|
|
21658
22564
|
updateDataHandle({
|
|
21659
22565
|
sellPrice: num,
|
|
21660
|
-
sellTotal: num && isNumberOrNumberString$
|
|
22566
|
+
sellTotal: num && isNumberOrNumberString$3(record.sellCount) ? num * record.sellCount : null
|
|
21661
22567
|
}, index);
|
|
21662
22568
|
}
|
|
21663
22569
|
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
21664
22570
|
}
|
|
21665
22571
|
}, {
|
|
21666
|
-
dataIndex: '
|
|
21667
|
-
title: "\
|
|
22572
|
+
dataIndex: 'sellTotal',
|
|
22573
|
+
title: "\u603B\u91D1\u989D",
|
|
21668
22574
|
width: 150
|
|
21669
22575
|
}, {
|
|
21670
|
-
dataIndex: '
|
|
21671
|
-
title: "\u91D1\u989D",
|
|
22576
|
+
dataIndex: 'discountTotal',
|
|
22577
|
+
title: "\u62B5\u6263\u91D1\u989D",
|
|
21672
22578
|
width: 150
|
|
21673
22579
|
}, {
|
|
21674
|
-
dataIndex: '
|
|
21675
|
-
title: "\
|
|
22580
|
+
dataIndex: 'shareFavourableFee',
|
|
22581
|
+
title: "\u5206\u644A\u91D1\u989D",
|
|
21676
22582
|
width: 150
|
|
21677
22583
|
}, {
|
|
21678
|
-
dataIndex: '
|
|
21679
|
-
title: "\u5206\u644A\
|
|
22584
|
+
dataIndex: 'shareFavourableAfterFee',
|
|
22585
|
+
title: "\u5206\u644A\u540E\u91D1\u989D",
|
|
21680
22586
|
width: 150
|
|
21681
22587
|
}, {
|
|
21682
|
-
dataIndex: '
|
|
21683
|
-
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",
|
|
21684
22617
|
width: 150,
|
|
21685
22618
|
render: function render(val, record, index) {
|
|
21686
22619
|
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
@@ -21692,30 +22625,45 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
21692
22625
|
},
|
|
21693
22626
|
value: val,
|
|
21694
22627
|
onChange: function onChange(value) {
|
|
21695
|
-
updateHandle(value, index, '
|
|
22628
|
+
updateHandle(value, index, 'isGift');
|
|
21696
22629
|
},
|
|
21697
22630
|
options: [{
|
|
21698
22631
|
label: '是',
|
|
21699
|
-
value:
|
|
22632
|
+
value: 1
|
|
21700
22633
|
}, {
|
|
21701
22634
|
label: '否',
|
|
21702
|
-
value:
|
|
22635
|
+
value: 0
|
|
21703
22636
|
}]
|
|
21704
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val
|
|
22637
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val == 1 ? '是' : '否');
|
|
21705
22638
|
}
|
|
21706
22639
|
}, {
|
|
21707
|
-
dataIndex: '
|
|
21708
|
-
title: "\u7EC4\u5408\
|
|
21709
|
-
width: 150,
|
|
21710
|
-
render: renderTextEllipsis
|
|
21711
|
-
}, {
|
|
21712
|
-
dataIndex: 'combinationCode',
|
|
21713
|
-
title: "\u7EC4\u5408\u5546\u54C1\u7F16\u7801",
|
|
22640
|
+
dataIndex: 'isFit',
|
|
22641
|
+
title: "\u662F\u5426\u7EC4\u5408\u88C5",
|
|
21714
22642
|
width: 150,
|
|
21715
|
-
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
|
+
}
|
|
21716
22664
|
}, {
|
|
21717
|
-
dataIndex: '
|
|
21718
|
-
title: "\u662F\u5426\
|
|
22665
|
+
dataIndex: 'isPresell',
|
|
22666
|
+
title: "\u662F\u5426\u9884\u552E\u8D27\u54C1",
|
|
21719
22667
|
width: 150,
|
|
21720
22668
|
render: function render(val, record, index) {
|
|
21721
22669
|
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
@@ -21727,7 +22675,7 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
21727
22675
|
},
|
|
21728
22676
|
value: val,
|
|
21729
22677
|
onChange: function onChange(value) {
|
|
21730
|
-
updateHandle(value, index, '
|
|
22678
|
+
updateHandle(value, index, 'isPresell');
|
|
21731
22679
|
},
|
|
21732
22680
|
options: [{
|
|
21733
22681
|
label: '是',
|
|
@@ -21736,121 +22684,175 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
21736
22684
|
label: '否',
|
|
21737
22685
|
value: '0'
|
|
21738
22686
|
}]
|
|
21739
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val
|
|
22687
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val == '1' ? '是' : '否');
|
|
21740
22688
|
}
|
|
21741
|
-
}
|
|
21742
|
-
|
|
21743
|
-
|
|
21744
|
-
ellipsis: true
|
|
21745
|
-
});
|
|
21746
|
-
}),
|
|
21747
|
-
// 巨益补发商品信息
|
|
21748
|
-
JY_REISSUE_GOODS: [{
|
|
21749
|
-
dataIndex: 'productName',
|
|
21750
|
-
title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
|
|
22689
|
+
}, {
|
|
22690
|
+
dataIndex: 'brandName',
|
|
22691
|
+
title: "\u54C1\u724C",
|
|
21751
22692
|
align: 'center',
|
|
21752
22693
|
ellipsis: true,
|
|
21753
|
-
width:
|
|
22694
|
+
width: 200,
|
|
21754
22695
|
render: renderTextEllipsis
|
|
21755
22696
|
}, {
|
|
21756
|
-
dataIndex: '
|
|
21757
|
-
title: "\
|
|
22697
|
+
dataIndex: 'cateName',
|
|
22698
|
+
title: "\u8D27\u54C1\u7C7B\u522B",
|
|
21758
22699
|
align: 'center',
|
|
21759
22700
|
ellipsis: true,
|
|
21760
22701
|
width: 150,
|
|
21761
22702
|
render: renderTextEllipsis
|
|
21762
22703
|
}, {
|
|
21763
|
-
dataIndex: '
|
|
21764
|
-
title: "\
|
|
22704
|
+
dataIndex: 'goodsTags',
|
|
22705
|
+
title: "\u8D27\u54C1\u6807\u7B7E",
|
|
21765
22706
|
align: 'center',
|
|
21766
22707
|
ellipsis: true,
|
|
21767
|
-
width:
|
|
22708
|
+
width: 250,
|
|
21768
22709
|
render: renderTextEllipsis
|
|
21769
22710
|
}, {
|
|
21770
|
-
dataIndex: '
|
|
21771
|
-
title: "\
|
|
22711
|
+
dataIndex: 'goodsMemo',
|
|
22712
|
+
title: "\u8D27\u54C1\u5907\u6CE8",
|
|
21772
22713
|
align: 'center',
|
|
21773
22714
|
ellipsis: true,
|
|
21774
|
-
width:
|
|
22715
|
+
width: 250,
|
|
21775
22716
|
render: renderTextEllipsis
|
|
21776
22717
|
}, {
|
|
21777
|
-
dataIndex: '
|
|
21778
|
-
title: "\
|
|
22718
|
+
dataIndex: 'tradeGoodsNo',
|
|
22719
|
+
title: "\u4EA4\u6613\u8D27\u54C1\u7F16\u53F7",
|
|
21779
22720
|
align: 'center',
|
|
21780
22721
|
ellipsis: true,
|
|
21781
|
-
width:
|
|
22722
|
+
width: 250,
|
|
21782
22723
|
render: renderTextEllipsis
|
|
21783
22724
|
}, {
|
|
21784
|
-
dataIndex: '
|
|
21785
|
-
title: "\
|
|
21786
|
-
align: 'center',
|
|
22725
|
+
dataIndex: 'tradeGoodsName',
|
|
22726
|
+
title: "\u4EA4\u6613\u8D27\u54C1\u540D\u79F0",
|
|
21787
22727
|
ellipsis: true,
|
|
21788
|
-
width:
|
|
22728
|
+
width: 250,
|
|
21789
22729
|
render: renderTextEllipsis
|
|
21790
22730
|
}, {
|
|
21791
|
-
dataIndex: '
|
|
21792
|
-
title: "\
|
|
21793
|
-
|
|
22731
|
+
dataIndex: 'tradeGoodsSpec',
|
|
22732
|
+
title: "\u4EA4\u6613\u89C4\u683C\u540D\u79F0",
|
|
22733
|
+
ellipsis: true,
|
|
22734
|
+
width: 250,
|
|
21794
22735
|
render: renderTextEllipsis
|
|
21795
22736
|
}, {
|
|
21796
|
-
dataIndex: '
|
|
21797
|
-
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,
|
|
21798
22790
|
width: 150,
|
|
21799
22791
|
render: renderTextEllipsis
|
|
21800
22792
|
}, {
|
|
21801
|
-
dataIndex: '
|
|
21802
|
-
title: "\
|
|
22793
|
+
dataIndex: 'goodsName',
|
|
22794
|
+
title: "\u8D27\u54C1\u540D\u79F0",
|
|
21803
22795
|
align: 'center',
|
|
21804
22796
|
ellipsis: true,
|
|
21805
22797
|
width: 150,
|
|
21806
22798
|
render: renderTextEllipsis
|
|
21807
22799
|
}, {
|
|
21808
|
-
dataIndex: '
|
|
21809
|
-
title: "\
|
|
22800
|
+
dataIndex: 'goodsId',
|
|
22801
|
+
title: "\u8D27\u54C1ID",
|
|
21810
22802
|
align: 'center',
|
|
21811
22803
|
ellipsis: true,
|
|
21812
22804
|
width: 150,
|
|
21813
22805
|
render: renderTextEllipsis
|
|
21814
22806
|
}, {
|
|
21815
|
-
dataIndex: '
|
|
21816
|
-
title: "\
|
|
22807
|
+
dataIndex: 'barcode',
|
|
22808
|
+
title: "\u8D27\u54C1\u6761\u7801",
|
|
21817
22809
|
align: 'center',
|
|
21818
22810
|
ellipsis: true,
|
|
21819
22811
|
width: 150,
|
|
21820
22812
|
render: renderTextEllipsis
|
|
21821
22813
|
}, {
|
|
21822
|
-
dataIndex: '
|
|
21823
|
-
title: "\
|
|
22814
|
+
dataIndex: 'specName',
|
|
22815
|
+
title: "\u89C4\u683C\u540D\u79F0",
|
|
21824
22816
|
align: 'center',
|
|
21825
22817
|
ellipsis: true,
|
|
21826
22818
|
width: 150,
|
|
21827
22819
|
render: renderTextEllipsis
|
|
21828
22820
|
}, {
|
|
21829
|
-
dataIndex: '
|
|
21830
|
-
title: "\
|
|
22821
|
+
dataIndex: 'specId',
|
|
22822
|
+
title: "\u89C4\u683CID",
|
|
21831
22823
|
align: 'center',
|
|
21832
22824
|
ellipsis: true,
|
|
21833
22825
|
width: 150,
|
|
21834
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
|
+
}
|
|
21835
22837
|
}, {
|
|
21836
22838
|
dataIndex: 'sellCount',
|
|
21837
|
-
title: "\u6570\u91CF",
|
|
22839
|
+
title: "\u53D1\u8D27\u6570\u91CF",
|
|
21838
22840
|
width: 100,
|
|
21839
22841
|
validator: function validator(_rule, value) {
|
|
21840
|
-
var
|
|
21841
|
-
if (((value === null || value === void 0 ? void 0 : value.
|
|
21842
|
-
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);
|
|
21843
22845
|
var res = typeof qty === 'number' ? qty < 1 : true;
|
|
21844
22846
|
if (res) {
|
|
21845
|
-
|
|
22847
|
+
goodsName = (goods === null || goods === void 0 ? void 0 : goods.goodsName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodsName, "]") : '';
|
|
21846
22848
|
}
|
|
21847
22849
|
return res;
|
|
21848
22850
|
})) {
|
|
21849
|
-
return Promise.reject("".concat(
|
|
22851
|
+
return Promise.reject("".concat(goodsName, "\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
|
|
21850
22852
|
}
|
|
21851
22853
|
},
|
|
21852
22854
|
render: function render(val, record, index) {
|
|
21853
|
-
return
|
|
22855
|
+
return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
21854
22856
|
style: {
|
|
21855
22857
|
width: 70
|
|
21856
22858
|
},
|
|
@@ -21860,7 +22862,7 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
21860
22862
|
onChange: function onChange(num) {
|
|
21861
22863
|
updateDataHandle({
|
|
21862
22864
|
sellCount: num,
|
|
21863
|
-
sellTotal: num && isNumberOrNumberString$
|
|
22865
|
+
sellTotal: num && isNumberOrNumberString$3(record.sellPrice) ? num * record.sellPrice : null
|
|
21864
22866
|
}, index);
|
|
21865
22867
|
}
|
|
21866
22868
|
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
@@ -21870,7 +22872,7 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
21870
22872
|
title: "\u5355\u4EF7",
|
|
21871
22873
|
width: 150,
|
|
21872
22874
|
render: function render(val, record, index) {
|
|
21873
|
-
return
|
|
22875
|
+
return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
21874
22876
|
style: {
|
|
21875
22877
|
width: 130
|
|
21876
22878
|
},
|
|
@@ -21880,119 +22882,90 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
21880
22882
|
onChange: function onChange(num) {
|
|
21881
22883
|
updateDataHandle({
|
|
21882
22884
|
sellPrice: num,
|
|
21883
|
-
sellTotal: num && isNumberOrNumberString$
|
|
22885
|
+
sellTotal: num && isNumberOrNumberString$3(record.sellCount) ? num * record.sellCount : null
|
|
21884
22886
|
}, index);
|
|
21885
22887
|
}
|
|
21886
22888
|
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
21887
22889
|
}
|
|
21888
|
-
}, {
|
|
21889
|
-
dataIndex: 'mallSellingPrice',
|
|
21890
|
-
title: "\u5E73\u53F0\u5546\u54C1\u4EF7\u683C",
|
|
21891
|
-
width: 150
|
|
21892
22890
|
}, {
|
|
21893
22891
|
dataIndex: 'sellTotal',
|
|
21894
|
-
title: "\u91D1\u989D",
|
|
21895
|
-
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
|
+
}
|
|
21896
22900
|
}, {
|
|
21897
|
-
dataIndex: '
|
|
21898
|
-
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",
|
|
21899
22914
|
width: 150,
|
|
21900
22915
|
render: function render(val, record, index) {
|
|
21901
|
-
return
|
|
22916
|
+
return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
21902
22917
|
value: val,
|
|
21903
22918
|
onChange: function onChange(value) {
|
|
21904
|
-
updateHandle(value, index, '
|
|
22919
|
+
updateHandle(value, index, 'isGift');
|
|
21905
22920
|
},
|
|
21906
22921
|
options: [{
|
|
21907
22922
|
label: '是',
|
|
21908
|
-
value:
|
|
22923
|
+
value: 1
|
|
21909
22924
|
}, {
|
|
21910
22925
|
label: '否',
|
|
21911
|
-
value:
|
|
22926
|
+
value: 0
|
|
21912
22927
|
}]
|
|
21913
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val ===
|
|
22928
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val === 1 ? '是' : '否');
|
|
21914
22929
|
}
|
|
21915
22930
|
}, {
|
|
21916
|
-
dataIndex: '
|
|
21917
|
-
title: "\u7EC4\u5408\
|
|
21918
|
-
width: 150,
|
|
21919
|
-
render: renderTextEllipsis
|
|
21920
|
-
}, {
|
|
21921
|
-
dataIndex: 'combinationCode',
|
|
21922
|
-
title: "\u7EC4\u5408\u5546\u54C1\u7F16\u7801",
|
|
21923
|
-
width: 150,
|
|
21924
|
-
render: renderTextEllipsis
|
|
21925
|
-
}, {
|
|
21926
|
-
dataIndex: 'gift',
|
|
21927
|
-
title: "\u662F\u5426\u8D60\u54C1",
|
|
22931
|
+
dataIndex: 'isFit',
|
|
22932
|
+
title: "\u662F\u5426\u7EC4\u5408\u88C5",
|
|
21928
22933
|
width: 150,
|
|
21929
22934
|
render: function render(val, record, index) {
|
|
21930
|
-
return
|
|
22935
|
+
return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
21931
22936
|
value: val,
|
|
21932
22937
|
onChange: function onChange(value) {
|
|
21933
|
-
updateHandle(value, index, '
|
|
22938
|
+
updateHandle(value, index, 'isFit');
|
|
21934
22939
|
},
|
|
21935
22940
|
options: [{
|
|
21936
22941
|
label: '是',
|
|
21937
|
-
value:
|
|
22942
|
+
value: 1
|
|
21938
22943
|
}, {
|
|
21939
22944
|
label: '否',
|
|
21940
|
-
value:
|
|
22945
|
+
value: 0
|
|
21941
22946
|
}]
|
|
21942
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val ===
|
|
22947
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val === 1 ? '是' : '否');
|
|
21943
22948
|
}
|
|
21944
|
-
}].map(function (item) {
|
|
21945
|
-
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
21946
|
-
align: 'center',
|
|
21947
|
-
ellipsis: true
|
|
21948
|
-
});
|
|
21949
|
-
})
|
|
21950
|
-
};
|
|
21951
|
-
};
|
|
21952
|
-
|
|
21953
|
-
var getColumns$8 = function getColumns(_ref) {
|
|
21954
|
-
var _ref$text = _ref.text,
|
|
21955
|
-
disabled = _ref.disabled,
|
|
21956
|
-
updateHandle = _ref.updateHandle,
|
|
21957
|
-
updateDataHandle = _ref.updateDataHandle;
|
|
21958
|
-
return {
|
|
21959
|
-
//[SKX]商品信息(ON)
|
|
21960
|
-
SKX_GOODS: [{
|
|
21961
|
-
dataIndex: 'skuEcode',
|
|
21962
|
-
title: "[SKX]\u53D1\u8D27\u5355\u660E\u7EC6-skuEcode",
|
|
21963
|
-
width: 250
|
|
21964
22949
|
}, {
|
|
21965
|
-
dataIndex: '
|
|
21966
|
-
title: "
|
|
21967
|
-
width:
|
|
22950
|
+
dataIndex: 'brandName',
|
|
22951
|
+
title: "\u54C1\u724C",
|
|
22952
|
+
width: 150,
|
|
22953
|
+
render: renderTextEllipsis
|
|
21968
22954
|
}, {
|
|
21969
|
-
dataIndex: '
|
|
21970
|
-
title: "
|
|
21971
|
-
width:
|
|
22955
|
+
dataIndex: 'cateName',
|
|
22956
|
+
title: "\u8D27\u54C1\u7C7B\u522B",
|
|
22957
|
+
width: 150,
|
|
22958
|
+
render: renderTextEllipsis
|
|
21972
22959
|
}].map(function (item) {
|
|
21973
22960
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
21974
22961
|
align: 'center',
|
|
21975
22962
|
ellipsis: true
|
|
21976
22963
|
});
|
|
21977
|
-
})
|
|
21978
|
-
//[SKX]退货商品信息(TH)
|
|
21979
|
-
SKX_RETURN_GOODS: [{
|
|
21980
|
-
dataIndex: 'returnSkuEcode',
|
|
21981
|
-
title: "[SKX]\u9000\u8D27\u5355\u660E\u7EC6-returnSkuEcode",
|
|
21982
|
-
width: 300
|
|
21983
|
-
}, {
|
|
21984
|
-
dataIndex: 'returnSubOrderId',
|
|
21985
|
-
title: "[SKX]\u9000\u8D27\u5355-\u5B50\u8BA2\u5355\u53F7",
|
|
21986
|
-
width: 300
|
|
21987
|
-
}, {
|
|
21988
|
-
dataIndex: 'returnBillNo',
|
|
21989
|
-
title: "[SKX]TH\u9000\u6362\u8D27\u5355\u53F7",
|
|
21990
|
-
width: 200
|
|
21991
|
-
}]
|
|
22964
|
+
})
|
|
21992
22965
|
};
|
|
21993
22966
|
};
|
|
21994
22967
|
|
|
21995
|
-
var getColumns$
|
|
22968
|
+
var getColumns$a = function getColumns(_ref) {
|
|
21996
22969
|
var _ref$text = _ref.text,
|
|
21997
22970
|
text = _ref$text === void 0 ? '' : _ref$text,
|
|
21998
22971
|
disabled = _ref.disabled,
|
|
@@ -22109,7 +23082,7 @@ var getColumnsMap$1 = function getColumnsMap(args) {
|
|
|
22109
23082
|
disabled = _ref.disabled,
|
|
22110
23083
|
updateHandle = _ref.updateHandle,
|
|
22111
23084
|
updateDataHandle = _ref.updateDataHandle;
|
|
22112
|
-
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({
|
|
22113
23086
|
text: text,
|
|
22114
23087
|
disabled: disabled,
|
|
22115
23088
|
updateHandle: updateHandle
|
|
@@ -22147,8 +23120,13 @@ var getColumnsMap$1 = function getColumnsMap(args) {
|
|
|
22147
23120
|
text: text,
|
|
22148
23121
|
disabled: disabled,
|
|
22149
23122
|
updateHandle: updateHandle
|
|
23123
|
+
})), getColumns$9({
|
|
23124
|
+
text: text,
|
|
23125
|
+
disabled: disabled,
|
|
23126
|
+
updateHandle: updateHandle,
|
|
23127
|
+
updateDataHandle: updateDataHandle
|
|
22150
23128
|
})), {}, {
|
|
22151
|
-
default: getColumns$
|
|
23129
|
+
default: getColumns$a({
|
|
22152
23130
|
text: text,
|
|
22153
23131
|
disabled: disabled,
|
|
22154
23132
|
updateHandle: updateHandle
|
|
@@ -22295,6 +23273,9 @@ var isErpType = {
|
|
|
22295
23273
|
},
|
|
22296
23274
|
isJy: function isJy(type) {
|
|
22297
23275
|
return ['JY_GOODS', 'JY_REISSUE_GOODS'].includes(type);
|
|
23276
|
+
},
|
|
23277
|
+
isJky: function isJky(type) {
|
|
23278
|
+
return ['JKY_GOODS', 'JKY_REISSUE_GOODS'].includes(type);
|
|
22298
23279
|
}
|
|
22299
23280
|
};
|
|
22300
23281
|
var processGoods$1 = function processGoods(_ref) {
|
|
@@ -22347,6 +23328,13 @@ var processGoods$1 = function processGoods(_ref) {
|
|
|
22347
23328
|
canUpdateNumber: canUpdateNumber,
|
|
22348
23329
|
source: source
|
|
22349
23330
|
});
|
|
23331
|
+
} else if (isErpType.isJky(type)) {
|
|
23332
|
+
newList = processJkyGoods$1({
|
|
23333
|
+
list: list,
|
|
23334
|
+
type: type,
|
|
23335
|
+
canUpdateNumber: canUpdateNumber,
|
|
23336
|
+
source: source
|
|
23337
|
+
});
|
|
22350
23338
|
} else {
|
|
22351
23339
|
newList = processDefaultGoods({
|
|
22352
23340
|
list: list,
|
|
@@ -22395,11 +23383,45 @@ var processJyGoods = function processJyGoods(_ref2) {
|
|
|
22395
23383
|
});
|
|
22396
23384
|
});
|
|
22397
23385
|
};
|
|
22398
|
-
|
|
22399
|
-
var processWdtGoods$1 = function processWdtGoods(_ref3) {
|
|
23386
|
+
var processJkyGoods$1 = function processJkyGoods(_ref3) {
|
|
22400
23387
|
var list = _ref3.list,
|
|
22401
|
-
type = _ref3.type,
|
|
22402
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;
|
|
22403
23425
|
return list.map(function (item) {
|
|
22404
23426
|
var processedItem = _objectSpread2(_objectSpread2({}, item), {}, {
|
|
22405
23427
|
uuid: kmkfUtils.uuid(),
|
|
@@ -22417,9 +23439,9 @@ var processWdtGoods$1 = function processWdtGoods(_ref3) {
|
|
|
22417
23439
|
return processedItem;
|
|
22418
23440
|
});
|
|
22419
23441
|
};
|
|
22420
|
-
var processBsE3Goods$1 = function processBsE3Goods(
|
|
22421
|
-
var list =
|
|
22422
|
-
canUpdateNumber =
|
|
23442
|
+
var processBsE3Goods$1 = function processBsE3Goods(_ref5) {
|
|
23443
|
+
var list = _ref5.list,
|
|
23444
|
+
canUpdateNumber = _ref5.canUpdateNumber;
|
|
22423
23445
|
return list.map(function (item) {
|
|
22424
23446
|
var specNo = item.specNo,
|
|
22425
23447
|
specId = item.specId,
|
|
@@ -22454,9 +23476,9 @@ var processBsE3Goods$1 = function processBsE3Goods(_ref4) {
|
|
|
22454
23476
|
});
|
|
22455
23477
|
});
|
|
22456
23478
|
};
|
|
22457
|
-
var processGyGoods$1 = function processGyGoods(
|
|
22458
|
-
var list =
|
|
22459
|
-
source =
|
|
23479
|
+
var processGyGoods$1 = function processGyGoods(_ref6) {
|
|
23480
|
+
var list = _ref6.list,
|
|
23481
|
+
source = _ref6.source;
|
|
22460
23482
|
var isFormWorkOrder = source === 'workOrder';
|
|
22461
23483
|
return list.map(function (item) {
|
|
22462
23484
|
var goodName = item.goodName,
|
|
@@ -22483,8 +23505,8 @@ var processGyGoods$1 = function processGyGoods(_ref5) {
|
|
|
22483
23505
|
});
|
|
22484
23506
|
});
|
|
22485
23507
|
};
|
|
22486
|
-
var processJstGoods$1 = function processJstGoods(
|
|
22487
|
-
var list =
|
|
23508
|
+
var processJstGoods$1 = function processJstGoods(_ref7) {
|
|
23509
|
+
var list = _ref7.list;
|
|
22488
23510
|
return list.map(function (item) {
|
|
22489
23511
|
return {
|
|
22490
23512
|
name: item.goodName,
|
|
@@ -22502,9 +23524,9 @@ var processJstGoods$1 = function processJstGoods(_ref6) {
|
|
|
22502
23524
|
};
|
|
22503
23525
|
});
|
|
22504
23526
|
};
|
|
22505
|
-
var processKmGoods$1 = function processKmGoods(
|
|
22506
|
-
var list =
|
|
22507
|
-
type =
|
|
23527
|
+
var processKmGoods$1 = function processKmGoods(_ref8) {
|
|
23528
|
+
var list = _ref8.list,
|
|
23529
|
+
type = _ref8.type;
|
|
22508
23530
|
var initParamsMap = {
|
|
22509
23531
|
KM_GOODS: {
|
|
22510
23532
|
num: 1
|
|
@@ -22536,9 +23558,9 @@ var processKmGoods$1 = function processKmGoods(_ref7) {
|
|
|
22536
23558
|
}, initParamsMap[type] || {});
|
|
22537
23559
|
});
|
|
22538
23560
|
};
|
|
22539
|
-
var processDefaultGoods = function processDefaultGoods(
|
|
22540
|
-
var list =
|
|
22541
|
-
canUpdateNumber =
|
|
23561
|
+
var processDefaultGoods = function processDefaultGoods(_ref9) {
|
|
23562
|
+
var list = _ref9.list,
|
|
23563
|
+
canUpdateNumber = _ref9.canUpdateNumber;
|
|
22542
23564
|
return list.map(function (item) {
|
|
22543
23565
|
var goodsId = item.goodsId,
|
|
22544
23566
|
name = item.name,
|
|
@@ -22583,6 +23605,8 @@ var GoodsModalMap = {
|
|
|
22583
23605
|
KM_REISSUE_GOODS: KmGoodsModal,
|
|
22584
23606
|
JY_GOODS: JyGoodsModal$1,
|
|
22585
23607
|
JY_REISSUE_GOODS: JyGoodsModal$1,
|
|
23608
|
+
JKY_GOODS: JkyGoodsModal$1,
|
|
23609
|
+
JKY_REISSUE_GOODS: JkyGoodsModal$1,
|
|
22586
23610
|
OTHER_GOODS: GoodsModal$2
|
|
22587
23611
|
};
|
|
22588
23612
|
var systemOrderNoMap = {
|
|
@@ -22595,6 +23619,8 @@ var systemOrderNoMap = {
|
|
|
22595
23619
|
WLN_GOODS: 'tradeNo',
|
|
22596
23620
|
JY_GOODS: 'tradeNo',
|
|
22597
23621
|
JY_REISSUE_GOODS: 'tradeNo',
|
|
23622
|
+
JKY_GOODS: 'tradeNo',
|
|
23623
|
+
JKY_REISSUE_GOODS: 'tradeNo',
|
|
22598
23624
|
KM_REISSUE_GOODS: 'sid',
|
|
22599
23625
|
JST_REISSUE_GOODS: 'oId',
|
|
22600
23626
|
GY_REISSUE_GOODS: 'code',
|
|
@@ -22807,6 +23833,7 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
|
22807
23833
|
}
|
|
22808
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, ")")));
|
|
22809
23835
|
};
|
|
23836
|
+
SelectTradeGoods.displayName = 'SelectTradeGoods';
|
|
22810
23837
|
var getButtonText = function getButtonText() {
|
|
22811
23838
|
var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
22812
23839
|
if (['KM_GOODS', 'KM_REISSUE_GOODS'].includes(type)) {
|
|
@@ -22827,6 +23854,9 @@ var getButtonText = function getButtonText() {
|
|
|
22827
23854
|
if (['JY_GOODS', 'JY_REISSUE_GOODS'].includes(type)) {
|
|
22828
23855
|
return '选择巨益ERP商品';
|
|
22829
23856
|
}
|
|
23857
|
+
if (['JKY_GOODS', 'JKY_REISSUE_GOODS'].includes(type)) {
|
|
23858
|
+
return '选择吉客云ERP商品';
|
|
23859
|
+
}
|
|
22830
23860
|
return '选择商品';
|
|
22831
23861
|
};
|
|
22832
23862
|
var GoodItem$1 = function GoodItem(props) {
|
|
@@ -22884,8 +23914,8 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
22884
23914
|
var jstReturnGoods = antd.Form === null || antd.Form === void 0 ? void 0 : antd.Form.useWatch('3979edfd6d', form);
|
|
22885
23915
|
var isShowSelectTradeGoods = type !== 'JST_EXCHANGE_GOODS' || (jstReturnGoods === null || jstReturnGoods === void 0 ? void 0 : jstReturnGoods.jstSystemOrderNo);
|
|
22886
23916
|
// 判断是否为是否展示系统单筛选项
|
|
22887
|
-
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;
|
|
22888
|
-
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;
|
|
22889
23919
|
var refModal = React.useRef();
|
|
22890
23920
|
console.debug('表格数据', value);
|
|
22891
23921
|
var handleDelete = function handleDelete(record, index) {
|
|
@@ -22976,6 +24006,8 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
22976
24006
|
case 'KM_REISSUE_GOODS':
|
|
22977
24007
|
case 'JY_GOODS':
|
|
22978
24008
|
case 'JY_REISSUE_GOODS':
|
|
24009
|
+
case 'JKY_GOODS':
|
|
24010
|
+
case 'JKY_REISSUE_GOODS':
|
|
22979
24011
|
case 'SKX_GOODS':
|
|
22980
24012
|
case 'SKX_RETURN_GOODS':
|
|
22981
24013
|
{
|
|
@@ -24180,7 +25212,7 @@ var jyUtils = {
|
|
|
24180
25212
|
};
|
|
24181
25213
|
|
|
24182
25214
|
var singletonMap$7 = new Map();
|
|
24183
|
-
var
|
|
25215
|
+
var getJkyOrderListSingleton = function getJkyOrderListSingleton(orderNo) {
|
|
24184
25216
|
if (!singletonMap$7.has(orderNo)) {
|
|
24185
25217
|
var p = new Promise(function (resolve, reject) {
|
|
24186
25218
|
var doReject = function doReject(err) {
|
|
@@ -24188,6 +25220,54 @@ var getOrderListSingleton$2 = function getOrderListSingleton(orderNo) {
|
|
|
24188
25220
|
singletonMap$7.delete(orderNo);
|
|
24189
25221
|
reject(err);
|
|
24190
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
|
+
};
|
|
24191
25271
|
extendRequest('/qy/gdfw/order/kmErpOrderDetail', {
|
|
24192
25272
|
method: 'post',
|
|
24193
25273
|
data: {
|
|
@@ -24211,16 +25291,16 @@ var getOrderListSingleton$2 = function getOrderListSingleton(orderNo) {
|
|
|
24211
25291
|
}
|
|
24212
25292
|
// 延迟10秒清除,保证订单的时效性
|
|
24213
25293
|
setTimeout(function () {
|
|
24214
|
-
singletonMap$
|
|
25294
|
+
singletonMap$8.delete(orderNo);
|
|
24215
25295
|
}, 1000 * 10);
|
|
24216
25296
|
} else {
|
|
24217
25297
|
doReject(data);
|
|
24218
25298
|
}
|
|
24219
25299
|
}).catch(doReject);
|
|
24220
25300
|
});
|
|
24221
|
-
singletonMap$
|
|
25301
|
+
singletonMap$8.set(orderNo, p);
|
|
24222
25302
|
}
|
|
24223
|
-
return singletonMap$
|
|
25303
|
+
return singletonMap$8.get(orderNo);
|
|
24224
25304
|
};
|
|
24225
25305
|
var kmUtils = {
|
|
24226
25306
|
getOrderListSingleton: getOrderListSingleton$2
|
|
@@ -24237,6 +25317,7 @@ var columnsMap = {
|
|
|
24237
25317
|
GY_SYSTEM_ORDER: kmkfUtils.GY_SYSTEM_ORDER_CONFIG.columns,
|
|
24238
25318
|
JST_SYSTEM_ORDER: kmkfUtils.JST_SYSTEM_ORDER_CONFIG.columns,
|
|
24239
25319
|
JY_SYSTEM_ORDER: kmkfUtils.JY_SYSTEM_ORDER_CONFIG.columns,
|
|
25320
|
+
JKY_SYSTEM_ORDER: kmkfUtils.JKY_SYSTEM_ORDER_CONFIG.columns,
|
|
24240
25321
|
WDT_RETURN_BILL_NO: kmkfUtils.WDT_RETURN_BILL_NO_CONFIG.columns
|
|
24241
25322
|
};
|
|
24242
25323
|
var rowKeyMap = {
|
|
@@ -24248,6 +25329,7 @@ var rowKeyMap = {
|
|
|
24248
25329
|
GY_SYSTEM_ORDER: 'billNo',
|
|
24249
25330
|
JST_SYSTEM_ORDER: 'oId',
|
|
24250
25331
|
JY_SYSTEM_ORDER: 'tradeNo',
|
|
25332
|
+
JKY_SYSTEM_ORDER: 'tradeNo',
|
|
24251
25333
|
WDT_RETURN_BILL_NO: 'refundNo'
|
|
24252
25334
|
};
|
|
24253
25335
|
var index$2 = (function (props) {
|
|
@@ -24262,7 +25344,6 @@ var index$2 = (function (props) {
|
|
|
24262
25344
|
React.useEffect(function () {
|
|
24263
25345
|
var _value$orders, _value$showOrderInfo;
|
|
24264
25346
|
valueRef.current = value;
|
|
24265
|
-
console.log('value77777777', value);
|
|
24266
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) {
|
|
24267
25348
|
onceRef.current = true;
|
|
24268
25349
|
if (type === 'BS_SYSTEM_ORDER') {
|
|
@@ -24281,6 +25362,8 @@ var index$2 = (function (props) {
|
|
|
24281
25362
|
getJstOrderList(value.orderNo);
|
|
24282
25363
|
} else if (type === 'JY_SYSTEM_ORDER') {
|
|
24283
25364
|
getJyOrderList(value.orderNo);
|
|
25365
|
+
} else if (type === 'JKY_SYSTEM_ORDER') {
|
|
25366
|
+
getJkyOrderList(value.orderNo);
|
|
24284
25367
|
}
|
|
24285
25368
|
}
|
|
24286
25369
|
}, [value, type]);
|
|
@@ -24520,8 +25603,8 @@ var index$2 = (function (props) {
|
|
|
24520
25603
|
while (1) switch (_context8.prev = _context8.next) {
|
|
24521
25604
|
case 0:
|
|
24522
25605
|
jyUtils.getJyOrderListSingleton(orderNo).then(function (data) {
|
|
24523
|
-
var trades = (
|
|
24524
|
-
return kmkfUtils.getIsPlatformCodesIncludeOrderNos(item.
|
|
25606
|
+
var trades = (data || []).filter(function (item) {
|
|
25607
|
+
return kmkfUtils.getIsPlatformCodesIncludeOrderNos(item.tradeId, orderNo);
|
|
24525
25608
|
});
|
|
24526
25609
|
_onChange === null || _onChange === void 0 ? void 0 : _onChange(_objectSpread2(_objectSpread2({}, valueRef.current || {}), {}, {
|
|
24527
25610
|
orders: trades,
|
|
@@ -24545,6 +25628,28 @@ var index$2 = (function (props) {
|
|
|
24545
25628
|
return _ref10.apply(this, arguments);
|
|
24546
25629
|
};
|
|
24547
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
|
+
}();
|
|
24548
25653
|
var rowSelection = {
|
|
24549
25654
|
selectedRowKeys: (value === null || value === void 0 ? void 0 : value.selectIds) || [],
|
|
24550
25655
|
fixed: true,
|
|
@@ -24969,16 +26074,16 @@ var orderSubFormConstants = {
|
|
|
24969
26074
|
};
|
|
24970
26075
|
|
|
24971
26076
|
var getSelectWidgetMap$1 = orderSubFormConstants.getSelectWidgetMap;
|
|
24972
|
-
var singletonMap$
|
|
26077
|
+
var singletonMap$9 = new Map();
|
|
24973
26078
|
var getOrderListSingleton$3 = function getOrderListSingleton(parmas) {
|
|
24974
26079
|
var orderNo = parmas.orderNo,
|
|
24975
26080
|
shopId = parmas.shopId;
|
|
24976
26081
|
var key = "".concat(orderNo, "-").concat(shopId);
|
|
24977
|
-
if (!singletonMap$
|
|
26082
|
+
if (!singletonMap$9.has(key)) {
|
|
24978
26083
|
var p = new Promise(function (resolve, reject) {
|
|
24979
26084
|
var doReject = function doReject(err) {
|
|
24980
26085
|
// 清空掉错误的请求记录
|
|
24981
|
-
singletonMap$
|
|
26086
|
+
singletonMap$9.delete(key);
|
|
24982
26087
|
reject(err);
|
|
24983
26088
|
};
|
|
24984
26089
|
extendRequest('/qy/gdfw/order/subOrderItemsDetail', {
|
|
@@ -24994,16 +26099,16 @@ var getOrderListSingleton$3 = function getOrderListSingleton(parmas) {
|
|
|
24994
26099
|
}
|
|
24995
26100
|
// 延迟10秒清除,保证订单的时效性
|
|
24996
26101
|
setTimeout(function () {
|
|
24997
|
-
singletonMap$
|
|
26102
|
+
singletonMap$9.delete(key);
|
|
24998
26103
|
}, 1000 * 10);
|
|
24999
26104
|
} else {
|
|
25000
26105
|
doReject(data);
|
|
25001
26106
|
}
|
|
25002
26107
|
}).catch(doReject);
|
|
25003
26108
|
});
|
|
25004
|
-
singletonMap$
|
|
26109
|
+
singletonMap$9.set(key, p);
|
|
25005
26110
|
}
|
|
25006
|
-
return singletonMap$
|
|
26111
|
+
return singletonMap$9.get(key);
|
|
25007
26112
|
};
|
|
25008
26113
|
var renderEditItem = function renderEditItem(_ref) {
|
|
25009
26114
|
var item = _ref.item,
|
|
@@ -25436,6 +26541,9 @@ var isErpType$1 = {
|
|
|
25436
26541
|
},
|
|
25437
26542
|
isJy: function isJy(type) {
|
|
25438
26543
|
return ['JY_GOODS'].includes(type);
|
|
26544
|
+
},
|
|
26545
|
+
isJky: function isJky(type) {
|
|
26546
|
+
return ['JKY_GOODS'].includes(type);
|
|
25439
26547
|
}
|
|
25440
26548
|
};
|
|
25441
26549
|
var processAllOrders = function processAllOrders(_ref) {
|
|
@@ -25505,8 +26613,8 @@ var processGyOrders = function processGyOrders(_ref4) {
|
|
|
25505
26613
|
var processJyOrders = function processJyOrders(_ref5) {
|
|
25506
26614
|
var data = _ref5.data,
|
|
25507
26615
|
orderNo = _ref5.orderNo;
|
|
25508
|
-
var trades = (
|
|
25509
|
-
return kmkfUtils.getIsPlatformCodesIncludeOrderNos(item.
|
|
26616
|
+
var trades = (data || []).filter(function (item) {
|
|
26617
|
+
return kmkfUtils.getIsPlatformCodesIncludeOrderNos(item.tradeId, orderNo);
|
|
25510
26618
|
});
|
|
25511
26619
|
return trades;
|
|
25512
26620
|
};
|
|
@@ -25736,6 +26844,32 @@ var componentMap$2 = {
|
|
|
25736
26844
|
},
|
|
25737
26845
|
getOrderList: jyUtils.getJyOrderListSingleton
|
|
25738
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
|
+
},
|
|
25739
26873
|
WDT_AFTERSALE_GOODS: {
|
|
25740
26874
|
type: 'wdtAftersale',
|
|
25741
26875
|
key: 'wdtAftersaleGoods',
|
|
@@ -26166,6 +27300,7 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
26166
27300
|
}
|
|
26167
27301
|
}));
|
|
26168
27302
|
};
|
|
27303
|
+
CommonGoods.displayName = 'CommonGoods';
|
|
26169
27304
|
|
|
26170
27305
|
var componentMap$3 = {
|
|
26171
27306
|
WDT_RETURN_GOODS: {
|
|
@@ -26817,10 +27952,26 @@ var typeMap$2 = {
|
|
|
26817
27952
|
outerOiIdKey: '',
|
|
26818
27953
|
goodDetailsKey: 'subOrderDetails',
|
|
26819
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: 'sourceSubtradeNo',
|
|
27968
|
+
goodDetailsKey: 'goodsDetail',
|
|
27969
|
+
isShowSelectTradeGoods: true,
|
|
27970
|
+
showModeBtn: true
|
|
26820
27971
|
}
|
|
26821
27972
|
};
|
|
26822
27973
|
var PublicReissue = function PublicReissue(props) {
|
|
26823
|
-
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;
|
|
26824
27975
|
var value = props.value,
|
|
26825
27976
|
onChange = props.onChange,
|
|
26826
27977
|
_props$reasonList = props.reasonList,
|
|
@@ -27021,7 +28172,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
27021
28172
|
}
|
|
27022
28173
|
}, [sysItemIdMap]);
|
|
27023
28174
|
var getGoodDetails = function getGoodDetails(_ref5) {
|
|
27024
|
-
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;
|
|
27025
28176
|
var mode = _ref5.mode,
|
|
27026
28177
|
sysOrderNo = _ref5.sysOrderNo,
|
|
27027
28178
|
_ref5$isAllOrders = _ref5.isAllOrders,
|
|
@@ -27043,14 +28194,17 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
27043
28194
|
orderRest = {
|
|
27044
28195
|
canEdit: true
|
|
27045
28196
|
};
|
|
28197
|
+
} else if (['JKY_REISSUE_GOODS'].includes(type)) {
|
|
28198
|
+
orderRest = {
|
|
28199
|
+
canEdit: true
|
|
28200
|
+
};
|
|
27046
28201
|
}
|
|
27047
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] : [];
|
|
27048
28203
|
var hasGoodDetails = orders === null || orders === void 0 ? void 0 : orders.some(function (order) {
|
|
27049
28204
|
var _order$typeMap$type$g;
|
|
27050
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;
|
|
27051
28206
|
});
|
|
27052
|
-
|
|
27053
|
-
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) : [];
|
|
27054
28208
|
var orderNo = systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orderNo;
|
|
27055
28209
|
var list = mode && !isAllOrders ? goodDetails.filter(function (goodItem) {
|
|
27056
28210
|
return !orderNo || goodItem[typeMap$2[type].outerOiIdKey] === orderNo;
|
|
@@ -27058,30 +28212,30 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
27058
28212
|
return list;
|
|
27059
28213
|
};
|
|
27060
28214
|
var changeGoodHandle = function changeGoodHandle(val) {
|
|
27061
|
-
var _typeMap$
|
|
28215
|
+
var _typeMap$type24;
|
|
27062
28216
|
var newValue = _objectSpread2({}, value);
|
|
27063
|
-
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 || [];
|
|
27064
28218
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
27065
28219
|
};
|
|
27066
28220
|
var changeSystemOrderHandle = function changeSystemOrderHandle(val) {
|
|
27067
|
-
var _typeMap$
|
|
28221
|
+
var _typeMap$type25, _typeMap$type26, _value$typeMap$type$t2, _typeMap$type31, _value$typeMap$type$t3, _typeMap$type33;
|
|
27068
28222
|
var newValue = _objectSpread2({}, value);
|
|
27069
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
27070
|
-
if (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
27071
|
-
var _value$typeMap$type$s7, _typeMap$
|
|
27072
|
-
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) || [];
|
|
27073
28227
|
var targetOrder = val && orders.find(function (oItem) {
|
|
27074
|
-
var _typeMap$
|
|
27075
|
-
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;
|
|
27076
28230
|
});
|
|
27077
|
-
newValue[(_typeMap$
|
|
27078
|
-
}
|
|
27079
|
-
if (['2'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t2 = value[(_typeMap$
|
|
27080
|
-
var _typeMap$
|
|
27081
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
27082
|
-
} else if (['1'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t3 = value[(_typeMap$
|
|
27083
|
-
var _typeMap$
|
|
27084
|
-
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({
|
|
27085
28239
|
mode: isStrict,
|
|
27086
28240
|
sysOrderNo: val
|
|
27087
28241
|
});
|
|
@@ -27089,27 +28243,27 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
27089
28243
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue, 'systemOrder');
|
|
27090
28244
|
};
|
|
27091
28245
|
//显示选择商品按钮
|
|
27092
|
-
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]);
|
|
27093
28247
|
var selectedGoodsChange = React.useCallback(function (skuList) {
|
|
27094
|
-
var _typeMap$
|
|
28248
|
+
var _typeMap$type36, _typeMap$type37, _typeMap$type38, _uniqBy, _typeMap$type39;
|
|
27095
28249
|
var newValue = _objectSpread2({}, value);
|
|
27096
28250
|
// 原订单商品
|
|
27097
28251
|
var originTradeGoodList = getGoodDetails({
|
|
27098
28252
|
mode: isStrict,
|
|
27099
|
-
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
|
|
27100
28254
|
}) || [];
|
|
27101
28255
|
// 当前选中的所有商品【包含了原订单+商品库】
|
|
27102
|
-
var currentSelectGoodList = (value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
27103
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
27104
|
-
var _typeMap$
|
|
27105
|
-
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']);
|
|
27106
28260
|
});
|
|
27107
28261
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
27108
|
-
}, [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]);
|
|
27109
28263
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.Row, {
|
|
27110
28264
|
gutter: 8,
|
|
27111
28265
|
wrap: true,
|
|
27112
|
-
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())
|
|
27113
28267
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
27114
28268
|
className: "gutter-row",
|
|
27115
28269
|
xs: {
|
|
@@ -27125,12 +28279,12 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
27125
28279
|
},
|
|
27126
28280
|
disabled: disabled,
|
|
27127
28281
|
allowClear: false,
|
|
27128
|
-
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)],
|
|
27129
28283
|
onChange: function onChange(val) {
|
|
27130
28284
|
return changeSystemOrderHandle(val);
|
|
27131
28285
|
},
|
|
27132
|
-
placeholder: "\u9009\u62E9".concat((typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
27133
|
-
}, ((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) {
|
|
27134
28288
|
return /*#__PURE__*/React__default['default'].createElement(antd.Select.Option, {
|
|
27135
28289
|
key: item[typeMap$2[type].oIdKey],
|
|
27136
28290
|
value: item[typeMap$2[type].oIdKey],
|
|
@@ -27152,11 +28306,11 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
27152
28306
|
disabled: isSettingConfig ? !isSettingConfig : disabled,
|
|
27153
28307
|
allowClear: false,
|
|
27154
28308
|
options: reasonList,
|
|
27155
|
-
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)],
|
|
27156
28310
|
onChange: function onChange(val) {
|
|
27157
28311
|
return changeTypeHandle(val);
|
|
27158
28312
|
}
|
|
27159
|
-
})), (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, {
|
|
27160
28314
|
className: "gutter-row",
|
|
27161
28315
|
xs: {
|
|
27162
28316
|
span: 11
|
|
@@ -27165,7 +28319,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
27165
28319
|
span: 6
|
|
27166
28320
|
}
|
|
27167
28321
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
27168
|
-
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)],
|
|
27169
28323
|
disabled: disabled,
|
|
27170
28324
|
readOnly: true
|
|
27171
28325
|
}))), /*#__PURE__*/React__default['default'].createElement(GoodItem$1, _objectSpread2(_objectSpread2({
|
|
@@ -27176,15 +28330,15 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
27176
28330
|
canUpdateNumber: showChangeBtn,
|
|
27177
28331
|
hasSelectedSystemOrder: showChangeBtn,
|
|
27178
28332
|
// showChangeBtn={showChangeBtn || typeMap?.[type]?.isShowSelectTradeGoods}
|
|
27179
|
-
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,
|
|
27180
28334
|
// showErpGoodsBtn={typeMap?.[type]?.showErpGoodsBtn}
|
|
27181
28335
|
shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
|
|
27182
|
-
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)],
|
|
27183
28337
|
onChange: function onChange(val) {
|
|
27184
28338
|
return changeGoodHandle(val);
|
|
27185
28339
|
},
|
|
27186
28340
|
onModeChange: handleModeChange,
|
|
27187
|
-
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),
|
|
27188
28342
|
isStrict: isStrict,
|
|
27189
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,
|
|
27190
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,
|
|
@@ -27199,6 +28353,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
27199
28353
|
}
|
|
27200
28354
|
})));
|
|
27201
28355
|
};
|
|
28356
|
+
PublicReissue.displayName = 'PublicReissue';
|
|
27202
28357
|
|
|
27203
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";
|
|
27204
28359
|
styleInject(css_248z$g);
|
|
@@ -29491,6 +30646,7 @@ var SYSTEM_ORDER_COLUMNS_MAP = {
|
|
|
29491
30646
|
GY_SYSTEM_ORDER: kmkfUtils.GY_SYSTEM_ORDER_CONFIG.columns,
|
|
29492
30647
|
JST_SYSTEM_ORDER: kmkfUtils.JST_SYSTEM_ORDER_CONFIG.columns,
|
|
29493
30648
|
JY_SYSTEM_ORDER: kmkfUtils.JY_SYSTEM_ORDER_CONFIG.columns,
|
|
30649
|
+
JKY_SYSTEM_ORDER: kmkfUtils.JKY_SYSTEM_ORDER_CONFIG.columns,
|
|
29494
30650
|
WDT_RETURN_BILL_NO: kmkfUtils.WDT_RETURN_BILL_NO_CONFIG.columns
|
|
29495
30651
|
};
|
|
29496
30652
|
|
|
@@ -29573,6 +30729,7 @@ exports.erpColumnsMap = erpColumnsMap;
|
|
|
29573
30729
|
exports.erpFormValidator = erpFormValidator;
|
|
29574
30730
|
exports.erpModalColumnsMap = index$1;
|
|
29575
30731
|
exports.getGyColumns = getColumns$4;
|
|
30732
|
+
exports.getJkyColumns = getColumns$9;
|
|
29576
30733
|
exports.getJstColumns = getColumns$5;
|
|
29577
30734
|
exports.getJyColumns = getColumns$7;
|
|
29578
30735
|
exports.getKmColumns = getColumns$6;
|