@kmkf-fe-packages/basic-components 1.19.8-beta.11 → 1.19.8-beta.12
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 +5 -5
- package/dist/index.js +4 -4
- package/package.json +3 -3
package/dist/index.esm.js
CHANGED
|
@@ -3,7 +3,7 @@ import { Cascader, DatePicker, InputNumber, Input, Select, Upload, Image, messag
|
|
|
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';
|
|
6
|
-
import { AddressData, BsAddressData, WdtAddressData, request as request$1, ExpressData, uuid, LogisticsAddressData,
|
|
6
|
+
import { AddressData, BsAddressData, WdtAddressData, request as request$1, ExpressData, uuid, LogisticsAddressData, SendDataCenter, filterWdtOrders, WDT_ORDER_TYPE_MAP, filterBsE3Orders, BS_E3_ORDER_STATUS_MAP, BS_E3_BOOLEAN_STATUS_MAP, updateWdtGoodsHandle, updateBsE3GoodsHandle } from '@kmkf-fe-packages/kmkf-utils';
|
|
7
7
|
import { debounce, isNaN as isNaN$1, isNumber as isNumber$1, cloneDeep, difference, differenceWith, takeRight, reject, isEmpty } from 'lodash';
|
|
8
8
|
import { useUpdateEffect, useDebounceEffect, useAntdTable } from 'ahooks';
|
|
9
9
|
import zhCN from 'antd/lib/locale/zh_CN';
|
|
@@ -10947,7 +10947,7 @@ var jstGoods = function jstGoods(props) {
|
|
|
10947
10947
|
_useState2 = _slicedToArray(_useState, 2),
|
|
10948
10948
|
changeIndex = _useState2[0],
|
|
10949
10949
|
setChangeIndex = _useState2[1]; //选中的包裹
|
|
10950
|
-
var
|
|
10950
|
+
var sendOptions = SendDataCenter.getInstance(platformType).getSendData();
|
|
10951
10951
|
useEffect(function () {
|
|
10952
10952
|
//没有值塞个默认值
|
|
10953
10953
|
if (!(value === null || value === void 0 ? void 0 : value.length) && type !== 1) {
|
|
@@ -10978,7 +10978,7 @@ var jstGoods = function jstGoods(props) {
|
|
|
10978
10978
|
var changeOrderInfo = _objectSpread2({}, value[changeIndex]);
|
|
10979
10979
|
changeOrderInfo[type] = val;
|
|
10980
10980
|
changeOrderInfo['sendId'] = option.value;
|
|
10981
|
-
if (platformType === 'wdt' && type === 'sendName') {
|
|
10981
|
+
if ((platformType === 'wdt' || platformType === 'bsE3') && type === 'sendName') {
|
|
10982
10982
|
changeOrderInfo['sendSnapshotName'] = option.label;
|
|
10983
10983
|
}
|
|
10984
10984
|
var newList = _toConsumableArray(value);
|
|
@@ -11061,7 +11061,7 @@ var jstGoods = function jstGoods(props) {
|
|
|
11061
11061
|
return changeInputHandle(e.target.value, 'sendId');
|
|
11062
11062
|
},
|
|
11063
11063
|
value: (_value$changeIndex5 = value[changeIndex]) === null || _value$changeIndex5 === void 0 ? void 0 : _value$changeIndex5.sendId
|
|
11064
|
-
}), ['sendName', 'all'].includes(showField) && (platformType === 'wdt' ? /*#__PURE__*/React.createElement(Select, {
|
|
11064
|
+
}), ['sendName', 'all'].includes(showField) && (platformType === 'wdt' || platformType === 'bsE3' ? /*#__PURE__*/React.createElement(Select, {
|
|
11065
11065
|
style: {
|
|
11066
11066
|
minWidth: '100px',
|
|
11067
11067
|
maxWidth: '180px'
|
|
@@ -11069,7 +11069,7 @@ var jstGoods = function jstGoods(props) {
|
|
|
11069
11069
|
disabled: disabled,
|
|
11070
11070
|
placeholder: "\u53D1\u8D27\u4ED3\u540D\u79F0",
|
|
11071
11071
|
showSearch: true,
|
|
11072
|
-
options:
|
|
11072
|
+
options: sendOptions,
|
|
11073
11073
|
filterOption: filterOption,
|
|
11074
11074
|
value: ((_value$changeIndex6 = value[changeIndex]) === null || _value$changeIndex6 === void 0 ? void 0 : _value$changeIndex6.sendName) || null,
|
|
11075
11075
|
onChange: function onChange(value, option) {
|
package/dist/index.js
CHANGED
|
@@ -10959,7 +10959,7 @@ var jstGoods = function jstGoods(props) {
|
|
|
10959
10959
|
_useState2 = _slicedToArray(_useState, 2),
|
|
10960
10960
|
changeIndex = _useState2[0],
|
|
10961
10961
|
setChangeIndex = _useState2[1]; //选中的包裹
|
|
10962
|
-
var
|
|
10962
|
+
var sendOptions = kmkfUtils.SendDataCenter.getInstance(platformType).getSendData();
|
|
10963
10963
|
React.useEffect(function () {
|
|
10964
10964
|
//没有值塞个默认值
|
|
10965
10965
|
if (!(value === null || value === void 0 ? void 0 : value.length) && type !== 1) {
|
|
@@ -10990,7 +10990,7 @@ var jstGoods = function jstGoods(props) {
|
|
|
10990
10990
|
var changeOrderInfo = _objectSpread2({}, value[changeIndex]);
|
|
10991
10991
|
changeOrderInfo[type] = val;
|
|
10992
10992
|
changeOrderInfo['sendId'] = option.value;
|
|
10993
|
-
if (platformType === 'wdt' && type === 'sendName') {
|
|
10993
|
+
if ((platformType === 'wdt' || platformType === 'bsE3') && type === 'sendName') {
|
|
10994
10994
|
changeOrderInfo['sendSnapshotName'] = option.label;
|
|
10995
10995
|
}
|
|
10996
10996
|
var newList = _toConsumableArray(value);
|
|
@@ -11073,7 +11073,7 @@ var jstGoods = function jstGoods(props) {
|
|
|
11073
11073
|
return changeInputHandle(e.target.value, 'sendId');
|
|
11074
11074
|
},
|
|
11075
11075
|
value: (_value$changeIndex5 = value[changeIndex]) === null || _value$changeIndex5 === void 0 ? void 0 : _value$changeIndex5.sendId
|
|
11076
|
-
}), ['sendName', 'all'].includes(showField) && (platformType === 'wdt' ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
11076
|
+
}), ['sendName', 'all'].includes(showField) && (platformType === 'wdt' || platformType === 'bsE3' ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
11077
11077
|
style: {
|
|
11078
11078
|
minWidth: '100px',
|
|
11079
11079
|
maxWidth: '180px'
|
|
@@ -11081,7 +11081,7 @@ var jstGoods = function jstGoods(props) {
|
|
|
11081
11081
|
disabled: disabled,
|
|
11082
11082
|
placeholder: "\u53D1\u8D27\u4ED3\u540D\u79F0",
|
|
11083
11083
|
showSearch: true,
|
|
11084
|
-
options:
|
|
11084
|
+
options: sendOptions,
|
|
11085
11085
|
filterOption: filterOption,
|
|
11086
11086
|
value: ((_value$changeIndex6 = value[changeIndex]) === null || _value$changeIndex6 === void 0 ? void 0 : _value$changeIndex6.sendName) || null,
|
|
11087
11087
|
onChange: function onChange(value, option) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/basic-components",
|
|
3
|
-
"version": "1.19.8-beta.
|
|
3
|
+
"version": "1.19.8-beta.12",
|
|
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": "1.19.8-beta.
|
|
23
|
+
"@kmkf-fe-packages/kmkf-utils": "1.19.8-beta.12",
|
|
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": "
|
|
68
|
+
"gitHead": "45e2f33de8bd7a301bca54100ae04d4e8f9d6db0"
|
|
69
69
|
}
|