@bit-sun/business-component 4.2.1-alpha.6-longya → 4.2.1-alpha.7-longya

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.
@@ -0,0 +1,3 @@
1
+ export declare function buildAutoCompleteOptions(list: Array<Record<string, any>> | null | undefined, mappingTextField?: string): {
2
+ value: string;
3
+ }[];
@@ -0,0 +1,23 @@
1
+ import React from 'react';
2
+ export type QueryAutoCompleteRequestConfig = {
3
+ url: string;
4
+ method?: 'get' | 'GET' | 'post' | 'POST' | 'patch' | 'PATCH' | 'put' | 'PUT';
5
+ otherParams?: Record<string, any>;
6
+ mappingTextField?: string;
7
+ pageSize?: number;
8
+ debounceWait?: number;
9
+ /** 写入查询串的 like 参数名,默认 qp-skuName-like */
10
+ likeParamName?: string;
11
+ };
12
+ export type QueryAutoCompleteProps = {
13
+ value?: string;
14
+ onChange?: (value: string) => void;
15
+ onPressEnter?: () => void;
16
+ requestConfig: QueryAutoCompleteRequestConfig;
17
+ placeholder?: string;
18
+ allowClear?: boolean;
19
+ style?: React.CSSProperties;
20
+ disabled?: boolean;
21
+ };
22
+ declare const QueryAutoComplete: React.FC<QueryAutoCompleteProps>;
23
+ export default QueryAutoComplete;
package/dist/index.esm.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import axios from 'axios';
2
2
  import request$1 from 'umi-request';
3
3
  import cookie from 'js-cookie';
4
- import { message as message$1, Tooltip, Image, Popover, Card, Avatar, Badge, Menu, Input, InputNumber, Space, Button, Dropdown, Upload, Checkbox, Modal, ConfigProvider, Tag, Select, Spin, Form, Table, Empty, Row, Col, Tabs, TreeSelect, DatePicker, Typography, Alert, Breadcrumb, Drawer as Drawer$1, List, Radio, Tree, Result, Affix, Cascader, TimePicker, Divider, Switch, Collapse, Descriptions, Steps, Progress } from 'antd';
4
+ import { message as message$1, Tooltip, Image, Popover, Card, Avatar, Badge, Menu, Input, InputNumber, Space, Button, Dropdown, Upload, Checkbox, Modal, ConfigProvider, Tag, Select, Spin, AutoComplete, Form, Table, Empty, Row, Col, Tabs, TreeSelect, DatePicker, Typography, Alert, Breadcrumb, Drawer as Drawer$1, List, Radio, Tree, Result, Affix, Cascader, TimePicker, Divider, Switch, Collapse, Descriptions, Steps, Progress } from 'antd';
5
5
  import _, { omit, uniqBy, escapeRegExp, isNil, cloneDeep, isEmpty, isBoolean, debounce, throttle } from 'lodash';
6
6
  import memoizeOne from 'memoize-one';
7
7
  import { formatMessage, history, useLocation, Link, useModel, setLocale, useIntl, request as request$3 } from 'umi';
@@ -89,6 +89,54 @@ function _createClass(e, r, t) {
89
89
  writable: !1
90
90
  }), e;
91
91
  }
92
+ function _createForOfIteratorHelper(r, e) {
93
+ var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
94
+ if (!t) {
95
+ if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
96
+ t && (r = t);
97
+ var n = 0,
98
+ F = function () {};
99
+ return {
100
+ s: F,
101
+ n: function () {
102
+ return n >= r.length ? {
103
+ done: !0
104
+ } : {
105
+ done: !1,
106
+ value: r[n++]
107
+ };
108
+ },
109
+ e: function (r) {
110
+ throw r;
111
+ },
112
+ f: F
113
+ };
114
+ }
115
+ throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
116
+ }
117
+ var o,
118
+ a = !0,
119
+ u = !1;
120
+ return {
121
+ s: function () {
122
+ t = t.call(r);
123
+ },
124
+ n: function () {
125
+ var r = t.next();
126
+ return a = r.done, r;
127
+ },
128
+ e: function (r) {
129
+ u = !0, o = r;
130
+ },
131
+ f: function () {
132
+ try {
133
+ a || null == t.return || t.return();
134
+ } finally {
135
+ if (u) throw o;
136
+ }
137
+ }
138
+ };
139
+ }
92
140
  function _defineProperty(e, r, t) {
93
141
  return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
94
142
  value: t,
@@ -5458,6 +5506,144 @@ var _buildCurrentPageFilterColumns = function buildCurrentPageFilterColumns() {
5458
5506
  });
