@kmkf-fe-packages/basic-components 2.0.65 → 2.0.66

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
@@ -18648,7 +18648,8 @@ var CommonReturnGoods = function CommonReturnGoods(props) {
18648
18648
  _props$reasonList = props.reasonList,
18649
18649
  reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
18650
18650
  disabled = props.disabled,
18651
- compType = props.type;
18651
+ compType = props.type,
18652
+ isSettingConfig = props.isSettingConfig;
18652
18653
  var valueRef = useRef({});
18653
18654
  useEffect(function () {
18654
18655
  var subscription = pubsub.subscribe(componentMap$2[compType].eventNameMap.exchangeCopyGood, function () {
@@ -18740,7 +18741,7 @@ var CommonReturnGoods = function CommonReturnGoods(props) {
18740
18741
  var newValue = _objectSpread2({}, value);
18741
18742
  newValue[componentMap$2[compType].returnTypeKey] = val;
18742
18743
  newValue[componentMap$2[compType].valueKey] = [];
18743
- if (['2'].includes(val[0])) {
18744
+ if (isSettingConfig || ['2'].includes(val[0])) {
18744
18745
  onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
18745
18746
  valueRef.current = newValue;
18746
18747
  }
@@ -18762,7 +18763,7 @@ var CommonReturnGoods = function CommonReturnGoods(props) {
18762
18763
  style: {
18763
18764
  marginBottom: '8px'
18764
18765
  },
18765
- disabled: disabled,
18766
+ disabled: isSettingConfig ? !isSettingConfig : disabled,
18766
18767
  allowClear: false,
18767
18768
  options: reasonList,
18768
18769
  value: value === null || value === void 0 ? void 0 : value[componentMap$2[compType].returnTypeKey],
@@ -18944,7 +18945,7 @@ var CommonExchangeGoods = function CommonExchangeGoods(props) {
18944
18945
  })));
18945
18946
  };
18946
18947
 
18947
- var _excluded$i = ["value", "onChange", "reasonList", "disabled", "type"];
18948
+ var _excluded$i = ["value", "onChange", "reasonList", "disabled", "type", "isSettingConfig"];
18948
18949
  var typeMap$1 = {
18949
18950
  WDT_REISSUE_GOODS: {
18950
18951
  key: 'wdtReissueGoods',
@@ -18972,6 +18973,7 @@ var wdtReissue = function wdtReissue(props) {
18972
18973
  reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
18973
18974
  disabled = props.disabled,
18974
18975
  type = props.type,
18976
+ isSettingConfig = props.isSettingConfig,
18975
18977
  other = _objectWithoutProperties(props, _excluded$i);
18976
18978
  var showModeBtn = ((value === null || value === void 0 ? void 0 : (_value$wdtSystemOrder = value.wdtSystemOrder) === null || _value$wdtSystemOrder === void 0 ? void 0 : _value$wdtSystemOrder.orders) || []).some(function (order) {
18977
18979
  var _order$srcTid;
@@ -19156,7 +19158,8 @@ var wdtReissue = function wdtReissue(props) {
19156
19158
  }
19157
19159
  }, /*#__PURE__*/React.createElement(Select, {
19158
19160
  style: {
19159
- marginBottom: '8px'
19161
+ marginBottom: '8px',
19162
+ width: '100%'
19160
19163
  },
19161
19164
  disabled: disabled,
19162
19165
  allowClear: false,
@@ -19181,9 +19184,10 @@ var wdtReissue = function wdtReissue(props) {
19181
19184
  }
19182
19185
  }, /*#__PURE__*/React.createElement(Cascader, {
19183
19186
  style: {
19184
- marginBottom: '8px'
19187
+ marginBottom: '8px',
19188
+ width: '100%'
19185
19189
  },
19186
- disabled: disabled,
19190
+ disabled: isSettingConfig ? !isSettingConfig : disabled,
19187
19191
  allowClear: false,
19188
19192
  options: reasonList,
19189
19193
  value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type28 = typeMap$1[type]) === null || _typeMap$type28 === void 0 ? void 0 : _typeMap$type28.typeName)],
@@ -19214,7 +19218,7 @@ var wdtReissue = function wdtReissue(props) {
19214
19218
  })));
19215
19219
  };
19216
19220
 
19217
- var _excluded$j = ["value", "onChange", "reasonList", "disabled", "type"];
19221
+ var _excluded$j = ["value", "onChange", "reasonList", "disabled", "type", "isSettingConfig"];
19218
19222
  var typeMap$2 = {
19219
19223
  JST_REISSUE_GOODS: {
19220
19224
  compType: '补发',
@@ -19262,6 +19266,7 @@ var PublicReissue = function PublicReissue(props) {
19262
19266
  reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
19263
19267
  disabled = props.disabled,
19264
19268
  type = props.type,
19269
+ isSettingConfig = props.isSettingConfig,
19265
19270
  other = _objectWithoutProperties(props, _excluded$j);
19266
19271
  var getOrderFlag = useRef(false);
19267
19272
  var _useState = useState(false),
@@ -19443,7 +19448,8 @@ var PublicReissue = function PublicReissue(props) {
19443
19448
  }
19444
19449
  }, /*#__PURE__*/React.createElement(Select, {
19445
19450
  style: {
19446
- marginBottom: '8px'
19451
+ marginBottom: '8px',
19452
+ width: '100%'
19447
19453
  },
19448
19454
  disabled: disabled,
19449
19455
  allowClear: false,
@@ -19468,16 +19474,17 @@ var PublicReissue = function PublicReissue(props) {
19468
19474
  }
19469
19475
  }, /*#__PURE__*/React.createElement(Cascader, {
19470
19476
  style: {
19471
- marginBottom: '8px'
19477
+ marginBottom: '8px',
19478
+ width: '100%'
19472
19479
  },
19473
- disabled: disabled,
19480
+ disabled: isSettingConfig ? !isSettingConfig : disabled,
19474
19481
  allowClear: false,
19475
19482
  options: reasonList,
19476
19483
  value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type39 = typeMap$2[type]) === null || _typeMap$type39 === void 0 ? void 0 : _typeMap$type39.typeName)],
19477
19484
  onChange: function onChange(val) {
19478
19485
  return changeTypeHandle(val);
19479
19486
  }
19480
- })), (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type40 = typeMap$2[type]) === null || _typeMap$type40 === void 0 ? void 0 : _typeMap$type40.systemOrderBillType) && /*#__PURE__*/React.createElement(Col, {
19487
+ })), (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type40 = typeMap$2[type]) === null || _typeMap$type40 === void 0 ? void 0 : _typeMap$type40.systemOrderBillType) && !isSettingConfig && /*#__PURE__*/React.createElement(Col, {
19481
19488
  className: "gutter-row",
19482
19489
  xs: {
19483
19490
  span: 11
@@ -20321,7 +20328,7 @@ var CalculationInput = function CalculationInput(props) {
20321
20328
  }, config === null || config === void 0 ? void 0 : config.unit));
20322
20329
  };
