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

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,6 +369,15 @@ 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
+ }
372
381
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
373
382
  try {
374
383
  var info = gen[key](arg);
@@ -7952,7 +7961,9 @@ var GoodsModal = function GoodsModal(props) {
7952
7961
  maxLength = props.maxLength,
7953
7962
  shopList = props.shopList,
7954
7963
  changeSku = props.changeSku,
7955
- width = props.width;
7964
+ width = props.width,
7965
+ _props$numIidType = props.numIidType,
7966
+ numIidType = _props$numIidType === void 0 ? 'string' : _props$numIidType;
7956
7967
  var _useState = React.useState([]),
7957
7968
  _useState2 = _slicedToArray(_useState, 2),
7958
7969
  selectList = _useState2[0],
@@ -7969,6 +7980,25 @@ var GoodsModal = function GoodsModal(props) {
7969
7980
  _useState8 = _slicedToArray(_useState7, 2),
7970
7981
  loading = _useState8[0],
7971
7982
  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
+ };
7972
8002
  var _useState9 = React.useState({
7973
8003
  apiName: 'queryItems',
7974
8004
  desc: true,
@@ -8062,15 +8092,15 @@ var GoodsModal = function GoodsModal(props) {
8062
8092
  var newSelect = selectList.filter(function (item) {
8063
8093
  return item.numIid !== good.numIid;
8064
8094
  });
8065
- setSelect(_toConsumableArray(newSelect));
8095
+ handleSetSelect(_toConsumableArray(newSelect));
8066
8096
  var ids = newSelect.map(function (item) {
8067
8097
  return item.numIid;
8068
8098
  });
8069
- setSelectIds(ids);
8099
+ handleSelectIds(ids);
8070
8100
  } else {
8071
8101
  if (type === 4 || changeSku) {
8072
- setSelect([good]);
8073
- setSelectIds([good.numIid]);
8102
+ handleSetSelect([good]);
8103
+ handleSelectIds([good.numIid]);
8074
8104
  } else {
8075
8105
  if (selectList.length >= maxLength) {
8076
8106
  antd.message.error("\u6700\u591A\u6DFB\u52A0".concat(maxLength, "\u5F20"));
@@ -8083,14 +8113,14 @@ var GoodsModal = function GoodsModal(props) {
8083
8113
  var newSelectList = selectList.filter(function (item) {
8084
8114
  return item.numIid !== good.numIid;
8085
8115
  });
8086
- setSelect(newSelectList);
8116
+ handleSetSelect(newSelectList);
8087
8117
  var _ids = newSelectList.map(function (item) {
8088
8118
  return item.numIid;
8089
8119
  });
8090
- setSelectIds(_ids);
8120
+ handleSelectIds(_ids);
8091
8121
  } else {
8092
- setSelect([].concat(_toConsumableArray(selectList), [good]));
8093
- setSelectIds([].concat(_toConsumableArray(selectIds), [good.numIid]));
8122
+ handleSetSelect([].concat(_toConsumableArray(selectList), [good]));
8123
+ handleSelectIds([].concat(_toConsumableArray(selectIds), [good.numIid]));
8094
8124
  }
8095
8125
  }
8096
8126
  }
@@ -8182,7 +8212,7 @@ var GoodsModal = function GoodsModal(props) {
8182
8212
  items.forEach(function (item) {
8183
8213
  item.platform = platform;
8184
8214
  });
8185
- setGoodList(_toConsumableArray(items));
8215
+ handleSetGoodList(_toConsumableArray(items));
8186
8216
  setTotal(totalCount);
8187
8217
  _context.next = 26;
8188
8218
  break;
@@ -8210,7 +8240,7 @@ var GoodsModal = function GoodsModal(props) {
8210
8240
  item.title = item.productName;
8211
8241
  item.platform = platform;
8212
8242
  });
8213
- setGoodList(_toConsumableArray(newList));
8243
+ handleSetGoodList(_toConsumableArray(newList));
8214
8244
  setTotal(_total);
8215
8245
  if (platform === 'sph' && nextKey && !nextKeyList.includes(nextKey)) {
8216
8246
  setNextKeyList([].concat(_toConsumableArray(nextKeyList), [nextKey]));
@@ -8296,12 +8326,12 @@ var GoodsModal = function GoodsModal(props) {
8296
8326
  React.useEffect(function () {
8297
8327
  setPlatformHandle(platform);
8298
8328
  if (imgList.length) {
8299
- setSelect(imgList);
8329
+ handleSetSelect(imgList);
8300
8330
  var ids = imgList === null || imgList === void 0 ? void 0 : imgList.map(function (item) {
8301
8331
  return item.numIid;
8302
8332
  });
8303
8333
  if (!(changeSku || type === 4)) {
8304
- setSelectIds(ids);
8334
+ handleSelectIds(ids);
8305
8335
  }
8306
8336
  }
8307
8337
  }, [platform]);
@@ -8399,9 +8429,9 @@ var GoodsModal = function GoodsModal(props) {
8399
8429
  spinning: loading
8400
8430
  }, /*#__PURE__*/React__default['default'].createElement("div", {
8401
8431
  className: "goodsMain"
8402
- }, (searchParams.type == 'select' ? selectList : goodList).map(function (good) {
8432
+ }, (searchParams.type == 'select' ? selectList : goodList).map(function (good, index) {
8403
8433
  return /*#__PURE__*/React__default['default'].createElement("div", {
8404
- key: good.numIid,
8434
+ key: good.numIid + "".concat(index),
8405
8435
  className: "goodItem ".concat(selectIds.includes(good.numIid) ? 'active' : ''),
8406
8436
  onClick: function onClick() {
8407
8437
  changeItem(good);
@@ -8463,7 +8493,7 @@ var Sku = /*#__PURE__*/React.forwardRef(function (props, ref) {
8463
8493
  });
8464
8494
  var handleSure = /*#__PURE__*/function () {
8465
8495
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
8466
- var type, SKU, _ref3, _ref4, _ref5, _ref6, _ref7, _yield$request, _yield$request$data, data;
8496
+ var type, SKU, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _yield$request, _yield$request$data, data;
8467
8497
  return _regeneratorRuntime().wrap(function _callee$(_context) {
8468
8498
  while (1) switch (_context.prev = _context.next) {
8469
8499
  case 0:
@@ -8498,7 +8528,10 @@ var Sku = /*#__PURE__*/React.forwardRef(function (props, ref) {
8498
8528
  }) === null || _ref4 === void 0 ? void 0 : _ref4.picUrl,
8499
8529
  outerSkuId: (_ref5 = SKU || {
8500
8530
  outerSkuId: ''
8501
- }) === null || _ref5 === void 0 ? void 0 : _ref5.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) || ''
8502
8535
  });
8503
8536
  _context.next = 16;
8504
8537
  break;
@@ -8519,12 +8552,15 @@ var Sku = /*#__PURE__*/React.forwardRef(function (props, ref) {
8519
8552
  props.handleOk({
8520
8553
  enableItemId: data.length > 0 ? data[0]['supplierItemOuterId'] : '',
8521
8554
  enableSupplierName: data.length > 0 ? data[0]['supplierName'] : '',
8522
- propertiesName: ((_ref6 = SKU || {
8555
+ propertiesName: ((_ref7 = SKU || {
8523
8556
  label: ''
8524
- }) === null || _ref6 === void 0 ? void 0 : _ref6.label) || '',
8525
- picUrl: (_ref7 = SKU || {
8557
+ }) === null || _ref7 === void 0 ? void 0 : _ref7.label) || '',
8558
+ picUrl: (_ref8 = SKU || {
8526
8559
  picUrl: ''
8527
- }) === null || _ref7 === void 0 ? void 0 : _ref7.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) || ''
8528
8564
  });
8529
8565
  case 16:
8530
8566
  setVisible(false);
@@ -8902,8 +8938,324 @@ var ChooseBaby = function ChooseBaby(props) {
8902
8938
  }));
8903
8939
  };
8904
8940
 
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
+
8905
9257
  var TBGoodSerial = function TBGoodSerial(props) {
8906
- return /*#__PURE__*/React__default['default'].createElement(Goods, _objectSpread2(_objectSpread2({}, props), {}, {
9258
+ return /*#__PURE__*/React__default['default'].createElement(GoodItem, _objectSpread2(_objectSpread2({}, props), {}, {
8907
9259
  type: 1
8908
9260
  }));
8909
9261
  };
@@ -8914,8 +9266,8 @@ var Supplier = function Supplier(props) {
8914
9266
  }));
8915
9267
  };
8916
9268
 
8917
- 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";
8918
- styleInject(css_248z$6);
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);
8919
9271
 
8920
9272
  var Invoice = function Invoice(props) {
8921
9273
  var _props$value = props.value,
@@ -9344,8 +9696,8 @@ var Payment = function Payment(props) {
9344
9696
  }));
9345
9697
  };
9346
9698
 
9347
- var css_248z$7 = ".interceptBox :global(.ant-select-item-option-content) {\n overflow: auto !important;\n white-space: initial !important;\n}\n";
9348
- styleInject(css_248z$7);
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);
9349
9701
 
9350
9702
  var Item = antd.Form.Item;
9351
9703
  var LogisticsInterception = function LogisticsInterception(props) {
@@ -9526,7 +9878,7 @@ var LogisticsInterception = function LogisticsInterception(props) {
9526
9878
  }
9527
9879
  };
9528
9880
  return /*#__PURE__*/React__default['default'].createElement("div", {
9529
- className: css_248z$7.interceptBox
9881
+ className: css_248z$8.interceptBox
9530
9882
  }, /*#__PURE__*/React__default['default'].createElement(Item, {
9531
9883
  label: '物流信息',
9532
9884
  required: required,
@@ -10136,8 +10488,8 @@ var jstGoods = function jstGoods(props) {
10136
10488
  })) : null) : null);
10137
10489
  };
10138
10490
 
10139
- 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";
10140
- styleInject(css_248z$8);
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);
10141
10493
 
10142
10494
  var ItemList = function ItemList(props) {
10143
10495
  var _props$value = props.value,
@@ -10577,7 +10929,7 @@ var GoodsModal$2 = /*#__PURE__*/React.forwardRef(GoodsModal$1);
10577
10929
  // skuId: string;
10578
10930
  // styleId: string;
10579
10931
  // }
10580
- var GoodItem = function GoodItem(props) {
10932
+ var GoodItem$1 = function GoodItem(props) {
10581
10933
  var _props$value = props.value,
10582
10934
  value = _props$value === void 0 ? [] : _props$value,
10583
10935
  onChange = props.onChange,
@@ -10952,7 +11304,7 @@ var BsGoods = function BsGoods(props) {
10952
11304
  bsGoods: list
10953
11305
  }));
10954
11306
  };
10955
- return /*#__PURE__*/React__default['default'].createElement(GoodItem, _objectSpread2(_objectSpread2({
11307
+ return /*#__PURE__*/React__default['default'].createElement(GoodItem$1, _objectSpread2(_objectSpread2({
10956
11308
  key: 'bsGoods'
10957
11309
  }, props), {}, {
10958
11310
  disabled: disabled,
@@ -11150,12 +11502,12 @@ var BsExchange = function BsExchange(props) {
11150
11502
  onChange: function onChange(val) {
11151
11503
  return changeTypeHandle(val);
11152
11504
  }
11153
- }), !(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({
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({
11154
11506
  key: 'bsExchangeGoods'
11155
11507
  }, other), {}, {
11156
11508
  disabled: disabled,
11157
11509
  showChangeBtn: false
11158
- })) : 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({
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({
11159
11511
  key: 'bsExchangeGoods'
11160
11512
  }, other), {}, {
11161
11513
  disabled: disabled,
@@ -11171,7 +11523,7 @@ var BsExchange = function BsExchange(props) {
11171
11523
  border: '1px dashed',
11172
11524
  marginBottom: '8px'
11173
11525
  }
11174
- }, /*#__PURE__*/React__default['default'].createElement("div", null, "\u9000\u56DE\u5546\u54C1"), /*#__PURE__*/React__default['default'].createElement(GoodItem, _objectSpread2(_objectSpread2({
11526
+ }, /*#__PURE__*/React__default['default'].createElement("div", null, "\u9000\u56DE\u5546\u54C1"), /*#__PURE__*/React__default['default'].createElement(GoodItem$1, _objectSpread2(_objectSpread2({
11175
11527
  key: 'bsReturnGoods'
11176
11528
  }, other), {}, {
11177
11529
  disabled: disabled,
@@ -11181,7 +11533,7 @@ var BsExchange = function BsExchange(props) {
11181
11533
  onChange: function onChange(val) {
11182
11534
  return changeReturnHandle(val, index, 'bsExchangeReturnGoods');
11183
11535
  }
11184
- })), /*#__PURE__*/React__default['default'].createElement("div", null, "\u6362\u51FA\u5546\u54C1"), /*#__PURE__*/React__default['default'].createElement(GoodItem, _objectSpread2(_objectSpread2({
11536
+ })), /*#__PURE__*/React__default['default'].createElement("div", null, "\u6362\u51FA\u5546\u54C1"), /*#__PURE__*/React__default['default'].createElement(GoodItem$1, _objectSpread2(_objectSpread2({
11185
11537
  key: 'bsOutGoods'
11186
11538
  }, other), {}, {
11187
11539
  disabled: disabled,
@@ -11193,7 +11545,7 @@ var BsExchange = function BsExchange(props) {
11193
11545
  return changeReturnHandle(val, index, 'bsExchangeSwapOutGoods');
11194
11546
  }
11195
11547
  })));
11196
- })), ['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({
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({
11197
11549
  headerText: "\u8D60\u54C1",
11198
11550
  key: 'bsGiftGoods',
11199
11551
  disabled: disabled,
@@ -11304,7 +11656,7 @@ var BsReissue = function BsReissue(props) {
11304
11656
  onChange: function onChange(val) {
11305
11657
  return changeTypeHandle(val);
11306
11658
  }
11307
- }), /*#__PURE__*/React__default['default'].createElement(GoodItem, _objectSpread2(_objectSpread2({
11659
+ }), /*#__PURE__*/React__default['default'].createElement(GoodItem$1, _objectSpread2(_objectSpread2({
11308
11660
  key: 'reissueGoods'
11309
11661
  }, other), {}, {
11310
11662
  disabled: disabled,
@@ -11401,7 +11753,7 @@ var BsReturnGoods = function BsReturnGoods(props) {
11401
11753
  onChange: function onChange(val) {
11402
11754
  return changeTypeHandle(val);
11403
11755
  }
11404
- }), /*#__PURE__*/React__default['default'].createElement(GoodItem, _objectSpread2(_objectSpread2({
11756
+ }), /*#__PURE__*/React__default['default'].createElement(GoodItem$1, _objectSpread2(_objectSpread2({
11405
11757
  key: 'returnGoods'
11406
11758
  }, other), {}, {
11407
11759
  disabled: disabled,
@@ -11578,7 +11930,7 @@ var WlnGoods = function WlnGoods(props) {
11578
11930
  wlnGoods: list
11579
11931
  }));
11580
11932
  };
11581
- return /*#__PURE__*/React__default['default'].createElement(GoodItem, _objectSpread2(_objectSpread2({
11933
+ return /*#__PURE__*/React__default['default'].createElement(GoodItem$1, _objectSpread2(_objectSpread2({
11582
11934
  key: 'wlnGoods'
11583
11935
  }, props), {}, {
11584
11936
  disabled: disabled,
@@ -11591,8 +11943,8 @@ var WlnGoods = function WlnGoods(props) {
11591
11943
  }));
11592
11944
  };
11593
11945
 
11594
- 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";
11595
- styleInject(css_248z$9);
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);
11596
11948
 
11597
11949
  var TabPane$1 = antd.Tabs.TabPane;
11598
11950
  var Option$2 = antd.Select.Option;
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- import { GoodsProps } from '../../common/Goods';
3
- declare const TBGoodSerial: (props: Partial<GoodsProps>) => React.JSX.Element;
2
+ import { RichGoodProps } from '../../common/Goods/RichItem';
3
+ declare const TBGoodSerial: (props: Partial<RichGoodProps>) => React.JSX.Element;
4
4
  export default TBGoodSerial;