@kmkf-fe-packages/basic-components 0.7.15-alpha.4 → 0.7.15-alpha.40

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
@@ -6951,7 +6951,7 @@ var ApaasUploadAsync$1 = function ApaasUploadAsync(_ref) {
6951
6951
  var beforeUpload = function beforeUpload(file) {
6952
6952
  console.log('beforeUpload', file);
6953
6953
  var size = file.size / 1024 / 1024 < maxSize;
6954
- if (value.length > maxCount) {
6954
+ if (value.length >= maxCount) {
6955
6955
  antd.message.error("\u6700\u591A\u6DFB\u52A0".concat(maxCount, "\u4E2A\u6587\u4EF6\uFF01"));
6956
6956
  return antd.Upload.LIST_IGNORE;
6957
6957
  }
@@ -6974,7 +6974,7 @@ var ApaasUploadAsync$1 = function ApaasUploadAsync(_ref) {
6974
6974
  className: styles$2.tips
6975
6975
  }, "\u5141\u8BB8\u4E0A\u4F20", maxCount, "\u4E2A\u6587\u4EF6"), /*#__PURE__*/React__default['default'].createElement(Dragger, _objectSpread2({
6976
6976
  disabled: disabled,
6977
- multiple: true,
6977
+ multiple: false,
6978
6978
  accept: accept,
6979
6979
  name: "file",
6980
6980
  maxCount: maxCount,
@@ -7163,7 +7163,8 @@ function ApaasRate(props) {
7163
7163
  var address = kmkfUtils.AddressData.getInstance();
7164
7164
  var bsAddress = kmkfUtils.BsAddressData.getInstance();
7165
7165
  var Province = function Province(props) {
7166
- var type = props.type;
7166
+ var _props$type = props.type,
7167
+ type = _props$type === void 0 ? 'workOrder' : _props$type;
7167
7168
  var _useState = React.useState([]),
7168
7169
  _useState2 = _slicedToArray(_useState, 2),
7169
7170
  option = _useState2[0],
@@ -7174,7 +7175,7 @@ var Province = function Province(props) {
7174
7175
  return _regeneratorRuntime().wrap(function _callee$(_context) {
7175
7176
  while (1) switch (_context.prev = _context.next) {
7176
7177
  case 0:
7177
- setOptions(type === 'workOrder' ? address.addressOptions || [] : bsAddress.addressOptions || []);
7178
+ setOptions(type !== 'bs' ? address.addressOptions || [] : bsAddress.addressOptions || []);
7178
7179
  case 1:
7179
7180
  case "end":
7180
7181
  return _context.stop();
@@ -7222,7 +7223,7 @@ var ParseLogistics = function ParseLogistics(props) {
7222
7223
  });
7223
7224
  };
7224
7225
  return /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(TextArea, {
7225
- placeholder: "\u590D\u5236\u7269\u6D41\u4FE1\u606F\uFF0C\u70B9\u51FB\u667A\u80FD\u8BC6\u522B",
7226
+ placeholder: "\u590D\u5236\u4FE1\u606F\uFF0C\u70B9\u51FB\u667A\u80FD\u8BC6\u522B",
7226
7227
  rows: 3,
7227
7228
  value: value,
7228
7229
  onChange: function onChange(e) {
@@ -8958,31 +8959,43 @@ var Payment = function Payment(props) {
8958
8959
  name: 'enterprisePaymentTid',
8959
8960
  placeholder: '请输入订单编号',
8960
8961
  required: required,
8961
- show: true
8962
+ show: true,
8963
+ hidden: false
8962
8964
  }, {
8963
8965
  label: '打款金额',
8964
8966
  name: 'enterprisePaymentRefundFee',
8965
8967
  placeholder: '请输入打款金额',
8966
8968
  required: required,
8967
- show: true
8969
+ show: true,
8970
+ hidden: false
8968
8971
  }, {
8969
8972
  label: '买家昵称',
8970
8973
  name: 'enterprisePaymentBuyerNick',
8971
8974
  placeholder: '请输入买家昵称',
8972
8975
  required: false,
8973
- show: true
8976
+ show: true,
8977
+ hidden: false
8974
8978
  }, {
8975
8979
  label: '支付宝名称',
8976
8980
  name: 'enterprisePaymentAlipayNick',
8977
8981
  placeholder: '请输入支付宝名称',
8978
8982
  required: zhiFubaoRequired,
8979
- show: true
8983
+ show: true,
8984
+ hidden: false
8980
8985
  }, {
8981
8986
  label: '支付宝账号',
8982
8987
  name: 'enterprisePaymentAlipayNo',
8983
8988
  placeholder: '请输入支付宝账号',
8984
8989
  required: zhiFubaoRequired,
8985
- show: true
8990
+ show: true,
8991
+ hidden: false
8992
+ }, {
8993
+ label: '打款状态',
8994
+ name: 'enterprisePaymentStatus',
8995
+ placeholder: '',
8996
+ required: false,
8997
+ show: false,
8998
+ hidden: true
8986
8999
  }];
8987
9000
  return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, PaymentList.map(function (item) {
8988
9001
  return item.show && /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
@@ -9321,6 +9334,47 @@ var LogisticsTrajectory = function LogisticsTrajectory(props) {
9321
9334
  typeof onChange === 'function' && onChange(_objectSpread2(_objectSpread2({}, value), {}, {
9322
9335
  trajectoryCompany: val
9323
9336
  }));
9337
+ handleSearchSnapshot(val);
9338
+ };
9339
+ var handleSearchSnapshot = function handleSearchSnapshot(company) {
9340
+ var trajectoryCompany = value.trajectoryCompany,
9341
+ trajectoryCode = value.trajectoryCode,
9342
+ trajectoryPhone = value.trajectoryPhone;
9343
+ var newCompany = company ? company : trajectoryCompany;
9344
+ if (newCompany === 'SF' && !(newCompany && trajectoryCode && trajectoryPhone)) {
9345
+ return;
9346
+ } else if (!(newCompany && trajectoryCode)) {
9347
+ return;
9348
+ }
9349
+ try {
9350
+ extendRequest('/qy/logistics/logisticsTraceSearch', {
9351
+ method: 'post',
9352
+ data: {
9353
+ mailNo: trajectoryCode,
9354
+ cpCode: newCompany,
9355
+ mobile: trajectoryPhone
9356
+ }
9357
+ }).then(function (res) {
9358
+ var result = res.result,
9359
+ success = res.success,
9360
+ data = res.data,
9361
+ msg = res.message;
9362
+ if (result === 100 || success) {
9363
+ onChange(_objectSpread2(_objectSpread2({}, value), {}, {
9364
+ trajectorySnapshot: data === null || data === void 0 ? void 0 : data.logisticsStatusDesc,
9365
+ trajectoryCompany: newCompany
9366
+ }));
9367
+ } else {
9368
+ msg && antd.message.error(msg);
9369
+ }
9370
+ });
9371
+ } catch (err) {
9372
+ onChange(_objectSpread2(_objectSpread2({}, value), {}, {
9373
+ trajectorySnapshot: '',
9374
+ trajectoryCompany: newCompany
9375
+ }));
9376
+ (err === null || err === void 0 ? void 0 : err.message) && antd.message.error(err === null || err === void 0 ? void 0 : err.message);
9377
+ }
9324
9378
  };
9325
9379
  //物流公司
9326
9380
  var LogisticsCompany = function LogisticsCompany() {
@@ -9343,20 +9397,40 @@ var LogisticsTrajectory = function LogisticsTrajectory(props) {
9343
9397
  //物流单号
9344
9398
  var LogisticsCode = function LogisticsCode() {
9345
9399
  return /*#__PURE__*/React__default['default'].createElement(antd.Input, {
9346
- style: {
9347
- marginBottom: '8px'
9348
- },
9349
9400
  disabled: disabled,
9350
9401
  placeholder: "\u7269\u6D41\u5355\u53F7",
9351
9402
  onChange: function onChange(e) {
9352
9403
  return handleInputChange(e, 'trajectoryCode');
9353
9404
  },
9354
- value: value === null || value === void 0 ? void 0 : value.trajectoryCode
9405
+ value: value === null || value === void 0 ? void 0 : value.trajectoryCode,
9406
+ onBlur: function onBlur() {
9407
+ return handleSearchSnapshot();
9408
+ }
9409
+ });
9410
+ };
9411
+ //sf手机号
9412
+ var LogisticsPhone = function LogisticsPhone() {
9413
+ return /*#__PURE__*/React__default['default'].createElement(antd.Input, {
9414
+ disabled: disabled,
9415
+ style: {
9416
+ marginTop: '8px'
9417
+ },
9418
+ placeholder: "\u624B\u673A\u53F7",
9419
+ onChange: function onChange(e) {
9420
+ return handleInputChange(e, 'trajectoryPhone');
9421
+ },
9422
+ value: value === null || value === void 0 ? void 0 : value.trajectoryPhone,
9423
+ onBlur: function onBlur() {
9424
+ return handleSearchSnapshot();
9425
+ }
9355
9426
  });
9356
9427
  };
9357
9428
  //物流快照
9358
9429
  var LogisticsSnapshot = function LogisticsSnapshot() {
9359
9430
  return /*#__PURE__*/React__default['default'].createElement(antd.Input, {
9431
+ style: {
9432
+ marginTop: '8px'
9433
+ },
9360
9434
  disabled: true,
9361
9435
  placeholder: "\u7269\u6D41\u5FEB\u7167",
9362
9436
  onChange: function onChange(e) {
@@ -9365,7 +9439,7 @@ var LogisticsTrajectory = function LogisticsTrajectory(props) {
9365
9439
  value: value === null || value === void 0 ? void 0 : value.trajectorySnapshot
9366
9440
  });
9367
9441
  };
9368
- return /*#__PURE__*/React__default['default'].createElement("div", null, LogisticsCompany(), LogisticsCode(), showField.includes('snapshot') ? /*#__PURE__*/React__default['default'].createElement(LogisticsSnapshot, null) : null);
9442
+ return /*#__PURE__*/React__default['default'].createElement("div", null, LogisticsCompany(), LogisticsCode(), (value === null || value === void 0 ? void 0 : value.trajectoryCompany) === 'SF' ? LogisticsPhone() : null, showField && showField.includes('snapshot') ? /*#__PURE__*/React__default['default'].createElement(LogisticsSnapshot, null) : null);
9369
9443
  };
9370
9444
 
9371
9445
  var jstGoods = function jstGoods(props) {
@@ -9379,7 +9453,7 @@ var jstGoods = function jstGoods(props) {
9379
9453
  _props$type = props.type,
9380
9454
  type = _props$type === void 0 ? 1 : _props$type,
9381
9455
  _props$showField = props.showField,
9382
- showField = _props$showField === void 0 ? 'all' : _props$showField;
9456
+ showField = _props$showField === void 0 ? '' : _props$showField;
9383
9457
  var _useState = React.useState(0),
9384
9458
  _useState2 = _slicedToArray(_useState, 2),
9385
9459
  changeIndex = _useState2[0],
@@ -9429,7 +9503,7 @@ var jstGoods = function jstGoods(props) {
9429
9503
  return setChangeIndex(index);
9430
9504
  }
9431
9505
  }, "\u5305\u88F9".concat(index + 1)));
9432
- }))) : null, value.length ? /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, type === 1 ? /*#__PURE__*/React__default['default'].createElement(antd.Space, null, /*#__PURE__*/React__default['default'].createElement(antd.Select, {
9506
+ }))) : null, value.length ? /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, type === 1 ? /*#__PURE__*/React__default['default'].createElement(antd.Space, null, !showField || showField === 'logisticsCompany' ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
9433
9507
  disabled: disabled,
9434
9508
  placeholder: "\u7269\u6D41\u516C\u53F8",
9435
9509
  onChange: function onChange(val) {
@@ -9444,14 +9518,14 @@ var jstGoods = function jstGoods(props) {
9444
9518
  style: {
9445
9519
  minWidth: '100px'
9446
9520
  }
9447
- }), /*#__PURE__*/React__default['default'].createElement(antd.Input, {
9521
+ }) : null, !showField || showField === 'logisticsCode' ? /*#__PURE__*/React__default['default'].createElement(antd.Input, {
9448
9522
  disabled: disabled,
9449
9523
  placeholder: "\u7269\u6D41\u5355\u53F7",
9450
9524
  onChange: function onChange(e) {
9451
9525
  return changeInputHandle(e.target.value, 'logisticsCode');
9452
9526
  },
9453
9527
  value: (_value$changeIndex2 = value[changeIndex]) === null || _value$changeIndex2 === void 0 ? void 0 : _value$changeIndex2.logisticsCode
9454
- })) : null, type === 2 ? /*#__PURE__*/React__default['default'].createElement(antd.Space, null, ['supplyId', 'all'].includes(showField) && /*#__PURE__*/React__default['default'].createElement(antd.Input, {
9528
+ }) : null) : null, type === 2 ? /*#__PURE__*/React__default['default'].createElement(antd.Space, null, ['supplyId', 'all'].includes(showField) && /*#__PURE__*/React__default['default'].createElement(antd.Input, {
9455
9529
  disabled: disabled,
9456
9530
  placeholder: "\u8BF7\u8F93\u5165\u4F9B\u9500\u5546\u7F16\u7801",
9457
9531
  onChange: function onChange(e) {
@@ -9556,44 +9630,47 @@ var ItemList = function ItemList(props) {
9556
9630
  }, "\u6682\u4E0D\u652F\u6301\u6DFB\u52A0")) : null);
9557
9631
  };
9558
9632
 
9559
- var TabPane$1 = antd.Tabs.TabPane;
9560
9633
  var columns = [{
9561
- dataIndex: 'picUrl',
9562
- title: '主图',
9563
- render: function render(val) {
9564
- return /*#__PURE__*/React__default['default'].createElement(antd.Image, {
9565
- width: 60,
9566
- src: val
9567
- });
9634
+ dataIndex: '',
9635
+ title: '序号',
9636
+ width: 100,
9637
+ render: function render(value, record, index) {
9638
+ return /*#__PURE__*/React__default['default'].createElement("span", null, index);
9568
9639
  }
9569
9640
  }, {
9570
- dataIndex: 'outerId',
9571
- title: '款式编码'
9641
+ dataIndex: 'name',
9642
+ title: '商品名称'
9572
9643
  }, {
9573
- dataIndex: 'numIid',
9574
- title: '商品编码'
9644
+ dataIndex: 'goodsId',
9645
+ title: '商品id'
9575
9646
  }, {
9576
- dataIndex: 'title',
9577
- title: '商品名称'
9647
+ dataIndex: 'name',
9648
+ title: '商品sku名称'
9578
9649
  }, {
9579
- dataIndex: 'skus',
9580
- title: '颜色及规格'
9650
+ dataIndex: 'code',
9651
+ title: '商品编码'
9652
+ }, {
9653
+ dataIndex: 'skuCode',
9654
+ title: '商品sku编码'
9581
9655
  }];
9582
9656
  var GoodsModal$1 = function GoodsModal(props, ref) {
9583
9657
  React.useImperativeHandle(ref, function () {
9584
9658
  return {
9585
9659
  open: function open() {
9586
9660
  setVisible(true);
9661
+ setPageNo(1);
9587
9662
  setSelect([]);
9588
9663
  setSelectIds([]);
9589
9664
  queryItems();
9665
+ onReset();
9590
9666
  }
9591
9667
  };
9592
9668
  });
9593
9669
  var onSubmit = props.onSubmit,
9594
9670
  shopId = props.shopId,
9595
9671
  shopList = props.shopList,
9596
- width = props.width;
9672
+ width = props.width,
9673
+ shopCode = props.shopCode;
9597
9674
  var _useState = React.useState(false),
9598
9675
  _useState2 = _slicedToArray(_useState, 2),
9599
9676
  visible = _useState2[0],
@@ -9608,13 +9685,28 @@ var GoodsModal$1 = function GoodsModal(props, ref) {
9608
9685
  setSelectIds = _useState6[1];
9609
9686
  var _useState7 = React.useState([]),
9610
9687
  _useState8 = _slicedToArray(_useState7, 2),
9611
- goodList = _useState8[0],
9612
- setGoodList = _useState8[1];
9613
- var _useState9 = React.useState(false),
9688
+ allList = _useState8[0],
9689
+ setAllList = _useState8[1]; //获取到的所有数据
9690
+ var _useState9 = React.useState([]),
9614
9691
  _useState10 = _slicedToArray(_useState9, 2),
9615
- loading = _useState10[0],
9616
- setLoading = _useState10[1];
9617
- var _useState11 = React.useState({
9692
+ filterList = _useState10[0],
9693
+ setFilterList = _useState10[1]; //获取到的筛选数据
9694
+ var _useState11 = React.useState(1),
9695
+ _useState12 = _slicedToArray(_useState11, 2),
9696
+ pageNo = _useState12[0],
9697
+ setPageNo = _useState12[1];
9698
+ var _useState13 = React.useState(20),
9699
+ _useState14 = _slicedToArray(_useState13, 1),
9700
+ pageSize = _useState14[0];
9701
+ var _useState15 = React.useState([]),
9702
+ _useState16 = _slicedToArray(_useState15, 2),
9703
+ goodList = _useState16[0],
9704
+ setGoodList = _useState16[1];
9705
+ var _useState17 = React.useState(false),
9706
+ _useState18 = _slicedToArray(_useState17, 2),
9707
+ loading = _useState18[0],
9708
+ setLoading = _useState18[1];
9709
+ var _useState19 = React.useState({
9618
9710
  apiName: 'queryItems',
9619
9711
  desc: true,
9620
9712
  numIids: '',
@@ -9626,105 +9718,100 @@ var GoodsModal$1 = function GoodsModal(props, ref) {
9626
9718
  cids: '',
9627
9719
  title: ''
9628
9720
  }),
9629
- _useState12 = _slicedToArray(_useState11, 2),
9630
- searchParams = _useState12[0],
9631
- setSearch = _useState12[1];
9632
- var _useState13 = React.useState(0),
9633
- _useState14 = _slicedToArray(_useState13, 2),
9634
- total = _useState14[0],
9635
- setTotal = _useState14[1];
9636
- var _useState15 = React.useState(''),
9637
- _useState16 = _slicedToArray(_useState15, 2),
9638
- platform = _useState16[0],
9639
- setPlatform = _useState16[1]; //平台 taobao=淘宝 fxg=抖音 pdd=拼多多 sph=微信视屏号
9640
- var _useState17 = React.useState({}),
9641
- _useState18 = _slicedToArray(_useState17, 2),
9642
- shopInfo = _useState18[0],
9643
- setShopInfo = _useState18[1]; //店铺信息
9644
- var _useState19 = React.useState([{
9645
- tab: '所选商品',
9646
- key: 'onSale'
9647
- }
9648
- // { tab: '已选商品', key: 'select' },
9649
- ]),
9650
- _useState20 = _slicedToArray(_useState19, 1),
9651
- tabs = _useState20[0];
9721
+ _useState20 = _slicedToArray(_useState19, 2),
9722
+ searchParams = _useState20[0],
9723
+ setSearch = _useState20[1];
9724
+ var _useState21 = React.useState(0),
9725
+ _useState22 = _slicedToArray(_useState21, 2),
9726
+ total = _useState22[0],
9727
+ setTotal = _useState22[1];
9728
+ var _useState23 = React.useState(''),
9729
+ _useState24 = _slicedToArray(_useState23, 2),
9730
+ platform = _useState24[0],
9731
+ setPlatform = _useState24[1]; //平台 taobao=淘宝 fxg=抖音 pdd=拼多多 sph=微信视屏号
9732
+ var _useState25 = React.useState({}),
9733
+ _useState26 = _slicedToArray(_useState25, 2),
9734
+ shopInfo = _useState26[0],
9735
+ setShopInfo = _useState26[1]; //店铺信息
9736
+ var _Form$useForm = antd.Form.useForm(),
9737
+ _Form$useForm2 = _slicedToArray(_Form$useForm, 1),
9738
+ form = _Form$useForm2[0];
9652
9739
  //选择页码
9653
- var pageChange = function pageChange(page, pageSize) {
9654
- setSearch(_objectSpread2(_objectSpread2({}, searchParams), {}, {
9655
- pageNo: page,
9656
- pageSize: pageSize
9657
- }));
9740
+ var pageChange = function pageChange(page) {
9741
+ setPageNo(page);
9742
+ setGoodList(allList.splice((page - 1) * pageSize, pageSize));
9658
9743
  };
9659
9744
  /**
9660
- *
9661
- * @returns 获取查询参数
9745
+ * 查询商品
9662
9746
  */
9663
- var queryPd = function queryPd() {
9664
- var params = {
9665
- apiName: 'queryItems',
9666
- desc: searchParams.desc,
9667
- productIds: searchParams.numIids,
9668
- orderBy: searchParams.orderBy,
9669
- pageNo: searchParams.pageNo,
9670
- pageSize: searchParams.pageSize,
9671
- shopId: shopId,
9672
- type: searchParams.type,
9673
- title: searchParams.title,
9674
- cids: searchParams.cids
9675
- };
9676
- return params;
9677
- };
9747
+ // const queryItems = useCallback(async () => {
9748
+ // try {
9749
+ // setLoading(true);
9750
+ // const params: any = {
9751
+ // ...queryPd(),
9752
+ // };
9753
+ // params.shopName = shopInfo?.shopName;
9754
+ // params.platform = platform;
9755
+ // params.status = params.type === 'onSale' ? 1 : 0;
9756
+ // delete params.type;
9757
+ // const res = await request('/qy/gdfw/product/listProduct', {
9758
+ // method: 'post',
9759
+ // data: params,
9760
+ // });
9761
+ // const {
9762
+ // result: list,
9763
+ // total,
9764
+ // nextKey,
9765
+ // } = res.data || { result: [], total: 0 };
9766
+ // const newList = list || [];
9767
+ // newList.forEach((item: any) => {
9768
+ // item.numIid = item.productId;
9769
+ // item.outerId = item.outId;
9770
+ // item.title = item.productName;
9771
+ // item.platform = platform;
9772
+ // });
9773
+ // setGoodList(newList);
9774
+ // setTotal(total);
9775
+ // } finally {
9776
+ // setLoading(false);
9777
+ // }
9778
+ // }, [searchParams]);
9678
9779
  /**
9679
9780
  * 查询商品
9680
9781
  */
9681
- var queryItems = /*#__PURE__*/function () {
9682
- var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
9683
- var params, res, _ref2, list, _total, nextKey, newList;
9684
- return _regeneratorRuntime().wrap(function _callee$(_context) {
9685
- while (1) switch (_context.prev = _context.next) {
9686
- case 0:
9687
- _context.prev = 0;
9688
- setLoading(true);
9689
- params = _objectSpread2({}, queryPd());
9690
- params.shopName = shopInfo === null || shopInfo === void 0 ? void 0 : shopInfo.shopName;
9691
- params.platform = platform;
9692
- params.status = params.type === 'onSale' ? 1 : 0;
9693
- delete params.type;
9694
- _context.next = 9;
9695
- return extendRequest('/qy/gdfw/product/listProduct', {
9696
- method: 'post',
9697
- data: params
9698
- });
9699
- case 9:
9700
- res = _context.sent;
9701
- _ref2 = res.data || {
9702
- result: [],
9703
- total: 0
9704
- }, list = _ref2.result, _total = _ref2.total, nextKey = _ref2.nextKey;
9705
- newList = list || [];
9706
- newList.forEach(function (item) {
9707
- item.numIid = item.productId;
9708
- item.outerId = item.outId;
9709
- item.title = item.productName;
9710
- item.platform = platform;
9711
- });
9712
- setGoodList(newList);
9713
- setTotal(_total);
9714
- case 15:
9715
- _context.prev = 15;
9716
- setLoading(false);
9717
- return _context.finish(15);
9718
- case 18:
9719
- case "end":
9720
- return _context.stop();
9721
- }
9722
- }, _callee, null, [[0,, 15, 18]]);
9723
- }));
9724
- return function queryItems() {
9725
- return _ref.apply(this, arguments);
9726
- };
9727
- }();
9782
+ var queryItems = React.useCallback( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
9783
+ var params, res, products;
9784
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
9785
+ while (1) switch (_context.prev = _context.next) {
9786
+ case 0:
9787
+ _context.prev = 0;
9788
+ setLoading(true);
9789
+ params = {
9790
+ shopCode: shopCode
9791
+ };
9792
+ _context.next = 5;
9793
+ return extendRequest('/qy/gdfw/product/bsListProduct', {
9794
+ method: 'post',
9795
+ data: params
9796
+ });
9797
+ case 5:
9798
+ res = _context.sent;
9799
+ products = res.data.products;
9800
+ console.log(products.length);
9801
+ setAllList(_toConsumableArray(products));
9802
+ setFilterList(_toConsumableArray(products));
9803
+ setGoodList(products.splice(0, pageSize));
9804
+ setTotal(products.length);
9805
+ case 12:
9806
+ _context.prev = 12;
9807
+ setLoading(false);
9808
+ return _context.finish(12);
9809
+ case 15:
9810
+ case "end":
9811
+ return _context.stop();
9812
+ }
9813
+ }, _callee, null, [[0,, 12, 15]]);
9814
+ })), [shopCode]);
9728
9815
  React.useEffect(function () {
9729
9816
  var shopInfo = shopList.find(function (item) {
9730
9817
  return shopId === item.shopId || shopId === item.shopName;
@@ -9748,8 +9835,26 @@ var GoodsModal$1 = function GoodsModal(props, ref) {
9748
9835
  onSubmit(selectList);
9749
9836
  _onCancel();
9750
9837
  };
9838
+ var onFinish = function onFinish(value) {
9839
+ console.log(value);
9840
+ var filterList = allList.filter(function (item) {
9841
+ return Object.keys(value).some(function (key) {
9842
+ return value[key] && item[key].indexOf(value[key]) > -1;
9843
+ });
9844
+ });
9845
+ console.log(filterList);
9846
+ setFilterList(filterList);
9847
+ setTotal(filterList.length);
9848
+ setPageNo(1);
9849
+ };
9850
+ var onReset = function onReset() {
9851
+ form.resetFields();
9852
+ setFilterList(allList);
9853
+ setTotal(allList.length);
9854
+ setPageNo(1);
9855
+ };
9751
9856
  return /*#__PURE__*/React__default['default'].createElement(antd.Modal, {
9752
- title: '选择商品编码',
9857
+ title: '选择商品',
9753
9858
  okText: '确认',
9754
9859
  cancelText: '取消',
9755
9860
  visible: visible,
@@ -9759,52 +9864,43 @@ var GoodsModal$1 = function GoodsModal(props, ref) {
9759
9864
  },
9760
9865
  onOk: onOk,
9761
9866
  wrapClassName: "goodModal"
9762
- }, /*#__PURE__*/React__default['default'].createElement(antd.Tabs, {
9763
- type: "card",
9764
- activeKey: searchParams.type,
9765
- onChange: function onChange(e) {
9766
- var params = _objectSpread2(_objectSpread2({}, searchParams), {}, {
9767
- type: e,
9768
- pageNo: 1
9769
- });
9770
- setSearch(params);
9771
- }
9772
- }, tabs.map(function (tab) {
9773
- return /*#__PURE__*/React__default['default'].createElement(TabPane$1, {
9774
- tab: tab.tab + (tab.key === 'select' ? "(".concat(selectList.length, ")") : ''),
9775
- key: tab.key
9776
- });
9777
- })), /*#__PURE__*/React__default['default'].createElement("div", {
9778
- className: "searchBox",
9779
- style: {
9780
- display: searchParams.type === 'select' ? 'none' : ''
9781
- }
9782
9867
  }, /*#__PURE__*/React__default['default'].createElement(antd.Form, {
9783
- layout: "inline"
9784
- }, /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, null, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
9785
- placeholder: "\u6B3E\u5F0F\u7F16\u7801"
9786
- })), /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, null, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
9787
- placeholder: "\u5546\u54C1\u7F16\u7801"
9788
- })), /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, null, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
9789
- placeholder: "\u5546\u54C1\u540D\u79F0"
9868
+ layout: "inline",
9869
+ form: form,
9870
+ onFinish: onFinish
9871
+ }, /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
9872
+ name: "goodsName"
9873
+ }, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
9874
+ placeholder: "\u8BF7\u8F93\u5165\u5546\u54C1\u540D\u79F0"
9875
+ })), /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
9876
+ name: "goodsCode"
9877
+ }, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
9878
+ placeholder: "\u8BF7\u8F93\u5165\u5546\u54C1\u7F16\u7801"
9879
+ })), /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, {
9880
+ name: "code"
9881
+ }, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
9882
+ placeholder: "\u8BF7\u8F93\u5165\u5546\u54C1sku\u7F16\u7801"
9790
9883
  })), /*#__PURE__*/React__default['default'].createElement(antd.Form.Item, null, /*#__PURE__*/React__default['default'].createElement(antd.Button, {
9791
9884
  type: "primary",
9792
9885
  htmlType: "submit"
9793
- }, "\u67E5\u8BE2"), /*#__PURE__*/React__default['default'].createElement(antd.Button, null, "\u91CD\u7F6E")))), /*#__PURE__*/React__default['default'].createElement(antd.Spin, {
9886
+ }, "\u67E5\u8BE2"), /*#__PURE__*/React__default['default'].createElement(antd.Button, {
9887
+ onClick: onReset
9888
+ }, "\u91CD\u7F6E"))), /*#__PURE__*/React__default['default'].createElement(antd.Spin, {
9794
9889
  spinning: loading
9795
9890
  }, /*#__PURE__*/React__default['default'].createElement(antd.Table, {
9796
9891
  rowSelection: rowSelection,
9797
9892
  columns: columns,
9798
- rowKey: 'numIid',
9799
- dataSource: searchParams.type == 'select' ? selectList : goodList,
9893
+ rowKey: 'id',
9894
+ dataSource: goodList,
9800
9895
  scroll: {
9801
9896
  y: 300
9802
9897
  },
9803
9898
  pagination: {
9804
9899
  size: 'small',
9805
9900
  total: total,
9806
- current: searchParams.pageNo,
9807
- pageSize: searchParams.pageSize,
9901
+ current: pageNo,
9902
+ pageSize: pageSize,
9903
+ pageSizeOptions: [],
9808
9904
  onChange: pageChange
9809
9905
  }
9810
9906
  })));
