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

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, InputNumber, Input, Select, Upload, Image, messag
3
3
  import { EyeOutlined, DeleteOutlined } 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, request as request$1, ExpressData, uuid, LogisticsAddressData } from '@kmkf-fe-packages/kmkf-utils';
6
+ import { AddressData, BsAddressData, toTree, request as request$1, ExpressData, LogisticsAddressData, uuid } from '@kmkf-fe-packages/kmkf-utils';
7
7
  import zhCN from 'antd/lib/locale/zh_CN';
8
8
  import { cloneDeep } from 'lodash';
9
9
  import { useDebounceEffect } from 'ahooks';
@@ -358,15 +358,6 @@ function _regeneratorRuntime() {
358
358
  }
359
359
  }, exports;
360
360
  }
361
- function _typeof(obj) {
362
- "@babel/helpers - typeof";
363
-
364
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
365
- return typeof obj;
366
- } : function (obj) {
367
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
368
- }, _typeof(obj);
369
- }
370
361
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
371
362
  try {
372
363
  var info = gen[key](arg);
@@ -7367,11 +7358,12 @@ function ApaasRate(props) {
7367
7358
  }));
7368
7359
  }
7369
7360
 
7370
- AddressData.getInstance();
7371
- BsAddressData.getInstance();
7361
+ var addressData = AddressData.getInstance();
7362
+ var bsAddressData = BsAddressData.getInstance();
7372
7363
  var Province = function Province(props) {
7373
7364
  var _props$type = props.type,
7374
- type = _props$type === void 0 ? 'workOrder' : _props$type;
7365
+ type = _props$type === void 0 ? 'workOrder' : _props$type,
7366
+ value = props.value;
7375
7367
  var _useState = useState([]),
7376
7368
  _useState2 = _slicedToArray(_useState, 2),
7377
7369
  option = _useState2[0],
@@ -7386,7 +7378,7 @@ var Province = function Province(props) {
7386
7378
  while (1) switch (_context.prev = _context.next) {
7387
7379
  case 0:
7388
7380
  num++;
7389
- options = type !== 'bs' ? AddressData.getInstance().addressOptions || [] : BsAddressData.getInstance().addressOptions || [];
7381
+ options = type !== 'bs' ? addressData.addressOptions || [] : bsAddressData.addressOptions || [];
7390
7382
  if (!(options === null || options === void 0 ? void 0 : options.length) && num < 6) {
7391
7383
  time.current = setTimeout(function () {
7392
7384
  initPageSource();
@@ -7403,6 +7395,19 @@ var Province = function Province(props) {
7403
7395
  return _ref.apply(this, arguments);
7404
7396
  };
7405
7397
  }();
7398
+ var getBsAddress = function getBsAddress() {
7399
+ var data = JSON.parse(localStorage.getItem('bsAddressData') || '[]');
7400
+ if (data.length) {
7401
+ var options = toTree(data, 1);
7402
+ setOptions(options);
7403
+ }
7404
+ };
7405
+ //如果值改变地址不存在则再获取一遍
7406
+ useEffect(function () {
7407
+ if (value && type == 'bs' && !option.length) {
7408
+ getBsAddress();
7409
+ }
7410
+ }, [value, type, option]);
7406
7411
  useEffect(function () {
7407
7412
  if (!isFirst.current) {
7408
7413
  initPageSource();
@@ -7724,10 +7729,7 @@ var ShopNameSelect = function ShopNameSelect(props) {
7724
7729
  function ApaasAddress(props) {
7725
7730
  var value = props.value,
7726
7731
  onChange = props.onChange,
7727
- disabled = props.disabled,
7728
- _props$showIdentify = props.showIdentify,
7729
- showIdentify = _props$showIdentify === void 0 ? true : _props$showIdentify,
7730
- type = props.type;
7732
+ disabled = props.disabled;
7731
7733
  var changeCity = function changeCity(city) {
7732
7734
  onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, value), {}, {
7733
7735
  address: city
@@ -7739,20 +7741,7 @@ function ApaasAddress(props) {
7739
7741
  detail: e.target.value
7740
7742
  });
7741
7743
  };
7742
- var handleParseLogistics = function handleParseLogistics(val) {
7743
- var params = {
7744
- detail: val === null || val === void 0 ? void 0 : val.addressDetail,
7745
- address: []
7746
- };
7747
- var addressData = type === 'bs' ? BsAddressData.getInstance() : AddressData.getInstance();
7748
- if ((val === null || val === void 0 ? void 0 : val.province) && addressData.getProCodeByName(val === null || val === void 0 ? void 0 : val.province)) {
7749
- 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)];
7750
- }
7751
- onChange === null || onChange === void 0 ? void 0 : onChange(params);
7752
- };
7753
- return /*#__PURE__*/React.createElement(React.Fragment, null, !disabled && showIdentify && /*#__PURE__*/React.createElement(ParseLogistics, {
7754
- onChange: handleParseLogistics
7755
- }), /*#__PURE__*/React.createElement(Province, {
7744
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Province, {
7756
7745
  value: value === null || value === void 0 ? void 0 : value.address,
7757
7746
  onChange: changeCity,
7758
7747
  disabled: disabled
@@ -7950,9 +7939,7 @@ var GoodsModal = function GoodsModal(props) {
7950
7939
  maxLength = props.maxLength,
7951
7940
  shopList = props.shopList,
7952
7941
  changeSku = props.changeSku,
7953
- width = props.width,
7954
- _props$numIidType = props.numIidType,
7955
- numIidType = _props$numIidType === void 0 ? 'string' : _props$numIidType;
7942
+ width = props.width;
7956
7943
  var _useState = useState([]),
7957
7944
  _useState2 = _slicedToArray(_useState, 2),
7958
7945
  selectList = _useState2[0],
@@ -7969,25 +7956,6 @@ var GoodsModal = function GoodsModal(props) {
7969
7956
  _useState8 = _slicedToArray(_useState7, 2),
7970
7957
  loading = _useState8[0],
7971
7958
  setLoading = _useState8[1];
7972
- var transformIdType = function transformIdType(id) {
7973
- if (!['string', 'number'].includes(_typeof(id))) return id;
7974
- return numIidType === 'string' ? id + '' : +id;
7975
- };
7976
- var transformType = function transformType(item) {
7977
- if (!(item === null || item === void 0 ? void 0 : item.numIid)) return item;
7978
- return _objectSpread2(_objectSpread2({}, item), {}, {
7979
- numIid: transformIdType(item.numIid)
7980
- });
7981
- };
7982
- var handleSetSelect = function handleSetSelect(list) {
7983
- return setSelect(list.map(transformType));
7984
- };
7985
- var handleSelectIds = function handleSelectIds(list) {
7986
- return setSelectIds(list.map(transformIdType));
7987
- };
7988
- var handleSetGoodList = function handleSetGoodList(list) {
7989
- return setGoodList(list.map(transformType));
7990
- };
7991
7959
  var _useState9 = useState({
7992
7960
  apiName: 'queryItems',
7993
7961
  desc: true,
@@ -8081,15 +8049,15 @@ var GoodsModal = function GoodsModal(props) {
8081
8049
  var newSelect = selectList.filter(function (item) {
8082
8050
  return item.numIid !== good.numIid;
8083
8051
  });
8084
- handleSetSelect(_toConsumableArray(newSelect));
8052
+ setSelect(_toConsumableArray(newSelect));
8085
8053
  var ids = newSelect.map(function (item) {
8086
8054
  return item.numIid;
8087
8055
  });
8088
- handleSelectIds(ids);
8056
+ setSelectIds(ids);
8089
8057
  } else {
8090
8058
  if (type === 4 || changeSku) {
8091
- handleSetSelect([good]);
8092
- handleSelectIds([good.numIid]);
8059
+ setSelect([good]);
8060
+ setSelectIds([good.numIid]);
8093
8061
  } else {
8094
8062
  if (selectList.length >= maxLength) {
8095
8063
  message.error("\u6700\u591A\u6DFB\u52A0".concat(maxLength, "\u5F20"));
@@ -8102,14 +8070,14 @@ var GoodsModal = function GoodsModal(props) {
8102
8070
  var newSelectList = selectList.filter(function (item) {
8103
8071
  return item.numIid !== good.numIid;
8104
8072
  });
8105
- handleSetSelect(newSelectList);
8073
+ setSelect(newSelectList);
8106
8074
  var _ids = newSelectList.map(function (item) {
8107
8075
  return item.numIid;
8108
8076
  });
8109
- handleSelectIds(_ids);
8077
+ setSelectIds(_ids);
8110
8078
  } else {
8111
- handleSetSelect([].concat(_toConsumableArray(selectList), [good]));
8112
- handleSelectIds([].concat(_toConsumableArray(selectIds), [good.numIid]));
8079
+ setSelect([].concat(_toConsumableArray(selectList), [good]));
8080
+ setSelectIds([].concat(_toConsumableArray(selectIds), [good.numIid]));
8113
8081
  }
8114
8082
  }
8115
8083
  }
@@ -8201,7 +8169,7 @@ var GoodsModal = function GoodsModal(props) {
8201
8169
  items.forEach(function (item) {
8202
8170
  item.platform = platform;
8203
8171
  });
8204
- handleSetGoodList(_toConsumableArray(items));
8172
+ setGoodList(_toConsumableArray(items));
8205
8173
  setTotal(totalCount);
8206
8174
  _context.next = 26;
8207
8175
  break;
@@ -8229,7 +8197,7 @@ var GoodsModal = function GoodsModal(props) {
8229
8197
  item.title = item.productName;
8230
8198
  item.platform = platform;
8231
8199
  });
8232
- handleSetGoodList(_toConsumableArray(newList));
8200
+ setGoodList(_toConsumableArray(newList));
8233
8201
  setTotal(_total);
8234
8202
  if (platform === 'sph' && nextKey && !nextKeyList.includes(nextKey)) {
8235
8203
  setNextKeyList([].concat(_toConsumableArray(nextKeyList), [nextKey]));
@@ -8315,12 +8283,12 @@ var GoodsModal = function GoodsModal(props) {
8315
8283
  useEffect(function () {
8316
8284
  setPlatformHandle(platform);
8317
8285
  if (imgList.length) {
8318
- handleSetSelect(imgList);
8286
+ setSelect(imgList);
8319
8287
  var ids = imgList === null || imgList === void 0 ? void 0 : imgList.map(function (item) {
8320
8288
  return item.numIid;
8321
8289
  });
8322
8290
  if (!(changeSku || type === 4)) {
8323
- handleSelectIds(ids);
8291
+ setSelectIds(ids);
8324
8292
  }
8325
8293
  }
8326
8294
  }, [platform]);
@@ -8418,9 +8386,9 @@ var GoodsModal = function GoodsModal(props) {
8418
8386
  spinning: loading
8419
8387
  }, /*#__PURE__*/React.createElement("div", {
8420
8388
  className: "goodsMain"
8421
- }, (searchParams.type == 'select' ? selectList : goodList).map(function (good, index) {
8389
+ }, (searchParams.type == 'select' ? selectList : goodList).map(function (good) {
8422
8390
  return /*#__PURE__*/React.createElement("div", {
8423
- key: good.numIid + "".concat(index),
8391
+ key: good.numIid,
8424
8392
  className: "goodItem ".concat(selectIds.includes(good.numIid) ? 'active' : ''),
8425
8393
  onClick: function onClick() {
8426
8394
  changeItem(good);
@@ -8482,7 +8450,7 @@ var Sku = /*#__PURE__*/forwardRef(function (props, ref) {
8482
8450
  });
8483
8451
  var handleSure = /*#__PURE__*/function () {
8484
8452
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
8485
- var type, SKU, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _yield$request, _yield$request$data, data;
8453
+ var type, SKU, _ref3, _ref4, _ref5, _ref6, _ref7, _yield$request, _yield$request$data, data;
8486
8454
  return _regeneratorRuntime().wrap(function _callee$(_context) {
8487
8455
  while (1) switch (_context.prev = _context.next) {
8488
8456
  case 0:
@@ -8517,10 +8485,7 @@ var Sku = /*#__PURE__*/forwardRef(function (props, ref) {
8517
8485
  }) === null || _ref4 === void 0 ? void 0 : _ref4.picUrl,
8518
8486
  outerSkuId: (_ref5 = SKU || {
8519
8487
  outerSkuId: ''
8520
- }) === null || _ref5 === void 0 ? void 0 : _ref5.outerSkuId,
8521
- skuId: ((_ref6 = SKU || {
8522
- skuId: ''
8523
- }) === null || _ref6 === void 0 ? void 0 : _ref6.skuId) || ''
8488
+ }) === null || _ref5 === void 0 ? void 0 : _ref5.outerSkuId
8524
8489
  });
8525
8490
  _context.next = 16;
8526
8491
  break;
@@ -8541,15 +8506,12 @@ var Sku = /*#__PURE__*/forwardRef(function (props, ref) {
8541
8506
  props.handleOk({
8542
8507
  enableItemId: data.length > 0 ? data[0]['supplierItemOuterId'] : '',
8543
8508
  enableSupplierName: data.length > 0 ? data[0]['supplierName'] : '',
8544
- propertiesName: ((_ref7 = SKU || {
8509
+ propertiesName: ((_ref6 = SKU || {
8545
8510
  label: ''
8546
- }) === null || _ref7 === void 0 ? void 0 : _ref7.label) || '',
8547
- picUrl: (_ref8 = SKU || {
8511
+ }) === null || _ref6 === void 0 ? void 0 : _ref6.label) || '',
8512
+ picUrl: (_ref7 = SKU || {
8548
8513
  picUrl: ''
8549
- }) === null || _ref8 === void 0 ? void 0 : _ref8.picUrl,
8550
- skuId: ((_ref9 = SKU || {
8551
- skuId: ''
8552
- }) === null || _ref9 === void 0 ? void 0 : _ref9.skuId) || ''
8514
+ }) === null || _ref7 === void 0 ? void 0 : _ref7.picUrl
8553
8515
  });
8554
8516
  case 16:
8555
8517
  setVisible(false);
@@ -8927,324 +8889,8 @@ var ChooseBaby = function ChooseBaby(props) {
8927
8889
  }));
8928
8890
  };
8929
8891
 
8930
- 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";
8931
- styleInject(css_248z$6);
8932
-
8933
- var GoodItem = function GoodItem(props) {
8934
- var _props$isSingleRow = props.isSingleRow,
8935
- isSingleRow = _props$isSingleRow === void 0 ? true : _props$isSingleRow,
8936
- _props$value = props.value,
8937
- value = _props$value === void 0 ? {
8938
- shopId: '',
8939
- imgList: []
8940
- } : _props$value,
8941
- _props$maxLength = props.maxLength,
8942
- maxLength = _props$maxLength === void 0 ? 999999999 : _props$maxLength,
8943
- onChange = props.onChange,
8944
- _props$type = props.type,
8945
- type = _props$type === void 0 ? 2 : _props$type,
8946
- _props$shopList = props.shopList,
8947
- shopList = _props$shopList === void 0 ? [] : _props$shopList,
8948
- showHeader = props.showHeader,
8949
- _props$showChangeBtn = props.showChangeBtn,
8950
- otherOperations = props.otherOperations,
8951
- canUpdateNumber = props.canUpdateNumber,
8952
- enableItemId = props.enableItemId,
8953
- enableSupplierName = props.enableSupplierName,
8954
- userNick = props.userNick,
8955
- disabled = props.disabled,
8956
- changeSku = props.changeSku,
8957
- width = props.width;
8958
- var shopId = value.shopId,
8959
- imgList = value.imgList;
8960
- var _useState = useState(false),
8961
- _useState2 = _slicedToArray(_useState, 2),
8962
- visible = _useState2[0],
8963
- setVisible = _useState2[1];
8964
- var skuRef = useRef();
8965
- var boxRef = useRef();
8966
- //是否是淘宝店铺
8967
- var isTaobaoPlat = useMemo(function () {
8968
- return shopList.some(function (item) {
8969
- return item.shopId === shopId && item.shopSourceStr === 'TAOBAO';
8970
- });
8971
- }, [shopId]);
8972
- // 查询SKU
8973
- var querySkus = /*#__PURE__*/function () {
8974
- var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(_ref) {
8975
- var shopId, numIids;
8976
- return _regeneratorRuntime().wrap(function _callee$(_context) {
8977
- while (1) switch (_context.prev = _context.next) {
8978
- case 0:
8979
- shopId = _ref.shopId, numIids = _ref.numIids;
8980
- return _context.abrupt("return", extendRequest('/qy/gdfw/workOrder/queryItemSkus', {
8981
- method: 'post',
8982
- data: {
8983
- shopId: shopId,
8984
- numIids: numIids
8985
- }
8986
- }));
8987
- case 2:
8988
- case "end":
8989
- return _context.stop();
8990
- }
8991
- }, _callee);
8992
- }));
8993
- return function querySkus(_x) {
8994
- return _ref2.apply(this, arguments);
8995
- };
8996
- }();
8997
- //删除商品
8998
- var handleDelete = function handleDelete(index) {
8999
- var newSelect = imgList.filter(function (_, i) {
9000
- return index !== i;
9001
- });
9002
- var newValue = {
9003
- shopId: shopId,
9004
- imgList: _toConsumableArray(newSelect)
9005
- };
9006
- onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
9007
- };
9008
- //选择sku
9009
- var handleSelectSku = function handleSelectSku(_ref3) {
9010
- var enableItemId = _ref3.enableItemId,
9011
- enableSupplierName = _ref3.enableSupplierName,
9012
- propertiesName = _ref3.propertiesName,
9013
- picUrl = _ref3.picUrl,
9014
- outerSkuId = _ref3.outerSkuId,
9015
- skuId = _ref3.skuId;
9016
- var newList = JSON.parse(JSON.stringify(imgList));
9017
- if (type === 4) {
9018
- newList[newList.length - 1].itemId = enableItemId;
9019
- newList[newList.length - 1].supplierName = enableSupplierName;
9020
- } else {
9021
- newList[newList.length - 1].propertiesName = propertiesName;
9022
- }
9023
- if (type === 1) {
9024
- if (outerSkuId) newList[newList.length - 1].outerSkuId = outerSkuId;
9025
- if (skuId) newList[newList.length - 1].skuId = skuId;
9026
- }
9027
- //替换成sku的图片
9028
- picUrl && (newList[newList.length - 1].picUrl = picUrl);
9029
- onChange === null || onChange === void 0 ? void 0 : onChange({
9030
- shopId: shopId,
9031
- imgList: newList
9032
- });
9033
- };
9034
- //选择回调
9035
- var onSubmit = /*#__PURE__*/function () {
9036
- var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(list) {
9037
- var newList, newImgList, _yield$querySkus, data, _skuRef$current, options;
9038
- return _regeneratorRuntime().wrap(function _callee2$(_context2) {
9039
- while (1) switch (_context2.prev = _context2.next) {
9040
- case 0:
9041
- newList = list.map(function (item) {
9042
- //过滤属性 只保存需要的字段
9043
- var params = {
9044
- uuid: uuid(),
9045
- platform: item.platform,
9046
- price: item.price,
9047
- canDelete: true,
9048
- title: item.title,
9049
- outerId: item.outerId,
9050
- picUrl: item.picUrl,
9051
- numIid: item.numIid,
9052
- skuId: item.skuId,
9053
- outerSkuId: item.outerSkuId
9054
- };
9055
- // if (type === 1) {
9056
- // params.outerId = item.outerId; //编码
9057
- // }
9058
- if (changeSku) {
9059
- params.propertiesName = '';
9060
- }
9061
- // if (type === 4) {
9062
- // if (enableItemId) {
9063
- // params.itemId = '';
9064
- // }
9065
- // if (enableSupplierName) {
9066
- // params.supplierName = '';
9067
- // }
9068
- // }
9069
- return params;
9070
- });
9071
- newImgList = changeSku || type === 4 ? [].concat(_toConsumableArray(imgList), _toConsumableArray(newList)) : _toConsumableArray(newList);
9072
- onChange === null || onChange === void 0 ? void 0 : onChange({
9073
- shopId: shopId,
9074
- imgList: newImgList
9075
- });
9076
- setVisible(false);
9077
- //供应上编码组件 || 商品组件且可以选择sku
9078
- if (!(type === 4 && (enableItemId || enableSupplierName) || type !== 4 && changeSku && isTaobaoPlat && list.length > 0)) {
9079
- _context2.next = 10;
9080
- break;
9081
- }
9082
- _context2.next = 7;
9083
- return querySkus({
9084
- shopId: shopId,
9085
- numIids: list[0].numIid
9086
- });
9087
- case 7:
9088
- _yield$querySkus = _context2.sent;
9089
- data = _yield$querySkus.data;
9090
- if (data.length > 0 && data[0]['skus'] && data[0]['skus']['length'] > 0) {
9091
- options = data[0]['skus'].map(function (item) {
9092
- return {
9093
- label: item.propertiesName.split(';').map(function (i) {
9094
- return i.split(':').slice(2);
9095
- }).join(';'),
9096
- value: item.skuId,
9097
- picUrl: item.picUrl,
9098
- outerSkuId: item === null || item === void 0 ? void 0 : item.outerSkuId,
9099
- skuId: item.skuId
9100
- };
9101
- });
9102
- (_skuRef$current = skuRef.current) === null || _skuRef$current === void 0 ? void 0 : _skuRef$current.open({
9103
- shopId: shopId,
9104
- numIids: list[0].numIid,
9105
- options: options
9106
- });
9107
- }
9108
- case 10:
9109
- case "end":
9110
- return _context2.stop();
9111
- }
9112
- }, _callee2);
9113
- }));
9114
- return function onSubmit(_x2) {
9115
- return _ref4.apply(this, arguments);
9116
- };
9117
- }();
9118
- var headerList = showHeader || {
9119
- 1: ['title', 'outerId', 'picUrl', 'numIid', 'skuId', 'outerSkuId', 'propertiesName' // sku 信息
9120
- ]
9121
- }[type] || [];
9122
- //修改参数
9123
- var handleChangeValue = function handleChangeValue(key, index) {
9124
- return function (e) {
9125
- var _e$target;
9126
- var newImgList = _toConsumableArray(imgList);
9127
- newImgList[index][key] = e === null || e === void 0 ? void 0 : (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.value;
9128
- var newValue = {
9129
- shopId: shopId,
9130
- imgList: newImgList
9131
- };
9132
- onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2({}, newValue));
9133
- };
9134
- };
9135
- // TODO: 目前只做了type 1的处理,其他的还是走老的文件 ./index.tsx
9136
- var goodItemAttrs = [{
9137
- isShow: headerList.includes('title'),
9138
- key: 'title',
9139
- label: '商品名称'
9140
- }, {
9141
- isShow: headerList.includes('outerId'),
9142
- key: 'outerId',
9143
- label: '商品编码'
9144
- },
9145
- // { isShow: headerList.includes('picUrl'), key: 'picUrl', label: '图片' },
9146
- {
9147
- isShow: headerList.includes('numIid'),
9148
- key: 'numIid',
9149
- label: '商品id'
9150
- }, {
9151
- isShow: changeSku && headerList.includes('skuId'),
9152
- key: 'skuId',
9153
- label: 'SKU ID'
9154
- }, {
9155
- isShow: changeSku && headerList.includes('outerSkuId'),
9156
- key: 'outerSkuId',
9157
- label: 'SKU 编码'
9158
- }, {
9159
- isShow: changeSku && headerList.includes('propertiesName'),
9160
- key: 'propertiesName',
9161
- label: 'SKU 信息'
9162
- }];
9163
- var hasPic = headerList.includes('picUrl');
9164
- var hasAttr = hasPic ? headerList.length > 1 : headerList.length > 0;
9165
- return /*#__PURE__*/React.createElement("div", {
9166
- ref: boxRef,
9167
- className: "goodsBox goodsBox-item-horizontal--box".concat(isSingleRow ? ' single-row' : '')
9168
- }, imgList === null || imgList === void 0 ? void 0 : imgList.map(function (img, index) {
9169
- return /*#__PURE__*/React.createElement("div", {
9170
- key: index,
9171
- className: "goodBox-Img rich-item".concat(hasPic ? ' with-pic' : '').concat(hasAttr ? ' with-attr' : '')
9172
- }, !disabled && /*#__PURE__*/React.createElement("img", {
9173
- src: iconDelete,
9174
- alt: "",
9175
- className: "icon-close",
9176
- onClick: function onClick() {
9177
- handleDelete(index);
9178
- }
9179
- }), hasPic && /*#__PURE__*/React.createElement("div", {
9180
- className: "goods-imgBox",
9181
- key: "".concat(img.picUrl, "-").concat(index, "-goods")
9182
- }, img.platform !== 'taobao' ? /*#__PURE__*/React.createElement("img", {
9183
- src: img.picUrl || defaultImg,
9184
- className: "img",
9185
- alt: ""
9186
- }) : /*#__PURE__*/React.createElement("a", {
9187
- href: "https://item.taobao.com/item.htm?id=".concat(img.numIid),
9188
- target: "_blank"
9189
- }, /*#__PURE__*/React.createElement("img", {
9190
- src: img.picUrl || defaultImg,
9191
- className: "img",
9192
- alt: ""
9193
- }))), /*#__PURE__*/React.createElement("div", {
9194
- className: "right-context",
9195
- key: "".concat(img.picUrl, "-").concat(index, "-context")
9196
- }, goodItemAttrs.map(function (item) {
9197
- return item.isShow && /*#__PURE__*/React.createElement("div", {
9198
- key: item.key
9199
- }, /*#__PURE__*/React.createElement("span", {
9200
- className: "good-item-attr"
9201
- }, item.label), /*#__PURE__*/React.createElement(Input, {
9202
- placeholder: "\u8BF7\u8F93\u5165".concat(item.label),
9203
- title: String(img[item.key] || ''),
9204
- value: img[item.key],
9205
- disabled: item.disabled || disabled,
9206
- onChange: handleChangeValue(item.key, index)
9207
- }));
9208
- })));
9209
- }), imgList.length < maxLength && !disabled ? /*#__PURE__*/React.createElement("div", {
9210
- className: "goods-imgBox",
9211
- onClick: function onClick() {
9212
- if (!shopId) {
9213
- message.error('请选择店铺');
9214
- return;
9215
- }
9216
- setVisible(true);
9217
- }
9218
- }, /*#__PURE__*/React.createElement("div", {
9219
- className: "add-btn",
9220
- style: {
9221
- marginTop: '15px'
9222
- }
9223
- }, "+"), /*#__PURE__*/React.createElement("div", {
9224
- className: "text"
9225
- }, "\u6DFB\u52A0")) : null, visible ? /*#__PURE__*/React.createElement(GoodsModal, {
9226
- visible: visible,
9227
- onSubmit: onSubmit,
9228
- width: width,
9229
- type: type,
9230
- imgList: imgList,
9231
- shopList: shopList,
9232
- shopId: shopId,
9233
- maxLength: maxLength,
9234
- changeSku: changeSku,
9235
- onCancel: function onCancel() {
9236
- setVisible(false);
9237
- }
9238
- }) : null, /*#__PURE__*/React.createElement(Sku, {
9239
- handleOk: handleSelectSku,
9240
- ref: skuRef,
9241
- userNick: userNick,
9242
- type: type
9243
- }));
9244
- };
9245
-
9246
8892
  var TBGoodSerial = function TBGoodSerial(props) {
9247
- return /*#__PURE__*/React.createElement(GoodItem, _objectSpread2(_objectSpread2({}, props), {}, {
8893
+ return /*#__PURE__*/React.createElement(Goods, _objectSpread2(_objectSpread2({}, props), {}, {
9248
8894
  type: 1
9249
8895
  }));
9250
8896
  };
@@ -9255,8 +8901,8 @@ var Supplier = function Supplier(props) {
9255
8901
  }));
9256
8902
  };
9257
8903
 
9258
- 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";
9259
- styleInject(css_248z$7);
8904
+ 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";
8905
+ styleInject(css_248z$6);
9260
8906
 
9261
8907
  var Invoice = function Invoice(props) {
9262
8908
  var _props$value = props.value,
@@ -9685,8 +9331,8 @@ var Payment = function Payment(props) {
9685
9331
  }));
9686
9332
  };
9687
9333
 
9688
- var css_248z$8 = ".interceptBox :global(.ant-select-item-option-content) {\n overflow: auto !important;\n white-space: initial !important;\n}\n";
9689
- styleInject(css_248z$8);
9334
+ var css_248z$7 = ".interceptBox :global(.ant-select-item-option-content) {\n overflow: auto !important;\n white-space: initial !important;\n}\n";
9335
+ styleInject(css_248z$7);
9690
9336
 
9691
9337
  var Item = Form.Item;
9692
9338
  var LogisticsInterception = function LogisticsInterception(props) {
@@ -9867,7 +9513,7 @@ var LogisticsInterception = function LogisticsInterception(props) {
9867
9513
  }
9868
9514
  };
9869
9515
  return /*#__PURE__*/React.createElement("div", {
9870
- className: css_248z$8.interceptBox
9516
+ className: css_248z$7.interceptBox
9871
9517
  }, /*#__PURE__*/React.createElement(Item, {
9872
9518
  label: '物流信息',
9873
9519
  required: required,
@@ -10477,8 +10123,8 @@ var jstGoods = function jstGoods(props) {
10477
10123
  })) : null) : null);
10478
10124
  };
10479
10125
 
10480
- 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";
10481
- styleInject(css_248z$9);
10126
+ 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";
10127
+ styleInject(css_248z$8);
10482
10128
 
10483
10129
  var ItemList = function ItemList(props) {
10484
10130
  var _props$value = props.value,
@@ -10918,7 +10564,7 @@ var GoodsModal$2 = /*#__PURE__*/forwardRef(GoodsModal$1);
10918
10564
  // skuId: string;
10919
10565
  // styleId: string;
10920
10566
  // }
10921
- var GoodItem$1 = function GoodItem(props) {
10567
+ var GoodItem = function GoodItem(props) {
10922
10568
  var _props$value = props.value,
10923
10569
  value = _props$value === void 0 ? [] : _props$value,
10924
10570
  onChange = props.onChange,
@@ -11293,7 +10939,7 @@ var BsGoods = function BsGoods(props) {
11293
10939
  bsGoods: list
11294
10940
  }));
11295
10941
  };
11296
- return /*#__PURE__*/React.createElement(GoodItem$1, _objectSpread2(_objectSpread2({
10942
+ return /*#__PURE__*/React.createElement(GoodItem, _objectSpread2(_objectSpread2({
11297
10943
  key: 'bsGoods'
11298
10944
  }, props), {}, {
11299
10945
  disabled: disabled,
@@ -11491,12 +11137,12 @@ var BsExchange = function BsExchange(props) {
11491
11137
  onChange: function onChange(val) {
11492
11138
  return changeTypeHandle(val);
11493
11139
  }
11494
- }), !(value === null || value === void 0 ? void 0 : (_value$bsExchangeType4 = value.bsExchangeType) === null || _value$bsExchangeType4 === void 0 ? void 0 : _value$bsExchangeType4.length) ? /*#__PURE__*/React.createElement(GoodItem$1, _objectSpread2(_objectSpread2({
11140
+ }), !(value === null || value === void 0 ? void 0 : (_value$bsExchangeType4 = value.bsExchangeType) === null || _value$bsExchangeType4 === void 0 ? void 0 : _value$bsExchangeType4.length) ? /*#__PURE__*/React.createElement(GoodItem, _objectSpread2(_objectSpread2({
11495
11141
  key: 'bsExchangeGoods'
11496
11142
  }, other), {}, {
11497
11143
  disabled: disabled,
11498
11144
  showChangeBtn: false
11499
- })) : 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.createElement(GoodItem$1, _objectSpread2(_objectSpread2({
11145
+ })) : 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.createElement(GoodItem, _objectSpread2(_objectSpread2({
11500
11146
  key: 'bsExchangeGoods'
11501
11147
  }, other), {}, {
11502
11148
  disabled: disabled,
@@ -11512,7 +11158,7 @@ var BsExchange = function BsExchange(props) {
11512
11158
  border: '1px dashed',
11513
11159
  marginBottom: '8px'
11514
11160
  }
11515
- }, /*#__PURE__*/React.createElement("div", null, "\u9000\u56DE\u5546\u54C1"), /*#__PURE__*/React.createElement(GoodItem$1, _objectSpread2(_objectSpread2({
11161
+ }, /*#__PURE__*/React.createElement("div", null, "\u9000\u56DE\u5546\u54C1"), /*#__PURE__*/React.createElement(GoodItem, _objectSpread2(_objectSpread2({
11516
11162
  key: 'bsReturnGoods'
11517
11163
  }, other), {}, {
11518
11164
  disabled: disabled,
@@ -11522,7 +11168,7 @@ var BsExchange = function BsExchange(props) {
11522
11168
  onChange: function onChange(val) {
11523
11169
  return changeReturnHandle(val, index, 'bsExchangeReturnGoods');
11524
11170
  }
11525
- })), /*#__PURE__*/React.createElement("div", null, "\u6362\u51FA\u5546\u54C1"), /*#__PURE__*/React.createElement(GoodItem$1, _objectSpread2(_objectSpread2({
11171
+ })), /*#__PURE__*/React.createElement("div", null, "\u6362\u51FA\u5546\u54C1"), /*#__PURE__*/React.createElement(GoodItem, _objectSpread2(_objectSpread2({
11526
11172
  key: 'bsOutGoods'
11527
11173
  }, other), {}, {
11528
11174
  disabled: disabled,
@@ -11534,7 +11180,7 @@ var BsExchange = function BsExchange(props) {
11534
11180
  return changeReturnHandle(val, index, 'bsExchangeSwapOutGoods');
11535
11181
  }
11536
11182
  })));
11537
- })), ['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.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", null, "\u8D60\u54C1\u4FE1\u606F"), /*#__PURE__*/React.createElement(GoodItem$1, _objectSpread2(_objectSpread2({
11183
+ })), ['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.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", null, "\u8D60\u54C1\u4FE1\u606F"), /*#__PURE__*/React.createElement(GoodItem, _objectSpread2(_objectSpread2({
11538
11184
  headerText: "\u8D60\u54C1",
11539
11185
  key: 'bsGiftGoods',
11540
11186
  disabled: disabled,
@@ -11645,7 +11291,7 @@ var BsReissue = function BsReissue(props) {
11645
11291
  onChange: function onChange(val) {
11646
11292
  return changeTypeHandle(val);
11647
11293
  }
11648
- }), /*#__PURE__*/React.createElement(GoodItem$1, _objectSpread2(_objectSpread2({
11294
+ }), /*#__PURE__*/React.createElement(GoodItem, _objectSpread2(_objectSpread2({
11649
11295
  key: 'reissueGoods'
11650
11296
  }, other), {}, {
11651
11297
  disabled: disabled,
@@ -11742,7 +11388,7 @@ var BsReturnGoods = function BsReturnGoods(props) {
11742
11388
  onChange: function onChange(val) {
11743
11389
  return changeTypeHandle(val);
11744
11390
  }
11745
- }), /*#__PURE__*/React.createElement(GoodItem$1, _objectSpread2(_objectSpread2({
11391
+ }), /*#__PURE__*/React.createElement(GoodItem, _objectSpread2(_objectSpread2({
11746
11392
  key: 'returnGoods'
11747
11393
  }, other), {}, {
11748
11394
  disabled: disabled,
@@ -11919,7 +11565,7 @@ var WlnGoods = function WlnGoods(props) {
11919
11565
  wlnGoods: list
11920
11566
  }));
11921
11567
  };
11922
- return /*#__PURE__*/React.createElement(GoodItem$1, _objectSpread2(_objectSpread2({
11568
+ return /*#__PURE__*/React.createElement(GoodItem, _objectSpread2(_objectSpread2({
11923
11569
  key: 'wlnGoods'
11924
11570
  }, props), {}, {
11925
11571
  disabled: disabled,
@@ -11932,8 +11578,8 @@ var WlnGoods = function WlnGoods(props) {
11932
11578
  }));
11933
11579
  };
11934
11580
 
11935
- 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";
11936
- styleInject(css_248z$a);
11581
+ 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";
11582
+ styleInject(css_248z$9);
11937
11583
 
11938
11584
  var TabPane$1 = Tabs.TabPane;
11939
11585
  var Option$2 = Select.Option;