@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.esm.js CHANGED
@@ -1,9 +1,9 @@
1
- import React, { useRef, useState, useEffect, forwardRef, useImperativeHandle, useMemo, useCallback } from 'react';
2
- import { Cascader, DatePicker, InputNumber, Input, Select, Upload, Image, message, Radio, Space, Spin, Modal, Button, Checkbox, Row, Col, Slider, Rate as Rate$1, Form, Popover, Tooltip, Table, Tabs, ConfigProvider, Pagination, Typography, Skeleton, Empty, Tag } from 'antd';
1
+ import React, { useState, useMemo, useEffect, useRef, forwardRef, useImperativeHandle, useCallback } from 'react';
2
+ import { Cascader, DatePicker, Image, InputNumber, Input, Select, Upload, message, Radio, Space, Spin, Modal, Button, Checkbox, Row, Col, Slider, Rate as Rate$1, Form, Popover, Tooltip, Table, Tabs, ConfigProvider, Pagination, Typography, Skeleton, Empty, Tag } from 'antd';
3
3
  import { EyeOutlined, DeleteOutlined, CloseOutlined, PlusSquareOutlined, MinusCircleFilled, PlusCircleFilled, CopyOutlined, CloseCircleOutlined, CaretUpOutlined, UpOutlined, DownOutlined, PlusOutlined, VideoCameraTwoTone } from '@ant-design/icons';
4
4
  import request, { extend as extend$1 } from 'umi-request';
5
5
  import { CopyToClipboard } from 'react-copy-to-clipboard';
6
- import { AddressData, BsAddressData, WdtAddressData, GyAddressData, request as request$1, ExpressData, isNull, imgResize, uuid, servers, columnsGoodsList, LogisticsAddressData, SendDataCenter, hasAddNullComponent, SUBMIT_TIME_ID, UPGRADE_TIME_ID, FINAL_TIME_ID, CUSTOM_TIME_ID, useStatus, finalFormData, transformList, dataSourceTrans, DATA_SPLIT_COMPONENT_FIELDS_MAP, findLabelBySelectValue, BS_E3_BOOLEAN_STATUS_MAP, filterWdtOrders, WDT_ORDER_TYPE_MAP, tradeStatusMap, filterBsE3Orders, filterGyOrders, GY_DELIVERY_STATE_MAPPING, filterJstOrders, filterJyOrders, JY_ORDER_TYPE_MAP, JY_ORDER_STATUS_MAP, filterKmOrders, getSystemShowHead, getIsPlatformCodesIncludeOrderNos, BS_SYSTEM_ORDER_CONFIG, KM_SYSTEM_ORDER_CONFIG, WLN_SYSTEM_ORDER_CONFIG, WDT_SYSTEM_ORDER_CONFIG, BS_E3_SYSTEM_ORDER_CONFIG, GY_SYSTEM_ORDER_CONFIG, JST_SYSTEM_ORDER_CONFIG, JY_SYSTEM_ORDER_CONFIG, updateOrderSubFormGoodsHandle, updateWlnGoodsHandle, updateWdtGoodsHandle, updateBsE3GoodsHandle, updateGyGoodsHandle, updateJstGoodsHandle, updateKmGoodsHandle, updateJyGoodsHandle, jstMergeIdenticalGoods, msgTypeCh, pushGyLog, skxSystemOrderBackValues, skxReturnSystemOrderBackValues, formatTrade, updateSkxGoodsHandle, formatReturnTrade, updateSkxReturnGoodsHandle } from '@kmkf-fe-packages/kmkf-utils';
6
+ import { AddressData, BsAddressData, WdtAddressData, GyAddressData, request as request$1, ExpressData, isNull, imgResize, uuid, servers, columnsGoodsList, LogisticsAddressData, SendDataCenter, hasAddNullComponent, SUBMIT_TIME_ID, UPGRADE_TIME_ID, FINAL_TIME_ID, CUSTOM_TIME_ID, useStatus, finalFormData, transformList, dataSourceTrans, DATA_SPLIT_COMPONENT_FIELDS_MAP, findLabelBySelectValue, BS_E3_BOOLEAN_STATUS_MAP, filterWdtOrders, WDT_ORDER_TYPE_MAP, tradeStatusMap, filterBsE3Orders, filterGyOrders, GY_DELIVERY_STATE_MAPPING, filterJstOrders, filterJyOrders, JY_ORDER_TYPE_MAP, JY_ORDER_STATUS_MAP, filterKmOrders, getSystemShowHead, getIsPlatformCodesIncludeOrderNos, BS_SYSTEM_ORDER_CONFIG, KM_SYSTEM_ORDER_CONFIG, WLN_SYSTEM_ORDER_CONFIG, WDT_SYSTEM_ORDER_CONFIG, BS_E3_SYSTEM_ORDER_CONFIG, GY_SYSTEM_ORDER_CONFIG, JST_SYSTEM_ORDER_CONFIG, JY_SYSTEM_ORDER_CONFIG, WDT_RETURN_BILL_NO_CONFIG, updateOrderSubFormGoodsHandle, updateWlnGoodsHandle, updateWdtGoodsHandle, updateBsE3GoodsHandle, updateGyGoodsHandle, updateJstGoodsHandle, updateKmGoodsHandle, updateJyGoodsHandle, updateWdtAftersaleGoodsHandle, jstMergeIdenticalGoods, msgTypeCh, pushGyLog, skxSystemOrderBackValues, skxReturnSystemOrderBackValues, formatTrade, updateSkxGoodsHandle, formatReturnTrade, updateSkxReturnGoodsHandle } from '@kmkf-fe-packages/kmkf-utils';
7
7
  import every from 'lodash/every';
