@kmkf-fe-packages/basic-components 0.2.0 → 0.2.2-alpha.0
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/business/LogisticsInterception/index.d.ts +21 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.esm.js +165 -1
- package/dist/index.js +165 -0
- package/package.json +2 -2
|
@@ -0,0 +1,21 @@
|
|
|
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
|
+
required: boolean;
|
|
16
|
+
disabled: boolean;
|
|
17
|
+
id: string;
|
|
18
|
+
onChange: (value: Partial<LogisticsInterceptionValueType>) => void;
|
|
19
|
+
}
|
|
20
|
+
declare const LogisticsInterception: (props: Partial<LogisticsInterceptionProps>) => JSX.Element;
|
|
21
|
+
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
|
@@ -3116,6 +3116,170 @@ var Payment = function Payment(props) {
|
|
|
3116
3116
|
}));
|
|
3117
3117
|
};
|
|
3118
3118
|
|
|
3119
|
+
var Item = Form.Item;
|
|
3120
|
+
var LogisticsInterception = function LogisticsInterception(props) {
|
|
3121
|
+
var _props$value = props.value,
|
|
3122
|
+
value = _props$value === void 0 ? {} : _props$value,
|
|
3123
|
+
_props$logisticsOptio = props.logisticsOptions,
|
|
3124
|
+
logisticsOptions = _props$logisticsOptio === void 0 ? [] : _props$logisticsOptio,
|
|
3125
|
+
required = props.required,
|
|
3126
|
+
onChange = props.onChange,
|
|
3127
|
+
disabled = props.disabled;
|
|
3128
|
+
var _useState = useState([]),
|
|
3129
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
3130
|
+
typeOptions = _useState2[0],
|
|
3131
|
+
setTypeOptions = _useState2[1];
|
|
3132
|
+
var _useState3 = useState([]),
|
|
3133
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
3134
|
+
statusOptions = _useState4[0],
|
|
3135
|
+
setStatusOptions = _useState4[1];
|
|
3136
|
+
var _useState5 = useState(true),
|
|
3137
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
3138
|
+
isInterface = _useState6[0],
|
|
3139
|
+
setIsInterface = _useState6[1];
|
|
3140
|
+
useEffect(function () {
|
|
3141
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, value), {}, {
|
|
3142
|
+
interceptType: undefined,
|
|
3143
|
+
interceptAddress: [],
|
|
3144
|
+
interceptDetail: '',
|
|
3145
|
+
interceptReceiverName: '',
|
|
3146
|
+
interceptReceiverMobile: '',
|
|
3147
|
+
interceptStatus: '',
|
|
3148
|
+
interceptOther: ''
|
|
3149
|
+
}));
|
|
3150
|
+
if (!(value === null || value === void 0 ? void 0 : value.interceptCompany)) {
|
|
3151
|
+
setTypeOptions([]);
|
|
3152
|
+
setStatusOptions([]);
|
|
3153
|
+
setIsInterface(true);
|
|
3154
|
+
return;
|
|
3155
|
+
}
|
|
3156
|
+
var interceptCompany = logisticsOptions.find(function (item) {
|
|
3157
|
+
return item.expressCode === (value === null || value === void 0 ? void 0 : value.interceptCompany);
|
|
3158
|
+
});
|
|
3159
|
+
setTypeOptions((interceptCompany === null || interceptCompany === void 0 ? void 0 : interceptCompany.interceptionTypeList) || []);
|
|
3160
|
+
setIsInterface(interceptCompany === null || interceptCompany === void 0 ? void 0 : interceptCompany.isInterface);
|
|
3161
|
+
}, [value === null || value === void 0 ? void 0 : value.interceptCompany]);
|
|
3162
|
+
var showNewAddress = useMemo(function () {
|
|
3163
|
+
var _find, _find$config;
|
|
3164
|
+
return (_find = (typeOptions || []).find(function (item) {
|
|
3165
|
+
return item.value === (value === null || value === void 0 ? void 0 : value.interceptType);
|
|
3166
|
+
})) === null || _find === void 0 ? void 0 : (_find$config = _find.config) === null || _find$config === void 0 ? void 0 : _find$config.showAddress;
|
|
3167
|
+
}, [value === null || value === void 0 ? void 0 : value.interceptType]);
|
|
3168
|
+
var changeHandle = function changeHandle(val, type) {
|
|
3169
|
+
var newValue = _objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, type, val));
|
|
3170
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
3171
|
+
};
|
|
3172
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Item, {
|
|
3173
|
+
label: '物流信息',
|
|
3174
|
+
required: required,
|
|
3175
|
+
key: 'logistics'
|
|
3176
|
+
}, /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Select, {
|
|
3177
|
+
disabled: disabled,
|
|
3178
|
+
fieldNames: {
|
|
3179
|
+
label: 'expressName',
|
|
3180
|
+
value: 'expressCode'
|
|
3181
|
+
},
|
|
3182
|
+
placeholder: "\u7269\u6D41\u516C\u53F8",
|
|
3183
|
+
style: {
|
|
3184
|
+
width: '200px'
|
|
3185
|
+
},
|
|
3186
|
+
onChange: function onChange(val) {
|
|
3187
|
+
return changeHandle(val, 'interceptCompany');
|
|
3188
|
+
},
|
|
3189
|
+
value: (value === null || value === void 0 ? void 0 : value.interceptCompany) === '' ? undefined : value === null || value === void 0 ? void 0 : value.interceptCompany,
|
|
3190
|
+
options: logisticsOptions,
|
|
3191
|
+
showSearch: true,
|
|
3192
|
+
filterOption: function filterOption(input, option) {
|
|
3193
|
+
return option.label.includes(input);
|
|
3194
|
+
}
|
|
3195
|
+
}), /*#__PURE__*/React.createElement(Input, {
|
|
3196
|
+
disabled: disabled,
|
|
3197
|
+
placeholder: "\u7269\u6D41\u5355\u53F7",
|
|
3198
|
+
onChange: function onChange(e) {
|
|
3199
|
+
return changeHandle(e.target.value, 'interceptCode');
|
|
3200
|
+
},
|
|
3201
|
+
value: value === null || value === void 0 ? void 0 : value.interceptCode
|
|
3202
|
+
}))), /*#__PURE__*/React.createElement(Item, {
|
|
3203
|
+
label: '拦截类型',
|
|
3204
|
+
required: required,
|
|
3205
|
+
key: 'interceptType'
|
|
3206
|
+
}, /*#__PURE__*/React.createElement(Select, {
|
|
3207
|
+
disabled: disabled,
|
|
3208
|
+
style: {
|
|
3209
|
+
width: '200px'
|
|
3210
|
+
},
|
|
3211
|
+
options: typeOptions,
|
|
3212
|
+
onChange: function onChange(val) {
|
|
3213
|
+
return changeHandle(val, 'interceptType');
|
|
3214
|
+
},
|
|
3215
|
+
value: value === null || value === void 0 ? void 0 : value.interceptType,
|
|
3216
|
+
placeholder: "\u62E6\u622A\u7C7B\u578B",
|
|
3217
|
+
showSearch: true,
|
|
3218
|
+
filterOption: function filterOption(input, option) {
|
|
3219
|
+
return option.label.includes(input);
|
|
3220
|
+
}
|
|
3221
|
+
})), /*#__PURE__*/React.createElement(Item, {
|
|
3222
|
+
label: '新派送地',
|
|
3223
|
+
required: required,
|
|
3224
|
+
key: 'newAddress',
|
|
3225
|
+
hidden: isInterface && showNewAddress
|
|
3226
|
+
}, /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Province, {
|
|
3227
|
+
value: value === null || value === void 0 ? void 0 : value.interceptAddress,
|
|
3228
|
+
onChange: function onChange(val) {
|
|
3229
|
+
return changeHandle(val, 'interceptAddress');
|
|
3230
|
+
},
|
|
3231
|
+
options: [],
|
|
3232
|
+
disabled: disabled
|
|
3233
|
+
}), /*#__PURE__*/React.createElement(Input, {
|
|
3234
|
+
disabled: disabled,
|
|
3235
|
+
placeholder: "\u8BE6\u7EC6\u5730\u5740",
|
|
3236
|
+
onChange: function onChange(e) {
|
|
3237
|
+
return changeHandle(e.target.value, 'interceptDetail');
|
|
3238
|
+
}
|
|
3239
|
+
})), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Input, {
|
|
3240
|
+
disabled: disabled,
|
|
3241
|
+
style: {
|
|
3242
|
+
width: '200px'
|
|
3243
|
+
},
|
|
3244
|
+
placeholder: "\u6536\u4EF6\u4EBA\u59D3\u540D",
|
|
3245
|
+
onChange: function onChange(e) {
|
|
3246
|
+
return changeHandle(e.target.value, 'interceptReceiverName');
|
|
3247
|
+
}
|
|
3248
|
+
}), /*#__PURE__*/React.createElement(Input, {
|
|
3249
|
+
disabled: disabled,
|
|
3250
|
+
placeholder: "\u6536\u4EF6\u4EBA\u7535\u8BDD",
|
|
3251
|
+
onChange: function onChange(e) {
|
|
3252
|
+
return changeHandle(e.target.value, 'interceptReceiverMobile');
|
|
3253
|
+
}
|
|
3254
|
+
}))), /*#__PURE__*/React.createElement(Item, {
|
|
3255
|
+
label: '拦截状态',
|
|
3256
|
+
key: 'interceptStatus'
|
|
3257
|
+
}, /*#__PURE__*/React.createElement(Select, {
|
|
3258
|
+
disabled: disabled || isInterface,
|
|
3259
|
+
style: {
|
|
3260
|
+
width: '200px'
|
|
3261
|
+
},
|
|
3262
|
+
options: statusOptions,
|
|
3263
|
+
onChange: function onChange(val) {
|
|
3264
|
+
return changeHandle(val, 'interceptStatus');
|
|
3265
|
+
},
|
|
3266
|
+
value: value === null || value === void 0 ? void 0 : value.interceptStatus,
|
|
3267
|
+
placeholder: "\u62E6\u622A\u72B6\u6001",
|
|
3268
|
+
showSearch: true,
|
|
3269
|
+
filterOption: function filterOption(input, option) {
|
|
3270
|
+
return option.label.includes(input);
|
|
3271
|
+
}
|
|
3272
|
+
}), (value === null || value === void 0 ? void 0 : value.interceptStatus) === 'OTHER' && /*#__PURE__*/React.createElement(Input, {
|
|
3273
|
+
style: {
|
|
3274
|
+
width: '200px'
|
|
3275
|
+
},
|
|
3276
|
+
placeholder: "\u5176\u4ED6",
|
|
3277
|
+
onChange: function onChange(e) {
|
|
3278
|
+
return changeHandle(e.target.value, 'interceptOther');
|
|
3279
|
+
}
|
|
3280
|
+
})));
|
|
3281
|
+
};
|
|
3282
|
+
|
|
3119
3283
|
var jstGoods = function jstGoods(props) {
|
|
3120
3284
|
var _value$changeIndex, _value$changeIndex2, _value$changeIndex3, _value$changeIndex4, _value$changeIndex5, _value$changeIndex6;
|
|
3121
3285
|
var _props$value = props.value,
|
|
@@ -3781,4 +3945,4 @@ var Goods$1 = function Goods(props, ref) {
|
|
|
3781
3945
|
};
|
|
3782
3946
|
var index = /*#__PURE__*/forwardRef(Goods$1);
|
|
3783
3947
|
|
|
3784
|
-
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 };
|
|
3948
|
+
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
|
@@ -3126,6 +3126,170 @@ var Payment = function Payment(props) {
|
|
|
3126
3126
|
}));
|
|
3127
3127
|
};
|
|
3128
3128
|
|
|
3129
|
+
var Item = antd.Form.Item;
|
|
3130
|
+
var LogisticsInterception = function LogisticsInterception(props) {
|
|
3131
|
+
var _props$value = props.value,
|
|
3132
|
+
value = _props$value === void 0 ? {} : _props$value,
|
|
3133
|
+
_props$logisticsOptio = props.logisticsOptions,
|
|
3134
|
+
logisticsOptions = _props$logisticsOptio === void 0 ? [] : _props$logisticsOptio,
|
|
3135
|
+
required = props.required,
|
|
3136
|
+
onChange = props.onChange,
|
|
3137
|
+
disabled = props.disabled;
|
|
3138
|
+
var _useState = React.useState([]),
|
|
3139
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
3140
|
+
typeOptions = _useState2[0],
|
|
3141
|
+
setTypeOptions = _useState2[1];
|
|
3142
|
+
var _useState3 = React.useState([]),
|
|
3143
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
3144
|
+
statusOptions = _useState4[0],
|
|
3145
|
+
setStatusOptions = _useState4[1];
|
|
3146
|
+
var _useState5 = React.useState(true),
|
|
3147
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
3148
|
+
isInterface = _useState6[0],
|
|
3149
|
+
setIsInterface = _useState6[1];
|
|
3150
|
+
React.useEffect(function () {
|
|
3151
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(_objectSpread2(_objectSpread2({}, value), {}, {
|
|
3152
|
+
interceptType: undefined,
|
|
3153
|
+
interceptAddress: [],
|
|
3154
|
+
interceptDetail: '',
|
|
3155
|
+
interceptReceiverName: '',
|
|
3156
|
+
interceptReceiverMobile: '',
|
|
3157
|
+
interceptStatus: '',
|
|
3158
|
+
interceptOther: ''
|
|
3159
|
+
}));
|
|
3160
|
+
if (!(value === null || value === void 0 ? void 0 : value.interceptCompany)) {
|
|
3161
|
+
setTypeOptions([]);
|
|
3162
|
+
setStatusOptions([]);
|
|
3163
|
+
setIsInterface(true);
|
|
3164
|
+
return;
|
|
3165
|
+
}
|
|
3166
|
+
var interceptCompany = logisticsOptions.find(function (item) {
|
|
3167
|
+
return item.expressCode === (value === null || value === void 0 ? void 0 : value.interceptCompany);
|
|
3168
|
+
});
|
|
3169
|
+
setTypeOptions((interceptCompany === null || interceptCompany === void 0 ? void 0 : interceptCompany.interceptionTypeList) || []);
|
|
3170
|
+
setIsInterface(interceptCompany === null || interceptCompany === void 0 ? void 0 : interceptCompany.isInterface);
|
|
3171
|
+
}, [value === null || value === void 0 ? void 0 : value.interceptCompany]);
|
|
3172
|
+
var showNewAddress = React.useMemo(function () {
|
|
3173
|
+
var _find, _find$config;
|
|
3174
|
+
return (_find = (typeOptions || []).find(function (item) {
|
|
3175
|
+
return item.value === (value === null || value === void 0 ? void 0 : value.interceptType);
|
|
3176
|
+
})) === null || _find === void 0 ? void 0 : (_find$config = _find.config) === null || _find$config === void 0 ? void 0 : _find$config.showAddress;
|
|
3177
|
+
}, [value === null || value === void 0 ? void 0 : value.interceptType]);
|
|
3178
|
+
var changeHandle = function changeHandle(val, type) {
|
|
3179
|
+
var newValue = _objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, type, val));
|
|
3180
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
3181
|
+
};
|
|
3182
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(Item, {
|
|
3183
|
+
label: '物流信息',
|
|
3184
|
+
required: required,
|
|
3185
|
+
key: 'logistics'
|
|
3186
|
+
}, /*#__PURE__*/React__default['default'].createElement(antd.Space, null, /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
3187
|
+
disabled: disabled,
|
|
3188
|
+
fieldNames: {
|
|
3189
|
+
label: 'expressName',
|
|
3190
|
+
value: 'expressCode'
|
|
3191
|
+
},
|
|
3192
|
+
placeholder: "\u7269\u6D41\u516C\u53F8",
|
|
3193
|
+
style: {
|
|
3194
|
+
width: '200px'
|
|
3195
|
+
},
|
|
3196
|
+
onChange: function onChange(val) {
|
|
3197
|
+
return changeHandle(val, 'interceptCompany');
|
|
3198
|
+
},
|
|
3199
|
+
value: (value === null || value === void 0 ? void 0 : value.interceptCompany) === '' ? undefined : value === null || value === void 0 ? void 0 : value.interceptCompany,
|
|
3200
|
+
options: logisticsOptions,
|
|
3201
|
+
showSearch: true,
|
|
3202
|
+
filterOption: function filterOption(input, option) {
|
|
3203
|
+
return option.label.includes(input);
|
|
3204
|
+
}
|
|
3205
|
+
}), /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
3206
|
+
disabled: disabled,
|
|
3207
|
+
placeholder: "\u7269\u6D41\u5355\u53F7",
|
|
3208
|
+
onChange: function onChange(e) {
|
|
3209
|
+
return changeHandle(e.target.value, 'interceptCode');
|
|
3210
|
+
},
|
|
3211
|
+
value: value === null || value === void 0 ? void 0 : value.interceptCode
|
|
3212
|
+
}))), /*#__PURE__*/React__default['default'].createElement(Item, {
|
|
3213
|
+
label: '拦截类型',
|
|
3214
|
+
required: required,
|
|
3215
|
+
key: 'interceptType'
|
|
3216
|
+
}, /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
3217
|
+
disabled: disabled,
|
|
3218
|
+
style: {
|
|
3219
|
+
width: '200px'
|
|
3220
|
+
},
|
|
3221
|
+
options: typeOptions,
|
|
3222
|
+
onChange: function onChange(val) {
|
|
3223
|
+
return changeHandle(val, 'interceptType');
|
|
3224
|
+
},
|
|
3225
|
+
value: value === null || value === void 0 ? void 0 : value.interceptType,
|
|
3226
|
+
placeholder: "\u62E6\u622A\u7C7B\u578B",
|
|
3227
|
+
showSearch: true,
|
|
3228
|
+
filterOption: function filterOption(input, option) {
|
|
3229
|
+
return option.label.includes(input);
|
|
3230
|
+
}
|
|
3231
|
+
})), /*#__PURE__*/React__default['default'].createElement(Item, {
|
|
3232
|
+
label: '新派送地',
|
|
3233
|
+
required: required,
|
|
3234
|
+
key: 'newAddress',
|
|
3235
|
+
hidden: isInterface && showNewAddress
|
|
3236
|
+
}, /*#__PURE__*/React__default['default'].createElement(antd.Space, null, /*#__PURE__*/React__default['default'].createElement(Province, {
|
|
3237
|
+
value: value === null || value === void 0 ? void 0 : value.interceptAddress,
|
|
3238
|
+
onChange: function onChange(val) {
|
|
3239
|
+
return changeHandle(val, 'interceptAddress');
|
|
3240
|
+
},
|
|
3241
|
+
options: [],
|
|
3242
|
+
disabled: disabled
|
|
3243
|
+
}), /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
3244
|
+
disabled: disabled,
|
|
3245
|
+
placeholder: "\u8BE6\u7EC6\u5730\u5740",
|
|
3246
|
+
onChange: function onChange(e) {
|
|
3247
|
+
return changeHandle(e.target.value, 'interceptDetail');
|
|
3248
|
+
}
|
|
3249
|
+
})), /*#__PURE__*/React__default['default'].createElement("br", null), /*#__PURE__*/React__default['default'].createElement(antd.Space, null, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
3250
|
+
disabled: disabled,
|
|
3251
|
+
style: {
|
|
3252
|
+
width: '200px'
|
|
3253
|
+
},
|
|
3254
|
+
placeholder: "\u6536\u4EF6\u4EBA\u59D3\u540D",
|
|
3255
|
+
onChange: function onChange(e) {
|
|
3256
|
+
return changeHandle(e.target.value, 'interceptReceiverName');
|
|
3257
|
+
}
|
|
3258
|
+
}), /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
3259
|
+
disabled: disabled,
|
|
3260
|
+
placeholder: "\u6536\u4EF6\u4EBA\u7535\u8BDD",
|
|
3261
|
+
onChange: function onChange(e) {
|
|
3262
|
+
return changeHandle(e.target.value, 'interceptReceiverMobile');
|
|
3263
|
+
}
|
|
3264
|
+
}))), /*#__PURE__*/React__default['default'].createElement(Item, {
|
|
3265
|
+
label: '拦截状态',
|
|
3266
|
+
key: 'interceptStatus'
|
|
3267
|
+
}, /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
3268
|
+
disabled: disabled || isInterface,
|
|
3269
|
+
style: {
|
|
3270
|
+
width: '200px'
|
|
3271
|
+
},
|
|
3272
|
+
options: statusOptions,
|
|
3273
|
+
onChange: function onChange(val) {
|
|
3274
|
+
return changeHandle(val, 'interceptStatus');
|
|
3275
|
+
},
|
|
3276
|
+
value: value === null || value === void 0 ? void 0 : value.interceptStatus,
|
|
3277
|
+
placeholder: "\u62E6\u622A\u72B6\u6001",
|
|
3278
|
+
showSearch: true,
|
|
3279
|
+
filterOption: function filterOption(input, option) {
|
|
3280
|
+
return option.label.includes(input);
|
|
3281
|
+
}
|
|
3282
|
+
}), (value === null || value === void 0 ? void 0 : value.interceptStatus) === 'OTHER' && /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
3283
|
+
style: {
|
|
3284
|
+
width: '200px'
|
|
3285
|
+
},
|
|
3286
|
+
placeholder: "\u5176\u4ED6",
|
|
3287
|
+
onChange: function onChange(e) {
|
|
3288
|
+
return changeHandle(e.target.value, 'interceptOther');
|
|
3289
|
+
}
|
|
3290
|
+
})));
|
|
3291
|
+
};
|
|
3292
|
+
|
|
3129
3293
|
var jstGoods = function jstGoods(props) {
|
|
3130
3294
|
var _value$changeIndex, _value$changeIndex2, _value$changeIndex3, _value$changeIndex4, _value$changeIndex5, _value$changeIndex6;
|
|
3131
3295
|
var _props$value = props.value,
|
|
@@ -3816,6 +3980,7 @@ exports.GoodsTable = index;
|
|
|
3816
3980
|
exports.Invoice = Invoice;
|
|
3817
3981
|
exports.JstGoods = jstGoods;
|
|
3818
3982
|
exports.JstItemList = ItemList;
|
|
3983
|
+
exports.LogisticsInterception = LogisticsInterception;
|
|
3819
3984
|
exports.Payment = Payment;
|
|
3820
3985
|
exports.Remark = RemarkInput;
|
|
3821
3986
|
exports.ReturnLogistics = ExpressLogistics;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/basic-components",
|
|
3
|
-
"version": "0.2.0",
|
|
3
|
+
"version": "0.2.2-alpha.0",
|
|
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": "d44b310feb505019c7ffb93c23826b045e71e627",
|
|
17
17
|
"publishConfig": {
|
|
18
18
|
"access": "public"
|
|
19
19
|
},
|