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

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: '选择商店',
@@ -12730,7 +12753,7 @@ function commonFun(type, prefixUrl, parentProps) {
12730
12753
  name: 'qp-email-like',
12731
12754
  label: '邮箱'
12732
12755
  }, {
12733
- name: 'qp-officeTelephone-like',
12756
+ name: 'qp-phone-like',
12734
12757
  label: '手机号'
12735
12758
  }]);
12736
12759
  var _queryHeaderParams14 = getQueryHeadersList({
@@ -12790,7 +12813,7 @@ function commonFun(type, prefixUrl, parentProps) {
12790
12813
  dataIndex: 'email'
12791
12814
  }, {
12792
12815
  title: '手机号',
12793
- dataIndex: 'officeTelephone',
12816
+ dataIndex: 'phone',
12794
12817
  defaultSort: 4,
12795
12818
  render: function render(text, record) {
12796
12819
  return handleTextOverflow(text || (record === null || record === void 0 ? void 0 : record.phone));
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: '选择商店',
@@ -12753,7 +12776,7 @@ function commonFun(type, prefixUrl, parentProps) {
12753
12776
  name: 'qp-email-like',
12754
12777
  label: '邮箱'
12755
12778
  }, {
12756
- name: 'qp-officeTelephone-like',
12779
+ name: 'qp-phone-like',
12757
12780
  label: '手机号'
12758
12781
  }]);
12759
12782
  var _queryHeaderParams14 = getQueryHeadersList({
@@ -12813,7 +12836,7 @@ function commonFun(type, prefixUrl, parentProps) {
12813
12836
  dataIndex: 'email'
12814
12837
  }, {
12815
12838
  title: '手机号',
12816
- dataIndex: 'officeTelephone',
12839
+ dataIndex: 'phone',
12817
12840
  defaultSort: 4,
12818
12841
  render: function render(text, record) {
12819
12842
  return handleTextOverflow(text || (record === null || record === void 0 ? void 0 : record.phone));
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.16",
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: '选择商店',
@@ -2497,7 +2521,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
2497
2521
  } },
2498
2522
  ...(modalTableBusProps?.needTypeSearch?[{ name: 'qp-employmentType-eq', type: 'select', label: '员工类型', initialSource: employeeType }]:[]),
2499
2523
  { name: 'qp-email-like', label: '邮箱' },
2500
- { name: 'qp-officeTelephone-like', label: '手机号' },
2524
+ { name: 'qp-phone-like', label: '手机号' },
2501
2525
  ]
2502
2526
  const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
2503
2527
  Promise.all([
@@ -2550,7 +2574,7 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
2550
2574
  },
2551
2575
  {
2552
2576
  title: '手机号',
2553
- dataIndex: 'officeTelephone',
2577
+ dataIndex: 'phone',
2554
2578
  defaultSort: 4,
2555
2579
  render: (text: any, record: any) => handleTextOverflow(text||record?.phone),
2556
2580
  },