@kmkf-fe-packages/basic-components 0.2.2-alpha.0 → 0.2.2-alpha.1
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 +18 -13
- package/dist/index.js +18 -13
- package/package.json +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -3138,15 +3138,7 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
3138
3138
|
isInterface = _useState6[0],
|
|
3139
3139
|
setIsInterface = _useState6[1];
|
|
3140
3140
|
useEffect(function () {
|
|
3141
|
-
|
|
3142
|
-
interceptType: undefined,
|
|
3143
|
-
interceptAddress: [],
|
|
3144
|
-
interceptDetail: '',
|
|
3145
|
-
interceptReceiverName: '',
|
|
3146
|
-
interceptReceiverMobile: '',
|
|
3147
|
-
interceptStatus: '',
|
|
3148
|
-
interceptOther: ''
|
|
3149
|
-
}));
|
|
3141
|
+
console.log(value === null || value === void 0 ? void 0 : value.interceptCompany);
|
|
3150
3142
|
if (!(value === null || value === void 0 ? void 0 : value.interceptCompany)) {
|
|
3151
3143
|
setTypeOptions([]);
|
|
3152
3144
|
setStatusOptions([]);
|
|
@@ -3157,8 +3149,10 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
3157
3149
|
return item.expressCode === (value === null || value === void 0 ? void 0 : value.interceptCompany);
|
|
3158
3150
|
});
|
|
3159
3151
|
setTypeOptions((interceptCompany === null || interceptCompany === void 0 ? void 0 : interceptCompany.interceptionTypeList) || []);
|
|
3152
|
+
setStatusOptions((interceptCompany === null || interceptCompany === void 0 ? void 0 : interceptCompany.interceptionStatusList) || []);
|
|
3160
3153
|
setIsInterface(interceptCompany === null || interceptCompany === void 0 ? void 0 : interceptCompany.isInterface);
|
|
3161
3154
|
}, [value === null || value === void 0 ? void 0 : value.interceptCompany]);
|
|
3155
|
+
//是否展示新地址
|
|
3162
3156
|
var showNewAddress = useMemo(function () {
|
|
3163
3157
|
var _find, _find$config;
|
|
3164
3158
|
return (_find = (typeOptions || []).find(function (item) {
|
|
@@ -3167,6 +3161,18 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
3167
3161
|
}, [value === null || value === void 0 ? void 0 : value.interceptType]);
|
|
3168
3162
|
var changeHandle = function changeHandle(val, type) {
|
|
3169
3163
|
var newValue = _objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, type, val));
|
|
3164
|
+
if (type === 'interceptCompany') {
|
|
3165
|
+
newValue = _objectSpread2(_objectSpread2({}, value), {}, {
|
|
3166
|
+
interceptCompany: val,
|
|
3167
|
+
interceptType: 'RETURN',
|
|
3168
|
+
interceptAddress: [],
|
|
3169
|
+
interceptDetail: '',
|
|
3170
|
+
interceptReceiverName: '',
|
|
3171
|
+
interceptReceiverMobile: '',
|
|
3172
|
+
interceptStatus: '',
|
|
3173
|
+
interceptOther: ''
|
|
3174
|
+
});
|
|
3175
|
+
}
|
|
3170
3176
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
3171
3177
|
};
|
|
3172
3178
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Item, {
|
|
@@ -3175,10 +3181,6 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
3175
3181
|
key: 'logistics'
|
|
3176
3182
|
}, /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Select, {
|
|
3177
3183
|
disabled: disabled,
|
|
3178
|
-
fieldNames: {
|
|
3179
|
-
label: 'expressName',
|
|
3180
|
-
value: 'expressCode'
|
|
3181
|
-
},
|
|
3182
3184
|
placeholder: "\u7269\u6D41\u516C\u53F8",
|
|
3183
3185
|
style: {
|
|
3184
3186
|
width: '200px'
|
|
@@ -3231,12 +3233,14 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
3231
3233
|
options: [],
|
|
3232
3234
|
disabled: disabled
|
|
3233
3235
|
}), /*#__PURE__*/React.createElement(Input, {
|
|
3236
|
+
value: value === null || value === void 0 ? void 0 : value.interceptDetail,
|
|
3234
3237
|
disabled: disabled,
|
|
3235
3238
|
placeholder: "\u8BE6\u7EC6\u5730\u5740",
|
|
3236
3239
|
onChange: function onChange(e) {
|
|
3237
3240
|
return changeHandle(e.target.value, 'interceptDetail');
|
|
3238
3241
|
}
|
|
3239
3242
|
})), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Input, {
|
|
3243
|
+
value: value === null || value === void 0 ? void 0 : value.interceptReceiverName,
|
|
3240
3244
|
disabled: disabled,
|
|
3241
3245
|
style: {
|
|
3242
3246
|
width: '200px'
|
|
@@ -3246,6 +3250,7 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
3246
3250
|
return changeHandle(e.target.value, 'interceptReceiverName');
|
|
3247
3251
|
}
|
|
3248
3252
|
}), /*#__PURE__*/React.createElement(Input, {
|
|
3253
|
+
value: value === null || value === void 0 ? void 0 : value.interceptReceiverMobile,
|
|
3249
3254
|
disabled: disabled,
|
|
3250
3255
|
placeholder: "\u6536\u4EF6\u4EBA\u7535\u8BDD",
|
|
3251
3256
|
onChange: function onChange(e) {
|
package/dist/index.js
CHANGED
|
@@ -3148,15 +3148,7 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
3148
3148
|
isInterface = _useState6[0],
|
|
3149
3149
|
setIsInterface = _useState6[1];
|
|
3150
3150
|
React.useEffect(function () {
|
|
3151
|
-
|
|
3152
|
-
interceptType: undefined,
|
|
3153
|
-
interceptAddress: [],
|
|
3154
|
-
interceptDetail: '',
|
|
3155
|
-
interceptReceiverName: '',
|
|
3156
|
-
interceptReceiverMobile: '',
|
|
3157
|
-
interceptStatus: '',
|
|
3158
|
-
interceptOther: ''
|
|
3159
|
-
}));
|
|
3151
|
+
console.log(value === null || value === void 0 ? void 0 : value.interceptCompany);
|
|
3160
3152
|
if (!(value === null || value === void 0 ? void 0 : value.interceptCompany)) {
|
|
3161
3153
|
setTypeOptions([]);
|
|
3162
3154
|
setStatusOptions([]);
|
|
@@ -3167,8 +3159,10 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
3167
3159
|
return item.expressCode === (value === null || value === void 0 ? void 0 : value.interceptCompany);
|
|
3168
3160
|
});
|
|
3169
3161
|
setTypeOptions((interceptCompany === null || interceptCompany === void 0 ? void 0 : interceptCompany.interceptionTypeList) || []);
|
|
3162
|
+
setStatusOptions((interceptCompany === null || interceptCompany === void 0 ? void 0 : interceptCompany.interceptionStatusList) || []);
|
|
3170
3163
|
setIsInterface(interceptCompany === null || interceptCompany === void 0 ? void 0 : interceptCompany.isInterface);
|
|
3171
3164
|
}, [value === null || value === void 0 ? void 0 : value.interceptCompany]);
|
|
3165
|
+
//是否展示新地址
|
|
3172
3166
|
var showNewAddress = React.useMemo(function () {
|
|
3173
3167
|
var _find, _find$config;
|
|
3174
3168
|
return (_find = (typeOptions || []).find(function (item) {
|
|
@@ -3177,6 +3171,18 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
3177
3171
|
}, [value === null || value === void 0 ? void 0 : value.interceptType]);
|
|
3178
3172
|
var changeHandle = function changeHandle(val, type) {
|
|
3179
3173
|
var newValue = _objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, type, val));
|
|
3174
|
+
if (type === 'interceptCompany') {
|
|
3175
|
+
newValue = _objectSpread2(_objectSpread2({}, value), {}, {
|
|
3176
|
+
interceptCompany: val,
|
|
3177
|
+
interceptType: 'RETURN',
|
|
3178
|
+
interceptAddress: [],
|
|
3179
|
+
interceptDetail: '',
|
|
3180
|
+
interceptReceiverName: '',
|
|
3181
|
+
interceptReceiverMobile: '',
|
|
3182
|
+
interceptStatus: '',
|
|
3183
|
+
interceptOther: ''
|
|
3184
|
+
});
|
|
3185
|
+
}
|
|
3180
3186
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
3181
3187
|
};
|
|
3182
3188
|
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(Item, {
|
|
@@ -3185,10 +3191,6 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
3185
3191
|
key: 'logistics'
|
|
3186
3192
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Space, null, /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
3187
3193
|
disabled: disabled,
|
|
3188
|
-
fieldNames: {
|
|
3189
|
-
label: 'expressName',
|
|
3190
|
-
value: 'expressCode'
|
|
3191
|
-
},
|
|
3192
3194
|
placeholder: "\u7269\u6D41\u516C\u53F8",
|
|
3193
3195
|
style: {
|
|
3194
3196
|
width: '200px'
|
|
@@ -3241,12 +3243,14 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
3241
3243
|
options: [],
|
|
3242
3244
|
disabled: disabled
|
|
3243
3245
|
}), /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
3246
|
+
value: value === null || value === void 0 ? void 0 : value.interceptDetail,
|
|
3244
3247
|
disabled: disabled,
|
|
3245
3248
|
placeholder: "\u8BE6\u7EC6\u5730\u5740",
|
|
3246
3249
|
onChange: function onChange(e) {
|
|
3247
3250
|
return changeHandle(e.target.value, 'interceptDetail');
|
|
3248
3251
|
}
|
|
3249
3252
|
})), /*#__PURE__*/React__default['default'].createElement("br", null), /*#__PURE__*/React__default['default'].createElement(antd.Space, null, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
3253
|
+
value: value === null || value === void 0 ? void 0 : value.interceptReceiverName,
|
|
3250
3254
|
disabled: disabled,
|
|
3251
3255
|
style: {
|
|
3252
3256
|
width: '200px'
|
|
@@ -3256,6 +3260,7 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
3256
3260
|
return changeHandle(e.target.value, 'interceptReceiverName');
|
|
3257
3261
|
}
|
|
3258
3262
|
}), /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
3263
|
+
value: value === null || value === void 0 ? void 0 : value.interceptReceiverMobile,
|
|
3259
3264
|
disabled: disabled,
|
|
3260
3265
|
placeholder: "\u6536\u4EF6\u4EBA\u7535\u8BDD",
|
|
3261
3266
|
onChange: function onChange(e) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/basic-components",
|
|
3
|
-
"version": "0.2.2-alpha.
|
|
3
|
+
"version": "0.2.2-alpha.1",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"author": "wangzhenggui <jianjia.wzg@raycloud.com>",
|
|
6
6
|
"homepage": "",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"async": "yarn build && yalc push",
|
|
14
14
|
"watch": "nodemon --ignore dist/ --ignore node_modules/ --watch src/ -C -e ts,tsx,less --debug -x 'yarn async'"
|
|
15
15
|
},
|
|
16
|
-
"gitHead": "
|
|
16
|
+
"gitHead": "3f43f0b3abcd408e27c8cdd3d52d175bec7a95bb",
|
|
17
17
|
"publishConfig": {
|
|
18
18
|
"access": "public"
|
|
19
19
|
},
|