@kmkf-fe-packages/services-components 0.7.15-alpha.3 → 0.7.15-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 (45) hide show
  1. package/dist/esm/commonComponents/QueryLogisticsTrack/index.js +23 -21
  2. package/dist/esm/components/BS/BsExchange/index.d.ts +4 -3
  3. package/dist/esm/components/BS/BsExchange/index.js +194 -16
  4. package/dist/esm/components/BS/BsGoods/index.d.ts +4 -4
  5. package/dist/esm/components/BS/BsGoods/index.js +55 -22
  6. package/dist/esm/components/BS/BsLogistics/index.d.ts +7 -7
  7. package/dist/esm/components/BS/BsLogistics/index.js +14 -14
  8. package/dist/esm/components/BS/BsReissue/index.d.ts +4 -8
  9. package/dist/esm/components/BS/BsReissue/index.js +83 -24
  10. package/dist/esm/components/BS/common/BsHeaderCode.d.ts +25 -0
  11. package/dist/esm/components/BS/common/BsHeaderCode.js +71 -0
  12. package/dist/esm/components/BS/common/BsHeaderMoney.d.ts +25 -0
  13. package/dist/esm/components/BS/common/BsHeaderMoney.js +71 -0
  14. package/dist/esm/components/BS/common/BsHeaderName.d.ts +25 -0
  15. package/dist/esm/components/BS/common/BsHeaderName.js +71 -0
  16. package/dist/esm/components/BS/common/BsHeaderNumber.d.ts +25 -0
  17. package/dist/esm/components/BS/common/BsHeaderNumber.js +71 -0
  18. package/dist/esm/components/BS/common/BsHeaderPic.d.ts +25 -0
  19. package/dist/esm/components/BS/common/BsHeaderPic.js +72 -0
  20. package/dist/esm/components/BS/common/BsHeaderShare.d.ts +25 -0
  21. package/dist/esm/components/BS/common/BsHeaderShare.js +71 -0
  22. package/dist/esm/components/BS/common/BsHeaderSku.d.ts +25 -0
  23. package/dist/esm/components/BS/common/BsHeaderSku.js +71 -0
  24. package/dist/esm/components/BS/common/BsHeaderType.d.ts +25 -0
  25. package/dist/esm/components/BS/common/BsHeaderType.js +71 -0
  26. package/dist/esm/components/BS/common/index.d.ts +10 -0
  27. package/dist/esm/components/BS/common/index.js +10 -0
  28. package/dist/esm/components/Cascader/index.js +1 -1
  29. package/dist/esm/components/Common/index.d.ts +1 -0
  30. package/dist/esm/components/Common/index.js +11 -1
  31. package/dist/esm/components/DataTime/ApaasDate.d.ts +2 -2
  32. package/dist/esm/components/EItemEnCode/ItemEncode.d.ts +2 -2
  33. package/dist/esm/components/EItemId/ItemId.d.ts +2 -2
  34. package/dist/esm/components/EItemSelect/ItemSelect.d.ts +2 -2
  35. package/dist/esm/components/ExpressCompany/index.d.ts +2 -2
  36. package/dist/esm/components/LogisticsTrajectory/index.d.ts +0 -2
  37. package/dist/esm/components/LogisticsTrajectory/trajectoryCode.js +5 -4
  38. package/dist/esm/components/LogisticsTrajectory/trajectoryCompany.d.ts +0 -1
  39. package/dist/esm/components/LogisticsTrajectory/trajectoryCompany.js +2 -8
  40. package/dist/esm/components/LogisticsTrajectory/trajectorySnapshot.d.ts +0 -1
  41. package/dist/esm/components/LogisticsTrajectory/trajectorySnapshot.js +3 -9
  42. package/dist/esm/components/Popover/index.d.ts +2 -2
  43. package/dist/esm/components/ThirdItemSelect/ItemEncode.d.ts +2 -2
  44. package/dist/esm/type.d.ts +1 -0
  45. package/package.json +4 -4
