@kmkf-fe-packages/basic-components 2.2.31 → 2.2.32

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.js CHANGED
@@ -581,6 +581,36 @@ var ApaasDate = function ApaasDate(props) {
581
581
  }, otherProps));
582
582
  };
583
583
 
584
+ var noFallbackUrlList = ['https://kefu.kuaimai.com', 'https://kefuab.kuaimai.com/'];
585
+ function ApaasImage(props) {
586
+ var _useState = React.useState(false),
587
+ _useState2 = _slicedToArray(_useState, 2),
588
+ isImageError = _useState2[0],
589
+ setIsImageError = _useState2[1];
590
+ var finalSrc = React.useMemo(function () {
591
+ var fallbackUrl = props.src && props.src.startsWith('http') && !noFallbackUrlList.some(function (url) {
592
+ var _props$src;
593
+ return (_props$src = props.src) === null || _props$src === void 0 ? void 0 : _props$src.startsWith(url);
594
+ }) ? "http://kmgdimages.ycy-inc.cn/?url=".concat(props.src) : props.src;
595
+ return isImageError ? fallbackUrl : props.src;
596
+ }, [props.src, isImageError]);
597
+ // 当 src 改变时,重置错误状态
598
+ React.useEffect(function () {
599
+ setIsImageError(false);
600
+ }, [props.src]);
601
+ // 处理图片加载错误
602
+ var handleError = function handleError(e) {
603
+ var _props$onError;
604
+ setIsImageError(true);
605
+ // 如果用户传入了 onError,也要调用
606
+ (_props$onError = props.onError) === null || _props$onError === void 0 ? void 0 : _props$onError.call(props, e);
607
+ };
608
+ return /*#__PURE__*/React__default['default'].createElement(antd.Image, _objectSpread2(_objectSpread2({}, props), {}, {
609
+ src: finalSrc,
610
+ onError: handleError
611
+ }));
612
+ }
613
+
584
614
  var _excluded$1 = ["isNumber", "replaceWarn", "precision"];
585
615
  function ApaasInput(props) {
586
616
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
@@ -8123,6 +8153,11 @@ var systemOrderMap = {
8123
8153
  no: 'jstSystemOrderNo',
8124
8154
  ids: 'jstSystemSelectIds',
8125
8155
  order: 'jstSystemShowOrder'
8156
+ },
8157
+ WDT_RETURN_BILL_NO: {
8158
+ no: 'wdtReturnBillNo',
8159
+ ids: 'wdtReturnBillSelectIds',
8160
+ order: 'wdtReturnBillShowOrder'
8126
8161
  }
8127
8162
  };
8128
8163
  //直接将key component 添加到 transformWorkOrderData中的componentProcessors
@@ -8695,6 +8730,52 @@ var processWdtGoods = function processWdtGoods(templateColumns) {
8695
8730
  };
8696
8731
  };
8697
8732
  };
