@kmkf-fe-packages/basic-components 2.2.41 → 2.2.44-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -8116,6 +8116,8 @@ var updateWorkTypeKeys = {
8116
8116
  BS_DEPOSIT: 'bsDeposit',
8117
8117
  NEW_PAYMENT_STATUS: 'newPaymentStatus',
8118
8118
  BUSINESS_ORDER_NO: 'businessOrderNo',
8119
+ REPAIR_ORDER_SN: 'repairOrderSn',
8120
+ REPAIR_ORDER_ID: 'repairOrderId',
8119
8121
  PAYMENT_VOUCHER_CODE: 'paymentVoucherCode',
8120
8122
  ACTUAL_RECEIPT_PAYMENT: 'actualReceiptPayment',
8121
8123
  WDT_SHOP: 'shopCode'
@@ -8467,7 +8469,10 @@ var processLogisticsTrajectory = function processLogisticsTrajectory(getValue) {
8467
8469
  var map = subFields.reduce(function (cur, nxt) {
8468
8470
  return nxt === 'trajectoryApiStatus' ? _objectSpread2(_objectSpread2({}, cur), {}, _defineProperty({}, nxt, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_trajectoryApiStatus")), {}))) : _objectSpread2(_objectSpread2({}, cur), {}, _defineProperty({}, nxt, getValue("".concat(nex.uniqueKey, "_").concat(nxt))));
8469
8471
  }, {});
8470
- return _defineProperty({}, nex.uniqueKey, map);
8472
+ var mapChild = subFields.reduce(function (cur, nxt) {
8473
+ return nxt === 'trajectoryApiStatus' ? _objectSpread2(_objectSpread2({}, cur), {}, _defineProperty({}, "".concat(nex.uniqueKey, "_trajectoryApiStatus"), jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_trajectoryApiStatus")), {}))) : _objectSpread2(_objectSpread2({}, cur), {}, _defineProperty({}, "".concat(nex.uniqueKey, "_").concat(nxt), getValue("".concat(nex.uniqueKey, "_").concat(nxt))));
8474
+ }, {});
8475
+ return _objectSpread2(_defineProperty({}, nex.uniqueKey, map), mapChild);
8471
8476
  };
8472
8477
  };
8473
8478
  var processLogisticsTrajectoryMore = function processLogisticsTrajectoryMore(getValue) {
@@ -8491,12 +8496,12 @@ var processItemSelectThird = function processItemSelectThird(getValue) {
8491
8496
  };
8492
8497
  var processEnterPrisePayment = function processEnterPrisePayment(getValue) {
8493
8498
  return function (nex, config) {
8494
- var _ref34;
8499
+ var _ref33;
8495
8500
  var subFields = ['enterprisePaymentAlipayNick', 'enterprisePaymentAlipayNo', 'enterprisePaymentBuyerNick', 'enterprisePaymentBuyerOpenUid', 'enterprisePaymentRefundFee', 'enterprisePaymentStatus', 'enterprisePaymentTid'];
8496
8501
  var map = subFields.reduce(function (cur, nxt) {
8497
8502
  return _objectSpread2(_objectSpread2({}, cur), {}, _defineProperty({}, nxt, getValue("".concat(nex.uniqueKey, "_").concat(nxt))));
8498
8503
  }, {});
8499
- return _ref34 = {}, _defineProperty(_ref34, nex.uniqueKey, map), _defineProperty(_ref34, "".concat(nex.uniqueKey, "_enterprisePaymentAlipayNick"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentAlipayNick"))), _defineProperty(_ref34, "".concat(nex.uniqueKey, "_enterprisePaymentAlipayNo"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentAlipayNo"))), _defineProperty(_ref34, "".concat(nex.uniqueKey, "_enterprisePaymentBuyerNick"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentBuyerNick"))), _defineProperty(_ref34, "".concat(nex.uniqueKey, "_enterprisePaymentRefundFee"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentRefundFee"))), _defineProperty(_ref34, "".concat(nex.uniqueKey, "_enterprisePaymentStatus"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentStatus"))), _defineProperty(_ref34, "".concat(nex.uniqueKey, "_enterprisePaymentTime"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentTime"))), _defineProperty(_ref34, "".concat(nex.uniqueKey, "_enterprisePaymentTid"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentTid"))), _ref34;
8504
+ return _ref33 = {}, _defineProperty(_ref33, nex.uniqueKey, map), _defineProperty(_ref33, "".concat(nex.uniqueKey, "_enterprisePaymentAlipayNick"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentAlipayNick"))), _defineProperty(_ref33, "".concat(nex.uniqueKey, "_enterprisePaymentAlipayNo"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentAlipayNo"))), _defineProperty(_ref33, "".concat(nex.uniqueKey, "_enterprisePaymentBuyerNick"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentBuyerNick"))), _defineProperty(_ref33, "".concat(nex.uniqueKey, "_enterprisePaymentRefundFee"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentRefundFee"))), _defineProperty(_ref33, "".concat(nex.uniqueKey, "_enterprisePaymentStatus"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentStatus"))), _defineProperty(_ref33, "".concat(nex.uniqueKey, "_enterprisePaymentTime"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentTime"))), _defineProperty(_ref33, "".concat(nex.uniqueKey, "_enterprisePaymentTid"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentTid"))), _ref33;
8500
8505
  };
8501
8506
  };
8502
8507
  var processJstLogistics = function processJstLogistics(getValue) {
@@ -8595,6 +8600,10 @@ var processCallBackStatus = function processCallBackStatus(getValue) {
8595
8600
  RETURN_EXCHANGE_GOODS_REVIEW_STATUS: {
8596
8601
  status: 'returnExchangeGoodsReviewStatusValue',
8597
8602
  reason: 'returnExchangeGoodsReviewStatusReason'
8603
+ },
8604
+ REPAIR_ORDER_STATUS: {
8605
+ status: 'repairOrderStatusValue',
8606
+ reason: 'repairOrderStatusReason'
8598
8607
  }
8599
8608
  };
8600
8609
  return _defineProperty({}, nex.uniqueKey, {
@@ -9255,14 +9264,14 @@ var processJstReturnGoods = function processJstReturnGoods(templateColumns) {
9255
9264
  };
9256
9265
  var processLabel = function processLabel(getValue) {
9257
9266
  return function (nex, config) {
9258
- var _ref74;
9259
- return _ref74 = {}, _defineProperty(_ref74, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_label")), [])), _defineProperty(_ref74, "".concat(nex.uniqueKey, "_label"), jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_label")), [])), _ref74;
9267
+ var _ref73;
9268
+ return _ref73 = {}, _defineProperty(_ref73, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_label")), [])), _defineProperty(_ref73, "".concat(nex.uniqueKey, "_label"), jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_label")), [])), _ref73;
9260
9269
  };
9261
9270
  };
9262
9271
  var processMemberLevel = function processMemberLevel(getValue) {
9263
9272
  return function (nex, config) {
9264
- var _ref75;
9265
- return _ref75 = {}, _defineProperty(_ref75, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_memberLevel")), [])), _defineProperty(_ref75, "".concat(nex.uniqueKey, "_memberLevel"), jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_memberLevel")), [])), _ref75;
9273
+ var _ref74;
9274
+ return _ref74 = {}, _defineProperty(_ref74, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_memberLevel")), [])), _defineProperty(_ref74, "".concat(nex.uniqueKey, "_memberLevel"), jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_memberLevel")), [])), _ref74;
9266
9275
  };
9267
9276
  };
9268
9277
  var processAfterSalesOrderId = function processAfterSalesOrderId(getValue) {
@@ -9359,6 +9368,7 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
9359
9368
  AGREE_RETURN_GOODS_STATUS: processCallBackStatus,
9360
9369
  REJECT_RETURN_GOODS_STATUS: processCallBackStatus,
9361
9370
  RETURN_EXCHANGE_GOODS_REVIEW_STATUS: processCallBackStatus,
9371
+ REPAIR_ORDER_STATUS: processCallBackStatus,
9362
9372
  RETURN_GOODS_STATUS: processSceneStatus,
9363
9373
  EXCHANGE_STATUS: processSceneStatus,
9364
9374
  WAREHOUSING_STATUS: processSceneStatus,
@@ -9438,6 +9448,8 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
9438
9448
  BS_DEPOSIT: processSingleField,
9439
9449
  NEW_PAYMENT_STATUS: processSingleField,
9440
9450
  BUSINESS_ORDER_NO: processSingleField,
9451
+ REPAIR_ORDER_SN: processSingleField,
9452
+ REPAIR_ORDER_ID: processSingleField,
9441
9453
  PAYMENT_VOUCHER_CODE: processSingleField,
9442
9454
  BS_E3_REISSUE_GOODS: processBsE3ReissueGoods(templateColumns),
9443
9455
  ACTUAL_RECEIPT_PAYMENT: processSingleField,
@@ -9554,7 +9566,6 @@ var FileRender = function FileRender(_ref) {
9554
9566
  cursor: 'pointer'
9555
9567
  },
9556
9568
  onClick: function onClick(e) {
9557
- console.log('onPreview');
9558
9569
  e.preventDefault();
9559
9570
  onPreview(item);
9560
9571
  },
@@ -9650,6 +9661,9 @@ var PictureRender = function PictureRender(_ref2) {
9650
9661
  }));
9651
9662
  }));
9652
9663
  };
9664
+ var LogisticsCompanyRender = function LogisticsCompanyRender(value) {
9665
+ return kmkfUtils.ExpressData.getInstance().getExpressNameByCode(value) || value;
9666
+ };
9653
9667
  var MultipleSelectRender = function MultipleSelectRender(_ref5) {
9654
9668
  var _ref5$value = _ref5.value,
9655
9669
  value = _ref5$value === void 0 ? [] : _ref5$value;
@@ -9684,6 +9698,16 @@ var renderMap = {
9684
9698
  });
9685
9699
  }
9686
9700
  };
9701
+ var renderSplitMap = {
9702
+ //物流轨迹-物流公司
9703
+ jbCFrJV4m7_trajectoryCompany: function jbCFrJV4m7_trajectoryCompany(value) {
9704
+ return LogisticsCompanyRender(value);
9705
+ },
9706
+ //退货物流-物流公司
9707
+ '0qFEv9GEyd_returnLogisticsCompany': function qFEv9GEyd_returnLogisticsCompany(value) {
9708
+ return LogisticsCompanyRender(value);
9709
+ }
9710
+ };
9687
9711
  var EditPictureRender = function EditPictureRender(_ref6) {
9688
9712
  var _ref6$val = _ref6.val,
9689
9713
  val = _ref6$val === void 0 ? [] : _ref6$val,
@@ -9779,7 +9803,6 @@ var EditFileRender = function EditFileRender(_ref7) {
9779
9803
  var EditRenderMap = {
9780
9804
  INPUT: function INPUT(_ref8) {
9781
9805
  var val = _ref8.val,
9782
- record = _ref8.record,
9783
9806
  index = _ref8.index,
9784
9807
  t = _ref8.t,
9785
9808
  updateHandle = _ref8.updateHandle,
@@ -9808,7 +9831,6 @@ var EditRenderMap = {
9808
9831
  },
9809
9832
  TEXTAREA: function TEXTAREA(_ref9) {
9810
9833
  var val = _ref9.val,
9811
- record = _ref9.record,
9812
9834
  index = _ref9.index,
9813
9835
  t = _ref9.t,
9814
9836
  updateHandle = _ref9.updateHandle,
@@ -9837,7 +9859,6 @@ var EditRenderMap = {
9837
9859
  },
9838
9860
  PICTURE: function PICTURE(_ref10) {
9839
9861
  var val = _ref10.val,
9840
- record = _ref10.record,
9841
9862
  index = _ref10.index,
9842
9863
  t = _ref10.t,
9843
9864
  updateHandle = _ref10.updateHandle,
@@ -9855,7 +9876,6 @@ var EditRenderMap = {
9855
9876
  },
9856
9877
  FILE: function FILE(_ref11) {
9857
9878
  var val = _ref11.val,
9858
- record = _ref11.record,
9859
9879
  index = _ref11.index,
9860
9880
  t = _ref11.t,
9861
9881
  updateHandle = _ref11.updateHandle,
@@ -9873,7 +9893,6 @@ var EditRenderMap = {
9873
9893
  },
9874
9894
  RADIO: function RADIO(_ref12) {
9875
9895
  var val = _ref12.val,
9876
- record = _ref12.record,
9877
9896
  index = _ref12.index,
9878
9897
  t = _ref12.t,
9879
9898
  updateHandle = _ref12.updateHandle,
@@ -9896,7 +9915,6 @@ var EditRenderMap = {
9896
9915
  },
9897
9916
  SELECT: function SELECT(_ref13) {
9898
9917
  var val = _ref13.val,
9899
- record = _ref13.record,
9900
9918
  index = _ref13.index,
9901
9919
  t = _ref13.t,
9902
9920
  updateHandle = _ref13.updateHandle,
@@ -9919,7 +9937,6 @@ var EditRenderMap = {
9919
9937
  },
9920
9938
  CHECKBOX: function CHECKBOX(_ref14) {
9921
9939
  var val = _ref14.val,
9922
- record = _ref14.record,
9923
9940
  index = _ref14.index,
9924
9941
  t = _ref14.t,
9925
9942
  updateHandle = _ref14.updateHandle,
@@ -9941,7 +9958,6 @@ var EditRenderMap = {
9941
9958
  },
9942
9959
  BASIC_MULT_SELECT: function BASIC_MULT_SELECT(_ref15) {
9943
9960
  var val = _ref15.val,
9944
- record = _ref15.record,
9945
9961
  index = _ref15.index,
9946
9962
  t = _ref15.t,
9947
9963
  updateHandle = _ref15.updateHandle,
@@ -9960,6 +9976,57 @@ var EditRenderMap = {
9960
9976
  return updateHandle(e, index, t.key);
9961
9977
  }
9962
9978
  }));
9979
+ },
9980
+ DEFAULT: function DEFAULT(_ref16) {
9981
+ var val = _ref16.val,
9982
+ index = _ref16.index,
9983
+ t = _ref16.t,
9984
+ updateHandle = _ref16.updateHandle,
9985
+ disabled = _ref16.disabled;
9986
+ return !t.isEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Input, {
9987
+ allowClear: true,
9988
+ style: {
9989
+ width: '100%'
9990
+ },
9991
+ value: val,
9992
+ onChange: function onChange(e) {
9993
+ var _e$target3;
9994
+ return updateHandle(e === null || e === void 0 ? void 0 : (_e$target3 = e.target) === null || _e$target3 === void 0 ? void 0 : _e$target3.value, index, t.key);
9995
+ }
9996
+ }) : /*#__PURE__*/React__default['default'].createElement("div", null, val);
9997
+ }
9998
+ };
9999
+ var EditSplitRenderMap = {
10000
+ jbCFrJV4m7_trajectoryCompany: function jbCFrJV4m7_trajectoryCompany(_ref17) {
10001
+ var val = _ref17.val,
10002
+ index = _ref17.index,
10003
+ t = _ref17.t,
10004
+ updateHandle = _ref17.updateHandle,
10005
+ disabled = _ref17.disabled;
10006
+ return /*#__PURE__*/React__default['default'].createElement(ApaasLogistics, {
10007
+ value: val,
10008
+ allowClear: true,
10009
+ onChange: function onChange(e) {
10010
+ return updateHandle(e, index, t.key);
10011
+ },
10012
+ disabled: t.isEdit || disabled
10013
+ });
10014
+ },
10015
+ //退货物流-物流公司
10016
+ '0qFEv9GEyd_returnLogisticsCompany': function qFEv9GEyd_returnLogisticsCompany(_ref18) {
10017
+ var val = _ref18.val,
10018
+ index = _ref18.index,
10019
+ t = _ref18.t,
10020
+ updateHandle = _ref18.updateHandle,
10021
+ disabled = _ref18.disabled;
10022
+ return /*#__PURE__*/React__default['default'].createElement(ApaasLogistics, {
10023
+ value: val,
10024
+ allowClear: true,
10025
+ onChange: function onChange(e) {
10026
+ return updateHandle(e, index, t.key);
10027
+ },
10028
+ disabled: t.isEdit || disabled
10029
+ });
9963
10030
  }
9964
10031
  };
9965
10032
 
@@ -9987,6 +10054,7 @@ function HoverTableRowDeleteIcon(_ref) {
9987
10054
  }
9988
10055
 
9989
10056
  var WidgetMap = {
10057
+ TRADE_ID_INPUT: 'tradeId',
9990
10058
  INPUT: 'input',
9991
10059
  TEXTAREA: 'textarea',
9992
10060
  PICTURE: 'picture',
@@ -10013,8 +10081,8 @@ var SubForm = function SubForm(props) {
10013
10081
  tableHeader = props.tableHeader,
10014
10082
  disabled = props.disabled,
10015
10083
  platform = props.platform,
10016
- manual = props.manual,
10017
- maxCount = props.maxCount;
10084
+ maxCount = props.maxCount,
10085
+ manual = props.manual;
10018
10086
  var ref = React.useRef(null);
10019
10087
  var isRequest = React.useRef(false);
10020
10088
  var _useState = React.useState(false),
@@ -10089,7 +10157,6 @@ var SubForm = function SubForm(props) {
10089
10157
  return deleteHandle(record.uuid);
10090
10158
  }
10091
10159
  });
10092
- // return <div style={{ width: 25 }}>{index + 1}</div>;
10093
10160
  }
10094
10161
  }].concat(_toConsumableArray(newTableHeader.map(function (t) {
10095
10162
  return {
@@ -10102,27 +10169,41 @@ var SubForm = function SubForm(props) {
10102
10169
  ellipsis: true,
10103
10170
  width: t.width,
10104
10171
  render: function render(val, record, index) {
10105
- return EditRenderMap[t.workOrderComponentType] ? EditRenderMap[t.workOrderComponentType]({
10106
- val: val,
10107
- record: record,
10108
- index: index,
10109
- t: t,
10110
- updateHandle: updateHandle,
10111
- disabled: disabled,
10112
- componentDto: componentDtoList.find(function (item) {
10113
- return item.uniqueKey === t.key;
10114
- }),
10115
- platform: platform
10116
- }) : /*#__PURE__*/React__default['default'].createElement(antd.Input, {
10117
- style: {
10118
- width: '100%'
10119
- },
10120
- value: val,
10121
- onChange: function onChange(e) {
10122
- var _e$target;
10123
- 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);
10124
- }
10125
- });
10172
+ if (EditRenderMap[t.workOrderComponentType]) {
10173
+ return EditRenderMap[t.workOrderComponentType]({
10174
+ val: val,
10175
+ record: record,
10176
+ index: index,
10177
+ t: t,
10178
+ updateHandle: updateHandle,
10179
+ disabled: disabled,
10180
+ componentDto: componentDtoList.find(function (item) {
10181
+ return item.uniqueKey === t.key;
10182
+ }),
10183
+ platform: platform
10184
+ });
10185
+ } else if (EditSplitRenderMap[t.key]) {
10186
+ return EditSplitRenderMap[t.key]({
10187
+ val: val,
10188
+ index: index,
10189
+ t: t,
10190
+ updateHandle: updateHandle,
10191
+ disabled: disabled
10192
+ });
10193
+ } else {
10194
+ return EditRenderMap['DEFAULT']({
10195
+ val: val,
10196
+ record: record,
10197
+ index: index,
10198
+ t: t,
10199
+ updateHandle: updateHandle,
10200
+ disabled: disabled,
10201
+ componentDto: componentDtoList.find(function (item) {
10202
+ return item.uniqueKey === t.key;
10203
+ }),
10204
+ platform: platform
10205
+ });
10206
+ }
10126
10207
  }
10127
10208
  };
10128
10209
  })), [disabled ? {} : {
@@ -10172,6 +10253,10 @@ var SubForm = function SubForm(props) {
10172
10253
  item.render = function (val) {
10173
10254
  return renderMap[t.workOrderComponentType](val, platform);
10174
10255
  };
10256
+ } else if (renderSplitMap[t.key]) {
10257
+ item.render = function (val) {
10258
+ return renderSplitMap[t.key](val);
10259
+ };
10175
10260
  }
10176
10261
  return item;
10177
10262
  })));
@@ -10186,7 +10271,11 @@ var SubForm = function SubForm(props) {
10186
10271
  if (['PICTURE', 'FILE', 'BASIC_MULT_SELECT', 'CHECKBOX'].includes(next.workOrderComponentType)) {
10187
10272
  item.defaultValue = [];
10188
10273
  }
10189
- prv["".concat(next.key, "_").concat(WidgetMap[next.workOrderComponentType])] = item;
10274
+ if (!['LOGISTICS_TRAJECTORY', 'RETURN_LOGISTICS_SELECT'].includes(next.workOrderComponentType)) {
10275
+ prv["".concat(next.key, "_").concat(WidgetMap[next.workOrderComponentType])] = item;
10276
+ } else {
10277
+ prv["".concat(next.key)] = item;
10278
+ }
10190
10279
  return prv;
10191
10280
  }, {});
10192
10281
  }, [newTableHeader]);
@@ -10203,7 +10292,7 @@ var SubForm = function SubForm(props) {
10203
10292
  }).map(function (item) {
10204
10293
  return {
10205
10294
  label: item.name,
10206
- value: "".concat(item.key, "_").concat(WidgetMap[item.workOrderComponentType])
10295
+ value: WidgetMap[item.workOrderComponentType] ? "".concat(item.key, "_").concat(WidgetMap[item.workOrderComponentType]) : item.key
10207
10296
  };
10208
10297
  });
10209
10298
  setSelectKey(options === null || options === void 0 ? void 0 : (_options$ = options[0]) === null || _options$ === void 0 ? void 0 : _options$.value);
@@ -10245,6 +10334,7 @@ var SubForm = function SubForm(props) {
10245
10334
  _ref2$componentList,
10246
10335
  componentList,
10247
10336
  params,
10337
+ queryComponents,
10248
10338
  res,
10249
10339
  data,
10250
10340
  success,
@@ -10277,15 +10367,25 @@ var SubForm = function SubForm(props) {
10277
10367
  }]
10278
10368
  };
