@kmkf-fe-packages/services-components 0.28.2-rc.11 → 0.28.2-rc.13

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.
@@ -128,15 +128,16 @@ var LogisticsMoreTrajectory = /*#__PURE__*/_createClass(function LogisticsMoreTr
128
128
  }));
129
129
  this.trajectoryStatus = new TrajectoryStatus(_objectSpread(_objectSpread({}, options), {}, {
130
130
  name: "".concat(this.name, "-\u7269\u6D41\u72B6\u6001"),
131
- id: "".concat(this.id)
131
+ id: "".concat(this.id, "_trajectoryMoreStatus"),
132
+ parentId: "".concat(this.id)
132
133
  }));
133
134
  this.trajectoryLastLogisticsInfo = new TrajectoryLastLogisticsInfo(_objectSpread(_objectSpread({}, options), {}, {
134
135
  name: "".concat(this.name, "-\u6700\u540E\u7269\u6D41\u4FE1\u606F"),
135
- id: "".concat(this.id, "_trajectoryLastLogisticsInfo")
136
+ id: "".concat(this.id, "_trajectoryMoreLastLogisticsInfo")
136
137
  }));
137
138
  this.trajectoryLastUpdateTime = new TrajectoryLastUpdateTime(_objectSpread(_objectSpread({}, options), {}, {
138
139
  name: "".concat(this.name, "-\u6700\u540E\u66F4\u65B0\u65F6\u95F4"),
139
- id: "".concat(this.id, "_trajectoryLastUpdateTime")
140
+ id: "".concat(this.id, "_trajectoryMoreLastUpdateTime")
140
141
  }));
141
142
  this.isCombinationComponent = true;
142
143
  this.canSort = false;
@@ -102,7 +102,8 @@ var LogisticsTrajectory = /*#__PURE__*/_createClass(function LogisticsTrajectory
102
102
  }));
103
103
  this.trajectoryStatus = new TrajectoryStatus(_objectSpread(_objectSpread({}, options), {}, {
104
104
  name: "".concat(this.name, "-\u7269\u6D41\u72B6\u6001"),
105
- id: "".concat(this.id)
105
+ id: "".concat(this.id, "_trajectoryStatus"),
106
+ parentId: "".concat(this.id)
106
107
  }));
107
108
  this.trajectoryLastLogisticsInfo = new TrajectoryLastLogisticsInfo(_objectSpread(_objectSpread({}, options), {}, {
108
109
  name: "".concat(this.name, "-\u6700\u540E\u7269\u6D41\u4FE1\u606F"),
@@ -17,7 +17,9 @@ declare class TrajectoryStatus implements ComponentInterface {
17
17
  children: ComponentInterface[];
18
18
  dataType: ComponentInterface["dataType"];
19
19
  expressInterceptInstance: InstanceType<typeof ExpressInterceptData>;
20
- constructor(options: PickOption);
20
+ constructor(options: PickOption & {
21
+ parentId: string;
22
+ });
21
23
  renderStatus: (record: any, w?: number) => React.JSX.Element;
22
24
  renderClient: (record: any) => React.JSX.Element | null;
23
25
  renderPc: (value: any, record: Record) => React.JSX.Element;
@@ -75,10 +75,10 @@ var TrajectoryStatus = /*#__PURE__*/_createClass(function TrajectoryStatus(optio
75
75
  return [];
76
76
  });
77
77
  this.name = options.name;
78
- this.parentId = "".concat(options.id);
79
- this.id = "".concat(options.id, "_trajectoryStatus");
80
- this.sortField = "".concat(options.id, "_trajectoryStatus");
81
- this.formField = "".concat(options.id, "_trajectoryStatus");
78
+ this.parentId = "".concat(options.parentId);
79
+ this.id = "".concat(options.id);
80
+ this.sortField = "".concat(options.id);
81
+ this.formField = "".concat(options.id);
82
82
  this.type = options.type;
83
83
  this.componentConfig = options.componentConfig;
84
84
  this.rules = [];
@@ -16,7 +16,8 @@ declare class PaymentTid implements ComponentInterface {
16
16
  dataType: ComponentInterface['dataType'];
17
17
  constructor(options: PickOption);
18
18
  renderClient: (record: any) => React.JSX.Element | null;
19
- renderPc: (value: unknown, record: any) => React.JSX.Element;
19
+ copyHandle: (text: string) => void;
20
+ renderPc: (value: unknown, record: Record) => React.JSX.Element;
20
21
  renderLog: (r: Record) => React.JSX.Element | null;
21
22
  getComponentValue: (r: Record) => any;
22
23
  renderExport: (value: string) => string;
@@ -6,10 +6,13 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
6
6
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
7
7
  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); }
8
8
  import React from 'react';
9
+ import { message } from 'antd';
9
10
  import { ApaasInput } from '@kmkf-fe-packages/basic-components';
11
+ import { CopyOutlined } from '@ant-design/icons';
10
12
  import GetFormItem from "../GetFormItem";
11
13
  import ItemView from "../../commonComponents/ItemView";
12
14
  import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
15
+ import copy from 'copy-to-clipboard';
13
16
  import { SYMBOL } from "../../constant";
14
17
  var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
15
18
  var _this = this;
@@ -34,9 +37,29 @@ var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
34
37
  value: record === null || record === void 0 ? void 0 : record[_this.id]
35
38
  }) : null;
36
39
  });
