@kmkf-fe-packages/services-components 0.26.1 → 0.26.2-rc.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 (41) hide show
  1. package/dist/esm/components/BuyerNick/index.d.ts +3 -3
  2. package/dist/esm/components/BuyerNick/index.js +9 -19
  3. package/dist/esm/components/Common/index.d.ts +1 -0
  4. package/dist/esm/components/Common/index.js +76 -3
  5. package/dist/esm/components/CommonInput/index.d.ts +44 -0
  6. package/dist/esm/components/CommonInput/index.js +146 -0
  7. package/dist/esm/components/LogisticsInterception/InterceptStatus.d.ts +2 -2
  8. package/dist/esm/components/LogisticsInterception/InterceptStatus.js +1 -1
  9. package/dist/esm/components/LogisticsMoreInterception/InterceptAddress.d.ts +31 -0
  10. package/dist/esm/components/LogisticsMoreInterception/InterceptAddress.js +88 -0
  11. package/dist/esm/components/LogisticsMoreInterception/InterceptStatus.d.ts +46 -0
  12. package/dist/esm/components/LogisticsMoreInterception/InterceptStatus.js +111 -0
  13. package/dist/esm/components/LogisticsMoreInterception/InterceptType.d.ts +44 -0
  14. package/dist/esm/components/LogisticsMoreInterception/InterceptType.js +96 -0
  15. package/dist/esm/components/LogisticsMoreInterception/columnHeader.d.ts +5 -0
  16. package/dist/esm/components/LogisticsMoreInterception/columnHeader.js +55 -0
  17. package/dist/esm/components/LogisticsMoreInterception/index.d.ts +69 -0
  18. package/dist/esm/components/LogisticsMoreInterception/index.js +184 -0
  19. package/dist/esm/components/LogisticsMoreInterception/interceptCompany.d.ts +39 -0
  20. package/dist/esm/components/LogisticsMoreInterception/interceptCompany.js +88 -0
  21. package/dist/esm/components/LogisticsMoreInterception/interceptItem.d.ts +34 -0
  22. package/dist/esm/components/LogisticsMoreInterception/interceptItem.js +81 -0
  23. package/dist/esm/components/LogisticsMoreInterception/interceptSenderMobile.d.ts +35 -0
  24. package/dist/esm/components/LogisticsMoreInterception/interceptSenderMobile.js +82 -0
  25. package/dist/esm/components/LogisticsMoreInterception/interceptSnapshot.d.ts +34 -0
  26. package/dist/esm/components/LogisticsMoreInterception/interceptSnapshot.js +81 -0
  27. package/dist/esm/components/LogisticsMoreTrajectory/index.js +2 -2
  28. package/dist/esm/components/MultSelect/index.d.ts +4 -4
  29. package/dist/esm/components/MultSelect/index.js +13 -13
  30. package/dist/esm/components/Payment/PaymentStatus.d.ts +4 -4
  31. package/dist/esm/components/Payment/PaymentStatus.js +30 -30
  32. package/dist/esm/components/PaymentVoucherCode/index.d.ts +33 -0
  33. package/dist/esm/components/PaymentVoucherCode/index.js +104 -0
  34. package/dist/esm/constant.js +12 -13
  35. package/dist/esm/factory.d.ts +2 -2
  36. package/dist/esm/factory.js +15 -8
  37. package/dist/esm/index.d.ts +4 -1
  38. package/dist/esm/index.js +3 -0
  39. package/dist/esm/service/api.d.ts +1 -0
  40. package/dist/esm/service/api.js +8 -0
  41. package/package.json +4 -4