10279
10369
  if (selectKey && inputValue) {
10280
- params.queryComponents = [{
10370
+ queryComponents = [{
10281
10371
  key: 'flowStatus',
10282
10372
  symbol: 'in',
10283
10373
  value: flowStatus
10284
- }, {
10285
- key: selectKey,
10286
- symbol: 'in',
10287
- value: [inputValue]
10288
10374
  }];
10375
+ if (['0qFEv9GEyd_returnLogisticsCode', 'jbCFrJV4m7_trajectoryCode'].includes(selectKey)) {
10376
+ queryComponents.push({
10377
+ key: selectKey,
10378
+ symbol: 'like',
10379
+ value: inputValue
10380
+ });
10381
+ } else {
10382
+ queryComponents.push({
10383
+ key: selectKey,
10384
+ symbol: 'in',
10385
+ value: [inputValue]
10386
+ });
10387
+ }
10388
+ params.queryComponents = queryComponents;
10289
10389
  }
10290
10390
  _context.next = 7;
10291
10391
  return extendRequest('/qy/view/workOrderList', {
@@ -10481,7 +10581,21 @@ var SubForm = function SubForm(props) {
10481
10581
  placement: "bottom",
10482
10582
  visible: open,
10483
10583
  onVisibleChange: handleOpenChange
10484
- }, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
10584
+ }, ['0qFEv9GEyd_returnLogisticsCompany', 'jbCFrJV4m7_trajectoryCompany'].includes(selectKey) ? /*#__PURE__*/React__default['default'].createElement(ApaasLogistics, {
10585
+ value: undefined,
10586
+ onChange: function onChange(val) {
10587
+ onChangeInput(val);
10588
+ },
10589
+ placeholder: "\u8BF7\u9009\u62E9\u7269\u6D41\u516C\u53F8",
10590
+ showSearch: true,
10591
+ allowClear: true,
10592
+ style: {
10593
+ width: '180px'
10594
+ },
10595
+ filterOption: function filterOption(input, option) {
10596
+ return option.label.includes(input);
10597
+ }
10598
+ }) : /*#__PURE__*/React__default['default'].createElement(antd.Input, {
10485
10599
  placeholder: "\u8F93\u5165\u5173\u952E\u8BCD\u67E5\u8BE2",
10486
10600
  allowClear: true,
10487
10601
  onChange: function onChange(e) {
@@ -13457,7 +13571,7 @@ var LogisticsTrajectory = function LogisticsTrajectory(props) {
13457
13571
  if (disabled) {
13458
13572
  return;
13459
13573
  }
13460
- if (['SF', 'ZTO'].includes(newCompany) && !(newCompany && trajectoryCode && trajectoryPhone)) {
13574
+ if (['KYE', 'SF', 'ZTO'].includes(newCompany) && !(newCompany && trajectoryCode && trajectoryPhone)) {
13461
13575
  return;
13462
13576
  } else if (!(newCompany && trajectoryCode)) {
13463
13577
  return;
@@ -13593,7 +13707,7 @@ var LogisticsTrajectory = function LogisticsTrajectory(props) {
13593
13707
  value: value === null || value === void 0 ? void 0 : value.trajectorySnapshot
13594
13708
  });
13595
13709
  };
13596
- return /*#__PURE__*/React__default['default'].createElement("div", null, LogisticsCompany(), LogisticsCode(), ['SF', 'ZTO'].includes(value === null || value === void 0 ? void 0 : value.trajectoryCompany) ? LogisticsPhone(value === null || value === void 0 ? void 0 : value.trajectoryCompany) : null, trajectoryApiStatus && isSingle && LogisticsApiStatus(), showField && showField.includes('snapshot') ? /*#__PURE__*/React__default['default'].createElement(LogisticsSnapshot, null) : null);
13710
+ return /*#__PURE__*/React__default['default'].createElement("div", null, LogisticsCompany(), LogisticsCode(), ['SF', 'ZTO', 'KYE'].includes(value === null || value === void 0 ? void 0 : value.trajectoryCompany) ? LogisticsPhone(value === null || value === void 0 ? void 0 : value.trajectoryCompany) : null, trajectoryApiStatus && isSingle && LogisticsApiStatus(), showField && showField.includes('snapshot') ? /*#__PURE__*/React__default['default'].createElement(LogisticsSnapshot, null) : null);
13597
13711
  };
13598
13712
 
13599
13713
  var LogisticsMoreTrajectory = function LogisticsMoreTrajectory(props) {
@@ -13849,7 +13963,7 @@ var jstGoods = function jstGoods(props) {
13849
13963
  changeIndex = _useState2[0],
13850
13964
  setChangeIndex = _useState2[1]; //选中的包裹
13851
13965
  var sendOptions = kmkfUtils.SendDataCenter.getInstance(platformType).getSendData();
13852
- var isSelectName = ['wdt', 'bsE3', 'km', 'gy', 'jst', 'jy'].includes(platformType);
13966
+ var isSelectName = ['wdt', 'bsE3', 'km', 'gy', 'jst', 'jy', 'jky'].includes(platformType);
13853
13967
  var expressDateInstance = kmkfUtils.ExpressData.getInstance(platformType);
13854
13968
  var isSendGoodSavedId = isSelectName && !['jst'].includes(platformType);
13855
13969
  React.useEffect(function () {
@@ -14103,7 +14217,7 @@ var renderTextEllipsis = function renderTextEllipsis(value) {
14103
14217
  var css_248z$b = ".GoodModalColumns .ellipsis-text-3 {\n display: -webkit-box;\n overflow: hidden;\n white-space: normal !important;\n text-overflow: ellipsis;\n word-break: break-all;\n overflow-wrap: anywhere;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 3;\n line-clamp: 3;\n}\n";
14104
14218
  styleInject(css_248z$b);
14105
14219
 
14106
- var css_248z$c = ".search-form .ant-form-item {\n margin-right: 0px !important;\n margin-bottom: 12px !important;\n padding-right: 10px !important;\n}\n@media (max-width: 600px) {\n .search-form {\n display: flex;\n flex-wrap: wrap;\n }\n .search-form .ant-form-item {\n box-sizing: border-box;\n width: 33.33% !important;\n }\n .search-form .ant-input-affix-wrapper,\n .search-form .ant-select,\n .search-form .ant-select-selector {\n width: 100% !important;\n }\n .search-form .search-form-actions .ant-form-item-control-input-content {\n display: flex;\n flex-wrap: nowrap;\n justify-content: space-between;\n }\n .search-form .search-form-actions .ant-form-item-control-input-content .ant-btn {\n width: calc((100% - 8px) / 2) !important;\n padding: 0 !important;\n }\n}\n";
14220
+ var css_248z$c = ".search-form .ant-form-item {\n margin-right: 0px !important;\n margin-bottom: 12px !important;\n padding-right: 10px !important;\n}\n@media (max-width: 600px) {\n .search-form {\n display: flex;\n flex-wrap: wrap;\n }\n .search-form .ant-form-item {\n box-sizing: border-box;\n width: 50% !important;\n }\n .search-form .ant-input-affix-wrapper,\n .search-form .ant-select,\n .search-form .ant-select-selector {\n width: 100% !important;\n }\n .search-form .optional-input-select {\n width: 70px !important;\n }\n .search-form .search-form-actions .ant-form-item-control-input-content {\n display: flex;\n flex-wrap: nowrap;\n justify-content: space-between;\n }\n .search-form .search-form-actions .ant-form-item-control-input-content .ant-btn {\n width: calc((100% - 8px) / 2) !important;\n padding: 0 !important;\n }\n}\n";
14107
14221
  styleInject(css_248z$c);
14108
14222
 
14109
14223
  var _excluded$d = ["shopId"];
@@ -15219,6 +15333,223 @@ var jyColumns = [{
15219
15333
  }
15220
15334
  }];
15221
15335
 
15336
+ var jkyColumns = [{
15337
+ dataIndex: 'goodsNo',
15338
+ title: "\u8D27\u54C1\u7F16\u53F7",
15339
+ align: 'center',
15340
+ ellipsis: true,
15341
+ width: 150,
15342
+ render: renderTextEllipsis
15343
+ }, {
15344
+ dataIndex: 'goodsName',
15345
+ title: "\u8D27\u54C1\u540D\u79F0",
15346
+ align: 'center',
15347
+ ellipsis: true,
15348
+ width: 150,
15349
+ render: renderTextEllipsis
15350
+ }, {
15351
+ dataIndex: 'goodsId',
15352
+ title: "\u8D27\u54C1ID",
15353
+ align: 'center',
15354
+ ellipsis: true,
15355
+ width: 150,
15356
+ render: renderTextEllipsis
15357
+ }, {
15358
+ dataIndex: 'barcode',
15359
+ title: "\u8D27\u54C1\u6761\u7801",
15360
+ align: 'center',
15361
+ ellipsis: true,
15362
+ width: 150,
15363
+ render: renderTextEllipsis
15364
+ }, {
15365
+ dataIndex: 'specName',
15366
+ title: "\u89C4\u683C\u540D\u79F0",
15367
+ align: 'center',
15368
+ ellipsis: true,
15369
+ width: 150,
15370
+ render: renderTextEllipsis
15371
+ }, {
15372
+ dataIndex: 'specId',
15373
+ title: "\u89C4\u683CID",
15374
+ align: 'center',
15375
+ ellipsis: true,
15376
+ width: 150,
15377
+ render: renderTextEllipsis
15378
+ }, {
15379
+ dataIndex: 'skuImgUrl',
15380
+ title: "\u89C4\u683C\u56FE\u7247",
15381
+ align: 'center',
15382
+ ellipsis: true,
15383
+ width: 150,
15384
+ render: function render(val) {
15385
+ return /*#__PURE__*/React__default['default'].createElement("img", {
15386
+ style: {
15387
+ width: '30px',
15388
+ height: '30px',
15389
+ objectFit: 'contain'
15390
+ },
15391
+ src: val
15392
+ });
15393
+ }
15394
+ }, {
15395
+ dataIndex: 'sellCount',
15396
+ title: "\u6570\u91CF",
15397
+ width: 100,
15398
+ render: function render(val) {
15399
+ return /*#__PURE__*/React__default['default'].createElement("span", null, val);
15400
+ }
15401
+ }, {
15402
+ dataIndex: 'actualSendCount',
15403
+ title: "\u5B9E\u53D1\u6570\u91CF",
15404
+ width: 150,
15405
+ render: renderTextEllipsis
15406
+ }, {
15407
+ dataIndex: 'sellPrice',
15408
+ title: "\u5355\u4EF7",
15409
+ width: 150,
15410
+ render: function render(val) {
15411
+ return val || val === 0 ? Number(val).toFixed(2) : '';
15412
+ }
15413
+ }, {
15414
+ dataIndex: 'sellTotal',
15415
+ title: "\u91D1\u989D",
15416
+ width: 150
15417
+ }, {
15418
+ dataIndex: 'discountTotal',
15419
+ title: "\u62B5\u6263\u91D1\u989D",
15420
+ width: 150
15421
+ }, {
15422
+ dataIndex: 'shareFavourableFee',
15423
+ title: "\u5206\u644A\u91D1\u989D",
15424
+ width: 150
15425
+ }, {
15426
+ dataIndex: 'shareFavourableAfterFee',
15427
+ title: "\u5206\u644A\u540E\u91D1\u989D",
15428
+ width: 150
15429
+ }, {
15430
+ dataIndex: 'customerPrice',
15431
+ title: "\u7EC8\u7AEF\u9500\u552E\u5355\u4EF7",
15432
+ width: 150
15433
+ }, {
15434
+ dataIndex: 'customerTotal',
15435
+ title: "\u7EC8\u7AEF\u9500\u552E\u91D1\u989D",
15436
+ width: 150
15437
+ }, {
15438
+ dataIndex: 'divideSellTotal',
15439
+ title: "\u5B9E\u4ED8\u91D1\u989D",
15440
+ width: 150
15441
+ }, {
15442
+ dataIndex: 'isGift',
15443
+ title: "\u662F\u5426\u8D60\u54C1",
15444
+ width: 150,
15445
+ render: function render(val) {
15446
+ return /*#__PURE__*/React__default['default'].createElement("span", null, val === '1' ? '是' : '否');
15447
+ }
15448
+ }, {
15449
+ dataIndex: 'isFit',
15450
+ title: "\u662F\u5426\u7EC4\u5408\u88C5",
15451
+ width: 150,
15452
+ render: function render(val) {
15453
+ return /*#__PURE__*/React__default['default'].createElement("span", null, val === '1' ? '是' : '否');
15454
+ }
15455
+ }, {
15456
+ dataIndex: 'isPresell',
15457
+ title: "\u662F\u5426\u9884\u552E\u8D27\u54C1",
15458
+ width: 150,
15459
+ render: function render(val) {
15460
+ return /*#__PURE__*/React__default['default'].createElement("span", null, val === '1' ? '是' : '否');
15461
+ }
15462
+ }, {
15463
+ dataIndex: 'brandName',
15464
+ title: "\u54C1\u724C",
15465
+ align: 'center',
15466
+ ellipsis: true,
15467
+ width: 200,
15468
+ render: renderTextEllipsis
15469
+ }, {
15470
+ dataIndex: 'cateName',
15471
+ title: "\u8D27\u54C1\u7C7B\u522B",
15472
+ align: 'center',
15473
+ ellipsis: true,
15474
+ width: 150,
15475
+ render: renderTextEllipsis
15476
+ }, {
15477
+ dataIndex: 'goodsTags',
15478
+ title: "\u8D27\u54C1\u6807\u7B7E",
15479
+ align: 'center',
15480
+ ellipsis: true,
15481
+ width: 250,
15482
+ render: renderTextEllipsis
15483
+ }, {
15484
+ dataIndex: 'goodsMemo',
15485
+ title: "\u8D27\u54C1\u5907\u6CE8",
15486
+ align: 'center',
15487
+ ellipsis: true,
15488
+ width: 250,
15489
+ render: renderTextEllipsis
15490
+ }, {
15491
+ dataIndex: 'tradeGoodsNo',
15492
+ title: "\u4EA4\u6613\u8D27\u54C1\u7F16\u53F7",
15493
+ align: 'center',
15494
+ ellipsis: true,
15495
+ width: 250,
15496
+ render: renderTextEllipsis
15497
+ }, {
15498
+ dataIndex: 'tradeGoodsName',
15499
+ title: "\u4EA4\u6613\u8D27\u54C1\u540D\u79F0",
15500
+ ellipsis: true,
15501
+ width: 250,
15502
+ render: renderTextEllipsis
15503
+ }, {
15504
+ dataIndex: 'tradeGoodsSpec',
15505
+ title: "\u4EA4\u6613\u89C4\u683C\u540D\u79F0",
15506
+ ellipsis: true,
15507
+ width: 250,
15508
+ render: renderTextEllipsis
15509
+ }, {
15510
+ dataIndex: 'sourceSubtradeNo',
15511
+ title: "\u7F51\u5E97\u5B50\u8BA2\u5355\u53F7",
15512
+ ellipsis: true,
15513
+ width: 250,
15514
+ render: renderTextEllipsis
15515
+ }, {
15516
+ dataIndex: 'platGoodsId',
15517
+ title: "\u5E73\u53F0\u5546\u54C1ID",
15518
+ ellipsis: true,
15519
+ width: 250,
15520
+ render: renderTextEllipsis
15521
+ }, {
15522
+ dataIndex: 'subTradeId',
15523
+ title: "\u5546\u54C1\u660E\u7EC6ID",
15524
+ ellipsis: true,
15525
+ width: 250,
15526
+ render: renderTextEllipsis
15527
+ }, {
15528
+ dataIndex: 'batchNo',
15529
+ title: "\u6279\u6B21\u53F7",
15530
+ ellipsis: true,
15531
+ width: 250,
15532
+ render: renderTextEllipsis
15533
+ }, {
15534
+ dataIndex: 'sendCount',
15535
+ title: "\u6279\u6B21\u6570\u91CF",
15536
+ ellipsis: true,
15537
+ width: 250,
15538
+ render: renderTextEllipsis
15539
+ }, {
15540
+ dataIndex: 'productDate',
15541
+ title: "\u751F\u4EA7\u65E5\u671F",
15542
+ ellipsis: true,
15543
+ width: 250,
15544
+ render: renderTextEllipsis
15545
+ }, {
15546
+ dataIndex: 'expireDate',
15547
+ title: "\u5230\u671F\u65E5\u671F",
15548
+ ellipsis: true,
15549
+ width: 250,
15550
+ render: renderTextEllipsis
15551
+ }];
15552
+
15222
15553
  var getColumnsMap = function getColumnsMap() {
15223
15554
  return lodash.cloneDeep({
15224
15555
  gy: gyColumns,
@@ -15226,7 +15557,8 @@ var getColumnsMap = function getColumnsMap() {
15226
15557
  wdt: wdtColumns,
15227
15558
  bse3: bse3Columns,
15228
15559
  km: kmColumns,
15229
- jy: jyColumns
15560
+ jy: jyColumns,
15561
+ jky: jkyColumns
15230
15562
  });
15231
15563
  };
15232
15564
  var getColumnsBaseInfo = function getColumnsBaseInfo() {
@@ -15324,6 +15656,64 @@ var useGetColumns = (function (type) {
15324
15656
  return [columns, showColumnsDataIndexList, loading];
15325
15657
  });
15326
15658
 
15659
+ var compareSymbolList = [{
15660
+ label: '模糊',
15661
+ value: 'like'
15662
+ }, {
15663
+ label: '精准',
15664
+ value: 'eq'
15665
+ }];
15666
+ var OptionalInput = function OptionalInput(props) {
15667
+ var value = props.value,
15668
+ onChange = props.onChange,
15669
+ _props$placeholder = props.placeholder,
15670
+ placeholder = _props$placeholder === void 0 ? '' : _props$placeholder,
15671
+ onPressEnter = props.onPressEnter,
15672
+ onBlur = props.onBlur,
15673
+ formItemProps = props.formItemProps;
15674
+ var handleSelectChange = function handleSelectChange(compareSymbol) {
15675
+ if (typeof onChange === 'function') {
15676
+ onChange({
15677
+ type: compareSymbol || 'like',
15678
+ inputValue: value === null || value === void 0 ? void 0 : value.inputValue
15679
+ });
15680
+ }
15681
+ };
15682
+ var handleInputChange = function handleInputChange(e) {
15683
+ if (typeof onChange === 'function') {
15684
+ onChange({
15685
+ type: (value === null || value === void 0 ? void 0 : value.type) || 'like',
15686
+ inputValue: e.target.value
15687
+ });
15688
+ }
15689
+ };
15690
+ return /*#__PURE__*/React__default['default'].createElement("div", {
15691
+ style: {
15692
+ display: 'flex',
15693
+ alignItems: 'center'
15694
+ }
15695
+ }, /*#__PURE__*/React__default['default'].createElement(antd.Select, {
15696
+ className: "optional-input-select",
15697
+ style: {
15698
+ width: '70px'
15699
+ },
15700
+ options: compareSymbolList,
15701
+ onChange: handleSelectChange,
15702
+ value: (value === null || value === void 0 ? void 0 : value.type) || 'like',
15703
+ onBlur: onBlur
15704
+ }), /*#__PURE__*/React__default['default'].createElement(antd.Input, _objectSpread2({
15705
+ style: {
15706
+ width: '150px'
15707
+ },
15708
+ allowClear: true,
15709
+ placeholder: placeholder,
15710
+ onChange: handleInputChange,
15711
+ onPressEnter: onPressEnter,
15712
+ onBlur: onBlur,
15713
+ value: value === null || value === void 0 ? void 0 : value.inputValue
15714
+ }, formItemProps)));
15715
+ };
15716
+
15327
15717
  function SearchForm(_ref) {
15328
15718
  var searchFormData = _ref.searchFormData,
15329
15719
  form = _ref.form,
@@ -15375,7 +15765,16 @@ function SearchForm(_ref) {
15375
15765
  style: {
15376
15766
  marginBottom: '12px'
15377
15767
  }
15378
- }, type === 'select' ? /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2({
15768
+ }, type === 'optionalInput' ? /*#__PURE__*/React__default['default'].createElement(OptionalInput, {
15769
+ onPressEnter: function onPressEnter() {
15770
+ return submitForm();
15771
+ },
15772
+ onBlur: function onBlur() {
15773
+ return submitForm();
15774
+ },
15775
+ placeholder: label,
15776
+ formItemProps: formItemProps
15777
+ }) : type === 'select' ? /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2({
15379
15778
  placeholder: label,
15380
15779
  showSearch: true,
15381
15780
  allowClear: true,
@@ -15416,24 +15815,42 @@ function SearchForm(_ref) {
15416
15815
  }, "\u91CD\u7F6E")));
15417
15816
  }
15418
15817
 
15419
- var getTableData = function getTableData(_ref, formData) {
15420
- var _formData$brandIds;
15421
- var current = _ref.current,
15422
- pageSize = _ref.pageSize;
15423
- var data = {
15424
- brandIds: ((_formData$brandIds = formData.brandIds) === null || _formData$brandIds === void 0 ? void 0 : _formData$brandIds.length) ? formData.brandIds : null,
15425
- skuCode: formData.skuCode || null,
15426
- skuName: formData.skuName || null,
15427
- goodName: formData.goodName || null,
15428
- goodNo: formData.goodNo || null
15429
- };
15430
- return extendRequest('/qy/gdfw/product/product/page', {
15431
- method: 'post',
15432
- data: _objectSpread2({
15818
+ var transformFormData = function transformFormData(formData) {
15819
+ var conditionList = [];
15820
+ for (var key in formData) {
15821
+ if (formData[key]) {
15822
+ var _formData$key, _formData$key2, _formData$key3, _formData$key4;
15823
+ var value = ((_formData$key = formData[key]) === null || _formData$key === void 0 ? void 0 : _formData$key.type) ? (_formData$key2 = formData[key]) === null || _formData$key2 === void 0 ? void 0 : _formData$key2.inputValue : formData[key];
15824
+ // 如果 value 是字符串且包含中英文逗号或空格,则拆分成数组
15825
+ if (typeof value === 'string' && (value.includes(',') || value.includes("\uFF0C") || value.includes(' '))) {
15826
+ var _value, _value$replace, _value$replace$split;
15827
+ value = (_value = value) === null || _value === void 0 ? void 0 : (_value$replace = _value.replace(/[,, ]/g, ',')) === null || _value$replace === void 0 ? void 0 : (_value$replace$split = _value$replace.split(',')) === null || _value$replace$split === void 0 ? void 0 : _value$replace$split.filter(function (v) {
15828
+ return v;
15829
+ });
15830
+ }
15831
+ var compareSymbol = ((_formData$key3 = formData[key]) === null || _formData$key3 === void 0 ? void 0 : _formData$key3.type) ? (_formData$key4 = formData[key]) === null || _formData$key4 === void 0 ? void 0 : _formData$key4.type : Array.isArray(value) ? 'include' : 'eq';
15832
+ conditionList.push({
15833
+ leftValue: key,
15834
+ compareSymbol: compareSymbol,
15835
+ rightValue: value
15836
+ });
15837
+ }
15838
+ }
15839
+ return conditionList;
15840
+ };
15841
+
15842
+ var getTableData = function getTableData(_ref, formData) {
15843
+ var current = _ref.current,
15844
+ pageSize = _ref.pageSize;
15845
+ var conditionList = transformFormData(formData);
15846
+ return extendRequest('/qy/gdfw/product/product/page', {
15847
+ method: 'post',
15848
+ data: {
15433
15849
  pageSize: pageSize,
15434
15850
  pageNo: current,
15435
- platform: 'WDT_ERP'
15436
- }, data)
15851
+ platform: 'WDT_ERP',
15852
+ conditionList: conditionList
15853
+ }
15437
15854
  }).then(function (res) {
15438
15855
  var _res$data = res.data,
15439
15856
  _res$data$productSkuL = _res$data.productSkuList,
@@ -15527,13 +15944,15 @@ var GoodList = function GoodList(props, ref) {
15527
15944
  }, {
15528
15945
  label: 'SKU编码',
15529
15946
  name: 'skuCode',
15530
- dataIndex: 'specNo'
15947
+ dataIndex: 'specNo',
15948
+ type: 'optionalInput'
15531
15949
  }, {
15532
15950
  label: '商品名称',
15533
15951
  name: 'goodName'
15534
15952
  }, {
15535
15953
  label: '商品编码',
15536
- name: 'goodNo'
15954
+ name: 'goodNo',
15955
+ type: 'optionalInput'
15537
15956
  }, {
15538
15957
  label: '品牌',
15539
15958
  name: 'brandIds',
@@ -15723,13 +16142,15 @@ var WdtGoodsModal = /*#__PURE__*/React.forwardRef(GoodsModal$3);
15723
16142
  var getTableData$1 = function getTableData(_ref, formData) {
15724
16143
  var current = _ref.current,
15725
16144
  pageSize = _ref.pageSize;
16145
+ var conditionList = transformFormData(formData);
15726
16146
  return extendRequest('/qy/gdfw/product/product/page', {
15727
16147
  method: 'post',
15728
- data: _objectSpread2({
16148
+ data: {
15729
16149
  pageSize: pageSize,
15730
16150
  pageNo: current,
15731
- platform: 'JST_ERP'
15732
- }, formData)
16151
+ platform: 'JST_ERP',
16152
+ conditionList: conditionList
16153
+ }
15733
16154
  }).then(function (res) {
15734
16155
  var _res$data = res.data,
15735
16156
  _res$data$productSkuL = _res$data.productSkuList,
@@ -15750,10 +16171,12 @@ var searchFormData = [{
15750
16171
  name: 'goodName'
15751
16172
  }, {
15752
16173
  label: '商品编码',
15753
- name: 'goodNo'
16174
+ name: 'goodNo',
16175
+ type: 'optionalInput'
15754
16176
  }, {
15755
16177
  label: '款式编码',
15756
- name: 'styleCode'
16178
+ name: 'styleCode',
16179
+ type: 'optionalInput'
15757
16180
  }, {
15758
16181
  label: '商品类型',
15759
16182
  name: 'skuType',
@@ -15974,19 +16397,15 @@ var JstGoodsModal = /*#__PURE__*/React.forwardRef(GyGoodsModal);
15974
16397
  var getTableData$2 = function getTableData(_ref, formData) {
15975
16398
  var current = _ref.current,
15976
16399
  pageSize = _ref.pageSize;
15977
- var data = {
15978
- goodNo: formData.goodNo || null,
15979
- goodName: formData.goodName || null,
15980
- skuCode: formData.skuCode || null,
15981
- skuId: formData.skuId || null
15982
- };
16400
+ var conditionList = transformFormData(formData);
15983
16401
  return extendRequest('/qy/gdfw/product/product/page', {
15984
16402
  method: 'post',
15985
- data: _objectSpread2({
16403
+ data: {
15986
16404
  pageSize: pageSize,
15987
16405
  pageNo: current,
15988
- platform: 'BS_E3_ERP'
15989
- }, data)
16406
+ platform: 'BS_E3_ERP',
16407
+ conditionList: conditionList
16408
+ }
15990
16409
  }).then(function (res) {
15991
16410
  var _res$data = res.data,
15992
16411
  _res$data$productSkuL = _res$data.productSkuList,
@@ -16006,18 +16425,21 @@ var getTableData$2 = function getTableData(_ref, formData) {
16006
16425
  };
16007
16426
  var searchFormData$1 = [{
16008
16427
  label: '商品货号',
16009
- name: 'goodNo'
16428
+ name: 'goodNo',
16429
+ type: 'optionalInput'
16010
16430
  }, {
16011
16431
  label: '商品名称',
16012
16432
  name: 'goodName'
16013
16433
  }, {
16014
16434
  label: 'SKU',
16015
16435
  name: 'skuCode',
16016
- dataIndex: 'specNo'
16436
+ dataIndex: 'specNo',
16437
+ type: 'optionalInput'
16017
16438
  }, {
16018
16439
  label: 'SKU ID',
16019
16440
  name: 'skuId',
16020
- dataIndex: 'specId'
16441
+ dataIndex: 'specId',
16442
+ type: 'optionalInput'
16021
16443
  }];
16022
16444
  var GoodList$2 = function GoodList(props, ref) {
16023
16445
  var _useState = React.useState([]),
@@ -16219,13 +16641,15 @@ var rowCheckKey = 'id';
16219
16641
  var getTableData$3 = function getTableData(_ref, formData) {
16220
16642
  var current = _ref.current,
16221
16643
  pageSize = _ref.pageSize;
16644
+ var conditionList = transformFormData(formData);
16222
16645
  return extendRequest('/qy/gdfw/product/product/page', {
16223
16646
  method: 'post',
16224
- data: _objectSpread2({
16647
+ data: {
16225
16648
  pageSize: pageSize,
16226
16649
  pageNo: current,
16227
- platform: 'KM_ERP'
16228
- }, formData)
16650
+ platform: 'KM_ERP',
16651
+ conditionList: conditionList
16652
+ }
16229
16653
  }).then(function (res) {
16230
16654
  var _res$data = res.data,
16231
16655
  _res$data$productSkuL = _res$data.productSkuList,
@@ -16246,7 +16670,8 @@ var searchFormData$2 = [{
16246
16670
  name: 'goodName'
16247
16671
  }, {
16248
16672
  label: '商品编码',
16249
- name: 'goodNo'
16673
+ name: 'goodNo',
16674
+ type: 'optionalInput'
16250
16675
  }, {
16251
16676
  label: 'SKU名称',
16252
16677
  name: 'skuName',
@@ -16254,7 +16679,8 @@ var searchFormData$2 = [{
16254
16679
  }, {
16255
16680
  label: 'SKU编码',
16256
16681
  name: 'skuCode',
16257
- dataIndex: 'specNo'
16682
+ dataIndex: 'specNo',
16683
+ type: 'optionalInput'
16258
16684
  }];
16259
16685
  var GoodList$3 = function GoodList(props, ref) {
16260
16686
  var _useState = React.useState([]),
@@ -16462,20 +16888,15 @@ var KmGoodsModal = /*#__PURE__*/React.forwardRef(ErpGoodsModal);
16462
16888
  var getTableData$4 = function getTableData(_ref, formData) {
16463
16889
  var current = _ref.current,
16464
16890
  pageSize = _ref.pageSize;
16465
- var data = {
16466
- goodShortName: formData.goodShortName || null,
16467
- skuName: formData.skuName || null,
16468
- skuCode: formData.skuCode || null,
16469
- goodName: formData.goodName || null,
16470
- goodNo: formData.goodNo || null
16471
- };
16891
+ var conditionList = transformFormData(formData);
16472
16892
  return extendRequest('/qy/gdfw/product/product/page', {
16473
16893
  method: 'post',
16474
- data: _objectSpread2({
16894
+ data: {
16475
16895
  pageSize: pageSize,
16476
16896
  pageNo: current,
16477
- platform: 'GY_ERP'
16478
- }, data)
16897
+ platform: 'GY_ERP',
16898
+ conditionList: conditionList
16899
+ }
16479
16900
  }).then(function (res) {
16480
16901
  var _res$data = res.data,
16481
16902
  _res$data$productSkuL = _res$data.productSkuList,
@@ -16501,13 +16922,15 @@ var searchFormData$3 = [{
16501
16922
  }, {
16502
16923
  label: '商品sku编码',
16503
16924
  name: 'skuCode',
16504
- dataIndex: 'specNo'
16925
+ dataIndex: 'specNo',
16926
+ type: 'optionalInput'
16505
16927
  }, {
16506
16928
  label: '商品名称',
16507
16929
  name: 'goodName'
16508
16930
  }, {
16509
16931
  label: '商品编码',
16510
- name: 'goodNo'
16932
+ name: 'goodNo',
16933
+ type: 'optionalInput'
16511
16934
  }];
16512
16935
  var GoodList$4 = function GoodList(props, ref) {
16513
16936
  var _useState = React.useState([]),
@@ -18127,13 +18550,15 @@ var GyGoodsModal$2 = /*#__PURE__*/React.forwardRef(GyGoodsModal$1);
18127
18550
  var getTableData$5 = function getTableData(_ref, formData) {
18128
18551
  var current = _ref.current,
18129
18552
  pageSize = _ref.pageSize;
18553
+ var conditionList = transformFormData(formData);
18130
18554
  return extendRequest('/qy/gdfw/product/product/page', {
18131
18555
  method: 'post',
18132
- data: _objectSpread2({
18556
+ data: {
18133
18557
  pageSize: pageSize,
18134
18558
  pageNo: current,
18135
- platform: 'JY_ERP'
18136
- }, formData)
18559
+ platform: 'JY_ERP',
18560
+ conditionList: conditionList
18561
+ }
18137
18562
  }).then(function (res) {
18138
18563
  var _res$data = res.data,
18139
18564
  _res$data$productSkuL = _res$data.productSkuList,
@@ -18156,13 +18581,15 @@ var searchFormData$4 = [{
18156
18581
  }, {
18157
18582
  label: '规格编码',
18158
18583
  name: 'skuCode',
18159
- dataIndex: 'specNo'
18584
+ dataIndex: 'specNo',
18585
+ type: 'optionalInput'
18160
18586
  }, {
18161
18587
  label: '商品名称',
18162
18588
  name: 'goodName'
18163
18589
  }, {
18164
18590
  label: '商品编码',
18165
- name: 'goodNo'
18591
+ name: 'goodNo',
18592
+ type: 'optionalInput'
18166
18593
  }];
18167
18594
  var GoodList$5 = function GoodList(props, ref) {
18168
18595
  var _useState = React.useState([]),
@@ -18367,139 +18794,382 @@ var JyGoodsModal = function JyGoodsModal(props, ref) {
18367
18794
  };
18368
18795
  var JyGoodsModal$1 = /*#__PURE__*/React.forwardRef(JyGoodsModal);
18369
18796
 
18370
- var getColumns = function getColumns(_ref) {
18371
- var _ref$text = _ref.text,
18372
- disabled = _ref.disabled,
18373
- updateHandle = _ref.updateHandle;
18374
- return {
18375
- //百胜E3补发商品
18376
- BS_E3_REISSUE_GOODS: [{
18377
- dataIndex: 'sku',
18378
- title: "SKU",
18379
- width: 150,
18380
- render: renderTextEllipsis
18381
- }, {
18382
- dataIndex: 'skuId',
18383
- title: "SKU ID",
18384
- width: 150,
18385
- render: renderTextEllipsis
18386
- }, {
18387
- dataIndex: 'goodsName',
18388
- title: "\u5546\u54C1\u540D\u79F0",
18389
- width: 150,
18390
- render: renderTextEllipsis
18391
- }, {
18392
- dataIndex: 'goodsShortName',
18393
- title: "\u5546\u54C1\u7B80\u79F0",
18394
- width: 150,
18395
- render: renderTextEllipsis
18396
- }, {
18397
- dataIndex: 'picPath',
18398
- title: "\u5546\u54C1\u56FE\u7247",
18399
- width: 150,
18400
- render: function render(val) {
18401
- return /*#__PURE__*/React__default['default'].createElement(antd.Image, {
18402
- width: 30,
18403
- src: val
18404
- });
18405
- }
18406
- }, {
18407
- dataIndex: 'goodsSn',
18408
- title: "\u8D27\u53F7",
18409
- width: 150,
18410
- render: renderTextEllipsis
18411
- }, {
18412
- dataIndex: 'goodsId',
18413
- title: "\u8D27\u53F7ID",
18414
- width: 150,
18415
- render: renderTextEllipsis
18416
- }, {
18417
- dataIndex: 'colorName',
18418
- title: "\u989C\u8272\u540D\u79F0",
18419
- width: 150,
18420
- render: renderTextEllipsis
18421
- }, {
18422
- dataIndex: 'colorCode',
18423
- title: "\u989C\u8272\u4EE3\u7801",
18424
- width: 150,
18425
- render: renderTextEllipsis
18426
- }, {
18427
- dataIndex: 'sizeName',
18428
- title: "\u5C3A\u7801\u540D\u79F0",
18429
- width: 150,
18430
- render: renderTextEllipsis
18431
- }, {
18432
- dataIndex: 'sizeCode',
18433
- title: "\u5C3A\u7801\u4EE3\u7801",
18434
- width: 150,
18435
- render: renderTextEllipsis
18436
- }, {
18437
- dataIndex: 'brandName',
18438
- title: "\u54C1\u724C\u540D\u79F0",
18439
- width: 150,
18440
- render: renderTextEllipsis
18441
- }, {
18442
- dataIndex: 'goodsNumber',
18443
- title: "\u5546\u54C1\u6570\u91CF",
18444
- width: 150
18445
- }, {
18446
- dataIndex: 'goodsPrice',
18447
- title: "\u5546\u54C1\u5355\u4EF7",
18448
- width: 150
18449
- }, {
18450
- dataIndex: 'shopPrice',
18451
- title: "\u5546\u54C1\u7F51\u5E97\u552E\u4EF7",
18452
- width: 150
18453
- }, {
18454
- dataIndex: 'isGift',
18455
- title: "\u662F\u5426\u8D60\u54C1",
18456
- width: 150,
18457
- render: function render(val) {
18458
- return /*#__PURE__*/React__default['default'].createElement("span", null, +val ? '是' : '否');
18797
+ var getTableData$6 = function getTableData(_ref, formData) {
18798
+ var current = _ref.current,
18799
+ pageSize = _ref.pageSize;
18800
+ return extendRequest('/qy/gdfw/product/product/page', {
18801
+ method: 'post',
18802
+ data: _objectSpread2({
18803
+ pageSize: pageSize,
18804
+ pageNo: current,
18805
+ platform: 'JY_ERP'
18806
+ }, formData)
18807
+ }).then(function (res) {
18808
+ var _res$data = res.data,
18809
+ _res$data$productSkuL = _res$data.productSkuList,
18810
+ productSkuList = _res$data$productSkuL === void 0 ? [] : _res$data$productSkuL,
18811
+ _res$data$total = _res$data.total,
18812
+ total = _res$data$total === void 0 ? 0 : _res$data$total;
18813
+ var newProducts = productSkuList.map(function (item, index) {
18814
+ return _objectSpread2({}, item);
18815
+ });
18816
+ return {
18817
+ total: total,
18818
+ list: newProducts
18819
+ };
18820
+ });
18821
+ };
18822
+ var searchFormData$5 = [{
18823
+ label: '规格名称',
18824
+ name: 'skuName',
18825
+ dataIndex: 'specName'
18826
+ }, {
18827
+ label: '规格编码',
18828
+ name: 'skuCode',
18829
+ dataIndex: 'specNo'
18830
+ }, {
18831
+ label: '商品名称',
18832
+ name: 'goodName'
18833
+ }, {
18834
+ label: '商品编码',
18835
+ name: 'goodNo'
18836
+ }];
18837
+ var GoodList$6 = function GoodList(props, ref) {
18838
+ var _useState = React.useState([]),
18839
+ _useState2 = _slicedToArray(_useState, 2),
18840
+ selectList = _useState2[0],
18841
+ setSelect = _useState2[1];
18842
+ var _useState3 = React.useState([]),
18843
+ _useState4 = _slicedToArray(_useState3, 2),
18844
+ selectIds = _useState4[0],
18845
+ setSelectIds = _useState4[1];
18846
+ var _useGetColumns = useGetColumns('jky'),
18847
+ _useGetColumns2 = _slicedToArray(_useGetColumns, 3),
18848
+ columns = _useGetColumns2[0],
18849
+ showColumnsDataIndexList = _useGetColumns2[1],
18850
+ loading = _useGetColumns2[2];
18851
+ React.useImperativeHandle(ref, function () {
18852
+ return {
18853
+ getSelectGoodList: function getSelectGoodList() {
18854
+ return selectList;
18459
18855
  }
18460
- }],
18461
- //百胜E3商品信息
18462
- BS_E3_GOODS: [{
18463
- dataIndex: 'sku',
18464
- title: "SKU",
18465
- align: 'center',
18466
- ellipsis: true,
18467
- width: 150,
18468
- render: renderTextEllipsis
18469
- }, {
18470
- dataIndex: 'skuId',
18471
- title: "SKU ID",
18472
- align: 'center',
18473
- ellipsis: true,
18474
- width: 150,
18475
- render: renderTextEllipsis
18476
- }, {
18477
- dataIndex: 'goodsName',
18478
- title: "\u5546\u54C1\u540D\u79F0",
18479
- align: 'center',
18480
- ellipsis: true,
18481
- width: 150,
18482
- render: renderTextEllipsis
18483
- }, {
18484
- dataIndex: 'goodsShortName',
18485
- title: "\u5546\u54C1\u7B80\u79F0",
18486
- align: 'center',
18487
- ellipsis: true,
18488
- width: 100,
18489
- render: renderTextEllipsis
18490
- }, {
18491
- dataIndex: 'picPath',
18492
- title: "\u5546\u54C1\u56FE\u7247",
18493
- align: 'center',
18494
- ellipsis: true,
18495
- width: 100,
18496
- render: function render(val) {
18497
- return /*#__PURE__*/React__default['default'].createElement(antd.Image, {
18498
- width: 30,
18499
- src: val
18500
- });
18856
+ };
18857
+ });
18858
+ var _Form$useForm = antd.Form.useForm(),
18859
+ _Form$useForm2 = _slicedToArray(_Form$useForm, 1),
18860
+ form = _Form$useForm2[0];
18861
+ var _useAntdTable = ahooks.useAntdTable(getTableData$6, {
18862
+ defaultPageSize: 10,
18863
+ form: form
18864
+ }),
18865
+ tableProps = _useAntdTable.tableProps,
18866
+ search = _useAntdTable.search,
18867
+ params = _useAntdTable.params;
18868
+ var submit = search.submit,
18869
+ reset = search.reset;
18870
+ var rowSelection = {
18871
+ selectedRowKeys: selectIds,
18872
+ fixed: true,
18873
+ onSelect: function onSelect(record, selected) {
18874
+ if (selected) {
18875
+ setSelectIds([].concat(_toConsumableArray(selectIds), [record.id]));
18876
+ setSelect([].concat(_toConsumableArray(selectList), [record]));
18877
+ } else {
18878
+ setSelectIds(selectIds.filter(function (t) {
18879
+ return t !== record.id;
18880
+ }));
18881
+ setSelect(selectList.filter(function (t) {
18882
+ return t.id !== record.id;
18883
+ }));
18501
18884
  }
18502
- }, {
18885
+ },
18886
+ onSelectAll: function onSelectAll(selected, selectedRows, changeRows) {
18887
+ if (selected) {
18888
+ setSelectIds([].concat(_toConsumableArray(selectIds), _toConsumableArray(changeRows.map(function (t) {
18889
+ return t.id;
18890
+ }))));
18891
+ setSelect([].concat(_toConsumableArray(selectList), _toConsumableArray(changeRows)));
18892
+ } else {
18893
+ setSelectIds(lodash.difference(selectIds, changeRows.map(function (t) {
18894
+ return t.id;
18895
+ })));
18896
+ var list = lodash.differenceWith(selectList, changeRows, function (arrVal, othVal) {
18897
+ return arrVal.id !== othVal.id;
18898
+ });
18899
+ setSelect(list);
18900
+ }
18901
+ },
18902
+ getCheckboxProps: function getCheckboxProps(record) {
18903
+ var options = {
18904
+ disabled: (props.selectedRows || []).map(function (row) {
18905
+ return row.id || row.specId;
18906
+ }).includes(record.id || record.specId),
18907
+ name: record.id
18908
+ };
18909
+ return options;
18910
+ }
18911
+ };
18912
+ var showTable = function showTable() {
18913
+ var handleDelete = function handleDelete(record) {
18914
+ setSelectIds(selectIds.filter(function (t) {
18915
+ return t !== record.id;
18916
+ }));
18917
+ setSelect(selectList.filter(function (t) {
18918
+ return t.id !== record.id;
18919
+ }));
18920
+ };
18921
+ var showColumns = [{
18922
+ dataIndex: '',
18923
+ title: "\u64CD\u4F5C",
18924
+ ellipsis: true,
18925
+ width: 100,
18926
+ render: function render(val, record) {
18927
+ return /*#__PURE__*/React__default['default'].createElement(antd.Button, {
18928
+ type: "link",
18929
+ onClick: function onClick() {
18930
+ return handleDelete(record);
18931
+ }
18932
+ }, "\u5220\u9664");
18933
+ }
18934
+ }].concat(lodash.takeRight(columns, columns.length - 1));
18935
+ return selectList.length ? /*#__PURE__*/React__default['default'].createElement("div", {
18936
+ style: {
18937
+ width: '100%',
18938
+ maxWidth: '387px'
18939
+ }
18940
+ }, /*#__PURE__*/React__default['default'].createElement(antd.Table, {
18941
+ columns: showColumns,
18942
+ rowKey: 'id',
18943
+ dataSource: selectList,
18944
+ scroll: {
18945
+ x: '100%',
18946
+ y: 250
18947
+ },
18948
+ pagination: {
18949
+ size: 'small',
18950
+ total: selectIds.length,
18951
+ pageSize: 10,
18952
+ showSizeChanger: false
18953
+ }
18954
+ })) : null;
18955
+ };
18956
+ return /*#__PURE__*/React__default['default'].createElement(antd.Skeleton, {
18957
+ active: true,
18958
+ loading: loading
18959
+ }, /*#__PURE__*/React__default['default'].createElement(SearchForm, {
18960
+ searchFormData: searchFormData$5,
18961
+ form: form,
18962
+ showColumnsDataIndexList: showColumnsDataIndexList,
18963
+ submit: submit,
18964
+ reset: reset
18965
+ }), /*#__PURE__*/React__default['default'].createElement("div", {
18966
+ style: {
18967
+ marginTop: '4px'
18968
+ }
18969
+ }, /*#__PURE__*/React__default['default'].createElement(antd.Table, _objectSpread2({
18970
+ className: "GoodModalColumns",
18971
+ rowSelection: rowSelection,
18972
+ rowKey: "id",
18973
+ columns: columns,
18974
+ scroll: {
18975
+ x: '100%',
18976
+ y: 250
18977
+ },
18978
+ size: "small"
18979
+ }, tableProps))), /*#__PURE__*/React__default['default'].createElement(antd.Popover, {
18980
+ getPopupContainer: function getPopupContainer(triggerNode) {
18981
+ return triggerNode.parentElement;
18982
+ },
18983
+ content: showTable(),
18984
+ title: "\u5DF2\u9009\u62E9".concat(selectList.length, "\u4E2A\u5546\u54C1")
18985
+ }, /*#__PURE__*/React__default['default'].createElement(antd.Button, {
18986
+ danger: true,
18987
+ type: "text"
18988
+ }, "\u5DF2\u9009".concat(selectList.length > 99 ? '99+' : selectList.length, "\u4E2A\u5546\u54C1"), /*#__PURE__*/React__default['default'].createElement(icons.CaretUpOutlined, null))));
18989
+ };
18990
+ var JkyGoodsList = /*#__PURE__*/React.forwardRef(GoodList$6);
18991
+
18992
+ var JkyGoodsModal = function JkyGoodsModal(props, ref) {
18993
+ React.useImperativeHandle(ref, function () {
18994
+ return {
18995
+ open: function open(shopCode) {
18996
+ var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
18997
+ setVisible(true);
18998
+ setSelectedRows(options.value || []);
18999
+ }
19000
+ };
19001
+ });
19002
+ var onSubmit = props.onSubmit,
19003
+ width = props.width;
19004
+ var _useState = React.useState(false),
19005
+ _useState2 = _slicedToArray(_useState, 2),
19006
+ visible = _useState2[0],
19007
+ setVisible = _useState2[1];
19008
+ var _useState3 = React.useState([]),
19009
+ _useState4 = _slicedToArray(_useState3, 2),
19010
+ selectedRows = _useState4[0],
19011
+ setSelectedRows = _useState4[1];
19012
+ var jkyGoodsListRef = React.useRef(null);
19013
+ var _onCancel = function onCancel() {
19014
+ setVisible(false);
19015
+ };
19016
+ var onOk = function onOk() {
19017
+ var _jkyGoodsListRef$curr;
19018
+ var selectedList = ((_jkyGoodsListRef$curr = jkyGoodsListRef.current) === null || _jkyGoodsListRef$curr === void 0 ? void 0 : _jkyGoodsListRef$curr.getSelectGoodList()) || [];
19019
+ onSubmit(selectedList);
19020
+ _onCancel();
19021
+ };
19022
+ return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, visible && /*#__PURE__*/React__default['default'].createElement(antd.Modal, {
19023
+ title: '选择商品',
19024
+ okText: '确认',
19025
+ cancelText: '取消',
19026
+ visible: visible,
19027
+ width: width || 850,
19028
+ onCancel: function onCancel() {
19029
+ _onCancel();
19030
+ },
19031
+ onOk: onOk,
19032
+ wrapClassName: "goodModal"
19033
+ }, /*#__PURE__*/React__default['default'].createElement(JkyGoodsList, {
19034
+ ref: jkyGoodsListRef,
19035
+ selectedRows: selectedRows
19036
+ })));
19037
+ };
19038
+ var JkyGoodsModal$1 = /*#__PURE__*/React.forwardRef(JkyGoodsModal);
19039
+
19040
+ var getColumns = function getColumns(_ref) {
19041
+ var _ref$text = _ref.text,
19042
+ disabled = _ref.disabled,
19043
+ updateHandle = _ref.updateHandle;
19044
+ return {
19045
+ //百胜E3补发商品
19046
+ BS_E3_REISSUE_GOODS: [{
19047
+ dataIndex: 'sku',
19048
+ title: "SKU",
19049
+ width: 150,
19050
+ render: renderTextEllipsis
19051
+ }, {
19052
+ dataIndex: 'skuId',
19053
+ title: "SKU ID",
19054
+ width: 150,
19055
+ render: renderTextEllipsis
19056
+ }, {
19057
+ dataIndex: 'goodsName',
19058
+ title: "\u5546\u54C1\u540D\u79F0",
19059
+ width: 150,
19060
+ render: renderTextEllipsis
19061
+ }, {
19062
+ dataIndex: 'goodsShortName',
19063
+ title: "\u5546\u54C1\u7B80\u79F0",
19064
+ width: 150,
19065
+ render: renderTextEllipsis
19066
+ }, {
19067
+ dataIndex: 'picPath',
19068
+ title: "\u5546\u54C1\u56FE\u7247",
19069
+ width: 150,
19070
+ render: function render(val) {
19071
+ return /*#__PURE__*/React__default['default'].createElement(antd.Image, {
19072
+ width: 30,
19073
+ src: val
19074
+ });
19075
+ }
19076
+ }, {
19077
+ dataIndex: 'goodsSn',
19078
+ title: "\u8D27\u53F7",
19079
+ width: 150,
19080
+ render: renderTextEllipsis
19081
+ }, {
19082
+ dataIndex: 'goodsId',
19083
+ title: "\u8D27\u53F7ID",
19084
+ width: 150,
19085
+ render: renderTextEllipsis
19086
+ }, {
19087
+ dataIndex: 'colorName',
19088
+ title: "\u989C\u8272\u540D\u79F0",
19089
+ width: 150,
19090
+ render: renderTextEllipsis
19091
+ }, {
19092
+ dataIndex: 'colorCode',
19093
+ title: "\u989C\u8272\u4EE3\u7801",
19094
+ width: 150,
19095
+ render: renderTextEllipsis
19096
+ }, {
19097
+ dataIndex: 'sizeName',
19098
+ title: "\u5C3A\u7801\u540D\u79F0",
19099
+ width: 150,
19100
+ render: renderTextEllipsis
19101
+ }, {
19102
+ dataIndex: 'sizeCode',
19103
+ title: "\u5C3A\u7801\u4EE3\u7801",
19104
+ width: 150,
19105
+ render: renderTextEllipsis
19106
+ }, {
19107
+ dataIndex: 'brandName',
19108
+ title: "\u54C1\u724C\u540D\u79F0",
19109
+ width: 150,
19110
+ render: renderTextEllipsis
19111
+ }, {
19112
+ dataIndex: 'goodsNumber',
19113
+ title: "\u5546\u54C1\u6570\u91CF",
19114
+ width: 150
19115
+ }, {
19116
+ dataIndex: 'goodsPrice',
19117
+ title: "\u5546\u54C1\u5355\u4EF7",
19118
+ width: 150
19119
+ }, {
19120
+ dataIndex: 'shopPrice',
19121
+ title: "\u5546\u54C1\u7F51\u5E97\u552E\u4EF7",
19122
+ width: 150
19123
+ }, {
19124
+ dataIndex: 'isGift',
19125
+ title: "\u662F\u5426\u8D60\u54C1",
19126
+ width: 150,
19127
+ render: function render(val) {
19128
+ return /*#__PURE__*/React__default['default'].createElement("span", null, +val ? '是' : '否');
19129
+ }
19130
+ }],
19131
+ //百胜E3商品信息
19132
+ BS_E3_GOODS: [{
19133
+ dataIndex: 'sku',
19134
+ title: "SKU",
19135
+ align: 'center',
19136
+ ellipsis: true,
19137
+ width: 150,
19138
+ render: renderTextEllipsis
19139
+ }, {
19140
+ dataIndex: 'skuId',
19141
+ title: "SKU ID",
19142
+ align: 'center',
19143
+ ellipsis: true,
19144
+ width: 150,
19145
+ render: renderTextEllipsis
19146
+ }, {
19147
+ dataIndex: 'goodsName',
19148
+ title: "\u5546\u54C1\u540D\u79F0",
19149
+ align: 'center',
19150
+ ellipsis: true,
19151
+ width: 150,
19152
+ render: renderTextEllipsis
19153
+ }, {
19154
+ dataIndex: 'goodsShortName',
19155
+ title: "\u5546\u54C1\u7B80\u79F0",
19156
+ align: 'center',
19157
+ ellipsis: true,
19158
+ width: 100,
19159
+ render: renderTextEllipsis
19160
+ }, {
19161
+ dataIndex: 'picPath',
19162
+ title: "\u5546\u54C1\u56FE\u7247",
19163
+ align: 'center',
19164
+ ellipsis: true,
19165
+ width: 100,
19166
+ render: function render(val) {
19167
+ return /*#__PURE__*/React__default['default'].createElement(antd.Image, {
19168
+ width: 30,
19169
+ src: val
19170
+ });
19171
+ }
19172
+ }, {
18503
19173
  dataIndex: 'goodsSn',
18504
19174
  title: "\u8D27\u53F7",
18505
19175
  align: 'center',
@@ -18952,7 +19622,8 @@ var getColumns$2 = function getColumns(_ref) {
18952
19622
  title: "\u5E73\u53F0\u89C4\u683CID",
18953
19623
  width: 180,
18954
19624
  align: 'center',
18955
- ellipsis: true
19625
+ ellipsis: true,
19626
+ render: renderTextEllipsis
18956
19627
  }, {
18957
19628
  dataIndex: 'brandName',
18958
19629
  title: "\u54C1\u724C\u540D\u79F0",
@@ -19086,7 +19757,8 @@ var getColumns$2 = function getColumns(_ref) {
19086
19757
  title: "\u5E73\u53F0\u89C4\u683CID",
19087
19758
  width: 180,
19088
19759
  align: 'center',
19089
- ellipsis: true
19760
+ ellipsis: true,
19761
+ render: renderTextEllipsis
19090
19762
  }, {
19091
19763
  dataIndex: 'brandName',
19092
19764
  title: "\u54C1\u724C\u540D\u79F0",
@@ -19225,7 +19897,8 @@ var getColumns$2 = function getColumns(_ref) {
19225
19897
  title: "\u5E73\u53F0\u89C4\u683CID",
19226
19898
  width: 180,
19227
19899
  align: 'center',
19228
- ellipsis: true
19900
+ ellipsis: true,
19901
+ render: renderTextEllipsis
19229
19902
  }, {
19230
19903
  dataIndex: 'brandName',
19231
19904
  title: "\u54C1\u724C\u540D\u79F0",
@@ -19402,7 +20075,8 @@ var getColumns$2 = function getColumns(_ref) {
19402
20075
  title: "\u5E73\u53F0\u89C4\u683CID",
19403
20076
  width: 180,
19404
20077
  align: 'center',
19405
- ellipsis: true
20078
+ ellipsis: true,
20079
+ render: renderTextEllipsis
19406
20080
  }, {
19407
20081
  dataIndex: 'brandName',
19408
20082
  title: "\u54C1\u724C\u540D\u79F0",
@@ -20354,7 +21028,7 @@ var getColumns$5 = function getColumns() {
20354
21028
  ellipsis: true,
20355
21029
  align: 'center',
20356
21030
  render: function render(val, record, index) {
20357
- return (record.qty || 0) * (+record.salePrice || 0);
21031
+ return ((record.qty || 0) * (+record.salePrice || 0)).toFixed(2);
20358
21032
  }
20359
21033
  }, {
20360
21034
  dataIndex: 'batchId',
@@ -20463,7 +21137,268 @@ var getColumns$5 = function getColumns() {
20463
21137
  // }
20464
21138
  // },
20465
21139
  render: function render(val, record, index) {
20466
- return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
21140
+ return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
21141
+ style: {
21142
+ width: 70
21143
+ },
21144
+ value: val,
21145
+ min: 0,
21146
+ precision: 2,
21147
+ onChange: function onChange(num) {
21148
+ return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'salePrice');
21149
+ }
21150
+ }) : /*#__PURE__*/React__default['default'].createElement("span", null, val || val === 0 ? Number(val).toFixed(2) : '');
21151
+ }
21152
+ }, {
21153
+ dataIndex: 'qty',
21154
+ title: '数量',
21155
+ ellipsis: true,
21156
+ align: 'center',
21157
+ width: 100,
21158
+ validator: function validator(_rule, value) {
21159
+ var goodsName = '';
21160
+ if (((value === null || value === void 0 ? void 0 : value.jstReissueGoods) || []).some(function (goods) {
21161
+ var qty = toNum$2(goods === null || goods === void 0 ? void 0 : goods.qty);
21162
+ var res = typeof qty === 'number' ? qty < 1 : true;
21163
+ if (res) {
21164
+ goodsName = (goods === null || goods === void 0 ? void 0 : goods.name) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.name, "]") : '';
21165
+ }
21166
+ return res;
21167
+ })) {
21168
+ return Promise.reject("".concat(goodsName, "\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
21169
+ }
21170
+ },
21171
+ render: function render(val, record, index) {
21172
+ return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
21173
+ style: {
21174
+ width: 70
21175
+ },
21176
+ value: val,
21177
+ min: 1,
21178
+ precision: 0,
21179
+ onChange: function onChange(num) {
21180
+ return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'qty');
21181
+ }
21182
+ }) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
21183
+ }
21184
+ }, {
21185
+ dataIndex: 'isGift',
21186
+ title: '是否赠品',
21187
+ ellipsis: true,
21188
+ align: 'center',
21189
+ width: 100,
21190
+ render: function render(val, record, index) {
21191
+ return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
21192
+ value: val,
21193
+ onChange: function onChange(value) {
21194
+ updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(value, index, 'isGift');
21195
+ },
21196
+ options: [{
21197
+ label: '是',
21198
+ value: true
21199
+ }, {
21200
+ label: '否',
21201
+ value: false
21202
+ }]
21203
+ }) : /*#__PURE__*/React__default['default'].createElement("span", null, typeof val !== 'boolean' ? '' : val ? '是' : '否');
21204
+ }
21205
+ }, {
21206
+ dataIndex: 'remark',
21207
+ title: '备注',
21208
+ width: 150,
21209
+ ellipsis: true,
21210
+ align: 'center',
21211
+ render: function render(val, record, index) {
21212
+ return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Input, {
21213
+ style: {
21214
+ width: 70
21215
+ },
21216
+ value: val,
21217
+ onChange: function onChange(e) {
21218
+ return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(e.target.value, index, 'remark');
21219
+ }
21220
+ }) : renderTextEllipsis(val);
21221
+ }
21222
+ }],
21223
+ JST_RETURN_GOODS: [{
21224
+ dataIndex: 'name',
21225
+ title: '商品名称',
21226
+ render: renderTextEllipsis
21227
+ }, {
21228
+ dataIndex: 'skuId',
21229
+ title: '商品编码',
21230
+ render: renderTextEllipsis
21231
+ }, {
21232
+ dataIndex: 'iId',
21233
+ title: '款式编码',
21234
+ render: renderTextEllipsis
21235
+ }, {
21236
+ dataIndex: 'pic',
21237
+ title: '商品图片',
21238
+ width: 100,
21239
+ render: function render(val) {
21240
+ return /*#__PURE__*/React__default['default'].createElement(ApaasImage, {
21241
+ width: 30,
21242
+ src: val
21243
+ });
21244
+ }
21245
+ }, {
21246
+ dataIndex: 'propertiesValue',
21247
+ title: '规格值',
21248
+ render: renderTextEllipsis
21249
+ }, {
21250
+ dataIndex: 'saleBasePrice',
21251
+ title: '原价',
21252
+ render: function render(price) {
21253
+ return price || price === 0 ? Number(price).toFixed(2) : '';
21254
+ }
21255
+ }, {
21256
+ dataIndex: 'salePrice',
21257
+ title: '单价',
21258
+ width: 120,
21259
+ validator: function validator(_rule, value) {
21260
+ var goodsName = '';
21261
+ if (((value === null || value === void 0 ? void 0 : value.jstReturnGoods) || []).some(function (goods) {
21262
+ var v = toNum$2(goods === null || goods === void 0 ? void 0 : goods.salePrice);
21263
+ var res = typeof v === 'number' ? v < 0 : true;
21264
+ if (res) {
21265
+ goodsName = (goods === null || goods === void 0 ? void 0 : goods.name) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.name, "]") : '';
21266
+ }
21267
+ return res;
21268
+ })) {
21269
+ return Promise.reject("".concat(goodsName, "\u5355\u4EF7\u4E3A\u5927\u4E8E\u7B49\u4E8E0\u7684\u6570"));
21270
+ }
21271
+ },
21272
+ render: function render(val, record, index) {
21273
+ return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
21274
+ style: {
21275
+ width: 70
21276
+ },
21277
+ value: val,
21278
+ min: 0,
21279
+ precision: 2,
21280
+ onChange: function onChange(num) {
21281
+ return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'salePrice');
21282
+ }
21283
+ }) : /*#__PURE__*/React__default['default'].createElement("span", null, val || val === 0 ? Number(val).toFixed(2) : '');
21284
+ }
21285
+ }, {
21286
+ dataIndex: 'qty',
21287
+ title: '数量',
21288
+ width: 100,
21289
+ validator: function validator(_rule, value) {
21290
+ var goodsName = '';
21291
+ if (((value === null || value === void 0 ? void 0 : value.jstReturnGoods) || []).some(function (goods) {
21292
+ var qty = toNum$2(goods === null || goods === void 0 ? void 0 : goods.qty);
21293
+ var res = typeof qty === 'number' ? qty < 1 : true;
21294
+ if (res) {
21295
+ goodsName = (goods === null || goods === void 0 ? void 0 : goods.name) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.name, "]") : '';
21296
+ }
21297
+ return res;
21298
+ })) {
21299
+ return Promise.reject("".concat(goodsName, "\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
21300
+ }
21301
+ },
21302
+ render: function render(val, record, index) {
21303
+ return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
21304
+ style: {
21305
+ width: 70
21306
+ },
21307
+ value: val,
21308
+ min: 1,
21309
+ precision: 0,
21310
+ onChange: function onChange(num) {
21311
+ return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'qty');
21312
+ }
21313
+ }) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
21314
+ }
21315
+ }, {
21316
+ dataIndex: 'saleAmount',
21317
+ title: '总金额',
21318
+ render: function render(val, record) {
21319
+ return ((record.qty || 0) * (+record.salePrice || 0)).toFixed(2);
21320
+ }
21321
+ }, {
21322
+ dataIndex: 'batchId',
21323
+ title: '批次号',
21324
+ render: renderTextEllipsis
21325
+ }, {
21326
+ dataIndex: 'isGift',
21327
+ title: '是否赠品',
21328
+ width: 100,
21329
+ render: function render(val, record, index) {
21330
+ return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
21331
+ value: val,
21332
+ onChange: function onChange(value) {
21333
+ updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(value, index, 'isGift');
21334
+ },
21335
+ options: [{
21336
+ label: '是',
21337
+ value: true
21338
+ }, {
21339
+ label: '否',
21340
+ value: false
21341
+ }]
21342
+ }) : /*#__PURE__*/React__default['default'].createElement("span", null, typeof val !== 'boolean' ? '' : val ? '是' : '否');
21343
+ }
21344
+ }, {
21345
+ dataIndex: 'remark',
21346
+ title: '备注',
21347
+ render: function render(val, record, index) {
21348
+ return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Input, {
21349
+ style: {
21350
+ width: 70
21351
+ },
21352
+ value: val,
21353
+ onChange: function onChange(e) {
21354
+ return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(e.target.value, index, 'remark');
21355
+ }
21356
+ }) : renderTextEllipsis(val);
21357
+ }
21358
+ }, {
21359
+ dataIndex: 'outerOiId',
21360
+ title: '子订单号',
21361
+ width: 240,
21362
+ render: renderTextEllipsis
21363
+ }].map(fillAttrs),
21364
+ JST_EXCHANGE_GOODS: [{
21365
+ dataIndex: 'name',
21366
+ title: '商品名称',
21367
+ render: renderTextEllipsis
21368
+ }, {
21369
+ dataIndex: 'skuId',
21370
+ title: '商品编码',
21371
+ render: renderTextEllipsis
21372
+ }, {
21373
+ dataIndex: 'iId',
21374
+ title: '款式编码',
21375
+ render: renderTextEllipsis
21376
+ }, {
21377
+ dataIndex: 'pic',
21378
+ title: '商品图片',
21379
+ width: 100,
21380
+ render: function render(val) {
21381
+ return /*#__PURE__*/React__default['default'].createElement(ApaasImage, {
21382
+ width: 30,
21383
+ src: val
21384
+ });
21385
+ }
21386
+ }, {
21387
+ dataIndex: 'propertiesValue',
21388
+ title: '规格值',
21389
+ render: renderTextEllipsis
21390
+ }, {
21391
+ dataIndex: 'saleBasePrice',
21392
+ title: '原价',
21393
+ render: function render(price) {
21394
+ return price || price === 0 ? Number(price).toFixed(2) : '';
21395
+ }
21396
+ }, {
21397
+ dataIndex: 'salePrice',
21398
+ title: '单价',
21399
+ width: 120,
21400
+ render: function render(val, record, index) {
21401
+ return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
20467
21402
  style: {
20468
21403
  width: 70
20469
21404
  },
@@ -20478,24 +21413,9 @@ var getColumns$5 = function getColumns() {
20478
21413
  }, {
20479
21414
  dataIndex: 'qty',
20480
21415
  title: '数量',
20481
- ellipsis: true,
20482
- align: 'center',
20483
21416
  width: 100,
20484
- validator: function validator(_rule, value) {
20485
- var goodsName = '';
20486
- if (((value === null || value === void 0 ? void 0 : value.jstReissueGoods) || []).some(function (goods) {
20487
- var qty = toNum$2(goods === null || goods === void 0 ? void 0 : goods.qty);
20488
- var res = typeof qty === 'number' ? qty < 1 : true;
20489
- if (res) {
20490
- goodsName = (goods === null || goods === void 0 ? void 0 : goods.name) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.name, "]") : '';
20491
- }
20492
- return res;
20493
- })) {
20494
- return Promise.reject("".concat(goodsName, "\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
20495
- }
20496
- },
20497
21417
  render: function render(val, record, index) {
20498
- return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
21418
+ return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
20499
21419
  style: {
20500
21420
  width: 70
20501
21421
  },
@@ -20507,14 +21427,18 @@ var getColumns$5 = function getColumns() {
20507
21427
  }
20508
21428
  }) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
20509
21429
  }
21430
+ }, {
21431
+ dataIndex: 'saleAmount',
21432
+ title: '总金额',
21433
+ render: function render(val, record) {
21434
+ return ((record.qty || 0) * (+record.salePrice || 0)).toFixed(2);
21435
+ }
20510
21436
  }, {
20511
21437
  dataIndex: 'isGift',
20512
21438
  title: '是否赠品',
20513
- ellipsis: true,
20514
- align: 'center',
20515
21439
  width: 100,
20516
21440
  render: function render(val, record, index) {
20517
- return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
21441
+ return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
20518
21442
  value: val,
20519
21443
  onChange: function onChange(value) {
20520
21444
  updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(value, index, 'isGift');
@@ -20531,11 +21455,8 @@ var getColumns$5 = function getColumns() {
20531
21455
  }, {
20532
21456
  dataIndex: 'remark',
20533
21457
  title: '备注',
20534
- width: 150,
20535
- ellipsis: true,
20536
- align: 'center',
20537
21458
  render: function render(val, record, index) {
20538
- return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Input, {
21459
+ return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Input, {
20539
21460
  style: {
20540
21461
  width: 70
20541
21462
  },
@@ -20545,203 +21466,385 @@ var getColumns$5 = function getColumns() {
20545
21466
  }
20546
21467
  }) : renderTextEllipsis(val);
20547
21468
  }
20548
- }],
20549
- JST_RETURN_GOODS: [{
20550
- dataIndex: 'name',
20551
- title: '商品名称',
21469
+ }].map(fillAttrs),
21470
+ // jst售后商品信息
21471
+ JST_AFTERSALE_GOODS: [{
21472
+ dataIndex: 'asId',
21473
+ title: "\u805A\u6C34\u6F6D\u552E\u540E\u5355\u53F7",
21474
+ width: 200,
21475
+ align: 'center',
21476
+ ellipsis: true,
20552
21477
  render: renderTextEllipsis
20553
21478
  }, {
20554
- dataIndex: 'skuId',
20555
- title: '商品编码',
21479
+ dataIndex: 'asiId',
21480
+ title: "\u552E\u540E\u5B50\u5355\u53F7",
21481
+ width: 200,
21482
+ align: 'center',
21483
+ ellipsis: true,
20556
21484
  render: renderTextEllipsis
20557
21485
  }, {
20558
- dataIndex: 'iId',
20559
- title: '款式编码',
21486
+ dataIndex: 'outerOiId',
21487
+ title: "\u5B50\u8BA2\u5355\u53F7",
21488
+ width: 200,
21489
+ align: 'center',
21490
+ ellipsis: true,
20560
21491
  render: renderTextEllipsis
20561
21492
  }, {
20562
21493
  dataIndex: 'pic',
20563
- title: '商品图片',
21494
+ title: "\u56FE\u7247",
20564
21495
  width: 100,
21496
+ align: 'center',
20565
21497
  render: function render(val) {
20566
21498
  return /*#__PURE__*/React__default['default'].createElement(ApaasImage, {
20567
21499
  width: 30,
20568
21500
  src: val
20569
21501
  });
20570
- }
21502
+ },
21503
+ headerComponentType: 'pic'
21504
+ }, {
21505
+ dataIndex: 'name',
21506
+ title: "\u5546\u54C1\u540D\u79F0",
21507
+ width: 250,
21508
+ align: 'center',
21509
+ ellipsis: true,
21510
+ render: renderTextEllipsis
21511
+ }, {
21512
+ dataIndex: 'skuId',
21513
+ title: "\u5546\u54C1\u7F16\u7801",
21514
+ width: 200,
21515
+ align: 'center',
21516
+ ellipsis: true,
21517
+ render: renderTextEllipsis
20571
21518
  }, {
20572
21519
  dataIndex: 'propertiesValue',
20573
- title: '规格值',
21520
+ title: "\u89C4\u683C\u5C5E\u6027\u503C",
21521
+ width: 200,
21522
+ align: 'center',
21523
+ ellipsis: true,
21524
+ render: renderTextEllipsis
21525
+ }, {
21526
+ dataIndex: 'qty',
21527
+ title: "\u7533\u8BF7\u6570\u91CF",
21528
+ width: 150,
21529
+ align: 'center',
21530
+ ellipsis: true,
21531
+ render: renderTextEllipsis
21532
+ }, {
21533
+ dataIndex: 'rQty',
21534
+ title: "\u5B9E\u6536\u9000\u8D27\u6570\u91CF",
21535
+ width: 150,
21536
+ align: 'center',
21537
+ ellipsis: true,
21538
+ render: renderTextEllipsis
21539
+ }, {
21540
+ dataIndex: 'defectiveQty',
21541
+ title: "\u6B21\u54C1\u6570\u91CF",
21542
+ width: 150,
21543
+ align: 'center',
21544
+ ellipsis: true,
21545
+ render: renderTextEllipsis
21546
+ }, {
21547
+ dataIndex: 'amount',
21548
+ title: "\u7533\u8BF7\u91D1\u989D",
21549
+ width: 150,
21550
+ align: 'center',
21551
+ ellipsis: true,
21552
+ render: renderTextEllipsis
21553
+ }, {
21554
+ dataIndex: 'shopAmount',
21555
+ title: "\u7EBF\u4E0A\u660E\u7EC6\u91D1\u989D",
21556
+ width: 150,
21557
+ align: 'center',
21558
+ ellipsis: true,
21559
+ render: renderTextEllipsis
21560
+ }, {
21561
+ dataIndex: 'price',
21562
+ title: "\u5355\u4EF7",
21563
+ width: 150,
21564
+ align: 'center',
21565
+ ellipsis: true,
21566
+ render: renderTextEllipsis
21567
+ }, {
21568
+ dataIndex: 'combineSkuId',
21569
+ title: "\u7EC4\u5408\u5546\u54C1\u7F16\u7801",
21570
+ width: 250,
21571
+ align: 'center',
21572
+ ellipsis: true,
21573
+ render: renderTextEllipsis
21574
+ }, {
21575
+ dataIndex: 'shopSkuId',
21576
+ title: "\u5E97\u94FA\u5546\u54C1\u7F16\u7801",
21577
+ width: 200,
21578
+ align: 'center',
21579
+ ellipsis: true,
21580
+ render: renderTextEllipsis
21581
+ }, {
21582
+ dataIndex: 'iId',
21583
+ title: "\u6B3E\u5F0F\u7F16\u7801",
21584
+ width: 200,
21585
+ align: 'center',
21586
+ ellipsis: true,
21587
+ render: renderTextEllipsis
21588
+ }, {
21589
+ dataIndex: 'type',
21590
+ title: "\u552E\u540E\u7C7B\u578B",
21591
+ width: 150,
21592
+ align: 'center',
21593
+ ellipsis: true,
21594
+ render: renderTextEllipsis
21595
+ }, {
21596
+ dataIndex: 'skuType',
21597
+ title: "\u5546\u54C1\u7C7B\u578B",
21598
+ width: 150,
21599
+ align: 'center',
21600
+ ellipsis: true,
21601
+ render: renderTextEllipsis
21602
+ }, {
21603
+ dataIndex: 'isGift',
21604
+ title: '是否赠品',
21605
+ width: 100,
21606
+ render: function render(val) {
21607
+ return /*#__PURE__*/React__default['default'].createElement("span", null, typeof val !== 'boolean' ? '' : val ? '是' : '否');
21608
+ },
21609
+ headerMapping: {
21610
+ transformValue: function transformValue(val) {
21611
+ return typeof val !== 'boolean' ? '' : val ? '是' : '否';
21612
+ },
21613
+ renderExport: function renderExport(val) {
21614
+ return typeof val !== 'boolean' ? '' : val ? '是' : '否';
21615
+ }
21616
+ }
21617
+ }, {
21618
+ dataIndex: 'receiveDate',
21619
+ title: "\u5165\u4ED3\u65F6\u95F4",
21620
+ width: 200,
21621
+ align: 'center',
21622
+ ellipsis: true,
21623
+ render: renderTextEllipsis
21624
+ }, {
21625
+ dataIndex: 'remark',
21626
+ title: "\u660E\u7EC6\u5907\u6CE8",
21627
+ width: 200,
21628
+ align: 'center',
21629
+ ellipsis: true,
21630
+ render: renderTextEllipsis
21631
+ }]
21632
+ };
21633
+ };
21634
+
21635
+ function toNum$3(value) {
21636
+ if (typeof value === 'string') {
21637
+ return value ? +value : void 0;
21638
+ }
21639
+ if (typeof value === 'number') {
21640
+ return value;
21641
+ }
21642
+ return void 0;
21643
+ }
21644
+ var getColumns$6 = function getColumns(_ref) {
21645
+ var _ref$text = _ref.text,
21646
+ disabled = _ref.disabled,
21647
+ updateHandle = _ref.updateHandle;
21648
+ return {
21649
+ KM_GOODS: [{
21650
+ dataIndex: 'skuPropertiesName',
21651
+ title: "\u89C4\u683C\u540D\u79F0",
21652
+ width: 250,
21653
+ render: renderTextEllipsis
21654
+ }, {
21655
+ dataIndex: 'sysTitle',
21656
+ title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
21657
+ width: 150,
21658
+ render: renderTextEllipsis
21659
+ }, {
21660
+ dataIndex: 'title',
21661
+ title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
21662
+ width: 150,
21663
+ render: renderTextEllipsis
21664
+ }, {
21665
+ dataIndex: 'shortTitle',
21666
+ title: "\u5546\u54C1\u7B80\u79F0",
21667
+ width: 150,
21668
+ render: renderTextEllipsis
21669
+ }, {
21670
+ dataIndex: 'sysOuterId',
21671
+ title: "\u7CFB\u7EDF\u5546\u5BB6\u7F16\u7801",
21672
+ width: 150,
21673
+ render: renderTextEllipsis
21674
+ }, {
21675
+ dataIndex: 'skuSysId',
21676
+ title: "\u7CFB\u7EDF\u89C4\u683CID",
21677
+ width: 150,
21678
+ render: renderTextEllipsis
21679
+ }, {
21680
+ dataIndex: 'skuId',
21681
+ title: "\u5E73\u53F0\u89C4\u683CID",
21682
+ width: 170,
21683
+ render: renderTextEllipsis
21684
+ }, {
21685
+ dataIndex: 'outerSkuId',
21686
+ title: "\u5E73\u53F0\u89C4\u683C\u7F16\u7801",
21687
+ width: 170,
21688
+ render: renderTextEllipsis
21689
+ }, {
21690
+ dataIndex: 'itemSysId',
21691
+ title: "\u7CFB\u7EDF\u5546\u54C1ID",
21692
+ width: 150,
20574
21693
  render: renderTextEllipsis
20575
21694
  }, {
20576
- dataIndex: 'saleBasePrice',
20577
- title: '原价',
20578
- render: function render(price) {
20579
- return price || price === 0 ? Number(price).toFixed(2) : '';
21695
+ dataIndex: 'sysPicPath',
21696
+ title: "\u5546\u54C1\u56FE\u7247",
21697
+ width: 100,
21698
+ render: function render(val) {
21699
+ var imgUrl = (val === null || val === void 0 ? void 0 : val.startsWith('http')) ? val : "https://erp.superboss.cc".concat(val);
21700
+ return /*#__PURE__*/React__default['default'].createElement(antd.Image, {
21701
+ width: 30,
21702
+ src: imgUrl
21703
+ });
20580
21704
  }
20581
21705
  }, {
20582
- dataIndex: 'salePrice',
20583
- title: '单价',
20584
- width: 120,
20585
- validator: function validator(_rule, value) {
20586
- var goodsName = '';
20587
- if (((value === null || value === void 0 ? void 0 : value.jstReturnGoods) || []).some(function (goods) {
20588
- var v = toNum$2(goods === null || goods === void 0 ? void 0 : goods.salePrice);
20589
- var res = typeof v === 'number' ? v < 0 : true;
20590
- if (res) {
20591
- goodsName = (goods === null || goods === void 0 ? void 0 : goods.name) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.name, "]") : '';
20592
- }
20593
- return res;
20594
- })) {
20595
- return Promise.reject("".concat(goodsName, "\u5355\u4EF7\u4E3A\u5927\u4E8E\u7B49\u4E8E0\u7684\u6570"));
20596
- }
20597
- },
21706
+ dataIndex: 'num',
21707
+ title: "\u6570\u91CF",
21708
+ width: 100,
20598
21709
  render: function render(val, record, index) {
20599
- return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
21710
+ return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
20600
21711
  style: {
20601
21712
  width: 70
20602
21713
  },
20603
21714
  value: val,
20604
- min: 0,
20605
- precision: 2,
21715
+ min: 1,
21716
+ precision: 0,
20606
21717
  onChange: function onChange(num) {
20607
- return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'salePrice');
21718
+ return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'num');
20608
21719
  }
20609
- }) : /*#__PURE__*/React__default['default'].createElement("span", null, val || val === 0 ? Number(val).toFixed(2) : '');
21720
+ }) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
20610
21721
  }
20611
21722
  }, {
20612
- dataIndex: 'qty',
20613
- title: '数量',
20614
- width: 100,
20615
- validator: function validator(_rule, value) {
20616
- var goodsName = '';
20617
- if (((value === null || value === void 0 ? void 0 : value.jstReturnGoods) || []).some(function (goods) {
20618
- var qty = toNum$2(goods === null || goods === void 0 ? void 0 : goods.qty);
20619
- var res = typeof qty === 'number' ? qty < 1 : true;
20620
- if (res) {
20621
- goodsName = (goods === null || goods === void 0 ? void 0 : goods.name) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.name, "]") : '';
20622
- }
20623
- return res;
20624
- })) {
20625
- return Promise.reject("".concat(goodsName, "\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
20626
- }
20627
- },
21723
+ dataIndex: 'payment',
21724
+ title: "\u5B9E\u4ED8\u91D1\u989D",
21725
+ width: 150,
20628
21726
  render: function render(val, record, index) {
20629
- return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
21727
+ return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
20630
21728
  style: {
20631
- width: 70
21729
+ width: 130
20632
21730
  },
20633
21731
  value: val,
20634
- min: 1,
20635
- precision: 0,
21732
+ min: 0,
21733
+ precision: 2,
20636
21734
  onChange: function onChange(num) {
20637
- return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'qty');
21735
+ return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'payment');
20638
21736
  }
20639
- }) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
21737
+ }) : /*#__PURE__*/React__default['default'].createElement("span", null, val || val === 0 ? Number(val).toFixed(2) : '');
20640
21738
  }
20641
21739
  }, {
20642
- dataIndex: 'saleAmount',
20643
- title: '总金额',
20644
- render: function render(val, record) {
20645
- return (record.qty || 0) * (+record.salePrice || 0);
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) : '';
20646
21745
  }
20647
21746
  }, {
20648
- dataIndex: 'batchId',
20649
- title: '批次号',
21747
+ dataIndex: 'type',
21748
+ title: "\u5546\u54C1\u7C7B\u578B",
21749
+ width: 150,
20650
21750
  render: renderTextEllipsis
20651
21751
  }, {
20652
- dataIndex: 'isGift',
20653
- title: '是否赠品',
20654
- width: 100,
20655
- render: function render(val, record, index) {
20656
- return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
20657
- value: val,
20658
- onChange: function onChange(value) {
20659
- updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(value, index, 'isGift');
20660
- },
20661
- options: [{
20662
- label: '是',
20663
- value: true
20664
- }, {
20665
- label: '否',
20666
- value: false
20667
- }]
20668
- }) : /*#__PURE__*/React__default['default'].createElement("span", null, typeof val !== 'boolean' ? '' : val ? '是' : '否');
20669
- }
21752
+ dataIndex: 'supplierName',
21753
+ title: "\u4F9B\u5E94\u5546\u540D\u79F0",
21754
+ width: 150,
21755
+ render: renderTextEllipsis
20670
21756
  }, {
20671
- dataIndex: 'remark',
20672
- title: '备注',
20673
- render: function render(val, record, index) {
20674
- return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Input, {
20675
- style: {
20676
- width: 70
20677
- },
20678
- value: val,
20679
- onChange: function onChange(e) {
20680
- return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(e.target.value, index, 'remark');
20681
- }
20682
- }) : renderTextEllipsis(val);
20683
- }
21757
+ dataIndex: 'supplierCode',
21758
+ title: "\u4F9B\u5E94\u5546\u7F16\u7801",
21759
+ width: 150,
21760
+ render: renderTextEllipsis
21761
+ }].map(function (item) {
21762
+ return _objectSpread2(_objectSpread2({}, item), {}, {
21763
+ align: 'center',
21764
+ ellipsis: true
21765
+ });
21766
+ }),
21767
+ KM_REISSUE_GOODS: [{
21768
+ dataIndex: 'skuPropertiesName',
21769
+ title: "\u89C4\u683C\u540D\u79F0",
21770
+ width: 250,
21771
+ render: renderTextEllipsis
20684
21772
  }, {
20685
- dataIndex: 'outerOiId',
20686
- title: '子订单号',
20687
- width: 240,
21773
+ dataIndex: 'sysTitle',
21774
+ title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
21775
+ width: 150,
20688
21776
  render: renderTextEllipsis
20689
- }].map(fillAttrs),
20690
- JST_EXCHANGE_GOODS: [{
20691
- dataIndex: 'name',
20692
- title: '商品名称',
21777
+ }, {
21778
+ dataIndex: 'shortTitle',
21779
+ title: "\u5546\u54C1\u7B80\u79F0",
21780
+ width: 150,
20693
21781
  render: renderTextEllipsis
20694
21782
  }, {
20695
- dataIndex: 'skuId',
20696
- title: '商品编码',
21783
+ dataIndex: 'title',
21784
+ title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
21785
+ width: 150,
20697
21786
  render: renderTextEllipsis
20698
21787
  }, {
20699
- dataIndex: 'iId',
20700
- title: '款式编码',
21788
+ dataIndex: 'sysOuterId',
21789
+ title: "\u7CFB\u7EDF\u5546\u5BB6\u7F16\u7801",
21790
+ width: 150,
20701
21791
  render: renderTextEllipsis
20702
21792
  }, {
20703
- dataIndex: 'pic',
20704
- title: '商品图片',
20705
- width: 100,
20706
- render: function render(val) {
20707
- return /*#__PURE__*/React__default['default'].createElement(ApaasImage, {
20708
- width: 30,
20709
- src: val
20710
- });
20711
- }
21793
+ dataIndex: 'itemSysId',
21794
+ title: "\u7CFB\u7EDF\u5546\u54C1ID",
21795
+ width: 150,
21796
+ render: renderTextEllipsis
20712
21797
  }, {
20713
- dataIndex: 'propertiesValue',
20714
- title: '规格值',
21798
+ dataIndex: 'skuSysId',
21799
+ title: "\u7CFB\u7EDF\u89C4\u683CID",
21800
+ width: 150,
20715
21801
  render: renderTextEllipsis
20716
21802
  }, {
20717
- dataIndex: 'saleBasePrice',
20718
- title: '原价',
20719
- render: function render(price) {
20720
- return price || price === 0 ? Number(price).toFixed(2) : '';
20721
- }
21803
+ dataIndex: 'skuId',
21804
+ title: "\u5E73\u53F0\u89C4\u683CID",
21805
+ width: 170,
21806
+ render: renderTextEllipsis
20722
21807
  }, {
20723
- dataIndex: 'salePrice',
20724
- title: '单价',
20725
- width: 120,
21808
+ dataIndex: 'outerSkuId',
21809
+ title: "\u5E73\u53F0\u89C4\u683C\u7F16\u7801",
21810
+ width: 170,
21811
+ render: renderTextEllipsis
21812
+ }, {
21813
+ dataIndex: 'realNum',
21814
+ title: "\u5B9E\u9645\u8865\u53D1\u6570\u91CF",
21815
+ width: 100,
21816
+ validator: function validator(_rule, value) {
21817
+ var title = '';
21818
+ if (((value === null || value === void 0 ? void 0 : value.kmReissueGoods) || []).some(function (goods) {
21819
+ var realNum = toNum$3(goods === null || goods === void 0 ? void 0 : goods.realNum);
21820
+ var res = typeof realNum === 'number' ? realNum < 1 : true;
21821
+ if (res) {
21822
+ title = (goods === null || goods === void 0 ? void 0 : goods.goodName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodName, "]") : '';
21823
+ }
21824
+ return res;
21825
+ })) {
21826
+ return Promise.reject("".concat(title, "\u5B9E\u9645\u8865\u53D1\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
21827
+ }
21828
+ },
20726
21829
  render: function render(val, record, index) {
20727
- return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
21830
+ return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
20728
21831
  style: {
20729
21832
  width: 70
20730
21833
  },
20731
21834
  value: val,
20732
- min: 0,
20733
- precision: 2,
21835
+ min: 1,
21836
+ precision: 0,
20734
21837
  onChange: function onChange(num) {
20735
- return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'salePrice');
21838
+ return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'realNum');
20736
21839
  }
20737
- }) : /*#__PURE__*/React__default['default'].createElement("span", null, val || val === 0 ? Number(val).toFixed(2) : '');
21840
+ }) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
20738
21841
  }
20739
21842
  }, {
20740
- dataIndex: 'qty',
20741
- title: '数量',
21843
+ dataIndex: 'desiredNum',
21844
+ title: "\u5E94\u8865\u53D1\u6570\u91CF",
20742
21845
  width: 100,
20743
21846
  render: function render(val, record, index) {
20744
- return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
21847
+ return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
20745
21848
  style: {
20746
21849
  width: 70
20747
21850
  },
@@ -20749,281 +21852,194 @@ var getColumns$5 = function getColumns() {
20749
21852
  min: 1,
20750
21853
  precision: 0,
20751
21854
  onChange: function onChange(num) {
20752
- return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'qty');
21855
+ return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'desiredNum');
20753
21856
  }
20754
21857
  }) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
20755
21858
  }
20756
21859
  }, {
20757
- dataIndex: 'saleAmount',
20758
- title: '总金额',
20759
- render: function render(val, record) {
20760
- return (record.qty || 0) * (+record.salePrice || 0);
20761
- }
20762
- }, {
20763
- dataIndex: 'isGift',
20764
- title: '是否赠品',
20765
- width: 100,
20766
- render: function render(val, record, index) {
20767
- return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
20768
- value: val,
20769
- onChange: function onChange(value) {
20770
- updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(value, index, 'isGift');
20771
- },
20772
- options: [{
20773
- label: '是',
20774
- value: true
20775
- }, {
20776
- label: '否',
20777
- value: false
20778
- }]
20779
- }) : /*#__PURE__*/React__default['default'].createElement("span", null, typeof val !== 'boolean' ? '' : val ? '是' : '否');
21860
+ dataIndex: 'price',
21861
+ title: "\u5546\u54C1\u9500\u552E\u4EF7",
21862
+ width: 150,
21863
+ render: function render(val) {
21864
+ return val || val === 0 ? Number(val).toFixed(2) : '';
20780
21865
  }
20781
21866
  }, {
20782
- dataIndex: 'remark',
20783
- title: '备注',
21867
+ dataIndex: 'payment',
21868
+ title: "\u5B9E\u4ED8\u91D1\u989D",
21869
+ width: 150,
20784
21870
  render: function render(val, record, index) {
20785
- return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Input, {
21871
+ return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
20786
21872
  style: {
20787
- width: 70
21873
+ width: 130
20788
21874
  },
20789
21875
  value: val,
20790
- onChange: function onChange(e) {
20791
- return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(e.target.value, index, 'remark');
21876
+ min: 0,
21877
+ precision: 2,
21878
+ onChange: function onChange(num) {
21879
+ return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'payment');
20792
21880
  }
20793
- }) : renderTextEllipsis(val);
21881
+ }) : /*#__PURE__*/React__default['default'].createElement("span", null, val || val === 0 ? Number(val).toFixed(2) : '');
20794
21882
  }
20795
- }].map(fillAttrs),
20796
- // jst售后商品信息
20797
- JST_AFTERSALE_GOODS: [{
20798
- dataIndex: 'asId',
20799
- title: "\u805A\u6C34\u6F6D\u552E\u540E\u5355\u53F7",
20800
- width: 200,
20801
- align: 'center',
20802
- ellipsis: true,
21883
+ }, {
21884
+ dataIndex: 'type',
21885
+ title: "\u5546\u54C1\u7C7B\u578B",
21886
+ width: 150,
20803
21887
  render: renderTextEllipsis
20804
21888
  }, {
20805
- dataIndex: 'asiId',
20806
- title: "\u552E\u540E\u5B50\u5355\u53F7",
20807
- width: 200,
20808
- align: 'center',
20809
- ellipsis: true,
21889
+ dataIndex: 'supplierName',
21890
+ title: "\u4F9B\u5E94\u5546\u540D\u79F0",
21891
+ width: 150,
20810
21892
  render: renderTextEllipsis
20811
21893
  }, {
20812
- dataIndex: 'outerOiId',
20813
- title: "\u5B50\u8BA2\u5355\u53F7",
20814
- width: 200,
20815
- align: 'center',
20816
- ellipsis: true,
21894
+ dataIndex: 'supplierCode',
21895
+ title: "\u4F9B\u5E94\u5546\u7F16\u7801",
21896
+ width: 150,
20817
21897
  render: renderTextEllipsis
20818
21898
  }, {
20819
- dataIndex: 'pic',
20820
- title: "\u56FE\u7247",
21899
+ dataIndex: 'sysPicPath',
21900
+ title: "\u5546\u54C1\u56FE\u7247",
20821
21901
  width: 100,
20822
- align: 'center',
20823
21902
  render: function render(val) {
20824
- return /*#__PURE__*/React__default['default'].createElement(ApaasImage, {
21903
+ var imgUrl = (val === null || val === void 0 ? void 0 : val.startsWith('http')) ? val : "https://erp.superboss.cc".concat(val);
21904
+ return /*#__PURE__*/React__default['default'].createElement(antd.Image, {
20825
21905
  width: 30,
20826
- src: val
21906
+ src: imgUrl
20827
21907
  });
20828
- },
20829
- headerComponentType: 'pic'
20830
- }, {
20831
- dataIndex: 'name',
20832
- title: "\u5546\u54C1\u540D\u79F0",
20833
- width: 250,
20834
- align: 'center',
20835
- ellipsis: true,
20836
- render: renderTextEllipsis
20837
- }, {
20838
- dataIndex: 'skuId',
20839
- title: "\u5546\u54C1\u7F16\u7801",
20840
- width: 200,
20841
- align: 'center',
20842
- ellipsis: true,
20843
- render: renderTextEllipsis
20844
- }, {
20845
- dataIndex: 'propertiesValue',
20846
- title: "\u89C4\u683C\u5C5E\u6027\u503C",
20847
- width: 200,
20848
- align: 'center',
20849
- ellipsis: true,
20850
- render: renderTextEllipsis
20851
- }, {
20852
- dataIndex: 'qty',
20853
- title: "\u7533\u8BF7\u6570\u91CF",
20854
- width: 150,
21908
+ }
21909
+ }].map(function (item) {
21910
+ return _objectSpread2(_objectSpread2({}, item), {}, {
21911
+ align: 'center',
21912
+ ellipsis: true
21913
+ });
21914
+ })
21915
+ };
21916
+ };
21917
+
21918
+ var isNumberOrNumberString$2 = function isNumberOrNumberString(value) {
21919
+ if (typeof value === 'number') return true;
21920
+ if (typeof value === 'string' && !isNaN(Number(value)) && value.trim() !== '') return true;
21921
+ return false;
21922
+ };
21923
+ function toNum$4(value) {
21924
+ if (typeof value === 'string') {
21925
+ return value ? +value : void 0;
21926
+ }
21927
+ if (typeof value === 'number') {
21928
+ return value;
21929
+ }
21930
+ return void 0;
21931
+ }
21932
+ var getColumns$7 = function getColumns(_ref) {
21933
+ var _ref$text = _ref.text,
21934
+ disabled = _ref.disabled,
21935
+ updateHandle = _ref.updateHandle,
21936
+ updateDataHandle = _ref.updateDataHandle;
21937
+ return {
21938
+ //巨益商品信息
21939
+ JY_GOODS: [{
21940
+ dataIndex: 'productName',
21941
+ title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
20855
21942
  align: 'center',
20856
21943
  ellipsis: true,
20857
- render: renderTextEllipsis
20858
- }, {
20859
- dataIndex: 'rQty',
20860
- title: "\u5B9E\u6536\u9000\u8D27\u6570\u91CF",
20861
21944
  width: 150,
20862
- align: 'center',
20863
- ellipsis: true,
20864
21945
  render: renderTextEllipsis
20865
21946
  }, {
20866
- dataIndex: 'defectiveQty',
20867
- title: "\u6B21\u54C1\u6570\u91CF",
20868
- width: 150,
21947
+ dataIndex: 'productCode',
21948
+ title: "\u7CFB\u7EDF\u5546\u54C1\u7F16\u7801",
20869
21949
  align: 'center',
20870
21950
  ellipsis: true,
20871
- render: renderTextEllipsis
20872
- }, {
20873
- dataIndex: 'amount',
20874
- title: "\u7533\u8BF7\u91D1\u989D",
20875
21951
  width: 150,
20876
- align: 'center',
20877
- ellipsis: true,
20878
21952
  render: renderTextEllipsis
20879
21953
  }, {
20880
- dataIndex: 'shopAmount',
20881
- title: "\u7EBF\u4E0A\u660E\u7EC6\u91D1\u989D",
20882
- width: 150,
21954
+ dataIndex: 'productId',
21955
+ title: "\u7CFB\u7EDF\u5546\u54C1ID",
20883
21956
  align: 'center',
20884
21957
  ellipsis: true,
20885
- render: renderTextEllipsis
20886
- }, {
20887
- dataIndex: 'price',
20888
- title: "\u5355\u4EF7",
20889
21958
  width: 150,
20890
- align: 'center',
20891
- ellipsis: true,
20892
21959
  render: renderTextEllipsis
20893
21960
  }, {
20894
- dataIndex: 'combineSkuId',
20895
- title: "\u7EC4\u5408\u5546\u54C1\u7F16\u7801",
20896
- width: 250,
21961
+ dataIndex: 'skuName',
21962
+ title: "\u7CFB\u7EDF\u89C4\u683C\u540D\u79F0",
20897
21963
  align: 'center',
20898
21964
  ellipsis: true,
21965
+ width: 150,
20899
21966
  render: renderTextEllipsis
20900
21967
  }, {
20901
- dataIndex: 'shopSkuId',
20902
- title: "\u5E97\u94FA\u5546\u54C1\u7F16\u7801",
20903
- width: 200,
21968
+ dataIndex: 'skuCode',
21969
+ title: "\u7CFB\u7EDF\u89C4\u683C\u7F16\u7801",
20904
21970
  align: 'center',
20905
21971
  ellipsis: true,
21972
+ width: 150,
20906
21973
  render: renderTextEllipsis
20907
21974
  }, {
20908
- dataIndex: 'iId',
20909
- title: "\u6B3E\u5F0F\u7F16\u7801",
20910
- width: 200,
21975
+ dataIndex: 'specId',
21976
+ title: "\u89C4\u683CID",
20911
21977
  align: 'center',
20912
21978
  ellipsis: true,
21979
+ width: 150,
20913
21980
  render: renderTextEllipsis
20914
21981
  }, {
20915
- dataIndex: 'type',
20916
- title: "\u552E\u540E\u7C7B\u578B",
21982
+ dataIndex: 'goodsClass',
21983
+ title: "\u8D27\u54C1\u7C7B\u522B",
20917
21984
  width: 150,
20918
- align: 'center',
20919
- ellipsis: true,
20920
21985
  render: renderTextEllipsis
20921
21986
  }, {
20922
- dataIndex: 'skuType',
20923
- title: "\u5546\u54C1\u7C7B\u578B",
21987
+ dataIndex: 'code',
21988
+ title: "\u6761\u7801",
20924
21989
  width: 150,
21990
+ render: renderTextEllipsis
21991
+ },
21992
+ // {
21993
+ // dataIndex: 'specName',
21994
+ // title: `规格名称`,
21995
+ // align: 'center',
21996
+ // ellipsis: true,
21997
+ // width: 200,
21998
+ // },
21999
+ // {
22000
+ // dataIndex: 'specCode',
22001
+ // title: `规格编号`,
22002
+ // align: 'center',
22003
+ // ellipsis: true,
22004
+ // width: 150,
22005
+ // },
22006
+ {
22007
+ dataIndex: 'mallProductName',
22008
+ title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
20925
22009
  align: 'center',
20926
22010
  ellipsis: true,
22011
+ width: 250,
20927
22012
  render: renderTextEllipsis
20928
22013
  }, {
20929
- dataIndex: 'isGift',
20930
- title: '是否赠品',
20931
- width: 100,
20932
- render: function render(val) {
20933
- return /*#__PURE__*/React__default['default'].createElement("span", null, typeof val !== 'boolean' ? '' : val ? '是' : '否');
20934
- },
20935
- headerMapping: {
20936
- transformValue: function transformValue(val) {
20937
- return typeof val !== 'boolean' ? '' : val ? '是' : '否';
20938
- },
20939
- renderExport: function renderExport(val) {
20940
- return typeof val !== 'boolean' ? '' : val ? '是' : '否';
20941
- }
20942
- }
20943
- }, {
20944
- dataIndex: 'receiveDate',
20945
- title: "\u5165\u4ED3\u65F6\u95F4",
20946
- width: 200,
22014
+ dataIndex: 'mallProductOutCode',
22015
+ title: "\u5E73\u53F0\u5546\u54C1\u7F16\u7801",
20947
22016
  align: 'center',
20948
22017
  ellipsis: true,
22018
+ width: 150,
20949
22019
  render: renderTextEllipsis
20950
22020
  }, {
20951
- dataIndex: 'remark',
20952
- title: "\u660E\u7EC6\u5907\u6CE8",
20953
- width: 200,
22021
+ dataIndex: 'mallProductId',
22022
+ title: "\u5E73\u53F0\u5546\u54C1ID",
20954
22023
  align: 'center',
20955
22024
  ellipsis: true,
20956
- render: renderTextEllipsis
20957
- }]
20958
- };
20959
- };
20960
-
20961
- function toNum$3(value) {
20962
- if (typeof value === 'string') {
20963
- return value ? +value : void 0;
20964
- }
20965
- if (typeof value === 'number') {
20966
- return value;
20967
- }
20968
- return void 0;
20969
- }
20970
- var getColumns$6 = function getColumns(_ref) {
20971
- var _ref$text = _ref.text,
20972
- disabled = _ref.disabled,
20973
- updateHandle = _ref.updateHandle;
20974
- return {
20975
- KM_GOODS: [{
20976
- dataIndex: 'skuPropertiesName',
20977
- title: "\u89C4\u683C\u540D\u79F0",
20978
22025
  width: 250,
20979
22026
  render: renderTextEllipsis
20980
22027
  }, {
20981
- dataIndex: 'sysTitle',
20982
- title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
20983
- width: 150,
20984
- render: renderTextEllipsis
20985
- }, {
20986
- dataIndex: 'title',
20987
- title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
20988
- width: 150,
20989
- render: renderTextEllipsis
20990
- }, {
20991
- dataIndex: 'shortTitle',
20992
- title: "\u5546\u54C1\u7B80\u79F0",
20993
- width: 150,
20994
- render: renderTextEllipsis
20995
- }, {
20996
- dataIndex: 'sysOuterId',
20997
- title: "\u7CFB\u7EDF\u5546\u5BB6\u7F16\u7801",
20998
- width: 150,
20999
- render: renderTextEllipsis
21000
- }, {
21001
- dataIndex: 'skuSysId',
21002
- title: "\u7CFB\u7EDF\u89C4\u683CID",
21003
- width: 150,
21004
- render: renderTextEllipsis
21005
- }, {
21006
- dataIndex: 'skuId',
21007
- title: "\u5E73\u53F0\u89C4\u683C\u7F16\u53F7",
21008
- width: 170,
22028
+ dataIndex: 'mallSkuName',
22029
+ title: "\u5E73\u53F0\u89C4\u683C\u540D\u79F0",
22030
+ align: 'center',
22031
+ ellipsis: true,
22032
+ width: 250,
21009
22033
  render: renderTextEllipsis
21010
22034
  }, {
21011
- dataIndex: 'itemSysId',
21012
- title: "\u7CFB\u7EDF\u5546\u54C1ID",
21013
- width: 150,
22035
+ dataIndex: 'mallSkuId',
22036
+ title: "\u5E73\u53F0\u89C4\u683CID",
22037
+ align: 'center',
22038
+ ellipsis: true,
22039
+ width: 250,
21014
22040
  render: renderTextEllipsis
21015
22041
  }, {
21016
- dataIndex: 'sysPicPath',
21017
- title: "\u5546\u54C1\u56FE\u7247",
21018
- width: 100,
21019
- render: function render(val) {
21020
- return /*#__PURE__*/React__default['default'].createElement(antd.Image, {
21021
- width: 30,
21022
- src: val
21023
- });
21024
- }
21025
- }, {
21026
- dataIndex: 'num',
22042
+ dataIndex: 'sellCount',
21027
22043
  title: "\u6570\u91CF",
21028
22044
  width: 100,
21029
22045
  render: function render(val, record, index) {
@@ -21035,13 +22051,16 @@ var getColumns$6 = function getColumns(_ref) {
21035
22051
  min: 1,
21036
22052
  precision: 0,
21037
22053
  onChange: function onChange(num) {
21038
- return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'num');
22054
+ updateDataHandle({
22055
+ sellCount: num,
22056
+ sellTotal: num && isNumberOrNumberString$2(record.sellPrice) ? num * record.sellPrice : null
22057
+ }, index);
21039
22058
  }
21040
22059
  }) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
21041
22060
  }
21042
22061
  }, {
21043
- dataIndex: 'payment',
21044
- title: "\u5B9E\u4ED8\u91D1\u989D",
22062
+ dataIndex: 'sellPrice',
22063
+ title: "\u5355\u4EF7",
21045
22064
  width: 150,
21046
22065
  render: function render(val, record, index) {
21047
22066
  return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
@@ -21052,83 +22071,198 @@ var getColumns$6 = function getColumns(_ref) {
21052
22071
  min: 0,
21053
22072
  precision: 2,
21054
22073
  onChange: function onChange(num) {
21055
- return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'payment');
22074
+ updateDataHandle({
22075
+ sellPrice: num,
22076
+ sellTotal: num && isNumberOrNumberString$2(record.sellCount) ? num * record.sellCount : null
22077
+ }, index);
21056
22078
  }
21057
- }) : /*#__PURE__*/React__default['default'].createElement("span", null, val || val === 0 ? Number(val).toFixed(2) : '');
22079
+ }) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
21058
22080
  }
21059
22081
  }, {
21060
- dataIndex: 'price',
21061
- title: "\u5546\u54C1\u9500\u552E\u4EF7",
22082
+ dataIndex: 'mallSellingPrice',
22083
+ title: "\u5E73\u53F0\u5546\u54C1\u4EF7\u683C",
22084
+ width: 150
22085
+ }, {
22086
+ dataIndex: 'sellTotal',
22087
+ title: "\u91D1\u989D",
22088
+ width: 150
22089
+ }, {
22090
+ dataIndex: 'settlementPrice',
22091
+ title: "\u7ED3\u7B97\u4EF7",
22092
+ width: 150
22093
+ }, {
22094
+ dataIndex: 'divideOrderFee',
22095
+ title: "\u5206\u644A\u5B9E\u4ED8\u91D1\u989D",
22096
+ width: 150
22097
+ }, {
22098
+ dataIndex: 'bfit',
22099
+ title: "\u662F\u5426\u7EC4\u5408\u88C5",
21062
22100
  width: 150,
21063
- render: function render(val) {
21064
- return val || val === 0 ? Number(val).toFixed(2) : '';
22101
+ render: function render(val, record, index) {
22102
+ return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
22103
+ dropdownStyle: {
22104
+ zIndex: 2000
22105
+ },
22106
+ getPopupContainer: function getPopupContainer() {
22107
+ return document.body;
22108
+ },
22109
+ value: val,
22110
+ onChange: function onChange(value) {
22111
+ updateHandle(value, index, 'bfit');
22112
+ },
22113
+ options: [{
22114
+ label: '是',
22115
+ value: 'True'
22116
+ }, {
22117
+ label: '否',
22118
+ value: 'False'
22119
+ }]
22120
+ }) : /*#__PURE__*/React__default['default'].createElement("span", null, val === 'True' ? '是' : '否');
21065
22121
  }
21066
22122
  }, {
21067
- dataIndex: 'type',
21068
- title: "\u5546\u54C1\u7C7B\u578B",
22123
+ dataIndex: 'combinationName',
22124
+ title: "\u7EC4\u5408\u5546\u54C1\u540D\u79F0",
22125
+ width: 150,
22126
+ render: renderTextEllipsis
22127
+ }, {
22128
+ dataIndex: 'combinationCode',
22129
+ title: "\u7EC4\u5408\u5546\u54C1\u7F16\u7801",
21069
22130
  width: 150,
21070
22131
  render: renderTextEllipsis
22132
+ }, {
22133
+ dataIndex: 'gift',
22134
+ title: "\u662F\u5426\u8D60\u54C1",
22135
+ width: 150,
22136
+ render: function render(val, record, index) {
22137
+ return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
22138
+ dropdownStyle: {
22139
+ zIndex: 2000
22140
+ },
22141
+ getPopupContainer: function getPopupContainer() {
22142
+ return document.body;
22143
+ },
22144
+ value: val,
22145
+ onChange: function onChange(value) {
22146
+ updateHandle(value, index, 'gift');
22147
+ },
22148
+ options: [{
22149
+ label: '是',
22150
+ value: '1'
22151
+ }, {
22152
+ label: '否',
22153
+ value: '0'
22154
+ }]
22155
+ }) : /*#__PURE__*/React__default['default'].createElement("span", null, val === '1' ? '是' : '否');
22156
+ }
21071
22157
  }].map(function (item) {
21072
22158
  return _objectSpread2(_objectSpread2({}, item), {}, {
21073
22159
  align: 'center',
21074
22160
  ellipsis: true
21075
22161
  });
21076
22162
  }),
21077
- KM_REISSUE_GOODS: [{
21078
- dataIndex: 'skuPropertiesName',
21079
- title: "\u89C4\u683C\u540D\u79F0",
21080
- width: 250,
22163
+ // 巨益补发商品信息
22164
+ JY_REISSUE_GOODS: [{
22165
+ dataIndex: 'productName',
22166
+ title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
22167
+ align: 'center',
22168
+ ellipsis: true,
22169
+ width: 150,
21081
22170
  render: renderTextEllipsis
21082
22171
  }, {
21083
- dataIndex: 'sysTitle',
21084
- title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
22172
+ dataIndex: 'productCode',
22173
+ title: "\u7CFB\u7EDF\u5546\u54C1\u7F16\u7801",
22174
+ align: 'center',
22175
+ ellipsis: true,
21085
22176
  width: 150,
21086
22177
  render: renderTextEllipsis
21087
22178
  }, {
21088
- dataIndex: 'shortTitle',
21089
- title: "\u5546\u54C1\u7B80\u79F0",
22179
+ dataIndex: 'productId',
22180
+ title: "\u7CFB\u7EDF\u5546\u54C1ID",
22181
+ align: 'center',
22182
+ ellipsis: true,
21090
22183
  width: 150,
21091
22184
  render: renderTextEllipsis
21092
22185
  }, {
21093
- dataIndex: 'title',
22186
+ dataIndex: 'skuName',
22187
+ title: "\u7CFB\u7EDF\u89C4\u683C\u540D\u79F0",
22188
+ align: 'center',
22189
+ ellipsis: true,
22190
+ width: 150,
22191
+ render: renderTextEllipsis
22192
+ }, {
22193
+ dataIndex: 'skuCode',
22194
+ title: "\u7CFB\u7EDF\u89C4\u683C\u7F16\u7801",
22195
+ align: 'center',
22196
+ ellipsis: true,
22197
+ width: 150,
22198
+ render: renderTextEllipsis
22199
+ }, {
22200
+ dataIndex: 'specId',
22201
+ title: "\u89C4\u683CID",
22202
+ align: 'center',
22203
+ ellipsis: true,
22204
+ width: 150,
22205
+ render: renderTextEllipsis
22206
+ }, {
22207
+ dataIndex: 'goodsClass',
22208
+ title: "\u8D27\u54C1\u7C7B\u522B",
22209
+ width: 150,
22210
+ render: renderTextEllipsis
22211
+ }, {
22212
+ dataIndex: 'code',
22213
+ title: "\u6761\u7801",
22214
+ width: 150,
22215
+ render: renderTextEllipsis
22216
+ }, {
22217
+ dataIndex: 'mallProductName',
21094
22218
  title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
22219
+ align: 'center',
22220
+ ellipsis: true,
21095
22221
  width: 150,
21096
22222
  render: renderTextEllipsis
21097
22223
  }, {
21098
- dataIndex: 'sysOuterId',
21099
- title: "\u7CFB\u7EDF\u5546\u5BB6\u7F16\u7801",
22224
+ dataIndex: 'mallProductOutCode',
22225
+ title: "\u5E73\u53F0\u5546\u54C1\u7F16\u7801",
22226
+ align: 'center',
22227
+ ellipsis: true,
21100
22228
  width: 150,
21101
22229
  render: renderTextEllipsis
21102
22230
  }, {
21103
- dataIndex: 'itemSysId',
21104
- title: "\u7CFB\u7EDF\u5546\u54C1ID",
22231
+ dataIndex: 'mallProductId',
22232
+ title: "\u5E73\u53F0\u5546\u54C1ID",
22233
+ align: 'center',
22234
+ ellipsis: true,
21105
22235
  width: 150,
21106
22236
  render: renderTextEllipsis
21107
22237
  }, {
21108
- dataIndex: 'skuSysId',
21109
- title: "\u7CFB\u7EDF\u89C4\u683CID",
22238
+ dataIndex: 'mallSkuName',
22239
+ title: "\u5E73\u53F0\u89C4\u683C\u540D\u79F0",
22240
+ align: 'center',
22241
+ ellipsis: true,
21110
22242
  width: 150,
21111
22243
  render: renderTextEllipsis
21112
22244
  }, {
21113
- dataIndex: 'skuId',
21114
- title: "\u5E73\u53F0\u89C4\u683C\u7F16\u53F7",
21115
- width: 170,
22245
+ dataIndex: 'mallSkuId',
22246
+ title: "\u5E73\u53F0\u89C4\u683CID",
22247
+ align: 'center',
22248
+ ellipsis: true,
22249
+ width: 150,
21116
22250
  render: renderTextEllipsis
21117
22251
  }, {
21118
- dataIndex: 'realNum',
21119
- title: "\u5B9E\u9645\u8865\u53D1\u6570\u91CF",
22252
+ dataIndex: 'sellCount',
22253
+ title: "\u6570\u91CF",
21120
22254
  width: 100,
21121
22255
  validator: function validator(_rule, value) {
21122
- var title = '';
21123
- if (((value === null || value === void 0 ? void 0 : value.kmReissueGoods) || []).some(function (goods) {
21124
- var realNum = toNum$3(goods === null || goods === void 0 ? void 0 : goods.realNum);
21125
- var res = typeof realNum === 'number' ? realNum < 1 : true;
22256
+ var productName = '';
22257
+ if (((value === null || value === void 0 ? void 0 : value.jyReissueGoods) || []).some(function (goods) {
22258
+ var qty = toNum$4(goods === null || goods === void 0 ? void 0 : goods.sellCount);
22259
+ var res = typeof qty === 'number' ? qty < 1 : true;
21126
22260
  if (res) {
21127
- title = (goods === null || goods === void 0 ? void 0 : goods.goodName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodName, "]") : '';
22261
+ productName = (goods === null || goods === void 0 ? void 0 : goods.productName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.productName, "]") : '';
21128
22262
  }
21129
22263
  return res;
21130
22264
  })) {
21131
- return Promise.reject("".concat(title, "\u5B9E\u9645\u8865\u53D1\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
22265
+ return Promise.reject("".concat(productName, "\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
21132
22266
  }
21133
22267
  },
21134
22268
  render: function render(val, record, index) {
@@ -21140,81 +22274,158 @@ var getColumns$6 = function getColumns(_ref) {
21140
22274
  min: 1,
21141
22275
  precision: 0,
21142
22276
  onChange: function onChange(num) {
21143
- return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'realNum');
22277
+ updateDataHandle({
22278
+ sellCount: num,
22279
+ sellTotal: num && isNumberOrNumberString$2(record.sellPrice) ? num * record.sellPrice : null
22280
+ }, index);
21144
22281
  }
21145
22282
  }) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
21146
22283
  }
21147
22284
  }, {
21148
- dataIndex: 'desiredNum',
21149
- title: "\u5E94\u8865\u53D1\u6570\u91CF",
21150
- width: 100,
22285
+ dataIndex: 'sellPrice',
22286
+ title: "\u5355\u4EF7",
22287
+ width: 150,
21151
22288
  render: function render(val, record, index) {
21152
22289
  return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
21153
22290
  style: {
21154
- width: 70
22291
+ width: 130
22292
+ },
22293
+ value: val,
22294
+ min: 0,
22295
+ precision: 2,
22296
+ onChange: function onChange(num) {
22297
+ updateDataHandle({
22298
+ sellPrice: num,
22299
+ sellTotal: num && isNumberOrNumberString$2(record.sellCount) ? num * record.sellCount : null
22300
+ }, index);
22301
+ }
22302
+ }) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
22303
+ }
22304
+ }, {
22305
+ dataIndex: 'mallSellingPrice',
22306
+ title: "\u5E73\u53F0\u5546\u54C1\u4EF7\u683C",
22307
+ width: 150
22308
+ }, {
22309
+ dataIndex: 'sellTotal',
22310
+ title: "\u91D1\u989D",
22311
+ width: 150
22312
+ }, {
22313
+ dataIndex: 'bfit',
22314
+ title: "\u662F\u5426\u7EC4\u5408\u88C5",
22315
+ width: 150,
22316
+ render: function render(val, record, index) {
22317
+ return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
22318
+ dropdownStyle: {
22319
+ zIndex: 2000
22320
+ },
22321
+ getPopupContainer: function getPopupContainer() {
22322
+ return document.body;
21155
22323
  },
21156
22324
  value: val,
21157
- min: 1,
21158
- precision: 0,
21159
- onChange: function onChange(num) {
21160
- return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'desiredNum');
21161
- }
21162
- }) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
22325
+ onChange: function onChange(value) {
22326
+ updateHandle(value, index, 'bfit');
22327
+ },
22328
+ options: [{
22329
+ label: '是',
22330
+ value: 'True'
22331
+ }, {
22332
+ label: '否',
22333
+ value: 'False'
22334
+ }]
22335
+ }) : /*#__PURE__*/React__default['default'].createElement("span", null, val === 'True' ? '是' : '否');
21163
22336
  }
21164
22337
  }, {
21165
- dataIndex: 'price',
21166
- title: "\u5546\u54C1\u9500\u552E\u4EF7",
22338
+ dataIndex: 'combinationName',
22339
+ title: "\u7EC4\u5408\u5546\u54C1\u540D\u79F0",
21167
22340
  width: 150,
21168
- render: function render(val) {
21169
- return val || val === 0 ? Number(val).toFixed(2) : '';
21170
- }
22341
+ render: renderTextEllipsis
21171
22342
  }, {
21172
- dataIndex: 'payment',
21173
- title: "\u5B9E\u4ED8\u91D1\u989D",
22343
+ dataIndex: 'combinationCode',
22344
+ title: "\u7EC4\u5408\u5546\u54C1\u7F16\u7801",
22345
+ width: 150,
22346
+ render: renderTextEllipsis
22347
+ }, {
22348
+ dataIndex: 'gift',
22349
+ title: "\u662F\u5426\u8D60\u54C1",
21174
22350
  width: 150,
21175
22351
  render: function render(val, record, index) {
21176
- return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
21177
- style: {
21178
- width: 130
22352
+ return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
22353
+ dropdownStyle: {
22354
+ zIndex: 2000
22355
+ },
22356
+ getPopupContainer: function getPopupContainer() {
22357
+ return document.body;
21179
22358
  },
21180
22359
  value: val,
21181
- min: 0,
21182
- precision: 2,
21183
- onChange: function onChange(num) {
21184
- return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'payment');
21185
- }
21186
- }) : /*#__PURE__*/React__default['default'].createElement("span", null, val || val === 0 ? Number(val).toFixed(2) : '');
22360
+ onChange: function onChange(value) {
22361
+ updateHandle(value, index, 'gift');
22362
+ },
22363
+ options: [{
22364
+ label: '是',
22365
+ value: '1'
22366
+ }, {
22367
+ label: '否',
22368
+ value: '0'
22369
+ }]
22370
+ }) : /*#__PURE__*/React__default['default'].createElement("span", null, val === '1' ? '是' : '否');
21187
22371
  }
22372
+ }].map(function (item) {
22373
+ return _objectSpread2(_objectSpread2({}, item), {}, {
22374
+ align: 'center',
22375
+ ellipsis: true
22376
+ });
22377
+ })
22378
+ };
22379
+ };
22380
+
22381
+ var getColumns$8 = function getColumns(_ref) {
22382
+ var _ref$text = _ref.text,
22383
+ disabled = _ref.disabled,
22384
+ updateHandle = _ref.updateHandle,
22385
+ updateDataHandle = _ref.updateDataHandle;
22386
+ return {
22387
+ //[SKX]商品信息(ON)
22388
+ SKX_GOODS: [{
22389
+ dataIndex: 'skuEcode',
22390
+ title: "[SKX]\u53D1\u8D27\u5355\u660E\u7EC6-skuEcode",
22391
+ width: 250
21188
22392
  }, {
21189
- dataIndex: 'type',
21190
- title: "\u5546\u54C1\u7C7B\u578B",
21191
- width: 150,
21192
- render: renderTextEllipsis
22393
+ dataIndex: 'subOrderId',
22394
+ title: "[SKX]\u53D1\u8D27\u5355-\u5B50\u8BA2\u5355\u53F7",
22395
+ width: 300
21193
22396
  }, {
21194
- dataIndex: 'sysPicPath',
21195
- title: "\u5546\u54C1\u56FE\u7247",
21196
- width: 100,
21197
- render: function render(val) {
21198
- return /*#__PURE__*/React__default['default'].createElement(antd.Image, {
21199
- width: 30,
21200
- src: val
21201
- });
21202
- }
22397
+ dataIndex: 'onBillNo',
22398
+ title: "[SKX]ON\u51FA\u5E93\u901A\u77E5\u5355\u53F7",
22399
+ width: 200
21203
22400
  }].map(function (item) {
21204
22401
  return _objectSpread2(_objectSpread2({}, item), {}, {
21205
22402
  align: 'center',
21206
22403
  ellipsis: true
21207
22404
  });
21208
- })
22405
+ }),
22406
+ //[SKX]退货商品信息(TH)
22407
+ SKX_RETURN_GOODS: [{
22408
+ dataIndex: 'returnSkuEcode',
22409
+ title: "[SKX]\u9000\u8D27\u5355\u660E\u7EC6-returnSkuEcode",
22410
+ width: 300
22411
+ }, {
22412
+ dataIndex: 'returnSubOrderId',
22413
+ title: "[SKX]\u9000\u8D27\u5355-\u5B50\u8BA2\u5355\u53F7",
22414
+ width: 300
22415
+ }, {
22416
+ dataIndex: 'returnBillNo',
22417
+ title: "[SKX]TH\u9000\u6362\u8D27\u5355\u53F7",
22418
+ width: 200
22419
+ }]
21209
22420
  };
