@kmkf-fe-packages/basic-components 0.24.2-beta.5 → 0.24.2-beta.7
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,6 +1,6 @@
|
|
|
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, CaretUpOutlined } from '@ant-design/icons';
|
|
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';
|
|
6
6
|
import { AddressData, BsAddressData, WdtAddressData, toTree, request as request$1, ExpressData, uuid, LogisticsAddressData, WDT_ORDER_TYPE_MAP } from '@kmkf-fe-packages/kmkf-utils';
|
|
@@ -7394,11 +7394,14 @@ var Province = function Province(props) {
|
|
|
7394
7394
|
workOrder: addressData
|
|
7395
7395
|
}[type] || addressData).addressOptions || [];
|
|
7396
7396
|
if (!(options === null || options === void 0 ? void 0 : options.length) && num < 6) {
|
|
7397
|
+
getBsAddress();
|
|
7397
7398
|
time.current = setTimeout(function () {
|
|
7398
7399
|
initPageSource();
|
|
7399
7400
|
}, 1000);
|
|
7400
7401
|
}
|
|
7401
|
-
|
|
7402
|
+
if (options.length) {
|
|
7403
|
+
setOptions(options);
|
|
7404
|
+
}
|
|
7402
7405
|
case 4:
|
|
7403
7406
|
case "end":
|
|
7404
7407
|
return _context.stop();
|
|
@@ -9734,7 +9737,6 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
9734
9737
|
var address = AddressData.getInstance();
|
|
9735
9738
|
var _props$value = props.value,
|
|
9736
9739
|
value = _props$value === void 0 ? {} : _props$value,
|
|
9737
|
-
_props$logisticsOptio = props.logisticsOptions,
|
|
9738
9740
|
_props$expressInterce = props.expressInterceptData,
|
|
9739
9741
|
expressInterceptData = _props$expressInterce === void 0 ? [] : _props$expressInterce,
|
|
9740
9742
|
_props$required = props.required,
|
|
@@ -10026,6 +10028,64 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
10026
10028
|
})));
|
|
10027
10029
|
};
|
|
10028
10030
|
|
|
10031
|
+
var LogisticsMoreInterception = function LogisticsMoreInterception(props) {
|
|
10032
|
+
var required = props.required,
|
|
10033
|
+
expressInterceptData = props.expressInterceptData,
|
|
10034
|
+
_props$value = props.value,
|
|
10035
|
+
value = _props$value === void 0 ? [] : _props$value,
|
|
10036
|
+
disabled = props.disabled,
|
|
10037
|
+
onChange = props.onChange,
|
|
10038
|
+
isEditing = props.isEditing;
|
|
10039
|
+
var _useState = useState(0),
|
|
10040
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
10041
|
+
changeIndex = _useState2[0],
|
|
10042
|
+
setChangeIndex = _useState2[1];
|
|
10043
|
+
var handleChange = function handleChange(val, index) {
|
|
10044
|
+
var newValue = cloneDeep(value);
|
|
10045
|
+
newValue.splice(index, 1, val);
|
|
10046
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
10047
|
+
};
|
|
10048
|
+
var handleDelete = function handleDelete(e, index) {
|
|
10049
|
+
e.stopPropagation();
|
|
10050
|
+
var newValue = cloneDeep(value);
|
|
10051
|
+
newValue.splice(index, 1);
|
|
10052
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
10053
|
+
setChangeIndex(0);
|
|
10054
|
+
};
|
|
10055
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Space, {
|
|
10056
|
+
wrap: true
|
|
10057
|
+
}, value.length > 1 ? (value || []).map(function (item, index) {
|
|
10058
|
+
return /*#__PURE__*/React.createElement("span", {
|
|
10059
|
+
style: {
|
|
10060
|
+
position: 'relative',
|
|
10061
|
+
color: changeIndex === index ? '#4569d4' : 'black',
|
|
10062
|
+
cursor: 'pointer'
|
|
10063
|
+
},
|
|
10064
|
+
onClick: function onClick() {
|
|
10065
|
+
return setChangeIndex(index);
|
|
10066
|
+
}
|
|
10067
|
+
}, "\u5305\u88F9".concat(index + 1), !disabled ? /*#__PURE__*/React.createElement(CloseCircleOutlined, {
|
|
10068
|
+
style: {
|
|
10069
|
+
position: 'absolute',
|
|
10070
|
+
right: '-7px',
|
|
10071
|
+
top: '-10px'
|
|
10072
|
+
},
|
|
10073
|
+
onClick: function onClick(e) {
|
|
10074
|
+
return handleDelete(e, index);
|
|
10075
|
+
}
|
|
10076
|
+
}) : null);
|
|
10077
|
+
}) : null), /*#__PURE__*/React.createElement(LogisticsInterception, {
|
|
10078
|
+
required: required,
|
|
10079
|
+
expressInterceptData: expressInterceptData,
|
|
10080
|
+
value: value[changeIndex],
|
|
10081
|
+
disabled: disabled,
|
|
10082
|
+
isEditing: false,
|
|
10083
|
+
onChange: function onChange(val) {
|
|
10084
|
+
return handleChange(val, changeIndex);
|
|
10085
|
+
}
|
|
10086
|
+
}));
|
|
10087
|
+
};
|
|
10088
|
+
|
|
10029
10089
|
var LogisticsTrajectory = function LogisticsTrajectory(props) {
|
|
10030
10090
|
var showField = props.showField,
|
|
10031
10091
|
_props$value = props.value,
|
|
@@ -13695,4 +13755,4 @@ var CalculationInput = function CalculationInput(props) {
|
|
|
13695
13755
|
}, config === null || config === void 0 ? void 0 : config.unit));
|
|
13696
13756
|
};
|
|
13697
13757
|
|
|
13698
|
-
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 };
|
|
13758
|
+
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 };
|
package/dist/index.js
CHANGED
|
@@ -7405,11 +7405,14 @@ var Province = function Province(props) {
|
|
|
7405
7405
|
workOrder: addressData
|
|
7406
7406
|
}[type] || addressData).addressOptions || [];
|
|
7407
7407
|
if (!(options === null || options === void 0 ? void 0 : options.length) && num < 6) {
|
|
7408
|
+
getBsAddress();
|
|
7408
7409
|
time.current = setTimeout(function () {
|
|
7409
7410
|
initPageSource();
|
|
7410
7411
|
}, 1000);
|
|
7411
7412
|
}
|
|
7412
|
-
|
|
7413
|
+
if (options.length) {
|
|
7414
|
+
setOptions(options);
|
|
7415
|
+
}
|
|
7413
7416
|
case 4:
|
|
7414
7417
|
case "end":
|
|
7415
7418
|
return _context.stop();
|
|
@@ -9745,7 +9748,6 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
9745
9748
|
var address = kmkfUtils.AddressData.getInstance();
|
|
9746
9749
|
var _props$value = props.value,
|
|
9747
9750
|
value = _props$value === void 0 ? {} : _props$value,
|
|
9748
|
-
_props$logisticsOptio = props.logisticsOptions,
|
|
9749
9751
|
_props$expressInterce = props.expressInterceptData,
|
|
9750
9752
|
expressInterceptData = _props$expressInterce === void 0 ? [] : _props$expressInterce,
|
|
9751
9753
|
_props$required = props.required,
|
|
@@ -10037,6 +10039,64 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
10037
10039
|
})));
|
|
10038
10040
|
};
|
|
10039
10041
|
|
|
10042
|
+
var LogisticsMoreInterception = function LogisticsMoreInterception(props) {
|
|
10043
|
+
var required = props.required,
|
|
10044
|
+
expressInterceptData = props.expressInterceptData,
|
|
10045
|
+
_props$value = props.value,
|
|
10046
|
+
value = _props$value === void 0 ? [] : _props$value,
|
|
10047
|
+
disabled = props.disabled,
|
|
10048
|
+
onChange = props.onChange,
|
|
10049
|
+
isEditing = props.isEditing;
|
|
10050
|
+
var _useState = React.useState(0),
|
|
10051
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
10052
|
+
changeIndex = _useState2[0],
|
|
10053
|
+
setChangeIndex = _useState2[1];
|
|
10054
|
+
var handleChange = function handleChange(val, index) {
|
|
10055
|
+
var newValue = lodash.cloneDeep(value);
|
|
10056
|
+
newValue.splice(index, 1, val);
|
|
10057
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
10058
|
+
};
|
|
10059
|
+
var handleDelete = function handleDelete(e, index) {
|
|
10060
|
+
e.stopPropagation();
|
|
10061
|
+
var newValue = lodash.cloneDeep(value);
|
|
10062
|
+
newValue.splice(index, 1);
|
|
10063
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
10064
|
+
setChangeIndex(0);
|
|
10065
|
+
};
|
|
10066
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.Space, {
|
|
10067
|
+
wrap: true
|
|
10068
|
+
}, value.length > 1 ? (value || []).map(function (item, index) {
|
|
10069
|
+
return /*#__PURE__*/React__default['default'].createElement("span", {
|
|
10070
|
+
style: {
|
|
10071
|
+
position: 'relative',
|
|
10072
|
+
color: changeIndex === index ? '#4569d4' : 'black',
|
|
10073
|
+
cursor: 'pointer'
|
|
10074
|
+
},
|
|
10075
|
+
onClick: function onClick() {
|
|
10076
|
+
return setChangeIndex(index);
|
|
10077
|
+
}
|
|
10078
|
+
}, "\u5305\u88F9".concat(index + 1), !disabled ? /*#__PURE__*/React__default['default'].createElement(icons.CloseCircleOutlined, {
|
|
10079
|
+
style: {
|
|
10080
|
+
position: 'absolute',
|
|
10081
|
+
right: '-7px',
|
|
10082
|
+
top: '-10px'
|
|
10083
|
+
},
|
|
10084
|
+
onClick: function onClick(e) {
|
|
10085
|
+
return handleDelete(e, index);
|
|
10086
|
+
}
|
|
10087
|
+
}) : null);
|
|
10088
|
+
}) : null), /*#__PURE__*/React__default['default'].createElement(LogisticsInterception, {
|
|
10089
|
+
required: required,
|
|
10090
|
+
expressInterceptData: expressInterceptData,
|
|
10091
|
+
value: value[changeIndex],
|
|
10092
|
+
disabled: disabled,
|
|
10093
|
+
isEditing: false,
|
|
10094
|
+
onChange: function onChange(val) {
|
|
10095
|
+
return handleChange(val, changeIndex);
|
|
10096
|
+
}
|
|
10097
|
+
}));
|
|
10098
|
+
};
|
|
10099
|
+
|
|
10040
10100
|
var LogisticsTrajectory = function LogisticsTrajectory(props) {
|
|
10041
10101
|
var showField = props.showField,
|
|
10042
10102
|
_props$value = props.value,
|
|
@@ -13746,6 +13806,7 @@ exports.Invoice = Invoice;
|
|
|
13746
13806
|
exports.JstGoods = jstGoods;
|
|
13747
13807
|
exports.JstItemList = ItemList;
|
|
13748
13808
|
exports.LogisticsInterception = LogisticsInterception;
|
|
13809
|
+
exports.LogisticsMoreInterception = LogisticsMoreInterception;
|
|
13749
13810
|
exports.LogisticsMoreTrajectory = LogisticsMoreTrajectory;
|
|
13750
13811
|
exports.LogisticsTrajectory = LogisticsTrajectory;
|
|
13751
13812
|
exports.MsgStatus = MsgStatus;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -32,6 +32,7 @@ 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';
|
|
35
36
|
export { default as LogisticsTrajectory } from './business/LogisticsTrajectory';
|
|
36
37
|
export { default as LogisticsMoreTrajectory } from './business/LogisticsMoreTrajectory';
|
|
37
38
|
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.24.2-beta.
|
|
3
|
+
"version": "0.24.2-beta.7",
|
|
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.24.2-beta.
|
|
23
|
+
"@kmkf-fe-packages/kmkf-utils": "^0.24.2-beta.7",
|
|
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": "
|
|
67
|
+
"gitHead": "5a6b4943077fcfdbd99fd09141aa4633151793ea"
|
|
68
68
|
}
|