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

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
@@ -5339,8 +5339,7 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
5339
5339
  searchStartLength = _ref.searchStartLength,
5340
5340
  _ref$isQuery = _ref.isQuery,
5341
5341
  isQuery = _ref$isQuery === void 0 ? false : _ref$isQuery,
5342
- _ref$requestType = _ref.requestType,
5343
- requestType = _ref$requestType === void 0 ? 'get' : _ref$requestType;
5342
+ _ref$requestType = _ref.requestType;
5344
5343
  var requestConfig = _objectSpread2({
5345
5344
  url: url,
5346
5345
  method: method,
@@ -5627,9 +5626,16 @@ var SearchSelect = /*#__PURE__*/forwardRef(function (props, ref) {
5627
5626
  var getRequest;
5628
5627
  var methodName = method === null || method === void 0 ? void 0 : (_method$toLocaleLower = method.toLocaleLowerCase) === null || _method$toLocaleLower === void 0 ? void 0 : _method$toLocaleLower.call(method);
5629
5628
  if (['post', 'patch', 'put'].includes(methodName)) {
5630
- getRequest = requestUtil[methodName]("".concat(url).concat(convertUrlQueryParams(queryParams)), convertBodyParams(_objectSpread2(_objectSpread2({}, queryParams), {}, {
5631
- requestType: requestType
5632
- })), {
5629
+ var bodyData = convertBodyParams(queryParams);
5630
+ var urlStr = convertUrlQueryParams(queryParams);
5631
+ // Fix: support sending params in body
5632
+ if (requestConfig.isBodyRequest) {
5633
+ if (!bodyData) {
5634
+ bodyData = convertQueryParams(queryParams);
5635
+ }
5636
+ urlStr = '';
5637
+ }
5638
+ getRequest = requestUtil[methodName]("".concat(url).concat(urlStr), bodyData, {
5633
5639
  headers: _objectSpread2({}, extralHeaders)
5634
5640
  });
5635
5641
  } else {
@@ -10478,6 +10484,25 @@ function commonFun(type, prefixUrl, parentProps) {
10478
10484
  field: {
10479
10485
  type: 'proppertySelector'
10480
10486
  }
10487
+ }, {
10488
+ name: 'qp-itemLabelId-in',
10489
+ type: 'select',
10490
+ label: '商品标签',
10491
+ field: {
10492
+ type: 'select',
10493
+ props: {
10494
+ mode: 'multiple',
10495
+ notFoundContent: '暂无数据',
10496
+ allowClear: true,
10497
+ showSearch: true,
10498
+ showArrow: true,
10499
+ maxTagCount: 1,
10500
+ optionFilterProp: 'children',
10501
+ filterOption: function filterOption(input, option) {
10502
+ return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
10503
+ }
10504
+ }
10505
+ }
10481
10506
  }];
10482
10507
  var defaultQSHL = [{
10483
10508
  isOpen: true,
@@ -10495,9 +10520,14 @@ function commonFun(type, prefixUrl, parentProps) {
10495
10520
  }, getQueryHeadersItem(_queryHeaderParams2, 'qp-brandId-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/category/queryCategoryTree"), {
10496
10521
  pageSize: 5000,
10497
10522
  currentPage: 1
10498
- }, getQueryHeadersItem(_queryHeaderParams2, 'qp-categoryId-in'))]).then(function (x) {
10523
+ }, getQueryHeadersItem(_queryHeaderParams2, 'qp-categoryId-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/label"), {
10524
+ pageSize: 500,
10525
+ currentPage: 1,
10526
+ 'qp-labelType-eq': 1
10527
+ }, getQueryHeadersItem(_queryHeaderParams2, 'qp-itemLabelId-in'))]).then(function (x) {
10499
10528
  formatSource(x, 0, 3, tableSearchForm, ['id', 'name']);
10500
10529
  formatTreeDataSource(x, 1, 4, tableSearchForm);
10530
+ formatSource(x, 2, 6, tableSearchForm, ['id', 'name']);
10501
10531
  });
10502
10532
  modalTableProps = _objectSpread2({
10503
10533
  modalTableTitle: '选择SKU',
@@ -10651,6 +10681,25 @@ function commonFun(type, prefixUrl, parentProps) {
10651
10681
  }
10652
10682
  }
10653
10683
  }
10684
+ }, {
10685
+ name: 'qp-itemLabelId-in',
10686
+ type: 'select',
10687
+ label: '商品标签',
10688
+ field: {
10689
+ type: 'select',
10690
+ props: {
10691
+ mode: 'multiple',
10692
+ notFoundContent: '暂无数据',
10693
+ allowClear: true,
10694
+ showSearch: true,
10695
+ showArrow: true,
10696
+ maxTagCount: 1,
10697
+ optionFilterProp: 'children',
10698
+ filterOption: function filterOption(input, option) {
10699
+ return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
10700
+ }
10701
+ }
10702
+ }
10654
10703
  }];
10655
10704
  var _queryHeaderParams3 = getQueryHeadersList({
10656
10705
  querySelectHeadersList: querySelectHeadersList,
@@ -10666,10 +10715,15 @@ function commonFun(type, prefixUrl, parentProps) {
10666
10715
  }, getQueryHeadersItem(_queryHeaderParams3, 'qp-categoryId-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/class/withProperty"), {
10667
10716
  pageSize: 5000,
10668
10717
  currentPage: 1
10669
- }, getQueryHeadersItem(_queryHeaderParams3, 'qp-classId-in'))]).then(function (x) {
10718
+ }, getQueryHeadersItem(_queryHeaderParams3, 'qp-classId-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/label"), {
10719
+ pageSize: 500,
10720
+ currentPage: 1,
10721
+ 'qp-labelType-eq': 1
10722
+ }, getQueryHeadersItem(_queryHeaderParams3, 'qp-itemLabelId-in'))]).then(function (x) {
10670
10723
  formatSource(x, 0, 2, tableSearchForm, ['id', 'name']);
10671
10724
  formatTreeDataSource(x, 1, 3, tableSearchForm);
10672
10725
  formatSource(x, 2, 4, tableSearchForm, ['id', 'name']);
10726
+ formatSource(x, 3, 5, tableSearchForm, ['id', 'name']);
10673
10727
  });
