@kmkf-fe-packages/basic-components 2.0.12-beta.33 → 2.0.12-beta.36

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
@@ -1,5 +1,5 @@
1
1
  import React, { useRef, useState, useEffect, forwardRef, useImperativeHandle, useMemo, useCallback } from 'react';
2
- import { Cascader, DatePicker, InputNumber, Input, Select, Upload, Image, message, Radio, Space, Spin, Modal, Button, Checkbox, Row, Col, Slider, Rate, Form, Popover, Table, Tabs, ConfigProvider, Pagination } from 'antd';
2
+ import { Cascader, DatePicker, InputNumber, Input, Select, Upload, Image, message, Radio, Space, Spin, Modal, Button, Checkbox, Row, Col, Slider, Rate, Form, Popover, Table, Tabs, ConfigProvider, Pagination, Typography } from 'antd';
3
3
  import { EyeOutlined, DeleteOutlined, CloseCircleOutlined, CaretUpOutlined } from '@ant-design/icons';
4
4
  import request, { extend as extend$1 } from 'umi-request';
5
5
  import { CopyToClipboard } from 'react-copy-to-clipboard';
@@ -10235,6 +10235,7 @@ var Item = Form.Item;
10235
10235
  var LogisticsInterception = function LogisticsInterception(props) {
10236
10236
  var _value$interceptLogis2, _value$interceptLogis3, _value$interceptLogis4;
10237
10237
  var LogisticsAddress = LogisticsAddressData.getInstance();
10238
+ var LogisticsAddressOptions = (LogisticsAddress === null || LogisticsAddress === void 0 ? void 0 : LogisticsAddress.getAddressData()) || [];
10238
10239
  var address = AddressData.getInstance();
10239
10240
  var _props$value = props.value,
10240
10241
  value = _props$value === void 0 ? {} : _props$value,
@@ -10246,7 +10247,10 @@ var LogisticsInterception = function LogisticsInterception(props) {
10246
10247
  _props$disabled = props.disabled,
10247
10248
  disabled = _props$disabled === void 0 ? false : _props$disabled,
10248
10249
  _props$isEditing = props.isEditing,
10249
- isEditing = _props$isEditing === void 0 ? false : _props$isEditing;
10250
+ isEditing = _props$isEditing === void 0 ? false : _props$isEditing,
10251
+ _props$platform = props.platform,
10252
+ platform = _props$platform === void 0 ? '' : _props$platform,
10253
+ onJumpPage = props.onJumpPage;
10250
10254
  var _useState = useState(''),
10251
10255
  _useState2 = _slicedToArray(_useState, 2),
10252
10256
  initCompany = _useState2[0],
@@ -10334,6 +10338,14 @@ var LogisticsInterception = function LogisticsInterception(props) {
10334
10338
  return item.value === (value === null || value === void 0 ? void 0 : value.interceptType);
10335
10339
  })) === null || _find3 === void 0 ? void 0 : (_find3$config = _find3.config) === null || _find3$config === void 0 ? void 0 : _find3$config.showSenderMobile;
10336
10340
  }, [value === null || value === void 0 ? void 0 : value.interceptType, typeOptions, value === null || value === void 0 ? void 0 : value.interceptCompany]);
10341
+ var showKcode = useMemo(function () {
10342
+ var isShow = false;
10343
+ if (value === null || value === void 0 ? void 0 : value.interceptCompany) {
10344
+ var _value$interceptCompa, _value$interceptCompa2;
10345
+ isShow = (value === null || value === void 0 ? void 0 : (_value$interceptCompa = value.interceptCompany) === null || _value$interceptCompa === void 0 ? void 0 : _value$interceptCompa.indexOf('YT')) > -1 || (value === null || value === void 0 ? void 0 : (_value$interceptCompa2 = value.interceptCompany) === null || _value$interceptCompa2 === void 0 ? void 0 : _value$interceptCompa2.indexOf('CP468398')) > -1;
10346
+ }
10347
+ return isShow;
10348
+ }, [value === null || value === void 0 ? void 0 : value.interceptCompany]);
10337
10349
  //判断是否能修改物流信息
