@kmkf-fe-packages/basic-components 2.2.13-beta.103 → 2.2.13-beta.106

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
@@ -8712,6 +8712,25 @@ var processWdtAftersaleGoods = function processWdtAftersaleGoods(templateColumns
8712
8712
  };
8713
8713
  };
8714
8714
  };
8715
+ var processJstAftersaleGoods = function processJstAftersaleGoods(templateColumns) {
8716
+ return function (getValue) {
8717
+ return function (nex) {
8718
+ var _values = {
8719
+ jstAftersaleGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_jstAftersaleGoods")), []),
8720
+ shopCode: getValue("".concat(nex.uniqueKey, "_shopCode"))
8721
+ };
8722
+ var orderNo = '';
8723
+ var tradeId = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
8724
+ return col.workOrderComponentType === 'TRADE_ID_INPUT';
8725
+ });
8726
+ if (tradeId) {
8727
+ orderNo = getValue("".concat(tradeId.uniqueKey, "_").concat(updateWorkTypeKeys[tradeId.workOrderComponentType]));
8728
+ }
8729
+ _values.orderNo = orderNo;
8730
+ return _defineProperty({}, nex.uniqueKey, _values);
8731
+ };
8732
+ };
8733
+ };
8715
8734
  var processBsE3Goods = function processBsE3Goods(templateColumns) {
8716
8735
  return function (getValue) {
8717
8736
  return function (nex, config) {
@@ -9189,14 +9208,14 @@ var processJstReturnGoods = function processJstReturnGoods(templateColumns) {
9189
9208
  };
9190
9209
  var processLabel = function processLabel(getValue) {
9191
9210
  return function (nex, config) {
9192
- var _ref73;
9193
- return _ref73 = {}, _defineProperty(_ref73, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_label")), [])), _defineProperty(_ref73, "".concat(nex.uniqueKey, "_label"), jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_label")), [])), _ref73;
9211
+ var _ref74;
9212
+ return _ref74 = {}, _defineProperty(_ref74, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_label")), [])), _defineProperty(_ref74, "".concat(nex.uniqueKey, "_label"), jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_label")), [])), _ref74;
9194
9213
  };
9195
9214
  };
9196
9215
  var processMemberLevel = function processMemberLevel(getValue) {
9197
9216
  return function (nex, config) {
9198
- var _ref74;
9199
- return _ref74 = {}, _defineProperty(_ref74, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_memberLevel")), [])), _defineProperty(_ref74, "".concat(nex.uniqueKey, "_memberLevel"), jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_memberLevel")), [])), _ref74;
9217
+ var _ref75;
9218
+ return _ref75 = {}, _defineProperty(_ref75, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_memberLevel")), [])), _defineProperty(_ref75, "".concat(nex.uniqueKey, "_memberLevel"), jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_memberLevel")), [])), _ref75;
9200
9219
  };
9201
9220
  };
9202
9221
  var processAfterSalesOrderId = function processAfterSalesOrderId(getValue) {
@@ -9315,6 +9334,7 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
9315
9334
  BS_GOODS: processBsGoods,
9316
9335
  WDT_GOODS: processWdtGoods(templateColumns),
9317
9336
  WDT_AFTERSALE_GOODS: processWdtAftersaleGoods(templateColumns),
9337
+ JST_AFTERSALE_GOODS: processJstAftersaleGoods(templateColumns),
9318
9338
  BS_E3_GOODS: processBsE3Goods(templateColumns),
9319
9339
  GY_GOODS: processGyGoods(templateColumns),
9320
9340
  KM_GOODS: processKmGoods(templateColumns),
@@ -20625,7 +20645,161 @@ var getColumns$5 = function getColumns() {
20625
20645
  }
20626
20646
  }) : renderTextEllipsis(val);
20627
20647
  }
