@kmkf-fe-packages/basic-components 2.10.22 → 2.10.23
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
|
@@ -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, request as request$1, ExpressData, isNull, imgResize, uuid, normalizeYouzanStar, 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, DxdSuppliersData, 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_FROM_MAP, JKY_ORDER_TYPE_MAP, JKY_ORDER_STATUS_MAP, getJkyLogisticInfo, 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, PLATFORM_AFTER_SALES_ORDER_CONFIG, DXD_SYSTEM_ORDER_CONFIG, BS_E3_ORDER_STATUS_MAP, KM_ORDER_TYPE_MAP, KM_ORDER_STATUS, updateOrderSubFormGoodsHandle, updateWlnGoodsHandle, updateWdtGoodsHandle, updateBsE3GoodsHandle, updateGyGoodsHandle, updateJstGoodsHandle, updateKmGoodsHandle, updateJyGoodsHandle, updateJkyGoodsHandle, updateDxdGoodsHandle, updateWdtAftersaleGoodsHandle, jstMergeIdenticalGoods, msgTypeCh, pushGyLog, skxSystemOrderBackValues, skxReturnSystemOrderBackValues, formatTrade, updateSkxGoodsHandle, formatReturnTrade, updateSkxReturnGoodsHandle } from '@kmkf-fe-packages/kmkf-utils';
|
|
6
|
+
import { AddressData, BsAddressData, WdtAddressData, GyAddressData, JstAddressData, request as request$1, ExpressData, isNull, imgResize, uuid, normalizeYouzanStar, 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, DxdSuppliersData, filterWdtOrders, WDT_ORDER_TYPE_MAP, tradeStatusMap, warehouseTypeMap, filterBsE3Orders, filterGyOrders, GY_DELIVERY_STATE_MAPPING, filterJstOrders, filterJyOrders, JY_ORDER_TYPE_MAP, JY_ORDER_STATUS_MAP, filterJkyOrders, JKY_ORDER_FROM_MAP, JKY_ORDER_TYPE_MAP, JKY_ORDER_STATUS_MAP, getJkyLogisticInfo, 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, PLATFORM_AFTER_SALES_ORDER_CONFIG, DXD_SYSTEM_ORDER_CONFIG, BS_E3_ORDER_STATUS_MAP, KM_ORDER_TYPE_MAP, KM_ORDER_STATUS, updateOrderSubFormGoodsHandle, updateWlnGoodsHandle, updateWdtGoodsHandle, updateBsE3GoodsHandle, updateGyGoodsHandle, updateJstGoodsHandle, updateKmGoodsHandle, updateJyGoodsHandle, updateJkyGoodsHandle, updateDxdGoodsHandle, 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';
|
|
@@ -10727,6 +10727,7 @@ var SubForm = function SubForm(props) {
|
|
|
10727
10727
|
data,
|
|
10728
10728
|
success,
|
|
10729
10729
|
_cursorIdRef$current2,
|
|
10730
|
+
_cursorIdRef$current3,
|
|
10730
10731
|
transDataSourceItem,
|
|
10731
10732
|
headerKeys,
|
|
10732
10733
|
newList,
|
|
@@ -10785,6 +10786,9 @@ var SubForm = function SubForm(props) {
|
|
|
10785
10786
|
if (cursorIdRef.current.cursorId) {
|
|
10786
10787
|
params.cursorId = cursorIdRef.current.cursorId;
|
|
10787
10788
|
}
|
|
10789
|
+
if (cursorIdRef.current.cursorCreated) {
|
|
10790
|
+
params.cursorCreated = cursorIdRef.current.cursorCreated;
|
|
10791
|
+
}
|
|
10788
10792
|
} else {
|
|
10789
10793
|
cursorIdRef.current = {
|
|
10790
10794
|
queryKey: queryKey
|
|
@@ -10802,6 +10806,9 @@ var SubForm = function SubForm(props) {
|
|
|
10802
10806
|
if ((data === null || data === void 0 ? void 0 : data.cursorId) && ((_cursorIdRef$current2 = cursorIdRef.current) === null || _cursorIdRef$current2 === void 0 ? void 0 : _cursorIdRef$current2.queryKey) === queryKey) {
|
|
10803
10807
|
cursorIdRef.current.cursorId = data.cursorId;
|
|
10804
10808
|
}
|
|
10809
|
+
if ((data === null || data === void 0 ? void 0 : data.cursorCreated) && ((_cursorIdRef$current3 = cursorIdRef.current) === null || _cursorIdRef$current3 === void 0 ? void 0 : _cursorIdRef$current3.queryKey) === queryKey) {
|
|
10810
|
+
cursorIdRef.current.cursorCreated = data.cursorCreated;
|
|
10811
|
+
}
|
|
10805
10812
|
transDataSourceItem = transformWorkOrderData(componentDtoList.length ? componentDtoList : componentList, 'edit');
|
|
10806
10813
|
headerKeys = correlationList.map(function (t) {
|
|
10807
10814
|
return t.key;
|
|
@@ -21162,7 +21169,7 @@ var getColumns$2 = function getColumns(_ref) {
|
|
|
21162
21169
|
}
|
|
21163
21170
|
}, {
|
|
21164
21171
|
dataIndex: 'returnPrice',
|
|
21165
|
-
title: "".concat(text, "\u9000\
|
|
21172
|
+
title: "".concat(text, "\u9000\u6B3E\u91D1\u989D"),
|
|
21166
21173
|
align: 'center',
|
|
21167
21174
|
ellipsis: true,
|
|
21168
21175
|
width: 100
|
|
@@ -27188,12 +27195,13 @@ var getWdtOrderListSingleton = function getWdtOrderListSingleton(orderNo) {
|
|
|
27188
27195
|
var _data$data, _data$data$trades;
|
|
27189
27196
|
if (data === null || data === void 0 ? void 0 : (_data$data = data.data) === null || _data$data === void 0 ? void 0 : (_data$data$trades = _data$data.trades) === null || _data$data$trades === void 0 ? void 0 : _data$data$trades.length) {
|
|
27190
27197
|
data.data.trades = filterWdtOrders(data === null || data === void 0 ? void 0 : data.data, orderNo).map(function (item) {
|
|
27191
|
-
var _tradeStatusMap$data
|
|
27198
|
+
var _tradeStatusMap$data$, _warehouseTypeMap$dat;
|
|
27192
27199
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
27193
27200
|
billNo: item.tradeNo,
|
|
27194
27201
|
billType: WDT_ORDER_TYPE_MAP[item.tradeType],
|
|
27195
27202
|
billTag: item.tagName || item.tags,
|
|
27196
27203
|
tradeStatusValue: tradeStatusMap === null || tradeStatusMap === void 0 ? void 0 : (_tradeStatusMap$data$ = tradeStatusMap[data.data.version]) === null || _tradeStatusMap$data$ === void 0 ? void 0 : _tradeStatusMap$data$[item.tradeStatus],
|
|
27204
|
+
warehouseType: warehouseTypeMap === null || warehouseTypeMap === void 0 ? void 0 : (_warehouseTypeMap$dat = warehouseTypeMap[data.data.version]) === null || _warehouseTypeMap$dat === void 0 ? void 0 : _warehouseTypeMap$dat[item.warehouseType],
|
|
27197
27205
|
logisticsName: ExpressData.getInstance('wdt').getExpressNameByCode(item === null || item === void 0 ? void 0 : item.logisticsCode, false) || (item === null || item === void 0 ? void 0 : item.logisticsName)
|
|
27198
27206
|
});
|
|
27199
27207
|
});
|
|
@@ -48,12 +48,36 @@ declare const SYSTEM_ORDER_COLUMNS_MAP: {
|
|
|
48
48
|
render: (val: any, record: any, _?: any, parent?: any, index?: number | undefined) => any;
|
|
49
49
|
renderExport: (val: any, record: any, _?: any, parent?: any, index?: number | undefined) => any;
|
|
50
50
|
})[];
|
|
51
|
-
WDT_SYSTEM_ORDER: {
|
|
51
|
+
WDT_SYSTEM_ORDER: ({
|
|
52
52
|
title: string;
|
|
53
53
|
dataIndex: string;
|
|
54
54
|
width: number;
|
|
55
55
|
ellipsis: boolean;
|
|
56
|
-
|
|
56
|
+
conditionOptionsSetting?: undefined;
|
|
57
|
+
} | {
|
|
58
|
+
title: string;
|
|
59
|
+
dataIndex: string;
|
|
60
|
+
width: number;
|
|
61
|
+
ellipsis: boolean;
|
|
62
|
+
conditionOptionsSetting: {
|
|
63
|
+
dataType: string;
|
|
64
|
+
getOptions: () => any[];
|
|
65
|
+
};
|
|
66
|
+
} | {
|
|
67
|
+
title: string;
|
|
68
|
+
dataIndex: string;
|
|
69
|
+
width: number;
|
|
70
|
+
ellipsis: boolean;
|
|
71
|
+
conditionOptionsSetting: {
|
|
72
|
+
dataType: string;
|
|
73
|
+
getOptions: ({ wdtVersion }: {
|
|
74
|
+
wdtVersion: string;
|
|
75
|
+
}) => {
|
|
76
|
+
value: string;
|
|
77
|
+
label: string;
|
|
78
|
+
}[];
|
|
79
|
+
};
|
|
80
|
+
})[];
|
|
57
81
|
BS_E3_SYSTEM_ORDER: ({
|
|
58
82
|
title: string;
|
|
59
83
|
dataIndex: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/basic-components",
|
|
3
|
-
"version": "2.10.
|
|
3
|
+
"version": "2.10.23",
|
|
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.10.
|
|
23
|
+
"@kmkf-fe-packages/kmkf-utils": "2.10.23",
|
|
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": "bd441601bb0f5b93d8b1500c0a066c3d7e797c45"
|
|
70
70
|
}
|