@kmkf-fe-packages/basic-components 2.2.44-beta.71 → 2.2.44-beta.74
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 +635 -106
- package/dist/index.js +635 -106
- package/dist/src/bs/component/GoodItem/constants/bsE3ReissueGoodsColumns.d.ts +1 -1
- package/dist/src/bs/component/GoodItem/constants/wdtReissueGoodsColumns.d.ts +2 -2
- package/dist/src/constants/columnsBaseInfoMap.d.ts +2 -2
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -7951,7 +7951,8 @@ var IdentifyAddress = function IdentifyAddress(props) {
|
|
|
7951
7951
|
placeholder: "\u6536\u4EF6\u4EBA\u59D3\u540D",
|
|
7952
7952
|
allowClear: true,
|
|
7953
7953
|
onChange: function onChange(e) {
|
|
7954
|
-
|
|
7954
|
+
var _e$target$value;
|
|
7955
|
+
return changeHandle((_e$target$value = e.target.value) === null || _e$target$value === void 0 ? void 0 : _e$target$value.trim(), 'receiverName');
|
|
7955
7956
|
}
|
|
7956
7957
|
}), /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
7957
7958
|
value: value.receiverMobile,
|
|
@@ -7959,7 +7960,8 @@ var IdentifyAddress = function IdentifyAddress(props) {
|
|
|
7959
7960
|
allowClear: true,
|
|
7960
7961
|
placeholder: "\u6536\u4EF6\u4EBA\u7535\u8BDD",
|
|
7961
7962
|
onChange: function onChange(e) {
|
|
7962
|
-
|
|
7963
|
+
var _e$target$value2;
|
|
7964
|
+
return changeHandle((_e$target$value2 = e.target.value) === null || _e$target$value2 === void 0 ? void 0 : _e$target$value2.trim(), 'receiverMobile');
|
|
7963
7965
|
}
|
|
7964
7966
|
})), /*#__PURE__*/React__default['default'].createElement(antd.Space, {
|
|
7965
7967
|
wrap: true
|
|
@@ -7976,7 +7978,8 @@ var IdentifyAddress = function IdentifyAddress(props) {
|
|
|
7976
7978
|
placeholder: "\u8BE6\u7EC6\u5730\u5740",
|
|
7977
7979
|
allowClear: true,
|
|
7978
7980
|
onChange: function onChange(e) {
|
|
7979
|
-
|
|
7981
|
+
var _e$target$value3;
|
|
7982
|
+
return changeHandle((_e$target$value3 = e.target.value) === null || _e$target$value3 === void 0 ? void 0 : _e$target$value3.trim(), 'detail');
|
|
7980
7983
|
}
|
|
7981
7984
|
})));
|
|
7982
7985
|
};
|
|
@@ -8698,6 +8701,21 @@ var processErpSendGood = function processErpSendGood(getValue) {
|
|
|
8698
8701
|
return _defineProperty({}, nex.uniqueKey, (itemList === null || itemList === void 0 ? void 0 : itemList.length) ? itemList : initValue);
|
|
8699
8702
|
};
|
|
8700
8703
|
};
|
|
8704
|
+
var processErpReturnWarehouse = function processErpReturnWarehouse(getValue) {
|
|
8705
|
+
return function (nex, config) {
|
|
8706
|
+
var kmReturnWarehouseMap = {
|
|
8707
|
+
KM_RETURN_WAREHOUSE: {
|
|
8708
|
+
list: 'kmReturnWarehouse'
|
|
8709
|
+
}
|
|
8710
|
+
};
|
|
8711
|
+
var initValue = [{
|
|
8712
|
+
kmReturnWarehouseName: '',
|
|
8713
|
+
kmReturnWarehouseId: ''
|
|
8714
|
+
}];
|
|
8715
|
+
var itemList = jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_").concat(kmReturnWarehouseMap[nex.workOrderComponentType].list)), initValue);
|
|
8716
|
+
return _defineProperty({}, nex.uniqueKey, (itemList === null || itemList === void 0 ? void 0 : itemList.length) ? itemList : initValue);
|
|
8717
|
+
};
|
|
8718
|
+
};
|
|
8701
8719
|
var processBsPosting = function processBsPosting(getValue) {
|
|
8702
8720
|
return function (nex, config) {
|
|
8703
8721
|
var bsAddress = [transTextToNumber(getValue("".concat(nex.uniqueKey, "_bsPostingProvince"))), transTextToNumber(getValue("".concat(nex.uniqueKey, "_bsPostingCity")))];
|
|
@@ -8997,6 +9015,14 @@ var processWdtExchangeGoods = function processWdtExchangeGoods(getValue) {
|
|
|
8997
9015
|
});
|
|
8998
9016
|
};
|
|
8999
9017
|
};
|
|
9018
|
+
var processKmExchangeGoods = function processKmExchangeGoods(getValue) {
|
|
9019
|
+
return function (nex, config) {
|
|
9020
|
+
return _defineProperty({}, nex.uniqueKey, {
|
|
9021
|
+
kmExchangeGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_kmExchangeGoods")), []),
|
|
9022
|
+
shopCode: getValue("".concat(nex.uniqueKey, "_shopCode"))
|
|
9023
|
+
});
|
|
9024
|
+
};
|
|
9025
|
+
};
|
|
9000
9026
|
var processJstExchangeGoods = function processJstExchangeGoods(getValue) {
|
|
9001
9027
|
return function (nex, config) {
|
|
9002
9028
|
return _defineProperty({}, nex.uniqueKey, {
|
|
@@ -9213,6 +9239,28 @@ var processKmReissueGoods = function processKmReissueGoods(templateColumns) {
|
|
|
9213
9239
|
};
|
|
9214
9240
|
};
|
|
9215
9241
|
};
|
|
9242
|
+
var processKmReturnGoods = function processKmReturnGoods(templateColumns) {
|
|
9243
|
+
return function (getValue) {
|
|
9244
|
+
return function (nex, config) {
|
|
9245
|
+
var orderNo = '';
|
|
9246
|
+
var tradeId = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
|
|
9247
|
+
return col.workOrderComponentType === 'TRADE_ID_INPUT';
|
|
9248
|
+
});
|
|
9249
|
+
if (tradeId) {
|
|
9250
|
+
orderNo = getValue("".concat(tradeId.uniqueKey, "_").concat(updateWorkTypeKeys[tradeId.workOrderComponentType]));
|
|
9251
|
+
}
|
|
9252
|
+
return _defineProperty({}, nex.uniqueKey, {
|
|
9253
|
+
kmSystemOrder: {
|
|
9254
|
+
orderNo: orderNo
|
|
9255
|
+
},
|
|
9256
|
+
kmReturnType: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_kmReturnType")), !kmkfUtils.isNull(config === null || config === void 0 ? void 0 : config.initReason) ? [config.initReason] : ['1']),
|
|
9257
|
+
kmReturnGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_kmReturnGoods")), []),
|
|
9258
|
+
shopCode: getValue("".concat(nex.uniqueKey, "_shopCode")),
|
|
9259
|
+
kmSystemOrderNo: getValue("".concat(nex.uniqueKey, "_kmSystemOrderNo"))
|
|
9260
|
+
});
|
|
9261
|
+
};
|
|
9262
|
+
};
|
|
9263
|
+
};
|
|
9216
9264
|
var processGyReissueGoods = function processGyReissueGoods(templateColumns) {
|
|
9217
9265
|
return function (getValue) {
|
|
9218
9266
|
return function (nex, config) {
|
|
@@ -9306,14 +9354,14 @@ var processJstReturnGoods = function processJstReturnGoods(templateColumns) {
|
|
|
9306
9354
|
};
|
|
9307
9355
|
var processLabel = function processLabel(getValue) {
|
|
9308
9356
|
return function (nex, config) {
|
|
9309
|
-
var
|
|
9310
|
-
return
|
|
9357
|
+
var _ref77;
|
|
9358
|
+
return _ref77 = {}, _defineProperty(_ref77, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_label")), [])), _defineProperty(_ref77, "".concat(nex.uniqueKey, "_label"), jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_label")), [])), _ref77;
|
|
9311
9359
|
};
|
|
9312
9360
|
};
|
|
9313
9361
|
var processMemberLevel = function processMemberLevel(getValue) {
|
|
9314
9362
|
return function (nex, config) {
|
|
9315
|
-
var
|
|
9316
|
-
return
|
|
9363
|
+
var _ref78;
|
|
9364
|
+
return _ref78 = {}, _defineProperty(_ref78, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_memberLevel")), [])), _defineProperty(_ref78, "".concat(nex.uniqueKey, "_memberLevel"), jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_memberLevel")), [])), _ref78;
|
|
9317
9365
|
};
|
|
9318
9366
|
};
|
|
9319
9367
|
var processAfterSalesOrderId = function processAfterSalesOrderId(getValue) {
|
|
@@ -9430,6 +9478,7 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
|
|
|
9430
9478
|
BS_E3_SEND_GOOD: processErpSendGood,
|
|
9431
9479
|
KM_SEND_GOOD: processErpSendGood,
|
|
9432
9480
|
GY_SEND_GOOD: processErpSendGood,
|
|
9481
|
+
KM_RETURN_WAREHOUSE: processErpReturnWarehouse,
|
|
9433
9482
|
BS_POSTING: processBsPosting,
|
|
9434
9483
|
BS_GOODS: processBsGoods,
|
|
9435
9484
|
WDT_GOODS: processWdtGoods(templateColumns),
|
|
@@ -9440,10 +9489,12 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
|
|
|
9440
9489
|
GY_GOODS: processGyGoods(templateColumns),
|
|
9441
9490
|
KM_GOODS: processKmGoods(templateColumns),
|
|
9442
9491
|
KM_REISSUE_GOODS: processKmReissueGoods(templateColumns),
|
|
9492
|
+
KM_RETURN_GOODS: processKmReturnGoods(templateColumns),
|
|
9443
9493
|
JST_GOODS: processJstGoods(templateColumns),
|
|
9444
9494
|
BS_REISSUE_GOODS: processBsReissueGoods,
|
|
9445
9495
|
BS_EXCHANGE_GOODS: processBsExchangeGoods,
|
|
9446
9496
|
WDT_EXCHANGE_GOODS: processWdtExchangeGoods,
|
|
9497
|
+
KM_EXCHANGE_GOODS: processKmExchangeGoods,
|
|
9447
9498
|
JST_EXCHANGE_GOODS: processJstExchangeGoods,
|
|
9448
9499
|
BS_RETURN_GOODS: processBsReturnGoods,
|
|
9449
9500
|
WDT_RETURN_GOODS: processWdtReturnGoods(),
|
|
@@ -10743,7 +10794,8 @@ var BuyerNick = function BuyerNick(props) {
|
|
|
10743
10794
|
disabled = props.disabled,
|
|
10744
10795
|
_onBlur = props.onBlur;
|
|
10745
10796
|
var changeValue = function changeValue(e, type) {
|
|
10746
|
-
|
|
10797
|
+
var _e$target$value;
|
|
10798
|
+
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())));
|
|
10747
10799
|
};
|
|
10748
10800
|
// useEffect(() => {
|
|
10749
10801
|
// //淘宝平台和抖音平台需要展示买家id
|
|
@@ -10768,7 +10820,8 @@ var BuyerNick = function BuyerNick(props) {
|
|
|
10768
10820
|
changeValue(e, 'buyerNick');
|
|
10769
10821
|
},
|
|
10770
10822
|
onBlur: function onBlur(e) {
|
|
10771
|
-
|
|
10823
|
+
var _e$target$value2;
|
|
10824
|
+
_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');
|
|
10772
10825
|
}
|
|
10773
10826
|
});
|
|
10774
10827
|
};
|
|
@@ -10890,8 +10943,9 @@ var RemarkInput = function RemarkInput(props) {
|
|
|
10890
10943
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
10891
10944
|
};
|
|
10892
10945
|
var changeRemark = function changeRemark(e) {
|
|
10946
|
+
var _e$target$value;
|
|
10893
10947
|
var newValue = _objectSpread2(_objectSpread2({}, value), {}, {
|
|
10894
|
-
remark: e.target.value
|
|
10948
|
+
remark: (_e$target$value = e.target.value) === null || _e$target$value === void 0 ? void 0 : _e$target$value.trim()
|
|
10895
10949
|
});
|
|
10896
10950
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
10897
10951
|
};
|
|
@@ -10934,7 +10988,7 @@ var Logistics = function Logistics(props) {
|
|
|
10934
10988
|
var handleInputChange = function handleInputChange(e) {
|
|
10935
10989
|
var val = e.target.value;
|
|
10936
10990
|
typeof onChange === 'function' && onChange(_objectSpread2(_objectSpread2({}, value), {}, {
|
|
10937
|
-
order: val
|
|
10991
|
+
order: val === null || val === void 0 ? void 0 : val.trim()
|
|
10938
10992
|
}));
|
|
10939
10993
|
};
|
|
10940
10994
|
var handelSelectChange = function handelSelectChange(val) {
|
|
@@ -10998,7 +11052,8 @@ var AliPay = function AliPay(props) {
|
|
|
10998
11052
|
disabled = props.disabled,
|
|
10999
11053
|
_onBlur = props.onBlur;
|
|
11000
11054
|
var changeValue = function changeValue(e, type) {
|
|
11001
|
-
|
|
11055
|
+
var _e$target$value;
|
|
11056
|
+
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())));
|
|
11002
11057
|
};
|
|
11003
11058
|
return /*#__PURE__*/React__default['default'].createElement("div", null, !isSingle ? /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
11004
11059
|
disabled: disabled,
|
|
@@ -12669,7 +12724,8 @@ var Invoice = function Invoice(props) {
|
|
|
12669
12724
|
}),
|
|
12670
12725
|
current = _useRef.current;
|
|
12671
12726
|
var handleInputChange = function handleInputChange(e) {
|
|
12672
|
-
var
|
|
12727
|
+
var _e$target$value;
|
|
12728
|
+
var ordinaryTaitou = (_e$target$value = e.target.value) === null || _e$target$value === void 0 ? void 0 : _e$target$value.trim();
|
|
12673
12729
|
setVisible(false);
|
|
12674
12730
|
setList([]);
|
|
12675
12731
|
var newValue = _objectSpread2(_objectSpread2({}, value), {}, {
|
|
@@ -12692,8 +12748,9 @@ var Invoice = function Invoice(props) {
|
|
|
12692
12748
|
handleChange(ordinaryTaitou);
|
|
12693
12749
|
};
|
|
12694
12750
|
var handleValueClick = function handleValueClick(e) {
|
|
12751
|
+
var _e$target$value2;
|
|
12695
12752
|
var newValue = _objectSpread2(_objectSpread2({}, value), {}, {
|
|
12696
|
-
ordinarySerial: e.target.value
|
|
12753
|
+
ordinarySerial: (_e$target$value2 = e.target.value) === null || _e$target$value2 === void 0 ? void 0 : _e$target$value2.trim()
|
|
12697
12754
|
});
|
|
12698
12755
|
onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2({}, newValue));
|
|
12699
12756
|
};
|
|
@@ -13004,7 +13061,8 @@ var Payment = function Payment(props) {
|
|
|
13004
13061
|
// }
|
|
13005
13062
|
// }, [shopId, shopList]);
|
|
13006
13063
|
var changeValue = function changeValue(e, type) {
|
|
13007
|
-
var
|
|
13064
|
+
var _e$target$value;
|
|
13065
|
+
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()));
|
|
13008
13066
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
13009
13067
|
type === 'enterprisePaymentTid' && (onSearch === null || onSearch === void 0 ? void 0 : onSearch(e));
|
|
13010
13068
|
};
|
|
@@ -13065,7 +13123,8 @@ var Payment = function Payment(props) {
|
|
|
13065
13123
|
return changeValue(e, item.name);
|
|
13066
13124
|
},
|
|
13067
13125
|
onBlur: function onBlur(e) {
|
|
13068
|
-
|
|
13126
|
+
var _e$target$value2;
|
|
13127
|
+
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);
|
|
13069
13128
|
}
|
|
13070
13129
|
}), (replaceValueCh === null || replaceValueCh === void 0 ? void 0 : replaceValueCh[item.name]) && /*#__PURE__*/React__default['default'].createElement("p", {
|
|
13071
13130
|
style: {
|
|
@@ -13358,7 +13417,8 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
13358
13417
|
disabled: disabled || isEdit,
|
|
13359
13418
|
placeholder: "\u7269\u6D41\u5355\u53F7",
|
|
13360
13419
|
onChange: function onChange(e) {
|
|
13361
|
-
|
|
13420
|
+
var _e$target$value;
|
|
13421
|
+
return changeHandle((_e$target$value = e.target.value) === null || _e$target$value === void 0 ? void 0 : _e$target$value.trim(), 'interceptCode');
|
|
13362
13422
|
},
|
|
13363
13423
|
value: value === null || value === void 0 ? void 0 : value.interceptCode
|
|
13364
13424
|
}))), /*#__PURE__*/React__default['default'].createElement(antd.Space, null, /*#__PURE__*/React__default['default'].createElement(Item, {
|
|
@@ -13433,7 +13493,8 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
13433
13493
|
disabled: disabled || isEdit,
|
|
13434
13494
|
placeholder: senderMobileLabel,
|
|
13435
13495
|
onChange: function onChange(e) {
|
|
13436
|
-
|
|
13496
|
+
var _e$target$value2;
|
|
13497
|
+
return changeHandle((_e$target$value2 = e.target.value) === null || _e$target$value2 === void 0 ? void 0 : _e$target$value2.trim(), 'interceptSenderMobile');
|
|
13437
13498
|
}
|
|
13438
13499
|
})), /*#__PURE__*/React__default['default'].createElement(Item, {
|
|
13439
13500
|
label: '退回地址',
|
|
@@ -13492,7 +13553,8 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
13492
13553
|
},
|
|
13493
13554
|
placeholder: "\u5176\u4ED6",
|
|
13494
13555
|
onChange: function onChange(e) {
|
|
13495
|
-
|
|
13556
|
+
var _e$target$value3;
|
|
13557
|
+
return changeHandle((_e$target$value3 = e.target.value) === null || _e$target$value3 === void 0 ? void 0 : _e$target$value3.trim(), 'interceptLogisticsStatusOther');
|
|
13496
13558
|
}
|
|
13497
13559
|
})), /*#__PURE__*/React__default['default'].createElement(Item, {
|
|
13498
13560
|
label: '拦截状态',
|
|
@@ -13546,7 +13608,8 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
13546
13608
|
disabled: true,
|
|
13547
13609
|
placeholder: "\u63A5\u53E3\u72B6\u6001\u539F\u56E0",
|
|
13548
13610
|
onChange: function onChange(e) {
|
|
13549
|
-
|
|
13611
|
+
var _e$target$value4;
|
|
13612
|
+
return changeHandle((_e$target$value4 = e.target.value) === null || _e$target$value4 === void 0 ? void 0 : _e$target$value4.trim(), 'interceptLogisticsApiStatusReason');
|
|
13550
13613
|
}
|
|
13551
13614
|
})));
|
|
13552
13615
|
};
|
|
@@ -13622,7 +13685,7 @@ var LogisticsTrajectory = function LogisticsTrajectory(props) {
|
|
|
13622
13685
|
trajectoryApiStatus = _props$trajectoryApiS === void 0 ? false : _props$trajectoryApiS;
|
|
13623
13686
|
var handleInputChange = function handleInputChange(e, type) {
|
|
13624
13687
|
var val = e.target.value;
|
|
13625
|
-
typeof onChange === 'function' && onChange(_objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, type, val)));
|
|
13688
|
+
typeof onChange === 'function' && onChange(_objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, type, val === null || val === void 0 ? void 0 : val.trim())));
|
|
13626
13689
|
};
|
|
13627
13690
|
var handelSelectChange = function handelSelectChange(val) {
|
|
13628
13691
|
typeof onChange === 'function' && onChange(_objectSpread2(_objectSpread2({}, value), {}, {
|
|
@@ -14022,10 +14085,14 @@ var typeInitValueMap = {
|
|
|
14022
14085
|
}],
|
|
14023
14086
|
4: [{
|
|
14024
14087
|
deliveryNo: null
|
|
14088
|
+
}],
|
|
14089
|
+
5: [{
|
|
14090
|
+
returnWarehouseName: null,
|
|
14091
|
+
returnWarehouseId: null
|
|
14025
14092
|
}]
|
|
14026
14093
|
};
|
|
14027
14094
|
var jstGoods = function jstGoods(props) {
|
|
14028
|
-
var _value$changeIndex, _value$changeIndex2, _value$changeIndex3, _value$changeIndex4, _value$changeIndex5, _value$changeIndex6, _value$changeIndex7, _value$changeIndex8, _value$changeIndex9, _value$changeIndex10, _value$changeIndex11, _value$changeIndex12, _value$changeIndex13;
|
|
14095
|
+
var _value$changeIndex, _value$changeIndex2, _value$changeIndex3, _value$changeIndex4, _value$changeIndex5, _value$changeIndex6, _value$changeIndex7, _value$changeIndex8, _value$changeIndex9, _value$changeIndex10, _value$changeIndex11, _value$changeIndex12, _value$changeIndex13, _value$changeIndex14, _value$changeIndex15, _value$changeIndex16, _value$changeIndex17;
|
|
14029
14096
|
var _props$value = props.value,
|
|
14030
14097
|
value = _props$value === void 0 ? [] : _props$value,
|
|
14031
14098
|
onChange = props.onChange,
|
|
@@ -14098,13 +14165,28 @@ var jstGoods = function jstGoods(props) {
|
|
|
14098
14165
|
newList[changeIndex] = changeOrderInfo;
|
|
14099
14166
|
onChange === null || onChange === void 0 ? void 0 : onChange(newList);
|
|
14100
14167
|
};
|
|
14168
|
+
var handleSelectedReturn = function handleSelectedReturn(val, type, option, onlyShowFieldSelect) {
|
|
14169
|
+
var changeOrderInfo = _objectSpread2({}, value[changeIndex]);
|
|
14170
|
+
changeOrderInfo[type] = val;
|
|
14171
|
+
if (!onlyShowFieldSelect) {
|
|
14172
|
+
changeOrderInfo['returnWarehouseId'] = option.value;
|
|
14173
|
+
}
|
|
14174
|
+
if (isSelectName && type === 'returnWarehouseName') {
|
|
14175
|
+
// 如果发货仓名称存的是name,将id存入快照,同时把id替换成名称
|
|
14176
|
+
changeOrderInfo['sendSnapshotId'] = option.value;
|
|
14177
|
+
changeOrderInfo['returnWarehouseName'] = option.label;
|
|
14178
|
+
}
|
|
14179
|
+
var newList = _toConsumableArray(value);
|
|
14180
|
+
newList[changeIndex] = changeOrderInfo;
|
|
14181
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(newList);
|
|
14182
|
+
};
|
|
14101
14183
|
var filterOption = function filterOption(input, option) {
|
|
14102
14184
|
var _option$label;
|
|
14103
14185
|
return ((_option$label = option === null || option === void 0 ? void 0 : option.label) !== null && _option$label !== void 0 ? _option$label : '').includes(input);
|
|
14104
14186
|
};
|
|
14105
14187
|
var changeInputHandle = function changeInputHandle(val, type) {
|
|
14106
14188
|
var changeOrderInfo = _objectSpread2({}, value[changeIndex]);
|
|
14107
|
-
changeOrderInfo[type] = val;
|
|
14189
|
+
changeOrderInfo[type] = val === null || val === void 0 ? void 0 : val.trim();
|
|
14108
14190
|
var newList = _toConsumableArray(value);
|
|
14109
14191
|
newList[changeIndex] = changeOrderInfo;
|
|
14110
14192
|
onChange === null || onChange === void 0 ? void 0 : onChange(newList);
|
|
@@ -14212,7 +14294,35 @@ var jstGoods = function jstGoods(props) {
|
|
|
14212
14294
|
return changeInputHandle(e.target.value, 'deliveryNo');
|
|
14213
14295
|
},
|
|
14214
14296
|
value: (_value$changeIndex13 = value[changeIndex]) === null || _value$changeIndex13 === void 0 ? void 0 : _value$changeIndex13.sendName
|
|
14215
|
-
})) : null
|
|
14297
|
+
})) : null, type === 5 ? /*#__PURE__*/React__default['default'].createElement(antd.Space, null, ['returnWarehouseId', 'all'].includes(showField) && /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
14298
|
+
disabled: disabled,
|
|
14299
|
+
placeholder: "\u8BF7\u8F93\u5165\u9000\u8D27\u4ED3\u7F16\u7801",
|
|
14300
|
+
onChange: function onChange(e) {
|
|
14301
|
+
return changeInputHandle(e.target.value, 'returnWarehouseId');
|
|
14302
|
+
},
|
|
14303
|
+
value: (_value$changeIndex14 = value[changeIndex]) === null || _value$changeIndex14 === void 0 ? void 0 : _value$changeIndex14.returnWarehouseId
|
|
14304
|
+
}), ['returnWarehouseName', 'all'].includes(showField) && (isSelectName ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
14305
|
+
style: {
|
|
14306
|
+
minWidth: '100px',
|
|
14307
|
+
maxWidth: '180px'
|
|
14308
|
+
},
|
|
14309
|
+
disabled: disabled,
|
|
14310
|
+
placeholder: "\u9000\u8D27\u4ED3\u540D\u79F0",
|
|
14311
|
+
showSearch: true,
|
|
14312
|
+
options: sendOptions,
|
|
14313
|
+
filterOption: filterOption,
|
|
14314
|
+
value: ((_value$changeIndex15 = value[changeIndex]) === null || _value$changeIndex15 === void 0 ? void 0 : _value$changeIndex15.sendSnapshotId) || ((_value$changeIndex16 = value[changeIndex]) === null || _value$changeIndex16 === void 0 ? void 0 : _value$changeIndex16.returnWarehouseName) || null,
|
|
14315
|
+
onChange: function onChange(value, option) {
|
|
14316
|
+
return handleSelectedReturn(value, 'returnWarehouseName', option, onlyShowFieldSelect);
|
|
14317
|
+
}
|
|
14318
|
+
}) : /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
14319
|
+
disabled: disabled,
|
|
14320
|
+
placeholder: "\u8BF7\u8F93\u5165\u9000\u8D27\u4ED3\u540D\u79F0",
|
|
14321
|
+
onChange: function onChange(e) {
|
|
14322
|
+
return changeInputHandle(e.target.value, 'returnWarehouseName');
|
|
14323
|
+
},
|
|
14324
|
+
value: (_value$changeIndex17 = value[changeIndex]) === null || _value$changeIndex17 === void 0 ? void 0 : _value$changeIndex17.returnWarehouseName
|
|
14325
|
+
}))) : null) : null);
|
|
14216
14326
|
};
|
|
14217
14327
|
|
|
14218
14328
|
var css_248z$a = ".jstGoodsBox {\n display: flex;\n flex-wrap: wrap;\n}\n.jstGoodsBox .goodBox-Img {\n width: 80px;\n margin: 0 10px 10px 0;\n}\n.jstGoodsBox .right-context {\n font-size: 12px;\n}\n.jstGoodsBox .right-context .ant-input {\n font-size: 12px;\n width: 80px;\n height: 20px;\n padding-left: 5px;\n padding-right: 5px;\n}\n.jstGoodsBox .right-context .ant-input.id-textarea {\n width: 80px;\n resize: none;\n height: 45px;\n}\n.jstGoodsBox.goodsBox-item-horizontal--box {\n flex-direction: row;\n width: auto;\n}\n.jstimgBox {\n position: relative;\n width: 80px;\n height: 80px;\n border-radius: 4px;\n border: 1px solid #f2f3f5;\n margin: 0 10px 10px 0;\n text-align: center;\n background-color: #f2f3f5;\n display: flex;\n justify-items: center;\n align-items: center;\n}\n.jstimgBox .add-btn {\n color: #86909c;\n}\n.jstimgBox .text {\n color: #86909c;\n}\n.icon-close {\n position: absolute;\n top: -5px;\n right: -5px;\n width: 13px;\n height: 13px;\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: 50%;\n z-index: 3;\n background-color: #fff;\n cursor: pointer;\n}\n.img {\n width: 100%;\n height: 100%;\n -o-object-fit: contain;\n object-fit: contain;\n}\n.goods-title {\n margin: 0 0 10px 5px;\n color: #4e5969;\n}\n.searchBox {\n display: flex;\n justify-content: space-between;\n flex-wrap: wrap;\n margin-bottom: 10px;\n}\n.searchBox .search {\n width: 150px;\n margin-left: 6px;\n}\n.deg90 {\n transform: rotate(90deg);\n}\n.goodsMain {\n display: flex;\n flex-wrap: wrap;\n height: 400px;\n overflow-y: auto;\n margin-bottom: 10px;\n}\n.goodsMain .goodItem {\n width: 142px;\n height: 184px;\n padding: 7px;\n margin: 0 16px 16px 0;\n border-radius: 4px;\n background: #ffffff;\n box-sizing: border-box;\n /* 主题色/常规 */\n border: 1px solid #c9cdd4;\n}\n.goodsMain .goodItem .goodImg {\n width: 128px;\n height: 128px;\n border-radius: 4px;\n overflow: hidden;\n}\n.goodsMain .goodItem .goodImg img {\n width: 100%;\n height: 100%;\n -o-object-fit: contain;\n object-fit: contain;\n}\n.goodsMain .goodItem .goodText {\n text-align: center;\n font-size: 12px;\n color: #4e5969;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.goodsMain .goodItem .goodPrice {\n text-align: center;\n font-size: 14px;\n color: #1d2129;\n}\n.goodsMain .goodItem.active {\n border: 1px solid #1b5bf3;\n}\n@media screen and (max-width: 500px) {\n .goodsMain {\n display: grid;\n grid-template-columns: repeat(3, 1fr);\n grid-gap: 8px;\n height: 300px;\n }\n .goodsMain .goodItem {\n height: 126px;\n width: 83px;\n padding: 4px;\n margin: 0;\n border-radius: 4px;\n background: #FFFFFF;\n box-sizing: border-box;\n border: 1px solid rgba(0, 0, 0, 0.15);\n }\n .goodsMain .goodItem .goodImg {\n width: 98%;\n height: 77px;\n }\n .goodsMain .goodItem .goodText {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .goodsMain .goodItem.active {\n border: 1px solid #3089dc;\n }\n .searchBox {\n display: flex;\n flex-wrap: wrap;\n justify-content: initial;\n }\n .searchBox .classify {\n width: 120px;\n }\n .goodModal .ant-modal-body {\n padding: 8px;\n }\n}\n.goods-uploaded-count {\n color: #ff3638;\n}\n.footer {\n display: flex;\n justify-content: flex-end;\n}\n.right-context {\n display: flex;\n flex-direction: column;\n}\n.right-context .info-row {\n width: 80px;\n display: flex;\n align-items: center;\n padding: 0px 8px;\n border-radius: 2px;\n cursor: pointer;\n background: #f2f3f5;\n margin-bottom: 4px;\n}\n.right-context .info-row > div {\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 2;\n overflow: hidden;\n word-break: break-all;\n}\n.sphPagination {\n display: flex;\n align-items: center;\n}\n.sphPagination .shpBtn {\n display: flex;\n justify-content: center;\n align-items: center;\n padding: 0 8px;\n height: 32px;\n border: 1px solid #d9d9d9;\n border-radius: 2px;\n cursor: pointer;\n margin: 0 8px;\n}\n.sphPagination .shpBtn.unCursor {\n color: #eee;\n cursor: not-allowed;\n}\n";
|
|
@@ -21710,16 +21820,28 @@ function toNum$3(value) {
|
|
|
21710
21820
|
}
|
|
21711
21821
|
return void 0;
|
|
21712
21822
|
}
|
|
21713
|
-
var
|
|
21714
|
-
|
|
21823
|
+
var isNumberOrNumberString$2 = function isNumberOrNumberString(value) {
|
|
21824
|
+
if (typeof value === 'number') return true;
|
|
21825
|
+
if (typeof value === 'string' && !isNaN(Number(value)) && value.trim() !== '') return true;
|
|
21826
|
+
return false;
|
|
21827
|
+
};
|
|
21828
|
+
var getColumns$6 = function getColumns() {
|
|
21829
|
+
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
21830
|
+
_ref$text = _ref.text,
|
|
21715
21831
|
disabled = _ref.disabled,
|
|
21716
|
-
updateHandle = _ref.updateHandle
|
|
21832
|
+
updateHandle = _ref.updateHandle,
|
|
21833
|
+
updateDataHandle = _ref.updateDataHandle;
|
|
21717
21834
|
return {
|
|
21718
21835
|
KM_GOODS: [{
|
|
21719
21836
|
dataIndex: 'skuPropertiesName',
|
|
21720
21837
|
title: "\u89C4\u683C\u540D\u79F0",
|
|
21721
21838
|
width: 250,
|
|
21722
21839
|
render: renderTextEllipsis
|
|
21840
|
+
}, {
|
|
21841
|
+
dataIndex: 'sysSkuPropertiesName',
|
|
21842
|
+
title: "\u7CFB\u7EDF\u89C4\u683C\u540D\u79F0",
|
|
21843
|
+
width: 150,
|
|
21844
|
+
render: renderTextEllipsis
|
|
21723
21845
|
}, {
|
|
21724
21846
|
dataIndex: 'sysTitle',
|
|
21725
21847
|
title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
|
|
@@ -21843,6 +21965,11 @@ var getColumns$6 = function getColumns(_ref) {
|
|
|
21843
21965
|
title: "\u89C4\u683C\u540D\u79F0",
|
|
21844
21966
|
width: 250,
|
|
21845
21967
|
render: renderTextEllipsis
|
|
21968
|
+
}, {
|
|
21969
|
+
dataIndex: 'sysSkuPropertiesName',
|
|
21970
|
+
title: "\u7CFB\u7EDF\u89C4\u683C\u540D\u79F0",
|
|
21971
|
+
width: 150,
|
|
21972
|
+
render: renderTextEllipsis
|
|
21846
21973
|
}, {
|
|
21847
21974
|
dataIndex: 'sysTitle',
|
|
21848
21975
|
title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
|
|
@@ -21887,7 +22014,9 @@ var getColumns$6 = function getColumns(_ref) {
|
|
|
21887
22014
|
dataIndex: 'realNum',
|
|
21888
22015
|
title: "\u5B9E\u9645\u8865\u53D1\u6570\u91CF",
|
|
21889
22016
|
width: 100,
|
|
21890
|
-
validator: function validator(_rule, value) {
|
|
22017
|
+
validator: function validator(_rule, value, extraParams) {
|
|
22018
|
+
console.log('实际补发数量-extraParams', extraParams);
|
|
22019
|
+
if (!(extraParams === null || extraParams === void 0 ? void 0 : extraParams.quantityVerify)) return undefined;
|
|
21891
22020
|
var title = '';
|
|
21892
22021
|
if (((value === null || value === void 0 ? void 0 : value.kmReissueGoods) || []).some(function (goods) {
|
|
21893
22022
|
var realNum = toNum$3(goods === null || goods === void 0 ? void 0 : goods.realNum);
|
|
@@ -21915,8 +22044,21 @@ var getColumns$6 = function getColumns(_ref) {
|
|
|
21915
22044
|
}
|
|
21916
22045
|
}, {
|
|
21917
22046
|
dataIndex: 'desiredNum',
|
|
21918
|
-
title: "\
|
|
22047
|
+
title: "\u7533\u8BF7\u8865\u53D1\u6570\u91CF",
|
|
21919
22048
|
width: 100,
|
|
22049
|
+
validator: function validator(_rule, value) {
|
|
22050
|
+
var title = '';
|
|
22051
|
+
if (((value === null || value === void 0 ? void 0 : value.kmReissueGoods) || []).some(function (goods) {
|
|
22052
|
+
var desiredNum = toNum$3(goods === null || goods === void 0 ? void 0 : goods.desiredNum);
|
|
22053
|
+
var res = typeof desiredNum === 'number' ? desiredNum < 1 : true;
|
|
22054
|
+
if (res) {
|
|
22055
|
+
title = (goods === null || goods === void 0 ? void 0 : goods.goodName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodName, "]") : '';
|
|
22056
|
+
}
|
|
22057
|
+
return res;
|
|
22058
|
+
})) {
|
|
22059
|
+
return Promise.reject("".concat(title, "\u7533\u8BF7\u8865\u53D1\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
|
|
22060
|
+
}
|
|
22061
|
+
},
|
|
21920
22062
|
render: function render(val, record, index) {
|
|
21921
22063
|
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
21922
22064
|
style: {
|
|
@@ -21985,11 +22127,336 @@ var getColumns$6 = function getColumns(_ref) {
|
|
|
21985
22127
|
align: 'center',
|
|
21986
22128
|
ellipsis: true
|
|
21987
22129
|
});
|
|
22130
|
+
}),
|
|
22131
|
+
KM_RETURN_GOODS: [{
|
|
22132
|
+
dataIndex: 'skuPropertiesName',
|
|
22133
|
+
title: "\u89C4\u683C\u540D\u79F0",
|
|
22134
|
+
width: 250,
|
|
22135
|
+
render: renderTextEllipsis
|
|
22136
|
+
}, {
|
|
22137
|
+
dataIndex: 'sysSkuPropertiesName',
|
|
22138
|
+
title: "\u7CFB\u7EDF\u89C4\u683C\u540D\u79F0",
|
|
22139
|
+
width: 150,
|
|
22140
|
+
render: renderTextEllipsis
|
|
22141
|
+
}, {
|
|
22142
|
+
dataIndex: 'sysTitle',
|
|
22143
|
+
title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
|
|
22144
|
+
width: 150,
|
|
22145
|
+
render: renderTextEllipsis
|
|
22146
|
+
}, {
|
|
22147
|
+
dataIndex: 'shortTitle',
|
|
22148
|
+
title: "\u5546\u54C1\u7B80\u79F0",
|
|
22149
|
+
width: 150,
|
|
22150
|
+
render: renderTextEllipsis
|
|
22151
|
+
}, {
|
|
22152
|
+
dataIndex: 'title',
|
|
22153
|
+
title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
|
|
22154
|
+
width: 150,
|
|
22155
|
+
render: renderTextEllipsis
|
|
22156
|
+
}, {
|
|
22157
|
+
dataIndex: 'sysOuterId',
|
|
22158
|
+
title: "\u7CFB\u7EDF\u5546\u5BB6\u7F16\u7801",
|
|
22159
|
+
width: 150,
|
|
22160
|
+
render: renderTextEllipsis
|
|
22161
|
+
}, {
|
|
22162
|
+
dataIndex: 'itemSysId',
|
|
22163
|
+
title: "\u7CFB\u7EDF\u5546\u54C1ID",
|
|
22164
|
+
width: 150,
|
|
22165
|
+
render: renderTextEllipsis
|
|
22166
|
+
}, {
|
|
22167
|
+
dataIndex: 'skuSysId',
|
|
22168
|
+
title: "\u7CFB\u7EDF\u89C4\u683CID",
|
|
22169
|
+
width: 150,
|
|
22170
|
+
render: renderTextEllipsis
|
|
22171
|
+
}, {
|
|
22172
|
+
dataIndex: 'skuId',
|
|
22173
|
+
title: "\u5E73\u53F0\u89C4\u683CID",
|
|
22174
|
+
width: 170,
|
|
22175
|
+
render: renderTextEllipsis
|
|
22176
|
+
}, {
|
|
22177
|
+
dataIndex: 'outerSkuId',
|
|
22178
|
+
title: "\u5E73\u53F0\u89C4\u683C\u7F16\u7801",
|
|
22179
|
+
width: 170,
|
|
22180
|
+
render: renderTextEllipsis
|
|
22181
|
+
}, {
|
|
22182
|
+
dataIndex: 'realNum',
|
|
22183
|
+
title: "\u5B9E\u9645\u9000\u8D27\u6570\u91CF",
|
|
22184
|
+
width: 100,
|
|
22185
|
+
render: function render(val, record, index) {
|
|
22186
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
22187
|
+
style: {
|
|
22188
|
+
width: 70
|
|
22189
|
+
},
|
|
22190
|
+
value: val,
|
|
22191
|
+
min: 1,
|
|
22192
|
+
precision: 0,
|
|
22193
|
+
onChange: function onChange(num) {
|
|
22194
|
+
updateDataHandle({
|
|
22195
|
+
realNum: num,
|
|
22196
|
+
refundMoney: num && isNumberOrNumberString$2(record.price) ? num * record.price : null
|
|
22197
|
+
}, index);
|
|
22198
|
+
}
|
|
22199
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
22200
|
+
}
|
|
22201
|
+
}, {
|
|
22202
|
+
dataIndex: 'desiredNum',
|
|
22203
|
+
title: "\u7533\u8BF7\u9000\u8D27\u6570\u91CF",
|
|
22204
|
+
width: 100,
|
|
22205
|
+
validator: function validator(_rule, value) {
|
|
22206
|
+
var title = '';
|
|
22207
|
+
if (((value === null || value === void 0 ? void 0 : value.kmReturnGoods) || []).some(function (goods) {
|
|
22208
|
+
var desiredNum = toNum$3(goods === null || goods === void 0 ? void 0 : goods.desiredNum);
|
|
22209
|
+
var res = typeof desiredNum === 'number' ? desiredNum < 1 : true;
|
|
22210
|
+
if (res) {
|
|
22211
|
+
title = (goods === null || goods === void 0 ? void 0 : goods.goodName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodName, "]") : '';
|
|
22212
|
+
}
|
|
22213
|
+
return res;
|
|
22214
|
+
})) {
|
|
22215
|
+
return Promise.reject("".concat(title, "\u7533\u8BF7\u9000\u8D27\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
|
|
22216
|
+
}
|
|
22217
|
+
},
|
|
22218
|
+
render: function render(val, record, index) {
|
|
22219
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
22220
|
+
style: {
|
|
22221
|
+
width: 70
|
|
22222
|
+
},
|
|
22223
|
+
value: val,
|
|
22224
|
+
min: 1,
|
|
22225
|
+
precision: 0,
|
|
22226
|
+
onChange: function onChange(num) {
|
|
22227
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'desiredNum');
|
|
22228
|
+
}
|
|
22229
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
22230
|
+
}
|
|
22231
|
+
}, {
|
|
22232
|
+
dataIndex: 'goodNum',
|
|
22233
|
+
title: "\u826F\u54C1\u6570",
|
|
22234
|
+
width: 100,
|
|
22235
|
+
render: function render(val, record, index) {
|
|
22236
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
22237
|
+
style: {
|
|
22238
|
+
width: 70
|
|
22239
|
+
},
|
|
22240
|
+
value: val,
|
|
22241
|
+
min: 1,
|
|
22242
|
+
precision: 0,
|
|
22243
|
+
onChange: function onChange(num) {
|
|
22244
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'goodNum');
|
|
22245
|
+
}
|
|
22246
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
22247
|
+
}
|
|
22248
|
+
}, {
|
|
22249
|
+
dataIndex: 'defectiveNum',
|
|
22250
|
+
title: "\u6B21\u54C1\u6570",
|
|
22251
|
+
width: 100,
|
|
22252
|
+
render: function render(val, record, index) {
|
|
22253
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
22254
|
+
style: {
|
|
22255
|
+
width: 70
|
|
22256
|
+
},
|
|
22257
|
+
value: val,
|
|
22258
|
+
min: 1,
|
|
22259
|
+
precision: 0,
|
|
22260
|
+
onChange: function onChange(num) {
|
|
22261
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'defectiveNum');
|
|
22262
|
+
}
|
|
22263
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
22264
|
+
}
|
|
22265
|
+
}, {
|
|
22266
|
+
dataIndex: 'price',
|
|
22267
|
+
title: "\u5546\u54C1\u9500\u552E\u4EF7",
|
|
22268
|
+
width: 150,
|
|
22269
|
+
render: function render(val) {
|
|
22270
|
+
return val || val === 0 ? Number(val).toFixed(2) : '';
|
|
22271
|
+
}
|
|
22272
|
+
}, {
|
|
22273
|
+
dataIndex: 'refundMoney',
|
|
22274
|
+
title: "\u5B9E\u9000\u91D1\u989D",
|
|
22275
|
+
width: 150,
|
|
22276
|
+
render: function render(val, record, index) {
|
|
22277
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
22278
|
+
style: {
|
|
22279
|
+
width: 130
|
|
22280
|
+
},
|
|
22281
|
+
value: val,
|
|
22282
|
+
min: 0,
|
|
22283
|
+
precision: 2,
|
|
22284
|
+
onChange: function onChange(num) {
|
|
22285
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'refundMoney');
|
|
22286
|
+
}
|
|
22287
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val || val === 0 ? Number(val).toFixed(2) : '');
|
|
22288
|
+
}
|
|
22289
|
+
}, {
|
|
22290
|
+
dataIndex: 'type',
|
|
22291
|
+
title: "\u5546\u54C1\u7C7B\u578B",
|
|
22292
|
+
width: 150,
|
|
22293
|
+
render: renderTextEllipsis
|
|
22294
|
+
}, {
|
|
22295
|
+
dataIndex: 'sysPicPath',
|
|
22296
|
+
title: "\u5546\u54C1\u56FE\u7247",
|
|
22297
|
+
width: 100,
|
|
22298
|
+
headerComponentType: 'pic',
|
|
22299
|
+
render: function render(val) {
|
|
22300
|
+
var imgUrl = (val === null || val === void 0 ? void 0 : val.startsWith('http')) ? val : "https://erp.superboss.cc".concat(val);
|
|
22301
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Image, {
|
|
22302
|
+
width: 30,
|
|
22303
|
+
src: imgUrl
|
|
22304
|
+
});
|
|
22305
|
+
}
|
|
22306
|
+
}].map(function (item) {
|
|
22307
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
22308
|
+
align: 'center',
|
|
22309
|
+
ellipsis: true
|
|
22310
|
+
});
|
|
22311
|
+
}),
|
|
22312
|
+
KM_EXCHANGE_GOODS: [{
|
|
22313
|
+
dataIndex: 'skuPropertiesName',
|
|
22314
|
+
title: "\u89C4\u683C\u540D\u79F0",
|
|
22315
|
+
width: 250,
|
|
22316
|
+
render: renderTextEllipsis
|
|
22317
|
+
}, {
|
|
22318
|
+
dataIndex: 'sysSkuPropertiesName',
|
|
22319
|
+
title: "\u7CFB\u7EDF\u89C4\u683C\u540D\u79F0",
|
|
22320
|
+
width: 150,
|
|
22321
|
+
render: renderTextEllipsis
|
|
22322
|
+
}, {
|
|
22323
|
+
dataIndex: 'sysTitle',
|
|
22324
|
+
title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
|
|
22325
|
+
width: 150,
|
|
22326
|
+
render: renderTextEllipsis
|
|
22327
|
+
}, {
|
|
22328
|
+
dataIndex: 'shortTitle',
|
|
22329
|
+
title: "\u5546\u54C1\u7B80\u79F0",
|
|
22330
|
+
width: 150,
|
|
22331
|
+
render: renderTextEllipsis
|
|
22332
|
+
}, {
|
|
22333
|
+
dataIndex: 'title',
|
|
22334
|
+
title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
|
|
22335
|
+
width: 150,
|
|
22336
|
+
render: renderTextEllipsis
|
|
22337
|
+
}, {
|
|
22338
|
+
dataIndex: 'sysOuterId',
|
|
22339
|
+
title: "\u7CFB\u7EDF\u5546\u5BB6\u7F16\u7801",
|
|
22340
|
+
width: 150,
|
|
22341
|
+
render: renderTextEllipsis
|
|
22342
|
+
}, {
|
|
22343
|
+
dataIndex: 'itemSysId',
|
|
22344
|
+
title: "\u7CFB\u7EDF\u5546\u54C1ID",
|
|
22345
|
+
width: 150,
|
|
22346
|
+
render: renderTextEllipsis
|
|
22347
|
+
}, {
|
|
22348
|
+
dataIndex: 'skuSysId',
|
|
22349
|
+
title: "\u7CFB\u7EDF\u89C4\u683CID",
|
|
22350
|
+
width: 150,
|
|
22351
|
+
render: renderTextEllipsis
|
|
22352
|
+
}, {
|
|
22353
|
+
dataIndex: 'skuId',
|
|
22354
|
+
title: "\u5E73\u53F0\u89C4\u683CID",
|
|
22355
|
+
width: 170,
|
|
22356
|
+
render: renderTextEllipsis
|
|
22357
|
+
}, {
|
|
22358
|
+
dataIndex: 'outerSkuId',
|
|
22359
|
+
title: "\u5E73\u53F0\u89C4\u683C\u7F16\u7801",
|
|
22360
|
+
width: 170,
|
|
22361
|
+
render: renderTextEllipsis
|
|
22362
|
+
}, {
|
|
22363
|
+
dataIndex: 'realNum',
|
|
22364
|
+
title: "\u5B9E\u9645\u6362\u51FA\u6570\u91CF",
|
|
22365
|
+
width: 100,
|
|
22366
|
+
validator: function validator(_rule, value, extraParams) {
|
|
22367
|
+
if (!(extraParams === null || extraParams === void 0 ? void 0 : extraParams.quantityVerify)) return undefined;
|
|
22368
|
+
var title = '';
|
|
22369
|
+
if (((value === null || value === void 0 ? void 0 : value.kmExchangeGoods) || []).some(function (goods) {
|
|
22370
|
+
var realNum = toNum$3(goods === null || goods === void 0 ? void 0 : goods.realNum);
|
|
22371
|
+
var res = typeof realNum === 'number' ? realNum < 1 : true;
|
|
22372
|
+
if (res) {
|
|
22373
|
+
title = (goods === null || goods === void 0 ? void 0 : goods.goodName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodName, "]") : '';
|
|
22374
|
+
}
|
|
22375
|
+
return res;
|
|
22376
|
+
})) {
|
|
22377
|
+
return Promise.reject("".concat(title, "\u5B9E\u9645\u6362\u51FA\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
|
|
22378
|
+
}
|
|
22379
|
+
},
|
|
22380
|
+
render: function render(val, record, index) {
|
|
22381
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
22382
|
+
style: {
|
|
22383
|
+
width: 70
|
|
22384
|
+
},
|
|
22385
|
+
value: val,
|
|
22386
|
+
min: 1,
|
|
22387
|
+
precision: 0,
|
|
22388
|
+
onChange: function onChange(num) {
|
|
22389
|
+
updateDataHandle({
|
|
22390
|
+
realNum: num,
|
|
22391
|
+
refundMoney: num && isNumberOrNumberString$2(record.price) ? num * record.price : null
|
|
22392
|
+
}, index);
|
|
22393
|
+
}
|
|
22394
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
22395
|
+
}
|
|
22396
|
+
}, {
|
|
22397
|
+
dataIndex: 'desiredNum',
|
|
22398
|
+
title: "\u5E94\u6362\u51FA\u6570\u91CF",
|
|
22399
|
+
width: 100,
|
|
22400
|
+
validator: function validator(_rule, value) {
|
|
22401
|
+
var title = '';
|
|
22402
|
+
if (((value === null || value === void 0 ? void 0 : value.kmExchangeGoods) || []).some(function (goods) {
|
|
22403
|
+
var desiredNum = toNum$3(goods === null || goods === void 0 ? void 0 : goods.desiredNum);
|
|
22404
|
+
var res = typeof desiredNum === 'number' ? desiredNum < 1 : true;
|
|
22405
|
+
if (res) {
|
|
22406
|
+
title = (goods === null || goods === void 0 ? void 0 : goods.goodName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodName, "]") : '';
|
|
22407
|
+
}
|
|
22408
|
+
return res;
|
|
22409
|
+
})) {
|
|
22410
|
+
return Promise.reject("".concat(title, "\u5E94\u6362\u51FA\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
|
|
22411
|
+
}
|
|
22412
|
+
},
|
|
22413
|
+
render: function render(val, record, index) {
|
|
22414
|
+
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
22415
|
+
style: {
|
|
22416
|
+
width: 70
|
|
22417
|
+
},
|
|
22418
|
+
value: val,
|
|
22419
|
+
min: 1,
|
|
22420
|
+
precision: 0,
|
|
22421
|
+
onChange: function onChange(num) {
|
|
22422
|
+
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'desiredNum');
|
|
22423
|
+
}
|
|
22424
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
22425
|
+
}
|
|
22426
|
+
}, {
|
|
22427
|
+
dataIndex: 'price',
|
|
22428
|
+
title: "\u5546\u54C1\u9500\u552E\u4EF7",
|
|
22429
|
+
width: 150,
|
|
22430
|
+
render: function render(val) {
|
|
22431
|
+
return val || val === 0 ? Number(val).toFixed(2) : '';
|
|
22432
|
+
}
|
|
22433
|
+
}, {
|
|
22434
|
+
dataIndex: 'type',
|
|
22435
|
+
title: "\u5546\u54C1\u7C7B\u578B",
|
|
22436
|
+
width: 150,
|
|
22437
|
+
render: renderTextEllipsis
|
|
22438
|
+
}, {
|
|
22439
|
+
dataIndex: 'sysPicPath',
|
|
22440
|
+
title: "\u5546\u54C1\u56FE\u7247",
|
|
22441
|
+
width: 100,
|
|
22442
|
+
headerComponentType: 'pic',
|
|
22443
|
+
render: function render(val) {
|
|
22444
|
+
var imgUrl = (val === null || val === void 0 ? void 0 : val.startsWith('http')) ? val : "https://erp.superboss.cc".concat(val);
|
|
22445
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Image, {
|
|
22446
|
+
width: 30,
|
|
22447
|
+
src: imgUrl
|
|
22448
|
+
});
|
|
22449
|
+
}
|
|
22450
|
+
}].map(function (item) {
|
|
22451
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
22452
|
+
align: 'center',
|
|
22453
|
+
ellipsis: true
|
|
22454
|
+
});
|
|
21988
22455
|
})
|
|
21989
22456
|
};
|
|
21990
22457
|
};
|
|
21991
22458
|
|
|
21992
|
-
var isNumberOrNumberString$
|
|
22459
|
+
var isNumberOrNumberString$3 = function isNumberOrNumberString(value) {
|
|
21993
22460
|
if (typeof value === 'number') return true;
|
|
21994
22461
|
if (typeof value === 'string' && !isNaN(Number(value)) && value.trim() !== '') return true;
|
|
21995
22462
|
return false;
|
|
@@ -22127,7 +22594,7 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
22127
22594
|
onChange: function onChange(num) {
|
|
22128
22595
|
updateDataHandle({
|
|
22129
22596
|
sellCount: num,
|
|
22130
|
-
sellTotal: num && isNumberOrNumberString$
|
|
22597
|
+
sellTotal: num && isNumberOrNumberString$3(record.sellPrice) ? num * record.sellPrice : null
|
|
22131
22598
|
}, index);
|
|
22132
22599
|
}
|
|
22133
22600
|
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
@@ -22147,7 +22614,7 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
22147
22614
|
onChange: function onChange(num) {
|
|
22148
22615
|
updateDataHandle({
|
|
22149
22616
|
sellPrice: num,
|
|
22150
|
-
sellTotal: num && isNumberOrNumberString$
|
|
22617
|
+
sellTotal: num && isNumberOrNumberString$3(record.sellCount) ? num * record.sellCount : null
|
|
22151
22618
|
}, index);
|
|
22152
22619
|
}
|
|
22153
22620
|
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
@@ -22350,7 +22817,7 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
22350
22817
|
onChange: function onChange(num) {
|
|
22351
22818
|
updateDataHandle({
|
|
22352
22819
|
sellCount: num,
|
|
22353
|
-
sellTotal: num && isNumberOrNumberString$
|
|
22820
|
+
sellTotal: num && isNumberOrNumberString$3(record.sellPrice) ? num * record.sellPrice : null
|
|
22354
22821
|
}, index);
|
|
22355
22822
|
}
|
|
22356
22823
|
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
@@ -22370,7 +22837,7 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
22370
22837
|
onChange: function onChange(num) {
|
|
22371
22838
|
updateDataHandle({
|
|
22372
22839
|
sellPrice: num,
|
|
22373
|
-
sellTotal: num && isNumberOrNumberString$
|
|
22840
|
+
sellTotal: num && isNumberOrNumberString$3(record.sellCount) ? num * record.sellCount : null
|
|
22374
22841
|
}, index);
|
|
22375
22842
|
}
|
|
22376
22843
|
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
@@ -22494,7 +22961,7 @@ var getColumns$8 = function getColumns(_ref) {
|
|
|
22494
22961
|
};
|
|
22495
22962
|
};
|
|
22496
22963
|
|
|
22497
|
-
var isNumberOrNumberString$
|
|
22964
|
+
var isNumberOrNumberString$4 = function isNumberOrNumberString(value) {
|
|
22498
22965
|
if (typeof value === 'number') return true;
|
|
22499
22966
|
if (typeof value === 'string' && !isNaN(Number(value)) && value.trim() !== '') return true;
|
|
22500
22967
|
return false;
|
|
@@ -22584,7 +23051,7 @@ var getColumns$9 = function getColumns(_ref) {
|
|
|
22584
23051
|
onChange: function onChange(num) {
|
|
22585
23052
|
updateDataHandle({
|
|
22586
23053
|
sellCount: num,
|
|
22587
|
-
sellTotal: num && isNumberOrNumberString$
|
|
23054
|
+
sellTotal: num && isNumberOrNumberString$4(record.sellPrice) ? num * record.sellPrice : null
|
|
22588
23055
|
}, index);
|
|
22589
23056
|
}
|
|
22590
23057
|
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
@@ -22609,7 +23076,7 @@ var getColumns$9 = function getColumns(_ref) {
|
|
|
22609
23076
|
onChange: function onChange(num) {
|
|
22610
23077
|
updateDataHandle({
|
|
22611
23078
|
sellPrice: num,
|
|
22612
|
-
sellTotal: num && isNumberOrNumberString$
|
|
23079
|
+
sellTotal: num && isNumberOrNumberString$4(record.sellCount) ? num * record.sellCount : null
|
|
22613
23080
|
}, index);
|
|
22614
23081
|
}
|
|
22615
23082
|
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
@@ -22908,7 +23375,7 @@ var getColumns$9 = function getColumns(_ref) {
|
|
|
22908
23375
|
onChange: function onChange(num) {
|
|
22909
23376
|
updateDataHandle({
|
|
22910
23377
|
sellCount: num,
|
|
22911
|
-
sellTotal: num && isNumberOrNumberString$
|
|
23378
|
+
sellTotal: num && isNumberOrNumberString$4(record.sellPrice) ? num * record.sellPrice : null
|
|
22912
23379
|
}, index);
|
|
22913
23380
|
}
|
|
22914
23381
|
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
@@ -22928,7 +23395,7 @@ var getColumns$9 = function getColumns(_ref) {
|
|
|
22928
23395
|
onChange: function onChange(num) {
|
|
22929
23396
|
updateDataHandle({
|
|
22930
23397
|
sellPrice: num,
|
|
22931
|
-
sellTotal: num && isNumberOrNumberString$
|
|
23398
|
+
sellTotal: num && isNumberOrNumberString$4(record.sellCount) ? num * record.sellCount : null
|
|
22932
23399
|
}, index);
|
|
22933
23400
|
}
|
|
22934
23401
|
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
@@ -23156,7 +23623,8 @@ var getColumnsMap$1 = function getColumnsMap(args) {
|
|
|
23156
23623
|
})), getColumns$6({
|
|
23157
23624
|
text: text,
|
|
23158
23625
|
disabled: disabled,
|
|
23159
|
-
updateHandle: updateHandle
|
|
23626
|
+
updateHandle: updateHandle,
|
|
23627
|
+
updateDataHandle: updateDataHandle
|
|
23160
23628
|
})), getColumns$7({
|
|
23161
23629
|
text: text,
|
|
23162
23630
|
disabled: disabled,
|
|
@@ -23180,7 +23648,7 @@ var getColumnsMap$1 = function getColumnsMap(args) {
|
|
|
23180
23648
|
});
|
|
23181
23649
|
};
|
|
23182
23650
|
var erpColumnsMap = getColumnsMap$1();
|
|
23183
|
-
var erpFormValidator = function erpFormValidator(_rule, value, type) {
|
|
23651
|
+
var erpFormValidator = function erpFormValidator(_rule, value, type, extraParams) {
|
|
23184
23652
|
var validatorFnList = (erpColumnsMap[type] || erpColumnsMap['default']).map(function (column) {
|
|
23185
23653
|
return column.validator;
|
|
23186
23654
|
}).filter(Boolean);
|
|
@@ -23190,7 +23658,7 @@ var erpFormValidator = function erpFormValidator(_rule, value, type) {
|
|
|
23190
23658
|
try {
|
|
23191
23659
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
23192
23660
|
var validatorFn = _step.value;
|
|
23193
|
-
var validatorResult = validatorFn(_rule, value,
|
|
23661
|
+
var validatorResult = validatorFn(_rule, value, extraParams);
|
|
23194
23662
|
if (validatorResult) {
|
|
23195
23663
|
res = validatorResult;
|
|
23196
23664
|
break;
|
|
@@ -23315,7 +23783,7 @@ var isErpType = {
|
|
|
23315
23783
|
return ['JST_GOODS', 'JST_REISSUE_GOODS', 'JST_RETURN_GOODS', 'JST_EXCHANGE_GOODS'].includes(type);
|
|
23316
23784
|
},
|
|
23317
23785
|
isKm: function isKm(type) {
|
|
23318
|
-
return ['KM_GOODS', 'KM_REISSUE_GOODS'].includes(type);
|
|
23786
|
+
return ['KM_GOODS', 'KM_REISSUE_GOODS', 'KM_RETURN_GOODS', 'KM_EXCHANGE_GOODS'].includes(type);
|
|
23319
23787
|
},
|
|
23320
23788
|
isJy: function isJy(type) {
|
|
23321
23789
|
return ['JY_GOODS', 'JY_REISSUE_GOODS'].includes(type);
|
|
@@ -23580,11 +24048,17 @@ var processKmGoods$1 = function processKmGoods(_ref8) {
|
|
|
23580
24048
|
KM_REISSUE_GOODS: {
|
|
23581
24049
|
realNum: 1,
|
|
23582
24050
|
desiredNum: 1
|
|
24051
|
+
},
|
|
24052
|
+
KM_RETURN_GOODS: {},
|
|
24053
|
+
KM_EXCHANGE_GOODS: {
|
|
24054
|
+
realNum: 1,
|
|
24055
|
+
desiredNum: 1
|
|
23583
24056
|
}
|
|
23584
24057
|
};
|
|
23585
24058
|
return list.map(function (item) {
|
|
23586
24059
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
23587
24060
|
skuPropertiesName: item.specName,
|
|
24061
|
+
sysSkuPropertiesName: item.specId,
|
|
23588
24062
|
sysTitle: item.goodName,
|
|
23589
24063
|
title: null,
|
|
23590
24064
|
shortTitle: item.goodShortName,
|
|
@@ -23649,6 +24123,8 @@ var GoodsModalMap = {
|
|
|
23649
24123
|
JST_EXCHANGE_GOODS: JstGoodsModal,
|
|
23650
24124
|
KM_GOODS: KmGoodsModal,
|
|
23651
24125
|
KM_REISSUE_GOODS: KmGoodsModal,
|
|
24126
|
+
KM_RETURN_GOODS: KmGoodsModal,
|
|
24127
|
+
KM_EXCHANGE_GOODS: KmGoodsModal,
|
|
23652
24128
|
JY_GOODS: JyGoodsModal$1,
|
|
23653
24129
|
JY_REISSUE_GOODS: JyGoodsModal$1,
|
|
23654
24130
|
JKY_GOODS: JkyGoodsModal$1,
|
|
@@ -23668,6 +24144,7 @@ var systemOrderNoMap = {
|
|
|
23668
24144
|
JKY_GOODS: 'tradeNo',
|
|
23669
24145
|
JKY_REISSUE_GOODS: 'tradeNo',
|
|
23670
24146
|
KM_REISSUE_GOODS: 'sid',
|
|
24147
|
+
KM_RETURN_GOODS: 'sid',
|
|
23671
24148
|
JST_REISSUE_GOODS: 'oId',
|
|
23672
24149
|
GY_REISSUE_GOODS: 'code',
|
|
23673
24150
|
BS_E3_REISSUE_GOODS: 'orderSn',
|
|
@@ -23755,7 +24232,7 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
|
23755
24232
|
_context2.next = 6;
|
|
23756
24233
|
return getDataSourceAsync();
|
|
23757
24234
|
case 6:
|
|
23758
|
-
if (!['KM_GOODS', 'KM_REISSUE_GOODS'].includes(type)) {
|
|
24235
|
+
if (!['KM_GOODS', 'KM_REISSUE_GOODS', 'KM_RETURN_GOODS'].includes(type)) {
|
|
23759
24236
|
_context2.next = 9;
|
|
23760
24237
|
break;
|
|
23761
24238
|
}
|
|
@@ -23960,7 +24437,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
23960
24437
|
var jstReturnGoods = antd.Form === null || antd.Form === void 0 ? void 0 : antd.Form.useWatch('3979edfd6d', form);
|
|
23961
24438
|
var isShowSelectTradeGoods = type !== 'JST_EXCHANGE_GOODS' || (jstReturnGoods === null || jstReturnGoods === void 0 ? void 0 : jstReturnGoods.jstSystemOrderNo);
|
|
23962
24439
|
// 判断是否为是否展示系统单筛选项
|
|
23963
|
-
var isShowSelect = type && ['WDT_GOODS', 'BS_E3_GOODS', 'GY_GOODS', 'JST_GOODS', 'WLN_GOODS', 'KM_GOODS', 'JY_GOODS', 'JY_REISSUE_GOODS', 'JKY_GOODS', 'JKY_REISSUE_GOODS', 'GY_REISSUE_GOODS', 'KM_REISSUE_GOODS', 'BS_E3_REISSUE_GOODS', 'WDT_REISSUE_GOODS', 'JST_REISSUE_GOODS'].includes(type) || false;
|
|
24440
|
+
var isShowSelect = type && ['WDT_GOODS', 'BS_E3_GOODS', 'GY_GOODS', 'JST_GOODS', 'WLN_GOODS', 'KM_GOODS', 'JY_GOODS', 'JY_REISSUE_GOODS', 'JKY_GOODS', 'JKY_REISSUE_GOODS', 'GY_REISSUE_GOODS', 'KM_REISSUE_GOODS', 'KM_RETURN_GOODS', 'BS_E3_REISSUE_GOODS', 'WDT_REISSUE_GOODS', 'JST_REISSUE_GOODS'].includes(type) || false;
|
|
23964
24441
|
var isReissueType = type && ['GY_REISSUE_GOODS', 'KM_REISSUE_GOODS', 'BS_E3_REISSUE_GOODS', 'WDT_REISSUE_GOODS', 'JST_REISSUE_GOODS', 'JY_REISSUE_GOODS', 'JKY_REISSUE_GOODS'].includes(type) || false;
|
|
23965
24442
|
var refModal = React.useRef();
|
|
23966
24443
|
console.debug('表格数据', value);
|
|
@@ -24050,6 +24527,8 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
24050
24527
|
case 'GY_RETURN_GOODS':
|
|
24051
24528
|
case 'KM_GOODS':
|
|
24052
24529
|
case 'KM_REISSUE_GOODS':
|
|
24530
|
+
case 'KM_RETURN_GOODS':
|
|
24531
|
+
case 'KM_EXCHANGE_GOODS':
|
|
24053
24532
|
case 'JY_GOODS':
|
|
24054
24533
|
case 'JY_REISSUE_GOODS':
|
|
24055
24534
|
case 'JKY_GOODS':
|
|
@@ -27540,6 +28019,27 @@ var componentMap$4 = {
|
|
|
27540
28019
|
returnGoodsSysorder: 'jstReturnGoodsSysorder',
|
|
27541
28020
|
returnGoodsSysorderBack: 'jstReturnGoodsSysorderBack'
|
|
27542
28021
|
}
|
|
28022
|
+
},
|
|
28023
|
+
KM_EXCHANGE_GOODS: {
|
|
28024
|
+
type: 'km',
|
|
28025
|
+
showChooseTradeGoodsBtn: true,
|
|
28026
|
+
valueKey: 'kmExchangeGoods',
|
|
28027
|
+
returnTypeKey: 'kmExchangeType',
|
|
28028
|
+
systemOrder: 'kmSystemOrder',
|
|
28029
|
+
systemOrderNo: 'kmSystemOrderNo',
|
|
28030
|
+
oIdKey: 'billNo',
|
|
28031
|
+
goodDetailsKey: 'subOrders',
|
|
28032
|
+
skuIdKey: 'skuId',
|
|
28033
|
+
outerOiIdKey: '',
|
|
28034
|
+
name: '快麦',
|
|
28035
|
+
updateGoodsHandle: kmkfUtils.updateKmGoodsHandle,
|
|
28036
|
+
eventNameMap: {
|
|
28037
|
+
// pubsub 事件
|
|
28038
|
+
exchangeCopyGood: 'kmExchangeCopyGood',
|
|
28039
|
+
exchangeBackCopyGood: 'kmExchangeBackCopyGood',
|
|
28040
|
+
returnGoodsSysorder: 'kmReturnGoodsSysorder',
|
|
28041
|
+
returnGoodsSysorderBack: 'kmReturnGoodsSysorderBack'
|
|
28042
|
+
}
|
|
27543
28043
|
}
|
|
27544
28044
|
};
|
|
27545
28045
|
var CommonExchangeGoods = function CommonExchangeGoods(props) {
|
|
@@ -27640,6 +28140,10 @@ var CommonExchangeGoods = function CommonExchangeGoods(props) {
|
|
|
27640
28140
|
return new Promise(function (resolve) {
|
|
27641
28141
|
pubsub__default['default'].subscribeOnce(componentMap$4[compType].eventNameMap.returnGoodsSysorderBack, function (_, data) {
|
|
27642
28142
|
resolve(data);
|
|
28143
|
+
console.log('getDataSourceAsync---111data--', data, getGoodDetails({
|
|
28144
|
+
returnGoodsValue: data,
|
|
28145
|
+
mode: isStrict
|
|
28146
|
+
}));
|
|
27643
28147
|
setOriginDataSource(getGoodDetails({
|
|
27644
28148
|
returnGoodsValue: data,
|
|
27645
28149
|
mode: isStrict
|
|
@@ -27648,6 +28152,7 @@ var CommonExchangeGoods = function CommonExchangeGoods(props) {
|
|
|
27648
28152
|
pubsub__default['default'].publish(componentMap$4[compType].eventNameMap.returnGoodsSysorder, compType);
|
|
27649
28153
|
});
|
|
27650
28154
|
};
|
|
28155
|
+
console.log('aaa--', originDataSource);
|
|
27651
28156
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(GoodItem$1, _objectSpread2(_objectSpread2({
|
|
27652
28157
|
key: componentMap$4[compType].type
|
|
27653
28158
|
}, props), {}, {
|
|
@@ -27984,6 +28489,30 @@ var typeMap$2 = {
|
|
|
27984
28489
|
uniqueKey: 'id',
|
|
27985
28490
|
isShowSelectTradeGoods: true
|
|
27986
28491
|
},
|
|
28492
|
+
KM_RETURN_GOODS: {
|
|
28493
|
+
compType: '退货',
|
|
28494
|
+
key: 'kmReturnGoods',
|
|
28495
|
+
typeName: 'kmReturnType',
|
|
28496
|
+
systemOrder: 'kmSystemOrder',
|
|
28497
|
+
systemOrderNo: 'kmSystemOrderNo',
|
|
28498
|
+
getOrderList: kmUtils.getOrderListSingleton,
|
|
28499
|
+
updateGoodsHandle: kmkfUtils.updateKmGoodsHandle,
|
|
28500
|
+
alwaysShowChooseErpGoodsBtn: true,
|
|
28501
|
+
orderTypeKey: 'orderType',
|
|
28502
|
+
oIdKey: 'billNo',
|
|
28503
|
+
outerOiIdKey: '',
|
|
28504
|
+
goodDetailsKey: 'subOrders',
|
|
28505
|
+
uniqueKey: 'id',
|
|
28506
|
+
isShowSelectTradeGoods: true,
|
|
28507
|
+
showErpGoodsBtn: false,
|
|
28508
|
+
eventNameMap: {
|
|
28509
|
+
// pubsub 事件
|
|
28510
|
+
exchangeCopyGood: 'kmExchangeCopyGood',
|
|
28511
|
+
exchangeBackCopyGood: 'kmExchangeBackCopyGood',
|
|
28512
|
+
returnGoodsSysorder: 'kmReturnGoodsSysorder',
|
|
28513
|
+
returnGoodsSysorderBack: 'kmReturnGoodsSysorderBack'
|
|
28514
|
+
}
|
|
28515
|
+
},
|
|
27987
28516
|
JY_REISSUE_GOODS: {
|
|
27988
28517
|
compType: '补发',
|
|
27989
28518
|
key: 'jyReissueGoods',
|
|
@@ -28017,7 +28546,7 @@ var typeMap$2 = {
|
|
|
28017
28546
|
}
|
|
28018
28547
|
};
|
|
28019
28548
|
var PublicReissue = function PublicReissue(props) {
|
|
28020
|
-
var _typeMap$
|
|
28549
|
+
var _typeMap$type18, _typeMap$type36, _typeMap$type42, _typeMap$type43, _typeMap$type44, _typeMap$type45, _value$typeMap$type$s8, _typeMap$type46, _typeMap$type47, _typeMap$type48, _typeMap$type49, _typeMap$type50, _typeMap$type51, _typeMap$type52, _typeMap$type53, _typeMap$type54, _value$typeMap$type$s9, _typeMap$type55, _typeMap$type56, _typeMap$type57, _typeMap$type58;
|
|
28021
28550
|
var value = props.value,
|
|
28022
28551
|
onChange = props.onChange,
|
|
28023
28552
|
_props$reasonList = props.reasonList,
|
|
@@ -28135,24 +28664,25 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28135
28664
|
};
|
|
28136
28665
|
var sysItemIdMap = React.useMemo(function () {
|
|
28137
28666
|
var map = {};
|
|
28138
|
-
if (
|
|
28139
|
-
var _value$
|
|
28140
|
-
|
|
28667
|
+
if (['KM_REISSUE_GOODS', 'KM_RETURN_GOODS'].includes(type)) {
|
|
28668
|
+
var _value$goodsKey, _value$goodsKey$filte;
|
|
28669
|
+
var goodsKey = typeMap$2[type].key;
|
|
28670
|
+
value === null || value === void 0 ? void 0 : (_value$goodsKey = value[goodsKey]) === null || _value$goodsKey === void 0 ? void 0 : (_value$goodsKey$filte = _value$goodsKey.filter(function (item) {
|
|
28141
28671
|
return item === null || item === void 0 ? void 0 : item.sysItemId;
|
|
28142
|
-
})) === null || _value$
|
|
28672
|
+
})) === null || _value$goodsKey$filte === void 0 ? void 0 : _value$goodsKey$filte.forEach(function (item) {
|
|
28143
28673
|
var key = !(item === null || item === void 0 ? void 0 : item.sysSkuId) || (item === null || item === void 0 ? void 0 : item.sysSkuId) == '-1' || (item === null || item === void 0 ? void 0 : item.sysSkuId) == (item === null || item === void 0 ? void 0 : item.sysItemId) ? item === null || item === void 0 ? void 0 : item.sysItemId : "".concat(item === null || item === void 0 ? void 0 : item.sysItemId, "-").concat(item === null || item === void 0 ? void 0 : item.sysSkuId);
|
|
28144
28674
|
map[key] = item;
|
|
28145
28675
|
});
|
|
28146
28676
|
}
|
|
28147
28677
|
return map;
|
|
28148
|
-
}, [value === null || value === void 0 ? void 0 : value.
|
|
28678
|
+
}, [value === null || value === void 0 ? void 0 : value[(_typeMap$type18 = typeMap$2[type]) === null || _typeMap$type18 === void 0 ? void 0 : _typeMap$type18.key]]);
|
|
28149
28679
|
// 用于跟踪已经处理过的 sysItemId,避免重复处理
|
|
28150
28680
|
var processedSysItemIdsRef = React.useRef(new Set());
|
|
28151
28681
|
React.useEffect(function () {
|
|
28152
28682
|
var fetchSupplier = /*#__PURE__*/function () {
|
|
28153
28683
|
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(sysItemIds) {
|
|
28154
|
-
var _currentValue$
|
|
28155
|
-
var needFetchIds, supplierMap, hasChange, currentValue,
|
|
28684
|
+
var _currentValue$goodsKe;
|
|
28685
|
+
var needFetchIds, supplierMap, hasChange, currentValue, goodsKey, kmGoods;
|
|
28156
28686
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
28157
28687
|
while (1) switch (_context2.prev = _context2.next) {
|
|
28158
28688
|
case 0:
|
|
@@ -28180,7 +28710,8 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28180
28710
|
// 检查是否有实际变化,避免不必要的更新
|
|
28181
28711
|
hasChange = false;
|
|
28182
28712
|
currentValue = valueRef.current;
|
|
28183
|
-
|
|
28713
|
+
goodsKey = typeMap$2[type].key;
|
|
28714
|
+
kmGoods = currentValue === null || currentValue === void 0 ? void 0 : (_currentValue$goodsKe = currentValue[goodsKey]) === null || _currentValue$goodsKe === void 0 ? void 0 : _currentValue$goodsKe.map(function (item) {
|
|
28184
28715
|
var key = !(item === null || item === void 0 ? void 0 : item.sysSkuId) || (item === null || item === void 0 ? void 0 : item.sysSkuId) == '-1' || (item === null || item === void 0 ? void 0 : item.sysSkuId) == (item === null || item === void 0 ? void 0 : item.sysItemId) ? item === null || item === void 0 ? void 0 : item.sysItemId : "".concat(item === null || item === void 0 ? void 0 : item.sysItemId, "-").concat(item === null || item === void 0 ? void 0 : item.sysSkuId);
|
|
28185
28716
|
var supplierInfo = supplierMap.get(key);
|
|
28186
28717
|
var newSupplierCode = supplierInfo === null || supplierInfo === void 0 ? void 0 : supplierInfo.supplierCode;
|
|
@@ -28197,12 +28728,10 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28197
28728
|
}
|
|
28198
28729
|
return item;
|
|
28199
28730
|
}); // 只在有实际变化时才更新
|
|
28200
|
-
if (hasChange &&
|
|
28201
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, currentValue), {}, {
|
|
28202
|
-
kmReissueGoods: kmReissueGoods
|
|
28203
|
-
}));
|
|
28731
|
+
if (hasChange && kmGoods) {
|
|
28732
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, currentValue), {}, _defineProperty({}, goodsKey, kmGoods)));
|
|
28204
28733
|
}
|
|
28205
|
-
case
|
|
28734
|
+
case 13:
|
|
28206
28735
|
case "end":
|
|
28207
28736
|
return _context2.stop();
|
|
28208
28737
|
}
|
|
@@ -28218,20 +28747,20 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28218
28747
|
}
|
|
28219
28748
|
}, [sysItemIdMap]);
|
|
28220
28749
|
var getGoodDetails = function getGoodDetails(_ref5) {
|
|
28221
|
-
var _typeMap$
|
|
28750
|
+
var _typeMap$type19, _typeMap$type20, _value$typeMap$type$s6, _typeMap$type21, _typeMap$type22, _typeMap$type23, _typeMap$type24;
|
|
28222
28751
|
var mode = _ref5.mode,
|
|
28223
28752
|
sysOrderNo = _ref5.sysOrderNo,
|
|
28224
28753
|
_ref5$isAllOrders = _ref5.isAllOrders,
|
|
28225
28754
|
isAllOrders = _ref5$isAllOrders === void 0 ? false : _ref5$isAllOrders;
|
|
28226
|
-
var systemOrder = value === null || value === void 0 ? void 0 : value[(_typeMap$
|
|
28227
|
-
var systemOrderNo = sysOrderNo !== null && sysOrderNo !== void 0 ? sysOrderNo : value === null || value === void 0 ? void 0 : value[(_typeMap$
|
|
28755
|
+
var systemOrder = value === null || value === void 0 ? void 0 : value[(_typeMap$type19 = typeMap$2[type]) === null || _typeMap$type19 === void 0 ? void 0 : _typeMap$type19.systemOrder];
|
|
28756
|
+
var systemOrderNo = sysOrderNo !== null && sysOrderNo !== void 0 ? sysOrderNo : value === null || value === void 0 ? void 0 : value[(_typeMap$type20 = typeMap$2[type]) === null || _typeMap$type20 === void 0 ? void 0 : _typeMap$type20.systemOrderNo];
|
|
28228
28757
|
var order = systemOrderNo && ((systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orders) || []).find(function (order) {
|
|
28229
28758
|
return order[typeMap$2[type].oIdKey] === systemOrderNo;
|
|
28230
28759
|
});
|
|
28231
28760
|
var orderRest = undefined;
|
|
28232
28761
|
if (['JST_REISSUE_GOODS', 'JST_RETURN_GOODS'].includes(type)) {
|
|
28233
28762
|
orderRest = true;
|
|
28234
|
-
} else if (
|
|
28763
|
+
} else if (['KM_REISSUE_GOODS', 'KM_RETURN_GOODS'].includes(type)) {
|
|
28235
28764
|
orderRest = {
|
|
28236
28765
|
orderBackGoodsLevel: props.orderBackGoodsLevel,
|
|
28237
28766
|
canEdit: true
|
|
@@ -28245,12 +28774,12 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28245
28774
|
canEdit: true
|
|
28246
28775
|
};
|
|
28247
28776
|
}
|
|
28248
|
-
var orders = isAllOrders ? (value === null || value === void 0 ? void 0 : (_value$typeMap$type$s6 = value[(_typeMap$
|
|
28777
|
+
var orders = isAllOrders ? (value === null || value === void 0 ? void 0 : (_value$typeMap$type$s6 = value[(_typeMap$type21 = typeMap$2[type]) === null || _typeMap$type21 === void 0 ? void 0 : _typeMap$type21.systemOrder]) === null || _value$typeMap$type$s6 === void 0 ? void 0 : _value$typeMap$type$s6.orders) || [] : order ? [order] : [];
|
|
28249
28778
|
var hasGoodDetails = orders === null || orders === void 0 ? void 0 : orders.some(function (order) {
|
|
28250
28779
|
var _order$typeMap$type$g;
|
|
28251
28780
|
return order === null || order === void 0 ? void 0 : (_order$typeMap$type$g = order[typeMap$2[type].goodDetailsKey]) === null || _order$typeMap$type$g === void 0 ? void 0 : _order$typeMap$type$g.length;
|
|
28252
28781
|
});
|
|
28253
|
-
var goodDetails = hasGoodDetails ? (!isAllOrders || ((_typeMap$
|
|
28782
|
+
var goodDetails = hasGoodDetails ? (!isAllOrders || ((_typeMap$type22 = typeMap$2[type]) === null || _typeMap$type22 === void 0 ? void 0 : _typeMap$type22.isSelectTradeGoodsMerge)) && typeMap$2[type].mergeIdenticalGoods ? typeMap$2[type].mergeIdenticalGoods((_typeMap$type23 = typeMap$2[type]) === null || _typeMap$type23 === void 0 ? void 0 : _typeMap$type23.updateGoodsHandle(orders, orderRest)) : (_typeMap$type24 = typeMap$2[type]) === null || _typeMap$type24 === void 0 ? void 0 : _typeMap$type24.updateGoodsHandle(orders, orderRest) : [];
|
|
28254
28783
|
var orderNo = systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orderNo;
|
|
28255
28784
|
var list = mode && !isAllOrders ? goodDetails.filter(function (goodItem) {
|
|
28256
28785
|
return !orderNo || goodItem[typeMap$2[type].outerOiIdKey] === orderNo;
|
|
@@ -28258,30 +28787,30 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28258
28787
|
return list;
|
|
28259
28788
|
};
|
|
28260
28789
|
var changeGoodHandle = function changeGoodHandle(val) {
|
|
28261
|
-
var _typeMap$
|
|
28790
|
+
var _typeMap$type25;
|
|
28262
28791
|
var newValue = _objectSpread2({}, value);
|
|
28263
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28792
|
+
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type25 = typeMap$2[type]) === null || _typeMap$type25 === void 0 ? void 0 : _typeMap$type25.key)] = val || [];
|
|
28264
28793
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
28265
28794
|
};
|
|
28266
28795
|
var changeSystemOrderHandle = function changeSystemOrderHandle(val) {
|
|
28267
|
-
var _typeMap$
|
|
28796
|
+
var _typeMap$type26, _typeMap$type27, _value$typeMap$type$t2, _typeMap$type32, _value$typeMap$type$t3, _typeMap$type34;
|
|
28268
28797
|
var newValue = _objectSpread2({}, value);
|
|
28269
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28270
|
-
if (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28271
|
-
var _value$typeMap$type$s7, _typeMap$
|
|
28272
|
-
var orders = (value === null || value === void 0 ? void 0 : (_value$typeMap$type$s7 = value[(_typeMap$
|
|
28798
|
+
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type26 = typeMap$2[type]) === null || _typeMap$type26 === void 0 ? void 0 : _typeMap$type26.systemOrderNo)] = val;
|
|
28799
|
+
if (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type27 = typeMap$2[type]) === null || _typeMap$type27 === void 0 ? void 0 : _typeMap$type27.systemOrderBillType) {
|
|
28800
|
+
var _value$typeMap$type$s7, _typeMap$type28, _typeMap$type30, _typeMap$type31;
|
|
28801
|
+
var orders = (value === null || value === void 0 ? void 0 : (_value$typeMap$type$s7 = value[(_typeMap$type28 = typeMap$2[type]) === null || _typeMap$type28 === void 0 ? void 0 : _typeMap$type28.systemOrder]) === null || _value$typeMap$type$s7 === void 0 ? void 0 : _value$typeMap$type$s7.orders) || [];
|
|
28273
28802
|
var targetOrder = val && orders.find(function (oItem) {
|
|
28274
|
-
var _typeMap$
|
|
28275
|
-
return oItem[(_typeMap$
|
|
28803
|
+
var _typeMap$type29;
|
|
28804
|
+
return oItem[(_typeMap$type29 = typeMap$2[type]) === null || _typeMap$type29 === void 0 ? void 0 : _typeMap$type29.oIdKey] === val;
|
|
28276
28805
|
});
|
|
28277
|
-
newValue[(_typeMap$
|
|
28278
|
-
}
|
|
28279
|
-
if (['2'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t2 = value[(_typeMap$
|
|
28280
|
-
var _typeMap$
|
|
28281
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28282
|
-
} else if (['1'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t3 = value[(_typeMap$
|
|
28283
|
-
var _typeMap$
|
|
28284
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28806
|
+
newValue[(_typeMap$type30 = typeMap$2[type]) === null || _typeMap$type30 === void 0 ? void 0 : _typeMap$type30.systemOrderBillType] = targetOrder === null || targetOrder === void 0 ? void 0 : targetOrder[(_typeMap$type31 = typeMap$2[type]) === null || _typeMap$type31 === void 0 ? void 0 : _typeMap$type31.orderTypeKey];
|
|
28807
|
+
}
|
|
28808
|
+
if (['2'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t2 = value[(_typeMap$type32 = typeMap$2[type]) === null || _typeMap$type32 === void 0 ? void 0 : _typeMap$type32.typeName]) === null || _value$typeMap$type$t2 === void 0 ? void 0 : _value$typeMap$type$t2[0])) {
|
|
28809
|
+
var _typeMap$type33;
|
|
28810
|
+
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type33 = typeMap$2[type]) === null || _typeMap$type33 === void 0 ? void 0 : _typeMap$type33.key)] = [];
|
|
28811
|
+
} else if (['1'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t3 = value[(_typeMap$type34 = typeMap$2[type]) === null || _typeMap$type34 === void 0 ? void 0 : _typeMap$type34.typeName]) === null || _value$typeMap$type$t3 === void 0 ? void 0 : _value$typeMap$type$t3[0])) {
|
|
28812
|
+
var _typeMap$type35;
|
|
28813
|
+
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type35 = typeMap$2[type]) === null || _typeMap$type35 === void 0 ? void 0 : _typeMap$type35.key)] = getGoodDetails({
|
|
28285
28814
|
mode: isStrict,
|
|
28286
28815
|
sysOrderNo: val
|
|
28287
28816
|
});
|
|
@@ -28289,27 +28818,27 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28289
28818
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue, 'systemOrder');
|
|
28290
28819
|
};
|
|
28291
28820
|
//显示选择商品按钮
|
|
28292
|
-
var showChangeBtn = !!(value === null || value === void 0 ? void 0 : value[(_typeMap$
|
|
28821
|
+
var showChangeBtn = !!(value === null || value === void 0 ? void 0 : value[(_typeMap$type36 = typeMap$2[type]) === null || _typeMap$type36 === void 0 ? void 0 : _typeMap$type36.systemOrderNo]);
|
|
28293
28822
|
var selectedGoodsChange = React.useCallback(function (skuList) {
|
|
28294
|
-
var _typeMap$
|
|
28823
|
+
var _typeMap$type37, _typeMap$type38, _typeMap$type39, _uniqBy, _typeMap$type40;
|
|
28295
28824
|
var newValue = _objectSpread2({}, value);
|
|
28296
28825
|
// 原订单商品
|
|
28297
28826
|
var originTradeGoodList = getGoodDetails({
|
|
28298
28827
|
mode: isStrict,
|
|
28299
|
-
isAllOrders: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28828
|
+
isAllOrders: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type37 = typeMap$2[type]) === null || _typeMap$type37 === void 0 ? void 0 : _typeMap$type37.isShowSelectTradeGoods
|
|
28300
28829
|
}) || [];
|
|
28301
28830
|
// 当前选中的所有商品【包含了原订单+商品库】
|
|
28302
|
-
var currentSelectGoodList = (value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28303
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28304
|
-
var _typeMap$
|
|
28305
|
-
return skuList.includes(item[(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28831
|
+
var currentSelectGoodList = (value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type38 = typeMap$2[type]) === null || _typeMap$type38 === void 0 ? void 0 : _typeMap$type38.key)]) || [];
|
|
28832
|
+
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type39 = typeMap$2[type]) === null || _typeMap$type39 === void 0 ? void 0 : _typeMap$type39.key)] = (_uniqBy = lodash.uniqBy(originTradeGoodList.concat(currentSelectGoodList), (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type40 = typeMap$2[type]) === null || _typeMap$type40 === void 0 ? void 0 : _typeMap$type40.uniqueKey) || 'uuid')) === null || _uniqBy === void 0 ? void 0 : _uniqBy.filter(function (item) {
|
|
28833
|
+
var _typeMap$type41;
|
|
28834
|
+
return skuList.includes(item[(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type41 = typeMap$2[type]) === null || _typeMap$type41 === void 0 ? void 0 : _typeMap$type41.uniqueKey) || 'uuid']);
|
|
28306
28835
|
});
|
|
28307
28836
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
28308
|
-
}, [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28837
|
+
}, [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type42 = typeMap$2[type]) === null || _typeMap$type42 === void 0 ? void 0 : _typeMap$type42.key)], isStrict]);
|
|
28309
28838
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.Row, {
|
|
28310
28839
|
gutter: 8,
|
|
28311
28840
|
wrap: true,
|
|
28312
|
-
id: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28841
|
+
id: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type43 = typeMap$2[type]) === null || _typeMap$type43 === void 0 ? void 0 : _typeMap$type43.key) || "".concat(Date.now())
|
|
28313
28842
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
28314
28843
|
className: "gutter-row",
|
|
28315
28844
|
xs: {
|
|
@@ -28325,12 +28854,12 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28325
28854
|
},
|
|
28326
28855
|
disabled: disabled,
|
|
28327
28856
|
allowClear: false,
|
|
28328
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28857
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type44 = typeMap$2[type]) === null || _typeMap$type44 === void 0 ? void 0 : _typeMap$type44.systemOrderNo)],
|
|
28329
28858
|
onChange: function onChange(val) {
|
|
28330
28859
|
return changeSystemOrderHandle(val);
|
|
28331
28860
|
},
|
|
28332
|
-
placeholder: "\u9009\u62E9".concat((typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28333
|
-
}, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s8 = value[(_typeMap$
|
|
28861
|
+
placeholder: "\u9009\u62E9".concat((typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type45 = typeMap$2[type]) === null || _typeMap$type45 === void 0 ? void 0 : _typeMap$type45.compType) || '', "\u7CFB\u7EDF\u5355")
|
|
28862
|
+
}, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s8 = value[(_typeMap$type46 = typeMap$2[type]) === null || _typeMap$type46 === void 0 ? void 0 : _typeMap$type46.systemOrder]) === null || _value$typeMap$type$s8 === void 0 ? void 0 : _value$typeMap$type$s8.showOrderInfo) || []).map(function (item) {
|
|
28334
28863
|
return /*#__PURE__*/React__default['default'].createElement(antd.Select.Option, {
|
|
28335
28864
|
key: item[typeMap$2[type].oIdKey],
|
|
28336
28865
|
value: item[typeMap$2[type].oIdKey],
|
|
@@ -28352,11 +28881,11 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28352
28881
|
disabled: isSettingConfig ? !isSettingConfig : disabled,
|
|
28353
28882
|
allowClear: false,
|
|
28354
28883
|
options: reasonList,
|
|
28355
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28884
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type47 = typeMap$2[type]) === null || _typeMap$type47 === void 0 ? void 0 : _typeMap$type47.typeName)],
|
|
28356
28885
|
onChange: function onChange(val) {
|
|
28357
28886
|
return changeTypeHandle(val);
|
|
28358
28887
|
}
|
|
28359
|
-
})), (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28888
|
+
})), (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type48 = typeMap$2[type]) === null || _typeMap$type48 === void 0 ? void 0 : _typeMap$type48.systemOrderBillType) && !isSettingConfig && /*#__PURE__*/React__default['default'].createElement(antd.Col, {
|
|
28360
28889
|
className: "gutter-row",
|
|
28361
28890
|
xs: {
|
|
28362
28891
|
span: 11
|
|
@@ -28365,7 +28894,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28365
28894
|
span: 6
|
|
28366
28895
|
}
|
|
28367
28896
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
28368
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28897
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type49 = typeMap$2[type]) === null || _typeMap$type49 === void 0 ? void 0 : _typeMap$type49.systemOrderBillType)],
|
|
28369
28898
|
disabled: disabled,
|
|
28370
28899
|
readOnly: true
|
|
28371
28900
|
}))), /*#__PURE__*/React__default['default'].createElement(GoodItem$1, _objectSpread2(_objectSpread2({
|
|
@@ -28376,25 +28905,25 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
28376
28905
|
canUpdateNumber: showChangeBtn,
|
|
28377
28906
|
hasSelectedSystemOrder: showChangeBtn,
|
|
28378
28907
|
// showChangeBtn={showChangeBtn || typeMap?.[type]?.isShowSelectTradeGoods}
|
|
28379
|
-
alwaysShowChooseErpGoodsBtn: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28380
|
-
|
|
28908
|
+
alwaysShowChooseErpGoodsBtn: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type50 = typeMap$2[type]) === null || _typeMap$type50 === void 0 ? void 0 : _typeMap$type50.alwaysShowChooseErpGoodsBtn,
|
|
28909
|
+
showErpGoodsBtn: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type51 = typeMap$2[type]) === null || _typeMap$type51 === void 0 ? void 0 : _typeMap$type51.showErpGoodsBtn,
|
|
28381
28910
|
shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
|
|
28382
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28911
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type52 = typeMap$2[type]) === null || _typeMap$type52 === void 0 ? void 0 : _typeMap$type52.key)],
|
|
28383
28912
|
onChange: function onChange(val) {
|
|
28384
28913
|
return changeGoodHandle(val);
|
|
28385
28914
|
},
|
|
28386
28915
|
onModeChange: handleModeChange,
|
|
28387
|
-
showModeBtn: !!(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28916
|
+
showModeBtn: !!(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type53 = typeMap$2[type]) === null || _typeMap$type53 === void 0 ? void 0 : _typeMap$type53.showModeBtn),
|
|
28388
28917
|
isStrict: isStrict,
|
|
28389
|
-
isShowSelectTradeGoods: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28390
|
-
systemOrders: value === null || value === void 0 ? void 0 : (_value$typeMap$type$s9 = value[(_typeMap$
|
|
28391
|
-
selectedSystemOrders: showChangeBtn ? [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28918
|
+
isShowSelectTradeGoods: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type54 = typeMap$2[type]) === null || _typeMap$type54 === void 0 ? void 0 : _typeMap$type54.isShowSelectTradeGoods,
|
|
28919
|
+
systemOrders: value === null || value === void 0 ? void 0 : (_value$typeMap$type$s9 = value[(_typeMap$type55 = typeMap$2[type]) === null || _typeMap$type55 === void 0 ? void 0 : _typeMap$type55.systemOrder]) === null || _value$typeMap$type$s9 === void 0 ? void 0 : _value$typeMap$type$s9.orders,
|
|
28920
|
+
selectedSystemOrders: showChangeBtn ? [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type56 = typeMap$2[type]) === null || _typeMap$type56 === void 0 ? void 0 : _typeMap$type56.systemOrderNo)]] : [],
|
|
28392
28921
|
tradeGoods: {
|
|
28393
28922
|
originDataSource: getGoodDetails({
|
|
28394
28923
|
mode: isStrict,
|
|
28395
|
-
isAllOrders: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28924
|
+
isAllOrders: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type57 = typeMap$2[type]) === null || _typeMap$type57 === void 0 ? void 0 : _typeMap$type57.isShowSelectTradeGoods
|
|
28396
28925
|
}),
|
|
28397
|
-
uniqueKey: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
28926
|
+
uniqueKey: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type58 = typeMap$2[type]) === null || _typeMap$type58 === void 0 ? void 0 : _typeMap$type58.uniqueKey) || 'uuid',
|
|
28398
28927
|
selectedGoodsChange: selectedGoodsChange
|
|
28399
28928
|
}
|
|
28400
28929
|
})));
|