@bit-sun/business-component 2.2.46 → 2.2.47

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
@@ -1,5 +1,5 @@
1
1
  import axios from 'axios';
2
- import { message, Menu, Space, Dropdown, Tooltip, Button, Checkbox, Input, Modal, Select, Form, Divider, Spin, Table, TreeSelect, Tag, Image, Popover, Card, Avatar, InputNumber, Typography, Alert, Anchor, Breadcrumb, Drawer as Drawer$1, List, Tree, Row, Col, Tabs, Affix } from 'antd';
2
+ import { message, Menu, Space, Dropdown, Tooltip, Button, Checkbox, Input, Modal, Select, Form, Divider, Spin, Table, TreeSelect, Tag, Popover, Card, Avatar, Image, InputNumber, Typography, Alert, Anchor, Breadcrumb, Drawer as Drawer$1, List, Tree, Row, Col, Tabs, Affix } from 'antd';
3
3
  import _, { omit, debounce, cloneDeep as cloneDeep$1, throttle, isEmpty } from 'lodash';
4
4
  import React, { useState, useEffect, forwardRef, useImperativeHandle, useRef, useMemo, Component, useLayoutEffect, createRef } from 'react';
5
5
  import { DragDropContext, Droppable, Draggable } from 'react-beautiful-dnd';
@@ -2075,8 +2075,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
2075
2075
  needModalTable = _props$needModalTable === void 0 ? true : _props$needModalTable,
2076
2076
  _props$getPopupContai = props.getPopupContainer,
2077
2077
  _getPopupContainer = _props$getPopupContai === void 0 ? undefined : _props$getPopupContai,
2078
- fieldComponent = props.fieldComponent,
2079
- selectBusinessType = props.selectBusinessType;
2078
+ fieldComponent = props.fieldComponent;
2080
2079
  var _ref = requestConfig || {},
2081
2080
  url = _ref.url,
2082
2081
  otherParams = _ref.otherParams,
@@ -2482,13 +2481,6 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
2482
2481
  useEffect(function () {
2483
2482
  makeUniqueValue();
2484
2483
  }, [resultSourceKey]);
2485
- useEffect(function () {
2486
- if (init) {
2487
- setItems([]);
2488
- setItemsTotal(0);
2489
- run('init');
2490
- }
2491
- }, [selectBusinessType]);
2492
2484
  var showModal = function showModal() {
2493
2485
  getData({
2494
2486
  pageSize: tableInitPageSize,
@@ -10680,8 +10672,8 @@ var AddSelect = function AddSelect(props) {
10680
10672
  pageSize: 5000,
10681
10673
  currentPage: 1
10682
10674
  })]).then(function (x) {
10683
- formatSource(x, 0, 3, tableSearchForm, ['id', 'name']);
10684
- formatTreeDataSource(x, 1, 4, tableSearchForm);
10675
+ formatSource(x, 0, 2, tableSearchForm, ['id', 'name']);
10676
+ formatTreeDataSource(x, 1, 3, tableSearchForm);
10685
10677
  });
10686
10678
  }
10687
10679
  if (businessType == 'skc') {
@@ -14231,7 +14223,7 @@ var BusinessSearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
14231
14223
  needModalTable: needModalTable,
14232
14224
  modalTableProps: modalTableProps
14233
14225
  });
