@kmkf-fe-packages/basic-components 2.2.39-beta.10 → 2.2.39-beta.14

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
@@ -9801,13 +9801,12 @@ var EditFileRender = function EditFileRender(_ref7) {
9801
9801
  }));
9802
9802
  };
9803
9803
  var EditRenderMap = {
9804
- INPUT: function INPUT(_ref9) {
9805
- var val = _ref9.val,
9806
- record = _ref9.record,
9807
- index = _ref9.index,
9808
- t = _ref9.t,
9809
- updateHandle = _ref9.updateHandle,
9810
- disabled = _ref9.disabled;
9804
+ INPUT: function INPUT(_ref8) {
9805
+ var val = _ref8.val,
9806
+ index = _ref8.index,
9807
+ t = _ref8.t,
9808
+ updateHandle = _ref8.updateHandle,
9809
+ disabled = _ref8.disabled;
9811
9810
  var precisionValue = t.precision === 'nolimit' ? undefined : t.precision;
9812
9811
  return !t.isEdit && !disabled ? t.isNumber ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
9813
9812
  style: {
@@ -9830,13 +9829,12 @@ var EditRenderMap = {
9830
9829
  }
9831
9830
  }) : /*#__PURE__*/React__default['default'].createElement("div", null, val);
9832
9831
  },
9833
- TEXTAREA: function TEXTAREA(_ref10) {
9834
- var val = _ref10.val,
9835
- record = _ref10.record,
9836
- index = _ref10.index,
9837
- t = _ref10.t,
9838
- updateHandle = _ref10.updateHandle,
9839
- disabled = _ref10.disabled;
9832
+ TEXTAREA: function TEXTAREA(_ref9) {
9833
+ var val = _ref9.val,
9834
+ index = _ref9.index,
9835
+ t = _ref9.t,
9836
+ updateHandle = _ref9.updateHandle,
9837
+ disabled = _ref9.disabled;
9840
9838
  var precisionValue = t.precision === 'nolimit' ? undefined : t.precision;
9841
9839
  return !t.isEdit && !disabled ? t.isNumber ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
9842
9840
  style: {
@@ -9859,15 +9857,31 @@ var EditRenderMap = {
9859
9857
  }
9860
9858
  }) : /*#__PURE__*/React__default['default'].createElement("div", null, val);
9861
9859
  },
9862
- PICTURE: function PICTURE(_ref11) {
9860
+ PICTURE: function PICTURE(_ref10) {
9861
+ var val = _ref10.val,
9862
+ index = _ref10.index,
9863
+ t = _ref10.t,
9864
+ updateHandle = _ref10.updateHandle,
9865
+ disabled = _ref10.disabled,
9866
+ platform = _ref10.platform;
9867
+ return /*#__PURE__*/React__default['default'].createElement(EditPictureRender, {
9868
+ val: val,
9869
+ t: t,
9870
+ disabled: disabled,
9871
+ index: index,
9872
+ updateHandle: updateHandle,
9873
+ hostUrl: hostUrl,
9874
+ platform: platform
9875
+ });
9876
+ },
9877
+ FILE: function FILE(_ref11) {
9863
9878
  var val = _ref11.val,
9864
- record = _ref11.record,
9865
9879
  index = _ref11.index,
9866
9880
  t = _ref11.t,
9867
9881
  updateHandle = _ref11.updateHandle,
9868
9882
  disabled = _ref11.disabled,
9869
9883
  platform = _ref11.platform;
9870
- return /*#__PURE__*/React__default['default'].createElement(EditPictureRender, {
9884
+ return /*#__PURE__*/React__default['default'].createElement(EditFileRender, {
9871
9885
  val: val,
9872
9886
  t: t,
9873
9887
  disabled: disabled,
@@ -9877,27 +9891,30 @@ var EditRenderMap = {
9877
9891
  platform: platform
9878
9892
  });
9879
9893
  },
9880
- FILE: function FILE(_ref12) {
9894
+ RADIO: function RADIO(_ref12) {
9881
9895
  var val = _ref12.val,
9882
- record = _ref12.record,
9883
9896
  index = _ref12.index,
9884
9897
  t = _ref12.t,
9885
9898
  updateHandle = _ref12.updateHandle,
9886
9899
  disabled = _ref12.disabled,
9887
- platform = _ref12.platform;
9888
- return /*#__PURE__*/React__default['default'].createElement(EditFileRender, {
9889
- val: val,
9890
- t: t,
9891
- disabled: disabled,
9892
- index: index,
9893
- updateHandle: updateHandle,
9894
- hostUrl: hostUrl,
9895
- platform: platform
9896
- });
9900
+ componentDto = _ref12.componentDto;
9901
+ return /*#__PURE__*/React__default['default'].createElement(ApaasSelect, _objectSpread2(_objectSpread2({
9902
+ getPopupContainer: function getPopupContainer() {
9903
+ return document.getElementById('subform');
9904
+ }
9905
+ }, componentDto === null || componentDto === void 0 ? void 0 : componentDto.componentConfig), {}, {
9906
+ value: val,
9907
+ disabled: t.isEdit || disabled,
9908
+ allowClear: true,
9909
+ placement: "topLeft",
9910
+ listHeight: 120,
9911
+ onChange: function onChange(e) {
9912
+ return updateHandle(e, index, t.key);
9913
+ }
9914
+ }));
9897
9915
  },
9898
- RADIO: function RADIO(_ref13) {
9916
+ SELECT: function SELECT(_ref13) {
9899
9917
  var val = _ref13.val,
9900
- record = _ref13.record,
9901
9918
  index = _ref13.index,
9902
9919
  t = _ref13.t,
9903
9920
  updateHandle = _ref13.updateHandle,
@@ -9918,32 +9935,29 @@ var EditRenderMap = {
9918
9935
  }
9919
9936
  }));
9920
9937
  },
9921
- SELECT: function SELECT(_ref14) {
9938
+ CHECKBOX: function CHECKBOX(_ref14) {
9922
9939
  var val = _ref14.val,
9923
- record = _ref14.record,
9924
9940
  index = _ref14.index,
9925
9941
  t = _ref14.t,
9926
9942
  updateHandle = _ref14.updateHandle,
9927
9943
  disabled = _ref14.disabled,
9928
9944
  componentDto = _ref14.componentDto;
9929
- return /*#__PURE__*/React__default['default'].createElement(ApaasSelect, _objectSpread2(_objectSpread2({
9945
+ return /*#__PURE__*/React__default['default'].createElement(ApaasMultipleSelect, _objectSpread2(_objectSpread2({
9930
9946
  getPopupContainer: function getPopupContainer() {
9931
9947
  return document.getElementById('subform');
9932
9948
  }
9933
9949
  }, componentDto === null || componentDto === void 0 ? void 0 : componentDto.componentConfig), {}, {
9934
9950
  value: val,
9935
- disabled: t.isEdit || disabled,
9936
- allowClear: true,
9937
9951
  placement: "topLeft",
9938
9952
  listHeight: 120,
9953
+ disabled: t.isEdit || disabled,
9939
9954
  onChange: function onChange(e) {
9940
9955
  return updateHandle(e, index, t.key);
9941
9956
  }
9942
9957
  }));
9943
9958
  },
9944
- CHECKBOX: function CHECKBOX(_ref15) {
9959
+ BASIC_MULT_SELECT: function BASIC_MULT_SELECT(_ref15) {
9945
9960
  var val = _ref15.val,
9946
- record = _ref15.record,
9947
9961
  index = _ref15.index,
9948
9962
  t = _ref15.t,
9949
9963
  updateHandle = _ref15.updateHandle,
@@ -9963,27 +9977,23 @@ var EditRenderMap = {
9963
9977
  }
9964
9978
  }));
9965
9979
  },
9966
- BASIC_MULT_SELECT: function BASIC_MULT_SELECT(_ref16) {
9980
+ DEFAULT: function DEFAULT(_ref16) {
9967
9981
  var val = _ref16.val,
9968
- record = _ref16.record,
9969
9982
  index = _ref16.index,
9970
9983
  t = _ref16.t,
9971
9984
  updateHandle = _ref16.updateHandle,
9972
- disabled = _ref16.disabled,
9973
- componentDto = _ref16.componentDto;
9974
- return /*#__PURE__*/React__default['default'].createElement(ApaasMultipleSelect, _objectSpread2(_objectSpread2({
9975
- getPopupContainer: function getPopupContainer() {
9976
- return document.getElementById('subform');
9977
- }
9978
- }, componentDto === null || componentDto === void 0 ? void 0 : componentDto.componentConfig), {}, {
9985
+ disabled = _ref16.disabled;
9986
+ return !t.isEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Input, {
9987
+ allowClear: true,
9988
+ style: {
9989
+ width: '100%'
9990
+ },
9979
9991
  value: val,
9980
- placement: "topLeft",
9981
- listHeight: 120,
9982
- disabled: t.isEdit || disabled,
9983
9992
  onChange: function onChange(e) {
9984
- return updateHandle(e, index, t.key);
9993
+ var _e$target3;
9994
+ return updateHandle(e === null || e === void 0 ? void 0 : (_e$target3 = e.target) === null || _e$target3 === void 0 ? void 0 : _e$target3.value, index, t.key);
9985
9995
  }
9986
- }));
9996
+ }) : /*#__PURE__*/React__default['default'].createElement("div", null, val);
9987
9997
  }
9988
9998
  };
9989
9999
  var EditSplitRenderMap = {
@@ -9995,10 +10005,11 @@ var EditSplitRenderMap = {
9995
10005
  disabled = _ref17.disabled;
9996
10006
  return /*#__PURE__*/React__default['default'].createElement(ApaasLogistics, {
9997
10007
  value: val,
10008
+ allowClear: true,
9998
10009
  onChange: function onChange(e) {
9999
10010
  return updateHandle(e, index, t.key);
10000
10011
  },
10001
- disabled: disabled
10012
+ disabled: t.isEdit || disabled
10002
10013
  });
10003
10014
  },
10004
10015
  //退货物流-物流公司
@@ -10010,10 +10021,11 @@ var EditSplitRenderMap = {
10010
10021
  disabled = _ref18.disabled;
10011
10022
  return /*#__PURE__*/React__default['default'].createElement(ApaasLogistics, {
10012
10023
  value: val,
10024
+ allowClear: true,
10013
10025
  onChange: function onChange(e) {
10014
10026
  return updateHandle(e, index, t.key);
10015
10027
  },
10016
- disabled: disabled
10028
+ disabled: t.isEdit || disabled
10017
10029
  });
10018
10030
  }
10019
10031
  };
@@ -10179,15 +10191,17 @@ var SubForm = function SubForm(props) {
10179
10191
  disabled: disabled
10180
10192
  });
10181
10193
  } else {
10182
- return /*#__PURE__*/React__default['default'].createElement(antd.Input, {
10183
- style: {
10184
- width: '100%'
10185
- },
10186
- value: val,
10187
- onChange: function onChange(e) {
10188
- var _e$target;
10189
- return updateHandle(e === null || e === void 0 ? void 0 : (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.value, index, t.key);
10190
- }
10194
+ return EditRenderMap['DEFAULT']({
10195
+ val: val,
10196
+ record: record,
10197
+ index: index,
10198
+ t: t,
10199
+ updateHandle: updateHandle,
10200
+ disabled: disabled,
10201
+ componentDto: componentDtoList.find(function (item) {
10202
+ return item.uniqueKey === t.key;
10203
+ }),
10204
+ platform: platform
10191
10205
  });
10192
10206
  }
10193
10207
  }
@@ -13949,7 +13963,7 @@ var jstGoods = function jstGoods(props) {
13949
13963
  changeIndex = _useState2[0],
13950
13964
  setChangeIndex = _useState2[1]; //选中的包裹
13951
13965
  var sendOptions = kmkfUtils.SendDataCenter.getInstance(platformType).getSendData();
13952
- var isSelectName = ['wdt', 'bsE3', 'km', 'gy', 'jst', 'jy'].includes(platformType);
13966
+ var isSelectName = ['wdt', 'bsE3', 'km', 'gy', 'jst', 'jy', 'jky'].includes(platformType);
13953
13967
  var expressDateInstance = kmkfUtils.ExpressData.getInstance(platformType);
13954
13968
  var isSendGoodSavedId = isSelectName && !['jst'].includes(platformType);
13955
13969
  React.useEffect(function () {
@@ -15319,6 +15333,223 @@ var jyColumns = [{
15319
15333
  }
15320
15334
  }];
15321
15335
 
15336
+ var jkyColumns = [{
15337
+ dataIndex: 'goodsNo',
15338
+ title: "\u8D27\u54C1\u7F16\u53F7",
15339
+ align: 'center',
15340
+ ellipsis: true,
15341
+ width: 150,
15342
+ render: renderTextEllipsis
15343
+ }, {
15344
+ dataIndex: 'goodsName',
15345
+ title: "\u8D27\u54C1\u540D\u79F0",
15346
+ align: 'center',
15347
+ ellipsis: true,
15348
+ width: 150,
15349
+ render: renderTextEllipsis
15350
+ }, {
15351
+ dataIndex: 'goodsId',
15352
+ title: "\u8D27\u54C1ID",
15353
+ align: 'center',
15354
+ ellipsis: true,
15355
+ width: 150,
15356
+ render: renderTextEllipsis
15357
+ }, {
15358
+ dataIndex: 'barcode',
15359
+ title: "\u8D27\u54C1\u6761\u7801",
15360
+ align: 'center',
15361
+ ellipsis: true,
15362
+ width: 150,
15363
+ render: renderTextEllipsis
15364
+ }, {
15365
+ dataIndex: 'specName',
15366
+ title: "\u89C4\u683C\u540D\u79F0",
15367
+ align: 'center',
15368
+ ellipsis: true,
15369
+ width: 150,
15370
+ render: renderTextEllipsis
15371
+ }, {
15372
+ dataIndex: 'specId',
15373
+ title: "\u89C4\u683CID",
15374
+ align: 'center',
15375
+ ellipsis: true,
15376
+ width: 150,
15377
+ render: renderTextEllipsis
15378
+ }, {
15379
+ dataIndex: 'skuImgUrl',
15380
+ title: "\u89C4\u683C\u56FE\u7247",
15381
+ align: 'center',
15382
+ ellipsis: true,
15383
+ width: 150,
15384
+ render: function render(val) {
15385
+ return /*#__PURE__*/React__default['default'].createElement("img", {
15386
+ style: {
15387
+ width: '30px',
15388
+ height: '30px',
15389
+ objectFit: 'contain'
15390
+ },
15391
+ src: val
15392
+ });
15393
+ }
15394
+ }, {
15395
+ dataIndex: 'sellCount',
15396
+ title: "\u6570\u91CF",
15397
+ width: 100,
15398
+ render: function render(val) {
15399
+ return /*#__PURE__*/React__default['default'].createElement("span", null, val);
15400
+ }
15401
+ }, {
15402
+ dataIndex: 'actualSendCount',
15403
+ title: "\u5B9E\u53D1\u6570\u91CF",
15404
+ width: 150,
15405
+ render: renderTextEllipsis
15406
+ }, {
15407
+ dataIndex: 'sellPrice',
15408
+ title: "\u5355\u4EF7",
15409
+ width: 150,
15410
+ render: function render(val) {
15411
+ return val || val === 0 ? Number(val).toFixed(2) : '';
15412
+ }
15413
+ }, {
15414
+ dataIndex: 'sellTotal',
15415
+ title: "\u91D1\u989D",
15416
+ width: 150
15417
+ }, {
15418
+ dataIndex: 'discountTotal',
15419
+ title: "\u62B5\u6263\u91D1\u989D",
15420
+ width: 150
15421
+ }, {
15422
+ dataIndex: 'shareFavourableFee',
15423
+ title: "\u5206\u644A\u91D1\u989D",
15424
+ width: 150
15425
+ }, {
15426
+ dataIndex: 'shareFavourableAfterFee',
15427
+ title: "\u5206\u644A\u540E\u91D1\u989D",
15428
+ width: 150
15429
+ }, {
15430
+ dataIndex: 'customerPrice',
15431
+ title: "\u7EC8\u7AEF\u9500\u552E\u5355\u4EF7",
15432
+ width: 150
15433
+ }, {
15434
+ dataIndex: 'customerTotal',
15435
+ title: "\u7EC8\u7AEF\u9500\u552E\u91D1\u989D",
15436
+ width: 150
15437
+ }, {
15438
+ dataIndex: 'divideSellTotal',
15439
+ title: "\u5B9E\u4ED8\u91D1\u989D",
15440
+ width: 150
15441
+ }, {
15442
+ dataIndex: 'isGift',
15443
+ title: "\u662F\u5426\u8D60\u54C1",
15444
+ width: 150,
15445
+ render: function render(val) {
15446
+ return /*#__PURE__*/React__default['default'].createElement("span", null, val === '1' ? '是' : '否');
15447
+ }
15448
+ }, {
15449
+ dataIndex: 'isFit',
15450
+ title: "\u662F\u5426\u7EC4\u5408\u88C5",
15451
+ width: 150,
15452
+ render: function render(val) {
15453
+ return /*#__PURE__*/React__default['default'].createElement("span", null, val === '1' ? '是' : '否');
15454
+ }
15455
+ }, {
15456
+ dataIndex: 'isPresell',
15457
+ title: "\u662F\u5426\u9884\u552E\u8D27\u54C1",
15458
+ width: 150,
15459
+ render: function render(val) {
15460
+ return /*#__PURE__*/React__default['default'].createElement("span", null, val === '1' ? '是' : '否');
15461
+ }
15462
+ }, {
15463
+ dataIndex: 'brandName',
15464
+ title: "\u54C1\u724C",
15465
+ align: 'center',
15466
+ ellipsis: true,
15467
+ width: 200,
15468
+ render: renderTextEllipsis
15469
+ }, {
15470
+ dataIndex: 'cateName',
15471
+ title: "\u8D27\u54C1\u7C7B\u522B",
15472
+ align: 'center',
15473
+ ellipsis: true,
15474
+ width: 150,
15475
+ render: renderTextEllipsis
15476
+ }, {
15477
+ dataIndex: 'goodsTags',
15478
+ title: "\u8D27\u54C1\u6807\u7B7E",
15479
+ align: 'center',
15480
+ ellipsis: true,
15481
+ width: 250,
15482
+ render: renderTextEllipsis
15483
+ }, {
15484
+ dataIndex: 'goodsMemo',
15485
+ title: "\u8D27\u54C1\u5907\u6CE8",
15486
+ align: 'center',
15487
+ ellipsis: true,
15488
+ width: 250,
15489
+ render: renderTextEllipsis
15490
+ }, {
15491
+ dataIndex: 'tradeGoodsNo',
15492
+ title: "\u4EA4\u6613\u8D27\u54C1\u7F16\u53F7",
15493
+ align: 'center',
15494
+ ellipsis: true,
15495
+ width: 250,
15496
+ render: renderTextEllipsis
15497
+ }, {
15498
+ dataIndex: 'tradeGoodsName',
15499
+ title: "\u4EA4\u6613\u8D27\u54C1\u540D\u79F0",
15500
+ ellipsis: true,
15501
+ width: 250,
15502
+ render: renderTextEllipsis
15503
+ }, {
15504
+ dataIndex: 'tradeGoodsSpec',
15505
+ title: "\u4EA4\u6613\u89C4\u683C\u540D\u79F0",
15506
+ ellipsis: true,
15507
+ width: 250,
15508
+ render: renderTextEllipsis
15509
+ }, {
15510
+ dataIndex: 'sourceSubtradeNo',
15511
+ title: "\u7F51\u5E97\u5B50\u8BA2\u5355\u53F7",
15512
+ ellipsis: true,
15513
+ width: 250,
15514
+ render: renderTextEllipsis
15515
+ }, {
15516
+ dataIndex: 'platGoodsId',
15517
+ title: "\u5E73\u53F0\u5546\u54C1ID",
15518
+ ellipsis: true,
15519
+ width: 250,
15520
+ render: renderTextEllipsis
15521
+ }, {
15522
+ dataIndex: 'subTradeId',
15523
+ title: "\u5546\u54C1\u660E\u7EC6ID",
15524
+ ellipsis: true,
15525
+ width: 250,
15526
+ render: renderTextEllipsis
15527
+ }, {
15528
+ dataIndex: 'batchNo',
15529
+ title: "\u6279\u6B21\u53F7",
15530
+ ellipsis: true,
15531
+ width: 250,
15532
+ render: renderTextEllipsis
15533
+ }, {
15534
+ dataIndex: 'sendCount',
15535
+ title: "\u6279\u6B21\u6570\u91CF",
15536
+ ellipsis: true,
15537
+ width: 250,
15538
+ render: renderTextEllipsis
15539
+ }, {
15540
+ dataIndex: 'productDate',
15541
+ title: "\u751F\u4EA7\u65E5\u671F",
15542
+ ellipsis: true,
15543
+ width: 250,
15544
+ render: renderTextEllipsis
15545
+ }, {
15546
+ dataIndex: 'expireDate',
15547
+ title: "\u5230\u671F\u65E5\u671F",
15548
+ ellipsis: true,
15549
+ width: 250,
15550
+ render: renderTextEllipsis
15551
+ }];
15552
+
15322
15553
  var getColumnsMap = function getColumnsMap() {
15323
15554
  return lodash.cloneDeep({
15324
15555
  gy: gyColumns,
@@ -15326,7 +15557,8 @@ var getColumnsMap = function getColumnsMap() {
15326
15557
  wdt: wdtColumns,
15327
15558
  bse3: bse3Columns,
15328
15559
  km: kmColumns,
15329
- jy: jyColumns
15560
+ jy: jyColumns,
15561
+ jky: jkyColumns
15330
15562
  });
15331
15563
  };
15332
15564
  var getColumnsBaseInfo = function getColumnsBaseInfo() {
@@ -18468,41 +18700,284 @@ var JyGoodsModal = function JyGoodsModal(props, ref) {
18468
18700
  };
18469
18701
  var JyGoodsModal$1 = /*#__PURE__*/React.forwardRef(JyGoodsModal);
18470
18702
 
18471
- var getColumns = function getColumns(_ref) {
18472
- var _ref$text = _ref.text,
18473
- disabled = _ref.disabled,
18474
- updateHandle = _ref.updateHandle;
18475
- return {
18476
- //百胜E3补发商品
18477
- BS_E3_REISSUE_GOODS: [{
18478
- dataIndex: 'sku',
18479
- title: "SKU",
18480
- width: 150,
18481
- render: renderTextEllipsis
18482
- }, {
18483
- dataIndex: 'skuId',
18484
- title: "SKU ID",
18485
- width: 150,
18486
- render: renderTextEllipsis
18487
- }, {
18488
- dataIndex: 'goodsName',
18489
- title: "\u5546\u54C1\u540D\u79F0",
18490
- width: 150,
18491
- render: renderTextEllipsis
18492
- }, {
18493
- dataIndex: 'goodsShortName',
18494
- title: "\u5546\u54C1\u7B80\u79F0",
18495
- width: 150,
18496
- render: renderTextEllipsis
18497
- }, {
18498
- dataIndex: 'picPath',
18499
- title: "\u5546\u54C1\u56FE\u7247",
18500
- width: 150,
18501
- render: function render(val) {
18502
- return /*#__PURE__*/React__default['default'].createElement(antd.Image, {
18503
- width: 30,
18504
- src: val
18505
- });
18703
+ var getTableData$6 = function getTableData(_ref, formData) {
18704
+ var current = _ref.current,
18705
+ pageSize = _ref.pageSize;
18706
+ return extendRequest('/qy/gdfw/product/product/page', {
18707
+ method: 'post',
18708
+ data: _objectSpread2({
18709
+ pageSize: pageSize,
18710
+ pageNo: current,
18711
+ platform: 'JY_ERP'
18712
+ }, formData)
18713
+ }).then(function (res) {
18714
+ var _res$data = res.data,
18715
+ _res$data$productSkuL = _res$data.productSkuList,
18716
+ productSkuList = _res$data$productSkuL === void 0 ? [] : _res$data$productSkuL,
18717
+ _res$data$total = _res$data.total,
18718
+ total = _res$data$total === void 0 ? 0 : _res$data$total;
18719
+ var newProducts = productSkuList.map(function (item, index) {
18720
+ return _objectSpread2({}, item);
18721
+ });
18722
+ return {
18723
+ total: total,
18724
+ list: newProducts
18725
+ };
18726
+ });
18727
+ };
18728
+ var searchFormData$5 = [{
18729
+ label: '规格名称',
18730
+ name: 'skuName',
18731
+ dataIndex: 'specName'
18732
+ }, {
18733
+ label: '规格编码',
18734
+ name: 'skuCode',
18735
+ dataIndex: 'specNo'
18736
+ }, {
18737
+ label: '商品名称',
18738
+ name: 'goodName'
18739
+ }, {
18740
+ label: '商品编码',
18741
+ name: 'goodNo'
18742
+ }];
18743
+ var GoodList$6 = function GoodList(props, ref) {
18744
+ var _useState = React.useState([]),
18745
+ _useState2 = _slicedToArray(_useState, 2),
18746
+ selectList = _useState2[0],
18747
+ setSelect = _useState2[1];
18748
+ var _useState3 = React.useState([]),
18749
+ _useState4 = _slicedToArray(_useState3, 2),
18750
+ selectIds = _useState4[0],
18751
+ setSelectIds = _useState4[1];
18752
+ var _useGetColumns = useGetColumns('jky'),
18753
+ _useGetColumns2 = _slicedToArray(_useGetColumns, 3),
18754
+ columns = _useGetColumns2[0],
18755
+ showColumnsDataIndexList = _useGetColumns2[1],
18756
+ loading = _useGetColumns2[2];
18757
+ React.useImperativeHandle(ref, function () {
18758
+ return {
18759
+ getSelectGoodList: function getSelectGoodList() {
18760
+ return selectList;
18761
+ }
18762
+ };
18763
+ });
18764
+ var _Form$useForm = antd.Form.useForm(),
18765
+ _Form$useForm2 = _slicedToArray(_Form$useForm, 1),
18766
+ form = _Form$useForm2[0];
18767
+ var _useAntdTable = ahooks.useAntdTable(getTableData$6, {
18768
+ defaultPageSize: 10,
18769
+ form: form
18770
+ }),
18771
+ tableProps = _useAntdTable.tableProps,
18772
+ search = _useAntdTable.search,
18773
+ params = _useAntdTable.params;
18774
+ var submit = search.submit,
18775
+ reset = search.reset;
18776
+ var rowSelection = {
18777
+ selectedRowKeys: selectIds,
18778
+ fixed: true,
18779
+ onSelect: function onSelect(record, selected) {
18780
+ if (selected) {
18781
+ setSelectIds([].concat(_toConsumableArray(selectIds), [record.id]));
18782
+ setSelect([].concat(_toConsumableArray(selectList), [record]));
18783
+ } else {
18784
+ setSelectIds(selectIds.filter(function (t) {
18785
+ return t !== record.id;
18786
+ }));
18787
+ setSelect(selectList.filter(function (t) {
18788
+ return t.id !== record.id;
18789
+ }));
18790
+ }
18791
+ },
18792
+ onSelectAll: function onSelectAll(selected, selectedRows, changeRows) {
18793
+ if (selected) {
18794
+ setSelectIds([].concat(_toConsumableArray(selectIds), _toConsumableArray(changeRows.map(function (t) {
18795
+ return t.id;
18796
+ }))));
18797
+ setSelect([].concat(_toConsumableArray(selectList), _toConsumableArray(changeRows)));
18798
+ } else {
18799
+ setSelectIds(lodash.difference(selectIds, changeRows.map(function (t) {
18800
+ return t.id;
18801
+ })));
18802
+ var list = lodash.differenceWith(selectList, changeRows, function (arrVal, othVal) {
18803
+ return arrVal.id !== othVal.id;
18804
+ });
18805
+ setSelect(list);
18806
+ }
18807
+ },
18808
+ getCheckboxProps: function getCheckboxProps(record) {
18809
+ var options = {
18810
+ disabled: (props.selectedRows || []).map(function (row) {
18811
+ return row.id || row.specId;
18812
+ }).includes(record.id || record.specId),
18813
+ name: record.id
18814
+ };
18815
+ return options;
18816
+ }
18817
+ };
18818
+ var showTable = function showTable() {
18819
+ var handleDelete = function handleDelete(record) {
18820
+ setSelectIds(selectIds.filter(function (t) {
18821
+ return t !== record.id;
18822
+ }));
18823
+ setSelect(selectList.filter(function (t) {
18824
+ return t.id !== record.id;
18825
+ }));
18826
+ };
18827
+ var showColumns = [{
18828
+ dataIndex: '',
18829
+ title: "\u64CD\u4F5C",
18830
+ ellipsis: true,
18831
+ width: 100,
18832
+ render: function render(val, record) {
18833
+ return /*#__PURE__*/React__default['default'].createElement(antd.Button, {
18834
+ type: "link",
18835
+ onClick: function onClick() {
18836
+ return handleDelete(record);
18837
+ }
18838
+ }, "\u5220\u9664");
18839
+ }
18840
+ }].concat(lodash.takeRight(columns, columns.length - 1));
18841
+ return selectList.length ? /*#__PURE__*/React__default['default'].createElement("div", {
18842
+ style: {
18843
+ width: '100%',
18844
+ maxWidth: '387px'
18845
+ }
18846
+ }, /*#__PURE__*/React__default['default'].createElement(antd.Table, {
18847
+ columns: showColumns,
18848
+ rowKey: 'id',
18849
+ dataSource: selectList,
18850
+ scroll: {
18851
+ x: '100%',
18852
+ y: 250
18853
+ },
18854
+ pagination: {
18855
+ size: 'small',
18856
+ total: selectIds.length,
18857
+ pageSize: 10,
18858
+ showSizeChanger: false
18859
+ }
18860
+ })) : null;
18861
+ };
18862
+ return /*#__PURE__*/React__default['default'].createElement(antd.Skeleton, {
18863
+ active: true,
18864
+ loading: loading
18865
+ }, /*#__PURE__*/React__default['default'].createElement(SearchForm, {
18866
+ searchFormData: searchFormData$5,
18867
+ form: form,
18868
+ showColumnsDataIndexList: showColumnsDataIndexList,
18869
+ submit: submit,
18870
+ reset: reset
18871
+ }), /*#__PURE__*/React__default['default'].createElement("div", {
18872
+ style: {
18873
+ marginTop: '4px'
18874
+ }
18875
+ }, /*#__PURE__*/React__default['default'].createElement(antd.Table, _objectSpread2({
18876
+ className: "GoodModalColumns",
18877
+ rowSelection: rowSelection,
18878
+ rowKey: "id",
18879
+ columns: columns,
18880
+ scroll: {
18881
+ x: '100%',
18882
+ y: 250
18883
+ },
18884
+ size: "small"
18885
+ }, tableProps))), /*#__PURE__*/React__default['default'].createElement(antd.Popover, {
18886
+ getPopupContainer: function getPopupContainer(triggerNode) {
18887
+ return triggerNode.parentElement;
18888
+ },
18889
+ content: showTable(),
18890
+ title: "\u5DF2\u9009\u62E9".concat(selectList.length, "\u4E2A\u5546\u54C1")
18891
+ }, /*#__PURE__*/React__default['default'].createElement(antd.Button, {
18892
+ danger: true,
18893
+ type: "text"
18894
+ }, "\u5DF2\u9009".concat(selectList.length > 99 ? '99+' : selectList.length, "\u4E2A\u5546\u54C1"), /*#__PURE__*/React__default['default'].createElement(icons.CaretUpOutlined, null))));
18895
+ };
18896
+ var JkyGoodsList = /*#__PURE__*/React.forwardRef(GoodList$6);
18897
+
18898
+ var JkyGoodsModal = function JkyGoodsModal(props, ref) {
18899
+ React.useImperativeHandle(ref, function () {
18900
+ return {
18901
+ open: function open(shopCode) {
18902
+ var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
18903
+ setVisible(true);
18904
+ setSelectedRows(options.value || []);
18905
+ }
18906
+ };
18907
+ });
18908
+ var onSubmit = props.onSubmit,
18909
+ width = props.width;
18910
+ var _useState = React.useState(false),
18911
+ _useState2 = _slicedToArray(_useState, 2),
18912
+ visible = _useState2[0],
18913
+ setVisible = _useState2[1];
18914
+ var _useState3 = React.useState([]),
18915
+ _useState4 = _slicedToArray(_useState3, 2),
18916
+ selectedRows = _useState4[0],
18917
+ setSelectedRows = _useState4[1];
18918
+ var jkyGoodsListRef = React.useRef(null);
18919
+ var _onCancel = function onCancel() {
18920
+ setVisible(false);
18921
+ };
18922
+ var onOk = function onOk() {
18923
+ var _jkyGoodsListRef$curr;
18924
+ var selectedList = ((_jkyGoodsListRef$curr = jkyGoodsListRef.current) === null || _jkyGoodsListRef$curr === void 0 ? void 0 : _jkyGoodsListRef$curr.getSelectGoodList()) || [];
18925
+ onSubmit(selectedList);
18926
+ _onCancel();
18927
+ };
18928
+ return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, visible && /*#__PURE__*/React__default['default'].createElement(antd.Modal, {
18929
+ title: '选择商品',
18930
+ okText: '确认',
18931
+ cancelText: '取消',
18932
+ visible: visible,
18933
+ width: width || 850,
18934
+ onCancel: function onCancel() {
18935
+ _onCancel();
18936
+ },
18937
+ onOk: onOk,
18938
+ wrapClassName: "goodModal"
18939
+ }, /*#__PURE__*/React__default['default'].createElement(JkyGoodsList, {
18940
+ ref: jkyGoodsListRef,
18941
+ selectedRows: selectedRows
18942
+ })));
18943
+ };
18944
+ var JkyGoodsModal$1 = /*#__PURE__*/React.forwardRef(JkyGoodsModal);
18945
+
18946
+ var getColumns = function getColumns(_ref) {
18947
+ var _ref$text = _ref.text,
18948
+ disabled = _ref.disabled,
18949
+ updateHandle = _ref.updateHandle;
18950
+ return {
18951
+ //百胜E3补发商品
18952
+ BS_E3_REISSUE_GOODS: [{
18953
+ dataIndex: 'sku',
18954
+ title: "SKU",
18955
+ width: 150,
18956
+ render: renderTextEllipsis
18957
+ }, {
18958
+ dataIndex: 'skuId',
18959
+ title: "SKU ID",
18960
+ width: 150,
18961
+ render: renderTextEllipsis
18962
+ }, {
18963
+ dataIndex: 'goodsName',
18964
+ title: "\u5546\u54C1\u540D\u79F0",
18965
+ width: 150,
18966
+ render: renderTextEllipsis
18967
+ }, {
18968
+ dataIndex: 'goodsShortName',
18969
+ title: "\u5546\u54C1\u7B80\u79F0",
18970
+ width: 150,
18971
+ render: renderTextEllipsis
18972
+ }, {
18973
+ dataIndex: 'picPath',
18974
+ title: "\u5546\u54C1\u56FE\u7247",
18975
+ width: 150,
18976
+ render: function render(val) {
18977
+ return /*#__PURE__*/React__default['default'].createElement(antd.Image, {
18978
+ width: 30,
18979
+ src: val
18980
+ });
18506
18981
  }
18507
18982
  }, {
18508
18983
  dataIndex: 'goodsSn',
@@ -19713,182 +20188,554 @@ var getColumns$2 = function getColumns(_ref) {
19713
20188
  width: 150,
19714
20189
  align: 'center',
19715
20190
  ellipsis: true,
19716
- render: renderTextEllipsis
20191
+ render: renderTextEllipsis
20192
+ }, {
20193
+ dataIndex: 'refundNum',
20194
+ title: "\u9000\u6B3E\u6570\u91CF",
20195
+ width: 150,
20196
+ align: 'center',
20197
+ ellipsis: true,
20198
+ render: renderTextEllipsis
20199
+ }, {
20200
+ dataIndex: 'totalAmount',
20201
+ title: "\u9000\u8D27\u603B\u989D",
20202
+ width: 150,
20203
+ align: 'center',
20204
+ ellipsis: true,
20205
+ render: renderTextEllipsis
20206
+ }, {
20207
+ dataIndex: 'refundAmount',
20208
+ title: "\u5DF2\u9000\u6B3E\u91D1\u989D",
20209
+ width: 150,
20210
+ align: 'center',
20211
+ ellipsis: true,
20212
+ render: renderTextEllipsis
20213
+ }, {
20214
+ dataIndex: 'num',
20215
+ title: "\u5B9E\u9645\u53D1\u51FA\u6570\u91CF",
20216
+ width: 150,
20217
+ align: 'center',
20218
+ ellipsis: true,
20219
+ render: renderTextEllipsis
20220
+ }, {
20221
+ dataIndex: 'price',
20222
+ title: "\u4EF7\u683C",
20223
+ width: 150,
20224
+ align: 'center',
20225
+ ellipsis: true,
20226
+ render: renderTextEllipsis
20227
+ }, {
20228
+ dataIndex: 'originalPrice',
20229
+ title: "\u539F\u4EF7",
20230
+ width: 150,
20231
+ align: 'center',
20232
+ ellipsis: true,
20233
+ render: renderTextEllipsis
20234
+ }, {
20235
+ dataIndex: 'giftTypeDesc',
20236
+ title: "\u8D60\u54C1\u7C7B\u578B",
20237
+ width: 150,
20238
+ align: 'center',
20239
+ ellipsis: true,
20240
+ render: renderTextEllipsis
20241
+ }, {
20242
+ dataIndex: 'unitName',
20243
+ title: "\u57FA\u672C\u5355\u4F4D",
20244
+ ellipsis: true,
20245
+ width: 150,
20246
+ align: 'center',
20247
+ render: renderTextEllipsis
20248
+ }, {
20249
+ dataIndex: 'auxUnitName',
20250
+ title: "\u8F85\u52A9\u5355\u4F4D",
20251
+ ellipsis: true,
20252
+ width: 150,
20253
+ align: 'center',
20254
+ render: renderTextEllipsis
20255
+ }]
20256
+ };
20257
+ };
20258
+
20259
+ var getYesOrNo$2 = function getYesOrNo(val) {
20260
+ if (kmkfUtils.isNull(val)) return null;
20261
+ return val ? '是' : '否';
20262
+ };
20263
+ var getColumns$3 = function getColumns(_ref) {
20264
+ var _ref$text = _ref.text,
20265
+ text = _ref$text === void 0 ? '' : _ref$text,
20266
+ disabled = _ref.disabled,
20267
+ updateHandle = _ref.updateHandle;
20268
+ return {
20269
+ //万里牛商品信息
20270
+ WLN_GOODS: [{
20271
+ dataIndex: 'wlnItemName',
20272
+ title: "\u5546\u54C1\u540D\u79F0",
20273
+ align: 'center',
20274
+ ellipsis: true,
20275
+ width: 250,
20276
+ render: renderTextEllipsis
20277
+ }, {
20278
+ dataIndex: 'goodsCode',
20279
+ title: "\u5546\u54C1\u7F16\u7801",
20280
+ align: 'center',
20281
+ ellipsis: true,
20282
+ width: 250,
20283
+ render: renderTextEllipsis
20284
+ }, {
20285
+ dataIndex: 'skuCode',
20286
+ title: "sku\u7F16\u7801",
20287
+ align: 'center',
20288
+ ellipsis: true,
20289
+ width: 250,
20290
+ render: renderTextEllipsis
20291
+ }, {
20292
+ dataIndex: 'skuName',
20293
+ title: "\u7EBF\u4E0Asku\u540D\u79F0",
20294
+ align: 'center',
20295
+ ellipsis: true,
20296
+ width: 250,
20297
+ render: renderTextEllipsis
20298
+ }, {
20299
+ dataIndex: 'olnSkuCode',
20300
+ title: "\u7EBF\u4E0Asku\u7F16\u7801",
20301
+ align: 'center',
20302
+ ellipsis: true,
20303
+ width: 150,
20304
+ render: renderTextEllipsis
20305
+ }, {
20306
+ dataIndex: 'sku',
20307
+ title: "\u7EBF\u4E0Asku id",
20308
+ align: 'center',
20309
+ ellipsis: true,
20310
+ width: 150,
20311
+ render: renderTextEllipsis
20312
+ }, {
20313
+ dataIndex: 'name',
20314
+ title: "\u7EBF\u4E0A\u5546\u54C1\u540D\u79F0",
20315
+ align: 'center',
20316
+ ellipsis: true,
20317
+ width: 250,
20318
+ render: renderTextEllipsis
20319
+ }, {
20320
+ dataIndex: 'pic',
20321
+ title: "\u7EBF\u4E0A\u56FE\u7247",
20322
+ align: 'center',
20323
+ ellipsis: true,
20324
+ width: 100,
20325
+ render: function render(val) {
20326
+ return /*#__PURE__*/React__default['default'].createElement(antd.Image, {
20327
+ width: 30,
20328
+ src: val
20329
+ });
20330
+ }
19717
20331
  }, {
19718
- dataIndex: 'refundNum',
19719
- title: "\u9000\u6B3E\u6570\u91CF",
19720
- width: 150,
20332
+ dataIndex: 'olnItemCOde',
20333
+ title: "\u7EBF\u4E0A\u5546\u54C1\u7F16\u7801",
19721
20334
  align: 'center',
19722
20335
  ellipsis: true,
20336
+ width: 150,
19723
20337
  render: renderTextEllipsis
19724
20338
  }, {
19725
- dataIndex: 'totalAmount',
19726
- title: "\u9000\u8D27\u603B\u989D",
19727
- width: 150,
20339
+ dataIndex: 'code',
20340
+ title: "\u7EBF\u4E0A\u5546\u54C1id",
19728
20341
  align: 'center',
19729
20342
  ellipsis: true,
20343
+ width: 150,
19730
20344
  render: renderTextEllipsis
19731
20345
  }, {
19732
- dataIndex: 'refundAmount',
19733
- title: "\u5DF2\u9000\u6B3E\u91D1\u989D",
19734
- width: 150,
20346
+ dataIndex: 'barCode',
20347
+ title: "\u5546\u54C1\u6761\u7801",
19735
20348
  align: 'center',
19736
20349
  ellipsis: true,
20350
+ width: 150,
19737
20351
  render: renderTextEllipsis
19738
20352
  }, {
19739
- dataIndex: 'num',
19740
- title: "\u5B9E\u9645\u53D1\u51FA\u6570\u91CF",
19741
- width: 150,
20353
+ dataIndex: 'money',
20354
+ title: "\u5B9E\u4ED8\u91D1\u989D",
19742
20355
  align: 'center',
19743
20356
  ellipsis: true,
20357
+ width: 100,
19744
20358
  render: renderTextEllipsis
19745
20359
  }, {
19746
- dataIndex: 'price',
19747
- title: "\u4EF7\u683C",
19748
- width: 150,
20360
+ dataIndex: 'number',
20361
+ title: "".concat(text, "\u6570\u91CF"),
19749
20362
  align: 'center',
19750
20363
  ellipsis: true,
19751
- render: renderTextEllipsis
20364
+ width: 100,
20365
+ render: function render(val, record, index) {
20366
+ return record.canUpdateNumber && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
20367
+ style: {
20368
+ width: 70
20369
+ },
20370
+ value: val,
20371
+ min: 1,
20372
+ precision: 0,
20373
+ onChange: function onChange(num) {
20374
+ return updateHandle(num, index, 'number');
20375
+ }
20376
+ }) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
20377
+ }
19752
20378
  }, {
19753
- dataIndex: 'originalPrice',
19754
- title: "\u539F\u4EF7",
19755
- width: 150,
20379
+ dataIndex: 'share',
20380
+ title: "\u5E94\u6536\u6B3E",
19756
20381
  align: 'center',
19757
20382
  ellipsis: true,
20383
+ width: 70,
19758
20384
  render: renderTextEllipsis
19759
20385
  }, {
19760
- dataIndex: 'giftTypeDesc',
20386
+ dataIndex: 'type',
19761
20387
  title: "\u8D60\u54C1\u7C7B\u578B",
19762
- width: 150,
19763
20388
  align: 'center',
19764
20389
  ellipsis: true,
20390
+ width: 100,
19765
20391
  render: renderTextEllipsis
19766
20392
  }, {
19767
- dataIndex: 'unitName',
19768
- title: "\u57FA\u672C\u5355\u4F4D",
19769
- ellipsis: true,
19770
- width: 150,
20393
+ dataIndex: 'isPackage',
20394
+ title: "\u662F\u5426\u7EC4\u5408\u5546\u54C1",
19771
20395
  align: 'center',
19772
- render: renderTextEllipsis
19773
- }, {
19774
- dataIndex: 'auxUnitName',
19775
- title: "\u8F85\u52A9\u5355\u4F4D",
19776
20396
  ellipsis: true,
19777
- width: 150,
19778
- align: 'center',
19779
- render: renderTextEllipsis
20397
+ render: function render(val, record, index) {
20398
+ return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
20399
+ value: val,
20400
+ onChange: function onChange(value) {
20401
+ updateHandle(value, index, 'isGift');
20402
+ },
20403
+ options: [{
20404
+ label: '是',
20405
+ value: true
20406
+ }, {
20407
+ label: '否',
20408
+ value: false
20409
+ }]
20410
+ }) : /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo$2(val));
20411
+ },
20412
+ width: 100
19780
20413
  }]
19781
20414
  };
19782
20415
  };
19783
20416
 
19784
- var getYesOrNo$2 = function getYesOrNo(val) {
20417
+ var isNumberOrNumberString$1 = function isNumberOrNumberString(value) {
20418
+ if (typeof value === 'number') return true;
20419
+ if (typeof value === 'string' && !isNaN(Number(value)) && value.trim() !== '') return true;
20420
+ return false;
20421
+ };
20422
+ var getYesOrNo$3 = function getYesOrNo(val) {
19785
20423
  if (kmkfUtils.isNull(val)) return null;
19786
20424
  return val ? '是' : '否';
19787
20425
  };
19788
- var getColumns$3 = function getColumns(_ref) {
20426
+ function toNum$1(value) {
20427
+ if (typeof value === 'string') {
20428
+ return value ? +value : void 0;
20429
+ }
20430
+ if (typeof value === 'number') {
20431
+ return value;
20432
+ }
20433
+ return void 0;
20434
+ }
20435
+ var getColumns$4 = function getColumns(_ref) {
19789
20436
  var _ref$text = _ref.text,
19790
- text = _ref$text === void 0 ? '' : _ref$text,
19791
20437
  disabled = _ref.disabled,
19792
- updateHandle = _ref.updateHandle;
20438
+ updateHandle = _ref.updateHandle,
20439
+ updateDataHandle = _ref.updateDataHandle;
19793
20440
  return {
19794
- //万里牛商品信息
19795
- WLN_GOODS: [{
19796
- dataIndex: 'wlnItemName',
20441
+ //管易商品信息
20442
+ GY_GOODS: [{
20443
+ dataIndex: 'goodName',
19797
20444
  title: "\u5546\u54C1\u540D\u79F0",
19798
- align: 'center',
19799
- ellipsis: true,
19800
- width: 250,
20445
+ width: 150,
19801
20446
  render: renderTextEllipsis
19802
20447
  }, {
19803
- dataIndex: 'goodsCode',
20448
+ dataIndex: 'goodShortName',
20449
+ title: "\u5546\u54C1\u7B80\u79F0",
20450
+ width: 150,
20451
+ render: renderTextEllipsis
20452
+ }, {
20453
+ dataIndex: 'goodNo',
19804
20454
  title: "\u5546\u54C1\u7F16\u7801",
19805
- align: 'center',
19806
- ellipsis: true,
19807
- width: 250,
20455
+ width: 200,
19808
20456
  render: renderTextEllipsis
19809
20457
  }, {
19810
- dataIndex: 'skuCode',
19811
- title: "sku\u7F16\u7801",
20458
+ dataIndex: 'specName',
20459
+ title: "SKU\u540D\u79F0",
19812
20460
  align: 'center',
19813
20461
  ellipsis: true,
19814
20462
  width: 250,
19815
20463
  render: renderTextEllipsis
19816
20464
  }, {
19817
- dataIndex: 'skuName',
19818
- title: "\u7EBF\u4E0Asku\u540D\u79F0",
20465
+ dataIndex: 'specNo',
20466
+ title: "SKU\u7F16\u7801",
19819
20467
  align: 'center',
19820
20468
  ellipsis: true,
19821
- width: 250,
20469
+ width: 150,
19822
20470
  render: renderTextEllipsis
19823
20471
  }, {
19824
- dataIndex: 'olnSkuCode',
19825
- title: "\u7EBF\u4E0Asku\u7F16\u7801",
19826
- align: 'center',
19827
- ellipsis: true,
20472
+ dataIndex: 'qty',
20473
+ title: "\u6570\u91CF",
20474
+ width: 100,
20475
+ render: function render(val, record, index) {
20476
+ return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
20477
+ style: {
20478
+ width: 70
20479
+ },
20480
+ value: val,
20481
+ min: 1,
20482
+ precision: 0,
20483
+ onChange: function onChange(num) {
20484
+ updateDataHandle({
20485
+ qty: num,
20486
+ amount: num && isNumberOrNumberString$1(record.price) ? num * record.price : null,
20487
+ originAmount: num && isNumberOrNumberString$1(record.originPrice) ? num * record.originPrice : null
20488
+ }, index);
20489
+ }
20490
+ }) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
20491
+ }
20492
+ }, {
20493
+ dataIndex: 'price',
20494
+ title: "\u5B9E\u9645\u5355\u4EF7",
20495
+ width: 150,
20496
+ render: function render(val, record, index) {
20497
+ return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
20498
+ style: {
20499
+ width: 130
20500
+ },
20501
+ value: val,
20502
+ min: 0,
20503
+ precision: 2,
20504
+ onChange: function onChange(num) {
20505
+ updateDataHandle({
20506
+ price: num,
20507
+ amount: num && isNumberOrNumberString$1(record.qty) ? num * record.qty : null
20508
+ }, index);
20509
+ }
20510
+ }) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
20511
+ }
20512
+ }, {
20513
+ dataIndex: 'amount',
20514
+ title: "\u5B9E\u9645\u91D1\u989D",
20515
+ width: 150
20516
+ }, {
20517
+ dataIndex: 'originPrice',
20518
+ title: "\u6807\u51C6\u5355\u4EF7",
20519
+ width: 150
20520
+ }, {
20521
+ dataIndex: 'originAmount',
20522
+ title: "\u6807\u51C6\u91D1\u989D",
20523
+ width: 150
20524
+ }, {
20525
+ dataIndex: 'discountFee',
20526
+ title: "\u8BA9\u5229\u91D1\u989D",
20527
+ width: 150
20528
+ }, {
20529
+ dataIndex: 'amountAfter',
20530
+ title: "\u8BA9\u5229\u540E\u91D1\u989D",
20531
+ width: 150
20532
+ }, {
20533
+ dataIndex: 'cancel',
20534
+ title: "\u662F\u5426\u53D6\u6D88",
20535
+ width: 150,
20536
+ render: function render(val) {
20537
+ return /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo$3(val));
20538
+ }
20539
+ }, {
20540
+ dataIndex: 'isGift',
20541
+ title: "\u662F\u5426\u8D60\u54C1",
20542
+ width: 150,
20543
+ render: function render(val, record, index) {
20544
+ return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
20545
+ value: val,
20546
+ onChange: function onChange(value) {
20547
+ updateHandle(value, index, 'isGift');
20548
+ },
20549
+ options: [{
20550
+ label: '是',
20551
+ value: 1
20552
+ }, {
20553
+ label: '否',
20554
+ value: 0
20555
+ }]
20556
+ }) : /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo$3(val));
20557
+ }
20558
+ }, {
20559
+ dataIndex: 'skuNote',
20560
+ title: "\u5546\u54C1\u5907\u6CE8",
20561
+ width: 150,
20562
+ render: renderTextEllipsis
20563
+ }].map(function (item) {
20564
+ return _objectSpread2(_objectSpread2({}, item), {}, {
20565
+ align: 'center',
20566
+ ellipsis: true
20567
+ });
20568
+ }),
20569
+ //管易补发商品信息
20570
+ GY_REISSUE_GOODS: [{
20571
+ dataIndex: 'goodName',
20572
+ title: "\u5546\u54C1\u540D\u79F0",
19828
20573
  width: 150,
19829
20574
  render: renderTextEllipsis
19830
20575
  }, {
19831
- dataIndex: 'sku',
19832
- title: "\u7EBF\u4E0Asku id",
19833
- align: 'center',
19834
- ellipsis: true,
20576
+ dataIndex: 'goodShortName',
20577
+ title: "\u5546\u54C1\u7B80\u79F0",
19835
20578
  width: 150,
19836
20579
  render: renderTextEllipsis
19837
20580
  }, {
19838
- dataIndex: 'name',
19839
- title: "\u7EBF\u4E0A\u5546\u54C1\u540D\u79F0",
20581
+ dataIndex: 'goodNo',
20582
+ title: "\u5546\u54C1\u7F16\u7801",
20583
+ width: 200,
20584
+ render: renderTextEllipsis
20585
+ }, {
20586
+ dataIndex: 'specName',
20587
+ title: "SKU\u540D\u79F0",
19840
20588
  align: 'center',
19841
20589
  ellipsis: true,
19842
20590
  width: 250,
19843
20591
  render: renderTextEllipsis
19844
20592
  }, {
19845
- dataIndex: 'pic',
19846
- title: "\u7EBF\u4E0A\u56FE\u7247",
20593
+ dataIndex: 'specNo',
20594
+ title: "SKU\u7F16\u7801",
19847
20595
  align: 'center',
19848
20596
  ellipsis: true,
20597
+ width: 150,
20598
+ render: renderTextEllipsis
20599
+ }, {
20600
+ dataIndex: 'qty',
20601
+ title: "\u6570\u91CF",
19849
20602
  width: 100,
19850
- render: function render(val) {
19851
- return /*#__PURE__*/React__default['default'].createElement(antd.Image, {
19852
- width: 30,
19853
- src: val
19854
- });
20603
+ validator: function validator(_rule, value) {
20604
+ var goodsName = '';
20605
+ if (((value === null || value === void 0 ? void 0 : value.gyReissueGoods) || []).some(function (goods) {
20606
+ var qty = toNum$1(goods === null || goods === void 0 ? void 0 : goods.qty);
20607
+ var res = typeof qty === 'number' ? qty < 1 : true;
20608
+ if (res) {
20609
+ goodsName = (goods === null || goods === void 0 ? void 0 : goods.goodName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodName, "]") : '';
20610
+ }
20611
+ return res;
20612
+ })) {
20613
+ return Promise.reject("".concat(goodsName, "\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
20614
+ }
20615
+ },
20616
+ render: function render(val, record, index) {
20617
+ return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
20618
+ style: {
20619
+ width: 70
20620
+ },
20621
+ value: val,
20622
+ min: 1,
20623
+ precision: 0,
20624
+ onChange: function onChange(num) {
20625
+ updateDataHandle({
20626
+ qty: num,
20627
+ amount: num && isNumberOrNumberString$1(record.price) ? num * record.price : null,
20628
+ originAmount: num && isNumberOrNumberString$1(record.originPrice) ? num * record.originPrice : null
20629
+ }, index);
20630
+ }
20631
+ }) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
19855
20632
  }
19856
20633
  }, {
19857
- dataIndex: 'olnItemCOde',
19858
- title: "\u7EBF\u4E0A\u5546\u54C1\u7F16\u7801",
19859
- align: 'center',
19860
- ellipsis: true,
20634
+ dataIndex: 'price',
20635
+ title: "\u5B9E\u9645\u5355\u4EF7",
19861
20636
  width: 150,
19862
- render: renderTextEllipsis
20637
+ render: function render(val, record, index) {
20638
+ return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
20639
+ style: {
20640
+ width: 130
20641
+ },
20642
+ value: val,
20643
+ min: 0,
20644
+ precision: 2,
20645
+ onChange: function onChange(num) {
20646
+ updateDataHandle({
20647
+ price: num,
20648
+ amount: num && isNumberOrNumberString$1(record.qty) ? num * record.qty : null
20649
+ }, index);
20650
+ }
20651
+ }) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
20652
+ }
19863
20653
  }, {
19864
- dataIndex: 'code',
19865
- title: "\u7EBF\u4E0A\u5546\u54C1id",
19866
- align: 'center',
19867
- ellipsis: true,
20654
+ dataIndex: 'amount',
20655
+ title: "\u5B9E\u9645\u91D1\u989D",
20656
+ width: 150
20657
+ }, {
20658
+ dataIndex: 'originPrice',
20659
+ title: "\u6807\u51C6\u5355\u4EF7",
20660
+ width: 150
20661
+ }, {
20662
+ dataIndex: 'originAmount',
20663
+ title: "\u6807\u51C6\u91D1\u989D",
20664
+ width: 150
20665
+ }, {
20666
+ dataIndex: 'isGift',
20667
+ title: "\u662F\u5426\u8D60\u54C1",
20668
+ width: 150,
20669
+ render: function render(val, record, index) {
20670
+ return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
20671
+ value: val,
20672
+ onChange: function onChange(value) {
20673
+ updateHandle(value, index, 'isGift');
20674
+ },
20675
+ options: [{
20676
+ label: '是',
20677
+ value: 1
20678
+ }, {
20679
+ label: '否',
20680
+ value: 0
20681
+ }]
20682
+ }) : /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo$3(val));
20683
+ }
20684
+ }].map(function (item) {
20685
+ return _objectSpread2(_objectSpread2({}, item), {}, {
20686
+ align: 'center',
20687
+ ellipsis: true
20688
+ });
20689
+ }),
20690
+ //管易退货商品信息
20691
+ GY_RETURN_GOODS: [{
20692
+ dataIndex: 'goodName',
20693
+ title: "\u5546\u54C1\u540D\u79F0",
19868
20694
  width: 150,
19869
20695
  render: renderTextEllipsis
19870
20696
  }, {
19871
- dataIndex: 'barCode',
19872
- title: "\u5546\u54C1\u6761\u7801",
19873
- align: 'center',
19874
- ellipsis: true,
20697
+ dataIndex: 'goodShortName',
20698
+ title: "\u5546\u54C1\u7B80\u79F0",
19875
20699
  width: 150,
19876
20700
  render: renderTextEllipsis
19877
20701
  }, {
19878
- dataIndex: 'money',
19879
- title: "\u5B9E\u4ED8\u91D1\u989D",
20702
+ dataIndex: 'goodNo',
20703
+ title: "\u5546\u54C1\u7F16\u7801",
20704
+ width: 200,
20705
+ render: renderTextEllipsis
20706
+ }, {
20707
+ dataIndex: 'specName',
20708
+ title: "SKU\u540D\u79F0",
19880
20709
  align: 'center',
19881
20710
  ellipsis: true,
19882
- width: 100,
20711
+ width: 250,
19883
20712
  render: renderTextEllipsis
19884
20713
  }, {
19885
- dataIndex: 'number',
19886
- title: "".concat(text, "\u6570\u91CF"),
20714
+ dataIndex: 'specNo',
20715
+ title: "SKU\u7F16\u7801",
19887
20716
  align: 'center',
19888
20717
  ellipsis: true,
20718
+ width: 150,
20719
+ render: renderTextEllipsis
20720
+ }, {
20721
+ dataIndex: 'qty',
20722
+ title: "\u6570\u91CF",
19889
20723
  width: 100,
20724
+ validator: function validator(_rule, value) {
20725
+ var goodsName = '';
20726
+ if (((value === null || value === void 0 ? void 0 : value.gyReturnGoods) || []).some(function (goods) {
20727
+ var qty = toNum$1(goods === null || goods === void 0 ? void 0 : goods.qty);
20728
+ var res = typeof qty === 'number' ? qty < 1 : true;
20729
+ if (res) {
20730
+ goodsName = (goods === null || goods === void 0 ? void 0 : goods.goodName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodName, "]") : '';
20731
+ }
20732
+ return res;
20733
+ })) {
20734
+ return Promise.reject("".concat(goodsName, "\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
20735
+ }
20736
+ },
19890
20737
  render: function render(val, record, index) {
19891
- return record.canUpdateNumber && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
20738
+ return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
19892
20739
  style: {
19893
20740
  width: 70
19894
20741
  },
@@ -19896,29 +20743,58 @@ var getColumns$3 = function getColumns(_ref) {
19896
20743
  min: 1,
19897
20744
  precision: 0,
19898
20745
  onChange: function onChange(num) {
19899
- return updateHandle(num, index, 'number');
20746
+ updateDataHandle({
20747
+ qty: num,
20748
+ amount: num && isNumberOrNumberString$1(record.price) ? num * record.price : null,
20749
+ originAmount: num && isNumberOrNumberString$1(record.originPrice) ? num * record.originPrice : null
20750
+ }, index);
19900
20751
  }
19901
20752
  }) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
19902
20753
  }
19903
20754
  }, {
19904
- dataIndex: 'share',
19905
- title: "\u5E94\u6536\u6B3E",
19906
- align: 'center',
19907
- ellipsis: true,
19908
- width: 70,
19909
- render: renderTextEllipsis
20755
+ dataIndex: 'price',
20756
+ title: "\u5B9E\u9645\u5355\u4EF7",
20757
+ width: 150,
20758
+ render: function render(val, record, index) {
20759
+ return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
20760
+ style: {
20761
+ width: 130
20762
+ },
20763
+ value: val,
20764
+ min: 0,
20765
+ precision: 2,
20766
+ onChange: function onChange(num) {
20767
+ updateDataHandle({
20768
+ price: num,
20769
+ amount: num && isNumberOrNumberString$1(record.qty) ? num * record.qty : null
20770
+ }, index);
20771
+ }
20772
+ }) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
20773
+ }
19910
20774
  }, {
19911
- dataIndex: 'type',
19912
- title: "\u8D60\u54C1\u7C7B\u578B",
19913
- align: 'center',
19914
- ellipsis: true,
19915
- width: 100,
19916
- render: renderTextEllipsis
20775
+ dataIndex: 'amount',
20776
+ title: "\u5B9E\u9645\u91D1\u989D",
20777
+ width: 150
19917
20778
  }, {
19918
- dataIndex: 'isPackage',
19919
- title: "\u662F\u5426\u7EC4\u5408\u5546\u54C1",
19920
- align: 'center',
19921
- ellipsis: true,
20779
+ dataIndex: 'originPrice',
20780
+ title: "\u6807\u51C6\u5355\u4EF7",
20781
+ width: 150
20782
+ }, {
20783
+ dataIndex: 'originAmount',
20784
+ title: "\u6807\u51C6\u91D1\u989D",
20785
+ width: 150
20786
+ }, {
20787
+ dataIndex: 'discountFee',
20788
+ title: "\u8BA9\u5229\u91D1\u989D",
20789
+ width: 150
20790
+ }, {
20791
+ dataIndex: 'amountAfter',
20792
+ title: "\u8BA9\u5229\u540E\u91D1\u989D",
20793
+ width: 150
20794
+ }, {
20795
+ dataIndex: 'isGift',
20796
+ title: "\u662F\u5426\u8D60\u54C1",
20797
+ width: 150,
19922
20798
  render: function render(val, record, index) {
19923
20799
  return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
19924
20800
  value: val,
@@ -19927,28 +20803,29 @@ var getColumns$3 = function getColumns(_ref) {
19927
20803
  },
19928
20804
  options: [{
19929
20805
  label: '是',
19930
- value: true
20806
+ value: 1
19931
20807
  }, {
19932
20808
  label: '否',
19933
- value: false
20809
+ value: 0
19934
20810
  }]
19935
- }) : /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo$2(val));
19936
- },
19937
- width: 100
19938
- }]
20811
+ }) : /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo$3(val));
20812
+ }
20813
+ }].map(function (item) {
20814
+ return _objectSpread2(_objectSpread2({}, item), {}, {
20815
+ align: 'center',
20816
+ ellipsis: true
20817
+ });
20818
+ })
19939
20819
  };
