@kmkf-fe-packages/services-components 0.29.1-rc.3 → 0.29.1-rc.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.
@@ -11,7 +11,6 @@ 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";
15
14
  var QueryLogisticsTrack = function QueryLogisticsTrack(_ref) {
16
15
  var _ref$title = _ref.title,
17
16
  title = _ref$title === void 0 ? '查轨迹' : _ref$title,
@@ -124,9 +123,7 @@ var QueryLogisticsTrack = function QueryLogisticsTrack(_ref) {
124
123
  }
125
124
  }, /*#__PURE__*/React.createElement("span", {
126
125
  onClick: handleQueryLogistics
127
- }, /*#__PURE__*/React.createElement(CopyText, {
128
- text: title
129
- }))), /*#__PURE__*/React.createElement(Modal, {
126
+ }, title)), /*#__PURE__*/React.createElement(Modal, {
130
127
  width: modelWidth,
131
128
  title: "\u7269\u6D41\u8F68\u8FF9",
132
129
  footer: false,
@@ -42,7 +42,9 @@ var CommonTradeId = /*#__PURE__*/_createClass(function CommonTradeId(options) {
42
42
  return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
43
43
  id: _this.id,
44
44
  label: _this.name,
45
- value: record === null || record === void 0 ? void 0 : record[_this.id]
45
+ value: /*#__PURE__*/React.createElement(CopyText, {
46
+ text: record === null || record === void 0 ? void 0 : record[_this.id]
47
+ })
46
48
  }) : null;
47
49
  });
48
50
  _defineProperty(this, "renderPc", function (value, record) {
@@ -33,7 +33,9 @@ var ExpressCode = /*#__PURE__*/_createClass(function ExpressCode(options) {
33
33
  return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
34
34
  id: _this.id,
35
35
  label: _this.name,
36
- value: record === null || record === void 0 ? void 0 : record[_this.id]
36
+ value: /*#__PURE__*/React.createElement(CopyText, {
37
+ text: record === null || record === void 0 ? void 0 : record[_this.id]
38
+ })
37
39
  }) : null;
38
40
  });
39
41
  _defineProperty(this, "renderPc", function (value, record) {
@@ -23,6 +23,7 @@ import InterceptCode from "./interceptCode";
23
23
  import Express from "./interceptCompany";
24
24
  import ColumnHeader from "./columnHeader";
25
25
  import QueryLogisticsTrack from "../../commonComponents/QueryLogisticsTrack";
26
+ import CopyText from "../../commonComponents/CopyText";
26
27
  var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
27
28
  var _this = this,
28
29
  _this$componentConfig3;
@@ -61,7 +62,9 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
61
62
  var addressText = (_ref = item.interceptAddress || []) === null || _ref === void 0 ? void 0 : _ref.map(function (suffix) {
62
63
  return _this.addressDateInstance.getNameByCode(suffix);
63
64
  }).join('');
64
- 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", item.interceptCode) : 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, {
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
+ 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, ' ', 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, {
65
68
  modelWidth: 500,
66
69
  interceptCompany: item.interceptCompany,
67
70
  interceptCode: item.interceptCode,
@@ -32,7 +32,9 @@ var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
32
32
  return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
33
33
  id: _this.id,
34
34
  label: _this.name,
35
- value: record === null || record === void 0 ? void 0 : record[_this.id]
35
+ value: /*#__PURE__*/React.createElement(CopyText, {
36
+ text: record === null || record === void 0 ? void 0 : record["".concat(_this.id)]
37
+ })
36
38
  }) : null;
37
39
  });
38
40
  _defineProperty(this, "renderPc", function (value, record) {
@@ -34,7 +34,9 @@ var ETradeId = /*#__PURE__*/_createClass(function ETradeId(options) {
34
34
  return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
35
35
  id: _this.id,
36
36
  label: _this.name,
37
- value: record === null || record === void 0 ? void 0 : record[_this.id]
37
+ value: /*#__PURE__*/React.createElement(CopyText, {
38
+ text: record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_tradeId")]
39
+ })
38
40
  }) : null;
39
41
  });
40
42
  _defineProperty(this, "renderPc", function (value, record) {
@@ -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) => ActualPayment | BasicAddress | AliPay | BsExchange | BsGoods | BsLogistics | BsPosting | BsReissue | BsReturn | BsSystemOrder | BuyerNick | Calculation | BasicCascader | BasicCheckbox | CommonDataTime | CommonInput | CommonMultiStatus | CommonSystemOrder | CompletedUser | BasicDataTime | ItemEnCode | ItemId | ItemSelect | BasicInput | BasicSelect | BasicRadio | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | TradeId | ShopName | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ERemark | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | JstLogistics | JstItemSelect | JstSendGood | JstSupply | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsMoreInterception | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | FlowWorkOrderId | StatusSelect | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | NodeInput | FlowWorkOrderStatus | MsgStatus | PaymentVoucherCode;
3
+ export declare const factory: (type: string, options: PickOption) => LogisticsInterception | LogisticsMoreInterception | TradeId | BasicInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicRadio | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | CommonDataTime | 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 | LogisticsTrajectory | LogisticsMoreTrajectory | 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",
3
+ "version": "0.29.1-rc.4",
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": "d76f8eddce5a5c4226b7bb39cfad0fe7ef6901e7",
40
+ "gitHead": "ab1a9839447f2a55bed24fc0f92880616f574907",
41
41
  "gitHooks": {
42
42
  "pre-commit": "lint-staged"
43
43
  }