20628
- }].map(fillAttrs)
20648
+ }].map(fillAttrs),
20649
+ // jst售后商品信息
20650
+ JST_AFTERSALE_GOODS: [{
20651
+ dataIndex: 'asId',
20652
+ title: "\u805A\u6C34\u6F6D\u552E\u540E\u5355\u53F7",
20653
+ width: 200,
20654
+ align: 'center',
20655
+ ellipsis: true,
20656
+ render: renderTextEllipsis
20657
+ }, {
20658
+ dataIndex: 'asiId',
20659
+ title: "\u552E\u540E\u5B50\u5355\u53F7",
20660
+ width: 200,
20661
+ align: 'center',
20662
+ ellipsis: true,
20663
+ render: renderTextEllipsis
20664
+ }, {
20665
+ dataIndex: 'outerOiId',
20666
+ title: "\u5B50\u8BA2\u5355\u53F7",
20667
+ width: 200,
20668
+ align: 'center',
20669
+ ellipsis: true,
20670
+ render: renderTextEllipsis
20671
+ }, {
20672
+ dataIndex: 'pic',
20673
+ title: "\u56FE\u7247",
20674
+ width: 100,
20675
+ align: 'center',
20676
+ render: function render(val) {
20677
+ return /*#__PURE__*/React.createElement(Image, {
20678
+ width: 30,
20679
+ src: val
20680
+ });
20681
+ },
20682
+ headerComponentType: 'pic'
20683
+ }, {
20684
+ dataIndex: 'name',
20685
+ title: "\u5546\u54C1\u540D\u79F0",
20686
+ width: 250,
20687
+ align: 'center',
20688
+ ellipsis: true,
20689
+ render: renderTextEllipsis
20690
+ }, {
20691
+ dataIndex: 'skuId',
20692
+ title: "\u5546\u54C1\u7F16\u7801",
20693
+ width: 200,
20694
+ align: 'center',
20695
+ ellipsis: true,
20696
+ render: renderTextEllipsis
20697
+ }, {
20698
+ dataIndex: 'propertiesValue',
20699
+ title: "\u89C4\u683C\u5C5E\u6027\u503C",
20700
+ width: 150,
20701
+ align: 'center',
20702
+ ellipsis: true,
20703
+ render: renderTextEllipsis
20704
+ }, {
20705
+ dataIndex: 'qty',
20706
+ title: "\u7533\u8BF7\u6570\u91CF",
20707
+ width: 150,
20708
+ align: 'center',
20709
+ ellipsis: true,
20710
+ render: renderTextEllipsis
20711
+ }, {
20712
+ dataIndex: 'rQty',
20713
+ title: "\u5B9E\u6536\u9000\u8D27\u6570\u91CF",
20714
+ width: 150,
20715
+ align: 'center',
20716
+ ellipsis: true,
20717
+ render: renderTextEllipsis
20718
+ }, {
20719
+ dataIndex: 'defectiveQty',
20720
+ title: "\u6B21\u54C1\u6570\u91CF",
20721
+ width: 150,
20722
+ align: 'center',
20723
+ ellipsis: true,
20724
+ render: renderTextEllipsis
20725
+ }, {
20726
+ dataIndex: 'amount',
20727
+ title: "\u7533\u8BF7\u91D1\u989D",
20728
+ width: 150,
20729
+ align: 'center',
20730
+ ellipsis: true,
20731
+ render: renderTextEllipsis
20732
+ }, {
20733
+ dataIndex: 'shopAmount',
20734
+ title: "\u7EBF\u4E0A\u660E\u7EC6\u91D1\u989D",
20735
+ width: 150,
20736
+ align: 'center',
20737
+ ellipsis: true,
20738
+ render: renderTextEllipsis
20739
+ }, {
20740
+ dataIndex: 'price',
20741
+ title: "\u5355\u4EF7",
20742
+ width: 150,
20743
+ align: 'center',
20744
+ ellipsis: true,
20745
+ render: renderTextEllipsis
20746
+ }, {
20747
+ dataIndex: 'combineSkuId',
20748
+ title: "\u7EC4\u5408\u5546\u54C1\u7F16\u7801",
20749
+ width: 200,
20750
+ align: 'center',
20751
+ ellipsis: true,
20752
+ render: renderTextEllipsis
20753
+ }, {
20754
+ dataIndex: 'shopSkuId',
20755
+ title: "\u5E97\u94FA\u5546\u54C1\u7F16\u7801",
20756
+ width: 200,
20757
+ align: 'center',
20758
+ ellipsis: true,
20759
+ render: renderTextEllipsis
20760
+ }, {
20761
+ dataIndex: 'iId',
20762
+ title: "\u6B3E\u5F0F\u7F16\u7801",
20763
+ width: 200,
20764
+ align: 'center',
20765
+ ellipsis: true,
20766
+ render: renderTextEllipsis
20767
+ }, {
20768
+ dataIndex: 'type',
20769
+ title: "\u552E\u540E\u7C7B\u578B",
20770
+ width: 150,
20771
+ align: 'center',
20772
+ ellipsis: true,
20773
+ render: renderTextEllipsis
20774
+ }, {
20775
+ dataIndex: 'skuType',
20776
+ title: "\u5546\u54C1\u7C7B\u578B",
20777
+ width: 150,
20778
+ align: 'center',
20779
+ ellipsis: true,
20780
+ render: renderTextEllipsis
20781
+ }, {
20782
+ dataIndex: 'isGift',
20783
+ title: '是否赠品',
20784
+ width: 100,
20785
+ render: function render(val) {
20786
+ return /*#__PURE__*/React.createElement("span", null, typeof val !== 'boolean' ? '' : val ? '是' : '否');
20787
+ }
20788
+ }, {
20789
+ dataIndex: 'receiveDate',
20790
+ title: "\u5165\u4ED3\u65F6\u95F4",
20791
+ width: 200,
20792
+ align: 'center',
20793
+ ellipsis: true,
20794
+ render: renderTextEllipsis
20795
+ }, {
20796
+ dataIndex: 'remark',
20797
+ title: "\u660E\u7EC6\u5907\u6CE8",
20798
+ width: 200,
20799
+ align: 'center',
20800
+ ellipsis: true,
20801
+ render: renderTextEllipsis
20802
+ }]
20629
20803
  };
