@kmkf-fe-packages/basic-components 2.0.64 → 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
@@ -12293,7 +12293,7 @@ var gyColumns = [{
12293
12293
  }, {
12294
12294
  dataIndex: 'specNo',
12295
12295
  title: 'SKU编码',
12296
- width: 200,
12296
+ width: 150,
12297
12297
  ellipsis: true
12298
12298
  }, {
12299
12299
  dataIndex: 'goodName',
@@ -12304,11 +12304,11 @@ var gyColumns = [{
12304
12304
  dataIndex: 'goodShortName',
12305
12305
  title: "\u5546\u54C1\u7B80\u79F0",
12306
12306
  ellipsis: true,
12307
- width: 250
12307
+ width: 150
12308
12308
  }, {
12309
12309
  dataIndex: 'goodNo',
12310
12310
  title: '商品编码',
12311
- width: 200,
12311
+ width: 150,
12312
12312
  ellipsis: true
12313
12313
  }, {
12314
12314
  dataIndex: 'goodPicUrl',
@@ -14850,6 +14850,10 @@ var getColumns$2 = function getColumns(_ref) {
14850
14850
  label: '组合装',
14851
14851
  value: '2'
14852
14852
  }];
14853
+ var typeMap = {
14854
+ '1': '单品',
14855
+ '2': '组合装'
14856
+ };
14853
14857
  return !disabled ? /*#__PURE__*/React.createElement(Select, {
14854
14858
  style: {
14855
14859
  width: 70
@@ -14859,7 +14863,7 @@ var getColumns$2 = function getColumns(_ref) {
14859
14863
  onChange: function onChange(value) {
14860
14864
  return updateHandle(value, index, 'type');
14861
14865
  }
14862
- }) : /*#__PURE__*/React.createElement("span", null, val);
14866
+ }) : /*#__PURE__*/React.createElement("span", null, typeMap[val]);
14863
14867
  }
14864
14868
  }],
14865
14869
  //旺店通换出商品信息
@@ -14971,6 +14975,10 @@ var getColumns$2 = function getColumns(_ref) {
14971
14975
  label: '组合装',
14972
14976
  value: '2'
14973
14977
  }];
14978
+ var typeMap = {
14979
+ '1': '单品',
14980
+ '2': '组合装'
14981
+ };
14974
14982
  return !disabled ? /*#__PURE__*/React.createElement(Select, {
14975
14983
  style: {
14976
14984
  width: 70
@@ -14980,7 +14988,7 @@ var getColumns$2 = function getColumns(_ref) {
14980
14988
  onChange: function onChange(value) {
14981
14989
  return updateHandle(value, index, 'type');
14982
14990
  }
14983
- }) : /*#__PURE__*/React.createElement("span", null, val);
14991
+ }) : /*#__PURE__*/React.createElement("span", null, typeMap[val]);
14984
14992
  }
14985
14993
  }]
14986
14994
  };
