@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/dist/index.esm.js +468 -420
- package/dist/index.js +469 -421
- package/package.json +1 -1
- package/src/components/Business/SearchSelect/BusinessUtils.tsx +9 -4
- package/src/components/Functional/DataValidation/index.tsx +1 -0
- package/src/components/Functional/QueryMutipleSelect/index.tsx +2 -5
- package/src/components/Functional/SearchSelect/utils.tsx +0 -1
package/package.json
CHANGED
|
@@ -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',
|
|
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',
|
|
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
|
-
|
|
51
|
-
|
|
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
|
|