20630
20804
  };
20631
20805
 
@@ -22200,6 +22374,7 @@ var GoodItem$1 = function GoodItem(props) {
22200
22374
  templateDetail = _props$templateDetail === void 0 ? {} : _props$templateDetail,
22201
22375
  _props$hasSelectedSys = props.hasSelectedSystemOrder,
22202
22376
  hasSelectedSystemOrder = _props$hasSelectedSys === void 0 ? false : _props$hasSelectedSys;
22377
+ var canDelete = ['JST_AFTERSALE_GOODS'].includes(type);
22203
22378
  var uniqueKey = (tradeGoods === null || tradeGoods === void 0 ? void 0 : tradeGoods.uniqueKey) || 'uuid';
22204
22379
  // 监听聚水潭退货商品
22205
22380
  var jstReturnGoods = Form === null || Form === void 0 ? void 0 : Form.useWatch('3979edfd6d', form);
@@ -22290,6 +22465,7 @@ var GoodItem$1 = function GoodItem(props) {
22290
22465
  case 'JST_REISSUE_GOODS':
22291
22466
  case 'JST_EXCHANGE_GOODS':
22292
22467
  case 'JST_RETURN_GOODS':
22468
+ case 'JST_AFTERSALE_GOODS':
22293
22469
  case 'GY_REISSUE_GOODS':
22294
22470
  case 'GY_RETURN_GOODS':
22295
22471
  case 'KM_GOODS':
@@ -22382,7 +22558,7 @@ var GoodItem$1 = function GoodItem(props) {
22382
22558
  render: function render(val, record, index) {
22383
22559
  return /*#__PURE__*/React.createElement(HoverTableRowDeleteIcon, {
22384
22560
  index: index,
22385
- hoveredRowIndex: !disabled && record.canDelete ? hoveredRowIndex : null,
22561
+ hoveredRowIndex: !disabled && (record.canDelete || canDelete) ? hoveredRowIndex : null,
22386
22562
  handleClick: function handleClick() {
22387
22563
  return handleDelete(record, index);
22388
22564
  }
@@ -22397,7 +22573,7 @@ var GoodItem$1 = function GoodItem(props) {
22397
22573
  ellipsis: true,
22398
22574
  width: 100,
22399
22575
  render: function render(val, record, index) {
22400
- return record.canDelete ? /*#__PURE__*/React.createElement(Button, {
22576
+ return record.canDelete || canDelete ? /*#__PURE__*/React.createElement(Button, {
22401
22577
  type: "link",
22402
22578
  onClick: function onClick() {
22403
22579
  return handleDelete(record, index);
@@ -25061,13 +25237,23 @@ var componentMap$2 = {
25061
25237
  // pubsub 事件
25062
25238
  type: 'wdtAftersaleType',
25063
25239
  updateGoodsHandle: updateWdtAftersaleGoodsHandle,
25064
- selectListReturn: 'wdtAftersaleSelectListReturn',
25065
- selectList: 'wdtAftersaleSelectList',
25066
- reissueSelectList: 'wdtAftersaleReissueSelectList',
25067
- reissueSelectListReturn: 'wdtAftersaleReissueSelectListReturn',
25068
25240
  reissueDeleteGood: 'wdtAftersaleReissueDeleteGood'
25069
25241
  },
25070
25242
  getOrderList: wdtUtils.getWdtOrderListSingleton
25243
+ },
25244
+ JST_AFTERSALE_GOODS: {
25245
+ type: 'jstAftersale',
25246
+ key: 'jstAftersaleGoods',
25247
+ name: 'jst售后',
25248
+ orderNo: 'asId',
25249
+ goodDetailOrderNo: 'asId',
25250
+ showChangeBtn: false,
25251
+ eventNameMap: {
25252
+ // pubsub 事件
25253
+ type: 'jstAftersaleType',
25254
+ deleteGood: 'jstAftersaleDeleteGood'
25255
+ },
25256
+ getOrderList: jstUtils.getJstOrderListSingleton
25071
25257
  }
25072
25258
  };
25073
25259
  var CommonGoods = function CommonGoods(props) {
@@ -25228,6 +25414,7 @@ var CommonGoods = function CommonGoods(props) {
25228
25414
  var getGoodDetails = function getGoodDetails(_ref2) {
25229
25415
  var mode = _ref2.mode;
25230
25416
  var updateHandle = componentMap$2[compType].eventNameMap['updateGoodsHandle'];
25417
+ if (!updateHandle) return [];
25231
25418
  var goodDetails = updateHandle((value === null || value === void 0 ? void 0 : value.orders) || [], {
25232
25419
  orderBackGoodsLevel: props.orderBackGoodsLevel
25233
25420
  });
@@ -25242,6 +25429,7 @@ var CommonGoods = function CommonGoods(props) {
25242
25429
  var mode = _ref3.mode;
25243
25430
  var updateHandle = componentMap$2[compType].eventNameMap['updateGoodsHandle'];
25244
25431
  console.log('value?.allOrders', value, (value === null || value === void 0 ? void 0 : value.allOrders) || []);
25432
+ if (!updateHandle) return [];
25245
25433
  var goodDetails = updateHandle((value === null || value === void 0 ? void 0 : value.allOrders) || [], {
25246
25434
  orderBackGoodsLevel: props.orderBackGoodsLevel
25247
25435
  });
package/dist/index.js CHANGED
@@ -8727,6 +8727,25 @@ var processWdtAftersaleGoods = function processWdtAftersaleGoods(templateColumns
8727
8727
  };
8728
8728
  };
8729
8729
  };
8730
+ var processJstAftersaleGoods = function processJstAftersaleGoods(templateColumns) {
8731
+ return function (getValue) {
8732
+ return function (nex) {
8733
+ var _values = {
8734
+ jstAftersaleGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_jstAftersaleGoods")), []),
8735
+ shopCode: getValue("".concat(nex.uniqueKey, "_shopCode"))
8736
+ };
8737
+ var orderNo = '';
8738
+ var tradeId = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
8739
+ return col.workOrderComponentType === 'TRADE_ID_INPUT';
8740
+ });
8741
+ if (tradeId) {
8742
+ orderNo = getValue("".concat(tradeId.uniqueKey, "_").concat(updateWorkTypeKeys[tradeId.workOrderComponentType]));
8743
+ }
8744
+ _values.orderNo = orderNo;
8745
+ return _defineProperty({}, nex.uniqueKey, _values);
8746
+ };
8747
+ };
8748
+ };
8730
8749
  var processBsE3Goods = function processBsE3Goods(templateColumns) {
8731
8750
  return function (getValue) {
8732
8751
  return function (nex, config) {
@@ -9204,14 +9223,14 @@ var processJstReturnGoods = function processJstReturnGoods(templateColumns) {
9204
9223
  };
9205
9224
  var processLabel = function processLabel(getValue) {
9206
9225
  return function (nex, config) {
9207
- var _ref73;
9208
- return _ref73 = {}, _defineProperty(_ref73, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_label")), [])), _defineProperty(_ref73, "".concat(nex.uniqueKey, "_label"), jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_label")), [])), _ref73;
9226
+ var _ref74;
9227
+ return _ref74 = {}, _defineProperty(_ref74, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_label")), [])), _defineProperty(_ref74, "".concat(nex.uniqueKey, "_label"), jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_label")), [])), _ref74;
9209
9228
  };
9210
9229
  };
9211
9230
  var processMemberLevel = function processMemberLevel(getValue) {
9212
9231
  return function (nex, config) {
9213
- var _ref74;
9214
- return _ref74 = {}, _defineProperty(_ref74, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_memberLevel")), [])), _defineProperty(_ref74, "".concat(nex.uniqueKey, "_memberLevel"), jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_memberLevel")), [])), _ref74;
9232
+ var _ref75;
9233
+ return _ref75 = {}, _defineProperty(_ref75, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_memberLevel")), [])), _defineProperty(_ref75, "".concat(nex.uniqueKey, "_memberLevel"), jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_memberLevel")), [])), _ref75;
9215
9234
  };
9216
9235
  };
9217
9236
  var processAfterSalesOrderId = function processAfterSalesOrderId(getValue) {
@@ -9330,6 +9349,7 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
9330
9349
  BS_GOODS: processBsGoods,
9331
9350
  WDT_GOODS: processWdtGoods(templateColumns),
9332
9351
  WDT_AFTERSALE_GOODS: processWdtAftersaleGoods(templateColumns),
9352
+ JST_AFTERSALE_GOODS: processJstAftersaleGoods(templateColumns),
9333
9353
  BS_E3_GOODS: processBsE3Goods(templateColumns),
9334
9354
  GY_GOODS: processGyGoods(templateColumns),
9335
9355
  KM_GOODS: processKmGoods(templateColumns),
@@ -20640,7 +20660,161 @@ var getColumns$5 = function getColumns() {
20640
20660
  }
20641
20661
  }) : renderTextEllipsis(val);
20642
20662
  }
