@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.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, LogisticsAddressData, uuid } from '@kmkf-fe-packages/kmkf-utils';
6
+ import { AddressData, BsAddressData, request as request$1, ExpressData, uuid, LogisticsAddressData } 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,6 +358,15 @@ 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
+ }
361
370
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
362
371
  try {
363
372
  var info = gen[key](arg);
@@ -7941,7 +7950,9 @@ var GoodsModal = function GoodsModal(props) {
7941
7950
  maxLength = props.maxLength,
7942
7951
  shopList = props.shopList,
7943
7952
  changeSku = props.changeSku,
7944
- width = props.width;
7953
+ width = props.width,
7954
+ _props$numIidType = props.numIidType,
7955
+ numIidType = _props$numIidType === void 0 ? 'string' : _props$numIidType;
7945
7956
  var _useState = useState([]),
7946
7957
  _useState2 = _slicedToArray(_useState, 2),
7947
7958
  selectList = _useState2[0],
@@ -7958,6 +7969,25 @@ var GoodsModal = function GoodsModal(props) {
7958
7969
  _useState8 = _slicedToArray(_useState7, 2),
7959
7970
  loading = _useState8[0],
7960
7971
  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
+ };
7961
7991
  var _useState9 = useState({
7962
7992
  apiName: 'queryItems',
7963
7993
  desc: true,
@@ -8051,15 +8081,15 @@ var GoodsModal = function GoodsModal(props) {
8051
8081
  var newSelect = selectList.filter(function (item) {
8052
8082
  return item.numIid !== good.numIid;
8053
8083
  });
8054
- setSelect(_toConsumableArray(newSelect));
8084
+ handleSetSelect(_toConsumableArray(newSelect));
8055
8085
  var ids = newSelect.map(function (item) {
8056
8086
  return item.numIid;
8057
8087
  });
8058
- setSelectIds(ids);
8088
+ handleSelectIds(ids);
8059
8089
  } else {
8060
8090
  if (type === 4 || changeSku) {
8061
- setSelect([good]);
8062
- setSelectIds([good.numIid]);
8091
+ handleSetSelect([good]);
8092
+ handleSelectIds([good.numIid]);
8063
8093
  } else {
8064
8094
  if (selectList.length >= maxLength) {
8065
8095
  message.error("\u6700\u591A\u6DFB\u52A0".concat(maxLength, "\u5F20"));
@@ -8072,14 +8102,14 @@ var GoodsModal = function GoodsModal(props) {
8072
8102
  var newSelectList = selectList.filter(function (item) {
8073
8103
  return item.numIid !== good.numIid;
8074
8104
  });
8075
- setSelect(newSelectList);
8105
+ handleSetSelect(newSelectList);
8076
8106
  var _ids = newSelectList.map(function (item) {
8077
8107
  return item.numIid;
8078
8108
  });
8079
- setSelectIds(_ids);
8109
+ handleSelectIds(_ids);
8080
8110
  } else {
8081
- setSelect([].concat(_toConsumableArray(selectList), [good]));
8082
- setSelectIds([].concat(_toConsumableArray(selectIds), [good.numIid]));
8111
+ handleSetSelect([].concat(_toConsumableArray(selectList), [good]));
8112
+ handleSelectIds([].concat(_toConsumableArray(selectIds), [good.numIid]));
8083
8113
  }
8084
8114
  }
8085
8115
  }
@@ -8171,7 +8201,7 @@ var GoodsModal = function GoodsModal(props) {
8171
8201
  items.forEach(function (item) {
8172
8202
  item.platform = platform;
8173
8203
  });
8174
- setGoodList(_toConsumableArray(items));
8204
+ handleSetGoodList(_toConsumableArray(items));
8175
8205
  setTotal(totalCount);
8176
8206
  _context.next = 26;
8177
8207
  break;
@@ -8199,7 +8229,7 @@ var GoodsModal = function GoodsModal(props) {
8199
8229
  item.title = item.productName;
8200
8230
  item.platform = platform;
8201
8231
  });
8202
- setGoodList(_toConsumableArray(newList));
8232
+ handleSetGoodList(_toConsumableArray(newList));
8203
8233
  setTotal(_total);
8204
8234
  if (platform === 'sph' && nextKey && !nextKeyList.includes(nextKey)) {
8205
8235
  setNextKeyList([].concat(_toConsumableArray(nextKeyList), [nextKey]));
@@ -8285,12 +8315,12 @@ var GoodsModal = function GoodsModal(props) {
8285
8315
  useEffect(function () {
8286
8316
  setPlatformHandle(platform);
8287
8317
  if (imgList.length) {
8288
- setSelect(imgList);
8318
+ handleSetSelect(imgList);
8289
8319
  var ids = imgList === null || imgList === void 0 ? void 0 : imgList.map(function (item) {
8290
8320
  return item.numIid;
8291
8321
  });
8292
8322
  if (!(changeSku || type === 4)) {
8293
- setSelectIds(ids);
8323
+ handleSelectIds(ids);
8294
8324
  }
8295
8325
  }
8296
8326
  }, [platform]);
@@ -8388,9 +8418,9 @@ var GoodsModal = function GoodsModal(props) {
8388
8418
  spinning: loading
8389
8419
  }, /*#__PURE__*/React.createElement("div", {
8390
8420
  className: "goodsMain"
8391
- }, (searchParams.type == 'select' ? selectList : goodList).map(function (good) {
8421
+ }, (searchParams.type == 'select' ? selectList : goodList).map(function (good, index) {
8392
8422
  return /*#__PURE__*/React.createElement("div", {
8393
- key: good.numIid,
8423
+ key: good.numIid + "".concat(index),
8394
8424
  className: "goodItem ".concat(selectIds.includes(good.numIid) ? 'active' : ''),
8395
8425
  onClick: function onClick() {
8396
8426
  changeItem(good);
@@ -8452,7 +8482,7 @@ var Sku = /*#__PURE__*/forwardRef(function (props, ref) {
8452
8482
  });
8453
8483
  var handleSure = /*#__PURE__*/function () {
8454
8484
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
8455
- var type, SKU, _ref3, _ref4, _ref5, _ref6, _ref7, _yield$request, _yield$request$data, data;
8485
+ var type, SKU, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _yield$request, _yield$request$data, data;
8456
8486
  return _regeneratorRuntime().wrap(function _callee$(_context) {
8457
8487
  while (1) switch (_context.prev = _context.next) {
8458
8488
  case 0:
@@ -8487,7 +8517,10 @@ var Sku = /*#__PURE__*/forwardRef(function (props, ref) {
8487
8517
  }) === null || _ref4 === void 0 ? void 0 : _ref4.picUrl,
8488
8518
  outerSkuId: (_ref5 = SKU || {
8489
8519
  outerSkuId: ''
8490
- }) === null || _ref5 === void 0 ? void 0 : _ref5.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) || ''
8491
8524
  });
8492
8525
  _context.next = 16;
8493
8526
  break;
@@ -8508,12 +8541,15 @@ var Sku = /*#__PURE__*/forwardRef(function (props, ref) {
8508
8541
  props.handleOk({
8509
8542
  enableItemId: data.length > 0 ? data[0]['supplierItemOuterId'] : '',
8510
8543
  enableSupplierName: data.length > 0 ? data[0]['supplierName'] : '',
8511
- propertiesName: ((_ref6 = SKU || {
8544
+ propertiesName: ((_ref7 = SKU || {
8512
8545
  label: ''
8513
- }) === null || _ref6 === void 0 ? void 0 : _ref6.label) || '',
8514
- picUrl: (_ref7 = SKU || {
8546
+ }) === null || _ref7 === void 0 ? void 0 : _ref7.label) || '',
8547
+ picUrl: (_ref8 = SKU || {
8515
8548
  picUrl: ''
8516
- }) === null || _ref7 === void 0 ? void 0 : _ref7.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) || ''
8517
8553
  });
8518
8554
  case 16:
8519
8555
  setVisible(false);
@@ -8891,8 +8927,324 @@ var ChooseBaby = function ChooseBaby(props) {
8891
8927
  }));
8892
8928
  };
8893
8929
 
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
+
8894
9246
  var TBGoodSerial = function TBGoodSerial(props) {
8895
- return /*#__PURE__*/React.createElement(Goods, _objectSpread2(_objectSpread2({}, props), {}, {
9247
+ return /*#__PURE__*/React.createElement(GoodItem, _objectSpread2(_objectSpread2({}, props), {}, {
8896
9248
  type: 1
8897
9249
  }));
8898
9250
  };
@@ -8903,8 +9255,8 @@ var Supplier = function Supplier(props) {
8903
9255
  }));
8904
9256
  };
8905
9257
 
8906
- 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";
8907
- styleInject(css_248z$6);
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);
8908
9260
 
8909
9261
  var Invoice = function Invoice(props) {
8910
9262
  var _props$value = props.value,
@@ -9333,8 +9685,8 @@ var Payment = function Payment(props) {
9333
9685
  }));
9334
9686
  };
9335
9687
 
9336
- var css_248z$7 = ".interceptBox :global(.ant-select-item-option-content) {\n overflow: auto !important;\n white-space: initial !important;\n}\n";
9337
- styleInject(css_248z$7);
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);
9338
9690
 
9339
9691
  var Item = Form.Item;
9340
9692
  var LogisticsInterception = function LogisticsInterception(props) {
@@ -9515,7 +9867,7 @@ var LogisticsInterception = function LogisticsInterception(props) {
9515
9867
  }
9516
9868
  };
9517
9869
  return /*#__PURE__*/React.createElement("div", {
9518
- className: css_248z$7.interceptBox
9870
+ className: css_248z$8.interceptBox
9519
9871
  }, /*#__PURE__*/React.createElement(Item, {
9520
9872
  label: '物流信息',
9521
9873
  required: required,
@@ -10125,8 +10477,8 @@ var jstGoods = function jstGoods(props) {
10125
10477
  })) : null) : null);
10126
10478
  };
10127
10479
 
10128
- 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";
10129
- styleInject(css_248z$8);
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);
10130
10482
 
10131
10483
  var ItemList = function ItemList(props) {
10132
10484
  var _props$value = props.value,
@@ -10566,7 +10918,7 @@ var GoodsModal$2 = /*#__PURE__*/forwardRef(GoodsModal$1);
10566
10918
  // skuId: string;
10567
10919
  // styleId: string;
10568
10920
  // }
10569
- var GoodItem = function GoodItem(props) {
10921
+ var GoodItem$1 = function GoodItem(props) {
10570
10922
  var _props$value = props.value,
10571
10923
  value = _props$value === void 0 ? [] : _props$value,
10572
10924
  onChange = props.onChange,
@@ -10941,7 +11293,7 @@ var BsGoods = function BsGoods(props) {
10941
11293
  bsGoods: list
10942
11294
  }));
10943
11295
  };
10944
- return /*#__PURE__*/React.createElement(GoodItem, _objectSpread2(_objectSpread2({
11296
+ return /*#__PURE__*/React.createElement(GoodItem$1, _objectSpread2(_objectSpread2({
10945
11297
  key: 'bsGoods'
10946
11298
  }, props), {}, {
10947
11299
  disabled: disabled,
@@ -11139,12 +11491,12 @@ var BsExchange = function BsExchange(props) {
11139
11491
  onChange: function onChange(val) {
11140
11492
  return changeTypeHandle(val);
11141
11493
  }
11142
- }), !(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({
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({
11143
11495
  key: 'bsExchangeGoods'
11144
11496
  }, other), {}, {
11145
11497
  disabled: disabled,
11146
11498
  showChangeBtn: false
11147
- })) : 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({
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({
11148
11500
  key: 'bsExchangeGoods'
11149
11501
  }, other), {}, {
11150
11502
  disabled: disabled,
@@ -11160,7 +11512,7 @@ var BsExchange = function BsExchange(props) {
11160
11512
  border: '1px dashed',
11161
11513
  marginBottom: '8px'
11162
11514
  }
11163
- }, /*#__PURE__*/React.createElement("div", null, "\u9000\u56DE\u5546\u54C1"), /*#__PURE__*/React.createElement(GoodItem, _objectSpread2(_objectSpread2({
11515
+ }, /*#__PURE__*/React.createElement("div", null, "\u9000\u56DE\u5546\u54C1"), /*#__PURE__*/React.createElement(GoodItem$1, _objectSpread2(_objectSpread2({
11164
11516
  key: 'bsReturnGoods'
11165
11517
  }, other), {}, {
11166
11518
  disabled: disabled,
@@ -11170,7 +11522,7 @@ var BsExchange = function BsExchange(props) {
11170
11522
  onChange: function onChange(val) {
11171
11523
  return changeReturnHandle(val, index, 'bsExchangeReturnGoods');
11172
11524
  }
11173
- })), /*#__PURE__*/React.createElement("div", null, "\u6362\u51FA\u5546\u54C1"), /*#__PURE__*/React.createElement(GoodItem, _objectSpread2(_objectSpread2({
11525
+ })), /*#__PURE__*/React.createElement("div", null, "\u6362\u51FA\u5546\u54C1"), /*#__PURE__*/React.createElement(GoodItem$1, _objectSpread2(_objectSpread2({
11174
11526
  key: 'bsOutGoods'
11175
11527
  }, other), {}, {
11176
11528
  disabled: disabled,
@@ -11182,7 +11534,7 @@ var BsExchange = function BsExchange(props) {
11182
11534
  return changeReturnHandle(val, index, 'bsExchangeSwapOutGoods');
11183
11535
  }
11184
11536
  })));
11185
- })), ['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({
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({
11186
11538
  headerText: "\u8D60\u54C1",
11187
11539
  key: 'bsGiftGoods',
11188
11540
  disabled: disabled,
@@ -11293,7 +11645,7 @@ var BsReissue = function BsReissue(props) {
11293
11645
  onChange: function onChange(val) {
11294
11646
  return changeTypeHandle(val);
11295
11647
  }
11296
- }), /*#__PURE__*/React.createElement(GoodItem, _objectSpread2(_objectSpread2({
11648
+ }), /*#__PURE__*/React.createElement(GoodItem$1, _objectSpread2(_objectSpread2({
11297
11649
  key: 'reissueGoods'
11298
11650
  }, other), {}, {
11299
11651
  disabled: disabled,
@@ -11390,7 +11742,7 @@ var BsReturnGoods = function BsReturnGoods(props) {
11390
11742
  onChange: function onChange(val) {
11391
11743
  return changeTypeHandle(val);
11392
11744
  }
11393
- }), /*#__PURE__*/React.createElement(GoodItem, _objectSpread2(_objectSpread2({
11745
+ }), /*#__PURE__*/React.createElement(GoodItem$1, _objectSpread2(_objectSpread2({
11394
11746
  key: 'returnGoods'
11395
11747
  }, other), {}, {
11396
11748
  disabled: disabled,
@@ -11567,7 +11919,7 @@ var WlnGoods = function WlnGoods(props) {
11567
11919
  wlnGoods: list
11568
11920
  }));
11569
11921
  };
11570
- return /*#__PURE__*/React.createElement(GoodItem, _objectSpread2(_objectSpread2({
11922
+ return /*#__PURE__*/React.createElement(GoodItem$1, _objectSpread2(_objectSpread2({
11571
11923
  key: 'wlnGoods'
11572
11924
  }, props), {}, {
11573
11925
  disabled: disabled,
@@ -11580,8 +11932,8 @@ var WlnGoods = function WlnGoods(props) {
11580
11932
  }));
11581
11933
  };
11582
11934
 
11583
- 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";
11584
- styleInject(css_248z$9);
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);
11585
11937
 
11586
11938
  var TabPane$1 = Tabs.TabPane;
11587
11939
  var Option$2 = Select.Option;