8733
+ var processWdtAftersaleGoods = function processWdtAftersaleGoods(templateColumns) {
8734
+ return function (getValue) {
8735
+ return function (nex, config) {
8736
+ var _values = {
8737
+ wdtAftersaleGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_wdtAftersaleGoods")), []),
8738
+ shopCode: getValue("".concat(nex.uniqueKey, "_shopCode"))
8739
+ };
8740
+ var selectIds = [];
8741
+ var orderNo = '';
8742
+ var tradeId = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
8743
+ return col.workOrderComponentType === 'TRADE_ID_INPUT';
8744
+ });
8745
+ if (tradeId) {
8746
+ orderNo = getValue("".concat(tradeId.uniqueKey, "_").concat(updateWorkTypeKeys[tradeId.workOrderComponentType]));
8747
+ }
8748
+ var wdtAftersaleSystemOrder = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
8749
+ return col.workOrderComponentType === 'WDT_RETURN_BILL_NO';
8750
+ });
8751
+ if (wdtAftersaleSystemOrder) {
8752
+ selectIds = jsonParseSecurity(getValue("".concat(wdtAftersaleSystemOrder.uniqueKey, "_").concat(systemOrderMap[wdtAftersaleSystemOrder.workOrderComponentType].ids)), []);
8753
+ }
8754
+ _values.selectIds = selectIds;
8755
+ _values.orderNo = orderNo;
8756
+ return _defineProperty({}, nex.uniqueKey, _values);
8757
+ };
8758
+ };
8759
+ };
8760
+ var processJstAftersaleGoods = function processJstAftersaleGoods(templateColumns) {
8761
+ return function (getValue) {
8762
+ return function (nex) {
8763
+ var _values = {
8764
+ jstAftersaleGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_jstAftersaleGoods")), []),
8765
+ shopCode: getValue("".concat(nex.uniqueKey, "_shopCode"))
8766
+ };
8767
+ var orderNo = '';
8768
+ var tradeId = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
8769
+ return col.workOrderComponentType === 'TRADE_ID_INPUT';
8770
+ });
8771
+ if (tradeId) {
8772
+ orderNo = getValue("".concat(tradeId.uniqueKey, "_").concat(updateWorkTypeKeys[tradeId.workOrderComponentType]));
8773
+ }
8774
+ _values.orderNo = orderNo;
8775
+ return _defineProperty({}, nex.uniqueKey, _values);
8776
+ };
8777
+ };
8778
+ };
8698
8779
  var processBsE3Goods = function processBsE3Goods(templateColumns) {
8699
8780
  return function (getValue) {
8700
8781
  return function (nex, config) {
@@ -8927,11 +9008,16 @@ var processErpSystemOrder = function processErpSystemOrder(getValue) {
8927
9008
  no: 'jstSystemOrderNo',
8928
9009
  ids: 'jstSystemSelectIds',
8929
9010
  order: 'jstSystemShowOrder'
9011
+ },
9012
+ WDT_RETURN_BILL_NO: {
9013
+ no: 'wdtReturnBillNo',
9014
+ ids: 'wdtReturnBillSelectIds',
9015
+ order: 'wdtReturnBillShowOrder'
8930
9016
  }
8931
9017
  };
8932
9018
  return _defineProperty({}, nex.uniqueKey, {
8933
9019
  orderNo: getValue("".concat(nex.uniqueKey, "_").concat(systemOrderMap[nex.workOrderComponentType].no)),
8934
- orders: [],
9020
+ orders: nex.workOrderComponentType === 'WDT_RETURN_BILL_NO' ? jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_").concat(systemOrderMap[nex.workOrderComponentType].order)), []) : [],
8935
9021
  selectIds: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_").concat(systemOrderMap[nex.workOrderComponentType].ids)), []),
8936
9022
  showOrderInfo: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_").concat(systemOrderMap[nex.workOrderComponentType].order)), [])
8937
9023
  });
@@ -9167,14 +9253,14 @@ var processJstReturnGoods = function processJstReturnGoods(templateColumns) {
9167
9253
  };
9168
9254
  var processLabel = function processLabel(getValue) {
9169
9255
  return function (nex, config) {
9170
- var _ref72;
9171
- return _ref72 = {}, _defineProperty(_ref72, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_label")), [])), _defineProperty(_ref72, "".concat(nex.uniqueKey, "_label"), jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_label")), [])), _ref72;
9256
+ var _ref74;
9257
+ 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;
9172
9258
  };
9173
9259
  };
9174
9260
  var processMemberLevel = function processMemberLevel(getValue) {
9175
9261
  return function (nex, config) {
9176
- var _ref73;
9177
- return _ref73 = {}, _defineProperty(_ref73, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_memberLevel")), [])), _defineProperty(_ref73, "".concat(nex.uniqueKey, "_memberLevel"), jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_memberLevel")), [])), _ref73;
9262
+ var _ref75;
9263
+ 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;
9178
9264
  };
9179
9265
  };
9180
9266
  var processAfterSalesOrderId = function processAfterSalesOrderId(getValue) {
@@ -9292,6 +9378,8 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
9292
9378
  BS_POSTING: processBsPosting,
9293
9379
  BS_GOODS: processBsGoods,
9294
9380
  WDT_GOODS: processWdtGoods(templateColumns),
9381
+ WDT_AFTERSALE_GOODS: processWdtAftersaleGoods(templateColumns),
9382
+ JST_AFTERSALE_GOODS: processJstAftersaleGoods(templateColumns),
9295
9383
  BS_E3_GOODS: processBsE3Goods(templateColumns),
9296
9384
  GY_GOODS: processGyGoods(templateColumns),
9297
9385
  KM_GOODS: processKmGoods(templateColumns),
@@ -9308,6 +9396,7 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
9308
9396
  KM_SYSTEM_ORDER: processErpSystemOrder,
9309
9397
  WLN_SYSTEM_ORDER: processErpSystemOrder,
9310
9398
  WDT_SYSTEM_ORDER: processErpSystemOrder,
9399
+ WDT_RETURN_BILL_NO: processErpSystemOrder,
9311
9400
  BS_E3_SYSTEM_ORDER: processErpSystemOrder,
9312
9401
  JST_SYSTEM_ORDER: processErpSystemOrder,
9313
9402
  GY_SYSTEM_ORDER: processErpSystemOrder,
@@ -19344,6 +19433,141 @@ var getColumns$2 = function getColumns(_ref) {
19344
19433
  }
19345
19434
  }) : /*#__PURE__*/React__default['default'].createElement("span", null, typeMap[val]);
