@kmkf-fe-packages/basic-components 0.23.1-beta.6 → 0.23.1-beta.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +35 -15
- package/dist/index.js +35 -15
- package/package.json +3 -3
package/dist/index.esm.js
CHANGED
|
@@ -11191,7 +11191,7 @@ var GoodItem = function GoodItem(props) {
|
|
|
11191
11191
|
width: 100
|
|
11192
11192
|
}, {
|
|
11193
11193
|
dataIndex: 'num',
|
|
11194
|
-
title: "".concat(text, "\
|
|
11194
|
+
title: "".concat(text, "\u6570\u91CF"),
|
|
11195
11195
|
align: 'center',
|
|
11196
11196
|
ellipsis: true,
|
|
11197
11197
|
width: 100,
|
|
@@ -11208,13 +11208,15 @@ var GoodItem = function GoodItem(props) {
|
|
|
11208
11208
|
}
|
|
11209
11209
|
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
11210
11210
|
}
|
|
11211
|
-
},
|
|
11212
|
-
|
|
11213
|
-
|
|
11214
|
-
|
|
11215
|
-
|
|
11216
|
-
|
|
11217
|
-
|
|
11211
|
+
},
|
|
11212
|
+
// {
|
|
11213
|
+
// dataIndex: 'actualNum',
|
|
11214
|
+
// title: `${text}实发数量`,
|
|
11215
|
+
// align: 'center',
|
|
11216
|
+
// ellipsis: true,
|
|
11217
|
+
// width: 100,
|
|
11218
|
+
// },
|
|
11219
|
+
{
|
|
11218
11220
|
dataIndex: 'sharePrice',
|
|
11219
11221
|
title: "\u5206\u644A\u4EF7",
|
|
11220
11222
|
align: 'center',
|
|
@@ -11225,7 +11227,19 @@ var GoodItem = function GoodItem(props) {
|
|
|
11225
11227
|
title: "\u8D60\u54C1\u7C7B\u578B",
|
|
11226
11228
|
align: 'center',
|
|
11227
11229
|
ellipsis: true,
|
|
11228
|
-
width: 100
|
|
11230
|
+
width: 100,
|
|
11231
|
+
render: function render(val) {
|
|
11232
|
+
var giftTypeMap = {
|
|
11233
|
+
0: '非赠品',
|
|
11234
|
+
1: '自动赠送',
|
|
11235
|
+
2: '手工赠送',
|
|
11236
|
+
3: '回购自动送赠品',
|
|
11237
|
+
4: '前N有礼送赠品',
|
|
11238
|
+
6: '天猫优仓赠品',
|
|
11239
|
+
7: '淘宝CRM会员送赠'
|
|
11240
|
+
};
|
|
11241
|
+
return /*#__PURE__*/React.createElement("span", null, giftTypeMap[val]);
|
|
11242
|
+
}
|
|
11229
11243
|
}];
|
|
11230
11244
|
break;
|
|
11231
11245
|
default:
|
|
@@ -11372,6 +11386,11 @@ var GoodItem = function GoodItem(props) {
|
|
|
11372
11386
|
if (['WDT_REISSUE_GOODS', 'WDT_GOODS'].includes(type)) {
|
|
11373
11387
|
newList = list.map(function (item) {
|
|
11374
11388
|
item.uuid = uuid();
|
|
11389
|
+
item.canDelete = true;
|
|
11390
|
+
item.num = 1;
|
|
11391
|
+
item.orderPrice = item.orderPrice || 0;
|
|
11392
|
+
item.sharePrice = item.sharePrice || 0;
|
|
11393
|
+
item.canUpdateNumber = canUpdateNumber;
|
|
11375
11394
|
return item;
|
|
11376
11395
|
});
|
|
11377
11396
|
} else {
|
|
@@ -12406,11 +12425,12 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
12406
12425
|
var _withInfo$current, _withInfo$current2, _valueRef$current7;
|
|
12407
12426
|
if (disabled) return;
|
|
12408
12427
|
var newList = cloneDeep(list);
|
|
12409
|
-
var typeMap = {
|
|
12410
|
-
type: componentMap
|
|
12411
|
-
|
|
12412
|
-
|
|
12413
|
-
|
|
12428
|
+
var typeMap = _defineProperty({
|
|
12429
|
+
// type: componentMap[compType].eventNameMap.selectList,
|
|
12430
|
+
// returnType: componentMap[compType].eventNameMap.returnSelectList,
|
|
12431
|
+
// reissueType: componentMap[compType].eventNameMap.reissueSelectList,
|
|
12432
|
+
type: componentMap$1[compType].eventNameMap.selectList
|
|
12433
|
+
}, "".concat(componentMap$1[compType].type, "ReissueType"), componentMap$1[compType].eventNameMap.reissueSelectList);
|
|
12414
12434
|
var type = typeMap[(_withInfo$current = withInfo.current) === null || _withInfo$current === void 0 ? void 0 : _withInfo$current.type];
|
|
12415
12435
|
// console.log('onSelect', type, withInfo.current, newList);
|
|
12416
12436
|
pubsub.publish(type, {
|
|
@@ -12424,7 +12444,7 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
12424
12444
|
});
|
|
12425
12445
|
};
|
|
12426
12446
|
var _onDelete = function onDelete(item) {
|
|
12427
|
-
var deleteId = item === null || item === void 0 ? void 0 : item.
|
|
12447
|
+
var deleteId = item === null || item === void 0 ? void 0 : item.specId;
|
|
12428
12448
|
pubsub.publish(componentMap$1[compType].eventNameMap.deleteGood, deleteId);
|
|
12429
12449
|
pubsub.publish(componentMap$1[compType].eventNameMap.reissueDeleteGood, deleteId);
|
|
12430
12450
|
pubsub.publish(componentMap$1[compType].eventNameMap.returnDeleteGood, deleteId);
|
package/dist/index.js
CHANGED
|
@@ -11202,7 +11202,7 @@ var GoodItem = function GoodItem(props) {
|
|
|
11202
11202
|
width: 100
|
|
11203
11203
|
}, {
|
|
11204
11204
|
dataIndex: 'num',
|
|
11205
|
-
title: "".concat(text, "\
|
|
11205
|
+
title: "".concat(text, "\u6570\u91CF"),
|
|
11206
11206
|
align: 'center',
|
|
11207
11207
|
ellipsis: true,
|
|
11208
11208
|
width: 100,
|
|
@@ -11219,13 +11219,15 @@ var GoodItem = function GoodItem(props) {
|
|
|
11219
11219
|
}
|
|
11220
11220
|
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
11221
11221
|
}
|
|
11222
|
-
},
|
|
11223
|
-
|
|
11224
|
-
|
|
11225
|
-
|
|
11226
|
-
|
|
11227
|
-
|
|
11228
|
-
|
|
11222
|
+
},
|
|
11223
|
+
// {
|
|
11224
|
+
// dataIndex: 'actualNum',
|
|
11225
|
+
// title: `${text}实发数量`,
|
|
11226
|
+
// align: 'center',
|
|
11227
|
+
// ellipsis: true,
|
|
11228
|
+
// width: 100,
|
|
11229
|
+
// },
|
|
11230
|
+
{
|
|
11229
11231
|
dataIndex: 'sharePrice',
|
|
11230
11232
|
title: "\u5206\u644A\u4EF7",
|
|
11231
11233
|
align: 'center',
|
|
@@ -11236,7 +11238,19 @@ var GoodItem = function GoodItem(props) {
|
|
|
11236
11238
|
title: "\u8D60\u54C1\u7C7B\u578B",
|
|
11237
11239
|
align: 'center',
|
|
11238
11240
|
ellipsis: true,
|
|
11239
|
-
width: 100
|
|
11241
|
+
width: 100,
|
|
11242
|
+
render: function render(val) {
|
|
11243
|
+
var giftTypeMap = {
|
|
11244
|
+
0: '非赠品',
|
|
11245
|
+
1: '自动赠送',
|
|
11246
|
+
2: '手工赠送',
|
|
11247
|
+
3: '回购自动送赠品',
|
|
11248
|
+
4: '前N有礼送赠品',
|
|
11249
|
+
6: '天猫优仓赠品',
|
|
11250
|
+
7: '淘宝CRM会员送赠'
|
|
11251
|
+
};
|
|
11252
|
+
return /*#__PURE__*/React__default['default'].createElement("span", null, giftTypeMap[val]);
|
|
11253
|
+
}
|
|
11240
11254
|
}];
|
|
11241
11255
|
break;
|
|
11242
11256
|
default:
|
|
@@ -11383,6 +11397,11 @@ var GoodItem = function GoodItem(props) {
|
|
|
11383
11397
|
if (['WDT_REISSUE_GOODS', 'WDT_GOODS'].includes(type)) {
|
|
11384
11398
|
newList = list.map(function (item) {
|
|
11385
11399
|
item.uuid = kmkfUtils.uuid();
|
|
11400
|
+
item.canDelete = true;
|
|
11401
|
+
item.num = 1;
|
|
11402
|
+
item.orderPrice = item.orderPrice || 0;
|
|
11403
|
+
item.sharePrice = item.sharePrice || 0;
|
|
11404
|
+
item.canUpdateNumber = canUpdateNumber;
|
|
11386
11405
|
return item;
|
|
11387
11406
|
});
|
|
11388
11407
|
} else {
|
|
@@ -12417,11 +12436,12 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
12417
12436
|
var _withInfo$current, _withInfo$current2, _valueRef$current7;
|
|
12418
12437
|
if (disabled) return;
|
|
12419
12438
|
var newList = lodash.cloneDeep(list);
|
|
12420
|
-
var typeMap = {
|
|
12421
|
-
type: componentMap
|
|
12422
|
-
|
|
12423
|
-
|
|
12424
|
-
|
|
12439
|
+
var typeMap = _defineProperty({
|
|
12440
|
+
// type: componentMap[compType].eventNameMap.selectList,
|
|
12441
|
+
// returnType: componentMap[compType].eventNameMap.returnSelectList,
|
|
12442
|
+
// reissueType: componentMap[compType].eventNameMap.reissueSelectList,
|
|
12443
|
+
type: componentMap$1[compType].eventNameMap.selectList
|
|
12444
|
+
}, "".concat(componentMap$1[compType].type, "ReissueType"), componentMap$1[compType].eventNameMap.reissueSelectList);
|
|
12425
12445
|
var type = typeMap[(_withInfo$current = withInfo.current) === null || _withInfo$current === void 0 ? void 0 : _withInfo$current.type];
|
|
12426
12446
|
// console.log('onSelect', type, withInfo.current, newList);
|
|
12427
12447
|
pubsub__default['default'].publish(type, {
|
|
@@ -12435,7 +12455,7 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
12435
12455
|
});
|
|
12436
12456
|
};
|
|
12437
12457
|
var _onDelete = function onDelete(item) {
|
|
12438
|
-
var deleteId = item === null || item === void 0 ? void 0 : item.
|
|
12458
|
+
var deleteId = item === null || item === void 0 ? void 0 : item.specId;
|
|
12439
12459
|
pubsub__default['default'].publish(componentMap$1[compType].eventNameMap.deleteGood, deleteId);
|
|
12440
12460
|
pubsub__default['default'].publish(componentMap$1[compType].eventNameMap.reissueDeleteGood, deleteId);
|
|
12441
12461
|
pubsub__default['default'].publish(componentMap$1[compType].eventNameMap.returnDeleteGood, deleteId);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/basic-components",
|
|
3
|
-
"version": "0.23.1-beta.
|
|
3
|
+
"version": "0.23.1-beta.8",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"homepage": "",
|
|
6
6
|
"license": "ISC",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"watch": "nodemon --ignore dist/ --ignore node_modules/ --watch src/ -C -e ts,tsx,less --debug -x 'yarn async'"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@kmkf-fe-packages/kmkf-utils": "^0.23.1-beta.
|
|
23
|
+
"@kmkf-fe-packages/kmkf-utils": "^0.23.1-beta.8",
|
|
24
24
|
"ahooks": "3.7.4",
|
|
25
25
|
"kmkf-monitor": "^0.8.8",
|
|
26
26
|
"lodash": "^4.17.21",
|
|
@@ -64,5 +64,5 @@
|
|
|
64
64
|
"publishConfig": {
|
|
65
65
|
"access": "public"
|
|
66
66
|
},
|
|
67
|
-
"gitHead": "
|
|
67
|
+
"gitHead": "f96bf8dffe0f7ef6a62e90e40be09894f70a5b99"
|
|
68
68
|
}
|