@kmkf-fe-packages/basic-components 2.10.9-beta.30 → 2.10.9-beta.31
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, isJdLogisticsCompany, getJdCustomerCodeOptions, 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';
|
|
6
|
+
import { AddressData, BsAddressData, WdtAddressData, GyAddressData, JstAddressData, request as request$1, ExpressData, isNull, imgResize, uuid, normalizeYouzanStar, servers, columnsGoodsList, LogisticsAddressData, isJdLogisticsCompany, getJdCustomerCodeOptions, 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, TTX_SYSTEM_ORDER_CONFIG, BS_E3_ORDER_STATUS_MAP, KM_ORDER_TYPE_MAP, KM_ORDER_STATUS, TTX_INTERNAL_ORDER_TYPE_MAP, TTX_STATUS_MAP, updateOrderSubFormGoodsHandle, updateWlnGoodsHandle, updateWdtGoodsHandle, updateBsE3GoodsHandle, updateGyGoodsHandle, updateJstGoodsHandle, updateKmGoodsHandle, updateJyGoodsHandle, updateJkyGoodsHandle, updateDxdGoodsHandle, updateTtxGoodsHandle, 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';
|
|
@@ -8346,6 +8346,11 @@ var systemOrderMap = {
|
|
|
8346
8346
|
no: 'dxdSystemOrderNo',
|
|
8347
8347
|
ids: 'dxdSystemSelectIds',
|
|
8348
8348
|
order: 'dxdSystemShowOrder'
|
|
8349
|
+
},
|
|
8350
|
+
TTX_SYSTEM_ORDER: {
|
|
8351
|
+
no: 'ttxSystemOrderNo',
|
|
8352
|
+
ids: 'ttxSystemSelectIds',
|
|
8353
|
+
order: 'ttxSystemShowOrder'
|
|
8349
8354
|
}
|
|
8350
8355
|
};
|
|
8351
8356
|
//直接将key component 添加到 transformWorkOrderData中的componentProcessors
|
|
@@ -8816,6 +8821,7 @@ var processSceneStatus = function processSceneStatus(getValue) {
|
|
|
8816
8821
|
DXD_WAREHOUSING_STATUS: 'dxdInStockStatusItemList',
|
|
8817
8822
|
JKY_WAREHOUSING_STATUS: 'jkyInStockStatusItemList',
|
|
8818
8823
|
JST_WAREHOUSING_STATUS: 'jstInStockStatusItemList',
|
|
8824
|
+
TTX_WAREHOUSING_STATUS: 'ttxInStockStatusItemList',
|
|
8819
8825
|
WLN_WAREHOUSING_STATUS: 'wlnInStockStatusItemList',
|
|
8820
8826
|
KM_WAREHOUSING_STATUS: 'kmInStockStatusItemList'
|
|
8821
8827
|
};
|
|
@@ -8848,6 +8854,9 @@ var processErpLogistics = function processErpLogistics(getValue) {
|
|
|
8848
8854
|
},
|
|
8849
8855
|
DXD_LOGISTICS: {
|
|
8850
8856
|
listKey: 'dxdLogisticsList'
|
|
8857
|
+
},
|
|
8858
|
+
TTX_LOGISTICS: {
|
|
8859
|
+
listKey: 'ttxLogisticsList'
|
|
8851
8860
|
}
|
|
8852
8861
|
};
|
|
8853
8862
|
var initValue = [{
|
|
@@ -8878,6 +8887,9 @@ var processErpSendGood = function processErpSendGood(getValue) {
|
|
|
8878
8887
|
},
|
|
8879
8888
|
GY_SEND_GOOD: {
|
|
8880
8889
|
list: 'gySendGood'
|
|
8890
|
+
},
|
|
8891
|
+
TTX_SEND_GOOD: {
|
|
8892
|
+
list: 'ttxSendGood'
|
|
8881
8893
|
}
|
|
8882
8894
|
};
|
|
8883
8895
|
var initValue = [{
|
|
@@ -8983,6 +8995,23 @@ var processDxdGoods = function processDxdGoods(templateColumns) {
|
|
|
8983
8995
|
};
|
|
8984
8996
|
};
|
|
8985
8997
|
};
|
|
8998
|
+
var processTtxGoods = function processTtxGoods(templateColumns) {
|
|
8999
|
+
return function (getValue) {
|
|
9000
|
+
return function (nex, config) {
|
|
9001
|
+
var tradeId = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
|
|
9002
|
+
return col.workOrderComponentType === 'TRADE_ID_INPUT';
|
|
9003
|
+
});
|
|
9004
|
+
var systemOrder = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
|
|
9005
|
+
return col.workOrderComponentType === 'TTX_SYSTEM_ORDER';
|
|
9006
|
+
});
|
|
9007
|
+
return _defineProperty({}, nex.uniqueKey, {
|
|
9008
|
+
ttxGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_ttxGoods")), []),
|
|
9009
|
+
orderNo: tradeId ? getValue("".concat(tradeId.uniqueKey, "_tradeId")) : '',
|
|
9010
|
+
selectIds: systemOrder ? jsonParseSecurity(getValue("".concat(systemOrder.uniqueKey, "_").concat(systemOrderMap.TTX_SYSTEM_ORDER.ids)), []) : []
|
|
9011
|
+
});
|
|
9012
|
+
};
|
|
9013
|
+
};
|
|
9014
|
+
};
|
|
8986
9015
|
var processDxdSuppliers = function processDxdSuppliers(templateColumns) {
|
|
8987
9016
|
return function (getValue) {
|
|
8988
9017
|
return function (nex, config) {
|
|
@@ -9344,6 +9373,11 @@ var processErpSystemOrder = function processErpSystemOrder(getValue) {
|
|
|
9344
9373
|
no: 'dxdSystemOrderNo',
|
|
9345
9374
|
ids: 'dxdSystemSelectIds',
|
|
9346
9375
|
order: 'dxdSystemShowOrder'
|
|
9376
|
+
},
|
|
9377
|
+
TTX_SYSTEM_ORDER: {
|
|
9378
|
+
no: 'ttxSystemOrderNo',
|
|
9379
|
+
ids: 'ttxSystemSelectIds',
|
|
9380
|
+
order: 'ttxSystemShowOrder'
|
|
9347
9381
|
}
|
|
9348
9382
|
};
|
|
9349
9383
|
return _defineProperty({}, nex.uniqueKey, _objectSpread2({
|
|
@@ -9613,14 +9647,14 @@ var processJstReturnGoods = function processJstReturnGoods(templateColumns) {
|
|
|
9613
9647
|
};
|
|
9614
9648
|
var processLabel = function processLabel(getValue) {
|
|
9615
9649
|
return function (nex, config) {
|
|
9616
|
-
var
|
|
9617
|
-
return
|
|
9650
|
+
var _ref80;
|
|
9651
|
+
return _ref80 = {}, _defineProperty(_ref80, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_label")), [])), _defineProperty(_ref80, "".concat(nex.uniqueKey, "_label"), jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_label")), [])), _ref80;
|
|
9618
9652
|
};
|
|
9619
9653
|
};
|
|
9620
9654
|
var processMemberLevel = function processMemberLevel(getValue) {
|
|
9621
9655
|
return function (nex, config) {
|
|
9622
|
-
var
|
|
9623
|
-
return
|
|
9656
|
+
var _ref81;
|
|
9657
|
+
return _ref81 = {}, _defineProperty(_ref81, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_memberLevel")), [])), _defineProperty(_ref81, "".concat(nex.uniqueKey, "_memberLevel"), jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_memberLevel")), [])), _ref81;
|
|
9624
9658
|
};
|
|
9625
9659
|
};
|
|
9626
9660
|
var processAfterSalesOrderId = function processAfterSalesOrderId(getValue) {
|
|
@@ -9730,6 +9764,7 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
|
|
|
9730
9764
|
WLN_WAREHOUSING_STATUS: processSceneStatus,
|
|
9731
9765
|
JKY_WAREHOUSING_STATUS: processSceneStatus,
|
|
9732
9766
|
JST_WAREHOUSING_STATUS: processSceneStatus,
|
|
9767
|
+
TTX_WAREHOUSING_STATUS: processSceneStatus,
|
|
9733
9768
|
KM_WAREHOUSING_STATUS: processSceneStatus,
|
|
9734
9769
|
BS_LOGISTICS: processErpLogistics,
|
|
9735
9770
|
WLN_LOGISTICS: processErpLogistics,
|
|
@@ -9738,18 +9773,21 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
|
|
|
9738
9773
|
BS_E3_LOGISTICS: processErpLogistics,
|
|
9739
9774
|
KM_LOGISTICS: processErpLogistics,
|
|
9740
9775
|
DXD_LOGISTICS: processErpLogistics,
|
|
9776
|
+
TTX_LOGISTICS: processErpLogistics,
|
|
9741
9777
|
BS_SEND_GOOD: processErpSendGood,
|
|
9742
9778
|
WLN_SEND_GOOD: processErpSendGood,
|
|
9743
9779
|
WDT_SEND_GOOD: processErpSendGood,
|
|
9744
9780
|
BS_E3_SEND_GOOD: processErpSendGood,
|
|
9745
9781
|
KM_SEND_GOOD: processErpSendGood,
|
|
9746
9782
|
GY_SEND_GOOD: processErpSendGood,
|
|
9783
|
+
TTX_SEND_GOOD: processErpSendGood,
|
|
9747
9784
|
KM_RETURN_WAREHOUSE: processErpReturnWarehouse,
|
|
9748
9785
|
BS_POSTING: processBsPosting,
|
|
9749
9786
|
BS_GOODS: processBsGoods,
|
|
9750
9787
|
WDT_GOODS: processWdtGoods(templateColumns),
|
|
9751
9788
|
JKY_GOODS: processJkyGoods(templateColumns),
|
|
9752
9789
|
DXD_GOODS: processDxdGoods(templateColumns),
|
|
9790
|
+
TTX_GOODS: processTtxGoods(templateColumns),
|
|
9753
9791
|
DXD_SUPPLIERS: processDxdSuppliers(templateColumns),
|
|
9754
9792
|
WDT_AFTERSALE_GOODS: processWdtAftersaleGoods(templateColumns),
|
|
9755
9793
|
JST_AFTERSALE_GOODS: processJstAftersaleGoods(templateColumns),
|
|
@@ -9778,6 +9816,7 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
|
|
|
9778
9816
|
JST_SYSTEM_ORDER: processErpSystemOrder,
|
|
9779
9817
|
GY_SYSTEM_ORDER: processErpSystemOrder,
|
|
9780
9818
|
DXD_SYSTEM_ORDER: processErpSystemOrder,
|
|
9819
|
+
TTX_SYSTEM_ORDER: processErpSystemOrder,
|
|
9781
9820
|
BUYER_MESSAGE_NOTICE: processBuyerMessageNotice,
|
|
9782
9821
|
ORDER_TYPE: processOrderType,
|
|
9783
9822
|
REFUND_TYPE: processRefundType,
|
|
@@ -14546,7 +14585,7 @@ var jstGoods = function jstGoods(props) {
|
|
|
14546
14585
|
changeIndex = _useState2[0],
|
|
14547
14586
|
setChangeIndex = _useState2[1]; //选中的包裹
|
|
14548
14587
|
var sendOptions = SendDataCenter.getInstance(platformType).getSendData();
|
|
14549
|
-
var isSelectName = ['wdt', 'bsE3', 'km', 'gy', 'jst', 'jy', 'jky', 'wln', 'dxd'].includes(platformType);
|
|
14588
|
+
var isSelectName = ['wdt', 'bsE3', 'km', 'gy', 'jst', 'jy', 'jky', 'wln', 'dxd', 'ttx'].includes(platformType);
|
|
14550
14589
|
var expressDateInstance = ExpressData.getInstance(platformType);
|
|
14551
14590
|
var isSendGoodSavedId = isSelectName && !['jst', 'wln'].includes(platformType);
|
|
14552
14591
|
useEffect(function () {
|
|
@@ -25186,7 +25225,46 @@ var getColumns$a = function getColumns() {
|
|
|
25186
25225
|
};
|
|
25187
25226
|
};
|
|
25188
25227
|
|
|
25189
|
-
var
|
|
25228
|
+
var TTX_BOM_TYPE_MAP = {
|
|
25229
|
+
'0': '正常品',
|
|
25230
|
+
'1': '实物组套',
|
|
25231
|
+
'2': '虚拟组套',
|
|
25232
|
+
'3': '虚拟组套子品',
|
|
25233
|
+
'4': '虚拟品'
|
|
25234
|
+
};
|
|
25235
|
+
var getTtxBomTypeName = function getTtxBomTypeName(value) {
|
|
25236
|
+
var _TTX_BOM_TYPE_MAP$Str;
|
|
25237
|
+
return (_TTX_BOM_TYPE_MAP$Str = TTX_BOM_TYPE_MAP[String(value)]) !== null && _TTX_BOM_TYPE_MAP$Str !== void 0 ? _TTX_BOM_TYPE_MAP$Str : value;
|
|
25238
|
+
};
|
|
25239
|
+
var getColumns$b = function getColumns() {
|
|
25240
|
+
return {
|
|
25241
|
+
TTX_GOODS: [['skuName', 'SKU名称'], ['skuCode', 'SKU编码'], ['sourceSpuId', '平台商品ID'], ['sourceSkuId', '平台SKU ID'], ['requestQty', '要求发货数量'], ['shipQty', '已发货数量'], ['returnQty', '退货数量'], ['listPrice', '零售价/标价'], ['netPrice', '客户实付单价'], ['msrPrice', '建议零售价'], ['itemTotalAmount', '商品总金额'], ['totalPayAmount', '实付金额'], ['isGift', '是否赠品'], ['bomType', 'BOM类型'], ['bomSkuCode', 'BOM商品编码'], ['platformSpuCode', '商品货号'], ['platformSkuCode', 'SKU货号']].map(function (_ref) {
|
|
25242
|
+
var _ref2 = _slicedToArray(_ref, 2),
|
|
25243
|
+
dataIndex = _ref2[0],
|
|
25244
|
+
title = _ref2[1];
|
|
25245
|
+
var isGift = dataIndex === 'isGift';
|
|
25246
|
+
var isBomType = dataIndex === 'bomType';
|
|
25247
|
+
return _objectSpread2(_objectSpread2({
|
|
25248
|
+
dataIndex: dataIndex,
|
|
25249
|
+
title: title,
|
|
25250
|
+
width: 150,
|
|
25251
|
+
align: 'center',
|
|
25252
|
+
ellipsis: true,
|
|
25253
|
+
render: isGift ? function (value) {
|
|
25254
|
+
return renderTextEllipsis(getYesOrNo$4(value));
|
|
25255
|
+
} : isBomType ? function (value) {
|
|
25256
|
+
return renderTextEllipsis(getTtxBomTypeName(value));
|
|
25257
|
+
} : renderTextEllipsis
|
|
25258
|
+
}, isGift ? {
|
|
25259
|
+
renderExport: getYesOrNo$4
|
|
25260
|
+
} : {}), isBomType ? {
|
|
25261
|
+
renderExport: getTtxBomTypeName
|
|
25262
|
+
} : {});
|
|
25263
|
+
})
|
|
25264
|
+
};
|
|
25265
|
+
};
|
|
25266
|
+
|
|
25267
|
+
var getColumns$c = function getColumns(_ref) {
|
|
25190
25268
|
var _ref$text = _ref.text,
|
|
25191
25269
|
text = _ref$text === void 0 ? '' : _ref$text,
|
|
25192
25270
|
disabled = _ref.disabled,
|
|
@@ -25303,7 +25381,7 @@ var getColumnsMap$1 = function getColumnsMap(args) {
|
|
|
25303
25381
|
disabled = _ref.disabled,
|
|
25304
25382
|
updateHandle = _ref.updateHandle,
|
|
25305
25383
|
updateDataHandle = _ref.updateDataHandle;
|
|
25306
|
-
return _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, getColumns$1({
|
|
25384
|
+
return _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, getColumns$1({
|
|
25307
25385
|
text: text,
|
|
25308
25386
|
disabled: disabled,
|
|
25309
25387
|
updateHandle: updateHandle
|
|
@@ -25352,8 +25430,8 @@ var getColumnsMap$1 = function getColumnsMap(args) {
|
|
|
25352
25430
|
disabled: disabled,
|
|
25353
25431
|
updateHandle: updateHandle,
|
|
25354
25432
|
updateDataHandle: updateDataHandle
|
|
25355
|
-
})), {}, {
|
|
25356
|
-
default: getColumns$
|
|
25433
|
+
})), getColumns$b()), {}, {
|
|
25434
|
+
default: getColumns$c({
|
|
25357
25435
|
text: text,
|
|
25358
25436
|
disabled: disabled,
|
|
25359
25437
|
updateHandle: updateHandle
|
|
@@ -25506,6 +25584,9 @@ var isErpType = {
|
|
|
25506
25584
|
},
|
|
25507
25585
|
isWln: function isWln(type) {
|
|
25508
25586
|
return ['WLN_GOODS', 'WLN_REISSUE_GOODS'].includes(type);
|
|
25587
|
+
},
|
|
25588
|
+
isTtx: function isTtx(type) {
|
|
25589
|
+
return ['TTX_GOODS'].includes(type);
|
|
25509
25590
|
}
|
|
25510
25591
|
};
|
|
25511
25592
|
var processGoods$1 = function processGoods(_ref) {
|
|
@@ -25572,6 +25653,12 @@ var processGoods$1 = function processGoods(_ref) {
|
|
|
25572
25653
|
canUpdateNumber: canUpdateNumber,
|
|
25573
25654
|
source: source
|
|
25574
25655
|
});
|
|
25656
|
+
} else if (isErpType.isTtx(type)) {
|
|
25657
|
+
newList = processTtxGoods$1({
|
|
25658
|
+
list: list,
|
|
25659
|
+
type: type,
|
|
25660
|
+
canUpdateNumber: canUpdateNumber
|
|
25661
|
+
});
|
|
25575
25662
|
} else {
|
|
25576
25663
|
newList = processDefaultGoods({
|
|
25577
25664
|
list: list,
|
|
@@ -25582,9 +25669,21 @@ var processGoods$1 = function processGoods(_ref) {
|
|
|
25582
25669
|
}
|
|
25583
25670
|
return newList;
|
|
25584
25671
|
};
|
|
25585
|
-
var
|
|
25672
|
+
var processTtxGoods$1 = function processTtxGoods(_ref2) {
|
|
25586
25673
|
var list = _ref2.list,
|
|
25587
25674
|
canUpdateNumber = _ref2.canUpdateNumber;
|
|
25675
|
+
return list.map(function (item) {
|
|
25676
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
25677
|
+
uuid: (item === null || item === void 0 ? void 0 : item.uuid) || uuid(),
|
|
25678
|
+
canDelete: true,
|
|
25679
|
+
canEdit: true,
|
|
25680
|
+
canUpdateNumber: canUpdateNumber
|
|
25681
|
+
});
|
|
25682
|
+
});
|
|
25683
|
+
};
|
|
25684
|
+
var processJyGoods = function processJyGoods(_ref3) {
|
|
25685
|
+
var list = _ref3.list,
|
|
25686
|
+
canUpdateNumber = _ref3.canUpdateNumber;
|
|
25588
25687
|
return list.map(function (item) {
|
|
25589
25688
|
var goodName = item.goodName,
|
|
25590
25689
|
goodNo = item.goodNo,
|
|
@@ -25620,9 +25719,9 @@ var processJyGoods = function processJyGoods(_ref2) {
|
|
|
25620
25719
|
});
|
|
25621
25720
|
});
|
|
25622
25721
|
};
|
|
25623
|
-
var processJkyGoods$1 = function processJkyGoods(
|
|
25624
|
-
var list =
|
|
25625
|
-
canUpdateNumber =
|
|
25722
|
+
var processJkyGoods$1 = function processJkyGoods(_ref4) {
|
|
25723
|
+
var list = _ref4.list,
|
|
25724
|
+
canUpdateNumber = _ref4.canUpdateNumber;
|
|
25626
25725
|
return list.map(function (item) {
|
|
25627
25726
|
var goodName = item.goodName,
|
|
25628
25727
|
goodNo = item.goodNo,
|
|
@@ -25654,9 +25753,9 @@ var processJkyGoods$1 = function processJkyGoods(_ref3) {
|
|
|
25654
25753
|
});
|
|
25655
25754
|
});
|
|
25656
25755
|
};
|
|
25657
|
-
var processWlnGoods$1 = function processWlnGoods(
|
|
25658
|
-
var list =
|
|
25659
|
-
canUpdateNumber =
|
|
25756
|
+
var processWlnGoods$1 = function processWlnGoods(_ref5) {
|
|
25757
|
+
var list = _ref5.list,
|
|
25758
|
+
canUpdateNumber = _ref5.canUpdateNumber;
|
|
25660
25759
|
return list.map(function (item) {
|
|
25661
25760
|
var goodName = item.goodName,
|
|
25662
25761
|
goodShortName = item.goodShortName,
|
|
@@ -25707,10 +25806,10 @@ var processWlnGoods$1 = function processWlnGoods(_ref4) {
|
|
|
25707
25806
|
});
|
|
25708
25807
|
};
|
|
25709
25808
|
// 处理不同类型的商品数据
|
|
25710
|
-
var processWdtGoods$1 = function processWdtGoods(
|
|
25711
|
-
var list =
|
|
25712
|
-
type =
|
|
25713
|
-
canUpdateNumber =
|
|
25809
|
+
var processWdtGoods$1 = function processWdtGoods(_ref6) {
|
|
25810
|
+
var list = _ref6.list,
|
|
25811
|
+
type = _ref6.type,
|
|
25812
|
+
canUpdateNumber = _ref6.canUpdateNumber;
|
|
25714
25813
|
return list.map(function (item) {
|
|
25715
25814
|
var processedItem = _objectSpread2(_objectSpread2({}, item), {}, {
|
|
25716
25815
|
uuid: uuid(),
|
|
@@ -25728,9 +25827,9 @@ var processWdtGoods$1 = function processWdtGoods(_ref5) {
|
|
|
25728
25827
|
return processedItem;
|
|
25729
25828
|
});
|
|
25730
25829
|
};
|
|
25731
|
-
var processBsE3Goods$1 = function processBsE3Goods(
|
|
25732
|
-
var list =
|
|
25733
|
-
canUpdateNumber =
|
|
25830
|
+
var processBsE3Goods$1 = function processBsE3Goods(_ref7) {
|
|
25831
|
+
var list = _ref7.list,
|
|
25832
|
+
canUpdateNumber = _ref7.canUpdateNumber;
|
|
25734
25833
|
return list.map(function (item) {
|
|
25735
25834
|
var specNo = item.specNo,
|
|
25736
25835
|
specId = item.specId,
|
|
@@ -25765,9 +25864,9 @@ var processBsE3Goods$1 = function processBsE3Goods(_ref6) {
|
|
|
25765
25864
|
});
|
|
25766
25865
|
});
|
|
25767
25866
|
};
|
|
25768
|
-
var processGyGoods$1 = function processGyGoods(
|
|
25769
|
-
var list =
|
|
25770
|
-
source =
|
|
25867
|
+
var processGyGoods$1 = function processGyGoods(_ref8) {
|
|
25868
|
+
var list = _ref8.list,
|
|
25869
|
+
source = _ref8.source;
|
|
25771
25870
|
var isFormWorkOrder = source === 'workOrder';
|
|
25772
25871
|
return list.map(function (item) {
|
|
25773
25872
|
var goodName = item.goodName,
|
|
@@ -25794,8 +25893,8 @@ var processGyGoods$1 = function processGyGoods(_ref7) {
|
|
|
25794
25893
|
});
|
|
25795
25894
|
});
|
|
25796
25895
|
};
|
|
25797
|
-
var processJstGoods$1 = function processJstGoods(
|
|
25798
|
-
var list =
|
|
25896
|
+
var processJstGoods$1 = function processJstGoods(_ref9) {
|
|
25897
|
+
var list = _ref9.list;
|
|
25799
25898
|
return list.map(function (item) {
|
|
25800
25899
|
return {
|
|
25801
25900
|
name: item.goodName,
|
|
@@ -25813,9 +25912,9 @@ var processJstGoods$1 = function processJstGoods(_ref8) {
|
|
|
25813
25912
|
};
|
|
25814
25913
|
});
|
|
25815
25914
|
};
|
|
25816
|
-
var processKmGoods$1 = function processKmGoods(
|
|
25817
|
-
var list =
|
|
25818
|
-
type =
|
|
25915
|
+
var processKmGoods$1 = function processKmGoods(_ref10) {
|
|
25916
|
+
var list = _ref10.list,
|
|
25917
|
+
type = _ref10.type;
|
|
25819
25918
|
var initParamsMap = {
|
|
25820
25919
|
KM_GOODS: {
|
|
25821
25920
|
num: 1
|
|
@@ -25854,9 +25953,9 @@ var processKmGoods$1 = function processKmGoods(_ref9) {
|
|
|
25854
25953
|
}, initParamsMap[type] || {});
|
|
25855
25954
|
});
|
|
25856
25955
|
};
|
|
25857
|
-
var processDefaultGoods = function processDefaultGoods(
|
|
25858
|
-
var list =
|
|
25859
|
-
canUpdateNumber =
|
|
25956
|
+
var processDefaultGoods = function processDefaultGoods(_ref11) {
|
|
25957
|
+
var list = _ref11.list,
|
|
25958
|
+
canUpdateNumber = _ref11.canUpdateNumber;
|
|
25860
25959
|
return list.map(function (item) {
|
|
25861
25960
|
var goodsId = item.goodsId,
|
|
25862
25961
|
name = item.name,
|
|
@@ -25922,6 +26021,7 @@ var systemOrderNoMap = {
|
|
|
25922
26021
|
JKY_GOODS: 'tradeNo',
|
|
25923
26022
|
JKY_REISSUE_GOODS: 'tradeNo',
|
|
25924
26023
|
DXD_GOODS: 'orderNo',
|
|
26024
|
+
TTX_GOODS: 'code',
|
|
25925
26025
|
WLN_REISSUE_GOODS: 'tradeNo',
|
|
25926
26026
|
KM_REISSUE_GOODS: 'sid',
|
|
25927
26027
|
KM_RETURN_GOODS: 'sid',
|
|
@@ -26253,7 +26353,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
26253
26353
|
// const isShowSelectTradeGoods =
|
|
26254
26354
|
// type !== 'JST_EXCHANGE_GOODS' || jstReturnGoods?.jstSystemOrderNo;
|
|
26255
26355
|
// 判断是否为是否展示系统单筛选项
|
|
26256
|
-
var isShowSelect = type && ['WDT_GOODS', 'BS_E3_GOODS', 'GY_GOODS', 'JST_GOODS', 'WLN_GOODS', 'KM_GOODS', 'JY_GOODS', 'JY_REISSUE_GOODS', 'JKY_GOODS', 'JKY_REISSUE_GOODS', 'DXD_GOODS', 'DXD_SUPPLIERS', 'WLN_REISSUE_GOODS', 'GY_REISSUE_GOODS', 'KM_REISSUE_GOODS', 'KM_RETURN_GOODS', 'JST_RETURN_GOODS', 'JST_EXCHANGE_GOODS', 'BS_E3_REISSUE_GOODS', 'WDT_REISSUE_GOODS', 'JST_REISSUE_GOODS'].includes(type) || false;
|
|
26356
|
+
var isShowSelect = type && ['WDT_GOODS', 'BS_E3_GOODS', 'GY_GOODS', 'JST_GOODS', 'WLN_GOODS', 'KM_GOODS', 'JY_GOODS', 'JY_REISSUE_GOODS', 'JKY_GOODS', 'JKY_REISSUE_GOODS', 'DXD_GOODS', 'DXD_SUPPLIERS', 'TTX_GOODS', 'WLN_REISSUE_GOODS', 'GY_REISSUE_GOODS', 'KM_REISSUE_GOODS', 'KM_RETURN_GOODS', 'JST_RETURN_GOODS', 'JST_EXCHANGE_GOODS', 'BS_E3_REISSUE_GOODS', 'WDT_REISSUE_GOODS', 'JST_REISSUE_GOODS'].includes(type) || false;
|
|
26257
26357
|
var isReissueType = type && ['GY_REISSUE_GOODS', 'KM_REISSUE_GOODS', 'BS_E3_REISSUE_GOODS', 'WDT_REISSUE_GOODS', 'JST_REISSUE_GOODS', 'JY_REISSUE_GOODS', 'JKY_REISSUE_GOODS', 'WLN_REISSUE_GOODS'].includes(type) || false;
|
|
26258
26358
|
var refModal = useRef();
|
|
26259
26359
|
console.debug('表格数据', value);
|
|
@@ -26351,6 +26451,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
26351
26451
|
case 'JKY_REISSUE_GOODS':
|
|
26352
26452
|
case 'DXD_GOODS':
|
|
26353
26453
|
case 'DXD_SUPPLIERS':
|
|
26454
|
+
case 'TTX_GOODS':
|
|
26354
26455
|
case 'WLN_REISSUE_GOODS':
|
|
26355
26456
|
case 'SKX_GOODS':
|
|
26356
26457
|
case 'SKX_RETURN_GOODS':
|
|
@@ -26581,7 +26682,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
26581
26682
|
}
|
|
26582
26683
|
};
|
|
26583
26684
|
}
|
|
26584
|
-
})), /*#__PURE__*/React.createElement(TheGoodsModal, {
|
|
26685
|
+
})), showErpGoodsBtn && /*#__PURE__*/React.createElement(TheGoodsModal, {
|
|
26585
26686
|
ref: refModal,
|
|
26586
26687
|
onSubmit: onSubmit,
|
|
26587
26688
|
width: width,
|
|
@@ -27651,13 +27752,43 @@ var dxdUtils = {
|
|
|
27651
27752
|
};
|
|
27652
27753
|
|
|
27653
27754
|
var singletonMap$9 = new Map();
|
|
27755
|
+
var normalizeOrder = function normalizeOrder(entry) {
|
|
27756
|
+
return _objectSpread2(_objectSpread2({}, (entry === null || entry === void 0 ? void 0 : entry.header) || entry), {}, {
|
|
27757
|
+
details: (entry === null || entry === void 0 ? void 0 : entry.details) || []
|
|
27758
|
+
});
|
|
27759
|
+
};
|
|
27760
|
+
var getOrderListSingleton$3 = function getOrderListSingleton(orderNo) {
|
|
27761
|
+
if (!singletonMap$9.has(orderNo)) {
|
|
27762
|
+
var promise = extendRequest('/qy/gdfw/ttx/erp/orderDetail', {
|
|
27763
|
+
method: 'post',
|
|
27764
|
+
data: {
|
|
27765
|
+
sourceOrderCode: orderNo
|
|
27766
|
+
}
|
|
27767
|
+
}).then(function (response) {
|
|
27768
|
+
var data = response === null || response === void 0 ? void 0 : response.data;
|
|
27769
|
+
return Array.isArray(data) ? data.map(normalizeOrder) : [];
|
|
27770
|
+
});
|
|
27771
|
+
singletonMap$9.set(orderNo, promise);
|
|
27772
|
+
promise.finally(function () {
|
|
27773
|
+
setTimeout(function () {
|
|
27774
|
+
return singletonMap$9.delete(orderNo);
|
|
27775
|
+
}, 10000);
|
|
27776
|
+
});
|
|
27777
|
+
}
|
|
27778
|
+
return singletonMap$9.get(orderNo);
|
|
27779
|
+
};
|
|
27780
|
+
var ttxUtils = {
|
|
27781
|
+
getOrderListSingleton: getOrderListSingleton$3
|
|
27782
|
+
};
|
|
27783
|
+
|
|
27784
|
+
var singletonMap$a = new Map();
|
|
27654
27785
|
var getAfterSalesOrderList = function getAfterSalesOrderList(params) {
|
|
27655
27786
|
var cacheKey = "".concat(params.orderNo, "_").concat(params.shopId);
|
|
27656
|
-
if (!singletonMap$
|
|
27787
|
+
if (!singletonMap$a.has(cacheKey)) {
|
|
27657
27788
|
var p = new Promise(function (resolve, reject) {
|
|
27658
27789
|
var doReject = function doReject(err) {
|
|
27659
27790
|
// 清空掉错误的请求记录
|
|
27660
|
-
singletonMap$
|
|
27791
|
+
singletonMap$a.delete(cacheKey);
|
|
27661
27792
|
reject(err);
|
|
27662
27793
|
};
|
|
27663
27794
|
extendRequest('/qy/gdfw/order/queryTradeAfterSaleList', {
|
|
@@ -27668,28 +27799,28 @@ var getAfterSalesOrderList = function getAfterSalesOrderList(params) {
|
|
|
27668
27799
|
resolve(res.data || []);
|
|
27669
27800
|
// 延迟10秒清除,保证订单的时效性
|
|
27670
27801
|
setTimeout(function () {
|
|
27671
|
-
singletonMap$
|
|
27802
|
+
singletonMap$a.delete(cacheKey);
|
|
27672
27803
|
}, 1000 * 10);
|
|
27673
27804
|
} else {
|
|
27674
27805
|
doReject(res);
|
|
27675
27806
|
}
|
|
27676
27807
|
}).catch(doReject);
|
|
27677
27808
|
});
|
|
27678
|
-
singletonMap$
|
|
27809
|
+
singletonMap$a.set(cacheKey, p);
|
|
27679
27810
|
}
|
|
27680
|
-
return singletonMap$
|
|
27811
|
+
return singletonMap$a.get(cacheKey);
|
|
27681
27812
|
};
|
|
27682
27813
|
var platformUtils = {
|
|
27683
27814
|
getAfterSalesOrderList: getAfterSalesOrderList
|
|
27684
27815
|
};
|
|
27685
27816
|
|
|
27686
|
-
var singletonMap$
|
|
27687
|
-
var getOrderListSingleton$
|
|
27688
|
-
if (!singletonMap$
|
|
27817
|
+
var singletonMap$b = new Map();
|
|
27818
|
+
var getOrderListSingleton$4 = function getOrderListSingleton(orderNo) {
|
|
27819
|
+
if (!singletonMap$b.has(orderNo)) {
|
|
27689
27820
|
var p = new Promise(function (resolve, reject) {
|
|
27690
27821
|
var doReject = function doReject(err) {
|
|
27691
27822
|
// 清空掉错误的请求记录
|
|
27692
|
-
singletonMap$
|
|
27823
|
+
singletonMap$b.delete(orderNo);
|
|
27693
27824
|
reject(err);
|
|
27694
27825
|
};
|
|
27695
27826
|
extendRequest('/qy/gdfw/order/kmErpOrderDetail', {
|
|
@@ -27715,19 +27846,19 @@ var getOrderListSingleton$3 = function getOrderListSingleton(orderNo) {
|
|
|
27715
27846
|
}
|
|
27716
27847
|
// 延迟10秒清除,保证订单的时效性
|
|
27717
27848
|
setTimeout(function () {
|
|
27718
|
-
singletonMap$
|
|
27849
|
+
singletonMap$b.delete(orderNo);
|
|
27719
27850
|
}, 1000 * 10);
|
|
27720
27851
|
} else {
|
|
27721
27852
|
doReject(data);
|
|
27722
27853
|
}
|
|
27723
27854
|
}).catch(doReject);
|
|
27724
27855
|
});
|
|
27725
|
-
singletonMap$
|
|
27856
|
+
singletonMap$b.set(orderNo, p);
|
|
27726
27857
|
}
|
|
27727
|
-
return singletonMap$
|
|
27858
|
+
return singletonMap$b.get(orderNo);
|
|
27728
27859
|
};
|
|
27729
27860
|
var kmUtils = {
|
|
27730
|
-
getOrderListSingleton: getOrderListSingleton$
|
|
27861
|
+
getOrderListSingleton: getOrderListSingleton$4
|
|
27731
27862
|
};
|
|
27732
27863
|
|
|
27733
27864
|
var _excluded$k = ["billNo", "billType", "billTag", "tradeTagName", "deliveryState", "vipCode", "shopCode", "cancel"],
|
|
@@ -27744,7 +27875,8 @@ var columnsMap = {
|
|
|
27744
27875
|
JKY_SYSTEM_ORDER: JKY_SYSTEM_ORDER_CONFIG.columns,
|
|
27745
27876
|
WDT_RETURN_BILL_NO: WDT_RETURN_BILL_NO_CONFIG.columns,
|
|
27746
27877
|
PLATFORM_AFTER_SALES_ORDER: PLATFORM_AFTER_SALES_ORDER_CONFIG.columns,
|
|
27747
|
-
DXD_SYSTEM_ORDER: DXD_SYSTEM_ORDER_CONFIG.columns
|
|
27878
|
+
DXD_SYSTEM_ORDER: DXD_SYSTEM_ORDER_CONFIG.columns,
|
|
27879
|
+
TTX_SYSTEM_ORDER: TTX_SYSTEM_ORDER_CONFIG.columns
|
|
27748
27880
|
};
|
|
27749
27881
|
var rowKeyMap = {
|
|
27750
27882
|
BS_SYSTEM_ORDER: 'billNo',
|
|
@@ -27758,7 +27890,8 @@ var rowKeyMap = {
|
|
|
27758
27890
|
JKY_SYSTEM_ORDER: 'tradeNo',
|
|
27759
27891
|
WDT_RETURN_BILL_NO: 'refundNo',
|
|
27760
27892
|
PLATFORM_AFTER_SALES_ORDER: 'afterSaleOrderId',
|
|
27761
|
-
DXD_SYSTEM_ORDER: 'billNo'
|
|
27893
|
+
DXD_SYSTEM_ORDER: 'billNo',
|
|
27894
|
+
TTX_SYSTEM_ORDER: 'code'
|
|
27762
27895
|
};
|
|
27763
27896
|
var RADIO_TABLE_KEYS = ['PLATFORM_AFTER_SALES_ORDER'];
|
|
27764
27897
|
var index$2 = (function (props) {
|
|
@@ -27824,6 +27957,8 @@ var index$2 = (function (props) {
|
|
|
27824
27957
|
getJkyOrderList(value.orderNo);
|
|
27825
27958
|
} else if (type === 'DXD_SYSTEM_ORDER') {
|
|
27826
27959
|
getDxdOrderList(value.orderNo);
|
|
27960
|
+
} else if (type === 'TTX_SYSTEM_ORDER') {
|
|
27961
|
+
getTtxOrderList(value.orderNo);
|
|
27827
27962
|
} else if (type === 'PLATFORM_AFTER_SALES_ORDER') {
|
|
27828
27963
|
value.shopId && getPlatformAfterSalesOrderList(value.orderNo, value.shopId);
|
|
27829
27964
|
}
|
|
@@ -27899,6 +28034,14 @@ var index$2 = (function (props) {
|
|
|
27899
28034
|
false: '否'
|
|
27900
28035
|
};
|
|
27901
28036
|
}
|
|
28037
|
+
if (type === 'TTX_SYSTEM_ORDER') {
|
|
28038
|
+
map['internalOrderType'] = _objectSpread2({}, TTX_INTERNAL_ORDER_TYPE_MAP);
|
|
28039
|
+
map['status'] = _objectSpread2({}, TTX_STATUS_MAP);
|
|
28040
|
+
map['split'] = {
|
|
28041
|
+
'1': '拆单',
|
|
28042
|
+
'0': ''
|
|
28043
|
+
};
|
|
28044
|
+
}
|
|
27902
28045
|
return map;
|
|
27903
28046
|
}, [type]);
|
|
27904
28047
|
// 过滤后的表格数据 - 根据选中字段和关键词模糊匹配(不区分大小写)
|
|
@@ -28270,6 +28413,34 @@ var index$2 = (function (props) {
|
|
|
28270
28413
|
return _ref14.apply(this, arguments);
|
|
28271
28414
|
};
|
|
28272
28415
|
}();
|
|
28416
|
+
var getTtxOrderList = /*#__PURE__*/function () {
|
|
28417
|
+
var _ref15 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee12(orderNo) {
|
|
28418
|
+
return _regeneratorRuntime().wrap(function _callee12$(_context12) {
|
|
28419
|
+
while (1) switch (_context12.prev = _context12.next) {
|
|
28420
|
+
case 0:
|
|
28421
|
+
ttxUtils.getOrderListSingleton(orderNo).then(function (data) {
|
|
28422
|
+
var orders = (data || []).map(function (order) {
|
|
28423
|
+
return _objectSpread2(_objectSpread2({}, order), {}, {
|
|
28424
|
+
code: order.code || order.orderCode || order.orderNo,
|
|
28425
|
+
billNo: order.code || order.orderCode || order.orderNo
|
|
28426
|
+
});
|
|
28427
|
+
});
|
|
28428
|
+
_onChange === null || _onChange === void 0 ? void 0 : _onChange(_objectSpread2(_objectSpread2({}, valueRef.current || {}), {}, {
|
|
28429
|
+
orders: orders,
|
|
28430
|
+
showOrderInfo: orders
|
|
28431
|
+
}));
|
|
28432
|
+
});
|
|
28433
|
+
onceRef.current = false;
|
|
28434
|
+
case 2:
|
|
28435
|
+
case "end":
|
|
28436
|
+
return _context12.stop();
|
|
28437
|
+
}
|
|
28438
|
+
}, _callee12);
|
|
28439
|
+
}));
|
|
28440
|
+
return function getTtxOrderList(_x13) {
|
|
28441
|
+
return _ref15.apply(this, arguments);
|
|
28442
|
+
};
|
|
28443
|
+
}();
|
|
28273
28444
|
var rowKey = rowKeyMap[type] || 'billNo';
|
|
28274
28445
|
var handleRadioChange = function handleRadioChange(record) {
|
|
28275
28446
|
var _value$selectIds;
|
|
@@ -28744,16 +28915,16 @@ var orderSubFormConstants = {
|
|
|
28744
28915
|
};
|
|
28745
28916
|
|
|
28746
28917
|
var getSelectWidgetMap$1 = orderSubFormConstants.getSelectWidgetMap;
|
|
28747
|
-
var singletonMap$
|
|
28748
|
-
var getOrderListSingleton$
|
|
28918
|
+
var singletonMap$c = new Map();
|
|
28919
|
+
var getOrderListSingleton$5 = function getOrderListSingleton(parmas) {
|
|
28749
28920
|
var orderNo = parmas.orderNo,
|
|
28750
28921
|
shopId = parmas.shopId;
|
|
28751
28922
|
var key = "".concat(orderNo, "-").concat(shopId);
|
|
28752
|
-
if (!singletonMap$
|
|
28923
|
+
if (!singletonMap$c.has(key)) {
|
|
28753
28924
|
var p = new Promise(function (resolve, reject) {
|
|
28754
28925
|
var doReject = function doReject(err) {
|
|
28755
28926
|
// 清空掉错误的请求记录
|
|
28756
|
-
singletonMap$
|
|
28927
|
+
singletonMap$c.delete(key);
|
|
28757
28928
|
reject(err);
|
|
28758
28929
|
};
|
|
28759
28930
|
extendRequest('/qy/gdfw/order/subOrderItemsDetail', {
|
|
@@ -28769,16 +28940,16 @@ var getOrderListSingleton$4 = function getOrderListSingleton(parmas) {
|
|
|
28769
28940
|
}
|
|
28770
28941
|
// 延迟10秒清除,保证订单的时效性
|
|
28771
28942
|
setTimeout(function () {
|
|
28772
|
-
singletonMap$
|
|
28943
|
+
singletonMap$c.delete(key);
|
|
28773
28944
|
}, 1000 * 10);
|
|
28774
28945
|
} else {
|
|
28775
28946
|
doReject(data);
|
|
28776
28947
|
}
|
|
28777
28948
|
}).catch(doReject);
|
|
28778
28949
|
});
|
|
28779
|
-
singletonMap$
|
|
28950
|
+
singletonMap$c.set(key, p);
|
|
28780
28951
|
}
|
|
28781
|
-
return singletonMap$
|
|
28952
|
+
return singletonMap$c.get(key);
|
|
28782
28953
|
};
|
|
28783
28954
|
var renderEditItem = function renderEditItem(_ref) {
|
|
28784
28955
|
var item = _ref.item,
|
|
@@ -28910,7 +29081,7 @@ var renderDetailItem = function renderDetailItem(_ref2) {
|
|
|
28910
29081
|
return Component;
|
|
28911
29082
|
};
|
|
28912
29083
|
var utils = {
|
|
28913
|
-
getOrderListSingleton: getOrderListSingleton$
|
|
29084
|
+
getOrderListSingleton: getOrderListSingleton$5,
|
|
28914
29085
|
renderEditItem: renderEditItem,
|
|
28915
29086
|
renderDetailItem: renderDetailItem
|
|
28916
29087
|
};
|
|
@@ -28918,7 +29089,7 @@ var utils = {
|
|
|
28918
29089
|
var getOrderSubformColumns$1 = orderSubFormConstants.getOrderSubformColumns;
|
|
28919
29090
|
var renderEditItem$1 = utils.renderEditItem,
|
|
28920
29091
|
renderDetailItem$1 = utils.renderDetailItem,
|
|
28921
|
-
getOrderListSingleton$
|
|
29092
|
+
getOrderListSingleton$6 = utils.getOrderListSingleton;
|
|
28922
29093
|
var OrderSubForm = function OrderSubForm(props) {
|
|
28923
29094
|
var _props$value = props.value,
|
|
28924
29095
|
value = _props$value === void 0 ? {} : _props$value,
|
|
@@ -29120,7 +29291,7 @@ var OrderSubForm = function OrderSubForm(props) {
|
|
|
29120
29291
|
var JOIN_SHOP = shopList === null || shopList === void 0 ? void 0 : shopList.find(function (item) {
|
|
29121
29292
|
return !item.notJoin && item.shopId == shopId;
|
|
29122
29293
|
});
|
|
29123
|
-
return (value === null || value === void 0 ? void 0 : value.orderNo) && shopId && JOIN_SHOP ? getOrderListSingleton$
|
|
29294
|
+
return (value === null || value === void 0 ? void 0 : value.orderNo) && shopId && JOIN_SHOP ? getOrderListSingleton$6({
|
|
29124
29295
|
orderNo: value === null || value === void 0 ? void 0 : value.orderNo,
|
|
29125
29296
|
shopId: shopId
|
|
29126
29297
|
}).then(function (data) {
|
|
@@ -29217,6 +29388,9 @@ var isErpType$1 = {
|
|
|
29217
29388
|
},
|
|
29218
29389
|
isDxd: function isDxd(type) {
|
|
29219
29390
|
return ['DXD_GOODS', 'DXD_SUPPLIERS'].includes(type);
|
|
29391
|
+
},
|
|
29392
|
+
isTtx: function isTtx(type) {
|
|
29393
|
+
return ['TTX_GOODS'].includes(type);
|
|
29220
29394
|
}
|
|
29221
29395
|
};
|
|
29222
29396
|
var processAllOrders = function processAllOrders(_ref) {
|
|
@@ -29254,6 +29428,10 @@ var processAllOrders = function processAllOrders(_ref) {
|
|
|
29254
29428
|
newList = processDxdOrders({
|
|
29255
29429
|
data: data
|
|
29256
29430
|
});
|
|
29431
|
+
} else if (isErpType$1.isTtx(type)) {
|
|
29432
|
+
newList = processTtxOrders({
|
|
29433
|
+
data: data
|
|
29434
|
+
});
|
|
29257
29435
|
} else {
|
|
29258
29436
|
newList = processDefaultOrders({
|
|
29259
29437
|
data: data
|
|
@@ -29320,8 +29498,12 @@ var processDxdOrders = function processDxdOrders(_ref7) {
|
|
|
29320
29498
|
});
|
|
29321
29499
|
return trades;
|
|
29322
29500
|
};
|
|
29323
|
-
var
|
|
29501
|
+
var processTtxOrders = function processTtxOrders(_ref9) {
|
|
29324
29502
|
var data = _ref9.data;
|
|
29503
|
+
return Array.isArray(data) ? data : [];
|
|
29504
|
+
};
|
|
29505
|
+
var processDefaultOrders = function processDefaultOrders(_ref10) {
|
|
29506
|
+
var data = _ref10.data;
|
|
29325
29507
|
return data || [];
|
|
29326
29508
|
};
|
|
29327
29509
|
|
|
@@ -29610,6 +29792,23 @@ var componentMap$2 = {
|
|
|
29610
29792
|
changeShopCode: 'dxdSuppliersChangeShopCode'
|
|
29611
29793
|
}
|
|
29612
29794
|
},
|
|
29795
|
+
TTX_GOODS: {
|
|
29796
|
+
type: 'ttx',
|
|
29797
|
+
key: 'ttxGoods',
|
|
29798
|
+
name: '通天晓',
|
|
29799
|
+
orderNo: 'code',
|
|
29800
|
+
goodDetailOrderNo: 'code',
|
|
29801
|
+
hiddenErpGoodsBtn: true,
|
|
29802
|
+
eventNameMap: {
|
|
29803
|
+
type: 'ttxType',
|
|
29804
|
+
updateGoodsHandle: updateTtxGoodsHandle,
|
|
29805
|
+
selectListReturn: 'ttxSelectListReturn',
|
|
29806
|
+
selectList: 'ttxSelectList',
|
|
29807
|
+
changeShopCode: 'ttxChangeShopCode',
|
|
29808
|
+
deleteGood: 'ttxDeleteGood'
|
|
29809
|
+
},
|
|
29810
|
+
getOrderList: ttxUtils.getOrderListSingleton
|
|
29811
|
+
},
|
|
29613
29812
|
WLN_GOODS: {
|
|
29614
29813
|
type: 'jky',
|
|
29615
29814
|
key: 'wlnGoods',
|
|
@@ -33568,10 +33767,11 @@ var SYSTEM_ORDER_COLUMNS_MAP = {
|
|
|
33568
33767
|
JY_SYSTEM_ORDER: JY_SYSTEM_ORDER_CONFIG.columns,
|
|
33569
33768
|
JKY_SYSTEM_ORDER: JKY_SYSTEM_ORDER_CONFIG.columns,
|
|
33570
33769
|
WDT_RETURN_BILL_NO: WDT_RETURN_BILL_NO_CONFIG.columns,
|
|
33571
|
-
DXD_SYSTEM_ORDER: DXD_SYSTEM_ORDER_CONFIG.columns
|
|
33770
|
+
DXD_SYSTEM_ORDER: DXD_SYSTEM_ORDER_CONFIG.columns,
|
|
33771
|
+
TTX_SYSTEM_ORDER: TTX_SYSTEM_ORDER_CONFIG.columns
|
|
33572
33772
|
};
|
|
33573
33773
|
var FIELD_COLUMNS_MAP = {
|
|
33574
33774
|
PLATFORM_AFTER_SALES_ORDER: PLATFORM_AFTER_SALES_ORDER_CONFIG.columns
|
|
33575
33775
|
};
|
|
33576
33776
|
|
|
33577
|
-
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, YouzanStar, columnsBaseInfoMap, erpColumnsMap, erpFormValidator, index$1 as erpModalColumnsMap, getColumns$a as getDxdColumns, 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 };
|
|
33777
|
+
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, YouzanStar, columnsBaseInfoMap, erpColumnsMap, erpFormValidator, index$1 as erpModalColumnsMap, getColumns$a as getDxdColumns, 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$b as getTtxColumns, getColumns$2 as getWdtColumns, getColumns$3 as getWlnColumns, orderSubFormConstants, renderMap, renderSplitMap };
|
|
@@ -7,4 +7,5 @@ export { default as getJyColumns } from './jy';
|
|
|
7
7
|
export { default as getSkxColumns } from './skx';
|
|
8
8
|
export { default as getJkyColumns } from './jky';
|
|
9
9
|
export { default as getDxdColumns } from './dxd';
|
|
10
|
+
export { default as getTtxColumns } from './ttx';
|
|
10
11
|
export { default as orderSubFormConstants } from './orderSubForm';
|
|
@@ -162,6 +162,34 @@ declare const SYSTEM_ORDER_COLUMNS_MAP: {
|
|
|
162
162
|
renderExport: (val: boolean) => "否" | "是";
|
|
163
163
|
conditionOptionsSetting?: undefined;
|
|
164
164
|
})[];
|
|
165
|
+
TTX_SYSTEM_ORDER: ({
|
|
166
|
+
dataIndex: string;
|
|
167
|
+
title: string;
|
|
168
|
+
width: number;
|
|
169
|
+
render?: undefined;
|
|
170
|
+
renderExport?: undefined;
|
|
171
|
+
conditionOptionsSetting?: undefined;
|
|
172
|
+
} | {
|
|
173
|
+
dataIndex: string;
|
|
174
|
+
title: string;
|
|
175
|
+
width: number;
|
|
176
|
+
render: (value: any) => any;
|
|
177
|
+
renderExport: (value: any) => any;
|
|
178
|
+
conditionOptionsSetting: {
|
|
179
|
+
dataType: string;
|
|
180
|
+
getOptions: () => {
|
|
181
|
+
value: string;
|
|
182
|
+
label: string;
|
|
183
|
+
}[];
|
|
184
|
+
};
|
|
185
|
+
} | {
|
|
186
|
+
dataIndex: string;
|
|
187
|
+
title: string;
|
|
188
|
+
width: number;
|
|
189
|
+
render: (value: any) => "" | "拆单";
|
|
190
|
+
renderExport: (value: any) => "" | "拆单";
|
|
191
|
+
conditionOptionsSetting?: undefined;
|
|
192
|
+
})[];
|
|
165
193
|
};
|
|
166
194
|
export declare const FIELD_COLUMNS_MAP: {
|
|
167
195
|
PLATFORM_AFTER_SALES_ORDER: any[];
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { GetColumnsBaseInfoMapFnType } from './columnsBaseInfoMap';
|
|
2
|
+
export declare const TTX_BOM_TYPE_MAP: Record<string, string>;
|
|
3
|
+
export declare const getTtxBomTypeName: (value: any) => string;
|
|
4
|
+
declare const getColumns: GetColumnsBaseInfoMapFnType;
|
|
5
|
+
export default getColumns;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/basic-components",
|
|
3
|
-
"version": "2.10.9-beta.
|
|
3
|
+
"version": "2.10.9-beta.31",
|
|
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.9-beta.
|
|
23
|
+
"@kmkf-fe-packages/kmkf-utils": "2.10.9-beta.31",
|
|
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": "9c578e2504da438b46c045852cda1e1025a4e0c2"
|
|
70
70
|
}
|