@kmkf-fe-packages/basic-components 2.0.54-beta.5 → 2.0.55
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/README.md +1 -1
- package/dist/index.esm.js +70 -216
- package/dist/index.js +69 -219
- package/dist/src/bs/component/GoodItem/constants/bsE3ReissueGoodsColumns.d.ts +1 -9
- package/dist/src/bs/component/GoodItem/constants/wdtReissueGoodsColumns.d.ts +1 -17
- package/dist/src/bs/component/model/Columns/useGetColumns.d.ts +2 -2
- package/dist/src/constants/columnsBaseInfoMap.d.ts +2 -11
- package/dist/src/constants/index.d.ts +0 -2
- package/dist/src/index.d.ts +1 -1
- package/dist/src/jst/Goods/index.d.ts +0 -2
- package/package.json +3 -3
package/README.md
CHANGED
package/dist/index.esm.js
CHANGED
|
@@ -473,57 +473,6 @@ 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
|
-
}
|
|
527
476
|
function _toPrimitive(input, hint) {
|
|
528
477
|
if (typeof input !== "object" || input === null) return input;
|
|
529
478
|
var prim = input[Symbol.toPrimitive];
|
|
@@ -11502,7 +11451,7 @@ var typeInitValueMap = {
|
|
|
11502
11451
|
}]
|
|
11503
11452
|
};
|
|
11504
11453
|
var jstGoods = function jstGoods(props) {
|
|
11505
|
-
var _value$changeIndex, _value$changeIndex2, _value$changeIndex3, _value$changeIndex4, _value$changeIndex5, _value$changeIndex6, _value$changeIndex7, _value$changeIndex8, _value$changeIndex9
|
|
11454
|
+
var _value$changeIndex, _value$changeIndex2, _value$changeIndex3, _value$changeIndex4, _value$changeIndex5, _value$changeIndex6, _value$changeIndex7, _value$changeIndex8, _value$changeIndex9;
|
|
11506
11455
|
var _props$value = props.value,
|
|
11507
11456
|
value = _props$value === void 0 ? [] : _props$value,
|
|
11508
11457
|
onChange = props.onChange,
|
|
@@ -11520,8 +11469,8 @@ var jstGoods = function jstGoods(props) {
|
|
|
11520
11469
|
setChangeIndex = _useState2[1]; //选中的包裹
|
|
11521
11470
|
var sendOptions = SendDataCenter.getInstance(platformType).getSendData();
|
|
11522
11471
|
var isSelectName = ['wdt', 'bsE3', 'km', 'gy', 'jst'].includes(platformType);
|
|
11523
|
-
var expressDateInstance = ExpressData.getInstance(platformType);
|
|
11524
11472
|
var isSendGoodSavedId = isSelectName && !['jst'].includes(platformType);
|
|
11473
|
+
var logisticsType = type === 1 && platformType === 'gy' ? 'input' : 'select';
|
|
11525
11474
|
useEffect(function () {
|
|
11526
11475
|
//没有值塞个默认值
|
|
11527
11476
|
if (!(value === null || value === void 0 ? void 0 : value.length) && type !== 1) {
|
|
@@ -11604,51 +11553,59 @@ var jstGoods = function jstGoods(props) {
|
|
|
11604
11553
|
return setChangeIndex(index);
|
|
11605
11554
|
}
|
|
11606
11555
|
}, "\u5305\u88F9".concat(index + 1)));
|
|
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, {
|
|
11556
|
+
}))) : 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, _objectSpread2(_objectSpread2({
|
|
11557
|
+
type: logisticsType,
|
|
11608
11558
|
disabled: disabled,
|
|
11609
11559
|
placeholder: "\u7269\u6D41\u516C\u53F8",
|
|
11610
11560
|
onChange: function onChange(val) {
|
|
11611
|
-
|
|
11561
|
+
if (logisticsType === 'input') {
|
|
11562
|
+
changeInputHandle(null, 'logisticsCompany');
|
|
11563
|
+
changeInputHandle(val, 'logisticsCompanyName');
|
|
11564
|
+
} else {
|
|
11565
|
+
changeInputHandle(val, 'logisticsCompany');
|
|
11566
|
+
}
|
|
11612
11567
|
},
|
|
11613
|
-
value:
|
|
11568
|
+
value: (_value$changeIndex = value[changeIndex]) === null || _value$changeIndex === void 0 ? void 0 : _value$changeIndex[logisticsType === 'input' ? 'logisticsCompanyName' : 'logisticsCompany']
|
|
11569
|
+
}, logisticsType === 'input' ? {} : {
|
|
11614
11570
|
showSearch: true,
|
|
11615
11571
|
dropdownMatchSelectWidth: false,
|
|
11616
11572
|
filterOption: function filterOption(input, option) {
|
|
11617
11573
|
return option.label.includes(input);
|
|
11618
|
-
}
|
|
11574
|
+
}
|
|
11575
|
+
}), {}, {
|
|
11619
11576
|
style: {
|
|
11620
11577
|
minWidth: '100px',
|
|
11621
11578
|
maxWidth: '180px'
|
|
11622
11579
|
},
|
|
11623
11580
|
platformType: platformType
|
|
11624
|
-
}) : null, !showField || showField === 'logisticsCode' ? /*#__PURE__*/React.createElement(Input, {
|
|
11581
|
+
})) : null, !showField || showField === 'logisticsCode' ? /*#__PURE__*/React.createElement(Input, {
|
|
11625
11582
|
disabled: disabled,
|
|
11626
11583
|
placeholder: "\u7269\u6D41\u5355\u53F7",
|
|
11627
11584
|
onChange: function onChange(e) {
|
|
11628
11585
|
return changeInputHandle(e.target.value, 'logisticsCode');
|
|
11629
11586
|
},
|
|
11630
|
-
value: (_value$
|
|
11587
|
+
value: (_value$changeIndex2 = value[changeIndex]) === null || _value$changeIndex2 === void 0 ? void 0 : _value$changeIndex2.logisticsCode
|
|
11631
11588
|
}) : null) : null, type === 2 ? /*#__PURE__*/React.createElement(Space, null, ['supplyId', 'all'].includes(showField) && /*#__PURE__*/React.createElement(Input, {
|
|
11632
11589
|
disabled: disabled,
|
|
11633
11590
|
placeholder: "\u8BF7\u8F93\u5165\u4F9B\u9500\u5546\u7F16\u7801",
|
|
11634
11591
|
onChange: function onChange(e) {
|
|
11635
11592
|
return changeInputHandle(e.target.value, 'supplyId');
|
|
11636
11593
|
},
|
|
11637
|
-
value: (_value$
|
|
11594
|
+
value: (_value$changeIndex3 = value[changeIndex]) === null || _value$changeIndex3 === void 0 ? void 0 : _value$changeIndex3.supplyId
|
|
11638
11595
|
}), ['supplyName', 'all'].includes(showField) && /*#__PURE__*/React.createElement(Input, {
|
|
11639
11596
|
disabled: disabled,
|
|
11640
11597
|
placeholder: "\u8BF7\u8F93\u5165\u4F9B\u9500\u5546\u540D\u79F0",
|
|
11641
11598
|
onChange: function onChange(e) {
|
|
11642
11599
|
return changeInputHandle(e.target.value, 'supplyName');
|
|
11643
11600
|
},
|
|
11644
|
-
value: (_value$
|
|
11601
|
+
value: (_value$changeIndex4 = value[changeIndex]) === null || _value$changeIndex4 === void 0 ? void 0 : _value$changeIndex4.supplyName
|
|
11645
11602
|
})) : null, type === 3 ? /*#__PURE__*/React.createElement(Space, null, ['sendId', 'all'].includes(showField) && /*#__PURE__*/React.createElement(Input, {
|
|
11646
11603
|
disabled: disabled,
|
|
11647
11604
|
placeholder: "\u8BF7\u8F93\u5165\u53D1\u8D27\u4ED3\u7F16\u7801",
|
|
11648
11605
|
onChange: function onChange(e) {
|
|
11649
11606
|
return changeInputHandle(e.target.value, 'sendId');
|
|
11650
11607
|
},
|
|
11651
|
-
value: (_value$
|
|
11608
|
+
value: (_value$changeIndex5 = value[changeIndex]) === null || _value$changeIndex5 === void 0 ? void 0 : _value$changeIndex5.sendId
|
|
11652
11609
|
}), ['sendName', 'all'].includes(showField) && (isSelectName ? /*#__PURE__*/React.createElement(Select, {
|
|
11653
11610
|
style: {
|
|
11654
11611
|
minWidth: '100px',
|
|
@@ -11659,7 +11616,7 @@ var jstGoods = function jstGoods(props) {
|
|
|
11659
11616
|
showSearch: true,
|
|
11660
11617
|
options: sendOptions,
|
|
11661
11618
|
filterOption: filterOption,
|
|
11662
|
-
value: ((_value$
|
|
11619
|
+
value: ((_value$changeIndex6 = value[changeIndex]) === null || _value$changeIndex6 === void 0 ? void 0 : _value$changeIndex6.sendSnapshotId) || ((_value$changeIndex7 = value[changeIndex]) === null || _value$changeIndex7 === void 0 ? void 0 : _value$changeIndex7.sendName) || null,
|
|
11663
11620
|
onChange: function onChange(value, option) {
|
|
11664
11621
|
return handleSelected(value, 'sendName', option, onlyShowFieldSelect);
|
|
11665
11622
|
}
|
|
@@ -11669,14 +11626,14 @@ var jstGoods = function jstGoods(props) {
|
|
|
11669
11626
|
onChange: function onChange(e) {
|
|
11670
11627
|
return changeInputHandle(e.target.value, 'sendName');
|
|
11671
11628
|
},
|
|
11672
|
-
value: (_value$
|
|
11629
|
+
value: (_value$changeIndex8 = value[changeIndex]) === null || _value$changeIndex8 === void 0 ? void 0 : _value$changeIndex8.sendName
|
|
11673
11630
|
}))) : null, type === 4 ? /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Input, {
|
|
11674
11631
|
disabled: disabled,
|
|
11675
11632
|
placeholder: "\u8BF7\u8F93\u5165\u51FA\u5E93\u5355\u7F16\u53F7",
|
|
11676
11633
|
onChange: function onChange(e) {
|
|
11677
11634
|
return changeInputHandle(e.target.value, 'deliveryNo');
|
|
11678
11635
|
},
|
|
11679
|
-
value: (_value$
|
|
11636
|
+
value: (_value$changeIndex9 = value[changeIndex]) === null || _value$changeIndex9 === void 0 ? void 0 : _value$changeIndex9.sendName
|
|
11680
11637
|
})) : null) : null);
|
|
11681
11638
|
};
|
|
11682
11639
|
|
|
@@ -12591,9 +12548,7 @@ var useGetColumns = (function (type) {
|
|
|
12591
12548
|
loading = _useState4[0],
|
|
12592
12549
|
setLoading = _useState4[1];
|
|
12593
12550
|
var showColumnsDataIndexList = useMemo(function () {
|
|
12594
|
-
return columns.
|
|
12595
|
-
return Object.hasOwn(item, 'dataIndex');
|
|
12596
|
-
}).map(function (item) {
|
|
12551
|
+
return columns.map(function (item) {
|
|
12597
12552
|
return item.dataIndex;
|
|
12598
12553
|
});
|
|
12599
12554
|
}, [columns]);
|
|
@@ -13258,7 +13213,6 @@ var getTableData$2 = function getTableData(_ref, formData) {
|
|
|
13258
13213
|
var current = _ref.current,
|
|
13259
13214
|
pageSize = _ref.pageSize;
|
|
13260
13215
|
var data = {
|
|
13261
|
-
goodShortName: formData.goodShortName || null,
|
|
13262
13216
|
goodNo: formData.goodNo || null,
|
|
13263
13217
|
goodName: formData.goodName || null,
|
|
13264
13218
|
skuCode: formData.skuCode || null,
|
|
@@ -14171,20 +14125,15 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
14171
14125
|
WDT_REISSUE_GOODS: [{
|
|
14172
14126
|
dataIndex: 'goodId',
|
|
14173
14127
|
title: "\u5546\u54C1ID",
|
|
14174
|
-
width: 120
|
|
14175
|
-
align: 'center',
|
|
14176
|
-
ellipsis: true
|
|
14128
|
+
width: 120
|
|
14177
14129
|
}, {
|
|
14178
14130
|
dataIndex: 'goodNo',
|
|
14179
14131
|
title: "\u5546\u54C1\u7F16\u7801",
|
|
14180
|
-
|
|
14181
|
-
ellipsis: true,
|
|
14182
|
-
width: 180
|
|
14132
|
+
width: 200
|
|
14183
14133
|
}, {
|
|
14184
14134
|
dataIndex: 'goodName',
|
|
14185
14135
|
title: "\u5546\u54C1\u540D\u79F0",
|
|
14186
14136
|
width: 200,
|
|
14187
|
-
align: 'center',
|
|
14188
14137
|
render: function render(text) {
|
|
14189
14138
|
return /*#__PURE__*/React.createElement(CopyTextIcon, {
|
|
14190
14139
|
val: text
|
|
@@ -14193,19 +14142,14 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
14193
14142
|
}, {
|
|
14194
14143
|
dataIndex: 'specId',
|
|
14195
14144
|
title: "SKUID",
|
|
14196
|
-
align: 'center',
|
|
14197
|
-
ellipsis: true,
|
|
14198
14145
|
width: 150
|
|
14199
14146
|
}, {
|
|
14200
14147
|
dataIndex: 'specNo',
|
|
14201
14148
|
title: "\u5546\u54C1SKU\u7F16\u7801",
|
|
14202
|
-
|
|
14203
|
-
ellipsis: true,
|
|
14204
|
-
width: 180
|
|
14149
|
+
width: 200
|
|
14205
14150
|
}, {
|
|
14206
14151
|
dataIndex: 'specName',
|
|
14207
14152
|
title: "\u5546\u54C1SKU\u540D\u79F0",
|
|
14208
|
-
align: 'center',
|
|
14209
14153
|
width: 250,
|
|
14210
14154
|
render: function render(text) {
|
|
14211
14155
|
return /*#__PURE__*/React.createElement(CopyTextIcon, {
|
|
@@ -14318,7 +14262,18 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
14318
14262
|
align: 'center',
|
|
14319
14263
|
ellipsis: true,
|
|
14320
14264
|
width: 100,
|
|
14321
|
-
render:
|
|
14265
|
+
render: function render(val) {
|
|
14266
|
+
var giftTypeMap = {
|
|
14267
|
+
0: '非赠品',
|
|
14268
|
+
1: '自动赠送',
|
|
14269
|
+
2: '手工赠送',
|
|
14270
|
+
3: '回购自动送赠品',
|
|
14271
|
+
4: '前N有礼送赠品',
|
|
14272
|
+
6: '天猫优仓赠品',
|
|
14273
|
+
7: '淘宝CRM会员送赠'
|
|
14274
|
+
};
|
|
14275
|
+
return /*#__PURE__*/React.createElement("span", null, giftTypeMap[val]);
|
|
14276
|
+
}
|
|
14322
14277
|
}],
|
|
14323
14278
|
//旺店通退货商品信息
|
|
14324
14279
|
WDT_RETURN_GOODS: [{
|
|
@@ -14414,7 +14369,18 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
14414
14369
|
align: 'center',
|
|
14415
14370
|
ellipsis: true,
|
|
14416
14371
|
width: 100,
|
|
14417
|
-
render:
|
|
14372
|
+
render: function render(val) {
|
|
14373
|
+
var giftTypeMap = {
|
|
14374
|
+
0: '非赠品',
|
|
14375
|
+
1: '自动赠送',
|
|
14376
|
+
2: '手工赠送',
|
|
14377
|
+
3: '回购自动送赠品',
|
|
14378
|
+
4: '前N有礼送赠品',
|
|
14379
|
+
6: '天猫优仓赠品',
|
|
14380
|
+
7: '淘宝CRM会员送赠'
|
|
14381
|
+
};
|
|
14382
|
+
return /*#__PURE__*/React.createElement("span", null, giftTypeMap[val]);
|
|
14383
|
+
}
|
|
14418
14384
|
}, {
|
|
14419
14385
|
dataIndex: 'type',
|
|
14420
14386
|
title: "".concat(text, "\u5546\u54C1\u7C7B\u578B"),
|
|
@@ -14535,7 +14501,18 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
14535
14501
|
align: 'center',
|
|
14536
14502
|
ellipsis: true,
|
|
14537
14503
|
width: 100,
|
|
14538
|
-
render:
|
|
14504
|
+
render: function render(val) {
|
|
14505
|
+
var giftTypeMap = {
|
|
14506
|
+
0: '非赠品',
|
|
14507
|
+
1: '自动赠送',
|
|
14508
|
+
2: '手工赠送',
|
|
14509
|
+
3: '回购自动送赠品',
|
|
14510
|
+
4: '前N有礼送赠品',
|
|
14511
|
+
6: '天猫优仓赠品',
|
|
14512
|
+
7: '淘宝CRM会员送赠'
|
|
14513
|
+
};
|
|
14514
|
+
return /*#__PURE__*/React.createElement("span", null, giftTypeMap[val]);
|
|
14515
|
+
}
|
|
14539
14516
|
}, {
|
|
14540
14517
|
dataIndex: 'type',
|
|
14541
14518
|
title: "".concat(text, "\u5546\u54C1\u7C7B\u578B"),
|
|
@@ -14719,15 +14696,6 @@ var getYesOrNo$1 = function getYesOrNo(val) {
|
|
|
14719
14696
|
if (isNull(val)) return null;
|
|
14720
14697
|
return val ? '是' : '否';
|
|
14721
14698
|
};
|
|
14722
|
-
function toNum(value) {
|
|
14723
|
-
if (typeof value === 'string') {
|
|
14724
|
-
return value ? +value : void 0;
|
|
14725
|
-
}
|
|
14726
|
-
if (typeof value === 'number') {
|
|
14727
|
-
return value;
|
|
14728
|
-
}
|
|
14729
|
-
return void 0;
|
|
14730
|
-
}
|
|
14731
14699
|
var getColumns$4 = function getColumns(_ref) {
|
|
14732
14700
|
var _ref$text = _ref.text,
|
|
14733
14701
|
disabled = _ref.disabled,
|
|
@@ -14885,19 +14853,6 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
14885
14853
|
dataIndex: 'qty',
|
|
14886
14854
|
title: "\u6570\u91CF",
|
|
14887
14855
|
width: 100,
|
|
14888
|
-
validator: function validator(_rule, value) {
|
|
14889
|
-
var goodsName = '';
|
|
14890
|
-
if (((value === null || value === void 0 ? void 0 : value.gyReissueGoods) || []).some(function (goods) {
|
|
14891
|
-
var qty = toNum(goods === null || goods === void 0 ? void 0 : goods.qty);
|
|
14892
|
-
var res = typeof qty === 'number' ? qty < 1 : true;
|
|
14893
|
-
if (res) {
|
|
14894
|
-
goodsName = (goods === null || goods === void 0 ? void 0 : goods.goodName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodName, "]") : '';
|
|
14895
|
-
}
|
|
14896
|
-
return res;
|
|
14897
|
-
})) {
|
|
14898
|
-
return Promise.reject("".concat(goodsName, "\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
|
|
14899
|
-
}
|
|
14900
|
-
},
|
|
14901
14856
|
render: function render(val, record, index) {
|
|
14902
14857
|
return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
14903
14858
|
style: {
|
|
@@ -15001,19 +14956,6 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
15001
14956
|
dataIndex: 'qty',
|
|
15002
14957
|
title: "\u6570\u91CF",
|
|
15003
14958
|
width: 100,
|
|
15004
|
-
validator: function validator(_rule, value) {
|
|
15005
|
-
var goodsName = '';
|
|
15006
|
-
if (((value === null || value === void 0 ? void 0 : value.gyReturnGoods) || []).some(function (goods) {
|
|
15007
|
-
var qty = toNum(goods === null || goods === void 0 ? void 0 : goods.qty);
|
|
15008
|
-
var res = typeof qty === 'number' ? qty < 1 : true;
|
|
15009
|
-
if (res) {
|
|
15010
|
-
goodsName = (goods === null || goods === void 0 ? void 0 : goods.goodName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodName, "]") : '';
|
|
15011
|
-
}
|
|
15012
|
-
return res;
|
|
15013
|
-
})) {
|
|
15014
|
-
return Promise.reject("".concat(goodsName, "\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
|
|
15015
|
-
}
|
|
15016
|
-
},
|
|
15017
14959
|
render: function render(val, record, index) {
|
|
15018
14960
|
return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
15019
14961
|
style: {
|
|
@@ -15105,15 +15047,6 @@ var fillAttrs = function fillAttrs(item) {
|
|
|
15105
15047
|
if (!item.align) item.align = 'center';
|
|
15106
15048
|
return item;
|
|
15107
15049
|
};
|
|
15108
|
-
function toNum$1(value) {
|
|
15109
|
-
if (typeof value === 'string') {
|
|
15110
|
-
return value ? +value : void 0;
|
|
15111
|
-
}
|
|
15112
|
-
if (typeof value === 'number') {
|
|
15113
|
-
return value;
|
|
15114
|
-
}
|
|
15115
|
-
return void 0;
|
|
15116
|
-
}
|
|
15117
15050
|
var getColumns$5 = function getColumns() {
|
|
15118
15051
|
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
15119
15052
|
_ref$text = _ref.text,
|
|
@@ -15297,19 +15230,6 @@ var getColumns$5 = function getColumns() {
|
|
|
15297
15230
|
ellipsis: true,
|
|
15298
15231
|
align: 'center',
|
|
15299
15232
|
width: 120,
|
|
15300
|
-
validator: function validator(_rule, value) {
|
|
15301
|
-
var goodsName = '';
|
|
15302
|
-
if (((value === null || value === void 0 ? void 0 : value.jstReissueGoods) || []).some(function (goods) {
|
|
15303
|
-
var v = toNum$1(goods === null || goods === void 0 ? void 0 : goods.salePrice);
|
|
15304
|
-
var res = typeof v === 'number' ? v < 0 : true;
|
|
15305
|
-
if (res) {
|
|
15306
|
-
goodsName = (goods === null || goods === void 0 ? void 0 : goods.name) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.name, "]") : '';
|
|
15307
|
-
}
|
|
15308
|
-
return res;
|
|
15309
|
-
})) {
|
|
15310
|
-
return Promise.reject("".concat(goodsName, "\u5355\u4EF7\u4E3A\u5927\u4E8E\u7B49\u4E8E0\u7684\u6570"));
|
|
15311
|
-
}
|
|
15312
|
-
},
|
|
15313
15233
|
render: function render(val, record, index) {
|
|
15314
15234
|
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
15315
15235
|
style: {
|
|
@@ -15329,19 +15249,6 @@ var getColumns$5 = function getColumns() {
|
|
|
15329
15249
|
ellipsis: true,
|
|
15330
15250
|
align: 'center',
|
|
15331
15251
|
width: 100,
|
|
15332
|
-
validator: function validator(_rule, value) {
|
|
15333
|
-
var goodsName = '';
|
|
15334
|
-
if (((value === null || value === void 0 ? void 0 : value.jstReissueGoods) || []).some(function (goods) {
|
|
15335
|
-
var qty = toNum$1(goods === null || goods === void 0 ? void 0 : goods.qty);
|
|
15336
|
-
var res = typeof qty === 'number' ? qty < 1 : true;
|
|
15337
|
-
if (res) {
|
|
15338
|
-
goodsName = (goods === null || goods === void 0 ? void 0 : goods.name) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.name, "]") : '';
|
|
15339
|
-
}
|
|
15340
|
-
return res;
|
|
15341
|
-
})) {
|
|
15342
|
-
return Promise.reject("".concat(goodsName, "\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
|
|
15343
|
-
}
|
|
15344
|
-
},
|
|
15345
15252
|
render: function render(val, record, index) {
|
|
15346
15253
|
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
15347
15254
|
style: {
|
|
@@ -15426,19 +15333,6 @@ var getColumns$5 = function getColumns() {
|
|
|
15426
15333
|
dataIndex: 'salePrice',
|
|
15427
15334
|
title: '单价',
|
|
15428
15335
|
width: 120,
|
|
15429
|
-
validator: function validator(_rule, value) {
|
|
15430
|
-
var goodsName = '';
|
|
15431
|
-
if (((value === null || value === void 0 ? void 0 : value.jstReturnGoods) || []).some(function (goods) {
|
|
15432
|
-
var v = toNum$1(goods === null || goods === void 0 ? void 0 : goods.salePrice);
|
|
15433
|
-
var res = typeof v === 'number' ? v < 0 : true;
|
|
15434
|
-
if (res) {
|
|
15435
|
-
goodsName = (goods === null || goods === void 0 ? void 0 : goods.name) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.name, "]") : '';
|
|
15436
|
-
}
|
|
15437
|
-
return res;
|
|
15438
|
-
})) {
|
|
15439
|
-
return Promise.reject("".concat(goodsName, "\u5355\u4EF7\u4E3A\u5927\u4E8E\u7B49\u4E8E0\u7684\u6570"));
|
|
15440
|
-
}
|
|
15441
|
-
},
|
|
15442
15336
|
render: function render(val, record, index) {
|
|
15443
15337
|
return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
15444
15338
|
style: {
|
|
@@ -15456,19 +15350,6 @@ var getColumns$5 = function getColumns() {
|
|
|
15456
15350
|
dataIndex: 'qty',
|
|
15457
15351
|
title: '数量',
|
|
15458
15352
|
width: 100,
|
|
15459
|
-
validator: function validator(_rule, value) {
|
|
15460
|
-
var goodsName = '';
|
|
15461
|
-
if (((value === null || value === void 0 ? void 0 : value.jstReturnGoods) || []).some(function (goods) {
|
|
15462
|
-
var qty = toNum$1(goods === null || goods === void 0 ? void 0 : goods.qty);
|
|
15463
|
-
var res = typeof qty === 'number' ? qty < 1 : true;
|
|
15464
|
-
if (res) {
|
|
15465
|
-
goodsName = (goods === null || goods === void 0 ? void 0 : goods.name) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.name, "]") : '';
|
|
15466
|
-
}
|
|
15467
|
-
return res;
|
|
15468
|
-
})) {
|
|
15469
|
-
return Promise.reject("".concat(goodsName, "\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
|
|
15470
|
-
}
|
|
15471
|
-
},
|
|
15472
15353
|
render: function render(val, record, index) {
|
|
15473
15354
|
return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
15474
15355
|
style: {
|
|
@@ -15780,30 +15661,6 @@ var getColumnsMap$1 = function getColumnsMap(args) {
|
|
|
15780
15661
|
})['default']
|
|
15781
15662
|
});
|
|
15782
15663
|
};
|
|
15783
|
-
var erpColumnsMap = getColumnsMap$1();
|
|
15784
|
-
var erpFormValidator = function erpFormValidator(_rule, value, type) {
|
|
15785
|
-
var validatorFnList = (erpColumnsMap[type] || erpColumnsMap['default']).map(function (column) {
|
|
15786
|
-
return column.validator;
|
|
15787
|
-
}).filter(Boolean);
|
|
15788
|
-
var res = null;
|
|
15789
|
-
var _iterator = _createForOfIteratorHelper(validatorFnList),
|
|
15790
|
-
_step;
|
|
15791
|
-
try {
|
|
15792
|
-
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
15793
|
-
var validatorFn = _step.value;
|
|
15794
|
-
var validatorResult = validatorFn(_rule, value, type);
|
|
15795
|
-
if (validatorResult) {
|
|
15796
|
-
res = validatorResult;
|
|
15797
|
-
break;
|
|
15798
|
-
}
|
|
15799
|
-
}
|
|
15800
|
-
} catch (err) {
|
|
15801
|
-
_iterator.e(err);
|
|
15802
|
-
} finally {
|
|
15803
|
-
_iterator.f();
|
|
15804
|
-
}
|
|
15805
|
-
return res;
|
|
15806
|
-
};
|
|
15807
15664
|
var getColumnsBaseInfo$1 = function getColumnsBaseInfo() {
|
|
15808
15665
|
var clone_columnsMap = cloneDeep(getColumnsMap$1());
|
|
15809
15666
|
var newColumns = {};
|
|
@@ -15811,8 +15668,7 @@ var getColumnsBaseInfo$1 = function getColumnsBaseInfo() {
|
|
|
15811
15668
|
newColumns[key] = clone_columnsMap[key].map(function (col) {
|
|
15812
15669
|
return {
|
|
15813
15670
|
title: col.title,
|
|
15814
|
-
dataIndex: col.dataIndex
|
|
15815
|
-
disabled: !!col.validator
|
|
15671
|
+
dataIndex: col.dataIndex
|
|
15816
15672
|
};
|
|
15817
15673
|
});
|
|
15818
15674
|
});
|
|
@@ -16194,18 +16050,16 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
16194
16050
|
var isObjectArray = Array.isArray(showHeader) && Object.prototype.toString.call(showHeader[0]) === '[object Object]';
|
|
16195
16051
|
if (isStringArray) {
|
|
16196
16052
|
baseInfoColumns = initBaseInfoColumns.filter(function (col) {
|
|
16197
|
-
return showHeader.includes(col.dataIndex)
|
|
16053
|
+
return showHeader.includes(col.dataIndex);
|
|
16198
16054
|
});
|
|
16199
16055
|
} else if (isObjectArray) {
|
|
16200
|
-
baseInfoColumns = showHeader.
|
|
16056
|
+
baseInfoColumns = showHeader.filter(function (col) {
|
|
16057
|
+
return col.show !== false;
|
|
16058
|
+
}).map(function (col) {
|
|
16201
16059
|
var currentCol = initBaseInfoColumns.find(function (item) {
|
|
16202
16060
|
return item.dataIndex === col.dataIndex;
|
|
16203
16061
|
});
|
|
16204
|
-
|
|
16205
|
-
if (currentCol && (col.show !== false || (currentCol === null || currentCol === void 0 ? void 0 : currentCol.validator))) {
|
|
16206
|
-
return currentCol;
|
|
16207
|
-
}
|
|
16208
|
-
return undefined;
|
|
16062
|
+
return currentCol ? currentCol : undefined;
|
|
16209
16063
|
}).filter(Boolean);
|
|
16210
16064
|
}
|
|
16211
16065
|
var columnList = [{
|
|
@@ -19576,7 +19430,7 @@ var MsgStatus = function MsgStatus(props) {
|
|
|
19576
19430
|
onClick: function onClick() {
|
|
19577
19431
|
return setChangeIndex(index);
|
|
19578
19432
|
}
|
|
19579
|
-
}, msgTypeCh[key]
|
|
19433
|
+
}, msgTypeCh[key], item.ruleName);
|
|
19580
19434
|
}))) : null, type === 1 ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Select, _objectSpread2(_objectSpread2({}, other), {}, {
|
|
19581
19435
|
showSearch: true,
|
|
19582
19436
|
value: (_value$changeIndex = value[changeIndex]) === null || _value$changeIndex === void 0 ? void 0 : _value$changeIndex.status,
|
|
@@ -20413,4 +20267,4 @@ var GyReturnGoods = function GyReturnGoods(props) {
|
|
|
20413
20267
|
})));
|
|
20414
20268
|
};
|
|
20415
20269
|
|
|
20416
|
-
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,
|
|
20270
|
+
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, index$2 as erpModalColumnsMap, getColumns$5 as getJstColumns, getColumns$3 as getWlnColumns };
|
package/dist/index.js
CHANGED
|
@@ -485,57 +485,6 @@ 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
|
-
}
|
|
539
488
|
function _toPrimitive(input, hint) {
|
|
540
489
|
if (typeof input !== "object" || input === null) return input;
|
|
541
490
|
var prim = input[Symbol.toPrimitive];
|
|
@@ -11514,7 +11463,7 @@ var typeInitValueMap = {
|
|
|
11514
11463
|
}]
|
|
11515
11464
|
};
|
|
11516
11465
|
var jstGoods = function jstGoods(props) {
|
|
11517
|
-
var _value$changeIndex, _value$changeIndex2, _value$changeIndex3, _value$changeIndex4, _value$changeIndex5, _value$changeIndex6, _value$changeIndex7, _value$changeIndex8, _value$changeIndex9
|
|
11466
|
+
var _value$changeIndex, _value$changeIndex2, _value$changeIndex3, _value$changeIndex4, _value$changeIndex5, _value$changeIndex6, _value$changeIndex7, _value$changeIndex8, _value$changeIndex9;
|
|
11518
11467
|
var _props$value = props.value,
|
|
11519
11468
|
value = _props$value === void 0 ? [] : _props$value,
|
|
11520
11469
|
onChange = props.onChange,
|
|
@@ -11532,8 +11481,8 @@ var jstGoods = function jstGoods(props) {
|
|
|
11532
11481
|
setChangeIndex = _useState2[1]; //选中的包裹
|
|
11533
11482
|
var sendOptions = kmkfUtils.SendDataCenter.getInstance(platformType).getSendData();
|
|
11534
11483
|
var isSelectName = ['wdt', 'bsE3', 'km', 'gy', 'jst'].includes(platformType);
|
|
11535
|
-
var expressDateInstance = kmkfUtils.ExpressData.getInstance(platformType);
|
|
11536
11484
|
var isSendGoodSavedId = isSelectName && !['jst'].includes(platformType);
|
|
11485
|
+
var logisticsType = type === 1 && platformType === 'gy' ? 'input' : 'select';
|
|
11537
11486
|
React.useEffect(function () {
|
|
11538
11487
|
//没有值塞个默认值
|
|
11539
11488
|
if (!(value === null || value === void 0 ? void 0 : value.length) && type !== 1) {
|
|
@@ -11616,51 +11565,59 @@ var jstGoods = function jstGoods(props) {
|
|
|
11616
11565
|
return setChangeIndex(index);
|
|
11617
11566
|
}
|
|
11618
11567
|
}, "\u5305\u88F9".concat(index + 1)));
|
|
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, {
|
|
11568
|
+
}))) : 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, _objectSpread2(_objectSpread2({
|
|
11569
|
+
type: logisticsType,
|
|
11620
11570
|
disabled: disabled,
|
|
11621
11571
|
placeholder: "\u7269\u6D41\u516C\u53F8",
|
|
11622
11572
|
onChange: function onChange(val) {
|
|
11623
|
-
|
|
11573
|
+
if (logisticsType === 'input') {
|
|
11574
|
+
changeInputHandle(null, 'logisticsCompany');
|
|
11575
|
+
changeInputHandle(val, 'logisticsCompanyName');
|
|
11576
|
+
} else {
|
|
11577
|
+
changeInputHandle(val, 'logisticsCompany');
|
|
11578
|
+
}
|
|
11624
11579
|
},
|
|
11625
|
-
value:
|
|
11580
|
+
value: (_value$changeIndex = value[changeIndex]) === null || _value$changeIndex === void 0 ? void 0 : _value$changeIndex[logisticsType === 'input' ? 'logisticsCompanyName' : 'logisticsCompany']
|
|
11581
|
+
}, logisticsType === 'input' ? {} : {
|
|
11626
11582
|
showSearch: true,
|
|
11627
11583
|
dropdownMatchSelectWidth: false,
|
|
11628
11584
|
filterOption: function filterOption(input, option) {
|
|
11629
11585
|
return option.label.includes(input);
|
|
11630
|
-
}
|
|
11586
|
+
}
|
|
11587
|
+
}), {}, {
|
|
11631
11588
|
style: {
|
|
11632
11589
|
minWidth: '100px',
|
|
11633
11590
|
maxWidth: '180px'
|
|
11634
11591
|
},
|
|
11635
11592
|
platformType: platformType
|
|
11636
|
-
}) : null, !showField || showField === 'logisticsCode' ? /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
11593
|
+
})) : null, !showField || showField === 'logisticsCode' ? /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
11637
11594
|
disabled: disabled,
|
|
11638
11595
|
placeholder: "\u7269\u6D41\u5355\u53F7",
|
|
11639
11596
|
onChange: function onChange(e) {
|
|
11640
11597
|
return changeInputHandle(e.target.value, 'logisticsCode');
|
|
11641
11598
|
},
|
|
11642
|
-
value: (_value$
|
|
11599
|
+
value: (_value$changeIndex2 = value[changeIndex]) === null || _value$changeIndex2 === void 0 ? void 0 : _value$changeIndex2.logisticsCode
|
|
11643
11600
|
}) : null) : null, type === 2 ? /*#__PURE__*/React__default['default'].createElement(antd.Space, null, ['supplyId', 'all'].includes(showField) && /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
11644
11601
|
disabled: disabled,
|
|
11645
11602
|
placeholder: "\u8BF7\u8F93\u5165\u4F9B\u9500\u5546\u7F16\u7801",
|
|
11646
11603
|
onChange: function onChange(e) {
|
|
11647
11604
|
return changeInputHandle(e.target.value, 'supplyId');
|
|
11648
11605
|
},
|
|
11649
|
-
value: (_value$
|
|
11606
|
+
value: (_value$changeIndex3 = value[changeIndex]) === null || _value$changeIndex3 === void 0 ? void 0 : _value$changeIndex3.supplyId
|
|
11650
11607
|
}), ['supplyName', 'all'].includes(showField) && /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
11651
11608
|
disabled: disabled,
|
|
11652
11609
|
placeholder: "\u8BF7\u8F93\u5165\u4F9B\u9500\u5546\u540D\u79F0",
|
|
11653
11610
|
onChange: function onChange(e) {
|
|
11654
11611
|
return changeInputHandle(e.target.value, 'supplyName');
|
|
11655
11612
|
},
|
|
11656
|
-
value: (_value$
|
|
11613
|
+
value: (_value$changeIndex4 = value[changeIndex]) === null || _value$changeIndex4 === void 0 ? void 0 : _value$changeIndex4.supplyName
|
|
11657
11614
|
})) : null, type === 3 ? /*#__PURE__*/React__default['default'].createElement(antd.Space, null, ['sendId', 'all'].includes(showField) && /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
11658
11615
|
disabled: disabled,
|
|
11659
11616
|
placeholder: "\u8BF7\u8F93\u5165\u53D1\u8D27\u4ED3\u7F16\u7801",
|
|
11660
11617
|
onChange: function onChange(e) {
|
|
11661
11618
|
return changeInputHandle(e.target.value, 'sendId');
|
|
11662
11619
|
},
|
|
11663
|
-
value: (_value$
|
|
11620
|
+
value: (_value$changeIndex5 = value[changeIndex]) === null || _value$changeIndex5 === void 0 ? void 0 : _value$changeIndex5.sendId
|
|
11664
11621
|
}), ['sendName', 'all'].includes(showField) && (isSelectName ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
11665
11622
|
style: {
|
|
11666
11623
|
minWidth: '100px',
|
|
@@ -11671,7 +11628,7 @@ var jstGoods = function jstGoods(props) {
|
|
|
11671
11628
|
showSearch: true,
|
|
11672
11629
|
options: sendOptions,
|
|
11673
11630
|
filterOption: filterOption,
|
|
11674
|
-
value: ((_value$
|
|
11631
|
+
value: ((_value$changeIndex6 = value[changeIndex]) === null || _value$changeIndex6 === void 0 ? void 0 : _value$changeIndex6.sendSnapshotId) || ((_value$changeIndex7 = value[changeIndex]) === null || _value$changeIndex7 === void 0 ? void 0 : _value$changeIndex7.sendName) || null,
|
|
11675
11632
|
onChange: function onChange(value, option) {
|
|
11676
11633
|
return handleSelected(value, 'sendName', option, onlyShowFieldSelect);
|
|
11677
11634
|
}
|
|
@@ -11681,14 +11638,14 @@ var jstGoods = function jstGoods(props) {
|
|
|
11681
11638
|
onChange: function onChange(e) {
|
|
11682
11639
|
return changeInputHandle(e.target.value, 'sendName');
|
|
11683
11640
|
},
|
|
11684
|
-
value: (_value$
|
|
11641
|
+
value: (_value$changeIndex8 = value[changeIndex]) === null || _value$changeIndex8 === void 0 ? void 0 : _value$changeIndex8.sendName
|
|
11685
11642
|
}))) : null, type === 4 ? /*#__PURE__*/React__default['default'].createElement(antd.Space, null, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
11686
11643
|
disabled: disabled,
|
|
11687
11644
|
placeholder: "\u8BF7\u8F93\u5165\u51FA\u5E93\u5355\u7F16\u53F7",
|
|
11688
11645
|
onChange: function onChange(e) {
|
|
11689
11646
|
return changeInputHandle(e.target.value, 'deliveryNo');
|
|
11690
11647
|
},
|
|
11691
|
-
value: (_value$
|
|
11648
|
+
value: (_value$changeIndex9 = value[changeIndex]) === null || _value$changeIndex9 === void 0 ? void 0 : _value$changeIndex9.sendName
|
|
11692
11649
|
})) : null) : null);
|
|
11693
11650
|
};
|
|
11694
11651
|
|
|
@@ -12603,9 +12560,7 @@ var useGetColumns = (function (type) {
|
|
|
12603
12560
|
loading = _useState4[0],
|
|
12604
12561
|
setLoading = _useState4[1];
|
|
12605
12562
|
var showColumnsDataIndexList = React.useMemo(function () {
|
|
12606
|
-
return columns.
|
|
12607
|
-
return Object.hasOwn(item, 'dataIndex');
|
|
12608
|
-
}).map(function (item) {
|
|
12563
|
+
return columns.map(function (item) {
|
|
12609
12564
|
return item.dataIndex;
|
|
12610
12565
|
});
|
|
12611
12566
|
}, [columns]);
|
|
@@ -13270,7 +13225,6 @@ var getTableData$2 = function getTableData(_ref, formData) {
|
|
|
13270
13225
|
var current = _ref.current,
|
|
13271
13226
|
pageSize = _ref.pageSize;
|
|
13272
13227
|
var data = {
|
|
13273
|
-
goodShortName: formData.goodShortName || null,
|
|
13274
13228
|
goodNo: formData.goodNo || null,
|
|
13275
13229
|
goodName: formData.goodName || null,
|
|
13276
13230
|
skuCode: formData.skuCode || null,
|
|
@@ -14183,20 +14137,15 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
14183
14137
|
WDT_REISSUE_GOODS: [{
|
|
14184
14138
|
dataIndex: 'goodId',
|
|
14185
14139
|
title: "\u5546\u54C1ID",
|
|
14186
|
-
width: 120
|
|
14187
|
-
align: 'center',
|
|
14188
|
-
ellipsis: true
|
|
14140
|
+
width: 120
|
|
14189
14141
|
}, {
|
|
14190
14142
|
dataIndex: 'goodNo',
|
|
14191
14143
|
title: "\u5546\u54C1\u7F16\u7801",
|
|
14192
|
-
|
|
14193
|
-
ellipsis: true,
|
|
14194
|
-
width: 180
|
|
14144
|
+
width: 200
|
|
14195
14145
|
}, {
|
|
14196
14146
|
dataIndex: 'goodName',
|
|
14197
14147
|
title: "\u5546\u54C1\u540D\u79F0",
|
|
14198
14148
|
width: 200,
|
|
14199
|
-
align: 'center',
|
|
14200
14149
|
render: function render(text) {
|
|
14201
14150
|
return /*#__PURE__*/React__default['default'].createElement(CopyTextIcon, {
|
|
14202
14151
|
val: text
|
|
@@ -14205,19 +14154,14 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
14205
14154
|
}, {
|
|
14206
14155
|
dataIndex: 'specId',
|
|
14207
14156
|
title: "SKUID",
|
|
14208
|
-
align: 'center',
|
|
14209
|
-
ellipsis: true,
|
|
14210
14157
|
width: 150
|
|
14211
14158
|
}, {
|
|
14212
14159
|
dataIndex: 'specNo',
|
|
14213
14160
|
title: "\u5546\u54C1SKU\u7F16\u7801",
|
|
14214
|
-
|
|
14215
|
-
ellipsis: true,
|
|
14216
|
-
width: 180
|
|
14161
|
+
width: 200
|
|
14217
14162
|
}, {
|
|
14218
14163
|
dataIndex: 'specName',
|
|
14219
14164
|
title: "\u5546\u54C1SKU\u540D\u79F0",
|
|
14220
|
-
align: 'center',
|
|
14221
14165
|
width: 250,
|
|
14222
14166
|
render: function render(text) {
|
|
14223
14167
|
return /*#__PURE__*/React__default['default'].createElement(CopyTextIcon, {
|
|
@@ -14330,7 +14274,18 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
14330
14274
|
align: 'center',
|
|
14331
14275
|
ellipsis: true,
|
|
14332
14276
|
width: 100,
|
|
14333
|
-
render:
|
|
14277
|
+
render: function render(val) {
|
|
14278
|
+
var giftTypeMap = {
|
|
14279
|
+
0: '非赠品',
|
|
14280
|
+
1: '自动赠送',
|
|
14281
|
+
2: '手工赠送',
|
|
14282
|
+
3: '回购自动送赠品',
|
|
14283
|
+
4: '前N有礼送赠品',
|
|
14284
|
+
6: '天猫优仓赠品',
|
|
14285
|
+
7: '淘宝CRM会员送赠'
|
|
14286
|
+
};
|
|
14287
|
+
return /*#__PURE__*/React__default['default'].createElement("span", null, giftTypeMap[val]);
|
|
14288
|
+
}
|
|
14334
14289
|
}],
|
|
14335
14290
|
//旺店通退货商品信息
|
|
14336
14291
|
WDT_RETURN_GOODS: [{
|
|
@@ -14426,7 +14381,18 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
14426
14381
|
align: 'center',
|
|
14427
14382
|
ellipsis: true,
|
|
14428
14383
|
width: 100,
|
|
14429
|
-
render:
|
|
14384
|
+
render: function render(val) {
|
|
14385
|
+
var giftTypeMap = {
|
|
14386
|
+
0: '非赠品',
|
|
14387
|
+
1: '自动赠送',
|
|
14388
|
+
2: '手工赠送',
|
|
14389
|
+
3: '回购自动送赠品',
|
|
14390
|
+
4: '前N有礼送赠品',
|
|
14391
|
+
6: '天猫优仓赠品',
|
|
14392
|
+
7: '淘宝CRM会员送赠'
|
|
14393
|
+
};
|
|
14394
|
+
return /*#__PURE__*/React__default['default'].createElement("span", null, giftTypeMap[val]);
|
|
14395
|
+
}
|
|
14430
14396
|
}, {
|
|
14431
14397
|
dataIndex: 'type',
|
|
14432
14398
|
title: "".concat(text, "\u5546\u54C1\u7C7B\u578B"),
|
|
@@ -14547,7 +14513,18 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
14547
14513
|
align: 'center',
|
|
14548
14514
|
ellipsis: true,
|
|
14549
14515
|
width: 100,
|
|
14550
|
-
render:
|
|
14516
|
+
render: function render(val) {
|
|
14517
|
+
var giftTypeMap = {
|
|
14518
|
+
0: '非赠品',
|
|
14519
|
+
1: '自动赠送',
|
|
14520
|
+
2: '手工赠送',
|
|
14521
|
+
3: '回购自动送赠品',
|
|
14522
|
+
4: '前N有礼送赠品',
|
|
14523
|
+
6: '天猫优仓赠品',
|
|
14524
|
+
7: '淘宝CRM会员送赠'
|
|
14525
|
+
};
|
|
14526
|
+
return /*#__PURE__*/React__default['default'].createElement("span", null, giftTypeMap[val]);
|
|
14527
|
+
}
|
|
14551
14528
|
}, {
|
|
14552
14529
|
dataIndex: 'type',
|
|
14553
14530
|
title: "".concat(text, "\u5546\u54C1\u7C7B\u578B"),
|
|
@@ -14731,15 +14708,6 @@ var getYesOrNo$1 = function getYesOrNo(val) {
|
|
|
14731
14708
|
if (kmkfUtils.isNull(val)) return null;
|
|
14732
14709
|
return val ? '是' : '否';
|
|
14733
14710
|
};
|
|
14734
|
-
function toNum(value) {
|
|
14735
|
-
if (typeof value === 'string') {
|
|
14736
|
-
return value ? +value : void 0;
|
|
14737
|
-
}
|
|
14738
|
-
if (typeof value === 'number') {
|
|
14739
|
-
return value;
|
|
14740
|
-
}
|
|
14741
|
-
return void 0;
|
|
14742
|
-
}
|
|
14743
14711
|
var getColumns$4 = function getColumns(_ref) {
|
|
14744
14712
|
var _ref$text = _ref.text,
|
|
14745
14713
|
disabled = _ref.disabled,
|
|
@@ -14897,19 +14865,6 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
14897
14865
|
dataIndex: 'qty',
|
|
14898
14866
|
title: "\u6570\u91CF",
|
|
14899
14867
|
width: 100,
|
|
14900
|
-
validator: function validator(_rule, value) {
|
|
14901
|
-
var goodsName = '';
|
|
14902
|
-
if (((value === null || value === void 0 ? void 0 : value.gyReissueGoods) || []).some(function (goods) {
|
|
14903
|
-
var qty = toNum(goods === null || goods === void 0 ? void 0 : goods.qty);
|
|
14904
|
-
var res = typeof qty === 'number' ? qty < 1 : true;
|
|
14905
|
-
if (res) {
|
|
14906
|
-
goodsName = (goods === null || goods === void 0 ? void 0 : goods.goodName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodName, "]") : '';
|
|
14907
|
-
}
|
|
14908
|
-
return res;
|
|
14909
|
-
})) {
|
|
14910
|
-
return Promise.reject("".concat(goodsName, "\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
|
|
14911
|
-
}
|
|
14912
|
-
},
|
|
14913
14868
|
render: function render(val, record, index) {
|
|
14914
14869
|
return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
14915
14870
|
style: {
|
|
@@ -15013,19 +14968,6 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
15013
14968
|
dataIndex: 'qty',
|
|
15014
14969
|
title: "\u6570\u91CF",
|
|
15015
14970
|
width: 100,
|
|
15016
|
-
validator: function validator(_rule, value) {
|
|
15017
|
-
var goodsName = '';
|
|
15018
|
-
if (((value === null || value === void 0 ? void 0 : value.gyReturnGoods) || []).some(function (goods) {
|
|
15019
|
-
var qty = toNum(goods === null || goods === void 0 ? void 0 : goods.qty);
|
|
15020
|
-
var res = typeof qty === 'number' ? qty < 1 : true;
|
|
15021
|
-
if (res) {
|
|
15022
|
-
goodsName = (goods === null || goods === void 0 ? void 0 : goods.goodName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodName, "]") : '';
|
|
15023
|
-
}
|
|
15024
|
-
return res;
|
|
15025
|
-
})) {
|
|
15026
|
-
return Promise.reject("".concat(goodsName, "\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
|
|
15027
|
-
}
|
|
15028
|
-
},
|
|
15029
14971
|
render: function render(val, record, index) {
|
|
15030
14972
|
return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
15031
14973
|
style: {
|
|
@@ -15117,15 +15059,6 @@ var fillAttrs = function fillAttrs(item) {
|
|
|
15117
15059
|
if (!item.align) item.align = 'center';
|
|
15118
15060
|
return item;
|
|
15119
15061
|
};
|
|
15120
|
-
function toNum$1(value) {
|
|
15121
|
-
if (typeof value === 'string') {
|
|
15122
|
-
return value ? +value : void 0;
|
|
15123
|
-
}
|
|
15124
|
-
if (typeof value === 'number') {
|
|
15125
|
-
return value;
|
|
15126
|
-
}
|
|
15127
|
-
return void 0;
|
|
15128
|
-
}
|
|
15129
15062
|
var getColumns$5 = function getColumns() {
|
|
15130
15063
|
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
15131
15064
|
_ref$text = _ref.text,
|
|
@@ -15309,19 +15242,6 @@ var getColumns$5 = function getColumns() {
|
|
|
15309
15242
|
ellipsis: true,
|
|
15310
15243
|
align: 'center',
|
|
15311
15244
|
width: 120,
|
|
15312
|
-
validator: function validator(_rule, value) {
|
|
15313
|
-
var goodsName = '';
|
|
15314
|
-
if (((value === null || value === void 0 ? void 0 : value.jstReissueGoods) || []).some(function (goods) {
|
|
15315
|
-
var v = toNum$1(goods === null || goods === void 0 ? void 0 : goods.salePrice);
|
|
15316
|
-
var res = typeof v === 'number' ? v < 0 : true;
|
|
15317
|
-
if (res) {
|
|
15318
|
-
goodsName = (goods === null || goods === void 0 ? void 0 : goods.name) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.name, "]") : '';
|
|
15319
|
-
}
|
|
15320
|
-
return res;
|
|
15321
|
-
})) {
|
|
15322
|
-
return Promise.reject("".concat(goodsName, "\u5355\u4EF7\u4E3A\u5927\u4E8E\u7B49\u4E8E0\u7684\u6570"));
|
|
15323
|
-
}
|
|
15324
|
-
},
|
|
15325
15245
|
render: function render(val, record, index) {
|
|
15326
15246
|
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
15327
15247
|
style: {
|
|
@@ -15341,19 +15261,6 @@ var getColumns$5 = function getColumns() {
|
|
|
15341
15261
|
ellipsis: true,
|
|
15342
15262
|
align: 'center',
|
|
15343
15263
|
width: 100,
|
|
15344
|
-
validator: function validator(_rule, value) {
|
|
15345
|
-
var goodsName = '';
|
|
15346
|
-
if (((value === null || value === void 0 ? void 0 : value.jstReissueGoods) || []).some(function (goods) {
|
|
15347
|
-
var qty = toNum$1(goods === null || goods === void 0 ? void 0 : goods.qty);
|
|
15348
|
-
var res = typeof qty === 'number' ? qty < 1 : true;
|
|
15349
|
-
if (res) {
|
|
15350
|
-
goodsName = (goods === null || goods === void 0 ? void 0 : goods.name) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.name, "]") : '';
|
|
15351
|
-
}
|
|
15352
|
-
return res;
|
|
15353
|
-
})) {
|
|
15354
|
-
return Promise.reject("".concat(goodsName, "\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
|
|
15355
|
-
}
|
|
15356
|
-
},
|
|
15357
15264
|
render: function render(val, record, index) {
|
|
15358
15265
|
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
15359
15266
|
style: {
|
|
@@ -15438,19 +15345,6 @@ var getColumns$5 = function getColumns() {
|
|
|
15438
15345
|
dataIndex: 'salePrice',
|
|
15439
15346
|
title: '单价',
|
|
15440
15347
|
width: 120,
|
|
15441
|
-
validator: function validator(_rule, value) {
|
|
15442
|
-
var goodsName = '';
|
|
15443
|
-
if (((value === null || value === void 0 ? void 0 : value.jstReturnGoods) || []).some(function (goods) {
|
|
15444
|
-
var v = toNum$1(goods === null || goods === void 0 ? void 0 : goods.salePrice);
|
|
15445
|
-
var res = typeof v === 'number' ? v < 0 : true;
|
|
15446
|
-
if (res) {
|
|
15447
|
-
goodsName = (goods === null || goods === void 0 ? void 0 : goods.name) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.name, "]") : '';
|
|
15448
|
-
}
|
|
15449
|
-
return res;
|
|
15450
|
-
})) {
|
|
15451
|
-
return Promise.reject("".concat(goodsName, "\u5355\u4EF7\u4E3A\u5927\u4E8E\u7B49\u4E8E0\u7684\u6570"));
|
|
15452
|
-
}
|
|
15453
|
-
},
|
|
15454
15348
|
render: function render(val, record, index) {
|
|
15455
15349
|
return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
15456
15350
|
style: {
|
|
@@ -15468,19 +15362,6 @@ var getColumns$5 = function getColumns() {
|
|
|
15468
15362
|
dataIndex: 'qty',
|
|
15469
15363
|
title: '数量',
|
|
15470
15364
|
width: 100,
|
|
15471
|
-
validator: function validator(_rule, value) {
|
|
15472
|
-
var goodsName = '';
|
|
15473
|
-
if (((value === null || value === void 0 ? void 0 : value.jstReturnGoods) || []).some(function (goods) {
|
|
15474
|
-
var qty = toNum$1(goods === null || goods === void 0 ? void 0 : goods.qty);
|
|
15475
|
-
var res = typeof qty === 'number' ? qty < 1 : true;
|
|
15476
|
-
if (res) {
|
|
15477
|
-
goodsName = (goods === null || goods === void 0 ? void 0 : goods.name) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.name, "]") : '';
|
|
15478
|
-
}
|
|
15479
|
-
return res;
|
|
15480
|
-
})) {
|
|
15481
|
-
return Promise.reject("".concat(goodsName, "\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
|
|
15482
|
-
}
|
|
15483
|
-
},
|
|
15484
15365
|
render: function render(val, record, index) {
|
|
15485
15366
|
return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
15486
15367
|
style: {
|
|
@@ -15792,30 +15673,6 @@ var getColumnsMap$1 = function getColumnsMap(args) {
|
|
|
15792
15673
|
})['default']
|
|
15793
15674
|
});
|
|
15794
15675
|
};
|
|
15795
|
-
var erpColumnsMap = getColumnsMap$1();
|
|
15796
|
-
var erpFormValidator = function erpFormValidator(_rule, value, type) {
|
|
15797
|
-
var validatorFnList = (erpColumnsMap[type] || erpColumnsMap['default']).map(function (column) {
|
|
15798
|
-
return column.validator;
|
|
15799
|
-
}).filter(Boolean);
|
|
15800
|
-
var res = null;
|
|
15801
|
-
var _iterator = _createForOfIteratorHelper(validatorFnList),
|
|
15802
|
-
_step;
|
|
15803
|
-
try {
|
|
15804
|
-
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
15805
|
-
var validatorFn = _step.value;
|
|
15806
|
-
var validatorResult = validatorFn(_rule, value, type);
|
|
15807
|
-
if (validatorResult) {
|
|
15808
|
-
res = validatorResult;
|
|
15809
|
-
break;
|
|
15810
|
-
}
|
|
15811
|
-
}
|
|
15812
|
-
} catch (err) {
|
|
15813
|
-
_iterator.e(err);
|
|
15814
|
-
} finally {
|
|
15815
|
-
_iterator.f();
|
|
15816
|
-
}
|
|
15817
|
-
return res;
|
|
15818
|
-
};
|
|
15819
15676
|
var getColumnsBaseInfo$1 = function getColumnsBaseInfo() {
|
|
15820
15677
|
var clone_columnsMap = lodash.cloneDeep(getColumnsMap$1());
|
|
15821
15678
|
var newColumns = {};
|
|
@@ -15823,8 +15680,7 @@ var getColumnsBaseInfo$1 = function getColumnsBaseInfo() {
|
|
|
15823
15680
|
newColumns[key] = clone_columnsMap[key].map(function (col) {
|
|
15824
15681
|
return {
|
|
15825
15682
|
title: col.title,
|
|
15826
|
-
dataIndex: col.dataIndex
|
|
15827
|
-
disabled: !!col.validator
|
|
15683
|
+
dataIndex: col.dataIndex
|
|
15828
15684
|
};
|
|
15829
15685
|
});
|
|
15830
15686
|
});
|
|
@@ -16206,18 +16062,16 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
16206
16062
|
var isObjectArray = Array.isArray(showHeader) && Object.prototype.toString.call(showHeader[0]) === '[object Object]';
|
|
16207
16063
|
if (isStringArray) {
|
|
16208
16064
|
baseInfoColumns = initBaseInfoColumns.filter(function (col) {
|
|
16209
|
-
return showHeader.includes(col.dataIndex)
|
|
16065
|
+
return showHeader.includes(col.dataIndex);
|
|
16210
16066
|
});
|
|
16211
16067
|
} else if (isObjectArray) {
|
|
16212
|
-
baseInfoColumns = showHeader.
|
|
16068
|
+
baseInfoColumns = showHeader.filter(function (col) {
|
|
16069
|
+
return col.show !== false;
|
|
16070
|
+
}).map(function (col) {
|
|
16213
16071
|
var currentCol = initBaseInfoColumns.find(function (item) {
|
|
16214
16072
|
return item.dataIndex === col.dataIndex;
|
|
16215
16073
|
});
|
|
16216
|
-
|
|
16217
|
-
if (currentCol && (col.show !== false || (currentCol === null || currentCol === void 0 ? void 0 : currentCol.validator))) {
|
|
16218
|
-
return currentCol;
|
|
16219
|
-
}
|
|
16220
|
-
return undefined;
|
|
16074
|
+
return currentCol ? currentCol : undefined;
|
|
16221
16075
|
}).filter(Boolean);
|
|
16222
16076
|
}
|
|
16223
16077
|
var columnList = [{
|
|
@@ -19588,7 +19442,7 @@ var MsgStatus = function MsgStatus(props) {
|
|
|
19588
19442
|
onClick: function onClick() {
|
|
19589
19443
|
return setChangeIndex(index);
|
|
19590
19444
|
}
|
|
19591
|
-
}, kmkfUtils.msgTypeCh[key]
|
|
19445
|
+
}, kmkfUtils.msgTypeCh[key], item.ruleName);
|
|
19592
19446
|
}))) : null, type === 1 ? /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.Space, null, /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2(_objectSpread2({}, other), {}, {
|
|
19593
19447
|
showSearch: true,
|
|
19594
19448
|
value: (_value$changeIndex = value[changeIndex]) === null || _value$changeIndex === void 0 ? void 0 : _value$changeIndex.status,
|
|
@@ -20492,10 +20346,6 @@ exports.WdtGoodList = WdtGoodList;
|
|
|
20492
20346
|
exports.WdtReissue = wdtReissue;
|
|
20493
20347
|
exports.WlnGoods = WlnGoods;
|
|
20494
20348
|
exports.columnsBaseInfoMap = columnsBaseInfoMap;
|
|
20495
|
-
exports.erpColumnsMap = erpColumnsMap;
|
|
20496
|
-
exports.erpFormValidator = erpFormValidator;
|
|
20497
20349
|
exports.erpModalColumnsMap = index$2;
|
|
20498
|
-
exports.getGyColumns = getColumns$4;
|
|
20499
20350
|
exports.getJstColumns = getColumns$5;
|
|
20500
|
-
exports.getWdtColumns = getColumns$2;
|
|
20501
20351
|
exports.getWlnColumns = getColumns$3;
|
|
@@ -3,13 +3,5 @@ type P = {
|
|
|
3
3
|
updateHandle: (v: any, index: number, key: string) => void;
|
|
4
4
|
operate?: boolean;
|
|
5
5
|
};
|
|
6
|
-
export declare const getBsE3ReissueGoodColumns: ({ disabled, updateHandle, operate, }: P) =>
|
|
7
|
-
dataIndex: string;
|
|
8
|
-
title: string;
|
|
9
|
-
width?: number | undefined;
|
|
10
|
-
align: string;
|
|
11
|
-
ellipsis: boolean;
|
|
12
|
-
render?: ((val: any, record: any, index: number) => any) | undefined;
|
|
13
|
-
validator?: ((rule: any, value: any, callback: any) => any) | undefined;
|
|
14
|
-
}[];
|
|
6
|
+
export declare const getBsE3ReissueGoodColumns: ({ disabled, updateHandle, operate, }: P) => any[];
|
|
15
7
|
export {};
|
|
@@ -5,21 +5,5 @@ type P = {
|
|
|
5
5
|
updateHandle: (v: any, index: number, key: string) => void;
|
|
6
6
|
operate?: boolean;
|
|
7
7
|
};
|
|
8
|
-
export declare const getWdtReissueGoodColumns: ({ disabled, updateHandle, operate, }: P) =>
|
|
9
|
-
dataIndex: string;
|
|
10
|
-
title: string;
|
|
11
|
-
width?: number | undefined;
|
|
12
|
-
align: string;
|
|
13
|
-
ellipsis: boolean;
|
|
14
|
-
render?: ((val: any, record: any, index: number) => any) | undefined;
|
|
15
|
-
validator?: ((rule: any, value: any, callback: any) => any) | undefined;
|
|
16
|
-
} | {
|
|
17
|
-
render: ((val: number) => React.JSX.Element) | ((val: any, record: any, index: number) => React.JSX.Element);
|
|
18
|
-
dataIndex: string;
|
|
19
|
-
title: string;
|
|
20
|
-
width?: number | undefined;
|
|
21
|
-
align: string;
|
|
22
|
-
ellipsis: boolean;
|
|
23
|
-
validator?: ((rule: any, value: any, callback: any) => any) | undefined;
|
|
24
|
-
})[];
|
|
8
|
+
export declare const getWdtReissueGoodColumns: ({ disabled, updateHandle, operate, }: P) => any[];
|
|
25
9
|
export {};
|
|
@@ -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;
|
|
@@ -1,16 +1,7 @@
|
|
|
1
|
-
type
|
|
2
|
-
|
|
3
|
-
title: string;
|
|
4
|
-
width?: number;
|
|
5
|
-
align?: 'left' | 'center' | 'right';
|
|
6
|
-
ellipsis?: boolean;
|
|
7
|
-
render?: (val: any, record: any, index: number) => any;
|
|
8
|
-
validator?: (rule: any, value: any, callback: any) => any;
|
|
1
|
+
type ColumnsMapType = {
|
|
2
|
+
[key: string]: any[];
|
|
9
3
|
};
|
|
10
|
-
type ColumnsMapType = Record<string, ColumnsItemType[]>;
|
|
11
4
|
export type GetColumnsBaseInfoMapFnType = (...args: any[]) => ColumnsMapType;
|
|
12
5
|
export declare const getColumnsMap: GetColumnsBaseInfoMapFnType;
|
|
13
|
-
export declare const erpColumnsMap: ColumnsMapType;
|
|
14
|
-
export declare const erpFormValidator: (_rule: any, value: any, type: string) => any;
|
|
15
6
|
declare const _default: ColumnsMapType;
|
|
16
7
|
export default _default;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -66,5 +66,5 @@ export type { WdtGoods } from './bs/component/model/WdtGoodList';
|
|
|
66
66
|
export { default as GyReissue } from './gy/Reissue';
|
|
67
67
|
export * from './constants/index';
|
|
68
68
|
export { default as GyReturn } from './gy/Return';
|
|
69
|
-
export { default as columnsBaseInfoMap
|
|
69
|
+
export { default as columnsBaseInfoMap } from './constants/columnsBaseInfoMap';
|
|
70
70
|
export { default as erpModalColumnsMap } from './bs/component/model/Columns';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { ExpressData } from '@kmkf-fe-packages/kmkf-utils';
|
|
3
2
|
interface JstGoodsProps {
|
|
4
3
|
value: any[];
|
|
5
4
|
type: number;
|
|
@@ -9,7 +8,6 @@ interface JstGoodsProps {
|
|
|
9
8
|
showField: string;
|
|
10
9
|
platformType?: string;
|
|
11
10
|
onlyShowFieldSelect: boolean;
|
|
12
|
-
expressDateInstance: InstanceType<typeof ExpressData>;
|
|
13
11
|
}
|
|
14
12
|
declare const jstGoods: (props: Partial<JstGoodsProps>) => React.JSX.Element;
|
|
15
13
|
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.
|
|
3
|
+
"version": "2.0.55",
|
|
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.
|
|
23
|
+
"@kmkf-fe-packages/kmkf-utils": "2.0.55",
|
|
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": "17280f003e2ecbdc5dd3316b1196c6b10d78c0f4"
|
|
69
69
|
}
|