@kmkf-fe-packages/services-components 1.0.6 → 1.0.7
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/esm/components/ActualPayment/BsDeposit.d.ts +23 -0
- package/dist/esm/components/ActualPayment/BsDeposit.js +50 -0
- package/dist/esm/components/ActualPayment/BsNetReceipts.d.ts +23 -0
- package/dist/esm/components/ActualPayment/BsNetReceipts.js +50 -0
- package/dist/esm/components/ActualPayment/BsPackageWeight.d.ts +23 -0
- package/dist/esm/components/ActualPayment/BsPackageWeight.js +50 -0
- package/dist/esm/components/ActualPayment/index.d.ts +16 -2
- package/dist/esm/components/ActualPayment/index.js +28 -35
- package/dist/esm/components/Address/index.d.ts +14 -0
- package/dist/esm/components/Address/index.js +15 -2
- package/dist/esm/components/Alipay/index.d.ts +30 -5
- package/dist/esm/components/Alipay/index.js +31 -6
- package/dist/esm/components/BS/BsDeposit/index.d.ts +60 -0
- package/dist/esm/components/BS/BsDeposit/index.js +165 -0
- package/dist/esm/components/BS/BsExchange/index.d.ts +39 -0
- package/dist/esm/components/BS/BsExchange/index.js +52 -1
- package/dist/esm/components/BS/BsGoods/index.d.ts +30 -0
- package/dist/esm/components/BS/BsGoods/index.js +31 -1
- package/dist/esm/components/BS/BsLogistics/index.d.ts +33 -0
- package/dist/esm/components/BS/BsLogistics/index.js +62 -52
- package/dist/esm/components/BS/BsPosting/index.d.ts +15 -0
- package/dist/esm/components/BS/BsPosting/index.js +16 -1
- package/dist/esm/components/BS/BsReissue/index.d.ts +46 -7
- package/dist/esm/components/BS/BsReissue/index.js +70 -19
- package/dist/esm/components/BS/BsReturn/index.d.ts +39 -0
- package/dist/esm/components/BS/BsReturn/index.js +44 -1
- package/dist/esm/components/BS/BsSendGood/index.d.ts +36 -0
- package/dist/esm/components/BS/BsSendGood/index.js +68 -0
- package/dist/esm/components/BS/BsSystemOrder/index.d.ts +18 -29
- package/dist/esm/components/BS/BsSystemOrder/index.js +37 -138
- package/dist/esm/components/BusinessOrderNo/index.d.ts +26 -0
- package/dist/esm/components/BusinessOrderNo/index.js +53 -0
- package/dist/esm/components/BuyerMessageNotice/index.d.ts +37 -0
- package/dist/esm/components/BuyerMessageNotice/index.js +66 -0
- package/dist/esm/components/BuyerNick/index.d.ts +20 -0
- package/dist/esm/components/BuyerNick/index.js +21 -2
- package/dist/esm/components/Calculation/index.d.ts +18 -0
- package/dist/esm/components/Calculation/index.js +21 -3
- package/dist/esm/components/Cascader/index.d.ts +20 -5
- package/dist/esm/components/Cascader/index.js +35 -21
- package/dist/esm/components/Checkbox/index.d.ts +26 -4
- package/dist/esm/components/Checkbox/index.js +62 -19
- package/dist/esm/components/CommonDataTime/CompletedDateTime.d.ts +7 -0
- package/dist/esm/components/CommonDataTime/CompletedDateTime.js +29 -0
- package/dist/esm/components/CommonDataTime/CreatedDateTime.d.ts +7 -0
- package/dist/esm/components/CommonDataTime/CreatedDateTime.js +29 -0
- package/dist/esm/components/CommonDataTime/FlowCreatedDateTime.d.ts +7 -0
- package/dist/esm/components/CommonDataTime/FlowCreatedDateTime.js +29 -0
- package/dist/esm/components/CommonDataTime/FlowUpdateDateTime.d.ts +7 -0
- package/dist/esm/components/CommonDataTime/FlowUpdateDateTime.js +29 -0
- package/dist/esm/components/CommonDataTime/UpdateDateTime.d.ts +7 -0
- package/dist/esm/components/CommonDataTime/UpdateDateTime.js +29 -0
- package/dist/esm/components/CommonDataTime/index.d.ts +1 -0
- package/dist/esm/components/CommonDataTime/index.js +1 -0
- package/dist/esm/components/CommonInput/index.d.ts +5 -0
- package/dist/esm/components/CommonInput/index.js +32 -18
- package/dist/esm/components/CommonMultiStatus/ExchangeStatus.d.ts +30 -0
- package/dist/esm/components/CommonMultiStatus/ExchangeStatus.js +69 -0
- package/dist/esm/components/CommonMultiStatus/ReturnGoodsStatus.d.ts +30 -0
- package/dist/esm/components/CommonMultiStatus/ReturnGoodsStatus.js +69 -0
- package/dist/esm/components/CommonMultiStatus/WareHousingStatus.d.ts +34 -0
- package/dist/esm/components/CommonMultiStatus/WareHousingStatus.js +83 -0
- package/dist/esm/components/CommonMultiStatus/index.d.ts +19 -20
- package/dist/esm/components/CommonMultiStatus/index.js +99 -109
- package/dist/esm/components/CommonSystemOrder/DeliveryNoList.d.ts +21 -0
- package/dist/esm/components/CommonSystemOrder/DeliveryNoList.js +48 -0
- package/dist/esm/components/CommonSystemOrder/ExchangeTradeId.d.ts +22 -0
- package/dist/esm/components/CommonSystemOrder/ExchangeTradeId.js +49 -0
- package/dist/esm/components/CommonSystemOrder/ReturnGoodsTradeItemList.d.ts +32 -0
- package/dist/esm/components/CommonSystemOrder/ReturnGoodsTradeItemList.js +60 -0
- package/dist/esm/components/CommonSystemOrder/TradeItemList.d.ts +23 -0
- package/dist/esm/components/CommonSystemOrder/TradeItemList.js +50 -0
- package/dist/esm/components/CommonSystemOrder/index.d.ts +11 -4
- package/dist/esm/components/CommonSystemOrder/index.js +36 -66
- package/dist/esm/components/CompletedUser/index.d.ts +6 -4
- package/dist/esm/components/CompletedUser/index.js +9 -7
- package/dist/esm/components/DataTime/index.d.ts +20 -4
- package/dist/esm/components/DataTime/index.js +32 -16
- package/dist/esm/components/EItemEnCode/index.d.ts +36 -0
- package/dist/esm/components/EItemEnCode/index.js +38 -2
- package/dist/esm/components/EItemId/index.d.ts +21 -0
- package/dist/esm/components/EItemId/index.js +22 -1
- package/dist/esm/components/EItemSelect/index.d.ts +22 -1
- package/dist/esm/components/EItemSelect/index.js +23 -2
- package/dist/esm/components/File/index.d.ts +15 -0
- package/dist/esm/components/File/index.js +16 -1
- package/dist/esm/components/FlowCreator/index.d.ts +2 -0
- package/dist/esm/components/FlowCreator/index.js +2 -0
- package/dist/esm/components/FlowMarkSelect/index.d.ts +2 -0
- package/dist/esm/components/FlowMarkSelect/index.js +2 -0
- package/dist/esm/components/FlowStatusSelect/index.d.ts +2 -0
- package/dist/esm/components/FlowStatusSelect/index.js +3 -2
- package/dist/esm/components/FlowTag/index.d.ts +2 -0
- package/dist/esm/components/FlowTag/index.js +2 -0
- package/dist/esm/components/FlowWorkOrderId/index.d.ts +2 -0
- package/dist/esm/components/FlowWorkOrderId/index.js +3 -1
- package/dist/esm/components/FlowWorkOrderStatus/index.d.ts +6 -4
- package/dist/esm/components/FlowWorkOrderStatus/index.js +31 -29
- package/dist/esm/components/Grade/index.d.ts +25 -3
- package/dist/esm/components/Grade/index.js +29 -7
- package/dist/esm/components/Handler/index.d.ts +6 -4
- package/dist/esm/components/Handler/index.js +9 -7
- package/dist/esm/components/HandlerDeadLine/index.d.ts +2 -0
- package/dist/esm/components/HandlerDeadLine/index.js +3 -1
- package/dist/esm/components/Input/index.d.ts +53 -0
- package/dist/esm/components/Input/index.js +55 -1
- package/dist/esm/components/JST/JstItemSelect/index.d.ts +26 -0
- package/dist/esm/components/JST/JstItemSelect/index.js +27 -1
- package/dist/esm/components/JST/JstLogistics/index.d.ts +5 -30
- package/dist/esm/components/JST/JstLogistics/index.js +49 -53
- package/dist/esm/components/JST/JstSendGood/index.d.ts +29 -46
- package/dist/esm/components/JST/JstSendGood/index.js +52 -230
- package/dist/esm/components/JST/JstSupply/index.d.ts +27 -0
- package/dist/esm/components/JST/JstSupply/index.js +34 -1
- package/dist/esm/components/JST/ReissueLogistics/index.d.ts +76 -0
- package/dist/esm/components/JST/ReissueLogistics/index.js +147 -0
- package/dist/esm/components/Label/index.d.ts +25 -0
- package/dist/esm/components/Label/index.js +26 -0
- package/dist/esm/components/Logistics/index.d.ts +36 -0
- package/dist/esm/components/Logistics/index.js +40 -1
- package/dist/esm/components/LogisticsInterception/index.d.ts +15 -0
- package/dist/esm/components/LogisticsInterception/index.js +16 -1
- package/dist/esm/components/LogisticsMoreInterception/index.d.ts +44 -13
- package/dist/esm/components/LogisticsMoreInterception/index.js +46 -15
- package/dist/esm/components/LogisticsMoreTrajectory/index.d.ts +56 -3
- package/dist/esm/components/LogisticsMoreTrajectory/index.js +62 -9
- package/dist/esm/components/LogisticsTrajectory/index.d.ts +48 -11
- package/dist/esm/components/LogisticsTrajectory/index.js +45 -8
- package/dist/esm/components/MsgStatus/index.d.ts +31 -4
- package/dist/esm/components/MsgStatus/index.js +72 -36
- package/dist/esm/components/MultSelect/index.d.ts +16 -0
- package/dist/esm/components/MultSelect/index.js +17 -1
- package/dist/esm/components/NewPaymentStatus/index.d.ts +41 -0
- package/dist/esm/components/NewPaymentStatus/index.js +105 -0
- package/dist/esm/components/NodeDeadLine/index.d.ts +2 -0
- package/dist/esm/components/NodeDeadLine/index.js +3 -1
- package/dist/esm/components/NodeInput/index.d.ts +6 -4
- package/dist/esm/components/NodeInput/index.js +9 -7
- package/dist/esm/components/NodeStayDuration/index.d.ts +2 -0
- package/dist/esm/components/NodeStayDuration/index.js +3 -1
- package/dist/esm/components/Ordinary/index.d.ts +27 -6
- package/dist/esm/components/Ordinary/index.js +39 -8
- package/dist/esm/components/OutFlowWorkOrderId/index.d.ts +34 -0
- package/dist/esm/components/OutFlowWorkOrderId/index.js +101 -0
- package/dist/esm/components/Payment/index.d.ts +25 -0
- package/dist/esm/components/Payment/index.js +26 -1
- package/dist/esm/components/PaymentVoucherCode/index.d.ts +20 -0
- package/dist/esm/components/PaymentVoucherCode/index.js +22 -2
- package/dist/esm/components/Picture/index.d.ts +18 -3
- package/dist/esm/components/Picture/index.js +31 -16
- package/dist/esm/components/PlatForm/index.d.ts +2 -0
- package/dist/esm/components/PlatForm/index.js +2 -0
- package/dist/esm/components/PostIng/index.d.ts +32 -0
- package/dist/esm/components/PostIng/index.js +39 -1
- package/dist/esm/components/PrevSubmitter/index.d.ts +2 -0
- package/dist/esm/components/PrevSubmitter/index.js +2 -0
- package/dist/esm/components/Radio/index.d.ts +26 -0
- package/dist/esm/components/Radio/index.js +27 -1
- package/dist/esm/components/Rate/index.d.ts +22 -3
- package/dist/esm/components/Rate/index.js +49 -30
- package/dist/esm/components/ReceiverAddress/index.d.ts +15 -0
- package/dist/esm/components/ReceiverAddress/index.js +16 -1
- package/dist/esm/components/ReceiverMobile/index.d.ts +23 -3
- package/dist/esm/components/ReceiverMobile/index.js +29 -9
- package/dist/esm/components/ReceiverName/index.d.ts +18 -3
- package/dist/esm/components/ReceiverName/index.js +23 -8
- package/dist/esm/components/Remark/index.d.ts +49 -0
- package/dist/esm/components/Remark/index.js +59 -1
- package/dist/esm/components/ReturnLogistics/index.d.ts +37 -6
- package/dist/esm/components/ReturnLogistics/index.js +50 -16
- package/dist/esm/components/Select/index.d.ts +4 -1
- package/dist/esm/components/Select/index.js +32 -30
- package/dist/esm/components/SendGood/index.d.ts +54 -0
- package/dist/esm/components/SendGood/index.js +215 -0
- package/dist/esm/components/ShopInput/index.d.ts +7 -5
- package/dist/esm/components/ShopInput/index.js +10 -8
- package/dist/esm/components/ShopName/index.d.ts +15 -0
- package/dist/esm/components/ShopName/index.js +16 -1
- package/dist/esm/components/StatusSelect/AdjustWorkOrderStatus.d.ts +30 -0
- package/dist/esm/components/StatusSelect/AdjustWorkOrderStatus.js +68 -0
- package/dist/esm/components/StatusSelect/CreateStatus.d.ts +7 -0
- package/dist/esm/components/StatusSelect/CreateStatus.js +41 -0
- package/dist/esm/components/StatusSelect/InvoiceStatus.d.ts +30 -0
- package/dist/esm/components/StatusSelect/InvoiceStatus.js +65 -0
- package/dist/esm/components/StatusSelect/InvoicingStatus.d.ts +30 -0
- package/dist/esm/components/StatusSelect/InvoicingStatus.js +65 -0
- package/dist/esm/components/StatusSelect/ReissueStatus.d.ts +30 -0
- package/dist/esm/components/StatusSelect/ReissueStatus.js +65 -0
- package/dist/esm/components/StatusSelect/index.d.ts +15 -1
- package/dist/esm/components/StatusSelect/index.js +30 -93
- package/dist/esm/components/Submitter/index.d.ts +6 -4
- package/dist/esm/components/Submitter/index.js +9 -7
- package/dist/esm/components/SystemOrder/index.d.ts +39 -0
- package/dist/esm/components/SystemOrder/index.js +162 -0
- package/dist/esm/components/SystemOrderNo/index.d.ts +18 -3
- package/dist/esm/components/SystemOrderNo/index.js +24 -9
- package/dist/esm/components/TemplateSelect/index.d.ts +2 -0
- package/dist/esm/components/TemplateSelect/index.js +3 -1
- package/dist/esm/components/TextArea/index.d.ts +15 -0
- package/dist/esm/components/TextArea/index.js +16 -1
- package/dist/esm/components/ThirdItemSelect/index.d.ts +29 -3
- package/dist/esm/components/ThirdItemSelect/index.js +37 -11
- package/dist/esm/components/TradeDateTime/BsSendTime.d.ts +23 -0
- package/dist/esm/components/TradeDateTime/BsSendTime.js +46 -0
- package/dist/esm/components/TradeDateTime/BsSigningTime.d.ts +23 -0
- package/dist/esm/components/TradeDateTime/BsSigningTime.js +46 -0
- package/dist/esm/components/TradeDateTime/BsTradePaymentTime.d.ts +23 -0
- package/dist/esm/components/TradeDateTime/BsTradePaymentTime.js +46 -0
- package/dist/esm/components/TradeDateTime/TradeClosingDateTime.d.ts +23 -0
- package/dist/esm/components/TradeDateTime/TradeClosingDateTime.js +46 -0
- package/dist/esm/components/TradeDateTime/TradeCreateDateTime.d.ts +23 -0
- package/dist/esm/components/TradeDateTime/TradeCreateDateTime.js +46 -0
- package/dist/esm/components/TradeDateTime/TradeDeliveryDateTime.d.ts +23 -0
- package/dist/esm/components/TradeDateTime/TradeDeliveryDateTime.js +46 -0
- package/dist/esm/components/TradeDateTime/TradePaymentDateTime.d.ts +23 -0
- package/dist/esm/components/TradeDateTime/TradePaymentDateTime.js +46 -0
- package/dist/esm/components/TradeDateTime/index.d.ts +3 -4
- package/dist/esm/components/TradeDateTime/index.js +14 -39
- package/dist/esm/components/TradeId/index.d.ts +25 -5
- package/dist/esm/components/TradeId/index.js +29 -9
- package/dist/esm/components/WDT/WdtGoods/index.d.ts +30 -0
- package/dist/esm/components/WDT/WdtGoods/index.js +37 -1
- package/dist/esm/components/WDT/WdtLogistics/index.d.ts +93 -0
- package/dist/esm/components/WDT/WdtLogistics/index.js +227 -0
- package/dist/esm/components/WDT/WdtRessuie/index.d.ts +39 -0
- package/dist/esm/components/WDT/WdtRessuie/index.js +44 -1
- package/dist/esm/components/WDT/WdtSendGood/index.d.ts +41 -0
- package/dist/esm/components/WDT/WdtSendGood/index.js +73 -0
- package/dist/esm/components/WDT/WdtSystemOrder/index.d.ts +21 -0
- package/dist/esm/components/WDT/WdtSystemOrder/index.js +48 -0
- package/dist/esm/components/WLN/WlnGoods/index.d.ts +30 -0
- package/dist/esm/components/WLN/WlnGoods/index.js +31 -1
- package/dist/esm/components/WLN/WlnLogistics/index.d.ts +88 -0
- package/dist/esm/components/WLN/WlnLogistics/index.js +222 -0
- package/dist/esm/components/WLN/WlnSendGood/index.d.ts +36 -0
- package/dist/esm/components/WLN/WlnSendGood/index.js +68 -0
- package/dist/esm/components/WLN/WlnSystemOrder/index.d.ts +21 -0
- package/dist/esm/components/WLN/WlnSystemOrder/index.js +48 -0
- package/dist/esm/components/WorkOrderId/index.d.ts +2 -0
- package/dist/esm/components/WorkOrderId/index.js +3 -1
- package/dist/esm/constant.d.ts +2 -0
- package/dist/esm/constant.js +3 -1
- package/dist/esm/factory.d.ts +2 -2
- package/dist/esm/factory.js +46 -20
- package/dist/esm/index.d.ts +39 -6
- package/dist/esm/index.js +39 -6
- package/package.json +6 -5
|
@@ -9,6 +9,7 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function
|
|
|
9
9
|
import React from "react";
|
|
10
10
|
import { Tag, Select, Space } from 'antd';
|
|
11
11
|
import { LabelData, isNull } from "@kmkf-fe-packages/kmkf-utils";
|
|
12
|
+
import { SHOW_NOT_WRITE } from "../../constant";
|
|
12
13
|
import GetFormItem from "../GetFormItem";
|
|
13
14
|
import ItemView from "../../commonComponents/ItemView";
|
|
14
15
|
var EditRenderItem = function EditRenderItem(props) {
|
|
@@ -134,4 +135,29 @@ var Label = /*#__PURE__*/_createClass(function Label(options) {
|
|
|
134
135
|
this.labelDateInstance = LabelData.getInstance();
|
|
135
136
|
this.options = this.labelDateInstance.labelData || [];
|
|
136
137
|
});
|
|
138
|
+
_defineProperty(Label, "type", "LABEL");
|
|
139
|
+
_defineProperty(Label, "group", "SPECIAL_COMPONENT");
|
|
140
|
+
_defineProperty(Label, "configSchema", {
|
|
141
|
+
componentConfig: {
|
|
142
|
+
status: {
|
|
143
|
+
created: SHOW_NOT_WRITE,
|
|
144
|
+
upgrade: SHOW_NOT_WRITE
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
name: '标签(勿填)',
|
|
148
|
+
uniqueKey: '4i9IZhYqx7',
|
|
149
|
+
schema: {
|
|
150
|
+
status: {
|
|
151
|
+
widget: 'StatusConfig',
|
|
152
|
+
type: 'object',
|
|
153
|
+
default: {
|
|
154
|
+
created: SHOW_NOT_WRITE,
|
|
155
|
+
upgrade: SHOW_NOT_WRITE
|
|
156
|
+
},
|
|
157
|
+
props: {
|
|
158
|
+
showOptionsKey: [2, 0]
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
});
|
|
137
163
|
export default Label;
|
|
@@ -18,6 +18,42 @@ declare class Logistics implements ComponentInterface {
|
|
|
18
18
|
canSort: boolean;
|
|
19
19
|
children: ComponentInterface[];
|
|
20
20
|
dataType: ComponentInterface["dataType"];
|
|
21
|
+
static group: string;
|
|
22
|
+
static configSchema: {
|
|
23
|
+
componentConfig: {
|
|
24
|
+
isSingle: boolean;
|
|
25
|
+
required: boolean;
|
|
26
|
+
showField: string;
|
|
27
|
+
replaceWarn: boolean;
|
|
28
|
+
};
|
|
29
|
+
name: string;
|
|
30
|
+
uniqueKey: string;
|
|
31
|
+
schema: {
|
|
32
|
+
required: {
|
|
33
|
+
title: string;
|
|
34
|
+
type: string;
|
|
35
|
+
};
|
|
36
|
+
replaceWarn: {
|
|
37
|
+
title: string;
|
|
38
|
+
type: string;
|
|
39
|
+
};
|
|
40
|
+
isSingle: {
|
|
41
|
+
title: string;
|
|
42
|
+
type: string;
|
|
43
|
+
};
|
|
44
|
+
showField: {
|
|
45
|
+
widget: string;
|
|
46
|
+
type: string;
|
|
47
|
+
props: {
|
|
48
|
+
options: {
|
|
49
|
+
label: string;
|
|
50
|
+
value: string;
|
|
51
|
+
}[];
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
static type: string;
|
|
21
57
|
constructor(options: PickOption);
|
|
22
58
|
editRender: (p: any) => React.JSX.Element;
|
|
23
59
|
renderClient: (record: Record) => React.JSX.Element;
|
|
@@ -77,7 +77,7 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
77
77
|
this.id = options.id;
|
|
78
78
|
this.sortField = options.id;
|
|
79
79
|
this.formField = options.id;
|
|
80
|
-
this.type =
|
|
80
|
+
this.type = "EXPRESS_LOGISTICS_SELECT";
|
|
81
81
|
this.componentConfig = options.componentConfig;
|
|
82
82
|
this.expressDateInstance = ExpressData.getInstance();
|
|
83
83
|
this.express = new Express(_objectSpread(_objectSpread({}, options), {}, {
|
|
@@ -114,4 +114,43 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
114
114
|
}
|
|
115
115
|
}] : [];
|
|
116
116
|
});
|
|
117
|
+
_defineProperty(Logistics, "group", "E_COMPONENT");
|
|
118
|
+
_defineProperty(Logistics, "configSchema", {
|
|
119
|
+
componentConfig: {
|
|
120
|
+
isSingle: false,
|
|
121
|
+
required: false,
|
|
122
|
+
showField: "EXPRESS_COMPANY",
|
|
123
|
+
replaceWarn: false
|
|
124
|
+
},
|
|
125
|
+
name: "快递物流",
|
|
126
|
+
uniqueKey: "0eVTfMGEyd",
|
|
127
|
+
schema: {
|
|
128
|
+
required: {
|
|
129
|
+
title: "必填",
|
|
130
|
+
type: "boolean"
|
|
131
|
+
},
|
|
132
|
+
replaceWarn: {
|
|
133
|
+
title: "重复校验",
|
|
134
|
+
type: "boolean"
|
|
135
|
+
},
|
|
136
|
+
isSingle: {
|
|
137
|
+
title: "仅需",
|
|
138
|
+
type: "boolean"
|
|
139
|
+
},
|
|
140
|
+
showField: {
|
|
141
|
+
widget: "select",
|
|
142
|
+
type: "string",
|
|
143
|
+
props: {
|
|
144
|
+
options: [{
|
|
145
|
+
label: "物流公司",
|
|
146
|
+
value: "EXPRESS_COMPANY"
|
|
147
|
+
}, {
|
|
148
|
+
label: "物流单号",
|
|
149
|
+
value: "EXPRESS_WAYBILL_CODE"
|
|
150
|
+
}]
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
});
|
|
155
|
+
_defineProperty(Logistics, "type", "EXPRESS_LOGISTICS_SELECT");
|
|
117
156
|
export default Logistics;
|
|
@@ -34,6 +34,21 @@ declare class Logistics implements ComponentInterface {
|
|
|
34
34
|
logisticsAddressData: InstanceType<typeof LogisticsAddressData>;
|
|
35
35
|
effects: ComponentInterface["effects"];
|
|
36
36
|
dataType: ComponentInterface["dataType"];
|
|
37
|
+
static group: string;
|
|
38
|
+
static configSchema: {
|
|
39
|
+
componentConfig: {
|
|
40
|
+
required: boolean;
|
|
41
|
+
};
|
|
42
|
+
name: string;
|
|
43
|
+
uniqueKey: string;
|
|
44
|
+
schema: {
|
|
45
|
+
required: {
|
|
46
|
+
title: string;
|
|
47
|
+
type: string;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
static type: string;
|
|
37
52
|
constructor(options: PickOption);
|
|
38
53
|
renderClient: (record: any) => React.JSX.Element;
|
|
39
54
|
renderLog: (record: any) => React.JSX.Element;
|
|
@@ -103,7 +103,7 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
103
103
|
this.id = options.id;
|
|
104
104
|
this.sortField = options.id;
|
|
105
105
|
this.formField = options.id;
|
|
106
|
-
this.type =
|
|
106
|
+
this.type = "LOGISTICS_INTERCEPTION";
|
|
107
107
|
this.componentConfig = options.componentConfig;
|
|
108
108
|
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
109
109
|
this.expressDateInstance = ExpressData.getInstance();
|
|
@@ -151,4 +151,19 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
151
151
|
}
|
|
152
152
|
}];
|
|
153
153
|
});
|
|
154
|
+
_defineProperty(Logistics, "group", "SPECIAL_COMPONENT");
|
|
155
|
+
_defineProperty(Logistics, "configSchema", {
|
|
156
|
+
componentConfig: {
|
|
157
|
+
required: true
|
|
158
|
+
},
|
|
159
|
+
name: "物流拦截",
|
|
160
|
+
uniqueKey: "6Wk4ks7ppU",
|
|
161
|
+
schema: {
|
|
162
|
+
required: {
|
|
163
|
+
title: "必填",
|
|
164
|
+
type: "boolean"
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
});
|
|
168
|
+
_defineProperty(Logistics, "type", "LOGISTICS_INTERCEPTION");
|
|
154
169
|
export default Logistics;
|
|
@@ -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,8 +32,39 @@ 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[
|
|
35
|
+
effects: ComponentInterface["effects"];
|
|
36
|
+
dataType: ComponentInterface["dataType"];
|
|
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;
|
|
37
68
|
constructor(options: PickOption);
|
|
38
69
|
renderInfo: (list?: any[]) => React.JSX.Element;
|
|
39
70
|
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 = "LOGISTICS_INTERCEPTION_MORE";
|
|
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,4 +184,35 @@ 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");
|
|
187
218
|
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,7 +27,60 @@ 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
|
+
};
|
|
30
82
|
expressInterceptInstance: InstanceType<typeof ExpressInterceptData>;
|
|
83
|
+
static type: string;
|
|
31
84
|
constructor(options: PickOption);
|
|
32
85
|
editRender: (p: any) => React.JSX.Element;
|
|
33
86
|
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, "/ ", /*#__PURE__*/React.createElement(CopyText, {
|
|
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 = "LOGISTICS_TRAJECTORY_MORE";
|
|
120
120
|
this.componentConfig = options.componentConfig;
|
|
121
121
|
this.expressDateInstance = ExpressData.getInstance();
|
|
122
122
|
this.expressInterceptInstance = ExpressInterceptData.getInstance();
|
|
@@ -170,4 +170,57 @@ 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");
|
|
173
226
|
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,7 +25,44 @@ declare class LogisticsTrajectory implements ComponentInterface {
|
|
|
25
25
|
formField: string;
|
|
26
26
|
canSort: boolean;
|
|
27
27
|
children: ComponentInterface[];
|
|
28
|
-
dataType: ComponentInterface[
|
|
28
|
+
dataType: ComponentInterface["dataType"];
|
|
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;
|
|
29
66
|
constructor(options: PickOption);
|
|
30
67
|
editRender: (p: any) => React.JSX.Element;
|
|
31
68
|
renderClient: (record: Record) => React.JSX.Element;
|