21210
22421
  };
21211
22422
 
21212
- var isNumberOrNumberString$2 = function isNumberOrNumberString(value) {
22423
+ var isNumberOrNumberString$3 = function isNumberOrNumberString(value) {
21213
22424
  if (typeof value === 'number') return true;
21214
22425
  if (typeof value === 'string' && !isNaN(Number(value)) && value.trim() !== '') return true;
21215
22426
  return false;
21216
22427
  };
21217
- function toNum$4(value) {
22428
+ function toNum$5(value) {
21218
22429
  if (typeof value === 'string') {
21219
22430
  return value ? +value : void 0;
21220
22431
  }
@@ -21223,44 +22434,44 @@ function toNum$4(value) {
21223
22434
  }
21224
22435
  return void 0;
21225
22436
  }
21226
- var getColumns$7 = function getColumns(_ref) {
22437
+ var getColumns$9 = function getColumns(_ref) {
21227
22438
  var _ref$text = _ref.text,
21228
22439
  disabled = _ref.disabled,
21229
22440
  updateHandle = _ref.updateHandle,
21230
22441
  updateDataHandle = _ref.updateDataHandle;
21231
22442
  return {
21232
22443
  //巨益商品信息
21233
- JY_GOODS: [{
21234
- dataIndex: 'productName',
21235
- title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
22444
+ JKY_GOODS: [{
22445
+ dataIndex: 'goodsNo',
22446
+ title: "\u8D27\u54C1\u7F16\u53F7",
21236
22447
  align: 'center',
21237
22448
  ellipsis: true,
21238
22449
  width: 150,
21239
22450
  render: renderTextEllipsis
21240
22451
  }, {
21241
- dataIndex: 'productCode',
21242
- title: "\u7CFB\u7EDF\u5546\u54C1\u7F16\u7801",
22452
+ dataIndex: 'goodsName',
22453
+ title: "\u8D27\u54C1\u540D\u79F0",
21243
22454
  align: 'center',
21244
22455
  ellipsis: true,
21245
22456
  width: 150,
21246
22457
  render: renderTextEllipsis
21247
22458
  }, {
21248
- dataIndex: 'productId',
21249
- title: "\u7CFB\u7EDF\u5546\u54C1ID",
22459
+ dataIndex: 'goodsId',
22460
+ title: "\u8D27\u54C1ID",
21250
22461
  align: 'center',
21251
22462
  ellipsis: true,
21252
22463
  width: 150,
21253
22464
  render: renderTextEllipsis
21254
22465
  }, {
21255
- dataIndex: 'skuName',
21256
- title: "\u7CFB\u7EDF\u89C4\u683C\u540D\u79F0",
22466
+ dataIndex: 'barcode',
22467
+ title: "\u8D27\u54C1\u6761\u7801",
21257
22468
  align: 'center',
21258
22469
  ellipsis: true,
21259
22470
  width: 150,
21260
22471
  render: renderTextEllipsis
21261
22472
  }, {
21262
- dataIndex: 'skuCode',
21263
- title: "\u7CFB\u7EDF\u89C4\u683C\u7F16\u7801",
22473
+ dataIndex: 'specName',
22474
+ title: "\u89C4\u683C\u540D\u79F0",
21264
22475
  align: 'center',
21265
22476
  ellipsis: true,
21266
22477
  width: 150,
@@ -21272,82 +22483,18 @@ var getColumns$7 = function getColumns(_ref) {
21272
22483
  ellipsis: true,
21273
22484
  width: 150,
21274
22485
  render: renderTextEllipsis
21275
- },
21276
- // {
21277
- // dataIndex: 'goodsName',
21278
- // title: `货品名称`,
21279
- // width: 250,
21280
- // },
21281
- // {
21282
- // dataIndex: 'goodsCode',
21283
- // title: `货品编号`,
21284
- // width: 200,
21285
- // },
21286
- // {
21287
- // dataIndex: 'goodsId',
21288
- // title: `货品ID`,
21289
- // width: 150,
21290
- // },
21291
- {
21292
- dataIndex: 'goodsClass',
21293
- title: "\u8D27\u54C1\u7C7B\u522B",
21294
- width: 150,
21295
- render: renderTextEllipsis
21296
- }, {
21297
- dataIndex: 'code',
21298
- title: "\u6761\u7801",
21299
- width: 150,
21300
- render: renderTextEllipsis
21301
- },
21302
- // {
21303
- // dataIndex: 'specName',
21304
- // title: `规格名称`,
21305
- // align: 'center',
21306
- // ellipsis: true,
21307
- // width: 200,
21308
- // },
21309
- // {
21310
- // dataIndex: 'specCode',
21311
- // title: `规格编号`,
21312
- // align: 'center',
21313
- // ellipsis: true,
21314
- // width: 150,
21315
- // },
21316
- {
21317
- dataIndex: 'mallProductName',
21318
- title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
21319
- align: 'center',
21320
- ellipsis: true,
21321
- width: 250,
21322
- render: renderTextEllipsis
21323
22486
  }, {
21324
- dataIndex: 'mallProductOutCode',
21325
- title: "\u5E73\u53F0\u5546\u54C1\u7F16\u7801",
22487
+ dataIndex: 'skuImgUrl',
22488
+ title: "\u89C4\u683C\u56FE\u7247",
21326
22489
  align: 'center',
21327
22490
  ellipsis: true,
21328
22491
  width: 150,
21329
- render: renderTextEllipsis
21330
- }, {
21331
- dataIndex: 'mallProductId',
21332
- title: "\u5E73\u53F0\u5546\u54C1ID",
21333
- align: 'center',
21334
- ellipsis: true,
21335
- width: 250,
21336
- render: renderTextEllipsis
21337
- }, {
21338
- dataIndex: 'mallSkuName',
21339
- title: "\u5E73\u53F0\u89C4\u683C\u540D\u79F0",
21340
- align: 'center',
21341
- ellipsis: true,
21342
- width: 250,
21343
- render: renderTextEllipsis
21344
- }, {
21345
- dataIndex: 'mallSkuId',
21346
- title: "\u5E73\u53F0\u89C4\u683CID",
21347
- align: 'center',
21348
- ellipsis: true,
21349
- width: 250,
21350
- render: renderTextEllipsis
22492
+ render: function render(val) {
22493
+ return /*#__PURE__*/React__default['default'].createElement(ApaasImage, {
22494
+ width: 30,
22495
+ src: val
22496
+ });
22497
+ }
21351
22498
  }, {
21352
22499
  dataIndex: 'sellCount',
21353
22500
  title: "\u6570\u91CF",
@@ -21363,11 +22510,16 @@ var getColumns$7 = function getColumns(_ref) {
21363
22510
  onChange: function onChange(num) {
21364
22511
  updateDataHandle({
21365
22512
  sellCount: num,
21366
- sellTotal: num && isNumberOrNumberString$2(record.sellPrice) ? num * record.sellPrice : null
22513
+ sellTotal: num && isNumberOrNumberString$3(record.sellPrice) ? num * record.sellPrice : null
21367
22514
  }, index);
21368
22515
  }
21369
22516
  }) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
21370
22517
  }
22518
+ }, {
22519
+ dataIndex: 'actualSendCount',
22520
+ title: "\u5B9E\u53D1\u6570\u91CF",
22521
+ width: 150,
22522
+ render: renderTextEllipsis
21371
22523
  }, {
21372
22524
  dataIndex: 'sellPrice',
21373
22525
  title: "\u5355\u4EF7",
@@ -21383,29 +22535,66 @@ var getColumns$7 = function getColumns(_ref) {
21383
22535
  onChange: function onChange(num) {
21384
22536
  updateDataHandle({
21385
22537
  sellPrice: num,
21386
- sellTotal: num && isNumberOrNumberString$2(record.sellCount) ? num * record.sellCount : null
22538
+ sellTotal: num && isNumberOrNumberString$3(record.sellCount) ? num * record.sellCount : null
21387
22539
  }, index);
21388
22540
  }
21389
22541
  }) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
21390
22542
  }
21391
22543
  }, {
21392
- dataIndex: 'mallSellingPrice',
21393
- title: "\u5E73\u53F0\u5546\u54C1\u4EF7\u683C",
21394
- width: 150
21395
- }, {
21396
- dataIndex: 'sellTotal',
21397
- title: "\u91D1\u989D",
21398
- width: 150
21399
- }, {
21400
- dataIndex: 'settlementPrice',
21401
- title: "\u7ED3\u7B97\u4EF7",
21402
- width: 150
21403
- }, {
21404
- dataIndex: 'divideOrderFee',
21405
- title: "\u5206\u644A\u5B9E\u4ED8\u91D1\u989D",
21406
- width: 150
21407
- }, {
21408
- dataIndex: 'bfit',
22544
+ dataIndex: 'sellTotal',
22545
+ title: "\u91D1\u989D",
22546
+ width: 150
22547
+ }, {
22548
+ dataIndex: 'discountTotal',
22549
+ title: "\u62B5\u6263\u91D1\u989D",
22550
+ width: 150
22551
+ }, {
22552
+ dataIndex: 'shareFavourableFee',
22553
+ title: "\u5206\u644A\u91D1\u989D",
22554
+ width: 150
22555
+ }, {
22556
+ dataIndex: 'shareFavourableAfterFee',
22557
+ title: "\u5206\u644A\u540E\u91D1\u989D",
22558
+ width: 150
22559
+ }, {
22560
+ dataIndex: 'customerPrice',
22561
+ title: "\u7EC8\u7AEF\u9500\u552E\u5355\u4EF7",
22562
+ width: 150
22563
+ }, {
22564
+ dataIndex: 'customerTotal',
22565
+ title: "\u7EC8\u7AEF\u9500\u552E\u91D1\u989D",
22566
+ width: 150
22567
+ }, {
22568
+ dataIndex: 'divideSellTotal',
22569
+ title: "\u5B9E\u4ED8\u91D1\u989D",
22570
+ width: 150
22571
+ }, {
22572
+ dataIndex: 'isGift',
22573
+ title: "\u662F\u5426\u8D60\u54C1",
22574
+ width: 150,
22575
+ render: function render(val, record, index) {
22576
+ return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
22577
+ dropdownStyle: {
22578
+ zIndex: 2000
22579
+ },
22580
+ getPopupContainer: function getPopupContainer() {
22581
+ return document.body;
22582
+ },
22583
+ value: val,
22584
+ onChange: function onChange(value) {
22585
+ updateHandle(value, index, 'isGift');
22586
+ },
22587
+ options: [{
22588
+ label: '是',
22589
+ value: '1'
22590
+ }, {
22591
+ label: '否',
22592
+ value: '0'
22593
+ }]
22594
+ }) : /*#__PURE__*/React__default['default'].createElement("span", null, val === '1' ? '是' : '否');
22595
+ }
22596
+ }, {
22597
+ dataIndex: 'isFit',
21409
22598
  title: "\u662F\u5426\u7EC4\u5408\u88C5",
21410
22599
  width: 150,
21411
22600
  render: function render(val, record, index) {
@@ -21418,30 +22607,20 @@ var getColumns$7 = function getColumns(_ref) {
21418
22607
  },
21419
22608
  value: val,
21420
22609
  onChange: function onChange(value) {
21421
- updateHandle(value, index, 'bfit');
22610
+ updateHandle(value, index, 'isFit');
21422
22611
  },
21423
22612
  options: [{
21424
22613
  label: '是',
21425
- value: 'True'
22614
+ value: '1'
21426
22615
  }, {
21427
22616
  label: '否',
21428
- value: 'False'
22617
+ value: '0'
21429
22618
  }]
21430
- }) : /*#__PURE__*/React__default['default'].createElement("span", null, val === 'True' ? '是' : '否');
22619
+ }) : /*#__PURE__*/React__default['default'].createElement("span", null, val === '1' ? '是' : '否');
21431
22620
  }