@@ -0,0 +1,88 @@
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 { ExpressData } from '@kmkf-fe-packages/kmkf-utils';
10
+ import { isNull } from '@kmkf-fe-packages/kmkf-utils';
11
+ import { SYMBOL } from "../../constant";
12
+ var InterceptionCompany = /*#__PURE__*/_createClass(function InterceptionCompany(options) {
13
+ var _this = this;
14
+ _classCallCheck(this, InterceptionCompany);
15
+ _defineProperty(this, "name", 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, "expressDateInstance", void 0);
23
+ _defineProperty(this, "width", void 0);
24
+ _defineProperty(this, "isCombinationComponent", void 0);
25
+ _defineProperty(this, "formField", void 0);
26
+ _defineProperty(this, "canSort", void 0);
27
+ _defineProperty(this, "children", void 0);
28
+ _defineProperty(this, "dataType", void 0);
29
+ _defineProperty(this, "options", void 0);
30
+ _defineProperty(this, "renderCompany", function (record) {
31
+ var list = record[_this.id] || [];
32
+ return /*#__PURE__*/React.createElement(React.Fragment, null, list.map(function (item, index) {
33
+ return /*#__PURE__*/React.createElement("div", null, "\u5305\u88F9".concat(index + 1, ":"), _this.expressDateInstance.getExpressNameByCode(item) || item);
34
+ }));
35
+ });
36
+ _defineProperty(this, "renderClient", function () {
37
+ return null;
38
+ });
39
+ _defineProperty(this, "renderPc", function (value, record) {
40
+ if (isNull(record === null || record === void 0 ? void 0 : record[_this.id])) {
41
+ return /*#__PURE__*/React.createElement("span", null, "--");
42
+ }
43
+ return _this.renderCompany(record);
44
+ });
45
+ _defineProperty(this, "renderLog", function () {
46
+ return null;
47
+ });
48
+ _defineProperty(this, "getComponentValue", function (r) {
49
+ return ((r === null || r === void 0 ? void 0 : r[_this.id]) || []).map(function (t) {
50
+ return _this.expressDateInstance.getExpressNameByCode(t);
51
+ }).join(',');
52
+ });
53
+ _defineProperty(this, "renderExport", function (value, record) {
54
+ return _this.getComponentValue(record) || '--';
55
+ });
56
+ _defineProperty(this, "editRender", function () {
57
+ return null;
58
+ });
59
+ _defineProperty(this, "filterConfig", function (item) {
60
+ var subKey = item.subKey;
61
+ return {
62
+ searchDefaultConditions: SYMBOL.in,
63
+ type: item.type,
64
+ id: subKey ? "".concat(item.id, "_").concat(subKey) : item.id,
65
+ name: "".concat(item.name, "-\u7269\u6D41\u4FE1\u606F"),
66
+ filterComponentType: 'MultipleSelect',
67
+ props: {
68
+ options: _this.expressDateInstance.getExpressData() || []
69
+ }
70
+ };
71
+ });
72
+ this.name = options.name;
73
+ this.id = options.id;
74
+ this.sortField = options.id;
75
+ this.formField = options.id;
76
+ this.type = options.type;
77
+ this.componentConfig = options.componentConfig;
78
+ this.rules = [];
79
+ this.align = 'left';
80
+ this.expressDateInstance = ExpressData.getInstance();
81
+ this.width = 200;
82
+ this.isCombinationComponent = false;
83
+ this.canSort = false;
84
+ this.children = [];
85
+ this.dataType = 'object';
86
+ this.options = this.expressDateInstance.getExpressData() || [];
87
+ });
88
+ export default InterceptionCompany;
@@ -0,0 +1,34 @@
1
+ import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from '../../type';
2
+ import React from 'react';
3
+ declare class InterceptItem implements ComponentInterface {
4
+ name: string;
5
+ id: string;
6
+ sortField: string;
7
+ type: string;
8
+ rules: any[];
9
+ componentConfig: ComponentInterface['componentConfig'];
10
+ align: ALignType;
11
+ width: number;
12
+ isCombinationComponent: boolean;
13
+ formField: string;
14
+ canSort: boolean;
15
+ children: ComponentInterface[];
16
+ dataType: ComponentInterface['dataType'];
17
+ constructor(options: PickOption);
18
+ renderItem: (record: any) => React.JSX.Element | "--";
19
+ renderClient: () => null;
20
+ renderPc: (value: unknown, record: Record) => React.JSX.Element | "--";
21
+ renderLog: () => null;
22
+ getComponentValue: (r: Record) => any;
23
+ renderExport: (value: string, record: Record) => any;
24
+ editRender: () => null;
25
+ filterConfig: (item: ColumnConfig) => {
26
+ searchDefaultConditions: "in";
27
+ type: string;
28
+ id: string;
29
+ name: string;
30
+ filterComponentType: "Input";
31
+ formatFilterValue: (input: string) => string | string[];
32
+ };
33
+ }
34
+ export default InterceptItem;
@@ -0,0 +1,81 @@
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 { isNull } from '@kmkf-fe-packages/kmkf-utils';
10
+ import { SYMBOL, batchInput } from "../../constant";
11
+ var InterceptItem = /*#__PURE__*/_createClass(function InterceptItem(options) {
12
+ var _this = this;
13
+ _classCallCheck(this, InterceptItem);
14
+ _defineProperty(this, "name", void 0);
15
+ _defineProperty(this, "id", void 0);
16
+ _defineProperty(this, "sortField", void 0);
17
+ _defineProperty(this, "type", void 0);
18
+ _defineProperty(this, "rules", void 0);
19
+ _defineProperty(this, "componentConfig", void 0);
20
+ _defineProperty(this, "align", void 0);
21
+ _defineProperty(this, "width", void 0);
22
+ _defineProperty(this, "isCombinationComponent", void 0);
23
+ _defineProperty(this, "formField", void 0);
24
+ _defineProperty(this, "canSort", void 0);
25
+ _defineProperty(this, "children", void 0);
26
+ _defineProperty(this, "dataType", void 0);
27
+ _defineProperty(this, "renderItem", function (record) {
28
+ var list = record[_this.id] || [];
29
+ if (isNull(list)) return '--';
30
+ return /*#__PURE__*/React.createElement(React.Fragment, null, list.map(function (item, index) {
31
+ return /*#__PURE__*/React.createElement("div", null, "\u5305\u88F9".concat(index + 1, ":"), item);
32
+ }));
33
+ });
34
+ _defineProperty(this, "renderClient", function () {
35
+ return null;
36
+ });
37
+ _defineProperty(this, "renderPc", function (value, record) {
38
+ return _this.renderItem(record);
39
+ });
40
+ _defineProperty(this, "renderLog", function () {
41
+ return null;
42
+ });
43
+ _defineProperty(this, "getComponentValue", function (r) {
44
+ var _r$_this$id;
45
+ return r === null || r === void 0 ? void 0 : (_r$_this$id = r[_this.id]) === null || _r$_this$id === void 0 ? void 0 : _r$_this$id.join(',');
46
+ });
47
+ _defineProperty(this, "renderExport", function (value, record) {
48
+ var _this$getComponentVal;
49
+ return (_this$getComponentVal = _this.getComponentValue(record)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal : '--';
50
+ });
51
+ _defineProperty(this, "editRender", function () {
52
+ return null;
53
+ });
54
+ _defineProperty(this, "filterConfig", function (item) {
55
+ var subKey = item.subKey;
56
+ return {
57
+ searchDefaultConditions: SYMBOL.in,
58
+ type: item.type,
59
+ id: subKey ? "".concat(item.id, "_").concat(subKey) : item.id,
60
+ name: "".concat(item.name, "-\u7269\u6D41\u5355\u53F7"),
61
+ filterComponentType: 'Input',
62
+ formatFilterValue: function formatFilterValue(input) {
63
+ return batchInput(input);
64
+ }
65
+ };
66
+ });
67
+ this.name = options.name;
68
+ this.id = options.id;
69
+ this.sortField = options.id;
70
+ this.formField = options.id;
71
+ this.type = options.type;
72
+ this.componentConfig = options.componentConfig;
73
+ this.rules = [];
74
+ this.align = 'left';
75
+ this.width = 200;
76
+ this.isCombinationComponent = false;
77
+ this.canSort = false;
78
+ this.dataType = 'object';
79
+ this.children = [];
80
+ });
81
+ export default InterceptItem;
@@ -0,0 +1,35 @@
1
+ import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from '../../type';
2
+ import React from 'react';
3
+ declare class InterceptSenderMobile implements ComponentInterface {
4
+ name: string;
5
+ id: string;
6
+ companyId: string;
7
+ type: string;
8
+ rules: any[];
9
+ componentConfig: ComponentInterface['componentConfig'];
10
+ effects: ComponentInterface['effects'];
11
+ align: ALignType;
12
+ width: number;
13
+ isCombinationComponent: boolean;
14
+ sortField: string;
15
+ formField: string;
16
+ canSort: boolean;
17
+ dataType: ComponentInterface['dataType'];
18
+ children: ComponentInterface[];
19
+ constructor(options: PickOption);
20
+ renderMobile: (record: any) => React.JSX.Element;
21
+ getComponentValue: (r: Record) => any;
22
+ renderClient: () => null;
23
+ renderPc: (value: any, record: Record) => React.JSX.Element | null;
24
+ renderLog: () => null;
25
+ renderExport: (value: any, record: Record) => any;
26
+ editRender: () => null;
27
+ filterConfig: (item: ColumnConfig) => {
28
+ searchDefaultConditions: "like";
29
+ type: string;
30
+ id: string;
31
+ name: string;
32
+ filterComponentType: "Input";
33
+ };
34
+ }
35
+ export default InterceptSenderMobile;
@@ -0,0 +1,82 @@
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 { isNull } from '@kmkf-fe-packages/kmkf-utils';
10
+ import { SYMBOL } from "../../constant";
11
+ var InterceptSenderMobile = /*#__PURE__*/_createClass(function InterceptSenderMobile(options) {
12
+ var _this = this;
13
+ _classCallCheck(this, InterceptSenderMobile);
14
+ _defineProperty(this, "name", void 0);
15
+ _defineProperty(this, "id", void 0);
16
+ _defineProperty(this, "companyId", void 0);
17
+ _defineProperty(this, "type", void 0);
18
+ _defineProperty(this, "rules", void 0);
19
+ _defineProperty(this, "componentConfig", void 0);
20
+ _defineProperty(this, "effects", void 0);
21
+ _defineProperty(this, "align", void 0);
22
+ _defineProperty(this, "width", void 0);
23
+ _defineProperty(this, "isCombinationComponent", void 0);
24
+ _defineProperty(this, "sortField", void 0);
25
+ _defineProperty(this, "formField", void 0);
26
+ _defineProperty(this, "canSort", void 0);
27
+ _defineProperty(this, "dataType", void 0);
28
+ _defineProperty(this, "children", void 0);
29
+ _defineProperty(this, "renderMobile", function (record) {
30
+ var logisticsInterceptList = record["".concat(_this.id, "_logisticsInterceptList")] || [];
31
+ return /*#__PURE__*/React.createElement(React.Fragment, null, logisticsInterceptList.map(function (item, index) {
32
+ return /*#__PURE__*/React.createElement("div", null, "\u5305\u88F9".concat(index + 1, ":"), item.interceptSenderMobile);
33
+ }));
34
+ });
35
+ _defineProperty(this, "getComponentValue", function (r) {
36
+ return ((r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_logisticsInterceptList")]) || []).map(function (t) {
37
+ return t.interceptSenderMobile;
38
+ }).join(',');
39
+ });
40
+ _defineProperty(this, "renderClient", function () {
41
+ return null;
42
+ });
43
+ _defineProperty(this, "renderPc", function (value, record) {
44
+ var logisticsInterceptList = record["".concat(_this.id, "_logisticsInterceptList")];
45
+ return !isNull(logisticsInterceptList) ? _this.renderMobile(record) : null;
46
+ });
47
+ _defineProperty(this, "renderLog", function () {
48
+ return null;
49
+ });
50
+ _defineProperty(this, "renderExport", function (value, record) {
51
+ var _this$getComponentVal;
52
+ return (_this$getComponentVal = _this.getComponentValue(record)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal : '--';
53
+ });
54
+ _defineProperty(this, "editRender", function () {
55
+ return null;
56
+ });
57
+ _defineProperty(this, "filterConfig", function (item) {
58
+ return {
59
+ searchDefaultConditions: SYMBOL.like,
60
+ type: item.type,
61
+ id: "".concat(item.id, "_logisticsInterceptList"),
62
+ name: "".concat(item.name, "-\u53D1\u4EF6\u4EBA\u624B\u673A\u53F7"),
63
+ filterComponentType: 'Input'
64
+ };
65
+ });
66
+ this.name = '发件人手机号';
67
+ this.id = "".concat(options.id, "_interceptMobileList");
68
+ this.companyId = "".concat(options.id);
69
+ this.formField = "".concat(options.id);
70
+ this.sortField = "".concat(options.id);
71
+ this.dataType = 'string';
72
+ this.type = options.type;
73
+ this.componentConfig = options.componentConfig;
74
+ this.rules = [];
75
+ this.align = 'left';
76
+ this.width = 200;
77
+ this.isCombinationComponent = false;
78
+ this.canSort = false;
79
+ this.children = [];
80
+ this.effects = options === null || options === void 0 ? void 0 : options.effects;
81
+ });
82
+ export default InterceptSenderMobile;
@@ -0,0 +1,34 @@
1
+ import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from "../../type";
2
+ import React from "react";
3
+ declare class InterceptSnapshot implements ComponentInterface {
4
+ name: string;
5
+ id: string;
6
+ type: string;
7
+ rules: any[];
8
+ componentConfig: ComponentInterface["componentConfig"];
9
+ effects: ComponentInterface["effects"];
10
+ align: ALignType;
11
+ width: number;
12
+ isCombinationComponent: boolean;
13
+ sortField: string;
14
+ formField: string;
15
+ canSort: boolean;
16
+ dataType: ComponentInterface["dataType"];
17
+ children: ComponentInterface[];
18
+ constructor(options: PickOption);
19
+ renderSnapshot: (record: any) => React.JSX.Element;
20
+ getComponentValue: (r: Record) => any;
21
+ renderClient: () => null;
22
+ renderPc: (value: any, record: Record) => React.JSX.Element | "--";
23
+ renderLog: () => null;
24
+ renderExport: (value: any, record: Record) => any;
25
+ editRender: () => null;
26
+ filterConfig: (item: ColumnConfig) => {
27
+ searchDefaultConditions: "like";
28
+ type: string;
29
+ id: string;
30
+ name: string;
31
+ filterComponentType: "Input";
32
+ };
33
+ }
34
+ export default InterceptSnapshot;
@@ -0,0 +1,81 @@
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 { isNull } from "@kmkf-fe-packages/kmkf-utils";
10
+ import { SYMBOL } from "../../constant";
11
+ var InterceptSnapshot = /*#__PURE__*/_createClass(function InterceptSnapshot(options) {
12
+ var _this = this;
13
+ _classCallCheck(this, InterceptSnapshot);
14
+ _defineProperty(this, "name", void 0);
15
+ _defineProperty(this, "id", void 0);
16
+ _defineProperty(this, "type", void 0);
17
+ _defineProperty(this, "rules", void 0);
18
+ _defineProperty(this, "componentConfig", void 0);
19
+ _defineProperty(this, "effects", void 0);
20
+ _defineProperty(this, "align", void 0);
21
+ _defineProperty(this, "width", void 0);
22
+ _defineProperty(this, "isCombinationComponent", void 0);
23
+ _defineProperty(this, "sortField", void 0);
24
+ _defineProperty(this, "formField", void 0);
25
+ _defineProperty(this, "canSort", void 0);
26
+ _defineProperty(this, "dataType", void 0);
27
+ _defineProperty(this, "children", void 0);
28
+ _defineProperty(this, "renderSnapshot", function (record) {
29
+ var snapshotList = record[_this.id] || [];
30
+ return /*#__PURE__*/React.createElement(React.Fragment, null, snapshotList.map(function (item, index) {
31
+ return /*#__PURE__*/React.createElement("div", null, "\u5305\u88F9".concat(index + 1, ":"), item);
32
+ }));
33
+ });
34
+ _defineProperty(this, "getComponentValue", function (r) {
35
+ var _r$_this$id;
36
+ return r === null || r === void 0 ? void 0 : (_r$_this$id = r[_this.id]) === null || _r$_this$id === void 0 ? void 0 : _r$_this$id.join(",");
37
+ });
38
+ _defineProperty(this, "renderClient", function () {
39
+ return null;
40
+ });
41
+ _defineProperty(this, "renderPc", function (value, record) {
42
+ return !isNull(record[_this.id]) ? _this.renderSnapshot(record) : "--";
43
+ });
44
+ _defineProperty(this, "renderLog", function () {
45
+ return null;
46
+ });
47
+ _defineProperty(this, "renderExport", function (value, record) {
48
+ var _this$getComponentVal;
49
+ return (_this$getComponentVal = _this.getComponentValue(record)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal : "--";
50
+ });
51
+ _defineProperty(this, "editRender", function () {
52
+ return null;
53
+ });
54
+ _defineProperty(this, "filterConfig", function (item) {
55
+ return {
56
+ searchDefaultConditions: SYMBOL.like,
57
+ type: item.type,
58
+ id: "".concat(item.id, "_logisticsInterceptSnapshotList"),
59
+ name: "".concat(item.name, "-\u5FEB\u7167"),
60
+ filterComponentType: "Input"
61
+ // formatFilterValue: (input: string) => {
62
+ // return batchInput(input);
63
+ // },
64
+ };
65
+ });
66
+ this.name = "快照";
67
+ this.id = "".concat(options.id, "_logisticsInterceptSnapshotList");
68
+ this.formField = "".concat(options.id, "_logisticsInterceptSnapshotList");
69
+ this.sortField = "".concat(options.id, "_logisticsInterceptSnapshotList");
70
+ this.dataType = "object";
71
+ this.type = options.type;
72
+ this.componentConfig = options.componentConfig;
73
+ this.rules = [];
74
+ this.align = "left";
75
+ this.width = 200;
76
+ this.isCombinationComponent = false;
77
+ this.canSort = false;
78
+ this.children = [];
79
+ this.effects = options === null || options === void 0 ? void 0 : options.effects;
80
+ });
81
+ export default InterceptSnapshot;
@@ -107,10 +107,10 @@ var LogisticsMoreTrajectory = /*#__PURE__*/_createClass(function LogisticsMoreTr
107
107
  var hasNoCode = value.some(function (item) {
108
108
  return !item.trajectoryCode;
109
109
  });
110
- if (!hasNoCompany) {
110
+ if (hasNoCompany) {
111
111
  return Promise.reject(new Error("请选择物流公司"));
112
112
  }
113
- if (!hasNoCode) {
113
+ if (hasNoCode) {
114
114
  return Promise.reject(new Error("请输入物流单号"));
115
115
  }
116
116
  return Promise.resolve();
@@ -1,5 +1,5 @@
1
- import { ComponentInterface, PickOption, ColumnConfig, Record } from '../../type';
2
- import React from 'react';
1
+ import { ComponentInterface, PickOption, ColumnConfig, Record } from "../../type";
2
+ import React from "react";
3
3
  declare class BasicMultSelect implements ComponentInterface {
4
4
  name: string;
5
5
  id: string;
@@ -11,8 +11,8 @@ declare class BasicMultSelect implements ComponentInterface {
11
11
  formField: string;
12
12
  canSort: boolean;
13
13
  children: ComponentInterface[];
14
- dataType: ComponentInterface['dataType'];
15
- options: ComponentInterface['options'];
14
+ dataType: ComponentInterface["dataType"];
15
+ options: ComponentInterface["options"];
16
16
  constructor(options: PickOption);
17
17
  renderClient: (record: any) => React.JSX.Element | null;
18
18
  renderPc: (value: any, record: Record) => React.JSX.Element;
@@ -6,12 +6,12 @@ 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 intersection from 'lodash/intersection';
11
- import { ApaasMultipleSelect } from '@kmkf-fe-packages/basic-components';
9
+ import React from "react";
10
+ import intersection from "lodash/intersection";
11
+ import { ApaasMultipleSelect } from "@kmkf-fe-packages/basic-components";
12
12
  import GetFormItem from "../GetFormItem";
13
13
  import ItemView from "../../commonComponents/ItemView";
14
- import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
14
+ import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
15
15
  import { SYMBOL } from "../../constant";
16
16
  var BasicMultSelect = /*#__PURE__*/_createClass(function BasicMultSelect(options) {
17
17
  var _this = this,
@@ -34,15 +34,15 @@ var BasicMultSelect = /*#__PURE__*/_createClass(function BasicMultSelect(options
34
34
  return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
35
35
  id: _this.id,
36
36
  label: _this.name,
37
- value: record === null || record === void 0 ? void 0 : (_record$_this$id = record[_this.id]) === null || _record$_this$id === void 0 ? void 0 : _record$_this$id.join(',')
37
+ value: record === null || record === void 0 ? void 0 : (_record$_this$id = record[_this.id]) === null || _record$_this$id === void 0 ? void 0 : _record$_this$id.join(",")
38
38
  }) : null;
39
39
  });
40
40
  _defineProperty(this, "renderPc", function (value, record) {
41
41
  var _record;
42
- if ((record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_basicMultSelect")]) === undefined) {
42
+ if (isNull(record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_basicMultSelect")])) {
43
43
  return /*#__PURE__*/React.createElement("span", null, "--");
44
44
  }
45
- return /*#__PURE__*/React.createElement("span", null, record === null || record === void 0 ? void 0 : (_record = record["".concat(_this.id, "_basicMultSelect")]) === null || _record === void 0 ? void 0 : _record.join(','));
45
+ return /*#__PURE__*/React.createElement("span", null, record === null || record === void 0 ? void 0 : (_record = record["".concat(_this.id, "_basicMultSelect")]) === null || _record === void 0 ? void 0 : _record.join(","));
46
46
  });
47
47
  _defineProperty(this, "renderLog", function (r) {
48
48
  if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_basicMultSelect")])) return null;
@@ -53,10 +53,10 @@ var BasicMultSelect = /*#__PURE__*/_createClass(function BasicMultSelect(options
53
53
  });
54
54
  _defineProperty(this, "renderExport", function (value, record) {
55
55
  var _record2;
56
- if ((record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_basicMultSelect")]) === undefined) {
57
- return '--';
56
+ if (isNull(record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_basicMultSelect")])) {
57
+ return "--";
58
58
  }
59
- return record === null || record === void 0 ? void 0 : (_record2 = record["".concat(_this.id, "_basicMultSelect")]) === null || _record2 === void 0 ? void 0 : _record2.join(',');
59
+ return record === null || record === void 0 ? void 0 : (_record2 = record["".concat(_this.id, "_basicMultSelect")]) === null || _record2 === void 0 ? void 0 : _record2.join(",");
60
60
  });
61
61
  _defineProperty(this, "editRender", function (p) {
62
62
  var _this$componentConfig, _this$componentConfig2;
@@ -81,13 +81,13 @@ var BasicMultSelect = /*#__PURE__*/_createClass(function BasicMultSelect(options
81
81
  // 过滤组件id
82
82
  name: item.name,
83
83
  // 过滤组件名称
84
- filterComponentType: 'MultipleSelect',
84
+ filterComponentType: "MultipleSelect",
85
85
  props: {
86
86
  options: (item === null || item === void 0 ? void 0 : (_item$config = item.config) === null || _item$config === void 0 ? void 0 : _item$config.options) || []
87
87
  },
88
88
  filterFn: function filterFn(value) {
89
89
  return function (i) {
90
- return intersection(value, _filterFn.filterTableListItemColumnValue(i, item.id, 'basicMultSelect')).length > 0;
90
+ return intersection(value, _filterFn.filterTableListItemColumnValue(i, item.id, "basicMultSelect")).length > 0;
91
91
  };
92
92
  }
93
93
  };
@@ -102,7 +102,7 @@ var BasicMultSelect = /*#__PURE__*/_createClass(function BasicMultSelect(options
102
102
  this.isCombinationComponent = false;
103
103
  this.canSort = true;
104
104
  this.children = [];
105
- this.dataType = 'array';
105
+ this.dataType = "array";
106
106
  this.options = ((_this$componentConfig3 = this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.options) || [];
107
107
  });
108
108
  export default BasicMultSelect;
@@ -1,5 +1,5 @@
1
- import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from '../../type';
2
- import React from 'react';
1
+ import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from "../../type";
2
+ import React from "react";
3
3
  declare class PaymentStatus implements ComponentInterface {
4
4
  name: string;
5
5
  id: string;
@@ -20,8 +20,8 @@ declare class PaymentStatus implements ComponentInterface {
20
20
  formField: string;
21
21
  canSort: boolean;
22
22
  children: ComponentInterface[];
23
- dataType: ComponentInterface['dataType'];
24
- options: ComponentInterface['options'];
23
+ dataType: ComponentInterface["dataType"];
24
+ options: ComponentInterface["options"];
25
25
  constructor(options: PickOption);
26
26
  renderClient: (record: any) => React.JSX.Element | null;
27
27
  renderPc: (value: unknown, record: any) => any;