@kmkf-fe-packages/basic-components 0.26.1-beta.9 → 0.26.2-alpha.1

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/README.md CHANGED
@@ -17,4 +17,5 @@ yarn start
17
17
  - business 快麦工单业务组件
18
18
  - common 公共组件
19
19
  - config 公共方法
20
- - assets 静态资源
20
+ - assets 静态资源
21
+
package/dist/index.esm.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import React, { useRef, useState, useEffect, forwardRef, useImperativeHandle, useMemo } from 'react';
2
2
  import { Cascader, DatePicker, InputNumber, Input, Select, Upload, Image, message, Radio, Space, Spin, Modal, Button, Checkbox, Row, Col, Slider, Rate, Form, Tabs, ConfigProvider, Pagination, Popover, Table } from 'antd';
3
- import { EyeOutlined, DeleteOutlined, CloseCircleOutlined, CaretUpOutlined } from '@ant-design/icons';
3
+ import { EyeOutlined, DeleteOutlined, 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';
6
- import { AddressData, BsAddressData, WdtAddressData, toTree, request as request$1, ExpressData, uuid, LogisticsAddressData, WDT_ORDER_TYPE_MAP } from '@kmkf-fe-packages/kmkf-utils';
6
+ import { AddressData, BsAddressData, WdtAddressData, request as request$1, ExpressData, uuid, LogisticsAddressData, WDT_ORDER_TYPE_MAP } from '@kmkf-fe-packages/kmkf-utils';
7
7
  import zhCN from 'antd/lib/locale/zh_CN';
8
8
  import { cloneDeep, difference, differenceWith } from 'lodash';
9
9
  import { useDebounceEffect } from 'ahooks';
@@ -7377,74 +7377,17 @@ function ApaasRate(props) {
7377
7377
  }));
7378
7378
  }
7379
7379
 
