@kmkf-fe-packages/basic-components 2.10.3 → 2.10.4
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 +221 -156
- package/package.json +3 -3
package/dist/index.esm.js
CHANGED
|
@@ -7863,7 +7863,6 @@ var ParseLogistics = function ParseLogistics(props) {
|
|
|
7863
7863
|
onChange === null || onChange === void 0 ? void 0 : onChange(data);
|
|
7864
7864
|
}).catch(function (e) {
|
|
7865
7865
|
handleAIIdentify(fullAddress);
|
|
7866
|
-
console.log(e);
|
|
7867
7866
|
}).finally(function () {
|
|
7868
7867
|
setLoading(false);
|
|
7869
7868
|
});
|
|
@@ -7887,7 +7886,6 @@ var ParseLogistics = function ParseLogistics(props) {
|
|
|
7887
7886
|
var data = res.data;
|
|
7888
7887
|
onChange === null || onChange === void 0 ? void 0 : onChange(data);
|
|
7889
7888
|
}).catch(function (e) {
|
|
7890
|
-
console.log(e);
|
|
7891
7889
|
message.error('识别失败,请输入正确的信息');
|
|
7892
7890
|
}).finally(function () {
|
|
7893
7891
|
setAiLoading(false);
|
|
@@ -9395,7 +9393,8 @@ var processJstReturnGoods = function processJstReturnGoods(templateColumns) {
|
|
|
9395
9393
|
},
|
|
9396
9394
|
jstReturnType: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_jstReturnType")), !isNull(config === null || config === void 0 ? void 0 : config.initReason) ? [config.initReason] : ['1']),
|
|
9397
9395
|
jstReturnGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_jstReturnGoods")), []),
|
|
9398
|
-
jstSystemOrderBillType:
|
|
9396
|
+
// jstSystemOrderBillType:
|
|
9397
|
+
// getValue(`${nex.uniqueKey}_jstSystemOrderBillType`) || '',
|
|
9399
9398
|
shopCode: getValue("".concat(nex.uniqueKey, "_shopCode")),
|
|
9400
9399
|
jstSystemOrderNo: getValue("".concat(nex.uniqueKey, "_jstSystemOrderNo"))
|
|
9401
9400
|
});
|
|
@@ -12115,7 +12114,7 @@ var Goods = function Goods(props) {
|
|
|
12115
12114
|
return querySkus({
|
|
12116
12115
|
shopId: shopId,
|
|
12117
12116
|
numIids: numIid
|
|
12118
|
-
}).catch(
|
|
12117
|
+
}).catch(function () {});
|
|
12119
12118
|
case 5:
|
|
12120
12119
|
res = _context3.sent;
|
|
12121
12120
|
data = (res === null || res === void 0 ? void 0 : res.success) && (res === null || res === void 0 ? void 0 : res.data);
|
|
@@ -12499,7 +12498,7 @@ var GoodItem = function GoodItem(props) {
|
|
|
12499
12498
|
return querySkus({
|
|
12500
12499
|
shopId: shopId,
|
|
12501
12500
|
numIids: numIid
|
|
12502
|
-
}).catch(
|
|
12501
|
+
}).catch(function () {});
|
|
12503
12502
|
case 5:
|
|
12504
12503
|
res = _context3.sent;
|
|
12505
12504
|
data = (res === null || res === void 0 ? void 0 : res.success) && (res === null || res === void 0 ? void 0 : res.data);
|
|
@@ -13441,7 +13440,6 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
13441
13440
|
});
|
|
13442
13441
|
}
|
|
13443
13442
|
}
|
|
13444
|
-
console.log('newValue', newValue);
|
|
13445
13443
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue, type);
|
|
13446
13444
|
};
|
|
13447
13445
|
//智能识别回调
|
|
@@ -14024,21 +14022,14 @@ var LogisticsMoreTrajectory = function LogisticsMoreTrajectory(props) {
|
|
|
14024
14022
|
}); // 1、初始值没有 传入值有请求快照
|
|
14025
14023
|
// 2、初始值有 传入值有 其中有不一样的请求快照
|
|
14026
14024
|
// 3、初始值有 传入值有 都一样的返回初始值
|
|
14027
|
-
console.log('list', initList, valueList, changeList);
|
|
14028
|
-
// console.log('old', initValue, value, changeValue);
|
|
14029
|
-
// console.log('一样', JSON.stringify(initList) !== JSON.stringify(valueList));
|
|
14030
|
-
// console.log(
|
|
14031
|
-
// '一样2',
|
|
14032
|
-
// JSON.stringify(changeList) !== JSON.stringify(valueList),
|
|
14033
|
-
// );
|
|
14034
14025
|
if (!(!initList.length && !valueList.length)) {
|
|
14035
|
-
_context.next =
|
|
14026
|
+
_context.next = 7;
|
|
14036
14027
|
break;
|
|
14037
14028
|
}
|
|
14038
14029
|
return _context.abrupt("return");
|
|
14039
|
-
case
|
|
14030
|
+
case 7:
|
|
14040
14031
|
if (!(JSON.stringify(initList) === JSON.stringify(valueList))) {
|
|
14041
|
-
_context.next =
|
|
14032
|
+
_context.next = 13;
|
|
14042
14033
|
break;
|
|
14043
14034
|
}
|
|
14044
14035
|
initSnapshotList = initValue.reduce(function (prv, next) {
|
|
@@ -14057,13 +14048,13 @@ var LogisticsMoreTrajectory = function LogisticsMoreTrajectory(props) {
|
|
|
14057
14048
|
setNewValue(initValue);
|
|
14058
14049
|
onChange(initValue);
|
|
14059
14050
|
}
|
|
14060
|
-
_context.next =
|
|
14051
|
+
_context.next = 29;
|
|
14061
14052
|
break;
|
|
14062
|
-
case
|
|
14053
|
+
case 13:
|
|
14063
14054
|
if (!(
|
|
14064
14055
|
//开启了物流快照才会获取快照信息
|
|
14065
14056
|
hasSnapshot && JSON.stringify(initList) !== JSON.stringify(valueList) && JSON.stringify(changeList) !== JSON.stringify(valueList))) {
|
|
14066
|
-
_context.next =
|
|
14057
|
+
_context.next = 28;
|
|
14067
14058
|
break;
|
|
14068
14059
|
}
|
|
14069
14060
|
hasSave.current = false;
|
|
@@ -14072,7 +14063,7 @@ var LogisticsMoreTrajectory = function LogisticsMoreTrajectory(props) {
|
|
|
14072
14063
|
});
|
|
14073
14064
|
listValue = cloneDeep(value);
|
|
14074
14065
|
if (!hasValue) {
|
|
14075
|
-
_context.next =
|
|
14066
|
+
_context.next = 23;
|
|
14076
14067
|
break;
|
|
14077
14068
|
}
|
|
14078
14069
|
requestList = valueList.map(function (item) {
|
|
@@ -14091,9 +14082,9 @@ var LogisticsMoreTrajectory = function LogisticsMoreTrajectory(props) {
|
|
|
14091
14082
|
});
|
|
14092
14083
|
}
|
|
14093
14084
|
});
|
|
14094
|
-
_context.next =
|
|
14085
|
+
_context.next = 21;
|
|
14095
14086
|
return Promise.allSettled(requestList);
|
|
14096
|
-
case
|
|
14087
|
+
case 21:
|
|
14097
14088
|
requestValues = _context.sent;
|
|
14098
14089
|
listValue = cloneDeep(value).map(function (item, index) {
|
|
14099
14090
|
var _requestValues$index, _requestValues$index$, _requestValues$index$2;
|
|
@@ -14101,15 +14092,15 @@ var LogisticsMoreTrajectory = function LogisticsMoreTrajectory(props) {
|
|
|
14101
14092
|
trajectorySnapshot: (_requestValues$index = requestValues[index]) === null || _requestValues$index === void 0 ? void 0 : (_requestValues$index$ = _requestValues$index.value) === null || _requestValues$index$ === void 0 ? void 0 : (_requestValues$index$2 = _requestValues$index$.data) === null || _requestValues$index$2 === void 0 ? void 0 : _requestValues$index$2.logisticsStatusDesc
|
|
14102
14093
|
});
|
|
14103
14094
|
});
|
|
14104
|
-
case
|
|
14095
|
+
case 23:
|
|
14105
14096
|
setChangeValue(listValue);
|
|
14106
14097
|
setNewValue(listValue);
|
|
14107
14098
|
onChange(listValue);
|
|
14108
|
-
_context.next =
|
|
14099
|
+
_context.next = 29;
|
|
14109
14100
|
break;
|
|
14110
|
-
case
|
|
14101
|
+
case 28:
|
|
14111
14102
|
setNewValue(value);
|
|
14112
|
-
case
|
|
14103
|
+
case 29:
|
|
14113
14104
|
case "end":
|
|
14114
14105
|
return _context.stop();
|
|
14115
14106
|
}
|
|
@@ -15069,12 +15060,8 @@ var jstColumns = [{
|
|
|
15069
15060
|
title: '商品图片',
|
|
15070
15061
|
width: 100,
|
|
15071
15062
|
render: function render(picUrl) {
|
|
15072
|
-
return /*#__PURE__*/React.createElement(
|
|
15073
|
-
|
|
15074
|
-
width: '30px',
|
|
15075
|
-
height: '30px',
|
|
15076
|
-
objectFit: 'contain'
|
|
15077
|
-
},
|
|
15063
|
+
return /*#__PURE__*/React.createElement(ApaasImage, {
|
|
15064
|
+
width: 30,
|
|
15078
15065
|
src: picUrl
|
|
15079
15066
|
});
|
|
15080
15067
|
}
|
|
@@ -16283,7 +16270,7 @@ var GoodList = function GoodList(props, ref) {
|
|
|
16283
16270
|
} else {
|
|
16284
16271
|
reject$1(res);
|
|
16285
16272
|
}
|
|
16286
|
-
}).catch(
|
|
16273
|
+
}).catch(function () {});
|
|
16287
16274
|
};
|
|
16288
16275
|
getMore();
|
|
16289
16276
|
};
|
|
@@ -18334,7 +18321,6 @@ var SearchHeader = function SearchHeader(_ref) {
|
|
|
18334
18321
|
timeOptions = _ref.timeOptions,
|
|
18335
18322
|
ShopList = _ref.ShopList,
|
|
18336
18323
|
onSubmit = _ref.onSubmit;
|
|
18337
|
-
console.log('allFields', allFields);
|
|
18338
18324
|
// const fixedFieldsOptions = useMemo(() => {
|
|
18339
18325
|
// return allFields.filter(item => fixedFields?.includes(item.id));
|
|
18340
18326
|
// }, [fixedFields, allFields]);
|
|
@@ -18590,9 +18576,7 @@ var WorkorderList = function WorkorderList(props, ref) {
|
|
|
18590
18576
|
loading: false
|
|
18591
18577
|
}));
|
|
18592
18578
|
setWorkOrderList(newDataSource);
|
|
18593
|
-
}).catch(function (error) {
|
|
18594
|
-
console.log('**** 获取表格数据错误', error);
|
|
18595
|
-
}));
|
|
18579
|
+
}).catch(function (error) {}));
|
|
18596
18580
|
case 19:
|
|
18597
18581
|
case "end":
|
|
18598
18582
|
return _context.stop();
|
|
@@ -22132,7 +22116,8 @@ var getColumns$5 = function getColumns() {
|
|
|
22132
22116
|
min: 0,
|
|
22133
22117
|
precision: 2,
|
|
22134
22118
|
onChange: function onChange(num) {
|
|
22135
|
-
|
|
22119
|
+
updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'salePrice');
|
|
22120
|
+
if ((num || num === 0) && (record.qty || record.qty === 0)) updateHandle(num * (record.qty || 0), index, 'saleAmount');
|
|
22136
22121
|
}
|
|
22137
22122
|
}) : /*#__PURE__*/React.createElement("span", null, val || val === 0 ? Number(val).toFixed(4).replace(/\.?0+$/, '') : '');
|
|
22138
22123
|
}
|
|
@@ -22164,7 +22149,8 @@ var getColumns$5 = function getColumns() {
|
|
|
22164
22149
|
min: 1,
|
|
22165
22150
|
precision: 0,
|
|
22166
22151
|
onChange: function onChange(num) {
|
|
22167
|
-
|
|
22152
|
+
updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'qty');
|
|
22153
|
+
if ((num || num === 0) && (record.salePrice || record.salePrice === 0)) updateHandle(num * (record.salePrice || 0), index, 'saleAmount');
|
|
22168
22154
|
}
|
|
22169
22155
|
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
22170
22156
|
}
|
|
@@ -22265,7 +22251,8 @@ var getColumns$5 = function getColumns() {
|
|
|
22265
22251
|
min: 0,
|
|
22266
22252
|
precision: 2,
|
|
22267
22253
|
onChange: function onChange(num) {
|
|
22268
|
-
|
|
22254
|
+
updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'salePrice');
|
|
22255
|
+
if ((num || num === 0) && (record.qty || record.qty === 0)) updateHandle(num * (record.qty || 0), index, 'saleAmount');
|
|
22269
22256
|
}
|
|
22270
22257
|
}) : /*#__PURE__*/React.createElement("span", null, val || val === 0 ? Number(val).toFixed(4).replace(/\.?0+$/, '') : '');
|
|
22271
22258
|
}
|
|
@@ -22295,16 +22282,39 @@ var getColumns$5 = function getColumns() {
|
|
|
22295
22282
|
min: 1,
|
|
22296
22283
|
precision: 0,
|
|
22297
22284
|
onChange: function onChange(num) {
|
|
22298
|
-
|
|
22285
|
+
updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'qty');
|
|
22286
|
+
if ((num || num === 0) && (record.salePrice || record.salePrice === 0)) updateHandle(num * (record.salePrice || 0), index, 'saleAmount');
|
|
22299
22287
|
}
|
|
22300
22288
|
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
22301
22289
|
}
|
|
22302
22290
|
}, {
|
|
22303
22291
|
dataIndex: 'saleAmount',
|
|
22304
22292
|
title: '总金额',
|
|
22305
|
-
|
|
22306
|
-
var
|
|
22307
|
-
|
|
22293
|
+
validator: function validator(_rule, value) {
|
|
22294
|
+
var goodsName = '';
|
|
22295
|
+
if (((value === null || value === void 0 ? void 0 : value.jstReturnGoods) || []).some(function (goods) {
|
|
22296
|
+
var v = toNum$3(goods === null || goods === void 0 ? void 0 : goods.saleAmount);
|
|
22297
|
+
var res = typeof v === 'number' ? v < 0 : true;
|
|
22298
|
+
if (res) {
|
|
22299
|
+
goodsName = (goods === null || goods === void 0 ? void 0 : goods.name) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.name, "]") : '';
|
|
22300
|
+
}
|
|
22301
|
+
return res;
|
|
22302
|
+
})) {
|
|
22303
|
+
return Promise.reject("".concat(goodsName, "\u603B\u91D1\u989D\u4E3A\u5927\u4E8E\u7B49\u4E8E0\u7684\u6570"));
|
|
22304
|
+
}
|
|
22305
|
+
},
|
|
22306
|
+
render: function render(val, record, index) {
|
|
22307
|
+
return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
22308
|
+
style: {
|
|
22309
|
+
width: 130
|
|
22310
|
+
},
|
|
22311
|
+
value: val,
|
|
22312
|
+
min: 0,
|
|
22313
|
+
precision: 2,
|
|
22314
|
+
onChange: function onChange(num) {
|
|
22315
|
+
updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'saleAmount');
|
|
22316
|
+
}
|
|
22317
|
+
}) : /*#__PURE__*/React.createElement("span", null, val || val === 0 ? Number(val).toFixed(2) : '');
|
|
22308
22318
|
}
|
|
22309
22319
|
}, {
|
|
22310
22320
|
dataIndex: 'batchId',
|
|
@@ -22385,6 +22395,19 @@ var getColumns$5 = function getColumns() {
|
|
|
22385
22395
|
dataIndex: 'salePrice',
|
|
22386
22396
|
title: '单价',
|
|
22387
22397
|
width: 120,
|
|
22398
|
+
validator: function validator(_rule, value) {
|
|
22399
|
+
var goodsName = '';
|
|
22400
|
+
if (((value === null || value === void 0 ? void 0 : value.jstExchangeGoods) || []).some(function (goods) {
|
|
22401
|
+
var v = toNum$3(goods === null || goods === void 0 ? void 0 : goods.salePrice);
|
|
22402
|
+
var res = typeof v === 'number' ? v < 0 : true;
|
|
22403
|
+
if (res) {
|
|
22404
|
+
goodsName = (goods === null || goods === void 0 ? void 0 : goods.name) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.name, "]") : '';
|
|
22405
|
+
}
|
|
22406
|
+
return res;
|
|
22407
|
+
})) {
|
|
22408
|
+
return Promise.reject("".concat(goodsName, "\u5355\u4EF7\u4E3A\u5927\u4E8E\u7B49\u4E8E0\u7684\u6570"));
|
|
22409
|
+
}
|
|
22410
|
+
},
|
|
22388
22411
|
render: function render(val, record, index) {
|
|
22389
22412
|
return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
22390
22413
|
style: {
|
|
@@ -22394,7 +22417,8 @@ var getColumns$5 = function getColumns() {
|
|
|
22394
22417
|
min: 0,
|
|
22395
22418
|
precision: 2,
|
|
22396
22419
|
onChange: function onChange(num) {
|
|
22397
|
-
|
|
22420
|
+
updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'salePrice');
|
|
22421
|
+
if ((num || num === 0) && (record.qty || record.qty === 0)) updateHandle(num * (record.qty || 0), index, 'saleAmount');
|
|
22398
22422
|
}
|
|
22399
22423
|
}) : /*#__PURE__*/React.createElement("span", null, val || val === 0 ? Number(val).toFixed(4).replace(/\.?0+$/, '') : '');
|
|
22400
22424
|
}
|
|
@@ -22402,6 +22426,19 @@ var getColumns$5 = function getColumns() {
|
|
|
22402
22426
|
dataIndex: 'qty',
|
|
22403
22427
|
title: '数量',
|
|
22404
22428
|
width: 100,
|
|
22429
|
+
validator: function validator(_rule, value) {
|
|
22430
|
+
var goodsName = '';
|
|
22431
|
+
if (((value === null || value === void 0 ? void 0 : value.jstExchangeGoods) || []).some(function (goods) {
|
|
22432
|
+
var qty = toNum$3(goods === null || goods === void 0 ? void 0 : goods.qty);
|
|
22433
|
+
var res = typeof qty === 'number' ? qty < 1 : true;
|
|
22434
|
+
if (res) {
|
|
22435
|
+
goodsName = (goods === null || goods === void 0 ? void 0 : goods.name) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.name, "]") : '';
|
|
22436
|
+
}
|
|
22437
|
+
return res;
|
|
22438
|
+
})) {
|
|
22439
|
+
return Promise.reject("".concat(goodsName, "\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
|
|
22440
|
+
}
|
|
22441
|
+
},
|
|
22405
22442
|
render: function render(val, record, index) {
|
|
22406
22443
|
return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
22407
22444
|
style: {
|
|
@@ -22411,16 +22448,39 @@ var getColumns$5 = function getColumns() {
|
|
|
22411
22448
|
min: 1,
|
|
22412
22449
|
precision: 0,
|
|
22413
22450
|
onChange: function onChange(num) {
|
|
22414
|
-
|
|
22451
|
+
updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'qty');
|
|
22452
|
+
if ((num || num === 0) && (record.salePrice || record.salePrice === 0)) updateHandle(num * (record.salePrice || 0), index, 'saleAmount');
|
|
22415
22453
|
}
|
|
22416
22454
|
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
22417
22455
|
}
|
|
22418
22456
|
}, {
|
|
22419
22457
|
dataIndex: 'saleAmount',
|
|
22420
22458
|
title: '总金额',
|
|
22421
|
-
|
|
22422
|
-
var
|
|
22423
|
-
|
|
22459
|
+
validator: function validator(_rule, value) {
|
|
22460
|
+
var goodsName = '';
|
|
22461
|
+
if (((value === null || value === void 0 ? void 0 : value.jstExchangeGoods) || []).some(function (goods) {
|
|
22462
|
+
var v = toNum$3(goods === null || goods === void 0 ? void 0 : goods.saleAmount);
|
|
22463
|
+
var res = typeof v === 'number' ? v < 0 : true;
|
|
22464
|
+
if (res) {
|
|
22465
|
+
goodsName = (goods === null || goods === void 0 ? void 0 : goods.name) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.name, "]") : '';
|
|
22466
|
+
}
|
|
22467
|
+
return res;
|
|
22468
|
+
})) {
|
|
22469
|
+
return Promise.reject("".concat(goodsName, "\u603B\u91D1\u989D\u4E3A\u5927\u4E8E\u7B49\u4E8E0\u7684\u6570"));
|
|
22470
|
+
}
|
|
22471
|
+
},
|
|
22472
|
+
render: function render(val, record, index) {
|
|
22473
|
+
return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
22474
|
+
style: {
|
|
22475
|
+
width: 130
|
|
22476
|
+
},
|
|
22477
|
+
value: val,
|
|
22478
|
+
min: 0,
|
|
22479
|
+
precision: 2,
|
|
22480
|
+
onChange: function onChange(num) {
|
|
22481
|
+
updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'saleAmount');
|
|
22482
|
+
}
|
|
22483
|
+
}) : /*#__PURE__*/React.createElement("span", null, val || val === 0 ? Number(val).toFixed(2) : '');
|
|
22424
22484
|
}
|
|
22425
22485
|
}, {
|
|
22426
22486
|
dataIndex: 'isGift',
|
|
@@ -22835,7 +22895,6 @@ var getColumns$6 = function getColumns() {
|
|
|
22835
22895
|
title: "\u5B9E\u9645\u8865\u53D1\u6570\u91CF",
|
|
22836
22896
|
width: 100,
|
|
22837
22897
|
validator: function validator(_rule, value, extraParams) {
|
|
22838
|
-
console.log('实际补发数量-extraParams', extraParams);
|
|
22839
22898
|
if (!(extraParams === null || extraParams === void 0 ? void 0 : extraParams.quantityVerify)) return undefined;
|
|
22840
22899
|
var title = '';
|
|
22841
22900
|
if (((value === null || value === void 0 ? void 0 : value.kmReissueGoods) || []).some(function (goods) {
|
|
@@ -25031,6 +25090,8 @@ var systemOrderNoMap = {
|
|
|
25031
25090
|
KM_RETURN_GOODS: 'sid',
|
|
25032
25091
|
KM_EXCHANGE_GOODS: 'sid',
|
|
25033
25092
|
JST_REISSUE_GOODS: 'oId',
|
|
25093
|
+
JST_RETURN_GOODS: 'oId',
|
|
25094
|
+
JST_EXCHANGE_GOODS: 'oId',
|
|
25034
25095
|
GY_REISSUE_GOODS: 'code',
|
|
25035
25096
|
BS_E3_REISSUE_GOODS: 'orderSn',
|
|
25036
25097
|
WDT_REISSUE_GOODS: 'tradeNo'
|
|
@@ -25108,7 +25169,7 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
|
25108
25169
|
while (1) switch (_context2.prev = _context2.next) {
|
|
25109
25170
|
case 0:
|
|
25110
25171
|
if (!validSystemOrderFn) {
|
|
25111
|
-
_context2.next =
|
|
25172
|
+
_context2.next = 6;
|
|
25112
25173
|
break;
|
|
25113
25174
|
}
|
|
25114
25175
|
_context2.next = 3;
|
|
@@ -25116,39 +25177,38 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
|
25116
25177
|
case 3:
|
|
25117
25178
|
flag = _context2.sent;
|
|
25118
25179
|
if (!(flag === false)) {
|
|
25119
|
-
_context2.next =
|
|
25180
|
+
_context2.next = 6;
|
|
25120
25181
|
break;
|
|
25121
25182
|
}
|
|
25122
|
-
console.log('validSystemOrderFn校验不通过');
|
|
25123
25183
|
return _context2.abrupt("return");
|
|
25124
|
-
case
|
|
25184
|
+
case 6:
|
|
25125
25185
|
if (!validSystemOrder) {
|
|
25126
|
-
_context2.next =
|
|
25186
|
+
_context2.next = 9;
|
|
25127
25187
|
break;
|
|
25128
25188
|
}
|
|
25129
25189
|
message.warning('请选择补发系统单');
|
|
25130
25190
|
return _context2.abrupt("return");
|
|
25131
|
-
case
|
|
25191
|
+
case 9:
|
|
25132
25192
|
if (!(getDataSourceAsync && (!(dataSource === null || dataSource === void 0 ? void 0 : dataSource.length) || isReloadSelectTable))) {
|
|
25133
|
-
_context2.next =
|
|
25193
|
+
_context2.next = 12;
|
|
25134
25194
|
break;
|
|
25135
25195
|
}
|
|
25136
|
-
_context2.next =
|
|
25196
|
+
_context2.next = 12;
|
|
25137
25197
|
return getDataSourceAsync();
|
|
25138
|
-
case
|
|
25198
|
+
case 12:
|
|
25139
25199
|
if (!['KM_GOODS', 'KM_REISSUE_GOODS', 'KM_RETURN_GOODS'].includes(type)) {
|
|
25140
|
-
_context2.next =
|
|
25200
|
+
_context2.next = 15;
|
|
25141
25201
|
break;
|
|
25142
25202
|
}
|
|
25143
|
-
_context2.next =
|
|
25203
|
+
_context2.next = 15;
|
|
25144
25204
|
return getKmSupplier(dataSource);
|
|
25145
|
-
case
|
|
25205
|
+
case 15:
|
|
25146
25206
|
setTradeGoodsVisible(true);
|
|
25147
25207
|
// 补发直接传入的是systemNo
|
|
25148
25208
|
if (isShowSelect && isReissueType) {
|
|
25149
25209
|
setSelectSystemNo(selectedSystemOrders || []);
|
|
25150
25210
|
}
|
|
25151
|
-
case
|
|
25211
|
+
case 17:
|
|
25152
25212
|
case "end":
|
|
25153
25213
|
return _context2.stop();
|
|
25154
25214
|
}
|
|
@@ -25343,13 +25403,13 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
25343
25403
|
var canDelete = ['JST_AFTERSALE_GOODS'].includes(type);
|
|
25344
25404
|
var uniqueKey = (tradeGoods === null || tradeGoods === void 0 ? void 0 : tradeGoods.uniqueKey) || 'uuid';
|
|
25345
25405
|
// 监听聚水潭退货商品
|
|
25346
|
-
|
|
25347
|
-
|
|
25406
|
+
// const jstReturnGoods = Form?.useWatch('3979edfd6d', form);
|
|
25407
|
+
// const isShowSelectTradeGoods =
|
|
25408
|
+
// type !== 'JST_EXCHANGE_GOODS' || jstReturnGoods?.jstSystemOrderNo;
|
|
25348
25409
|
// 判断是否为是否展示系统单筛选项
|
|
25349
|
-
var isShowSelect = type && ['WDT_GOODS', 'BS_E3_GOODS', 'GY_GOODS', 'JST_GOODS', 'WLN_GOODS', 'KM_GOODS', 'JY_GOODS', 'JY_REISSUE_GOODS', 'JKY_GOODS', 'JKY_REISSUE_GOODS', 'WLN_REISSUE_GOODS', 'GY_REISSUE_GOODS', 'KM_REISSUE_GOODS', 'KM_RETURN_GOODS', 'BS_E3_REISSUE_GOODS', 'WDT_REISSUE_GOODS', 'JST_REISSUE_GOODS'].includes(type) || false;
|
|
25410
|
+
var isShowSelect = type && ['WDT_GOODS', 'BS_E3_GOODS', 'GY_GOODS', 'JST_GOODS', 'WLN_GOODS', 'KM_GOODS', 'JY_GOODS', 'JY_REISSUE_GOODS', 'JKY_GOODS', 'JKY_REISSUE_GOODS', 'WLN_REISSUE_GOODS', 'GY_REISSUE_GOODS', 'KM_REISSUE_GOODS', 'KM_RETURN_GOODS', 'JST_RETURN_GOODS', 'JST_EXCHANGE_GOODS', 'BS_E3_REISSUE_GOODS', 'WDT_REISSUE_GOODS', 'JST_REISSUE_GOODS'].includes(type) || false;
|
|
25350
25411
|
var isReissueType = type && ['GY_REISSUE_GOODS', 'KM_REISSUE_GOODS', 'BS_E3_REISSUE_GOODS', 'WDT_REISSUE_GOODS', 'JST_REISSUE_GOODS', 'JY_REISSUE_GOODS', 'JKY_REISSUE_GOODS', 'WLN_REISSUE_GOODS'].includes(type) || false;
|
|
25351
25412
|
var refModal = useRef();
|
|
25352
|
-
console.debug('表格数据', value);
|
|
25353
25413
|
var handleDelete = function handleDelete(record, index) {
|
|
25354
25414
|
onDelete === null || onDelete === void 0 ? void 0 : onDelete(value[index]);
|
|
25355
25415
|
var newList = _toConsumableArray(value).filter(function (item, i) {
|
|
@@ -25640,7 +25700,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
25640
25700
|
}, showModeBtn && /*#__PURE__*/React.createElement(Checkbox, {
|
|
25641
25701
|
checked: isStrict,
|
|
25642
25702
|
onChange: handleCheckboxChange
|
|
25643
|
-
}, "\u5408\u5E76\u5355\uFF0C\u52FE\u9009\u540E\u53EA\u5C55\u793A\u5F53\u524D\u5E73\u53F0\u8BA2\u5355\u5546\u54C1"), !isEmpty(tradeGoods) &&
|
|
25703
|
+
}, "\u5408\u5E76\u5355\uFF0C\u52FE\u9009\u540E\u53EA\u5C55\u793A\u5F53\u524D\u5E73\u53F0\u8BA2\u5355\u5546\u54C1"), !isEmpty(tradeGoods) && /*#__PURE__*/React.createElement(SelectTradeGoods, {
|
|
25644
25704
|
isReloadSelectTable: isReloadSelectTable,
|
|
25645
25705
|
validSystemOrderFn: validSystemOrderFn,
|
|
25646
25706
|
validSystemOrder: validSystemOrder,
|
|
@@ -26130,7 +26190,6 @@ var BsReissue = function BsReissue(props) {
|
|
|
26130
26190
|
var _typeMap$type2;
|
|
26131
26191
|
pubsub.subscribe("".concat(typeMap === null || typeMap === void 0 ? void 0 : (_typeMap$type2 = typeMap[type]) === null || _typeMap$type2 === void 0 ? void 0 : _typeMap$type2.reissueSelectList), function (_, data) {
|
|
26132
26192
|
var _typeMap$type3;
|
|
26133
|
-
console.log('reissueSelectList', data);
|
|
26134
26193
|
if (disabled) return;
|
|
26135
26194
|
var newValue = _objectSpread2(_objectSpread2({}, data.goodValue), {}, {
|
|
26136
26195
|
shopCode: data === null || data === void 0 ? void 0 : data.shopCode
|
|
@@ -27936,7 +27995,6 @@ var OrderSubForm = function OrderSubForm(props) {
|
|
|
27936
27995
|
manual = props.manual,
|
|
27937
27996
|
correlationList = props.subConfig.correlationList,
|
|
27938
27997
|
effects = props.effects;
|
|
27939
|
-
console.log('effects', effects);
|
|
27940
27998
|
var valueRef = useRef(value);
|
|
27941
27999
|
useEffect(function () {
|
|
27942
28000
|
valueRef.current = value;
|
|
@@ -28133,7 +28191,7 @@ var OrderSubForm = function OrderSubForm(props) {
|
|
|
28133
28191
|
onChange(_objectSpread2(_objectSpread2({}, value), {}, {
|
|
28134
28192
|
allOrders: allOrders
|
|
28135
28193
|
}));
|
|
28136
|
-
}).catch(
|
|
28194
|
+
}).catch(function () {}) : Promise.resolve();
|
|
28137
28195
|
};
|
|
28138
28196
|
var getAllTradeGoodsDetails = function getAllTradeGoodsDetails() {
|
|
28139
28197
|
var goodDetails = (value === null || value === void 0 ? void 0 : value.allOrders) || [];
|
|
@@ -29191,10 +29249,11 @@ var componentMap$4 = {
|
|
|
29191
29249
|
systemOrderNo: 'jstSystemOrderNo',
|
|
29192
29250
|
oIdKey: 'oId',
|
|
29193
29251
|
goodDetailsKey: 'items',
|
|
29194
|
-
skuIdKey: 'skuId',
|
|
29195
29252
|
outerOiIdKey: '',
|
|
29196
29253
|
name: '聚水潭',
|
|
29197
29254
|
updateGoodsHandle: updateJstGoodsHandle,
|
|
29255
|
+
isShowSelectTradeGoods: true,
|
|
29256
|
+
mergeIdenticalGoods: jstMergeIdenticalGoods,
|
|
29198
29257
|
eventNameMap: {
|
|
29199
29258
|
// pubsub 事件
|
|
29200
29259
|
exchangeCopyGood: 'jstExchangeCopyGood',
|
|
@@ -29212,7 +29271,7 @@ var componentMap$4 = {
|
|
|
29212
29271
|
systemOrderNo: 'kmSystemOrderNo',
|
|
29213
29272
|
oIdKey: 'billNo',
|
|
29214
29273
|
goodDetailsKey: 'subOrders',
|
|
29215
|
-
|
|
29274
|
+
uniqueKey: 'skuId',
|
|
29216
29275
|
outerOiIdKey: '',
|
|
29217
29276
|
name: '快麦',
|
|
29218
29277
|
updateGoodsHandle: updateKmGoodsHandle,
|
|
@@ -29260,7 +29319,7 @@ var CommonExchangeGoods = function CommonExchangeGoods(props) {
|
|
|
29260
29319
|
disabled = props.disabled,
|
|
29261
29320
|
compType = props.type,
|
|
29262
29321
|
form = props.form;
|
|
29263
|
-
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.
|
|
29322
|
+
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.uniqueKey) || 'uuid';
|
|
29264
29323
|
var valueRef = useRef({});
|
|
29265
29324
|
// PS: 目前选择订单商品,只有聚水潭换出商品,而且聚水潭不用考虑合并单,所以这个值一直是 false
|
|
29266
29325
|
var _useState = useState(false),
|
|
@@ -29271,6 +29330,10 @@ var CommonExchangeGoods = function CommonExchangeGoods(props) {
|
|
|
29271
29330
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
29272
29331
|
originDataSource = _useState4[0],
|
|
29273
29332
|
setOriginDataSource = _useState4[1];
|
|
29333
|
+
var _useState5 = useState([]),
|
|
29334
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
29335
|
+
orders = _useState6[0],
|
|
29336
|
+
setOrders = _useState6[1];
|
|
29274
29337
|
useEffect(function () {
|
|
29275
29338
|
var subscription = componentMap$4[compType].eventNameMap.exchangeBackCopyGood && pubsub.subscribe(componentMap$4[compType].eventNameMap.exchangeBackCopyGood, function (_, data) {
|
|
29276
29339
|
if (disabled) return;
|
|
@@ -29330,11 +29393,13 @@ var CommonExchangeGoods = function CommonExchangeGoods(props) {
|
|
|
29330
29393
|
newValue[componentMap$4 === null || componentMap$4 === void 0 ? void 0 : (_componentMap$compTyp3 = componentMap$4[compType]) === null || _componentMap$compTyp3 === void 0 ? void 0 : _componentMap$compTyp3.valueKey] = (_uniqBy = uniqBy(originTradeGoodList.concat(currentSelectGoodList), uniqueKey)) === null || _uniqBy === void 0 ? void 0 : _uniqBy.filter(function (item) {
|
|
29331
29394
|
return skuList.includes(item[uniqueKey]);
|
|
29332
29395
|
});
|
|
29333
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
29396
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(JSON.parse(JSON.stringify(newValue)));
|
|
29334
29397
|
}, [value === null || value === void 0 ? void 0 : value[componentMap$4 === null || componentMap$4 === void 0 ? void 0 : (_componentMap$compTyp4 = componentMap$4[compType]) === null || _componentMap$compTyp4 === void 0 ? void 0 : _componentMap$compTyp4.valueKey], isStrict, originDataSource]);
|
|
29335
29398
|
var getGoodDetails = function getGoodDetails(_ref) {
|
|
29336
|
-
var _componentMap$compTyp5, _componentMap$compTyp6,
|
|
29337
|
-
var
|
|
29399
|
+
var _componentMap$compTyp5, _componentMap$compTyp6, _componentMap$compTyp7, _componentMap$compTyp8;
|
|
29400
|
+
var _ref$isAllOrders = _ref.isAllOrders,
|
|
29401
|
+
isAllOrders = _ref$isAllOrders === void 0 ? false : _ref$isAllOrders,
|
|
29402
|
+
returnGoodsValue = _ref.returnGoodsValue,
|
|
29338
29403
|
mode = _ref.mode,
|
|
29339
29404
|
sysOrderNo = _ref.sysOrderNo;
|
|
29340
29405
|
var systemOrder = returnGoodsValue === null || returnGoodsValue === void 0 ? void 0 : returnGoodsValue[(_componentMap$compTyp5 = componentMap$4[compType]) === null || _componentMap$compTyp5 === void 0 ? void 0 : _componentMap$compTyp5.systemOrder];
|
|
@@ -29342,9 +29407,17 @@ var CommonExchangeGoods = function CommonExchangeGoods(props) {
|
|
|
29342
29407
|
var order = systemOrderNo && ((systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orders) || []).find(function (order) {
|
|
29343
29408
|
return order[componentMap$4[compType].oIdKey] === systemOrderNo;
|
|
29344
29409
|
});
|
|
29345
|
-
var
|
|
29410
|
+
var orders = isAllOrders ? (systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orders) || [] : order ? [order] : [];
|
|
29411
|
+
setOrders(orders);
|
|
29412
|
+
var hasGoodDetails = orders === null || orders === void 0 ? void 0 : orders.some(function (order) {
|
|
29413
|
+
var _order$componentMap$c;
|
|
29414
|
+
return order === null || order === void 0 ? void 0 : (_order$componentMap$c = order[componentMap$4[compType].goodDetailsKey]) === null || _order$componentMap$c === void 0 ? void 0 : _order$componentMap$c.length;
|
|
29415
|
+
});
|
|
29416
|
+
var goodDetails = hasGoodDetails ? componentMap$4[compType].mergeIdenticalGoods ? componentMap$4[compType].mergeIdenticalGoods((_componentMap$compTyp7 = componentMap$4[compType]) === null || _componentMap$compTyp7 === void 0 ? void 0 : _componentMap$compTyp7.updateGoodsHandle(orders, {
|
|
29346
29417
|
canEdit: true
|
|
29347
|
-
}) : [])
|
|
29418
|
+
})) : (_componentMap$compTyp8 = componentMap$4[compType]) === null || _componentMap$compTyp8 === void 0 ? void 0 : _componentMap$compTyp8.updateGoodsHandle(orders, {
|
|
29419
|
+
canEdit: true
|
|
29420
|
+
}) : [];
|
|
29348
29421
|
var orderNo = systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orderNo;
|
|
29349
29422
|
return mode ? goodDetails.filter(function (goodItem) {
|
|
29350
29423
|
return !orderNo || goodItem[componentMap$4[compType].outerOiIdKey] === orderNo;
|
|
@@ -29353,25 +29426,23 @@ var CommonExchangeGoods = function CommonExchangeGoods(props) {
|
|
|
29353
29426
|
var getDataSourceAsync = function getDataSourceAsync() {
|
|
29354
29427
|
return new Promise(function (resolve) {
|
|
29355
29428
|
pubsub.subscribeOnce(componentMap$4[compType].eventNameMap.returnGoodsSysorderBack, function (_, data) {
|
|
29429
|
+
var _componentMap$compTyp9;
|
|
29356
29430
|
resolve(data);
|
|
29357
|
-
console.log('getDataSourceAsync---111data--', data, getGoodDetails({
|
|
29358
|
-
returnGoodsValue: data,
|
|
29359
|
-
mode: isStrict
|
|
29360
|
-
}));
|
|
29361
29431
|
setOriginDataSource(getGoodDetails({
|
|
29362
29432
|
returnGoodsValue: data,
|
|
29433
|
+
isAllOrders: componentMap$4 === null || componentMap$4 === void 0 ? void 0 : (_componentMap$compTyp9 = componentMap$4[compType]) === null || _componentMap$compTyp9 === void 0 ? void 0 : _componentMap$compTyp9.isShowSelectTradeGoods,
|
|
29363
29434
|
mode: isStrict
|
|
29364
29435
|
}));
|
|
29365
29436
|
});
|
|
29366
29437
|
pubsub.publish(componentMap$4[compType].eventNameMap.returnGoodsSysorder, compType);
|
|
29367
29438
|
});
|
|
29368
29439
|
};
|
|
29369
|
-
console.log('aaa--', originDataSource);
|
|
29370
29440
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(GoodItem$1, _objectSpread2(_objectSpread2({
|
|
29371
29441
|
key: componentMap$4[compType].type
|
|
29372
29442
|
}, props), {}, {
|
|
29373
29443
|
validSystemOrderFn: function validSystemOrderFn() {
|
|
29374
|
-
|
|
29444
|
+
var _componentMap$compTyp10, _componentMap$compTyp11;
|
|
29445
|
+
return (_componentMap$compTyp10 = (_componentMap$compTyp11 = componentMap$4[compType]).validSystemOrderFn) === null || _componentMap$compTyp10 === void 0 ? void 0 : _componentMap$compTyp10.call(_componentMap$compTyp11, form);
|
|
29375
29446
|
},
|
|
29376
29447
|
isReloadSelectTable: componentMap$4[compType].isReloadSelectTable,
|
|
29377
29448
|
disabled: disabled,
|
|
@@ -29380,6 +29451,7 @@ var CommonExchangeGoods = function CommonExchangeGoods(props) {
|
|
|
29380
29451
|
shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
|
|
29381
29452
|
value: value === null || value === void 0 ? void 0 : value[componentMap$4[compType].valueKey],
|
|
29382
29453
|
otherOperations: copyGoods(),
|
|
29454
|
+
systemOrders: orders,
|
|
29383
29455
|
tradeGoods: componentMap$4[compType].showChooseTradeGoodsBtn ? {
|
|
29384
29456
|
uniqueKey: uniqueKey,
|
|
29385
29457
|
originDataSource: originDataSource,
|
|
@@ -29674,7 +29746,7 @@ var typeMap$2 = {
|
|
|
29674
29746
|
typeName: 'jstReturnType',
|
|
29675
29747
|
systemOrder: 'jstSystemOrder',
|
|
29676
29748
|
systemOrderNo: 'jstSystemOrderNo',
|
|
29677
|
-
systemOrderBillType: 'jstSystemOrderBillType',
|
|
29749
|
+
// systemOrderBillType: 'jstSystemOrderBillType',
|
|
29678
29750
|
getOrderList: jstUtils.getJstOrderListSingleton,
|
|
29679
29751
|
updateGoodsHandle: updateJstGoodsHandle,
|
|
29680
29752
|
alwaysShowChooseErpGoodsBtn: true,
|
|
@@ -29684,6 +29756,8 @@ var typeMap$2 = {
|
|
|
29684
29756
|
goodDetailsKey: 'items',
|
|
29685
29757
|
mergeIdenticalGoods: jstMergeIdenticalGoods,
|
|
29686
29758
|
uniqueKey: 'uuid',
|
|
29759
|
+
hideSelectSysOrderId: true,
|
|
29760
|
+
isShowSelectTradeGoods: true,
|
|
29687
29761
|
eventNameMap: {
|
|
29688
29762
|
// pubsub 事件
|
|
29689
29763
|
exchangeCopyGood: 'jstExchangeCopyGood',
|
|
@@ -29787,7 +29861,7 @@ var typeMap$2 = {
|
|
|
29787
29861
|
}
|
|
29788
29862
|
};
|
|
29789
29863
|
var PublicReissue = function PublicReissue(props) {
|
|
29790
|
-
var _typeMap$type, _typeMap$type2, _typeMap$
|
|
29864
|
+
var _typeMap$type, _typeMap$type2, _typeMap$type21, _typeMap$type39, _typeMap$type45, _typeMap$type46, _typeMap$type47, _typeMap$type48, _typeMap$type49, _value$typeMap$type$s8, _typeMap$type50, _typeMap$type51, _typeMap$type52, _typeMap$type53, _typeMap$type54, _typeMap$type55, _typeMap$type56, _typeMap$type57, _value$typeMap$type$s9, _typeMap$type58, _typeMap$type59, _typeMap$type60, _typeMap$type61;
|
|
29791
29865
|
var value = props.value,
|
|
29792
29866
|
onChange = props.onChange,
|
|
29793
29867
|
_props$reasonList = props.reasonList,
|
|
@@ -29887,23 +29961,25 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
29887
29961
|
var newValue = _objectSpread2({}, value);
|
|
29888
29962
|
newValue[(_typeMap$type15 = typeMap$2[type]) === null || _typeMap$type15 === void 0 ? void 0 : _typeMap$type15.typeName] = val;
|
|
29889
29963
|
if (typeName === '1') {
|
|
29890
|
-
var _typeMap$type16;
|
|
29964
|
+
var _typeMap$type16, _typeMap$type17;
|
|
29891
29965
|
newValue[(_typeMap$type16 = typeMap$2[type]) === null || _typeMap$type16 === void 0 ? void 0 : _typeMap$type16.key] = getGoodDetails({
|
|
29892
|
-
mode: isStrict
|
|
29966
|
+
mode: isStrict,
|
|
29967
|
+
// 如果没有选择系统单,拿平台单下所有商品
|
|
29968
|
+
isAllOrders: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type17 = typeMap$2[type]) === null || _typeMap$type17 === void 0 ? void 0 : _typeMap$type17.hideSelectSysOrderId
|
|
29893
29969
|
});
|
|
29894
29970
|
} else if (typeName === '2') {
|
|
29895
|
-
var _typeMap$
|
|
29971
|
+
var _typeMap$type18;
|
|
29896
29972
|
// 切换到非原单,清空列表
|
|
29897
|
-
newValue[(_typeMap$
|
|
29973
|
+
newValue[(_typeMap$type18 = typeMap$2[type]) === null || _typeMap$type18 === void 0 ? void 0 : _typeMap$type18.key] = [];
|
|
29898
29974
|
}
|
|
29899
29975
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
29900
29976
|
};
|
|
29901
29977
|
var handleModeChange = function handleModeChange(mode) {
|
|
29902
|
-
var _value$typeMap$type$t, _typeMap$
|
|
29903
|
-
var isOriginalOrder = (value === null || value === void 0 ? void 0 : (_value$typeMap$type$t = value[(_typeMap$
|
|
29978
|
+
var _value$typeMap$type$t, _typeMap$type19, _typeMap$type20;
|
|
29979
|
+
var isOriginalOrder = (value === null || value === void 0 ? void 0 : (_value$typeMap$type$t = value[(_typeMap$type19 = typeMap$2[type]) === null || _typeMap$type19 === void 0 ? void 0 : _typeMap$type19.typeName]) === null || _value$typeMap$type$t === void 0 ? void 0 : _value$typeMap$type$t[0]) === '1';
|
|
29904
29980
|
setIsStrict(mode);
|
|
29905
29981
|
if (!isOriginalOrder) return;
|
|
29906
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, (_typeMap$
|
|
29982
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, (_typeMap$type20 = typeMap$2[type]) === null || _typeMap$type20 === void 0 ? void 0 : _typeMap$type20.key, getGoodDetails({
|
|
29907
29983
|
mode: mode
|
|
29908
29984
|
}))));
|
|
29909
29985
|
};
|
|
@@ -29920,7 +29996,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
29920
29996
|
});
|
|
29921
29997
|
}
|
|
29922
29998
|
return map;
|
|
29923
|
-
}, [value === null || value === void 0 ? void 0 : value[(_typeMap$
|
|
29999
|
+
}, [value === null || value === void 0 ? void 0 : value[(_typeMap$type21 = typeMap$2[type]) === null || _typeMap$type21 === void 0 ? void 0 : _typeMap$type21.key]]);
|
|
29924
30000
|
// 用于跟踪已经处理过的 sysItemId,避免重复处理
|
|
29925
30001
|
var processedSysItemIdsRef = useRef(new Set());
|
|
29926
30002
|
useEffect(function () {
|
|
@@ -29992,13 +30068,13 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
29992
30068
|
}
|
|
29993
30069
|
}, [sysItemIdMap]);
|
|
29994
30070
|
var getGoodDetails = function getGoodDetails(_ref5) {
|
|
29995
|
-
var _typeMap$
|
|
30071
|
+
var _typeMap$type22, _typeMap$type23, _value$typeMap$type$s6, _typeMap$type24, _typeMap$type25, _typeMap$type26, _typeMap$type27;
|
|
29996
30072
|
var mode = _ref5.mode,
|
|
29997
30073
|
sysOrderNo = _ref5.sysOrderNo,
|
|
29998
30074
|
_ref5$isAllOrders = _ref5.isAllOrders,
|
|
29999
30075
|
isAllOrders = _ref5$isAllOrders === void 0 ? false : _ref5$isAllOrders;
|
|
30000
|
-
var systemOrder = value === null || value === void 0 ? void 0 : value[(_typeMap$
|
|
30001
|
-
var systemOrderNo = sysOrderNo !== null && sysOrderNo !== void 0 ? sysOrderNo : value === null || value === void 0 ? void 0 : value[(_typeMap$
|
|
30076
|
+
var systemOrder = value === null || value === void 0 ? void 0 : value[(_typeMap$type22 = typeMap$2[type]) === null || _typeMap$type22 === void 0 ? void 0 : _typeMap$type22.systemOrder];
|
|
30077
|
+
var systemOrderNo = sysOrderNo !== null && sysOrderNo !== void 0 ? sysOrderNo : value === null || value === void 0 ? void 0 : value[(_typeMap$type23 = typeMap$2[type]) === null || _typeMap$type23 === void 0 ? void 0 : _typeMap$type23.systemOrderNo];
|
|
30002
30078
|
var order = systemOrderNo && ((systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orders) || []).find(function (order) {
|
|
30003
30079
|
return order[typeMap$2[type].oIdKey] === systemOrderNo;
|
|
30004
30080
|
});
|
|
@@ -30018,6 +30094,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
30018
30094
|
};
|
|
30019
30095
|
} else if (['JKY_REISSUE_GOODS'].includes(type)) {
|
|
30020
30096
|
orderRest = {
|
|
30097
|
+
orderBackGoodsLevel: props.orderBackGoodsLevel,
|
|
30021
30098
|
canEdit: true
|
|
30022
30099
|
};
|
|
30023
30100
|
} else if (['WLN_REISSUE_GOODS'].includes(type)) {
|
|
@@ -30025,12 +30102,12 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
30025
30102
|
canEdit: true
|
|
30026
30103
|
};
|
|
30027
30104
|
}
|
|
30028
|
-
var orders = isAllOrders ? (value === null || value === void 0 ? void 0 : (_value$typeMap$type$s6 = value[(_typeMap$
|
|
30105
|
+
var orders = isAllOrders ? (value === null || value === void 0 ? void 0 : (_value$typeMap$type$s6 = value[(_typeMap$type24 = typeMap$2[type]) === null || _typeMap$type24 === void 0 ? void 0 : _typeMap$type24.systemOrder]) === null || _value$typeMap$type$s6 === void 0 ? void 0 : _value$typeMap$type$s6.orders) || [] : order ? [order] : [];
|
|
30029
30106
|
var hasGoodDetails = orders === null || orders === void 0 ? void 0 : orders.some(function (order) {
|
|
30030
30107
|
var _order$typeMap$type$g;
|
|
30031
30108
|
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;
|
|
30032
30109
|
});
|
|
30033
|
-
var goodDetails = hasGoodDetails ? (!isAllOrders || ((_typeMap$
|
|
30110
|
+
var goodDetails = hasGoodDetails ? (!isAllOrders || ((_typeMap$type25 = typeMap$2[type]) === null || _typeMap$type25 === void 0 ? void 0 : _typeMap$type25.isSelectTradeGoodsMerge)) && typeMap$2[type].mergeIdenticalGoods ? typeMap$2[type].mergeIdenticalGoods((_typeMap$type26 = typeMap$2[type]) === null || _typeMap$type26 === void 0 ? void 0 : _typeMap$type26.updateGoodsHandle(orders, orderRest, type)) : (_typeMap$type27 = typeMap$2[type]) === null || _typeMap$type27 === void 0 ? void 0 : _typeMap$type27.updateGoodsHandle(orders, orderRest, type) : [];
|
|
30034
30111
|
var orderNo = systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orderNo;
|
|
30035
30112
|
var list = mode && !isAllOrders ? goodDetails.filter(function (goodItem) {
|
|
30036
30113
|
return !orderNo || goodItem[typeMap$2[type].outerOiIdKey] === orderNo;
|
|
@@ -30038,30 +30115,30 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
30038
30115
|
return list;
|
|
30039
30116
|
};
|
|
30040
30117
|
var changeGoodHandle = function changeGoodHandle(val) {
|
|
30041
|
-
var _typeMap$
|
|
30118
|
+
var _typeMap$type28;
|
|
30042
30119
|
var newValue = _objectSpread2({}, value);
|
|
30043
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
30120
|
+
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type28 = typeMap$2[type]) === null || _typeMap$type28 === void 0 ? void 0 : _typeMap$type28.key)] = val || [];
|
|
30044
30121
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
30045
30122
|
};
|
|
30046
30123
|
var changeSystemOrderHandle = function changeSystemOrderHandle(val) {
|
|
30047
|
-
var _typeMap$
|
|
30124
|
+
var _typeMap$type29, _typeMap$type30, _value$typeMap$type$t2, _typeMap$type35, _value$typeMap$type$t3, _typeMap$type37;
|
|
30048
30125
|
var newValue = _objectSpread2({}, value);
|
|
30049
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
30050
|
-
if (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
30051
|
-
var _value$typeMap$type$s7, _typeMap$
|
|
30052
|
-
var orders = (value === null || value === void 0 ? void 0 : (_value$typeMap$type$s7 = value[(_typeMap$
|
|
30126
|
+
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type29 = typeMap$2[type]) === null || _typeMap$type29 === void 0 ? void 0 : _typeMap$type29.systemOrderNo)] = val;
|
|
30127
|
+
if (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type30 = typeMap$2[type]) === null || _typeMap$type30 === void 0 ? void 0 : _typeMap$type30.systemOrderBillType) {
|
|
30128
|
+
var _value$typeMap$type$s7, _typeMap$type31, _typeMap$type33, _typeMap$type34;
|
|
30129
|
+
var orders = (value === null || value === void 0 ? void 0 : (_value$typeMap$type$s7 = value[(_typeMap$type31 = typeMap$2[type]) === null || _typeMap$type31 === void 0 ? void 0 : _typeMap$type31.systemOrder]) === null || _value$typeMap$type$s7 === void 0 ? void 0 : _value$typeMap$type$s7.orders) || [];
|
|
30053
30130
|
var targetOrder = val && orders.find(function (oItem) {
|
|
30054
|
-
var _typeMap$
|
|
30055
|
-
return oItem[(_typeMap$
|
|
30131
|
+
var _typeMap$type32;
|
|
30132
|
+
return oItem[(_typeMap$type32 = typeMap$2[type]) === null || _typeMap$type32 === void 0 ? void 0 : _typeMap$type32.oIdKey] === val;
|
|
30056
30133
|
});
|
|
30057
|
-
newValue[(_typeMap$
|
|
30058
|
-
}
|
|
30059
|
-
if (['2'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t2 = value[(_typeMap$
|
|
30060
|
-
var _typeMap$
|
|
30061
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
30062
|
-
} else if (['1'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t3 = value[(_typeMap$
|
|
30063
|
-
var _typeMap$
|
|
30064
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
30134
|
+
newValue[(_typeMap$type33 = typeMap$2[type]) === null || _typeMap$type33 === void 0 ? void 0 : _typeMap$type33.systemOrderBillType] = targetOrder === null || targetOrder === void 0 ? void 0 : targetOrder[(_typeMap$type34 = typeMap$2[type]) === null || _typeMap$type34 === void 0 ? void 0 : _typeMap$type34.orderTypeKey];
|
|
30135
|
+
}
|
|
30136
|
+
if (['2'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t2 = value[(_typeMap$type35 = typeMap$2[type]) === null || _typeMap$type35 === void 0 ? void 0 : _typeMap$type35.typeName]) === null || _value$typeMap$type$t2 === void 0 ? void 0 : _value$typeMap$type$t2[0])) {
|
|
30137
|
+
var _typeMap$type36;
|
|
30138
|
+
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type36 = typeMap$2[type]) === null || _typeMap$type36 === void 0 ? void 0 : _typeMap$type36.key)] = [];
|
|
30139
|
+
} else if (['1'].includes(value === null || value === void 0 ? void 0 : (_value$typeMap$type$t3 = value[(_typeMap$type37 = typeMap$2[type]) === null || _typeMap$type37 === void 0 ? void 0 : _typeMap$type37.typeName]) === null || _value$typeMap$type$t3 === void 0 ? void 0 : _value$typeMap$type$t3[0])) {
|
|
30140
|
+
var _typeMap$type38;
|
|
30141
|
+
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type38 = typeMap$2[type]) === null || _typeMap$type38 === void 0 ? void 0 : _typeMap$type38.key)] = getGoodDetails({
|
|
30065
30142
|
mode: isStrict,
|
|
30066
30143
|
sysOrderNo: val
|
|
30067
30144
|
});
|
|
@@ -30069,28 +30146,28 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
30069
30146
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue, 'systemOrder');
|
|
30070
30147
|
};
|
|
30071
30148
|
//显示选择商品按钮
|
|
30072
|
-
var showChangeBtn = !!(value === null || value === void 0 ? void 0 : value[(_typeMap$
|
|
30149
|
+
var showChangeBtn = !!(value === null || value === void 0 ? void 0 : value[(_typeMap$type39 = typeMap$2[type]) === null || _typeMap$type39 === void 0 ? void 0 : _typeMap$type39.systemOrderNo]);
|
|
30073
30150
|
var selectedGoodsChange = useCallback(function (skuList) {
|
|
30074
|
-
var _typeMap$
|
|
30151
|
+
var _typeMap$type40, _typeMap$type41, _typeMap$type42, _uniqBy, _typeMap$type43;
|
|
30075
30152
|
var newValue = _objectSpread2({}, value);
|
|
30076
30153
|
// 原订单商品
|
|
30077
30154
|
var originTradeGoodList = getGoodDetails({
|
|
30078
30155
|
mode: isStrict,
|
|
30079
|
-
isAllOrders: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
30156
|
+
isAllOrders: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type40 = typeMap$2[type]) === null || _typeMap$type40 === void 0 ? void 0 : _typeMap$type40.isShowSelectTradeGoods
|
|
30080
30157
|
}) || [];
|
|
30081
30158
|
// 当前选中的所有商品【包含了原订单+商品库】
|
|
30082
|
-
var currentSelectGoodList = (value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
30083
|
-
newValue["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
30084
|
-
var _typeMap$
|
|
30085
|
-
return skuList.includes(item[(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
30159
|
+
var currentSelectGoodList = (value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type41 = typeMap$2[type]) === null || _typeMap$type41 === void 0 ? void 0 : _typeMap$type41.key)]) || [];
|
|
30160
|
+
newValue["".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)] = (_uniqBy = uniqBy(originTradeGoodList.concat(currentSelectGoodList), (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type43 = typeMap$2[type]) === null || _typeMap$type43 === void 0 ? void 0 : _typeMap$type43.uniqueKey) || 'uuid')) === null || _uniqBy === void 0 ? void 0 : _uniqBy.filter(function (item) {
|
|
30161
|
+
var _typeMap$type44;
|
|
30162
|
+
return skuList.includes(item[(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type44 = typeMap$2[type]) === null || _typeMap$type44 === void 0 ? void 0 : _typeMap$type44.uniqueKey) || 'uuid']);
|
|
30086
30163
|
});
|
|
30087
30164
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
30088
|
-
}, [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
30165
|
+
}, [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type45 = typeMap$2[type]) === null || _typeMap$type45 === void 0 ? void 0 : _typeMap$type45.key)], value, isStrict]);
|
|
30089
30166
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Row, {
|
|
30090
30167
|
gutter: 8,
|
|
30091
30168
|
wrap: true,
|
|
30092
|
-
id: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
30093
|
-
}, /*#__PURE__*/React.createElement(Col, {
|
|
30169
|
+
id: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type46 = typeMap$2[type]) === null || _typeMap$type46 === void 0 ? void 0 : _typeMap$type46.key) || "".concat(Date.now())
|
|
30170
|
+
}, !(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type47 = typeMap$2[type]) === null || _typeMap$type47 === void 0 ? void 0 : _typeMap$type47.hideSelectSysOrderId) && /*#__PURE__*/React.createElement(Col, {
|
|
30094
30171
|
className: "gutter-row",
|
|
30095
30172
|
xs: {
|
|
30096
30173
|
span: 11
|
|
@@ -30105,12 +30182,12 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
30105
30182
|
},
|
|
30106
30183
|
disabled: disabled,
|
|
30107
30184
|
allowClear: false,
|
|
30108
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
30185
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type48 = typeMap$2[type]) === null || _typeMap$type48 === void 0 ? void 0 : _typeMap$type48.systemOrderNo)],
|
|
30109
30186
|
onChange: function onChange(val) {
|
|
30110
30187
|
return changeSystemOrderHandle(val);
|
|
30111
30188
|
},
|
|
30112
|
-
placeholder: "\u9009\u62E9".concat((typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
30113
|
-
}, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s8 = value[(_typeMap$
|
|
30189
|
+
placeholder: "\u9009\u62E9".concat((typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type49 = typeMap$2[type]) === null || _typeMap$type49 === void 0 ? void 0 : _typeMap$type49.compType) || '', "\u7CFB\u7EDF\u5355")
|
|
30190
|
+
}, ((value === null || value === void 0 ? void 0 : (_value$typeMap$type$s8 = value[(_typeMap$type50 = typeMap$2[type]) === null || _typeMap$type50 === void 0 ? void 0 : _typeMap$type50.systemOrder]) === null || _value$typeMap$type$s8 === void 0 ? void 0 : _value$typeMap$type$s8.showOrderInfo) || []).map(function (item) {
|
|
30114
30191
|
return /*#__PURE__*/React.createElement(Select.Option, {
|
|
30115
30192
|
key: item[typeMap$2[type].oIdKey],
|
|
30116
30193
|
value: item[typeMap$2[type].oIdKey],
|
|
@@ -30132,11 +30209,11 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
30132
30209
|
disabled: isSettingConfig ? !isSettingConfig : disabled,
|
|
30133
30210
|
allowClear: false,
|
|
30134
30211
|
options: reasonList,
|
|
30135
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
30212
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type51 = typeMap$2[type]) === null || _typeMap$type51 === void 0 ? void 0 : _typeMap$type51.typeName)],
|
|
30136
30213
|
onChange: function onChange(val) {
|
|
30137
30214
|
return changeTypeHandle(val);
|
|
30138
30215
|
}
|
|
30139
|
-
})), (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
30216
|
+
})), (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type52 = typeMap$2[type]) === null || _typeMap$type52 === void 0 ? void 0 : _typeMap$type52.systemOrderBillType) && !isSettingConfig && /*#__PURE__*/React.createElement(Col, {
|
|
30140
30217
|
className: "gutter-row",
|
|
30141
30218
|
xs: {
|
|
30142
30219
|
span: 11
|
|
@@ -30145,7 +30222,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
30145
30222
|
span: 6
|
|
30146
30223
|
}
|
|
30147
30224
|
}, /*#__PURE__*/React.createElement(Input, {
|
|
30148
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
30225
|
+
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type53 = typeMap$2[type]) === null || _typeMap$type53 === void 0 ? void 0 : _typeMap$type53.systemOrderBillType)],
|
|
30149
30226
|
disabled: disabled,
|
|
30150
30227
|
readOnly: true
|
|
30151
30228
|
}))), /*#__PURE__*/React.createElement(GoodItem$1, _objectSpread2(_objectSpread2({
|
|
@@ -30156,25 +30233,25 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
30156
30233
|
canUpdateNumber: showChangeBtn,
|
|
30157
30234
|
hasSelectedSystemOrder: showChangeBtn,
|
|
30158
30235
|
// showChangeBtn={showChangeBtn || typeMap?.[type]?.isShowSelectTradeGoods}
|
|
30159
|
-
alwaysShowChooseErpGoodsBtn: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
30160
|
-
showErpGoodsBtn: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
30236
|
+
alwaysShowChooseErpGoodsBtn: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type54 = typeMap$2[type]) === null || _typeMap$type54 === void 0 ? void 0 : _typeMap$type54.alwaysShowChooseErpGoodsBtn,
|
|
30237
|
+
showErpGoodsBtn: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type55 = typeMap$2[type]) === null || _typeMap$type55 === void 0 ? void 0 : _typeMap$type55.showErpGoodsBtn,
|
|
30161
30238
|
shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
|
|
30162
|
-
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
30239
|
+
value: 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.key)],
|
|
30163
30240
|
onChange: function onChange(val) {
|
|
30164
30241
|
return changeGoodHandle(val);
|
|
30165
30242
|
},
|
|
30166
30243
|
onModeChange: handleModeChange,
|
|
30167
30244
|
showModeBtn: showModeBtn,
|
|
30168
30245
|
isStrict: isStrict,
|
|
30169
|
-
isShowSelectTradeGoods: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
30170
|
-
systemOrders: value === null || value === void 0 ? void 0 : (_value$typeMap$type$s9 = value[(_typeMap$
|
|
30171
|
-
selectedSystemOrders: showChangeBtn ? [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
30246
|
+
isShowSelectTradeGoods: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type57 = typeMap$2[type]) === null || _typeMap$type57 === void 0 ? void 0 : _typeMap$type57.isShowSelectTradeGoods,
|
|
30247
|
+
systemOrders: value === null || value === void 0 ? void 0 : (_value$typeMap$type$s9 = value[(_typeMap$type58 = typeMap$2[type]) === null || _typeMap$type58 === void 0 ? void 0 : _typeMap$type58.systemOrder]) === null || _value$typeMap$type$s9 === void 0 ? void 0 : _value$typeMap$type$s9.orders,
|
|
30248
|
+
selectedSystemOrders: showChangeBtn ? [value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type59 = typeMap$2[type]) === null || _typeMap$type59 === void 0 ? void 0 : _typeMap$type59.systemOrderNo)]] : [],
|
|
30172
30249
|
tradeGoods: {
|
|
30173
30250
|
originDataSource: getGoodDetails({
|
|
30174
30251
|
mode: isStrict,
|
|
30175
|
-
isAllOrders: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
30252
|
+
isAllOrders: typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type60 = typeMap$2[type]) === null || _typeMap$type60 === void 0 ? void 0 : _typeMap$type60.isShowSelectTradeGoods
|
|
30176
30253
|
}),
|
|
30177
|
-
uniqueKey: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$
|
|
30254
|
+
uniqueKey: (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type61 = typeMap$2[type]) === null || _typeMap$type61 === void 0 ? void 0 : _typeMap$type61.uniqueKey) || 'uuid',
|
|
30178
30255
|
selectedGoodsChange: selectedGoodsChange
|
|
30179
30256
|
}
|
|
30180
30257
|
})));
|
|
@@ -32216,20 +32293,13 @@ var IdInputSelect = function IdInputSelect(props) {
|
|
|
32216
32293
|
tradeId = form.getFieldValue('m3ap1EvEyd');
|
|
32217
32294
|
skxReturnExpressCode = (_form$getFieldValue = form.getFieldValue('4487c6516b')) === null || _form$getFieldValue === void 0 ? void 0 : (_form$getFieldValue$ = _form$getFieldValue[0]) === null || _form$getFieldValue$ === void 0 ? void 0 : _form$getFieldValue$.logisticsCode;
|
|
32218
32295
|
blurFrom = form.getFieldValue('skx_return_billNo_blur_from');
|
|
32219
|
-
console.log('asyncQueryData---', {
|
|
32220
|
-
skxReturnExpressCode: skxReturnExpressCode,
|
|
32221
|
-
blurFrom: blurFrom,
|
|
32222
|
-
tradeId: tradeId,
|
|
32223
|
-
tradeIdRef: tradeIdRef.current,
|
|
32224
|
-
form: form
|
|
32225
|
-
});
|
|
32226
32296
|
if (!(type === 'SKX_OUTBOUND_NOTICE_NO' && !tradeId || type === 'SKX_RETURN_BILL_NO' && !tradeId && !skxReturnExpressCode)) {
|
|
32227
|
-
_context3.next =
|
|
32297
|
+
_context3.next = 6;
|
|
32228
32298
|
break;
|
|
32229
32299
|
}
|
|
32230
32300
|
setDataSource([]);
|
|
32231
32301
|
return _context3.abrupt("return");
|
|
32232
|
-
case
|
|
32302
|
+
case 6:
|
|
32233
32303
|
setSpinning(true);
|
|
32234
32304
|
// 判断是从哪个组件失焦,若是从[SKX]退换物流信息(TH)失焦,则根据物流单号查询,若是从订单号组件失焦,则根据订单号查询
|
|
32235
32305
|
typeMap$6[type].asyncGetData(type === 'SKX_RETURN_BILL_NO' && blurFrom === '4487c6516b' ? {
|
|
@@ -32243,7 +32313,7 @@ var IdInputSelect = function IdInputSelect(props) {
|
|
|
32243
32313
|
}).finally(function () {
|
|
32244
32314
|
setSpinning(false);
|
|
32245
32315
|
});
|
|
32246
|
-
case
|
|
32316
|
+
case 8:
|
|
32247
32317
|
case "end":
|
|
32248
32318
|
return _context3.stop();
|
|
32249
32319
|
}
|
|
@@ -32335,11 +32405,6 @@ var IdInputSelect = function IdInputSelect(props) {
|
|
|
32335
32405
|
}))));
|
|
32336
32406
|
};
|
|
32337
32407
|
var handleChange = function handleChange(val, isInput) {
|
|
32338
|
-
console.log('handleChange---', {
|
|
32339
|
-
val: val,
|
|
32340
|
-
value: value,
|
|
32341
|
-
isInput: isInput
|
|
32342
|
-
});
|
|
32343
32408
|
var isReturnBillNoChange = type === 'SKX_RETURN_BILL_NO' && form.getFieldValue('skx_return_billNo_blur_from') === '4487c6516b';
|
|
32344
32409
|
onChange === null || onChange === void 0 ? void 0 : onChange(val, value !== val && (!!isInput || isReturnBillNoChange));
|
|
32345
32410
|
// 如果类型是[SKX]退换货单号,则根据blurFrom判断是从[SKX]退换物流信息(TH)失焦,则调用onBlur
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/basic-components",
|
|
3
|
-
"version": "2.10.
|
|
3
|
+
"version": "2.10.4",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"homepage": "",
|
|
6
6
|
"license": "ISC",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"watch": "nodemon --ignore dist/ --ignore node_modules/ --watch src/ -C -e ts,tsx,less --debug -x 'yarn async'"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@kmkf-fe-packages/kmkf-utils": "2.10.
|
|
23
|
+
"@kmkf-fe-packages/kmkf-utils": "2.10.4",
|
|
24
24
|
"ahooks": "^3.7.4",
|
|
25
25
|
"ali-react-table": "2.6.1",
|
|
26
26
|
"bignumber.js": "^9.1.2",
|
|
@@ -66,5 +66,5 @@
|
|
|
66
66
|
"publishConfig": {
|
|
67
67
|
"access": "public"
|
|
68
68
|
},
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "545af3d105d59a2b0b8f92cb0dd8804f4e5631f6"
|
|
70
70
|
}
|