@bit-sun/business-component 2.0.40 → 2.0.41-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +35 -12
- package/dist/index.js +35 -12
- package/package.json +1 -1
- package/src/components/Functional/AddSelect/index.tsx +8 -0
- package/src/components/Functional/BillEntry/index.tsx +8 -0
- package/src/components/Functional/DataImport/index.tsx +0 -6
- package/src/components/Functional/DataValidation/index.md +0 -1
- package/src/components/Functional/DataValidation/index.tsx +2 -8
package/dist/index.esm.js
CHANGED
|
@@ -763,7 +763,7 @@ var luckysheet; // const mapping = [
|
|
|
763
763
|
// { "key": "price", "name": "单价", "rule": "price" }
|
|
764
764
|
// ]
|
|
765
765
|
|
|
766
|
-
var mapping = new Map([['skuCode', 'SKU编码'], ['quantity', '数量'], ['price', '单价'], ['regionCode', '库区'], ['checkQuantity', '实盘数量'], ['shareRatio', '共享比例'], ['lotNumberCode', '批号'], ['warehouseCode', '仓库编码'], ['regionCode', '库区'], ['locationCode', '货位'], ['rowNumber', '货位排数'], ['layerNumber', '货位层数'], ['gridNumber', '货位格号'], ['oldUniqueCode', '原始唯一码'], ['newUniqueCode', '新唯一码'], ['relationRecordCode', '单据编码'], ['remark', '备注'], ['externalCode', 'JDE商品编码']
|
|
766
|
+
var mapping = new Map([['skuCode', 'SKU编码'], ['quantity', '数量'], ['price', '单价'], ['regionCode', '库区'], ['checkQuantity', '实盘数量'], ['shareRatio', '共享比例'], ['lotNumberCode', '批号'], ['warehouseCode', '仓库编码'], ['regionCode', '库区'], ['locationCode', '货位'], ['rowNumber', '货位排数'], ['layerNumber', '货位层数'], ['gridNumber', '货位格号'], ['oldUniqueCode', '原始唯一码'], ['newUniqueCode', '新唯一码'], ['relationRecordCode', '单据编码'], ['remark', '备注'], ['externalCode', 'JDE商品编码']]); // for dnd
|
|
767
767
|
|
|
768
768
|
|
|
769
769
|
var reorder = function reorder(list, startIndex, endIndex) {
|
|
@@ -1073,7 +1073,6 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
1073
1073
|
_this.resetData = function () {
|
|
1074
1074
|
var _this$props = _this.props,
|
|
1075
1075
|
validDataUrl = _this$props.validDataUrl,
|
|
1076
|
-
validDataParams = _this$props.validDataParams,
|
|
1077
1076
|
updateData = _this$props.updateData,
|
|
1078
1077
|
columns = _this$props.columns,
|
|
1079
1078
|
isBrandAuth = _this$props.isBrandAuth,
|
|
@@ -1093,7 +1092,7 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
1093
1092
|
};
|
|
1094
1093
|
}
|
|
1095
1094
|
|
|
1096
|
-
axios.post(validDataUrl, _objectSpread2(_objectSpread2(
|
|
1095
|
+
axios.post(validDataUrl, _objectSpread2(_objectSpread2({}, otherParams), {}, {
|
|
1097
1096
|
columns: columns,
|
|
1098
1097
|
data: resultData,
|
|
1099
1098
|
checkStockNum: isCheckStockNum
|
|
@@ -1390,7 +1389,7 @@ var luckysheet$1; // const mapping = [
|
|
|
1390
1389
|
// { "key": "price", "name": "单价", "rule": "price" }
|
|
1391
1390
|
// ]
|
|
1392
1391
|
|
|
1393
|
-
var mapping$1 = new Map([['skuCode', 'SKU编码'], ['quantity', '数量'], ['price', '单价'], ['regionCode', '库区'], ['checkQuantity', '实盘数量'], ['shareRatio', '共享比例'], ['lotNumberCode', '批号'], ['warehouseCode', '仓库编码'], ['regionCode', '库区'], ['locationCode', '货位'], ['rowNumber', '货位排数'], ['layerNumber', '货位层数'], ['gridNumber', '货位格号'], ['oldUniqueCode', '原始唯一码'], ['newUniqueCode', '新唯一码'], ['relationRecordCode', '单据编码'], ['remark', '备注']
|
|
1392
|
+
var mapping$1 = new Map([['skuCode', 'SKU编码'], ['quantity', '数量'], ['price', '单价'], ['regionCode', '库区'], ['checkQuantity', '实盘数量'], ['shareRatio', '共享比例'], ['lotNumberCode', '批号'], ['warehouseCode', '仓库编码'], ['regionCode', '库区'], ['locationCode', '货位'], ['rowNumber', '货位排数'], ['layerNumber', '货位层数'], ['gridNumber', '货位格号'], ['oldUniqueCode', '原始唯一码'], ['newUniqueCode', '新唯一码'], ['relationRecordCode', '单据编码'], ['remark', '备注']]); // for dnd
|
|
1394
1393
|
|
|
1395
1394
|
|
|
1396
1395
|
var reorder$1 = function reorder(list, startIndex, endIndex) {
|
|
@@ -4021,14 +4020,26 @@ var AddSelect = function AddSelect(props) {
|
|
|
4021
4020
|
inputIndex++;
|
|
4022
4021
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
4023
4022
|
render: function render(text, record, index) {
|
|
4023
|
+
var _record$packingUnitLi, _record$packingUnitLi2;
|
|
4024
|
+
|
|
4024
4025
|
// let
|
|
4025
4026
|
if (record.needFocus === true && currentIndex === 0) ;
|
|
4026
4027
|
|
|
4027
|
-
|
|
4028
|
+
var precisionObj = {};
|
|
4029
|
+
var unitAccuracy = (_record$packingUnitLi = record.packingUnitList) === null || _record$packingUnitLi === void 0 ? void 0 : (_record$packingUnitLi2 = _record$packingUnitLi[0]) === null || _record$packingUnitLi2 === void 0 ? void 0 : _record$packingUnitLi2.unitAccuracy;
|
|
4030
|
+
|
|
4031
|
+
if (item.dataIndex == 'count' && unitAccuracy !== undefined) {
|
|
4032
|
+
precisionObj = {
|
|
4033
|
+
precision: unitAccuracy
|
|
4034
|
+
};
|
|
4035
|
+
}
|
|
4036
|
+
|
|
4037
|
+
return /*#__PURE__*/React.createElement(InputNumber, _objectSpread2(_objectSpread2({
|
|
4028
4038
|
defaultValue: text || '',
|
|
4029
4039
|
min: 0,
|
|
4030
4040
|
autoFocus: record.needFocus,
|
|
4031
|
-
keyboard: false
|
|
4041
|
+
keyboard: false
|
|
4042
|
+
}, precisionObj), {}, {
|
|
4032
4043
|
onChange: function onChange(value) {
|
|
4033
4044
|
record[item.dataIndex] = value;
|
|
4034
4045
|
},
|
|
@@ -4141,7 +4152,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
4141
4152
|
e.preventDefault();
|
|
4142
4153
|
}
|
|
4143
4154
|
}
|
|
4144
|
-
});
|
|
4155
|
+
}));
|
|
4145
4156
|
}
|
|
4146
4157
|
});
|
|
4147
4158
|
}
|
|
@@ -4330,6 +4341,8 @@ styleInject(css_248z$5);
|
|
|
4330
4341
|
var _this = undefined;
|
|
4331
4342
|
|
|
4332
4343
|
var InputElement = function InputElement(_ref) {
|
|
4344
|
+
var _record$packingUnitLi, _record$packingUnitLi2;
|
|
4345
|
+
|
|
4333
4346
|
var record = _ref.record,
|
|
4334
4347
|
text = _ref.text,
|
|
4335
4348
|
currentIndex = _ref.currentIndex,
|
|
@@ -4597,6 +4610,15 @@ var InputElement = function InputElement(_ref) {
|
|
|
4597
4610
|
}));
|
|
4598
4611
|
};
|
|
4599
4612
|
|
|
4613
|
+
var precisionObj = {};
|
|
4614
|
+
var unitAccuracy = (_record$packingUnitLi = record.packingUnitList) === null || _record$packingUnitLi === void 0 ? void 0 : (_record$packingUnitLi2 = _record$packingUnitLi[0]) === null || _record$packingUnitLi2 === void 0 ? void 0 : _record$packingUnitLi2.unitAccuracy;
|
|
4615
|
+
|
|
4616
|
+
if (item.dataIndex == 'count' && unitAccuracy !== undefined) {
|
|
4617
|
+
precisionObj = {
|
|
4618
|
+
precision: unitAccuracy
|
|
4619
|
+
};
|
|
4620
|
+
}
|
|
4621
|
+
|
|
4600
4622
|
return /*#__PURE__*/React.createElement(Popover, {
|
|
4601
4623
|
placement: "bottomLeft",
|
|
4602
4624
|
destroyTooltipOnHide: {
|
|
@@ -4740,11 +4762,12 @@ var InputElement = function InputElement(_ref) {
|
|
|
4740
4762
|
}
|
|
4741
4763
|
}
|
|
4742
4764
|
}) : /*#__PURE__*/React.createElement(InputNumber // onBlur={() => {updateHoverVisibled(false)}}
|
|
4743
|
-
, {
|
|
4765
|
+
, _objectSpread2(_objectSpread2({
|
|
4744
4766
|
// onBlur={() => {updateHoverVisibled(false)}}
|
|
4745
4767
|
defaultValue: text || '',
|
|
4746
4768
|
min: 0,
|
|
4747
|
-
keyboard: false
|
|
4769
|
+
keyboard: false
|
|
4770
|
+
}, precisionObj), {}, {
|
|
4748
4771
|
onChange: function onChange(value) {
|
|
4749
4772
|
record[item.dataIndex] = value;
|
|
4750
4773
|
},
|
|
@@ -4856,7 +4879,7 @@ var InputElement = function InputElement(_ref) {
|
|
|
4856
4879
|
}]));
|
|
4857
4880
|
}
|
|
4858
4881
|
}
|
|
4859
|
-
}));
|
|
4882
|
+
})));
|
|
4860
4883
|
};
|
|
4861
4884
|
|
|
4862
4885
|
var BillEntry = function BillEntry(_ref3) {
|
|
@@ -4891,9 +4914,9 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
4891
4914
|
dataIndex: 'selectUnitCode',
|
|
4892
4915
|
width: 100,
|
|
4893
4916
|
render: function render(text, record) {
|
|
4894
|
-
var _record$
|
|
4917
|
+
var _record$packingUnitLi3;
|
|
4895
4918
|
|
|
4896
|
-
if (record === null || record === void 0 ? void 0 : (_record$
|
|
4919
|
+
if (record === null || record === void 0 ? void 0 : (_record$packingUnitLi3 = record.packingUnitList) === null || _record$packingUnitLi3 === void 0 ? void 0 : _record$packingUnitLi3.length) {
|
|
4897
4920
|
var basePackUnit = record === null || record === void 0 ? void 0 : record.packingUnitList[0];
|
|
4898
4921
|
record.selectUnitCode = basePackUnit.unitCode;
|
|
4899
4922
|
return basePackUnit.name || basePackUnit.unitCode;
|
package/dist/index.js
CHANGED
|
@@ -777,7 +777,7 @@ var luckysheet; // const mapping = [
|
|
|
777
777
|
// { "key": "price", "name": "单价", "rule": "price" }
|
|
778
778
|
// ]
|
|
779
779
|
|
|
780
|
-
var mapping = new Map([['skuCode', 'SKU编码'], ['quantity', '数量'], ['price', '单价'], ['regionCode', '库区'], ['checkQuantity', '实盘数量'], ['shareRatio', '共享比例'], ['lotNumberCode', '批号'], ['warehouseCode', '仓库编码'], ['regionCode', '库区'], ['locationCode', '货位'], ['rowNumber', '货位排数'], ['layerNumber', '货位层数'], ['gridNumber', '货位格号'], ['oldUniqueCode', '原始唯一码'], ['newUniqueCode', '新唯一码'], ['relationRecordCode', '单据编码'], ['remark', '备注'], ['externalCode', 'JDE商品编码']
|
|
780
|
+
var mapping = new Map([['skuCode', 'SKU编码'], ['quantity', '数量'], ['price', '单价'], ['regionCode', '库区'], ['checkQuantity', '实盘数量'], ['shareRatio', '共享比例'], ['lotNumberCode', '批号'], ['warehouseCode', '仓库编码'], ['regionCode', '库区'], ['locationCode', '货位'], ['rowNumber', '货位排数'], ['layerNumber', '货位层数'], ['gridNumber', '货位格号'], ['oldUniqueCode', '原始唯一码'], ['newUniqueCode', '新唯一码'], ['relationRecordCode', '单据编码'], ['remark', '备注'], ['externalCode', 'JDE商品编码']]); // for dnd
|
|
781
781
|
|
|
782
782
|
|
|
783
783
|
var reorder = function reorder(list, startIndex, endIndex) {
|
|
@@ -1087,7 +1087,6 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
1087
1087
|
_this.resetData = function () {
|
|
1088
1088
|
var _this$props = _this.props,
|
|
1089
1089
|
validDataUrl = _this$props.validDataUrl,
|
|
1090
|
-
validDataParams = _this$props.validDataParams,
|
|
1091
1090
|
updateData = _this$props.updateData,
|
|
1092
1091
|
columns = _this$props.columns,
|
|
1093
1092
|
isBrandAuth = _this$props.isBrandAuth,
|
|
@@ -1107,7 +1106,7 @@ var DataValidation = /*#__PURE__*/function (_React$Component) {
|
|
|
1107
1106
|
};
|
|
1108
1107
|
}
|
|
1109
1108
|
|
|
1110
|
-
axios__default['default'].post(validDataUrl, _objectSpread2(_objectSpread2(
|
|
1109
|
+
axios__default['default'].post(validDataUrl, _objectSpread2(_objectSpread2({}, otherParams), {}, {
|
|
1111
1110
|
columns: columns,
|
|
1112
1111
|
data: resultData,
|
|
1113
1112
|
checkStockNum: isCheckStockNum
|
|
@@ -1404,7 +1403,7 @@ var luckysheet$1; // const mapping = [
|
|
|
1404
1403
|
// { "key": "price", "name": "单价", "rule": "price" }
|
|
1405
1404
|
// ]
|
|
1406
1405
|
|
|
1407
|
-
var mapping$1 = new Map([['skuCode', 'SKU编码'], ['quantity', '数量'], ['price', '单价'], ['regionCode', '库区'], ['checkQuantity', '实盘数量'], ['shareRatio', '共享比例'], ['lotNumberCode', '批号'], ['warehouseCode', '仓库编码'], ['regionCode', '库区'], ['locationCode', '货位'], ['rowNumber', '货位排数'], ['layerNumber', '货位层数'], ['gridNumber', '货位格号'], ['oldUniqueCode', '原始唯一码'], ['newUniqueCode', '新唯一码'], ['relationRecordCode', '单据编码'], ['remark', '备注']
|
|
1406
|
+
var mapping$1 = new Map([['skuCode', 'SKU编码'], ['quantity', '数量'], ['price', '单价'], ['regionCode', '库区'], ['checkQuantity', '实盘数量'], ['shareRatio', '共享比例'], ['lotNumberCode', '批号'], ['warehouseCode', '仓库编码'], ['regionCode', '库区'], ['locationCode', '货位'], ['rowNumber', '货位排数'], ['layerNumber', '货位层数'], ['gridNumber', '货位格号'], ['oldUniqueCode', '原始唯一码'], ['newUniqueCode', '新唯一码'], ['relationRecordCode', '单据编码'], ['remark', '备注']]); // for dnd
|
|
1408
1407
|
|
|
1409
1408
|
|
|
1410
1409
|
var reorder$1 = function reorder(list, startIndex, endIndex) {
|
|
@@ -4035,14 +4034,26 @@ var AddSelect = function AddSelect(props) {
|
|
|
4035
4034
|
inputIndex++;
|
|
4036
4035
|
return _objectSpread2(_objectSpread2({}, item), {}, {
|
|
4037
4036
|
render: function render(text, record, index) {
|
|
4037
|
+
var _record$packingUnitLi, _record$packingUnitLi2;
|
|
4038
|
+
|
|
4038
4039
|
// let
|
|
4039
4040
|
if (record.needFocus === true && currentIndex === 0) ;
|
|
4040
4041
|
|
|
4041
|
-
|
|
4042
|
+
var precisionObj = {};
|
|
4043
|
+
var unitAccuracy = (_record$packingUnitLi = record.packingUnitList) === null || _record$packingUnitLi === void 0 ? void 0 : (_record$packingUnitLi2 = _record$packingUnitLi[0]) === null || _record$packingUnitLi2 === void 0 ? void 0 : _record$packingUnitLi2.unitAccuracy;
|
|
4044
|
+
|
|
4045
|
+
if (item.dataIndex == 'count' && unitAccuracy !== undefined) {
|
|
4046
|
+
precisionObj = {
|
|
4047
|
+
precision: unitAccuracy
|
|
4048
|
+
};
|
|
4049
|
+
}
|
|
4050
|
+
|
|
4051
|
+
return /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, _objectSpread2(_objectSpread2({
|
|
4042
4052
|
defaultValue: text || '',
|
|
4043
4053
|
min: 0,
|
|
4044
4054
|
autoFocus: record.needFocus,
|
|
4045
|
-
keyboard: false
|
|
4055
|
+
keyboard: false
|
|
4056
|
+
}, precisionObj), {}, {
|
|
4046
4057
|
onChange: function onChange(value) {
|
|
4047
4058
|
record[item.dataIndex] = value;
|
|
4048
4059
|
},
|
|
@@ -4155,7 +4166,7 @@ var AddSelect = function AddSelect(props) {
|
|
|
4155
4166
|
e.preventDefault();
|
|
4156
4167
|
}
|
|
4157
4168
|
}
|
|
4158
|
-
});
|
|
4169
|
+
}));
|
|
4159
4170
|
}
|
|
4160
4171
|
});
|
|
4161
4172
|
}
|
|
@@ -4344,6 +4355,8 @@ styleInject(css_248z$5);
|
|
|
4344
4355
|
var _this = undefined;
|
|
4345
4356
|
|
|
4346
4357
|
var InputElement = function InputElement(_ref) {
|
|
4358
|
+
var _record$packingUnitLi, _record$packingUnitLi2;
|
|
4359
|
+
|
|
4347
4360
|
var record = _ref.record,
|
|
4348
4361
|
text = _ref.text,
|
|
4349
4362
|
currentIndex = _ref.currentIndex,
|
|
@@ -4611,6 +4624,15 @@ var InputElement = function InputElement(_ref) {
|
|
|
4611
4624
|
}));
|
|
4612
4625
|
};
|
|
4613
4626
|
|
|
4627
|
+
var precisionObj = {};
|
|
4628
|
+
var unitAccuracy = (_record$packingUnitLi = record.packingUnitList) === null || _record$packingUnitLi === void 0 ? void 0 : (_record$packingUnitLi2 = _record$packingUnitLi[0]) === null || _record$packingUnitLi2 === void 0 ? void 0 : _record$packingUnitLi2.unitAccuracy;
|
|
4629
|
+
|
|
4630
|
+
if (item.dataIndex == 'count' && unitAccuracy !== undefined) {
|
|
4631
|
+
precisionObj = {
|
|
4632
|
+
precision: unitAccuracy
|
|
4633
|
+
};
|
|
4634
|
+
}
|
|
4635
|
+
|
|
4614
4636
|
return /*#__PURE__*/React__default['default'].createElement(antd.Popover, {
|
|
4615
4637
|
placement: "bottomLeft",
|
|
4616
4638
|
destroyTooltipOnHide: {
|
|
@@ -4754,11 +4776,12 @@ var InputElement = function InputElement(_ref) {
|
|
|
4754
4776
|
}
|
|
4755
4777
|
}
|
|
4756
4778
|
}) : /*#__PURE__*/React__default['default'].createElement(antd.InputNumber // onBlur={() => {updateHoverVisibled(false)}}
|
|
4757
|
-
, {
|
|
4779
|
+
, _objectSpread2(_objectSpread2({
|
|
4758
4780
|
// onBlur={() => {updateHoverVisibled(false)}}
|
|
4759
4781
|
defaultValue: text || '',
|
|
4760
4782
|
min: 0,
|
|
4761
|
-
keyboard: false
|
|
4783
|
+
keyboard: false
|
|
4784
|
+
}, precisionObj), {}, {
|
|
4762
4785
|
onChange: function onChange(value) {
|
|
4763
4786
|
record[item.dataIndex] = value;
|
|
4764
4787
|
},
|
|
@@ -4870,7 +4893,7 @@ var InputElement = function InputElement(_ref) {
|
|
|
4870
4893
|
}]));
|
|
4871
4894
|
}
|
|
4872
4895
|
}
|
|
4873
|
-
}));
|
|
4896
|
+
})));
|
|
4874
4897
|
};
|
|
4875
4898
|
|
|
4876
4899
|
var BillEntry = function BillEntry(_ref3) {
|
|
@@ -4905,9 +4928,9 @@ var BillEntry = function BillEntry(_ref3) {
|
|
|
4905
4928
|
dataIndex: 'selectUnitCode',
|
|
4906
4929
|
width: 100,
|
|
4907
4930
|
render: function render(text, record) {
|
|
4908
|
-
var _record$
|
|
4931
|
+
var _record$packingUnitLi3;
|
|
4909
4932
|
|
|
4910
|
-
if (record === null || record === void 0 ? void 0 : (_record$
|
|
4933
|
+
if (record === null || record === void 0 ? void 0 : (_record$packingUnitLi3 = record.packingUnitList) === null || _record$packingUnitLi3 === void 0 ? void 0 : _record$packingUnitLi3.length) {
|
|
4911
4934
|
var basePackUnit = record === null || record === void 0 ? void 0 : record.packingUnitList[0];
|
|
4912
4935
|
record.selectUnitCode = basePackUnit.unitCode;
|
|
4913
4936
|
return basePackUnit.name || basePackUnit.unitCode;
|
package/package.json
CHANGED
|
@@ -715,6 +715,13 @@ const AddSelect = (props: any) => {
|
|
|
715
715
|
// let
|
|
716
716
|
if(record.needFocus === true && currentIndex === 0) {
|
|
717
717
|
|
|
718
|
+
}
|
|
719
|
+
let precisionObj={};
|
|
720
|
+
const unitAccuracy = record.packingUnitList?.[0]?.unitAccuracy
|
|
721
|
+
if(item.dataIndex =='count' && unitAccuracy !== undefined) {
|
|
722
|
+
precisionObj = {
|
|
723
|
+
precision: unitAccuracy
|
|
724
|
+
}
|
|
718
725
|
}
|
|
719
726
|
return (
|
|
720
727
|
<InputNumber
|
|
@@ -722,6 +729,7 @@ const AddSelect = (props: any) => {
|
|
|
722
729
|
min={0}
|
|
723
730
|
autoFocus={record.needFocus}
|
|
724
731
|
keyboard={false}
|
|
732
|
+
{...precisionObj}
|
|
725
733
|
onChange={(value) => {
|
|
726
734
|
record[item.dataIndex] = value
|
|
727
735
|
}}
|
|
@@ -212,6 +212,13 @@ const InputElement = ({
|
|
|
212
212
|
</div>
|
|
213
213
|
}
|
|
214
214
|
|
|
215
|
+
let precisionObj={};
|
|
216
|
+
const unitAccuracy = record.packingUnitList?.[0]?.unitAccuracy
|
|
217
|
+
if(item.dataIndex =='count' && unitAccuracy !== undefined) {
|
|
218
|
+
precisionObj = {
|
|
219
|
+
precision: unitAccuracy
|
|
220
|
+
}
|
|
221
|
+
}
|
|
215
222
|
|
|
216
223
|
return (
|
|
217
224
|
<Popover placement="bottomLeft" destroyTooltipOnHide={{ keepParent: false }} title="" trigger="" content={SearchDataTable(hoverVisibled)} visible={hoverVisibled} onVisibleChange={(disabled) => { updateHoverVisibled(disabled) }}>
|
|
@@ -316,6 +323,7 @@ const InputElement = ({
|
|
|
316
323
|
defaultValue={text || ''}
|
|
317
324
|
min={0}
|
|
318
325
|
keyboard={false}
|
|
326
|
+
{...precisionObj}
|
|
319
327
|
onChange={(value) => {
|
|
320
328
|
record[item.dataIndex] = value
|
|
321
329
|
}}
|
|
@@ -58,12 +58,6 @@ const mapping = new Map([
|
|
|
58
58
|
['newUniqueCode', '新唯一码'],
|
|
59
59
|
['relationRecordCode', '单据编码'],
|
|
60
60
|
['remark', '备注'],
|
|
61
|
-
['externalCode', 'JDE商品编码'],
|
|
62
|
-
['realWarehouseCode', '仓库编码'],
|
|
63
|
-
['syncRate', '按百分比'],
|
|
64
|
-
['assignQuantity', '按指定数量'],
|
|
65
|
-
['retainQuantity', ' 按保留数量'],
|
|
66
|
-
['priority', ' 优先级'],
|
|
67
61
|
]);
|
|
68
62
|
|
|
69
63
|
// for dnd
|
|
@@ -26,7 +26,6 @@ export default () => {
|
|
|
26
26
|
// columns={['skuCode', 'quantity', 'price']}
|
|
27
27
|
columns={["skuCode", "quantity", "price"]} // 需要哪些列展示,以及展示的顺序
|
|
28
28
|
validDataUrl="/wms-ops/recordDetailImport/check" // 校验的接口url
|
|
29
|
-
validDataParams={{ recordCode: '111' }}
|
|
30
29
|
onRef={(ref) => {
|
|
31
30
|
dataValidationRef = ref;
|
|
32
31
|
}}
|
|
@@ -58,12 +58,7 @@ const mapping = new Map([
|
|
|
58
58
|
['newUniqueCode', '新唯一码'],
|
|
59
59
|
['relationRecordCode', '单据编码'],
|
|
60
60
|
['remark', '备注'],
|
|
61
|
-
['externalCode', 'JDE商品编码']
|
|
62
|
-
['realWarehouseCode', '仓库编码'],
|
|
63
|
-
['syncRate', '按百分比'],
|
|
64
|
-
['assignQuantity', '按指定数量'],
|
|
65
|
-
['retainQuantity', ' 按保留数量'],
|
|
66
|
-
['priority', ' 优先级'],
|
|
61
|
+
['externalCode', 'JDE商品编码']
|
|
67
62
|
]);
|
|
68
63
|
|
|
69
64
|
// for dnd
|
|
@@ -406,7 +401,7 @@ class DataValidation extends React.Component {
|
|
|
406
401
|
};
|
|
407
402
|
|
|
408
403
|
resetData = () => {
|
|
409
|
-
const { validDataUrl,
|
|
404
|
+
const { validDataUrl, updateData, columns, isBrandAuth, isCheckStockNum = true } = this.props;
|
|
410
405
|
const resultData = this.getData().filter(d => {
|
|
411
406
|
return _.compact(Object.values(d)).length
|
|
412
407
|
})
|
|
@@ -420,7 +415,6 @@ class DataValidation extends React.Component {
|
|
|
420
415
|
axios
|
|
421
416
|
.post(validDataUrl, {
|
|
422
417
|
...otherParams,
|
|
423
|
-
...validDataParams,
|
|
424
418
|
columns: columns,
|
|
425
419
|
data: resultData,
|
|
426
420
|
checkStockNum: isCheckStockNum
|