@kmkf-fe-packages/basic-components 2.7.6 → 2.7.7-beta.10
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 +1177 -278
- package/dist/src/bs/component/GoodItem/index.d.ts +4 -1
- package/dist/src/bs/component/model/Columns/Erp/wln.d.ts +15 -0
- package/dist/src/bs/component/model/WlnGoodsModal/GoodsList.d.ts +32 -0
- package/dist/src/bs/component/model/WlnGoodsModal/index.d.ts +5 -0
- package/dist/src/business/LogisticsInterception/index.d.ts +2 -0
- package/dist/src/constants/systemOrderColumnsMap.d.ts +22 -2
- package/dist/src/wln/common/index.d.ts +1 -1
- package/package.json +3 -3
package/dist/index.esm.js
CHANGED
|
@@ -8594,6 +8594,10 @@ var processCallBackStatus = function processCallBackStatus(getValue) {
|
|
|
8594
8594
|
status: 'erpAfterSaleStatusValue',
|
|
8595
8595
|
reason: 'erpAfterSaleStatusReason'
|
|
8596
8596
|
},
|
|
8597
|
+
ERP_AFTER_SALES_ORDER_REVIEW_STATUS: {
|
|
8598
|
+
status: 'erpAfterSalesOrderReviewStatusValue',
|
|
8599
|
+
reason: 'erpAfterSalesOrderReviewStatusReason'
|
|
8600
|
+
},
|
|
8597
8601
|
RETURN_EXCHANGE_GOODS_REVIEW_STATUS: {
|
|
8598
8602
|
status: 'returnExchangeGoodsReviewStatusValue',
|
|
8599
8603
|
reason: 'returnExchangeGoodsReviewStatusReason'
|
|
@@ -8622,7 +8626,8 @@ var processSceneStatus = function processSceneStatus(getValue) {
|
|
|
8622
8626
|
BS_E3_WAREHOUSING_STATUS: 'bsE3InStockStatusItemList',
|
|
8623
8627
|
MSG_STATUS: 'msgStatusValues',
|
|
8624
8628
|
WDT_WAREHOUSING_STATUS: 'wdtInStockStatusItemList',
|
|
8625
|
-
JKY_WAREHOUSING_STATUS: 'jkyInStockStatusItemList'
|
|
8629
|
+
JKY_WAREHOUSING_STATUS: 'jkyInStockStatusItemList',
|
|
8630
|
+
WLN_WAREHOUSING_STATUS: 'wlnInStockStatusItemList'
|
|
8626
8631
|
};
|
|
8627
8632
|
return _defineProperty({}, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_").concat(STATUS_LIST_MAP[nex.workOrderComponentType])), []));
|
|
8628
8633
|
};
|
|
@@ -9457,6 +9462,7 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
|
|
|
9457
9462
|
AGREE_REFUND_STATUS: processCallBackStatus,
|
|
9458
9463
|
REJECT_REFUND_STATUS: processCallBackStatus,
|
|
9459
9464
|
ERP_AFTER_SALE_STATUS: processCallBackStatus,
|
|
9465
|
+
ERP_AFTER_SALES_ORDER_REVIEW_STATUS: processCallBackStatus,
|
|
9460
9466
|
AGREE_RETURN_GOODS_STATUS: processCallBackStatus,
|
|
9461
9467
|
REJECT_RETURN_GOODS_STATUS: processCallBackStatus,
|
|
9462
9468
|
RETURN_EXCHANGE_GOODS_REVIEW_STATUS: processCallBackStatus,
|
|
@@ -9467,6 +9473,7 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
|
|
|
9467
9473
|
BS_E3_WAREHOUSING_STATUS: processSceneStatus,
|
|
9468
9474
|
MSG_STATUS: processSceneStatus,
|
|
9469
9475
|
WDT_WAREHOUSING_STATUS: processSceneStatus,
|
|
9476
|
+
WLN_WAREHOUSING_STATUS: processSceneStatus,
|
|
9470
9477
|
JKY_WAREHOUSING_STATUS: processSceneStatus,
|
|
9471
9478
|
BS_LOGISTICS: processErpLogistics,
|
|
9472
9479
|
WLN_LOGISTICS: processErpLogistics,
|
|
@@ -11648,7 +11655,7 @@ var GoodsModal = function GoodsModal(props) {
|
|
|
11648
11655
|
key: item.value
|
|
11649
11656
|
}, item.label);
|
|
11650
11657
|
})), /*#__PURE__*/React.createElement(Search, {
|
|
11651
|
-
placeholder: searchParams.type !== 'orderProduct' ? platform === 'taobao' ? '
|
|
11658
|
+
placeholder: searchParams.type !== 'orderProduct' ? platform === 'taobao' ? '宝贝标题' : '商品ID' : '宝贝标题',
|
|
11652
11659
|
// enterButton="搜索"
|
|
11653
11660
|
className: "search",
|
|
11654
11661
|
value: platform === 'taobao' ? searchParams.title : searchParams.numIids,
|
|
@@ -13163,7 +13170,9 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
13163
13170
|
platform = _props$platform === void 0 ? '' : _props$platform,
|
|
13164
13171
|
onJumpPage = props.onJumpPage,
|
|
13165
13172
|
_props$showReason = props.showReason,
|
|
13166
|
-
showReason = _props$showReason === void 0 ? false : _props$showReason
|
|
13173
|
+
showReason = _props$showReason === void 0 ? false : _props$showReason,
|
|
13174
|
+
_props$preCreateAndNo = props.preCreateAndNotModified,
|
|
13175
|
+
preCreateAndNotModified = _props$preCreateAndNo === void 0 ? false : _props$preCreateAndNo;
|
|
13167
13176
|
var _useState = useState(function () {
|
|
13168
13177
|
return (value === null || value === void 0 ? void 0 : value.interceptCompany) || undefined;
|
|
13169
13178
|
}),
|
|
@@ -13264,6 +13273,8 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
13264
13273
|
});
|
|
13265
13274
|
return isEditing && !!(company === null || company === void 0 ? void 0 : company.isInterface);
|
|
13266
13275
|
}, [isEditing, initCompany]);
|
|
13276
|
+
var canEditPreCreateBaseFields = preCreateAndNotModified;
|
|
13277
|
+
var baseFieldDisabled = disabled || isEdit && !canEditPreCreateBaseFields;
|
|
13267
13278
|
//退回地址列表
|
|
13268
13279
|
var logisticsAddressOptions = useMemo(function () {
|
|
13269
13280
|
return LogisticsAddressOptions === null || LogisticsAddressOptions === void 0 ? void 0 : LogisticsAddressOptions.filter(function (item) {
|
|
@@ -13298,13 +13309,26 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
13298
13309
|
var changeHandle = function changeHandle(val, type) {
|
|
13299
13310
|
var newValue = _objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, type, val));
|
|
13300
13311
|
if (type === 'interceptCompany') {
|
|
13312
|
+
var _props$interceptTypeD, _defaultInterceptType;
|
|
13301
13313
|
var interceptCompany = expressInterceptData.find(function (item) {
|
|
13302
13314
|
return item.value === val;
|
|
13303
13315
|
});
|
|
13304
|
-
|
|
13305
|
-
|
|
13306
|
-
|
|
13307
|
-
|
|
13316
|
+
// 优先使用配置的默认值
|
|
13317
|
+
var defaultInterceptType;
|
|
13318
|
+
var configuredDefault = (_props$interceptTypeD = props.interceptTypeDefaults) === null || _props$interceptTypeD === void 0 ? void 0 : _props$interceptTypeD[val];
|
|
13319
|
+
if (configuredDefault) {
|
|
13320
|
+
// 使用配置的默认值
|
|
13321
|
+
defaultInterceptType = ((interceptCompany === null || interceptCompany === void 0 ? void 0 : interceptCompany.interceptionTypeList) || []).find(function (item) {
|
|
13322
|
+
return item.value === configuredDefault;
|
|
13323
|
+
});
|
|
13324
|
+
}
|
|
13325
|
+
// 如果没有配置默认值,使用原有的 isDefault 逻辑
|
|
13326
|
+
if (!defaultInterceptType) {
|
|
13327
|
+
defaultInterceptType = ((interceptCompany === null || interceptCompany === void 0 ? void 0 : interceptCompany.interceptionTypeList) || []).find(function (item) {
|
|
13328
|
+
var _item$config4;
|
|
13329
|
+
return item === null || item === void 0 ? void 0 : (_item$config4 = item.config) === null || _item$config4 === void 0 ? void 0 : _item$config4.isDefault;
|
|
13330
|
+
});
|
|
13331
|
+
}
|
|
13308
13332
|
// const demoList = [
|
|
13309
13333
|
// {
|
|
13310
13334
|
// city: 330100,
|
|
@@ -13328,7 +13352,7 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
13328
13352
|
});
|
|
13329
13353
|
newValue = _objectSpread2(_objectSpread2({}, newValue), {}, {
|
|
13330
13354
|
interceptCompany: val,
|
|
13331
|
-
interceptType:
|
|
13355
|
+
interceptType: (_defaultInterceptType = defaultInterceptType) === null || _defaultInterceptType === void 0 ? void 0 : _defaultInterceptType.value,
|
|
13332
13356
|
interceptSenderMobile: undefined,
|
|
13333
13357
|
interceptAddress: [],
|
|
13334
13358
|
interceptDetail: undefined,
|
|
@@ -13400,7 +13424,7 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
13400
13424
|
required: required,
|
|
13401
13425
|
key: 'logistics'
|
|
13402
13426
|
}, /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(ApaasLogistics, {
|
|
13403
|
-
disabled:
|
|
13427
|
+
disabled: baseFieldDisabled,
|
|
13404
13428
|
placeholder: "\u7269\u6D41\u516C\u53F8",
|
|
13405
13429
|
style: {
|
|
13406
13430
|
width: '150px'
|
|
@@ -13414,7 +13438,7 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
13414
13438
|
return option.label.includes(input);
|
|
13415
13439
|
}
|
|
13416
13440
|
}), /*#__PURE__*/React.createElement(Input, {
|
|
13417
|
-
disabled:
|
|
13441
|
+
disabled: baseFieldDisabled,
|
|
13418
13442
|
placeholder: "\u7269\u6D41\u5355\u53F7",
|
|
13419
13443
|
onChange: function onChange(e) {
|
|
13420
13444
|
var _e$target$value;
|
|
@@ -13439,7 +13463,7 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
13439
13463
|
key: 'interceptLogisticsUserKCode',
|
|
13440
13464
|
hidden: !showKcode
|
|
13441
13465
|
}, /*#__PURE__*/React.createElement(Select, {
|
|
13442
|
-
disabled:
|
|
13466
|
+
disabled: baseFieldDisabled,
|
|
13443
13467
|
placeholder: "\u9009\u62E9K\u7801",
|
|
13444
13468
|
showSearch: true,
|
|
13445
13469
|
style: {
|
|
@@ -13473,7 +13497,7 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
13473
13497
|
required: required,
|
|
13474
13498
|
key: 'interceptType'
|
|
13475
13499
|
}, /*#__PURE__*/React.createElement(Select, {
|
|
13476
|
-
disabled:
|
|
13500
|
+
disabled: baseFieldDisabled,
|
|
13477
13501
|
style: {
|
|
13478
13502
|
width: '200px'
|
|
13479
13503
|
},
|
|
@@ -13626,7 +13650,8 @@ var LogisticsMoreInterception = function LogisticsMoreInterception(props) {
|
|
|
13626
13650
|
disabled = props.disabled,
|
|
13627
13651
|
onChange = props.onChange,
|
|
13628
13652
|
isEditing = props.isEditing,
|
|
13629
|
-
effects = props.effects
|
|
13653
|
+
effects = props.effects,
|
|
13654
|
+
interceptTypeDefaults = props.interceptTypeDefaults;
|
|
13630
13655
|
var _useState = useState(0),
|
|
13631
13656
|
_useState2 = _slicedToArray(_useState, 2),
|
|
13632
13657
|
changeIndex = _useState2[0],
|
|
@@ -13672,7 +13697,8 @@ var LogisticsMoreInterception = function LogisticsMoreInterception(props) {
|
|
|
13672
13697
|
onJumpPage: effects === null || effects === void 0 ? void 0 : effects.onJumpPage,
|
|
13673
13698
|
onChange: function onChange(val) {
|
|
13674
13699
|
return handleChange(val, index);
|
|
13675
|
-
}
|
|
13700
|
+
},
|
|
13701
|
+
interceptTypeDefaults: interceptTypeDefaults
|
|
13676
13702
|
}) : null;
|
|
13677
13703
|
}) : null);
|
|
13678
13704
|
};
|
|
@@ -14115,9 +14141,9 @@ var jstGoods = function jstGoods(props) {
|
|
|
14115
14141
|
changeIndex = _useState2[0],
|
|
14116
14142
|
setChangeIndex = _useState2[1]; //选中的包裹
|
|
14117
14143
|
var sendOptions = SendDataCenter.getInstance(platformType).getSendData();
|
|
14118
|
-
var isSelectName = ['wdt', 'bsE3', 'km', 'gy', 'jst', 'jy', 'jky'].includes(platformType);
|
|
14144
|
+
var isSelectName = ['wdt', 'bsE3', 'km', 'gy', 'jst', 'jy', 'jky', 'wln'].includes(platformType);
|
|
14119
14145
|
var expressDateInstance = ExpressData.getInstance(platformType);
|
|
14120
|
-
var isSendGoodSavedId = isSelectName && !['jst'].includes(platformType);
|
|
14146
|
+
var isSendGoodSavedId = isSelectName && !['jst', 'wln'].includes(platformType);
|
|
14121
14147
|
useEffect(function () {
|
|
14122
14148
|
//没有值塞个默认值
|
|
14123
14149
|
if (!(value === null || value === void 0 ? void 0 : value.length) && type !== 1) {
|
|
@@ -14235,8 +14261,7 @@ var jstGoods = function jstGoods(props) {
|
|
|
14235
14261
|
return option.label.includes(input);
|
|
14236
14262
|
},
|
|
14237
14263
|
style: {
|
|
14238
|
-
|
|
14239
|
-
maxWidth: '180px'
|
|
14264
|
+
width: '180px'
|
|
14240
14265
|
},
|
|
14241
14266
|
platformType: platformType
|
|
14242
14267
|
})) : null, !showField || showField === 'logisticsCode' ? /*#__PURE__*/React.createElement(Input, {
|
|
@@ -15718,6 +15743,122 @@ var jkyColumns = [{
|
|
|
15718
15743
|
}
|
|
15719
15744
|
}];
|
|
15720
15745
|
|
|
15746
|
+
var getYesOrNo$3 = function getYesOrNo(val) {
|
|
15747
|
+
if (!isBoolean(val)) return null;
|
|
15748
|
+
return val ? '是' : '否';
|
|
15749
|
+
};
|
|
15750
|
+
var wlnColumns = [{
|
|
15751
|
+
dataIndex: 'goodName',
|
|
15752
|
+
title: '商品名称',
|
|
15753
|
+
width: 250,
|
|
15754
|
+
ellipsis: true,
|
|
15755
|
+
render: renderTextEllipsis
|
|
15756
|
+
}, {
|
|
15757
|
+
dataIndex: 'goodShortName',
|
|
15758
|
+
title: "\u5546\u54C1\u7B80\u79F0",
|
|
15759
|
+
ellipsis: true,
|
|
15760
|
+
width: 150,
|
|
15761
|
+
render: renderTextEllipsis
|
|
15762
|
+
}, {
|
|
15763
|
+
dataIndex: 'goodNo',
|
|
15764
|
+
title: '商品编码',
|
|
15765
|
+
width: 150,
|
|
15766
|
+
ellipsis: true,
|
|
15767
|
+
render: renderTextEllipsis
|
|
15768
|
+
}, {
|
|
15769
|
+
dataIndex: 'goodId',
|
|
15770
|
+
title: '商品ID',
|
|
15771
|
+
width: 200,
|
|
15772
|
+
ellipsis: true,
|
|
15773
|
+
render: renderTextEllipsis
|
|
15774
|
+
}, {
|
|
15775
|
+
dataIndex: 'goodPicUrl',
|
|
15776
|
+
title: '商品图片',
|
|
15777
|
+
width: 100,
|
|
15778
|
+
render: function render(picUrl) {
|
|
15779
|
+
return /*#__PURE__*/React.createElement("img", {
|
|
15780
|
+
style: {
|
|
15781
|
+
width: '30px',
|
|
15782
|
+
height: '30px',
|
|
15783
|
+
objectFit: 'contain'
|
|
15784
|
+
},
|
|
15785
|
+
src: picUrl
|
|
15786
|
+
});
|
|
15787
|
+
}
|
|
15788
|
+
}, {
|
|
15789
|
+
dataIndex: 'goodBarcode',
|
|
15790
|
+
title: '商品条码',
|
|
15791
|
+
width: 200,
|
|
15792
|
+
ellipsis: true,
|
|
15793
|
+
render: renderTextEllipsis
|
|
15794
|
+
}, {
|
|
15795
|
+
dataIndex: 'propertiesValue',
|
|
15796
|
+
title: '规格值',
|
|
15797
|
+
width: 200,
|
|
15798
|
+
ellipsis: true,
|
|
15799
|
+
render: renderTextEllipsis
|
|
15800
|
+
}, {
|
|
15801
|
+
dataIndex: 'specNo',
|
|
15802
|
+
title: "SKU\u7F16\u7801",
|
|
15803
|
+
ellipsis: true,
|
|
15804
|
+
width: 150,
|
|
15805
|
+
render: renderTextEllipsis
|
|
15806
|
+
}, {
|
|
15807
|
+
dataIndex: 'specId',
|
|
15808
|
+
title: "SKU ID",
|
|
15809
|
+
ellipsis: true,
|
|
15810
|
+
width: 150,
|
|
15811
|
+
render: renderTextEllipsis
|
|
15812
|
+
}, {
|
|
15813
|
+
dataIndex: 'specImgUrl',
|
|
15814
|
+
title: "SKU \u56FE\u7247",
|
|
15815
|
+
ellipsis: true,
|
|
15816
|
+
width: 150,
|
|
15817
|
+
render: function render(val) {
|
|
15818
|
+
return /*#__PURE__*/React.createElement(Image, {
|
|
15819
|
+
width: 30,
|
|
15820
|
+
src: val
|
|
15821
|
+
});
|
|
15822
|
+
}
|
|
15823
|
+
}, {
|
|
15824
|
+
dataIndex: 'specBarcode',
|
|
15825
|
+
title: '规格条码',
|
|
15826
|
+
width: 150,
|
|
15827
|
+
ellipsis: true,
|
|
15828
|
+
render: renderTextEllipsis
|
|
15829
|
+
}, {
|
|
15830
|
+
dataIndex: 'brandName',
|
|
15831
|
+
title: '品牌名称',
|
|
15832
|
+
width: 200,
|
|
15833
|
+
ellipsis: true,
|
|
15834
|
+
render: renderTextEllipsis
|
|
15835
|
+
}, {
|
|
15836
|
+
dataIndex: 'retailPrice',
|
|
15837
|
+
title: "\u96F6\u552E\u4EF7",
|
|
15838
|
+
ellipsis: true,
|
|
15839
|
+
width: 100,
|
|
15840
|
+
render: renderTextEllipsis
|
|
15841
|
+
}, {
|
|
15842
|
+
dataIndex: 'marketPrice',
|
|
15843
|
+
title: "\u5E02\u573A\u4EF7",
|
|
15844
|
+
ellipsis: true,
|
|
15845
|
+
width: 150,
|
|
15846
|
+
render: renderTextEllipsis
|
|
15847
|
+
}, {
|
|
15848
|
+
dataIndex: 'unitName',
|
|
15849
|
+
title: '基本单位',
|
|
15850
|
+
width: 150,
|
|
15851
|
+
render: renderTextEllipsis
|
|
15852
|
+
}, {
|
|
15853
|
+
dataIndex: 'skuType',
|
|
15854
|
+
title: "\u662F\u5426\u7EC4\u5408\u88C5",
|
|
15855
|
+
ellipsis: true,
|
|
15856
|
+
width: 150,
|
|
15857
|
+
render: function render(val) {
|
|
15858
|
+
return renderTextEllipsis(getYesOrNo$3(val === 'combine'));
|
|
15859
|
+
}
|
|
15860
|
+
}];
|
|
15861
|
+
|
|
15721
15862
|
var getColumnsMap = function getColumnsMap() {
|
|
15722
15863
|
return cloneDeep({
|
|
15723
15864
|
gy: gyColumns,
|
|
@@ -15726,7 +15867,8 @@ var getColumnsMap = function getColumnsMap() {
|
|
|
15726
15867
|
bse3: bse3Columns,
|
|
15727
15868
|
km: kmColumns,
|
|
15728
15869
|
jy: jyColumns,
|
|
15729
|
-
jky: jkyColumns
|
|
15870
|
+
jky: jkyColumns,
|
|
15871
|
+
wln: wlnColumns
|
|
15730
15872
|
});
|
|
15731
15873
|
};
|
|
15732
15874
|
var getColumnsBaseInfo = function getColumnsBaseInfo() {
|
|
@@ -16158,30 +16300,33 @@ var GoodList = function GoodList(props, ref) {
|
|
|
16158
16300
|
selectedRowKeys: selectIds,
|
|
16159
16301
|
fixed: true,
|
|
16160
16302
|
onSelect: function onSelect(record, selected) {
|
|
16303
|
+
var uniqueKey = "".concat(record.goodNo, "-").concat(record.specNo);
|
|
16161
16304
|
if (selected) {
|
|
16162
|
-
setSelectIds([].concat(_toConsumableArray(selectIds), [
|
|
16305
|
+
setSelectIds([].concat(_toConsumableArray(selectIds), [uniqueKey]));
|
|
16163
16306
|
setSelect([].concat(_toConsumableArray(selectList), [record]));
|
|
16164
16307
|
} else {
|
|
16165
16308
|
setSelectIds(selectIds.filter(function (t) {
|
|
16166
|
-
return t !==
|
|
16309
|
+
return t !== uniqueKey;
|
|
16167
16310
|
}));
|
|
16168
16311
|
setSelect(selectList.filter(function (t) {
|
|
16169
|
-
return t.specNo !==
|
|
16312
|
+
return "".concat(t.goodNo, "-").concat(t.specNo) !== uniqueKey;
|
|
16170
16313
|
}));
|
|
16171
16314
|
}
|
|
16172
16315
|
},
|
|
16173
16316
|
onSelectAll: function onSelectAll(selected, selectedRows, changeRows) {
|
|
16174
16317
|
if (selected) {
|
|
16175
|
-
|
|
16176
|
-
return t.specNo;
|
|
16177
|
-
})
|
|
16318
|
+
var changeKeys = changeRows.map(function (t) {
|
|
16319
|
+
return "".concat(t.goodNo, "-").concat(t.specNo);
|
|
16320
|
+
});
|
|
16321
|
+
setSelectIds([].concat(_toConsumableArray(selectIds), _toConsumableArray(changeKeys)));
|
|
16178
16322
|
setSelect([].concat(_toConsumableArray(selectList), _toConsumableArray(changeRows)));
|
|
16179
16323
|
} else {
|
|
16180
|
-
|
|
16181
|
-
return t.specNo;
|
|
16182
|
-
})
|
|
16324
|
+
var _changeKeys = changeRows.map(function (t) {
|
|
16325
|
+
return "".concat(t.goodNo, "-").concat(t.specNo);
|
|
16326
|
+
});
|
|
16327
|
+
setSelectIds(difference(selectIds, _changeKeys));
|
|
16183
16328
|
var list = differenceWith(selectList, changeRows, function (arrVal, othVal) {
|
|
16184
|
-
return arrVal.specNo !== othVal.specNo;
|
|
16329
|
+
return "".concat(arrVal.goodNo, "-").concat(arrVal.specNo) !== "".concat(othVal.goodNo, "-").concat(othVal.specNo);
|
|
16185
16330
|
});
|
|
16186
16331
|
setSelect(list);
|
|
16187
16332
|
}
|
|
@@ -16189,11 +16334,12 @@ var GoodList = function GoodList(props, ref) {
|
|
|
16189
16334
|
};
|
|
16190
16335
|
var showTable = function showTable() {
|
|
16191
16336
|
var handleDelete = function handleDelete(record) {
|
|
16337
|
+
var uniqueKey = "".concat(record.goodNo, "-").concat(record.specNo);
|
|
16192
16338
|
setSelectIds(selectIds.filter(function (t) {
|
|
16193
|
-
return t !==
|
|
16339
|
+
return t !== uniqueKey;
|
|
16194
16340
|
}));
|
|
16195
16341
|
setSelect(selectList.filter(function (t) {
|
|
16196
|
-
return t.specNo !==
|
|
16342
|
+
return "".concat(t.goodNo, "-").concat(t.specNo) !== uniqueKey;
|
|
16197
16343
|
}));
|
|
16198
16344
|
};
|
|
16199
16345
|
var showColumns = [{
|
|
@@ -16217,7 +16363,9 @@ var GoodList = function GoodList(props, ref) {
|
|
|
16217
16363
|
}
|
|
16218
16364
|
}, /*#__PURE__*/React.createElement(Table, {
|
|
16219
16365
|
columns: showColumns,
|
|
16220
|
-
rowKey:
|
|
16366
|
+
rowKey: function rowKey(record) {
|
|
16367
|
+
return "".concat(record.goodNo, "-").concat(record.specNo);
|
|
16368
|
+
},
|
|
16221
16369
|
dataSource: selectList,
|
|
16222
16370
|
scroll: {
|
|
16223
16371
|
x: '100%',
|
|
@@ -16247,7 +16395,9 @@ var GoodList = function GoodList(props, ref) {
|
|
|
16247
16395
|
}, /*#__PURE__*/React.createElement(Table, _objectSpread2(_objectSpread2({
|
|
16248
16396
|
className: "GoodModalColumns",
|
|
16249
16397
|
rowSelection: rowSelection,
|
|
16250
|
-
rowKey:
|
|
16398
|
+
rowKey: function rowKey(record) {
|
|
16399
|
+
return "".concat(record.goodNo, "-").concat(record.specNo);
|
|
16400
|
+
},
|
|
16251
16401
|
columns: columns,
|
|
16252
16402
|
scroll: {
|
|
16253
16403
|
x: '100%',
|
|
@@ -17797,6 +17947,27 @@ var componentMap$1 = {
|
|
|
17797
17947
|
onChange: props.handleChange
|
|
17798
17948
|
}));
|
|
17799
17949
|
},
|
|
17950
|
+
TagsSelect: function TagsSelect(props) {
|
|
17951
|
+
return "\u8BF7\u9009\u62E9".concat(props === null || props === void 0 ? void 0 : props.name).length > 10 ? /*#__PURE__*/React.createElement(Tooltip, {
|
|
17952
|
+
title: "\u8BF7\u9009\u62E9".concat(props === null || props === void 0 ? void 0 : props.name)
|
|
17953
|
+
}, /*#__PURE__*/React.createElement(Select, _objectSpread2(_objectSpread2({
|
|
17954
|
+
mode: "tags",
|
|
17955
|
+
placeholder: "\u8BF7\u9009\u62E9".concat(props === null || props === void 0 ? void 0 : props.name),
|
|
17956
|
+
optionFilterProp: "label",
|
|
17957
|
+
allowClear: true,
|
|
17958
|
+
maxTagCount: "responsive"
|
|
17959
|
+
}, props), {}, {
|
|
17960
|
+
onChange: props.handleChange
|
|
17961
|
+
}))) : /*#__PURE__*/React.createElement(Select, _objectSpread2(_objectSpread2({
|
|
17962
|
+
mode: "tags",
|
|
17963
|
+
placeholder: "\u8BF7\u9009\u62E9".concat(props === null || props === void 0 ? void 0 : props.name),
|
|
17964
|
+
optionFilterProp: "label",
|
|
17965
|
+
allowClear: true,
|
|
17966
|
+
maxTagCount: "responsive"
|
|
17967
|
+
}, props), {}, {
|
|
17968
|
+
onChange: props.handleChange
|
|
17969
|
+
}));
|
|
17970
|
+
},
|
|
17800
17971
|
Date: function Date(props) {
|
|
17801
17972
|
return /*#__PURE__*/React.createElement(RangePicker, _objectSpread2(_objectSpread2({
|
|
17802
17973
|
placeholder: ["".concat(props.name, "\u5F00\u59CB\u65F6\u95F4"), "".concat(props.name, "\u7ED3\u675F\u65F6\u95F4")],
|
|
@@ -18739,7 +18910,7 @@ var getTableData$5 = function getTableData(_ref, formData) {
|
|
|
18739
18910
|
data: {
|
|
18740
18911
|
pageSize: pageSize,
|
|
18741
18912
|
pageNo: current,
|
|
18742
|
-
platform: '
|
|
18913
|
+
platform: 'WLN_ERP',
|
|
18743
18914
|
conditionList: conditionList
|
|
18744
18915
|
}
|
|
18745
18916
|
}).then(function (res) {
|
|
@@ -18758,13 +18929,11 @@ var getTableData$5 = function getTableData(_ref, formData) {
|
|
|
18758
18929
|
});
|
|
18759
18930
|
};
|
|
18760
18931
|
var searchFormData$4 = [{
|
|
18761
|
-
label: '
|
|
18762
|
-
name: '
|
|
18763
|
-
dataIndex: 'specName'
|
|
18932
|
+
label: '规格值',
|
|
18933
|
+
name: 'propertiesValue'
|
|
18764
18934
|
}, {
|
|
18765
|
-
label: '
|
|
18766
|
-
name: '
|
|
18767
|
-
dataIndex: 'specNo',
|
|
18935
|
+
label: 'SKU编码',
|
|
18936
|
+
name: 'specNo',
|
|
18768
18937
|
type: 'optionalInput'
|
|
18769
18938
|
}, {
|
|
18770
18939
|
label: '商品名称',
|
|
@@ -18773,6 +18942,23 @@ var searchFormData$4 = [{
|
|
|
18773
18942
|
label: '商品编码',
|
|
18774
18943
|
name: 'goodNo',
|
|
18775
18944
|
type: 'optionalInput'
|
|
18945
|
+
}, {
|
|
18946
|
+
label: '是否组合装',
|
|
18947
|
+
name: 'skuType',
|
|
18948
|
+
type: 'select',
|
|
18949
|
+
formItemProps: {
|
|
18950
|
+
mode: 'multiple',
|
|
18951
|
+
filterOption: function filterOption(input, option) {
|
|
18952
|
+
return option.label.includes(input);
|
|
18953
|
+
},
|
|
18954
|
+
options: [{
|
|
18955
|
+
label: '普通商品',
|
|
18956
|
+
value: 'normal'
|
|
18957
|
+
}, {
|
|
18958
|
+
label: '组合装商品',
|
|
18959
|
+
value: 'combine'
|
|
18960
|
+
}]
|
|
18961
|
+
}
|
|
18776
18962
|
}];
|
|
18777
18963
|
var GoodList$5 = function GoodList(props, ref) {
|
|
18778
18964
|
var _useState = useState([]),
|
|
@@ -18783,7 +18969,7 @@ var GoodList$5 = function GoodList(props, ref) {
|
|
|
18783
18969
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
18784
18970
|
selectIds = _useState4[0],
|
|
18785
18971
|
setSelectIds = _useState4[1];
|
|
18786
|
-
var _useGetColumns = useGetColumns('
|
|
18972
|
+
var _useGetColumns = useGetColumns('wln'),
|
|
18787
18973
|
_useGetColumns2 = _slicedToArray(_useGetColumns, 3),
|
|
18788
18974
|
columns = _useGetColumns2[0],
|
|
18789
18975
|
showColumnsDataIndexList = _useGetColumns2[1],
|
|
@@ -18842,8 +19028,8 @@ var GoodList$5 = function GoodList(props, ref) {
|
|
|
18842
19028
|
getCheckboxProps: function getCheckboxProps(record) {
|
|
18843
19029
|
var options = {
|
|
18844
19030
|
disabled: (props.selectedRows || []).map(function (row) {
|
|
18845
|
-
return row.
|
|
18846
|
-
}).includes(record.
|
|
19031
|
+
return row.specId || record.id;
|
|
19032
|
+
}).includes(record.specId || record.id),
|
|
18847
19033
|
name: record.id
|
|
18848
19034
|
};
|
|
18849
19035
|
return options;
|
|
@@ -18927,9 +19113,9 @@ var GoodList$5 = function GoodList(props, ref) {
|
|
|
18927
19113
|
type: "text"
|
|
18928
19114
|
}, "\u5DF2\u9009".concat(selectList.length > 99 ? '99+' : selectList.length, "\u4E2A\u5546\u54C1"), /*#__PURE__*/React.createElement(CaretUpOutlined, null))));
|
|
18929
19115
|
};
|
|
18930
|
-
var
|
|
19116
|
+
var WlnGoodsList = /*#__PURE__*/forwardRef(GoodList$5);
|
|
18931
19117
|
|
|
18932
|
-
var
|
|
19118
|
+
var WlnGoodsModal = function WlnGoodsModal(props, ref) {
|
|
18933
19119
|
useImperativeHandle(ref, function () {
|
|
18934
19120
|
return {
|
|
18935
19121
|
open: function open(shopCode) {
|
|
@@ -18949,13 +19135,13 @@ var JyGoodsModal = function JyGoodsModal(props, ref) {
|
|
|
18949
19135
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
18950
19136
|
selectedRows = _useState4[0],
|
|
18951
19137
|
setSelectedRows = _useState4[1];
|
|
18952
|
-
var
|
|
19138
|
+
var jkyGoodsListRef = useRef(null);
|
|
18953
19139
|
var _onCancel = function onCancel() {
|
|
18954
19140
|
setVisible(false);
|
|
18955
19141
|
};
|
|
18956
19142
|
var onOk = function onOk() {
|
|
18957
|
-
var
|
|
18958
|
-
var selectedList = ((
|
|
19143
|
+
var _jkyGoodsListRef$curr;
|
|
19144
|
+
var selectedList = ((_jkyGoodsListRef$curr = jkyGoodsListRef.current) === null || _jkyGoodsListRef$curr === void 0 ? void 0 : _jkyGoodsListRef$curr.getSelectGoodList()) || [];
|
|
18959
19145
|
onSubmit(selectedList);
|
|
18960
19146
|
_onCancel();
|
|
18961
19147
|
};
|
|
@@ -18970,12 +19156,12 @@ var JyGoodsModal = function JyGoodsModal(props, ref) {
|
|
|
18970
19156
|
},
|
|
18971
19157
|
onOk: onOk,
|
|
18972
19158
|
wrapClassName: "goodModal"
|
|
18973
|
-
}, /*#__PURE__*/React.createElement(
|
|
18974
|
-
ref:
|
|
19159
|
+
}, /*#__PURE__*/React.createElement(WlnGoodsList, {
|
|
19160
|
+
ref: jkyGoodsListRef,
|
|
18975
19161
|
selectedRows: selectedRows
|
|
18976
19162
|
})));
|
|
18977
19163
|
};
|
|
18978
|
-
var
|
|
19164
|
+
var WlnGoodsModal$1 = /*#__PURE__*/forwardRef(WlnGoodsModal);
|
|
18979
19165
|
|
|
18980
19166
|
var getTableData$6 = function getTableData(_ref, formData) {
|
|
18981
19167
|
var current = _ref.current,
|
|
@@ -18986,7 +19172,7 @@ var getTableData$6 = function getTableData(_ref, formData) {
|
|
|
18986
19172
|
data: {
|
|
18987
19173
|
pageSize: pageSize,
|
|
18988
19174
|
pageNo: current,
|
|
18989
|
-
platform: '
|
|
19175
|
+
platform: 'JY_ERP',
|
|
18990
19176
|
conditionList: conditionList
|
|
18991
19177
|
}
|
|
18992
19178
|
}).then(function (res) {
|
|
@@ -19014,10 +19200,10 @@ var searchFormData$5 = [{
|
|
|
19014
19200
|
dataIndex: 'specNo',
|
|
19015
19201
|
type: 'optionalInput'
|
|
19016
19202
|
}, {
|
|
19017
|
-
label: '
|
|
19203
|
+
label: '商品名称',
|
|
19018
19204
|
name: 'goodName'
|
|
19019
19205
|
}, {
|
|
19020
|
-
label: '
|
|
19206
|
+
label: '商品编码',
|
|
19021
19207
|
name: 'goodNo',
|
|
19022
19208
|
type: 'optionalInput'
|
|
19023
19209
|
}];
|
|
@@ -19030,7 +19216,7 @@ var GoodList$6 = function GoodList(props, ref) {
|
|
|
19030
19216
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
19031
19217
|
selectIds = _useState4[0],
|
|
19032
19218
|
setSelectIds = _useState4[1];
|
|
19033
|
-
var _useGetColumns = useGetColumns('
|
|
19219
|
+
var _useGetColumns = useGetColumns('jy'),
|
|
19034
19220
|
_useGetColumns2 = _slicedToArray(_useGetColumns, 3),
|
|
19035
19221
|
columns = _useGetColumns2[0],
|
|
19036
19222
|
showColumnsDataIndexList = _useGetColumns2[1],
|
|
@@ -19089,8 +19275,8 @@ var GoodList$6 = function GoodList(props, ref) {
|
|
|
19089
19275
|
getCheckboxProps: function getCheckboxProps(record) {
|
|
19090
19276
|
var options = {
|
|
19091
19277
|
disabled: (props.selectedRows || []).map(function (row) {
|
|
19092
|
-
return row.
|
|
19093
|
-
}).includes(record.
|
|
19278
|
+
return row.id || row.specId;
|
|
19279
|
+
}).includes(record.id || record.specId),
|
|
19094
19280
|
name: record.id
|
|
19095
19281
|
};
|
|
19096
19282
|
return options;
|
|
@@ -19174,9 +19360,9 @@ var GoodList$6 = function GoodList(props, ref) {
|
|
|
19174
19360
|
type: "text"
|
|
19175
19361
|
}, "\u5DF2\u9009".concat(selectList.length > 99 ? '99+' : selectList.length, "\u4E2A\u5546\u54C1"), /*#__PURE__*/React.createElement(CaretUpOutlined, null))));
|
|
19176
19362
|
};
|
|
19177
|
-
var
|
|
19363
|
+
var JyGoodsList = /*#__PURE__*/forwardRef(GoodList$6);
|
|
19178
19364
|
|
|
19179
|
-
var
|
|
19365
|
+
var JyGoodsModal = function JyGoodsModal(props, ref) {
|
|
19180
19366
|
useImperativeHandle(ref, function () {
|
|
19181
19367
|
return {
|
|
19182
19368
|
open: function open(shopCode) {
|
|
@@ -19196,13 +19382,13 @@ var JkyGoodsModal = function JkyGoodsModal(props, ref) {
|
|
|
19196
19382
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
19197
19383
|
selectedRows = _useState4[0],
|
|
19198
19384
|
setSelectedRows = _useState4[1];
|
|
19199
|
-
var
|
|
19385
|
+
var jyGoodsListRef = useRef(null);
|
|
19200
19386
|
var _onCancel = function onCancel() {
|
|
19201
19387
|
setVisible(false);
|
|
19202
19388
|
};
|
|
19203
19389
|
var onOk = function onOk() {
|
|
19204
|
-
var
|
|
19205
|
-
var selectedList = ((
|
|
19390
|
+
var _jyGoodsListRef$curre;
|
|
19391
|
+
var selectedList = ((_jyGoodsListRef$curre = jyGoodsListRef.current) === null || _jyGoodsListRef$curre === void 0 ? void 0 : _jyGoodsListRef$curre.getSelectGoodList()) || [];
|
|
19206
19392
|
onSubmit(selectedList);
|
|
19207
19393
|
_onCancel();
|
|
19208
19394
|
};
|
|
@@ -19217,37 +19403,284 @@ var JkyGoodsModal = function JkyGoodsModal(props, ref) {
|
|
|
19217
19403
|
},
|
|
19218
19404
|
onOk: onOk,
|
|
19219
19405
|
wrapClassName: "goodModal"
|
|
19220
|
-
}, /*#__PURE__*/React.createElement(
|
|
19221
|
-
ref:
|
|
19406
|
+
}, /*#__PURE__*/React.createElement(JyGoodsList, {
|
|
19407
|
+
ref: jyGoodsListRef,
|
|
19222
19408
|
selectedRows: selectedRows
|
|
19223
19409
|
})));
|
|
19224
19410
|
};
|
|
19225
|
-
var
|
|
19411
|
+
var JyGoodsModal$1 = /*#__PURE__*/forwardRef(JyGoodsModal);
|
|
19226
19412
|
|
|
19227
|
-
var
|
|
19228
|
-
var
|
|
19229
|
-
|
|
19230
|
-
|
|
19231
|
-
return {
|
|
19232
|
-
|
|
19233
|
-
|
|
19234
|
-
|
|
19235
|
-
|
|
19236
|
-
|
|
19237
|
-
|
|
19238
|
-
}
|
|
19239
|
-
|
|
19240
|
-
|
|
19241
|
-
|
|
19242
|
-
|
|
19243
|
-
|
|
19244
|
-
|
|
19245
|
-
|
|
19246
|
-
|
|
19247
|
-
|
|
19248
|
-
|
|
19249
|
-
|
|
19250
|
-
|
|
19413
|
+
var getTableData$7 = function getTableData(_ref, formData) {
|
|
19414
|
+
var current = _ref.current,
|
|
19415
|
+
pageSize = _ref.pageSize;
|
|
19416
|
+
var conditionList = transformFormData(formData);
|
|
19417
|
+
return extendRequest('/qy/gdfw/product/product/page', {
|
|
19418
|
+
method: 'post',
|
|
19419
|
+
data: {
|
|
19420
|
+
pageSize: pageSize,
|
|
19421
|
+
pageNo: current,
|
|
19422
|
+
platform: 'JKY_ERP',
|
|
19423
|
+
conditionList: conditionList
|
|
19424
|
+
}
|
|
19425
|
+
}).then(function (res) {
|
|
19426
|
+
var _res$data = res.data,
|
|
19427
|
+
_res$data$productSkuL = _res$data.productSkuList,
|
|
19428
|
+
productSkuList = _res$data$productSkuL === void 0 ? [] : _res$data$productSkuL,
|
|
19429
|
+
_res$data$total = _res$data.total,
|
|
19430
|
+
total = _res$data$total === void 0 ? 0 : _res$data$total;
|
|
19431
|
+
var newProducts = productSkuList.map(function (item, index) {
|
|
19432
|
+
return _objectSpread2({}, item);
|
|
19433
|
+
});
|
|
19434
|
+
return {
|
|
19435
|
+
total: total,
|
|
19436
|
+
list: newProducts
|
|
19437
|
+
};
|
|
19438
|
+
});
|
|
19439
|
+
};
|
|
19440
|
+
var searchFormData$6 = [{
|
|
19441
|
+
label: '规格名称',
|
|
19442
|
+
name: 'skuName',
|
|
19443
|
+
dataIndex: 'specName'
|
|
19444
|
+
}, {
|
|
19445
|
+
label: '规格编码',
|
|
19446
|
+
name: 'skuCode',
|
|
19447
|
+
dataIndex: 'specNo',
|
|
19448
|
+
type: 'optionalInput'
|
|
19449
|
+
}, {
|
|
19450
|
+
label: '货品名称',
|
|
19451
|
+
name: 'goodName'
|
|
19452
|
+
}, {
|
|
19453
|
+
label: '货品编码',
|
|
19454
|
+
name: 'goodNo',
|
|
19455
|
+
type: 'optionalInput'
|
|
19456
|
+
}];
|
|
19457
|
+
var GoodList$7 = function GoodList(props, ref) {
|
|
19458
|
+
var _useState = useState([]),
|
|
19459
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
19460
|
+
selectList = _useState2[0],
|
|
19461
|
+
setSelect = _useState2[1];
|
|
19462
|
+
var _useState3 = useState([]),
|
|
19463
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
19464
|
+
selectIds = _useState4[0],
|
|
19465
|
+
setSelectIds = _useState4[1];
|
|
19466
|
+
var _useGetColumns = useGetColumns('jky'),
|
|
19467
|
+
_useGetColumns2 = _slicedToArray(_useGetColumns, 3),
|
|
19468
|
+
columns = _useGetColumns2[0],
|
|
19469
|
+
showColumnsDataIndexList = _useGetColumns2[1],
|
|
19470
|
+
loading = _useGetColumns2[2];
|
|
19471
|
+
useImperativeHandle(ref, function () {
|
|
19472
|
+
return {
|
|
19473
|
+
getSelectGoodList: function getSelectGoodList() {
|
|
19474
|
+
return selectList;
|
|
19475
|
+
}
|
|
19476
|
+
};
|
|
19477
|
+
});
|
|
19478
|
+
var _Form$useForm = Form.useForm(),
|
|
19479
|
+
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
19480
|
+
form = _Form$useForm2[0];
|
|
19481
|
+
var _useAntdTable = useAntdTable(getTableData$7, {
|
|
19482
|
+
defaultPageSize: 10,
|
|
19483
|
+
form: form
|
|
19484
|
+
}),
|
|
19485
|
+
tableProps = _useAntdTable.tableProps,
|
|
19486
|
+
search = _useAntdTable.search,
|
|
19487
|
+
params = _useAntdTable.params;
|
|
19488
|
+
var submit = search.submit,
|
|
19489
|
+
reset = search.reset;
|
|
19490
|
+
var rowSelection = {
|
|
19491
|
+
selectedRowKeys: selectIds,
|
|
19492
|
+
fixed: true,
|
|
19493
|
+
onSelect: function onSelect(record, selected) {
|
|
19494
|
+
if (selected) {
|
|
19495
|
+
setSelectIds([].concat(_toConsumableArray(selectIds), [record.id]));
|
|
19496
|
+
setSelect([].concat(_toConsumableArray(selectList), [record]));
|
|
19497
|
+
} else {
|
|
19498
|
+
setSelectIds(selectIds.filter(function (t) {
|
|
19499
|
+
return t !== record.id;
|
|
19500
|
+
}));
|
|
19501
|
+
setSelect(selectList.filter(function (t) {
|
|
19502
|
+
return t.id !== record.id;
|
|
19503
|
+
}));
|
|
19504
|
+
}
|
|
19505
|
+
},
|
|
19506
|
+
onSelectAll: function onSelectAll(selected, selectedRows, changeRows) {
|
|
19507
|
+
if (selected) {
|
|
19508
|
+
setSelectIds([].concat(_toConsumableArray(selectIds), _toConsumableArray(changeRows.map(function (t) {
|
|
19509
|
+
return t.id;
|
|
19510
|
+
}))));
|
|
19511
|
+
setSelect([].concat(_toConsumableArray(selectList), _toConsumableArray(changeRows)));
|
|
19512
|
+
} else {
|
|
19513
|
+
setSelectIds(difference(selectIds, changeRows.map(function (t) {
|
|
19514
|
+
return t.id;
|
|
19515
|
+
})));
|
|
19516
|
+
var list = differenceWith(selectList, changeRows, function (arrVal, othVal) {
|
|
19517
|
+
return arrVal.id !== othVal.id;
|
|
19518
|
+
});
|
|
19519
|
+
setSelect(list);
|
|
19520
|
+
}
|
|
19521
|
+
},
|
|
19522
|
+
getCheckboxProps: function getCheckboxProps(record) {
|
|
19523
|
+
var options = {
|
|
19524
|
+
disabled: (props.selectedRows || []).map(function (row) {
|
|
19525
|
+
return row.specId || record.id;
|
|
19526
|
+
}).includes(record.specId || record.id),
|
|
19527
|
+
name: record.id
|
|
19528
|
+
};
|
|
19529
|
+
return options;
|
|
19530
|
+
}
|
|
19531
|
+
};
|
|
19532
|
+
var showTable = function showTable() {
|
|
19533
|
+
var handleDelete = function handleDelete(record) {
|
|
19534
|
+
setSelectIds(selectIds.filter(function (t) {
|
|
19535
|
+
return t !== record.id;
|
|
19536
|
+
}));
|
|
19537
|
+
setSelect(selectList.filter(function (t) {
|
|
19538
|
+
return t.id !== record.id;
|
|
19539
|
+
}));
|
|
19540
|
+
};
|
|
19541
|
+
var showColumns = [{
|
|
19542
|
+
dataIndex: '',
|
|
19543
|
+
title: "\u64CD\u4F5C",
|
|
19544
|
+
ellipsis: true,
|
|
19545
|
+
width: 100,
|
|
19546
|
+
render: function render(val, record) {
|
|
19547
|
+
return /*#__PURE__*/React.createElement(Button, {
|
|
19548
|
+
type: "link",
|
|
19549
|
+
onClick: function onClick() {
|
|
19550
|
+
return handleDelete(record);
|
|
19551
|
+
}
|
|
19552
|
+
}, "\u5220\u9664");
|
|
19553
|
+
}
|
|
19554
|
+
}].concat(takeRight(columns, columns.length - 1));
|
|
19555
|
+
return selectList.length ? /*#__PURE__*/React.createElement("div", {
|
|
19556
|
+
style: {
|
|
19557
|
+
width: '100%',
|
|
19558
|
+
maxWidth: '387px'
|
|
19559
|
+
}
|
|
19560
|
+
}, /*#__PURE__*/React.createElement(Table, {
|
|
19561
|
+
columns: showColumns,
|
|
19562
|
+
rowKey: 'id',
|
|
19563
|
+
dataSource: selectList,
|
|
19564
|
+
scroll: {
|
|
19565
|
+
x: '100%',
|
|
19566
|
+
y: 250
|
|
19567
|
+
},
|
|
19568
|
+
pagination: {
|
|
19569
|
+
size: 'small',
|
|
19570
|
+
total: selectIds.length,
|
|
19571
|
+
pageSize: 10,
|
|
19572
|
+
showSizeChanger: false
|
|
19573
|
+
}
|
|
19574
|
+
})) : null;
|
|
19575
|
+
};
|
|
19576
|
+
return /*#__PURE__*/React.createElement(Skeleton, {
|
|
19577
|
+
active: true,
|
|
19578
|
+
loading: loading
|
|
19579
|
+
}, /*#__PURE__*/React.createElement(SearchForm, {
|
|
19580
|
+
searchFormData: searchFormData$6,
|
|
19581
|
+
form: form,
|
|
19582
|
+
showColumnsDataIndexList: showColumnsDataIndexList,
|
|
19583
|
+
submit: submit,
|
|
19584
|
+
reset: reset
|
|
19585
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
19586
|
+
style: {
|
|
19587
|
+
marginTop: '4px'
|
|
19588
|
+
}
|
|
19589
|
+
}, /*#__PURE__*/React.createElement(Table, _objectSpread2({
|
|
19590
|
+
className: "GoodModalColumns",
|
|
19591
|
+
rowSelection: rowSelection,
|
|
19592
|
+
rowKey: "id",
|
|
19593
|
+
columns: columns,
|
|
19594
|
+
scroll: {
|
|
19595
|
+
x: '100%',
|
|
19596
|
+
y: 250
|
|
19597
|
+
},
|
|
19598
|
+
size: "small"
|
|
19599
|
+
}, tableProps))), /*#__PURE__*/React.createElement(Popover, {
|
|
19600
|
+
getPopupContainer: function getPopupContainer(triggerNode) {
|
|
19601
|
+
return triggerNode.parentElement;
|
|
19602
|
+
},
|
|
19603
|
+
content: showTable(),
|
|
19604
|
+
title: "\u5DF2\u9009\u62E9".concat(selectList.length, "\u4E2A\u5546\u54C1")
|
|
19605
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
19606
|
+
danger: true,
|
|
19607
|
+
type: "text"
|
|
19608
|
+
}, "\u5DF2\u9009".concat(selectList.length > 99 ? '99+' : selectList.length, "\u4E2A\u5546\u54C1"), /*#__PURE__*/React.createElement(CaretUpOutlined, null))));
|
|
19609
|
+
};
|
|
19610
|
+
var JkyGoodsList = /*#__PURE__*/forwardRef(GoodList$7);
|
|
19611
|
+
|
|
19612
|
+
var JkyGoodsModal = function JkyGoodsModal(props, ref) {
|
|
19613
|
+
useImperativeHandle(ref, function () {
|
|
19614
|
+
return {
|
|
19615
|
+
open: function open(shopCode) {
|
|
19616
|
+
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
19617
|
+
setVisible(true);
|
|
19618
|
+
setSelectedRows(options.value || []);
|
|
19619
|
+
}
|
|
19620
|
+
};
|
|
19621
|
+
});
|
|
19622
|
+
var onSubmit = props.onSubmit,
|
|
19623
|
+
width = props.width;
|
|
19624
|
+
var _useState = useState(false),
|
|
19625
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
19626
|
+
visible = _useState2[0],
|
|
19627
|
+
setVisible = _useState2[1];
|
|
19628
|
+
var _useState3 = useState([]),
|
|
19629
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
19630
|
+
selectedRows = _useState4[0],
|
|
19631
|
+
setSelectedRows = _useState4[1];
|
|
19632
|
+
var jkyGoodsListRef = useRef(null);
|
|
19633
|
+
var _onCancel = function onCancel() {
|
|
19634
|
+
setVisible(false);
|
|
19635
|
+
};
|
|
19636
|
+
var onOk = function onOk() {
|
|
19637
|
+
var _jkyGoodsListRef$curr;
|
|
19638
|
+
var selectedList = ((_jkyGoodsListRef$curr = jkyGoodsListRef.current) === null || _jkyGoodsListRef$curr === void 0 ? void 0 : _jkyGoodsListRef$curr.getSelectGoodList()) || [];
|
|
19639
|
+
onSubmit(selectedList);
|
|
19640
|
+
_onCancel();
|
|
19641
|
+
};
|
|
19642
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, visible && /*#__PURE__*/React.createElement(Modal, {
|
|
19643
|
+
title: '选择商品',
|
|
19644
|
+
okText: '确认',
|
|
19645
|
+
cancelText: '取消',
|
|
19646
|
+
visible: visible,
|
|
19647
|
+
width: width || 850,
|
|
19648
|
+
onCancel: function onCancel() {
|
|
19649
|
+
_onCancel();
|
|
19650
|
+
},
|
|
19651
|
+
onOk: onOk,
|
|
19652
|
+
wrapClassName: "goodModal"
|
|
19653
|
+
}, /*#__PURE__*/React.createElement(JkyGoodsList, {
|
|
19654
|
+
ref: jkyGoodsListRef,
|
|
19655
|
+
selectedRows: selectedRows
|
|
19656
|
+
})));
|
|
19657
|
+
};
|
|
19658
|
+
var JkyGoodsModal$1 = /*#__PURE__*/forwardRef(JkyGoodsModal);
|
|
19659
|
+
|
|
19660
|
+
var getColumns = function getColumns(_ref) {
|
|
19661
|
+
var _ref$text = _ref.text,
|
|
19662
|
+
disabled = _ref.disabled,
|
|
19663
|
+
updateHandle = _ref.updateHandle;
|
|
19664
|
+
return {
|
|
19665
|
+
//百胜E3补发商品
|
|
19666
|
+
BS_E3_REISSUE_GOODS: [{
|
|
19667
|
+
dataIndex: 'sku',
|
|
19668
|
+
title: "SKU",
|
|
19669
|
+
width: 150,
|
|
19670
|
+
render: renderTextEllipsis
|
|
19671
|
+
}, {
|
|
19672
|
+
dataIndex: 'skuId',
|
|
19673
|
+
title: "SKU ID",
|
|
19674
|
+
width: 150,
|
|
19675
|
+
render: renderTextEllipsis
|
|
19676
|
+
}, {
|
|
19677
|
+
dataIndex: 'goodsName',
|
|
19678
|
+
title: "\u5546\u54C1\u540D\u79F0",
|
|
19679
|
+
width: 150,
|
|
19680
|
+
render: renderTextEllipsis
|
|
19681
|
+
}, {
|
|
19682
|
+
dataIndex: 'goodsShortName',
|
|
19683
|
+
title: "\u5546\u54C1\u7B80\u79F0",
|
|
19251
19684
|
width: 150,
|
|
19252
19685
|
render: renderTextEllipsis
|
|
19253
19686
|
}, {
|
|
@@ -20481,70 +20914,319 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
20481
20914
|
ellipsis: true,
|
|
20482
20915
|
render: renderTextEllipsis
|
|
20483
20916
|
}, {
|
|
20484
|
-
dataIndex: 'refundAmount',
|
|
20485
|
-
title: "\u5DF2\u9000\u6B3E\u91D1\u989D",
|
|
20486
|
-
width: 150,
|
|
20917
|
+
dataIndex: 'refundAmount',
|
|
20918
|
+
title: "\u5DF2\u9000\u6B3E\u91D1\u989D",
|
|
20919
|
+
width: 150,
|
|
20920
|
+
align: 'center',
|
|
20921
|
+
ellipsis: true,
|
|
20922
|
+
render: renderTextEllipsis
|
|
20923
|
+
}, {
|
|
20924
|
+
dataIndex: 'num',
|
|
20925
|
+
title: "\u5B9E\u9645\u53D1\u51FA\u6570\u91CF",
|
|
20926
|
+
width: 150,
|
|
20927
|
+
align: 'center',
|
|
20928
|
+
ellipsis: true,
|
|
20929
|
+
render: renderTextEllipsis
|
|
20930
|
+
}, {
|
|
20931
|
+
dataIndex: 'price',
|
|
20932
|
+
title: "\u4EF7\u683C",
|
|
20933
|
+
width: 150,
|
|
20934
|
+
align: 'center',
|
|
20935
|
+
ellipsis: true,
|
|
20936
|
+
render: renderTextEllipsis
|
|
20937
|
+
}, {
|
|
20938
|
+
dataIndex: 'originalPrice',
|
|
20939
|
+
title: "\u539F\u4EF7",
|
|
20940
|
+
width: 150,
|
|
20941
|
+
align: 'center',
|
|
20942
|
+
ellipsis: true,
|
|
20943
|
+
render: renderTextEllipsis
|
|
20944
|
+
}, {
|
|
20945
|
+
dataIndex: 'giftTypeDesc',
|
|
20946
|
+
title: "\u8D60\u54C1\u7C7B\u578B",
|
|
20947
|
+
width: 150,
|
|
20948
|
+
align: 'center',
|
|
20949
|
+
ellipsis: true,
|
|
20950
|
+
render: renderTextEllipsis
|
|
20951
|
+
}, {
|
|
20952
|
+
dataIndex: 'unitName',
|
|
20953
|
+
title: "\u57FA\u672C\u5355\u4F4D",
|
|
20954
|
+
ellipsis: true,
|
|
20955
|
+
width: 150,
|
|
20956
|
+
align: 'center',
|
|
20957
|
+
render: renderTextEllipsis
|
|
20958
|
+
}, {
|
|
20959
|
+
dataIndex: 'auxUnitName',
|
|
20960
|
+
title: "\u8F85\u52A9\u5355\u4F4D",
|
|
20961
|
+
ellipsis: true,
|
|
20962
|
+
width: 150,
|
|
20963
|
+
align: 'center',
|
|
20964
|
+
render: renderTextEllipsis
|
|
20965
|
+
}]
|
|
20966
|
+
};
|
|
20967
|
+
};
|
|
20968
|
+
|
|
20969
|
+
var getYesOrNo$4 = function getYesOrNo(val) {
|
|
20970
|
+
if (isNull(val)) return null;
|
|
20971
|
+
return val ? '是' : '否';
|
|
20972
|
+
};
|
|
20973
|
+
function toNum$1(value) {
|
|
20974
|
+
if (typeof value === 'string') {
|
|
20975
|
+
return value ? +value : void 0;
|
|
20976
|
+
}
|
|
20977
|
+
if (typeof value === 'number') {
|
|
20978
|
+
return value;
|
|
20979
|
+
}
|
|
20980
|
+
return void 0;
|
|
20981
|
+
}
|
|
20982
|
+
var getColumns$3 = function getColumns(_ref) {
|
|
20983
|
+
var _ref$text = _ref.text,
|
|
20984
|
+
text = _ref$text === void 0 ? '' : _ref$text,
|
|
20985
|
+
disabled = _ref.disabled,
|
|
20986
|
+
updateHandle = _ref.updateHandle;
|
|
20987
|
+
return {
|
|
20988
|
+
//万里牛商品信息
|
|
20989
|
+
WLN_GOODS: [{
|
|
20990
|
+
dataIndex: 'wlnItemName',
|
|
20991
|
+
title: "\u5546\u54C1\u540D\u79F0",
|
|
20992
|
+
align: 'center',
|
|
20993
|
+
ellipsis: true,
|
|
20994
|
+
width: 250,
|
|
20995
|
+
render: renderTextEllipsis
|
|
20996
|
+
}, {
|
|
20997
|
+
dataIndex: 'wlnSkuName',
|
|
20998
|
+
title: "sku\u540D\u79F0",
|
|
20999
|
+
align: 'center',
|
|
21000
|
+
ellipsis: true,
|
|
21001
|
+
width: 250,
|
|
21002
|
+
render: renderTextEllipsis
|
|
21003
|
+
}, {
|
|
21004
|
+
dataIndex: 'skuCode',
|
|
21005
|
+
title: "sku\u7F16\u7801",
|
|
21006
|
+
align: 'center',
|
|
21007
|
+
ellipsis: true,
|
|
21008
|
+
width: 250,
|
|
21009
|
+
render: renderTextEllipsis
|
|
21010
|
+
}, {
|
|
21011
|
+
dataIndex: 'skuName',
|
|
21012
|
+
title: "\u7EBF\u4E0Asku\u540D\u79F0",
|
|
21013
|
+
align: 'center',
|
|
21014
|
+
ellipsis: true,
|
|
21015
|
+
width: 250,
|
|
21016
|
+
render: renderTextEllipsis
|
|
21017
|
+
}, {
|
|
21018
|
+
dataIndex: 'olnSkuCode',
|
|
21019
|
+
title: "\u7EBF\u4E0Asku\u7F16\u7801",
|
|
21020
|
+
align: 'center',
|
|
21021
|
+
ellipsis: true,
|
|
21022
|
+
width: 150,
|
|
21023
|
+
render: renderTextEllipsis
|
|
21024
|
+
}, {
|
|
21025
|
+
dataIndex: 'sku',
|
|
21026
|
+
title: "\u7EBF\u4E0Asku id",
|
|
21027
|
+
align: 'center',
|
|
21028
|
+
ellipsis: true,
|
|
21029
|
+
width: 150,
|
|
21030
|
+
render: renderTextEllipsis
|
|
21031
|
+
}, {
|
|
21032
|
+
dataIndex: 'name',
|
|
21033
|
+
title: "\u7EBF\u4E0A\u5546\u54C1\u540D\u79F0",
|
|
21034
|
+
align: 'center',
|
|
21035
|
+
ellipsis: true,
|
|
21036
|
+
width: 250,
|
|
21037
|
+
render: renderTextEllipsis
|
|
21038
|
+
}, {
|
|
21039
|
+
dataIndex: 'pic',
|
|
21040
|
+
title: "\u7EBF\u4E0A\u56FE\u7247",
|
|
21041
|
+
align: 'center',
|
|
21042
|
+
ellipsis: true,
|
|
21043
|
+
width: 100,
|
|
21044
|
+
render: function render(val) {
|
|
21045
|
+
return /*#__PURE__*/React.createElement(Image, {
|
|
21046
|
+
width: 30,
|
|
21047
|
+
src: val
|
|
21048
|
+
});
|
|
21049
|
+
}
|
|
21050
|
+
}, {
|
|
21051
|
+
dataIndex: 'olnItemCode',
|
|
21052
|
+
title: "\u7EBF\u4E0A\u5546\u54C1\u7F16\u7801",
|
|
21053
|
+
align: 'center',
|
|
21054
|
+
ellipsis: true,
|
|
21055
|
+
width: 150,
|
|
21056
|
+
render: renderTextEllipsis
|
|
21057
|
+
}, {
|
|
21058
|
+
dataIndex: 'code',
|
|
21059
|
+
title: "\u7EBF\u4E0A\u5546\u54C1id",
|
|
21060
|
+
align: 'center',
|
|
21061
|
+
ellipsis: true,
|
|
21062
|
+
width: 150,
|
|
21063
|
+
render: renderTextEllipsis
|
|
21064
|
+
}, {
|
|
21065
|
+
dataIndex: 'barCode',
|
|
21066
|
+
title: "\u5546\u54C1\u6761\u7801",
|
|
21067
|
+
align: 'center',
|
|
21068
|
+
ellipsis: true,
|
|
21069
|
+
width: 150,
|
|
21070
|
+
render: renderTextEllipsis
|
|
21071
|
+
}, {
|
|
21072
|
+
dataIndex: 'money',
|
|
21073
|
+
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
21074
|
+
align: 'center',
|
|
21075
|
+
ellipsis: true,
|
|
21076
|
+
width: 100,
|
|
21077
|
+
render: renderTextEllipsis
|
|
21078
|
+
}, {
|
|
21079
|
+
dataIndex: 'number',
|
|
21080
|
+
title: "".concat(text, "\u6570\u91CF"),
|
|
21081
|
+
align: 'center',
|
|
21082
|
+
ellipsis: true,
|
|
21083
|
+
width: 100,
|
|
21084
|
+
render: function render(val, record, index) {
|
|
21085
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
21086
|
+
style: {
|
|
21087
|
+
width: 70
|
|
21088
|
+
},
|
|
21089
|
+
value: val,
|
|
21090
|
+
min: 1,
|
|
21091
|
+
precision: 0,
|
|
21092
|
+
onChange: function onChange(num) {
|
|
21093
|
+
return updateHandle(num, index, 'number');
|
|
21094
|
+
}
|
|
21095
|
+
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
21096
|
+
}
|
|
21097
|
+
}, {
|
|
21098
|
+
dataIndex: 'share',
|
|
21099
|
+
title: "\u5E94\u6536\u6B3E",
|
|
21100
|
+
align: 'center',
|
|
21101
|
+
ellipsis: true,
|
|
21102
|
+
width: 70,
|
|
21103
|
+
render: renderTextEllipsis
|
|
21104
|
+
}, {
|
|
21105
|
+
dataIndex: 'discountedUnitPrice',
|
|
21106
|
+
title: "\u6298\u540E\u5355\u4EF7",
|
|
21107
|
+
align: 'center',
|
|
21108
|
+
ellipsis: true,
|
|
21109
|
+
width: 250,
|
|
21110
|
+
render: renderTextEllipsis
|
|
21111
|
+
}, {
|
|
21112
|
+
dataIndex: 'price',
|
|
21113
|
+
title: "\u5355\u4EF7",
|
|
21114
|
+
align: 'center',
|
|
21115
|
+
ellipsis: true,
|
|
21116
|
+
width: 250,
|
|
21117
|
+
render: function render(val, record, index) {
|
|
21118
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
21119
|
+
style: {
|
|
21120
|
+
width: 70
|
|
21121
|
+
},
|
|
21122
|
+
value: val,
|
|
21123
|
+
min: 0,
|
|
21124
|
+
precision: 2,
|
|
21125
|
+
onChange: function onChange(num) {
|
|
21126
|
+
return updateHandle(num, index, 'price');
|
|
21127
|
+
}
|
|
21128
|
+
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
21129
|
+
}
|
|
21130
|
+
}, {
|
|
21131
|
+
dataIndex: 'receivable',
|
|
21132
|
+
title: "\u9500\u552E\u91D1\u989D",
|
|
21133
|
+
align: 'center',
|
|
21134
|
+
ellipsis: true,
|
|
21135
|
+
width: 250,
|
|
21136
|
+
render: function render(val, record, index) {
|
|
21137
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
21138
|
+
style: {
|
|
21139
|
+
width: 70
|
|
21140
|
+
},
|
|
21141
|
+
value: val,
|
|
21142
|
+
min: 0,
|
|
21143
|
+
precision: 2,
|
|
21144
|
+
onChange: function onChange(num) {
|
|
21145
|
+
return updateHandle(num, index, 'receivable');
|
|
21146
|
+
}
|
|
21147
|
+
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
21148
|
+
}
|
|
21149
|
+
}, {
|
|
21150
|
+
dataIndex: 'type',
|
|
21151
|
+
title: "\u8D60\u54C1\u7C7B\u578B",
|
|
21152
|
+
align: 'center',
|
|
21153
|
+
ellipsis: true,
|
|
21154
|
+
width: 100,
|
|
21155
|
+
render: function render(val, record, index) {
|
|
21156
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
21157
|
+
value: val,
|
|
21158
|
+
onChange: function onChange(value) {
|
|
21159
|
+
updateHandle(value, index, 'type');
|
|
21160
|
+
},
|
|
21161
|
+
options: [{
|
|
21162
|
+
label: '赠品',
|
|
21163
|
+
value: 1
|
|
21164
|
+
}, {
|
|
21165
|
+
label: '非赠品',
|
|
21166
|
+
value: 0
|
|
21167
|
+
}]
|
|
21168
|
+
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
|
|
21169
|
+
}
|
|
21170
|
+
}, {
|
|
21171
|
+
dataIndex: 'isPackage',
|
|
21172
|
+
title: "\u662F\u5426\u7EC4\u5408\u5546\u54C1",
|
|
20487
21173
|
align: 'center',
|
|
20488
21174
|
ellipsis: true,
|
|
20489
|
-
|
|
21175
|
+
width: 200,
|
|
21176
|
+
render: function render(val, record, index) {
|
|
21177
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
21178
|
+
value: val,
|
|
21179
|
+
onChange: function onChange(value) {
|
|
21180
|
+
updateHandle(value, index, 'isPackage');
|
|
21181
|
+
},
|
|
21182
|
+
options: [{
|
|
21183
|
+
label: '是',
|
|
21184
|
+
value: true
|
|
21185
|
+
}, {
|
|
21186
|
+
label: '否',
|
|
21187
|
+
value: false
|
|
21188
|
+
}]
|
|
21189
|
+
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
|
|
21190
|
+
}
|
|
20490
21191
|
}, {
|
|
20491
|
-
dataIndex: '
|
|
20492
|
-
title: "\
|
|
20493
|
-
width: 150,
|
|
21192
|
+
dataIndex: 'hasRefund',
|
|
21193
|
+
title: "\u662F\u5426\u9000\u6B3E",
|
|
20494
21194
|
align: 'center',
|
|
20495
21195
|
ellipsis: true,
|
|
20496
|
-
|
|
21196
|
+
width: 100,
|
|
21197
|
+
render: function render(val) {
|
|
21198
|
+
return getYesOrNo$4(val);
|
|
21199
|
+
}
|
|
20497
21200
|
}, {
|
|
20498
|
-
dataIndex: '
|
|
20499
|
-
title: "\
|
|
20500
|
-
width: 150,
|
|
21201
|
+
dataIndex: 'unit',
|
|
21202
|
+
title: "\u5355\u4F4D",
|
|
20501
21203
|
align: 'center',
|
|
20502
21204
|
ellipsis: true,
|
|
21205
|
+
width: 100,
|
|
20503
21206
|
render: renderTextEllipsis
|
|
20504
21207
|
}, {
|
|
20505
|
-
dataIndex: '
|
|
20506
|
-
title: "\u539F\
|
|
20507
|
-
width: 150,
|
|
21208
|
+
dataIndex: 'pkgGoodsName',
|
|
21209
|
+
title: "\u539F\u7EC4\u5408\u5546\u54C1\u540D\u79F0",
|
|
20508
21210
|
align: 'center',
|
|
20509
21211
|
ellipsis: true,
|
|
21212
|
+
width: 200,
|
|
20510
21213
|
render: renderTextEllipsis
|
|
20511
21214
|
}, {
|
|
20512
|
-
dataIndex: '
|
|
20513
|
-
title: "\
|
|
20514
|
-
width: 150,
|
|
21215
|
+
dataIndex: 'pkgGoodsCode',
|
|
21216
|
+
title: "\u539F\u7EC4\u5408\u5546\u54C1\u7F16\u7801",
|
|
20515
21217
|
align: 'center',
|
|
20516
21218
|
ellipsis: true,
|
|
21219
|
+
width: 200,
|
|
20517
21220
|
render: renderTextEllipsis
|
|
20518
21221
|
}, {
|
|
20519
|
-
dataIndex: '
|
|
20520
|
-
title: "\
|
|
20521
|
-
ellipsis: true,
|
|
20522
|
-
width: 150,
|
|
21222
|
+
dataIndex: 'pkgGoodsId',
|
|
21223
|
+
title: "\u539F\u7EC4\u5408\u5546\u54C1id",
|
|
20523
21224
|
align: 'center',
|
|
20524
|
-
render: renderTextEllipsis
|
|
20525
|
-
}, {
|
|
20526
|
-
dataIndex: 'auxUnitName',
|
|
20527
|
-
title: "\u8F85\u52A9\u5355\u4F4D",
|
|
20528
21225
|
ellipsis: true,
|
|
20529
|
-
width:
|
|
20530
|
-
align: 'center',
|
|
21226
|
+
width: 200,
|
|
20531
21227
|
render: renderTextEllipsis
|
|
20532
|
-
}]
|
|
20533
|
-
|
|
20534
|
-
};
|
|
20535
|
-
|
|
20536
|
-
var getYesOrNo$3 = function getYesOrNo(val) {
|
|
20537
|
-
if (isNull(val)) return null;
|
|
20538
|
-
return val ? '是' : '否';
|
|
20539
|
-
};
|
|
20540
|
-
var getColumns$3 = function getColumns(_ref) {
|
|
20541
|
-
var _ref$text = _ref.text,
|
|
20542
|
-
text = _ref$text === void 0 ? '' : _ref$text,
|
|
20543
|
-
disabled = _ref.disabled,
|
|
20544
|
-
updateHandle = _ref.updateHandle;
|
|
20545
|
-
return {
|
|
20546
|
-
//万里牛商品信息
|
|
20547
|
-
WLN_GOODS: [{
|
|
21228
|
+
}],
|
|
21229
|
+
WLN_REISSUE_GOODS: [{
|
|
20548
21230
|
dataIndex: 'wlnItemName',
|
|
20549
21231
|
title: "\u5546\u54C1\u540D\u79F0",
|
|
20550
21232
|
align: 'center',
|
|
@@ -20552,8 +21234,8 @@ var getColumns$3 = function getColumns(_ref) {
|
|
|
20552
21234
|
width: 250,
|
|
20553
21235
|
render: renderTextEllipsis
|
|
20554
21236
|
}, {
|
|
20555
|
-
dataIndex: '
|
|
20556
|
-
title: "\
|
|
21237
|
+
dataIndex: 'wlnSkuName',
|
|
21238
|
+
title: "sku\u540D\u79F0",
|
|
20557
21239
|
align: 'center',
|
|
20558
21240
|
ellipsis: true,
|
|
20559
21241
|
width: 250,
|
|
@@ -20606,7 +21288,7 @@ var getColumns$3 = function getColumns(_ref) {
|
|
|
20606
21288
|
});
|
|
20607
21289
|
}
|
|
20608
21290
|
}, {
|
|
20609
|
-
dataIndex: '
|
|
21291
|
+
dataIndex: 'olnItemCode',
|
|
20610
21292
|
title: "\u7EBF\u4E0A\u5546\u54C1\u7F16\u7801",
|
|
20611
21293
|
align: 'center',
|
|
20612
21294
|
ellipsis: true,
|
|
@@ -20627,20 +21309,46 @@ var getColumns$3 = function getColumns(_ref) {
|
|
|
20627
21309
|
width: 150,
|
|
20628
21310
|
render: renderTextEllipsis
|
|
20629
21311
|
}, {
|
|
20630
|
-
dataIndex: '
|
|
20631
|
-
title: "\
|
|
21312
|
+
dataIndex: 'price',
|
|
21313
|
+
title: "\u5355\u4EF7",
|
|
20632
21314
|
align: 'center',
|
|
20633
21315
|
ellipsis: true,
|
|
20634
|
-
width:
|
|
20635
|
-
render:
|
|
21316
|
+
width: 250,
|
|
21317
|
+
render: function render(val, record, index) {
|
|
21318
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
21319
|
+
style: {
|
|
21320
|
+
width: 70
|
|
21321
|
+
},
|
|
21322
|
+
value: val,
|
|
21323
|
+
min: 0,
|
|
21324
|
+
precision: 2,
|
|
21325
|
+
onChange: function onChange(num) {
|
|
21326
|
+
updateHandle(num, index, 'price');
|
|
21327
|
+
if ((num || num === 0) && (record.number || record.number === 0)) updateHandle(num * (record.number || 0), index, 'money');
|
|
21328
|
+
}
|
|
21329
|
+
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
21330
|
+
}
|
|
20636
21331
|
}, {
|
|
20637
21332
|
dataIndex: 'number',
|
|
20638
21333
|
title: "".concat(text, "\u6570\u91CF"),
|
|
20639
21334
|
align: 'center',
|
|
20640
21335
|
ellipsis: true,
|
|
20641
21336
|
width: 100,
|
|
21337
|
+
validator: function validator(_rule, value) {
|
|
21338
|
+
var productName = '';
|
|
21339
|
+
if (((value === null || value === void 0 ? void 0 : value.wlnReissueGoods) || []).some(function (goods) {
|
|
21340
|
+
var qty = toNum$1(goods === null || goods === void 0 ? void 0 : goods.number);
|
|
21341
|
+
var res = typeof qty === 'number' ? qty < 1 : true;
|
|
21342
|
+
if (res) {
|
|
21343
|
+
productName = (goods === null || goods === void 0 ? void 0 : goods.wlnItemName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.wlnItemName, "]") : '';
|
|
21344
|
+
}
|
|
21345
|
+
return res;
|
|
21346
|
+
})) {
|
|
21347
|
+
return Promise.reject("".concat(productName, "\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
|
|
21348
|
+
}
|
|
21349
|
+
},
|
|
20642
21350
|
render: function render(val, record, index) {
|
|
20643
|
-
return record.
|
|
21351
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
20644
21352
|
style: {
|
|
20645
21353
|
width: 70
|
|
20646
21354
|
},
|
|
@@ -20648,34 +21356,60 @@ var getColumns$3 = function getColumns(_ref) {
|
|
|
20648
21356
|
min: 1,
|
|
20649
21357
|
precision: 0,
|
|
20650
21358
|
onChange: function onChange(num) {
|
|
20651
|
-
|
|
21359
|
+
updateHandle(num, index, 'number');
|
|
21360
|
+
if ((num || num === 0) && (record.price || record.price === 0)) updateHandle(num * (record.price || 0), index, 'money');
|
|
20652
21361
|
}
|
|
20653
21362
|
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
20654
21363
|
}
|
|
20655
21364
|
}, {
|
|
20656
|
-
dataIndex: '
|
|
20657
|
-
title: "\
|
|
20658
|
-
|
|
20659
|
-
|
|
20660
|
-
|
|
20661
|
-
|
|
21365
|
+
dataIndex: 'money',
|
|
21366
|
+
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
21367
|
+
width: 150,
|
|
21368
|
+
render: function render(val, record, index) {
|
|
21369
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
21370
|
+
style: {
|
|
21371
|
+
width: 130
|
|
21372
|
+
},
|
|
21373
|
+
value: val,
|
|
21374
|
+
min: 0,
|
|
21375
|
+
precision: 2,
|
|
21376
|
+
onChange: function onChange(num) {
|
|
21377
|
+
updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'money');
|
|
21378
|
+
}
|
|
21379
|
+
}) : /*#__PURE__*/React.createElement("span", null, val || val === 0 ? Number(val).toFixed(2) : '');
|
|
21380
|
+
}
|
|
20662
21381
|
}, {
|
|
20663
21382
|
dataIndex: 'type',
|
|
20664
21383
|
title: "\u8D60\u54C1\u7C7B\u578B",
|
|
20665
21384
|
align: 'center',
|
|
20666
21385
|
ellipsis: true,
|
|
20667
21386
|
width: 100,
|
|
20668
|
-
render:
|
|
21387
|
+
render: function render(val, record, index) {
|
|
21388
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
21389
|
+
value: val,
|
|
21390
|
+
onChange: function onChange(value) {
|
|
21391
|
+
updateHandle(value, index, 'type');
|
|
21392
|
+
},
|
|
21393
|
+
options: [{
|
|
21394
|
+
label: '赠品',
|
|
21395
|
+
value: 1
|
|
21396
|
+
}, {
|
|
21397
|
+
label: '非赠品',
|
|
21398
|
+
value: 0
|
|
21399
|
+
}]
|
|
21400
|
+
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
|
|
21401
|
+
}
|
|
20669
21402
|
}, {
|
|
20670
21403
|
dataIndex: 'isPackage',
|
|
20671
21404
|
title: "\u662F\u5426\u7EC4\u5408\u5546\u54C1",
|
|
20672
21405
|
align: 'center',
|
|
20673
21406
|
ellipsis: true,
|
|
21407
|
+
width: 200,
|
|
20674
21408
|
render: function render(val, record, index) {
|
|
20675
21409
|
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
|
|
20676
21410
|
value: val,
|
|
20677
21411
|
onChange: function onChange(value) {
|
|
20678
|
-
updateHandle(value, index, '
|
|
21412
|
+
updateHandle(value, index, 'isPackage');
|
|
20679
21413
|
},
|
|
20680
21414
|
options: [{
|
|
20681
21415
|
label: '是',
|
|
@@ -20684,9 +21418,36 @@ var getColumns$3 = function getColumns(_ref) {
|
|
|
20684
21418
|
label: '否',
|
|
20685
21419
|
value: false
|
|
20686
21420
|
}]
|
|
20687
|
-
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$
|
|
20688
|
-
}
|
|
20689
|
-
|
|
21421
|
+
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$4(val));
|
|
21422
|
+
}
|
|
21423
|
+
}, {
|
|
21424
|
+
dataIndex: 'unit',
|
|
21425
|
+
title: "\u5355\u4F4D",
|
|
21426
|
+
align: 'center',
|
|
21427
|
+
ellipsis: true,
|
|
21428
|
+
width: 100,
|
|
21429
|
+
render: renderTextEllipsis
|
|
21430
|
+
}, {
|
|
21431
|
+
dataIndex: 'pkgGoodsName',
|
|
21432
|
+
title: "\u539F\u7EC4\u5408\u5546\u54C1\u540D\u79F0",
|
|
21433
|
+
align: 'center',
|
|
21434
|
+
ellipsis: true,
|
|
21435
|
+
width: 200,
|
|
21436
|
+
render: renderTextEllipsis
|
|
21437
|
+
}, {
|
|
21438
|
+
dataIndex: 'pkgGoodsCode',
|
|
21439
|
+
title: "\u539F\u7EC4\u5408\u5546\u54C1\u7F16\u7801",
|
|
21440
|
+
align: 'center',
|
|
21441
|
+
ellipsis: true,
|
|
21442
|
+
width: 200,
|
|
21443
|
+
render: renderTextEllipsis
|
|
21444
|
+
}, {
|
|
21445
|
+
dataIndex: 'pkgGoodsId',
|
|
21446
|
+
title: "\u539F\u7EC4\u5408\u5546\u54C1id",
|
|
21447
|
+
align: 'center',
|
|
21448
|
+
ellipsis: true,
|
|
21449
|
+
width: 200,
|
|
21450
|
+
render: renderTextEllipsis
|
|
20690
21451
|
}]
|
|
20691
21452
|
};
|
|
20692
21453
|
};
|
|
@@ -20696,11 +21457,11 @@ var isNumberOrNumberString$1 = function isNumberOrNumberString(value) {
|
|
|
20696
21457
|
if (typeof value === 'string' && !isNaN(Number(value)) && value.trim() !== '') return true;
|
|
20697
21458
|
return false;
|
|
20698
21459
|
};
|
|
20699
|
-
var getYesOrNo$
|
|
21460
|
+
var getYesOrNo$5 = function getYesOrNo(val) {
|
|
20700
21461
|
if (isNull(val)) return null;
|
|
20701
21462
|
return val ? '是' : '否';
|
|
20702
21463
|
};
|
|
20703
|
-
function toNum$
|
|
21464
|
+
function toNum$2(value) {
|
|
20704
21465
|
if (typeof value === 'string') {
|
|
20705
21466
|
return value ? +value : void 0;
|
|
20706
21467
|
}
|
|
@@ -20811,7 +21572,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
20811
21572
|
title: "\u662F\u5426\u53D6\u6D88",
|
|
20812
21573
|
width: 150,
|
|
20813
21574
|
render: function render(val) {
|
|
20814
|
-
return /*#__PURE__*/React.createElement("span", null, getYesOrNo$
|
|
21575
|
+
return /*#__PURE__*/React.createElement("span", null, getYesOrNo$5(val));
|
|
20815
21576
|
}
|
|
20816
21577
|
}, {
|
|
20817
21578
|
dataIndex: 'isGift',
|
|
@@ -20830,7 +21591,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
20830
21591
|
label: '否',
|
|
20831
21592
|
value: 0
|
|
20832
21593
|
}]
|
|
20833
|
-
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$
|
|
21594
|
+
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$5(val));
|
|
20834
21595
|
}
|
|
20835
21596
|
}, {
|
|
20836
21597
|
dataIndex: 'skuNote',
|
|
@@ -20880,7 +21641,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
20880
21641
|
validator: function validator(_rule, value) {
|
|
20881
21642
|
var goodsName = '';
|
|
20882
21643
|
if (((value === null || value === void 0 ? void 0 : value.gyReissueGoods) || []).some(function (goods) {
|
|
20883
|
-
var qty = toNum$
|
|
21644
|
+
var qty = toNum$2(goods === null || goods === void 0 ? void 0 : goods.qty);
|
|
20884
21645
|
var res = typeof qty === 'number' ? qty < 1 : true;
|
|
20885
21646
|
if (res) {
|
|
20886
21647
|
goodsName = (goods === null || goods === void 0 ? void 0 : goods.goodName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodName, "]") : '';
|
|
@@ -20956,7 +21717,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
20956
21717
|
label: '否',
|
|
20957
21718
|
value: 0
|
|
20958
21719
|
}]
|
|
20959
|
-
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$
|
|
21720
|
+
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$5(val));
|
|
20960
21721
|
}
|
|
20961
21722
|
}].map(function (item) {
|
|
20962
21723
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
@@ -21001,7 +21762,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
21001
21762
|
validator: function validator(_rule, value) {
|
|
21002
21763
|
var goodsName = '';
|
|
21003
21764
|
if (((value === null || value === void 0 ? void 0 : value.gyReturnGoods) || []).some(function (goods) {
|
|
21004
|
-
var qty = toNum$
|
|
21765
|
+
var qty = toNum$2(goods === null || goods === void 0 ? void 0 : goods.qty);
|
|
21005
21766
|
var res = typeof qty === 'number' ? qty < 1 : true;
|
|
21006
21767
|
if (res) {
|
|
21007
21768
|
goodsName = (goods === null || goods === void 0 ? void 0 : goods.goodName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodName, "]") : '';
|
|
@@ -21085,7 +21846,7 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
21085
21846
|
label: '否',
|
|
21086
21847
|
value: 0
|
|
21087
21848
|
}]
|
|
21088
|
-
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$
|
|
21849
|
+
}) : /*#__PURE__*/React.createElement("span", null, getYesOrNo$5(val));
|
|
21089
21850
|
}
|
|
21090
21851
|
}].map(function (item) {
|
|
21091
21852
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
@@ -21102,7 +21863,7 @@ var fillAttrs = function fillAttrs(item) {
|
|
|
21102
21863
|
if (!item.align) item.align = 'center';
|
|
21103
21864
|
return item;
|
|
21104
21865
|
};
|
|
21105
|
-
function toNum$
|
|
21866
|
+
function toNum$3(value) {
|
|
21106
21867
|
if (typeof value === 'string') {
|
|
21107
21868
|
return value ? +value : void 0;
|
|
21108
21869
|
}
|
|
@@ -21342,7 +22103,7 @@ var getColumns$5 = function getColumns() {
|
|
|
21342
22103
|
validator: function validator(_rule, value) {
|
|
21343
22104
|
var goodsName = '';
|
|
21344
22105
|
if (((value === null || value === void 0 ? void 0 : value.jstReissueGoods) || []).some(function (goods) {
|
|
21345
|
-
var qty = toNum$
|
|
22106
|
+
var qty = toNum$3(goods === null || goods === void 0 ? void 0 : goods.qty);
|
|
21346
22107
|
var res = typeof qty === 'number' ? qty < 1 : true;
|
|
21347
22108
|
if (res) {
|
|
21348
22109
|
goodsName = (goods === null || goods === void 0 ? void 0 : goods.name) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.name, "]") : '';
|
|
@@ -21443,7 +22204,7 @@ var getColumns$5 = function getColumns() {
|
|
|
21443
22204
|
validator: function validator(_rule, value) {
|
|
21444
22205
|
var goodsName = '';
|
|
21445
22206
|
if (((value === null || value === void 0 ? void 0 : value.jstReturnGoods) || []).some(function (goods) {
|
|
21446
|
-
var v = toNum$
|
|
22207
|
+
var v = toNum$3(goods === null || goods === void 0 ? void 0 : goods.salePrice);
|
|
21447
22208
|
var res = typeof v === 'number' ? v < 0 : true;
|
|
21448
22209
|
if (res) {
|
|
21449
22210
|
goodsName = (goods === null || goods === void 0 ? void 0 : goods.name) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.name, "]") : '';
|
|
@@ -21473,7 +22234,7 @@ var getColumns$5 = function getColumns() {
|
|
|
21473
22234
|
validator: function validator(_rule, value) {
|
|
21474
22235
|
var goodsName = '';
|
|
21475
22236
|
if (((value === null || value === void 0 ? void 0 : value.jstReturnGoods) || []).some(function (goods) {
|
|
21476
|
-
var qty = toNum$
|
|
22237
|
+
var qty = toNum$3(goods === null || goods === void 0 ? void 0 : goods.qty);
|
|
21477
22238
|
var res = typeof qty === 'number' ? qty < 1 : true;
|
|
21478
22239
|
if (res) {
|
|
21479
22240
|
goodsName = (goods === null || goods === void 0 ? void 0 : goods.name) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.name, "]") : '';
|
|
@@ -21818,7 +22579,7 @@ var getColumns$5 = function getColumns() {
|
|
|
21818
22579
|
};
|
|
21819
22580
|
};
|
|
21820
22581
|
|
|
21821
|
-
function toNum$
|
|
22582
|
+
function toNum$4(value) {
|
|
21822
22583
|
if (typeof value === 'string') {
|
|
21823
22584
|
return value ? +value : void 0;
|
|
21824
22585
|
}
|
|
@@ -22036,7 +22797,7 @@ var getColumns$6 = function getColumns() {
|
|
|
22036
22797
|
if (!(extraParams === null || extraParams === void 0 ? void 0 : extraParams.quantityVerify)) return undefined;
|
|
22037
22798
|
var title = '';
|
|
22038
22799
|
if (((value === null || value === void 0 ? void 0 : value.kmReissueGoods) || []).some(function (goods) {
|
|
22039
|
-
var realNum = toNum$
|
|
22800
|
+
var realNum = toNum$4(goods === null || goods === void 0 ? void 0 : goods.realNum);
|
|
22040
22801
|
var res = typeof realNum === 'number' ? realNum < 1 : true;
|
|
22041
22802
|
if (res) {
|
|
22042
22803
|
title = (goods === null || goods === void 0 ? void 0 : goods.goodName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodName, "]") : '';
|
|
@@ -22066,7 +22827,7 @@ var getColumns$6 = function getColumns() {
|
|
|
22066
22827
|
validator: function validator(_rule, value) {
|
|
22067
22828
|
var title = '';
|
|
22068
22829
|
if (((value === null || value === void 0 ? void 0 : value.kmReissueGoods) || []).some(function (goods) {
|
|
22069
|
-
var desiredNum = toNum$
|
|
22830
|
+
var desiredNum = toNum$4(goods === null || goods === void 0 ? void 0 : goods.desiredNum);
|
|
22070
22831
|
var res = typeof desiredNum === 'number' ? desiredNum < 1 : true;
|
|
22071
22832
|
if (res) {
|
|
22072
22833
|
title = (goods === null || goods === void 0 ? void 0 : goods.goodName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodName, "]") : '';
|
|
@@ -22227,7 +22988,7 @@ var getColumns$6 = function getColumns() {
|
|
|
22227
22988
|
validator: function validator(_rule, value) {
|
|
22228
22989
|
var title = '';
|
|
22229
22990
|
if (((value === null || value === void 0 ? void 0 : value.kmReturnGoods) || []).some(function (goods) {
|
|
22230
|
-
var desiredNum = toNum$
|
|
22991
|
+
var desiredNum = toNum$4(goods === null || goods === void 0 ? void 0 : goods.desiredNum);
|
|
22231
22992
|
var res = typeof desiredNum === 'number' ? desiredNum < 1 : true;
|
|
22232
22993
|
if (res) {
|
|
22233
22994
|
title = (goods === null || goods === void 0 ? void 0 : goods.goodName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodName, "]") : '';
|
|
@@ -22394,7 +23155,7 @@ var getColumns$6 = function getColumns() {
|
|
|
22394
23155
|
if (!(extraParams === null || extraParams === void 0 ? void 0 : extraParams.quantityVerify)) return undefined;
|
|
22395
23156
|
var title = '';
|
|
22396
23157
|
if (((value === null || value === void 0 ? void 0 : value.kmExchangeGoods) || []).some(function (goods) {
|
|
22397
|
-
var realNum = toNum$
|
|
23158
|
+
var realNum = toNum$4(goods === null || goods === void 0 ? void 0 : goods.realNum);
|
|
22398
23159
|
var res = typeof realNum === 'number' ? realNum < 1 : true;
|
|
22399
23160
|
if (res) {
|
|
22400
23161
|
title = (goods === null || goods === void 0 ? void 0 : goods.goodName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodName, "]") : '';
|
|
@@ -22427,7 +23188,7 @@ var getColumns$6 = function getColumns() {
|
|
|
22427
23188
|
validator: function validator(_rule, value) {
|
|
22428
23189
|
var title = '';
|
|
22429
23190
|
if (((value === null || value === void 0 ? void 0 : value.kmExchangeGoods) || []).some(function (goods) {
|
|
22430
|
-
var desiredNum = toNum$
|
|
23191
|
+
var desiredNum = toNum$4(goods === null || goods === void 0 ? void 0 : goods.desiredNum);
|
|
22431
23192
|
var res = typeof desiredNum === 'number' ? desiredNum < 1 : true;
|
|
22432
23193
|
if (res) {
|
|
22433
23194
|
title = (goods === null || goods === void 0 ? void 0 : goods.goodName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodName, "]") : '';
|
|
@@ -22488,7 +23249,7 @@ var isNumberOrNumberString$3 = function isNumberOrNumberString(value) {
|
|
|
22488
23249
|
if (typeof value === 'string' && !isNaN(Number(value)) && value.trim() !== '') return true;
|
|
22489
23250
|
return false;
|
|
22490
23251
|
};
|
|
22491
|
-
function toNum$
|
|
23252
|
+
function toNum$5(value) {
|
|
22492
23253
|
if (typeof value === 'string') {
|
|
22493
23254
|
return value ? +value : void 0;
|
|
22494
23255
|
}
|
|
@@ -22823,7 +23584,7 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
22823
23584
|
validator: function validator(_rule, value) {
|
|
22824
23585
|
var productName = '';
|
|
22825
23586
|
if (((value === null || value === void 0 ? void 0 : value.jyReissueGoods) || []).some(function (goods) {
|
|
22826
|
-
var qty = toNum$
|
|
23587
|
+
var qty = toNum$5(goods === null || goods === void 0 ? void 0 : goods.sellCount);
|
|
22827
23588
|
var res = typeof qty === 'number' ? qty < 1 : true;
|
|
22828
23589
|
if (res) {
|
|
22829
23590
|
productName = (goods === null || goods === void 0 ? void 0 : goods.productName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.productName, "]") : '';
|
|
@@ -22981,7 +23742,7 @@ var isNumberOrNumberString$4 = function isNumberOrNumberString(value) {
|
|
|
22981
23742
|
if (typeof value === 'string' && !isNaN(Number(value)) && value.trim() !== '') return true;
|
|
22982
23743
|
return false;
|
|
22983
23744
|
};
|
|
22984
|
-
function toNum$
|
|
23745
|
+
function toNum$6(value) {
|
|
22985
23746
|
if (typeof value === 'string') {
|
|
22986
23747
|
return value ? +value : void 0;
|
|
22987
23748
|
}
|
|
@@ -23369,7 +24130,7 @@ var getColumns$9 = function getColumns(_ref) {
|
|
|
23369
24130
|
validator: function validator(_rule, value) {
|
|
23370
24131
|
var goodsName = '';
|
|
23371
24132
|
if (((value === null || value === void 0 ? void 0 : value.jkyReissueGoods) || []).some(function (goods) {
|
|
23372
|
-
var qty = toNum$
|
|
24133
|
+
var qty = toNum$6(goods === null || goods === void 0 ? void 0 : goods.sellCount);
|
|
23373
24134
|
var res = typeof qty === 'number' ? qty < 1 : true;
|
|
23374
24135
|
if (res) {
|
|
23375
24136
|
goodsName = (goods === null || goods === void 0 ? void 0 : goods.goodsName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodsName, "]") : '';
|
|
@@ -23805,6 +24566,9 @@ var isErpType = {
|
|
|
23805
24566
|
},
|
|
23806
24567
|
isJky: function isJky(type) {
|
|
23807
24568
|
return ['JKY_GOODS', 'JKY_REISSUE_GOODS'].includes(type);
|
|
24569
|
+
},
|
|
24570
|
+
isWln: function isWln(type) {
|
|
24571
|
+
return ['WLN_GOODS', 'WLN_REISSUE_GOODS'].includes(type);
|
|
23808
24572
|
}
|
|
23809
24573
|
};
|
|
23810
24574
|
var processGoods$1 = function processGoods(_ref) {
|
|
@@ -23864,6 +24628,13 @@ var processGoods$1 = function processGoods(_ref) {
|
|
|
23864
24628
|
canUpdateNumber: canUpdateNumber,
|
|
23865
24629
|
source: source
|
|
23866
24630
|
});
|
|
24631
|
+
} else if (isErpType.isWln(type)) {
|
|
24632
|
+
newList = processWlnGoods$1({
|
|
24633
|
+
list: list,
|
|
24634
|
+
type: type,
|
|
24635
|
+
canUpdateNumber: canUpdateNumber,
|
|
24636
|
+
source: source
|
|
24637
|
+
});
|
|
23867
24638
|
} else {
|
|
23868
24639
|
newList = processDefaultGoods({
|
|
23869
24640
|
list: list,
|
|
@@ -23946,11 +24717,63 @@ var processJkyGoods$1 = function processJkyGoods(_ref3) {
|
|
|
23946
24717
|
});
|
|
23947
24718
|
});
|
|
23948
24719
|
};
|
|
23949
|
-
|
|
23950
|
-
var processWdtGoods$1 = function processWdtGoods(_ref4) {
|
|
24720
|
+
var processWlnGoods$1 = function processWlnGoods(_ref4) {
|
|
23951
24721
|
var list = _ref4.list,
|
|
23952
|
-
type = _ref4.type,
|
|
23953
24722
|
canUpdateNumber = _ref4.canUpdateNumber;
|
|
24723
|
+
return list.map(function (item) {
|
|
24724
|
+
var goodName = item.goodName,
|
|
24725
|
+
goodShortName = item.goodShortName,
|
|
24726
|
+
goodNo = item.goodNo,
|
|
24727
|
+
goodId = item.goodId,
|
|
24728
|
+
goodBarcode = item.goodBarcode,
|
|
24729
|
+
propertiesValue = item.propertiesValue,
|
|
24730
|
+
specNo = item.specNo,
|
|
24731
|
+
specId = item.specId,
|
|
24732
|
+
specImgUrl = item.specImgUrl,
|
|
24733
|
+
specBarcode = item.specBarcode,
|
|
24734
|
+
brandName = item.brandName,
|
|
24735
|
+
retailPrice = item.retailPrice,
|
|
24736
|
+
marketPrice = item.marketPrice,
|
|
24737
|
+
unitName = item.unitName,
|
|
24738
|
+
skuType = item.skuType;
|
|
24739
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
24740
|
+
wlnItemName: goodName,
|
|
24741
|
+
goodsCode: goodNo,
|
|
24742
|
+
wlnSkuName: propertiesValue,
|
|
24743
|
+
skuCode: specNo,
|
|
24744
|
+
// skuName: '', // "线上sku名称",
|
|
24745
|
+
// olnSkuCode: '', // "线上sku编码",
|
|
24746
|
+
// sku: '', // "线上sku id",
|
|
24747
|
+
// name: '', // "线上商品名称",
|
|
24748
|
+
// pic: '', // "线上图片",
|
|
24749
|
+
// olnItemCOde: '', // "线上商品编码",
|
|
24750
|
+
// code: '', // "线上商品id",
|
|
24751
|
+
barCode: goodBarcode,
|
|
24752
|
+
// money: '', // "实付金额",
|
|
24753
|
+
number: 1,
|
|
24754
|
+
share: '',
|
|
24755
|
+
// discountedUnitPrice: '', // "折后单价",
|
|
24756
|
+
originPrice: marketPrice,
|
|
24757
|
+
price: retailPrice,
|
|
24758
|
+
receivable: +((marketPrice || 0) * (retailPrice || 0)).toFixed(2),
|
|
24759
|
+
// type: '', // "赠品类型",
|
|
24760
|
+
isPackage: skuType === 'combine',
|
|
24761
|
+
// hasRefund: '', // 是否退款,
|
|
24762
|
+
unit: unitName,
|
|
24763
|
+
// pkgGoodsName: '', // "原组合商品名称",
|
|
24764
|
+
// pkgGoodsCode: '', // "原组合商品编码",
|
|
24765
|
+
// pkgGoodsId: '', // "原组合商品id",
|
|
24766
|
+
uuid: uuid(),
|
|
24767
|
+
canDelete: true,
|
|
24768
|
+
canEdit: true
|
|
24769
|
+
});
|
|
24770
|
+
});
|
|
24771
|
+
};
|
|
24772
|
+
// 处理不同类型的商品数据
|
|
24773
|
+
var processWdtGoods$1 = function processWdtGoods(_ref5) {
|
|
24774
|
+
var list = _ref5.list,
|
|
24775
|
+
type = _ref5.type,
|
|
24776
|
+
canUpdateNumber = _ref5.canUpdateNumber;
|
|
23954
24777
|
return list.map(function (item) {
|
|
23955
24778
|
var processedItem = _objectSpread2(_objectSpread2({}, item), {}, {
|
|
23956
24779
|
uuid: uuid(),
|
|
@@ -23968,9 +24791,9 @@ var processWdtGoods$1 = function processWdtGoods(_ref4) {
|
|
|
23968
24791
|
return processedItem;
|
|
23969
24792
|
});
|
|
23970
24793
|
};
|
|
23971
|
-
var processBsE3Goods$1 = function processBsE3Goods(
|
|
23972
|
-
var list =
|
|
23973
|
-
canUpdateNumber =
|
|
24794
|
+
var processBsE3Goods$1 = function processBsE3Goods(_ref6) {
|
|
24795
|
+
var list = _ref6.list,
|
|
24796
|
+
canUpdateNumber = _ref6.canUpdateNumber;
|
|
23974
24797
|
return list.map(function (item) {
|
|
23975
24798
|
var specNo = item.specNo,
|
|
23976
24799
|
specId = item.specId,
|
|
@@ -24005,9 +24828,9 @@ var processBsE3Goods$1 = function processBsE3Goods(_ref5) {
|
|
|
24005
24828
|
});
|
|
24006
24829
|
});
|
|
24007
24830
|
};
|
|
24008
|
-
var processGyGoods$1 = function processGyGoods(
|
|
24009
|
-
var list =
|
|
24010
|
-
source =
|
|
24831
|
+
var processGyGoods$1 = function processGyGoods(_ref7) {
|
|
24832
|
+
var list = _ref7.list,
|
|
24833
|
+
source = _ref7.source;
|
|
24011
24834
|
var isFormWorkOrder = source === 'workOrder';
|
|
24012
24835
|
return list.map(function (item) {
|
|
24013
24836
|
var goodName = item.goodName,
|
|
@@ -24034,8 +24857,8 @@ var processGyGoods$1 = function processGyGoods(_ref6) {
|
|
|
24034
24857
|
});
|
|
24035
24858
|
});
|
|
24036
24859
|
};
|
|
24037
|
-
var processJstGoods$1 = function processJstGoods(
|
|
24038
|
-
var list =
|
|
24860
|
+
var processJstGoods$1 = function processJstGoods(_ref8) {
|
|
24861
|
+
var list = _ref8.list;
|
|
24039
24862
|
return list.map(function (item) {
|
|
24040
24863
|
return {
|
|
24041
24864
|
name: item.goodName,
|
|
@@ -24053,9 +24876,9 @@ var processJstGoods$1 = function processJstGoods(_ref7) {
|
|
|
24053
24876
|
};
|
|
24054
24877
|
});
|
|
24055
24878
|
};
|
|
24056
|
-
var processKmGoods$1 = function processKmGoods(
|
|
24057
|
-
var list =
|
|
24058
|
-
type =
|
|
24879
|
+
var processKmGoods$1 = function processKmGoods(_ref9) {
|
|
24880
|
+
var list = _ref9.list,
|
|
24881
|
+
type = _ref9.type;
|
|
24059
24882
|
var initParamsMap = {
|
|
24060
24883
|
KM_GOODS: {
|
|
24061
24884
|
num: 1
|
|
@@ -24094,9 +24917,9 @@ var processKmGoods$1 = function processKmGoods(_ref8) {
|
|
|
24094
24917
|
}, initParamsMap[type] || {});
|
|
24095
24918
|
});
|
|
24096
24919
|
};
|
|
24097
|
-
var processDefaultGoods = function processDefaultGoods(
|
|
24098
|
-
var list =
|
|
24099
|
-
canUpdateNumber =
|
|
24920
|
+
var processDefaultGoods = function processDefaultGoods(_ref10) {
|
|
24921
|
+
var list = _ref10.list,
|
|
24922
|
+
canUpdateNumber = _ref10.canUpdateNumber;
|
|
24100
24923
|
return list.map(function (item) {
|
|
24101
24924
|
var goodsId = item.goodsId,
|
|
24102
24925
|
name = item.name,
|
|
@@ -24145,6 +24968,8 @@ var GoodsModalMap = {
|
|
|
24145
24968
|
JY_REISSUE_GOODS: JyGoodsModal$1,
|
|
24146
24969
|
JKY_GOODS: JkyGoodsModal$1,
|
|
24147
24970
|
JKY_REISSUE_GOODS: JkyGoodsModal$1,
|
|
24971
|
+
WLN_REISSUE_GOODS: WlnGoodsModal$1,
|
|
24972
|
+
WLN_GOODS: WlnGoodsModal$1,
|
|
24148
24973
|
OTHER_GOODS: GoodsModal$2
|
|
24149
24974
|
};
|
|
24150
24975
|
var systemOrderNoMap = {
|
|
@@ -24159,6 +24984,7 @@ var systemOrderNoMap = {
|
|
|
24159
24984
|
JY_REISSUE_GOODS: 'tradeNo',
|
|
24160
24985
|
JKY_GOODS: 'tradeNo',
|
|
24161
24986
|
JKY_REISSUE_GOODS: 'tradeNo',
|
|
24987
|
+
WLN_REISSUE_GOODS: 'tradeNo',
|
|
24162
24988
|
KM_REISSUE_GOODS: 'sid',
|
|
24163
24989
|
KM_RETURN_GOODS: 'sid',
|
|
24164
24990
|
KM_EXCHANGE_GOODS: 'sid',
|
|
@@ -24416,6 +25242,9 @@ var getButtonText = function getButtonText() {
|
|
|
24416
25242
|
if (['JKY_GOODS', 'JKY_REISSUE_GOODS'].includes(type)) {
|
|
24417
25243
|
return '选择吉客云ERP商品';
|
|
24418
25244
|
}
|
|
25245
|
+
if (['WLN_GOODS', 'WLN_REISSUE_GOODS'].includes(type)) {
|
|
25246
|
+
return '选择万里牛ERP商品';
|
|
25247
|
+
}
|
|
24419
25248
|
return '选择商品';
|
|
24420
25249
|
};
|
|
24421
25250
|
var GoodItem$1 = function GoodItem(props) {
|
|
@@ -24475,8 +25304,8 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
24475
25304
|
var jstReturnGoods = Form === null || Form === void 0 ? void 0 : Form.useWatch('3979edfd6d', form);
|
|
24476
25305
|
var isShowSelectTradeGoods = type !== 'JST_EXCHANGE_GOODS' || (jstReturnGoods === null || jstReturnGoods === void 0 ? void 0 : jstReturnGoods.jstSystemOrderNo);
|
|
24477
25306
|
// 判断是否为是否展示系统单筛选项
|
|
24478
|
-
var isShowSelect = type && ['WDT_GOODS', 'BS_E3_GOODS', 'GY_GOODS', 'JST_GOODS', 'WLN_GOODS', 'KM_GOODS', 'JY_GOODS', 'JY_REISSUE_GOODS', 'JKY_GOODS', 'JKY_REISSUE_GOODS', 'GY_REISSUE_GOODS', 'KM_REISSUE_GOODS', 'KM_RETURN_GOODS', 'BS_E3_REISSUE_GOODS', 'WDT_REISSUE_GOODS', 'JST_REISSUE_GOODS'].includes(type) || false;
|
|
24479
|
-
var isReissueType = type && ['GY_REISSUE_GOODS', 'KM_REISSUE_GOODS', 'BS_E3_REISSUE_GOODS', 'WDT_REISSUE_GOODS', 'JST_REISSUE_GOODS', 'JY_REISSUE_GOODS', 'JKY_REISSUE_GOODS'].includes(type) || false;
|
|
25307
|
+
var isShowSelect = type && ['WDT_GOODS', 'BS_E3_GOODS', 'GY_GOODS', 'JST_GOODS', 'WLN_GOODS', 'KM_GOODS', 'JY_GOODS', 'JY_REISSUE_GOODS', 'JKY_GOODS', 'JKY_REISSUE_GOODS', 'WLN_REISSUE_GOODS', 'GY_REISSUE_GOODS', 'KM_REISSUE_GOODS', 'KM_RETURN_GOODS', 'BS_E3_REISSUE_GOODS', 'WDT_REISSUE_GOODS', 'JST_REISSUE_GOODS'].includes(type) || false;
|
|
25308
|
+
var isReissueType = type && ['GY_REISSUE_GOODS', 'KM_REISSUE_GOODS', 'BS_E3_REISSUE_GOODS', 'WDT_REISSUE_GOODS', 'JST_REISSUE_GOODS', 'JY_REISSUE_GOODS', 'JKY_REISSUE_GOODS', 'WLN_REISSUE_GOODS'].includes(type) || false;
|
|
24480
25309
|
var refModal = useRef();
|
|
24481
25310
|
console.debug('表格数据', value);
|
|
24482
25311
|
var handleDelete = function handleDelete(record, index) {
|
|
@@ -24571,6 +25400,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
24571
25400
|
case 'JY_REISSUE_GOODS':
|
|
24572
25401
|
case 'JKY_GOODS':
|
|
24573
25402
|
case 'JKY_REISSUE_GOODS':
|
|
25403
|
+
case 'WLN_REISSUE_GOODS':
|
|
24574
25404
|
case 'SKX_GOODS':
|
|
24575
25405
|
case 'SKX_RETURN_GOODS':
|
|
24576
25406
|
{
|
|
@@ -24830,6 +25660,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
24830
25660
|
templateDetail: templateDetail
|
|
24831
25661
|
}));
|
|
24832
25662
|
};
|
|
25663
|
+
GoodItem$1.displayName = 'GoodItem';
|
|
24833
25664
|
|
|
24834
25665
|
var BsGoods = function BsGoods(props) {
|
|
24835
25666
|
var _withInfo$current3, _withInfo$current4;
|
|
@@ -25667,6 +26498,7 @@ var jstUtils = {
|
|
|
25667
26498
|
|
|
25668
26499
|
var singletonMap$4 = new Map();
|
|
25669
26500
|
var getOrderListSingleton = function getOrderListSingleton(orderNo) {
|
|
26501
|
+
var isSplit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
25670
26502
|
if (!singletonMap$4.has(orderNo)) {
|
|
25671
26503
|
var p = new Promise(function (resolve, reject) {
|
|
25672
26504
|
var doReject = function doReject(err) {
|
|
@@ -25677,10 +26509,15 @@ var getOrderListSingleton = function getOrderListSingleton(orderNo) {
|
|
|
25677
26509
|
extendRequest('/qy/gdfw/order/wlnOrderList', {
|
|
25678
26510
|
method: 'post',
|
|
25679
26511
|
data: {
|
|
25680
|
-
billCode: orderNo
|
|
26512
|
+
billCode: orderNo,
|
|
26513
|
+
isSplit: isSplit
|
|
25681
26514
|
}
|
|
25682
26515
|
}).then(function (data) {
|
|
25683
26516
|
if (data === null || data === void 0 ? void 0 : data.success) {
|
|
26517
|
+
var _data$data;
|
|
26518
|
+
if ((_data$data = data.data) === null || _data$data === void 0 ? void 0 : _data$data.tradeNo) {
|
|
26519
|
+
data.data.tradeNo = orderNo;
|
|
26520
|
+
}
|
|
25684
26521
|
resolve(data.data);
|
|
25685
26522
|
// 延迟10秒清除,保证订单的时效性
|
|
25686
26523
|
setTimeout(function () {
|
|
@@ -27666,6 +28503,38 @@ var componentMap$2 = {
|
|
|
27666
28503
|
},
|
|
27667
28504
|
getOrderList: jkyUtils.getJkyOrderListSingleton
|
|
27668
28505
|
},
|
|
28506
|
+
WLN_GOODS: {
|
|
28507
|
+
type: 'jky',
|
|
28508
|
+
key: 'wlnGoods',
|
|
28509
|
+
name: '吉客云',
|
|
28510
|
+
orderNo: 'tradeNo',
|
|
28511
|
+
goodDetailOrderNo: 'tpTid',
|
|
28512
|
+
eventNameMap: {
|
|
28513
|
+
// pubsub 事件
|
|
28514
|
+
type: 'wlnType',
|
|
28515
|
+
updateGoodsHandle: updateWlnGoodsHandle,
|
|
28516
|
+
selectListReturn: 'wlnSelectListReturn',
|
|
28517
|
+
selectList: 'wlnSelectList',
|
|
28518
|
+
reissueSelectList: 'wlnReissueSelectList',
|
|
28519
|
+
reissueSelectListReturn: 'wlnReissueSelectListReturn',
|
|
28520
|
+
reissueDeleteGood: 'wlnReissueDeleteGood',
|
|
28521
|
+
changeShopCode: 'wlnChangeShopCode',
|
|
28522
|
+
reissueType: 'wlnReissueType',
|
|
28523
|
+
returnType: 'wlnReturnType',
|
|
28524
|
+
returnSelectListReturn: 'wlnReturnSelectListReturn',
|
|
28525
|
+
returnSelectList: 'wlnReturnSelectList',
|
|
28526
|
+
deleteGood: 'wlnDeleteGood',
|
|
28527
|
+
returnDeleteGood: 'wlnReturnDeleteGood',
|
|
28528
|
+
exchangeDeleteGood: 'wlnExchangeDeleteGood'
|
|
28529
|
+
},
|
|
28530
|
+
getOrderList: wlnUtils.getOrderListSingleton,
|
|
28531
|
+
checkShowModeBtn: function checkShowModeBtn(value) {
|
|
28532
|
+
var _value$allOrders;
|
|
28533
|
+
return value === null || value === void 0 ? void 0 : (_value$allOrders = value.allOrders) === null || _value$allOrders === void 0 ? void 0 : _value$allOrders.some(function (order) {
|
|
28534
|
+
return order === null || order === void 0 ? void 0 : order.tpTid.includes('|');
|
|
28535
|
+
});
|
|
28536
|
+
}
|
|
28537
|
+
},
|
|
27669
28538
|
WDT_AFTERSALE_GOODS: {
|
|
27670
28539
|
type: 'wdtAftersale',
|
|
27671
28540
|
key: 'wdtAftersaleGoods',
|
|
@@ -27697,14 +28566,14 @@ var componentMap$2 = {
|
|
|
27697
28566
|
}
|
|
27698
28567
|
};
|
|
27699
28568
|
var CommonGoods = function CommonGoods(props) {
|
|
27700
|
-
var _withInfo$current3, _withInfo$current4, _componentMap$
|
|
28569
|
+
var _componentMap$compTyp, _withInfo$current3, _withInfo$current4, _componentMap$compTyp7;
|
|
27701
28570
|
var value = props.value,
|
|
27702
28571
|
disabled = props.disabled,
|
|
27703
28572
|
onChange = props.onChange,
|
|
27704
28573
|
compType = props.type;
|
|
27705
28574
|
// console.log('value?.orders', value?.orders);
|
|
27706
28575
|
// 合并单订单会包含","
|
|
27707
|
-
var showModeBtn = !['BS_E3_GOODS'].includes(compType) && ((value === null || value === void 0 ? void 0 : value.orders) || []).some(function (order) {
|
|
28576
|
+
var showModeBtn = ((_componentMap$compTyp = componentMap$2[compType]) === null || _componentMap$compTyp === void 0 ? void 0 : _componentMap$compTyp.checkShowModeBtn) ? componentMap$2[compType].checkShowModeBtn(value) : !['BS_E3_GOODS'].includes(compType) && ((value === null || value === void 0 ? void 0 : value.orders) || []).some(function (order) {
|
|
27708
28577
|
var _order$componentMap$c;
|
|
27709
28578
|
return order === null || order === void 0 ? void 0 : (_order$componentMap$c = order[componentMap$2[compType].orderNo]) === null || _order$componentMap$c === void 0 ? void 0 : _order$componentMap$c.includes(',');
|
|
27710
28579
|
});
|
|
@@ -27948,8 +28817,8 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
27948
28817
|
});
|
|
27949
28818
|
var orderNo = value === null || value === void 0 ? void 0 : value.orderNo;
|
|
27950
28819
|
return mode ? goodDetails.filter(function (goodItem) {
|
|
27951
|
-
var _componentMap$
|
|
27952
|
-
return !orderNo || (goodItem === null || goodItem === void 0 ? void 0 : goodItem[(_componentMap$
|
|
28820
|
+
var _componentMap$compTyp2;
|
|
28821
|
+
return !orderNo || (goodItem === null || goodItem === void 0 ? void 0 : goodItem[(_componentMap$compTyp2 = componentMap$2[compType]) === null || _componentMap$compTyp2 === void 0 ? void 0 : _componentMap$compTyp2.goodDetailOrderNo]) === orderNo;
|
|
27953
28822
|
}) : goodDetails;
|
|
27954
28823
|
};
|
|
27955
28824
|
// 找到该订单号下所有商品
|
|
@@ -27974,8 +28843,8 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
27974
28843
|
// await getKmSupplier(goodDetails);
|
|
27975
28844
|
// }
|
|
27976
28845
|
return _context3.abrupt("return", mode ? goodDetails.filter(function (goodItem) {
|
|
27977
|
-
var _componentMap$
|
|
27978
|
-
return !orderNo || (goodItem === null || goodItem === void 0 ? void 0 : goodItem[(_componentMap$
|
|
28846
|
+
var _componentMap$compTyp3;
|
|
28847
|
+
return !orderNo || (goodItem === null || goodItem === void 0 ? void 0 : goodItem[(_componentMap$compTyp3 = componentMap$2[compType]) === null || _componentMap$compTyp3 === void 0 ? void 0 : _componentMap$compTyp3.goodDetailOrderNo]) === orderNo;
|
|
27979
28848
|
}) : goodDetails);
|
|
27980
28849
|
case 7:
|
|
27981
28850
|
case "end":
|
|
@@ -28016,7 +28885,7 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
28016
28885
|
}, [value === null || value === void 0 ? void 0 : value.allOrders, value === null || value === void 0 ? void 0 : value.isStrict, value === null || value === void 0 ? void 0 : value.orderNo, compType]);
|
|
28017
28886
|
var selectedGoodsChange = /*#__PURE__*/function () {
|
|
28018
28887
|
var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(skuList) {
|
|
28019
|
-
var _valueRef$current9, _componentMap$
|
|
28888
|
+
var _valueRef$current9, _componentMap$compTyp4, _componentMap$compTyp5, _uniqBy;
|
|
28020
28889
|
var newValue, isStrict, originTradeGoodList, currentSelectGoodList;
|
|
28021
28890
|
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
28022
28891
|
while (1) switch (_context5.prev = _context5.next) {
|
|
@@ -28037,8 +28906,8 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
28037
28906
|
case 7:
|
|
28038
28907
|
originTradeGoodList = _context5.t0;
|
|
28039
28908
|
// 当前选中的所有商品【包含了原订单+商品库】
|
|
28040
|
-
currentSelectGoodList = ((_valueRef$current9 = valueRef.current) === null || _valueRef$current9 === void 0 ? void 0 : _valueRef$current9["".concat(componentMap$2 === null || componentMap$2 === void 0 ? void 0 : (_componentMap$
|
|
28041
|
-
newValue["".concat(componentMap$2 === null || componentMap$2 === void 0 ? void 0 : (_componentMap$
|
|
28909
|
+
currentSelectGoodList = ((_valueRef$current9 = valueRef.current) === null || _valueRef$current9 === void 0 ? void 0 : _valueRef$current9["".concat(componentMap$2 === null || componentMap$2 === void 0 ? void 0 : (_componentMap$compTyp4 = componentMap$2[compType]) === null || _componentMap$compTyp4 === void 0 ? void 0 : _componentMap$compTyp4.key)]) || [];
|
|
28910
|
+
newValue["".concat(componentMap$2 === null || componentMap$2 === void 0 ? void 0 : (_componentMap$compTyp5 = componentMap$2[compType]) === null || _componentMap$compTyp5 === void 0 ? void 0 : _componentMap$compTyp5.key)] = (_uniqBy = uniqBy(originTradeGoodList.concat(currentSelectGoodList), 'uuid')) === null || _uniqBy === void 0 ? void 0 : _uniqBy.filter(function (item) {
|
|
28042
28911
|
return skuList.includes(item.uuid);
|
|
28043
28912
|
});
|
|
28044
28913
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
@@ -28054,8 +28923,8 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
28054
28923
|
}();
|
|
28055
28924
|
// 商品信息组件暂存后 重新编辑,此时需要重新获取订单下所有系统自订单的商品信息
|
|
28056
28925
|
var getDataSourceAsync = function getDataSourceAsync() {
|
|
28057
|
-
var _componentMap$
|
|
28058
|
-
return (value === null || value === void 0 ? void 0 : value.orderNo) ? (_componentMap$
|
|
28926
|
+
var _componentMap$compTyp6;
|
|
28927
|
+
return (value === null || value === void 0 ? void 0 : value.orderNo) ? (_componentMap$compTyp6 = componentMap$2[compType]) === null || _componentMap$compTyp6 === void 0 ? void 0 : _componentMap$compTyp6.getOrderList(value === null || value === void 0 ? void 0 : value.orderNo).then(function (data) {
|
|
28059
28928
|
var list = processAllOrders({
|
|
28060
28929
|
data: data,
|
|
28061
28930
|
orderNo: value === null || value === void 0 ? void 0 : value.orderNo,
|
|
@@ -28088,7 +28957,7 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
28088
28957
|
isStrict: value === null || value === void 0 ? void 0 : value.isStrict,
|
|
28089
28958
|
systemOrders: value === null || value === void 0 ? void 0 : value.allOrders,
|
|
28090
28959
|
selectedSystemOrders: value === null || value === void 0 ? void 0 : value.orders,
|
|
28091
|
-
showChangeBtn: (_componentMap$
|
|
28960
|
+
showChangeBtn: (_componentMap$compTyp7 = componentMap$2[compType]) === null || _componentMap$compTyp7 === void 0 ? void 0 : _componentMap$compTyp7.showChangeBtn,
|
|
28092
28961
|
tradeGoods: {
|
|
28093
28962
|
originDataSource: originDataSource,
|
|
28094
28963
|
getDataSourceAsync: getDataSourceAsync,
|
|
@@ -28850,10 +29719,32 @@ var typeMap$2 = {
|
|
|
28850
29719
|
goodDetailsKey: 'goodsDetail',
|
|
28851
29720
|
isShowSelectTradeGoods: true,
|
|
28852
29721
|
showModeBtn: true
|
|
29722
|
+
},
|
|
29723
|
+
WLN_REISSUE_GOODS: {
|
|
29724
|
+
compType: '补发',
|
|
29725
|
+
key: 'wlnReissueGoods',
|
|
29726
|
+
typeName: 'wlnReissueType',
|
|
29727
|
+
systemOrder: 'wlnSystemOrder',
|
|
29728
|
+
systemOrderNo: 'wlnSystemOrderNo',
|
|
29729
|
+
getOrderList: wlnUtils.getOrderListSingleton,
|
|
29730
|
+
updateGoodsHandle: updateWlnGoodsHandle,
|
|
29731
|
+
alwaysShowChooseErpGoodsBtn: true,
|
|
29732
|
+
orderTypeKey: 'orderType',
|
|
29733
|
+
oIdKey: 'tradeNo',
|
|
29734
|
+
outerOiIdKey: 'tpTid',
|
|
29735
|
+
goodDetailsKey: 'items',
|
|
29736
|
+
isShowSelectTradeGoods: true,
|
|
29737
|
+
checkShowModeBtn: function checkShowModeBtn(value) {
|
|
29738
|
+
var _value$wlnSystemOrder, _value$wlnSystemOrder2;
|
|
29739
|
+
var selectOrder = (value === null || value === void 0 ? void 0 : value.wlnSystemOrderNo) && (value === null || value === void 0 ? void 0 : (_value$wlnSystemOrder = value.wlnSystemOrder) === null || _value$wlnSystemOrder === void 0 ? void 0 : (_value$wlnSystemOrder2 = _value$wlnSystemOrder.orders) === null || _value$wlnSystemOrder2 === void 0 ? void 0 : _value$wlnSystemOrder2.find(function (order) {
|
|
29740
|
+
return (value === null || value === void 0 ? void 0 : value.wlnSystemOrderNo) === (order === null || order === void 0 ? void 0 : order.billNo);
|
|
29741
|
+
}));
|
|
29742
|
+
return (selectOrder === null || selectOrder === void 0 ? void 0 : selectOrder.tpTid.includes('|')) || (selectOrder === null || selectOrder === void 0 ? void 0 : selectOrder.tid.includes('|'));
|
|
29743
|
+
}
|
|
28853
29744
|
}
|
|
28854
29745
|
};
|
|
28855
29746
|
var PublicReissue = function PublicReissue(props) {
|
|
28856
|
-
var _typeMap$
|
|
29747
|
+
var _typeMap$type, _typeMap$type2, _typeMap$type20, _typeMap$type38, _typeMap$type44, _typeMap$type45, _typeMap$type46, _typeMap$type47, _value$typeMap$type$s8, _typeMap$type48, _typeMap$type49, _typeMap$type50, _typeMap$type51, _typeMap$type52, _typeMap$type53, _typeMap$type54, _typeMap$type55, _value$typeMap$type$s9, _typeMap$type56, _typeMap$type57, _typeMap$type58, _typeMap$type59;
|
|
28857
29748
|
var value = props.value,
|
|
28858
29749
|
onChange = props.onChange,
|
|
28859
29750
|
_props$reasonList = props.reasonList,
|
|
@@ -28862,6 +29753,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28862
29753
|
type = props.type,
|
|
28863
29754
|
isSettingConfig = props.isSettingConfig,
|
|
28864
29755
|
other = _objectWithoutProperties(props, _excluded$m);
|
|
29756
|
+
var showModeBtn = ((_typeMap$type = typeMap$2[type]) === null || _typeMap$type === void 0 ? void 0 : _typeMap$type.checkShowModeBtn) ? typeMap$2[type].checkShowModeBtn(value) : !!((_typeMap$type2 = typeMap$2[type]) === null || _typeMap$type2 === void 0 ? void 0 : _typeMap$type2.showModeBtn) || false;
|
|
28865
29757
|
var getOrderFlag = useRef(false);
|
|
28866
29758
|
var _useState = useState(false),
|
|
28867
29759
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -28869,11 +29761,11 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28869
29761
|
setIsStrict = _useState2[1];
|
|
28870
29762
|
// TODO: 在修改场景下手动获取一次订单详情中数据
|
|
28871
29763
|
useEffect(function () {
|
|
28872
|
-
var _value$typeMap$type$s, _value$typeMap$type$s2, _typeMap$
|
|
28873
|
-
if (!getOrderFlag.current && !(value === null || value === void 0 ? void 0 : (_value$typeMap$type$s = value[(_typeMap$
|
|
28874
|
-
var _value$typeMap$type$s5, _typeMap$
|
|
29764
|
+
var _value$typeMap$type$s, _value$typeMap$type$s2, _typeMap$type3, _value$typeMap$type$s3, _typeMap$type4, _value$typeMap$type$s4, _typeMap$type5;
|
|
29765
|
+
if (!getOrderFlag.current && !(value === null || value === void 0 ? void 0 : (_value$typeMap$type$s = value[(_typeMap$type3 = typeMap$2[type]) === null || _typeMap$type3 === void 0 ? void 0 : _typeMap$type3.systemOrder]) === null || _value$typeMap$type$s === void 0 ? void 0 : (_value$typeMap$type$s2 = _value$typeMap$type$s.orders) === null || _value$typeMap$type$s2 === void 0 ? void 0 : _value$typeMap$type$s2.length) && (value === null || value === void 0 ? void 0 : (_value$typeMap$type$s3 = value[(_typeMap$type4 = typeMap$2[type]) === null || _typeMap$type4 === void 0 ? void 0 : _typeMap$type4.systemOrder]) === null || _value$typeMap$type$s3 === void 0 ? void 0 : _value$typeMap$type$s3.orderNo) && !(value === null || value === void 0 ? void 0 : (_value$typeMap$type$s4 = value[(_typeMap$type5 = typeMap$2[type]) === null || _typeMap$type5 === void 0 ? void 0 : _typeMap$type5.systemOrder]) === null || _value$typeMap$type$s4 === void 0 ? void 0 : _value$typeMap$type$s4.isRequest)) {
|
|
29766
|
+
var _value$typeMap$type$s5, _typeMap$type6;
|
|
28875
29767
|
getOrderFlag.current = true;
|
|
28876
|
-
getOrderList(value === null || value === void 0 ? void 0 : (_value$typeMap$type$s5 = value[(_typeMap$
|
|
29768
|
+
getOrderList(value === null || value === void 0 ? void 0 : (_value$typeMap$type$s5 = value[(_typeMap$type6 = typeMap$2[type]) === null || _typeMap$type6 === void 0 ? void 0 : _typeMap$type6.systemOrder]) === null || _value$typeMap$type$s5 === void 0 ? void 0 : _value$typeMap$type$s5.orderNo, type === 'WLN_REISSUE_GOODS' ? props.orderBackGoodsLevel !== '2' : void 0);
|
|
28877
29769
|
}
|
|
28878
29770
|
return;
|
|
28879
29771
|
}, [value]);
|
|
@@ -28903,27 +29795,30 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28903
29795
|
}, []);
|
|
28904
29796
|
var getOrderList = /*#__PURE__*/function () {
|
|
28905
29797
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(orderNo) {
|
|
28906
|
-
var _typeMap$
|
|
29798
|
+
var _typeMap$type7;
|
|
29799
|
+
var isSplit,
|
|
29800
|
+
_args = arguments;
|
|
28907
29801
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
28908
29802
|
while (1) switch (_context.prev = _context.next) {
|
|
28909
29803
|
case 0:
|
|
28910
|
-
|
|
28911
|
-
|
|
28912
|
-
var
|
|
29804
|
+
isSplit = _args.length > 1 && _args[1] !== undefined ? _args[1] : false;
|
|
29805
|
+
(_typeMap$type7 = typeMap$2[type]) === null || _typeMap$type7 === void 0 ? void 0 : _typeMap$type7.getOrderList(orderNo, isSplit).then(function (data) {
|
|
29806
|
+
var _valueRef$current3, _typeMap$type8, _typeMap$type9, _typeMap$type13, _ref3, _typeMap$type14;
|
|
29807
|
+
var orders = (type === 'WLN_REISSUE_GOODS' ? data === null || data === void 0 ? void 0 : data.orders : data) || [];
|
|
28913
29808
|
var showOrderInfo = orders === null || orders === void 0 ? void 0 : orders.map(function (orderItem) {
|
|
28914
29809
|
return _defineProperty({}, typeMap$2[type].oIdKey, orderItem[typeMap$2[type].oIdKey]);
|
|
28915
29810
|
});
|
|
28916
29811
|
var typeObj = {};
|
|
28917
|
-
var systemOrderNo = valueRef === null || valueRef === void 0 ? void 0 : (_valueRef$current3 = valueRef.current) === null || _valueRef$current3 === void 0 ? void 0 : _valueRef$current3[(_typeMap$
|
|
28918
|
-
if (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28919
|
-
var _typeMap$
|
|
29812
|
+
var systemOrderNo = valueRef === null || valueRef === void 0 ? void 0 : (_valueRef$current3 = valueRef.current) === null || _valueRef$current3 === void 0 ? void 0 : _valueRef$current3[(_typeMap$type8 = typeMap$2[type]) === null || _typeMap$type8 === void 0 ? void 0 : _typeMap$type8.systemOrderNo];
|
|
29813
|
+
if (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type9 = typeMap$2[type]) === null || _typeMap$type9 === void 0 ? void 0 : _typeMap$type9.systemOrderBillType) {
|
|
29814
|
+
var _typeMap$type11, _typeMap$type12;
|
|
28920
29815
|
var targetOrder = orders.find(function (oItem) {
|
|
28921
|
-
var _typeMap$
|
|
28922
|
-
return oItem[(_typeMap$
|
|
29816
|
+
var _typeMap$type10;
|
|
29817
|
+
return oItem[(_typeMap$type10 = typeMap$2[type]) === null || _typeMap$type10 === void 0 ? void 0 : _typeMap$type10.oIdKey] === systemOrderNo;
|
|
28923
29818
|
});
|
|
28924
|
-
typeObj[(_typeMap$
|
|
29819
|
+
typeObj[(_typeMap$type11 = typeMap$2[type]) === null || _typeMap$type11 === void 0 ? void 0 : _typeMap$type11.systemOrderBillType] = targetOrder === null || targetOrder === void 0 ? void 0 : targetOrder[(_typeMap$type12 = typeMap$2[type]) === null || _typeMap$type12 === void 0 ? void 0 : _typeMap$type12.orderTypeKey];
|
|
28925
29820
|
}
|
|
28926
|
-
var newValue = _objectSpread2(_objectSpread2(_objectSpread2({}, valueRef.current || {}), typeObj), {}, _defineProperty({}, (_typeMap$
|
|
29821
|
+
var newValue = _objectSpread2(_objectSpread2(_objectSpread2({}, valueRef.current || {}), typeObj), {}, _defineProperty({}, (_typeMap$type13 = typeMap$2[type]) === null || _typeMap$type13 === void 0 ? void 0 : _typeMap$type13.systemOrder, _objectSpread2(_objectSpread2({}, ((_ref3 = valueRef.current || {}) === null || _ref3 === void 0 ? void 0 : _ref3[(_typeMap$type14 = typeMap$2[type]) === null || _typeMap$type14 === void 0 ? void 0 : _typeMap$type14.systemOrder]) || {}), {}, {
|
|
28927
29822
|
showOrderInfo: showOrderInfo,
|
|
28928
29823
|
orders: orders
|
|
28929
29824
|
})));
|
|
@@ -28931,7 +29826,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28931
29826
|
onChange(newValue);
|
|
28932
29827
|
}
|
|
28933
29828
|
});
|
|
28934
|
-
case
|
|
29829
|
+
case 2:
|
|
28935
29830
|
case "end":
|
|
28936
29831
|
return _context.stop();
|
|
28937
29832
|
}
|
|
@@ -28942,30 +29837,30 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28942
29837
|
};
|
|
28943
29838
|
}();
|
|
28944
29839
|
var changeTypeHandle = function changeTypeHandle(val) {
|
|
28945
|
-
var _typeMap$
|
|
29840
|
+
var _typeMap$type15;
|
|
28946
29841
|
var typeName = val === null || val === void 0 ? void 0 : val[0];
|
|
28947
29842
|
// if (typeName === value?.[typeMap[type]?.typeName]?.[0]) return
|
|
28948
29843
|
// const systemOrderNo = value?.[typeMap[type]?.systemOrderNo];
|
|
28949
29844
|
var newValue = _objectSpread2({}, value);
|
|
28950
|
-
newValue[(_typeMap$
|
|
29845
|
+
newValue[(_typeMap$type15 = typeMap$2[type]) === null || _typeMap$type15 === void 0 ? void 0 : _typeMap$type15.typeName] = val;
|
|
28951
29846
|
if (typeName === '1') {
|
|
28952
|
-
var _typeMap$
|
|
28953
|
-
newValue[(_typeMap$
|
|
29847
|
+
var _typeMap$type16;
|
|
29848
|
+
newValue[(_typeMap$type16 = typeMap$2[type]) === null || _typeMap$type16 === void 0 ? void 0 : _typeMap$type16.key] = getGoodDetails({
|
|
28954
29849
|
mode: isStrict
|
|
28955
29850
|
});
|
|
28956
29851
|
} else if (typeName === '2') {
|
|
28957
|
-
var _typeMap$
|
|
29852
|
+
var _typeMap$type17;
|
|
28958
29853
|
// 切换到非原单,清空列表
|
|
28959
|
-
newValue[(_typeMap$
|
|
29854
|
+
newValue[(_typeMap$type17 = typeMap$2[type]) === null || _typeMap$type17 === void 0 ? void 0 : _typeMap$type17.key] = [];
|
|
28960
29855
|
}
|
|
28961
29856
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
28962
29857
|
};
|
|
28963
29858
|
var handleModeChange = function handleModeChange(mode) {
|
|
28964
|
-
var _value$typeMap$type$t, _typeMap$
|
|
28965
|
-
var isOriginalOrder = (value === null || value === void 0 ? void 0 : (_value$typeMap$type$t = value[(_typeMap$
|
|
29859
|
+
var _value$typeMap$type$t, _typeMap$type18, _typeMap$type19;
|
|
29860
|
+
var isOriginalOrder = (value === null || value === void 0 ? void 0 : (_value$typeMap$type$t = value[(_typeMap$type18 = typeMap$2[type]) === null || _typeMap$type18 === void 0 ? void 0 : _typeMap$type18.typeName]) === null || _value$typeMap$type$t === void 0 ? void 0 : _value$typeMap$type$t[0]) === '1';
|
|
28966
29861
|
setIsStrict(mode);
|
|
28967
29862
|
if (!isOriginalOrder) return;
|
|
28968
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, (_typeMap$
|
|
29863
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, (_typeMap$type19 = typeMap$2[type]) === null || _typeMap$type19 === void 0 ? void 0 : _typeMap$type19.key, getGoodDetails({
|
|
28969
29864
|
mode: mode
|
|
28970
29865
|
}))));
|
|
28971
29866
|
};
|
|
@@ -28982,7 +29877,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28982
29877
|
});
|
|
28983
29878
|
}
|
|
28984
29879
|
return map;
|
|
28985
|
-
}, [value === null || value === void 0 ? void 0 : value[(_typeMap$
|
|
29880
|
+
}, [value === null || value === void 0 ? void 0 : value[(_typeMap$type20 = typeMap$2[type]) === null || _typeMap$type20 === void 0 ? void 0 : _typeMap$type20.key]]);
|
|
28986
29881
|
// 用于跟踪已经处理过的 sysItemId,避免重复处理
|
|
28987
29882
|
var processedSysItemIdsRef = useRef(new Set());
|
|
28988
29883
|
useEffect(function () {
|
|
@@ -29054,13 +29949,13 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
29054
29949
|
}
|
|
29055
29950
|
}, [sysItemIdMap]);
|
|
29056
29951
|
var getGoodDetails = function getGoodDetails(_ref5) {
|
|
29057
|
-
var _typeMap$
|
|
29952
|
+
var _typeMap$type21, _typeMap$type22, _value$typeMap$type$s6, _typeMap$type23, _typeMap$type24, _typeMap$type25, _typeMap$type26;
|
|
29058
29953
|
var mode = _ref5.mode,
|
|
29059
29954
|
sysOrderNo = _ref5.sysOrderNo,
|
|
29060
29955
|
_ref5$isAllOrders = _ref5.isAllOrders,
|
|
29061
29956
|
isAllOrders = _ref5$isAllOrders === void 0 ? false : _ref5$isAllOrders;
|
|
29062
|
-
var systemOrder = value === null || value === void 0 ? void 0 : value[(_typeMap$
|
|
29063
|
-
var systemOrderNo = sysOrderNo !== null && sysOrderNo !== void 0 ? sysOrderNo : value === null || value === void 0 ? void 0 : value[(_typeMap$
|
|
29957
|
+
var systemOrder = value === null || value === void 0 ? void 0 : value[(_typeMap$type21 = typeMap$2[type]) === null || _typeMap$type21 === void 0 ? void 0 : _typeMap$type21.systemOrder];
|
|
29958
|
+
var systemOrderNo = sysOrderNo !== null && sysOrderNo !== void 0 ? sysOrderNo : value === null || value === void 0 ? void 0 : value[(_typeMap$type22 = typeMap$2[type]) === null || _typeMap$type22 === void 0 ? void 0 : _typeMap$type22.systemOrderNo];
|
|
29064
29959
|
var order = systemOrderNo && ((systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orders) || []).find(function (order) {
|
|
29065
29960
|
return order[typeMap$2[type].oIdKey] === systemOrderNo;
|
|
29066
29961
|
});
|
|
@@ -29082,13 +29977,17 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
29082
29977
|
orderRest = {
|
|
29083
29978
|
canEdit: true
|
|
29084
29979
|
};
|
|
29980
|
+
} else if (['WLN_REISSUE_GOODS'].includes(type)) {
|
|
29981
|
+
orderRest = {
|
|
29982
|
+
canEdit: true
|
|
29983
|
+
};
|
|
29085
29984
|
}
|
|
29086
|
-
var orders = isAllOrders ? (value === null || value === void 0 ? void 0 : (_value$typeMap$type$s6 = value[(_typeMap$
|
|
29985
|
+
var orders = isAllOrders ? (value === null || value === void 0 ? void 0 : (_value$typeMap$type$s6 = value[(_typeMap$type23 = typeMap$2[type]) === null || _typeMap$type23 === void 0 ? void 0 : _typeMap$type23.systemOrder]) === null || _value$typeMap$type$s6 === void 0 ? void 0 : _value$typeMap$type$s6.orders) || [] : order ? [order] : [];
|
|
29087
29986
|
var hasGoodDetails = orders === null || orders === void 0 ? void 0 : orders.some(function (order) {
|
|
29088
29987
|
var _order$typeMap$type$g;
|
|
29089
29988
|
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;
|
|
29090
29989
|
});
|
|
29091
|
-
var goodDetails = hasGoodDetails ? (!isAllOrders || ((_typeMap$
|
|
29990
|
+
var goodDetails = hasGoodDetails ? (!isAllOrders || ((_typeMap$type24 = typeMap$2[type]) === null || _typeMap$type24 === void 0 ? void 0 : _typeMap$type24.isSelectTradeGoodsMerge)) && typeMap$2[type].mergeIdenticalGoods ? typeMap$2[type].mergeIdenticalGoods((_typeMap$type25 = typeMap$2[type]) === null || _typeMap$type25 === void 0 ? void 0 : _typeMap$type25.updateGoodsHandle(orders, orderRest, type)) : (_typeMap$type26 = typeMap$2[type]) === null || _typeMap$type26 === void 0 ? void 0 : _typeMap$type26.updateGoodsHandle(orders, orderRest, type) : [];
|
|
29092
29991
|
var orderNo = systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orderNo;
|
|
29093
29992
|
var list = mode && !isAllOrders ? goodDetails.filter(function (goodItem) {
|
|
29094
29993
|
return !orderNo || goodItem[typeMap$2[type].outerOiIdKey] === orderNo;
|
|
@@ -29096,30 +29995,30 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
29096
29995
|
return list;
|
|
29097
29996
|
};
|
|
29098
29997
|
var changeGoodHandle = function changeGoodHandle(val) {
|
|
29099
|
-
var _typeMap$
|
|
29998
|
+
var _typeMap$type27;
|
|
29100
29999
|
var newValue = _objectSpread2({}, value);
|
|
29101
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
30000
|
+
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type27 = typeMap$2[type]) === null || _typeMap$type27 === void 0 ? void 0 : _typeMap$type27.key)] = val || [];
|
|
29102
30001
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
29103
30002
|
};
|
|
29104
30003
|
var changeSystemOrderHandle = function changeSystemOrderHandle(val) {
|
|
29105
|
-
var _typeMap$
|
|
30004
|
+
var _typeMap$type28, _typeMap$type29, _value$typeMap$type$t2, _typeMap$type34, _value$typeMap$type$t3, _typeMap$type36;
|
|
29106
30005
|
var newValue = _objectSpread2({}, value);
|
|
29107
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
29108
|
-
if (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
29109
|
-
var _value$typeMap$type$s7, _typeMap$
|
|
29110
|
-
var orders = (value === null || value === void 0 ? void 0 : (_value$typeMap$type$s7 = value[(_typeMap$
|
|
30006
|
+
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type28 = typeMap$2[type]) === null || _typeMap$type28 === void 0 ? void 0 : _typeMap$type28.systemOrderNo)] = val;
|
|
30007
|
+
if (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type29 = typeMap$2[type]) === null || _typeMap$type29 === void 0 ? void 0 : _typeMap$type29.systemOrderBillType) {
|
|
30008
|
+
var _value$typeMap$type$s7, _typeMap$type30, _typeMap$type32, _typeMap$type33;
|
|
30009
|
+
var orders = (value === null || value === void 0 ? void 0 : (_value$typeMap$type$s7 = value[(_typeMap$type30 = typeMap$2[type]) === null || _typeMap$type30 === void 0 ? void 0 : _typeMap$type30.systemOrder]) === null || _value$typeMap$type$s7 === void 0 ? void 0 : _value$typeMap$type$s7.orders) || [];
|
|
29111
30010
|
var targetOrder = val && orders.find(function (oItem) {
|
|
29112
|
-
var _typeMap$
|
|
29113
|
-
return oItem[(_typeMap$
|
|
30011
|
+
var _typeMap$type31;
|
|
30012
|
+
return oItem[(_typeMap$type31 = typeMap$2[type]) === null || _typeMap$type31 === void 0 ? void 0 : _typeMap$type31.oIdKey] === val;
|
|
29114
30013
|
});
|
|
29115
|
-
newValue[(_typeMap$
|
|
30014
|
+
newValue[(_typeMap$type32 = typeMap$2[type]) === null || _typeMap$type32 === void 0 ? void 0 : _typeMap$type32.systemOrderBillType] = targetOrder === null || targetOrder === void 0 ? void 0 : targetOrder[(_typeMap$type33 = typeMap$2[type]) === null || _typeMap$type33 === void 0 ? void 0 : _typeMap$type33.orderTypeKey];
|
|
29116
30015
|
}
|
|
29117
|
-
if (['2'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t2 = value[(_typeMap$
|
|
29118
|
-
var _typeMap$type33;
|
|
29119
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type33 = typeMap$2[type]) === null || _typeMap$type33 === void 0 ? void 0 : _typeMap$type33.key)] = [];
|
|
29120
|
-
} else if (['1'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t3 = value[(_typeMap$type34 = typeMap$2[type]) === null || _typeMap$type34 === void 0 ? void 0 : _typeMap$type34.typeName]) === null || _value$typeMap$type$t3 === void 0 ? void 0 : _value$typeMap$type$t3[0])) {
|
|
30016
|
+
if (['2'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t2 = value[(_typeMap$type34 = typeMap$2[type]) === null || _typeMap$type34 === void 0 ? void 0 : _typeMap$type34.typeName]) === null || _value$typeMap$type$t2 === void 0 ? void 0 : _value$typeMap$type$t2[0])) {
|
|
29121
30017
|
var _typeMap$type35;
|
|
29122
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type35 = typeMap$2[type]) === null || _typeMap$type35 === void 0 ? void 0 : _typeMap$type35.key)] =
|
|
30018
|
+
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type35 = typeMap$2[type]) === null || _typeMap$type35 === void 0 ? void 0 : _typeMap$type35.key)] = [];
|
|
30019
|
+
} else if (['1'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t3 = value[(_typeMap$type36 = typeMap$2[type]) === null || _typeMap$type36 === void 0 ? void 0 : _typeMap$type36.typeName]) === null || _value$typeMap$type$t3 === void 0 ? void 0 : _value$typeMap$type$t3[0])) {
|
|
30020
|
+
var _typeMap$type37;
|
|
30021
|
+
newValue["".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)] = getGoodDetails({
|
|
29123
30022
|
mode: isStrict,
|
|
29124
30023
|
sysOrderNo: val
|
|
29125
30024
|
});
|
|
@@ -29127,27 +30026,27 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
29127
30026
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue, 'systemOrder');
|
|
29128
30027
|
};
|
|
29129
30028
|
//显示选择商品按钮
|
|
29130
|
-
var showChangeBtn = !!(value === null || value === void 0 ? void 0 : value[(_typeMap$
|
|
30029
|
+
var showChangeBtn = !!(value === null || value === void 0 ? void 0 : value[(_typeMap$type38 = typeMap$2[type]) === null || _typeMap$type38 === void 0 ? void 0 : _typeMap$type38.systemOrderNo]);
|
|
29131
30030
|
var selectedGoodsChange = useCallback(function (skuList) {
|
|
29132
|
-
var _typeMap$
|
|
30031
|
+
var _typeMap$type39, _typeMap$type40, _typeMap$type41, _uniqBy, _typeMap$type42;
|
|
29133
30032
|
var newValue = _objectSpread2({}, value);
|
|
29134
30033
|
// 原订单商品
|
|
29135
30034
|
var originTradeGoodList = getGoodDetails({
|
|
29136
30035
|
mode: isStrict,
|
|
29137
|
-
isAllOrders: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
30036
|
+
isAllOrders: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type39 = typeMap$2[type]) === null || _typeMap$type39 === void 0 ? void 0 : _typeMap$type39.isShowSelectTradeGoods
|
|
29138
30037
|
}) || [];
|
|
29139
30038
|
// 当前选中的所有商品【包含了原订单+商品库】
|
|
29140
|
-
var currentSelectGoodList = (value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
29141
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
29142
|
-
var _typeMap$
|
|
29143
|
-
return skuList.includes(item[(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
30039
|
+
var currentSelectGoodList = (value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type40 = typeMap$2[type]) === null || _typeMap$type40 === void 0 ? void 0 : _typeMap$type40.key)]) || [];
|
|
30040
|
+
newValue["".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)] = (_uniqBy = uniqBy(originTradeGoodList.concat(currentSelectGoodList), (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type42 = typeMap$2[type]) === null || _typeMap$type42 === void 0 ? void 0 : _typeMap$type42.uniqueKey) || 'uuid')) === null || _uniqBy === void 0 ? void 0 : _uniqBy.filter(function (item) {
|
|
30041
|
+
var _typeMap$type43;
|
|
30042
|
+
return skuList.includes(item[(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type43 = typeMap$2[type]) === null || _typeMap$type43 === void 0 ? void 0 : _typeMap$type43.uniqueKey) || 'uuid']);
|
|
29144
30043
|
});
|
|
29145
30044
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
29146
|
-
}, [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
30045
|
+
}, [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type44 = typeMap$2[type]) === null || _typeMap$type44 === void 0 ? void 0 : _typeMap$type44.key)], isStrict]);
|
|
29147
30046
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Row, {
|
|
29148
30047
|
gutter: 8,
|
|
29149
30048
|
wrap: true,
|
|
29150
|
-
id: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
30049
|
+
id: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type45 = typeMap$2[type]) === null || _typeMap$type45 === void 0 ? void 0 : _typeMap$type45.key) || "".concat(Date.now())
|
|
29151
30050
|
}, /*#__PURE__*/React.createElement(Col, {
|
|
29152
30051
|
className: "gutter-row",
|
|
29153
30052
|
xs: {
|
|
@@ -29163,12 +30062,12 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
29163
30062
|
},
|
|
29164
30063
|
disabled: disabled,
|
|
29165
30064
|
allowClear: false,
|
|
29166
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
30065
|
+
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.systemOrderNo)],
|
|
29167
30066
|
onChange: function onChange(val) {
|
|
29168
30067
|
return changeSystemOrderHandle(val);
|
|
29169
30068
|
},
|
|
29170
|
-
placeholder: "\u9009\u62E9".concat((typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
29171
|
-
}, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s8 = value[(_typeMap$
|
|
30069
|
+
placeholder: "\u9009\u62E9".concat((typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type47 = typeMap$2[type]) === null || _typeMap$type47 === void 0 ? void 0 : _typeMap$type47.compType) || '', "\u7CFB\u7EDF\u5355")
|
|
30070
|
+
}, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s8 = value[(_typeMap$type48 = typeMap$2[type]) === null || _typeMap$type48 === void 0 ? void 0 : _typeMap$type48.systemOrder]) === null || _value$typeMap$type$s8 === void 0 ? void 0 : _value$typeMap$type$s8.showOrderInfo) || []).map(function (item) {
|
|
29172
30071
|
return /*#__PURE__*/React.createElement(Select.Option, {
|
|
29173
30072
|
key: item[typeMap$2[type].oIdKey],
|
|
29174
30073
|
value: item[typeMap$2[type].oIdKey],
|
|
@@ -29190,11 +30089,11 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
29190
30089
|
disabled: isSettingConfig ? !isSettingConfig : disabled,
|
|
29191
30090
|
allowClear: false,
|
|
29192
30091
|
options: reasonList,
|
|
29193
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
30092
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type49 = typeMap$2[type]) === null || _typeMap$type49 === void 0 ? void 0 : _typeMap$type49.typeName)],
|
|
29194
30093
|
onChange: function onChange(val) {
|
|
29195
30094
|
return changeTypeHandle(val);
|
|
29196
30095
|
}
|
|
29197
|
-
})), (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
30096
|
+
})), (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type50 = typeMap$2[type]) === null || _typeMap$type50 === void 0 ? void 0 : _typeMap$type50.systemOrderBillType) && !isSettingConfig && /*#__PURE__*/React.createElement(Col, {
|
|
29198
30097
|
className: "gutter-row",
|
|
29199
30098
|
xs: {
|
|
29200
30099
|
span: 11
|
|
@@ -29203,7 +30102,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
29203
30102
|
span: 6
|
|
29204
30103
|
}
|
|
29205
30104
|
}, /*#__PURE__*/React.createElement(Input, {
|
|
29206
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
30105
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type51 = typeMap$2[type]) === null || _typeMap$type51 === void 0 ? void 0 : _typeMap$type51.systemOrderBillType)],
|
|
29207
30106
|
disabled: disabled,
|
|
29208
30107
|
readOnly: true
|
|
29209
30108
|
}))), /*#__PURE__*/React.createElement(GoodItem$1, _objectSpread2(_objectSpread2({
|
|
@@ -29214,25 +30113,25 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
29214
30113
|
canUpdateNumber: showChangeBtn,
|
|
29215
30114
|
hasSelectedSystemOrder: showChangeBtn,
|
|
29216
30115
|
// showChangeBtn={showChangeBtn || typeMap?.[type]?.isShowSelectTradeGoods}
|
|
29217
|
-
alwaysShowChooseErpGoodsBtn: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
29218
|
-
showErpGoodsBtn: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
30116
|
+
alwaysShowChooseErpGoodsBtn: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type52 = typeMap$2[type]) === null || _typeMap$type52 === void 0 ? void 0 : _typeMap$type52.alwaysShowChooseErpGoodsBtn,
|
|
30117
|
+
showErpGoodsBtn: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type53 = typeMap$2[type]) === null || _typeMap$type53 === void 0 ? void 0 : _typeMap$type53.showErpGoodsBtn,
|
|
29219
30118
|
shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
|
|
29220
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
30119
|
+
value: 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.key)],
|
|
29221
30120
|
onChange: function onChange(val) {
|
|
29222
30121
|
return changeGoodHandle(val);
|
|
29223
30122
|
},
|
|
29224
30123
|
onModeChange: handleModeChange,
|
|
29225
|
-
showModeBtn:
|
|
30124
|
+
showModeBtn: showModeBtn,
|
|
29226
30125
|
isStrict: isStrict,
|
|
29227
|
-
isShowSelectTradeGoods: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
29228
|
-
systemOrders: value === null || value === void 0 ? void 0 : (_value$typeMap$type$s9 = value[(_typeMap$
|
|
29229
|
-
selectedSystemOrders: showChangeBtn ? [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
30126
|
+
isShowSelectTradeGoods: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type55 = typeMap$2[type]) === null || _typeMap$type55 === void 0 ? void 0 : _typeMap$type55.isShowSelectTradeGoods,
|
|
30127
|
+
systemOrders: value === null || value === void 0 ? void 0 : (_value$typeMap$type$s9 = value[(_typeMap$type56 = typeMap$2[type]) === null || _typeMap$type56 === void 0 ? void 0 : _typeMap$type56.systemOrder]) === null || _value$typeMap$type$s9 === void 0 ? void 0 : _value$typeMap$type$s9.orders,
|
|
30128
|
+
selectedSystemOrders: showChangeBtn ? [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type57 = typeMap$2[type]) === null || _typeMap$type57 === void 0 ? void 0 : _typeMap$type57.systemOrderNo)]] : [],
|
|
29230
30129
|
tradeGoods: {
|
|
29231
30130
|
originDataSource: getGoodDetails({
|
|
29232
30131
|
mode: isStrict,
|
|
29233
|
-
isAllOrders: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
30132
|
+
isAllOrders: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type58 = typeMap$2[type]) === null || _typeMap$type58 === void 0 ? void 0 : _typeMap$type58.isShowSelectTradeGoods
|
|
29234
30133
|
}),
|
|
29235
|
-
uniqueKey: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
30134
|
+
uniqueKey: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type59 = typeMap$2[type]) === null || _typeMap$type59 === void 0 ? void 0 : _typeMap$type59.uniqueKey) || 'uuid',
|
|
29236
30135
|
selectedGoodsChange: selectedGoodsChange
|
|
29237
30136
|
}
|
|
29238
30137
|
})));
|
|
@@ -29600,7 +30499,7 @@ var GoodsModal$5 = function GoodsModal(props) {
|
|
|
29600
30499
|
key: item.value
|
|
29601
30500
|
}, item.label);
|
|
29602
30501
|
})), /*#__PURE__*/React.createElement(Search$1, {
|
|
29603
|
-
placeholder: "\u5B9D\u8D1D\
|
|
30502
|
+
placeholder: "\u5B9D\u8D1D\u6807\u9898",
|
|
29604
30503
|
allowClear: true,
|
|
29605
30504
|
enterButton: "\u641C\u7D22",
|
|
29606
30505
|
style: {
|