5459
5507
  };
5460
5508
 
5509
+ function buildAutoCompleteOptions(list) {
5510
+ var mappingTextField = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'name';
5511
+ if (!Array.isArray(list)) return [];
5512
+ var seen = new Set();
5513
+ var options = [];
5514
+ var _iterator = _createForOfIteratorHelper(list),
5515
+ _step;
5516
+ try {
5517
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
5518
+ var item = _step.value;
5519
+ var text = item === null || item === void 0 ? void 0 : item[mappingTextField];
5520
+ if (text == null) continue;
5521
+ var value = String(text).trim();
5522
+ if (!value || seen.has(value)) continue;
5523
+ seen.add(value);
5524
+ options.push({
5525
+ value: value
5526
+ });
5527
+ }
5528
+ } catch (err) {
5529
+ _iterator.e(err);
5530
+ } finally {
5531
+ _iterator.f();
5532
+ }
5533
+ return options;
5534
+ }
5535
+
5536
+ var QueryAutoComplete = function QueryAutoComplete(_ref) {
5537
+ var value = _ref.value,
5538
+ _onChange = _ref.onChange,
5539
+ _onPressEnter = _ref.onPressEnter,
5540
+ requestConfig = _ref.requestConfig,
5541
+ _ref$placeholder = _ref.placeholder,
5542
+ placeholder = _ref$placeholder === void 0 ? '请输入' : _ref$placeholder,
5543
+ _ref$allowClear = _ref.allowClear,
5544
+ allowClear = _ref$allowClear === void 0 ? true : _ref$allowClear,
5545
+ style = _ref.style,
5546
+ disabled = _ref.disabled;
5547
+ var _ref2 = requestConfig || {},
5548
+ url = _ref2.url,
5549
+ _ref2$method = _ref2.method,
5550
+ method = _ref2$method === void 0 ? 'get' : _ref2$method,
5551
+ _ref2$otherParams = _ref2.otherParams,
5552
+ otherParams = _ref2$otherParams === void 0 ? {} : _ref2$otherParams,
5553
+ _ref2$mappingTextFiel = _ref2.mappingTextField,
5554
+ mappingTextField = _ref2$mappingTextFiel === void 0 ? 'name' : _ref2$mappingTextFiel,
5555
+ _ref2$pageSize = _ref2.pageSize,
5556
+ pageSize = _ref2$pageSize === void 0 ? 50 : _ref2$pageSize,
5557
+ _ref2$debounceWait = _ref2.debounceWait,
5558
+ debounceWait = _ref2$debounceWait === void 0 ? 300 : _ref2$debounceWait,
5559
+ _ref2$likeParamName = _ref2.likeParamName,
5560
+ likeParamName = _ref2$likeParamName === void 0 ? 'qp-skuName-like' : _ref2$likeParamName;
5561
+ var _useState = useState([]),
5562
+ _useState2 = _slicedToArray(_useState, 2),
5563
+ options = _useState2[0],
5564
+ setOptions = _useState2[1];
5565
+ var seqRef = useRef(0);
5566
+ var mountedRef = useRef(true);
5567
+ useEffect(function () {
5568
+ mountedRef.current = true;
5569
+ return function () {
5570
+ mountedRef.current = false;
5571
+ seqRef.current += 1;
5572
+ };
5573
+ }, []);
5574
+ var fetchSuggest = function fetchSuggest(keyword) {
5575
+ var trimmed = (keyword || '').trim();
5576
+ if (!url || !trimmed) {
5577
+ setOptions([]);
5578
+ return;
5579
+ }
5580
+ var seq = ++seqRef.current;
5581
+ var queryParams = _objectSpread2(_objectSpread2({
5582
+ pageSize: pageSize,
5583
+ currentPage: 1
5584
+ }, otherParams), {}, _defineProperty({}, likeParamName, trimmed));
5585
+ var qs = stringify(queryParams);
5586
+ var fullUrl = "".concat(url).concat(url.includes('?') ? '&' : '?').concat(qs);
5587
+ var methodName = String(method).toLowerCase();
5588
+ var pending = ['post', 'patch', 'put'].includes(methodName) ?
5589
+ // 与 SearchSelect 弹窗列表一致:参数在 query,body 为空
5590
+ requestUtil[methodName](fullUrl, null) : requestUtil.get(fullUrl);
5591
+ pending.then(function (result) {
5592
+ if (!mountedRef.current || seq !== seqRef.current) return;
5593
+ var body = result === null || result === void 0 ? void 0 : result.data;
5594
+ if (judgeIsRequestError(body)) {
5595
+ setOptions([]);
5596
+ return;
5597
+ }
5598
+ var res = body === null || body === void 0 ? void 0 : body.data;
5599
+ var list = (res === null || res === void 0 ? void 0 : res.list) || (res === null || res === void 0 ? void 0 : res.items) || (Array.isArray(res) ? res : []);
5600
+ // sku 名称:列表列用 skuName,pager 用 name;其它字段(如 itemName)不做跨字段回退
5601
+ var primary = buildAutoCompleteOptions(list, mappingTextField);
5602
+ if (primary.length) {
5603
+ setOptions(primary);
5604
+ return;
5605
+ }
5606
+ if (mappingTextField === 'skuName' || mappingTextField === 'name') {
5607
+ var fallbackField = mappingTextField === 'skuName' ? 'name' : 'skuName';
5608
+ setOptions(buildAutoCompleteOptions(list, fallbackField));
5609
+ return;
5610
+ }
5611
+ setOptions([]);
5612
+ }).catch(function () {
5613
+ if (!mountedRef.current || seq !== seqRef.current) return;
5614
+ setOptions([]);
5615
+ });
5616
+ };
5617
+ var _useDebounceFn = useDebounceFn(fetchSuggest, {
5618
+ wait: debounceWait
5619
+ }),
5620
+ debouncedFetch = _useDebounceFn.run;
5621
+ return /*#__PURE__*/React$1.createElement(AutoComplete, {
5622
+ value: value,
5623
+ options: options,
5624
+ onSearch: function onSearch(text) {
5625
+ debouncedFetch(text);
5626
+ },
5627
+ onSelect: function onSelect(text) {
5628
+ _onChange === null || _onChange === void 0 ? void 0 : _onChange(String(text !== null && text !== void 0 ? text : ''));
5629
+ },
5630
+ onChange: function onChange(next) {
5631
+ return _onChange === null || _onChange === void 0 ? void 0 : _onChange(next !== null && next !== void 0 ? next : '');
5632
+ },
5633
+ disabled: disabled,
5634
+ style: _objectSpread2({
5635
+ width: '100%'
5636
+ }, style)
5637
+ }, /*#__PURE__*/React$1.createElement(Input, {
5638
+ allowClear: allowClear,
5639
+ disabled: disabled,
5640
+ placeholder: placeholder,
5641
+ onPressEnter: function onPressEnter() {
5642
+ return _onPressEnter === null || _onPressEnter === void 0 ? void 0 : _onPressEnter();
5643
+ }
5644
+ }));
5645
+ };
5646
+
5461
5647
  var Option$1 = Select.Option;