@@ -0,0 +1,72 @@
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 { BsGoodPic } from "../../Common";
11
+ import { isNull } from '@kmkf-fe-packages/kmkf-utils';
12
+ var BsChildPic = /*#__PURE__*/_createClass(function BsChildPic(options) {
13
+ var _this = this;
14
+ _classCallCheck(this, BsChildPic);
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, "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, "renderClient", function (record) {
28
+ return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
29
+ id: _this.id,
30
+ label: _this.name,
31
+ value: _this.getComponentValue(record)
32
+ }) : null;
33
+ });
34
+ _defineProperty(this, "renderPc", function (value, record) {
35
+ var _BsGoodPic;
36
+ return (_BsGoodPic = BsGoodPic(_this.getComponentValue(record))) !== null && _BsGoodPic !== void 0 ? _BsGoodPic : '--';
37
+ });
38
+ _defineProperty(this, "renderLog", function (r) {
39
+ if (isNull(r === null || r === void 0 ? void 0 : r[_this.id])) return null;
40
+ return _this.renderPc(undefined, r);
41
+ });
42
+ _defineProperty(this, "getComponentValue", function (r) {
43
+ var list = ((r === null || r === void 0 ? void 0 : r[_this.id]) || []).reduce(function (prv, next) {
44
+ next['pic'] && prv.push(next['pic']);
45
+ return prv;
46
+ }, []);
47
+ return list;
48
+ });
49
+ _defineProperty(this, "renderExport", function (value, record) {
50
+ var _this$getComponentVal;
51
+ return (_this$getComponentVal = _this.getComponentValue(record).join(',')) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal : '--';
52
+ });
53
+ _defineProperty(this, "editRender", function () {
54
+ return null;
55
+ });
56
+ _defineProperty(this, "filterConfig", function () {
57
+ return [];
58
+ });
59
+ this.name = options.name;
60
+ this.id = options.id;
61
+ this.sortField = options.id;
62
+ this.formField = options.id;
63
+ this.type = options.type;
64
+ this.componentConfig = options.componentConfig;
65
+ this.align = 'left';
66
+ this.width = 200;
67
+ this.isCombinationComponent = false;
68
+ this.canSort = true;
69
+ this.dataType = 'string';
70
+ this.children = [];
71
+ });
72
+ export default BsChildPic;
@@ -0,0 +1,25 @@
1
+ import { ComponentInterface, PickOption, ALignType, Record } from "../../../type";
2
+ import React from "react";
3
+ declare class BsChildShare implements ComponentInterface {
4
+ name: string;
5
+ id: string;
6
+ sortField: string;
7
+ type: string;
8
+ componentConfig: ComponentInterface["componentConfig"];
9
+ align: ALignType;
10
+ width: number;
11
+ isCombinationComponent: boolean;
12
+ formField: string;
13
+ canSort: boolean;
14
+ children: ComponentInterface[];
15
+ dataType: ComponentInterface["dataType"];
16
+ constructor(options: PickOption);
17
+ renderClient: (record: any) => React.JSX.Element | null;
18
+ renderPc: (value: unknown, record: Record) => React.JSX.Element;
19
+ renderLog: (r: Record) => React.JSX.Element | null;
20
+ getComponentValue: (r: Record) => any;
21
+ renderExport: (value: string, record: Record) => any;
22
+ editRender: () => null;
23
+ filterConfig: () => never[];
24
+ }
25
+ export default BsChildShare;
@@ -0,0 +1,71 @@
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 BsChildShare = /*#__PURE__*/_createClass(function BsChildShare(options) {
12
+ var _this = this;
13
+ _classCallCheck(this, BsChildShare);
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, "componentConfig", void 0);
19
+ _defineProperty(this, "align", void 0);
20
+ _defineProperty(this, "width", void 0);
21
+ _defineProperty(this, "isCombinationComponent", void 0);
22
+ _defineProperty(this, "formField", void 0);
23
+ _defineProperty(this, "canSort", void 0);
24
+ _defineProperty(this, "children", void 0);
25
+ _defineProperty(this, "dataType", void 0);
26
+ _defineProperty(this, "renderClient", function (record) {
27
+ return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
28
+ id: _this.id,
29
+ label: _this.name,
30
+ value: _this.getComponentValue(record)
31
+ }) : null;
32
+ });
33
+ _defineProperty(this, "renderPc", function (value, record) {
34
+ var _this$getComponentVal;
35
+ return /*#__PURE__*/React.createElement("span", null, (_this$getComponentVal = _this.getComponentValue(record)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal : "--");
36
+ });
37
+ _defineProperty(this, "renderLog", function (r) {
38
+ if (isNull(r === null || r === void 0 ? void 0 : r[_this.id])) return null;
39
+ return _this.renderPc(undefined, r);
40
+ });
41
+ _defineProperty(this, "getComponentValue", function (r) {
42
+ var list = ((r === null || r === void 0 ? void 0 : r[_this.id]) || []).reduce(function (prv, next) {
43
+ next["share"] && prv.push(next["share"]);
44
+ return prv;
45
+ }, []);
46
+ return list.join(",");
47
+ });
48
+ _defineProperty(this, "renderExport", function (value, record) {
49
+ var _this$getComponentVal2;
50
+ return (_this$getComponentVal2 = _this.getComponentValue(record)) !== null && _this$getComponentVal2 !== void 0 ? _this$getComponentVal2 : "--";
51
+ });
52
+ _defineProperty(this, "editRender", function () {
53
+ return null;
54
+ });
55
+ _defineProperty(this, "filterConfig", function () {
56
+ return [];
57
+ });
58
+ this.name = options.name;
59
+ this.id = options.id;
60
+ this.sortField = options.id;
61
+ this.formField = options.id;
62
+ this.type = options.type;
63
+ this.componentConfig = options.componentConfig;
64
+ this.align = "left";
65
+ this.width = 200;
66
+ this.isCombinationComponent = false;
67
+ this.canSort = true;
68
+ this.dataType = "string";
69
+ this.children = [];
70
+ });
71
+ export default BsChildShare;
@@ -0,0 +1,25 @@
1
+ import { ComponentInterface, PickOption, ALignType, Record } from "../../../type";
2
+ import React from "react";
3
+ declare class BsChildSku implements ComponentInterface {
4
+ name: string;
5
+ id: string;
6
+ sortField: string;
7
+ type: string;
8
+ componentConfig: ComponentInterface["componentConfig"];
9
+ align: ALignType;
10
+ width: number;
11
+ isCombinationComponent: boolean;
12
+ formField: string;
13
+ canSort: boolean;
14
+ children: ComponentInterface[];
15
+ dataType: ComponentInterface["dataType"];
16
+ constructor(options: PickOption);
17
+ renderClient: (record: any) => React.JSX.Element | null;
18
+ renderPc: (value: unknown, record: Record) => React.JSX.Element;
19
+ renderLog: (r: Record) => React.JSX.Element | null;
20
+ getComponentValue: (r: Record) => any;
21
+ renderExport: (value: string, record: Record) => any;
22
+ editRender: () => null;
23
+ filterConfig: () => never[];
24
+ }
25
+ export default BsChildSku;
@@ -0,0 +1,71 @@
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 BsChildSku = /*#__PURE__*/_createClass(function BsChildSku(options) {
12
+ var _this = this;
13
+ _classCallCheck(this, BsChildSku);
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, "componentConfig", void 0);
19
+ _defineProperty(this, "align", void 0);
20
+ _defineProperty(this, "width", void 0);
21
+ _defineProperty(this, "isCombinationComponent", void 0);
22
+ _defineProperty(this, "formField", void 0);
23
+ _defineProperty(this, "canSort", void 0);
24
+ _defineProperty(this, "children", void 0);
25
+ _defineProperty(this, "dataType", void 0);
26
+ _defineProperty(this, "renderClient", function (record) {
27
+ return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
28
+ id: _this.id,
29
+ label: _this.name,
30
+ value: _this.getComponentValue(record)
31
+ }) : null;
32
+ });
33
+ _defineProperty(this, "renderPc", function (value, record) {
34
+ var _this$getComponentVal;
35
+ return /*#__PURE__*/React.createElement("span", null, (_this$getComponentVal = _this.getComponentValue(record)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal : "--");
36
+ });
37
+ _defineProperty(this, "renderLog", function (r) {
38
+ if (isNull(r === null || r === void 0 ? void 0 : r[_this.id])) return null;
39
+ return _this.renderPc(undefined, r);
40
+ });
41
+ _defineProperty(this, "getComponentValue", function (r) {
42
+ var list = ((r === null || r === void 0 ? void 0 : r[_this.id]) || []).reduce(function (prv, next) {
43
+ next["sku"] && prv.push(next["sku"]);
44
+ return prv;
45
+ }, []);
46
+ return list.join(",");
47
+ });
48
+ _defineProperty(this, "renderExport", function (value, record) {
49
+ var _this$getComponentVal2;
50
+ return (_this$getComponentVal2 = _this.getComponentValue(record)) !== null && _this$getComponentVal2 !== void 0 ? _this$getComponentVal2 : "--";
51
+ });
52
+ _defineProperty(this, "editRender", function () {
53
+ return null;
54
+ });
55
+ _defineProperty(this, "filterConfig", function () {
56
+ return [];
57
+ });
58
+ this.name = options.name;
59
+ this.id = options.id;
60
+ this.sortField = options.id;
61
+ this.formField = options.id;
62
+ this.type = options.type;
63
+ this.componentConfig = options.componentConfig;
64
+ this.align = "left";
65
+ this.width = 200;
66
+ this.isCombinationComponent = false;
67
+ this.canSort = true;
68
+ this.dataType = "string";
69
+ this.children = [];
70
+ });
71
+ export default BsChildSku;
@@ -0,0 +1,25 @@
1
+ import { ComponentInterface, PickOption, ALignType, Record } from "../../../type";
2
+ import React from "react";
3
+ declare class BsChildType implements ComponentInterface {
4
+ name: string;
5
+ id: string;
6
+ sortField: string;
7
+ type: string;
8
+ componentConfig: ComponentInterface["componentConfig"];
9
+ align: ALignType;
10
+ width: number;
11
+ isCombinationComponent: boolean;
12
+ formField: string;
13
+ canSort: boolean;
14
+ children: ComponentInterface[];
15
+ dataType: ComponentInterface["dataType"];
16
+ constructor(options: PickOption);
17
+ renderClient: (record: any) => React.JSX.Element | null;
18
+ renderPc: (value: unknown, record: Record) => React.JSX.Element;
19
+ renderLog: (r: Record) => React.JSX.Element | null;
20
+ getComponentValue: (r: Record) => any;
21
+ renderExport: (value: string, record: Record) => any;
22
+ editRender: () => null;
23
+ filterConfig: () => never[];
24
+ }
25
+ export default BsChildType;
@@ -0,0 +1,71 @@
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 BsChildType = /*#__PURE__*/_createClass(function BsChildType(options) {
12
+ var _this = this;
13
+ _classCallCheck(this, BsChildType);
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, "componentConfig", void 0);
19
+ _defineProperty(this, "align", void 0);
20
+ _defineProperty(this, "width", void 0);
21
+ _defineProperty(this, "isCombinationComponent", void 0);
22
+ _defineProperty(this, "formField", void 0);
23
+ _defineProperty(this, "canSort", void 0);
24
+ _defineProperty(this, "children", void 0);
25
+ _defineProperty(this, "dataType", void 0);
26
+ _defineProperty(this, "renderClient", function (record) {
27
+ return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
28
+ id: _this.id,
29
+ label: _this.name,
30
+ value: _this.getComponentValue(record)
31
+ }) : null;
32
+ });
33
+ _defineProperty(this, "renderPc", function (value, record) {
34
+ var _this$getComponentVal;
35
+ return /*#__PURE__*/React.createElement("span", null, (_this$getComponentVal = _this.getComponentValue(record)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal : "--");
36
+ });
37
+ _defineProperty(this, "renderLog", function (r) {
38
+ if (isNull(r === null || r === void 0 ? void 0 : r[_this.id])) return null;
39
+ return _this.renderPc(undefined, r);
40
+ });
41
+ _defineProperty(this, "getComponentValue", function (r) {
42
+ var list = ((r === null || r === void 0 ? void 0 : r[_this.id]) || []).reduce(function (prv, next) {
43
+ next["type"] && prv.push(next["type"]);
44
+ return prv;
45
+ }, []);
46
+ return list.join(",");
47
+ });
48
+ _defineProperty(this, "renderExport", function (value, record) {
49
+ var _this$getComponentVal2;
50
+ return (_this$getComponentVal2 = _this.getComponentValue(record)) !== null && _this$getComponentVal2 !== void 0 ? _this$getComponentVal2 : "--";
51
+ });
52
+ _defineProperty(this, "editRender", function () {
53
+ return null;
54
+ });
55
+ _defineProperty(this, "filterConfig", function () {
56
+ return [];
57
+ });
58
+ this.name = options.name;
59
+ this.id = options.id;
60
+ this.sortField = options.id;
61
+ this.formField = options.id;
62
+ this.type = options.type;
63
+ this.componentConfig = options.componentConfig;
64
+ this.align = "left";
65
+ this.width = 200;
66
+ this.isCombinationComponent = false;
67
+ this.canSort = true;
68
+ this.dataType = "string";
69
+ this.children = [];
70
+ });
71
+ export default BsChildType;
@@ -0,0 +1,10 @@
1
+ export { default as BsType } from './BsType';
2
+ export { default as BsMemo } from './BsMemo';
3
+ export { default as BsHeaderPic } from './BsHeaderPic';
4
+ export { default as BsHeaderName } from './BsHeaderName';
5
+ export { default as BsHeaderCode } from './BsHeaderCode';
6
+ export { default as BsHeaderSku } from './BsHeaderSku';
7
+ export { default as BsHeaderMoney } from './BsHeaderMoney';
8
+ export { default as BsHeaderNumber } from './BsHeaderNumber';
9
+ export { default as BsHeaderShare } from './BsHeaderShare';
10
+ export { default as BsHeaderType } from './BsHeaderType';
@@ -0,0 +1,10 @@
1
+ export { default as BsType } from "./BsType";
2
+ export { default as BsMemo } from "./BsMemo";
3
+ export { default as BsHeaderPic } from "./BsHeaderPic";
4
+ export { default as BsHeaderName } from "./BsHeaderName";
5
+ export { default as BsHeaderCode } from "./BsHeaderCode";
6
+ export { default as BsHeaderSku } from "./BsHeaderSku";
7
+ export { default as BsHeaderMoney } from "./BsHeaderMoney";
8
+ export { default as BsHeaderNumber } from "./BsHeaderNumber";
9
+ export { default as BsHeaderShare } from "./BsHeaderShare";
10
+ export { default as BsHeaderType } from "./BsHeaderType";
@@ -139,7 +139,7 @@ var BasicCascader = /*#__PURE__*/_createClass(function BasicCascader(_options) {
139
139
  this.children = [];
140
140
  this.isCombinationComponent = false;
141
141
  this.canSort = true;
142
- this.dataType = 'object'; // FIXME: 多级下拉这种不知道要如何去做条件判断
142
+ this.dataType = 'array';
143
143
  }
144
144
 
145
145
  /**
@@ -20,4 +20,5 @@ export declare const BsGoodImage: ({ item, index }: {
20
20
  index: number;
21
21
  }) => React.JSX.Element;
22
22
  export declare const BsExchangeList: ({ list }: any) => React.JSX.Element;
23
+ export declare const BsGoodPic: (list: string[]) => React.JSX.Element[];
23
24
  export {};
@@ -221,7 +221,7 @@ export var JstGoodImage = function JstGoodImage(_ref6) {
221
221
  }, "\u5305\u88F9".concat(index + 1), ":")), type === 1 ? /*#__PURE__*/React.createElement("span", null, company && item.logisticsCode ? [company, item.logisticsCode].join("/") : company ? company : item.logisticsCode) : null, type === 2 ? /*#__PURE__*/React.createElement("span", null, item.supplyName && item.supplyId ? [item.supplyId, item.supplyName].join("/") : item.supplyId ? item.supplyId : item.supplyName) : null, type === 3 ? /*#__PURE__*/React.createElement("span", null, item.sendName && item.sendId ? [item.sendId, item.sendName].join("/") : item.sendId ? item.sendId : item.sendName) : null));