20323
20330
 
20324
- var _excluded$o = ["value", "onChange", "reasonList", "disabled", "type"];
20331
+ var _excluded$o = ["value", "onChange", "reasonList", "disabled", "type", "isSettingConfig"];
20325
20332
  var typeMap$3 = {
20326
20333
  BS_E3_REISSUE_GOODS: {
20327
20334
  key: 'bsE3ReissueGoods',
@@ -20339,6 +20346,7 @@ var bsE3Reissue = function bsE3Reissue(props) {
20339
20346
  reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
20340
20347
  disabled = props.disabled,
20341
20348
  type = props.type,
20349
+ isSettingConfig = props.isSettingConfig,
20342
20350
  other = _objectWithoutProperties(props, _excluded$o);
20343
20351
  var getOrderFlag = useRef(false);
20344
20352
  var valueRef = useRef(null);
@@ -20499,7 +20507,8 @@ var bsE3Reissue = function bsE3Reissue(props) {
20499
20507
  }
20500
20508
  }, /*#__PURE__*/React.createElement(Select, {
20501
20509
  style: {
20502
- marginBottom: '8px'
20510
+ marginBottom: '8px',
20511
+ width: '100%'
20503
20512
  },
20504
20513
  disabled: disabled,
20505
20514
  allowClear: false,
@@ -20524,9 +20533,10 @@ var bsE3Reissue = function bsE3Reissue(props) {
20524
20533
  }
20525
20534
  }, /*#__PURE__*/React.createElement(Cascader, {
20526
20535
  style: {
20527
- marginBottom: '8px'
20536
+ marginBottom: '8px',
20537
+ width: '100%'
20528
20538
  },
20529
- disabled: disabled,
20539
+ disabled: isSettingConfig ? !isSettingConfig : disabled,
20530
20540
  allowClear: false,
20531
20541
  options: reasonList,
20532
20542
  value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$3 === null || typeMap$3 === void 0 ? void 0 : (_typeMap$type27 = typeMap$3[type]) === null || _typeMap$type27 === void 0 ? void 0 : _typeMap$type27.typeName)],
@@ -20557,7 +20567,7 @@ var bsE3Reissue = function bsE3Reissue(props) {
20557
20567
  })));
