@kmkf-fe-packages/basic-components 2.0.54-beta.4 → 2.0.54
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 +47 -199
- package/dist/index.js +46 -202
- 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/constants/columnsBaseInfoMap.d.ts +2 -11
- package/dist/src/constants/index.d.ts +0 -2
- package/dist/src/index.d.ts +1 -1
- 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];
|
|
@@ -13266,7 +13215,6 @@ var getTableData$2 = function getTableData(_ref, formData) {
|
|
|
13266
13215
|
var current = _ref.current,
|
|
13267
13216
|
pageSize = _ref.pageSize;
|
|
13268
13217
|
var data = {
|
|
13269
|
-
goodShortName: formData.goodShortName || null,
|
|
13270
13218
|
goodNo: formData.goodNo || null,
|
|
13271
13219
|
goodName: formData.goodName || null,
|
|
13272
13220
|
skuCode: formData.skuCode || null,
|
|
@@ -14179,20 +14127,15 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
14179
14127
|
WDT_REISSUE_GOODS: [{
|
|
14180
14128
|
dataIndex: 'goodId',
|
|
14181
14129
|
title: "\u5546\u54C1ID",
|
|
14182
|
-
width: 120
|
|
14183
|
-
align: 'center',
|
|
14184
|
-
ellipsis: true
|
|
14130
|
+
width: 120
|
|
14185
14131
|
}, {
|
|
14186
14132
|
dataIndex: 'goodNo',
|
|
14187
14133
|
title: "\u5546\u54C1\u7F16\u7801",
|
|
14188
|
-
|
|
14189
|
-
ellipsis: true,
|
|
14190
|
-
width: 180
|
|
14134
|
+
width: 200
|
|
14191
14135
|
}, {
|
|
14192
14136
|
dataIndex: 'goodName',
|
|
14193
14137
|
title: "\u5546\u54C1\u540D\u79F0",
|
|
14194
14138
|
width: 200,
|
|
14195
|
-
align: 'center',
|
|
14196
14139
|
render: function render(text) {
|
|
14197
14140
|
return /*#__PURE__*/React.createElement(CopyTextIcon, {
|
|
14198
14141
|
val: text
|
|
@@ -14201,19 +14144,14 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
14201
14144
|
}, {
|
|
14202
14145
|
dataIndex: 'specId',
|
|
14203
14146
|
title: "SKUID",
|
|
14204
|
-
align: 'center',
|
|
14205
|
-
ellipsis: true,
|
|
14206
14147
|
width: 150
|
|
14207
14148
|
}, {
|
|
14208
14149
|
dataIndex: 'specNo',
|
|
14209
14150
|
title: "\u5546\u54C1SKU\u7F16\u7801",
|
|
14210
|
-
|
|
14211
|
-
ellipsis: true,
|
|
14212
|
-
width: 180
|
|
14151
|
+
width: 200
|
|
14213
14152
|
}, {
|
|
14214
14153
|
dataIndex: 'specName',
|
|
14215
14154
|
title: "\u5546\u54C1SKU\u540D\u79F0",
|
|
14216
|
-
align: 'center',
|
|
14217
14155
|
width: 250,
|
|
14218
14156
|
render: function render(text) {
|
|
14219
14157
|
return /*#__PURE__*/React.createElement(CopyTextIcon, {
|
|
@@ -14326,7 +14264,18 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
14326
14264
|
align: 'center',
|
|
14327
14265
|
ellipsis: true,
|
|
14328
14266
|
width: 100,
|
|
14329
|
-
render:
|
|
14267
|
+
render: function render(val) {
|
|
14268
|
+
var giftTypeMap = {
|
|
14269
|
+
0: '非赠品',
|
|
14270
|
+
1: '自动赠送',
|
|
14271
|
+
2: '手工赠送',
|
|
14272
|
+
3: '回购自动送赠品',
|
|
14273
|
+
4: '前N有礼送赠品',
|
|
14274
|
+
6: '天猫优仓赠品',
|
|
14275
|
+
7: '淘宝CRM会员送赠'
|
|
14276
|
+
};
|
|
14277
|
+
return /*#__PURE__*/React.createElement("span", null, giftTypeMap[val]);
|
|
14278
|
+
}
|
|
14330
14279
|
}],
|
|
14331
14280
|
//旺店通退货商品信息
|
|
14332
14281
|
WDT_RETURN_GOODS: [{
|
|
@@ -14422,7 +14371,18 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
14422
14371
|
align: 'center',
|
|
14423
14372
|
ellipsis: true,
|
|
14424
14373
|
width: 100,
|
|
14425
|
-
render:
|
|
14374
|
+
render: function render(val) {
|
|
14375
|
+
var giftTypeMap = {
|
|
14376
|
+
0: '非赠品',
|
|
14377
|
+
1: '自动赠送',
|
|
14378
|
+
2: '手工赠送',
|
|
14379
|
+
3: '回购自动送赠品',
|
|
14380
|
+
4: '前N有礼送赠品',
|
|
14381
|
+
6: '天猫优仓赠品',
|
|
14382
|
+
7: '淘宝CRM会员送赠'
|
|
14383
|
+
};
|
|
14384
|
+
return /*#__PURE__*/React.createElement("span", null, giftTypeMap[val]);
|
|
14385
|
+
}
|
|
14426
14386
|
}, {
|
|
14427
14387
|
dataIndex: 'type',
|
|
14428
14388
|
title: "".concat(text, "\u5546\u54C1\u7C7B\u578B"),
|
|
@@ -14543,7 +14503,18 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
14543
14503
|
align: 'center',
|
|
14544
14504
|
ellipsis: true,
|
|
14545
14505
|
width: 100,
|
|
14546
|
-
render:
|
|
14506
|
+
render: function render(val) {
|
|
14507
|
+
var giftTypeMap = {
|
|
14508
|
+
0: '非赠品',
|
|
14509
|
+
1: '自动赠送',
|
|
14510
|
+
2: '手工赠送',
|
|
14511
|
+
3: '回购自动送赠品',
|
|
14512
|
+
4: '前N有礼送赠品',
|
|
14513
|
+
6: '天猫优仓赠品',
|
|
14514
|
+
7: '淘宝CRM会员送赠'
|
|
14515
|
+
};
|
|
14516
|
+
return /*#__PURE__*/React.createElement("span", null, giftTypeMap[val]);
|
|
14517
|
+
}
|
|
14547
14518
|
}, {
|
|
14548
14519
|
dataIndex: 'type',
|
|
14549
14520
|
title: "".concat(text, "\u5546\u54C1\u7C7B\u578B"),
|
|
@@ -14727,15 +14698,6 @@ var getYesOrNo$1 = function getYesOrNo(val) {
|
|
|
14727
14698
|
if (isNull(val)) return null;
|
|
14728
14699
|
return val ? '是' : '否';
|
|
14729
14700
|
};
|
|
14730
|
-
function toNum(value) {
|
|
14731
|
-
if (typeof value === 'string') {
|
|
14732
|
-
return value ? +value : void 0;
|
|
14733
|
-
}
|
|
14734
|
-
if (typeof value === 'number') {
|
|
14735
|
-
return value;
|
|
14736
|
-
}
|
|
14737
|
-
return void 0;
|
|
14738
|
-
}
|
|
14739
14701
|
var getColumns$4 = function getColumns(_ref) {
|
|
14740
14702
|
var _ref$text = _ref.text,
|
|
14741
14703
|
disabled = _ref.disabled,
|
|
@@ -14893,19 +14855,6 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
14893
14855
|
dataIndex: 'qty',
|
|
14894
14856
|
title: "\u6570\u91CF",
|
|
14895
14857
|
width: 100,
|
|
14896
|
-
validator: function validator(_rule, value) {
|
|
14897
|
-
var goodsName = '';
|
|
14898
|
-
if (((value === null || value === void 0 ? void 0 : value.gyReissueGoods) || []).some(function (goods) {
|
|
14899
|
-
var qty = toNum(goods === null || goods === void 0 ? void 0 : goods.qty);
|
|
14900
|
-
var res = typeof qty === 'number' ? qty < 1 : true;
|
|
14901
|
-
if (res) {
|
|
14902
|
-
goodsName = (goods === null || goods === void 0 ? void 0 : goods.goodName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodName, "]") : '';
|
|
14903
|
-
}
|
|
14904
|
-
return res;
|
|
14905
|
-
})) {
|
|
14906
|
-
return Promise.reject("".concat(goodsName, "\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
|
|
14907
|
-
}
|
|
14908
|
-
},
|
|
14909
14858
|
render: function render(val, record, index) {
|
|
14910
14859
|
return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
14911
14860
|
style: {
|
|
@@ -15009,19 +14958,6 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
15009
14958
|
dataIndex: 'qty',
|
|
15010
14959
|
title: "\u6570\u91CF",
|
|
15011
14960
|
width: 100,
|
|
15012
|
-
validator: function validator(_rule, value) {
|
|
15013
|
-
var goodsName = '';
|
|
15014
|
-
if (((value === null || value === void 0 ? void 0 : value.gyReturnGoods) || []).some(function (goods) {
|
|
15015
|
-
var qty = toNum(goods === null || goods === void 0 ? void 0 : goods.qty);
|
|
15016
|
-
var res = typeof qty === 'number' ? qty < 1 : true;
|
|
15017
|
-
if (res) {
|
|
15018
|
-
goodsName = (goods === null || goods === void 0 ? void 0 : goods.goodName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodName, "]") : '';
|
|
15019
|
-
}
|
|
15020
|
-
return res;
|
|
15021
|
-
})) {
|
|
15022
|
-
return Promise.reject("".concat(goodsName, "\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
|
|
15023
|
-
}
|
|
15024
|
-
},
|
|
15025
14961
|
render: function render(val, record, index) {
|
|
15026
14962
|
return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
15027
14963
|
style: {
|
|
@@ -15113,15 +15049,6 @@ var fillAttrs = function fillAttrs(item) {
|
|
|
15113
15049
|
if (!item.align) item.align = 'center';
|
|
15114
15050
|
return item;
|
|
15115
15051
|
};
|
|
15116
|
-
function toNum$1(value) {
|
|
15117
|
-
if (typeof value === 'string') {
|
|
15118
|
-
return value ? +value : void 0;
|
|
15119
|
-
}
|
|
15120
|
-
if (typeof value === 'number') {
|
|
15121
|
-
return value;
|
|
15122
|
-
}
|
|
15123
|
-
return void 0;
|
|
15124
|
-
}
|
|
15125
15052
|
var getColumns$5 = function getColumns() {
|
|
15126
15053
|
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
15127
15054
|
_ref$text = _ref.text,
|
|
@@ -15305,19 +15232,6 @@ var getColumns$5 = function getColumns() {
|
|
|
15305
15232
|
ellipsis: true,
|
|
15306
15233
|
align: 'center',
|
|
15307
15234
|
width: 120,
|
|
15308
|
-
validator: function validator(_rule, value) {
|
|
15309
|
-
var goodsName = '';
|
|
15310
|
-
if (((value === null || value === void 0 ? void 0 : value.jstReissueGoods) || []).some(function (goods) {
|
|
15311
|
-
var v = toNum$1(goods === null || goods === void 0 ? void 0 : goods.salePrice);
|
|
15312
|
-
var res = typeof v === 'number' ? v < 0 : true;
|
|
15313
|
-
if (res) {
|
|
15314
|
-
goodsName = (goods === null || goods === void 0 ? void 0 : goods.name) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.name, "]") : '';
|
|
15315
|
-
}
|
|
15316
|
-
return res;
|
|
15317
|
-
})) {
|
|
15318
|
-
return Promise.reject("".concat(goodsName, "\u5355\u4EF7\u4E3A\u5927\u4E8E\u7B49\u4E8E0\u7684\u6570"));
|
|
15319
|
-
}
|
|
15320
|
-
},
|
|
15321
15235
|
render: function render(val, record, index) {
|
|
15322
15236
|
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
15323
15237
|
style: {
|
|
@@ -15337,19 +15251,6 @@ var getColumns$5 = function getColumns() {
|
|
|
15337
15251
|
ellipsis: true,
|
|
15338
15252
|
align: 'center',
|
|
15339
15253
|
width: 100,
|
|
15340
|
-
validator: function validator(_rule, value) {
|
|
15341
|
-
var goodsName = '';
|
|
15342
|
-
if (((value === null || value === void 0 ? void 0 : value.jstReissueGoods) || []).some(function (goods) {
|
|
15343
|
-
var qty = toNum$1(goods === null || goods === void 0 ? void 0 : goods.qty);
|
|
15344
|
-
var res = typeof qty === 'number' ? qty < 1 : true;
|
|
15345
|
-
if (res) {
|
|
15346
|
-
goodsName = (goods === null || goods === void 0 ? void 0 : goods.name) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.name, "]") : '';
|
|
15347
|
-
}
|
|
15348
|
-
return res;
|
|
15349
|
-
})) {
|
|
15350
|
-
return Promise.reject("".concat(goodsName, "\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
|
|
15351
|
-
}
|
|
15352
|
-
},
|
|
15353
15254
|
render: function render(val, record, index) {
|
|
15354
15255
|
return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
15355
15256
|
style: {
|
|
@@ -15434,19 +15335,6 @@ var getColumns$5 = function getColumns() {
|
|
|
15434
15335
|
dataIndex: 'salePrice',
|
|
15435
15336
|
title: '单价',
|
|
15436
15337
|
width: 120,
|
|
15437
|
-
validator: function validator(_rule, value) {
|
|
15438
|
-
var goodsName = '';
|
|
15439
|
-
if (((value === null || value === void 0 ? void 0 : value.jstReturnGoods) || []).some(function (goods) {
|
|
15440
|
-
var v = toNum$1(goods === null || goods === void 0 ? void 0 : goods.salePrice);
|
|
15441
|
-
var res = typeof v === 'number' ? v < 0 : true;
|
|
15442
|
-
if (res) {
|
|
15443
|
-
goodsName = (goods === null || goods === void 0 ? void 0 : goods.name) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.name, "]") : '';
|
|
15444
|
-
}
|
|
15445
|
-
return res;
|
|
15446
|
-
})) {
|
|
15447
|
-
return Promise.reject("".concat(goodsName, "\u5355\u4EF7\u4E3A\u5927\u4E8E\u7B49\u4E8E0\u7684\u6570"));
|
|
15448
|
-
}
|
|
15449
|
-
},
|
|
15450
15338
|
render: function render(val, record, index) {
|
|
15451
15339
|
return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
15452
15340
|
style: {
|
|
@@ -15464,19 +15352,6 @@ var getColumns$5 = function getColumns() {
|
|
|
15464
15352
|
dataIndex: 'qty',
|
|
15465
15353
|
title: '数量',
|
|
15466
15354
|
width: 100,
|
|
15467
|
-
validator: function validator(_rule, value) {
|
|
15468
|
-
var goodsName = '';
|
|
15469
|
-
if (((value === null || value === void 0 ? void 0 : value.jstReturnGoods) || []).some(function (goods) {
|
|
15470
|
-
var qty = toNum$1(goods === null || goods === void 0 ? void 0 : goods.qty);
|
|
15471
|
-
var res = typeof qty === 'number' ? qty < 1 : true;
|
|
15472
|
-
if (res) {
|
|
15473
|
-
goodsName = (goods === null || goods === void 0 ? void 0 : goods.name) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.name, "]") : '';
|
|
15474
|
-
}
|
|
15475
|
-
return res;
|
|
15476
|
-
})) {
|
|
15477
|
-
return Promise.reject("".concat(goodsName, "\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
|
|
15478
|
-
}
|
|
15479
|
-
},
|
|
15480
15355
|
render: function render(val, record, index) {
|
|
15481
15356
|
return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
|
|
15482
15357
|
style: {
|
|
@@ -15788,30 +15663,6 @@ var getColumnsMap$1 = function getColumnsMap(args) {
|
|
|
15788
15663
|
})['default']
|
|
15789
15664
|
});
|
|
15790
15665
|
};
|
|
15791
|
-
var erpColumnsMap = getColumnsMap$1();
|
|
15792
|
-
var erpFormValidator = function erpFormValidator(_rule, value, type) {
|
|
15793
|
-
var validatorFnList = (erpColumnsMap[type] || erpColumnsMap['default']).map(function (column) {
|
|
15794
|
-
return column.validator;
|
|
15795
|
-
}).filter(Boolean);
|
|
15796
|
-
var res = null;
|
|
15797
|
-
var _iterator = _createForOfIteratorHelper(validatorFnList),
|
|
15798
|
-
_step;
|
|
15799
|
-
try {
|
|
15800
|
-
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
15801
|
-
var validatorFn = _step.value;
|
|
15802
|
-
var validatorResult = validatorFn(_rule, value, type);
|
|
15803
|
-
if (validatorResult) {
|
|
15804
|
-
res = validatorResult;
|
|
15805
|
-
break;
|
|
15806
|
-
}
|
|
15807
|
-
}
|
|
15808
|
-
} catch (err) {
|
|
15809
|
-
_iterator.e(err);
|
|
15810
|
-
} finally {
|
|
15811
|
-
_iterator.f();
|
|
15812
|
-
}
|
|
15813
|
-
return res;
|
|
15814
|
-
};
|
|
15815
15666
|
var getColumnsBaseInfo$1 = function getColumnsBaseInfo() {
|
|
15816
15667
|
var clone_columnsMap = cloneDeep(getColumnsMap$1());
|
|
15817
15668
|
var newColumns = {};
|
|
@@ -15819,8 +15670,7 @@ var getColumnsBaseInfo$1 = function getColumnsBaseInfo() {
|
|
|
15819
15670
|
newColumns[key] = clone_columnsMap[key].map(function (col) {
|
|
15820
15671
|
return {
|
|
15821
15672
|
title: col.title,
|
|
15822
|
-
dataIndex: col.dataIndex
|
|
15823
|
-
disabled: !!col.validator
|
|
15673
|
+
dataIndex: col.dataIndex
|
|
15824
15674
|
};
|
|
15825
15675
|
});
|
|
15826
15676
|
});
|
|
@@ -16202,18 +16052,16 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
16202
16052
|
var isObjectArray = Array.isArray(showHeader) && Object.prototype.toString.call(showHeader[0]) === '[object Object]';
|
|
16203
16053
|
if (isStringArray) {
|
|
16204
16054
|
baseInfoColumns = initBaseInfoColumns.filter(function (col) {
|
|
16205
|
-
return showHeader.includes(col.dataIndex)
|
|
16055
|
+
return showHeader.includes(col.dataIndex);
|
|
16206
16056
|
});
|
|
16207
16057
|
} else if (isObjectArray) {
|
|
16208
|
-
baseInfoColumns = showHeader.
|
|
16058
|
+
baseInfoColumns = showHeader.filter(function (col) {
|
|
16059
|
+
return col.show !== false;
|
|
16060
|
+
}).map(function (col) {
|
|
16209
16061
|
var currentCol = initBaseInfoColumns.find(function (item) {
|
|
16210
16062
|
return item.dataIndex === col.dataIndex;
|
|
16211
16063
|
});
|
|
16212
|
-
|
|
16213
|
-
if (currentCol && (col.show !== false || (currentCol === null || currentCol === void 0 ? void 0 : currentCol.validator))) {
|
|
16214
|
-
return currentCol;
|
|
16215
|
-
}
|
|
16216
|
-
return undefined;
|
|
16064
|
+
return currentCol ? currentCol : undefined;
|
|
16217
16065
|
}).filter(Boolean);
|
|
16218
16066
|
}
|
|
16219
16067
|
var columnList = [{
|
|
@@ -19584,7 +19432,7 @@ var MsgStatus = function MsgStatus(props) {
|
|
|
19584
19432
|
onClick: function onClick() {
|
|
19585
19433
|
return setChangeIndex(index);
|
|
19586
19434
|
}
|
|
19587
|
-
}, msgTypeCh[key]
|
|
19435
|
+
}, msgTypeCh[key], item.ruleName);
|
|
19588
19436
|
}))) : null, type === 1 ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Select, _objectSpread2(_objectSpread2({}, other), {}, {
|
|
19589
19437
|
showSearch: true,
|
|
19590
19438
|
value: (_value$changeIndex = value[changeIndex]) === null || _value$changeIndex === void 0 ? void 0 : _value$changeIndex.status,
|
|
@@ -20421,4 +20269,4 @@ var GyReturnGoods = function GyReturnGoods(props) {
|
|
|
20421
20269
|
})));
|
|
20422
20270
|
};
|
|
20423
20271
|
|
|
20424
|
-
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,
|
|
20272
|
+
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];
|
|
@@ -13278,7 +13227,6 @@ var getTableData$2 = function getTableData(_ref, formData) {
|
|
|
13278
13227
|
var current = _ref.current,
|
|
13279
13228
|
pageSize = _ref.pageSize;
|
|
13280
13229
|
var data = {
|
|
13281
|
-
goodShortName: formData.goodShortName || null,
|
|
13282
13230
|
goodNo: formData.goodNo || null,
|
|
13283
13231
|
goodName: formData.goodName || null,
|
|
13284
13232
|
skuCode: formData.skuCode || null,
|
|
@@ -14191,20 +14139,15 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
14191
14139
|
WDT_REISSUE_GOODS: [{
|
|
14192
14140
|
dataIndex: 'goodId',
|
|
14193
14141
|
title: "\u5546\u54C1ID",
|
|
14194
|
-
width: 120
|
|
14195
|
-
align: 'center',
|
|
14196
|
-
ellipsis: true
|
|
14142
|
+
width: 120
|
|
14197
14143
|
}, {
|
|
14198
14144
|
dataIndex: 'goodNo',
|
|
14199
14145
|
title: "\u5546\u54C1\u7F16\u7801",
|
|
14200
|
-
|
|
14201
|
-
ellipsis: true,
|
|
14202
|
-
width: 180
|
|
14146
|
+
width: 200
|
|
14203
14147
|
}, {
|
|
14204
14148
|
dataIndex: 'goodName',
|
|
14205
14149
|
title: "\u5546\u54C1\u540D\u79F0",
|
|
14206
14150
|
width: 200,
|
|
14207
|
-
align: 'center',
|
|
14208
14151
|
render: function render(text) {
|
|
14209
14152
|
return /*#__PURE__*/React__default['default'].createElement(CopyTextIcon, {
|
|
14210
14153
|
val: text
|
|
@@ -14213,19 +14156,14 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
14213
14156
|
}, {
|
|
14214
14157
|
dataIndex: 'specId',
|
|
14215
14158
|
title: "SKUID",
|
|
14216
|
-
align: 'center',
|
|
14217
|
-
ellipsis: true,
|
|
14218
14159
|
width: 150
|
|
14219
14160
|
}, {
|
|
14220
14161
|
dataIndex: 'specNo',
|
|
14221
14162
|
title: "\u5546\u54C1SKU\u7F16\u7801",
|
|
14222
|
-
|
|
14223
|
-
ellipsis: true,
|
|
14224
|
-
width: 180
|
|
14163
|
+
width: 200
|
|
14225
14164
|
}, {
|
|
14226
14165
|
dataIndex: 'specName',
|
|
14227
14166
|
title: "\u5546\u54C1SKU\u540D\u79F0",
|
|
14228
|
-
align: 'center',
|
|
14229
14167
|
width: 250,
|
|
14230
14168
|
render: function render(text) {
|
|
14231
14169
|
return /*#__PURE__*/React__default['default'].createElement(CopyTextIcon, {
|
|
@@ -14338,7 +14276,18 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
14338
14276
|
align: 'center',
|
|
14339
14277
|
ellipsis: true,
|
|
14340
14278
|
width: 100,
|
|
14341
|
-
render:
|
|
14279
|
+
render: function render(val) {
|
|
14280
|
+
var giftTypeMap = {
|
|
14281
|
+
0: '非赠品',
|
|
14282
|
+
1: '自动赠送',
|
|
14283
|
+
2: '手工赠送',
|
|
14284
|
+
3: '回购自动送赠品',
|
|
14285
|
+
4: '前N有礼送赠品',
|
|
14286
|
+
6: '天猫优仓赠品',
|
|
14287
|
+
7: '淘宝CRM会员送赠'
|
|
14288
|
+
};
|
|
14289
|
+
return /*#__PURE__*/React__default['default'].createElement("span", null, giftTypeMap[val]);
|
|
14290
|
+
}
|
|
14342
14291
|
}],
|
|
14343
14292
|
//旺店通退货商品信息
|
|
14344
14293
|
WDT_RETURN_GOODS: [{
|
|
@@ -14434,7 +14383,18 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
14434
14383
|
align: 'center',
|
|
14435
14384
|
ellipsis: true,
|
|
14436
14385
|
width: 100,
|
|
14437
|
-
render:
|
|
14386
|
+
render: function render(val) {
|
|
14387
|
+
var giftTypeMap = {
|
|
14388
|
+
0: '非赠品',
|
|
14389
|
+
1: '自动赠送',
|
|
14390
|
+
2: '手工赠送',
|
|
14391
|
+
3: '回购自动送赠品',
|
|
14392
|
+
4: '前N有礼送赠品',
|
|
14393
|
+
6: '天猫优仓赠品',
|
|
14394
|
+
7: '淘宝CRM会员送赠'
|
|
14395
|
+
};
|
|
14396
|
+
return /*#__PURE__*/React__default['default'].createElement("span", null, giftTypeMap[val]);
|
|
14397
|
+
}
|
|
14438
14398
|
}, {
|
|
14439
14399
|
dataIndex: 'type',
|
|
14440
14400
|
title: "".concat(text, "\u5546\u54C1\u7C7B\u578B"),
|
|
@@ -14555,7 +14515,18 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
14555
14515
|
align: 'center',
|
|
14556
14516
|
ellipsis: true,
|
|
14557
14517
|
width: 100,
|
|
14558
|
-
render:
|
|
14518
|
+
render: function render(val) {
|
|
14519
|
+
var giftTypeMap = {
|
|
14520
|
+
0: '非赠品',
|
|
14521
|
+
1: '自动赠送',
|
|
14522
|
+
2: '手工赠送',
|
|
14523
|
+
3: '回购自动送赠品',
|
|
14524
|
+
4: '前N有礼送赠品',
|
|
14525
|
+
6: '天猫优仓赠品',
|
|
14526
|
+
7: '淘宝CRM会员送赠'
|
|
14527
|
+
};
|
|
14528
|
+
return /*#__PURE__*/React__default['default'].createElement("span", null, giftTypeMap[val]);
|
|
14529
|
+
}
|
|
14559
14530
|
}, {
|
|
14560
14531
|
dataIndex: 'type',
|
|
14561
14532
|
title: "".concat(text, "\u5546\u54C1\u7C7B\u578B"),
|
|
@@ -14739,15 +14710,6 @@ var getYesOrNo$1 = function getYesOrNo(val) {
|
|
|
14739
14710
|
if (kmkfUtils.isNull(val)) return null;
|
|
14740
14711
|
return val ? '是' : '否';
|
|
14741
14712
|
};
|
|
14742
|
-
function toNum(value) {
|
|
14743
|
-
if (typeof value === 'string') {
|
|
14744
|
-
return value ? +value : void 0;
|
|
14745
|
-
}
|
|
14746
|
-
if (typeof value === 'number') {
|
|
14747
|
-
return value;
|
|
14748
|
-
}
|
|
14749
|
-
return void 0;
|
|
14750
|
-
}
|
|
14751
14713
|
var getColumns$4 = function getColumns(_ref) {
|
|
14752
14714
|
var _ref$text = _ref.text,
|
|
14753
14715
|
disabled = _ref.disabled,
|
|
@@ -14905,19 +14867,6 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
14905
14867
|
dataIndex: 'qty',
|
|
14906
14868
|
title: "\u6570\u91CF",
|
|
14907
14869
|
width: 100,
|
|
14908
|
-
validator: function validator(_rule, value) {
|
|
14909
|
-
var goodsName = '';
|
|
14910
|
-
if (((value === null || value === void 0 ? void 0 : value.gyReissueGoods) || []).some(function (goods) {
|
|
14911
|
-
var qty = toNum(goods === null || goods === void 0 ? void 0 : goods.qty);
|
|
14912
|
-
var res = typeof qty === 'number' ? qty < 1 : true;
|
|
14913
|
-
if (res) {
|
|
14914
|
-
goodsName = (goods === null || goods === void 0 ? void 0 : goods.goodName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodName, "]") : '';
|
|
14915
|
-
}
|
|
14916
|
-
return res;
|
|
14917
|
-
})) {
|
|
14918
|
-
return Promise.reject("".concat(goodsName, "\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
|
|
14919
|
-
}
|
|
14920
|
-
},
|
|
14921
14870
|
render: function render(val, record, index) {
|
|
14922
14871
|
return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
14923
14872
|
style: {
|
|
@@ -15021,19 +14970,6 @@ var getColumns$4 = function getColumns(_ref) {
|
|
|
15021
14970
|
dataIndex: 'qty',
|
|
15022
14971
|
title: "\u6570\u91CF",
|
|
15023
14972
|
width: 100,
|
|
15024
|
-
validator: function validator(_rule, value) {
|
|
15025
|
-
var goodsName = '';
|
|
15026
|
-
if (((value === null || value === void 0 ? void 0 : value.gyReturnGoods) || []).some(function (goods) {
|
|
15027
|
-
var qty = toNum(goods === null || goods === void 0 ? void 0 : goods.qty);
|
|
15028
|
-
var res = typeof qty === 'number' ? qty < 1 : true;
|
|
15029
|
-
if (res) {
|
|
15030
|
-
goodsName = (goods === null || goods === void 0 ? void 0 : goods.goodName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodName, "]") : '';
|
|
15031
|
-
}
|
|
15032
|
-
return res;
|
|
15033
|
-
})) {
|
|
15034
|
-
return Promise.reject("".concat(goodsName, "\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
|
|
15035
|
-
}
|
|
15036
|
-
},
|
|
15037
14973
|
render: function render(val, record, index) {
|
|
15038
14974
|
return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
15039
14975
|
style: {
|
|
@@ -15125,15 +15061,6 @@ var fillAttrs = function fillAttrs(item) {
|
|
|
15125
15061
|
if (!item.align) item.align = 'center';
|
|
15126
15062
|
return item;
|
|
15127
15063
|
};
|
|
15128
|
-
function toNum$1(value) {
|
|
15129
|
-
if (typeof value === 'string') {
|
|
15130
|
-
return value ? +value : void 0;
|
|
15131
|
-
}
|
|
15132
|
-
if (typeof value === 'number') {
|
|
15133
|
-
return value;
|
|
15134
|
-
}
|
|
15135
|
-
return void 0;
|
|
15136
|
-
}
|
|
15137
15064
|
var getColumns$5 = function getColumns() {
|
|
15138
15065
|
var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
15139
15066
|
_ref$text = _ref.text,
|
|
@@ -15317,19 +15244,6 @@ var getColumns$5 = function getColumns() {
|
|
|
15317
15244
|
ellipsis: true,
|
|
15318
15245
|
align: 'center',
|
|
15319
15246
|
width: 120,
|
|
15320
|
-
validator: function validator(_rule, value) {
|
|
15321
|
-
var goodsName = '';
|
|
15322
|
-
if (((value === null || value === void 0 ? void 0 : value.jstReissueGoods) || []).some(function (goods) {
|
|
15323
|
-
var v = toNum$1(goods === null || goods === void 0 ? void 0 : goods.salePrice);
|
|
15324
|
-
var res = typeof v === 'number' ? v < 0 : true;
|
|
15325
|
-
if (res) {
|
|
15326
|
-
goodsName = (goods === null || goods === void 0 ? void 0 : goods.name) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.name, "]") : '';
|
|
15327
|
-
}
|
|
15328
|
-
return res;
|
|
15329
|
-
})) {
|
|
15330
|
-
return Promise.reject("".concat(goodsName, "\u5355\u4EF7\u4E3A\u5927\u4E8E\u7B49\u4E8E0\u7684\u6570"));
|
|
15331
|
-
}
|
|
15332
|
-
},
|
|
15333
15247
|
render: function render(val, record, index) {
|
|
15334
15248
|
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
15335
15249
|
style: {
|
|
@@ -15349,19 +15263,6 @@ var getColumns$5 = function getColumns() {
|
|
|
15349
15263
|
ellipsis: true,
|
|
15350
15264
|
align: 'center',
|
|
15351
15265
|
width: 100,
|
|
15352
|
-
validator: function validator(_rule, value) {
|
|
15353
|
-
var goodsName = '';
|
|
15354
|
-
if (((value === null || value === void 0 ? void 0 : value.jstReissueGoods) || []).some(function (goods) {
|
|
15355
|
-
var qty = toNum$1(goods === null || goods === void 0 ? void 0 : goods.qty);
|
|
15356
|
-
var res = typeof qty === 'number' ? qty < 1 : true;
|
|
15357
|
-
if (res) {
|
|
15358
|
-
goodsName = (goods === null || goods === void 0 ? void 0 : goods.name) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.name, "]") : '';
|
|
15359
|
-
}
|
|
15360
|
-
return res;
|
|
15361
|
-
})) {
|
|
15362
|
-
return Promise.reject("".concat(goodsName, "\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
|
|
15363
|
-
}
|
|
15364
|
-
},
|
|
15365
15266
|
render: function render(val, record, index) {
|
|
15366
15267
|
return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
15367
15268
|
style: {
|
|
@@ -15446,19 +15347,6 @@ var getColumns$5 = function getColumns() {
|
|
|
15446
15347
|
dataIndex: 'salePrice',
|
|
15447
15348
|
title: '单价',
|
|
15448
15349
|
width: 120,
|
|
15449
|
-
validator: function validator(_rule, value) {
|
|
15450
|
-
var goodsName = '';
|
|
15451
|
-
if (((value === null || value === void 0 ? void 0 : value.jstReturnGoods) || []).some(function (goods) {
|
|
15452
|
-
var v = toNum$1(goods === null || goods === void 0 ? void 0 : goods.salePrice);
|
|
15453
|
-
var res = typeof v === 'number' ? v < 0 : true;
|
|
15454
|
-
if (res) {
|
|
15455
|
-
goodsName = (goods === null || goods === void 0 ? void 0 : goods.name) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.name, "]") : '';
|
|
15456
|
-
}
|
|
15457
|
-
return res;
|
|
15458
|
-
})) {
|
|
15459
|
-
return Promise.reject("".concat(goodsName, "\u5355\u4EF7\u4E3A\u5927\u4E8E\u7B49\u4E8E0\u7684\u6570"));
|
|
15460
|
-
}
|
|
15461
|
-
},
|
|
15462
15350
|
render: function render(val, record, index) {
|
|
15463
15351
|
return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
15464
15352
|
style: {
|
|
@@ -15476,19 +15364,6 @@ var getColumns$5 = function getColumns() {
|
|
|
15476
15364
|
dataIndex: 'qty',
|
|
15477
15365
|
title: '数量',
|
|
15478
15366
|
width: 100,
|
|
15479
|
-
validator: function validator(_rule, value) {
|
|
15480
|
-
var goodsName = '';
|
|
15481
|
-
if (((value === null || value === void 0 ? void 0 : value.jstReturnGoods) || []).some(function (goods) {
|
|
15482
|
-
var qty = toNum$1(goods === null || goods === void 0 ? void 0 : goods.qty);
|
|
15483
|
-
var res = typeof qty === 'number' ? qty < 1 : true;
|
|
15484
|
-
if (res) {
|
|
15485
|
-
goodsName = (goods === null || goods === void 0 ? void 0 : goods.name) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.name, "]") : '';
|
|
15486
|
-
}
|
|
15487
|
-
return res;
|
|
15488
|
-
})) {
|
|
15489
|
-
return Promise.reject("".concat(goodsName, "\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
|
|
15490
|
-
}
|
|
15491
|
-
},
|
|
15492
15367
|
render: function render(val, record, index) {
|
|
15493
15368
|
return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
|
|
15494
15369
|
style: {
|
|
@@ -15800,30 +15675,6 @@ var getColumnsMap$1 = function getColumnsMap(args) {
|
|
|
15800
15675
|
})['default']
|
|
15801
15676
|
});
|
|
15802
15677
|
};
|
|
15803
|
-
var erpColumnsMap = getColumnsMap$1();
|
|
15804
|
-
var erpFormValidator = function erpFormValidator(_rule, value, type) {
|
|
15805
|
-
var validatorFnList = (erpColumnsMap[type] || erpColumnsMap['default']).map(function (column) {
|
|
15806
|
-
return column.validator;
|
|
15807
|
-
}).filter(Boolean);
|
|
15808
|
-
var res = null;
|
|
15809
|
-
var _iterator = _createForOfIteratorHelper(validatorFnList),
|
|
15810
|
-
_step;
|
|
15811
|
-
try {
|
|
15812
|
-
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
15813
|
-
var validatorFn = _step.value;
|
|
15814
|
-
var validatorResult = validatorFn(_rule, value, type);
|
|
15815
|
-
if (validatorResult) {
|
|
15816
|
-
res = validatorResult;
|
|
15817
|
-
break;
|
|
15818
|
-
}
|
|
15819
|
-
}
|
|
15820
|
-
} catch (err) {
|
|
15821
|
-
_iterator.e(err);
|
|
15822
|
-
} finally {
|
|
15823
|
-
_iterator.f();
|
|
15824
|
-
}
|
|
15825
|
-
return res;
|
|
15826
|
-
};
|
|
15827
15678
|
var getColumnsBaseInfo$1 = function getColumnsBaseInfo() {
|
|
15828
15679
|
var clone_columnsMap = lodash.cloneDeep(getColumnsMap$1());
|
|
15829
15680
|
var newColumns = {};
|
|
@@ -15831,8 +15682,7 @@ var getColumnsBaseInfo$1 = function getColumnsBaseInfo() {
|
|
|
15831
15682
|
newColumns[key] = clone_columnsMap[key].map(function (col) {
|
|
15832
15683
|
return {
|
|
15833
15684
|
title: col.title,
|
|
15834
|
-
dataIndex: col.dataIndex
|
|
15835
|
-
disabled: !!col.validator
|
|
15685
|
+
dataIndex: col.dataIndex
|
|
15836
15686
|
};
|
|
15837
15687
|
});
|
|
15838
15688
|
});
|
|
@@ -16214,18 +16064,16 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
16214
16064
|
var isObjectArray = Array.isArray(showHeader) && Object.prototype.toString.call(showHeader[0]) === '[object Object]';
|
|
16215
16065
|
if (isStringArray) {
|
|
16216
16066
|
baseInfoColumns = initBaseInfoColumns.filter(function (col) {
|
|
16217
|
-
return showHeader.includes(col.dataIndex)
|
|
16067
|
+
return showHeader.includes(col.dataIndex);
|
|
16218
16068
|
});
|
|
16219
16069
|
} else if (isObjectArray) {
|
|
16220
|
-
baseInfoColumns = showHeader.
|
|
16070
|
+
baseInfoColumns = showHeader.filter(function (col) {
|
|
16071
|
+
return col.show !== false;
|
|
16072
|
+
}).map(function (col) {
|
|
16221
16073
|
var currentCol = initBaseInfoColumns.find(function (item) {
|
|
16222
16074
|
return item.dataIndex === col.dataIndex;
|
|
16223
16075
|
});
|
|
16224
|
-
|
|
16225
|
-
if (currentCol && (col.show !== false || (currentCol === null || currentCol === void 0 ? void 0 : currentCol.validator))) {
|
|
16226
|
-
return currentCol;
|
|
16227
|
-
}
|
|
16228
|
-
return undefined;
|
|
16076
|
+
return currentCol ? currentCol : undefined;
|
|
16229
16077
|
}).filter(Boolean);
|
|
16230
16078
|
}
|
|
16231
16079
|
var columnList = [{
|
|
@@ -19596,7 +19444,7 @@ var MsgStatus = function MsgStatus(props) {
|
|
|
19596
19444
|
onClick: function onClick() {
|
|
19597
19445
|
return setChangeIndex(index);
|
|
19598
19446
|
}
|
|
19599
|
-
}, kmkfUtils.msgTypeCh[key]
|
|
19447
|
+
}, kmkfUtils.msgTypeCh[key], item.ruleName);
|
|
19600
19448
|
}))) : 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), {}, {
|
|
19601
19449
|
showSearch: true,
|
|
19602
19450
|
value: (_value$changeIndex = value[changeIndex]) === null || _value$changeIndex === void 0 ? void 0 : _value$changeIndex.status,
|
|
@@ -20500,10 +20348,6 @@ exports.WdtGoodList = WdtGoodList;
|
|
|
20500
20348
|
exports.WdtReissue = wdtReissue;
|
|
20501
20349
|
exports.WlnGoods = WlnGoods;
|
|
20502
20350
|
exports.columnsBaseInfoMap = columnsBaseInfoMap;
|
|
20503
|
-
exports.erpColumnsMap = erpColumnsMap;
|
|
20504
|
-
exports.erpFormValidator = erpFormValidator;
|
|
20505
20351
|
exports.erpModalColumnsMap = index$2;
|
|
20506
|
-
exports.getGyColumns = getColumns$4;
|
|
20507
20352
|
exports.getJstColumns = getColumns$5;
|
|
20508
|
-
exports.getWdtColumns = getColumns$2;
|
|
20509
20353
|
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,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';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/basic-components",
|
|
3
|
-
"version": "2.0.54
|
|
3
|
+
"version": "2.0.54",
|
|
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
|
|
23
|
+
"@kmkf-fe-packages/kmkf-utils": "2.0.54",
|
|
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": "67e965ffb447b6c6fc0bddb1c2ef9d78edf5f93a"
|
|
69
69
|
}
|