8
8
  import maxBy from 'lodash/maxBy';
9
9
  import { debounce, isNaN as isNaN$1, isNumber as isNumber$1, uniqBy, cloneDeep, difference, differenceWith, isBoolean, isEqual, takeRight, reject as reject$1, intersection, isEmpty } from 'lodash';
@@ -566,6 +566,36 @@ var ApaasDate = function ApaasDate(props) {
566
566
  }, otherProps));
567
567
  };
568
568
 
569
+ var noFallbackUrlList = ['https://kefu.kuaimai.com', 'https://kefuab.kuaimai.com/'];
570
+ function ApaasImage(props) {
571
+ var _useState = useState(false),
572
+ _useState2 = _slicedToArray(_useState, 2),
573
+ isImageError = _useState2[0],
574
+ setIsImageError = _useState2[1];
575
+ var finalSrc = useMemo(function () {
576
+ var fallbackUrl = props.src && props.src.startsWith('http') && !noFallbackUrlList.some(function (url) {
577
+ var _props$src;
578
+ return (_props$src = props.src) === null || _props$src === void 0 ? void 0 : _props$src.startsWith(url);
579
+ }) ? "http://kmgdimages.ycy-inc.cn/?url=".concat(props.src) : props.src;
580
+ return isImageError ? fallbackUrl : props.src;
581
+ }, [props.src, isImageError]);
582
+ // 当 src 改变时,重置错误状态
583
+ useEffect(function () {
584
+ setIsImageError(false);
585
+ }, [props.src]);
586
+ // 处理图片加载错误
587
+ var handleError = function handleError(e) {
588
+ var _props$onError;
589
+ setIsImageError(true);
590
+ // 如果用户传入了 onError,也要调用
591
+ (_props$onError = props.onError) === null || _props$onError === void 0 ? void 0 : _props$onError.call(props, e);
592
+ };
593
+ return /*#__PURE__*/React.createElement(Image, _objectSpread2(_objectSpread2({}, props), {}, {
594
+ src: finalSrc,
595
+ onError: handleError
596
+ }));
597
+ }
598
+
569
599
  var _excluded$1 = ["isNumber", "replaceWarn", "precision"];
570
600
  function ApaasInput(props) {
571
601
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
@@ -8108,6 +8138,11 @@ var systemOrderMap = {
8108
8138
  no: 'jstSystemOrderNo',
8109
8139
  ids: 'jstSystemSelectIds',
8110
8140
  order: 'jstSystemShowOrder'
8141
+ },
8142
+ WDT_RETURN_BILL_NO: {
8143
+ no: 'wdtReturnBillNo',
8144
+ ids: 'wdtReturnBillSelectIds',
8145
+ order: 'wdtReturnBillShowOrder'
8111
8146
  }
8112
8147
  };
8113
8148
  //直接将key component 添加到 transformWorkOrderData中的componentProcessors
@@ -8680,6 +8715,52 @@ var processWdtGoods = function processWdtGoods(templateColumns) {
8680
8715
  };
8681
8716
  };
8682
8717
  };