14234
- }, [props === null || props === void 0 ? void 0 : props.value, props.disabled, props.selectBusinessType]);
14226
+ }, [props === null || props === void 0 ? void 0 : props.value, props.disabled]);
14235
14227
  useImperativeHandle(ref, function () {
14236
14228
  return {
14237
14229
  getRef: function getRef() {
@@ -14253,13 +14245,9 @@ var BusinessSearchSelect$1 = /*#__PURE__*/React.memo(BusinessSearchSelect, funct
14253
14245
  if (props && props.disabled !== nextProps.disabled) {
14254
14246
  return false;
14255
14247
  }
14256
- if (props && props.selectBusinessType !== nextProps.selectBusinessType) {
14257
- return false;
14258
- }
14259
14248
  return true;
14260
14249
  });
14261
14250
 
14262
- // import { getCurrentTargetBgId } from '@/utils/LocalstorageUtils';
14263
14251
  function handleSelectColumn(c, parentProps) {
14264
14252
  var result = c;
14265
14253
  var exceptColumns = (parentProps === null || parentProps === void 0 ? void 0 : parentProps.exceptColumns) || [];
@@ -14271,7 +14259,7 @@ function handleSelectColumn(c, parentProps) {
14271
14259
  return !exceptColumns.includes(i.dataIndex);
14272
14260
  });
14273
14261
  }
14274
- // 追加(最好不用这个,当组件不固定时候会有影响)
14262
+ // 追加
14275
14263
  if (additionColumns === null || additionColumns === void 0 ? void 0 : additionColumns.length) {
14276
14264
  additionColumns.forEach(function (i) {
14277
14265
  result.splice(i.position, 0, i.column);
@@ -14284,7 +14272,6 @@ function handleSelectColumn(c, parentProps) {
14284
14272
  return result;
14285
14273
  }
14286
14274
  var AddSkuSelect = function AddSkuSelect(parProps) {
14287
- var _parProps$requestConf, _parProps$requestConf2;
14288
14275
  var selectProps = {
14289
14276
  mode: 'multiple'
14290
14277
  };
@@ -14297,19 +14284,6 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
14297
14284
  title: 'SKU编码',
14298
14285
  width: 150,
14299
14286
  dataIndex: 'skuCode'
14300
- }, {
14301
- title: '商品条码',
14302
- width: 100,
14303
- ellipsis: {
14304
- showTitle: false
14305
- },
14306
- dataIndex: 'itemEancode',
14307
- render: function render(text) {
14308
- return /*#__PURE__*/React.createElement(Tooltip, {
14309
- placement: "topLeft",
14310
- title: text
14311
- }, text);
14312
- }
14313
14287
  }, {
14314
14288
  title: 'SKU名称',
14315
14289
  width: 200,
@@ -14397,11 +14371,11 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
14397
14371
  requestConfig: _objectSpread2({
14398
14372
  url: "/items/sku/pager/v2",
14399
14373
  filter: 'qp-name-like',
14400
- otherParams: _objectSpread2({
14374
+ otherParams: {
14401
14375
  'qp-combination-eq': false,
14402
14376
  'qp-approveStatus-eq': 1,
14403
14377
  'qp-status-eq': 1
14404
- }, (parProps === null || parProps === void 0 ? void 0 : (_parProps$requestConf = parProps.requestConfig) === null || _parProps$requestConf === void 0 ? void 0 : _parProps$requestConf.addOtherParams) || {}),
14378
+ },
14405
14379
  mappingTextField: 'name',
14406
14380
  mappingValueField: 'skuCode'
14407
14381
  }, parProps.requestConfig),
@@ -14423,13 +14397,6 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
14423
14397
  }, {
14424
14398
  name: 'qp-skuName-like',
14425
14399
  label: 'SKU名称'
14426
- }, {
14427
- name: 'qp-code-in',
14428
- label: '商品条码',
14429
- field: {
14430
- type: 'multipleQueryInput',
14431
- props: _objectSpread2({}, ((_parProps$requestConf2 = parProps.requestConfig) === null || _parProps$requestConf2 === void 0 ? void 0 : _parProps$requestConf2.itemEancodeValueRequestConfig) || {})
14432
- }
14433
14400
  }, {
14434
14401
  name: 'qp-brandId-in',
14435
14402
  type: 'select',
@@ -14510,12 +14477,12 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
14510
14477
  }));
14511
14478
  }
14512
14479
  }, {
14513
- title: '商品条码',
14480
+ title: '国际条码',
14514
14481
  width: 100,
14515
14482
  ellipsis: {
14516
14483
  showTitle: false
14517
14484
  },
14518
- dataIndex: 'itemEancode',
14485
+ dataIndex: 'barCode',
14519
14486
  render: function render(text) {
14520
14487
  return /*#__PURE__*/React.createElement(Tooltip, {
14521
14488
  placement: "topLeft",
@@ -14621,7 +14588,6 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
14621
14588
  })));
14622
14589
  };