40
+ _defineProperty(this, "copyHandle", function (text) {
41
+ copy(text);
42
+ message.success('复制成功');
43
+ });
37
44
  _defineProperty(this, "renderPc", function (value, record) {
38
- var _record$_this$id;
39
- return /*#__PURE__*/React.createElement("span", null, (_record$_this$id = record === null || record === void 0 ? void 0 : record[_this.id]) !== null && _record$_this$id !== void 0 ? _record$_this$id : '--');
45
+ if ((record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) === undefined) {
46
+ return /*#__PURE__*/React.createElement(React.Fragment, null, "--");
47
+ }
48
+ return /*#__PURE__*/React.createElement("span", {
49
+ onClick: function onClick(e) {
50
+ return e.stopPropagation();
51
+ }
52
+ }, /*#__PURE__*/React.createElement(React.Fragment, null, record === null || record === void 0 ? void 0 : record["".concat(_this.id)], /*#__PURE__*/React.createElement("span", {
53
+ onClick: function onClick(e) {
54
+ _this.copyHandle(record === null || record === void 0 ? void 0 : record["".concat(_this.id)]);
55
+ e.stopPropagation();
56
+ }
57
+ }, /*#__PURE__*/React.createElement("span", {
58
+ style: {
59
+ paddingLeft: '4px',
60
+ cursor: 'pointer'
61
+ }
62
+ }, /*#__PURE__*/React.createElement(CopyOutlined, null)))));
40
63
  });
41
64
  _defineProperty(this, "renderLog", function (r) {
42
65
  if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id)])) return null;
@@ -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) => 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 | LogisticsInterception | LogisticsMoreInterception | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | StatusSelect | Calculation | CommonSystemOrder | CommonMultiStatus | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting | NodeInput | FlowWorkOrderStatus | MsgStatus | CommonInput | PaymentVoucherCode;
3
+ export declare const factory: (type: string, options: PickOption) => LogisticsInterception | LogisticsMoreTrajectory | LogisticsTrajectory | 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 | 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.28.2-rc.11",
3
+ "version": "0.28.2-rc.13",
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": "00de30efe85948f8fe088b29804fc90f7a457067",
40
+ "gitHead": "d15aa27b9703dbeab4c410e619e30cb4cdc71d5f",
41
41
  "gitHooks": {
42
42
  "pre-commit": "lint-staged"
43
43
  }