@bit-sun/business-component 4.0.13-alpha.26 → 4.0.13-alpha.28

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.26",
3
+ "version": "4.0.13-alpha.28",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",
@@ -368,12 +368,12 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
368
368
  },
369
369
  }
370
370
  } },
371
- { name: 'qp-eancode-in', label: '商品条码', field: {
372
- type: 'multipleQueryInput',
373
- props: {
374
- ...(requestConfigProp?.itemEancodeValueRequestConfig || {}),
375
- },
376
- }},
371
+ // { name: 'qp-eancode-in', label: '商品条码', field: {
372
+ // type: 'multipleQueryInput',
373
+ // props: {
374
+ // ...(requestConfigProp?.itemEancodeValueRequestConfig || {}),
375
+ // },
376
+ // }},
377
377
  { name: 'qp-brandId-in', type: 'select', label: '品牌', field: {
378
378
  type: 'select',
379
379
  props: {
@@ -421,8 +421,8 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
421
421
  currentPage: 1,
422
422
  }),
423
423
  ]).then((x: any)=>{
424
- formatSource(x,0, 4, tableSearchForm,['id','name'])
425
- formatTreeDataSource(x,1, 5, tableSearchForm)
424
+ formatSource(x,0, 3, tableSearchForm,['id','name'])
425
+ formatTreeDataSource(x,1, 4, tableSearchForm)
426
426
  })
427
427
  modalTableProps = {
428
428
  modalTableTitle: '选择SKU',
@@ -89,7 +89,7 @@ const AddSelect = (props: any) => {
89
89
  isAllowRepeatedSelect = false,
90
90
  clearTitle
91
91
  } = props;
92
- const { url, otherParams, isMap, mappingValueField = 'code' } = requestConfig || {};
92
+ const { url, sourceKey, otherParams, isMap, mappingValueField = 'code' } = requestConfig || {};
93
93
  const realButtonProps = {type: "primary", ...buttonProps};
94
94
  const selectRowKey = isAllowRepeatedSelect ? 'uuid' : mappingValueField
95
95
 
@@ -537,7 +537,7 @@ const AddSelect = (props: any) => {
537
537
  };
538
538
  });
539
539
  } else {
540
- const keys = res.list ? 'list' : 'items';
540
+ const keys = sourceKey ? sourceKey :res.list ? 'list' : 'items';
541
541
  source = res
542
542
  ? res[keys]
543
543
  ? res[keys].map((item: any) => {