@kmkf-fe-packages/basic-components 2.10.9-beta.8 → 2.10.9-beta.9
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
|
@@ -8726,6 +8726,9 @@ var processErpLogistics = function processErpLogistics(getValue) {
|
|
|
8726
8726
|
},
|
|
8727
8727
|
SKX_LOGISTICS: {
|
|
8728
8728
|
listKey: 'skxLogisticsList'
|
|
8729
|
+
},
|
|
8730
|
+
DXD_LOGISTICS: {
|
|
8731
|
+
listKey: 'dxdLogisticsList'
|
|
8729
8732
|
}
|
|
8730
8733
|
};
|
|
8731
8734
|
var initValue = [{
|
|
@@ -9614,6 +9617,7 @@ var transformWorkOrderData = function transformWorkOrderData(templateColumns) {
|
|
|
9614
9617
|
GY_LOGISTICS: processErpLogistics,
|
|
9615
9618
|
BS_E3_LOGISTICS: processErpLogistics,
|
|
9616
9619
|
KM_LOGISTICS: processErpLogistics,
|
|
9620
|
+
DXD_LOGISTICS: processErpLogistics,
|
|
9617
9621
|
BS_SEND_GOOD: processErpSendGood,
|
|
9618
9622
|
WLN_SEND_GOOD: processErpSendGood,
|
|
9619
9623
|
WDT_SEND_GOOD: processErpSendGood,
|
|
@@ -25400,7 +25404,6 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
|
25400
25404
|
_ref$isReloadSelectTa = _ref.isReloadSelectTable,
|
|
25401
25405
|
isReloadSelectTable = _ref$isReloadSelectTa === void 0 ? false : _ref$isReloadSelectTa,
|
|
25402
25406
|
validSystemOrderFn = _ref.validSystemOrderFn;
|
|
25403
|
-
console.log('systemOrders---', systemOrders);
|
|
25404
25407
|
var _useState = useState(),
|
|
25405
25408
|
_useState2 = _slicedToArray(_useState, 2),
|
|
25406
25409
|
selectSystemNo = _useState2[0],
|
|
@@ -25504,9 +25507,6 @@ var SelectTradeGoods = function SelectTradeGoods(_ref) {
|
|
|
25504
25507
|
return setTradeGoodsVisible(false);
|
|
25505
25508
|
};
|
|
25506
25509
|
var filterDataSource = useMemo(function () {
|
|
25507
|
-
console.log('filterDataSource--', dataSource, selectSystemNo, dataSource === null || dataSource === void 0 ? void 0 : dataSource.filter(function (item) {
|
|
25508
|
-
return selectSystemNo === null || selectSystemNo === void 0 ? void 0 : selectSystemNo.includes(item.systemOrderNo);
|
|
25509
|
-
}));
|
|
25510
25510
|
return (selectSystemNo === null || selectSystemNo === void 0 ? void 0 : selectSystemNo.length) ? dataSource === null || dataSource === void 0 ? void 0 : dataSource.filter(function (item) {
|
|
25511
25511
|
return selectSystemNo === null || selectSystemNo === void 0 ? void 0 : selectSystemNo.includes(item.systemOrderNo);
|
|
25512
25512
|
}) : dataSource;
|
|
@@ -25675,6 +25675,8 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
25675
25675
|
otherOperations = _props$otherOperation === void 0 ? null : _props$otherOperation,
|
|
25676
25676
|
_props$canUpdateNumbe = props.canUpdateNumber,
|
|
25677
25677
|
canUpdateNumber = _props$canUpdateNumbe === void 0 ? false : _props$canUpdateNumbe,
|
|
25678
|
+
_props$notAllowedOper = props.notAllowedOperation,
|
|
25679
|
+
notAllowedOperation = _props$notAllowedOper === void 0 ? false : _props$notAllowedOper,
|
|
25678
25680
|
shopCode = props.shopCode,
|
|
25679
25681
|
_props$companyKey = props.companyKey,
|
|
25680
25682
|
companyKey = _props$companyKey === void 0 ? '' : _props$companyKey,
|
|
@@ -25883,14 +25885,14 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
25883
25885
|
render: function render(val, record, index) {
|
|
25884
25886
|
return /*#__PURE__*/React.createElement(HoverTableRowDeleteIcon, {
|
|
25885
25887
|
index: index,
|
|
25886
|
-
hoveredRowIndex: !disabled && (record.canDelete || canDelete) ? hoveredRowIndex : null,
|
|
25888
|
+
hoveredRowIndex: !disabled && !notAllowedOperation && (record.canDelete || canDelete) ? hoveredRowIndex : null,
|
|
25887
25889
|
handleClick: function handleClick() {
|
|
25888
25890
|
return handleDelete(record, index);
|
|
25889
25891
|
}
|
|
25890
25892
|
});
|
|
25891
25893
|
}
|
|
25892
25894
|
}].concat(_toConsumableArray(baseInfoColumns));
|
|
25893
|
-
if (!disabled) {
|
|
25895
|
+
if (!disabled && !notAllowedOperation) {
|
|
25894
25896
|
columnList.push({
|
|
25895
25897
|
dataIndex: '',
|
|
25896
25898
|
title: "\u64CD\u4F5C",
|
|
@@ -25932,22 +25934,6 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
25932
25934
|
}
|
|
25933
25935
|
}].concat(_toConsumableArray(list));
|
|
25934
25936
|
}, [showHeader, value, disabled, hoveredRowIndex]);
|
|
25935
|
-
var orderColumns = useMemo(function () {
|
|
25936
|
-
var columns = COLUMNS_MAP('', {
|
|
25937
|
-
operate: false,
|
|
25938
|
-
disabled: true
|
|
25939
|
-
})(type);
|
|
25940
|
-
return [{
|
|
25941
|
-
dataIndex: '',
|
|
25942
|
-
title: '序号',
|
|
25943
|
-
align: 'center',
|
|
25944
|
-
ellipsis: true,
|
|
25945
|
-
width: 50,
|
|
25946
|
-
render: function render(val, record, index) {
|
|
25947
|
-
return /*#__PURE__*/React.createElement("span", null, index + 1);
|
|
25948
|
-
}
|
|
25949
|
-
}].concat(_toConsumableArray(columns));
|
|
25950
|
-
}, []);
|
|
25951
25937
|
var onSubmit = function onSubmit(list) {
|
|
25952
25938
|
var newList = processGoods$1({
|
|
25953
25939
|
list: list,
|
|
@@ -25987,7 +25973,7 @@ var GoodItem$1 = function GoodItem(props) {
|
|
|
25987
25973
|
var validSystemOrder = useMemo(function () {
|
|
25988
25974
|
return ['GY_REISSUE_GOODS', 'WDT_REISSUE_GOODS', 'BS_E3_REISSUE_GOODS', 'JST_REISSUE_GOODS', 'KM_REISSUE_GOODS'].includes(type) && !hasSelectedSystemOrder;
|
|
25989
25975
|
}, [type, hasSelectedSystemOrder]);
|
|
25990
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, !disabled && (showChangeBtn ? /*#__PURE__*/React.createElement("div", {
|
|
25976
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, !disabled && !notAllowedOperation && (showChangeBtn ? /*#__PURE__*/React.createElement("div", {
|
|
25991
25977
|
style: {
|
|
25992
25978
|
float: 'right'
|
|
25993
25979
|
}
|
|
@@ -27698,19 +27684,10 @@ var index$2 = (function (props) {
|
|
|
27698
27684
|
case 0:
|
|
27699
27685
|
dxdUtils.getOrderListSingleton(orderNo).then(function (trade) {
|
|
27700
27686
|
var _trade$doOrders;
|
|
27701
|
-
var
|
|
27702
|
-
|
|
27703
|
-
|
|
27704
|
-
|
|
27705
|
-
billTag = _ref15.billTag,
|
|
27706
|
-
sysStatus = _ref15.sysStatus;
|
|
27707
|
-
var data = (_trade$doOrders = trade.doOrders) === null || _trade$doOrders === void 0 ? void 0 : _trade$doOrders.map(function (item) {
|
|
27708
|
-
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
27709
|
-
billNo: billNo,
|
|
27710
|
-
billType: billType,
|
|
27711
|
-
billTag: billTag,
|
|
27712
|
-
isSplit: isSplit,
|
|
27713
|
-
sysStatus: sysStatus
|
|
27687
|
+
var data = (_trade$doOrders = trade.doOrders) === null || _trade$doOrders === void 0 ? void 0 : _trade$doOrders.map(function (order) {
|
|
27688
|
+
return _objectSpread2(_objectSpread2({}, order), {}, {
|
|
27689
|
+
billNo: order.orderNo,
|
|
27690
|
+
billType: (trade === null || trade === void 0 ? void 0 : trade.split) ? '拆分订单' : '普通订单'
|
|
27714
27691
|
});
|
|
27715
27692
|
});
|
|
27716
27693
|
_onChange === null || _onChange === void 0 ? void 0 : _onChange(_objectSpread2(_objectSpread2({}, valueRef.current || {}), {}, {
|
|
@@ -29135,13 +29112,13 @@ var componentMap$2 = {
|
|
|
29135
29112
|
var CommonGoods = function CommonGoods(props) {
|
|
29136
29113
|
var _componentMap$compTyp, _withInfo$current3, _withInfo$current4, _componentMap$compTyp7, _componentMap$compTyp8;
|
|
29137
29114
|
var value = props.value,
|
|
29138
|
-
|
|
29115
|
+
disabled = props.disabled,
|
|
29139
29116
|
onChange = props.onChange,
|
|
29140
29117
|
compType = props.type;
|
|
29141
29118
|
// DXD_SUPPLIERS 纯镜像 DXD_GOODS(由 FormRender useWatch 联动同步增删),禁用独立增删
|
|
29142
|
-
var disabled = rawDisabled || compType === 'DXD_SUPPLIERS';
|
|
29143
29119
|
// console.log('value?.orders', value?.orders);
|
|
29144
29120
|
// 合并单订单会包含","
|
|
29121
|
+
var notAllowedOperation = ['DXD_SUPPLIERS'].includes(compType);
|
|
29145
29122
|
var showModeBtn = ((_componentMap$compTyp = componentMap$2[compType]) === null || _componentMap$compTyp === void 0 ? void 0 : _componentMap$compTyp.checkShowModeBtn) ? componentMap$2[compType].checkShowModeBtn(value) : !['BS_E3_GOODS'].includes(compType) && ((value === null || value === void 0 ? void 0 : value.orders) || []).some(function (order) {
|
|
29146
29123
|
var _order$componentMap$c;
|
|
29147
29124
|
return order === null || order === void 0 ? void 0 : (_order$componentMap$c = order[componentMap$2[compType].orderNo]) === null || _order$componentMap$c === void 0 ? void 0 : _order$componentMap$c.includes(',');
|
|
@@ -29499,7 +29476,6 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
29499
29476
|
orderNo: value === null || value === void 0 ? void 0 : value.orderNo,
|
|
29500
29477
|
type: compType
|
|
29501
29478
|
});
|
|
29502
|
-
console.log('list---', list);
|
|
29503
29479
|
onChange(_objectSpread2(_objectSpread2({}, valueRef.current), {}, {
|
|
29504
29480
|
allOrders: list || []
|
|
29505
29481
|
}));
|
|
@@ -29529,6 +29505,7 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
29529
29505
|
selectedSystemOrders: value === null || value === void 0 ? void 0 : value.orders,
|
|
29530
29506
|
showChangeBtn: (_componentMap$compTyp7 = componentMap$2[compType]) === null || _componentMap$compTyp7 === void 0 ? void 0 : _componentMap$compTyp7.showChangeBtn,
|
|
29531
29507
|
showErpGoodsBtn: !((_componentMap$compTyp8 = componentMap$2[compType]) === null || _componentMap$compTyp8 === void 0 ? void 0 : _componentMap$compTyp8.hiddenErpGoodsBtn),
|
|
29508
|
+
notAllowedOperation: notAllowedOperation,
|
|
29532
29509
|
tradeGoods: {
|
|
29533
29510
|
originDataSource: originDataSource,
|
|
29534
29511
|
getDataSourceAsync: getDataSourceAsync,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/basic-components",
|
|
3
|
-
"version": "2.10.9-beta.
|
|
3
|
+
"version": "2.10.9-beta.9",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"homepage": "",
|
|
6
6
|
"license": "ISC",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"watch": "nodemon --ignore dist/ --ignore node_modules/ --watch src/ -C -e ts,tsx,less --debug -x 'yarn async'"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@kmkf-fe-packages/kmkf-utils": "2.10.9-beta.
|
|
23
|
+
"@kmkf-fe-packages/kmkf-utils": "2.10.9-beta.9",
|
|
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": "f72c7170af0b9874ff0e5a8bad984943478b0c42"
|
|
70
70
|
}
|