14623
14590
  var AddSkcSelect = function AddSkcSelect(parProps) {
14624
- var _parProps$requestConf3;
14625
14591
  var selectProps = {
14626
14592
  mode: 'multiple'
14627
14593
  };
@@ -14699,9 +14665,9 @@ var AddSkcSelect = function AddSkcSelect(parProps) {
14699
14665
  requestConfig: _objectSpread2({
14700
14666
  url: "/items/skc/skcSelect",
14701
14667
  filter: 'qp-name-like',
14702
- otherParams: _objectSpread2({
14668
+ otherParams: {
14703
14669
  'qp-skcStatus-eq': 1
14704
- }, (parProps === null || parProps === void 0 ? void 0 : (_parProps$requestConf3 = parProps.requestConfig) === null || _parProps$requestConf3 === void 0 ? void 0 : _parProps$requestConf3.addOtherParams) || {}),
14670
+ },
14705
14671
  mappingTextField: 'name',
14706
14672
  mappingValueField: 'code'
14707
14673
  }, parProps.requestConfig),
@@ -14901,7 +14867,6 @@ var AddSkcSelect = function AddSkcSelect(parProps) {
14901
14867
  })));
14902
14868
  };
14903
14869
  var AddSpuSelect = function AddSpuSelect(parProps) {
14904
- var _parProps$requestConf4;
14905
14870
  var selectProps = {
14906
14871
  mode: 'multiple'
14907
14872
  };
@@ -14988,11 +14953,11 @@ var AddSpuSelect = function AddSpuSelect(parProps) {
14988
14953
  requestConfig: _objectSpread2({
14989
14954
  url: "/items/item",
14990
14955
  filter: 'qp-itemCode,name-orGroup,like',
14991
- otherParams: _objectSpread2({
14956
+ otherParams: {
14992
14957
  'qp-approveStatus-eq': 1,
14993
14958
  'qp-status-eq': 1,
14994
14959
  sorter: 'desc-id'
14995
- }, (parProps === null || parProps === void 0 ? void 0 : (_parProps$requestConf4 = parProps.requestConfig) === null || _parProps$requestConf4 === void 0 ? void 0 : _parProps$requestConf4.addOtherParams) || {}),
14960
+ },
14996
14961
  mappingTextField: 'name',
14997
14962
  mappingValueField: 'itemCode'
14998
14963
  }, parProps.requestConfig),
package/dist/index.js CHANGED
@@ -2093,8 +2093,7 @@ var SearchSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
2093
2093
  needModalTable = _props$needModalTable === void 0 ? true : _props$needModalTable,
2094
2094
  _props$getPopupContai = props.getPopupContainer,
2095
2095
  _getPopupContainer = _props$getPopupContai === void 0 ? undefined : _props$getPopupContai,
2096
- fieldComponent = props.fieldComponent,
2097
- selectBusinessType = props.selectBusinessType;
2096
+ fieldComponent = props.fieldComponent;
2098
2097
  var _ref = requestConfig || {},
2099
2098
  url = _ref.url,
2100
2099
  otherParams = _ref.otherParams,
@@ -2500,13 +2499,6 @@ var SearchSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
2500
2499
  React.useEffect(function () {
2501
2500
  makeUniqueValue();
2502
2501
  }, [resultSourceKey]);
2503
- React.useEffect(function () {
2504
- if (init) {
2505
- setItems([]);
2506
- setItemsTotal(0);
2507
- run('init');
2508
- }
2509
- }, [selectBusinessType]);
2510
2502
  var showModal = function showModal() {
2511
2503
  getData({
2512
2504
  pageSize: tableInitPageSize,
@@ -10698,8 +10690,8 @@ var AddSelect = function AddSelect(props) {
10698
10690
  pageSize: 5000,
10699
10691
  currentPage: 1
10700
10692
  })]).then(function (x) {
10701
- formatSource(x, 0, 3, tableSearchForm, ['id', 'name']);
10702
- formatTreeDataSource(x, 1, 4, tableSearchForm);
10693
+ formatSource(x, 0, 2, tableSearchForm, ['id', 'name']);
10694
+ formatTreeDataSource(x, 1, 3, tableSearchForm);
10703
10695
  });
10704
10696
  }
10705
10697
  if (businessType == 'skc') {
@@ -14249,7 +14241,7 @@ var BusinessSearchSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
14249
14241
  needModalTable: needModalTable,
14250
14242
  modalTableProps: modalTableProps
14251
14243
  });
