@kmkf-fe-packages/services-components 0.13.0-alpha.2 → 0.13.0-alpha.4

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.
@@ -0,0 +1,29 @@
1
+ import { ComponentInterface, PickOption, ALignType, Record } from '../../../../../type';
2
+ import React from 'react';
3
+ import { AddressData } from "@kmkf-fe-packages/kmkf-utils";
4
+ declare class City implements ComponentInterface {
5
+ name: string;
6
+ id: string;
7
+ sortField: string;
8
+ type: string;
9
+ rules: any[];
10
+ componentConfig: ComponentInterface["componentConfig"];
11
+ effects: ComponentInterface["effects"];
12
+ align: ALignType;
13
+ width: number;
14
+ isCombinationComponent: boolean;
15
+ formField: string;
16
+ canSort: boolean;
17
+ children: ComponentInterface[];
18
+ dataType: ComponentInterface['dataType'];
19
+ addressDateInstance: InstanceType<typeof AddressData>;
20
+ constructor(options: PickOption);
21
+ renderClient: (record: Record) => React.JSX.Element | null;
22
+ renderPc: (value: unknown, record: Record) => any;
23
+ renderLog: (r: Record) => string;
24
+ renderExport: (value?: string) => string;
25
+ getComponentValue: (r: Record) => any;
26
+ editRender: () => null;
27
+ filterConfig: () => never[];
28
+ }
29
+ export default City;
@@ -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 { BsAddressData } from "@kmkf-fe-packages/kmkf-utils";
10
+ import ItemView from "../../commonComponents/ItemView";
11
+ import { isNull } from '@kmkf-fe-packages/kmkf-utils';
12
+ var City = /*#__PURE__*/_createClass(function City(options) {
13
+ var _this = this;
14
+ _classCallCheck(this, City);
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, "effects", void 0);
22
+ _defineProperty(this, "align", 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, "addressDateInstance", void 0);
30
+ _defineProperty(this, "renderClient", function (record) {
31
+ return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
32
+ id: _this.id,
33
+ label: _this.name,
34
+ value: record === null || record === void 0 ? void 0 : record[_this.id]
35
+ }) : null;
36
+ });
37
+ _defineProperty(this, "renderPc", function (value, record) {
38
+ var _record;
39
+ return (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record !== void 0 ? _record : '--';
40
+ });
41
+ _defineProperty(this, "renderLog", function (r) {
42
+ return _this.addressDateInstance.getNameByCode(r === null || r === void 0 ? void 0 : r[_this.id]);
43
+ });
44
+ _defineProperty(this, "renderExport", function (value) {
45
+ return value !== null && value !== void 0 ? value : '--';
46
+ });
47
+ _defineProperty(this, "getComponentValue", function (r) {
48
+ return r === null || r === void 0 ? void 0 : r["".concat(_this.id)];
49
+ });
50
+ _defineProperty(this, "editRender", function () {
51
+ return null;
52
+ });
53
+ _defineProperty(this, "filterConfig", function () {
54
+ return [];
55
+ });
56
+ this.name = '省';
57
+ this.id = "".concat(options.id, "_bsPostingCity");
58
+ this.sortField = "".concat(options.id, "_bsPostingCity");
59
+ this.formField = "".concat(options.id, "_bsPostingCity");
60
+ this.type = options.type;
61
+ this.isCombinationComponent = false;
62
+ this.canSort = false;
63
+ this.children = [];
64
+ this.align = 'left';
65
+ this.dataType = 'string';
66
+ this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
67
+ this.effects = options === null || options === void 0 ? void 0 : options.effects;
68
+ this.rules = [];
69
+ this.width = 120; // TODO: 针对子组件,必须拥有width属性,否则就会出现多列展示问题
70
+ this.addressDateInstance = BsAddressData.getInstance();
71
+ });
72
+ export default City;
@@ -0,0 +1,27 @@
1
+ import { ComponentInterface, PickOption, ALignType, Record } from '../../../../../type';
2
+ import React from 'react';
3
+ declare class Detail implements ComponentInterface {
4
+ name: string;
5
+ id: string;
6
+ sortField: 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
+ formField: string;
15
+ canSort: boolean;
16
+ children: ComponentInterface[];
17
+ dataType: ComponentInterface['dataType'];
18
+ constructor(options: PickOption);
19
+ renderClient: (record: Record) => React.JSX.Element | null;
20
+ renderPc: (value: unknown, record: Record) => any;
21
+ renderLog: (r: Record) => any;
22
+ renderExport: (value?: string) => string;
23
+ getComponentValue: (r: Record) => any;
24
+ editRender: () => null;
25
+ filterConfig: () => never[];
26
+ }
27
+ export default Detail;
@@ -0,0 +1,70 @@
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 Detail = /*#__PURE__*/_createClass(function Detail(options) {
12
+ var _this = this;
13
+ _classCallCheck(this, Detail);
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, "effects", void 0);
21
+ _defineProperty(this, "align", void 0);
22
+ _defineProperty(this, "width", void 0);
23
+ _defineProperty(this, "isCombinationComponent", void 0);
24
+ _defineProperty(this, "formField", void 0);
25
+ _defineProperty(this, "canSort", void 0);
26
+ _defineProperty(this, "children", void 0);
27
+ _defineProperty(this, "dataType", void 0);
28
+ _defineProperty(this, "renderClient", function (record) {
29
+ return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
30
+ id: _this.id,
31
+ label: _this.name,
32
+ value: record === null || record === void 0 ? void 0 : record[_this.id]
33
+ }) : null;
34
+ });
35
+ _defineProperty(this, "renderPc", function (value, record) {
36
+ var _record;
37
+ return (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record !== void 0 ? _record : '--';
38
+ });
39
+ _defineProperty(this, "renderLog", function (r) {
40
+ return r === null || r === void 0 ? void 0 : r[_this.id];
41
+ });
42
+ _defineProperty(this, "renderExport", function (value) {
43
+ return value !== null && value !== void 0 ? value : '--';
44
+ });
45
+ _defineProperty(this, "getComponentValue", function (r) {
46
+ return r === null || r === void 0 ? void 0 : r["".concat(_this.id)];
47
+ });
48
+ _defineProperty(this, "editRender", function () {
49
+ return null;
50
+ });
51
+ _defineProperty(this, "filterConfig", function () {
52
+ return [];
53
+ });
54
+ this.name = '详细地址';
55
+ this.id = "".concat(options.id, "_bsPostingDetail");
56
+ this.sortField = "".concat(options.id, "_bsPostingDetail");
57
+ this.formField = "".concat(options.id, "_bsPostingDetail");
58
+ this.type = options.type;
59
+ this.isCombinationComponent = false;
60
+ this.canSort = false;
61
+ this.children = [];
62
+ this.align = 'left';
63
+ this.dataType = 'string';
64
+ this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
65
+ this.effects = options === null || options === void 0 ? void 0 : options.effects;
66
+ this.rules = [];
67
+ this.width = 200; // TODO: 针对子组件,必须拥有width属性,否则就会出现多列展示问题
68
+ });
69
+
70
+ export default Detail;
@@ -0,0 +1,29 @@
1
+ import { ComponentInterface, PickOption, ALignType, Record } from '../../../../../type';
2
+ import React from 'react';
3
+ import { AddressData } from "@kmkf-fe-packages/kmkf-utils";
4
+ declare class District implements ComponentInterface {
5
+ name: string;
6
+ id: string;
7
+ sortField: string;
8
+ type: string;
9
+ rules: any[];
10
+ componentConfig: ComponentInterface["componentConfig"];
11
+ effects: ComponentInterface["effects"];
12
+ align: ALignType;
13
+ width: number;
14
+ isCombinationComponent: boolean;
15
+ formField: string;
16
+ canSort: boolean;
17
+ children: ComponentInterface[];
18
+ dataType: ComponentInterface['dataType'];
19
+ addressDateInstance: InstanceType<typeof AddressData>;
20
+ constructor(options: PickOption);
21
+ renderClient: (record: Record) => React.JSX.Element | null;
22
+ renderPc: (value: unknown, record: Record) => any;
23
+ renderLog: (r: Record) => string;
24
+ renderExport: (value?: string) => string;
25
+ getComponentValue: (r: Record) => any;
26
+ editRender: () => null;
27
+ filterConfig: () => never[];
28
+ }
29
+ export default District;
@@ -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 { BsAddressData } from "@kmkf-fe-packages/kmkf-utils";
10
+ import ItemView from "../../commonComponents/ItemView";
11
+ import { isNull } from '@kmkf-fe-packages/kmkf-utils';
12
+ var District = /*#__PURE__*/_createClass(function District(options) {
13
+ var _this = this;
14
+ _classCallCheck(this, District);
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, "effects", void 0);
22
+ _defineProperty(this, "align", 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, "addressDateInstance", void 0);
30
+ _defineProperty(this, "renderClient", function (record) {
31
+ return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
32
+ id: _this.id,
33
+ label: _this.name,
34
+ value: record === null || record === void 0 ? void 0 : record[_this.id]
35
+ }) : null;
36
+ });
37
+ _defineProperty(this, "renderPc", function (value, record) {
38
+ var _record;
39
+ return (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record !== void 0 ? _record : '--';
40
+ });
41
+ _defineProperty(this, "renderLog", function (r) {
42
+ return _this.addressDateInstance.getNameByCode(r === null || r === void 0 ? void 0 : r[_this.id]);
43
+ });
44
+ _defineProperty(this, "renderExport", function (value) {
45
+ return value !== null && value !== void 0 ? value : '--';
46
+ });
47
+ _defineProperty(this, "getComponentValue", function (r) {
48
+ return r === null || r === void 0 ? void 0 : r["".concat(_this.id)];
49
+ });
50
+ _defineProperty(this, "editRender", function () {
51
+ return null;
52
+ });
53
+ _defineProperty(this, "filterConfig", function () {
54
+ return [];
55
+ });
56
+ this.name = '区/县';
57
+ this.id = "".concat(options.id, "_bsPostingDistrict");
58
+ this.sortField = "".concat(options.id, "_bsPostingDistrict");
59
+ this.formField = "".concat(options.id, "_bsPostingDistrict");
60
+ this.type = options.type;
61
+ this.isCombinationComponent = false;
62
+ this.canSort = false;
63
+ this.children = [];
64
+ this.align = 'left';
65
+ this.dataType = 'string';
66
+ this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
67
+ this.effects = options === null || options === void 0 ? void 0 : options.effects;
68
+ this.rules = [];
69
+ this.width = 120; // TODO: 针对子组件,必须拥有width属性,否则就会出现多列展示问题
70
+ this.addressDateInstance = BsAddressData.getInstance();
71
+ });
72
+ export default District;
@@ -0,0 +1,29 @@
1
+ import { ComponentInterface, PickOption, ALignType, Record } from '../../../../../type';
2
+ import React from 'react';
3
+ import { AddressData } from "@kmkf-fe-packages/kmkf-utils";
4
+ declare class Province implements ComponentInterface {
5
+ name: string;
6
+ id: string;
7
+ sortField: string;
8
+ type: string;
9
+ rules: any[];
10
+ componentConfig: ComponentInterface["componentConfig"];
11
+ effects: ComponentInterface["effects"];
12
+ align: ALignType;
13
+ width: number;
14
+ isCombinationComponent: boolean;
15
+ formField: string;
16
+ canSort: boolean;
17
+ children: ComponentInterface[];
18
+ dataType: ComponentInterface['dataType'];
19
+ addressDateInstance: InstanceType<typeof AddressData>;
20
+ constructor(options: PickOption);
21
+ renderClient: (record: Record) => React.JSX.Element | null;
22
+ renderPc: (value: unknown, record: Record) => any;
23
+ renderLog: (r: Record) => string;
24
+ renderExport: (value?: string) => string;
25
+ getComponentValue: (r: Record) => any;
26
+ editRender: () => null;
27
+ filterConfig: () => never[];
28
+ }
29
+ export default Province;
@@ -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 { BsAddressData } from "@kmkf-fe-packages/kmkf-utils";
10
+ import ItemView from "../../commonComponents/ItemView";
11
+ import { isNull } from '@kmkf-fe-packages/kmkf-utils';
12
+ var Province = /*#__PURE__*/_createClass(function Province(options) {
13
+ var _this = this;
14
+ _classCallCheck(this, Province);
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, "effects", void 0);
22
+ _defineProperty(this, "align", 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, "addressDateInstance", void 0);
30
+ _defineProperty(this, "renderClient", function (record) {
31
+ return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
32
+ id: _this.id,
33
+ label: _this.name,
34
+ value: record === null || record === void 0 ? void 0 : record[_this.id]
35
+ }) : null;
36
+ });
37
+ _defineProperty(this, "renderPc", function (value, record) {
38
+ var _record;
39
+ return (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record !== void 0 ? _record : '--';
40
+ });
41
+ _defineProperty(this, "renderLog", function (r) {
42
+ return _this.addressDateInstance.getNameByCode(r === null || r === void 0 ? void 0 : r[_this.id]);
43
+ });
44
+ _defineProperty(this, "renderExport", function (value) {
45
+ return value !== null && value !== void 0 ? value : '--';
46
+ });
47
+ _defineProperty(this, "getComponentValue", function (r) {
48
+ return r === null || r === void 0 ? void 0 : r["".concat(_this.id)];
49
+ });
50
+ _defineProperty(this, "editRender", function () {
51
+ return null;
52
+ });
53
+ _defineProperty(this, "filterConfig", function () {
54
+ return [];
55
+ });
56
+ this.name = '市';
57
+ this.id = "".concat(options.id, "_bsPostingProvince");
58
+ this.sortField = "".concat(options.id, "_bsPostingProvince");
59
+ this.formField = "".concat(options.id, "_bsPostingProvince");
60
+ this.type = options.type;
61
+ this.isCombinationComponent = false;
62
+ this.canSort = false;
63
+ this.children = [];
64
+ this.align = 'left';
65
+ this.dataType = 'string';
66
+ this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
67
+ this.effects = options === null || options === void 0 ? void 0 : options.effects;
68
+ this.rules = [];
69
+ this.width = 120; // TODO: 针对子组件,必须拥有width属性,否则就会出现多列展示问题
70
+ this.addressDateInstance = BsAddressData.getInstance();
71
+ });
72
+ export default Province;
@@ -0,0 +1,27 @@
1
+ import { ComponentInterface, PickOption, ALignType, Record } from '../../../../../type';
2
+ import React from 'react';
3
+ declare class ReceiverMobile implements ComponentInterface {
4
+ name: string;
5
+ id: string;
6
+ sortField: 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
+ formField: string;
15
+ canSort: boolean;
16
+ children: ComponentInterface[];
17
+ dataType: ComponentInterface['dataType'];
18
+ constructor(options: PickOption);
19
+ renderClient: (record: Record) => React.JSX.Element | null;
20
+ renderPc: (value: unknown, record: Record) => any;
21
+ renderLog: (r: Record) => any;
22
+ renderExport: (value?: string) => string;
23
+ getComponentValue: (r: Record) => any;
24
+ editRender: () => null;
25
+ filterConfig: () => never[];
26
+ }
27
+ export default ReceiverMobile;
@@ -0,0 +1,70 @@
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 ReceiverMobile = /*#__PURE__*/_createClass(function ReceiverMobile(options) {
12
+ var _this = this;
13
+ _classCallCheck(this, ReceiverMobile);
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, "effects", void 0);
21
+ _defineProperty(this, "align", void 0);
22
+ _defineProperty(this, "width", void 0);
23
+ _defineProperty(this, "isCombinationComponent", void 0);
24
+ _defineProperty(this, "formField", void 0);
25
+ _defineProperty(this, "canSort", void 0);
26
+ _defineProperty(this, "children", void 0);
27
+ _defineProperty(this, "dataType", void 0);
28
+ _defineProperty(this, "renderClient", function (record) {
29
+ return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
30
+ id: _this.id,
31
+ label: _this.name,
32
+ value: record === null || record === void 0 ? void 0 : record[_this.id]
33
+ }) : null;
34
+ });
35
+ _defineProperty(this, "renderPc", function (value, record) {
36
+ var _record;
37
+ return (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record !== void 0 ? _record : '--';
38
+ });
39
+ _defineProperty(this, "renderLog", function (r) {
40
+ return r === null || r === void 0 ? void 0 : r[_this.id];
41
+ });
42
+ _defineProperty(this, "renderExport", function (value) {
43
+ return value !== null && value !== void 0 ? value : '--';
44
+ });
45
+ _defineProperty(this, "getComponentValue", function (r) {
46
+ return r === null || r === void 0 ? void 0 : r["".concat(_this.id)];
47
+ });
48
+ _defineProperty(this, "editRender", function () {
49
+ return null;
50
+ });
51
+ _defineProperty(this, "filterConfig", function () {
52
+ return [];
53
+ });
54
+ this.name = '收件人电话';
55
+ this.id = "".concat(options.id, "_bsPostingReceiverMobile");
56
+ this.sortField = "".concat(options.id, "_bsPostingReceiverMobile");
57
+ this.formField = "".concat(options.id, "_bsPostingReceiverMobile");
58
+ this.type = options.type;
59
+ this.isCombinationComponent = false;
60
+ this.canSort = false;
61
+ this.children = [];
62
+ this.align = 'left';
63
+ this.dataType = 'string';
64
+ this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
65
+ this.effects = options === null || options === void 0 ? void 0 : options.effects;
66
+ this.rules = [];
67
+ this.width = 180; // TODO: 针对子组件,必须拥有width属性,否则就会出现多列展示问题
68
+ });
69
+
70
+ export default ReceiverMobile;
@@ -0,0 +1,27 @@
1
+ import { ComponentInterface, PickOption, ALignType, Record } from '../../../../../type';
2
+ import React from 'react';
3
+ declare class ReceiverName implements ComponentInterface {
4
+ name: string;
5
+ id: string;
6
+ sortField: 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
+ formField: string;
15
+ canSort: boolean;
16
+ children: ComponentInterface[];
17
+ dataType: ComponentInterface['dataType'];
18
+ constructor(options: PickOption);
19
+ renderClient: (record: Record) => React.JSX.Element | null;
20
+ renderPc: (value: unknown, record: Record) => any;
21
+ renderLog: (r: Record) => any;
22
+ renderExport: (value?: string) => string;
23
+ getComponentValue: (r: Record) => any;
24
+ editRender: () => null;
25
+ filterConfig: () => never[];
26
+ }
27
+ export default ReceiverName;
@@ -0,0 +1,70 @@
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 ReceiverName = /*#__PURE__*/_createClass(function ReceiverName(options) {
12
+ var _this = this;
13
+ _classCallCheck(this, ReceiverName);
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, "effects", void 0);
21
+ _defineProperty(this, "align", void 0);
22
+ _defineProperty(this, "width", void 0);
23
+ _defineProperty(this, "isCombinationComponent", void 0);
24
+ _defineProperty(this, "formField", void 0);
25
+ _defineProperty(this, "canSort", void 0);
26
+ _defineProperty(this, "children", void 0);
27
+ _defineProperty(this, "dataType", void 0);
28
+ _defineProperty(this, "renderClient", function (record) {
29
+ return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
30
+ id: _this.id,
31
+ label: _this.name,
32
+ value: record === null || record === void 0 ? void 0 : record[_this.id]
33
+ }) : null;
34
+ });
35
+ _defineProperty(this, "renderPc", function (value, record) {
36
+ var _record;
37
+ return (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) !== null && _record !== void 0 ? _record : '--';
38
+ });
39
+ _defineProperty(this, "renderLog", function (r) {
40
+ return r === null || r === void 0 ? void 0 : r[_this.id];
41
+ });
42
+ _defineProperty(this, "renderExport", function (value) {
43
+ return value !== null && value !== void 0 ? value : '--';
44
+ });
45
+ _defineProperty(this, "getComponentValue", function (r) {
46
+ return r === null || r === void 0 ? void 0 : r["".concat(_this.id)];
47
+ });
48
+ _defineProperty(this, "editRender", function () {
49
+ return null;
50
+ });
51
+ _defineProperty(this, "filterConfig", function () {
52
+ return [];
53
+ });
54
+ this.name = '收件人姓名';
55
+ this.id = "".concat(options.id, "_bsPostingReceiverName");
56
+ this.sortField = "".concat(options.id, "_bsPostingReceiverName");
57
+ this.formField = "".concat(options.id, "_bsPostingReceiverName");
58
+ this.type = options.type;
59
+ this.isCombinationComponent = false;
60
+ this.canSort = false;
61
+ this.children = [];
62
+ this.align = 'left';
63
+ this.dataType = 'string';
64
+ this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
65
+ this.effects = options === null || options === void 0 ? void 0 : options.effects;
66
+ this.rules = [];
67
+ this.width = 180; // TODO: 针对子组件,必须拥有width属性,否则就会出现多列展示问题
68
+ });
69
+
70
+ export default ReceiverName;
@@ -0,0 +1,43 @@
1
+ import { ComponentInterface, PickOption, Record } from "../../../type";
2
+ import React from "react";
3
+ import Province from './components/Province';
4
+ import City from './components/City';
5
+ import District from './components/District';
6
+ import Detail from './components/Detail';
7
+ import ReceiverName from './components/ReceiverName';
8
+ import ReceiverMobile from './components/ReceiverMobile';
9
+ declare class BsPosting implements ComponentInterface {
10
+ name: string;
11
+ id: string;
12
+ sortField: string;
13
+ type: string;
14
+ rules: any[];
15
+ componentConfig: ComponentInterface["componentConfig"];
16
+ isCombinationComponent: boolean;
17
+ formField: string;
18
+ canSort: boolean;
19
+ children: ComponentInterface[];
20
+ dataType: ComponentInterface["dataType"];
21
+ province: Province;
22
+ city: City;
23
+ district: District;
24
+ detail: Detail;
25
+ receiverName: ReceiverName;
26
+ receiverMobile: ReceiverMobile;
27
+ constructor(options: PickOption);
28
+ renderPc: () => null;
29
+ renderLog: (r: Record) => React.JSX.Element;
30
+ getComponentValue: (r: Record) => {
31
+ province: any;
32
+ city: any;
33
+ district: any;
34
+ detail: any;
35
+ name: any;
36
+ mobile: any;
37
+ };
38
+ renderExport: () => null;
39
+ renderClient: (record: any) => React.JSX.Element;
40
+ editRender: (p: any) => React.JSX.Element;
41
+ filterConfig: () => never[];
42
+ }
43
+ export default BsPosting;
@@ -0,0 +1,105 @@
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 ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
3
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
4
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
5
+ 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); } }
6
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
7
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
8
+ 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; }
9
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
10
+ 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); }
11
+ import React from "react";
12
+ import { ApaasPosting } from "@kmkf-fe-packages/basic-components";
13
+ import GetFormItem from "../GetFormItem";
14
+ import Province from "./components/Province";
15
+ import City from "./components/City";
16
+ import District from "./components/District";
17
+ import Detail from "./components/Detail";
18
+ import ReceiverName from "./components/ReceiverName";
19
+ import ReceiverMobile from "./components/ReceiverMobile";
20
+ var BsPosting = /*#__PURE__*/_createClass(function BsPosting(options) {
21
+ var _this = this,
22
+ _options$componentCon;
23
+ _classCallCheck(this, BsPosting);
24
+ _defineProperty(this, "name", void 0);
25
+ _defineProperty(this, "id", void 0);
26
+ _defineProperty(this, "sortField", void 0);
27
+ _defineProperty(this, "type", void 0);
28
+ _defineProperty(this, "rules", void 0);
29
+ _defineProperty(this, "componentConfig", void 0);
30
+ _defineProperty(this, "isCombinationComponent", void 0);
31
+ _defineProperty(this, "formField", void 0);
32
+ _defineProperty(this, "canSort", void 0);
33
+ _defineProperty(this, "children", void 0);
34
+ _defineProperty(this, "dataType", void 0);
35
+ _defineProperty(this, "province", void 0);
36
+ _defineProperty(this, "city", void 0);
37
+ _defineProperty(this, "district", void 0);
38
+ _defineProperty(this, "detail", void 0);
39
+ _defineProperty(this, "receiverName", void 0);
40
+ _defineProperty(this, "receiverMobile", void 0);
41
+ _defineProperty(this, "renderPc", function () {
42
+ return null;
43
+ });
44
+ _defineProperty(this, "renderLog", function (r) {
45
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", null, _this.province.name, ": ", _this.province.renderLog(r)), /*#__PURE__*/React.createElement("div", null, _this.city.name, ": ", _this.city.renderLog(r)), /*#__PURE__*/React.createElement("div", null, _this.district.name, ": ", _this.district.renderLog(r)), /*#__PURE__*/React.createElement("div", null, _this.detail.name, ": ", _this.detail.renderLog(r)), /*#__PURE__*/React.createElement("div", null, _this.receiverName.name, ": ", _this.receiverName.renderLog(r)), /*#__PURE__*/React.createElement("div", null, _this.receiverMobile.name, ": ", _this.receiverMobile.renderLog(r)));
46
+ });
47
+ _defineProperty(this, "getComponentValue", function (r) {
48
+ return {
49
+ province: _this.province.getComponentValue(r),
50
+ city: _this.city.getComponentValue(r),
51
+ district: _this.district.getComponentValue(r),
52
+ detail: _this.detail.getComponentValue(r),
53
+ name: _this.receiverName.getComponentValue(r),
54
+ mobile: _this.receiverMobile.getComponentValue(r)
55
+ };
56
+ });
57
+ _defineProperty(this, "renderExport", function () {
58
+ return null;
59
+ });
60
+ _defineProperty(this, "renderClient", function (record) {
61
+ return /*#__PURE__*/React.createElement(React.Fragment, null, _this.province.renderClient(record), _this.city.renderClient(record), _this.district.renderClient(record), _this.detail.renderClient(record), _this.receiverName.renderClient(record), _this.receiverMobile.renderClient(record));
62
+ });
63
+ _defineProperty(this, "editRender", function (p) {
64
+ var _this$componentConfig, _this$componentConfig2, _this$componentConfig3;
65
+ return /*#__PURE__*/React.createElement(GetFormItem, {
66
+ title: _this.name,
67
+ name: _this.id,
68
+ rules: _this.rules,
69
+ hidden: p === null || p === void 0 ? void 0 : p.hidden,
70
+ required: (_this$componentConfig = (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.required) !== null && _this$componentConfig !== void 0 ? _this$componentConfig : false,
71
+ component: /*#__PURE__*/React.createElement(ApaasPosting, _extends({}, _this.componentConfig, {
72
+ type: _this.type === "POSTING" || ((_this$componentConfig3 = _this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.showField) === "workOrder" ? "workOrder" : "bs"
73
+ }))
74
+ });
75
+ });
76
+ _defineProperty(this, "filterConfig", function () {
77
+ return [];
78
+ });
79
+ this.name = options.name;
80
+ this.id = options.id;
81
+ this.sortField = "".concat(options.id);
82
+ this.formField = "".concat(options.id);
83
+ this.type = options.type;
84
+ this.componentConfig = options.componentConfig;
85
+ this.isCombinationComponent = true;
86
+ this.canSort = false;
87
+ this.children = [];
88
+ this.dataType = "string";
89
+ this.province = new Province(_objectSpread({}, options));
90
+ this.city = new City(_objectSpread({}, options));
91
+ this.district = new District(_objectSpread({}, options));
92
+ this.detail = new Detail(_objectSpread({}, options));
93
+ this.receiverName = new ReceiverName(_objectSpread({}, options));
94
+ this.receiverMobile = new ReceiverMobile(_objectSpread({}, options));
95
+ this.rules = options !== null && options !== void 0 && (_options$componentCon = options.componentConfig) !== null && _options$componentCon !== void 0 && _options$componentCon.required ? [{
96
+ validator: function validator(_, value) {
97
+ var _value$postingAddress;
98
+ if (!(value !== null && value !== void 0 && (_value$postingAddress = value.postingAddress) !== null && _value$postingAddress !== void 0 && _value$postingAddress.length) || !(value !== null && value !== void 0 && value.postingDetail) || !(value !== null && value !== void 0 && value.postingReceiverName) || !(value !== null && value !== void 0 && value.postingReceiverMobile)) {
99
+ return Promise.reject(new Error("请填写地址"));
100
+ }
101
+ return Promise.resolve();
102
+ }
103
+ }] : [];
104
+ });
105
+ export default BsPosting;
@@ -1,3 +1,3 @@
1
- import { JstLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, CommonDataTime, TradeId, ShopName, ErpTradeId, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, FlowMarkSelect, FlowTag, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, Handler, CompletedUser, LogisticsInterception, LogisticsTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect, CommonTradeId, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods } from "./index";
1
+ import { JstLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, CommonDataTime, TradeId, ShopName, ErpTradeId, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, FlowMarkSelect, FlowTag, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, Handler, CompletedUser, LogisticsInterception, LogisticsTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect, CommonTradeId, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting } from "./index";
2
2
  import { PickOption } from "./type";
3
- export declare const factory: (type: string, options: PickOption) => BasicInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicRadio | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | CommonDataTime | TradeId | ErpTradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | JstLogistics | JstItemSelect | JstSendGood | JstSupply | BsSystemOrder | BsGoods | BsExchange | BsReissue | BsReturn | BsLogistics | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsTrajectory | PlatForm | ShopInput | Submitter | Handler | CompletedUser | FlowWorkOrderId | StatusSelect | CommonTradeId | Calculation | CommonSystemOrder | CommonMultiStatus | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods;
3
+ export declare const factory: (type: string, options: PickOption) => BsExchange | BsPosting | BsReissue | BsSystemOrder | BasicCascader | FlowTag | ERemark | BasicInput | BasicAddress | BasicCheckbox | BasicDataTime | BasicSelect | BasicRadio | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | CommonDataTime | TradeId | ErpTradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | JstLogistics | JstItemSelect | JstSendGood | JstSupply | BsGoods | BsReturn | BsLogistics | FlowStatusSelect | FlowMarkSelect | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsTrajectory | PlatForm | ShopInput | Submitter | Handler | CompletedUser | FlowWorkOrderId | StatusSelect | CommonTradeId | Calculation | CommonSystemOrder | CommonMultiStatus | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods;
@@ -1,4 +1,4 @@
1
- import { JstLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, CommonDataTime, TradeId, ShopName, ErpTradeId, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, FlowMarkSelect, FlowTag, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, Handler, CompletedUser, LogisticsInterception, LogisticsTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect, CommonTradeId, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods } from "./index";
1
+ import { JstLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, CommonDataTime, TradeId, ShopName, ErpTradeId, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, FlowMarkSelect, FlowTag, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, Handler, CompletedUser, LogisticsInterception, LogisticsTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect, CommonTradeId, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting } from "./index";
2
2
  export var factory = function factory(type, options) {
3
3
  var _options$componentCon;
4
4
  switch (type) {
@@ -123,7 +123,7 @@ export var factory = function factory(type, options) {
123
123
  case "WLN_SEND_GOOD":
124
124
  return new JstSendGood(options);
125
125
  case "BS_POSTING":
126
- return new BasicPosting(options);
126
+ return new BsPosting(options);
127
127
  case "BS_GOODS":
128
128
  return new BsGoods(options);
129
129
  case "BS_EXCHANGE_GOODS":
@@ -65,6 +65,7 @@ export { default as NodeDeadLine } from "./components/NodeDeadLine";
65
65
  export { default as HandlerDeadLine } from "./components/HandlerDeadLine";
66
66
  export { default as NodeStayDuration } from "./components/NodeStayDuration";
67
67
  export { default as WlnGoods } from "./components/WLN/WlnGoods";
68
+ export { default as BsPosting } from "./components/BS/BsPosting";
68
69
  export { factory } from "./factory";
69
70
  export { default as PlatformAvatar } from "./commonComponents/PlatformAvatar";
70
71
  export { default as SelectMark } from "./commonComponents/SelectMark";
package/dist/esm/index.js CHANGED
@@ -65,6 +65,7 @@ export { default as NodeDeadLine } from "./components/NodeDeadLine";
65
65
  export { default as HandlerDeadLine } from "./components/HandlerDeadLine";
66
66
  export { default as NodeStayDuration } from "./components/NodeStayDuration";
67
67
  export { default as WlnGoods } from "./components/WLN/WlnGoods";
68
+ export { default as BsPosting } from "./components/BS/BsPosting";
68
69
  export { factory } from "./factory";
69
70
  export { default as PlatformAvatar } from "./commonComponents/PlatformAvatar";
70
71
  export { default as SelectMark } from "./commonComponents/SelectMark";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/services-components",
3
- "version": "0.13.0-alpha.2",
3
+ "version": "0.13.0-alpha.4",
4
4
  "module": "dist/esm/index.js",
5
5
  "typings": "dist/esm/index.d.ts",
6
6
  "files": [
@@ -26,8 +26,8 @@
26
26
  "father": "^4.1.7"
27
27
  },
28
28
  "dependencies": {
29
- "@kmkf-fe-packages/basic-components": "^0.13.0-alpha.2",
30
- "@kmkf-fe-packages/kmkf-utils": "^0.13.0-alpha.2"
29
+ "@kmkf-fe-packages/basic-components": "^0.13.0-alpha.3",
30
+ "@kmkf-fe-packages/kmkf-utils": "^0.13.0-alpha.3"
31
31
  },
32
32
  "peerDependencies": {
33
33
  "@ant-design/icons": "^4.7.0",
@@ -40,5 +40,5 @@
40
40
  "gitHooks": {
41
41
  "pre-commit": "lint-staged"
42
42
  },
43
- "gitHead": "28fcac29b9d97a98033d60ab0b100ede3186f1e6"
43
+ "gitHead": "5bec88828fc1d10e71c911832412f893f478fe56"
44
44
  }