@kmkf-fe-packages/basic-components 2.0.54-beta.1 → 2.0.54-beta.11
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 +147 -47
- package/dist/index.js +148 -46
- package/dist/src/bs/component/model/Columns/useGetColumns.d.ts +2 -2
- package/dist/src/common/AsyncSelect/index.d.ts +6 -0
- package/dist/src/constants/columnsBaseInfoMap.d.ts +1 -0
- package/dist/src/index.d.ts +2 -1
- package/dist/src/jst/Goods/index.d.ts +2 -0
- package/package.json +3 -3
package/dist/index.esm.js
CHANGED
|
@@ -473,6 +473,57 @@ function _nonIterableSpread() {
|
|
|
473
473
|
function _nonIterableRest() {
|
|
474
474
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
475
475
|
}
|
|
476
|
+
function _createForOfIteratorHelper(o, allowArrayLike) {
|
|
477
|
+
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
|
478
|
+
if (!it) {
|
|
479
|
+
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
|
|
480
|
+
if (it) o = it;
|
|
481
|
+
var i = 0;
|
|
482
|
+
var F = function () {};
|
|
483
|
+
return {
|
|
484
|
+
s: F,
|
|
485
|
+
n: function () {
|
|
486
|
+
if (i >= o.length) return {
|
|
487
|
+
done: true
|
|
488
|
+
};
|
|
489
|
+
return {
|
|
490
|
+
done: false,
|
|
491
|
+
value: o[i++]
|
|
492
|
+
};
|
|
493
|
+
},
|
|
494
|
+
e: function (e) {
|
|
495
|
+
throw e;
|
|
496
|
+
},
|
|
497
|
+
f: F
|
|
498
|
+
};
|
|
499
|
+
}
|
|
500
|
+
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
501
|
+
}
|
|
502
|
+
var normalCompletion = true,
|
|
503
|
+
didErr = false,
|
|
504
|
+
err;
|
|
505
|
+
return {
|
|
506
|
+
s: function () {
|
|
507
|
+
it = it.call(o);
|
|
508
|
+
},
|
|
509
|
+
n: function () {
|
|
510
|
+
var step = it.next();
|
|
511
|
+
normalCompletion = step.done;
|
|
512
|
+
return step;
|
|
513
|
+
},
|
|
514
|
+
e: function (e) {
|
|
515
|
+
didErr = true;
|
|
516
|
+
err = e;
|
|
517
|
+
},
|
|
518
|
+
f: function () {
|
|
519
|
+
try {
|
|
520
|
+
if (!normalCompletion && it.return != null) it.return();
|
|
521
|
+
} finally {
|
|
522
|
+
if (didErr) throw err;
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
};
|
|
526
|
+
}
|
|
476
527
|
function _toPrimitive(input, hint) {
|
|
477
528
|
if (typeof input !== "object" || input === null) return input;
|
|
478
529
|
var prim = input[Symbol.toPrimitive];
|
|
@@ -7950,7 +8001,8 @@ var WidgetMap = {
|
|
|
7950
8001
|
var pageSize = 50;
|
|
7951
8002
|
var SubForm = function SubForm(props) {
|
|
7952
8003
|
var _selectOptions$;
|
|
7953
|
-
var value = props.value,
|
|
8004
|
+
var _props$value = props.value,
|
|
8005
|
+
value = _props$value === void 0 ? [] : _props$value,
|
|
7954
8006
|
onChange = props.onChange,
|
|
7955
8007
|
needFilterShopByPermission = props.needFilterShopByPermission,
|
|
7956
8008
|
_props$subConfig = props.subConfig,
|
|
@@ -8252,7 +8304,7 @@ var SubForm = function SubForm(props) {
|
|
|
8252
8304
|
}
|
|
8253
8305
|
});
|
|
8254
8306
|
}
|
|
8255
|
-
onChange === null || onChange === void 0 ? void 0 : onChange([].concat(_toConsumableArray(value), [_objectSpread2(_objectSpread2({}, newValue), {}, {
|
|
8307
|
+
onChange === null || onChange === void 0 ? void 0 : onChange([].concat(_toConsumableArray(value || []), [_objectSpread2(_objectSpread2({}, newValue), {}, {
|
|
8256
8308
|
uuid: uuid()
|
|
8257
8309
|
})]));
|
|
8258
8310
|
};
|
|
@@ -11450,7 +11502,7 @@ var typeInitValueMap = {
|
|
|
11450
11502
|
}]
|
|
11451
11503
|
};
|
|
11452
11504
|
var jstGoods = function jstGoods(props) {
|
|
11453
|
-
var _value$changeIndex, _value$changeIndex2, _value$changeIndex3, _value$changeIndex4, _value$changeIndex5, _value$changeIndex6, _value$changeIndex7, _value$changeIndex8, _value$changeIndex9;
|
|
11505
|
+
var _value$changeIndex, _value$changeIndex2, _value$changeIndex3, _value$changeIndex4, _value$changeIndex5, _value$changeIndex6, _value$changeIndex7, _value$changeIndex8, _value$changeIndex9, _value$changeIndex10, _value$changeIndex11;
|
|
11454
11506
|
var _props$value = props.value,
|
|
11455
11507
|
value = _props$value === void 0 ? [] : _props$value,
|
|
11456
11508
|
onChange = props.onChange,
|
|
@@ -11468,8 +11520,8 @@ var jstGoods = function jstGoods(props) {
|
|
|
11468
11520
|
setChangeIndex = _useState2[1]; //选中的包裹
|
|
11469
11521
|
var sendOptions = SendDataCenter.getInstance(platformType).getSendData();
|
|
11470
11522
|
var isSelectName = ['wdt', 'bsE3', 'km', 'gy', 'jst'].includes(platformType);
|
|
11523
|
+
var expressDateInstance = ExpressData.getInstance(platformType);
|
|
11471
11524
|
var isSendGoodSavedId = isSelectName && !['jst'].includes(platformType);
|
|
11472
|
-
var logisticsType = type === 1 && platformType === 'gy' ? 'input' : 'select';
|
|
11473
11525
|
useEffect(function () {
|
|
11474
11526
|
//没有值塞个默认值
|
|
11475
11527
|
if (!(value === null || value === void 0 ? void 0 : value.length) && type !== 1) {
|
|
@@ -11552,59 +11604,51 @@ var jstGoods = function jstGoods(props) {
|
|
|
11552
11604
|
return setChangeIndex(index);
|
|
11553
11605
|
}
|
|
11554
11606
|
}, "\u5305\u88F9".concat(index + 1)));
|
|
11555
|
-
}))) : null, value.length || type === 1 ? /*#__PURE__*/React.createElement(React.Fragment, null, type === 1 ? /*#__PURE__*/React.createElement(Space, null, !showField || showField === 'logisticsCompany' ? /*#__PURE__*/React.createElement(ApaasLogistics,
|
|
11556
|
-
type: logisticsType,
|
|
11607
|
+
}))) : null, value.length || type === 1 ? /*#__PURE__*/React.createElement(React.Fragment, null, type === 1 ? /*#__PURE__*/React.createElement(Space, null, !showField || showField === 'logisticsCompany' ? /*#__PURE__*/React.createElement(ApaasLogistics, {
|
|
11557
11608
|
disabled: disabled,
|
|
11558
11609
|
placeholder: "\u7269\u6D41\u516C\u53F8",
|
|
11559
11610
|
onChange: function onChange(val) {
|
|
11560
|
-
|
|
11561
|
-
changeInputHandle(null, 'logisticsCompany');
|
|
11562
|
-
changeInputHandle(val, 'logisticsCompanyName');
|
|
11563
|
-
} else {
|
|
11564
|
-
changeInputHandle(val, 'logisticsCompany');
|
|
11565
|
-
}
|
|
11611
|
+
changeInputHandle(val, 'logisticsCompany');
|
|
11566
11612
|
},
|
|
11567
|
-
value: (_value$changeIndex = value[changeIndex]) === null || _value$changeIndex === void 0 ? void 0 : _value$changeIndex[
|
|
11568
|
-
}, logisticsType === 'input' ? {} : {
|
|
11613
|
+
value: platformType === 'gy' ? expressDateInstance.getExpressNameByCode((_value$changeIndex = value[changeIndex]) === null || _value$changeIndex === void 0 ? void 0 : _value$changeIndex['logisticsCompany'], false) || ((_value$changeIndex2 = value[changeIndex]) === null || _value$changeIndex2 === void 0 ? void 0 : _value$changeIndex2['logisticsCompanyName']) : (_value$changeIndex3 = value[changeIndex]) === null || _value$changeIndex3 === void 0 ? void 0 : _value$changeIndex3['logisticsCompany'],
|
|
11569
11614
|
showSearch: true,
|
|
11570
11615
|
dropdownMatchSelectWidth: false,
|
|
11571
11616
|
filterOption: function filterOption(input, option) {
|
|
11572
11617
|
return option.label.includes(input);
|
|
11573
|
-
}
|
|
11574
|
-
}), {}, {
|
|
11618
|
+
},
|
|
11575
11619
|
style: {
|
|
11576
11620
|
minWidth: '100px',
|
|
11577
11621
|
maxWidth: '180px'
|
|
11578
11622
|
},
|
|
11579
11623
|
platformType: platformType
|
|
11580
|
-
})
|
|
11624
|
+
}) : null, !showField || showField === 'logisticsCode' ? /*#__PURE__*/React.createElement(Input, {
|
|
11581
11625
|
disabled: disabled,
|
|
11582
11626
|
placeholder: "\u7269\u6D41\u5355\u53F7",
|
|
11583
11627
|
onChange: function onChange(e) {
|
|
11584
11628
|
return changeInputHandle(e.target.value, 'logisticsCode');
|
|
11585
11629
|
},
|
|
11586
|
-
value: (_value$
|
|
11630
|
+
value: (_value$changeIndex4 = value[changeIndex]) === null || _value$changeIndex4 === void 0 ? void 0 : _value$changeIndex4.logisticsCode
|
|
11587
11631
|
}) : null) : null, type === 2 ? /*#__PURE__*/React.createElement(Space, null, ['supplyId', 'all'].includes(showField) && /*#__PURE__*/React.createElement(Input, {
|
|
11588
11632
|
disabled: disabled,
|
|
11589
11633
|
placeholder: "\u8BF7\u8F93\u5165\u4F9B\u9500\u5546\u7F16\u7801",
|
|
11590
11634
|
onChange: function onChange(e) {
|
|
11591
11635
|
return changeInputHandle(e.target.value, 'supplyId');
|
|
11592
11636
|
},
|
|
11593
|
-
value: (_value$
|
|
11637
|
+
value: (_value$changeIndex5 = value[changeIndex]) === null || _value$changeIndex5 === void 0 ? void 0 : _value$changeIndex5.supplyId
|
|
11594
11638
|
}), ['supplyName', 'all'].includes(showField) && /*#__PURE__*/React.createElement(Input, {
|
|
11595
11639
|
disabled: disabled,
|
|
11596
11640
|
placeholder: "\u8BF7\u8F93\u5165\u4F9B\u9500\u5546\u540D\u79F0",
|
|
11597
11641
|
onChange: function onChange(e) {
|
|
11598
11642
|
return changeInputHandle(e.target.value, 'supplyName');
|
|
11599
11643
|
},
|
|
11600
|
-
value: (_value$
|
|
11644
|
+
value: (_value$changeIndex6 = value[changeIndex]) === null || _value$changeIndex6 === void 0 ? void 0 : _value$changeIndex6.supplyName
|
|
11601
11645
|
})) : null, type === 3 ? /*#__PURE__*/React.createElement(Space, null, ['sendId', 'all'].includes(showField) && /*#__PURE__*/React.createElement(Input, {
|
|
11602
11646
|
disabled: disabled,
|
|
11603
11647
|
placeholder: "\u8BF7\u8F93\u5165\u53D1\u8D27\u4ED3\u7F16\u7801",
|
|
11604
11648
|
onChange: function onChange(e) {
|
|
11605
11649
|
return changeInputHandle(e.target.value, 'sendId');
|
|
11606
11650
|
},
|
|
11607
|
-
value: (_value$
|
|
11651
|
+
value: (_value$changeIndex7 = value[changeIndex]) === null || _value$changeIndex7 === void 0 ? void 0 : _value$changeIndex7.sendId
|
|
11608
11652
|
}), ['sendName', 'all'].includes(showField) && (isSelectName ? /*#__PURE__*/React.createElement(Select, {
|
|
11609
11653
|
style: {
|
|
11610
11654
|
minWidth: '100px',
|
|
@@ -11615,7 +11659,7 @@ var jstGoods = function jstGoods(props) {
|
|
|
11615
11659
|
showSearch: true,
|
|
11616
11660
|
options: sendOptions,
|
|
11617
11661
|
filterOption: filterOption,
|
|
11618
|
-
value: ((_value$
|
|
11662
|
+
value: ((_value$changeIndex8 = value[changeIndex]) === null || _value$changeIndex8 === void 0 ? void 0 : _value$changeIndex8.sendSnapshotId) || ((_value$changeIndex9 = value[changeIndex]) === null || _value$changeIndex9 === void 0 ? void 0 : _value$changeIndex9.sendName) || null,
|
|
11619
11663
|
onChange: function onChange(value, option) {
|
|
11620
11664
|
return handleSelected(value, 'sendName', option, onlyShowFieldSelect);
|
|
11621
11665
|
}
|
|
@@ -11625,14 +11669,14 @@ var jstGoods = function jstGoods(props) {
|
|
|
11625
11669
|
onChange: function onChange(e) {
|
|
11626
11670
|
return changeInputHandle(e.target.value, 'sendName');
|
|
11627
11671
|
},
|
|
11628
|
-
value: (_value$
|
|
11672
|
+
value: (_value$changeIndex10 = value[changeIndex]) === null || _value$changeIndex10 === void 0 ? void 0 : _value$changeIndex10.sendName
|
|
11629
11673
|
}))) : null, type === 4 ? /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Input, {
|
|
11630
11674
|
disabled: disabled,
|
|
11631
11675
|
placeholder: "\u8BF7\u8F93\u5165\u51FA\u5E93\u5355\u7F16\u53F7",
|
|
11632
11676
|
onChange: function onChange(e) {
|
|
11633
11677
|
return changeInputHandle(e.target.value, 'deliveryNo');
|
|
11634
11678
|
},
|
|
11635
|
-
value: (_value$
|
|
11679
|
+
value: (_value$changeIndex11 = value[changeIndex]) === null || _value$changeIndex11 === void 0 ? void 0 : _value$changeIndex11.sendName
|
|
11636
11680
|
})) : null) : null);
|
|
11637
11681
|
};
|
|
11638
11682
|
|
|
@@ -12547,9 +12591,7 @@ var useGetColumns = (function (type) {
|
|
|
12547
12591
|
loading = _useState4[0],
|
|
12548
12592
|
setLoading = _useState4[1];
|
|
12549
12593
|
var showColumnsDataIndexList = useMemo(function () {
|
|
12550
|
-
return columns.
|
|
12551
|
-
return Object.hasOwn(item, 'dataIndex');
|
|
12552
|
-
}).map(function (item) {
|
|
12594
|
+
return columns.map(function (item) {
|
|
12553
12595
|
return item.dataIndex;
|
|
12554
12596
|
});
|
|
12555
12597
|
}, [columns]);
|
|
@@ -15737,6 +15779,29 @@ var getColumnsMap$1 = function getColumnsMap(args) {
|
|
|
15737
15779
|
});
|
|
15738
15780
|
};
|
|
15739
15781
|
var erpColumnsMap = getColumnsMap$1();
|
|
15782
|
+
var erpFormValidator = function erpFormValidator(_rule, value, type) {
|
|
15783
|
+
var validatorFnList = (erpColumnsMap[type] || erpColumnsMap['default']).map(function (column) {
|
|
15784
|
+
return column.validator;
|
|
15785
|
+
}).filter(Boolean);
|
|
15786
|
+
var res = null;
|
|
15787
|
+
var _iterator = _createForOfIteratorHelper(validatorFnList),
|
|
15788
|
+
_step;
|
|
15789
|
+
try {
|
|
15790
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
15791
|
+
var validatorFn = _step.value;
|
|
15792
|
+
var validatorResult = validatorFn(_rule, value, type);
|
|
15793
|
+
if (validatorResult) {
|
|
15794
|
+
res = validatorResult;
|
|
15795
|
+
break;
|
|
15796
|
+
}
|
|
15797
|
+
}
|
|
15798
|
+
} catch (err) {
|
|
15799
|
+
_iterator.e(err);
|
|
15800
|
+
} finally {
|
|
15801
|
+
_iterator.f();
|
|
15802
|
+
}
|
|
15803
|
+
return res;
|
|
15804
|
+
};
|
|
15740
15805
|
var getColumnsBaseInfo$1 = function getColumnsBaseInfo() {
|
|
15741
15806
|
var clone_columnsMap = cloneDeep(getColumnsMap$1());
|
|
15742
15807
|
var newColumns = {};
|
|
@@ -15867,6 +15932,7 @@ var GoodsModalMap = {
|
|
|
15867
15932
|
BS_E3_EXCHANGE_GOODS: BsE3GoodsModal,
|
|
15868
15933
|
GY_GOODS: GyGoodsModal$2,
|
|
15869
15934
|
GY_REISSUE_GOODS: GyGoodsModal$2,
|
|
15935
|
+
GY_RETURN_GOODS: GyGoodsModal$2,
|
|
15870
15936
|
JST_GOODS: JstGoodsModal,
|
|
15871
15937
|
JST_REISSUE_GOODS: JstGoodsModal,
|
|
15872
15938
|
JST_RETURN_GOODS: JstGoodsModal,
|
|
@@ -15939,7 +16005,7 @@ var getButtonText = function getButtonText() {
|
|
|
15939
16005
|
if (['WDT_REISSUE_GOODS'].includes(type)) {
|
|
15940
16006
|
return '选择旺店通商品';
|
|
15941
16007
|
}
|
|
15942
|
-
if (['GY_GOODS', 'GY_REISSUE_GOODS'].includes(type)) {
|
|
16008
|
+
if (['GY_GOODS', 'GY_REISSUE_GOODS', 'GY_RETURN_GOODS'].includes(type)) {
|
|
15943
16009
|
return '选择管易ERP商品';
|
|
15944
16010
|
}
|
|
15945
16011
|
if (['JST_GOODS', 'JST_REISSUE_GOODS', 'JST_RETURN_GOODS', 'JST_EXCHANGE_GOODS'].includes(type)) {
|
|
@@ -16242,7 +16308,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
16242
16308
|
canUpdateNumber: canUpdateNumber
|
|
16243
16309
|
});
|
|
16244
16310
|
});
|
|
16245
|
-
} else if (['GY_GOODS', 'GY_REISSUE_GOODS'].includes(type)) {
|
|
16311
|
+
} else if (['GY_GOODS', 'GY_REISSUE_GOODS', 'GY_RETURN_GOODS'].includes(type)) {
|
|
16246
16312
|
newList = list.map(function (item) {
|
|
16247
16313
|
var goodName = item.goodName,
|
|
16248
16314
|
goodShortName = item.goodShortName,
|
|
@@ -19529,6 +19595,39 @@ var MsgStatus = function MsgStatus(props) {
|
|
|
19529
19595
|
}, "\u5931\u8D25\u539F\u56E0\uFF1A", (_value$changeIndex3 = value[changeIndex]) === null || _value$changeIndex3 === void 0 ? void 0 : _value$changeIndex3.reason) : null) : null);
|
|
19530
19596
|
};
|
|
19531
19597
|
|
|
19598
|
+
var _excluded$n = ["showOnly", "getOptionsAsync"];
|
|
19599
|
+
var AsyncSelect = function AsyncSelect(props) {
|
|
19600
|
+
var _props$showOnly = props.showOnly,
|
|
19601
|
+
showOnly = _props$showOnly === void 0 ? false : _props$showOnly,
|
|
19602
|
+
getOptionsAsync = props.getOptionsAsync,
|
|
19603
|
+
otherProps = _objectWithoutProperties(props, _excluded$n);
|
|
19604
|
+
var _React$useState = React.useState([]),
|
|
19605
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
19606
|
+
data = _React$useState2[0],
|
|
19607
|
+
setData = _React$useState2[1];
|
|
19608
|
+
React.useEffect(function () {
|
|
19609
|
+
getOptionsAsync === null || getOptionsAsync === void 0 ? void 0 : getOptionsAsync().then(function (list) {
|
|
19610
|
+
setData(list);
|
|
19611
|
+
});
|
|
19612
|
+
}, []);
|
|
19613
|
+
var options = [].concat(_toConsumableArray(props.options || []), _toConsumableArray(data || []));
|
|
19614
|
+
if (showOnly) {
|
|
19615
|
+
var selectedItem = options.find(function (option) {
|
|
19616
|
+
return option.value === props.value;
|
|
19617
|
+
});
|
|
19618
|
+
return selectedItem ? selectedItem.label : props.value;
|
|
19619
|
+
}
|
|
19620
|
+
return /*#__PURE__*/React.createElement(Select, _objectSpread2(_objectSpread2({
|
|
19621
|
+
showSearch: true,
|
|
19622
|
+
filterOption: function filterOption(input, option) {
|
|
19623
|
+
return option.label.includes(input);
|
|
19624
|
+
},
|
|
19625
|
+
notFoundContent: null
|
|
19626
|
+
}, otherProps), {}, {
|
|
19627
|
+
options: options
|
|
19628
|
+
}));
|
|
19629
|
+
};
|
|
19630
|
+
|
|
19532
19631
|
var CalculationInput = function CalculationInput(props) {
|
|
19533
19632
|
var _props$config = props.config,
|
|
19534
19633
|
config = _props$config === void 0 ? {} : _props$config;
|
|
@@ -19547,7 +19646,7 @@ var CalculationInput = function CalculationInput(props) {
|
|
|
19547
19646
|
}, config === null || config === void 0 ? void 0 : config.unit));
|
|
19548
19647
|
};
|
|
19549
19648
|
|
|
19550
|
-
var _excluded$
|
|
19649
|
+
var _excluded$o = ["value", "onChange", "reasonList", "disabled", "type"];
|
|
19551
19650
|
var typeMap$3 = {
|
|
19552
19651
|
BS_E3_REISSUE_GOODS: {
|
|
19553
19652
|
key: 'bsE3ReissueGoods',
|
|
@@ -19565,7 +19664,7 @@ var bsE3Reissue = function bsE3Reissue(props) {
|
|
|
19565
19664
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
19566
19665
|
disabled = props.disabled,
|
|
19567
19666
|
type = props.type,
|
|
19568
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
19667
|
+
other = _objectWithoutProperties(props, _excluded$o);
|
|
19569
19668
|
var getOrderFlag = useRef(false);
|
|
19570
19669
|
var valueRef = useRef(null);
|
|
19571
19670
|
var _useState = useState(false),
|
|
@@ -19783,7 +19882,7 @@ var bsE3Reissue = function bsE3Reissue(props) {
|
|
|
19783
19882
|
})));
|
|
19784
19883
|
};
|
|
19785
19884
|
|
|
19786
|
-
var _excluded$
|
|
19885
|
+
var _excluded$p = ["value", "onChange", "reasonList", "disabled", "type"],
|
|
19787
19886
|
_excluded2 = ["billNo", "billType", "billTag", "tradeTagName", "deliveryState", "vipCode", "shopCode"];
|
|
19788
19887
|
var typeMap$4 = {
|
|
19789
19888
|
GY_REISSUE_GOODS: {
|
|
@@ -19805,14 +19904,14 @@ var typeMap$4 = {
|
|
|
19805
19904
|
}
|
|
19806
19905
|
};
|
|
19807
19906
|
var GyReissue = function GyReissue(props) {
|
|
19808
|
-
var _typeMap$type28, _typeMap$type30, _typeMap$type31, _value$typeMap$type$s5, _typeMap$type32, _typeMap$type33, _typeMap$type34;
|
|
19907
|
+
var _typeMap$type28, _typeMap$type29, _typeMap$type30, _systemOrder$orders, _typeMap$type31, _value$typeMap$type$s5, _typeMap$type32, _typeMap$type33, _typeMap$type34;
|
|
19809
19908
|
var value = props.value,
|
|
19810
19909
|
onChange = props.onChange,
|
|
19811
19910
|
_props$reasonList = props.reasonList,
|
|
19812
19911
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
19813
19912
|
disabled = props.disabled,
|
|
19814
19913
|
type = props.type,
|
|
19815
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
19914
|
+
other = _objectWithoutProperties(props, _excluded$p);
|
|
19816
19915
|
// const showModeBtn = (value?.gySystemOrder?.orders || []).some((order: any) =>
|
|
19817
19916
|
// order?.platformCode?.includes(';'),
|
|
19818
19917
|
// );
|
|
@@ -19977,10 +20076,9 @@ var GyReissue = function GyReissue(props) {
|
|
|
19977
20076
|
pushGyLog('afterSelectedGoodsChange', newValue);
|
|
19978
20077
|
}, [value === null || value === void 0 ? void 0 : value["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$type28 = typeMap$4[type]) === null || _typeMap$type28 === void 0 ? void 0 : _typeMap$type28.key)], isStrict]);
|
|
19979
20078
|
//系统单选择后展示选择商品按钮,系统单未选择的时候不展示
|
|
19980
|
-
var
|
|
19981
|
-
|
|
19982
|
-
|
|
19983
|
-
}, [value === null || value === void 0 ? void 0 : value[(_typeMap$type30 = typeMap$4[type]) === null || _typeMap$type30 === void 0 ? void 0 : _typeMap$type30.systemOrderNo]]);
|
|
20079
|
+
var systemOrder = value === null || value === void 0 ? void 0 : value[(_typeMap$type29 = typeMap$4[type]) === null || _typeMap$type29 === void 0 ? void 0 : _typeMap$type29.systemOrder];
|
|
20080
|
+
var showChangeBtn = !!(value === null || value === void 0 ? void 0 : value[(_typeMap$type30 = typeMap$4[type]) === null || _typeMap$type30 === void 0 ? void 0 : _typeMap$type30.systemOrderNo]);
|
|
20081
|
+
var showErpGoodsBtn = showChangeBtn || type === 'GY_REISSUE_GOODS' && systemOrder && systemOrder.orderNo && !((_systemOrder$orders = systemOrder.orders) === null || _systemOrder$orders === void 0 ? void 0 : _systemOrder$orders.length);
|
|
19984
20082
|
return /*#__PURE__*/React.createElement("div", {
|
|
19985
20083
|
id: "TEST_GY",
|
|
19986
20084
|
onClick: function onClick() {
|
|
@@ -20040,6 +20138,8 @@ var GyReissue = function GyReissue(props) {
|
|
|
20040
20138
|
disabled: disabled,
|
|
20041
20139
|
canUpdateNumber: showChangeBtn,
|
|
20042
20140
|
showChangeBtn: showChangeBtn,
|
|
20141
|
+
showErpGoodsBtn: showErpGoodsBtn,
|
|
20142
|
+
alwaysShowChooseErpGoodsBtn: showErpGoodsBtn,
|
|
20043
20143
|
shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
|
|
20044
20144
|
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$type34 = typeMap$4[type]) === null || _typeMap$type34 === void 0 ? void 0 : _typeMap$type34.key)],
|
|
20045
20145
|
onChange: function onChange(val) {
|
|
@@ -20056,7 +20156,7 @@ var GyReissue = function GyReissue(props) {
|
|
|
20056
20156
|
})));
|
|
20057
20157
|
};
|
|
20058
20158
|
|
|
20059
|
-
var _excluded$
|
|
20159
|
+
var _excluded$q = ["value", "onChange", "reasonList", "disabled", "type"],
|
|
20060
20160
|
_excluded2$1 = ["billNo", "billType", "billTag", "tradeTagName", "deliveryState", "vipCode", "shopCode"];
|
|
20061
20161
|
var typeMap$5 = {
|
|
20062
20162
|
GY_RETURN_GOODS: {
|
|
@@ -20078,14 +20178,14 @@ var typeMap$5 = {
|
|
|
20078
20178
|
}
|
|
20079
20179
|
};
|
|
20080
20180
|
var GyReturnGoods = function GyReturnGoods(props) {
|
|
20081
|
-
var _typeMap$type10, _typeMap$type28, _typeMap$type29, _value$typeMap$type$s5, _typeMap$type30, _typeMap$type31, _typeMap$type32;
|
|
20181
|
+
var _typeMap$type10, _typeMap$type27, _systemOrder$orders, _typeMap$type28, _typeMap$type29, _value$typeMap$type$s5, _typeMap$type30, _typeMap$type31, _typeMap$type32;
|
|
20082
20182
|
var value = props.value,
|
|
20083
20183
|
onChange = props.onChange,
|
|
20084
20184
|
_props$reasonList = props.reasonList,
|
|
20085
20185
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
20086
20186
|
disabled = props.disabled,
|
|
20087
20187
|
type = props.type,
|
|
20088
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
20188
|
+
other = _objectWithoutProperties(props, _excluded$q);
|
|
20089
20189
|
var valueRef = useRef({});
|
|
20090
20190
|
var getOrderFlag = useRef(false);
|
|
20091
20191
|
var _useState = useState(false),
|
|
@@ -20271,10 +20371,9 @@ var GyReturnGoods = function GyReturnGoods(props) {
|
|
|
20271
20371
|
}))));
|
|
20272
20372
|
};
|
|
20273
20373
|
//系统单选择后展示选择商品按钮,系统单未选择的时候不展示
|
|
20274
|
-
var
|
|
20275
|
-
|
|
20276
|
-
|
|
20277
|
-
}, [value === null || value === void 0 ? void 0 : value[(_typeMap$type28 = typeMap$5[type]) === null || _typeMap$type28 === void 0 ? void 0 : _typeMap$type28.systemOrderNo]]);
|
|
20374
|
+
var systemOrder = value === null || value === void 0 ? void 0 : value[(_typeMap$type27 = typeMap$5[type]) === null || _typeMap$type27 === void 0 ? void 0 : _typeMap$type27.systemOrder];
|
|
20375
|
+
var showErpGoodsBtn = type === 'GY_RETURN_GOODS' && systemOrder && systemOrder.orderNo && !((_systemOrder$orders = systemOrder.orders) === null || _systemOrder$orders === void 0 ? void 0 : _systemOrder$orders.length);
|
|
20376
|
+
var showChangeBtn = !!(value === null || value === void 0 ? void 0 : value[(_typeMap$type28 = typeMap$5[type]) === null || _typeMap$type28 === void 0 ? void 0 : _typeMap$type28.systemOrderNo]);
|
|
20278
20377
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Row, {
|
|
20279
20378
|
gutter: 8,
|
|
20280
20379
|
wrap: true
|
|
@@ -20336,7 +20435,8 @@ var GyReturnGoods = function GyReturnGoods(props) {
|
|
|
20336
20435
|
},
|
|
20337
20436
|
onModeChange: handleModeChange,
|
|
20338
20437
|
isStrict: isStrict,
|
|
20339
|
-
showErpGoodsBtn:
|
|
20438
|
+
showErpGoodsBtn: showErpGoodsBtn,
|
|
20439
|
+
alwaysShowChooseErpGoodsBtn: showErpGoodsBtn,
|
|
20340
20440
|
tradeGoods: {
|
|
20341
20441
|
originDataSource: getGoodDetails({
|
|
20342
20442
|
mode: isStrict
|
|
@@ -20346,4 +20446,4 @@ var GyReturnGoods = function GyReturnGoods(props) {
|
|
|
20346
20446
|
})));
|
|
20347
20447
|
};
|
|
20348
20448
|
|
|
20349
|
-
export { ApaasAddress as Address, AliPay, Province as ApaasAddress, ApaasCascader, ApaasCheckbox, ApaasDate, withFormItem as ApaasHoc, ApaasInput, ApaasInputNumber, ApaasLogistics, ApaasMultipleSelect, ApaasPosting, ApaasRadio, ApaasRate, ApaasSelect, ApaasSlider, ApaasTextArea, ApaasUpload, index as ApaasUploadAsync, ApaasUploadFile, index$1 as ApaasUploadProAsync, bsE3Reissue as BsE3Reissue, BsExchange, BsGoods, BsReissue, BsReturnGoods as BsReturn, index$3 as BsSystemOrder, BuyerNick, CalculationInput, ChooseBaby, CommonExchangeGoods, CommonGoods, CommonSystemOrder$1 as CommonMultiStatus, CommonReturnGoods, CommonStatus, CommonSystemOrder, CopyTextIcon, ExpressLogistics, Goods, index$4 as GoodsTable, GyReissue, GyReturnGoods as GyReturn, IdentifyAddress, Invoice, jstGoods as JstGoods, ItemList as JstItemList, LogisticsInterception, LogisticsMoreInterception, LogisticsMoreTrajectory, LogisticsTrajectory, MsgStatus, ParseLogistics, Payment, PublicReissue, RemarkInput as Remark, ExpressLogistics as ReturnLogistics, ShopNameSelect as ShopName, Status, SubForm, Supplier, TBGoodId, TBGoodSerial, TradeId, WdtGoodList, wdtReissue as WdtReissue, WlnGoods, columnsBaseInfoMap, erpColumnsMap, index$2 as erpModalColumnsMap, getColumns$4 as getGyColumns, getColumns$5 as getJstColumns, getColumns$2 as getWdtColumns, getColumns$3 as getWlnColumns };
|
|
20449
|
+
export { ApaasAddress as Address, AliPay, Province as ApaasAddress, ApaasCascader, ApaasCheckbox, ApaasDate, withFormItem as ApaasHoc, ApaasInput, ApaasInputNumber, ApaasLogistics, ApaasMultipleSelect, ApaasPosting, ApaasRadio, ApaasRate, ApaasSelect, ApaasSlider, ApaasTextArea, ApaasUpload, index as ApaasUploadAsync, ApaasUploadFile, index$1 as ApaasUploadProAsync, AsyncSelect, bsE3Reissue as BsE3Reissue, BsExchange, BsGoods, BsReissue, BsReturnGoods as BsReturn, index$3 as BsSystemOrder, BuyerNick, CalculationInput, ChooseBaby, CommonExchangeGoods, CommonGoods, CommonSystemOrder$1 as CommonMultiStatus, CommonReturnGoods, CommonStatus, CommonSystemOrder, CopyTextIcon, ExpressLogistics, Goods, index$4 as GoodsTable, GyReissue, GyReturnGoods as GyReturn, IdentifyAddress, Invoice, jstGoods as JstGoods, ItemList as JstItemList, LogisticsInterception, LogisticsMoreInterception, LogisticsMoreTrajectory, LogisticsTrajectory, MsgStatus, ParseLogistics, Payment, PublicReissue, RemarkInput as Remark, ExpressLogistics as ReturnLogistics, ShopNameSelect as ShopName, Status, SubForm, Supplier, TBGoodId, TBGoodSerial, TradeId, WdtGoodList, wdtReissue as WdtReissue, WlnGoods, columnsBaseInfoMap, erpColumnsMap, erpFormValidator, index$2 as erpModalColumnsMap, getColumns$4 as getGyColumns, getColumns$5 as getJstColumns, getColumns$2 as getWdtColumns, getColumns$3 as getWlnColumns };
|
package/dist/index.js
CHANGED
|
@@ -485,6 +485,57 @@ function _nonIterableSpread() {
|
|
|
485
485
|
function _nonIterableRest() {
|
|
486
486
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
487
487
|
}
|
|
488
|
+
function _createForOfIteratorHelper(o, allowArrayLike) {
|
|
489
|
+
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
|
490
|
+
if (!it) {
|
|
491
|
+
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
|
|
492
|
+
if (it) o = it;
|
|
493
|
+
var i = 0;
|
|
494
|
+
var F = function () {};
|
|
495
|
+
return {
|
|
496
|
+
s: F,
|
|
497
|
+
n: function () {
|
|
498
|
+
if (i >= o.length) return {
|
|
499
|
+
done: true
|
|
500
|
+
};
|
|
501
|
+
return {
|
|
502
|
+
done: false,
|
|
503
|
+
value: o[i++]
|
|
504
|
+
};
|
|
505
|
+
},
|
|
506
|
+
e: function (e) {
|
|
507
|
+
throw e;
|
|
508
|
+
},
|
|
509
|
+
f: F
|
|
510
|
+
};
|
|
511
|
+
}
|
|
512
|
+
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
513
|
+
}
|
|
514
|
+
var normalCompletion = true,
|
|
515
|
+
didErr = false,
|
|
516
|
+
err;
|
|
517
|
+
return {
|
|
518
|
+
s: function () {
|
|
519
|
+
it = it.call(o);
|
|
520
|
+
},
|
|
521
|
+
n: function () {
|
|
522
|
+
var step = it.next();
|
|
523
|
+
normalCompletion = step.done;
|
|
524
|
+
return step;
|
|
525
|
+
},
|
|
526
|
+
e: function (e) {
|
|
527
|
+
didErr = true;
|
|
528
|
+
err = e;
|
|
529
|
+
},
|
|
530
|
+
f: function () {
|
|
531
|
+
try {
|
|
532
|
+
if (!normalCompletion && it.return != null) it.return();
|
|
533
|
+
} finally {
|
|
534
|
+
if (didErr) throw err;
|
|
535
|
+
}
|
|
536
|
+
}
|
|
537
|
+
};
|
|
538
|
+
}
|
|
488
539
|
function _toPrimitive(input, hint) {
|
|
489
540
|
if (typeof input !== "object" || input === null) return input;
|
|
490
541
|
var prim = input[Symbol.toPrimitive];
|
|
@@ -7962,7 +8013,8 @@ var WidgetMap = {
|
|
|
7962
8013
|
var pageSize = 50;
|
|
7963
8014
|
var SubForm = function SubForm(props) {
|
|
7964
8015
|
var _selectOptions$;
|
|
7965
|
-
var value = props.value,
|
|
8016
|
+
var _props$value = props.value,
|
|
8017
|
+
value = _props$value === void 0 ? [] : _props$value,
|
|
7966
8018
|
onChange = props.onChange,
|
|
7967
8019
|
needFilterShopByPermission = props.needFilterShopByPermission,
|
|
7968
8020
|
_props$subConfig = props.subConfig,
|
|
@@ -8264,7 +8316,7 @@ var SubForm = function SubForm(props) {
|
|
|
8264
8316
|
}
|
|
8265
8317
|
});
|
|
8266
8318
|
}
|
|
8267
|
-
onChange === null || onChange === void 0 ? void 0 : onChange([].concat(_toConsumableArray(value), [_objectSpread2(_objectSpread2({}, newValue), {}, {
|
|
8319
|
+
onChange === null || onChange === void 0 ? void 0 : onChange([].concat(_toConsumableArray(value || []), [_objectSpread2(_objectSpread2({}, newValue), {}, {
|
|
8268
8320
|
uuid: kmkfUtils.uuid()
|
|
8269
8321
|
})]));
|
|
8270
8322
|
};
|
|
@@ -11462,7 +11514,7 @@ var typeInitValueMap = {
|
|
|
11462
11514
|
}]
|
|
11463
11515
|
};
|
|
11464
11516
|
var jstGoods = function jstGoods(props) {
|
|
11465
|
-
var _value$changeIndex, _value$changeIndex2, _value$changeIndex3, _value$changeIndex4, _value$changeIndex5, _value$changeIndex6, _value$changeIndex7, _value$changeIndex8, _value$changeIndex9;
|
|
11517
|
+
var _value$changeIndex, _value$changeIndex2, _value$changeIndex3, _value$changeIndex4, _value$changeIndex5, _value$changeIndex6, _value$changeIndex7, _value$changeIndex8, _value$changeIndex9, _value$changeIndex10, _value$changeIndex11;
|
|
11466
11518
|
var _props$value = props.value,
|
|
11467
11519
|
value = _props$value === void 0 ? [] : _props$value,
|
|
11468
11520
|
onChange = props.onChange,
|
|
@@ -11480,8 +11532,8 @@ var jstGoods = function jstGoods(props) {
|
|
|
11480
11532
|
setChangeIndex = _useState2[1]; //选中的包裹
|
|
11481
11533
|
var sendOptions = kmkfUtils.SendDataCenter.getInstance(platformType).getSendData();
|
|
11482
11534
|
var isSelectName = ['wdt', 'bsE3', 'km', 'gy', 'jst'].includes(platformType);
|
|
11535
|
+
var expressDateInstance = kmkfUtils.ExpressData.getInstance(platformType);
|
|
11483
11536
|
var isSendGoodSavedId = isSelectName && !['jst'].includes(platformType);
|
|
11484
|
-
var logisticsType = type === 1 && platformType === 'gy' ? 'input' : 'select';
|
|
11485
11537
|
React.useEffect(function () {
|
|
11486
11538
|
//没有值塞个默认值
|
|
11487
11539
|
if (!(value === null || value === void 0 ? void 0 : value.length) && type !== 1) {
|
|
@@ -11564,59 +11616,51 @@ var jstGoods = function jstGoods(props) {
|
|
|
11564
11616
|
return setChangeIndex(index);
|
|
11565
11617
|
}
|
|
11566
11618
|
}, "\u5305\u88F9".concat(index + 1)));
|
|
11567
|
-
}))) : null, value.length || type === 1 ? /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, type === 1 ? /*#__PURE__*/React__default['default'].createElement(antd.Space, null, !showField || showField === 'logisticsCompany' ? /*#__PURE__*/React__default['default'].createElement(ApaasLogistics,
|
|
11568
|
-
type: logisticsType,
|
|
11619
|
+
}))) : null, value.length || type === 1 ? /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, type === 1 ? /*#__PURE__*/React__default['default'].createElement(antd.Space, null, !showField || showField === 'logisticsCompany' ? /*#__PURE__*/React__default['default'].createElement(ApaasLogistics, {
|
|
11569
11620
|
disabled: disabled,
|
|
11570
11621
|
placeholder: "\u7269\u6D41\u516C\u53F8",
|
|
11571
11622
|
onChange: function onChange(val) {
|
|
11572
|
-
|
|
11573
|
-
changeInputHandle(null, 'logisticsCompany');
|
|
11574
|
-
changeInputHandle(val, 'logisticsCompanyName');
|
|
11575
|
-
} else {
|
|
11576
|
-
changeInputHandle(val, 'logisticsCompany');
|
|
11577
|
-
}
|
|
11623
|
+
changeInputHandle(val, 'logisticsCompany');
|
|
11578
11624
|
},
|
|
11579
|
-
value: (_value$changeIndex = value[changeIndex]) === null || _value$changeIndex === void 0 ? void 0 : _value$changeIndex[
|
|
11580
|
-
}, logisticsType === 'input' ? {} : {
|
|
11625
|
+
value: platformType === 'gy' ? expressDateInstance.getExpressNameByCode((_value$changeIndex = value[changeIndex]) === null || _value$changeIndex === void 0 ? void 0 : _value$changeIndex['logisticsCompany'], false) || ((_value$changeIndex2 = value[changeIndex]) === null || _value$changeIndex2 === void 0 ? void 0 : _value$changeIndex2['logisticsCompanyName']) : (_value$changeIndex3 = value[changeIndex]) === null || _value$changeIndex3 === void 0 ? void 0 : _value$changeIndex3['logisticsCompany'],
|
|
11581
11626
|
showSearch: true,
|
|
11582
11627
|
dropdownMatchSelectWidth: false,
|
|
11583
11628
|
filterOption: function filterOption(input, option) {
|
|
11584
11629
|
return option.label.includes(input);
|
|
11585
|
-
}
|
|
11586
|
-
}), {}, {
|
|
11630
|
+
},
|
|
11587
11631
|
style: {
|
|
11588
11632
|
minWidth: '100px',
|
|
11589
11633
|
maxWidth: '180px'
|
|
11590
11634
|
},
|
|
11591
11635
|
platformType: platformType
|
|
11592
|
-
})
|
|
11636
|
+
}) : null, !showField || showField === 'logisticsCode' ? /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
11593
11637
|
disabled: disabled,
|
|
11594
11638
|
placeholder: "\u7269\u6D41\u5355\u53F7",
|
|
11595
11639
|
onChange: function onChange(e) {
|
|
11596
11640
|
return changeInputHandle(e.target.value, 'logisticsCode');
|
|
11597
11641
|
},
|
|
11598
|
-
value: (_value$
|
|
11642
|
+
value: (_value$changeIndex4 = value[changeIndex]) === null || _value$changeIndex4 === void 0 ? void 0 : _value$changeIndex4.logisticsCode
|
|
11599
11643
|
}) : null) : null, type === 2 ? /*#__PURE__*/React__default['default'].createElement(antd.Space, null, ['supplyId', 'all'].includes(showField) && /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
11600
11644
|
disabled: disabled,
|
|
11601
11645
|
placeholder: "\u8BF7\u8F93\u5165\u4F9B\u9500\u5546\u7F16\u7801",
|
|
11602
11646
|
onChange: function onChange(e) {
|
|
11603
11647
|
return changeInputHandle(e.target.value, 'supplyId');
|
|
11604
11648
|
},
|
|
11605
|
-
value: (_value$
|
|
11649
|
+
value: (_value$changeIndex5 = value[changeIndex]) === null || _value$changeIndex5 === void 0 ? void 0 : _value$changeIndex5.supplyId
|
|
11606
11650
|
}), ['supplyName', 'all'].includes(showField) && /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
11607
11651
|
disabled: disabled,
|
|
11608
11652
|
placeholder: "\u8BF7\u8F93\u5165\u4F9B\u9500\u5546\u540D\u79F0",
|
|
11609
11653
|
onChange: function onChange(e) {
|
|
11610
11654
|
return changeInputHandle(e.target.value, 'supplyName');
|
|
11611
11655
|
},
|
|
11612
|
-
value: (_value$
|
|
11656
|
+
value: (_value$changeIndex6 = value[changeIndex]) === null || _value$changeIndex6 === void 0 ? void 0 : _value$changeIndex6.supplyName
|
|
11613
11657
|
})) : null, type === 3 ? /*#__PURE__*/React__default['default'].createElement(antd.Space, null, ['sendId', 'all'].includes(showField) && /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
11614
11658
|
disabled: disabled,
|
|
11615
11659
|
placeholder: "\u8BF7\u8F93\u5165\u53D1\u8D27\u4ED3\u7F16\u7801",
|
|
11616
11660
|
onChange: function onChange(e) {
|
|
11617
11661
|
return changeInputHandle(e.target.value, 'sendId');
|
|
11618
11662
|
},
|
|
11619
|
-
value: (_value$
|
|
11663
|
+
value: (_value$changeIndex7 = value[changeIndex]) === null || _value$changeIndex7 === void 0 ? void 0 : _value$changeIndex7.sendId
|
|
11620
11664
|
}), ['sendName', 'all'].includes(showField) && (isSelectName ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
11621
11665
|
style: {
|
|
11622
11666
|
minWidth: '100px',
|
|
@@ -11627,7 +11671,7 @@ var jstGoods = function jstGoods(props) {
|
|
|
11627
11671
|
showSearch: true,
|
|
11628
11672
|
options: sendOptions,
|
|
11629
11673
|
filterOption: filterOption,
|
|
11630
|
-
value: ((_value$
|
|
11674
|
+
value: ((_value$changeIndex8 = value[changeIndex]) === null || _value$changeIndex8 === void 0 ? void 0 : _value$changeIndex8.sendSnapshotId) || ((_value$changeIndex9 = value[changeIndex]) === null || _value$changeIndex9 === void 0 ? void 0 : _value$changeIndex9.sendName) || null,
|
|
11631
11675
|
onChange: function onChange(value, option) {
|
|
11632
11676
|
return handleSelected(value, 'sendName', option, onlyShowFieldSelect);
|
|
11633
11677
|
}
|
|
@@ -11637,14 +11681,14 @@ var jstGoods = function jstGoods(props) {
|
|
|
11637
11681
|
onChange: function onChange(e) {
|
|
11638
11682
|
return changeInputHandle(e.target.value, 'sendName');
|
|
11639
11683
|
},
|
|
11640
|
-
value: (_value$
|
|
11684
|
+
value: (_value$changeIndex10 = value[changeIndex]) === null || _value$changeIndex10 === void 0 ? void 0 : _value$changeIndex10.sendName
|
|
11641
11685
|
}))) : null, type === 4 ? /*#__PURE__*/React__default['default'].createElement(antd.Space, null, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
11642
11686
|
disabled: disabled,
|
|
11643
11687
|
placeholder: "\u8BF7\u8F93\u5165\u51FA\u5E93\u5355\u7F16\u53F7",
|
|
11644
11688
|
onChange: function onChange(e) {
|
|
11645
11689
|
return changeInputHandle(e.target.value, 'deliveryNo');
|
|
11646
11690
|
},
|
|
11647
|
-
value: (_value$
|
|
11691
|
+
value: (_value$changeIndex11 = value[changeIndex]) === null || _value$changeIndex11 === void 0 ? void 0 : _value$changeIndex11.sendName
|
|
11648
11692
|
})) : null) : null);
|
|
11649
11693
|
};
|
|
11650
11694
|
|
|
@@ -12559,9 +12603,7 @@ var useGetColumns = (function (type) {
|
|
|
12559
12603
|
loading = _useState4[0],
|
|
12560
12604
|
setLoading = _useState4[1];
|
|
12561
12605
|
var showColumnsDataIndexList = React.useMemo(function () {
|
|
12562
|
-
return columns.
|
|
12563
|
-
return Object.hasOwn(item, 'dataIndex');
|
|
12564
|
-
}).map(function (item) {
|
|
12606
|
+
return columns.map(function (item) {
|
|
12565
12607
|
return item.dataIndex;
|
|
12566
12608
|
});
|
|
12567
12609
|
}, [columns]);
|
|
@@ -15749,6 +15791,29 @@ var getColumnsMap$1 = function getColumnsMap(args) {
|
|
|
15749
15791
|
});
|
|
15750
15792
|
};
|
|
15751
15793
|
var erpColumnsMap = getColumnsMap$1();
|
|
15794
|
+
var erpFormValidator = function erpFormValidator(_rule, value, type) {
|
|
15795
|
+
var validatorFnList = (erpColumnsMap[type] || erpColumnsMap['default']).map(function (column) {
|
|
15796
|
+
return column.validator;
|
|
15797
|
+
}).filter(Boolean);
|
|
15798
|
+
var res = null;
|
|
15799
|
+
var _iterator = _createForOfIteratorHelper(validatorFnList),
|
|
15800
|
+
_step;
|
|
15801
|
+
try {
|
|
15802
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
15803
|
+
var validatorFn = _step.value;
|
|
15804
|
+
var validatorResult = validatorFn(_rule, value, type);
|
|
15805
|
+
if (validatorResult) {
|
|
15806
|
+
res = validatorResult;
|
|
15807
|
+
break;
|
|
15808
|
+
}
|
|
15809
|
+
}
|
|
15810
|
+
} catch (err) {
|
|
15811
|
+
_iterator.e(err);
|
|
15812
|
+
} finally {
|
|
15813
|
+
_iterator.f();
|
|
15814
|
+
}
|
|
15815
|
+
return res;
|
|
15816
|
+
};
|
|
15752
15817
|
var getColumnsBaseInfo$1 = function getColumnsBaseInfo() {
|
|
15753
15818
|
var clone_columnsMap = lodash.cloneDeep(getColumnsMap$1());
|
|
15754
15819
|
var newColumns = {};
|
|
@@ -15879,6 +15944,7 @@ var GoodsModalMap = {
|
|
|
15879
15944
|
BS_E3_EXCHANGE_GOODS: BsE3GoodsModal,
|
|
15880
15945
|
GY_GOODS: GyGoodsModal$2,
|
|
15881
15946
|
GY_REISSUE_GOODS: GyGoodsModal$2,
|
|
15947
|
+
GY_RETURN_GOODS: GyGoodsModal$2,
|
|
15882
15948
|
JST_GOODS: JstGoodsModal,
|
|
15883
15949
|
JST_REISSUE_GOODS: JstGoodsModal,
|
|
15884
15950
|
JST_RETURN_GOODS: JstGoodsModal,
|
|
@@ -15951,7 +16017,7 @@ var getButtonText = function getButtonText() {
|
|
|
15951
16017
|
if (['WDT_REISSUE_GOODS'].includes(type)) {
|
|
15952
16018
|
return '选择旺店通商品';
|
|
15953
16019
|
}
|
|
15954
|
-
if (['GY_GOODS', 'GY_REISSUE_GOODS'].includes(type)) {
|
|
16020
|
+
if (['GY_GOODS', 'GY_REISSUE_GOODS', 'GY_RETURN_GOODS'].includes(type)) {
|
|
15955
16021
|
return '选择管易ERP商品';
|
|
15956
16022
|
}
|
|
15957
16023
|
if (['JST_GOODS', 'JST_REISSUE_GOODS', 'JST_RETURN_GOODS', 'JST_EXCHANGE_GOODS'].includes(type)) {
|
|
@@ -16254,7 +16320,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
16254
16320
|
canUpdateNumber: canUpdateNumber
|
|
16255
16321
|
});
|
|
16256
16322
|
});
|
|
16257
|
-
} else if (['GY_GOODS', 'GY_REISSUE_GOODS'].includes(type)) {
|
|
16323
|
+
} else if (['GY_GOODS', 'GY_REISSUE_GOODS', 'GY_RETURN_GOODS'].includes(type)) {
|
|
16258
16324
|
newList = list.map(function (item) {
|
|
16259
16325
|
var goodName = item.goodName,
|
|
16260
16326
|
goodShortName = item.goodShortName,
|
|
@@ -19541,6 +19607,39 @@ var MsgStatus = function MsgStatus(props) {
|
|
|
19541
19607
|
}, "\u5931\u8D25\u539F\u56E0\uFF1A", (_value$changeIndex3 = value[changeIndex]) === null || _value$changeIndex3 === void 0 ? void 0 : _value$changeIndex3.reason) : null) : null);
|
|
19542
19608
|
};
|
|
19543
19609
|
|
|
19610
|
+
var _excluded$n = ["showOnly", "getOptionsAsync"];
|
|
19611
|
+
var AsyncSelect = function AsyncSelect(props) {
|
|
19612
|
+
var _props$showOnly = props.showOnly,
|
|
19613
|
+
showOnly = _props$showOnly === void 0 ? false : _props$showOnly,
|
|
19614
|
+
getOptionsAsync = props.getOptionsAsync,
|
|
19615
|
+
otherProps = _objectWithoutProperties(props, _excluded$n);
|
|
19616
|
+
var _React$useState = React__default['default'].useState([]),
|
|
19617
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
19618
|
+
data = _React$useState2[0],
|
|
19619
|
+
setData = _React$useState2[1];
|
|
19620
|
+
React__default['default'].useEffect(function () {
|
|
19621
|
+
getOptionsAsync === null || getOptionsAsync === void 0 ? void 0 : getOptionsAsync().then(function (list) {
|
|
19622
|
+
setData(list);
|
|
19623
|
+
});
|
|
19624
|
+
}, []);
|
|
19625
|
+
var options = [].concat(_toConsumableArray(props.options || []), _toConsumableArray(data || []));
|
|
19626
|
+
if (showOnly) {
|
|
19627
|
+
var selectedItem = options.find(function (option) {
|
|
19628
|
+
return option.value === props.value;
|
|
19629
|
+
});
|
|
19630
|
+
return selectedItem ? selectedItem.label : props.value;
|
|
19631
|
+
}
|
|
19632
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2(_objectSpread2({
|
|
19633
|
+
showSearch: true,
|
|
19634
|
+
filterOption: function filterOption(input, option) {
|
|
19635
|
+
return option.label.includes(input);
|
|
19636
|
+
},
|
|
19637
|
+
notFoundContent: null
|
|
19638
|
+
}, otherProps), {}, {
|
|
19639
|
+
options: options
|
|
19640
|
+
}));
|
|
19641
|
+
};
|
|
19642
|
+
|
|
19544
19643
|
var CalculationInput = function CalculationInput(props) {
|
|
19545
19644
|
var _props$config = props.config,
|
|
19546
19645
|
config = _props$config === void 0 ? {} : _props$config;
|
|
@@ -19559,7 +19658,7 @@ var CalculationInput = function CalculationInput(props) {
|
|
|
19559
19658
|
}, config === null || config === void 0 ? void 0 : config.unit));
|
|
19560
19659
|
};
|
|
19561
19660
|
|
|
19562
|
-
var _excluded$
|
|
19661
|
+
var _excluded$o = ["value", "onChange", "reasonList", "disabled", "type"];
|
|
19563
19662
|
var typeMap$3 = {
|
|
19564
19663
|
BS_E3_REISSUE_GOODS: {
|
|
19565
19664
|
key: 'bsE3ReissueGoods',
|
|
@@ -19577,7 +19676,7 @@ var bsE3Reissue = function bsE3Reissue(props) {
|
|
|
19577
19676
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
19578
19677
|
disabled = props.disabled,
|
|
19579
19678
|
type = props.type,
|
|
19580
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
19679
|
+
other = _objectWithoutProperties(props, _excluded$o);
|
|
19581
19680
|
var getOrderFlag = React.useRef(false);
|
|
19582
19681
|
var valueRef = React.useRef(null);
|
|
19583
19682
|
var _useState = React.useState(false),
|
|
@@ -19795,7 +19894,7 @@ var bsE3Reissue = function bsE3Reissue(props) {
|
|
|
19795
19894
|
})));
|
|
19796
19895
|
};
|
|
19797
19896
|
|
|
19798
|
-
var _excluded$
|
|
19897
|
+
var _excluded$p = ["value", "onChange", "reasonList", "disabled", "type"],
|
|
19799
19898
|
_excluded2 = ["billNo", "billType", "billTag", "tradeTagName", "deliveryState", "vipCode", "shopCode"];
|
|
19800
19899
|
var typeMap$4 = {
|
|
19801
19900
|
GY_REISSUE_GOODS: {
|
|
@@ -19817,14 +19916,14 @@ var typeMap$4 = {
|
|
|
19817
19916
|
}
|
|
19818
19917
|
};
|
|
19819
19918
|
var GyReissue = function GyReissue(props) {
|
|
19820
|
-
var _typeMap$type28, _typeMap$type30, _typeMap$type31, _value$typeMap$type$s5, _typeMap$type32, _typeMap$type33, _typeMap$type34;
|
|
19919
|
+
var _typeMap$type28, _typeMap$type29, _typeMap$type30, _systemOrder$orders, _typeMap$type31, _value$typeMap$type$s5, _typeMap$type32, _typeMap$type33, _typeMap$type34;
|
|
19821
19920
|
var value = props.value,
|
|
19822
19921
|
onChange = props.onChange,
|
|
19823
19922
|
_props$reasonList = props.reasonList,
|
|
19824
19923
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
19825
19924
|
disabled = props.disabled,
|
|
19826
19925
|
type = props.type,
|
|
19827
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
19926
|
+
other = _objectWithoutProperties(props, _excluded$p);
|
|
19828
19927
|
// const showModeBtn = (value?.gySystemOrder?.orders || []).some((order: any) =>
|
|
19829
19928
|
// order?.platformCode?.includes(';'),
|
|
19830
19929
|
// );
|
|
@@ -19989,10 +20088,9 @@ var GyReissue = function GyReissue(props) {
|
|
|
19989
20088
|
kmkfUtils.pushGyLog('afterSelectedGoodsChange', newValue);
|
|
19990
20089
|
}, [value === null || value === void 0 ? void 0 : value["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$type28 = typeMap$4[type]) === null || _typeMap$type28 === void 0 ? void 0 : _typeMap$type28.key)], isStrict]);
|
|
19991
20090
|
//系统单选择后展示选择商品按钮,系统单未选择的时候不展示
|
|
19992
|
-
var
|
|
19993
|
-
|
|
19994
|
-
|
|
19995
|
-
}, [value === null || value === void 0 ? void 0 : value[(_typeMap$type30 = typeMap$4[type]) === null || _typeMap$type30 === void 0 ? void 0 : _typeMap$type30.systemOrderNo]]);
|
|
20091
|
+
var systemOrder = value === null || value === void 0 ? void 0 : value[(_typeMap$type29 = typeMap$4[type]) === null || _typeMap$type29 === void 0 ? void 0 : _typeMap$type29.systemOrder];
|
|
20092
|
+
var showChangeBtn = !!(value === null || value === void 0 ? void 0 : value[(_typeMap$type30 = typeMap$4[type]) === null || _typeMap$type30 === void 0 ? void 0 : _typeMap$type30.systemOrderNo]);
|
|
20093
|
+
var showErpGoodsBtn = showChangeBtn || type === 'GY_REISSUE_GOODS' && systemOrder && systemOrder.orderNo && !((_systemOrder$orders = systemOrder.orders) === null || _systemOrder$orders === void 0 ? void 0 : _systemOrder$orders.length);
|
|
19996
20094
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
19997
20095
|
id: "TEST_GY",
|
|
19998
20096
|
onClick: function onClick() {
|
|
@@ -20052,6 +20150,8 @@ var GyReissue = function GyReissue(props) {
|
|
|
20052
20150
|
disabled: disabled,
|
|
20053
20151
|
canUpdateNumber: showChangeBtn,
|
|
20054
20152
|
showChangeBtn: showChangeBtn,
|
|
20153
|
+
showErpGoodsBtn: showErpGoodsBtn,
|
|
20154
|
+
alwaysShowChooseErpGoodsBtn: showErpGoodsBtn,
|
|
20055
20155
|
shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
|
|
20056
20156
|
value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$type34 = typeMap$4[type]) === null || _typeMap$type34 === void 0 ? void 0 : _typeMap$type34.key)],
|
|
20057
20157
|
onChange: function onChange(val) {
|
|
@@ -20068,7 +20168,7 @@ var GyReissue = function GyReissue(props) {
|
|
|
20068
20168
|
})));
|
|
20069
20169
|
};
|
|
20070
20170
|
|
|
20071
|
-
var _excluded$
|
|
20171
|
+
var _excluded$q = ["value", "onChange", "reasonList", "disabled", "type"],
|
|
20072
20172
|
_excluded2$1 = ["billNo", "billType", "billTag", "tradeTagName", "deliveryState", "vipCode", "shopCode"];
|
|
20073
20173
|
var typeMap$5 = {
|
|
20074
20174
|
GY_RETURN_GOODS: {
|
|
@@ -20090,14 +20190,14 @@ var typeMap$5 = {
|
|
|
20090
20190
|
}
|
|
20091
20191
|
};
|
|
20092
20192
|
var GyReturnGoods = function GyReturnGoods(props) {
|
|
20093
|
-
var _typeMap$type10, _typeMap$type28, _typeMap$type29, _value$typeMap$type$s5, _typeMap$type30, _typeMap$type31, _typeMap$type32;
|
|
20193
|
+
var _typeMap$type10, _typeMap$type27, _systemOrder$orders, _typeMap$type28, _typeMap$type29, _value$typeMap$type$s5, _typeMap$type30, _typeMap$type31, _typeMap$type32;
|
|
20094
20194
|
var value = props.value,
|
|
20095
20195
|
onChange = props.onChange,
|
|
20096
20196
|
_props$reasonList = props.reasonList,
|
|
20097
20197
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
20098
20198
|
disabled = props.disabled,
|
|
20099
20199
|
type = props.type,
|
|
20100
|
-
other = _objectWithoutProperties(props, _excluded$
|
|
20200
|
+
other = _objectWithoutProperties(props, _excluded$q);
|
|
20101
20201
|
var valueRef = React.useRef({});
|
|
20102
20202
|
var getOrderFlag = React.useRef(false);
|
|
20103
20203
|
var _useState = React.useState(false),
|
|
@@ -20283,10 +20383,9 @@ var GyReturnGoods = function GyReturnGoods(props) {
|
|
|
20283
20383
|
}))));
|
|
20284
20384
|
};
|
|
20285
20385
|
//系统单选择后展示选择商品按钮,系统单未选择的时候不展示
|
|
20286
|
-
var
|
|
20287
|
-
|
|
20288
|
-
|
|
20289
|
-
}, [value === null || value === void 0 ? void 0 : value[(_typeMap$type28 = typeMap$5[type]) === null || _typeMap$type28 === void 0 ? void 0 : _typeMap$type28.systemOrderNo]]);
|
|
20386
|
+
var systemOrder = value === null || value === void 0 ? void 0 : value[(_typeMap$type27 = typeMap$5[type]) === null || _typeMap$type27 === void 0 ? void 0 : _typeMap$type27.systemOrder];
|
|
20387
|
+
var showErpGoodsBtn = type === 'GY_RETURN_GOODS' && systemOrder && systemOrder.orderNo && !((_systemOrder$orders = systemOrder.orders) === null || _systemOrder$orders === void 0 ? void 0 : _systemOrder$orders.length);
|
|
20388
|
+
var showChangeBtn = !!(value === null || value === void 0 ? void 0 : value[(_typeMap$type28 = typeMap$5[type]) === null || _typeMap$type28 === void 0 ? void 0 : _typeMap$type28.systemOrderNo]);
|
|
20290
20389
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.Row, {
|
|
20291
20390
|
gutter: 8,
|
|
20292
20391
|
wrap: true
|
|
@@ -20348,7 +20447,8 @@ var GyReturnGoods = function GyReturnGoods(props) {
|
|
|
20348
20447
|
},
|
|
20349
20448
|
onModeChange: handleModeChange,
|
|
20350
20449
|
isStrict: isStrict,
|
|
20351
|
-
showErpGoodsBtn:
|
|
20450
|
+
showErpGoodsBtn: showErpGoodsBtn,
|
|
20451
|
+
alwaysShowChooseErpGoodsBtn: showErpGoodsBtn,
|
|
20352
20452
|
tradeGoods: {
|
|
20353
20453
|
originDataSource: getGoodDetails({
|
|
20354
20454
|
mode: isStrict
|
|
@@ -20379,6 +20479,7 @@ exports.ApaasUpload = ApaasUpload;
|
|
|
20379
20479
|
exports.ApaasUploadAsync = index;
|
|
20380
20480
|
exports.ApaasUploadFile = ApaasUploadFile;
|
|
20381
20481
|
exports.ApaasUploadProAsync = index$1;
|
|
20482
|
+
exports.AsyncSelect = AsyncSelect;
|
|
20382
20483
|
exports.BsE3Reissue = bsE3Reissue;
|
|
20383
20484
|
exports.BsExchange = BsExchange;
|
|
20384
20485
|
exports.BsGoods = BsGoods;
|
|
@@ -20426,6 +20527,7 @@ exports.WdtReissue = wdtReissue;
|
|
|
20426
20527
|
exports.WlnGoods = WlnGoods;
|
|
20427
20528
|
exports.columnsBaseInfoMap = columnsBaseInfoMap;
|
|
20428
20529
|
exports.erpColumnsMap = erpColumnsMap;
|
|
20530
|
+
exports.erpFormValidator = erpFormValidator;
|
|
20429
20531
|
exports.erpModalColumnsMap = index$2;
|
|
20430
20532
|
exports.getGyColumns = getColumns$4;
|
|
20431
20533
|
exports.getJstColumns = getColumns$5;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import type {
|
|
2
|
+
import type { ColumnType } from 'antd/es/table';
|
|
3
3
|
type ColumnItemType = {
|
|
4
4
|
dataIndex: string;
|
|
5
5
|
title: string;
|
|
@@ -7,5 +7,5 @@ type ColumnItemType = {
|
|
|
7
7
|
width?: number;
|
|
8
8
|
show?: boolean;
|
|
9
9
|
};
|
|
10
|
-
declare const _default: (type: string) => [
|
|
10
|
+
declare const _default: (type: string) => [ColumnType<ColumnItemType>[], string[], boolean];
|
|
11
11
|
export default _default;
|
|
@@ -11,5 +11,6 @@ type ColumnsMapType = Record<string, ColumnsItemType[]>;
|
|
|
11
11
|
export type GetColumnsBaseInfoMapFnType = (...args: any[]) => ColumnsMapType;
|
|
12
12
|
export declare const getColumnsMap: GetColumnsBaseInfoMapFnType;
|
|
13
13
|
export declare const erpColumnsMap: ColumnsMapType;
|
|
14
|
+
export declare const erpFormValidator: (_rule: any, value: any, type: string) => any;
|
|
14
15
|
declare const _default: ColumnsMapType;
|
|
15
16
|
export default _default;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -57,6 +57,7 @@ export { default as CommonStatus } from './common/CommonStatus';
|
|
|
57
57
|
export { default as CommonSystemOrder } from './common/CommonSystemOrder';
|
|
58
58
|
export { default as CommonMultiStatus } from './common/CommonMultiStatus';
|
|
59
59
|
export { default as MsgStatus } from './common/MsgStatus';
|
|
60
|
+
export { default as AsyncSelect } from './common/AsyncSelect';
|
|
60
61
|
export { default as ParseLogistics } from './common/ParseLogistics';
|
|
61
62
|
export { default as IdentifyAddress } from './common/IdentifyAddress';
|
|
62
63
|
export { default as CalculationInput } from './apaas/CalculationInput';
|
|
@@ -66,5 +67,5 @@ export type { WdtGoods } from './bs/component/model/WdtGoodList';
|
|
|
66
67
|
export { default as GyReissue } from './gy/Reissue';
|
|
67
68
|
export * from './constants/index';
|
|
68
69
|
export { default as GyReturn } from './gy/Return';
|
|
69
|
-
export { default as columnsBaseInfoMap, erpColumnsMap, } from './constants/columnsBaseInfoMap';
|
|
70
|
+
export { default as columnsBaseInfoMap, erpColumnsMap, erpFormValidator, } from './constants/columnsBaseInfoMap';
|
|
70
71
|
export { default as erpModalColumnsMap } from './bs/component/model/Columns';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { ExpressData } from '@kmkf-fe-packages/kmkf-utils';
|
|
2
3
|
interface JstGoodsProps {
|
|
3
4
|
value: any[];
|
|
4
5
|
type: number;
|
|
@@ -8,6 +9,7 @@ interface JstGoodsProps {
|
|
|
8
9
|
showField: string;
|
|
9
10
|
platformType?: string;
|
|
10
11
|
onlyShowFieldSelect: boolean;
|
|
12
|
+
expressDateInstance: InstanceType<typeof ExpressData>;
|
|
11
13
|
}
|
|
12
14
|
declare const jstGoods: (props: Partial<JstGoodsProps>) => React.JSX.Element;
|
|
13
15
|
export default jstGoods;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/basic-components",
|
|
3
|
-
"version": "2.0.54-beta.
|
|
3
|
+
"version": "2.0.54-beta.11",
|
|
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.0.54-beta.
|
|
23
|
+
"@kmkf-fe-packages/kmkf-utils": "2.0.54-beta.11",
|
|
24
24
|
"ahooks": "^3.7.4",
|
|
25
25
|
"bignumber.js": "^9.1.2",
|
|
26
26
|
"kmkf-monitor": "^0.8.9",
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
"publishConfig": {
|
|
66
66
|
"access": "public"
|
|
67
67
|
},
|
|
68
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "8805acec21d5ac66eb49b69af2e322f2d87d6b46"
|
|
69
69
|
}
|