5462
5648
  var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
5463
5649
  var _pathname$match;
@@ -6253,7 +6439,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
6253
6439
  })) || [];
6254
6440
  var searchList = (modalTableProps === null || modalTableProps === void 0 ? void 0 : modalTableProps.noEmptySearchField) ? list : list === null || list === void 0 ? void 0 : list.concat(addKong);
6255
6441
  return searchList.map(function (i, index) {
6256
- var _i$field, _i$field3, _i$field5, _i$field7, _i$field9, _i$field0, _i$field1, _i$field10, _i$field12, _i$field13;
6442
+ var _i$field, _i$field3, _i$field5, _i$field7, _i$field9, _i$field0, _i$field1, _i$field11, _i$field12, _i$field14, _i$field15;
6257
6443
  if ((i === null || i === void 0 ? void 0 : i.type) === 'kong') return /*#__PURE__*/React$1.createElement(Col, {
6258
6444
  span: ColSpan,
6259
6445
  key: i
@@ -6365,7 +6551,21 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
6365
6551
  }
6366
6552
  })));
6367
6553
  }
6368
- if ((i === null || i === void 0 ? void 0 : (_i$field1 = i.field) === null || _i$field1 === void 0 ? void 0 : _i$field1.type) === 'proppertySelector') {
6554
+ if ((i === null || i === void 0 ? void 0 : i.type) === 'autoComplete' || (i === null || i === void 0 ? void 0 : (_i$field1 = i.field) === null || _i$field1 === void 0 ? void 0 : _i$field1.type) === 'autoComplete') {
6555
+ var _i$field10;
6556
+ return /*#__PURE__*/React$1.createElement(Col, {
6557
+ span: ColSpan,
6558
+ key: i.name
6559
+ }, /*#__PURE__*/React$1.createElement(Form.Item, {
6560
+ name: i.name,
6561
+ label: i.label,
6562
+ key: i.name
6563
+ }, /*#__PURE__*/React$1.createElement(QueryAutoComplete, _objectSpread2({
6564
+ onPressEnter: onSearchTable,
6565
+ disabled: setDisabled(i.name)
6566
+ }, (i === null || i === void 0 ? void 0 : (_i$field10 = i.field) === null || _i$field10 === void 0 ? void 0 : _i$field10.props) || {}))));
6567
+ }
6568
+ if ((i === null || i === void 0 ? void 0 : (_i$field11 = i.field) === null || _i$field11 === void 0 ? void 0 : _i$field11.type) === 'proppertySelector') {
6369
6569
  return /*#__PURE__*/React$1.createElement(Col, {
6370
6570
  span: ColSpan,
6371
6571
  key: i.name
@@ -6375,8 +6575,8 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
6375
6575
  key: i.name
6376
6576
  }, /*#__PURE__*/React$1.createElement(PropertySelector, null)));
6377
6577
  }