21432
22621
  }, {
21433
- dataIndex: 'combinationName',
21434
- title: "\u7EC4\u5408\u5546\u54C1\u540D\u79F0",
21435
- width: 150,
21436
- render: renderTextEllipsis
21437
- }, {
21438
- dataIndex: 'combinationCode',
21439
- title: "\u7EC4\u5408\u5546\u54C1\u7F16\u7801",
21440
- width: 150,
21441
- render: renderTextEllipsis
21442
- }, {
21443
- dataIndex: 'gift',
21444
- title: "\u662F\u5426\u8D60\u54C1",
22622
+ dataIndex: 'isPresell',
22623
+ title: "\u662F\u5426\u9884\u552E\u8D27\u54C1",
21445
22624
  width: 150,
21446
22625
  render: function render(val, record, index) {
21447
22626
  return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
@@ -21453,7 +22632,7 @@ var getColumns$7 = function getColumns(_ref) {
21453
22632
  },
21454
22633
  value: val,
21455
22634
  onChange: function onChange(value) {
21456
- updateHandle(value, index, 'gift');
22635
+ updateHandle(value, index, 'isPresell');
21457
22636
  },
21458
22637
  options: [{
21459
22638
  label: '是',
@@ -21464,115 +22643,169 @@ var getColumns$7 = function getColumns(_ref) {
21464
22643
  }]
21465
22644
  }) : /*#__PURE__*/React__default['default'].createElement("span", null, val === '1' ? '是' : '否');
21466
22645
  }
