@kmkf-fe-packages/basic-components 2.3.14 → 2.3.16
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 +715 -122
- package/dist/index.js +715 -122
- 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/bs/component/GoodItem/index.d.ts +5 -1
- package/dist/src/constants/columnsBaseInfoMap.d.ts +2 -2
- package/package.json +3 -3
package/dist/index.esm.js
CHANGED
|
@@ -7936,7 +7936,8 @@ var IdentifyAddress = function IdentifyAddress(props) {
|
|
|
7936
7936
|
placeholder: "\u6536\u4EF6\u4EBA\u59D3\u540D",
|
|
7937
7937
|
allowClear: true,
|
|
7938
7938
|
onChange: function onChange(e) {
|
|
7939
|
-
|
|
7939
|
+
var _e$target$value;
|
|
7940
|
+
return changeHandle((_e$target$value = e.target.value) === null || _e$target$value === void 0 ? void 0 : _e$target$value.trim(), 'receiverName');
|
|
7940
7941
|
}
|
|
7941
7942
|
}), /*#__PURE__*/React.createElement(Input, {
|
|
7942
7943
|
value: value.receiverMobile,
|
|
@@ -7944,7 +7945,8 @@ var IdentifyAddress = function IdentifyAddress(props) {
|
|
|
7944
7945
|
allowClear: true,
|
|
7945
7946
|
placeholder: "\u6536\u4EF6\u4EBA\u7535\u8BDD",
|
|
7946
7947
|
onChange: function onChange(e) {
|
|
7947
|
-
|
|
7948
|
+
var _e$target$value2;
|
|
7949
|
+
return changeHandle((_e$target$value2 = e.target.value) === null || _e$target$value2 === void 0 ? void 0 : _e$target$value2.trim(), 'receiverMobile');
|
|
7948
7950
|
}
|
|
7949
7951
|
})), /*#__PURE__*/React.createElement(Space, {
|
|
7950
7952
|
wrap: true
|
|
@@ -7961,7 +7963,8 @@ var IdentifyAddress = function IdentifyAddress(props) {
|
|
|
7961
7963
|
placeholder: "\u8BE6\u7EC6\u5730\u5740",
|
|
7962
7964
|
allowClear: true,
|
|
7963
7965
|
onChange: function onChange(e) {
|
|
7964
|
-
|
|
7966
|
+
var _e$target$value3;
|
|
7967
|
+
return changeHandle((_e$target$value3 = e.target.value) === null || _e$target$value3 === void 0 ? void 0 : _e$target$value3.trim(), 'detail');
|
|
7965
7968
|
}
|
|
7966
7969
|
})));
|
|
7967
7970
|
};
|
|
@@ -8683,6 +8686,21 @@ var processErpSendGood = function processErpSendGood(getValue) {
|
|
|
8683
8686
|
return _defineProperty({}, nex.uniqueKey, (itemList === null || itemList === void 0 ? void 0 : itemList.length) ? itemList : initValue);
|
|
8684
8687
|
};
|
|
8685
8688
|
};
|
|
8689
|
+
var processErpReturnWarehouse = function processErpReturnWarehouse(getValue) {
|
|
8690
|
+
return function (nex, config) {
|
|
8691
|
+
var kmReturnWarehouseMap = {
|
|
8692
|
+
KM_RETURN_WAREHOUSE: {
|
|
8693
|
+
list: 'kmReturnWarehouse'
|
|
8694
|
+
}
|
|
8695
|
+
};
|
|
8696
|
+
var initValue = [{
|
|
8697
|
+
kmReturnWarehouseName: '',
|
|
8698
|
+
kmReturnWarehouseId: ''
|
|
8699
|
+
}];
|
|
8700
|
+
var itemList = jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_").concat(kmReturnWarehouseMap[nex.workOrderComponentType].list)), initValue);
|
|
8701
|
+
return _defineProperty({}, nex.uniqueKey, (itemList === null || itemList === void 0 ? void 0 : itemList.length) ? itemList : initValue);
|
|
8702
|
+
};
|
|
8703
|
+
};
|
|
8686
8704
|
var processBsPosting = function processBsPosting(getValue) {
|
|
8687
8705
|
return function (nex, config) {
|
|
8688
8706
|
var bsAddress = [transTextToNumber(getValue("".concat(nex.uniqueKey, "_bsPostingProvince"))), transTextToNumber(getValue("".concat(nex.uniqueKey, "_bsPostingCity")))];
|
|
@@ -8982,6 +9000,14 @@ var processWdtExchangeGoods = function processWdtExchangeGoods(getValue) {
|
|
|
8982
9000
|
});
|
|
8983
9001
|
};
|
|
8984
9002
|
};
|
|
9003
|
+
var processKmExchangeGoods = function processKmExchangeGoods(getValue) {
|
|
9004
|
+
return function (nex, config) {
|
|
9005
|
+
return _defineProperty({}, nex.uniqueKey, {
|
|
9006
|
+
kmExchangeGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_kmExchangeGoods")), []),
|
|
9007
|
+
shopCode: getValue("".concat(nex.uniqueKey, "_shopCode"))
|
|
9008
|
+
});
|
|
9009
|
+
};
|
|
9010
|
+
};
|
|
8985
9011
|
var processJstExchangeGoods = function processJstExchangeGoods(getValue) {
|
|
8986
9012
|
return function (nex, config) {
|
|
8987
9013
|
return _defineProperty({}, nex.uniqueKey, {
|
|
@@ -9198,6 +9224,28 @@ var processKmReissueGoods = function processKmReissueGoods(templateColumns) {
|
|
|
9198
9224
|
};
|
|
9199
9225
|
};
|
|
9200
9226
|
};
|
|
9227
|
+
var processKmReturnGoods = function processKmReturnGoods(templateColumns) {
|
|
9228
|
+
return function (getValue) {
|
|
9229
|
+
return function (nex, config) {
|
|
9230
|
+
var orderNo = '';
|
|
9231
|
+
var tradeId = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
|
|
9232
|
+
return col.workOrderComponentType === 'TRADE_ID_INPUT';
|
|
9233
|
+
});
|
|
9234
|
+
if (tradeId) {
|
|
9235
|
+
orderNo = getValue("".concat(tradeId.uniqueKey, "_").concat(updateWorkTypeKeys[tradeId.workOrderComponentType]));
|
|
9236
|
+
}
|
|
9237
|
+
return _defineProperty({}, nex.uniqueKey, {
|
|
9238
|
+
kmSystemOrder: {
|
|
9239
|
+
orderNo: orderNo
|
|
9240
|
+
},
|
|
9241
|
+
kmReturnType: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_kmReturnType")), !isNull(config === null || config === void 0 ? void 0 : config.initReason) ? [config.initReason] : ['1']),
|
|
9242
|
+
kmReturnGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_kmReturnGoods")), []),
|
|
9243
|
+
shopCode: getValue("".concat(nex.uniqueKey, "_shopCode")),
|
|
9244
|
+
kmSystemOrderNo: getValue("".concat(nex.uniqueKey, "_kmSystemOrderNo"))
|
|
9245
|
+
});
|
|
9246
|
+
};
|
|
9247
|
+
};
|
|
9248
|
+
};
|
|
9201
9249
|
var processGyReissueGoods = function processGyReissueGoods(templateColumns) {
|
|
9202
9250
|
return function (getValue) {
|
|
9203
9251
|
return function (nex, config) {
|
|
@@ -9291,14 +9339,14 @@ var processJstReturnGoods = function processJstReturnGoods(templateColumns) {
|
|
|
9291
9339
|
};
|
|
9292
9340
|
var processLabel = function processLabel(getValue) {
|
|
9293
9341
|
return function (nex, config) {
|
|
9294
|
-
var
|
|
9295
|
-
return
|
|
9342
|
+
var _ref77;
|
|
9343
|
+
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;
|
|
9296
9344
|
};
|
|
9297
9345
|
};
|
|
9298
9346
|
var processMemberLevel = function processMemberLevel(getValue) {
|
|
9299
9347
|
return function (nex, config) {
|
|
9300
|
-
var
|
|
9301
|
-
return
|
|
9348
|
+
var _ref78;
|
|
9349
|
+
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;
|
|
9302
9350
|
};
|
|
9303
9351
|
};
|
|
9304
9352
|
var processAfterSalesOrderId = function processAfterSalesOrderId(getValue) {
|
|
@@ -9415,6 +9463,7 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
|
|
|
9415
9463
|
BS_E3_SEND_GOOD: processErpSendGood,
|
|
9416
9464
|
KM_SEND_GOOD: processErpSendGood,
|
|
9417
9465
|
GY_SEND_GOOD: processErpSendGood,
|
|
9466
|
+
KM_RETURN_WAREHOUSE: processErpReturnWarehouse,
|
|
9418
9467
|
BS_POSTING: processBsPosting,
|
|
9419
9468
|
BS_GOODS: processBsGoods,
|
|
9420
9469
|
WDT_GOODS: processWdtGoods(templateColumns),
|
|
@@ -9425,10 +9474,12 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
|
|
|
9425
9474
|
GY_GOODS: processGyGoods(templateColumns),
|
|
9426
9475
|
KM_GOODS: processKmGoods(templateColumns),
|
|
9427
9476
|
KM_REISSUE_GOODS: processKmReissueGoods(templateColumns),
|
|
9477
|
+
KM_RETURN_GOODS: processKmReturnGoods(templateColumns),
|
|
9428
9478
|
JST_GOODS: processJstGoods(templateColumns),
|
|
9429
9479
|
BS_REISSUE_GOODS: processBsReissueGoods,
|
|
9430
9480
|
BS_EXCHANGE_GOODS: processBsExchangeGoods,
|
|
9431
9481
|
WDT_EXCHANGE_GOODS: processWdtExchangeGoods,
|
|
9482
|
+
KM_EXCHANGE_GOODS: processKmExchangeGoods,
|
|
9432
9483
|
JST_EXCHANGE_GOODS: processJstExchangeGoods,
|
|
9433
9484
|
BS_RETURN_GOODS: processBsReturnGoods,
|
|
9434
9485
|
WDT_RETURN_GOODS: processWdtReturnGoods(),
|
|
@@ -10728,7 +10779,8 @@ var BuyerNick = function BuyerNick(props) {
|
|
|
10728
10779
|
disabled = props.disabled,
|
|
10729
10780
|
_onBlur = props.onBlur;
|
|
10730
10781
|
var changeValue = function changeValue(e, type) {
|
|
10731
|
-
|
|
10782
|
+
var _e$target$value;
|
|
10783
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, type, (_e$target$value = e.target.value) === null || _e$target$value === void 0 ? void 0 : _e$target$value.trim())));
|
|
10732
10784
|
};
|
|
10733
10785
|
// useEffect(() => {
|
|
10734
10786
|
// //淘宝平台和抖音平台需要展示买家id
|
|
@@ -10753,7 +10805,8 @@ var BuyerNick = function BuyerNick(props) {
|
|
|
10753
10805
|
changeValue(e, 'buyerNick');
|
|
10754
10806
|
},
|
|
10755
10807
|
onBlur: function onBlur(e) {
|
|
10756
|
-
|
|
10808
|
+
var _e$target$value2;
|
|
10809
|
+
_onBlur === null || _onBlur === void 0 ? void 0 : _onBlur((_e$target$value2 = e.target.value) === null || _e$target$value2 === void 0 ? void 0 : _e$target$value2.trim(), 'buyerNick');
|
|
10757
10810
|
}
|
|
10758
10811
|
});
|
|
10759
10812
|
};
|
|
@@ -10875,8 +10928,9 @@ var RemarkInput = function RemarkInput(props) {
|
|
|
10875
10928
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
10876
10929
|
};
|
|
10877
10930
|
var changeRemark = function changeRemark(e) {
|
|
10931
|
+
var _e$target$value;
|
|
10878
10932
|
var newValue = _objectSpread2(_objectSpread2({}, value), {}, {
|
|
10879
|
-
remark: e.target.value
|
|
10933
|
+
remark: (_e$target$value = e.target.value) === null || _e$target$value === void 0 ? void 0 : _e$target$value.trim()
|
|
10880
10934
|
});
|
|
10881
10935
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
10882
10936
|
};
|
|
@@ -10919,7 +10973,7 @@ var Logistics = function Logistics(props) {
|
|
|
10919
10973
|
var handleInputChange = function handleInputChange(e) {
|
|
10920
10974
|
var val = e.target.value;
|
|
10921
10975
|
typeof onChange === 'function' && onChange(_objectSpread2(_objectSpread2({}, value), {}, {
|
|
10922
|
-
order: val
|
|
10976
|
+
order: val === null || val === void 0 ? void 0 : val.trim()
|
|
10923
10977
|
}));
|
|
10924
10978
|
};
|
|
10925
10979
|
var handelSelectChange = function handelSelectChange(val) {
|
|
@@ -10983,7 +11037,8 @@ var AliPay = function AliPay(props) {
|
|
|
10983
11037
|
disabled = props.disabled,
|
|
10984
11038
|
_onBlur = props.onBlur;
|
|
10985
11039
|
var changeValue = function changeValue(e, type) {
|
|
10986
|
-
|
|
11040
|
+
var _e$target$value;
|
|
11041
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, type, (_e$target$value = e.target.value) === null || _e$target$value === void 0 ? void 0 : _e$target$value.trim())));
|
|
10987
11042
|
};
|
|
10988
11043
|
return /*#__PURE__*/React.createElement("div", null, !isSingle ? /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Input, {
|
|
10989
11044
|
disabled: disabled,
|
|
@@ -12654,7 +12709,8 @@ var Invoice = function Invoice(props) {
|
|
|
12654
12709
|
}),
|
|
12655
12710
|
current = _useRef.current;
|
|
12656
12711
|
var handleInputChange = function handleInputChange(e) {
|
|
12657
|
-
var
|
|
12712
|
+
var _e$target$value;
|
|
12713
|
+
var ordinaryTaitou = (_e$target$value = e.target.value) === null || _e$target$value === void 0 ? void 0 : _e$target$value.trim();
|
|
12658
12714
|
setVisible(false);
|
|
12659
12715
|
setList([]);
|
|
12660
12716
|
var newValue = _objectSpread2(_objectSpread2({}, value), {}, {
|
|
@@ -12677,8 +12733,9 @@ var Invoice = function Invoice(props) {
|
|
|
12677
12733
|
handleChange(ordinaryTaitou);
|
|
12678
12734
|
};
|
|
12679
12735
|
var handleValueClick = function handleValueClick(e) {
|
|
12736
|
+
var _e$target$value2;
|
|
12680
12737
|
var newValue = _objectSpread2(_objectSpread2({}, value), {}, {
|
|
12681
|
-
ordinarySerial: e.target.value
|
|
12738
|
+
ordinarySerial: (_e$target$value2 = e.target.value) === null || _e$target$value2 === void 0 ? void 0 : _e$target$value2.trim()
|
|
12682
12739
|
});
|
|
12683
12740
|
onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2({}, newValue));
|
|
12684
12741
|
};
|
|
@@ -12989,7 +13046,8 @@ var Payment = function Payment(props) {
|
|
|
12989
13046
|
// }
|
|
12990
13047
|
// }, [shopId, shopList]);
|
|
12991
13048
|
var changeValue = function changeValue(e, type) {
|
|
12992
|
-
var
|
|
13049
|
+
var _e$target$value;
|
|
13050
|
+
var newValue = _objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, type, (_e$target$value = e.target.value) === null || _e$target$value === void 0 ? void 0 : _e$target$value.trim()));
|
|
12993
13051
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
12994
13052
|
type === 'enterprisePaymentTid' && (onSearch === null || onSearch === void 0 ? void 0 : onSearch(e));
|
|
12995
13053
|
};
|
|
@@ -13050,7 +13108,8 @@ var Payment = function Payment(props) {
|
|
|
13050
13108
|
return changeValue(e, item.name);
|
|
13051
13109
|
},
|
|
13052
13110
|
onBlur: function onBlur(e) {
|
|
13053
|
-
|
|
13111
|
+
var _e$target$value2;
|
|
13112
|
+
return _onBlur === null || _onBlur === void 0 ? void 0 : _onBlur((_e$target$value2 = e.target.value) === null || _e$target$value2 === void 0 ? void 0 : _e$target$value2.trim(), item.name);
|
|
13054
13113
|
}
|
|
13055
13114
|
}), (replaceValueCh === null || replaceValueCh === void 0 ? void 0 : replaceValueCh[item.name]) && /*#__PURE__*/React.createElement("p", {
|
|
13056
13115
|
style: {
|
|
@@ -13343,7 +13402,8 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
13343
13402
|
disabled: disabled || isEdit,
|
|
13344
13403
|
placeholder: "\u7269\u6D41\u5355\u53F7",
|
|
13345
13404
|
onChange: function onChange(e) {
|
|
13346
|
-
|
|
13405
|
+
var _e$target$value;
|
|
13406
|
+
return changeHandle((_e$target$value = e.target.value) === null || _e$target$value === void 0 ? void 0 : _e$target$value.trim(), 'interceptCode');
|
|
13347
13407
|
},
|
|
13348
13408
|
value: value === null || value === void 0 ? void 0 : value.interceptCode
|
|
13349
13409
|
}))), /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Item, {
|
|
@@ -13418,7 +13478,8 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
13418
13478
|
disabled: disabled || isEdit,
|
|
13419
13479
|
placeholder: senderMobileLabel,
|
|
13420
13480
|
onChange: function onChange(e) {
|
|
13421
|
-
|
|
13481
|
+
var _e$target$value2;
|
|
13482
|
+
return changeHandle((_e$target$value2 = e.target.value) === null || _e$target$value2 === void 0 ? void 0 : _e$target$value2.trim(), 'interceptSenderMobile');
|
|
13422
13483
|
}
|
|
13423
13484
|
})), /*#__PURE__*/React.createElement(Item, {
|
|
13424
13485
|
label: '退回地址',
|
|
@@ -13477,7 +13538,8 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
13477
13538
|
},
|
|
13478
13539
|
placeholder: "\u5176\u4ED6",
|
|
13479
13540
|
onChange: function onChange(e) {
|
|
13480
|
-
|
|
13541
|
+
var _e$target$value3;
|
|
13542
|
+
return changeHandle((_e$target$value3 = e.target.value) === null || _e$target$value3 === void 0 ? void 0 : _e$target$value3.trim(), 'interceptLogisticsStatusOther');
|
|
13481
13543
|
}
|
|
13482
13544
|
})), /*#__PURE__*/React.createElement(Item, {
|
|
13483
13545
|
label: '拦截状态',
|
|
@@ -13531,7 +13593,8 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
13531
13593
|
disabled: true,
|
|
13532
13594
|
placeholder: "\u63A5\u53E3\u72B6\u6001\u539F\u56E0",
|
|
13533
13595
|
onChange: function onChange(e) {
|
|
13534
|
-
|
|
13596
|
+
var _e$target$value4;
|
|
13597
|
+
return changeHandle((_e$target$value4 = e.target.value) === null || _e$target$value4 === void 0 ? void 0 : _e$target$value4.trim(), 'interceptLogisticsApiStatusReason');
|
|
13535
13598
|
}
|
|
13536
13599
|
})));
|
|
13537
13600
|
};
|
|
@@ -13607,7 +13670,7 @@ var LogisticsTrajectory = function LogisticsTrajectory(props) {
|
|
|
13607
13670
|
trajectoryApiStatus = _props$trajectoryApiS === void 0 ? false : _props$trajectoryApiS;
|
|
13608
13671
|
var handleInputChange = function handleInputChange(e, type) {
|
|
13609
13672
|
var val = e.target.value;
|
|
13610
|
-
typeof onChange === 'function' && onChange(_objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, type, val)));
|
|
13673
|
+
typeof onChange === 'function' && onChange(_objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, type, val === null || val === void 0 ? void 0 : val.trim())));
|
|
13611
13674
|
};
|
|
13612
13675
|
var handelSelectChange = function handelSelectChange(val) {
|
|
13613
13676
|
typeof onChange === 'function' && onChange(_objectSpread2(_objectSpread2({}, value), {}, {
|
|
@@ -14007,10 +14070,14 @@ var typeInitValueMap = {
|
|
|
14007
14070
|
}],
|
|
14008
14071
|
4: [{
|
|
14009
14072
|
deliveryNo: null
|
|
14073
|
+
}],
|
|
14074
|
+
5: [{
|
|
14075
|
+
returnWarehouseName: null,
|
|
14076
|
+
returnWarehouseId: null
|
|
14010
14077
|
}]
|
|
14011
14078
|
};
|
|
14012
14079
|
var jstGoods = function jstGoods(props) {
|
|
14013
|
-
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;
|
|
14080
|
+
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;
|
|
14014
14081
|
var _props$value = props.value,
|
|
14015
14082
|
value = _props$value === void 0 ? [] : _props$value,
|
|
14016
14083
|
onChange = props.onChange,
|
|
@@ -14083,13 +14150,28 @@ var jstGoods = function jstGoods(props) {
|
|
|
14083
14150
|
newList[changeIndex] = changeOrderInfo;
|
|
14084
14151
|
onChange === null || onChange === void 0 ? void 0 : onChange(newList);
|
|
14085
14152
|
};
|
|
14153
|
+
var handleSelectedReturn = function handleSelectedReturn(val, type, option, onlyShowFieldSelect) {
|
|
14154
|
+
var changeOrderInfo = _objectSpread2({}, value[changeIndex]);
|
|
14155
|
+
changeOrderInfo[type] = val;
|
|
14156
|
+
if (!onlyShowFieldSelect) {
|
|
14157
|
+
changeOrderInfo['returnWarehouseId'] = option.value;
|
|
14158
|
+
}
|
|
14159
|
+
if (isSelectName && type === 'returnWarehouseName') {
|
|
14160
|
+
// 如果发货仓名称存的是name,将id存入快照,同时把id替换成名称
|
|
14161
|
+
changeOrderInfo['sendSnapshotId'] = option.value;
|
|
14162
|
+
changeOrderInfo['returnWarehouseName'] = option.label;
|
|
14163
|
+
}
|
|
14164
|
+
var newList = _toConsumableArray(value);
|
|
14165
|
+
newList[changeIndex] = changeOrderInfo;
|
|
14166
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(newList);
|
|
14167
|
+
};
|
|
14086
14168
|
var filterOption = function filterOption(input, option) {
|
|
14087
14169
|
var _option$label;
|
|
14088
14170
|
return ((_option$label = option === null || option === void 0 ? void 0 : option.label) !== null && _option$label !== void 0 ? _option$label : '').includes(input);
|
|
14089
14171
|
};
|
|
14090
14172
|
var changeInputHandle = function changeInputHandle(val, type) {
|
|
14091
14173
|
var changeOrderInfo = _objectSpread2({}, value[changeIndex]);
|
|
14092
|
-
changeOrderInfo[type] = val;
|
|
14174
|
+
changeOrderInfo[type] = val === null || val === void 0 ? void 0 : val.trim();
|
|
14093
14175
|
var newList = _toConsumableArray(value);
|
|
14094
14176
|
newList[changeIndex] = changeOrderInfo;
|
|
14095
14177
|
onChange === null || onChange === void 0 ? void 0 : onChange(newList);
|
|
@@ -14197,7 +14279,35 @@ var jstGoods = function jstGoods(props) {
|
|
|
14197
14279
|
return changeInputHandle(e.target.value, 'deliveryNo');
|
|
14198
14280
|
},
|
|
14199
14281
|
value: (_value$changeIndex13 = value[changeIndex]) === null || _value$changeIndex13 === void 0 ? void 0 : _value$changeIndex13.sendName
|
|
14200
|
-
})) : null
|
|
14282
|
+
})) : null, type === 5 ? /*#__PURE__*/React.createElement(Space, null, ['returnWarehouseId', 'all'].includes(showField) && /*#__PURE__*/React.createElement(Input, {
|
|
14283
|
+
disabled: disabled,
|
|
14284
|
+
placeholder: "\u8BF7\u8F93\u5165\u9000\u8D27\u4ED3\u7F16\u7801",
|
|
14285
|
+
onChange: function onChange(e) {
|
|
14286
|
+
return changeInputHandle(e.target.value, 'returnWarehouseId');
|
|
14287
|
+
},
|
|
14288
|
+
value: (_value$changeIndex14 = value[changeIndex]) === null || _value$changeIndex14 === void 0 ? void 0 : _value$changeIndex14.returnWarehouseId
|
|
14289
|
+
}), ['returnWarehouseName', 'all'].includes(showField) && (isSelectName ? /*#__PURE__*/React.createElement(Select, {
|
|
14290
|
+
style: {
|
|
14291
|
+
minWidth: '100px',
|
|
14292
|
+
maxWidth: '180px'
|
|
14293
|
+
},
|
|
14294
|
+
disabled: disabled,
|
|
14295
|
+
placeholder: "\u9000\u8D27\u4ED3\u540D\u79F0",
|
|
14296
|
+
showSearch: true,
|
|
14297
|
+
options: sendOptions,
|
|
14298
|
+
filterOption: filterOption,
|
|
14299
|
+
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,
|
|
14300
|
+
onChange: function onChange(value, option) {
|
|
14301
|
+
return handleSelectedReturn(value, 'returnWarehouseName', option, onlyShowFieldSelect);
|
|
14302
|
+
}
|
|
14303
|
+
}) : /*#__PURE__*/React.createElement(Input, {
|
|
14304
|
+
disabled: disabled,
|
|
14305
|
+
placeholder: "\u8BF7\u8F93\u5165\u9000\u8D27\u4ED3\u540D\u79F0",
|
|
14306
|
+
onChange: function onChange(e) {
|
|
14307
|
+
return changeInputHandle(e.target.value, 'returnWarehouseName');
|
|
14308
|
+
},
|
|
14309
|
+
value: (_value$changeIndex17 = value[changeIndex]) === null || _value$changeIndex17 === void 0 ? void 0 : _value$changeIndex17.returnWarehouseName
|
|
14310
|
+
}))) : null) : null);
|
|
14201
14311
|
};
|
|
14202
14312
|
|
|
14203
14313
|
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";
|
|
@@ -21666,16 +21776,28 @@ function toNum$3(value) {
|
|
|
21666
21776
|
}
|
|
21667
21777
|
return void 0;
|
|
21668
21778
|
}
|
|
21669
|
-
var
|
|
21670
|
-
|
|
21779
|
+
var isNumberOrNumberString$2 = function isNumberOrNumberString(value) {
|
|
21780
|
+
if (typeof value === 'number') return true;
|
|
21781
|
+
if (typeof value === 'string' && !isNaN(Number(value)) && value.trim() !== '') return true;
|
|
21782
|
+
return false;
|
|
21783
|
+
};
|
|
21784
|
+
var getColumns$6 = function getColumns() {
|
|
21785
|
+
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
21786
|
+
_ref$text = _ref.text,
|
|
21671
21787
|
disabled = _ref.disabled,
|
|
21672
|
-
updateHandle = _ref.updateHandle
|
|
21788
|
+
updateHandle = _ref.updateHandle,
|
|
21789
|
+
updateDataHandle = _ref.updateDataHandle;
|
|
21673
21790
|
return {
|
|
21674
21791
|
KM_GOODS: [{
|
|
21675
21792
|
dataIndex: 'skuPropertiesName',
|
|
21676
21793
|
title: "\u89C4\u683C\u540D\u79F0",
|
|
21677
21794
|
width: 250,
|
|
21678
21795
|
render: renderTextEllipsis
|
|
21796
|
+
}, {
|
|
21797
|
+
dataIndex: 'sysSkuPropertiesName',
|
|
21798
|
+
title: "\u7CFB\u7EDF\u89C4\u683C\u540D\u79F0",
|
|
21799
|
+
width: 150,
|
|
21800
|
+
render: renderTextEllipsis
|
|
21679
21801
|
}, {
|
|
21680
21802
|
dataIndex: 'sysTitle',
|
|
21681
21803
|
title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
|
|
@@ -21783,6 +21905,11 @@ var getColumns$6 = function getColumns(_ref) {
|
|
|
21783
21905
|
title: "\u4F9B\u5E94\u5546\u7F16\u7801",
|
|
21784
21906
|
width: 150,
|
|
21785
21907
|
render: renderTextEllipsis
|
|
21908
|
+
}, {
|
|
21909
|
+
dataIndex: 'remark',
|
|
21910
|
+
title: "\u5907\u6CE8",
|
|
21911
|
+
width: 200,
|
|
21912
|
+
render: renderTextEllipsis
|
|
21786
21913
|
}].map(function (item) {
|
|
21787
21914
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
21788
21915
|
align: 'center',
|
|
@@ -21794,6 +21921,11 @@ var getColumns$6 = function getColumns(_ref) {
|
|
|
21794
21921
|
title: "\u89C4\u683C\u540D\u79F0",
|
|
21795
21922
|
width: 250,
|
|
21796
21923
|
render: renderTextEllipsis
|
|
21924
|
+
}, {
|
|
21925
|
+
dataIndex: 'sysSkuPropertiesName',
|
|
21926
|
+
title: "\u7CFB\u7EDF\u89C4\u683C\u540D\u79F0",
|
|
21927
|
+
width: 150,
|
|
21928
|
+
render: renderTextEllipsis
|
|
21797
21929
|
}, {
|
|
21798
21930
|
dataIndex: 'sysTitle',
|
|
21799
21931
|
title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
|
|
@@ -21838,7 +21970,9 @@ var getColumns$6 = function getColumns(_ref) {
|
|
|
21838
21970
|
dataIndex: 'realNum',
|
|
21839
21971
|
title: "\u5B9E\u9645\u8865\u53D1\u6570\u91CF",
|
|
21840
21972
|
width: 100,
|
|
21841
|
-
validator: function validator(_rule, value) {
|
|
21973
|
+
validator: function validator(_rule, value, extraParams) {
|
|
21974
|
+
console.log('实际补发数量-extraParams', extraParams);
|
|
21975
|
+
if (!(extraParams === null || extraParams === void 0 ? void 0 : extraParams.quantityVerify)) return undefined;
|
|
21842
21976
|
var title = '';
|
|
21843
21977
|
if (((value === null || value === void 0 ? void 0 : value.kmReissueGoods) || []).some(function (goods) {
|
|
21844
21978
|
var realNum = toNum$3(goods === null || goods === void 0 ? void 0 : goods.realNum);
|
|
@@ -21866,8 +22000,21 @@ var getColumns$6 = function getColumns(_ref) {
|
|
|
21866
22000
|
}
|
|
21867
22001
|
}, {
|
|
21868
22002
|
dataIndex: 'desiredNum',
|
|
21869
|
-
title: "\
|
|
22003
|
+
title: "\u7533\u8BF7\u8865\u53D1\u6570\u91CF",
|
|
21870
22004
|
width: 100,
|
|
22005
|
+
validator: function validator(_rule, value) {
|
|
22006
|
+
var title = '';
|
|
22007
|
+
if (((value === null || value === void 0 ? void 0 : value.kmReissueGoods) || []).some(function (goods) {
|
|
22008
|
+
var desiredNum = toNum$3(goods === null || goods === void 0 ? void 0 : goods.desiredNum);
|
|
22009
|
+
var res = typeof desiredNum === 'number' ? desiredNum < 1 : true;
|
|
22010
|
+
if (res) {
|
|
22011
|
+
title = (goods === null || goods === void 0 ? void 0 : goods.goodName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodName, "]") : '';
|
|
22012
|
+
}
|
|
22013
|
+
return res;
|
|
22014
|
+
})) {
|
|
22015
|
+
return Promise.reject("".concat(title, "\u7533\u8BF7\u8865\u53D1\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
|
|
22016
|
+
}
|
|
22017
|
+
},
|
|
21871
22018
|
render: function render(val, record, index) {
|
|
21872
22019
|
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
21873
22020
|
style: {
|
|
@@ -21936,11 +22083,336 @@ var getColumns$6 = function getColumns(_ref) {
|
|
|
21936
22083
|
align: 'center',
|
|
21937
22084
|
ellipsis: true
|
|
21938
22085
|
});
|
|
22086
|
+
}),
|
|
22087
|
+
KM_RETURN_GOODS: [{
|
|
22088
|
+
dataIndex: 'skuPropertiesName',
|
|
22089
|
+
title: "\u89C4\u683C\u540D\u79F0",
|
|
22090
|
+
width: 250,
|
|
22091
|
+
render: renderTextEllipsis
|
|
22092
|
+
}, {
|
|
22093
|
+
dataIndex: 'sysSkuPropertiesName',
|
|
22094
|
+
title: "\u7CFB\u7EDF\u89C4\u683C\u540D\u79F0",
|
|
22095
|
+
width: 150,
|
|
22096
|
+
render: renderTextEllipsis
|
|
22097
|
+
}, {
|
|
22098
|
+
dataIndex: 'sysTitle',
|
|
22099
|
+
title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
|
|
22100
|
+
width: 150,
|
|
22101
|
+
render: renderTextEllipsis
|
|
22102
|
+
}, {
|
|
22103
|
+
dataIndex: 'shortTitle',
|
|
22104
|
+
title: "\u5546\u54C1\u7B80\u79F0",
|
|
22105
|
+
width: 150,
|
|
22106
|
+
render: renderTextEllipsis
|
|
22107
|
+
}, {
|
|
22108
|
+
dataIndex: 'title',
|
|
22109
|
+
title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
|
|
22110
|
+
width: 150,
|
|
22111
|
+
render: renderTextEllipsis
|
|
22112
|
+
}, {
|
|
22113
|
+
dataIndex: 'sysOuterId',
|
|
22114
|
+
title: "\u7CFB\u7EDF\u5546\u5BB6\u7F16\u7801",
|
|
22115
|
+
width: 150,
|
|
22116
|
+
render: renderTextEllipsis
|
|
22117
|
+
}, {
|
|
22118
|
+
dataIndex: 'itemSysId',
|
|
22119
|
+
title: "\u7CFB\u7EDF\u5546\u54C1ID",
|
|
22120
|
+
width: 150,
|
|
22121
|
+
render: renderTextEllipsis
|
|
22122
|
+
}, {
|
|
22123
|
+
dataIndex: 'skuSysId',
|
|
22124
|
+
title: "\u7CFB\u7EDF\u89C4\u683CID",
|
|
22125
|
+
width: 150,
|
|
22126
|
+
render: renderTextEllipsis
|
|
22127
|
+
}, {
|
|
22128
|
+
dataIndex: 'skuId',
|
|
22129
|
+
title: "\u5E73\u53F0\u89C4\u683CID",
|
|
22130
|
+
width: 170,
|
|
22131
|
+
render: renderTextEllipsis
|
|
22132
|
+
}, {
|
|
22133
|
+
dataIndex: 'outerSkuId',
|
|
22134
|
+
title: "\u5E73\u53F0\u89C4\u683C\u7F16\u7801",
|
|
22135
|
+
width: 170,
|
|
22136
|
+
render: renderTextEllipsis
|
|
22137
|
+
}, {
|
|
22138
|
+
dataIndex: 'realNum',
|
|
22139
|
+
title: "\u5B9E\u9645\u9000\u8D27\u6570\u91CF",
|
|
22140
|
+
width: 100,
|
|
22141
|
+
render: function render(val, record, index) {
|
|
22142
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
22143
|
+
style: {
|
|
22144
|
+
width: 70
|
|
22145
|
+
},
|
|
22146
|
+
value: val,
|
|
22147
|
+
min: 1,
|
|
22148
|
+
precision: 0,
|
|
22149
|
+
onChange: function onChange(num) {
|
|
22150
|
+
updateDataHandle({
|
|
22151
|
+
realNum: num,
|
|
22152
|
+
refundMoney: num && isNumberOrNumberString$2(record.price) ? num * record.price : null
|
|
22153
|
+
}, index);
|
|
22154
|
+
}
|
|
22155
|
+
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
22156
|
+
}
|
|
22157
|
+
}, {
|
|
22158
|
+
dataIndex: 'desiredNum',
|
|
22159
|
+
title: "\u7533\u8BF7\u9000\u8D27\u6570\u91CF",
|
|
22160
|
+
width: 100,
|
|
22161
|
+
validator: function validator(_rule, value) {
|
|
22162
|
+
var title = '';
|
|
22163
|
+
if (((value === null || value === void 0 ? void 0 : value.kmReturnGoods) || []).some(function (goods) {
|
|
22164
|
+
var desiredNum = toNum$3(goods === null || goods === void 0 ? void 0 : goods.desiredNum);
|
|
22165
|
+
var res = typeof desiredNum === 'number' ? desiredNum < 1 : true;
|
|
22166
|
+
if (res) {
|
|
22167
|
+
title = (goods === null || goods === void 0 ? void 0 : goods.goodName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodName, "]") : '';
|
|
22168
|
+
}
|
|
22169
|
+
return res;
|
|
22170
|
+
})) {
|
|
22171
|
+
return Promise.reject("".concat(title, "\u7533\u8BF7\u9000\u8D27\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
|
|
22172
|
+
}
|
|
22173
|
+
},
|
|
22174
|
+
render: function render(val, record, index) {
|
|
22175
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
22176
|
+
style: {
|
|
22177
|
+
width: 70
|
|
22178
|
+
},
|
|
22179
|
+
value: val,
|
|
22180
|
+
min: 1,
|
|
22181
|
+
precision: 0,
|
|
22182
|
+
onChange: function onChange(num) {
|
|
22183
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'desiredNum');
|
|
22184
|
+
}
|
|
22185
|
+
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
22186
|
+
}
|
|
22187
|
+
}, {
|
|
22188
|
+
dataIndex: 'goodNum',
|
|
22189
|
+
title: "\u826F\u54C1\u6570",
|
|
22190
|
+
width: 100,
|
|
22191
|
+
render: function render(val, record, index) {
|
|
22192
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
22193
|
+
style: {
|
|
22194
|
+
width: 70
|
|
22195
|
+
},
|
|
22196
|
+
value: val,
|
|
22197
|
+
min: 1,
|
|
22198
|
+
precision: 0,
|
|
22199
|
+
onChange: function onChange(num) {
|
|
22200
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'goodNum');
|
|
22201
|
+
}
|
|
22202
|
+
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
22203
|
+
}
|
|
22204
|
+
}, {
|
|
22205
|
+
dataIndex: 'defectiveNum',
|
|
22206
|
+
title: "\u6B21\u54C1\u6570",
|
|
22207
|
+
width: 100,
|
|
22208
|
+
render: function render(val, record, index) {
|
|
22209
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
22210
|
+
style: {
|
|
22211
|
+
width: 70
|
|
22212
|
+
},
|
|
22213
|
+
value: val,
|
|
22214
|
+
min: 1,
|
|
22215
|
+
precision: 0,
|
|
22216
|
+
onChange: function onChange(num) {
|
|
22217
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'defectiveNum');
|
|
22218
|
+
}
|
|
22219
|
+
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
22220
|
+
}
|
|
22221
|
+
}, {
|
|
22222
|
+
dataIndex: 'price',
|
|
22223
|
+
title: "\u5546\u54C1\u9500\u552E\u4EF7",
|
|
22224
|
+
width: 150,
|
|
22225
|
+
render: function render(val) {
|
|
22226
|
+
return val || val === 0 ? Number(val).toFixed(2) : '';
|
|
22227
|
+
}
|
|
22228
|
+
}, {
|
|
22229
|
+
dataIndex: 'refundMoney',
|
|
22230
|
+
title: "\u5B9E\u9000\u91D1\u989D",
|
|
22231
|
+
width: 150,
|
|
22232
|
+
render: function render(val, record, index) {
|
|
22233
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
22234
|
+
style: {
|
|
22235
|
+
width: 130
|
|
22236
|
+
},
|
|
22237
|
+
value: val,
|
|
22238
|
+
min: 0,
|
|
22239
|
+
precision: 2,
|
|
22240
|
+
onChange: function onChange(num) {
|
|
22241
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'refundMoney');
|
|
22242
|
+
}
|
|
22243
|
+
}) : /*#__PURE__*/React.createElement("span", null, val || val === 0 ? Number(val).toFixed(2) : '');
|
|
22244
|
+
}
|
|
22245
|
+
}, {
|
|
22246
|
+
dataIndex: 'type',
|
|
22247
|
+
title: "\u5546\u54C1\u7C7B\u578B",
|
|
22248
|
+
width: 150,
|
|
22249
|
+
render: renderTextEllipsis
|
|
22250
|
+
}, {
|
|
22251
|
+
dataIndex: 'sysPicPath',
|
|
22252
|
+
title: "\u5546\u54C1\u56FE\u7247",
|
|
22253
|
+
width: 100,
|
|
22254
|
+
headerComponentType: 'pic',
|
|
22255
|
+
render: function render(val) {
|
|
22256
|
+
var imgUrl = (val === null || val === void 0 ? void 0 : val.startsWith('http')) ? val : "https://erp.superboss.cc".concat(val);
|
|
22257
|
+
return /*#__PURE__*/React.createElement(Image, {
|
|
22258
|
+
width: 30,
|
|
22259
|
+
src: imgUrl
|
|
22260
|
+
});
|
|
22261
|
+
}
|
|
22262
|
+
}].map(function (item) {
|
|
22263
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
22264
|
+
align: 'center',
|
|
22265
|
+
ellipsis: true
|
|
22266
|
+
});
|
|
22267
|
+
}),
|
|
22268
|
+
KM_EXCHANGE_GOODS: [{
|
|
22269
|
+
dataIndex: 'skuPropertiesName',
|
|
22270
|
+
title: "\u89C4\u683C\u540D\u79F0",
|
|
22271
|
+
width: 250,
|
|
22272
|
+
render: renderTextEllipsis
|
|
22273
|
+
}, {
|
|
22274
|
+
dataIndex: 'sysSkuPropertiesName',
|
|
22275
|
+
title: "\u7CFB\u7EDF\u89C4\u683C\u540D\u79F0",
|
|
22276
|
+
width: 150,
|
|
22277
|
+
render: renderTextEllipsis
|
|
22278
|
+
}, {
|
|
22279
|
+
dataIndex: 'sysTitle',
|
|
22280
|
+
title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
|
|
22281
|
+
width: 150,
|
|
22282
|
+
render: renderTextEllipsis
|
|
22283
|
+
}, {
|
|
22284
|
+
dataIndex: 'shortTitle',
|
|
22285
|
+
title: "\u5546\u54C1\u7B80\u79F0",
|
|
22286
|
+
width: 150,
|
|
22287
|
+
render: renderTextEllipsis
|
|
22288
|
+
}, {
|
|
22289
|
+
dataIndex: 'title',
|
|
22290
|
+
title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
|
|
22291
|
+
width: 150,
|
|
22292
|
+
render: renderTextEllipsis
|
|
22293
|
+
}, {
|
|
22294
|
+
dataIndex: 'sysOuterId',
|
|
22295
|
+
title: "\u7CFB\u7EDF\u5546\u5BB6\u7F16\u7801",
|
|
22296
|
+
width: 150,
|
|
22297
|
+
render: renderTextEllipsis
|
|
22298
|
+
}, {
|
|
22299
|
+
dataIndex: 'itemSysId',
|
|
22300
|
+
title: "\u7CFB\u7EDF\u5546\u54C1ID",
|
|
22301
|
+
width: 150,
|
|
22302
|
+
render: renderTextEllipsis
|
|
22303
|
+
}, {
|
|
22304
|
+
dataIndex: 'skuSysId',
|
|
22305
|
+
title: "\u7CFB\u7EDF\u89C4\u683CID",
|
|
22306
|
+
width: 150,
|
|
22307
|
+
render: renderTextEllipsis
|
|
22308
|
+
}, {
|
|
22309
|
+
dataIndex: 'skuId',
|
|
22310
|
+
title: "\u5E73\u53F0\u89C4\u683CID",
|
|
22311
|
+
width: 170,
|
|
22312
|
+
render: renderTextEllipsis
|
|
22313
|
+
}, {
|
|
22314
|
+
dataIndex: 'outerSkuId',
|
|
22315
|
+
title: "\u5E73\u53F0\u89C4\u683C\u7F16\u7801",
|
|
22316
|
+
width: 170,
|
|
22317
|
+
render: renderTextEllipsis
|
|
22318
|
+
}, {
|
|
22319
|
+
dataIndex: 'realNum',
|
|
22320
|
+
title: "\u5B9E\u9645\u6362\u51FA\u6570\u91CF",
|
|
22321
|
+
width: 100,
|
|
22322
|
+
validator: function validator(_rule, value, extraParams) {
|
|
22323
|
+
if (!(extraParams === null || extraParams === void 0 ? void 0 : extraParams.quantityVerify)) return undefined;
|
|
22324
|
+
var title = '';
|
|
22325
|
+
if (((value === null || value === void 0 ? void 0 : value.kmExchangeGoods) || []).some(function (goods) {
|
|
22326
|
+
var realNum = toNum$3(goods === null || goods === void 0 ? void 0 : goods.realNum);
|
|
22327
|
+
var res = typeof realNum === 'number' ? realNum < 1 : true;
|
|
22328
|
+
if (res) {
|
|
22329
|
+
title = (goods === null || goods === void 0 ? void 0 : goods.goodName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodName, "]") : '';
|
|
22330
|
+
}
|
|
22331
|
+
return res;
|
|
22332
|
+
})) {
|
|
22333
|
+
return Promise.reject("".concat(title, "\u5B9E\u9645\u6362\u51FA\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
|
|
22334
|
+
}
|
|
22335
|
+
},
|
|
22336
|
+
render: function render(val, record, index) {
|
|
22337
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
22338
|
+
style: {
|
|
22339
|
+
width: 70
|
|
22340
|
+
},
|
|
22341
|
+
value: val,
|
|
22342
|
+
min: 1,
|
|
22343
|
+
precision: 0,
|
|
22344
|
+
onChange: function onChange(num) {
|
|
22345
|
+
updateDataHandle({
|
|
22346
|
+
realNum: num,
|
|
22347
|
+
refundMoney: num && isNumberOrNumberString$2(record.price) ? num * record.price : null
|
|
22348
|
+
}, index);
|
|
22349
|
+
}
|
|
22350
|
+
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
22351
|
+
}
|
|
22352
|
+
}, {
|
|
22353
|
+
dataIndex: 'desiredNum',
|
|
22354
|
+
title: "\u5E94\u6362\u51FA\u6570\u91CF",
|
|
22355
|
+
width: 100,
|
|
22356
|
+
validator: function validator(_rule, value) {
|
|
22357
|
+
var title = '';
|
|
22358
|
+
if (((value === null || value === void 0 ? void 0 : value.kmExchangeGoods) || []).some(function (goods) {
|
|
22359
|
+
var desiredNum = toNum$3(goods === null || goods === void 0 ? void 0 : goods.desiredNum);
|
|
22360
|
+
var res = typeof desiredNum === 'number' ? desiredNum < 1 : true;
|
|
22361
|
+
if (res) {
|
|
22362
|
+
title = (goods === null || goods === void 0 ? void 0 : goods.goodName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodName, "]") : '';
|
|
22363
|
+
}
|
|
22364
|
+
return res;
|
|
22365
|
+
})) {
|
|
22366
|
+
return Promise.reject("".concat(title, "\u5E94\u6362\u51FA\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
|
|
22367
|
+
}
|
|
22368
|
+
},
|
|
22369
|
+
render: function render(val, record, index) {
|
|
22370
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
22371
|
+
style: {
|
|
22372
|
+
width: 70
|
|
22373
|
+
},
|
|
22374
|
+
value: val,
|
|
22375
|
+
min: 1,
|
|
22376
|
+
precision: 0,
|
|
22377
|
+
onChange: function onChange(num) {
|
|
22378
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'desiredNum');
|
|
22379
|
+
}
|
|
22380
|
+
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
22381
|
+
}
|
|
22382
|
+
}, {
|
|
22383
|
+
dataIndex: 'price',
|
|
22384
|
+
title: "\u5546\u54C1\u9500\u552E\u4EF7",
|
|
22385
|
+
width: 150,
|
|
22386
|
+
render: function render(val) {
|
|
22387
|
+
return val || val === 0 ? Number(val).toFixed(2) : '';
|
|
22388
|
+
}
|
|
22389
|
+
}, {
|
|
22390
|
+
dataIndex: 'type',
|
|
22391
|
+
title: "\u5546\u54C1\u7C7B\u578B",
|
|
22392
|
+
width: 150,
|
|
22393
|
+
render: renderTextEllipsis
|
|
22394
|
+
}, {
|
|
22395
|
+
dataIndex: 'sysPicPath',
|
|
22396
|
+
title: "\u5546\u54C1\u56FE\u7247",
|
|
22397
|
+
width: 100,
|
|
22398
|
+
headerComponentType: 'pic',
|
|
22399
|
+
render: function render(val) {
|
|
22400
|
+
var imgUrl = (val === null || val === void 0 ? void 0 : val.startsWith('http')) ? val : "https://erp.superboss.cc".concat(val);
|
|
22401
|
+
return /*#__PURE__*/React.createElement(Image, {
|
|
22402
|
+
width: 30,
|
|
22403
|
+
src: imgUrl
|
|
22404
|
+
});
|
|
22405
|
+
}
|
|
22406
|
+
}].map(function (item) {
|
|
22407
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
22408
|
+
align: 'center',
|
|
22409
|
+
ellipsis: true
|
|
22410
|
+
});
|
|
21939
22411
|
})
|
|
21940
22412
|
};
|
|
21941
22413
|
};
|
|
21942
22414
|
|
|
21943
|
-
var isNumberOrNumberString$
|
|
22415
|
+
var isNumberOrNumberString$3 = function isNumberOrNumberString(value) {
|
|
21944
22416
|
if (typeof value === 'number') return true;
|
|
21945
22417
|
if (typeof value === 'string' && !isNaN(Number(value)) && value.trim() !== '') return true;
|
|
21946
22418
|
return false;
|
|
@@ -22078,7 +22550,7 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
22078
22550
|
onChange: function onChange(num) {
|
|
22079
22551
|
updateDataHandle({
|
|
22080
22552
|
sellCount: num,
|
|
22081
|
-
sellTotal: num && isNumberOrNumberString$
|
|
22553
|
+
sellTotal: num && isNumberOrNumberString$3(record.sellPrice) ? num * record.sellPrice : null
|
|
22082
22554
|
}, index);
|
|
22083
22555
|
}
|
|
22084
22556
|
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
@@ -22098,7 +22570,7 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
22098
22570
|
onChange: function onChange(num) {
|
|
22099
22571
|
updateDataHandle({
|
|
22100
22572
|
sellPrice: num,
|
|
22101
|
-
sellTotal: num && isNumberOrNumberString$
|
|
22573
|
+
sellTotal: num && isNumberOrNumberString$3(record.sellCount) ? num * record.sellCount : null
|
|
22102
22574
|
}, index);
|
|
22103
22575
|
}
|
|
22104
22576
|
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
@@ -22301,7 +22773,7 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
22301
22773
|
onChange: function onChange(num) {
|
|
22302
22774
|
updateDataHandle({
|
|
22303
22775
|
sellCount: num,
|
|
22304
|
-
sellTotal: num && isNumberOrNumberString$
|
|
22776
|
+
sellTotal: num && isNumberOrNumberString$3(record.sellPrice) ? num * record.sellPrice : null
|
|
22305
22777
|
}, index);
|
|
22306
22778
|
}
|
|
22307
22779
|
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
@@ -22321,7 +22793,7 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
22321
22793
|
onChange: function onChange(num) {
|
|
22322
22794
|
updateDataHandle({
|
|
22323
22795
|
sellPrice: num,
|
|
22324
|
-
sellTotal: num && isNumberOrNumberString$
|
|
22796
|
+
sellTotal: num && isNumberOrNumberString$3(record.sellCount) ? num * record.sellCount : null
|
|
22325
22797
|
}, index);
|
|
22326
22798
|
}
|
|
22327
22799
|
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
@@ -22433,7 +22905,7 @@ var getColumns$8 = function getColumns(_ref) {
|
|
|
22433
22905
|
};
|
|
22434
22906
|
};
|
|
22435
22907
|
|
|
22436
|
-
var isNumberOrNumberString$
|
|
22908
|
+
var isNumberOrNumberString$4 = function isNumberOrNumberString(value) {
|
|
22437
22909
|
if (typeof value === 'number') return true;
|
|
22438
22910
|
if (typeof value === 'string' && !isNaN(Number(value)) && value.trim() !== '') return true;
|
|
22439
22911
|
return false;
|
|
@@ -22523,7 +22995,7 @@ var getColumns$9 = function getColumns(_ref) {
|
|
|
22523
22995
|
onChange: function onChange(num) {
|
|
22524
22996
|
updateDataHandle({
|
|
22525
22997
|
sellCount: num,
|
|
22526
|
-
sellTotal: num && isNumberOrNumberString$
|
|
22998
|
+
sellTotal: num && isNumberOrNumberString$4(record.sellPrice) ? num * record.sellPrice : null
|
|
22527
22999
|
}, index);
|
|
22528
23000
|
}
|
|
22529
23001
|
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
@@ -22548,7 +23020,7 @@ var getColumns$9 = function getColumns(_ref) {
|
|
|
22548
23020
|
onChange: function onChange(num) {
|
|
22549
23021
|
updateDataHandle({
|
|
22550
23022
|
sellPrice: num,
|
|
22551
|
-
sellTotal: num && isNumberOrNumberString$
|
|
23023
|
+
sellTotal: num && isNumberOrNumberString$4(record.sellCount) ? num * record.sellCount : null
|
|
22552
23024
|
}, index);
|
|
22553
23025
|
}
|
|
22554
23026
|
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
@@ -22847,7 +23319,7 @@ var getColumns$9 = function getColumns(_ref) {
|
|
|
22847
23319
|
onChange: function onChange(num) {
|
|
22848
23320
|
updateDataHandle({
|
|
22849
23321
|
sellCount: num,
|
|
22850
|
-
sellTotal: num && isNumberOrNumberString$
|
|
23322
|
+
sellTotal: num && isNumberOrNumberString$4(record.sellPrice) ? num * record.sellPrice : null
|
|
22851
23323
|
}, index);
|
|
22852
23324
|
}
|
|
22853
23325
|
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
@@ -22867,7 +23339,7 @@ var getColumns$9 = function getColumns(_ref) {
|
|
|
22867
23339
|
onChange: function onChange(num) {
|
|
22868
23340
|
updateDataHandle({
|
|
22869
23341
|
sellPrice: num,
|
|
22870
|
-
sellTotal: num && isNumberOrNumberString$
|
|
23342
|
+
sellTotal: num && isNumberOrNumberString$4(record.sellCount) ? num * record.sellCount : null
|
|
22871
23343
|
}, index);
|
|
22872
23344
|
}
|
|
22873
23345
|
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
@@ -23095,7 +23567,8 @@ var getColumnsMap$1 = function getColumnsMap(args) {
|
|
|
23095
23567
|
})), getColumns$6({
|
|
23096
23568
|
text: text,
|
|
23097
23569
|
disabled: disabled,
|
|
23098
|
-
updateHandle: updateHandle
|
|
23570
|
+
updateHandle: updateHandle,
|
|
23571
|
+
updateDataHandle: updateDataHandle
|
|
23099
23572
|
})), getColumns$7({
|
|
23100
23573
|
text: text,
|
|
23101
23574
|
disabled: disabled,
|
|
@@ -23119,7 +23592,7 @@ var getColumnsMap$1 = function getColumnsMap(args) {
|
|
|
23119
23592
|
});
|
|
23120
23593
|
};
|
|
23121
23594
|
var erpColumnsMap = getColumnsMap$1();
|
|
23122
|
-
var erpFormValidator = function erpFormValidator(_rule, value, type) {
|
|
23595
|
+
var erpFormValidator = function erpFormValidator(_rule, value, type, extraParams) {
|
|
23123
23596
|
var validatorFnList = (erpColumnsMap[type] || erpColumnsMap['default']).map(function (column) {
|
|
23124
23597
|
return column.validator;
|
|
23125
23598
|
}).filter(Boolean);
|
|
@@ -23129,7 +23602,7 @@ var erpFormValidator = function erpFormValidator(_rule, value, type) {
|
|
|
23129
23602
|
try {
|
|
23130
23603
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
23131
23604
|
var validatorFn = _step.value;
|
|
23132
|
-
var validatorResult = validatorFn(_rule, value,
|
|
23605
|
+
var validatorResult = validatorFn(_rule, value, extraParams);
|
|
23133
23606
|
if (validatorResult) {
|
|
23134
23607
|
res = validatorResult;
|
|
23135
23608
|
break;
|
|
@@ -23254,7 +23727,7 @@ var isErpType = {
|
|
|
23254
23727
|
return ['JST_GOODS', 'JST_REISSUE_GOODS', 'JST_RETURN_GOODS', 'JST_EXCHANGE_GOODS'].includes(type);
|
|
23255
23728
|
},
|
|
23256
23729
|
isKm: function isKm(type) {
|
|
23257
|
-
return ['KM_GOODS', 'KM_REISSUE_GOODS'].includes(type);
|
|
23730
|
+
return ['KM_GOODS', 'KM_REISSUE_GOODS', 'KM_RETURN_GOODS', 'KM_EXCHANGE_GOODS'].includes(type);
|
|
23258
23731
|
},
|
|
23259
23732
|
isJy: function isJy(type) {
|
|
23260
23733
|
return ['JY_GOODS', 'JY_REISSUE_GOODS'].includes(type);
|
|
@@ -23519,11 +23992,17 @@ var processKmGoods$1 = function processKmGoods(_ref8) {
|
|
|
23519
23992
|
KM_REISSUE_GOODS: {
|
|
23520
23993
|
realNum: 1,
|
|
23521
23994
|
desiredNum: 1
|
|
23995
|
+
},
|
|
23996
|
+
KM_RETURN_GOODS: {},
|
|
23997
|
+
KM_EXCHANGE_GOODS: {
|
|
23998
|
+
realNum: 1,
|
|
23999
|
+
desiredNum: 1
|
|
23522
24000
|
}
|
|
23523
24001
|
};
|
|
23524
24002
|
return list.map(function (item) {
|
|
23525
24003
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
23526
24004
|
skuPropertiesName: item.specName,
|
|
24005
|
+
sysSkuPropertiesName: item.specId,
|
|
23527
24006
|
sysTitle: item.goodName,
|
|
23528
24007
|
title: null,
|
|
23529
24008
|
shortTitle: item.goodShortName,
|
|
@@ -23588,6 +24067,8 @@ var GoodsModalMap = {
|
|
|
23588
24067
|
JST_EXCHANGE_GOODS: JstGoodsModal,
|
|
23589
24068
|
KM_GOODS: KmGoodsModal,
|
|
23590
24069
|
KM_REISSUE_GOODS: KmGoodsModal,
|
|
24070
|
+
KM_RETURN_GOODS: KmGoodsModal,
|
|
24071
|
+
KM_EXCHANGE_GOODS: KmGoodsModal,
|
|
23591
24072
|
JY_GOODS: JyGoodsModal$1,
|
|
23592
24073
|
JY_REISSUE_GOODS: JyGoodsModal$1,
|
|
23593
24074
|
JKY_GOODS: JkyGoodsModal$1,
|
|
@@ -23607,6 +24088,8 @@ var systemOrderNoMap = {
|
|
|
23607
24088
|
JKY_GOODS: 'tradeNo',
|
|
23608
24089
|
JKY_REISSUE_GOODS: 'tradeNo',
|
|
23609
24090
|
KM_REISSUE_GOODS: 'sid',
|
|
24091
|
+
KM_RETURN_GOODS: 'sid',
|
|
24092
|
+
KM_EXCHANGE_GOODS: 'sid',
|
|
23610
24093
|
JST_REISSUE_GOODS: 'oId',
|
|
23611
24094
|
GY_REISSUE_GOODS: 'code',
|
|
23612
24095
|
BS_E3_REISSUE_GOODS: 'orderSn',
|
|
@@ -23632,7 +24115,10 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
|
23632
24115
|
type = _ref$type === void 0 ? '' : _ref$type,
|
|
23633
24116
|
width = _ref.width,
|
|
23634
24117
|
_ref$isReissueType = _ref.isReissueType,
|
|
23635
|
-
isReissueType = _ref$isReissueType === void 0 ? false : _ref$isReissueType
|
|
24118
|
+
isReissueType = _ref$isReissueType === void 0 ? false : _ref$isReissueType,
|
|
24119
|
+
_ref$isReloadSelectTa = _ref.isReloadSelectTable,
|
|
24120
|
+
isReloadSelectTable = _ref$isReloadSelectTa === void 0 ? false : _ref$isReloadSelectTa,
|
|
24121
|
+
validSystemOrderFn = _ref.validSystemOrderFn;
|
|
23636
24122
|
var _useState = useState(),
|
|
23637
24123
|
_useState2 = _slicedToArray(_useState, 2),
|
|
23638
24124
|
selectSystemNo = _useState2[0],
|
|
@@ -23677,36 +24163,52 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
|
23677
24163
|
}();
|
|
23678
24164
|
var openModal = /*#__PURE__*/function () {
|
|
23679
24165
|
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
24166
|
+
var flag;
|
|
23680
24167
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
23681
24168
|
while (1) switch (_context2.prev = _context2.next) {
|
|
23682
24169
|
case 0:
|
|
24170
|
+
if (!validSystemOrderFn) {
|
|
24171
|
+
_context2.next = 7;
|
|
24172
|
+
break;
|
|
24173
|
+
}
|
|
24174
|
+
_context2.next = 3;
|
|
24175
|
+
return validSystemOrderFn();
|
|
24176
|
+
case 3:
|
|
24177
|
+
flag = _context2.sent;
|
|
24178
|
+
if (!(flag === false)) {
|
|
24179
|
+
_context2.next = 7;
|
|
24180
|
+
break;
|
|
24181
|
+
}
|
|
24182
|
+
console.log('validSystemOrderFn校验不通过');
|
|
24183
|
+
return _context2.abrupt("return");
|
|
24184
|
+
case 7:
|
|
23683
24185
|
if (!validSystemOrder) {
|
|
23684
|
-
_context2.next =
|
|
24186
|
+
_context2.next = 10;
|
|
23685
24187
|
break;
|
|
23686
24188
|
}
|
|
23687
24189
|
message.warning('请选择补发系统单');
|
|
23688
24190
|
return _context2.abrupt("return");
|
|
23689
|
-
case
|
|
23690
|
-
if (!(getDataSourceAsync && !(dataSource === null || dataSource === void 0 ? void 0 : dataSource.length))) {
|
|
23691
|
-
_context2.next =
|
|
24191
|
+
case 10:
|
|
24192
|
+
if (!(getDataSourceAsync && (!(dataSource === null || dataSource === void 0 ? void 0 : dataSource.length) || isReloadSelectTable))) {
|
|
24193
|
+
_context2.next = 13;
|
|
23692
24194
|
break;
|
|
23693
24195
|
}
|
|
23694
|
-
_context2.next =
|
|
24196
|
+
_context2.next = 13;
|
|
23695
24197
|
return getDataSourceAsync();
|
|
23696
|
-
case
|
|
23697
|
-
if (!['KM_GOODS', 'KM_REISSUE_GOODS'].includes(type)) {
|
|
23698
|
-
_context2.next =
|
|
24198
|
+
case 13:
|
|
24199
|
+
if (!['KM_GOODS', 'KM_REISSUE_GOODS', 'KM_RETURN_GOODS'].includes(type)) {
|
|
24200
|
+
_context2.next = 16;
|
|
23699
24201
|
break;
|
|
23700
24202
|
}
|
|
23701
|
-
_context2.next =
|
|
24203
|
+
_context2.next = 16;
|
|
23702
24204
|
return getKmSupplier(dataSource);
|
|
23703
|
-
case
|
|
24205
|
+
case 16:
|
|
23704
24206
|
setTradeGoodsVisible(true);
|
|
23705
24207
|
// 补发直接传入的是systemNo
|
|
23706
24208
|
if (isShowSelect && isReissueType) {
|
|
23707
24209
|
setSelectSystemNo(selectedSystemOrders || []);
|
|
23708
24210
|
}
|
|
23709
|
-
case
|
|
24211
|
+
case 18:
|
|
23710
24212
|
case "end":
|
|
23711
24213
|
return _context2.stop();
|
|
23712
24214
|
}
|
|
@@ -23821,7 +24323,7 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
|
23821
24323
|
SelectTradeGoods.displayName = 'SelectTradeGoods';
|
|
23822
24324
|
var getButtonText = function getButtonText() {
|
|
23823
24325
|
var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
23824
|
-
if (['KM_GOODS', 'KM_REISSUE_GOODS'].includes(type)) {
|
|
24326
|
+
if (['KM_GOODS', 'KM_REISSUE_GOODS', 'KM_EXCHANGE_GOODS'].includes(type)) {
|
|
23825
24327
|
return '选择快麦ERP商品';
|
|
23826
24328
|
}
|
|
23827
24329
|
if (['BS_E3_GOODS', 'BS_E3_REISSUE_GOODS', 'BS_E3_EXCHANGE_GOODS'].includes(type)) {
|
|
@@ -23892,14 +24394,16 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
23892
24394
|
_props$templateDetail = props.templateDetail,
|
|
23893
24395
|
templateDetail = _props$templateDetail === void 0 ? {} : _props$templateDetail,
|
|
23894
24396
|
_props$hasSelectedSys = props.hasSelectedSystemOrder,
|
|
23895
|
-
hasSelectedSystemOrder = _props$hasSelectedSys === void 0 ? false : _props$hasSelectedSys
|
|
24397
|
+
hasSelectedSystemOrder = _props$hasSelectedSys === void 0 ? false : _props$hasSelectedSys,
|
|
24398
|
+
isReloadSelectTable = props.isReloadSelectTable,
|
|
24399
|
+
validSystemOrderFn = props.validSystemOrderFn;
|
|
23896
24400
|
var canDelete = ['JST_AFTERSALE_GOODS'].includes(type);
|
|
23897
24401
|
var uniqueKey = (tradeGoods === null || tradeGoods === void 0 ? void 0 : tradeGoods.uniqueKey) || 'uuid';
|
|
23898
24402
|
// 监听聚水潭退货商品
|
|
23899
24403
|
var jstReturnGoods = Form === null || Form === void 0 ? void 0 : Form.useWatch('3979edfd6d', form);
|
|
23900
24404
|
var isShowSelectTradeGoods = type !== 'JST_EXCHANGE_GOODS' || (jstReturnGoods === null || jstReturnGoods === void 0 ? void 0 : jstReturnGoods.jstSystemOrderNo);
|
|
23901
24405
|
// 判断是否为是否展示系统单筛选项
|
|
23902
|
-
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;
|
|
24406
|
+
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;
|
|
23903
24407
|
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;
|
|
23904
24408
|
var refModal = useRef();
|
|
23905
24409
|
console.debug('表格数据', value);
|
|
@@ -23989,6 +24493,8 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
23989
24493
|
case 'GY_RETURN_GOODS':
|
|
23990
24494
|
case 'KM_GOODS':
|
|
23991
24495
|
case 'KM_REISSUE_GOODS':
|
|
24496
|
+
case 'KM_RETURN_GOODS':
|
|
24497
|
+
case 'KM_EXCHANGE_GOODS':
|
|
23992
24498
|
case 'JY_GOODS':
|
|
23993
24499
|
case 'JY_REISSUE_GOODS':
|
|
23994
24500
|
case 'JKY_GOODS':
|
|
@@ -24191,6 +24697,8 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
24191
24697
|
checked: isStrict,
|
|
24192
24698
|
onChange: handleCheckboxChange
|
|
24193
24699
|
}, "\u5408\u5E76\u5355\uFF0C\u52FE\u9009\u540E\u53EA\u5C55\u793A\u5F53\u524D\u5E73\u53F0\u8BA2\u5355\u5546\u54C1"), !isEmpty(tradeGoods) && isShowSelectTradeGoods && /*#__PURE__*/React.createElement(SelectTradeGoods, {
|
|
24700
|
+
isReloadSelectTable: isReloadSelectTable,
|
|
24701
|
+
validSystemOrderFn: validSystemOrderFn,
|
|
24194
24702
|
validSystemOrder: validSystemOrder,
|
|
24195
24703
|
isShowSelect: isShowSelect,
|
|
24196
24704
|
uniqueKey: uniqueKey,
|
|
@@ -24921,7 +25429,8 @@ var getWdtOrderListSingleton = function getWdtOrderListSingleton(orderNo) {
|
|
|
24921
25429
|
billNo: item.tradeNo,
|
|
24922
25430
|
billType: WDT_ORDER_TYPE_MAP[item.tradeType],
|
|
24923
25431
|
billTag: item.tagName || item.tags,
|
|
24924
|
-
tradeStatusValue: tradeStatusMap === null || tradeStatusMap === void 0 ? void 0 : (_tradeStatusMap$data$ = tradeStatusMap[data.data.version]) === null || _tradeStatusMap$data$ === void 0 ? void 0 : _tradeStatusMap$data$[item.tradeStatus]
|
|
25432
|
+
tradeStatusValue: tradeStatusMap === null || tradeStatusMap === void 0 ? void 0 : (_tradeStatusMap$data$ = tradeStatusMap[data.data.version]) === null || _tradeStatusMap$data$ === void 0 ? void 0 : _tradeStatusMap$data$[item.tradeStatus],
|
|
25433
|
+
logisticsName: ExpressData.getInstance('wdt').getExpressNameByCode(item === null || item === void 0 ? void 0 : item.logisticsCode, false) || (item === null || item === void 0 ? void 0 : item.logisticsName)
|
|
24925
25434
|
});
|
|
24926
25435
|
});
|
|
24927
25436
|
}
|
|
@@ -27479,6 +27988,55 @@ var componentMap$4 = {
|
|
|
27479
27988
|
returnGoodsSysorder: 'jstReturnGoodsSysorder',
|
|
27480
27989
|
returnGoodsSysorderBack: 'jstReturnGoodsSysorderBack'
|
|
27481
27990
|
}
|
|
27991
|
+
},
|
|
27992
|
+
KM_EXCHANGE_GOODS: {
|
|
27993
|
+
type: 'km',
|
|
27994
|
+
showChooseTradeGoodsBtn: true,
|
|
27995
|
+
valueKey: 'kmExchangeGoods',
|
|
27996
|
+
returnTypeKey: 'kmExchangeType',
|
|
27997
|
+
systemOrder: 'kmSystemOrder',
|
|
27998
|
+
systemOrderNo: 'kmSystemOrderNo',
|
|
27999
|
+
oIdKey: 'billNo',
|
|
28000
|
+
goodDetailsKey: 'subOrders',
|
|
28001
|
+
skuIdKey: 'skuId',
|
|
28002
|
+
outerOiIdKey: '',
|
|
28003
|
+
name: '快麦',
|
|
28004
|
+
updateGoodsHandle: updateKmGoodsHandle,
|
|
28005
|
+
isReloadSelectTable: true,
|
|
28006
|
+
validSystemOrderFn: function () {
|
|
28007
|
+
var _validSystemOrderFn = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(form) {
|
|
28008
|
+
var returnGoodsValue;
|
|
28009
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
28010
|
+
while (1) switch (_context.prev = _context.next) {
|
|
28011
|
+
case 0:
|
|
28012
|
+
_context.next = 2;
|
|
28013
|
+
return form.getFieldValue('KM3F7B91C2');
|
|
28014
|
+
case 2:
|
|
28015
|
+
returnGoodsValue = _context.sent;
|
|
28016
|
+
if (returnGoodsValue.kmSystemOrderNo) {
|
|
28017
|
+
_context.next = 6;
|
|
28018
|
+
break;
|
|
28019
|
+
}
|
|
28020
|
+
message.error('请选择退货系统单');
|
|
28021
|
+
return _context.abrupt("return", false);
|
|
28022
|
+
case 6:
|
|
28023
|
+
case "end":
|
|
28024
|
+
return _context.stop();
|
|
28025
|
+
}
|
|
28026
|
+
}, _callee);
|
|
28027
|
+
}));
|
|
28028
|
+
function validSystemOrderFn(_x) {
|
|
28029
|
+
return _validSystemOrderFn.apply(this, arguments);
|
|
28030
|
+
}
|
|
28031
|
+
return validSystemOrderFn;
|
|
28032
|
+
}(),
|
|
28033
|
+
eventNameMap: {
|
|
28034
|
+
// pubsub 事件
|
|
28035
|
+
exchangeCopyGood: 'kmExchangeCopyGood',
|
|
28036
|
+
exchangeBackCopyGood: 'kmExchangeBackCopyGood',
|
|
28037
|
+
returnGoodsSysorder: 'kmReturnGoodsSysorder',
|
|
28038
|
+
returnGoodsSysorderBack: 'kmReturnGoodsSysorderBack'
|
|
28039
|
+
}
|
|
27482
28040
|
}
|
|
27483
28041
|
};
|
|
27484
28042
|
var CommonExchangeGoods = function CommonExchangeGoods(props) {
|
|
@@ -27486,7 +28044,8 @@ var CommonExchangeGoods = function CommonExchangeGoods(props) {
|
|
|
27486
28044
|
var value = props.value,
|
|
27487
28045
|
onChange = props.onChange,
|
|
27488
28046
|
disabled = props.disabled,
|
|
27489
|
-
compType = props.type
|
|
28047
|
+
compType = props.type,
|
|
28048
|
+
form = props.form;
|
|
27490
28049
|
var uniqueKey = (componentMap$4 === null || componentMap$4 === void 0 ? void 0 : (_componentMap$compTyp = componentMap$4[compType]) === null || _componentMap$compTyp === void 0 ? void 0 : _componentMap$compTyp.skuIdKey) || 'uuid';
|
|
27491
28050
|
var valueRef = useRef({});
|
|
27492
28051
|
// PS: 目前选择订单商品,只有聚水潭换出商品,而且聚水潭不用考虑合并单,所以这个值一直是 false
|
|
@@ -27579,6 +28138,10 @@ var CommonExchangeGoods = function CommonExchangeGoods(props) {
|
|
|
27579
28138
|
return new Promise(function (resolve) {
|
|
27580
28139
|
pubsub.subscribeOnce(componentMap$4[compType].eventNameMap.returnGoodsSysorderBack, function (_, data) {
|
|
27581
28140
|
resolve(data);
|
|
28141
|
+
console.log('getDataSourceAsync---111data--', data, getGoodDetails({
|
|
28142
|
+
returnGoodsValue: data,
|
|
28143
|
+
mode: isStrict
|
|
28144
|
+
}));
|
|
27582
28145
|
setOriginDataSource(getGoodDetails({
|
|
27583
28146
|
returnGoodsValue: data,
|
|
27584
28147
|
mode: isStrict
|
|
@@ -27587,9 +28150,14 @@ var CommonExchangeGoods = function CommonExchangeGoods(props) {
|
|
|
27587
28150
|
pubsub.publish(componentMap$4[compType].eventNameMap.returnGoodsSysorder, compType);
|
|
27588
28151
|
});
|
|
27589
28152
|
};
|
|
28153
|
+
console.log('aaa--', originDataSource);
|
|
27590
28154
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(GoodItem$1, _objectSpread2(_objectSpread2({
|
|
27591
28155
|
key: componentMap$4[compType].type
|
|
27592
28156
|
}, props), {}, {
|
|
28157
|
+
validSystemOrderFn: function validSystemOrderFn() {
|
|
28158
|
+
return componentMap$4[compType].validSystemOrderFn(form);
|
|
28159
|
+
},
|
|
28160
|
+
isReloadSelectTable: componentMap$4[compType].isReloadSelectTable,
|
|
27593
28161
|
disabled: disabled,
|
|
27594
28162
|
canUpdateNumber: true,
|
|
27595
28163
|
showChangeBtn: true,
|
|
@@ -27765,7 +28333,8 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
27765
28333
|
var newValue = _objectSpread2({}, value);
|
|
27766
28334
|
// 原订单商品
|
|
27767
28335
|
var originTradeGoodList = getGoodDetails({
|
|
27768
|
-
mode: isStrict
|
|
28336
|
+
mode: isStrict,
|
|
28337
|
+
isAllOrders: true
|
|
27769
28338
|
}) || [];
|
|
27770
28339
|
// 当前选中的所有商品【包含了原订单+商品库】
|
|
27771
28340
|
var currentSelectGoodList = (value === null || value === void 0 ? void 0 : value["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type22 = typeMap$1[type]) === null || _typeMap$type22 === void 0 ? void 0 : _typeMap$type22.key)]) || [];
|
|
@@ -27923,6 +28492,30 @@ var typeMap$2 = {
|
|
|
27923
28492
|
uniqueKey: 'id',
|
|
27924
28493
|
isShowSelectTradeGoods: true
|
|
27925
28494
|
},
|
|
28495
|
+
KM_RETURN_GOODS: {
|
|
28496
|
+
compType: '退货',
|
|
28497
|
+
key: 'kmReturnGoods',
|
|
28498
|
+
typeName: 'kmReturnType',
|
|
28499
|
+
systemOrder: 'kmSystemOrder',
|
|
28500
|
+
systemOrderNo: 'kmSystemOrderNo',
|
|
28501
|
+
getOrderList: kmUtils.getOrderListSingleton,
|
|
28502
|
+
updateGoodsHandle: updateKmGoodsHandle,
|
|
28503
|
+
alwaysShowChooseErpGoodsBtn: true,
|
|
28504
|
+
orderTypeKey: 'orderType',
|
|
28505
|
+
oIdKey: 'billNo',
|
|
28506
|
+
outerOiIdKey: '',
|
|
28507
|
+
goodDetailsKey: 'subOrders',
|
|
28508
|
+
uniqueKey: 'id',
|
|
28509
|
+
isShowSelectTradeGoods: true,
|
|
28510
|
+
showErpGoodsBtn: false,
|
|
28511
|
+
eventNameMap: {
|
|
28512
|
+
// pubsub 事件
|
|
28513
|
+
exchangeCopyGood: 'kmExchangeCopyGood',
|
|
28514
|
+
exchangeBackCopyGood: 'kmExchangeBackCopyGood',
|
|
28515
|
+
returnGoodsSysorder: 'kmReturnGoodsSysorder',
|
|
28516
|
+
returnGoodsSysorderBack: 'kmReturnGoodsSysorderBack'
|
|
28517
|
+
}
|
|
28518
|
+
},
|
|
27926
28519
|
JY_REISSUE_GOODS: {
|
|
27927
28520
|
compType: '补发',
|
|
27928
28521
|
key: 'jyReissueGoods',
|
|
@@ -27956,7 +28549,7 @@ var typeMap$2 = {
|
|
|
27956
28549
|
}
|
|
27957
28550
|
};
|
|
27958
28551
|
var PublicReissue = function PublicReissue(props) {
|
|
27959
|
-
var _typeMap$
|
|
28552
|
+
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;
|
|
27960
28553
|
var value = props.value,
|
|
27961
28554
|
onChange = props.onChange,
|
|
27962
28555
|
_props$reasonList = props.reasonList,
|
|
@@ -28074,24 +28667,25 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28074
28667
|
};
|
|
28075
28668
|
var sysItemIdMap = useMemo(function () {
|
|
28076
28669
|
var map = {};
|
|
28077
|
-
if (
|
|
28078
|
-
var _value$
|
|
28079
|
-
|
|
28670
|
+
if (['KM_REISSUE_GOODS', 'KM_RETURN_GOODS'].includes(type)) {
|
|
28671
|
+
var _value$goodsKey, _value$goodsKey$filte;
|
|
28672
|
+
var goodsKey = typeMap$2[type].key;
|
|
28673
|
+
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) {
|
|
28080
28674
|
return item === null || item === void 0 ? void 0 : item.sysItemId;
|
|
28081
|
-
})) === null || _value$
|
|
28675
|
+
})) === null || _value$goodsKey$filte === void 0 ? void 0 : _value$goodsKey$filte.forEach(function (item) {
|
|
28082
28676
|
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);
|
|
28083
28677
|
map[key] = item;
|
|
28084
28678
|
});
|
|
28085
28679
|
}
|
|
28086
28680
|
return map;
|
|
28087
|
-
}, [value === null || value === void 0 ? void 0 : value.
|
|
28681
|
+
}, [value === null || value === void 0 ? void 0 : value[(_typeMap$type18 = typeMap$2[type]) === null || _typeMap$type18 === void 0 ? void 0 : _typeMap$type18.key]]);
|
|
28088
28682
|
// 用于跟踪已经处理过的 sysItemId,避免重复处理
|
|
28089
28683
|
var processedSysItemIdsRef = useRef(new Set());
|
|
28090
28684
|
useEffect(function () {
|
|
28091
28685
|
var fetchSupplier = /*#__PURE__*/function () {
|
|
28092
28686
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(sysItemIds) {
|
|
28093
|
-
var _currentValue$
|
|
28094
|
-
var needFetchIds, supplierMap, hasChange, currentValue,
|
|
28687
|
+
var _currentValue$goodsKe;
|
|
28688
|
+
var needFetchIds, supplierMap, hasChange, currentValue, goodsKey, kmGoods;
|
|
28095
28689
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
28096
28690
|
while (1) switch (_context2.prev = _context2.next) {
|
|
28097
28691
|
case 0:
|
|
@@ -28119,7 +28713,8 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28119
28713
|
// 检查是否有实际变化,避免不必要的更新
|
|
28120
28714
|
hasChange = false;
|
|
28121
28715
|
currentValue = valueRef.current;
|
|
28122
|
-
|
|
28716
|
+
goodsKey = typeMap$2[type].key;
|
|
28717
|
+
kmGoods = currentValue === null || currentValue === void 0 ? void 0 : (_currentValue$goodsKe = currentValue[goodsKey]) === null || _currentValue$goodsKe === void 0 ? void 0 : _currentValue$goodsKe.map(function (item) {
|
|
28123
28718
|
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);
|
|
28124
28719
|
var supplierInfo = supplierMap.get(key);
|
|
28125
28720
|
var newSupplierCode = supplierInfo === null || supplierInfo === void 0 ? void 0 : supplierInfo.supplierCode;
|
|
@@ -28136,12 +28731,10 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28136
28731
|
}
|
|
28137
28732
|
return item;
|
|
28138
28733
|
}); // 只在有实际变化时才更新
|
|
28139
|
-
if (hasChange &&
|
|
28140
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, currentValue), {}, {
|
|
28141
|
-
kmReissueGoods: kmReissueGoods
|
|
28142
|
-
}));
|
|
28734
|
+
if (hasChange && kmGoods) {
|
|
28735
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, currentValue), {}, _defineProperty({}, goodsKey, kmGoods)));
|
|
28143
28736
|
}
|
|
28144
|
-
case
|
|
28737
|
+
case 13:
|
|
28145
28738
|
case "end":
|
|
28146
28739
|
return _context2.stop();
|
|
28147
28740
|
}
|
|
@@ -28157,20 +28750,20 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28157
28750
|
}
|
|
28158
28751
|
}, [sysItemIdMap]);
|
|
28159
28752
|
var getGoodDetails = function getGoodDetails(_ref5) {
|
|
28160
|
-
var _typeMap$
|
|
28753
|
+
var _typeMap$type19, _typeMap$type20, _value$typeMap$type$s6, _typeMap$type21, _typeMap$type22, _typeMap$type23, _typeMap$type24;
|
|
28161
28754
|
var mode = _ref5.mode,
|
|
28162
28755
|
sysOrderNo = _ref5.sysOrderNo,
|
|
28163
28756
|
_ref5$isAllOrders = _ref5.isAllOrders,
|
|
28164
28757
|
isAllOrders = _ref5$isAllOrders === void 0 ? false : _ref5$isAllOrders;
|
|
28165
|
-
var systemOrder = value === null || value === void 0 ? void 0 : value[(_typeMap$
|
|
28166
|
-
var systemOrderNo = sysOrderNo !== null && sysOrderNo !== void 0 ? sysOrderNo : value === null || value === void 0 ? void 0 : value[(_typeMap$
|
|
28758
|
+
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];
|
|
28759
|
+
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];
|
|
28167
28760
|
var order = systemOrderNo && ((systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orders) || []).find(function (order) {
|
|
28168
28761
|
return order[typeMap$2[type].oIdKey] === systemOrderNo;
|
|
28169
28762
|
});
|
|
28170
28763
|
var orderRest = undefined;
|
|
28171
28764
|
if (['JST_REISSUE_GOODS', 'JST_RETURN_GOODS'].includes(type)) {
|
|
28172
28765
|
orderRest = true;
|
|
28173
|
-
} else if (
|
|
28766
|
+
} else if (['KM_REISSUE_GOODS', 'KM_RETURN_GOODS'].includes(type)) {
|
|
28174
28767
|
orderRest = {
|
|
28175
28768
|
orderBackGoodsLevel: props.orderBackGoodsLevel,
|
|
28176
28769
|
canEdit: true
|
|
@@ -28184,12 +28777,12 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28184
28777
|
canEdit: true
|
|
28185
28778
|
};
|
|
28186
28779
|
}
|
|
28187
|
-
var orders = isAllOrders ? (value === null || value === void 0 ? void 0 : (_value$typeMap$type$s6 = value[(_typeMap$
|
|
28780
|
+
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] : [];
|
|
28188
28781
|
var hasGoodDetails = orders === null || orders === void 0 ? void 0 : orders.some(function (order) {
|
|
28189
28782
|
var _order$typeMap$type$g;
|
|
28190
28783
|
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;
|
|
28191
28784
|
});
|
|
28192
|
-
var goodDetails = hasGoodDetails ? (!isAllOrders || ((_typeMap$
|
|
28785
|
+
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) : [];
|
|
28193
28786
|
var orderNo = systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orderNo;
|
|
28194
28787
|
var list = mode && !isAllOrders ? goodDetails.filter(function (goodItem) {
|
|
28195
28788
|
return !orderNo || goodItem[typeMap$2[type].outerOiIdKey] === orderNo;
|
|
@@ -28197,30 +28790,30 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28197
28790
|
return list;
|
|
28198
28791
|
};
|
|
28199
28792
|
var changeGoodHandle = function changeGoodHandle(val) {
|
|
28200
|
-
var _typeMap$
|
|
28793
|
+
var _typeMap$type25;
|
|
28201
28794
|
var newValue = _objectSpread2({}, value);
|
|
28202
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28795
|
+
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 || [];
|
|
28203
28796
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
28204
28797
|
};
|
|
28205
28798
|
var changeSystemOrderHandle = function changeSystemOrderHandle(val) {
|
|
28206
|
-
var _typeMap$
|
|
28799
|
+
var _typeMap$type26, _typeMap$type27, _value$typeMap$type$t2, _typeMap$type32, _value$typeMap$type$t3, _typeMap$type34;
|
|
28207
28800
|
var newValue = _objectSpread2({}, value);
|
|
28208
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28209
|
-
if (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28210
|
-
var _value$typeMap$type$s7, _typeMap$
|
|
28211
|
-
var orders = (value === null || value === void 0 ? void 0 : (_value$typeMap$type$s7 = value[(_typeMap$
|
|
28801
|
+
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;
|
|
28802
|
+
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) {
|
|
28803
|
+
var _value$typeMap$type$s7, _typeMap$type28, _typeMap$type30, _typeMap$type31;
|
|
28804
|
+
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) || [];
|
|
28212
28805
|
var targetOrder = val && orders.find(function (oItem) {
|
|
28213
|
-
var _typeMap$
|
|
28214
|
-
return oItem[(_typeMap$
|
|
28806
|
+
var _typeMap$type29;
|
|
28807
|
+
return oItem[(_typeMap$type29 = typeMap$2[type]) === null || _typeMap$type29 === void 0 ? void 0 : _typeMap$type29.oIdKey] === val;
|
|
28215
28808
|
});
|
|
28216
|
-
newValue[(_typeMap$
|
|
28217
|
-
}
|
|
28218
|
-
if (['2'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t2 = value[(_typeMap$
|
|
28219
|
-
var _typeMap$
|
|
28220
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28221
|
-
} else if (['1'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t3 = value[(_typeMap$
|
|
28222
|
-
var _typeMap$
|
|
28223
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28809
|
+
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];
|
|
28810
|
+
}
|
|
28811
|
+
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])) {
|
|
28812
|
+
var _typeMap$type33;
|
|
28813
|
+
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)] = [];
|
|
28814
|
+
} 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])) {
|
|
28815
|
+
var _typeMap$type35;
|
|
28816
|
+
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({
|
|
28224
28817
|
mode: isStrict,
|
|
28225
28818
|
sysOrderNo: val
|
|
28226
28819
|
});
|
|
@@ -28228,27 +28821,27 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28228
28821
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue, 'systemOrder');
|
|
28229
28822
|
};
|
|
28230
28823
|
//显示选择商品按钮
|
|
28231
|
-
var showChangeBtn = !!(value === null || value === void 0 ? void 0 : value[(_typeMap$
|
|
28824
|
+
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]);
|
|
28232
28825
|
var selectedGoodsChange = useCallback(function (skuList) {
|
|
28233
|
-
var _typeMap$
|
|
28826
|
+
var _typeMap$type37, _typeMap$type38, _typeMap$type39, _uniqBy, _typeMap$type40;
|
|
28234
28827
|
var newValue = _objectSpread2({}, value);
|
|
28235
28828
|
// 原订单商品
|
|
28236
28829
|
var originTradeGoodList = getGoodDetails({
|
|
28237
28830
|
mode: isStrict,
|
|
28238
|
-
isAllOrders: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28831
|
+
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
|
|
28239
28832
|
}) || [];
|
|
28240
28833
|
// 当前选中的所有商品【包含了原订单+商品库】
|
|
28241
|
-
var currentSelectGoodList = (value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28242
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28243
|
-
var _typeMap$
|
|
28244
|
-
return skuList.includes(item[(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28834
|
+
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)]) || [];
|
|
28835
|
+
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 = 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) {
|
|
28836
|
+
var _typeMap$type41;
|
|
28837
|
+
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']);
|
|
28245
28838
|
});
|
|
28246
28839
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
28247
|
-
}, [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28840
|
+
}, [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]);
|
|
28248
28841
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Row, {
|
|
28249
28842
|
gutter: 8,
|
|
28250
28843
|
wrap: true,
|
|
28251
|
-
id: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28844
|
+
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())
|
|
28252
28845
|
}, /*#__PURE__*/React.createElement(Col, {
|
|
28253
28846
|
className: "gutter-row",
|
|
28254
28847
|
xs: {
|
|
@@ -28264,12 +28857,12 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28264
28857
|
},
|
|
28265
28858
|
disabled: disabled,
|
|
28266
28859
|
allowClear: false,
|
|
28267
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28860
|
+
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)],
|
|
28268
28861
|
onChange: function onChange(val) {
|
|
28269
28862
|
return changeSystemOrderHandle(val);
|
|
28270
28863
|
},
|
|
28271
|
-
placeholder: "\u9009\u62E9".concat((typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28272
|
-
}, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s8 = value[(_typeMap$
|
|
28864
|
+
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")
|
|
28865
|
+
}, ((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) {
|
|
28273
28866
|
return /*#__PURE__*/React.createElement(Select.Option, {
|
|
28274
28867
|
key: item[typeMap$2[type].oIdKey],
|
|
28275
28868
|
value: item[typeMap$2[type].oIdKey],
|
|
@@ -28291,11 +28884,11 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28291
28884
|
disabled: isSettingConfig ? !isSettingConfig : disabled,
|
|
28292
28885
|
allowClear: false,
|
|
28293
28886
|
options: reasonList,
|
|
28294
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28887
|
+
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)],
|
|
28295
28888
|
onChange: function onChange(val) {
|
|
28296
28889
|
return changeTypeHandle(val);
|
|
28297
28890
|
}
|
|
28298
|
-
})), (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28891
|
+
})), (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.createElement(Col, {
|
|
28299
28892
|
className: "gutter-row",
|
|
28300
28893
|
xs: {
|
|
28301
28894
|
span: 11
|
|
@@ -28304,7 +28897,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28304
28897
|
span: 6
|
|
28305
28898
|
}
|
|
28306
28899
|
}, /*#__PURE__*/React.createElement(Input, {
|
|
28307
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28900
|
+
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)],
|
|
28308
28901
|
disabled: disabled,
|
|
28309
28902
|
readOnly: true
|
|
28310
28903
|
}))), /*#__PURE__*/React.createElement(GoodItem$1, _objectSpread2(_objectSpread2({
|
|
@@ -28315,25 +28908,25 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28315
28908
|
canUpdateNumber: showChangeBtn,
|
|
28316
28909
|
hasSelectedSystemOrder: showChangeBtn,
|
|
28317
28910
|
// showChangeBtn={showChangeBtn || typeMap?.[type]?.isShowSelectTradeGoods}
|
|
28318
|
-
alwaysShowChooseErpGoodsBtn: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28319
|
-
|
|
28911
|
+
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,
|
|
28912
|
+
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,
|
|
28320
28913
|
shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
|
|
28321
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28914
|
+
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)],
|
|
28322
28915
|
onChange: function onChange(val) {
|
|
28323
28916
|
return changeGoodHandle(val);
|
|
28324
28917
|
},
|
|
28325
28918
|
onModeChange: handleModeChange,
|
|
28326
|
-
showModeBtn: !!(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28919
|
+
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),
|
|
28327
28920
|
isStrict: isStrict,
|
|
28328
|
-
isShowSelectTradeGoods: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28329
|
-
systemOrders: value === null || value === void 0 ? void 0 : (_value$typeMap$type$s9 = value[(_typeMap$
|
|
28330
|
-
selectedSystemOrders: showChangeBtn ? [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28921
|
+
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,
|
|
28922
|
+
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,
|
|
28923
|
+
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)]] : [],
|
|
28331
28924
|
tradeGoods: {
|
|
28332
28925
|
originDataSource: getGoodDetails({
|
|
28333
28926
|
mode: isStrict,
|
|
28334
|
-
isAllOrders: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28927
|
+
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
|
|
28335
28928
|
}),
|
|
28336
|
-
uniqueKey: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28929
|
+
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',
|
|
28337
28930
|
selectedGoodsChange: selectedGoodsChange
|
|
28338
28931
|
}
|
|
28339
28932
|
})));
|