@kmkf-fe-packages/basic-components 2.0.65 → 2.0.67
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 +53 -28
- package/dist/index.js +53 -28
- package/package.json +3 -3
package/dist/index.esm.js
CHANGED
|
@@ -16069,7 +16069,7 @@ var getColumns$6 = function getColumns(_ref) {
|
|
|
16069
16069
|
updateHandle = _ref.updateHandle;
|
|
16070
16070
|
return {
|
|
16071
16071
|
KM_GOODS: [{
|
|
16072
|
-
dataIndex: '
|
|
16072
|
+
dataIndex: 'skuPropertiesName',
|
|
16073
16073
|
title: "\u89C4\u683C\u540D\u79F0",
|
|
16074
16074
|
width: 250
|
|
16075
16075
|
}, {
|
|
@@ -16096,6 +16096,10 @@ var getColumns$6 = function getColumns(_ref) {
|
|
|
16096
16096
|
dataIndex: 'skuSysId',
|
|
16097
16097
|
title: "\u7CFB\u7EDF\u89C4\u683CID",
|
|
16098
16098
|
width: 150
|
|
16099
|
+
}, {
|
|
16100
|
+
dataIndex: 'skuId',
|
|
16101
|
+
title: "\u5E73\u53F0\u89C4\u683C\u7F16\u53F7",
|
|
16102
|
+
width: 170
|
|
16099
16103
|
}, {
|
|
16100
16104
|
dataIndex: 'itemSysId',
|
|
16101
16105
|
title: "\u7CFB\u7EDF\u5546\u54C1ID",
|
|
@@ -16142,12 +16146,15 @@ var getColumns$6 = function getColumns(_ref) {
|
|
|
16142
16146
|
onChange: function onChange(num) {
|
|
16143
16147
|
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'payment');
|
|
16144
16148
|
}
|
|
16145
|
-
}) : /*#__PURE__*/React.createElement("span", null, val);
|
|
16149
|
+
}) : /*#__PURE__*/React.createElement("span", null, val || val === 0 ? Number(val).toFixed(2) : '');
|
|
16146
16150
|
}
|
|
16147
16151
|
}, {
|
|
16148
16152
|
dataIndex: 'price',
|
|
16149
16153
|
title: "\u5546\u54C1\u9500\u552E\u4EF7",
|
|
16150
|
-
width: 150
|
|
16154
|
+
width: 150,
|
|
16155
|
+
render: function render(val) {
|
|
16156
|
+
return val || val === 0 ? Number(val).toFixed(2) : '';
|
|
16157
|
+
}
|
|
16151
16158
|
}, {
|
|
16152
16159
|
dataIndex: 'type',
|
|
16153
16160
|
title: "\u5546\u54C1\u7C7B\u578B",
|
|
@@ -18594,7 +18601,9 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
18594
18601
|
var getGoodDetails = function getGoodDetails(_ref2) {
|
|
18595
18602
|
var mode = _ref2.mode;
|
|
18596
18603
|
var updateHandle = componentMap$1[compType].eventNameMap['updateGoodsHandle'];
|
|
18597
|
-
var goodDetails = updateHandle(value.orders || []
|
|
18604
|
+
var goodDetails = updateHandle(value.orders || [], {
|
|
18605
|
+
orderBackGoodsLevel: props.orderBackGoodsLevel
|
|
18606
|
+
});
|
|
18598
18607
|
var orderNo = value.orderNo;
|
|
18599
18608
|
return mode ? goodDetails.filter(function (goodItem) {
|
|
18600
18609
|
var _componentMap$compTyp;
|
|
@@ -18648,7 +18657,8 @@ var CommonReturnGoods = function CommonReturnGoods(props) {
|
|
|
18648
18657
|
_props$reasonList = props.reasonList,
|
|
18649
18658
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
18650
18659
|
disabled = props.disabled,
|
|
18651
|
-
compType = props.type
|
|
18660
|
+
compType = props.type,
|
|
18661
|
+
isSettingConfig = props.isSettingConfig;
|
|
18652
18662
|
var valueRef = useRef({});
|
|
18653
18663
|
useEffect(function () {
|
|
18654
18664
|
var subscription = pubsub.subscribe(componentMap$2[compType].eventNameMap.exchangeCopyGood, function () {
|
|
@@ -18740,7 +18750,7 @@ var CommonReturnGoods = function CommonReturnGoods(props) {
|
|
|
18740
18750
|
var newValue = _objectSpread2({}, value);
|
|
18741
18751
|
newValue[componentMap$2[compType].returnTypeKey] = val;
|
|
18742
18752
|
newValue[componentMap$2[compType].valueKey] = [];
|
|
18743
|
-
if (['2'].includes(val[0])) {
|
|
18753
|
+
if (isSettingConfig || ['2'].includes(val[0])) {
|
|
18744
18754
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
18745
18755
|
valueRef.current = newValue;
|
|
18746
18756
|
}
|
|
@@ -18762,7 +18772,7 @@ var CommonReturnGoods = function CommonReturnGoods(props) {
|
|
|
18762
18772
|
style: {
|
|
18763
18773
|
marginBottom: '8px'
|
|
18764
18774
|
},
|
|
18765
|
-
disabled: disabled,
|
|
18775
|
+
disabled: isSettingConfig ? !isSettingConfig : disabled,
|
|
18766
18776
|
allowClear: false,
|
|
18767
18777
|
options: reasonList,
|
|
18768
18778
|
value: value === null || value === void 0 ? void 0 : value[componentMap$2[compType].returnTypeKey],
|
|
@@ -18944,7 +18954,7 @@ var CommonExchangeGoods = function CommonExchangeGoods(props) {
|
|
|
18944
18954
|
})));
|
|
18945
18955
|
};
|
|
18946
18956
|
|
|
18947
|
-
var _excluded$i = ["value", "onChange", "reasonList", "disabled", "type"];
|
|
18957
|
+
var _excluded$i = ["value", "onChange", "reasonList", "disabled", "type", "isSettingConfig"];
|
|
18948
18958
|
var typeMap$1 = {
|
|
18949
18959
|
WDT_REISSUE_GOODS: {
|
|
18950
18960
|
key: 'wdtReissueGoods',
|
|
@@ -18972,6 +18982,7 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
18972
18982
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
18973
18983
|
disabled = props.disabled,
|
|
18974
18984
|
type = props.type,
|
|
18985
|
+
isSettingConfig = props.isSettingConfig,
|
|
18975
18986
|
other = _objectWithoutProperties(props, _excluded$i);
|
|
18976
18987
|
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
18988
|
var _order$srcTid;
|
|
@@ -19156,7 +19167,8 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
19156
19167
|
}
|
|
19157
19168
|
}, /*#__PURE__*/React.createElement(Select, {
|
|
19158
19169
|
style: {
|
|
19159
|
-
marginBottom: '8px'
|
|
19170
|
+
marginBottom: '8px',
|
|
19171
|
+
width: '100%'
|
|
19160
19172
|
},
|
|
19161
19173
|
disabled: disabled,
|
|
19162
19174
|
allowClear: false,
|
|
@@ -19181,9 +19193,10 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
19181
19193
|
}
|
|
19182
19194
|
}, /*#__PURE__*/React.createElement(Cascader, {
|
|
19183
19195
|
style: {
|
|
19184
|
-
marginBottom: '8px'
|
|
19196
|
+
marginBottom: '8px',
|
|
19197
|
+
width: '100%'
|
|
19185
19198
|
},
|
|
19186
|
-
disabled: disabled,
|
|
19199
|
+
disabled: isSettingConfig ? !isSettingConfig : disabled,
|
|
19187
19200
|
allowClear: false,
|
|
19188
19201
|
options: reasonList,
|
|
19189
19202
|
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 +19227,7 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
19214
19227
|
})));
|
|
19215
19228
|
};
|
|
19216
19229
|
|
|
19217
|
-
var _excluded$j = ["value", "onChange", "reasonList", "disabled", "type"];
|
|
19230
|
+
var _excluded$j = ["value", "onChange", "reasonList", "disabled", "type", "isSettingConfig"];
|
|
19218
19231
|
var typeMap$2 = {
|
|
19219
19232
|
JST_REISSUE_GOODS: {
|
|
19220
19233
|
compType: '补发',
|
|
@@ -19262,6 +19275,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
19262
19275
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
19263
19276
|
disabled = props.disabled,
|
|
19264
19277
|
type = props.type,
|
|
19278
|
+
isSettingConfig = props.isSettingConfig,
|
|
19265
19279
|
other = _objectWithoutProperties(props, _excluded$j);
|
|
19266
19280
|
var getOrderFlag = useRef(false);
|
|
19267
19281
|
var _useState = useState(false),
|
|
@@ -19443,7 +19457,8 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
19443
19457
|
}
|
|
19444
19458
|
}, /*#__PURE__*/React.createElement(Select, {
|
|
19445
19459
|
style: {
|
|
19446
|
-
marginBottom: '8px'
|
|
19460
|
+
marginBottom: '8px',
|
|
19461
|
+
width: '100%'
|
|
19447
19462
|
},
|
|
19448
19463
|
disabled: disabled,
|
|
19449
19464
|
allowClear: false,
|
|
@@ -19468,16 +19483,17 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
19468
19483
|
}
|
|
19469
19484
|
}, /*#__PURE__*/React.createElement(Cascader, {
|
|
19470
19485
|
style: {
|
|
19471
|
-
marginBottom: '8px'
|
|
19486
|
+
marginBottom: '8px',
|
|
19487
|
+
width: '100%'
|
|
19472
19488
|
},
|
|
19473
|
-
disabled: disabled,
|
|
19489
|
+
disabled: isSettingConfig ? !isSettingConfig : disabled,
|
|
19474
19490
|
allowClear: false,
|
|
19475
19491
|
options: reasonList,
|
|
19476
19492
|
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
19493
|
onChange: function onChange(val) {
|
|
19478
19494
|
return changeTypeHandle(val);
|
|
19479
19495
|
}
|
|
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, {
|
|
19496
|
+
})), (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
19497
|
className: "gutter-row",
|
|
19482
19498
|
xs: {
|
|
19483
19499
|
span: 11
|
|
@@ -20321,7 +20337,7 @@ var CalculationInput = function CalculationInput(props) {
|
|
|
20321
20337
|
}, config === null || config === void 0 ? void 0 : config.unit));
|
|
20322
20338
|
};
|
|
20323
20339
|
|
|
20324
|
-
var _excluded$o = ["value", "onChange", "reasonList", "disabled", "type"];
|
|
20340
|
+
var _excluded$o = ["value", "onChange", "reasonList", "disabled", "type", "isSettingConfig"];
|
|
20325
20341
|
var typeMap$3 = {
|
|
20326
20342
|
BS_E3_REISSUE_GOODS: {
|
|
20327
20343
|
key: 'bsE3ReissueGoods',
|
|
@@ -20339,6 +20355,7 @@ var bsE3Reissue = function bsE3Reissue(props) {
|
|
|
20339
20355
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
20340
20356
|
disabled = props.disabled,
|
|
20341
20357
|
type = props.type,
|
|
20358
|
+
isSettingConfig = props.isSettingConfig,
|
|
20342
20359
|
other = _objectWithoutProperties(props, _excluded$o);
|
|
20343
20360
|
var getOrderFlag = useRef(false);
|
|
20344
20361
|
var valueRef = useRef(null);
|
|
@@ -20499,7 +20516,8 @@ var bsE3Reissue = function bsE3Reissue(props) {
|
|
|
20499
20516
|
}
|
|
20500
20517
|
}, /*#__PURE__*/React.createElement(Select, {
|
|
20501
20518
|
style: {
|
|
20502
|
-
marginBottom: '8px'
|
|
20519
|
+
marginBottom: '8px',
|
|
20520
|
+
width: '100%'
|
|
20503
20521
|
},
|
|
20504
20522
|
disabled: disabled,
|
|
20505
20523
|
allowClear: false,
|
|
@@ -20524,9 +20542,10 @@ var bsE3Reissue = function bsE3Reissue(props) {
|
|
|
20524
20542
|
}
|
|
20525
20543
|
}, /*#__PURE__*/React.createElement(Cascader, {
|
|
20526
20544
|
style: {
|
|
20527
|
-
marginBottom: '8px'
|
|
20545
|
+
marginBottom: '8px',
|
|
20546
|
+
width: '100%'
|
|
20528
20547
|
},
|
|
20529
|
-
disabled: disabled,
|
|
20548
|
+
disabled: isSettingConfig ? !isSettingConfig : disabled,
|
|
20530
20549
|
allowClear: false,
|
|
20531
20550
|
options: reasonList,
|
|
20532
20551
|
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 +20576,7 @@ var bsE3Reissue = function bsE3Reissue(props) {
|
|
|
20557
20576
|
})));
|
|
20558
20577
|
};
|
|
20559
20578
|
|
|
20560
|
-
var _excluded$p = ["value", "onChange", "reasonList", "disabled", "type"],
|
|
20579
|
+
var _excluded$p = ["value", "onChange", "reasonList", "disabled", "type", "isSettingConfig"],
|
|
20561
20580
|
_excluded2 = ["billNo", "billType", "billTag", "tradeTagName", "deliveryState", "vipCode", "shopCode"];
|
|
20562
20581
|
var typeMap$4 = {
|
|
20563
20582
|
GY_REISSUE_GOODS: {
|
|
@@ -20586,6 +20605,7 @@ var GyReissue = function GyReissue(props) {
|
|
|
20586
20605
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
20587
20606
|
disabled = props.disabled,
|
|
20588
20607
|
type = props.type,
|
|
20608
|
+
isSettingConfig = props.isSettingConfig,
|
|
20589
20609
|
other = _objectWithoutProperties(props, _excluded$p);
|
|
20590
20610
|
// const showModeBtn = (value?.gySystemOrder?.orders || []).some((order: any) =>
|
|
20591
20611
|
// order?.platformCode?.includes(';'),
|
|
@@ -20767,7 +20787,8 @@ var GyReissue = function GyReissue(props) {
|
|
|
20767
20787
|
}
|
|
20768
20788
|
}, /*#__PURE__*/React.createElement(Select, {
|
|
20769
20789
|
style: {
|
|
20770
|
-
marginBottom: '8px'
|
|
20790
|
+
marginBottom: '8px',
|
|
20791
|
+
width: '100%'
|
|
20771
20792
|
},
|
|
20772
20793
|
disabled: disabled,
|
|
20773
20794
|
allowClear: false,
|
|
@@ -20792,9 +20813,10 @@ var GyReissue = function GyReissue(props) {
|
|
|
20792
20813
|
}
|
|
20793
20814
|
}, /*#__PURE__*/React.createElement(Cascader, {
|
|
20794
20815
|
style: {
|
|
20795
|
-
marginBottom: '8px'
|
|
20816
|
+
marginBottom: '8px',
|
|
20817
|
+
width: '100%'
|
|
20796
20818
|
},
|
|
20797
|
-
disabled: disabled,
|
|
20819
|
+
disabled: isSettingConfig ? !isSettingConfig : disabled,
|
|
20798
20820
|
allowClear: false,
|
|
20799
20821
|
options: reasonList,
|
|
20800
20822
|
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 +20848,7 @@ var GyReissue = function GyReissue(props) {
|
|
|
20826
20848
|
})));
|
|
20827
20849
|
};
|
|
20828
20850
|
|
|
20829
|
-
var _excluded$q = ["value", "onChange", "reasonList", "disabled", "type"],
|
|
20851
|
+
var _excluded$q = ["value", "onChange", "reasonList", "disabled", "type", "isSettingConfig"],
|
|
20830
20852
|
_excluded2$1 = ["billNo", "billType", "billTag", "tradeTagName", "deliveryState", "vipCode", "shopCode"];
|
|
20831
20853
|
var typeMap$5 = {
|
|
20832
20854
|
GY_RETURN_GOODS: {
|
|
@@ -20855,6 +20877,7 @@ var GyReturnGoods = function GyReturnGoods(props) {
|
|
|
20855
20877
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
20856
20878
|
disabled = props.disabled,
|
|
20857
20879
|
type = props.type,
|
|
20880
|
+
isSettingConfig = props.isSettingConfig,
|
|
20858
20881
|
other = _objectWithoutProperties(props, _excluded$q);
|
|
20859
20882
|
var valueRef = useRef({});
|
|
20860
20883
|
var getOrderFlag = useRef(false);
|
|
@@ -21057,7 +21080,8 @@ var GyReturnGoods = function GyReturnGoods(props) {
|
|
|
21057
21080
|
}
|
|
21058
21081
|
}, /*#__PURE__*/React.createElement(Select, {
|
|
21059
21082
|
style: {
|
|
21060
|
-
marginBottom: '8px'
|
|
21083
|
+
marginBottom: '8px',
|
|
21084
|
+
width: '100%'
|
|
21061
21085
|
},
|
|
21062
21086
|
disabled: disabled,
|
|
21063
21087
|
allowClear: false,
|
|
@@ -21082,9 +21106,10 @@ var GyReturnGoods = function GyReturnGoods(props) {
|
|
|
21082
21106
|
}
|
|
21083
21107
|
}, /*#__PURE__*/React.createElement(Cascader, {
|
|
21084
21108
|
style: {
|
|
21085
|
-
marginBottom: '8px'
|
|
21109
|
+
marginBottom: '8px',
|
|
21110
|
+
width: '100%'
|
|
21086
21111
|
},
|
|
21087
|
-
disabled: disabled,
|
|
21112
|
+
disabled: isSettingConfig ? !isSettingConfig : disabled,
|
|
21088
21113
|
allowClear: false,
|
|
21089
21114
|
options: reasonList,
|
|
21090
21115
|
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
|
@@ -16081,7 +16081,7 @@ var getColumns$6 = function getColumns(_ref) {
|
|
|
16081
16081
|
updateHandle = _ref.updateHandle;
|
|
16082
16082
|
return {
|
|
16083
16083
|
KM_GOODS: [{
|
|
16084
|
-
dataIndex: '
|
|
16084
|
+
dataIndex: 'skuPropertiesName',
|
|
16085
16085
|
title: "\u89C4\u683C\u540D\u79F0",
|
|
16086
16086
|
width: 250
|
|
16087
16087
|
}, {
|
|
@@ -16108,6 +16108,10 @@ var getColumns$6 = function getColumns(_ref) {
|
|
|
16108
16108
|
dataIndex: 'skuSysId',
|
|
16109
16109
|
title: "\u7CFB\u7EDF\u89C4\u683CID",
|
|
16110
16110
|
width: 150
|
|
16111
|
+
}, {
|
|
16112
|
+
dataIndex: 'skuId',
|
|
16113
|
+
title: "\u5E73\u53F0\u89C4\u683C\u7F16\u53F7",
|
|
16114
|
+
width: 170
|
|
16111
16115
|
}, {
|
|
16112
16116
|
dataIndex: 'itemSysId',
|
|
16113
16117
|
title: "\u7CFB\u7EDF\u5546\u54C1ID",
|
|
@@ -16154,12 +16158,15 @@ var getColumns$6 = function getColumns(_ref) {
|
|
|
16154
16158
|
onChange: function onChange(num) {
|
|
16155
16159
|
return updateHandle === null || updateHandle === void 0 ? void 0 : updateHandle(num, index, 'payment');
|
|
16156
16160
|
}
|
|
16157
|
-
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val);
|
|
16161
|
+
}) : /*#__PURE__*/React__default['default'].createElement("span", null, val || val === 0 ? Number(val).toFixed(2) : '');
|
|
16158
16162
|
}
|
|
16159
16163
|
}, {
|
|
16160
16164
|
dataIndex: 'price',
|
|
16161
16165
|
title: "\u5546\u54C1\u9500\u552E\u4EF7",
|
|
16162
|
-
width: 150
|
|
16166
|
+
width: 150,
|
|
16167
|
+
render: function render(val) {
|
|
16168
|
+
return val || val === 0 ? Number(val).toFixed(2) : '';
|
|
16169
|
+
}
|
|
16163
16170
|
}, {
|
|
16164
16171
|
dataIndex: 'type',
|
|
16165
16172
|
title: "\u5546\u54C1\u7C7B\u578B",
|
|
@@ -18606,7 +18613,9 @@ var CommonGoods = function CommonGoods(props) {
|
|
|
18606
18613
|
var getGoodDetails = function getGoodDetails(_ref2) {
|
|
18607
18614
|
var mode = _ref2.mode;
|
|
18608
18615
|
var updateHandle = componentMap$1[compType].eventNameMap['updateGoodsHandle'];
|
|
18609
|
-
var goodDetails = updateHandle(value.orders || []
|
|
18616
|
+
var goodDetails = updateHandle(value.orders || [], {
|
|
18617
|
+
orderBackGoodsLevel: props.orderBackGoodsLevel
|
|
18618
|
+
});
|
|
18610
18619
|
var orderNo = value.orderNo;
|
|
18611
18620
|
return mode ? goodDetails.filter(function (goodItem) {
|
|
18612
18621
|
var _componentMap$compTyp;
|
|
@@ -18660,7 +18669,8 @@ var CommonReturnGoods = function CommonReturnGoods(props) {
|
|
|
18660
18669
|
_props$reasonList = props.reasonList,
|
|
18661
18670
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
18662
18671
|
disabled = props.disabled,
|
|
18663
|
-
compType = props.type
|
|
18672
|
+
compType = props.type,
|
|
18673
|
+
isSettingConfig = props.isSettingConfig;
|
|
18664
18674
|
var valueRef = React.useRef({});
|
|
18665
18675
|
React.useEffect(function () {
|
|
18666
18676
|
var subscription = pubsub__default['default'].subscribe(componentMap$2[compType].eventNameMap.exchangeCopyGood, function () {
|
|
@@ -18752,7 +18762,7 @@ var CommonReturnGoods = function CommonReturnGoods(props) {
|
|
|
18752
18762
|
var newValue = _objectSpread2({}, value);
|
|
18753
18763
|
newValue[componentMap$2[compType].returnTypeKey] = val;
|
|
18754
18764
|
newValue[componentMap$2[compType].valueKey] = [];
|
|
18755
|
-
if (['2'].includes(val[0])) {
|
|
18765
|
+
if (isSettingConfig || ['2'].includes(val[0])) {
|
|
18756
18766
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
18757
18767
|
valueRef.current = newValue;
|
|
18758
18768
|
}
|
|
@@ -18774,7 +18784,7 @@ var CommonReturnGoods = function CommonReturnGoods(props) {
|
|
|
18774
18784
|
style: {
|
|
18775
18785
|
marginBottom: '8px'
|
|
18776
18786
|
},
|
|
18777
|
-
disabled: disabled,
|
|
18787
|
+
disabled: isSettingConfig ? !isSettingConfig : disabled,
|
|
18778
18788
|
allowClear: false,
|
|
18779
18789
|
options: reasonList,
|
|
18780
18790
|
value: value === null || value === void 0 ? void 0 : value[componentMap$2[compType].returnTypeKey],
|
|
@@ -18956,7 +18966,7 @@ var CommonExchangeGoods = function CommonExchangeGoods(props) {
|
|
|
18956
18966
|
})));
|
|
18957
18967
|
};
|
|
18958
18968
|
|
|
18959
|
-
var _excluded$i = ["value", "onChange", "reasonList", "disabled", "type"];
|
|
18969
|
+
var _excluded$i = ["value", "onChange", "reasonList", "disabled", "type", "isSettingConfig"];
|
|
18960
18970
|
var typeMap$1 = {
|
|
18961
18971
|
WDT_REISSUE_GOODS: {
|
|
18962
18972
|
key: 'wdtReissueGoods',
|
|
@@ -18984,6 +18994,7 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
18984
18994
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
18985
18995
|
disabled = props.disabled,
|
|
18986
18996
|
type = props.type,
|
|
18997
|
+
isSettingConfig = props.isSettingConfig,
|
|
18987
18998
|
other = _objectWithoutProperties(props, _excluded$i);
|
|
18988
18999
|
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
19000
|
var _order$srcTid;
|
|
@@ -19168,7 +19179,8 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
19168
19179
|
}
|
|
19169
19180
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
19170
19181
|
style: {
|
|
19171
|
-
marginBottom: '8px'
|
|
19182
|
+
marginBottom: '8px',
|
|
19183
|
+
width: '100%'
|
|
19172
19184
|
},
|
|
19173
19185
|
disabled: disabled,
|
|
19174
19186
|
allowClear: false,
|
|
@@ -19193,9 +19205,10 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
19193
19205
|
}
|
|
19194
19206
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Cascader, {
|
|
19195
19207
|
style: {
|
|
19196
|
-
marginBottom: '8px'
|
|
19208
|
+
marginBottom: '8px',
|
|
19209
|
+
width: '100%'
|
|
19197
19210
|
},
|
|
19198
|
-
disabled: disabled,
|
|
19211
|
+
disabled: isSettingConfig ? !isSettingConfig : disabled,
|
|
19199
19212
|
allowClear: false,
|
|
19200
19213
|
options: reasonList,
|
|
19201
19214
|
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 +19239,7 @@ var wdtReissue = function wdtReissue(props) {
|
|
|
19226
19239
|
})));
|
|
19227
19240
|
};
|
|
19228
19241
|
|
|
19229
|
-
var _excluded$j = ["value", "onChange", "reasonList", "disabled", "type"];
|
|
19242
|
+
var _excluded$j = ["value", "onChange", "reasonList", "disabled", "type", "isSettingConfig"];
|
|
19230
19243
|
var typeMap$2 = {
|
|
19231
19244
|
JST_REISSUE_GOODS: {
|
|
19232
19245
|
compType: '补发',
|
|
@@ -19274,6 +19287,7 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
19274
19287
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
19275
19288
|
disabled = props.disabled,
|
|
19276
19289
|
type = props.type,
|
|
19290
|
+
isSettingConfig = props.isSettingConfig,
|
|
19277
19291
|
other = _objectWithoutProperties(props, _excluded$j);
|
|
19278
19292
|
var getOrderFlag = React.useRef(false);
|
|
19279
19293
|
var _useState = React.useState(false),
|
|
@@ -19455,7 +19469,8 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
19455
19469
|
}
|
|
19456
19470
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
19457
19471
|
style: {
|
|
19458
|
-
marginBottom: '8px'
|
|
19472
|
+
marginBottom: '8px',
|
|
19473
|
+
width: '100%'
|
|
19459
19474
|
},
|
|
19460
19475
|
disabled: disabled,
|
|
19461
19476
|
allowClear: false,
|
|
@@ -19480,16 +19495,17 @@ var PublicReissue = function PublicReissue(props) {
|
|
|
19480
19495
|
}
|
|
19481
19496
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Cascader, {
|
|
19482
19497
|
style: {
|
|
19483
|
-
marginBottom: '8px'
|
|
19498
|
+
marginBottom: '8px',
|
|
19499
|
+
width: '100%'
|
|
19484
19500
|
},
|
|
19485
|
-
disabled: disabled,
|
|
19501
|
+
disabled: isSettingConfig ? !isSettingConfig : disabled,
|
|
19486
19502
|
allowClear: false,
|
|
19487
19503
|
options: reasonList,
|
|
19488
19504
|
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
19505
|
onChange: function onChange(val) {
|
|
19490
19506
|
return changeTypeHandle(val);
|
|
19491
19507
|
}
|
|
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, {
|
|
19508
|
+
})), (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
19509
|
className: "gutter-row",
|
|
19494
19510
|
xs: {
|
|
19495
19511
|
span: 11
|
|
@@ -20333,7 +20349,7 @@ var CalculationInput = function CalculationInput(props) {
|
|
|
20333
20349
|
}, config === null || config === void 0 ? void 0 : config.unit));
|
|
20334
20350
|
};
|
|
20335
20351
|
|
|
20336
|
-
var _excluded$o = ["value", "onChange", "reasonList", "disabled", "type"];
|
|
20352
|
+
var _excluded$o = ["value", "onChange", "reasonList", "disabled", "type", "isSettingConfig"];
|
|
20337
20353
|
var typeMap$3 = {
|
|
20338
20354
|
BS_E3_REISSUE_GOODS: {
|
|
20339
20355
|
key: 'bsE3ReissueGoods',
|
|
@@ -20351,6 +20367,7 @@ var bsE3Reissue = function bsE3Reissue(props) {
|
|
|
20351
20367
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
20352
20368
|
disabled = props.disabled,
|
|
20353
20369
|
type = props.type,
|
|
20370
|
+
isSettingConfig = props.isSettingConfig,
|
|
20354
20371
|
other = _objectWithoutProperties(props, _excluded$o);
|
|
20355
20372
|
var getOrderFlag = React.useRef(false);
|
|
20356
20373
|
var valueRef = React.useRef(null);
|
|
@@ -20511,7 +20528,8 @@ var bsE3Reissue = function bsE3Reissue(props) {
|
|
|
20511
20528
|
}
|
|
20512
20529
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
20513
20530
|
style: {
|
|
20514
|
-
marginBottom: '8px'
|
|
20531
|
+
marginBottom: '8px',
|
|
20532
|
+
width: '100%'
|
|
20515
20533
|
},
|
|
20516
20534
|
disabled: disabled,
|
|
20517
20535
|
allowClear: false,
|
|
@@ -20536,9 +20554,10 @@ var bsE3Reissue = function bsE3Reissue(props) {
|
|
|
20536
20554
|
}
|
|
20537
20555
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Cascader, {
|
|
20538
20556
|
style: {
|
|
20539
|
-
marginBottom: '8px'
|
|
20557
|
+
marginBottom: '8px',
|
|
20558
|
+
width: '100%'
|
|
20540
20559
|
},
|
|
20541
|
-
disabled: disabled,
|
|
20560
|
+
disabled: isSettingConfig ? !isSettingConfig : disabled,
|
|
20542
20561
|
allowClear: false,
|
|
20543
20562
|
options: reasonList,
|
|
20544
20563
|
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 +20588,7 @@ var bsE3Reissue = function bsE3Reissue(props) {
|
|
|
20569
20588
|
})));
|
|
20570
20589
|
};
|
|
20571
20590
|
|
|
20572
|
-
var _excluded$p = ["value", "onChange", "reasonList", "disabled", "type"],
|
|
20591
|
+
var _excluded$p = ["value", "onChange", "reasonList", "disabled", "type", "isSettingConfig"],
|
|
20573
20592
|
_excluded2 = ["billNo", "billType", "billTag", "tradeTagName", "deliveryState", "vipCode", "shopCode"];
|
|
20574
20593
|
var typeMap$4 = {
|
|
20575
20594
|
GY_REISSUE_GOODS: {
|
|
@@ -20598,6 +20617,7 @@ var GyReissue = function GyReissue(props) {
|
|
|
20598
20617
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
20599
20618
|
disabled = props.disabled,
|
|
20600
20619
|
type = props.type,
|
|
20620
|
+
isSettingConfig = props.isSettingConfig,
|
|
20601
20621
|
other = _objectWithoutProperties(props, _excluded$p);
|
|
20602
20622
|
// const showModeBtn = (value?.gySystemOrder?.orders || []).some((order: any) =>
|
|
20603
20623
|
// order?.platformCode?.includes(';'),
|
|
@@ -20779,7 +20799,8 @@ var GyReissue = function GyReissue(props) {
|
|
|
20779
20799
|
}
|
|
20780
20800
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
20781
20801
|
style: {
|
|
20782
|
-
marginBottom: '8px'
|
|
20802
|
+
marginBottom: '8px',
|
|
20803
|
+
width: '100%'
|
|
20783
20804
|
},
|
|
20784
20805
|
disabled: disabled,
|
|
20785
20806
|
allowClear: false,
|
|
@@ -20804,9 +20825,10 @@ var GyReissue = function GyReissue(props) {
|
|
|
20804
20825
|
}
|
|
20805
20826
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Cascader, {
|
|
20806
20827
|
style: {
|
|
20807
|
-
marginBottom: '8px'
|
|
20828
|
+
marginBottom: '8px',
|
|
20829
|
+
width: '100%'
|
|
20808
20830
|
},
|
|
20809
|
-
disabled: disabled,
|
|
20831
|
+
disabled: isSettingConfig ? !isSettingConfig : disabled,
|
|
20810
20832
|
allowClear: false,
|
|
20811
20833
|
options: reasonList,
|
|
20812
20834
|
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 +20860,7 @@ var GyReissue = function GyReissue(props) {
|
|
|
20838
20860
|
})));
|
|
20839
20861
|
};
|
|
20840
20862
|
|
|
20841
|
-
var _excluded$q = ["value", "onChange", "reasonList", "disabled", "type"],
|
|
20863
|
+
var _excluded$q = ["value", "onChange", "reasonList", "disabled", "type", "isSettingConfig"],
|
|
20842
20864
|
_excluded2$1 = ["billNo", "billType", "billTag", "tradeTagName", "deliveryState", "vipCode", "shopCode"];
|
|
20843
20865
|
var typeMap$5 = {
|
|
20844
20866
|
GY_RETURN_GOODS: {
|
|
@@ -20867,6 +20889,7 @@ var GyReturnGoods = function GyReturnGoods(props) {
|
|
|
20867
20889
|
reasonList = _props$reasonList === void 0 ? [] : _props$reasonList,
|
|
20868
20890
|
disabled = props.disabled,
|
|
20869
20891
|
type = props.type,
|
|
20892
|
+
isSettingConfig = props.isSettingConfig,
|
|
20870
20893
|
other = _objectWithoutProperties(props, _excluded$q);
|
|
20871
20894
|
var valueRef = React.useRef({});
|
|
20872
20895
|
var getOrderFlag = React.useRef(false);
|
|
@@ -21069,7 +21092,8 @@ var GyReturnGoods = function GyReturnGoods(props) {
|
|
|
21069
21092
|
}
|
|
21070
21093
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
21071
21094
|
style: {
|
|
21072
|
-
marginBottom: '8px'
|
|
21095
|
+
marginBottom: '8px',
|
|
21096
|
+
width: '100%'
|
|
21073
21097
|
},
|
|
21074
21098
|
disabled: disabled,
|
|
21075
21099
|
allowClear: false,
|
|
@@ -21094,9 +21118,10 @@ var GyReturnGoods = function GyReturnGoods(props) {
|
|
|
21094
21118
|
}
|
|
21095
21119
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Cascader, {
|
|
21096
21120
|
style: {
|
|
21097
|
-
marginBottom: '8px'
|
|
21121
|
+
marginBottom: '8px',
|
|
21122
|
+
width: '100%'
|
|
21098
21123
|
},
|
|
21099
|
-
disabled: disabled,
|
|
21124
|
+
disabled: isSettingConfig ? !isSettingConfig : disabled,
|
|
21100
21125
|
allowClear: false,
|
|
21101
21126
|
options: reasonList,
|
|
21102
21127
|
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.
|
|
3
|
+
"version": "2.0.67",
|
|
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.
|
|
23
|
+
"@kmkf-fe-packages/kmkf-utils": "2.0.67",
|
|
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": "
|
|
68
|
+
"gitHead": "203eed1c9890fcf5f6f26a931500bdce9e6dee86"
|
|
69
69
|
}
|