20558
20568
  };
20559
20569
 
20560
- var _excluded$p = ["value", "onChange", "reasonList", "disabled", "type"],
20570
+ var _excluded$p = ["value", "onChange", "reasonList", "disabled", "type", "isSettingConfig"],
20561
20571
  _excluded2 = ["billNo", "billType", "billTag", "tradeTagName", "deliveryState", "vipCode", "shopCode"];
20562
20572
  var typeMap$4 = {
20563
20573
  GY_REISSUE_GOODS: {
@@ -20586,6 +20596,7 @@ var GyReissue = function GyReissue(props) {
20586
20596
  reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
20587
20597
  disabled = props.disabled,
20588
20598
  type = props.type,
20599
+ isSettingConfig = props.isSettingConfig,
20589
20600
  other = _objectWithoutProperties(props, _excluded$p);
20590
20601
  // const showModeBtn = (value?.gySystemOrder?.orders || []).some((order: any) =>
20591
20602
  // order?.platformCode?.includes(';'),
@@ -20767,7 +20778,8 @@ var GyReissue = function GyReissue(props) {
20767
20778
  }
20768
20779
  }, /*#__PURE__*/React.createElement(Select, {
20769
20780
  style: {
20770
- marginBottom: '8px'
20781
+ marginBottom: '8px',
20782
+ width: '100%'
20771
20783
  },
20772
20784
  disabled: disabled,
20773
20785
  allowClear: false,
@@ -20792,9 +20804,10 @@ var GyReissue = function GyReissue(props) {
20792
20804
  }
20793
20805
  }, /*#__PURE__*/React.createElement(Cascader, {
20794
20806
  style: {
20795
- marginBottom: '8px'
20807
+ marginBottom: '8px',
20808
+ width: '100%'
20796
20809
  },
20797
- disabled: disabled,
20810
+ disabled: isSettingConfig ? !isSettingConfig : disabled,
20798
20811
  allowClear: false,
20799
20812
  options: reasonList,
20800
20813
  value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$type32 = typeMap$4[type]) === null || _typeMap$type32 === void 0 ? void 0 : _typeMap$type32.typeName)],
@@ -20826,7 +20839,7 @@ var GyReissue = function GyReissue(props) {
20826
20839
  })));
20827
20840
  };
20828
20841
 
20829
- var _excluded$q = ["value", "onChange", "reasonList", "disabled", "type"],
20842
+ var _excluded$q = ["value", "onChange", "reasonList", "disabled", "type", "isSettingConfig"],
20830
20843
  _excluded2$1 = ["billNo", "billType", "billTag", "tradeTagName", "deliveryState", "vipCode", "shopCode"];