8718
+ var processWdtAftersaleGoods = function processWdtAftersaleGoods(templateColumns) {
8719
+ return function (getValue) {
8720
+ return function (nex, config) {
8721
+ var _values = {
8722
+ wdtAftersaleGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_wdtAftersaleGoods")), []),
8723
+ shopCode: getValue("".concat(nex.uniqueKey, "_shopCode"))
8724
+ };
8725
+ var selectIds = [];
8726
+ var orderNo = '';
8727
+ var tradeId = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
8728
+ return col.workOrderComponentType === 'TRADE_ID_INPUT';
8729
+ });
8730
+ if (tradeId) {
8731
+ orderNo = getValue("".concat(tradeId.uniqueKey, "_").concat(updateWorkTypeKeys[tradeId.workOrderComponentType]));
8732
+ }
8733
+ var wdtAftersaleSystemOrder = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
8734
+ return col.workOrderComponentType === 'WDT_RETURN_BILL_NO';
8735
+ });
8736
+ if (wdtAftersaleSystemOrder) {
8737
+ selectIds = jsonParseSecurity(getValue("".concat(wdtAftersaleSystemOrder.uniqueKey, "_").concat(systemOrderMap[wdtAftersaleSystemOrder.workOrderComponentType].ids)), []);
8738
+ }
8739
+ _values.selectIds = selectIds;
8740
+ _values.orderNo = orderNo;
8741
+ return _defineProperty({}, nex.uniqueKey, _values);
8742
+ };
8743
+ };
8744
+ };
8745
+ var processJstAftersaleGoods = function processJstAftersaleGoods(templateColumns) {
8746
+ return function (getValue) {
8747
+ return function (nex) {
8748
+ var _values = {
8749
+ jstAftersaleGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_jstAftersaleGoods")), []),
8750
+ shopCode: getValue("".concat(nex.uniqueKey, "_shopCode"))
8751
+ };
8752
+ var orderNo = '';
8753
+ var tradeId = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
8754
+ return col.workOrderComponentType === 'TRADE_ID_INPUT';
8755
+ });
8756
+ if (tradeId) {
8757
+ orderNo = getValue("".concat(tradeId.uniqueKey, "_").concat(updateWorkTypeKeys[tradeId.workOrderComponentType]));
8758
+ }
8759
+ _values.orderNo = orderNo;
8760
+ return _defineProperty({}, nex.uniqueKey, _values);
8761
+ };
8762
+ };
8763
+ };
8683
8764
  var processBsE3Goods = function processBsE3Goods(templateColumns) {
8684
8765
  return function (getValue) {
8685
8766
  return function (nex, config) {
@@ -8912,11 +8993,16 @@ var processErpSystemOrder = function processErpSystemOrder(getValue) {
8912
8993
  no: 'jstSystemOrderNo',
8913
8994
  ids: 'jstSystemSelectIds',
8914
8995
  order: 'jstSystemShowOrder'
8996
+ },
8997
+ WDT_RETURN_BILL_NO: {
8998
+ no: 'wdtReturnBillNo',
8999
+ ids: 'wdtReturnBillSelectIds',
9000
+ order: 'wdtReturnBillShowOrder'
8915
9001
  }
8916
9002
  };
8917
9003
  return _defineProperty({}, nex.uniqueKey, {
8918
9004
  orderNo: getValue("".concat(nex.uniqueKey, "_").concat(systemOrderMap[nex.workOrderComponentType].no)),
8919
- orders: [],
9005
+ orders: nex.workOrderComponentType === 'WDT_RETURN_BILL_NO' ? jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_").concat(systemOrderMap[nex.workOrderComponentType].order)), []) : [],
8920
9006
  selectIds: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_").concat(systemOrderMap[nex.workOrderComponentType].ids)), []),
8921
9007
  showOrderInfo: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_").concat(systemOrderMap[nex.workOrderComponentType].order)), [])
8922
9008
  });
@@ -9152,14 +9238,14 @@ var processJstReturnGoods = function processJstReturnGoods(templateColumns) {
9152
9238
  };
9153
9239
  var processLabel = function processLabel(getValue) {
9154
9240
  return function (nex, config) {
9155
- var _ref72;
9156
- 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;
9241
+ var _ref74;
9242
+ 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;
9157
9243
  };
9158
9244
  };
9159
9245
  var processMemberLevel = function processMemberLevel(getValue) {
9160
9246
  return function (nex, config) {
9161
- var _ref73;
9162
- 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;
9247
+ var _ref75;
9248
+ 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;
9163
9249
  };
9164
9250
  };
9165
9251
  var processAfterSalesOrderId = function processAfterSalesOrderId(getValue) {
@@ -9277,6 +9363,8 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
9277
9363
  BS_POSTING: processBsPosting,
9278
9364
  BS_GOODS: processBsGoods,
9279
9365
  WDT_GOODS: processWdtGoods(templateColumns),
9366
+ WDT_AFTERSALE_GOODS: processWdtAftersaleGoods(templateColumns),
9367
+ JST_AFTERSALE_GOODS: processJstAftersaleGoods(templateColumns),
9280
9368
  BS_E3_GOODS: processBsE3Goods(templateColumns),
9281
9369
  GY_GOODS: processGyGoods(templateColumns),
9282
9370
  KM_GOODS: processKmGoods(templateColumns),
@@ -9293,6 +9381,7 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
9293
9381
  KM_SYSTEM_ORDER: processErpSystemOrder,
9294
9382
  WLN_SYSTEM_ORDER: processErpSystemOrder,
9295
9383
  WDT_SYSTEM_ORDER: processErpSystemOrder,
9384
+ WDT_RETURN_BILL_NO: processErpSystemOrder,
9296
9385
  BS_E3_SYSTEM_ORDER: processErpSystemOrder,
9297
9386
  JST_SYSTEM_ORDER: processErpSystemOrder,
9298
9387
  GY_SYSTEM_ORDER: processErpSystemOrder,
@@ -19329,6 +19418,141 @@ var getColumns$2 = function getColumns(_ref) {
19329
19418
  }
19330
19419
  }) : /*#__PURE__*/React.createElement("span", null, typeMap[val]);
19331
19420
  }