6378
- if ((i === null || i === void 0 ? void 0 : i.type) === 'itemPropertySelector' || (i === null || i === void 0 ? void 0 : (_i$field10 = i.field) === null || _i$field10 === void 0 ? void 0 : _i$field10.type) === 'itemPropertySelector') {
6379
- var _i$field11;
6578
+ if ((i === null || i === void 0 ? void 0 : i.type) === 'itemPropertySelector' || (i === null || i === void 0 ? void 0 : (_i$field12 = i.field) === null || _i$field12 === void 0 ? void 0 : _i$field12.type) === 'itemPropertySelector') {
6579
+ var _i$field13;
6380
6580
  return /*#__PURE__*/React$1.createElement(Col, {
6381
6581
  span: ColSpan,
6382
6582
  key: i.name
@@ -6389,9 +6589,9 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
6389
6589
  width: '100%'
6390
6590
  },
6391
6591
  placeholder: "\u8BF7\u9009\u62E9"
6392
- }, i === null || i === void 0 ? void 0 : (_i$field11 = i.field) === null || _i$field11 === void 0 ? void 0 : _i$field11.props))));
6592
+ }, i === null || i === void 0 ? void 0 : (_i$field13 = i.field) === null || _i$field13 === void 0 ? void 0 : _i$field13.props))));
6393
6593
  }