10674
10728
  modalTableProps = _objectSpread2({
10675
10729
  modalTableTitle: '选择商品(SPU) ',
@@ -10846,6 +10900,25 @@ function commonFun(type, prefixUrl, parentProps) {
10846
10900
  mode: 'multiple'
10847
10901
  }
10848
10902
  }
10903
+ }, {
10904
+ name: 'qp-itemLabelId-in',
10905
+ type: 'select',
10906
+ label: '商品标签',
10907
+ field: {
10908
+ type: 'select',
10909
+ props: {
10910
+ mode: 'multiple',
10911
+ notFoundContent: '暂无数据',
10912
+ allowClear: true,
10913
+ showSearch: true,
10914
+ showArrow: true,
10915
+ maxTagCount: 1,
10916
+ optionFilterProp: 'children',
10917
+ filterOption: function filterOption(input, option) {
10918
+ return option.props.children.toLowerCase().indexOf(input.toLowerCase()) >= 0;
10919
+ }
10920
+ }
10921
+ }
10849
10922
  }];
10850
10923
  var _queryHeaderParams4 = getQueryHeadersList({
10851
10924
  querySelectHeadersList: querySelectHeadersList,
@@ -10861,10 +10934,15 @@ function commonFun(type, prefixUrl, parentProps) {
10861
10934
  }, getQueryHeadersItem(_queryHeaderParams4, 'qp-categoryId-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/class/withProperty"), {
10862
10935
  pageSize: 5000,
10863
10936
  currentPage: 1
10864
- }, getQueryHeadersItem(_queryHeaderParams4, 'qp-classId-in'))]).then(function (x) {
10937
+ }, getQueryHeadersItem(_queryHeaderParams4, 'qp-classId-in')), loadSelectSource$1("".concat(prefixUrl.formSelectFix, "/label"), {
10938
+ pageSize: 500,
10939
+ currentPage: 1,
10940
+ 'qp-labelType-eq': 1
10941
+ }, getQueryHeadersItem(_queryHeaderParams4, 'qp-itemLabelId-in'))]).then(function (x) {
10865
10942
  formatSource(x, 0, 2, tableSearchForm, ['id', 'name']);
10866
10943
  formatTreeDataSource(x, 1, 3, tableSearchForm);
10867
10944
  formatSource(x, 2, 4, tableSearchForm, ['id', 'name']);
10945
+ formatSource(x, 3, 10, tableSearchForm, ['id', 'name']);
10868
10946
  });