222
222
  }) : null;
223
223
  };
224
- //bs商品展示
224
+ //bs商品展示 todo
225
225
  export var BsGoodImage = function BsGoodImage(_ref7) {
226
226
  var item = _ref7.item,
227
227
  index = _ref7.index;
@@ -254,6 +254,7 @@ export var BsGoodImage = function BsGoodImage(_ref7) {
254
254
  }) : null;
255
255
  })));
256
256
  };
257
+ //bs换货 todo
257
258
  export var BsExchangeList = function BsExchangeList(_ref8) {
258
259
  var list = _ref8.list;
259
260
  return /*#__PURE__*/React.createElement("div", {
@@ -275,4 +276,13 @@ export var BsExchangeList = function BsExchangeList(_ref8) {
275
276
  });
276
277
  })));
277
278
  }));
279
+ };
280
+ //bs图片展示
281
+ export var BsGoodPic = function BsGoodPic(list) {
282
+ return list.map(function (t) {
283
+ return /*#__PURE__*/React.createElement(Image, {
284
+ width: 60,
285
+ src: t
286
+ });
287
+ });
278
288
  };
@@ -1,9 +1,9 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  declare const DateType: ['DATE', 'DATE_TIME', 'DATE_RANGE', 'DATE_TIME_RANGE'];
3
3
  export declare type ButtonType = typeof DateType[number];