19421
+ }],
19422
+ // 旺店通售后商品信息
19423
+ WDT_AFTERSALE_GOODS: [{
19424
+ dataIndex: 'oid',
19425
+ title: "\u539F\u59CB\u5B50\u5355\u53F7",
19426
+ width: 200,
19427
+ align: 'center',
19428
+ ellipsis: true,
19429
+ render: renderTextEllipsis
19430
+ }, {
19431
+ dataIndex: 'goodsName',
19432
+ title: "\u8D27\u54C1\u540D\u79F0",
19433
+ width: 250,
19434
+ align: 'center',
19435
+ ellipsis: true,
19436
+ render: renderTextEllipsis
19437
+ }, {
19438
+ dataIndex: 'goodsNo',
19439
+ title: "\u8D27\u54C1\u7F16\u53F7",
19440
+ width: 150,
19441
+ align: 'center',
19442
+ ellipsis: true,
19443
+ render: renderTextEllipsis
19444
+ }, {
19445
+ dataIndex: 'specName',
19446
+ title: "\u89C4\u683C\u540D\u79F0",
19447
+ width: 150,
19448
+ align: 'center',
19449
+ ellipsis: true,
19450
+ render: renderTextEllipsis
19451
+ }, {
19452
+ dataIndex: 'specNo',
19453
+ title: "\u5546\u5BB6\u7F16\u7801",
19454
+ width: 200,
19455
+ align: 'center',
19456
+ ellipsis: true,
19457
+ render: renderTextEllipsis
19458
+ }, {
19459
+ dataIndex: 'specCode',
19460
+ title: "\u89C4\u683C\u7F16\u53F7",
19461
+ width: 150,
19462
+ align: 'center',
19463
+ ellipsis: true,
19464
+ render: renderTextEllipsis
19465
+ }, {
19466
+ dataIndex: 'barcode',
19467
+ title: "\u6761\u7801",
19468
+ width: 150,
19469
+ align: 'center',
19470
+ ellipsis: true,
19471
+ render: renderTextEllipsis
19472
+ }, {
19473
+ dataIndex: 'apiGoodsName',
19474
+ title: "\u5E73\u53F0\u8D27\u54C1\u540D\u79F0",
19475
+ width: 250,
19476
+ align: 'center',
19477
+ ellipsis: true,
19478
+ render: renderTextEllipsis
19479
+ }, {
19480
+ dataIndex: 'apiSpecName',
19481
+ title: "\u5E73\u53F0\u89C4\u683C\u540D\u79F0",
19482
+ width: 250,
19483
+ align: 'center',
19484
+ ellipsis: true,
19485
+ render: renderTextEllipsis
19486
+ }, {
19487
+ dataIndex: 'suiteName',
19488
+ title: "\u7EC4\u5408\u88C5\u540D\u79F0",
19489
+ width: 150,
19490
+ align: 'center',
19491
+ ellipsis: true,
19492
+ render: renderTextEllipsis
19493
+ }, {
19494
+ dataIndex: 'suiteNo',
19495
+ title: "\u7EC4\u5408\u88C5\u7F16\u53F7",
19496
+ width: 150,
19497
+ align: 'center',
19498
+ ellipsis: true,
19499
+ render: renderTextEllipsis
19500
+ }, {
19501
+ dataIndex: 'stockinNum',
19502
+ title: "\u5165\u5E93\u6570\u91CF",
19503
+ width: 150,
19504
+ align: 'center',
19505
+ ellipsis: true,
19506
+ render: renderTextEllipsis
19507
+ }, {
19508
+ dataIndex: 'refundNum',
19509
+ title: "\u9000\u6B3E\u6570\u91CF",
19510
+ width: 150,
19511
+ align: 'center',
19512
+ ellipsis: true,
19513
+ render: renderTextEllipsis
19514
+ }, {
19515
+ dataIndex: 'totalAmount',
19516
+ title: "\u9000\u8D27\u603B\u989D",
19517
+ width: 150,
19518
+ align: 'center',
19519
+ ellipsis: true,
19520
+ render: renderTextEllipsis
19521
+ }, {
19522
+ dataIndex: 'refundAmount',
19523
+ title: "\u5DF2\u9000\u6B3E\u91D1\u989D",
19524
+ width: 150,
19525
+ align: 'center',
19526
+ ellipsis: true,
19527
+ render: renderTextEllipsis
19528
+ }, {
19529
+ dataIndex: 'orderNum',
19530
+ title: "\u5B9E\u9645\u53D1\u51FA\u6570\u91CF",
19531
+ width: 150,
19532
+ align: 'center',
19533
+ ellipsis: true,
19534
+ render: renderTextEllipsis
19535
+ }, {
19536
+ dataIndex: 'price',
19537
+ title: "\u4EF7\u683C",
19538
+ width: 150,
19539
+ align: 'center',
19540
+ ellipsis: true,
19541
+ render: renderTextEllipsis
19542
+ }, {
19543
+ dataIndex: 'originalPrice',
19544
+ title: "\u539F\u4EF7",
19545
+ width: 150,
19546
+ align: 'center',
19547
+ ellipsis: true,
19548
+ render: renderTextEllipsis
19549
+ }, {
19550
+ dataIndex: 'giftType',
19551
+ title: "\u8D60\u54C1\u7C7B\u578B",
19552
+ width: 150,
19553
+ align: 'center',
19554
+ ellipsis: true,
19555
+ render: renderTextEllipsis
19332
19556
  }]
19333
19557
  };
19334
19558
  };
