@bit-sun/business-component 4.2.0-alpha.6.14 → 4.2.0-alpha.6.15

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
@@ -12363,6 +12363,24 @@ function commonFun(type, prefixUrl, parentProps) {
12363
12363
  }
12364
12364
  },
12365
12365
  initialSource: getDictionarySource$1('BUSINESS_StoreType')
12366
+ }, {
12367
+ name: "qp-brandCode-in",
12368
+ label: "品牌",
12369
+ field: {
12370
+ type: 'select',
12371
+ props: {
12372
+ mode: 'multiple',
12373
+ notFoundContent: '暂无数据',
12374
+ allowClear: true,
12375
+ showSearch: true,
12376
+ showArrow: true,
12377
+ maxTagCount: 1,
12378
+ optionFilterProp: 'children',
12379
+ filterOption: function filterOption(input, option) {
12380
+ return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
12381
+ }
12382
+ }
12383
+ }
12366
12384
  }];
12367
12385
  var _queryHeaderParams12 = getQueryHeadersList({
12368
12386
  querySelectHeadersList: querySelectHeadersList,
@@ -12378,7 +12396,11 @@ function commonFun(type, prefixUrl, parentProps) {
12378
12396
  'qp-type-in': '1,2'
12379
12397
  }, getQueryHeadersItem(_queryHeaderParams12, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/tagNode/getTree/10"), {
12380
12398
  'qp-status-eq': 1
12381
- }, getQueryHeadersItem(_queryHeaderParams12, 'qp-orgCode-in'))]).then(function (x) {
12399
+ }, getQueryHeadersItem(_queryHeaderParams12, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/brand/queryBrandList"), {
12400
+ pageSize: 5000,
12401
+ currentPage: 1,
12402
+ 'ctl-withAuth': true
12403
+ }, getQueryHeadersItem(_queryHeaderParams12, 'ctl-withAuth'))]).then(function (x) {
12382
12404
  var channelDisabledJude = function channelDisabledJude(data) {
12383
12405
  return data['parentCode'] === '0';
12384
12406
  }; // 所属销售渠道 树节点不能点判断
@@ -12388,6 +12410,7 @@ function commonFun(type, prefixUrl, parentProps) {
12388
12410
  formatSource(x, 0, 3, tableSearchForm);
12389
12411
  formatTreeDataSource(x, 1, 4, tableSearchForm, ['code', 'name'], 'channelInfoSon', channelDisabledJude);
12390
12412
  formatTreeDataSource(x, 2, 5, tableSearchForm, ['code', 'name'], 'children', areaDisabledJude);
12413
+ formatSource(x, 3, 7, tableSearchForm, ['brandCode', 'name']);
12391
12414
  });
12392
12415
  modalTableProps = _objectSpread2({
12393
12416
  modalTableTitle: '选择商店',
package/dist/index.js CHANGED
@@ -12386,6 +12386,24 @@ function commonFun(type, prefixUrl, parentProps) {
12386
12386
  }
12387
12387
  },
12388
12388
  initialSource: getDictionarySource$1('BUSINESS_StoreType')
12389
+ }, {
12390
+ name: "qp-brandCode-in",
12391
+ label: "品牌",
12392
+ field: {
12393
+ type: 'select',
12394
+ props: {
12395
+ mode: 'multiple',
12396
+ notFoundContent: '暂无数据',
12397
+ allowClear: true,
12398
+ showSearch: true,
12399
+ showArrow: true,
12400
+ maxTagCount: 1,
12401
+ optionFilterProp: 'children',
12402
+ filterOption: function filterOption(input, option) {
12403
+ return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
12404
+ }
12405
+ }
12406
+ }
12389
12407
  }];
