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