@kmkf-fe-packages/basic-components 2.2.30 → 2.2.31-beta.0

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
@@ -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: 'wdtReturnBillSelectIds',
8130
+ order: 'wdtReturnBillShowOrder'
8126
8131
  }
8127
8132
  };
8128
8133
  //直接将key component 添加到 transformWorkOrderData中的componentProcessors
@@ -8695,6 +8700,52 @@ 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
+ };
8730
+ var processJstAftersaleGoods = function processJstAftersaleGoods(templateColumns) {
8731
+ return function (getValue) {
8732
+ return function (nex) {
8733
+ var _values = {
8734
+ jstAftersaleGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_jstAftersaleGoods")), []),
8735
+ shopCode: getValue("".concat(nex.uniqueKey, "_shopCode"))
8736
+ };
8737
+ var orderNo = '';
8738
+ var tradeId = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
8739
+ return col.workOrderComponentType === 'TRADE_ID_INPUT';
8740
+ });
8741
+ if (tradeId) {
8742
+ orderNo = getValue("".concat(tradeId.uniqueKey, "_").concat(updateWorkTypeKeys[tradeId.workOrderComponentType]));
8743
+ }
8744
+ _values.orderNo = orderNo;
8745
+ return _defineProperty({}, nex.uniqueKey, _values);
8746
+ };
8747
+ };
8748
+ };
8698
8749
  var processBsE3Goods = function processBsE3Goods(templateColumns) {
8699
8750
  return function (getValue) {
8700
8751
  return function (nex, config) {
@@ -8927,11 +8978,16 @@ var processErpSystemOrder = function processErpSystemOrder(getValue) {
8927
8978
  no: 'jstSystemOrderNo',
8928
8979
  ids: 'jstSystemSelectIds',
8929
8980
  order: 'jstSystemShowOrder'
8981
+ },
8982
+ WDT_RETURN_BILL_NO: {
8983
+ no: 'wdtReturnBillNo',
8984
+ ids: 'wdtReturnBillSelectIds',
8985
+ order: 'wdtReturnBillShowOrder'
8930
8986
  }
8931
8987
  };
8932
8988
  return _defineProperty({}, nex.uniqueKey, {
8933
8989
  orderNo: getValue("".concat(nex.uniqueKey, "_").concat(systemOrderMap[nex.workOrderComponentType].no)),
8934
- orders: [],
8990
+ orders: nex.workOrderComponentType === 'WDT_RETURN_BILL_NO' ? jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_").concat(systemOrderMap[nex.workOrderComponentType].order)), []) : [],
8935
8991
  selectIds: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_").concat(systemOrderMap[nex.workOrderComponentType].ids)), []),
8936
8992
  showOrderInfo: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_").concat(systemOrderMap[nex.workOrderComponentType].order)), [])
8937
8993
  });
@@ -9167,14 +9223,14 @@ var processJstReturnGoods = function processJstReturnGoods(templateColumns) {
9167
9223
  };
9168
9224
  var processLabel = function processLabel(getValue) {
9169
9225
  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;
9226
+ var _ref74;
9227
+ return _ref74 = {}, _defineProperty(_ref74, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_label")), [])), _defineProperty(_ref74, "".concat(nex.uniqueKey, "_label"), jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_label")), [])), _ref74;
9172
9228
  };
9173
9229
  };
9174
9230
  var processMemberLevel = function processMemberLevel(getValue) {
9175
9231
  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;
9232
+ var _ref75;
9233
+ return _ref75 = {}, _defineProperty(_ref75, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_memberLevel")), [])), _defineProperty(_ref75, "".concat(nex.uniqueKey, "_memberLevel"), jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_memberLevel")), [])), _ref75;
9178
9234
  };
9179
9235
  };