@@ -18640,7 +18648,8 @@ var CommonReturnGoods = function CommonReturnGoods(props) {
18640
18648
  _props$reasonList = props.reasonList,
18641
18649
  reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
18642
18650
  disabled = props.disabled,
18643
- compType = props.type;
18651
+ compType = props.type,
18652
+ isSettingConfig = props.isSettingConfig;
18644
18653
  var valueRef = useRef({});
18645
18654
  useEffect(function () {
18646
18655
  var subscription = pubsub.subscribe(componentMap$2[compType].eventNameMap.exchangeCopyGood, function () {
@@ -18732,7 +18741,7 @@ var CommonReturnGoods = function CommonReturnGoods(props) {
18732
18741
  var newValue = _objectSpread2({}, value);
18733
18742
  newValue[componentMap$2[compType].returnTypeKey] = val;
18734
18743
  newValue[componentMap$2[compType].valueKey] = [];
18735
- if (['2'].includes(val[0])) {
18744
+ if (isSettingConfig || ['2'].includes(val[0])) {
18736
18745
  onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
18737
18746
  valueRef.current = newValue;
18738
18747
  }
@@ -18754,7 +18763,7 @@ var CommonReturnGoods = function CommonReturnGoods(props) {
18754
18763
  style: {
18755
18764
  marginBottom: '8px'
18756
18765
  },
18757
- disabled: disabled,
18766
+ disabled: isSettingConfig ? !isSettingConfig : disabled,
18758
18767
  allowClear: false,
18759
18768
  options: reasonList,
18760
18769
  value: value === null || value === void 0 ? void 0 : value[componentMap$2[compType].returnTypeKey],
@@ -18936,7 +18945,7 @@ var CommonExchangeGoods = function CommonExchangeGoods(props) {
18936
18945
  })));
18937
18946
  };
18938
18947
 
18939
- var _excluded$i = ["value", "onChange", "reasonList", "disabled", "type"];
18948
+ var _excluded$i = ["value", "onChange", "reasonList", "disabled", "type", "isSettingConfig"];
18940
18949
  var typeMap$1 = {
18941
18950
  WDT_REISSUE_GOODS: {
18942
18951
  key: 'wdtReissueGoods',
@@ -18964,6 +18973,7 @@ var wdtReissue = function wdtReissue(props) {
18964
18973
  reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
18965
18974
  disabled = props.disabled,
18966
18975
  type = props.type,
18976
+ isSettingConfig = props.isSettingConfig,
18967
18977
  other = _objectWithoutProperties(props, _excluded$i);
18968
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) {
18969
18979
  var _order$srcTid;
@@ -19148,7 +19158,8 @@ var wdtReissue = function wdtReissue(props) {
19148
19158
  }
19149
19159
  }, /*#__PURE__*/React.createElement(Select, {
19150
19160
  style: {
19151
- marginBottom: '8px'
19161
+ marginBottom: '8px',
19162
+ width: '100%'
19152
19163
  },
19153
19164
  disabled: disabled,
19154
19165
  allowClear: false,
@@ -19173,9 +19184,10 @@ var wdtReissue = function wdtReissue(props) {
19173
19184
  }
19174
19185
  }, /*#__PURE__*/React.createElement(Cascader, {
19175
19186
  style: {
19176
- marginBottom: '8px'
19187
+ marginBottom: '8px',
19188
+ width: '100%'
19177
19189
  },
19178
- disabled: disabled,
19190
+ disabled: isSettingConfig ? !isSettingConfig : disabled,
19179
19191
  allowClear: false,
19180
19192
  options: reasonList,
19181
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)],
@@ -19206,7 +19218,7 @@ var wdtReissue = function wdtReissue(props) {
19206
19218
  })));
19207
19219
  };
19208
19220
 
19209
- var _excluded$j = ["value", "onChange", "reasonList", "disabled", "type"];
19221
+ var _excluded$j = ["value", "onChange", "reasonList", "disabled", "type", "isSettingConfig"];
19210
19222
  var typeMap$2 = {
19211
19223
  JST_REISSUE_GOODS: {
19212
19224
  compType: '补发',
@@ -19254,6 +19266,7 @@ var PublicReissue = function PublicReissue(props) {
19254
19266
  reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
19255
19267
  disabled = props.disabled,
19256
19268
  type = props.type,
19269
+ isSettingConfig = props.isSettingConfig,
19257
19270
  other = _objectWithoutProperties(props, _excluded$j);
19258
19271
  var getOrderFlag = useRef(false);
19259
19272
  var _useState = useState(false),
@@ -19435,7 +19448,8 @@ var PublicReissue = function PublicReissue(props) {
19435
19448
  }
19436
19449
  }, /*#__PURE__*/React.createElement(Select, {
19437
19450
  style: {
19438
- marginBottom: '8px'
19451
+ marginBottom: '8px',
19452
+ width: '100%'
19439
19453
  },
19440
19454
  disabled: disabled,
19441
19455
  allowClear: false,
@@ -19460,16 +19474,17 @@ var PublicReissue = function PublicReissue(props) {
19460
19474
  }
19461
19475
  }, /*#__PURE__*/React.createElement(Cascader, {
19462
19476
  style: {
19463
- marginBottom: '8px'
19477
+ marginBottom: '8px',
19478
+ width: '100%'
19464
19479
  },
19465
- disabled: disabled,
19480
+ disabled: isSettingConfig ? !isSettingConfig : disabled,
19466
19481
  allowClear: false,
19467
19482
  options: reasonList,
19468
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)],
19469
19484
  onChange: function onChange(val) {
19470
19485
  return changeTypeHandle(val);
19471
19486
  }
19472
- })), (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, {
19473
19488
  className: "gutter-row",
19474
19489
  xs: {
19475
19490
  span: 11
@@ -20313,7 +20328,7 @@ var CalculationInput = function CalculationInput(props) {
20313
20328
  }, config === null || config === void 0 ? void 0 : config.unit));
20314
20329
  };
20315
20330
 
20316
- var _excluded$o = ["value", "onChange", "reasonList", "disabled", "type"];
20331
+ var _excluded$o = ["value", "onChange", "reasonList", "disabled", "type", "isSettingConfig"];
20317
20332
  var typeMap$3 = {
20318
20333
  BS_E3_REISSUE_GOODS: {
20319
20334
  key: 'bsE3ReissueGoods',
@@ -20331,6 +20346,7 @@ var bsE3Reissue = function bsE3Reissue(props) {
20331
20346
  reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
20332
20347
  disabled = props.disabled,
20333
20348
  type = props.type,
20349
+ isSettingConfig = props.isSettingConfig,
20334
20350
  other = _objectWithoutProperties(props, _excluded$o);
20335
20351
  var getOrderFlag = useRef(false);
20336
20352
  var valueRef = useRef(null);
@@ -20491,7 +20507,8 @@ var bsE3Reissue = function bsE3Reissue(props) {
20491
20507
  }
20492
20508
  }, /*#__PURE__*/React.createElement(Select, {
20493
20509
  style: {
20494
- marginBottom: '8px'
20510
+ marginBottom: '8px',
20511
+ width: '100%'
20495
20512
  },
20496
20513
  disabled: disabled,
20497
20514
  allowClear: false,
@@ -20516,9 +20533,10 @@ var bsE3Reissue = function bsE3Reissue(props) {
20516
20533
  }
20517
20534
  }, /*#__PURE__*/React.createElement(Cascader, {
20518
20535
  style: {
20519
- marginBottom: '8px'
20536
+ marginBottom: '8px',
20537
+ width: '100%'
20520
20538
  },
20521
- disabled: disabled,
20539
+ disabled: isSettingConfig ? !isSettingConfig : disabled,
20522
20540
  allowClear: false,
20523
20541
  options: reasonList,
20524
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)],
@@ -20549,7 +20567,7 @@ var bsE3Reissue = function bsE3Reissue(props) {
20549
20567
  })));
20550
20568
  };
20551
20569
 
20552
- var _excluded$p = ["value", "onChange", "reasonList", "disabled", "type"],
20570
+ var _excluded$p = ["value", "onChange", "reasonList", "disabled", "type", "isSettingConfig"],
20553
20571
  _excluded2 = ["billNo", "billType", "billTag", "tradeTagName", "deliveryState", "vipCode", "shopCode"];
20554
20572
  var typeMap$4 = {
20555
20573
  GY_REISSUE_GOODS: {
@@ -20578,6 +20596,7 @@ var GyReissue = function GyReissue(props) {
20578
20596
  reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
20579
20597
  disabled = props.disabled,
20580
20598
  type = props.type,
20599
+ isSettingConfig = props.isSettingConfig,
20581
20600
  other = _objectWithoutProperties(props, _excluded$p);
20582
20601
  // const showModeBtn = (value?.gySystemOrder?.orders || []).some((order: any) =>
20583
20602
  // order?.platformCode?.includes(';'),
@@ -20759,7 +20778,8 @@ var GyReissue = function GyReissue(props) {
20759
20778
  }
20760
20779
  }, /*#__PURE__*/React.createElement(Select, {
20761
20780
  style: {
20762
- marginBottom: '8px'
20781
+ marginBottom: '8px',
20782
+ width: '100%'
20763
20783
  },
20764
20784
  disabled: disabled,
20765
20785
  allowClear: false,
@@ -20784,9 +20804,10 @@ var GyReissue = function GyReissue(props) {
20784
20804
  }
20785
20805
  }, /*#__PURE__*/React.createElement(Cascader, {
20786
20806
  style: {
20787
- marginBottom: '8px'
20807
+ marginBottom: '8px',
20808
+ width: '100%'
20788
20809
  },
20789
- disabled: disabled,
20810
+ disabled: isSettingConfig ? !isSettingConfig : disabled,
20790
20811
  allowClear: false,
20791
20812
  options: reasonList,
20792
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)],
@@ -20818,7 +20839,7 @@ var GyReissue = function GyReissue(props) {
20818
20839
  })));
20819
20840
  };
20820
20841
 
20821
- var _excluded$q = ["value", "onChange", "reasonList", "disabled", "type"],
20842
+ var _excluded$q = ["value", "onChange", "reasonList", "disabled", "type", "isSettingConfig"],
20822
20843
  _excluded2$1 = ["billNo", "billType", "billTag", "tradeTagName", "deliveryState", "vipCode", "shopCode"];
20823
20844
  var typeMap$5 = {
20824
20845
  GY_RETURN_GOODS: {
@@ -20847,6 +20868,7 @@ var GyReturnGoods = function GyReturnGoods(props) {
20847
20868
  reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
20848
20869
  disabled = props.disabled,
20849
20870
  type = props.type,
20871
+ isSettingConfig = props.isSettingConfig,
20850
20872
  other = _objectWithoutProperties(props, _excluded$q);
20851
20873
  var valueRef = useRef({});
20852
20874
  var getOrderFlag = useRef(false);
@@ -21049,7 +21071,8 @@ var GyReturnGoods = function GyReturnGoods(props) {
21049
21071
  }
21050
21072
  }, /*#__PURE__*/React.createElement(Select, {
21051
21073
  style: {
21052
- marginBottom: '8px'
21074
+ marginBottom: '8px',
21075
+ width: '100%'
21053
21076
  },
21054
21077
  disabled: disabled,
21055
21078
  allowClear: false,
@@ -21074,9 +21097,10 @@ var GyReturnGoods = function GyReturnGoods(props) {
21074
21097
  }
21075
21098
  }, /*#__PURE__*/React.createElement(Cascader, {
21076
21099
  style: {
21077
- marginBottom: '8px'
21100
+ marginBottom: '8px',
21101
+ width: '100%'
21078
21102
  },
21079
- disabled: disabled,
21103
+ disabled: isSettingConfig ? !isSettingConfig : disabled,
21080
21104
  allowClear: false,
21081
21105
  options: reasonList,
21082
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
@@ -12305,7 +12305,7 @@ var gyColumns = [{
12305
12305
  }, {
12306
12306
  dataIndex: 'specNo',
12307
12307
  title: 'SKU编码',
12308
- width: 200,
12308
+ width: 150,
12309
12309
  ellipsis: true
12310
12310
  }, {
12311
12311
  dataIndex: 'goodName',
@@ -12316,11 +12316,11 @@ var gyColumns = [{
12316
12316
  dataIndex: 'goodShortName',
12317
12317
  title: "\u5546\u54C1\u7B80\u79F0",
12318
12318
  ellipsis: true,
12319
- width: 250
12319
+ width: 150
12320
12320
  }, {
12321
12321
  dataIndex: 'goodNo',
12322
12322
  title: '商品编码',
12323
- width: 200,
12323
+ width: 150,
12324
12324
  ellipsis: true
12325
12325
  }, {
12326
12326
  dataIndex: 'goodPicUrl',
@@ -14862,6 +14862,10 @@ var getColumns$2 = function getColumns(_ref) {
14862
14862
  label: '组合装',
14863
14863
  value: '2'
14864
14864
  }];
14865
+ var typeMap = {
14866
+ '1': '单品',
14867
+ '2': '组合装'
14868
+ };
14865
14869
  return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
14866
14870
  style: {
14867
14871
  width: 70
@@ -14871,7 +14875,7 @@ var getColumns$2 = function getColumns(_ref) {
14871
14875
  onChange: function onChange(value) {
14872
14876
  return updateHandle(value, index, 'type');
14873
14877
  }
14874
- }) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
14878
+ }) : /*#__PURE__*/React__default['default'].createElement("span", null, typeMap[val]);
14875
14879
  }
14876
14880
  }],
14877
14881
  //旺店通换出商品信息
@@ -14983,6 +14987,10 @@ var getColumns$2 = function getColumns(_ref) {
14983
14987
  label: '组合装',
14984
14988
  value: '2'
14985
14989
  }];
14990
+ var typeMap = {
14991
+ '1': '单品',
14992
+ '2': '组合装'
14993
+ };
14986
14994
  return !disabled ? /*#__PURE__*/React__default['default'].createElement(antd.Select, {
14987
14995
  style: {
14988
14996
  width: 70
@@ -14992,7 +15000,7 @@ var getColumns$2 = function getColumns(_ref) {
14992
15000
  onChange: function onChange(value) {
14993
15001
  return updateHandle(value, index, 'type');
14994
15002
  }
14995
- }) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
15003
+ }) : /*#__PURE__*/React__default['default'].createElement("span", null, typeMap[val]);
14996
15004
  }
14997
15005
  }]
