@kmkf-fe-packages/services-components 0.6.3-alpha.3 → 0.6.3-alpha.30

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 (134) hide show
  1. package/README.md +2 -0
  2. package/dist/esm/commonComponents/ItemView/index.d.ts +1 -1
  3. package/dist/esm/commonComponents/OperationLog/index.d.ts +8 -0
  4. package/dist/esm/commonComponents/OperationLog/index.js +127 -0
  5. package/dist/esm/components/ActualPayment/index.d.ts +4 -2
  6. package/dist/esm/components/ActualPayment/index.js +9 -4
  7. package/dist/esm/components/Address/index.d.ts +3 -2
  8. package/dist/esm/components/Address/index.js +8 -4
  9. package/dist/esm/components/Alipay/index.d.ts +5 -1
  10. package/dist/esm/components/Alipay/index.js +9 -3
  11. package/dist/esm/components/AlipayAccount/index.d.ts +5 -3
  12. package/dist/esm/components/AlipayAccount/index.js +11 -5
  13. package/dist/esm/components/AlipayName/index.d.ts +5 -3
  14. package/dist/esm/components/AlipayName/index.js +11 -5
  15. package/dist/esm/components/BuyerNick/index.d.ts +6 -4
  16. package/dist/esm/components/BuyerNick/index.js +11 -3
  17. package/dist/esm/components/Cascader/index.d.ts +4 -2
  18. package/dist/esm/components/Cascader/index.js +9 -4
  19. package/dist/esm/components/Checkbox/index.d.ts +6 -1
  20. package/dist/esm/components/Checkbox/index.js +22 -7
  21. package/dist/esm/components/CommonDataTime/index.d.ts +3 -1
  22. package/dist/esm/components/CommonDataTime/index.js +8 -4
  23. package/dist/esm/components/CompletedUser/index.d.ts +4 -2
  24. package/dist/esm/components/CompletedUser/index.js +7 -3
  25. package/dist/esm/components/DataTime/index.d.ts +3 -1
  26. package/dist/esm/components/DataTime/index.js +8 -3
  27. package/dist/esm/components/EItemEnCode/index.d.ts +3 -1
  28. package/dist/esm/components/EItemEnCode/index.js +12 -7
  29. package/dist/esm/components/EItemId/index.d.ts +3 -1
  30. package/dist/esm/components/EItemId/index.js +12 -7
  31. package/dist/esm/components/EItemSelect/index.d.ts +2 -1
  32. package/dist/esm/components/EItemSelect/index.js +10 -6
  33. package/dist/esm/components/ErpTradeId/index.d.ts +4 -2
  34. package/dist/esm/components/ErpTradeId/index.js +10 -5
  35. package/dist/esm/components/Express/index.d.ts +5 -3
  36. package/dist/esm/components/Express/index.js +12 -7
  37. package/dist/esm/components/ExpressCode/index.d.ts +5 -3
  38. package/dist/esm/components/ExpressCode/index.js +12 -5
  39. package/dist/esm/components/FlowStatusSelect/index.d.ts +3 -1
  40. package/dist/esm/components/FlowStatusSelect/index.js +11 -3
  41. package/dist/esm/components/Grade/index.d.ts +2 -1
  42. package/dist/esm/components/Grade/index.js +8 -4
  43. package/dist/esm/components/Handler/index.d.ts +4 -4
  44. package/dist/esm/components/Handler/index.js +18 -8
  45. package/dist/esm/components/Input/index.d.ts +3 -1
  46. package/dist/esm/components/Input/index.js +9 -4
  47. package/dist/esm/components/JstItemSelect/index.d.ts +3 -1
  48. package/dist/esm/components/JstItemSelect/index.js +29 -24
  49. package/dist/esm/components/JstLogistics/index.d.ts +4 -1
  50. package/dist/esm/components/JstLogistics/index.js +19 -9
  51. package/dist/esm/components/JstSendGood/index.d.ts +3 -1
  52. package/dist/esm/components/JstSendGood/index.js +19 -9
  53. package/dist/esm/components/JstSupply/index.d.ts +3 -1
  54. package/dist/esm/components/JstSupply/index.js +19 -9
  55. package/dist/esm/components/Logistics/index.d.ts +5 -1
  56. package/dist/esm/components/Logistics/index.js +9 -3
  57. package/dist/esm/components/LogisticsInterception/InterceptAddress.d.ts +13 -5
  58. package/dist/esm/components/LogisticsInterception/InterceptAddress.js +58 -26
  59. package/dist/esm/components/LogisticsInterception/InterceptStatus.d.ts +36 -0
  60. package/dist/esm/components/LogisticsInterception/InterceptStatus.js +84 -0
  61. package/dist/esm/components/LogisticsInterception/InterceptType.d.ts +19 -7
  62. package/dist/esm/components/LogisticsInterception/InterceptType.js +40 -18
  63. package/dist/esm/components/LogisticsInterception/index.d.ts +51 -8
  64. package/dist/esm/components/LogisticsInterception/index.js +45 -17
  65. package/dist/esm/components/MultSelect/index.d.ts +3 -2
  66. package/dist/esm/components/MultSelect/index.js +10 -4
  67. package/dist/esm/components/Ordinary/OrdinaryHeader.d.ts +4 -2
  68. package/dist/esm/components/Ordinary/OrdinaryHeader.js +12 -6
  69. package/dist/esm/components/Ordinary/OrdinaryMoney.d.ts +4 -2
  70. package/dist/esm/components/Ordinary/OrdinaryMoney.js +11 -5
  71. package/dist/esm/components/Ordinary/OrdinarySerial.d.ts +4 -2
  72. package/dist/esm/components/Ordinary/OrdinarySerial.js +12 -6
  73. package/dist/esm/components/Ordinary/index.d.ts +10 -4
  74. package/dist/esm/components/Ordinary/index.js +12 -5
  75. package/dist/esm/components/Payment/AlipayNick.d.ts +4 -2
  76. package/dist/esm/components/Payment/AlipayNick.js +13 -6
  77. package/dist/esm/components/Payment/AlipayNo.d.ts +4 -2
  78. package/dist/esm/components/Payment/AlipayNo.js +13 -7
  79. package/dist/esm/components/Payment/AlipayTime.d.ts +4 -2
  80. package/dist/esm/components/Payment/AlipayTime.js +11 -8
  81. package/dist/esm/components/Payment/BuyerNick.d.ts +4 -2
  82. package/dist/esm/components/Payment/BuyerNick.js +12 -6
  83. package/dist/esm/components/Payment/PaymentAmount.d.ts +4 -2
  84. package/dist/esm/components/Payment/PaymentAmount.js +10 -4
  85. package/dist/esm/components/Payment/PaymentStatus.d.ts +5 -3
  86. package/dist/esm/components/Payment/PaymentStatus.js +11 -5
  87. package/dist/esm/components/Payment/PaymentTid.d.ts +4 -2
  88. package/dist/esm/components/Payment/PaymentTid.js +10 -4
  89. package/dist/esm/components/Payment/index.d.ts +14 -5
  90. package/dist/esm/components/Payment/index.js +14 -3
  91. package/dist/esm/components/Picture/index.d.ts +3 -1
  92. package/dist/esm/components/Picture/index.js +8 -1
  93. package/dist/esm/components/PlatForm/index.d.ts +3 -1
  94. package/dist/esm/components/PlatForm/index.js +8 -3
  95. package/dist/esm/components/Radio/index.d.ts +6 -0
  96. package/dist/esm/components/Radio/index.js +14 -7
  97. package/dist/esm/components/Rate/index.d.ts +2 -0
  98. package/dist/esm/components/Rate/index.js +9 -11
  99. package/dist/esm/components/ReceiverAddress/index.d.ts +7 -2
  100. package/dist/esm/components/ReceiverAddress/index.js +13 -3
  101. package/dist/esm/components/ReceiverMobile/index.d.ts +3 -1
  102. package/dist/esm/components/ReceiverMobile/index.js +9 -4
  103. package/dist/esm/components/ReceiverName/index.d.ts +3 -1
  104. package/dist/esm/components/ReceiverName/index.js +9 -4
  105. package/dist/esm/components/Remark/index.d.ts +6 -0
  106. package/dist/esm/components/Remark/index.js +13 -2
  107. package/dist/esm/components/ReturnLogistics/index.d.ts +8 -4
  108. package/dist/esm/components/ReturnLogistics/index.js +9 -3
  109. package/dist/esm/components/Select/index.d.ts +3 -1
  110. package/dist/esm/components/Select/index.js +8 -3
  111. package/dist/esm/components/ShopInput/index.d.ts +4 -2
  112. package/dist/esm/components/ShopInput/index.js +9 -4
  113. package/dist/esm/components/ShopName/index.d.ts +4 -2
  114. package/dist/esm/components/ShopName/index.js +10 -5
  115. package/dist/esm/components/Submitter/index.d.ts +4 -2
  116. package/dist/esm/components/Submitter/index.js +7 -3
  117. package/dist/esm/components/SystemOrderNo/index.d.ts +5 -3
  118. package/dist/esm/components/SystemOrderNo/index.js +9 -4
  119. package/dist/esm/components/TemplateSelect/index.d.ts +4 -2
  120. package/dist/esm/components/TemplateSelect/index.js +10 -5
  121. package/dist/esm/components/TextArea/index.d.ts +3 -1
  122. package/dist/esm/components/TextArea/index.js +9 -4
  123. package/dist/esm/components/ThirdItemSelect/index.d.ts +3 -1
  124. package/dist/esm/components/ThirdItemSelect/index.js +12 -8
  125. package/dist/esm/components/TradeDateTime/index.d.ts +4 -0
  126. package/dist/esm/components/TradeDateTime/index.js +18 -7
  127. package/dist/esm/components/TradeId/index.d.ts +3 -1
  128. package/dist/esm/components/TradeId/index.js +9 -4
  129. package/dist/esm/components/WorkOrderId/index.d.ts +3 -1
  130. package/dist/esm/components/WorkOrderId/index.js +17 -8
  131. package/dist/esm/index.d.ts +1 -0
  132. package/dist/esm/index.js +2 -1
  133. package/dist/esm/type.d.ts +11 -3
  134. package/package.json +10 -5