10338
10350
  var isEdit = useMemo(function () {
10339
10351
  var company = expressInterceptData.find(function (item) {
@@ -10343,10 +10355,21 @@ var LogisticsInterception = function LogisticsInterception(props) {
10343
10355
  }, [isEditing, initCompany]);
10344
10356
  //退回地址列表
10345
10357
  var logisticsAddressOptions = useMemo(function () {
10346
- return ((LogisticsAddress === null || LogisticsAddress === void 0 ? void 0 : LogisticsAddress.getAddressData()) || []).filter(function (item) {
10358
+ return LogisticsAddressOptions === null || LogisticsAddressOptions === void 0 ? void 0 : LogisticsAddressOptions.filter(function (item) {
10347
10359
  return item.cpCode === (value === null || value === void 0 ? void 0 : value.interceptCompany);
10348
10360
  });
10349
10361
  }, [value === null || value === void 0 ? void 0 : value.interceptCompany]);
10362
+ // K码列表
10363
+ var kCodeList = useMemo(function () {
10364
+ return LogisticsAddressOptions === null || LogisticsAddressOptions === void 0 ? void 0 : LogisticsAddressOptions.filter(function (item) {
10365
+ return item.cpCode === (value === null || value === void 0 ? void 0 : value.interceptCompany) && item.userKCode;
10366
+ }).map(function (item) {
10367
+ return _objectSpread2(_objectSpread2({}, item), {}, {
10368
+ value: item === null || item === void 0 ? void 0 : item.userKCode,
10369
+ label: item === null || item === void 0 ? void 0 : item.userKCode
10370
+ });
10371
+ });
10372
+ }, [value === null || value === void 0 ? void 0 : value.interceptCompany]);
10350
10373
  var returnValue = useMemo(function () {
10351
10374
  var _value$interceptAddre, _value$interceptAddre2, _value$interceptAddre3;
10352
10375
  var uk = LogisticsAddress === null || LogisticsAddress === void 0 ? void 0 : LogisticsAddress.getUkByInfo({
@@ -10364,6 +10387,7 @@ var LogisticsInterception = function LogisticsInterception(props) {
10364
10387
  var changeHandle = function changeHandle(val, type) {
10365
10388
  var newValue = _objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, type, val));
10366
10389
  if (type === 'interceptCompany') {
10390
+ var _matchKCodeList$;
10367
10391
  var interceptCompany = expressInterceptData.find(function (item) {
10368
10392
  return item.value === val;
10369
10393
  });
@@ -10371,6 +10395,27 @@ var LogisticsInterception = function LogisticsInterception(props) {
10371
10395
  var _item$config4;
10372
10396
  return item === null || item === void 0 ? void 0 : (_item$config4 = item.config) === null || _item$config4 === void 0 ? void 0 : _item$config4.isDefault;
10373
10397
  });
10398
+ // const demoList = [
10399
+ // {
10400
+ // city: 330100,
10401
+ // cpCode: 'YTO',
10402
+ // detail: '光云大厦',
10403
+ // district: 330108,
10404
+ // mobile: '18858820420',
10405
+ // province: 330000,
10406
+ // sendGoodName: '测试编码仓',
10407
+ // senderMobile: '',
10408
+ // senderMobilePhoneList: [],
10409
+ // uk: '8Y2FjwQHdw',
10410
+ // update: 1735887721299,
10411
+ // userName: '南月 光云大厦',
10412
+ // userKCode: 'K12345678',
10413
+ // userSecretKey: '12345678',
10414
+ // },
10415
+ // ];
10416
+ var matchKCodeList = LogisticsAddressOptions === null || LogisticsAddressOptions === void 0 ? void 0 : LogisticsAddressOptions.filter(function (item) {
10417
+ return item.cpCode === val && item.userKCode;
10418
+ });
10374
10419
  newValue = _objectSpread2(_objectSpread2({}, value), {}, {
10375
10420
  interceptCompany: val,
10376
10421
  interceptType: _returnValue === null || _returnValue === void 0 ? void 0 : _returnValue.value,
@@ -10386,7 +10431,9 @@ var LogisticsInterception = function LogisticsInterception(props) {
10386
10431
  interceptLogisticsApiStatus: {
10387
10432
  status: '',
10388
10433
  reason: ''
10389
- }
10434
+ },
10435
+ interceptLogisticsUserKCode: (matchKCodeList === null || matchKCodeList === void 0 ? void 0 : matchKCodeList.length) === 1 ? matchKCodeList[0].userKCode : undefined,
10436
+ interceptLogisticsUserSecretKey: (matchKCodeList === null || matchKCodeList === void 0 ? void 0 : matchKCodeList.length) === 1 ? (_matchKCodeList$ = matchKCodeList[0]) === null || _matchKCodeList$ === void 0 ? void 0 : _matchKCodeList$.userSecretKey : undefined
10390
10437
  });
10391
10438
  }
10392
10439
  if (type === 'interceptLogisticsApiStatus') {
@@ -10398,6 +10445,17 @@ var LogisticsInterception = function LogisticsInterception(props) {
10398
10445
  }
10399
10446
  });
10400
10447
  }
10448
+ if (type === 'interceptLogisticsUserKCode') {
10449
+ var kCodeItem = kCodeList === null || kCodeList === void 0 ? void 0 : kCodeList.find(function (item) {
10450
+ return item.value === val;
10451
+ });
10452
+ if (kCodeItem) {
10453
+ newValue = _objectSpread2(_objectSpread2({}, value), {}, {
10454
+ interceptLogisticsUserSecretKey: kCodeItem === null || kCodeItem === void 0 ? void 0 : kCodeItem.userSecretKey
10455
+ });
10456
+ }
10457
+ }
10458
+ console.log('newValue', newValue);
10401
10459
  onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
10402
10460
  };
10403
10461
  //智能识别回调
@@ -10450,6 +10508,47 @@ var LogisticsInterception = function LogisticsInterception(props) {
10450
10508
  return changeHandle(e.target.value, 'interceptCode');
10451
10509
  },
10452
10510
  value: value === null || value === void 0 ? void 0 : value.interceptCode
10511
+ }))), /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Item, {
10512
+ label: /*#__PURE__*/React.createElement("span", null, "\u5BA2\u6237\u7F16\u7801\uFF08K\u7801\uFF09\uFF1A", platform === 'pc' ? /*#__PURE__*/React.createElement(Typography.Link, {
10513
+ style: {
10514
+ cursor: 'pointer'
10515
+ },
10516
+ onClick: function onClick() {
10517
+ return onJumpPage && (onJumpPage === null || onJumpPage === void 0 ? void 0 : onJumpPage({
10518
+ type: 'interceptConfig'
10519
+ }));
10520
+ }
10521
+ }, 'k码配置>>') : null),
10522
+ required: true,
10523
+ key: 'interceptLogisticsUserKCode',
10524
+ hidden: !showKcode
10525
+ }, /*#__PURE__*/React.createElement(Select, {
10526
+ disabled: disabled || isEdit,
10527
+ placeholder: "\u9009\u62E9K\u7801",
10528
+ showSearch: true,
10529
+ style: {
10530
+ width: '200px'
10531
+ },
10532
+ onChange: function onChange(val) {
10533
+ return changeHandle(val, 'interceptLogisticsUserKCode');
10534
+ },
10535
+ options: kCodeList,
10536
+ value: value === null || value === void 0 ? void 0 : value.interceptLogisticsUserKCode,
10537
+ filterOption: function filterOption(input, option) {
10538
+ return option.label.includes(input);
10539
+ }
10540
+ })), /*#__PURE__*/React.createElement(Item, {
10541
+ key: 'interceptLogisticsUserSecretKey',
10542
+ hidden: !showKcode,
10543
+ noStyle: true
10544
+ }, /*#__PURE__*/React.createElement(Input, {
10545
+ style: {
10546
+ width: '200px',
10547
+ marginTop: '6px'
10548
+ },
10549
+ placeholder: "\u5BA2\u6237\u5BC6\u94A5",
10550
+ disabled: true,
10551
+ value: value === null || value === void 0 ? void 0 : value.interceptLogisticsUserSecretKey
10453
10552
  }))), /*#__PURE__*/React.createElement(Item, {
10454
10553
  label: '拦截类型',
10455
10554
  required: required,
@@ -10594,11 +10693,13 @@ var LogisticsMoreInterception = function LogisticsMoreInterception(props) {
10594
10693
  value = _props$value === void 0 ? [] : _props$value,
10595
10694
  disabled = props.disabled,
10596
10695
  onChange = props.onChange,
10597
- isEditing = props.isEditing;
10696
+ isEditing = props.isEditing,
10697
+ effects = props.effects;
10598
10698
  var _useState = useState(0),
10599
10699
  _useState2 = _slicedToArray(_useState, 2),
10600
10700
  changeIndex = _useState2[0],
10601
10701
  setChangeIndex = _useState2[1];
10702
+ console.log('effects', effects);
10602
10703
  var handleChange = function handleChange(val, index) {
10603
10704
  var newValue = cloneDeep(value);
10604
10705
  newValue.splice(index, 1, val);
@@ -10636,6 +10737,8 @@ var LogisticsMoreInterception = function LogisticsMoreInterception(props) {
10636
10737
  value: item,
10637
10738
  disabled: disabled,
10638
10739
  isEditing: false,
10740
+ platform: effects === null || effects === void 0 ? void 0 : effects.env,
10741
+ onJumpPage: effects === null || effects === void 0 ? void 0 : effects.onJumpPage,
10639
10742
  onChange: function onChange(val) {
10640
10743
  return handleChange(val, index);
10641
10744
  }
@@ -19611,7 +19714,7 @@ var GyReturnGoods = function GyReturnGoods(props) {
19611
19714
  onModeChange: handleModeChange,
19612
19715
  showModeBtn: showModeBtn,
19613
19716
  isStrict: isStrict,
19614
- hiddenSelectNotTradeGoodsBtn: true,
19717
+ showErpGoodsBtn: false,
19615
19718
  tradeGoods: {
19616
19719
  originDataSource: getGoodDetails({
19617
19720
  mode: isStrict
package/dist/index.js CHANGED
@@ -10247,6 +10247,7 @@ var Item = antd.Form.Item;
10247
10247
  var LogisticsInterception = function LogisticsInterception(props) {
10248
10248
  var _value$interceptLogis2, _value$interceptLogis3, _value$interceptLogis4;
10249
10249
  var LogisticsAddress = kmkfUtils.LogisticsAddressData.getInstance();
10250
+ var LogisticsAddressOptions = (LogisticsAddress === null || LogisticsAddress === void 0 ? void 0 : LogisticsAddress.getAddressData()) || [];
10250
10251
  var address = kmkfUtils.AddressData.getInstance();
10251
10252
  var _props$value = props.value,
10252
10253
  value = _props$value === void 0 ? {} : _props$value,
@@ -10258,7 +10259,10 @@ var LogisticsInterception = function LogisticsInterception(props) {
10258
10259
  _props$disabled = props.disabled,
10259
10260
  disabled = _props$disabled === void 0 ? false : _props$disabled,
10260
10261
  _props$isEditing = props.isEditing,
10261
- isEditing = _props$isEditing === void 0 ? false : _props$isEditing;
10262
+ isEditing = _props$isEditing === void 0 ? false : _props$isEditing,
10263
+ _props$platform = props.platform,
10264
+ platform = _props$platform === void 0 ? '' : _props$platform,
10265
+ onJumpPage = props.onJumpPage;
10262
10266
  var _useState = React.useState(''),
10263
10267
  _useState2 = _slicedToArray(_useState, 2),
10264
10268
  initCompany = _useState2[0],
@@ -10346,6 +10350,14 @@ var LogisticsInterception = function LogisticsInterception(props) {
10346
10350
  return item.value === (value === null || value === void 0 ? void 0 : value.interceptType);
10347
10351
  })) === null || _find3 === void 0 ? void 0 : (_find3$config = _find3.config) === null || _find3$config === void 0 ? void 0 : _find3$config.showSenderMobile;
10348
10352
  }, [value === null || value === void 0 ? void 0 : value.interceptType, typeOptions, value === null || value === void 0 ? void 0 : value.interceptCompany]);
10353
+ var showKcode = React.useMemo(function () {
10354
+ var isShow = false;
10355
+ if (value === null || value === void 0 ? void 0 : value.interceptCompany) {
10356
+ var _value$interceptCompa, _value$interceptCompa2;
10357
+ isShow = (value === null || value === void 0 ? void 0 : (_value$interceptCompa = value.interceptCompany) === null || _value$interceptCompa === void 0 ? void 0 : _value$interceptCompa.indexOf('YT')) > -1 || (value === null || value === void 0 ? void 0 : (_value$interceptCompa2 = value.interceptCompany) === null || _value$interceptCompa2 === void 0 ? void 0 : _value$interceptCompa2.indexOf('CP468398')) > -1;
10358
+ }
10359
+ return isShow;
10360
+ }, [value === null || value === void 0 ? void 0 : value.interceptCompany]);
10349
10361
  //判断是否能修改物流信息
10350
10362
  var isEdit = React.useMemo(function () {
10351
10363
  var company = expressInterceptData.find(function (item) {
@@ -10355,10 +10367,21 @@ var LogisticsInterception = function LogisticsInterception(props) {
10355
10367
  }, [isEditing, initCompany]);
10356
10368
  //退回地址列表
10357
10369
  var logisticsAddressOptions = React.useMemo(function () {
10358
- return ((LogisticsAddress === null || LogisticsAddress === void 0 ? void 0 : LogisticsAddress.getAddressData()) || []).filter(function (item) {
10370
+ return LogisticsAddressOptions === null || LogisticsAddressOptions === void 0 ? void 0 : LogisticsAddressOptions.filter(function (item) {
10359
10371
  return item.cpCode === (value === null || value === void 0 ? void 0 : value.interceptCompany);
10360
10372
  });
10361
10373
  }, [value === null || value === void 0 ? void 0 : value.interceptCompany]);
10374
+ // K码列表
10375
+ var kCodeList = React.useMemo(function () {
10376
+ return LogisticsAddressOptions === null || LogisticsAddressOptions === void 0 ? void 0 : LogisticsAddressOptions.filter(function (item) {
10377
+ return item.cpCode === (value === null || value === void 0 ? void 0 : value.interceptCompany) && item.userKCode;
10378
+ }).map(function (item) {
10379
+ return _objectSpread2(_objectSpread2({}, item), {}, {
10380
+ value: item === null || item === void 0 ? void 0 : item.userKCode,
10381
+ label: item === null || item === void 0 ? void 0 : item.userKCode
10382
+ });
10383
+ });
10384
+ }, [value === null || value === void 0 ? void 0 : value.interceptCompany]);
10362
10385
  var returnValue = React.useMemo(function () {
10363
10386
  var _value$interceptAddre, _value$interceptAddre2, _value$interceptAddre3;
10364
10387
  var uk = LogisticsAddress === null || LogisticsAddress === void 0 ? void 0 : LogisticsAddress.getUkByInfo({
@@ -10376,6 +10399,7 @@ var LogisticsInterception = function LogisticsInterception(props) {
10376
10399
  var changeHandle = function changeHandle(val, type) {
10377
10400
  var newValue = _objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, type, val));
10378
10401
  if (type === 'interceptCompany') {
10402
+ var _matchKCodeList$;
10379
10403
  var interceptCompany = expressInterceptData.find(function (item) {
10380
10404
  return item.value === val;
10381
10405
  });
@@ -10383,6 +10407,27 @@ var LogisticsInterception = function LogisticsInterception(props) {
10383
10407
  var _item$config4;
10384
10408
  return item === null || item === void 0 ? void 0 : (_item$config4 = item.config) === null || _item$config4 === void 0 ? void 0 : _item$config4.isDefault;
10385
10409
  });
10410
+ // const demoList = [
10411
+ // {
10412
+ // city: 330100,
10413
+ // cpCode: 'YTO',
10414
+ // detail: '光云大厦',
10415
+ // district: 330108,
10416
+ // mobile: '18858820420',
10417
+ // province: 330000,
10418
+ // sendGoodName: '测试编码仓',
10419
+ // senderMobile: '',
10420
+ // senderMobilePhoneList: [],
10421
+ // uk: '8Y2FjwQHdw',
10422
+ // update: 1735887721299,
10423
+ // userName: '南月 光云大厦',
10424
+ // userKCode: 'K12345678',
10425
+ // userSecretKey: '12345678',
10426
+ // },
10427
+ // ];
10428
+ var matchKCodeList = LogisticsAddressOptions === null || LogisticsAddressOptions === void 0 ? void 0 : LogisticsAddressOptions.filter(function (item) {
10429
+ return item.cpCode === val && item.userKCode;
10430
+ });
10386
10431
  newValue = _objectSpread2(_objectSpread2({}, value), {}, {
10387
10432
  interceptCompany: val,
10388
10433
  interceptType: _returnValue === null || _returnValue === void 0 ? void 0 : _returnValue.value,
@@ -10398,7 +10443,9 @@ var LogisticsInterception = function LogisticsInterception(props) {
10398
10443
  interceptLogisticsApiStatus: {
10399
10444
  status: '',
10400
10445
  reason: ''
10401
- }
10446
+ },
10447
+ interceptLogisticsUserKCode: (matchKCodeList === null || matchKCodeList === void 0 ? void 0 : matchKCodeList.length) === 1 ? matchKCodeList[0].userKCode : undefined,
10448
+ interceptLogisticsUserSecretKey: (matchKCodeList === null || matchKCodeList === void 0 ? void 0 : matchKCodeList.length) === 1 ? (_matchKCodeList$ = matchKCodeList[0]) === null || _matchKCodeList$ === void 0 ? void 0 : _matchKCodeList$.userSecretKey : undefined
10402
10449
  });
10403
10450
  }
10404
10451
  if (type === 'interceptLogisticsApiStatus') {
@@ -10410,6 +10457,17 @@ var LogisticsInterception = function LogisticsInterception(props) {
10410
10457
  }
10411
10458
  });
10412
10459
  }
10460
+ if (type === 'interceptLogisticsUserKCode') {
10461
+ var kCodeItem = kCodeList === null || kCodeList === void 0 ? void 0 : kCodeList.find(function (item) {
10462
+ return item.value === val;
10463
+ });
10464
+ if (kCodeItem) {
10465
+ newValue = _objectSpread2(_objectSpread2({}, value), {}, {
10466
+ interceptLogisticsUserSecretKey: kCodeItem === null || kCodeItem === void 0 ? void 0 : kCodeItem.userSecretKey
10467
+ });
10468
+ }
10469
+ }
10470
+ console.log('newValue', newValue);
10413
10471
  onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
10414
10472
  };
10415
10473
  //智能识别回调
@@ -10462,6 +10520,47 @@ var LogisticsInterception = function LogisticsInterception(props) {
10462
10520
  return changeHandle(e.target.value, 'interceptCode');
10463
10521
  },
10464
10522
  value: value === null || value === void 0 ? void 0 : value.interceptCode
10523
+ }))), /*#__PURE__*/React__default['default'].createElement(antd.Space, null, /*#__PURE__*/React__default['default'].createElement(Item, {
10524
+ label: /*#__PURE__*/React__default['default'].createElement("span", null, "\u5BA2\u6237\u7F16\u7801\uFF08K\u7801\uFF09\uFF1A", platform === 'pc' ? /*#__PURE__*/React__default['default'].createElement(antd.Typography.Link, {
10525
+ style: {
10526
+ cursor: 'pointer'
10527
+ },
10528
+ onClick: function onClick() {
10529
+ return onJumpPage && (onJumpPage === null || onJumpPage === void 0 ? void 0 : onJumpPage({
10530
+ type: 'interceptConfig'
10531
+ }));
10532
+ }
10533
+ }, 'k码配置>>') : null),
10534
+ required: true,
10535
+ key: 'interceptLogisticsUserKCode',
10536
+ hidden: !showKcode
10537
+ }, /*#__PURE__*/React__default['default'].createElement(antd.Select, {
10538
+ disabled: disabled || isEdit,
10539
+ placeholder: "\u9009\u62E9K\u7801",
10540
+ showSearch: true,
10541
+ style: {
10542
+ width: '200px'
10543
+ },
10544
+ onChange: function onChange(val) {
10545
+ return changeHandle(val, 'interceptLogisticsUserKCode');
10546
+ },
10547
+ options: kCodeList,
10548
+ value: value === null || value === void 0 ? void 0 : value.interceptLogisticsUserKCode,
10549
+ filterOption: function filterOption(input, option) {
10550
+ return option.label.includes(input);
10551
+ }
10552
+ })), /*#__PURE__*/React__default['default'].createElement(Item, {
10553
+ key: 'interceptLogisticsUserSecretKey',
10554
+ hidden: !showKcode,
10555
+ noStyle: true
10556
+ }, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
10557
+ style: {
10558
+ width: '200px',
10559
+ marginTop: '6px'
10560
+ },
10561
+ placeholder: "\u5BA2\u6237\u5BC6\u94A5",
10562
+ disabled: true,
10563
+ value: value === null || value === void 0 ? void 0 : value.interceptLogisticsUserSecretKey
10465
10564
  }))), /*#__PURE__*/React__default['default'].createElement(Item, {
10466
10565
  label: '拦截类型',
10467
10566
  required: required,
@@ -10606,11 +10705,13 @@ var LogisticsMoreInterception = function LogisticsMoreInterception(props) {
10606
10705
  value = _props$value === void 0 ? [] : _props$value,
10607
10706
  disabled = props.disabled,
10608
10707
  onChange = props.onChange,
10609
- isEditing = props.isEditing;
10708
+ isEditing = props.isEditing,
10709
+ effects = props.effects;
10610
10710
  var _useState = React.useState(0),
10611
10711
  _useState2 = _slicedToArray(_useState, 2),
10612
10712
  changeIndex = _useState2[0],
10613
10713
  setChangeIndex = _useState2[1];
10714
+ console.log('effects', effects);
10614
10715
  var handleChange = function handleChange(val, index) {
10615
10716
  var newValue = lodash.cloneDeep(value);
10616
10717
  newValue.splice(index, 1, val);
@@ -10648,6 +10749,8 @@ var LogisticsMoreInterception = function LogisticsMoreInterception(props) {
10648
10749
  value: item,
10649
10750
  disabled: disabled,
10650
10751
  isEditing: false,
10752
+ platform: effects === null || effects === void 0 ? void 0 : effects.env,
10753
+ onJumpPage: effects === null || effects === void 0 ? void 0 : effects.onJumpPage,
10651
10754
  onChange: function onChange(val) {
10652
10755
  return handleChange(val, index);
10653
10756
  }
@@ -19623,7 +19726,7 @@ var GyReturnGoods = function GyReturnGoods(props) {
19623
19726
  onModeChange: handleModeChange,
19624
19727
  showModeBtn: showModeBtn,
19625
19728
  isStrict: isStrict,
19626
- hiddenSelectNotTradeGoodsBtn: true,
19729
+ showErpGoodsBtn: false,
19627
19730
  tradeGoods: {
19628
19731
  originDataSource: getGoodDetails({
19629
19732
  mode: isStrict
@@ -25,7 +25,6 @@ interface BsGoodsProps {
25
25
  canUpdateNumber: boolean;
26
26
  shopCode: string;
27
27
  companyKey: string;
28
- hiddenSelectNotTradeGoodsBtn: boolean;
29
28
  onChange: (val: any[]) => void;
30
29
  onSelect: (val: any[]) => void;
31
30
  onDelete: (val: any[]) => void;
@@ -16,6 +16,8 @@ interface LogisticsInterceptionValueType {
16
16
  status: string;
17
17
  reason: string;
18
18
  };
19
+ interceptLogisticsUserKCode: string;
20
+ interceptLogisticsUserSecretKey: string;
19
21
  }
20
22
  interface LogisticsInterceptionProps {
21
23
  value: Partial<LogisticsInterceptionValueType>;
@@ -24,6 +26,8 @@ interface LogisticsInterceptionProps {
24
26
  disabled: boolean;
25
27
  isEditing: boolean;
26
28
  onChange: (value: Partial<LogisticsInterceptionValueType>) => void;
29
+ platform: string;
30
+ onJumpPage?: (val: any) => void;
27
31
  }
28
32
  declare const LogisticsInterception: (props: Partial<LogisticsInterceptionProps>) => React.JSX.Element;
29
33
  export default LogisticsInterception;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/basic-components",
3
- "version": "2.0.12-beta.33",
3
+ "version": "2.0.12-beta.36",
4
4
  "description": "> TODO: description",
5
5
  "homepage": "",
6
6
  "license": "ISC",
@@ -20,7 +20,7 @@
20
20
  "watch": "nodemon --ignore dist/ --ignore node_modules/ --watch src/ -C -e ts,tsx,less --debug -x 'yarn async'"
21
21
  },
22
22
  "dependencies": {
23
- "@kmkf-fe-packages/kmkf-utils": "2.0.12-beta.33",
23
+ "@kmkf-fe-packages/kmkf-utils": "2.0.12-beta.36",
24
24
  "ahooks": "^3.7.4",
25
25
  "bignumber.js": "^9.1.2",
26
26
  "kmkf-monitor": "^0.8.9",
@@ -65,5 +65,5 @@
65
65
  "publishConfig": {
66
66
  "access": "public"
67
67
  },
68
- "gitHead": "598ceaf80d688a1272bae0e641a8d09c52fbc04a"
68
+ "gitHead": "693fea0fe00c21e6db07c6148c393244d38603b9"
69
69
  }