6394
- if ((i === null || i === void 0 ? void 0 : (_i$field12 = i.field) === null || _i$field12 === void 0 ? void 0 : _i$field12.type) === 'multipleQuerySearchSelect') {
6594
+ if ((i === null || i === void 0 ? void 0 : (_i$field14 = i.field) === null || _i$field14 === void 0 ? void 0 : _i$field14.type) === 'multipleQuerySearchSelect') {
6395
6595
  return /*#__PURE__*/React$1.createElement(Col, {
6396
6596
  span: ColSpan,
6397
6597
  key: i.name
@@ -6420,7 +6620,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
6420
6620
  placeholder: "\u8BF7\u8F93\u5165",
6421
6621
  allowClear: true,
6422
6622
  maxLength: 100
6423
- }, i === null || i === void 0 ? void 0 : (_i$field13 = i.field) === null || _i$field13 === void 0 ? void 0 : _i$field13.props), {}, {
6623
+ }, i === null || i === void 0 ? void 0 : (_i$field15 = i.field) === null || _i$field15 === void 0 ? void 0 : _i$field15.props), {}, {
6424
6624
  disabled: setDisabled(i.name)
6425
6625
  }))));
6426
6626
  });
@@ -8789,6 +8989,15 @@ var AddSelect = function AddSelect(props) {
8789
8989
  }
8790
8990
  })));
8791
8991
  }
8992
+ if (type === 'autoComplete' || (field === null || field === void 0 ? void 0 : field.type) === 'autoComplete') {
8993
+ return /*#__PURE__*/React$1.createElement(Form.Item, _objectSpread2({
8994
+ name: name,
8995
+ label: label,
8996
+ key: name
8997
+ }, restProps), /*#__PURE__*/React$1.createElement(QueryAutoComplete, _objectSpread2({
8998
+ onPressEnter: onSearchTable
8999
+ }, (field === null || field === void 0 ? void 0 : field.props) || {})));
9000
+ }
8792
9001
  // 默认type是input
