@kmkf-fe-packages/basic-components 2.2.13-beta.91 → 2.2.13-beta.92

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
@@ -3,7 +3,7 @@ import { Cascader, DatePicker, InputNumber, Input, Select, Upload, Image, messag
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';
@@ -8108,6 +8108,11 @@ var systemOrderMap = {
8108
8108
  no: 'jstSystemOrderNo',
8109
8109
  ids: 'jstSystemSelectIds',
8110
8110
  order: 'jstSystemShowOrder'
8111
+ },
8112
+ WDT_RETURN_BILL_NO: {
8113
+ no: 'wdtReturnBillNo',
8114
+ ids: 'wdtReturnBillNoSelectIds',
8115
+ order: 'wdtReturnBillNoShowOrder'
8111
8116
  }
8112
8117
  };
8113
8118
  //直接将key component 添加到 transformWorkOrderData中的componentProcessors
@@ -8680,6 +8685,33 @@ var processWdtGoods = function processWdtGoods(templateColumns) {
8680
8685
  };
8681
8686
  };
8682
8687
  };
8688
+ var processWdtAftersaleGoods = function processWdtAftersaleGoods(templateColumns) {
8689
+ return function (getValue) {
8690
+ return function (nex, config) {
8691
+ var _values = {
8692
+ wdtAftersaleGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_wdtAftersaleGoods")), []),
8693
+ shopCode: getValue("".concat(nex.uniqueKey, "_shopCode"))
8694
+ };
8695
+ var selectIds = [];
8696
+ var orderNo = '';
8697
+ var tradeId = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
8698
+ return col.workOrderComponentType === 'TRADE_ID_INPUT';
8699
+ });
8700
+ if (tradeId) {
8701
+ orderNo = getValue("".concat(tradeId.uniqueKey, "_").concat(updateWorkTypeKeys[tradeId.workOrderComponentType]));
8702
+ }
8703
+ var wdtAftersaleSystemOrder = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
8704
+ return col.workOrderComponentType === 'WDT_RETURN_BILL_NO';
8705
+ });
8706
+ if (wdtAftersaleSystemOrder) {
8707
+ selectIds = jsonParseSecurity(getValue("".concat(wdtAftersaleSystemOrder.uniqueKey, "_").concat(systemOrderMap[wdtAftersaleSystemOrder.workOrderComponentType].ids)), []);
8708
+ }
8709
+ _values.selectIds = selectIds;
8710
+ _values.orderNo = orderNo;
8711
+ return _defineProperty({}, nex.uniqueKey, _values);
8712
+ };
8713
+ };
8714
+ };
8683
8715
  var processBsE3Goods = function processBsE3Goods(templateColumns) {
8684
8716
  return function (getValue) {
8685
8717
  return function (nex, config) {
@@ -8912,11 +8944,16 @@ var processErpSystemOrder = function processErpSystemOrder(getValue) {
8912
8944
  no: 'jstSystemOrderNo',
8913
8945
  ids: 'jstSystemSelectIds',
8914
8946
  order: 'jstSystemShowOrder'
8947
+ },
8948
+ WDT_RETURN_BILL_NO: {
8949
+ no: 'wdtReturnBillNo',
8950
+ ids: 'wdtReturnBillNoSelectIds',
8951
+ order: 'wdtReturnBillNoShowOrder'
8915
8952
  }
8916
8953
  };
8917
8954
  return _defineProperty({}, nex.uniqueKey, {
8918
8955
  orderNo: getValue("".concat(nex.uniqueKey, "_").concat(systemOrderMap[nex.workOrderComponentType].no)),
8919
- orders: [],
8956
+ orders: nex.workOrderComponentType === 'WDT_RETURN_BILL_NO' ? jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_").concat(systemOrderMap[nex.workOrderComponentType].order)), []) : [],
8920
8957
  selectIds: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_").concat(systemOrderMap[nex.workOrderComponentType].ids)), []),
8921
8958
  showOrderInfo: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_").concat(systemOrderMap[nex.workOrderComponentType].order)), [])
8922
8959
  });
@@ -9147,14 +9184,14 @@ var processJstReturnGoods = function processJstReturnGoods(templateColumns) {
9147
9184
  };
9148
9185
  var processLabel = function processLabel(getValue) {
9149
9186
  return function (nex, config) {
9150
- var _ref72;
9151
- 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;
9187
+ var _ref73;
9188
+ 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;
9152
9189
  };
9153
9190
  };
9154
9191
  var processMemberLevel = function processMemberLevel(getValue) {
9155
9192
  return function (nex, config) {
9156
- var _ref73;
9157
- 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;
9193
+ var _ref74;
9194
+ 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;
9158
9195
  };
9159
9196
  };
9160
9197
  var processAfterSalesOrderId = function processAfterSalesOrderId(getValue) {
@@ -9272,6 +9309,7 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
9272
9309
  BS_POSTING: processBsPosting,
9273
9310
  BS_GOODS: processBsGoods,
9274
9311
  WDT_GOODS: processWdtGoods(templateColumns),
9312
+ WDT_AFTERSALE_GOODS: processWdtAftersaleGoods(templateColumns),
9275
9313
  BS_E3_GOODS: processBsE3Goods(templateColumns),
9276
9314
  GY_GOODS: processGyGoods(templateColumns),
9277
9315
  KM_GOODS: processKmGoods(templateColumns),
@@ -9288,6 +9326,7 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
9288
9326
  KM_SYSTEM_ORDER: processErpSystemOrder,
9289
9327
  WLN_SYSTEM_ORDER: processErpSystemOrder,
9290
9328
  WDT_SYSTEM_ORDER: processErpSystemOrder,
9329
+ WDT_RETURN_BILL_NO: processErpSystemOrder,
9291
9330
  BS_E3_SYSTEM_ORDER: processErpSystemOrder,
9292
9331
  JST_SYSTEM_ORDER: processErpSystemOrder,
9293
9332
  GY_SYSTEM_ORDER: processErpSystemOrder,
@@ -19326,6 +19365,141 @@ var getColumns$2 = function getColumns(_ref) {
19326
19365
  }
19327
19366
  }) : /*#__PURE__*/React.createElement("span", null, typeMap[val]);
19328
19367
  }
