@kmkf-fe-packages/basic-components 2.10.23 → 2.10.25
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 +443 -77
- package/dist/src/business/LogisticsInterception/index.d.ts +1 -0
- package/dist/src/constants/index.d.ts +1 -0
- package/dist/src/constants/systemOrderColumnsMap.d.ts +13 -0
- package/dist/src/constants/ttx.d.ts +5 -0
- package/dist/src/ttx/common/index.d.ts +3 -0
- package/package.json +3 -3
package/dist/index.esm.js
CHANGED
|
@@ -3,7 +3,7 @@ import { Cascader, DatePicker, Image, InputNumber, Input, Select, Upload, messag
|
|
|
3
3
|
import { EyeOutlined, DeleteOutlined, CloseOutlined, PlusSquareOutlined, MinusCircleFilled, PlusCircleFilled, CopyOutlined, CloseCircleOutlined, CaretUpOutlined, UpOutlined, DownOutlined, PlusOutlined, VideoCameraTwoTone } from '@ant-design/icons';
|
|
4
4
|
import request, { extend as extend$1 } from 'umi-request';
|
|
5
5
|
import { CopyToClipboard } from 'react-copy-to-clipboard';
|
|
6
|
-
import { AddressData, BsAddressData, WdtAddressData, GyAddressData, JstAddressData, 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';
|
|
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';
|
|
@@ -8344,6 +8344,11 @@ var systemOrderMap = {
|
|
|
8344
8344
|
no: 'dxdSystemOrderNo',
|
|
8345
8345
|
ids: 'dxdSystemSelectIds',
|
|
8346
8346
|
order: 'dxdSystemShowOrder'
|
|
8347
|
+
},
|
|
8348
|
+
TTX_SYSTEM_ORDER: {
|
|
8349
|
+
no: 'ttxSystemOrderNo',
|
|
8350
|
+
ids: 'ttxSystemSelectIds',
|
|
8351
|
+
order: 'ttxSystemShowOrder'
|
|
8347
8352
|
}
|
|
8348
8353
|
};
|
|
8349
8354
|
//直接将key component 添加到 transformWorkOrderData中的componentProcessors
|
|
@@ -8630,7 +8635,7 @@ var processLogisticsInterception = function processLogisticsInterception(getValu
|
|
|
8630
8635
|
address = every(address, function (item) {
|
|
8631
8636
|
return !item;
|
|
8632
8637
|
}) ? [] : address;
|
|
8633
|
-
var subFields = ['interceptCompany', 'interceptCode', 'interceptType', 'interceptSenderMobile', 'interceptDetail', 'interceptReceiverName', 'interceptReceiverMobile', 'interceptLogisticsStatus', 'interceptLogisticsStatusOther', 'interceptLogisticsSnapshot', 'qySelfInterceptLogisticsStatus', 'interceptLogisticsUserKCode', 'interceptLogisticsUserSecretKey'];
|
|
8638
|
+
var subFields = ['interceptCompany', 'interceptCode', 'interceptType', 'interceptSenderMobile', 'interceptDetail', 'interceptReceiverName', 'interceptReceiverMobile', 'interceptLogisticsStatus', 'interceptLogisticsStatusOther', 'interceptLogisticsSnapshot', 'qySelfInterceptLogisticsStatus', 'interceptLogisticsUserKCode', 'interceptLogisticsUserSecretKey', 'interceptLogisticsCustomerCode'];
|
|
8634
8639
|
var map = subFields.reduce(function (cur, nxt) {
|
|
8635
8640
|
return _objectSpread2(_objectSpread2({}, cur), {}, _defineProperty({}, nxt, getValue("".concat(nex.uniqueKey, "_").concat(nxt))));
|
|
8636
8641
|
}, {});
|
|
@@ -8814,6 +8819,7 @@ var processSceneStatus = function processSceneStatus(getValue) {
|
|
|
8814
8819
|
DXD_WAREHOUSING_STATUS: 'dxdInStockStatusItemList',
|
|
8815
8820
|
JKY_WAREHOUSING_STATUS: 'jkyInStockStatusItemList',
|
|
8816
8821
|
JST_WAREHOUSING_STATUS: 'jstInStockStatusItemList',
|
|
8822
|
+
TTX_WAREHOUSING_STATUS: 'ttxInStockStatusItemList',
|
|
8817
8823
|
WLN_WAREHOUSING_STATUS: 'wlnInStockStatusItemList',
|
|
8818
8824
|
KM_WAREHOUSING_STATUS: 'kmInStockStatusItemList'
|
|
8819
8825
|
};
|
|
@@ -8846,6 +8852,9 @@ var processErpLogistics = function processErpLogistics(getValue) {
|
|
|
8846
8852
|
},
|
|
8847
8853
|
DXD_LOGISTICS: {
|
|
8848
8854
|
listKey: 'dxdLogisticsList'
|
|
8855
|
+
},
|
|
8856
|
+
TTX_LOGISTICS: {
|
|
8857
|
+
listKey: 'ttxLogisticsList'
|
|
8849
8858
|
}
|
|
8850
8859
|
};
|
|
8851
8860
|
var initValue = [{
|
|
@@ -8876,6 +8885,9 @@ var processErpSendGood = function processErpSendGood(getValue) {
|
|
|
8876
8885
|
},
|
|
8877
8886
|
GY_SEND_GOOD: {
|
|
8878
8887
|
list: 'gySendGood'
|
|
8888
|
+
},
|
|
8889
|
+
TTX_SEND_GOOD: {
|
|
8890
|
+
list: 'ttxSendGood'
|
|
8879
8891
|
}
|
|
8880
8892
|
};
|
|
8881
8893
|
var initValue = [{
|
|
@@ -8981,6 +8993,23 @@ var processDxdGoods = function processDxdGoods(templateColumns) {
|
|
|
8981
8993
|
};
|
|
8982
8994
|
};
|
|
8983
8995
|
};
|
|
8996
|
+
var processTtxGoods = function processTtxGoods(templateColumns) {
|
|
8997
|
+
return function (getValue) {
|
|
8998
|
+
return function (nex, config) {
|
|
8999
|
+
var tradeId = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
|
|
9000
|
+
return col.workOrderComponentType === 'TRADE_ID_INPUT';
|
|
9001
|
+
});
|
|
9002
|
+
var systemOrder = templateColumns === null || templateColumns === void 0 ? void 0 : templateColumns.find(function (col) {
|
|
9003
|
+
return col.workOrderComponentType === 'TTX_SYSTEM_ORDER';
|
|
9004
|
+
});
|
|
9005
|
+
return _defineProperty({}, nex.uniqueKey, {
|
|
9006
|
+
ttxGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_ttxGoods")), []),
|
|
9007
|
+
orderNo: tradeId ? getValue("".concat(tradeId.uniqueKey, "_tradeId")) : '',
|
|
9008
|
+
selectIds: systemOrder ? jsonParseSecurity(getValue("".concat(systemOrder.uniqueKey, "_").concat(systemOrderMap.TTX_SYSTEM_ORDER.ids)), []) : []
|
|
9009
|
+
});
|
|
9010
|
+
};
|
|
9011
|
+
};
|
|
9012
|
+
};
|
|
8984
9013
|
var processDxdSuppliers = function processDxdSuppliers(templateColumns) {
|
|
8985
9014
|
return function (getValue) {
|
|
8986
9015
|
return function (nex, config) {
|
|
@@ -9342,6 +9371,11 @@ var processErpSystemOrder = function processErpSystemOrder(getValue) {
|
|
|
9342
9371
|
no: 'dxdSystemOrderNo',
|
|
9343
9372
|
ids: 'dxdSystemSelectIds',
|
|
9344
9373
|
order: 'dxdSystemShowOrder'
|
|
9374
|
+
},
|
|
9375
|
+
TTX_SYSTEM_ORDER: {
|
|
9376
|
+
no: 'ttxSystemOrderNo',
|
|
9377
|
+
ids: 'ttxSystemSelectIds',
|
|
9378
|
+
order: 'ttxSystemShowOrder'
|
|
9345
9379
|
}
|
|
9346
9380
|
};
|
|
9347
9381
|
return _defineProperty({}, nex.uniqueKey, _objectSpread2({
|
|
@@ -9611,14 +9645,14 @@ var processJstReturnGoods = function processJstReturnGoods(templateColumns) {
|
|
|
9611
9645
|
};
|
|
9612
9646
|
var processLabel = function processLabel(getValue) {
|
|
9613
9647
|
return function (nex, config) {
|
|
9614
|
-
var
|
|
9615
|
-
return
|
|
9648
|
+
var _ref80;
|
|
9649
|
+
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;
|
|
9616
9650
|
};
|
|
9617
9651
|
};
|
|
9618
9652
|
var processMemberLevel = function processMemberLevel(getValue) {
|
|
9619
9653
|
return function (nex, config) {
|
|
9620
|
-
var
|
|
9621
|
-
return
|
|
9654
|
+
var _ref81;
|
|
9655
|
+
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;
|
|
9622
9656
|
};
|
|
9623
9657
|
};
|
|
9624
9658
|
var processAfterSalesOrderId = function processAfterSalesOrderId(getValue) {
|
|
@@ -9728,6 +9762,7 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
|
|
|
9728
9762
|
WLN_WAREHOUSING_STATUS: processSceneStatus,
|
|
9729
9763
|
JKY_WAREHOUSING_STATUS: processSceneStatus,
|
|
9730
9764
|
JST_WAREHOUSING_STATUS: processSceneStatus,
|
|
9765
|
+
TTX_WAREHOUSING_STATUS: processSceneStatus,
|
|
9731
9766
|
KM_WAREHOUSING_STATUS: processSceneStatus,
|
|
9732
9767
|
BS_LOGISTICS: processErpLogistics,
|
|
9733
9768
|
WLN_LOGISTICS: processErpLogistics,
|
|
@@ -9736,18 +9771,21 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
|
|
|
9736
9771
|
BS_E3_LOGISTICS: processErpLogistics,
|
|
9737
9772
|
KM_LOGISTICS: processErpLogistics,
|
|
9738
9773
|
DXD_LOGISTICS: processErpLogistics,
|
|
9774
|
+
TTX_LOGISTICS: processErpLogistics,
|
|
9739
9775
|
BS_SEND_GOOD: processErpSendGood,
|
|
9740
9776
|
WLN_SEND_GOOD: processErpSendGood,
|
|
9741
9777
|
WDT_SEND_GOOD: processErpSendGood,
|
|
9742
9778
|
BS_E3_SEND_GOOD: processErpSendGood,
|
|
9743
9779
|
KM_SEND_GOOD: processErpSendGood,
|
|
9744
9780
|
GY_SEND_GOOD: processErpSendGood,
|
|
9781
|
+
TTX_SEND_GOOD: processErpSendGood,
|
|
9745
9782
|
KM_RETURN_WAREHOUSE: processErpReturnWarehouse,
|
|
9746
9783
|
BS_POSTING: processBsPosting,
|
|
9747
9784
|
BS_GOODS: processBsGoods,
|
|
9748
9785
|
WDT_GOODS: processWdtGoods(templateColumns),
|
|
9749
9786
|
JKY_GOODS: processJkyGoods(templateColumns),
|
|
9750
9787
|
DXD_GOODS: processDxdGoods(templateColumns),
|
|
9788
|
+
TTX_GOODS: processTtxGoods(templateColumns),
|
|
9751
9789
|
DXD_SUPPLIERS: processDxdSuppliers(templateColumns),
|
|
9752
9790
|
WDT_AFTERSALE_GOODS: processWdtAftersaleGoods(templateColumns),
|
|
9753
9791
|
JST_AFTERSALE_GOODS: processJstAftersaleGoods(templateColumns),
|
|
@@ -9776,6 +9814,7 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
|
|
|
9776
9814
|
JST_SYSTEM_ORDER: processErpSystemOrder,
|
|
9777
9815
|
GY_SYSTEM_ORDER: processErpSystemOrder,
|
|
9778
9816
|
DXD_SYSTEM_ORDER: processErpSystemOrder,
|
|
9817
|
+
TTX_SYSTEM_ORDER: processErpSystemOrder,
|
|
9779
9818
|
BUYER_MESSAGE_NOTICE: processBuyerMessageNotice,
|
|
9780
9819
|
ORDER_TYPE: processOrderType,
|
|
9781
9820
|
REFUND_TYPE: processRefundType,
|
|
@@ -13497,7 +13536,6 @@ var Item = Form.Item;
|
|
|
13497
13536
|
var LogisticsInterception = function LogisticsInterception(props) {
|
|
13498
13537
|
var _value$interceptLogis3, _value$interceptLogis4, _value$interceptLogis5;
|
|
13499
13538
|
var LogisticsAddress = LogisticsAddressData.getInstance();
|
|
13500
|
-
var LogisticsAddressOptions = (LogisticsAddress === null || LogisticsAddress === void 0 ? void 0 : LogisticsAddress.getAddressData()) || [];
|
|
13501
13539
|
var address = AddressData.getInstance();
|
|
13502
13540
|
var _props$value = props.value,
|
|
13503
13541
|
value = _props$value === void 0 ? {} : _props$value,
|
|
@@ -13535,6 +13573,12 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
13535
13573
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
13536
13574
|
isInterface = _useState8[0],
|
|
13537
13575
|
setIsInterface = _useState8[1];
|
|
13576
|
+
var _useState9 = useState(function () {
|
|
13577
|
+
return (LogisticsAddress === null || LogisticsAddress === void 0 ? void 0 : LogisticsAddress.getAddressData()) || [];
|
|
13578
|
+
}),
|
|
13579
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
13580
|
+
logisticsAddressData = _useState10[0],
|
|
13581
|
+
setLogisticsAddressData = _useState10[1];
|
|
13538
13582
|
useEffect(function () {
|
|
13539
13583
|
if (!(value === null || value === void 0 ? void 0 : value.interceptCompany)) {
|
|
13540
13584
|
setTypeOptions([]);
|
|
@@ -13549,6 +13593,13 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
13549
13593
|
setStatusOptions((interceptCompany === null || interceptCompany === void 0 ? void 0 : interceptCompany.logisticsStatusList) || []);
|
|
13550
13594
|
setIsInterface(interceptCompany === null || interceptCompany === void 0 ? void 0 : interceptCompany.isInterface);
|
|
13551
13595
|
}, [value === null || value === void 0 ? void 0 : value.interceptCompany]);
|
|
13596
|
+
useEffect(function () {
|
|
13597
|
+
if (!isJdLogisticsCompany(value === null || value === void 0 ? void 0 : value.interceptCompany) && (value === null || value === void 0 ? void 0 : value.interceptLogisticsCustomerCode) !== undefined) {
|
|
13598
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, value), {}, {
|
|
13599
|
+
interceptLogisticsCustomerCode: undefined
|
|
13600
|
+
}));
|
|
13601
|
+
}
|
|
13602
|
+
}, [value === null || value === void 0 ? void 0 : value.interceptCompany, value === null || value === void 0 ? void 0 : value.interceptLogisticsCustomerCode]);
|
|
13552
13603
|
//拦截类型切换 需要清空派送地址
|
|
13553
13604
|
useEffect(function () {
|
|
13554
13605
|
if (!(value === null || value === void 0 ? void 0 : value.interceptCompany)) return;
|
|
@@ -13611,6 +13662,9 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
13611
13662
|
}
|
|
13612
13663
|
return isShow;
|
|
13613
13664
|
}, [value === null || value === void 0 ? void 0 : value.interceptCompany]);
|
|
13665
|
+
var showCustomerCode = useMemo(function () {
|
|
13666
|
+
return isJdLogisticsCompany(value === null || value === void 0 ? void 0 : value.interceptCompany);
|
|
13667
|
+
}, [value === null || value === void 0 ? void 0 : value.interceptCompany]);
|
|
13614
13668
|
//判断是否能修改物流信息
|
|
13615
13669
|
var isEdit = useMemo(function () {
|
|
13616
13670
|
var company = expressInterceptData.find(function (item) {
|
|
@@ -13622,13 +13676,13 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
13622
13676
|
var baseFieldDisabled = disabled || isEdit && !canEditPreCreateBaseFields;
|
|
13623
13677
|
//退回地址列表
|
|
13624
13678
|
var logisticsAddressOptions = useMemo(function () {
|
|
13625
|
-
return
|
|
13679
|
+
return logisticsAddressData === null || logisticsAddressData === void 0 ? void 0 : logisticsAddressData.filter(function (item) {
|
|
13626
13680
|
return item.cpCode === (value === null || value === void 0 ? void 0 : value.interceptCompany);
|
|
13627
13681
|
});
|
|
13628
|
-
}, [value === null || value === void 0 ? void 0 : value.interceptCompany]);
|
|
13682
|
+
}, [logisticsAddressData, value === null || value === void 0 ? void 0 : value.interceptCompany]);
|
|
13629
13683
|
// K码列表
|
|
13630
13684
|
var kCodeList = useMemo(function () {
|
|
13631
|
-
return
|
|
13685
|
+
return logisticsAddressData === null || logisticsAddressData === void 0 ? void 0 : logisticsAddressData.filter(function (item) {
|
|
13632
13686
|
return item.cpCode === (value === null || value === void 0 ? void 0 : value.interceptCompany) && item.userKCode;
|
|
13633
13687
|
}).map(function (item) {
|
|
13634
13688
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
@@ -13636,7 +13690,44 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
13636
13690
|
label: item === null || item === void 0 ? void 0 : item.userKCode
|
|
13637
13691
|
});
|
|
13638
13692
|
});
|
|
13639
|
-
}, [value === null || value === void 0 ? void 0 : value.interceptCompany]);
|
|
13693
|
+
}, [logisticsAddressData, value === null || value === void 0 ? void 0 : value.interceptCompany]);
|
|
13694
|
+
var customerCodeOptions = useMemo(function () {
|
|
13695
|
+
return getJdCustomerCodeOptions(logisticsAddressData);
|
|
13696
|
+
}, [logisticsAddressData]);
|
|
13697
|
+
var refreshLogisticsAddressOptions = /*#__PURE__*/function () {
|
|
13698
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
13699
|
+
var _yield$request, data, latestData;
|
|
13700
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
13701
|
+
while (1) switch (_context.prev = _context.next) {
|
|
13702
|
+
case 0:
|
|
13703
|
+
_context.prev = 0;
|
|
13704
|
+
_context.next = 3;
|
|
13705
|
+
return request$1({
|
|
13706
|
+
url: '/qy/userConfig/listLogisticsAddress',
|
|
13707
|
+
method: 'get',
|
|
13708
|
+
data: {}
|
|
13709
|
+
});
|
|
13710
|
+
case 3:
|
|
13711
|
+
_yield$request = _context.sent;
|
|
13712
|
+
data = _yield$request.data;
|
|
13713
|
+
latestData = data || [];
|
|
13714
|
+
LogisticsAddress.setaddressData(latestData);
|
|
13715
|
+
setLogisticsAddressData(latestData);
|
|
13716
|
+
_context.next = 12;
|
|
13717
|
+
break;
|
|
13718
|
+
case 10:
|
|
13719
|
+
_context.prev = 10;
|
|
13720
|
+
_context.t0 = _context["catch"](0);
|
|
13721
|
+
case 12:
|
|
13722
|
+
case "end":
|
|
13723
|
+
return _context.stop();
|
|
13724
|
+
}
|
|
13725
|
+
}, _callee, null, [[0, 10]]);
|
|
13726
|
+
}));
|
|
13727
|
+
return function refreshLogisticsAddressOptions() {
|
|
13728
|
+
return _ref.apply(this, arguments);
|
|
13729
|
+
};
|
|
13730
|
+
}();
|
|
13640
13731
|
var returnValue = useMemo(function () {
|
|
13641
13732
|
var _value$interceptAddre, _value$interceptAddre2, _value$interceptAddre3;
|
|
13642
13733
|
var uk = LogisticsAddress === null || LogisticsAddress === void 0 ? void 0 : LogisticsAddress.getUkByInfo({
|
|
@@ -13692,9 +13783,6 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
13692
13783
|
// userSecretKey: '12345678',
|
|
13693
13784
|
// },
|
|
13694
13785
|
// ];
|
|
13695
|
-
var matchKCodeList = LogisticsAddressOptions === null || LogisticsAddressOptions === void 0 ? void 0 : LogisticsAddressOptions.filter(function (item) {
|
|
13696
|
-
return item.cpCode === val && item.userKCode;
|
|
13697
|
-
});
|
|
13698
13786
|
newValue = _objectSpread2(_objectSpread2({}, newValue), {}, {
|
|
13699
13787
|
interceptCompany: val,
|
|
13700
13788
|
interceptType: (_defaultInterceptType = defaultInterceptType) === null || _defaultInterceptType === void 0 ? void 0 : _defaultInterceptType.value,
|
|
@@ -13713,7 +13801,8 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
13713
13801
|
},
|
|
13714
13802
|
interceptLogisticsApiStatusReason: undefined,
|
|
13715
13803
|
interceptLogisticsUserKCode: undefined,
|
|
13716
|
-
interceptLogisticsUserSecretKey: undefined
|
|
13804
|
+
interceptLogisticsUserSecretKey: undefined,
|
|
13805
|
+
interceptLogisticsCustomerCode: undefined
|
|
13717
13806
|
});
|
|
13718
13807
|
}
|
|
13719
13808
|
if (type === 'interceptLogisticsApiStatus') {
|
|
@@ -13793,7 +13882,41 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
13793
13882
|
return _onBlur === null || _onBlur === void 0 ? void 0 : _onBlur((_e$target$value2 = e.target.value) === null || _e$target$value2 === void 0 ? void 0 : _e$target$value2.trim(), 'interceptCode');
|
|
13794
13883
|
},
|
|
13795
13884
|
value: value === null || value === void 0 ? void 0 : value.interceptCode
|
|
13796
|
-
}))), /*#__PURE__*/React.createElement(
|
|
13885
|
+
}))), /*#__PURE__*/React.createElement(Item, {
|
|
13886
|
+
label: /*#__PURE__*/React.createElement("span", null, "\u5BA2\u6237\u7F16\u7801", platform === 'pc' ? /*#__PURE__*/React.createElement(React.Fragment, null, "\uFF1A", /*#__PURE__*/React.createElement(Typography.Link, {
|
|
13887
|
+
style: {
|
|
13888
|
+
cursor: 'pointer'
|
|
13889
|
+
},
|
|
13890
|
+
onClick: function onClick() {
|
|
13891
|
+
return onJumpPage && (onJumpPage === null || onJumpPage === void 0 ? void 0 : onJumpPage({
|
|
13892
|
+
type: 'interceptConfig',
|
|
13893
|
+
state: {
|
|
13894
|
+
tab: 'JDLCodeRelation'
|
|
13895
|
+
}
|
|
13896
|
+
}));
|
|
13897
|
+
}
|
|
13898
|
+
}, 'K码/EBU码配置>>')) : null),
|
|
13899
|
+
required: showCustomerCode,
|
|
13900
|
+
key: 'interceptLogisticsCustomerCode',
|
|
13901
|
+
hidden: !showCustomerCode
|
|
13902
|
+
}, /*#__PURE__*/React.createElement(Select, {
|
|
13903
|
+
disabled: disabled,
|
|
13904
|
+
placeholder: "\u9009\u62E9\u5BA2\u6237\u7F16\u7801",
|
|
13905
|
+
notFoundContent: "\u6682\u65E0\u5BA2\u6237\u7F16\u7801\u914D\u7F6E\uFF0C\u8BF7\u5148\u524D\u5F80K\u7801/EBU\u7801\u914D\u7F6E>>",
|
|
13906
|
+
showSearch: true,
|
|
13907
|
+
style: {
|
|
13908
|
+
width: '200px'
|
|
13909
|
+
},
|
|
13910
|
+
onChange: function onChange(val) {
|
|
13911
|
+
return changeHandle(val, 'interceptLogisticsCustomerCode');
|
|
13912
|
+
},
|
|
13913
|
+
onFocus: refreshLogisticsAddressOptions,
|
|
13914
|
+
options: customerCodeOptions,
|
|
13915
|
+
value: value === null || value === void 0 ? void 0 : value.interceptLogisticsCustomerCode,
|
|
13916
|
+
filterOption: function filterOption(input, option) {
|
|
13917
|
+
return option.label.includes(input);
|
|
13918
|
+
}
|
|
13919
|
+
})), /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Item, {
|
|
13797
13920
|
label: /*#__PURE__*/React.createElement("span", null, "\u5BA2\u6237\u7F16\u7801\uFF08K\u7801\uFF09\uFF1A", platform === 'pc' ? /*#__PURE__*/React.createElement(Typography.Link, {
|
|
13798
13921
|
style: {
|
|
13799
13922
|
cursor: 'pointer'
|
|
@@ -13838,7 +13961,7 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
13838
13961
|
value: value === null || value === void 0 ? void 0 : value.interceptLogisticsUserSecretKey
|
|
13839
13962
|
}))), /*#__PURE__*/React.createElement(Item, {
|
|
13840
13963
|
label: '拦截类型',
|
|
13841
|
-
required: required,
|
|
13964
|
+
required: required && !showCustomerCode,
|
|
13842
13965
|
key: 'interceptType'
|
|
13843
13966
|
}, /*#__PURE__*/React.createElement(Select, {
|
|
13844
13967
|
disabled: baseFieldDisabled,
|
|
@@ -14478,7 +14601,7 @@ var jstGoods = function jstGoods(props) {
|
|
|
14478
14601
|
changeIndex = _useState2[0],
|
|
14479
14602
|
setChangeIndex = _useState2[1]; //选中的包裹
|
|
14480
14603
|
var sendOptions = SendDataCenter.getInstance(platformType).getSendData();
|
|
14481
|
-
var isSelectName = ['wdt', 'bsE3', 'km', 'gy', 'jst', 'jy', 'jky', 'wln', 'dxd'].includes(platformType);
|
|
14604
|
+
var isSelectName = ['wdt', 'bsE3', 'km', 'gy', 'jst', 'jy', 'jky', 'wln', 'dxd', 'ttx'].includes(platformType);
|
|
14482
14605
|
var expressDateInstance = ExpressData.getInstance(platformType);
|
|
14483
14606
|
var isSendGoodSavedId = isSelectName && !['jst', 'wln'].includes(platformType);
|
|
14484
14607
|
useEffect(function () {
|
|
@@ -25101,7 +25224,128 @@ var getColumns$a = function getColumns() {
|
|
|
25101
25224
|
};
|
|
25102
25225
|
};
|
|
25103
25226
|
|
|
25104
|
-
var
|
|
25227
|
+
var TTX_BOM_TYPE_MAP = {
|
|
25228
|
+
'0': '正常品',
|
|
25229
|
+
'1': '实物组套',
|
|
25230
|
+
'2': '虚拟组套',
|
|
25231
|
+
'3': '虚拟组套子品',
|
|
25232
|
+
'4': '虚拟品'
|
|
25233
|
+
};
|
|
25234
|
+
var getTtxBomTypeName = function getTtxBomTypeName(value) {
|
|
25235
|
+
var _TTX_BOM_TYPE_MAP$Str;
|
|
25236
|
+
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;
|
|
25237
|
+
};
|
|
25238
|
+
var getColumns$b = function getColumns() {
|
|
25239
|
+
return {
|
|
25240
|
+
TTX_GOODS: [{
|
|
25241
|
+
dataIndex: 'skuName',
|
|
25242
|
+
title: 'SKU名称',
|
|
25243
|
+
width: 150,
|
|
25244
|
+
render: renderTextEllipsis
|
|
25245
|
+
}, {
|
|
25246
|
+
dataIndex: 'skuCode',
|
|
25247
|
+
title: 'SKU编码',
|
|
25248
|
+
width: 150,
|
|
25249
|
+
render: renderTextEllipsis
|
|
25250
|
+
}, {
|
|
25251
|
+
dataIndex: 'sourceSpuId',
|
|
25252
|
+
title: '平台商品ID',
|
|
25253
|
+
width: 150,
|
|
25254
|
+
render: renderTextEllipsis
|
|
25255
|
+
}, {
|
|
25256
|
+
dataIndex: 'sourceSkuId',
|
|
25257
|
+
title: '平台SKU ID',
|
|
25258
|
+
width: 150,
|
|
25259
|
+
render: renderTextEllipsis
|
|
25260
|
+
}, {
|
|
25261
|
+
dataIndex: 'requestQty',
|
|
25262
|
+
title: '要求发货数量',
|
|
25263
|
+
width: 150,
|
|
25264
|
+
render: renderTextEllipsis
|
|
25265
|
+
}, {
|
|
25266
|
+
dataIndex: 'shipQty',
|
|
25267
|
+
title: '已发货数量',
|
|
25268
|
+
width: 150,
|
|
25269
|
+
render: renderTextEllipsis
|
|
25270
|
+
}, {
|
|
25271
|
+
dataIndex: 'returnQty',
|
|
25272
|
+
title: '退货数量',
|
|
25273
|
+
width: 150,
|
|
25274
|
+
render: renderTextEllipsis
|
|
25275
|
+
}, {
|
|
25276
|
+
dataIndex: 'listPrice',
|
|
25277
|
+
title: '零售价/标价',
|
|
25278
|
+
width: 150,
|
|
25279
|
+
render: renderTextEllipsis
|
|
25280
|
+
}, {
|
|
25281
|
+
dataIndex: 'netPrice',
|
|
25282
|
+
title: '客户实付单价',
|
|
25283
|
+
width: 150,
|
|
25284
|
+
render: renderTextEllipsis
|
|
25285
|
+
}, {
|
|
25286
|
+
dataIndex: 'msrPrice',
|
|
25287
|
+
title: '建议零售价',
|
|
25288
|
+
width: 150,
|
|
25289
|
+
render: renderTextEllipsis
|
|
25290
|
+
}, {
|
|
25291
|
+
dataIndex: 'itemTotalAmount',
|
|
25292
|
+
title: '商品总金额',
|
|
25293
|
+
width: 150,
|
|
25294
|
+
render: renderTextEllipsis
|
|
25295
|
+
}, {
|
|
25296
|
+
dataIndex: 'totalPayAmount',
|
|
25297
|
+
title: '实付金额',
|
|
25298
|
+
width: 150,
|
|
25299
|
+
render: renderTextEllipsis
|
|
25300
|
+
}, {
|
|
25301
|
+
dataIndex: 'isGift',
|
|
25302
|
+
title: '是否赠品',
|
|
25303
|
+
width: 150,
|
|
25304
|
+
render: function render(value) {
|
|
25305
|
+
return renderTextEllipsis(getYesOrNo$4(value));
|
|
25306
|
+
},
|
|
25307
|
+
renderExport: getYesOrNo$4,
|
|
25308
|
+
headerMapping: {
|
|
25309
|
+
transformValue: getYesOrNo$4,
|
|
25310
|
+
renderExport: getYesOrNo$4
|
|
25311
|
+
}
|
|
25312
|
+
}, {
|
|
25313
|
+
dataIndex: 'bomType',
|
|
25314
|
+
title: 'BOM类型',
|
|
25315
|
+
width: 150,
|
|
25316
|
+
render: function render(value) {
|
|
25317
|
+
return renderTextEllipsis(getTtxBomTypeName(value));
|
|
25318
|
+
},
|
|
25319
|
+
renderExport: getTtxBomTypeName,
|
|
25320
|
+
headerMapping: {
|
|
25321
|
+
transformValue: getTtxBomTypeName,
|
|
25322
|
+
renderExport: getTtxBomTypeName
|
|
25323
|
+
}
|
|
25324
|
+
}, {
|
|
25325
|
+
dataIndex: 'bomSkuCode',
|
|
25326
|
+
title: 'BOM商品编码',
|
|
25327
|
+
width: 150,
|
|
25328
|
+
render: renderTextEllipsis
|
|
25329
|
+
}, {
|
|
25330
|
+
dataIndex: 'platformSpuCode',
|
|
25331
|
+
title: '商品货号',
|
|
25332
|
+
width: 150,
|
|
25333
|
+
render: renderTextEllipsis
|
|
25334
|
+
}, {
|
|
25335
|
+
dataIndex: 'platformSkuCode',
|
|
25336
|
+
title: 'SKU货号',
|
|
25337
|
+
width: 150,
|
|
25338
|
+
render: renderTextEllipsis
|
|
25339
|
+
}].map(function (item) {
|
|
25340
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
25341
|
+
align: 'center',
|
|
25342
|
+
ellipsis: true
|
|
25343
|
+
});
|
|
25344
|
+
})
|
|
25345
|
+
};
|
|
25346
|
+
};
|
|
25347
|
+
|
|
25348
|
+
var getColumns$c = function getColumns(_ref) {
|
|
25105
25349
|
var _ref$text = _ref.text,
|
|
25106
25350
|
text = _ref$text === void 0 ? '' : _ref$text,
|
|
25107
25351
|
disabled = _ref.disabled,
|
|
@@ -25230,7 +25474,7 @@ var getColumnsMap$1 = function getColumnsMap(args) {
|
|
|
25230
25474
|
disabled = _ref.disabled,
|
|
25231
25475
|
updateHandle = _ref.updateHandle,
|
|
25232
25476
|
updateDataHandle = _ref.updateDataHandle;
|
|
25233
|
-
return _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, getColumns$1({
|
|
25477
|
+
return _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, getColumns$1({
|
|
25234
25478
|
text: text,
|
|
25235
25479
|
disabled: disabled,
|
|
25236
25480
|
updateHandle: updateHandle
|
|
@@ -25279,8 +25523,8 @@ var getColumnsMap$1 = function getColumnsMap(args) {
|
|
|
25279
25523
|
disabled: disabled,
|
|
25280
25524
|
updateHandle: updateHandle,
|
|
25281
25525
|
updateDataHandle: updateDataHandle
|
|
25282
|
-
})), {}, {
|
|
25283
|
-
default: getColumns$
|
|
25526
|
+
})), getColumns$b()), {}, {
|
|
25527
|
+
default: getColumns$c({
|
|
25284
25528
|
text: text,
|
|
25285
25529
|
disabled: disabled,
|
|
25286
25530
|
updateHandle: updateHandle
|
|
@@ -25435,6 +25679,9 @@ var isErpType = {
|
|
|
25435
25679
|
},
|
|
25436
25680
|
isWln: function isWln(type) {
|
|
25437
25681
|
return ['WLN_GOODS', 'WLN_REISSUE_GOODS'].includes(type);
|
|
25682
|
+
},
|
|
25683
|
+
isTtx: function isTtx(type) {
|
|
25684
|
+
return ['TTX_GOODS'].includes(type);
|
|
25438
25685
|
}
|
|
25439
25686
|
};
|
|
25440
25687
|
var processGoods$1 = function processGoods(_ref) {
|
|
@@ -25501,6 +25748,12 @@ var processGoods$1 = function processGoods(_ref) {
|
|
|
25501
25748
|
canUpdateNumber: canUpdateNumber,
|
|
25502
25749
|
source: source
|
|
25503
25750
|
});
|
|
25751
|
+
} else if (isErpType.isTtx(type)) {
|
|
25752
|
+
newList = processTtxGoods$1({
|
|
25753
|
+
list: list,
|
|
25754
|
+
type: type,
|
|
25755
|
+
canUpdateNumber: canUpdateNumber
|
|
25756
|
+
});
|
|
25504
25757
|
} else {
|
|
25505
25758
|
newList = processDefaultGoods({
|
|
25506
25759
|
list: list,
|
|
@@ -25511,9 +25764,21 @@ var processGoods$1 = function processGoods(_ref) {
|
|
|
25511
25764
|
}
|
|
25512
25765
|
return newList;
|
|
25513
25766
|
};
|
|
25514
|
-
var
|
|
25767
|
+
var processTtxGoods$1 = function processTtxGoods(_ref2) {
|
|
25515
25768
|
var list = _ref2.list,
|
|
25516
25769
|
canUpdateNumber = _ref2.canUpdateNumber;
|
|
25770
|
+
return list.map(function (item) {
|
|
25771
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
25772
|
+
uuid: (item === null || item === void 0 ? void 0 : item.uuid) || uuid(),
|
|
25773
|
+
canDelete: true,
|
|
25774
|
+
canEdit: true,
|
|
25775
|
+
canUpdateNumber: canUpdateNumber
|
|
25776
|
+
});
|
|
25777
|
+
});
|
|
25778
|
+
};
|
|
25779
|
+
var processJyGoods = function processJyGoods(_ref3) {
|
|
25780
|
+
var list = _ref3.list,
|
|
25781
|
+
canUpdateNumber = _ref3.canUpdateNumber;
|
|
25517
25782
|
return list.map(function (item) {
|
|
25518
25783
|
var goodName = item.goodName,
|
|
25519
25784
|
goodNo = item.goodNo,
|
|
@@ -25549,9 +25814,9 @@ var processJyGoods = function processJyGoods(_ref2) {
|
|
|
25549
25814
|
});
|
|
25550
25815
|
});
|
|
25551
25816
|
};
|
|
25552
|
-
var processJkyGoods$1 = function processJkyGoods(
|
|
25553
|
-
var list =
|
|
25554
|
-
canUpdateNumber =
|
|
25817
|
+
var processJkyGoods$1 = function processJkyGoods(_ref4) {
|
|
25818
|
+
var list = _ref4.list,
|
|
25819
|
+
canUpdateNumber = _ref4.canUpdateNumber;
|
|
25555
25820
|
return list.map(function (item) {
|
|
25556
25821
|
var goodName = item.goodName,
|
|
25557
25822
|
goodNo = item.goodNo,
|
|
@@ -25583,9 +25848,9 @@ var processJkyGoods$1 = function processJkyGoods(_ref3) {
|
|
|
25583
25848
|
});
|
|
25584
25849
|
});
|
|
25585
25850
|
};
|
|
25586
|
-
var processWlnGoods$1 = function processWlnGoods(
|
|
25587
|
-
var list =
|
|
25588
|
-
canUpdateNumber =
|
|
25851
|
+
var processWlnGoods$1 = function processWlnGoods(_ref5) {
|
|
25852
|
+
var list = _ref5.list,
|
|
25853
|
+
canUpdateNumber = _ref5.canUpdateNumber;
|
|
25589
25854
|
return list.map(function (item) {
|
|
25590
25855
|
var goodName = item.goodName,
|
|
25591
25856
|
goodShortName = item.goodShortName,
|
|
@@ -25636,10 +25901,10 @@ var processWlnGoods$1 = function processWlnGoods(_ref4) {
|
|
|
25636
25901
|
});
|
|
25637
25902
|
};
|
|
25638
25903
|
// 处理不同类型的商品数据
|
|
25639
|
-
var processWdtGoods$1 = function processWdtGoods(
|
|
25640
|
-
var list =
|
|
25641
|
-
type =
|
|
25642
|
-
canUpdateNumber =
|
|
25904
|
+
var processWdtGoods$1 = function processWdtGoods(_ref6) {
|
|
25905
|
+
var list = _ref6.list,
|
|
25906
|
+
type = _ref6.type,
|
|
25907
|
+
canUpdateNumber = _ref6.canUpdateNumber;
|
|
25643
25908
|
return list.map(function (item) {
|
|
25644
25909
|
var processedItem = _objectSpread2(_objectSpread2({}, item), {}, {
|
|
25645
25910
|
uuid: uuid(),
|
|
@@ -25657,9 +25922,9 @@ var processWdtGoods$1 = function processWdtGoods(_ref5) {
|
|
|
25657
25922
|
return processedItem;
|
|
25658
25923
|
});
|
|
25659
25924
|
};
|
|
25660
|
-
var processBsE3Goods$1 = function processBsE3Goods(
|
|
25661
|
-
var list =
|
|
25662
|
-
canUpdateNumber =
|
|
25925
|
+
var processBsE3Goods$1 = function processBsE3Goods(_ref7) {
|
|
25926
|
+
var list = _ref7.list,
|
|
25927
|
+
canUpdateNumber = _ref7.canUpdateNumber;
|
|
25663
25928
|
return list.map(function (item) {
|
|
25664
25929
|
var specNo = item.specNo,
|
|
25665
25930
|
specId = item.specId,
|
|
@@ -25694,9 +25959,9 @@ var processBsE3Goods$1 = function processBsE3Goods(_ref6) {
|
|
|
25694
25959
|
});
|
|
25695
25960
|
});
|
|
25696
25961
|
};
|
|
25697
|
-
var processGyGoods$1 = function processGyGoods(
|
|
25698
|
-
var list =
|
|
25699
|
-
source =
|
|
25962
|
+
var processGyGoods$1 = function processGyGoods(_ref8) {
|
|
25963
|
+
var list = _ref8.list,
|
|
25964
|
+
source = _ref8.source;
|
|
25700
25965
|
var isFormWorkOrder = source === 'workOrder';
|
|
25701
25966
|
return list.map(function (item) {
|
|
25702
25967
|
var goodName = item.goodName,
|
|
@@ -25723,8 +25988,8 @@ var processGyGoods$1 = function processGyGoods(_ref7) {
|
|
|
25723
25988
|
});
|
|
25724
25989
|
});
|
|
25725
25990
|
};
|
|
25726
|
-
var processJstGoods$1 = function processJstGoods(
|
|
25727
|
-
var list =
|
|
25991
|
+
var processJstGoods$1 = function processJstGoods(_ref9) {
|
|
25992
|
+
var list = _ref9.list;
|
|
25728
25993
|
return list.map(function (item) {
|
|
25729
25994
|
return {
|
|
25730
25995
|
name: item.goodName,
|
|
@@ -25742,9 +26007,9 @@ var processJstGoods$1 = function processJstGoods(_ref8) {
|
|
|
25742
26007
|
};
|
|
25743
26008
|
});
|
|
25744
26009
|
};
|
|
25745
|
-
var processKmGoods$1 = function processKmGoods(
|
|
25746
|
-
var list =
|
|
25747
|
-
type =
|
|
26010
|
+
var processKmGoods$1 = function processKmGoods(_ref10) {
|
|
26011
|
+
var list = _ref10.list,
|
|
26012
|
+
type = _ref10.type;
|
|
25748
26013
|
var initParamsMap = {
|
|
25749
26014
|
KM_GOODS: {
|
|
25750
26015
|
num: 1
|
|
@@ -25783,9 +26048,9 @@ var processKmGoods$1 = function processKmGoods(_ref9) {
|
|
|
25783
26048
|
}, initParamsMap[type] || {});
|
|
25784
26049
|
});
|
|
25785
26050
|
};
|
|
25786
|
-
var processDefaultGoods = function processDefaultGoods(
|
|
25787
|
-
var list =
|
|
25788
|
-
canUpdateNumber =
|
|
26051
|
+
var processDefaultGoods = function processDefaultGoods(_ref11) {
|
|
26052
|
+
var list = _ref11.list,
|
|
26053
|
+
canUpdateNumber = _ref11.canUpdateNumber;
|
|
25789
26054
|
return list.map(function (item) {
|
|
25790
26055
|
var goodsId = item.goodsId,
|
|
25791
26056
|
name = item.name,
|
|
@@ -25851,6 +26116,7 @@ var systemOrderNoMap = {
|
|
|
25851
26116
|
JKY_GOODS: 'tradeNo',
|
|
25852
26117
|
JKY_REISSUE_GOODS: 'tradeNo',
|
|
25853
26118
|
DXD_GOODS: 'orderNo',
|
|
26119
|
+
TTX_GOODS: 'code',
|
|
25854
26120
|
WLN_REISSUE_GOODS: 'tradeNo',
|
|
25855
26121
|
KM_REISSUE_GOODS: 'sid',
|
|
25856
26122
|
KM_RETURN_GOODS: 'sid',
|
|
@@ -26181,7 +26447,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
26181
26447
|
// const isShowSelectTradeGoods =
|
|
26182
26448
|
// type !== 'JST_EXCHANGE_GOODS' || jstReturnGoods?.jstSystemOrderNo;
|
|
26183
26449
|
// 判断是否为是否展示系统单筛选项
|
|
26184
|
-
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;
|
|
26450
|
+
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;
|
|
26185
26451
|
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;
|
|
26186
26452
|
var refModal = useRef();
|
|
26187
26453
|
var handleDelete = function handleDelete(record, index) {
|
|
@@ -26278,6 +26544,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
26278
26544
|
case 'JKY_REISSUE_GOODS':
|
|
26279
26545
|
case 'DXD_GOODS':
|
|
26280
26546
|
case 'DXD_SUPPLIERS':
|
|
26547
|
+
case 'TTX_GOODS':
|
|
26281
26548
|
case 'WLN_REISSUE_GOODS':
|
|
26282
26549
|
case 'SKX_GOODS':
|
|
26283
26550
|
case 'SKX_RETURN_GOODS':
|
|
@@ -26515,7 +26782,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
26515
26782
|
}
|
|
26516
26783
|
};
|
|
26517
26784
|
}
|
|
26518
|
-
})), /*#__PURE__*/React.createElement(TheGoodsModal, {
|
|
26785
|
+
})), showErpGoodsBtn && /*#__PURE__*/React.createElement(TheGoodsModal, {
|
|
26519
26786
|
ref: refModal,
|
|
26520
26787
|
onSubmit: onSubmit,
|
|
26521
26788
|
width: width,
|
|
@@ -27584,13 +27851,43 @@ var dxdUtils = {
|
|
|
27584
27851
|
};
|
|
27585
27852
|
|
|
27586
27853
|
var singletonMap$9 = new Map();
|
|
27854
|
+
var normalizeOrder = function normalizeOrder(entry) {
|
|
27855
|
+
return _objectSpread2(_objectSpread2({}, (entry === null || entry === void 0 ? void 0 : entry.header) || entry), {}, {
|
|
27856
|
+
details: (entry === null || entry === void 0 ? void 0 : entry.details) || []
|
|
27857
|
+
});
|
|
27858
|
+
};
|
|
27859
|
+
var getOrderListSingleton$3 = function getOrderListSingleton(orderNo) {
|
|
27860
|
+
if (!singletonMap$9.has(orderNo)) {
|
|
27861
|
+
var promise = extendRequest('/qy/gdfw/ttx/erp/orderDetail', {
|
|
27862
|
+
method: 'post',
|
|
27863
|
+
data: {
|
|
27864
|
+
sourceOrderCode: orderNo
|
|
27865
|
+
}
|
|
27866
|
+
}).then(function (response) {
|
|
27867
|
+
var data = response === null || response === void 0 ? void 0 : response.data;
|
|
27868
|
+
return Array.isArray(data) ? data.map(normalizeOrder) : [];
|
|
27869
|
+
});
|
|
27870
|
+
singletonMap$9.set(orderNo, promise);
|
|
27871
|
+
promise.finally(function () {
|
|
27872
|
+
setTimeout(function () {
|
|
27873
|
+
return singletonMap$9.delete(orderNo);
|
|
27874
|
+
}, 10000);
|
|
27875
|
+
});
|
|
27876
|
+
}
|
|
27877
|
+
return singletonMap$9.get(orderNo);
|
|
27878
|
+
};
|
|
27879
|
+
var ttxUtils = {
|
|
27880
|
+
getOrderListSingleton: getOrderListSingleton$3
|
|
27881
|
+
};
|
|
27882
|
+
|
|
27883
|
+
var singletonMap$a = new Map();
|
|
27587
27884
|
var getAfterSalesOrderList = function getAfterSalesOrderList(params) {
|
|
27588
27885
|
var cacheKey = "".concat(params.orderNo, "_").concat(params.shopId);
|
|
27589
|
-
if (!singletonMap$
|
|
27886
|
+
if (!singletonMap$a.has(cacheKey)) {
|
|
27590
27887
|
var p = new Promise(function (resolve, reject) {
|
|
27591
27888
|
var doReject = function doReject(err) {
|
|
27592
27889
|
// 清空掉错误的请求记录
|
|
27593
|
-
singletonMap$
|
|
27890
|
+
singletonMap$a.delete(cacheKey);
|
|
27594
27891
|
reject(err);
|
|
27595
27892
|
};
|
|
27596
27893
|
extendRequest('/qy/gdfw/order/queryTradeAfterSaleList', {
|
|
@@ -27601,28 +27898,28 @@ var getAfterSalesOrderList = function getAfterSalesOrderList(params) {
|
|
|
27601
27898
|
resolve(res.data || []);
|
|
27602
27899
|
// 延迟10秒清除,保证订单的时效性
|
|
27603
27900
|
setTimeout(function () {
|
|
27604
|
-
singletonMap$
|
|
27901
|
+
singletonMap$a.delete(cacheKey);
|
|
27605
27902
|
}, 1000 * 10);
|
|
27606
27903
|
} else {
|
|
27607
27904
|
doReject(res);
|
|
27608
27905
|
}
|
|
27609
27906
|
}).catch(doReject);
|
|
27610
27907
|
});
|
|
27611
|
-
singletonMap$
|
|
27908
|
+
singletonMap$a.set(cacheKey, p);
|
|
27612
27909
|
}
|
|
27613
|
-
return singletonMap$
|
|
27910
|
+
return singletonMap$a.get(cacheKey);
|
|
27614
27911
|
};
|
|
27615
27912
|
var platformUtils = {
|
|
27616
27913
|
getAfterSalesOrderList: getAfterSalesOrderList
|
|
27617
27914
|
};
|
|
27618
27915
|
|
|
27619
|
-
var singletonMap$
|
|
27620
|
-
var getOrderListSingleton$
|
|
27621
|
-
if (!singletonMap$
|
|
27916
|
+
var singletonMap$b = new Map();
|
|
27917
|
+
var getOrderListSingleton$4 = function getOrderListSingleton(orderNo) {
|
|
27918
|
+
if (!singletonMap$b.has(orderNo)) {
|
|
27622
27919
|
var p = new Promise(function (resolve, reject) {
|
|
27623
27920
|
var doReject = function doReject(err) {
|
|
27624
27921
|
// 清空掉错误的请求记录
|
|
27625
|
-
singletonMap$
|
|
27922
|
+
singletonMap$b.delete(orderNo);
|
|
27626
27923
|
reject(err);
|
|
27627
27924
|
};
|
|
27628
27925
|
extendRequest('/qy/gdfw/order/kmErpOrderDetail', {
|
|
@@ -27648,19 +27945,19 @@ var getOrderListSingleton$3 = function getOrderListSingleton(orderNo) {
|
|
|
27648
27945
|
}
|
|
27649
27946
|
// 延迟10秒清除,保证订单的时效性
|
|
27650
27947
|
setTimeout(function () {
|
|
27651
|
-
singletonMap$
|
|
27948
|
+
singletonMap$b.delete(orderNo);
|
|
27652
27949
|
}, 1000 * 10);
|
|
27653
27950
|
} else {
|
|
27654
27951
|
doReject(data);
|
|
27655
27952
|
}
|
|
27656
27953
|
}).catch(doReject);
|
|
27657
27954
|
});
|
|
27658
|
-
singletonMap$
|
|
27955
|
+
singletonMap$b.set(orderNo, p);
|
|
27659
27956
|
}
|
|
27660
|
-
return singletonMap$
|
|
27957
|
+
return singletonMap$b.get(orderNo);
|
|
27661
27958
|
};
|
|
27662
27959
|
var kmUtils = {
|
|
27663
|
-
getOrderListSingleton: getOrderListSingleton$
|
|
27960
|
+
getOrderListSingleton: getOrderListSingleton$4
|
|
27664
27961
|
};
|
|
27665
27962
|
|
|
27666
27963
|
var _excluded$k = ["billNo", "billType", "billTag", "tradeTagName", "deliveryState", "vipCode", "shopCode", "cancel"],
|
|
@@ -27677,7 +27974,8 @@ var columnsMap = {
|
|
|
27677
27974
|
JKY_SYSTEM_ORDER: JKY_SYSTEM_ORDER_CONFIG.columns,
|
|
27678
27975
|
WDT_RETURN_BILL_NO: WDT_RETURN_BILL_NO_CONFIG.columns,
|
|
27679
27976
|
PLATFORM_AFTER_SALES_ORDER: PLATFORM_AFTER_SALES_ORDER_CONFIG.columns,
|
|
27680
|
-
DXD_SYSTEM_ORDER: DXD_SYSTEM_ORDER_CONFIG.columns
|
|
27977
|
+
DXD_SYSTEM_ORDER: DXD_SYSTEM_ORDER_CONFIG.columns,
|
|
27978
|
+
TTX_SYSTEM_ORDER: TTX_SYSTEM_ORDER_CONFIG.columns
|
|
27681
27979
|
};
|
|
27682
27980
|
var rowKeyMap = {
|
|
27683
27981
|
BS_SYSTEM_ORDER: 'billNo',
|
|
@@ -27691,7 +27989,8 @@ var rowKeyMap = {
|
|
|
27691
27989
|
JKY_SYSTEM_ORDER: 'tradeNo',
|
|
27692
27990
|
WDT_RETURN_BILL_NO: 'refundNo',
|
|
27693
27991
|
PLATFORM_AFTER_SALES_ORDER: 'afterSaleOrderId',
|
|
27694
|
-
DXD_SYSTEM_ORDER: 'billNo'
|
|
27992
|
+
DXD_SYSTEM_ORDER: 'billNo',
|
|
27993
|
+
TTX_SYSTEM_ORDER: 'code'
|
|
27695
27994
|
};
|
|
27696
27995
|
var RADIO_TABLE_KEYS = ['PLATFORM_AFTER_SALES_ORDER'];
|
|
27697
27996
|
var index$2 = (function (props) {
|
|
@@ -27757,6 +28056,8 @@ var index$2 = (function (props) {
|
|
|
27757
28056
|
getJkyOrderList(value.orderNo);
|
|
27758
28057
|
} else if (type === 'DXD_SYSTEM_ORDER') {
|
|
27759
28058
|
getDxdOrderList(value.orderNo);
|
|
28059
|
+
} else if (type === 'TTX_SYSTEM_ORDER') {
|
|
28060
|
+
getTtxOrderList(value.orderNo);
|
|
27760
28061
|
} else if (type === 'PLATFORM_AFTER_SALES_ORDER') {
|
|
27761
28062
|
value.shopId && getPlatformAfterSalesOrderList(value.orderNo, value.shopId);
|
|
27762
28063
|
}
|
|
@@ -27832,6 +28133,14 @@ var index$2 = (function (props) {
|
|
|
27832
28133
|
false: '否'
|
|
27833
28134
|
};
|
|
27834
28135
|
}
|
|
28136
|
+
if (type === 'TTX_SYSTEM_ORDER') {
|
|
28137
|
+
map['internalOrderType'] = _objectSpread2({}, TTX_INTERNAL_ORDER_TYPE_MAP);
|
|
28138
|
+
map['status'] = _objectSpread2({}, TTX_STATUS_MAP);
|
|
28139
|
+
map['split'] = {
|
|
28140
|
+
'1': '拆单',
|
|
28141
|
+
'0': ''
|
|
28142
|
+
};
|
|
28143
|
+
}
|
|
27835
28144
|
return map;
|
|
27836
28145
|
}, [type]);
|
|
27837
28146
|
// 过滤后的表格数据 - 根据选中字段和关键词模糊匹配(不区分大小写)
|
|
@@ -28203,6 +28512,34 @@ var index$2 = (function (props) {
|
|
|
28203
28512
|
return _ref14.apply(this, arguments);
|
|
28204
28513
|
};
|
|
28205
28514
|
}();
|
|
28515
|
+
var getTtxOrderList = /*#__PURE__*/function () {
|
|
28516
|
+
var _ref15 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee12(orderNo) {
|
|
28517
|
+
return _regeneratorRuntime().wrap(function _callee12$(_context12) {
|
|
28518
|
+
while (1) switch (_context12.prev = _context12.next) {
|
|
28519
|
+
case 0:
|
|
28520
|
+
ttxUtils.getOrderListSingleton(orderNo).then(function (data) {
|
|
28521
|
+
var orders = (data || []).map(function (order) {
|
|
28522
|
+
return _objectSpread2(_objectSpread2({}, order), {}, {
|
|
28523
|
+
code: order.code || order.orderCode || order.orderNo,
|
|
28524
|
+
billNo: order.code || order.orderCode || order.orderNo
|
|
28525
|
+
});
|
|
28526
|
+
});
|
|
28527
|
+
_onChange === null || _onChange === void 0 ? void 0 : _onChange(_objectSpread2(_objectSpread2({}, valueRef.current || {}), {}, {
|
|
28528
|
+
orders: orders,
|
|
28529
|
+
showOrderInfo: orders
|
|
28530
|
+
}));
|
|
28531
|
+
});
|
|
28532
|
+
onceRef.current = false;
|
|
28533
|
+
case 2:
|
|
28534
|
+
case "end":
|
|
28535
|
+
return _context12.stop();
|
|
28536
|
+
}
|
|
28537
|
+
}, _callee12);
|
|
28538
|
+
}));
|
|
28539
|
+
return function getTtxOrderList(_x13) {
|
|
28540
|
+
return _ref15.apply(this, arguments);
|
|
28541
|
+
};
|
|
28542
|
+
}();
|
|
28206
28543
|
var rowKey = rowKeyMap[type] || 'billNo';
|
|
28207
28544
|
var handleRadioChange = function handleRadioChange(record) {
|
|
28208
28545
|
var _value$selectIds;
|
|
@@ -28677,16 +29014,16 @@ var orderSubFormConstants = {
|
|
|
28677
29014
|
};
|
|
28678
29015
|
|
|
28679
29016
|
var getSelectWidgetMap$1 = orderSubFormConstants.getSelectWidgetMap;
|
|
28680
|
-
var singletonMap$
|
|
28681
|
-
var getOrderListSingleton$
|
|
29017
|
+
var singletonMap$c = new Map();
|
|
29018
|
+
var getOrderListSingleton$5 = function getOrderListSingleton(parmas) {
|
|
28682
29019
|
var orderNo = parmas.orderNo,
|
|
28683
29020
|
shopId = parmas.shopId;
|
|
28684
29021
|
var key = "".concat(orderNo, "-").concat(shopId);
|
|
28685
|
-
if (!singletonMap$
|
|
29022
|
+
if (!singletonMap$c.has(key)) {
|
|
28686
29023
|
var p = new Promise(function (resolve, reject) {
|
|
28687
29024
|
var doReject = function doReject(err) {
|
|
28688
29025
|
// 清空掉错误的请求记录
|
|
28689
|
-
singletonMap$
|
|
29026
|
+
singletonMap$c.delete(key);
|
|
28690
29027
|
reject(err);
|
|
28691
29028
|
};
|
|
28692
29029
|
extendRequest('/qy/gdfw/order/subOrderItemsDetail', {
|
|
@@ -28702,16 +29039,16 @@ var getOrderListSingleton$4 = function getOrderListSingleton(parmas) {
|
|
|
28702
29039
|
}
|
|
28703
29040
|
// 延迟10秒清除,保证订单的时效性
|
|
28704
29041
|
setTimeout(function () {
|
|
28705
|
-
singletonMap$
|
|
29042
|
+
singletonMap$c.delete(key);
|
|
28706
29043
|
}, 1000 * 10);
|
|
28707
29044
|
} else {
|
|
28708
29045
|
doReject(data);
|
|
28709
29046
|
}
|
|
28710
29047
|
}).catch(doReject);
|
|
28711
29048
|
});
|
|
28712
|
-
singletonMap$
|
|
29049
|
+
singletonMap$c.set(key, p);
|
|
28713
29050
|
}
|
|
28714
|
-
return singletonMap$
|
|
29051
|
+
return singletonMap$c.get(key);
|
|
28715
29052
|
};
|
|
28716
29053
|
var renderEditItem = function renderEditItem(_ref) {
|
|
28717
29054
|
var item = _ref.item,
|
|
@@ -28843,7 +29180,7 @@ var renderDetailItem = function renderDetailItem(_ref2) {
|
|
|
28843
29180
|
return Component;
|
|
28844
29181
|
};
|
|
28845
29182
|
var utils = {
|
|
28846
|
-
getOrderListSingleton: getOrderListSingleton$
|
|
29183
|
+
getOrderListSingleton: getOrderListSingleton$5,
|
|
28847
29184
|
renderEditItem: renderEditItem,
|
|
28848
29185
|
renderDetailItem: renderDetailItem
|
|
28849
29186
|
};
|
|
@@ -28851,7 +29188,7 @@ var utils = {
|
|
|
28851
29188
|
var getOrderSubformColumns$1 = orderSubFormConstants.getOrderSubformColumns;
|
|
28852
29189
|
var renderEditItem$1 = utils.renderEditItem,
|
|
28853
29190
|
renderDetailItem$1 = utils.renderDetailItem,
|
|
28854
|
-
getOrderListSingleton$
|
|
29191
|
+
getOrderListSingleton$6 = utils.getOrderListSingleton;
|
|
28855
29192
|
var OrderSubForm = function OrderSubForm(props) {
|
|
28856
29193
|
var _props$value = props.value,
|
|
28857
29194
|
value = _props$value === void 0 ? {} : _props$value,
|
|
@@ -29052,7 +29389,7 @@ var OrderSubForm = function OrderSubForm(props) {
|
|
|
29052
29389
|
var JOIN_SHOP = shopList === null || shopList === void 0 ? void 0 : shopList.find(function (item) {
|
|
29053
29390
|
return !item.notJoin && item.shopId == shopId;
|
|
29054
29391
|
});
|
|
29055
|
-
return (value === null || value === void 0 ? void 0 : value.orderNo) && shopId && JOIN_SHOP ? getOrderListSingleton$
|
|
29392
|
+
return (value === null || value === void 0 ? void 0 : value.orderNo) && shopId && JOIN_SHOP ? getOrderListSingleton$6({
|
|
29056
29393
|
orderNo: value === null || value === void 0 ? void 0 : value.orderNo,
|
|
29057
29394
|
shopId: shopId
|
|
29058
29395
|
}).then(function (data) {
|
|
@@ -29149,6 +29486,9 @@ var isErpType$1 = {
|
|
|
29149
29486
|
},
|
|
29150
29487
|
isDxd: function isDxd(type) {
|
|
29151
29488
|
return ['DXD_GOODS', 'DXD_SUPPLIERS'].includes(type);
|
|
29489
|
+
},
|
|
29490
|
+
isTtx: function isTtx(type) {
|
|
29491
|
+
return ['TTX_GOODS'].includes(type);
|
|
29152
29492
|
}
|
|
29153
29493
|
};
|
|
29154
29494
|
var processAllOrders = function processAllOrders(_ref) {
|
|
@@ -29186,6 +29526,10 @@ var processAllOrders = function processAllOrders(_ref) {
|
|
|
29186
29526
|
newList = processDxdOrders({
|
|
29187
29527
|
data: data
|
|
29188
29528
|
});
|
|
29529
|
+
} else if (isErpType$1.isTtx(type)) {
|
|
29530
|
+
newList = processTtxOrders({
|
|
29531
|
+
data: data
|
|
29532
|
+
});
|
|
29189
29533
|
} else {
|
|
29190
29534
|
newList = processDefaultOrders({
|
|
29191
29535
|
data: data
|
|
@@ -29252,8 +29596,12 @@ var processDxdOrders = function processDxdOrders(_ref7) {
|
|
|
29252
29596
|
});
|
|
29253
29597
|
return trades;
|
|
29254
29598
|
};
|
|
29255
|
-
var
|
|
29599
|
+
var processTtxOrders = function processTtxOrders(_ref9) {
|
|
29256
29600
|
var data = _ref9.data;
|
|
29601
|
+
return Array.isArray(data) ? data : [];
|
|
29602
|
+
};
|
|
29603
|
+
var processDefaultOrders = function processDefaultOrders(_ref10) {
|
|
29604
|
+
var data = _ref10.data;
|
|
29257
29605
|
return data || [];
|
|
29258
29606
|
};
|
|
29259
29607
|
|
|
@@ -29542,6 +29890,23 @@ var componentMap$2 = {
|
|
|
29542
29890
|
changeShopCode: 'dxdSuppliersChangeShopCode'
|
|
29543
29891
|
}
|
|
29544
29892
|
},
|
|
29893
|
+
TTX_GOODS: {
|
|
29894
|
+
type: 'ttx',
|
|
29895
|
+
key: 'ttxGoods',
|
|
29896
|
+
name: '通天晓',
|
|
29897
|
+
orderNo: 'code',
|
|
29898
|
+
goodDetailOrderNo: 'code',
|
|
29899
|
+
hiddenErpGoodsBtn: true,
|
|
29900
|
+
eventNameMap: {
|
|
29901
|
+
type: 'ttxType',
|
|
29902
|
+
updateGoodsHandle: updateTtxGoodsHandle,
|
|
29903
|
+
selectListReturn: 'ttxSelectListReturn',
|
|
29904
|
+
selectList: 'ttxSelectList',
|
|
29905
|
+
changeShopCode: 'ttxChangeShopCode',
|
|
29906
|
+
deleteGood: 'ttxDeleteGood'
|
|
29907
|
+
},
|
|
29908
|
+
getOrderList: ttxUtils.getOrderListSingleton
|
|
29909
|
+
},
|
|
29545
29910
|
WLN_GOODS: {
|
|
29546
29911
|
type: 'jky',
|
|
29547
29912
|
key: 'wlnGoods',
|
|
@@ -33482,10 +33847,11 @@ var SYSTEM_ORDER_COLUMNS_MAP = {
|
|
|
33482
33847
|
JY_SYSTEM_ORDER: JY_SYSTEM_ORDER_CONFIG.columns,
|
|
33483
33848
|
JKY_SYSTEM_ORDER: JKY_SYSTEM_ORDER_CONFIG.columns,
|
|
33484
33849
|
WDT_RETURN_BILL_NO: WDT_RETURN_BILL_NO_CONFIG.columns,
|
|
33485
|
-
DXD_SYSTEM_ORDER: DXD_SYSTEM_ORDER_CONFIG.columns
|
|
33850
|
+
DXD_SYSTEM_ORDER: DXD_SYSTEM_ORDER_CONFIG.columns,
|
|
33851
|
+
TTX_SYSTEM_ORDER: TTX_SYSTEM_ORDER_CONFIG.columns
|
|
33486
33852
|
};
|
|
33487
33853
|
var FIELD_COLUMNS_MAP = {
|
|
33488
33854
|
PLATFORM_AFTER_SALES_ORDER: PLATFORM_AFTER_SALES_ORDER_CONFIG.columns
|
|
33489
33855
|
};
|
|
33490
33856
|
|
|
33491
|
-
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, MAX_COLUMN_WIDTH, MIN_COLUMN_WIDTH, 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, resolveColumnWidth };
|
|
33857
|
+
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, MAX_COLUMN_WIDTH, MIN_COLUMN_WIDTH, 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, resolveColumnWidth };
|
|
@@ -19,6 +19,7 @@ interface LogisticsInterceptionValueType {
|
|
|
19
19
|
interceptLogisticsApiStatusReason: string;
|
|
20
20
|
interceptLogisticsUserKCode: string;
|
|
21
21
|
interceptLogisticsUserSecretKey: string;
|
|
22
|
+
interceptLogisticsCustomerCode: string;
|
|
22
23
|
}
|
|
23
24
|
interface LogisticsInterceptionProps {
|
|
24
25
|
value: Partial<LogisticsInterceptionValueType>;
|
|
@@ -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,19 @@ 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
|
+
} | {
|
|
172
|
+
dataIndex: string;
|
|
173
|
+
title: string;
|
|
174
|
+
width: number;
|
|
175
|
+
render: (value: any) => any;
|
|
176
|
+
renderExport: (value: any) => any;
|
|
177
|
+
})[];
|
|
165
178
|
};
|
|
166
179
|
export declare const FIELD_COLUMNS_MAP: {
|
|
167
180
|
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.
|
|
3
|
+
"version": "2.10.25",
|
|
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.25",
|
|
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": "aa3cb81f3a8cd8e70b2c6d602e12fdff2b5887f4"
|
|
70
70
|
}
|