@kmkf-fe-packages/services-components 0.7.15-alpha.3 → 0.7.15-alpha.31

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 (43) 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.d.ts +1 -0
  29. package/dist/esm/components/Cascader/index.js +3 -1
  30. package/dist/esm/components/Common/index.d.ts +1 -0
  31. package/dist/esm/components/Common/index.js +11 -1
  32. package/dist/esm/components/JST/JstLogistics/index.js +25 -8
  33. package/dist/esm/components/LogisticsTrajectory/index.d.ts +0 -2
  34. package/dist/esm/components/LogisticsTrajectory/trajectoryCode.js +5 -4
  35. package/dist/esm/components/LogisticsTrajectory/trajectoryCompany.d.ts +0 -1
  36. package/dist/esm/components/LogisticsTrajectory/trajectoryCompany.js +2 -8
  37. package/dist/esm/components/LogisticsTrajectory/trajectorySnapshot.d.ts +0 -1
  38. package/dist/esm/components/LogisticsTrajectory/trajectorySnapshot.js +3 -9
  39. package/dist/esm/components/PostIng/index.js +2 -2
  40. package/dist/esm/factory.d.ts +2 -2
  41. package/dist/esm/factory.js +2 -3
  42. package/dist/esm/type.d.ts +2 -1
  43. 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";