19940
20820
  };
19941
20821
 
19942
- var isNumberOrNumberString$1 = function isNumberOrNumberString(value) {
19943
- if (typeof value === 'number') return true;
19944
- if (typeof value === 'string' && !isNaN(Number(value)) && value.trim() !== '') return true;
19945
- return false;
19946
- };
19947
- var getYesOrNo$3 = function getYesOrNo(val) {
19948
- if (kmkfUtils.isNull(val)) return null;
19949
- return val ? '是' : '否';
20822
+ var fillAttrs = function fillAttrs(item) {
20823
+ if (!item.width) item.width = 150;
20824
+ if (typeof item.ellipsis !== 'boolean') item.ellipsis = true;
20825
+ if (!item.align) item.align = 'center';
20826
+ return item;
19950
20827
  };
19951
- function toNum$1(value) {
20828
+ function toNum$2(value) {
19952
20829
  if (typeof value === 'string') {
19953
20830
  return value ? +value : void 0;
19954
20831
  }
@@ -19956,182 +20833,241 @@ function toNum$1(value) {
19956
20833
  return value;
19957
20834
  }
19958
20835
  return void 0;
19959
- }
19960
- var getColumns$4 = function getColumns(_ref) {
19961
- var _ref$text = _ref.text,
20836
+ }
20837
+ var getColumns$5 = function getColumns() {
20838
+ var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
20839
+ _ref$text = _ref.text,
19962
20840
  disabled = _ref.disabled,
19963
- updateHandle = _ref.updateHandle,
19964
- updateDataHandle = _ref.updateDataHandle;
20841
+ updateHandle = _ref.updateHandle;
19965
20842
  return {
19966
- //管易商品信息
19967
- GY_GOODS: [{
19968
- dataIndex: 'goodName',
19969
- title: "\u5546\u54C1\u540D\u79F0",
20843
+ JST_GOODS: [{
20844
+ dataIndex: 'name',
20845
+ title: '商品名称',
19970
20846
  width: 150,
20847
+ ellipsis: true,
20848
+ align: 'center',
19971
20849
  render: renderTextEllipsis
19972
20850
  }, {
19973
- dataIndex: 'goodShortName',
19974
- title: "\u5546\u54C1\u7B80\u79F0",
20851
+ dataIndex: 'skuId',
20852
+ title: '商品编码',
19975
20853
  width: 150,
20854
+ ellipsis: true,
20855
+ align: 'center',
19976
20856
  render: renderTextEllipsis
19977
20857
  }, {
19978
- dataIndex: 'goodNo',
19979
- title: "\u5546\u54C1\u7F16\u7801",
19980
- width: 200,
20858
+ dataIndex: 'iId',
20859
+ title: '款式编码',
20860
+ width: 150,
20861
+ ellipsis: true,
20862
+ align: 'center',
19981
20863
  render: renderTextEllipsis
19982
20864
  }, {
19983
- dataIndex: 'specName',
19984
- title: "SKU\u540D\u79F0",
20865
+ dataIndex: 'pic',
20866
+ title: '商品图片',
20867
+ ellipsis: true,
19985
20868
  align: 'center',
20869
+ width: 100,
20870
+ render: function render(val) {
20871
+ return /*#__PURE__*/React__default['default'].createElement(ApaasImage, {
20872
+ width: 30,
20873
+ src: val
20874
+ });
20875
+ }
20876
+ }, {
20877
+ dataIndex: 'propertiesValue',
20878
+ title: '规格值',
20879
+ width: 150,
19986
20880
  ellipsis: true,
19987
- width: 250,
20881
+ align: 'center',
19988
20882
  render: renderTextEllipsis
19989
20883
  }, {
19990
- dataIndex: 'specNo',
19991
- title: "SKU\u7F16\u7801",
19992
- align: 'center',
19993
- ellipsis: true,
20884
+ dataIndex: 'saleBasePrice',
20885
+ title: '原价',
19994
20886
  width: 150,
19995
- render: renderTextEllipsis
20887
+ ellipsis: true,
20888
+ align: 'center',
20889
+ render: function render(price) {
20890
+ return price || price === 0 ? Number(price).toFixed(2) : '';
20891
+ }
19996
20892
  }, {
19997
- dataIndex: 'qty',
19998
- title: "\u6570\u91CF",
19999
- width: 100,
20893
+ dataIndex: 'salePrice',
20894
+ title: '单价',
20895
+ ellipsis: true,
20896
+ align: 'center',
20897
+ width: 120,
20000
20898
  render: function render(val, record, index) {
20001
20899
  return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
20002
20900
  style: {
20003
20901
  width: 70
20004
20902
  },
20005
20903
  value: val,
20006
- min: 1,
20007
- precision: 0,
20904
+ min: 0,
20905
+ precision: 2,
20008
20906
  onChange: function onChange(num) {
20009
- updateDataHandle({
20010
- qty: num,
20011
- amount: num && isNumberOrNumberString$1(record.price) ? num * record.price : null,
20012
- originAmount: num && isNumberOrNumberString$1(record.originPrice) ? num * record.originPrice : null
20013
- }, index);
20907
+ return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'salePrice');
20014
20908
  }
20015
- }) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
20909
+ }) : /*#__PURE__*/React__default['default'].createElement("span", null, val || val === 0 ? Number(val).toFixed(2) : '');
20016
20910
  }
20017
20911
  }, {
20018
- dataIndex: 'price',
20019
- title: "\u5B9E\u9645\u5355\u4EF7",
20020
- width: 150,
20912
+ dataIndex: 'qty',
20913
+ title: '数量',
20914
+ ellipsis: true,
20915
+ align: 'center',
20916
+ width: 100,
20021
20917
  render: function render(val, record, index) {
20022
20918
  return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
20023
20919
  style: {
20024
- width: 130
20920
+ width: 70
20025
20921
  },
20026
20922
  value: val,
20027
- min: 0,
20028
- precision: 2,
20923
+ min: 1,
20924
+ precision: 0,
20029
20925
  onChange: function onChange(num) {
20030
- updateDataHandle({
20031
- price: num,
20032
- amount: num && isNumberOrNumberString$1(record.qty) ? num * record.qty : null
20033
- }, index);
20926
+ return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'qty');
20034
20927
  }
20035
20928
  }) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
20036
20929
  }
