@kmkf-fe-packages/basic-components 2.5.2-localtest.0 → 2.6.1-beta.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/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, 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_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, BS_E3_ORDER_STATUS_MAP, KM_ORDER_TYPE_MAP, KM_ORDER_STATUS, 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';
|
|
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_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, BS_E3_ORDER_STATUS_MAP, KM_ORDER_TYPE_MAP, KM_ORDER_STATUS, 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';
|
|
@@ -9033,6 +9033,12 @@ var processBsReturnGoods = function processBsReturnGoods(getValue) {
|
|
|
9033
9033
|
var processErpSystemOrder = function processErpSystemOrder(getValue) {
|
|
9034
9034
|
return function (nex, config) {
|
|
9035
9035
|
var systemOrderMap = {
|
|
9036
|
+
PLATFORM_AFTER_SALES_ORDER: {
|
|
9037
|
+
no: 'platformAfaterSalesOrderNo',
|
|
9038
|
+
ids: 'platformAfaterSalesSelectIds',
|
|
9039
|
+
order: 'platformAfaterSalesShowOrder',
|
|
9040
|
+
shopId: 'platformAfaterSalesShopId'
|
|
9041
|
+
},
|
|
9036
9042
|
BS_SYSTEM_ORDER: {
|
|
9037
9043
|
no: 'bsSystemOrderNo',
|
|
9038
9044
|
ids: 'bsSystemSelectIds',
|
|
@@ -9079,12 +9085,14 @@ var processErpSystemOrder = function processErpSystemOrder(getValue) {
|
|
|
9079
9085
|
order: 'wdtReturnBillShowOrder'
|
|
9080
9086
|
}
|
|
9081
9087
|
};
|
|
9082
|
-
return _defineProperty({}, nex.uniqueKey, {
|
|
9088
|
+
return _defineProperty({}, nex.uniqueKey, _objectSpread2({
|
|
9083
9089
|
orderNo: getValue("".concat(nex.uniqueKey, "_").concat(systemOrderMap[nex.workOrderComponentType].no)),
|
|
9084
9090
|
orders: nex.workOrderComponentType === 'WDT_RETURN_BILL_NO' ? jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_").concat(systemOrderMap[nex.workOrderComponentType].order)), []) : [],
|
|
9085
9091
|
selectIds: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_").concat(systemOrderMap[nex.workOrderComponentType].ids)), []),
|
|
9086
9092
|
showOrderInfo: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_").concat(systemOrderMap[nex.workOrderComponentType].order)), [])
|
|
9087
|
-
}
|
|
9093
|
+
}, systemOrderMap[nex.workOrderComponentType].shopId ? {
|
|
9094
|
+
shopId: getValue("".concat(nex.uniqueKey, "_").concat(systemOrderMap[nex.workOrderComponentType].shopId))
|
|
9095
|
+
} : {}));
|
|
9088
9096
|
};
|
|
9089
9097
|
};
|
|
9090
9098
|
var processBuyerMessageNotice = function processBuyerMessageNotice(getValue) {
|
|
@@ -9132,6 +9140,10 @@ var processErpTradeId = function processErpTradeId(getValue) {
|
|
|
9132
9140
|
EXCHANGE_TRADE_ID: {
|
|
9133
9141
|
key: 'tradeItemList',
|
|
9134
9142
|
defaultValue: []
|
|
9143
|
+
},
|
|
9144
|
+
SWAP_OUT_TRADE_ID: {
|
|
9145
|
+
key: 'tradeItemList',
|
|
9146
|
+
defaultValue: []
|
|
9135
9147
|
}
|
|
9136
9148
|
};
|
|
9137
9149
|
return _defineProperty({}, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_").concat(SYSTEM_ORDER_MAP[nex.workOrderComponentType].key)), SYSTEM_ORDER_MAP[nex.workOrderComponentType].defaultValue));
|
|
@@ -9484,6 +9496,7 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
|
|
|
9484
9496
|
BS_RETURN_GOODS: processBsReturnGoods,
|
|
9485
9497
|
WDT_RETURN_GOODS: processWdtReturnGoods(),
|
|
9486
9498
|
JST_RETURN_GOODS: processJstReturnGoods(templateColumns),
|
|
9499
|
+
PLATFORM_AFTER_SALES_ORDER: processErpSystemOrder,
|
|
9487
9500
|
BS_SYSTEM_ORDER: processErpSystemOrder,
|
|
9488
9501
|
KM_SYSTEM_ORDER: processErpSystemOrder,
|
|
9489
9502
|
WLN_SYSTEM_ORDER: processErpSystemOrder,
|
|
@@ -9499,6 +9512,7 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
|
|
|
9499
9512
|
RETURN_GOODS_TRADE_ID: processErpTradeId,
|
|
9500
9513
|
BS_DELIVERY_NO: processErpTradeId,
|
|
9501
9514
|
REISSUE_TRADE_ID: processErpTradeId,
|
|
9515
|
+
SWAP_OUT_TRADE_ID: processErpTradeId,
|
|
9502
9516
|
ERP_AFTER_SALE_TRADE_ID: processErpTradeId,
|
|
9503
9517
|
EXCHANGE_TRADE_ID: processErpTradeId,
|
|
9504
9518
|
WLN_GOODS: processWlnGoods(templateColumns),
|
|
@@ -11629,7 +11643,7 @@ var GoodsModal = function GoodsModal(props) {
|
|
|
11629
11643
|
key: item.value
|
|
11630
11644
|
}, item.label);
|
|
11631
11645
|
})), /*#__PURE__*/React.createElement(Search, {
|
|
11632
|
-
placeholder: searchParams.type !== 'orderProduct' ? platform === 'taobao' ? '
|
|
11646
|
+
placeholder: searchParams.type !== 'orderProduct' ? platform === 'taobao' ? '宝贝标题' : '商品ID' : '宝贝标题',
|
|
11633
11647
|
// enterButton="搜索"
|
|
11634
11648
|
className: "search",
|
|
11635
11649
|
value: platform === 'taobao' ? searchParams.title : searchParams.numIids,
|
|
@@ -16139,30 +16153,33 @@ var GoodList = function GoodList(props, ref) {
|
|
|
16139
16153
|
selectedRowKeys: selectIds,
|
|
16140
16154
|
fixed: true,
|
|
16141
16155
|
onSelect: function onSelect(record, selected) {
|
|
16156
|
+
var uniqueKey = "".concat(record.goodNo, "-").concat(record.specNo);
|
|
16142
16157
|
if (selected) {
|
|
16143
|
-
setSelectIds([].concat(_toConsumableArray(selectIds), [
|
|
16158
|
+
setSelectIds([].concat(_toConsumableArray(selectIds), [uniqueKey]));
|
|
16144
16159
|
setSelect([].concat(_toConsumableArray(selectList), [record]));
|
|
16145
16160
|
} else {
|
|
16146
16161
|
setSelectIds(selectIds.filter(function (t) {
|
|
16147
|
-
return t !==
|
|
16162
|
+
return t !== uniqueKey;
|
|
16148
16163
|
}));
|
|
16149
16164
|
setSelect(selectList.filter(function (t) {
|
|
16150
|
-
return t.specNo !==
|
|
16165
|
+
return "".concat(t.goodNo, "-").concat(t.specNo) !== uniqueKey;
|
|
16151
16166
|
}));
|
|
16152
16167
|
}
|
|
16153
16168
|
},
|
|
16154
16169
|
onSelectAll: function onSelectAll(selected, selectedRows, changeRows) {
|
|
16155
16170
|
if (selected) {
|
|
16156
|
-
|
|
16157
|
-
return t.specNo;
|
|
16158
|
-
})
|
|
16171
|
+
var changeKeys = changeRows.map(function (t) {
|
|
16172
|
+
return "".concat(t.goodNo, "-").concat(t.specNo);
|
|
16173
|
+
});
|
|
16174
|
+
setSelectIds([].concat(_toConsumableArray(selectIds), _toConsumableArray(changeKeys)));
|
|
16159
16175
|
setSelect([].concat(_toConsumableArray(selectList), _toConsumableArray(changeRows)));
|
|
16160
16176
|
} else {
|
|
16161
|
-
|
|
16162
|
-
return t.specNo;
|
|
16163
|
-
})
|
|
16177
|
+
var _changeKeys = changeRows.map(function (t) {
|
|
16178
|
+
return "".concat(t.goodNo, "-").concat(t.specNo);
|
|
16179
|
+
});
|
|
16180
|
+
setSelectIds(difference(selectIds, _changeKeys));
|
|
16164
16181
|
var list = differenceWith(selectList, changeRows, function (arrVal, othVal) {
|
|
16165
|
-
return arrVal.specNo !== othVal.specNo;
|
|
16182
|
+
return "".concat(arrVal.goodNo, "-").concat(arrVal.specNo) !== "".concat(othVal.goodNo, "-").concat(othVal.specNo);
|
|
16166
16183
|
});
|
|
16167
16184
|
setSelect(list);
|
|
16168
16185
|
}
|
|
@@ -16170,11 +16187,12 @@ var GoodList = function GoodList(props, ref) {
|
|
|
16170
16187
|
};
|
|
16171
16188
|
var showTable = function showTable() {
|
|
16172
16189
|
var handleDelete = function handleDelete(record) {
|
|
16190
|
+
var uniqueKey = "".concat(record.goodNo, "-").concat(record.specNo);
|
|
16173
16191
|
setSelectIds(selectIds.filter(function (t) {
|
|
16174
|
-
return t !==
|
|
16192
|
+
return t !== uniqueKey;
|
|
16175
16193
|
}));
|
|
16176
16194
|
setSelect(selectList.filter(function (t) {
|
|
16177
|
-
return t.specNo !==
|
|
16195
|
+
return "".concat(t.goodNo, "-").concat(t.specNo) !== uniqueKey;
|
|
16178
16196
|
}));
|
|
16179
16197
|
};
|
|
16180
16198
|
var showColumns = [{
|
|
@@ -16198,7 +16216,9 @@ var GoodList = function GoodList(props, ref) {
|
|
|
16198
16216
|
}
|
|
16199
16217
|
}, /*#__PURE__*/React.createElement(Table, {
|
|
16200
16218
|
columns: showColumns,
|
|
16201
|
-
rowKey:
|
|
16219
|
+
rowKey: function rowKey(record) {
|
|
16220
|
+
return "".concat(record.goodNo, "-").concat(record.specNo);
|
|
16221
|
+
},
|
|
16202
16222
|
dataSource: selectList,
|
|
16203
16223
|
scroll: {
|
|
16204
16224
|
x: '100%',
|
|
@@ -16228,7 +16248,9 @@ var GoodList = function GoodList(props, ref) {
|
|
|
16228
16248
|
}, /*#__PURE__*/React.createElement(Table, _objectSpread2(_objectSpread2({
|
|
16229
16249
|
className: "GoodModalColumns",
|
|
16230
16250
|
rowSelection: rowSelection,
|
|
16231
|
-
rowKey:
|
|
16251
|
+
rowKey: function rowKey(record) {
|
|
16252
|
+
return "".concat(record.goodNo, "-").concat(record.specNo);
|
|
16253
|
+
},
|
|
16232
16254
|
columns: columns,
|
|
16233
16255
|
scroll: {
|
|
16234
16256
|
x: '100%',
|
|
@@ -25803,12 +25825,45 @@ var jkyUtils = {
|
|
|
25803
25825
|
};
|
|
25804
25826
|
|
|
25805
25827
|
var singletonMap$8 = new Map();
|
|
25828
|
+
var getAfterSalesOrderList = function getAfterSalesOrderList(params) {
|
|
25829
|
+
var cacheKey = "".concat(params.orderNo, "_").concat(params.shopId);
|
|
25830
|
+
if (!singletonMap$8.has(cacheKey)) {
|
|
25831
|
+
var p = new Promise(function (resolve, reject) {
|
|
25832
|
+
var doReject = function doReject(err) {
|
|
25833
|
+
// 清空掉错误的请求记录
|
|
25834
|
+
singletonMap$8.delete(cacheKey);
|
|
25835
|
+
reject(err);
|
|
25836
|
+
};
|
|
25837
|
+
extendRequest('/qy/gdfw/order/queryTradeAfterSaleList', {
|
|
25838
|
+
method: 'post',
|
|
25839
|
+
data: params
|
|
25840
|
+
}).then(function (res) {
|
|
25841
|
+
if (res === null || res === void 0 ? void 0 : res.success) {
|
|
25842
|
+
resolve(res.data || []);
|
|
25843
|
+
// 延迟10秒清除,保证订单的时效性
|
|
25844
|
+
setTimeout(function () {
|
|
25845
|
+
singletonMap$8.delete(cacheKey);
|
|
25846
|
+
}, 1000 * 10);
|
|
25847
|
+
} else {
|
|
25848
|
+
doReject(res);
|
|
25849
|
+
}
|
|
25850
|
+
}).catch(doReject);
|
|
25851
|
+
});
|
|
25852
|
+
singletonMap$8.set(cacheKey, p);
|
|
25853
|
+
}
|
|
25854
|
+
return singletonMap$8.get(cacheKey);
|
|
25855
|
+
};
|
|
25856
|
+
var platformUtils = {
|
|
25857
|
+
getAfterSalesOrderList: getAfterSalesOrderList
|
|
25858
|
+
};
|
|
25859
|
+
|
|
25860
|
+
var singletonMap$9 = new Map();
|
|
25806
25861
|
var getOrderListSingleton$2 = function getOrderListSingleton(orderNo) {
|
|
25807
|
-
if (!singletonMap$
|
|
25862
|
+
if (!singletonMap$9.has(orderNo)) {
|
|
25808
25863
|
var p = new Promise(function (resolve, reject) {
|
|
25809
25864
|
var doReject = function doReject(err) {
|
|
25810
25865
|
// 清空掉错误的请求记录
|
|
25811
|
-
singletonMap$
|
|
25866
|
+
singletonMap$9.delete(orderNo);
|
|
25812
25867
|
reject(err);
|
|
25813
25868
|
};
|
|
25814
25869
|
extendRequest('/qy/gdfw/order/kmErpOrderDetail', {
|
|
@@ -25834,16 +25889,16 @@ var getOrderListSingleton$2 = function getOrderListSingleton(orderNo) {
|
|
|
25834
25889
|
}
|
|
25835
25890
|
// 延迟10秒清除,保证订单的时效性
|
|
25836
25891
|
setTimeout(function () {
|
|
25837
|
-
singletonMap$
|
|
25892
|
+
singletonMap$9.delete(orderNo);
|
|
25838
25893
|
}, 1000 * 10);
|
|
25839
25894
|
} else {
|
|
25840
25895
|
doReject(data);
|
|
25841
25896
|
}
|
|
25842
25897
|
}).catch(doReject);
|
|
25843
25898
|
});
|
|
25844
|
-
singletonMap$
|
|
25899
|
+
singletonMap$9.set(orderNo, p);
|
|
25845
25900
|
}
|
|
25846
|
-
return singletonMap$
|
|
25901
|
+
return singletonMap$9.get(orderNo);
|
|
25847
25902
|
};
|
|
25848
25903
|
var kmUtils = {
|
|
25849
25904
|
getOrderListSingleton: getOrderListSingleton$2
|
|
@@ -25861,7 +25916,8 @@ var columnsMap = {
|
|
|
25861
25916
|
JST_SYSTEM_ORDER: JST_SYSTEM_ORDER_CONFIG.columns,
|
|
25862
25917
|
JY_SYSTEM_ORDER: JY_SYSTEM_ORDER_CONFIG.columns,
|
|
25863
25918
|
JKY_SYSTEM_ORDER: JKY_SYSTEM_ORDER_CONFIG.columns,
|
|
25864
|
-
WDT_RETURN_BILL_NO: WDT_RETURN_BILL_NO_CONFIG.columns
|
|
25919
|
+
WDT_RETURN_BILL_NO: WDT_RETURN_BILL_NO_CONFIG.columns,
|
|
25920
|
+
PLATFORM_AFTER_SALES_ORDER: PLATFORM_AFTER_SALES_ORDER_CONFIG.columns
|
|
25865
25921
|
};
|
|
25866
25922
|
var rowKeyMap = {
|
|
25867
25923
|
BS_SYSTEM_ORDER: 'billNo',
|
|
@@ -25873,8 +25929,10 @@ var rowKeyMap = {
|
|
|
25873
25929
|
JST_SYSTEM_ORDER: 'oId',
|
|
25874
25930
|
JY_SYSTEM_ORDER: 'tradeNo',
|
|
25875
25931
|
JKY_SYSTEM_ORDER: 'tradeNo',
|
|
25876
|
-
WDT_RETURN_BILL_NO: 'refundNo'
|
|
25932
|
+
WDT_RETURN_BILL_NO: 'refundNo',
|
|
25933
|
+
PLATFORM_AFTER_SALES_ORDER: 'afterSaleOrderId'
|
|
25877
25934
|
};
|
|
25935
|
+
var RADIO_TABLE_KEYS = ['PLATFORM_AFTER_SALES_ORDER'];
|
|
25878
25936
|
var index$2 = (function (props) {
|
|
25879
25937
|
var value = props.value,
|
|
25880
25938
|
_onChange = props.onChange,
|
|
@@ -25884,6 +25942,7 @@ var index$2 = (function (props) {
|
|
|
25884
25942
|
showHeader = _props$showHeader === void 0 ? [] : _props$showHeader;
|
|
25885
25943
|
var onceRef = useRef(false);
|
|
25886
25944
|
var valueRef = useRef(null);
|
|
25945
|
+
var isRadio = RADIO_TABLE_KEYS.includes(type);
|
|
25887
25946
|
// 字段筛选状态 - 用户选择要筛选的字段(单选)
|
|
25888
25947
|
var _useState = useState(''),
|
|
25889
25948
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -25935,6 +25994,8 @@ var index$2 = (function (props) {
|
|
|
25935
25994
|
getJyOrderList(value.orderNo);
|
|
25936
25995
|
} else if (type === 'JKY_SYSTEM_ORDER') {
|
|
25937
25996
|
getJkyOrderList(value.orderNo);
|
|
25997
|
+
} else if (type === 'PLATFORM_AFTER_SALES_ORDER') {
|
|
25998
|
+
value.shopId && getPlatformAfterSalesOrderList(value.orderNo, value.shopId);
|
|
25938
25999
|
}
|
|
25939
26000
|
}
|
|
25940
26001
|
}, [value, type]);
|
|
@@ -26309,7 +26370,33 @@ var index$2 = (function (props) {
|
|
|
26309
26370
|
return _ref12.apply(this, arguments);
|
|
26310
26371
|
};
|
|
26311
26372
|
}();
|
|
26373
|
+
var getPlatformAfterSalesOrderList = /*#__PURE__*/function () {
|
|
26374
|
+
var _ref13 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee10(orderNo, shopId) {
|
|
26375
|
+
return _regeneratorRuntime().wrap(function _callee10$(_context10) {
|
|
26376
|
+
while (1) switch (_context10.prev = _context10.next) {
|
|
26377
|
+
case 0:
|
|
26378
|
+
platformUtils.getAfterSalesOrderList({
|
|
26379
|
+
orderNo: orderNo,
|
|
26380
|
+
shopId: shopId
|
|
26381
|
+
}).then(function (data) {
|
|
26382
|
+
_onChange === null || _onChange === void 0 ? void 0 : _onChange(_objectSpread2(_objectSpread2({}, valueRef.current || {}), {}, {
|
|
26383
|
+
orders: data || [],
|
|
26384
|
+
showOrderInfo: data || []
|
|
26385
|
+
}));
|
|
26386
|
+
});
|
|
26387
|
+
onceRef.current = false;
|
|
26388
|
+
case 2:
|
|
26389
|
+
case "end":
|
|
26390
|
+
return _context10.stop();
|
|
26391
|
+
}
|
|
26392
|
+
}, _callee10);
|
|
26393
|
+
}));
|
|
26394
|
+
return function getPlatformAfterSalesOrderList(_x10, _x11) {
|
|
26395
|
+
return _ref13.apply(this, arguments);
|
|
26396
|
+
};
|
|
26397
|
+
}();
|
|
26312
26398
|
var rowSelection = {
|
|
26399
|
+
type: isRadio ? 'radio' : 'checkbox',
|
|
26313
26400
|
selectedRowKeys: (value === null || value === void 0 ? void 0 : value.selectIds) || [],
|
|
26314
26401
|
fixed: true,
|
|
26315
26402
|
onChange: function onChange(selectedRowKeys, selectedRows, info) {
|
|
@@ -26747,16 +26834,16 @@ var orderSubFormConstants = {
|
|
|
26747
26834
|
};
|
|
26748
26835
|
|
|
26749
26836
|
var getSelectWidgetMap$1 = orderSubFormConstants.getSelectWidgetMap;
|
|
26750
|
-
var singletonMap$
|
|
26837
|
+
var singletonMap$a = new Map();
|
|
26751
26838
|
var getOrderListSingleton$3 = function getOrderListSingleton(parmas) {
|
|
26752
26839
|
var orderNo = parmas.orderNo,
|
|
26753
26840
|
shopId = parmas.shopId;
|
|
26754
26841
|
var key = "".concat(orderNo, "-").concat(shopId);
|
|
26755
|
-
if (!singletonMap$
|
|
26842
|
+
if (!singletonMap$a.has(key)) {
|
|
26756
26843
|
var p = new Promise(function (resolve, reject) {
|
|
26757
26844
|
var doReject = function doReject(err) {
|
|
26758
26845
|
// 清空掉错误的请求记录
|
|
26759
|
-
singletonMap$
|
|
26846
|
+
singletonMap$a.delete(key);
|
|
26760
26847
|
reject(err);
|
|
26761
26848
|
};
|
|
26762
26849
|
extendRequest('/qy/gdfw/order/subOrderItemsDetail', {
|
|
@@ -26772,16 +26859,16 @@ var getOrderListSingleton$3 = function getOrderListSingleton(parmas) {
|
|
|
26772
26859
|
}
|
|
26773
26860
|
// 延迟10秒清除,保证订单的时效性
|
|
26774
26861
|
setTimeout(function () {
|
|
26775
|
-
singletonMap$
|
|
26862
|
+
singletonMap$a.delete(key);
|
|
26776
26863
|
}, 1000 * 10);
|
|
26777
26864
|
} else {
|
|
26778
26865
|
doReject(data);
|
|
26779
26866
|
}
|
|
26780
26867
|
}).catch(doReject);
|
|
26781
26868
|
});
|
|
26782
|
-
singletonMap$
|
|
26869
|
+
singletonMap$a.set(key, p);
|
|
26783
26870
|
}
|
|
26784
|
-
return singletonMap$
|
|
26871
|
+
return singletonMap$a.get(key);
|
|
26785
26872
|
};
|
|
26786
26873
|
var renderEditItem = function renderEditItem(_ref) {
|
|
26787
26874
|
var item = _ref.item,
|
|
@@ -29477,7 +29564,7 @@ var GoodsModal$5 = function GoodsModal(props) {
|
|
|
29477
29564
|
key: item.value
|
|
29478
29565
|
}, item.label);
|
|
29479
29566
|
})), /*#__PURE__*/React.createElement(Search$1, {
|
|
29480
|
-
placeholder: "\u5B9D\u8D1D\
|
|
29567
|
+
placeholder: "\u5B9D\u8D1D\u6807\u9898",
|
|
29481
29568
|
allowClear: true,
|
|
29482
29569
|
enterButton: "\u641C\u7D22",
|
|
29483
29570
|
style: {
|
|
@@ -31410,5 +31497,8 @@ var SYSTEM_ORDER_COLUMNS_MAP = {
|
|
|
31410
31497
|
JKY_SYSTEM_ORDER: JKY_SYSTEM_ORDER_CONFIG.columns,
|
|
31411
31498
|
WDT_RETURN_BILL_NO: WDT_RETURN_BILL_NO_CONFIG.columns
|
|
31412
31499
|
};
|
|
31500
|
+
var FIELD_COLUMNS_MAP = {
|
|
31501
|
+
PLATFORM_AFTER_SALES_ORDER: PLATFORM_AFTER_SALES_ORDER_CONFIG.columns
|
|
31502
|
+
};
|
|
31413
31503
|
|
|
31414
|
-
export { ApaasAddress as Address, AliPay, Province as ApaasAddress, ApaasCascader, ApaasCheckbox, ApaasDate, withFormItem as ApaasHoc, ApaasImage, ApaasInput, ApaasInputNumber, ApaasLogistics, ApaasMultipleSelect, ApaasPosting, ApaasRadio, ApaasRate, ApaasSelect, ApaasSlider, ApaasTextArea, ApaasUpload, ApaasUploadAsync$1 as ApaasUploadAsync, ApaasUploadFile, index as ApaasUploadProAsync, AsyncSelect, bsE3Reissue as BsE3Reissue, BsExchange, BsGoods, BsReissue, BsReturnGoods as BsReturn, index$2 as BsSystemOrder, BuyerNick, CalculationInput, ChooseBaby, CommonExchangeGoods, CommonGoods, CommonSystemOrder$1 as CommonMultiStatus, CommonReturnGoods, CommonStatus, CommonSystemOrder, CopyTextIcon, ExpressLogistics, Goods, index$3 as GoodsTable, GyReissue, GyReturnGoods as GyReturn, IdentifyAddress, Invoice, jstGoods as JstGoods, ItemList as JstItemList, KmVideo, LogisticsInterception, LogisticsMoreInterception, LogisticsMoreTrajectory, LogisticsTrajectory, MsgStatus, OrderSubForm, utils as OrderSubFormUtils, ParseLogistics, Payment, PublicReissue, RemarkInput as Remark, ExpressLogistics as ReturnLogistics, SYSTEM_ORDER_COLUMNS_MAP, ShopNameSelect as ShopName, SkxGoods, IdInputSelect as SkxIdInputSelect, Status, SubForm, Supplier, TBGoodId, TBGoodSerial, TradeId, WdtGoodList, wdtReissue as WdtReissue, WlnGoods, columnsBaseInfoMap, erpColumnsMap, erpFormValidator, index$1 as erpModalColumnsMap, getColumns$4 as getGyColumns, getColumns$9 as getJkyColumns, getColumns$5 as getJstColumns, getColumns$7 as getJyColumns, getColumns$6 as getKmColumns, getColumns$8 as getSkxColumns, getColumns$2 as getWdtColumns, getColumns$3 as getWlnColumns, orderSubFormConstants, renderMap, renderSplitMap };
|
|
31504
|
+
export { ApaasAddress as Address, AliPay, Province as ApaasAddress, ApaasCascader, ApaasCheckbox, ApaasDate, withFormItem as ApaasHoc, ApaasImage, ApaasInput, ApaasInputNumber, ApaasLogistics, ApaasMultipleSelect, ApaasPosting, ApaasRadio, ApaasRate, ApaasSelect, ApaasSlider, ApaasTextArea, ApaasUpload, ApaasUploadAsync$1 as ApaasUploadAsync, ApaasUploadFile, index as ApaasUploadProAsync, AsyncSelect, bsE3Reissue as BsE3Reissue, BsExchange, BsGoods, BsReissue, BsReturnGoods as BsReturn, index$2 as BsSystemOrder, BuyerNick, CalculationInput, ChooseBaby, CommonExchangeGoods, CommonGoods, CommonSystemOrder$1 as CommonMultiStatus, CommonReturnGoods, CommonStatus, CommonSystemOrder, CopyTextIcon, ExpressLogistics, FIELD_COLUMNS_MAP, Goods, index$3 as GoodsTable, GyReissue, GyReturnGoods as GyReturn, IdentifyAddress, Invoice, jstGoods as JstGoods, ItemList as JstItemList, KmVideo, LogisticsInterception, LogisticsMoreInterception, LogisticsMoreTrajectory, LogisticsTrajectory, MsgStatus, OrderSubForm, utils as OrderSubFormUtils, ParseLogistics, Payment, PublicReissue, RemarkInput as Remark, ExpressLogistics as ReturnLogistics, SYSTEM_ORDER_COLUMNS_MAP, ShopNameSelect as ShopName, SkxGoods, IdInputSelect as SkxIdInputSelect, Status, SubForm, Supplier, TBGoodId, TBGoodSerial, TradeId, WdtGoodList, wdtReissue as WdtReissue, WlnGoods, columnsBaseInfoMap, erpColumnsMap, erpFormValidator, index$1 as erpModalColumnsMap, getColumns$4 as getGyColumns, getColumns$9 as getJkyColumns, getColumns$5 as getJstColumns, getColumns$7 as getJyColumns, getColumns$6 as getKmColumns, getColumns$8 as getSkxColumns, getColumns$2 as getWdtColumns, getColumns$3 as getWlnColumns, orderSubFormConstants, renderMap, renderSplitMap };
|
package/dist/index.js
CHANGED
|
@@ -9048,6 +9048,12 @@ var processBsReturnGoods = function processBsReturnGoods(getValue) {
|
|
|
9048
9048
|
var processErpSystemOrder = function processErpSystemOrder(getValue) {
|
|
9049
9049
|
return function (nex, config) {
|
|
9050
9050
|
var systemOrderMap = {
|
|
9051
|
+
PLATFORM_AFTER_SALES_ORDER: {
|
|
9052
|
+
no: 'platformAfaterSalesOrderNo',
|
|
9053
|
+
ids: 'platformAfaterSalesSelectIds',
|
|
9054
|
+
order: 'platformAfaterSalesShowOrder',
|
|
9055
|
+
shopId: 'platformAfaterSalesShopId'
|
|
9056
|
+
},
|
|
9051
9057
|
BS_SYSTEM_ORDER: {
|
|
9052
9058
|
no: 'bsSystemOrderNo',
|
|
9053
9059
|
ids: 'bsSystemSelectIds',
|
|
@@ -9094,12 +9100,14 @@ var processErpSystemOrder = function processErpSystemOrder(getValue) {
|
|
|
9094
9100
|
order: 'wdtReturnBillShowOrder'
|
|
9095
9101
|
}
|
|
9096
9102
|
};
|
|
9097
|
-
return _defineProperty({}, nex.uniqueKey, {
|
|
9103
|
+
return _defineProperty({}, nex.uniqueKey, _objectSpread2({
|
|
9098
9104
|
orderNo: getValue("".concat(nex.uniqueKey, "_").concat(systemOrderMap[nex.workOrderComponentType].no)),
|
|
9099
9105
|
orders: nex.workOrderComponentType === 'WDT_RETURN_BILL_NO' ? jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_").concat(systemOrderMap[nex.workOrderComponentType].order)), []) : [],
|
|
9100
9106
|
selectIds: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_").concat(systemOrderMap[nex.workOrderComponentType].ids)), []),
|
|
9101
9107
|
showOrderInfo: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_").concat(systemOrderMap[nex.workOrderComponentType].order)), [])
|
|
9102
|
-
}
|
|
9108
|
+
}, systemOrderMap[nex.workOrderComponentType].shopId ? {
|
|
9109
|
+
shopId: getValue("".concat(nex.uniqueKey, "_").concat(systemOrderMap[nex.workOrderComponentType].shopId))
|
|
9110
|
+
} : {}));
|
|
9103
9111
|
};
|
|
9104
9112
|
};
|
|
9105
9113
|
var processBuyerMessageNotice = function processBuyerMessageNotice(getValue) {
|
|
@@ -9147,6 +9155,10 @@ var processErpTradeId = function processErpTradeId(getValue) {
|
|
|
9147
9155
|
EXCHANGE_TRADE_ID: {
|
|
9148
9156
|
key: 'tradeItemList',
|
|
9149
9157
|
defaultValue: []
|
|
9158
|
+
},
|
|
9159
|
+
SWAP_OUT_TRADE_ID: {
|
|
9160
|
+
key: 'tradeItemList',
|
|
9161
|
+
defaultValue: []
|
|
9150
9162
|
}
|
|
9151
9163
|
};
|
|
9152
9164
|
return _defineProperty({}, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_").concat(SYSTEM_ORDER_MAP[nex.workOrderComponentType].key)), SYSTEM_ORDER_MAP[nex.workOrderComponentType].defaultValue));
|
|
@@ -9499,6 +9511,7 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
|
|
|
9499
9511
|
BS_RETURN_GOODS: processBsReturnGoods,
|
|
9500
9512
|
WDT_RETURN_GOODS: processWdtReturnGoods(),
|
|
9501
9513
|
JST_RETURN_GOODS: processJstReturnGoods(templateColumns),
|
|
9514
|
+
PLATFORM_AFTER_SALES_ORDER: processErpSystemOrder,
|
|
9502
9515
|
BS_SYSTEM_ORDER: processErpSystemOrder,
|
|
9503
9516
|
KM_SYSTEM_ORDER: processErpSystemOrder,
|
|
9504
9517
|
WLN_SYSTEM_ORDER: processErpSystemOrder,
|
|
@@ -9514,6 +9527,7 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
|
|
|
9514
9527
|
RETURN_GOODS_TRADE_ID: processErpTradeId,
|
|
9515
9528
|
BS_DELIVERY_NO: processErpTradeId,
|
|
9516
9529
|
REISSUE_TRADE_ID: processErpTradeId,
|
|
9530
|
+
SWAP_OUT_TRADE_ID: processErpTradeId,
|
|
9517
9531
|
ERP_AFTER_SALE_TRADE_ID: processErpTradeId,
|
|
9518
9532
|
EXCHANGE_TRADE_ID: processErpTradeId,
|
|
9519
9533
|
WLN_GOODS: processWlnGoods(templateColumns),
|
|
@@ -11644,7 +11658,7 @@ var GoodsModal = function GoodsModal(props) {
|
|
|
11644
11658
|
key: item.value
|
|
11645
11659
|
}, item.label);
|
|
11646
11660
|
})), /*#__PURE__*/React__default['default'].createElement(Search, {
|
|
11647
|
-
placeholder: searchParams.type !== 'orderProduct' ? platform === 'taobao' ? '
|
|
11661
|
+
placeholder: searchParams.type !== 'orderProduct' ? platform === 'taobao' ? '宝贝标题' : '商品ID' : '宝贝标题',
|
|
11648
11662
|
// enterButton="搜索"
|
|
11649
11663
|
className: "search",
|
|
11650
11664
|
value: platform === 'taobao' ? searchParams.title : searchParams.numIids,
|
|
@@ -16154,30 +16168,33 @@ var GoodList = function GoodList(props, ref) {
|
|
|
16154
16168
|
selectedRowKeys: selectIds,
|
|
16155
16169
|
fixed: true,
|
|
16156
16170
|
onSelect: function onSelect(record, selected) {
|
|
16171
|
+
var uniqueKey = "".concat(record.goodNo, "-").concat(record.specNo);
|
|
16157
16172
|
if (selected) {
|
|
16158
|
-
setSelectIds([].concat(_toConsumableArray(selectIds), [
|
|
16173
|
+
setSelectIds([].concat(_toConsumableArray(selectIds), [uniqueKey]));
|
|
16159
16174
|
setSelect([].concat(_toConsumableArray(selectList), [record]));
|
|
16160
16175
|
} else {
|
|
16161
16176
|
setSelectIds(selectIds.filter(function (t) {
|
|
16162
|
-
return t !==
|
|
16177
|
+
return t !== uniqueKey;
|
|
16163
16178
|
}));
|
|
16164
16179
|
setSelect(selectList.filter(function (t) {
|
|
16165
|
-
return t.specNo !==
|
|
16180
|
+
return "".concat(t.goodNo, "-").concat(t.specNo) !== uniqueKey;
|
|
16166
16181
|
}));
|
|
16167
16182
|
}
|
|
16168
16183
|
},
|
|
16169
16184
|
onSelectAll: function onSelectAll(selected, selectedRows, changeRows) {
|
|
16170
16185
|
if (selected) {
|
|
16171
|
-
|
|
16172
|
-
return t.specNo;
|
|
16173
|
-
})
|
|
16186
|
+
var changeKeys = changeRows.map(function (t) {
|
|
16187
|
+
return "".concat(t.goodNo, "-").concat(t.specNo);
|
|
16188
|
+
});
|
|
16189
|
+
setSelectIds([].concat(_toConsumableArray(selectIds), _toConsumableArray(changeKeys)));
|
|
16174
16190
|
setSelect([].concat(_toConsumableArray(selectList), _toConsumableArray(changeRows)));
|
|
16175
16191
|
} else {
|
|
16176
|
-
|
|
16177
|
-
return t.specNo;
|
|
16178
|
-
})
|
|
16192
|
+
var _changeKeys = changeRows.map(function (t) {
|
|
16193
|
+
return "".concat(t.goodNo, "-").concat(t.specNo);
|
|
16194
|
+
});
|
|
16195
|
+
setSelectIds(lodash.difference(selectIds, _changeKeys));
|
|
16179
16196
|
var list = lodash.differenceWith(selectList, changeRows, function (arrVal, othVal) {
|
|
16180
|
-
return arrVal.specNo !== othVal.specNo;
|
|
16197
|
+
return "".concat(arrVal.goodNo, "-").concat(arrVal.specNo) !== "".concat(othVal.goodNo, "-").concat(othVal.specNo);
|
|
16181
16198
|
});
|
|
16182
16199
|
setSelect(list);
|
|
16183
16200
|
}
|
|
@@ -16185,11 +16202,12 @@ var GoodList = function GoodList(props, ref) {
|
|
|
16185
16202
|
};
|
|
16186
16203
|
var showTable = function showTable() {
|
|
16187
16204
|
var handleDelete = function handleDelete(record) {
|
|
16205
|
+
var uniqueKey = "".concat(record.goodNo, "-").concat(record.specNo);
|
|
16188
16206
|
setSelectIds(selectIds.filter(function (t) {
|
|
16189
|
-
return t !==
|
|
16207
|
+
return t !== uniqueKey;
|
|
16190
16208
|
}));
|
|
16191
16209
|
setSelect(selectList.filter(function (t) {
|
|
16192
|
-
return t.specNo !==
|
|
16210
|
+
return "".concat(t.goodNo, "-").concat(t.specNo) !== uniqueKey;
|
|
16193
16211
|
}));
|
|
16194
16212
|
};
|
|
16195
16213
|
var showColumns = [{
|
|
@@ -16213,7 +16231,9 @@ var GoodList = function GoodList(props, ref) {
|
|
|
16213
16231
|
}
|
|
16214
16232
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Table, {
|
|
16215
16233
|
columns: showColumns,
|
|
16216
|
-
rowKey:
|
|
16234
|
+
rowKey: function rowKey(record) {
|
|
16235
|
+
return "".concat(record.goodNo, "-").concat(record.specNo);
|
|
16236
|
+
},
|
|
16217
16237
|
dataSource: selectList,
|
|
16218
16238
|
scroll: {
|
|
16219
16239
|
x: '100%',
|
|
@@ -16243,7 +16263,9 @@ var GoodList = function GoodList(props, ref) {
|
|
|
16243
16263
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Table, _objectSpread2(_objectSpread2({
|
|
16244
16264
|
className: "GoodModalColumns",
|
|
16245
16265
|
rowSelection: rowSelection,
|
|
16246
|
-
rowKey:
|
|
16266
|
+
rowKey: function rowKey(record) {
|
|
16267
|
+
return "".concat(record.goodNo, "-").concat(record.specNo);
|
|
16268
|
+
},
|
|
16247
16269
|
columns: columns,
|
|
16248
16270
|
scroll: {
|
|
16249
16271
|
x: '100%',
|
|
@@ -25818,12 +25840,45 @@ var jkyUtils = {
|
|
|
25818
25840
|
};
|
|
25819
25841
|
|
|
25820
25842
|
var singletonMap$8 = new Map();
|
|
25843
|
+
var getAfterSalesOrderList = function getAfterSalesOrderList(params) {
|
|
25844
|
+
var cacheKey = "".concat(params.orderNo, "_").concat(params.shopId);
|
|
25845
|
+
if (!singletonMap$8.has(cacheKey)) {
|
|
25846
|
+
var p = new Promise(function (resolve, reject) {
|
|
25847
|
+
var doReject = function doReject(err) {
|
|
25848
|
+
// 清空掉错误的请求记录
|
|
25849
|
+
singletonMap$8.delete(cacheKey);
|
|
25850
|
+
reject(err);
|
|
25851
|
+
};
|
|
25852
|
+
extendRequest('/qy/gdfw/order/queryTradeAfterSaleList', {
|
|
25853
|
+
method: 'post',
|
|
25854
|
+
data: params
|
|
25855
|
+
}).then(function (res) {
|
|
25856
|
+
if (res === null || res === void 0 ? void 0 : res.success) {
|
|
25857
|
+
resolve(res.data || []);
|
|
25858
|
+
// 延迟10秒清除,保证订单的时效性
|
|
25859
|
+
setTimeout(function () {
|
|
25860
|
+
singletonMap$8.delete(cacheKey);
|
|
25861
|
+
}, 1000 * 10);
|
|
25862
|
+
} else {
|
|
25863
|
+
doReject(res);
|
|
25864
|
+
}
|
|
25865
|
+
}).catch(doReject);
|
|
25866
|
+
});
|
|
25867
|
+
singletonMap$8.set(cacheKey, p);
|
|
25868
|
+
}
|
|
25869
|
+
return singletonMap$8.get(cacheKey);
|
|
25870
|
+
};
|
|
25871
|
+
var platformUtils = {
|
|
25872
|
+
getAfterSalesOrderList: getAfterSalesOrderList
|
|
25873
|
+
};
|
|
25874
|
+
|
|
25875
|
+
var singletonMap$9 = new Map();
|
|
25821
25876
|
var getOrderListSingleton$2 = function getOrderListSingleton(orderNo) {
|
|
25822
|
-
if (!singletonMap$
|
|
25877
|
+
if (!singletonMap$9.has(orderNo)) {
|
|
25823
25878
|
var p = new Promise(function (resolve, reject) {
|
|
25824
25879
|
var doReject = function doReject(err) {
|
|
25825
25880
|
// 清空掉错误的请求记录
|
|
25826
|
-
singletonMap$
|
|
25881
|
+
singletonMap$9.delete(orderNo);
|
|
25827
25882
|
reject(err);
|
|
25828
25883
|
};
|
|
25829
25884
|
extendRequest('/qy/gdfw/order/kmErpOrderDetail', {
|
|
@@ -25849,16 +25904,16 @@ var getOrderListSingleton$2 = function getOrderListSingleton(orderNo) {
|
|
|
25849
25904
|
}
|
|
25850
25905
|
// 延迟10秒清除,保证订单的时效性
|
|
25851
25906
|
setTimeout(function () {
|
|
25852
|
-
singletonMap$
|
|
25907
|
+
singletonMap$9.delete(orderNo);
|
|
25853
25908
|
}, 1000 * 10);
|
|
25854
25909
|
} else {
|
|
25855
25910
|
doReject(data);
|
|
25856
25911
|
}
|
|
25857
25912
|
}).catch(doReject);
|
|
25858
25913
|
});
|
|
25859
|
-
singletonMap$
|
|
25914
|
+
singletonMap$9.set(orderNo, p);
|
|
25860
25915
|
}
|
|
25861
|
-
return singletonMap$
|
|
25916
|
+
return singletonMap$9.get(orderNo);
|
|
25862
25917
|
};
|
|
25863
25918
|
var kmUtils = {
|
|
25864
25919
|
getOrderListSingleton: getOrderListSingleton$2
|
|
@@ -25876,7 +25931,8 @@ var columnsMap = {
|
|
|
25876
25931
|
JST_SYSTEM_ORDER: kmkfUtils.JST_SYSTEM_ORDER_CONFIG.columns,
|
|
25877
25932
|
JY_SYSTEM_ORDER: kmkfUtils.JY_SYSTEM_ORDER_CONFIG.columns,
|
|
25878
25933
|
JKY_SYSTEM_ORDER: kmkfUtils.JKY_SYSTEM_ORDER_CONFIG.columns,
|
|
25879
|
-
WDT_RETURN_BILL_NO: kmkfUtils.WDT_RETURN_BILL_NO_CONFIG.columns
|
|
25934
|
+
WDT_RETURN_BILL_NO: kmkfUtils.WDT_RETURN_BILL_NO_CONFIG.columns,
|
|
25935
|
+
PLATFORM_AFTER_SALES_ORDER: kmkfUtils.PLATFORM_AFTER_SALES_ORDER_CONFIG.columns
|
|
25880
25936
|
};
|
|
25881
25937
|
var rowKeyMap = {
|
|
25882
25938
|
BS_SYSTEM_ORDER: 'billNo',
|
|
@@ -25888,8 +25944,10 @@ var rowKeyMap = {
|
|
|
25888
25944
|
JST_SYSTEM_ORDER: 'oId',
|
|
25889
25945
|
JY_SYSTEM_ORDER: 'tradeNo',
|
|
25890
25946
|
JKY_SYSTEM_ORDER: 'tradeNo',
|
|
25891
|
-
WDT_RETURN_BILL_NO: 'refundNo'
|
|
25947
|
+
WDT_RETURN_BILL_NO: 'refundNo',
|
|
25948
|
+
PLATFORM_AFTER_SALES_ORDER: 'afterSaleOrderId'
|
|
25892
25949
|
};
|
|
25950
|
+
var RADIO_TABLE_KEYS = ['PLATFORM_AFTER_SALES_ORDER'];
|
|
25893
25951
|
var index$2 = (function (props) {
|
|
25894
25952
|
var value = props.value,
|
|
25895
25953
|
_onChange = props.onChange,
|
|
@@ -25899,6 +25957,7 @@ var index$2 = (function (props) {
|
|
|
25899
25957
|
showHeader = _props$showHeader === void 0 ? [] : _props$showHeader;
|
|
25900
25958
|
var onceRef = React.useRef(false);
|
|
25901
25959
|
var valueRef = React.useRef(null);
|
|
25960
|
+
var isRadio = RADIO_TABLE_KEYS.includes(type);
|
|
25902
25961
|
// 字段筛选状态 - 用户选择要筛选的字段(单选)
|
|
25903
25962
|
var _useState = React.useState(''),
|
|
25904
25963
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -25950,6 +26009,8 @@ var index$2 = (function (props) {
|
|
|
25950
26009
|
getJyOrderList(value.orderNo);
|
|
25951
26010
|
} else if (type === 'JKY_SYSTEM_ORDER') {
|
|
25952
26011
|
getJkyOrderList(value.orderNo);
|
|
26012
|
+
} else if (type === 'PLATFORM_AFTER_SALES_ORDER') {
|
|
26013
|
+
value.shopId && getPlatformAfterSalesOrderList(value.orderNo, value.shopId);
|
|
25953
26014
|
}
|
|
25954
26015
|
}
|
|
25955
26016
|
}, [value, type]);
|
|
@@ -26324,7 +26385,33 @@ var index$2 = (function (props) {
|
|
|
26324
26385
|
return _ref12.apply(this, arguments);
|
|
26325
26386
|
};
|
|
26326
26387
|
}();
|
|
26388
|
+
var getPlatformAfterSalesOrderList = /*#__PURE__*/function () {
|
|
26389
|
+
var _ref13 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee10(orderNo, shopId) {
|
|
26390
|
+
return _regeneratorRuntime().wrap(function _callee10$(_context10) {
|
|
26391
|
+
while (1) switch (_context10.prev = _context10.next) {
|
|
26392
|
+
case 0:
|
|
26393
|
+
platformUtils.getAfterSalesOrderList({
|
|
26394
|
+
orderNo: orderNo,
|
|
26395
|
+
shopId: shopId
|
|
26396
|
+
}).then(function (data) {
|
|
26397
|
+
_onChange === null || _onChange === void 0 ? void 0 : _onChange(_objectSpread2(_objectSpread2({}, valueRef.current || {}), {}, {
|
|
26398
|
+
orders: data || [],
|
|
26399
|
+
showOrderInfo: data || []
|
|
26400
|
+
}));
|
|
26401
|
+
});
|
|
26402
|
+
onceRef.current = false;
|
|
26403
|
+
case 2:
|
|
26404
|
+
case "end":
|
|
26405
|
+
return _context10.stop();
|
|
26406
|
+
}
|
|
26407
|
+
}, _callee10);
|
|
26408
|
+
}));
|
|
26409
|
+
return function getPlatformAfterSalesOrderList(_x10, _x11) {
|
|
26410
|
+
return _ref13.apply(this, arguments);
|
|
26411
|
+
};
|
|
26412
|
+
}();
|
|
26327
26413
|
var rowSelection = {
|
|
26414
|
+
type: isRadio ? 'radio' : 'checkbox',
|
|
26328
26415
|
selectedRowKeys: (value === null || value === void 0 ? void 0 : value.selectIds) || [],
|
|
26329
26416
|
fixed: true,
|
|
26330
26417
|
onChange: function onChange(selectedRowKeys, selectedRows, info) {
|
|
@@ -26762,16 +26849,16 @@ var orderSubFormConstants = {
|
|
|
26762
26849
|
};
|
|
26763
26850
|
|
|
26764
26851
|
var getSelectWidgetMap$1 = orderSubFormConstants.getSelectWidgetMap;
|
|
26765
|
-
var singletonMap$
|
|
26852
|
+
var singletonMap$a = new Map();
|
|
26766
26853
|
var getOrderListSingleton$3 = function getOrderListSingleton(parmas) {
|
|
26767
26854
|
var orderNo = parmas.orderNo,
|
|
26768
26855
|
shopId = parmas.shopId;
|
|
26769
26856
|
var key = "".concat(orderNo, "-").concat(shopId);
|
|
26770
|
-
if (!singletonMap$
|
|
26857
|
+
if (!singletonMap$a.has(key)) {
|
|
26771
26858
|
var p = new Promise(function (resolve, reject) {
|
|
26772
26859
|
var doReject = function doReject(err) {
|
|
26773
26860
|
// 清空掉错误的请求记录
|
|
26774
|
-
singletonMap$
|
|
26861
|
+
singletonMap$a.delete(key);
|
|
26775
26862
|
reject(err);
|
|
26776
26863
|
};
|
|
26777
26864
|
extendRequest('/qy/gdfw/order/subOrderItemsDetail', {
|
|
@@ -26787,16 +26874,16 @@ var getOrderListSingleton$3 = function getOrderListSingleton(parmas) {
|
|
|
26787
26874
|
}
|
|
26788
26875
|
// 延迟10秒清除,保证订单的时效性
|
|
26789
26876
|
setTimeout(function () {
|
|
26790
|
-
singletonMap$
|
|
26877
|
+
singletonMap$a.delete(key);
|
|
26791
26878
|
}, 1000 * 10);
|
|
26792
26879
|
} else {
|
|
26793
26880
|
doReject(data);
|
|
26794
26881
|
}
|
|
26795
26882
|
}).catch(doReject);
|
|
26796
26883
|
});
|
|
26797
|
-
singletonMap$
|
|
26884
|
+
singletonMap$a.set(key, p);
|
|
26798
26885
|
}
|
|
26799
|
-
return singletonMap$
|
|
26886
|
+
return singletonMap$a.get(key);
|
|
26800
26887
|
};
|
|
26801
26888
|
var renderEditItem = function renderEditItem(_ref) {
|
|
26802
26889
|
var item = _ref.item,
|
|
@@ -29492,7 +29579,7 @@ var GoodsModal$5 = function GoodsModal(props) {
|
|
|
29492
29579
|
key: item.value
|
|
29493
29580
|
}, item.label);
|
|
29494
29581
|
})), /*#__PURE__*/React__default['default'].createElement(Search$1, {
|
|
29495
|
-
placeholder: "\u5B9D\u8D1D\
|
|
29582
|
+
placeholder: "\u5B9D\u8D1D\u6807\u9898",
|
|
29496
29583
|
allowClear: true,
|
|
29497
29584
|
enterButton: "\u641C\u7D22",
|
|
29498
29585
|
style: {
|
|
@@ -31425,6 +31512,9 @@ var SYSTEM_ORDER_COLUMNS_MAP = {
|
|
|
31425
31512
|
JKY_SYSTEM_ORDER: kmkfUtils.JKY_SYSTEM_ORDER_CONFIG.columns,
|
|
31426
31513
|
WDT_RETURN_BILL_NO: kmkfUtils.WDT_RETURN_BILL_NO_CONFIG.columns
|
|
31427
31514
|
};
|
|
31515
|
+
var FIELD_COLUMNS_MAP = {
|
|
31516
|
+
PLATFORM_AFTER_SALES_ORDER: kmkfUtils.PLATFORM_AFTER_SALES_ORDER_CONFIG.columns
|
|
31517
|
+
};
|
|
31428
31518
|
|
|
31429
31519
|
exports.Address = ApaasAddress;
|
|
31430
31520
|
exports.AliPay = AliPay;
|
|
@@ -31466,6 +31556,7 @@ exports.CommonStatus = CommonStatus;
|
|
|
31466
31556
|
exports.CommonSystemOrder = CommonSystemOrder;
|
|
31467
31557
|
exports.CopyTextIcon = CopyTextIcon;
|
|
31468
31558
|
exports.ExpressLogistics = ExpressLogistics;
|
|
31559
|
+
exports.FIELD_COLUMNS_MAP = FIELD_COLUMNS_MAP;
|
|
31469
31560
|
exports.Goods = Goods;
|
|
31470
31561
|
exports.GoodsTable = index$3;
|
|
31471
31562
|
exports.GyReissue = GyReissue;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -74,5 +74,5 @@ export { default as OrderSubFormUtils } from './apaas/OrderSubForm/utils';
|
|
|
74
74
|
export { default as SkxIdInputSelect } from './skx/IdInputSelect';
|
|
75
75
|
export { default as SkxGoods } from './skx/Goods';
|
|
76
76
|
export { default as columnsBaseInfoMap, erpColumnsMap, erpFormValidator, } from './constants/columnsBaseInfoMap';
|
|
77
|
-
export { default as SYSTEM_ORDER_COLUMNS_MAP } from './constants/systemOrderColumnsMap';
|
|
77
|
+
export { default as SYSTEM_ORDER_COLUMNS_MAP, FIELD_COLUMNS_MAP } from './constants/systemOrderColumnsMap';
|
|
78
78
|
export { default as erpModalColumnsMap } from './bs/component/model/Columns';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/basic-components",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.6.1-beta.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": "2.
|
|
23
|
+
"@kmkf-fe-packages/kmkf-utils": "2.3.19-beta.20",
|
|
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": "f7102cdb1bc7fc2a9def9365d3d68bb20f78a8c6"
|
|
70
70
|
}
|