@kmkf-fe-packages/services-components 2.3.2 → 2.3.4
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.
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
declare const QueryLogisticsTrack: ({ title, modelWidth, interceptCompany, interceptCode, interceptSenderMobile, }: {
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const QueryLogisticsTrack: ({ title, modelWidth, interceptCompany, interceptCode, interceptSenderMobile, interceptCompanyName, shopUk, }: {
|
|
3
3
|
title?: string | undefined;
|
|
4
4
|
modelWidth?: string | number | undefined;
|
|
5
|
-
interceptCompany
|
|
5
|
+
interceptCompany?: string | undefined;
|
|
6
6
|
interceptCode: string;
|
|
7
7
|
interceptSenderMobile?: string | number | undefined;
|
|
8
|
+
interceptCompanyName?: string | undefined;
|
|
9
|
+
shopUk?: string | undefined;
|
|
8
10
|
}) => React.JSX.Element;
|
|
9
11
|
export default QueryLogisticsTrack;
|
|
@@ -8,19 +8,21 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
8
8
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
9
9
|
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
10
10
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
11
|
-
import React, { useState } from
|
|
12
|
-
import { Modal, Timeline, message } from
|
|
13
|
-
import { request } from
|
|
11
|
+
import React, { useState } from "react";
|
|
12
|
+
import { Modal, Timeline, message } from "antd";
|
|
13
|
+
import { request } from "@kmkf-fe-packages/kmkf-utils";
|
|
14
14
|
import CopyText from "../CopyText";
|
|
15
15
|
var QueryLogisticsTrack = function QueryLogisticsTrack(_ref) {
|
|
16
16
|
var _ref$title = _ref.title,
|
|
17
|
-
title = _ref$title === void 0 ?
|
|
17
|
+
title = _ref$title === void 0 ? "查轨迹" : _ref$title,
|
|
18
18
|
_ref$modelWidth = _ref.modelWidth,
|
|
19
19
|
modelWidth = _ref$modelWidth === void 0 ? 500 : _ref$modelWidth,
|
|
20
20
|
interceptCompany = _ref.interceptCompany,
|
|
21
21
|
interceptCode = _ref.interceptCode,
|
|
22
|
-
interceptSenderMobile = _ref.interceptSenderMobile
|
|
23
|
-
|
|
22
|
+
interceptSenderMobile = _ref.interceptSenderMobile,
|
|
23
|
+
interceptCompanyName = _ref.interceptCompanyName,
|
|
24
|
+
shopUk = _ref.shopUk;
|
|
25
|
+
var _useState = useState(""),
|
|
24
26
|
_useState2 = _slicedToArray(_useState, 2),
|
|
25
27
|
inputVal = _useState2[0],
|
|
26
28
|
setInputVal = _useState2[1];
|
|
@@ -36,9 +38,9 @@ var QueryLogisticsTrack = function QueryLogisticsTrack(_ref) {
|
|
|
36
38
|
var list = _ref2.list;
|
|
37
39
|
return /*#__PURE__*/React.createElement("div", {
|
|
38
40
|
style: {
|
|
39
|
-
maxHeight:
|
|
40
|
-
padding:
|
|
41
|
-
overflowY:
|
|
41
|
+
maxHeight: "500px",
|
|
42
|
+
padding: "8px 0",
|
|
43
|
+
overflowY: "auto"
|
|
42
44
|
}
|
|
43
45
|
}, /*#__PURE__*/React.createElement(Timeline, null, list.map(function (item, index) {
|
|
44
46
|
return /*#__PURE__*/React.createElement(Timeline.Item, {
|
|
@@ -51,11 +53,11 @@ var QueryLogisticsTrack = function QueryLogisticsTrack(_ref) {
|
|
|
51
53
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
52
54
|
while (1) switch (_context.prev = _context.next) {
|
|
53
55
|
case 0:
|
|
54
|
-
if (!(!interceptCode || !interceptCompany)) {
|
|
56
|
+
if (!(!interceptCode || !interceptCompany && !interceptCompanyName)) {
|
|
55
57
|
_context.next = 2;
|
|
56
58
|
break;
|
|
57
59
|
}
|
|
58
|
-
return _context.abrupt("return", message.error(
|
|
60
|
+
return _context.abrupt("return", message.error("缺少物流公司或物流单号"));
|
|
59
61
|
case 2:
|
|
60
62
|
logisticsTraceSearch();
|
|
61
63
|
//如果是顺丰且没有手机号 要输入手机号
|
|
@@ -90,12 +92,14 @@ var QueryLogisticsTrack = function QueryLogisticsTrack(_ref) {
|
|
|
90
92
|
var logisticsTraceSearch = function logisticsTraceSearch(mobile) {
|
|
91
93
|
try {
|
|
92
94
|
request({
|
|
93
|
-
url:
|
|
94
|
-
method:
|
|
95
|
+
url: "/qy/logistics/logisticsTraceSearch",
|
|
96
|
+
method: "post",
|
|
95
97
|
data: {
|
|
96
98
|
mailNo: interceptCode,
|
|
97
99
|
cpCode: interceptCompany,
|
|
98
|
-
mobile: interceptSenderMobile || mobile
|
|
100
|
+
mobile: interceptSenderMobile || mobile,
|
|
101
|
+
cpName: interceptCompanyName,
|
|
102
|
+
shopUk: shopUk
|
|
99
103
|
},
|
|
100
104
|
handleError: function handleError(msg) {
|
|
101
105
|
msg && message.error(msg);
|
|
@@ -118,16 +122,16 @@ var QueryLogisticsTrack = function QueryLogisticsTrack(_ref) {
|
|
|
118
122
|
};
|
|
119
123
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("span", {
|
|
120
124
|
style: {
|
|
121
|
-
margin:
|
|
122
|
-
color:
|
|
123
|
-
cursor:
|
|
125
|
+
margin: "0 8px",
|
|
126
|
+
color: "#1890ff",
|
|
127
|
+
cursor: "pointer"
|
|
124
128
|
}
|
|
125
129
|
}, /*#__PURE__*/React.createElement("span", {
|
|
126
130
|
onClick: handleQueryLogistics
|
|
127
|
-
}, title ===
|
|
131
|
+
}, title === "查轨迹" ? title : /*#__PURE__*/React.createElement(CopyText, {
|
|
128
132
|
text: title,
|
|
129
133
|
style: {
|
|
130
|
-
color:
|
|
134
|
+
color: "#1890ff"
|
|
131
135
|
}
|
|
132
136
|
}))), /*#__PURE__*/React.createElement(Modal, {
|
|
133
137
|
width: modelWidth,
|
package/dist/esm/factory.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ReissueLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicPicturePro, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, SubForm, CommonDataTime, TradeId, ShopName, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, FlowMarkSelect, FlowTag, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, PrevSubmitter, FlowCreator, Handler, CompletedUser, LogisticsInterception, LogisticsMoreInterception, LogisticsTrajectory, LogisticsMoreTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, WdtGoods, WdtReturn, WdtExchange, CommonInput, PaymentVoucherCode, Label, WdtReissue, GyReissue, AfterSalesOrderId, BsE3Goods, PublicGoods, PublicReissueGoods, PublicExchange, GyGoods, BsE3Reissue, MemberLevel, GyReturn, AsyncSelect, WdtShopSelect, KmVideo, BasicTypeInput, SkxIdInputSelect, SkxGoods, BasicSelectOption, OrderSubForm, FlowOverallStatusSelect } from "./index";
|
|
2
2
|
import { PickOption } from "./type";
|
|
3
|
-
export declare const factory: (type: string, options: PickOption) => BsLogistics | BsSystemOrder | CommonMultiStatus | JstSendGood |
|
|
3
|
+
export declare const factory: (type: string, options: PickOption) => BsLogistics | BsSystemOrder | CommonMultiStatus | JstSendGood | MsgStatus | PublicGoods | PublicReissueGoods | BasicInput | BasicTypeInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicSelectOption | BasicRadio | BasicTextArea | BasicPicture | BasicPicturePro | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | SubForm | CommonDataTime | TradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | ReissueLogistics | JstItemSelect | JstSupply | BsGoods | BsE3Goods | PublicExchange | BsE3Reissue | BsExchange | BsReissue | BsReturn | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsMoreInterception | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | StatusSelect | Calculation | CommonSystemOrder | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting | NodeInput | FlowWorkOrderStatus | WdtGoods | WdtReissue | WdtReturn | WdtExchange | WdtShopSelect | KmVideo | CommonInput | PaymentVoucherCode | Label | MemberLevel | AfterSalesOrderId | GyGoods | GyReissue | GyReturn | AsyncSelect | SkxIdInputSelect | SkxGoods | OrderSubForm | FlowOverallStatusSelect;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.4",
|
|
4
4
|
"module": "dist/esm/index.js",
|
|
5
5
|
"typings": "dist/esm/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
]
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@kmkf-fe-packages/basic-components": "2.3.
|
|
24
|
+
"@kmkf-fe-packages/basic-components": "2.3.3",
|
|
25
25
|
"@kmkf-fe-packages/kmkf-utils": "2.3.1",
|
|
26
26
|
"b64-to-blob": "^1.2.19",
|
|
27
27
|
"html2canvas": "^1.4.1",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"publishConfig": {
|
|
42
42
|
"access": "public"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "0385ac413368865763ea27a4289227b4bfc10300",
|
|
45
45
|
"gitHooks": {
|
|
46
46
|
"pre-commit": "lint-staged"
|
|
47
47
|
}
|