@@ -9823,8 +9919,8 @@ var GoodItem = function GoodItem(props) {
9823
9919
  value = _props$value === void 0 ? [] : _props$value,
9824
9920
  onChange = props.onChange,
9825
9921
  disabled = props.disabled,
9826
- _props$showField = props.showField,
9827
- showField = _props$showField === void 0 ? [] : _props$showField,
9922
+ _props$showHeader = props.showHeader,
9923
+ showHeader = _props$showHeader === void 0 ? [] : _props$showHeader,
9828
9924
  width = props.width,
9829
9925
  _props$shopList = props.shopList,
9830
9926
  shopList = _props$shopList === void 0 ? [] : _props$shopList,
@@ -9840,6 +9936,7 @@ var GoodItem = function GoodItem(props) {
9840
9936
  otherOperations = _props$otherOperation === void 0 ? null : _props$otherOperation,
9841
9937
  _props$canUpdateNumbe = props.canUpdateNumber,
9842
9938
  canUpdateNumber = _props$canUpdateNumbe === void 0 ? false : _props$canUpdateNumbe,
9939
+ shopCode = props.shopCode,
9843
9940
  onSelect = props.onSelect,
9844
9941
  onDelete = props.onDelete;
9845
9942
  var refModal = React.useRef();
@@ -9869,6 +9966,18 @@ var GoodItem = function GoodItem(props) {
9869
9966
  var GOODS_INFO_COLUMNS = function GOODS_INFO_COLUMNS() {
9870
9967
  var text = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
9871
9968
  return [{
9969
+ dataIndex: 'pic',
9970
+ title: "\u56FE\u7247",
9971
+ align: 'center',
9972
+ ellipsis: true,
9973
+ width: 100,
9974
+ render: function render(val) {
9975
+ return /*#__PURE__*/React__default['default'].createElement(antd.Image, {
9976
+ width: 60,
9977
+ src: val
9978
+ });
9979
+ }
9980
+ }, {
9872
9981
  dataIndex: 'name',
9873
9982
  title: "".concat(text, "\u540D\u79F0"),
9874
9983
  align: 'center',
@@ -9930,20 +10039,8 @@ var GoodItem = function GoodItem(props) {
9930
10039
  render: function render(val, record, index) {
9931
10040
  return /*#__PURE__*/React__default['default'].createElement("span", null, index + 1);
9932
10041
  }
9933
- }, {
9934
- dataIndex: 'pic',
9935
- title: "\u56FE\u7247",
9936
- align: 'center',
9937
- ellipsis: true,
9938
- width: 100,
9939
- render: function render(val) {
9940
- return /*#__PURE__*/React__default['default'].createElement(antd.Image, {
9941
- width: 60,
9942
- src: val
9943
- });
9944
- }
9945
10042
  }].concat(_toConsumableArray(GOODS_INFO_COLUMNS().filter(function (t) {
9946
- return showField.includes(t === null || t === void 0 ? void 0 : t.dataIndex);
10043
+ return showHeader.includes(t === null || t === void 0 ? void 0 : t.dataIndex);
9947
10044
  })));
9948
10045
  if (!disabled) {
9949
10046
  columnList.push({
@@ -9963,20 +10060,22 @@ var GoodItem = function GoodItem(props) {
9963
10060
  });
9964
10061
  }
9965
10062
  return columnList;
9966
- }, [showField, value, disabled]);
10063
+ }, [showHeader, value, disabled]);
9967
10064
  var onSubmit = function onSubmit(list) {
9968
10065
  var newList = list.map(function (item) {
9969
- var picUrl = item.picUrl,
9970
- title = item.title,
9971
- price = item.price,
9972
- numIid = item.numIid;
10066
+ var id = item.id,
10067
+ goodsName = item.goodsName,
10068
+ goodsId = item.goodsId,
10069
+ name = item.name,
10070
+ code = item.code,
10071
+ skuCode = item.skuCode;
9973
10072
  return {
9974
- id: numIid,
9975
- pic: picUrl,
9976
- name: title,
9977
- code: '',
9978
- sku: '',
9979
- money: price,
10073
+ id: goodsId,
10074
+ pic: '',
10075
+ name: goodsName,
10076
+ code: code,
10077
+ sku: skuCode,
10078
+ money: '',
9980
10079
  share: '',
9981
10080
  number: 1,
9982
10081
  type: '',
@@ -10032,13 +10131,15 @@ var GoodItem = function GoodItem(props) {
10032
10131
  width: width,
10033
10132
  shopList: shopList,
10034
10133
  shopId: shopId,
10035
- maxLength: maxLength
10134
+ maxLength: maxLength,
10135
+ shopCode: shopCode
10036
10136
  }));
10037
10137
  };
10038
10138
 
10039
10139
  var BsGoods = function BsGoods(props) {
10040
10140
  var value = props.value,
10041
- disabled = props.disabled;
10141
+ disabled = props.disabled,
10142
+ onChange = props.onChange;
10042
10143
  var _useState = React.useState(false),
10043
10144
  _useState2 = _slicedToArray(_useState, 2),
10044
10145
  tableSelect = _useState2[0],
@@ -10054,17 +10155,17 @@ var BsGoods = function BsGoods(props) {
10054
10155
  var reissueRef = React.useRef();
10055
10156
  React.useEffect(function () {
10056
10157
  ref.current = pubsub__default['default'].subscribeOnce('type', function (type, val) {
10057
- console.log('goods', type, val, value);
10158
+ var _value$bsGoods;
10058
10159
  if (disabled) return;
10059
10160
  setWithInfo({
10060
10161
  type: type,
10061
10162
  val: val
10062
10163
  });
10063
10164
  setTableSelect(['2', '4'].includes(val));
10064
- if (['1', '3'].includes(val) && (value === null || value === void 0 ? void 0 : value.length)) {
10165
+ if (['1', '3'].includes(val) && (value === null || value === void 0 ? void 0 : (_value$bsGoods = value.bsGoods) === null || _value$bsGoods === void 0 ? void 0 : _value$bsGoods.length)) {
10065
10166
  pubsub__default['default'].publish('selectList', {
10066
10167
  type: val,
10067
- list: _toConsumableArray(value).map(function (item) {
10168
+ list: ((value === null || value === void 0 ? void 0 : value.bsGoods) || []).map(function (item) {
10068
10169
  item.canDelete = false;
10069
10170
  return item;
10070
10171
  })
@@ -10073,17 +10174,17 @@ var BsGoods = function BsGoods(props) {
10073
10174
  });
10074
10175
  //补发
10075
10176
  reissueRef.current = pubsub__default['default'].subscribeOnce('reissueType', function (type, val) {
10177
+ var _value$bsGoods2;
10076
10178
  if (disabled) return;
10077
- console.log('reissueType', type, val, value);
10078
10179
  setWithInfo({
10079
10180
  type: type,
10080
10181
  val: val
10081
10182
  });
10082
10183
  setTableSelect(['2', '4'].includes(val));
10083
- if (['1', '3'].includes(val) && (value === null || value === void 0 ? void 0 : value.length)) {
10184
+ if (['1', '3'].includes(val) && (value === null || value === void 0 ? void 0 : (_value$bsGoods2 = value.bsGoods) === null || _value$bsGoods2 === void 0 ? void 0 : _value$bsGoods2.length)) {
10084
10185
  pubsub__default['default'].publish('reissueSelectList', {
10085
10186
  type: val,
10086
- list: (value || []).map(function (item) {
10187
+ list: ((value === null || value === void 0 ? void 0 : value.bsGoods) || []).map(function (item) {
10087
10188
  item.canDelete = false;
10088
10189
  return item;
10089
10190
  })
@@ -10112,16 +10213,26 @@ var BsGoods = function BsGoods(props) {
10112
10213
  pubsub__default['default'].publish('deleteGood', deleteId);
10113
10214
  pubsub__default['default'].publish('reissueDeleteGood', deleteId);
10114
10215
  };
10216
+ var changeHandle = function changeHandle(list) {
10217
+ onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, value), {}, {
10218
+ bsGoods: list
10219
+ }));
10220
+ };
10115
10221
  return /*#__PURE__*/React__default['default'].createElement(GoodItem, _objectSpread2(_objectSpread2({
10116
- key: 'bsGoods',
10117
- disabled: disabled
10222
+ key: 'bsGoods'
10118
10223
  }, props), {}, {
10224
+ disabled: disabled,
10225
+ value: value === null || value === void 0 ? void 0 : value.bsGoods,
10226
+ shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
10119
10227
  tableSelect: tableSelect,
10120
10228
  onSelect: function onSelect(list) {
10121
10229
  return _onSelect(list);
10122
10230
  },
10123
10231
  onDelete: function onDelete(item) {
10124
10232
  return _onDelete(item);
10233
+ },
10234
+ onChange: function onChange(val) {
10235
+ return changeHandle(val);
10125
10236
  }
10126
10237
  }));
10127
10238
  };
@@ -10136,16 +10247,6 @@ var BsExchange = function BsExchange(props) {
10136
10247
  disabled = props.disabled,
10137
10248
  other = _objectWithoutProperties(props, _excluded$b);
10138
10249
  React.useEffect(function () {
10139
- pubsub__default['default'].subscribeOnce('selectList', function (_, data) {
10140
- if (disabled) return;
10141
- if (value) {
10142
- var newData = lodash.cloneDeep(data);
10143
- console.log('BsExchange', 'getListHandle', data, value, getListHandle(_toConsumableArray(newData.list), value));
10144
- onChange(_objectSpread2(_objectSpread2({}, value), {}, {
10145
- bsExchangeReturnGoods: getListHandle(_toConsumableArray(newData.list), value)
10146
- }));
10147
- }
10148
- });
10149
10250
  pubsub__default['default'].subscribeOnce('deleteGood', function (_, data) {
10150
10251
  if (disabled) return;
10151
10252
  if (value) {
@@ -10168,11 +10269,10 @@ var BsExchange = function BsExchange(props) {
10168
10269
  });
10169
10270
  }, [value]);
10170
10271
  var getListHandle = function getListHandle(list, val) {
10171
- var _val$bsExchangeType;
10272
+ var _val$bsExchangeType, _val$bsExchangeType2;
10172
10273
  //如果是原单换
10173
10274
  if (['1', '3'].includes(val === null || val === void 0 ? void 0 : (_val$bsExchangeType = val.bsExchangeType) === null || _val$bsExchangeType === void 0 ? void 0 : _val$bsExchangeType[0])) {
10174
10275
  return list.reduce(function (prv, next) {
10175
- var _val$bsExchangeType2;
10176
10276
  next.canDelete = false;
10177
10277
  //数量大于1 拆开
10178
10278
  if (next.number > 1) {
@@ -10181,12 +10281,12 @@ var BsExchange = function BsExchange(props) {
10181
10281
  return t;
10182
10282
  });
10183
10283
  prv.push.apply(prv, _toConsumableArray(newList));
10184
- } else if (['2', '4'].includes(val === null || val === void 0 ? void 0 : (_val$bsExchangeType2 = val.bsExchangeType) === null || _val$bsExchangeType2 === void 0 ? void 0 : _val$bsExchangeType2[0])) {
10284
+ } else {
10185
10285
  prv.push(_objectSpread2({}, next));
10186
10286
  }
10187
10287
  return prv;
10188
10288
  }, []);
10189
- } else {
10289
+ } else if (['2', '4'].includes(val === null || val === void 0 ? void 0 : (_val$bsExchangeType2 = val.bsExchangeType) === null || _val$bsExchangeType2 === void 0 ? void 0 : _val$bsExchangeType2[0])) {
10190
10290
  //补发换货
10191
10291
  return list.reduce(function (prv, next, index) {
10192
10292
  next.canDelete = true;
@@ -10218,6 +10318,15 @@ var BsExchange = function BsExchange(props) {
10218
10318
  newValue.bsExchangeGiftGoods = [];
10219
10319
  onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
10220
10320
  pubsub__default['default'].publish('type', val[0]);
10321
+ pubsub__default['default'].subscribeOnce('selectList', function (_, data) {
10322
+ if (disabled) return;
10323
+ if (newValue) {
10324
+ var newData = lodash.cloneDeep(data);
10325
+ onChange(_objectSpread2(_objectSpread2({}, newValue), {}, {
10326
+ bsExchangeReturnGoods: getListHandle(_toConsumableArray(newData.list), newValue)
10327
+ }));
10328
+ }
10329
+ });
10221
10330
  };
10222
10331
  var changeHandle = function changeHandle(val, key) {
10223
10332
  var newValue = _objectSpread2({}, value);
@@ -10278,6 +10387,7 @@ var BsExchange = function BsExchange(props) {
10278
10387
  disabled: disabled,
10279
10388
  showChangeBtn: false,
10280
10389
  value: value === null || value === void 0 ? void 0 : value.bsExchangeReturnGoods,
10390
+ shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
10281
10391
  onChange: function onChange(val) {
10282
10392
  return changeHandle(val, 'bsExchangeReturnGoods');
10283
10393
  }
@@ -10287,6 +10397,7 @@ var BsExchange = function BsExchange(props) {
10287
10397
  }, other), {}, {
10288
10398
  disabled: disabled,
10289
10399
  showChangeBtn: showChangeBtn,
10400
+ shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
10290
10401
  value: item === null || item === void 0 ? void 0 : item.bsExchangeReturnGoods,
10291
10402
  onChange: function onChange(val) {
10292
10403
  return changeReturnHandle(val, index, 'bsExchangeReturnGoods');
@@ -10298,6 +10409,7 @@ var BsExchange = function BsExchange(props) {
10298
10409
  showChangeBtn: showChangeBtn,
10299
10410
  otherOperations: copyGoods(index),
10300
10411
  value: item === null || item === void 0 ? void 0 : item.bsExchangeSwapOutGoods,
10412
+ shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
10301
10413
  onChange: function onChange(val) {
10302
10414
  return changeReturnHandle(val, index, 'bsExchangeSwapOutGoods');
10303
10415
  }
@@ -10323,20 +10435,6 @@ var BsReissue = function BsReissue(props) {
10323
10435
  disabled = props.disabled,
10324
10436
  other = _objectWithoutProperties(props, _excluded$c);
10325
10437
  React.useEffect(function () {
10326
- pubsub__default['default'].subscribeOnce('reissueSelectList', function (_, data) {
10327
- if (disabled) return;
10328
- console.log(data, value);
10329
- if (value) {
10330
- var newData = lodash.cloneDeep(data);
10331
- onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, value), {}, {
10332
- bsReissueGoods: ((newData === null || newData === void 0 ? void 0 : newData.list) || []).map(function (item) {
10333
- item.money = 0;
10334
- item.canUpdateNumber = ['2', '4'].includes(newData === null || newData === void 0 ? void 0 : newData.type);
10335
- return item;
10336
- })
10337
- }));
10338
- }
10339
- });
10340
10438
  pubsub__default['default'].subscribeOnce('reissueDeleteGood', function (_, data) {
10341
10439
  if (disabled) return;
10342
10440
  if (value) {
@@ -10359,10 +10457,23 @@ var BsReissue = function BsReissue(props) {
10359
10457
  newValue[key] = val;
10360
10458
  if (key === 'bsReissueType') {
10361
10459
  newValue.bsReissueGoods = [];
10460
+ onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2({}, newValue));
10362
10461
  }
10363
- onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2({}, newValue));
10364
10462
  if (key === 'bsReissueType') {
10365
10463
  pubsub__default['default'].publish('reissueType', val[0]);
10464
+ pubsub__default['default'].subscribeOnce('reissueSelectList', function (_, data) {
10465
+ if (disabled) return;
10466
+ if (value) {
10467
+ var newData = lodash.cloneDeep(data);
10468
+ onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, newValue), {}, {
10469
+ bsReissueGoods: ((newData === null || newData === void 0 ? void 0 : newData.list) || []).map(function (item) {
10470
+ item.money = 0;
10471
+ item.canUpdateNumber = ['2', '4'].includes(newData === null || newData === void 0 ? void 0 : newData.type);
10472
+ return item;
10473
+ })
10474
+ }));
10475
+ }
10476
+ });
10366
10477
  }
10367
10478
  };
10368
10479
  //显示选择商品按钮 原单换不显示选择商品
@@ -10387,6 +10498,7 @@ var BsReissue = function BsReissue(props) {
10387
10498
  disabled: disabled,
10388
10499
  canUpdateNumber: showChangeBtn,
10389
10500
  showChangeBtn: showChangeBtn,
10501
+ shopCode: value === null || value === void 0 ? void 0 : value.shopCode,
10390
10502
  value: value === null || value === void 0 ? void 0 : value.bsReissueGoods,
10391
10503
  onChange: function onChange(val) {
10392
10504
  return changeHandle(val, 'bsReissueGoods');
@@ -10397,7 +10509,7 @@ var BsReissue = function BsReissue(props) {
10397
10509
  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";
10398
10510
  styleInject(css_248z$9);
10399
10511
 
10400
- var TabPane$2 = antd.Tabs.TabPane;
10512
+ var TabPane$1 = antd.Tabs.TabPane;
10401
10513
  var Option$2 = antd.Select.Option;
10402
10514
  var Search$1 = antd.Input.Search;
10403
10515
  var GoodsModal$3 = function GoodsModal(props) {
@@ -10713,7 +10825,7 @@ var GoodsModal$3 = function GoodsModal(props) {
10713
10825
  }));
10714
10826
  }
10715
10827
  }, tabs.map(function (tab) {
10716
- return /*#__PURE__*/React__default['default'].createElement(TabPane$2, {
10828
+ return /*#__PURE__*/React__default['default'].createElement(TabPane$1, {
10717
10829
  tab: tab.tab + (tab.key === 'all' ? "(".concat(selectList.length, ")") : ''),
10718
10830
  key: tab.key
10719
10831
  });