19368
+ }],
19369
+ // 旺店通售后商品信息
19370
+ WDT_AFTERSALE_GOODS: [{
19371
+ dataIndex: 'oid',
19372
+ title: "\u539F\u59CB\u5B50\u5355\u53F7",
19373
+ width: 200,
19374
+ align: 'center',
19375
+ ellipsis: true,
19376
+ render: renderTextEllipsis
19377
+ }, {
19378
+ dataIndex: 'goodsName',
19379
+ title: "\u8D27\u54C1\u540D\u79F0",
19380
+ width: 250,
19381
+ align: 'center',
19382
+ ellipsis: true,
19383
+ render: renderTextEllipsis
19384
+ }, {
19385
+ dataIndex: 'goodsNo',
19386
+ title: "\u8D27\u54C1\u7F16\u53F7",
19387
+ width: 150,
19388
+ align: 'center',
19389
+ ellipsis: true,
19390
+ render: renderTextEllipsis
19391
+ }, {
19392
+ dataIndex: 'specName',
19393
+ title: "\u89C4\u683C\u540D\u79F0",
19394
+ width: 150,
19395
+ align: 'center',
19396
+ ellipsis: true,
19397
+ render: renderTextEllipsis
19398
+ }, {
19399
+ dataIndex: 'specNo',
19400
+ title: "\u5546\u5BB6\u7F16\u7801",
19401
+ width: 200,
19402
+ align: 'center',
19403
+ ellipsis: true,
19404
+ render: renderTextEllipsis
19405
+ }, {
19406
+ dataIndex: 'specCode',
19407
+ title: "\u89C4\u683C\u7F16\u53F7",
19408
+ width: 150,
19409
+ align: 'center',
19410
+ ellipsis: true,
19411
+ render: renderTextEllipsis
19412
+ }, {
19413
+ dataIndex: 'barcode',
19414
+ title: "\u6761\u7801",
19415
+ width: 150,
19416
+ align: 'center',
19417
+ ellipsis: true,
19418
+ render: renderTextEllipsis
19419
+ }, {
19420
+ dataIndex: 'apiGoodsName',
19421
+ title: "\u5E73\u53F0\u8D27\u54C1\u540D\u79F0",
19422
+ width: 250,
19423
+ align: 'center',
19424
+ ellipsis: true,
19425
+ render: renderTextEllipsis
19426
+ }, {
19427
+ dataIndex: 'apiSpecName',
19428
+ title: "\u5E73\u53F0\u89C4\u683C\u540D\u79F0",
19429
+ width: 250,
19430
+ align: 'center',
19431
+ ellipsis: true,
19432
+ render: renderTextEllipsis
19433
+ }, {
19434
+ dataIndex: 'suiteName',
19435
+ title: "\u7EC4\u5408\u88C5\u540D\u79F0",
19436
+ width: 150,
19437
+ align: 'center',
19438
+ ellipsis: true,
19439
+ render: renderTextEllipsis
19440
+ }, {
19441
+ dataIndex: 'suiteNo',
19442
+ title: "\u7EC4\u5408\u88C5\u7F16\u53F7",
19443
+ width: 150,
19444
+ align: 'center',
19445
+ ellipsis: true,
19446
+ render: renderTextEllipsis
19447
+ }, {
19448
+ dataIndex: 'stockinNum',
19449
+ title: "\u5165\u5E93\u6570\u91CF",
19450
+ width: 100,
19451
+ align: 'center',
19452
+ ellipsis: true,
19453
+ render: renderTextEllipsis
19454
+ }, {
19455
+ dataIndex: 'refundNum',
19456
+ title: "\u9000\u6B3E\u6570\u91CF",
19457
+ width: 100,
19458
+ align: 'center',
19459
+ ellipsis: true,
19460
+ render: renderTextEllipsis
19461
+ }, {
19462
+ dataIndex: 'totalAmount',
19463
+ title: "\u9000\u8D27\u603B\u989D",
19464
+ width: 100,
19465
+ align: 'center',
19466
+ ellipsis: true,
19467
+ render: renderTextEllipsis
19468
+ }, {
19469
+ dataIndex: 'refundAmount',
19470
+ title: "\u5DF2\u9000\u6B3E\u91D1\u989D",
19471
+ width: 100,
19472
+ align: 'center',
19473
+ ellipsis: true,
19474
+ render: renderTextEllipsis
19475
+ }, {
19476
+ dataIndex: 'orderNum',
19477
+ title: "\u5B9E\u9645\u53D1\u51FA\u6570\u91CF",
19478
+ width: 100,
19479
+ align: 'center',
19480
+ ellipsis: true,
19481
+ render: renderTextEllipsis
19482
+ }, {
19483
+ dataIndex: 'price',
19484
+ title: "\u4EF7\u683C",
19485
+ width: 100,
19486
+ align: 'center',
19487
+ ellipsis: true,
19488
+ render: renderTextEllipsis
19489
+ }, {
19490
+ dataIndex: 'originalPrice',
19491
+ title: "\u539F\u4EF7",
19492
+ width: 100,
19493
+ align: 'center',
19494
+ ellipsis: true,
19495
+ render: renderTextEllipsis
19496
+ }, {
19497
+ dataIndex: 'giftType',
19498
+ title: "\u8D60\u54C1\u7C7B\u578B",
19499
+ width: 100,
19500
+ align: 'center',
19501
+ ellipsis: true,
19502
+ render: renderTextEllipsis
19329
19503
  }]
