@kmkf-fe-packages/services-components 0.27.0-rc.2 → 0.27.1-test.0

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.
Files changed (30) hide show
  1. package/README.md +1 -0
  2. package/dist/esm/components/BuyerNick/index.d.ts +3 -3
  3. package/dist/esm/components/BuyerNick/index.js +19 -9
  4. package/dist/esm/components/Common/index.d.ts +0 -1
  5. package/dist/esm/components/Common/index.js +3 -76
  6. package/dist/esm/components/LogisticsMoreTrajectory/index.d.ts +0 -6
  7. package/dist/esm/components/LogisticsMoreTrajectory/index.js +3 -21
  8. package/dist/esm/components/LogisticsTrajectory/index.d.ts +0 -9
  9. package/dist/esm/components/LogisticsTrajectory/index.js +4 -25
  10. package/dist/esm/components/Payment/PaymentStatus.d.ts +4 -4
  11. package/dist/esm/components/Payment/PaymentStatus.js +30 -30
  12. package/dist/esm/components/Select/index.d.ts +5 -5
  13. package/dist/esm/components/Select/index.js +14 -22
  14. package/dist/esm/factory.d.ts +2 -2
  15. package/dist/esm/factory.js +1 -9
  16. package/dist/esm/index.d.ts +0 -2
  17. package/dist/esm/index.js +0 -2
  18. package/dist/esm/service/api.d.ts +0 -1
  19. package/dist/esm/service/api.js +0 -8
  20. package/package.json +4 -4
  21. package/dist/esm/components/CommonInput/index.d.ts +0 -34
  22. package/dist/esm/components/CommonInput/index.js +0 -105
  23. package/dist/esm/components/LogisticsTrajectory/trajectoryLastLogisticsInfo.d.ts +0 -27
  24. package/dist/esm/components/LogisticsTrajectory/trajectoryLastLogisticsInfo.js +0 -71
  25. package/dist/esm/components/LogisticsTrajectory/trajectoryLastUpdateTime.d.ts +0 -27
  26. package/dist/esm/components/LogisticsTrajectory/trajectoryLastUpdateTime.js +0 -71
  27. package/dist/esm/components/LogisticsTrajectory/trajectoryStatus.d.ts +0 -27
  28. package/dist/esm/components/LogisticsTrajectory/trajectoryStatus.js +0 -71
  29. package/dist/esm/components/PaymentVoucherCode/index.d.ts +0 -33
  30. package/dist/esm/components/PaymentVoucherCode/index.js +0 -108
@@ -6,23 +6,15 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
6
6
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
7
7
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
8
8
  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); }
9
- import React from "react";
10
- import { ApaasSelect } from "@kmkf-fe-packages/basic-components";
9
+ import React from 'react';
10
+ import { ApaasSelect } from '@kmkf-fe-packages/basic-components';
11
11
  import GetFormItem from "../GetFormItem";
12
12
  import ItemView from "../../commonComponents/ItemView";
13
- import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
13
+ import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
14
14
  import { SYMBOL } from "../../constant";
15
15
  var typeMap = {
16
- BUYER_MESSAGE_NOTICE: {
17
- key: "buyerMessageNotice"
18
- },
19
- SELECT: {
20
- key: "select"
21
- },
22
- NEW_PAYMENT_STATUS: {
23
- key: "newPaymentStatus",
24
- placeholder: "自动获取无需填写"
25
- }
16
+ BUYER_MESSAGE_NOTICE: 'buyerMessageNotice',
17
+ SELECT: 'select'
26
18
  };
