@kmkf-fe-packages/basic-components 0.24.0-alpha.2 → 0.24.0-alpha.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -369,15 +369,6 @@ function _regeneratorRuntime() {
369
369
  }
370
370
  }, exports;
371
371
  }
372
- function _typeof(obj) {
373
- "@babel/helpers - typeof";
374
-
375
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
376
- return typeof obj;
377
- } : function (obj) {
378
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
379
- }, _typeof(obj);
380
- }
381
372
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
382
373
  try {
383
374
  var info = gen[key](arg);
@@ -7378,11 +7369,12 @@ function ApaasRate(props) {
7378
7369
  }));
7379
7370
  }
7380
7371
 
7381
- kmkfUtils.AddressData.getInstance();
7382
- kmkfUtils.BsAddressData.getInstance();
7372
+ var addressData = kmkfUtils.AddressData.getInstance();
7373
+ var bsAddressData = kmkfUtils.BsAddressData.getInstance();
7383
7374
  var Province = function Province(props) {
7384
7375
  var _props$type = props.type,
7385
- type = _props$type === void 0 ? 'workOrder' : _props$type;
7376
+ type = _props$type === void 0 ? 'workOrder' : _props$type,
7377
+ value = props.value;
7386
7378
  var _useState = React.useState([]),
7387
7379
  _useState2 = _slicedToArray(_useState, 2),
7388
7380
  option = _useState2[0],
@@ -7397,7 +7389,7 @@ var Province = function Province(props) {
7397
7389
  while (1) switch (_context.prev = _context.next) {
7398
7390
  case 0:
7399
7391
  num++;
7400
- options = type !== 'bs' ? kmkfUtils.AddressData.getInstance().addressOptions || [] : kmkfUtils.BsAddressData.getInstance().addressOptions || [];
7392
+ options = type !== 'bs' ? addressData.addressOptions || [] : bsAddressData.addressOptions || [];
7401
7393
  if (!(options === null || options === void 0 ? void 0 : options.length) && num < 6) {
7402
7394
  time.current = setTimeout(function () {
7403
7395
  initPageSource();
@@ -7414,6 +7406,19 @@ var Province = function Province(props) {
7414
7406
  return _ref.apply(this, arguments);
7415
7407
  };
7416
7408
  }();
7409
+ var getBsAddress = function getBsAddress() {
7410
+ var data = JSON.parse(localStorage.getItem('bsAddressData') || '[]');
7411
+ if (data.length) {
7412
+ var options = kmkfUtils.toTree(data, 1);
7413
+ setOptions(options);
7414
+ }
7415
+ };
7416
+ //如果值改变地址不存在则再获取一遍
7417
+ React.useEffect(function () {
7418
+ if (value && type == 'bs' && !option.length) {
7419
+ getBsAddress();
7420
+ }
7421
+ }, [value, type, option]);
7417
7422
  React.useEffect(function () {
7418
7423
  if (!isFirst.current) {
7419
7424
  initPageSource();
@@ -7735,10 +7740,7 @@ var ShopNameSelect = function ShopNameSelect(props) {
7735
7740
  function ApaasAddress(props) {
7736
7741
  var value = props.value,
7737
7742
  onChange = props.onChange,
7738
- disabled = props.disabled,
7739
- _props$showIdentify = props.showIdentify,
7740
- showIdentify = _props$showIdentify === void 0 ? true : _props$showIdentify,
7741
- type = props.type;
7743
+ disabled = props.disabled;
7742
7744
  var changeCity = function changeCity(city) {
7743
7745
  onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, value), {}, {
7744
7746
  address: city
@@ -7750,20 +7752,7 @@ function ApaasAddress(props) {
7750
7752
  detail: e.target.value
7751
7753
  });
7752
7754
  };
7753
- var handleParseLogistics = function handleParseLogistics(val) {
7754
- var params = {
7755
- detail: val === null || val === void 0 ? void 0 : val.addressDetail,
7756
- address: []
7757
- };
7758
- var addressData = type === 'bs' ? kmkfUtils.BsAddressData.getInstance() : kmkfUtils.AddressData.getInstance();
7759
- if ((val === null || val === void 0 ? void 0 : val.province) && addressData.getProCodeByName(val === null || val === void 0 ? void 0 : val.province)) {
7760
- params.address = [addressData.getProCodeByName(val === null || val === void 0 ? void 0 : val.province), addressData.getProCodeByName(val === null || val === void 0 ? void 0 : val.city), addressData.getProCodeByName(val === null || val === void 0 ? void 0 : val.district)];
7761
- }
7762
- onChange === null || onChange === void 0 ? void 0 : onChange(params);
7763
- };
7764
- return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, !disabled && showIdentify && /*#__PURE__*/React__default['default'].createElement(ParseLogistics, {
7765
- onChange: handleParseLogistics
7766
- }), /*#__PURE__*/React__default['default'].createElement(Province, {
7755
+ return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(Province, {
7767
7756
  value: value === null || value === void 0 ? void 0 : value.address,
7768
7757
  onChange: changeCity,
7769
7758
  disabled: disabled
@@ -7961,9 +7950,7 @@ var GoodsModal = function GoodsModal(props) {
7961
7950
  maxLength = props.maxLength,
7962
7951
  shopList = props.shopList,
7963
7952
  changeSku = props.changeSku,
7964
- width = props.width,
7965
- _props$numIidType = props.numIidType,
7966
- numIidType = _props$numIidType === void 0 ? 'string' : _props$numIidType;
7953
+ width = props.width;
7967
7954
  var _useState = React.useState([]),
7968
7955
  _useState2 = _slicedToArray(_useState, 2),
7969
7956
  selectList = _useState2[0],
@@ -7980,25 +7967,6 @@ var GoodsModal = function GoodsModal(props) {
7980
7967
  _useState8 = _slicedToArray(_useState7, 2),
7981
7968
  loading = _useState8[0],
7982
7969
  setLoading = _useState8[1];
7983
- var transformIdType = function transformIdType(id) {
7984
- if (!['string', 'number'].includes(_typeof(id))) return id;
7985
- return numIidType === 'string' ? id + '' : +id;
7986
- };
7987
- var transformType = function transformType(item) {
7988
- if (!(item === null || item === void 0 ? void 0 : item.numIid)) return item;
7989
- return _objectSpread2(_objectSpread2({}, item), {}, {
7990
- numIid: transformIdType(item.numIid)
7991
- });
7992
- };
7993
- var handleSetSelect = function handleSetSelect(list) {
7994
- return setSelect(list.map(transformType));
7995
- };
7996
- var handleSelectIds = function handleSelectIds(list) {
7997
- return setSelectIds(list.map(transformIdType));
7998
- };
7999
- var handleSetGoodList = function handleSetGoodList(list) {
8000
- return setGoodList(list.map(transformType));
8001
- };
8002
7970
  var _useState9 = React.useState({
8003
7971
  apiName: 'queryItems',
8004
7972
  desc: true,
@@ -8092,15 +8060,15 @@ var GoodsModal = function GoodsModal(props) {
8092
8060
  var newSelect = selectList.filter(function (item) {
8093
8061
  return item.numIid !== good.numIid;
8094
8062
  });
8095
- handleSetSelect(_toConsumableArray(newSelect));
8063
+ setSelect(_toConsumableArray(newSelect));
8096
8064
  var ids = newSelect.map(function (item) {
8097
8065
  return item.numIid;
8098
8066
  });
8099
- handleSelectIds(ids);
8067
+ setSelectIds(ids);
8100
8068
  } else {
8101
8069
  if (type === 4 || changeSku) {
8102
- handleSetSelect([good]);
8103
- handleSelectIds([good.numIid]);
8070
+ setSelect([good]);
8071
+ setSelectIds([good.numIid]);
8104
8072
  } else {
8105
8073
  if (selectList.length >= maxLength) {
8106
8074
  antd.message.error("\u6700\u591A\u6DFB\u52A0".concat(maxLength, "\u5F20"));
@@ -8113,14 +8081,14 @@ var GoodsModal = function GoodsModal(props) {
8113
8081
  var newSelectList = selectList.filter(function (item) {
8114
8082
  return item.numIid !== good.numIid;
8115
8083
  });
8116
- handleSetSelect(newSelectList);
8084
+ setSelect(newSelectList);
8117
8085
  var _ids = newSelectList.map(function (item) {
8118
8086
  return item.numIid;
8119
8087
  });
8120
- handleSelectIds(_ids);
8088
+ setSelectIds(_ids);
8121
8089
  } else {
8122
- handleSetSelect([].concat(_toConsumableArray(selectList), [good]));
8123
- handleSelectIds([].concat(_toConsumableArray(selectIds), [good.numIid]));
8090
+ setSelect([].concat(_toConsumableArray(selectList), [good]));
8091
+ setSelectIds([].concat(_toConsumableArray(selectIds), [good.numIid]));
8124
8092
  }
8125
8093
  }
8126
8094
  }
@@ -8212,7 +8180,7 @@ var GoodsModal = function GoodsModal(props) {
8212
8180
  items.forEach(function (item) {
8213
8181
  item.platform = platform;
8214
8182
  });
8215
- handleSetGoodList(_toConsumableArray(items));
8183
+ setGoodList(_toConsumableArray(items));
8216
8184
  setTotal(totalCount);
8217
8185
  _context.next = 26;
8218
8186
  break;
@@ -8240,7 +8208,7 @@ var GoodsModal = function GoodsModal(props) {
8240
8208
  item.title = item.productName;
8241
8209
  item.platform = platform;
8242
8210
  });
8243
- handleSetGoodList(_toConsumableArray(newList));
8211
+ setGoodList(_toConsumableArray(newList));
8244
8212
  setTotal(_total);
8245
8213
  if (platform === 'sph' && nextKey && !nextKeyList.includes(nextKey)) {
8246
8214
  setNextKeyList([].concat(_toConsumableArray(nextKeyList), [nextKey]));
@@ -8326,12 +8294,12 @@ var GoodsModal = function GoodsModal(props) {
8326
8294
  React.useEffect(function () {
8327
8295
  setPlatformHandle(platform);
8328
8296
  if (imgList.length) {
8329
- handleSetSelect(imgList);
8297
+ setSelect(imgList);
8330
8298
  var ids = imgList === null || imgList === void 0 ? void 0 : imgList.map(function (item) {
8331
8299
  return item.numIid;
8332
8300
  });
8333
8301
  if (!(changeSku || type === 4)) {
8334
- handleSelectIds(ids);
8302
+ setSelectIds(ids);
8335
8303
  }
8336
8304
  }
8337
8305
  }, [platform]);
@@ -8429,9 +8397,9 @@ var GoodsModal = function GoodsModal(props) {
8429
8397
  spinning: loading
8430
8398
  }, /*#__PURE__*/React__default['default'].createElement("div", {
8431
8399
  className: "goodsMain"
8432
- }, (searchParams.type == 'select' ? selectList : goodList).map(function (good, index) {
8400
+ }, (searchParams.type == 'select' ? selectList : goodList).map(function (good) {
8433
8401
  return /*#__PURE__*/React__default['default'].createElement("div", {
8434
- key: good.numIid + "".concat(index),
8402
+ key: good.numIid,
8435
8403
  className: "goodItem ".concat(selectIds.includes(good.numIid) ? 'active' : ''),
8436
8404
  onClick: function onClick() {
8437
8405
  changeItem(good);
@@ -8493,7 +8461,7 @@ var Sku = /*#__PURE__*/React.forwardRef(function (props, ref) {
8493
8461
  });
8494
8462
  var handleSure = /*#__PURE__*/function () {
8495
8463
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
8496
- var type, SKU, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _yield$request, _yield$request$data, data;
8464
+ var type, SKU, _ref3, _ref4, _ref5, _ref6, _ref7, _yield$request, _yield$request$data, data;
8497
8465
  return _regeneratorRuntime().wrap(function _callee$(_context) {
8498
8466
  while (1) switch (_context.prev = _context.next) {
8499
8467
  case 0:
@@ -8528,10 +8496,7 @@ var Sku = /*#__PURE__*/React.forwardRef(function (props, ref) {
8528
8496
  }) === null || _ref4 === void 0 ? void 0 : _ref4.picUrl,
8529
8497
  outerSkuId: (_ref5 = SKU || {
8530
8498
  outerSkuId: ''
8531
- }) === null || _ref5 === void 0 ? void 0 : _ref5.outerSkuId,
8532
- skuId: ((_ref6 = SKU || {
8533
- skuId: ''
8534
- }) === null || _ref6 === void 0 ? void 0 : _ref6.skuId) || ''
8499
+ }) === null || _ref5 === void 0 ? void 0 : _ref5.outerSkuId
8535
8500
  });
8536
8501
  _context.next = 16;
8537
8502
  break;
@@ -8552,15 +8517,12 @@ var Sku = /*#__PURE__*/React.forwardRef(function (props, ref) {
8552
8517
  props.handleOk({
8553
8518
  enableItemId: data.length > 0 ? data[0]['supplierItemOuterId'] : '',
8554
8519
  enableSupplierName: data.length > 0 ? data[0]['supplierName'] : '',
8555
- propertiesName: ((_ref7 = SKU || {
8520
+ propertiesName: ((_ref6 = SKU || {
8556
8521
  label: ''
8557
- }) === null || _ref7 === void 0 ? void 0 : _ref7.label) || '',
8558
- picUrl: (_ref8 = SKU || {
8522
+ }) === null || _ref6 === void 0 ? void 0 : _ref6.label) || '',
8523
+ picUrl: (_ref7 = SKU || {
8559
8524
  picUrl: ''
8560
- }) === null || _ref8 === void 0 ? void 0 : _ref8.picUrl,
8561
- skuId: ((_ref9 = SKU || {
8562
- skuId: ''
8563
- }) === null || _ref9 === void 0 ? void 0 : _ref9.skuId) || ''
8525
+ }) === null || _ref7 === void 0 ? void 0 : _ref7.picUrl
8564
8526
  });
8565
8527
  case 16:
8566
8528
  setVisible(false);
@@ -8938,324 +8900,8 @@ var ChooseBaby = function ChooseBaby(props) {
8938
8900
  }));
8939
8901
  };
8940
8902
 
8941
- var css_248z$6 = ".goodsBox.single-row {\n max-height: 800px;\n overflow-y: auto;\n padding-top: 4px;\n flex-basis: 100%;\n}\n.goodsBox.single-row .goodBox-Img.rich-item.with-pic,\n.goodsBox.single-row .goodBox-Img.rich-item.with-attr,\n.goodsBox.single-row .goodBox-Img.rich-item.with-attr.with-pic {\n flex-basis: 100%;\n}\n.goodsBox.single-row .goodBox-Img.rich-item .right-context {\n flex-grow: 1;\n flex-shrink: 1;\n}\n.goodsBox.single-row .goodBox-Img.rich-item .right-context .good-item-attr {\n flex-grow: 1;\n flex-shrink: 1;\n max-width: 80px;\n width: 20px;\n flex-basis: 20px;\n}\n.goodsBox.single-row .goodBox-Img.rich-item .right-context .ant-input {\n flex-shrink: 1;\n flex-grow: 1;\n width: 20px;\n flex-basis: 40px;\n}\n.goodBox-Img.rich-item {\n position: relative;\n border: 1px solid #ccc;\n display: flex;\n flex-basis: 80px;\n flex-wrap: wrap;\n margin: 0 10px 10px 0;\n padding: 4px;\n}\n.goodBox-Img.rich-item.with-pic {\n flex-basis: 90px;\n}\n.goodBox-Img.rich-item.with-attr {\n flex-basis: 150px;\n}\n.goodBox-Img.rich-item.with-attr.with-pic {\n flex-basis: 238px;\n}\n.goodBox-Img.rich-item.with-attr.with-pic .goods-imgBox {\n margin-right: 8px;\n}\n.goodBox-Img.rich-item .good-item-attr {\n margin-right: 6px;\n width: 52px;\n flex-basis: 52px;\n}\n.goodBox-Img.rich-item .goods-imgBox {\n margin-bottom: 0;\n}\n.goodBox-Img.rich-item .right-context div {\n display: flex;\n}\n.goodBox-Img.rich-item .right-context div:not(:first-child) {\n margin-top: 4px;\n}\n";
8942
- styleInject(css_248z$6);
8943
-
8944
- var GoodItem = function GoodItem(props) {
8945
- var _props$isSingleRow = props.isSingleRow,
8946
- isSingleRow = _props$isSingleRow === void 0 ? true : _props$isSingleRow,
8947
- _props$value = props.value,
8948
- value = _props$value === void 0 ? {
8949
- shopId: '',
8950
- imgList: []
8951
- } : _props$value,
8952
- _props$maxLength = props.maxLength,
8953
- maxLength = _props$maxLength === void 0 ? 999999999 : _props$maxLength,
8954
- onChange = props.onChange,
8955
- _props$type = props.type,
8956
- type = _props$type === void 0 ? 2 : _props$type,
8957
- _props$shopList = props.shopList,
8958
- shopList = _props$shopList === void 0 ? [] : _props$shopList,
8959
- showHeader = props.showHeader,
8960
- _props$showChangeBtn = props.showChangeBtn,
8961
- otherOperations = props.otherOperations,
8962
- canUpdateNumber = props.canUpdateNumber,
8963
- enableItemId = props.enableItemId,
8964
- enableSupplierName = props.enableSupplierName,
8965
- userNick = props.userNick,
8966
- disabled = props.disabled,
8967
- changeSku = props.changeSku,
8968
- width = props.width;
8969
- var shopId = value.shopId,
8970
- imgList = value.imgList;
8971
- var _useState = React.useState(false),
8972
- _useState2 = _slicedToArray(_useState, 2),
8973
- visible = _useState2[0],
8974
- setVisible = _useState2[1];
8975
- var skuRef = React.useRef();
8976
- var boxRef = React.useRef();
8977
- //是否是淘宝店铺
8978
- var isTaobaoPlat = React.useMemo(function () {
8979
- return shopList.some(function (item) {
8980
- return item.shopId === shopId && item.shopSourceStr === 'TAOBAO';
8981
- });
8982
- }, [shopId]);
8983
- // 查询SKU
8984
- var querySkus = /*#__PURE__*/function () {
8985
- var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(_ref) {
8986
- var shopId, numIids;
8987
- return _regeneratorRuntime().wrap(function _callee$(_context) {
8988
- while (1) switch (_context.prev = _context.next) {
8989
- case 0:
8990
- shopId = _ref.shopId, numIids = _ref.numIids;
8991
- return _context.abrupt("return", extendRequest('/qy/gdfw/workOrder/queryItemSkus', {
8992
- method: 'post',
8993
- data: {
8994
- shopId: shopId,
8995
- numIids: numIids
8996
- }
8997
- }));
8998
- case 2:
8999
- case "end":
9000
- return _context.stop();
9001
- }
9002
- }, _callee);
9003
- }));
9004
- return function querySkus(_x) {
9005
- return _ref2.apply(this, arguments);
9006
- };
9007
- }();
9008
- //删除商品
9009
- var handleDelete = function handleDelete(index) {
9010
- var newSelect = imgList.filter(function (_, i) {
9011
- return index !== i;
9012
- });
9013
- var newValue = {
9014
- shopId: shopId,
9015
- imgList: _toConsumableArray(newSelect)
9016
- };
9017
- onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
9018
- };
9019
- //选择sku
9020
- var handleSelectSku = function handleSelectSku(_ref3) {
9021
- var enableItemId = _ref3.enableItemId,
9022
- enableSupplierName = _ref3.enableSupplierName,
9023
- propertiesName = _ref3.propertiesName,
9024
- picUrl = _ref3.picUrl,
9025
- outerSkuId = _ref3.outerSkuId,
9026
- skuId = _ref3.skuId;
9027
- var newList = JSON.parse(JSON.stringify(imgList));
9028
- if (type === 4) {
9029
- newList[newList.length - 1].itemId = enableItemId;
9030
- newList[newList.length - 1].supplierName = enableSupplierName;
9031
- } else {
9032
- newList[newList.length - 1].propertiesName = propertiesName;
9033
- }
9034
- if (type === 1) {
9035
- if (outerSkuId) newList[newList.length - 1].outerSkuId = outerSkuId;
9036
- if (skuId) newList[newList.length - 1].skuId = skuId;
9037
- }
9038
- //替换成sku的图片
9039
- picUrl && (newList[newList.length - 1].picUrl = picUrl);
9040
- onChange === null || onChange === void 0 ? void 0 : onChange({
9041
- shopId: shopId,
9042
- imgList: newList
9043
- });
9044
- };
9045
- //选择回调
9046
- var onSubmit = /*#__PURE__*/function () {
9047
- var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(list) {
9048
- var newList, newImgList, _yield$querySkus, data, _skuRef$current, options;
9049
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
9050
- while (1) switch (_context2.prev = _context2.next) {
9051
- case 0:
9052
- newList = list.map(function (item) {
9053
- //过滤属性 只保存需要的字段
9054
- var params = {
9055
- uuid: kmkfUtils.uuid(),
9056
- platform: item.platform,
9057
- price: item.price,
9058
- canDelete: true,
9059
- title: item.title,
9060
- outerId: item.outerId,
9061
- picUrl: item.picUrl,
9062
- numIid: item.numIid,
9063
- skuId: item.skuId,
9064
- outerSkuId: item.outerSkuId
9065
- };
9066
- // if (type === 1) {
9067
- // params.outerId = item.outerId; //编码
9068
- // }
9069
- if (changeSku) {
9070
- params.propertiesName = '';
9071
- }
9072
- // if (type === 4) {
9073
- // if (enableItemId) {
9074
- // params.itemId = '';
9075
- // }
9076
- // if (enableSupplierName) {
9077
- // params.supplierName = '';
9078
- // }
9079
- // }
9080
- return params;
9081
- });
9082
- newImgList = changeSku || type === 4 ? [].concat(_toConsumableArray(imgList), _toConsumableArray(newList)) : _toConsumableArray(newList);
9083
- onChange === null || onChange === void 0 ? void 0 : onChange({
9084
- shopId: shopId,
9085
- imgList: newImgList
9086
- });
9087
- setVisible(false);
9088
- //供应上编码组件 || 商品组件且可以选择sku
9089
- if (!(type === 4 && (enableItemId || enableSupplierName) || type !== 4 && changeSku && isTaobaoPlat && list.length > 0)) {
9090
- _context2.next = 10;
9091
- break;
9092
- }
9093
- _context2.next = 7;
9094
- return querySkus({
9095
- shopId: shopId,
9096
- numIids: list[0].numIid
9097
- });
9098
- case 7:
9099
- _yield$querySkus = _context2.sent;
9100
- data = _yield$querySkus.data;
9101
- if (data.length > 0 && data[0]['skus'] && data[0]['skus']['length'] > 0) {
9102
- options = data[0]['skus'].map(function (item) {
9103
- return {
9104
- label: item.propertiesName.split(';').map(function (i) {
9105
- return i.split(':').slice(2);
9106
- }).join(';'),
9107
- value: item.skuId,
9108
- picUrl: item.picUrl,
9109
- outerSkuId: item === null || item === void 0 ? void 0 : item.outerSkuId,
9110
- skuId: item.skuId
9111
- };
9112
- });
9113
- (_skuRef$current = skuRef.current) === null || _skuRef$current === void 0 ? void 0 : _skuRef$current.open({
9114
- shopId: shopId,
9115
- numIids: list[0].numIid,
9116
- options: options
9117
- });
9118
- }
9119
- case 10:
9120
- case "end":
9121
- return _context2.stop();
9122
- }
9123
- }, _callee2);
9124
- }));
9125
- return function onSubmit(_x2) {
9126
- return _ref4.apply(this, arguments);
9127
- };
9128
- }();
9129
- var headerList = showHeader || {
9130
- 1: ['title', 'outerId', 'picUrl', 'numIid', 'skuId', 'outerSkuId', 'propertiesName' // sku 信息
9131
- ]
9132
- }[type] || [];
9133
- //修改参数
9134
- var handleChangeValue = function handleChangeValue(key, index) {
9135
- return function (e) {
9136
- var _e$target;
9137
- var newImgList = _toConsumableArray(imgList);
9138
- newImgList[index][key] = e === null || e === void 0 ? void 0 : (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.value;
9139
- var newValue = {
9140
- shopId: shopId,
9141
- imgList: newImgList
9142
- };
9143
- onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2({}, newValue));
9144
- };
9145
- };
9146
- // TODO: 目前只做了type 1的处理,其他的还是走老的文件 ./index.tsx
9147
- var goodItemAttrs = [{
9148
- isShow: headerList.includes('title'),
9149
- key: 'title',
9150
- label: '商品名称'
9151
- }, {
9152
- isShow: headerList.includes('outerId'),
9153
- key: 'outerId',
9154
- label: '商品编码'
9155
- },
9156
- // { isShow: headerList.includes('picUrl'), key: 'picUrl', label: '图片' },
9157
- {
9158
- isShow: headerList.includes('numIid'),
9159
- key: 'numIid',
9160
- label: '商品id'
9161
- }, {
9162
- isShow: changeSku && headerList.includes('skuId'),
9163
- key: 'skuId',
9164
- label: 'SKU ID'
9165
- }, {
9166
- isShow: changeSku && headerList.includes('outerSkuId'),
9167
- key: 'outerSkuId',
9168
- label: 'SKU 编码'
9169
- }, {
9170
- isShow: changeSku && headerList.includes('propertiesName'),
9171
- key: 'propertiesName',
9172
- label: 'SKU 信息'
9173
- }];
9174
- var hasPic = headerList.includes('picUrl');
9175
- var hasAttr = hasPic ? headerList.length > 1 : headerList.length > 0;
9176
- return /*#__PURE__*/React__default['default'].createElement("div", {
9177
- ref: boxRef,
9178
- className: "goodsBox goodsBox-item-horizontal--box".concat(isSingleRow ? ' single-row' : '')
9179
- }, imgList === null || imgList === void 0 ? void 0 : imgList.map(function (img, index) {
9180
- return /*#__PURE__*/React__default['default'].createElement("div", {
9181
- key: index,
9182
- className: "goodBox-Img rich-item".concat(hasPic ? ' with-pic' : '').concat(hasAttr ? ' with-attr' : '')
9183
- }, !disabled && /*#__PURE__*/React__default['default'].createElement("img", {
9184
- src: iconDelete,
9185
- alt: "",
9186
- className: "icon-close",
9187
- onClick: function onClick() {
9188
- handleDelete(index);
9189
- }
9190
- }), hasPic && /*#__PURE__*/React__default['default'].createElement("div", {
9191
- className: "goods-imgBox",
9192
- key: "".concat(img.picUrl, "-").concat(index, "-goods")
9193
- }, img.platform !== 'taobao' ? /*#__PURE__*/React__default['default'].createElement("img", {
9194
- src: img.picUrl || defaultImg,
9195
- className: "img",
9196
- alt: ""
9197
- }) : /*#__PURE__*/React__default['default'].createElement("a", {
9198
- href: "https://item.taobao.com/item.htm?id=".concat(img.numIid),
9199
- target: "_blank"
9200
- }, /*#__PURE__*/React__default['default'].createElement("img", {
9201
- src: img.picUrl || defaultImg,
9202
- className: "img",
9203
- alt: ""
9204
- }))), /*#__PURE__*/React__default['default'].createElement("div", {
9205
- className: "right-context",
9206
- key: "".concat(img.picUrl, "-").concat(index, "-context")
9207
- }, goodItemAttrs.map(function (item) {
9208
- return item.isShow && /*#__PURE__*/React__default['default'].createElement("div", {
9209
- key: item.key
9210
- }, /*#__PURE__*/React__default['default'].createElement("span", {
9211
- className: "good-item-attr"
9212
- }, item.label), /*#__PURE__*/React__default['default'].createElement(antd.Input, {
9213
- placeholder: "\u8BF7\u8F93\u5165".concat(item.label),
9214
- title: String(img[item.key] || ''),
9215
- value: img[item.key],
9216
- disabled: item.disabled || disabled,
9217
- onChange: handleChangeValue(item.key, index)
9218
- }));
9219
- })));
9220
- }), imgList.length < maxLength && !disabled ? /*#__PURE__*/React__default['default'].createElement("div", {
9221
- className: "goods-imgBox",
9222
- onClick: function onClick() {
9223
- if (!shopId) {
9224
- antd.message.error('请选择店铺');
9225
- return;
9226
- }
9227
- setVisible(true);
9228
- }
9229
- }, /*#__PURE__*/React__default['default'].createElement("div", {
9230
- className: "add-btn",
9231
- style: {
9232
- marginTop: '15px'
9233
- }
9234
- }, "+"), /*#__PURE__*/React__default['default'].createElement("div", {
9235
- className: "text"
9236
- }, "\u6DFB\u52A0")) : null, visible ? /*#__PURE__*/React__default['default'].createElement(GoodsModal, {
9237
- visible: visible,
9238
- onSubmit: onSubmit,
9239
- width: width,
9240
- type: type,
9241
- imgList: imgList,
9242
- shopList: shopList,
9243
- shopId: shopId,
9244
- maxLength: maxLength,
9245
- changeSku: changeSku,
9246
- onCancel: function onCancel() {
9247
- setVisible(false);
9248
- }
9249
- }) : null, /*#__PURE__*/React__default['default'].createElement(Sku, {
9250
- handleOk: handleSelectSku,
9251
- ref: skuRef,
9252
- userNick: userNick,
9253
- type: type
9254
- }));
9255
- };
9256
-
9257
8903
  var TBGoodSerial = function TBGoodSerial(props) {
9258
- return /*#__PURE__*/React__default['default'].createElement(GoodItem, _objectSpread2(_objectSpread2({}, props), {}, {
8904
+ return /*#__PURE__*/React__default['default'].createElement(Goods, _objectSpread2(_objectSpread2({}, props), {}, {
9259
8905
  type: 1
9260
8906
  }));
9261
8907
  };
@@ -9266,8 +8912,8 @@ var Supplier = function Supplier(props) {
9266
8912
  }));
9267
8913
  };
9268
8914
 
9269
- var css_248z$7 = ".cardBox {\n position: absolute;\n z-index: 1;\n border: 1px solid #e6e6e6;\n background-color: #fff;\n color: #303133;\n border-radius: 4px;\n overflow: auto;\n height: 200px;\n cursor: pointer;\n}\n.cardBox .cardli {\n padding: 7px 13px;\n width: 332px;\n}\n.cardBox .cardli:hover {\n background-color: #f5f7fa;\n}\n.cardBox .cardText {\n font-size: 14px;\n color: #333;\n margin: 0;\n padding: 0;\n line-height: 26px;\n}\n.cardBox .c-f60 {\n color: #f60;\n}\n.btn-discern {\n margin-left: 10px;\n height: 24px;\n font-size: 12px;\n color: #1B5BF3;\n border-color: #1B5BF3;\n padding: 0;\n}\n";
9270
- styleInject(css_248z$7);
8915
+ var css_248z$6 = ".cardBox {\n position: absolute;\n z-index: 1;\n border: 1px solid #e6e6e6;\n background-color: #fff;\n color: #303133;\n border-radius: 4px;\n overflow: auto;\n height: 200px;\n cursor: pointer;\n}\n.cardBox .cardli {\n padding: 7px 13px;\n width: 332px;\n}\n.cardBox .cardli:hover {\n background-color: #f5f7fa;\n}\n.cardBox .cardText {\n font-size: 14px;\n color: #333;\n margin: 0;\n padding: 0;\n line-height: 26px;\n}\n.cardBox .c-f60 {\n color: #f60;\n}\n.btn-discern {\n margin-left: 10px;\n height: 24px;\n font-size: 12px;\n color: #1B5BF3;\n border-color: #1B5BF3;\n padding: 0;\n}\n";
8916
+ styleInject(css_248z$6);
9271
8917
 
9272
8918
  var Invoice = function Invoice(props) {
9273
8919
  var _props$value = props.value,
@@ -9696,8 +9342,8 @@ var Payment = function Payment(props) {
9696
9342
  }));
9697
9343
  };
9698
9344
 
9699
- var css_248z$8 = ".interceptBox :global(.ant-select-item-option-content) {\n overflow: auto !important;\n white-space: initial !important;\n}\n";
9700
- styleInject(css_248z$8);
9345
+ var css_248z$7 = ".interceptBox :global(.ant-select-item-option-content) {\n overflow: auto !important;\n white-space: initial !important;\n}\n";
9346
+ styleInject(css_248z$7);
9701
9347
 
9702
9348
  var Item = antd.Form.Item;
9703
9349
  var LogisticsInterception = function LogisticsInterception(props) {
@@ -9878,7 +9524,7 @@ var LogisticsInterception = function LogisticsInterception(props) {
9878
9524
  }
9879
9525
  };
9880
9526
  return /*#__PURE__*/React__default['default'].createElement("div", {
9881
- className: css_248z$8.interceptBox
9527
+ className: css_248z$7.interceptBox
9882
9528
  }, /*#__PURE__*/React__default['default'].createElement(Item, {
9883
9529
  label: '物流信息',
9884
9530
  required: required,
@@ -10488,8 +10134,8 @@ var jstGoods = function jstGoods(props) {
10488
10134
  })) : null) : null);
10489
10135
  };
10490
10136
 
10491
- var css_248z$9 = ".jstGoodsBox {\n display: flex;\n flex-wrap: wrap;\n}\n.jstGoodsBox .goodBox-Img {\n width: 80px;\n margin: 0 10px 10px 0;\n}\n.jstGoodsBox .right-context {\n font-size: 12px;\n}\n.jstGoodsBox .right-context .ant-input {\n font-size: 12px;\n width: 80px;\n height: 20px;\n padding-left: 5px;\n padding-right: 5px;\n}\n.jstGoodsBox .right-context .ant-input.id-textarea {\n width: 80px;\n resize: none;\n height: 45px;\n}\n.jstGoodsBox.goodsBox-item-horizontal--box {\n flex-direction: row;\n width: auto;\n}\n.jstimgBox {\n position: relative;\n width: 80px;\n height: 80px;\n border-radius: 4px;\n border: 1px solid #f2f3f5;\n margin: 0 10px 10px 0;\n text-align: center;\n background-color: #f2f3f5;\n display: flex;\n justify-items: center;\n align-items: center;\n}\n.jstimgBox .add-btn {\n color: #86909c;\n}\n.jstimgBox .text {\n color: #86909c;\n}\n.icon-close {\n position: absolute;\n top: -5px;\n right: -5px;\n width: 13px;\n height: 13px;\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: 50%;\n z-index: 3;\n background-color: #fff;\n cursor: pointer;\n}\n.img {\n width: 100%;\n height: 100%;\n -o-object-fit: contain;\n object-fit: contain;\n}\n.goods-title {\n margin: 0 0 10px 5px;\n color: #4e5969;\n}\n.searchBox {\n display: flex;\n justify-content: space-between;\n flex-wrap: wrap;\n margin-bottom: 10px;\n}\n.searchBox .search {\n width: 150px;\n margin-left: 6px;\n}\n.deg90 {\n transform: rotate(90deg);\n}\n.goodsMain {\n display: flex;\n flex-wrap: wrap;\n height: 400px;\n overflow-y: auto;\n margin-bottom: 10px;\n}\n.goodsMain .goodItem {\n width: 142px;\n height: 184px;\n padding: 7px;\n margin: 0 16px 16px 0;\n border-radius: 4px;\n background: #ffffff;\n box-sizing: border-box;\n /* 主题色/常规 */\n border: 1px solid #c9cdd4;\n}\n.goodsMain .goodItem .goodImg {\n width: 128px;\n height: 128px;\n border-radius: 4px;\n overflow: hidden;\n}\n.goodsMain .goodItem .goodImg img {\n width: 100%;\n height: 100%;\n -o-object-fit: contain;\n object-fit: contain;\n}\n.goodsMain .goodItem .goodText {\n text-align: center;\n font-size: 12px;\n color: #4e5969;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.goodsMain .goodItem .goodPrice {\n text-align: center;\n font-size: 14px;\n color: #1d2129;\n}\n.goodsMain .goodItem.active {\n border: 1px solid #1b5bf3;\n}\n@media screen and (max-width: 500px) {\n .goodsMain {\n display: grid;\n grid-template-columns: repeat(3, 1fr);\n grid-gap: 8px;\n height: 300px;\n }\n .goodsMain .goodItem {\n height: 126px;\n width: 83px;\n padding: 4px;\n margin: 0;\n border-radius: 4px;\n background: #FFFFFF;\n box-sizing: border-box;\n border: 1px solid rgba(0, 0, 0, 0.15);\n }\n .goodsMain .goodItem .goodImg {\n width: 98%;\n height: 77px;\n }\n .goodsMain .goodItem .goodText {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .goodsMain .goodItem.active {\n border: 1px solid #3089dc;\n }\n .searchBox {\n display: flex;\n flex-wrap: wrap;\n justify-content: initial;\n }\n .searchBox .classify {\n width: 120px;\n }\n .goodModal .ant-modal-body {\n padding: 8px;\n }\n}\n.goods-uploaded-count {\n color: #ff3638;\n}\n.footer {\n display: flex;\n justify-content: flex-end;\n}\n.right-context {\n display: flex;\n flex-direction: column;\n}\n.right-context .info-row {\n width: 80px;\n display: flex;\n align-items: center;\n padding: 0px 8px;\n border-radius: 2px;\n cursor: pointer;\n background: #f2f3f5;\n margin-bottom: 4px;\n}\n.right-context .info-row > div {\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 2;\n overflow: hidden;\n word-break: break-all;\n}\n.sphPagination {\n display: flex;\n align-items: center;\n}\n.sphPagination .shpBtn {\n display: flex;\n justify-content: center;\n align-items: center;\n padding: 0 8px;\n height: 32px;\n border: 1px solid #d9d9d9;\n border-radius: 2px;\n cursor: pointer;\n margin: 0 8px;\n}\n.sphPagination .shpBtn.unCursor {\n color: #eee;\n cursor: not-allowed;\n}\n";
10492
- styleInject(css_248z$9);
10137
+ var css_248z$8 = ".jstGoodsBox {\n display: flex;\n flex-wrap: wrap;\n}\n.jstGoodsBox .goodBox-Img {\n width: 80px;\n margin: 0 10px 10px 0;\n}\n.jstGoodsBox .right-context {\n font-size: 12px;\n}\n.jstGoodsBox .right-context .ant-input {\n font-size: 12px;\n width: 80px;\n height: 20px;\n padding-left: 5px;\n padding-right: 5px;\n}\n.jstGoodsBox .right-context .ant-input.id-textarea {\n width: 80px;\n resize: none;\n height: 45px;\n}\n.jstGoodsBox.goodsBox-item-horizontal--box {\n flex-direction: row;\n width: auto;\n}\n.jstimgBox {\n position: relative;\n width: 80px;\n height: 80px;\n border-radius: 4px;\n border: 1px solid #f2f3f5;\n margin: 0 10px 10px 0;\n text-align: center;\n background-color: #f2f3f5;\n display: flex;\n justify-items: center;\n align-items: center;\n}\n.jstimgBox .add-btn {\n color: #86909c;\n}\n.jstimgBox .text {\n color: #86909c;\n}\n.icon-close {\n position: absolute;\n top: -5px;\n right: -5px;\n width: 13px;\n height: 13px;\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: 50%;\n z-index: 3;\n background-color: #fff;\n cursor: pointer;\n}\n.img {\n width: 100%;\n height: 100%;\n -o-object-fit: contain;\n object-fit: contain;\n}\n.goods-title {\n margin: 0 0 10px 5px;\n color: #4e5969;\n}\n.searchBox {\n display: flex;\n justify-content: space-between;\n flex-wrap: wrap;\n margin-bottom: 10px;\n}\n.searchBox .search {\n width: 150px;\n margin-left: 6px;\n}\n.deg90 {\n transform: rotate(90deg);\n}\n.goodsMain {\n display: flex;\n flex-wrap: wrap;\n height: 400px;\n overflow-y: auto;\n margin-bottom: 10px;\n}\n.goodsMain .goodItem {\n width: 142px;\n height: 184px;\n padding: 7px;\n margin: 0 16px 16px 0;\n border-radius: 4px;\n background: #ffffff;\n box-sizing: border-box;\n /* 主题色/常规 */\n border: 1px solid #c9cdd4;\n}\n.goodsMain .goodItem .goodImg {\n width: 128px;\n height: 128px;\n border-radius: 4px;\n overflow: hidden;\n}\n.goodsMain .goodItem .goodImg img {\n width: 100%;\n height: 100%;\n -o-object-fit: contain;\n object-fit: contain;\n}\n.goodsMain .goodItem .goodText {\n text-align: center;\n font-size: 12px;\n color: #4e5969;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.goodsMain .goodItem .goodPrice {\n text-align: center;\n font-size: 14px;\n color: #1d2129;\n}\n.goodsMain .goodItem.active {\n border: 1px solid #1b5bf3;\n}\n@media screen and (max-width: 500px) {\n .goodsMain {\n display: grid;\n grid-template-columns: repeat(3, 1fr);\n grid-gap: 8px;\n height: 300px;\n }\n .goodsMain .goodItem {\n height: 126px;\n width: 83px;\n padding: 4px;\n margin: 0;\n border-radius: 4px;\n background: #FFFFFF;\n box-sizing: border-box;\n border: 1px solid rgba(0, 0, 0, 0.15);\n }\n .goodsMain .goodItem .goodImg {\n width: 98%;\n height: 77px;\n }\n .goodsMain .goodItem .goodText {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .goodsMain .goodItem.active {\n border: 1px solid #3089dc;\n }\n .searchBox {\n display: flex;\n flex-wrap: wrap;\n justify-content: initial;\n }\n .searchBox .classify {\n width: 120px;\n }\n .goodModal .ant-modal-body {\n padding: 8px;\n }\n}\n.goods-uploaded-count {\n color: #ff3638;\n}\n.footer {\n display: flex;\n justify-content: flex-end;\n}\n.right-context {\n display: flex;\n flex-direction: column;\n}\n.right-context .info-row {\n width: 80px;\n display: flex;\n align-items: center;\n padding: 0px 8px;\n border-radius: 2px;\n cursor: pointer;\n background: #f2f3f5;\n margin-bottom: 4px;\n}\n.right-context .info-row > div {\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 2;\n overflow: hidden;\n word-break: break-all;\n}\n.sphPagination {\n display: flex;\n align-items: center;\n}\n.sphPagination .shpBtn {\n display: flex;\n justify-content: center;\n align-items: center;\n padding: 0 8px;\n height: 32px;\n border: 1px solid #d9d9d9;\n border-radius: 2px;\n cursor: pointer;\n margin: 0 8px;\n}\n.sphPagination .shpBtn.unCursor {\n color: #eee;\n cursor: not-allowed;\n}\n";
10138
+ styleInject(css_248z$8);
10493
10139
 
10494
10140
  var ItemList = function ItemList(props) {
10495
10141
  var _props$value = props.value,
@@ -10929,7 +10575,7 @@ var GoodsModal$2 = /*#__PURE__*/React.forwardRef(GoodsModal$1);
10929
10575
  // skuId: string;
10930
10576
  // styleId: string;
10931
10577
  // }
10932
- var GoodItem$1 = function GoodItem(props) {
10578
+ var GoodItem = function GoodItem(props) {
10933
10579
  var _props$value = props.value,
10934
10580
  value = _props$value === void 0 ? [] : _props$value,
10935
10581
  onChange = props.onChange,
@@ -11304,7 +10950,7 @@ var BsGoods = function BsGoods(props) {
11304
10950
  bsGoods: list
11305
10951
  }));
11306
10952
  };
11307
- return /*#__PURE__*/React__default['default'].createElement(GoodItem$1, _objectSpread2(_objectSpread2({
10953
+ return /*#__PURE__*/React__default['default'].createElement(GoodItem, _objectSpread2(_objectSpread2({
11308
10954
  key: 'bsGoods'
11309
10955
  }, props), {}, {
11310
10956
  disabled: disabled,
@@ -11502,12 +11148,12 @@ var BsExchange = function BsExchange(props) {
11502
11148
  onChange: function onChange(val) {
11503
11149
  return changeTypeHandle(val);
11504
11150
  }
11505
- }), !(value === null || value === void 0 ? void 0 : (_value$bsExchangeType4 = value.bsExchangeType) === null || _value$bsExchangeType4 === void 0 ? void 0 : _value$bsExchangeType4.length) ? /*#__PURE__*/React__default['default'].createElement(GoodItem$1, _objectSpread2(_objectSpread2({
11151
+ }), !(value === null || value === void 0 ? void 0 : (_value$bsExchangeType4 = value.bsExchangeType) === null || _value$bsExchangeType4 === void 0 ? void 0 : _value$bsExchangeType4.length) ? /*#__PURE__*/React__default['default'].createElement(GoodItem, _objectSpread2(_objectSpread2({
11506
11152
  key: 'bsExchangeGoods'
11507
11153
  }, other), {}, {
11508
11154
  disabled: disabled,
11509
11155
  showChangeBtn: false
11510
- })) : null, ['1', '3'].includes(value === null || value === void 0 ? void 0 : (_value$bsExchangeType5 = value.bsExchangeType) === null || _value$bsExchangeType5 === void 0 ? void 0 : _value$bsExchangeType5[0]) ? /*#__PURE__*/React__default['default'].createElement(GoodItem$1, _objectSpread2(_objectSpread2({
11156
+ })) : null, ['1', '3'].includes(value === null || value === void 0 ? void 0 : (_value$bsExchangeType5 = value.bsExchangeType) === null || _value$bsExchangeType5 === void 0 ? void 0 : _value$bsExchangeType5[0]) ? /*#__PURE__*/React__default['default'].createElement(GoodItem, _objectSpread2(_objectSpread2({
11511
11157
  key: 'bsExchangeGoods'
11512
11158
  }, other), {}, {
11513
11159
  disabled: disabled,
@@ -11523,7 +11169,7 @@ var BsExchange = function BsExchange(props) {
11523
11169
  border: '1px dashed',
11524
11170
  marginBottom: '8px'
11525
11171
  }
11526
- }, /*#__PURE__*/React__default['default'].createElement("div", null, "\u9000\u56DE\u5546\u54C1"), /*#__PURE__*/React__default['default'].createElement(GoodItem$1, _objectSpread2(_objectSpread2({
11172
+ }, /*#__PURE__*/React__default['default'].createElement("div", null, "\u9000\u56DE\u5546\u54C1"), /*#__PURE__*/React__default['default'].createElement(GoodItem, _objectSpread2(_objectSpread2({
11527
11173
  key: 'bsReturnGoods'
11528
11174
  }, other), {}, {
11529
11175
  disabled: disabled,
@@ -11533,7 +11179,7 @@ var BsExchange = function BsExchange(props) {
11533
11179
  onChange: function onChange(val) {
11534
11180
  return changeReturnHandle(val, index, 'bsExchangeReturnGoods');
11535
11181
  }
11536
- })), /*#__PURE__*/React__default['default'].createElement("div", null, "\u6362\u51FA\u5546\u54C1"), /*#__PURE__*/React__default['default'].createElement(GoodItem$1, _objectSpread2(_objectSpread2({
11182
+ })), /*#__PURE__*/React__default['default'].createElement("div", null, "\u6362\u51FA\u5546\u54C1"), /*#__PURE__*/React__default['default'].createElement(GoodItem, _objectSpread2(_objectSpread2({
11537
11183
  key: 'bsOutGoods'
11538
11184
  }, other), {}, {
11539
11185
  disabled: disabled,
@@ -11545,7 +11191,7 @@ var BsExchange = function BsExchange(props) {
11545
11191
  return changeReturnHandle(val, index, 'bsExchangeSwapOutGoods');
11546
11192
  }
11547
11193
  })));
11548
- })), ['3', '4'].includes(value === null || value === void 0 ? void 0 : (_value$bsExchangeType6 = value.bsExchangeType) === null || _value$bsExchangeType6 === void 0 ? void 0 : _value$bsExchangeType6[0]) ? /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement("div", null, "\u8D60\u54C1\u4FE1\u606F"), /*#__PURE__*/React__default['default'].createElement(GoodItem$1, _objectSpread2(_objectSpread2({
11194
+ })), ['3', '4'].includes(value === null || value === void 0 ? void 0 : (_value$bsExchangeType6 = value.bsExchangeType) === null || _value$bsExchangeType6 === void 0 ? void 0 : _value$bsExchangeType6[0]) ? /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement("div", null, "\u8D60\u54C1\u4FE1\u606F"), /*#__PURE__*/React__default['default'].createElement(GoodItem, _objectSpread2(_objectSpread2({
11549
11195
  headerText: "\u8D60\u54C1",
11550
11196
  key: 'bsGiftGoods',
11551
11197
  disabled: disabled,
@@ -11656,7 +11302,7 @@ var BsReissue = function BsReissue(props) {
11656
11302
  onChange: function onChange(val) {
11657
11303
  return changeTypeHandle(val);
11658
11304
  }
11659
- }), /*#__PURE__*/React__default['default'].createElement(GoodItem$1, _objectSpread2(_objectSpread2({
11305
+ }), /*#__PURE__*/React__default['default'].createElement(GoodItem, _objectSpread2(_objectSpread2({
11660
11306
  key: 'reissueGoods'
11661
11307
  }, other), {}, {
11662
11308
  disabled: disabled,
@@ -11753,7 +11399,7 @@ var BsReturnGoods = function BsReturnGoods(props) {
11753
11399
  onChange: function onChange(val) {
11754
11400
  return changeTypeHandle(val);
11755
11401
  }
11756
- }), /*#__PURE__*/React__default['default'].createElement(GoodItem$1, _objectSpread2(_objectSpread2({
11402
+ }), /*#__PURE__*/React__default['default'].createElement(GoodItem, _objectSpread2(_objectSpread2({
11757
11403
  key: 'returnGoods'
11758
11404
  }, other), {}, {
11759
11405
  disabled: disabled,
@@ -11930,7 +11576,7 @@ var WlnGoods = function WlnGoods(props) {
11930
11576
  wlnGoods: list
11931
11577
  }));
11932
11578
  };
11933
- return /*#__PURE__*/React__default['default'].createElement(GoodItem$1, _objectSpread2(_objectSpread2({
11579
+ return /*#__PURE__*/React__default['default'].createElement(GoodItem, _objectSpread2(_objectSpread2({
11934
11580
  key: 'wlnGoods'
11935
11581
  }, props), {}, {
11936
11582
  disabled: disabled,
@@ -11943,8 +11589,8 @@ var WlnGoods = function WlnGoods(props) {
11943
11589
  }));
11944
11590
  };
11945
11591
 
11946
- var css_248z$a = ".goodsBox {\n display: flex;\n flex-wrap: wrap;\n}\n.goods-imgBox {\n position: relative;\n width: 80px;\n height: 80px;\n border: 1px solid #F2F3F5;\n margin: 0 10px 10px 0;\n text-align: center;\n}\n.icon-close {\n position: absolute;\n top: -5px;\n right: -5px;\n width: 13px;\n height: 13px;\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: 50%;\n z-index: 3;\n background-color: #fff;\n cursor: pointer;\n}\n.img {\n width: 100%;\n height: 100%;\n -o-object-fit: contain;\n object-fit: contain;\n}\n.goods-title {\n margin: 0 0 10px 5px;\n color: #4E5969;\n}\n.deg90 {\n transform: rotate(90deg);\n}\n.goodMain {\n display: flex;\n flex-wrap: wrap;\n height: 265px;\n overflow-y: auto;\n margin-bottom: 10px;\n}\n.goodMain .goodItem {\n width: 140px;\n height: 175px;\n padding: 11px 10px 0;\n text-align: center;\n display: inline-block;\n vertical-align: top;\n margin-bottom: 10px;\n margin-right: 30px;\n border: 1px solid #e6e6e6;\n cursor: pointer;\n transition: border 0.3s;\n}\n.goodMain .goodItem .goodImg {\n width: 120px;\n height: 120px;\n}\n.goodMain .goodItem .goodText {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.goodMain .goodItem.active {\n border: 1px solid #3089dc;\n}\n.right-context {\n display: flex;\n flex-direction: column;\n}\n";
11947
- styleInject(css_248z$a);
11592
+ var css_248z$9 = ".goodsBox {\n display: flex;\n flex-wrap: wrap;\n}\n.goods-imgBox {\n position: relative;\n width: 80px;\n height: 80px;\n border: 1px solid #F2F3F5;\n margin: 0 10px 10px 0;\n text-align: center;\n}\n.icon-close {\n position: absolute;\n top: -5px;\n right: -5px;\n width: 13px;\n height: 13px;\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: 50%;\n z-index: 3;\n background-color: #fff;\n cursor: pointer;\n}\n.img {\n width: 100%;\n height: 100%;\n -o-object-fit: contain;\n object-fit: contain;\n}\n.goods-title {\n margin: 0 0 10px 5px;\n color: #4E5969;\n}\n.deg90 {\n transform: rotate(90deg);\n}\n.goodMain {\n display: flex;\n flex-wrap: wrap;\n height: 265px;\n overflow-y: auto;\n margin-bottom: 10px;\n}\n.goodMain .goodItem {\n width: 140px;\n height: 175px;\n padding: 11px 10px 0;\n text-align: center;\n display: inline-block;\n vertical-align: top;\n margin-bottom: 10px;\n margin-right: 30px;\n border: 1px solid #e6e6e6;\n cursor: pointer;\n transition: border 0.3s;\n}\n.goodMain .goodItem .goodImg {\n width: 120px;\n height: 120px;\n}\n.goodMain .goodItem .goodText {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.goodMain .goodItem.active {\n border: 1px solid #3089dc;\n}\n.right-context {\n display: flex;\n flex-direction: column;\n}\n";
11593
+ styleInject(css_248z$9);
11948
11594
 
11949
11595
  var TabPane$1 = antd.Tabs.TabPane;
11950
11596
  var Option$2 = antd.Select.Option;