@@ -22,9 +22,6 @@ var PaymentStatus = /*#__PURE__*/_createClass(function PaymentStatus(options) {
22
22
  _defineProperty(this, "paymentStatusOptions", void 0);
23
23
  _defineProperty(this, "isCombinationComponent", void 0);
24
24
  _defineProperty(this, "children", void 0);
25
- _defineProperty(this, "render", function (value) {
26
- return /*#__PURE__*/React.createElement("span", null, value);
27
- });
28
25
  _defineProperty(this, "renderClient", function (record) {
29
26
  return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
30
27
  id: _this.id,
@@ -33,16 +30,25 @@ var PaymentStatus = /*#__PURE__*/_createClass(function PaymentStatus(options) {
33
30
  }) : null;
34
31
  });
35
32
  _defineProperty(this, "renderPc", function (value, record) {
36
- return value !== null && value !== void 0 ? value : '--';
33
+ var _record$_this$id;
34
+ return (_record$_this$id = record === null || record === void 0 ? void 0 : record[_this.id]) !== null && _record$_this$id !== void 0 ? _record$_this$id : '--';
35
+ });
36
+ _defineProperty(this, "renderLog", function (r) {
37
+ if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id)])) return null;
38
+ return _this.renderPc(undefined, r);
39
+ });
40
+ _defineProperty(this, "getComponentValue", function (r) {
41
+ return r === null || r === void 0 ? void 0 : r["".concat(_this.id)];
37
42
  });
