@kmkf-fe-packages/basic-components 2.2.44-beta.24 → 2.2.44-beta.26
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 +28 -10
- package/dist/index.js +27 -9
- package/package.json +3 -3
package/dist/index.esm.js
CHANGED
|
@@ -3,7 +3,7 @@ import { Cascader, DatePicker, Image, InputNumber, Input, Select, Upload, messag
|
|
|
3
3
|
import { EyeOutlined, DeleteOutlined, CloseOutlined, PlusSquareOutlined, MinusCircleFilled, PlusCircleFilled, CopyOutlined, CloseCircleOutlined, CaretUpOutlined, UpOutlined, DownOutlined, PlusOutlined, VideoCameraTwoTone } 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, GyAddressData, JstAddressData,
|
|
6
|
+
import { AddressData, BsAddressData, WdtAddressData, GyAddressData, JstAddressData, request as request$1, ExpressData, isNull, imgResize, uuid, servers, columnsGoodsList, LogisticsAddressData, SendDataCenter, kmSkuTypeMap, hasAddNullComponent, SUBMIT_TIME_ID, UPGRADE_TIME_ID, FINAL_TIME_ID, CUSTOM_TIME_ID, useStatus, finalFormData, transformList, dataSourceTrans, DATA_SPLIT_COMPONENT_FIELDS_MAP, findLabelBySelectValue, BS_E3_BOOLEAN_STATUS_MAP, filterWdtOrders, WDT_ORDER_TYPE_MAP, tradeStatusMap, filterBsE3Orders, filterGyOrders, GY_DELIVERY_STATE_MAPPING, filterJstOrders, filterJyOrders, JY_ORDER_TYPE_MAP, JY_ORDER_STATUS_MAP, filterJkyOrders, JKY_ORDER_TYPE_MAP, JKY_ORDER_STATUS_MAP, filterKmOrders, getSystemShowHead, getIsPlatformCodesIncludeOrderNos, BS_SYSTEM_ORDER_CONFIG, KM_SYSTEM_ORDER_CONFIG, WLN_SYSTEM_ORDER_CONFIG, WDT_SYSTEM_ORDER_CONFIG, BS_E3_SYSTEM_ORDER_CONFIG, GY_SYSTEM_ORDER_CONFIG, JST_SYSTEM_ORDER_CONFIG, JY_SYSTEM_ORDER_CONFIG, JKY_SYSTEM_ORDER_CONFIG, WDT_RETURN_BILL_NO_CONFIG, updateOrderSubFormGoodsHandle, updateWlnGoodsHandle, updateWdtGoodsHandle, updateBsE3GoodsHandle, updateGyGoodsHandle, updateJstGoodsHandle, updateKmGoodsHandle, updateJyGoodsHandle, updateJkyGoodsHandle, updateWdtAftersaleGoodsHandle, jstMergeIdenticalGoods, msgTypeCh, pushGyLog, skxSystemOrderBackValues, skxReturnSystemOrderBackValues, formatTrade, updateSkxGoodsHandle, formatReturnTrade, updateSkxReturnGoodsHandle } from '@kmkf-fe-packages/kmkf-utils';
|
|
7
7
|
import every from 'lodash/every';
|
|
8
8
|
import maxBy from 'lodash/maxBy';
|
|
9
9
|
import { debounce, isNaN as isNaN$1, isNumber as isNumber$1, uniqBy, cloneDeep, difference, differenceWith, isBoolean, isEqual, takeRight, reject as reject$1, intersection, isEmpty } from 'lodash';
|
|
@@ -7758,9 +7758,10 @@ var Province = function Province(props) {
|
|
|
7758
7758
|
wdt: WdtAddressData.getInstance(),
|
|
7759
7759
|
gy: GyAddressData.getInstance(),
|
|
7760
7760
|
km: AddressData.getInstance(),
|
|
7761
|
-
jst: JstAddressData.getInstance()
|
|
7762
|
-
jky: JkyAddressData.getInstance()
|
|
7761
|
+
jst: JstAddressData.getInstance()
|
|
7762
|
+
// jky: JkyAddressData.getInstance(),
|
|
7763
7763
|
};
|
|
7764
|
+
|
|
7764
7765
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Cascader, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
7765
7766
|
options: ((_mapping$type = mapping[type]) === null || _mapping$type === void 0 ? void 0 : _mapping$type.addressOptions) || [],
|
|
7766
7767
|
style: {
|
|
@@ -7996,13 +7997,14 @@ function ApaasPosting(props) {
|
|
|
7996
7997
|
});
|
|
7997
7998
|
}
|
|
7998
7999
|
|
|
7999
|
-
var _excluded$b = ["value", "onChange", "platformType", "type"];
|
|
8000
|
+
var _excluded$b = ["value", "onChange", "platformType", "type", "placement"];
|
|
8000
8001
|
function ApaasLogistics(props) {
|
|
8001
8002
|
var value = props.value,
|
|
8002
8003
|
onChange = props.onChange,
|
|
8003
8004
|
platformType = props.platformType,
|
|
8004
8005
|
_props$type = props.type,
|
|
8005
8006
|
type = _props$type === void 0 ? 'select' : _props$type,
|
|
8007
|
+
placement = props.placement,
|
|
8006
8008
|
other = _objectWithoutProperties(props, _excluded$b);
|
|
8007
8009
|
var _useState = useState([]),
|
|
8008
8010
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -8040,12 +8042,13 @@ function ApaasLogistics(props) {
|
|
|
8040
8042
|
return type === 'input' ? /*#__PURE__*/React.createElement(Input, _objectSpread2(_objectSpread2({}, other), {}, {
|
|
8041
8043
|
value: value,
|
|
8042
8044
|
onChange: handleInputChange
|
|
8043
|
-
})) : /*#__PURE__*/React.createElement(Select, _objectSpread2(
|
|
8045
|
+
})) : /*#__PURE__*/React.createElement(Select, _objectSpread2({
|
|
8044
8046
|
value: value,
|
|
8045
8047
|
onChange: onChange,
|
|
8046
8048
|
options: option,
|
|
8047
|
-
virtual: true
|
|
8048
|
-
|
|
8049
|
+
virtual: true,
|
|
8050
|
+
placement: placement
|
|
8051
|
+
}, other));
|
|
8049
8052
|
}
|
|
8050
8053
|
|
|
8051
8054
|
var _excluded$c = ["label", "name", "extra", "required", "rules", "initialValue"];
|
|
@@ -9992,6 +9995,9 @@ var EditSplitRenderMap = {
|
|
|
9992
9995
|
updateHandle = _ref17.updateHandle,
|
|
9993
9996
|
disabled = _ref17.disabled;
|
|
9994
9997
|
return /*#__PURE__*/React.createElement(ApaasLogistics, {
|
|
9998
|
+
getPopupContainer: function getPopupContainer() {
|
|
9999
|
+
return document.getElementById('subform');
|
|
10000
|
+
},
|
|
9995
10001
|
value: val,
|
|
9996
10002
|
allowClear: true,
|
|
9997
10003
|
showSearch: true,
|
|
@@ -10001,7 +10007,9 @@ var EditSplitRenderMap = {
|
|
|
10001
10007
|
disabled: t.isEdit || disabled,
|
|
10002
10008
|
filterOption: function filterOption(input, option) {
|
|
10003
10009
|
return option.label.includes(input);
|
|
10004
|
-
}
|
|
10010
|
+
},
|
|
10011
|
+
placement: "topLeft",
|
|
10012
|
+
listHeight: 120
|
|
10005
10013
|
});
|
|
10006
10014
|
},
|
|
10007
10015
|
//退货物流-物流公司
|
|
@@ -10012,6 +10020,9 @@ var EditSplitRenderMap = {
|
|
|
10012
10020
|
updateHandle = _ref18.updateHandle,
|
|
10013
10021
|
disabled = _ref18.disabled;
|
|
10014
10022
|
return /*#__PURE__*/React.createElement(ApaasLogistics, {
|
|
10023
|
+
getPopupContainer: function getPopupContainer() {
|
|
10024
|
+
return document.getElementById('subform');
|
|
10025
|
+
},
|
|
10015
10026
|
value: val,
|
|
10016
10027
|
allowClear: true,
|
|
10017
10028
|
showSearch: true,
|
|
@@ -10021,7 +10032,9 @@ var EditSplitRenderMap = {
|
|
|
10021
10032
|
disabled: t.isEdit || disabled,
|
|
10022
10033
|
filterOption: function filterOption(input, option) {
|
|
10023
10034
|
return option.label.includes(input);
|
|
10024
|
-
}
|
|
10035
|
+
},
|
|
10036
|
+
placement: "topLeft",
|
|
10037
|
+
listHeight: 120
|
|
10025
10038
|
});
|
|
10026
10039
|
}
|
|
10027
10040
|
};
|
|
@@ -10582,6 +10595,9 @@ var SubForm = function SubForm(props) {
|
|
|
10582
10595
|
visible: open,
|
|
10583
10596
|
onVisibleChange: handleOpenChange
|
|
10584
10597
|
}, ['0qFEv9GEyd_returnLogisticsCompany', 'jbCFrJV4m7_trajectoryCompany'].includes(selectKey) ? /*#__PURE__*/React.createElement(ApaasLogistics, {
|
|
10598
|
+
getPopupContainer: function getPopupContainer() {
|
|
10599
|
+
return document.getElementById('subform');
|
|
10600
|
+
},
|
|
10585
10601
|
value: undefined,
|
|
10586
10602
|
onChange: function onChange(val) {
|
|
10587
10603
|
onChangeInput(val);
|
|
@@ -10594,7 +10610,9 @@ var SubForm = function SubForm(props) {
|
|
|
10594
10610
|
},
|
|
10595
10611
|
filterOption: function filterOption(input, option) {
|
|
10596
10612
|
return option.label.includes(input);
|
|
10597
|
-
}
|
|
10613
|
+
},
|
|
10614
|
+
placement: "topLeft",
|
|
10615
|
+
listHeight: 120
|
|
10598
10616
|
}) : /*#__PURE__*/React.createElement(Input, {
|
|
10599
10617
|
placeholder: "\u8F93\u5165\u5173\u952E\u8BCD\u67E5\u8BE2",
|
|
10600
10618
|
allowClear: true,
|
package/dist/index.js
CHANGED
|
@@ -7773,9 +7773,10 @@ var Province = function Province(props) {
|
|
|
7773
7773
|
wdt: kmkfUtils.WdtAddressData.getInstance(),
|
|
7774
7774
|
gy: kmkfUtils.GyAddressData.getInstance(),
|
|
7775
7775
|
km: kmkfUtils.AddressData.getInstance(),
|
|
7776
|
-
jst: kmkfUtils.JstAddressData.getInstance()
|
|
7777
|
-
jky:
|
|
7776
|
+
jst: kmkfUtils.JstAddressData.getInstance()
|
|
7777
|
+
// jky: JkyAddressData.getInstance(),
|
|
7778
7778
|
};
|
|
7779
|
+
|
|
7779
7780
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(antd.Cascader, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
7780
7781
|
options: ((_mapping$type = mapping[type]) === null || _mapping$type === void 0 ? void 0 : _mapping$type.addressOptions) || [],
|
|
7781
7782
|
style: {
|
|
@@ -8011,13 +8012,14 @@ function ApaasPosting(props) {
|
|
|
8011
8012
|
});
|
|
8012
8013
|
}
|
|
8013
8014
|
|
|
8014
|
-
var _excluded$b = ["value", "onChange", "platformType", "type"];
|
|
8015
|
+
var _excluded$b = ["value", "onChange", "platformType", "type", "placement"];
|
|
8015
8016
|
function ApaasLogistics(props) {
|
|
8016
8017
|
var value = props.value,
|
|
8017
8018
|
onChange = props.onChange,
|
|
8018
8019
|
platformType = props.platformType,
|
|
8019
8020
|
_props$type = props.type,
|
|
8020
8021
|
type = _props$type === void 0 ? 'select' : _props$type,
|
|
8022
|
+
placement = props.placement,
|
|
8021
8023
|
other = _objectWithoutProperties(props, _excluded$b);
|
|
8022
8024
|
var _useState = React.useState([]),
|
|
8023
8025
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -8055,12 +8057,13 @@ function ApaasLogistics(props) {
|
|
|
8055
8057
|
return type === 'input' ? /*#__PURE__*/React__default['default'].createElement(antd.Input, _objectSpread2(_objectSpread2({}, other), {}, {
|
|
8056
8058
|
value: value,
|
|
8057
8059
|
onChange: handleInputChange
|
|
8058
|
-
})) : /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2(
|
|
8060
|
+
})) : /*#__PURE__*/React__default['default'].createElement(antd.Select, _objectSpread2({
|
|
8059
8061
|
value: value,
|
|
8060
8062
|
onChange: onChange,
|
|
8061
8063
|
options: option,
|
|
8062
|
-
virtual: true
|
|
8063
|
-
|
|
8064
|
+
virtual: true,
|
|
8065
|
+
placement: placement
|
|
8066
|
+
}, other));
|
|
8064
8067
|
}
|
|
8065
8068
|
|
|
8066
8069
|
var _excluded$c = ["label", "name", "extra", "required", "rules", "initialValue"];
|
|
@@ -10007,6 +10010,9 @@ var EditSplitRenderMap = {
|
|
|
10007
10010
|
updateHandle = _ref17.updateHandle,
|
|
10008
10011
|
disabled = _ref17.disabled;
|
|
10009
10012
|
return /*#__PURE__*/React__default['default'].createElement(ApaasLogistics, {
|
|
10013
|
+
getPopupContainer: function getPopupContainer() {
|
|
10014
|
+
return document.getElementById('subform');
|
|
10015
|
+
},
|
|
10010
10016
|
value: val,
|
|
10011
10017
|
allowClear: true,
|
|
10012
10018
|
showSearch: true,
|
|
@@ -10016,7 +10022,9 @@ var EditSplitRenderMap = {
|
|
|
10016
10022
|
disabled: t.isEdit || disabled,
|
|
10017
10023
|
filterOption: function filterOption(input, option) {
|
|
10018
10024
|
return option.label.includes(input);
|
|
10019
|
-
}
|
|
10025
|
+
},
|
|
10026
|
+
placement: "topLeft",
|
|
10027
|
+
listHeight: 120
|
|
10020
10028
|
});
|
|
10021
10029
|
},
|
|
10022
10030
|
//退货物流-物流公司
|
|
@@ -10027,6 +10035,9 @@ var EditSplitRenderMap = {
|
|
|
10027
10035
|
updateHandle = _ref18.updateHandle,
|
|
10028
10036
|
disabled = _ref18.disabled;
|
|
10029
10037
|
return /*#__PURE__*/React__default['default'].createElement(ApaasLogistics, {
|
|
10038
|
+
getPopupContainer: function getPopupContainer() {
|
|
10039
|
+
return document.getElementById('subform');
|
|
10040
|
+
},
|
|
10030
10041
|
value: val,
|
|
10031
10042
|
allowClear: true,
|
|
10032
10043
|
showSearch: true,
|
|
@@ -10036,7 +10047,9 @@ var EditSplitRenderMap = {
|
|
|
10036
10047
|
disabled: t.isEdit || disabled,
|
|
10037
10048
|
filterOption: function filterOption(input, option) {
|
|
10038
10049
|
return option.label.includes(input);
|
|
10039
|
-
}
|
|
10050
|
+
},
|
|
10051
|
+
placement: "topLeft",
|
|
10052
|
+
listHeight: 120
|
|
10040
10053
|
});
|
|
10041
10054
|
}
|
|
10042
10055
|
};
|
|
@@ -10597,6 +10610,9 @@ var SubForm = function SubForm(props) {
|
|
|
10597
10610
|
visible: open,
|
|
10598
10611
|
onVisibleChange: handleOpenChange
|
|
10599
10612
|
}, ['0qFEv9GEyd_returnLogisticsCompany', 'jbCFrJV4m7_trajectoryCompany'].includes(selectKey) ? /*#__PURE__*/React__default['default'].createElement(ApaasLogistics, {
|
|
10613
|
+
getPopupContainer: function getPopupContainer() {
|
|
10614
|
+
return document.getElementById('subform');
|
|
10615
|
+
},
|
|
10600
10616
|
value: undefined,
|
|
10601
10617
|
onChange: function onChange(val) {
|
|
10602
10618
|
onChangeInput(val);
|
|
@@ -10609,7 +10625,9 @@ var SubForm = function SubForm(props) {
|
|
|
10609
10625
|
},
|
|
10610
10626
|
filterOption: function filterOption(input, option) {
|
|
10611
10627
|
return option.label.includes(input);
|
|
10612
|
-
}
|
|
10628
|
+
},
|
|
10629
|
+
placement: "topLeft",
|
|
10630
|
+
listHeight: 120
|
|
10613
10631
|
}) : /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
10614
10632
|
placeholder: "\u8F93\u5165\u5173\u952E\u8BCD\u67E5\u8BE2",
|
|
10615
10633
|
allowClear: true,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/basic-components",
|
|
3
|
-
"version": "2.2.44-beta.
|
|
3
|
+
"version": "2.2.44-beta.26",
|
|
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.2.44-beta.
|
|
23
|
+
"@kmkf-fe-packages/kmkf-utils": "2.2.44-beta.26",
|
|
24
24
|
"ahooks": "^3.7.4",
|
|
25
25
|
"ali-react-table": "2.6.1",
|
|
26
26
|
"bignumber.js": "^9.1.2",
|
|
@@ -66,5 +66,5 @@
|
|
|
66
66
|
"publishConfig": {
|
|
67
67
|
"access": "public"
|
|
68
68
|
},
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "37d9544f0ff311b4cd7bfe75aaeb6bba8a11df67"
|
|
70
70
|
}
|