20831
20844
  var typeMap$5 = {
20832
20845
  GY_RETURN_GOODS: {
@@ -20855,6 +20868,7 @@ var GyReturnGoods = function GyReturnGoods(props) {
20855
20868
  reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
20856
20869
  disabled = props.disabled,
20857
20870
  type = props.type,
20871
+ isSettingConfig = props.isSettingConfig,
20858
20872
  other = _objectWithoutProperties(props, _excluded$q);
20859
20873
  var valueRef = useRef({});
20860
20874
  var getOrderFlag = useRef(false);
@@ -21057,7 +21071,8 @@ var GyReturnGoods = function GyReturnGoods(props) {
21057
21071
  }
21058
21072
  }, /*#__PURE__*/React.createElement(Select, {
21059
21073
  style: {
21060
- marginBottom: '8px'
21074
+ marginBottom: '8px',
21075
+ width: '100%'
21061
21076
  },
21062
21077
  disabled: disabled,
21063
21078
  allowClear: false,
@@ -21082,9 +21097,10 @@ var GyReturnGoods = function GyReturnGoods(props) {
21082
21097
  }
21083
21098
  }, /*#__PURE__*/React.createElement(Cascader, {
21084
21099
  style: {
21085
- marginBottom: '8px'
21100
+ marginBottom: '8px',
21101
+ width: '100%'
21086
21102
  },
21087
- disabled: disabled,
21103
+ disabled: isSettingConfig ? !isSettingConfig : disabled,
21088
21104
  allowClear: false,
21089
21105
  options: reasonList,
21090
21106
  value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$5 === null || typeMap$5 === void 0 ? void 0 : (_typeMap$type30 = typeMap$5[type]) === null || _typeMap$type30 === void 0 ? void 0 : _typeMap$type30.typeName)],
package/dist/index.js CHANGED
@@ -18660,7 +18660,8 @@ var CommonReturnGoods = function CommonReturnGoods(props) {
18660
18660
  _props$reasonList = props.reasonList,
18661
18661
  reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
18662
18662
  disabled = props.disabled,
18663
- compType = props.type;
18663
+ compType = props.type,
18664
+ isSettingConfig = props.isSettingConfig;
18664
18665
  var valueRef = React.useRef({});
18665
18666
  React.useEffect(function () {
18666
18667
  var subscription = pubsub__default['default'].subscribe(componentMap$2[compType].eventNameMap.exchangeCopyGood, function () {
@@ -18752,7 +18753,7 @@ var CommonReturnGoods = function CommonReturnGoods(props) {
18752
18753
  var newValue = _objectSpread2({}, value);
18753
18754
  newValue[componentMap$2[compType].returnTypeKey] = val;
18754
18755
  newValue[componentMap$2[compType].valueKey] = [];
18755
- if (['2'].includes(val[0])) {
18756
+ if (isSettingConfig || ['2'].includes(val[0])) {
18756
18757
  onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
18757
18758
  valueRef.current = newValue;
18758
18759
  }
@@ -18774,7 +18775,7 @@ var CommonReturnGoods = function CommonReturnGoods(props) {
18774
18775
  style: {
18775
18776
  marginBottom: '8px'
18776
18777
  },
18777
- disabled: disabled,
18778
+ disabled: isSettingConfig ? !isSettingConfig : disabled,
18778
18779
  allowClear: false,
18779
18780
  options: reasonList,
18780
18781
  value: value === null || value === void 0 ? void 0 : value[componentMap$2[compType].returnTypeKey],
@@ -18956,7 +18957,7 @@ var CommonExchangeGoods = function CommonExchangeGoods(props) {
18956
18957
  })));
18957
18958
  };
18958
18959
 
18959
- var _excluded$i = ["value", "onChange", "reasonList", "disabled", "type"];
18960
+ var _excluded$i = ["value", "onChange", "reasonList", "disabled", "type", "isSettingConfig"];
18960
18961
  var typeMap$1 = {
18961
18962
  WDT_REISSUE_GOODS: {
18962
18963
  key: 'wdtReissueGoods',
@@ -18984,6 +18985,7 @@ var wdtReissue = function wdtReissue(props) {
18984
18985
  reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
18985
18986
  disabled = props.disabled,
18986
18987
  type = props.type,
18988
+ isSettingConfig = props.isSettingConfig,
18987
18989
  other = _objectWithoutProperties(props, _excluded$i);
18988
18990
  var showModeBtn = ((value === null || value === void 0 ? void 0 : (_value$wdtSystemOrder = value.wdtSystemOrder) === null || _value$wdtSystemOrder === void 0 ? void 0 : _value$wdtSystemOrder.orders) || []).some(function (order) {
18989
18991
  var _order$srcTid;
@@ -19168,7 +19170,8 @@ var wdtReissue = function wdtReissue(props) {
19168
19170
  }
19169
19171
  }, /*#__PURE__*/React__default['default'].createElement(antd.Select, {
19170
19172
  style: {
19171
- marginBottom: '8px'
19173
+ marginBottom: '8px',
19174
+ width: '100%'
19172
19175
  },
19173
19176
  disabled: disabled,
19174
19177
  allowClear: false,
@@ -19193,9 +19196,10 @@ var wdtReissue = function wdtReissue(props) {
19193
19196
  }
19194
19197
  }, /*#__PURE__*/React__default['default'].createElement(antd.Cascader, {
19195
19198
  style: {
19196
- marginBottom: '8px'
19199
+ marginBottom: '8px',
19200
+ width: '100%'
19197
19201
  },
19198
- disabled: disabled,
19202
+ disabled: isSettingConfig ? !isSettingConfig : disabled,
19199
19203
  allowClear: false,
19200
19204
  options: reasonList,
19201
19205
  value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$1 === null || typeMap$1 === void 0 ? void 0 : (_typeMap$type28 = typeMap$1[type]) === null || _typeMap$type28 === void 0 ? void 0 : _typeMap$type28.typeName)],
@@ -19226,7 +19230,7 @@ var wdtReissue = function wdtReissue(props) {
19226
19230
  })));
19227
19231
  };
19228
19232
 
19229
- var _excluded$j = ["value", "onChange", "reasonList", "disabled", "type"];
19233
+ var _excluded$j = ["value", "onChange", "reasonList", "disabled", "type", "isSettingConfig"];
19230
19234
  var typeMap$2 = {
19231
19235
  JST_REISSUE_GOODS: {
19232
19236
  compType: '补发',
@@ -19274,6 +19278,7 @@ var PublicReissue = function PublicReissue(props) {
19274
19278
  reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
19275
19279
  disabled = props.disabled,
19276
19280
  type = props.type,
19281
+ isSettingConfig = props.isSettingConfig,
19277
19282
  other = _objectWithoutProperties(props, _excluded$j);
19278
19283
  var getOrderFlag = React.useRef(false);
19279
19284
  var _useState = React.useState(false),
@@ -19455,7 +19460,8 @@ var PublicReissue = function PublicReissue(props) {
19455
19460
  }
19456
19461
  }, /*#__PURE__*/React__default['default'].createElement(antd.Select, {
19457
19462
  style: {
19458
- marginBottom: '8px'
19463
+ marginBottom: '8px',
19464
+ width: '100%'
19459
19465
  },
19460
19466
  disabled: disabled,
19461
19467
  allowClear: false,
@@ -19480,16 +19486,17 @@ var PublicReissue = function PublicReissue(props) {
19480
19486
  }
19481
19487
  }, /*#__PURE__*/React__default['default'].createElement(antd.Cascader, {
19482
19488
  style: {
19483
- marginBottom: '8px'
19489
+ marginBottom: '8px',
19490
+ width: '100%'
19484
19491
  },
19485
- disabled: disabled,
19492
+ disabled: isSettingConfig ? !isSettingConfig : disabled,
19486
19493
  allowClear: false,
19487
19494
  options: reasonList,
19488
19495
  value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type39 = typeMap$2[type]) === null || _typeMap$type39 === void 0 ? void 0 : _typeMap$type39.typeName)],
19489
19496
  onChange: function onChange(val) {
19490
19497
  return changeTypeHandle(val);
19491
19498
  }
19492
- })), (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type40 = typeMap$2[type]) === null || _typeMap$type40 === void 0 ? void 0 : _typeMap$type40.systemOrderBillType) && /*#__PURE__*/React__default['default'].createElement(antd.Col, {
19499
+ })), (typeMap$2 === null || typeMap$2 === void 0 ? void 0 : (_typeMap$type40 = typeMap$2[type]) === null || _typeMap$type40 === void 0 ? void 0 : _typeMap$type40.systemOrderBillType) && !isSettingConfig && /*#__PURE__*/React__default['default'].createElement(antd.Col, {
19493
19500
  className: "gutter-row",
19494
19501
  xs: {
19495
19502
  span: 11
@@ -20333,7 +20340,7 @@ var CalculationInput = function CalculationInput(props) {
20333
20340
  }, config === null || config === void 0 ? void 0 : config.unit));
20334
20341
  };
20335
20342
 
20336
- var _excluded$o = ["value", "onChange", "reasonList", "disabled", "type"];
20343
+ var _excluded$o = ["value", "onChange", "reasonList", "disabled", "type", "isSettingConfig"];
20337
20344
  var typeMap$3 = {
20338
20345
  BS_E3_REISSUE_GOODS: {
20339
20346
  key: 'bsE3ReissueGoods',
@@ -20351,6 +20358,7 @@ var bsE3Reissue = function bsE3Reissue(props) {
20351
20358
  reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
20352
20359
  disabled = props.disabled,
20353
20360
  type = props.type,
20361
+ isSettingConfig = props.isSettingConfig,
20354
20362
  other = _objectWithoutProperties(props, _excluded$o);
20355
20363
  var getOrderFlag = React.useRef(false);
20356
20364
  var valueRef = React.useRef(null);
@@ -20511,7 +20519,8 @@ var bsE3Reissue = function bsE3Reissue(props) {
20511
20519
  }
20512
20520
  }, /*#__PURE__*/React__default['default'].createElement(antd.Select, {
20513
20521
  style: {
20514
- marginBottom: '8px'
20522
+ marginBottom: '8px',
20523
+ width: '100%'
20515
20524
  },
20516
20525
  disabled: disabled,
20517
20526
  allowClear: false,
@@ -20536,9 +20545,10 @@ var bsE3Reissue = function bsE3Reissue(props) {
20536
20545
  }
20537
20546
  }, /*#__PURE__*/React__default['default'].createElement(antd.Cascader, {
20538
20547
  style: {
20539
- marginBottom: '8px'
20548
+ marginBottom: '8px',
20549
+ width: '100%'
20540
20550
  },
20541
- disabled: disabled,
20551
+ disabled: isSettingConfig ? !isSettingConfig : disabled,
20542
20552
  allowClear: false,
20543
20553
  options: reasonList,
20544
20554
  value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$3 === null || typeMap$3 === void 0 ? void 0 : (_typeMap$type27 = typeMap$3[type]) === null || _typeMap$type27 === void 0 ? void 0 : _typeMap$type27.typeName)],
@@ -20569,7 +20579,7 @@ var bsE3Reissue = function bsE3Reissue(props) {
20569
20579
  })));
20570
20580
  };
20571
20581
 
20572
- var _excluded$p = ["value", "onChange", "reasonList", "disabled", "type"],
20582
+ var _excluded$p = ["value", "onChange", "reasonList", "disabled", "type", "isSettingConfig"],
20573
20583
  _excluded2 = ["billNo", "billType", "billTag", "tradeTagName", "deliveryState", "vipCode", "shopCode"];
20574
20584
  var typeMap$4 = {
20575
20585
  GY_REISSUE_GOODS: {
@@ -20598,6 +20608,7 @@ var GyReissue = function GyReissue(props) {
20598
20608
  reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
20599
20609
  disabled = props.disabled,
20600
20610
  type = props.type,
20611
+ isSettingConfig = props.isSettingConfig,
20601
20612
  other = _objectWithoutProperties(props, _excluded$p);
20602
20613
  // const showModeBtn = (value?.gySystemOrder?.orders || []).some((order: any) =>
20603
20614
  // order?.platformCode?.includes(';'),
@@ -20779,7 +20790,8 @@ var GyReissue = function GyReissue(props) {
20779
20790
  }
20780
20791
  }, /*#__PURE__*/React__default['default'].createElement(antd.Select, {
20781
20792
  style: {
20782
- marginBottom: '8px'
20793
+ marginBottom: '8px',
20794
+ width: '100%'
20783
20795
  },
20784
20796
  disabled: disabled,
20785
20797
  allowClear: false,
@@ -20804,9 +20816,10 @@ var GyReissue = function GyReissue(props) {
20804
20816
  }
20805
20817
  }, /*#__PURE__*/React__default['default'].createElement(antd.Cascader, {
20806
20818
  style: {
20807
- marginBottom: '8px'
20819
+ marginBottom: '8px',
20820
+ width: '100%'
20808
20821
  },
20809
- disabled: disabled,
20822
+ disabled: isSettingConfig ? !isSettingConfig : disabled,
20810
20823
  allowClear: false,
20811
20824
  options: reasonList,
20812
20825
  value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$4 === null || typeMap$4 === void 0 ? void 0 : (_typeMap$type32 = typeMap$4[type]) === null || _typeMap$type32 === void 0 ? void 0 : _typeMap$type32.typeName)],
@@ -20838,7 +20851,7 @@ var GyReissue = function GyReissue(props) {
20838
20851
  })));
20839
20852
  };
20840
20853
 
20841
- var _excluded$q = ["value", "onChange", "reasonList", "disabled", "type"],
20854
+ var _excluded$q = ["value", "onChange", "reasonList", "disabled", "type", "isSettingConfig"],
20842
20855
  _excluded2$1 = ["billNo", "billType", "billTag", "tradeTagName", "deliveryState", "vipCode", "shopCode"];
20843
20856
  var typeMap$5 = {
20844
20857
  GY_RETURN_GOODS: {
@@ -20867,6 +20880,7 @@ var GyReturnGoods = function GyReturnGoods(props) {
20867
20880
  reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
20868
20881
  disabled = props.disabled,
20869
20882
  type = props.type,
20883
+ isSettingConfig = props.isSettingConfig,
20870
20884
  other = _objectWithoutProperties(props, _excluded$q);
20871
20885
  var valueRef = React.useRef({});
20872
20886
  var getOrderFlag = React.useRef(false);
@@ -21069,7 +21083,8 @@ var GyReturnGoods = function GyReturnGoods(props) {
21069
21083
  }
21070
21084
  }, /*#__PURE__*/React__default['default'].createElement(antd.Select, {
21071
21085
  style: {
21072
- marginBottom: '8px'
21086
+ marginBottom: '8px',
21087
+ width: '100%'
21073
21088
  },
21074
21089
  disabled: disabled,
21075
21090
  allowClear: false,
@@ -21094,9 +21109,10 @@ var GyReturnGoods = function GyReturnGoods(props) {
21094
21109
  }
21095
21110
  }, /*#__PURE__*/React__default['default'].createElement(antd.Cascader, {
21096
21111
  style: {
21097
- marginBottom: '8px'
21112
+ marginBottom: '8px',
21113
+ width: '100%'
21098
21114
  },
21099
- disabled: disabled,
21115
+ disabled: isSettingConfig ? !isSettingConfig : disabled,
21100
21116
  allowClear: false,
21101
21117
  options: reasonList,
21102
21118
  value: value === null || value === void 0 ? void 0 : value["".concat(typeMap$5 === null || typeMap$5 === void 0 ? void 0 : (_typeMap$type30 = typeMap$5[type]) === null || _typeMap$type30 === void 0 ? void 0 : _typeMap$type30.typeName)],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/basic-components",
3
- "version": "2.0.65",
3
+ "version": "2.0.66",
4
4
  "description": "> TODO: description",
5
5
  "homepage": "",
6
6
  "license": "ISC",
@@ -20,7 +20,7 @@
20
20
  "watch": "nodemon --ignore dist/ --ignore node_modules/ --watch src/ -C -e ts,tsx,less --debug -x 'yarn async'"
21
21
  },
22
22
  "dependencies": {
23
- "@kmkf-fe-packages/kmkf-utils": "2.0.65",
23
+ "@kmkf-fe-packages/kmkf-utils": "2.0.66",
24
24
  "ahooks": "^3.7.4",
25
25
  "bignumber.js": "^9.1.2",
26
26
  "kmkf-monitor": "^0.8.9",
@@ -65,5 +65,5 @@
65
65
  "publishConfig": {
66
66
  "access": "public"
67
67
  },
68
- "gitHead": "15f16ebf734a616f09c15fa589a4124cdc909f95"
68
+ "gitHead": "54eab9e0ac1df90812f4e6cd03fa4673711bda1e"
69
69
  }