12390
12408
  var _queryHeaderParams12 = getQueryHeadersList({
12391
12409
  querySelectHeadersList: querySelectHeadersList,
@@ -12401,7 +12419,11 @@ function commonFun(type, prefixUrl, parentProps) {
12401
12419
  'qp-type-in': '1,2'
12402
12420
  }, getQueryHeadersItem(_queryHeaderParams12, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/tagNode/getTree/10"), {
12403
12421
  'qp-status-eq': 1
12404
- }, getQueryHeadersItem(_queryHeaderParams12, 'qp-orgCode-in'))]).then(function (x) {
12422
+ }, getQueryHeadersItem(_queryHeaderParams12, 'qp-orgCode-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/brand/queryBrandList"), {
12423
+ pageSize: 5000,
12424
+ currentPage: 1,
12425
+ 'ctl-withAuth': true
12426
+ }, getQueryHeadersItem(_queryHeaderParams12, 'ctl-withAuth'))]).then(function (x) {
12405
12427
  var channelDisabledJude = function channelDisabledJude(data) {
12406
12428
  return data['parentCode'] === '0';
12407
12429
  }; // 所属销售渠道 树节点不能点判断
@@ -12411,6 +12433,7 @@ function commonFun(type, prefixUrl, parentProps) {
12411
12433
  formatSource(x, 0, 3, tableSearchForm);
12412
12434
  formatTreeDataSource(x, 1, 4, tableSearchForm, ['code', 'name'], 'channelInfoSon', channelDisabledJude);
12413
12435
  formatTreeDataSource(x, 2, 5, tableSearchForm, ['code', 'name'], 'children', areaDisabledJude);
12436
+ formatSource(x, 3, 7, tableSearchForm, ['brandCode', 'name']);
12414
12437
  });
12415
12438
  modalTableProps = _objectSpread2({
12416
12439
  modalTableTitle: '选择商店',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bit-sun/business-component",
3
- "version": "4.2.0-alpha.6.14",
3
+ "version": "4.2.0-alpha.6.15",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",
@@ -2120,6 +2120,24 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
2120
2120
  } ,
2121
2121
  initialSource: getDictionarySource('BUSINESS_StoreType')
2122
2122
  },
2123
+ {
2124
+ name: "qp-brandCode-in",
2125
+ label: "品牌",
2126
+ field: {
2127
+ type:'select',
2128
+ props: {
2129
+ mode: 'multiple',
2130
+ notFoundContent: '暂无数据',
2131
+ allowClear: true,
2132
+ showSearch: true,
2133
+ showArrow: true,
2134
+ maxTagCount: 1,
2135
+ optionFilterProp: 'children',
2136
+ filterOption: (input: string, option: { props: { children: string } }) =>
2137
+ option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
2138
+ },
2139
+ },
2140
+ },
2123
2141
  ]
2124
2142
  const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
2125
2143
  Promise.all([
@@ -2136,12 +2154,18 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
2136
2154
  loadSelectSource(`${prefixUrl.formSelectFix}/tagNode/getTree/10`, {
2137
2155
  'qp-status-eq': 1,
2138
2156
  },getQueryHeadersItem(queryHeaderParams,'qp-orgCode-in')),
2157
+ loadSelectSource(`${prefixUrl.formSelectFix}/brand/queryBrandList`, {
2158
+ pageSize: 5000,
2159
+ currentPage: 1,
2160
+ 'ctl-withAuth': true,
2161
+ },getQueryHeadersItem(queryHeaderParams,'ctl-withAuth'))
2139
2162
  ]).then((x: any)=>{
2140
2163
  const channelDisabledJude = (data: any) => data['parentCode'] === '0'; // 所属销售渠道 树节点不能点判断
2141
2164
  const areaDisabledJude = (data: any) => data['parent'] === '0'; // 所属营销区域 树节点不能点判断
2142
2165
  formatSource(x,0, 3, tableSearchForm);
2143
2166
  formatTreeDataSource(x, 1, 4, tableSearchForm, ['code','name'], 'channelInfoSon', channelDisabledJude)
2144
2167
  formatTreeDataSource(x, 2, 5, tableSearchForm, ['code', 'name'], 'children', areaDisabledJude)
2168
+ formatSource(x,3, 7, tableSearchForm, ['brandCode', 'name']);
2145
2169
  })
2146
2170
  modalTableProps = {
2147
2171
  modalTableTitle: '选择商店',