@kmkf-fe-packages/basic-components 0.6.2 → 0.6.3-alpha.15

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.
@@ -0,0 +1,23 @@
1
+ interface LogisticsInterceptionValueType {
2
+ interceptCompany: string;
3
+ interceptCode: string;
4
+ interceptType: string;
5
+ interceptAddress: any[];
6
+ interceptDetail: string;
7
+ interceptReceiverName: string;
8
+ interceptReceiverMobile: string;
9
+ interceptStatus: string | number;
10
+ interceptOther: string;
11
+ }
12
+ interface LogisticsInterceptionProps {
13
+ value: Partial<LogisticsInterceptionValueType>;
14
+ logisticsOptions: any[];
15
+ expressInterceptData: any[];
16
+ required: boolean;
17
+ disabled: boolean;
18
+ isEditing: boolean;
19
+ logisticsInterceptHandleStatus: string;
20
+ onChange: (value: Partial<LogisticsInterceptionValueType>) => void;
21
+ }
22
+ declare const LogisticsInterception: (props: Partial<LogisticsInterceptionProps>) => JSX.Element;
23
+ export default LogisticsInterception;
package/dist/index.d.ts CHANGED
@@ -28,6 +28,7 @@ export { default as Supplier } from './business/Supplier';
28
28
  export { default as Invoice } from './business/Invoice';
29
29
  export { default as Status } from './business/Status';
30
30
  export { default as Payment } from './business/Payment';
31
+ export { default as LogisticsInterception } from './business/LogisticsInterception';
31
32
  export { default as Goods } from './common/Goods';
32
33
  export { default as JstGoods } from './jst/Goods';
33
34
  export { default as JstItemList } from './jst/ItemList';
package/dist/index.esm.js CHANGED
@@ -3115,6 +3115,216 @@ var Payment = function Payment(props) {
3115
3115
  }));
3116
3116
  };
3117
3117
 
