@kmkf-fe-packages/basic-components 2.2.44-beta.73 → 2.2.44-beta.76
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 +602 -88
- package/dist/index.js +602 -88
- package/dist/src/bs/component/GoodItem/constants/bsE3ReissueGoodsColumns.d.ts +1 -1
- package/dist/src/bs/component/GoodItem/constants/wdtReissueGoodsColumns.d.ts +2 -2
- package/dist/src/constants/columnsBaseInfoMap.d.ts +2 -2
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -8701,6 +8701,21 @@ var processErpSendGood = function processErpSendGood(getValue) {
|
|
|
8701
8701
|
return _defineProperty({}, nex.uniqueKey, (itemList === null || itemList === void 0 ? void 0 : itemList.length) ? itemList : initValue);
|
|
8702
8702
|
};
|
|
8703
8703
|
};
|
|
8704
|
+
var processErpReturnWarehouse = function processErpReturnWarehouse(getValue) {
|
|
8705
|
+
return function (nex, config) {
|
|
8706
|
+
var kmReturnWarehouseMap = {
|
|
8707
|
+
KM_RETURN_WAREHOUSE: {
|
|
8708
|
+
list: 'kmReturnWarehouse'
|
|
8709
|
+
}
|
|
8710
|
+
};
|
|
8711
|
+
var initValue = [{
|
|
8712
|
+
kmReturnWarehouseName: '',
|
|
8713
|
+
kmReturnWarehouseId: ''
|
|
8714
|
+
}];
|
|
8715
|
+
var itemList = jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_").concat(kmReturnWarehouseMap[nex.workOrderComponentType].list)), initValue);
|
|
8716
|
+
return _defineProperty({}, nex.uniqueKey, (itemList === null || itemList === void 0 ? void 0 : itemList.length) ? itemList : initValue);
|
|
8717
|
+
};
|
|
8718
|
+
};
|
|
8704
8719
|
var processBsPosting = function processBsPosting(getValue) {
|
|
8705
8720
|
return function (nex, config) {
|
|
8706
8721
|
var bsAddress = [transTextToNumber(getValue("".concat(nex.uniqueKey, "_bsPostingProvince"))), transTextToNumber(getValue("".concat(nex.uniqueKey, "_bsPostingCity")))];
|
|
@@ -9000,6 +9015,14 @@ var processWdtExchangeGoods = function processWdtExchangeGoods(getValue) {
|
|
|
9000
9015
|
});
|
|
9001
9016
|
};
|
|
9002
9017
|
};
|
|
9018
|
+
var processKmExchangeGoods = function processKmExchangeGoods(getValue) {
|
|
9019
|
+
return function (nex, config) {
|
|
9020
|
+
return _defineProperty({}, nex.uniqueKey, {
|
|
9021
|
+
kmExchangeGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_kmExchangeGoods")), []),
|
|
9022
|
+
shopCode: getValue("".concat(nex.uniqueKey, "_shopCode"))
|
|
9023
|
+
});
|
|
9024
|
+
};
|
|
9025
|
+
};
|
|
9003
9026
|
var processJstExchangeGoods = function processJstExchangeGoods(getValue) {
|
|
9004
9027
|
return function (nex, config) {
|
|
9005
9028
|
return _defineProperty({}, nex.uniqueKey, {
|
|
@@ -9216,6 +9239,28 @@ var processKmReissueGoods = function processKmReissueGoods(templateColumns) {
|
|
|
9216
9239
|
};
|
|
9217
9240
|
};
|
|
9218
9241
|
};
|
|
9242
|
+
var processKmReturnGoods = function processKmReturnGoods(templateColumns) {
|
|
9243
|
+
return function (getValue) {
|
|
9244
|
+
return function (nex, config) {
|
|
9245
|
+
var orderNo = '';
|
|
9246
|
+
var tradeId = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
|
|
9247
|
+
return col.workOrderComponentType === 'TRADE_ID_INPUT';
|
|
9248
|
+
});
|
|
9249
|
+
if (tradeId) {
|
|
9250
|
+
orderNo = getValue("".concat(tradeId.uniqueKey, "_").concat(updateWorkTypeKeys[tradeId.workOrderComponentType]));
|
|
9251
|
+
}
|
|
9252
|
+
return _defineProperty({}, nex.uniqueKey, {
|
|
9253
|
+
kmSystemOrder: {
|
|
9254
|
+
orderNo: orderNo
|
|
9255
|
+
},
|
|
9256
|
+
kmReturnType: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_kmReturnType")), !kmkfUtils.isNull(config === null || config === void 0 ? void 0 : config.initReason) ? [config.initReason] : ['1']),
|
|
9257
|
+
kmReturnGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_kmReturnGoods")), []),
|
|
9258
|
+
shopCode: getValue("".concat(nex.uniqueKey, "_shopCode")),
|
|
9259
|
+
kmSystemOrderNo: getValue("".concat(nex.uniqueKey, "_kmSystemOrderNo"))
|
|
9260
|
+
});
|
|
9261
|
+
};
|
|
9262
|
+
};
|
|
9263
|
+
};
|
|
9219
9264
|
var processGyReissueGoods = function processGyReissueGoods(templateColumns) {
|
|
9220
9265
|
return function (getValue) {
|
|
9221
9266
|
return function (nex, config) {
|
|
@@ -9309,14 +9354,14 @@ var processJstReturnGoods = function processJstReturnGoods(templateColumns) {
|
|
|
9309
9354
|
};
|
|
9310
9355
|
var processLabel = function processLabel(getValue) {
|
|
9311
9356
|
return function (nex, config) {
|
|
9312
|
-
var
|
|
9313
|
-
return
|
|
9357
|
+
var _ref77;
|
|
9358
|
+
return _ref77 = {}, _defineProperty(_ref77, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_label")), [])), _defineProperty(_ref77, "".concat(nex.uniqueKey, "_label"), jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_label")), [])), _ref77;
|
|
9314
9359
|
};
|
|
9315
9360
|
};
|
|
9316
9361
|
var processMemberLevel = function processMemberLevel(getValue) {
|
|
9317
9362
|
return function (nex, config) {
|
|
9318
|
-
var
|
|
9319
|
-
return
|
|
9363
|
+
var _ref78;
|
|
9364
|
+
return _ref78 = {}, _defineProperty(_ref78, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_memberLevel")), [])), _defineProperty(_ref78, "".concat(nex.uniqueKey, "_memberLevel"), jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_memberLevel")), [])), _ref78;
|
|
9320
9365
|
};
|
|
9321
9366
|
};
|
|
9322
9367
|
var processAfterSalesOrderId = function processAfterSalesOrderId(getValue) {
|
|
@@ -9433,6 +9478,7 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
|
|
|
9433
9478
|
BS_E3_SEND_GOOD: processErpSendGood,
|
|
9434
9479
|
KM_SEND_GOOD: processErpSendGood,
|
|
9435
9480
|
GY_SEND_GOOD: processErpSendGood,
|
|
9481
|
+
KM_RETURN_WAREHOUSE: processErpReturnWarehouse,
|
|
9436
9482
|
BS_POSTING: processBsPosting,
|
|
9437
9483
|
BS_GOODS: processBsGoods,
|
|
9438
9484
|
WDT_GOODS: processWdtGoods(templateColumns),
|
|
@@ -9443,10 +9489,12 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
|
|
|
9443
9489
|
GY_GOODS: processGyGoods(templateColumns),
|
|
9444
9490
|
KM_GOODS: processKmGoods(templateColumns),
|
|
9445
9491
|
KM_REISSUE_GOODS: processKmReissueGoods(templateColumns),
|
|
9492
|
+
KM_RETURN_GOODS: processKmReturnGoods(templateColumns),
|
|
9446
9493
|
JST_GOODS: processJstGoods(templateColumns),
|
|
9447
9494
|
BS_REISSUE_GOODS: processBsReissueGoods,
|
|
9448
9495
|
BS_EXCHANGE_GOODS: processBsExchangeGoods,
|
|
9449
9496
|
WDT_EXCHANGE_GOODS: processWdtExchangeGoods,
|
|
9497
|
+
KM_EXCHANGE_GOODS: processKmExchangeGoods,
|
|
9450
9498
|
JST_EXCHANGE_GOODS: processJstExchangeGoods,
|
|
9451
9499
|
BS_RETURN_GOODS: processBsReturnGoods,
|
|
9452
9500
|
WDT_RETURN_GOODS: processWdtReturnGoods(),
|
|
@@ -14037,10 +14085,14 @@ var typeInitValueMap = {
|
|
|
14037
14085
|
}],
|
|
14038
14086
|
4: [{
|
|
14039
14087
|
deliveryNo: null
|
|
14088
|
+
}],
|
|
14089
|
+
5: [{
|
|
14090
|
+
returnWarehouseName: null,
|
|
14091
|
+
returnWarehouseId: null
|
|
14040
14092
|
}]
|
|
14041
14093
|
};
|
|
14042
14094
|
var jstGoods = function jstGoods(props) {
|
|
14043
|
-
var _value$changeIndex, _value$changeIndex2, _value$changeIndex3, _value$changeIndex4, _value$changeIndex5, _value$changeIndex6, _value$changeIndex7, _value$changeIndex8, _value$changeIndex9, _value$changeIndex10, _value$changeIndex11, _value$changeIndex12, _value$changeIndex13;
|
|
14095
|
+
var _value$changeIndex, _value$changeIndex2, _value$changeIndex3, _value$changeIndex4, _value$changeIndex5, _value$changeIndex6, _value$changeIndex7, _value$changeIndex8, _value$changeIndex9, _value$changeIndex10, _value$changeIndex11, _value$changeIndex12, _value$changeIndex13, _value$changeIndex14, _value$changeIndex15, _value$changeIndex16, _value$changeIndex17;
|
|
14044
14096
|
var _props$value = props.value,
|
|
14045
14097
|
value = _props$value === void 0 ? [] : _props$value,
|
|
14046
14098
|
onChange = props.onChange,
|
|
@@ -14113,6 +14165,21 @@ var jstGoods = function jstGoods(props) {
|
|
|
14113
14165
|
newList[changeIndex] = changeOrderInfo;
|
|
14114
14166
|
onChange === null || onChange === void 0 ? void 0 : onChange(newList);
|
|
14115
14167
|
};
|
|
14168
|
+
var handleSelectedReturn = function handleSelectedReturn(val, type, option, onlyShowFieldSelect) {
|
|
14169
|
+
var changeOrderInfo = _objectSpread2({}, value[changeIndex]);
|
|
14170
|
+
changeOrderInfo[type] = val;
|
|
14171
|
+
if (!onlyShowFieldSelect) {
|
|
14172
|
+
changeOrderInfo['returnWarehouseId'] = option.value;
|
|
14173
|
+
}
|
|
14174
|
+
if (isSelectName && type === 'returnWarehouseName') {
|
|
14175
|
+
// 如果发货仓名称存的是name,将id存入快照,同时把id替换成名称
|
|
14176
|
+
changeOrderInfo['sendSnapshotId'] = option.value;
|
|
14177
|
+
changeOrderInfo['returnWarehouseName'] = option.label;
|
|
14178
|
+
}
|
|
14179
|
+
var newList = _toConsumableArray(value);
|
|
14180
|
+
newList[changeIndex] = changeOrderInfo;
|
|
14181
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(newList);
|
|
14182
|
+
};
|
|
14116
14183
|
var filterOption = function filterOption(input, option) {
|
|
14117
14184
|
var _option$label;
|
|
14118
14185
|
return ((_option$label = option === null || option === void 0 ? void 0 : option.label) !== null && _option$label !== void 0 ? _option$label : '').includes(input);
|
|
@@ -14227,7 +14294,35 @@ var jstGoods = function jstGoods(props) {
|
|
|
14227
14294
|
return changeInputHandle(e.target.value, 'deliveryNo');
|
|
14228
14295
|
},
|
|
14229
14296
|
value: (_value$changeIndex13 = value[changeIndex]) === null || _value$changeIndex13 === void 0 ? void 0 : _value$changeIndex13.sendName
|
|
14230
|
-
})) : null
|
|
14297
|
+
})) : null, type === 5 ? /*#__PURE__*/React__default['default'].createElement(antd.Space, null, ['returnWarehouseId', 'all'].includes(showField) && /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
14298
|
+
disabled: disabled,
|
|
14299
|
+
placeholder: "\u8BF7\u8F93\u5165\u9000\u8D27\u4ED3\u7F16\u7801",
|
|
14300
|
+
onChange: function onChange(e) {
|
|
14301
|
+
return changeInputHandle(e.target.value, 'returnWarehouseId');
|
|
14302
|
+
},
|
|
14303
|
+
value: (_value$changeIndex14 = value[changeIndex]) === null || _value$changeIndex14 === void 0 ? void 0 : _value$changeIndex14.returnWarehouseId
|
|
14304
|
+
}), ['returnWarehouseName', 'all'].includes(showField) && (isSelectName ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
14305
|
+
style: {
|
|
14306
|
+
minWidth: '100px',
|
|
14307
|
+
maxWidth: '180px'
|
|
14308
|
+
},
|
|
14309
|
+
disabled: disabled,
|
|
14310
|
+
placeholder: "\u9000\u8D27\u4ED3\u540D\u79F0",
|
|
14311
|
+
showSearch: true,
|
|
14312
|
+
options: sendOptions,
|
|
14313
|
+
filterOption: filterOption,
|
|
14314
|
+
value: ((_value$changeIndex15 = value[changeIndex]) === null || _value$changeIndex15 === void 0 ? void 0 : _value$changeIndex15.sendSnapshotId) || ((_value$changeIndex16 = value[changeIndex]) === null || _value$changeIndex16 === void 0 ? void 0 : _value$changeIndex16.returnWarehouseName) || null,
|
|
14315
|
+
onChange: function onChange(value, option) {
|
|
14316
|
+
return handleSelectedReturn(value, 'returnWarehouseName', option, onlyShowFieldSelect);
|
|
14317
|
+
}
|
|
14318
|
+
}) : /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
14319
|
+
disabled: disabled,
|
|
14320
|
+
placeholder: "\u8BF7\u8F93\u5165\u9000\u8D27\u4ED3\u540D\u79F0",
|
|
14321
|
+
onChange: function onChange(e) {
|
|
14322
|
+
return changeInputHandle(e.target.value, 'returnWarehouseName');
|
|
14323
|
+
},
|
|
14324
|
+
value: (_value$changeIndex17 = value[changeIndex]) === null || _value$changeIndex17 === void 0 ? void 0 : _value$changeIndex17.returnWarehouseName
|
|
14325
|
+
}))) : null) : null);
|
|
14231
14326
|
};
|
|
14232
14327
|
|
|
14233
14328
|
var css_248z$a = ".jstGoodsBox {\n display: flex;\n flex-wrap: wrap;\n}\n.jstGoodsBox .goodBox-Img {\n width: 80px;\n margin: 0 10px 10px 0;\n}\n.jstGoodsBox .right-context {\n font-size: 12px;\n}\n.jstGoodsBox .right-context .ant-input {\n font-size: 12px;\n width: 80px;\n height: 20px;\n padding-left: 5px;\n padding-right: 5px;\n}\n.jstGoodsBox .right-context .ant-input.id-textarea {\n width: 80px;\n resize: none;\n height: 45px;\n}\n.jstGoodsBox.goodsBox-item-horizontal--box {\n flex-direction: row;\n width: auto;\n}\n.jstimgBox {\n position: relative;\n width: 80px;\n height: 80px;\n border-radius: 4px;\n border: 1px solid #f2f3f5;\n margin: 0 10px 10px 0;\n text-align: center;\n background-color: #f2f3f5;\n display: flex;\n justify-items: center;\n align-items: center;\n}\n.jstimgBox .add-btn {\n color: #86909c;\n}\n.jstimgBox .text {\n color: #86909c;\n}\n.icon-close {\n position: absolute;\n top: -5px;\n right: -5px;\n width: 13px;\n height: 13px;\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: 50%;\n z-index: 3;\n background-color: #fff;\n cursor: pointer;\n}\n.img {\n width: 100%;\n height: 100%;\n -o-object-fit: contain;\n object-fit: contain;\n}\n.goods-title {\n margin: 0 0 10px 5px;\n color: #4e5969;\n}\n.searchBox {\n display: flex;\n justify-content: space-between;\n flex-wrap: wrap;\n margin-bottom: 10px;\n}\n.searchBox .search {\n width: 150px;\n margin-left: 6px;\n}\n.deg90 {\n transform: rotate(90deg);\n}\n.goodsMain {\n display: flex;\n flex-wrap: wrap;\n height: 400px;\n overflow-y: auto;\n margin-bottom: 10px;\n}\n.goodsMain .goodItem {\n width: 142px;\n height: 184px;\n padding: 7px;\n margin: 0 16px 16px 0;\n border-radius: 4px;\n background: #ffffff;\n box-sizing: border-box;\n /* 主题色/常规 */\n border: 1px solid #c9cdd4;\n}\n.goodsMain .goodItem .goodImg {\n width: 128px;\n height: 128px;\n border-radius: 4px;\n overflow: hidden;\n}\n.goodsMain .goodItem .goodImg img {\n width: 100%;\n height: 100%;\n -o-object-fit: contain;\n object-fit: contain;\n}\n.goodsMain .goodItem .goodText {\n text-align: center;\n font-size: 12px;\n color: #4e5969;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.goodsMain .goodItem .goodPrice {\n text-align: center;\n font-size: 14px;\n color: #1d2129;\n}\n.goodsMain .goodItem.active {\n border: 1px solid #1b5bf3;\n}\n@media screen and (max-width: 500px) {\n .goodsMain {\n display: grid;\n grid-template-columns: repeat(3, 1fr);\n grid-gap: 8px;\n height: 300px;\n }\n .goodsMain .goodItem {\n height: 126px;\n width: 83px;\n padding: 4px;\n margin: 0;\n border-radius: 4px;\n background: #FFFFFF;\n box-sizing: border-box;\n border: 1px solid rgba(0, 0, 0, 0.15);\n }\n .goodsMain .goodItem .goodImg {\n width: 98%;\n height: 77px;\n }\n .goodsMain .goodItem .goodText {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .goodsMain .goodItem.active {\n border: 1px solid #3089dc;\n }\n .searchBox {\n display: flex;\n flex-wrap: wrap;\n justify-content: initial;\n }\n .searchBox .classify {\n width: 120px;\n }\n .goodModal .ant-modal-body {\n padding: 8px;\n }\n}\n.goods-uploaded-count {\n color: #ff3638;\n}\n.footer {\n display: flex;\n justify-content: flex-end;\n}\n.right-context {\n display: flex;\n flex-direction: column;\n}\n.right-context .info-row {\n width: 80px;\n display: flex;\n align-items: center;\n padding: 0px 8px;\n border-radius: 2px;\n cursor: pointer;\n background: #f2f3f5;\n margin-bottom: 4px;\n}\n.right-context .info-row > div {\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 2;\n overflow: hidden;\n word-break: break-all;\n}\n.sphPagination {\n display: flex;\n align-items: center;\n}\n.sphPagination .shpBtn {\n display: flex;\n justify-content: center;\n align-items: center;\n padding: 0 8px;\n height: 32px;\n border: 1px solid #d9d9d9;\n border-radius: 2px;\n cursor: pointer;\n margin: 0 8px;\n}\n.sphPagination .shpBtn.unCursor {\n color: #eee;\n cursor: not-allowed;\n}\n";
|
|
@@ -21725,16 +21820,28 @@ function toNum$3(value) {
|
|
|
21725
21820
|
}
|
|
21726
21821
|
return void 0;
|
|
21727
21822
|
}
|
|
21728
|
-
var
|
|
21729
|
-
|
|
21823
|
+
var isNumberOrNumberString$2 = function isNumberOrNumberString(value) {
|
|
21824
|
+
if (typeof value === 'number') return true;
|
|
21825
|
+
if (typeof value === 'string' && !isNaN(Number(value)) && value.trim() !== '') return true;
|
|
21826
|
+
return false;
|
|
21827
|
+
};
|
|
21828
|
+
var getColumns$6 = function getColumns() {
|
|
21829
|
+
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
21830
|
+
_ref$text = _ref.text,
|
|
21730
21831
|
disabled = _ref.disabled,
|
|
21731
|
-
updateHandle = _ref.updateHandle
|
|
21832
|
+
updateHandle = _ref.updateHandle,
|
|
21833
|
+
updateDataHandle = _ref.updateDataHandle;
|
|
21732
21834
|
return {
|
|
21733
21835
|
KM_GOODS: [{
|
|
21734
21836
|
dataIndex: 'skuPropertiesName',
|
|
21735
21837
|
title: "\u89C4\u683C\u540D\u79F0",
|
|
21736
21838
|
width: 250,
|
|
21737
21839
|
render: renderTextEllipsis
|
|
21840
|
+
}, {
|
|
21841
|
+
dataIndex: 'sysSkuPropertiesName',
|
|
21842
|
+
title: "\u7CFB\u7EDF\u89C4\u683C\u540D\u79F0",
|
|
21843
|
+
width: 150,
|
|
21844
|
+
render: renderTextEllipsis
|
|
21738
21845
|
}, {
|
|
21739
21846
|
dataIndex: 'sysTitle',
|
|
21740
21847
|
title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
|
|
@@ -21858,6 +21965,11 @@ var getColumns$6 = function getColumns(_ref) {
|
|
|
21858
21965
|
title: "\u89C4\u683C\u540D\u79F0",
|
|
21859
21966
|
width: 250,
|
|
21860
21967
|
render: renderTextEllipsis
|
|
21968
|
+
}, {
|
|
21969
|
+
dataIndex: 'sysSkuPropertiesName',
|
|
21970
|
+
title: "\u7CFB\u7EDF\u89C4\u683C\u540D\u79F0",
|
|
21971
|
+
width: 150,
|
|
21972
|
+
render: renderTextEllipsis
|
|
21861
21973
|
}, {
|
|
21862
21974
|
dataIndex: 'sysTitle',
|
|
21863
21975
|
title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
|
|
@@ -21902,7 +22014,9 @@ var getColumns$6 = function getColumns(_ref) {
|
|
|
21902
22014
|
dataIndex: 'realNum',
|
|
21903
22015
|
title: "\u5B9E\u9645\u8865\u53D1\u6570\u91CF",
|
|
21904
22016
|
width: 100,
|
|
21905
|
-
validator: function validator(_rule, value) {
|
|
22017
|
+
validator: function validator(_rule, value, extraParams) {
|
|
22018
|
+
console.log('实际补发数量-extraParams', extraParams);
|
|
22019
|
+
if (!(extraParams === null || extraParams === void 0 ? void 0 : extraParams.quantityVerify)) return undefined;
|
|
21906
22020
|
var title = '';
|
|
21907
22021
|
if (((value === null || value === void 0 ? void 0 : value.kmReissueGoods) || []).some(function (goods) {
|
|
21908
22022
|
var realNum = toNum$3(goods === null || goods === void 0 ? void 0 : goods.realNum);
|
|
@@ -21930,8 +22044,21 @@ var getColumns$6 = function getColumns(_ref) {
|
|
|
21930
22044
|
}
|
|
21931
22045
|
}, {
|
|
21932
22046
|
dataIndex: 'desiredNum',
|
|
21933
|
-
title: "\
|
|
22047
|
+
title: "\u7533\u8BF7\u8865\u53D1\u6570\u91CF",
|
|
21934
22048
|
width: 100,
|
|
22049
|
+
validator: function validator(_rule, value) {
|
|
22050
|
+
var title = '';
|
|
22051
|
+
if (((value === null || value === void 0 ? void 0 : value.kmReissueGoods) || []).some(function (goods) {
|
|
22052
|
+
var desiredNum = toNum$3(goods === null || goods === void 0 ? void 0 : goods.desiredNum);
|
|
22053
|
+
var res = typeof desiredNum === 'number' ? desiredNum < 1 : true;
|
|
22054
|
+
if (res) {
|
|
22055
|
+
title = (goods === null || goods === void 0 ? void 0 : goods.goodName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodName, "]") : '';
|
|
22056
|
+
}
|
|
22057
|
+
return res;
|
|
22058
|
+
})) {
|
|
22059
|
+
return Promise.reject("".concat(title, "\u7533\u8BF7\u8865\u53D1\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
|
|
22060
|
+
}
|
|
22061
|
+
},
|
|
21935
22062
|
render: function render(val, record, index) {
|
|
21936
22063
|
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
21937
22064
|
style: {
|
|
@@ -22000,11 +22127,336 @@ var getColumns$6 = function getColumns(_ref) {
|
|
|
22000
22127
|
align: 'center',
|
|
22001
22128
|
ellipsis: true
|
|
22002
22129
|
});
|
|
22130
|
+
}),
|
|
22131
|
+
KM_RETURN_GOODS: [{
|
|
22132
|
+
dataIndex: 'skuPropertiesName',
|
|
22133
|
+
title: "\u89C4\u683C\u540D\u79F0",
|
|
22134
|
+
width: 250,
|
|
22135
|
+
render: renderTextEllipsis
|
|
22136
|
+
}, {
|
|
22137
|
+
dataIndex: 'sysSkuPropertiesName',
|
|
22138
|
+
title: "\u7CFB\u7EDF\u89C4\u683C\u540D\u79F0",
|
|
22139
|
+
width: 150,
|
|
22140
|
+
render: renderTextEllipsis
|
|
22141
|
+
}, {
|
|
22142
|
+
dataIndex: 'sysTitle',
|
|
22143
|
+
title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
|
|
22144
|
+
width: 150,
|
|
22145
|
+
render: renderTextEllipsis
|
|
22146
|
+
}, {
|
|
22147
|
+
dataIndex: 'shortTitle',
|
|
22148
|
+
title: "\u5546\u54C1\u7B80\u79F0",
|
|
22149
|
+
width: 150,
|
|
22150
|
+
render: renderTextEllipsis
|
|
22151
|
+
}, {
|
|
22152
|
+
dataIndex: 'title',
|
|
22153
|
+
title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
|
|
22154
|
+
width: 150,
|
|
22155
|
+
render: renderTextEllipsis
|
|
22156
|
+
}, {
|
|
22157
|
+
dataIndex: 'sysOuterId',
|
|
22158
|
+
title: "\u7CFB\u7EDF\u5546\u5BB6\u7F16\u7801",
|
|
22159
|
+
width: 150,
|
|
22160
|
+
render: renderTextEllipsis
|
|
22161
|
+
}, {
|
|
22162
|
+
dataIndex: 'itemSysId',
|
|
22163
|
+
title: "\u7CFB\u7EDF\u5546\u54C1ID",
|
|
22164
|
+
width: 150,
|
|
22165
|
+
render: renderTextEllipsis
|
|
22166
|
+
}, {
|
|
22167
|
+
dataIndex: 'skuSysId',
|
|
22168
|
+
title: "\u7CFB\u7EDF\u89C4\u683CID",
|
|
22169
|
+
width: 150,
|
|
22170
|
+
render: renderTextEllipsis
|
|
22171
|
+
}, {
|
|
22172
|
+
dataIndex: 'skuId',
|
|
22173
|
+
title: "\u5E73\u53F0\u89C4\u683CID",
|
|
22174
|
+
width: 170,
|
|
22175
|
+
render: renderTextEllipsis
|
|
22176
|
+
}, {
|
|
22177
|
+
dataIndex: 'outerSkuId',
|
|
22178
|
+
title: "\u5E73\u53F0\u89C4\u683C\u7F16\u7801",
|
|
22179
|
+
width: 170,
|
|
22180
|
+
render: renderTextEllipsis
|
|
22181
|
+
}, {
|
|
22182
|
+
dataIndex: 'realNum',
|
|
22183
|
+
title: "\u5B9E\u9645\u9000\u8D27\u6570\u91CF",
|
|
22184
|
+
width: 100,
|
|
22185
|
+
render: function render(val, record, index) {
|
|
22186
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
22187
|
+
style: {
|
|
22188
|
+
width: 70
|
|
22189
|
+
},
|
|
22190
|
+
value: val,
|
|
22191
|
+
min: 1,
|
|
22192
|
+
precision: 0,
|
|
22193
|
+
onChange: function onChange(num) {
|
|
22194
|
+
updateDataHandle({
|
|
22195
|
+
realNum: num,
|
|
22196
|
+
refundMoney: num && isNumberOrNumberString$2(record.price) ? num * record.price : null
|
|
22197
|
+
}, index);
|
|
22198
|
+
}
|
|
22199
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
22200
|
+
}
|
|
22201
|
+
}, {
|
|
22202
|
+
dataIndex: 'desiredNum',
|
|
22203
|
+
title: "\u7533\u8BF7\u9000\u8D27\u6570\u91CF",
|
|
22204
|
+
width: 100,
|
|
22205
|
+
validator: function validator(_rule, value) {
|
|
22206
|
+
var title = '';
|
|
22207
|
+
if (((value === null || value === void 0 ? void 0 : value.kmReturnGoods) || []).some(function (goods) {
|
|
22208
|
+
var desiredNum = toNum$3(goods === null || goods === void 0 ? void 0 : goods.desiredNum);
|
|
22209
|
+
var res = typeof desiredNum === 'number' ? desiredNum < 1 : true;
|
|
22210
|
+
if (res) {
|
|
22211
|
+
title = (goods === null || goods === void 0 ? void 0 : goods.goodName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodName, "]") : '';
|
|
22212
|
+
}
|
|
22213
|
+
return res;
|
|
22214
|
+
})) {
|
|
22215
|
+
return Promise.reject("".concat(title, "\u7533\u8BF7\u9000\u8D27\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
|
|
22216
|
+
}
|
|
22217
|
+
},
|
|
22218
|
+
render: function render(val, record, index) {
|
|
22219
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
22220
|
+
style: {
|
|
22221
|
+
width: 70
|
|
22222
|
+
},
|
|
22223
|
+
value: val,
|
|
22224
|
+
min: 1,
|
|
22225
|
+
precision: 0,
|
|
22226
|
+
onChange: function onChange(num) {
|
|
22227
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'desiredNum');
|
|
22228
|
+
}
|
|
22229
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
22230
|
+
}
|
|
22231
|
+
}, {
|
|
22232
|
+
dataIndex: 'goodNum',
|
|
22233
|
+
title: "\u826F\u54C1\u6570",
|
|
22234
|
+
width: 100,
|
|
22235
|
+
render: function render(val, record, index) {
|
|
22236
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
22237
|
+
style: {
|
|
22238
|
+
width: 70
|
|
22239
|
+
},
|
|
22240
|
+
value: val,
|
|
22241
|
+
min: 1,
|
|
22242
|
+
precision: 0,
|
|
22243
|
+
onChange: function onChange(num) {
|
|
22244
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'goodNum');
|
|
22245
|
+
}
|
|
22246
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
22247
|
+
}
|
|
22248
|
+
}, {
|
|
22249
|
+
dataIndex: 'defectiveNum',
|
|
22250
|
+
title: "\u6B21\u54C1\u6570",
|
|
22251
|
+
width: 100,
|
|
22252
|
+
render: function render(val, record, index) {
|
|
22253
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
22254
|
+
style: {
|
|
22255
|
+
width: 70
|
|
22256
|
+
},
|
|
22257
|
+
value: val,
|
|
22258
|
+
min: 1,
|
|
22259
|
+
precision: 0,
|
|
22260
|
+
onChange: function onChange(num) {
|
|
22261
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'defectiveNum');
|
|
22262
|
+
}
|
|
22263
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
22264
|
+
}
|
|
22265
|
+
}, {
|
|
22266
|
+
dataIndex: 'price',
|
|
22267
|
+
title: "\u5546\u54C1\u9500\u552E\u4EF7",
|
|
22268
|
+
width: 150,
|
|
22269
|
+
render: function render(val) {
|
|
22270
|
+
return val || val === 0 ? Number(val).toFixed(2) : '';
|
|
22271
|
+
}
|
|
22272
|
+
}, {
|
|
22273
|
+
dataIndex: 'refundMoney',
|
|
22274
|
+
title: "\u5B9E\u9000\u91D1\u989D",
|
|
22275
|
+
width: 150,
|
|
22276
|
+
render: function render(val, record, index) {
|
|
22277
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
22278
|
+
style: {
|
|
22279
|
+
width: 130
|
|
22280
|
+
},
|
|
22281
|
+
value: val,
|
|
22282
|
+
min: 0,
|
|
22283
|
+
precision: 2,
|
|
22284
|
+
onChange: function onChange(num) {
|
|
22285
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'refundMoney');
|
|
22286
|
+
}
|
|
22287
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val || val === 0 ? Number(val).toFixed(2) : '');
|
|
22288
|
+
}
|
|
22289
|
+
}, {
|
|
22290
|
+
dataIndex: 'type',
|
|
22291
|
+
title: "\u5546\u54C1\u7C7B\u578B",
|
|
22292
|
+
width: 150,
|
|
22293
|
+
render: renderTextEllipsis
|
|
22294
|
+
}, {
|
|
22295
|
+
dataIndex: 'sysPicPath',
|
|
22296
|
+
title: "\u5546\u54C1\u56FE\u7247",
|
|
22297
|
+
width: 100,
|
|
22298
|
+
headerComponentType: 'pic',
|
|
22299
|
+
render: function render(val) {
|
|
22300
|
+
var imgUrl = (val === null || val === void 0 ? void 0 : val.startsWith('http')) ? val : "https://erp.superboss.cc".concat(val);
|
|
22301
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Image, {
|
|
22302
|
+
width: 30,
|
|
22303
|
+
src: imgUrl
|
|
22304
|
+
});
|
|
22305
|
+
}
|
|
22306
|
+
}].map(function (item) {
|
|
22307
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
22308
|
+
align: 'center',
|
|
22309
|
+
ellipsis: true
|
|
22310
|
+
});
|
|
22311
|
+
}),
|
|
22312
|
+
KM_EXCHANGE_GOODS: [{
|
|
22313
|
+
dataIndex: 'skuPropertiesName',
|
|
22314
|
+
title: "\u89C4\u683C\u540D\u79F0",
|
|
22315
|
+
width: 250,
|
|
22316
|
+
render: renderTextEllipsis
|
|
22317
|
+
}, {
|
|
22318
|
+
dataIndex: 'sysSkuPropertiesName',
|
|
22319
|
+
title: "\u7CFB\u7EDF\u89C4\u683C\u540D\u79F0",
|
|
22320
|
+
width: 150,
|
|
22321
|
+
render: renderTextEllipsis
|
|
22322
|
+
}, {
|
|
22323
|
+
dataIndex: 'sysTitle',
|
|
22324
|
+
title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
|
|
22325
|
+
width: 150,
|
|
22326
|
+
render: renderTextEllipsis
|
|
22327
|
+
}, {
|
|
22328
|
+
dataIndex: 'shortTitle',
|
|
22329
|
+
title: "\u5546\u54C1\u7B80\u79F0",
|
|
22330
|
+
width: 150,
|
|
22331
|
+
render: renderTextEllipsis
|
|
22332
|
+
}, {
|
|
22333
|
+
dataIndex: 'title',
|
|
22334
|
+
title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
|
|
22335
|
+
width: 150,
|
|
22336
|
+
render: renderTextEllipsis
|
|
22337
|
+
}, {
|
|
22338
|
+
dataIndex: 'sysOuterId',
|
|
22339
|
+
title: "\u7CFB\u7EDF\u5546\u5BB6\u7F16\u7801",
|
|
22340
|
+
width: 150,
|
|
22341
|
+
render: renderTextEllipsis
|
|
22342
|
+
}, {
|
|
22343
|
+
dataIndex: 'itemSysId',
|
|
22344
|
+
title: "\u7CFB\u7EDF\u5546\u54C1ID",
|
|
22345
|
+
width: 150,
|
|
22346
|
+
render: renderTextEllipsis
|
|
22347
|
+
}, {
|
|
22348
|
+
dataIndex: 'skuSysId',
|
|
22349
|
+
title: "\u7CFB\u7EDF\u89C4\u683CID",
|
|
22350
|
+
width: 150,
|
|
22351
|
+
render: renderTextEllipsis
|
|
22352
|
+
}, {
|
|
22353
|
+
dataIndex: 'skuId',
|
|
22354
|
+
title: "\u5E73\u53F0\u89C4\u683CID",
|
|
22355
|
+
width: 170,
|
|
22356
|
+
render: renderTextEllipsis
|
|
22357
|
+
}, {
|
|
22358
|
+
dataIndex: 'outerSkuId',
|
|
22359
|
+
title: "\u5E73\u53F0\u89C4\u683C\u7F16\u7801",
|
|
22360
|
+
width: 170,
|
|
22361
|
+
render: renderTextEllipsis
|
|
22362
|
+
}, {
|
|
22363
|
+
dataIndex: 'realNum',
|
|
22364
|
+
title: "\u5B9E\u9645\u6362\u51FA\u6570\u91CF",
|
|
22365
|
+
width: 100,
|
|
22366
|
+
validator: function validator(_rule, value, extraParams) {
|
|
22367
|
+
if (!(extraParams === null || extraParams === void 0 ? void 0 : extraParams.quantityVerify)) return undefined;
|
|
22368
|
+
var title = '';
|
|
22369
|
+
if (((value === null || value === void 0 ? void 0 : value.kmExchangeGoods) || []).some(function (goods) {
|
|
22370
|
+
var realNum = toNum$3(goods === null || goods === void 0 ? void 0 : goods.realNum);
|
|
22371
|
+
var res = typeof realNum === 'number' ? realNum < 1 : true;
|
|
22372
|
+
if (res) {
|
|
22373
|
+
title = (goods === null || goods === void 0 ? void 0 : goods.goodName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodName, "]") : '';
|
|
22374
|
+
}
|
|
22375
|
+
return res;
|
|
22376
|
+
})) {
|
|
22377
|
+
return Promise.reject("".concat(title, "\u5B9E\u9645\u6362\u51FA\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
|
|
22378
|
+
}
|
|
22379
|
+
},
|
|
22380
|
+
render: function render(val, record, index) {
|
|
22381
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
22382
|
+
style: {
|
|
22383
|
+
width: 70
|
|
22384
|
+
},
|
|
22385
|
+
value: val,
|
|
22386
|
+
min: 1,
|
|
22387
|
+
precision: 0,
|
|
22388
|
+
onChange: function onChange(num) {
|
|
22389
|
+
updateDataHandle({
|
|
22390
|
+
realNum: num,
|
|
22391
|
+
refundMoney: num && isNumberOrNumberString$2(record.price) ? num * record.price : null
|
|
22392
|
+
}, index);
|
|
22393
|
+
}
|
|
22394
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
22395
|
+
}
|
|
22396
|
+
}, {
|
|
22397
|
+
dataIndex: 'desiredNum',
|
|
22398
|
+
title: "\u5E94\u6362\u51FA\u6570\u91CF",
|
|
22399
|
+
width: 100,
|
|
22400
|
+
validator: function validator(_rule, value) {
|
|
22401
|
+
var title = '';
|
|
22402
|
+
if (((value === null || value === void 0 ? void 0 : value.kmExchangeGoods) || []).some(function (goods) {
|
|
22403
|
+
var desiredNum = toNum$3(goods === null || goods === void 0 ? void 0 : goods.desiredNum);
|
|
22404
|
+
var res = typeof desiredNum === 'number' ? desiredNum < 1 : true;
|
|
22405
|
+
if (res) {
|
|
22406
|
+
title = (goods === null || goods === void 0 ? void 0 : goods.goodName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodName, "]") : '';
|
|
22407
|
+
}
|
|
22408
|
+
return res;
|
|
22409
|
+
})) {
|
|
22410
|
+
return Promise.reject("".concat(title, "\u5E94\u6362\u51FA\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
|
|
22411
|
+
}
|
|
22412
|
+
},
|
|
22413
|
+
render: function render(val, record, index) {
|
|
22414
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
22415
|
+
style: {
|
|
22416
|
+
width: 70
|
|
22417
|
+
},
|
|
22418
|
+
value: val,
|
|
22419
|
+
min: 1,
|
|
22420
|
+
precision: 0,
|
|
22421
|
+
onChange: function onChange(num) {
|
|
22422
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'desiredNum');
|
|
22423
|
+
}
|
|
22424
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
22425
|
+
}
|
|
22426
|
+
}, {
|
|
22427
|
+
dataIndex: 'price',
|
|
22428
|
+
title: "\u5546\u54C1\u9500\u552E\u4EF7",
|
|
22429
|
+
width: 150,
|
|
22430
|
+
render: function render(val) {
|
|
22431
|
+
return val || val === 0 ? Number(val).toFixed(2) : '';
|
|
22432
|
+
}
|
|
22433
|
+
}, {
|
|
22434
|
+
dataIndex: 'type',
|
|
22435
|
+
title: "\u5546\u54C1\u7C7B\u578B",
|
|
22436
|
+
width: 150,
|
|
22437
|
+
render: renderTextEllipsis
|
|
22438
|
+
}, {
|
|
22439
|
+
dataIndex: 'sysPicPath',
|
|
22440
|
+
title: "\u5546\u54C1\u56FE\u7247",
|
|
22441
|
+
width: 100,
|
|
22442
|
+
headerComponentType: 'pic',
|
|
22443
|
+
render: function render(val) {
|
|
22444
|
+
var imgUrl = (val === null || val === void 0 ? void 0 : val.startsWith('http')) ? val : "https://erp.superboss.cc".concat(val);
|
|
22445
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Image, {
|
|
22446
|
+
width: 30,
|
|
22447
|
+
src: imgUrl
|
|
22448
|
+
});
|
|
22449
|
+
}
|
|
22450
|
+
}].map(function (item) {
|
|
22451
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
22452
|
+
align: 'center',
|
|
22453
|
+
ellipsis: true
|
|
22454
|
+
});
|
|
22003
22455
|
})
|
|
22004
22456
|
};
|
|
22005
22457
|
};
|
|
22006
22458
|
|
|
22007
|
-
var isNumberOrNumberString$
|
|
22459
|
+
var isNumberOrNumberString$3 = function isNumberOrNumberString(value) {
|
|
22008
22460
|
if (typeof value === 'number') return true;
|
|
22009
22461
|
if (typeof value === 'string' && !isNaN(Number(value)) && value.trim() !== '') return true;
|
|
22010
22462
|
return false;
|
|
@@ -22142,7 +22594,7 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
22142
22594
|
onChange: function onChange(num) {
|
|
22143
22595
|
updateDataHandle({
|
|
22144
22596
|
sellCount: num,
|
|
22145
|
-
sellTotal: num && isNumberOrNumberString$
|
|
22597
|
+
sellTotal: num && isNumberOrNumberString$3(record.sellPrice) ? num * record.sellPrice : null
|
|
22146
22598
|
}, index);
|
|
22147
22599
|
}
|
|
22148
22600
|
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
@@ -22162,7 +22614,7 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
22162
22614
|
onChange: function onChange(num) {
|
|
22163
22615
|
updateDataHandle({
|
|
22164
22616
|
sellPrice: num,
|
|
22165
|
-
sellTotal: num && isNumberOrNumberString$
|
|
22617
|
+
sellTotal: num && isNumberOrNumberString$3(record.sellCount) ? num * record.sellCount : null
|
|
22166
22618
|
}, index);
|
|
22167
22619
|
}
|
|
22168
22620
|
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
@@ -22365,7 +22817,7 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
22365
22817
|
onChange: function onChange(num) {
|
|
22366
22818
|
updateDataHandle({
|
|
22367
22819
|
sellCount: num,
|
|
22368
|
-
sellTotal: num && isNumberOrNumberString$
|
|
22820
|
+
sellTotal: num && isNumberOrNumberString$3(record.sellPrice) ? num * record.sellPrice : null
|
|
22369
22821
|
}, index);
|
|
22370
22822
|
}
|
|
22371
22823
|
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
@@ -22385,7 +22837,7 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
22385
22837
|
onChange: function onChange(num) {
|
|
22386
22838
|
updateDataHandle({
|
|
22387
22839
|
sellPrice: num,
|
|
22388
|
-
sellTotal: num && isNumberOrNumberString$
|
|
22840
|
+
sellTotal: num && isNumberOrNumberString$3(record.sellCount) ? num * record.sellCount : null
|
|
22389
22841
|
}, index);
|
|
22390
22842
|
}
|
|
22391
22843
|
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
@@ -22509,7 +22961,7 @@ var getColumns$8 = function getColumns(_ref) {
|
|
|
22509
22961
|
};
|
|
22510
22962
|
};
|
|
22511
22963
|
|
|
22512
|
-
var isNumberOrNumberString$
|
|
22964
|
+
var isNumberOrNumberString$4 = function isNumberOrNumberString(value) {
|
|
22513
22965
|
if (typeof value === 'number') return true;
|
|
22514
22966
|
if (typeof value === 'string' && !isNaN(Number(value)) && value.trim() !== '') return true;
|
|
22515
22967
|
return false;
|
|
@@ -22599,7 +23051,7 @@ var getColumns$9 = function getColumns(_ref) {
|
|
|
22599
23051
|
onChange: function onChange(num) {
|
|
22600
23052
|
updateDataHandle({
|
|
22601
23053
|
sellCount: num,
|
|
22602
|
-
sellTotal: num && isNumberOrNumberString$
|
|
23054
|
+
sellTotal: num && isNumberOrNumberString$4(record.sellPrice) ? num * record.sellPrice : null
|
|
22603
23055
|
}, index);
|
|
22604
23056
|
}
|
|
22605
23057
|
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
@@ -22624,7 +23076,7 @@ var getColumns$9 = function getColumns(_ref) {
|
|
|
22624
23076
|
onChange: function onChange(num) {
|
|
22625
23077
|
updateDataHandle({
|
|
22626
23078
|
sellPrice: num,
|
|
22627
|
-
sellTotal: num && isNumberOrNumberString$
|
|
23079
|
+
sellTotal: num && isNumberOrNumberString$4(record.sellCount) ? num * record.sellCount : null
|
|
22628
23080
|
}, index);
|
|
22629
23081
|
}
|
|
22630
23082
|
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
@@ -22923,7 +23375,7 @@ var getColumns$9 = function getColumns(_ref) {
|
|
|
22923
23375
|
onChange: function onChange(num) {
|
|
22924
23376
|
updateDataHandle({
|
|
22925
23377
|
sellCount: num,
|
|
22926
|
-
sellTotal: num && isNumberOrNumberString$
|
|
23378
|
+
sellTotal: num && isNumberOrNumberString$4(record.sellPrice) ? num * record.sellPrice : null
|
|
22927
23379
|
}, index);
|
|
22928
23380
|
}
|
|
22929
23381
|
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
@@ -22943,7 +23395,7 @@ var getColumns$9 = function getColumns(_ref) {
|
|
|
22943
23395
|
onChange: function onChange(num) {
|
|
22944
23396
|
updateDataHandle({
|
|
22945
23397
|
sellPrice: num,
|
|
22946
|
-
sellTotal: num && isNumberOrNumberString$
|
|
23398
|
+
sellTotal: num && isNumberOrNumberString$4(record.sellCount) ? num * record.sellCount : null
|
|
22947
23399
|
}, index);
|
|
22948
23400
|
}
|
|
22949
23401
|
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
@@ -23171,7 +23623,8 @@ var getColumnsMap$1 = function getColumnsMap(args) {
|
|
|
23171
23623
|
})), getColumns$6({
|
|
23172
23624
|
text: text,
|
|
23173
23625
|
disabled: disabled,
|
|
23174
|
-
updateHandle: updateHandle
|
|
23626
|
+
updateHandle: updateHandle,
|
|
23627
|
+
updateDataHandle: updateDataHandle
|
|
23175
23628
|
})), getColumns$7({
|
|
23176
23629
|
text: text,
|
|
23177
23630
|
disabled: disabled,
|
|
@@ -23195,7 +23648,7 @@ var getColumnsMap$1 = function getColumnsMap(args) {
|
|
|
23195
23648
|
});
|
|
23196
23649
|
};
|
|
23197
23650
|
var erpColumnsMap = getColumnsMap$1();
|
|
23198
|
-
var erpFormValidator = function erpFormValidator(_rule, value, type) {
|
|
23651
|
+
var erpFormValidator = function erpFormValidator(_rule, value, type, extraParams) {
|
|
23199
23652
|
var validatorFnList = (erpColumnsMap[type] || erpColumnsMap['default']).map(function (column) {
|
|
23200
23653
|
return column.validator;
|
|
23201
23654
|
}).filter(Boolean);
|
|
@@ -23205,7 +23658,7 @@ var erpFormValidator = function erpFormValidator(_rule, value, type) {
|
|
|
23205
23658
|
try {
|
|
23206
23659
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
23207
23660
|
var validatorFn = _step.value;
|
|
23208
|
-
var validatorResult = validatorFn(_rule, value,
|
|
23661
|
+
var validatorResult = validatorFn(_rule, value, extraParams);
|
|
23209
23662
|
if (validatorResult) {
|
|
23210
23663
|
res = validatorResult;
|
|
23211
23664
|
break;
|
|
@@ -23330,7 +23783,7 @@ var isErpType = {
|
|
|
23330
23783
|
return ['JST_GOODS', 'JST_REISSUE_GOODS', 'JST_RETURN_GOODS', 'JST_EXCHANGE_GOODS'].includes(type);
|
|
23331
23784
|
},
|
|
23332
23785
|
isKm: function isKm(type) {
|
|
23333
|
-
return ['KM_GOODS', 'KM_REISSUE_GOODS'].includes(type);
|
|
23786
|
+
return ['KM_GOODS', 'KM_REISSUE_GOODS', 'KM_RETURN_GOODS', 'KM_EXCHANGE_GOODS'].includes(type);
|
|
23334
23787
|
},
|
|
23335
23788
|
isJy: function isJy(type) {
|
|
23336
23789
|
return ['JY_GOODS', 'JY_REISSUE_GOODS'].includes(type);
|
|
@@ -23595,11 +24048,17 @@ var processKmGoods$1 = function processKmGoods(_ref8) {
|
|
|
23595
24048
|
KM_REISSUE_GOODS: {
|
|
23596
24049
|
realNum: 1,
|
|
23597
24050
|
desiredNum: 1
|
|
24051
|
+
},
|
|
24052
|
+
KM_RETURN_GOODS: {},
|
|
24053
|
+
KM_EXCHANGE_GOODS: {
|
|
24054
|
+
realNum: 1,
|
|
24055
|
+
desiredNum: 1
|
|
23598
24056
|
}
|
|
23599
24057
|
};
|
|
23600
24058
|
return list.map(function (item) {
|
|
23601
24059
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
23602
24060
|
skuPropertiesName: item.specName,
|
|
24061
|
+
sysSkuPropertiesName: item.specId,
|
|
23603
24062
|
sysTitle: item.goodName,
|
|
23604
24063
|
title: null,
|
|
23605
24064
|
shortTitle: item.goodShortName,
|
|
@@ -23664,6 +24123,8 @@ var GoodsModalMap = {
|
|
|
23664
24123
|
JST_EXCHANGE_GOODS: JstGoodsModal,
|
|
23665
24124
|
KM_GOODS: KmGoodsModal,
|
|
23666
24125
|
KM_REISSUE_GOODS: KmGoodsModal,
|
|
24126
|
+
KM_RETURN_GOODS: KmGoodsModal,
|
|
24127
|
+
KM_EXCHANGE_GOODS: KmGoodsModal,
|
|
23667
24128
|
JY_GOODS: JyGoodsModal$1,
|
|
23668
24129
|
JY_REISSUE_GOODS: JyGoodsModal$1,
|
|
23669
24130
|
JKY_GOODS: JkyGoodsModal$1,
|
|
@@ -23683,6 +24144,7 @@ var systemOrderNoMap = {
|
|
|
23683
24144
|
JKY_GOODS: 'tradeNo',
|
|
23684
24145
|
JKY_REISSUE_GOODS: 'tradeNo',
|
|
23685
24146
|
KM_REISSUE_GOODS: 'sid',
|
|
24147
|
+
KM_RETURN_GOODS: 'sid',
|
|
23686
24148
|
JST_REISSUE_GOODS: 'oId',
|
|
23687
24149
|
GY_REISSUE_GOODS: 'code',
|
|
23688
24150
|
BS_E3_REISSUE_GOODS: 'orderSn',
|
|
@@ -23770,7 +24232,7 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
|
23770
24232
|
_context2.next = 6;
|
|
23771
24233
|
return getDataSourceAsync();
|
|
23772
24234
|
case 6:
|
|
23773
|
-
if (!['KM_GOODS', 'KM_REISSUE_GOODS'].includes(type)) {
|
|
24235
|
+
if (!['KM_GOODS', 'KM_REISSUE_GOODS', 'KM_RETURN_GOODS'].includes(type)) {
|
|
23774
24236
|
_context2.next = 9;
|
|
23775
24237
|
break;
|
|
23776
24238
|
}
|
|
@@ -23975,7 +24437,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
23975
24437
|
var jstReturnGoods = antd.Form === null || antd.Form === void 0 ? void 0 : antd.Form.useWatch('3979edfd6d', form);
|
|
23976
24438
|
var isShowSelectTradeGoods = type !== 'JST_EXCHANGE_GOODS' || (jstReturnGoods === null || jstReturnGoods === void 0 ? void 0 : jstReturnGoods.jstSystemOrderNo);
|
|
23977
24439
|
// 判断是否为是否展示系统单筛选项
|
|
23978
|
-
var isShowSelect = type && ['WDT_GOODS', 'BS_E3_GOODS', 'GY_GOODS', 'JST_GOODS', 'WLN_GOODS', 'KM_GOODS', 'JY_GOODS', 'JY_REISSUE_GOODS', 'JKY_GOODS', 'JKY_REISSUE_GOODS', 'GY_REISSUE_GOODS', 'KM_REISSUE_GOODS', 'BS_E3_REISSUE_GOODS', 'WDT_REISSUE_GOODS', 'JST_REISSUE_GOODS'].includes(type) || false;
|
|
24440
|
+
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;
|
|
23979
24441
|
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;
|
|
23980
24442
|
var refModal = React.useRef();
|
|
23981
24443
|
console.debug('表格数据', value);
|
|
@@ -24065,6 +24527,8 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
24065
24527
|
case 'GY_RETURN_GOODS':
|
|
24066
24528
|
case 'KM_GOODS':
|
|
24067
24529
|
case 'KM_REISSUE_GOODS':
|
|
24530
|
+
case 'KM_RETURN_GOODS':
|
|
24531
|
+
case 'KM_EXCHANGE_GOODS':
|
|
24068
24532
|
case 'JY_GOODS':
|
|
24069
24533
|
case 'JY_REISSUE_GOODS':
|
|
24070
24534
|
case 'JKY_GOODS':
|
|
@@ -27555,6 +28019,27 @@ var componentMap$4 = {
|
|
|
27555
28019
|
returnGoodsSysorder: 'jstReturnGoodsSysorder',
|
|
27556
28020
|
returnGoodsSysorderBack: 'jstReturnGoodsSysorderBack'
|
|
27557
28021
|
}
|
|
28022
|
+
},
|
|
28023
|
+
KM_EXCHANGE_GOODS: {
|
|
28024
|
+
type: 'km',
|
|
28025
|
+
showChooseTradeGoodsBtn: true,
|
|
28026
|
+
valueKey: 'kmExchangeGoods',
|
|
28027
|
+
returnTypeKey: 'kmExchangeType',
|
|
28028
|
+
systemOrder: 'kmSystemOrder',
|
|
28029
|
+
systemOrderNo: 'kmSystemOrderNo',
|
|
28030
|
+
oIdKey: 'billNo',
|
|
28031
|
+
goodDetailsKey: 'subOrders',
|
|
28032
|
+
skuIdKey: 'skuId',
|
|
28033
|
+
outerOiIdKey: '',
|
|
28034
|
+
name: '快麦',
|
|
28035
|
+
updateGoodsHandle: kmkfUtils.updateKmGoodsHandle,
|
|
28036
|
+
eventNameMap: {
|
|
28037
|
+
// pubsub 事件
|
|
28038
|
+
exchangeCopyGood: 'kmExchangeCopyGood',
|
|
28039
|
+
exchangeBackCopyGood: 'kmExchangeBackCopyGood',
|
|
28040
|
+
returnGoodsSysorder: 'kmReturnGoodsSysorder',
|
|
28041
|
+
returnGoodsSysorderBack: 'kmReturnGoodsSysorderBack'
|
|
28042
|
+
}
|
|
27558
28043
|
}
|
|
27559
28044
|
};
|
|
27560
28045
|
var CommonExchangeGoods = function CommonExchangeGoods(props) {
|
|
@@ -27655,6 +28140,10 @@ var CommonExchangeGoods = function CommonExchangeGoods(props) {
|
|
|
27655
28140
|
return new Promise(function (resolve) {
|
|
27656
28141
|
pubsub__default['default'].subscribeOnce(componentMap$4[compType].eventNameMap.returnGoodsSysorderBack, function (_, data) {
|
|
27657
28142
|
resolve(data);
|
|
28143
|
+
console.log('getDataSourceAsync---111data--', data, getGoodDetails({
|
|
28144
|
+
returnGoodsValue: data,
|
|
28145
|
+
mode: isStrict
|
|
28146
|
+
}));
|
|
27658
28147
|
setOriginDataSource(getGoodDetails({
|
|
27659
28148
|
returnGoodsValue: data,
|
|
27660
28149
|
mode: isStrict
|
|
@@ -27663,6 +28152,7 @@ var CommonExchangeGoods = function CommonExchangeGoods(props) {
|
|
|
27663
28152
|
pubsub__default['default'].publish(componentMap$4[compType].eventNameMap.returnGoodsSysorder, compType);
|
|
27664
28153
|
});
|
|
27665
28154
|
};
|
|
28155
|
+
console.log('aaa--', originDataSource);
|
|
27666
28156
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(GoodItem$1, _objectSpread2(_objectSpread2({
|
|
27667
28157
|
key: componentMap$4[compType].type
|
|
27668
28158
|
}, props), {}, {
|
|
@@ -27999,6 +28489,30 @@ var typeMap$2 = {
|
|
|
27999
28489
|
uniqueKey: 'id',
|
|
28000
28490
|
isShowSelectTradeGoods: true
|
|
28001
28491
|
},
|
|
28492
|
+
KM_RETURN_GOODS: {
|
|
28493
|
+
compType: '退货',
|
|
28494
|
+
key: 'kmReturnGoods',
|
|
28495
|
+
typeName: 'kmReturnType',
|
|
28496
|
+
systemOrder: 'kmSystemOrder',
|
|
28497
|
+
systemOrderNo: 'kmSystemOrderNo',
|
|
28498
|
+
getOrderList: kmUtils.getOrderListSingleton,
|
|
28499
|
+
updateGoodsHandle: kmkfUtils.updateKmGoodsHandle,
|
|
28500
|
+
alwaysShowChooseErpGoodsBtn: true,
|
|
28501
|
+
orderTypeKey: 'orderType',
|
|
28502
|
+
oIdKey: 'billNo',
|
|
28503
|
+
outerOiIdKey: '',
|
|
28504
|
+
goodDetailsKey: 'subOrders',
|
|
28505
|
+
uniqueKey: 'id',
|
|
28506
|
+
isShowSelectTradeGoods: true,
|
|
28507
|
+
showErpGoodsBtn: false,
|
|
28508
|
+
eventNameMap: {
|
|
28509
|
+
// pubsub 事件
|
|
28510
|
+
exchangeCopyGood: 'kmExchangeCopyGood',
|
|
28511
|
+
exchangeBackCopyGood: 'kmExchangeBackCopyGood',
|
|
28512
|
+
returnGoodsSysorder: 'kmReturnGoodsSysorder',
|
|
28513
|
+
returnGoodsSysorderBack: 'kmReturnGoodsSysorderBack'
|
|
28514
|
+
}
|
|
28515
|
+
},
|
|
28002
28516
|
JY_REISSUE_GOODS: {
|
|
28003
28517
|
compType: '补发',
|
|
28004
28518
|
key: 'jyReissueGoods',
|
|
@@ -28032,7 +28546,7 @@ var typeMap$2 = {
|
|
|
28032
28546
|
}
|
|
28033
28547
|
};
|
|
28034
28548
|
var PublicReissue = function PublicReissue(props) {
|
|
28035
|
-
var _typeMap$
|
|
28549
|
+
var _typeMap$type18, _typeMap$type36, _typeMap$type42, _typeMap$type43, _typeMap$type44, _typeMap$type45, _value$typeMap$type$s8, _typeMap$type46, _typeMap$type47, _typeMap$type48, _typeMap$type49, _typeMap$type50, _typeMap$type51, _typeMap$type52, _typeMap$type53, _typeMap$type54, _value$typeMap$type$s9, _typeMap$type55, _typeMap$type56, _typeMap$type57, _typeMap$type58;
|
|
28036
28550
|
var value = props.value,
|
|
28037
28551
|
onChange = props.onChange,
|
|
28038
28552
|
_props$reasonList = props.reasonList,
|
|
@@ -28150,24 +28664,25 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28150
28664
|
};
|
|
28151
28665
|
var sysItemIdMap = React.useMemo(function () {
|
|
28152
28666
|
var map = {};
|
|
28153
|
-
if (
|
|
28154
|
-
var _value$
|
|
28155
|
-
|
|
28667
|
+
if (['KM_REISSUE_GOODS', 'KM_RETURN_GOODS'].includes(type)) {
|
|
28668
|
+
var _value$goodsKey, _value$goodsKey$filte;
|
|
28669
|
+
var goodsKey = typeMap$2[type].key;
|
|
28670
|
+
value === null || value === void 0 ? void 0 : (_value$goodsKey = value[goodsKey]) === null || _value$goodsKey === void 0 ? void 0 : (_value$goodsKey$filte = _value$goodsKey.filter(function (item) {
|
|
28156
28671
|
return item === null || item === void 0 ? void 0 : item.sysItemId;
|
|
28157
|
-
})) === null || _value$
|
|
28672
|
+
})) === null || _value$goodsKey$filte === void 0 ? void 0 : _value$goodsKey$filte.forEach(function (item) {
|
|
28158
28673
|
var key = !(item === null || item === void 0 ? void 0 : item.sysSkuId) || (item === null || item === void 0 ? void 0 : item.sysSkuId) == '-1' || (item === null || item === void 0 ? void 0 : item.sysSkuId) == (item === null || item === void 0 ? void 0 : item.sysItemId) ? item === null || item === void 0 ? void 0 : item.sysItemId : "".concat(item === null || item === void 0 ? void 0 : item.sysItemId, "-").concat(item === null || item === void 0 ? void 0 : item.sysSkuId);
|
|
28159
28674
|
map[key] = item;
|
|
28160
28675
|
});
|
|
28161
28676
|
}
|
|
28162
28677
|
return map;
|
|
28163
|
-
}, [value === null || value === void 0 ? void 0 : value.
|
|
28678
|
+
}, [value === null || value === void 0 ? void 0 : value[(_typeMap$type18 = typeMap$2[type]) === null || _typeMap$type18 === void 0 ? void 0 : _typeMap$type18.key]]);
|
|
28164
28679
|
// 用于跟踪已经处理过的 sysItemId,避免重复处理
|
|
28165
28680
|
var processedSysItemIdsRef = React.useRef(new Set());
|
|
28166
28681
|
React.useEffect(function () {
|
|
28167
28682
|
var fetchSupplier = /*#__PURE__*/function () {
|
|
28168
28683
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(sysItemIds) {
|
|
28169
|
-
var _currentValue$
|
|
28170
|
-
var needFetchIds, supplierMap, hasChange, currentValue,
|
|
28684
|
+
var _currentValue$goodsKe;
|
|
28685
|
+
var needFetchIds, supplierMap, hasChange, currentValue, goodsKey, kmGoods;
|
|
28171
28686
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
28172
28687
|
while (1) switch (_context2.prev = _context2.next) {
|
|
28173
28688
|
case 0:
|
|
@@ -28195,7 +28710,8 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28195
28710
|
// 检查是否有实际变化,避免不必要的更新
|
|
28196
28711
|
hasChange = false;
|
|
28197
28712
|
currentValue = valueRef.current;
|
|
28198
|
-
|
|
28713
|
+
goodsKey = typeMap$2[type].key;
|
|
28714
|
+
kmGoods = currentValue === null || currentValue === void 0 ? void 0 : (_currentValue$goodsKe = currentValue[goodsKey]) === null || _currentValue$goodsKe === void 0 ? void 0 : _currentValue$goodsKe.map(function (item) {
|
|
28199
28715
|
var key = !(item === null || item === void 0 ? void 0 : item.sysSkuId) || (item === null || item === void 0 ? void 0 : item.sysSkuId) == '-1' || (item === null || item === void 0 ? void 0 : item.sysSkuId) == (item === null || item === void 0 ? void 0 : item.sysItemId) ? item === null || item === void 0 ? void 0 : item.sysItemId : "".concat(item === null || item === void 0 ? void 0 : item.sysItemId, "-").concat(item === null || item === void 0 ? void 0 : item.sysSkuId);
|
|
28200
28716
|
var supplierInfo = supplierMap.get(key);
|
|
28201
28717
|
var newSupplierCode = supplierInfo === null || supplierInfo === void 0 ? void 0 : supplierInfo.supplierCode;
|
|
@@ -28212,12 +28728,10 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28212
28728
|
}
|
|
28213
28729
|
return item;
|
|
28214
28730
|
}); // 只在有实际变化时才更新
|
|
28215
|
-
if (hasChange &&
|
|
28216
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, currentValue), {}, {
|
|
28217
|
-
kmReissueGoods: kmReissueGoods
|
|
28218
|
-
}));
|
|
28731
|
+
if (hasChange && kmGoods) {
|
|
28732
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, currentValue), {}, _defineProperty({}, goodsKey, kmGoods)));
|
|
28219
28733
|
}
|
|
28220
|
-
case
|
|
28734
|
+
case 13:
|
|
28221
28735
|
case "end":
|
|
28222
28736
|
return _context2.stop();
|
|
28223
28737
|
}
|
|
@@ -28233,20 +28747,20 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28233
28747
|
}
|
|
28234
28748
|
}, [sysItemIdMap]);
|
|
28235
28749
|
var getGoodDetails = function getGoodDetails(_ref5) {
|
|
28236
|
-
var _typeMap$
|
|
28750
|
+
var _typeMap$type19, _typeMap$type20, _value$typeMap$type$s6, _typeMap$type21, _typeMap$type22, _typeMap$type23, _typeMap$type24;
|
|
28237
28751
|
var mode = _ref5.mode,
|
|
28238
28752
|
sysOrderNo = _ref5.sysOrderNo,
|
|
28239
28753
|
_ref5$isAllOrders = _ref5.isAllOrders,
|
|
28240
28754
|
isAllOrders = _ref5$isAllOrders === void 0 ? false : _ref5$isAllOrders;
|
|
28241
|
-
var systemOrder = value === null || value === void 0 ? void 0 : value[(_typeMap$
|
|
28242
|
-
var systemOrderNo = sysOrderNo !== null && sysOrderNo !== void 0 ? sysOrderNo : value === null || value === void 0 ? void 0 : value[(_typeMap$
|
|
28755
|
+
var systemOrder = value === null || value === void 0 ? void 0 : value[(_typeMap$type19 = typeMap$2[type]) === null || _typeMap$type19 === void 0 ? void 0 : _typeMap$type19.systemOrder];
|
|
28756
|
+
var systemOrderNo = sysOrderNo !== null && sysOrderNo !== void 0 ? sysOrderNo : value === null || value === void 0 ? void 0 : value[(_typeMap$type20 = typeMap$2[type]) === null || _typeMap$type20 === void 0 ? void 0 : _typeMap$type20.systemOrderNo];
|
|
28243
28757
|
var order = systemOrderNo && ((systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orders) || []).find(function (order) {
|
|
28244
28758
|
return order[typeMap$2[type].oIdKey] === systemOrderNo;
|
|
28245
28759
|
});
|
|
28246
28760
|
var orderRest = undefined;
|
|
28247
28761
|
if (['JST_REISSUE_GOODS', 'JST_RETURN_GOODS'].includes(type)) {
|
|
28248
28762
|
orderRest = true;
|
|
28249
|
-
} else if (
|
|
28763
|
+
} else if (['KM_REISSUE_GOODS', 'KM_RETURN_GOODS'].includes(type)) {
|
|
28250
28764
|
orderRest = {
|
|
28251
28765
|
orderBackGoodsLevel: props.orderBackGoodsLevel,
|
|
28252
28766
|
canEdit: true
|
|
@@ -28260,12 +28774,12 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28260
28774
|
canEdit: true
|
|
28261
28775
|
};
|
|
28262
28776
|
}
|
|
28263
|
-
var orders = isAllOrders ? (value === null || value === void 0 ? void 0 : (_value$typeMap$type$s6 = value[(_typeMap$
|
|
28777
|
+
var orders = isAllOrders ? (value === null || value === void 0 ? void 0 : (_value$typeMap$type$s6 = value[(_typeMap$type21 = typeMap$2[type]) === null || _typeMap$type21 === void 0 ? void 0 : _typeMap$type21.systemOrder]) === null || _value$typeMap$type$s6 === void 0 ? void 0 : _value$typeMap$type$s6.orders) || [] : order ? [order] : [];
|
|
28264
28778
|
var hasGoodDetails = orders === null || orders === void 0 ? void 0 : orders.some(function (order) {
|
|
28265
28779
|
var _order$typeMap$type$g;
|
|
28266
28780
|
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;
|
|
28267
28781
|
});
|
|
28268
|
-
var goodDetails = hasGoodDetails ? (!isAllOrders || ((_typeMap$
|
|
28782
|
+
var goodDetails = hasGoodDetails ? (!isAllOrders || ((_typeMap$type22 = typeMap$2[type]) === null || _typeMap$type22 === void 0 ? void 0 : _typeMap$type22.isSelectTradeGoodsMerge)) && typeMap$2[type].mergeIdenticalGoods ? typeMap$2[type].mergeIdenticalGoods((_typeMap$type23 = typeMap$2[type]) === null || _typeMap$type23 === void 0 ? void 0 : _typeMap$type23.updateGoodsHandle(orders, orderRest, type)) : (_typeMap$type24 = typeMap$2[type]) === null || _typeMap$type24 === void 0 ? void 0 : _typeMap$type24.updateGoodsHandle(orders, orderRest, type) : [];
|
|
28269
28783
|
var orderNo = systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orderNo;
|
|
28270
28784
|
var list = mode && !isAllOrders ? goodDetails.filter(function (goodItem) {
|
|
28271
28785
|
return !orderNo || goodItem[typeMap$2[type].outerOiIdKey] === orderNo;
|
|
@@ -28273,30 +28787,30 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28273
28787
|
return list;
|
|
28274
28788
|
};
|
|
28275
28789
|
var changeGoodHandle = function changeGoodHandle(val) {
|
|
28276
|
-
var _typeMap$
|
|
28790
|
+
var _typeMap$type25;
|
|
28277
28791
|
var newValue = _objectSpread2({}, value);
|
|
28278
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28792
|
+
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type25 = typeMap$2[type]) === null || _typeMap$type25 === void 0 ? void 0 : _typeMap$type25.key)] = val || [];
|
|
28279
28793
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
28280
28794
|
};
|
|
28281
28795
|
var changeSystemOrderHandle = function changeSystemOrderHandle(val) {
|
|
28282
|
-
var _typeMap$
|
|
28796
|
+
var _typeMap$type26, _typeMap$type27, _value$typeMap$type$t2, _typeMap$type32, _value$typeMap$type$t3, _typeMap$type34;
|
|
28283
28797
|
var newValue = _objectSpread2({}, value);
|
|
28284
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28285
|
-
if (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28286
|
-
var _value$typeMap$type$s7, _typeMap$
|
|
28287
|
-
var orders = (value === null || value === void 0 ? void 0 : (_value$typeMap$type$s7 = value[(_typeMap$
|
|
28798
|
+
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type26 = typeMap$2[type]) === null || _typeMap$type26 === void 0 ? void 0 : _typeMap$type26.systemOrderNo)] = val;
|
|
28799
|
+
if (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type27 = typeMap$2[type]) === null || _typeMap$type27 === void 0 ? void 0 : _typeMap$type27.systemOrderBillType) {
|
|
28800
|
+
var _value$typeMap$type$s7, _typeMap$type28, _typeMap$type30, _typeMap$type31;
|
|
28801
|
+
var orders = (value === null || value === void 0 ? void 0 : (_value$typeMap$type$s7 = value[(_typeMap$type28 = typeMap$2[type]) === null || _typeMap$type28 === void 0 ? void 0 : _typeMap$type28.systemOrder]) === null || _value$typeMap$type$s7 === void 0 ? void 0 : _value$typeMap$type$s7.orders) || [];
|
|
28288
28802
|
var targetOrder = val && orders.find(function (oItem) {
|
|
28289
|
-
var _typeMap$
|
|
28290
|
-
return oItem[(_typeMap$
|
|
28803
|
+
var _typeMap$type29;
|
|
28804
|
+
return oItem[(_typeMap$type29 = typeMap$2[type]) === null || _typeMap$type29 === void 0 ? void 0 : _typeMap$type29.oIdKey] === val;
|
|
28291
28805
|
});
|
|
28292
|
-
newValue[(_typeMap$
|
|
28293
|
-
}
|
|
28294
|
-
if (['2'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t2 = value[(_typeMap$
|
|
28295
|
-
var _typeMap$
|
|
28296
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28297
|
-
} else if (['1'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t3 = value[(_typeMap$
|
|
28298
|
-
var _typeMap$
|
|
28299
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28806
|
+
newValue[(_typeMap$type30 = typeMap$2[type]) === null || _typeMap$type30 === void 0 ? void 0 : _typeMap$type30.systemOrderBillType] = targetOrder === null || targetOrder === void 0 ? void 0 : targetOrder[(_typeMap$type31 = typeMap$2[type]) === null || _typeMap$type31 === void 0 ? void 0 : _typeMap$type31.orderTypeKey];
|
|
28807
|
+
}
|
|
28808
|
+
if (['2'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t2 = value[(_typeMap$type32 = typeMap$2[type]) === null || _typeMap$type32 === void 0 ? void 0 : _typeMap$type32.typeName]) === null || _value$typeMap$type$t2 === void 0 ? void 0 : _value$typeMap$type$t2[0])) {
|
|
28809
|
+
var _typeMap$type33;
|
|
28810
|
+
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)] = [];
|
|
28811
|
+
} 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])) {
|
|
28812
|
+
var _typeMap$type35;
|
|
28813
|
+
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)] = getGoodDetails({
|
|
28300
28814
|
mode: isStrict,
|
|
28301
28815
|
sysOrderNo: val
|
|
28302
28816
|
});
|
|
@@ -28304,27 +28818,27 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28304
28818
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue, 'systemOrder');
|
|
28305
28819
|
};
|
|
28306
28820
|
//显示选择商品按钮
|
|
28307
|
-
var showChangeBtn = !!(value === null || value === void 0 ? void 0 : value[(_typeMap$
|
|
28821
|
+
var showChangeBtn = !!(value === null || value === void 0 ? void 0 : value[(_typeMap$type36 = typeMap$2[type]) === null || _typeMap$type36 === void 0 ? void 0 : _typeMap$type36.systemOrderNo]);
|
|
28308
28822
|
var selectedGoodsChange = React.useCallback(function (skuList) {
|
|
28309
|
-
var _typeMap$
|
|
28823
|
+
var _typeMap$type37, _typeMap$type38, _typeMap$type39, _uniqBy, _typeMap$type40;
|
|
28310
28824
|
var newValue = _objectSpread2({}, value);
|
|
28311
28825
|
// 原订单商品
|
|
28312
28826
|
var originTradeGoodList = getGoodDetails({
|
|
28313
28827
|
mode: isStrict,
|
|
28314
|
-
isAllOrders: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28828
|
+
isAllOrders: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type37 = typeMap$2[type]) === null || _typeMap$type37 === void 0 ? void 0 : _typeMap$type37.isShowSelectTradeGoods
|
|
28315
28829
|
}) || [];
|
|
28316
28830
|
// 当前选中的所有商品【包含了原订单+商品库】
|
|
28317
|
-
var currentSelectGoodList = (value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28318
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28319
|
-
var _typeMap$
|
|
28320
|
-
return skuList.includes(item[(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28831
|
+
var currentSelectGoodList = (value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type38 = typeMap$2[type]) === null || _typeMap$type38 === void 0 ? void 0 : _typeMap$type38.key)]) || [];
|
|
28832
|
+
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type39 = typeMap$2[type]) === null || _typeMap$type39 === void 0 ? void 0 : _typeMap$type39.key)] = (_uniqBy = lodash.uniqBy(originTradeGoodList.concat(currentSelectGoodList), (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type40 = typeMap$2[type]) === null || _typeMap$type40 === void 0 ? void 0 : _typeMap$type40.uniqueKey) || 'uuid')) === null || _uniqBy === void 0 ? void 0 : _uniqBy.filter(function (item) {
|
|
28833
|
+
var _typeMap$type41;
|
|
28834
|
+
return skuList.includes(item[(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type41 = typeMap$2[type]) === null || _typeMap$type41 === void 0 ? void 0 : _typeMap$type41.uniqueKey) || 'uuid']);
|
|
28321
28835
|
});
|
|
28322
28836
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
28323
|
-
}, [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28837
|
+
}, [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type42 = typeMap$2[type]) === null || _typeMap$type42 === void 0 ? void 0 : _typeMap$type42.key)], isStrict]);
|
|
28324
28838
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.Row, {
|
|
28325
28839
|
gutter: 8,
|
|
28326
28840
|
wrap: true,
|
|
28327
|
-
id: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28841
|
+
id: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type43 = typeMap$2[type]) === null || _typeMap$type43 === void 0 ? void 0 : _typeMap$type43.key) || "".concat(Date.now())
|
|
28328
28842
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
28329
28843
|
className: "gutter-row",
|
|
28330
28844
|
xs: {
|
|
@@ -28340,12 +28854,12 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28340
28854
|
},
|
|
28341
28855
|
disabled: disabled,
|
|
28342
28856
|
allowClear: false,
|
|
28343
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28857
|
+
value: 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.systemOrderNo)],
|
|
28344
28858
|
onChange: function onChange(val) {
|
|
28345
28859
|
return changeSystemOrderHandle(val);
|
|
28346
28860
|
},
|
|
28347
|
-
placeholder: "\u9009\u62E9".concat((typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28348
|
-
}, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s8 = value[(_typeMap$
|
|
28861
|
+
placeholder: "\u9009\u62E9".concat((typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type45 = typeMap$2[type]) === null || _typeMap$type45 === void 0 ? void 0 : _typeMap$type45.compType) || '', "\u7CFB\u7EDF\u5355")
|
|
28862
|
+
}, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s8 = value[(_typeMap$type46 = typeMap$2[type]) === null || _typeMap$type46 === void 0 ? void 0 : _typeMap$type46.systemOrder]) === null || _value$typeMap$type$s8 === void 0 ? void 0 : _value$typeMap$type$s8.showOrderInfo) || []).map(function (item) {
|
|
28349
28863
|
return /*#__PURE__*/React__default['default'].createElement(antd.Select.Option, {
|
|
28350
28864
|
key: item[typeMap$2[type].oIdKey],
|
|
28351
28865
|
value: item[typeMap$2[type].oIdKey],
|
|
@@ -28367,11 +28881,11 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28367
28881
|
disabled: isSettingConfig ? !isSettingConfig : disabled,
|
|
28368
28882
|
allowClear: false,
|
|
28369
28883
|
options: reasonList,
|
|
28370
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28884
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type47 = typeMap$2[type]) === null || _typeMap$type47 === void 0 ? void 0 : _typeMap$type47.typeName)],
|
|
28371
28885
|
onChange: function onChange(val) {
|
|
28372
28886
|
return changeTypeHandle(val);
|
|
28373
28887
|
}
|
|
28374
|
-
})), (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28888
|
+
})), (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type48 = typeMap$2[type]) === null || _typeMap$type48 === void 0 ? void 0 : _typeMap$type48.systemOrderBillType) && !isSettingConfig && /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
28375
28889
|
className: "gutter-row",
|
|
28376
28890
|
xs: {
|
|
28377
28891
|
span: 11
|
|
@@ -28380,7 +28894,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28380
28894
|
span: 6
|
|
28381
28895
|
}
|
|
28382
28896
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
28383
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28897
|
+
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.systemOrderBillType)],
|
|
28384
28898
|
disabled: disabled,
|
|
28385
28899
|
readOnly: true
|
|
28386
28900
|
}))), /*#__PURE__*/React__default['default'].createElement(GoodItem$1, _objectSpread2(_objectSpread2({
|
|
@@ -28391,25 +28905,25 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28391
28905
|
canUpdateNumber: showChangeBtn,
|
|
28392
28906
|
hasSelectedSystemOrder: showChangeBtn,
|
|
28393
28907
|
// showChangeBtn={showChangeBtn || typeMap?.[type]?.isShowSelectTradeGoods}
|
|
28394
|
-
alwaysShowChooseErpGoodsBtn: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28395
|
-
|
|
28908
|
+
alwaysShowChooseErpGoodsBtn: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type50 = typeMap$2[type]) === null || _typeMap$type50 === void 0 ? void 0 : _typeMap$type50.alwaysShowChooseErpGoodsBtn,
|
|
28909
|
+
showErpGoodsBtn: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type51 = typeMap$2[type]) === null || _typeMap$type51 === void 0 ? void 0 : _typeMap$type51.showErpGoodsBtn,
|
|
28396
28910
|
shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
|
|
28397
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28911
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type52 = typeMap$2[type]) === null || _typeMap$type52 === void 0 ? void 0 : _typeMap$type52.key)],
|
|
28398
28912
|
onChange: function onChange(val) {
|
|
28399
28913
|
return changeGoodHandle(val);
|
|
28400
28914
|
},
|
|
28401
28915
|
onModeChange: handleModeChange,
|
|
28402
|
-
showModeBtn: !!(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28916
|
+
showModeBtn: !!(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type53 = typeMap$2[type]) === null || _typeMap$type53 === void 0 ? void 0 : _typeMap$type53.showModeBtn),
|
|
28403
28917
|
isStrict: isStrict,
|
|
28404
|
-
isShowSelectTradeGoods: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28405
|
-
systemOrders: value === null || value === void 0 ? void 0 : (_value$typeMap$type$s9 = value[(_typeMap$
|
|
28406
|
-
selectedSystemOrders: showChangeBtn ? [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28918
|
+
isShowSelectTradeGoods: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type54 = typeMap$2[type]) === null || _typeMap$type54 === void 0 ? void 0 : _typeMap$type54.isShowSelectTradeGoods,
|
|
28919
|
+
systemOrders: value === null || value === void 0 ? void 0 : (_value$typeMap$type$s9 = value[(_typeMap$type55 = typeMap$2[type]) === null || _typeMap$type55 === void 0 ? void 0 : _typeMap$type55.systemOrder]) === null || _value$typeMap$type$s9 === void 0 ? void 0 : _value$typeMap$type$s9.orders,
|
|
28920
|
+
selectedSystemOrders: showChangeBtn ? [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type56 = typeMap$2[type]) === null || _typeMap$type56 === void 0 ? void 0 : _typeMap$type56.systemOrderNo)]] : [],
|
|
28407
28921
|
tradeGoods: {
|
|
28408
28922
|
originDataSource: getGoodDetails({
|
|
28409
28923
|
mode: isStrict,
|
|
28410
|
-
isAllOrders: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28924
|
+
isAllOrders: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type57 = typeMap$2[type]) === null || _typeMap$type57 === void 0 ? void 0 : _typeMap$type57.isShowSelectTradeGoods
|
|
28411
28925
|
}),
|
|
28412
|
-
uniqueKey: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28926
|
+
uniqueKey: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type58 = typeMap$2[type]) === null || _typeMap$type58 === void 0 ? void 0 : _typeMap$type58.uniqueKey) || 'uuid',
|
|
28413
28927
|
selectedGoodsChange: selectedGoodsChange
|
|
28414
28928
|
}
|
|
28415
28929
|
})));
|