8793
9002
  return /*#__PURE__*/React$1.createElement(Form.Item, _objectSpread2({
8794
9003
  name: name,
@@ -10674,7 +10883,44 @@ function commonFun(type, prefixUrl, parentProps) {
10674
10883
  }
10675
10884
  }, {
10676
10885
  name: 'qp-skuName-like',
10677
- label: 'SKU名称'
10886
+ label: 'SKU名称',
10887
+ type: 'autoComplete',
10888
+ field: {
10889
+ type: 'autoComplete',
10890
+ props: {
10891
+ requestConfig: {
10892
+ url: "".concat(prefixUrl.selectPrefix, "/sku/doPageBySelect/v4"),
10893
+ method: 'post',
10894
+ otherParams: _objectSpread2({
10895
+ ownOrgSign: getCurrentTargetBgId()
10896
+ }, (requestConfigProp === null || requestConfigProp === void 0 ? void 0 : requestConfigProp.addOtherParams) || {}),
10897
+ mappingTextField: 'skuName',
10898
+ pageSize: 50,
10899
+ debounceWait: 300,
10900
+ likeParamName: 'qp-skuName-like'
10901
+ }
10902
+ }
10903
+ }
10904
+ }, {
10905
+ name: 'qp-itemName-like',
10906
+ label: '商品名称',
10907
+ type: 'autoComplete',
10908
+ field: {
10909
+ type: 'autoComplete',
10910
+ props: {
10911
+ requestConfig: {
10912
+ url: "".concat(prefixUrl.selectPrefix, "/sku/doPageBySelect/v4"),
10913
+ method: 'post',
10914
+ otherParams: _objectSpread2({
10915
+ ownOrgSign: getCurrentTargetBgId()
10916
+ }, (requestConfigProp === null || requestConfigProp === void 0 ? void 0 : requestConfigProp.addOtherParams) || {}),
10917
+ mappingTextField: 'itemName',
10918
+ pageSize: 50,
10919
+ debounceWait: 300,
10920
+ likeParamName: 'qp-itemName-like'
10921
+ }
10922
+ }
10923
+ }
10678
10924
  }, {
10679
10925
  name: 'qp-itemCode-in',
10680
10926
  label: 'SPU编码',
@@ -14451,7 +14697,7 @@ function handleFormSearchSourceLoad(c, parentProps) {
14451
14697
  return result;
14452
14698
  }
14453
14699
  var AddSkuSelect = function AddSkuSelect(parProps) {
14454
- var _parProps$requestConf, _parProps$requestConf2, _topTablePagination$p, _topTablePagination$s;
14700
+ var _parProps$requestConf, _parProps$requestConf2, _parProps$requestConf3, _parProps$requestConf4, _topTablePagination$p, _topTablePagination$s;
14455
14701
  var selectProps = {
14456
14702
  mode: 'multiple'
14457
14703
  };
@@ -14757,7 +15003,46 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
14757
15003
  type: 'multipleQueryInput'
14758
15004
  }, {
14759
15005
  name: 'qp-skuName-like',
14760
- label: 'SKU名称'
15006
+ label: 'SKU名称',
15007
+ type: 'autoComplete',
15008
+ field: {
15009
+ type: 'autoComplete',
15010
+ props: {
15011
+ requestConfig: {
15012
+ url: '/items/sku/pager/v2',
15013
+ otherParams: _objectSpread2({
15014
+ 'qp-combination-eq': false,
15015
+ 'qp-approveStatus-eq': 1,
15016
+ 'qp-status-eq': 1
15017
+ }, (parProps === null || parProps === void 0 ? void 0 : (_parProps$requestConf = parProps.requestConfig) === null || _parProps$requestConf === void 0 ? void 0 : _parProps$requestConf.addOtherParams) || {}),
15018
+ mappingTextField: 'name',
15019
+ pageSize: 50,
15020
+ debounceWait: 300,
15021
+ likeParamName: 'qp-skuName-like'
15022
+ }
15023
+ }
15024
+ }
15025
+ }, {
15026
+ name: 'qp-itemName-like',
15027
+ label: '商品名称',
15028
+ type: 'autoComplete',
15029
+ field: {
15030
+ type: 'autoComplete',
15031
+ props: {
15032
+ requestConfig: {
15033
+ url: '/items/sku/pager/v2',
15034
+ otherParams: _objectSpread2({
15035
+ 'qp-combination-eq': false,
15036
+ 'qp-approveStatus-eq': 1,
15037
+ 'qp-status-eq': 1
15038
+ }, (parProps === null || parProps === void 0 ? void 0 : (_parProps$requestConf2 = parProps.requestConfig) === null || _parProps$requestConf2 === void 0 ? void 0 : _parProps$requestConf2.addOtherParams) || {}),
15039
+ mappingTextField: 'itemName',
15040
+ pageSize: 50,
15041
+ debounceWait: 300,
15042
+ likeParamName: 'qp-itemName-like'
15043
+ }
15044
+ }
15045
+ }
14761
15046
  }, {
14762
15047
  name: 'qp-longyaStyleCode-in',
14763
15048
  label: '龙牙款号',
@@ -14774,7 +15059,7 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
14774
15059
  label: '商品条码',
14775
15060
  field: {
14776
15061
  type: 'multipleQueryInput',
14777
- props: _objectSpread2({}, ((_parProps$requestConf = parProps.requestConfig) === null || _parProps$requestConf === void 0 ? void 0 : _parProps$requestConf.itemEancodeValueRequestConfig) || {})
15062
+ props: _objectSpread2({}, ((_parProps$requestConf3 = parProps.requestConfig) === null || _parProps$requestConf3 === void 0 ? void 0 : _parProps$requestConf3.itemEancodeValueRequestConfig) || {})
14778
15063
  }
14779
15064
  }]), [{
14780
15065
  name: 'qp-brandId-in',
@@ -14866,7 +15151,7 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
14866
15151
  'qp-combination-eq': false,
14867
15152
  'qp-approveStatus-eq': 1,
14868
15153
  'qp-status-eq': 1
14869
- }, (parProps === null || parProps === void 0 ? void 0 : (_parProps$requestConf2 = parProps.requestConfig) === null || _parProps$requestConf2 === void 0 ? void 0 : _parProps$requestConf2.addOtherParams) || {}),
15154
+ }, (parProps === null || parProps === void 0 ? void 0 : (_parProps$requestConf4 = parProps.requestConfig) === null || _parProps$requestConf4 === void 0 ? void 0 : _parProps$requestConf4.addOtherParams) || {}),
14870
15155
  mappingTextField: 'name',