7380
- var addressData = AddressData.getInstance();
7381
- var bsAddressData = BsAddressData.getInstance();
7382
- var wdtAddressData = WdtAddressData.getInstance();
7383
7380
  var Province = function Province(props) {
7381
+ var _mapping$type;
7384
7382
  var _props$type = props.type,
7385
- type = _props$type === void 0 ? 'workOrder' : _props$type,
7386
- value = props.value;
7387
- var _useState = useState([]),
7388
- _useState2 = _slicedToArray(_useState, 2),
7389
- option = _useState2[0],
7390
- setOptions = _useState2[1];
7391
- var num = 0;
7392
- var isFirst = useRef(false);
7393
- var time = useRef();
7394
- var initPageSource = /*#__PURE__*/function () {
7395
- var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
7396
- var options;
7397
- return _regeneratorRuntime().wrap(function _callee$(_context) {
7398
- while (1) switch (_context.prev = _context.next) {
7399
- case 0:
7400
- num++;
7401
- options = ({
7402
- bs: bsAddressData,
7403
- wdt: wdtAddressData,
7404
- workOrder: addressData
7405
- }[type] || addressData).addressOptions || [];
7406
- if (!(options === null || options === void 0 ? void 0 : options.length) && num < 6) {
7407
- time.current = setTimeout(function () {
7408
- initPageSource();
7409
- }, 1000);
7410
- }
7411
- if (options.length) {
7412
- setOptions(options);
7413
- }
7414
- case 4:
7415
- case "end":
7416
- return _context.stop();
7417
- }
7418
- }, _callee);
7419
- }));
7420
- return function initPageSource() {
7421
- return _ref.apply(this, arguments);
7422
- };
7423
- }();
7424
- var getBsAddress = function getBsAddress() {
7425
- var data = JSON.parse(localStorage.getItem('bsAddressData') || '[]');
7426
- if (data.length) {
7427
- var options = toTree(data, 1);
7428
- setOptions(options);
7429
- }
7383
+ type = _props$type === void 0 ? 'workOrder' : _props$type;
7384
+ var mapping = {
7385
+ workOrder: AddressData.getInstance(),
7386
+ bs: BsAddressData.getInstance(),
7387
+ wdt: WdtAddressData.getInstance()
7430
7388
  };
7431
- //如果值改变地址不存在则再获取一遍
7432
- useEffect(function () {
7433
- if (value && type == 'bs' && !option.length) {
7434
- getBsAddress();
7435
- }
7436
- }, [value, type, option]);
7437
- useEffect(function () {
7438
- if (!isFirst.current) {
7439
- initPageSource();
7440
- isFirst.current = true;
7441
- }
7442
- return function () {
7443
- clearTimeout(time.current);
7444
- };
7445
- }, []);
7446
7389
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Cascader, _objectSpread2(_objectSpread2({}, props), {}, {
7447
- options: option,
7390
+ options: ((_mapping$type = mapping[type]) === null || _mapping$type === void 0 ? void 0 : _mapping$type.addressOptions) || [],
7448
7391
  style: {
7449
7392
  minWidth: '100px'
7450
7393
  },
@@ -7621,7 +7564,6 @@ function ApaasPosting(props) {
7621
7564
  }
7622
7565
 
7623
7566
  var _excluded$a = ["value", "onChange"];
7624
- var express = ExpressData.getInstance();
7625
7567
  function ApaasLogistics(props) {
7626
7568
  var value = props.value,
7627
7569
  onChange = props.onChange,
@@ -7633,11 +7575,13 @@ function ApaasLogistics(props) {
7633
7575
  var isFirst = useRef(false);
7634
7576
  var initPageSource = /*#__PURE__*/function () {
7635
7577
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
7578
+ var express;
7636
7579
  return _regeneratorRuntime().wrap(function _callee$(_context) {
7637
7580
  while (1) switch (_context.prev = _context.next) {
7638
7581
  case 0:
7582
+ express = ExpressData.getInstance();
7639
7583
  setOptions(express.expressData || []);
7640
- case 1:
7584
+ case 2:
7641
7585
  case "end":
7642
7586
  return _context.stop();
7643
7587
  }
@@ -9746,6 +9690,7 @@ var LogisticsInterception = function LogisticsInterception(props) {
9746
9690
  var address = AddressData.getInstance();
9747
9691
  var _props$value = props.value,
9748
9692
  value = _props$value === void 0 ? {} : _props$value,
9693
+ _props$logisticsOptio = props.logisticsOptions,
9749
9694
  _props$expressInterce = props.expressInterceptData,
9750
9695
  expressInterceptData = _props$expressInterce === void 0 ? [] : _props$expressInterce,
9751
9696
  _props$required = props.required,
@@ -9774,7 +9719,7 @@ var LogisticsInterception = function LogisticsInterception(props) {
9774
9719
  var firstIn = useRef(true);
9775
9720
  useEffect(function () {
9776
9721
  //存入第一次的物流地址,防止非对接物流切换成对接物流后无法编辑
9777
- if (firstIn.current && (value === null || value === void 0 ? void 0 : value.interceptCompany)) {
9722
+ if (firstIn.current && JSON.stringify(value) !== '{}') {
9778
9723
  setInitCompany(value === null || value === void 0 ? void 0 : value.interceptCompany);
9779
9724
  firstIn.current = false;
9780
9725
  }
@@ -10037,62 +9982,6 @@ var LogisticsInterception = function LogisticsInterception(props) {
10037
9982
  })));
10038
9983
  };
10039
9984
 
10040
- var LogisticsMoreInterception = function LogisticsMoreInterception(props) {
10041
- var required = props.required,
10042
- expressInterceptData = props.expressInterceptData,
10043
- _props$value = props.value,
10044
- value = _props$value === void 0 ? [] : _props$value,
10045
- disabled = props.disabled,
10046
- onChange = props.onChange,
10047
- isEditing = props.isEditing;
10048
- var _useState = useState(0),
10049
- _useState2 = _slicedToArray(_useState, 2),
10050
- changeIndex = _useState2[0],
10051
- setChangeIndex = _useState2[1];
10052
- var handleChange = function handleChange(val, index) {
10053
- var newValue = cloneDeep(value);
10054
- newValue.splice(index, 1, val);
10055
- onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
10056
- };
10057
- var handleDelete = function handleDelete(e, index) {
10058
- e.stopPropagation();
10059
- var newValue = cloneDeep(value);
10060
- newValue.splice(index, 1);
10061
- onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
10062
- setChangeIndex(0);
10063
- };
10064
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Space, {
10065
- wrap: true
10066
- }, value.length > 1 ? (value || []).map(function (item, index) {
10067
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("span", {
10068
- style: {
10069
- position: 'relative',
10070
- color: changeIndex === index ? '#4569d4' : 'black',
10071
- cursor: 'pointer'
10072
- },
10073
- onClick: function onClick() {
10074
- return setChangeIndex(index);
10075
- }
10076
- }, "\u5305\u88F9".concat(index + 1), !disabled ? /*#__PURE__*/React.createElement(CloseCircleOutlined, {
10077
- onClick: function onClick(e) {
10078
- return handleDelete(e, index);
10079
- }
10080
- }) : null));
10081
- }) : null), value.length ? (value || []).map(function (item, index) {
10082
- return changeIndex === index ? /*#__PURE__*/React.createElement(LogisticsInterception, {
10083
- key: "logistics-".concat(index),
10084
- required: required,
10085
- expressInterceptData: expressInterceptData,
10086
- value: item,
10087
- disabled: disabled,
10088
- isEditing: false,
10089
- onChange: function onChange(val) {
10090
- return handleChange(val, index);
10091
- }
10092
- }) : null;
10093
- }) : null);
10094
- };
10095
-
10096
9985
  var LogisticsTrajectory = function LogisticsTrajectory(props) {
10097
9986
  var showField = props.showField,
10098
9987
  _props$value = props.value,
@@ -13556,7 +13445,7 @@ var CommonSystemOrder = function CommonSystemOrder(props) {
13556
13445
  changeOrderInfo[type] = val;
13557
13446
  var newList = _toConsumableArray(value);
13558
13447
  newList[changeIndex] = changeOrderInfo;
13559
- // console.log(newList, val, type);
13448
+ console.log(newList, val, type);
13560
13449
  onChange === null || onChange === void 0 ? void 0 : onChange(newList);
13561
13450
  };
13562
13451
  //判断是否是单个且没有商品数据
@@ -13632,6 +13521,7 @@ var CommonSystemOrder$1 = function CommonSystemOrder(props) {
13632
13521
  }, [1, 2].includes(type) ? /*#__PURE__*/React.createElement("span", null, "\u7CFB\u7EDF\u8BA2\u5355\u53F7", index + 1, "\uFF1A", item.systemOrderId) : null);
13633
13522
  };
13634
13523
  var changeHandle = function changeHandle(val, valType) {
13524
+ console.log(val, valType);
13635
13525
  var changeOrderInfo = _objectSpread2({}, value[changeIndex]);
13636
13526
  changeOrderInfo[valType] = val;
13637
13527
  if (val !== failValue) {
@@ -13764,4 +13654,4 @@ var CalculationInput = function CalculationInput(props) {
13764
13654
  }, config === null || config === void 0 ? void 0 : config.unit));
13765
13655
  };
13766
13656
 
13767
- export { ApaasAddress as Address, AliPay, Province as ApaasAddress, ApaasCascader, ApaasCheckbox, ApaasDate, withFormItem as ApaasHoc, ApaasInput, ApaasInputNumber, ApaasLogistics, ApaasMultipleSelect, ApaasPosting, ApaasRadio, ApaasRate, ApaasSelect, ApaasSlider, ApaasTextArea, ApaasUpload, index as ApaasUploadAsync, ApaasUploadFile, BsExchange, BsGoods, BsReissue, BsReturnGoods as BsReturn, index$1 as BsSystemOrder, BuyerNick, CalculationInput, ChooseBaby, CommonGoods, CommonSystemOrder$1 as CommonMultiStatus, CommonStatus, CommonSystemOrder, ExpressLogistics, Goods, index$2 as GoodsTable, IdentifyAddress, Invoice, jstGoods as JstGoods, ItemList as JstItemList, LogisticsInterception, LogisticsMoreInterception, LogisticsMoreTrajectory, LogisticsTrajectory, MsgStatus, ParseLogistics, Payment, RemarkInput as Remark, ExpressLogistics as ReturnLogistics, ShopNameSelect as ShopName, Status, Supplier, TBGoodId, TBGoodSerial, TradeId, WlnGoods };
13657
+ export { ApaasAddress as Address, AliPay, Province as ApaasAddress, ApaasCascader, ApaasCheckbox, ApaasDate, withFormItem as ApaasHoc, ApaasInput, ApaasInputNumber, ApaasLogistics, ApaasMultipleSelect, ApaasPosting, ApaasRadio, ApaasRate, ApaasSelect, ApaasSlider, ApaasTextArea, ApaasUpload, index as ApaasUploadAsync, ApaasUploadFile, BsExchange, BsGoods, BsReissue, BsReturnGoods as BsReturn, index$1 as BsSystemOrder, BuyerNick, CalculationInput, ChooseBaby, CommonGoods, CommonSystemOrder$1 as CommonMultiStatus, CommonStatus, CommonSystemOrder, ExpressLogistics, Goods, index$2 as GoodsTable, IdentifyAddress, Invoice, jstGoods as JstGoods, ItemList as JstItemList, LogisticsInterception, LogisticsMoreTrajectory, LogisticsTrajectory, MsgStatus, ParseLogistics, Payment, RemarkInput as Remark, ExpressLogistics as ReturnLogistics, ShopNameSelect as ShopName, Status, Supplier, TBGoodId, TBGoodSerial, TradeId, WlnGoods };
package/dist/index.js CHANGED
@@ -7388,74 +7388,17 @@ function ApaasRate(props) {
7388
7388
  }));
7389
7389
  }
7390
7390
 
7391
- var addressData = kmkfUtils.AddressData.getInstance();
7392
- var bsAddressData = kmkfUtils.BsAddressData.getInstance();
7393
- var wdtAddressData = kmkfUtils.WdtAddressData.getInstance();
7394
7391
  var Province = function Province(props) {
7392
+ var _mapping$type;
7395
7393
  var _props$type = props.type,
7396
- type = _props$type === void 0 ? 'workOrder' : _props$type,
7397
- value = props.value;
7398
- var _useState = React.useState([]),
7399
- _useState2 = _slicedToArray(_useState, 2),
7400
- option = _useState2[0],
7401
- setOptions = _useState2[1];
7402
- var num = 0;
7403
- var isFirst = React.useRef(false);
7404
- var time = React.useRef();
7405
- var initPageSource = /*#__PURE__*/function () {
7406
- var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
7407
- var options;
7408
- return _regeneratorRuntime().wrap(function _callee$(_context) {
7409
- while (1) switch (_context.prev = _context.next) {
7410
- case 0:
7411
- num++;
7412
- options = ({
7413
- bs: bsAddressData,
7414
- wdt: wdtAddressData,
7415
- workOrder: addressData
7416
- }[type] || addressData).addressOptions || [];
7417
- if (!(options === null || options === void 0 ? void 0 : options.length) && num < 6) {
7418
- time.current = setTimeout(function () {
7419
- initPageSource();
7420
- }, 1000);
7421
- }
7422
- if (options.length) {
7423
- setOptions(options);
7424
- }
7425
- case 4:
7426
- case "end":
7427
- return _context.stop();
7428
- }
7429
- }, _callee);
7430
- }));
7431
- return function initPageSource() {
7432
- return _ref.apply(this, arguments);
7433
- };
7434
- }();
7435
- var getBsAddress = function getBsAddress() {
7436
- var data = JSON.parse(localStorage.getItem('bsAddressData') || '[]');
7437
- if (data.length) {
7438
- var options = kmkfUtils.toTree(data, 1);
7439
- setOptions(options);
7440
- }
7394
+ type = _props$type === void 0 ? 'workOrder' : _props$type;
7395
+ var mapping = {
7396
+ workOrder: kmkfUtils.AddressData.getInstance(),
7397
+ bs: kmkfUtils.BsAddressData.getInstance(),
7398
+ wdt: kmkfUtils.WdtAddressData.getInstance()
7441
7399
  };
7442
- //如果值改变地址不存在则再获取一遍
7443
- React.useEffect(function () {
7444
- if (value && type == 'bs' && !option.length) {
7445
- getBsAddress();
7446
- }
7447
- }, [value, type, option]);
7448
- React.useEffect(function () {
7449
- if (!isFirst.current) {
7450
- initPageSource();
7451
- isFirst.current = true;
7452
- }
7453
- return function () {
7454
- clearTimeout(time.current);
7455
- };
7456
- }, []);
7457
7400
  return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.Cascader, _objectSpread2(_objectSpread2({}, props), {}, {
7458
- options: option,
7401
+ options: ((_mapping$type = mapping[type]) === null || _mapping$type === void 0 ? void 0 : _mapping$type.addressOptions) || [],
7459
7402
  style: {
7460
7403
  minWidth: '100px'
7461
7404
  },
@@ -7632,7 +7575,6 @@ function ApaasPosting(props) {
7632
7575
  }
7633
7576
 
7634
7577
  var _excluded$a = ["value", "onChange"];
7635
- var express = kmkfUtils.ExpressData.getInstance();
7636
7578
  function ApaasLogistics(props) {
7637
7579
  var value = props.value,
7638
7580
  onChange = props.onChange,
@@ -7644,11 +7586,13 @@ function ApaasLogistics(props) {
7644
7586
  var isFirst = React.useRef(false);
7645
7587
  var initPageSource = /*#__PURE__*/function () {
7646
7588
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
7589
+ var express;
7647
7590
  return _regeneratorRuntime().wrap(function _callee$(_context) {
7648
7591
  while (1) switch (_context.prev = _context.next) {
7649
7592
  case 0:
7593
+ express = kmkfUtils.ExpressData.getInstance();
7650
7594
  setOptions(express.expressData || []);
7651
- case 1:
7595
+ case 2:
7652
7596
  case "end":
7653
7597
  return _context.stop();
7654
7598
  }
@@ -9757,6 +9701,7 @@ var LogisticsInterception = function LogisticsInterception(props) {
9757
9701
  var address = kmkfUtils.AddressData.getInstance();
9758
9702
  var _props$value = props.value,
9759
9703
  value = _props$value === void 0 ? {} : _props$value,
9704
+ _props$logisticsOptio = props.logisticsOptions,
9760
9705
  _props$expressInterce = props.expressInterceptData,
9761
9706
  expressInterceptData = _props$expressInterce === void 0 ? [] : _props$expressInterce,
9762
9707
  _props$required = props.required,
@@ -9785,7 +9730,7 @@ var LogisticsInterception = function LogisticsInterception(props) {
9785
9730
  var firstIn = React.useRef(true);
9786
9731
  React.useEffect(function () {
9787
9732
  //存入第一次的物流地址,防止非对接物流切换成对接物流后无法编辑
9788
- if (firstIn.current && (value === null || value === void 0 ? void 0 : value.interceptCompany)) {
9733
+ if (firstIn.current && JSON.stringify(value) !== '{}') {
9789
9734
  setInitCompany(value === null || value === void 0 ? void 0 : value.interceptCompany);
9790
9735
  firstIn.current = false;
9791
9736
  }
@@ -10048,62 +9993,6 @@ var LogisticsInterception = function LogisticsInterception(props) {
10048
9993
  })));
10049
9994
  };
10050
9995
 
10051
- var LogisticsMoreInterception = function LogisticsMoreInterception(props) {
10052
- var required = props.required,
10053
- expressInterceptData = props.expressInterceptData,
10054
- _props$value = props.value,
10055
- value = _props$value === void 0 ? [] : _props$value,
10056
- disabled = props.disabled,
10057
- onChange = props.onChange,
10058
- isEditing = props.isEditing;
10059
- var _useState = React.useState(0),
10060
- _useState2 = _slicedToArray(_useState, 2),
10061
- changeIndex = _useState2[0],
10062
- setChangeIndex = _useState2[1];
10063
- var handleChange = function handleChange(val, index) {
10064
- var newValue = lodash.cloneDeep(value);
10065
- newValue.splice(index, 1, val);
10066
- onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
10067
- };
10068
- var handleDelete = function handleDelete(e, index) {
10069
- e.stopPropagation();
10070
- var newValue = lodash.cloneDeep(value);
10071
- newValue.splice(index, 1);
10072
- onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
10073
- setChangeIndex(0);
10074
- };
10075
- return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.Space, {
10076
- wrap: true
10077
- }, value.length > 1 ? (value || []).map(function (item, index) {
10078
- return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement("span", {
10079
- style: {
10080
- position: 'relative',
10081
- color: changeIndex === index ? '#4569d4' : 'black',
10082
- cursor: 'pointer'
10083
- },
10084
- onClick: function onClick() {
10085
- return setChangeIndex(index);
10086
- }
10087
- }, "\u5305\u88F9".concat(index + 1), !disabled ? /*#__PURE__*/React__default['default'].createElement(icons.CloseCircleOutlined, {
10088
- onClick: function onClick(e) {
10089
- return handleDelete(e, index);
10090
- }
10091
- }) : null));
10092
- }) : null), value.length ? (value || []).map(function (item, index) {
10093
- return changeIndex === index ? /*#__PURE__*/React__default['default'].createElement(LogisticsInterception, {
10094
- key: "logistics-".concat(index),
10095
- required: required,
10096
- expressInterceptData: expressInterceptData,
10097
- value: item,
10098
- disabled: disabled,
10099
- isEditing: false,
10100
- onChange: function onChange(val) {
10101
- return handleChange(val, index);
10102
- }
10103
- }) : null;
10104
- }) : null);
10105
- };
10106
-
10107
9996
  var LogisticsTrajectory = function LogisticsTrajectory(props) {
10108
9997
  var showField = props.showField,
10109
9998
  _props$value = props.value,
@@ -13567,7 +13456,7 @@ var CommonSystemOrder = function CommonSystemOrder(props) {
13567
13456
  changeOrderInfo[type] = val;
13568
13457
  var newList = _toConsumableArray(value);
13569
13458
  newList[changeIndex] = changeOrderInfo;
13570
- // console.log(newList, val, type);
13459
+ console.log(newList, val, type);
13571
13460
  onChange === null || onChange === void 0 ? void 0 : onChange(newList);
13572
13461
  };
13573
13462
  //判断是否是单个且没有商品数据
@@ -13643,6 +13532,7 @@ var CommonSystemOrder$1 = function CommonSystemOrder(props) {
13643
13532
  }, [1, 2].includes(type) ? /*#__PURE__*/React__default['default'].createElement("span", null, "\u7CFB\u7EDF\u8BA2\u5355\u53F7", index + 1, "\uFF1A", item.systemOrderId) : null);
13644
13533
  };
13645
13534
  var changeHandle = function changeHandle(val, valType) {
13535
+ console.log(val, valType);
13646
13536
  var changeOrderInfo = _objectSpread2({}, value[changeIndex]);
13647
13537
  changeOrderInfo[valType] = val;
13648
13538
  if (val !== failValue) {
@@ -13815,7 +13705,6 @@ exports.Invoice = Invoice;
13815
13705
  exports.JstGoods = jstGoods;
13816
13706
  exports.JstItemList = ItemList;
13817
13707
  exports.LogisticsInterception = LogisticsInterception;
13818
- exports.LogisticsMoreInterception = LogisticsMoreInterception;
13819
13708
  exports.LogisticsMoreTrajectory = LogisticsMoreTrajectory;
13820
13709
  exports.LogisticsTrajectory = LogisticsTrajectory;
13821
13710
  exports.MsgStatus = MsgStatus;
@@ -3,7 +3,7 @@ interface ProvinceType {
3
3
  value: string[];
4
4
  disabled: boolean;
5
5
  onChange: (value: any, selectedOptions: any) => void;
6
- type?: string;
6
+ type?: 'workOrder' | 'bs' | 'wdt';
7
7
  }
8
8
  declare const Province: (props: Partial<ProvinceType>) => React.JSX.Element;
9
9
  export default Province;
@@ -9,7 +9,7 @@ interface ApaasPostingProps {
9
9
  value: Partial<PostingValueType>;
10
10
  disabled: boolean;
11
11
  onChange: (val: any) => void;
12
- type?: string;
12
+ type?: 'workOrder' | 'bs' | 'wdt';
13
13
  }
14
14
  declare function ApaasPosting(props: Partial<ApaasPostingProps>): React.JSX.Element;
15
15
  export default ApaasPosting;
@@ -14,6 +14,7 @@ interface LogisticsInterceptionValueType {
14
14
  }
15
15
  interface LogisticsInterceptionProps {
16
16
  value: Partial<LogisticsInterceptionValueType>;
17
+ logisticsOptions: any[];
17
18
  expressInterceptData: any[];
18
19
  required: boolean;
19
20
  disabled: boolean;
@@ -9,7 +9,7 @@ interface IdentifyAddressProps {
9
9
  onChange: (value: any) => void;
10
10
  disabled?: boolean;
11
11
  showIdentify?: boolean;
12
- type?: string;
12
+ type?: 'workOrder' | 'bs' | 'wdt';
13
13
  }
14
14
  declare const IdentifyAddress: (props: IdentifyAddressProps) => React.JSX.Element;
15
15
  export default IdentifyAddress;
@@ -32,7 +32,6 @@ export { default as Invoice } from './business/Invoice';
32
32
  export { default as Status } from './business/Status';
33
33
  export { default as Payment } from './business/Payment';
34
34
  export { default as LogisticsInterception } from './business/LogisticsInterception';
35
- export { default as LogisticsMoreInterception } from './business/LogisticsMoreInterception';
36
35
  export { default as LogisticsTrajectory } from './business/LogisticsTrajectory';
37
36
  export { default as LogisticsMoreTrajectory } from './business/LogisticsMoreTrajectory';
38
37
  export { default as Goods } from './common/Goods';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/basic-components",
3
- "version": "0.26.1-beta.9",
3
+ "version": "0.26.2-alpha.1",
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": "^0.26.1-beta.1",
23
+ "@kmkf-fe-packages/kmkf-utils": "^0.26.2-alpha.1",
24
24
  "ahooks": "^3.7.4",
25
25
  "kmkf-monitor": "^0.8.8",
26
26
  "lodash": "^4.17.21",
@@ -64,5 +64,5 @@
64
64
  "publishConfig": {
65
65
  "access": "public"
66
66
  },
67
- "gitHead": "50303c91918abbae845943c08c564f304fbbdca2"
67
+ "gitHead": "3603a804a334cf0f30ecb8e88b0a9c299dcb5a26"
68
68
  }
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- declare const LogisticsMoreInterception: (props: any) => React.JSX.Element;
3
- export default LogisticsMoreInterception;