@@ -12,6 +12,7 @@ declare class BasicCascader implements ComponentInterface {
12
12
  canSort: boolean;
13
13
  children: ComponentInterface[];
14
14
  dataType: ComponentInterface['dataType'];
15
+ format: ComponentInterface['format'];
15
16
  constructor(options: PickOption);
16
17
  /**
17
18
  * 通过值计算展示内容
@@ -28,6 +28,7 @@ var BasicCascader = /*#__PURE__*/_createClass(function BasicCascader(_options) {
28
28
  _defineProperty(this, "canSort", void 0);
29
29
  _defineProperty(this, "children", void 0);
30
30
  _defineProperty(this, "dataType", void 0);
31
+ _defineProperty(this, "format", void 0);
31
32
  _defineProperty(this, "getValue", function (value) {
32
33
  var _findLabelBySelectVal, _findLabelBySelectVal2, _this$componentConfig;
33
34
  return (_findLabelBySelectVal = findLabelBySelectValue(value, (_this$componentConfig = _this.componentConfig) === null || _this$componentConfig === void 0 ? void 0 : _this$componentConfig.options)) === null || _findLabelBySelectVal === void 0 ? void 0 : (_findLabelBySelectVal2 = _findLabelBySelectVal.map(function (i) {
@@ -139,7 +140,8 @@ var BasicCascader = /*#__PURE__*/_createClass(function BasicCascader(_options) {
139
140
  this.children = [];
140
141
  this.isCombinationComponent = false;
141
142
  this.canSort = true;
142
- this.dataType = 'object'; // FIXME: 多级下拉这种不知道要如何去做条件判断
143
+ this.dataType = 'array';
144
+ this.format = 'cascader';
143
145
  }
144
146
 
145
147
  /**
@@ -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
  };
@@ -15,8 +15,20 @@ import { JstGoods } from "@kmkf-fe-packages/basic-components";
15
15
  import ItemView from "../../../commonComponents/ItemView";
16
16
  import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
17
17
  import { SYMBOL } from "../../../constant";
18
+ var typeMap = {
19
+ JST_LOGISTICS: {
20
+ key: "jstItemList",
21
+ name: "jst"
22
+ },
23
+ BS_LOGISTICS: {
24
+ key: "bsLogisticsList",
25
+ name: "bs"
26
+ }
27
+ };
18
28
  var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(options) {
19
29
  var _this = this,
30
+ _typeMap$options$type,
31
+ _typeMap$options$type2,
20
32
  _this$componentConfig3;
21
33
  _classCallCheck(this, JstLogistics);
22
34
  _defineProperty(this, "name", void 0);
@@ -46,7 +58,8 @@ var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(options) {
46
58
  }) : null;
47
59
  });
48
60
  _defineProperty(this, "renderPc", function (value, record) {
49
- var list = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_jstItemList")];
61
+ var _typeMap$_this$type;
62
+ var list = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat((_typeMap$_this$type = typeMap[_this.type]) === null || _typeMap$_this$type === void 0 ? void 0 : _typeMap$_this$type.key)];
50
63
  //兼容多个商品
51
64
  return /*#__PURE__*/React.createElement(JstGoodImage, {
52
65
  list: list,
@@ -54,15 +67,18 @@ var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(options) {
54
67
  });
55
68
  });
56
69
  _defineProperty(this, "renderLog", function (r) {
57
- var list = r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_jstItemList")];
70
+ var _typeMap$_this$type2;
71
+ var list = r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat((_typeMap$_this$type2 = typeMap[_this.type]) === null || _typeMap$_this$type2 === void 0 ? void 0 : _typeMap$_this$type2.key)];
58
72
  if (isNull(list)) return null;
59
73
  return _this.renderPc(undefined, r);
60
74
  });
61
75
  _defineProperty(this, "getComponentValue", function (r) {
62
- return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_jstItemList")];
76
+ var _typeMap$_this$type3;
77
+ return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat((_typeMap$_this$type3 = typeMap[_this.type]) === null || _typeMap$_this$type3 === void 0 ? void 0 : _typeMap$_this$type3.key)];
63
78
  });
64
79
  _defineProperty(this, "renderExport", function (value, record) {
65
- var list = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_jstItemList")];
80
+ var _typeMap$_this$type4;
81
+ var list = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat((_typeMap$_this$type4 = typeMap[_this.type]) === null || _typeMap$_this$type4 === void 0 ? void 0 : _typeMap$_this$type4.key)];
66
82
  return (list || []).map(function (item) {
67
83
  return [_this.expressDateInstance.getExpressNameByCode(item === null || item === void 0 ? void 0 : item.logisticsCompany), item === null || item === void 0 ? void 0 : item.logisticsCode].join("/");
68
84
  }).join(",");
@@ -82,11 +98,12 @@ var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(options) {
82
98
  });
83
99
  });
84
100
  _defineProperty(this, "filterConfig", function (item) {
101
+ var _typeMap$_this$type5, _typeMap$_this$type6;
85
102
  return [{
86
103
  searchDefaultConditions: SYMBOL.like,
87
104
  type: item.type,
88
105
  id: "".concat(item.id, "_logisticsCode"),
89
- name: "jst\u7269\u6D41\u5355\u53F7",
106
+ name: "".concat((_typeMap$_this$type5 = typeMap[_this.type]) === null || _typeMap$_this$type5 === void 0 ? void 0 : _typeMap$_this$type5.name, "\u7269\u6D41\u5355\u53F7"),
90
107
  filterComponentType: "Input",
91
108
  filterFn: function filterFn(value) {
92
109
  return function (i) {
@@ -97,7 +114,7 @@ var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(options) {
97
114
  searchDefaultConditions: SYMBOL.in,
98
115
  type: item.type,
99
116
  id: "".concat(item.id, "_logisticsCompany"),
100
- name: "jst\u7269\u6D41\u516C\u53F8",
117
+ name: "".concat((_typeMap$_this$type6 = typeMap[_this.type]) === null || _typeMap$_this$type6 === void 0 ? void 0 : _typeMap$_this$type6.name, "\u7269\u6D41\u516C\u53F8"),
101
118
  filterComponentType: "MultipleSelect",
102
119
  props: {
103
120
  options: _this.expressDateInstance.getExpressData() || []
@@ -116,8 +133,8 @@ var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(options) {
116
133
  });
117
134
  this.name = options.name;
118
135
  this.id = options.id;
119
- this.sortField = "".concat(options.id, "_jstItemList");
120
- this.formField = "".concat(options.id, "_jstItemList");
136
+ this.sortField = "".concat(options.id, "_").concat((_typeMap$options$type = typeMap[options.type]) === null || _typeMap$options$type === void 0 ? void 0 : _typeMap$options$type.key);
137
+ this.formField = "".concat(options.id, "_").concat((_typeMap$options$type2 = typeMap[options.type]) === null || _typeMap$options$type2 === void 0 ? void 0 : _typeMap$options$type2.key);
121
138
  this.type = options.type;
122
139
  this.componentConfig = options.componentConfig;
123
140
  this.isCombinationComponent = false;
@@ -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
  });