@kmkf-fe-packages/services-components 0.29.1-rc.0 → 0.29.1-rc.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/commonComponents/CopyText/index.d.ts +6 -0
- package/dist/esm/commonComponents/CopyText/index.js +12 -0
- package/dist/esm/commonComponents/PlatBuyer/index.d.ts +1 -1
- package/dist/esm/commonComponents/PlatBuyer/index.js +4 -17
- package/dist/esm/commonComponents/QueryLogisticsTrack/index.d.ts +1 -1
- package/dist/esm/commonComponents/QueryLogisticsTrack/index.js +18 -15
- package/dist/esm/components/Common/index.d.ts +1 -1
- package/dist/esm/components/Common/index.js +182 -175
- package/dist/esm/components/CommonTradeId/index.d.ts +5 -6
- package/dist/esm/components/CommonTradeId/index.js +12 -25
- package/dist/esm/components/ExpressCode/index.d.ts +2 -2
- package/dist/esm/components/ExpressCode/index.js +6 -4
- package/dist/esm/components/FlowWorkOrderId/index.d.ts +2 -3
- package/dist/esm/components/FlowWorkOrderId/index.js +4 -18
- package/dist/esm/components/LogisticsMoreInterception/index.d.ts +13 -13
- package/dist/esm/components/LogisticsMoreInterception/index.js +14 -14
- package/dist/esm/components/LogisticsMoreInterception/{interceptItem.d.ts → interceptCode.d.ts} +2 -2
- package/dist/esm/components/LogisticsMoreInterception/{interceptItem.js → interceptCode.js} +7 -4
- package/dist/esm/components/Payment/PaymentTid.d.ts +1 -2
- package/dist/esm/components/Payment/PaymentTid.js +4 -18
- package/dist/esm/components/TradeId/index.d.ts +0 -1
- package/dist/esm/components/TradeId/index.js +4 -18
- package/dist/esm/components/WorkOrderId/index.d.ts +2 -3
- package/dist/esm/components/WorkOrderId/index.js +4 -18
- package/dist/esm/factory.d.ts +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Typography } from 'antd';
|
|
3
|
+
var Paragraph = Typography.Paragraph;
|
|
4
|
+
export default (function (props) {
|
|
5
|
+
var text = props.text,
|
|
6
|
+
showText = props.showText;
|
|
7
|
+
return /*#__PURE__*/React.createElement(Paragraph, {
|
|
8
|
+
copyable: {
|
|
9
|
+
text: text
|
|
10
|
+
}
|
|
11
|
+
}, showText || text);
|
|
12
|
+
});
|
|
@@ -6,5 +6,5 @@ declare type PlatBuyerProp = {
|
|
|
6
6
|
shopList: any[];
|
|
7
7
|
tbAppKey?: string;
|
|
8
8
|
};
|
|
9
|
-
declare const PlatBuyer: ({ shopId, buyerNick, buyerOpenUid, shopList, tbAppKey }: PlatBuyerProp) => React.JSX.Element;
|
|
9
|
+
declare const PlatBuyer: ({ shopId, buyerNick, buyerOpenUid, shopList, tbAppKey, }: PlatBuyerProp) => React.JSX.Element;
|
|
10
10
|
export default PlatBuyer;
|
|
@@ -5,11 +5,9 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
5
5
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
6
6
|
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); }
|
|
7
7
|
import React, { useMemo } from 'react';
|
|
8
|
-
import { CopyOutlined } from '@ant-design/icons';
|
|
9
|
-
import { message } from 'antd';
|
|
10
|
-
import copy from 'copy-to-clipboard';
|
|
11
8
|
import { PlatData } from '@kmkf-fe-packages/kmkf-utils';
|
|
12
9
|
import Wangwang from "../Wangwang";
|
|
10
|
+
import CopyText from "../CopyText";
|
|
13
11
|
var PlatBuyer = function PlatBuyer(_ref) {
|
|
14
12
|
var _platInfo$shopId;
|
|
15
13
|
var shopId = _ref.shopId,
|
|
@@ -18,10 +16,6 @@ var PlatBuyer = function PlatBuyer(_ref) {
|
|
|
18
16
|
shopList = _ref.shopList,
|
|
19
17
|
tbAppKey = _ref.tbAppKey;
|
|
20
18
|
var platList = PlatData.getInstance().getPlatData();
|
|
21
|
-
var copyHandle = function copyHandle(text) {
|
|
22
|
-
copy(text);
|
|
23
|
-
message.success('复制成功');
|
|
24
|
-
};
|
|
25
19
|
var platInfo = useMemo(function () {
|
|
26
20
|
var info = {};
|
|
27
21
|
(shopList || []).forEach(function (item) {
|
|
@@ -36,15 +30,8 @@ var PlatBuyer = function PlatBuyer(_ref) {
|
|
|
36
30
|
nick: buyerNick,
|
|
37
31
|
buyerOpenUid: buyerOpenUid,
|
|
38
32
|
tbAppKey: tbAppKey
|
|
39
|
-
})) : /*#__PURE__*/React.createElement(React.Fragment, null,
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
}
|
|
43
|
-
}, /*#__PURE__*/React.createElement("span", {
|
|
44
|
-
style: {
|
|
45
|
-
paddingLeft: '4px',
|
|
46
|
-
cursor: 'pointer'
|
|
47
|
-
}
|
|
48
|
-
}, /*#__PURE__*/React.createElement(CopyOutlined, null))));
|
|
33
|
+
})) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(CopyText, {
|
|
34
|
+
text: buyerNick
|
|
35
|
+
}));
|
|
49
36
|
};
|
|
50
37
|
export default PlatBuyer;
|
|
@@ -8,18 +8,19 @@ 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
|
+
import CopyText from "../CopyText";
|
|
14
15
|
var QueryLogisticsTrack = function QueryLogisticsTrack(_ref) {
|
|
15
16
|
var _ref$title = _ref.title,
|
|
16
|
-
title = _ref$title === void 0 ?
|
|
17
|
+
title = _ref$title === void 0 ? '查轨迹' : _ref$title,
|
|
17
18
|
_ref$modelWidth = _ref.modelWidth,
|
|
18
19
|
modelWidth = _ref$modelWidth === void 0 ? 500 : _ref$modelWidth,
|
|
19
20
|
interceptCompany = _ref.interceptCompany,
|
|
20
21
|
interceptCode = _ref.interceptCode,
|
|
21
22
|
interceptSenderMobile = _ref.interceptSenderMobile;
|
|
22
|
-
var _useState = useState(
|
|
23
|
+
var _useState = useState(''),
|
|
23
24
|
_useState2 = _slicedToArray(_useState, 2),
|
|
24
25
|
inputVal = _useState2[0],
|
|
25
26
|
setInputVal = _useState2[1];
|
|
@@ -35,9 +36,9 @@ var QueryLogisticsTrack = function QueryLogisticsTrack(_ref) {
|
|
|
35
36
|
var list = _ref2.list;
|
|
36
37
|
return /*#__PURE__*/React.createElement("div", {
|
|
37
38
|
style: {
|
|
38
|
-
maxHeight:
|
|
39
|
-
padding:
|
|
40
|
-
overflowY:
|
|
39
|
+
maxHeight: '500px',
|
|
40
|
+
padding: '8px 0',
|
|
41
|
+
overflowY: 'auto'
|
|
41
42
|
}
|
|
42
43
|
}, /*#__PURE__*/React.createElement(Timeline, null, list.map(function (item, index) {
|
|
43
44
|
return /*#__PURE__*/React.createElement(Timeline.Item, {
|
|
@@ -54,7 +55,7 @@ var QueryLogisticsTrack = function QueryLogisticsTrack(_ref) {
|
|
|
54
55
|
_context.next = 2;
|
|
55
56
|
break;
|
|
56
57
|
}
|
|
57
|
-
return _context.abrupt("return", message.error(
|
|
58
|
+
return _context.abrupt("return", message.error('缺少物流公司或物流单号'));
|
|
58
59
|
case 2:
|
|
59
60
|
logisticsTraceSearch();
|
|
60
61
|
//如果是顺丰且没有手机号 要输入手机号
|
|
@@ -89,8 +90,8 @@ var QueryLogisticsTrack = function QueryLogisticsTrack(_ref) {
|
|
|
89
90
|
var logisticsTraceSearch = function logisticsTraceSearch(mobile) {
|
|
90
91
|
try {
|
|
91
92
|
request({
|
|
92
|
-
url:
|
|
93
|
-
method:
|
|
93
|
+
url: '/qy/logistics/logisticsTraceSearch',
|
|
94
|
+
method: 'post',
|
|
94
95
|
data: {
|
|
95
96
|
mailNo: interceptCode,
|
|
96
97
|
cpCode: interceptCompany,
|
|
@@ -117,13 +118,15 @@ var QueryLogisticsTrack = function QueryLogisticsTrack(_ref) {
|
|
|
117
118
|
};
|
|
118
119
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("span", {
|
|
119
120
|
style: {
|
|
120
|
-
margin:
|
|
121
|
-
color:
|
|
122
|
-
cursor:
|
|
121
|
+
margin: '0 8px',
|
|
122
|
+
color: '#1890ff',
|
|
123
|
+
cursor: 'pointer'
|
|
123
124
|
}
|
|
124
125
|
}, /*#__PURE__*/React.createElement("span", {
|
|
125
126
|
onClick: handleQueryLogistics
|
|
126
|
-
},
|
|
127
|
+
}, /*#__PURE__*/React.createElement(CopyText, {
|
|
128
|
+
text: title
|
|
129
|
+
}))), /*#__PURE__*/React.createElement(Modal, {
|
|
127
130
|
width: modelWidth,
|
|
128
131
|
title: "\u7269\u6D41\u8F68\u8FF9",
|
|
129
132
|
footer: false,
|