@kmkf-fe-packages/basic-components 2.2.39-beta.3 → 2.2.39-beta.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -3,7 +3,7 @@ import { Cascader, DatePicker, Image, InputNumber, Input, Select, Upload, messag
3
3
  import { EyeOutlined, DeleteOutlined, CloseOutlined, PlusSquareOutlined, MinusCircleFilled, PlusCircleFilled, CopyOutlined, CloseCircleOutlined, CaretUpOutlined, UpOutlined, DownOutlined, PlusOutlined, VideoCameraTwoTone } from '@ant-design/icons';
4
4
  import request, { extend as extend$1 } from 'umi-request';
5
5
  import { CopyToClipboard } from 'react-copy-to-clipboard';
6
- import { AddressData, BsAddressData, WdtAddressData, GyAddressData, JstAddressData, request as request$1, ExpressData, isNull, imgResize, uuid, servers, columnsGoodsList, LogisticsAddressData, SendDataCenter, hasAddNullComponent, SUBMIT_TIME_ID, UPGRADE_TIME_ID, FINAL_TIME_ID, CUSTOM_TIME_ID, useStatus, finalFormData, transformList, dataSourceTrans, DATA_SPLIT_COMPONENT_FIELDS_MAP, findLabelBySelectValue, BS_E3_BOOLEAN_STATUS_MAP, filterWdtOrders, WDT_ORDER_TYPE_MAP, tradeStatusMap, filterBsE3Orders, filterGyOrders, GY_DELIVERY_STATE_MAPPING, filterJstOrders, filterJyOrders, JY_ORDER_TYPE_MAP, JY_ORDER_STATUS_MAP, filterKmOrders, getSystemShowHead, getIsPlatformCodesIncludeOrderNos, BS_SYSTEM_ORDER_CONFIG, KM_SYSTEM_ORDER_CONFIG, WLN_SYSTEM_ORDER_CONFIG, WDT_SYSTEM_ORDER_CONFIG, BS_E3_SYSTEM_ORDER_CONFIG, GY_SYSTEM_ORDER_CONFIG, JST_SYSTEM_ORDER_CONFIG, JY_SYSTEM_ORDER_CONFIG, WDT_RETURN_BILL_NO_CONFIG, updateOrderSubFormGoodsHandle, updateWlnGoodsHandle, updateWdtGoodsHandle, updateBsE3GoodsHandle, updateGyGoodsHandle, updateJstGoodsHandle, updateKmGoodsHandle, updateJyGoodsHandle, updateWdtAftersaleGoodsHandle, jstMergeIdenticalGoods, msgTypeCh, pushGyLog, skxSystemOrderBackValues, skxReturnSystemOrderBackValues, formatTrade, updateSkxGoodsHandle, formatReturnTrade, updateSkxReturnGoodsHandle } from '@kmkf-fe-packages/kmkf-utils';
6
+ import { AddressData, BsAddressData, WdtAddressData, GyAddressData, JstAddressData, request as request$1, ExpressData, isNull, imgResize, uuid, servers, columnsGoodsList, LogisticsAddressData, SendDataCenter, hasAddNullComponent, SUBMIT_TIME_ID, UPGRADE_TIME_ID, FINAL_TIME_ID, CUSTOM_TIME_ID, useStatus, finalFormData, transformList, dataSourceTrans, DATA_SPLIT_COMPONENT_FIELDS_MAP, findLabelBySelectValue, BS_E3_BOOLEAN_STATUS_MAP, filterWdtOrders, WDT_ORDER_TYPE_MAP, tradeStatusMap, filterBsE3Orders, filterGyOrders, GY_DELIVERY_STATE_MAPPING, filterJstOrders, filterJyOrders, JY_ORDER_TYPE_MAP, JY_ORDER_STATUS_MAP, filterJkyOrders, JKY_ORDER_TYPE_MAP, JKY_ORDER_STATUS_MAP, filterKmOrders, getSystemShowHead, getIsPlatformCodesIncludeOrderNos, BS_SYSTEM_ORDER_CONFIG, KM_SYSTEM_ORDER_CONFIG, WLN_SYSTEM_ORDER_CONFIG, WDT_SYSTEM_ORDER_CONFIG, BS_E3_SYSTEM_ORDER_CONFIG, GY_SYSTEM_ORDER_CONFIG, JST_SYSTEM_ORDER_CONFIG, JY_SYSTEM_ORDER_CONFIG, JKY_SYSTEM_ORDER_CONFIG, WDT_RETURN_BILL_NO_CONFIG, updateOrderSubFormGoodsHandle, updateWlnGoodsHandle, updateWdtGoodsHandle, updateBsE3GoodsHandle, updateGyGoodsHandle, updateJstGoodsHandle, updateKmGoodsHandle, updateJyGoodsHandle, updateJkyGoodsHandle, updateWdtAftersaleGoodsHandle, jstMergeIdenticalGoods, msgTypeCh, pushGyLog, skxSystemOrderBackValues, skxReturnSystemOrderBackValues, formatTrade, updateSkxGoodsHandle, formatReturnTrade, updateSkxReturnGoodsHandle } from '@kmkf-fe-packages/kmkf-utils';
7
7
  import every from 'lodash/every';
8
8
  import maxBy from 'lodash/maxBy';
9
9
  import { debounce, isNaN as isNaN$1, isNumber as isNumber$1, uniqBy, cloneDeep, difference, differenceWith, isBoolean, isEqual, takeRight, reject as reject$1, intersection, isEmpty } from 'lodash';
@@ -8454,7 +8454,10 @@ var processLogisticsTrajectory = function processLogisticsTrajectory(getValue) {
8454
8454
  var map = subFields.reduce(function (cur, nxt) {
8455
8455
  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))));
8456
8456
  }, {});
8457
- return _defineProperty({}, nex.uniqueKey, map);
8457
+ var mapChild = subFields.reduce(function (cur, nxt) {
8458
+ 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))));
8459
+ }, {});
8460
+ return _objectSpread2(_defineProperty({}, nex.uniqueKey, map), mapChild);
8458
8461
  };
8459
8462
  };
8460
8463
  var processLogisticsTrajectoryMore = function processLogisticsTrajectoryMore(getValue) {
@@ -8478,12 +8481,12 @@ var processItemSelectThird = function processItemSelectThird(getValue) {
8478
8481
  };
8479
8482
  var processEnterPrisePayment = function processEnterPrisePayment(getValue) {
8480
8483
  return function (nex, config) {
8481
- var _ref34;
8484
+ var _ref33;
8482
8485
  var subFields = ['enterprisePaymentAlipayNick', 'enterprisePaymentAlipayNo', 'enterprisePaymentBuyerNick', 'enterprisePaymentBuyerOpenUid', 'enterprisePaymentRefundFee', 'enterprisePaymentStatus', 'enterprisePaymentTid'];
8483
8486
  var map = subFields.reduce(function (cur, nxt) {
8484
8487
  return _objectSpread2(_objectSpread2({}, cur), {}, _defineProperty({}, nxt, getValue("".concat(nex.uniqueKey, "_").concat(nxt))));
8485
8488
  }, {});
8486
- 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;
8489
+ 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;
8487
8490
  };
8488
8491
  };
8489
8492
  var processJstLogistics = function processJstLogistics(getValue) {
@@ -9246,14 +9249,14 @@ var processJstReturnGoods = function processJstReturnGoods(templateColumns) {
9246
9249
  };
9247
9250
  var processLabel = function processLabel(getValue) {
9248
9251
  return function (nex, config) {
9249
- var _ref74;
9250
- 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;
9252
+ var _ref73;
9253
+ 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;
9251
9254
  };
9252
9255
  };
9253
9256
  var processMemberLevel = function processMemberLevel(getValue) {
9254
9257
  return function (nex, config) {
9255
- var _ref75;
9256
- 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;
9258
+ var _ref74;
9259
+ 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;
9257
9260
  };
9258
9261
  };
9259
9262
  var processAfterSalesOrderId = function processAfterSalesOrderId(getValue) {
@@ -9548,7 +9551,6 @@ var FileRender = function FileRender(_ref) {
9548
9551
  cursor: 'pointer'
9549
9552
  },
9550
9553
  onClick: function onClick(e) {
9551
- console.log('onPreview');
9552
9554
  e.preventDefault();
9553
9555
  onPreview(item);
9554
9556
  },
@@ -9644,6 +9646,9 @@ var PictureRender = function PictureRender(_ref2) {
9644
9646
  }));
9645
9647
  }));
9646
9648
  };
9649
+ var LogisticsCompanyRender = function LogisticsCompanyRender(value) {
9650
+ return ExpressData.getInstance().getExpressNameByCode(value) || value;
9651
+ };
9647
9652
  var MultipleSelectRender = function MultipleSelectRender(_ref5) {
9648
9653
  var _ref5$value = _ref5.value,
9649
9654
  value = _ref5$value === void 0 ? [] : _ref5$value;
@@ -9678,6 +9683,16 @@ var renderMap = {
9678
9683
  });
9679
9684
  }
9680
9685
  };
9686
+ var renderSplitMap = {
9687
+ //物流轨迹-物流公司
9688
+ jbCFrJV4m7_trajectoryCompany: function jbCFrJV4m7_trajectoryCompany(value) {
9689
+ return LogisticsCompanyRender(value);
9690
+ },
9691
+ //退货物流-物流公司
9692
+ '0qFEv9GEyd_returnLogisticsCompany': function qFEv9GEyd_returnLogisticsCompany(value) {
9693
+ return LogisticsCompanyRender(value);
9694
+ }
9695
+ };
9681
9696
  var EditPictureRender = function EditPictureRender(_ref6) {
9682
9697
  var _ref6$val = _ref6.val,
9683
9698
  val = _ref6$val === void 0 ? [] : _ref6$val,
@@ -9773,7 +9788,6 @@ var EditFileRender = function EditFileRender(_ref7) {
9773
9788
  var EditRenderMap = {
9774
9789
  INPUT: function INPUT(_ref8) {
9775
9790
  var val = _ref8.val,
9776
- record = _ref8.record,
9777
9791
  index = _ref8.index,
9778
9792
  t = _ref8.t,
9779
9793
  updateHandle = _ref8.updateHandle,
@@ -9802,7 +9816,6 @@ var EditRenderMap = {
9802
9816
  },
9803
9817
  TEXTAREA: function TEXTAREA(_ref9) {
9804
9818
  var val = _ref9.val,
9805
- record = _ref9.record,
9806
9819
  index = _ref9.index,
9807
9820
  t = _ref9.t,
9808
9821
  updateHandle = _ref9.updateHandle,
@@ -9831,7 +9844,6 @@ var EditRenderMap = {
9831
9844
  },
9832
9845
  PICTURE: function PICTURE(_ref10) {
9833
9846
  var val = _ref10.val,
9834
- record = _ref10.record,
9835
9847
  index = _ref10.index,
9836
9848
  t = _ref10.t,
9837
9849
  updateHandle = _ref10.updateHandle,
@@ -9849,7 +9861,6 @@ var EditRenderMap = {
9849
9861
  },
9850
9862
  FILE: function FILE(_ref11) {
9851
9863
  var val = _ref11.val,
9852
- record = _ref11.record,
9853
9864
  index = _ref11.index,
9854
9865
  t = _ref11.t,
9855
9866
  updateHandle = _ref11.updateHandle,
@@ -9867,7 +9878,6 @@ var EditRenderMap = {
9867
9878
  },
9868
9879
  RADIO: function RADIO(_ref12) {
9869
9880
  var val = _ref12.val,
9870
- record = _ref12.record,
9871
9881
  index = _ref12.index,
9872
9882
  t = _ref12.t,
9873
9883
  updateHandle = _ref12.updateHandle,
@@ -9890,7 +9900,6 @@ var EditRenderMap = {
9890
9900
  },
9891
9901
  SELECT: function SELECT(_ref13) {
9892
9902
  var val = _ref13.val,
9893
- record = _ref13.record,
9894
9903
  index = _ref13.index,
9895
9904
  t = _ref13.t,
9896
9905
  updateHandle = _ref13.updateHandle,
@@ -9913,7 +9922,6 @@ var EditRenderMap = {
9913
9922
  },
9914
9923
  CHECKBOX: function CHECKBOX(_ref14) {
9915
9924
  var val = _ref14.val,
9916
- record = _ref14.record,
9917
9925
  index = _ref14.index,
9918
9926
  t = _ref14.t,
9919
9927
  updateHandle = _ref14.updateHandle,
@@ -9935,7 +9943,6 @@ var EditRenderMap = {
9935
9943
  },
9936
9944
  BASIC_MULT_SELECT: function BASIC_MULT_SELECT(_ref15) {
9937
9945
  var val = _ref15.val,
9938
- record = _ref15.record,
9939
9946
  index = _ref15.index,
9940
9947
  t = _ref15.t,
9941
9948
  updateHandle = _ref15.updateHandle,
@@ -9954,6 +9961,57 @@ var EditRenderMap = {
9954
9961
  return updateHandle(e, index, t.key);
9955
9962
  }
9956
9963
  }));
9964
+ },
9965
+ DEFAULT: function DEFAULT(_ref16) {
9966
+ var val = _ref16.val,
9967
+ index = _ref16.index,
9968
+ t = _ref16.t,
9969
+ updateHandle = _ref16.updateHandle,
9970
+ disabled = _ref16.disabled;
9971
+ return !t.isEdit && !disabled ? /*#__PURE__*/React.createElement(Input, {
9972
+ allowClear: true,
9973
+ style: {
9974
+ width: '100%'
9975
+ },
9976
+ value: val,
9977
+ onChange: function onChange(e) {
9978
+ var _e$target3;
9979
+ return updateHandle(e === null || e === void 0 ? void 0 : (_e$target3 = e.target) === null || _e$target3 === void 0 ? void 0 : _e$target3.value, index, t.key);
9980
+ }
9981
+ }) : /*#__PURE__*/React.createElement("div", null, val);
9982
+ }
9983
+ };
9984
+ var EditSplitRenderMap = {
9985
+ jbCFrJV4m7_trajectoryCompany: function jbCFrJV4m7_trajectoryCompany(_ref17) {
9986
+ var val = _ref17.val,
9987
+ index = _ref17.index,
9988
+ t = _ref17.t,
9989
+ updateHandle = _ref17.updateHandle,
9990
+ disabled = _ref17.disabled;
9991
+ return /*#__PURE__*/React.createElement(ApaasLogistics, {
9992
+ value: val,
9993
+ allowClear: true,
9994
+ onChange: function onChange(e) {
9995
+ return updateHandle(e, index, t.key);
9996
+ },
9997
+ disabled: t.isEdit || disabled
9998
+ });
9999
+ },
10000
+ //退货物流-物流公司
10001
+ '0qFEv9GEyd_returnLogisticsCompany': function qFEv9GEyd_returnLogisticsCompany(_ref18) {
10002
+ var val = _ref18.val,
10003
+ index = _ref18.index,
10004
+ t = _ref18.t,
10005
+ updateHandle = _ref18.updateHandle,
10006
+ disabled = _ref18.disabled;
10007
+ return /*#__PURE__*/React.createElement(ApaasLogistics, {
10008
+ value: val,
10009
+ allowClear: true,
10010
+ onChange: function onChange(e) {
10011
+ return updateHandle(e, index, t.key);
10012
+ },
10013
+ disabled: t.isEdit || disabled
10014
+ });
9957
10015
  }
9958
10016
  };
9959
10017
 
@@ -9981,6 +10039,7 @@ function HoverTableRowDeleteIcon(_ref) {
9981
10039
  }
9982
10040
 
9983
10041
  var WidgetMap = {
10042
+ TRADE_ID_INPUT: 'tradeId',
9984
10043
  INPUT: 'input',
9985
10044
  TEXTAREA: 'textarea',
9986
10045
  PICTURE: 'picture',
@@ -10083,7 +10142,6 @@ var SubForm = function SubForm(props) {
10083
10142
  return deleteHandle(record.uuid);
10084
10143
  }
10085
10144
  });
10086
- // return <div style={{ width: 25 }}>{index + 1}</div>;
10087
10145
  }
10088
10146
  }].concat(_toConsumableArray(newTableHeader.map(function (t) {
10089
10147
  return {
@@ -10096,27 +10154,41 @@ var SubForm = function SubForm(props) {
10096
10154
  ellipsis: true,
10097
10155
  width: t.width,
10098
10156
  render: function render(val, record, index) {
10099
- return EditRenderMap[t.workOrderComponentType] ? EditRenderMap[t.workOrderComponentType]({
10100
- val: val,
10101
- record: record,
10102
- index: index,
10103
- t: t,
10104
- updateHandle: updateHandle,
10105
- disabled: disabled,
10106
- componentDto: componentDtoList.find(function (item) {
10107
- return item.uniqueKey === t.key;
10108
- }),
10109
- platform: platform
10110
- }) : /*#__PURE__*/React.createElement(Input, {
10111
- style: {
10112
- width: '100%'
10113
- },
10114
- value: val,
10115
- onChange: function onChange(e) {
10116
- var _e$target;
10117
- 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);
10118
- }
10119
- });
10157
+ if (EditRenderMap[t.workOrderComponentType]) {
10158
+ return EditRenderMap[t.workOrderComponentType]({
10159
+ val: val,
10160
+ record: record,
10161
+ index: index,
10162
+ t: t,
10163
+ updateHandle: updateHandle,
10164
+ disabled: disabled,
10165
+ componentDto: componentDtoList.find(function (item) {
10166
+ return item.uniqueKey === t.key;
10167
+ }),
10168
+ platform: platform
10169
+ });
10170
+ } else if (EditSplitRenderMap[t.key]) {
10171
+ return EditSplitRenderMap[t.key]({
10172
+ val: val,
10173
+ index: index,
10174
+ t: t,
10175
+ updateHandle: updateHandle,
10176
+ disabled: disabled
10177
+ });
10178
+ } else {
10179
+ return EditRenderMap['DEFAULT']({
10180
+ val: val,
10181
+ record: record,
10182
+ index: index,
10183
+ t: t,
10184
+ updateHandle: updateHandle,
10185
+ disabled: disabled,
10186
+ componentDto: componentDtoList.find(function (item) {
10187
+ return item.uniqueKey === t.key;
10188
+ }),
10189
+ platform: platform
10190
+ });
10191
+ }
10120
10192
  }
10121
10193
  };
10122
10194
  })), [disabled ? {} : {
@@ -10166,6 +10238,10 @@ var SubForm = function SubForm(props) {
10166
10238
  item.render = function (val) {
10167
10239
  return renderMap[t.workOrderComponentType](val, platform);
10168
10240
  };
10241
+ } else if (renderSplitMap[t.key]) {
10242
+ item.render = function (val) {
10243
+ return renderSplitMap[t.key](val);
10244
+ };
10169
10245
  }
10170
10246
  return item;
10171
10247
  })));
@@ -10180,7 +10256,11 @@ var SubForm = function SubForm(props) {
10180
10256
  if (['PICTURE', 'FILE', 'BASIC_MULT_SELECT', 'CHECKBOX'].includes(next.workOrderComponentType)) {
10181
10257
  item.defaultValue = [];
10182
10258
  }
10183
- prv["".concat(next.key, "_").concat(WidgetMap[next.workOrderComponentType])] = item;
10259
+ if (!['LOGISTICS_TRAJECTORY', 'RETURN_LOGISTICS_SELECT'].includes(next.workOrderComponentType)) {
10260
+ prv["".concat(next.key, "_").concat(WidgetMap[next.workOrderComponentType])] = item;
10261
+ } else {
10262
+ prv["".concat(next.key)] = item;
10263
+ }
10184
10264
  return prv;
10185
10265
  }, {});
10186
10266
  }, [newTableHeader]);
@@ -10197,7 +10277,7 @@ var SubForm = function SubForm(props) {
10197
10277
  }).map(function (item) {
10198
10278
  return {
10199
10279
  label: item.name,
10200
- value: "".concat(item.key, "_").concat(WidgetMap[item.workOrderComponentType])
10280
+ value: WidgetMap[item.workOrderComponentType] ? "".concat(item.key, "_").concat(WidgetMap[item.workOrderComponentType]) : item.key
10201
10281
  };
10202
10282
  });
10203
10283
  setSelectKey(options === null || options === void 0 ? void 0 : (_options$ = options[0]) === null || _options$ === void 0 ? void 0 : _options$.value);
@@ -10239,6 +10319,7 @@ var SubForm = function SubForm(props) {
10239
10319
  _ref2$componentList,
10240
10320
  componentList,
10241
10321
  params,
10322
+ queryComponents,
10242
10323
  res,
10243
10324
  data,
10244
10325
  success,
@@ -10271,15 +10352,25 @@ var SubForm = function SubForm(props) {
10271
10352
  }]
10272
10353
  };