20037
20930
  }, {
20038
- dataIndex: 'amount',
20039
- title: "\u5B9E\u9645\u91D1\u989D",
20040
- width: 150
20041
- }, {
20042
- dataIndex: 'originPrice',
20043
- title: "\u6807\u51C6\u5355\u4EF7",
20044
- width: 150
20045
- }, {
20046
- dataIndex: 'originAmount',
20047
- title: "\u6807\u51C6\u91D1\u989D",
20048
- width: 150
20049
- }, {
20050
- dataIndex: 'discountFee',
20051
- title: "\u8BA9\u5229\u91D1\u989D",
20052
- width: 150
20053
- }, {
20054
- dataIndex: 'amountAfter',
20055
- title: "\u8BA9\u5229\u540E\u91D1\u989D",
20056
- width: 150
20057
- }, {
20058
- dataIndex: 'cancel',
20059
- title: "\u662F\u5426\u53D6\u6D88",
20931
+ dataIndex: 'saleAmount',
20932
+ title: '总金额',
20060
20933
  width: 150,
20061
- render: function render(val) {
20062
- return /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo$3(val));
20934
+ ellipsis: true,
20935
+ align: 'center',
20936
+ render: function render(val, record, index) {
20937
+ return ((record.qty || 0) * (+record.salePrice || 0)).toFixed(2);
20063
20938
  }
20064
20939
  }, {
20065
- dataIndex: 'isGift',
20066
- title: "\u662F\u5426\u8D60\u54C1",
20940
+ dataIndex: 'batchId',
20941
+ title: '批次号',
20067
20942
  width: 150,
20943
+ ellipsis: true,
20944
+ align: 'center',
20945
+ render: renderTextEllipsis
20946
+ }, {
20947
+ dataIndex: 'isGift',
20948
+ title: '是否赠品',
20949
+ ellipsis: true,
20950
+ align: 'center',
20951
+ width: 100,
20068
20952
  render: function render(val, record, index) {
20069
20953
  return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
20070
20954
  value: val,
20071
20955
  onChange: function onChange(value) {
20072
- updateHandle(value, index, 'isGift');
20956
+ updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(value, index, 'isGift');
20073
20957
  },
20074
20958
  options: [{
20075
20959
  label: '是',
20076
- value: 1
20960
+ value: true
20077
20961
  }, {
20078
20962
  label: '否',
20079
- value: 0
20963
+ value: false
20080
20964
  }]
20081
- }) : /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo$3(val));
20965
+ }) : /*#__PURE__*/React__default['default'].createElement("span", null, typeof val !== 'boolean' ? '' : val ? '是' : '否');
20082
20966
  }
20083
20967
  }, {
20084
- dataIndex: 'skuNote',
20085
- title: "\u5546\u54C1\u5907\u6CE8",
20086
- width: 150,
20968
+ dataIndex: 'outerOiId',
20969
+ title: '子订单号',
20970
+ width: 240,
20971
+ ellipsis: true,
20972
+ align: 'center',
20087
20973
  render: renderTextEllipsis
20088
- }].map(function (item) {
20089
- return _objectSpread2(_objectSpread2({}, item), {}, {
20090
- align: 'center',
20091
- ellipsis: true
20092
- });
20093
- }),
20094
- //管易补发商品信息
20095
- GY_REISSUE_GOODS: [{
20096
- dataIndex: 'goodName',
20097
- title: "\u5546\u54C1\u540D\u79F0",
20974
+ }],
20975
+ JST_REISSUE_GOODS: [{
20976
+ dataIndex: 'name',
20977
+ title: '商品名称',
20098
20978
  width: 150,
20979
+ ellipsis: true,
20980
+ align: 'center',
20099
20981
  render: renderTextEllipsis
20100
20982
  }, {
20101
- dataIndex: 'goodShortName',
20102
- title: "\u5546\u54C1\u7B80\u79F0",
20983
+ dataIndex: 'skuId',
20984
+ title: '商品编码',
20103
20985
  width: 150,
20986
+ ellipsis: true,
20987
+ align: 'center',
20104
20988
  render: renderTextEllipsis
20105
20989
  }, {
20106
- dataIndex: 'goodNo',
20107
- title: "\u5546\u54C1\u7F16\u7801",
20108
- width: 200,
20990
+ dataIndex: 'iId',
20991
+ title: '款式编码',
20992
+ width: 150,
20993
+ ellipsis: true,
20994
+ align: 'center',
20109
20995
  render: renderTextEllipsis
20110
20996
  }, {
20111
- dataIndex: 'specName',
20112
- title: "SKU\u540D\u79F0",
20997
+ dataIndex: 'pic',
20998
+ title: '商品图片',
20999
+ ellipsis: true,
20113
21000
  align: 'center',
21001
+ width: 100,
21002
+ render: function render(val) {
21003
+ return /*#__PURE__*/React__default['default'].createElement(ApaasImage, {
21004
+ width: 30,
21005
+ src: val
21006
+ });
21007
+ }
21008
+ }, {
21009
+ dataIndex: 'propertiesValue',
21010
+ title: '规格值',
21011
+ width: 150,
20114
21012
  ellipsis: true,
20115
- width: 250,
21013
+ align: 'center',
20116
21014
  render: renderTextEllipsis
20117
21015
  }, {
20118
- dataIndex: 'specNo',
20119
- title: "SKU\u7F16\u7801",
21016
+ dataIndex: 'saleBasePrice',
21017
+ title: '原价',
21018
+ width: 150,
21019
+ ellipsis: true,
20120
21020
  align: 'center',
21021
+ render: function render(price) {
21022
+ return price || price === 0 ? Number(price).toFixed(2) : '';
21023
+ }
21024
+ }, {
21025
+ dataIndex: 'salePrice',
21026
+ title: '单价',
20121
21027
  ellipsis: true,
20122
- width: 150,
20123
- render: renderTextEllipsis
21028
+ align: 'center',
21029
+ width: 120,
21030
+ // validator: (_rule: any, value: any) => {
21031
+ // let goodsName = '';
21032
+ // if (
21033
+ // (value?.jstReissueGoods || []).some((goods: any) => {
21034
+ // const v = toNum(goods?.salePrice);
21035
+ // const res = typeof v === 'number' ? v < 0 : true;
21036
+ // if (res) {
21037
+ // goodsName = goods?.name ? `[${goods?.name}]` : '';
21038
+ // }
21039
+ // return res;
21040
+ // })
21041
+ // ) {
21042
+ // return Promise.reject(`${goodsName}单价为大于等于0的数`);
21043
+ // }
21044
+ // },
21045
+ render: function render(val, record, index) {
21046
+ return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
21047
+ style: {
21048
+ width: 70
21049
+ },
21050
+ value: val,
21051
+ min: 0,
21052
+ precision: 2,
21053
+ onChange: function onChange(num) {
21054
+ return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'salePrice');
21055
+ }
21056
+ }) : /*#__PURE__*/React__default['default'].createElement("span", null, val || val === 0 ? Number(val).toFixed(2) : '');
21057
+ }
20124
21058
  }, {
20125
21059
  dataIndex: 'qty',
20126
- title: "\u6570\u91CF",
21060
+ title: '数量',
21061
+ ellipsis: true,
21062
+ align: 'center',
20127
21063
  width: 100,
20128
21064
  validator: function validator(_rule, value) {
20129
21065
  var goodsName = '';
20130
- if (((value === null || value === void 0 ? void 0 : value.gyReissueGoods) || []).some(function (goods) {
20131
- var qty = toNum$1(goods === null || goods === void 0 ? void 0 : goods.qty);
21066
+ if (((value === null || value === void 0 ? void 0 : value.jstReissueGoods) || []).some(function (goods) {
21067
+ var qty = toNum$2(goods === null || goods === void 0 ? void 0 : goods.qty);
20132
21068
  var res = typeof qty === 'number' ? qty < 1 : true;
20133
21069
  if (res) {
20134
- goodsName = (goods === null || goods === void 0 ? void 0 : goods.goodName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodName, "]") : '';
21070
+ goodsName = (goods === null || goods === void 0 ? void 0 : goods.name) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.name, "]") : '';
20135
21071
  }
20136
21072
  return res;
20137
21073
  })) {
@@ -20139,7 +21075,7 @@ var getColumns$4 = function getColumns(_ref) {
20139
21075
  }
20140
21076
  },
20141
21077
  render: function render(val, record, index) {
20142
- return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
21078
+ return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
20143
21079
  style: {
20144
21080
  width: 70
20145
21081
  },
@@ -20147,116 +21083,96 @@ var getColumns$4 = function getColumns(_ref) {
20147
21083
  min: 1,
20148
21084
  precision: 0,
20149
21085
  onChange: function onChange(num) {
20150
- updateDataHandle({
20151
- qty: num,
20152
- amount: num && isNumberOrNumberString$1(record.price) ? num * record.price : null,
20153
- originAmount: num && isNumberOrNumberString$1(record.originPrice) ? num * record.originPrice : null
20154
- }, index);
20155
- }
20156
- }) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
20157
- }
20158
- }, {
20159
- dataIndex: 'price',
20160
- title: "\u5B9E\u9645\u5355\u4EF7",
20161
- width: 150,
20162
- render: function render(val, record, index) {
20163
- return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
20164
- style: {
20165
- width: 130
20166
- },
20167
- value: val,
20168
- min: 0,
20169
- precision: 2,
20170
- onChange: function onChange(num) {
20171
- updateDataHandle({
20172
- price: num,
20173
- amount: num && isNumberOrNumberString$1(record.qty) ? num * record.qty : null
20174
- }, index);
21086
+ return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'qty');
20175
21087
  }
20176
21088
  }) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
20177
21089
  }