20643
- }].map(fillAttrs)
20663
+ }].map(fillAttrs),
20664
+ // jst售后商品信息
20665
+ JST_AFTERSALE_GOODS: [{
20666
+ dataIndex: 'asId',
20667
+ title: "\u805A\u6C34\u6F6D\u552E\u540E\u5355\u53F7",
20668
+ width: 200,
20669
+ align: 'center',
20670
+ ellipsis: true,
20671
+ render: renderTextEllipsis
20672
+ }, {
20673
+ dataIndex: 'asiId',
20674
+ title: "\u552E\u540E\u5B50\u5355\u53F7",
20675
+ width: 200,
20676
+ align: 'center',
20677
+ ellipsis: true,
20678
+ render: renderTextEllipsis
20679
+ }, {
20680
+ dataIndex: 'outerOiId',
20681
+ title: "\u5B50\u8BA2\u5355\u53F7",
20682
+ width: 200,
20683
+ align: 'center',
20684
+ ellipsis: true,
20685
+ render: renderTextEllipsis
20686
+ }, {
20687
+ dataIndex: 'pic',
20688
+ title: "\u56FE\u7247",
20689
+ width: 100,
20690
+ align: 'center',
20691
+ render: function render(val) {
20692
+ return /*#__PURE__*/React__default['default'].createElement(antd.Image, {
20693
+ width: 30,
20694
+ src: val
20695
+ });
20696
+ },
20697
+ headerComponentType: 'pic'
20698
+ }, {
20699
+ dataIndex: 'name',
20700
+ title: "\u5546\u54C1\u540D\u79F0",
20701
+ width: 250,
20702
+ align: 'center',
20703
+ ellipsis: true,
20704
+ render: renderTextEllipsis
20705
+ }, {
20706
+ dataIndex: 'skuId',
20707
+ title: "\u5546\u54C1\u7F16\u7801",
20708
+ width: 200,
20709
+ align: 'center',
20710
+ ellipsis: true,
20711
+ render: renderTextEllipsis
20712
+ }, {
20713
+ dataIndex: 'propertiesValue',
20714
+ title: "\u89C4\u683C\u5C5E\u6027\u503C",
20715
+ width: 150,
20716
+ align: 'center',
20717
+ ellipsis: true,
20718
+ render: renderTextEllipsis
20719
+ }, {
20720
+ dataIndex: 'qty',
20721
+ title: "\u7533\u8BF7\u6570\u91CF",
20722
+ width: 150,
20723
+ align: 'center',
20724
+ ellipsis: true,
20725
+ render: renderTextEllipsis
20726
+ }, {
20727
+ dataIndex: 'rQty',
20728
+ title: "\u5B9E\u6536\u9000\u8D27\u6570\u91CF",
20729
+ width: 150,
20730
+ align: 'center',
20731
+ ellipsis: true,
20732
+ render: renderTextEllipsis
20733
+ }, {
20734
+ dataIndex: 'defectiveQty',
20735
+ title: "\u6B21\u54C1\u6570\u91CF",
20736
+ width: 150,
20737
+ align: 'center',
20738
+ ellipsis: true,
20739
+ render: renderTextEllipsis
20740
+ }, {
20741
+ dataIndex: 'amount',
20742
+ title: "\u7533\u8BF7\u91D1\u989D",
20743
+ width: 150,
20744
+ align: 'center',
20745
+ ellipsis: true,
20746
+ render: renderTextEllipsis
20747
+ }, {
20748
+ dataIndex: 'shopAmount',
20749
+ title: "\u7EBF\u4E0A\u660E\u7EC6\u91D1\u989D",
20750
+ width: 150,
20751
+ align: 'center',
20752
+ ellipsis: true,
20753
+ render: renderTextEllipsis
20754
+ }, {
20755
+ dataIndex: 'price',
20756
+ title: "\u5355\u4EF7",
20757
+ width: 150,
20758
+ align: 'center',
20759
+ ellipsis: true,
20760
+ render: renderTextEllipsis
20761
+ }, {
20762
+ dataIndex: 'combineSkuId',
20763
+ title: "\u7EC4\u5408\u5546\u54C1\u7F16\u7801",
20764
+ width: 200,
20765
+ align: 'center',
20766
+ ellipsis: true,
20767
+ render: renderTextEllipsis
20768
+ }, {
20769
+ dataIndex: 'shopSkuId',
20770
+ title: "\u5E97\u94FA\u5546\u54C1\u7F16\u7801",
20771
+ width: 200,
20772
+ align: 'center',
20773
+ ellipsis: true,
20774
+ render: renderTextEllipsis
20775
+ }, {
20776
+ dataIndex: 'iId',
20777
+ title: "\u6B3E\u5F0F\u7F16\u7801",
20778
+ width: 200,
20779
+ align: 'center',
20780
+ ellipsis: true,
20781
+ render: renderTextEllipsis
20782
+ }, {
20783
+ dataIndex: 'type',
20784
+ title: "\u552E\u540E\u7C7B\u578B",
20785
+ width: 150,
20786
+ align: 'center',
20787
+ ellipsis: true,
20788
+ render: renderTextEllipsis
20789
+ }, {
20790
+ dataIndex: 'skuType',
20791
+ title: "\u5546\u54C1\u7C7B\u578B",
20792
+ width: 150,
20793
+ align: 'center',
20794
+ ellipsis: true,
20795
+ render: renderTextEllipsis
20796
+ }, {
20797
+ dataIndex: 'isGift',
20798
+ title: '是否赠品',
20799
+ width: 100,
20800
+ render: function render(val) {
20801
+ return /*#__PURE__*/React__default['default'].createElement("span", null, typeof val !== 'boolean' ? '' : val ? '是' : '否');
20802
+ }
20803
+ }, {
20804
+ dataIndex: 'receiveDate',
20805
+ title: "\u5165\u4ED3\u65F6\u95F4",
20806
+ width: 200,
20807
+ align: 'center',
20808
+ ellipsis: true,
20809
+ render: renderTextEllipsis
20810
+ }, {
20811
+ dataIndex: 'remark',
20812
+ title: "\u660E\u7EC6\u5907\u6CE8",
20813
+ width: 200,
20814
+ align: 'center',
20815
+ ellipsis: true,
20816
+ render: renderTextEllipsis
20817
+ }]
20644
20818
  };