14252
- }, [props === null || props === void 0 ? void 0 : props.value, props.disabled, props.selectBusinessType]);
14244
+ }, [props === null || props === void 0 ? void 0 : props.value, props.disabled]);
14253
14245
  React.useImperativeHandle(ref, function () {
14254
14246
  return {
14255
14247
  getRef: function getRef() {
@@ -14271,13 +14263,9 @@ var BusinessSearchSelect$1 = /*#__PURE__*/React__default['default'].memo(Busines
14271
14263
  if (props && props.disabled !== nextProps.disabled) {
14272
14264
  return false;
14273
14265
  }
14274
- if (props && props.selectBusinessType !== nextProps.selectBusinessType) {
14275
- return false;
14276
- }
14277
14266
  return true;
14278
14267
  });
14279
14268
 
14280
- // import { getCurrentTargetBgId } from '@/utils/LocalstorageUtils';
14281
14269
  function handleSelectColumn(c, parentProps) {
14282
14270
  var result = c;
14283
14271
  var exceptColumns = (parentProps === null || parentProps === void 0 ? void 0 : parentProps.exceptColumns) || [];
@@ -14289,7 +14277,7 @@ function handleSelectColumn(c, parentProps) {
14289
14277
  return !exceptColumns.includes(i.dataIndex);
14290
14278
  });
14291
14279
  }
14292
- // 追加(最好不用这个,当组件不固定时候会有影响)
14280
+ // 追加
14293
14281
  if (additionColumns === null || additionColumns === void 0 ? void 0 : additionColumns.length) {
14294
14282
  additionColumns.forEach(function (i) {
14295
14283
  result.splice(i.position, 0, i.column);
@@ -14302,7 +14290,6 @@ function handleSelectColumn(c, parentProps) {
14302
14290
  return result;
14303
14291
  }
14304
14292
  var AddSkuSelect = function AddSkuSelect(parProps) {
14305
- var _parProps$requestConf, _parProps$requestConf2;
14306
14293
  var selectProps = {
14307
14294
  mode: 'multiple'
14308
14295
  };
@@ -14315,19 +14302,6 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
14315
14302
  title: 'SKU编码',
14316
14303
  width: 150,
14317
14304
  dataIndex: 'skuCode'
14318
- }, {
14319
- title: '商品条码',
14320
- width: 100,
14321
- ellipsis: {
14322
- showTitle: false
14323
- },
14324
- dataIndex: 'itemEancode',
14325
- render: function render(text) {
14326
- return /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
14327
- placement: "topLeft",
14328
- title: text
14329
- }, text);
14330
- }
14331
14305
  }, {
14332
14306
  title: 'SKU名称',
14333
14307
  width: 200,
@@ -14415,11 +14389,11 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
14415
14389
  requestConfig: _objectSpread2({
14416
14390
  url: "/items/sku/pager/v2",
14417
14391
  filter: 'qp-name-like',
14418
- otherParams: _objectSpread2({
14392
+ otherParams: {
14419
14393
  'qp-combination-eq': false,
14420
14394
  'qp-approveStatus-eq': 1,
14421
14395
  'qp-status-eq': 1
14422
- }, (parProps === null || parProps === void 0 ? void 0 : (_parProps$requestConf = parProps.requestConfig) === null || _parProps$requestConf === void 0 ? void 0 : _parProps$requestConf.addOtherParams) || {}),
14396
+ },
14423
14397
  mappingTextField: 'name',
14424
14398
  mappingValueField: 'skuCode'
14425
14399
  }, parProps.requestConfig),
@@ -14441,13 +14415,6 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
14441
14415
  }, {
14442
14416
  name: 'qp-skuName-like',
14443
14417
  label: 'SKU名称'
14444
- }, {
14445
- name: 'qp-code-in',
14446
- label: '商品条码',
14447
- field: {
14448
- type: 'multipleQueryInput',
14449
- props: _objectSpread2({}, ((_parProps$requestConf2 = parProps.requestConfig) === null || _parProps$requestConf2 === void 0 ? void 0 : _parProps$requestConf2.itemEancodeValueRequestConfig) || {})
14450
- }
14451
14418
  }, {
14452
14419
  name: 'qp-brandId-in',
14453
14420
  type: 'select',
@@ -14528,12 +14495,12 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
14528
14495
  }));
14529
14496
  }
