@kmkf-fe-packages/basic-components 2.10.6 → 2.10.7
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 +60 -74
- package/dist/src/jst/Goods/index.d.ts +2 -0
- package/package.json +3 -3
package/dist/index.esm.js
CHANGED
|
@@ -9,6 +9,7 @@ import maxBy from 'lodash/maxBy';
|
|
|
9
9
|
import { debounce, isNaN as isNaN$1, isNumber as isNumber$1, uniqBy, cloneDeep, difference, differenceWith, isBoolean, isEqual, takeRight, reject as reject$1, intersection, isEmpty } from 'lodash';
|
|
10
10
|
import { useUpdateEffect, useDebounceEffect, useAntdTable } from 'ahooks';
|
|
11
11
|
import zhCN from 'antd/lib/locale/zh_CN';
|
|
12
|
+
import Monitor from 'kmkf-monitor';
|
|
12
13
|
import pubsub from 'pubsub-js';
|
|
13
14
|
import { internals, useTablePipeline, features, BaseTable } from 'ali-react-table';
|
|
14
15
|
import zh_CN from 'antd/lib/locale-provider/zh_CN';
|
|
@@ -7863,7 +7864,6 @@ var ParseLogistics = function ParseLogistics(props) {
|
|
|
7863
7864
|
onChange === null || onChange === void 0 ? void 0 : onChange(data);
|
|
7864
7865
|
}).catch(function (e) {
|
|
7865
7866
|
handleAIIdentify(fullAddress);
|
|
7866
|
-
console.log(e);
|
|
7867
7867
|
}).finally(function () {
|
|
7868
7868
|
setLoading(false);
|
|
7869
7869
|
});
|
|
@@ -7887,7 +7887,6 @@ var ParseLogistics = function ParseLogistics(props) {
|
|
|
7887
7887
|
var data = res.data;
|
|
7888
7888
|
onChange === null || onChange === void 0 ? void 0 : onChange(data);
|
|
7889
7889
|
}).catch(function (e) {
|
|
7890
|
-
console.log(e);
|
|
7891
7890
|
message.error('识别失败,请输入正确的信息');
|
|
7892
7891
|
}).finally(function () {
|
|
7893
7892
|
setAiLoading(false);
|
|
@@ -12118,7 +12117,7 @@ var Goods = function Goods(props) {
|
|
|
12118
12117
|
return querySkus({
|
|
12119
12118
|
shopId: shopId,
|
|
12120
12119
|
numIids: numIid
|
|
12121
|
-
}).catch(
|
|
12120
|
+
}).catch(function () {});
|
|
12122
12121
|
case 5:
|
|
12123
12122
|
res = _context3.sent;
|
|
12124
12123
|
data = (res === null || res === void 0 ? void 0 : res.success) && (res === null || res === void 0 ? void 0 : res.data);
|
|
@@ -12502,7 +12501,7 @@ var GoodItem = function GoodItem(props) {
|
|
|
12502
12501
|
return querySkus({
|
|
12503
12502
|
shopId: shopId,
|
|
12504
12503
|
numIids: numIid
|
|
12505
|
-
}).catch(
|
|
12504
|
+
}).catch(function () {});
|
|
12506
12505
|
case 5:
|
|
12507
12506
|
res = _context3.sent;
|
|
12508
12507
|
data = (res === null || res === void 0 ? void 0 : res.success) && (res === null || res === void 0 ? void 0 : res.data);
|
|
@@ -13444,7 +13443,6 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
13444
13443
|
});
|
|
13445
13444
|
}
|
|
13446
13445
|
}
|
|
13447
|
-
console.log('newValue', newValue);
|
|
13448
13446
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue, type);
|
|
13449
13447
|
};
|
|
13450
13448
|
//智能识别回调
|
|
@@ -14027,21 +14025,14 @@ var LogisticsMoreTrajectory = function LogisticsMoreTrajectory(props) {
|
|
|
14027
14025
|
}); // 1、初始值没有 传入值有请求快照
|
|
14028
14026
|
// 2、初始值有 传入值有 其中有不一样的请求快照
|
|
14029
14027
|
// 3、初始值有 传入值有 都一样的返回初始值
|
|
14030
|
-
console.log('list', initList, valueList, changeList);
|
|
14031
|
-
// console.log('old', initValue, value, changeValue);
|
|
14032
|
-
// console.log('一样', JSON.stringify(initList) !== JSON.stringify(valueList));
|
|
14033
|
-
// console.log(
|
|
14034
|
-
// '一样2',
|
|
14035
|
-
// JSON.stringify(changeList) !== JSON.stringify(valueList),
|
|
14036
|
-
// );
|
|
14037
14028
|
if (!(!initList.length && !valueList.length)) {
|
|
14038
|
-
_context.next =
|
|
14029
|
+
_context.next = 7;
|
|
14039
14030
|
break;
|
|
14040
14031
|
}
|
|
14041
14032
|
return _context.abrupt("return");
|
|
14042
|
-
case
|
|
14033
|
+
case 7:
|
|
14043
14034
|
if (!(JSON.stringify(initList) === JSON.stringify(valueList))) {
|
|
14044
|
-
_context.next =
|
|
14035
|
+
_context.next = 13;
|
|
14045
14036
|
break;
|
|
14046
14037
|
}
|
|
14047
14038
|
initSnapshotList = initValue.reduce(function (prv, next) {
|
|
@@ -14060,13 +14051,13 @@ var LogisticsMoreTrajectory = function LogisticsMoreTrajectory(props) {
|
|
|
14060
14051
|
setNewValue(initValue);
|
|
14061
14052
|
onChange(initValue);
|
|
14062
14053
|
}
|
|
14063
|
-
_context.next =
|
|
14054
|
+
_context.next = 29;
|
|
14064
14055
|
break;
|
|
14065
|
-
case
|
|
14056
|
+
case 13:
|
|
14066
14057
|
if (!(
|
|
14067
14058
|
//开启了物流快照才会获取快照信息
|
|
14068
14059
|
hasSnapshot && JSON.stringify(initList) !== JSON.stringify(valueList) && JSON.stringify(changeList) !== JSON.stringify(valueList))) {
|
|
14069
|
-
_context.next =
|
|
14060
|
+
_context.next = 28;
|
|
14070
14061
|
break;
|
|
14071
14062
|
}
|
|
14072
14063
|
hasSave.current = false;
|
|
@@ -14075,7 +14066,7 @@ var LogisticsMoreTrajectory = function LogisticsMoreTrajectory(props) {
|
|
|
14075
14066
|
});
|
|
14076
14067
|
listValue = cloneDeep(value);
|
|
14077
14068
|
if (!hasValue) {
|
|
14078
|
-
_context.next =
|
|
14069
|
+
_context.next = 23;
|
|
14079
14070
|
break;
|
|
14080
14071
|
}
|
|
14081
14072
|
requestList = valueList.map(function (item) {
|
|
@@ -14094,9 +14085,9 @@ var LogisticsMoreTrajectory = function LogisticsMoreTrajectory(props) {
|
|
|
14094
14085
|
});
|
|
14095
14086
|
}
|
|
14096
14087
|
});
|
|
14097
|
-
_context.next =
|
|
14088
|
+
_context.next = 21;
|
|
14098
14089
|
return Promise.allSettled(requestList);
|
|
14099
|
-
case
|
|
14090
|
+
case 21:
|
|
14100
14091
|
requestValues = _context.sent;
|
|
14101
14092
|
listValue = cloneDeep(value).map(function (item, index) {
|
|
14102
14093
|
var _requestValues$index, _requestValues$index$, _requestValues$index$2;
|
|
@@ -14104,15 +14095,15 @@ var LogisticsMoreTrajectory = function LogisticsMoreTrajectory(props) {
|
|
|
14104
14095
|
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
|
|
14105
14096
|
});
|
|
14106
14097
|
});
|
|
14107
|
-
case
|
|
14098
|
+
case 23:
|
|
14108
14099
|
setChangeValue(listValue);
|
|
14109
14100
|
setNewValue(listValue);
|
|
14110
14101
|
onChange(listValue);
|
|
14111
|
-
_context.next =
|
|
14102
|
+
_context.next = 29;
|
|
14112
14103
|
break;
|
|
14113
|
-
case
|
|
14104
|
+
case 28:
|
|
14114
14105
|
setNewValue(value);
|
|
14115
|
-
case
|
|
14106
|
+
case 29:
|
|
14116
14107
|
case "end":
|
|
14117
14108
|
return _context.stop();
|
|
14118
14109
|
}
|
|
@@ -14188,7 +14179,8 @@ var jstGoods = function jstGoods(props) {
|
|
|
14188
14179
|
_props$platformType = props.platformType,
|
|
14189
14180
|
platformType = _props$platformType === void 0 ? 'default' : _props$platformType,
|
|
14190
14181
|
onlyShowFieldSelect = props.onlyShowFieldSelect,
|
|
14191
|
-
logisticsCompanyFormType = props.logisticsCompanyFormType
|
|
14182
|
+
logisticsCompanyFormType = props.logisticsCompanyFormType,
|
|
14183
|
+
form = props.form;
|
|
14192
14184
|
var _useState = useState(0),
|
|
14193
14185
|
_useState2 = _slicedToArray(_useState, 2),
|
|
14194
14186
|
changeIndex = _useState2[0],
|
|
@@ -14203,6 +14195,26 @@ var jstGoods = function jstGoods(props) {
|
|
|
14203
14195
|
onChange === null || onChange === void 0 ? void 0 : onChange(typeInitValueMap[type]);
|
|
14204
14196
|
}
|
|
14205
14197
|
}, [value, type]);
|
|
14198
|
+
useEffect(function () {
|
|
14199
|
+
//丢失sendSnapshotName,未找到具体原因,兜底处理
|
|
14200
|
+
if (type === 3 && isSendGoodSavedId && value && value.length && value.some(function (item) {
|
|
14201
|
+
return !item.sendSnapshotName;
|
|
14202
|
+
}) && value.every(function (item) {
|
|
14203
|
+
return item.sendId;
|
|
14204
|
+
})) {
|
|
14205
|
+
var orderNo = form === null || form === void 0 ? void 0 : form.getFieldValue('m3ap1EvEyd');
|
|
14206
|
+
var newValue = cloneDeep(value).map(function (item) {
|
|
14207
|
+
if (item.sendSnapshotName || !item.sendId) return item;
|
|
14208
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
14209
|
+
sendSnapshotName: SendDataCenter.getInstance(platformType).getSendNameByCode(item.sendId)
|
|
14210
|
+
});
|
|
14211
|
+
});
|
|
14212
|
+
Monitor.automaticReport({
|
|
14213
|
+
message: "\u53D1\u8D27\u4ED3\u8D70\u515C\u5E95\u5904\u7406-".concat(orderNo || '', "-oldValue-").concat(JSON.stringify(cloneDeep(value)), ",newValue-").concat(JSON.stringify(cloneDeep(newValue)))
|
|
14214
|
+
});
|
|
14215
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
14216
|
+
}
|
|
14217
|
+
}, [JSON.stringify(value || []), type]);
|
|
14206
14218
|
useEffect(function () {
|
|
14207
14219
|
if (changeIndex > (value === null || value === void 0 ? void 0 : value.length) - 1) {
|
|
14208
14220
|
setChangeIndex(0);
|
|
@@ -16282,7 +16294,7 @@ var GoodList = function GoodList(props, ref) {
|
|
|
16282
16294
|
} else {
|
|
16283
16295
|
reject$1(res);
|
|
16284
16296
|
}
|
|
16285
|
-
}).catch(
|
|
16297
|
+
}).catch(function () {});
|
|
16286
16298
|
};
|
|
16287
16299
|
getMore();
|
|
16288
16300
|
};
|
|
@@ -18333,7 +18345,6 @@ var SearchHeader = function SearchHeader(_ref) {
|
|
|
18333
18345
|
timeOptions = _ref.timeOptions,
|
|
18334
18346
|
ShopList = _ref.ShopList,
|
|
18335
18347
|
onSubmit = _ref.onSubmit;
|
|
18336
|
-
console.log('allFields', allFields);
|
|
18337
18348
|
// const fixedFieldsOptions = useMemo(() => {
|
|
18338
18349
|
// return allFields.filter(item => fixedFields?.includes(item.id));
|
|
18339
18350
|
// }, [fixedFields, allFields]);
|
|
@@ -18589,9 +18600,7 @@ var WorkorderList = function WorkorderList(props, ref) {
|
|
|
18589
18600
|
loading: false
|
|
18590
18601
|
}));
|
|
18591
18602
|
setWorkOrderList(newDataSource);
|
|
18592
|
-
}).catch(function (error) {
|
|
18593
|
-
console.log('**** 获取表格数据错误', error);
|
|
18594
|
-
}));
|
|
18603
|
+
}).catch(function (error) {}));
|
|
18595
18604
|
case 19:
|
|
18596
18605
|
case "end":
|
|
18597
18606
|
return _context.stop();
|
|
@@ -22910,7 +22919,6 @@ var getColumns$6 = function getColumns() {
|
|
|
22910
22919
|
title: "\u5B9E\u9645\u8865\u53D1\u6570\u91CF",
|
|
22911
22920
|
width: 100,
|
|
22912
22921
|
validator: function validator(_rule, value, extraParams) {
|
|
22913
|
-
console.log('实际补发数量-extraParams', extraParams);
|
|
22914
22922
|
if (!(extraParams === null || extraParams === void 0 ? void 0 : extraParams.quantityVerify)) return undefined;
|
|
22915
22923
|
var title = '';
|
|
22916
22924
|
if (((value === null || value === void 0 ? void 0 : value.kmReissueGoods) || []).some(function (goods) {
|
|
@@ -25185,7 +25193,7 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
|
25185
25193
|
while (1) switch (_context2.prev = _context2.next) {
|
|
25186
25194
|
case 0:
|
|
25187
25195
|
if (!validSystemOrderFn) {
|
|
25188
|
-
_context2.next =
|
|
25196
|
+
_context2.next = 6;
|
|
25189
25197
|
break;
|
|
25190
25198
|
}
|
|
25191
25199
|
_context2.next = 3;
|
|
@@ -25193,39 +25201,38 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
|
25193
25201
|
case 3:
|
|
25194
25202
|
flag = _context2.sent;
|
|
25195
25203
|
if (!(flag === false)) {
|
|
25196
|
-
_context2.next =
|
|
25204
|
+
_context2.next = 6;
|
|
25197
25205
|
break;
|
|
25198
25206
|
}
|
|
25199
|
-
console.log('validSystemOrderFn校验不通过');
|
|
25200
25207
|
return _context2.abrupt("return");
|
|
25201
|
-
case
|
|
25208
|
+
case 6:
|
|
25202
25209
|
if (!validSystemOrder) {
|
|
25203
|
-
_context2.next =
|
|
25210
|
+
_context2.next = 9;
|
|
25204
25211
|
break;
|
|
25205
25212
|
}
|
|
25206
25213
|
message.warning('请选择补发系统单');
|
|
25207
25214
|
return _context2.abrupt("return");
|
|
25208
|
-
case
|
|
25215
|
+
case 9:
|
|
25209
25216
|
if (!(getDataSourceAsync && (!(dataSource === null || dataSource === void 0 ? void 0 : dataSource.length) || isReloadSelectTable))) {
|
|
25210
|
-
_context2.next =
|
|
25217
|
+
_context2.next = 12;
|
|
25211
25218
|
break;
|
|
25212
25219
|
}
|
|
25213
|
-
_context2.next =
|
|
25220
|
+
_context2.next = 12;
|
|
25214
25221
|
return getDataSourceAsync();
|
|
25215
|
-
case
|
|
25222
|
+
case 12:
|
|
25216
25223
|
if (!['KM_GOODS', 'KM_REISSUE_GOODS', 'KM_RETURN_GOODS'].includes(type)) {
|
|
25217
|
-
_context2.next =
|
|
25224
|
+
_context2.next = 15;
|
|
25218
25225
|
break;
|
|
25219
25226
|
}
|
|
25220
|
-
_context2.next =
|
|
25227
|
+
_context2.next = 15;
|
|
25221
25228
|
return getKmSupplier(dataSource);
|
|
25222
|
-
case
|
|
25229
|
+
case 15:
|
|
25223
25230
|
setTradeGoodsVisible(true);
|
|
25224
25231
|
// 补发直接传入的是systemNo
|
|
25225
25232
|
if (isShowSelect && isReissueType) {
|
|
25226
25233
|
setSelectSystemNo(selectedSystemOrders || []);
|
|
25227
25234
|
}
|
|
25228
|
-
case
|
|
25235
|
+
case 17:
|
|
25229
25236
|
case "end":
|
|
25230
25237
|
return _context2.stop();
|
|
25231
25238
|
}
|
|
@@ -25427,7 +25434,6 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
25427
25434
|
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;
|
|
25428
25435
|
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;
|
|
25429
25436
|
var refModal = useRef();
|
|
25430
|
-
console.debug('表格数据', value);
|
|
25431
25437
|
var handleDelete = function handleDelete(record, index) {
|
|
25432
25438
|
onDelete === null || onDelete === void 0 ? void 0 : onDelete(value[index]);
|
|
25433
25439
|
var newList = _toConsumableArray(value).filter(function (item, i) {
|
|
@@ -26208,7 +26214,6 @@ var BsReissue = function BsReissue(props) {
|
|
|
26208
26214
|
var _typeMap$type2;
|
|
26209
26215
|
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) {
|
|
26210
26216
|
var _typeMap$type3;
|
|
26211
|
-
console.log('reissueSelectList', data);
|
|
26212
26217
|
if (disabled) return;
|
|
26213
26218
|
var newValue = _objectSpread2(_objectSpread2({}, data.goodValue), {}, {
|
|
26214
26219
|
shopCode: data === null || data === void 0 ? void 0 : data.shopCode
|
|
@@ -28014,7 +28019,6 @@ var OrderSubForm = function OrderSubForm(props) {
|
|
|
28014
28019
|
manual = props.manual,
|
|
28015
28020
|
correlationList = props.subConfig.correlationList,
|
|
28016
28021
|
effects = props.effects;
|
|
28017
|
-
console.log('effects', effects);
|
|
28018
28022
|
var valueRef = useRef(value);
|
|
28019
28023
|
useEffect(function () {
|
|
28020
28024
|
valueRef.current = value;
|
|
@@ -28211,7 +28215,7 @@ var OrderSubForm = function OrderSubForm(props) {
|
|
|
28211
28215
|
onChange(_objectSpread2(_objectSpread2({}, value), {}, {
|
|
28212
28216
|
allOrders: allOrders
|
|
28213
28217
|
}));
|
|
28214
|
-
}).catch(
|
|
28218
|
+
}).catch(function () {}) : Promise.resolve();
|
|
28215
28219
|
};
|
|
28216
28220
|
var getAllTradeGoodsDetails = function getAllTradeGoodsDetails() {
|
|
28217
28221
|
var goodDetails = (value === null || value === void 0 ? void 0 : value.allOrders) || [];
|
|
@@ -29446,29 +29450,23 @@ var CommonExchangeGoods = function CommonExchangeGoods(props) {
|
|
|
29446
29450
|
var getDataSourceAsync = function getDataSourceAsync() {
|
|
29447
29451
|
return new Promise(function (resolve) {
|
|
29448
29452
|
pubsub.subscribeOnce(componentMap$4[compType].eventNameMap.returnGoodsSysorderBack, function (_, data) {
|
|
29449
|
-
var _componentMap$compTyp9
|
|
29453
|
+
var _componentMap$compTyp9;
|
|
29450
29454
|
resolve(data);
|
|
29451
|
-
console.log('getDataSourceAsync---111data--', data, getGoodDetails({
|
|
29452
|
-
returnGoodsValue: data,
|
|
29453
|
-
mode: isStrict,
|
|
29454
|
-
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
|
|
29455
|
-
}));
|
|
29456
29455
|
setOriginDataSource(getGoodDetails({
|
|
29457
29456
|
returnGoodsValue: data,
|
|
29458
|
-
isAllOrders: componentMap$4 === null || componentMap$4 === void 0 ? void 0 : (_componentMap$
|
|
29457
|
+
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,
|
|
29459
29458
|
mode: isStrict
|
|
29460
29459
|
}));
|
|
29461
29460
|
});
|
|
29462
29461
|
pubsub.publish(componentMap$4[compType].eventNameMap.returnGoodsSysorder, compType);
|
|
29463
29462
|
});
|
|
29464
29463
|
};
|
|
29465
|
-
console.log('aaa--', originDataSource);
|
|
29466
29464
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(GoodItem$1, _objectSpread2(_objectSpread2({
|
|
29467
29465
|
key: componentMap$4[compType].type
|
|
29468
29466
|
}, props), {}, {
|
|
29469
29467
|
validSystemOrderFn: function validSystemOrderFn() {
|
|
29470
|
-
var _componentMap$
|
|
29471
|
-
return (_componentMap$
|
|
29468
|
+
var _componentMap$compTyp10, _componentMap$compTyp11;
|
|
29469
|
+
return (_componentMap$compTyp10 = (_componentMap$compTyp11 = componentMap$4[compType]).validSystemOrderFn) === null || _componentMap$compTyp10 === void 0 ? void 0 : _componentMap$compTyp10.call(_componentMap$compTyp11, form);
|
|
29472
29470
|
},
|
|
29473
29471
|
isReloadSelectTable: componentMap$4[compType].isReloadSelectTable,
|
|
29474
29472
|
disabled: disabled,
|
|
@@ -32319,20 +32317,13 @@ var IdInputSelect = function IdInputSelect(props) {
|
|
|
32319
32317
|
tradeId = form.getFieldValue('m3ap1EvEyd');
|
|
32320
32318
|
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;
|
|
32321
32319
|
blurFrom = form.getFieldValue('skx_return_billNo_blur_from');
|
|
32322
|
-
console.log('asyncQueryData---', {
|
|
32323
|
-
skxReturnExpressCode: skxReturnExpressCode,
|
|
32324
|
-
blurFrom: blurFrom,
|
|
32325
|
-
tradeId: tradeId,
|
|
32326
|
-
tradeIdRef: tradeIdRef.current,
|
|
32327
|
-
form: form
|
|
32328
|
-
});
|
|
32329
32320
|
if (!(type === 'SKX_OUTBOUND_NOTICE_NO' && !tradeId || type === 'SKX_RETURN_BILL_NO' && !tradeId && !skxReturnExpressCode)) {
|
|
32330
|
-
_context3.next =
|
|
32321
|
+
_context3.next = 6;
|
|
32331
32322
|
break;
|
|
32332
32323
|
}
|
|
32333
32324
|
setDataSource([]);
|
|
32334
32325
|
return _context3.abrupt("return");
|
|
32335
|
-
case
|
|
32326
|
+
case 6:
|
|
32336
32327
|
setSpinning(true);
|
|
32337
32328
|
// 判断是从哪个组件失焦,若是从[SKX]退换物流信息(TH)失焦,则根据物流单号查询,若是从订单号组件失焦,则根据订单号查询
|
|
32338
32329
|
typeMap$6[type].asyncGetData(type === 'SKX_RETURN_BILL_NO' && blurFrom === '4487c6516b' ? {
|
|
@@ -32346,7 +32337,7 @@ var IdInputSelect = function IdInputSelect(props) {
|
|
|
32346
32337
|
}).finally(function () {
|
|
32347
32338
|
setSpinning(false);
|
|
32348
32339
|
});
|
|
32349
|
-
case
|
|
32340
|
+
case 8:
|
|
32350
32341
|
case "end":
|
|
32351
32342
|
return _context3.stop();
|
|
32352
32343
|
}
|
|
@@ -32438,11 +32429,6 @@ var IdInputSelect = function IdInputSelect(props) {
|
|
|
32438
32429
|
}))));
|
|
32439
32430
|
};
|
|
32440
32431
|
var handleChange = function handleChange(val, isInput) {
|
|
32441
|
-
console.log('handleChange---', {
|
|
32442
|
-
val: val,
|
|
32443
|
-
value: value,
|
|
32444
|
-
isInput: isInput
|
|
32445
|
-
});
|
|
32446
32432
|
var isReturnBillNoChange = type === 'SKX_RETURN_BILL_NO' && form.getFieldValue('skx_return_billNo_blur_from') === '4487c6516b';
|
|
32447
32433
|
onChange === null || onChange === void 0 ? void 0 : onChange(val, value !== val && (!!isInput || isReturnBillNoChange));
|
|
32448
32434
|
// 如果类型是[SKX]退换货单号,则根据blurFrom判断是从[SKX]退换物流信息(TH)失焦,则调用onBlur
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { FormInstance } from 'antd';
|
|
2
3
|
import { ExpressData } from '@kmkf-fe-packages/kmkf-utils';
|
|
3
4
|
interface JstGoodsProps {
|
|
4
5
|
value: any[];
|
|
@@ -12,6 +13,7 @@ interface JstGoodsProps {
|
|
|
12
13
|
onlyShowFieldSelect: boolean;
|
|
13
14
|
expressDateInstance: InstanceType<typeof ExpressData>;
|
|
14
15
|
logisticsCompanyFormType?: string;
|
|
16
|
+
form?: FormInstance;
|
|
15
17
|
}
|
|
16
18
|
declare const jstGoods: (props: Partial<JstGoodsProps>) => React.JSX.Element;
|
|
17
19
|
export default jstGoods;
|
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.7",
|
|
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.7",
|
|
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": "419755fa7a36d0e41be3e73386c9fdb48c9fea55"
|
|
70
70
|
}
|