27
19
  var BasicSelect = /*#__PURE__*/_createClass(function BasicSelect(options) {
28
20
  var _this = this,
@@ -41,7 +33,7 @@ var BasicSelect = /*#__PURE__*/_createClass(function BasicSelect(options) {
41
33
  _defineProperty(this, "dataType", void 0);
42
34
  _defineProperty(this, "options", void 0);
43
35
  _defineProperty(this, "getKeyByComponentType", function (type) {
44
- return typeMap[type].key || "";
36
+ return typeMap[type] || '';
45
37
  });
46
38
  _defineProperty(this, "editRender", function (p) {
47
39
  var _this$componentConfig, _this$componentConfig2;
@@ -53,7 +45,7 @@ var BasicSelect = /*#__PURE__*/_createClass(function BasicSelect(options) {
53
45
  display: p === null || p === void 0 ? void 0 : p.display,
54
46
  required: (_this$componentConfig = (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.required) !== null && _this$componentConfig !== void 0 ? _this$componentConfig : false,
55
47
  component: /*#__PURE__*/React.createElement(ApaasSelect, _extends({}, _this.componentConfig, {
56
- placeholder: typeMap[_this.type].placeholder || "\u8BF7\u8F93\u5165".concat(_this.name),
48
+ placeholder: "\u8BF7\u8F93\u5165".concat(_this.name),
57
49
  showSearch: true,
58
50
  onChange: p === null || p === void 0 ? void 0 : p.onChange
59
51
  }))
@@ -63,27 +55,27 @@ var BasicSelect = /*#__PURE__*/_createClass(function BasicSelect(options) {
63
55
  return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
64
56
  id: _this.id,
65
57
  label: _this.name,
66
- value: (record === null || record === void 0 ? void 0 : record[_this.id]) || ""
58
+ value: (record === null || record === void 0 ? void 0 : record[_this.id]) || ''
67
59
  }) : null;
68
60
  });
69
61
  _defineProperty(this, "renderPc", function (value, record) {
70
62
  var _record;
71
63
  var type = _this.type;
72
- return /*#__PURE__*/React.createElement("span", null, (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(typeMap[type].key)]) !== null && _record !== void 0 ? _record : "--");
64
+ return /*#__PURE__*/React.createElement("span", null, (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(typeMap[type])]) !== null && _record !== void 0 ? _record : '--');
73
65
  });
74
66
  _defineProperty(this, "renderLog", function (r) {
75
67
  var type = _this.type;
76
- if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat(typeMap[type].key)])) return null;
68
+ if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat(typeMap[type])])) return null;
77
69
  return _this.renderPc(undefined, r);
78
70
  });
79
71
  _defineProperty(this, "getComponentValue", function (r) {
80
72
  var type = _this.type;
81
- return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat(typeMap[type].key)];
73
+ return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat(typeMap[type])];
82
74
  });
83
75
  _defineProperty(this, "renderExport", function (value, record) {
84
76
  var _record2;
85
77
  var type = _this.type;
86
- return (_record2 = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(typeMap[type].key)]) !== null && _record2 !== void 0 ? _record2 : "--";
78
+ return (_record2 = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(typeMap[type])]) !== null && _record2 !== void 0 ? _record2 : '--';
87
79
  });