19330
19504
  };
19331
19505
  };
@@ -21817,6 +21991,7 @@ var systemOrderNoMap = {
21817
21991
  GY_GOODS: 'code',
21818
21992
  KM_GOODS: 'sid',
21819
21993
  WDT_GOODS: 'tradeNo',
21994
+ WDT_AFTERSALE_GOODS: 'tid',
21820
21995
  BS_E3_GOODS: 'orderSn',
21821
21996
  JST_GOODS: 'oId',
21822
21997
  WLN_GOODS: 'tradeNo',
@@ -22099,6 +22274,7 @@ var GoodItem$1 = function GoodItem(props) {
22099
22274
  var columns = [];
22100
22275
  switch (type) {
22101
22276
  case 'WDT_GOODS':
22277
+ case 'WDT_AFTERSALE_GOODS':
22102
22278
  case 'WDT_RETURN_GOODS':
22103
22279
  case 'WDT_EXCHANGE_GOODS':
22104
22280
  case 'BS_E3_GOODS':
@@ -23375,7 +23551,8 @@ var columnsMap = {
23375
23551
  BS_E3_SYSTEM_ORDER: BS_E3_SYSTEM_ORDER_CONFIG.columns,
23376
23552
  GY_SYSTEM_ORDER: GY_SYSTEM_ORDER_CONFIG.columns,
23377
23553
  JST_SYSTEM_ORDER: JST_SYSTEM_ORDER_CONFIG.columns,
23378
- JY_SYSTEM_ORDER: JY_SYSTEM_ORDER_CONFIG.columns
23554
+ JY_SYSTEM_ORDER: JY_SYSTEM_ORDER_CONFIG.columns,
23555
+ WDT_RETURN_BILL_NO: WDT_RETURN_BILL_NO_CONFIG.columns
23379
23556
  };
23380
23557
  var rowKeyMap = {
23381
23558
  BS_SYSTEM_ORDER: 'billNo',
@@ -23385,7 +23562,8 @@ var rowKeyMap = {
23385
23562
  BS_E3_SYSTEM_ORDER: 'orderSn',
23386
23563
  GY_SYSTEM_ORDER: 'billNo',
23387
23564
  JST_SYSTEM_ORDER: 'oId',
23388
- JY_SYSTEM_ORDER: 'tradeNo'
23565
+ JY_SYSTEM_ORDER: 'tradeNo',
23566
+ WDT_RETURN_BILL_NO: 'refundNo'
23389
23567
  };
23390
23568
  var index$2 = (function (props) {
23391
23569
  var value = props.value,
@@ -23399,6 +23577,7 @@ var index$2 = (function (props) {
23399
23577
  useEffect(function () {
23400
23578
  var _value$orders, _value$showOrderInfo;
23401
23579
  valueRef.current = value;
23580
+ console.log('value77777777', value);
23402
23581
  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) {
23403
23582
  onceRef.current = true;
23404
23583
  if (type === 'BS_SYSTEM_ORDER') {
@@ -24865,10 +25044,29 @@ var componentMap$2 = {
24865
25044
  exchangeDeleteGood: 'jyExchangeDeleteGood'
24866
25045
  },
24867
25046
  getOrderList: jyUtils.getJyOrderListSingleton
25047
+ },
25048
+ WDT_AFTERSALE_GOODS: {
25049
+ type: 'wdtAftersale',
25050
+ key: 'wdtAftersaleGoods',
25051
+ name: '旺店通售后',
25052
+ orderNo: 'srcTids',
25053
+ goodDetailOrderNo: 'srcTids',
25054
+ showChangeBtn: false,
25055
+ eventNameMap: {
25056
+ // pubsub 事件
25057
+ type: 'wdtAftersaleType',
25058
+ updateGoodsHandle: updateWdtAftersaleGoodsHandle,
25059
+ selectListReturn: 'wdtAftersaleSelectListReturn',
25060
+ selectList: 'wdtAftersaleSelectList',
25061
+ reissueSelectList: 'wdtAftersaleReissueSelectList',
25062
+ reissueSelectListReturn: 'wdtAftersaleReissueSelectListReturn',
25063
+ reissueDeleteGood: 'wdtAftersaleReissueDeleteGood'
25064
+ },
25065
+ getOrderList: wdtUtils.getWdtOrderListSingleton
24868
25066
  }
24869
25067
  };
24870
25068
  var CommonGoods = function CommonGoods(props) {
24871
- var _componentMap$compTyp5, _withInfo$current3, _withInfo$current4;
25069
+ var _componentMap$compTyp5, _withInfo$current3, _withInfo$current4, _componentMap$compTyp7;
24872
25070
  var value = props.value,
24873
25071
  disabled = props.disabled,
24874
25072
  onChange = props.onChange,
@@ -25099,6 +25297,7 @@ var CommonGoods = function CommonGoods(props) {
25099
25297
  isStrict: value === null || value === void 0 ? void 0 : value.isStrict,
25100
25298
  systemOrders: value === null || value === void 0 ? void 0 : value.allOrders,
25101
25299
  selectedSystemOrders: value === null || value === void 0 ? void 0 : value.orders,
25300
+ showChangeBtn: (_componentMap$compTyp7 = componentMap$2[compType]) === null || _componentMap$compTyp7 === void 0 ? void 0 : _componentMap$compTyp7.showChangeBtn,
25102
25301
  tradeGoods: {
25103
25302
  originDataSource: getAllTradeGoodsDetails({
25104
25303
  mode: value === null || value === void 0 ? void 0 : value.isStrict
@@ -28345,7 +28544,8 @@ var SYSTEM_ORDER_COLUMNS_MAP = {
28345
28544
  BS_E3_SYSTEM_ORDER: BS_E3_SYSTEM_ORDER_CONFIG.columns,
28346
28545
  GY_SYSTEM_ORDER: GY_SYSTEM_ORDER_CONFIG.columns,
28347
28546
  JST_SYSTEM_ORDER: JST_SYSTEM_ORDER_CONFIG.columns,
28348
- JY_SYSTEM_ORDER: JY_SYSTEM_ORDER_CONFIG.columns
28547
+ JY_SYSTEM_ORDER: JY_SYSTEM_ORDER_CONFIG.columns,
28548
+ WDT_RETURN_BILL_NO: WDT_RETURN_BILL_NO_CONFIG.columns
28349
28549
  };
28350
28550
 
28351
28551
  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 };
package/dist/index.js CHANGED
@@ -8123,6 +8123,11 @@ var systemOrderMap = {
8123
8123
  no: 'jstSystemOrderNo',
8124
8124
  ids: 'jstSystemSelectIds',
8125
8125
  order: 'jstSystemShowOrder'
8126
+ },
8127
+ WDT_RETURN_BILL_NO: {
8128
+ no: 'wdtReturnBillNo',
8129
+ ids: 'wdtReturnBillNoSelectIds',
8130
+ order: 'wdtReturnBillNoShowOrder'
8126
8131
  }
8127
8132
  };
8128
8133
  //直接将key component 添加到 transformWorkOrderData中的componentProcessors
@@ -8695,6 +8700,33 @@ var processWdtGoods = function processWdtGoods(templateColumns) {
8695
8700
  };
8696
8701
  };
8697
8702
  };
8703
+ var processWdtAftersaleGoods = function processWdtAftersaleGoods(templateColumns) {
8704
+ return function (getValue) {
8705
+ return function (nex, config) {
8706
+ var _values = {
8707
+ wdtAftersaleGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_wdtAftersaleGoods")), []),
8708
+ shopCode: getValue("".concat(nex.uniqueKey, "_shopCode"))
8709
+ };
8710
+ var selectIds = [];
8711
+ var orderNo = '';
8712
+ var tradeId = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
8713
+ return col.workOrderComponentType === 'TRADE_ID_INPUT';
8714
+ });
8715
+ if (tradeId) {
8716
+ orderNo = getValue("".concat(tradeId.uniqueKey, "_").concat(updateWorkTypeKeys[tradeId.workOrderComponentType]));
8717
+ }
8718
+ var wdtAftersaleSystemOrder = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
8719
+ return col.workOrderComponentType === 'WDT_RETURN_BILL_NO';
8720
+ });
8721
+ if (wdtAftersaleSystemOrder) {
8722
+ selectIds = jsonParseSecurity(getValue("".concat(wdtAftersaleSystemOrder.uniqueKey, "_").concat(systemOrderMap[wdtAftersaleSystemOrder.workOrderComponentType].ids)), []);
8723
+ }
8724
+ _values.selectIds = selectIds;
8725
+ _values.orderNo = orderNo;
8726
+ return _defineProperty({}, nex.uniqueKey, _values);
8727
+ };
8728
+ };
8729
+ };
8698
8730
  var processBsE3Goods = function processBsE3Goods(templateColumns) {
8699
8731
  return function (getValue) {
8700
8732
  return function (nex, config) {
@@ -8927,11 +8959,16 @@ var processErpSystemOrder = function processErpSystemOrder(getValue) {
8927
8959
  no: 'jstSystemOrderNo',
8928
8960
  ids: 'jstSystemSelectIds',
8929
8961
  order: 'jstSystemShowOrder'
8962
+ },
8963
+ WDT_RETURN_BILL_NO: {
8964
+ no: 'wdtReturnBillNo',
8965
+ ids: 'wdtReturnBillNoSelectIds',
8966
+ order: 'wdtReturnBillNoShowOrder'
8930
8967
  }
8931
8968
  };
8932
8969
  return _defineProperty({}, nex.uniqueKey, {
8933
8970
  orderNo: getValue("".concat(nex.uniqueKey, "_").concat(systemOrderMap[nex.workOrderComponentType].no)),
8934
- orders: [],
8971
+ orders: nex.workOrderComponentType === 'WDT_RETURN_BILL_NO' ? jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_").concat(systemOrderMap[nex.workOrderComponentType].order)), []) : [],
8935
8972
  selectIds: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_").concat(systemOrderMap[nex.workOrderComponentType].ids)), []),
8936
8973
  showOrderInfo: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_").concat(systemOrderMap[nex.workOrderComponentType].order)), [])
8937
8974
  });
@@ -9162,14 +9199,14 @@ var processJstReturnGoods = function processJstReturnGoods(templateColumns) {
9162
9199
  };
9163
9200
  var processLabel = function processLabel(getValue) {
9164
9201
  return function (nex, config) {
9165
- var _ref72;
9166
- 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;
9202
+ var _ref73;
9203
+ 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;
9167
9204
  };
9168
9205
  };
9169
9206
  var processMemberLevel = function processMemberLevel(getValue) {
9170
9207
  return function (nex, config) {
9171
- var _ref73;
9172
- 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;
9208
+ var _ref74;
9209
+ 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;
9173
9210
  };
9174
9211
  };
9175
9212
  var processAfterSalesOrderId = function processAfterSalesOrderId(getValue) {
@@ -9287,6 +9324,7 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
9287
9324
  BS_POSTING: processBsPosting,
9288
9325
  BS_GOODS: processBsGoods,
9289
9326
  WDT_GOODS: processWdtGoods(templateColumns),
9327
+ WDT_AFTERSALE_GOODS: processWdtAftersaleGoods(templateColumns),
9290
9328
  BS_E3_GOODS: processBsE3Goods(templateColumns),
9291
9329
  GY_GOODS: processGyGoods(templateColumns),
9292
9330
  KM_GOODS: processKmGoods(templateColumns),
@@ -9303,6 +9341,7 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
9303
9341
  KM_SYSTEM_ORDER: processErpSystemOrder,
9304
9342
  WLN_SYSTEM_ORDER: processErpSystemOrder,
9305
9343
  WDT_SYSTEM_ORDER: processErpSystemOrder,
9344
+ WDT_RETURN_BILL_NO: processErpSystemOrder,
9306
9345
  BS_E3_SYSTEM_ORDER: processErpSystemOrder,
9307
9346
  JST_SYSTEM_ORDER: processErpSystemOrder,
9308
9347
  GY_SYSTEM_ORDER: processErpSystemOrder,
@@ -19341,6 +19380,141 @@ var getColumns$2 = function getColumns(_ref) {
19341
19380
  }
19342
19381
  }) : /*#__PURE__*/React__default['default'].createElement("span", null, typeMap[val]);
19343
19382
  }
19383
+ }],
19384
+ // 旺店通售后商品信息
19385
+ WDT_AFTERSALE_GOODS: [{
19386
+ dataIndex: 'oid',
19387
+ title: "\u539F\u59CB\u5B50\u5355\u53F7",
19388
+ width: 200,
19389
+ align: 'center',
19390
+ ellipsis: true,
19391
+ render: renderTextEllipsis
19392
+ }, {
19393
+ dataIndex: 'goodsName',
19394
+ title: "\u8D27\u54C1\u540D\u79F0",
19395
+ width: 250,
19396
+ align: 'center',
19397
+ ellipsis: true,
19398
+ render: renderTextEllipsis
19399
+ }, {
19400
+ dataIndex: 'goodsNo',
19401
+ title: "\u8D27\u54C1\u7F16\u53F7",
19402
+ width: 150,
19403
+ align: 'center',
19404
+ ellipsis: true,
19405
+ render: renderTextEllipsis
19406
+ }, {
19407
+ dataIndex: 'specName',
19408
+ title: "\u89C4\u683C\u540D\u79F0",
19409
+ width: 150,
19410
+ align: 'center',
19411
+ ellipsis: true,
19412
+ render: renderTextEllipsis
19413
+ }, {
19414
+ dataIndex: 'specNo',
19415
+ title: "\u5546\u5BB6\u7F16\u7801",
19416
+ width: 200,
19417
+ align: 'center',
19418
+ ellipsis: true,
19419
+ render: renderTextEllipsis
19420
+ }, {
19421
+ dataIndex: 'specCode',
19422
+ title: "\u89C4\u683C\u7F16\u53F7",
19423
+ width: 150,
19424
+ align: 'center',
19425
+ ellipsis: true,
19426
+ render: renderTextEllipsis
19427
+ }, {
19428
+ dataIndex: 'barcode',
19429
+ title: "\u6761\u7801",
19430
+ width: 150,
19431
+ align: 'center',
19432
+ ellipsis: true,
19433
+ render: renderTextEllipsis
19434
+ }, {
19435
+ dataIndex: 'apiGoodsName',
19436
+ title: "\u5E73\u53F0\u8D27\u54C1\u540D\u79F0",
19437
+ width: 250,
19438
+ align: 'center',
19439
+ ellipsis: true,
19440
+ render: renderTextEllipsis
19441
+ }, {
19442
+ dataIndex: 'apiSpecName',
19443
+ title: "\u5E73\u53F0\u89C4\u683C\u540D\u79F0",
19444
+ width: 250,
19445
+ align: 'center',
19446
+ ellipsis: true,
19447
+ render: renderTextEllipsis
19448
+ }, {
19449
+ dataIndex: 'suiteName',
19450
+ title: "\u7EC4\u5408\u88C5\u540D\u79F0",
19451
+ width: 150,
19452
+ align: 'center',
19453
+ ellipsis: true,
19454
+ render: renderTextEllipsis
19455
+ }, {
19456
+ dataIndex: 'suiteNo',
19457
+ title: "\u7EC4\u5408\u88C5\u7F16\u53F7",
19458
+ width: 150,
19459
+ align: 'center',
19460
+ ellipsis: true,
19461
+ render: renderTextEllipsis
19462
+ }, {
19463
+ dataIndex: 'stockinNum',
19464
+ title: "\u5165\u5E93\u6570\u91CF",
19465
+ width: 100,
19466
+ align: 'center',
19467
+ ellipsis: true,
19468
+ render: renderTextEllipsis
19469
+ }, {
19470
+ dataIndex: 'refundNum',
19471
+ title: "\u9000\u6B3E\u6570\u91CF",
19472
+ width: 100,
19473
+ align: 'center',
19474
+ ellipsis: true,
19475
+ render: renderTextEllipsis
19476
+ }, {
19477
+ dataIndex: 'totalAmount',
19478
+ title: "\u9000\u8D27\u603B\u989D",
19479
+ width: 100,
19480
+ align: 'center',
19481
+ ellipsis: true,
19482
+ render: renderTextEllipsis
19483
+ }, {
19484
+ dataIndex: 'refundAmount',
19485
+ title: "\u5DF2\u9000\u6B3E\u91D1\u989D",
19486
+ width: 100,
19487
+ align: 'center',
19488
+ ellipsis: true,
19489
+ render: renderTextEllipsis
19490
+ }, {
19491
+ dataIndex: 'orderNum',
19492
+ title: "\u5B9E\u9645\u53D1\u51FA\u6570\u91CF",
19493
+ width: 100,
19494
+ align: 'center',
19495
+ ellipsis: true,
19496
+ render: renderTextEllipsis
19497
+ }, {
19498
+ dataIndex: 'price',
19499
+ title: "\u4EF7\u683C",
19500
+ width: 100,
19501
+ align: 'center',
19502
+ ellipsis: true,
19503
+ render: renderTextEllipsis
19504
+ }, {
19505
+ dataIndex: 'originalPrice',
19506
+ title: "\u539F\u4EF7",
19507
+ width: 100,
19508
+ align: 'center',
19509
+ ellipsis: true,
19510
+ render: renderTextEllipsis
19511
+ }, {
19512
+ dataIndex: 'giftType',
19513
+ title: "\u8D60\u54C1\u7C7B\u578B",
19514
+ width: 100,
19515
+ align: 'center',
19516
+ ellipsis: true,
19517
+ render: renderTextEllipsis
19344
19518
  }]
19345
19519
  };
19346
19520
  };
@@ -21832,6 +22006,7 @@ var systemOrderNoMap = {
21832
22006
  GY_GOODS: 'code',
21833
22007
  KM_GOODS: 'sid',
21834
22008
  WDT_GOODS: 'tradeNo',
22009
+ WDT_AFTERSALE_GOODS: 'tid',
21835
22010
  BS_E3_GOODS: 'orderSn',
21836
22011
  JST_GOODS: 'oId',
21837
22012
  WLN_GOODS: 'tradeNo',
@@ -22114,6 +22289,7 @@ var GoodItem$1 = function GoodItem(props) {
22114
22289
  var columns = [];
22115
22290
  switch (type) {
22116
22291
  case 'WDT_GOODS':
22292
+ case 'WDT_AFTERSALE_GOODS':
22117
22293
  case 'WDT_RETURN_GOODS':
22118
22294
  case 'WDT_EXCHANGE_GOODS':
22119
22295
  case 'BS_E3_GOODS':
@@ -23390,7 +23566,8 @@ var columnsMap = {
23390
23566
  BS_E3_SYSTEM_ORDER: kmkfUtils.BS_E3_SYSTEM_ORDER_CONFIG.columns,
23391
23567
  GY_SYSTEM_ORDER: kmkfUtils.GY_SYSTEM_ORDER_CONFIG.columns,
23392
23568
  JST_SYSTEM_ORDER: kmkfUtils.JST_SYSTEM_ORDER_CONFIG.columns,
23393
- JY_SYSTEM_ORDER: kmkfUtils.JY_SYSTEM_ORDER_CONFIG.columns
23569
+ JY_SYSTEM_ORDER: kmkfUtils.JY_SYSTEM_ORDER_CONFIG.columns,
23570
+ WDT_RETURN_BILL_NO: kmkfUtils.WDT_RETURN_BILL_NO_CONFIG.columns
23394
23571
  };
23395
23572
  var rowKeyMap = {
23396
23573
  BS_SYSTEM_ORDER: 'billNo',
@@ -23400,7 +23577,8 @@ var rowKeyMap = {
23400
23577
  BS_E3_SYSTEM_ORDER: 'orderSn',
23401
23578
  GY_SYSTEM_ORDER: 'billNo',
23402
23579
  JST_SYSTEM_ORDER: 'oId',
23403
- JY_SYSTEM_ORDER: 'tradeNo'
23580
+ JY_SYSTEM_ORDER: 'tradeNo',
23581
+ WDT_RETURN_BILL_NO: 'refundNo'
23404
23582
  };
23405
23583
  var index$2 = (function (props) {
23406
23584
  var value = props.value,
@@ -23414,6 +23592,7 @@ var index$2 = (function (props) {
23414
23592
  React.useEffect(function () {
23415
23593
  var _value$orders, _value$showOrderInfo;
23416
23594
  valueRef.current = value;
23595
+ console.log('value77777777', value);
23417
23596
  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) {
23418
23597
  onceRef.current = true;
23419
23598
  if (type === 'BS_SYSTEM_ORDER') {
@@ -24880,10 +25059,29 @@ var componentMap$2 = {
24880
25059
  exchangeDeleteGood: 'jyExchangeDeleteGood'
24881
25060
  },
24882
25061
  getOrderList: jyUtils.getJyOrderListSingleton
25062
+ },
25063
+ WDT_AFTERSALE_GOODS: {
25064
+ type: 'wdtAftersale',
25065
+ key: 'wdtAftersaleGoods',
25066
+ name: '旺店通售后',
25067
+ orderNo: 'srcTids',
25068
+ goodDetailOrderNo: 'srcTids',
25069
+ showChangeBtn: false,
25070
+ eventNameMap: {
25071
+ // pubsub 事件
25072
+ type: 'wdtAftersaleType',
25073
+ updateGoodsHandle: kmkfUtils.updateWdtAftersaleGoodsHandle,
25074
+ selectListReturn: 'wdtAftersaleSelectListReturn',
25075
+ selectList: 'wdtAftersaleSelectList',
25076
+ reissueSelectList: 'wdtAftersaleReissueSelectList',
25077
+ reissueSelectListReturn: 'wdtAftersaleReissueSelectListReturn',
25078
+ reissueDeleteGood: 'wdtAftersaleReissueDeleteGood'
25079
+ },
25080
+ getOrderList: wdtUtils.getWdtOrderListSingleton
24883
25081
  }
24884
25082
  };
24885
25083
  var CommonGoods = function CommonGoods(props) {
24886
- var _componentMap$compTyp5, _withInfo$current3, _withInfo$current4;
25084
+ var _componentMap$compTyp5, _withInfo$current3, _withInfo$current4, _componentMap$compTyp7;
24887
25085
  var value = props.value,
24888
25086
  disabled = props.disabled,
24889
25087
  onChange = props.onChange,
@@ -25114,6 +25312,7 @@ var CommonGoods = function CommonGoods(props) {
25114
25312
  isStrict: value === null || value === void 0 ? void 0 : value.isStrict,
25115
25313
  systemOrders: value === null || value === void 0 ? void 0 : value.allOrders,
25116
25314
  selectedSystemOrders: value === null || value === void 0 ? void 0 : value.orders,
25315
+ showChangeBtn: (_componentMap$compTyp7 = componentMap$2[compType]) === null || _componentMap$compTyp7 === void 0 ? void 0 : _componentMap$compTyp7.showChangeBtn,
25117
25316
  tradeGoods: {
25118
25317
  originDataSource: getAllTradeGoodsDetails({
25119
25318
  mode: value === null || value === void 0 ? void 0 : value.isStrict
@@ -28360,7 +28559,8 @@ var SYSTEM_ORDER_COLUMNS_MAP = {
28360
28559
  BS_E3_SYSTEM_ORDER: kmkfUtils.BS_E3_SYSTEM_ORDER_CONFIG.columns,
28361
28560
  GY_SYSTEM_ORDER: kmkfUtils.GY_SYSTEM_ORDER_CONFIG.columns,
28362
28561
  JST_SYSTEM_ORDER: kmkfUtils.JST_SYSTEM_ORDER_CONFIG.columns,
28363
- JY_SYSTEM_ORDER: kmkfUtils.JY_SYSTEM_ORDER_CONFIG.columns
28562
+ JY_SYSTEM_ORDER: kmkfUtils.JY_SYSTEM_ORDER_CONFIG.columns,
28563
+ WDT_RETURN_BILL_NO: kmkfUtils.WDT_RETURN_BILL_NO_CONFIG.columns
28364
28564
  };
28365
28565
 
28366
28566
  exports.Address = ApaasAddress;
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/basic-components",
3
- "version": "2.2.13-beta.91",
3
+ "version": "2.2.13-beta.92",
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.87",
23
+ "@kmkf-fe-packages/kmkf-utils": "2.2.13-beta.92",
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": "fafcb503a0efccb5d5f8219bea798faf6f392879"
69
+ "gitHead": "f6534d25e1f818911244be34af72a26de1996afa"
70
70
  }