@kmkf-fe-packages/basic-components 2.2.44-beta.26 → 2.2.44-beta.29
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.js
CHANGED
|
@@ -15377,34 +15377,75 @@ var jyColumns = [{
|
|
|
15377
15377
|
}
|
|
15378
15378
|
}];
|
|
15379
15379
|
|
|
15380
|
+
var getYesOrNo$2 = function getYesOrNo(val) {
|
|
15381
|
+
if (!lodash.isBoolean(val)) return null;
|
|
15382
|
+
return val ? '是' : '否';
|
|
15383
|
+
};
|
|
15380
15384
|
var jkyColumns = [{
|
|
15381
|
-
dataIndex: '
|
|
15382
|
-
title: "\u8D27\u54C1\
|
|
15385
|
+
dataIndex: 'goodName',
|
|
15386
|
+
title: "\u8D27\u54C1\u540D\u79F0",
|
|
15383
15387
|
align: 'center',
|
|
15384
15388
|
ellipsis: true,
|
|
15385
15389
|
width: 150,
|
|
15386
15390
|
render: renderTextEllipsis
|
|
15387
15391
|
}, {
|
|
15388
|
-
dataIndex: '
|
|
15389
|
-
title: "\u8D27\u54C1\
|
|
15392
|
+
dataIndex: 'goodNo',
|
|
15393
|
+
title: "\u8D27\u54C1\u7F16\u53F7",
|
|
15390
15394
|
align: 'center',
|
|
15391
15395
|
ellipsis: true,
|
|
15392
15396
|
width: 150,
|
|
15393
15397
|
render: renderTextEllipsis
|
|
15394
15398
|
}, {
|
|
15395
|
-
dataIndex: '
|
|
15399
|
+
dataIndex: 'goodId',
|
|
15396
15400
|
title: "\u8D27\u54C1ID",
|
|
15397
15401
|
align: 'center',
|
|
15398
15402
|
ellipsis: true,
|
|
15399
15403
|
width: 150,
|
|
15400
15404
|
render: renderTextEllipsis
|
|
15401
15405
|
}, {
|
|
15402
|
-
dataIndex: '
|
|
15406
|
+
dataIndex: 'goodPicUrl',
|
|
15407
|
+
title: "\u8D27\u54C1\u4E3B\u56FE",
|
|
15408
|
+
align: 'center',
|
|
15409
|
+
ellipsis: true,
|
|
15410
|
+
width: 150,
|
|
15411
|
+
render: function render(picUrl) {
|
|
15412
|
+
return /*#__PURE__*/React__default['default'].createElement("img", {
|
|
15413
|
+
style: {
|
|
15414
|
+
width: '30px',
|
|
15415
|
+
height: '30px',
|
|
15416
|
+
objectFit: 'contain'
|
|
15417
|
+
},
|
|
15418
|
+
src: picUrl
|
|
15419
|
+
});
|
|
15420
|
+
}
|
|
15421
|
+
}, {
|
|
15422
|
+
dataIndex: 'goodShortName',
|
|
15423
|
+
title: "\u8D27\u54C1\u522B\u540D",
|
|
15424
|
+
align: 'center',
|
|
15425
|
+
ellipsis: true,
|
|
15426
|
+
width: 150,
|
|
15427
|
+
render: renderTextEllipsis
|
|
15428
|
+
}, {
|
|
15429
|
+
dataIndex: 'specBarcode',
|
|
15403
15430
|
title: "\u8D27\u54C1\u6761\u7801",
|
|
15404
15431
|
align: 'center',
|
|
15405
15432
|
ellipsis: true,
|
|
15406
15433
|
width: 150,
|
|
15407
15434
|
render: renderTextEllipsis
|
|
15435
|
+
}, {
|
|
15436
|
+
dataIndex: 'categoryName',
|
|
15437
|
+
title: "\u8D27\u54C1\u7C7B\u522B",
|
|
15438
|
+
align: 'center',
|
|
15439
|
+
ellipsis: true,
|
|
15440
|
+
width: 150,
|
|
15441
|
+
render: renderTextEllipsis
|
|
15442
|
+
}, {
|
|
15443
|
+
dataIndex: 'brandName',
|
|
15444
|
+
title: "\u54C1\u724C",
|
|
15445
|
+
align: 'center',
|
|
15446
|
+
ellipsis: true,
|
|
15447
|
+
width: 200,
|
|
15448
|
+
render: renderTextEllipsis
|
|
15408
15449
|
}, {
|
|
15409
15450
|
dataIndex: 'specName',
|
|
15410
15451
|
title: "\u89C4\u683C\u540D\u79F0",
|
|
@@ -15420,7 +15461,14 @@ var jkyColumns = [{
|
|
|
15420
15461
|
width: 150,
|
|
15421
15462
|
render: renderTextEllipsis
|
|
15422
15463
|
}, {
|
|
15423
|
-
dataIndex: '
|
|
15464
|
+
dataIndex: 'specNo',
|
|
15465
|
+
title: "\u89C4\u683C\u7F16\u7801",
|
|
15466
|
+
align: 'center',
|
|
15467
|
+
ellipsis: true,
|
|
15468
|
+
width: 150,
|
|
15469
|
+
render: renderTextEllipsis
|
|
15470
|
+
}, {
|
|
15471
|
+
dataIndex: 'specImgUrl',
|
|
15424
15472
|
title: "\u89C4\u683C\u56FE\u7247",
|
|
15425
15473
|
align: 'center',
|
|
15426
15474
|
ellipsis: true,
|
|
@@ -15436,162 +15484,78 @@ var jkyColumns = [{
|
|
|
15436
15484
|
});
|
|
15437
15485
|
}
|
|
15438
15486
|
}, {
|
|
15439
|
-
dataIndex: '
|
|
15440
|
-
title: "\
|
|
15441
|
-
width: 100,
|
|
15442
|
-
render: function render(val) {
|
|
15443
|
-
return /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
15444
|
-
}
|
|
15445
|
-
}, {
|
|
15446
|
-
dataIndex: 'actualSendCount',
|
|
15447
|
-
title: "\u5B9E\u53D1\u6570\u91CF",
|
|
15448
|
-
width: 150,
|
|
15449
|
-
render: renderTextEllipsis
|
|
15450
|
-
}, {
|
|
15451
|
-
dataIndex: 'sellPrice',
|
|
15452
|
-
title: "\u5355\u4EF7",
|
|
15453
|
-
width: 150,
|
|
15454
|
-
render: function render(val) {
|
|
15455
|
-
return val || val === 0 ? Number(val).toFixed(2) : '';
|
|
15456
|
-
}
|
|
15457
|
-
}, {
|
|
15458
|
-
dataIndex: 'sellTotal',
|
|
15459
|
-
title: "\u91D1\u989D",
|
|
15460
|
-
width: 150
|
|
15461
|
-
}, {
|
|
15462
|
-
dataIndex: 'discountTotal',
|
|
15463
|
-
title: "\u62B5\u6263\u91D1\u989D",
|
|
15464
|
-
width: 150
|
|
15465
|
-
}, {
|
|
15466
|
-
dataIndex: 'shareFavourableFee',
|
|
15467
|
-
title: "\u5206\u644A\u91D1\u989D",
|
|
15468
|
-
width: 150
|
|
15469
|
-
}, {
|
|
15470
|
-
dataIndex: 'shareFavourableAfterFee',
|
|
15471
|
-
title: "\u5206\u644A\u540E\u91D1\u989D",
|
|
15472
|
-
width: 150
|
|
15473
|
-
}, {
|
|
15474
|
-
dataIndex: 'customerPrice',
|
|
15475
|
-
title: "\u7EC8\u7AEF\u9500\u552E\u5355\u4EF7",
|
|
15476
|
-
width: 150
|
|
15477
|
-
}, {
|
|
15478
|
-
dataIndex: 'customerTotal',
|
|
15479
|
-
title: "\u7EC8\u7AEF\u9500\u552E\u91D1\u989D",
|
|
15480
|
-
width: 150
|
|
15481
|
-
}, {
|
|
15482
|
-
dataIndex: 'divideSellTotal',
|
|
15483
|
-
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
15484
|
-
width: 150
|
|
15485
|
-
}, {
|
|
15486
|
-
dataIndex: 'isGift',
|
|
15487
|
-
title: "\u662F\u5426\u8D60\u54C1",
|
|
15488
|
-
width: 150,
|
|
15489
|
-
render: function render(val) {
|
|
15490
|
-
return /*#__PURE__*/React__default['default'].createElement("span", null, val === '1' ? '是' : '否');
|
|
15491
|
-
}
|
|
15492
|
-
}, {
|
|
15493
|
-
dataIndex: 'isFit',
|
|
15494
|
-
title: "\u662F\u5426\u7EC4\u5408\u88C5",
|
|
15495
|
-
width: 150,
|
|
15496
|
-
render: function render(val) {
|
|
15497
|
-
return /*#__PURE__*/React__default['default'].createElement("span", null, val === '1' ? '是' : '否');
|
|
15498
|
-
}
|
|
15499
|
-
}, {
|
|
15500
|
-
dataIndex: 'isPresell',
|
|
15501
|
-
title: "\u662F\u5426\u9884\u552E\u8D27\u54C1",
|
|
15502
|
-
width: 150,
|
|
15503
|
-
render: function render(val) {
|
|
15504
|
-
return /*#__PURE__*/React__default['default'].createElement("span", null, val === '1' ? '是' : '否');
|
|
15505
|
-
}
|
|
15506
|
-
}, {
|
|
15507
|
-
dataIndex: 'brandName',
|
|
15508
|
-
title: "\u54C1\u724C",
|
|
15487
|
+
dataIndex: 'colorName',
|
|
15488
|
+
title: "\u989C\u8272\u540D\u79F0",
|
|
15509
15489
|
align: 'center',
|
|
15510
15490
|
ellipsis: true,
|
|
15511
|
-
width:
|
|
15491
|
+
width: 150,
|
|
15512
15492
|
render: renderTextEllipsis
|
|
15513
15493
|
}, {
|
|
15514
|
-
dataIndex: '
|
|
15515
|
-
title: "\
|
|
15494
|
+
dataIndex: 'colorCode',
|
|
15495
|
+
title: "\u989C\u8272\u4EE3\u7801",
|
|
15516
15496
|
align: 'center',
|
|
15517
15497
|
ellipsis: true,
|
|
15518
15498
|
width: 150,
|
|
15519
15499
|
render: renderTextEllipsis
|
|
15520
15500
|
}, {
|
|
15521
|
-
dataIndex: '
|
|
15522
|
-
title: "\
|
|
15501
|
+
dataIndex: 'sizeName',
|
|
15502
|
+
title: "\u5C3A\u7801\u540D\u79F0",
|
|
15523
15503
|
align: 'center',
|
|
15524
15504
|
ellipsis: true,
|
|
15525
|
-
width:
|
|
15505
|
+
width: 150,
|
|
15526
15506
|
render: renderTextEllipsis
|
|
15527
15507
|
}, {
|
|
15528
|
-
dataIndex: '
|
|
15529
|
-
title: "\
|
|
15508
|
+
dataIndex: 'sizeCode',
|
|
15509
|
+
title: "\u5C3A\u7801\u4EE3\u7801",
|
|
15530
15510
|
align: 'center',
|
|
15531
15511
|
ellipsis: true,
|
|
15532
|
-
width:
|
|
15512
|
+
width: 150,
|
|
15533
15513
|
render: renderTextEllipsis
|
|
15534
15514
|
}, {
|
|
15535
|
-
dataIndex: '
|
|
15536
|
-
title: "\
|
|
15515
|
+
dataIndex: 'marketPrice',
|
|
15516
|
+
title: "\u5E02\u573A\u4EF7",
|
|
15537
15517
|
align: 'center',
|
|
15538
15518
|
ellipsis: true,
|
|
15539
|
-
width:
|
|
15540
|
-
render: renderTextEllipsis
|
|
15541
|
-
}, {
|
|
15542
|
-
dataIndex: 'tradeGoodsName',
|
|
15543
|
-
title: "\u4EA4\u6613\u8D27\u54C1\u540D\u79F0",
|
|
15544
|
-
ellipsis: true,
|
|
15545
|
-
width: 250,
|
|
15546
|
-
render: renderTextEllipsis
|
|
15547
|
-
}, {
|
|
15548
|
-
dataIndex: 'tradeGoodsSpec',
|
|
15549
|
-
title: "\u4EA4\u6613\u89C4\u683C\u540D\u79F0",
|
|
15550
|
-
ellipsis: true,
|
|
15551
|
-
width: 250,
|
|
15552
|
-
render: renderTextEllipsis
|
|
15553
|
-
}, {
|
|
15554
|
-
dataIndex: 'sourceSubtradeNo',
|
|
15555
|
-
title: "\u7F51\u5E97\u5B50\u8BA2\u5355\u53F7",
|
|
15556
|
-
ellipsis: true,
|
|
15557
|
-
width: 250,
|
|
15558
|
-
render: renderTextEllipsis
|
|
15559
|
-
}, {
|
|
15560
|
-
dataIndex: 'platGoodsId',
|
|
15561
|
-
title: "\u5E73\u53F0\u5546\u54C1ID",
|
|
15562
|
-
ellipsis: true,
|
|
15563
|
-
width: 250,
|
|
15519
|
+
width: 150,
|
|
15564
15520
|
render: renderTextEllipsis
|
|
15565
15521
|
}, {
|
|
15566
|
-
dataIndex: '
|
|
15567
|
-
title: "\
|
|
15522
|
+
dataIndex: 'retailPrice',
|
|
15523
|
+
title: "\u96F6\u552E\u4EF7",
|
|
15524
|
+
align: 'center',
|
|
15568
15525
|
ellipsis: true,
|
|
15569
|
-
width:
|
|
15526
|
+
width: 150,
|
|
15570
15527
|
render: renderTextEllipsis
|
|
15571
15528
|
}, {
|
|
15572
|
-
dataIndex: '
|
|
15573
|
-
title: "\
|
|
15529
|
+
dataIndex: 'memberPrice',
|
|
15530
|
+
title: "\u4F1A\u5458\u4EF7",
|
|
15531
|
+
align: 'center',
|
|
15574
15532
|
ellipsis: true,
|
|
15575
|
-
width:
|
|
15533
|
+
width: 150,
|
|
15576
15534
|
render: renderTextEllipsis
|
|
15577
15535
|
}, {
|
|
15578
|
-
dataIndex: '
|
|
15579
|
-
title: "\
|
|
15536
|
+
dataIndex: 'costPrice',
|
|
15537
|
+
title: "\u6210\u672C\u4EF7",
|
|
15538
|
+
align: 'center',
|
|
15580
15539
|
ellipsis: true,
|
|
15581
|
-
width:
|
|
15540
|
+
width: 150,
|
|
15582
15541
|
render: renderTextEllipsis
|
|
15583
15542
|
}, {
|
|
15584
|
-
dataIndex: '
|
|
15585
|
-
title: "\
|
|
15543
|
+
dataIndex: 'isVirtual',
|
|
15544
|
+
title: "\u662F\u5426\u865A\u62DF\u5546\u54C1",
|
|
15545
|
+
align: 'center',
|
|
15586
15546
|
ellipsis: true,
|
|
15587
|
-
width:
|
|
15588
|
-
render:
|
|
15547
|
+
width: 150,
|
|
15548
|
+
render: function render(val) {
|
|
15549
|
+
return renderTextEllipsis(getYesOrNo$2(val));
|
|
15550
|
+
}
|
|
15589
15551
|
}, {
|
|
15590
|
-
dataIndex: '
|
|
15591
|
-
title: "\
|
|
15552
|
+
dataIndex: 'skuType',
|
|
15553
|
+
title: "\u662F\u5426\u7EC4\u5408\u88C5",
|
|
15592
15554
|
ellipsis: true,
|
|
15593
|
-
width:
|
|
15594
|
-
render:
|
|
15555
|
+
width: 150,
|
|
15556
|
+
render: function render(val) {
|
|
15557
|
+
return renderTextEllipsis(getYesOrNo$2(val === 'combine'));
|
|
15558
|
+
}
|
|
15595
15559
|
}];
|
|
15596
15560
|
|
|
15597
15561
|
var getColumnsMap = function getColumnsMap() {
|
|
@@ -18834,13 +18798,15 @@ var JyGoodsModal$1 = /*#__PURE__*/React.forwardRef(JyGoodsModal);
|
|
|
18834
18798
|
var getTableData$6 = function getTableData(_ref, formData) {
|
|
18835
18799
|
var current = _ref.current,
|
|
18836
18800
|
pageSize = _ref.pageSize;
|
|
18801
|
+
var conditionList = transformFormData(formData);
|
|
18837
18802
|
return extendRequest('/qy/gdfw/product/product/page', {
|
|
18838
18803
|
method: 'post',
|
|
18839
|
-
data:
|
|
18804
|
+
data: {
|
|
18840
18805
|
pageSize: pageSize,
|
|
18841
18806
|
pageNo: current,
|
|
18842
|
-
platform: '
|
|
18843
|
-
|
|
18807
|
+
platform: 'JKY_ERP',
|
|
18808
|
+
conditionList: conditionList
|
|
18809
|
+
}
|
|
18844
18810
|
}).then(function (res) {
|
|
18845
18811
|
var _res$data = res.data,
|
|
18846
18812
|
_res$data$productSkuL = _res$data.productSkuList,
|
|
@@ -18863,13 +18829,15 @@ var searchFormData$5 = [{
|
|
|
18863
18829
|
}, {
|
|
18864
18830
|
label: '规格编码',
|
|
18865
18831
|
name: 'skuCode',
|
|
18866
|
-
dataIndex: 'specNo'
|
|
18832
|
+
dataIndex: 'specNo',
|
|
18833
|
+
type: 'optionalInput'
|
|
18867
18834
|
}, {
|
|
18868
|
-
label: '
|
|
18835
|
+
label: '货品名称',
|
|
18869
18836
|
name: 'goodName'
|
|
18870
18837
|
}, {
|
|
18871
|
-
label: '
|
|
18872
|
-
name: 'goodNo'
|
|
18838
|
+
label: '货品编码',
|
|
18839
|
+
name: 'goodNo',
|
|
18840
|
+
type: 'optionalInput'
|
|
18873
18841
|
}];
|
|
18874
18842
|
var GoodList$6 = function GoodList(props, ref) {
|
|
18875
18843
|
var _useState = React.useState([]),
|
|
@@ -20387,7 +20355,7 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
20387
20355
|
};
|
|
20388
20356
|
};
|
|
20389
20357
|
|
|
20390
|
-
var getYesOrNo$
|
|
20358
|
+
var getYesOrNo$3 = function getYesOrNo(val) {
|
|
20391
20359
|
if (kmkfUtils.isNull(val)) return null;
|
|
20392
20360
|
return val ? '是' : '否';
|
|
20393
20361
|
};
|
|
@@ -20538,7 +20506,7 @@ var getColumns$3 = function getColumns(_ref) {
|
|
|
20538
20506
|
label: '否',
|
|
20539
20507
|
value: false
|
|
20540
20508
|
}]
|
|
20541
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo$
|
|
20509
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo$3(val));
|
|
20542
20510
|
},
|
|
20543
20511
|
width: 100
|
|
20544
20512
|
}]
|
|
@@ -20550,7 +20518,7 @@ var isNumberOrNumberString$1 = function isNumberOrNumberString(value) {
|
|
|
20550
20518
|
if (typeof value === 'string' && !isNaN(Number(value)) && value.trim() !== '') return true;
|
|
20551
20519
|
return false;
|
|
20552
20520
|
};
|
|
20553
|
-
var getYesOrNo$
|
|
20521
|
+
var getYesOrNo$4 = function getYesOrNo(val) {
|
|
20554
20522
|
if (kmkfUtils.isNull(val)) return null;
|
|
20555
20523
|
return val ? '是' : '否';
|
|
20556
20524
|
};
|
|
@@ -20665,7 +20633,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
20665
20633
|
title: "\u662F\u5426\u53D6\u6D88",
|
|
20666
20634
|
width: 150,
|
|
20667
20635
|
render: function render(val) {
|
|
20668
|
-
return /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo$
|
|
20636
|
+
return /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo$4(val));
|
|
20669
20637
|
}
|
|
20670
20638
|
}, {
|
|
20671
20639
|
dataIndex: 'isGift',
|
|
@@ -20684,7 +20652,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
20684
20652
|
label: '否',
|
|
20685
20653
|
value: 0
|
|
20686
20654
|
}]
|
|
20687
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo$
|
|
20655
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo$4(val));
|
|
20688
20656
|
}
|
|
20689
20657
|
}, {
|
|
20690
20658
|
dataIndex: 'skuNote',
|
|
@@ -20810,7 +20778,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
20810
20778
|
label: '否',
|
|
20811
20779
|
value: 0
|
|
20812
20780
|
}]
|
|
20813
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo$
|
|
20781
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo$4(val));
|
|
20814
20782
|
}
|
|
20815
20783
|
}].map(function (item) {
|
|
20816
20784
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
@@ -20939,7 +20907,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
20939
20907
|
label: '否',
|
|
20940
20908
|
value: 0
|
|
20941
20909
|
}]
|
|
20942
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo$
|
|
20910
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo$4(val));
|
|
20943
20911
|
}
|
|
20944
20912
|
}].map(function (item) {
|
|
20945
20913
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
@@ -23322,6 +23290,13 @@ var processGoods$1 = function processGoods(_ref) {
|
|
|
23322
23290
|
canUpdateNumber: canUpdateNumber,
|
|
23323
23291
|
source: source
|
|
23324
23292
|
});
|
|
23293
|
+
} else if (isErpType.isJky(type)) {
|
|
23294
|
+
newList = processJkyGoods({
|
|
23295
|
+
list: list,
|
|
23296
|
+
type: type,
|
|
23297
|
+
canUpdateNumber: canUpdateNumber,
|
|
23298
|
+
source: source
|
|
23299
|
+
});
|
|
23325
23300
|
} else {
|
|
23326
23301
|
newList = processDefaultGoods({
|
|
23327
23302
|
list: list,
|
|
@@ -23370,11 +23345,45 @@ var processJyGoods = function processJyGoods(_ref2) {
|
|
|
23370
23345
|
});
|
|
23371
23346
|
});
|
|
23372
23347
|
};
|
|
23373
|
-
|
|
23374
|
-
var processWdtGoods$1 = function processWdtGoods(_ref3) {
|
|
23348
|
+
var processJkyGoods = function processJkyGoods(_ref3) {
|
|
23375
23349
|
var list = _ref3.list,
|
|
23376
|
-
type = _ref3.type,
|
|
23377
23350
|
canUpdateNumber = _ref3.canUpdateNumber;
|
|
23351
|
+
return list.map(function (item) {
|
|
23352
|
+
var goodName = item.goodName,
|
|
23353
|
+
goodNo = item.goodNo,
|
|
23354
|
+
goodId = item.goodId,
|
|
23355
|
+
specBarcode = item.specBarcode,
|
|
23356
|
+
retailPrice = item.retailPrice,
|
|
23357
|
+
isGift = item.isGift,
|
|
23358
|
+
skuType = item.skuType,
|
|
23359
|
+
specImgUrl = item.specImgUrl,
|
|
23360
|
+
categoryName = item.categoryName;
|
|
23361
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
23362
|
+
cateName: categoryName,
|
|
23363
|
+
goodsName: goodName,
|
|
23364
|
+
goodsNo: goodNo,
|
|
23365
|
+
goodsId: goodId,
|
|
23366
|
+
barcode: specBarcode,
|
|
23367
|
+
skuImgUrl: specImgUrl,
|
|
23368
|
+
combinationName: goodName,
|
|
23369
|
+
combinationCode: goodNo,
|
|
23370
|
+
isGift: isGift ? '1' : '0',
|
|
23371
|
+
isFit: skuType === 'combine' ? '1' : '0',
|
|
23372
|
+
uuid: kmkfUtils.uuid(),
|
|
23373
|
+
canDelete: true,
|
|
23374
|
+
sellCount: 1,
|
|
23375
|
+
sellPrice: retailPrice,
|
|
23376
|
+
sellTotal: (retailPrice * 1).toFixed(2),
|
|
23377
|
+
canEdit: true,
|
|
23378
|
+
canUpdateNumber: canUpdateNumber
|
|
23379
|
+
});
|
|
23380
|
+
});
|
|
23381
|
+
};
|
|
23382
|
+
// 处理不同类型的商品数据
|
|
23383
|
+
var processWdtGoods$1 = function processWdtGoods(_ref4) {
|
|
23384
|
+
var list = _ref4.list,
|
|
23385
|
+
type = _ref4.type,
|
|
23386
|
+
canUpdateNumber = _ref4.canUpdateNumber;
|
|
23378
23387
|
return list.map(function (item) {
|
|
23379
23388
|
var processedItem = _objectSpread2(_objectSpread2({}, item), {}, {
|
|
23380
23389
|
uuid: kmkfUtils.uuid(),
|
|
@@ -23392,9 +23401,9 @@ var processWdtGoods$1 = function processWdtGoods(_ref3) {
|
|
|
23392
23401
|
return processedItem;
|
|
23393
23402
|
});
|
|
23394
23403
|
};
|
|
23395
|
-
var processBsE3Goods$1 = function processBsE3Goods(
|
|
23396
|
-
var list =
|
|
23397
|
-
canUpdateNumber =
|
|
23404
|
+
var processBsE3Goods$1 = function processBsE3Goods(_ref5) {
|
|
23405
|
+
var list = _ref5.list,
|
|
23406
|
+
canUpdateNumber = _ref5.canUpdateNumber;
|
|
23398
23407
|
return list.map(function (item) {
|
|
23399
23408
|
var specNo = item.specNo,
|
|
23400
23409
|
specId = item.specId,
|
|
@@ -23429,9 +23438,9 @@ var processBsE3Goods$1 = function processBsE3Goods(_ref4) {
|
|
|
23429
23438
|
});
|
|
23430
23439
|
});
|
|
23431
23440
|
};
|
|
23432
|
-
var processGyGoods$1 = function processGyGoods(
|
|
23433
|
-
var list =
|
|
23434
|
-
source =
|
|
23441
|
+
var processGyGoods$1 = function processGyGoods(_ref6) {
|
|
23442
|
+
var list = _ref6.list,
|
|
23443
|
+
source = _ref6.source;
|
|
23435
23444
|
var isFormWorkOrder = source === 'workOrder';
|
|
23436
23445
|
return list.map(function (item) {
|
|
23437
23446
|
var goodName = item.goodName,
|
|
@@ -23458,8 +23467,8 @@ var processGyGoods$1 = function processGyGoods(_ref5) {
|
|
|
23458
23467
|
});
|
|
23459
23468
|
});
|
|
23460
23469
|
};
|
|
23461
|
-
var processJstGoods$1 = function processJstGoods(
|
|
23462
|
-
var list =
|
|
23470
|
+
var processJstGoods$1 = function processJstGoods(_ref7) {
|
|
23471
|
+
var list = _ref7.list;
|
|
23463
23472
|
return list.map(function (item) {
|
|
23464
23473
|
return {
|
|
23465
23474
|
name: item.goodName,
|
|
@@ -23477,9 +23486,9 @@ var processJstGoods$1 = function processJstGoods(_ref6) {
|
|
|
23477
23486
|
};
|
|
23478
23487
|
});
|
|
23479
23488
|
};
|
|
23480
|
-
var processKmGoods$1 = function processKmGoods(
|
|
23481
|
-
var list =
|
|
23482
|
-
type =
|
|
23489
|
+
var processKmGoods$1 = function processKmGoods(_ref8) {
|
|
23490
|
+
var list = _ref8.list,
|
|
23491
|
+
type = _ref8.type;
|
|
23483
23492
|
var initParamsMap = {
|
|
23484
23493
|
KM_GOODS: {
|
|
23485
23494
|
num: 1
|
|
@@ -23511,9 +23520,9 @@ var processKmGoods$1 = function processKmGoods(_ref7) {
|
|
|
23511
23520
|
}, initParamsMap[type] || {});
|
|
23512
23521
|
});
|
|
23513
23522
|
};
|
|
23514
|
-
var processDefaultGoods = function processDefaultGoods(
|
|
23515
|
-
var list =
|
|
23516
|
-
canUpdateNumber =
|
|
23523
|
+
var processDefaultGoods = function processDefaultGoods(_ref9) {
|
|
23524
|
+
var list = _ref9.list,
|
|
23525
|
+
canUpdateNumber = _ref9.canUpdateNumber;
|
|
23517
23526
|
return list.map(function (item) {
|
|
23518
23527
|
var goodsId = item.goodsId,
|
|
23519
23528
|
name = item.name,
|
|
@@ -25175,21 +25184,22 @@ var getJkyOrderListSingleton = function getJkyOrderListSingleton(orderNo) {
|
|
|
25175
25184
|
extendRequest('/qy/gdfw/jky/erp/trade/fullInfo', {
|
|
25176
25185
|
method: 'post',
|
|
25177
25186
|
data: {
|
|
25178
|
-
|
|
25187
|
+
sourceTradeNos: orderNo
|
|
25179
25188
|
}
|
|
25180
25189
|
}).then(function (res) {
|
|
25181
25190
|
if (res === null || res === void 0 ? void 0 : res.success) {
|
|
25182
|
-
var _res$data, _res$
|
|
25183
|
-
if (res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 :
|
|
25184
|
-
var _filterJkyOrders
|
|
25185
|
-
res.data.trades = (_filterJkyOrders = kmkfUtils.filterJkyOrders(res === null || res === void 0 ? void 0 :
|
|
25191
|
+
var _res$data, _res$data2;
|
|
25192
|
+
if (res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.length) {
|
|
25193
|
+
var _filterJkyOrders;
|
|
25194
|
+
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) {
|
|
25186
25195
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
25196
|
+
tradeFrom: kmkfUtils.JKY_ORDER_FROM_MAP[item.tradeFrom],
|
|
25187
25197
|
tradeType: kmkfUtils.JKY_ORDER_TYPE_MAP[item.tradeType],
|
|
25188
25198
|
tradeStatus: kmkfUtils.JKY_ORDER_STATUS_MAP[item.tradeStatus]
|
|
25189
25199
|
});
|
|
25190
25200
|
});
|
|
25191
25201
|
}
|
|
25192
|
-
resolve(((_res$
|
|
25202
|
+
resolve(((_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.trades) || []);
|
|
25193
25203
|
// 延迟10秒清除,保证订单的时效性
|
|
25194
25204
|
setTimeout(function () {
|
|
25195
25205
|
singletonMap$7.delete(orderNo);
|
|
@@ -27216,7 +27226,6 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
27216
27226
|
orderNo: value === null || value === void 0 ? void 0 : value.orderNo,
|
|
27217
27227
|
type: compType
|
|
27218
27228
|
});
|
|
27219
|
-
console.log('getDataSourceAsync', list);
|
|
27220
27229
|
onChange(_objectSpread2(_objectSpread2({}, valueRef.current), {}, {
|
|
27221
27230
|
allOrders: list || []
|
|
27222
27231
|
}));
|
|
@@ -27922,7 +27931,7 @@ var typeMap$2 = {
|
|
|
27922
27931
|
}
|
|
27923
27932
|
};
|
|
27924
27933
|
var PublicReissue = function PublicReissue(props) {
|
|
27925
|
-
var _typeMap$
|
|
27934
|
+
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;
|
|
27926
27935
|
var value = props.value,
|
|
27927
27936
|
onChange = props.onChange,
|
|
27928
27937
|
_props$reasonList = props.reasonList,
|
|
@@ -28123,7 +28132,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28123
28132
|
}
|
|
28124
28133
|
}, [sysItemIdMap]);
|
|
28125
28134
|
var getGoodDetails = function getGoodDetails(_ref5) {
|
|
28126
|
-
var _typeMap$type18, _typeMap$type19, _value$typeMap$type$s6, _typeMap$type20, _typeMap$type21, _typeMap$type22, _typeMap$type23
|
|
28135
|
+
var _typeMap$type18, _typeMap$type19, _value$typeMap$type$s6, _typeMap$type20, _typeMap$type21, _typeMap$type22, _typeMap$type23;
|
|
28127
28136
|
var mode = _ref5.mode,
|
|
28128
28137
|
sysOrderNo = _ref5.sysOrderNo,
|
|
28129
28138
|
_ref5$isAllOrders = _ref5.isAllOrders,
|
|
@@ -28155,8 +28164,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28155
28164
|
var _order$typeMap$type$g;
|
|
28156
28165
|
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;
|
|
28157
28166
|
});
|
|
28158
|
-
|
|
28159
|
-
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) : [];
|
|
28167
|
+
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) : [];
|
|
28160
28168
|
var orderNo = systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orderNo;
|
|
28161
28169
|
var list = mode && !isAllOrders ? goodDetails.filter(function (goodItem) {
|
|
28162
28170
|
return !orderNo || goodItem[typeMap$2[type].outerOiIdKey] === orderNo;
|
|
@@ -28164,30 +28172,30 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28164
28172
|
return list;
|
|
28165
28173
|
};
|
|
28166
28174
|
var changeGoodHandle = function changeGoodHandle(val) {
|
|
28167
|
-
var _typeMap$
|
|
28175
|
+
var _typeMap$type24;
|
|
28168
28176
|
var newValue = _objectSpread2({}, value);
|
|
28169
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28177
|
+
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 || [];
|
|
28170
28178
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
28171
28179
|
};
|
|
28172
28180
|
var changeSystemOrderHandle = function changeSystemOrderHandle(val) {
|
|
28173
|
-
var _typeMap$
|
|
28181
|
+
var _typeMap$type25, _typeMap$type26, _value$typeMap$type$t2, _typeMap$type31, _value$typeMap$type$t3, _typeMap$type33;
|
|
28174
28182
|
var newValue = _objectSpread2({}, value);
|
|
28175
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28176
|
-
if (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28177
|
-
var _value$typeMap$type$s7, _typeMap$
|
|
28178
|
-
var orders = (value === null || value === void 0 ? void 0 : (_value$typeMap$type$s7 = value[(_typeMap$
|
|
28183
|
+
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;
|
|
28184
|
+
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) {
|
|
28185
|
+
var _value$typeMap$type$s7, _typeMap$type27, _typeMap$type29, _typeMap$type30;
|
|
28186
|
+
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) || [];
|
|
28179
28187
|
var targetOrder = val && orders.find(function (oItem) {
|
|
28180
|
-
var _typeMap$
|
|
28181
|
-
return oItem[(_typeMap$
|
|
28188
|
+
var _typeMap$type28;
|
|
28189
|
+
return oItem[(_typeMap$type28 = typeMap$2[type]) === null || _typeMap$type28 === void 0 ? void 0 : _typeMap$type28.oIdKey] === val;
|
|
28182
28190
|
});
|
|
28183
|
-
newValue[(_typeMap$
|
|
28184
|
-
}
|
|
28185
|
-
if (['2'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t2 = value[(_typeMap$
|
|
28186
|
-
var _typeMap$
|
|
28187
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28188
|
-
} else if (['1'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t3 = value[(_typeMap$
|
|
28189
|
-
var _typeMap$
|
|
28190
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28191
|
+
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];
|
|
28192
|
+
}
|
|
28193
|
+
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])) {
|
|
28194
|
+
var _typeMap$type32;
|
|
28195
|
+
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)] = [];
|
|
28196
|
+
} 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])) {
|
|
28197
|
+
var _typeMap$type34;
|
|
28198
|
+
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({
|
|
28191
28199
|
mode: isStrict,
|
|
28192
28200
|
sysOrderNo: val
|
|
28193
28201
|
});
|
|
@@ -28195,27 +28203,27 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28195
28203
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue, 'systemOrder');
|
|
28196
28204
|
};
|
|
28197
28205
|
//显示选择商品按钮
|
|
28198
|
-
var showChangeBtn = !!(value === null || value === void 0 ? void 0 : value[(_typeMap$
|
|
28206
|
+
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]);
|
|
28199
28207
|
var selectedGoodsChange = React.useCallback(function (skuList) {
|
|
28200
|
-
var _typeMap$
|
|
28208
|
+
var _typeMap$type36, _typeMap$type37, _typeMap$type38, _uniqBy, _typeMap$type39;
|
|
28201
28209
|
var newValue = _objectSpread2({}, value);
|
|
28202
28210
|
// 原订单商品
|
|
28203
28211
|
var originTradeGoodList = getGoodDetails({
|
|
28204
28212
|
mode: isStrict,
|
|
28205
|
-
isAllOrders: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28213
|
+
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
|
|
28206
28214
|
}) || [];
|
|
28207
28215
|
// 当前选中的所有商品【包含了原订单+商品库】
|
|
28208
|
-
var currentSelectGoodList = (value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28209
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28210
|
-
var _typeMap$
|
|
28211
|
-
return skuList.includes(item[(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28216
|
+
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)]) || [];
|
|
28217
|
+
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) {
|
|
28218
|
+
var _typeMap$type40;
|
|
28219
|
+
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']);
|
|
28212
28220
|
});
|
|
28213
28221
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
28214
|
-
}, [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28222
|
+
}, [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]);
|
|
28215
28223
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.Row, {
|
|
28216
28224
|
gutter: 8,
|
|
28217
28225
|
wrap: true,
|
|
28218
|
-
id: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28226
|
+
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())
|
|
28219
28227
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
28220
28228
|
className: "gutter-row",
|
|
28221
28229
|
xs: {
|
|
@@ -28231,12 +28239,12 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28231
28239
|
},
|
|
28232
28240
|
disabled: disabled,
|
|
28233
28241
|
allowClear: false,
|
|
28234
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28242
|
+
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)],
|
|
28235
28243
|
onChange: function onChange(val) {
|
|
28236
28244
|
return changeSystemOrderHandle(val);
|
|
28237
28245
|
},
|
|
28238
|
-
placeholder: "\u9009\u62E9".concat((typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28239
|
-
}, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s8 = value[(_typeMap$
|
|
28246
|
+
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")
|
|
28247
|
+
}, ((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) {
|
|
28240
28248
|
return /*#__PURE__*/React__default['default'].createElement(antd.Select.Option, {
|
|
28241
28249
|
key: item[typeMap$2[type].oIdKey],
|
|
28242
28250
|
value: item[typeMap$2[type].oIdKey],
|
|
@@ -28258,11 +28266,11 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28258
28266
|
disabled: isSettingConfig ? !isSettingConfig : disabled,
|
|
28259
28267
|
allowClear: false,
|
|
28260
28268
|
options: reasonList,
|
|
28261
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28269
|
+
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)],
|
|
28262
28270
|
onChange: function onChange(val) {
|
|
28263
28271
|
return changeTypeHandle(val);
|
|
28264
28272
|
}
|
|
28265
|
-
})), (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28273
|
+
})), (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, {
|
|
28266
28274
|
className: "gutter-row",
|
|
28267
28275
|
xs: {
|
|
28268
28276
|
span: 11
|
|
@@ -28271,7 +28279,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28271
28279
|
span: 6
|
|
28272
28280
|
}
|
|
28273
28281
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
28274
|
-
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$type48 = typeMap$2[type]) === null || _typeMap$type48 === void 0 ? void 0 : _typeMap$type48.systemOrderBillType)],
|
|
28275
28283
|
disabled: disabled,
|
|
28276
28284
|
readOnly: true
|
|
28277
28285
|
}))), /*#__PURE__*/React__default['default'].createElement(GoodItem$1, _objectSpread2(_objectSpread2({
|
|
@@ -28282,25 +28290,25 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28282
28290
|
canUpdateNumber: showChangeBtn,
|
|
28283
28291
|
hasSelectedSystemOrder: showChangeBtn,
|
|
28284
28292
|
// showChangeBtn={showChangeBtn || typeMap?.[type]?.isShowSelectTradeGoods}
|
|
28285
|
-
alwaysShowChooseErpGoodsBtn: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28293
|
+
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,
|
|
28286
28294
|
// showErpGoodsBtn={typeMap?.[type]?.showErpGoodsBtn}
|
|
28287
28295
|
shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
|
|
28288
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28296
|
+
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)],
|
|
28289
28297
|
onChange: function onChange(val) {
|
|
28290
28298
|
return changeGoodHandle(val);
|
|
28291
28299
|
},
|
|
28292
28300
|
onModeChange: handleModeChange,
|
|
28293
|
-
showModeBtn: !!(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28301
|
+
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),
|
|
28294
28302
|
isStrict: isStrict,
|
|
28295
|
-
isShowSelectTradeGoods: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28296
|
-
systemOrders: value === null || value === void 0 ? void 0 : (_value$typeMap$type$s9 = value[(_typeMap$
|
|
28297
|
-
selectedSystemOrders: showChangeBtn ? [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28303
|
+
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,
|
|
28304
|
+
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,
|
|
28305
|
+
selectedSystemOrders: showChangeBtn ? [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type54 = typeMap$2[type]) === null || _typeMap$type54 === void 0 ? void 0 : _typeMap$type54.systemOrderNo)]] : [],
|
|
28298
28306
|
tradeGoods: {
|
|
28299
28307
|
originDataSource: getGoodDetails({
|
|
28300
28308
|
mode: isStrict,
|
|
28301
|
-
isAllOrders: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28309
|
+
isAllOrders: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type55 = typeMap$2[type]) === null || _typeMap$type55 === void 0 ? void 0 : _typeMap$type55.isShowSelectTradeGoods
|
|
28302
28310
|
}),
|
|
28303
|
-
uniqueKey: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28311
|
+
uniqueKey: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type56 = typeMap$2[type]) === null || _typeMap$type56 === void 0 ? void 0 : _typeMap$type56.uniqueKey) || 'uuid',
|
|
28304
28312
|
selectedGoodsChange: selectedGoodsChange
|
|
28305
28313
|
}
|
|
28306
28314
|
})));
|