20178
- }, {
20179
- dataIndex: 'amount',
20180
- title: "\u5B9E\u9645\u91D1\u989D",
20181
- width: 150
20182
- }, {
20183
- dataIndex: 'originPrice',
20184
- title: "\u6807\u51C6\u5355\u4EF7",
20185
- width: 150
20186
- }, {
20187
- dataIndex: 'originAmount',
20188
- title: "\u6807\u51C6\u91D1\u989D",
20189
- width: 150
20190
21090
  }, {
20191
21091
  dataIndex: 'isGift',
20192
- title: "\u662F\u5426\u8D60\u54C1",
20193
- width: 150,
21092
+ title: '是否赠品',
21093
+ ellipsis: true,
21094
+ align: 'center',
21095
+ width: 100,
20194
21096
  render: function render(val, record, index) {
20195
21097
  return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
20196
21098
  value: val,
20197
21099
  onChange: function onChange(value) {
20198
- updateHandle(value, index, 'isGift');
21100
+ updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(value, index, 'isGift');
20199
21101
  },
20200
21102
  options: [{
20201
21103
  label: '是',
20202
- value: 1
21104
+ value: true
20203
21105
  }, {
20204
21106
  label: '否',
20205
- value: 0
21107
+ value: false
20206
21108
  }]
20207
- }) : /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo$3(val));
21109
+ }) : /*#__PURE__*/React__default['default'].createElement("span", null, typeof val !== 'boolean' ? '' : val ? '是' : '否');
20208
21110
  }
20209
- }].map(function (item) {
20210
- return _objectSpread2(_objectSpread2({}, item), {}, {
20211
- align: 'center',
20212
- ellipsis: true
20213
- });
20214
- }),
20215
- //管易退货商品信息
20216
- GY_RETURN_GOODS: [{
20217
- dataIndex: 'goodName',
20218
- title: "\u5546\u54C1\u540D\u79F0",
20219
- width: 150,
20220
- render: renderTextEllipsis
20221
21111
  }, {
20222
- dataIndex: 'goodShortName',
20223
- title: "\u5546\u54C1\u7B80\u79F0",
21112
+ dataIndex: 'remark',
21113
+ title: '备注',
20224
21114
  width: 150,
21115
+ ellipsis: true,
21116
+ align: 'center',
21117
+ render: function render(val, record, index) {
21118
+ return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Input, {
21119
+ style: {
21120
+ width: 70
21121
+ },
21122
+ value: val,
21123
+ onChange: function onChange(e) {
21124
+ return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(e.target.value, index, 'remark');
21125
+ }
21126
+ }) : renderTextEllipsis(val);
21127
+ }
21128
+ }],
21129
+ JST_RETURN_GOODS: [{
21130
+ dataIndex: 'name',
21131
+ title: '商品名称',
20225
21132
  render: renderTextEllipsis
20226
21133
  }, {
20227
- dataIndex: 'goodNo',
20228
- title: "\u5546\u54C1\u7F16\u7801",
20229
- width: 200,
21134
+ dataIndex: 'skuId',
21135
+ title: '商品编码',
20230
21136
  render: renderTextEllipsis
20231
21137
  }, {
20232
- dataIndex: 'specName',
20233
- title: "SKU\u540D\u79F0",
20234
- align: 'center',
20235
- ellipsis: true,
20236
- width: 250,
21138
+ dataIndex: 'iId',
21139
+ title: '款式编码',
20237
21140
  render: renderTextEllipsis
20238
21141
  }, {
20239
- dataIndex: 'specNo',
20240
- title: "SKU\u7F16\u7801",
20241
- align: 'center',
20242
- ellipsis: true,
20243
- width: 150,
21142
+ dataIndex: 'pic',
21143
+ title: '商品图片',
21144
+ width: 100,
21145
+ render: function render(val) {
21146
+ return /*#__PURE__*/React__default['default'].createElement(ApaasImage, {
21147
+ width: 30,
21148
+ src: val
21149
+ });
21150
+ }
21151
+ }, {
21152
+ dataIndex: 'propertiesValue',
21153
+ title: '规格值',
20244
21154
  render: renderTextEllipsis
20245
21155
  }, {
20246
- dataIndex: 'qty',
20247
- title: "\u6570\u91CF",
20248
- width: 100,
21156
+ dataIndex: 'saleBasePrice',
21157
+ title: '原价',
21158
+ render: function render(price) {
21159
+ return price || price === 0 ? Number(price).toFixed(2) : '';
21160
+ }
21161
+ }, {
21162
+ dataIndex: 'salePrice',
21163
+ title: '单价',
21164
+ width: 120,
20249
21165
  validator: function validator(_rule, value) {
20250
21166
  var goodsName = '';
20251
- if (((value === null || value === void 0 ? void 0 : value.gyReturnGoods) || []).some(function (goods) {
20252
- var qty = toNum$1(goods === null || goods === void 0 ? void 0 : goods.qty);
20253
- var res = typeof qty === 'number' ? qty < 1 : true;
21167
+ if (((value === null || value === void 0 ? void 0 : value.jstReturnGoods) || []).some(function (goods) {
21168
+ var v = toNum$2(goods === null || goods === void 0 ? void 0 : goods.salePrice);
21169
+ var res = typeof v === 'number' ? v < 0 : true;
20254
21170
  if (res) {
20255
- goodsName = (goods === null || goods === void 0 ? void 0 : goods.goodName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodName, "]") : '';
21171
+ goodsName = (goods === null || goods === void 0 ? void 0 : goods.name) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.name, "]") : '';
20256
21172
  }
20257
21173
  return res;
20258
21174
  })) {
20259
- return Promise.reject("".concat(goodsName, "\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
21175
+ return Promise.reject("".concat(goodsName, "\u5355\u4EF7\u4E3A\u5927\u4E8E\u7B49\u4E8E0\u7684\u6570"));
20260
21176
  }
20261
21177
  },
20262
21178
  render: function render(val, record, index) {
@@ -20265,132 +21181,107 @@ var getColumns$4 = function getColumns(_ref) {
20265
21181
  width: 70
20266
21182
  },
20267
21183
  value: val,
20268
- min: 1,
20269
- precision: 0,
21184
+ min: 0,
21185
+ precision: 2,
20270
21186
  onChange: function onChange(num) {
20271
- updateDataHandle({
20272
- qty: num,
20273
- amount: num && isNumberOrNumberString$1(record.price) ? num * record.price : null,
20274
- originAmount: num && isNumberOrNumberString$1(record.originPrice) ? num * record.originPrice : null
20275
- }, index);
21187
+ return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'salePrice');
20276
21188
  }
20277
- }) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
21189
+ }) : /*#__PURE__*/React__default['default'].createElement("span", null, val || val === 0 ? Number(val).toFixed(2) : '');
20278
21190
  }
20279
21191
  }, {
20280
- dataIndex: 'price',
20281
- title: "\u5B9E\u9645\u5355\u4EF7",
20282
- width: 150,
21192
+ dataIndex: 'qty',
21193
+ title: '数量',
21194
+ width: 100,
21195
+ validator: function validator(_rule, value) {
21196
+ var goodsName = '';
21197
+ if (((value === null || value === void 0 ? void 0 : value.jstReturnGoods) || []).some(function (goods) {
21198
+ var qty = toNum$2(goods === null || goods === void 0 ? void 0 : goods.qty);
21199
+ var res = typeof qty === 'number' ? qty < 1 : true;
21200
+ if (res) {
21201
+ goodsName = (goods === null || goods === void 0 ? void 0 : goods.name) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.name, "]") : '';
21202
+ }
21203
+ return res;
21204
+ })) {
21205
+ return Promise.reject("".concat(goodsName, "\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
21206
+ }
21207
+ },
20283
21208
  render: function render(val, record, index) {
20284
21209
  return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
20285
21210
  style: {
20286
- width: 130
21211
+ width: 70
20287
21212
  },
20288
21213
  value: val,
20289
- min: 0,
20290
- precision: 2,
21214
+ min: 1,
21215
+ precision: 0,
20291
21216
  onChange: function onChange(num) {
20292
- updateDataHandle({
20293
- price: num,
20294
- amount: num && isNumberOrNumberString$1(record.qty) ? num * record.qty : null
20295
- }, index);
21217
+ return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'qty');
20296
21218
  }
20297
21219
  }) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
20298
21220
  }
20299
21221
  }, {
20300
- dataIndex: 'amount',
20301
- title: "\u5B9E\u9645\u91D1\u989D",
20302
- width: 150
20303
- }, {
20304
- dataIndex: 'originPrice',
20305
- title: "\u6807\u51C6\u5355\u4EF7",
20306
- width: 150
20307
- }, {
20308
- dataIndex: 'originAmount',
20309
- title: "\u6807\u51C6\u91D1\u989D",
20310
- width: 150
20311
- }, {
20312
- dataIndex: 'discountFee',
20313
- title: "\u8BA9\u5229\u91D1\u989D",
20314
- width: 150
21222
+ dataIndex: 'saleAmount',
21223
+ title: '总金额',
21224
+ render: function render(val, record) {
21225
+ return ((record.qty || 0) * (+record.salePrice || 0)).toFixed(2);
21226
+ }
20315
21227
  }, {
20316
- dataIndex: 'amountAfter',
20317
- title: "\u8BA9\u5229\u540E\u91D1\u989D",
20318
- width: 150
21228
+ dataIndex: 'batchId',
21229
+ title: '批次号',
21230
+ render: renderTextEllipsis
20319
21231
  }, {
20320
21232
  dataIndex: 'isGift',
20321
- title: "\u662F\u5426\u8D60\u54C1",
20322
- width: 150,
21233
+ title: '是否赠品',
21234
+ width: 100,
20323
21235
  render: function render(val, record, index) {
20324
- return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
21236
+ return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
20325
21237
  value: val,
20326
21238
  onChange: function onChange(value) {
20327
- updateHandle(value, index, 'isGift');
21239
+ updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(value, index, 'isGift');
20328
21240
  },
20329
21241
  options: [{
20330
21242
  label: '是',
20331
- value: 1
21243
+ value: true
20332
21244
  }, {
20333
21245
  label: '否',
20334
- value: 0
20335
- }]
20336
- }) : /*#__PURE__*/React__default['default'].createElement("span", null, getYesOrNo$3(val));
20337
- }
20338
- }].map(function (item) {
20339
- return _objectSpread2(_objectSpread2({}, item), {}, {
20340
- align: 'center',
20341
- ellipsis: true
20342
- });
20343
- })
20344
- };
20345
- };
20346
-
20347
- var fillAttrs = function fillAttrs(item) {
20348
- if (!item.width) item.width = 150;
20349
- if (typeof item.ellipsis !== 'boolean') item.ellipsis = true;
20350
- if (!item.align) item.align = 'center';
20351
- return item;
20352
- };
20353
- function toNum$2(value) {
20354
- if (typeof value === 'string') {
20355
- return value ? +value : void 0;
20356
- }
20357
- if (typeof value === 'number') {
20358
- return value;
20359
- }
20360
- return void 0;
20361
- }
20362
- var getColumns$5 = function getColumns() {
20363
- var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
20364
- _ref$text = _ref.text,
20365
- disabled = _ref.disabled,
20366
- updateHandle = _ref.updateHandle;
20367
- return {
20368
- JST_GOODS: [{
21246
+ value: false
21247
+ }]
21248
+ }) : /*#__PURE__*/React__default['default'].createElement("span", null, typeof val !== 'boolean' ? '' : val ? '是' : '否');
21249
+ }
21250
+ }, {
21251
+ dataIndex: 'remark',
21252
+ title: '备注',
21253
+ render: function render(val, record, index) {
21254
+ return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Input, {
21255
+ style: {
21256
+ width: 70
21257
+ },
21258
+ value: val,
21259
+ onChange: function onChange(e) {
21260
+ return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(e.target.value, index, 'remark');
21261
+ }
21262
+ }) : renderTextEllipsis(val);
21263
+ }
21264
+ }, {
21265
+ dataIndex: 'outerOiId',
21266
+ title: '子订单号',
21267
+ width: 240,
21268
+ render: renderTextEllipsis
21269
+ }].map(fillAttrs),
21270
+ JST_EXCHANGE_GOODS: [{
20369
21271
  dataIndex: 'name',
20370
21272
  title: '商品名称',
20371
- width: 150,
20372
- ellipsis: true,
20373
- align: 'center',
20374
21273
  render: renderTextEllipsis
20375
21274
  }, {
20376
21275
  dataIndex: 'skuId',
20377
21276
  title: '商品编码',
20378
- width: 150,
20379
- ellipsis: true,
20380
- align: 'center',
20381
21277
  render: renderTextEllipsis
20382
21278
  }, {
20383
21279
  dataIndex: 'iId',
20384
21280
  title: '款式编码',
20385
- width: 150,
20386
- ellipsis: true,
20387
- align: 'center',
20388
21281
  render: renderTextEllipsis
20389
21282
  }, {
20390
21283
  dataIndex: 'pic',
20391
21284
  title: '商品图片',
20392
- ellipsis: true,
20393
- align: 'center',
20394
21285
  width: 100,
20395
21286
  render: function render(val) {
20396
21287
  return /*#__PURE__*/React__default['default'].createElement(ApaasImage, {
@@ -20401,27 +21292,19 @@ var getColumns$5 = function getColumns() {
20401
21292
  }, {
20402
21293
  dataIndex: 'propertiesValue',
20403
21294
  title: '规格值',
20404
- width: 150,
20405
- ellipsis: true,
20406
- align: 'center',
20407
21295
  render: renderTextEllipsis
20408
21296
  }, {
20409
21297
  dataIndex: 'saleBasePrice',
20410
21298
  title: '原价',
20411
- width: 150,
20412
- ellipsis: true,
20413
- align: 'center',
20414
21299
  render: function render(price) {
20415
21300
  return price || price === 0 ? Number(price).toFixed(2) : '';
20416
21301
  }
20417
21302
  }, {
20418
21303
  dataIndex: 'salePrice',
20419
21304
  title: '单价',
20420
- ellipsis: true,
20421
- align: 'center',
20422
21305
  width: 120,
20423
21306
  render: function render(val, record, index) {
20424
- return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
21307
+ return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
20425
21308
  style: {
20426
21309
  width: 70
20427
21310
  },
@@ -20436,11 +21319,9 @@ var getColumns$5 = function getColumns() {
20436
21319
  }, {
20437
21320
  dataIndex: 'qty',
20438
21321
  title: '数量',
20439
- ellipsis: true,
20440
- align: 'center',
20441
21322
  width: 100,
20442
21323
  render: function render(val, record, index) {
20443
- return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
21324
+ return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
20444
21325
  style: {
20445
21326
  width: 70
20446
21327
  },
@@ -20455,27 +21336,15 @@ var getColumns$5 = function getColumns() {
20455
21336
  }, {
20456
21337
  dataIndex: 'saleAmount',
20457
21338
  title: '总金额',
20458
- width: 150,
20459
- ellipsis: true,
20460
- align: 'center',
20461
- render: function render(val, record, index) {
21339
+ render: function render(val, record) {
20462
21340
  return ((record.qty || 0) * (+record.salePrice || 0)).toFixed(2);
20463
21341
  }
20464
- }, {
20465
- dataIndex: 'batchId',
20466
- title: '批次号',
20467
- width: 150,
20468
- ellipsis: true,
20469
- align: 'center',
20470
- render: renderTextEllipsis
20471
21342
  }, {
20472
21343
  dataIndex: 'isGift',
20473
21344
  title: '是否赠品',
20474
- ellipsis: true,
20475
- align: 'center',
20476
21345
  width: 100,
20477
21346
  render: function render(val, record, index) {
20478
- return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
21347
+ return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
20479
21348
  value: val,
20480
21349
  onChange: function onChange(value) {
20481
21350
  updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(value, index, 'isGift');
@@ -20490,248 +21359,260 @@ var getColumns$5 = function getColumns() {
20490
21359
  }) : /*#__PURE__*/React__default['default'].createElement("span", null, typeof val !== 'boolean' ? '' : val ? '是' : '否');
20491
21360
  }
20492
21361
  }, {
20493
- dataIndex: 'outerOiId',
20494
- title: '子订单号',
20495
- width: 240,
21362
+ dataIndex: 'remark',
21363
+ title: '备注',
21364
+ render: function render(val, record, index) {
21365
+ return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Input, {
21366
+ style: {
21367
+ width: 70
21368
+ },
21369
+ value: val,
21370
+ onChange: function onChange(e) {
21371
+ return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(e.target.value, index, 'remark');
21372
+ }
21373
+ }) : renderTextEllipsis(val);
21374
+ }
21375
+ }].map(fillAttrs),
21376
+ // jst售后商品信息
21377
+ JST_AFTERSALE_GOODS: [{
21378
+ dataIndex: 'asId',
21379
+ title: "\u805A\u6C34\u6F6D\u552E\u540E\u5355\u53F7",
21380
+ width: 200,
21381
+ align: 'center',
20496
21382
  ellipsis: true,
21383
+ render: renderTextEllipsis
21384
+ }, {
21385
+ dataIndex: 'asiId',
21386
+ title: "\u552E\u540E\u5B50\u5355\u53F7",
21387
+ width: 200,
20497
21388
  align: 'center',
21389
+ ellipsis: true,
20498
21390
  render: renderTextEllipsis
20499
- }],
20500
- JST_REISSUE_GOODS: [{
21391
+ }, {
21392
+ dataIndex: 'outerOiId',
21393
+ title: "\u5B50\u8BA2\u5355\u53F7",
21394
+ width: 200,
21395
+ align: 'center',
21396
+ ellipsis: true,
21397
+ render: renderTextEllipsis
21398
+ }, {
21399
+ dataIndex: 'pic',
21400
+ title: "\u56FE\u7247",
21401
+ width: 100,
21402
+ align: 'center',
21403
+ render: function render(val) {
21404
+ return /*#__PURE__*/React__default['default'].createElement(ApaasImage, {
21405
+ width: 30,
21406
+ src: val
21407
+ });
21408
+ },
21409
+ headerComponentType: 'pic'
21410
+ }, {
20501
21411
  dataIndex: 'name',
20502
- title: '商品名称',
21412
+ title: "\u5546\u54C1\u540D\u79F0",
21413
+ width: 250,
21414
+ align: 'center',
21415
+ ellipsis: true,
21416
+ render: renderTextEllipsis
21417
+ }, {
21418
+ dataIndex: 'skuId',
21419
+ title: "\u5546\u54C1\u7F16\u7801",
21420
+ width: 200,
21421
+ align: 'center',
21422
+ ellipsis: true,
21423
+ render: renderTextEllipsis
21424
+ }, {
21425
+ dataIndex: 'propertiesValue',
21426
+ title: "\u89C4\u683C\u5C5E\u6027\u503C",
21427
+ width: 200,
21428
+ align: 'center',
21429
+ ellipsis: true,
21430
+ render: renderTextEllipsis
21431
+ }, {
21432
+ dataIndex: 'qty',
21433
+ title: "\u7533\u8BF7\u6570\u91CF",
21434
+ width: 150,
21435
+ align: 'center',
21436
+ ellipsis: true,
21437
+ render: renderTextEllipsis
21438
+ }, {
21439
+ dataIndex: 'rQty',
21440
+ title: "\u5B9E\u6536\u9000\u8D27\u6570\u91CF",
20503
21441
  width: 150,
21442
+ align: 'center',
20504
21443
  ellipsis: true,
21444
+ render: renderTextEllipsis
21445
+ }, {
21446
+ dataIndex: 'defectiveQty',
21447
+ title: "\u6B21\u54C1\u6570\u91CF",
21448
+ width: 150,
20505
21449
  align: 'center',
21450
+ ellipsis: true,
20506
21451
  render: renderTextEllipsis
20507
21452
  }, {
20508
- dataIndex: 'skuId',
20509
- title: '商品编码',
21453
+ dataIndex: 'amount',
21454
+ title: "\u7533\u8BF7\u91D1\u989D",
21455
+ width: 150,
21456
+ align: 'center',
21457
+ ellipsis: true,
21458
+ render: renderTextEllipsis
21459
+ }, {
21460
+ dataIndex: 'shopAmount',
21461
+ title: "\u7EBF\u4E0A\u660E\u7EC6\u91D1\u989D",
21462
+ width: 150,
21463
+ align: 'center',
21464
+ ellipsis: true,
21465
+ render: renderTextEllipsis
21466
+ }, {
21467
+ dataIndex: 'price',
21468
+ title: "\u5355\u4EF7",
21469
+ width: 150,
21470
+ align: 'center',
21471
+ ellipsis: true,
21472
+ render: renderTextEllipsis
21473
+ }, {
21474
+ dataIndex: 'combineSkuId',
21475
+ title: "\u7EC4\u5408\u5546\u54C1\u7F16\u7801",
21476
+ width: 250,
21477
+ align: 'center',
21478
+ ellipsis: true,
21479
+ render: renderTextEllipsis
21480
+ }, {
21481
+ dataIndex: 'shopSkuId',
21482
+ title: "\u5E97\u94FA\u5546\u54C1\u7F16\u7801",
21483
+ width: 200,
21484
+ align: 'center',
21485
+ ellipsis: true,
21486
+ render: renderTextEllipsis
21487
+ }, {
21488
+ dataIndex: 'iId',
21489
+ title: "\u6B3E\u5F0F\u7F16\u7801",
21490
+ width: 200,
21491
+ align: 'center',
21492
+ ellipsis: true,
21493
+ render: renderTextEllipsis
21494
+ }, {
21495
+ dataIndex: 'type',
21496
+ title: "\u552E\u540E\u7C7B\u578B",
21497
+ width: 150,
21498
+ align: 'center',
21499
+ ellipsis: true,
21500
+ render: renderTextEllipsis
21501
+ }, {
21502
+ dataIndex: 'skuType',
21503
+ title: "\u5546\u54C1\u7C7B\u578B",
20510
21504
  width: 150,
21505
+ align: 'center',
21506
+ ellipsis: true,
21507
+ render: renderTextEllipsis
21508
+ }, {
21509
+ dataIndex: 'isGift',
21510
+ title: '是否赠品',
21511
+ width: 100,
21512
+ render: function render(val) {
21513
+ return /*#__PURE__*/React__default['default'].createElement("span", null, typeof val !== 'boolean' ? '' : val ? '是' : '否');
21514
+ },
21515
+ headerMapping: {
21516
+ transformValue: function transformValue(val) {
21517
+ return typeof val !== 'boolean' ? '' : val ? '是' : '否';
21518
+ },
21519
+ renderExport: function renderExport(val) {
21520
+ return typeof val !== 'boolean' ? '' : val ? '是' : '否';
21521
+ }
21522
+ }
21523
+ }, {
21524
+ dataIndex: 'receiveDate',
21525
+ title: "\u5165\u4ED3\u65F6\u95F4",
21526
+ width: 200,
21527
+ align: 'center',
20511
21528
  ellipsis: true,
21529
+ render: renderTextEllipsis
21530
+ }, {
21531
+ dataIndex: 'remark',
21532
+ title: "\u660E\u7EC6\u5907\u6CE8",
21533
+ width: 200,
20512
21534
  align: 'center',
21535
+ ellipsis: true,
21536
+ render: renderTextEllipsis
21537
+ }]
21538
+ };
21539
+ };
21540
+
21541
+ function toNum$3(value) {
21542
+ if (typeof value === 'string') {
21543
+ return value ? +value : void 0;
21544
+ }
21545
+ if (typeof value === 'number') {
21546
+ return value;
21547
+ }
21548
+ return void 0;
21549
+ }
21550
+ var getColumns$6 = function getColumns(_ref) {
21551
+ var _ref$text = _ref.text,
21552
+ disabled = _ref.disabled,
21553
+ updateHandle = _ref.updateHandle;
21554
+ return {
21555
+ KM_GOODS: [{
21556
+ dataIndex: 'skuPropertiesName',
21557
+ title: "\u89C4\u683C\u540D\u79F0",
21558
+ width: 250,
20513
21559
  render: renderTextEllipsis
20514
21560
  }, {
20515
- dataIndex: 'iId',
20516
- title: '款式编码',
21561
+ dataIndex: 'sysTitle',
21562
+ title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
20517
21563
  width: 150,
20518
- ellipsis: true,
20519
- align: 'center',
20520
21564
  render: renderTextEllipsis
20521
21565
  }, {
20522
- dataIndex: 'pic',
20523
- title: '商品图片',
20524
- ellipsis: true,
20525
- align: 'center',
20526
- width: 100,
20527
- render: function render(val) {
20528
- return /*#__PURE__*/React__default['default'].createElement(ApaasImage, {
20529
- width: 30,
20530
- src: val
20531
- });
20532
- }
20533
- }, {
20534
- dataIndex: 'propertiesValue',
20535
- title: '规格值',
21566
+ dataIndex: 'title',
21567
+ title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
20536
21568
  width: 150,
20537
- ellipsis: true,
20538
- align: 'center',
20539
21569
  render: renderTextEllipsis
20540
21570
  }, {
20541
- dataIndex: 'saleBasePrice',
20542
- title: '原价',
21571
+ dataIndex: 'shortTitle',
21572
+ title: "\u5546\u54C1\u7B80\u79F0",
20543
21573
  width: 150,
20544
- ellipsis: true,
20545
- align: 'center',
20546
- render: function render(price) {
20547
- return price || price === 0 ? Number(price).toFixed(2) : '';
20548
- }
20549
- }, {
20550
- dataIndex: 'salePrice',
20551
- title: '单价',
20552
- ellipsis: true,
20553
- align: 'center',
20554
- width: 120,
20555
- // validator: (_rule: any, value: any) => {
20556
- // let goodsName = '';
20557
- // if (
20558
- // (value?.jstReissueGoods || []).some((goods: any) => {
20559
- // const v = toNum(goods?.salePrice);
20560
- // const res = typeof v === 'number' ? v < 0 : true;
20561
- // if (res) {
20562
- // goodsName = goods?.name ? `[${goods?.name}]` : '';
20563
- // }
20564
- // return res;
20565
- // })
20566
- // ) {
20567
- // return Promise.reject(`${goodsName}单价为大于等于0的数`);
20568
- // }
20569
- // },
20570
- render: function render(val, record, index) {
20571
- return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
20572
- style: {
20573
- width: 70
20574
- },
20575
- value: val,
20576
- min: 0,
20577
- precision: 2,
20578
- onChange: function onChange(num) {
20579
- return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'salePrice');
20580
- }
20581
- }) : /*#__PURE__*/React__default['default'].createElement("span", null, val || val === 0 ? Number(val).toFixed(2) : '');
20582
- }
20583
- }, {
20584
- dataIndex: 'qty',
20585
- title: '数量',
20586
- ellipsis: true,
20587
- align: 'center',
20588
- width: 100,
20589
- validator: function validator(_rule, value) {
20590
- var goodsName = '';
20591
- if (((value === null || value === void 0 ? void 0 : value.jstReissueGoods) || []).some(function (goods) {
20592
- var qty = toNum$2(goods === null || goods === void 0 ? void 0 : goods.qty);
20593
- var res = typeof qty === 'number' ? qty < 1 : true;
20594
- if (res) {
20595
- goodsName = (goods === null || goods === void 0 ? void 0 : goods.name) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.name, "]") : '';
20596
- }
20597
- return res;
20598
- })) {
20599
- return Promise.reject("".concat(goodsName, "\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
20600
- }
20601
- },
20602
- render: function render(val, record, index) {
20603
- return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
20604
- style: {
20605
- width: 70
20606
- },
20607
- value: val,
20608
- min: 1,
20609
- precision: 0,
20610
- onChange: function onChange(num) {
20611
- return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'qty');
20612
- }
20613
- }) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
20614
- }
21574
+ render: renderTextEllipsis
20615
21575
  }, {
20616
- dataIndex: 'isGift',
20617
- title: '是否赠品',
20618
- ellipsis: true,
20619
- align: 'center',
20620
- width: 100,
20621
- render: function render(val, record, index) {
20622
- return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
20623
- value: val,
20624
- onChange: function onChange(value) {
20625
- updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(value, index, 'isGift');
20626
- },
20627
- options: [{
20628
- label: '是',
20629
- value: true
20630
- }, {
20631
- label: '否',
20632
- value: false
20633
- }]
20634
- }) : /*#__PURE__*/React__default['default'].createElement("span", null, typeof val !== 'boolean' ? '' : val ? '是' : '否');
20635
- }
21576
+ dataIndex: 'sysOuterId',
21577
+ title: "\u7CFB\u7EDF\u5546\u5BB6\u7F16\u7801",
21578
+ width: 150,
21579
+ render: renderTextEllipsis
20636
21580
  }, {
20637
- dataIndex: 'remark',
20638
- title: '备注',
21581
+ dataIndex: 'skuSysId',
21582
+ title: "\u7CFB\u7EDF\u89C4\u683CID",
20639
21583
  width: 150,
20640
- ellipsis: true,
20641
- align: 'center',
20642
- render: function render(val, record, index) {
20643
- return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Input, {
20644
- style: {
20645
- width: 70
20646
- },
20647
- value: val,
20648
- onChange: function onChange(e) {
20649
- return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(e.target.value, index, 'remark');
20650
- }
20651
- }) : renderTextEllipsis(val);
20652
- }
20653
- }],
20654
- JST_RETURN_GOODS: [{
20655
- dataIndex: 'name',
20656
- title: '商品名称',
20657
21584
  render: renderTextEllipsis
20658
21585
  }, {
20659
21586
  dataIndex: 'skuId',
20660
- title: '商品编码',
21587
+ title: "\u5E73\u53F0\u89C4\u683CID",
21588
+ width: 170,
20661
21589
  render: renderTextEllipsis
20662
21590
  }, {
20663
- dataIndex: 'iId',
20664
- title: '款式编码',
21591
+ dataIndex: 'outerSkuId',
21592
+ title: "\u5E73\u53F0\u89C4\u683C\u7F16\u7801",
21593
+ width: 170,
20665
21594
  render: renderTextEllipsis
20666
21595
  }, {
20667
- dataIndex: 'pic',
20668
- title: '商品图片',
21596
+ dataIndex: 'itemSysId',
21597
+ title: "\u7CFB\u7EDF\u5546\u54C1ID",
21598
+ width: 150,
21599
+ render: renderTextEllipsis
21600
+ }, {
21601
+ dataIndex: 'sysPicPath',
21602
+ title: "\u5546\u54C1\u56FE\u7247",
20669
21603
  width: 100,
20670
21604
  render: function render(val) {
20671
- return /*#__PURE__*/React__default['default'].createElement(ApaasImage, {
21605
+ return /*#__PURE__*/React__default['default'].createElement(antd.Image, {
20672
21606
  width: 30,
20673
21607
  src: val
20674
21608
  });
20675
21609
  }
20676
21610
  }, {
20677
- dataIndex: 'propertiesValue',
20678
- title: '规格值',
20679
- render: renderTextEllipsis
20680
- }, {
20681
- dataIndex: 'saleBasePrice',
20682
- title: '原价',
20683
- render: function render(price) {
20684
- return price || price === 0 ? Number(price).toFixed(2) : '';
20685
- }
20686
- }, {
20687
- dataIndex: 'salePrice',
20688
- title: '单价',
20689
- width: 120,
20690
- validator: function validator(_rule, value) {
20691
- var goodsName = '';
20692
- if (((value === null || value === void 0 ? void 0 : value.jstReturnGoods) || []).some(function (goods) {
20693
- var v = toNum$2(goods === null || goods === void 0 ? void 0 : goods.salePrice);
20694
- var res = typeof v === 'number' ? v < 0 : true;
20695
- if (res) {
20696
- goodsName = (goods === null || goods === void 0 ? void 0 : goods.name) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.name, "]") : '';
20697
- }
20698
- return res;
20699
- })) {
20700
- return Promise.reject("".concat(goodsName, "\u5355\u4EF7\u4E3A\u5927\u4E8E\u7B49\u4E8E0\u7684\u6570"));
20701
- }
20702
- },
20703
- render: function render(val, record, index) {
20704
- return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
20705
- style: {
20706
- width: 70
20707
- },
20708
- value: val,
20709
- min: 0,
20710
- precision: 2,
20711
- onChange: function onChange(num) {
20712
- return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'salePrice');
20713
- }
20714
- }) : /*#__PURE__*/React__default['default'].createElement("span", null, val || val === 0 ? Number(val).toFixed(2) : '');
20715
- }
20716
- }, {
20717
- dataIndex: 'qty',
20718
- title: '数量',
21611
+ dataIndex: 'num',
21612
+ title: "\u6570\u91CF",
20719
21613
  width: 100,
20720
- validator: function validator(_rule, value) {
20721
- var goodsName = '';
20722
- if (((value === null || value === void 0 ? void 0 : value.jstReturnGoods) || []).some(function (goods) {
20723
- var qty = toNum$2(goods === null || goods === void 0 ? void 0 : goods.qty);
20724
- var res = typeof qty === 'number' ? qty < 1 : true;
20725
- if (res) {
20726
- goodsName = (goods === null || goods === void 0 ? void 0 : goods.name) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.name, "]") : '';
20727
- }
20728
- return res;
20729
- })) {
20730
- return Promise.reject("".concat(goodsName, "\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
20731
- }
20732
- },
20733
21614
  render: function render(val, record, index) {
20734
- return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
21615
+ return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
20735
21616
  style: {
20736
21617
  width: 70
20737
21618
  },
@@ -20739,114 +21620,126 @@ var getColumns$5 = function getColumns() {
20739
21620
  min: 1,
20740
21621
  precision: 0,
20741
21622
  onChange: function onChange(num) {
20742
- return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'qty');
21623
+ return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'num');
20743
21624
  }
20744
21625
  }) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