9180
9236
  var processAfterSalesOrderId = function processAfterSalesOrderId(getValue) {
@@ -9292,6 +9348,8 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
9292
9348
  BS_POSTING: processBsPosting,
9293
9349
  BS_GOODS: processBsGoods,
9294
9350
  WDT_GOODS: processWdtGoods(templateColumns),
9351
+ WDT_AFTERSALE_GOODS: processWdtAftersaleGoods(templateColumns),
9352
+ JST_AFTERSALE_GOODS: processJstAftersaleGoods(templateColumns),
9295
9353
  BS_E3_GOODS: processBsE3Goods(templateColumns),
9296
9354
  GY_GOODS: processGyGoods(templateColumns),
9297
9355
  KM_GOODS: processKmGoods(templateColumns),
@@ -9308,6 +9366,7 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
9308
9366
  KM_SYSTEM_ORDER: processErpSystemOrder,
9309
9367
  WLN_SYSTEM_ORDER: processErpSystemOrder,
9310
9368
  WDT_SYSTEM_ORDER: processErpSystemOrder,
9369
+ WDT_RETURN_BILL_NO: processErpSystemOrder,
9311
9370
  BS_E3_SYSTEM_ORDER: processErpSystemOrder,
9312
9371
  JST_SYSTEM_ORDER: processErpSystemOrder,
9313
9372
  GY_SYSTEM_ORDER: processErpSystemOrder,
@@ -9922,8 +9981,8 @@ var SubForm = function SubForm(props) {
9922
9981
  tableHeader = props.tableHeader,
9923
9982
  disabled = props.disabled,
9924
9983
  platform = props.platform,
9925
- manual = props.manual,
9926
- maxCount = props.maxCount;
9984
+ maxCount = props.maxCount,
9985
+ manual = props.manual;
9927
9986
  var ref = React.useRef(null);
9928
9987
  var isRequest = React.useRef(false);
9929
9988
  var _useState = React.useState(false),
@@ -13365,7 +13424,7 @@ var LogisticsTrajectory = function LogisticsTrajectory(props) {
13365
13424
  if (disabled) {
13366
13425
  return;
13367
13426
  }
13368
- if (['SF', 'ZTO'].includes(newCompany) && !(newCompany && trajectoryCode && trajectoryPhone)) {
13427
+ if (['KYE', 'SF', 'ZTO'].includes(newCompany) && !(newCompany && trajectoryCode && trajectoryPhone)) {
13369
13428
  return;
13370
13429
  } else if (!(newCompany && trajectoryCode)) {
13371
13430
  return;
@@ -13501,7 +13560,7 @@ var LogisticsTrajectory = function LogisticsTrajectory(props) {
13501
13560
  value: value === null || value === void 0 ? void 0 : value.trajectorySnapshot
13502
13561
  });
13503
13562
  };
13504
- return /*#__PURE__*/React__default['default'].createElement("div", null, LogisticsCompany(), LogisticsCode(), ['SF', 'ZTO'].includes(value === null || value === void 0 ? void 0 : value.trajectoryCompany) ? LogisticsPhone(value === null || value === void 0 ? void 0 : value.trajectoryCompany) : null, trajectoryApiStatus && isSingle && LogisticsApiStatus(), showField && showField.includes('snapshot') ? /*#__PURE__*/React__default['default'].createElement(LogisticsSnapshot, null) : null);
13563
+ return /*#__PURE__*/React__default['default'].createElement("div", null, LogisticsCompany(), LogisticsCode(), ['SF', 'ZTO', 'KYE'].includes(value === null || value === void 0 ? void 0 : value.trajectoryCompany) ? LogisticsPhone(value === null || value === void 0 ? void 0 : value.trajectoryCompany) : null, trajectoryApiStatus && isSingle && LogisticsApiStatus(), showField && showField.includes('snapshot') ? /*#__PURE__*/React__default['default'].createElement(LogisticsSnapshot, null) : null);
13505
13564
  };
13506
13565
 
13507
13566
  var LogisticsMoreTrajectory = function LogisticsMoreTrajectory(props) {
@@ -15873,6 +15932,7 @@ var getTableData$2 = function getTableData(_ref, formData) {
15873
15932
  var current = _ref.current,
15874
15933
  pageSize = _ref.pageSize;
15875
15934
  var data = {
15935
+ goodShortName: formData.goodShortName || null,
15876
15936
  goodNo: formData.goodNo || null,
15877
15937
  goodName: formData.goodName || null,
15878
15938
  skuCode: formData.skuCode || null,
@@ -18850,7 +18910,8 @@ var getColumns$2 = function getColumns(_ref) {
18850
18910
  title: "\u5E73\u53F0\u89C4\u683CID",
18851
18911
  width: 180,
18852
18912
  align: 'center',
18853
- ellipsis: true
18913
+ ellipsis: true,
18914
+ render: renderTextEllipsis
18854
18915
  }, {
18855
18916
  dataIndex: 'brandName',
18856
18917
  title: "\u54C1\u724C\u540D\u79F0",
@@ -18970,7 +19031,8 @@ var getColumns$2 = function getColumns(_ref) {
18970
19031
  title: "\u5E73\u53F0\u89C4\u683CID",
18971
19032
  width: 180,
18972
19033
  align: 'center',
18973
- ellipsis: true
19034
+ ellipsis: true,
19035
+ render: renderTextEllipsis
18974
19036
  }, {
18975
19037
  dataIndex: 'brandName',
18976
19038
  title: "\u54C1\u724C\u540D\u79F0",
@@ -19094,7 +19156,8 @@ var getColumns$2 = function getColumns(_ref) {
19094
19156
  title: "\u5E73\u53F0\u89C4\u683CID",
19095
19157
  width: 180,
19096
19158
  align: 'center',
19097
- ellipsis: true
19159
+ ellipsis: true,
19160
+ render: renderTextEllipsis
19098
19161
  }, {
19099
19162
  dataIndex: 'brandName',
19100
19163
  title: "\u54C1\u724C\u540D\u79F0",
@@ -19257,7 +19320,8 @@ var getColumns$2 = function getColumns(_ref) {
19257
19320
  title: "\u5E73\u53F0\u89C4\u683CID",
19258
19321
  width: 180,
19259
19322
  align: 'center',
19260
- ellipsis: true
19323
+ ellipsis: true,
19324
+ render: renderTextEllipsis
19261
19325
  }, {
19262
19326
  dataIndex: 'brandName',
19263
19327
  title: "\u54C1\u724C\u540D\u79F0",
@@ -19344,6 +19408,141 @@ var getColumns$2 = function getColumns(_ref) {
19344
19408
  }
19345
19409
  }) : /*#__PURE__*/React__default['default'].createElement("span", null, typeMap[val]);
19346
19410
  }
19411
+ }],
19412
+ // 旺店通售后商品信息
19413
+ WDT_AFTERSALE_GOODS: [{
19414
+ dataIndex: 'oid',
19415
+ title: "\u539F\u59CB\u5B50\u5355\u53F7",
19416
+ width: 200,
19417
+ align: 'center',
19418
+ ellipsis: true,
19419
+ render: renderTextEllipsis
19420
+ }, {
19421
+ dataIndex: 'goodsName',
19422
+ title: "\u8D27\u54C1\u540D\u79F0",
19423
+ width: 250,
19424
+ align: 'center',
19425
+ ellipsis: true,
19426
+ render: renderTextEllipsis
19427
+ }, {
19428
+ dataIndex: 'goodsNo',
19429
+ title: "\u8D27\u54C1\u7F16\u53F7",
19430
+ width: 150,
19431
+ align: 'center',
19432
+ ellipsis: true,
19433
+ render: renderTextEllipsis
19434
+ }, {
19435
+ dataIndex: 'specName',
19436
+ title: "\u89C4\u683C\u540D\u79F0",
19437
+ width: 150,
19438
+ align: 'center',
19439
+ ellipsis: true,
19440
+ render: renderTextEllipsis
19441
+ }, {
19442
+ dataIndex: 'specNo',
19443
+ title: "\u5546\u5BB6\u7F16\u7801",
19444
+ width: 200,
19445
+ align: 'center',
19446
+ ellipsis: true,
19447
+ render: renderTextEllipsis
19448
+ }, {
19449
+ dataIndex: 'specCode',
19450
+ title: "\u89C4\u683C\u7F16\u53F7",
19451
+ width: 150,
19452
+ align: 'center',
19453
+ ellipsis: true,
19454
+ render: renderTextEllipsis
19455
+ }, {
19456
+ dataIndex: 'barcode',
19457
+ title: "\u6761\u7801",
19458
+ width: 150,
19459
+ align: 'center',
19460
+ ellipsis: true,
19461
+ render: renderTextEllipsis
19462
+ }, {
19463
+ dataIndex: 'apiGoodsName',
19464
+ title: "\u5E73\u53F0\u8D27\u54C1\u540D\u79F0",
19465
+ width: 250,
19466
+ align: 'center',
19467
+ ellipsis: true,
19468
+ render: renderTextEllipsis
19469
+ }, {
19470
+ dataIndex: 'apiSpecName',
19471
+ title: "\u5E73\u53F0\u89C4\u683C\u540D\u79F0",
19472
+ width: 250,
19473
+ align: 'center',
19474
+ ellipsis: true,
19475
+ render: renderTextEllipsis
19476
+ }, {
19477
+ dataIndex: 'suiteName',
19478
+ title: "\u7EC4\u5408\u88C5\u540D\u79F0",
19479
+ width: 150,
19480
+ align: 'center',
19481
+ ellipsis: true,
19482
+ render: renderTextEllipsis
19483
+ }, {
19484
+ dataIndex: 'suiteNo',
19485
+ title: "\u7EC4\u5408\u88C5\u7F16\u53F7",
19486
+ width: 150,
19487
+ align: 'center',
19488
+ ellipsis: true,
19489
+ render: renderTextEllipsis
19490
+ }, {
19491
+ dataIndex: 'stockinNum',
19492
+ title: "\u5165\u5E93\u6570\u91CF",
19493
+ width: 150,
19494
+ align: 'center',
19495
+ ellipsis: true,
19496
+ render: renderTextEllipsis
19497
+ }, {
19498
+ dataIndex: 'refundNum',
19499
+ title: "\u9000\u6B3E\u6570\u91CF",
19500
+ width: 150,
19501
+ align: 'center',
19502
+ ellipsis: true,
19503
+ render: renderTextEllipsis
19504
+ }, {
19505
+ dataIndex: 'totalAmount',
19506
+ title: "\u9000\u8D27\u603B\u989D",
19507
+ width: 150,
19508
+ align: 'center',
19509
+ ellipsis: true,
19510
+ render: renderTextEllipsis
19511
+ }, {
19512
+ dataIndex: 'refundAmount',
19513
+ title: "\u5DF2\u9000\u6B3E\u91D1\u989D",
19514
+ width: 150,
19515
+ align: 'center',
19516
+ ellipsis: true,
19517
+ render: renderTextEllipsis
19518
+ }, {
19519
+ dataIndex: 'orderNum',
19520
+ title: "\u5B9E\u9645\u53D1\u51FA\u6570\u91CF",
19521
+ width: 150,
19522
+ align: 'center',
19523
+ ellipsis: true,
19524
+ render: renderTextEllipsis
19525
+ }, {
19526
+ dataIndex: 'price',
19527
+ title: "\u4EF7\u683C",
19528
+ width: 150,
19529
+ align: 'center',
19530
+ ellipsis: true,
19531
+ render: renderTextEllipsis
19532
+ }, {
19533
+ dataIndex: 'originalPrice',
19534
+ title: "\u539F\u4EF7",
19535
+ width: 150,
19536
+ align: 'center',
19537
+ ellipsis: true,
19538
+ render: renderTextEllipsis
19539
+ }, {
19540
+ dataIndex: 'giftType',
19541
+ title: "\u8D60\u54C1\u7C7B\u578B",
19542
+ width: 150,
19543
+ align: 'center',
19544
+ ellipsis: true,
19545
+ render: renderTextEllipsis
19347
19546
  }]
19348
19547
  };
19349
19548
  };
@@ -20026,7 +20225,7 @@ var getColumns$5 = function getColumns() {
20026
20225
  ellipsis: true,
20027
20226
  align: 'center',
20028
20227
  render: function render(val, record, index) {
20029
- return (record.qty || 0) * (+record.salePrice || 0);
20228
+ return ((record.qty || 0) * (+record.salePrice || 0)).toFixed(2);
20030
20229
  }
20031
20230
  }, {
20032
20231
  dataIndex: 'batchId',
@@ -20314,7 +20513,7 @@ var getColumns$5 = function getColumns() {
20314
20513
  dataIndex: 'saleAmount',
20315
20514
  title: '总金额',
20316
20515
  render: function render(val, record) {
20317
- return (record.qty || 0) * (+record.salePrice || 0);
20516
+ return ((record.qty || 0) * (+record.salePrice || 0)).toFixed(2);
20318
20517
  }
20319
20518
  }, {
20320
20519
  dataIndex: 'batchId',
@@ -20429,7 +20628,7 @@ var getColumns$5 = function getColumns() {
20429
20628
  dataIndex: 'saleAmount',
20430
20629
  title: '总金额',
20431
20630
  render: function render(val, record) {
20432
- return (record.qty || 0) * (+record.salePrice || 0);
20631
+ return ((record.qty || 0) * (+record.salePrice || 0)).toFixed(2);
20433
20632
  }
20434
20633
  }, {
20435
20634
  dataIndex: 'isGift',
@@ -20464,7 +20663,161 @@ var getColumns$5 = function getColumns() {
20464
20663
  }
20465
20664
  }) : renderTextEllipsis(val);
20466
20665
  }
20467
- }].map(fillAttrs)
20666
+ }].map(fillAttrs),
20667
+ // jst售后商品信息
20668
+ JST_AFTERSALE_GOODS: [{
20669
+ dataIndex: 'asId',
20670
+ title: "\u805A\u6C34\u6F6D\u552E\u540E\u5355\u53F7",
20671
+ width: 200,
20672
+ align: 'center',
20673
+ ellipsis: true,
20674
+ render: renderTextEllipsis
20675
+ }, {
20676
+ dataIndex: 'asiId',
20677
+ title: "\u552E\u540E\u5B50\u5355\u53F7",
20678
+ width: 200,
20679
+ align: 'center',
20680
+ ellipsis: true,
20681
+ render: renderTextEllipsis
20682
+ }, {
20683
+ dataIndex: 'outerOiId',
20684
+ title: "\u5B50\u8BA2\u5355\u53F7",
20685
+ width: 200,
20686
+ align: 'center',
20687
+ ellipsis: true,
20688
+ render: renderTextEllipsis
20689
+ }, {
20690
+ dataIndex: 'pic',
20691
+ title: "\u56FE\u7247",
20692
+ width: 100,
20693
+ align: 'center',
20694
+ render: function render(val) {
20695
+ return /*#__PURE__*/React__default['default'].createElement(antd.Image, {
20696
+ width: 30,
20697
+ src: val
20698
+ });
20699
+ },
20700
+ headerComponentType: 'pic'
20701
+ }, {
20702
+ dataIndex: 'name',
20703
+ title: "\u5546\u54C1\u540D\u79F0",
20704
+ width: 250,
20705
+ align: 'center',
20706
+ ellipsis: true,
20707
+ render: renderTextEllipsis
20708
+ }, {
20709
+ dataIndex: 'skuId',
20710
+ title: "\u5546\u54C1\u7F16\u7801",
20711
+ width: 200,
20712
+ align: 'center',
20713
+ ellipsis: true,
20714
+ render: renderTextEllipsis
20715
+ }, {
20716
+ dataIndex: 'propertiesValue',
20717
+ title: "\u89C4\u683C\u5C5E\u6027\u503C",
20718
+ width: 150,
20719
+ align: 'center',
20720
+ ellipsis: true,
20721
+ render: renderTextEllipsis
20722
+ }, {
20723
+ dataIndex: 'qty',
20724
+ title: "\u7533\u8BF7\u6570\u91CF",
20725
+ width: 150,
20726
+ align: 'center',
20727
+ ellipsis: true,
20728
+ render: renderTextEllipsis
20729
+ }, {
20730
+ dataIndex: 'rQty',
20731
+ title: "\u5B9E\u6536\u9000\u8D27\u6570\u91CF",
20732
+ width: 150,
20733
+ align: 'center',
20734
+ ellipsis: true,
20735
+ render: renderTextEllipsis
20736
+ }, {
20737
+ dataIndex: 'defectiveQty',
20738
+ title: "\u6B21\u54C1\u6570\u91CF",
20739
+ width: 150,
20740
+ align: 'center',
20741
+ ellipsis: true,
20742
+ render: renderTextEllipsis
20743
+ }, {
20744
+ dataIndex: 'amount',
20745
+ title: "\u7533\u8BF7\u91D1\u989D",
20746
+ width: 150,
20747
+ align: 'center',
20748
+ ellipsis: true,
20749
+ render: renderTextEllipsis
20750
+ }, {
20751
+ dataIndex: 'shopAmount',
20752
+ title: "\u7EBF\u4E0A\u660E\u7EC6\u91D1\u989D",
20753
+ width: 150,
20754
+ align: 'center',
20755
+ ellipsis: true,
20756
+ render: renderTextEllipsis
20757
+ }, {
20758
+ dataIndex: 'price',
20759
+ title: "\u5355\u4EF7",
20760
+ width: 150,
20761
+ align: 'center',
20762
+ ellipsis: true,
20763
+ render: renderTextEllipsis
20764
+ }, {
20765
+ dataIndex: 'combineSkuId',
20766
+ title: "\u7EC4\u5408\u5546\u54C1\u7F16\u7801",
20767
+ width: 200,
20768
+ align: 'center',
20769
+ ellipsis: true,
20770
+ render: renderTextEllipsis
20771
+ }, {
20772
+ dataIndex: 'shopSkuId',
20773
+ title: "\u5E97\u94FA\u5546\u54C1\u7F16\u7801",
20774
+ width: 200,
20775
+ align: 'center',
20776
+ ellipsis: true,
20777
+ render: renderTextEllipsis
20778
+ }, {
20779
+ dataIndex: 'iId',
20780
+ title: "\u6B3E\u5F0F\u7F16\u7801",
20781
+ width: 200,
20782
+ align: 'center',
20783
+ ellipsis: true,
20784
+ render: renderTextEllipsis
20785
+ }, {
20786
+ dataIndex: 'type',
20787
+ title: "\u552E\u540E\u7C7B\u578B",
20788
+ width: 150,
20789
+ align: 'center',
20790
+ ellipsis: true,
20791
+ render: renderTextEllipsis
20792
+ }, {
20793
+ dataIndex: 'skuType',
20794
+ title: "\u5546\u54C1\u7C7B\u578B",
20795
+ width: 150,
20796
+ align: 'center',
20797
+ ellipsis: true,
20798
+ render: renderTextEllipsis
20799
+ }, {
20800
+ dataIndex: 'isGift',
20801
+ title: '是否赠品',
20802
+ width: 100,
20803
+ render: function render(val) {
20804
+ return /*#__PURE__*/React__default['default'].createElement("span", null, typeof val !== 'boolean' ? '' : val ? '是' : '否');
20805
+ }
20806
+ }, {
20807
+ dataIndex: 'receiveDate',
20808
+ title: "\u5165\u4ED3\u65F6\u95F4",
20809
+ width: 200,
20810
+ align: 'center',
20811
+ ellipsis: true,
20812
+ render: renderTextEllipsis
20813
+ }, {
20814
+ dataIndex: 'remark',
20815
+ title: "\u660E\u7EC6\u5907\u6CE8",
20816
+ width: 200,
20817
+ align: 'center',
20818
+ ellipsis: true,
20819
+ render: renderTextEllipsis
20820
+ }]
20468
20821
  };