@@ -19945,7 +20169,7 @@ var getColumns$5 = function getColumns() {
19945
20169
  align: 'center',
19946
20170
  width: 100,
19947
20171
  render: function render(val) {
19948
- return /*#__PURE__*/React.createElement(Image, {
20172
+ return /*#__PURE__*/React.createElement(ApaasImage, {
19949
20173
  width: 30,
19950
20174
  src: val
19951
20175
  });
@@ -20077,7 +20301,7 @@ var getColumns$5 = function getColumns() {
20077
20301
  align: 'center',
20078
20302
  width: 100,
20079
20303
  render: function render(val) {
20080
- return /*#__PURE__*/React.createElement(Image, {
20304
+ return /*#__PURE__*/React.createElement(ApaasImage, {
20081
20305
  width: 30,
20082
20306
  src: val
20083
20307
  });
@@ -20220,7 +20444,7 @@ var getColumns$5 = function getColumns() {
20220
20444
  title: '商品图片',
20221
20445
  width: 100,
20222
20446
  render: function render(val) {
20223
- return /*#__PURE__*/React.createElement(Image, {
20447
+ return /*#__PURE__*/React.createElement(ApaasImage, {
20224
20448
  width: 30,
20225
20449
  src: val
20226
20450
  });
@@ -20361,7 +20585,7 @@ var getColumns$5 = function getColumns() {
20361
20585
  title: '商品图片',
20362
20586
  width: 100,
20363
20587
  render: function render(val) {
20364
- return /*#__PURE__*/React.createElement(Image, {
20588
+ return /*#__PURE__*/React.createElement(ApaasImage, {
20365
20589
  width: 30,
20366
20590
  src: val
20367
20591
  });
@@ -20449,7 +20673,169 @@ var getColumns$5 = function getColumns() {
20449
20673
  }
20450
20674
  }) : renderTextEllipsis(val);
20451
20675
  }
20452
- }].map(fillAttrs)
20676
+ }].map(fillAttrs),
20677
+ // jst售后商品信息
20678
+ JST_AFTERSALE_GOODS: [{
20679
+ dataIndex: 'asId',
20680
+ title: "\u805A\u6C34\u6F6D\u552E\u540E\u5355\u53F7",
20681
+ width: 200,
20682
+ align: 'center',
20683
+ ellipsis: true,
20684
+ render: renderTextEllipsis
20685
+ }, {
20686
+ dataIndex: 'asiId',
20687
+ title: "\u552E\u540E\u5B50\u5355\u53F7",
20688
+ width: 200,
20689
+ align: 'center',
20690
+ ellipsis: true,
20691
+ render: renderTextEllipsis
20692
+ }, {
20693
+ dataIndex: 'outerOiId',
20694
+ title: "\u5B50\u8BA2\u5355\u53F7",
20695
+ width: 200,
20696
+ align: 'center',
20697
+ ellipsis: true,
20698
+ render: renderTextEllipsis
20699
+ }, {
20700
+ dataIndex: 'pic',
20701
+ title: "\u56FE\u7247",
20702
+ width: 100,
20703
+ align: 'center',
20704
+ render: function render(val) {
20705
+ return /*#__PURE__*/React.createElement(ApaasImage, {
20706
+ width: 30,
20707
+ src: val
20708
+ });
20709
+ },
20710
+ headerComponentType: 'pic'
20711
+ }, {
20712
+ dataIndex: 'name',
20713
+ title: "\u5546\u54C1\u540D\u79F0",
20714
+ width: 250,
20715
+ align: 'center',
20716
+ ellipsis: true,
20717
+ render: renderTextEllipsis
20718
+ }, {
20719
+ dataIndex: 'skuId',
20720
+ title: "\u5546\u54C1\u7F16\u7801",
20721
+ width: 200,
20722
+ align: 'center',
20723
+ ellipsis: true,
20724
+ render: renderTextEllipsis
20725
+ }, {
20726
+ dataIndex: 'propertiesValue',
20727
+ title: "\u89C4\u683C\u5C5E\u6027\u503C",
20728
+ width: 200,
20729
+ align: 'center',
20730
+ ellipsis: true,
20731
+ render: renderTextEllipsis
20732
+ }, {
20733
+ dataIndex: 'qty',
20734
+ title: "\u7533\u8BF7\u6570\u91CF",
20735
+ width: 150,
20736
+ align: 'center',
20737
+ ellipsis: true,
20738
+ render: renderTextEllipsis
20739
+ }, {
20740
+ dataIndex: 'rQty',
20741
+ title: "\u5B9E\u6536\u9000\u8D27\u6570\u91CF",
20742
+ width: 150,
20743
+ align: 'center',
20744
+ ellipsis: true,
20745
+ render: renderTextEllipsis
20746
+ }, {
20747
+ dataIndex: 'defectiveQty',
20748
+ title: "\u6B21\u54C1\u6570\u91CF",
20749
+ width: 150,
20750
+ align: 'center',
20751
+ ellipsis: true,
20752
+ render: renderTextEllipsis
20753
+ }, {
20754
+ dataIndex: 'amount',
20755
+ title: "\u7533\u8BF7\u91D1\u989D",
20756
+ width: 150,
20757
+ align: 'center',
20758
+ ellipsis: true,
20759
+ render: renderTextEllipsis
20760
+ }, {
20761
+ dataIndex: 'shopAmount',
20762
+ title: "\u7EBF\u4E0A\u660E\u7EC6\u91D1\u989D",
20763
+ width: 150,
20764
+ align: 'center',
20765
+ ellipsis: true,
20766
+ render: renderTextEllipsis
20767
+ }, {
20768
+ dataIndex: 'price',
20769
+ title: "\u5355\u4EF7",
20770
+ width: 150,
20771
+ align: 'center',
20772
+ ellipsis: true,
20773
+ render: renderTextEllipsis
20774
+ }, {
20775
+ dataIndex: 'combineSkuId',
20776
+ title: "\u7EC4\u5408\u5546\u54C1\u7F16\u7801",
20777
+ width: 250,
20778
+ align: 'center',
20779
+ ellipsis: true,
20780
+ render: renderTextEllipsis
20781
+ }, {
20782
+ dataIndex: 'shopSkuId',
20783
+ title: "\u5E97\u94FA\u5546\u54C1\u7F16\u7801",
20784
+ width: 200,
20785
+ align: 'center',
20786
+ ellipsis: true,
20787
+ render: renderTextEllipsis
20788
+ }, {
20789
+ dataIndex: 'iId',
20790
+ title: "\u6B3E\u5F0F\u7F16\u7801",
20791
+ width: 200,
20792
+ align: 'center',
20793
+ ellipsis: true,
20794
+ render: renderTextEllipsis
20795
+ }, {
20796
+ dataIndex: 'type',
20797
+ title: "\u552E\u540E\u7C7B\u578B",
20798
+ width: 150,
20799
+ align: 'center',
20800
+ ellipsis: true,
20801
+ render: renderTextEllipsis
20802
+ }, {
20803
+ dataIndex: 'skuType',
20804
+ title: "\u5546\u54C1\u7C7B\u578B",
20805
+ width: 150,
20806
+ align: 'center',
20807
+ ellipsis: true,
20808
+ render: renderTextEllipsis
20809
+ }, {
20810
+ dataIndex: 'isGift',
20811
+ title: '是否赠品',
20812
+ width: 100,
20813
+ render: function render(val) {
20814
+ return /*#__PURE__*/React.createElement("span", null, typeof val !== 'boolean' ? '' : val ? '是' : '否');
20815
+ },
20816
+ headerMapping: {
20817
+ transformValue: function transformValue(val) {
20818
+ return typeof val !== 'boolean' ? '' : val ? '是' : '否';
20819
+ },
20820
+ renderExport: function renderExport(val) {
20821
+ return typeof val !== 'boolean' ? '' : val ? '是' : '否';
20822
+ }
20823
+ }
20824
+ }, {
20825
+ dataIndex: 'receiveDate',
20826
+ title: "\u5165\u4ED3\u65F6\u95F4",
20827
+ width: 200,
20828
+ align: 'center',
20829
+ ellipsis: true,
20830
+ render: renderTextEllipsis
20831
+ }, {
20832
+ dataIndex: 'remark',
20833
+ title: "\u660E\u7EC6\u5907\u6CE8",
20834
+ width: 200,
20835
+ align: 'center',
20836
+ ellipsis: true,
20837
+ render: renderTextEllipsis
20838
+ }]
20453
20839
  };
20454
20840
  };
20455
20841
 
@@ -21808,6 +22194,7 @@ var systemOrderNoMap = {
21808
22194
  GY_GOODS: 'code',
21809
22195
  KM_GOODS: 'sid',
21810
22196
  WDT_GOODS: 'tradeNo',
22197
+ WDT_AFTERSALE_GOODS: 'tid',
21811
22198
  BS_E3_GOODS: 'orderSn',
21812
22199
  JST_GOODS: 'oId',
21813
22200
  WLN_GOODS: 'tradeNo',
@@ -22011,6 +22398,7 @@ var GoodItem$1 = function GoodItem(props) {
22011
22398
  templateDetail = _props$templateDetail === void 0 ? {} : _props$templateDetail,
22012
22399
  _props$hasSelectedSys = props.hasSelectedSystemOrder,
22013
22400
  hasSelectedSystemOrder = _props$hasSelectedSys === void 0 ? false : _props$hasSelectedSys;
22401
+ var canDelete = ['JST_AFTERSALE_GOODS'].includes(type);
22014
22402
  var uniqueKey = (tradeGoods === null || tradeGoods === void 0 ? void 0 : tradeGoods.uniqueKey) || 'uuid';
22015
22403
  // 监听聚水潭退货商品
22016
22404
  var jstReturnGoods = Form === null || Form === void 0 ? void 0 : Form.useWatch('3979edfd6d', form);
@@ -22090,6 +22478,7 @@ var GoodItem$1 = function GoodItem(props) {
22090
22478
  var columns = [];
22091
22479
  switch (type) {
22092
22480
  case 'WDT_GOODS':
22481
+ case 'WDT_AFTERSALE_GOODS':
22093
22482
  case 'WDT_RETURN_GOODS':
22094
22483
  case 'WDT_EXCHANGE_GOODS':
22095
22484
  case 'BS_E3_GOODS':
@@ -22100,6 +22489,7 @@ var GoodItem$1 = function GoodItem(props) {
22100
22489
  case 'JST_REISSUE_GOODS':
22101
22490
  case 'JST_EXCHANGE_GOODS':
22102
22491
  case 'JST_RETURN_GOODS':
22492
+ case 'JST_AFTERSALE_GOODS':
22103
22493
  case 'GY_REISSUE_GOODS':
22104
22494
  case 'GY_RETURN_GOODS':
22105
22495
  case 'KM_GOODS':
@@ -22192,7 +22582,7 @@ var GoodItem$1 = function GoodItem(props) {
22192
22582
  render: function render(val, record, index) {
22193
22583
  return /*#__PURE__*/React.createElement(HoverTableRowDeleteIcon, {
22194
22584
  index: index,
22195
- hoveredRowIndex: !disabled && record.canDelete ? hoveredRowIndex : null,
22585
+ hoveredRowIndex: !disabled && (record.canDelete || canDelete) ? hoveredRowIndex : null,
22196
22586
  handleClick: function handleClick() {
22197
22587
  return handleDelete(record, index);
22198
22588
  }
@@ -22207,7 +22597,7 @@ var GoodItem$1 = function GoodItem(props) {
22207
22597
  ellipsis: true,
22208
22598
  width: 100,
22209
22599
  render: function render(val, record, index) {
22210
- return record.canDelete ? /*#__PURE__*/React.createElement(Button, {
22600
+ return record.canDelete || canDelete ? /*#__PURE__*/React.createElement(Button, {
22211
22601
  type: "link",
22212
22602
  onClick: function onClick() {
22213
22603
  return handleDelete(record, index);
@@ -23366,7 +23756,8 @@ var columnsMap = {
23366
23756
  BS_E3_SYSTEM_ORDER: BS_E3_SYSTEM_ORDER_CONFIG.columns,
23367
23757
  GY_SYSTEM_ORDER: GY_SYSTEM_ORDER_CONFIG.columns,
23368
23758
  JST_SYSTEM_ORDER: JST_SYSTEM_ORDER_CONFIG.columns,
23369
- JY_SYSTEM_ORDER: JY_SYSTEM_ORDER_CONFIG.columns
23759
+ JY_SYSTEM_ORDER: JY_SYSTEM_ORDER_CONFIG.columns,
23760
+ WDT_RETURN_BILL_NO: WDT_RETURN_BILL_NO_CONFIG.columns
23370
23761
  };
23371
23762
  var rowKeyMap = {
23372
23763
  BS_SYSTEM_ORDER: 'billNo',
@@ -23376,7 +23767,8 @@ var rowKeyMap = {
23376
23767
  BS_E3_SYSTEM_ORDER: 'orderSn',
23377
23768
  GY_SYSTEM_ORDER: 'billNo',
23378
23769
  JST_SYSTEM_ORDER: 'oId',
23379
- JY_SYSTEM_ORDER: 'tradeNo'
23770
+ JY_SYSTEM_ORDER: 'tradeNo',
23771
+ WDT_RETURN_BILL_NO: 'refundNo'
23380
23772
  };
23381
23773
  var index$2 = (function (props) {
23382
23774
  var value = props.value,
@@ -23390,6 +23782,7 @@ var index$2 = (function (props) {
23390
23782
  useEffect(function () {
23391
23783
  var _value$orders, _value$showOrderInfo;
23392
23784
  valueRef.current = value;
23785
+ console.log('value77777777', value);
23393
23786
  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) {
23394
23787
  onceRef.current = true;
23395
23788
  if (type === 'BS_SYSTEM_ORDER') {
@@ -24856,10 +25249,39 @@ var componentMap$2 = {
24856
25249
  exchangeDeleteGood: 'jyExchangeDeleteGood'
24857
25250
  },
24858
25251
  getOrderList: jyUtils.getJyOrderListSingleton
25252
+ },
25253
+ WDT_AFTERSALE_GOODS: {
25254
+ type: 'wdtAftersale',
25255
+ key: 'wdtAftersaleGoods',
25256
+ name: '旺店通售后',
25257
+ orderNo: 'srcTids',
25258
+ goodDetailOrderNo: 'srcTids',
25259
+ showChangeBtn: false,
25260
+ eventNameMap: {
25261
+ // pubsub 事件
25262
+ type: 'wdtAftersaleType',
25263
+ updateGoodsHandle: updateWdtAftersaleGoodsHandle,
25264
+ reissueDeleteGood: 'wdtAftersaleReissueDeleteGood'
25265
+ },
25266
+ getOrderList: wdtUtils.getWdtOrderListSingleton
25267
+ },
25268
+ JST_AFTERSALE_GOODS: {
25269
+ type: 'jstAftersale',
25270
+ key: 'jstAftersaleGoods',
25271
+ name: 'jst售后',
25272
+ orderNo: 'asId',
25273
+ goodDetailOrderNo: 'asId',
25274
+ showChangeBtn: false,
25275
+ eventNameMap: {
25276
+ // pubsub 事件
25277
+ type: 'jstAftersaleType',
25278
+ deleteGood: 'jstAftersaleDeleteGood'
25279
+ },
25280
+ getOrderList: jstUtils.getJstOrderListSingleton
24859
25281
  }
24860
25282
  };
24861
25283
  var CommonGoods = function CommonGoods(props) {
24862
- var _componentMap$compTyp5, _withInfo$current3, _withInfo$current4;
25284
+ var _componentMap$compTyp5, _withInfo$current3, _withInfo$current4, _componentMap$compTyp7;
24863
25285
  var value = props.value,
24864
25286
  disabled = props.disabled,
24865
25287
  onChange = props.onChange,
@@ -25016,6 +25438,7 @@ var CommonGoods = function CommonGoods(props) {
25016
25438
  var getGoodDetails = function getGoodDetails(_ref2) {
25017
25439
  var mode = _ref2.mode;
25018
25440
  var updateHandle = componentMap$2[compType].eventNameMap['updateGoodsHandle'];
25441
+ if (!updateHandle) return [];
25019
25442
  var goodDetails = updateHandle((value === null || value === void 0 ? void 0 : value.orders) || [], {
25020
25443
  orderBackGoodsLevel: props.orderBackGoodsLevel
25021
25444
  });
@@ -25030,6 +25453,7 @@ var CommonGoods = function CommonGoods(props) {
25030
25453
  var mode = _ref3.mode;
25031
25454
  var updateHandle = componentMap$2[compType].eventNameMap['updateGoodsHandle'];
25032
25455
  console.log('value?.allOrders', value, (value === null || value === void 0 ? void 0 : value.allOrders) || []);
25456
+ if (!updateHandle) return [];
25033
25457
  var goodDetails = updateHandle((value === null || value === void 0 ? void 0 : value.allOrders) || [], {
25034
25458
  orderBackGoodsLevel: props.orderBackGoodsLevel
25035
25459
  });
@@ -25090,6 +25514,7 @@ var CommonGoods = function CommonGoods(props) {
25090
25514
  isStrict: value === null || value === void 0 ? void 0 : value.isStrict,
25091
25515
  systemOrders: value === null || value === void 0 ? void 0 : value.allOrders,
25092
25516
  selectedSystemOrders: value === null || value === void 0 ? void 0 : value.orders,
25517
+ showChangeBtn: (_componentMap$compTyp7 = componentMap$2[compType]) === null || _componentMap$compTyp7 === void 0 ? void 0 : _componentMap$compTyp7.showChangeBtn,
25093
25518
  tradeGoods: {
25094
25519
  originDataSource: getAllTradeGoodsDetails({
25095
25520
  mode: value === null || value === void 0 ? void 0 : value.isStrict
@@ -28336,7 +28761,8 @@ var SYSTEM_ORDER_COLUMNS_MAP = {
28336
28761
  BS_E3_SYSTEM_ORDER: BS_E3_SYSTEM_ORDER_CONFIG.columns,
28337
28762
  GY_SYSTEM_ORDER: GY_SYSTEM_ORDER_CONFIG.columns,
28338
28763
  JST_SYSTEM_ORDER: JST_SYSTEM_ORDER_CONFIG.columns,
28339
- JY_SYSTEM_ORDER: JY_SYSTEM_ORDER_CONFIG.columns
28764
+ JY_SYSTEM_ORDER: JY_SYSTEM_ORDER_CONFIG.columns,
28765
+ WDT_RETURN_BILL_NO: WDT_RETURN_BILL_NO_CONFIG.columns
28340
28766
  };
28341
28767
 
28342
- export { ApaasAddress as Address, AliPay, Province as ApaasAddress, ApaasCascader, ApaasCheckbox, ApaasDate, withFormItem as ApaasHoc, ApaasInput, ApaasInputNumber, ApaasLogistics, ApaasMultipleSelect, ApaasPosting, ApaasRadio, ApaasRate, ApaasSelect, ApaasSlider, ApaasTextArea, ApaasUpload, ApaasUploadAsync$1 as ApaasUploadAsync, ApaasUploadFile, index as ApaasUploadProAsync, AsyncSelect, bsE3Reissue as BsE3Reissue, BsExchange, BsGoods, BsReissue, BsReturnGoods as BsReturn, index$2 as BsSystemOrder, BuyerNick, CalculationInput, ChooseBaby, CommonExchangeGoods, CommonGoods, CommonSystemOrder$1 as CommonMultiStatus, CommonReturnGoods, CommonStatus, CommonSystemOrder, CopyTextIcon, ExpressLogistics, Goods, index$3 as GoodsTable, GyReissue, GyReturnGoods as GyReturn, IdentifyAddress, Invoice, jstGoods as JstGoods, ItemList as JstItemList, KmVideo, LogisticsInterception, LogisticsMoreInterception, LogisticsMoreTrajectory, LogisticsTrajectory, MsgStatus, OrderSubForm, utils as OrderSubFormUtils, ParseLogistics, Payment, PublicReissue, RemarkInput as Remark, ExpressLogistics as ReturnLogistics, SYSTEM_ORDER_COLUMNS_MAP, ShopNameSelect as ShopName, SkxGoods, IdInputSelect as SkxIdInputSelect, Status, SubForm, Supplier, TBGoodId, TBGoodSerial, TradeId, WdtGoodList, wdtReissue as WdtReissue, WlnGoods, columnsBaseInfoMap, erpColumnsMap, erpFormValidator, index$1 as erpModalColumnsMap, getColumns$4 as getGyColumns, getColumns$5 as getJstColumns, getColumns$7 as getJyColumns, getColumns$6 as getKmColumns, getColumns$8 as getSkxColumns, getColumns$2 as getWdtColumns, getColumns$3 as getWlnColumns, orderSubFormConstants, renderMap };
28768
+ export { ApaasAddress as Address, AliPay, Province as ApaasAddress, ApaasCascader, ApaasCheckbox, ApaasDate, withFormItem as ApaasHoc, ApaasImage, ApaasInput, ApaasInputNumber, ApaasLogistics, ApaasMultipleSelect, ApaasPosting, ApaasRadio, ApaasRate, ApaasSelect, ApaasSlider, ApaasTextArea, ApaasUpload, ApaasUploadAsync$1 as ApaasUploadAsync, ApaasUploadFile, index as ApaasUploadProAsync, AsyncSelect, bsE3Reissue as BsE3Reissue, BsExchange, BsGoods, BsReissue, BsReturnGoods as BsReturn, index$2 as BsSystemOrder, BuyerNick, CalculationInput, ChooseBaby, CommonExchangeGoods, CommonGoods, CommonSystemOrder$1 as CommonMultiStatus, CommonReturnGoods, CommonStatus, CommonSystemOrder, CopyTextIcon, ExpressLogistics, Goods, index$3 as GoodsTable, GyReissue, GyReturnGoods as GyReturn, IdentifyAddress, Invoice, jstGoods as JstGoods, ItemList as JstItemList, KmVideo, LogisticsInterception, LogisticsMoreInterception, LogisticsMoreTrajectory, LogisticsTrajectory, MsgStatus, OrderSubForm, utils as OrderSubFormUtils, ParseLogistics, Payment, PublicReissue, RemarkInput as Remark, ExpressLogistics as ReturnLogistics, SYSTEM_ORDER_COLUMNS_MAP, ShopNameSelect as ShopName, SkxGoods, IdInputSelect as SkxIdInputSelect, Status, SubForm, Supplier, TBGoodId, TBGoodSerial, TradeId, WdtGoodList, wdtReissue as WdtReissue, WlnGoods, columnsBaseInfoMap, erpColumnsMap, erpFormValidator, index$1 as erpModalColumnsMap, getColumns$4 as getGyColumns, getColumns$5 as getJstColumns, getColumns$7 as getJyColumns, getColumns$6 as getKmColumns, getColumns$8 as getSkxColumns, getColumns$2 as getWdtColumns, getColumns$3 as getWlnColumns, orderSubFormConstants, renderMap };