21467
- }].map(function (item) {
21468
- return _objectSpread2(_objectSpread2({}, item), {}, {
21469
- align: 'center',
21470
- ellipsis: true
21471
- });
21472
- }),
21473
- // 巨益补发商品信息
21474
- JY_REISSUE_GOODS: [{
21475
- dataIndex: 'productName',
21476
- title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
22646
+ }, {
22647
+ dataIndex: 'brandName',
22648
+ title: "\u54C1\u724C",
21477
22649
  align: 'center',
21478
22650
  ellipsis: true,
21479
- width: 150,
22651
+ width: 200,
21480
22652
  render: renderTextEllipsis
21481
22653
  }, {
21482
- dataIndex: 'productCode',
21483
- title: "\u7CFB\u7EDF\u5546\u54C1\u7F16\u7801",
22654
+ dataIndex: 'cateName',
22655
+ title: "\u8D27\u54C1\u7C7B\u522B",
21484
22656
  align: 'center',
21485
22657
  ellipsis: true,
21486
22658
  width: 150,
21487
22659
  render: renderTextEllipsis
21488
22660
  }, {
21489
- dataIndex: 'productId',
21490
- title: "\u7CFB\u7EDF\u5546\u54C1ID",
22661
+ dataIndex: 'goodsTags',
22662
+ title: "\u8D27\u54C1\u6807\u7B7E",
21491
22663
  align: 'center',
21492
22664
  ellipsis: true,
21493
- width: 150,
22665
+ width: 250,
21494
22666
  render: renderTextEllipsis
21495
22667
  }, {
21496
- dataIndex: 'skuName',
21497
- title: "\u7CFB\u7EDF\u89C4\u683C\u540D\u79F0",
22668
+ dataIndex: 'goodsMemo',
22669
+ title: "\u8D27\u54C1\u5907\u6CE8",
21498
22670
  align: 'center',
21499
22671
  ellipsis: true,
21500
- width: 150,
22672
+ width: 250,
21501
22673
  render: renderTextEllipsis
21502
22674
  }, {
21503
- dataIndex: 'skuCode',
21504
- title: "\u7CFB\u7EDF\u89C4\u683C\u7F16\u7801",
22675
+ dataIndex: 'tradeGoodsNo',
22676
+ title: "\u4EA4\u6613\u8D27\u54C1\u7F16\u53F7",
21505
22677
  align: 'center',
21506
22678
  ellipsis: true,
21507
- width: 150,
22679
+ width: 250,
21508
22680
  render: renderTextEllipsis
21509
22681
  }, {
21510
- dataIndex: 'specId',
21511
- title: "\u89C4\u683CID",
21512
- align: 'center',
22682
+ dataIndex: 'tradeGoodsName',
22683
+ title: "\u4EA4\u6613\u8D27\u54C1\u540D\u79F0",
21513
22684
  ellipsis: true,
21514
- width: 150,
22685
+ width: 250,
21515
22686
  render: renderTextEllipsis
21516
22687
  }, {
21517
- dataIndex: 'goodsClass',
21518
- title: "\u8D27\u54C1\u7C7B\u522B",
21519
- width: 150,
22688
+ dataIndex: 'tradeGoodsSpec',
22689
+ title: "\u4EA4\u6613\u89C4\u683C\u540D\u79F0",
22690
+ ellipsis: true,
22691
+ width: 250,
21520
22692
  render: renderTextEllipsis
21521
22693
  }, {
21522
- dataIndex: 'code',
21523
- title: "\u6761\u7801",
22694
+ dataIndex: 'sourceSubtradeNo',
22695
+ title: "\u7F51\u5E97\u5B50\u8BA2\u5355\u53F7",
22696
+ ellipsis: true,
22697
+ width: 250,
22698
+ render: renderTextEllipsis
22699
+ }, {
22700
+ dataIndex: 'platGoodsId',
22701
+ title: "\u5E73\u53F0\u5546\u54C1ID",
22702
+ ellipsis: true,
22703
+ width: 250,
22704
+ render: renderTextEllipsis
22705
+ }, {
22706
+ dataIndex: 'subTradeId',
22707
+ title: "\u5546\u54C1\u660E\u7EC6ID",
22708
+ ellipsis: true,
22709
+ width: 250,
22710
+ render: renderTextEllipsis
22711
+ }, {
22712
+ dataIndex: 'batchNo',
22713
+ title: "\u6279\u6B21\u53F7",
22714
+ ellipsis: true,
22715
+ width: 250,
22716
+ render: renderTextEllipsis
22717
+ }, {
22718
+ dataIndex: 'sendCount',
22719
+ title: "\u6279\u6B21\u6570\u91CF",
22720
+ ellipsis: true,
22721
+ width: 250,
22722
+ render: renderTextEllipsis
22723
+ }, {
22724
+ dataIndex: 'productDate',
22725
+ title: "\u751F\u4EA7\u65E5\u671F",
22726
+ ellipsis: true,
22727
+ width: 250,
22728
+ render: renderTextEllipsis
22729
+ }, {
22730
+ dataIndex: 'expireDate',
22731
+ title: "\u5230\u671F\u65E5\u671F",
22732
+ ellipsis: true,
22733
+ width: 250,
22734
+ render: renderTextEllipsis
22735
+ }].map(function (item) {
22736
+ return _objectSpread2(_objectSpread2({}, item), {}, {
22737
+ align: 'center',
22738
+ ellipsis: true
22739
+ });
22740
+ }),
22741
+ // 巨益补发商品信息
22742
+ JKY_REISSUE_GOODS: [{
22743
+ dataIndex: 'goodsNo',
22744
+ title: "\u8D27\u54C1\u7F16\u53F7",
22745
+ align: 'center',
22746
+ ellipsis: true,
21524
22747
  width: 150,
21525
22748
  render: renderTextEllipsis
21526
22749
  }, {
21527
- dataIndex: 'mallProductName',
21528
- title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
22750
+ dataIndex: 'goodsName',
22751
+ title: "\u8D27\u54C1\u540D\u79F0",
21529
22752
  align: 'center',
21530
22753
  ellipsis: true,
21531
22754
  width: 150,
21532
22755
  render: renderTextEllipsis
21533
22756
  }, {
21534
- dataIndex: 'mallProductOutCode',
21535
- title: "\u5E73\u53F0\u5546\u54C1\u7F16\u7801",
22757
+ dataIndex: 'goodsId',
22758
+ title: "\u8D27\u54C1ID",
21536
22759
  align: 'center',
21537
22760
  ellipsis: true,
21538
22761
  width: 150,
21539
22762
  render: renderTextEllipsis
21540
22763
  }, {
21541
- dataIndex: 'mallProductId',
21542
- title: "\u5E73\u53F0\u5546\u54C1ID",
22764
+ dataIndex: 'barcode',
22765
+ title: "\u8D27\u54C1\u6761\u7801",
21543
22766
  align: 'center',
21544
22767
  ellipsis: true,
21545
22768
  width: 150,
21546
22769
  render: renderTextEllipsis
21547
22770
  }, {
21548
- dataIndex: 'mallSkuName',
21549
- title: "\u5E73\u53F0\u89C4\u683C\u540D\u79F0",
22771
+ dataIndex: 'specName',
22772
+ title: "\u89C4\u683C\u540D\u79F0",
21550
22773
  align: 'center',
21551
22774
  ellipsis: true,
21552
22775
  width: 150,
21553
22776
  render: renderTextEllipsis
21554
22777
  }, {
21555
- dataIndex: 'mallSkuId',
21556
- title: "\u5E73\u53F0\u89C4\u683CID",
22778
+ dataIndex: 'specId',
22779
+ title: "\u89C4\u683CID",
21557
22780
  align: 'center',
21558
22781
  ellipsis: true,
21559
22782
  width: 150,
21560
22783
  render: renderTextEllipsis
22784
+ }, {
22785
+ dataIndex: 'skuImgUrl',
22786
+ title: "\u89C4\u683C\u56FE\u7247",
22787
+ width: 150,
22788
+ render: function render(val) {
22789
+ return /*#__PURE__*/React__default['default'].createElement(ApaasImage, {
22790
+ width: 30,
22791
+ src: val
22792
+ });
22793
+ }
21561
22794
  }, {
21562
22795
  dataIndex: 'sellCount',
21563
- title: "\u6570\u91CF",
22796
+ title: "\u53D1\u8D27\u6570\u91CF",
21564
22797
  width: 100,
21565
22798
  validator: function validator(_rule, value) {
21566
- var productName = '';
21567
- if (((value === null || value === void 0 ? void 0 : value.jyReissueGoods) || []).some(function (goods) {
21568
- var qty = toNum$4(goods === null || goods === void 0 ? void 0 : goods.sellCount);
22799
+ var goodsName = '';
22800
+ if (((value === null || value === void 0 ? void 0 : value.jkyReissueGoods) || []).some(function (goods) {
22801
+ var qty = toNum$5(goods === null || goods === void 0 ? void 0 : goods.sellCount);
21569
22802
  var res = typeof qty === 'number' ? qty < 1 : true;
21570
22803
  if (res) {
21571
- productName = (goods === null || goods === void 0 ? void 0 : goods.productName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.productName, "]") : '';
22804
+ goodsName = (goods === null || goods === void 0 ? void 0 : goods.goodsName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodsName, "]") : '';
21572
22805
  }
21573
22806
  return res;
21574
22807
  })) {
21575
- return Promise.reject("".concat(productName, "\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
22808
+ return Promise.reject("".concat(goodsName, "\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
21576
22809
  }
21577
22810
  },
21578
22811
  render: function render(val, record, index) {
@@ -21586,7 +22819,7 @@ var getColumns$7 = function getColumns(_ref) {
21586
22819
  onChange: function onChange(num) {
21587
22820
  updateDataHandle({
21588
22821
  sellCount: num,
21589
- sellTotal: num && isNumberOrNumberString$2(record.sellPrice) ? num * record.sellPrice : null
22822
+ sellTotal: num && isNumberOrNumberString$3(record.sellPrice) ? num * record.sellPrice : null
21590
22823
  }, index);
21591
22824
  }
21592
22825
  }) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
@@ -21606,119 +22839,87 @@ var getColumns$7 = function getColumns(_ref) {
21606
22839
  onChange: function onChange(num) {
21607
22840
  updateDataHandle({
21608
22841
  sellPrice: num,
21609
- sellTotal: num && isNumberOrNumberString$2(record.sellCount) ? num * record.sellCount : null
22842
+ sellTotal: num && isNumberOrNumberString$3(record.sellCount) ? num * record.sellCount : null
21610
22843
  }, index);
21611
22844
  }
21612
22845
  }) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
21613
22846
  }
21614
- }, {
21615
- dataIndex: 'mallSellingPrice',
21616
- title: "\u5E73\u53F0\u5546\u54C1\u4EF7\u683C",
21617
- width: 150
21618
22847
  }, {
21619
22848
  dataIndex: 'sellTotal',
21620
- title: "\u91D1\u989D",
21621
- width: 150
22849
+ title: "\u603B\u91D1\u989D",
22850
+ width: 150,
22851
+ render: function render(val, record, index) {
22852
+ return record.sellCount * record.sellPrice;
22853
+ }
21622
22854
  }, {
21623
- dataIndex: 'bfit',
21624
- title: "\u662F\u5426\u7EC4\u5408\u88C5",
22855
+ dataIndex: 'reason',
22856
+ title: "\u9000\u6362\u539F\u56E0",
22857
+ width: 250,
22858
+ render: function render(val, record, index) {
22859
+ return /*#__PURE__*/React__default['default'].createElement(ApaasInput, {
22860
+ onChange: function onChange(value) {
22861
+ updateHandle(value, index, 'reason');
22862
+ }
22863
+ });
22864
+ }
22865
+ }, {
22866
+ dataIndex: 'isGift',
22867
+ title: "\u662F\u5426\u8D60\u54C1",
21625
22868
  width: 150,
21626
22869
  render: function render(val, record, index) {
21627
22870
  return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
21628
22871
  value: val,
21629
22872
  onChange: function onChange(value) {
21630
- updateHandle(value, index, 'bfit');
22873
+ updateHandle(value, index, 'isGift');
21631
22874
  },
21632
22875
  options: [{
21633
22876
  label: '是',
21634
- value: 'True'
22877
+ value: '1'
21635
22878
  }, {
21636
22879
  label: '否',
21637
- value: 'False'
22880
+ value: '0'
21638
22881
  }]
21639
- }) : /*#__PURE__*/React__default['default'].createElement("span", null, val === 'True' ? '是' : '否');
22882
+ }) : /*#__PURE__*/React__default['default'].createElement("span", null, val === '1' ? '是' : '否');
21640
22883
  }
21641
22884
  }, {
21642
- dataIndex: 'combinationName',
21643
- title: "\u7EC4\u5408\u5546\u54C1\u540D\u79F0",
21644
- width: 150,
21645
- render: renderTextEllipsis
21646
- }, {
21647
- dataIndex: 'combinationCode',
21648
- title: "\u7EC4\u5408\u5546\u54C1\u7F16\u7801",
21649
- width: 150,
21650
- render: renderTextEllipsis
21651
- }, {
21652
- dataIndex: 'gift',
21653
- title: "\u662F\u5426\u8D60\u54C1",
22885
+ dataIndex: 'isFit',
22886
+ title: "\u662F\u5426\u7EC4\u5408\u88C5",
21654
22887
  width: 150,
21655
22888
  render: function render(val, record, index) {
21656
22889
  return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
21657
22890
  value: val,
21658
22891
  onChange: function onChange(value) {
21659
- updateHandle(value, index, 'gift');
22892
+ updateHandle(value, index, 'isFit');
21660
22893
  },
21661
22894
  options: [{
21662
22895
  label: '是',
21663
- value: '1'
22896
+ value: 'True'
21664
22897
  }, {
21665
22898
  label: '否',
21666
- value: '0'
22899
+ value: 'False'
21667
22900
  }]
21668
- }) : /*#__PURE__*/React__default['default'].createElement("span", null, val === '1' ? '是' : '否');
22901
+ }) : /*#__PURE__*/React__default['default'].createElement("span", null, val === 'True' ? '是' : '否');
21669
22902
  }