20745
21626
  }
20746
21627
  }, {
20747
- dataIndex: 'saleAmount',
20748
- title: '总金额',
20749
- render: function render(val, record) {
20750
- return ((record.qty || 0) * (+record.salePrice || 0)).toFixed(2);
20751
- }
20752
- }, {
20753
- dataIndex: 'batchId',
20754
- title: '批次号',
20755
- render: renderTextEllipsis
20756
- }, {
20757
- dataIndex: 'isGift',
20758
- title: '是否赠品',
20759
- width: 100,
20760
- render: function render(val, record, index) {
20761
- return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
20762
- value: val,
20763
- onChange: function onChange(value) {
20764
- updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(value, index, 'isGift');
20765
- },
20766
- options: [{
20767
- label: '是',
20768
- value: true
20769
- }, {
20770
- label: '否',
20771
- value: false
20772
- }]
20773
- }) : /*#__PURE__*/React__default['default'].createElement("span", null, typeof val !== 'boolean' ? '' : val ? '是' : '否');
20774
- }
20775
- }, {
20776
- dataIndex: 'remark',
20777
- title: '备注',
21628
+ dataIndex: 'payment',
21629
+ title: "\u5B9E\u4ED8\u91D1\u989D",
21630
+ width: 150,
20778
21631
  render: function render(val, record, index) {
20779
- return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Input, {
21632
+ return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
20780
21633
  style: {
20781
- width: 70
21634
+ width: 130
20782
21635
  },
20783
21636
  value: val,
20784
- onChange: function onChange(e) {
20785
- return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(e.target.value, index, 'remark');
21637
+ min: 0,
21638
+ precision: 2,
21639
+ onChange: function onChange(num) {
21640
+ return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'payment');
20786
21641
  }
20787
- }) : renderTextEllipsis(val);
21642
+ }) : /*#__PURE__*/React__default['default'].createElement("span", null, val || val === 0 ? Number(val).toFixed(2) : '');
20788
21643
  }
20789
21644
  }, {
20790
- dataIndex: 'outerOiId',
20791
- title: '子订单号',
20792
- width: 240,
21645
+ dataIndex: 'price',
21646
+ title: "\u5546\u54C1\u9500\u552E\u4EF7",
21647
+ width: 150,
21648
+ render: function render(val) {
21649
+ return val || val === 0 ? Number(val).toFixed(2) : '';
21650
+ }
21651
+ }, {
21652
+ dataIndex: 'type',
21653
+ title: "\u5546\u54C1\u7C7B\u578B",
21654
+ width: 150,
20793
21655
  render: renderTextEllipsis
20794
- }].map(fillAttrs),
20795
- JST_EXCHANGE_GOODS: [{
20796
- dataIndex: 'name',
20797
- title: '商品名称',
21656
+ }].map(function (item) {
21657
+ return _objectSpread2(_objectSpread2({}, item), {}, {
21658
+ align: 'center',
21659
+ ellipsis: true
21660
+ });
21661
+ }),
21662
+ KM_REISSUE_GOODS: [{
21663
+ dataIndex: 'skuPropertiesName',
21664
+ title: "\u89C4\u683C\u540D\u79F0",
21665
+ width: 250,
20798
21666
  render: renderTextEllipsis
20799
21667
  }, {
20800
- dataIndex: 'skuId',
20801
- title: '商品编码',
21668
+ dataIndex: 'sysTitle',
21669
+ title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
21670
+ width: 150,
20802
21671
  render: renderTextEllipsis
20803
21672
  }, {
20804
- dataIndex: 'iId',
20805
- title: '款式编码',
21673
+ dataIndex: 'shortTitle',
21674
+ title: "\u5546\u54C1\u7B80\u79F0",
21675
+ width: 150,
20806
21676
  render: renderTextEllipsis
20807
21677
  }, {
20808
- dataIndex: 'pic',
20809
- title: '商品图片',
20810
- width: 100,
20811
- render: function render(val) {
20812
- return /*#__PURE__*/React__default['default'].createElement(ApaasImage, {
20813
- width: 30,
20814
- src: val
20815
- });
20816
- }
21678
+ dataIndex: 'title',
21679
+ title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
21680
+ width: 150,
21681
+ render: renderTextEllipsis
20817
21682
  }, {
20818
- dataIndex: 'propertiesValue',
20819
- title: '规格值',
21683
+ dataIndex: 'sysOuterId',
21684
+ title: "\u7CFB\u7EDF\u5546\u5BB6\u7F16\u7801",
21685
+ width: 150,
20820
21686
  render: renderTextEllipsis
20821
21687
  }, {
20822
- dataIndex: 'saleBasePrice',
20823
- title: '原价',
20824
- render: function render(price) {
20825
- return price || price === 0 ? Number(price).toFixed(2) : '';
20826
- }
21688
+ dataIndex: 'itemSysId',
21689
+ title: "\u7CFB\u7EDF\u5546\u54C1ID",
21690
+ width: 150,
21691
+ render: renderTextEllipsis
20827
21692
  }, {
20828
- dataIndex: 'salePrice',
20829
- title: '单价',
20830
- width: 120,
21693
+ dataIndex: 'skuSysId',
21694
+ title: "\u7CFB\u7EDF\u89C4\u683CID",
21695
+ width: 150,
21696
+ render: renderTextEllipsis
21697
+ }, {
21698
+ dataIndex: 'skuId',
21699
+ title: "\u5E73\u53F0\u89C4\u683CID",
21700
+ width: 170,
21701
+ render: renderTextEllipsis
21702
+ }, {
21703
+ dataIndex: 'outerSkuId',
21704
+ title: "\u5E73\u53F0\u89C4\u683C\u7F16\u7801",
21705
+ width: 170,
21706
+ render: renderTextEllipsis
21707
+ }, {
21708
+ dataIndex: 'realNum',
21709
+ title: "\u5B9E\u9645\u8865\u53D1\u6570\u91CF",
21710
+ width: 100,
21711
+ validator: function validator(_rule, value) {
21712
+ var title = '';
21713
+ if (((value === null || value === void 0 ? void 0 : value.kmReissueGoods) || []).some(function (goods) {
21714
+ var realNum = toNum$3(goods === null || goods === void 0 ? void 0 : goods.realNum);
21715
+ var res = typeof realNum === 'number' ? realNum < 1 : true;
21716
+ if (res) {
21717
+ title = (goods === null || goods === void 0 ? void 0 : goods.goodName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodName, "]") : '';
21718
+ }
21719
+ return res;
21720
+ })) {
21721
+ return Promise.reject("".concat(title, "\u5B9E\u9645\u8865\u53D1\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
21722
+ }
21723
+ },
20831
21724
  render: function render(val, record, index) {
20832
- return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
21725
+ return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
20833
21726
  style: {
20834
21727
  width: 70
20835
21728
  },
20836
21729
  value: val,
20837
- min: 0,
20838
- precision: 2,
21730
+ min: 1,
21731
+ precision: 0,
20839
21732
  onChange: function onChange(num) {
20840
- return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'salePrice');
21733
+ return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'realNum');
20841
21734
  }
20842
- }) : /*#__PURE__*/React__default['default'].createElement("span", null, val || val === 0 ? Number(val).toFixed(2) : '');
21735
+ }) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
20843
21736
  }
20844
21737
  }, {
20845
- dataIndex: 'qty',
20846
- title: '数量',
21738
+ dataIndex: 'desiredNum',
21739
+ title: "\u5E94\u8865\u53D1\u6570\u91CF",
20847
21740
  width: 100,
20848
21741
  render: function render(val, record, index) {
20849
- return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
21742
+ return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
20850
21743
  style: {
20851
21744
  width: 70
20852
21745
  },
@@ -20854,396 +21747,406 @@ var getColumns$5 = function getColumns() {
20854
21747
  min: 1,
20855
21748
  precision: 0,
20856
21749
  onChange: function onChange(num) {
20857
- return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'qty');
21750
+ return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'desiredNum');
20858
21751
  }
20859
21752
  }) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
20860
21753
  }
20861
21754
  }, {
20862
- dataIndex: 'saleAmount',
20863
- title: '总金额',
20864
- render: function render(val, record) {
20865
- return ((record.qty || 0) * (+record.salePrice || 0)).toFixed(2);
20866
- }
20867
- }, {
20868
- dataIndex: 'isGift',
20869
- title: '是否赠品',
20870
- width: 100,
20871
- render: function render(val, record, index) {
20872
- return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
20873
- value: val,
20874
- onChange: function onChange(value) {
20875
- updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(value, index, 'isGift');
20876
- },
20877
- options: [{
20878
- label: '是',
20879
- value: true
20880
- }, {
20881
- label: '否',
20882
- value: false
20883
- }]
20884
- }) : /*#__PURE__*/React__default['default'].createElement("span", null, typeof val !== 'boolean' ? '' : val ? '是' : '否');
21755
+ dataIndex: 'price',
21756
+ title: "\u5546\u54C1\u9500\u552E\u4EF7",
21757
+ width: 150,
21758
+ render: function render(val) {
21759
+ return val || val === 0 ? Number(val).toFixed(2) : '';
20885
21760
  }
20886
21761
  }, {
20887
- dataIndex: 'remark',
20888
- title: '备注',
21762
+ dataIndex: 'payment',
21763
+ title: "\u5B9E\u4ED8\u91D1\u989D",
21764
+ width: 150,
20889
21765
  render: function render(val, record, index) {
20890
- return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Input, {
21766
+ return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
20891
21767
  style: {
20892
- width: 70
21768
+ width: 130
20893
21769
  },
20894
21770
  value: val,
20895
- onChange: function onChange(e) {
20896
- return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(e.target.value, index, 'remark');
21771
+ min: 0,
21772
+ precision: 2,
21773
+ onChange: function onChange(num) {
21774
+ return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'payment');
20897
21775
  }
20898
- }) : renderTextEllipsis(val);
21776
+ }) : /*#__PURE__*/React__default['default'].createElement("span", null, val || val === 0 ? Number(val).toFixed(2) : '');
20899
21777
  }
