@kmkf-fe-packages/basic-components 2.10.9-beta.35 → 2.10.9-beta.36

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.
Files changed (2) hide show
  1. package/dist/index.esm.js +102 -20
  2. package/package.json +2 -2
package/dist/index.esm.js CHANGED
@@ -25255,28 +25255,110 @@ var getTtxBomTypeName = function getTtxBomTypeName(value) {
25255
25255
  };
25256
25256
  var getColumns$b = function getColumns() {
25257
25257
  return {
25258
- TTX_GOODS: [['skuName', 'SKU名称'], ['skuCode', 'SKU编码'], ['sourceSpuId', '平台商品ID'], ['sourceSkuId', '平台SKU ID'], ['requestQty', '要求发货数量'], ['shipQty', '已发货数量'], ['returnQty', '退货数量'], ['listPrice', '零售价/标价'], ['netPrice', '客户实付单价'], ['msrPrice', '建议零售价'], ['itemTotalAmount', '商品总金额'], ['totalPayAmount', '实付金额'], ['isGift', '是否赠品'], ['bomType', 'BOM类型'], ['bomSkuCode', 'BOM商品编码'], ['platformSpuCode', '商品货号'], ['platformSkuCode', 'SKU货号']].map(function (_ref) {
25259
- var _ref2 = _slicedToArray(_ref, 2),
25260
- dataIndex = _ref2[0],
25261
- title = _ref2[1];
25262
- var isGift = dataIndex === 'isGift';
25263
- var isBomType = dataIndex === 'bomType';
25264
- return _objectSpread2(_objectSpread2({
25265
- dataIndex: dataIndex,
25266
- title: title,
25267
- width: 150,
25268
- align: 'center',
25269
- ellipsis: true,
25270
- render: isGift ? function (value) {
25271
- return renderTextEllipsis(getYesOrNo$4(value));
25272
- } : isBomType ? function (value) {
25273
- return renderTextEllipsis(getTtxBomTypeName(value));
25274
- } : renderTextEllipsis
25275
- }, isGift ? {
25258
+ TTX_GOODS: [{
25259
+ dataIndex: 'skuName',
25260
+ title: 'SKU名称',
25261
+ width: 150,
25262
+ render: renderTextEllipsis
25263
+ }, {
25264
+ dataIndex: 'skuCode',
25265
+ title: 'SKU编码',
25266
+ width: 150,
25267
+ render: renderTextEllipsis
25268
+ }, {
25269
+ dataIndex: 'sourceSpuId',
25270
+ title: '平台商品ID',
25271
+ width: 150,
25272
+ render: renderTextEllipsis
25273
+ }, {
25274
+ dataIndex: 'sourceSkuId',
25275
+ title: '平台SKU ID',
25276
+ width: 150,
25277
+ render: renderTextEllipsis
25278
+ }, {
25279
+ dataIndex: 'requestQty',
25280
+ title: '要求发货数量',
25281
+ width: 150,
25282
+ render: renderTextEllipsis
25283
+ }, {
25284
+ dataIndex: 'shipQty',
25285
+ title: '已发货数量',
25286
+ width: 150,
25287
+ render: renderTextEllipsis
25288
+ }, {
25289
+ dataIndex: 'returnQty',
25290
+ title: '退货数量',
25291
+ width: 150,
25292
+ render: renderTextEllipsis
25293
+ }, {
25294
+ dataIndex: 'listPrice',
25295
+ title: '零售价/标价',
25296
+ width: 150,
25297
+ render: renderTextEllipsis
25298
+ }, {
25299
+ dataIndex: 'netPrice',
25300
+ title: '客户实付单价',
25301
+ width: 150,
25302
+ render: renderTextEllipsis
25303
+ }, {
25304
+ dataIndex: 'msrPrice',
25305
+ title: '建议零售价',
25306
+ width: 150,
25307
+ render: renderTextEllipsis
25308
+ }, {
25309
+ dataIndex: 'itemTotalAmount',
25310
+ title: '商品总金额',
25311
+ width: 150,
25312
+ render: renderTextEllipsis
25313
+ }, {
25314
+ dataIndex: 'totalPayAmount',
25315
+ title: '实付金额',
25316
+ width: 150,
25317
+ render: renderTextEllipsis
25318
+ }, {
25319
+ dataIndex: 'isGift',
25320
+ title: '是否赠品',
25321
+ width: 150,
25322
+ render: function render(value) {
25323
+ return renderTextEllipsis(getYesOrNo$4(value));
25324
+ },
25325
+ renderExport: getYesOrNo$4,
25326
+ headerMapping: {
25327
+ transformValue: getYesOrNo$4,
25276
25328
  renderExport: getYesOrNo$4
25277
- } : {}), isBomType ? {
25329
+ }
25330
+ }, {
25331
+ dataIndex: 'bomType',
25332
+ title: 'BOM类型',
25333
+ width: 150,
25334
+ render: function render(value) {
25335
+ return renderTextEllipsis(getTtxBomTypeName(value));
25336
+ },
25337
+ renderExport: getTtxBomTypeName,
25338
+ headerMapping: {
25339
+ transformValue: getTtxBomTypeName,
25278
25340
  renderExport: getTtxBomTypeName
25279
- } : {});
25341
+ }
25342
+ }, {
25343
+ dataIndex: 'bomSkuCode',
25344
+ title: 'BOM商品编码',
25345
+ width: 150,
25346
+ render: renderTextEllipsis
25347
+ }, {
25348
+ dataIndex: 'platformSpuCode',
25349
+ title: '商品货号',
25350
+ width: 150,
25351
+ render: renderTextEllipsis
25352
+ }, {
25353
+ dataIndex: 'platformSkuCode',
25354
+ title: 'SKU货号',
25355
+ width: 150,
25356
+ render: renderTextEllipsis
25357
+ }].map(function (item) {
25358
+ return _objectSpread2(_objectSpread2({}, item), {}, {
25359
+ align: 'center',
25360
+ ellipsis: true
25361
+ });
25280
25362
  })
25281
25363
  };
25282
25364
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/basic-components",
3
- "version": "2.10.9-beta.35",
3
+ "version": "2.10.9-beta.36",
4
4
  "description": "> TODO: description",
5
5
  "homepage": "",
6
6
  "license": "ISC",
@@ -66,5 +66,5 @@
66
66
  "publishConfig": {
67
67
  "access": "public"
68
68
  },
69
- "gitHead": "5b9292c9d078538ec783852f96f41cac6a3d12e7"
69
+ "gitHead": "e1a69e0dda71023cde183e1f0d7e07cb87921d46"
70
70
  }