19346
19435
  }
19436
+ }],
19437
+ // 旺店通售后商品信息
19438
+ WDT_AFTERSALE_GOODS: [{
19439
+ dataIndex: 'oid',
19440
+ title: "\u539F\u59CB\u5B50\u5355\u53F7",
19441
+ width: 200,
19442
+ align: 'center',
19443
+ ellipsis: true,
19444
+ render: renderTextEllipsis
19445
+ }, {
19446
+ dataIndex: 'goodsName',
19447
+ title: "\u8D27\u54C1\u540D\u79F0",
19448
+ width: 250,
19449
+ align: 'center',
19450
+ ellipsis: true,
19451
+ render: renderTextEllipsis
19452
+ }, {
19453
+ dataIndex: 'goodsNo',
19454
+ title: "\u8D27\u54C1\u7F16\u53F7",
19455
+ width: 150,
19456
+ align: 'center',
19457
+ ellipsis: true,
19458
+ render: renderTextEllipsis
19459
+ }, {
19460
+ dataIndex: 'specName',
19461
+ title: "\u89C4\u683C\u540D\u79F0",
19462
+ width: 150,
19463
+ align: 'center',
19464
+ ellipsis: true,
19465
+ render: renderTextEllipsis
19466
+ }, {
19467
+ dataIndex: 'specNo',
19468
+ title: "\u5546\u5BB6\u7F16\u7801",
19469
+ width: 200,
19470
+ align: 'center',
19471
+ ellipsis: true,
19472
+ render: renderTextEllipsis
19473
+ }, {
19474
+ dataIndex: 'specCode',
19475
+ title: "\u89C4\u683C\u7F16\u53F7",
19476
+ width: 150,
19477
+ align: 'center',
19478
+ ellipsis: true,
19479
+ render: renderTextEllipsis
19480
+ }, {
19481
+ dataIndex: 'barcode',
19482
+ title: "\u6761\u7801",
19483
+ width: 150,
19484
+ align: 'center',
19485
+ ellipsis: true,
19486
+ render: renderTextEllipsis
19487
+ }, {
19488
+ dataIndex: 'apiGoodsName',
19489
+ title: "\u5E73\u53F0\u8D27\u54C1\u540D\u79F0",
19490
+ width: 250,
19491
+ align: 'center',
19492
+ ellipsis: true,
19493
+ render: renderTextEllipsis
19494
+ }, {
19495
+ dataIndex: 'apiSpecName',
19496
+ title: "\u5E73\u53F0\u89C4\u683C\u540D\u79F0",
19497
+ width: 250,
19498
+ align: 'center',
19499
+ ellipsis: true,
19500
+ render: renderTextEllipsis
19501
+ }, {
19502
+ dataIndex: 'suiteName',
19503
+ title: "\u7EC4\u5408\u88C5\u540D\u79F0",
19504
+ width: 150,
19505
+ align: 'center',
19506
+ ellipsis: true,
19507
+ render: renderTextEllipsis
19508
+ }, {
19509
+ dataIndex: 'suiteNo',
19510
+ title: "\u7EC4\u5408\u88C5\u7F16\u53F7",
19511
+ width: 150,
19512
+ align: 'center',
19513
+ ellipsis: true,
19514
+ render: renderTextEllipsis
19515
+ }, {
19516
+ dataIndex: 'stockinNum',
19517
+ title: "\u5165\u5E93\u6570\u91CF",
19518
+ width: 150,
19519
+ align: 'center',
19520
+ ellipsis: true,
19521
+ render: renderTextEllipsis
19522
+ }, {
19523
+ dataIndex: 'refundNum',
19524
+ title: "\u9000\u6B3E\u6570\u91CF",
19525
+ width: 150,
19526
+ align: 'center',
19527
+ ellipsis: true,
19528
+ render: renderTextEllipsis
19529
+ }, {
19530
+ dataIndex: 'totalAmount',
19531
+ title: "\u9000\u8D27\u603B\u989D",
19532
+ width: 150,
19533
+ align: 'center',
19534
+ ellipsis: true,
19535
+ render: renderTextEllipsis
19536
+ }, {
19537
+ dataIndex: 'refundAmount',
19538
+ title: "\u5DF2\u9000\u6B3E\u91D1\u989D",
19539
+ width: 150,
19540
+ align: 'center',
19541
+ ellipsis: true,
19542
+ render: renderTextEllipsis
19543
+ }, {
19544
+ dataIndex: 'orderNum',
19545
+ title: "\u5B9E\u9645\u53D1\u51FA\u6570\u91CF",
19546
+ width: 150,
19547
+ align: 'center',
19548
+ ellipsis: true,
19549
+ render: renderTextEllipsis
19550
+ }, {
19551
+ dataIndex: 'price',
19552
+ title: "\u4EF7\u683C",
19553
+ width: 150,
19554
+ align: 'center',
19555
+ ellipsis: true,
19556
+ render: renderTextEllipsis
19557
+ }, {
19558
+ dataIndex: 'originalPrice',
19559
+ title: "\u539F\u4EF7",
19560
+ width: 150,
19561
+ align: 'center',
19562
+ ellipsis: true,
19563
+ render: renderTextEllipsis
19564
+ }, {
19565
+ dataIndex: 'giftType',
19566
+ title: "\u8D60\u54C1\u7C7B\u578B",
19567
+ width: 150,
19568
+ align: 'center',
19569
+ ellipsis: true,
19570
+ render: renderTextEllipsis
19347
19571
  }]