20900
- }].map(fillAttrs),
20901
- // jst售后商品信息
20902
- JST_AFTERSALE_GOODS: [{
20903
- dataIndex: 'asId',
20904
- title: "\u805A\u6C34\u6F6D\u552E\u540E\u5355\u53F7",
20905
- width: 200,
20906
- align: 'center',
20907
- ellipsis: true,
20908
- render: renderTextEllipsis
20909
- }, {
20910
- dataIndex: 'asiId',
20911
- title: "\u552E\u540E\u5B50\u5355\u53F7",
20912
- width: 200,
20913
- align: 'center',
20914
- ellipsis: true,
20915
- render: renderTextEllipsis
20916
21778
  }, {
20917
- dataIndex: 'outerOiId',
20918
- title: "\u5B50\u8BA2\u5355\u53F7",
20919
- width: 200,
20920
- align: 'center',
20921
- ellipsis: true,
21779
+ dataIndex: 'type',
21780
+ title: "\u5546\u54C1\u7C7B\u578B",
21781
+ width: 150,
20922
21782
  render: renderTextEllipsis
20923
21783
  }, {
20924
- dataIndex: 'pic',
20925
- title: "\u56FE\u7247",
21784
+ dataIndex: 'sysPicPath',
21785
+ title: "\u5546\u54C1\u56FE\u7247",
20926
21786
  width: 100,
20927
- align: 'center',
20928
21787
  render: function render(val) {
20929
- return /*#__PURE__*/React__default['default'].createElement(ApaasImage, {
21788
+ return /*#__PURE__*/React__default['default'].createElement(antd.Image, {
20930
21789
  width: 30,
20931
21790
  src: val
20932
21791
  });
20933
- },
20934
- headerComponentType: 'pic'
20935
- }, {
20936
- dataIndex: 'name',
20937
- title: "\u5546\u54C1\u540D\u79F0",
20938
- width: 250,
20939
- align: 'center',
20940
- ellipsis: true,
20941
- render: renderTextEllipsis
20942
- }, {
20943
- dataIndex: 'skuId',
20944
- title: "\u5546\u54C1\u7F16\u7801",
20945
- width: 200,
21792
+ }
21793
+ }].map(function (item) {
21794
+ return _objectSpread2(_objectSpread2({}, item), {}, {
21795
+ align: 'center',
21796
+ ellipsis: true
21797
+ });
21798
+ })
21799
+ };
21800
+ };
21801
+
21802
+ var isNumberOrNumberString$2 = function isNumberOrNumberString(value) {
21803
+ if (typeof value === 'number') return true;
21804
+ if (typeof value === 'string' && !isNaN(Number(value)) && value.trim() !== '') return true;
21805
+ return false;
21806
+ };
21807
+ function toNum$4(value) {
21808
+ if (typeof value === 'string') {
21809
+ return value ? +value : void 0;
21810
+ }
21811
+ if (typeof value === 'number') {
21812
+ return value;
21813
+ }
21814
+ return void 0;
21815
+ }
21816
+ var getColumns$7 = function getColumns(_ref) {
21817
+ var _ref$text = _ref.text,
21818
+ disabled = _ref.disabled,
21819
+ updateHandle = _ref.updateHandle,
21820
+ updateDataHandle = _ref.updateDataHandle;
21821
+ return {
21822
+ //巨益商品信息
21823
+ JY_GOODS: [{
21824
+ dataIndex: 'productName',
21825
+ title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
20946
21826
  align: 'center',
20947
21827
  ellipsis: true,
21828
+ width: 150,
20948
21829
  render: renderTextEllipsis
20949
21830
  }, {
20950
- dataIndex: 'propertiesValue',
20951
- title: "\u89C4\u683C\u5C5E\u6027\u503C",
20952
- width: 200,
21831
+ dataIndex: 'productCode',
21832
+ title: "\u7CFB\u7EDF\u5546\u54C1\u7F16\u7801",
20953
21833
  align: 'center',
20954
21834
  ellipsis: true,
21835
+ width: 150,
20955
21836
  render: renderTextEllipsis
20956
21837
  }, {
20957
- dataIndex: 'qty',
20958
- title: "\u7533\u8BF7\u6570\u91CF",
20959
- width: 150,
21838
+ dataIndex: 'productId',
21839
+ title: "\u7CFB\u7EDF\u5546\u54C1ID",
20960
21840
  align: 'center',
20961
21841
  ellipsis: true,
21842
+ width: 150,
20962
21843
  render: renderTextEllipsis
20963
21844
  }, {
20964
- dataIndex: 'rQty',
20965
- title: "\u5B9E\u6536\u9000\u8D27\u6570\u91CF",
20966
- width: 150,
21845
+ dataIndex: 'skuName',
21846
+ title: "\u7CFB\u7EDF\u89C4\u683C\u540D\u79F0",
20967
21847
  align: 'center',
20968
21848
  ellipsis: true,
21849
+ width: 150,
20969
21850
  render: renderTextEllipsis
20970
21851
  }, {
20971
- dataIndex: 'defectiveQty',
20972
- title: "\u6B21\u54C1\u6570\u91CF",
20973
- width: 150,
21852
+ dataIndex: 'skuCode',
21853
+ title: "\u7CFB\u7EDF\u89C4\u683C\u7F16\u7801",
20974
21854
  align: 'center',
20975
21855
  ellipsis: true,
21856
+ width: 150,
20976
21857
  render: renderTextEllipsis
20977
21858
  }, {
20978
- dataIndex: 'amount',
20979
- title: "\u7533\u8BF7\u91D1\u989D",
20980
- width: 150,
21859
+ dataIndex: 'specId',
21860
+ title: "\u89C4\u683CID",
20981
21861
  align: 'center',
20982
21862
  ellipsis: true,
21863
+ width: 150,
20983
21864
  render: renderTextEllipsis
20984
21865
  }, {
20985
- dataIndex: 'shopAmount',
20986
- title: "\u7EBF\u4E0A\u660E\u7EC6\u91D1\u989D",
21866
+ dataIndex: 'goodsClass',
21867
+ title: "\u8D27\u54C1\u7C7B\u522B",
20987
21868
  width: 150,
20988
- align: 'center',
20989
- ellipsis: true,
20990
21869
  render: renderTextEllipsis
20991
21870
  }, {
20992
- dataIndex: 'price',
20993
- title: "\u5355\u4EF7",
21871
+ dataIndex: 'code',
21872
+ title: "\u6761\u7801",
20994
21873
  width: 150,
20995
- align: 'center',
20996
- ellipsis: true,
20997
21874
  render: renderTextEllipsis
20998
- }, {
20999
- dataIndex: 'combineSkuId',
21000
- title: "\u7EC4\u5408\u5546\u54C1\u7F16\u7801",
21001
- width: 250,
21875
+ },
21876
+ // {
21877
+ // dataIndex: 'specName',
21878
+ // title: `规格名称`,
21879
+ // align: 'center',
21880
+ // ellipsis: true,
21881
+ // width: 200,
21882
+ // },
21883
+ // {
21884
+ // dataIndex: 'specCode',
21885
+ // title: `规格编号`,
21886
+ // align: 'center',
21887
+ // ellipsis: true,
21888
+ // width: 150,
21889
+ // },
21890
+ {
21891
+ dataIndex: 'mallProductName',
21892
+ title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
21002
21893
  align: 'center',
21003
21894
  ellipsis: true,
21895
+ width: 250,
21004
21896
  render: renderTextEllipsis
21005
21897
  }, {
21006
- dataIndex: 'shopSkuId',
21007
- title: "\u5E97\u94FA\u5546\u54C1\u7F16\u7801",
21008
- width: 200,
21898
+ dataIndex: 'mallProductOutCode',
21899
+ title: "\u5E73\u53F0\u5546\u54C1\u7F16\u7801",
21009
21900
  align: 'center',
21010
21901
  ellipsis: true,
21902
+ width: 150,
21011
21903
  render: renderTextEllipsis
21012
21904
  }, {
21013
- dataIndex: 'iId',
21014
- title: "\u6B3E\u5F0F\u7F16\u7801",
21015
- width: 200,
21905
+ dataIndex: 'mallProductId',
21906
+ title: "\u5E73\u53F0\u5546\u54C1ID",
21016
21907
  align: 'center',
21017
21908
  ellipsis: true,
21909
+ width: 250,
21018
21910
  render: renderTextEllipsis
21019
21911
  }, {
21020
- dataIndex: 'type',
21021
- title: "\u552E\u540E\u7C7B\u578B",
21022
- width: 150,
21912
+ dataIndex: 'mallSkuName',
21913
+ title: "\u5E73\u53F0\u89C4\u683C\u540D\u79F0",
21023
21914
  align: 'center',
21024
21915
  ellipsis: true,
21916
+ width: 250,
21025
21917
  render: renderTextEllipsis
21026
21918
  }, {
21027
- dataIndex: 'skuType',
21028
- title: "\u5546\u54C1\u7C7B\u578B",
21029
- width: 150,
21919
+ dataIndex: 'mallSkuId',
21920
+ title: "\u5E73\u53F0\u89C4\u683CID",
21030
21921
  align: 'center',
21031
21922
  ellipsis: true,
21923
+ width: 250,
21032
21924
  render: renderTextEllipsis
21033
21925
  }, {
21034
- dataIndex: 'isGift',
21035
- title: '是否赠品',
21926
+ dataIndex: 'sellCount',
21927
+ title: "\u6570\u91CF",
21036
21928
  width: 100,
21037
- render: function render(val) {
21038
- return /*#__PURE__*/React__default['default'].createElement("span", null, typeof val !== 'boolean' ? '' : val ? '是' : '否');
21039
- },
21040
- headerMapping: {
21041
- transformValue: function transformValue(val) {
21042
- return typeof val !== 'boolean' ? '' : val ? '是' : '否';
21043
- },
21044
- renderExport: function renderExport(val) {
21045
- return typeof val !== 'boolean' ? '' : val ? '是' : '否';
21046
- }
21929
+ render: function render(val, record, index) {
21930
+ return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
21931
+ style: {
21932
+ width: 70
21933
+ },
21934
+ value: val,
21935
+ min: 1,
21936
+ precision: 0,
21937
+ onChange: function onChange(num) {
21938
+ updateDataHandle({
21939
+ sellCount: num,
21940
+ sellTotal: num && isNumberOrNumberString$2(record.sellPrice) ? num * record.sellPrice : null
21941
+ }, index);
21942
+ }
21943
+ }) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
21047
21944
  }
21048
21945
  }, {
21049
- dataIndex: 'receiveDate',
21050
- title: "\u5165\u4ED3\u65F6\u95F4",
21051
- width: 200,
21052
- align: 'center',
21053
- ellipsis: true,
21054
- render: renderTextEllipsis
21946
+ dataIndex: 'sellPrice',
21947
+ title: "\u5355\u4EF7",
21948
+ width: 150,
21949
+ render: function render(val, record, index) {
21950
+ return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
21951
+ style: {
21952
+ width: 130
21953
+ },
21954
+ value: val,
21955
+ min: 0,
21956
+ precision: 2,
21957
+ onChange: function onChange(num) {
21958
+ updateDataHandle({
21959
+ sellPrice: num,
21960
+ sellTotal: num && isNumberOrNumberString$2(record.sellCount) ? num * record.sellCount : null
21961
+ }, index);
21962
+ }
21963
+ }) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
21964
+ }
21055
21965
  }, {
21056
- dataIndex: 'remark',
21057
- title: "\u660E\u7EC6\u5907\u6CE8",
21058
- width: 200,
21059
- align: 'center',
21060
- ellipsis: true,
21061
- render: renderTextEllipsis
21062
- }]
21063
- };
21064
- };
21065
-
21066
- function toNum$3(value) {
21067
- if (typeof value === 'string') {
21068
- return value ? +value : void 0;
21069
- }
21070
- if (typeof value === 'number') {
21071
- return value;
21072
- }
21073
- return void 0;
21074
- }
21075
- var getColumns$6 = function getColumns(_ref) {
21076
- var _ref$text = _ref.text,
21077
- disabled = _ref.disabled,
21078
- updateHandle = _ref.updateHandle;
21079
- return {
21080
- KM_GOODS: [{
21081
- dataIndex: 'skuPropertiesName',
21082
- title: "\u89C4\u683C\u540D\u79F0",
21083
- width: 250,
21966
+ dataIndex: 'mallSellingPrice',
21967
+ title: "\u5E73\u53F0\u5546\u54C1\u4EF7\u683C",
21968
+ width: 150
21969
+ }, {
21970
+ dataIndex: 'sellTotal',
21971
+ title: "\u91D1\u989D",
21972
+ width: 150
21973
+ }, {
21974
+ dataIndex: 'settlementPrice',
21975
+ title: "\u7ED3\u7B97\u4EF7",
21976
+ width: 150
21977
+ }, {
21978
+ dataIndex: 'divideOrderFee',
21979
+ title: "\u5206\u644A\u5B9E\u4ED8\u91D1\u989D",
21980
+ width: 150
21981
+ }, {
21982
+ dataIndex: 'bfit',
21983
+ title: "\u662F\u5426\u7EC4\u5408\u88C5",
21984
+ width: 150,
21985
+ render: function render(val, record, index) {
21986
+ return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
21987
+ dropdownStyle: {
21988
+ zIndex: 2000
21989
+ },
21990
+ getPopupContainer: function getPopupContainer() {
21991
+ return document.body;
21992
+ },
21993
+ value: val,
21994
+ onChange: function onChange(value) {
21995
+ updateHandle(value, index, 'bfit');
21996
+ },
21997
+ options: [{
21998
+ label: '是',
21999
+ value: 'True'
22000
+ }, {
22001
+ label: '否',
22002
+ value: 'False'
22003
+ }]
22004
+ }) : /*#__PURE__*/React__default['default'].createElement("span", null, val === 'True' ? '是' : '否');
22005
+ }
22006
+ }, {
22007
+ dataIndex: 'combinationName',
22008
+ title: "\u7EC4\u5408\u5546\u54C1\u540D\u79F0",
22009
+ width: 150,
21084
22010
  render: renderTextEllipsis
21085
22011
  }, {
21086
- dataIndex: 'sysTitle',
21087
- title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
22012
+ dataIndex: 'combinationCode',
22013
+ title: "\u7EC4\u5408\u5546\u54C1\u7F16\u7801",
21088
22014
  width: 150,
21089
22015
  render: renderTextEllipsis
21090
22016
  }, {
21091
- dataIndex: 'title',
21092
- title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
22017
+ dataIndex: 'gift',
22018
+ title: "\u662F\u5426\u8D60\u54C1",
22019
+ width: 150,
22020
+ render: function render(val, record, index) {
22021
+ return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
22022
+ dropdownStyle: {
22023
+ zIndex: 2000
22024
+ },
22025
+ getPopupContainer: function getPopupContainer() {
22026
+ return document.body;
22027
+ },
22028
+ value: val,
22029
+ onChange: function onChange(value) {
22030
+ updateHandle(value, index, 'gift');
22031
+ },
22032
+ options: [{
22033
+ label: '是',
22034
+ value: '1'
22035
+ }, {
22036
+ label: '否',
22037
+ value: '0'
22038
+ }]
22039
+ }) : /*#__PURE__*/React__default['default'].createElement("span", null, val === '1' ? '是' : '否');
22040
+ }
22041
+ }].map(function (item) {
22042
+ return _objectSpread2(_objectSpread2({}, item), {}, {
22043
+ align: 'center',
22044
+ ellipsis: true
22045
+ });
22046
+ }),
22047
+ // 巨益补发商品信息
22048
+ JY_REISSUE_GOODS: [{
22049
+ dataIndex: 'productName',
22050
+ title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
22051
+ align: 'center',
22052
+ ellipsis: true,
21093
22053
  width: 150,
21094
22054
  render: renderTextEllipsis
21095
22055
  }, {
21096
- dataIndex: 'shortTitle',
21097
- title: "\u5546\u54C1\u7B80\u79F0",
22056
+ dataIndex: 'productCode',
22057
+ title: "\u7CFB\u7EDF\u5546\u54C1\u7F16\u7801",
22058
+ align: 'center',
22059
+ ellipsis: true,
21098
22060
  width: 150,
21099
22061
  render: renderTextEllipsis
21100
22062
  }, {
21101
- dataIndex: 'sysOuterId',
21102
- title: "\u7CFB\u7EDF\u5546\u5BB6\u7F16\u7801",
22063
+ dataIndex: 'productId',
22064
+ title: "\u7CFB\u7EDF\u5546\u54C1ID",
22065
+ align: 'center',
22066
+ ellipsis: true,
21103
22067
  width: 150,
21104
22068
  render: renderTextEllipsis
21105
22069
  }, {
21106
- dataIndex: 'skuSysId',
21107
- title: "\u7CFB\u7EDF\u89C4\u683CID",
22070
+ dataIndex: 'skuName',
22071
+ title: "\u7CFB\u7EDF\u89C4\u683C\u540D\u79F0",
22072
+ align: 'center',
22073
+ ellipsis: true,
21108
22074
  width: 150,
21109
22075
  render: renderTextEllipsis
21110
22076
  }, {
21111
- dataIndex: 'skuId',
21112
- title: "\u5E73\u53F0\u89C4\u683CID",
21113
- width: 170,
21114
- render: renderTextEllipsis
21115
- }, {
21116
- dataIndex: 'outerSkuId',
21117
- title: "\u5E73\u53F0\u89C4\u683C\u7F16\u7801",
21118
- width: 170,
21119
- render: renderTextEllipsis
21120
- }, {
21121
- dataIndex: 'itemSysId',
21122
- title: "\u7CFB\u7EDF\u5546\u54C1ID",
22077
+ dataIndex: 'skuCode',
22078
+ title: "\u7CFB\u7EDF\u89C4\u683C\u7F16\u7801",
22079
+ align: 'center',
22080
+ ellipsis: true,
21123
22081
  width: 150,
21124
22082
  render: renderTextEllipsis
21125
22083
  }, {
21126
- dataIndex: 'sysPicPath',
21127
- title: "\u5546\u54C1\u56FE\u7247",
21128
- width: 100,
21129
- render: function render(val) {
21130
- return /*#__PURE__*/React__default['default'].createElement(antd.Image, {
21131
- width: 30,
21132
- src: val
21133
- });
21134
- }
21135
- }, {
21136
- dataIndex: 'num',
21137
- title: "\u6570\u91CF",
21138
- width: 100,
21139
- render: function render(val, record, index) {
21140
- return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
21141
- style: {
21142
- width: 70
21143
- },
21144
- value: val,
21145
- min: 1,
21146
- precision: 0,
21147
- onChange: function onChange(num) {
21148
- return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'num');
21149
- }
21150
- }) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
21151
- }
21152
- }, {
21153
- dataIndex: 'payment',
21154
- title: "\u5B9E\u4ED8\u91D1\u989D",
21155
- width: 150,
21156
- render: function render(val, record, index) {
21157
- return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
21158
- style: {
21159
- width: 130
21160
- },
21161
- value: val,
21162
- min: 0,
21163
- precision: 2,
21164
- onChange: function onChange(num) {
21165
- return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'payment');
21166
- }
21167
- }) : /*#__PURE__*/React__default['default'].createElement("span", null, val || val === 0 ? Number(val).toFixed(2) : '');
21168
- }
21169
- }, {
21170
- dataIndex: 'price',
21171
- title: "\u5546\u54C1\u9500\u552E\u4EF7",
21172
- width: 150,
21173
- render: function render(val) {
21174
- return val || val === 0 ? Number(val).toFixed(2) : '';
21175
- }
21176
- }, {
21177
- dataIndex: 'type',
21178
- title: "\u5546\u54C1\u7C7B\u578B",
22084
+ dataIndex: 'specId',
22085
+ title: "\u89C4\u683CID",
22086
+ align: 'center',
22087
+ ellipsis: true,
21179
22088
  width: 150,
21180
22089
  render: renderTextEllipsis
21181
- }].map(function (item) {
21182
- return _objectSpread2(_objectSpread2({}, item), {}, {
21183
- align: 'center',
21184
- ellipsis: true
21185
- });
21186
- }),
21187
- KM_REISSUE_GOODS: [{
21188
- dataIndex: 'skuPropertiesName',
21189
- title: "\u89C4\u683C\u540D\u79F0",
21190
- width: 250,
21191
- render: renderTextEllipsis
21192
22090
  }, {
21193
- dataIndex: 'sysTitle',
21194
- title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
22091
+ dataIndex: 'goodsClass',
22092
+ title: "\u8D27\u54C1\u7C7B\u522B",
21195
22093
  width: 150,
21196
22094
  render: renderTextEllipsis
21197
22095
  }, {
21198
- dataIndex: 'shortTitle',
21199
- title: "\u5546\u54C1\u7B80\u79F0",
22096
+ dataIndex: 'code',
22097
+ title: "\u6761\u7801",
21200
22098
  width: 150,
21201
22099
  render: renderTextEllipsis
21202
22100
  }, {
21203
- dataIndex: 'title',
22101
+ dataIndex: 'mallProductName',
21204
22102
  title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
22103
+ align: 'center',
22104
+ ellipsis: true,
21205
22105
  width: 150,
21206
22106
  render: renderTextEllipsis
21207
22107
  }, {
21208
- dataIndex: 'sysOuterId',
21209
- title: "\u7CFB\u7EDF\u5546\u5BB6\u7F16\u7801",
22108
+ dataIndex: 'mallProductOutCode',
22109
+ title: "\u5E73\u53F0\u5546\u54C1\u7F16\u7801",
22110
+ align: 'center',
22111
+ ellipsis: true,
21210
22112
  width: 150,
21211
22113
  render: renderTextEllipsis
21212
22114
  }, {
21213
- dataIndex: 'itemSysId',
21214
- title: "\u7CFB\u7EDF\u5546\u54C1ID",
22115
+ dataIndex: 'mallProductId',
22116
+ title: "\u5E73\u53F0\u5546\u54C1ID",
22117
+ align: 'center',
22118
+ ellipsis: true,
21215
22119
  width: 150,
21216
22120
  render: renderTextEllipsis
21217
22121
  }, {
21218
- dataIndex: 'skuSysId',
21219
- title: "\u7CFB\u7EDF\u89C4\u683CID",
22122
+ dataIndex: 'mallSkuName',
22123
+ title: "\u5E73\u53F0\u89C4\u683C\u540D\u79F0",
22124
+ align: 'center',
22125
+ ellipsis: true,
21220
22126
  width: 150,
21221
22127
  render: renderTextEllipsis
21222
22128
  }, {
21223
- dataIndex: 'skuId',
22129
+ dataIndex: 'mallSkuId',
21224
22130
  title: "\u5E73\u53F0\u89C4\u683CID",
21225
- width: 170,
21226
- render: renderTextEllipsis
21227
- }, {
21228
- dataIndex: 'outerSkuId',
21229
- title: "\u5E73\u53F0\u89C4\u683C\u7F16\u7801",
21230
- width: 170,
22131
+ align: 'center',
22132
+ ellipsis: true,
22133
+ width: 150,
21231
22134
  render: renderTextEllipsis
21232
22135
  }, {
21233
- dataIndex: 'realNum',
21234
- title: "\u5B9E\u9645\u8865\u53D1\u6570\u91CF",
22136
+ dataIndex: 'sellCount',
22137
+ title: "\u6570\u91CF",
21235
22138
  width: 100,
21236
22139
  validator: function validator(_rule, value) {
21237
- var title = '';
21238
- if (((value === null || value === void 0 ? void 0 : value.kmReissueGoods) || []).some(function (goods) {
21239
- var realNum = toNum$3(goods === null || goods === void 0 ? void 0 : goods.realNum);
21240
- var res = typeof realNum === 'number' ? realNum < 1 : true;
22140
+ var productName = '';
22141
+ if (((value === null || value === void 0 ? void 0 : value.jyReissueGoods) || []).some(function (goods) {
22142
+ var qty = toNum$4(goods === null || goods === void 0 ? void 0 : goods.sellCount);
22143
+ var res = typeof qty === 'number' ? qty < 1 : true;
21241
22144
  if (res) {
21242
- title = (goods === null || goods === void 0 ? void 0 : goods.goodName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodName, "]") : '';
22145
+ productName = (goods === null || goods === void 0 ? void 0 : goods.productName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.productName, "]") : '';
21243
22146
  }
21244
22147
  return res;
21245
22148
  })) {
21246
- return Promise.reject("".concat(title, "\u5B9E\u9645\u8865\u53D1\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
22149
+ return Promise.reject("".concat(productName, "\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
21247
22150
  }
21248
22151
  },
21249
22152
  render: function render(val, record, index) {
@@ -21255,65 +22158,100 @@ var getColumns$6 = function getColumns(_ref) {
21255
22158
  min: 1,
21256
22159
  precision: 0,
21257
22160
  onChange: function onChange(num) {
21258
- return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'realNum');
22161
+ updateDataHandle({
22162
+ sellCount: num,
22163
+ sellTotal: num && isNumberOrNumberString$2(record.sellPrice) ? num * record.sellPrice : null
22164
+ }, index);
21259
22165
  }
21260
22166
  }) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
21261
22167
  }
21262
22168
  }, {
21263
- dataIndex: 'desiredNum',
21264
- title: "\u5E94\u8865\u53D1\u6570\u91CF",
21265
- width: 100,
22169
+ dataIndex: 'sellPrice',
22170
+ title: "\u5355\u4EF7",
22171
+ width: 150,
21266
22172
  render: function render(val, record, index) {
21267
22173
  return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
21268
22174
  style: {
21269
- width: 70
22175
+ width: 130
21270
22176
  },
21271
22177
  value: val,
21272
- min: 1,
21273
- precision: 0,
22178
+ min: 0,
22179
+ precision: 2,
21274
22180
  onChange: function onChange(num) {
21275
- return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'desiredNum');
22181
+ updateDataHandle({
22182
+ sellPrice: num,
22183
+ sellTotal: num && isNumberOrNumberString$2(record.sellCount) ? num * record.sellCount : null
22184
+ }, index);
21276
22185
  }
21277
22186
  }) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
21278
22187
  }
21279
22188
  }, {
21280
- dataIndex: 'price',
21281
- title: "\u5546\u54C1\u9500\u552E\u4EF7",
21282
- width: 150,
21283
- render: function render(val) {
21284
- return val || val === 0 ? Number(val).toFixed(2) : '';
21285
- }
22189
+ dataIndex: 'mallSellingPrice',
22190
+ title: "\u5E73\u53F0\u5546\u54C1\u4EF7\u683C",
22191
+ width: 150
21286
22192
  }, {
21287
- dataIndex: 'payment',
21288
- title: "\u5B9E\u4ED8\u91D1\u989D",
22193
+ dataIndex: 'sellTotal',
22194
+ title: "\u91D1\u989D",
22195
+ width: 150
22196
+ }, {
22197
+ dataIndex: 'bfit',
22198
+ title: "\u662F\u5426\u7EC4\u5408\u88C5",
21289
22199
  width: 150,
21290
22200
  render: function render(val, record, index) {
21291
- return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
21292
- style: {
21293
- width: 130
22201
+ return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
22202
+ dropdownStyle: {
22203
+ zIndex: 2000
22204
+ },
22205
+ getPopupContainer: function getPopupContainer() {
22206
+ return document.body;
21294
22207
  },
21295
22208
  value: val,
21296
- min: 0,
21297
- precision: 2,
21298
- onChange: function onChange(num) {
21299
- return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'payment');
21300
- }
21301
- }) : /*#__PURE__*/React__default['default'].createElement("span", null, val || val === 0 ? Number(val).toFixed(2) : '');
22209
+ onChange: function onChange(value) {
22210
+ updateHandle(value, index, 'bfit');
22211
+ },
22212
+ options: [{
22213
+ label: '是',
22214
+ value: 'True'
22215
+ }, {
22216
+ label: '否',
22217
+ value: 'False'
22218
+ }]
22219
+ }) : /*#__PURE__*/React__default['default'].createElement("span", null, val === 'True' ? '是' : '否');
21302
22220
  }
21303
22221
  }, {
21304
- dataIndex: 'type',
21305
- title: "\u5546\u54C1\u7C7B\u578B",
22222
+ dataIndex: 'combinationName',
22223
+ title: "\u7EC4\u5408\u5546\u54C1\u540D\u79F0",
21306
22224
  width: 150,
21307
22225
  render: renderTextEllipsis
21308
22226
  }, {
21309
- dataIndex: 'sysPicPath',
21310
- title: "\u5546\u54C1\u56FE\u7247",
21311
- width: 100,
21312
- render: function render(val) {
21313
- return /*#__PURE__*/React__default['default'].createElement(antd.Image, {
21314
- width: 30,
21315
- src: val
21316
- });
22227
+ dataIndex: 'combinationCode',
22228
+ title: "\u7EC4\u5408\u5546\u54C1\u7F16\u7801",
22229
+ width: 150,
22230
+ render: renderTextEllipsis
22231
+ }, {
22232
+ dataIndex: 'gift',
22233
+ title: "\u662F\u5426\u8D60\u54C1",
22234
+ width: 150,
22235
+ render: function render(val, record, index) {
22236
+ return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
22237
+ dropdownStyle: {
22238
+ zIndex: 2000
22239
+ },
22240
+ getPopupContainer: function getPopupContainer() {
22241
+ return document.body;
22242
+ },
22243
+ value: val,
22244
+ onChange: function onChange(value) {
22245
+ updateHandle(value, index, 'gift');
22246
+ },
22247
+ options: [{
22248
+ label: '是',
22249
+ value: '1'
22250
+ }, {
22251
+ label: '否',
22252
+ value: '0'
22253
+ }]
22254
+ }) : /*#__PURE__*/React__default['default'].createElement("span", null, val === '1' ? '是' : '否');
21317
22255
  }