4
4
  export interface ApaasDate {
5
5
  dateType?: ButtonType;
6
6
  [propName: string]: any;
7
7
  }
8
- declare const Date: (props: ApaasDate) => JSX.Element;
8
+ declare const Date: (props: ApaasDate) => React.JSX.Element;
9
9
  export default Date;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
- declare const ItemEncode: (props: JSX.IntrinsicAttributes & any) => JSX.Element;
1
+ import React from 'react';
2
+ declare const ItemEncode: (props: JSX.IntrinsicAttributes & any) => React.JSX.Element;
3
3
  export default ItemEncode;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { GoodsProps } from '@kmkf-fe-packages/basic-components/dist/common/Goods';
3
- declare const ItemId: (props: JSX.IntrinsicAttributes & GoodsProps) => JSX.Element;
3
+ declare const ItemId: (props: JSX.IntrinsicAttributes & GoodsProps) => React.JSX.Element;
4
4
  export default ItemId;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { GoodsProps } from '@kmkf-fe-packages/basic-components/dist/common/Goods';
3
- declare const ItemSelect: (props: JSX.IntrinsicAttributes & GoodsProps) => JSX.Element;
3
+ declare const ItemSelect: (props: JSX.IntrinsicAttributes & GoodsProps) => React.JSX.Element;
4
4
  export default ItemSelect;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