14530
14497
  }, {
14531
- title: '商品条码',
14498
+ title: '国际条码',
14532
14499
  width: 100,
14533
14500
  ellipsis: {
14534
14501
  showTitle: false
14535
14502
  },
14536
- dataIndex: 'itemEancode',
14503
+ dataIndex: 'barCode',
14537
14504
  render: function render(text) {
14538
14505
  return /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
14539
14506
  placement: "topLeft",
@@ -14639,7 +14606,6 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
14639
14606
  })));
14640
14607
  };
14641
14608
  var AddSkcSelect = function AddSkcSelect(parProps) {
14642
- var _parProps$requestConf3;
14643
14609
  var selectProps = {
14644
14610
  mode: 'multiple'
14645
14611
  };
@@ -14717,9 +14683,9 @@ var AddSkcSelect = function AddSkcSelect(parProps) {
14717
14683
  requestConfig: _objectSpread2({
14718
14684
  url: "/items/skc/skcSelect",
14719
14685
  filter: 'qp-name-like',
14720
- otherParams: _objectSpread2({
14686
+ otherParams: {
14721
14687
  'qp-skcStatus-eq': 1
14722
- }, (parProps === null || parProps === void 0 ? void 0 : (_parProps$requestConf3 = parProps.requestConfig) === null || _parProps$requestConf3 === void 0 ? void 0 : _parProps$requestConf3.addOtherParams) || {}),
14688
+ },
14723
14689
  mappingTextField: 'name',
14724
14690
  mappingValueField: 'code'
14725
14691
  }, parProps.requestConfig),
@@ -14919,7 +14885,6 @@ var AddSkcSelect = function AddSkcSelect(parProps) {
14919
14885
  })));
14920
14886
  };
