@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.esm.js
CHANGED
|
@@ -3,7 +3,7 @@ import { Cascader, DatePicker, Image, InputNumber, Input, Select, Upload, messag
|
|
|
3
3
|
import { EyeOutlined, DeleteOutlined, CloseOutlined, PlusSquareOutlined, MinusCircleFilled, PlusCircleFilled, CopyOutlined, CloseCircleOutlined, CaretUpOutlined, UpOutlined, DownOutlined, PlusOutlined, VideoCameraTwoTone } from '@ant-design/icons';
|
|
4
4
|
import request, { extend as extend$1 } from 'umi-request';
|
|
5
5
|
import { CopyToClipboard } from 'react-copy-to-clipboard';
|
|
6
|
-
import { AddressData, BsAddressData, WdtAddressData, GyAddressData, JstAddressData, request as request$1, ExpressData, isNull, imgResize, uuid, servers, columnsGoodsList, LogisticsAddressData, SendDataCenter, kmSkuTypeMap, hasAddNullComponent, SUBMIT_TIME_ID, UPGRADE_TIME_ID, FINAL_TIME_ID, CUSTOM_TIME_ID, useStatus, finalFormData, transformList, dataSourceTrans, DATA_SPLIT_COMPONENT_FIELDS_MAP, findLabelBySelectValue, BS_E3_BOOLEAN_STATUS_MAP, filterWdtOrders, WDT_ORDER_TYPE_MAP, tradeStatusMap, filterBsE3Orders, filterGyOrders, GY_DELIVERY_STATE_MAPPING, filterJstOrders, filterJyOrders, JY_ORDER_TYPE_MAP, JY_ORDER_STATUS_MAP, filterJkyOrders, JKY_ORDER_TYPE_MAP, JKY_ORDER_STATUS_MAP, filterKmOrders, getSystemShowHead, getIsPlatformCodesIncludeOrderNos, BS_SYSTEM_ORDER_CONFIG, KM_SYSTEM_ORDER_CONFIG, WLN_SYSTEM_ORDER_CONFIG, WDT_SYSTEM_ORDER_CONFIG, BS_E3_SYSTEM_ORDER_CONFIG, GY_SYSTEM_ORDER_CONFIG, JST_SYSTEM_ORDER_CONFIG, JY_SYSTEM_ORDER_CONFIG, JKY_SYSTEM_ORDER_CONFIG, WDT_RETURN_BILL_NO_CONFIG, updateOrderSubFormGoodsHandle, updateWlnGoodsHandle, updateWdtGoodsHandle, updateBsE3GoodsHandle, updateGyGoodsHandle, updateJstGoodsHandle, updateKmGoodsHandle, updateJyGoodsHandle, updateJkyGoodsHandle, updateWdtAftersaleGoodsHandle, jstMergeIdenticalGoods, msgTypeCh, pushGyLog, skxSystemOrderBackValues, skxReturnSystemOrderBackValues, formatTrade, updateSkxGoodsHandle, formatReturnTrade, updateSkxReturnGoodsHandle } from '@kmkf-fe-packages/kmkf-utils';
|
|
6
|
+
import { AddressData, BsAddressData, WdtAddressData, GyAddressData, JstAddressData, request as request$1, ExpressData, isNull, imgResize, uuid, servers, columnsGoodsList, LogisticsAddressData, SendDataCenter, kmSkuTypeMap, hasAddNullComponent, SUBMIT_TIME_ID, UPGRADE_TIME_ID, FINAL_TIME_ID, CUSTOM_TIME_ID, useStatus, finalFormData, transformList, dataSourceTrans, DATA_SPLIT_COMPONENT_FIELDS_MAP, findLabelBySelectValue, BS_E3_BOOLEAN_STATUS_MAP, filterWdtOrders, WDT_ORDER_TYPE_MAP, tradeStatusMap, filterBsE3Orders, filterGyOrders, GY_DELIVERY_STATE_MAPPING, filterJstOrders, filterJyOrders, JY_ORDER_TYPE_MAP, JY_ORDER_STATUS_MAP, filterJkyOrders, JKY_ORDER_FROM_MAP, JKY_ORDER_TYPE_MAP, JKY_ORDER_STATUS_MAP, filterKmOrders, getSystemShowHead, getIsPlatformCodesIncludeOrderNos, BS_SYSTEM_ORDER_CONFIG, KM_SYSTEM_ORDER_CONFIG, WLN_SYSTEM_ORDER_CONFIG, WDT_SYSTEM_ORDER_CONFIG, BS_E3_SYSTEM_ORDER_CONFIG, GY_SYSTEM_ORDER_CONFIG, JST_SYSTEM_ORDER_CONFIG, JY_SYSTEM_ORDER_CONFIG, JKY_SYSTEM_ORDER_CONFIG, WDT_RETURN_BILL_NO_CONFIG, updateOrderSubFormGoodsHandle, updateWlnGoodsHandle, updateWdtGoodsHandle, updateBsE3GoodsHandle, updateGyGoodsHandle, updateJstGoodsHandle, updateKmGoodsHandle, updateJyGoodsHandle, updateJkyGoodsHandle, updateWdtAftersaleGoodsHandle, jstMergeIdenticalGoods, msgTypeCh, pushGyLog, skxSystemOrderBackValues, skxReturnSystemOrderBackValues, formatTrade, updateSkxGoodsHandle, formatReturnTrade, updateSkxReturnGoodsHandle } from '@kmkf-fe-packages/kmkf-utils';
|
|
7
7
|
import every from 'lodash/every';
|
|
8
8
|
import maxBy from 'lodash/maxBy';
|
|
9
9
|
import { debounce, isNaN as isNaN$1, isNumber as isNumber$1, uniqBy, cloneDeep, difference, differenceWith, isBoolean, isEqual, takeRight, reject as reject$1, intersection, isEmpty } from 'lodash';
|
|
@@ -15362,34 +15362,75 @@ var jyColumns = [{
|
|
|
15362
15362
|
}
|
|
15363
15363
|
}];
|
|
15364
15364
|
|
|
15365
|
+
var getYesOrNo$2 = function getYesOrNo(val) {
|
|
15366
|
+
if (!isBoolean(val)) return null;
|
|
15367
|
+
return val ? '是' : '否';
|
|
15368
|
+
};
|
|
15365
15369
|
var jkyColumns = [{
|
|
15366
|
-
dataIndex: '
|
|
15367
|
-
title: "\u8D27\u54C1\
|
|
15370
|
+
dataIndex: 'goodName',
|
|
15371
|
+
title: "\u8D27\u54C1\u540D\u79F0",
|
|
15368
15372
|
align: 'center',
|
|
15369
15373
|
ellipsis: true,
|
|
15370
15374
|
width: 150,
|
|
15371
15375
|
render: renderTextEllipsis
|
|
15372
15376
|
}, {
|
|
15373
|
-
dataIndex: '
|
|
15374
|
-
title: "\u8D27\u54C1\
|
|
15377
|
+
dataIndex: 'goodNo',
|
|
15378
|
+
title: "\u8D27\u54C1\u7F16\u53F7",
|
|
15375
15379
|
align: 'center',
|
|
15376
15380
|
ellipsis: true,
|
|
15377
15381
|
width: 150,
|
|
15378
15382
|
render: renderTextEllipsis
|
|
15379
15383
|
}, {
|
|
15380
|
-
dataIndex: '
|
|
15384
|
+
dataIndex: 'goodId',
|
|
15381
15385
|
title: "\u8D27\u54C1ID",
|
|
15382
15386
|
align: 'center',
|
|
15383
15387
|
ellipsis: true,
|
|
15384
15388
|
width: 150,
|
|
15385
15389
|
render: renderTextEllipsis
|
|
15386
15390
|
}, {
|
|
15387
|
-
dataIndex: '
|
|
15391
|
+
dataIndex: 'goodPicUrl',
|
|
15392
|
+
title: "\u8D27\u54C1\u4E3B\u56FE",
|
|
15393
|
+
align: 'center',
|
|
15394
|
+
ellipsis: true,
|
|
15395
|
+
width: 150,
|
|
15396
|
+
render: function render(picUrl) {
|
|
15397
|
+
return /*#__PURE__*/React.createElement("img", {
|
|
15398
|
+
style: {
|
|
15399
|
+
width: '30px',
|
|
15400
|
+
height: '30px',
|
|
15401
|
+
objectFit: 'contain'
|
|
15402
|
+
},
|
|
15403
|
+
src: picUrl
|
|
15404
|
+
});
|
|
15405
|
+
}
|
|
15406
|
+
}, {
|
|
15407
|
+
dataIndex: 'goodShortName',
|
|
15408
|
+
title: "\u8D27\u54C1\u522B\u540D",
|
|
15409
|
+
align: 'center',
|
|
15410
|
+
ellipsis: true,
|
|
15411
|
+
width: 150,
|
|
15412
|
+
render: renderTextEllipsis
|
|
15413
|
+
}, {
|
|
15414
|
+
dataIndex: 'specBarcode',
|
|
15388
15415
|
title: "\u8D27\u54C1\u6761\u7801",
|
|
15389
15416
|
align: 'center',
|
|
15390
15417
|
ellipsis: true,
|
|
15391
15418
|
width: 150,
|
|
15392
15419
|
render: renderTextEllipsis
|
|
15420
|
+
}, {
|
|
15421
|
+
dataIndex: 'categoryName',
|
|
15422
|
+
title: "\u8D27\u54C1\u7C7B\u522B",
|
|
15423
|
+
align: 'center',
|
|
15424
|
+
ellipsis: true,
|
|
15425
|
+
width: 150,
|
|
15426
|
+
render: renderTextEllipsis
|
|
15427
|
+
}, {
|
|
15428
|
+
dataIndex: 'brandName',
|
|
15429
|
+
title: "\u54C1\u724C",
|
|
15430
|
+
align: 'center',
|
|
15431
|
+
ellipsis: true,
|
|
15432
|
+
width: 200,
|
|
15433
|
+
render: renderTextEllipsis
|
|
15393
15434
|
}, {
|
|
15394
15435
|
dataIndex: 'specName',
|
|
15395
15436
|
title: "\u89C4\u683C\u540D\u79F0",
|
|
@@ -15405,7 +15446,14 @@ var jkyColumns = [{
|
|
|
15405
15446
|
width: 150,
|
|
15406
15447
|
render: renderTextEllipsis
|
|
15407
15448
|
}, {
|
|
15408
|
-
dataIndex: '
|
|
15449
|
+
dataIndex: 'specNo',
|
|
15450
|
+
title: "\u89C4\u683C\u7F16\u7801",
|
|
15451
|
+
align: 'center',
|
|
15452
|
+
ellipsis: true,
|
|
15453
|
+
width: 150,
|
|
15454
|
+
render: renderTextEllipsis
|
|
15455
|
+
}, {
|
|
15456
|
+
dataIndex: 'specImgUrl',
|
|
15409
15457
|
title: "\u89C4\u683C\u56FE\u7247",
|
|
15410
15458
|
align: 'center',
|
|
15411
15459
|
ellipsis: true,
|
|
@@ -15421,162 +15469,78 @@ var jkyColumns = [{
|
|
|
15421
15469
|
});
|
|
15422
15470
|
}
|
|
15423
15471
|
}, {
|
|
15424
|
-
dataIndex: '
|
|
15425
|
-
title: "\
|
|
15426
|
-
width: 100,
|
|
15427
|
-
render: function render(val) {
|
|
15428
|
-
return /*#__PURE__*/React.createElement("span", null, val);
|
|
15429
|
-
}
|
|
15430
|
-
}, {
|
|
15431
|
-
dataIndex: 'actualSendCount',
|
|
15432
|
-
title: "\u5B9E\u53D1\u6570\u91CF",
|
|
15433
|
-
width: 150,
|
|
15434
|
-
render: renderTextEllipsis
|
|
15435
|
-
}, {
|
|
15436
|
-
dataIndex: 'sellPrice',
|
|
15437
|
-
title: "\u5355\u4EF7",
|
|
15438
|
-
width: 150,
|
|
15439
|
-
render: function render(val) {
|
|
15440
|
-
return val || val === 0 ? Number(val).toFixed(2) : '';
|
|
15441
|
-
}
|
|
15442
|
-
}, {
|
|
15443
|
-
dataIndex: 'sellTotal',
|
|
15444
|
-
title: "\u91D1\u989D",
|
|
15445
|
-
width: 150
|
|
15446
|
-
}, {
|
|
15447
|
-
dataIndex: 'discountTotal',
|
|
15448
|
-
title: "\u62B5\u6263\u91D1\u989D",
|
|
15449
|
-
width: 150
|
|
15450
|
-
}, {
|
|
15451
|
-
dataIndex: 'shareFavourableFee',
|
|
15452
|
-
title: "\u5206\u644A\u91D1\u989D",
|
|
15453
|
-
width: 150
|
|
15454
|
-
}, {
|
|
15455
|
-
dataIndex: 'shareFavourableAfterFee',
|
|
15456
|
-
title: "\u5206\u644A\u540E\u91D1\u989D",
|
|
15457
|
-
width: 150
|
|
15458
|
-
}, {
|
|
15459
|
-
dataIndex: 'customerPrice',
|
|
15460
|
-
title: "\u7EC8\u7AEF\u9500\u552E\u5355\u4EF7",
|
|
15461
|
-
width: 150
|
|
15462
|
-
}, {
|
|
15463
|
-
dataIndex: 'customerTotal',
|
|
15464
|
-
title: "\u7EC8\u7AEF\u9500\u552E\u91D1\u989D",
|
|
15465
|
-
width: 150
|
|
15466
|
-
}, {
|
|
15467
|
-
dataIndex: 'divideSellTotal',
|
|
15468
|
-
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
15469
|
-
width: 150
|
|
15470
|
-
}, {
|
|
15471
|
-
dataIndex: 'isGift',
|
|
15472
|
-
title: "\u662F\u5426\u8D60\u54C1",
|
|
15473
|
-
width: 150,
|
|
15474
|
-
render: function render(val) {
|
|
15475
|
-
return /*#__PURE__*/React.createElement("span", null, val === '1' ? '是' : '否');
|
|
15476
|
-
}
|
|
15477
|
-
}, {
|
|
15478
|
-
dataIndex: 'isFit',
|
|
15479
|
-
title: "\u662F\u5426\u7EC4\u5408\u88C5",
|
|
15480
|
-
width: 150,
|
|
15481
|
-
render: function render(val) {
|
|
15482
|
-
return /*#__PURE__*/React.createElement("span", null, val === '1' ? '是' : '否');
|
|
15483
|
-
}
|
|
15484
|
-
}, {
|
|
15485
|
-
dataIndex: 'isPresell',
|
|
15486
|
-
title: "\u662F\u5426\u9884\u552E\u8D27\u54C1",
|
|
15487
|
-
width: 150,
|
|
15488
|
-
render: function render(val) {
|
|
15489
|
-
return /*#__PURE__*/React.createElement("span", null, val === '1' ? '是' : '否');
|
|
15490
|
-
}
|
|
15491
|
-
}, {
|
|
15492
|
-
dataIndex: 'brandName',
|
|
15493
|
-
title: "\u54C1\u724C",
|
|
15472
|
+
dataIndex: 'colorName',
|
|
15473
|
+
title: "\u989C\u8272\u540D\u79F0",
|
|
15494
15474
|
align: 'center',
|
|
15495
15475
|
ellipsis: true,
|
|
15496
|
-
width:
|
|
15476
|
+
width: 150,
|
|
15497
15477
|
render: renderTextEllipsis
|
|
15498
15478
|
}, {
|
|
15499
|
-
dataIndex: '
|
|
15500
|
-
title: "\
|
|
15479
|
+
dataIndex: 'colorCode',
|
|
15480
|
+
title: "\u989C\u8272\u4EE3\u7801",
|
|
15501
15481
|
align: 'center',
|
|
15502
15482
|
ellipsis: true,
|
|
15503
15483
|
width: 150,
|
|
15504
15484
|
render: renderTextEllipsis
|
|
15505
15485
|
}, {
|
|
15506
|
-
dataIndex: '
|
|
15507
|
-
title: "\
|
|
15486
|
+
dataIndex: 'sizeName',
|
|
15487
|
+
title: "\u5C3A\u7801\u540D\u79F0",
|
|
15508
15488
|
align: 'center',
|
|
15509
15489
|
ellipsis: true,
|
|
15510
|
-
width:
|
|
15490
|
+
width: 150,
|
|
15511
15491
|
render: renderTextEllipsis
|
|
15512
15492
|
}, {
|
|
15513
|
-
dataIndex: '
|
|
15514
|
-
title: "\
|
|
15493
|
+
dataIndex: 'sizeCode',
|
|
15494
|
+
title: "\u5C3A\u7801\u4EE3\u7801",
|
|
15515
15495
|
align: 'center',
|
|
15516
15496
|
ellipsis: true,
|
|
15517
|
-
width:
|
|
15497
|
+
width: 150,
|
|
15518
15498
|
render: renderTextEllipsis
|
|
15519
15499
|
}, {
|
|
15520
|
-
dataIndex: '
|
|
15521
|
-
title: "\
|
|
15500
|
+
dataIndex: 'marketPrice',
|
|
15501
|
+
title: "\u5E02\u573A\u4EF7",
|
|
15522
15502
|
align: 'center',
|
|
15523
15503
|
ellipsis: true,
|
|
15524
|
-
width:
|
|
15525
|
-
render: renderTextEllipsis
|
|
15526
|
-
}, {
|
|
15527
|
-
dataIndex: 'tradeGoodsName',
|
|
15528
|
-
title: "\u4EA4\u6613\u8D27\u54C1\u540D\u79F0",
|
|
15529
|
-
ellipsis: true,
|
|
15530
|
-
width: 250,
|
|
15531
|
-
render: renderTextEllipsis
|
|
15532
|
-
}, {
|
|
15533
|
-
dataIndex: 'tradeGoodsSpec',
|
|
15534
|
-
title: "\u4EA4\u6613\u89C4\u683C\u540D\u79F0",
|
|
15535
|
-
ellipsis: true,
|
|
15536
|
-
width: 250,
|
|
15537
|
-
render: renderTextEllipsis
|
|
15538
|
-
}, {
|
|
15539
|
-
dataIndex: 'sourceSubtradeNo',
|
|
15540
|
-
title: "\u7F51\u5E97\u5B50\u8BA2\u5355\u53F7",
|
|
15541
|
-
ellipsis: true,
|
|
15542
|
-
width: 250,
|
|
15543
|
-
render: renderTextEllipsis
|
|
15544
|
-
}, {
|
|
15545
|
-
dataIndex: 'platGoodsId',
|
|
15546
|
-
title: "\u5E73\u53F0\u5546\u54C1ID",
|
|
15547
|
-
ellipsis: true,
|
|
15548
|
-
width: 250,
|
|
15504
|
+
width: 150,
|
|
15549
15505
|
render: renderTextEllipsis
|
|
15550
15506
|
}, {
|
|
15551
|
-
dataIndex: '
|
|
15552
|
-
title: "\
|
|
15507
|
+
dataIndex: 'retailPrice',
|
|
15508
|
+
title: "\u96F6\u552E\u4EF7",
|
|
15509
|
+
align: 'center',
|
|
15553
15510
|
ellipsis: true,
|
|
15554
|
-
width:
|
|
15511
|
+
width: 150,
|
|
15555
15512
|
render: renderTextEllipsis
|
|
15556
15513
|
}, {
|
|
15557
|
-
dataIndex: '
|
|
15558
|
-
title: "\
|
|
15514
|
+
dataIndex: 'memberPrice',
|
|
15515
|
+
title: "\u4F1A\u5458\u4EF7",
|
|
15516
|
+
align: 'center',
|
|
15559
15517
|
ellipsis: true,
|
|
15560
|
-
width:
|
|
15518
|
+
width: 150,
|
|
15561
15519
|
render: renderTextEllipsis
|
|
15562
15520
|
}, {
|
|
15563
|
-
dataIndex: '
|
|
15564
|
-
title: "\
|
|
15521
|
+
dataIndex: 'costPrice',
|
|
15522
|
+
title: "\u6210\u672C\u4EF7",
|
|
15523
|
+
align: 'center',
|
|
15565
15524
|
ellipsis: true,
|
|
15566
|
-
width:
|
|
15525
|
+
width: 150,
|
|
15567
15526
|
render: renderTextEllipsis
|
|
15568
15527
|
}, {
|
|
15569
|
-
dataIndex: '
|
|
15570
|
-
title: "\
|
|
15528
|
+
dataIndex: 'isVirtual',
|
|
15529
|
+
title: "\u662F\u5426\u865A\u62DF\u5546\u54C1",
|
|
15530
|
+
align: 'center',
|
|
15571
15531
|
ellipsis: true,
|
|
15572
|
-
width:
|
|
15573
|
-
render:
|
|
15532
|
+
width: 150,
|
|
15533
|
+
render: function render(val) {
|
|
15534
|
+
return renderTextEllipsis(getYesOrNo$2(val));
|
|
15535
|
+
}
|
|
15574
15536
|
}, {
|
|
15575
|
-
dataIndex: '
|
|
15576
|
-
title: "\
|
|
15537
|
+
dataIndex: 'skuType',
|
|
15538
|
+
title: "\u662F\u5426\u7EC4\u5408\u88C5",
|
|
15577
15539
|
ellipsis: true,
|
|
15578
|
-
width:
|
|
15579
|
-
render:
|
|
15540
|
+
width: 150,
|
|
15541
|
+
render: function render(val) {
|
|
15542
|
+
return renderTextEllipsis(getYesOrNo$2(val === 'combine'));
|
|
15543
|
+
}
|
|
15580
15544
|
}];
|
|
15581
15545
|
|
|
15582
15546
|
var getColumnsMap = function getColumnsMap() {
|
|
@@ -18819,13 +18783,15 @@ var JyGoodsModal$1 = /*#__PURE__*/forwardRef(JyGoodsModal);
|
|
|
18819
18783
|
var getTableData$6 = function getTableData(_ref, formData) {
|
|
18820
18784
|
var current = _ref.current,
|
|
18821
18785
|
pageSize = _ref.pageSize;
|
|
18786
|
+
var conditionList = transformFormData(formData);
|
|
18822
18787
|
return extendRequest('/qy/gdfw/product/product/page', {
|
|
18823
18788
|
method: 'post',
|
|
18824
|
-
data:
|
|
18789
|
+
data: {
|
|
18825
18790
|
pageSize: pageSize,
|
|
18826
18791
|
pageNo: current,
|
|
18827
|
-
platform: '
|
|
18828
|
-
|
|
18792
|
+
platform: 'JKY_ERP',
|
|
18793
|
+
conditionList: conditionList
|
|
18794
|
+
}
|
|
18829
18795
|
}).then(function (res) {
|
|
18830
18796
|
var _res$data = res.data,
|
|
18831
18797
|
_res$data$productSkuL = _res$data.productSkuList,
|
|
@@ -18848,13 +18814,15 @@ var searchFormData$5 = [{
|
|
|
18848
18814
|
}, {
|
|
18849
18815
|
label: '规格编码',
|
|
18850
18816
|
name: 'skuCode',
|
|
18851
|
-
dataIndex: 'specNo'
|
|
18817
|
+
dataIndex: 'specNo',
|
|
18818
|
+
type: 'optionalInput'
|
|
18852
18819
|
}, {
|
|
18853
|
-
label: '
|
|
18820
|
+
label: '货品名称',
|
|
18854
18821
|
name: 'goodName'
|
|
18855
18822
|
}, {
|
|
18856
|
-
label: '
|
|
18857
|
-
name: 'goodNo'
|
|
18823
|
+
label: '货品编码',
|
|
18824
|
+
name: 'goodNo',
|
|
18825
|
+
type: 'optionalInput'
|
|
18858
18826
|
}];
|
|
18859
18827
|
var GoodList$6 = function GoodList(props, ref) {
|
|
18860
18828
|
var _useState = useState([]),
|
|
@@ -20372,7 +20340,7 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
20372
20340
|
};
|
|
20373
20341
|
};
|
|
20374
20342
|
|
|
20375
|
-
var getYesOrNo$
|
|
20343
|
+
var getYesOrNo$3 = function getYesOrNo(val) {
|
|
20376
20344
|
if (isNull(val)) return null;
|
|
20377
20345
|
return val ? '是' : '否';
|
|
20378
20346
|
};
|
|
@@ -20523,7 +20491,7 @@ var getColumns$3 = function getColumns(_ref) {
|
|
|
20523
20491
|
label: '否',
|
|
20524
20492
|
value: false
|
|
20525
20493
|
}]
|
|
20526
|
-
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$
|
|
20494
|
+
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$3(val));
|
|
20527
20495
|
},
|
|
20528
20496
|
width: 100
|
|
20529
20497
|
}]
|
|
@@ -20535,7 +20503,7 @@ var isNumberOrNumberString$1 = function isNumberOrNumberString(value) {
|
|
|
20535
20503
|
if (typeof value === 'string' && !isNaN(Number(value)) && value.trim() !== '') return true;
|
|
20536
20504
|
return false;
|
|
20537
20505
|
};
|
|
20538
|
-
var getYesOrNo$
|
|
20506
|
+
var getYesOrNo$4 = function getYesOrNo(val) {
|
|
20539
20507
|
if (isNull(val)) return null;
|
|
20540
20508
|
return val ? '是' : '否';
|
|
20541
20509
|
};
|
|
@@ -20650,7 +20618,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
20650
20618
|
title: "\u662F\u5426\u53D6\u6D88",
|
|
20651
20619
|
width: 150,
|
|
20652
20620
|
render: function render(val) {
|
|
20653
|
-
return /*#__PURE__*/React.createElement("span", null, getYesOrNo$
|
|
20621
|
+
return /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
|
|
20654
20622
|
}
|
|
20655
20623
|
}, {
|
|
20656
20624
|
dataIndex: 'isGift',
|
|
@@ -20669,7 +20637,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
20669
20637
|
label: '否',
|
|
20670
20638
|
value: 0
|
|
20671
20639
|
}]
|
|
20672
|
-
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$
|
|
20640
|
+
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
|
|
20673
20641
|
}
|
|
20674
20642
|
}, {
|
|
20675
20643
|
dataIndex: 'skuNote',
|
|
@@ -20795,7 +20763,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
20795
20763
|
label: '否',
|
|
20796
20764
|
value: 0
|
|
20797
20765
|
}]
|
|
20798
|
-
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$
|
|
20766
|
+
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
|
|
20799
20767
|
}
|
|
20800
20768
|
}].map(function (item) {
|
|
20801
20769
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
@@ -20924,7 +20892,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
20924
20892
|
label: '否',
|
|
20925
20893
|
value: 0
|
|
20926
20894
|
}]
|
|
20927
|
-
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$
|
|
20895
|
+
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
|
|
20928
20896
|
}
|
|
20929
20897
|
}].map(function (item) {
|
|
20930
20898
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
@@ -23307,6 +23275,13 @@ var processGoods$1 = function processGoods(_ref) {
|
|
|
23307
23275
|
canUpdateNumber: canUpdateNumber,
|
|
23308
23276
|
source: source
|
|
23309
23277
|
});
|
|
23278
|
+
} else if (isErpType.isJky(type)) {
|
|
23279
|
+
newList = processJkyGoods({
|
|
23280
|
+
list: list,
|
|
23281
|
+
type: type,
|
|
23282
|
+
canUpdateNumber: canUpdateNumber,
|
|
23283
|
+
source: source
|
|
23284
|
+
});
|
|
23310
23285
|
} else {
|
|
23311
23286
|
newList = processDefaultGoods({
|
|
23312
23287
|
list: list,
|
|
@@ -23355,11 +23330,45 @@ var processJyGoods = function processJyGoods(_ref2) {
|
|
|
23355
23330
|
});
|
|
23356
23331
|
});
|
|
23357
23332
|
};
|
|
23358
|
-
|
|
23359
|
-
var processWdtGoods$1 = function processWdtGoods(_ref3) {
|
|
23333
|
+
var processJkyGoods = function processJkyGoods(_ref3) {
|
|
23360
23334
|
var list = _ref3.list,
|
|
23361
|
-
type = _ref3.type,
|
|
23362
23335
|
canUpdateNumber = _ref3.canUpdateNumber;
|
|
23336
|
+
return list.map(function (item) {
|
|
23337
|
+
var goodName = item.goodName,
|
|
23338
|
+
goodNo = item.goodNo,
|
|
23339
|
+
goodId = item.goodId,
|
|
23340
|
+
specBarcode = item.specBarcode,
|
|
23341
|
+
retailPrice = item.retailPrice,
|
|
23342
|
+
isGift = item.isGift,
|
|
23343
|
+
skuType = item.skuType,
|
|
23344
|
+
specImgUrl = item.specImgUrl,
|
|
23345
|
+
categoryName = item.categoryName;
|
|
23346
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
23347
|
+
cateName: categoryName,
|
|
23348
|
+
goodsName: goodName,
|
|
23349
|
+
goodsNo: goodNo,
|
|
23350
|
+
goodsId: goodId,
|
|
23351
|
+
barcode: specBarcode,
|
|
23352
|
+
skuImgUrl: specImgUrl,
|
|
23353
|
+
combinationName: goodName,
|
|
23354
|
+
combinationCode: goodNo,
|
|
23355
|
+
isGift: isGift ? '1' : '0',
|
|
23356
|
+
isFit: skuType === 'combine' ? '1' : '0',
|
|
23357
|
+
uuid: uuid(),
|
|
23358
|
+
canDelete: true,
|
|
23359
|
+
sellCount: 1,
|
|
23360
|
+
sellPrice: retailPrice,
|
|
23361
|
+
sellTotal: (retailPrice * 1).toFixed(2),
|
|
23362
|
+
canEdit: true,
|
|
23363
|
+
canUpdateNumber: canUpdateNumber
|
|
23364
|
+
});
|
|
23365
|
+
});
|
|
23366
|
+
};
|
|
23367
|
+
// 处理不同类型的商品数据
|
|
23368
|
+
var processWdtGoods$1 = function processWdtGoods(_ref4) {
|
|
23369
|
+
var list = _ref4.list,
|
|
23370
|
+
type = _ref4.type,
|
|
23371
|
+
canUpdateNumber = _ref4.canUpdateNumber;
|
|
23363
23372
|
return list.map(function (item) {
|
|
23364
23373
|
var processedItem = _objectSpread2(_objectSpread2({}, item), {}, {
|
|
23365
23374
|
uuid: uuid(),
|
|
@@ -23377,9 +23386,9 @@ var processWdtGoods$1 = function processWdtGoods(_ref3) {
|
|
|
23377
23386
|
return processedItem;
|
|
23378
23387
|
});
|
|
23379
23388
|
};
|
|
23380
|
-
var processBsE3Goods$1 = function processBsE3Goods(
|
|
23381
|
-
var list =
|
|
23382
|
-
canUpdateNumber =
|
|
23389
|
+
var processBsE3Goods$1 = function processBsE3Goods(_ref5) {
|
|
23390
|
+
var list = _ref5.list,
|
|
23391
|
+
canUpdateNumber = _ref5.canUpdateNumber;
|
|
23383
23392
|
return list.map(function (item) {
|
|
23384
23393
|
var specNo = item.specNo,
|
|
23385
23394
|
specId = item.specId,
|
|
@@ -23414,9 +23423,9 @@ var processBsE3Goods$1 = function processBsE3Goods(_ref4) {
|
|
|
23414
23423
|
});
|
|
23415
23424
|
});
|
|
23416
23425
|
};
|
|
23417
|
-
var processGyGoods$1 = function processGyGoods(
|
|
23418
|
-
var list =
|
|
23419
|
-
source =
|
|
23426
|
+
var processGyGoods$1 = function processGyGoods(_ref6) {
|
|
23427
|
+
var list = _ref6.list,
|
|
23428
|
+
source = _ref6.source;
|
|
23420
23429
|
var isFormWorkOrder = source === 'workOrder';
|
|
23421
23430
|
return list.map(function (item) {
|
|
23422
23431
|
var goodName = item.goodName,
|
|
@@ -23443,8 +23452,8 @@ var processGyGoods$1 = function processGyGoods(_ref5) {
|
|
|
23443
23452
|
});
|
|
23444
23453
|
});
|
|
23445
23454
|
};
|
|
23446
|
-
var processJstGoods$1 = function processJstGoods(
|
|
23447
|
-
var list =
|
|
23455
|
+
var processJstGoods$1 = function processJstGoods(_ref7) {
|
|
23456
|
+
var list = _ref7.list;
|
|
23448
23457
|
return list.map(function (item) {
|
|
23449
23458
|
return {
|
|
23450
23459
|
name: item.goodName,
|
|
@@ -23462,9 +23471,9 @@ var processJstGoods$1 = function processJstGoods(_ref6) {
|
|
|
23462
23471
|
};
|
|
23463
23472
|
});
|
|
23464
23473
|
};
|
|
23465
|
-
var processKmGoods$1 = function processKmGoods(
|
|
23466
|
-
var list =
|
|
23467
|
-
type =
|
|
23474
|
+
var processKmGoods$1 = function processKmGoods(_ref8) {
|
|
23475
|
+
var list = _ref8.list,
|
|
23476
|
+
type = _ref8.type;
|
|
23468
23477
|
var initParamsMap = {
|
|
23469
23478
|
KM_GOODS: {
|
|
23470
23479
|
num: 1
|
|
@@ -23496,9 +23505,9 @@ var processKmGoods$1 = function processKmGoods(_ref7) {
|
|
|
23496
23505
|
}, initParamsMap[type] || {});
|
|
23497
23506
|
});
|
|
23498
23507
|
};
|
|
23499
|
-
var processDefaultGoods = function processDefaultGoods(
|
|
23500
|
-
var list =
|
|
23501
|
-
canUpdateNumber =
|
|
23508
|
+
var processDefaultGoods = function processDefaultGoods(_ref9) {
|
|
23509
|
+
var list = _ref9.list,
|
|
23510
|
+
canUpdateNumber = _ref9.canUpdateNumber;
|
|
23502
23511
|
return list.map(function (item) {
|
|
23503
23512
|
var goodsId = item.goodsId,
|
|
23504
23513
|
name = item.name,
|
|
@@ -25160,21 +25169,22 @@ var getJkyOrderListSingleton = function getJkyOrderListSingleton(orderNo) {
|
|
|
25160
25169
|
extendRequest('/qy/gdfw/jky/erp/trade/fullInfo', {
|
|
25161
25170
|
method: 'post',
|
|
25162
25171
|
data: {
|
|
25163
|
-
|
|
25172
|
+
sourceTradeNos: orderNo
|
|
25164
25173
|
}
|
|
25165
25174
|
}).then(function (res) {
|
|
25166
25175
|
if (res === null || res === void 0 ? void 0 : res.success) {
|
|
25167
|
-
var _res$data, _res$
|
|
25168
|
-
if (res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 :
|
|
25169
|
-
var _filterJkyOrders
|
|
25170
|
-
res.data.trades = (_filterJkyOrders = filterJkyOrders(res === null || res === void 0 ? void 0 :
|
|
25176
|
+
var _res$data, _res$data2;
|
|
25177
|
+
if (res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.length) {
|
|
25178
|
+
var _filterJkyOrders;
|
|
25179
|
+
res.data.trades = (_filterJkyOrders = filterJkyOrders(res === null || res === void 0 ? void 0 : res.data, orderNo)) === null || _filterJkyOrders === void 0 ? void 0 : _filterJkyOrders.map(function (item) {
|
|
25171
25180
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
25181
|
+
tradeFrom: JKY_ORDER_FROM_MAP[item.tradeFrom],
|
|
25172
25182
|
tradeType: JKY_ORDER_TYPE_MAP[item.tradeType],
|
|
25173
25183
|
tradeStatus: JKY_ORDER_STATUS_MAP[item.tradeStatus]
|
|
25174
25184
|
});
|
|
25175
25185
|
});
|
|
25176
25186
|
}
|
|
25177
|
-
resolve(((_res$
|
|
25187
|
+
resolve(((_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.trades) || []);
|
|
25178
25188
|
// 延迟10秒清除,保证订单的时效性
|
|
25179
25189
|
setTimeout(function () {
|
|
25180
25190
|
singletonMap$7.delete(orderNo);
|
|
@@ -27201,7 +27211,6 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
27201
27211
|
orderNo: value === null || value === void 0 ? void 0 : value.orderNo,
|
|
27202
27212
|
type: compType
|
|
27203
27213
|
});
|
|
27204
|
-
console.log('getDataSourceAsync', list);
|
|
27205
27214
|
onChange(_objectSpread2(_objectSpread2({}, valueRef.current), {}, {
|
|
27206
27215
|
allOrders: list || []
|
|
27207
27216
|
}));
|
|
@@ -27907,7 +27916,7 @@ var typeMap$2 = {
|
|
|
27907
27916
|
}
|
|
27908
27917
|
};
|
|
27909
27918
|
var PublicReissue = function PublicReissue(props) {
|
|
27910
|
-
var _typeMap$
|
|
27919
|
+
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;
|
|
27911
27920
|
var value = props.value,
|
|
27912
27921
|
onChange = props.onChange,
|
|
27913
27922
|
_props$reasonList = props.reasonList,
|
|
@@ -28108,7 +28117,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28108
28117
|
}
|
|
28109
28118
|
}, [sysItemIdMap]);
|
|
28110
28119
|
var getGoodDetails = function getGoodDetails(_ref5) {
|
|
28111
|
-
var _typeMap$type18, _typeMap$type19, _value$typeMap$type$s6, _typeMap$type20, _typeMap$type21, _typeMap$type22, _typeMap$type23
|
|
28120
|
+
var _typeMap$type18, _typeMap$type19, _value$typeMap$type$s6, _typeMap$type20, _typeMap$type21, _typeMap$type22, _typeMap$type23;
|
|
28112
28121
|
var mode = _ref5.mode,
|
|
28113
28122
|
sysOrderNo = _ref5.sysOrderNo,
|
|
28114
28123
|
_ref5$isAllOrders = _ref5.isAllOrders,
|
|
@@ -28140,8 +28149,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28140
28149
|
var _order$typeMap$type$g;
|
|
28141
28150
|
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;
|
|
28142
28151
|
});
|
|
28143
|
-
|
|
28144
|
-
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) : [];
|
|
28152
|
+
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) : [];
|
|
28145
28153
|
var orderNo = systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orderNo;
|
|
28146
28154
|
var list = mode && !isAllOrders ? goodDetails.filter(function (goodItem) {
|
|
28147
28155
|
return !orderNo || goodItem[typeMap$2[type].outerOiIdKey] === orderNo;
|
|
@@ -28149,30 +28157,30 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28149
28157
|
return list;
|
|
28150
28158
|
};
|
|
28151
28159
|
var changeGoodHandle = function changeGoodHandle(val) {
|
|
28152
|
-
var _typeMap$
|
|
28160
|
+
var _typeMap$type24;
|
|
28153
28161
|
var newValue = _objectSpread2({}, value);
|
|
28154
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28162
|
+
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 || [];
|
|
28155
28163
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
28156
28164
|
};
|
|
28157
28165
|
var changeSystemOrderHandle = function changeSystemOrderHandle(val) {
|
|
28158
|
-
var _typeMap$
|
|
28166
|
+
var _typeMap$type25, _typeMap$type26, _value$typeMap$type$t2, _typeMap$type31, _value$typeMap$type$t3, _typeMap$type33;
|
|
28159
28167
|
var newValue = _objectSpread2({}, value);
|
|
28160
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28161
|
-
if (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28162
|
-
var _value$typeMap$type$s7, _typeMap$
|
|
28163
|
-
var orders = (value === null || value === void 0 ? void 0 : (_value$typeMap$type$s7 = value[(_typeMap$
|
|
28168
|
+
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;
|
|
28169
|
+
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) {
|
|
28170
|
+
var _value$typeMap$type$s7, _typeMap$type27, _typeMap$type29, _typeMap$type30;
|
|
28171
|
+
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) || [];
|
|
28164
28172
|
var targetOrder = val && orders.find(function (oItem) {
|
|
28165
|
-
var _typeMap$
|
|
28166
|
-
return oItem[(_typeMap$
|
|
28173
|
+
var _typeMap$type28;
|
|
28174
|
+
return oItem[(_typeMap$type28 = typeMap$2[type]) === null || _typeMap$type28 === void 0 ? void 0 : _typeMap$type28.oIdKey] === val;
|
|
28167
28175
|
});
|
|
28168
|
-
newValue[(_typeMap$
|
|
28169
|
-
}
|
|
28170
|
-
if (['2'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t2 = value[(_typeMap$
|
|
28171
|
-
var _typeMap$
|
|
28172
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28173
|
-
} else if (['1'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t3 = value[(_typeMap$
|
|
28174
|
-
var _typeMap$
|
|
28175
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28176
|
+
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];
|
|
28177
|
+
}
|
|
28178
|
+
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])) {
|
|
28179
|
+
var _typeMap$type32;
|
|
28180
|
+
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)] = [];
|
|
28181
|
+
} 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])) {
|
|
28182
|
+
var _typeMap$type34;
|
|
28183
|
+
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({
|
|
28176
28184
|
mode: isStrict,
|
|
28177
28185
|
sysOrderNo: val
|
|
28178
28186
|
});
|
|
@@ -28180,27 +28188,27 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28180
28188
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue, 'systemOrder');
|
|
28181
28189
|
};
|
|
28182
28190
|
//显示选择商品按钮
|
|
28183
|
-
var showChangeBtn = !!(value === null || value === void 0 ? void 0 : value[(_typeMap$
|
|
28191
|
+
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]);
|
|
28184
28192
|
var selectedGoodsChange = useCallback(function (skuList) {
|
|
28185
|
-
var _typeMap$
|
|
28193
|
+
var _typeMap$type36, _typeMap$type37, _typeMap$type38, _uniqBy, _typeMap$type39;
|
|
28186
28194
|
var newValue = _objectSpread2({}, value);
|
|
28187
28195
|
// 原订单商品
|
|
28188
28196
|
var originTradeGoodList = getGoodDetails({
|
|
28189
28197
|
mode: isStrict,
|
|
28190
|
-
isAllOrders: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28198
|
+
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
|
|
28191
28199
|
}) || [];
|
|
28192
28200
|
// 当前选中的所有商品【包含了原订单+商品库】
|
|
28193
|
-
var currentSelectGoodList = (value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28194
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28195
|
-
var _typeMap$
|
|
28196
|
-
return skuList.includes(item[(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28201
|
+
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)]) || [];
|
|
28202
|
+
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 = 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) {
|
|
28203
|
+
var _typeMap$type40;
|
|
28204
|
+
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']);
|
|
28197
28205
|
});
|
|
28198
28206
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
28199
|
-
}, [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28207
|
+
}, [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]);
|
|
28200
28208
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Row, {
|
|
28201
28209
|
gutter: 8,
|
|
28202
28210
|
wrap: true,
|
|
28203
|
-
id: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28211
|
+
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())
|
|
28204
28212
|
}, /*#__PURE__*/React.createElement(Col, {
|
|
28205
28213
|
className: "gutter-row",
|
|
28206
28214
|
xs: {
|
|
@@ -28216,12 +28224,12 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28216
28224
|
},
|
|
28217
28225
|
disabled: disabled,
|
|
28218
28226
|
allowClear: false,
|
|
28219
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28227
|
+
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)],
|
|
28220
28228
|
onChange: function onChange(val) {
|
|
28221
28229
|
return changeSystemOrderHandle(val);
|
|
28222
28230
|
},
|
|
28223
|
-
placeholder: "\u9009\u62E9".concat((typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28224
|
-
}, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s8 = value[(_typeMap$
|
|
28231
|
+
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")
|
|
28232
|
+
}, ((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) {
|
|
28225
28233
|
return /*#__PURE__*/React.createElement(Select.Option, {
|
|
28226
28234
|
key: item[typeMap$2[type].oIdKey],
|
|
28227
28235
|
value: item[typeMap$2[type].oIdKey],
|
|
@@ -28243,11 +28251,11 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28243
28251
|
disabled: isSettingConfig ? !isSettingConfig : disabled,
|
|
28244
28252
|
allowClear: false,
|
|
28245
28253
|
options: reasonList,
|
|
28246
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28254
|
+
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)],
|
|
28247
28255
|
onChange: function onChange(val) {
|
|
28248
28256
|
return changeTypeHandle(val);
|
|
28249
28257
|
}
|
|
28250
|
-
})), (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28258
|
+
})), (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.createElement(Col, {
|
|
28251
28259
|
className: "gutter-row",
|
|
28252
28260
|
xs: {
|
|
28253
28261
|
span: 11
|
|
@@ -28256,7 +28264,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28256
28264
|
span: 6
|
|
28257
28265
|
}
|
|
28258
28266
|
}, /*#__PURE__*/React.createElement(Input, {
|
|
28259
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28267
|
+
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)],
|
|
28260
28268
|
disabled: disabled,
|
|
28261
28269
|
readOnly: true
|
|
28262
28270
|
}))), /*#__PURE__*/React.createElement(GoodItem$1, _objectSpread2(_objectSpread2({
|
|
@@ -28267,25 +28275,25 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28267
28275
|
canUpdateNumber: showChangeBtn,
|
|
28268
28276
|
hasSelectedSystemOrder: showChangeBtn,
|
|
28269
28277
|
// showChangeBtn={showChangeBtn || typeMap?.[type]?.isShowSelectTradeGoods}
|
|
28270
|
-
alwaysShowChooseErpGoodsBtn: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28278
|
+
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,
|
|
28271
28279
|
// showErpGoodsBtn={typeMap?.[type]?.showErpGoodsBtn}
|
|
28272
28280
|
shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
|
|
28273
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28281
|
+
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)],
|
|
28274
28282
|
onChange: function onChange(val) {
|
|
28275
28283
|
return changeGoodHandle(val);
|
|
28276
28284
|
},
|
|
28277
28285
|
onModeChange: handleModeChange,
|
|
28278
|
-
showModeBtn: !!(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28286
|
+
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),
|
|
28279
28287
|
isStrict: isStrict,
|
|
28280
|
-
isShowSelectTradeGoods: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28281
|
-
systemOrders: value === null || value === void 0 ? void 0 : (_value$typeMap$type$s9 = value[(_typeMap$
|
|
28282
|
-
selectedSystemOrders: showChangeBtn ? [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28288
|
+
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,
|
|
28289
|
+
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,
|
|
28290
|
+
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)]] : [],
|
|
28283
28291
|
tradeGoods: {
|
|
28284
28292
|
originDataSource: getGoodDetails({
|
|
28285
28293
|
mode: isStrict,
|
|
28286
|
-
isAllOrders: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28294
|
+
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
|
|
28287
28295
|
}),
|
|
28288
|
-
uniqueKey: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28296
|
+
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',
|
|
28289
28297
|
selectedGoodsChange: selectedGoodsChange
|
|
28290
28298
|
}
|
|
28291
28299
|
})));
|