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