@bit-sun/business-component 4.0.13-alpha.1 → 4.0.13-alpha.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bit-sun/business-component",
3
- "version": "4.0.13-alpha.1",
3
+ "version": "4.0.13-alpha.2",
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',
@@ -741,6 +741,7 @@ class DataValidation extends React.Component {
741
741
  >
742
742
  <ExclamationCircleOutlined />
743
743
  </Tooltip>
744
+ <div style={{color: 'red'}}>(鼠标移入感叹号图标查看导入使用说明)</div>
744
745
  </Space>
745
746
  <Space>
746
747
  {!notExcelImport && (
@@ -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"