21318
22256
  }].map(function (item) {
21319
22257
  return _objectSpread2(_objectSpread2({}, item), {}, {
@@ -21324,12 +22262,54 @@ var getColumns$6 = function getColumns(_ref) {
21324
22262
  };
21325
22263
  };
21326
22264
 
21327
- var isNumberOrNumberString$2 = function isNumberOrNumberString(value) {
22265
+ var getColumns$8 = function getColumns(_ref) {
22266
+ var _ref$text = _ref.text,
22267
+ disabled = _ref.disabled,
22268
+ updateHandle = _ref.updateHandle,
22269
+ updateDataHandle = _ref.updateDataHandle;
22270
+ return {
22271
+ //[SKX]商品信息(ON)
22272
+ SKX_GOODS: [{
22273
+ dataIndex: 'skuEcode',
22274
+ title: "[SKX]\u53D1\u8D27\u5355\u660E\u7EC6-skuEcode",
22275
+ width: 250
22276
+ }, {
22277
+ dataIndex: 'subOrderId',
22278
+ title: "[SKX]\u53D1\u8D27\u5355-\u5B50\u8BA2\u5355\u53F7",
22279
+ width: 300
22280
+ }, {
22281
+ dataIndex: 'onBillNo',
22282
+ title: "[SKX]ON\u51FA\u5E93\u901A\u77E5\u5355\u53F7",
22283
+ width: 200
22284
+ }].map(function (item) {
22285
+ return _objectSpread2(_objectSpread2({}, item), {}, {
22286
+ align: 'center',
22287
+ ellipsis: true
22288
+ });
22289
+ }),
22290
+ //[SKX]退货商品信息(TH)
22291
+ SKX_RETURN_GOODS: [{
22292
+ dataIndex: 'returnSkuEcode',
22293
+ title: "[SKX]\u9000\u8D27\u5355\u660E\u7EC6-returnSkuEcode",
22294
+ width: 300
22295
+ }, {
22296
+ dataIndex: 'returnSubOrderId',
22297
+ title: "[SKX]\u9000\u8D27\u5355-\u5B50\u8BA2\u5355\u53F7",
22298
+ width: 300
22299
+ }, {
22300
+ dataIndex: 'returnBillNo',
22301
+ title: "[SKX]TH\u9000\u6362\u8D27\u5355\u53F7",
22302
+ width: 200
22303
+ }]
22304
+ };
22305
+ };
22306
+
22307
+ var isNumberOrNumberString$3 = function isNumberOrNumberString(value) {
21328
22308
  if (typeof value === 'number') return true;
21329
22309
  if (typeof value === 'string' && !isNaN(Number(value)) && value.trim() !== '') return true;
21330
22310
  return false;
21331
22311
  };
21332
- function toNum$4(value) {
22312
+ function toNum$5(value) {
21333
22313
  if (typeof value === 'string') {
21334
22314
  return value ? +value : void 0;
21335
22315
  }
@@ -21338,44 +22318,44 @@ function toNum$4(value) {
21338
22318
  }
21339
22319
  return void 0;
21340
22320
  }
21341
- var getColumns$7 = function getColumns(_ref) {
22321
+ var getColumns$9 = function getColumns(_ref) {
21342
22322
  var _ref$text = _ref.text,
21343
22323
  disabled = _ref.disabled,
21344
22324
  updateHandle = _ref.updateHandle,
21345
22325
  updateDataHandle = _ref.updateDataHandle;
21346
22326
  return {
21347
22327
  //巨益商品信息
21348
- JY_GOODS: [{
21349
- dataIndex: 'productName',
21350
- title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
22328
+ JKY_GOODS: [{
22329
+ dataIndex: 'goodsNo',
22330
+ title: "\u8D27\u54C1\u7F16\u53F7",
21351
22331
  align: 'center',
21352
22332
  ellipsis: true,
21353
22333
  width: 150,
21354
22334
  render: renderTextEllipsis
21355
22335
  }, {
21356
- dataIndex: 'productCode',
21357
- title: "\u7CFB\u7EDF\u5546\u54C1\u7F16\u7801",
22336
+ dataIndex: 'goodsName',
22337
+ title: "\u8D27\u54C1\u540D\u79F0",
21358
22338
  align: 'center',
21359
22339
  ellipsis: true,
21360
22340
  width: 150,
21361
22341
  render: renderTextEllipsis
21362
22342
  }, {
21363
- dataIndex: 'productId',
21364
- title: "\u7CFB\u7EDF\u5546\u54C1ID",
22343
+ dataIndex: 'goodsId',
22344
+ title: "\u8D27\u54C1ID",
21365
22345
  align: 'center',
21366
22346
  ellipsis: true,
21367
22347
  width: 150,
21368
22348
  render: renderTextEllipsis
21369
22349
  }, {
21370
- dataIndex: 'skuName',
21371
- title: "\u7CFB\u7EDF\u89C4\u683C\u540D\u79F0",
22350
+ dataIndex: 'barcode',
22351
+ title: "\u8D27\u54C1\u6761\u7801",
21372
22352
  align: 'center',
21373
22353
  ellipsis: true,
21374
22354
  width: 150,
21375
22355
  render: renderTextEllipsis
21376
22356
  }, {
21377
- dataIndex: 'skuCode',
21378
- title: "\u7CFB\u7EDF\u89C4\u683C\u7F16\u7801",
22357
+ dataIndex: 'specName',
22358
+ title: "\u89C4\u683C\u540D\u79F0",
21379
22359
  align: 'center',
21380
22360
  ellipsis: true,
21381
22361
  width: 150,
@@ -21387,82 +22367,18 @@ var getColumns$7 = function getColumns(_ref) {
21387
22367
  ellipsis: true,
21388
22368
  width: 150,
21389
22369
  render: renderTextEllipsis
21390
- },
21391
- // {
21392
- // dataIndex: 'goodsName',
21393
- // title: `货品名称`,
21394
- // width: 250,
21395
- // },
21396
- // {
21397
- // dataIndex: 'goodsCode',
21398
- // title: `货品编号`,
21399
- // width: 200,
21400
- // },
21401
- // {
21402
- // dataIndex: 'goodsId',
21403
- // title: `货品ID`,
21404
- // width: 150,
21405
- // },
21406
- {
21407
- dataIndex: 'goodsClass',
21408
- title: "\u8D27\u54C1\u7C7B\u522B",
21409
- width: 150,
21410
- render: renderTextEllipsis
21411
- }, {
21412
- dataIndex: 'code',
21413
- title: "\u6761\u7801",
21414
- width: 150,
21415
- render: renderTextEllipsis
21416
- },
21417
- // {
21418
- // dataIndex: 'specName',
21419
- // title: `规格名称`,
21420
- // align: 'center',
21421
- // ellipsis: true,
21422
- // width: 200,
21423
- // },
21424
- // {
21425
- // dataIndex: 'specCode',
21426
- // title: `规格编号`,
21427
- // align: 'center',
21428
- // ellipsis: true,
21429
- // width: 150,
21430
- // },
21431
- {
21432
- dataIndex: 'mallProductName',
21433
- title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
21434
- align: 'center',
21435
- ellipsis: true,
21436
- width: 250,
21437
- render: renderTextEllipsis
21438
22370
  }, {
21439
- dataIndex: 'mallProductOutCode',
21440
- title: "\u5E73\u53F0\u5546\u54C1\u7F16\u7801",
22371
+ dataIndex: 'skuImgUrl',
22372
+ title: "\u89C4\u683C\u56FE\u7247",
21441
22373
  align: 'center',
21442
22374
  ellipsis: true,
21443
22375
  width: 150,
21444
- render: renderTextEllipsis
21445
- }, {
21446
- dataIndex: 'mallProductId',
21447
- title: "\u5E73\u53F0\u5546\u54C1ID",
21448
- align: 'center',
21449
- ellipsis: true,
21450
- width: 250,
21451
- render: renderTextEllipsis
21452
- }, {
21453
- dataIndex: 'mallSkuName',
21454
- title: "\u5E73\u53F0\u89C4\u683C\u540D\u79F0",
21455
- align: 'center',
21456
- ellipsis: true,
21457
- width: 250,
21458
- render: renderTextEllipsis
21459
- }, {
21460
- dataIndex: 'mallSkuId',
21461
- title: "\u5E73\u53F0\u89C4\u683CID",
21462
- align: 'center',
21463
- ellipsis: true,
21464
- width: 250,
21465
- render: renderTextEllipsis
22376
+ render: function render(val) {
22377
+ return /*#__PURE__*/React__default['default'].createElement(ApaasImage, {
22378
+ width: 30,
22379
+ src: val
22380
+ });
22381
+ }
21466
22382
  }, {
21467
22383
  dataIndex: 'sellCount',
21468
22384
  title: "\u6570\u91CF",
@@ -21478,11 +22394,16 @@ var getColumns$7 = function getColumns(_ref) {
21478
22394
  onChange: function onChange(num) {
21479
22395
  updateDataHandle({
21480
22396
  sellCount: num,
21481
- sellTotal: num && isNumberOrNumberString$2(record.sellPrice) ? num * record.sellPrice : null
22397
+ sellTotal: num && isNumberOrNumberString$3(record.sellPrice) ? num * record.sellPrice : null
21482
22398
  }, index);
21483
22399
  }
21484
22400
  }) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
21485
22401
  }
22402
+ }, {
22403
+ dataIndex: 'actualSendCount',
22404
+ title: "\u5B9E\u53D1\u6570\u91CF",
22405
+ width: 150,
22406
+ render: renderTextEllipsis
21486
22407
  }, {
21487
22408
  dataIndex: 'sellPrice',
21488
22409
  title: "\u5355\u4EF7",
@@ -21498,30 +22419,42 @@ var getColumns$7 = function getColumns(_ref) {
21498
22419
  onChange: function onChange(num) {
21499
22420
  updateDataHandle({
21500
22421
  sellPrice: num,
21501
- sellTotal: num && isNumberOrNumberString$2(record.sellCount) ? num * record.sellCount : null
22422
+ sellTotal: num && isNumberOrNumberString$3(record.sellCount) ? num * record.sellCount : null
21502
22423
  }, index);
21503
22424
  }
21504
22425
  }) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
21505
22426
  }
21506
- }, {
21507
- dataIndex: 'mallSellingPrice',
21508
- title: "\u5E73\u53F0\u5546\u54C1\u4EF7\u683C",
21509
- width: 150
21510
22427
  }, {
21511
22428
  dataIndex: 'sellTotal',
21512
22429
  title: "\u91D1\u989D",
21513
22430
  width: 150
21514
22431
  }, {
21515
- dataIndex: 'settlementPrice',
21516
- title: "\u7ED3\u7B97\u4EF7",
22432
+ dataIndex: 'discountTotal',
22433
+ title: "\u62B5\u6263\u91D1\u989D",
21517
22434
  width: 150
21518
22435
  }, {
21519
- dataIndex: 'divideOrderFee',
21520
- title: "\u5206\u644A\u5B9E\u4ED8\u91D1\u989D",
22436
+ dataIndex: 'shareFavourableFee',
22437
+ title: "\u5206\u644A\u91D1\u989D",
21521
22438
  width: 150
21522
22439
  }, {
21523
- dataIndex: 'bfit',
21524
- title: "\u662F\u5426\u7EC4\u5408\u88C5",
22440
+ dataIndex: 'shareFavourableAfterFee',
22441
+ title: "\u5206\u644A\u540E\u91D1\u989D",
22442
+ width: 150
22443
+ }, {
22444
+ dataIndex: 'customerPrice',
22445
+ title: "\u7EC8\u7AEF\u9500\u552E\u5355\u4EF7",
22446
+ width: 150
22447
+ }, {
22448
+ dataIndex: 'customerTotal',
22449
+ title: "\u7EC8\u7AEF\u9500\u552E\u91D1\u989D",
22450
+ width: 150
22451
+ }, {
22452
+ dataIndex: 'divideSellTotal',
22453
+ title: "\u5B9E\u4ED8\u91D1\u989D",
22454
+ width: 150
22455
+ }, {
22456
+ dataIndex: 'isGift',
22457
+ title: "\u662F\u5426\u8D60\u54C1",
21525
22458
  width: 150,
21526
22459
  render: function render(val, record, index) {
21527
22460
  return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
@@ -21533,30 +22466,45 @@ var getColumns$7 = function getColumns(_ref) {
21533
22466
  },
21534
22467
  value: val,
21535
22468
  onChange: function onChange(value) {
21536
- updateHandle(value, index, 'bfit');
22469
+ updateHandle(value, index, 'isGift');
21537
22470
  },
21538
22471
  options: [{
21539
22472
  label: '是',
21540
- value: 'True'
22473
+ value: '1'
21541
22474
  }, {
21542
22475
  label: '否',
21543
- value: 'False'
22476
+ value: '0'
21544
22477
  }]
21545
- }) : /*#__PURE__*/React__default['default'].createElement("span", null, val === 'True' ? '是' : '否');
22478
+ }) : /*#__PURE__*/React__default['default'].createElement("span", null, val === '1' ? '是' : '否');
21546
22479
  }
21547
22480
  }, {
21548
- dataIndex: 'combinationName',
21549
- title: "\u7EC4\u5408\u5546\u54C1\u540D\u79F0",
21550
- width: 150,
21551
- render: renderTextEllipsis
21552
- }, {
21553
- dataIndex: 'combinationCode',
21554
- title: "\u7EC4\u5408\u5546\u54C1\u7F16\u7801",
22481
+ dataIndex: 'isFit',
22482
+ title: "\u662F\u5426\u7EC4\u5408\u88C5",
21555
22483
  width: 150,
21556
- render: renderTextEllipsis
22484
+ render: function render(val, record, index) {
22485
+ return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
22486
+ dropdownStyle: {
22487
+ zIndex: 2000
22488
+ },
22489
+ getPopupContainer: function getPopupContainer() {
22490
+ return document.body;
22491
+ },
22492
+ value: val,
22493
+ onChange: function onChange(value) {
22494
+ updateHandle(value, index, 'isFit');
22495
+ },
22496
+ options: [{
22497
+ label: '是',
22498
+ value: '1'
22499
+ }, {
22500
+ label: '否',
22501
+ value: '0'
22502
+ }]
22503
+ }) : /*#__PURE__*/React__default['default'].createElement("span", null, val === '1' ? '是' : '否');
22504
+ }
21557
22505
  }, {
21558
- dataIndex: 'gift',
21559
- title: "\u662F\u5426\u8D60\u54C1",
22506
+ dataIndex: 'isPresell',
22507
+ title: "\u662F\u5426\u9884\u552E\u8D27\u54C1",
21560
22508
  width: 150,
21561
22509
  render: function render(val, record, index) {
21562
22510
  return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
@@ -21568,7 +22516,7 @@ var getColumns$7 = function getColumns(_ref) {
21568
22516
  },
21569
22517
  value: val,
21570
22518
  onChange: function onChange(value) {
21571
- updateHandle(value, index, 'gift');
22519
+ updateHandle(value, index, 'isPresell');
21572
22520
  },
21573
22521
  options: [{
21574
22522
  label: '是',
@@ -21579,115 +22527,169 @@ var getColumns$7 = function getColumns(_ref) {
21579
22527
  }]
21580
22528
  }) : /*#__PURE__*/React__default['default'].createElement("span", null, val === '1' ? '是' : '否');
21581
22529
  }
21582
- }].map(function (item) {
21583
- return _objectSpread2(_objectSpread2({}, item), {}, {
21584
- align: 'center',
21585
- ellipsis: true
21586
- });
21587
- }),
21588
- // 巨益补发商品信息
21589
- JY_REISSUE_GOODS: [{
21590
- dataIndex: 'productName',
21591
- title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
22530
+ }, {
22531
+ dataIndex: 'brandName',
22532
+ title: "\u54C1\u724C",
21592
22533
  align: 'center',
21593
22534
  ellipsis: true,
21594
- width: 150,
22535
+ width: 200,
21595
22536
  render: renderTextEllipsis
21596
22537
  }, {
21597
- dataIndex: 'productCode',
21598
- title: "\u7CFB\u7EDF\u5546\u54C1\u7F16\u7801",
22538
+ dataIndex: 'cateName',
22539
+ title: "\u8D27\u54C1\u7C7B\u522B",
21599
22540
  align: 'center',
21600
22541
  ellipsis: true,
21601
22542
  width: 150,
21602
22543
  render: renderTextEllipsis
21603
22544
  }, {
21604
- dataIndex: 'productId',
21605
- title: "\u7CFB\u7EDF\u5546\u54C1ID",
21606
- align: 'center',
22545
+ dataIndex: 'goodsTags',
22546
+ title: "\u8D27\u54C1\u6807\u7B7E",
22547
+ align: 'center',
22548
+ ellipsis: true,
22549
+ width: 250,
22550
+ render: renderTextEllipsis
22551
+ }, {
22552
+ dataIndex: 'goodsMemo',
22553
+ title: "\u8D27\u54C1\u5907\u6CE8",
22554
+ align: 'center',
22555
+ ellipsis: true,
22556
+ width: 250,
22557
+ render: renderTextEllipsis
22558
+ }, {
22559
+ dataIndex: 'tradeGoodsNo',
22560
+ title: "\u4EA4\u6613\u8D27\u54C1\u7F16\u53F7",
22561
+ align: 'center',
22562
+ ellipsis: true,
22563
+ width: 250,
22564
+ render: renderTextEllipsis
22565
+ }, {
22566
+ dataIndex: 'tradeGoodsName',
22567
+ title: "\u4EA4\u6613\u8D27\u54C1\u540D\u79F0",
22568
+ ellipsis: true,
22569
+ width: 250,
22570
+ render: renderTextEllipsis
22571
+ }, {
22572
+ dataIndex: 'tradeGoodsSpec',
22573
+ title: "\u4EA4\u6613\u89C4\u683C\u540D\u79F0",
22574
+ ellipsis: true,
22575
+ width: 250,
22576
+ render: renderTextEllipsis
22577
+ }, {
22578
+ dataIndex: 'sourceSubtradeNo',
22579
+ title: "\u7F51\u5E97\u5B50\u8BA2\u5355\u53F7",
22580
+ ellipsis: true,
22581
+ width: 250,
22582
+ render: renderTextEllipsis
22583
+ }, {
22584
+ dataIndex: 'platGoodsId',
22585
+ title: "\u5E73\u53F0\u5546\u54C1ID",
21607
22586
  ellipsis: true,
21608
- width: 150,
22587
+ width: 250,
21609
22588
  render: renderTextEllipsis
21610
22589
  }, {
21611
- dataIndex: 'skuName',
21612
- title: "\u7CFB\u7EDF\u89C4\u683C\u540D\u79F0",
21613
- align: 'center',
22590
+ dataIndex: 'subTradeId',
22591
+ title: "\u5546\u54C1\u660E\u7EC6ID",
21614
22592
  ellipsis: true,
21615
- width: 150,
22593
+ width: 250,
21616
22594
  render: renderTextEllipsis
21617
22595
  }, {
21618
- dataIndex: 'skuCode',
21619
- title: "\u7CFB\u7EDF\u89C4\u683C\u7F16\u7801",
21620
- align: 'center',
22596
+ dataIndex: 'batchNo',
22597
+ title: "\u6279\u6B21\u53F7",
21621
22598
  ellipsis: true,
21622
- width: 150,
22599
+ width: 250,
21623
22600
  render: renderTextEllipsis
21624
22601
  }, {
21625
- dataIndex: 'specId',
21626
- title: "\u89C4\u683CID",
21627
- align: 'center',
22602
+ dataIndex: 'sendCount',
22603
+ title: "\u6279\u6B21\u6570\u91CF",
21628
22604
  ellipsis: true,
21629
- width: 150,
22605
+ width: 250,
21630
22606
  render: renderTextEllipsis
21631
22607
  }, {
21632
- dataIndex: 'goodsClass',
21633
- title: "\u8D27\u54C1\u7C7B\u522B",
21634
- width: 150,
22608
+ dataIndex: 'productDate',
22609
+ title: "\u751F\u4EA7\u65E5\u671F",
22610
+ ellipsis: true,
22611
+ width: 250,
21635
22612
  render: renderTextEllipsis
21636
22613
  }, {
21637
- dataIndex: 'code',
21638
- title: "\u6761\u7801",
22614
+ dataIndex: 'expireDate',
22615
+ title: "\u5230\u671F\u65E5\u671F",
22616
+ ellipsis: true,
22617
+ width: 250,
22618
+ render: renderTextEllipsis
22619
+ }].map(function (item) {
22620
+ return _objectSpread2(_objectSpread2({}, item), {}, {
22621
+ align: 'center',
22622
+ ellipsis: true
22623
+ });
22624
+ }),
22625
+ // 巨益补发商品信息
22626
+ JKY_REISSUE_GOODS: [{
22627
+ dataIndex: 'goodsNo',
22628
+ title: "\u8D27\u54C1\u7F16\u53F7",
22629
+ align: 'center',
22630
+ ellipsis: true,
21639
22631
  width: 150,
21640
22632
  render: renderTextEllipsis
21641
22633
  }, {
21642
- dataIndex: 'mallProductName',
21643
- title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
22634
+ dataIndex: 'goodsName',
22635
+ title: "\u8D27\u54C1\u540D\u79F0",
21644
22636
  align: 'center',
21645
22637
  ellipsis: true,
21646
22638
  width: 150,
21647
22639
  render: renderTextEllipsis
21648
22640
  }, {
21649
- dataIndex: 'mallProductOutCode',
21650
- title: "\u5E73\u53F0\u5546\u54C1\u7F16\u7801",
22641
+ dataIndex: 'goodsId',
22642
+ title: "\u8D27\u54C1ID",
21651
22643
  align: 'center',
21652
22644
  ellipsis: true,
21653
22645
  width: 150,
21654
22646
  render: renderTextEllipsis
21655
22647
  }, {
21656
- dataIndex: 'mallProductId',
21657
- title: "\u5E73\u53F0\u5546\u54C1ID",
22648
+ dataIndex: 'barcode',
22649
+ title: "\u8D27\u54C1\u6761\u7801",
21658
22650
  align: 'center',
21659
22651
  ellipsis: true,
21660
22652
  width: 150,
21661
22653
  render: renderTextEllipsis
21662
22654
  }, {
21663
- dataIndex: 'mallSkuName',
21664
- title: "\u5E73\u53F0\u89C4\u683C\u540D\u79F0",
22655
+ dataIndex: 'specName',
22656
+ title: "\u89C4\u683C\u540D\u79F0",
21665
22657
  align: 'center',
21666
22658
  ellipsis: true,
21667
22659
  width: 150,
21668
22660
  render: renderTextEllipsis
21669
22661
  }, {
21670
- dataIndex: 'mallSkuId',
21671
- title: "\u5E73\u53F0\u89C4\u683CID",
22662
+ dataIndex: 'specId',
22663
+ title: "\u89C4\u683CID",
21672
22664
  align: 'center',
21673
22665
  ellipsis: true,
21674
22666
  width: 150,
21675
22667
  render: renderTextEllipsis
22668
+ }, {
22669
+ dataIndex: 'skuImgUrl',
22670
+ title: "\u89C4\u683C\u56FE\u7247",
22671
+ width: 150,
22672
+ render: function render(val) {
22673
+ return /*#__PURE__*/React__default['default'].createElement(ApaasImage, {
22674
+ width: 30,
22675
+ src: val
22676
+ });
22677
+ }
21676
22678
  }, {
21677
22679
  dataIndex: 'sellCount',
21678
- title: "\u6570\u91CF",
22680
+ title: "\u53D1\u8D27\u6570\u91CF",
21679
22681
  width: 100,
21680
22682
  validator: function validator(_rule, value) {
21681
- var productName = '';
21682
- if (((value === null || value === void 0 ? void 0 : value.jyReissueGoods) || []).some(function (goods) {
21683
- var qty = toNum$4(goods === null || goods === void 0 ? void 0 : goods.sellCount);
22683
+ var goodsName = '';
22684
+ if (((value === null || value === void 0 ? void 0 : value.jkyReissueGoods) || []).some(function (goods) {
22685
+ var qty = toNum$5(goods === null || goods === void 0 ? void 0 : goods.sellCount);
21684
22686
  var res = typeof qty === 'number' ? qty < 1 : true;
21685
22687
  if (res) {
21686
- productName = (goods === null || goods === void 0 ? void 0 : goods.productName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.productName, "]") : '';
22688
+ goodsName = (goods === null || goods === void 0 ? void 0 : goods.goodsName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodsName, "]") : '';
21687
22689
  }
21688
22690
  return res;
21689
22691
  })) {
21690
- return Promise.reject("".concat(productName, "\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
22692
+ return Promise.reject("".concat(goodsName, "\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
21691
22693
  }
21692
22694
  },
21693
22695
  render: function render(val, record, index) {
@@ -21701,7 +22703,7 @@ var getColumns$7 = function getColumns(_ref) {
21701
22703
  onChange: function onChange(num) {
21702
22704
  updateDataHandle({
21703
22705
  sellCount: num,
21704
- sellTotal: num && isNumberOrNumberString$2(record.sellPrice) ? num * record.sellPrice : null
22706
+ sellTotal: num && isNumberOrNumberString$3(record.sellPrice) ? num * record.sellPrice : null
21705
22707
  }, index);
21706
22708
  }
21707
22709
  }) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
@@ -21721,131 +22723,87 @@ var getColumns$7 = function getColumns(_ref) {
21721
22723
  onChange: function onChange(num) {
21722
22724
  updateDataHandle({
21723
22725
  sellPrice: num,
21724
- sellTotal: num && isNumberOrNumberString$2(record.sellCount) ? num * record.sellCount : null
22726
+ sellTotal: num && isNumberOrNumberString$3(record.sellCount) ? num * record.sellCount : null
21725
22727
  }, index);
21726
22728
  }
21727
22729
  }) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
21728
22730
  }
21729
- }, {
21730
- dataIndex: 'mallSellingPrice',
21731
- title: "\u5E73\u53F0\u5546\u54C1\u4EF7\u683C",
21732
- width: 150
21733
22731
  }, {
21734
22732
  dataIndex: 'sellTotal',
21735
- title: "\u91D1\u989D",
21736
- width: 150
22733
+ title: "\u603B\u91D1\u989D",
22734
+ width: 150,
22735
+ render: function render(val, record, index) {
22736
+ return record.sellCount * record.sellPrice;
22737
+ }
21737
22738
  }, {
21738
- dataIndex: 'bfit',
21739
- title: "\u662F\u5426\u7EC4\u5408\u88C5",
22739
+ dataIndex: 'reason',
22740
+ title: "\u9000\u6362\u539F\u56E0",
22741
+ width: 250,
22742
+ render: function render(val, record, index) {
22743
+ return /*#__PURE__*/React__default['default'].createElement(ApaasInput, {
22744
+ onChange: function onChange(value) {
22745
+ updateHandle(value, index, 'reason');
22746
+ }
22747
+ });
22748
+ }
22749
+ }, {
22750
+ dataIndex: 'isGift',
22751
+ title: "\u662F\u5426\u8D60\u54C1",
21740
22752
  width: 150,
21741
22753
  render: function render(val, record, index) {
21742
22754
  return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
21743
- dropdownStyle: {
21744
- zIndex: 2000
21745
- },
21746
- getPopupContainer: function getPopupContainer() {
21747
- return document.body;
21748
- },
21749
22755
  value: val,
21750
22756
  onChange: function onChange(value) {
21751
- updateHandle(value, index, 'bfit');
22757
+ updateHandle(value, index, 'isGift');
21752
22758
  },
21753
22759
  options: [{
21754
22760
  label: '是',
21755
- value: 'True'
22761
+ value: '1'
21756
22762
  }, {
21757
22763
  label: '否',
21758
- value: 'False'
22764
+ value: '0'
21759
22765
  }]
21760
- }) : /*#__PURE__*/React__default['default'].createElement("span", null, val === 'True' ? '是' : '否');
22766
+ }) : /*#__PURE__*/React__default['default'].createElement("span", null, val === '1' ? '是' : '否');
21761
22767
  }
21762
22768
  }, {
21763
- dataIndex: 'combinationName',
21764
- title: "\u7EC4\u5408\u5546\u54C1\u540D\u79F0",
21765
- width: 150,
21766
- render: renderTextEllipsis
21767
- }, {
21768
- dataIndex: 'combinationCode',
21769
- title: "\u7EC4\u5408\u5546\u54C1\u7F16\u7801",
21770
- width: 150,
21771
- render: renderTextEllipsis
21772
- }, {
21773
- dataIndex: 'gift',
21774
- title: "\u662F\u5426\u8D60\u54C1",
22769
+ dataIndex: 'isFit',
22770
+ title: "\u662F\u5426\u7EC4\u5408\u88C5",
21775
22771
  width: 150,
21776
22772
  render: function render(val, record, index) {
21777
22773
  return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
21778
- dropdownStyle: {
21779
- zIndex: 2000
21780
- },
21781
- getPopupContainer: function getPopupContainer() {
21782
- return document.body;
21783
- },
21784
22774
  value: val,
21785
22775
  onChange: function onChange(value) {
21786
- updateHandle(value, index, 'gift');
22776
+ updateHandle(value, index, 'isFit');
21787
22777
  },
21788
22778
  options: [{
21789
22779
  label: '是',
21790
- value: '1'
22780
+ value: 'True'
21791
22781
  }, {
21792
22782
  label: '否',
21793
- value: '0'
22783
+ value: 'False'
21794
22784
  }]
21795
- }) : /*#__PURE__*/React__default['default'].createElement("span", null, val === '1' ? '是' : '否');
22785
+ }) : /*#__PURE__*/React__default['default'].createElement("span", null, val === 'True' ? '是' : '否');
21796
22786
  }