- declare const ExpressCompany: (props: any) => JSX.Element;
1
+ import React from 'react';
2
+ declare const ExpressCompany: (props: any) => React.JSX.Element;
3
3
  export default ExpressCompany;
@@ -40,14 +40,12 @@ declare class LogisticsTrajectory implements ComponentInterface {
40
40
  props: {
41
41
  options: any[];
42
42
  };
43
- filterFn: (value: string) => (i: Record) => boolean;
44
43
  } | {
45
44
  searchDefaultConditions: "like";
46
45
  type: string;
47
46
  id: string;
48
47
  name: string;
49
48
  filterComponentType: "Input";
50
- filterFn: (value: string) => (i: Record) => boolean;
51
49
  })[];
52
50
  }
53
51
  export default LogisticsTrajectory;
@@ -31,12 +31,14 @@ var TrajectoryCode = /*#__PURE__*/_createClass(function TrajectoryCode(options)
31
31
  _defineProperty(this, "renderCode", function (record) {
32
32
  var w = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;
33
33
  var company = record === null || record === void 0 ? void 0 : record["".concat(_this.parentId, "_trajectoryCompany")];
34
+ var mobile = record === null || record === void 0 ? void 0 : record["".concat(_this.parentId, "_trajectoryPhone")];
34
35
  var code = record === null || record === void 0 ? void 0 : record[_this.id];
35
36
  return /*#__PURE__*/React.createElement("div", null, code ? /*#__PURE__*/React.createElement(QueryLogisticsTrack, {
37
+ title: code,
36
38
  modelWidth: w,
37
39
  interceptCompany: company,
38
40
  interceptCode: code,
39
- interceptSenderMobile: ""
41
+ interceptSenderMobile: mobile
40
42
  }) : "--");
41
43
  });
42
44
  _defineProperty(this, "renderClient", function (record) {
@@ -64,16 +66,15 @@ var TrajectoryCode = /*#__PURE__*/_createClass(function TrajectoryCode(options)
64
66
  return null;
65
67
  });
66
68
  _defineProperty(this, "filterConfig", function (item) {
67
- var subKey = item.subKey;
68
69
  return {
69
70
  searchDefaultConditions: SYMBOL.like,
70
71
  type: item.type,
71
- id: subKey ? "".concat(item.id, "_").concat(subKey) : item.id,
72
+ id: "".concat(item.id, "_trajectoryCode"),
72
73
  name: "".concat(item.name, "-\u7269\u6D41\u5355\u53F7"),
73
74
  filterComponentType: "Input",
74
75
  filterFn: function filterFn(value) {
75
76
  return function (i) {
76
- return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, "".concat(subKey)), value);
77
+ return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, "trajectoryCode"), value);
77
78
  };
78
79
  }
79
80
  };
