@kmkf-fe-packages/basic-components 2.2.13-beta.51 → 2.2.13-beta.52

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
@@ -17790,6 +17790,7 @@ var relationComponentUniqueKeyMap = {
17790
17790
  };
17791
17791
  // 该方法只用于小白熊定制,当管易商品/管易补发/管易退换货组件的数据来源于关联工单数据,且其补发类型自定义组件选了值,根据该值填充到商品库弹框中类型筛选项
17792
17792
  var useDefaultSearchValue = (function (props) {
17793
+ var _Object$entries;
17793
17794
  var form = props.form,
17794
17795
  _props$companyKey = props.companyKey,
17795
17796
  companyKey = _props$companyKey === void 0 ? '' : _props$companyKey,
@@ -17802,7 +17803,10 @@ var useDefaultSearchValue = (function (props) {
17802
17803
  }
17803
17804
  var result = {};
17804
17805
  var relationComponentKeyMap = relationComponentUniqueKeyMap === null || relationComponentUniqueKeyMap === void 0 ? void 0 : relationComponentUniqueKeyMap[companyKey];
17805
- Object.entries(relationComponentKeyMap).forEach(function (_ref) {
17806
+ if (!relationComponentKeyMap) {
17807
+ return '';
17808
+ }
17809
+ (_Object$entries = Object.entries(relationComponentKeyMap || {})) === null || _Object$entries === void 0 ? void 0 : _Object$entries.forEach(function (_ref) {
17806
17810
  var _templateDetail$compo;
17807
17811
  var _ref2 = _slicedToArray(_ref, 2),
17808
17812
  key = _ref2[0],
@@ -18496,7 +18500,7 @@ var getColumns$1 = function getColumns(_ref) {
18496
18500
  }
18497
18501
  }, {
18498
18502
  dataIndex: 'share',
18499
- title: "\u5206\u644A\u4EF7",
18503
+ title: "\u5747\u644A\u5355\u4EF7",
18500
18504
  align: 'center',
18501
18505
  ellipsis: true,
18502
18506
  width: 70
@@ -19806,19 +19810,21 @@ var getColumns$5 = function getColumns() {
19806
19810
  ellipsis: true,
19807
19811
  align: 'center',
19808
19812
  width: 120,
19809
- validator: function validator(_rule, value) {
19810
- var goodsName = '';
19811
- if (((value === null || value === void 0 ? void 0 : value.jstReissueGoods) || []).some(function (goods) {
19812
- var v = toNum$1(goods === null || goods === void 0 ? void 0 : goods.salePrice);
19813
- var res = typeof v === 'number' ? v < 0 : true;
19814
- if (res) {
19815
- goodsName = (goods === null || goods === void 0 ? void 0 : goods.name) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.name, "]") : '';
19816
- }
19817
- return res;
19818
- })) {
19819
- return Promise.reject("".concat(goodsName, "\u5355\u4EF7\u4E3A\u5927\u4E8E\u7B49\u4E8E0\u7684\u6570"));
19820
- }
19821
- },
19813
+ // validator: (_rule: any, value: any) => {
19814
+ // let goodsName = '';
19815
+ // if (
19816
+ // (value?.jstReissueGoods || []).some((goods: any) => {
19817
+ // const v = toNum(goods?.salePrice);
19818
+ // const res = typeof v === 'number' ? v < 0 : true;
19819
+ // if (res) {
19820
+ // goodsName = goods?.name ? `[${goods?.name}]` : '';
19821
+ // }
19822
+ // return res;
19823
+ // })
19824
+ // ) {
19825
+ // return Promise.reject(`${goodsName}单价为大于等于0的数`);
19826
+ // }
19827
+ // },
19822
19828
  render: function render(val, record, index) {
19823
19829
  return record.canEdit && !disabled ? /*#__PURE__*/React.createElement(InputNumber, {
19824
19830
  style: {
package/dist/index.js CHANGED
@@ -17805,6 +17805,7 @@ var relationComponentUniqueKeyMap = {
17805
17805
  };
17806
17806
  // 该方法只用于小白熊定制,当管易商品/管易补发/管易退换货组件的数据来源于关联工单数据,且其补发类型自定义组件选了值,根据该值填充到商品库弹框中类型筛选项
17807
17807
  var useDefaultSearchValue = (function (props) {
17808
+ var _Object$entries;
17808
17809
  var form = props.form,
17809
17810
  _props$companyKey = props.companyKey,
17810
17811
  companyKey = _props$companyKey === void 0 ? '' : _props$companyKey,
@@ -17817,7 +17818,10 @@ var useDefaultSearchValue = (function (props) {
17817
17818
  }
17818
17819
  var result = {};
17819
17820
  var relationComponentKeyMap = relationComponentUniqueKeyMap === null || relationComponentUniqueKeyMap === void 0 ? void 0 : relationComponentUniqueKeyMap[companyKey];
17820
- Object.entries(relationComponentKeyMap).forEach(function (_ref) {
17821
+ if (!relationComponentKeyMap) {
17822
+ return '';
17823
+ }
17824
+ (_Object$entries = Object.entries(relationComponentKeyMap || {})) === null || _Object$entries === void 0 ? void 0 : _Object$entries.forEach(function (_ref) {
17821
17825
  var _templateDetail$compo;
17822
17826
  var _ref2 = _slicedToArray(_ref, 2),
17823
17827
  key = _ref2[0],
@@ -18511,7 +18515,7 @@ var getColumns$1 = function getColumns(_ref) {
18511
18515
  }
18512
18516
  }, {
18513
18517
  dataIndex: 'share',
18514
- title: "\u5206\u644A\u4EF7",
18518
+ title: "\u5747\u644A\u5355\u4EF7",
18515
18519
  align: 'center',
18516
18520
  ellipsis: true,
18517
18521
  width: 70
@@ -19821,19 +19825,21 @@ var getColumns$5 = function getColumns() {
19821
19825
  ellipsis: true,
19822
19826
  align: 'center',
19823
19827
  width: 120,
19824
- validator: function validator(_rule, value) {
19825
- var goodsName = '';
19826
- if (((value === null || value === void 0 ? void 0 : value.jstReissueGoods) || []).some(function (goods) {
19827
- var v = toNum$1(goods === null || goods === void 0 ? void 0 : goods.salePrice);
19828
- var res = typeof v === 'number' ? v < 0 : true;
19829
- if (res) {
19830
- goodsName = (goods === null || goods === void 0 ? void 0 : goods.name) ? "[".concat(goods === null || goods === void 0 ? void 0 : goods.name, "]") : '';
19831
- }
19832
- return res;
19833
- })) {
19834
- return Promise.reject("".concat(goodsName, "\u5355\u4EF7\u4E3A\u5927\u4E8E\u7B49\u4E8E0\u7684\u6570"));
19835
- }
19836
- },
19828
+ // validator: (_rule: any, value: any) => {
19829
+ // let goodsName = '';
19830
+ // if (
19831
+ // (value?.jstReissueGoods || []).some((goods: any) => {
19832
+ // const v = toNum(goods?.salePrice);
19833
+ // const res = typeof v === 'number' ? v < 0 : true;
19834
+ // if (res) {
19835
+ // goodsName = goods?.name ? `[${goods?.name}]` : '';
19836
+ // }
19837
+ // return res;
19838
+ // })
19839
+ // ) {
19840
+ // return Promise.reject(`${goodsName}单价为大于等于0的数`);
19841
+ // }
19842
+ // },
19837
19843
  render: function render(val, record, index) {
19838
19844
  return record.canEdit && !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.InputNumber, {
19839
19845
  style: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/basic-components",
3
- "version": "2.2.13-beta.51",
3
+ "version": "2.2.13-beta.52",
4
4
  "description": "> TODO: description",
5
5
  "homepage": "",
6
6
  "license": "ISC",
@@ -66,5 +66,5 @@
66
66
  "publishConfig": {
67
67
  "access": "public"
68
68
  },
69
- "gitHead": "b3b690348bd329c23e4b27923237ea56215fb710"
69
+ "gitHead": "7650ec2b78b773d91d6c015af5d41821383c4487"
70
70
  }