10869
10947
  modalTableProps = _objectSpread2({
10870
10948
  modalTableTitle: '选择SPU',
@@ -34562,11 +34640,24 @@ var RuleField = /*#__PURE__*/function (_Component) {
34562
34640
  itemDetail = _this$props2$itemDeta === void 0 ? {} : _this$props2$itemDeta,
34563
34641
  _this$props2$others = _this$props2.others,
34564
34642
  others = _this$props2$others === void 0 ? {} : _this$props2$others,
34565
- propertyCode = _this$props2.propertyCode;
34643
+ propertyCode = _this$props2.propertyCode,
34644
+ isQueryParams = _this$props2.isQueryParams;
34566
34645
  var thresholdList = _this.state.thresholdList;
34567
34646
  var styleCommon = {
34568
34647
  width: customerWidth || '180px'
34569
34648
  };
34649
+ if (isQueryParams) {
34650
+ return /*#__PURE__*/React$1.createElement(Input, {
34651
+ defaultValue: values.join(','),
34652
+ disabled: disabled,
34653
+ style: styleCommon,
34654
+ onBlur: function onBlur(e) {
34655
+ values = e.target.value.split(',');
34656
+ valueNames = e.target.value.split(',');
34657
+ callback(values, valueNames);
34658
+ }
34659
+ });
34660
+ }
34570
34661
  if (!selectOperation) return /*#__PURE__*/React$1.createElement(Input, {
34571
34662
  disabled: true,
34572
34663
  style: styleCommon
@@ -37092,7 +37183,8 @@ var RuleField = /*#__PURE__*/function (_Component) {
37092
37183
  fieldValues: [],
37093
37184
  thresholdQuery: {},
37094
37185
  thresholdList: [],
37095
- options: []
37186
+ options: [],
37187
+ isQueryParams: false
37096
37188
  };
37097
37189
  return _this;
37098
37190
  }
@@ -37112,13 +37204,15 @@ var RuleField = /*#__PURE__*/function (_Component) {
37112
37204
  initialThresholdQuery = _this$props3.initialThresholdQuery,
37113
37205
  queryIdentify = _this$props3.queryIdentify,
37114
37206
  propertyCode = _this$props3.propertyCode,
37115
- queryIdentifyType = _this$props3.queryIdentifyType;
37207
+ queryIdentifyType = _this$props3.queryIdentifyType,
37208
+ isQueryParams = _this$props3.isQueryParams;
37116
37209
  this.setState({
37117
37210
  selectOperation: selectOperation,
37118
37211
  thresholdQuery: initialThresholdQuery ? _objectSpread2({}, initialThresholdQuery) : {},
37119
37212
  dataTypeCode: dataTypeCode,
37120
37213
  dataChoiceBusinessType: dataChoiceBusinessType,
37121
37214
  dataInputBusinessType: dataInputBusinessType,
37215
+ isQueryParams: isQueryParams,
37122
37216
  others: others,
37123
37217
  fieldValues: _toConsumableArray(values),
37124
37218
  options: options
@@ -38325,6 +38419,18 @@ function RenderCompItem(props) {
38325
38419
  }
38326
38420
 
38327
38421
  var RangePicker$2 = DatePicker.RangePicker;
38422
+ var FIXED_DATA_TYPES = {
38423
+ 10: '字符串',
38424
+ 20: '短整数',
38425
+ 21: '长整数',
38426
+ 22: '小数',
38427
+ 40: '数组',
38428
+ 41: '布尔值',
38429
+ 12: '富文本',
38430
+ 30: '日期',
38431
+ 31: '时间',
38432
+ 32: '日期时间'
38433
+ };
38328
38434
  var RuleObjectComponent = /*#__PURE__*/function (_Component) {
38329
38435
  function RuleObjectComponent(props) {
38330
38436
  var _this;
@@ -38368,6 +38474,8 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
38368
38474
  value: element.id,
38369
38475
  id: element.id,
38370
38476
  dataTypeCode: element.valueType,
38477
+ entityValueType: element.entityValueType,
38478
+ entityInputType: element.entityInputType,
38371
38479
  dataChoiceBusinessType: element.choiceType,
38372
38480
  dataInputBusinessType: element.inputType,
38373
38481
  info: element.info,
@@ -38389,6 +38497,8 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
38389
38497
  metaObjectCode: _this.props.metaObjectCode || item.code
38390
38498
  }, item), {}, {
38391
38499
  dataTypeCode: item.valueType,
38500
+ entityValueType: item.entityValueType,
38501
+ entityInputType: item.entityInputType,
38392
38502
  dataChoiceBusinessType: item.choiceType,
38393
38503
  dataInputBusinessType: item.inputType
38394
38504
  }));
@@ -38422,6 +38532,8 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
38422
38532
  value: element.id,
38423
38533
  id: element.id,
38424
38534
  dataTypeCode: element.valueType,
38535
+ entityValueType: element.entityValueType,
38536
+ entityInputType: element.entityInputType,
38425
38537
  dataChoiceBusinessType: element.choiceType,
38426
38538
  dataInputBusinessType: element.inputType,
38427
38539
  info: element.info,
@@ -38783,7 +38895,7 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
38783
38895
  });
38784
38896
  };
38785
38897
  _this.renderRuleItem = function (itemDetail, parentDetail, floorIndex, classDataIndex, relateDatas) {
38786
- var _itemDetail$subExpres, _itemDetail$params, _itemDetail$params$, _itemDetail$params2;
38898
+ var _itemDetail$subExpres, _itemDetail$params, _itemDetail$params$, _itemDetail$params2, _itemDetail$reqCondit, _itemDetail$reqCondit2, _itemDetail$reqCondit3, _itemDetail$reqCondit4;
38787
38899
  var ruleTreeData = _this.state.ruleTreeData;
38788
38900
  var _this$props3 = _this.props,
38789
38901
  callBack = _this$props3.callBack,
@@ -38791,7 +38903,8 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
38791
38903
  initialThresholdQuery = _this$props3$initialT === void 0 ? {} : _this$props3$initialT,
38792
38904
  disabled = _this$props3.disabled,
38793
38905
  systemVariableList = _this$props3.systemVariableList,
38794
- needShowInsertSQL = _this$props3.needShowInsertSQL;
38906
+ needShowInsertSQL = _this$props3.needShowInsertSQL,
38907
+ needShowReqCondition = _this$props3.needShowReqCondition;
38795
38908
  var thresholdQuery = _objectSpread2(_objectSpread2({}, initialThresholdQuery), relateDatas);
38796
38909
  var finalIndex = floorIndex + 1;
38797
38910
  var queryIdentify = '';
@@ -38882,6 +38995,8 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
38882
38995
  itemDetail.elementId = nodeInfo.triggerNode.props.id;
38883
38996
  itemDetail.elementName = nodeInfo.triggerNode.props.title;
38884
38997
  itemDetail.dataTypeCode = nodeInfo.triggerNode.props.dataTypeCode;
38998
+ itemDetail.entityValueType = nodeInfo.triggerNode.props.entityValueType;
38999
+ itemDetail.entityInputType = nodeInfo.triggerNode.props.entityInputType;
38885
39000
  itemDetail.metaObjectCode = nodeInfo.triggerNode.props.metaObjectCode;
38886
39001
  itemDetail.isInsertParam = false;
38887
39002
  if (needShowInsertSQL) {
@@ -39051,12 +39166,13 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
39051
39166
  }
39052
39167
  }, (itemDetail === null || itemDetail === void 0 ? void 0 : itemDetail.isInsertSQL) ? '取消插入SQL' : '插入SQL')), /*#__PURE__*/React$1.createElement("div", {
39053
39168
  style: {
39054
- display: itemDetail.operationType == 'logic' && !disabled ? 'block' : 'none'
39169
+ display: itemDetail.operationType == 'logic' && (!disabled || itemDetail.reqConditionData && itemDetail.reqConditionData.reqParamName && ((_itemDetail$reqCondit = itemDetail.reqConditionData.params) === null || _itemDetail$reqCondit === void 0 ? void 0 : _itemDetail$reqCondit.length)) ? 'block' : 'none'
39055
39170
  }
39056
39171
  }, /*#__PURE__*/React$1.createElement("span", {
39057
39172
  style: {
39058
39173
  color: '#008fe0',
39059
- cursor: 'pointer'
39174
+ cursor: 'pointer',
39175
+ display: disabled ? 'none' : 'inline'
39060
39176
  },
39061
39177
  type: "link",
39062
39178
  onClick: function onClick() {
@@ -39068,7 +39184,107 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
39068
39184
  fontSize: '14px',
39069
39185
  marginRight: '5px'
39070
39186
  }
39071
- }), "\u6DFB\u52A0\u6761\u4EF6"))));
39187
+ }), "\u6DFB\u52A0\u6761\u4EF6"), needShowReqCondition && /*#__PURE__*/React$1.createElement("span", {
39188
+ style: {
39189
+ marginLeft: 10,
39190
+ display: disabled ? 'none' : 'inline'
39191
+ }
39192
+ }, /*#__PURE__*/React$1.createElement(Button, {
39193
+ type: "link",
39194
+ disabled: disabled && (!itemDetail.reqConditionData || !itemDetail.reqConditionData.reqParamName || !((_itemDetail$reqCondit2 = itemDetail.reqConditionData.params) === null || _itemDetail$reqCondit2 === void 0 ? void 0 : _itemDetail$reqCondit2.length)),
39195
+ style: {
39196
+ padding: 0,
39197
+ height: 'auto'
39198
+ },
39199
+ onClick: function onClick() {
39200
+ return _this.handleReqConditionToggle(itemDetail);
39201
+ }
39202
+ }, itemDetail.isReqCondition ? '取消参数条件控制' : '参数条件控制')), (itemDetail.isReqCondition || disabled && itemDetail.reqConditionData && itemDetail.reqConditionData.reqParamName && ((_itemDetail$reqCondit3 = itemDetail.reqConditionData.params) === null || _itemDetail$reqCondit3 === void 0 ? void 0 : _itemDetail$reqCondit3.length)) && itemDetail.reqConditionData && /*#__PURE__*/React$1.createElement("div", {
39203
+ style: {
39204
+ marginTop: 10,
39205
+ display: disabled && (!itemDetail.reqConditionData.reqParamName || !((_itemDetail$reqCondit4 = itemDetail.reqConditionData.params) === null || _itemDetail$reqCondit4 === void 0 ? void 0 : _itemDetail$reqCondit4.length)) ? 'none' : 'flex',
39206
+ alignItems: 'center',
39207
+ background: '#f5f5f5',
39208
+ padding: '10px',
39209
+ borderRadius: '4px'
39210
+ }
39211
+ }, /*#__PURE__*/React$1.createElement("span", {
39212
+ style: {
39213
+ marginRight: 8,
39214
+ flexShrink: 0
39215
+ }
39216
+ }, "\u8BF7\u6C42\u53C2\u6570\u540D\u79F0:"), /*#__PURE__*/React$1.createElement(Input, {
39217
+ disabled: disabled,
39218
+ style: {
39219
+ width: 150,
39220
+ marginRight: 10
39221
+ },
39222
+ value: itemDetail.reqConditionData.reqParamName,
39223
+ onChange: function onChange(e) {
39224
+ return _this.handleReqDataChange(itemDetail, 'reqParamName', e.target.value);
39225
+ }
39226
+ }), /*#__PURE__*/React$1.createElement("span", {
39227
+ style: {
39228
+ marginRight: 8,
39229
+ flexShrink: 0
39230
+ }
39231
+ }, "\u7C7B\u578B:"), /*#__PURE__*/React$1.createElement(Select, {
39232
+ disabled: disabled,
39233
+ style: {
39234
+ width: 120,
39235
+ marginRight: 10
39236
+ },
39237
+ value: itemDetail.reqConditionData.dataTypeCode,
39238
+ onChange: function onChange(val) {
39239
+ return _this.handleReqDataChange(itemDetail, 'dataTypeCode', val);
39240
+ }
39241
+ }, Object.keys(FIXED_DATA_TYPES).map(function (code) {
39242
+ return /*#__PURE__*/React$1.createElement(Select.Option, {
39243
+ key: code,
39244
+ value: code
39245
+ }, FIXED_DATA_TYPES[code]);
39246
+ })), /*#__PURE__*/React$1.createElement(Select, {
39247
+ disabled: disabled,
39248
+ style: {
39249
+ width: 120,
39250
+ marginRight: 10
39251
+ },
39252
+ value: itemDetail.reqConditionData.operationCode,
39253
+ onChange: function onChange(val) {
39254
+ return _this.handleReqDataChange(itemDetail, 'operationCode', val);
39255
+ }
39256
+ }, [{
39257
+ 'code': '1',
39258
+ 'name': '在集合'
39259
+ }, {
39260
+ 'code': '2',
39261
+ 'name': '不等于'
39262
+ }, {
39263
+ code: '3',
39264
+ name: '小于'
39265
+ }, {
39266
+ code: '4',
39267
+ name: '大于'
39268
+ }, {
39269
+ code: '5',
39270
+ name: '等于'
39271
+ }].map(function (op) {
39272
+ return /*#__PURE__*/React$1.createElement(Select.Option, {
39273
+ key: op.code,
39274
+ value: op.code
39275
+ }, op.name);
39276
+ })), /*#__PURE__*/React$1.createElement(RuleField, {
39277
+ customerWidth: '180px',
39278
+ isQueryParams: true,
39279
+ selectOperation: itemDetail.reqConditionData.operationCode,
39280
+ dataTypeCode: itemDetail.reqConditionData.dataTypeCode,
39281
+ values: itemDetail.reqConditionData.params || [],
39282
+ valueNames: itemDetail.reqConditionData.paramNames || [],
39283
+ callback: function callback(newValues, newValueNames) {
39284
+ return _this.handleReqDataChange(itemDetail, 'params', newValues, newValueNames);
39285
+ },
39286
+ disabled: disabled
39287
+ })))));
39072
39288
  };