21670
- }].map(function (item) {
21671
- return _objectSpread2(_objectSpread2({}, item), {}, {
21672
- align: 'center',
21673
- ellipsis: true
21674
- });
21675
- })
21676
- };
21677
- };
21678
-
21679
- var getColumns$8 = function getColumns(_ref) {
21680
- var _ref$text = _ref.text,
21681
- disabled = _ref.disabled,
21682
- updateHandle = _ref.updateHandle,
21683
- updateDataHandle = _ref.updateDataHandle;
21684
- return {
21685
- //[SKX]商品信息(ON)
21686
- SKX_GOODS: [{
21687
- dataIndex: 'skuEcode',
21688
- title: "[SKX]\u53D1\u8D27\u5355\u660E\u7EC6-skuEcode",
21689
- width: 250
21690
22903
  }, {
21691
- dataIndex: 'subOrderId',
21692
- title: "[SKX]\u53D1\u8D27\u5355-\u5B50\u8BA2\u5355\u53F7",
21693
- width: 300
21694
- }, {
21695
- dataIndex: 'onBillNo',
21696
- title: "[SKX]ON\u51FA\u5E93\u901A\u77E5\u5355\u53F7",
21697
- width: 200
21698
- }].map(function (item) {
21699
- return _objectSpread2(_objectSpread2({}, item), {}, {
21700
- align: 'center',
21701
- ellipsis: true
21702
- });
21703
- }),
21704
- //[SKX]退货商品信息(TH)
21705
- SKX_RETURN_GOODS: [{
21706
- dataIndex: 'returnSkuEcode',
21707
- title: "[SKX]\u9000\u8D27\u5355\u660E\u7EC6-returnSkuEcode",
21708
- width: 300
21709
- }, {
21710
- dataIndex: 'returnSubOrderId',
21711
- title: "[SKX]\u9000\u8D27\u5355-\u5B50\u8BA2\u5355\u53F7",
21712
- width: 300
22904
+ dataIndex: 'brandName',
22905
+ title: "\u54C1\u724C",
22906
+ width: 150,
22907
+ render: renderTextEllipsis
21713
22908
  }, {
21714
- dataIndex: 'returnBillNo',
21715
- title: "[SKX]TH\u9000\u6362\u8D27\u5355\u53F7",
21716
- width: 200
21717
- }]
22909
+ dataIndex: 'cateName',
22910
+ title: "\u8D27\u54C1\u7C7B\u522B",
22911
+ width: 150,
22912
+ render: renderTextEllipsis
22913
+ }].map(function (item) {
22914
+ return _objectSpread2(_objectSpread2({}, item), {}, {
22915
+ align: 'center',
22916
+ ellipsis: true
22917
+ });
22918
+ })
21718
22919
  };