88
80
  _defineProperty(this, "filterConfig", function (item) {
89
81
  var _item$config;
@@ -95,7 +87,7 @@ var BasicSelect = /*#__PURE__*/_createClass(function BasicSelect(options) {
95
87
  // 过滤组件id
96
88
  name: item.name,
97
89
  // 过滤组件名称
98
- filterComponentType: "MultipleSelect",
90
+ filterComponentType: 'MultipleSelect',
99
91
  props: {
100
92
  options: (item === null || item === void 0 ? void 0 : (_item$config = item.config) === null || _item$config === void 0 ? void 0 : _item$config.options) || []
101
93
  },
@@ -116,7 +108,7 @@ var BasicSelect = /*#__PURE__*/_createClass(function BasicSelect(options) {
116
108
  this.isCombinationComponent = false;
117
109
  this.canSort = true;
118
110
  this.children = [];
119
- this.dataType = "string";
111
+ this.dataType = 'string';
120
112
  this.options = ((_this$componentConfig3 = this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.options) || [];
121
113
  });
122
114
  export default BasicSelect;
@@ -1,3 +1,3 @@
1
- import { JstLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, CommonDataTime, TradeId, ShopName, ErpTradeId, 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, CommonInput, PaymentVoucherCode } from "./index";
1
+ import { JstLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, CommonDataTime, TradeId, ShopName, ErpTradeId, 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 } 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 | CommonInput | CommonMultiStatus | CommonSystemOrder | CompletedUser | BasicDataTime | ItemEnCode | ItemId | ItemSelect | ErpTradeId | BasicFile | FlowMarkSelect | FlowStatusSelect | FlowTag | FlowWorkOrderId | FlowWorkOrderStatus | BasicGrade | Handler | HandlerDeadLine | BasicInput | JstItemSelect | JstLogistics | JstSendGood | JstSupply | Logistics | LogisticsInterception | LogisticsMoreInterception | LogisticsMoreTrajectory | LogisticsTrajectory | MsgStatus | BasicMultSelect | NodeDeadLine | NodeInput | Ordinary | Payment | PaymentVoucherCode | BasicPicture | PlatForm | BasicPosting | BasicRadio | BasicRate | ReceiverAddress | ReceiverMobile | ReceiverName | ERemark | ReturnLogistics | BasicSelect | ShopInput | ShopName | StatusSelect | SystemOrderNo | BasicTextArea | ThirdItemSelect | TradeDateTime | TradeId | WdtGoods | WlnGoods | WorkOrderId | CommonDataTime | TemplateSelect | Submitter | PrevSubmitter | FlowCreator | NodeStayDuration;
3
+ export declare const factory: (type: string, options: PickOption) => CompletedUser | FlowMarkSelect | FlowStatusSelect | FlowTag | FlowWorkOrderStatus | Handler | HandlerDeadLine | LogisticsMoreInterception | LogisticsMoreTrajectory | BasicMultSelect | NodeDeadLine | NodeInput | PlatForm | ShopInput | BasicInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicRadio | BasicTextArea | BasicPicture | BasicGrade | BasicRate | BasicFile | BasicPosting | CommonDataTime | TradeId | ErpTradeId | 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 | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsTrajectory | Submitter | PrevSubmitter | FlowCreator | FlowWorkOrderId | StatusSelect | Calculation | CommonSystemOrder | CommonMultiStatus | NodeStayDuration | WlnGoods | BsPosting | MsgStatus | WdtGoods;
@@ -1,6 +1,6 @@
1
1
  import { JstLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, CommonDataTime, TradeId, ShopName, ErpTradeId, 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,
2
2
  // CommonTradeId,
3
- CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, WdtGoods, CommonInput, PaymentVoucherCode } from "./index";
3
+ CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, WdtGoods } from "./index";
4
4
  export var factory = function factory(type, options) {
5
5
  var _options$componentCon;
6
6
  switch (type) {
@@ -30,7 +30,6 @@ export var factory = function factory(type, options) {
30
30
  return new BasicDataTime(options);
31
31
  case "SELECT":
32
32
  case "BUYER_MESSAGE_NOTICE":
33
- case "NEW_PAYMENT_STATUS":
34
33
  return new BasicSelect(options);
35
34
  case "PICTURE":
36
35
  return new BasicPicture(options);
@@ -188,13 +187,6 @@ export var factory = function factory(type, options) {
188
187
  case "WLN_GOODS":
189
188
  // 万里牛商品
190
189
  return new WlnGoods(options);
191
- case "WDT_GOODS":
192
- // 万里牛商品
193
- return new WdtGoods(options);
194
- case "BUSINESS_ORDER_NO":
195
- return new CommonInput(options);
196
- case "PAYMENT_VOUCHER_CODE":
197
- return new PaymentVoucherCode(options);
198
190
  case "NODE_INPUT":
199
191
  return new NodeInput(options);
200
192
  case "FLOW_WORK_STATUS_SELECT":
@@ -74,8 +74,6 @@ export { default as NodeInput } from './components/NodeInput';
74
74
  export { default as FlowWorkOrderStatus } from './components/FlowWorkOrderStatus';
75
75
  export { default as MsgStatus } from './components/MsgStatus';
76
76
  export { default as WdtGoods } from "./components/WDT/WdtGoods";
77
- export { default as CommonInput } from "./components/CommonInput";
78
- export { default as PaymentVoucherCode } from "./components/PaymentVoucherCode";
79
77
  export { factory } from "./factory";
80
78
  export { default as PlatformAvatar } from "./commonComponents/PlatformAvatar";
81
79
  export { default as SelectMark } from "./commonComponents/SelectMark";
package/dist/esm/index.js CHANGED
@@ -74,8 +74,6 @@ export { default as NodeInput } from "./components/NodeInput";
74
74
  export { default as FlowWorkOrderStatus } from "./components/FlowWorkOrderStatus";
75
75
  export { default as MsgStatus } from "./components/MsgStatus";
76
76
  export { default as WdtGoods } from "./components/WDT/WdtGoods";
77
- export { default as CommonInput } from "./components/CommonInput";
78
- export { default as PaymentVoucherCode } from "./components/PaymentVoucherCode";
79
77
  export { factory } from "./factory";
80
78
  export { default as PlatformAvatar } from "./commonComponents/PlatformAvatar";
81
79
  export { default as SelectMark } from "./commonComponents/SelectMark";
@@ -1,5 +1,4 @@
1
1
  export declare const replaceCheck: (data: any) => Promise<any>;
2
- export declare const getAlipayBillReceipt: (data: any) => Promise<any>;
3
2
  export declare const queryAddressData: () => Promise<void>;
4
3
  export declare const queryBsAddressData: () => Promise<void>;
5
4
  export declare const queryWdtAddressData: () => Promise<void>;
@@ -21,14 +21,6 @@ export var replaceCheck = function replaceCheck(data) {
21
21
  data: data
22
22
  });
23
23
  };
24
- // 获取支付宝电子回单
25
- export var getAlipayBillReceipt = function getAlipayBillReceipt(data) {
26
- return request({
27
- url: '/qy/payment/paymentOrder/getAlipayBillReceipt',
28
- method: 'post',
29
- data: data
30
- });
31
- };
32
24
  export var queryAddressData = function queryAddressData() {
33
25
  return request({
34
26
  url: "/qy/gdfw/template/queryAreas/noLogin",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/services-components",
3
- "version": "0.27.0-rc.2",
3
+ "version": "0.27.1-test.0",
4
4
  "module": "dist/esm/index.js",
5
5
  "typings": "dist/esm/index.d.ts",
6
6
  "files": [
@@ -20,8 +20,8 @@
20
20
  ]
21
21
  },
22
22
  "dependencies": {
23
- "@kmkf-fe-packages/basic-components": "^0.27.0-rc.2",
24
- "@kmkf-fe-packages/kmkf-utils": "^0.27.0-rc.2"
23
+ "@kmkf-fe-packages/basic-components": "^0.27.1-test.0",
24
+ "@kmkf-fe-packages/kmkf-utils": "^0.27.1-test.0"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@typescript-eslint/eslint-plugin": "^5.59.2",
@@ -37,7 +37,7 @@
37
37
  "publishConfig": {
38
38
  "access": "public"
39
39
  },
40
- "gitHead": "d074610e1e1ff2770ba73a62fd580b969d838b09",
40
+ "gitHead": "9be345ba70fe53f1a10f336a6254a60bb74c568a",
41
41
  "gitHooks": {
42
42
  "pre-commit": "lint-staged"
43
43
  }
@@ -1,34 +0,0 @@
1
- import { ComponentInterface, PickOption, Record, ColumnConfig } from "../../type";
2
- import React from "react";
3
- declare class CommonInput implements ComponentInterface {
4
- name: string;
5
- id: string;
6
- sortField: string;
7
- type: string;
8
- rules: any[];
9
- showContains: boolean;
10
- onlyContainsString: boolean;
11
- componentConfig: ComponentInterface["componentConfig"];
12
- effects: ComponentInterface["effects"];
13
- isCombinationComponent: boolean;
14
- formField: string;
15
- canSort: boolean;
16
- children: ComponentInterface[];
17
- dataType: ComponentInterface["dataType"];
18
- options: ComponentInterface["options"];
19
- constructor(options: PickOption);
20
- renderClient: (record: any) => React.JSX.Element | null;
21
- renderPc: (value: unknown, record: Record) => any;
22
- renderLog: (r: Record) => any;
23
- getComponentValue: (r: Record) => any;
24
- renderExport: (value: unknown, record: Record) => any;
25
- editRender: (p: any) => React.JSX.Element;
26
- filterConfig: (item: ColumnConfig) => {
27
- searchDefaultConditions: "like";
28
- type: string;
29
- id: string;
30
- name: string;
31
- filterComponentType: "Input";
32
- };
33
- }
34
- export default CommonInput;
@@ -1,105 +0,0 @@
1
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
3
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
4
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
5
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
6
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
7
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
8
- 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); }
9
- import React from "react";
10
- import { Input } from "antd";
11
- import GetFormItem from "../GetFormItem";
12
- import ItemView from "../../commonComponents/ItemView";
13
- import { isNull } from "@kmkf-fe-packages/kmkf-utils";
14
- import { SYMBOL } from "../../constant";
15
- var INPUT_MAP = {
16
- BUSINESS_ORDER_NO: {
17
- key: "businessOrderNo",
18
- disabled: true,
19
- placeholder: "自动获取无需填写"
20
- }
21
- };
22
- var CommonInput = /*#__PURE__*/_createClass(function CommonInput(options) {
23
- var _this = this;
24
- _classCallCheck(this, CommonInput);
25
- _defineProperty(this, "name", void 0);
26
- _defineProperty(this, "id", void 0);
27
- _defineProperty(this, "sortField", void 0);
28
- _defineProperty(this, "type", void 0);
29
- _defineProperty(this, "rules", void 0);
30
- _defineProperty(this, "showContains", void 0);
31
- _defineProperty(this, "onlyContainsString", void 0);
32
- _defineProperty(this, "componentConfig", void 0);
33
- _defineProperty(this, "effects", void 0);
34
- _defineProperty(this, "isCombinationComponent", void 0);
35
- _defineProperty(this, "formField", void 0);
36
- _defineProperty(this, "canSort", void 0);
37
- _defineProperty(this, "children", void 0);
38
- _defineProperty(this, "dataType", void 0);
39
- _defineProperty(this, "options", void 0);
40
- _defineProperty(this, "renderClient", function (record) {
41
- return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
42
- id: _this.id,
43
- label: _this.name,
44
- value: record === null || record === void 0 ? void 0 : record[_this.id]
45
- }) : null;
46
- });
47
- _defineProperty(this, "renderPc", function (value, record) {
48
- if ((record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(INPUT_MAP[_this.type].key)]) === undefined) {
49
- return /*#__PURE__*/React.createElement(React.Fragment, null, "--");
50
- }
51
- return record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(INPUT_MAP[_this.type].key)];
52
- });
53
- _defineProperty(this, "renderLog", function (r) {
54
- if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat(INPUT_MAP[_this.type].key)])) return null;
55
- return _this.renderPc(undefined, r);
56
- });
57
- _defineProperty(this, "getComponentValue", function (r) {
58
- return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat(INPUT_MAP[_this.type].key)];
59
- });
60
- _defineProperty(this, "renderExport", function (value, record) {
61
- var _record;
62
- return (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(INPUT_MAP[_this.type].key)]) !== null && _record !== void 0 ? _record : "--";
63
- });
64
- _defineProperty(this, "editRender", function (p) {
65
- var _this$componentConfig, _this$componentConfig2;
66
- return /*#__PURE__*/React.createElement(GetFormItem, {
67
- title: _this.name,
68
- name: _this.id,
69
- rules: _this.rules,
70
- hidden: p === null || p === void 0 ? void 0 : p.hidden,
71
- display: p === null || p === void 0 ? void 0 : p.display,
72
- required: (_this$componentConfig = (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.required) !== null && _this$componentConfig !== void 0 ? _this$componentConfig : false,
73
- component: /*#__PURE__*/React.createElement(Input, _extends({}, _this.componentConfig, {
74
- placeholder: INPUT_MAP[_this.type].placeholder || "\u8BF7\u8F93\u5165".concat(_this.name),
75
- disabled: INPUT_MAP[_this.type].disabled
76
- }))
77
- });
78
- });
79
- _defineProperty(this, "filterConfig", function (item) {
80
- return {
81
- searchDefaultConditions: SYMBOL.like,
82
- type: item.type,
83
- id: "".concat(item.id, "_").concat(INPUT_MAP[_this.type].key),
84
- // 过滤组件id
85
- name: item.name,
86
- // 过滤组件名称
87
- filterComponentType: "Input"
88
- };
89
- });
90
- this.name = options.name;
91
- this.id = options.id;
92
- this.sortField = "".concat(options.id, "_").concat(INPUT_MAP[options.type].key);
93
- this.formField = "".concat(options.id, "_").concat(INPUT_MAP[options.type].key);
94
- this.type = options.type;
95
- this.showContains = false;
96
- this.onlyContainsString = true;
97
- this.componentConfig = options.componentConfig;
98
- this.effects = options.effects;
99
- this.rules = [];
100
- this.isCombinationComponent = false;
101
- this.canSort = !!INPUT_MAP[options.type].canSort;
102
- this.children = [];
103
- this.dataType = "string";
104
- });
105
- export default CommonInput;
@@ -1,27 +0,0 @@
1
- import { ComponentInterface, PickOption, ALignType, Record } from "../../type";
2
- import React from "react";
3
- declare class TrajectoryLastLogisticsInfo implements ComponentInterface {
4
- name: string;
5
- parentId: string;
6
- id: string;
7
- sortField: string;
8
- type: string;
9
- rules: any[];
10
- componentConfig: ComponentInterface["componentConfig"];
11
- align: ALignType;
12
- width: number;
13
- isCombinationComponent: boolean;
14
- formField: string;
15
- canSort: boolean;
16
- children: ComponentInterface[];
17
- dataType: ComponentInterface["dataType"];
18
- constructor(options: PickOption);
19
- renderClient: (record: any) => React.JSX.Element | null;
20
- renderPc: (value: unknown, record: Record) => any;
21
- renderLog: (r: Record) => any;
22
- getComponentValue: (r: Record) => any;
23
- renderExport: (value: string, record: Record) => any;
24
- editRender: () => null;
25
- filterConfig: () => never[];
26
- }
27
- export default TrajectoryLastLogisticsInfo;
@@ -1,71 +0,0 @@
1
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
3
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
4
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
5
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
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
- import React from "react";
9
- import ItemView from "../../commonComponents/ItemView";
10
- import { isNull } from "@kmkf-fe-packages/kmkf-utils";
11
- var TrajectoryLastLogisticsInfo = /*#__PURE__*/_createClass(function TrajectoryLastLogisticsInfo(options) {
12
- var _this = this;
13
- _classCallCheck(this, TrajectoryLastLogisticsInfo);
14
- _defineProperty(this, "name", void 0);
15
- _defineProperty(this, "parentId", void 0);
16
- _defineProperty(this, "id", void 0);
17
- _defineProperty(this, "sortField", void 0);
18
- _defineProperty(this, "type", void 0);
19
- _defineProperty(this, "rules", void 0);
20
- _defineProperty(this, "componentConfig", void 0);
21
- _defineProperty(this, "align", void 0);
22
- _defineProperty(this, "width", void 0);
23
- _defineProperty(this, "isCombinationComponent", void 0);
24
- _defineProperty(this, "formField", void 0);
25
- _defineProperty(this, "canSort", void 0);
26
- _defineProperty(this, "children", void 0);
27
- _defineProperty(this, "dataType", void 0);
28
- _defineProperty(this, "renderClient", function (record) {
29
- return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
30
- id: _this.id,
31
- label: _this.name,
32
- value: record === null || record === void 0 ? void 0 : record[_this.id]
33
- }) : null;
34
- });
35
- _defineProperty(this, "renderPc", function (value, record) {
36
- var _record$_this$id;
37
- return (_record$_this$id = record === null || record === void 0 ? void 0 : record[_this.id]) !== null && _record$_this$id !== void 0 ? _record$_this$id : "--";
38
- });
39
- _defineProperty(this, "renderLog", function (r) {
40
- if (isNull(r === null || r === void 0 ? void 0 : r[_this.id])) return null;
41
- return _this.renderPc(undefined, r);
42
- });
43
- _defineProperty(this, "getComponentValue", function (r) {
44
- return r === null || r === void 0 ? void 0 : r[_this.id];
45
- });
46
- _defineProperty(this, "renderExport", function (value, record) {
47
- var _record$_this$id2;
48
- return (_record$_this$id2 = record === null || record === void 0 ? void 0 : record[_this.id]) !== null && _record$_this$id2 !== void 0 ? _record$_this$id2 : "--";
49
- });
50
- _defineProperty(this, "editRender", function () {
51
- return null;
52
- });
53
- _defineProperty(this, "filterConfig", function () {
54
- return [];
55
- });
56
- this.name = options.name;
57
- this.parentId = options.id;
58
- this.id = "".concat(options.id);
59
- this.sortField = "".concat(options.id);
60
- this.formField = "".concat(options.id);
61
- this.type = options.type;
62
- this.componentConfig = options.componentConfig;
63
- this.rules = [];
64
- this.align = "left";
65
- this.width = 200;
66
- this.isCombinationComponent = false;
67
- this.canSort = false;
68
- this.dataType = "string";
69
- this.children = [];
70
- });
71
- export default TrajectoryLastLogisticsInfo;
@@ -1,27 +0,0 @@
1
- import { ComponentInterface, PickOption, ALignType, Record } from "../../type";
2
- import React from "react";
3
- declare class TrajectoryLastUpdateTime implements ComponentInterface {
4
- name: string;
5
- parentId: string;
6
- id: string;
7
- sortField: string;
8
- type: string;
9
- rules: any[];
10
- componentConfig: ComponentInterface["componentConfig"];
11
- align: ALignType;
12
- width: number;
13
- isCombinationComponent: boolean;
14
- formField: string;
15
- canSort: boolean;
16
- children: ComponentInterface[];
17
- dataType: ComponentInterface["dataType"];
18
- constructor(options: PickOption);
19
- renderClient: (record: any) => React.JSX.Element | null;
20
- renderPc: (value: unknown, record: Record) => any;
21
- renderLog: (r: Record) => any;
22
- getComponentValue: (r: Record) => any;
23
- renderExport: (value: string, record: Record) => any;
24
- editRender: () => null;
25
- filterConfig: () => never[];
26
- }
27
- export default TrajectoryLastUpdateTime;
@@ -1,71 +0,0 @@
1
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
3
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
4
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
5
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
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
- import React from "react";
9
- import ItemView from "../../commonComponents/ItemView";
10
- import { isNull } from "@kmkf-fe-packages/kmkf-utils";
11
- var TrajectoryLastUpdateTime = /*#__PURE__*/_createClass(function TrajectoryLastUpdateTime(options) {
12
- var _this = this;
13
- _classCallCheck(this, TrajectoryLastUpdateTime);
14
- _defineProperty(this, "name", void 0);
15
- _defineProperty(this, "parentId", void 0);
16
- _defineProperty(this, "id", void 0);
17
- _defineProperty(this, "sortField", void 0);
18
- _defineProperty(this, "type", void 0);
19
- _defineProperty(this, "rules", void 0);
20
- _defineProperty(this, "componentConfig", void 0);
21
- _defineProperty(this, "align", void 0);
22
- _defineProperty(this, "width", void 0);
23
- _defineProperty(this, "isCombinationComponent", void 0);
24
- _defineProperty(this, "formField", void 0);
25
- _defineProperty(this, "canSort", void 0);
26
- _defineProperty(this, "children", void 0);
27
- _defineProperty(this, "dataType", void 0);
28
- _defineProperty(this, "renderClient", function (record) {
29
- return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
30
- id: _this.id,
31
- label: _this.name,
32
- value: record === null || record === void 0 ? void 0 : record[_this.id]
33
- }) : null;
34
- });
35
- _defineProperty(this, "renderPc", function (value, record) {
36
- var _record$_this$id;
37
- return (_record$_this$id = record === null || record === void 0 ? void 0 : record[_this.id]) !== null && _record$_this$id !== void 0 ? _record$_this$id : "--";
38
- });
39
- _defineProperty(this, "renderLog", function (r) {
40
- if (isNull(r === null || r === void 0 ? void 0 : r[_this.id])) return null;
41
- return _this.renderPc(undefined, r);
42
- });
43
- _defineProperty(this, "getComponentValue", function (r) {
44
- return r === null || r === void 0 ? void 0 : r[_this.id];
45
- });
46
- _defineProperty(this, "renderExport", function (value, record) {
47
- var _record$_this$id2;
48
- return (_record$_this$id2 = record === null || record === void 0 ? void 0 : record[_this.id]) !== null && _record$_this$id2 !== void 0 ? _record$_this$id2 : "--";
49
- });
50
- _defineProperty(this, "editRender", function () {
51
- return null;
52
- });
53
- _defineProperty(this, "filterConfig", function () {
54
- return [];
55
- });
56
- this.name = options.name;
57
- this.parentId = options.id;
58
- this.id = "".concat(options.id);
59
- this.sortField = "".concat(options.id);
60
- this.formField = "".concat(options.id);
61
- this.type = options.type;
62
- this.componentConfig = options.componentConfig;
63
- this.rules = [];
64
- this.align = "left";
65
- this.width = 200;
66
- this.isCombinationComponent = false;
67
- this.canSort = false;
68
- this.dataType = "string";
69
- this.children = [];
70
- });
71
- export default TrajectoryLastUpdateTime;
@@ -1,27 +0,0 @@
1
- import { ComponentInterface, PickOption, ALignType, Record } from "../../type";
2
- import React from "react";
3
- declare class TrajectoryStatus implements ComponentInterface {
4
- name: string;
5
- parentId: string;
6
- id: string;
7
- sortField: string;
8
- type: string;
9
- rules: any[];
10
- componentConfig: ComponentInterface["componentConfig"];
11
- align: ALignType;
12
- width: number;
13
- isCombinationComponent: boolean;
14
- formField: string;
15
- canSort: boolean;
16
- children: ComponentInterface[];
17
- dataType: ComponentInterface["dataType"];
18
- constructor(options: PickOption);
19
- renderClient: (record: any) => React.JSX.Element | null;
20
- renderPc: (value: unknown, record: Record) => any;
21
- renderLog: (r: Record) => any;
22
- getComponentValue: (r: Record) => any;
23
- renderExport: (value: string, record: Record) => any;
24
- editRender: () => null;
25
- filterConfig: () => never[];
26
- }
27
- export default TrajectoryStatus;