39073
39289
  _this.handleEditExtraInfoResponse = function (code, val, parentDetail, classDataIndex, key) {
39074
39290
  var ruleClassData = _this.state.ruleClassData;
@@ -39384,6 +39600,8 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
39384
39600
  delete itemDetail.params;
39385
39601
  delete itemDetail.paramNames;
39386
39602
  delete itemDetail.dataTypeCode;
39603
+ delete itemDetail.entityValueType;
39604
+ delete itemDetail.entityInputType;
39387
39605
  delete itemDetail.elementId;
39388
39606
  delete itemDetail.elementName;
39389
39607
  delete itemDetail.metaObjectCode;
@@ -39434,6 +39652,8 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
39434
39652
  parentDetail.elementId = parentDetail.subExpression[0].elementId;
39435
39653
  parentDetail.elementName = parentDetail.subExpression[0].elementName;
39436
39654
  parentDetail.dataTypeCode = parentDetail.subExpression[0].dataTypeCode;
39655
+ parentDetail.entityValueType = parentDetail.subExpression[0].entityValueType;
39656
+ parentDetail.entityInputType = parentDetail.subExpression[0].entityInputType;
39437
39657
  delete parentDetail.subExpression;
39438
39658
  }
39439
39659
  }
@@ -39507,6 +39727,55 @@ var RuleObjectComponent = /*#__PURE__*/function (_Component) {
39507
39727
  callBack(ruleClassData);
39508
39728
  });