21719
22920
  };
21720
22921
 
21721
- var getColumns$9 = function getColumns(_ref) {
22922
+ var getColumns$a = function getColumns(_ref) {
21722
22923
  var _ref$text = _ref.text,
21723
22924
  text = _ref$text === void 0 ? '' : _ref$text,
21724
22925
  disabled = _ref.disabled,
@@ -21835,7 +23036,7 @@ var getColumnsMap$1 = function getColumnsMap(args) {
21835
23036
  disabled = _ref.disabled,
21836
23037
  updateHandle = _ref.updateHandle,
21837
23038
  updateDataHandle = _ref.updateDataHandle;
21838
- return _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, getColumns$1({
23039
+ return _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, getColumns$1({
21839
23040
  text: text,
21840
23041
  disabled: disabled,
21841
23042
  updateHandle: updateHandle
@@ -21873,8 +23074,13 @@ var getColumnsMap$1 = function getColumnsMap(args) {
21873
23074
  text: text,
21874
23075
  disabled: disabled,
21875
23076
  updateHandle: updateHandle
23077
+ })), getColumns$9({
23078
+ text: text,
23079
+ disabled: disabled,
23080
+ updateHandle: updateHandle,
23081
+ updateDataHandle: updateDataHandle
21876
23082
  })), {}, {
21877
- default: getColumns$9({
23083
+ default: getColumns$a({
21878
23084
  text: text,
21879
23085
  disabled: disabled,
21880
23086
  updateHandle: updateHandle
@@ -22021,6 +23227,9 @@ var isErpType = {
22021
23227
  },
22022
23228
  isJy: function isJy(type) {
22023
23229
  return ['JY_GOODS', 'JY_REISSUE_GOODS'].includes(type);
23230
+ },
23231
+ isJky: function isJky(type) {
23232
+ return ['JKY_GOODS', 'JKY_REISSUE_GOODS'].includes(type);
22024
23233
  }
22025
23234
  };
22026
23235
  var processGoods$1 = function processGoods(_ref) {
@@ -22307,6 +23516,8 @@ var GoodsModalMap = {
22307
23516
  KM_REISSUE_GOODS: KmGoodsModal,
22308
23517
  JY_GOODS: JyGoodsModal$1,
22309
23518
  JY_REISSUE_GOODS: JyGoodsModal$1,
23519
+ JKY_GOODS: JkyGoodsModal$1,
23520
+ JKY_REISSUE_GOODS: JkyGoodsModal$1,
22310
23521
  OTHER_GOODS: GoodsModal$2
22311
23522
  };
22312
23523
  var systemOrderNoMap = {
@@ -22319,6 +23530,8 @@ var systemOrderNoMap = {
22319
23530
  WLN_GOODS: 'tradeNo',
22320
23531
  JY_GOODS: 'tradeNo',
22321
23532
  JY_REISSUE_GOODS: 'tradeNo',
23533
+ JKY_GOODS: 'tradeNo',
23534
+ JKY_REISSUE_GOODS: 'tradeNo',
22322
23535
  KM_REISSUE_GOODS: 'sid',
22323
23536
  JST_REISSUE_GOODS: 'oId',
22324
23537
  GY_REISSUE_GOODS: 'code',
@@ -22354,23 +23567,81 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
22354
23567
  _useState4 = _slicedToArray(_useState3, 2),
22355
23568
  tradeGoodsVisible = _useState4[0],
22356
23569
  setTradeGoodsVisible = _useState4[1];
22357
- var openModal = function openModal() {
22358
- if (validSystemOrder) {
22359
- antd.message.warning('请选择补发系统单');
22360
- return;
22361
- }
22362
- if (getDataSourceAsync && !(dataSource === null || dataSource === void 0 ? void 0 : dataSource.length)) {
22363
- getDataSourceAsync().then(function () {
22364
- setTradeGoodsVisible(true);
22365
- });
22366
- } else {
22367
- setTradeGoodsVisible(true);
22368
- }
22369
- // 补发直接传入的是systemNo
22370
- if (isShowSelect && isReissueType) {
22371
- setSelectSystemNo(selectedSystemOrders || []);
22372
- }
22373
- };
23570
+ var getKmSupplier = /*#__PURE__*/function () {
23571
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(dataSource) {
23572
+ var _dataSource$filter;
23573
+ var systemItemIds, supplierMap;
23574
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
23575
+ while (1) switch (_context.prev = _context.next) {
23576
+ case 0:
23577
+ systemItemIds = dataSource === null || dataSource === void 0 ? void 0 : dataSource.filter(function (item) {
23578
+ return item === null || item === void 0 ? void 0 : item.sysItemId;
23579
+ }).map(function (item) {
23580
+ return (item === null || item === void 0 ? void 0 : item.sysSkuId) == '-1' ? item === null || item === void 0 ? void 0 : item.sysItemId : "".concat(item === null || item === void 0 ? void 0 : item.sysItemId, "-").concat(item === null || item === void 0 ? void 0 : item.sysSkuId);
23581
+ });
23582
+ _context.next = 3;
23583
+ return kmkfUtils.servers.KM.getSupplierSingleton(systemItemIds);
23584
+ case 3:
23585
+ supplierMap = _context.sent;
23586
+ dataSource === null || dataSource === void 0 ? void 0 : (_dataSource$filter = dataSource.filter(function (item) {
23587
+ return item === null || item === void 0 ? void 0 : item.sysItemId;
23588
+ })) === null || _dataSource$filter === void 0 ? void 0 : _dataSource$filter.forEach(function (item) {
23589
+ var key = (item === null || item === void 0 ? void 0 : item.sysSkuId) == '-1' ? item === null || item === void 0 ? void 0 : item.sysItemId : "".concat(item === null || item === void 0 ? void 0 : item.sysItemId, "-").concat(item === null || item === void 0 ? void 0 : item.sysSkuId);
23590
+ var supplierInfo = supplierMap.get(key);
23591
+ item.supplierCode = supplierInfo === null || supplierInfo === void 0 ? void 0 : supplierInfo.supplierCode;
23592
+ item.supplierName = supplierInfo === null || supplierInfo === void 0 ? void 0 : supplierInfo.supplierName;
23593
+ });
23594
+ case 5:
23595
+ case "end":
23596
+ return _context.stop();
23597
+ }
23598
+ }, _callee);
23599
+ }));
23600
+ return function getKmSupplier(_x) {
23601
+ return _ref2.apply(this, arguments);
23602
+ };
23603
+ }();
23604
+ var openModal = /*#__PURE__*/function () {
23605
+ var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
23606
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
23607
+ while (1) switch (_context2.prev = _context2.next) {
23608
+ case 0:
23609
+ if (!validSystemOrder) {
23610
+ _context2.next = 3;
23611
+ break;
23612
+ }
23613
+ antd.message.warning('请选择补发系统单');
23614
+ return _context2.abrupt("return");
23615
+ case 3:
23616
+ if (!(getDataSourceAsync && !(dataSource === null || dataSource === void 0 ? void 0 : dataSource.length))) {
23617
+ _context2.next = 6;
23618
+ break;
23619
+ }
23620
+ _context2.next = 6;
23621
+ return getDataSourceAsync();
23622
+ case 6:
23623
+ if (!['KM_GOODS', 'KM_REISSUE_GOODS'].includes(type)) {
23624
+ _context2.next = 9;
23625
+ break;
23626
+ }
23627
+ _context2.next = 9;
23628
+ return getKmSupplier(dataSource);
23629
+ case 9:
23630
+ setTradeGoodsVisible(true);
23631
+ // 补发直接传入的是systemNo
23632
+ if (isShowSelect && isReissueType) {
23633
+ setSelectSystemNo(selectedSystemOrders || []);
23634
+ }
23635
+ case 11:
23636
+ case "end":
23637
+ return _context2.stop();
23638
+ }
23639
+ }, _callee2);
23640
+ }));
23641
+ return function openModal() {
23642
+ return _ref3.apply(this, arguments);
23643
+ };
23644
+ }();
22374
23645
  var closeModal = function closeModal() {
22375
23646
  return setTradeGoodsVisible(false);
22376
23647
  };
@@ -22439,7 +23710,7 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
22439
23710
  }
22440
23711
  }, isShowSelect && /*#__PURE__*/React__default['default'].createElement(antd.Row, {
22441
23712
  style: {
22442
- marginBottom: '20px'
23713
+ marginBottom: '12px'
22443
23714
  }
22444
23715
  }, /*#__PURE__*/React__default['default'].createElement(antd.Col, {
22445
23716
  span: 12
@@ -22493,6 +23764,9 @@ var getButtonText = function getButtonText() {
22493
23764
  if (['JY_GOODS', 'JY_REISSUE_GOODS'].includes(type)) {
22494
23765
  return '选择巨益ERP商品';
22495
23766
  }
23767
+ if (['JKY_GOODS', 'JKY_REISSUE_GOODS'].includes(type)) {
23768
+ return '选择吉客云ERP商品';
23769
+ }
22496
23770
  return '选择商品';
22497
23771
  };
22498
23772
  var GoodItem$1 = function GoodItem(props) {
@@ -22550,7 +23824,7 @@ var GoodItem$1 = function GoodItem(props) {
22550
23824
  var jstReturnGoods = antd.Form === null || antd.Form === void 0 ? void 0 : antd.Form.useWatch('3979edfd6d', form);
22551
23825
  var isShowSelectTradeGoods = type !== 'JST_EXCHANGE_GOODS' || (jstReturnGoods === null || jstReturnGoods === void 0 ? void 0 : jstReturnGoods.jstSystemOrderNo);
22552
23826
  // 判断是否为是否展示系统单筛选项
22553
- 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;
23827
+ 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;
22554
23828
  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;
22555
23829
  var refModal = React.useRef();
22556
23830
  console.debug('表格数据', value);
@@ -22642,6 +23916,8 @@ var GoodItem$1 = function GoodItem(props) {
22642
23916
  case 'KM_REISSUE_GOODS':
22643
23917
  case 'JY_GOODS':
22644
23918
  case 'JY_REISSUE_GOODS':
23919
+ case 'JKY_GOODS':
23920
+ case 'JKY_REISSUE_GOODS':
22645
23921
  case 'SKX_GOODS':
22646
23922
  case 'SKX_RETURN_GOODS':
22647
23923
  {
@@ -22689,9 +23965,9 @@ var GoodItem$1 = function GoodItem(props) {
22689
23965
  var COLUMNS_INFO = COLUMNS_MAP(text);
22690
23966
  return COLUMNS_INFO(type);
22691
23967
  };
22692
- var getShowFilterColumns = React.useCallback(function (_ref2) {
22693
- var showHeader = _ref2.showHeader,
22694
- initBaseInfoColumns = _ref2.initBaseInfoColumns;
23968
+ var getShowFilterColumns = React.useCallback(function (_ref4) {
23969
+ var showHeader = _ref4.showHeader,
23970
+ initBaseInfoColumns = _ref4.initBaseInfoColumns;
22695
23971
  var baseInfoColumns = [];
22696
23972
  var isStringArray = Array.isArray(showHeader) && typeof showHeader[0] === 'string';
22697
23973
  var isObjectArray = Array.isArray(showHeader) && Object.prototype.toString.call(showHeader[0]) === '[object Object]';
@@ -23846,7 +25122,7 @@ var jyUtils = {
23846
25122
  };
23847
25123
 
23848
25124
  var singletonMap$7 = new Map();
23849
- var getOrderListSingleton$2 = function getOrderListSingleton(orderNo) {
25125
+ var getJkyOrderListSingleton = function getJkyOrderListSingleton(orderNo) {
23850
25126
  if (!singletonMap$7.has(orderNo)) {
23851
25127
  var p = new Promise(function (resolve, reject) {
23852
25128
  var doReject = function doReject(err) {
@@ -23854,6 +25130,50 @@ var getOrderListSingleton$2 = function getOrderListSingleton(orderNo) {
23854
25130
  singletonMap$7.delete(orderNo);
23855
25131
  reject(err);
23856
25132
  };
25133
+ extendRequest('/qy/gdfw/order/jkyOrderDetail', {
25134
+ method: 'post',
25135
+ data: {
25136
+ billNo: orderNo
25137
+ }
25138
+ }).then(function (res) {
25139
+ if (res === null || res === void 0 ? void 0 : res.success) {
25140
+ var _res$data, _res$data$tradeOrderD, _res$data3;
25141
+ 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) {
25142
+ var _filterJkyOrders, _res$data2;
25143
+ res.data.trades = (_filterJkyOrders = kmkfUtils.filterJkyOrders(res === null || res === void 0 ? void 0 : (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.tradeOrderDetails, orderNo)) === null || _filterJkyOrders === void 0 ? void 0 : _filterJkyOrders.map(function (item) {
25144
+ return _objectSpread2(_objectSpread2({}, item), {}, {
25145
+ tradeType: kmkfUtils.JKY_ORDER_TYPE_MAP[item.tradeType],
25146
+ tradeStatus: kmkfUtils.JKY_ORDER_STATUS_MAP[item.tradeStatus]
25147
+ });
25148
+ });
25149
+ }
25150
+ resolve(((_res$data3 = res.data) === null || _res$data3 === void 0 ? void 0 : _res$data3.trades) || []);
25151
+ // 延迟10秒清除,保证订单的时效性
25152
+ setTimeout(function () {
25153
+ singletonMap$7.delete(orderNo);
25154
+ }, 1000 * 10);
25155
+ } else {
25156
+ doReject(res);
25157
+ }
25158
+ }).catch(doReject);
25159
+ });
25160
+ singletonMap$7.set(orderNo, p);
25161
+ }
25162
+ return singletonMap$7.get(orderNo);
25163
+ };
25164
+ var jkyUtils = {
25165
+ getJkyOrderListSingleton: getJkyOrderListSingleton
25166
+ };
25167
+
25168
+ var singletonMap$8 = new Map();
25169
+ var getOrderListSingleton$2 = function getOrderListSingleton(orderNo) {
25170
+ if (!singletonMap$8.has(orderNo)) {
25171
+ var p = new Promise(function (resolve, reject) {
25172
+ var doReject = function doReject(err) {
25173
+ // 清空掉错误的请求记录
25174
+ singletonMap$8.delete(orderNo);
25175
+ reject(err);
25176
+ };
23857
25177
  extendRequest('/qy/gdfw/order/kmErpOrderDetail', {
23858
25178
  method: 'post',
23859
25179
  data: {
@@ -23877,16 +25197,16 @@ var getOrderListSingleton$2 = function getOrderListSingleton(orderNo) {
23877
25197
  }
23878
25198
  // 延迟10秒清除,保证订单的时效性
23879
25199
  setTimeout(function () {
23880
- singletonMap$7.delete(orderNo);
25200
+ singletonMap$8.delete(orderNo);
23881
25201
  }, 1000 * 10);
23882
25202
  } else {
23883
25203
  doReject(data);
23884
25204
  }
23885
25205
  }).catch(doReject);
23886
25206
  });
23887
- singletonMap$7.set(orderNo, p);
25207
+ singletonMap$8.set(orderNo, p);
23888
25208
  }
23889
- return singletonMap$7.get(orderNo);
25209
+ return singletonMap$8.get(orderNo);
23890
25210
  };
23891
25211
  var kmUtils = {
23892
25212
  getOrderListSingleton: getOrderListSingleton$2
@@ -23903,6 +25223,7 @@ var columnsMap = {
23903
25223
  GY_SYSTEM_ORDER: kmkfUtils.GY_SYSTEM_ORDER_CONFIG.columns,
23904
25224
  JST_SYSTEM_ORDER: kmkfUtils.JST_SYSTEM_ORDER_CONFIG.columns,
23905
25225
  JY_SYSTEM_ORDER: kmkfUtils.JY_SYSTEM_ORDER_CONFIG.columns,
25226
+ JKY_SYSTEM_ORDER: kmkfUtils.JKY_SYSTEM_ORDER_CONFIG.columns,
23906
25227
  WDT_RETURN_BILL_NO: kmkfUtils.WDT_RETURN_BILL_NO_CONFIG.columns
23907
25228
  };
23908
25229
  var rowKeyMap = {
@@ -23914,6 +25235,7 @@ var rowKeyMap = {
23914
25235
  GY_SYSTEM_ORDER: 'billNo',
23915
25236
  JST_SYSTEM_ORDER: 'oId',
23916
25237
  JY_SYSTEM_ORDER: 'tradeNo',
25238
+ JKY_SYSTEM_ORDER: 'tradeNo',
23917
25239
  WDT_RETURN_BILL_NO: 'refundNo'
23918
25240
  };
23919
25241
  var index$2 = (function (props) {
@@ -23928,7 +25250,6 @@ var index$2 = (function (props) {
23928
25250
  React.useEffect(function () {
23929
25251
  var _value$orders, _value$showOrderInfo;
23930
25252
  valueRef.current = value;
23931
- console.log('value77777777', value);
23932
25253
  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) {
23933
25254
  onceRef.current = true;
23934
25255
  if (type === 'BS_SYSTEM_ORDER') {
@@ -23947,6 +25268,8 @@ var index$2 = (function (props) {
23947
25268
  getJstOrderList(value.orderNo);
23948
25269
  } else if (type === 'JY_SYSTEM_ORDER') {
23949
25270
  getJyOrderList(value.orderNo);
25271
+ } else if (type === 'JKY_SYSTEM_ORDER') {
25272
+ getJkyOrderList(value.orderNo);
23950
25273
  }
23951
25274
  }
23952
25275
  }, [value, type]);
@@ -24211,6 +25534,31 @@ var index$2 = (function (props) {
24211
25534
  return _ref10.apply(this, arguments);
24212
25535
  };
24213
25536
  }();
25537
+ var getJkyOrderList = /*#__PURE__*/function () {
25538
+ var _ref12 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9(orderNo) {
25539
+ return _regeneratorRuntime().wrap(function _callee9$(_context9) {
25540
+ while (1) switch (_context9.prev = _context9.next) {
25541
+ case 0:
25542
+ jkyUtils.getJkyOrderListSingleton(orderNo).then(function (data) {
25543
+ var trades = ((data === null || data === void 0 ? void 0 : data.trades) || []).filter(function (item) {
25544
+ return kmkfUtils.getIsPlatformCodesIncludeOrderNos(item.platformCode, orderNo);
25545
+ });
25546
+ _onChange === null || _onChange === void 0 ? void 0 : _onChange(_objectSpread2(_objectSpread2({}, valueRef.current || {}), {}, {
25547
+ orders: trades,
25548
+ showOrderInfo: trades
25549
+ }));
25550
+ });
25551
+ onceRef.current = false;
25552
+ case 2:
25553
+ case "end":
25554
+ return _context9.stop();
25555
+ }
25556
+ }, _callee9);
25557
+ }));
25558
+ return function getJkyOrderList(_x9) {
25559
+ return _ref12.apply(this, arguments);
25560
+ };
25561
+ }();
24214
25562
  var rowSelection = {
24215
25563
  selectedRowKeys: (value === null || value === void 0 ? void 0 : value.selectIds) || [],
24216
25564
  fixed: true,
@@ -24635,16 +25983,16 @@ var orderSubFormConstants = {
24635
25983
  };
24636
25984
 
24637
25985
  var getSelectWidgetMap$1 = orderSubFormConstants.getSelectWidgetMap;
24638
- var singletonMap$8 = new Map();
25986
+ var singletonMap$9 = new Map();
24639
25987
  var getOrderListSingleton$3 = function getOrderListSingleton(parmas) {
24640
25988
  var orderNo = parmas.orderNo,
24641
25989
  shopId = parmas.shopId;
24642
25990
  var key = "".concat(orderNo, "-").concat(shopId);
24643
- if (!singletonMap$8.has(key)) {
25991
+ if (!singletonMap$9.has(key)) {
24644
25992
  var p = new Promise(function (resolve, reject) {
24645
25993
  var doReject = function doReject(err) {
24646
25994
  // 清空掉错误的请求记录
24647
- singletonMap$8.delete(key);
25995
+ singletonMap$9.delete(key);
24648
25996
  reject(err);
24649
25997
  };
24650
25998
  extendRequest('/qy/gdfw/order/subOrderItemsDetail', {
@@ -24660,16 +26008,16 @@ var getOrderListSingleton$3 = function getOrderListSingleton(parmas) {
24660
26008
  }
24661
26009
  // 延迟10秒清除,保证订单的时效性
24662
26010
  setTimeout(function () {
24663
- singletonMap$8.delete(key);
26011
+ singletonMap$9.delete(key);
24664
26012
  }, 1000 * 10);
24665
26013
  } else {
24666
26014
  doReject(data);
24667
26015
  }
24668
26016
  }).catch(doReject);
24669
26017
  });
24670
- singletonMap$8.set(key, p);
26018
+ singletonMap$9.set(key, p);
24671
26019
  }
24672
- return singletonMap$8.get(key);
26020
+ return singletonMap$9.get(key);
24673
26021
  };
24674
26022
  var renderEditItem = function renderEditItem(_ref) {
24675
26023
  var item = _ref.item,
@@ -25102,6 +26450,9 @@ var isErpType$1 = {
25102
26450
  },
25103
26451
  isJy: function isJy(type) {
25104
26452
  return ['JY_GOODS'].includes(type);
26453
+ },
26454
+ isJky: function isJky(type) {
26455
+ return ['JKY_GOODS'].includes(type);
25105
26456
  }
25106
26457
  };
25107
26458
  var processAllOrders = function processAllOrders(_ref) {
@@ -25402,6 +26753,32 @@ var componentMap$2 = {
25402
26753
  },
25403
26754
  getOrderList: jyUtils.getJyOrderListSingleton
25404
26755
  },
26756
+ JKY_GOODS: {
26757
+ type: 'jky',
26758
+ key: 'jkyGoods',
26759
+ name: '吉客云',
26760
+ orderNo: 'tradeNo',
26761
+ goodDetailOrderNo: 'tradeNo',
26762
+ eventNameMap: {
26763
+ // pubsub 事件
26764
+ type: 'jkyType',
26765
+ updateGoodsHandle: kmkfUtils.updateJkyGoodsHandle,
26766
+ selectListReturn: 'jkySelectListReturn',
26767
+ selectList: 'jkySelectList',
26768
+ reissueSelectList: 'jkyReissueSelectList',
26769
+ reissueSelectListReturn: 'jkyReissueSelectListReturn',
26770
+ reissueDeleteGood: 'jkyReissueDeleteGood',
26771
+ changeShopCode: 'jkyChangeShopCode',
26772
+ reissueType: 'jkyReissueType',
26773
+ returnType: 'jkyReturnType',
26774
+ returnSelectListReturn: 'jkyReturnSelectListReturn',
26775
+ returnSelectList: 'jkyReturnSelectList',
26776
+ deleteGood: 'jkyDeleteGood',
26777
+ returnDeleteGood: 'jkyReturnDeleteGood',
26778
+ exchangeDeleteGood: 'jkyExchangeDeleteGood'
26779
+ },
26780
+ getOrderList: jkyUtils.getJkyOrderListSingleton
26781
+ },
25405
26782
  WDT_AFTERSALE_GOODS: {
25406
26783
  type: 'wdtAftersale',
25407
26784
  key: 'wdtAftersaleGoods',
@@ -25433,7 +26810,7 @@ var componentMap$2 = {
25433
26810
  }
25434
26811
  };
25435
26812
  var CommonGoods = function CommonGoods(props) {
25436
- var _componentMap$compTyp5, _withInfo$current3, _withInfo$current4, _componentMap$compTyp7;
26813
+ var _withInfo$current3, _withInfo$current4, _componentMap$compTyp6;
25437
26814
  var value = props.value,
25438
26815
  disabled = props.disabled,
25439
26816
  onChange = props.onChange,
@@ -25449,6 +26826,10 @@ var CommonGoods = function CommonGoods(props) {
25449
26826
  _useState2 = _slicedToArray(_useState, 2),
25450
26827
  tableSelect = _useState2[0],
25451
26828
  setTableSelect = _useState2[1];
26829
+ var _useState3 = React.useState([]),
26830
+ _useState4 = _slicedToArray(_useState3, 2),
26831
+ originDataSource = _useState4[0],
26832
+ setOriginDataSource = _useState4[1];
25452
26833
  var withInfo = React.useRef(null);
25453
26834
  var valueRef = React.useRef(null);
25454
26835
  var tokens = React.useRef([]);
@@ -25460,10 +26841,93 @@ var CommonGoods = function CommonGoods(props) {
25460
26841
  compType.indexOf('WDT') > -1 && getWdtOrderList(value === null || value === void 0 ? void 0 : value.orderNo);
25461
26842
  }
25462
26843
  }, [value]);
26844
+ var sysItemIdMap = React.useMemo(function () {
26845
+ var map = {};
26846
+ if (compType.indexOf('KM') > -1) {
26847
+ var _value$kmGoods, _value$kmGoods$filter;
26848
+ value === null || value === void 0 ? void 0 : (_value$kmGoods = value.kmGoods) === null || _value$kmGoods === void 0 ? void 0 : (_value$kmGoods$filter = _value$kmGoods.filter(function (item) {
26849
+ return item === null || item === void 0 ? void 0 : item.sysItemId;
26850
+ })) === null || _value$kmGoods$filter === void 0 ? void 0 : _value$kmGoods$filter.forEach(function (item) {
26851
+ var key = item.sysSkuId == '-1' ? item.sysItemId : "".concat(item.sysItemId, "-").concat(item.sysSkuId);
26852
+ map[key] = item;
26853
+ });
26854
+ }
26855
+ return map;
26856
+ }, [value === null || value === void 0 ? void 0 : value.kmGoods]);
26857
+ // 用于跟踪已经处理过的 sysItemId,避免重复处理
26858
+ var processedSysItemIdsRef = React.useRef(new Set());
26859
+ React.useEffect(function () {
26860
+ var fetchSupplier = /*#__PURE__*/function () {
26861
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(sysItemIds) {
26862
+ var _currentValue$kmGoods;
26863
+ var needFetchIds, supplierMap, hasChange, currentValue, kmGoods;
26864
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
26865
+ while (1) switch (_context.prev = _context.next) {
26866
+ case 0:
26867
+ if (sysItemIds.length) {
26868
+ _context.next = 2;
26869
+ break;
26870
+ }
26871
+ return _context.abrupt("return");
26872
+ case 2:
26873
+ // 过滤出还没有供应商信息的 sysItemId
26874
+ needFetchIds = sysItemIds.filter(function (id) {
26875
+ var item = sysItemIdMap[id];
26876
+ return item && (!item.supplierCode || !item.supplierName);
26877
+ });
26878
+ if (needFetchIds.length) {
26879
+ _context.next = 5;
26880
+ break;
26881
+ }
26882
+ return _context.abrupt("return");
26883
+ case 5:
26884
+ _context.next = 7;
26885
+ return kmkfUtils.servers.KM.getSupplierSingleton(needFetchIds);
26886
+ case 7:
26887
+ supplierMap = _context.sent;
26888
+ // 检查是否有实际变化,避免不必要的更新
26889
+ hasChange = false;
26890
+ currentValue = valueRef.current;
26891
+ kmGoods = currentValue === null || currentValue === void 0 ? void 0 : (_currentValue$kmGoods = currentValue.kmGoods) === null || _currentValue$kmGoods === void 0 ? void 0 : _currentValue$kmGoods.map(function (item) {
26892
+ var supplierInfo = supplierMap.get(item.sysItemId);
26893
+ var newSupplierCode = supplierInfo === null || supplierInfo === void 0 ? void 0 : supplierInfo.supplierCode;
26894
+ var newSupplierName = supplierInfo === null || supplierInfo === void 0 ? void 0 : supplierInfo.supplierName;
26895
+ // 如果供应商信息有变化,标记需要更新
26896
+ if (newSupplierCode && item.supplierCode !== newSupplierCode || newSupplierName && item.supplierName !== newSupplierName) {
26897
+ hasChange = true;
26898
+ // 标记已处理
26899
+ processedSysItemIdsRef.current.add(item.sysItemId);
26900
+ return _objectSpread2(_objectSpread2({}, item), {}, {
26901
+ supplierCode: newSupplierCode || item.supplierCode,
26902
+ supplierName: newSupplierName || item.supplierName
26903
+ });
26904
+ }
26905
+ return item;
26906
+ }); // 只在有实际变化时才更新
26907
+ if (hasChange && kmGoods) {
26908
+ onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, currentValue), {}, {
26909
+ kmGoods: kmGoods
26910
+ }));
26911
+ }
26912
+ case 12:
26913
+ case "end":
26914
+ return _context.stop();
26915
+ }
26916
+ }, _callee);
26917
+ }));
26918
+ return function fetchSupplier(_x) {
26919
+ return _ref.apply(this, arguments);
26920
+ };
26921
+ }();
26922
+ var sysItemIds = Object.keys(sysItemIdMap);
26923
+ if (sysItemIds === null || sysItemIds === void 0 ? void 0 : sysItemIds.length) {
26924
+ fetchSupplier(sysItemIds);
26925
+ }
26926
+ }, [sysItemIdMap]);
25463
26927
  var getWdtOrderList = /*#__PURE__*/function () {
25464
- var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(orderNo) {
25465
- return _regeneratorRuntime().wrap(function _callee$(_context) {
25466
- while (1) switch (_context.prev = _context.next) {
26928
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(orderNo) {
26929
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
26930
+ while (1) switch (_context2.prev = _context2.next) {
25467
26931
  case 0:
25468
26932
  wdtUtils.getWdtOrderListSingleton(orderNo).then(function (data) {
25469
26933
  var orders = ((data === null || data === void 0 ? void 0 : data.trades) || []).filter(function (trade) {
@@ -25476,12 +26940,12 @@ var CommonGoods = function CommonGoods(props) {
25476
26940
  });
25477
26941
  case 1:
25478
26942
  case "end":
25479
- return _context.stop();
26943
+ return _context2.stop();
25480
26944
  }
25481
- }, _callee);
26945
+ }, _callee2);
25482
26946
  }));
25483
- return function getWdtOrderList(_x) {
25484
- return _ref.apply(this, arguments);
26947
+ return function getWdtOrderList(_x2) {
26948
+ return _ref2.apply(this, arguments);
25485
26949
  };
25486
26950
  }();
25487
26951
  React.useEffect(function () {
@@ -25587,8 +27051,8 @@ var CommonGoods = function CommonGoods(props) {
25587
27051
  mode: isStrict
25588
27052
  }))));
25589
27053
  };
25590
- var getGoodDetails = function getGoodDetails(_ref2) {
25591
- var mode = _ref2.mode;
27054
+ var getGoodDetails = function getGoodDetails(_ref3) {
27055
+ var mode = _ref3.mode;
25592
27056
  var updateHandle = componentMap$2[compType].eventNameMap['updateGoodsHandle'];
25593
27057
  if (!updateHandle) return [];
25594
27058
  var goodDetails = updateHandle((value === null || value === void 0 ? void 0 : value.orders) || [], {
@@ -25601,44 +27065,115 @@ var CommonGoods = function CommonGoods(props) {
25601
27065
  }) : goodDetails;
25602
27066
  };
25603
27067
  // 找到该订单号下所有商品
25604
- var getAllTradeGoodsDetails = function getAllTradeGoodsDetails(_ref3) {
25605
- var mode = _ref3.mode;
25606
- var updateHandle = componentMap$2[compType].eventNameMap['updateGoodsHandle'];
25607
- console.log('value?.allOrders', value, (value === null || value === void 0 ? void 0 : value.allOrders) || []);
25608
- if (!updateHandle) return [];
25609
- var goodDetails = updateHandle((value === null || value === void 0 ? void 0 : value.allOrders) || [], {
25610
- orderBackGoodsLevel: props.orderBackGoodsLevel
25611
- });
25612
- var orderNo = value === null || value === void 0 ? void 0 : value.orderNo;
25613
- return mode ? goodDetails.filter(function (goodItem) {
25614
- var _componentMap$compTyp2;
25615
- return !orderNo || (goodItem === null || goodItem === void 0 ? void 0 : goodItem[(_componentMap$compTyp2 = componentMap$2[compType]) === null || _componentMap$compTyp2 === void 0 ? void 0 : _componentMap$compTyp2.goodDetailOrderNo]) === orderNo;
25616
- }) : goodDetails;
25617
- };
25618
- var selectedGoodsChange = React.useCallback(function (skuList) {
25619
- var _componentMap$compTyp3, _componentMap$compTyp4, _uniqBy;
25620
- var newValue = _objectSpread2({}, value);
25621
- var isStrict = value.isStrict;
25622
- // 原订单商品
25623
- var originTradeGoodList = getAllTradeGoodsDetails({
25624
- mode: isStrict
25625
- }) || [];
25626
- // 当前选中的所有商品【包含了原订单+商品库】
25627
- var currentSelectGoodList = (value === null || value === void 0 ? void 0 : value["".concat(componentMap$2 === null || componentMap$2 === void 0 ? void 0 : (_componentMap$compTyp3 = componentMap$2[compType]) === null || _componentMap$compTyp3 === void 0 ? void 0 : _componentMap$compTyp3.key)]) || [];
25628
- newValue["".concat(componentMap$2 === null || componentMap$2 === void 0 ? void 0 : (_componentMap$compTyp4 = componentMap$2[compType]) === null || _componentMap$compTyp4 === void 0 ? void 0 : _componentMap$compTyp4.key)] = (_uniqBy = lodash.uniqBy(originTradeGoodList.concat(currentSelectGoodList), 'uuid')) === null || _uniqBy === void 0 ? void 0 : _uniqBy.filter(function (item) {
25629
- return skuList.includes(item.uuid);
25630
- });
25631
- onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
25632
- }, [value === null || value === void 0 ? void 0 : value["".concat(componentMap$2 === null || componentMap$2 === void 0 ? void 0 : (_componentMap$compTyp5 = componentMap$2[compType]) === null || _componentMap$compTyp5 === void 0 ? void 0 : _componentMap$compTyp5.key)], value === null || value === void 0 ? void 0 : value.isStrict]);
27068
+ var getAllTradeGoodsDetails = /*#__PURE__*/function () {
27069
+ var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref4) {
27070
+ var mode, updateHandle, goodDetails, orderNo;
27071
+ return _regeneratorRuntime().wrap(function _callee3$(_context3) {
27072
+ while (1) switch (_context3.prev = _context3.next) {
27073
+ case 0:
27074
+ mode = _ref4.mode;
27075
+ updateHandle = componentMap$2[compType].eventNameMap['updateGoodsHandle'];
27076
+ if (updateHandle) {
27077
+ _context3.next = 4;
27078
+ break;
27079
+ }
27080
+ return _context3.abrupt("return", []);
27081
+ case 4:
27082
+ goodDetails = updateHandle((value === null || value === void 0 ? void 0 : value.allOrders) || [], {
27083
+ orderBackGoodsLevel: props.orderBackGoodsLevel
27084
+ });
27085
+ orderNo = value === null || value === void 0 ? void 0 : value.orderNo; // if (['KM_GOODS', 'KM_REISSUE_GOODS'].includes(compType)) {
27086
+ // await getKmSupplier(goodDetails);
27087
+ // }
27088
+ return _context3.abrupt("return", mode ? goodDetails.filter(function (goodItem) {
27089
+ var _componentMap$compTyp2;
27090
+ return !orderNo || (goodItem === null || goodItem === void 0 ? void 0 : goodItem[(_componentMap$compTyp2 = componentMap$2[compType]) === null || _componentMap$compTyp2 === void 0 ? void 0 : _componentMap$compTyp2.goodDetailOrderNo]) === orderNo;
27091
+ }) : goodDetails);
27092
+ case 7:
27093
+ case "end":
27094
+ return _context3.stop();
27095
+ }
27096
+ }, _callee3);
27097
+ }));
27098
+ return function getAllTradeGoodsDetails(_x3) {
27099
+ return _ref5.apply(this, arguments);
27100
+ };
27101
+ }();
27102
+ // 异步获取 originDataSource
27103
+ React.useEffect(function () {
27104
+ var fetchOriginDataSource = /*#__PURE__*/function () {
27105
+ var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
27106
+ var data;
27107
+ return _regeneratorRuntime().wrap(function _callee4$(_context4) {
27108
+ while (1) switch (_context4.prev = _context4.next) {
27109
+ case 0:
27110
+ _context4.next = 2;
27111
+ return getAllTradeGoodsDetails({
27112
+ mode: value === null || value === void 0 ? void 0 : value.isStrict
27113
+ });
27114
+ case 2:
27115
+ data = _context4.sent;
27116
+ setOriginDataSource(Array.isArray(data) ? data : []);
27117
+ case 4:
27118
+ case "end":
27119
+ return _context4.stop();
27120
+ }
27121
+ }, _callee4);
27122
+ }));
27123
+ return function fetchOriginDataSource() {
27124
+ return _ref6.apply(this, arguments);
27125
+ };
27126
+ }();
27127
+ fetchOriginDataSource();
27128
+ }, [value === null || value === void 0 ? void 0 : value.allOrders, value === null || value === void 0 ? void 0 : value.isStrict, value === null || value === void 0 ? void 0 : value.orderNo, compType]);
27129
+ var selectedGoodsChange = /*#__PURE__*/function () {
27130
+ var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(skuList) {
27131
+ var _valueRef$current9, _componentMap$compTyp3, _componentMap$compTyp4, _uniqBy;
27132
+ var newValue, isStrict, originTradeGoodList, currentSelectGoodList;
27133
+ return _regeneratorRuntime().wrap(function _callee5$(_context5) {
27134
+ while (1) switch (_context5.prev = _context5.next) {
27135
+ case 0:
27136
+ newValue = _objectSpread2({}, valueRef.current);
27137
+ isStrict = valueRef.current.isStrict; // 原订单商品
27138
+ _context5.next = 4;
27139
+ return getAllTradeGoodsDetails({
27140
+ mode: isStrict
27141
+ });
27142
+ case 4:
27143
+ _context5.t0 = _context5.sent;
27144
+ if (_context5.t0) {
27145
+ _context5.next = 7;
27146
+ break;
27147
+ }
27148
+ _context5.t0 = [];
27149
+ case 7:
27150
+ originTradeGoodList = _context5.t0;
27151
+ // 当前选中的所有商品【包含了原订单+商品库】
27152
+ currentSelectGoodList = ((_valueRef$current9 = valueRef.current) === null || _valueRef$current9 === void 0 ? void 0 : _valueRef$current9["".concat(componentMap$2 === null || componentMap$2 === void 0 ? void 0 : (_componentMap$compTyp3 = componentMap$2[compType]) === null || _componentMap$compTyp3 === void 0 ? void 0 : _componentMap$compTyp3.key)]) || [];
27153
+ newValue["".concat(componentMap$2 === null || componentMap$2 === void 0 ? void 0 : (_componentMap$compTyp4 = componentMap$2[compType]) === null || _componentMap$compTyp4 === void 0 ? void 0 : _componentMap$compTyp4.key)] = (_uniqBy = lodash.uniqBy(originTradeGoodList.concat(currentSelectGoodList), 'uuid')) === null || _uniqBy === void 0 ? void 0 : _uniqBy.filter(function (item) {
27154
+ return skuList.includes(item.uuid);
27155
+ });
27156
+ onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
27157
+ case 11:
27158
+ case "end":
27159
+ return _context5.stop();
27160
+ }
27161
+ }, _callee5);
27162
+ }));
27163
+ return function selectedGoodsChange(_x4) {
27164
+ return _ref7.apply(this, arguments);
27165
+ };
27166
+ }();
25633
27167
  // 商品信息组件暂存后 重新编辑,此时需要重新获取订单下所有系统自订单的商品信息
25634
27168
  var getDataSourceAsync = function getDataSourceAsync() {
25635
- var _componentMap$compTyp6;
25636
- return (value === null || value === void 0 ? void 0 : value.orderNo) ? (_componentMap$compTyp6 = componentMap$2[compType]) === null || _componentMap$compTyp6 === void 0 ? void 0 : _componentMap$compTyp6.getOrderList(value === null || value === void 0 ? void 0 : value.orderNo).then(function (data) {
27169
+ var _componentMap$compTyp5;
27170
+ return (value === null || value === void 0 ? void 0 : value.orderNo) ? (_componentMap$compTyp5 = componentMap$2[compType]) === null || _componentMap$compTyp5 === void 0 ? void 0 : _componentMap$compTyp5.getOrderList(value === null || value === void 0 ? void 0 : value.orderNo).then(function (data) {
25637
27171
  var list = processAllOrders({
25638
27172
  data: data,
25639
27173
  orderNo: value === null || value === void 0 ? void 0 : value.orderNo,
25640
27174
  type: compType
25641
27175
  });
27176
+ console.log('getDataSourceAsync', list);
25642
27177
  onChange(_objectSpread2(_objectSpread2({}, valueRef.current), {}, {
25643
27178
  allOrders: list || []
25644
27179
  }));
@@ -25666,11 +27201,9 @@ var CommonGoods = function CommonGoods(props) {
25666
27201
  isStrict: value === null || value === void 0 ? void 0 : value.isStrict,
25667
27202
  systemOrders: value === null || value === void 0 ? void 0 : value.allOrders,
25668
27203
  selectedSystemOrders: value === null || value === void 0 ? void 0 : value.orders,
25669
- showChangeBtn: (_componentMap$compTyp7 = componentMap$2[compType]) === null || _componentMap$compTyp7 === void 0 ? void 0 : _componentMap$compTyp7.showChangeBtn,
27204
+ showChangeBtn: (_componentMap$compTyp6 = componentMap$2[compType]) === null || _componentMap$compTyp6 === void 0 ? void 0 : _componentMap$compTyp6.showChangeBtn,
25670
27205
  tradeGoods: {
25671
- originDataSource: getAllTradeGoodsDetails({
25672
- mode: value === null || value === void 0 ? void 0 : value.isStrict
25673
- }),
27206
+ originDataSource: originDataSource,
25674
27207
  getDataSourceAsync: getDataSourceAsync,
25675
27208
  selectedGoodsChange: selectedGoodsChange
25676
27209
  }
@@ -26446,12 +27979,95 @@ var PublicReissue = function PublicReissue(props) {
26446
27979
  mode: mode
26447
27980
  }))));
26448
27981
  };
26449
- var getGoodDetails = function getGoodDetails(_ref4) {
27982
+ var sysItemIdMap = React.useMemo(function () {
27983
+ var map = {};
27984
+ if (type === 'KM_REISSUE_GOODS') {
27985
+ var _value$kmReissueGoods, _value$kmReissueGoods2;
27986
+ value === null || value === void 0 ? void 0 : (_value$kmReissueGoods = value.kmReissueGoods) === null || _value$kmReissueGoods === void 0 ? void 0 : (_value$kmReissueGoods2 = _value$kmReissueGoods.filter(function (item) {
27987
+ return item === null || item === void 0 ? void 0 : item.sysItemId;
27988
+ })) === null || _value$kmReissueGoods2 === void 0 ? void 0 : _value$kmReissueGoods2.forEach(function (item) {
27989
+ var key = item.sysSkuId == '-1' ? item.sysItemId : "".concat(item.sysItemId, "-").concat(item.sysSkuId);
27990
+ map[key] = item;
27991
+ });
27992
+ }
27993
+ return map;
27994
+ }, [value === null || value === void 0 ? void 0 : value.kmReissueGoods]);
27995
+ // 用于跟踪已经处理过的 sysItemId,避免重复处理
27996
+ var processedSysItemIdsRef = React.useRef(new Set());
27997
+ React.useEffect(function () {
27998
+ var fetchSupplier = /*#__PURE__*/function () {
27999
+ var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(sysItemIds) {
28000
+ var _currentValue$kmReiss;
28001
+ var needFetchIds, supplierMap, hasChange, currentValue, kmReissueGoods;
28002
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
28003
+ while (1) switch (_context2.prev = _context2.next) {
28004
+ case 0:
28005
+ if (sysItemIds.length) {
28006
+ _context2.next = 2;
28007
+ break;
28008
+ }
28009
+ return _context2.abrupt("return");
28010
+ case 2:
28011
+ // 过滤出还没有供应商信息的 sysItemId
28012
+ needFetchIds = sysItemIds.filter(function (id) {
28013
+ var item = sysItemIdMap[id];
28014
+ return item && (!item.supplierCode || !item.supplierName);
28015
+ });
28016
+ if (needFetchIds.length) {
28017
+ _context2.next = 5;
28018
+ break;
28019
+ }
28020
+ return _context2.abrupt("return");
28021
+ case 5:
28022
+ _context2.next = 7;
28023
+ return kmkfUtils.servers.KM.getSupplierSingleton(needFetchIds);
28024
+ case 7:
28025
+ supplierMap = _context2.sent;
28026
+ // 检查是否有实际变化,避免不必要的更新
28027
+ hasChange = false;
28028
+ currentValue = valueRef.current;
28029
+ kmReissueGoods = currentValue === null || currentValue === void 0 ? void 0 : (_currentValue$kmReiss = currentValue.kmReissueGoods) === null || _currentValue$kmReiss === void 0 ? void 0 : _currentValue$kmReiss.map(function (item) {
28030
+ var supplierInfo = supplierMap.get(item.sysItemId);
28031
+ var newSupplierCode = supplierInfo === null || supplierInfo === void 0 ? void 0 : supplierInfo.supplierCode;
28032
+ var newSupplierName = supplierInfo === null || supplierInfo === void 0 ? void 0 : supplierInfo.supplierName;
28033
+ // 如果供应商信息有变化,标记需要更新
28034
+ if (newSupplierCode && item.supplierCode !== newSupplierCode || newSupplierName && item.supplierName !== newSupplierName) {
28035
+ hasChange = true;
28036
+ // 标记已处理
28037
+ processedSysItemIdsRef.current.add(item.sysItemId);
28038
+ return _objectSpread2(_objectSpread2({}, item), {}, {
28039
+ supplierCode: newSupplierCode || item.supplierCode,
28040
+ supplierName: newSupplierName || item.supplierName
28041
+ });
28042
+ }
28043
+ return item;
28044
+ }); // 只在有实际变化时才更新
28045
+ if (hasChange && kmReissueGoods) {
28046
+ onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, currentValue), {}, {
28047
+ kmReissueGoods: kmReissueGoods
28048
+ }));
28049
+ }
28050
+ case 12:
28051
+ case "end":
28052
+ return _context2.stop();
28053
+ }
28054
+ }, _callee2);
28055
+ }));
28056
+ return function fetchSupplier(_x2) {
28057
+ return _ref4.apply(this, arguments);
28058
+ };
28059
+ }();
28060
+ var sysItemIds = Object.keys(sysItemIdMap);
28061
+ if (sysItemIds === null || sysItemIds === void 0 ? void 0 : sysItemIds.length) {
28062
+ fetchSupplier(sysItemIds);
28063
+ }
28064
+ }, [sysItemIdMap]);
28065
+ var getGoodDetails = function getGoodDetails(_ref5) {
26450
28066
  var _typeMap$type18, _typeMap$type19, _value$typeMap$type$s6, _typeMap$type20, _typeMap$type21, _typeMap$type22, _typeMap$type23, _typeMap$type24;
26451
- var mode = _ref4.mode,
26452
- sysOrderNo = _ref4.sysOrderNo,
26453
- _ref4$isAllOrders = _ref4.isAllOrders,
26454
- isAllOrders = _ref4$isAllOrders === void 0 ? false : _ref4$isAllOrders;
28067
+ var mode = _ref5.mode,
28068
+ sysOrderNo = _ref5.sysOrderNo,
28069
+ _ref5$isAllOrders = _ref5.isAllOrders,
28070
+ isAllOrders = _ref5$isAllOrders === void 0 ? false : _ref5$isAllOrders;
26455
28071
  var systemOrder = value === null || value === void 0 ? void 0 : value[(_typeMap$type18 = typeMap$2[type]) === null || _typeMap$type18 === void 0 ? void 0 : _typeMap$type18.systemOrder];
26456
28072
  var systemOrderNo = sysOrderNo !== null && sysOrderNo !== void 0 ? sysOrderNo : value === null || value === void 0 ? void 0 : value[(_typeMap$type19 = typeMap$2[type]) === null || _typeMap$type19 === void 0 ? void 0 : _typeMap$type19.systemOrderNo];
26457
28073
  var order = systemOrderNo && ((systemOrder === null || systemOrder === void 0 ? void 0 : systemOrder.orders) || []).find(function (order) {
@@ -27363,7 +28979,7 @@ var MsgStatus = function MsgStatus(props) {
27363
28979
  onClick: function onClick() {
27364
28980
  return setChangeIndex(index);
27365
28981
  }
27366
- }, kmkfUtils.msgTypeCh[key], item.ruleName);
28982
+ }, kmkfUtils.msgTypeCh[key] || key, item.ruleName);
27367
28983
  }))) : null, type === 1 ? /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.Space, null, /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2(_objectSpread2({}, other), {}, {
27368
28984
  showSearch: true,
27369
28985
  value: (_value$changeIndex = value[changeIndex]) === null || _value$changeIndex === void 0 ? void 0 : _value$changeIndex.status,
@@ -27941,7 +29557,7 @@ var GyReissue = function GyReissue(props) {
27941
29557
  span: 12
27942
29558
  },
27943
29559
  sm: {
27944
- span: 6
29560
+ span: 4
27945
29561
  }
27946
29562
  }, /*#__PURE__*/React__default['default'].createElement(antd.Cascader, {
27947
29563
  style: {
@@ -28244,7 +29860,7 @@ var GyReturnGoods = function GyReturnGoods(props) {
28244
29860
  span: 12
28245
29861
  },
28246
29862
  sm: {
28247
- span: 6
29863
+ span: 4
28248
29864
  }
28249
29865
  }, /*#__PURE__*/React__default['default'].createElement(antd.Cascader, {
28250
29866
  style: {
@@ -28917,6 +30533,7 @@ var SYSTEM_ORDER_COLUMNS_MAP = {
28917
30533
  GY_SYSTEM_ORDER: kmkfUtils.GY_SYSTEM_ORDER_CONFIG.columns,
28918
30534
  JST_SYSTEM_ORDER: kmkfUtils.JST_SYSTEM_ORDER_CONFIG.columns,
28919
30535
  JY_SYSTEM_ORDER: kmkfUtils.JY_SYSTEM_ORDER_CONFIG.columns,
30536
+ JKY_SYSTEM_ORDER: kmkfUtils.JKY_SYSTEM_ORDER_CONFIG.columns,
28920
30537
  WDT_RETURN_BILL_NO: kmkfUtils.WDT_RETURN_BILL_NO_CONFIG.columns
28921
30538
  };
28922
30539
 
@@ -28999,6 +30616,7 @@ exports.erpColumnsMap = erpColumnsMap;
28999
30616
  exports.erpFormValidator = erpFormValidator;
29000
30617
  exports.erpModalColumnsMap = index$1;
29001
30618
  exports.getGyColumns = getColumns$4;
30619
+ exports.getJkyColumns = getColumns$9;
29002
30620
  exports.getJstColumns = getColumns$5;
29003
30621
  exports.getJyColumns = getColumns$7;
29004
30622
  exports.getKmColumns = getColumns$6;
@@ -29007,3 +30625,4 @@ exports.getWdtColumns = getColumns$2;
29007
30625
  exports.getWlnColumns = getColumns$3;
29008
30626
  exports.orderSubFormConstants = orderSubFormConstants;
29009
30627
  exports.renderMap = renderMap;
30628
+ exports.renderSplitMap = renderSplitMap;