@@ -33,7 +33,6 @@ declare class TrajectoryCompany implements ComponentInterface {
33
33
  props: {
34
34
  options: any[];
35
35
  };
36
- filterFn: (value: string) => (i: Record) => boolean;
37
36
  };
38
37
  }
39
38
  export default TrajectoryCompany;
@@ -8,7 +8,7 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
8
8
  import React from "react";
9
9
  import { ExpressData } from "@kmkf-fe-packages/kmkf-utils";
10
10
  import ItemView from "../../commonComponents/ItemView";
11
- import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
11
+ import { isNull } from "@kmkf-fe-packages/kmkf-utils";
12
12
  import { SYMBOL } from "../../constant";
13
13
  var TrajectoryCompany = /*#__PURE__*/_createClass(function TrajectoryCompany(options) {
14
14
  var _this = this;
@@ -55,20 +55,14 @@ var TrajectoryCompany = /*#__PURE__*/_createClass(function TrajectoryCompany(opt
55
55
  return null;
56
56
  });
57
57
  _defineProperty(this, "filterConfig", function (item) {
58
- var subKey = item.subKey;
59
58
  return {
60
59
  searchDefaultConditions: SYMBOL.in,
61
60
  type: item.type,
62
- id: subKey ? "".concat(item.id, "_").concat(subKey) : item.id,
61
+ id: item.id,
63
62
  name: "".concat(item.name, "-\u7269\u6D41\u516C\u53F8"),
64
63
  filterComponentType: "MultipleSelect",
65
64
  props: {
66
65
  options: _this.expressDateInstance.getExpressData() || []
67
- },
68
- filterFn: function filterFn(value) {
69
- return function (i) {
70
- return value === null || value === void 0 ? void 0 : value.includes(_filterFn.filterTableListItemColumnValue(i, item.id, "".concat(subKey)));
71
- };
72
66
  }
73
67
  };
74
68
  });
@@ -26,7 +26,6 @@ declare class TrajectorySnapshot implements ComponentInterface {
26
26
  id: string;
27
27
  name: string;
28
28
  filterComponentType: "Input";
29
- filterFn: (value: string) => (i: Record) => boolean;
30
29
  };
31
30
  }
32
31
  export default TrajectorySnapshot;
@@ -7,7 +7,7 @@ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _ty
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
9
  import ItemView from "../../commonComponents/ItemView";
10
- import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
10
+ import { isNull } from "@kmkf-fe-packages/kmkf-utils";
11
11
  import { SYMBOL } from "../../constant";
12
12
  var TrajectorySnapshot = /*#__PURE__*/_createClass(function TrajectorySnapshot(options) {
13
13
  var _this = this;
@@ -50,18 +50,12 @@ var TrajectorySnapshot = /*#__PURE__*/_createClass(function TrajectorySnapshot(o
50
50
  return null;
51
51
  });
52
52
  _defineProperty(this, "filterConfig", function (item) {
53
- var subKey = item.subKey;
54
53
  return {
55
54
  searchDefaultConditions: SYMBOL.like,
56
55
  type: item.type,
57
- id: subKey ? "".concat(item.id, "_").concat(subKey) : item.id,
56
+ id: item.id,
58
57
  name: "".concat(item.name, "-\u7269\u6D41\u5FEB\u7167"),
59
- filterComponentType: "Input",
60
- filterFn: function filterFn(value) {
61
- return function (i) {
62
- return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, "".concat(subKey)), value);
63
- };
64
- }
58
+ filterComponentType: "Input"
65
59
  };
66
60
  });
67
61
  this.name = options.name;
@@ -1,3 +1,3 @@
1
- /// <reference types="react" />
2
- declare const Popover: ({ Overlay, ShowComponent }: any) => JSX.Element;
1
+ import React from 'react';
2
+ declare const Popover: ({ Overlay, ShowComponent }: any) => React.JSX.Element;
3
3
  export default Popover;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { GoodsProps } from '@kmkf-fe-packages/basic-components/dist/common/Goods';
3
- declare const ItemEncode: (props: JSX.IntrinsicAttributes & GoodsProps) => JSX.Element;
3
+ declare const ItemEncode: (props: JSX.IntrinsicAttributes & GoodsProps) => React.JSX.Element;
4
4
  export default ItemEncode;