@kmkf-fe-packages/services-components 1.0.7 → 1.0.9-rc.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/README.md +1 -0
- package/dist/esm/components/ActualPayment/index.d.ts +2 -16
- package/dist/esm/components/ActualPayment/index.js +35 -28
- package/dist/esm/components/Address/index.d.ts +0 -14
- package/dist/esm/components/Address/index.js +2 -15
- package/dist/esm/components/Alipay/index.d.ts +5 -30
- package/dist/esm/components/Alipay/index.js +6 -31
- package/dist/esm/components/BS/BsExchange/index.d.ts +0 -39
- package/dist/esm/components/BS/BsExchange/index.js +1 -52
- package/dist/esm/components/BS/BsGoods/index.d.ts +0 -30
- package/dist/esm/components/BS/BsGoods/index.js +1 -31
- package/dist/esm/components/BS/BsLogistics/index.d.ts +0 -33
- package/dist/esm/components/BS/BsLogistics/index.js +52 -62
- package/dist/esm/components/BS/BsPosting/index.d.ts +0 -15
- package/dist/esm/components/BS/BsPosting/index.js +1 -16
- package/dist/esm/components/BS/BsReissue/index.d.ts +7 -46
- package/dist/esm/components/BS/BsReissue/index.js +19 -70
- package/dist/esm/components/BS/BsReturn/index.d.ts +0 -39
- package/dist/esm/components/BS/BsReturn/index.js +1 -44
- package/dist/esm/components/BS/BsSystemOrder/index.d.ts +29 -18
- package/dist/esm/components/BS/BsSystemOrder/index.js +138 -37
- package/dist/esm/components/BS/common/BsMemo.js +2 -1
- package/dist/esm/components/BS/common/BsType.js +2 -1
- package/dist/esm/components/BuyerNick/index.d.ts +0 -20
- package/dist/esm/components/BuyerNick/index.js +2 -21
- package/dist/esm/components/Calculation/index.d.ts +0 -18
- package/dist/esm/components/Calculation/index.js +3 -21
- package/dist/esm/components/Cascader/index.d.ts +5 -20
- package/dist/esm/components/Cascader/index.js +21 -35
- package/dist/esm/components/Checkbox/index.d.ts +4 -26
- package/dist/esm/components/Checkbox/index.js +19 -62
- package/dist/esm/components/Common/index.d.ts +1 -1
- package/dist/esm/components/Common/index.js +185 -4
- package/dist/esm/components/CommonDataTime/index.d.ts +0 -1
- package/dist/esm/components/CommonDataTime/index.js +0 -1
- package/dist/esm/components/CommonHeaderGood/index.js +182 -0
- package/dist/esm/components/CommonInput/index.d.ts +0 -5
- package/dist/esm/components/CommonInput/index.js +18 -32
- package/dist/esm/components/CommonMultiStatus/index.d.ts +20 -19
- package/dist/esm/components/CommonMultiStatus/index.js +118 -102
- package/dist/esm/components/CommonSystemOrder/index.d.ts +4 -11
- package/dist/esm/components/CommonSystemOrder/index.js +71 -39
- package/dist/esm/components/CompletedUser/index.d.ts +4 -6
- package/dist/esm/components/CompletedUser/index.js +7 -9
- package/dist/esm/components/DataTime/index.d.ts +4 -20
- package/dist/esm/components/DataTime/index.js +16 -32
- package/dist/esm/components/EItemEnCode/index.d.ts +0 -36
- package/dist/esm/components/EItemEnCode/index.js +2 -38
- package/dist/esm/components/EItemId/index.d.ts +0 -21
- package/dist/esm/components/EItemId/index.js +1 -22
- package/dist/esm/components/EItemSelect/index.d.ts +1 -22
- package/dist/esm/components/EItemSelect/index.js +2 -23
- package/dist/esm/components/File/index.d.ts +0 -15
- package/dist/esm/components/File/index.js +1 -16
- package/dist/esm/components/FlowCreator/index.d.ts +0 -2
- package/dist/esm/components/FlowCreator/index.js +0 -2
- package/dist/esm/components/FlowMarkSelect/index.d.ts +0 -2
- package/dist/esm/components/FlowMarkSelect/index.js +0 -2
- package/dist/esm/components/FlowStatusSelect/index.d.ts +0 -2
- package/dist/esm/components/FlowStatusSelect/index.js +2 -3
- package/dist/esm/components/FlowTag/index.d.ts +0 -2
- package/dist/esm/components/FlowTag/index.js +0 -2
- package/dist/esm/components/FlowWorkOrderId/index.d.ts +0 -2
- package/dist/esm/components/FlowWorkOrderId/index.js +1 -3
- package/dist/esm/components/FlowWorkOrderStatus/index.d.ts +4 -6
- package/dist/esm/components/FlowWorkOrderStatus/index.js +29 -31
- package/dist/esm/components/Grade/index.d.ts +3 -25
- package/dist/esm/components/Grade/index.js +7 -29
- package/dist/esm/components/Handler/index.d.ts +4 -6
- package/dist/esm/components/Handler/index.js +7 -9
- package/dist/esm/components/HandlerDeadLine/index.d.ts +0 -2
- package/dist/esm/components/HandlerDeadLine/index.js +1 -3
- package/dist/esm/components/Input/index.d.ts +0 -53
- package/dist/esm/components/Input/index.js +1 -55
- package/dist/esm/components/JST/JstItemSelect/index.d.ts +0 -26
- package/dist/esm/components/JST/JstItemSelect/index.js +1 -27
- package/dist/esm/components/JST/JstLogistics/index.d.ts +30 -5
- package/dist/esm/components/JST/JstLogistics/index.js +53 -49
- package/dist/esm/components/JST/JstSendGood/index.d.ts +46 -29
- package/dist/esm/components/JST/JstSendGood/index.js +230 -52
- package/dist/esm/components/JST/JstSupply/index.d.ts +0 -27
- package/dist/esm/components/JST/JstSupply/index.js +1 -34
- package/dist/esm/components/Label/index.d.ts +0 -25
- package/dist/esm/components/Label/index.js +0 -26
- package/dist/esm/components/Logistics/index.d.ts +0 -36
- package/dist/esm/components/Logistics/index.js +1 -40
- package/dist/esm/components/LogisticsInterception/index.d.ts +0 -15
- package/dist/esm/components/LogisticsInterception/index.js +1 -16
- package/dist/esm/components/LogisticsMoreInterception/index.d.ts +13 -44
- package/dist/esm/components/LogisticsMoreInterception/index.js +15 -46
- package/dist/esm/components/LogisticsMoreTrajectory/index.d.ts +3 -56
- package/dist/esm/components/LogisticsMoreTrajectory/index.js +9 -62
- package/dist/esm/components/LogisticsTrajectory/index.d.ts +11 -48
- package/dist/esm/components/LogisticsTrajectory/index.js +8 -45
- package/dist/esm/components/MsgStatus/index.d.ts +4 -31
- package/dist/esm/components/MsgStatus/index.js +36 -72
- package/dist/esm/components/MultSelect/index.d.ts +0 -16
- package/dist/esm/components/MultSelect/index.js +1 -17
- package/dist/esm/components/NodeDeadLine/index.d.ts +0 -2
- package/dist/esm/components/NodeDeadLine/index.js +1 -3
- package/dist/esm/components/NodeInput/index.d.ts +4 -6
- package/dist/esm/components/NodeInput/index.js +7 -9
- package/dist/esm/components/NodeStayDuration/index.d.ts +0 -2
- package/dist/esm/components/NodeStayDuration/index.js +1 -3
- package/dist/esm/components/Ordinary/index.d.ts +6 -27
- package/dist/esm/components/Ordinary/index.js +8 -39
- package/dist/esm/components/Payment/index.d.ts +0 -25
- package/dist/esm/components/Payment/index.js +1 -26
- package/dist/esm/components/PaymentVoucherCode/index.d.ts +0 -20
- package/dist/esm/components/PaymentVoucherCode/index.js +2 -22
- package/dist/esm/components/Picture/index.d.ts +3 -18
- package/dist/esm/components/Picture/index.js +16 -31
- package/dist/esm/components/PlatForm/index.d.ts +0 -2
- package/dist/esm/components/PlatForm/index.js +0 -2
- package/dist/esm/components/PostIng/index.d.ts +0 -32
- package/dist/esm/components/PostIng/index.js +1 -39
- package/dist/esm/components/PrevSubmitter/index.d.ts +0 -2
- package/dist/esm/components/PrevSubmitter/index.js +0 -2
- package/dist/esm/components/Radio/index.d.ts +0 -26
- package/dist/esm/components/Radio/index.js +1 -27
- package/dist/esm/components/Rate/index.d.ts +3 -22
- package/dist/esm/components/Rate/index.js +30 -49
- package/dist/esm/components/ReceiverAddress/index.d.ts +0 -15
- package/dist/esm/components/ReceiverAddress/index.js +1 -16
- package/dist/esm/components/ReceiverMobile/index.d.ts +3 -23
- package/dist/esm/components/ReceiverMobile/index.js +9 -29
- package/dist/esm/components/ReceiverName/index.d.ts +3 -18
- package/dist/esm/components/ReceiverName/index.js +8 -23
- package/dist/esm/components/Remark/index.d.ts +0 -49
- package/dist/esm/components/Remark/index.js +1 -59
- package/dist/esm/components/ReturnLogistics/index.d.ts +6 -37
- package/dist/esm/components/ReturnLogistics/index.js +16 -50
- package/dist/esm/components/Select/index.d.ts +1 -4
- package/dist/esm/components/Select/index.js +30 -32
- package/dist/esm/components/ShopInput/index.d.ts +5 -7
- package/dist/esm/components/ShopInput/index.js +8 -10
- package/dist/esm/components/ShopName/index.d.ts +0 -15
- package/dist/esm/components/ShopName/index.js +1 -16
- package/dist/esm/components/StatusSelect/index.d.ts +1 -15
- package/dist/esm/components/StatusSelect/index.js +96 -30
- package/dist/esm/components/Submitter/index.d.ts +4 -6
- package/dist/esm/components/Submitter/index.js +7 -9
- package/dist/esm/components/SystemOrderNo/index.d.ts +3 -18
- package/dist/esm/components/SystemOrderNo/index.js +9 -24
- package/dist/esm/components/TemplateSelect/index.d.ts +0 -2
- package/dist/esm/components/TemplateSelect/index.js +1 -3
- package/dist/esm/components/TextArea/index.d.ts +0 -15
- package/dist/esm/components/TextArea/index.js +1 -16
- package/dist/esm/components/ThirdItemSelect/index.d.ts +3 -29
- package/dist/esm/components/ThirdItemSelect/index.js +11 -37
- package/dist/esm/components/TradeDateTime/index.d.ts +4 -3
- package/dist/esm/components/TradeDateTime/index.js +39 -14
- package/dist/esm/components/TradeId/index.d.ts +5 -25
- package/dist/esm/components/TradeId/index.js +9 -29
- package/dist/esm/components/{OutFlowWorkOrderId → WDT/WdtExchange}/index.d.ts +13 -12
- package/dist/esm/components/WDT/WdtExchange/index.js +183 -0
- package/dist/esm/components/WDT/WdtGoods/index.d.ts +0 -30
- package/dist/esm/components/WDT/WdtGoods/index.js +1 -37
- package/dist/esm/components/WDT/WdtRessuie/index.d.ts +0 -39
- package/dist/esm/components/WDT/WdtRessuie/index.js +1 -44
- package/dist/esm/components/WDT/WdtReturn/index.d.ts +54 -0
- package/dist/esm/components/{SystemOrder → WDT/WdtReturn}/index.js +79 -91
- package/dist/esm/components/WLN/WlnGoods/index.d.ts +0 -30
- package/dist/esm/components/WLN/WlnGoods/index.js +1 -31
- package/dist/esm/components/WorkOrderId/index.d.ts +0 -2
- package/dist/esm/components/WorkOrderId/index.js +1 -3
- package/dist/esm/constant.d.ts +0 -2
- package/dist/esm/constant.js +1 -3
- package/dist/esm/factory.d.ts +2 -2
- package/dist/esm/factory.js +24 -46
- package/dist/esm/index.d.ts +8 -39
- package/dist/esm/index.js +8 -39
- package/dist/esm/type.d.ts +3 -2
- package/package.json +5 -6
- package/dist/esm/components/ActualPayment/BsDeposit.d.ts +0 -23
- package/dist/esm/components/ActualPayment/BsDeposit.js +0 -50
- package/dist/esm/components/ActualPayment/BsNetReceipts.d.ts +0 -23
- package/dist/esm/components/ActualPayment/BsNetReceipts.js +0 -50
- package/dist/esm/components/ActualPayment/BsPackageWeight.d.ts +0 -23
- package/dist/esm/components/ActualPayment/BsPackageWeight.js +0 -50
- package/dist/esm/components/BS/BsDeposit/index.d.ts +0 -60
- package/dist/esm/components/BS/BsDeposit/index.js +0 -165
- package/dist/esm/components/BS/BsSendGood/index.d.ts +0 -36
- package/dist/esm/components/BS/BsSendGood/index.js +0 -68
- package/dist/esm/components/BusinessOrderNo/index.d.ts +0 -26
- package/dist/esm/components/BusinessOrderNo/index.js +0 -53
- package/dist/esm/components/BuyerMessageNotice/index.d.ts +0 -37
- package/dist/esm/components/BuyerMessageNotice/index.js +0 -66
- package/dist/esm/components/CommonDataTime/CompletedDateTime.d.ts +0 -7
- package/dist/esm/components/CommonDataTime/CompletedDateTime.js +0 -29
- package/dist/esm/components/CommonDataTime/CreatedDateTime.d.ts +0 -7
- package/dist/esm/components/CommonDataTime/CreatedDateTime.js +0 -29
- package/dist/esm/components/CommonDataTime/FlowCreatedDateTime.d.ts +0 -7
- package/dist/esm/components/CommonDataTime/FlowCreatedDateTime.js +0 -29
- package/dist/esm/components/CommonDataTime/FlowUpdateDateTime.d.ts +0 -7
- package/dist/esm/components/CommonDataTime/FlowUpdateDateTime.js +0 -29
- package/dist/esm/components/CommonDataTime/UpdateDateTime.d.ts +0 -7
- package/dist/esm/components/CommonDataTime/UpdateDateTime.js +0 -29
- package/dist/esm/components/CommonMultiStatus/ExchangeStatus.d.ts +0 -30
- package/dist/esm/components/CommonMultiStatus/ExchangeStatus.js +0 -69
- package/dist/esm/components/CommonMultiStatus/ReturnGoodsStatus.d.ts +0 -30
- package/dist/esm/components/CommonMultiStatus/ReturnGoodsStatus.js +0 -69
- package/dist/esm/components/CommonMultiStatus/WareHousingStatus.d.ts +0 -34
- package/dist/esm/components/CommonMultiStatus/WareHousingStatus.js +0 -83
- package/dist/esm/components/CommonSystemOrder/DeliveryNoList.d.ts +0 -21
- package/dist/esm/components/CommonSystemOrder/DeliveryNoList.js +0 -48
- package/dist/esm/components/CommonSystemOrder/ExchangeTradeId.d.ts +0 -22
- package/dist/esm/components/CommonSystemOrder/ExchangeTradeId.js +0 -49
- package/dist/esm/components/CommonSystemOrder/ReturnGoodsTradeItemList.d.ts +0 -32
- package/dist/esm/components/CommonSystemOrder/ReturnGoodsTradeItemList.js +0 -60
- package/dist/esm/components/CommonSystemOrder/TradeItemList.d.ts +0 -23
- package/dist/esm/components/CommonSystemOrder/TradeItemList.js +0 -50
- package/dist/esm/components/JST/ReissueLogistics/index.d.ts +0 -76
- package/dist/esm/components/JST/ReissueLogistics/index.js +0 -147
- package/dist/esm/components/NewPaymentStatus/index.d.ts +0 -41
- package/dist/esm/components/NewPaymentStatus/index.js +0 -105
- package/dist/esm/components/OutFlowWorkOrderId/index.js +0 -101
- package/dist/esm/components/SendGood/index.d.ts +0 -54
- package/dist/esm/components/SendGood/index.js +0 -215
- package/dist/esm/components/StatusSelect/AdjustWorkOrderStatus.d.ts +0 -30
- package/dist/esm/components/StatusSelect/AdjustWorkOrderStatus.js +0 -68
- package/dist/esm/components/StatusSelect/CreateStatus.d.ts +0 -7
- package/dist/esm/components/StatusSelect/CreateStatus.js +0 -41
- package/dist/esm/components/StatusSelect/InvoiceStatus.d.ts +0 -30
- package/dist/esm/components/StatusSelect/InvoiceStatus.js +0 -65
- package/dist/esm/components/StatusSelect/InvoicingStatus.d.ts +0 -30
- package/dist/esm/components/StatusSelect/InvoicingStatus.js +0 -65
- package/dist/esm/components/StatusSelect/ReissueStatus.d.ts +0 -30
- package/dist/esm/components/StatusSelect/ReissueStatus.js +0 -65
- package/dist/esm/components/SystemOrder/index.d.ts +0 -39
- package/dist/esm/components/TradeDateTime/BsSendTime.d.ts +0 -23
- package/dist/esm/components/TradeDateTime/BsSendTime.js +0 -46
- package/dist/esm/components/TradeDateTime/BsSigningTime.d.ts +0 -23
- package/dist/esm/components/TradeDateTime/BsSigningTime.js +0 -46
- package/dist/esm/components/TradeDateTime/BsTradePaymentTime.d.ts +0 -23
- package/dist/esm/components/TradeDateTime/BsTradePaymentTime.js +0 -46
- package/dist/esm/components/TradeDateTime/TradeClosingDateTime.d.ts +0 -23
- package/dist/esm/components/TradeDateTime/TradeClosingDateTime.js +0 -46
- package/dist/esm/components/TradeDateTime/TradeCreateDateTime.d.ts +0 -23
- package/dist/esm/components/TradeDateTime/TradeCreateDateTime.js +0 -46
- package/dist/esm/components/TradeDateTime/TradeDeliveryDateTime.d.ts +0 -23
- package/dist/esm/components/TradeDateTime/TradeDeliveryDateTime.js +0 -46
- package/dist/esm/components/TradeDateTime/TradePaymentDateTime.d.ts +0 -23
- package/dist/esm/components/TradeDateTime/TradePaymentDateTime.js +0 -46
- package/dist/esm/components/WDT/WdtLogistics/index.d.ts +0 -93
- package/dist/esm/components/WDT/WdtLogistics/index.js +0 -227
- package/dist/esm/components/WDT/WdtSendGood/index.d.ts +0 -41
- package/dist/esm/components/WDT/WdtSendGood/index.js +0 -73
- package/dist/esm/components/WDT/WdtSystemOrder/index.d.ts +0 -21
- package/dist/esm/components/WDT/WdtSystemOrder/index.js +0 -48
- package/dist/esm/components/WLN/WlnLogistics/index.d.ts +0 -88
- package/dist/esm/components/WLN/WlnLogistics/index.js +0 -222
- package/dist/esm/components/WLN/WlnSendGood/index.d.ts +0 -36
- package/dist/esm/components/WLN/WlnSendGood/index.js +0 -68
- package/dist/esm/components/WLN/WlnSystemOrder/index.d.ts +0 -21
- package/dist/esm/components/WLN/WlnSystemOrder/index.js +0 -48
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { ComponentInterface, PickOption, ColumnConfig, Record } from
|
|
2
|
-
import React from
|
|
3
|
-
import { ExpressData, ExpressInterceptData, LogisticsAddressData, AddressData } from
|
|
4
|
-
import InterceptSenderMobile from
|
|
5
|
-
import InterceptSnapshot from
|
|
6
|
-
import InterceptAddress from
|
|
7
|
-
import InterceptType from
|
|
8
|
-
import InterceptStatus from
|
|
9
|
-
import InterceptCode from
|
|
10
|
-
import Express from
|
|
1
|
+
import { ComponentInterface, PickOption, ColumnConfig, Record } from '../../type';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { ExpressData, ExpressInterceptData, LogisticsAddressData, AddressData } from '@kmkf-fe-packages/kmkf-utils';
|
|
4
|
+
import InterceptSenderMobile from './interceptSenderMobile';
|
|
5
|
+
import InterceptSnapshot from './interceptSnapshot';
|
|
6
|
+
import InterceptAddress from './InterceptAddress';
|
|
7
|
+
import InterceptType from './InterceptType';
|
|
8
|
+
import InterceptStatus from './InterceptStatus';
|
|
9
|
+
import InterceptCode from './interceptCode';
|
|
10
|
+
import Express from './interceptCompany';
|
|
11
11
|
declare class Logistics implements ComponentInterface {
|
|
12
12
|
name: string;
|
|
13
13
|
columnHeader: string | JSX.Element;
|
|
@@ -15,7 +15,7 @@ declare class Logistics implements ComponentInterface {
|
|
|
15
15
|
sortField: string;
|
|
16
16
|
type: string;
|
|
17
17
|
rules: any[];
|
|
18
|
-
componentConfig: ComponentInterface[
|
|
18
|
+
componentConfig: ComponentInterface['componentConfig'];
|
|
19
19
|
interceptAddress: InterceptAddress;
|
|
20
20
|
interceptType: InterceptType;
|
|
21
21
|
interceptLogisticsStatus: InterceptStatus;
|
|
@@ -32,39 +32,8 @@ declare class Logistics implements ComponentInterface {
|
|
|
32
32
|
logisticsAddressData: InstanceType<typeof LogisticsAddressData>;
|
|
33
33
|
addressDateInstance: InstanceType<typeof AddressData>;
|
|
34
34
|
expressInterceptInstance: InstanceType<typeof ExpressInterceptData>;
|
|
35
|
-
effects: ComponentInterface[
|
|
36
|
-
dataType: ComponentInterface[
|
|
37
|
-
static group: string;
|
|
38
|
-
static configSchema: {
|
|
39
|
-
componentConfig: {
|
|
40
|
-
required: boolean;
|
|
41
|
-
isOpen: boolean;
|
|
42
|
-
logisticsMapping: {
|
|
43
|
-
companyUniqueKey: string;
|
|
44
|
-
companyType: string;
|
|
45
|
-
codeUniqueKey: string;
|
|
46
|
-
codeType: string;
|
|
47
|
-
};
|
|
48
|
-
};
|
|
49
|
-
name: string;
|
|
50
|
-
uniqueKey: string;
|
|
51
|
-
schema: {
|
|
52
|
-
required: {
|
|
53
|
-
title: string;
|
|
54
|
-
type: string;
|
|
55
|
-
};
|
|
56
|
-
isOpen: {
|
|
57
|
-
title: string;
|
|
58
|
-
type: string;
|
|
59
|
-
};
|
|
60
|
-
logisticsMapping: {
|
|
61
|
-
hidden: string;
|
|
62
|
-
type: string;
|
|
63
|
-
widget: string;
|
|
64
|
-
};
|
|
65
|
-
};
|
|
66
|
-
};
|
|
67
|
-
static type: string;
|
|
35
|
+
effects: ComponentInterface['effects'];
|
|
36
|
+
dataType: ComponentInterface['dataType'];
|
|
68
37
|
constructor(options: PickOption);
|
|
69
38
|
renderInfo: (list?: any[]) => React.JSX.Element;
|
|
70
39
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
@@ -8,10 +8,10 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
8
8
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
9
9
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
10
10
|
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
11
|
-
import React from
|
|
12
|
-
import { Space } from
|
|
13
|
-
import { LogisticsMoreInterception } from
|
|
14
|
-
import { ExpressData, ExpressInterceptData, LogisticsAddressData, isNull, AddressData } from
|
|
11
|
+
import React from 'react';
|
|
12
|
+
import { Space } from 'antd';
|
|
13
|
+
import { LogisticsMoreInterception } from '@kmkf-fe-packages/basic-components';
|
|
14
|
+
import { ExpressData, ExpressInterceptData, LogisticsAddressData, isNull, AddressData } from '@kmkf-fe-packages/kmkf-utils';
|
|
15
15
|
import ItemView from "../../commonComponents/ItemView";
|
|
16
16
|
import GetFormItem from "../GetFormItem";
|
|
17
17
|
import InterceptSenderMobile from "./interceptSenderMobile";
|
|
@@ -61,10 +61,10 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
61
61
|
var _ref, _this$expressIntercep;
|
|
62
62
|
var addressText = (_ref = item.interceptAddress || []) === null || _ref === void 0 ? void 0 : _ref.map(function (suffix) {
|
|
63
63
|
return _this.addressDateInstance.getNameByCode(suffix);
|
|
64
|
-
}).join(
|
|
65
|
-
return /*#__PURE__*/React.createElement("div", null, list.length > 1 ? "\u5305\u88F9".concat(index + 1, ":") :
|
|
64
|
+
}).join('');
|
|
65
|
+
return /*#__PURE__*/React.createElement("div", null, list.length > 1 ? "\u5305\u88F9".concat(index + 1, ":") : '', item.interceptCompany ? /*#__PURE__*/React.createElement("div", null, "\u7269\u6D41\u516C\u53F8\uFF1A", _this.expressDateInstance.getExpressNameByCode(item.interceptCompany) || item.interceptCompany) : null, item.interceptCode ? /*#__PURE__*/React.createElement("div", null, "\u7269\u6D41\u5355\u53F7\uFF1A", /*#__PURE__*/React.createElement(CopyText, {
|
|
66
66
|
text: item.interceptCode
|
|
67
|
-
})) : null, item.interceptAddress.length || item.interceptDetail || item.interceptReceiverName || item.interceptReceiverMobile ? /*#__PURE__*/React.createElement("div", null, "\u6D3E\u4EF6\u4FE1\u606F\uFF1A", addressText, item.interceptDetail, " ", item.interceptReceiverName,
|
|
67
|
+
})) : null, item.interceptAddress.length || item.interceptDetail || item.interceptReceiverName || item.interceptReceiverMobile ? /*#__PURE__*/React.createElement("div", null, "\u6D3E\u4EF6\u4FE1\u606F\uFF1A", addressText, item.interceptDetail, " ", item.interceptReceiverName, ' ', item.interceptReceiverMobile) : null, item.interceptType ? /*#__PURE__*/React.createElement("div", null, "\u62E6\u622A\u7C7B\u578B\uFF1A", _this.expressInterceptInstance.getTypeNameMap()[item.interceptType]) : null, item.interceptLogisticsStatus ? /*#__PURE__*/React.createElement("div", null, "\u7269\u6D41\u72B6\u6001\uFF1A", (_this$expressIntercep = _this.expressInterceptInstance.getStatusNameMap()) === null || _this$expressIntercep === void 0 ? void 0 : _this$expressIntercep[item.interceptLogisticsStatus], /*#__PURE__*/React.createElement(QueryLogisticsTrack, {
|
|
68
68
|
modelWidth: 500,
|
|
69
69
|
interceptCompany: item.interceptCompany,
|
|
70
70
|
interceptCode: item.interceptCode,
|
|
@@ -107,9 +107,9 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
107
107
|
});
|
|
108
108
|
_defineProperty(this, "filterConfig", function (item) {
|
|
109
109
|
return [_this.express.filterConfig(_objectSpread(_objectSpread({}, item), {}, {
|
|
110
|
-
subKey:
|
|
110
|
+
subKey: 'logisticsInterceptCompanyList'
|
|
111
111
|
})), _this.expressCode.filterConfig(_objectSpread(_objectSpread({}, item), {}, {
|
|
112
|
-
subKey:
|
|
112
|
+
subKey: 'logisticsInterceptCodeList'
|
|
113
113
|
})), _this.interceptSenderMobile.filterConfig(item), _this.interceptLogisticsStatus.filterConfig(item), _this.interceptType.filterConfig(item), _this.interceptSnapshot.filterConfig(item)];
|
|
114
114
|
});
|
|
115
115
|
this.name = options.name;
|
|
@@ -119,7 +119,7 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
119
119
|
this.id = options.id;
|
|
120
120
|
this.sortField = "".concat(options.id, "_logisticsInterceptList");
|
|
121
121
|
this.formField = "".concat(options.id);
|
|
122
|
-
this.type =
|
|
122
|
+
this.type = options.type;
|
|
123
123
|
this.componentConfig = options.componentConfig;
|
|
124
124
|
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
125
125
|
this.expressDateInstance = ExpressData.getInstance();
|
|
@@ -133,15 +133,15 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
133
133
|
this.interceptSnapshot = new InterceptSnapshot(options);
|
|
134
134
|
this.express = new Express(_objectSpread(_objectSpread({}, options), {}, {
|
|
135
135
|
id: "".concat(options.id, "_logisticsInterceptCompanyList"),
|
|
136
|
-
name:
|
|
136
|
+
name: '物流信息'
|
|
137
137
|
}));
|
|
138
138
|
this.expressCode = new InterceptCode(_objectSpread(_objectSpread({}, options), {}, {
|
|
139
139
|
id: "".concat(options.id, "_logisticsInterceptCodeList"),
|
|
140
|
-
name:
|
|
140
|
+
name: '物流单号'
|
|
141
141
|
}));
|
|
142
142
|
this.isCombinationComponent = true;
|
|
143
143
|
this.canSort = false;
|
|
144
|
-
this.dataType =
|
|
144
|
+
this.dataType = 'object';
|
|
145
145
|
this.children = [this.express, this.expressCode, this.interceptType, this.interceptAddress, this.interceptLogisticsStatus, this.interceptSnapshot];
|
|
146
146
|
this.rules = [{
|
|
147
147
|
required: (_this$componentConfig3 = this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.required,
|
|
@@ -149,12 +149,12 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
149
149
|
if (value.some(function (t) {
|
|
150
150
|
return !(t !== null && t !== void 0 && t.interceptCompany) || !(t !== null && t !== void 0 && t.interceptCode);
|
|
151
151
|
})) {
|
|
152
|
-
return Promise.reject(new Error(
|
|
152
|
+
return Promise.reject(new Error('请填写物流信息'));
|
|
153
153
|
}
|
|
154
154
|
if (value.some(function (t) {
|
|
155
155
|
return !(t !== null && t !== void 0 && t.interceptType);
|
|
156
156
|
})) {
|
|
157
|
-
return Promise.reject(new Error(
|
|
157
|
+
return Promise.reject(new Error('请选择拦截类型'));
|
|
158
158
|
}
|
|
159
159
|
var hasNoAddress = value.some(function (t) {
|
|
160
160
|
var _t$interceptAddress;
|
|
@@ -184,35 +184,4 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
184
184
|
}];
|
|
185
185
|
this.addressDateInstance = AddressData.getInstance();
|
|
186
186
|
});
|
|
187
|
-
_defineProperty(Logistics, "group", "SPECIAL_COMPONENT");
|
|
188
|
-
_defineProperty(Logistics, "configSchema", {
|
|
189
|
-
componentConfig: {
|
|
190
|
-
required: true,
|
|
191
|
-
isOpen: false,
|
|
192
|
-
logisticsMapping: {
|
|
193
|
-
companyUniqueKey: "",
|
|
194
|
-
companyType: "",
|
|
195
|
-
codeUniqueKey: "",
|
|
196
|
-
codeType: ""
|
|
197
|
-
}
|
|
198
|
-
},
|
|
199
|
-
name: "物流拦截(多个)",
|
|
200
|
-
uniqueKey: "wmAGbCzacf",
|
|
201
|
-
schema: {
|
|
202
|
-
required: {
|
|
203
|
-
title: "必填",
|
|
204
|
-
type: "boolean"
|
|
205
|
-
},
|
|
206
|
-
isOpen: {
|
|
207
|
-
title: "开启引用值",
|
|
208
|
-
type: "boolean"
|
|
209
|
-
},
|
|
210
|
-
logisticsMapping: {
|
|
211
|
-
hidden: "{{formData.isOpen !== true}}",
|
|
212
|
-
type: "object",
|
|
213
|
-
widget: "LogisticsMapping"
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
});
|
|
217
|
-
_defineProperty(Logistics, "type", "LOGISTICS_INTERCEPTION_MORE");
|
|
218
187
|
export default Logistics;
|
|
@@ -4,9 +4,9 @@ import { ExpressData } from "@kmkf-fe-packages/kmkf-utils";
|
|
|
4
4
|
import TrajectoryCompany from "./trajectoryCompany";
|
|
5
5
|
import TrajectoryCode from "./trajectoryCode";
|
|
6
6
|
import TrajectorySnapshot from "./trajectorySnapshot";
|
|
7
|
-
import TrajectoryStatus from
|
|
8
|
-
import TrajectoryLastLogisticsInfo from
|
|
9
|
-
import TrajectoryLastUpdateTime from
|
|
7
|
+
import TrajectoryStatus from './trajectoryStatus';
|
|
8
|
+
import TrajectoryLastLogisticsInfo from './trajectoryLastLogisticsInfo';
|
|
9
|
+
import TrajectoryLastUpdateTime from './trajectoryLastUpdateTime';
|
|
10
10
|
import { ExpressInterceptData } from "@kmkf-fe-packages/kmkf-utils";
|
|
11
11
|
declare class LogisticsMoreTrajectory implements ComponentInterface {
|
|
12
12
|
name: string;
|
|
@@ -27,60 +27,7 @@ declare class LogisticsMoreTrajectory implements ComponentInterface {
|
|
|
27
27
|
canSort: boolean;
|
|
28
28
|
children: ComponentInterface[];
|
|
29
29
|
dataType: ComponentInterface["dataType"];
|
|
30
|
-
static group: string;
|
|
31
|
-
static configSchema: {
|
|
32
|
-
componentConfig: {
|
|
33
|
-
required: boolean;
|
|
34
|
-
showField: never[];
|
|
35
|
-
isOpen: boolean;
|
|
36
|
-
logisticsMapping: {
|
|
37
|
-
companyUniqueKey: string;
|
|
38
|
-
companyType: string;
|
|
39
|
-
codeUniqueKey: string;
|
|
40
|
-
codeType: string;
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
name: string;
|
|
44
|
-
uniqueKey: string;
|
|
45
|
-
schema: {
|
|
46
|
-
required: {
|
|
47
|
-
title: string;
|
|
48
|
-
type: string;
|
|
49
|
-
};
|
|
50
|
-
showField: {
|
|
51
|
-
type: string;
|
|
52
|
-
items: {
|
|
53
|
-
type: string;
|
|
54
|
-
};
|
|
55
|
-
enum: string[];
|
|
56
|
-
enumNames: string[];
|
|
57
|
-
widget: string;
|
|
58
|
-
};
|
|
59
|
-
isOpen: {
|
|
60
|
-
title: string;
|
|
61
|
-
type: string;
|
|
62
|
-
};
|
|
63
|
-
logisticsMapping: {
|
|
64
|
-
hidden: string;
|
|
65
|
-
type: string;
|
|
66
|
-
widget: string;
|
|
67
|
-
};
|
|
68
|
-
trajectoryStatus: {
|
|
69
|
-
type: string;
|
|
70
|
-
title: string;
|
|
71
|
-
};
|
|
72
|
-
trajectoryLastUpdateTime: {
|
|
73
|
-
type: string;
|
|
74
|
-
title: string;
|
|
75
|
-
};
|
|
76
|
-
trajectoryLastLogisticsInfo: {
|
|
77
|
-
type: string;
|
|
78
|
-
title: string;
|
|
79
|
-
};
|
|
80
|
-
};
|
|
81
|
-
};
|
|
82
30
|
expressInterceptInstance: InstanceType<typeof ExpressInterceptData>;
|
|
83
|
-
static type: string;
|
|
84
31
|
constructor(options: PickOption);
|
|
85
32
|
editRender: (p: any) => React.JSX.Element;
|
|
86
33
|
renderClient: (record: Record) => React.JSX.Element | null;
|
|
@@ -61,14 +61,14 @@ var LogisticsMoreTrajectory = /*#__PURE__*/_createClass(function LogisticsMoreTr
|
|
|
61
61
|
id: _this.id,
|
|
62
62
|
label: _this.name,
|
|
63
63
|
value: record === null || record === void 0 ? void 0 : record[_this.id].map(function (item, index) {
|
|
64
|
-
return /*#__PURE__*/React.createElement("div", null, (record === null || record === void 0 ? void 0 : record[_this.id].length) > 1 ? "\u5305\u88F9".concat(index + 1, ":") : "", _this.expressDateInstance.getExpressNameByCode(item.trajectoryCompany) || item.trajectoryCompany, "/
|
|
64
|
+
return /*#__PURE__*/React.createElement("div", null, (record === null || record === void 0 ? void 0 : record[_this.id].length) > 1 ? "\u5305\u88F9".concat(index + 1, ":") : "", _this.expressDateInstance.getExpressNameByCode(item.trajectoryCompany) || item.trajectoryCompany, "/ ", /*#__PURE__*/React.createElement(CopyText, {
|
|
65
65
|
text: item.trajectoryCode,
|
|
66
66
|
style: {
|
|
67
|
-
display:
|
|
67
|
+
display: 'inline-block'
|
|
68
68
|
}
|
|
69
69
|
}), "/", item.trajectorySnapshot, "/", /*#__PURE__*/React.createElement("span", {
|
|
70
70
|
style: {
|
|
71
|
-
display:
|
|
71
|
+
display: 'inline-block'
|
|
72
72
|
}
|
|
73
73
|
}, _this.renderStatus(item)), "/", item.trajectoryLastUpdateTime, "/", item.trajectoryLastLogisticsInfo);
|
|
74
74
|
})
|
|
@@ -77,16 +77,16 @@ var LogisticsMoreTrajectory = /*#__PURE__*/_createClass(function LogisticsMoreTr
|
|
|
77
77
|
_defineProperty(this, "renderStatus", function (record) {
|
|
78
78
|
var _this$expressIntercep;
|
|
79
79
|
var w = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;
|
|
80
|
-
var value = (_this$expressIntercep = _this.expressInterceptInstance.getStatusNameMap()) === null || _this$expressIntercep === void 0 ? void 0 : _this$expressIntercep["".concat(record === null || record === void 0 ? void 0 : record[
|
|
80
|
+
var value = (_this$expressIntercep = _this.expressInterceptInstance.getStatusNameMap()) === null || _this$expressIntercep === void 0 ? void 0 : _this$expressIntercep["".concat(record === null || record === void 0 ? void 0 : record['trajectoryStatus'])];
|
|
81
81
|
return /*#__PURE__*/React.createElement("div", {
|
|
82
82
|
onClick: function onClick(e) {
|
|
83
83
|
return e.stopPropagation();
|
|
84
84
|
}
|
|
85
85
|
}, value !== null && value !== void 0 ? value : "--", value ? /*#__PURE__*/React.createElement(QueryLogisticsTrack, {
|
|
86
86
|
modelWidth: w,
|
|
87
|
-
interceptCompany: record[
|
|
88
|
-
interceptCode: record[
|
|
89
|
-
interceptSenderMobile: record[
|
|
87
|
+
interceptCompany: record['trajectoryCompany'],
|
|
88
|
+
interceptCode: record['trajectoryCode'],
|
|
89
|
+
interceptSenderMobile: record['trajectoryPhone']
|
|
90
90
|
}) : null);
|
|
91
91
|
});
|
|
92
92
|
_defineProperty(this, "renderPc", function () {
|
|
@@ -96,7 +96,7 @@ var LogisticsMoreTrajectory = /*#__PURE__*/_createClass(function LogisticsMoreTr
|
|
|
96
96
|
return !isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_trajectoryList")]) ? r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_trajectoryList")].map(function (item, index) {
|
|
97
97
|
return /*#__PURE__*/React.createElement("div", null, (r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_trajectoryList")].length) > 1 ? "\u5305\u88F9".concat(index + 1, ":") : "", _this.expressDateInstance.getExpressNameByCode(item.trajectoryCompany) || item.trajectoryCompany, "/", item.trajectoryCode, "/", item.trajectorySnapshot, "/", /*#__PURE__*/React.createElement("span", {
|
|
98
98
|
style: {
|
|
99
|
-
display:
|
|
99
|
+
display: 'inline-block'
|
|
100
100
|
}
|
|
101
101
|
}, _this.renderStatus(item)), "/", item.trajectoryLastUpdateTime, "/", item.trajectoryLastLogisticsInfo);
|
|
102
102
|
}) : null;
|
|
@@ -116,7 +116,7 @@ var LogisticsMoreTrajectory = /*#__PURE__*/_createClass(function LogisticsMoreTr
|
|
|
116
116
|
this.id = options.id;
|
|
117
117
|
this.sortField = "".concat(options.id, "_trajectoryList");
|
|
118
118
|
this.formField = "".concat(options.id, "_trajectoryList");
|
|
119
|
-
this.type =
|
|
119
|
+
this.type = options.type;
|
|
120
120
|
this.componentConfig = options.componentConfig;
|
|
121
121
|
this.expressDateInstance = ExpressData.getInstance();
|
|
122
122
|
this.expressInterceptInstance = ExpressInterceptData.getInstance();
|
|
@@ -170,57 +170,4 @@ var LogisticsMoreTrajectory = /*#__PURE__*/_createClass(function LogisticsMoreTr
|
|
|
170
170
|
}
|
|
171
171
|
}] : [];
|
|
172
172
|
});
|
|
173
|
-
_defineProperty(LogisticsMoreTrajectory, "group", "SPECIAL_COMPONENT");
|
|
174
|
-
_defineProperty(LogisticsMoreTrajectory, "configSchema", {
|
|
175
|
-
componentConfig: {
|
|
176
|
-
required: false,
|
|
177
|
-
showField: [],
|
|
178
|
-
isOpen: false,
|
|
179
|
-
logisticsMapping: {
|
|
180
|
-
companyUniqueKey: "",
|
|
181
|
-
companyType: "",
|
|
182
|
-
codeUniqueKey: "",
|
|
183
|
-
codeType: ""
|
|
184
|
-
}
|
|
185
|
-
},
|
|
186
|
-
name: "物流轨迹多个",
|
|
187
|
-
uniqueKey: "7FuIKzaEuK",
|
|
188
|
-
schema: {
|
|
189
|
-
required: {
|
|
190
|
-
title: "必填",
|
|
191
|
-
type: "boolean"
|
|
192
|
-
},
|
|
193
|
-
showField: {
|
|
194
|
-
type: "array",
|
|
195
|
-
items: {
|
|
196
|
-
type: "string"
|
|
197
|
-
},
|
|
198
|
-
enum: ["snapshot"],
|
|
199
|
-
enumNames: ["物流状态快照"],
|
|
200
|
-
widget: "checkboxes"
|
|
201
|
-
},
|
|
202
|
-
isOpen: {
|
|
203
|
-
title: "开启引用值",
|
|
204
|
-
type: "boolean"
|
|
205
|
-
},
|
|
206
|
-
logisticsMapping: {
|
|
207
|
-
hidden: "{{formData.isOpen !== true}}",
|
|
208
|
-
type: "object",
|
|
209
|
-
widget: "LogisticsMapping"
|
|
210
|
-
},
|
|
211
|
-
trajectoryStatus: {
|
|
212
|
-
type: "boolean",
|
|
213
|
-
title: "物流状态"
|
|
214
|
-
},
|
|
215
|
-
trajectoryLastUpdateTime: {
|
|
216
|
-
type: "boolean",
|
|
217
|
-
title: "最新更新时间"
|
|
218
|
-
},
|
|
219
|
-
trajectoryLastLogisticsInfo: {
|
|
220
|
-
type: "boolean",
|
|
221
|
-
title: "最新物流信息"
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
|
-
});
|
|
225
|
-
_defineProperty(LogisticsMoreTrajectory, "type", "LOGISTICS_TRAJECTORY_MORE");
|
|
226
173
|
export default LogisticsMoreTrajectory;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { ComponentInterface, PickOption, ColumnConfig, Record } from
|
|
2
|
-
import React from
|
|
3
|
-
import { ExpressData } from
|
|
4
|
-
import TrajectoryCompany from
|
|
5
|
-
import TrajectoryCode from
|
|
6
|
-
import TrajectorySnapshot from
|
|
7
|
-
import TrajectoryStatus from
|
|
8
|
-
import TrajectoryLastLogisticsInfo from
|
|
9
|
-
import TrajectoryLastUpdateTime from
|
|
1
|
+
import { ComponentInterface, PickOption, ColumnConfig, Record } from '../../type';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { ExpressData } from '@kmkf-fe-packages/kmkf-utils';
|
|
4
|
+
import TrajectoryCompany from './trajectoryCompany';
|
|
5
|
+
import TrajectoryCode from './trajectoryCode';
|
|
6
|
+
import TrajectorySnapshot from './trajectorySnapshot';
|
|
7
|
+
import TrajectoryStatus from './trajectoryStatus';
|
|
8
|
+
import TrajectoryLastLogisticsInfo from './trajectoryLastLogisticsInfo';
|
|
9
|
+
import TrajectoryLastUpdateTime from './trajectoryLastUpdateTime';
|
|
10
10
|
declare class LogisticsTrajectory implements ComponentInterface {
|
|
11
11
|
name: string;
|
|
12
12
|
id: string;
|
|
13
13
|
sortField: string;
|
|
14
14
|
type: string;
|
|
15
15
|
rules: any[];
|
|
16
|
-
componentConfig: ComponentInterface[
|
|
16
|
+
componentConfig: ComponentInterface['componentConfig'];
|
|
17
17
|
expressDateInstance: InstanceType<typeof ExpressData>;
|
|
18
18
|
express: TrajectoryCompany;
|
|
19
19
|
expressCode: TrajectoryCode;
|
|
@@ -25,44 +25,7 @@ declare class LogisticsTrajectory implements ComponentInterface {
|
|
|
25
25
|
formField: string;
|
|
26
26
|
canSort: boolean;
|
|
27
27
|
children: ComponentInterface[];
|
|
28
|
-
dataType: ComponentInterface[
|
|
29
|
-
static group: string;
|
|
30
|
-
static configSchema: {
|
|
31
|
-
componentConfig: {
|
|
32
|
-
required: boolean;
|
|
33
|
-
showField: never[];
|
|
34
|
-
};
|
|
35
|
-
name: string;
|
|
36
|
-
uniqueKey: string;
|
|
37
|
-
schema: {
|
|
38
|
-
required: {
|
|
39
|
-
title: string;
|
|
40
|
-
type: string;
|
|
41
|
-
};
|
|
42
|
-
showField: {
|
|
43
|
-
type: string;
|
|
44
|
-
items: {
|
|
45
|
-
type: string;
|
|
46
|
-
};
|
|
47
|
-
enum: string[];
|
|
48
|
-
enumNames: string[];
|
|
49
|
-
widget: string;
|
|
50
|
-
};
|
|
51
|
-
trajectoryStatus: {
|
|
52
|
-
type: string;
|
|
53
|
-
title: string;
|
|
54
|
-
};
|
|
55
|
-
trajectoryLastUpdateTime: {
|
|
56
|
-
type: string;
|
|
57
|
-
title: string;
|
|
58
|
-
};
|
|
59
|
-
trajectoryLastLogisticsInfo: {
|
|
60
|
-
type: string;
|
|
61
|
-
title: string;
|
|
62
|
-
};
|
|
63
|
-
};
|
|
64
|
-
};
|
|
65
|
-
static type: string;
|
|
28
|
+
dataType: ComponentInterface['dataType'];
|
|
66
29
|
constructor(options: PickOption);
|
|
67
30
|
editRender: (p: any) => React.JSX.Element;
|
|
68
31
|
renderClient: (record: Record) => React.JSX.Element;
|
|
@@ -8,9 +8,9 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
8
8
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
9
9
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
10
10
|
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
11
|
-
import React from
|
|
12
|
-
import { ExpressData } from
|
|
13
|
-
import { LogisticsTrajectory as Trajectory } from
|
|
11
|
+
import React from 'react';
|
|
12
|
+
import { ExpressData } from '@kmkf-fe-packages/kmkf-utils';
|
|
13
|
+
import { LogisticsTrajectory as Trajectory } from '@kmkf-fe-packages/basic-components';
|
|
14
14
|
import TrajectoryCompany from "./trajectoryCompany";
|
|
15
15
|
import TrajectoryCode from "./trajectoryCode";
|
|
16
16
|
import TrajectorySnapshot from "./trajectorySnapshot";
|
|
@@ -78,14 +78,14 @@ var LogisticsTrajectory = /*#__PURE__*/_createClass(function LogisticsTrajectory
|
|
|
78
78
|
});
|
|
79
79
|
_defineProperty(this, "filterConfig", function (item) {
|
|
80
80
|
return [_this.express.filterConfig(_objectSpread(_objectSpread({}, item), {}, {
|
|
81
|
-
subKey:
|
|
81
|
+
subKey: 'trajectoryCompany'
|
|
82
82
|
})), _this.expressCode.filterConfig(item), _this.expressSnapshot.filterConfig(item)];
|
|
83
83
|
});
|
|
84
84
|
this.name = options.name;
|
|
85
85
|
this.id = options.id;
|
|
86
86
|
this.sortField = options.id;
|
|
87
87
|
this.formField = options.id;
|
|
88
|
-
this.type =
|
|
88
|
+
this.type = options.type;
|
|
89
89
|
this.componentConfig = options.componentConfig;
|
|
90
90
|
this.expressDateInstance = ExpressData.getInstance();
|
|
91
91
|
this.express = new TrajectoryCompany(_objectSpread(_objectSpread({}, options), {}, {
|
|
@@ -115,55 +115,18 @@ var LogisticsTrajectory = /*#__PURE__*/_createClass(function LogisticsTrajectory
|
|
|
115
115
|
}));
|
|
116
116
|
this.isCombinationComponent = true;
|
|
117
117
|
this.canSort = false;
|
|
118
|
-
this.dataType =
|
|
118
|
+
this.dataType = 'object';
|
|
119
119
|
this.children = [this.express, this.expressCode, this.expressSnapshot, this.trajectoryStatus, this.trajectoryLastUpdateTime, this.trajectoryLastLogisticsInfo];
|
|
120
120
|
this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
|
|
121
121
|
validator: function validator(_, value) {
|
|
122
122
|
if (!value.trajectoryCompany) {
|
|
123
|
-
return Promise.reject(new Error(
|
|
123
|
+
return Promise.reject(new Error('请选择物流公司'));
|
|
124
124
|
}
|
|
125
125
|
if (!value.trajectoryCode) {
|
|
126
|
-
return Promise.reject(new Error(
|
|
126
|
+
return Promise.reject(new Error('请输入物流单号'));
|
|
127
127
|
}
|
|
128
128
|
return Promise.resolve();
|
|
129
129
|
}
|
|
130
130
|
}] : [];
|
|
131
131
|
});
|
|
132
|
-
_defineProperty(LogisticsTrajectory, "group", "SPECIAL_COMPONENT");
|
|
133
|
-
_defineProperty(LogisticsTrajectory, "configSchema", {
|
|
134
|
-
componentConfig: {
|
|
135
|
-
required: false,
|
|
136
|
-
showField: []
|
|
137
|
-
},
|
|
138
|
-
name: "物流轨迹",
|
|
139
|
-
uniqueKey: "jbCFrJV4m7",
|
|
140
|
-
schema: {
|
|
141
|
-
required: {
|
|
142
|
-
title: "必填",
|
|
143
|
-
type: "boolean"
|
|
144
|
-
},
|
|
145
|
-
showField: {
|
|
146
|
-
type: "array",
|
|
147
|
-
items: {
|
|
148
|
-
type: "string"
|
|
149
|
-
},
|
|
150
|
-
enum: ["snapshot"],
|
|
151
|
-
enumNames: ["物流状态快照"],
|
|
152
|
-
widget: "checkboxes"
|
|
153
|
-
},
|
|
154
|
-
trajectoryStatus: {
|
|
155
|
-
type: "boolean",
|
|
156
|
-
title: "物流状态"
|
|
157
|
-
},
|
|
158
|
-
trajectoryLastUpdateTime: {
|
|
159
|
-
type: "boolean",
|
|
160
|
-
title: "最新更新时间"
|
|
161
|
-
},
|
|
162
|
-
trajectoryLastLogisticsInfo: {
|
|
163
|
-
type: "boolean",
|
|
164
|
-
title: "最新物流信息"
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
});
|
|
168
|
-
_defineProperty(LogisticsTrajectory, "type", "LOGISTICS_TRAJECTORY");
|
|
169
132
|
export default LogisticsTrajectory;
|
|
@@ -1,45 +1,18 @@
|
|
|
1
|
-
import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from
|
|
2
|
-
import React from
|
|
1
|
+
import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from '../../type';
|
|
2
|
+
import React from 'react';
|
|
3
3
|
declare class MsgStatus implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
6
6
|
sortField: string;
|
|
7
7
|
type: string;
|
|
8
8
|
rules: any[];
|
|
9
|
-
componentConfig: ComponentInterface[
|
|
9
|
+
componentConfig: ComponentInterface['componentConfig'];
|
|
10
10
|
align: ALignType;
|
|
11
11
|
isCombinationComponent: boolean;
|
|
12
12
|
formField: string;
|
|
13
13
|
canSort: boolean;
|
|
14
14
|
children: ComponentInterface[];
|
|
15
|
-
dataType: ComponentInterface[
|
|
16
|
-
static group: string;
|
|
17
|
-
static configSchema: {
|
|
18
|
-
componentConfig: {
|
|
19
|
-
required: boolean;
|
|
20
|
-
reasonList: {
|
|
21
|
-
label: string;
|
|
22
|
-
value: string;
|
|
23
|
-
}[];
|
|
24
|
-
};
|
|
25
|
-
name: string;
|
|
26
|
-
uniqueKey: string;
|
|
27
|
-
schema: {
|
|
28
|
-
required: {
|
|
29
|
-
title: string;
|
|
30
|
-
type: string;
|
|
31
|
-
};
|
|
32
|
-
status: {
|
|
33
|
-
widget: string;
|
|
34
|
-
type: string;
|
|
35
|
-
default: {
|
|
36
|
-
created: number;
|
|
37
|
-
upgrade: number;
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
static type: string;
|
|
15
|
+
dataType: ComponentInterface['dataType'];
|
|
43
16
|
constructor(options: PickOption);
|
|
44
17
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
45
18
|
renderPc: (value: any, record: Record) => React.JSX.Element;
|