@kmkf-fe-packages/basic-components 2.13.3 → 2.13.5
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, isPlatformAfterSalesOrderMultiple, 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';
|
|
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, isPlatformAfterSalesOrderMultiple, getSystemShowHead, getIsPlatformCodesIncludeOrderNos, BS_SYSTEM_ORDER_CONFIG, KM_SYSTEM_ORDER_CONFIG, KM_AFTER_SALES_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, intersection, isEmpty } from 'lodash';
|
|
@@ -8540,6 +8540,17 @@ var processBasicMultSelect = function processBasicMultSelect(getValue) {
|
|
|
8540
8540
|
return _defineProperty({}, nex.uniqueKey, jsonParseSecurity(v, '') || basicMultSelect);
|
|
8541
8541
|
};
|
|
8542
8542
|
};
|
|
8543
|
+
var processJyAbnormalFlag = function processJyAbnormalFlag(getValue) {
|
|
8544
|
+
return function (nex, config) {
|
|
8545
|
+
var v = getValue("".concat(nex.uniqueKey, "_jyAbnormalFlag"));
|
|
8546
|
+
var values = ((config === null || config === void 0 ? void 0 : config.options) || []).reduce(function (prv, next) {
|
|
8547
|
+
var _config$basicMultSele2;
|
|
8548
|
+
if (config === null || config === void 0 ? void 0 : (_config$basicMultSele2 = config.basicMultSelect) === null || _config$basicMultSele2 === void 0 ? void 0 : _config$basicMultSele2.includes(next.value)) prv.push(next.value);
|
|
8549
|
+
return prv;
|
|
8550
|
+
}, []);
|
|
8551
|
+
return _defineProperty({}, nex.uniqueKey, jsonParseSecurity(v, '') || values);
|
|
8552
|
+
};
|
|
8553
|
+
};
|
|
8543
8554
|
var processMultSelect = function processMultSelect(getValue) {
|
|
8544
8555
|
return function (nex, config) {
|
|
8545
8556
|
var v = getValue("".concat(nex.uniqueKey, "_multSelect"));
|
|
@@ -8577,20 +8588,20 @@ var processSubForm = function processSubForm(getValue) {
|
|
|
8577
8588
|
};
|
|
8578
8589
|
var processExpressLogisticsSelect = function processExpressLogisticsSelect(getValue) {
|
|
8579
8590
|
return function (nex, config) {
|
|
8580
|
-
var
|
|
8581
|
-
return
|
|
8591
|
+
var _ref24;
|
|
8592
|
+
return _ref24 = {}, _defineProperty(_ref24, nex.uniqueKey, {
|
|
8582
8593
|
company: getValue("".concat(nex.uniqueKey, "_expressLogisticsCompany")),
|
|
8583
8594
|
order: getValue("".concat(nex.uniqueKey, "_expressLogisticsCode"))
|
|
8584
|
-
}), _defineProperty(
|
|
8595
|
+
}), _defineProperty(_ref24, "".concat(nex.uniqueKey, "_expressLogisticsCompany"), getValue("".concat(nex.uniqueKey, "_expressLogisticsCompany"))), _defineProperty(_ref24, "".concat(nex.uniqueKey, "_expressLogisticsCode"), getValue("".concat(nex.uniqueKey, "_expressLogisticsCode"))), _ref24;
|
|
8585
8596
|
};
|
|
8586
8597
|
};
|
|
8587
8598
|
var processReturnLogisticsSelect = function processReturnLogisticsSelect(getValue) {
|
|
8588
8599
|
return function (nex, config) {
|
|
8589
|
-
var
|
|
8590
|
-
return
|
|
8600
|
+
var _ref25;
|
|
8601
|
+
return _ref25 = {}, _defineProperty(_ref25, nex.uniqueKey, {
|
|
8591
8602
|
company: getValue("".concat(nex.uniqueKey, "_returnLogisticsCompany")),
|
|
8592
8603
|
order: getValue("".concat(nex.uniqueKey, "_returnLogisticsCode"))
|
|
8593
|
-
}), _defineProperty(
|
|
8604
|
+
}), _defineProperty(_ref25, "".concat(nex.uniqueKey, "_returnLogisticsCompany"), getValue("".concat(nex.uniqueKey, "_returnLogisticsCompany"))), _defineProperty(_ref25, "".concat(nex.uniqueKey, "_returnLogisticsCode"), getValue("".concat(nex.uniqueKey, "_returnLogisticsCode"))), _ref25;
|
|
8594
8605
|
};
|
|
8595
8606
|
};
|
|
8596
8607
|
var processRemarkInput = function processRemarkInput(getValue) {
|
|
@@ -8605,25 +8616,25 @@ var processRemarkInput = function processRemarkInput(getValue) {
|
|
|
8605
8616
|
};
|
|
8606
8617
|
var processStatus = function processStatus(getValue) {
|
|
8607
8618
|
return function (nex, config) {
|
|
8608
|
-
var
|
|
8619
|
+
var _ref27;
|
|
8609
8620
|
var customerService = getValue("".concat(nex.uniqueKey, "_customerService"));
|
|
8610
|
-
return
|
|
8621
|
+
return _ref27 = {}, _defineProperty(_ref27, nex.uniqueKey, {
|
|
8611
8622
|
status: getValue("".concat(nex.uniqueKey, "_status")) || (config === null || config === void 0 ? void 0 : config.status),
|
|
8612
8623
|
customerService: jsonParseSecurity(customerService, customerService)
|
|
8613
|
-
}), _defineProperty(
|
|
8624
|
+
}), _defineProperty(_ref27, "".concat(nex.uniqueKey, "_processTime"), getValue('processTime')), _defineProperty(_ref27, "".concat(nex.uniqueKey, "_lastProcessingTime"), getValue('lastProcessingTime')), _ref27;
|
|
8614
8625
|
};
|
|
8615
8626
|
};
|
|
8616
8627
|
var processOrdinaryInvoice = function processOrdinaryInvoice(getValue) {
|
|
8617
8628
|
return function (nex, config) {
|
|
8618
|
-
var
|
|
8629
|
+
var _ref28;
|
|
8619
8630
|
var ordinaryMoney = getValue("".concat(nex.uniqueKey, "_ordinaryMoney"));
|
|
8620
8631
|
var ordinarySerial = getValue("".concat(nex.uniqueKey, "_ordinarySerial"));
|
|
8621
8632
|
var ordinaryTaitou = getValue("".concat(nex.uniqueKey, "_ordinaryTaitou"));
|
|
8622
|
-
return
|
|
8633
|
+
return _ref28 = {}, _defineProperty(_ref28, nex.uniqueKey, {
|
|
8623
8634
|
ordinaryMoney: ordinaryMoney,
|
|
8624
8635
|
ordinarySerial: ordinarySerial,
|
|
8625
8636
|
ordinaryTaitou: ordinaryTaitou
|
|
8626
|
-
}), _defineProperty(
|
|
8637
|
+
}), _defineProperty(_ref28, "".concat(nex.uniqueKey, "_ordinaryMoney"), ordinaryMoney ? Number(ordinaryMoney).toFixed(2) : null), _defineProperty(_ref28, "".concat(nex.uniqueKey, "_ordinarySerial"), ordinarySerial), _defineProperty(_ref28, "".concat(nex.uniqueKey, "_ordinaryTaitou"), ordinaryTaitou), _ref28;
|
|
8627
8638
|
};
|
|
8628
8639
|
};
|
|
8629
8640
|
var processLogisticsInterception = function processLogisticsInterception(getValue) {
|
|
@@ -8683,12 +8694,12 @@ var processItemSelectThird = function processItemSelectThird(getValue) {
|
|
|
8683
8694
|
};
|
|
8684
8695
|
var processEnterPrisePayment = function processEnterPrisePayment(getValue) {
|
|
8685
8696
|
return function (nex, config) {
|
|
8686
|
-
var
|
|
8697
|
+
var _ref34;
|
|
8687
8698
|
var subFields = ['enterprisePaymentAlipayNick', 'enterprisePaymentAlipayNo', 'enterprisePaymentBuyerNick', 'enterprisePaymentBuyerOpenUid', 'enterprisePaymentRefundFee', 'enterprisePaymentStatus', 'enterprisePaymentTid'];
|
|
8688
8699
|
var map = subFields.reduce(function (cur, nxt) {
|
|
8689
8700
|
return _objectSpread2(_objectSpread2({}, cur), {}, _defineProperty({}, nxt, getValue("".concat(nex.uniqueKey, "_").concat(nxt))));
|
|
8690
8701
|
}, {});
|
|
8691
|
-
return
|
|
8702
|
+
return _ref34 = {}, _defineProperty(_ref34, nex.uniqueKey, map), _defineProperty(_ref34, "".concat(nex.uniqueKey, "_enterprisePaymentAlipayNick"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentAlipayNick"))), _defineProperty(_ref34, "".concat(nex.uniqueKey, "_enterprisePaymentAlipayNo"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentAlipayNo"))), _defineProperty(_ref34, "".concat(nex.uniqueKey, "_enterprisePaymentBuyerNick"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentBuyerNick"))), _defineProperty(_ref34, "".concat(nex.uniqueKey, "_enterprisePaymentRefundFee"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentRefundFee"))), _defineProperty(_ref34, "".concat(nex.uniqueKey, "_enterprisePaymentStatus"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentStatus"))), _defineProperty(_ref34, "".concat(nex.uniqueKey, "_enterprisePaymentTime"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentTime"))), _defineProperty(_ref34, "".concat(nex.uniqueKey, "_enterprisePaymentTid"), getValue("".concat(nex.uniqueKey, "_enterprisePaymentTid"))), _ref34;
|
|
8692
8703
|
};
|
|
8693
8704
|
};
|
|
8694
8705
|
var processJstLogistics = function processJstLogistics(getValue) {
|
|
@@ -9193,6 +9204,14 @@ var processKmGoods = function processKmGoods(templateColumns) {
|
|
|
9193
9204
|
};
|
|
9194
9205
|
};
|
|
9195
9206
|
};
|
|
9207
|
+
var processKmAftersaleGoods = function processKmAftersaleGoods(getValue) {
|
|
9208
|
+
return function (nex, config) {
|
|
9209
|
+
return _defineProperty({}, nex.uniqueKey, {
|
|
9210
|
+
kmAftersaleGoods: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_kmAftersaleGoods")), []),
|
|
9211
|
+
shopCode: getValue("".concat(nex.uniqueKey, "_shopCode"))
|
|
9212
|
+
});
|
|
9213
|
+
};
|
|
9214
|
+
};
|
|
9196
9215
|
var processGyGoods = function processGyGoods(templateColumns) {
|
|
9197
9216
|
return function (getValue) {
|
|
9198
9217
|
return function (nex, config) {
|
|
@@ -9334,6 +9353,11 @@ var processErpSystemOrder = function processErpSystemOrder(getValue) {
|
|
|
9334
9353
|
ids: 'kmSystemSelectIds',
|
|
9335
9354
|
order: 'kmSystemShowOrder'
|
|
9336
9355
|
},
|
|
9356
|
+
KM_AFTER_SALES_ORDER: {
|
|
9357
|
+
no: 'kmAfterSalesOrderNo',
|
|
9358
|
+
ids: 'kmAfterSalesSelectIds',
|
|
9359
|
+
order: 'kmAfterSalesShowOrder'
|
|
9360
|
+
},
|
|
9337
9361
|
WLN_SYSTEM_ORDER: {
|
|
9338
9362
|
no: 'wlnSystemOrderNo',
|
|
9339
9363
|
ids: 'wlnSystemSelectIds',
|
|
@@ -9382,7 +9406,7 @@ var processErpSystemOrder = function processErpSystemOrder(getValue) {
|
|
|
9382
9406
|
};
|
|
9383
9407
|
return _defineProperty({}, nex.uniqueKey, _objectSpread2({
|
|
9384
9408
|
orderNo: getValue("".concat(nex.uniqueKey, "_").concat(systemOrderMap[nex.workOrderComponentType].no)),
|
|
9385
|
-
orders: nex.workOrderComponentType
|
|
9409
|
+
orders: ['WDT_RETURN_BILL_NO', 'KM_AFTER_SALES_ORDER'].includes(nex.workOrderComponentType) ? jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_").concat(systemOrderMap[nex.workOrderComponentType].order)), []) : [],
|
|
9386
9410
|
selectIds: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_").concat(systemOrderMap[nex.workOrderComponentType].ids)), []),
|
|
9387
9411
|
showOrderInfo: jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_").concat(systemOrderMap[nex.workOrderComponentType].order)), [])
|
|
9388
9412
|
}, systemOrderMap[nex.workOrderComponentType].shopId ? {
|
|
@@ -9647,14 +9671,14 @@ var processJstReturnGoods = function processJstReturnGoods(templateColumns) {
|
|
|
9647
9671
|
};
|
|
9648
9672
|
var processLabel = function processLabel(getValue) {
|
|
9649
9673
|
return function (nex, config) {
|
|
9650
|
-
var
|
|
9651
|
-
return
|
|
9674
|
+
var _ref82;
|
|
9675
|
+
return _ref82 = {}, _defineProperty(_ref82, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_label")), [])), _defineProperty(_ref82, "".concat(nex.uniqueKey, "_label"), jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_label")), [])), _ref82;
|
|
9652
9676
|
};
|
|
9653
9677
|
};
|
|
9654
9678
|
var processMemberLevel = function processMemberLevel(getValue) {
|
|
9655
9679
|
return function (nex, config) {
|
|
9656
|
-
var
|
|
9657
|
-
return
|
|
9680
|
+
var _ref83;
|
|
9681
|
+
return _ref83 = {}, _defineProperty(_ref83, nex.uniqueKey, jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_memberLevel")), [])), _defineProperty(_ref83, "".concat(nex.uniqueKey, "_memberLevel"), jsonParseSecurity(getValue("".concat(nex.uniqueKey, "_memberLevel")), [])), _ref83;
|
|
9658
9682
|
};
|
|
9659
9683
|
};
|
|
9660
9684
|
var processAfterSalesOrderId = function processAfterSalesOrderId(getValue) {
|
|
@@ -9716,6 +9740,7 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
|
|
|
9716
9740
|
PICTURE: processPicture,
|
|
9717
9741
|
PICTURE_PRO: processPicturePro,
|
|
9718
9742
|
BASIC_MULT_SELECT: processBasicMultSelect,
|
|
9743
|
+
JY_ABNORMAL_FLAG: processJyAbnormalFlag,
|
|
9719
9744
|
MULT_SELECT: processMultSelect,
|
|
9720
9745
|
BASIC_ADDRESS: processBasicAddress,
|
|
9721
9746
|
RECEIVER_ADDRESS_INPUT: processReceiverAddressInput,
|
|
@@ -9796,6 +9821,7 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
|
|
|
9796
9821
|
BS_E3_GOODS: processBsE3Goods(templateColumns),
|
|
9797
9822
|
GY_GOODS: processGyGoods(templateColumns),
|
|
9798
9823
|
KM_GOODS: processKmGoods(templateColumns),
|
|
9824
|
+
KM_AFTERSALE_GOODS: processKmAftersaleGoods,
|
|
9799
9825
|
KM_REISSUE_GOODS: processKmReissueGoods(templateColumns),
|
|
9800
9826
|
KM_RETURN_GOODS: processKmReturnGoods(templateColumns),
|
|
9801
9827
|
JST_GOODS: processJstGoods(templateColumns),
|
|
@@ -9810,6 +9836,7 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
|
|
|
9810
9836
|
PLATFORM_AFTER_SALES_ORDER: processErpSystemOrder,
|
|
9811
9837
|
BS_SYSTEM_ORDER: processErpSystemOrder,
|
|
9812
9838
|
KM_SYSTEM_ORDER: processErpSystemOrder,
|
|
9839
|
+
KM_AFTER_SALES_ORDER: processErpSystemOrder,
|
|
9813
9840
|
WLN_SYSTEM_ORDER: processErpSystemOrder,
|
|
9814
9841
|
WDT_SYSTEM_ORDER: processErpSystemOrder,
|
|
9815
9842
|
JKY_SYSTEM_ORDER: processErpSystemOrder,
|
|
@@ -24257,6 +24284,192 @@ var getColumns$6 = function getColumns() {
|
|
|
24257
24284
|
align: 'center',
|
|
24258
24285
|
ellipsis: true
|
|
24259
24286
|
});
|
|
24287
|
+
}),
|
|
24288
|
+
KM_AFTERSALE_GOODS: [{
|
|
24289
|
+
dataIndex: 'title',
|
|
24290
|
+
title: '商品名称',
|
|
24291
|
+
width: 180
|
|
24292
|
+
}, {
|
|
24293
|
+
dataIndex: 'skuPropertiesName',
|
|
24294
|
+
title: '规格名称',
|
|
24295
|
+
width: 180
|
|
24296
|
+
}, {
|
|
24297
|
+
dataIndex: 'sysPicPath',
|
|
24298
|
+
title: '商品图片',
|
|
24299
|
+
width: 100,
|
|
24300
|
+
headerComponentType: 'pic',
|
|
24301
|
+
render: function render(val) {
|
|
24302
|
+
return val ? /*#__PURE__*/React.createElement(Image, {
|
|
24303
|
+
width: 30,
|
|
24304
|
+
src: val
|
|
24305
|
+
}) : null;
|
|
24306
|
+
}
|
|
24307
|
+
}, {
|
|
24308
|
+
dataIndex: 'mainOuterId',
|
|
24309
|
+
title: '主商家编码',
|
|
24310
|
+
width: 160
|
|
24311
|
+
}, {
|
|
24312
|
+
dataIndex: 'outerId',
|
|
24313
|
+
title: '商家编码',
|
|
24314
|
+
width: 160
|
|
24315
|
+
}, {
|
|
24316
|
+
dataIndex: 'numIid',
|
|
24317
|
+
title: '平台商品ID',
|
|
24318
|
+
width: 160
|
|
24319
|
+
}, {
|
|
24320
|
+
dataIndex: 'skuId',
|
|
24321
|
+
title: '平台规格ID',
|
|
24322
|
+
width: 160
|
|
24323
|
+
}, {
|
|
24324
|
+
dataIndex: 'itemSysId',
|
|
24325
|
+
title: '系统商品ID',
|
|
24326
|
+
width: 160
|
|
24327
|
+
}, {
|
|
24328
|
+
dataIndex: 'skuSysId',
|
|
24329
|
+
title: '系统规格ID',
|
|
24330
|
+
width: 160
|
|
24331
|
+
}, {
|
|
24332
|
+
dataIndex: 'type',
|
|
24333
|
+
title: '商品售后类型',
|
|
24334
|
+
width: 150,
|
|
24335
|
+
render: function render(val) {
|
|
24336
|
+
return {
|
|
24337
|
+
1: '退货商品',
|
|
24338
|
+
2: '补发商品'
|
|
24339
|
+
}[val] || val;
|
|
24340
|
+
},
|
|
24341
|
+
renderExport: function renderExport(val) {
|
|
24342
|
+
return {
|
|
24343
|
+
1: '退货商品',
|
|
24344
|
+
2: '补发商品'
|
|
24345
|
+
}[val] || val;
|
|
24346
|
+
},
|
|
24347
|
+
headerMapping: {
|
|
24348
|
+
transformValue: function transformValue(val) {
|
|
24349
|
+
return {
|
|
24350
|
+
1: '退货商品',
|
|
24351
|
+
2: '补发商品'
|
|
24352
|
+
}[val] || val;
|
|
24353
|
+
},
|
|
24354
|
+
renderExport: function renderExport(val) {
|
|
24355
|
+
return {
|
|
24356
|
+
1: '退货商品',
|
|
24357
|
+
2: '补发商品'
|
|
24358
|
+
}[val] || val;
|
|
24359
|
+
}
|
|
24360
|
+
}
|
|
24361
|
+
}, {
|
|
24362
|
+
dataIndex: 'price',
|
|
24363
|
+
title: '销售价',
|
|
24364
|
+
width: 130,
|
|
24365
|
+
render: function render(val) {
|
|
24366
|
+
return val || val === 0 ? Number(val).toFixed(2) : '';
|
|
24367
|
+
},
|
|
24368
|
+
renderExport: function renderExport(val) {
|
|
24369
|
+
return val || val === 0 ? Number(val).toFixed(2) : '';
|
|
24370
|
+
},
|
|
24371
|
+
headerMapping: {
|
|
24372
|
+
transformValue: function transformValue(val) {
|
|
24373
|
+
return val || val === 0 ? Number(val).toFixed(2) : '';
|
|
24374
|
+
},
|
|
24375
|
+
renderExport: function renderExport(val) {
|
|
24376
|
+
return val || val === 0 ? Number(val).toFixed(2) : '';
|
|
24377
|
+
}
|
|
24378
|
+
}
|
|
24379
|
+
}, {
|
|
24380
|
+
dataIndex: 'payment',
|
|
24381
|
+
title: '实付金额',
|
|
24382
|
+
width: 130,
|
|
24383
|
+
render: function render(val) {
|
|
24384
|
+
return val || val === 0 ? Number(val).toFixed(2) : '';
|
|
24385
|
+
},
|
|
24386
|
+
renderExport: function renderExport(val) {
|
|
24387
|
+
return val || val === 0 ? Number(val).toFixed(2) : '';
|
|
24388
|
+
},
|
|
24389
|
+
headerMapping: {
|
|
24390
|
+
transformValue: function transformValue(val) {
|
|
24391
|
+
return val || val === 0 ? Number(val).toFixed(2) : '';
|
|
24392
|
+
},
|
|
24393
|
+
renderExport: function renderExport(val) {
|
|
24394
|
+
return val || val === 0 ? Number(val).toFixed(2) : '';
|
|
24395
|
+
}
|
|
24396
|
+
}
|
|
24397
|
+
}, {
|
|
24398
|
+
dataIndex: 'rawRefundMoney',
|
|
24399
|
+
title: '平台实退金额',
|
|
24400
|
+
width: 150,
|
|
24401
|
+
render: function render(val) {
|
|
24402
|
+
return val || val === 0 ? Number(val).toFixed(2) : '';
|
|
24403
|
+
},
|
|
24404
|
+
renderExport: function renderExport(val) {
|
|
24405
|
+
return val || val === 0 ? Number(val).toFixed(2) : '';
|
|
24406
|
+
},
|
|
24407
|
+
headerMapping: {
|
|
24408
|
+
transformValue: function transformValue(val) {
|
|
24409
|
+
return val || val === 0 ? Number(val).toFixed(2) : '';
|
|
24410
|
+
},
|
|
24411
|
+
renderExport: function renderExport(val) {
|
|
24412
|
+
return val || val === 0 ? Number(val).toFixed(2) : '';
|
|
24413
|
+
}
|
|
24414
|
+
}
|
|
24415
|
+
}, {
|
|
24416
|
+
dataIndex: 'refundMoney',
|
|
24417
|
+
title: '系统实退金额',
|
|
24418
|
+
width: 150,
|
|
24419
|
+
render: function render(val) {
|
|
24420
|
+
return val || val === 0 ? Number(val).toFixed(2) : '';
|
|
24421
|
+
},
|
|
24422
|
+
renderExport: function renderExport(val) {
|
|
24423
|
+
return val || val === 0 ? Number(val).toFixed(2) : '';
|
|
24424
|
+
},
|
|
24425
|
+
headerMapping: {
|
|
24426
|
+
transformValue: function transformValue(val) {
|
|
24427
|
+
return val || val === 0 ? Number(val).toFixed(2) : '';
|
|
24428
|
+
},
|
|
24429
|
+
renderExport: function renderExport(val) {
|
|
24430
|
+
return val || val === 0 ? Number(val).toFixed(2) : '';
|
|
24431
|
+
}
|
|
24432
|
+
}
|
|
24433
|
+
}, {
|
|
24434
|
+
dataIndex: 'refundableMoney',
|
|
24435
|
+
title: '系统应退金额',
|
|
24436
|
+
width: 150,
|
|
24437
|
+
render: function render(val) {
|
|
24438
|
+
return val || val === 0 ? Number(val).toFixed(2) : '';
|
|
24439
|
+
},
|
|
24440
|
+
renderExport: function renderExport(val) {
|
|
24441
|
+
return val || val === 0 ? Number(val).toFixed(2) : '';
|
|
24442
|
+
},
|
|
24443
|
+
headerMapping: {
|
|
24444
|
+
transformValue: function transformValue(val) {
|
|
24445
|
+
return val || val === 0 ? Number(val).toFixed(2) : '';
|
|
24446
|
+
},
|
|
24447
|
+
renderExport: function renderExport(val) {
|
|
24448
|
+
return val || val === 0 ? Number(val).toFixed(2) : '';
|
|
24449
|
+
}
|
|
24450
|
+
}
|
|
24451
|
+
}, {
|
|
24452
|
+
dataIndex: 'receivableCount',
|
|
24453
|
+
title: '申请数量',
|
|
24454
|
+
width: 120
|
|
24455
|
+
}, {
|
|
24456
|
+
dataIndex: 'itemRealQty',
|
|
24457
|
+
title: '实退数量',
|
|
24458
|
+
width: 120
|
|
24459
|
+
}, {
|
|
24460
|
+
dataIndex: 'goodNum',
|
|
24461
|
+
title: '良品数',
|
|
24462
|
+
width: 100
|
|
24463
|
+
}, {
|
|
24464
|
+
dataIndex: 'defectiveNum',
|
|
24465
|
+
title: '次品数',
|
|
24466
|
+
width: 100
|
|
24467
|
+
}].map(function (item) {
|
|
24468
|
+
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
24469
|
+
align: 'center',
|
|
24470
|
+
ellipsis: true,
|
|
24471
|
+
render: item.render || renderTextEllipsis
|
|
24472
|
+
});
|
|
24260
24473
|
})
|
|
24261
24474
|
};
|
|
24262
24475
|
};
|
|
@@ -26640,7 +26853,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
26640
26853
|
hasSelectedSystemOrder = _props$hasSelectedSys === void 0 ? false : _props$hasSelectedSys,
|
|
26641
26854
|
isReloadSelectTable = props.isReloadSelectTable,
|
|
26642
26855
|
validSystemOrderFn = props.validSystemOrderFn;
|
|
26643
|
-
var canDelete = ['JST_AFTERSALE_GOODS'].includes(type);
|
|
26856
|
+
var canDelete = ['JST_AFTERSALE_GOODS', 'KM_AFTERSALE_GOODS'].includes(type);
|
|
26644
26857
|
var uniqueKey = (tradeGoods === null || tradeGoods === void 0 ? void 0 : tradeGoods.uniqueKey) || 'uuid';
|
|
26645
26858
|
// 监听聚水潭退货商品
|
|
26646
26859
|
// const jstReturnGoods = Form?.useWatch('3979edfd6d', form);
|
|
@@ -26732,6 +26945,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
26732
26945
|
case 'JST_EXCHANGE_GOODS':
|
|
26733
26946
|
case 'JST_RETURN_GOODS':
|
|
26734
26947
|
case 'JST_AFTERSALE_GOODS':
|
|
26948
|
+
case 'KM_AFTERSALE_GOODS':
|
|
26735
26949
|
case 'GY_REISSUE_GOODS':
|
|
26736
26950
|
case 'GY_RETURN_GOODS':
|
|
26737
26951
|
case 'KM_GOODS':
|
|
@@ -28165,6 +28379,7 @@ var _excluded$l = ["billNo", "billType", "billTag", "tradeTagName", "deliverySta
|
|
|
28165
28379
|
var columnsMap = {
|
|
28166
28380
|
BS_SYSTEM_ORDER: BS_SYSTEM_ORDER_CONFIG.columns,
|
|
28167
28381
|
KM_SYSTEM_ORDER: KM_SYSTEM_ORDER_CONFIG.columns,
|
|
28382
|
+
KM_AFTER_SALES_ORDER: KM_AFTER_SALES_ORDER_CONFIG.columns,
|
|
28168
28383
|
WLN_SYSTEM_ORDER: WLN_SYSTEM_ORDER_CONFIG.columns,
|
|
28169
28384
|
WDT_SYSTEM_ORDER: WDT_SYSTEM_ORDER_CONFIG.columns,
|
|
28170
28385
|
BS_E3_SYSTEM_ORDER: BS_E3_SYSTEM_ORDER_CONFIG.columns,
|
|
@@ -28180,6 +28395,7 @@ var columnsMap = {
|
|
|
28180
28395
|
var rowKeyMap = {
|
|
28181
28396
|
BS_SYSTEM_ORDER: 'billNo',
|
|
28182
28397
|
KM_SYSTEM_ORDER: 'billNo',
|
|
28398
|
+
KM_AFTER_SALES_ORDER: 'id',
|
|
28183
28399
|
WLN_SYSTEM_ORDER: 'billNo',
|
|
28184
28400
|
WDT_SYSTEM_ORDER: 'billNo',
|
|
28185
28401
|
BS_E3_SYSTEM_ORDER: 'orderSn',
|
|
@@ -28192,8 +28408,35 @@ var rowKeyMap = {
|
|
|
28192
28408
|
DXD_SYSTEM_ORDER: 'billNo',
|
|
28193
28409
|
TTX_SYSTEM_ORDER: 'code'
|
|
28194
28410
|
};
|
|
28195
|
-
var RADIO_TABLE_KEYS = ['PLATFORM_AFTER_SALES_ORDER'];
|
|
28411
|
+
var RADIO_TABLE_KEYS = ['PLATFORM_AFTER_SALES_ORDER', 'KM_AFTER_SALES_ORDER'];
|
|
28412
|
+
// 订单号/物流号使用精确匹配,并支持一次输入多个值。
|
|
28413
|
+
var EXACT_FILTER_FIELDS = {
|
|
28414
|
+
KM_SYSTEM_ORDER: ['billNo'],
|
|
28415
|
+
JY_SYSTEM_ORDER: ['tradeNo'],
|
|
28416
|
+
GY_SYSTEM_ORDER: ['billNo'],
|
|
28417
|
+
JST_SYSTEM_ORDER: ['oId'],
|
|
28418
|
+
BS_SYSTEM_ORDER: ['billNo'],
|
|
28419
|
+
BS_E3_SYSTEM_ORDER: ['orderSn'],
|
|
28420
|
+
WLN_SYSTEM_ORDER: ['billNo', 'expressCode'],
|
|
28421
|
+
WDT_SYSTEM_ORDER: ['billNo', 'logisticsNo'],
|
|
28422
|
+
JKY_SYSTEM_ORDER: ['tradeNo', 'logisticNo'],
|
|
28423
|
+
TTX_SYSTEM_ORDER: ['code', 'primaryWaybillCode', 'secondaryWaybillCode'],
|
|
28424
|
+
DXD_SYSTEM_ORDER: ['orderNo', 'logisticsNo']
|
|
28425
|
+
};
|
|
28426
|
+
var FILTER_VALUE_SEPARATOR = /[\s,,、]+/;
|
|
28427
|
+
var splitFilterValues = function splitFilterValues(value) {
|
|
28428
|
+
return String(value !== null && value !== void 0 ? value : '').split(FILTER_VALUE_SEPARATOR).map(function (item) {
|
|
28429
|
+
return item.trim();
|
|
28430
|
+
}).filter(Boolean);
|
|
28431
|
+
};
|
|
28432
|
+
var getFieldValues = function getFieldValues(value) {
|
|
28433
|
+
if (Array.isArray(value)) {
|
|
28434
|
+
return value.flatMap(getFieldValues);
|
|
28435
|
+
}
|
|
28436
|
+
return splitFilterValues(value);
|
|
28437
|
+
};
|
|
28196
28438
|
var index$2 = (function (props) {
|
|
28439
|
+
var _EXACT_FILTER_FIELDS$2;
|
|
28197
28440
|
var value = props.value,
|
|
28198
28441
|
_onChange = props.onChange,
|
|
28199
28442
|
disabled = props.disabled,
|
|
@@ -28202,14 +28445,14 @@ var index$2 = (function (props) {
|
|
|
28202
28445
|
showHeader = _props$showHeader === void 0 ? [] : _props$showHeader;
|
|
28203
28446
|
var onceRef = useRef(false);
|
|
28204
28447
|
var valueRef = useRef(null);
|
|
28205
|
-
var isMultiple = type
|
|
28448
|
+
var isMultiple = RADIO_TABLE_KEYS.includes(type) && isPlatformAfterSalesOrderMultiple(props);
|
|
28206
28449
|
var isRadio = RADIO_TABLE_KEYS.includes(type) && !isMultiple;
|
|
28207
28450
|
// 字段筛选状态 - 用户选择要筛选的字段(单选)
|
|
28208
28451
|
var _useState = useState(''),
|
|
28209
28452
|
_useState2 = _slicedToArray(_useState, 2),
|
|
28210
28453
|
filterField = _useState2[0],
|
|
28211
28454
|
setFilterField = _useState2[1];
|
|
28212
|
-
// 筛选关键词 -
|
|
28455
|
+
// 筛选关键词 - 输入框内容,用于匹配选中字段列的值
|
|
28213
28456
|
var _useState3 = useState(''),
|
|
28214
28457
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
28215
28458
|
filterKeyword = _useState4[0],
|
|
@@ -28344,16 +28587,27 @@ var index$2 = (function (props) {
|
|
|
28344
28587
|
}
|
|
28345
28588
|
return map;
|
|
28346
28589
|
}, [type]);
|
|
28347
|
-
//
|
|
28590
|
+
// 过滤后的表格数据。订单号/物流号字段使用精确匹配,其他字段沿用模糊匹配。
|
|
28348
28591
|
var filteredData = useMemo(function () {
|
|
28349
|
-
|
|
28592
|
+
var _EXACT_FILTER_FIELDS$;
|
|
28593
|
+
var filterValues = splitFilterValues(filterKeyword);
|
|
28594
|
+
if (!filterField || !filterValues.length) {
|
|
28350
28595
|
return (value === null || value === void 0 ? void 0 : value.orders) || [];
|
|
28351
28596
|
}
|
|
28352
|
-
var
|
|
28597
|
+
var keywordSet = new Set(filterValues.map(function (item) {
|
|
28598
|
+
return item.toLowerCase();
|
|
28599
|
+
}));
|
|
28600
|
+
var isExactFilter = (_EXACT_FILTER_FIELDS$ = EXACT_FILTER_FIELDS[type]) === null || _EXACT_FILTER_FIELDS$ === void 0 ? void 0 : _EXACT_FILTER_FIELDS$.includes(filterField);
|
|
28353
28601
|
var renderMap = fieldRenderMap[filterField];
|
|
28354
28602
|
return ((value === null || value === void 0 ? void 0 : value.orders) || []).filter(function (item) {
|
|
28355
28603
|
var fieldValue = item[filterField];
|
|
28356
28604
|
if (fieldValue == null) return false;
|
|
28605
|
+
if (isExactFilter) {
|
|
28606
|
+
return getFieldValues(fieldValue).some(function (itemValue) {
|
|
28607
|
+
return keywordSet.has(itemValue.toLowerCase());
|
|
28608
|
+
});
|
|
28609
|
+
}
|
|
28610
|
+
var keywordLower = filterKeyword.toLowerCase();
|
|
28357
28611
|
var fieldValueStr = String(fieldValue);
|
|
28358
28612
|
var fieldValueLower = fieldValueStr.toLowerCase();
|
|
28359
28613
|
// 直接匹配原始值
|
|
@@ -28382,7 +28636,8 @@ var index$2 = (function (props) {
|
|
|
28382
28636
|
}
|
|
28383
28637
|
return false;
|
|
28384
28638
|
});
|
|
28385
|
-
}, [value === null || value === void 0 ? void 0 : value.orders, filterField, filterKeyword, fieldRenderMap]);
|
|
28639
|
+
}, [value === null || value === void 0 ? void 0 : value.orders, filterField, filterKeyword, fieldRenderMap, type]);
|
|
28640
|
+
var supportsBatchFilter = (_EXACT_FILTER_FIELDS$2 = EXACT_FILTER_FIELDS[type]) === null || _EXACT_FILTER_FIELDS$2 === void 0 ? void 0 : _EXACT_FILTER_FIELDS$2.includes(filterField);
|
|
28386
28641
|
var getOrderList = /*#__PURE__*/function () {
|
|
28387
28642
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(orderNo) {
|
|
28388
28643
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -28816,7 +29071,7 @@ var index$2 = (function (props) {
|
|
|
28816
29071
|
value: col.dataIndex
|
|
28817
29072
|
}, col.title);
|
|
28818
29073
|
})), /*#__PURE__*/React.createElement(Input, {
|
|
28819
|
-
placeholder:
|
|
29074
|
+
placeholder: supportsBatchFilter ? '输入关键词,支持批量查询' : '输入关键词模糊匹配',
|
|
28820
29075
|
style: {
|
|
28821
29076
|
width: 200
|
|
28822
29077
|
},
|
|
@@ -30170,6 +30425,19 @@ var componentMap$2 = {
|
|
|
30170
30425
|
deleteGood: 'jstAftersaleDeleteGood'
|
|
30171
30426
|
},
|
|
30172
30427
|
getOrderList: jstUtils.getJstOrderListSingleton
|
|
30428
|
+
},
|
|
30429
|
+
KM_AFTERSALE_GOODS: {
|
|
30430
|
+
type: 'kmAftersale',
|
|
30431
|
+
key: 'kmAftersaleGoods',
|
|
30432
|
+
name: '快麦ERP售后',
|
|
30433
|
+
orderNo: 'id',
|
|
30434
|
+
goodDetailOrderNo: 'id',
|
|
30435
|
+
showChangeBtn: false,
|
|
30436
|
+
hiddenErpGoodsBtn: true,
|
|
30437
|
+
eventNameMap: {
|
|
30438
|
+
type: 'kmAftersaleType',
|
|
30439
|
+
deleteGood: 'kmAftersaleDeleteGood'
|
|
30440
|
+
}
|
|
30173
30441
|
}
|
|
30174
30442
|
};
|
|
30175
30443
|
var CommonGoods = function CommonGoods(props) {
|
|
@@ -34041,6 +34309,7 @@ var SkxGoods = function SkxGoods(props) {
|
|
|
34041
34309
|
var SYSTEM_ORDER_COLUMNS_MAP = {
|
|
34042
34310
|
BS_SYSTEM_ORDER: BS_SYSTEM_ORDER_CONFIG.columns,
|
|
34043
34311
|
KM_SYSTEM_ORDER: KM_SYSTEM_ORDER_CONFIG.columns,
|
|
34312
|
+
KM_AFTER_SALES_ORDER: KM_AFTER_SALES_ORDER_CONFIG.columns,
|
|
34044
34313
|
WLN_SYSTEM_ORDER: WLN_SYSTEM_ORDER_CONFIG.columns,
|
|
34045
34314
|
WDT_SYSTEM_ORDER: WDT_SYSTEM_ORDER_CONFIG.columns,
|
|
34046
34315
|
BS_E3_SYSTEM_ORDER: BS_E3_SYSTEM_ORDER_CONFIG.columns,
|
|
@@ -19,5 +19,6 @@ interface BsSystemOrderProps {
|
|
|
19
19
|
selectMode?: string;
|
|
20
20
|
}
|
|
21
21
|
export declare const rowKeyMap: Record<string, string>;
|
|
22
|
+
export declare const splitFilterValues: (value: unknown) => string[];
|
|
22
23
|
declare const _default: (props: BsSystemOrderProps) => React.JSX.Element;
|
|
23
24
|
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/basic-components",
|
|
3
|
-
"version": "2.13.
|
|
3
|
+
"version": "2.13.5",
|
|
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.13.
|
|
23
|
+
"@kmkf-fe-packages/kmkf-utils": "2.13.5",
|
|
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": "0bde1885ca6ac457e5ce8d7e338282e2896e107a"
|
|
70
70
|
}
|