@kmkf-fe-packages/basic-components 0.23.1-beta.7 → 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 CHANGED
@@ -11191,7 +11191,7 @@ var GoodItem = function GoodItem(props) {
11191
11191
  width: 100
11192
11192
  }, {
11193
11193
  dataIndex: 'num',
11194
- title: "".concat(text, "\u4E0B\u5355\u6570\u91CF"),
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
- dataIndex: 'actualNum',
11213
- title: "".concat(text, "\u5B9E\u53D1\u6570\u91CF"),
11214
- align: 'center',
11215
- ellipsis: true,
11216
- width: 100
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 {
@@ -12425,7 +12444,7 @@ var CommonGoods = function CommonGoods(props) {
12425
12444
  });
12426
12445
  };
12427
12446
  var _onDelete = function onDelete(item) {
12428
- var deleteId = item === null || item === void 0 ? void 0 : item.sku;
12447
+ var deleteId = item === null || item === void 0 ? void 0 : item.specId;
12429
12448
  pubsub.publish(componentMap$1[compType].eventNameMap.deleteGood, deleteId);
12430
12449
  pubsub.publish(componentMap$1[compType].eventNameMap.reissueDeleteGood, deleteId);
12431
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, "\u4E0B\u5355\u6570\u91CF"),
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
- dataIndex: 'actualNum',
11224
- title: "".concat(text, "\u5B9E\u53D1\u6570\u91CF"),
11225
- align: 'center',
11226
- ellipsis: true,
11227
- width: 100
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 {
@@ -12436,7 +12455,7 @@ var CommonGoods = function CommonGoods(props) {
12436
12455
  });
12437
12456
  };
12438
12457
  var _onDelete = function onDelete(item) {
12439
- var deleteId = item === null || item === void 0 ? void 0 : item.sku;
12458
+ var deleteId = item === null || item === void 0 ? void 0 : item.specId;
12440
12459
  pubsub__default['default'].publish(componentMap$1[compType].eventNameMap.deleteGood, deleteId);
12441
12460
  pubsub__default['default'].publish(componentMap$1[compType].eventNameMap.reissueDeleteGood, deleteId);
12442
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.7",
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.4",
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": "885bf4c24e4b1f983b055d7c42d212dd6ad3b0b7"
67
+ "gitHead": "f96bf8dffe0f7ef6a62e90e40be09894f70a5b99"
68
68
  }