10273
10354
  if (selectKey && inputValue) {
10274
- params.queryComponents = [{
10355
+ queryComponents = [{
10275
10356
  key: 'flowStatus',
10276
10357
  symbol: 'in',
10277
10358
  value: flowStatus
10278
- }, {
10279
- key: selectKey,
10280
- symbol: 'in',
10281
- value: [inputValue]
10282
10359
  }];
10360
+ if (['0qFEv9GEyd_returnLogisticsCode', 'jbCFrJV4m7_trajectoryCode'].includes(selectKey)) {
10361
+ queryComponents.push({
10362
+ key: selectKey,
10363
+ symbol: 'like',
10364
+ value: inputValue
10365
+ });
10366
+ } else {
10367
+ queryComponents.push({
10368
+ key: selectKey,
10369
+ symbol: 'in',
10370
+ value: [inputValue]
10371
+ });
10372
+ }
10373
+ params.queryComponents = queryComponents;
10283
10374
  }
10284
10375
  _context.next = 7;
10285
10376
  return extendRequest('/qy/view/workOrderList', {
@@ -10475,7 +10566,21 @@ var SubForm = function SubForm(props) {
10475
10566
  placement: "bottom",
10476
10567
  visible: open,
10477
10568
  onVisibleChange: handleOpenChange
10478
- }, /*#__PURE__*/React.createElement(Input, {
10569
+ }, ['0qFEv9GEyd_returnLogisticsCompany', 'jbCFrJV4m7_trajectoryCompany'].includes(selectKey) ? /*#__PURE__*/React.createElement(ApaasLogistics, {
10570
+ value: undefined,
10571
+ onChange: function onChange(val) {
10572
+ onChangeInput(val);
10573
+ },
10574
+ placeholder: "\u8BF7\u9009\u62E9\u7269\u6D41\u516C\u53F8",
10575
+ showSearch: true,
10576
+ allowClear: true,
10577
+ style: {
10578
+ width: '180px'
10579
+ },
10580
+ filterOption: function filterOption(input, option) {
10581
+ return option.label.includes(input);
10582
+ }
10583
+ }) : /*#__PURE__*/React.createElement(Input, {
10479
10584
  placeholder: "\u8F93\u5165\u5173\u952E\u8BCD\u67E5\u8BE2",
10480
10585
  allowClear: true,
10481
10586
  onChange: function onChange(e) {
@@ -13843,7 +13948,7 @@ var jstGoods = function jstGoods(props) {
13843
13948
  changeIndex = _useState2[0],
13844
13949
  setChangeIndex = _useState2[1]; //选中的包裹
13845
13950
  var sendOptions = SendDataCenter.getInstance(platformType).getSendData();
13846
- var isSelectName = ['wdt', 'bsE3', 'km', 'gy', 'jst', 'jy'].includes(platformType);
13951
+ var isSelectName = ['wdt', 'bsE3', 'km', 'gy', 'jst', 'jy', 'jky'].includes(platformType);
13847
13952
  var expressDateInstance = ExpressData.getInstance(platformType);
13848
13953
  var isSendGoodSavedId = isSelectName && !['jst'].includes(platformType);
13849
13954
  useEffect(function () {
@@ -14097,7 +14202,7 @@ var renderTextEllipsis = function renderTextEllipsis(value) {
14097
14202
  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";
14098
14203
  styleInject(css_248z$b);
14099
14204
 
14100
- 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";
14205
+ 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";
14101
14206
  styleInject(css_248z$c);
14102
14207
 
14103
14208
  var _excluded$d = ["shopId"];
@@ -15213,6 +15318,223 @@ var jyColumns = [{
15213
15318
  }
15214
15319
  }];
15215
15320
 
15321
+ var jkyColumns = [{
15322
+ dataIndex: 'goodsNo',
15323
+ title: "\u8D27\u54C1\u7F16\u53F7",
15324
+ align: 'center',
15325
+ ellipsis: true,
15326
+ width: 150,
15327
+ render: renderTextEllipsis
15328
+ }, {
15329
+ dataIndex: 'goodsName',
15330
+ title: "\u8D27\u54C1\u540D\u79F0",
15331
+ align: 'center',
15332
+ ellipsis: true,
15333
+ width: 150,
15334
+ render: renderTextEllipsis
15335
+ }, {
15336
+ dataIndex: 'goodsId',
15337
+ title: "\u8D27\u54C1ID",
15338
+ align: 'center',
15339
+ ellipsis: true,
15340
+ width: 150,
15341
+ render: renderTextEllipsis
15342
+ }, {
15343
+ dataIndex: 'barcode',
15344
+ title: "\u8D27\u54C1\u6761\u7801",
15345
+ align: 'center',
15346
+ ellipsis: true,
15347
+ width: 150,
15348
+ render: renderTextEllipsis
15349
+ }, {
15350
+ dataIndex: 'specName',
15351
+ title: "\u89C4\u683C\u540D\u79F0",
15352
+ align: 'center',
15353
+ ellipsis: true,
15354
+ width: 150,
15355
+ render: renderTextEllipsis
15356
+ }, {
15357
+ dataIndex: 'specId',
15358
+ title: "\u89C4\u683CID",
15359
+ align: 'center',
15360
+ ellipsis: true,
15361
+ width: 150,
15362
+ render: renderTextEllipsis
15363
+ }, {
15364
+ dataIndex: 'skuImgUrl',
15365
+ title: "\u89C4\u683C\u56FE\u7247",
15366
+ align: 'center',
15367
+ ellipsis: true,
15368
+ width: 150,
15369
+ render: function render(val) {
15370
+ return /*#__PURE__*/React.createElement("img", {
15371
+ style: {
15372
+ width: '30px',
15373
+ height: '30px',
15374
+ objectFit: 'contain'
15375
+ },
15376
+ src: val
15377
+ });
15378
+ }
15379
+ }, {
15380
+ dataIndex: 'sellCount',
15381
+ title: "\u6570\u91CF",
15382
+ width: 100,
15383
+ render: function render(val) {
15384
+ return /*#__PURE__*/React.createElement("span", null, val);
15385
+ }
15386
+ }, {
15387
+ dataIndex: 'actualSendCount',
15388
+ title: "\u5B9E\u53D1\u6570\u91CF",
15389
+ width: 150,
15390
+ render: renderTextEllipsis
15391
+ }, {
15392
+ dataIndex: 'sellPrice',
15393
+ title: "\u5355\u4EF7",
15394
+ width: 150,
15395
+ render: function render(val) {
15396
+ return val || val === 0 ? Number(val).toFixed(2) : '';
15397
+ }
15398
+ }, {
15399
+ dataIndex: 'sellTotal',
15400
+ title: "\u91D1\u989D",
15401
+ width: 150
15402
+ }, {
15403
+ dataIndex: 'discountTotal',
15404
+ title: "\u62B5\u6263\u91D1\u989D",
15405
+ width: 150
15406
+ }, {
15407
+ dataIndex: 'shareFavourableFee',
15408
+ title: "\u5206\u644A\u91D1\u989D",
15409
+ width: 150
15410
+ }, {
15411
+ dataIndex: 'shareFavourableAfterFee',
15412
+ title: "\u5206\u644A\u540E\u91D1\u989D",
15413
+ width: 150
15414
+ }, {
15415
+ dataIndex: 'customerPrice',
15416
+ title: "\u7EC8\u7AEF\u9500\u552E\u5355\u4EF7",
15417
+ width: 150
15418
+ }, {
15419
+ dataIndex: 'customerTotal',
15420
+ title: "\u7EC8\u7AEF\u9500\u552E\u91D1\u989D",
15421
+ width: 150
15422
+ }, {
15423
+ dataIndex: 'divideSellTotal',
15424
+ title: "\u5B9E\u4ED8\u91D1\u989D",
15425
+ width: 150
15426
+ }, {
15427
+ dataIndex: 'isGift',
15428
+ title: "\u662F\u5426\u8D60\u54C1",
15429
+ width: 150,
15430
+ render: function render(val) {
15431
+ return /*#__PURE__*/React.createElement("span", null, val === '1' ? '是' : '否');
15432
+ }
15433
+ }, {
15434
+ dataIndex: 'isFit',
15435
+ title: "\u662F\u5426\u7EC4\u5408\u88C5",
15436
+ width: 150,
15437
+ render: function render(val) {
15438
+ return /*#__PURE__*/React.createElement("span", null, val === '1' ? '是' : '否');
15439
+ }
15440
+ }, {
15441
+ dataIndex: 'isPresell',
15442
+ title: "\u662F\u5426\u9884\u552E\u8D27\u54C1",
15443
+ width: 150,
15444
+ render: function render(val) {
15445
+ return /*#__PURE__*/React.createElement("span", null, val === '1' ? '是' : '否');
15446
+ }
15447
+ }, {
15448
+ dataIndex: 'brandName',
15449
+ title: "\u54C1\u724C",
15450
+ align: 'center',
15451
+ ellipsis: true,
15452
+ width: 200,
15453
+ render: renderTextEllipsis
15454
+ }, {
15455
+ dataIndex: 'cateName',
15456
+ title: "\u8D27\u54C1\u7C7B\u522B",
15457
+ align: 'center',
15458
+ ellipsis: true,
15459
+ width: 150,
15460
+ render: renderTextEllipsis
15461
+ }, {
15462
+ dataIndex: 'goodsTags',
15463
+ title: "\u8D27\u54C1\u6807\u7B7E",
15464
+ align: 'center',
15465
+ ellipsis: true,
15466
+ width: 250,
15467
+ render: renderTextEllipsis
15468
+ }, {
15469
+ dataIndex: 'goodsMemo',
15470
+ title: "\u8D27\u54C1\u5907\u6CE8",
15471
+ align: 'center',
15472
+ ellipsis: true,
15473
+ width: 250,
15474
+ render: renderTextEllipsis
15475
+ }, {
15476
+ dataIndex: 'tradeGoodsNo',
15477
+ title: "\u4EA4\u6613\u8D27\u54C1\u7F16\u53F7",
15478
+ align: 'center',
15479
+ ellipsis: true,
15480
+ width: 250,
15481
+ render: renderTextEllipsis
15482
+ }, {
15483
+ dataIndex: 'tradeGoodsName',
15484
+ title: "\u4EA4\u6613\u8D27\u54C1\u540D\u79F0",
15485
+ ellipsis: true,
15486
+ width: 250,
15487
+ render: renderTextEllipsis
15488
+ }, {
15489
+ dataIndex: 'tradeGoodsSpec',
15490
+ title: "\u4EA4\u6613\u89C4\u683C\u540D\u79F0",
15491
+ ellipsis: true,
15492
+ width: 250,
15493
+ render: renderTextEllipsis
15494
+ }, {
15495
+ dataIndex: 'sourceSubtradeNo',
15496
+ title: "\u7F51\u5E97\u5B50\u8BA2\u5355\u53F7",
15497
+ ellipsis: true,
15498
+ width: 250,
15499
+ render: renderTextEllipsis
15500
+ }, {
15501
+ dataIndex: 'platGoodsId',
15502
+ title: "\u5E73\u53F0\u5546\u54C1ID",
15503
+ ellipsis: true,
15504
+ width: 250,
15505
+ render: renderTextEllipsis
15506
+ }, {
15507
+ dataIndex: 'subTradeId',
15508
+ title: "\u5546\u54C1\u660E\u7EC6ID",
15509
+ ellipsis: true,
15510
+ width: 250,
15511
+ render: renderTextEllipsis
15512
+ }, {
15513
+ dataIndex: 'batchNo',
15514
+ title: "\u6279\u6B21\u53F7",
15515
+ ellipsis: true,
15516
+ width: 250,
15517
+ render: renderTextEllipsis
15518
+ }, {
15519
+ dataIndex: 'sendCount',
15520
+ title: "\u6279\u6B21\u6570\u91CF",
15521
+ ellipsis: true,
15522
+ width: 250,
15523
+ render: renderTextEllipsis
15524
+ }, {
15525
+ dataIndex: 'productDate',
15526
+ title: "\u751F\u4EA7\u65E5\u671F",
15527
+ ellipsis: true,
15528
+ width: 250,
15529
+ render: renderTextEllipsis
15530
+ }, {
15531
+ dataIndex: 'expireDate',
15532
+ title: "\u5230\u671F\u65E5\u671F",
15533
+ ellipsis: true,
15534
+ width: 250,
15535
+ render: renderTextEllipsis
15536
+ }];
15537
+
15216
15538
  var getColumnsMap = function getColumnsMap() {
15217
15539
  return cloneDeep({
15218
15540
  gy: gyColumns,
@@ -15220,7 +15542,8 @@ var getColumnsMap = function getColumnsMap() {
15220
15542
  wdt: wdtColumns,
15221
15543
  bse3: bse3Columns,
15222
15544
  km: kmColumns,
15223
- jy: jyColumns
15545
+ jy: jyColumns,
15546
+ jky: jkyColumns
15224
15547
  });
15225
15548
  };
15226
15549
  var getColumnsBaseInfo = function getColumnsBaseInfo() {
@@ -15318,6 +15641,64 @@ var useGetColumns = (function (type) {
15318
15641
  return [columns, showColumnsDataIndexList, loading];
15319
15642
  });
15320
15643
 
15644
+ var compareSymbolList = [{
15645
+ label: '模糊',
15646
+ value: 'like'
15647
+ }, {
15648
+ label: '精准',
15649
+ value: 'eq'
15650
+ }];
15651
+ var OptionalInput = function OptionalInput(props) {
15652
+ var value = props.value,
15653
+ onChange = props.onChange,
15654
+ _props$placeholder = props.placeholder,
15655
+ placeholder = _props$placeholder === void 0 ? '' : _props$placeholder,
15656
+ onPressEnter = props.onPressEnter,
15657
+ onBlur = props.onBlur,
15658
+ formItemProps = props.formItemProps;
15659
+ var handleSelectChange = function handleSelectChange(compareSymbol) {
15660
+ if (typeof onChange === 'function') {
15661
+ onChange({
15662
+ type: compareSymbol || 'like',
15663
+ inputValue: value === null || value === void 0 ? void 0 : value.inputValue
15664
+ });
15665
+ }
15666
+ };
15667
+ var handleInputChange = function handleInputChange(e) {
15668
+ if (typeof onChange === 'function') {
15669
+ onChange({
15670
+ type: (value === null || value === void 0 ? void 0 : value.type) || 'like',
15671
+ inputValue: e.target.value
15672
+ });
15673
+ }
15674
+ };
15675
+ return /*#__PURE__*/React.createElement("div", {
15676
+ style: {
15677
+ display: 'flex',
15678
+ alignItems: 'center'
15679
+ }
15680
+ }, /*#__PURE__*/React.createElement(Select, {
15681
+ className: "optional-input-select",
15682
+ style: {
15683
+ width: '70px'
15684
+ },
15685
+ options: compareSymbolList,
15686
+ onChange: handleSelectChange,
15687
+ value: (value === null || value === void 0 ? void 0 : value.type) || 'like',
15688
+ onBlur: onBlur
15689
+ }), /*#__PURE__*/React.createElement(Input, _objectSpread2({
15690
+ style: {
15691
+ width: '150px'
15692
+ },
15693
+ allowClear: true,
15694
+ placeholder: placeholder,
15695
+ onChange: handleInputChange,
15696
+ onPressEnter: onPressEnter,
15697
+ onBlur: onBlur,
15698
+ value: value === null || value === void 0 ? void 0 : value.inputValue
15699
+ }, formItemProps)));
15700
+ };
15701
+
15321
15702
  function SearchForm(_ref) {
15322
15703
  var searchFormData = _ref.searchFormData,
15323
15704
  form = _ref.form,
@@ -15369,7 +15750,16 @@ function SearchForm(_ref) {
15369
15750
  style: {
15370
15751
  marginBottom: '12px'
15371
15752
  }
15372
- }, type === 'select' ? /*#__PURE__*/React.createElement(Select, _objectSpread2({
15753
+ }, type === 'optionalInput' ? /*#__PURE__*/React.createElement(OptionalInput, {
15754
+ onPressEnter: function onPressEnter() {
15755
+ return submitForm();
15756
+ },
15757
+ onBlur: function onBlur() {
15758
+ return submitForm();
15759
+ },
15760
+ placeholder: label,
15761
+ formItemProps: formItemProps
15762
+ }) : type === 'select' ? /*#__PURE__*/React.createElement(Select, _objectSpread2({
15373
15763
  placeholder: label,
15374
15764
  showSearch: true,
15375
15765
  allowClear: true,
@@ -15410,24 +15800,35 @@ function SearchForm(_ref) {
15410
15800
  }, "\u91CD\u7F6E")));
15411
15801
  }
15412
15802
 
15803
+ var transformFormData = function transformFormData(formData) {
15804
+ var conditionList = [];
15805
+ for (var key in formData) {
15806
+ if (formData[key]) {
15807
+ var _formData$key, _formData$key2, _formData$key3, _formData$key4;
15808
+ 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];
15809
+ 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';
15810
+ conditionList.push({
15811
+ leftValue: key,
15812
+ compareSymbol: compareSymbol,
15813
+ rightValue: value
15814
+ });
15815
+ }
15816
+ }
15817
+ return conditionList;
15818
+ };
15819
+
15413
15820
  var getTableData = function getTableData(_ref, formData) {
15414
- var _formData$brandIds;
15415
15821
  var current = _ref.current,
15416
15822
  pageSize = _ref.pageSize;
15417
- var data = {
15418
- brandIds: ((_formData$brandIds = formData.brandIds) === null || _formData$brandIds === void 0 ? void 0 : _formData$brandIds.length) ? formData.brandIds : null,
15419
- skuCode: formData.skuCode || null,
15420
- skuName: formData.skuName || null,
15421
- goodName: formData.goodName || null,
15422
- goodNo: formData.goodNo || null
15423
- };
15823
+ var conditionList = transformFormData(formData);
15424
15824
  return extendRequest('/qy/gdfw/product/product/page', {
15425
15825
  method: 'post',
15426
- data: _objectSpread2({
15826
+ data: {
15427
15827
  pageSize: pageSize,
15428
15828
  pageNo: current,
15429
- platform: 'WDT_ERP'
15430
- }, data)
15829
+ platform: 'WDT_ERP',
15830
+ conditionList: conditionList
15831
+ }
15431
15832
  }).then(function (res) {
15432
15833
  var _res$data = res.data,
15433
15834
  _res$data$productSkuL = _res$data.productSkuList,
@@ -15521,13 +15922,15 @@ var GoodList = function GoodList(props, ref) {
15521
15922
  }, {
15522
15923
  label: 'SKU编码',
15523
15924
  name: 'skuCode',
15524
- dataIndex: 'specNo'
15925
+ dataIndex: 'specNo',
15926
+ type: 'optionalInput'
15525
15927
  }, {
15526
15928
  label: '商品名称',
15527
15929
  name: 'goodName'
15528
15930
  }, {
15529
15931
  label: '商品编码',
15530
- name: 'goodNo'
15932
+ name: 'goodNo',
15933
+ type: 'optionalInput'
15531
15934
  }, {
15532
15935
  label: '品牌',
15533
15936
  name: 'brandIds',
@@ -15717,13 +16120,15 @@ var WdtGoodsModal = /*#__PURE__*/forwardRef(GoodsModal$3);
15717
16120
  var getTableData$1 = function getTableData(_ref, formData) {
15718
16121
  var current = _ref.current,
15719
16122
  pageSize = _ref.pageSize;
16123
+ var conditionList = transformFormData(formData);
15720
16124
  return extendRequest('/qy/gdfw/product/product/page', {
15721
16125
  method: 'post',
15722
- data: _objectSpread2({
16126
+ data: {
15723
16127
  pageSize: pageSize,
15724
16128
  pageNo: current,
15725
- platform: 'JST_ERP'
15726
- }, formData)
16129
+ platform: 'JST_ERP',
16130
+ conditionList: conditionList
16131
+ }
15727
16132
  }).then(function (res) {
15728
16133
  var _res$data = res.data,
15729
16134
  _res$data$productSkuL = _res$data.productSkuList,
@@ -15744,10 +16149,12 @@ var searchFormData = [{
15744
16149
  name: 'goodName'
15745
16150
  }, {
15746
16151
  label: '商品编码',
15747
- name: 'goodNo'
16152
+ name: 'goodNo',
16153
+ type: 'optionalInput'
15748
16154
  }, {
15749
16155
  label: '款式编码',
15750
- name: 'styleCode'
16156
+ name: 'styleCode',
16157
+ type: 'optionalInput'
15751
16158
  }, {
15752
16159
  label: '商品类型',
15753
16160
  name: 'skuType',
@@ -15968,20 +16375,15 @@ var JstGoodsModal = /*#__PURE__*/forwardRef(GyGoodsModal);
15968
16375
  var getTableData$2 = function getTableData(_ref, formData) {
15969
16376
  var current = _ref.current,
15970
16377
  pageSize = _ref.pageSize;
15971
- var data = {
15972
- goodShortName: formData.goodShortName || null,
15973
- goodNo: formData.goodNo || null,
15974
- goodName: formData.goodName || null,
15975
- skuCode: formData.skuCode || null,
15976
- skuId: formData.skuId || null
15977
- };
16378
+ var conditionList = transformFormData(formData);
15978
16379
  return extendRequest('/qy/gdfw/product/product/page', {
15979
16380
  method: 'post',
15980
- data: _objectSpread2({
16381
+ data: {
15981
16382
  pageSize: pageSize,
15982
16383
  pageNo: current,
15983
- platform: 'BS_E3_ERP'
15984
- }, data)
16384
+ platform: 'BS_E3_ERP',
16385
+ conditionList: conditionList
16386
+ }
15985
16387
  }).then(function (res) {
15986
16388
  var _res$data = res.data,
15987
16389
  _res$data$productSkuL = _res$data.productSkuList,
@@ -16001,18 +16403,21 @@ var getTableData$2 = function getTableData(_ref, formData) {
16001
16403
  };
16002
16404
  var searchFormData$1 = [{
16003
16405
  label: '商品货号',
16004
- name: 'goodNo'
16406
+ name: 'goodNo',
16407
+ type: 'optionalInput'
16005
16408
  }, {
16006
16409
  label: '商品名称',
16007
16410
  name: 'goodName'
16008
16411
  }, {
16009
16412
  label: 'SKU',
16010
16413
  name: 'skuCode',
16011
- dataIndex: 'specNo'
16414
+ dataIndex: 'specNo',
16415
+ type: 'optionalInput'
16012
16416
  }, {
16013
16417
  label: 'SKU ID',
16014
16418
  name: 'skuId',
16015
- dataIndex: 'specId'
16419
+ dataIndex: 'specId',
16420
+ type: 'optionalInput'
16016
16421
  }];
16017
16422
  var GoodList$2 = function GoodList(props, ref) {
16018
16423
  var _useState = useState([]),
@@ -16214,13 +16619,15 @@ var rowCheckKey = 'id';
16214
16619
  var getTableData$3 = function getTableData(_ref, formData) {
16215
16620
  var current = _ref.current,
16216
16621
  pageSize = _ref.pageSize;
16622
+ var conditionList = transformFormData(formData);
16217
16623
  return extendRequest('/qy/gdfw/product/product/page', {
16218
16624
  method: 'post',
16219
- data: _objectSpread2({
16625
+ data: {
16220
16626
  pageSize: pageSize,
16221
16627
  pageNo: current,
16222
- platform: 'KM_ERP'
16223
- }, formData)
16628
+ platform: 'KM_ERP',
16629
+ conditionList: conditionList
16630
+ }
16224
16631
  }).then(function (res) {
16225
16632
  var _res$data = res.data,
16226
16633
  _res$data$productSkuL = _res$data.productSkuList,
@@ -16241,7 +16648,8 @@ var searchFormData$2 = [{
16241
16648
  name: 'goodName'
16242
16649
  }, {
16243
16650
  label: '商品编码',
16244
- name: 'goodNo'
16651
+ name: 'goodNo',
16652
+ type: 'optionalInput'
16245
16653
  }, {
16246
16654
  label: 'SKU名称',
16247
16655
  name: 'skuName',
@@ -16249,7 +16657,8 @@ var searchFormData$2 = [{
16249
16657
  }, {
16250
16658
  label: 'SKU编码',
16251
16659
  name: 'skuCode',
16252
- dataIndex: 'specNo'
16660
+ dataIndex: 'specNo',
16661
+ type: 'optionalInput'
16253
16662
  }];
16254
16663
  var GoodList$3 = function GoodList(props, ref) {
16255
16664
  var _useState = useState([]),
@@ -16457,20 +16866,15 @@ var KmGoodsModal = /*#__PURE__*/forwardRef(ErpGoodsModal);
16457
16866
  var getTableData$4 = function getTableData(_ref, formData) {
16458
16867
  var current = _ref.current,
16459
16868
  pageSize = _ref.pageSize;
16460
- var data = {
16461
- goodShortName: formData.goodShortName || null,
16462
- skuName: formData.skuName || null,
16463
- skuCode: formData.skuCode || null,
16464
- goodName: formData.goodName || null,
16465
- goodNo: formData.goodNo || null
16466
- };
16869
+ var conditionList = transformFormData(formData);
16467
16870
  return extendRequest('/qy/gdfw/product/product/page', {
16468
16871
  method: 'post',
16469
- data: _objectSpread2({
16872
+ data: {
16470
16873
  pageSize: pageSize,
16471
16874
  pageNo: current,
16472
- platform: 'GY_ERP'
16473
- }, data)
16875
+ platform: 'GY_ERP',
16876
+ conditionList: conditionList
16877
+ }
16474
16878
  }).then(function (res) {
16475
16879
  var _res$data = res.data,
16476
16880
  _res$data$productSkuL = _res$data.productSkuList,
@@ -16496,13 +16900,15 @@ var searchFormData$3 = [{
16496
16900
  }, {
16497
16901
  label: '商品sku编码',
16498
16902
  name: 'skuCode',
16499
- dataIndex: 'specNo'
16903
+ dataIndex: 'specNo',
16904
+ type: 'optionalInput'
16500
16905
  }, {
16501
16906
  label: '商品名称',
16502
16907
  name: 'goodName'
16503
16908
  }, {
16504
16909
  label: '商品编码',
16505
- name: 'goodNo'
16910
+ name: 'goodNo',
16911
+ type: 'optionalInput'
16506
16912
  }];
16507
16913
  var GoodList$4 = function GoodList(props, ref) {
16508
16914
  var _useState = useState([]),
@@ -18122,13 +18528,15 @@ var GyGoodsModal$2 = /*#__PURE__*/forwardRef(GyGoodsModal$1);
18122
18528
  var getTableData$5 = function getTableData(_ref, formData) {
18123
18529
  var current = _ref.current,
18124
18530
  pageSize = _ref.pageSize;
18531
+ var conditionList = transformFormData(formData);
18125
18532
  return extendRequest('/qy/gdfw/product/product/page', {
18126
18533
  method: 'post',
18127
- data: _objectSpread2({
18534
+ data: {
18128
18535
  pageSize: pageSize,
18129
18536
  pageNo: current,
18130
- platform: 'JY_ERP'
18131
- }, formData)
18537
+ platform: 'JY_ERP',
18538
+ conditionList: conditionList
18539
+ }
18132
18540
  }).then(function (res) {
18133
18541
  var _res$data = res.data,
18134
18542
  _res$data$productSkuL = _res$data.productSkuList,
@@ -18151,13 +18559,15 @@ var searchFormData$4 = [{
18151
18559
  }, {
18152
18560
  label: '规格编码',
18153
18561
  name: 'skuCode',
18154
- dataIndex: 'specNo'
18562
+ dataIndex: 'specNo',
18563
+ type: 'optionalInput'
18155
18564
  }, {
18156
18565
  label: '商品名称',
18157
18566
  name: 'goodName'
18158
18567
  }, {
18159
18568
  label: '商品编码',
18160
- name: 'goodNo'
18569
+ name: 'goodNo',
18570
+ type: 'optionalInput'
18161
18571
  }];
18162
18572
  var GoodList$5 = function GoodList(props, ref) {
18163
18573
  var _useState = useState([]),
@@ -18362,250 +18772,493 @@ var JyGoodsModal = function JyGoodsModal(props, ref) {
18362
18772
  };
18363
18773
  var JyGoodsModal$1 = /*#__PURE__*/forwardRef(JyGoodsModal);
18364
18774
 
18365
- var getColumns = function getColumns(_ref) {
18366
- var _ref$text = _ref.text,
18367
- disabled = _ref.disabled,
18368
- updateHandle = _ref.updateHandle;
18369
- return {
18370
- //百胜E3补发商品
18371
- BS_E3_REISSUE_GOODS: [{
18372
- dataIndex: 'sku',
18373
- title: "SKU",
18374
- width: 150,
18375
- render: renderTextEllipsis
18376
- }, {
18377
- dataIndex: 'skuId',
18378
- title: "SKU ID",
18379
- width: 150,
18380
- render: renderTextEllipsis
18381
- }, {
18382
- dataIndex: 'goodsName',
18383
- title: "\u5546\u54C1\u540D\u79F0",
18384
- width: 150,
18385
- render: renderTextEllipsis
18386
- }, {
18387
- dataIndex: 'goodsShortName',
18388
- title: "\u5546\u54C1\u7B80\u79F0",
18389
- width: 150,
18390
- render: renderTextEllipsis
18391
- }, {
18392
- dataIndex: 'picPath',
18393
- title: "\u5546\u54C1\u56FE\u7247",
18394
- width: 150,
18395
- render: function render(val) {
18396
- return /*#__PURE__*/React.createElement(Image, {
18397
- width: 30,
18398
- src: val
18399
- });
18775
+ var getTableData$6 = function getTableData(_ref, formData) {
18776
+ var current = _ref.current,
18777
+ pageSize = _ref.pageSize;
18778
+ return extendRequest('/qy/gdfw/product/product/page', {
18779
+ method: 'post',
18780
+ data: _objectSpread2({
18781
+ pageSize: pageSize,
18782
+ pageNo: current,
18783
+ platform: 'JY_ERP'
18784
+ }, formData)
18785
+ }).then(function (res) {
18786
+ var _res$data = res.data,
18787
+ _res$data$productSkuL = _res$data.productSkuList,
18788
+ productSkuList = _res$data$productSkuL === void 0 ? [] : _res$data$productSkuL,
18789
+ _res$data$total = _res$data.total,
18790
+ total = _res$data$total === void 0 ? 0 : _res$data$total;
18791
+ var newProducts = productSkuList.map(function (item, index) {
18792
+ return _objectSpread2({}, item);
18793
+ });
18794
+ return {
18795
+ total: total,
18796
+ list: newProducts
18797
+ };
18798
+ });
18799
+ };
18800
+ var searchFormData$5 = [{
18801
+ label: '规格名称',
18802
+ name: 'skuName',
18803
+ dataIndex: 'specName'
18804
+ }, {
18805
+ label: '规格编码',
18806
+ name: 'skuCode',
18807
+ dataIndex: 'specNo'
18808
+ }, {
18809
+ label: '商品名称',
18810
+ name: 'goodName'
18811
+ }, {
18812
+ label: '商品编码',
18813
+ name: 'goodNo'
18814
+ }];
18815
+ var GoodList$6 = function GoodList(props, ref) {
18816
+ var _useState = useState([]),
18817
+ _useState2 = _slicedToArray(_useState, 2),
18818
+ selectList = _useState2[0],
18819
+ setSelect = _useState2[1];
18820
+ var _useState3 = useState([]),
18821
+ _useState4 = _slicedToArray(_useState3, 2),
18822
+ selectIds = _useState4[0],
18823
+ setSelectIds = _useState4[1];
18824
+ var _useGetColumns = useGetColumns('jky'),
18825
+ _useGetColumns2 = _slicedToArray(_useGetColumns, 3),
18826
+ columns = _useGetColumns2[0],
18827
+ showColumnsDataIndexList = _useGetColumns2[1],
18828
+ loading = _useGetColumns2[2];
18829
+ useImperativeHandle(ref, function () {
18830
+ return {
18831
+ getSelectGoodList: function getSelectGoodList() {
18832
+ return selectList;
18400
18833
  }
18401
- }, {
18402
- dataIndex: 'goodsSn',
18403
- title: "\u8D27\u53F7",
18404
- width: 150,
18405
- render: renderTextEllipsis
18406
- }, {
18407
- dataIndex: 'goodsId',
18408
- title: "\u8D27\u53F7ID",
18409
- width: 150,
18410
- render: renderTextEllipsis
18411
- }, {
18412
- dataIndex: 'colorName',
18413
- title: "\u989C\u8272\u540D\u79F0",
18414
- width: 150,
18415
- render: renderTextEllipsis
18416
- }, {
18417
- dataIndex: 'colorCode',
18418
- title: "\u989C\u8272\u4EE3\u7801",
18419
- width: 150,
18420
- render: renderTextEllipsis
18421
- }, {
18422
- dataIndex: 'sizeName',
18423
- title: "\u5C3A\u7801\u540D\u79F0",
18424
- width: 150,
18425
- render: renderTextEllipsis
18426
- }, {
18427
- dataIndex: 'sizeCode',
18428
- title: "\u5C3A\u7801\u4EE3\u7801",
18429
- width: 150,
18430
- render: renderTextEllipsis
18431
- }, {
18432
- dataIndex: 'brandName',
18433
- title: "\u54C1\u724C\u540D\u79F0",
18434
- width: 150,
18435
- render: renderTextEllipsis
18436
- }, {
18437
- dataIndex: 'goodsNumber',
18438
- title: "\u5546\u54C1\u6570\u91CF",
18439
- width: 150
18440
- }, {
18441
- dataIndex: 'goodsPrice',
18442
- title: "\u5546\u54C1\u5355\u4EF7",
18443
- width: 150
18444
- }, {
18445
- dataIndex: 'shopPrice',
18446
- title: "\u5546\u54C1\u7F51\u5E97\u552E\u4EF7",
18447
- width: 150
18448
- }, {
18449
- dataIndex: 'isGift',
18450
- title: "\u662F\u5426\u8D60\u54C1",
18451
- width: 150,
18452
- render: function render(val) {
18453
- return /*#__PURE__*/React.createElement("span", null, +val ? '是' : '否');
18834
+ };
18835
+ });
18836
+ var _Form$useForm = Form.useForm(),
18837
+ _Form$useForm2 = _slicedToArray(_Form$useForm, 1),
18838
+ form = _Form$useForm2[0];
18839
+ var _useAntdTable = useAntdTable(getTableData$6, {
18840
+ defaultPageSize: 10,
18841
+ form: form
18842
+ }),
18843
+ tableProps = _useAntdTable.tableProps,
18844
+ search = _useAntdTable.search,
18845
+ params = _useAntdTable.params;
18846
+ var submit = search.submit,
18847
+ reset = search.reset;
18848
+ var rowSelection = {
18849
+ selectedRowKeys: selectIds,
18850
+ fixed: true,
18851
+ onSelect: function onSelect(record, selected) {
18852
+ if (selected) {
18853
+ setSelectIds([].concat(_toConsumableArray(selectIds), [record.id]));
18854
+ setSelect([].concat(_toConsumableArray(selectList), [record]));
18855
+ } else {
18856
+ setSelectIds(selectIds.filter(function (t) {
18857
+ return t !== record.id;
18858
+ }));
18859
+ setSelect(selectList.filter(function (t) {
18860
+ return t.id !== record.id;
18861
+ }));
18454
18862
  }
18455
- }],
18456
- //百胜E3商品信息
18457
- BS_E3_GOODS: [{
18458
- dataIndex: 'sku',
18459
- title: "SKU",
18460
- align: 'center',
18461
- ellipsis: true,
18462
- width: 150,
18463
- render: renderTextEllipsis
18464
- }, {
18465
- dataIndex: 'skuId',
18466
- title: "SKU ID",
18467
- align: 'center',
18468
- ellipsis: true,
18469
- width: 150,
18470
- render: renderTextEllipsis
18471
- }, {
18472
- dataIndex: 'goodsName',
18473
- title: "\u5546\u54C1\u540D\u79F0",
18474
- align: 'center',
18475
- ellipsis: true,
18476
- width: 150,
18477
- render: renderTextEllipsis
18478
- }, {
18479
- dataIndex: 'goodsShortName',
18480
- title: "\u5546\u54C1\u7B80\u79F0",
18481
- align: 'center',
18482
- ellipsis: true,
18483
- width: 100,
18484
- render: renderTextEllipsis
18485
- }, {
18486
- dataIndex: 'picPath',
18487
- title: "\u5546\u54C1\u56FE\u7247",
18488
- align: 'center',
18489
- ellipsis: true,
18490
- width: 100,
18491
- render: function render(val) {
18492
- return /*#__PURE__*/React.createElement(Image, {
18493
- width: 30,
18494
- src: val
18863
+ },
18864
+ onSelectAll: function onSelectAll(selected, selectedRows, changeRows) {
18865
+ if (selected) {
18866
+ setSelectIds([].concat(_toConsumableArray(selectIds), _toConsumableArray(changeRows.map(function (t) {
18867
+ return t.id;
18868
+ }))));
18869
+ setSelect([].concat(_toConsumableArray(selectList), _toConsumableArray(changeRows)));
18870
+ } else {
18871
+ setSelectIds(difference(selectIds, changeRows.map(function (t) {
18872
+ return t.id;
18873
+ })));
18874
+ var list = differenceWith(selectList, changeRows, function (arrVal, othVal) {
18875
+ return arrVal.id !== othVal.id;
18495
18876
  });
18877
+ setSelect(list);
18496
18878
  }
18497
- }, {
18498
- dataIndex: 'goodsSn',
18499
- title: "\u8D27\u53F7",
18500
- align: 'center',
18879
+ },
18880
+ getCheckboxProps: function getCheckboxProps(record) {
18881
+ var options = {
18882
+ disabled: (props.selectedRows || []).map(function (row) {
18883
+ return row.id || row.specId;
18884
+ }).includes(record.id || record.specId),
18885
+ name: record.id
18886
+ };
18887
+ return options;
18888
+ }
18889
+ };
18890
+ var showTable = function showTable() {
18891
+ var handleDelete = function handleDelete(record) {
18892
+ setSelectIds(selectIds.filter(function (t) {
18893
+ return t !== record.id;
18894
+ }));
18895
+ setSelect(selectList.filter(function (t) {
18896
+ return t.id !== record.id;
18897
+ }));
18898
+ };
18899
+ var showColumns = [{
18900
+ dataIndex: '',
18901
+ title: "\u64CD\u4F5C",
18501
18902
  ellipsis: true,
18903
+ width: 100,
18904
+ render: function render(val, record) {
18905
+ return /*#__PURE__*/React.createElement(Button, {
18906
+ type: "link",
18907
+ onClick: function onClick() {
18908
+ return handleDelete(record);
18909
+ }
18910
+ }, "\u5220\u9664");
18911
+ }
18912
+ }].concat(takeRight(columns, columns.length - 1));
18913
+ return selectList.length ? /*#__PURE__*/React.createElement("div", {
18914
+ style: {
18915
+ width: '100%',
18916
+ maxWidth: '387px'
18917
+ }
18918
+ }, /*#__PURE__*/React.createElement(Table, {
18919
+ columns: showColumns,
18920
+ rowKey: 'id',
18921
+ dataSource: selectList,
18922
+ scroll: {
18923
+ x: '100%',
18924
+ y: 250
18925
+ },
18926
+ pagination: {
18927
+ size: 'small',
18928
+ total: selectIds.length,
18929
+ pageSize: 10,
18930
+ showSizeChanger: false
18931
+ }
18932
+ })) : null;
18933
+ };
18934
+ return /*#__PURE__*/React.createElement(Skeleton, {
18935
+ active: true,
18936
+ loading: loading
18937
+ }, /*#__PURE__*/React.createElement(SearchForm, {
18938
+ searchFormData: searchFormData$5,
18939
+ form: form,
18940
+ showColumnsDataIndexList: showColumnsDataIndexList,
18941
+ submit: submit,
18942
+ reset: reset
18943
+ }), /*#__PURE__*/React.createElement("div", {
18944
+ style: {
18945
+ marginTop: '4px'
18946
+ }
18947
+ }, /*#__PURE__*/React.createElement(Table, _objectSpread2({
18948
+ className: "GoodModalColumns",
18949
+ rowSelection: rowSelection,
18950
+ rowKey: "id",
18951
+ columns: columns,
18952
+ scroll: {
18953
+ x: '100%',
18954
+ y: 250
18955
+ },
18956
+ size: "small"
18957
+ }, tableProps))), /*#__PURE__*/React.createElement(Popover, {
18958
+ getPopupContainer: function getPopupContainer(triggerNode) {
18959
+ return triggerNode.parentElement;
18960
+ },
18961
+ content: showTable(),
18962
+ title: "\u5DF2\u9009\u62E9".concat(selectList.length, "\u4E2A\u5546\u54C1")
18963
+ }, /*#__PURE__*/React.createElement(Button, {
18964
+ danger: true,
18965
+ type: "text"
18966
+ }, "\u5DF2\u9009".concat(selectList.length > 99 ? '99+' : selectList.length, "\u4E2A\u5546\u54C1"), /*#__PURE__*/React.createElement(CaretUpOutlined, null))));
18967
+ };
18968
+ var JkyGoodsList = /*#__PURE__*/forwardRef(GoodList$6);
18969
+
18970
+ var JkyGoodsModal = function JkyGoodsModal(props, ref) {
18971
+ useImperativeHandle(ref, function () {
18972
+ return {
18973
+ open: function open(shopCode) {
18974
+ var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
18975
+ setVisible(true);
18976
+ setSelectedRows(options.value || []);
18977
+ }
18978
+ };
18979
+ });
18980
+ var onSubmit = props.onSubmit,
18981
+ width = props.width;
18982
+ var _useState = useState(false),
18983
+ _useState2 = _slicedToArray(_useState, 2),
18984
+ visible = _useState2[0],
18985
+ setVisible = _useState2[1];
18986
+ var _useState3 = useState([]),
18987
+ _useState4 = _slicedToArray(_useState3, 2),
18988
+ selectedRows = _useState4[0],
18989
+ setSelectedRows = _useState4[1];
18990
+ var jkyGoodsListRef = useRef(null);
18991
+ var _onCancel = function onCancel() {
18992
+ setVisible(false);
18993
+ };
18994
+ var onOk = function onOk() {
18995
+ var _jkyGoodsListRef$curr;
18996
+ var selectedList = ((_jkyGoodsListRef$curr = jkyGoodsListRef.current) === null || _jkyGoodsListRef$curr === void 0 ? void 0 : _jkyGoodsListRef$curr.getSelectGoodList()) || [];
18997
+ onSubmit(selectedList);
18998
+ _onCancel();
18999
+ };
19000
+ return /*#__PURE__*/React.createElement(React.Fragment, null, visible && /*#__PURE__*/React.createElement(Modal, {
19001
+ title: '选择商品',
19002
+ okText: '确认',
19003
+ cancelText: '取消',
19004
+ visible: visible,
19005
+ width: width || 850,
19006
+ onCancel: function onCancel() {
19007
+ _onCancel();
19008
+ },
19009
+ onOk: onOk,
19010
+ wrapClassName: "goodModal"
19011
+ }, /*#__PURE__*/React.createElement(JkyGoodsList, {
19012
+ ref: jkyGoodsListRef,
19013
+ selectedRows: selectedRows
19014
+ })));
19015
+ };
19016
+ var JkyGoodsModal$1 = /*#__PURE__*/forwardRef(JkyGoodsModal);
19017
+
19018
+ var getColumns = function getColumns(_ref) {
19019
+ var _ref$text = _ref.text,
19020
+ disabled = _ref.disabled,
19021
+ updateHandle = _ref.updateHandle;
19022
+ return {
19023
+ //百胜E3补发商品
19024
+ BS_E3_REISSUE_GOODS: [{
19025
+ dataIndex: 'sku',
19026
+ title: "SKU",
19027
+ width: 150,
19028
+ render: renderTextEllipsis
19029
+ }, {
19030
+ dataIndex: 'skuId',
19031
+ title: "SKU ID",
19032
+ width: 150,
19033
+ render: renderTextEllipsis
19034
+ }, {
19035
+ dataIndex: 'goodsName',
19036
+ title: "\u5546\u54C1\u540D\u79F0",
19037
+ width: 150,
19038
+ render: renderTextEllipsis
19039
+ }, {
19040
+ dataIndex: 'goodsShortName',
19041
+ title: "\u5546\u54C1\u7B80\u79F0",
19042
+ width: 150,
19043
+ render: renderTextEllipsis
19044
+ }, {
19045
+ dataIndex: 'picPath',
19046
+ title: "\u5546\u54C1\u56FE\u7247",
19047
+ width: 150,
19048
+ render: function render(val) {
19049
+ return /*#__PURE__*/React.createElement(Image, {
19050
+ width: 30,
19051
+ src: val
19052
+ });
19053
+ }
19054
+ }, {
19055
+ dataIndex: 'goodsSn',
19056
+ title: "\u8D27\u53F7",
18502
19057
  width: 150,
18503
19058
  render: renderTextEllipsis
18504
19059
  }, {
18505
19060
  dataIndex: 'goodsId',
18506
19061
  title: "\u8D27\u53F7ID",
18507
- align: 'center',
18508
- ellipsis: true,
18509
19062
  width: 150,
18510
19063
  render: renderTextEllipsis
18511
19064
  }, {
18512
19065
  dataIndex: 'colorName',
18513
19066
  title: "\u989C\u8272\u540D\u79F0",
18514
- align: 'center',
18515
- ellipsis: true,
18516
- width: 100,
19067
+ width: 150,
18517
19068
  render: renderTextEllipsis
18518
19069
  }, {
18519
19070
  dataIndex: 'colorCode',
18520
19071
  title: "\u989C\u8272\u4EE3\u7801",
18521
- align: 'center',
18522
- ellipsis: true,
18523
19072
  width: 150,
18524
19073
  render: renderTextEllipsis
18525
19074
  }, {
18526
19075
  dataIndex: 'sizeName',
18527
19076
  title: "\u5C3A\u7801\u540D\u79F0",
18528
- align: 'center',
18529
- ellipsis: true,
18530
- width: 100,
19077
+ width: 150,
18531
19078
  render: renderTextEllipsis
18532
19079
  }, {
18533
19080
  dataIndex: 'sizeCode',
18534
19081
  title: "\u5C3A\u7801\u4EE3\u7801",
18535
- align: 'center',
18536
- ellipsis: true,
18537
- width: 100,
19082
+ width: 150,
18538
19083
  render: renderTextEllipsis
18539
19084
  }, {
18540
19085
  dataIndex: 'brandName',
18541
19086
  title: "\u54C1\u724C\u540D\u79F0",
18542
- align: 'center',
18543
- ellipsis: true,
18544
19087
  width: 150,
18545
19088
  render: renderTextEllipsis
18546
19089
  }, {
18547
19090
  dataIndex: 'goodsNumber',
18548
19091
  title: "\u5546\u54C1\u6570\u91CF",
18549
- align: 'center',
18550
- ellipsis: true,
18551
- width: 100,
18552
- render: function render(val, record, index) {
18553
- return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
18554
- style: {
18555
- width: 70
18556
- },
18557
- value: val,
18558
- min: 1,
18559
- precision: 0,
18560
- onChange: function onChange(num) {
18561
- return updateHandle(num, index, 'goodsNumber');
18562
- }
18563
- }) : /*#__PURE__*/React.createElement("span", null, val);
18564
- }
19092
+ width: 150
18565
19093
  }, {
18566
19094
  dataIndex: 'goodsPrice',
18567
19095
  title: "\u5546\u54C1\u5355\u4EF7",
18568
- align: 'center',
18569
- ellipsis: true,
18570
- width: 120,
18571
- render: function render(val, record, index) {
18572
- return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
18573
- style: {
18574
- width: 70
18575
- },
18576
- value: val,
18577
- min: 0,
18578
- precision: 2,
18579
- onChange: function onChange(num) {
18580
- return updateHandle(num, index, 'goodsPrice');
18581
- }
18582
- }) : /*#__PURE__*/React.createElement("span", null, val);
18583
- }
19096
+ width: 150
18584
19097
  }, {
18585
19098
  dataIndex: 'shopPrice',
18586
19099
  title: "\u5546\u54C1\u7F51\u5E97\u552E\u4EF7",
19100
+ width: 150
19101
+ }, {
19102
+ dataIndex: 'isGift',
19103
+ title: "\u662F\u5426\u8D60\u54C1",
19104
+ width: 150,
19105
+ render: function render(val) {
19106
+ return /*#__PURE__*/React.createElement("span", null, +val ? '是' : '否');
19107
+ }
19108
+ }],
19109
+ //百胜E3商品信息
19110
+ BS_E3_GOODS: [{
19111
+ dataIndex: 'sku',
19112
+ title: "SKU",
18587
19113
  align: 'center',
18588
19114
  ellipsis: true,
18589
- width: 120
19115
+ width: 150,
19116
+ render: renderTextEllipsis
18590
19117
  }, {
18591
- dataIndex: 'sharePrice',
18592
- title: "\u5206\u644A\u4EF7",
19118
+ dataIndex: 'skuId',
19119
+ title: "SKU ID",
18593
19120
  align: 'center',
18594
19121
  ellipsis: true,
18595
- width: 120
19122
+ width: 150,
19123
+ render: renderTextEllipsis
18596
19124
  }, {
18597
- dataIndex: 'sharePayment',
18598
- title: "\u5206\u644A\u5B9E\u4ED8\u91D1\u989D",
19125
+ dataIndex: 'goodsName',
19126
+ title: "\u5546\u54C1\u540D\u79F0",
18599
19127
  align: 'center',
18600
19128
  ellipsis: true,
18601
- width: 120
19129
+ width: 150,
19130
+ render: renderTextEllipsis
18602
19131
  }, {
18603
- dataIndex: 'payment',
18604
- title: "\u5B9E\u4ED8\u91D1\u989D",
19132
+ dataIndex: 'goodsShortName',
19133
+ title: "\u5546\u54C1\u7B80\u79F0",
18605
19134
  align: 'center',
18606
19135
  ellipsis: true,
18607
- width: 120,
18608
- render: function render(val, record, index) {
19136
+ width: 100,
19137
+ render: renderTextEllipsis
19138
+ }, {
19139
+ dataIndex: 'picPath',
19140
+ title: "\u5546\u54C1\u56FE\u7247",
19141
+ align: 'center',
19142
+ ellipsis: true,
19143
+ width: 100,
19144
+ render: function render(val) {
19145
+ return /*#__PURE__*/React.createElement(Image, {
19146
+ width: 30,
19147
+ src: val
19148
+ });
19149
+ }
19150
+ }, {
19151
+ dataIndex: 'goodsSn',
19152
+ title: "\u8D27\u53F7",
19153
+ align: 'center',
19154
+ ellipsis: true,
19155
+ width: 150,
19156
+ render: renderTextEllipsis
19157
+ }, {
19158
+ dataIndex: 'goodsId',
19159
+ title: "\u8D27\u53F7ID",
19160
+ align: 'center',
19161
+ ellipsis: true,
19162
+ width: 150,
19163
+ render: renderTextEllipsis
19164
+ }, {
19165
+ dataIndex: 'colorName',
19166
+ title: "\u989C\u8272\u540D\u79F0",
19167
+ align: 'center',
19168
+ ellipsis: true,
19169
+ width: 100,
19170
+ render: renderTextEllipsis
19171
+ }, {
19172
+ dataIndex: 'colorCode',
19173
+ title: "\u989C\u8272\u4EE3\u7801",
19174
+ align: 'center',
19175
+ ellipsis: true,
19176
+ width: 150,
19177
+ render: renderTextEllipsis
19178
+ }, {
19179
+ dataIndex: 'sizeName',
19180
+ title: "\u5C3A\u7801\u540D\u79F0",
19181
+ align: 'center',
19182
+ ellipsis: true,
19183
+ width: 100,
19184
+ render: renderTextEllipsis
19185
+ }, {
19186
+ dataIndex: 'sizeCode',
19187
+ title: "\u5C3A\u7801\u4EE3\u7801",
19188
+ align: 'center',
19189
+ ellipsis: true,
19190
+ width: 100,
19191
+ render: renderTextEllipsis
19192
+ }, {
19193
+ dataIndex: 'brandName',
19194
+ title: "\u54C1\u724C\u540D\u79F0",
19195
+ align: 'center',
19196
+ ellipsis: true,
19197
+ width: 150,
19198
+ render: renderTextEllipsis
19199
+ }, {
19200
+ dataIndex: 'goodsNumber',
19201
+ title: "\u5546\u54C1\u6570\u91CF",
19202
+ align: 'center',
19203
+ ellipsis: true,
19204
+ width: 100,
19205
+ render: function render(val, record, index) {
19206
+ return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
19207
+ style: {
19208
+ width: 70
19209
+ },
19210
+ value: val,
19211
+ min: 1,
19212
+ precision: 0,
19213
+ onChange: function onChange(num) {
19214
+ return updateHandle(num, index, 'goodsNumber');
19215
+ }
19216
+ }) : /*#__PURE__*/React.createElement("span", null, val);
19217
+ }
19218
+ }, {
19219
+ dataIndex: 'goodsPrice',
19220
+ title: "\u5546\u54C1\u5355\u4EF7",
19221
+ align: 'center',
19222
+ ellipsis: true,
19223
+ width: 120,
19224
+ render: function render(val, record, index) {
19225
+ return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
19226
+ style: {
19227
+ width: 70
19228
+ },
19229
+ value: val,
19230
+ min: 0,
19231
+ precision: 2,
19232
+ onChange: function onChange(num) {
19233
+ return updateHandle(num, index, 'goodsPrice');
19234
+ }
19235
+ }) : /*#__PURE__*/React.createElement("span", null, val);
19236
+ }
19237
+ }, {
19238
+ dataIndex: 'shopPrice',
19239
+ title: "\u5546\u54C1\u7F51\u5E97\u552E\u4EF7",
19240
+ align: 'center',
19241
+ ellipsis: true,
19242
+ width: 120
19243
+ }, {
19244
+ dataIndex: 'sharePrice',
19245
+ title: "\u5206\u644A\u4EF7",
19246
+ align: 'center',
19247
+ ellipsis: true,
19248
+ width: 120
19249
+ }, {
19250
+ dataIndex: 'sharePayment',
19251
+ title: "\u5206\u644A\u5B9E\u4ED8\u91D1\u989D",
19252
+ align: 'center',
19253
+ ellipsis: true,
19254
+ width: 120
19255
+ }, {
19256
+ dataIndex: 'payment',
19257
+ title: "\u5B9E\u4ED8\u91D1\u989D",
19258
+ align: 'center',
19259
+ ellipsis: true,
19260
+ width: 120,
19261
+ render: function render(val, record, index) {
18609
19262
  return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
18610
19263
  style: {
18611
19264
  width: 70
@@ -19130,7 +19783,8 @@ var getColumns$2 = function getColumns(_ref) {
19130
19783
  title: "\u8D60\u54C1\u65B9\u5F0F",
19131
19784
  align: 'center',
19132
19785
  ellipsis: true,
19133
- width: 100
19786
+ width: 100,
19787
+ render: renderGiftType
19134
19788
  }, {
19135
19789
  dataIndex: 'unitName',
19136
19790
  title: "\u57FA\u672C\u5355\u4F4D",
@@ -20527,219 +21181,648 @@ var getColumns$5 = function getColumns() {
20527
21181
  }) : /*#__PURE__*/React.createElement("span", null, typeof val !== 'boolean' ? '' : val ? '是' : '否');
20528
21182
  }
20529
21183
  }, {
20530
- dataIndex: 'remark',
20531
- title: '备注',
21184
+ dataIndex: 'remark',
21185
+ title: '备注',
21186
+ width: 150,
21187
+ ellipsis: true,
21188
+ align: 'center',
21189
+ render: function render(val, record, index) {
21190
+ return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Input, {
21191
+ style: {
21192
+ width: 70
21193
+ },
21194
+ value: val,
21195
+ onChange: function onChange(e) {
21196
+ return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(e.target.value, index, 'remark');
21197
+ }
21198
+ }) : renderTextEllipsis(val);
21199
+ }
21200
+ }],
21201
+ JST_RETURN_GOODS: [{
21202
+ dataIndex: 'name',
21203
+ title: '商品名称',
21204
+ render: renderTextEllipsis
21205
+ }, {
21206
+ dataIndex: 'skuId',
21207
+ title: '商品编码',
21208
+ render: renderTextEllipsis
21209
+ }, {
21210
+ dataIndex: 'iId',
21211
+ title: '款式编码',
21212
+ render: renderTextEllipsis
21213
+ }, {
21214
+ dataIndex: 'pic',
21215
+ title: '商品图片',
21216
+ width: 100,
21217
+ render: function render(val) {
21218
+ return /*#__PURE__*/React.createElement(ApaasImage, {
21219
+ width: 30,
21220
+ src: val
21221
+ });
21222
+ }
21223
+ }, {
21224
+ dataIndex: 'propertiesValue',
21225
+ title: '规格值',
21226
+ render: renderTextEllipsis
21227
+ }, {
21228
+ dataIndex: 'saleBasePrice',
21229
+ title: '原价',
21230
+ render: function render(price) {
21231
+ return price || price === 0 ? Number(price).toFixed(2) : '';
21232
+ }
21233
+ }, {
21234
+ dataIndex: 'salePrice',
21235
+ title: '单价',
21236
+ width: 120,
21237
+ validator: function validator(_rule, value) {
21238
+ var goodsName = '';
21239
+ if (((value === null || value === void 0 ? void 0 : value.jstReturnGoods) || []).some(function (goods) {
21240
+ var v = toNum$2(goods === null || goods === void 0 ? void 0 : goods.salePrice);
21241
+ var res = typeof v === 'number' ? v < 0 : true;
21242
+ if (res) {
21243
+ goodsName = (goods === null || goods === void 0 ? void 0 : goods.name) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.name, "]") : '';
21244
+ }
21245
+ return res;
21246
+ })) {
21247
+ return Promise.reject("".concat(goodsName, "\u5355\u4EF7\u4E3A\u5927\u4E8E\u7B49\u4E8E0\u7684\u6570"));
21248
+ }
21249
+ },
21250
+ render: function render(val, record, index) {
21251
+ return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
21252
+ style: {
21253
+ width: 70
21254
+ },
21255
+ value: val,
21256
+ min: 0,
21257
+ precision: 2,
21258
+ onChange: function onChange(num) {
21259
+ return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'salePrice');
21260
+ }
21261
+ }) : /*#__PURE__*/React.createElement("span", null, val || val === 0 ? Number(val).toFixed(2) : '');
21262
+ }
21263
+ }, {
21264
+ dataIndex: 'qty',
21265
+ title: '数量',
21266
+ width: 100,
21267
+ validator: function validator(_rule, value) {
21268
+ var goodsName = '';
21269
+ if (((value === null || value === void 0 ? void 0 : value.jstReturnGoods) || []).some(function (goods) {
21270
+ var qty = toNum$2(goods === null || goods === void 0 ? void 0 : goods.qty);
21271
+ var res = typeof qty === 'number' ? qty < 1 : true;
21272
+ if (res) {
21273
+ goodsName = (goods === null || goods === void 0 ? void 0 : goods.name) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.name, "]") : '';
21274
+ }
21275
+ return res;
21276
+ })) {
21277
+ return Promise.reject("".concat(goodsName, "\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
21278
+ }
21279
+ },
21280
+ render: function render(val, record, index) {
21281
+ return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
21282
+ style: {
21283
+ width: 70
21284
+ },
21285
+ value: val,
21286
+ min: 1,
21287
+ precision: 0,
21288
+ onChange: function onChange(num) {
21289
+ return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'qty');
21290
+ }
21291
+ }) : /*#__PURE__*/React.createElement("span", null, val);
21292
+ }
21293
+ }, {
21294
+ dataIndex: 'saleAmount',
21295
+ title: '总金额',
21296
+ render: function render(val, record) {
21297
+ return ((record.qty || 0) * (+record.salePrice || 0)).toFixed(2);
21298
+ }
21299
+ }, {
21300
+ dataIndex: 'batchId',
21301
+ title: '批次号',
21302
+ render: renderTextEllipsis
21303
+ }, {
21304
+ dataIndex: 'isGift',
21305
+ title: '是否赠品',
21306
+ width: 100,
21307
+ render: function render(val, record, index) {
21308
+ return !disabled ? /*#__PURE__*/React.createElement(Select, {
21309
+ value: val,
21310
+ onChange: function onChange(value) {
21311
+ updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(value, index, 'isGift');
21312
+ },
21313
+ options: [{
21314
+ label: '是',
21315
+ value: true
21316
+ }, {
21317
+ label: '否',
21318
+ value: false
21319
+ }]
21320
+ }) : /*#__PURE__*/React.createElement("span", null, typeof val !== 'boolean' ? '' : val ? '是' : '否');
21321
+ }
21322
+ }, {
21323
+ dataIndex: 'remark',
21324
+ title: '备注',
21325
+ render: function render(val, record, index) {
21326
+ return !disabled ? /*#__PURE__*/React.createElement(Input, {
21327
+ style: {
21328
+ width: 70
21329
+ },
21330
+ value: val,
21331
+ onChange: function onChange(e) {
21332
+ return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(e.target.value, index, 'remark');
21333
+ }
21334
+ }) : renderTextEllipsis(val);
21335
+ }
21336
+ }, {
21337
+ dataIndex: 'outerOiId',
21338
+ title: '子订单号',
21339
+ width: 240,
21340
+ render: renderTextEllipsis
21341
+ }].map(fillAttrs),
21342
+ JST_EXCHANGE_GOODS: [{
21343
+ dataIndex: 'name',
21344
+ title: '商品名称',
21345
+ render: renderTextEllipsis
21346
+ }, {
21347
+ dataIndex: 'skuId',
21348
+ title: '商品编码',
21349
+ render: renderTextEllipsis
21350
+ }, {
21351
+ dataIndex: 'iId',
21352
+ title: '款式编码',
21353
+ render: renderTextEllipsis
21354
+ }, {
21355
+ dataIndex: 'pic',
21356
+ title: '商品图片',
21357
+ width: 100,
21358
+ render: function render(val) {
21359
+ return /*#__PURE__*/React.createElement(ApaasImage, {
21360
+ width: 30,
21361
+ src: val
21362
+ });
21363
+ }
21364
+ }, {
21365
+ dataIndex: 'propertiesValue',
21366
+ title: '规格值',
21367
+ render: renderTextEllipsis
21368
+ }, {
21369
+ dataIndex: 'saleBasePrice',
21370
+ title: '原价',
21371
+ render: function render(price) {
21372
+ return price || price === 0 ? Number(price).toFixed(2) : '';
21373
+ }
21374
+ }, {
21375
+ dataIndex: 'salePrice',
21376
+ title: '单价',
21377
+ width: 120,
21378
+ render: function render(val, record, index) {
21379
+ return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
21380
+ style: {
21381
+ width: 70
21382
+ },
21383
+ value: val,
21384
+ min: 0,
21385
+ precision: 2,
21386
+ onChange: function onChange(num) {
21387
+ return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'salePrice');
21388
+ }
21389
+ }) : /*#__PURE__*/React.createElement("span", null, val || val === 0 ? Number(val).toFixed(2) : '');
21390
+ }
21391
+ }, {
21392
+ dataIndex: 'qty',
21393
+ title: '数量',
21394
+ width: 100,
21395
+ render: function render(val, record, index) {
21396
+ return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
21397
+ style: {
21398
+ width: 70
21399
+ },
21400
+ value: val,
21401
+ min: 1,
21402
+ precision: 0,
21403
+ onChange: function onChange(num) {
21404
+ return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'qty');
21405
+ }
21406
+ }) : /*#__PURE__*/React.createElement("span", null, val);
21407
+ }
21408
+ }, {
21409
+ dataIndex: 'saleAmount',
21410
+ title: '总金额',
21411
+ render: function render(val, record) {
21412
+ return ((record.qty || 0) * (+record.salePrice || 0)).toFixed(2);
21413
+ }
21414
+ }, {
21415
+ dataIndex: 'isGift',
21416
+ title: '是否赠品',
21417
+ width: 100,
21418
+ render: function render(val, record, index) {
21419
+ return !disabled ? /*#__PURE__*/React.createElement(Select, {
21420
+ value: val,
21421
+ onChange: function onChange(value) {
21422
+ updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(value, index, 'isGift');
21423
+ },
21424
+ options: [{
21425
+ label: '是',
21426
+ value: true
21427
+ }, {
21428
+ label: '否',
21429
+ value: false
21430
+ }]
21431
+ }) : /*#__PURE__*/React.createElement("span", null, typeof val !== 'boolean' ? '' : val ? '是' : '否');
21432
+ }
21433
+ }, {
21434
+ dataIndex: 'remark',
21435
+ title: '备注',
21436
+ render: function render(val, record, index) {
21437
+ return !disabled ? /*#__PURE__*/React.createElement(Input, {
21438
+ style: {
21439
+ width: 70
21440
+ },
21441
+ value: val,
21442
+ onChange: function onChange(e) {
21443
+ return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(e.target.value, index, 'remark');
21444
+ }
21445
+ }) : renderTextEllipsis(val);
21446
+ }
21447
+ }].map(fillAttrs),
21448
+ // jst售后商品信息
21449
+ JST_AFTERSALE_GOODS: [{
21450
+ dataIndex: 'asId',
21451
+ title: "\u805A\u6C34\u6F6D\u552E\u540E\u5355\u53F7",
21452
+ width: 200,
21453
+ align: 'center',
21454
+ ellipsis: true,
21455
+ render: renderTextEllipsis
21456
+ }, {
21457
+ dataIndex: 'asiId',
21458
+ title: "\u552E\u540E\u5B50\u5355\u53F7",
21459
+ width: 200,
21460
+ align: 'center',
21461
+ ellipsis: true,
21462
+ render: renderTextEllipsis
21463
+ }, {
21464
+ dataIndex: 'outerOiId',
21465
+ title: "\u5B50\u8BA2\u5355\u53F7",
21466
+ width: 200,
21467
+ align: 'center',
21468
+ ellipsis: true,
21469
+ render: renderTextEllipsis
21470
+ }, {
21471
+ dataIndex: 'pic',
21472
+ title: "\u56FE\u7247",
21473
+ width: 100,
21474
+ align: 'center',
21475
+ render: function render(val) {
21476
+ return /*#__PURE__*/React.createElement(ApaasImage, {
21477
+ width: 30,
21478
+ src: val
21479
+ });
21480
+ },
21481
+ headerComponentType: 'pic'
21482
+ }, {
21483
+ dataIndex: 'name',
21484
+ title: "\u5546\u54C1\u540D\u79F0",
21485
+ width: 250,
21486
+ align: 'center',
21487
+ ellipsis: true,
21488
+ render: renderTextEllipsis
21489
+ }, {
21490
+ dataIndex: 'skuId',
21491
+ title: "\u5546\u54C1\u7F16\u7801",
21492
+ width: 200,
21493
+ align: 'center',
21494
+ ellipsis: true,
21495
+ render: renderTextEllipsis
21496
+ }, {
21497
+ dataIndex: 'propertiesValue',
21498
+ title: "\u89C4\u683C\u5C5E\u6027\u503C",
21499
+ width: 200,
21500
+ align: 'center',
21501
+ ellipsis: true,
21502
+ render: renderTextEllipsis
21503
+ }, {
21504
+ dataIndex: 'qty',
21505
+ title: "\u7533\u8BF7\u6570\u91CF",
21506
+ width: 150,
21507
+ align: 'center',
21508
+ ellipsis: true,
21509
+ render: renderTextEllipsis
21510
+ }, {
21511
+ dataIndex: 'rQty',
21512
+ title: "\u5B9E\u6536\u9000\u8D27\u6570\u91CF",
21513
+ width: 150,
21514
+ align: 'center',
21515
+ ellipsis: true,
21516
+ render: renderTextEllipsis
21517
+ }, {
21518
+ dataIndex: 'defectiveQty',
21519
+ title: "\u6B21\u54C1\u6570\u91CF",
21520
+ width: 150,
21521
+ align: 'center',
21522
+ ellipsis: true,
21523
+ render: renderTextEllipsis
21524
+ }, {
21525
+ dataIndex: 'amount',
21526
+ title: "\u7533\u8BF7\u91D1\u989D",
21527
+ width: 150,
21528
+ align: 'center',
21529
+ ellipsis: true,
21530
+ render: renderTextEllipsis
21531
+ }, {
21532
+ dataIndex: 'shopAmount',
21533
+ title: "\u7EBF\u4E0A\u660E\u7EC6\u91D1\u989D",
21534
+ width: 150,
21535
+ align: 'center',
21536
+ ellipsis: true,
21537
+ render: renderTextEllipsis
21538
+ }, {
21539
+ dataIndex: 'price',
21540
+ title: "\u5355\u4EF7",
21541
+ width: 150,
21542
+ align: 'center',
21543
+ ellipsis: true,
21544
+ render: renderTextEllipsis
21545
+ }, {
21546
+ dataIndex: 'combineSkuId',
21547
+ title: "\u7EC4\u5408\u5546\u54C1\u7F16\u7801",
21548
+ width: 250,
21549
+ align: 'center',
21550
+ ellipsis: true,
21551
+ render: renderTextEllipsis
21552
+ }, {
21553
+ dataIndex: 'shopSkuId',
21554
+ title: "\u5E97\u94FA\u5546\u54C1\u7F16\u7801",
21555
+ width: 200,
21556
+ align: 'center',
21557
+ ellipsis: true,
21558
+ render: renderTextEllipsis
21559
+ }, {
21560
+ dataIndex: 'iId',
21561
+ title: "\u6B3E\u5F0F\u7F16\u7801",
21562
+ width: 200,
21563
+ align: 'center',
21564
+ ellipsis: true,
21565
+ render: renderTextEllipsis
21566
+ }, {
21567
+ dataIndex: 'type',
21568
+ title: "\u552E\u540E\u7C7B\u578B",
21569
+ width: 150,
21570
+ align: 'center',
21571
+ ellipsis: true,
21572
+ render: renderTextEllipsis
21573
+ }, {
21574
+ dataIndex: 'skuType',
21575
+ title: "\u5546\u54C1\u7C7B\u578B",
21576
+ width: 150,
21577
+ align: 'center',
21578
+ ellipsis: true,
21579
+ render: renderTextEllipsis
21580
+ }, {
21581
+ dataIndex: 'isGift',
21582
+ title: '是否赠品',
21583
+ width: 100,
21584
+ render: function render(val) {
21585
+ return /*#__PURE__*/React.createElement("span", null, typeof val !== 'boolean' ? '' : val ? '是' : '否');
21586
+ },
21587
+ headerMapping: {
21588
+ transformValue: function transformValue(val) {
21589
+ return typeof val !== 'boolean' ? '' : val ? '是' : '否';
21590
+ },
21591
+ renderExport: function renderExport(val) {
21592
+ return typeof val !== 'boolean' ? '' : val ? '是' : '否';
21593
+ }
21594
+ }
21595
+ }, {
21596
+ dataIndex: 'receiveDate',
21597
+ title: "\u5165\u4ED3\u65F6\u95F4",
21598
+ width: 200,
21599
+ align: 'center',
21600
+ ellipsis: true,
21601
+ render: renderTextEllipsis
21602
+ }, {
21603
+ dataIndex: 'remark',
21604
+ title: "\u660E\u7EC6\u5907\u6CE8",
21605
+ width: 200,
21606
+ align: 'center',
21607
+ ellipsis: true,
21608
+ render: renderTextEllipsis
21609
+ }]
21610
+ };
21611
+ };
21612
+
21613
+ function toNum$3(value) {
21614
+ if (typeof value === 'string') {
21615
+ return value ? +value : void 0;
21616
+ }
21617
+ if (typeof value === 'number') {
21618
+ return value;
21619
+ }
21620
+ return void 0;
21621
+ }
21622
+ var getColumns$6 = function getColumns(_ref) {
21623
+ var _ref$text = _ref.text,
21624
+ disabled = _ref.disabled,
21625
+ updateHandle = _ref.updateHandle;
21626
+ return {
21627
+ KM_GOODS: [{
21628
+ dataIndex: 'skuPropertiesName',
21629
+ title: "\u89C4\u683C\u540D\u79F0",
21630
+ width: 250,
21631
+ render: renderTextEllipsis
21632
+ }, {
21633
+ dataIndex: 'sysTitle',
21634
+ title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
21635
+ width: 150,
21636
+ render: renderTextEllipsis
21637
+ }, {
21638
+ dataIndex: 'title',
21639
+ title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
21640
+ width: 150,
21641
+ render: renderTextEllipsis
21642
+ }, {
21643
+ dataIndex: 'shortTitle',
21644
+ title: "\u5546\u54C1\u7B80\u79F0",
21645
+ width: 150,
21646
+ render: renderTextEllipsis
21647
+ }, {
21648
+ dataIndex: 'sysOuterId',
21649
+ title: "\u7CFB\u7EDF\u5546\u5BB6\u7F16\u7801",
21650
+ width: 150,
21651
+ render: renderTextEllipsis
21652
+ }, {
21653
+ dataIndex: 'skuSysId',
21654
+ title: "\u7CFB\u7EDF\u89C4\u683CID",
20532
21655
  width: 150,
20533
- ellipsis: true,
20534
- align: 'center',
20535
- render: function render(val, record, index) {
20536
- return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Input, {
20537
- style: {
20538
- width: 70
20539
- },
20540
- value: val,
20541
- onChange: function onChange(e) {
20542
- return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(e.target.value, index, 'remark');
20543
- }
20544
- }) : renderTextEllipsis(val);
20545
- }
20546
- }],
20547
- JST_RETURN_GOODS: [{
20548
- dataIndex: 'name',
20549
- title: '商品名称',
20550
21656
  render: renderTextEllipsis
20551
21657
  }, {
20552
21658
  dataIndex: 'skuId',
20553
- title: '商品编码',
21659
+ title: "\u5E73\u53F0\u89C4\u683CID",
21660
+ width: 170,
20554
21661
  render: renderTextEllipsis
20555
21662
  }, {
20556
- dataIndex: 'iId',
20557
- title: '款式编码',
21663
+ dataIndex: 'outerSkuId',
21664
+ title: "\u5E73\u53F0\u89C4\u683C\u7F16\u7801",
21665
+ width: 170,
20558
21666
  render: renderTextEllipsis
20559
21667
  }, {
20560
- dataIndex: 'pic',
20561
- title: '商品图片',
21668
+ dataIndex: 'itemSysId',
21669
+ title: "\u7CFB\u7EDF\u5546\u54C1ID",
21670
+ width: 150,
21671
+ render: renderTextEllipsis
21672
+ }, {
21673
+ dataIndex: 'sysPicPath',
21674
+ title: "\u5546\u54C1\u56FE\u7247",
20562
21675
  width: 100,
20563
21676
  render: function render(val) {
20564
- return /*#__PURE__*/React.createElement(ApaasImage, {
21677
+ var imgUrl = (val === null || val === void 0 ? void 0 : val.startsWith('http')) ? val : "https://erp.superboss.cc".concat(val);
21678
+ return /*#__PURE__*/React.createElement(Image, {
20565
21679
  width: 30,
20566
- src: val
21680
+ src: imgUrl
20567
21681
  });
20568
21682
  }
20569
21683
  }, {
20570
- dataIndex: 'propertiesValue',
20571
- title: '规格值',
20572
- render: renderTextEllipsis
20573
- }, {
20574
- dataIndex: 'saleBasePrice',
20575
- title: '原价',
20576
- render: function render(price) {
20577
- return price || price === 0 ? Number(price).toFixed(2) : '';
20578
- }
20579
- }, {
20580
- dataIndex: 'salePrice',
20581
- title: '单价',
20582
- width: 120,
20583
- validator: function validator(_rule, value) {
20584
- var goodsName = '';
20585
- if (((value === null || value === void 0 ? void 0 : value.jstReturnGoods) || []).some(function (goods) {
20586
- var v = toNum$2(goods === null || goods === void 0 ? void 0 : goods.salePrice);
20587
- var res = typeof v === 'number' ? v < 0 : true;
20588
- if (res) {
20589
- goodsName = (goods === null || goods === void 0 ? void 0 : goods.name) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.name, "]") : '';
20590
- }
20591
- return res;
20592
- })) {
20593
- return Promise.reject("".concat(goodsName, "\u5355\u4EF7\u4E3A\u5927\u4E8E\u7B49\u4E8E0\u7684\u6570"));
20594
- }
20595
- },
21684
+ dataIndex: 'num',
21685
+ title: "\u6570\u91CF",
21686
+ width: 100,
20596
21687
  render: function render(val, record, index) {
20597
- return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
21688
+ return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
20598
21689
  style: {
20599
21690
  width: 70
20600
21691
  },
20601
21692
  value: val,
20602
- min: 0,
20603
- precision: 2,
21693
+ min: 1,
21694
+ precision: 0,
20604
21695
  onChange: function onChange(num) {
20605
- return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'salePrice');
21696
+ return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'num');
20606
21697
  }
20607
- }) : /*#__PURE__*/React.createElement("span", null, val || val === 0 ? Number(val).toFixed(2) : '');
21698
+ }) : /*#__PURE__*/React.createElement("span", null, val);
20608
21699
  }
20609
21700
  }, {
20610
- dataIndex: 'qty',
20611
- title: '数量',
20612
- width: 100,
20613
- validator: function validator(_rule, value) {
20614
- var goodsName = '';
20615
- if (((value === null || value === void 0 ? void 0 : value.jstReturnGoods) || []).some(function (goods) {
20616
- var qty = toNum$2(goods === null || goods === void 0 ? void 0 : goods.qty);
20617
- var res = typeof qty === 'number' ? qty < 1 : true;
20618
- if (res) {
20619
- goodsName = (goods === null || goods === void 0 ? void 0 : goods.name) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.name, "]") : '';
20620
- }
20621
- return res;
20622
- })) {
20623
- return Promise.reject("".concat(goodsName, "\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
20624
- }
20625
- },
21701
+ dataIndex: 'payment',
21702
+ title: "\u5B9E\u4ED8\u91D1\u989D",
21703
+ width: 150,
20626
21704
  render: function render(val, record, index) {
20627
- return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
21705
+ return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
20628
21706
  style: {
20629
- width: 70
21707
+ width: 130
20630
21708
  },
20631
21709
  value: val,
20632
- min: 1,
20633
- precision: 0,
21710
+ min: 0,
21711
+ precision: 2,
20634
21712
  onChange: function onChange(num) {
20635
- return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'qty');
21713
+ return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'payment');
20636
21714
  }
20637
- }) : /*#__PURE__*/React.createElement("span", null, val);
21715
+ }) : /*#__PURE__*/React.createElement("span", null, val || val === 0 ? Number(val).toFixed(2) : '');
20638
21716
  }
20639
21717
  }, {
20640
- dataIndex: 'saleAmount',
20641
- title: '总金额',
20642
- render: function render(val, record) {
20643
- return ((record.qty || 0) * (+record.salePrice || 0)).toFixed(2);
21718
+ dataIndex: 'price',
21719
+ title: "\u5546\u54C1\u9500\u552E\u4EF7",
21720
+ width: 150,
21721
+ render: function render(val) {
21722
+ return val || val === 0 ? Number(val).toFixed(2) : '';
20644
21723
  }
20645
21724
  }, {
20646
- dataIndex: 'batchId',
20647
- title: '批次号',
21725
+ dataIndex: 'type',
21726
+ title: "\u5546\u54C1\u7C7B\u578B",
21727
+ width: 150,
20648
21728
  render: renderTextEllipsis
20649
21729
  }, {
20650
- dataIndex: 'isGift',
20651
- title: '是否赠品',
20652
- width: 100,
20653
- render: function render(val, record, index) {
20654
- return !disabled ? /*#__PURE__*/React.createElement(Select, {
20655
- value: val,
20656
- onChange: function onChange(value) {
20657
- updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(value, index, 'isGift');
20658
- },
20659
- options: [{
20660
- label: '是',
20661
- value: true
20662
- }, {
20663
- label: '否',
20664
- value: false
20665
- }]
20666
- }) : /*#__PURE__*/React.createElement("span", null, typeof val !== 'boolean' ? '' : val ? '是' : '否');
20667
- }
21730
+ dataIndex: 'supplierName',
21731
+ title: "\u4F9B\u5E94\u5546\u540D\u79F0",
21732
+ width: 150,
21733
+ render: renderTextEllipsis
20668
21734
  }, {
20669
- dataIndex: 'remark',
20670
- title: '备注',
20671
- render: function render(val, record, index) {
20672
- return !disabled ? /*#__PURE__*/React.createElement(Input, {
20673
- style: {
20674
- width: 70
20675
- },
20676
- value: val,
20677
- onChange: function onChange(e) {
20678
- return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(e.target.value, index, 'remark');
20679
- }
20680
- }) : renderTextEllipsis(val);
20681
- }
21735
+ dataIndex: 'supplierCode',
21736
+ title: "\u4F9B\u5E94\u5546\u7F16\u7801",
21737
+ width: 150,
21738
+ render: renderTextEllipsis
21739
+ }].map(function (item) {
21740
+ return _objectSpread2(_objectSpread2({}, item), {}, {
21741
+ align: 'center',
21742
+ ellipsis: true
21743
+ });
21744
+ }),
21745
+ KM_REISSUE_GOODS: [{
21746
+ dataIndex: 'skuPropertiesName',
21747
+ title: "\u89C4\u683C\u540D\u79F0",
21748
+ width: 250,
21749
+ render: renderTextEllipsis
20682
21750
  }, {
20683
- dataIndex: 'outerOiId',
20684
- title: '子订单号',
20685
- width: 240,
21751
+ dataIndex: 'sysTitle',
21752
+ title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
21753
+ width: 150,
20686
21754
  render: renderTextEllipsis
20687
- }].map(fillAttrs),
20688
- JST_EXCHANGE_GOODS: [{
20689
- dataIndex: 'name',
20690
- title: '商品名称',
21755
+ }, {
21756
+ dataIndex: 'shortTitle',
21757
+ title: "\u5546\u54C1\u7B80\u79F0",
21758
+ width: 150,
20691
21759
  render: renderTextEllipsis
20692
21760
  }, {
20693
- dataIndex: 'skuId',
20694
- title: '商品编码',
21761
+ dataIndex: 'title',
21762
+ title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
21763
+ width: 150,
20695
21764
  render: renderTextEllipsis
20696
21765
  }, {
20697
- dataIndex: 'iId',
20698
- title: '款式编码',
21766
+ dataIndex: 'sysOuterId',
21767
+ title: "\u7CFB\u7EDF\u5546\u5BB6\u7F16\u7801",
21768
+ width: 150,
20699
21769
  render: renderTextEllipsis
20700
21770
  }, {
20701
- dataIndex: 'pic',
20702
- title: '商品图片',
20703
- width: 100,
20704
- render: function render(val) {
20705
- return /*#__PURE__*/React.createElement(ApaasImage, {
20706
- width: 30,
20707
- src: val
20708
- });
20709
- }
21771
+ dataIndex: 'itemSysId',
21772
+ title: "\u7CFB\u7EDF\u5546\u54C1ID",
21773
+ width: 150,
21774
+ render: renderTextEllipsis
20710
21775
  }, {
20711
- dataIndex: 'propertiesValue',
20712
- title: '规格值',
21776
+ dataIndex: 'skuSysId',
21777
+ title: "\u7CFB\u7EDF\u89C4\u683CID",
21778
+ width: 150,
20713
21779
  render: renderTextEllipsis
20714
21780
  }, {
20715
- dataIndex: 'saleBasePrice',
20716
- title: '原价',
20717
- render: function render(price) {
20718
- return price || price === 0 ? Number(price).toFixed(2) : '';
20719
- }
21781
+ dataIndex: 'skuId',
21782
+ title: "\u5E73\u53F0\u89C4\u683CID",
21783
+ width: 170,
21784
+ render: renderTextEllipsis
20720
21785
  }, {
20721
- dataIndex: 'salePrice',
20722
- title: '单价',
20723
- width: 120,
21786
+ dataIndex: 'outerSkuId',
21787
+ title: "\u5E73\u53F0\u89C4\u683C\u7F16\u7801",
21788
+ width: 170,
21789
+ render: renderTextEllipsis
21790
+ }, {
21791
+ dataIndex: 'realNum',
21792
+ title: "\u5B9E\u9645\u8865\u53D1\u6570\u91CF",
21793
+ width: 100,
21794
+ validator: function validator(_rule, value) {
21795
+ var title = '';
21796
+ if (((value === null || value === void 0 ? void 0 : value.kmReissueGoods) || []).some(function (goods) {
21797
+ var realNum = toNum$3(goods === null || goods === void 0 ? void 0 : goods.realNum);
21798
+ var res = typeof realNum === 'number' ? realNum < 1 : true;
21799
+ if (res) {
21800
+ title = (goods === null || goods === void 0 ? void 0 : goods.goodName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodName, "]") : '';
21801
+ }
21802
+ return res;
21803
+ })) {
21804
+ return Promise.reject("".concat(title, "\u5B9E\u9645\u8865\u53D1\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
21805
+ }
21806
+ },
20724
21807
  render: function render(val, record, index) {
20725
- return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
21808
+ return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
20726
21809
  style: {
20727
21810
  width: 70
20728
21811
  },
20729
21812
  value: val,
20730
- min: 0,
20731
- precision: 2,
21813
+ min: 1,
21814
+ precision: 0,
20732
21815
  onChange: function onChange(num) {
20733
- return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'salePrice');
21816
+ return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'realNum');
20734
21817
  }
20735
- }) : /*#__PURE__*/React.createElement("span", null, val || val === 0 ? Number(val).toFixed(2) : '');
21818
+ }) : /*#__PURE__*/React.createElement("span", null, val);
20736
21819
  }
20737
21820
  }, {
20738
- dataIndex: 'qty',
20739
- title: '数量',
21821
+ dataIndex: 'desiredNum',
21822
+ title: "\u5E94\u8865\u53D1\u6570\u91CF",
20740
21823
  width: 100,
20741
21824
  render: function render(val, record, index) {
20742
- return !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
21825
+ return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
20743
21826
  style: {
20744
21827
  width: 70
20745
21828
  },
@@ -20747,281 +21830,194 @@ var getColumns$5 = function getColumns() {
20747
21830
  min: 1,
20748
21831
  precision: 0,
20749
21832
  onChange: function onChange(num) {
20750
- return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'qty');
21833
+ return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'desiredNum');
20751
21834
  }
20752
21835
  }) : /*#__PURE__*/React.createElement("span", null, val);
20753
21836
  }
20754
21837
  }, {
20755
- dataIndex: 'saleAmount',
20756
- title: '总金额',
20757
- render: function render(val, record) {
20758
- return ((record.qty || 0) * (+record.salePrice || 0)).toFixed(2);
20759
- }
20760
- }, {
20761
- dataIndex: 'isGift',
20762
- title: '是否赠品',
20763
- width: 100,
20764
- render: function render(val, record, index) {
20765
- return !disabled ? /*#__PURE__*/React.createElement(Select, {
20766
- value: val,
20767
- onChange: function onChange(value) {
20768
- updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(value, index, 'isGift');
20769
- },
20770
- options: [{
20771
- label: '是',
20772
- value: true
20773
- }, {
20774
- label: '否',
20775
- value: false
20776
- }]
20777
- }) : /*#__PURE__*/React.createElement("span", null, typeof val !== 'boolean' ? '' : val ? '是' : '否');
21838
+ dataIndex: 'price',
21839
+ title: "\u5546\u54C1\u9500\u552E\u4EF7",
21840
+ width: 150,
21841
+ render: function render(val) {
21842
+ return val || val === 0 ? Number(val).toFixed(2) : '';
20778
21843
  }
20779
21844
  }, {
20780
- dataIndex: 'remark',
20781
- title: '备注',
21845
+ dataIndex: 'payment',
21846
+ title: "\u5B9E\u4ED8\u91D1\u989D",
21847
+ width: 150,
20782
21848
  render: function render(val, record, index) {
20783
- return !disabled ? /*#__PURE__*/React.createElement(Input, {
21849
+ return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
20784
21850
  style: {
20785
- width: 70
21851
+ width: 130
20786
21852
  },
20787
21853
  value: val,
20788
- onChange: function onChange(e) {
20789
- return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(e.target.value, index, 'remark');
21854
+ min: 0,
21855
+ precision: 2,
21856
+ onChange: function onChange(num) {
21857
+ return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'payment');
20790
21858
  }
20791
- }) : renderTextEllipsis(val);
21859
+ }) : /*#__PURE__*/React.createElement("span", null, val || val === 0 ? Number(val).toFixed(2) : '');
20792
21860
  }
20793
- }].map(fillAttrs),
20794
- // jst售后商品信息
20795
- JST_AFTERSALE_GOODS: [{
20796
- dataIndex: 'asId',
20797
- title: "\u805A\u6C34\u6F6D\u552E\u540E\u5355\u53F7",
20798
- width: 200,
20799
- align: 'center',
20800
- ellipsis: true,
21861
+ }, {
21862
+ dataIndex: 'type',
21863
+ title: "\u5546\u54C1\u7C7B\u578B",
21864
+ width: 150,
20801
21865
  render: renderTextEllipsis
20802
21866
  }, {
20803
- dataIndex: 'asiId',
20804
- title: "\u552E\u540E\u5B50\u5355\u53F7",
20805
- width: 200,
20806
- align: 'center',
20807
- ellipsis: true,
21867
+ dataIndex: 'supplierName',
21868
+ title: "\u4F9B\u5E94\u5546\u540D\u79F0",
21869
+ width: 150,
20808
21870
  render: renderTextEllipsis
20809
21871
  }, {
20810
- dataIndex: 'outerOiId',
20811
- title: "\u5B50\u8BA2\u5355\u53F7",
20812
- width: 200,
20813
- align: 'center',
20814
- ellipsis: true,
21872
+ dataIndex: 'supplierCode',
21873
+ title: "\u4F9B\u5E94\u5546\u7F16\u7801",
21874
+ width: 150,
20815
21875
  render: renderTextEllipsis
20816
21876
  }, {
20817
- dataIndex: 'pic',
20818
- title: "\u56FE\u7247",
21877
+ dataIndex: 'sysPicPath',
21878
+ title: "\u5546\u54C1\u56FE\u7247",
20819
21879
  width: 100,
20820
- align: 'center',
20821
21880
  render: function render(val) {
20822
- return /*#__PURE__*/React.createElement(ApaasImage, {
21881
+ var imgUrl = (val === null || val === void 0 ? void 0 : val.startsWith('http')) ? val : "https://erp.superboss.cc".concat(val);
21882
+ return /*#__PURE__*/React.createElement(Image, {
20823
21883
  width: 30,
20824
- src: val
21884
+ src: imgUrl
20825
21885
  });
20826
- },
20827
- headerComponentType: 'pic'
20828
- }, {
20829
- dataIndex: 'name',
20830
- title: "\u5546\u54C1\u540D\u79F0",
20831
- width: 250,
20832
- align: 'center',
20833
- ellipsis: true,
20834
- render: renderTextEllipsis
20835
- }, {
20836
- dataIndex: 'skuId',
20837
- title: "\u5546\u54C1\u7F16\u7801",
20838
- width: 200,
20839
- align: 'center',
20840
- ellipsis: true,
20841
- render: renderTextEllipsis
20842
- }, {
20843
- dataIndex: 'propertiesValue',
20844
- title: "\u89C4\u683C\u5C5E\u6027\u503C",
20845
- width: 200,
20846
- align: 'center',
20847
- ellipsis: true,
20848
- render: renderTextEllipsis
20849
- }, {
20850
- dataIndex: 'qty',
20851
- title: "\u7533\u8BF7\u6570\u91CF",
20852
- width: 150,
21886
+ }
21887
+ }].map(function (item) {
21888
+ return _objectSpread2(_objectSpread2({}, item), {}, {
21889
+ align: 'center',
21890
+ ellipsis: true
21891
+ });
21892
+ })
21893
+ };
21894
+ };
21895
+
21896
+ var isNumberOrNumberString$2 = function isNumberOrNumberString(value) {
21897
+ if (typeof value === 'number') return true;
21898
+ if (typeof value === 'string' && !isNaN(Number(value)) && value.trim() !== '') return true;
21899
+ return false;
21900
+ };
21901
+ function toNum$4(value) {
21902
+ if (typeof value === 'string') {
21903
+ return value ? +value : void 0;
21904
+ }
21905
+ if (typeof value === 'number') {
21906
+ return value;
21907
+ }
21908
+ return void 0;
21909
+ }
21910
+ var getColumns$7 = function getColumns(_ref) {
21911
+ var _ref$text = _ref.text,
21912
+ disabled = _ref.disabled,
21913
+ updateHandle = _ref.updateHandle,
21914
+ updateDataHandle = _ref.updateDataHandle;
21915
+ return {
21916
+ //巨益商品信息
21917
+ JY_GOODS: [{
21918
+ dataIndex: 'productName',
21919
+ title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
20853
21920
  align: 'center',
20854
21921
  ellipsis: true,
20855
- render: renderTextEllipsis
20856
- }, {
20857
- dataIndex: 'rQty',
20858
- title: "\u5B9E\u6536\u9000\u8D27\u6570\u91CF",
20859
21922
  width: 150,
20860
- align: 'center',
20861
- ellipsis: true,
20862
21923
  render: renderTextEllipsis
20863
21924
  }, {
20864
- dataIndex: 'defectiveQty',
20865
- title: "\u6B21\u54C1\u6570\u91CF",
20866
- width: 150,
21925
+ dataIndex: 'productCode',
21926
+ title: "\u7CFB\u7EDF\u5546\u54C1\u7F16\u7801",
20867
21927
  align: 'center',
20868
21928
  ellipsis: true,
20869
- render: renderTextEllipsis
20870
- }, {
20871
- dataIndex: 'amount',
20872
- title: "\u7533\u8BF7\u91D1\u989D",
20873
21929
  width: 150,
20874
- align: 'center',
20875
- ellipsis: true,
20876
21930
  render: renderTextEllipsis
20877
21931
  }, {
20878
- dataIndex: 'shopAmount',
20879
- title: "\u7EBF\u4E0A\u660E\u7EC6\u91D1\u989D",
20880
- width: 150,
21932
+ dataIndex: 'productId',
21933
+ title: "\u7CFB\u7EDF\u5546\u54C1ID",
20881
21934
  align: 'center',
20882
21935
  ellipsis: true,
20883
- render: renderTextEllipsis
20884
- }, {
20885
- dataIndex: 'price',
20886
- title: "\u5355\u4EF7",
20887
21936
  width: 150,
20888
- align: 'center',
20889
- ellipsis: true,
20890
- render: renderTextEllipsis
20891
- }, {
20892
- dataIndex: 'combineSkuId',
20893
- title: "\u7EC4\u5408\u5546\u54C1\u7F16\u7801",
20894
- width: 250,
20895
- align: 'center',
20896
- ellipsis: true,
20897
- render: renderTextEllipsis
20898
- }, {
20899
- dataIndex: 'shopSkuId',
20900
- title: "\u5E97\u94FA\u5546\u54C1\u7F16\u7801",
20901
- width: 200,
20902
- align: 'center',
20903
- ellipsis: true,
20904
- render: renderTextEllipsis
20905
- }, {
20906
- dataIndex: 'iId',
20907
- title: "\u6B3E\u5F0F\u7F16\u7801",
20908
- width: 200,
20909
- align: 'center',
20910
- ellipsis: true,
20911
21937
  render: renderTextEllipsis
20912
21938
  }, {
20913
- dataIndex: 'type',
20914
- title: "\u552E\u540E\u7C7B\u578B",
20915
- width: 150,
21939
+ dataIndex: 'skuName',
21940
+ title: "\u7CFB\u7EDF\u89C4\u683C\u540D\u79F0",
20916
21941
  align: 'center',
20917
21942
  ellipsis: true,
20918
- render: renderTextEllipsis
20919
- }, {
20920
- dataIndex: 'skuType',
20921
- title: "\u5546\u54C1\u7C7B\u578B",
20922
21943
  width: 150,
20923
- align: 'center',
20924
- ellipsis: true,
20925
21944
  render: renderTextEllipsis
20926
21945
  }, {
20927
- dataIndex: 'isGift',
20928
- title: '是否赠品',
20929
- width: 100,
20930
- render: function render(val) {
20931
- return /*#__PURE__*/React.createElement("span", null, typeof val !== 'boolean' ? '' : val ? '是' : '否');
20932
- },
20933
- headerMapping: {
20934
- transformValue: function transformValue(val) {
20935
- return typeof val !== 'boolean' ? '' : val ? '是' : '否';
20936
- },
20937
- renderExport: function renderExport(val) {
20938
- return typeof val !== 'boolean' ? '' : val ? '是' : '否';
20939
- }
20940
- }
20941
- }, {
20942
- dataIndex: 'receiveDate',
20943
- title: "\u5165\u4ED3\u65F6\u95F4",
20944
- width: 200,
21946
+ dataIndex: 'skuCode',
21947
+ title: "\u7CFB\u7EDF\u89C4\u683C\u7F16\u7801",
20945
21948
  align: 'center',
20946
21949
  ellipsis: true,
21950
+ width: 150,
20947
21951
  render: renderTextEllipsis
20948
21952
  }, {
20949
- dataIndex: 'remark',
20950
- title: "\u660E\u7EC6\u5907\u6CE8",
20951
- width: 200,
21953
+ dataIndex: 'specId',
21954
+ title: "\u89C4\u683CID",
20952
21955
  align: 'center',
20953
21956
  ellipsis: true,
20954
- render: renderTextEllipsis
20955
- }]
20956
- };
20957
- };
20958
-
20959
- function toNum$3(value) {
20960
- if (typeof value === 'string') {
20961
- return value ? +value : void 0;
20962
- }
20963
- if (typeof value === 'number') {
20964
- return value;
20965
- }
20966
- return void 0;
20967
- }
20968
- var getColumns$6 = function getColumns(_ref) {
20969
- var _ref$text = _ref.text,
20970
- disabled = _ref.disabled,
20971
- updateHandle = _ref.updateHandle;
20972
- return {
20973
- KM_GOODS: [{
20974
- dataIndex: 'skuPropertiesName',
20975
- title: "\u89C4\u683C\u540D\u79F0",
20976
- width: 250,
20977
- render: renderTextEllipsis
20978
- }, {
20979
- dataIndex: 'sysTitle',
20980
- title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
20981
21957
  width: 150,
20982
21958
  render: renderTextEllipsis
20983
21959
  }, {
20984
- dataIndex: 'title',
20985
- title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
21960
+ dataIndex: 'goodsClass',
21961
+ title: "\u8D27\u54C1\u7C7B\u522B",
20986
21962
  width: 150,
20987
21963
  render: renderTextEllipsis
20988
21964
  }, {
20989
- dataIndex: 'shortTitle',
20990
- title: "\u5546\u54C1\u7B80\u79F0",
21965
+ dataIndex: 'code',
21966
+ title: "\u6761\u7801",
20991
21967
  width: 150,
20992
21968
  render: renderTextEllipsis
20993
- }, {
20994
- dataIndex: 'sysOuterId',
20995
- title: "\u7CFB\u7EDF\u5546\u5BB6\u7F16\u7801",
20996
- width: 150,
21969
+ },
21970
+ // {
21971
+ // dataIndex: 'specName',
21972
+ // title: `规格名称`,
21973
+ // align: 'center',
21974
+ // ellipsis: true,
21975
+ // width: 200,
21976
+ // },
21977
+ // {
21978
+ // dataIndex: 'specCode',
21979
+ // title: `规格编号`,
21980
+ // align: 'center',
21981
+ // ellipsis: true,
21982
+ // width: 150,
21983
+ // },
21984
+ {
21985
+ dataIndex: 'mallProductName',
21986
+ title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
21987
+ align: 'center',
21988
+ ellipsis: true,
21989
+ width: 250,
20997
21990
  render: renderTextEllipsis
20998
21991
  }, {
20999
- dataIndex: 'skuSysId',
21000
- title: "\u7CFB\u7EDF\u89C4\u683CID",
21992
+ dataIndex: 'mallProductOutCode',
21993
+ title: "\u5E73\u53F0\u5546\u54C1\u7F16\u7801",
21994
+ align: 'center',
21995
+ ellipsis: true,
21001
21996
  width: 150,
21002
21997
  render: renderTextEllipsis
21003
21998
  }, {
21004
- dataIndex: 'skuId',
21005
- title: "\u5E73\u53F0\u89C4\u683C\u7F16\u53F7",
21006
- width: 170,
21999
+ dataIndex: 'mallProductId',
22000
+ title: "\u5E73\u53F0\u5546\u54C1ID",
22001
+ align: 'center',
22002
+ ellipsis: true,
22003
+ width: 250,
21007
22004
  render: renderTextEllipsis
21008
22005
  }, {
21009
- dataIndex: 'itemSysId',
21010
- title: "\u7CFB\u7EDF\u5546\u54C1ID",
21011
- width: 150,
22006
+ dataIndex: 'mallSkuName',
22007
+ title: "\u5E73\u53F0\u89C4\u683C\u540D\u79F0",
22008
+ align: 'center',
22009
+ ellipsis: true,
22010
+ width: 250,
21012
22011
  render: renderTextEllipsis
21013
22012
  }, {
21014
- dataIndex: 'sysPicPath',
21015
- title: "\u5546\u54C1\u56FE\u7247",
21016
- width: 100,
21017
- render: function render(val) {
21018
- return /*#__PURE__*/React.createElement(Image, {
21019
- width: 30,
21020
- src: val
21021
- });
21022
- }
22013
+ dataIndex: 'mallSkuId',
22014
+ title: "\u5E73\u53F0\u89C4\u683CID",
22015
+ align: 'center',
22016
+ ellipsis: true,
22017
+ width: 250,
22018
+ render: renderTextEllipsis
21023
22019
  }, {
21024
- dataIndex: 'num',
22020
+ dataIndex: 'sellCount',
21025
22021
  title: "\u6570\u91CF",
21026
22022
  width: 100,
21027
22023
  render: function render(val, record, index) {
@@ -21033,13 +22029,16 @@ var getColumns$6 = function getColumns(_ref) {
21033
22029
  min: 1,
21034
22030
  precision: 0,
21035
22031
  onChange: function onChange(num) {
21036
- return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'num');
22032
+ updateDataHandle({
22033
+ sellCount: num,
22034
+ sellTotal: num && isNumberOrNumberString$2(record.sellPrice) ? num * record.sellPrice : null
22035
+ }, index);
21037
22036
  }
21038
22037
  }) : /*#__PURE__*/React.createElement("span", null, val);
21039
22038
  }
21040
22039
  }, {
21041
- dataIndex: 'payment',
21042
- title: "\u5B9E\u4ED8\u91D1\u989D",
22040
+ dataIndex: 'sellPrice',
22041
+ title: "\u5355\u4EF7",
21043
22042
  width: 150,
21044
22043
  render: function render(val, record, index) {
21045
22044
  return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
@@ -21050,83 +22049,198 @@ var getColumns$6 = function getColumns(_ref) {
21050
22049
  min: 0,
21051
22050
  precision: 2,
21052
22051
  onChange: function onChange(num) {
21053
- return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'payment');
22052
+ updateDataHandle({
22053
+ sellPrice: num,
22054
+ sellTotal: num && isNumberOrNumberString$2(record.sellCount) ? num * record.sellCount : null
22055
+ }, index);
21054
22056
  }
21055
- }) : /*#__PURE__*/React.createElement("span", null, val || val === 0 ? Number(val).toFixed(2) : '');
22057
+ }) : /*#__PURE__*/React.createElement("span", null, val);
21056
22058
  }
21057
22059
  }, {
21058
- dataIndex: 'price',
21059
- title: "\u5546\u54C1\u9500\u552E\u4EF7",
22060
+ dataIndex: 'mallSellingPrice',
22061
+ title: "\u5E73\u53F0\u5546\u54C1\u4EF7\u683C",
22062
+ width: 150
22063
+ }, {
22064
+ dataIndex: 'sellTotal',
22065
+ title: "\u91D1\u989D",
22066
+ width: 150
22067
+ }, {
22068
+ dataIndex: 'settlementPrice',
22069
+ title: "\u7ED3\u7B97\u4EF7",
22070
+ width: 150
22071
+ }, {
22072
+ dataIndex: 'divideOrderFee',
22073
+ title: "\u5206\u644A\u5B9E\u4ED8\u91D1\u989D",
22074
+ width: 150
22075
+ }, {
22076
+ dataIndex: 'bfit',
22077
+ title: "\u662F\u5426\u7EC4\u5408\u88C5",
21060
22078
  width: 150,
21061
- render: function render(val) {
21062
- return val || val === 0 ? Number(val).toFixed(2) : '';
22079
+ render: function render(val, record, index) {
22080
+ return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
22081
+ dropdownStyle: {
22082
+ zIndex: 2000
22083
+ },
22084
+ getPopupContainer: function getPopupContainer() {
22085
+ return document.body;
22086
+ },
22087
+ value: val,
22088
+ onChange: function onChange(value) {
22089
+ updateHandle(value, index, 'bfit');
22090
+ },
22091
+ options: [{
22092
+ label: '是',
22093
+ value: 'True'
22094
+ }, {
22095
+ label: '否',
22096
+ value: 'False'
22097
+ }]
22098
+ }) : /*#__PURE__*/React.createElement("span", null, val === 'True' ? '是' : '否');
21063
22099
  }
21064
22100
  }, {
21065
- dataIndex: 'type',
21066
- title: "\u5546\u54C1\u7C7B\u578B",
22101
+ dataIndex: 'combinationName',
22102
+ title: "\u7EC4\u5408\u5546\u54C1\u540D\u79F0",
22103
+ width: 150,
22104
+ render: renderTextEllipsis
22105
+ }, {
22106
+ dataIndex: 'combinationCode',
22107
+ title: "\u7EC4\u5408\u5546\u54C1\u7F16\u7801",
21067
22108
  width: 150,
21068
22109
  render: renderTextEllipsis
22110
+ }, {
22111
+ dataIndex: 'gift',
22112
+ title: "\u662F\u5426\u8D60\u54C1",
22113
+ width: 150,
22114
+ render: function render(val, record, index) {
22115
+ return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
22116
+ dropdownStyle: {
22117
+ zIndex: 2000
22118
+ },
22119
+ getPopupContainer: function getPopupContainer() {
22120
+ return document.body;
22121
+ },
22122
+ value: val,
22123
+ onChange: function onChange(value) {
22124
+ updateHandle(value, index, 'gift');
22125
+ },
22126
+ options: [{
22127
+ label: '是',
22128
+ value: '1'
22129
+ }, {
22130
+ label: '否',
22131
+ value: '0'
22132
+ }]
22133
+ }) : /*#__PURE__*/React.createElement("span", null, val === '1' ? '是' : '否');
22134
+ }
21069
22135
  }].map(function (item) {
21070
22136
  return _objectSpread2(_objectSpread2({}, item), {}, {
21071
22137
  align: 'center',
21072
22138
  ellipsis: true
21073
22139
  });
21074
22140
  }),
21075
- KM_REISSUE_GOODS: [{
21076
- dataIndex: 'skuPropertiesName',
21077
- title: "\u89C4\u683C\u540D\u79F0",
21078
- width: 250,
22141
+ // 巨益补发商品信息
22142
+ JY_REISSUE_GOODS: [{
22143
+ dataIndex: 'productName',
22144
+ title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
22145
+ align: 'center',
22146
+ ellipsis: true,
22147
+ width: 150,
21079
22148
  render: renderTextEllipsis
21080
22149
  }, {
21081
- dataIndex: 'sysTitle',
21082
- title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
22150
+ dataIndex: 'productCode',
22151
+ title: "\u7CFB\u7EDF\u5546\u54C1\u7F16\u7801",
22152
+ align: 'center',
22153
+ ellipsis: true,
21083
22154
  width: 150,
21084
22155
  render: renderTextEllipsis
21085
22156
  }, {
21086
- dataIndex: 'shortTitle',
21087
- title: "\u5546\u54C1\u7B80\u79F0",
22157
+ dataIndex: 'productId',
22158
+ title: "\u7CFB\u7EDF\u5546\u54C1ID",
22159
+ align: 'center',
22160
+ ellipsis: true,
21088
22161
  width: 150,
21089
22162
  render: renderTextEllipsis
21090
22163
  }, {
21091
- dataIndex: 'title',
22164
+ dataIndex: 'skuName',
22165
+ title: "\u7CFB\u7EDF\u89C4\u683C\u540D\u79F0",
22166
+ align: 'center',
22167
+ ellipsis: true,
22168
+ width: 150,
22169
+ render: renderTextEllipsis
22170
+ }, {
22171
+ dataIndex: 'skuCode',
22172
+ title: "\u7CFB\u7EDF\u89C4\u683C\u7F16\u7801",
22173
+ align: 'center',
22174
+ ellipsis: true,
22175
+ width: 150,
22176
+ render: renderTextEllipsis
22177
+ }, {
22178
+ dataIndex: 'specId',
22179
+ title: "\u89C4\u683CID",
22180
+ align: 'center',
22181
+ ellipsis: true,
22182
+ width: 150,
22183
+ render: renderTextEllipsis
22184
+ }, {
22185
+ dataIndex: 'goodsClass',
22186
+ title: "\u8D27\u54C1\u7C7B\u522B",
22187
+ width: 150,
22188
+ render: renderTextEllipsis
22189
+ }, {
22190
+ dataIndex: 'code',
22191
+ title: "\u6761\u7801",
22192
+ width: 150,
22193
+ render: renderTextEllipsis
22194
+ }, {
22195
+ dataIndex: 'mallProductName',
21092
22196
  title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
22197
+ align: 'center',
22198
+ ellipsis: true,
21093
22199
  width: 150,
21094
22200
  render: renderTextEllipsis
21095
22201
  }, {
21096
- dataIndex: 'sysOuterId',
21097
- title: "\u7CFB\u7EDF\u5546\u5BB6\u7F16\u7801",
22202
+ dataIndex: 'mallProductOutCode',
22203
+ title: "\u5E73\u53F0\u5546\u54C1\u7F16\u7801",
22204
+ align: 'center',
22205
+ ellipsis: true,
21098
22206
  width: 150,
21099
22207
  render: renderTextEllipsis
21100
22208
  }, {
21101
- dataIndex: 'itemSysId',
21102
- title: "\u7CFB\u7EDF\u5546\u54C1ID",
22209
+ dataIndex: 'mallProductId',
22210
+ title: "\u5E73\u53F0\u5546\u54C1ID",
22211
+ align: 'center',
22212
+ ellipsis: true,
21103
22213
  width: 150,
21104
22214
  render: renderTextEllipsis
21105
22215
  }, {
21106
- dataIndex: 'skuSysId',
21107
- title: "\u7CFB\u7EDF\u89C4\u683CID",
22216
+ dataIndex: 'mallSkuName',
22217
+ title: "\u5E73\u53F0\u89C4\u683C\u540D\u79F0",
22218
+ align: 'center',
22219
+ ellipsis: true,
21108
22220
  width: 150,
21109
22221
  render: renderTextEllipsis
21110
22222
  }, {
21111
- dataIndex: 'skuId',
21112
- title: "\u5E73\u53F0\u89C4\u683C\u7F16\u53F7",
21113
- width: 170,
22223
+ dataIndex: 'mallSkuId',
22224
+ title: "\u5E73\u53F0\u89C4\u683CID",
22225
+ align: 'center',
22226
+ ellipsis: true,
22227
+ width: 150,
21114
22228
  render: renderTextEllipsis
21115
22229
  }, {
21116
- dataIndex: 'realNum',
21117
- title: "\u5B9E\u9645\u8865\u53D1\u6570\u91CF",
22230
+ dataIndex: 'sellCount',
22231
+ title: "\u6570\u91CF",
21118
22232
  width: 100,
21119
22233
  validator: function validator(_rule, value) {
21120
- var title = '';
21121
- if (((value === null || value === void 0 ? void 0 : value.kmReissueGoods) || []).some(function (goods) {
21122
- var realNum = toNum$3(goods === null || goods === void 0 ? void 0 : goods.realNum);
21123
- var res = typeof realNum === 'number' ? realNum < 1 : true;
22234
+ var productName = '';
22235
+ if (((value === null || value === void 0 ? void 0 : value.jyReissueGoods) || []).some(function (goods) {
22236
+ var qty = toNum$4(goods === null || goods === void 0 ? void 0 : goods.sellCount);
22237
+ var res = typeof qty === 'number' ? qty < 1 : true;
21124
22238
  if (res) {
21125
- title = (goods === null || goods === void 0 ? void 0 : goods.goodName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodName, "]") : '';
22239
+ productName = (goods === null || goods === void 0 ? void 0 : goods.productName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.productName, "]") : '';
21126
22240
  }
21127
22241
  return res;
21128
22242
  })) {
21129
- return Promise.reject("".concat(title, "\u5B9E\u9645\u8865\u53D1\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
22243
+ return Promise.reject("".concat(productName, "\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
21130
22244
  }
21131
22245
  },
21132
22246
  render: function render(val, record, index) {
@@ -21138,65 +22252,100 @@ var getColumns$6 = function getColumns(_ref) {
21138
22252
  min: 1,
21139
22253
  precision: 0,
21140
22254
  onChange: function onChange(num) {
21141
- return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'realNum');
22255
+ updateDataHandle({
22256
+ sellCount: num,
22257
+ sellTotal: num && isNumberOrNumberString$2(record.sellPrice) ? num * record.sellPrice : null
22258
+ }, index);
21142
22259
  }
21143
22260
  }) : /*#__PURE__*/React.createElement("span", null, val);
21144
22261
  }
21145
22262
  }, {
21146
- dataIndex: 'desiredNum',
21147
- title: "\u5E94\u8865\u53D1\u6570\u91CF",
21148
- width: 100,
22263
+ dataIndex: 'sellPrice',
22264
+ title: "\u5355\u4EF7",
22265
+ width: 150,
21149
22266
  render: function render(val, record, index) {
21150
22267
  return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
21151
22268
  style: {
21152
- width: 70
22269
+ width: 130
21153
22270
  },
21154
22271
  value: val,
21155
- min: 1,
21156
- precision: 0,
22272
+ min: 0,
22273
+ precision: 2,
21157
22274
  onChange: function onChange(num) {
21158
- return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'desiredNum');
22275
+ updateDataHandle({
22276
+ sellPrice: num,
22277
+ sellTotal: num && isNumberOrNumberString$2(record.sellCount) ? num * record.sellCount : null
22278
+ }, index);
21159
22279
  }
21160
22280
  }) : /*#__PURE__*/React.createElement("span", null, val);
21161
22281
  }
21162
22282
  }, {
21163
- dataIndex: 'price',
21164
- title: "\u5546\u54C1\u9500\u552E\u4EF7",
21165
- width: 150,
21166
- render: function render(val) {
21167
- return val || val === 0 ? Number(val).toFixed(2) : '';
21168
- }
22283
+ dataIndex: 'mallSellingPrice',
22284
+ title: "\u5E73\u53F0\u5546\u54C1\u4EF7\u683C",
22285
+ width: 150
21169
22286
  }, {
21170
- dataIndex: 'payment',
21171
- title: "\u5B9E\u4ED8\u91D1\u989D",
22287
+ dataIndex: 'sellTotal',
22288
+ title: "\u91D1\u989D",
22289
+ width: 150
22290
+ }, {
22291
+ dataIndex: 'bfit',
22292
+ title: "\u662F\u5426\u7EC4\u5408\u88C5",
21172
22293
  width: 150,
21173
22294
  render: function render(val, record, index) {
21174
- return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
21175
- style: {
21176
- width: 130
22295
+ return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
22296
+ dropdownStyle: {
22297
+ zIndex: 2000
22298
+ },
22299
+ getPopupContainer: function getPopupContainer() {
22300
+ return document.body;
21177
22301
  },
21178
22302
  value: val,
21179
- min: 0,
21180
- precision: 2,
21181
- onChange: function onChange(num) {
21182
- return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'payment');
21183
- }
21184
- }) : /*#__PURE__*/React.createElement("span", null, val || val === 0 ? Number(val).toFixed(2) : '');
22303
+ onChange: function onChange(value) {
22304
+ updateHandle(value, index, 'bfit');
22305
+ },
22306
+ options: [{
22307
+ label: '是',
22308
+ value: 'True'
22309
+ }, {
22310
+ label: '否',
22311
+ value: 'False'
22312
+ }]
22313
+ }) : /*#__PURE__*/React.createElement("span", null, val === 'True' ? '是' : '否');
21185
22314
  }
21186
22315
  }, {
21187
- dataIndex: 'type',
21188
- title: "\u5546\u54C1\u7C7B\u578B",
22316
+ dataIndex: 'combinationName',
22317
+ title: "\u7EC4\u5408\u5546\u54C1\u540D\u79F0",
21189
22318
  width: 150,
21190
22319
  render: renderTextEllipsis
21191
22320
  }, {
21192
- dataIndex: 'sysPicPath',
21193
- title: "\u5546\u54C1\u56FE\u7247",
21194
- width: 100,
21195
- render: function render(val) {
21196
- return /*#__PURE__*/React.createElement(Image, {
21197
- width: 30,
21198
- src: val
21199
- });
22321
+ dataIndex: 'combinationCode',
22322
+ title: "\u7EC4\u5408\u5546\u54C1\u7F16\u7801",
22323
+ width: 150,
22324
+ render: renderTextEllipsis
22325
+ }, {
22326
+ dataIndex: 'gift',
22327
+ title: "\u662F\u5426\u8D60\u54C1",
22328
+ width: 150,
22329
+ render: function render(val, record, index) {
22330
+ return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
22331
+ dropdownStyle: {
22332
+ zIndex: 2000
22333
+ },
22334
+ getPopupContainer: function getPopupContainer() {
22335
+ return document.body;
22336
+ },
22337
+ value: val,
22338
+ onChange: function onChange(value) {
22339
+ updateHandle(value, index, 'gift');
22340
+ },
22341
+ options: [{
22342
+ label: '是',
22343
+ value: '1'
22344
+ }, {
22345
+ label: '否',
22346
+ value: '0'
22347
+ }]
22348
+ }) : /*#__PURE__*/React.createElement("span", null, val === '1' ? '是' : '否');
21200
22349
  }
21201
22350
  }].map(function (item) {
21202
22351
  return _objectSpread2(_objectSpread2({}, item), {}, {
@@ -21207,12 +22356,54 @@ var getColumns$6 = function getColumns(_ref) {
21207
22356
  };
21208
22357
  };
21209
22358
 
21210
- var isNumberOrNumberString$2 = function isNumberOrNumberString(value) {
22359
+ var getColumns$8 = function getColumns(_ref) {
22360
+ var _ref$text = _ref.text,
22361
+ disabled = _ref.disabled,
22362
+ updateHandle = _ref.updateHandle,
22363
+ updateDataHandle = _ref.updateDataHandle;
22364
+ return {
22365
+ //[SKX]商品信息(ON)
22366
+ SKX_GOODS: [{
22367
+ dataIndex: 'skuEcode',
22368
+ title: "[SKX]\u53D1\u8D27\u5355\u660E\u7EC6-skuEcode",
22369
+ width: 250
22370
+ }, {
22371
+ dataIndex: 'subOrderId',
22372
+ title: "[SKX]\u53D1\u8D27\u5355-\u5B50\u8BA2\u5355\u53F7",
22373
+ width: 300
22374
+ }, {
22375
+ dataIndex: 'onBillNo',
22376
+ title: "[SKX]ON\u51FA\u5E93\u901A\u77E5\u5355\u53F7",
22377
+ width: 200
22378
+ }].map(function (item) {
22379
+ return _objectSpread2(_objectSpread2({}, item), {}, {
22380
+ align: 'center',
22381
+ ellipsis: true
22382
+ });
22383
+ }),
22384
+ //[SKX]退货商品信息(TH)
22385
+ SKX_RETURN_GOODS: [{
22386
+ dataIndex: 'returnSkuEcode',
22387
+ title: "[SKX]\u9000\u8D27\u5355\u660E\u7EC6-returnSkuEcode",
22388
+ width: 300
22389
+ }, {
22390
+ dataIndex: 'returnSubOrderId',
22391
+ title: "[SKX]\u9000\u8D27\u5355-\u5B50\u8BA2\u5355\u53F7",
22392
+ width: 300
22393
+ }, {
22394
+ dataIndex: 'returnBillNo',
22395
+ title: "[SKX]TH\u9000\u6362\u8D27\u5355\u53F7",
22396
+ width: 200
22397
+ }]
22398
+ };
22399
+ };
22400
+
22401
+ var isNumberOrNumberString$3 = function isNumberOrNumberString(value) {
21211
22402
  if (typeof value === 'number') return true;
21212
22403
  if (typeof value === 'string' && !isNaN(Number(value)) && value.trim() !== '') return true;
21213
22404
  return false;
21214
22405
  };
21215
- function toNum$4(value) {
22406
+ function toNum$5(value) {
21216
22407
  if (typeof value === 'string') {
21217
22408
  return value ? +value : void 0;
21218
22409
  }
@@ -21221,44 +22412,44 @@ function toNum$4(value) {
21221
22412
  }
21222
22413
  return void 0;
21223
22414
  }
21224
- var getColumns$7 = function getColumns(_ref) {
22415
+ var getColumns$9 = function getColumns(_ref) {
21225
22416
  var _ref$text = _ref.text,
21226
22417
  disabled = _ref.disabled,
21227
22418
  updateHandle = _ref.updateHandle,
21228
22419
  updateDataHandle = _ref.updateDataHandle;
21229
22420
  return {
21230
22421
  //巨益商品信息
21231
- JY_GOODS: [{
21232
- dataIndex: 'productName',
21233
- title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
22422
+ JKY_GOODS: [{
22423
+ dataIndex: 'goodsNo',
22424
+ title: "\u8D27\u54C1\u7F16\u53F7",
21234
22425
  align: 'center',
21235
22426
  ellipsis: true,
21236
22427
  width: 150,
21237
22428
  render: renderTextEllipsis
21238
22429
  }, {
21239
- dataIndex: 'productCode',
21240
- title: "\u7CFB\u7EDF\u5546\u54C1\u7F16\u7801",
22430
+ dataIndex: 'goodsName',
22431
+ title: "\u8D27\u54C1\u540D\u79F0",
21241
22432
  align: 'center',
21242
22433
  ellipsis: true,
21243
22434
  width: 150,
21244
22435
  render: renderTextEllipsis
21245
22436
  }, {
21246
- dataIndex: 'productId',
21247
- title: "\u7CFB\u7EDF\u5546\u54C1ID",
22437
+ dataIndex: 'goodsId',
22438
+ title: "\u8D27\u54C1ID",
21248
22439
  align: 'center',
21249
22440
  ellipsis: true,
21250
22441
  width: 150,
21251
22442
  render: renderTextEllipsis
21252
22443
  }, {
21253
- dataIndex: 'skuName',
21254
- title: "\u7CFB\u7EDF\u89C4\u683C\u540D\u79F0",
22444
+ dataIndex: 'barcode',
22445
+ title: "\u8D27\u54C1\u6761\u7801",
21255
22446
  align: 'center',
21256
22447
  ellipsis: true,
21257
22448
  width: 150,
21258
22449
  render: renderTextEllipsis
21259
22450
  }, {
21260
- dataIndex: 'skuCode',
21261
- title: "\u7CFB\u7EDF\u89C4\u683C\u7F16\u7801",
22451
+ dataIndex: 'specName',
22452
+ title: "\u89C4\u683C\u540D\u79F0",
21262
22453
  align: 'center',
21263
22454
  ellipsis: true,
21264
22455
  width: 150,
@@ -21270,82 +22461,18 @@ var getColumns$7 = function getColumns(_ref) {
21270
22461
  ellipsis: true,
21271
22462
  width: 150,
21272
22463
  render: renderTextEllipsis
21273
- },
21274
- // {
21275
- // dataIndex: 'goodsName',
21276
- // title: `货品名称`,
21277
- // width: 250,
21278
- // },
21279
- // {
21280
- // dataIndex: 'goodsCode',
21281
- // title: `货品编号`,
21282
- // width: 200,
21283
- // },
21284
- // {
21285
- // dataIndex: 'goodsId',
21286
- // title: `货品ID`,
21287
- // width: 150,
21288
- // },
21289
- {
21290
- dataIndex: 'goodsClass',
21291
- title: "\u8D27\u54C1\u7C7B\u522B",
21292
- width: 150,
21293
- render: renderTextEllipsis
21294
- }, {
21295
- dataIndex: 'code',
21296
- title: "\u6761\u7801",
21297
- width: 150,
21298
- render: renderTextEllipsis
21299
- },
21300
- // {
21301
- // dataIndex: 'specName',
21302
- // title: `规格名称`,
21303
- // align: 'center',
21304
- // ellipsis: true,
21305
- // width: 200,
21306
- // },
21307
- // {
21308
- // dataIndex: 'specCode',
21309
- // title: `规格编号`,
21310
- // align: 'center',
21311
- // ellipsis: true,
21312
- // width: 150,
21313
- // },
21314
- {
21315
- dataIndex: 'mallProductName',
21316
- title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
21317
- align: 'center',
21318
- ellipsis: true,
21319
- width: 250,
21320
- render: renderTextEllipsis
21321
22464
  }, {
21322
- dataIndex: 'mallProductOutCode',
21323
- title: "\u5E73\u53F0\u5546\u54C1\u7F16\u7801",
22465
+ dataIndex: 'skuImgUrl',
22466
+ title: "\u89C4\u683C\u56FE\u7247",
21324
22467
  align: 'center',
21325
22468
  ellipsis: true,
21326
22469
  width: 150,
21327
- render: renderTextEllipsis
21328
- }, {
21329
- dataIndex: 'mallProductId',
21330
- title: "\u5E73\u53F0\u5546\u54C1ID",
21331
- align: 'center',
21332
- ellipsis: true,
21333
- width: 250,
21334
- render: renderTextEllipsis
21335
- }, {
21336
- dataIndex: 'mallSkuName',
21337
- title: "\u5E73\u53F0\u89C4\u683C\u540D\u79F0",
21338
- align: 'center',
21339
- ellipsis: true,
21340
- width: 250,
21341
- render: renderTextEllipsis
21342
- }, {
21343
- dataIndex: 'mallSkuId',
21344
- title: "\u5E73\u53F0\u89C4\u683CID",
21345
- align: 'center',
21346
- ellipsis: true,
21347
- width: 250,
21348
- render: renderTextEllipsis
22470
+ render: function render(val) {
22471
+ return /*#__PURE__*/React.createElement(ApaasImage, {
22472
+ width: 30,
22473
+ src: val
22474
+ });
22475
+ }
21349
22476
  }, {
21350
22477
  dataIndex: 'sellCount',
21351
22478
  title: "\u6570\u91CF",
@@ -21361,11 +22488,16 @@ var getColumns$7 = function getColumns(_ref) {
21361
22488
  onChange: function onChange(num) {
21362
22489
  updateDataHandle({
21363
22490
  sellCount: num,
21364
- sellTotal: num && isNumberOrNumberString$2(record.sellPrice) ? num * record.sellPrice : null
22491
+ sellTotal: num && isNumberOrNumberString$3(record.sellPrice) ? num * record.sellPrice : null
21365
22492
  }, index);
21366
22493
  }
21367
22494
  }) : /*#__PURE__*/React.createElement("span", null, val);
21368
22495
  }
22496
+ }, {
22497
+ dataIndex: 'actualSendCount',
22498
+ title: "\u5B9E\u53D1\u6570\u91CF",
22499
+ width: 150,
22500
+ render: renderTextEllipsis
21369
22501
  }, {
21370
22502
  dataIndex: 'sellPrice',
21371
22503
  title: "\u5355\u4EF7",
@@ -21381,30 +22513,42 @@ var getColumns$7 = function getColumns(_ref) {
21381
22513
  onChange: function onChange(num) {
21382
22514
  updateDataHandle({
21383
22515
  sellPrice: num,
21384
- sellTotal: num && isNumberOrNumberString$2(record.sellCount) ? num * record.sellCount : null
22516
+ sellTotal: num && isNumberOrNumberString$3(record.sellCount) ? num * record.sellCount : null
21385
22517
  }, index);
21386
22518
  }
21387
22519
  }) : /*#__PURE__*/React.createElement("span", null, val);
21388
22520
  }
21389
- }, {
21390
- dataIndex: 'mallSellingPrice',
21391
- title: "\u5E73\u53F0\u5546\u54C1\u4EF7\u683C",
21392
- width: 150
21393
22521
  }, {
21394
22522
  dataIndex: 'sellTotal',
21395
22523
  title: "\u91D1\u989D",
21396
22524
  width: 150
21397
22525
  }, {
21398
- dataIndex: 'settlementPrice',
21399
- title: "\u7ED3\u7B97\u4EF7",
22526
+ dataIndex: 'discountTotal',
22527
+ title: "\u62B5\u6263\u91D1\u989D",
21400
22528
  width: 150
21401
22529
  }, {
21402
- dataIndex: 'divideOrderFee',
21403
- title: "\u5206\u644A\u5B9E\u4ED8\u91D1\u989D",
22530
+ dataIndex: 'shareFavourableFee',
22531
+ title: "\u5206\u644A\u91D1\u989D",
21404
22532
  width: 150
21405
22533
  }, {
21406
- dataIndex: 'bfit',
21407
- title: "\u662F\u5426\u7EC4\u5408\u88C5",
22534
+ dataIndex: 'shareFavourableAfterFee',
22535
+ title: "\u5206\u644A\u540E\u91D1\u989D",
22536
+ width: 150
22537
+ }, {
22538
+ dataIndex: 'customerPrice',
22539
+ title: "\u7EC8\u7AEF\u9500\u552E\u5355\u4EF7",
22540
+ width: 150
22541
+ }, {
22542
+ dataIndex: 'customerTotal',
22543
+ title: "\u7EC8\u7AEF\u9500\u552E\u91D1\u989D",
22544
+ width: 150
22545
+ }, {
22546
+ dataIndex: 'divideSellTotal',
22547
+ title: "\u5B9E\u4ED8\u91D1\u989D",
22548
+ width: 150
22549
+ }, {
22550
+ dataIndex: 'isGift',
22551
+ title: "\u662F\u5426\u8D60\u54C1",
21408
22552
  width: 150,
21409
22553
  render: function render(val, record, index) {
21410
22554
  return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
@@ -21416,30 +22560,45 @@ var getColumns$7 = function getColumns(_ref) {
21416
22560
  },
21417
22561
  value: val,
21418
22562
  onChange: function onChange(value) {
21419
- updateHandle(value, index, 'bfit');
22563
+ updateHandle(value, index, 'isGift');
21420
22564
  },
21421
22565
  options: [{
21422
22566
  label: '是',
21423
- value: 'True'
22567
+ value: '1'
21424
22568
  }, {
21425
22569
  label: '否',
21426
- value: 'False'
22570
+ value: '0'
21427
22571
  }]
21428
- }) : /*#__PURE__*/React.createElement("span", null, val === 'True' ? '是' : '否');
22572
+ }) : /*#__PURE__*/React.createElement("span", null, val === '1' ? '是' : '否');
21429
22573
  }
21430
22574
  }, {
21431
- dataIndex: 'combinationName',
21432
- title: "\u7EC4\u5408\u5546\u54C1\u540D\u79F0",
21433
- width: 150,
21434
- render: renderTextEllipsis
21435
- }, {
21436
- dataIndex: 'combinationCode',
21437
- title: "\u7EC4\u5408\u5546\u54C1\u7F16\u7801",
22575
+ dataIndex: 'isFit',
22576
+ title: "\u662F\u5426\u7EC4\u5408\u88C5",
21438
22577
  width: 150,
21439
- render: renderTextEllipsis
22578
+ render: function render(val, record, index) {
22579
+ return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
22580
+ dropdownStyle: {
22581
+ zIndex: 2000
22582
+ },
22583
+ getPopupContainer: function getPopupContainer() {
22584
+ return document.body;
22585
+ },
22586
+ value: val,
22587
+ onChange: function onChange(value) {
22588
+ updateHandle(value, index, 'isFit');
22589
+ },
22590
+ options: [{
22591
+ label: '是',
22592
+ value: '1'
22593
+ }, {
22594
+ label: '否',
22595
+ value: '0'
22596
+ }]
22597
+ }) : /*#__PURE__*/React.createElement("span", null, val === '1' ? '是' : '否');
22598
+ }
21440
22599
  }, {
21441
- dataIndex: 'gift',
21442
- title: "\u662F\u5426\u8D60\u54C1",
22600
+ dataIndex: 'isPresell',
22601
+ title: "\u662F\u5426\u9884\u552E\u8D27\u54C1",
21443
22602
  width: 150,
21444
22603
  render: function render(val, record, index) {
21445
22604
  return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
@@ -21451,7 +22610,7 @@ var getColumns$7 = function getColumns(_ref) {
21451
22610
  },
21452
22611
  value: val,
21453
22612
  onChange: function onChange(value) {
21454
- updateHandle(value, index, 'gift');
22613
+ updateHandle(value, index, 'isPresell');
21455
22614
  },
21456
22615
  options: [{
21457
22616
  label: '是',
@@ -21462,115 +22621,169 @@ var getColumns$7 = function getColumns(_ref) {
21462
22621
  }]
21463
22622
  }) : /*#__PURE__*/React.createElement("span", null, val === '1' ? '是' : '否');
21464
22623
  }
21465
- }].map(function (item) {
21466
- return _objectSpread2(_objectSpread2({}, item), {}, {
21467
- align: 'center',
21468
- ellipsis: true
21469
- });
21470
- }),
21471
- // 巨益补发商品信息
21472
- JY_REISSUE_GOODS: [{
21473
- dataIndex: 'productName',
21474
- title: "\u7CFB\u7EDF\u5546\u54C1\u540D\u79F0",
22624
+ }, {
22625
+ dataIndex: 'brandName',
22626
+ title: "\u54C1\u724C",
21475
22627
  align: 'center',
21476
22628
  ellipsis: true,
21477
- width: 150,
22629
+ width: 200,
21478
22630
  render: renderTextEllipsis
21479
22631
  }, {
21480
- dataIndex: 'productCode',
21481
- title: "\u7CFB\u7EDF\u5546\u54C1\u7F16\u7801",
22632
+ dataIndex: 'cateName',
22633
+ title: "\u8D27\u54C1\u7C7B\u522B",
21482
22634
  align: 'center',
21483
22635
  ellipsis: true,
21484
22636
  width: 150,
21485
22637
  render: renderTextEllipsis
21486
22638
  }, {
21487
- dataIndex: 'productId',
21488
- title: "\u7CFB\u7EDF\u5546\u54C1ID",
22639
+ dataIndex: 'goodsTags',
22640
+ title: "\u8D27\u54C1\u6807\u7B7E",
21489
22641
  align: 'center',
21490
22642
  ellipsis: true,
21491
- width: 150,
22643
+ width: 250,
21492
22644
  render: renderTextEllipsis
21493
22645
  }, {
21494
- dataIndex: 'skuName',
21495
- title: "\u7CFB\u7EDF\u89C4\u683C\u540D\u79F0",
22646
+ dataIndex: 'goodsMemo',
22647
+ title: "\u8D27\u54C1\u5907\u6CE8",
21496
22648
  align: 'center',
21497
22649
  ellipsis: true,
21498
- width: 150,
22650
+ width: 250,
21499
22651
  render: renderTextEllipsis
21500
22652
  }, {
21501
- dataIndex: 'skuCode',
21502
- title: "\u7CFB\u7EDF\u89C4\u683C\u7F16\u7801",
22653
+ dataIndex: 'tradeGoodsNo',
22654
+ title: "\u4EA4\u6613\u8D27\u54C1\u7F16\u53F7",
21503
22655
  align: 'center',
21504
22656
  ellipsis: true,
21505
- width: 150,
22657
+ width: 250,
21506
22658
  render: renderTextEllipsis
21507
22659
  }, {
21508
- dataIndex: 'specId',
21509
- title: "\u89C4\u683CID",
21510
- align: 'center',
22660
+ dataIndex: 'tradeGoodsName',
22661
+ title: "\u4EA4\u6613\u8D27\u54C1\u540D\u79F0",
21511
22662
  ellipsis: true,
21512
- width: 150,
22663
+ width: 250,
21513
22664
  render: renderTextEllipsis
21514
22665
  }, {
21515
- dataIndex: 'goodsClass',
21516
- title: "\u8D27\u54C1\u7C7B\u522B",
21517
- width: 150,
22666
+ dataIndex: 'tradeGoodsSpec',
22667
+ title: "\u4EA4\u6613\u89C4\u683C\u540D\u79F0",
22668
+ ellipsis: true,
22669
+ width: 250,
21518
22670
  render: renderTextEllipsis
21519
22671
  }, {
21520
- dataIndex: 'code',
21521
- title: "\u6761\u7801",
22672
+ dataIndex: 'sourceSubtradeNo',
22673
+ title: "\u7F51\u5E97\u5B50\u8BA2\u5355\u53F7",
22674
+ ellipsis: true,
22675
+ width: 250,
22676
+ render: renderTextEllipsis
22677
+ }, {
22678
+ dataIndex: 'platGoodsId',
22679
+ title: "\u5E73\u53F0\u5546\u54C1ID",
22680
+ ellipsis: true,
22681
+ width: 250,
22682
+ render: renderTextEllipsis
22683
+ }, {
22684
+ dataIndex: 'subTradeId',
22685
+ title: "\u5546\u54C1\u660E\u7EC6ID",
22686
+ ellipsis: true,
22687
+ width: 250,
22688
+ render: renderTextEllipsis
22689
+ }, {
22690
+ dataIndex: 'batchNo',
22691
+ title: "\u6279\u6B21\u53F7",
22692
+ ellipsis: true,
22693
+ width: 250,
22694
+ render: renderTextEllipsis
22695
+ }, {
22696
+ dataIndex: 'sendCount',
22697
+ title: "\u6279\u6B21\u6570\u91CF",
22698
+ ellipsis: true,
22699
+ width: 250,
22700
+ render: renderTextEllipsis
22701
+ }, {
22702
+ dataIndex: 'productDate',
22703
+ title: "\u751F\u4EA7\u65E5\u671F",
22704
+ ellipsis: true,
22705
+ width: 250,
22706
+ render: renderTextEllipsis
22707
+ }, {
22708
+ dataIndex: 'expireDate',
22709
+ title: "\u5230\u671F\u65E5\u671F",
22710
+ ellipsis: true,
22711
+ width: 250,
22712
+ render: renderTextEllipsis
22713
+ }].map(function (item) {
22714
+ return _objectSpread2(_objectSpread2({}, item), {}, {
22715
+ align: 'center',
22716
+ ellipsis: true
22717
+ });
22718
+ }),
22719
+ // 巨益补发商品信息
22720
+ JKY_REISSUE_GOODS: [{
22721
+ dataIndex: 'goodsNo',
22722
+ title: "\u8D27\u54C1\u7F16\u53F7",
22723
+ align: 'center',
22724
+ ellipsis: true,
21522
22725
  width: 150,
21523
22726
  render: renderTextEllipsis
21524
22727
  }, {
21525
- dataIndex: 'mallProductName',
21526
- title: "\u5E73\u53F0\u5546\u54C1\u540D\u79F0",
22728
+ dataIndex: 'goodsName',
22729
+ title: "\u8D27\u54C1\u540D\u79F0",
21527
22730
  align: 'center',
21528
22731
  ellipsis: true,
21529
22732
  width: 150,
21530
22733
  render: renderTextEllipsis
21531
22734
  }, {
21532
- dataIndex: 'mallProductOutCode',
21533
- title: "\u5E73\u53F0\u5546\u54C1\u7F16\u7801",
22735
+ dataIndex: 'goodsId',
22736
+ title: "\u8D27\u54C1ID",
21534
22737
  align: 'center',
21535
22738
  ellipsis: true,
21536
22739
  width: 150,
21537
22740
  render: renderTextEllipsis
21538
22741
  }, {
21539
- dataIndex: 'mallProductId',
21540
- title: "\u5E73\u53F0\u5546\u54C1ID",
22742
+ dataIndex: 'barcode',
22743
+ title: "\u8D27\u54C1\u6761\u7801",
21541
22744
  align: 'center',
21542
22745
  ellipsis: true,
21543
22746
  width: 150,
21544
22747
  render: renderTextEllipsis
21545
22748
  }, {
21546
- dataIndex: 'mallSkuName',
21547
- title: "\u5E73\u53F0\u89C4\u683C\u540D\u79F0",
22749
+ dataIndex: 'specName',
22750
+ title: "\u89C4\u683C\u540D\u79F0",
21548
22751
  align: 'center',
21549
22752
  ellipsis: true,
21550
22753
  width: 150,
21551
22754
  render: renderTextEllipsis
21552
22755
  }, {
21553
- dataIndex: 'mallSkuId',
21554
- title: "\u5E73\u53F0\u89C4\u683CID",
22756
+ dataIndex: 'specId',
22757
+ title: "\u89C4\u683CID",
21555
22758
  align: 'center',
21556
22759
  ellipsis: true,
21557
22760
  width: 150,
21558
22761
  render: renderTextEllipsis
22762
+ }, {
22763
+ dataIndex: 'skuImgUrl',
22764
+ title: "\u89C4\u683C\u56FE\u7247",
22765
+ width: 150,
22766
+ render: function render(val) {
22767
+ return /*#__PURE__*/React.createElement(ApaasImage, {
22768
+ width: 30,
22769
+ src: val
22770
+ });
22771
+ }
21559
22772
  }, {
21560
22773
  dataIndex: 'sellCount',
21561
- title: "\u6570\u91CF",
22774
+ title: "\u53D1\u8D27\u6570\u91CF",
21562
22775
  width: 100,
21563
22776
  validator: function validator(_rule, value) {
21564
- var productName = '';
21565
- if (((value === null || value === void 0 ? void 0 : value.jyReissueGoods) || []).some(function (goods) {
21566
- var qty = toNum$4(goods === null || goods === void 0 ? void 0 : goods.sellCount);
22777
+ var goodsName = '';
22778
+ if (((value === null || value === void 0 ? void 0 : value.jkyReissueGoods) || []).some(function (goods) {
22779
+ var qty = toNum$5(goods === null || goods === void 0 ? void 0 : goods.sellCount);
21567
22780
  var res = typeof qty === 'number' ? qty < 1 : true;
21568
22781
  if (res) {
21569
- productName = (goods === null || goods === void 0 ? void 0 : goods.productName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.productName, "]") : '';
22782
+ goodsName = (goods === null || goods === void 0 ? void 0 : goods.goodsName) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.goodsName, "]") : '';
21570
22783
  }
21571
22784
  return res;
21572
22785
  })) {
21573
- return Promise.reject("".concat(productName, "\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
22786
+ return Promise.reject("".concat(goodsName, "\u6570\u91CF\u5FC5\u987B\u5927\u4E8E0"));
21574
22787
  }
21575
22788
  },
21576
22789
  render: function render(val, record, index) {
@@ -21584,7 +22797,7 @@ var getColumns$7 = function getColumns(_ref) {
21584
22797
  onChange: function onChange(num) {
21585
22798
  updateDataHandle({
21586
22799
  sellCount: num,
21587
- sellTotal: num && isNumberOrNumberString$2(record.sellPrice) ? num * record.sellPrice : null
22800
+ sellTotal: num && isNumberOrNumberString$3(record.sellPrice) ? num * record.sellPrice : null
21588
22801
  }, index);
21589
22802
  }
21590
22803
  }) : /*#__PURE__*/React.createElement("span", null, val);
@@ -21604,131 +22817,87 @@ var getColumns$7 = function getColumns(_ref) {
21604
22817
  onChange: function onChange(num) {
21605
22818
  updateDataHandle({
21606
22819
  sellPrice: num,
21607
- sellTotal: num && isNumberOrNumberString$2(record.sellCount) ? num * record.sellCount : null
22820
+ sellTotal: num && isNumberOrNumberString$3(record.sellCount) ? num * record.sellCount : null
21608
22821
  }, index);
21609
22822
  }
21610
22823
  }) : /*#__PURE__*/React.createElement("span", null, val);
21611
22824
  }
21612
- }, {
21613
- dataIndex: 'mallSellingPrice',
21614
- title: "\u5E73\u53F0\u5546\u54C1\u4EF7\u683C",
21615
- width: 150
21616
22825
  }, {
21617
22826
  dataIndex: 'sellTotal',
21618
- title: "\u91D1\u989D",
21619
- width: 150
22827
+ title: "\u603B\u91D1\u989D",
22828
+ width: 150,
22829
+ render: function render(val, record, index) {
22830
+ return record.sellCount * record.sellPrice;
22831
+ }
21620
22832
  }, {
21621
- dataIndex: 'bfit',
21622
- title: "\u662F\u5426\u7EC4\u5408\u88C5",
22833
+ dataIndex: 'reason',
22834
+ title: "\u9000\u6362\u539F\u56E0",
22835
+ width: 250,
22836
+ render: function render(val, record, index) {
22837
+ return /*#__PURE__*/React.createElement(ApaasInput, {
22838
+ onChange: function onChange(value) {
22839
+ updateHandle(value, index, 'reason');
22840
+ }
22841
+ });
22842
+ }
22843
+ }, {
22844
+ dataIndex: 'isGift',
22845
+ title: "\u662F\u5426\u8D60\u54C1",
21623
22846
  width: 150,
21624
22847
  render: function render(val, record, index) {
21625
22848
  return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
21626
- dropdownStyle: {
21627
- zIndex: 2000
21628
- },
21629
- getPopupContainer: function getPopupContainer() {
21630
- return document.body;
21631
- },
21632
22849
  value: val,
21633
22850
  onChange: function onChange(value) {
21634
- updateHandle(value, index, 'bfit');
22851
+ updateHandle(value, index, 'isGift');
21635
22852
  },
21636
22853
  options: [{
21637
22854
  label: '是',
21638
- value: 'True'
22855
+ value: '1'
21639
22856
  }, {
21640
22857
  label: '否',
21641
- value: 'False'
22858
+ value: '0'
21642
22859
  }]
21643
- }) : /*#__PURE__*/React.createElement("span", null, val === 'True' ? '是' : '否');
22860
+ }) : /*#__PURE__*/React.createElement("span", null, val === '1' ? '是' : '否');
21644
22861
  }
21645
22862
  }, {
21646
- dataIndex: 'combinationName',
21647
- title: "\u7EC4\u5408\u5546\u54C1\u540D\u79F0",
21648
- width: 150,
21649
- render: renderTextEllipsis
21650
- }, {
21651
- dataIndex: 'combinationCode',
21652
- title: "\u7EC4\u5408\u5546\u54C1\u7F16\u7801",
21653
- width: 150,
21654
- render: renderTextEllipsis
21655
- }, {
21656
- dataIndex: 'gift',
21657
- title: "\u662F\u5426\u8D60\u54C1",
22863
+ dataIndex: 'isFit',
22864
+ title: "\u662F\u5426\u7EC4\u5408\u88C5",
21658
22865
  width: 150,
21659
22866
  render: function render(val, record, index) {
21660
22867
  return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(Select, {
21661
- dropdownStyle: {
21662
- zIndex: 2000
21663
- },
21664
- getPopupContainer: function getPopupContainer() {
21665
- return document.body;
21666
- },
21667
22868
  value: val,
21668
22869
  onChange: function onChange(value) {
21669
- updateHandle(value, index, 'gift');
22870
+ updateHandle(value, index, 'isFit');
21670
22871
  },
21671
22872
  options: [{
21672
22873
  label: '是',
21673
- value: '1'
21674
- }, {
21675
- label: '否',
21676
- value: '0'
21677
- }]
21678
- }) : /*#__PURE__*/React.createElement("span", null, val === '1' ? '是' : '否');
21679
- }
21680
- }].map(function (item) {
21681
- return _objectSpread2(_objectSpread2({}, item), {}, {
21682
- align: 'center',
21683
- ellipsis: true
21684
- });
21685
- })
21686
- };
21687
- };
21688
-
21689
- var getColumns$8 = function getColumns(_ref) {
21690
- var _ref$text = _ref.text,
21691
- disabled = _ref.disabled,
21692
- updateHandle = _ref.updateHandle,
21693
- updateDataHandle = _ref.updateDataHandle;
21694
- return {
21695
- //[SKX]商品信息(ON)
21696
- SKX_GOODS: [{
21697
- dataIndex: 'skuEcode',
21698
- title: "[SKX]\u53D1\u8D27\u5355\u660E\u7EC6-skuEcode",
21699
- width: 250
22874
+ value: 'True'
22875
+ }, {
22876
+ label: '否',
22877
+ value: 'False'
22878
+ }]
22879
+ }) : /*#__PURE__*/React.createElement("span", null, val === 'True' ? '是' : '否');
22880
+ }
21700
22881
  }, {
21701
- dataIndex: 'subOrderId',
21702
- title: "[SKX]\u53D1\u8D27\u5355-\u5B50\u8BA2\u5355\u53F7",
21703
- width: 300
22882
+ dataIndex: 'brandName',
22883
+ title: "\u54C1\u724C",
22884
+ width: 150,
22885
+ render: renderTextEllipsis
21704
22886
  }, {
21705
- dataIndex: 'onBillNo',
21706
- title: "[SKX]ON\u51FA\u5E93\u901A\u77E5\u5355\u53F7",
21707
- width: 200
22887
+ dataIndex: 'cateName',
22888
+ title: "\u8D27\u54C1\u7C7B\u522B",
22889
+ width: 150,
22890
+ render: renderTextEllipsis
21708
22891
  }].map(function (item) {
21709
22892
  return _objectSpread2(_objectSpread2({}, item), {}, {
21710
22893
  align: 'center',
21711
22894
  ellipsis: true
21712
22895
  });
21713
- }),
21714
- //[SKX]退货商品信息(TH)
21715
- SKX_RETURN_GOODS: [{
21716
- dataIndex: 'returnSkuEcode',
21717
- title: "[SKX]\u9000\u8D27\u5355\u660E\u7EC6-returnSkuEcode",
21718
- width: 300
21719
- }, {
21720
- dataIndex: 'returnSubOrderId',
21721
- title: "[SKX]\u9000\u8D27\u5355-\u5B50\u8BA2\u5355\u53F7",
21722
- width: 300
21723
- }, {
21724
- dataIndex: 'returnBillNo',
21725
- title: "[SKX]TH\u9000\u6362\u8D27\u5355\u53F7",
21726
- width: 200
21727
- }]
22896
+ })
21728
22897
  };