14998
15006
  };
@@ -18652,7 +18660,8 @@ var CommonReturnGoods = function CommonReturnGoods(props) {
18652
18660
  _props$reasonList = props.reasonList,
18653
18661
  reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
18654
18662
  disabled = props.disabled,
18655
- compType = props.type;
18663
+ compType = props.type,
18664
+ isSettingConfig = props.isSettingConfig;
18656
18665
  var valueRef = React.useRef({});
18657
18666
  React.useEffect(function () {
18658
18667
  var subscription = pubsub__default['default'].subscribe(componentMap$2[compType].eventNameMap.exchangeCopyGood, function () {
@@ -18744,7 +18753,7 @@ var CommonReturnGoods = function CommonReturnGoods(props) {
18744
18753
  var newValue = _objectSpread2({}, value);
18745
18754
  newValue[componentMap$2[compType].returnTypeKey] = val;
18746
18755
  newValue[componentMap$2[compType].valueKey] = [];
18747
- if (['2'].includes(val[0])) {
18756
+ if (isSettingConfig || ['2'].includes(val[0])) {
18748
18757
  onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
18749
18758
  valueRef.current = newValue;
18750
18759
  }
@@ -18766,7 +18775,7 @@ var CommonReturnGoods = function CommonReturnGoods(props) {
18766
18775
  style: {
18767
18776
  marginBottom: '8px'
18768
18777
  },
18769
- disabled: disabled,
18778
+ disabled: isSettingConfig ? !isSettingConfig : disabled,
18770
18779
  allowClear: false,
18771
18780
  options: reasonList,
18772
18781
  value: value === null || value === void 0 ? void 0 : value[componentMap$2[compType].returnTypeKey],
@@ -18948,7 +18957,7 @@ var CommonExchangeGoods = function CommonExchangeGoods(props) {
18948
18957
  })));
18949
18958
  };
18950
18959
 
18951
- var _excluded$i = ["value", "onChange", "reasonList", "disabled", "type"];
18960
+ var _excluded$i = ["value", "onChange", "reasonList", "disabled", "type", "isSettingConfig"];
18952
18961
  var typeMap$1 = {
18953
18962
  WDT_REISSUE_GOODS: {
18954
18963
  key: 'wdtReissueGoods',
@@ -18976,6 +18985,7 @@ var wdtReissue = function wdtReissue(props) {
18976
18985
  reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
18977
18986
  disabled = props.disabled,
18978
18987
  type = props.type,
18988
+ isSettingConfig = props.isSettingConfig,
18979
18989
  other = _objectWithoutProperties(props, _excluded$i);
18980
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) {
18981
18991
  var _order$srcTid;
@@ -19160,7 +19170,8 @@ var wdtReissue = function wdtReissue(props) {
19160
19170
  }
19161
19171
  }, /*#__PURE__*/React__default['default'].createElement(antd.Select, {
19162
19172
  style: {
19163
- marginBottom: '8px'
19173
+ marginBottom: '8px',
19174
+ width: '100%'
19164
19175
  },
19165
19176
  disabled: disabled,
19166
19177
  allowClear: false,
@@ -19185,9 +19196,10 @@ var wdtReissue = function wdtReissue(props) {
19185
19196
  }
19186
19197
  }, /*#__PURE__*/React__default['default'].createElement(antd.Cascader, {
19187
19198
  style: {
19188
- marginBottom: '8px'
19199
+ marginBottom: '8px',
19200
+ width: '100%'
19189
19201
  },
19190
- disabled: disabled,
19202
+ disabled: isSettingConfig ? !isSettingConfig : disabled,
19191
19203
  allowClear: false,
19192
19204
  options: reasonList,
19193
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)],
@@ -19218,7 +19230,7 @@ var wdtReissue = function wdtReissue(props) {
19218
19230
  })));
19219
19231
  };
19220
19232
 
19221
- var _excluded$j = ["value", "onChange", "reasonList", "disabled", "type"];
19233
+ var _excluded$j = ["value", "onChange", "reasonList", "disabled", "type", "isSettingConfig"];
19222
19234
  var typeMap$2 = {
19223
19235
  JST_REISSUE_GOODS: {
19224
19236
  compType: '补发',
@@ -19266,6 +19278,7 @@ var PublicReissue = function PublicReissue(props) {
19266
19278
  reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
19267
19279
  disabled = props.disabled,
19268
19280
  type = props.type,
19281
+ isSettingConfig = props.isSettingConfig,
19269
19282
  other = _objectWithoutProperties(props, _excluded$j);
19270
19283
  var getOrderFlag = React.useRef(false);
19271
19284
  var _useState = React.useState(false),
@@ -19447,7 +19460,8 @@ var PublicReissue = function PublicReissue(props) {
19447
19460
  }
19448
19461
  }, /*#__PURE__*/React__default['default'].createElement(antd.Select, {
19449
19462
  style: {
19450
- marginBottom: '8px'
19463
+ marginBottom: '8px',
19464
+ width: '100%'
19451
19465
  },
19452
19466
  disabled: disabled,
19453
19467
  allowClear: false,
@@ -19472,16 +19486,17 @@ var PublicReissue = function PublicReissue(props) {
19472
19486
  }
19473
19487
  }, /*#__PURE__*/React__default['default'].createElement(antd.Cascader, {
19474
19488
  style: {
19475
- marginBottom: '8px'
19489
+ marginBottom: '8px',
19490
+ width: '100%'
19476
19491
  },
19477
- disabled: disabled,
19492
+ disabled: isSettingConfig ? !isSettingConfig : disabled,
19478
19493
  allowClear: false,
19479
19494
  options: reasonList,
19480
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)],
19481
19496
  onChange: function onChange(val) {
19482
19497
  return changeTypeHandle(val);
19483
19498
  }
19484
- })), (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, {
19485
19500
  className: "gutter-row",
19486
19501
  xs: {
19487
19502
  span: 11
@@ -20325,7 +20340,7 @@ var CalculationInput = function CalculationInput(props) {
20325
20340
  }, config === null || config === void 0 ? void 0 : config.unit));
20326
20341
  };
20327
20342
 
20328
- var _excluded$o = ["value", "onChange", "reasonList", "disabled", "type"];
20343
+ var _excluded$o = ["value", "onChange", "reasonList", "disabled", "type", "isSettingConfig"];
20329
20344
  var typeMap$3 = {
20330
20345
  BS_E3_REISSUE_GOODS: {
20331
20346
  key: 'bsE3ReissueGoods',
@@ -20343,6 +20358,7 @@ var bsE3Reissue = function bsE3Reissue(props) {
20343
20358
  reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
20344
20359
  disabled = props.disabled,
20345
20360
  type = props.type,
20361
+ isSettingConfig = props.isSettingConfig,
20346
20362
  other = _objectWithoutProperties(props, _excluded$o);
20347
20363
  var getOrderFlag = React.useRef(false);
20348
20364
  var valueRef = React.useRef(null);
@@ -20503,7 +20519,8 @@ var bsE3Reissue = function bsE3Reissue(props) {
20503
20519
  }
20504
20520
  }, /*#__PURE__*/React__default['default'].createElement(antd.Select, {
20505
20521
  style: {
20506
- marginBottom: '8px'
20522
+ marginBottom: '8px',
20523
+ width: '100%'
20507
20524
  },
20508
20525
  disabled: disabled,
20509
20526
  allowClear: false,
@@ -20528,9 +20545,10 @@ var bsE3Reissue = function bsE3Reissue(props) {
20528
20545
  }
20529
20546
  }, /*#__PURE__*/React__default['default'].createElement(antd.Cascader, {
20530
20547
  style: {
20531
- marginBottom: '8px'
20548
+ marginBottom: '8px',
20549
+ width: '100%'
20532
20550
  },
20533
- disabled: disabled,
20551
+ disabled: isSettingConfig ? !isSettingConfig : disabled,
20534
20552
  allowClear: false,
20535
20553
  options: reasonList,
20536
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)],
@@ -20561,7 +20579,7 @@ var bsE3Reissue = function bsE3Reissue(props) {
20561
20579
  })));
20562
20580
  };
20563
20581
 
20564
- var _excluded$p = ["value", "onChange", "reasonList", "disabled", "type"],
20582
+ var _excluded$p = ["value", "onChange", "reasonList", "disabled", "type", "isSettingConfig"],
20565
20583
  _excluded2 = ["billNo", "billType", "billTag", "tradeTagName", "deliveryState", "vipCode", "shopCode"];
20566
20584
  var typeMap$4 = {
20567
20585
  GY_REISSUE_GOODS: {
@@ -20590,6 +20608,7 @@ var GyReissue = function GyReissue(props) {
20590
20608
  reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
20591
20609
  disabled = props.disabled,
20592
20610
  type = props.type,
20611
+ isSettingConfig = props.isSettingConfig,
20593
20612
  other = _objectWithoutProperties(props, _excluded$p);
20594
20613
  // const showModeBtn = (value?.gySystemOrder?.orders || []).some((order: any) =>
20595
20614
  // order?.platformCode?.includes(';'),
@@ -20771,7 +20790,8 @@ var GyReissue = function GyReissue(props) {
20771
20790
  }
20772
20791
  }, /*#__PURE__*/React__default['default'].createElement(antd.Select, {
20773
20792
  style: {
20774
- marginBottom: '8px'
20793
+ marginBottom: '8px',
20794
+ width: '100%'
20775
20795
  },
20776
20796
  disabled: disabled,
20777
20797
  allowClear: false,
@@ -20796,9 +20816,10 @@ var GyReissue = function GyReissue(props) {
20796
20816
  }
20797
20817
  }, /*#__PURE__*/React__default['default'].createElement(antd.Cascader, {
20798
20818
  style: {
20799
- marginBottom: '8px'
20819
+ marginBottom: '8px',
20820
+ width: '100%'
20800
20821
  },
20801
- disabled: disabled,
20822
+ disabled: isSettingConfig ? !isSettingConfig : disabled,
20802
20823
  allowClear: false,
20803
20824
  options: reasonList,
20804
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)],
@@ -20830,7 +20851,7 @@ var GyReissue = function GyReissue(props) {
20830
20851
  })));
20831
20852
  };
20832
20853
 
20833
- var _excluded$q = ["value", "onChange", "reasonList", "disabled", "type"],
20854
+ var _excluded$q = ["value", "onChange", "reasonList", "disabled", "type", "isSettingConfig"],
20834
20855
  _excluded2$1 = ["billNo", "billType", "billTag", "tradeTagName", "deliveryState", "vipCode", "shopCode"];
20835
20856
  var typeMap$5 = {
20836
20857
  GY_RETURN_GOODS: {
@@ -20859,6 +20880,7 @@ var GyReturnGoods = function GyReturnGoods(props) {
20859
20880
  reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
20860
20881
  disabled = props.disabled,
20861
20882
  type = props.type,
20883
+ isSettingConfig = props.isSettingConfig,
20862
20884
  other = _objectWithoutProperties(props, _excluded$q);
20863
20885
  var valueRef = React.useRef({});
20864
20886
  var getOrderFlag = React.useRef(false);
@@ -21061,7 +21083,8 @@ var GyReturnGoods = function GyReturnGoods(props) {
21061
21083
  }
21062
21084
  }, /*#__PURE__*/React__default['default'].createElement(antd.Select, {
21063
21085
  style: {
21064
- marginBottom: '8px'
21086
+ marginBottom: '8px',
21087
+ width: '100%'
21065
21088
  },
21066
21089
  disabled: disabled,
21067
21090
  allowClear: false,
@@ -21086,9 +21109,10 @@ var GyReturnGoods = function GyReturnGoods(props) {
21086
21109
  }
21087
21110
  }, /*#__PURE__*/React__default['default'].createElement(antd.Cascader, {
21088
21111
  style: {
21089
- marginBottom: '8px'
21112
+ marginBottom: '8px',
21113
+ width: '100%'
21090
21114
  },
21091
- disabled: disabled,
21115
+ disabled: isSettingConfig ? !isSettingConfig : disabled,
21092
21116
  allowClear: false,
21093
21117
  options: reasonList,
21094
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.64",
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.64",
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": "d2af71326cde542670f96569bb6c028ac7c57bf7"
68
+ "gitHead": "54eab9e0ac1df90812f4e6cd03fa4673711bda1e"
69
69
  }