38
43
  _defineProperty(this, "renderExport", function (value) {
39
44
  return value !== null && value !== void 0 ? value : '--';
40
45
  });
41
- _defineProperty(this, "editRender", function (value) {
46
+ _defineProperty(this, "editRender", function () {
42
47
  return null;
43
48
  });
44
49
  _defineProperty(this, "filterConfig", function (item) {
45
50
  return {
51
+ type: item.type,
46
52
  id: "".concat(item.id, "_enterprisePaymentStatus"),
47
53
  name: "".concat(item.name, "-\u6253\u6B3E\u72B6\u6001"),
48
54
  filterComponentType: 'MultipleSelect',
@@ -11,12 +11,14 @@ declare class PaymentTid implements ComponentInterface {
11
11
  isCombinationComponent: boolean;
12
12
  children: ComponentInterface[];
13
13
  constructor(options: PickOption);
14
- render: (value: string) => JSX.Element;
15
14
  renderClient: (record: any) => JSX.Element | null;
16
- renderPc: (value: any, record: any) => JSX.Element;
15
+ renderPc: (value: unknown, record: any) => JSX.Element;
16
+ renderLog: (r: Record) => JSX.Element | null;
17
+ getComponentValue: (r: Record) => any;
17
18
  renderExport: (value: string) => string;
18
19
  editRender: () => JSX.Element;
19
20
  filterConfig: (item: ColumnConfig) => {
21
+ type: string;
20
22
  id: string;
21
23
  name: string;
22
24
  filterComponentType: "Input";
@@ -22,9 +22,6 @@ var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
22
22
  _defineProperty(this, "width", void 0);
23
23
  _defineProperty(this, "isCombinationComponent", void 0);
24
24
  _defineProperty(this, "children", void 0);
25
- _defineProperty(this, "render", function (value) {
26
- return /*#__PURE__*/React.createElement("span", null, value);
27
- });
28
25
  _defineProperty(this, "renderClient", function (record) {
29
26
  return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
30
27
  id: _this.id,
@@ -33,7 +30,15 @@ var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
33
30
  }) : null;
34
31
  });
35
32
  _defineProperty(this, "renderPc", function (value, record) {
36
- return /*#__PURE__*/React.createElement("span", null, value !== null && value !== void 0 ? value : '--');
33
+ var _record$_this$id;
34
+ 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 : '--');
35
+ });
36
+ _defineProperty(this, "renderLog", function (r) {
37
+ if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id)])) return null;
38
+ return _this.renderPc(undefined, r);
39
+ });
40
+ _defineProperty(this, "getComponentValue", function (r) {
41
+ return r === null || r === void 0 ? void 0 : r["".concat(_this.id)];
37
42
  });
38
43
  _defineProperty(this, "renderExport", function (value) {
39
44
  return value !== null && value !== void 0 ? value : '--';
@@ -50,6 +55,7 @@ var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
50
55
  });