21729
22898
  };
21730
22899
 
21731
- var getColumns$9 = function getColumns(_ref) {
22900
+ var getColumns$a = function getColumns(_ref) {
21732
22901
  var _ref$text = _ref.text,
21733
22902
  text = _ref$text === void 0 ? '' : _ref$text,
21734
22903
  disabled = _ref.disabled,
@@ -21845,7 +23014,7 @@ var getColumnsMap$1 = function getColumnsMap(args) {
21845
23014
  disabled = _ref.disabled,
21846
23015
  updateHandle = _ref.updateHandle,
21847
23016
  updateDataHandle = _ref.updateDataHandle;
21848
- return _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, getColumns$1({
23017
+ return _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, getColumns$1({
21849
23018
  text: text,
21850
23019
  disabled: disabled,
21851
23020
  updateHandle: updateHandle
@@ -21883,8 +23052,13 @@ var getColumnsMap$1 = function getColumnsMap(args) {
21883
23052
  text: text,
21884
23053
  disabled: disabled,
21885
23054
  updateHandle: updateHandle
23055
+ })), getColumns$9({
23056
+ text: text,
23057
+ disabled: disabled,
23058
+ updateHandle: updateHandle,
23059
+ updateDataHandle: updateDataHandle
21886
23060
  })), {}, {
21887
- default: getColumns$9({
23061
+ default: getColumns$a({
21888
23062
  text: text,
21889
23063
  disabled: disabled,
21890
23064
  updateHandle: updateHandle
@@ -22031,6 +23205,9 @@ var isErpType = {
22031
23205
  },
22032
23206
  isJy: function isJy(type) {
22033
23207
  return ['JY_GOODS', 'JY_REISSUE_GOODS'].includes(type);
23208
+ },
23209
+ isJky: function isJky(type) {
23210
+ return ['JKY_GOODS', 'JKY_REISSUE_GOODS'].includes(type);
22034
23211
  }
22035
23212
  };
22036
23213
  var processGoods$1 = function processGoods(_ref) {
@@ -22317,6 +23494,8 @@ var GoodsModalMap = {
22317
23494
  KM_REISSUE_GOODS: KmGoodsModal,
22318
23495
  JY_GOODS: JyGoodsModal$1,
22319
23496
  JY_REISSUE_GOODS: JyGoodsModal$1,
23497
+ JKY_GOODS: JkyGoodsModal$1,
23498
+ JKY_REISSUE_GOODS: JkyGoodsModal$1,
22320
23499
  OTHER_GOODS: GoodsModal$2
22321
23500
  };
22322
23501
  var systemOrderNoMap = {
@@ -22329,6 +23508,8 @@ var systemOrderNoMap = {
22329
23508
  WLN_GOODS: 'tradeNo',
22330
23509
  JY_GOODS: 'tradeNo',
22331
23510
  JY_REISSUE_GOODS: 'tradeNo',
23511
+ JKY_GOODS: 'tradeNo',
23512
+ JKY_REISSUE_GOODS: 'tradeNo',
22332
23513
  KM_REISSUE_GOODS: 'sid',
22333
23514
  JST_REISSUE_GOODS: 'oId',
22334
23515
  GY_REISSUE_GOODS: 'code',
@@ -22364,23 +23545,75 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
22364
23545
  _useState4 = _slicedToArray(_useState3, 2),
22365
23546
  tradeGoodsVisible = _useState4[0],
22366
23547
  setTradeGoodsVisible = _useState4[1];
22367
- var openModal = function openModal() {
22368
- if (validSystemOrder) {
22369
- message.warning('请选择补发系统单');
22370
- return;
22371
- }
22372
- if (getDataSourceAsync && !(dataSource === null || dataSource === void 0 ? void 0 : dataSource.length)) {
22373
- getDataSourceAsync().then(function () {
22374
- setTradeGoodsVisible(true);
22375
- });
22376
- } else {
22377
- setTradeGoodsVisible(true);
22378
- }
22379
- // 补发直接传入的是systemNo
22380
- if (isShowSelect && isReissueType) {
22381
- setSelectSystemNo(selectedSystemOrders || []);
22382
- }
22383
- };
23548
+ var getKmSupplier = /*#__PURE__*/function () {
23549
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(dataSource) {
23550
+ var systemItemIds, supplierMap;
23551
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
23552
+ while (1) switch (_context.prev = _context.next) {
23553
+ case 0:
23554
+ systemItemIds = dataSource === null || dataSource === void 0 ? void 0 : dataSource.map(function (item) {
23555
+ return item.sysItemId;
23556
+ });
23557
+ _context.next = 3;
23558
+ return servers.KM.getSupplierSingleton(systemItemIds);
23559
+ case 3:
23560
+ supplierMap = _context.sent;
23561
+ dataSource === null || dataSource === void 0 ? void 0 : dataSource.forEach(function (item) {
23562
+ var supplierInfo = supplierMap.get(item.sysItemId);
23563
+ item.supplierCode = supplierInfo === null || supplierInfo === void 0 ? void 0 : supplierInfo.supplierCode;
23564
+ item.supplierName = supplierInfo === null || supplierInfo === void 0 ? void 0 : supplierInfo.supplierName;
23565
+ });
23566
+ case 5:
23567
+ case "end":
23568
+ return _context.stop();
23569
+ }
23570
+ }, _callee);
23571
+ }));
23572
+ return function getKmSupplier(_x) {
23573
+ return _ref2.apply(this, arguments);
23574
+ };
23575
+ }();
23576
+ var openModal = /*#__PURE__*/function () {
23577
+ var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
23578
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
23579
+ while (1) switch (_context2.prev = _context2.next) {
23580
+ case 0:
23581
+ if (!validSystemOrder) {
23582
+ _context2.next = 3;
23583
+ break;
23584
+ }
23585
+ message.warning('请选择补发系统单');
23586
+ return _context2.abrupt("return");
23587
+ case 3:
23588
+ if (!(getDataSourceAsync && !(dataSource === null || dataSource === void 0 ? void 0 : dataSource.length))) {
23589
+ _context2.next = 6;
23590
+ break;
23591
+ }
23592
+ _context2.next = 6;
23593
+ return getDataSourceAsync();
23594
+ case 6:
23595
+ if (!['KM_GOODS', 'KM_REISSUE_GOODS'].includes(type)) {
23596
+ _context2.next = 9;
23597
+ break;
23598
+ }
23599
+ _context2.next = 9;
23600
+ return getKmSupplier(dataSource);
23601
+ case 9:
23602
+ setTradeGoodsVisible(true);
23603
+ // 补发直接传入的是systemNo
23604
+ if (isShowSelect && isReissueType) {
23605
+ setSelectSystemNo(selectedSystemOrders || []);
23606
+ }
23607
+ case 11:
23608
+ case "end":
23609
+ return _context2.stop();
23610
+ }
23611
+ }, _callee2);
23612
+ }));
23613
+ return function openModal() {
23614
+ return _ref3.apply(this, arguments);
23615
+ };
23616
+ }();
22384
23617
  var closeModal = function closeModal() {
22385
23618
  return setTradeGoodsVisible(false);
22386
23619
  };
@@ -22503,6 +23736,9 @@ var getButtonText = function getButtonText() {
22503
23736
  if (['JY_GOODS', 'JY_REISSUE_GOODS'].includes(type)) {
22504
23737
  return '选择巨益ERP商品';
22505
23738
  }
23739
+ if (['JKY_GOODS', 'JKY_REISSUE_GOODS'].includes(type)) {
23740
+ return '选择吉客云ERP商品';
23741
+ }
22506
23742
  return '选择商品';
22507
23743
  };
22508
23744
  var GoodItem$1 = function GoodItem(props) {
@@ -22560,7 +23796,7 @@ var GoodItem$1 = function GoodItem(props) {
22560
23796
  var jstReturnGoods = Form === null || Form === void 0 ? void 0 : Form.useWatch('3979edfd6d', form);
22561
23797
  var isShowSelectTradeGoods = type !== 'JST_EXCHANGE_GOODS' || (jstReturnGoods === null || jstReturnGoods === void 0 ? void 0 : jstReturnGoods.jstSystemOrderNo);
22562
23798
  // 判断是否为是否展示系统单筛选项
22563
- 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;
23799
+ 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;
22564
23800
  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;
22565
23801
  var refModal = useRef();
22566
23802
  console.debug('表格数据', value);
@@ -22652,6 +23888,8 @@ var GoodItem$1 = function GoodItem(props) {
22652
23888
  case 'KM_REISSUE_GOODS':
22653
23889
  case 'JY_GOODS':
22654
23890
  case 'JY_REISSUE_GOODS':
23891
+ case 'JKY_GOODS':
23892
+ case 'JKY_REISSUE_GOODS':
22655
23893
  case 'SKX_GOODS':
22656
23894
  case 'SKX_RETURN_GOODS':
22657
23895
  {
@@ -22699,9 +23937,9 @@ var GoodItem$1 = function GoodItem(props) {
22699
23937
  var COLUMNS_INFO = COLUMNS_MAP(text);
22700
23938
  return COLUMNS_INFO(type);
22701
23939
  };
22702
- var getShowFilterColumns = useCallback(function (_ref2) {
22703
- var showHeader = _ref2.showHeader,
22704
- initBaseInfoColumns = _ref2.initBaseInfoColumns;
23940
+ var getShowFilterColumns = useCallback(function (_ref4) {
23941
+ var showHeader = _ref4.showHeader,
23942
+ initBaseInfoColumns = _ref4.initBaseInfoColumns;
22705
23943
  var baseInfoColumns = [];
22706
23944
  var isStringArray = Array.isArray(showHeader) && typeof showHeader[0] === 'string';
22707
23945
  var isObjectArray = Array.isArray(showHeader) && Object.prototype.toString.call(showHeader[0]) === '[object Object]';
@@ -23856,7 +25094,7 @@ var jyUtils = {
23856
25094
  };
23857
25095
 
23858
25096
  var singletonMap$7 = new Map();
23859
- var getOrderListSingleton$2 = function getOrderListSingleton(orderNo) {
25097
+ var getJkyOrderListSingleton = function getJkyOrderListSingleton(orderNo) {
23860
25098
  if (!singletonMap$7.has(orderNo)) {
23861
25099
  var p = new Promise(function (resolve, reject) {
23862
25100
  var doReject = function doReject(err) {
@@ -23864,6 +25102,50 @@ var getOrderListSingleton$2 = function getOrderListSingleton(orderNo) {
23864
25102
  singletonMap$7.delete(orderNo);
23865
25103
  reject(err);
23866
25104
  };
25105
+ extendRequest('/qy/gdfw/order/jkyOrderDetail', {
25106
+ method: 'post',
25107
+ data: {
25108
+ billNo: orderNo
25109
+ }
25110
+ }).then(function (res) {
25111
+ if (res === null || res === void 0 ? void 0 : res.success) {
25112
+ var _res$data, _res$data$tradeOrderD, _res$data3;
25113
+ 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) {
25114
+ var _filterJkyOrders, _res$data2;
25115
+ res.data.trades = (_filterJkyOrders = filterJkyOrders(res === null || res === void 0 ? void 0 : (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.tradeOrderDetails, orderNo)) === null || _filterJkyOrders === void 0 ? void 0 : _filterJkyOrders.map(function (item) {
25116
+ return _objectSpread2(_objectSpread2({}, item), {}, {
25117
+ tradeType: JKY_ORDER_TYPE_MAP[item.tradeType],
25118
+ tradeStatus: JKY_ORDER_STATUS_MAP[item.tradeStatus]
25119
+ });
25120
+ });
25121
+ }
25122
+ resolve(((_res$data3 = res.data) === null || _res$data3 === void 0 ? void 0 : _res$data3.trades) || []);
25123
+ // 延迟10秒清除,保证订单的时效性
25124
+ setTimeout(function () {
25125
+ singletonMap$7.delete(orderNo);
25126
+ }, 1000 * 10);
25127
+ } else {
25128
+ doReject(res);
25129
+ }
25130
+ }).catch(doReject);
25131
+ });
25132
+ singletonMap$7.set(orderNo, p);
25133
+ }
25134
+ return singletonMap$7.get(orderNo);
25135
+ };
25136
+ var jkyUtils = {
25137
+ getJkyOrderListSingleton: getJkyOrderListSingleton
25138
+ };
25139
+
25140
+ var singletonMap$8 = new Map();
25141
+ var getOrderListSingleton$2 = function getOrderListSingleton(orderNo) {
25142
+ if (!singletonMap$8.has(orderNo)) {
25143
+ var p = new Promise(function (resolve, reject) {
25144
+ var doReject = function doReject(err) {
25145
+ // 清空掉错误的请求记录
25146
+ singletonMap$8.delete(orderNo);
25147
+ reject(err);
25148
+ };
23867
25149
  extendRequest('/qy/gdfw/order/kmErpOrderDetail', {
23868
25150
  method: 'post',
23869
25151
  data: {
@@ -23887,16 +25169,16 @@ var getOrderListSingleton$2 = function getOrderListSingleton(orderNo) {
23887
25169
  }
23888
25170
  // 延迟10秒清除,保证订单的时效性
23889
25171
  setTimeout(function () {
23890
- singletonMap$7.delete(orderNo);
25172
+ singletonMap$8.delete(orderNo);
23891
25173
  }, 1000 * 10);
23892
25174
  } else {
23893
25175
  doReject(data);
23894
25176
  }
23895
25177
  }).catch(doReject);
23896
25178
  });
23897
- singletonMap$7.set(orderNo, p);
25179
+ singletonMap$8.set(orderNo, p);
23898
25180
  }
23899
- return singletonMap$7.get(orderNo);
25181
+ return singletonMap$8.get(orderNo);
23900
25182
  };
23901
25183
  var kmUtils = {
23902
25184
  getOrderListSingleton: getOrderListSingleton$2
@@ -23913,6 +25195,7 @@ var columnsMap = {
23913
25195
  GY_SYSTEM_ORDER: GY_SYSTEM_ORDER_CONFIG.columns,
23914
25196
  JST_SYSTEM_ORDER: JST_SYSTEM_ORDER_CONFIG.columns,
23915
25197
  JY_SYSTEM_ORDER: JY_SYSTEM_ORDER_CONFIG.columns,
25198
+ JKY_SYSTEM_ORDER: JKY_SYSTEM_ORDER_CONFIG.columns,
23916
25199
  WDT_RETURN_BILL_NO: WDT_RETURN_BILL_NO_CONFIG.columns
23917
25200
  };
23918
25201
  var rowKeyMap = {
@@ -23924,6 +25207,7 @@ var rowKeyMap = {
23924
25207
  GY_SYSTEM_ORDER: 'billNo',
23925
25208
  JST_SYSTEM_ORDER: 'oId',
23926
25209
  JY_SYSTEM_ORDER: 'tradeNo',
25210
+ JKY_SYSTEM_ORDER: 'tradeNo',
23927
25211
  WDT_RETURN_BILL_NO: 'refundNo'
23928
25212
  };
23929
25213
  var index$2 = (function (props) {
@@ -23938,7 +25222,6 @@ var index$2 = (function (props) {
23938
25222
  useEffect(function () {
23939
25223
  var _value$orders, _value$showOrderInfo;
23940
25224
  valueRef.current = value;
23941
- console.log('value77777777', value);
23942
25225
  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) {
23943
25226
  onceRef.current = true;
23944
25227
  if (type === 'BS_SYSTEM_ORDER') {
@@ -23957,6 +25240,8 @@ var index$2 = (function (props) {
23957
25240
  getJstOrderList(value.orderNo);
23958
25241
  } else if (type === 'JY_SYSTEM_ORDER') {
23959
25242
  getJyOrderList(value.orderNo);
25243
+ } else if (type === 'JKY_SYSTEM_ORDER') {
25244
+ getJkyOrderList(value.orderNo);
23960
25245
  }
23961
25246
  }
23962
25247
  }, [value, type]);
@@ -24042,7 +25327,10 @@ var index$2 = (function (props) {
24042
25327
  case 0:
24043
25328
  wdtUtils.getWdtOrderListSingleton(orderNo).then(function (data) {
24044
25329
  var trades = ((data === null || data === void 0 ? void 0 : data.trades) || []).filter(function (item) {
24045
- return (item.srcTid || '').split(',').includes(orderNo);
25330
+ var _split;
25331
+ return (_split = (item.srcTid || '').split(',')) === null || _split === void 0 ? void 0 : _split.some(function (tid) {
25332
+ return tid.indexOf(orderNo) > -1;
25333
+ });
24046
25334
  });
24047
25335
  _onChange === null || _onChange === void 0 ? void 0 : _onChange(_objectSpread2(_objectSpread2({}, valueRef.current || {}), {}, {
24048
25336
  orders: trades,
@@ -24218,6 +25506,31 @@ var index$2 = (function (props) {
24218
25506
  return _ref10.apply(this, arguments);
24219
25507
  };
24220
25508
  }();
25509
+ var getJkyOrderList = /*#__PURE__*/function () {
25510
+ var _ref12 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9(orderNo) {
25511
+ return _regeneratorRuntime().wrap(function _callee9$(_context9) {
25512
+ while (1) switch (_context9.prev = _context9.next) {
25513
+ case 0:
25514
+ jkyUtils.getJkyOrderListSingleton(orderNo).then(function (data) {
25515
+ var trades = ((data === null || data === void 0 ? void 0 : data.trades) || []).filter(function (item) {
25516
+ return getIsPlatformCodesIncludeOrderNos(item.platformCode, orderNo);
25517
+ });
25518
+ _onChange === null || _onChange === void 0 ? void 0 : _onChange(_objectSpread2(_objectSpread2({}, valueRef.current || {}), {}, {
25519
+ orders: trades,
25520
+ showOrderInfo: trades
25521
+ }));
25522
+ });
25523
+ onceRef.current = false;
25524
+ case 2:
25525
+ case "end":
25526
+ return _context9.stop();
25527
+ }
25528
+ }, _callee9);
25529
+ }));
25530
+ return function getJkyOrderList(_x9) {
25531
+ return _ref12.apply(this, arguments);
25532
+ };
25533
+ }();
24221
25534
  var rowSelection = {
24222
25535
  selectedRowKeys: (value === null || value === void 0 ? void 0 : value.selectIds) || [],
24223
25536
  fixed: true,
@@ -24642,16 +25955,16 @@ var orderSubFormConstants = {
24642
25955
  };
24643
25956
 
24644
25957
  var getSelectWidgetMap$1 = orderSubFormConstants.getSelectWidgetMap;
24645
- var singletonMap$8 = new Map();
25958
+ var singletonMap$9 = new Map();
24646
25959
  var getOrderListSingleton$3 = function getOrderListSingleton(parmas) {
24647
25960
  var orderNo = parmas.orderNo,
24648
25961
  shopId = parmas.shopId;
24649
25962
  var key = "".concat(orderNo, "-").concat(shopId);
24650
- if (!singletonMap$8.has(key)) {
25963
+ if (!singletonMap$9.has(key)) {
24651
25964
  var p = new Promise(function (resolve, reject) {
24652
25965
  var doReject = function doReject(err) {
24653
25966
  // 清空掉错误的请求记录
24654
- singletonMap$8.delete(key);
25967
+ singletonMap$9.delete(key);
24655
25968
  reject(err);
24656
25969
  };
24657
25970
  extendRequest('/qy/gdfw/order/subOrderItemsDetail', {
@@ -24667,16 +25980,16 @@ var getOrderListSingleton$3 = function getOrderListSingleton(parmas) {
24667
25980
  }
24668
25981
  // 延迟10秒清除,保证订单的时效性
24669
25982
  setTimeout(function () {
24670
- singletonMap$8.delete(key);
25983
+ singletonMap$9.delete(key);
24671
25984
  }, 1000 * 10);
24672
25985
  } else {
24673
25986
  doReject(data);
24674
25987
  }
24675
25988
  }).catch(doReject);
24676
25989
  });
24677
- singletonMap$8.set(key, p);
25990
+ singletonMap$9.set(key, p);
24678
25991
  }
24679
- return singletonMap$8.get(key);
25992
+ return singletonMap$9.get(key);
24680
25993
  };
24681
25994
  var renderEditItem = function renderEditItem(_ref) {
24682
25995
  var item = _ref.item,
@@ -25109,6 +26422,9 @@ var isErpType$1 = {
25109
26422
  },
25110
26423
  isJy: function isJy(type) {
25111
26424
  return ['JY_GOODS'].includes(type);
26425
+ },
26426
+ isJky: function isJky(type) {
26427
+ return ['JKY_GOODS'].includes(type);
25112
26428
  }
25113
26429
  };
25114
26430
  var processAllOrders = function processAllOrders(_ref) {
@@ -25152,7 +26468,10 @@ var processWdtOrders = function processWdtOrders(_ref2) {
25152
26468
  var data = _ref2.data,
25153
26469
  orderNo = _ref2.orderNo;
25154
26470
  var trades = ((data === null || data === void 0 ? void 0 : data.trades) || []).filter(function (item) {
25155
- return (item.srcTid || '').split(',').includes(orderNo);
26471
+ var _split;
26472
+ return (_split = (item.srcTid || '').split(',')) === null || _split === void 0 ? void 0 : _split.some(function (tid) {
26473
+ return tid.indexOf(orderNo) > -1;
26474
+ });
25156
26475
  });
25157
26476
  return trades;
25158
26477
  };
@@ -25406,6 +26725,32 @@ var componentMap$2 = {
25406
26725
  },
25407
26726
  getOrderList: jyUtils.getJyOrderListSingleton
25408
26727
  },
26728
+ JKY_GOODS: {
26729
+ type: 'jky',
26730
+ key: 'jkyGoods',
26731
+ name: '吉客云',
26732
+ orderNo: 'tradeNo',
26733
+ goodDetailOrderNo: 'tradeNo',
26734
+ eventNameMap: {
26735
+ // pubsub 事件
26736
+ type: 'jkyType',
26737
+ updateGoodsHandle: updateJkyGoodsHandle,
26738
+ selectListReturn: 'jkySelectListReturn',
26739
+ selectList: 'jkySelectList',
26740
+ reissueSelectList: 'jkyReissueSelectList',
26741
+ reissueSelectListReturn: 'jkyReissueSelectListReturn',
26742
+ reissueDeleteGood: 'jkyReissueDeleteGood',
26743
+ changeShopCode: 'jkyChangeShopCode',
26744
+ reissueType: 'jkyReissueType',
26745
+ returnType: 'jkyReturnType',
26746
+ returnSelectListReturn: 'jkyReturnSelectListReturn',
26747
+ returnSelectList: 'jkyReturnSelectList',
26748
+ deleteGood: 'jkyDeleteGood',
26749
+ returnDeleteGood: 'jkyReturnDeleteGood',
26750
+ exchangeDeleteGood: 'jkyExchangeDeleteGood'
26751
+ },
26752
+ getOrderList: jkyUtils.getJkyOrderListSingleton
26753
+ },
25409
26754
  WDT_AFTERSALE_GOODS: {
25410
26755
  type: 'wdtAftersale',
25411
26756
  key: 'wdtAftersaleGoods',
@@ -25437,7 +26782,7 @@ var componentMap$2 = {
25437
26782
  }
25438
26783
  };
25439
26784
  var CommonGoods = function CommonGoods(props) {
25440
- var _componentMap$compTyp5, _withInfo$current3, _withInfo$current4, _componentMap$compTyp7;
26785
+ var _withInfo$current3, _withInfo$current4, _componentMap$compTyp6;
25441
26786
  var value = props.value,
25442
26787
  disabled = props.disabled,
25443
26788
  onChange = props.onChange,
@@ -25453,6 +26798,10 @@ var CommonGoods = function CommonGoods(props) {
25453
26798
  _useState2 = _slicedToArray(_useState, 2),
25454
26799
  tableSelect = _useState2[0],
25455
26800
  setTableSelect = _useState2[1];
26801
+ var _useState3 = useState([]),
26802
+ _useState4 = _slicedToArray(_useState3, 2),
26803
+ originDataSource = _useState4[0],
26804
+ setOriginDataSource = _useState4[1];
25456
26805
  var withInfo = useRef(null);
25457
26806
  var valueRef = useRef(null);
25458
26807
  var tokens = useRef([]);
@@ -25464,10 +26813,90 @@ var CommonGoods = function CommonGoods(props) {
25464
26813
  compType.indexOf('WDT') > -1 && getWdtOrderList(value === null || value === void 0 ? void 0 : value.orderNo);
25465
26814
  }
25466
26815
  }, [value]);
26816
+ var sysItemIdMap = useMemo(function () {
26817
+ var map = {};
26818
+ if (compType.indexOf('KM') > -1) {
26819
+ var _value$kmGoods;
26820
+ value === null || value === void 0 ? void 0 : (_value$kmGoods = value.kmGoods) === null || _value$kmGoods === void 0 ? void 0 : _value$kmGoods.forEach(function (item) {
26821
+ map[item.sysItemId] = item;
26822
+ });
26823
+ }
26824
+ return map;
26825
+ }, [value === null || value === void 0 ? void 0 : value.kmGoods]);
26826
+ // 用于跟踪已经处理过的 sysItemId,避免重复处理
26827
+ var processedSysItemIdsRef = useRef(new Set());
26828
+ useEffect(function () {
26829
+ var fetchSupplier = /*#__PURE__*/function () {
26830
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(sysItemIds) {
26831
+ var _currentValue$kmGoods;
26832
+ var needFetchIds, supplierMap, hasChange, currentValue, kmGoods;
26833
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
26834
+ while (1) switch (_context.prev = _context.next) {
26835
+ case 0:
26836
+ if (sysItemIds.length) {
26837
+ _context.next = 2;
26838
+ break;
26839
+ }
26840
+ return _context.abrupt("return");
26841
+ case 2:
26842
+ // 过滤出还没有供应商信息的 sysItemId
26843
+ needFetchIds = sysItemIds.filter(function (id) {
26844
+ var item = sysItemIdMap[id];
26845
+ return item && (!item.supplierCode || !item.supplierName);
26846
+ });
26847
+ if (needFetchIds.length) {
26848
+ _context.next = 5;
26849
+ break;
26850
+ }
26851
+ return _context.abrupt("return");
26852
+ case 5:
26853
+ _context.next = 7;
26854
+ return servers.KM.getSupplierSingleton(needFetchIds);
26855
+ case 7:
26856
+ supplierMap = _context.sent;
26857
+ // 检查是否有实际变化,避免不必要的更新
26858
+ hasChange = false;
26859
+ currentValue = valueRef.current;
26860
+ kmGoods = currentValue === null || currentValue === void 0 ? void 0 : (_currentValue$kmGoods = currentValue.kmGoods) === null || _currentValue$kmGoods === void 0 ? void 0 : _currentValue$kmGoods.map(function (item) {
26861
+ var supplierInfo = supplierMap.get(item.sysItemId);
26862
+ var newSupplierCode = supplierInfo === null || supplierInfo === void 0 ? void 0 : supplierInfo.supplierCode;
26863
+ var newSupplierName = supplierInfo === null || supplierInfo === void 0 ? void 0 : supplierInfo.supplierName;
26864
+ // 如果供应商信息有变化,标记需要更新
26865
+ if (newSupplierCode && item.supplierCode !== newSupplierCode || newSupplierName && item.supplierName !== newSupplierName) {
26866
+ hasChange = true;
26867
+ // 标记已处理
26868
+ processedSysItemIdsRef.current.add(item.sysItemId);
26869
+ return _objectSpread2(_objectSpread2({}, item), {}, {
26870
+ supplierCode: newSupplierCode || item.supplierCode,
26871
+ supplierName: newSupplierName || item.supplierName
26872
+ });
26873
+ }
26874
+ return item;
26875
+ }); // 只在有实际变化时才更新
26876
+ if (hasChange && kmGoods) {
26877
+ onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, currentValue), {}, {
26878
+ kmGoods: kmGoods
26879
+ }));
26880
+ }
26881
+ case 12:
26882
+ case "end":
26883
+ return _context.stop();
26884
+ }
26885
+ }, _callee);
26886
+ }));
26887
+ return function fetchSupplier(_x) {
26888
+ return _ref.apply(this, arguments);
26889
+ };
26890
+ }();
26891
+ var sysItemIds = Object.keys(sysItemIdMap);
26892
+ if (sysItemIds === null || sysItemIds === void 0 ? void 0 : sysItemIds.length) {
26893
+ fetchSupplier(sysItemIds);
26894
+ }
26895
+ }, [sysItemIdMap]);
25467
26896
  var getWdtOrderList = /*#__PURE__*/function () {
25468
- var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(orderNo) {
25469
- return _regeneratorRuntime().wrap(function _callee$(_context) {
25470
- while (1) switch (_context.prev = _context.next) {
26897
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(orderNo) {
26898
+ return _regeneratorRuntime().wrap(function _callee2$(_context2) {
26899
+ while (1) switch (_context2.prev = _context2.next) {
25471
26900
  case 0:
25472
26901
  wdtUtils.getWdtOrderListSingleton(orderNo).then(function (data) {
25473
26902
  var orders = ((data === null || data === void 0 ? void 0 : data.trades) || []).filter(function (trade) {
@@ -25480,12 +26909,12 @@ var CommonGoods = function CommonGoods(props) {
25480
26909
  });
25481
26910
  case 1:
25482
26911
  case "end":
25483
- return _context.stop();
26912
+ return _context2.stop();
25484
26913
  }
25485
- }, _callee);
26914
+ }, _callee2);
25486
26915
  }));
25487
- return function getWdtOrderList(_x) {
25488
- return _ref.apply(this, arguments);
26916
+ return function getWdtOrderList(_x2) {
26917
+ return _ref2.apply(this, arguments);
25489
26918
  };
25490
26919
  }();
25491
26920
  useEffect(function () {
@@ -25591,8 +27020,8 @@ var CommonGoods = function CommonGoods(props) {
25591
27020
  mode: isStrict
25592
27021
  }))));
25593
27022
  };
25594
- var getGoodDetails = function getGoodDetails(_ref2) {
25595
- var mode = _ref2.mode;
27023
+ var getGoodDetails = function getGoodDetails(_ref3) {
27024
+ var mode = _ref3.mode;
25596
27025
  var updateHandle = componentMap$2[compType].eventNameMap['updateGoodsHandle'];
25597
27026
  if (!updateHandle) return [];
25598
27027
  var goodDetails = updateHandle((value === null || value === void 0 ? void 0 : value.orders) || [], {
@@ -25604,45 +27033,126 @@ var CommonGoods = function CommonGoods(props) {
25604
27033
  return !orderNo || (goodItem === null || goodItem === void 0 ? void 0 : goodItem[(_componentMap$compTyp = componentMap$2[compType]) === null || _componentMap$compTyp === void 0 ? void 0 : _componentMap$compTyp.goodDetailOrderNo]) === orderNo;
25605
27034
  }) : goodDetails;
25606
27035
  };
27036
+ // const getKmSupplier = async (list: any[]) => {
27037
+ // const systemItemIds = list?.map((item) => item.sysItemId);
27038
+ // const supplierMap = await servers.KM.getSupplierSingleton(systemItemIds);
27039
+ // list?.forEach((item) => {
27040
+ // const supplierInfo = supplierMap.get(item.sysItemId);
27041
+ // item.supplierCode = supplierInfo?.supplierCode;
27042
+ // item.supplierName = supplierInfo?.supplierName;
27043
+ // });
27044
+ // };
25607
27045
  // 找到该订单号下所有商品
25608
- var getAllTradeGoodsDetails = function getAllTradeGoodsDetails(_ref3) {
25609
- var mode = _ref3.mode;
25610
- var updateHandle = componentMap$2[compType].eventNameMap['updateGoodsHandle'];
25611
- console.log('value?.allOrders', value, (value === null || value === void 0 ? void 0 : value.allOrders) || []);
25612
- if (!updateHandle) return [];
25613
- var goodDetails = updateHandle((value === null || value === void 0 ? void 0 : value.allOrders) || [], {
25614
- orderBackGoodsLevel: props.orderBackGoodsLevel
25615
- });
25616
- var orderNo = value === null || value === void 0 ? void 0 : value.orderNo;
25617
- return mode ? goodDetails.filter(function (goodItem) {
25618
- var _componentMap$compTyp2;
25619
- 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;
25620
- }) : goodDetails;
25621
- };
25622
- var selectedGoodsChange = useCallback(function (skuList) {
25623
- var _componentMap$compTyp3, _componentMap$compTyp4, _uniqBy;
25624
- var newValue = _objectSpread2({}, value);
25625
- var isStrict = value.isStrict;
25626
- // 原订单商品
25627
- var originTradeGoodList = getAllTradeGoodsDetails({
25628
- mode: isStrict
25629
- }) || [];
25630
- // 当前选中的所有商品【包含了原订单+商品库】
25631
- 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)]) || [];
25632
- 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 = uniqBy(originTradeGoodList.concat(currentSelectGoodList), 'uuid')) === null || _uniqBy === void 0 ? void 0 : _uniqBy.filter(function (item) {
25633
- return skuList.includes(item.uuid);
25634
- });
25635
- onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
25636
- }, [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]);
27046
+ var getAllTradeGoodsDetails = /*#__PURE__*/function () {
27047
+ var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_ref4) {
27048
+ var mode, updateHandle, goodDetails, orderNo;
27049
+ return _regeneratorRuntime().wrap(function _callee3$(_context3) {
27050
+ while (1) switch (_context3.prev = _context3.next) {
27051
+ case 0:
27052
+ mode = _ref4.mode;
27053
+ updateHandle = componentMap$2[compType].eventNameMap['updateGoodsHandle'];
27054
+ if (updateHandle) {
27055
+ _context3.next = 4;
27056
+ break;
27057
+ }
27058
+ return _context3.abrupt("return", []);
27059
+ case 4:
27060
+ goodDetails = updateHandle((value === null || value === void 0 ? void 0 : value.allOrders) || [], {
27061
+ orderBackGoodsLevel: props.orderBackGoodsLevel
27062
+ });
27063
+ orderNo = value === null || value === void 0 ? void 0 : value.orderNo; // if (['KM_GOODS', 'KM_REISSUE_GOODS'].includes(compType)) {
27064
+ // await getKmSupplier(goodDetails);
27065
+ // }
27066
+ return _context3.abrupt("return", mode ? goodDetails.filter(function (goodItem) {
27067
+ var _componentMap$compTyp2;
27068
+ 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;
27069
+ }) : goodDetails);
27070
+ case 7:
27071
+ case "end":
27072
+ return _context3.stop();
27073
+ }
27074
+ }, _callee3);
27075
+ }));
27076
+ return function getAllTradeGoodsDetails(_x3) {
27077
+ return _ref5.apply(this, arguments);
27078
+ };
27079
+ }();
27080
+ // 异步获取 originDataSource
27081
+ useEffect(function () {
27082
+ var fetchOriginDataSource = /*#__PURE__*/function () {
27083
+ var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
27084
+ var data;
27085
+ return _regeneratorRuntime().wrap(function _callee4$(_context4) {
27086
+ while (1) switch (_context4.prev = _context4.next) {
27087
+ case 0:
27088
+ _context4.next = 2;
27089
+ return getAllTradeGoodsDetails({
27090
+ mode: value === null || value === void 0 ? void 0 : value.isStrict
27091
+ });
27092
+ case 2:
27093
+ data = _context4.sent;
27094
+ console.log('fetchOriginDataSource', data);
27095
+ setOriginDataSource(Array.isArray(data) ? data : []);
27096
+ case 5:
27097
+ case "end":
27098
+ return _context4.stop();
27099
+ }
27100
+ }, _callee4);
27101
+ }));
27102
+ return function fetchOriginDataSource() {
27103
+ return _ref6.apply(this, arguments);
27104
+ };
27105
+ }();
27106
+ fetchOriginDataSource();
27107
+ }, [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]);
27108
+ var selectedGoodsChange = /*#__PURE__*/function () {
27109
+ var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5(skuList) {
27110
+ var _valueRef$current9, _componentMap$compTyp3, _componentMap$compTyp4, _uniqBy;
27111
+ var newValue, isStrict, originTradeGoodList, currentSelectGoodList;
27112
+ return _regeneratorRuntime().wrap(function _callee5$(_context5) {
27113
+ while (1) switch (_context5.prev = _context5.next) {
27114
+ case 0:
27115
+ newValue = _objectSpread2({}, valueRef.current);
27116
+ isStrict = valueRef.current.isStrict; // 原订单商品
27117
+ _context5.next = 4;
27118
+ return getAllTradeGoodsDetails({
27119
+ mode: isStrict
27120
+ });
27121
+ case 4:
27122
+ _context5.t0 = _context5.sent;
27123
+ if (_context5.t0) {
27124
+ _context5.next = 7;
27125
+ break;
27126
+ }
27127
+ _context5.t0 = [];
27128
+ case 7:
27129
+ originTradeGoodList = _context5.t0;
27130
+ // 当前选中的所有商品【包含了原订单+商品库】
27131
+ 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)]) || [];
27132
+ 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 = uniqBy(originTradeGoodList.concat(currentSelectGoodList), 'uuid')) === null || _uniqBy === void 0 ? void 0 : _uniqBy.filter(function (item) {
27133
+ return skuList.includes(item.uuid);
27134
+ });
27135
+ onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
27136
+ case 11:
27137
+ case "end":
27138
+ return _context5.stop();
27139
+ }
27140
+ }, _callee5);
27141
+ }));
27142
+ return function selectedGoodsChange(_x4) {
27143
+ return _ref7.apply(this, arguments);
27144
+ };
27145
+ }();
25637
27146
  // 商品信息组件暂存后 重新编辑,此时需要重新获取订单下所有系统自订单的商品信息
25638
27147
  var getDataSourceAsync = function getDataSourceAsync() {
25639
- var _componentMap$compTyp6;
25640
- 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) {
27148
+ var _componentMap$compTyp5;
27149
+ 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) {
25641
27150
  var list = processAllOrders({
25642
27151
  data: data,
25643
27152
  orderNo: value === null || value === void 0 ? void 0 : value.orderNo,
25644
27153
  type: compType
25645
27154
  });
27155
+ console.log('getDataSourceAsync', list);
25646
27156
  onChange(_objectSpread2(_objectSpread2({}, valueRef.current), {}, {
25647
27157
  allOrders: list || []
25648
27158
  }));
@@ -25670,11 +27180,9 @@ var CommonGoods = function CommonGoods(props) {
25670
27180
  isStrict: value === null || value === void 0 ? void 0 : value.isStrict,
25671
27181
  systemOrders: value === null || value === void 0 ? void 0 : value.allOrders,
25672
27182
  selectedSystemOrders: value === null || value === void 0 ? void 0 : value.orders,
25673
- showChangeBtn: (_componentMap$compTyp7 = componentMap$2[compType]) === null || _componentMap$compTyp7 === void 0 ? void 0 : _componentMap$compTyp7.showChangeBtn,
27183
+ showChangeBtn: (_componentMap$compTyp6 = componentMap$2[compType]) === null || _componentMap$compTyp6 === void 0 ? void 0 : _componentMap$compTyp6.showChangeBtn,
25674
27184
  tradeGoods: {
25675
- originDataSource: getAllTradeGoodsDetails({
25676
- mode: value === null || value === void 0 ? void 0 : value.isStrict
25677
- }),
27185
+ originDataSource: originDataSource,
25678
27186
  getDataSourceAsync: getDataSourceAsync,
25679
27187
  selectedGoodsChange: selectedGoodsChange
25680
27188
  }
@@ -28921,7 +30429,8 @@ var SYSTEM_ORDER_COLUMNS_MAP = {
28921
30429
  GY_SYSTEM_ORDER: GY_SYSTEM_ORDER_CONFIG.columns,
28922
30430
  JST_SYSTEM_ORDER: JST_SYSTEM_ORDER_CONFIG.columns,
28923
30431
  JY_SYSTEM_ORDER: JY_SYSTEM_ORDER_CONFIG.columns,
30432
+ JKY_SYSTEM_ORDER: JKY_SYSTEM_ORDER_CONFIG.columns,
28924
30433
  WDT_RETURN_BILL_NO: WDT_RETURN_BILL_NO_CONFIG.columns
28925
30434
  };
28926
30435
 
28927
- export { ApaasAddress as Address, AliPay, Province as ApaasAddress, ApaasCascader, ApaasCheckbox, ApaasDate, withFormItem as ApaasHoc, ApaasImage, ApaasInput, ApaasInputNumber, ApaasLogistics, ApaasMultipleSelect, ApaasPosting, ApaasRadio, ApaasRate, ApaasSelect, ApaasSlider, ApaasTextArea, ApaasUpload, ApaasUploadAsync$1 as ApaasUploadAsync, ApaasUploadFile, index as ApaasUploadProAsync, AsyncSelect, bsE3Reissue as BsE3Reissue, BsExchange, BsGoods, BsReissue, BsReturnGoods as BsReturn, index$2 as BsSystemOrder, BuyerNick, CalculationInput, ChooseBaby, CommonExchangeGoods, CommonGoods, CommonSystemOrder$1 as CommonMultiStatus, CommonReturnGoods, CommonStatus, CommonSystemOrder, CopyTextIcon, ExpressLogistics, Goods, index$3 as GoodsTable, GyReissue, GyReturnGoods as GyReturn, IdentifyAddress, Invoice, jstGoods as JstGoods, ItemList as JstItemList, KmVideo, LogisticsInterception, LogisticsMoreInterception, LogisticsMoreTrajectory, LogisticsTrajectory, MsgStatus, OrderSubForm, utils as OrderSubFormUtils, ParseLogistics, Payment, PublicReissue, RemarkInput as Remark, ExpressLogistics as ReturnLogistics, SYSTEM_ORDER_COLUMNS_MAP, ShopNameSelect as ShopName, SkxGoods, IdInputSelect as SkxIdInputSelect, Status, SubForm, Supplier, TBGoodId, TBGoodSerial, TradeId, WdtGoodList, wdtReissue as WdtReissue, WlnGoods, columnsBaseInfoMap, erpColumnsMap, erpFormValidator, index$1 as erpModalColumnsMap, getColumns$4 as getGyColumns, getColumns$5 as getJstColumns, getColumns$7 as getJyColumns, getColumns$6 as getKmColumns, getColumns$8 as getSkxColumns, getColumns$2 as getWdtColumns, getColumns$3 as getWlnColumns, orderSubFormConstants, renderMap };
30436
+ export { ApaasAddress as Address, AliPay, Province as ApaasAddress, ApaasCascader, ApaasCheckbox, ApaasDate, withFormItem as ApaasHoc, ApaasImage, ApaasInput, ApaasInputNumber, ApaasLogistics, ApaasMultipleSelect, ApaasPosting, ApaasRadio, ApaasRate, ApaasSelect, ApaasSlider, ApaasTextArea, ApaasUpload, ApaasUploadAsync$1 as ApaasUploadAsync, ApaasUploadFile, index as ApaasUploadProAsync, AsyncSelect, bsE3Reissue as BsE3Reissue, BsExchange, BsGoods, BsReissue, BsReturnGoods as BsReturn, index$2 as BsSystemOrder, BuyerNick, CalculationInput, ChooseBaby, CommonExchangeGoods, CommonGoods, CommonSystemOrder$1 as CommonMultiStatus, CommonReturnGoods, CommonStatus, CommonSystemOrder, CopyTextIcon, ExpressLogistics, Goods, index$3 as GoodsTable, GyReissue, GyReturnGoods as GyReturn, IdentifyAddress, Invoice, jstGoods as JstGoods, ItemList as JstItemList, KmVideo, LogisticsInterception, LogisticsMoreInterception, LogisticsMoreTrajectory, LogisticsTrajectory, MsgStatus, OrderSubForm, utils as OrderSubFormUtils, ParseLogistics, Payment, PublicReissue, RemarkInput as Remark, ExpressLogistics as ReturnLogistics, SYSTEM_ORDER_COLUMNS_MAP, ShopNameSelect as ShopName, SkxGoods, IdInputSelect as SkxIdInputSelect, Status, SubForm, Supplier, TBGoodId, TBGoodSerial, TradeId, WdtGoodList, wdtReissue as WdtReissue, WlnGoods, columnsBaseInfoMap, erpColumnsMap, erpFormValidator, index$1 as erpModalColumnsMap, getColumns$4 as getGyColumns, getColumns$9 as getJkyColumns, getColumns$5 as getJstColumns, getColumns$7 as getJyColumns, getColumns$6 as getKmColumns, getColumns$8 as getSkxColumns, getColumns$2 as getWdtColumns, getColumns$3 as getWlnColumns, orderSubFormConstants, renderMap, renderSplitMap };