3118
+ var Item = Form.Item;
3119
+ var LogisticsInterception = function LogisticsInterception(props) {
3120
+ var _props$value = props.value,
3121
+ value = _props$value === void 0 ? {} : _props$value,
3122
+ _props$logisticsOptio = props.logisticsOptions,
3123
+ logisticsOptions = _props$logisticsOptio === void 0 ? [] : _props$logisticsOptio,
3124
+ _props$expressInterce = props.expressInterceptData,
3125
+ expressInterceptData = _props$expressInterce === void 0 ? [] : _props$expressInterce,
3126
+ _props$required = props.required,
3127
+ required = _props$required === void 0 ? false : _props$required,
3128
+ onChange = props.onChange,
3129
+ _props$disabled = props.disabled,
3130
+ disabled = _props$disabled === void 0 ? false : _props$disabled,
3131
+ _props$isEditing = props.isEditing,
3132
+ isEditing = _props$isEditing === void 0 ? false : _props$isEditing,
3133
+ logisticsInterceptHandleStatus = props.logisticsInterceptHandleStatus;
3134
+ var _useState = useState([]),
3135
+ _useState2 = _slicedToArray(_useState, 2),
3136
+ typeOptions = _useState2[0],
3137
+ setTypeOptions = _useState2[1];
3138
+ var _useState3 = useState([]),
3139
+ _useState4 = _slicedToArray(_useState3, 2),
3140
+ statusOptions = _useState4[0],
3141
+ setStatusOptions = _useState4[1];
3142
+ var _useState5 = useState(false),
3143
+ _useState6 = _slicedToArray(_useState5, 2),
3144
+ isInterface = _useState6[0],
3145
+ setIsInterface = _useState6[1];
3146
+ var canEdit = useMemo(function () {
3147
+ // 已对接公司如果拦截状态为【拦截中】,可以修改物流拦截组件信息,否则该组件不能修改;
3148
+ // 非对接公司可以修改组件
3149
+ // 修改后把工单信息重新提交给快递公司,清空拦截状态的值
3150
+ if (!isInterface) return true;
3151
+ //已对接公司在拦截中可以修改
3152
+ var INTERCEPTING = logisticsInterceptHandleStatus === 'INTERCEPTING';
3153
+ return isEditing ? INTERCEPTING : true;
3154
+ }, [value === null || value === void 0 ? void 0 : value.interceptCompany, statusOptions, isInterface, isEditing]);
3155
+ useEffect(function () {
3156
+ if (!(value === null || value === void 0 ? void 0 : value.interceptCompany)) {
3157
+ setTypeOptions([]);
3158
+ setStatusOptions([]);
3159
+ setIsInterface(false);
3160
+ return;
3161
+ }
3162
+ var interceptCompany = expressInterceptData.find(function (item) {
3163
+ return item.value === (value === null || value === void 0 ? void 0 : value.interceptCompany);
3164
+ });
3165
+ setTypeOptions((interceptCompany === null || interceptCompany === void 0 ? void 0 : interceptCompany.interceptionTypeList) || []);
3166
+ setStatusOptions((interceptCompany === null || interceptCompany === void 0 ? void 0 : interceptCompany.interceptionStatusList) || []);
3167
+ setIsInterface(interceptCompany === null || interceptCompany === void 0 ? void 0 : interceptCompany.isInterface);
3168
+ }, [value === null || value === void 0 ? void 0 : value.interceptCompany]);
3169
+ useEffect(function () {
3170
+ if (!(value === null || value === void 0 ? void 0 : value.interceptCompany)) return;
3171
+ var interceptCompany = expressInterceptData.find(function (item) {
3172
+ return item.value === (value === null || value === void 0 ? void 0 : value.interceptCompany);
3173
+ });
3174
+ var showAddress = ((interceptCompany === null || interceptCompany === void 0 ? void 0 : interceptCompany.interceptionTypeList) || []).some(function (item) {
3175
+ var _item$config;
3176
+ return item.value === (value === null || value === void 0 ? void 0 : value.interceptType) && (item === null || item === void 0 ? void 0 : (_item$config = item.config) === null || _item$config === void 0 ? void 0 : _item$config.showAddress);
3177
+ });
3178
+ if (!showAddress) {
3179
+ onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, value), {}, {
3180
+ interceptAddress: [],
3181
+ interceptDetail: '',
3182
+ interceptReceiverName: '',
3183
+ interceptReceiverMobile: ''
3184
+ }));
3185
+ }
3186
+ }, [value === null || value === void 0 ? void 0 : value.interceptType]);
3187
+ //是否展示新地址
3188
+ var showNewAddress = useMemo(function () {
3189
+ var _find, _find$config;
3190
+ return (_find = (typeOptions || []).find(function (item) {
3191
+ return item.value === (value === null || value === void 0 ? void 0 : value.interceptType);
3192
+ })) === null || _find === void 0 ? void 0 : (_find$config = _find.config) === null || _find$config === void 0 ? void 0 : _find$config.showAddress;
3193
+ }, [value === null || value === void 0 ? void 0 : value.interceptType, typeOptions, value === null || value === void 0 ? void 0 : value.interceptCompany]);
3194
+ var changeHandle = function changeHandle(val, type) {
3195
+ var newValue = _objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, type, val));
3196
+ if (type === 'interceptCompany') {
3197
+ var interceptCompany = expressInterceptData.find(function (item) {
3198
+ return item.value === val;
3199
+ });
3200
+ var returnValue = ((interceptCompany === null || interceptCompany === void 0 ? void 0 : interceptCompany.interceptionTypeList) || []).find(function (item) {
3201
+ var _item$label;
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;
3203
+ });
3204
+ newValue = _objectSpread2(_objectSpread2({}, value), {}, {
3205
+ interceptCompany: val,
3206
+ interceptType: (returnValue === null || returnValue === void 0 ? void 0 : returnValue.value) || '',
3207
+ interceptAddress: [],
3208
+ interceptDetail: '',
3209
+ interceptReceiverName: '',
3210
+ interceptReceiverMobile: '',
3211
+ interceptStatus: undefined,
3212
+ interceptOther: ''
3213
+ });
3214
+ }
3215
+ onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
3216
+ };
3217
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Item, {
3218
+ label: '物流信息',
3219
+ required: required,
3220
+ key: 'logistics'
3221
+ }, /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Select, {
3222
+ disabled: disabled || !canEdit,
3223
+ placeholder: "\u7269\u6D41\u516C\u53F8",
3224
+ style: {
3225
+ width: '200px'
3226
+ },
3227
+ onChange: function onChange(val) {
3228
+ return changeHandle(val, 'interceptCompany');
3229
+ },
3230
+ value: (value === null || value === void 0 ? void 0 : value.interceptCompany) === '' ? undefined : value === null || value === void 0 ? void 0 : value.interceptCompany,
3231
+ options: logisticsOptions,
3232
+ showSearch: true,
3233
+ filterOption: function filterOption(input, option) {
3234
+ return option.label.includes(input);
3235
+ }
3236
+ }), /*#__PURE__*/React.createElement(Input, {
3237
+ disabled: disabled || !canEdit,
3238
+ placeholder: "\u7269\u6D41\u5355\u53F7",
3239
+ onChange: function onChange(e) {
3240
+ return changeHandle(e.target.value, 'interceptCode');
3241
+ },
3242
+ value: value === null || value === void 0 ? void 0 : value.interceptCode
3243
+ }))), /*#__PURE__*/React.createElement(Item, {
3244
+ label: '拦截类型',
3245
+ required: required,
3246
+ key: 'interceptType'
3247
+ }, /*#__PURE__*/React.createElement(Select, {
3248
+ disabled: disabled || !canEdit,
3249
+ style: {
3250
+ width: '200px'
3251
+ },
3252
+ options: typeOptions,
3253
+ onChange: function onChange(val) {
3254
+ return changeHandle(val, 'interceptType');
3255
+ },
3256
+ value: value === null || value === void 0 ? void 0 : value.interceptType,
3257
+ placeholder: "\u62E6\u622A\u7C7B\u578B",
3258
+ showSearch: true,
3259
+ filterOption: function filterOption(input, option) {
3260
+ return option.label.includes(input);
3261
+ }
3262
+ })), /*#__PURE__*/React.createElement(Item, {
3263
+ label: '新派送地',
3264
+ required: true,
3265
+ key: 'newAddress',
3266
+ hidden: !showNewAddress
3267
+ }, /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Province, {
3268
+ value: value === null || value === void 0 ? void 0 : value.interceptAddress,
3269
+ onChange: function onChange(val) {
3270
+ return changeHandle(val, 'interceptAddress');
3271
+ },
3272
+ options: [],
3273
+ disabled: disabled || !canEdit
3274
+ }), /*#__PURE__*/React.createElement(Input, {
3275
+ value: value === null || value === void 0 ? void 0 : value.interceptDetail,
3276
+ disabled: disabled || !canEdit,
3277
+ placeholder: "\u8BE6\u7EC6\u5730\u5740",
3278
+ onChange: function onChange(e) {
3279
+ return changeHandle(e.target.value, 'interceptDetail');
3280
+ }
3281
+ })), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Input, {
3282
+ value: value === null || value === void 0 ? void 0 : value.interceptReceiverName,
3283
+ disabled: disabled || !canEdit,
3284
+ style: {
3285
+ width: '200px'
3286
+ },
3287
+ placeholder: "\u6536\u4EF6\u4EBA\u59D3\u540D",
3288
+ onChange: function onChange(e) {
3289
+ return changeHandle(e.target.value, 'interceptReceiverName');
3290
+ }
3291
+ }), /*#__PURE__*/React.createElement(Input, {
3292
+ value: value === null || value === void 0 ? void 0 : value.interceptReceiverMobile,
3293
+ disabled: disabled || !canEdit,
3294
+ placeholder: "\u6536\u4EF6\u4EBA\u7535\u8BDD",
3295
+ onChange: function onChange(e) {
3296
+ return changeHandle(e.target.value, 'interceptReceiverMobile');
3297
+ }
3298
+ }))), /*#__PURE__*/React.createElement(Item, {
3299
+ label: '拦截状态',
3300
+ key: 'interceptStatus'
3301
+ }, /*#__PURE__*/React.createElement(Select, {
3302
+ disabled: disabled || isInterface,
3303
+ style: {
3304
+ width: '200px'
3305
+ },
3306
+ options: statusOptions,
3307
+ onChange: function onChange(val) {
3308
+ return changeHandle(val, 'interceptStatus');
3309
+ },
3310
+ value: value === null || value === void 0 ? void 0 : value.interceptStatus,
3311
+ placeholder: "\u62E6\u622A\u72B6\u6001",
3312
+ showSearch: true,
3313
+ filterOption: function filterOption(input, option) {
3314
+ return option.label.includes(input);
3315
+ }
3316
+ }), (value === null || value === void 0 ? void 0 : value.interceptStatus) === 'OTHER' && /*#__PURE__*/React.createElement(Input, {
3317
+ disabled: disabled || !canEdit,
3318
+ style: {
3319
+ width: '200px'
3320
+ },
3321
+ placeholder: "\u5176\u4ED6",
3322
+ onChange: function onChange(e) {
3323
+ return changeHandle(e.target.value, 'interceptOther');
3324
+ }
3325
+ })));
3326
+ };
3327
+
3118
3328
  var jstGoods = function jstGoods(props) {
3119
3329
  var _value$changeIndex, _value$changeIndex2, _value$changeIndex3, _value$changeIndex4, _value$changeIndex5, _value$changeIndex6;
3120
3330
  var _props$value = props.value,
@@ -3780,4 +3990,4 @@ var Goods$1 = function Goods(props, ref) {
3780
3990
  };
3781
3991
  var index = /*#__PURE__*/forwardRef(Goods$1);
3782
3992
 
3783
- export { ApaasAddress as Address, AliPay, Province as ApaasAddress, ApaasCascader, ApaasCheckbox, ApaasDate, withFormItem as ApaasHoc, ApaasInput, ApaasInputNumber, ApaasMultipleSelect, ApaasRadio, ApaasRate, ApaasSelect, ApaasSlider, ApaasTextArea, ApaasUpload, ApaasUploadAsync, BuyerNick, ChooseBaby, ExpressLogistics, Goods, index as GoodsTable, Invoice, jstGoods as JstGoods, ItemList as JstItemList, Payment, RemarkInput as Remark, ExpressLogistics as ReturnLogistics, ShopNameSelect as ShopName, Status, Supplier, TBGoodId, TBGoodSerial, TradeId };
3993
+ export { ApaasAddress as Address, AliPay, Province as ApaasAddress, ApaasCascader, ApaasCheckbox, ApaasDate, withFormItem as ApaasHoc, ApaasInput, ApaasInputNumber, ApaasMultipleSelect, ApaasRadio, ApaasRate, ApaasSelect, ApaasSlider, ApaasTextArea, ApaasUpload, ApaasUploadAsync, BuyerNick, ChooseBaby, ExpressLogistics, Goods, index as GoodsTable, Invoice, jstGoods as JstGoods, ItemList as JstItemList, LogisticsInterception, Payment, RemarkInput as Remark, ExpressLogistics as ReturnLogistics, ShopNameSelect as ShopName, Status, Supplier, TBGoodId, TBGoodSerial, TradeId };
package/dist/index.js CHANGED
@@ -3125,6 +3125,216 @@ var Payment = function Payment(props) {
3125
3125
  }));
