@kmkf-fe-packages/basic-components 0.6.3-alpha.38 → 0.6.3-alpha.39
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/apaas/ApaasAddress/index.d.ts +2 -1
- package/dist/apaas/ApaasCascader/index.d.ts +2 -1
- package/dist/apaas/ApaasCheckbox/index.d.ts +2 -1
- package/dist/apaas/ApaasDate/index.d.ts +2 -1
- package/dist/apaas/ApaasInput/index.d.ts +2 -1
- package/dist/apaas/ApaasInputNumber/index.d.ts +2 -1
- package/dist/apaas/ApaasMultipleSelect/index.d.ts +2 -1
- package/dist/apaas/ApaasSelect/index.d.ts +2 -1
- package/dist/apaas/ApaasTextArea/index.d.ts +2 -1
- package/dist/apaas/ApaasUpload/index.d.ts +2 -1
- package/dist/apaas/ApaasUploadAsync/index.d.ts +2 -1
- package/dist/apaas/hoc/withFormItem.d.ts +1 -1
- package/dist/basics/FormItem/index.d.ts +2 -1
- package/dist/business/AliPay/index.d.ts +2 -1
- package/dist/business/BuyerNick/index.d.ts +2 -1
- package/dist/business/ChooseBaby/index.d.ts +2 -1
- package/dist/business/ExpressLogistics/index.d.ts +2 -1
- package/dist/business/Invoice/index.d.ts +2 -1
- package/dist/business/LogisticsInterception/index.d.ts +5 -3
- package/dist/business/Payment/index.d.ts +2 -1
- package/dist/business/Remark/index.d.ts +2 -1
- package/dist/business/ShopName/index.d.ts +2 -1
- package/dist/business/Status/index.d.ts +10 -1
- package/dist/business/Supplier/index.d.ts +2 -1
- package/dist/business/TBGoodId/index.d.ts +2 -1
- package/dist/business/TBGoodSerial/index.d.ts +2 -1
- package/dist/business/TradeId/index.d.ts +2 -1
- package/dist/common/ExpressCompany/index.d.ts +2 -1
- package/dist/common/Goods/goodModel.d.ts +2 -1
- package/dist/common/Goods/index.d.ts +2 -1
- package/dist/common/GoodsTable/goodModel.d.ts +2 -1
- package/dist/common/Logistics/index.d.ts +2 -1
- package/dist/index.esm.js +31 -21
- package/dist/index.js +31 -21
- package/dist/jst/Goods/index.d.ts +2 -1
- package/dist/jst/ItemList/index.d.ts +2 -1
- package/package.json +2 -2
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
interface Option {
|
|
2
3
|
value: string | number;
|
|
3
4
|
label: string;
|
|
@@ -9,5 +10,5 @@ interface ProvinceType {
|
|
|
9
10
|
disabled: boolean;
|
|
10
11
|
onChange: (value: any, selectedOptions: any) => void;
|
|
11
12
|
}
|
|
12
|
-
declare const Province: (props: Partial<ProvinceType>) => JSX.Element;
|
|
13
|
+
declare const Province: (props: Partial<ProvinceType>) => React.JSX.Element;
|
|
13
14
|
export default Province;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { CheckboxGroupProps, CheckboxValueType } from 'antd/es/checkbox/Group';
|
|
2
3
|
type OptionsType = {
|
|
3
4
|
label: string;
|
|
@@ -17,5 +18,5 @@ export interface ApaasCheckboxProps extends Omit<CheckboxGroupProps, 'onChange'
|
|
|
17
18
|
value?: CheckboxValue;
|
|
18
19
|
[key: string]: any;
|
|
19
20
|
}
|
|
20
|
-
declare function ApaasCheckbox(props: ApaasCheckboxProps): JSX.Element;
|
|
21
|
+
declare function ApaasCheckbox(props: ApaasCheckboxProps): React.JSX.Element;
|
|
21
22
|
export default ApaasCheckbox;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
declare const DateType: ["DATE", "DATE_TIME", "DATE_RANGE", "DATE_TIME_RANGE"];
|
|
2
3
|
export declare type ButtonType = typeof DateType[number];
|
|
3
4
|
export interface ApaasDate {
|
|
4
5
|
dateType?: ButtonType;
|
|
5
6
|
[propName: string]: any;
|
|
6
7
|
}
|
|
7
|
-
declare const ApaasDate: (props: ApaasDate) => JSX.Element;
|
|
8
|
+
declare const ApaasDate: (props: ApaasDate) => React.JSX.Element;
|
|
8
9
|
export default ApaasDate;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { InputProps } from 'antd';
|
|
2
3
|
export interface ApaasInputProps extends InputProps {
|
|
3
4
|
isNumber?: boolean;
|
|
4
5
|
replaceWarn?: boolean;
|
|
5
6
|
}
|
|
6
|
-
declare function ApaasInput(props: ApaasInputProps): JSX.Element;
|
|
7
|
+
declare function ApaasInput(props: ApaasInputProps): React.JSX.Element;
|
|
7
8
|
export default ApaasInput;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { ApaasSelectProps } from '../ApaasSelect/index';
|
|
2
|
-
declare function ApaasMultipleSelect(props: ApaasSelectProps): JSX.Element;
|
|
3
|
+
declare function ApaasMultipleSelect(props: ApaasSelectProps): React.JSX.Element;
|
|
3
4
|
export default ApaasMultipleSelect;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { SelectProps } from 'antd';
|
|
2
3
|
type OptionsType = {
|
|
3
4
|
label: string;
|
|
@@ -8,5 +9,5 @@ export interface ApaasSelectProps extends SelectProps<string[]> {
|
|
|
8
9
|
options?: OptionsType[];
|
|
9
10
|
[propName: string]: any;
|
|
10
11
|
}
|
|
11
|
-
declare function ApaasSelect(props: ApaasSelectProps): JSX.Element;
|
|
12
|
+
declare function ApaasSelect(props: ApaasSelectProps): React.JSX.Element;
|
|
12
13
|
export default ApaasSelect;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { TextAreaProps } from 'antd/es/input';
|
|
2
3
|
export interface ITextAreaProps {
|
|
3
4
|
minRows?: number;
|
|
4
5
|
maxRows?: number;
|
|
5
6
|
}
|
|
6
|
-
declare function ApaasTextArea(props: TextAreaProps & ITextAreaProps): JSX.Element;
|
|
7
|
+
declare function ApaasTextArea(props: TextAreaProps & ITextAreaProps): React.JSX.Element;
|
|
7
8
|
export default ApaasTextArea;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { UploadProps } from 'antd';
|
|
2
3
|
declare type UploadValue = string[];
|
|
3
4
|
export interface ApaasUploadProps extends Omit<UploadProps, 'onChange' | 'value'> {
|
|
@@ -9,5 +10,5 @@ export interface ApaasUploadProps extends Omit<UploadProps, 'onChange' | 'value'
|
|
|
9
10
|
onChange?: (value: UploadValue) => void;
|
|
10
11
|
value?: UploadValue;
|
|
11
12
|
}
|
|
12
|
-
declare const ApaasUpload: ({ maxCount, maxSize, uploadText, onChange, value, accept, canPreview, disabled, ...resetProps }: ApaasUploadProps) => JSX.Element;
|
|
13
|
+
declare const ApaasUpload: ({ maxCount, maxSize, uploadText, onChange, value, accept, canPreview, disabled, ...resetProps }: ApaasUploadProps) => React.JSX.Element;
|
|
13
14
|
export default ApaasUpload;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { UploadProps } from 'antd';
|
|
2
3
|
declare type UploadValue = string[];
|
|
3
4
|
export interface ApaasUploadProps extends Omit<UploadProps, 'onChange' | 'value'> {
|
|
@@ -12,5 +13,5 @@ export interface ApaasUploadProps extends Omit<UploadProps, 'onChange' | 'value'
|
|
|
12
13
|
hostUrl?: string;
|
|
13
14
|
actionUrl?: string;
|
|
14
15
|
}
|
|
15
|
-
declare const ApaasUploadAsync: ({ maxCount, maxSize, uploadText, onChange, value, accept, canPreview, disabled, uniqueKey, hostUrl, actionUrl, ...resetProps }: ApaasUploadProps) => JSX.Element;
|
|
16
|
+
declare const ApaasUploadAsync: ({ maxCount, maxSize, uploadText, onChange, value, accept, canPreview, disabled, uniqueKey, hostUrl, actionUrl, ...resetProps }: ApaasUploadProps) => React.JSX.Element;
|
|
16
17
|
export default ApaasUploadAsync;
|
|
@@ -9,4 +9,4 @@ export interface WithFormItemProps {
|
|
|
9
9
|
initialValue?: string;
|
|
10
10
|
[prop: string]: any;
|
|
11
11
|
}
|
|
12
|
-
export default function withFormItem(WrappedComponent: React.ComponentType<WithFormItemProps>): (props: WithFormItemProps) => JSX.Element;
|
|
12
|
+
export default function withFormItem(WrappedComponent: React.ComponentType<WithFormItemProps>): (props: WithFormItemProps) => React.JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
interface AliPayValueType {
|
|
2
3
|
name?: string;
|
|
3
4
|
user?: string;
|
|
@@ -9,5 +10,5 @@ interface AliPayProps {
|
|
|
9
10
|
onChange: (value: AliPayValueType) => void;
|
|
10
11
|
onBlur?: (value: string, type: string) => void;
|
|
11
12
|
}
|
|
12
|
-
declare const AliPay: (props: Partial<AliPayProps>) => JSX.Element;
|
|
13
|
+
declare const AliPay: (props: Partial<AliPayProps>) => React.JSX.Element;
|
|
13
14
|
export default AliPay;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
interface BuyerNickValueType {
|
|
2
3
|
buyerNick?: string;
|
|
3
4
|
buyerOpenUid?: string;
|
|
@@ -10,5 +11,5 @@ interface BuyerNickProps {
|
|
|
10
11
|
onChange: (value: BuyerNickValueType) => void;
|
|
11
12
|
onBlur: (value: string, type: string) => void;
|
|
12
13
|
}
|
|
13
|
-
declare const BuyerNick: (props: Partial<BuyerNickProps>) => JSX.Element;
|
|
14
|
+
declare const BuyerNick: (props: Partial<BuyerNickProps>) => React.JSX.Element;
|
|
14
15
|
export default BuyerNick;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { LogisticsType } from '../../common/Logistics/index.d';
|
|
2
|
-
declare const ExpressLogistics: (props: Partial<LogisticsType>) => JSX.Element;
|
|
3
|
+
declare const ExpressLogistics: (props: Partial<LogisticsType>) => React.JSX.Element;
|
|
3
4
|
export default ExpressLogistics;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import './index.less';
|
|
2
3
|
export interface InvoiceValueType {
|
|
3
4
|
ordinaryTaitou: string;
|
|
@@ -10,5 +11,5 @@ export interface InvoiceProps {
|
|
|
10
11
|
disabled?: boolean;
|
|
11
12
|
onChange: (value: InvoiceValueType) => void;
|
|
12
13
|
}
|
|
13
|
-
declare const Invoice: (props: Partial<InvoiceProps>) => JSX.Element;
|
|
14
|
+
declare const Invoice: (props: Partial<InvoiceProps>) => React.JSX.Element;
|
|
14
15
|
export default Invoice;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
interface LogisticsInterceptionValueType {
|
|
2
3
|
interceptCompany: string;
|
|
3
4
|
interceptCode: string;
|
|
@@ -6,8 +7,8 @@ interface LogisticsInterceptionValueType {
|
|
|
6
7
|
interceptDetail: string;
|
|
7
8
|
interceptReceiverName: string;
|
|
8
9
|
interceptReceiverMobile: string;
|
|
9
|
-
|
|
10
|
-
|
|
10
|
+
interceptStatus: string | number;
|
|
11
|
+
interceptOther: string;
|
|
11
12
|
}
|
|
12
13
|
interface LogisticsInterceptionProps {
|
|
13
14
|
value: Partial<LogisticsInterceptionValueType>;
|
|
@@ -16,7 +17,8 @@ interface LogisticsInterceptionProps {
|
|
|
16
17
|
required: boolean;
|
|
17
18
|
disabled: boolean;
|
|
18
19
|
isEditing: boolean;
|
|
20
|
+
logisticsInterceptHandleStatus: string;
|
|
19
21
|
onChange: (value: Partial<LogisticsInterceptionValueType>) => void;
|
|
20
22
|
}
|
|
21
|
-
declare const LogisticsInterception: (props: Partial<LogisticsInterceptionProps>) => JSX.Element;
|
|
23
|
+
declare const LogisticsInterception: (props: Partial<LogisticsInterceptionProps>) => React.JSX.Element;
|
|
22
24
|
export default LogisticsInterception;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
export interface PaymentProps {
|
|
2
3
|
value: any;
|
|
3
4
|
zhiFubaoRequired: boolean;
|
|
@@ -10,5 +11,5 @@ export interface PaymentProps {
|
|
|
10
11
|
onSearch: (value: any) => void;
|
|
11
12
|
onBlur: (value: any, type: string) => void;
|
|
12
13
|
}
|
|
13
|
-
declare const Payment: (props: Partial<PaymentProps>) => JSX.Element;
|
|
14
|
+
declare const Payment: (props: Partial<PaymentProps>) => React.JSX.Element;
|
|
14
15
|
export default Payment;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
interface ValueType {
|
|
2
3
|
remark?: string;
|
|
3
4
|
flag?: number;
|
|
@@ -8,5 +9,5 @@ interface RemarkType {
|
|
|
8
9
|
value: ValueType;
|
|
9
10
|
onChange: (value: ValueType) => void;
|
|
10
11
|
}
|
|
11
|
-
declare const RemarkInput: (props: Partial<RemarkType>) => JSX.Element;
|
|
12
|
+
declare const RemarkInput: (props: Partial<RemarkType>) => React.JSX.Element;
|
|
12
13
|
export default RemarkInput;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
interface ShopNameType {
|
|
2
3
|
value: number;
|
|
3
4
|
onChange: (value: number) => void;
|
|
4
5
|
disabled: boolean;
|
|
5
6
|
style: any;
|
|
6
7
|
}
|
|
7
|
-
declare const ShopNameSelect: (props: Partial<ShopNameType>) => JSX.Element;
|
|
8
|
+
declare const ShopNameSelect: (props: Partial<ShopNameType>) => React.JSX.Element;
|
|
8
9
|
export default ShopNameSelect;
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* props
|
|
3
|
+
* isUseCustomStatus true/false 是否自定义文案
|
|
4
|
+
* customStatusText 自定义文案内容
|
|
5
|
+
* isSelectStyle true/false 是否为下拉框
|
|
6
|
+
* require true/false 是否必填
|
|
7
|
+
* originCustomer和isEditing 当状态组件处于编辑状态下,工单状态从未处理切换到已处理时候,我们需要将客服重置为初始值
|
|
8
|
+
*/
|
|
9
|
+
import React from 'react';
|
|
1
10
|
export interface StatusProps {
|
|
2
11
|
shopId: string;
|
|
3
12
|
customStatusText: string;
|
|
@@ -12,5 +21,5 @@ export interface StatusProps {
|
|
|
12
21
|
required: boolean;
|
|
13
22
|
onChange: (value: any) => void;
|
|
14
23
|
}
|
|
15
|
-
declare const Status: (props: StatusProps) => JSX.Element;
|
|
24
|
+
declare const Status: (props: StatusProps) => React.JSX.Element;
|
|
16
25
|
export default Status;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { InputProps } from 'antd';
|
|
2
3
|
interface TradeIdProps extends InputProps {
|
|
3
4
|
value: string;
|
|
@@ -6,5 +7,5 @@ interface TradeIdProps extends InputProps {
|
|
|
6
7
|
disabled?: boolean;
|
|
7
8
|
onSearch: (value: any) => void;
|
|
8
9
|
}
|
|
9
|
-
declare function TradeId(props: Partial<TradeIdProps>): JSX.Element;
|
|
10
|
+
declare function TradeId(props: Partial<TradeIdProps>): React.JSX.Element;
|
|
10
11
|
export default TradeId;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
type ExpressCompanyProps = {
|
|
2
3
|
options: any[];
|
|
3
4
|
value: string;
|
|
4
5
|
onChange: (v: string) => void;
|
|
5
6
|
};
|
|
6
|
-
declare const ExpressCompany: (props: ExpressCompanyProps) => JSX.Element;
|
|
7
|
+
declare const ExpressCompany: (props: ExpressCompanyProps) => React.JSX.Element;
|
|
7
8
|
export default ExpressCompany;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import './index.less';
|
|
2
3
|
interface GoodModelProps {
|
|
3
4
|
visible: boolean;
|
|
@@ -11,5 +12,5 @@ interface GoodModelProps {
|
|
|
11
12
|
onSubmit: (...args: any[]) => any;
|
|
12
13
|
onCancel: (...args: any[]) => any;
|
|
13
14
|
}
|
|
14
|
-
declare const GoodsModal: (props: GoodModelProps) => JSX.Element;
|
|
15
|
+
declare const GoodsModal: (props: GoodModelProps) => React.JSX.Element;
|
|
15
16
|
export default GoodsModal;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import './index.less';
|
|
2
3
|
export interface GoodsProps {
|
|
3
4
|
value?: GoodsValues;
|
|
@@ -33,5 +34,5 @@ export interface IEditState {
|
|
|
33
34
|
itemId?: string | null;
|
|
34
35
|
supplierName: string | null;
|
|
35
36
|
}
|
|
36
|
-
declare const Goods: (props: Partial<GoodsProps>) => JSX.Element;
|
|
37
|
+
declare const Goods: (props: Partial<GoodsProps>) => React.JSX.Element;
|
|
37
38
|
export default Goods;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import './index.less';
|
|
2
3
|
interface GoodModelProps {
|
|
3
4
|
visible: boolean;
|
|
@@ -9,5 +10,5 @@ interface GoodModelProps {
|
|
|
9
10
|
onSubmit: (...args: any[]) => any;
|
|
10
11
|
onCancel: (...args: any[]) => any;
|
|
11
12
|
}
|
|
12
|
-
declare const GoodsModal: (props: GoodModelProps) => JSX.Element;
|
|
13
|
+
declare const GoodsModal: (props: GoodModelProps) => React.JSX.Element;
|
|
13
14
|
export default GoodsModal;
|
package/dist/index.esm.js
CHANGED
|
@@ -3119,7 +3119,8 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
3119
3119
|
_props$disabled = props.disabled,
|
|
3120
3120
|
disabled = _props$disabled === void 0 ? false : _props$disabled,
|
|
3121
3121
|
_props$isEditing = props.isEditing,
|
|
3122
|
-
isEditing = _props$isEditing === void 0 ? false : _props$isEditing
|
|
3122
|
+
isEditing = _props$isEditing === void 0 ? false : _props$isEditing,
|
|
3123
|
+
logisticsInterceptHandleStatus = props.logisticsInterceptHandleStatus;
|
|
3123
3124
|
var _useState = useState(''),
|
|
3124
3125
|
_useState2 = _slicedToArray(_useState, 2),
|
|
3125
3126
|
initCompany = _useState2[0],
|
|
@@ -3153,7 +3154,7 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
3153
3154
|
return item.value === (value === null || value === void 0 ? void 0 : value.interceptCompany);
|
|
3154
3155
|
});
|
|
3155
3156
|
setTypeOptions((interceptCompany === null || interceptCompany === void 0 ? void 0 : interceptCompany.interceptionTypeList) || []);
|
|
3156
|
-
setStatusOptions((interceptCompany === null || interceptCompany === void 0 ? void 0 : interceptCompany.
|
|
3157
|
+
setStatusOptions((interceptCompany === null || interceptCompany === void 0 ? void 0 : interceptCompany.interceptionStatusList) || []);
|
|
3157
3158
|
setIsInterface(interceptCompany === null || interceptCompany === void 0 ? void 0 : interceptCompany.isInterface);
|
|
3158
3159
|
}, [value === null || value === void 0 ? void 0 : value.interceptCompany]);
|
|
3159
3160
|
//拦截类型切换 需要清空新派送地
|
|
@@ -3182,8 +3183,18 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
3182
3183
|
return item.value === (value === null || value === void 0 ? void 0 : value.interceptType);
|
|
3183
3184
|
})) === null || _find === void 0 ? void 0 : (_find$config = _find.config) === null || _find$config === void 0 ? void 0 : _find$config.showAddress;
|
|
3184
3185
|
}, [value === null || value === void 0 ? void 0 : value.interceptType, typeOptions, value === null || value === void 0 ? void 0 : value.interceptCompany]);
|
|
3185
|
-
|
|
3186
|
+
//判断是否能修改信息
|
|
3186
3187
|
var canEdit = useMemo(function () {
|
|
3188
|
+
// 已对接公司如果拦截状态为【拦截中】,可以修改物流拦截组件信息,否则该组件不能修改;
|
|
3189
|
+
// 非对接公司可以修改组件
|
|
3190
|
+
// 修改后把工单信息重新提交给快递公司,清空拦截状态的值
|
|
3191
|
+
if (!isInterface) return true;
|
|
3192
|
+
//已对接公司在拦截中可以修改
|
|
3193
|
+
var INTERCEPTING = !logisticsInterceptHandleStatus || logisticsInterceptHandleStatus === 'INTERCEPTING';
|
|
3194
|
+
return isEditing ? INTERCEPTING : true;
|
|
3195
|
+
}, [value === null || value === void 0 ? void 0 : value.interceptCompany, statusOptions, isInterface, isEditing]);
|
|
3196
|
+
//判断是否能修改物流信息
|
|
3197
|
+
var canEditCompany = useMemo(function () {
|
|
3187
3198
|
var company = expressInterceptData.find(function (item) {
|
|
3188
3199
|
return item.value === initCompany;
|
|
3189
3200
|
});
|
|
@@ -3196,8 +3207,7 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
3196
3207
|
return item.value === val;
|
|
3197
3208
|
});
|
|
3198
3209
|
var returnValue = ((interceptCompany === null || interceptCompany === void 0 ? void 0 : interceptCompany.interceptionTypeList) || []).find(function (item) {
|
|
3199
|
-
|
|
3200
|
-
return item === null || item === void 0 ? void 0 : (_item$config2 = item.config) === null || _item$config2 === void 0 ? void 0 : _item$config2.isDefault;
|
|
3210
|
+
return item === null || item === void 0 ? void 0 : item.isDefault;
|
|
3201
3211
|
});
|
|
3202
3212
|
newValue = _objectSpread2(_objectSpread2({}, value), {}, {
|
|
3203
3213
|
interceptCompany: val,
|
|
@@ -3206,8 +3216,8 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
3206
3216
|
interceptDetail: undefined,
|
|
3207
3217
|
interceptReceiverName: undefined,
|
|
3208
3218
|
interceptReceiverMobile: undefined,
|
|
3209
|
-
|
|
3210
|
-
|
|
3219
|
+
interceptStatus: undefined,
|
|
3220
|
+
interceptOther: undefined
|
|
3211
3221
|
});
|
|
3212
3222
|
}
|
|
3213
3223
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
@@ -3217,7 +3227,7 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
3217
3227
|
required: required,
|
|
3218
3228
|
key: 'logistics'
|
|
3219
3229
|
}, /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Select, {
|
|
3220
|
-
disabled: disabled ||
|
|
3230
|
+
disabled: disabled || canEditCompany,
|
|
3221
3231
|
placeholder: "\u7269\u6D41\u516C\u53F8",
|
|
3222
3232
|
style: {
|
|
3223
3233
|
width: '150px'
|
|
@@ -3232,7 +3242,7 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
3232
3242
|
return option.label.includes(input);
|
|
3233
3243
|
}
|
|
3234
3244
|
}), /*#__PURE__*/React.createElement(Input, {
|
|
3235
|
-
disabled: disabled ||
|
|
3245
|
+
disabled: disabled || canEditCompany,
|
|
3236
3246
|
placeholder: "\u7269\u6D41\u5355\u53F7",
|
|
3237
3247
|
onChange: function onChange(e) {
|
|
3238
3248
|
return changeHandle(e.target.value, 'interceptCode');
|
|
@@ -3243,7 +3253,7 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
3243
3253
|
required: required,
|
|
3244
3254
|
key: 'interceptType'
|
|
3245
3255
|
}, /*#__PURE__*/React.createElement(Select, {
|
|
3246
|
-
disabled: disabled || canEdit,
|
|
3256
|
+
disabled: disabled || !canEdit,
|
|
3247
3257
|
style: {
|
|
3248
3258
|
width: '200px'
|
|
3249
3259
|
},
|
|
@@ -3268,31 +3278,31 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
3268
3278
|
return changeHandle(val, 'interceptAddress');
|
|
3269
3279
|
},
|
|
3270
3280
|
options: [],
|
|
3271
|
-
disabled: disabled || canEdit
|
|
3281
|
+
disabled: disabled || !canEdit
|
|
3272
3282
|
}), /*#__PURE__*/React.createElement(Input, {
|
|
3273
3283
|
value: value === null || value === void 0 ? void 0 : value.interceptDetail,
|
|
3274
|
-
disabled: disabled || canEdit,
|
|
3284
|
+
disabled: disabled || !canEdit,
|
|
3275
3285
|
placeholder: "\u8BE6\u7EC6\u5730\u5740",
|
|
3276
3286
|
onChange: function onChange(e) {
|
|
3277
3287
|
return changeHandle(e.target.value, 'interceptDetail');
|
|
3278
3288
|
}
|
|
3279
3289
|
})), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Input, {
|
|
3280
3290
|
value: value === null || value === void 0 ? void 0 : value.interceptReceiverName,
|
|
3281
|
-
disabled: disabled || canEdit,
|
|
3291
|
+
disabled: disabled || !canEdit,
|
|
3282
3292
|
placeholder: "\u6536\u4EF6\u4EBA\u59D3\u540D",
|
|
3283
3293
|
onChange: function onChange(e) {
|
|
3284
3294
|
return changeHandle(e.target.value, 'interceptReceiverName');
|
|
3285
3295
|
}
|
|
3286
3296
|
}), /*#__PURE__*/React.createElement(Input, {
|
|
3287
3297
|
value: value === null || value === void 0 ? void 0 : value.interceptReceiverMobile,
|
|
3288
|
-
disabled: disabled || canEdit,
|
|
3298
|
+
disabled: disabled || !canEdit,
|
|
3289
3299
|
placeholder: "\u6536\u4EF6\u4EBA\u7535\u8BDD",
|
|
3290
3300
|
onChange: function onChange(e) {
|
|
3291
3301
|
return changeHandle(e.target.value, 'interceptReceiverMobile');
|
|
3292
3302
|
}
|
|
3293
3303
|
}))), /*#__PURE__*/React.createElement(Item, {
|
|
3294
|
-
label: '
|
|
3295
|
-
key: '
|
|
3304
|
+
label: '拦截状态',
|
|
3305
|
+
key: 'interceptStatus'
|
|
3296
3306
|
}, /*#__PURE__*/React.createElement(Select, {
|
|
3297
3307
|
disabled: disabled || isInterface,
|
|
3298
3308
|
style: {
|
|
@@ -3300,22 +3310,22 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
3300
3310
|
},
|
|
3301
3311
|
options: statusOptions,
|
|
3302
3312
|
onChange: function onChange(val) {
|
|
3303
|
-
return changeHandle(val, '
|
|
3313
|
+
return changeHandle(val, 'interceptStatus');
|
|
3304
3314
|
},
|
|
3305
|
-
value: value === null || value === void 0 ? void 0 : value.
|
|
3306
|
-
placeholder: "\
|
|
3315
|
+
value: value === null || value === void 0 ? void 0 : value.interceptStatus,
|
|
3316
|
+
placeholder: "\u62E6\u622A\u72B6\u6001",
|
|
3307
3317
|
showSearch: true,
|
|
3308
3318
|
filterOption: function filterOption(input, option) {
|
|
3309
3319
|
return option.label.includes(input);
|
|
3310
3320
|
}
|
|
3311
|
-
}), (value === null || value === void 0 ? void 0 : value.
|
|
3321
|
+
}), (value === null || value === void 0 ? void 0 : value.interceptStatus) === 'OTHER' && /*#__PURE__*/React.createElement(Input, {
|
|
3312
3322
|
disabled: disabled || !canEdit,
|
|
3313
3323
|
style: {
|
|
3314
3324
|
width: '200px'
|
|
3315
3325
|
},
|
|
3316
3326
|
placeholder: "\u5176\u4ED6",
|
|
3317
3327
|
onChange: function onChange(e) {
|
|
3318
|
-
return changeHandle(e.target.value, '
|
|
3328
|
+
return changeHandle(e.target.value, 'interceptOther');
|
|
3319
3329
|
}
|
|
3320
3330
|
})));
|
|
3321
3331
|
};
|
package/dist/index.js
CHANGED
|
@@ -3129,7 +3129,8 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
3129
3129
|
_props$disabled = props.disabled,
|
|
3130
3130
|
disabled = _props$disabled === void 0 ? false : _props$disabled,
|
|
3131
3131
|
_props$isEditing = props.isEditing,
|
|
3132
|
-
isEditing = _props$isEditing === void 0 ? false : _props$isEditing
|
|
3132
|
+
isEditing = _props$isEditing === void 0 ? false : _props$isEditing,
|
|
3133
|
+
logisticsInterceptHandleStatus = props.logisticsInterceptHandleStatus;
|
|
3133
3134
|
var _useState = React.useState(''),
|
|
3134
3135
|
_useState2 = _slicedToArray(_useState, 2),
|
|
3135
3136
|
initCompany = _useState2[0],
|
|
@@ -3163,7 +3164,7 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
3163
3164
|
return item.value === (value === null || value === void 0 ? void 0 : value.interceptCompany);
|
|
3164
3165
|
});
|
|
3165
3166
|
setTypeOptions((interceptCompany === null || interceptCompany === void 0 ? void 0 : interceptCompany.interceptionTypeList) || []);
|
|
3166
|
-
setStatusOptions((interceptCompany === null || interceptCompany === void 0 ? void 0 : interceptCompany.
|
|
3167
|
+
setStatusOptions((interceptCompany === null || interceptCompany === void 0 ? void 0 : interceptCompany.interceptionStatusList) || []);
|
|
3167
3168
|
setIsInterface(interceptCompany === null || interceptCompany === void 0 ? void 0 : interceptCompany.isInterface);
|
|
3168
3169
|
}, [value === null || value === void 0 ? void 0 : value.interceptCompany]);
|
|
3169
3170
|
//拦截类型切换 需要清空新派送地
|
|
@@ -3192,8 +3193,18 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
3192
3193
|
return item.value === (value === null || value === void 0 ? void 0 : value.interceptType);
|
|
3193
3194
|
})) === null || _find === void 0 ? void 0 : (_find$config = _find.config) === null || _find$config === void 0 ? void 0 : _find$config.showAddress;
|
|
3194
3195
|
}, [value === null || value === void 0 ? void 0 : value.interceptType, typeOptions, value === null || value === void 0 ? void 0 : value.interceptCompany]);
|
|
3195
|
-
|
|
3196
|
+
//判断是否能修改信息
|
|
3196
3197
|
var canEdit = React.useMemo(function () {
|
|
3198
|
+
// 已对接公司如果拦截状态为【拦截中】,可以修改物流拦截组件信息,否则该组件不能修改;
|
|
3199
|
+
// 非对接公司可以修改组件
|
|
3200
|
+
// 修改后把工单信息重新提交给快递公司,清空拦截状态的值
|
|
3201
|
+
if (!isInterface) return true;
|
|
3202
|
+
//已对接公司在拦截中可以修改
|
|
3203
|
+
var INTERCEPTING = !logisticsInterceptHandleStatus || logisticsInterceptHandleStatus === 'INTERCEPTING';
|
|
3204
|
+
return isEditing ? INTERCEPTING : true;
|
|
3205
|
+
}, [value === null || value === void 0 ? void 0 : value.interceptCompany, statusOptions, isInterface, isEditing]);
|
|
3206
|
+
//判断是否能修改物流信息
|
|
3207
|
+
var canEditCompany = React.useMemo(function () {
|
|
3197
3208
|
var company = expressInterceptData.find(function (item) {
|
|
3198
3209
|
return item.value === initCompany;
|
|
3199
3210
|
});
|
|
@@ -3206,8 +3217,7 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
3206
3217
|
return item.value === val;
|
|
3207
3218
|
});
|
|
3208
3219
|
var returnValue = ((interceptCompany === null || interceptCompany === void 0 ? void 0 : interceptCompany.interceptionTypeList) || []).find(function (item) {
|
|
3209
|
-
|
|
3210
|
-
return item === null || item === void 0 ? void 0 : (_item$config2 = item.config) === null || _item$config2 === void 0 ? void 0 : _item$config2.isDefault;
|
|
3220
|
+
return item === null || item === void 0 ? void 0 : item.isDefault;
|
|
3211
3221
|
});
|
|
3212
3222
|
newValue = _objectSpread2(_objectSpread2({}, value), {}, {
|
|
3213
3223
|
interceptCompany: val,
|
|
@@ -3216,8 +3226,8 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
3216
3226
|
interceptDetail: undefined,
|
|
3217
3227
|
interceptReceiverName: undefined,
|
|
3218
3228
|
interceptReceiverMobile: undefined,
|
|
3219
|
-
|
|
3220
|
-
|
|
3229
|
+
interceptStatus: undefined,
|
|
3230
|
+
interceptOther: undefined
|
|
3221
3231
|
});
|
|
3222
3232
|
}
|
|
3223
3233
|
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
@@ -3227,7 +3237,7 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
3227
3237
|
required: required,
|
|
3228
3238
|
key: 'logistics'
|
|
3229
3239
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Space, null, /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
3230
|
-
disabled: disabled ||
|
|
3240
|
+
disabled: disabled || canEditCompany,
|
|
3231
3241
|
placeholder: "\u7269\u6D41\u516C\u53F8",
|
|
3232
3242
|
style: {
|
|
3233
3243
|
width: '150px'
|
|
@@ -3242,7 +3252,7 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
3242
3252
|
return option.label.includes(input);
|
|
3243
3253
|
}
|
|
3244
3254
|
}), /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
3245
|
-
disabled: disabled ||
|
|
3255
|
+
disabled: disabled || canEditCompany,
|
|
3246
3256
|
placeholder: "\u7269\u6D41\u5355\u53F7",
|
|
3247
3257
|
onChange: function onChange(e) {
|
|
3248
3258
|
return changeHandle(e.target.value, 'interceptCode');
|
|
@@ -3253,7 +3263,7 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
3253
3263
|
required: required,
|
|
3254
3264
|
key: 'interceptType'
|
|
3255
3265
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
3256
|
-
disabled: disabled || canEdit,
|
|
3266
|
+
disabled: disabled || !canEdit,
|
|
3257
3267
|
style: {
|
|
3258
3268
|
width: '200px'
|
|
3259
3269
|
},
|
|
@@ -3278,31 +3288,31 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
3278
3288
|
return changeHandle(val, 'interceptAddress');
|
|
3279
3289
|
},
|
|
3280
3290
|
options: [],
|
|
3281
|
-
disabled: disabled || canEdit
|
|
3291
|
+
disabled: disabled || !canEdit
|
|
3282
3292
|
}), /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
3283
3293
|
value: value === null || value === void 0 ? void 0 : value.interceptDetail,
|
|
3284
|
-
disabled: disabled || canEdit,
|
|
3294
|
+
disabled: disabled || !canEdit,
|
|
3285
3295
|
placeholder: "\u8BE6\u7EC6\u5730\u5740",
|
|
3286
3296
|
onChange: function onChange(e) {
|
|
3287
3297
|
return changeHandle(e.target.value, 'interceptDetail');
|
|
3288
3298
|
}
|
|
3289
3299
|
})), /*#__PURE__*/React__default['default'].createElement("br", null), /*#__PURE__*/React__default['default'].createElement(antd.Space, null, /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
3290
3300
|
value: value === null || value === void 0 ? void 0 : value.interceptReceiverName,
|
|
3291
|
-
disabled: disabled || canEdit,
|
|
3301
|
+
disabled: disabled || !canEdit,
|
|
3292
3302
|
placeholder: "\u6536\u4EF6\u4EBA\u59D3\u540D",
|
|
3293
3303
|
onChange: function onChange(e) {
|
|
3294
3304
|
return changeHandle(e.target.value, 'interceptReceiverName');
|
|
3295
3305
|
}
|
|
3296
3306
|
}), /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
3297
3307
|
value: value === null || value === void 0 ? void 0 : value.interceptReceiverMobile,
|
|
3298
|
-
disabled: disabled || canEdit,
|
|
3308
|
+
disabled: disabled || !canEdit,
|
|
3299
3309
|
placeholder: "\u6536\u4EF6\u4EBA\u7535\u8BDD",
|
|
3300
3310
|
onChange: function onChange(e) {
|
|
3301
3311
|
return changeHandle(e.target.value, 'interceptReceiverMobile');
|
|
3302
3312
|
}
|
|
3303
3313
|
}))), /*#__PURE__*/React__default['default'].createElement(Item, {
|
|
3304
|
-
label: '
|
|
3305
|
-
key: '
|
|
3314
|
+
label: '拦截状态',
|
|
3315
|
+
key: 'interceptStatus'
|
|
3306
3316
|
}, /*#__PURE__*/React__default['default'].createElement(antd.Select, {
|
|
3307
3317
|
disabled: disabled || isInterface,
|
|
3308
3318
|
style: {
|
|
@@ -3310,22 +3320,22 @@ var LogisticsInterception = function LogisticsInterception(props) {
|
|
|
3310
3320
|
},
|
|
3311
3321
|
options: statusOptions,
|
|
3312
3322
|
onChange: function onChange(val) {
|
|
3313
|
-
return changeHandle(val, '
|
|
3323
|
+
return changeHandle(val, 'interceptStatus');
|
|
3314
3324
|
},
|
|
3315
|
-
value: value === null || value === void 0 ? void 0 : value.
|
|
3316
|
-
placeholder: "\
|
|
3325
|
+
value: value === null || value === void 0 ? void 0 : value.interceptStatus,
|
|
3326
|
+
placeholder: "\u62E6\u622A\u72B6\u6001",
|
|
3317
3327
|
showSearch: true,
|
|
3318
3328
|
filterOption: function filterOption(input, option) {
|
|
3319
3329
|
return option.label.includes(input);
|
|
3320
3330
|
}
|
|
3321
|
-
}), (value === null || value === void 0 ? void 0 : value.
|
|
3331
|
+
}), (value === null || value === void 0 ? void 0 : value.interceptStatus) === 'OTHER' && /*#__PURE__*/React__default['default'].createElement(antd.Input, {
|
|
3322
3332
|
disabled: disabled || !canEdit,
|
|
3323
3333
|
style: {
|
|
3324
3334
|
width: '200px'
|
|
3325
3335
|
},
|
|
3326
3336
|
placeholder: "\u5176\u4ED6",
|
|
3327
3337
|
onChange: function onChange(e) {
|
|
3328
|
-
return changeHandle(e.target.value, '
|
|
3338
|
+
return changeHandle(e.target.value, 'interceptOther');
|
|
3329
3339
|
}
|
|
3330
3340
|
})));
|
|
3331
3341
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
interface JstGoodsProps {
|
|
2
3
|
value: any[];
|
|
3
4
|
type: number;
|
|
@@ -6,5 +7,5 @@ interface JstGoodsProps {
|
|
|
6
7
|
onChange: (val: any[]) => void;
|
|
7
8
|
showField: string;
|
|
8
9
|
}
|
|
9
|
-
declare const jstGoods: (props: Partial<JstGoodsProps>) => JSX.Element;
|
|
10
|
+
declare const jstGoods: (props: Partial<JstGoodsProps>) => React.JSX.Element;
|
|
10
11
|
export default jstGoods;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import './index.less';
|
|
2
3
|
export interface GoodsProps {
|
|
3
4
|
value: any[];
|
|
@@ -15,5 +16,5 @@ export interface GoodsItem {
|
|
|
15
16
|
price: string;
|
|
16
17
|
[key: string]: any;
|
|
17
18
|
}
|
|
18
|
-
declare const ItemList: (props: Partial<GoodsProps>) => JSX.Element;
|
|
19
|
+
declare const ItemList: (props: Partial<GoodsProps>) => React.JSX.Element;
|
|
19
20
|
export default ItemList;
|
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.39",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"homepage": "",
|
|
6
6
|
"license": "ISC",
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
"publishConfig": {
|
|
42
42
|
"access": "public"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "11e3dc7ff8cb374b91d27d81bccaaf27d168adc4"
|
|
45
45
|
}
|