@bit-sun/business-component 4.0.12-alpha.29 → 4.0.12-alpha.30

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
@@ -4432,7 +4432,6 @@ var maxTagPlaceholder = function maxTagPlaceholder(selectedValues, _ref3) {
4432
4432
  onChange(newValue);
4433
4433
  };
4434
4434
  return /*#__PURE__*/React$1.createElement(Tooltip, {
4435
- open: true,
4436
4435
  overlayClassName: 'searchSelectMaxTagToolTip',
4437
4436
  destroyTooltipOnHide: true,
4438
4437
  placement: "topRight",
@@ -4539,10 +4538,8 @@ var QueryMutipleSearchSelect = function QueryMutipleSearchSelect(_ref) {
4539
4538
  uniqueValue = _useState16[0],
4540
4539
  setUniqueValue = _useState16[1];
4541
4540
  useEffect(function () {
4542
- if (value) {
4543
- setPopValue(value);
4544
- onValueChange(value);
4545
- }
4541
+ setPopValue(value);
4542
+ onValueChange(value);
4546
4543
  }, [value]);
4547
4544
  useEffect(function () {
4548
4545
  setUniqueValue(makeUniqueValue());
@@ -4563,7 +4560,6 @@ var QueryMutipleSearchSelect = function QueryMutipleSearchSelect(_ref) {
4563
4560
  var formatValue = (_ToCDB = ToCDB$1(v)) === null || _ToCDB === void 0 ? void 0 : (_ToCDB$split = _ToCDB.split(/[/\n/\s,;]/)) === null || _ToCDB$split === void 0 ? void 0 : (_ToCDB$split$filter = _ToCDB$split.filter(function (item) {
4564
4561
  return item;
4565
4562
  })) === null || _ToCDB$split$filter === void 0 ? void 0 : _ToCDB$split$filter.join(',');
4566
- console.log(formatValue, '1111formatValue');
4567
4563
  setValue(formatValue);
4568
4564
  };
4569
4565
  var handleCancel = function handleCancel() {
@@ -9836,16 +9832,19 @@ function commonFun(type, prefixUrl, parentProps) {
9836
9832
  type: 'multipleQuerySearchSelect',
9837
9833
  props: {
9838
9834
  selectProps: {
9839
- mode: "multiple"
9835
+ mode: "multiple",
9836
+ placeholder: '请输入SKU编码查询'
9840
9837
  },
9841
9838
  requestConfig: {
9842
9839
  url: '/items/sku//listNoPage/Simple',
9843
- filter: 'qp-name-like',
9844
- // filter: 'qp-itemCode,name-orGroup,like',
9840
+ filter: 'qp-skuCode,name-orGroup,like',
9845
9841
  mappingTextField: 'name',
9846
9842
  mappingValueField: 'skuCode',
9847
9843
  sourceName: 'qp-skuCode-in',
9848
- specialBracket: true
9844
+ specialBracket: true,
9845
+ otherParams: {
9846
+ 'ownOrgSign': getCurrentTargetBgId()
9847
+ } // 默认参数
9849
9848
  }
9850
9849
  }
9851
9850
  }
@@ -9858,10 +9857,12 @@ function commonFun(type, prefixUrl, parentProps) {
9858
9857
  field: {
9859
9858
  type: 'multipleQuerySearchSelect',
9860
9859
  props: {
9860
+ selectProps: {
9861
+ placeholder: '请输入SPU编码查询'
9862
+ },
9861
9863
  requestConfig: {
9862
9864
  url: '/items/item/listNoPage/Simple',
9863
- filter: 'qp-name-like',
9864
- // filter: 'qp-skuCode,name-orGroup,like',
9865
+ filter: 'qp-itemCode,name-orGroup,like',
9865
9866
  mappingTextField: 'name',
9866
9867
  mappingValueField: 'itemCode',
9867
9868
  sourceName: 'qp-itemCode-in',
package/dist/index.js CHANGED
@@ -4455,7 +4455,6 @@ var maxTagPlaceholder = function maxTagPlaceholder(selectedValues, _ref3) {
4455
4455
  onChange(newValue);
4456
4456
  };
4457
4457
  return /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
4458
- open: true,
4459
4458
  overlayClassName: 'searchSelectMaxTagToolTip',
4460
4459
  destroyTooltipOnHide: true,
4461
4460
  placement: "topRight",
@@ -4562,10 +4561,8 @@ var QueryMutipleSearchSelect = function QueryMutipleSearchSelect(_ref) {
4562
4561
  uniqueValue = _useState16[0],
4563
4562
  setUniqueValue = _useState16[1];
4564
4563
  React$1.useEffect(function () {
4565
- if (value) {
4566
- setPopValue(value);
4567
- onValueChange(value);
4568
- }
4564
+ setPopValue(value);
4565
+ onValueChange(value);
4569
4566
  }, [value]);
4570
4567
  React$1.useEffect(function () {
4571
4568
  setUniqueValue(makeUniqueValue());
@@ -4586,7 +4583,6 @@ var QueryMutipleSearchSelect = function QueryMutipleSearchSelect(_ref) {
4586
4583
  var formatValue = (_ToCDB = ToCDB$1(v)) === null || _ToCDB === void 0 ? void 0 : (_ToCDB$split = _ToCDB.split(/[/\n/\s,;]/)) === null || _ToCDB$split === void 0 ? void 0 : (_ToCDB$split$filter = _ToCDB$split.filter(function (item) {
4587
4584
  return item;
4588
4585
  })) === null || _ToCDB$split$filter === void 0 ? void 0 : _ToCDB$split$filter.join(',');
4589
- console.log(formatValue, '1111formatValue');
4590
4586
  setValue(formatValue);
4591
4587
  };
4592
4588
  var handleCancel = function handleCancel() {
@@ -9859,16 +9855,19 @@ function commonFun(type, prefixUrl, parentProps) {
9859
9855
  type: 'multipleQuerySearchSelect',
9860
9856
  props: {
9861
9857
  selectProps: {
9862
- mode: "multiple"
9858
+ mode: "multiple",
9859
+ placeholder: '请输入SKU编码查询'
9863
9860
  },
9864
9861
  requestConfig: {
9865
9862
  url: '/items/sku//listNoPage/Simple',
9866
- filter: 'qp-name-like',
9867
- // filter: 'qp-itemCode,name-orGroup,like',
9863
+ filter: 'qp-skuCode,name-orGroup,like',
9868
9864
  mappingTextField: 'name',
9869
9865
  mappingValueField: 'skuCode',
9870
9866
  sourceName: 'qp-skuCode-in',
9871
- specialBracket: true
9867
+ specialBracket: true,
9868
+ otherParams: {
9869
+ 'ownOrgSign': getCurrentTargetBgId()
9870
+ } // 默认参数
9872
9871
  }
9873
9872
  }
9874
9873
  }
@@ -9881,10 +9880,12 @@ function commonFun(type, prefixUrl, parentProps) {
9881
9880
  field: {
9882
9881
  type: 'multipleQuerySearchSelect',
9883
9882
  props: {
9883
+ selectProps: {
9884
+ placeholder: '请输入SPU编码查询'
9885
+ },
9884
9886
  requestConfig: {
9885
9887
  url: '/items/item/listNoPage/Simple',
9886
- filter: 'qp-name-like',
9887
- // filter: 'qp-skuCode,name-orGroup,like',
9888
+ filter: 'qp-itemCode,name-orGroup,like',
9888
9889
  mappingTextField: 'name',
9889
9890
  mappingValueField: 'itemCode',
9890
9891
  sourceName: 'qp-itemCode-in',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bit-sun/business-component",
3
- "version": "4.0.12-alpha.29",
3
+ "version": "4.0.12-alpha.30",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",
@@ -331,15 +331,18 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
331
331
  props: {
332
332
  selectProps: {
333
333
  mode: "multiple",
334
+ placeholder: '请输入SKU编码查询'
334
335
  },
335
336
  requestConfig: {
336
337
  url: '/items/sku//listNoPage/Simple',
337
- filter: 'qp-name-like', // qp-skuCode-like
338
- // filter: 'qp-itemCode,name-orGroup,like',
338
+ filter: 'qp-skuCode,name-orGroup,like',
339
339
  mappingTextField: 'name',
340
340
  mappingValueField: 'skuCode',
341
341
  sourceName: 'qp-skuCode-in',
342
342
  specialBracket: true,
343
+ otherParams: {
344
+ 'ownOrgSign': getCurrentTargetBgId(),
345
+ }, // 默认参数
343
346
  },
344
347
  }
345
348
  } },
@@ -347,10 +350,12 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
347
350
  { name: 'qp-itemCode-in', label: 'SPU编码', field: {
348
351
  type:'multipleQuerySearchSelect',
349
352
  props: {
353
+ selectProps: {
354
+ placeholder: '请输入SPU编码查询'
355
+ },
350
356
  requestConfig: {
351
357
  url: '/items/item/listNoPage/Simple',
352
- filter: 'qp-name-like', // qp-itemCode-like
353
- // filter: 'qp-skuCode,name-orGroup,like',
358
+ filter: 'qp-itemCode,name-orGroup,like',
354
359
  mappingTextField: 'name',
355
360
  mappingValueField: 'itemCode',
356
361
  sourceName: 'qp-itemCode-in',
@@ -47,10 +47,8 @@ const QueryMutipleSearchSelect = ({ onValueChange, requestConfig={}, selectProps
47
47
  const [uniqueValue, setUniqueValue] = useState(resultSourceKey);
48
48
 
49
49
  useEffect(() => {
50
- if(value) {
51
- setPopValue(value);
52
- onValueChange(value);
53
- }
50
+ setPopValue(value);
51
+ onValueChange(value);
54
52
  }, [value]);
55
53
 
56
54
  useEffect(() => {
@@ -73,7 +71,6 @@ const QueryMutipleSearchSelect = ({ onValueChange, requestConfig={}, selectProps
73
71
  ?.split(/[/\n/\s,;]/)
74
72
  ?.filter((item) => item)
75
73
  ?.join(',');
76
- console.log(formatValue,'1111formatValue')
77
74
  setValue(formatValue);
78
75
  };
79
76
 
@@ -366,7 +366,6 @@ export const maxTagPlaceholder = (selectedValues: any, { selectProps, onChange,
366
366
  }
367
367
  return (
368
368
  <Tooltip
369
- open={true}
370
369
  overlayClassName='searchSelectMaxTagToolTip'
371
370
  destroyTooltipOnHide
372
371
  placement="topRight"