3126
3126
  };
3127
3127
 
3128
+ var Item = antd.Form.Item;
3129
+ var LogisticsInterception = function LogisticsInterception(props) {
3130
+ var _props$value = props.value,
3131
+ value = _props$value === void 0 ? {} : _props$value,
3132
+ _props$logisticsOptio = props.logisticsOptions,
3133
+ logisticsOptions = _props$logisticsOptio === void 0 ? [] : _props$logisticsOptio,
3134
+ _props$expressInterce = props.expressInterceptData,
3135
+ expressInterceptData = _props$expressInterce === void 0 ? [] : _props$expressInterce,
3136
+ _props$required = props.required,
3137
+ required = _props$required === void 0 ? false : _props$required,
3138
+ onChange = props.onChange,
3139
+ _props$disabled = props.disabled,
3140
+ disabled = _props$disabled === void 0 ? false : _props$disabled,
3141
+ _props$isEditing = props.isEditing,
3142
+ isEditing = _props$isEditing === void 0 ? false : _props$isEditing,
3143
+ logisticsInterceptHandleStatus = props.logisticsInterceptHandleStatus;
3144
+ var _useState = React.useState([]),
3145
+ _useState2 = _slicedToArray(_useState, 2),
3146
+ typeOptions = _useState2[0],
3147
+ setTypeOptions = _useState2[1];
3148
+ var _useState3 = React.useState([]),
3149
+ _useState4 = _slicedToArray(_useState3, 2),
3150
+ statusOptions = _useState4[0],
3151
+ setStatusOptions = _useState4[1];
3152
+ var _useState5 = React.useState(false),
3153
+ _useState6 = _slicedToArray(_useState5, 2),
3154
+ isInterface = _useState6[0],
3155
+ setIsInterface = _useState6[1];
3156
+ var canEdit = React.useMemo(function () {
3157
+ // 已对接公司如果拦截状态为【拦截中】,可以修改物流拦截组件信息,否则该组件不能修改;
3158
+ // 非对接公司可以修改组件
3159
+ // 修改后把工单信息重新提交给快递公司,清空拦截状态的值
3160
+ if (!isInterface) return true;
3161
+ //已对接公司在拦截中可以修改
3162
+ var INTERCEPTING = logisticsInterceptHandleStatus === 'INTERCEPTING';
3163
+ return isEditing ? INTERCEPTING : true;
3164
+ }, [value === null || value === void 0 ? void 0 : value.interceptCompany, statusOptions, isInterface, isEditing]);
3165
+ React.useEffect(function () {
3166
+ if (!(value === null || value === void 0 ? void 0 : value.interceptCompany)) {
3167
+ setTypeOptions([]);
3168
+ setStatusOptions([]);
3169
+ setIsInterface(false);
3170
+ return;
3171
+ }
3172
+ var interceptCompany = expressInterceptData.find(function (item) {
3173
+ return item.value === (value === null || value === void 0 ? void 0 : value.interceptCompany);
3174
+ });
3175
+ setTypeOptions((interceptCompany === null || interceptCompany === void 0 ? void 0 : interceptCompany.interceptionTypeList) || []);
3176
+ setStatusOptions((interceptCompany === null || interceptCompany === void 0 ? void 0 : interceptCompany.interceptionStatusList) || []);
3177
+ setIsInterface(interceptCompany === null || interceptCompany === void 0 ? void 0 : interceptCompany.isInterface);
3178
+ }, [value === null || value === void 0 ? void 0 : value.interceptCompany]);
3179
+ React.useEffect(function () {
3180
+ if (!(value === null || value === void 0 ? void 0 : value.interceptCompany)) return;
3181
+ var interceptCompany = expressInterceptData.find(function (item) {
3182
+ return item.value === (value === null || value === void 0 ? void 0 : value.interceptCompany);
3183
+ });
3184
+ var showAddress = ((interceptCompany === null || interceptCompany === void 0 ? void 0 : interceptCompany.interceptionTypeList) || []).some(function (item) {
3185
+ var _item$config;
3186
+ return item.value === (value === null || value === void 0 ? void 0 : value.interceptType) && (item === null || item === void 0 ? void 0 : (_item$config = item.config) === null || _item$config === void 0 ? void 0 : _item$config.showAddress);
3187
+ });
3188
+ if (!showAddress) {
3189
+ onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, value), {}, {
3190
+ interceptAddress: [],
3191
+ interceptDetail: '',
3192
+ interceptReceiverName: '',
3193
+ interceptReceiverMobile: ''
3194
+ }));
3195
+ }
3196
+ }, [value === null || value === void 0 ? void 0 : value.interceptType]);
3197
+ //是否展示新地址
3198
+ var showNewAddress = React.useMemo(function () {
3199
+ var _find, _find$config;
3200
+ return (_find = (typeOptions || []).find(function (item) {
3201
+ return item.value === (value === null || value === void 0 ? void 0 : value.interceptType);
3202
+ })) === null || _find === void 0 ? void 0 : (_find$config = _find.config) === null || _find$config === void 0 ? void 0 : _find$config.showAddress;
3203
+ }, [value === null || value === void 0 ? void 0 : value.interceptType, typeOptions, value === null || value === void 0 ? void 0 : value.interceptCompany]);
3204
+ var changeHandle = function changeHandle(val, type) {
3205
+ var newValue = _objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, type, val));
3206
+ if (type === 'interceptCompany') {
3207
+ var interceptCompany = expressInterceptData.find(function (item) {
3208
+ return item.value === val;
3209
+ });
3210
+ var returnValue = ((interceptCompany === null || interceptCompany === void 0 ? void 0 : interceptCompany.interceptionTypeList) || []).find(function (item) {
3211
+ var _item$label;
3212
+ 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;
3213
+ });
3214
+ newValue = _objectSpread2(_objectSpread2({}, value), {}, {
3215
+ interceptCompany: val,
3216
+ interceptType: (returnValue === null || returnValue === void 0 ? void 0 : returnValue.value) || '',
3217
+ interceptAddress: [],
3218
+ interceptDetail: '',
3219
+ interceptReceiverName: '',
3220
+ interceptReceiverMobile: '',
3221
+ interceptStatus: undefined,
3222
+ interceptOther: ''
3223
+ });
3224
+ }
3225
+ onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
3226
+ };
3227
+ return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(Item, {
3228
+ label: '物流信息',
3229
+ required: required,
3230
+ key: 'logistics'
3231
+ }, /*#__PURE__*/React__default['default'].createElement(antd.Space, null, /*#__PURE__*/React__default['default'].createElement(antd.Select, {
3232
+ disabled: disabled || !canEdit,
3233
+ placeholder: "\u7269\u6D41\u516C\u53F8",
3234
+ style: {
3235
+ width: '200px'
3236
+ },
3237
+ onChange: function onChange(val) {
3238
+ return changeHandle(val, 'interceptCompany');
3239
+ },
3240
+ value: (value === null || value === void 0 ? void 0 : value.interceptCompany) === '' ? undefined : value === null || value === void 0 ? void 0 : value.interceptCompany,
3241
+ options: logisticsOptions,
3242
+ showSearch: true,
3243
+ filterOption: function filterOption(input, option) {
3244
+ return option.label.includes(input);
3245
+ }
3246
+ }), /*#__PURE__*/React__default['default'].createElement(antd.Input, {
3247
+ disabled: disabled || !canEdit,
3248
+ placeholder: "\u7269\u6D41\u5355\u53F7",
3249
+ onChange: function onChange(e) {
3250
+ return changeHandle(e.target.value, 'interceptCode');
3251
+ },
3252
+ value: value === null || value === void 0 ? void 0 : value.interceptCode
3253
+ }))), /*#__PURE__*/React__default['default'].createElement(Item, {
3254
+ label: '拦截类型',
3255
+ required: required,
3256
+ key: 'interceptType'
3257
+ }, /*#__PURE__*/React__default['default'].createElement(antd.Select, {
3258
+ disabled: disabled || !canEdit,
3259
+ style: {
3260
+ width: '200px'
3261
+ },
3262
+ options: typeOptions,
3263
+ onChange: function onChange(val) {
3264
+ return changeHandle(val, 'interceptType');
3265
+ },
3266
+ value: value === null || value === void 0 ? void 0 : value.interceptType,
3267
+ placeholder: "\u62E6\u622A\u7C7B\u578B",
3268
+ showSearch: true,
3269
+ filterOption: function filterOption(input, option) {
3270
+ return option.label.includes(input);
3271
+ }
3272
+ })), /*#__PURE__*/React__default['default'].createElement(Item, {
3273
+ label: '新派送地',
3274
+ required: true,
3275
+ key: 'newAddress',
3276
+ hidden: !showNewAddress
3277
+ }, /*#__PURE__*/React__default['default'].createElement(antd.Space, null, /*#__PURE__*/React__default['default'].createElement(Province, {
3278
+ value: value === null || value === void 0 ? void 0 : value.interceptAddress,
3279
+ onChange: function onChange(val) {
3280
+ return changeHandle(val, 'interceptAddress');
3281
+ },
3282
+ options: [],
3283
+ disabled: disabled || !canEdit
3284
+ }), /*#__PURE__*/React__default['default'].createElement(antd.Input, {
3285
+ value: value === null || value === void 0 ? void 0 : value.interceptDetail,
3286
+ disabled: disabled || !canEdit,
3287
+ placeholder: "\u8BE6\u7EC6\u5730\u5740",
3288
+ onChange: function onChange(e) {
3289
+ return changeHandle(e.target.value, 'interceptDetail');
3290
+ }
3291
+ })), /*#__PURE__*/React__default['default'].createElement("br", null), /*#__PURE__*/React__default['default'].createElement(antd.Space, null, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
3292
+ value: value === null || value === void 0 ? void 0 : value.interceptReceiverName,
3293
+ disabled: disabled || !canEdit,
3294
+ style: {
3295
+ width: '200px'
3296
+ },
3297
+ placeholder: "\u6536\u4EF6\u4EBA\u59D3\u540D",
3298
+ onChange: function onChange(e) {
3299
+ return changeHandle(e.target.value, 'interceptReceiverName');
3300
+ }
3301
+ }), /*#__PURE__*/React__default['default'].createElement(antd.Input, {
3302
+ value: value === null || value === void 0 ? void 0 : value.interceptReceiverMobile,
3303
+ disabled: disabled || !canEdit,
3304
+ placeholder: "\u6536\u4EF6\u4EBA\u7535\u8BDD",
3305
+ onChange: function onChange(e) {
3306
+ return changeHandle(e.target.value, 'interceptReceiverMobile');
3307
+ }
3308
+ }))), /*#__PURE__*/React__default['default'].createElement(Item, {
3309
+ label: '拦截状态',
3310
+ key: 'interceptStatus'
3311
+ }, /*#__PURE__*/React__default['default'].createElement(antd.Select, {
3312
+ disabled: disabled || isInterface,
3313
+ style: {
3314
+ width: '200px'
3315
+ },
3316
+ options: statusOptions,
3317
+ onChange: function onChange(val) {
3318
+ return changeHandle(val, 'interceptStatus');
3319
+ },
3320
+ value: value === null || value === void 0 ? void 0 : value.interceptStatus,
3321
+ placeholder: "\u62E6\u622A\u72B6\u6001",
3322
+ showSearch: true,
3323
+ filterOption: function filterOption(input, option) {
3324
+ return option.label.includes(input);
3325
+ }
3326
+ }), (value === null || value === void 0 ? void 0 : value.interceptStatus) === 'OTHER' && /*#__PURE__*/React__default['default'].createElement(antd.Input, {
3327
+ disabled: disabled || !canEdit,
3328
+ style: {
3329
+ width: '200px'
3330
+ },
3331
+ placeholder: "\u5176\u4ED6",
3332
+ onChange: function onChange(e) {
3333
+ return changeHandle(e.target.value, 'interceptOther');
3334
+ }
3335
+ })));
3336
+ };
3337
+
3128
3338
  var jstGoods = function jstGoods(props) {
3129
3339
  var _value$changeIndex, _value$changeIndex2, _value$changeIndex3, _value$changeIndex4, _value$changeIndex5, _value$changeIndex6;
3130
3340
  var _props$value = props.value,
@@ -3815,6 +4025,7 @@ exports.GoodsTable = index;
3815
4025
  exports.Invoice = Invoice;
3816
4026
  exports.JstGoods = jstGoods;
3817
4027
  exports.JstItemList = ItemList;
4028
+ exports.LogisticsInterception = LogisticsInterception;
3818
4029
  exports.Payment = Payment;
3819
4030
  exports.Remark = RemarkInput;
3820
4031
  exports.ReturnLogistics = ExpressLogistics;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/basic-components",
3
- "version": "0.6.2",
3
+ "version": "0.6.3-alpha.15",
4
4
  "description": "> TODO: description",
5
5
  "homepage": "",
6
6
  "license": "ISC",
@@ -37,5 +37,5 @@
37
37
  "publishConfig": {
38
38
  "access": "public"
39
39
  },
40
- "gitHead": "07780bea9eb1cf7ac7764c78fc754668c96deb29"
40
+ "gitHead": "48cd1f4dc355b1b386299c085845494a7068c374"
41
41
  }