@kmkf-fe-packages/basic-components 2.2.44-beta.25 → 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,
|
|
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';
|
|
@@ -7758,9 +7758,10 @@ var Province = function Province(props) {
|
|
|
7758
7758
|
wdt: WdtAddressData.getInstance(),
|
|
7759
7759
|
gy: GyAddressData.getInstance(),
|
|
7760
7760
|
km: AddressData.getInstance(),
|
|
7761
|
-
jst: JstAddressData.getInstance()
|
|
7762
|
-
jky: JkyAddressData.getInstance()
|
|
7761
|
+
jst: JstAddressData.getInstance()
|
|
7762
|
+
// jky: JkyAddressData.getInstance(),
|
|
7763
7763
|
};
|
|
7764
|
+
|
|
7764
7765
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Cascader, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
7765
7766
|
options: ((_mapping$type = mapping[type]) === null || _mapping$type === void 0 ? void 0 : _mapping$type.addressOptions) || [],
|
|
7766
7767
|
style: {
|
|
@@ -15361,34 +15362,75 @@ var jyColumns = [{
|
|
|
15361
15362
|
}
|
|
15362
15363
|
}];
|
|
15363
15364
|
|
|
15365
|
+
var getYesOrNo$2 = function getYesOrNo(val) {
|
|
15366
|
+
if (!isBoolean(val)) return null;
|
|
15367
|
+
return val ? '是' : '否';
|
|
15368
|
+
};
|
|
15364
15369
|
var jkyColumns = [{
|
|
15365
|
-
dataIndex: '
|
|
15366
|
-
title: "\u8D27\u54C1\
|
|
15370
|
+
dataIndex: 'goodName',
|
|
15371
|
+
title: "\u8D27\u54C1\u540D\u79F0",
|
|
15367
15372
|
align: 'center',
|
|
15368
15373
|
ellipsis: true,
|
|
15369
15374
|
width: 150,
|
|
15370
15375
|
render: renderTextEllipsis
|
|
15371
15376
|
}, {
|
|
15372
|
-
dataIndex: '
|
|
15373
|
-
title: "\u8D27\u54C1\
|
|
15377
|
+
dataIndex: 'goodNo',
|
|
15378
|
+
title: "\u8D27\u54C1\u7F16\u53F7",
|
|
15374
15379
|
align: 'center',
|
|
15375
15380
|
ellipsis: true,
|
|
15376
15381
|
width: 150,
|
|
15377
15382
|
render: renderTextEllipsis
|
|
15378
15383
|
}, {
|
|
15379
|
-
dataIndex: '
|
|
15384
|
+
dataIndex: 'goodId',
|
|
15380
15385
|
title: "\u8D27\u54C1ID",
|
|
15381
15386
|
align: 'center',
|
|
15382
15387
|
ellipsis: true,
|
|
15383
15388
|
width: 150,
|
|
15384
15389
|
render: renderTextEllipsis
|
|
15385
15390
|
}, {
|
|
15386
|
-
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',
|
|
15387
15415
|
title: "\u8D27\u54C1\u6761\u7801",
|
|
15388
15416
|
align: 'center',
|
|
15389
15417
|
ellipsis: true,
|
|
15390
15418
|
width: 150,
|
|
15391
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
|
|
15392
15434
|
}, {
|
|
15393
15435
|
dataIndex: 'specName',
|
|
15394
15436
|
title: "\u89C4\u683C\u540D\u79F0",
|
|
@@ -15404,7 +15446,14 @@ var jkyColumns = [{
|
|
|
15404
15446
|
width: 150,
|
|
15405
15447
|
render: renderTextEllipsis
|
|
15406
15448
|
}, {
|
|
15407
|
-
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',
|
|
15408
15457
|
title: "\u89C4\u683C\u56FE\u7247",
|
|
15409
15458
|
align: 'center',
|
|
15410
15459
|
ellipsis: true,
|
|
@@ -15420,162 +15469,78 @@ var jkyColumns = [{
|
|
|
15420
15469
|
});
|
|
15421
15470
|
}
|
|
15422
15471
|
}, {
|
|
15423
|
-
dataIndex: '
|
|
15424
|
-
title: "\
|
|
15425
|
-
width: 100,
|
|
15426
|
-
render: function render(val) {
|
|
15427
|
-
return /*#__PURE__*/React.createElement("span", null, val);
|
|
15428
|
-
}
|
|
15429
|
-
}, {
|
|
15430
|
-
dataIndex: 'actualSendCount',
|
|
15431
|
-
title: "\u5B9E\u53D1\u6570\u91CF",
|
|
15432
|
-
width: 150,
|
|
15433
|
-
render: renderTextEllipsis
|
|
15434
|
-
}, {
|
|
15435
|
-
dataIndex: 'sellPrice',
|
|
15436
|
-
title: "\u5355\u4EF7",
|
|
15437
|
-
width: 150,
|
|
15438
|
-
render: function render(val) {
|
|
15439
|
-
return val || val === 0 ? Number(val).toFixed(2) : '';
|
|
15440
|
-
}
|
|
15441
|
-
}, {
|
|
15442
|
-
dataIndex: 'sellTotal',
|
|
15443
|
-
title: "\u91D1\u989D",
|
|
15444
|
-
width: 150
|
|
15445
|
-
}, {
|
|
15446
|
-
dataIndex: 'discountTotal',
|
|
15447
|
-
title: "\u62B5\u6263\u91D1\u989D",
|
|
15448
|
-
width: 150
|
|
15449
|
-
}, {
|
|
15450
|
-
dataIndex: 'shareFavourableFee',
|
|
15451
|
-
title: "\u5206\u644A\u91D1\u989D",
|
|
15452
|
-
width: 150
|
|
15453
|
-
}, {
|
|
15454
|
-
dataIndex: 'shareFavourableAfterFee',
|
|
15455
|
-
title: "\u5206\u644A\u540E\u91D1\u989D",
|
|
15456
|
-
width: 150
|
|
15457
|
-
}, {
|
|
15458
|
-
dataIndex: 'customerPrice',
|
|
15459
|
-
title: "\u7EC8\u7AEF\u9500\u552E\u5355\u4EF7",
|
|
15460
|
-
width: 150
|
|
15461
|
-
}, {
|
|
15462
|
-
dataIndex: 'customerTotal',
|
|
15463
|
-
title: "\u7EC8\u7AEF\u9500\u552E\u91D1\u989D",
|
|
15464
|
-
width: 150
|
|
15465
|
-
}, {
|
|
15466
|
-
dataIndex: 'divideSellTotal',
|
|
15467
|
-
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
15468
|
-
width: 150
|
|
15469
|
-
}, {
|
|
15470
|
-
dataIndex: 'isGift',
|
|
15471
|
-
title: "\u662F\u5426\u8D60\u54C1",
|
|
15472
|
-
width: 150,
|
|
15473
|
-
render: function render(val) {
|
|
15474
|
-
return /*#__PURE__*/React.createElement("span", null, val === '1' ? '是' : '否');
|
|
15475
|
-
}
|
|
15476
|
-
}, {
|
|
15477
|
-
dataIndex: 'isFit',
|
|
15478
|
-
title: "\u662F\u5426\u7EC4\u5408\u88C5",
|
|
15479
|
-
width: 150,
|
|
15480
|
-
render: function render(val) {
|
|
15481
|
-
return /*#__PURE__*/React.createElement("span", null, val === '1' ? '是' : '否');
|
|
15482
|
-
}
|
|
15483
|
-
}, {
|
|
15484
|
-
dataIndex: 'isPresell',
|
|
15485
|
-
title: "\u662F\u5426\u9884\u552E\u8D27\u54C1",
|
|
15486
|
-
width: 150,
|
|
15487
|
-
render: function render(val) {
|
|
15488
|
-
return /*#__PURE__*/React.createElement("span", null, val === '1' ? '是' : '否');
|
|
15489
|
-
}
|
|
15490
|
-
}, {
|
|
15491
|
-
dataIndex: 'brandName',
|
|
15492
|
-
title: "\u54C1\u724C",
|
|
15472
|
+
dataIndex: 'colorName',
|
|
15473
|
+
title: "\u989C\u8272\u540D\u79F0",
|
|
15493
15474
|
align: 'center',
|
|
15494
15475
|
ellipsis: true,
|
|
15495
|
-
width:
|
|
15476
|
+
width: 150,
|
|
15496
15477
|
render: renderTextEllipsis
|
|
15497
15478
|
}, {
|
|
15498
|
-
dataIndex: '
|
|
15499
|
-
title: "\
|
|
15479
|
+
dataIndex: 'colorCode',
|
|
15480
|
+
title: "\u989C\u8272\u4EE3\u7801",
|
|
15500
15481
|
align: 'center',
|
|
15501
15482
|
ellipsis: true,
|
|
15502
15483
|
width: 150,
|
|
15503
15484
|
render: renderTextEllipsis
|
|
15504
15485
|
}, {
|
|
15505
|
-
dataIndex: '
|
|
15506
|
-
title: "\
|
|
15486
|
+
dataIndex: 'sizeName',
|
|
15487
|
+
title: "\u5C3A\u7801\u540D\u79F0",
|
|
15507
15488
|
align: 'center',
|
|
15508
15489
|
ellipsis: true,
|
|
15509
|
-
width:
|
|
15490
|
+
width: 150,
|
|
15510
15491
|
render: renderTextEllipsis
|
|
15511
15492
|
}, {
|
|
15512
|
-
dataIndex: '
|
|
15513
|
-
title: "\
|
|
15493
|
+
dataIndex: 'sizeCode',
|
|
15494
|
+
title: "\u5C3A\u7801\u4EE3\u7801",
|
|
15514
15495
|
align: 'center',
|
|
15515
15496
|
ellipsis: true,
|
|
15516
|
-
width:
|
|
15497
|
+
width: 150,
|
|
15517
15498
|
render: renderTextEllipsis
|
|
15518
15499
|
}, {
|
|
15519
|
-
dataIndex: '
|
|
15520
|
-
title: "\
|
|
15500
|
+
dataIndex: 'marketPrice',
|
|
15501
|
+
title: "\u5E02\u573A\u4EF7",
|
|
15521
15502
|
align: 'center',
|
|
15522
15503
|
ellipsis: true,
|
|
15523
|
-
width:
|
|
15524
|
-
render: renderTextEllipsis
|
|
15525
|
-
}, {
|
|
15526
|
-
dataIndex: 'tradeGoodsName',
|
|
15527
|
-
title: "\u4EA4\u6613\u8D27\u54C1\u540D\u79F0",
|
|
15528
|
-
ellipsis: true,
|
|
15529
|
-
width: 250,
|
|
15530
|
-
render: renderTextEllipsis
|
|
15531
|
-
}, {
|
|
15532
|
-
dataIndex: 'tradeGoodsSpec',
|
|
15533
|
-
title: "\u4EA4\u6613\u89C4\u683C\u540D\u79F0",
|
|
15534
|
-
ellipsis: true,
|
|
15535
|
-
width: 250,
|
|
15536
|
-
render: renderTextEllipsis
|
|
15537
|
-
}, {
|
|
15538
|
-
dataIndex: 'sourceSubtradeNo',
|
|
15539
|
-
title: "\u7F51\u5E97\u5B50\u8BA2\u5355\u53F7",
|
|
15540
|
-
ellipsis: true,
|
|
15541
|
-
width: 250,
|
|
15542
|
-
render: renderTextEllipsis
|
|
15543
|
-
}, {
|
|
15544
|
-
dataIndex: 'platGoodsId',
|
|
15545
|
-
title: "\u5E73\u53F0\u5546\u54C1ID",
|
|
15546
|
-
ellipsis: true,
|
|
15547
|
-
width: 250,
|
|
15504
|
+
width: 150,
|
|
15548
15505
|
render: renderTextEllipsis
|
|
15549
15506
|
}, {
|
|
15550
|
-
dataIndex: '
|
|
15551
|
-
title: "\
|
|
15507
|
+
dataIndex: 'retailPrice',
|
|
15508
|
+
title: "\u96F6\u552E\u4EF7",
|
|
15509
|
+
align: 'center',
|
|
15552
15510
|
ellipsis: true,
|
|
15553
|
-
width:
|
|
15511
|
+
width: 150,
|
|
15554
15512
|
render: renderTextEllipsis
|
|
15555
15513
|
}, {
|
|
15556
|
-
dataIndex: '
|
|
15557
|
-
title: "\
|
|
15514
|
+
dataIndex: 'memberPrice',
|
|
15515
|
+
title: "\u4F1A\u5458\u4EF7",
|
|
15516
|
+
align: 'center',
|
|
15558
15517
|
ellipsis: true,
|
|
15559
|
-
width:
|
|
15518
|
+
width: 150,
|
|
15560
15519
|
render: renderTextEllipsis
|
|
15561
15520
|
}, {
|
|
15562
|
-
dataIndex: '
|
|
15563
|
-
title: "\
|
|
15521
|
+
dataIndex: 'costPrice',
|
|
15522
|
+
title: "\u6210\u672C\u4EF7",
|
|
15523
|
+
align: 'center',
|
|
15564
15524
|
ellipsis: true,
|
|
15565
|
-
width:
|
|
15525
|
+
width: 150,
|
|
15566
15526
|
render: renderTextEllipsis
|
|
15567
15527
|
}, {
|
|
15568
|
-
dataIndex: '
|
|
15569
|
-
title: "\
|
|
15528
|
+
dataIndex: 'isVirtual',
|
|
15529
|
+
title: "\u662F\u5426\u865A\u62DF\u5546\u54C1",
|
|
15530
|
+
align: 'center',
|
|
15570
15531
|
ellipsis: true,
|
|
15571
|
-
width:
|
|
15572
|
-
render:
|
|
15532
|
+
width: 150,
|
|
15533
|
+
render: function render(val) {
|
|
15534
|
+
return renderTextEllipsis(getYesOrNo$2(val));
|
|
15535
|
+
}
|
|
15573
15536
|
}, {
|
|
15574
|
-
dataIndex: '
|
|
15575
|
-
title: "\
|
|
15537
|
+
dataIndex: 'skuType',
|
|
15538
|
+
title: "\u662F\u5426\u7EC4\u5408\u88C5",
|
|
15576
15539
|
ellipsis: true,
|
|
15577
|
-
width:
|
|
15578
|
-
render:
|
|
15540
|
+
width: 150,
|
|
15541
|
+
render: function render(val) {
|
|
15542
|
+
return renderTextEllipsis(getYesOrNo$2(val === 'combine'));
|
|
15543
|
+
}
|
|
15579
15544
|
}];
|
|
15580
15545
|
|
|
15581
15546
|
var getColumnsMap = function getColumnsMap() {
|
|
@@ -18818,13 +18783,15 @@ var JyGoodsModal$1 = /*#__PURE__*/forwardRef(JyGoodsModal);
|
|
|
18818
18783
|
var getTableData$6 = function getTableData(_ref, formData) {
|
|
18819
18784
|
var current = _ref.current,
|
|
18820
18785
|
pageSize = _ref.pageSize;
|
|
18786
|
+
var conditionList = transformFormData(formData);
|
|
18821
18787
|
return extendRequest('/qy/gdfw/product/product/page', {
|
|
18822
18788
|
method: 'post',
|
|
18823
|
-
data:
|
|
18789
|
+
data: {
|
|
18824
18790
|
pageSize: pageSize,
|
|
18825
18791
|
pageNo: current,
|
|
18826
|
-
platform: '
|
|
18827
|
-
|
|
18792
|
+
platform: 'JKY_ERP',
|
|
18793
|
+
conditionList: conditionList
|
|
18794
|
+
}
|
|
18828
18795
|
}).then(function (res) {
|
|
18829
18796
|
var _res$data = res.data,
|
|
18830
18797
|
_res$data$productSkuL = _res$data.productSkuList,
|
|
@@ -18847,13 +18814,15 @@ var searchFormData$5 = [{
|
|
|
18847
18814
|
}, {
|
|
18848
18815
|
label: '规格编码',
|
|
18849
18816
|
name: 'skuCode',
|
|
18850
|
-
dataIndex: 'specNo'
|
|
18817
|
+
dataIndex: 'specNo',
|
|
18818
|
+
type: 'optionalInput'
|
|
18851
18819
|
}, {
|
|
18852
|
-
label: '
|
|
18820
|
+
label: '货品名称',
|
|
18853
18821
|
name: 'goodName'
|
|
18854
18822
|
}, {
|
|
18855
|
-
label: '
|
|
18856
|
-
name: 'goodNo'
|
|
18823
|
+
label: '货品编码',
|
|
18824
|
+
name: 'goodNo',
|
|
18825
|
+
type: 'optionalInput'
|
|
18857
18826
|
}];
|
|
18858
18827
|
var GoodList$6 = function GoodList(props, ref) {
|
|
18859
18828
|
var _useState = useState([]),
|
|
@@ -20371,7 +20340,7 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
20371
20340
|
};
|
|
20372
20341
|
};
|
|
20373
20342
|
|
|
20374
|
-
var getYesOrNo$
|
|
20343
|
+
var getYesOrNo$3 = function getYesOrNo(val) {
|
|
20375
20344
|
if (isNull(val)) return null;
|
|
20376
20345
|
return val ? '是' : '否';
|
|
20377
20346
|
};
|
|
@@ -20522,7 +20491,7 @@ var getColumns$3 = function getColumns(_ref) {
|
|
|
20522
20491
|
label: '否',
|
|
20523
20492
|
value: false
|
|
20524
20493
|
}]
|
|
20525
|
-
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$
|
|
20494
|
+
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$3(val));
|
|
20526
20495
|
},
|
|
20527
20496
|
width: 100
|
|
20528
20497
|
}]
|
|
@@ -20534,7 +20503,7 @@ var isNumberOrNumberString$1 = function isNumberOrNumberString(value) {
|
|
|
20534
20503
|
if (typeof value === 'string' && !isNaN(Number(value)) && value.trim() !== '') return true;
|
|
20535
20504
|
return false;
|
|
20536
20505
|
};
|
|
20537
|
-
var getYesOrNo$
|
|
20506
|
+
var getYesOrNo$4 = function getYesOrNo(val) {
|
|
20538
20507
|
if (isNull(val)) return null;
|
|
20539
20508
|
return val ? '是' : '否';
|
|
20540
20509
|
};
|
|
@@ -20649,7 +20618,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
20649
20618
|
title: "\u662F\u5426\u53D6\u6D88",
|
|
20650
20619
|
width: 150,
|
|
20651
20620
|
render: function render(val) {
|
|
20652
|
-
return /*#__PURE__*/React.createElement("span", null, getYesOrNo$
|
|
20621
|
+
return /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
|
|
20653
20622
|
}
|
|
20654
20623
|
}, {
|
|
20655
20624
|
dataIndex: 'isGift',
|
|
@@ -20668,7 +20637,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
20668
20637
|
label: '否',
|
|
20669
20638
|
value: 0
|
|
20670
20639
|
}]
|
|
20671
|
-
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$
|
|
20640
|
+
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
|
|
20672
20641
|
}
|
|
20673
20642
|
}, {
|
|
20674
20643
|
dataIndex: 'skuNote',
|
|
@@ -20794,7 +20763,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
20794
20763
|
label: '否',
|
|
20795
20764
|
value: 0
|
|
20796
20765
|
}]
|
|
20797
|
-
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$
|
|
20766
|
+
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
|
|
20798
20767
|
}
|
|
20799
20768
|
}].map(function (item) {
|
|
20800
20769
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
@@ -20923,7 +20892,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
20923
20892
|
label: '否',
|
|
20924
20893
|
value: 0
|
|
20925
20894
|
}]
|
|
20926
|
-
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$
|
|
20895
|
+
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
|
|
20927
20896
|
}
|
|
20928
20897
|
}].map(function (item) {
|
|
20929
20898
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
@@ -23306,6 +23275,13 @@ var processGoods$1 = function processGoods(_ref) {
|
|
|
23306
23275
|
canUpdateNumber: canUpdateNumber,
|
|
23307
23276
|
source: source
|
|
23308
23277
|
});
|
|
23278
|
+
} else if (isErpType.isJky(type)) {
|
|
23279
|
+
newList = processJkyGoods({
|
|
23280
|
+
list: list,
|
|
23281
|
+
type: type,
|
|
23282
|
+
canUpdateNumber: canUpdateNumber,
|
|
23283
|
+
source: source
|
|
23284
|
+
});
|
|
23309
23285
|
} else {
|
|
23310
23286
|
newList = processDefaultGoods({
|
|
23311
23287
|
list: list,
|
|
@@ -23354,11 +23330,45 @@ var processJyGoods = function processJyGoods(_ref2) {
|
|
|
23354
23330
|
});
|
|
23355
23331
|
});
|
|
23356
23332
|
};
|
|
23357
|
-
|
|
23358
|
-
var processWdtGoods$1 = function processWdtGoods(_ref3) {
|
|
23333
|
+
var processJkyGoods = function processJkyGoods(_ref3) {
|
|
23359
23334
|
var list = _ref3.list,
|
|
23360
|
-
type = _ref3.type,
|
|
23361
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;
|
|
23362
23372
|
return list.map(function (item) {
|
|
23363
23373
|
var processedItem = _objectSpread2(_objectSpread2({}, item), {}, {
|
|
23364
23374
|
uuid: uuid(),
|
|
@@ -23376,9 +23386,9 @@ var processWdtGoods$1 = function processWdtGoods(_ref3) {
|
|
|
23376
23386
|
return processedItem;
|
|
23377
23387
|
});
|
|
23378
23388
|
};
|
|
23379
|
-
var processBsE3Goods$1 = function processBsE3Goods(
|
|
23380
|
-
var list =
|
|
23381
|
-
canUpdateNumber =
|
|
23389
|
+
var processBsE3Goods$1 = function processBsE3Goods(_ref5) {
|
|
23390
|
+
var list = _ref5.list,
|
|
23391
|
+
canUpdateNumber = _ref5.canUpdateNumber;
|
|
23382
23392
|
return list.map(function (item) {
|
|
23383
23393
|
var specNo = item.specNo,
|
|
23384
23394
|
specId = item.specId,
|
|
@@ -23413,9 +23423,9 @@ var processBsE3Goods$1 = function processBsE3Goods(_ref4) {
|
|
|
23413
23423
|
});
|
|
23414
23424
|
});
|
|
23415
23425
|
};
|
|
23416
|
-
var processGyGoods$1 = function processGyGoods(
|
|
23417
|
-
var list =
|
|
23418
|
-
source =
|
|
23426
|
+
var processGyGoods$1 = function processGyGoods(_ref6) {
|
|
23427
|
+
var list = _ref6.list,
|
|
23428
|
+
source = _ref6.source;
|
|
23419
23429
|
var isFormWorkOrder = source === 'workOrder';
|
|
23420
23430
|
return list.map(function (item) {
|
|
23421
23431
|
var goodName = item.goodName,
|
|
@@ -23442,8 +23452,8 @@ var processGyGoods$1 = function processGyGoods(_ref5) {
|
|
|
23442
23452
|
});
|
|
23443
23453
|
});
|
|
23444
23454
|
};
|
|
23445
|
-
var processJstGoods$1 = function processJstGoods(
|
|
23446
|
-
var list =
|
|
23455
|
+
var processJstGoods$1 = function processJstGoods(_ref7) {
|
|
23456
|
+
var list = _ref7.list;
|
|
23447
23457
|
return list.map(function (item) {
|
|
23448
23458
|
return {
|
|
23449
23459
|
name: item.goodName,
|
|
@@ -23461,9 +23471,9 @@ var processJstGoods$1 = function processJstGoods(_ref6) {
|
|
|
23461
23471
|
};
|
|
23462
23472
|
});
|
|
23463
23473
|
};
|
|
23464
|
-
var processKmGoods$1 = function processKmGoods(
|
|
23465
|
-
var list =
|
|
23466
|
-
type =
|
|
23474
|
+
var processKmGoods$1 = function processKmGoods(_ref8) {
|
|
23475
|
+
var list = _ref8.list,
|
|
23476
|
+
type = _ref8.type;
|
|
23467
23477
|
var initParamsMap = {
|
|
23468
23478
|
KM_GOODS: {
|
|
23469
23479
|
num: 1
|
|
@@ -23495,9 +23505,9 @@ var processKmGoods$1 = function processKmGoods(_ref7) {
|
|
|
23495
23505
|
}, initParamsMap[type] || {});
|
|
23496
23506
|
});
|
|
23497
23507
|
};
|
|
23498
|
-
var processDefaultGoods = function processDefaultGoods(
|
|
23499
|
-
var list =
|
|
23500
|
-
canUpdateNumber =
|
|
23508
|
+
var processDefaultGoods = function processDefaultGoods(_ref9) {
|
|
23509
|
+
var list = _ref9.list,
|
|
23510
|
+
canUpdateNumber = _ref9.canUpdateNumber;
|
|
23501
23511
|
return list.map(function (item) {
|
|
23502
23512
|
var goodsId = item.goodsId,
|
|
23503
23513
|
name = item.name,
|
|
@@ -25159,21 +25169,22 @@ var getJkyOrderListSingleton = function getJkyOrderListSingleton(orderNo) {
|
|
|
25159
25169
|
extendRequest('/qy/gdfw/jky/erp/trade/fullInfo', {
|
|
25160
25170
|
method: 'post',
|
|
25161
25171
|
data: {
|
|
25162
|
-
|
|
25172
|
+
sourceTradeNos: orderNo
|
|
25163
25173
|
}
|
|
25164
25174
|
}).then(function (res) {
|
|
25165
25175
|
if (res === null || res === void 0 ? void 0 : res.success) {
|
|
25166
|
-
var _res$data, _res$
|
|
25167
|
-
if (res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 :
|
|
25168
|
-
var _filterJkyOrders
|
|
25169
|
-
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) {
|
|
25170
25180
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
25181
|
+
tradeFrom: JKY_ORDER_FROM_MAP[item.tradeFrom],
|
|
25171
25182
|
tradeType: JKY_ORDER_TYPE_MAP[item.tradeType],
|
|
25172
25183
|
tradeStatus: JKY_ORDER_STATUS_MAP[item.tradeStatus]
|
|
25173
25184
|
});
|
|
25174
25185
|
});
|
|
25175
25186
|
}
|
|
25176
|
-
resolve(((_res$
|
|
25187
|
+
resolve(((_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.trades) || []);
|
|
25177
25188
|
// 延迟10秒清除,保证订单的时效性
|
|
25178
25189
|
setTimeout(function () {
|
|
25179
25190
|
singletonMap$7.delete(orderNo);
|
|
@@ -27200,7 +27211,6 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
27200
27211
|
orderNo: value === null || value === void 0 ? void 0 : value.orderNo,
|
|
27201
27212
|
type: compType
|
|
27202
27213
|
});
|
|
27203
|
-
console.log('getDataSourceAsync', list);
|
|
27204
27214
|
onChange(_objectSpread2(_objectSpread2({}, valueRef.current), {}, {
|
|
27205
27215
|
allOrders: list || []
|
|
27206
27216
|
}));
|
|
@@ -27906,7 +27916,7 @@ var typeMap$2 = {
|
|
|
27906
27916
|
}
|
|
27907
27917
|
};
|
|
27908
27918
|
var PublicReissue = function PublicReissue(props) {
|
|
27909
|
-
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;
|
|
27910
27920
|
var value = props.value,
|
|
27911
27921
|
onChange = props.onChange,
|
|
27912
27922
|
_props$reasonList = props.reasonList,
|
|
@@ -28107,7 +28117,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28107
28117
|
}
|
|
28108
28118
|
}, [sysItemIdMap]);
|
|
28109
28119
|
var getGoodDetails = function getGoodDetails(_ref5) {
|
|
28110
|
-
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;
|
|
28111
28121
|
var mode = _ref5.mode,
|
|
28112
28122
|
sysOrderNo = _ref5.sysOrderNo,
|
|
28113
28123
|
_ref5$isAllOrders = _ref5.isAllOrders,
|
|
@@ -28139,8 +28149,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28139
28149
|
var _order$typeMap$type$g;
|
|
28140
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;
|
|
28141
28151
|
});
|
|
28142
|
-
|
|
28143
|
-
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) : [];
|
|
28144
28153
|
var orderNo = systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orderNo;
|
|
28145
28154
|
var list = mode && !isAllOrders ? goodDetails.filter(function (goodItem) {
|
|
28146
28155
|
return !orderNo || goodItem[typeMap$2[type].outerOiIdKey] === orderNo;
|
|
@@ -28148,30 +28157,30 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28148
28157
|
return list;
|
|
28149
28158
|
};
|
|
28150
28159
|
var changeGoodHandle = function changeGoodHandle(val) {
|
|
28151
|
-
var _typeMap$
|
|
28160
|
+
var _typeMap$type24;
|
|
28152
28161
|
var newValue = _objectSpread2({}, value);
|
|
28153
|
-
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 || [];
|
|
28154
28163
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
28155
28164
|
};
|
|
28156
28165
|
var changeSystemOrderHandle = function changeSystemOrderHandle(val) {
|
|
28157
|
-
var _typeMap$
|
|
28166
|
+
var _typeMap$type25, _typeMap$type26, _value$typeMap$type$t2, _typeMap$type31, _value$typeMap$type$t3, _typeMap$type33;
|
|
28158
28167
|
var newValue = _objectSpread2({}, value);
|
|
28159
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28160
|
-
if (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28161
|
-
var _value$typeMap$type$s7, _typeMap$
|
|
28162
|
-
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) || [];
|
|
28163
28172
|
var targetOrder = val && orders.find(function (oItem) {
|
|
28164
|
-
var _typeMap$
|
|
28165
|
-
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;
|
|
28166
28175
|
});
|
|
28167
|
-
newValue[(_typeMap$
|
|
28168
|
-
}
|
|
28169
|
-
if (['2'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t2 = value[(_typeMap$
|
|
28170
|
-
var _typeMap$
|
|
28171
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28172
|
-
} else if (['1'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t3 = value[(_typeMap$
|
|
28173
|
-
var _typeMap$
|
|
28174
|
-
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({
|
|
28175
28184
|
mode: isStrict,
|
|
28176
28185
|
sysOrderNo: val
|
|
28177
28186
|
});
|
|
@@ -28179,27 +28188,27 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28179
28188
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue, 'systemOrder');
|
|
28180
28189
|
};
|
|
28181
28190
|
//显示选择商品按钮
|
|
28182
|
-
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]);
|
|
28183
28192
|
var selectedGoodsChange = useCallback(function (skuList) {
|
|
28184
|
-
var _typeMap$
|
|
28193
|
+
var _typeMap$type36, _typeMap$type37, _typeMap$type38, _uniqBy, _typeMap$type39;
|
|
28185
28194
|
var newValue = _objectSpread2({}, value);
|
|
28186
28195
|
// 原订单商品
|
|
28187
28196
|
var originTradeGoodList = getGoodDetails({
|
|
28188
28197
|
mode: isStrict,
|
|
28189
|
-
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
|
|
28190
28199
|
}) || [];
|
|
28191
28200
|
// 当前选中的所有商品【包含了原订单+商品库】
|
|
28192
|
-
var currentSelectGoodList = (value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28193
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28194
|
-
var _typeMap$
|
|
28195
|
-
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']);
|
|
28196
28205
|
});
|
|
28197
28206
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
28198
|
-
}, [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]);
|
|
28199
28208
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Row, {
|
|
28200
28209
|
gutter: 8,
|
|
28201
28210
|
wrap: true,
|
|
28202
|
-
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())
|
|
28203
28212
|
}, /*#__PURE__*/React.createElement(Col, {
|
|
28204
28213
|
className: "gutter-row",
|
|
28205
28214
|
xs: {
|
|
@@ -28215,12 +28224,12 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28215
28224
|
},
|
|
28216
28225
|
disabled: disabled,
|
|
28217
28226
|
allowClear: false,
|
|
28218
|
-
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)],
|
|
28219
28228
|
onChange: function onChange(val) {
|
|
28220
28229
|
return changeSystemOrderHandle(val);
|
|
28221
28230
|
},
|
|
28222
|
-
placeholder: "\u9009\u62E9".concat((typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28223
|
-
}, ((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) {
|
|
28224
28233
|
return /*#__PURE__*/React.createElement(Select.Option, {
|
|
28225
28234
|
key: item[typeMap$2[type].oIdKey],
|
|
28226
28235
|
value: item[typeMap$2[type].oIdKey],
|
|
@@ -28242,11 +28251,11 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28242
28251
|
disabled: isSettingConfig ? !isSettingConfig : disabled,
|
|
28243
28252
|
allowClear: false,
|
|
28244
28253
|
options: reasonList,
|
|
28245
|
-
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)],
|
|
28246
28255
|
onChange: function onChange(val) {
|
|
28247
28256
|
return changeTypeHandle(val);
|
|
28248
28257
|
}
|
|
28249
|
-
})), (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, {
|
|
28250
28259
|
className: "gutter-row",
|
|
28251
28260
|
xs: {
|
|
28252
28261
|
span: 11
|
|
@@ -28255,7 +28264,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28255
28264
|
span: 6
|
|
28256
28265
|
}
|
|
28257
28266
|
}, /*#__PURE__*/React.createElement(Input, {
|
|
28258
|
-
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)],
|
|
28259
28268
|
disabled: disabled,
|
|
28260
28269
|
readOnly: true
|
|
28261
28270
|
}))), /*#__PURE__*/React.createElement(GoodItem$1, _objectSpread2(_objectSpread2({
|
|
@@ -28266,25 +28275,25 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28266
28275
|
canUpdateNumber: showChangeBtn,
|
|
28267
28276
|
hasSelectedSystemOrder: showChangeBtn,
|
|
28268
28277
|
// showChangeBtn={showChangeBtn || typeMap?.[type]?.isShowSelectTradeGoods}
|
|
28269
|
-
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,
|
|
28270
28279
|
// showErpGoodsBtn={typeMap?.[type]?.showErpGoodsBtn}
|
|
28271
28280
|
shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
|
|
28272
|
-
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)],
|
|
28273
28282
|
onChange: function onChange(val) {
|
|
28274
28283
|
return changeGoodHandle(val);
|
|
28275
28284
|
},
|
|
28276
28285
|
onModeChange: handleModeChange,
|
|
28277
|
-
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),
|
|
28278
28287
|
isStrict: isStrict,
|
|
28279
|
-
isShowSelectTradeGoods: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28280
|
-
systemOrders: value === null || value === void 0 ? void 0 : (_value$typeMap$type$s9 = value[(_typeMap$
|
|
28281
|
-
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)]] : [],
|
|
28282
28291
|
tradeGoods: {
|
|
28283
28292
|
originDataSource: getGoodDetails({
|
|
28284
28293
|
mode: isStrict,
|
|
28285
|
-
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
|
|
28286
28295
|
}),
|
|
28287
|
-
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',
|
|
28288
28297
|
selectedGoodsChange: selectedGoodsChange
|
|
28289
28298
|
}
|
|
28290
28299
|
})));
|