21797
- }].map(function (item) {
21798
- return _objectSpread2(_objectSpread2({}, item), {}, {
21799
- align: 'center',
21800
- ellipsis: true
21801
- });
21802
- })
21803
- };
21804
- };
21805
-
21806
- var getColumns$8 = function getColumns(_ref) {
21807
- var _ref$text = _ref.text,
21808
- disabled = _ref.disabled,
21809
- updateHandle = _ref.updateHandle,
21810
- updateDataHandle = _ref.updateDataHandle;
21811
- return {
21812
- //[SKX]商品信息(ON)
21813
- SKX_GOODS: [{
21814
- dataIndex: 'skuEcode',
21815
- title: "[SKX]\u53D1\u8D27\u5355\u660E\u7EC6-skuEcode",
21816
- width: 250
21817
22787
  }, {
21818
- dataIndex: 'subOrderId',
21819
- title: "[SKX]\u53D1\u8D27\u5355-\u5B50\u8BA2\u5355\u53F7",
21820
- width: 300
22788
+ dataIndex: 'brandName',
22789
+ title: "\u54C1\u724C",
22790
+ width: 150,
22791
+ render: renderTextEllipsis
21821
22792
  }, {
21822
- dataIndex: 'onBillNo',
21823
- title: "[SKX]ON\u51FA\u5E93\u901A\u77E5\u5355\u53F7",
21824
- width: 200
22793
+ dataIndex: 'cateName',
22794
+ title: "\u8D27\u54C1\u7C7B\u522B",
22795
+ width: 150,
22796
+ render: renderTextEllipsis
21825
22797
  }].map(function (item) {
21826
22798
  return _objectSpread2(_objectSpread2({}, item), {}, {
21827
22799
  align: 'center',
21828
22800
  ellipsis: true
21829
22801
  });
21830
- }),
21831
- //[SKX]退货商品信息(TH)
21832
- SKX_RETURN_GOODS: [{
21833
- dataIndex: 'returnSkuEcode',
21834
- title: "[SKX]\u9000\u8D27\u5355\u660E\u7EC6-returnSkuEcode",
21835
- width: 300
21836
- }, {
21837
- dataIndex: 'returnSubOrderId',
21838
- title: "[SKX]\u9000\u8D27\u5355-\u5B50\u8BA2\u5355\u53F7",
21839
- width: 300
21840
- }, {
21841
- dataIndex: 'returnBillNo',
21842
- title: "[SKX]TH\u9000\u6362\u8D27\u5355\u53F7",
21843
- width: 200
21844
- }]
22802
+ })
21845
22803
  };
21846
22804
  };
21847
22805
 
21848
- var getColumns$9 = function getColumns(_ref) {
22806
+ var getColumns$a = function getColumns(_ref) {
21849
22807
  var _ref$text = _ref.text,
21850
22808
  text = _ref$text === void 0 ? '' : _ref$text,
21851
22809
  disabled = _ref.disabled,
@@ -21962,7 +22920,7 @@ var getColumnsMap$1 = function getColumnsMap(args) {
21962
22920
  disabled = _ref.disabled,
21963
22921
  updateHandle = _ref.updateHandle,
21964
22922
  updateDataHandle = _ref.updateDataHandle;
21965
- return _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, getColumns$1({
22923
+ return _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, getColumns$1({
21966
22924
  text: text,
21967
22925
  disabled: disabled,
21968
22926
  updateHandle: updateHandle
@@ -22000,8 +22958,13 @@ var getColumnsMap$1 = function getColumnsMap(args) {
22000
22958
  text: text,
22001
22959
  disabled: disabled,
22002
22960
  updateHandle: updateHandle
22961
+ })), getColumns$9({
22962
+ text: text,
22963
+ disabled: disabled,
22964
+ updateHandle: updateHandle,
22965
+ updateDataHandle: updateDataHandle
22003
22966
  })), {}, {
22004
- default: getColumns$9({
22967
+ default: getColumns$a({
22005
22968
  text: text,
22006
22969
  disabled: disabled,
22007
22970
  updateHandle: updateHandle
@@ -22148,6 +23111,9 @@ var isErpType = {
22148
23111
  },
22149
23112
  isJy: function isJy(type) {
22150
23113
  return ['JY_GOODS', 'JY_REISSUE_GOODS'].includes(type);
23114
+ },
23115
+ isJky: function isJky(type) {
23116
+ return ['JKY_GOODS', 'JKY_REISSUE_GOODS'].includes(type);
22151
23117
  }
22152
23118
  };
22153
23119
  var processGoods$1 = function processGoods(_ref) {
@@ -22434,6 +23400,8 @@ var GoodsModalMap = {
22434
23400
  KM_REISSUE_GOODS: KmGoodsModal,
22435
23401
  JY_GOODS: JyGoodsModal$1,
22436
23402
  JY_REISSUE_GOODS: JyGoodsModal$1,
23403
+ JKY_GOODS: JkyGoodsModal$1,
23404
+ JKY_REISSUE_GOODS: JkyGoodsModal$1,
22437
23405
  OTHER_GOODS: GoodsModal$2
22438
23406
  };
22439
23407
  var systemOrderNoMap = {
@@ -22446,6 +23414,8 @@ var systemOrderNoMap = {
22446
23414
  WLN_GOODS: 'tradeNo',
22447
23415
  JY_GOODS: 'tradeNo',
22448
23416
  JY_REISSUE_GOODS: 'tradeNo',
23417
+ JKY_GOODS: 'tradeNo',
23418
+ JKY_REISSUE_GOODS: 'tradeNo',
22449
23419
  KM_REISSUE_GOODS: 'sid',
22450
23420
  JST_REISSUE_GOODS: 'oId',
22451
23421
  GY_REISSUE_GOODS: 'code',
@@ -22620,6 +23590,9 @@ var getButtonText = function getButtonText() {
22620
23590
  if (['JY_GOODS', 'JY_REISSUE_GOODS'].includes(type)) {
22621
23591
  return '选择巨益ERP商品';
22622
23592
  }
23593
+ if (['JKY_GOODS', 'JKY_REISSUE_GOODS'].includes(type)) {
23594
+ return '选择吉客云ERP商品';
23595
+ }
22623
23596
  return '选择商品';
22624
23597
  };
22625
23598
  var GoodItem$1 = function GoodItem(props) {
@@ -22677,7 +23650,7 @@ var GoodItem$1 = function GoodItem(props) {
22677
23650
  var jstReturnGoods = antd.Form === null || antd.Form === void 0 ? void 0 : antd.Form.useWatch('3979edfd6d', form);
22678
23651
  var isShowSelectTradeGoods = type !== 'JST_EXCHANGE_GOODS' || (jstReturnGoods === null || jstReturnGoods === void 0 ? void 0 : jstReturnGoods.jstSystemOrderNo);
22679
23652
  // 判断是否为是否展示系统单筛选项
22680
- var isShowSelect = type && ['WDT_GOODS', 'BS_E3_GOODS', 'GY_GOODS', 'JST_GOODS', 'WLN_GOODS', 'KM_GOODS', 'JY_GOODS', 'JY_REISSUE_GOODS', 'GY_REISSUE_GOODS', 'KM_REISSUE_GOODS', 'BS_E3_REISSUE_GOODS', 'WDT_REISSUE_GOODS', 'JST_REISSUE_GOODS'].includes(type) || false;
23653
+ var isShowSelect = type && ['WDT_GOODS', 'BS_E3_GOODS', 'GY_GOODS', 'JST_GOODS', 'WLN_GOODS', 'KM_GOODS', 'JY_GOODS', 'JY_REISSUE_GOODS', 'JKY_GOODS', 'JKY_REISSUE_GOODS', 'GY_REISSUE_GOODS', 'KM_REISSUE_GOODS', 'BS_E3_REISSUE_GOODS', 'WDT_REISSUE_GOODS', 'JST_REISSUE_GOODS'].includes(type) || false;
22681
23654
  var isReissueType = type && ['GY_REISSUE_GOODS', 'KM_REISSUE_GOODS', 'BS_E3_REISSUE_GOODS', 'WDT_REISSUE_GOODS', 'JST_REISSUE_GOODS', 'JY_REISSUE_GOODS'].includes(type) || false;
22682
23655
  var refModal = React.useRef();
22683
23656
  console.debug('表格数据', value);
@@ -22769,6 +23742,8 @@ var GoodItem$1 = function GoodItem(props) {
22769
23742
  case 'KM_REISSUE_GOODS':
22770
23743
  case 'JY_GOODS':
22771
23744
  case 'JY_REISSUE_GOODS':
23745
+ case 'JKY_GOODS':
23746
+ case 'JKY_REISSUE_GOODS':
22772
23747
  case 'SKX_GOODS':
22773
23748
  case 'SKX_RETURN_GOODS':
22774
23749
  {
@@ -23973,7 +24948,7 @@ var jyUtils = {
23973
24948
  };
23974
24949
 
23975
24950
  var singletonMap$7 = new Map();
23976
- var getOrderListSingleton$2 = function getOrderListSingleton(orderNo) {
24951
+ var getJkyOrderListSingleton = function getJkyOrderListSingleton(orderNo) {
23977
24952
  if (!singletonMap$7.has(orderNo)) {
23978
24953
  var p = new Promise(function (resolve, reject) {
23979
24954
  var doReject = function doReject(err) {
@@ -23981,6 +24956,50 @@ var getOrderListSingleton$2 = function getOrderListSingleton(orderNo) {
23981
24956
  singletonMap$7.delete(orderNo);
23982
24957
  reject(err);
23983
24958
  };
24959
+ extendRequest('/qy/gdfw/order/jkyOrderDetail', {
24960
+ method: 'post',
24961
+ data: {
24962
+ billNo: orderNo
24963
+ }
24964
+ }).then(function (res) {
24965
+ if (res === null || res === void 0 ? void 0 : res.success) {
24966
+ var _res$data, _res$data$tradeOrderD, _res$data3;
24967
+ if (res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 : (_res$data$tradeOrderD = _res$data.tradeOrderDetails) === null || _res$data$tradeOrderD === void 0 ? void 0 : _res$data$tradeOrderD.length) {
24968
+ var _filterJkyOrders, _res$data2;
24969
+ res.data.trades = (_filterJkyOrders = kmkfUtils.filterJkyOrders(res === null || res === void 0 ? void 0 : (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.tradeOrderDetails, orderNo)) === null || _filterJkyOrders === void 0 ? void 0 : _filterJkyOrders.map(function (item) {
24970
+ return _objectSpread2(_objectSpread2({}, item), {}, {
24971
+ tradeType: kmkfUtils.JKY_ORDER_TYPE_MAP[item.tradeType],
24972
+ tradeStatus: kmkfUtils.JKY_ORDER_STATUS_MAP[item.tradeStatus]
24973
+ });
24974
+ });
24975
+ }
24976
+ resolve(((_res$data3 = res.data) === null || _res$data3 === void 0 ? void 0 : _res$data3.trades) || []);
24977
+ // 延迟10秒清除,保证订单的时效性
24978
+ setTimeout(function () {
24979
+ singletonMap$7.delete(orderNo);
24980
+ }, 1000 * 10);
24981
+ } else {
24982
+ doReject(res);
24983
+ }
24984
+ }).catch(doReject);
24985
+ });
24986
+ singletonMap$7.set(orderNo, p);
24987
+ }
24988
+ return singletonMap$7.get(orderNo);
24989
+ };
24990
+ var jkyUtils = {
24991
+ getJkyOrderListSingleton: getJkyOrderListSingleton
24992
+ };
24993
+
24994
+ var singletonMap$8 = new Map();
24995
+ var getOrderListSingleton$2 = function getOrderListSingleton(orderNo) {
24996
+ if (!singletonMap$8.has(orderNo)) {
24997
+ var p = new Promise(function (resolve, reject) {
24998
+ var doReject = function doReject(err) {
24999
+ // 清空掉错误的请求记录
25000
+ singletonMap$8.delete(orderNo);
25001
+ reject(err);
25002
+ };
23984
25003
  extendRequest('/qy/gdfw/order/kmErpOrderDetail', {
23985
25004
  method: 'post',
23986
25005
  data: {
@@ -24004,16 +25023,16 @@ var getOrderListSingleton$2 = function getOrderListSingleton(orderNo) {
24004
25023
  }
24005
25024
  // 延迟10秒清除,保证订单的时效性
24006
25025
  setTimeout(function () {
24007
- singletonMap$7.delete(orderNo);
25026
+ singletonMap$8.delete(orderNo);
24008
25027
  }, 1000 * 10);
24009
25028
  } else {
24010
25029
  doReject(data);
24011
25030
  }
24012
25031
  }).catch(doReject);
24013
25032
  });
24014
- singletonMap$7.set(orderNo, p);
25033
+ singletonMap$8.set(orderNo, p);
24015
25034
  }
24016
- return singletonMap$7.get(orderNo);
25035
+ return singletonMap$8.get(orderNo);
24017
25036
  };
24018
25037
  var kmUtils = {
24019
25038
  getOrderListSingleton: getOrderListSingleton$2
@@ -24030,6 +25049,7 @@ var columnsMap = {
24030
25049
  GY_SYSTEM_ORDER: kmkfUtils.GY_SYSTEM_ORDER_CONFIG.columns,
24031
25050
  JST_SYSTEM_ORDER: kmkfUtils.JST_SYSTEM_ORDER_CONFIG.columns,
24032
25051
  JY_SYSTEM_ORDER: kmkfUtils.JY_SYSTEM_ORDER_CONFIG.columns,
25052
+ JKY_SYSTEM_ORDER: kmkfUtils.JKY_SYSTEM_ORDER_CONFIG.columns,
24033
25053
  WDT_RETURN_BILL_NO: kmkfUtils.WDT_RETURN_BILL_NO_CONFIG.columns
24034
25054
  };
24035
25055
  var rowKeyMap = {
@@ -24041,6 +25061,7 @@ var rowKeyMap = {
24041
25061
  GY_SYSTEM_ORDER: 'billNo',
24042
25062
  JST_SYSTEM_ORDER: 'oId',
24043
25063
  JY_SYSTEM_ORDER: 'tradeNo',
25064
+ JKY_SYSTEM_ORDER: 'tradeNo',
24044
25065
  WDT_RETURN_BILL_NO: 'refundNo'
24045
25066
  };
24046
25067
  var index$2 = (function (props) {
@@ -24055,7 +25076,6 @@ var index$2 = (function (props) {
24055
25076
  React.useEffect(function () {
24056
25077
  var _value$orders, _value$showOrderInfo;
24057
25078
  valueRef.current = value;
24058
- console.log('value77777777', value);
24059
25079
  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) {
24060
25080
  onceRef.current = true;
24061
25081
  if (type === 'BS_SYSTEM_ORDER') {
@@ -24074,6 +25094,8 @@ var index$2 = (function (props) {
24074
25094
  getJstOrderList(value.orderNo);
24075
25095
  } else if (type === 'JY_SYSTEM_ORDER') {
24076
25096
  getJyOrderList(value.orderNo);
25097
+ } else if (type === 'JKY_SYSTEM_ORDER') {
25098
+ getJkyOrderList(value.orderNo);
24077
25099
  }
24078
25100
  }
24079
25101
  }, [value, type]);
@@ -24338,6 +25360,31 @@ var index$2 = (function (props) {
24338
25360
  return _ref10.apply(this, arguments);
24339
25361
  };
24340
25362
  }();
25363
+ var getJkyOrderList = /*#__PURE__*/function () {
25364
+ var _ref12 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9(orderNo) {
25365
+ return _regeneratorRuntime().wrap(function _callee9$(_context9) {
25366
+ while (1) switch (_context9.prev = _context9.next) {
25367
+ case 0:
25368
+ jkyUtils.getJkyOrderListSingleton(orderNo).then(function (data) {
25369
+ var trades = ((data === null || data === void 0 ? void 0 : data.trades) || []).filter(function (item) {
25370
+ return kmkfUtils.getIsPlatformCodesIncludeOrderNos(item.platformCode, orderNo);
25371
+ });
25372
+ _onChange === null || _onChange === void 0 ? void 0 : _onChange(_objectSpread2(_objectSpread2({}, valueRef.current || {}), {}, {
25373
+ orders: trades,
25374
+ showOrderInfo: trades
25375
+ }));
25376
+ });
25377
+ onceRef.current = false;
25378
+ case 2:
25379
+ case "end":
25380
+ return _context9.stop();
25381
+ }
25382
+ }, _callee9);
25383
+ }));
25384
+ return function getJkyOrderList(_x9) {
25385
+ return _ref12.apply(this, arguments);
25386
+ };
25387
+ }();
24341
25388
  var rowSelection = {
24342
25389
  selectedRowKeys: (value === null || value === void 0 ? void 0 : value.selectIds) || [],
24343
25390
  fixed: true,
@@ -24762,16 +25809,16 @@ var orderSubFormConstants = {
24762
25809
  };
24763
25810
 
24764
25811
  var getSelectWidgetMap$1 = orderSubFormConstants.getSelectWidgetMap;
24765
- var singletonMap$8 = new Map();
25812
+ var singletonMap$9 = new Map();
24766
25813
  var getOrderListSingleton$3 = function getOrderListSingleton(parmas) {
24767
25814
  var orderNo = parmas.orderNo,
24768
25815
  shopId = parmas.shopId;
24769
25816
  var key = "".concat(orderNo, "-").concat(shopId);
24770
- if (!singletonMap$8.has(key)) {
25817
+ if (!singletonMap$9.has(key)) {
24771
25818
  var p = new Promise(function (resolve, reject) {
24772
25819
  var doReject = function doReject(err) {
24773
25820
  // 清空掉错误的请求记录
24774
- singletonMap$8.delete(key);
25821
+ singletonMap$9.delete(key);
24775
25822
  reject(err);
24776
25823
  };
24777
25824
  extendRequest('/qy/gdfw/order/subOrderItemsDetail', {
@@ -24787,16 +25834,16 @@ var getOrderListSingleton$3 = function getOrderListSingleton(parmas) {
24787
25834
  }
24788
25835
  // 延迟10秒清除,保证订单的时效性
24789
25836
  setTimeout(function () {
24790
- singletonMap$8.delete(key);
25837
+ singletonMap$9.delete(key);
24791
25838
  }, 1000 * 10);
24792
25839
  } else {
24793
25840
  doReject(data);
24794
25841
  }
24795
25842
  }).catch(doReject);
24796
25843
  });
24797
- singletonMap$8.set(key, p);
25844
+ singletonMap$9.set(key, p);
24798
25845
  }
24799
- return singletonMap$8.get(key);
25846
+ return singletonMap$9.get(key);
24800
25847
  };
24801
25848
  var renderEditItem = function renderEditItem(_ref) {
24802
25849
  var item = _ref.item,
@@ -25229,6 +26276,9 @@ var isErpType$1 = {
25229
26276
  },
25230
26277
  isJy: function isJy(type) {
25231
26278
  return ['JY_GOODS'].includes(type);
26279
+ },
26280
+ isJky: function isJky(type) {
26281
+ return ['JKY_GOODS'].includes(type);
25232
26282
  }
25233
26283
  };
25234
26284
  var processAllOrders = function processAllOrders(_ref) {
@@ -25529,6 +26579,32 @@ var componentMap$2 = {
25529
26579
  },
25530
26580
  getOrderList: jyUtils.getJyOrderListSingleton
25531
26581
  },
26582
+ JKY_GOODS: {
26583
+ type: 'jky',
26584
+ key: 'jkyGoods',
26585
+ name: '吉客云',
26586
+ orderNo: 'tradeNo',
26587
+ goodDetailOrderNo: 'tradeNo',
26588
+ eventNameMap: {
26589
+ // pubsub 事件
26590
+ type: 'jkyType',
26591
+ updateGoodsHandle: kmkfUtils.updateJkyGoodsHandle,
26592
+ selectListReturn: 'jkySelectListReturn',
26593
+ selectList: 'jkySelectList',
26594
+ reissueSelectList: 'jkyReissueSelectList',
26595
+ reissueSelectListReturn: 'jkyReissueSelectListReturn',
26596
+ reissueDeleteGood: 'jkyReissueDeleteGood',
26597
+ changeShopCode: 'jkyChangeShopCode',
26598
+ reissueType: 'jkyReissueType',
26599
+ returnType: 'jkyReturnType',
26600
+ returnSelectListReturn: 'jkyReturnSelectListReturn',
26601
+ returnSelectList: 'jkyReturnSelectList',
26602
+ deleteGood: 'jkyDeleteGood',
26603
+ returnDeleteGood: 'jkyReturnDeleteGood',
26604
+ exchangeDeleteGood: 'jkyExchangeDeleteGood'
26605
+ },
26606
+ getOrderList: jkyUtils.getJkyOrderListSingleton
26607
+ },
25532
26608
  WDT_AFTERSALE_GOODS: {
25533
26609
  type: 'wdtAftersale',
25534
26610
  key: 'wdtAftersaleGoods',
@@ -25731,7 +26807,6 @@ var CommonGoods = function CommonGoods(props) {
25731
26807
  var getAllTradeGoodsDetails = function getAllTradeGoodsDetails(_ref3) {
25732
26808
  var mode = _ref3.mode;
25733
26809
  var updateHandle = componentMap$2[compType].eventNameMap['updateGoodsHandle'];
25734
- console.log('value?.allOrders', value, (value === null || value === void 0 ? void 0 : value.allOrders) || []);
25735
26810
  if (!updateHandle) return [];
25736
26811
  var goodDetails = updateHandle((value === null || value === void 0 ? void 0 : value.allOrders) || [], {
25737
26812
  orderBackGoodsLevel: props.orderBackGoodsLevel
@@ -29044,6 +30119,7 @@ var SYSTEM_ORDER_COLUMNS_MAP = {
29044
30119
  GY_SYSTEM_ORDER: kmkfUtils.GY_SYSTEM_ORDER_CONFIG.columns,
29045
30120
  JST_SYSTEM_ORDER: kmkfUtils.JST_SYSTEM_ORDER_CONFIG.columns,
29046
30121
  JY_SYSTEM_ORDER: kmkfUtils.JY_SYSTEM_ORDER_CONFIG.columns,
30122
+ JKY_SYSTEM_ORDER: kmkfUtils.JKY_SYSTEM_ORDER_CONFIG.columns,
29047
30123
  WDT_RETURN_BILL_NO: kmkfUtils.WDT_RETURN_BILL_NO_CONFIG.columns
29048
30124
  };
29049
30125
 
@@ -29126,6 +30202,7 @@ exports.erpColumnsMap = erpColumnsMap;
29126
30202
  exports.erpFormValidator = erpFormValidator;
29127
30203
  exports.erpModalColumnsMap = index$1;
29128
30204
  exports.getGyColumns = getColumns$4;
30205
+ exports.getJkyColumns = getColumns$9;
29129
30206
  exports.getJstColumns = getColumns$5;
29130
30207
  exports.getJyColumns = getColumns$7;
29131
30208
  exports.getKmColumns = getColumns$6;