@kmkf-fe-packages/basic-components 0.6.2 → 0.6.3-alpha.3
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 +22 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.esm.js +183 -1
- package/dist/index.js +183 -0
- package/package.json +2 -2
|
@@ -0,0 +1,22 @@
|
|
|
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
|
+
isEditing: boolean;
|
|
18
|
+
id: string;
|
|
19
|
+
onChange: (value: Partial<LogisticsInterceptionValueType>) => void;
|
|
20
|
+
}
|
|
21
|
+
declare const LogisticsInterception: (props: Partial<LogisticsInterceptionProps>) => JSX.Element;
|
|
22
|
+
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,188 @@ 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$required = props.required,
|
|
3125
|
+
required = _props$required === void 0 ? false : _props$required,
|
|
3126
|
+
onChange = props.onChange,
|
|
3127
|
+
_props$disabled = props.disabled,
|
|
3128
|
+
disabled = _props$disabled === void 0 ? false : _props$disabled,
|
|
3129
|
+
_props$isEditing = props.isEditing,
|
|
3130
|
+
isEditing = _props$isEditing === void 0 ? false : _props$isEditing;
|
|
3131
|
+
var _useState = useState([]),
|
|
3132
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
3133
|
+
typeOptions = _useState2[0],
|
|
3134
|
+
setTypeOptions = _useState2[1];
|
|
3135
|
+
var _useState3 = useState([]),
|
|
3136
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
3137
|
+
statusOptions = _useState4[0],
|
|
3138
|
+
setStatusOptions = _useState4[1];
|
|
3139
|
+
var _useState5 = useState(false),
|
|
3140
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
3141
|
+
isInterface = _useState6[0],
|
|
3142
|
+
setIsInterface = _useState6[1];
|
|
3143
|
+
var canEdit = useMemo(function () {
|
|
3144
|
+
//非对接公司可以修改
|
|
3145
|
+
if (!isInterface) return true;
|
|
3146
|
+
//已对接公司在拦截中可以修改
|
|
3147
|
+
var INTERCEPTING = statusOptions.some(function (item) {
|
|
3148
|
+
return item.value === (value === null || value === void 0 ? void 0 : value.interceptStatus) && (item === null || item === void 0 ? void 0 : item.showInterceptionBtn);
|
|
3149
|
+
});
|
|
3150
|
+
return isEditing && (value === null || value === void 0 ? void 0 : value.interceptStatus) ? INTERCEPTING && isEditing : true;
|
|
3151
|
+
}, [value, statusOptions, isInterface, isEditing]);
|
|
3152
|
+
useEffect(function () {
|
|
3153
|
+
if (!(value === null || value === void 0 ? void 0 : value.interceptCompany)) {
|
|
3154
|
+
setTypeOptions([]);
|
|
3155
|
+
setStatusOptions([]);
|
|
3156
|
+
setIsInterface(false);
|
|
3157
|
+
return;
|
|
3158
|
+
}
|
|
3159
|
+
var interceptCompany = logisticsOptions.find(function (item) {
|
|
3160
|
+
return item.expressCode === (value === null || value === void 0 ? void 0 : value.interceptCompany);
|
|
3161
|
+
});
|
|
3162
|
+
setTypeOptions((interceptCompany === null || interceptCompany === void 0 ? void 0 : interceptCompany.interceptionTypeList) || []);
|
|
3163
|
+
setStatusOptions((interceptCompany === null || interceptCompany === void 0 ? void 0 : interceptCompany.interceptionStatusList) || []);
|
|
3164
|
+
setIsInterface(interceptCompany === null || interceptCompany === void 0 ? void 0 : interceptCompany.isInterface);
|
|
3165
|
+
}, [value === null || value === void 0 ? void 0 : value.interceptCompany]);
|
|
3166
|
+
//是否展示新地址
|
|
3167
|
+
var showNewAddress = useMemo(function () {
|
|
3168
|
+
var _find, _find$config;
|
|
3169
|
+
return (_find = (typeOptions || []).find(function (item) {
|
|
3170
|
+
return item.value === (value === null || value === void 0 ? void 0 : value.interceptType);
|
|
3171
|
+
})) === null || _find === void 0 ? void 0 : (_find$config = _find.config) === null || _find$config === void 0 ? void 0 : _find$config.showAddress;
|
|
3172
|
+
}, [value === null || value === void 0 ? void 0 : value.interceptType, typeOptions, value === null || value === void 0 ? void 0 : value.interceptCompany]);
|
|
3173
|
+
var changeHandle = function changeHandle(val, type) {
|
|
3174
|
+
var newValue = _objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, type, val));
|
|
3175
|
+
if (type === 'interceptCompany') {
|
|
3176
|
+
newValue = _objectSpread2(_objectSpread2({}, value), {}, {
|
|
3177
|
+
interceptCompany: val,
|
|
3178
|
+
interceptType: 'RETURN',
|
|
3179
|
+
interceptAddress: [],
|
|
3180
|
+
interceptDetail: '',
|
|
3181
|
+
interceptReceiverName: '',
|
|
3182
|
+
interceptReceiverMobile: '',
|
|
3183
|
+
interceptStatus: '',
|
|
3184
|
+
interceptOther: ''
|
|
3185
|
+
});
|
|
3186
|
+
}
|
|
3187
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
3188
|
+
};
|
|
3189
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Item, {
|
|
3190
|
+
label: '物流信息',
|
|
3191
|
+
required: required,
|
|
3192
|
+
key: 'logistics'
|
|
3193
|
+
}, /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Select, {
|
|
3194
|
+
disabled: disabled || !canEdit,
|
|
3195
|
+
placeholder: "\u7269\u6D41\u516C\u53F8",
|
|
3196
|
+
style: {
|
|
3197
|
+
width: '200px'
|
|
3198
|
+
},
|
|
3199
|
+
onChange: function onChange(val) {
|
|
3200
|
+
return changeHandle(val, 'interceptCompany');
|
|
3201
|
+
},
|
|
3202
|
+
value: (value === null || value === void 0 ? void 0 : value.interceptCompany) === '' ? undefined : value === null || value === void 0 ? void 0 : value.interceptCompany,
|
|
3203
|
+
options: logisticsOptions,
|
|
3204
|
+
showSearch: true,
|
|
3205
|
+
filterOption: function filterOption(input, option) {
|
|
3206
|
+
return option.label.includes(input);
|
|
3207
|
+
}
|
|
3208
|
+
}), /*#__PURE__*/React.createElement(Input, {
|
|
3209
|
+
disabled: disabled || !canEdit,
|
|
3210
|
+
placeholder: "\u7269\u6D41\u5355\u53F7",
|
|
3211
|
+
onChange: function onChange(e) {
|
|
3212
|
+
return changeHandle(e.target.value, 'interceptCode');
|
|
3213
|
+
},
|
|
3214
|
+
value: value === null || value === void 0 ? void 0 : value.interceptCode
|
|
3215
|
+
}))), /*#__PURE__*/React.createElement(Item, {
|
|
3216
|
+
label: '拦截类型',
|
|
3217
|
+
required: required,
|
|
3218
|
+
key: 'interceptType'
|
|
3219
|
+
}, /*#__PURE__*/React.createElement(Select, {
|
|
3220
|
+
disabled: disabled || !canEdit,
|
|
3221
|
+
style: {
|
|
3222
|
+
width: '200px'
|
|
3223
|
+
},
|
|
3224
|
+
options: typeOptions,
|
|
3225
|
+
onChange: function onChange(val) {
|
|
3226
|
+
return changeHandle(val, 'interceptType');
|
|
3227
|
+
},
|
|
3228
|
+
value: value === null || value === void 0 ? void 0 : value.interceptType,
|
|
3229
|
+
placeholder: "\u62E6\u622A\u7C7B\u578B",
|
|
3230
|
+
showSearch: true,
|
|
3231
|
+
filterOption: function filterOption(input, option) {
|
|
3232
|
+
return option.label.includes(input);
|
|
3233
|
+
}
|
|
3234
|
+
})), /*#__PURE__*/React.createElement(Item, {
|
|
3235
|
+
label: '新派送地',
|
|
3236
|
+
required: true,
|
|
3237
|
+
key: 'newAddress',
|
|
3238
|
+
hidden: !showNewAddress
|
|
3239
|
+
}, /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Province, {
|
|
3240
|
+
value: value === null || value === void 0 ? void 0 : value.interceptAddress,
|
|
3241
|
+
onChange: function onChange(val) {
|
|
3242
|
+
return changeHandle(val, 'interceptAddress');
|
|
3243
|
+
},
|
|
3244
|
+
options: [],
|
|
3245
|
+
disabled: disabled || !canEdit
|
|
3246
|
+
}), /*#__PURE__*/React.createElement(Input, {
|
|
3247
|
+
value: value === null || value === void 0 ? void 0 : value.interceptDetail,
|
|
3248
|
+
disabled: disabled || !canEdit,
|
|
3249
|
+
placeholder: "\u8BE6\u7EC6\u5730\u5740",
|
|
3250
|
+
onChange: function onChange(e) {
|
|
3251
|
+
return changeHandle(e.target.value, 'interceptDetail');
|
|
3252
|
+
}
|
|
3253
|
+
})), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Input, {
|
|
3254
|
+
value: value === null || value === void 0 ? void 0 : value.interceptReceiverName,
|
|
3255
|
+
disabled: disabled || !canEdit,
|
|
3256
|
+
style: {
|
|
3257
|
+
width: '200px'
|
|
3258
|
+
},
|
|
3259
|
+
placeholder: "\u6536\u4EF6\u4EBA\u59D3\u540D",
|
|
3260
|
+
onChange: function onChange(e) {
|
|
3261
|
+
return changeHandle(e.target.value, 'interceptReceiverName');
|
|
3262
|
+
}
|
|
3263
|
+
}), /*#__PURE__*/React.createElement(Input, {
|
|
3264
|
+
value: value === null || value === void 0 ? void 0 : value.interceptReceiverMobile,
|
|
3265
|
+
disabled: disabled || !canEdit,
|
|
3266
|
+
placeholder: "\u6536\u4EF6\u4EBA\u7535\u8BDD",
|
|
3267
|
+
onChange: function onChange(e) {
|
|
3268
|
+
return changeHandle(e.target.value, 'interceptReceiverMobile');
|
|
3269
|
+
}
|
|
3270
|
+
}))), /*#__PURE__*/React.createElement(Item, {
|
|
3271
|
+
label: '拦截状态',
|
|
3272
|
+
key: 'interceptStatus'
|
|
3273
|
+
}, /*#__PURE__*/React.createElement(Select, {
|
|
3274
|
+
disabled: disabled || isInterface,
|
|
3275
|
+
style: {
|
|
3276
|
+
width: '200px'
|
|
3277
|
+
},
|
|
3278
|
+
options: statusOptions,
|
|
3279
|
+
onChange: function onChange(val) {
|
|
3280
|
+
return changeHandle(val, 'interceptStatus');
|
|
3281
|
+
},
|
|
3282
|
+
value: value === null || value === void 0 ? void 0 : value.interceptStatus,
|
|
3283
|
+
placeholder: "\u62E6\u622A\u72B6\u6001",
|
|
3284
|
+
showSearch: true,
|
|
3285
|
+
filterOption: function filterOption(input, option) {
|
|
3286
|
+
return option.label.includes(input);
|
|
3287
|
+
}
|
|
3288
|
+
}), (value === null || value === void 0 ? void 0 : value.interceptStatus) === 'OTHER' && /*#__PURE__*/React.createElement(Input, {
|
|
3289
|
+
disabled: disabled || canEdit,
|
|
3290
|
+
style: {
|
|
3291
|
+
width: '200px'
|
|
3292
|
+
},
|
|
3293
|
+
placeholder: "\u5176\u4ED6",
|
|
3294
|
+
onChange: function onChange(e) {
|
|
3295
|
+
return changeHandle(e.target.value, 'interceptOther');
|
|
3296
|
+
}
|
|
3297
|
+
})));
|
|
3298
|
+
};
|
|
3299
|
+
|
|
3118
3300
|
var jstGoods = function jstGoods(props) {
|
|
3119
3301
|
var _value$changeIndex, _value$changeIndex2, _value$changeIndex3, _value$changeIndex4, _value$changeIndex5, _value$changeIndex6;
|
|
3120
3302
|
var _props$value = props.value,
|
|
@@ -3780,4 +3962,4 @@ var Goods$1 = function Goods(props, ref) {
|
|
|
3780
3962
|
};
|
|
3781
3963
|
var index = /*#__PURE__*/forwardRef(Goods$1);
|
|
3782
3964
|
|
|
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 };
|
|
3965
|
+
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,188 @@ 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$required = props.required,
|
|
3135
|
+
required = _props$required === void 0 ? false : _props$required,
|
|
3136
|
+
onChange = props.onChange,
|
|
3137
|
+
_props$disabled = props.disabled,
|
|
3138
|
+
disabled = _props$disabled === void 0 ? false : _props$disabled,
|
|
3139
|
+
_props$isEditing = props.isEditing,
|
|
3140
|
+
isEditing = _props$isEditing === void 0 ? false : _props$isEditing;
|
|
3141
|
+
var _useState = React.useState([]),
|
|
3142
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
3143
|
+
typeOptions = _useState2[0],
|
|
3144
|
+
setTypeOptions = _useState2[1];
|
|
3145
|
+
var _useState3 = React.useState([]),
|
|
3146
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
3147
|
+
statusOptions = _useState4[0],
|
|
3148
|
+
setStatusOptions = _useState4[1];
|
|
3149
|
+
var _useState5 = React.useState(false),
|
|
3150
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
3151
|
+
isInterface = _useState6[0],
|
|
3152
|
+
setIsInterface = _useState6[1];
|
|
3153
|
+
var canEdit = React.useMemo(function () {
|
|
3154
|
+
//非对接公司可以修改
|
|
3155
|
+
if (!isInterface) return true;
|
|
3156
|
+
//已对接公司在拦截中可以修改
|
|
3157
|
+
var INTERCEPTING = statusOptions.some(function (item) {
|
|
3158
|
+
return item.value === (value === null || value === void 0 ? void 0 : value.interceptStatus) && (item === null || item === void 0 ? void 0 : item.showInterceptionBtn);
|
|
3159
|
+
});
|
|
3160
|
+
return isEditing && (value === null || value === void 0 ? void 0 : value.interceptStatus) ? INTERCEPTING && isEditing : true;
|
|
3161
|
+
}, [value, statusOptions, isInterface, isEditing]);
|
|
3162
|
+
React.useEffect(function () {
|
|
3163
|
+
if (!(value === null || value === void 0 ? void 0 : value.interceptCompany)) {
|
|
3164
|
+
setTypeOptions([]);
|
|
3165
|
+
setStatusOptions([]);
|
|
3166
|
+
setIsInterface(false);
|
|
3167
|
+
return;
|
|
3168
|
+
}
|
|
3169
|
+
var interceptCompany = logisticsOptions.find(function (item) {
|
|
3170
|
+
return item.expressCode === (value === null || value === void 0 ? void 0 : value.interceptCompany);
|
|
3171
|
+
});
|
|
3172
|
+
setTypeOptions((interceptCompany === null || interceptCompany === void 0 ? void 0 : interceptCompany.interceptionTypeList) || []);
|
|
3173
|
+
setStatusOptions((interceptCompany === null || interceptCompany === void 0 ? void 0 : interceptCompany.interceptionStatusList) || []);
|
|
3174
|
+
setIsInterface(interceptCompany === null || interceptCompany === void 0 ? void 0 : interceptCompany.isInterface);
|
|
3175
|
+
}, [value === null || value === void 0 ? void 0 : value.interceptCompany]);
|
|
3176
|
+
//是否展示新地址
|
|
3177
|
+
var showNewAddress = React.useMemo(function () {
|
|
3178
|
+
var _find, _find$config;
|
|
3179
|
+
return (_find = (typeOptions || []).find(function (item) {
|
|
3180
|
+
return item.value === (value === null || value === void 0 ? void 0 : value.interceptType);
|
|
3181
|
+
})) === null || _find === void 0 ? void 0 : (_find$config = _find.config) === null || _find$config === void 0 ? void 0 : _find$config.showAddress;
|
|
3182
|
+
}, [value === null || value === void 0 ? void 0 : value.interceptType, typeOptions, value === null || value === void 0 ? void 0 : value.interceptCompany]);
|
|
3183
|
+
var changeHandle = function changeHandle(val, type) {
|
|
3184
|
+
var newValue = _objectSpread2(_objectSpread2({}, value), {}, _defineProperty({}, type, val));
|
|
3185
|
+
if (type === 'interceptCompany') {
|
|
3186
|
+
newValue = _objectSpread2(_objectSpread2({}, value), {}, {
|
|
3187
|
+
interceptCompany: val,
|
|
3188
|
+
interceptType: 'RETURN',
|
|
3189
|
+
interceptAddress: [],
|
|
3190
|
+
interceptDetail: '',
|
|
3191
|
+
interceptReceiverName: '',
|
|
3192
|
+
interceptReceiverMobile: '',
|
|
3193
|
+
interceptStatus: '',
|
|
3194
|
+
interceptOther: ''
|
|
3195
|
+
});
|
|
3196
|
+
}
|
|
3197
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
3198
|
+
};
|
|
3199
|
+
return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(Item, {
|
|
3200
|
+
label: '物流信息',
|
|
3201
|
+
required: required,
|
|
3202
|
+
key: 'logistics'
|
|
3203
|
+
}, /*#__PURE__*/React__default['default'].createElement(antd.Space, null, /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
3204
|
+
disabled: disabled || !canEdit,
|
|
3205
|
+
placeholder: "\u7269\u6D41\u516C\u53F8",
|
|
3206
|
+
style: {
|
|
3207
|
+
width: '200px'
|
|
3208
|
+
},
|
|
3209
|
+
onChange: function onChange(val) {
|
|
3210
|
+
return changeHandle(val, 'interceptCompany');
|
|
3211
|
+
},
|
|
3212
|
+
value: (value === null || value === void 0 ? void 0 : value.interceptCompany) === '' ? undefined : value === null || value === void 0 ? void 0 : value.interceptCompany,
|
|
3213
|
+
options: logisticsOptions,
|
|
3214
|
+
showSearch: true,
|
|
3215
|
+
filterOption: function filterOption(input, option) {
|
|
3216
|
+
return option.label.includes(input);
|
|
3217
|
+
}
|
|
3218
|
+
}), /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
3219
|
+
disabled: disabled || !canEdit,
|
|
3220
|
+
placeholder: "\u7269\u6D41\u5355\u53F7",
|
|
3221
|
+
onChange: function onChange(e) {
|
|
3222
|
+
return changeHandle(e.target.value, 'interceptCode');
|
|
3223
|
+
},
|
|
3224
|
+
value: value === null || value === void 0 ? void 0 : value.interceptCode
|
|
3225
|
+
}))), /*#__PURE__*/React__default['default'].createElement(Item, {
|
|
3226
|
+
label: '拦截类型',
|
|
3227
|
+
required: required,
|
|
3228
|
+
key: 'interceptType'
|
|
3229
|
+
}, /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
3230
|
+
disabled: disabled || !canEdit,
|
|
3231
|
+
style: {
|
|
3232
|
+
width: '200px'
|
|
3233
|
+
},
|
|
3234
|
+
options: typeOptions,
|
|
3235
|
+
onChange: function onChange(val) {
|
|
3236
|
+
return changeHandle(val, 'interceptType');
|
|
3237
|
+
},
|
|
3238
|
+
value: value === null || value === void 0 ? void 0 : value.interceptType,
|
|
3239
|
+
placeholder: "\u62E6\u622A\u7C7B\u578B",
|
|
3240
|
+
showSearch: true,
|
|
3241
|
+
filterOption: function filterOption(input, option) {
|
|
3242
|
+
return option.label.includes(input);
|
|
3243
|
+
}
|
|
3244
|
+
})), /*#__PURE__*/React__default['default'].createElement(Item, {
|
|
3245
|
+
label: '新派送地',
|
|
3246
|
+
required: true,
|
|
3247
|
+
key: 'newAddress',
|
|
3248
|
+
hidden: !showNewAddress
|
|
3249
|
+
}, /*#__PURE__*/React__default['default'].createElement(antd.Space, null, /*#__PURE__*/React__default['default'].createElement(Province, {
|
|
3250
|
+
value: value === null || value === void 0 ? void 0 : value.interceptAddress,
|
|
3251
|
+
onChange: function onChange(val) {
|
|
3252
|
+
return changeHandle(val, 'interceptAddress');
|
|
3253
|
+
},
|
|
3254
|
+
options: [],
|
|
3255
|
+
disabled: disabled || !canEdit
|
|
3256
|
+
}), /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
3257
|
+
value: value === null || value === void 0 ? void 0 : value.interceptDetail,
|
|
3258
|
+
disabled: disabled || !canEdit,
|
|
3259
|
+
placeholder: "\u8BE6\u7EC6\u5730\u5740",
|
|
3260
|
+
onChange: function onChange(e) {
|
|
3261
|
+
return changeHandle(e.target.value, 'interceptDetail');
|
|
3262
|
+
}
|
|
3263
|
+
})), /*#__PURE__*/React__default['default'].createElement("br", null), /*#__PURE__*/React__default['default'].createElement(antd.Space, null, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
3264
|
+
value: value === null || value === void 0 ? void 0 : value.interceptReceiverName,
|
|
3265
|
+
disabled: disabled || !canEdit,
|
|
3266
|
+
style: {
|
|
3267
|
+
width: '200px'
|
|
3268
|
+
},
|
|
3269
|
+
placeholder: "\u6536\u4EF6\u4EBA\u59D3\u540D",
|
|
3270
|
+
onChange: function onChange(e) {
|
|
3271
|
+
return changeHandle(e.target.value, 'interceptReceiverName');
|
|
3272
|
+
}
|
|
3273
|
+
}), /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
3274
|
+
value: value === null || value === void 0 ? void 0 : value.interceptReceiverMobile,
|
|
3275
|
+
disabled: disabled || !canEdit,
|
|
3276
|
+
placeholder: "\u6536\u4EF6\u4EBA\u7535\u8BDD",
|
|
3277
|
+
onChange: function onChange(e) {
|
|
3278
|
+
return changeHandle(e.target.value, 'interceptReceiverMobile');
|
|
3279
|
+
}
|
|
3280
|
+
}))), /*#__PURE__*/React__default['default'].createElement(Item, {
|
|
3281
|
+
label: '拦截状态',
|
|
3282
|
+
key: 'interceptStatus'
|
|
3283
|
+
}, /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
3284
|
+
disabled: disabled || isInterface,
|
|
3285
|
+
style: {
|
|
3286
|
+
width: '200px'
|
|
3287
|
+
},
|
|
3288
|
+
options: statusOptions,
|
|
3289
|
+
onChange: function onChange(val) {
|
|
3290
|
+
return changeHandle(val, 'interceptStatus');
|
|
3291
|
+
},
|
|
3292
|
+
value: value === null || value === void 0 ? void 0 : value.interceptStatus,
|
|
3293
|
+
placeholder: "\u62E6\u622A\u72B6\u6001",
|
|
3294
|
+
showSearch: true,
|
|
3295
|
+
filterOption: function filterOption(input, option) {
|
|
3296
|
+
return option.label.includes(input);
|
|
3297
|
+
}
|
|
3298
|
+
}), (value === null || value === void 0 ? void 0 : value.interceptStatus) === 'OTHER' && /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
3299
|
+
disabled: disabled || canEdit,
|
|
3300
|
+
style: {
|
|
3301
|
+
width: '200px'
|
|
3302
|
+
},
|
|
3303
|
+
placeholder: "\u5176\u4ED6",
|
|
3304
|
+
onChange: function onChange(e) {
|
|
3305
|
+
return changeHandle(e.target.value, 'interceptOther');
|
|
3306
|
+
}
|
|
3307
|
+
})));
|
|
3308
|
+
};
|
|
3309
|
+
|
|
3128
3310
|
var jstGoods = function jstGoods(props) {
|
|
3129
3311
|
var _value$changeIndex, _value$changeIndex2, _value$changeIndex3, _value$changeIndex4, _value$changeIndex5, _value$changeIndex6;
|
|
3130
3312
|
var _props$value = props.value,
|
|
@@ -3815,6 +3997,7 @@ exports.GoodsTable = index;
|
|
|
3815
3997
|
exports.Invoice = Invoice;
|
|
3816
3998
|
exports.JstGoods = jstGoods;
|
|
3817
3999
|
exports.JstItemList = ItemList;
|
|
4000
|
+
exports.LogisticsInterception = LogisticsInterception;
|
|
3818
4001
|
exports.Payment = Payment;
|
|
3819
4002
|
exports.Remark = RemarkInput;
|
|
3820
4003
|
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.
|
|
3
|
+
"version": "0.6.3-alpha.3",
|
|
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": "
|
|
40
|
+
"gitHead": "021dc716b8d75e9cc0ce3abfe3be4b25724fa133"
|
|
41
41
|
}
|