14871
15156
  mappingValueField: 'skuCode'
14872
15157
  }, parProps.requestConfig),
@@ -14899,7 +15184,7 @@ var AddSkuSelect = function AddSkuSelect(parProps) {
14899
15184
  })));
14900
15185
  };
14901
15186
  var AddSkcSelect = function AddSkcSelect(parProps) {
14902
- var _parProps$requestConf3;
15187
+ var _parProps$requestConf5;
14903
15188
  var selectProps = {
14904
15189
  mode: 'multiple'
14905
15190
  };
@@ -15195,7 +15480,7 @@ var AddSkcSelect = function AddSkcSelect(parProps) {
15195
15480
  filter: 'qp-name-like',
15196
15481
  otherParams: _objectSpread2({
15197
15482
  'qp-skcStatus-eq': 1
15198
- }, (parProps === null || parProps === void 0 ? void 0 : (_parProps$requestConf3 = parProps.requestConfig) === null || _parProps$requestConf3 === void 0 ? void 0 : _parProps$requestConf3.addOtherParams) || {}),
15483
+ }, (parProps === null || parProps === void 0 ? void 0 : (_parProps$requestConf5 = parProps.requestConfig) === null || _parProps$requestConf5 === void 0 ? void 0 : _parProps$requestConf5.addOtherParams) || {}),
15199
15484
  mappingTextField: 'name',
15200
15485
  mappingValueField: 'code'
15201
15486
  }, parProps.requestConfig),
@@ -15221,7 +15506,7 @@ var AddSkcSelect = function AddSkcSelect(parProps) {
15221
15506
  })));
15222
15507
  };
15223
15508
  var AddSpuSelect = function AddSpuSelect(parProps) {
15224
- var _parProps$requestConf4;
15509
+ var _parProps$requestConf6;
15225
15510
  var selectProps = {
15226
15511
  mode: 'multiple'
15227
15512
  };
@@ -15512,7 +15797,7 @@ var AddSpuSelect = function AddSpuSelect(parProps) {
15512
15797
  'qp-approveStatus-eq': 1,
15513
15798
  'qp-status-eq': 1,
15514
15799
  sorter: 'desc-id'
15515
- }, (parProps === null || parProps === void 0 ? void 0 : (_parProps$requestConf4 = parProps.requestConfig) === null || _parProps$requestConf4 === void 0 ? void 0 : _parProps$requestConf4.addOtherParams) || {}),
15800
+ }, (parProps === null || parProps === void 0 ? void 0 : (_parProps$requestConf6 = parProps.requestConfig) === null || _parProps$requestConf6 === void 0 ? void 0 : _parProps$requestConf6.addOtherParams) || {}),
15516
15801
  mappingTextField: 'name',
15517
15802
  mappingValueField: 'itemCode'
15518
15803
  }, parProps.requestConfig),