@bit-sun/business-component 4.2.0-alpha.20 → 4.2.0-alpha.21

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
@@ -4180,14 +4180,17 @@ var handleParams = function handleParams(params) {
4180
4180
  params[_dataParams2[0]] = element[1];
4181
4181
  delete params[key];
4182
4182
  } else if (element && key.indexOf('*fullDate*') >= 0) {
4183
+ var _params$key;
4183
4184
  var _dataParams3 = key.split('*fullDate*');
4184
- _dataParams3.forEach(function (value, index) {
4185
- if (index === 0) {
4186
- params[value] = moment$1(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
4187
- } else {
4188
- params[value] = moment$1(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
4189
- }
4190
- });
4185
+ if ((params === null || params === void 0 ? void 0 : params[key]) && (params === null || params === void 0 ? void 0 : (_params$key = params[key]) === null || _params$key === void 0 ? void 0 : _params$key.length)) {
4186
+ _dataParams3.forEach(function (value, index) {
4187
+ if (index === 0) {
4188
+ params[value] = moment$1(element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
4189
+ } else {
4190
+ params[value] = moment$1(element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
4191
+ }
4192
+ });
4193
+ }
4191
4194
  delete params[key];
4192
4195
  } else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
4193
4196
  var _dataParams4 = key.split('*checkBox*');
@@ -4276,6 +4279,7 @@ var convertUrlQueryParams = function convertUrlQueryParams(params) {
4276
4279
  return (params === null || params === void 0 ? void 0 : params.noUrlQueryParams) ? '' : "?".concat(stringify(convertQueryParams(params)));
4277
4280
  };
4278
4281
  var convertBodyParams = function convertBodyParams(params) {
4282
+ var _params$requestType;
4279
4283
  // 处理sku选择器属性参数
4280
4284
  var unique_params = null;
4281
4285
  if (params['UNIQUE_SPEC']) {
@@ -4284,11 +4288,10 @@ var convertBodyParams = function convertBodyParams(params) {
4284
4288
  }
4285
4289
  // body参数来源:sku选择器固定参数 > 调用所传bodyParams > 默认参数-无
4286
4290
  // post 方式参数 来源默认的bodyParams 以及原有搜索项的参数
4291
+ if ((params === null || params === void 0 ? void 0 : params.requestType) && (params === null || params === void 0 ? void 0 : (_params$requestType = params.requestType) === null || _params$requestType === void 0 ? void 0 : _params$requestType.toLocaleLowerCase()) == 'post') {
4292
+ return omit(_objectSpread2(_objectSpread2({}, params === null || params === void 0 ? void 0 : params.bodyParams), params), ['bodyParams', 'noUrlQueryParams', 'requestType']);
4293
+ }
4287
4294
  return unique_params || (params === null || params === void 0 ? void 0 : params.bodyParams) || null;
4288
- // return unique_params || omit({
4289
- // ...params,
4290
- // ...params?.bodyParams,
4291
- // },['bodyParams', 'noUrlQueryParams']);
4292
4295
  };
4293
4296
  var convertRes = function convertRes(data, otherParams) {
4294
4297
  var mappingTextField = otherParams.mappingTextField,
@@ -4555,7 +4558,9 @@ var QueryMutipleSearchSelect = function QueryMutipleSearchSelect(_ref) {
4555
4558
  _requestConfig$specia = requestConfig.specialBracket,
4556
4559
  specialBracket = _requestConfig$specia === void 0 ? false : _requestConfig$specia,
4557
4560
  _requestConfig$noNeed = requestConfig.noNeedSplit,
4558
- noNeedSplit = _requestConfig$noNeed === void 0 ? false : _requestConfig$noNeed;
4561
+ noNeedSplit = _requestConfig$noNeed === void 0 ? false : _requestConfig$noNeed,
4562
+ _requestConfig$reques = requestConfig.requestType,
4563
+ requestType = _requestConfig$reques === void 0 ? 'get' : _requestConfig$reques;
4559
4564
  var selectParamsKey = filter || 'qp-codeAndName-like';
4560
4565
  var resultSourceKey = handleSourceName((requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.sourceName) || (ctx === null || ctx === void 0 ? void 0 : ctx.name) || 'skuCode');
4561
4566
  var currentSelectProps = _objectSpread2({
@@ -4656,7 +4661,9 @@ var QueryMutipleSearchSelect = function QueryMutipleSearchSelect(_ref) {
4656
4661
  var getRequest;
4657
4662
  var methodName = method === null || method === void 0 ? void 0 : method.toLocaleLowerCase();
4658
4663
  if (['post', 'patch', 'put'].includes(methodName)) {
4659
- getRequest = requestUtil[methodName]("".concat(url).concat(convertUrlQueryParams(queryParams)), convertBodyParams(queryParams), {
4664
+ getRequest = requestUtil[methodName]("".concat(url).concat(convertUrlQueryParams(queryParams)), convertBodyParams(_objectSpread2(_objectSpread2({}, queryParams), {}, {
4665
+ requestType: requestType
4666
+ })), {
4660
4667
  headers: _objectSpread2({}, extralHeaders)
4661
4668
  });
4662
4669
  } else {
@@ -5331,7 +5338,9 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
5331
5338
  viewShowValueStr = _ref.viewShowValueStr,
5332
5339
  searchStartLength = _ref.searchStartLength,
5333
5340
  _ref$isQuery = _ref.isQuery,
5334
- isQuery = _ref$isQuery === void 0 ? false : _ref$isQuery;
5341
+ isQuery = _ref$isQuery === void 0 ? false : _ref$isQuery,
5342
+ _ref$requestType = _ref.requestType,
5343
+ requestType = _ref$requestType === void 0 ? 'get' : _ref$requestType;
5335
5344
  var requestConfig = _objectSpread2({
5336
5345
  url: url,
5337
5346
  method: method,
@@ -5618,7 +5627,9 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
5618
5627
  var getRequest;
5619
5628
  var methodName = method === null || method === void 0 ? void 0 : (_method$toLocaleLower = method.toLocaleLowerCase) === null || _method$toLocaleLower === void 0 ? void 0 : _method$toLocaleLower.call(method);
5620
5629
  if (['post', 'patch', 'put'].includes(methodName)) {
5621
- getRequest = requestUtil[methodName]("".concat(url).concat(convertUrlQueryParams(queryParams)), convertBodyParams(queryParams), {
5630
+ getRequest = requestUtil[methodName]("".concat(url).concat(convertUrlQueryParams(queryParams)), convertBodyParams(_objectSpread2(_objectSpread2({}, queryParams), {}, {
5631
+ requestType: requestType
5632
+ })), {
5622
5633
  headers: _objectSpread2({}, extralHeaders)
5623
5634
  });
5624
5635
  } else {
@@ -10273,6 +10284,16 @@ function commonFun(type, prefixUrl, parentProps) {
10273
10284
  }
10274
10285
  }
10275
10286
  }
10287
+ }, {
10288
+ name: 'qp-enableDropShipping-eq',
10289
+ label: '启用工厂直发',
10290
+ type: 'select',
10291
+ initialSource: getDictionarySource$1('BSC00001')
10292
+ }, {
10293
+ name: 'qp-enableVmiStock-eq',
10294
+ label: '启用VMI库存管理',
10295
+ type: 'select',
10296
+ initialSource: getDictionarySource$1('BSC00001')
10276
10297
  }];
10277
10298
  var _queryHeaderParams = getQueryHeadersList({
10278
10299
  querySelectHeadersList: querySelectHeadersList,
@@ -10307,6 +10328,20 @@ function commonFun(type, prefixUrl, parentProps) {
10307
10328
  title: '使用组织',
10308
10329
  dataIndex: 'salesOrgName',
10309
10330
  defaultSort: 4
10331
+ }, {
10332
+ title: '启用工厂直发',
10333
+ dataIndex: 'enableDropShipping',
10334
+ defaultSort: 5,
10335
+ render: function render(text) {
10336
+ return getDictionaryTextByValue$1('BSC00001', text);
10337
+ }
10338
+ }, {
10339
+ title: '启用VMI库存管理',
10340
+ dataIndex: 'enableVmiStock',
10341
+ defaultSort: 6,
10342
+ render: function render(text) {
10343
+ return getDictionaryTextByValue$1('BSC00001', text);
10344
+ }
10310
10345
  }]
10311
10346
  }, modalTableBusProps);
10312
10347
  }
package/dist/index.js CHANGED
@@ -4203,14 +4203,17 @@ var handleParams = function handleParams(params) {
4203
4203
  params[_dataParams2[0]] = element[1];
4204
4204
  delete params[key];
4205
4205
  } else if (element && key.indexOf('*fullDate*') >= 0) {
4206
+ var _params$key;
4206
4207
  var _dataParams3 = key.split('*fullDate*');
4207
- _dataParams3.forEach(function (value, index) {
4208
- if (index === 0) {
4209
- params[value] = moment__default['default'](element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
4210
- } else {
4211
- params[value] = moment__default['default'](element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
4212
- }
4213
- });
4208
+ if ((params === null || params === void 0 ? void 0 : params[key]) && (params === null || params === void 0 ? void 0 : (_params$key = params[key]) === null || _params$key === void 0 ? void 0 : _params$key.length)) {
4209
+ _dataParams3.forEach(function (value, index) {
4210
+ if (index === 0) {
4211
+ params[value] = moment__default['default'](element[index]).millisecond(0).second(0).minute(0).hour(0).format('YYYY-MM-DD HH:mm:ss');
4212
+ } else {
4213
+ params[value] = moment__default['default'](element[index]).millisecond(59).second(59).minute(59).hour(23).format('YYYY-MM-DD HH:mm:ss');
4214
+ }
4215
+ });
4216
+ }
4214
4217
  delete params[key];
4215
4218
  } else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
4216
4219
  var _dataParams4 = key.split('*checkBox*');
@@ -4299,6 +4302,7 @@ var convertUrlQueryParams = function convertUrlQueryParams(params) {
4299
4302
  return (params === null || params === void 0 ? void 0 : params.noUrlQueryParams) ? '' : "?".concat(querystring.stringify(convertQueryParams(params)));
4300
4303
  };
4301
4304
  var convertBodyParams = function convertBodyParams(params) {
4305
+ var _params$requestType;
4302
4306
  // 处理sku选择器属性参数
4303
4307
  var unique_params = null;
4304
4308
  if (params['UNIQUE_SPEC']) {
@@ -4307,11 +4311,10 @@ var convertBodyParams = function convertBodyParams(params) {
4307
4311
  }
4308
4312
  // body参数来源:sku选择器固定参数 > 调用所传bodyParams > 默认参数-无
4309
4313
  // post 方式参数 来源默认的bodyParams 以及原有搜索项的参数
4314
+ if ((params === null || params === void 0 ? void 0 : params.requestType) && (params === null || params === void 0 ? void 0 : (_params$requestType = params.requestType) === null || _params$requestType === void 0 ? void 0 : _params$requestType.toLocaleLowerCase()) == 'post') {
4315
+ return _.omit(_objectSpread2(_objectSpread2({}, params === null || params === void 0 ? void 0 : params.bodyParams), params), ['bodyParams', 'noUrlQueryParams', 'requestType']);
4316
+ }
4310
4317
  return unique_params || (params === null || params === void 0 ? void 0 : params.bodyParams) || null;
4311
- // return unique_params || omit({
4312
- // ...params,
4313
- // ...params?.bodyParams,
4314
- // },['bodyParams', 'noUrlQueryParams']);
4315
4318
  };
4316
4319
  var convertRes = function convertRes(data, otherParams) {
4317
4320
  var mappingTextField = otherParams.mappingTextField,
@@ -4578,7 +4581,9 @@ var QueryMutipleSearchSelect = function QueryMutipleSearchSelect(_ref) {
4578
4581
  _requestConfig$specia = requestConfig.specialBracket,
4579
4582
  specialBracket = _requestConfig$specia === void 0 ? false : _requestConfig$specia,
4580
4583
  _requestConfig$noNeed = requestConfig.noNeedSplit,
4581
- noNeedSplit = _requestConfig$noNeed === void 0 ? false : _requestConfig$noNeed;
4584
+ noNeedSplit = _requestConfig$noNeed === void 0 ? false : _requestConfig$noNeed,
4585
+ _requestConfig$reques = requestConfig.requestType,
4586
+ requestType = _requestConfig$reques === void 0 ? 'get' : _requestConfig$reques;
4582
4587
  var selectParamsKey = filter || 'qp-codeAndName-like';
4583
4588
  var resultSourceKey = handleSourceName((requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.sourceName) || (ctx === null || ctx === void 0 ? void 0 : ctx.name) || 'skuCode');
4584
4589
  var currentSelectProps = _objectSpread2({
@@ -4679,7 +4684,9 @@ var QueryMutipleSearchSelect = function QueryMutipleSearchSelect(_ref) {
4679
4684
  var getRequest;
4680
4685
  var methodName = method === null || method === void 0 ? void 0 : method.toLocaleLowerCase();
4681
4686
  if (['post', 'patch', 'put'].includes(methodName)) {
4682
- getRequest = requestUtil[methodName]("".concat(url).concat(convertUrlQueryParams(queryParams)), convertBodyParams(queryParams), {
4687
+ getRequest = requestUtil[methodName]("".concat(url).concat(convertUrlQueryParams(queryParams)), convertBodyParams(_objectSpread2(_objectSpread2({}, queryParams), {}, {
4688
+ requestType: requestType
4689
+ })), {
4683
4690
  headers: _objectSpread2({}, extralHeaders)
4684
4691
  });
4685
4692
  } else {
@@ -5354,7 +5361,9 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
5354
5361
  viewShowValueStr = _ref.viewShowValueStr,
5355
5362
  searchStartLength = _ref.searchStartLength,
5356
5363
  _ref$isQuery = _ref.isQuery,
5357
- isQuery = _ref$isQuery === void 0 ? false : _ref$isQuery;
5364
+ isQuery = _ref$isQuery === void 0 ? false : _ref$isQuery,
5365
+ _ref$requestType = _ref.requestType,
5366
+ requestType = _ref$requestType === void 0 ? 'get' : _ref$requestType;
5358
5367
  var requestConfig = _objectSpread2({
5359
5368
  url: url,
5360
5369
  method: method,
@@ -5641,7 +5650,9 @@ var SearchSelect = /*#__PURE__*/React$1.forwardRef(function (props, ref) {
5641
5650
  var getRequest;
5642
5651
  var methodName = method === null || method === void 0 ? void 0 : (_method$toLocaleLower = method.toLocaleLowerCase) === null || _method$toLocaleLower === void 0 ? void 0 : _method$toLocaleLower.call(method);
5643
5652
  if (['post', 'patch', 'put'].includes(methodName)) {
5644
- getRequest = requestUtil[methodName]("".concat(url).concat(convertUrlQueryParams(queryParams)), convertBodyParams(queryParams), {
5653
+ getRequest = requestUtil[methodName]("".concat(url).concat(convertUrlQueryParams(queryParams)), convertBodyParams(_objectSpread2(_objectSpread2({}, queryParams), {}, {
5654
+ requestType: requestType
5655
+ })), {
5645
5656
  headers: _objectSpread2({}, extralHeaders)
5646
5657
  });
5647
5658
  } else {
@@ -10296,6 +10307,16 @@ function commonFun(type, prefixUrl, parentProps) {
10296
10307
  }
10297
10308
  }
10298
10309
  }
10310
+ }, {
10311
+ name: 'qp-enableDropShipping-eq',
10312
+ label: '启用工厂直发',
10313
+ type: 'select',
10314
+ initialSource: getDictionarySource$1('BSC00001')
10315
+ }, {
10316
+ name: 'qp-enableVmiStock-eq',
10317
+ label: '启用VMI库存管理',
10318
+ type: 'select',
10319
+ initialSource: getDictionarySource$1('BSC00001')
10299
10320
  }];
10300
10321
  var _queryHeaderParams = getQueryHeadersList({
10301
10322
  querySelectHeadersList: querySelectHeadersList,
@@ -10330,6 +10351,20 @@ function commonFun(type, prefixUrl, parentProps) {
10330
10351
  title: '使用组织',
10331
10352
  dataIndex: 'salesOrgName',
10332
10353
  defaultSort: 4
10354
+ }, {
10355
+ title: '启用工厂直发',
10356
+ dataIndex: 'enableDropShipping',
10357
+ defaultSort: 5,
10358
+ render: function render(text) {
10359
+ return getDictionaryTextByValue$1('BSC00001', text);
10360
+ }
10361
+ }, {
10362
+ title: '启用VMI库存管理',
10363
+ dataIndex: 'enableVmiStock',
10364
+ defaultSort: 6,
10365
+ render: function render(text) {
10366
+ return getDictionaryTextByValue$1('BSC00001', text);
10367
+ }
10333
10368
  }]
10334
10369
  }, modalTableBusProps);
10335
10370
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bit-sun/business-component",
3
- "version": "4.2.0-alpha.20",
3
+ "version": "4.2.0-alpha.21",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",
@@ -266,6 +266,8 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
266
266
  option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0,
267
267
  },
268
268
  } },
269
+ { name: 'qp-enableDropShipping-eq', label: '启用工厂直发', type: 'select', initialSource: getDictionarySource('BSC00001') },
270
+ { name: 'qp-enableVmiStock-eq', label: '启用VMI库存管理', type: 'select', initialSource: getDictionarySource('BSC00001') },
269
271
  ]
270
272
  const queryHeaderParams = getQueryHeadersList({ querySelectHeadersList, extralHeaders});
271
273
  Promise.all([
@@ -305,6 +307,18 @@ export function commonFun (type?: string, prefixUrl: any, parentProps?:any) {
305
307
  dataIndex: 'salesOrgName',
306
308
  defaultSort: 4,
307
309
  },
310
+ {
311
+ title: '启用工厂直发',
312
+ dataIndex: 'enableDropShipping',
313
+ defaultSort: 5,
314
+ render: (text: number) => getDictionaryTextByValue('BSC00001', text),
315
+ },
316
+ {
317
+ title: '启用VMI库存管理',
318
+ dataIndex: 'enableVmiStock',
319
+ defaultSort: 6,
320
+ render: (text: number) => getDictionaryTextByValue('BSC00001', text),
321
+ },
308
322
  ],
309
323
  ...modalTableBusProps
310
324
  }
@@ -13,7 +13,7 @@ export const getValue = (value: any, selectMode?: any) => {
13
13
  }
14
14
 
15
15
  const QueryMutipleSearchSelect = ({ onValueChange, requestConfig={}, selectProps={}, ctx }: any) => {
16
- const { filter, method = 'get', url, extralHeaders = {}, otherParams = {}, specialBracket = false, noNeedSplit = false, } = requestConfig;
16
+ const { filter, method = 'get', url, extralHeaders = {}, otherParams = {}, specialBracket = false, noNeedSplit = false, requestType = 'get' } = requestConfig;
17
17
  const selectParamsKey = filter || 'qp-codeAndName-like';
18
18
  const resultSourceKey = handleSourceName(requestConfig?.sourceName || ctx?.name || 'skuCode')
19
19
  const currentSelectProps = {
@@ -106,7 +106,7 @@ const QueryMutipleSearchSelect = ({ onValueChange, requestConfig={}, selectProps
106
106
  let getRequest;
107
107
  const methodName = method?.toLocaleLowerCase();
108
108
  if(['post','patch','put'].includes(methodName)) {
109
- getRequest = request[methodName](`${url}${convertUrlQueryParams(queryParams)}`,convertBodyParams(queryParams),{headers: { ...extralHeaders }})
109
+ getRequest = request[methodName](`${url}${convertUrlQueryParams(queryParams)}`,convertBodyParams({...queryParams, requestType}),{headers: { ...extralHeaders }})
110
110
  } else {
111
111
  getRequest = request.get( `${url}${convertUrlQueryParams(queryParams)}`,{headers: { ...extralHeaders }})
112
112
  }
@@ -55,6 +55,7 @@ const SearchSelect = forwardRef((props: any, ref: any) => {
55
55
  viewShowValueStr, // 详情展示值,不传展示组件处理的默认值
56
56
  searchStartLength, // 默认不校验长度去搜索,如果配置了,则按照配置项长度进行处理搜索
57
57
  isQuery = false, // 是否是查询条件
58
+ requestType = 'get', // 自定义弹窗时候的查询方式 如果是post 并且需要所有参数都放在body里 需要设置此参数 && 兼容之前逻辑
58
59
  } = rCTemp || {};
59
60
  const requestConfig = {url,method,otherParams,isMap,fixedparameter,fieldValToParam,fixedparamsDisabled,mappingTextField,mappingTextShowKeyField,mappingValueField,mappingTextShowTextField,init,extralHeaders,specialBracket,noNeedSplit,noOperate,viewShowValueStr,searchStartLength,...rCTemp};
60
61
  const resultSourceKey = handleSourceName(sourceName || requestConfig?.sourceName || ctx?.name || 'supplierCode')
@@ -241,7 +242,7 @@ const SearchSelect = forwardRef((props: any, ref: any) => {
241
242
  let getRequest;
242
243
  const methodName = method?.toLocaleLowerCase?.();
243
244
  if(['post','patch','put'].includes(methodName)) {
244
- getRequest = request[methodName](`${url}${convertUrlQueryParams(queryParams)}`,convertBodyParams(queryParams), { headers: { ...extralHeaders }})
245
+ getRequest = request[methodName](`${url}${convertUrlQueryParams(queryParams)}`,convertBodyParams({...queryParams, requestType}), { headers: { ...extralHeaders }})
245
246
  } else {
246
247
  getRequest = request.get( `${url}${convertUrlQueryParams(queryParams)}`,{headers: { ...extralHeaders }})
247
248
  }
@@ -116,23 +116,25 @@ export const handleParams = (params: any) => {
116
116
  delete params[key];
117
117
  } else if (element && key.indexOf('*fullDate*') >= 0) {
118
118
  const dataParams = key.split('*fullDate*');
119
- dataParams.forEach((value, index) => {
120
- if (index === 0) {
121
- params[value] = moment(element[index])
122
- .millisecond(0)
123
- .second(0)
124
- .minute(0)
125
- .hour(0)
126
- .format('YYYY-MM-DD HH:mm:ss');
127
- } else {
128
- params[value] = moment(element[index])
129
- .millisecond(59)
130
- .second(59)
131
- .minute(59)
132
- .hour(23)
133
- .format('YYYY-MM-DD HH:mm:ss');
134
- }
135
- });
119
+ if(params?.[key] && params?.[key]?.length) {
120
+ dataParams.forEach((value, index) => {
121
+ if (index === 0) {
122
+ params[value] = moment(element[index])
123
+ .millisecond(0)
124
+ .second(0)
125
+ .minute(0)
126
+ .hour(0)
127
+ .format('YYYY-MM-DD HH:mm:ss');
128
+ } else {
129
+ params[value] = moment(element[index])
130
+ .millisecond(59)
131
+ .second(59)
132
+ .minute(59)
133
+ .hour(23)
134
+ .format('YYYY-MM-DD HH:mm:ss');
135
+ }
136
+ });
137
+ }
136
138
  delete params[key];
137
139
  } else if (typeof element === 'boolean' && key.indexOf('*checkBox*') >= 0) {
138
140
  const dataParams = key.split('*checkBox*');
@@ -234,11 +236,13 @@ export const convertBodyParams = (params: any) => {
234
236
 
235
237
  // body参数来源:sku选择器固定参数 > 调用所传bodyParams > 默认参数-无
236
238
  // post 方式参数 来源默认的bodyParams 以及原有搜索项的参数
239
+ if(params?.requestType && (params?.requestType?.toLocaleLowerCase() == 'post')) {
240
+ return omit({
241
+ ...params?.bodyParams,
242
+ ...params,
243
+ },['bodyParams', 'noUrlQueryParams', 'requestType']);
244
+ }
237
245
  return unique_params || params?.bodyParams || null;
238
- // return unique_params || omit({
239
- // ...params,
240
- // ...params?.bodyParams,
241
- // },['bodyParams', 'noUrlQueryParams']);
242
246
  }
243
247
 
244
248