14921
14887
  var AddSpuSelect = function AddSpuSelect(parProps) {
14922
- var _parProps$requestConf4;
14923
14888
  var selectProps = {
14924
14889
  mode: 'multiple'
14925
14890
  };
@@ -15006,11 +14971,11 @@ var AddSpuSelect = function AddSpuSelect(parProps) {
15006
14971
  requestConfig: _objectSpread2({
15007
14972
  url: "/items/item",
15008
14973
  filter: 'qp-itemCode,name-orGroup,like',
15009
- otherParams: _objectSpread2({
14974
+ otherParams: {
15010
14975
  'qp-approveStatus-eq': 1,
15011
14976
  'qp-status-eq': 1,
15012
14977
  sorter: 'desc-id'
15013
- }, (parProps === null || parProps === void 0 ? void 0 : (_parProps$requestConf4 = parProps.requestConfig) === null || _parProps$requestConf4 === void 0 ? void 0 : _parProps$requestConf4.addOtherParams) || {}),
14978
+ },
15014
14979
  mappingTextField: 'name',
15015
14980
  mappingValueField: 'itemCode'
15016
14981
  }, parProps.requestConfig),
@@ -14,4 +14,3 @@ export declare function getUserId(): any;
14
14
  export declare function getAccountID(): any;
15
15
  export declare function getUserName(): any;
16
16
  export declare function handleUserPhone(): any;
17
- export declare function getCurrentTargetBgId(): string | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bit-sun/business-component",
3
- "version": "2.2.46",
3
+ "version": "2.2.47",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",
@@ -11,7 +11,6 @@ import axios from 'axios';
11
11
  import { AddSelect } from '../../../index';
12
12
  import { tableColumnsImage } from '@/components/Business/BsSulaQueryTable/utils';
13
13
  import { getSkuImg } from '@/utils/TableUtils';
14
- // import { getCurrentTargetBgId } from '@/utils/LocalstorageUtils';
15
14
 
16
15
  function handleSelectColumn(c: any, parentProps: any) {
17
16
  let result = c;
@@ -22,7 +21,7 @@ function handleSelectColumn(c: any, parentProps: any) {
22
21
  if(exceptColumns?.length) {
23
22
  result = result.filter((i: any) => !exceptColumns.includes(i.dataIndex))
24
23
  }
25
- // 追加(最好不用这个,当组件不固定时候会有影响)
24
+ // 追加
26
25
  if(additionColumns?.length) {
27
26
  additionColumns.forEach((i: any) => {
28
27
  result.splice(i.position,0,i.column)
@@ -47,19 +46,6 @@ export const AddSkuSelect = (parProps: any) => {
47
46
  width: 150,
48
47
  dataIndex: 'skuCode',
49
48
  },
50
- {
51
- title: '商品条码',
52
- width: 100,
53
- ellipsis: {
54
- showTitle: false,
55
- },
56
- dataIndex: 'itemEancode',
57
- render: (text: any) => (
58
- <Tooltip placement="topLeft" title={text}>
59
- {text}
60
- </Tooltip>
61
- ),
62
- },
63
49
  {
64
50
  title: 'SKU名称',
65
51
  width: 200,
@@ -151,8 +137,6 @@ export const AddSkuSelect = (parProps: any) => {
151
137
  'qp-combination-eq': false,
152
138
  'qp-approveStatus-eq': 1,
153
139
  'qp-status-eq': 1,
154
- // 'useOrgSign': getCurrentTargetBgId(), // 根据品牌、账号授权的组织+商品授权使用组织做权限过滤 这个交给业务使用的地方去做,传addOtherParams:{useOrgSign:单据中所选组织}
155
- ...(parProps?.requestConfig?.addOtherParams || {}), // 允许在默认参数基础上,追加/覆盖已有 参数
156
140
  }, // 默认参数
157
141
  mappingTextField: 'name',
158
142
  mappingValueField: 'skuCode',
@@ -175,12 +159,6 @@ export const AddSkuSelect = (parProps: any) => {
175
159
  name: 'qp-skuCode-like', label: 'SKU编码'
176
160
  },
177
161
  { name: 'qp-skuName-like', label: 'SKU名称' },
178
- { name: 'qp-code-in', label: '商品条码', field: {
179
- type: 'multipleQueryInput',
180
- props: {
181
- ...(parProps.requestConfig?.itemEancodeValueRequestConfig || {}),
182
- },
183
- }},
184
162
  { name: 'qp-brandId-in', type: 'select', label: '品牌', field: {
185
163
  type: 'select',
186
164
  props: {
@@ -247,12 +225,12 @@ export const AddSkuSelect = (parProps: any) => {
247
225
  ),
248
226
  },
249
227
  {
250
- title: '商品条码',
228
+ title: '国际条码',
251
229
  width: 100,
252
230
  ellipsis: {
253
231
  showTitle: false,
254
232
  },
255
- dataIndex: 'itemEancode',
233
+ dataIndex: 'barCode',
256
234
  render: (text: any) => (
257
235
  <Tooltip placement="topLeft" title={text}>
258
236
  {text}
@@ -441,10 +419,7 @@ export const AddSkcSelect = (parProps: any) => {
441
419
  requestConfig: {
442
420
  url: `/items/skc/skcSelect`,
443
421
  filter: 'qp-name-like', // 过滤参数 支持'qp-name-like'和['qp-name-like', 'qp-code-like']两种结构
444
- otherParams: {
445
- 'qp-skcStatus-eq': 1,
446
- ...(parProps?.requestConfig?.addOtherParams || {}), // 允许在默认参数基础上,追加/覆盖已有 参数
447
- }, // 默认参数
422
+ otherParams: { 'qp-skcStatus-eq': 1, }, // 默认参数
448
423
  mappingTextField: 'name',
449
424
  mappingValueField: 'code',
450
425
  ...parProps.requestConfig
@@ -718,8 +693,7 @@ export const AddSpuSelect = (parProps: any) => {
718
693
  otherParams: {
719
694
  'qp-approveStatus-eq': 1, // 审核状态(0.待审批;1.审批通过;2.驳回;3.审批未通过)
720
695
  'qp-status-eq': 1,
721
- sorter: 'desc-id',
722
- ...(parProps?.requestConfig?.addOtherParams || {}), // 允许在默认参数基础上,追加/覆盖已有 参数
696
+ sorter: 'desc-id'
723
697
  }, // 默认参数
724
698
  mappingTextField: 'name',
725
699
  mappingValueField: 'itemCode',
@@ -25,7 +25,7 @@ const BusinessSearchSelect = forwardRef((props: any, ref: any) => {
25
25
  needModalTable,
26
26
  modalTableProps
27
27
  }
28
- }, [props?.value, props.disabled, props.selectBusinessType]);
28
+ }, [props?.value, props.disabled]);
29
29
 
30
30
  useImperativeHandle(ref, () => ({
31
31
  getRef: () => innerRef,
@@ -48,8 +48,5 @@ export default React.memo(BusinessSearchSelect, (props, nextProps) => {
48
48
  if (props && props.disabled !== nextProps.disabled) {
49
49
  return false
50
50
  }
51
- if (props && props.selectBusinessType !== nextProps.selectBusinessType) {
52
- return false
53
- }
54
51
  return true
55
- });
52
+ });
@@ -677,8 +677,8 @@ const AddSelect = (props: any) => {
677
677
  currentPage: 1,
678
678
  }),
679
679
  ]).then((x: any)=>{
680
- formatSource(x,0, 3, tableSearchForm,['id','name'])
681
- formatTreeDataSource(x,1, 4, tableSearchForm)
680
+ formatSource(x,0, 2, tableSearchForm,['id','name'])
681
+ formatTreeDataSource(x,1, 3, tableSearchForm)
682
682
  })
683
683
  }
684
684
  if(businessType == 'skc') {
@@ -25,7 +25,6 @@ const SearchSelect = forwardRef((props: any, ref: any) => {
25
25
  needModalTable = true,
26
26
  getPopupContainer = undefined,
27
27
  fieldComponent,
28
- selectBusinessType,
29
28
  } = props;
30
29
  const {
31
30
  url,
@@ -389,14 +388,6 @@ const SearchSelect = forwardRef((props: any, ref: any) => {
389
388
  makeUniqueValue();
390
389
  }, [resultSourceKey])
391
390
 
392
- useEffect(() => {
393
- if (init) {
394
- setItems([]);
395
- setItemsTotal(0);
396
- run('init')
397
- }
398
- },[selectBusinessType])
399
-
400
391
  const showModal = () => {
401
392
  getData({ pageSize: tableInitPageSize, currentPage: 1 }, 3)
402
393
  setIsModalVisible(true);
@@ -88,8 +88,3 @@ export function handleUserPhone() {
88
88
  const enStr = str && str.slice(0, 3) + '****' + str.slice(str.length - 4);
89
89
  return enStr;
90
90
  }
91
-
92
- // 获取当前所选组织
93
- export function getCurrentTargetBgId() {
94
- return localStorage.getItem('target_bg_id');
95
- }