19348
19572
  };
19349
19573
  };
@@ -19960,7 +20184,7 @@ var getColumns$5 = function getColumns() {
19960
20184
  align: 'center',
19961
20185
  width: 100,
19962
20186
  render: function render(val) {
19963
- return /*#__PURE__*/React__default['default'].createElement(antd.Image, {
20187
+ return /*#__PURE__*/React__default['default'].createElement(ApaasImage, {
19964
20188
  width: 30,
19965
20189
  src: val
19966
20190
  });
@@ -20092,7 +20316,7 @@ var getColumns$5 = function getColumns() {
20092
20316
  align: 'center',
20093
20317
  width: 100,
20094
20318
  render: function render(val) {
20095
- return /*#__PURE__*/React__default['default'].createElement(antd.Image, {
20319
+ return /*#__PURE__*/React__default['default'].createElement(ApaasImage, {
20096
20320
  width: 30,
20097
20321
  src: val
20098
20322
  });
@@ -20235,7 +20459,7 @@ var getColumns$5 = function getColumns() {
20235
20459
  title: '商品图片',
20236
20460
  width: 100,
20237
20461
  render: function render(val) {
20238
- return /*#__PURE__*/React__default['default'].createElement(antd.Image, {
20462
+ return /*#__PURE__*/React__default['default'].createElement(ApaasImage, {
20239
20463
  width: 30,
20240
20464
  src: val
20241
20465
  });
@@ -20376,7 +20600,7 @@ var getColumns$5 = function getColumns() {
20376
20600
  title: '商品图片',
20377
20601
  width: 100,
20378
20602
  render: function render(val) {
20379
- return /*#__PURE__*/React__default['default'].createElement(antd.Image, {
20603
+ return /*#__PURE__*/React__default['default'].createElement(ApaasImage, {
20380
20604
  width: 30,
20381
20605
  src: val
20382
20606
  });
@@ -20464,7 +20688,169 @@ var getColumns$5 = function getColumns() {
20464
20688
  }
20465
20689
  }) : renderTextEllipsis(val);
20466
20690
  }
20467
- }].map(fillAttrs)
20691
+ }].map(fillAttrs),
20692
+ // jst售后商品信息
20693
+ JST_AFTERSALE_GOODS: [{
20694
+ dataIndex: 'asId',
20695
+ title: "\u805A\u6C34\u6F6D\u552E\u540E\u5355\u53F7",
20696
+ width: 200,
20697
+ align: 'center',
20698
+ ellipsis: true,
20699
+ render: renderTextEllipsis
20700
+ }, {
20701
+ dataIndex: 'asiId',
20702
+ title: "\u552E\u540E\u5B50\u5355\u53F7",
20703
+ width: 200,
20704
+ align: 'center',
20705
+ ellipsis: true,
20706
+ render: renderTextEllipsis
20707
+ }, {
20708
+ dataIndex: 'outerOiId',
20709
+ title: "\u5B50\u8BA2\u5355\u53F7",
20710
+ width: 200,
20711
+ align: 'center',
20712
+ ellipsis: true,
20713
+ render: renderTextEllipsis
20714
+ }, {
20715
+ dataIndex: 'pic',
20716
+ title: "\u56FE\u7247",
20717
+ width: 100,
20718
+ align: 'center',
20719
+ render: function render(val) {
20720
+ return /*#__PURE__*/React__default['default'].createElement(ApaasImage, {
20721
+ width: 30,
20722
+ src: val
20723
+ });
20724
+ },
20725
+ headerComponentType: 'pic'
20726
+ }, {
20727
+ dataIndex: 'name',
20728
+ title: "\u5546\u54C1\u540D\u79F0",
20729
+ width: 250,
20730
+ align: 'center',
20731
+ ellipsis: true,
20732
+ render: renderTextEllipsis
20733
+ }, {
20734
+ dataIndex: 'skuId',
20735
+ title: "\u5546\u54C1\u7F16\u7801",
20736
+ width: 200,
20737
+ align: 'center',
20738
+ ellipsis: true,
20739
+ render: renderTextEllipsis
20740
+ }, {
20741
+ dataIndex: 'propertiesValue',
20742
+ title: "\u89C4\u683C\u5C5E\u6027\u503C",
20743
+ width: 200,
20744
+ align: 'center',
20745
+ ellipsis: true,
20746
+ render: renderTextEllipsis
20747
+ }, {
20748
+ dataIndex: 'qty',
20749
+ title: "\u7533\u8BF7\u6570\u91CF",
20750
+ width: 150,
20751
+ align: 'center',
20752
+ ellipsis: true,
20753
+ render: renderTextEllipsis
20754
+ }, {
20755
+ dataIndex: 'rQty',
20756
+ title: "\u5B9E\u6536\u9000\u8D27\u6570\u91CF",
20757
+ width: 150,
20758
+ align: 'center',
20759
+ ellipsis: true,
20760
+ render: renderTextEllipsis
20761
+ }, {
20762
+ dataIndex: 'defectiveQty',
20763
+ title: "\u6B21\u54C1\u6570\u91CF",
20764
+ width: 150,
20765
+ align: 'center',
20766
+ ellipsis: true,
20767
+ render: renderTextEllipsis
20768
+ }, {
20769
+ dataIndex: 'amount',
20770
+ title: "\u7533\u8BF7\u91D1\u989D",
20771
+ width: 150,
20772
+ align: 'center',
20773
+ ellipsis: true,
20774
+ render: renderTextEllipsis
20775
+ }, {
20776
+ dataIndex: 'shopAmount',
20777
+ title: "\u7EBF\u4E0A\u660E\u7EC6\u91D1\u989D",
20778
+ width: 150,
20779
+ align: 'center',
20780
+ ellipsis: true,
20781
+ render: renderTextEllipsis
20782
+ }, {
20783
+ dataIndex: 'price',
20784
+ title: "\u5355\u4EF7",
20785
+ width: 150,
20786
+ align: 'center',
20787
+ ellipsis: true,
20788
+ render: renderTextEllipsis
20789
+ }, {
20790
+ dataIndex: 'combineSkuId',
20791
+ title: "\u7EC4\u5408\u5546\u54C1\u7F16\u7801",
20792
+ width: 250,
20793
+ align: 'center',
20794
+ ellipsis: true,
20795
+ render: renderTextEllipsis
20796
+ }, {
20797
+ dataIndex: 'shopSkuId',
20798
+ title: "\u5E97\u94FA\u5546\u54C1\u7F16\u7801",
20799
+ width: 200,
20800
+ align: 'center',
20801
+ ellipsis: true,
20802
+ render: renderTextEllipsis
20803
+ }, {
20804
+ dataIndex: 'iId',
20805
+ title: "\u6B3E\u5F0F\u7F16\u7801",
20806
+ width: 200,
20807
+ align: 'center',
20808
+ ellipsis: true,
20809
+ render: renderTextEllipsis
20810
+ }, {
20811
+ dataIndex: 'type',
20812
+ title: "\u552E\u540E\u7C7B\u578B",
20813
+ width: 150,
20814
+ align: 'center',
20815
+ ellipsis: true,
20816
+ render: renderTextEllipsis
20817
+ }, {
20818
+ dataIndex: 'skuType',
20819
+ title: "\u5546\u54C1\u7C7B\u578B",
20820
+ width: 150,
20821
+ align: 'center',
20822
+ ellipsis: true,
20823
+ render: renderTextEllipsis
20824
+ }, {
20825
+ dataIndex: 'isGift',
20826
+ title: '是否赠品',
20827
+ width: 100,
20828
+ render: function render(val) {
20829
+ return /*#__PURE__*/React__default['default'].createElement("span", null, typeof val !== 'boolean' ? '' : val ? '是' : '否');
20830
+ },
20831
+ headerMapping: {
20832
+ transformValue: function transformValue(val) {
20833
+ return typeof val !== 'boolean' ? '' : val ? '是' : '否';
20834
+ },
20835
+ renderExport: function renderExport(val) {
20836
+ return typeof val !== 'boolean' ? '' : val ? '是' : '否';
20837
+ }
20838
+ }
20839
+ }, {
20840
+ dataIndex: 'receiveDate',
20841
+ title: "\u5165\u4ED3\u65F6\u95F4",
20842
+ width: 200,
20843
+ align: 'center',
20844
+ ellipsis: true,
20845
+ render: renderTextEllipsis
20846
+ }, {
20847
+ dataIndex: 'remark',
20848
+ title: "\u660E\u7EC6\u5907\u6CE8",
20849
+ width: 200,
20850
+ align: 'center',
20851
+ ellipsis: true,
20852
+ render: renderTextEllipsis
20853
+ }]
20468
20854
  };
20469
20855
  };
20470
20856
 
@@ -21823,6 +22209,7 @@ var systemOrderNoMap = {
21823
22209
  GY_GOODS: 'code',
21824
22210
  KM_GOODS: 'sid',
21825
22211
  WDT_GOODS: 'tradeNo',
22212
+ WDT_AFTERSALE_GOODS: 'tid',
21826
22213
  BS_E3_GOODS: 'orderSn',
21827
22214
  JST_GOODS: 'oId',
21828
22215
  WLN_GOODS: 'tradeNo',
@@ -22026,6 +22413,7 @@ var GoodItem$1 = function GoodItem(props) {
22026
22413
  templateDetail = _props$templateDetail === void 0 ? {} : _props$templateDetail,
22027
22414
  _props$hasSelectedSys = props.hasSelectedSystemOrder,
22028
22415
  hasSelectedSystemOrder = _props$hasSelectedSys === void 0 ? false : _props$hasSelectedSys;
22416
+ var canDelete = ['JST_AFTERSALE_GOODS'].includes(type);
22029
22417
  var uniqueKey = (tradeGoods === null || tradeGoods === void 0 ? void 0 : tradeGoods.uniqueKey) || 'uuid';
22030
22418
  // 监听聚水潭退货商品
22031
22419
  var jstReturnGoods = antd.Form === null || antd.Form === void 0 ? void 0 : antd.Form.useWatch('3979edfd6d', form);
@@ -22105,6 +22493,7 @@ var GoodItem$1 = function GoodItem(props) {
22105
22493
  var columns = [];
22106
22494
  switch (type) {
22107
22495
  case 'WDT_GOODS':
22496
+ case 'WDT_AFTERSALE_GOODS':
22108
22497
  case 'WDT_RETURN_GOODS':
22109
22498
  case 'WDT_EXCHANGE_GOODS':
22110
22499
  case 'BS_E3_GOODS':
@@ -22115,6 +22504,7 @@ var GoodItem$1 = function GoodItem(props) {
22115
22504
  case 'JST_REISSUE_GOODS':
22116
22505
  case 'JST_EXCHANGE_GOODS':
22117
22506
  case 'JST_RETURN_GOODS':
22507
+ case 'JST_AFTERSALE_GOODS':
22118
22508
  case 'GY_REISSUE_GOODS':
22119
22509
  case 'GY_RETURN_GOODS':
22120
22510
  case 'KM_GOODS':
@@ -22207,7 +22597,7 @@ var GoodItem$1 = function GoodItem(props) {
22207
22597
  render: function render(val, record, index) {
22208
22598
  return /*#__PURE__*/React__default['default'].createElement(HoverTableRowDeleteIcon, {
22209
22599
  index: index,
22210
- hoveredRowIndex: !disabled && record.canDelete ? hoveredRowIndex : null,
22600
+ hoveredRowIndex: !disabled && (record.canDelete || canDelete) ? hoveredRowIndex : null,
22211
22601
  handleClick: function handleClick() {
22212
22602
  return handleDelete(record, index);
22213
22603
  }
@@ -22222,7 +22612,7 @@ var GoodItem$1 = function GoodItem(props) {
22222
22612
  ellipsis: true,
22223
22613
  width: 100,
22224
22614
  render: function render(val, record, index) {
22225
- return record.canDelete ? /*#__PURE__*/React__default['default'].createElement(antd.Button, {
22615
+ return record.canDelete || canDelete ? /*#__PURE__*/React__default['default'].createElement(antd.Button, {
22226
22616
  type: "link",
22227
22617
  onClick: function onClick() {
22228
22618
  return handleDelete(record, index);
@@ -23381,7 +23771,8 @@ var columnsMap = {
23381
23771
  BS_E3_SYSTEM_ORDER: kmkfUtils.BS_E3_SYSTEM_ORDER_CONFIG.columns,
23382
23772
  GY_SYSTEM_ORDER: kmkfUtils.GY_SYSTEM_ORDER_CONFIG.columns,
23383
23773
  JST_SYSTEM_ORDER: kmkfUtils.JST_SYSTEM_ORDER_CONFIG.columns,
23384
- JY_SYSTEM_ORDER: kmkfUtils.JY_SYSTEM_ORDER_CONFIG.columns
23774
+ JY_SYSTEM_ORDER: kmkfUtils.JY_SYSTEM_ORDER_CONFIG.columns,
23775
+ WDT_RETURN_BILL_NO: kmkfUtils.WDT_RETURN_BILL_NO_CONFIG.columns
23385
23776
  };
23386
23777
  var rowKeyMap = {
23387
23778
  BS_SYSTEM_ORDER: 'billNo',
@@ -23391,7 +23782,8 @@ var rowKeyMap = {
23391
23782
  BS_E3_SYSTEM_ORDER: 'orderSn',
23392
23783
  GY_SYSTEM_ORDER: 'billNo',
23393
23784
  JST_SYSTEM_ORDER: 'oId',
23394
- JY_SYSTEM_ORDER: 'tradeNo'
23785
+ JY_SYSTEM_ORDER: 'tradeNo',
23786
+ WDT_RETURN_BILL_NO: 'refundNo'
23395
23787
  };
23396
23788
  var index$2 = (function (props) {
23397
23789
  var value = props.value,
@@ -23405,6 +23797,7 @@ var index$2 = (function (props) {
23405
23797
  React.useEffect(function () {
23406
23798
  var _value$orders, _value$showOrderInfo;
23407
23799
  valueRef.current = value;
23800
+ console.log('value77777777', value);
23408
23801
  if (!(value === null || value === void 0 ? void 0 : (_value$orders = value.orders) === null || _value$orders === void 0 ? void 0 : _value$orders.length) && (value === null || value === void 0 ? void 0 : value.orderNo) && (value === null || value === void 0 ? void 0 : (_value$showOrderInfo = value.showOrderInfo) === null || _value$showOrderInfo === void 0 ? void 0 : _value$showOrderInfo.length) && !onceRef.current) {
23409
23802
  onceRef.current = true;
23410
23803
  if (type === 'BS_SYSTEM_ORDER') {
@@ -24871,10 +25264,39 @@ var componentMap$2 = {
24871
25264
  exchangeDeleteGood: 'jyExchangeDeleteGood'
24872
25265
  },
24873
25266
  getOrderList: jyUtils.getJyOrderListSingleton
25267
+ },
25268
+ WDT_AFTERSALE_GOODS: {
25269
+ type: 'wdtAftersale',
25270
+ key: 'wdtAftersaleGoods',
25271
+ name: '旺店通售后',
25272
+ orderNo: 'srcTids',
25273
+ goodDetailOrderNo: 'srcTids',
25274
+ showChangeBtn: false,
25275
+ eventNameMap: {
25276
+ // pubsub 事件
25277
+ type: 'wdtAftersaleType',
25278
+ updateGoodsHandle: kmkfUtils.updateWdtAftersaleGoodsHandle,
25279
+ reissueDeleteGood: 'wdtAftersaleReissueDeleteGood'
25280
+ },
25281
+ getOrderList: wdtUtils.getWdtOrderListSingleton
25282
+ },
25283
+ JST_AFTERSALE_GOODS: {
25284
+ type: 'jstAftersale',
25285
+ key: 'jstAftersaleGoods',
25286
+ name: 'jst售后',
25287
+ orderNo: 'asId',
25288
+ goodDetailOrderNo: 'asId',
25289
+ showChangeBtn: false,
25290
+ eventNameMap: {
25291
+ // pubsub 事件
25292
+ type: 'jstAftersaleType',
25293
+ deleteGood: 'jstAftersaleDeleteGood'
25294
+ },
25295
+ getOrderList: jstUtils.getJstOrderListSingleton
24874
25296
  }
24875
25297
  };
24876
25298
  var CommonGoods = function CommonGoods(props) {
24877
- var _componentMap$compTyp5, _withInfo$current3, _withInfo$current4;
25299
+ var _componentMap$compTyp5, _withInfo$current3, _withInfo$current4, _componentMap$compTyp7;
24878
25300
  var value = props.value,
24879
25301
  disabled = props.disabled,
24880
25302
  onChange = props.onChange,
@@ -25031,6 +25453,7 @@ var CommonGoods = function CommonGoods(props) {
25031
25453
  var getGoodDetails = function getGoodDetails(_ref2) {
25032
25454
  var mode = _ref2.mode;
25033
25455
  var updateHandle = componentMap$2[compType].eventNameMap['updateGoodsHandle'];
25456
+ if (!updateHandle) return [];
25034
25457
  var goodDetails = updateHandle((value === null || value === void 0 ? void 0 : value.orders) || [], {
25035
25458
  orderBackGoodsLevel: props.orderBackGoodsLevel
25036
25459
  });
@@ -25045,6 +25468,7 @@ var CommonGoods = function CommonGoods(props) {
25045
25468
  var mode = _ref3.mode;
25046
25469
  var updateHandle = componentMap$2[compType].eventNameMap['updateGoodsHandle'];
25047
25470
  console.log('value?.allOrders', value, (value === null || value === void 0 ? void 0 : value.allOrders) || []);
25471
+ if (!updateHandle) return [];
25048
25472
  var goodDetails = updateHandle((value === null || value === void 0 ? void 0 : value.allOrders) || [], {
25049
25473
  orderBackGoodsLevel: props.orderBackGoodsLevel
25050
25474
  });
@@ -25105,6 +25529,7 @@ var CommonGoods = function CommonGoods(props) {
25105
25529
  isStrict: value === null || value === void 0 ? void 0 : value.isStrict,
25106
25530
  systemOrders: value === null || value === void 0 ? void 0 : value.allOrders,
25107
25531
  selectedSystemOrders: value === null || value === void 0 ? void 0 : value.orders,
25532
+ showChangeBtn: (_componentMap$compTyp7 = componentMap$2[compType]) === null || _componentMap$compTyp7 === void 0 ? void 0 : _componentMap$compTyp7.showChangeBtn,
25108
25533
  tradeGoods: {
25109
25534
  originDataSource: getAllTradeGoodsDetails({
25110
25535
  mode: value === null || value === void 0 ? void 0 : value.isStrict
@@ -28351,7 +28776,8 @@ var SYSTEM_ORDER_COLUMNS_MAP = {
28351
28776
  BS_E3_SYSTEM_ORDER: kmkfUtils.BS_E3_SYSTEM_ORDER_CONFIG.columns,
28352
28777
  GY_SYSTEM_ORDER: kmkfUtils.GY_SYSTEM_ORDER_CONFIG.columns,
28353
28778
  JST_SYSTEM_ORDER: kmkfUtils.JST_SYSTEM_ORDER_CONFIG.columns,
28354
- JY_SYSTEM_ORDER: kmkfUtils.JY_SYSTEM_ORDER_CONFIG.columns
28779
+ JY_SYSTEM_ORDER: kmkfUtils.JY_SYSTEM_ORDER_CONFIG.columns,
28780
+ WDT_RETURN_BILL_NO: kmkfUtils.WDT_RETURN_BILL_NO_CONFIG.columns
28355
28781
  };
28356
28782
 
28357
28783
  exports.Address = ApaasAddress;
@@ -28361,6 +28787,7 @@ exports.ApaasCascader = ApaasCascader;
28361
28787
  exports.ApaasCheckbox = ApaasCheckbox;
28362
28788
  exports.ApaasDate = ApaasDate;
28363
28789
  exports.ApaasHoc = withFormItem;
28790
+ exports.ApaasImage = ApaasImage;
28364
28791
  exports.ApaasInput = ApaasInput;
28365
28792
  exports.ApaasInputNumber = ApaasInputNumber;
28366
28793
  exports.ApaasLogistics = ApaasLogistics;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { ImageProps } from 'antd';
3
+ declare function ApaasImage(props: ImageProps): React.JSX.Element;
4
+ export default ApaasImage;
@@ -64,5 +64,11 @@ declare const SYSTEM_ORDER_COLUMNS_MAP: {
64
64
  title: string;
65
65
  width: number;
66
66
  }[];
67
+ WDT_RETURN_BILL_NO: {
68
+ title: string;
69
+ dataIndex: string;
70
+ width: number;
71
+ ellipsis: boolean;
72
+ }[];
67
73
  };
68
74
  export default SYSTEM_ORDER_COLUMNS_MAP;
@@ -1,5 +1,6 @@
1
1
  export { default as ApaasCascader } from './apaas/ApaasCascader';
2
2
  export { default as ApaasDate } from './apaas/ApaasDate';
3
+ export { default as ApaasImage } from './apaas/ApaasImage';
3
4
  export { default as ApaasInput } from './apaas/ApaasInput';
4
5
  export { default as ApaasInputNumber } from './apaas/ApaasInputNumber';
5
6
  export { default as ApaasSelect } from './apaas/ApaasSelect';