@kmkf-fe-packages/services-components 0.29.1-rc.4 → 0.29.1-rc.6
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 +1 -0
- package/dist/esm/commonComponents/CopyText/index.js +4 -2
- package/dist/esm/commonComponents/QueryLogisticsTrack/index.js +7 -1
- package/dist/esm/components/Common/index.js +2 -2
- package/dist/esm/components/LogisticsMoreTrajectory/index.js +7 -1
- package/dist/esm/factory.d.ts +1 -1
- package/package.json +2 -2
|
@@ -3,10 +3,12 @@ import { Typography } from 'antd';
|
|
|
3
3
|
var Paragraph = Typography.Paragraph;
|
|
4
4
|
export default (function (props) {
|
|
5
5
|
var text = props.text,
|
|
6
|
-
showText = props.showText
|
|
6
|
+
showText = props.showText,
|
|
7
|
+
style = props.style;
|
|
7
8
|
return /*#__PURE__*/React.createElement(Paragraph, {
|
|
8
9
|
copyable: {
|
|
9
10
|
text: text
|
|
10
|
-
}
|
|
11
|
+
},
|
|
12
|
+
style: style
|
|
11
13
|
}, showText || text);
|
|
12
14
|
});
|
|
@@ -11,6 +11,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
11
11
|
import React, { useState } from 'react';
|
|
12
12
|
import { Modal, Timeline, message } from 'antd';
|
|
13
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
17
|
title = _ref$title === void 0 ? '查轨迹' : _ref$title,
|
|
@@ -123,7 +124,12 @@ var QueryLogisticsTrack = function QueryLogisticsTrack(_ref) {
|
|
|
123
124
|
}
|
|
124
125
|
}, /*#__PURE__*/React.createElement("span", {
|
|
125
126
|
onClick: handleQueryLogistics
|
|
126
|
-
}, title
|
|
127
|
+
}, title === '查轨迹' ? title : /*#__PURE__*/React.createElement(CopyText, {
|
|
128
|
+
text: title,
|
|
129
|
+
style: {
|
|
130
|
+
color: '#1890ff'
|
|
131
|
+
}
|
|
132
|
+
}))), /*#__PURE__*/React.createElement(Modal, {
|
|
127
133
|
width: modelWidth,
|
|
128
134
|
title: "\u7269\u6D41\u8F68\u8FF9",
|
|
129
135
|
footer: false,
|
|
@@ -272,9 +272,9 @@ export var JstGoodImage = function JstGoodImage(_ref6) {
|
|
|
272
272
|
}
|
|
273
273
|
}, "\u5305\u88F9".concat(index + 1), ":")), type === 1 ? /*#__PURE__*/React.createElement("span", null, company && item.logisticsCode ? /*#__PURE__*/React.createElement(React.Fragment, null, company, "/", /*#__PURE__*/React.createElement(CopyText, {
|
|
274
274
|
text: item.logisticsCode
|
|
275
|
-
})) : company ? company : /*#__PURE__*/React.createElement(CopyText, {
|
|
275
|
+
})) : company ? company : item.logisticsCode ? /*#__PURE__*/React.createElement(CopyText, {
|
|
276
276
|
text: item.logisticsCode
|
|
277
|
-
})) : null, type === 2 ? /*#__PURE__*/React.createElement("span", null, item.supplyName && item.supplyId ? [item.supplyId, item.supplyName].join('/') : item.supplyId ? item.supplyId : item.supplyName) : null, type === 3 ? /*#__PURE__*/React.createElement("span", null, item.sendName && item.sendId ? [item.sendId, item.sendName].join('/') : item.sendId ? item.sendId : item.sendName) : null, type === 4 ? /*#__PURE__*/React.createElement("span", null, (item === null || item === void 0 ? void 0 : item.deliveryNo) || '') : null));
|
|
277
|
+
}) : null) : null, type === 2 ? /*#__PURE__*/React.createElement("span", null, item.supplyName && item.supplyId ? [item.supplyId, item.supplyName].join('/') : item.supplyId ? item.supplyId : item.supplyName) : null, type === 3 ? /*#__PURE__*/React.createElement("span", null, item.sendName && item.sendId ? [item.sendId, item.sendName].join('/') : item.sendId ? item.sendId : item.sendName) : null, type === 4 ? /*#__PURE__*/React.createElement("span", null, (item === null || item === void 0 ? void 0 : item.deliveryNo) || '') : null));
|
|
278
278
|
}) : null;
|
|
279
279
|
};
|
|
280
280
|
export var BsExpressRender = function BsExpressRender(_ref7) {
|
|
@@ -20,6 +20,7 @@ import QueryLogisticsTrack from "../../commonComponents/QueryLogisticsTrack";
|
|
|
20
20
|
import GetFormItem from "../GetFormItem";
|
|
21
21
|
import ItemView from "../../commonComponents/ItemView";
|
|
22
22
|
import { isNull, ExpressInterceptData } from "@kmkf-fe-packages/kmkf-utils";
|
|
23
|
+
import CopyText from "../../commonComponents/CopyText";
|
|
23
24
|
var LogisticsMoreTrajectory = /*#__PURE__*/_createClass(function LogisticsMoreTrajectory(options) {
|
|
24
25
|
var _this = this,
|
|
25
26
|
_this$componentConfig3;
|
|
@@ -60,7 +61,12 @@ var LogisticsMoreTrajectory = /*#__PURE__*/_createClass(function LogisticsMoreTr
|
|
|
60
61
|
id: _this.id,
|
|
61
62
|
label: _this.name,
|
|
62
63
|
value: record === null || record === void 0 ? void 0 : record[_this.id].map(function (item, index) {
|
|
63
|
-
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
|
+
text: item.trajectoryCode,
|
|
66
|
+
style: {
|
|
67
|
+
display: 'inline-block'
|
|
68
|
+
}
|
|
69
|
+
}), "/", item.trajectorySnapshot, "/", /*#__PURE__*/React.createElement("span", {
|
|
64
70
|
style: {
|
|
65
71
|
display: 'inline-block'
|
|
66
72
|
}
|
package/dist/esm/factory.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { JstLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, 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, CommonInput, PaymentVoucherCode } from "./index";
|
|
2
2
|
import { PickOption } from "./type";
|
|
3
|
-
export declare const factory: (type: string, options: PickOption) => LogisticsInterception |
|
|
3
|
+
export declare const factory: (type: string, options: PickOption) => LogisticsInterception | LogisticsMoreTrajectory | BasicInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicRadio | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | CommonDataTime | TradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | JstLogistics | JstItemSelect | JstSendGood | JstSupply | BsSystemOrder | BsGoods | BsExchange | BsReissue | BsReturn | BsLogistics | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsMoreInterception | LogisticsTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | StatusSelect | Calculation | CommonSystemOrder | CommonMultiStatus | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting | NodeInput | FlowWorkOrderStatus | MsgStatus | CommonInput | PaymentVoucherCode;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "0.29.1-rc.
|
|
3
|
+
"version": "0.29.1-rc.6",
|
|
4
4
|
"module": "dist/esm/index.js",
|
|
5
5
|
"typings": "dist/esm/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"publishConfig": {
|
|
38
38
|
"access": "public"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "3226f6470d68ed50fc6c3a6a3bf6aaea7ab6c810",
|
|
41
41
|
"gitHooks": {
|
|
42
42
|
"pre-commit": "lint-staged"
|
|
43
43
|
}
|