@kmkf-fe-packages/basic-components 2.2.13-beta.11 → 2.2.13-beta.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +47 -41
- package/dist/index.js +47 -41
- package/package.json +3 -3
package/dist/index.esm.js
CHANGED
|
@@ -20270,10 +20270,6 @@ var isNumberOrNumberString$1 = function isNumberOrNumberString(value) {
|
|
|
20270
20270
|
if (typeof value === 'string' && !isNaN(Number(value)) && value.trim() !== '') return true;
|
|
20271
20271
|
return false;
|
|
20272
20272
|
};
|
|
20273
|
-
var getYesOrNo$4 = function getYesOrNo(val) {
|
|
20274
|
-
if (isNull(val)) return null;
|
|
20275
|
-
return val ? '是' : '否';
|
|
20276
|
-
};
|
|
20277
20273
|
var getColumns$7 = function getColumns(_ref) {
|
|
20278
20274
|
var _ref$text = _ref.text,
|
|
20279
20275
|
disabled = _ref.disabled,
|
|
@@ -20495,19 +20491,23 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
20495
20491
|
});
|
|
20496
20492
|
}),
|
|
20497
20493
|
// 巨益补发商品信息
|
|
20498
|
-
JY_REISSUE_GOODS: [
|
|
20499
|
-
|
|
20500
|
-
|
|
20501
|
-
|
|
20502
|
-
|
|
20503
|
-
|
|
20504
|
-
|
|
20505
|
-
|
|
20506
|
-
|
|
20507
|
-
|
|
20508
|
-
|
|
20509
|
-
|
|
20510
|
-
|
|
20494
|
+
JY_REISSUE_GOODS: [
|
|
20495
|
+
// {
|
|
20496
|
+
// dataIndex: 'goodsName',
|
|
20497
|
+
// title: `货品名称`,
|
|
20498
|
+
// width: 150,
|
|
20499
|
+
// },
|
|
20500
|
+
// {
|
|
20501
|
+
// dataIndex: 'goodsCode',
|
|
20502
|
+
// title: `货品编号`,
|
|
20503
|
+
// width: 200,
|
|
20504
|
+
// },
|
|
20505
|
+
// {
|
|
20506
|
+
// dataIndex: 'goodsId',
|
|
20507
|
+
// title: `货品ID`,
|
|
20508
|
+
// width: 150,
|
|
20509
|
+
// },
|
|
20510
|
+
{
|
|
20511
20511
|
dataIndex: 'goodsClass',
|
|
20512
20512
|
title: "\u8D27\u54C1\u7C7B\u522B",
|
|
20513
20513
|
width: 150
|
|
@@ -20515,19 +20515,22 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
20515
20515
|
dataIndex: 'code',
|
|
20516
20516
|
title: "\u6761\u7801",
|
|
20517
20517
|
width: 150
|
|
20518
|
-
},
|
|
20519
|
-
|
|
20520
|
-
|
|
20521
|
-
|
|
20522
|
-
|
|
20523
|
-
|
|
20524
|
-
|
|
20525
|
-
|
|
20526
|
-
|
|
20527
|
-
|
|
20528
|
-
|
|
20529
|
-
|
|
20530
|
-
|
|
20518
|
+
},
|
|
20519
|
+
// {
|
|
20520
|
+
// dataIndex: 'specName',
|
|
20521
|
+
// title: `规格名称`,
|
|
20522
|
+
// align: 'center',
|
|
20523
|
+
// ellipsis: true,
|
|
20524
|
+
// width: 200,
|
|
20525
|
+
// },
|
|
20526
|
+
// {
|
|
20527
|
+
// dataIndex: 'specCode',
|
|
20528
|
+
// title: `规格编号`,
|
|
20529
|
+
// align: 'center',
|
|
20530
|
+
// ellipsis: true,
|
|
20531
|
+
// width: 150,
|
|
20532
|
+
// },
|
|
20533
|
+
{
|
|
20531
20534
|
dataIndex: 'specId',
|
|
20532
20535
|
title: "\u89C4\u683CID",
|
|
20533
20536
|
align: 'center',
|
|
@@ -20607,9 +20610,8 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
20607
20610
|
precision: 0,
|
|
20608
20611
|
onChange: function onChange(num) {
|
|
20609
20612
|
updateDataHandle({
|
|
20610
|
-
|
|
20611
|
-
|
|
20612
|
-
originAmount: num && isNumberOrNumberString$1(record.originPrice) ? num * record.originPrice : null
|
|
20613
|
+
sellCount: num,
|
|
20614
|
+
sellTotal: num && isNumberOrNumberString$1(record.sellPrice) ? num * record.sellPrice : null
|
|
20613
20615
|
}, index);
|
|
20614
20616
|
}
|
|
20615
20617
|
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
@@ -20628,8 +20630,8 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
20628
20630
|
precision: 2,
|
|
20629
20631
|
onChange: function onChange(num) {
|
|
20630
20632
|
updateDataHandle({
|
|
20631
|
-
|
|
20632
|
-
|
|
20633
|
+
sellPrice: num,
|
|
20634
|
+
sellTotal: num && isNumberOrNumberString$1(record.sellCount) ? num * record.sellCount : null
|
|
20633
20635
|
}, index);
|
|
20634
20636
|
}
|
|
20635
20637
|
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
@@ -20654,12 +20656,12 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
20654
20656
|
},
|
|
20655
20657
|
options: [{
|
|
20656
20658
|
label: '是',
|
|
20657
|
-
value:
|
|
20659
|
+
value: 'True'
|
|
20658
20660
|
}, {
|
|
20659
20661
|
label: '否',
|
|
20660
|
-
value:
|
|
20662
|
+
value: 'False'
|
|
20661
20663
|
}]
|
|
20662
|
-
}) : /*#__PURE__*/React.createElement("span", null,
|
|
20664
|
+
}) : /*#__PURE__*/React.createElement("span", null, val === 'True' ? '是' : '否');
|
|
20663
20665
|
}
|
|
20664
20666
|
}, {
|
|
20665
20667
|
dataIndex: 'combinationName',
|
|
@@ -20681,12 +20683,12 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
20681
20683
|
},
|
|
20682
20684
|
options: [{
|
|
20683
20685
|
label: '是',
|
|
20684
|
-
value: 1
|
|
20686
|
+
value: '1'
|
|
20685
20687
|
}, {
|
|
20686
20688
|
label: '否',
|
|
20687
|
-
value: 0
|
|
20689
|
+
value: '0'
|
|
20688
20690
|
}]
|
|
20689
|
-
}) : /*#__PURE__*/React.createElement("span", null,
|
|
20691
|
+
}) : /*#__PURE__*/React.createElement("span", null, val === '1' ? '是' : '否');
|
|
20690
20692
|
}
|
|
20691
20693
|
}].map(function (item) {
|
|
20692
20694
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
@@ -25342,6 +25344,10 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
25342
25344
|
orderBackGoodsLevel: props.orderBackGoodsLevel,
|
|
25343
25345
|
canEdit: true
|
|
25344
25346
|
};
|
|
25347
|
+
} else if (['JY_REISSUE_GOODS', 'JY_RETURN_GOODS'].includes(type)) {
|
|
25348
|
+
orderRest = {
|
|
25349
|
+
canEdit: true
|
|
25350
|
+
};
|
|
25345
25351
|
}
|
|
25346
25352
|
var goodDetails = (order === null || order === void 0 ? void 0 : (_order$typeMap$type$g = order[typeMap$2[type].goodDetailsKey]) === null || _order$typeMap$type$g === void 0 ? void 0 : _order$typeMap$type$g.length) ? typeMap$2[type].mergeIdenticalGoods ? typeMap$2[type].mergeIdenticalGoods((_typeMap$type20 = typeMap$2[type]) === null || _typeMap$type20 === void 0 ? void 0 : _typeMap$type20.updateGoodsHandle([order], orderRest)) : (_typeMap$type21 = typeMap$2[type]) === null || _typeMap$type21 === void 0 ? void 0 : _typeMap$type21.updateGoodsHandle([order], orderRest) : [];
|
|
25347
25353
|
var orderNo = systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orderNo;
|
package/dist/index.js
CHANGED
|
@@ -20285,10 +20285,6 @@ var isNumberOrNumberString$1 = function isNumberOrNumberString(value) {
|
|
|
20285
20285
|
if (typeof value === 'string' && !isNaN(Number(value)) && value.trim() !== '') return true;
|
|
20286
20286
|
return false;
|
|
20287
20287
|
};
|
|
20288
|
-
var getYesOrNo$4 = function getYesOrNo(val) {
|
|
20289
|
-
if (kmkfUtils.isNull(val)) return null;
|
|
20290
|
-
return val ? '是' : '否';
|
|
20291
|
-
};
|
|
20292
20288
|
var getColumns$7 = function getColumns(_ref) {
|
|
20293
20289
|
var _ref$text = _ref.text,
|
|
20294
20290
|
disabled = _ref.disabled,
|
|
@@ -20510,19 +20506,23 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
20510
20506
|
});
|
|
20511
20507
|
}),
|
|
20512
20508
|
// 巨益补发商品信息
|
|
20513
|
-
JY_REISSUE_GOODS: [
|
|
20514
|
-
|
|
20515
|
-
|
|
20516
|
-
|
|
20517
|
-
|
|
20518
|
-
|
|
20519
|
-
|
|
20520
|
-
|
|
20521
|
-
|
|
20522
|
-
|
|
20523
|
-
|
|
20524
|
-
|
|
20525
|
-
|
|
20509
|
+
JY_REISSUE_GOODS: [
|
|
20510
|
+
// {
|
|
20511
|
+
// dataIndex: 'goodsName',
|
|
20512
|
+
// title: `货品名称`,
|
|
20513
|
+
// width: 150,
|
|
20514
|
+
// },
|
|
20515
|
+
// {
|
|
20516
|
+
// dataIndex: 'goodsCode',
|
|
20517
|
+
// title: `货品编号`,
|
|
20518
|
+
// width: 200,
|
|
20519
|
+
// },
|
|
20520
|
+
// {
|
|
20521
|
+
// dataIndex: 'goodsId',
|
|
20522
|
+
// title: `货品ID`,
|
|
20523
|
+
// width: 150,
|
|
20524
|
+
// },
|
|
20525
|
+
{
|
|
20526
20526
|
dataIndex: 'goodsClass',
|
|
20527
20527
|
title: "\u8D27\u54C1\u7C7B\u522B",
|
|
20528
20528
|
width: 150
|
|
@@ -20530,19 +20530,22 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
20530
20530
|
dataIndex: 'code',
|
|
20531
20531
|
title: "\u6761\u7801",
|
|
20532
20532
|
width: 150
|
|
20533
|
-
},
|
|
20534
|
-
|
|
20535
|
-
|
|
20536
|
-
|
|
20537
|
-
|
|
20538
|
-
|
|
20539
|
-
|
|
20540
|
-
|
|
20541
|
-
|
|
20542
|
-
|
|
20543
|
-
|
|
20544
|
-
|
|
20545
|
-
|
|
20533
|
+
},
|
|
20534
|
+
// {
|
|
20535
|
+
// dataIndex: 'specName',
|
|
20536
|
+
// title: `规格名称`,
|
|
20537
|
+
// align: 'center',
|
|
20538
|
+
// ellipsis: true,
|
|
20539
|
+
// width: 200,
|
|
20540
|
+
// },
|
|
20541
|
+
// {
|
|
20542
|
+
// dataIndex: 'specCode',
|
|
20543
|
+
// title: `规格编号`,
|
|
20544
|
+
// align: 'center',
|
|
20545
|
+
// ellipsis: true,
|
|
20546
|
+
// width: 150,
|
|
20547
|
+
// },
|
|
20548
|
+
{
|
|
20546
20549
|
dataIndex: 'specId',
|
|
20547
20550
|
title: "\u89C4\u683CID",
|
|
20548
20551
|
align: 'center',
|
|
@@ -20622,9 +20625,8 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
20622
20625
|
precision: 0,
|
|
20623
20626
|
onChange: function onChange(num) {
|
|
20624
20627
|
updateDataHandle({
|
|
20625
|
-
|
|
20626
|
-
|
|
20627
|
-
originAmount: num && isNumberOrNumberString$1(record.originPrice) ? num * record.originPrice : null
|
|
20628
|
+
sellCount: num,
|
|
20629
|
+
sellTotal: num && isNumberOrNumberString$1(record.sellPrice) ? num * record.sellPrice : null
|
|
20628
20630
|
}, index);
|
|
20629
20631
|
}
|
|
20630
20632
|
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
@@ -20643,8 +20645,8 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
20643
20645
|
precision: 2,
|
|
20644
20646
|
onChange: function onChange(num) {
|
|
20645
20647
|
updateDataHandle({
|
|
20646
|
-
|
|
20647
|
-
|
|
20648
|
+
sellPrice: num,
|
|
20649
|
+
sellTotal: num && isNumberOrNumberString$1(record.sellCount) ? num * record.sellCount : null
|
|
20648
20650
|
}, index);
|
|
20649
20651
|
}
|
|
20650
20652
|
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
@@ -20669,12 +20671,12 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
20669
20671
|
},
|
|
20670
20672
|
options: [{
|
|
20671
20673
|
label: '是',
|
|
20672
|
-
value:
|
|
20674
|
+
value: 'True'
|
|
20673
20675
|
}, {
|
|
20674
20676
|
label: '否',
|
|
20675
|
-
value:
|
|
20677
|
+
value: 'False'
|
|
20676
20678
|
}]
|
|
20677
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null,
|
|
20679
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val === 'True' ? '是' : '否');
|
|
20678
20680
|
}
|
|
20679
20681
|
}, {
|
|
20680
20682
|
dataIndex: 'combinationName',
|
|
@@ -20696,12 +20698,12 @@ var getColumns$7 = function getColumns(_ref) {
|
|
|
20696
20698
|
},
|
|
20697
20699
|
options: [{
|
|
20698
20700
|
label: '是',
|
|
20699
|
-
value: 1
|
|
20701
|
+
value: '1'
|
|
20700
20702
|
}, {
|
|
20701
20703
|
label: '否',
|
|
20702
|
-
value: 0
|
|
20704
|
+
value: '0'
|
|
20703
20705
|
}]
|
|
20704
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null,
|
|
20706
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val === '1' ? '是' : '否');
|
|
20705
20707
|
}
|
|
20706
20708
|
}].map(function (item) {
|
|
20707
20709
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
@@ -25357,6 +25359,10 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
25357
25359
|
orderBackGoodsLevel: props.orderBackGoodsLevel,
|
|
25358
25360
|
canEdit: true
|
|
25359
25361
|
};
|
|
25362
|
+
} else if (['JY_REISSUE_GOODS', 'JY_RETURN_GOODS'].includes(type)) {
|
|
25363
|
+
orderRest = {
|
|
25364
|
+
canEdit: true
|
|
25365
|
+
};
|
|
25360
25366
|
}
|
|
25361
25367
|
var goodDetails = (order === null || order === void 0 ? void 0 : (_order$typeMap$type$g = order[typeMap$2[type].goodDetailsKey]) === null || _order$typeMap$type$g === void 0 ? void 0 : _order$typeMap$type$g.length) ? typeMap$2[type].mergeIdenticalGoods ? typeMap$2[type].mergeIdenticalGoods((_typeMap$type20 = typeMap$2[type]) === null || _typeMap$type20 === void 0 ? void 0 : _typeMap$type20.updateGoodsHandle([order], orderRest)) : (_typeMap$type21 = typeMap$2[type]) === null || _typeMap$type21 === void 0 ? void 0 : _typeMap$type21.updateGoodsHandle([order], orderRest) : [];
|
|
25362
25368
|
var orderNo = systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orderNo;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/basic-components",
|
|
3
|
-
"version": "2.2.13-beta.
|
|
3
|
+
"version": "2.2.13-beta.13",
|
|
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.2.13-beta.
|
|
23
|
+
"@kmkf-fe-packages/kmkf-utils": "2.2.13-beta.13",
|
|
24
24
|
"ahooks": "^3.7.4",
|
|
25
25
|
"ali-react-table": "2.6.1",
|
|
26
26
|
"bignumber.js": "^9.1.2",
|
|
@@ -66,5 +66,5 @@
|
|
|
66
66
|
"publishConfig": {
|
|
67
67
|
"access": "public"
|
|
68
68
|
},
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "d13993c1a428abf279bedf9f20f00dd3e3fb360a"
|
|
70
70
|
}
|