@kmkf-fe-packages/basic-components 0.6.3-alpha.22 → 0.6.3-alpha.26
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 +5 -6
- package/dist/index.js +5 -6
- package/package.json +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -3139,7 +3139,7 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
3139
3139
|
// 修改后把工单信息重新提交给快递公司,清空拦截状态的值
|
|
3140
3140
|
if (!isInterface) return true;
|
|
3141
3141
|
//已对接公司在拦截中可以修改
|
|
3142
|
-
var INTERCEPTING = logisticsInterceptHandleStatus === 'INTERCEPTING';
|
|
3142
|
+
var INTERCEPTING = !logisticsInterceptHandleStatus || logisticsInterceptHandleStatus === 'INTERCEPTING';
|
|
3143
3143
|
return isEditing ? INTERCEPTING : true;
|
|
3144
3144
|
}, [value === null || value === void 0 ? void 0 : value.interceptCompany, statusOptions, isInterface, isEditing]);
|
|
3145
3145
|
useEffect(function () {
|
|
@@ -3188,12 +3188,11 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
3188
3188
|
return item.value === val;
|
|
3189
3189
|
});
|
|
3190
3190
|
var returnValue = ((interceptCompany === null || interceptCompany === void 0 ? void 0 : interceptCompany.interceptionTypeList) || []).find(function (item) {
|
|
3191
|
-
|
|
3192
|
-
return (item === null || item === void 0 ? void 0 : item.label) && (item === null || item === void 0 ? void 0 : (_item$label = item.label) === null || _item$label === void 0 ? void 0 : _item$label.indexOf('退回')) > -1;
|
|
3191
|
+
return item === null || item === void 0 ? void 0 : item.isDefault;
|
|
3193
3192
|
});
|
|
3194
3193
|
newValue = _objectSpread2(_objectSpread2({}, value), {}, {
|
|
3195
3194
|
interceptCompany: val,
|
|
3196
|
-
interceptType:
|
|
3195
|
+
interceptType: returnValue === null || returnValue === void 0 ? void 0 : returnValue.value,
|
|
3197
3196
|
interceptAddress: [],
|
|
3198
3197
|
interceptDetail: undefined,
|
|
3199
3198
|
interceptReceiverName: undefined,
|
|
@@ -3209,7 +3208,7 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
3209
3208
|
required: required,
|
|
3210
3209
|
key: 'logistics'
|
|
3211
3210
|
}, /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Select, {
|
|
3212
|
-
disabled: disabled ||
|
|
3211
|
+
disabled: disabled || isEditing,
|
|
3213
3212
|
placeholder: "\u7269\u6D41\u516C\u53F8",
|
|
3214
3213
|
style: {
|
|
3215
3214
|
width: '200px'
|
|
@@ -3224,7 +3223,7 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
3224
3223
|
return option.label.includes(input);
|
|
3225
3224
|
}
|
|
3226
3225
|
}), /*#__PURE__*/React.createElement(Input, {
|
|
3227
|
-
disabled: disabled ||
|
|
3226
|
+
disabled: disabled || isEditing,
|
|
3228
3227
|
placeholder: "\u7269\u6D41\u5355\u53F7",
|
|
3229
3228
|
onChange: function onChange(e) {
|
|
3230
3229
|
return changeHandle(e.target.value, 'interceptCode');
|
package/dist/index.js
CHANGED
|
@@ -3149,7 +3149,7 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
3149
3149
|
// 修改后把工单信息重新提交给快递公司,清空拦截状态的值
|
|
3150
3150
|
if (!isInterface) return true;
|
|
3151
3151
|
//已对接公司在拦截中可以修改
|
|
3152
|
-
var INTERCEPTING = logisticsInterceptHandleStatus === 'INTERCEPTING';
|
|
3152
|
+
var INTERCEPTING = !logisticsInterceptHandleStatus || logisticsInterceptHandleStatus === 'INTERCEPTING';
|
|
3153
3153
|
return isEditing ? INTERCEPTING : true;
|
|
3154
3154
|
}, [value === null || value === void 0 ? void 0 : value.interceptCompany, statusOptions, isInterface, isEditing]);
|
|
3155
3155
|
React.useEffect(function () {
|
|
@@ -3198,12 +3198,11 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
3198
3198
|
return item.value === val;
|
|
3199
3199
|
});
|
|
3200
3200
|
var returnValue = ((interceptCompany === null || interceptCompany === void 0 ? void 0 : interceptCompany.interceptionTypeList) || []).find(function (item) {
|
|
3201
|
-
|
|
3202
|
-
return (item === null || item === void 0 ? void 0 : item.label) && (item === null || item === void 0 ? void 0 : (_item$label = item.label) === null || _item$label === void 0 ? void 0 : _item$label.indexOf('退回')) > -1;
|
|
3201
|
+
return item === null || item === void 0 ? void 0 : item.isDefault;
|
|
3203
3202
|
});
|
|
3204
3203
|
newValue = _objectSpread2(_objectSpread2({}, value), {}, {
|
|
3205
3204
|
interceptCompany: val,
|
|
3206
|
-
interceptType:
|
|
3205
|
+
interceptType: returnValue === null || returnValue === void 0 ? void 0 : returnValue.value,
|
|
3207
3206
|
interceptAddress: [],
|
|
3208
3207
|
interceptDetail: undefined,
|
|
3209
3208
|
interceptReceiverName: undefined,
|
|
@@ -3219,7 +3218,7 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
3219
3218
|
required: required,
|
|
3220
3219
|
key: 'logistics'
|
|
3221
3220
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Space, null, /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
3222
|
-
disabled: disabled ||
|
|
3221
|
+
disabled: disabled || isEditing,
|
|
3223
3222
|
placeholder: "\u7269\u6D41\u516C\u53F8",
|
|
3224
3223
|
style: {
|
|
3225
3224
|
width: '200px'
|
|
@@ -3234,7 +3233,7 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
3234
3233
|
return option.label.includes(input);
|
|
3235
3234
|
}
|
|
3236
3235
|
}), /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
3237
|
-
disabled: disabled ||
|
|
3236
|
+
disabled: disabled || isEditing,
|
|
3238
3237
|
placeholder: "\u7269\u6D41\u5355\u53F7",
|
|
3239
3238
|
onChange: function onChange(e) {
|
|
3240
3239
|
return changeHandle(e.target.value, 'interceptCode');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/basic-components",
|
|
3
|
-
"version": "0.6.3-alpha.
|
|
3
|
+
"version": "0.6.3-alpha.26",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"homepage": "",
|
|
6
6
|
"license": "ISC",
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"publishConfig": {
|
|
43
43
|
"access": "public"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "c65ff2b1f44a3a4e469c7dc39125385660e05f81"
|
|
46
46
|
}
|