20469
20822
  };
20470
20823
 
@@ -21135,6 +21488,12 @@ var getColumns$7 = function getColumns(_ref) {
21135
21488
  width: 150,
21136
21489
  render: function render(val, record, index) {
21137
21490
  return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
21491
+ dropdownStyle: {
21492
+ zIndex: 2000
21493
+ },
21494
+ getPopupContainer: function getPopupContainer() {
21495
+ return document.body;
21496
+ },
21138
21497
  value: val,
21139
21498
  onChange: function onChange(value) {
21140
21499
  updateHandle(value, index, 'bfit');
@@ -21164,6 +21523,12 @@ var getColumns$7 = function getColumns(_ref) {
21164
21523
  width: 150,
21165
21524
  render: function render(val, record, index) {
21166
21525
  return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
21526
+ dropdownStyle: {
21527
+ zIndex: 2000
21528
+ },
21529
+ getPopupContainer: function getPopupContainer() {
21530
+ return document.body;
21531
+ },
21167
21532
  value: val,
21168
21533
  onChange: function onChange(value) {
21169
21534
  updateHandle(value, index, 'gift');
@@ -21823,6 +22188,7 @@ var systemOrderNoMap = {
21823
22188
  GY_GOODS: 'code',
21824
22189
  KM_GOODS: 'sid',
21825
22190
  WDT_GOODS: 'tradeNo',
22191
+ WDT_AFTERSALE_GOODS: 'tid',
21826
22192
  BS_E3_GOODS: 'orderSn',
21827
22193
  JST_GOODS: 'oId',
21828
22194
  WLN_GOODS: 'tradeNo',
@@ -21921,7 +22287,7 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
21921
22287
  }
21922
22288
  }, isShowSelect && /*#__PURE__*/React__default['default'].createElement(antd.Row, {
21923
22289
  style: {
21924
- marginBottom: '20px'
22290
+ marginBottom: '12px'
21925
22291
  }
21926
22292
  }, /*#__PURE__*/React__default['default'].createElement(antd.Col, {
21927
22293
  span: 12
@@ -22026,6 +22392,7 @@ var GoodItem$1 = function GoodItem(props) {
22026
22392
  templateDetail = _props$templateDetail === void 0 ? {} : _props$templateDetail,
22027
22393
  _props$hasSelectedSys = props.hasSelectedSystemOrder,
22028
22394
  hasSelectedSystemOrder = _props$hasSelectedSys === void 0 ? false : _props$hasSelectedSys;
22395
+ var canDelete = ['JST_AFTERSALE_GOODS'].includes(type);
22029
22396
  var uniqueKey = (tradeGoods === null || tradeGoods === void 0 ? void 0 : tradeGoods.uniqueKey) || 'uuid';
22030
22397
  // 监听聚水潭退货商品
22031
22398
  var jstReturnGoods = antd.Form === null || antd.Form === void 0 ? void 0 : antd.Form.useWatch('3979edfd6d', form);
@@ -22105,6 +22472,7 @@ var GoodItem$1 = function GoodItem(props) {
22105
22472
  var columns = [];
22106
22473
  switch (type) {
22107
22474
  case 'WDT_GOODS':
22475
+ case 'WDT_AFTERSALE_GOODS':
22108
22476
  case 'WDT_RETURN_GOODS':
22109
22477
  case 'WDT_EXCHANGE_GOODS':
22110
22478
  case 'BS_E3_GOODS':
@@ -22115,6 +22483,7 @@ var GoodItem$1 = function GoodItem(props) {
22115
22483
  case 'JST_REISSUE_GOODS':
22116
22484
  case 'JST_EXCHANGE_GOODS':
22117
22485
  case 'JST_RETURN_GOODS':
22486
+ case 'JST_AFTERSALE_GOODS':
22118
22487
  case 'GY_REISSUE_GOODS':
22119
22488
  case 'GY_RETURN_GOODS':
22120
22489
  case 'KM_GOODS':
@@ -22207,7 +22576,7 @@ var GoodItem$1 = function GoodItem(props) {
22207
22576
  render: function render(val, record, index) {
22208
22577
  return /*#__PURE__*/React__default['default'].createElement(HoverTableRowDeleteIcon, {
22209
22578
  index: index,
22210
- hoveredRowIndex: !disabled && record.canDelete ? hoveredRowIndex : null,
22579
+ hoveredRowIndex: !disabled && (record.canDelete || canDelete) ? hoveredRowIndex : null,
22211
22580
  handleClick: function handleClick() {
22212
22581
  return handleDelete(record, index);
22213
22582
  }
@@ -22222,7 +22591,7 @@ var GoodItem$1 = function GoodItem(props) {
22222
22591
  ellipsis: true,
22223
22592
  width: 100,
22224
22593
  render: function render(val, record, index) {
22225
- return record.canDelete ? /*#__PURE__*/React__default['default'].createElement(antd.Button, {
22594
+ return record.canDelete || canDelete ? /*#__PURE__*/React__default['default'].createElement(antd.Button, {
22226
22595
  type: "link",
22227
22596
  onClick: function onClick() {
22228
22597
  return handleDelete(record, index);
@@ -23381,7 +23750,8 @@ var columnsMap = {
23381
23750
  BS_E3_SYSTEM_ORDER: kmkfUtils.BS_E3_SYSTEM_ORDER_CONFIG.columns,
23382
23751
  GY_SYSTEM_ORDER: kmkfUtils.GY_SYSTEM_ORDER_CONFIG.columns,
23383
23752
  JST_SYSTEM_ORDER: kmkfUtils.JST_SYSTEM_ORDER_CONFIG.columns,
23384
- JY_SYSTEM_ORDER: kmkfUtils.JY_SYSTEM_ORDER_CONFIG.columns
23753
+ JY_SYSTEM_ORDER: kmkfUtils.JY_SYSTEM_ORDER_CONFIG.columns,
23754
+ WDT_RETURN_BILL_NO: kmkfUtils.WDT_RETURN_BILL_NO_CONFIG.columns
23385
23755
  };
23386
23756
  var rowKeyMap = {
23387
23757
  BS_SYSTEM_ORDER: 'billNo',
@@ -23391,7 +23761,8 @@ var rowKeyMap = {
23391
23761
  BS_E3_SYSTEM_ORDER: 'orderSn',
23392
23762
  GY_SYSTEM_ORDER: 'billNo',
23393
23763
  JST_SYSTEM_ORDER: 'oId',
23394
- JY_SYSTEM_ORDER: 'tradeNo'
23764
+ JY_SYSTEM_ORDER: 'tradeNo',
23765
+ WDT_RETURN_BILL_NO: 'refundNo'
23395
23766
  };
23396
23767
  var index$2 = (function (props) {
23397
23768
  var value = props.value,
@@ -23405,6 +23776,7 @@ var index$2 = (function (props) {
23405
23776
  React.useEffect(function () {
23406
23777
  var _value$orders, _value$showOrderInfo;
23407
23778
  valueRef.current = value;
23779
+ console.log('value77777777', value);
23408
23780
  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
23781
  onceRef.current = true;
23410
23782
  if (type === 'BS_SYSTEM_ORDER') {
@@ -24871,10 +25243,39 @@ var componentMap$2 = {
24871
25243
  exchangeDeleteGood: 'jyExchangeDeleteGood'
24872
25244
  },
24873
25245
  getOrderList: jyUtils.getJyOrderListSingleton
25246
+ },
25247
+ WDT_AFTERSALE_GOODS: {
25248
+ type: 'wdtAftersale',
25249
+ key: 'wdtAftersaleGoods',
25250
+ name: '旺店通售后',
25251
+ orderNo: 'srcTids',
25252
+ goodDetailOrderNo: 'srcTids',
25253
+ showChangeBtn: false,
25254
+ eventNameMap: {
25255
+ // pubsub 事件
25256
+ type: 'wdtAftersaleType',
25257
+ updateGoodsHandle: kmkfUtils.updateWdtAftersaleGoodsHandle,
25258
+ reissueDeleteGood: 'wdtAftersaleReissueDeleteGood'
25259
+ },
25260
+ getOrderList: wdtUtils.getWdtOrderListSingleton
25261
+ },
25262
+ JST_AFTERSALE_GOODS: {
25263
+ type: 'jstAftersale',
25264
+ key: 'jstAftersaleGoods',
25265
+ name: 'jst售后',
25266
+ orderNo: 'asId',
25267
+ goodDetailOrderNo: 'asId',
25268
+ showChangeBtn: false,
25269
+ eventNameMap: {
25270
+ // pubsub 事件
25271
+ type: 'jstAftersaleType',
25272
+ deleteGood: 'jstAftersaleDeleteGood'
25273
+ },
25274
+ getOrderList: jstUtils.getJstOrderListSingleton
24874
25275
  }
24875
25276
  };
24876
25277
  var CommonGoods = function CommonGoods(props) {
24877
- var _componentMap$compTyp5, _withInfo$current3, _withInfo$current4;
25278
+ var _componentMap$compTyp5, _withInfo$current3, _withInfo$current4, _componentMap$compTyp7;
24878
25279
  var value = props.value,
24879
25280
  disabled = props.disabled,
24880
25281
  onChange = props.onChange,
@@ -25031,6 +25432,7 @@ var CommonGoods = function CommonGoods(props) {
25031
25432
  var getGoodDetails = function getGoodDetails(_ref2) {
25032
25433
  var mode = _ref2.mode;
25033
25434
  var updateHandle = componentMap$2[compType].eventNameMap['updateGoodsHandle'];
25435
+ if (!updateHandle) return [];
25034
25436
  var goodDetails = updateHandle((value === null || value === void 0 ? void 0 : value.orders) || [], {
25035
25437
  orderBackGoodsLevel: props.orderBackGoodsLevel
25036
25438
  });
@@ -25045,6 +25447,7 @@ var CommonGoods = function CommonGoods(props) {
25045
25447
  var mode = _ref3.mode;
25046
25448
  var updateHandle = componentMap$2[compType].eventNameMap['updateGoodsHandle'];
25047
25449
  console.log('value?.allOrders', value, (value === null || value === void 0 ? void 0 : value.allOrders) || []);
25450
+ if (!updateHandle) return [];
25048
25451
  var goodDetails = updateHandle((value === null || value === void 0 ? void 0 : value.allOrders) || [], {
25049
25452
  orderBackGoodsLevel: props.orderBackGoodsLevel
25050
25453
  });
@@ -25105,6 +25508,7 @@ var CommonGoods = function CommonGoods(props) {
25105
25508
  isStrict: value === null || value === void 0 ? void 0 : value.isStrict,
25106
25509
  systemOrders: value === null || value === void 0 ? void 0 : value.allOrders,
25107
25510
  selectedSystemOrders: value === null || value === void 0 ? void 0 : value.orders,
25511
+ showChangeBtn: (_componentMap$compTyp7 = componentMap$2[compType]) === null || _componentMap$compTyp7 === void 0 ? void 0 : _componentMap$compTyp7.showChangeBtn,
25108
25512
  tradeGoods: {
25109
25513
  originDataSource: getAllTradeGoodsDetails({
25110
25514
  mode: value === null || value === void 0 ? void 0 : value.isStrict
@@ -26798,7 +27202,7 @@ var MsgStatus = function MsgStatus(props) {
26798
27202
  onClick: function onClick() {
26799
27203
  return setChangeIndex(index);
26800
27204
  }
26801
- }, kmkfUtils.msgTypeCh[key], item.ruleName);
27205
+ }, kmkfUtils.msgTypeCh[key] || key, item.ruleName);
26802
27206
  }))) : null, type === 1 ? /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.Space, null, /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2(_objectSpread2({}, other), {}, {
26803
27207
  showSearch: true,
26804
27208
  value: (_value$changeIndex = value[changeIndex]) === null || _value$changeIndex === void 0 ? void 0 : _value$changeIndex.status,
@@ -27376,7 +27780,7 @@ var GyReissue = function GyReissue(props) {
27376
27780
  span: 12
27377
27781
  },
27378
27782
  sm: {
27379
- span: 6
27783
+ span: 4
27380
27784
  }
27381
27785
  }, /*#__PURE__*/React__default['default'].createElement(antd.Cascader, {
27382
27786
  style: {
@@ -27679,7 +28083,7 @@ var GyReturnGoods = function GyReturnGoods(props) {
27679
28083
  span: 12
27680
28084
  },
27681
28085
  sm: {
27682
- span: 6
28086
+ span: 4
27683
28087
  }
27684
28088
  }, /*#__PURE__*/React__default['default'].createElement(antd.Cascader, {
27685
28089
  style: {
@@ -28351,7 +28755,8 @@ var SYSTEM_ORDER_COLUMNS_MAP = {
28351
28755
  BS_E3_SYSTEM_ORDER: kmkfUtils.BS_E3_SYSTEM_ORDER_CONFIG.columns,
28352
28756
  GY_SYSTEM_ORDER: kmkfUtils.GY_SYSTEM_ORDER_CONFIG.columns,
28353
28757
  JST_SYSTEM_ORDER: kmkfUtils.JST_SYSTEM_ORDER_CONFIG.columns,
28354
- JY_SYSTEM_ORDER: kmkfUtils.JY_SYSTEM_ORDER_CONFIG.columns
28758
+ JY_SYSTEM_ORDER: kmkfUtils.JY_SYSTEM_ORDER_CONFIG.columns,
28759
+ WDT_RETURN_BILL_NO: kmkfUtils.WDT_RETURN_BILL_NO_CONFIG.columns
28355
28760
  };
28356
28761
 
28357
28762
  exports.Address = ApaasAddress;