51
56
  _defineProperty(this, "filterConfig", function (item) {
52
57
  return {
58
+ type: item.type,
53
59
  id: "".concat(item.id, "_enterprisePaymentTid"),
54
60
  name: "".concat(item.name, "-\u8BA2\u5355\u7F16\u53F7"),
55
61
  filterComponentType: 'Input',
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { ComponentInterface, PickOption, ColumnConfig } from '../../type';
2
+ import { ComponentInterface, PickOption, ColumnConfig, Record } from '../../type';
3
3
  import AlipayNick from './AlipayNick';
4
4
  import AlipayNo from './AlipayNo';
5
5
  import AlipayTime from './AlipayTime';
@@ -23,16 +23,25 @@ declare class Logistics implements ComponentInterface {
23
23
  isCombinationComponent: boolean;
24
24
  children: ComponentInterface[];
25
25
  constructor(options: PickOption);
26
- render: () => null;
27
26
  renderClient: (record: any) => JSX.Element;
28
27
  renderPc: () => null;
28
+ renderLog: (record: Record) => JSX.Element;
29
+ getComponentValue: (r: Record) => {
30
+ enterprisePaymentAlipayNick: any;
31
+ enterprisePaymentAlipayNo: any;
32
+ enterprisePaymentBuyerNick: any;
33
+ enterprisePaymentRefundFee: any;
34
+ enterprisePaymentStatus: any;
35
+ enterprisePaymentTid: any;
36
+ enterprisePaymentTime: any;
37
+ };
29
38
  renderExport: () => null;
30
39
  editRender: (value: any) => JSX.Element;
31
40
  filterConfig: (item: ColumnConfig) => ({
32
41
  id: string;
33
42
  name: string;
34
43
  filterComponentType: "Input";
35
- filterFn: (value: string) => (i: import("../../type").Record) => boolean;
44
+ filterFn: (value: string) => (i: Record) => boolean;
36
45
  } | {
37
46
  id: string;
38
47
  name: string;
@@ -41,12 +50,12 @@ declare class Logistics implements ComponentInterface {
41
50
  label: string;
42
51
  value: string;
43
52
  }[];
44
- filterFn: (value: string) => (i: import("../../type").Record) => boolean;
53
+ filterFn: (value: string) => (i: Record) => boolean;
45
54
  } | {
46
55
  id: string;
47
56
  name: string;
48
57
  filterComponentType: "Input";
49
- filterFn: (value: string[]) => (i: import("../../type").Record) => boolean;
58
+ filterFn: (value: string[]) => (i: Record) => boolean;
50
59
  })[];
51
60
  }
52
61
  export default Logistics;
@@ -35,15 +35,26 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
35
35
  _defineProperty(this, "payTime", void 0);
36
36
  _defineProperty(this, "isCombinationComponent", void 0);
37
37
  _defineProperty(this, "children", void 0);
38
- _defineProperty(this, "render", function () {
39
- return null;
40
- });
41
38
  _defineProperty(this, "renderClient", function (record) {
42
39
  return /*#__PURE__*/React.createElement(React.Fragment, null, _this.alipayNick.renderClient(record), _this.paymentAmount.renderClient(record), _this.alipayNo.renderClient(record), _this.buyerNick.renderClient(record), _this.paymentTid.renderClient(record), _this.paymentStatus.renderClient(record), _this.payTime.renderClient(record));
43
40
  });
44
41
  _defineProperty(this, "renderPc", function () {
45
42
  return null;
46
43
  });
44
+ _defineProperty(this, "renderLog", function (record) {
45
+ return /*#__PURE__*/React.createElement(React.Fragment, null, _this.alipayNick.renderLog(record), _this.paymentAmount.renderLog(record), _this.alipayNo.renderLog(record), _this.buyerNick.renderLog(record), _this.paymentTid.renderLog(record), _this.paymentStatus.renderLog(record), _this.payTime.renderLog(record));
46
+ });
47
+ _defineProperty(this, "getComponentValue", function (r) {
48
+ return {
49
+ enterprisePaymentAlipayNick: _this.alipayNick.getComponentValue(r),
50
+ enterprisePaymentAlipayNo: _this.alipayNo.getComponentValue(r),
51
+ enterprisePaymentBuyerNick: _this.buyerNick.getComponentValue(r),
52
+ enterprisePaymentRefundFee: _this.paymentAmount.getComponentValue(r),
53
+ enterprisePaymentStatus: _this.paymentStatus.getComponentValue(r),
54
+ enterprisePaymentTid: _this.paymentTid.getComponentValue(r),
55
+ enterprisePaymentTime: _this.payTime.getComponentValue(r)
56
+ };
57
+ });
47
58
  _defineProperty(this, "renderExport", function () {
48
59
  return null;
49
60
  });
@@ -13,8 +13,10 @@ declare class BasicPicture implements ComponentInterface {
13
13
  formatPictures: (pictures: string) => string[];
14
14
  render: (value: Value) => JSX.Element | null;
15
15
  renderPc: (value: any, record: Record) => JSX.Element | JSX.Element[];
16
+ renderLog: (r: Record) => JSX.Element | JSX.Element[] | null;
17
+ getComponentValue: (r: Record) => any;
16
18
  renderClient: (record: any) => JSX.Element | null;
17
- editRender: (value: any) => JSX.Element;
19
+ editRender: () => JSX.Element;
18
20
  /**
19
21
  *
20
22
  * @returns 图片类型的导出需要在导出时单独处理
@@ -69,6 +69,13 @@ var BasicPicture = /*#__PURE__*/_createClass(function BasicPicture(options) {
69
69
  }));
70
70
  });
71
71
  });
72
+ _defineProperty(this, "renderLog", function (r) {
73
+ if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_picture")])) return null;
74
+ return _this.renderPc(undefined, r);
75
+ });
76
+ _defineProperty(this, "getComponentValue", function (r) {
77
+ return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_picture")];
78
+ });
72
79
  _defineProperty(this, "renderClient", function (record) {
73
80
  return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
74
81
  id: _this.id,
@@ -76,7 +83,7 @@ var BasicPicture = /*#__PURE__*/_createClass(function BasicPicture(options) {
76
83
  value: _this.render(record === null || record === void 0 ? void 0 : record[_this.id])
77
84
  }) : null;
78
85
  });