39509
39729
  };
39730
+ _this.handleReqConditionToggle = function (itemDetail) {
39731
+ var ruleClassData = _this.state.ruleClassData;
39732
+ var callBack = _this.props.callBack;
39733
+ itemDetail.isReqCondition = !itemDetail.isReqCondition;
39734
+ if (itemDetail.isReqCondition && !itemDetail.reqConditionData) {
39735
+ itemDetail.reqConditionData = {
39736
+ operationType: 'relation',
39737
+ dataTypeCode: '10',
39738
+ entityInputType: '10',
39739
+ entityValueType: '10',
39740
+ operationCode: '',
39741
+ reqParamName: '',
39742
+ params: [],
39743
+ paramNames: []
39744
+ };
39745
+ }
39746
+ _this.setState({
39747
+ ruleClassData: ruleClassData
39748
+ }, function () {
39749
+ callBack(ruleClassData);
39750
+ });
39751
+ };
39752
+ _this.handleReqDataChange = function (itemDetail, field, value, valueNames) {
39753
+ var ruleClassData = _this.state.ruleClassData;
39754
+ var callBack = _this.props.callBack;
39755
+ if (!itemDetail.reqConditionData) return;
39756
+ if (field === 'dataTypeCode') {
39757
+ itemDetail.reqConditionData.dataTypeCode = value;
39758
+ itemDetail.reqConditionData.entityInputType = value;
39759
+ itemDetail.reqConditionData.entityValueType = value;
39760
+ itemDetail.reqConditionData.operationCode = '';
39761
+ itemDetail.reqConditionData.params = [];
39762
+ itemDetail.reqConditionData.paramNames = [];
39763
+ } else if (field === 'operationCode') {
39764
+ itemDetail.reqConditionData.operationCode = value;
39765
+ } else if (field === 'reqParamName') {
39766
+ itemDetail.reqConditionData.reqParamName = value;
39767
+ } else if (field === 'params') {
39768
+ itemDetail.reqConditionData.params = value;
39769
+ if (valueNames) {
39770
+ itemDetail.reqConditionData.paramNames = valueNames;
39771
+ }
39772
+ }
39773
+ _this.setState({
39774
+ ruleClassData: ruleClassData
39775
+ }, function () {
39776
+ callBack(ruleClassData);
39777
+ });
39778
+ };
39510
39779
  _this.state = {
39511
39780
  editNameIndex: 0,
39512
39781
  isEdit: false,