20645
20819
  };
20646
20820
 
@@ -22215,6 +22389,7 @@ var GoodItem$1 = function GoodItem(props) {
22215
22389
  templateDetail = _props$templateDetail === void 0 ? {} : _props$templateDetail,
22216
22390
  _props$hasSelectedSys = props.hasSelectedSystemOrder,
22217
22391
  hasSelectedSystemOrder = _props$hasSelectedSys === void 0 ? false : _props$hasSelectedSys;
22392
+ var canDelete = ['JST_AFTERSALE_GOODS'].includes(type);
22218
22393
  var uniqueKey = (tradeGoods === null || tradeGoods === void 0 ? void 0 : tradeGoods.uniqueKey) || 'uuid';
22219
22394
  // 监听聚水潭退货商品
22220
22395
  var jstReturnGoods = antd.Form === null || antd.Form === void 0 ? void 0 : antd.Form.useWatch('3979edfd6d', form);
@@ -22305,6 +22480,7 @@ var GoodItem$1 = function GoodItem(props) {
22305
22480
  case 'JST_REISSUE_GOODS':
22306
22481
  case 'JST_EXCHANGE_GOODS':
22307
22482
  case 'JST_RETURN_GOODS':
22483
+ case 'JST_AFTERSALE_GOODS':
22308
22484
  case 'GY_REISSUE_GOODS':
22309
22485
  case 'GY_RETURN_GOODS':
22310
22486
  case 'KM_GOODS':
@@ -22397,7 +22573,7 @@ var GoodItem$1 = function GoodItem(props) {
22397
22573
  render: function render(val, record, index) {
22398
22574
  return /*#__PURE__*/React__default['default'].createElement(HoverTableRowDeleteIcon, {
22399
22575
  index: index,
22400
- hoveredRowIndex: !disabled && record.canDelete ? hoveredRowIndex : null,
22576
+ hoveredRowIndex: !disabled && (record.canDelete || canDelete) ? hoveredRowIndex : null,
22401
22577
  handleClick: function handleClick() {
22402
22578
  return handleDelete(record, index);
22403
22579
  }
@@ -22412,7 +22588,7 @@ var GoodItem$1 = function GoodItem(props) {
22412
22588
  ellipsis: true,
22413
22589
  width: 100,
22414
22590
  render: function render(val, record, index) {
22415
- return record.canDelete ? /*#__PURE__*/React__default['default'].createElement(antd.Button, {
22591
+ return record.canDelete || canDelete ? /*#__PURE__*/React__default['default'].createElement(antd.Button, {
22416
22592
  type: "link",
22417
22593
  onClick: function onClick() {
22418
22594
  return handleDelete(record, index);
@@ -25076,13 +25252,23 @@ var componentMap$2 = {
25076
25252
  // pubsub 事件
25077
25253
  type: 'wdtAftersaleType',
25078
25254
  updateGoodsHandle: kmkfUtils.updateWdtAftersaleGoodsHandle,
25079
- selectListReturn: 'wdtAftersaleSelectListReturn',
25080
- selectList: 'wdtAftersaleSelectList',
25081
- reissueSelectList: 'wdtAftersaleReissueSelectList',
25082
- reissueSelectListReturn: 'wdtAftersaleReissueSelectListReturn',
25083
25255
  reissueDeleteGood: 'wdtAftersaleReissueDeleteGood'
25084
25256
  },
25085
25257
  getOrderList: wdtUtils.getWdtOrderListSingleton
25258
+ },
25259
+ JST_AFTERSALE_GOODS: {
25260
+ type: 'jstAftersale',
25261
+ key: 'jstAftersaleGoods',
25262
+ name: 'jst售后',
25263
+ orderNo: 'asId',
25264
+ goodDetailOrderNo: 'asId',
25265
+ showChangeBtn: false,
25266
+ eventNameMap: {
25267
+ // pubsub 事件
25268
+ type: 'jstAftersaleType',
25269
+ deleteGood: 'jstAftersaleDeleteGood'
25270
+ },
25271
+ getOrderList: jstUtils.getJstOrderListSingleton
25086
25272
  }
25087
25273
  };
25088
25274
  var CommonGoods = function CommonGoods(props) {
@@ -25243,6 +25429,7 @@ var CommonGoods = function CommonGoods(props) {
25243
25429
  var getGoodDetails = function getGoodDetails(_ref2) {
25244
25430
  var mode = _ref2.mode;
25245
25431
  var updateHandle = componentMap$2[compType].eventNameMap['updateGoodsHandle'];
25432
+ if (!updateHandle) return [];
25246
25433
  var goodDetails = updateHandle((value === null || value === void 0 ? void 0 : value.orders) || [], {
25247
25434
  orderBackGoodsLevel: props.orderBackGoodsLevel
25248
25435
  });
@@ -25257,6 +25444,7 @@ var CommonGoods = function CommonGoods(props) {
25257
25444
  var mode = _ref3.mode;
25258
25445
  var updateHandle = componentMap$2[compType].eventNameMap['updateGoodsHandle'];
25259
25446
  console.log('value?.allOrders', value, (value === null || value === void 0 ? void 0 : value.allOrders) || []);
25447
+ if (!updateHandle) return [];
25260
25448
  var goodDetails = updateHandle((value === null || value === void 0 ? void 0 : value.allOrders) || [], {
25261
25449
  orderBackGoodsLevel: props.orderBackGoodsLevel
25262
25450
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/basic-components",
3
- "version": "2.2.13-beta.103",
3
+ "version": "2.2.13-beta.106",
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.96",
23
+ "@kmkf-fe-packages/kmkf-utils": "2.2.13-beta.106",
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": "075c24c64f23a9aac40ccb08d5604632392b0a8b"
69
+ "gitHead": "211d2753b2eb72cd6f96858f90b5913f6699f282"
70
70
  }