79
- _defineProperty(this, "editRender", function (value) {
86
+ _defineProperty(this, "editRender", function () {
80
87
  var _this$componentConfig, _this$componentConfig2, _this$componentConfig3;
81
88
  return /*#__PURE__*/React.createElement(GetFormItem, {
82
89
  title: _this.name,
@@ -12,10 +12,12 @@ declare class PlatForm implements ComponentInterface {
12
12
  constructor();
13
13
  renderPc: (value: any, record: Record) => JSX.Element;
14
14
  renderExport: (value: any, record: Record) => string;
15
- render: () => null;
15
+ renderLog: (r: Record) => JSX.Element | null;
16
+ getComponentValue: (r: Record) => any;
16
17
  renderClient: () => null;
17
18
  editRender: () => null;
18
19
  filterConfig: (item: ColumnConfig) => {
20
+ type: string;
19
21
  id: string;
20
22
  name: string;
21
23
  filterComponentType: "MultipleSelect";
@@ -6,7 +6,7 @@ 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 { PlatData, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
9
+ import { PlatData, filterFn as _filterFn, isNull } from '@kmkf-fe-packages/kmkf-utils';
10
10
  var PlatForm = /*#__PURE__*/_createClass(function PlatForm() {
11
11
  var _this = this;
12
12
  _classCallCheck(this, PlatForm);
@@ -27,8 +27,12 @@ var PlatForm = /*#__PURE__*/_createClass(function PlatForm() {
27
27
  var platMap = _this.platInstance.getPlatMap();
28
28
  return (_platMap$record2 = platMap === null || platMap === void 0 ? void 0 : platMap[record === null || record === void 0 ? void 0 : record["".concat(_this.id)]]) !== null && _platMap$record2 !== void 0 ? _platMap$record2 : '--';
29
29
  });
30
- _defineProperty(this, "render", function () {
31
- return null;
30
+ _defineProperty(this, "renderLog", function (r) {
31
+ if (isNull(r === null || r === void 0 ? void 0 : r[_this.id])) return null;
32
+ return _this.renderPc(undefined, r);
33
+ });
34
+ _defineProperty(this, "getComponentValue", function (r) {
35
+ return r === null || r === void 0 ? void 0 : r[_this.id];
32
36
  });
33
37
  _defineProperty(this, "renderClient", function () {
34
38
  return null;
@@ -39,6 +43,7 @@ var PlatForm = /*#__PURE__*/_createClass(function PlatForm() {
39
43
  _defineProperty(this, "filterConfig", function (item) {
40
44
  var platData = _this.platInstance.getPlatSelectList();
41
45
  return {
46
+ type: item.type,
42
47
  id: item.id,
43
48
  // 过滤组件id
44
49
  name: item.name,
@@ -15,10 +15,16 @@ declare class BasicRadio implements ComponentInterface {
15
15
  constructor(options: PickOption);
16
16
  render: (value: Value) => JSX.Element;
17
17
  renderPc: (value: any, record: Record) => JSX.Element;
18
+ renderLog: (r: Record) => JSX.Element | null;
19
+ getComponentValue: (r: Record) => {
20
+ value: any;
21
+ other: any;
22
+ };
18
23
  renderExport: (value: any, record: Record) => string;
19
24
  renderClient: (record: Record) => JSX.Element | null;
20
25
  editRender: () => JSX.Element;
21
26
  filterConfig: (item: ColumnConfig) => {
27
+ type: string;
22
28
  id: string;
23
29
  name: string;
24
30
  filterComponentType: "MultipleSelect";
@@ -1,5 +1,4 @@
1
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
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); } }
4
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; }
5
4
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
@@ -7,7 +6,7 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
7
6
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
8
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); }
9
8
  import React from 'react';
10
- import { ApaasSelect } from '@kmkf-fe-packages/basic-components';
9
+ import { ApaasRadio } from '@kmkf-fe-packages/basic-components';
11
10
  import GetFormItem from "../GetFormItem";
12
11
  import ItemView from "../../commonComponents/ItemView";
13
12
  import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
@@ -33,6 +32,16 @@ var BasicRadio = /*#__PURE__*/_createClass(function BasicRadio(options) {
33
32
  }
34
33
  return /*#__PURE__*/React.createElement("span", null, record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_radio")], record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_radioOther")]);
35
34
  });
35
+ _defineProperty(this, "renderLog", function (r) {
36
+ if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_radio")]) && isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_radioOther")])) return null;
37
+ return _this.renderPc(undefined, r);
38
+ });
39
+ _defineProperty(this, "getComponentValue", function (r) {
40
+ return {
41
+ value: r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_radio")],
42
+ other: r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_radioOther")]
43
+ };
44
+ });
36
45
  _defineProperty(this, "renderExport", function (value, record) {
37
46
  if ((record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_radio")]) === undefined) {
38
47
  return '--';
@@ -53,15 +62,13 @@ var BasicRadio = /*#__PURE__*/_createClass(function BasicRadio(options) {
53
62
  name: _this.id,
54
63
  rules: _this.rules,
55
64
  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,
56
- component: /*#__PURE__*/React.createElement(ApaasSelect, _extends({}, _this.componentConfig, {
57
- placeholder: "\u8BF7\u8F93\u5165".concat(_this.name),
58
- showSearch: true
59
- }))
65
+ component: /*#__PURE__*/React.createElement(ApaasRadio, _this.componentConfig)
60
66
  });
61
67
  });
62
68
  _defineProperty(this, "filterConfig", function (item) {
63
69
  var _item$config, _item$config2, _item$config2$options, _item$config3;
64
70
  return {
71
+ type: item.type,
65
72
  id: item.id,
66
73
  // 过滤组件id
67
74
  name: item.name,
@@ -87,7 +94,7 @@ var BasicRadio = /*#__PURE__*/_createClass(function BasicRadio(options) {
87
94
  this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
88
95
  validator: function validator(_, value) {
89
96
  if (!(value !== null && value !== void 0 && value.value)) {
90
- return Promise.reject(new Error('请选择'));
97
+ return Promise.reject(new Error("\u8BF7\u9009\u62E9".concat(_this.name)));
91
98
  }
92
99
  return Promise.resolve();
93
100
  }
@@ -20,6 +20,8 @@ declare class BasicRate implements ComponentInterface {
20
20
  render: (value: Value) => JSX.Element;
21
21
  renderClient: (record: Record) => JSX.Element | null;
22
22
  renderPc: (value: any, record: Record) => JSX.Element | null;
23
+ renderLog: (r: Record) => JSX.Element | null;
24
+ getComponentValue: (r: Record) => any;
23
25
  renderExport: (value: any, record: any) => any;
24
26
  editRender: () => JSX.Element;
25
27
  filterConfig: () => never[];
@@ -13,8 +13,7 @@ import GetFormItem from "../GetFormItem";
13
13
  import ItemView from "../../commonComponents/ItemView";
14
14
  import { isNull } from '@kmkf-fe-packages/kmkf-utils';
15
15
  var BasicRate = /*#__PURE__*/_createClass(function BasicRate(options) {
16
- var _this = this,
17
- _this$componentConfig3;
16
+ var _this = this;
18
17
  _classCallCheck(this, BasicRate);
19
18
  _defineProperty(this, "name", void 0);
20
19
  _defineProperty(this, "id", void 0);
@@ -82,6 +81,13 @@ var BasicRate = /*#__PURE__*/_createClass(function BasicRate(options) {
82
81
  }
83
82
  return null;
84
83
  });
84
+ _defineProperty(this, "renderLog", function (r) {
85
+ if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_rate")])) return null;
86
+ return _this.renderPc(undefined, r);
87
+ });
88
+ _defineProperty(this, "getComponentValue", function (r) {
89
+ return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_rate")];
90
+ });
85
91
  _defineProperty(this, "renderExport", function (value, record) {
86
92
  var _ref;
87
93
  var textArr = ((_ref = (record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_rate")]) || []) === null || _ref === void 0 ? void 0 : _ref.reduce(function (prv, next) {
@@ -119,15 +125,7 @@ var BasicRate = /*#__PURE__*/_createClass(function BasicRate(options) {
119
125
  this.componentConfig = options.componentConfig;
120
126
  this.isCombinationComponent = false;
121
127
  this.children = [];
122
- this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
123
- required: true,
124
- validator: function validator(_, value) {
125
- if (value && !value.length) {
126
- return Promise.reject(new Error("\u8BF7\u9009\u62E9".concat(_this.name)));
127
- }
128
- return Promise.resolve();
129
- }
130
- }] : [];
128
+ this.rules = [];
131
129
  this.rateMap = {
132
130
  0: '',
133
131
  0.5: '非常差',
@@ -16,12 +16,17 @@ declare class BasicInput implements ComponentInterface {
16
16
  children: ComponentInterface[];
17
17
  addressDateInstance: AddressData;
18
18
  constructor(options: PickOption);
19
- render: (value: Value, record: any) => JSX.Element;
19
+ render: (value: Value) => JSX.Element;
20
20
  transTextToNumber: (value?: string) => string | number | undefined;
21
21
  renderPc: (value: any, record: Record) => JSX.Element;
22
+ renderLog: (r: Record) => JSX.Element | null;
23
+ getComponentValue: (r: Record) => {
24
+ address: any[];
25
+ detail: any;
26
+ };
22
27
  renderExport: (value: any, record: any) => string;
23
28
  renderClient: (record: any) => JSX.Element | null;
24
- editRender: (value: any) => JSX.Element;
29
+ editRender: () => JSX.Element;
25
30
  filterConfig: () => never[];
26
31
  }
27
32
  export default BasicInput;
@@ -25,7 +25,7 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
25
25
  _defineProperty(this, "isCombinationComponent", void 0);
26
26
  _defineProperty(this, "children", void 0);
27
27
  _defineProperty(this, "addressDateInstance", void 0);
28
- _defineProperty(this, "render", function (value, record) {
28
+ _defineProperty(this, "render", function (value) {
29
29
  var _value$address;
30
30
  return /*#__PURE__*/React.createElement("span", {
31
31
  className: "pointer"
@@ -57,6 +57,16 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
57
57
  return _this.addressDateInstance.getNameByCode(suffix);
58
58
  }).join(''), detail);
59
59
  });
60
+ _defineProperty(this, "renderLog", function (r) {
61
+ if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_province")])) return null;
62
+ return _this.renderPc(undefined, r);
63
+ });
64
+ _defineProperty(this, "getComponentValue", function (r) {
65
+ return {
66
+ address: [r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_province")], r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_city")], r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_district")]],
67
+ detail: r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_address")]
68
+ };
69
+ });
60
70
  _defineProperty(this, "renderExport", function (value, record) {
61
71
  var _address2;
62
72
  if (record["".concat(_this.id, "_province")] === undefined) {
@@ -76,10 +86,10 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
76
86
  return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
77
87
  id: _this.id,
78
88
  label: _this.name,
79
- value: _this.render(record === null || record === void 0 ? void 0 : record[_this.id], record)
89
+ value: _this.render(record === null || record === void 0 ? void 0 : record[_this.id])
80
90
  }) : null;
81
91
  });
82
- _defineProperty(this, "editRender", function (value) {
92
+ _defineProperty(this, "editRender", function () {
83
93
  var _this$componentConfig, _this$componentConfig2;
84
94
  return /*#__PURE__*/React.createElement(GetFormItem, {
85
95
  title: _this.name,
@@ -10,12 +10,14 @@ declare class ReceiverMobile implements ComponentInterface {
10
10
  isCombinationComponent: boolean;
11
11
  children: ComponentInterface[];
12
12
  constructor(options: PickOption);
13
- render: (value: string, record?: Record) => JSX.Element;
14
13
  renderClient: (record: Record) => JSX.Element | null;
15
14
  renderPc: (value: any, record: Record) => JSX.Element;
15
+ renderLog: (r: Record) => JSX.Element | null;
16
+ getComponentValue: (r: Record) => any;
16
17
  renderExport: (value: any, record: Record) => any;
17
18
  editRender: (value: any) => JSX.Element;
18
19
  filterConfig: (item: ColumnConfig) => {
20
+ type: string;
19
21
  id: string;
20
22
  name: string;
21
23
  filterComponentType: "Input";
@@ -22,14 +22,11 @@ var ReceiverMobile = /*#__PURE__*/_createClass(function ReceiverMobile(options)
22
22
  _defineProperty(this, "effects", void 0);
23
23
  _defineProperty(this, "isCombinationComponent", void 0);
24
24
  _defineProperty(this, "children", void 0);
25
- _defineProperty(this, "render", function (value, record) {
26
- return /*#__PURE__*/React.createElement("span", null, value);
27
- });
28
25
  _defineProperty(this, "renderClient", function (record) {
29
26
  return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
30
27
  id: _this.id,
31
28
  label: _this.name,
32
- value: _this.render(record === null || record === void 0 ? void 0 : record[_this.id], record)
29
+ value: record === null || record === void 0 ? void 0 : record[_this.id]
33
30
  }) : null;
34
31
  });
35
32
  _defineProperty(this, "renderPc", function (value, record) {
@@ -44,6 +41,13 @@ var ReceiverMobile = /*#__PURE__*/_createClass(function ReceiverMobile(options)
44
41
  }
45
42
  }, record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_receiveMobile")]);
46
43
  });
44
+ _defineProperty(this, "renderLog", function (r) {
45
+ if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_receiveMobile")])) return null;
46
+ return _this.renderPc(undefined, r);
47
+ });
48
+ _defineProperty(this, "getComponentValue", function (r) {
49
+ return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_receiveMobile")];
50
+ });
47
51
  _defineProperty(this, "renderExport", function (value, record) {
48
52
  return record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_receiveMobile")];
49
53
  });
@@ -64,6 +68,7 @@ var ReceiverMobile = /*#__PURE__*/_createClass(function ReceiverMobile(options)
64
68
  });
65
69
  _defineProperty(this, "filterConfig", function (item) {
66
70
  return {
71
+ type: item.type,
67
72
  id: item.id,
68
73
  // 过滤组件id
69
74
  name: item.name,
@@ -10,12 +10,14 @@ declare class ReceiverName implements ComponentInterface {
10
10
  isCombinationComponent: boolean;
11
11
  children: ComponentInterface[];
12
12
  constructor(options: PickOption);
13
- render: (value: string, record: any) => JSX.Element;
14
13
  renderClient: (record: any) => JSX.Element | null;
15
14
  renderPc: (value: any, record: Record) => JSX.Element;
15
+ renderLog: (r: Record) => JSX.Element | null;
16
+ getComponentValue: (r: Record) => any;
16
17
  renderExport: (value: any, record: Record) => any;
17
18
  editRender: () => JSX.Element;
18
19
  filterConfig: (item: ColumnConfig) => {
20
+ type: string;
19
21
  id: string;
20
22
  name: string;
21
23
  filterComponentType: "Input";
@@ -22,14 +22,11 @@ var ReceiverName = /*#__PURE__*/_createClass(function ReceiverName(options) {
22
22
  _defineProperty(this, "effects", void 0);
23
23
  _defineProperty(this, "isCombinationComponent", void 0);
24
24
  _defineProperty(this, "children", void 0);
25
- _defineProperty(this, "render", function (value, record) {
26
- return /*#__PURE__*/React.createElement("span", null, value);
27
- });
28
25
  _defineProperty(this, "renderClient", function (record) {
29
26
  return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
30
27
  id: _this.id,
31
28
  label: _this.name,
32
- value: _this.render(record === null || record === void 0 ? void 0 : record[_this.id], record)
29
+ value: record === null || record === void 0 ? void 0 : record[_this.id]
33
30
  }) : null;
34
31
  });
35
32
  _defineProperty(this, "renderPc", function (value, record) {
@@ -44,6 +41,13 @@ var ReceiverName = /*#__PURE__*/_createClass(function ReceiverName(options) {
44
41
  }
45
42
  }, record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_receiveName")]);
46
43
  });
44
+ _defineProperty(this, "renderLog", function (r) {
45
+ if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_receiveName")])) return null;
46
+ return _this.renderPc(undefined, r);
47
+ });
48
+ _defineProperty(this, "getComponentValue", function (r) {
49
+ return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_receiveName")];
50
+ });
47
51
  _defineProperty(this, "renderExport", function (value, record) {
48
52
  return record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_receiveName")];
49
53
  });
@@ -61,6 +65,7 @@ var ReceiverName = /*#__PURE__*/_createClass(function ReceiverName(options) {
61
65
  });
62
66
  _defineProperty(this, "filterConfig", function (item) {
63
67
  return {
68
+ type: item.type,
64
69
  id: item.id,
65
70
  // 过滤组件id
66
71
  name: item.name,
@@ -18,9 +18,15 @@ declare class ERemark implements ComponentInterface {
18
18
  render: (value: Value) => JSX.Element;
19
19
  renderClient: (record: Record) => JSX.Element | null;
20
20
  renderPc: (value: unknown, record: Record) => JSX.Element;
21
+ renderLog: (r: Record) => JSX.Element | null;
22
+ getComponentValue: (r: Record) => {
23
+ remark: any;
24
+ flag: any;
25
+ };
21
26
  renderExport: (value: unknown, record: Record) => any;
22
27
  editRender: () => JSX.Element;
23
28
  filterConfig: (item: ColumnConfig) => {
29
+ type: string;
24
30
  id: string;
25
31
  name: string;
26
32
  filterComponentType: "Input";
@@ -55,10 +55,20 @@ var ERemark = /*#__PURE__*/_createClass(function ERemark(options) {
55
55
  style: {
56
56
  display: 'inline-block'
57
57
  }
58
- }, get(record, "".concat(_this.id, "_flag")) + '' ? /*#__PURE__*/React.createElement("i", {
59
- className: "dz-iconfont dz-beizhu_qizhi f-lt ft_12 mr_5 ".concat(_this.flagColors[get(record, "".concat(_this.id, "_flag"))])
58
+ }, !isNull(get(record, "".concat(_this.id, "_flag"))) ? /*#__PURE__*/React.createElement("i", {
59
+ className: "dz-iconfont dz-beizhu_qizhi f-lt ft_12 mr_5 ".concat(_this.flagColors[Number(get(record, "".concat(_this.id, "_flag")))])
60
60
  }) : null, /*#__PURE__*/React.createElement("span", null, get(record, "".concat(_this.id, "_remark"))));
61
61
  });
62
+ _defineProperty(this, "renderLog", function (r) {
63
+ if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_flag")]) && isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_remark")])) return null;
64
+ return _this.renderPc(undefined, r);
65
+ });
66
+ _defineProperty(this, "getComponentValue", function (r) {
67
+ return {
68
+ remark: r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_remark")],
69
+ flag: r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_flag")]
70
+ };
71
+ });
62
72
  _defineProperty(this, "renderExport", function (value, record) {
63
73
  return get(record, "".concat(_this.id, "_remark"));
64
74
  });
@@ -74,6 +84,7 @@ var ERemark = /*#__PURE__*/_createClass(function ERemark(options) {
74
84
  });
75
85
  _defineProperty(this, "filterConfig", function (item) {
76
86
  return {
87
+ type: item.type,
77
88
  id: item.id,
78
89
  // 过滤组件id
79
90
  name: item.name,
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { ComponentInterface, PickOption, DataType, ColumnConfig } from '../../type';
2
+ import { ComponentInterface, PickOption, DataType, Record, ColumnConfig } from '../../type';
3
3
  import { ExpressData } from '@kmkf-fe-packages/kmkf-utils';
4
4
  import Express from '../Express';
5
5
  import ExpressCode from '../ExpressCode';
@@ -20,9 +20,13 @@ declare class ReturnLogistics implements ComponentInterface {
20
20
  isCombinationComponent: boolean;
21
21
  children: ComponentInterface[];
22
22
  constructor(options: PickOption);
23
- render: () => null;
24
23
  renderClient: (record: any) => JSX.Element;
25
24
  renderPc: () => null;
25
+ renderLog: (r: Record) => JSX.Element;
26
+ getComponentValue: (r: Record) => {
27
+ company: any;
28
+ order: any;
29
+ };
26
30
  renderExport: () => null;
27
31
  editRender: (value: any) => JSX.Element;
28
32
  filterConfig: (item: ColumnConfig) => ({
@@ -30,12 +34,12 @@ declare class ReturnLogistics implements ComponentInterface {
30
34
  name: string;
31
35
  filterComponentType: "MultipleSelect";
32
36
  options: any[];
33
- filterFn: (value: string) => (i: import("../../type").Record) => boolean;
37
+ filterFn: (value: string) => (i: Record) => boolean;
34
38
  } | {
35
39
  id: string;
36
40
  name: string;
37
41
  filterComponentType: "Input";
38
- filterFn: (value: string) => (i: import("../../type").Record) => boolean;
42
+ filterFn: (value: string) => (i: Record) => boolean;
39
43
  })[];
40
44
  }
41
45
  export default ReturnLogistics;