@kmkf-fe-packages/services-components 0.7.15-alpha.1 → 0.7.15-alpha.3
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.
- package/dist/esm/commonComponents/QueryLogisticsTrack/index.d.ts +1 -1
- package/dist/esm/commonComponents/QueryLogisticsTrack/index.js +61 -31
- package/dist/esm/components/BS/BsExchange/index.d.ts +47 -0
- package/dist/esm/components/BS/BsExchange/index.js +143 -0
- package/dist/esm/components/BS/BsGoods/index.d.ts +31 -0
- package/dist/esm/components/{BsSendGood → BS/BsGoods}/index.js +53 -57
- package/dist/esm/components/{BsLogistics → BS/BsLogistics}/index.d.ts +3 -3
- package/dist/esm/components/{BsLogistics → BS/BsLogistics}/index.js +3 -3
- package/dist/esm/components/BS/BsReissue/index.d.ts +47 -0
- package/dist/esm/components/BS/BsReissue/index.js +115 -0
- package/dist/esm/components/BS/common/BsExchangeImage.d.ts +31 -0
- package/dist/esm/components/BS/common/BsExchangeImage.js +126 -0
- package/dist/esm/components/BS/common/BsGoodImage.d.ts +31 -0
- package/dist/esm/components/BS/common/BsGoodImage.js +88 -0
- package/dist/esm/components/{BsSendGood/index.d.ts → BS/common/BsMemo.d.ts} +9 -9
- package/dist/esm/components/BS/common/BsMemo.js +76 -0
- package/dist/esm/components/BS/common/BsType.d.ts +35 -0
- package/dist/esm/components/BS/common/BsType.js +89 -0
- package/dist/esm/components/Common/index.d.ts +11 -6
- package/dist/esm/components/Common/index.js +105 -50
- package/dist/esm/components/Common/index.module.less +8 -0
- package/dist/esm/components/File/index.d.ts +7 -8
- package/dist/esm/components/File/index.js +20 -49
- package/dist/esm/components/Input/index.js +4 -1
- package/dist/esm/components/{JstItemSelect → JST/JstItemSelect}/index.d.ts +4 -4
- package/dist/esm/components/{JstItemSelect → JST/JstItemSelect}/index.js +19 -19
- package/dist/esm/components/{JstLogistics → JST/JstLogistics}/index.d.ts +4 -4
- package/dist/esm/components/{JstLogistics → JST/JstLogistics}/index.js +17 -17
- package/dist/esm/components/{JstSendGood → JST/JstSendGood}/index.d.ts +3 -3
- package/dist/esm/components/{JstSendGood → JST/JstSendGood}/index.js +46 -29
- package/dist/esm/components/{JstSupply → JST/JstSupply}/index.d.ts +3 -3
- package/dist/esm/components/{JstSupply → JST/JstSupply}/index.js +20 -20
- package/dist/esm/components/LogisticsTrajectory/index.d.ts +53 -0
- package/dist/esm/components/LogisticsTrajectory/index.js +107 -0
- package/dist/esm/components/LogisticsTrajectory/trajectoryCode.d.ts +35 -0
- package/dist/esm/components/LogisticsTrajectory/trajectoryCode.js +103 -0
- package/dist/esm/components/LogisticsTrajectory/trajectoryCompany.d.ts +39 -0
- package/dist/esm/components/LogisticsTrajectory/trajectoryCompany.js +91 -0
- package/dist/esm/components/LogisticsTrajectory/trajectorySnapshot.d.ts +32 -0
- package/dist/esm/components/LogisticsTrajectory/trajectorySnapshot.js +80 -0
- package/dist/esm/components/PostIng/index.d.ts +26 -3
- package/dist/esm/components/PostIng/index.js +94 -25
- package/dist/esm/factory.d.ts +2 -2
- package/dist/esm/factory.js +12 -3
- package/dist/esm/index.d.ts +9 -6
- package/dist/esm/index.js +9 -6
- package/dist/esm/type.d.ts +2 -1
- package/package.json +4 -4
|
@@ -0,0 +1,103 @@
|
|
|
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, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
|
|
11
|
+
import QueryLogisticsTrack from "../../commonComponents/QueryLogisticsTrack";
|
|
12
|
+
import { SYMBOL } from "../../constant";
|
|
13
|
+
var TrajectoryCode = /*#__PURE__*/_createClass(function TrajectoryCode(options) {
|
|
14
|
+
var _this = this,
|
|
15
|
+
_this$componentConfig;
|
|
16
|
+
_classCallCheck(this, TrajectoryCode);
|
|
17
|
+
_defineProperty(this, "name", void 0);
|
|
18
|
+
_defineProperty(this, "parentId", void 0);
|
|
19
|
+
_defineProperty(this, "id", void 0);
|
|
20
|
+
_defineProperty(this, "sortField", void 0);
|
|
21
|
+
_defineProperty(this, "type", void 0);
|
|
22
|
+
_defineProperty(this, "rules", void 0);
|
|
23
|
+
_defineProperty(this, "componentConfig", void 0);
|
|
24
|
+
_defineProperty(this, "align", void 0);
|
|
25
|
+
_defineProperty(this, "width", void 0);
|
|
26
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
27
|
+
_defineProperty(this, "formField", void 0);
|
|
28
|
+
_defineProperty(this, "canSort", void 0);
|
|
29
|
+
_defineProperty(this, "children", void 0);
|
|
30
|
+
_defineProperty(this, "dataType", void 0);
|
|
31
|
+
_defineProperty(this, "renderCode", function (record) {
|
|
32
|
+
var w = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 500;
|
|
33
|
+
var company = record === null || record === void 0 ? void 0 : record["".concat(_this.parentId, "_trajectoryCompany")];
|
|
34
|
+
var code = record === null || record === void 0 ? void 0 : record[_this.id];
|
|
35
|
+
return /*#__PURE__*/React.createElement("div", null, code ? /*#__PURE__*/React.createElement(QueryLogisticsTrack, {
|
|
36
|
+
modelWidth: w,
|
|
37
|
+
interceptCompany: company,
|
|
38
|
+
interceptCode: code,
|
|
39
|
+
interceptSenderMobile: ""
|
|
40
|
+
}) : "--");
|
|
41
|
+
});
|
|
42
|
+
_defineProperty(this, "renderClient", function (record) {
|
|
43
|
+
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
44
|
+
id: _this.id,
|
|
45
|
+
label: _this.name,
|
|
46
|
+
value: _this.renderCode(record)
|
|
47
|
+
}) : null;
|
|
48
|
+
});
|
|
49
|
+
_defineProperty(this, "renderPc", function (value, record) {
|
|
50
|
+
return _this.renderCode(record, 700);
|
|
51
|
+
});
|
|
52
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
53
|
+
if (isNull(r === null || r === void 0 ? void 0 : r[_this.id])) return null;
|
|
54
|
+
return _this.renderPc(undefined, r);
|
|
55
|
+
});
|
|
56
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
57
|
+
return r === null || r === void 0 ? void 0 : r[_this.id];
|
|
58
|
+
});
|
|
59
|
+
_defineProperty(this, "renderExport", function (value, record) {
|
|
60
|
+
var _record$_this$id;
|
|
61
|
+
return (_record$_this$id = record === null || record === void 0 ? void 0 : record[_this.id]) !== null && _record$_this$id !== void 0 ? _record$_this$id : "--";
|
|
62
|
+
});
|
|
63
|
+
_defineProperty(this, "editRender", function () {
|
|
64
|
+
return null;
|
|
65
|
+
});
|
|
66
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
67
|
+
var subKey = item.subKey;
|
|
68
|
+
return {
|
|
69
|
+
searchDefaultConditions: SYMBOL.like,
|
|
70
|
+
type: item.type,
|
|
71
|
+
id: subKey ? "".concat(item.id, "_").concat(subKey) : item.id,
|
|
72
|
+
name: "".concat(item.name, "-\u7269\u6D41\u5355\u53F7"),
|
|
73
|
+
filterComponentType: "Input",
|
|
74
|
+
filterFn: function filterFn(value) {
|
|
75
|
+
return function (i) {
|
|
76
|
+
return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, "".concat(subKey)), value);
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
});
|
|
81
|
+
this.name = options.name;
|
|
82
|
+
this.parentId = options.id;
|
|
83
|
+
this.id = "".concat(options.id, "_trajectoryCode");
|
|
84
|
+
this.sortField = "".concat(options.id, "_trajectoryCode");
|
|
85
|
+
this.formField = "".concat(options.id, "_trajectoryCode");
|
|
86
|
+
this.type = options.type;
|
|
87
|
+
this.componentConfig = options.componentConfig;
|
|
88
|
+
this.rules = (_this$componentConfig = this.componentConfig) !== null && _this$componentConfig !== void 0 && _this$componentConfig.required ? [{
|
|
89
|
+
validator: function validator(_, value) {
|
|
90
|
+
if (/^[0-9a-zA-Z]*$/.test(value)) {
|
|
91
|
+
return Promise.resolve();
|
|
92
|
+
}
|
|
93
|
+
return Promise.reject(new Error("只能输入数字和字母"));
|
|
94
|
+
}
|
|
95
|
+
}] : [];
|
|
96
|
+
this.align = "left";
|
|
97
|
+
this.width = 200;
|
|
98
|
+
this.isCombinationComponent = false;
|
|
99
|
+
this.canSort = true;
|
|
100
|
+
this.dataType = "string";
|
|
101
|
+
this.children = [];
|
|
102
|
+
});
|
|
103
|
+
export default TrajectoryCode;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from "../../type";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { ExpressData } from "@kmkf-fe-packages/kmkf-utils";
|
|
4
|
+
declare class TrajectoryCompany implements ComponentInterface {
|
|
5
|
+
name: string;
|
|
6
|
+
id: string;
|
|
7
|
+
sortField: string;
|
|
8
|
+
type: string;
|
|
9
|
+
rules: any[];
|
|
10
|
+
componentConfig: ComponentInterface["componentConfig"];
|
|
11
|
+
align: ALignType;
|
|
12
|
+
expressDateInstance: InstanceType<typeof ExpressData>;
|
|
13
|
+
width: number;
|
|
14
|
+
isCombinationComponent: boolean;
|
|
15
|
+
formField: string;
|
|
16
|
+
canSort: boolean;
|
|
17
|
+
children: ComponentInterface[];
|
|
18
|
+
dataType: ComponentInterface["dataType"];
|
|
19
|
+
options: ComponentInterface["options"];
|
|
20
|
+
constructor(options: PickOption);
|
|
21
|
+
renderClient: (record: any) => React.JSX.Element | null;
|
|
22
|
+
renderPc: (value: unknown, record: Record) => React.JSX.Element;
|
|
23
|
+
renderLog: (r: Record) => React.JSX.Element | null;
|
|
24
|
+
getComponentValue: (r: Record) => any;
|
|
25
|
+
renderExport: (value: string, record: Record) => any;
|
|
26
|
+
editRender: () => null;
|
|
27
|
+
filterConfig: (item: ColumnConfig) => {
|
|
28
|
+
searchDefaultConditions: "in";
|
|
29
|
+
type: string;
|
|
30
|
+
id: string;
|
|
31
|
+
name: string;
|
|
32
|
+
filterComponentType: "MultipleSelect";
|
|
33
|
+
props: {
|
|
34
|
+
options: any[];
|
|
35
|
+
};
|
|
36
|
+
filterFn: (value: string) => (i: Record) => boolean;
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export default TrajectoryCompany;
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
3
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
4
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
5
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
7
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
8
|
+
import React from "react";
|
|
9
|
+
import { ExpressData } from "@kmkf-fe-packages/kmkf-utils";
|
|
10
|
+
import ItemView from "../../commonComponents/ItemView";
|
|
11
|
+
import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
|
|
12
|
+
import { SYMBOL } from "../../constant";
|
|
13
|
+
var TrajectoryCompany = /*#__PURE__*/_createClass(function TrajectoryCompany(options) {
|
|
14
|
+
var _this = this;
|
|
15
|
+
_classCallCheck(this, TrajectoryCompany);
|
|
16
|
+
_defineProperty(this, "name", void 0);
|
|
17
|
+
_defineProperty(this, "id", void 0);
|
|
18
|
+
_defineProperty(this, "sortField", void 0);
|
|
19
|
+
_defineProperty(this, "type", void 0);
|
|
20
|
+
_defineProperty(this, "rules", void 0);
|
|
21
|
+
_defineProperty(this, "componentConfig", void 0);
|
|
22
|
+
_defineProperty(this, "align", void 0);
|
|
23
|
+
_defineProperty(this, "expressDateInstance", void 0);
|
|
24
|
+
_defineProperty(this, "width", void 0);
|
|
25
|
+
_defineProperty(this, "isCombinationComponent", void 0);
|
|
26
|
+
_defineProperty(this, "formField", void 0);
|
|
27
|
+
_defineProperty(this, "canSort", void 0);
|
|
28
|
+
_defineProperty(this, "children", void 0);
|
|
29
|
+
_defineProperty(this, "dataType", void 0);
|
|
30
|
+
_defineProperty(this, "options", void 0);
|
|
31
|
+
_defineProperty(this, "renderClient", function (record) {
|
|
32
|
+
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
33
|
+
id: _this.id,
|
|
34
|
+
label: _this.name,
|
|
35
|
+
value: _this.expressDateInstance.getExpressNameByCode(record === null || record === void 0 ? void 0 : record[_this.id]) || (record === null || record === void 0 ? void 0 : record[_this.id])
|
|
36
|
+
}) : null;
|
|
37
|
+
});
|
|
38
|
+
_defineProperty(this, "renderPc", function (value, record) {
|
|
39
|
+
if ((record === null || record === void 0 ? void 0 : record[_this.id]) === undefined) {
|
|
40
|
+
return /*#__PURE__*/React.createElement("span", null, "--");
|
|
41
|
+
}
|
|
42
|
+
return /*#__PURE__*/React.createElement("span", null, _this.expressDateInstance.getExpressNameByCode(record === null || record === void 0 ? void 0 : record[_this.id]) || (record === null || record === void 0 ? void 0 : record[_this.id]));
|
|
43
|
+
});
|
|
44
|
+
_defineProperty(this, "renderLog", function (r) {
|
|
45
|
+
if (isNull(r === null || r === void 0 ? void 0 : r[_this.id])) return null;
|
|
46
|
+
return _this.renderPc(undefined, r);
|
|
47
|
+
});
|
|
48
|
+
_defineProperty(this, "getComponentValue", function (r) {
|
|
49
|
+
return r === null || r === void 0 ? void 0 : r[_this.id];
|
|
50
|
+
});
|
|
51
|
+
_defineProperty(this, "renderExport", function (value, record) {
|
|
52
|
+
return _this.expressDateInstance.getExpressNameByCode(record === null || record === void 0 ? void 0 : record[_this.id]) || (record === null || record === void 0 ? void 0 : record[_this.id]);
|
|
53
|
+
});
|
|
54
|
+
_defineProperty(this, "editRender", function () {
|
|
55
|
+
return null;
|
|
56
|
+
});
|
|
57
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
58
|
+
var subKey = item.subKey;
|
|
59
|
+
return {
|
|
60
|
+
searchDefaultConditions: SYMBOL.in,
|
|
61
|
+
type: item.type,
|
|
62
|
+
id: subKey ? "".concat(item.id, "_").concat(subKey) : item.id,
|
|
63
|
+
name: "".concat(item.name, "-\u7269\u6D41\u516C\u53F8"),
|
|
64
|
+
filterComponentType: "MultipleSelect",
|
|
65
|
+
props: {
|
|
66
|
+
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
|
+
}
|
|
73
|
+
};
|
|
74
|
+
});
|
|
75
|
+
this.name = options.name;
|
|
76
|
+
this.id = options.id;
|
|
77
|
+
this.sortField = options.id;
|
|
78
|
+
this.formField = options.id;
|
|
79
|
+
this.type = options.type;
|
|
80
|
+
this.componentConfig = options.componentConfig;
|
|
81
|
+
this.rules = [];
|
|
82
|
+
this.align = "left";
|
|
83
|
+
this.expressDateInstance = ExpressData.getInstance();
|
|
84
|
+
this.width = 200;
|
|
85
|
+
this.isCombinationComponent = false;
|
|
86
|
+
this.canSort = true;
|
|
87
|
+
this.children = [];
|
|
88
|
+
this.dataType = "string";
|
|
89
|
+
this.options = this.expressDateInstance.getExpressData() || [];
|
|
90
|
+
});
|
|
91
|
+
export default TrajectoryCompany;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from "../../type";
|
|
2
|
+
import React from "react";
|
|
3
|
+
declare class TrajectorySnapshot 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: (item: ColumnConfig) => {
|
|
24
|
+
searchDefaultConditions: "like";
|
|
25
|
+
type: string;
|
|
26
|
+
id: string;
|
|
27
|
+
name: string;
|
|
28
|
+
filterComponentType: "Input";
|
|
29
|
+
filterFn: (value: string) => (i: Record) => boolean;
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
export default TrajectorySnapshot;
|
|
@@ -0,0 +1,80 @@
|
|
|
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, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
|
|
11
|
+
import { SYMBOL } from "../../constant";
|
|
12
|
+
var TrajectorySnapshot = /*#__PURE__*/_createClass(function TrajectorySnapshot(options) {
|
|
13
|
+
var _this = this;
|
|
14
|
+
_classCallCheck(this, TrajectorySnapshot);
|
|
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: record === null || record === void 0 ? void 0 : record[_this.id]
|
|
32
|
+
}) : null;
|
|
33
|
+
});
|
|
34
|
+
_defineProperty(this, "renderPc", function (value, record) {
|
|
35
|
+
var _record$_this$id;
|
|
36
|
+
return /*#__PURE__*/React.createElement("span", null, (_record$_this$id = record === null || record === void 0 ? void 0 : record[_this.id]) !== null && _record$_this$id !== void 0 ? _record$_this$id : "--");
|
|
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
|
+
return r === null || r === void 0 ? void 0 : r[_this.id];
|
|
44
|
+
});
|
|
45
|
+
_defineProperty(this, "renderExport", function (value, record) {
|
|
46
|
+
var _record$_this$id2;
|
|
47
|
+
return (_record$_this$id2 = record === null || record === void 0 ? void 0 : record[_this.id]) !== null && _record$_this$id2 !== void 0 ? _record$_this$id2 : "--";
|
|
48
|
+
});
|
|
49
|
+
_defineProperty(this, "editRender", function () {
|
|
50
|
+
return null;
|
|
51
|
+
});
|
|
52
|
+
_defineProperty(this, "filterConfig", function (item) {
|
|
53
|
+
var subKey = item.subKey;
|
|
54
|
+
return {
|
|
55
|
+
searchDefaultConditions: SYMBOL.like,
|
|
56
|
+
type: item.type,
|
|
57
|
+
id: subKey ? "".concat(item.id, "_").concat(subKey) : item.id,
|
|
58
|
+
name: "".concat(item.name, "-\u7269\u6D41\u5FEB\u7167"),
|
|
59
|
+
filterComponentType: "Input",
|
|
60
|
+
filterFn: function filterFn(value) {
|
|
61
|
+
return function (i) {
|
|
62
|
+
return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, "".concat(subKey)), value);
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
});
|
|
67
|
+
this.name = options.name;
|
|
68
|
+
this.id = options.id;
|
|
69
|
+
this.sortField = options.id;
|
|
70
|
+
this.formField = options.id;
|
|
71
|
+
this.type = options.type;
|
|
72
|
+
this.componentConfig = options.componentConfig;
|
|
73
|
+
this.align = "left";
|
|
74
|
+
this.width = 200;
|
|
75
|
+
this.isCombinationComponent = false;
|
|
76
|
+
this.canSort = true;
|
|
77
|
+
this.dataType = "string";
|
|
78
|
+
this.children = [];
|
|
79
|
+
});
|
|
80
|
+
export default TrajectorySnapshot;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ComponentInterface, PickOption, ColumnConfig, Record } from "../../type";
|
|
2
2
|
import React from "react";
|
|
3
3
|
import { AddressData } from "@kmkf-fe-packages/kmkf-utils";
|
|
4
|
-
declare class
|
|
4
|
+
declare class BasicPosting implements ComponentInterface {
|
|
5
5
|
name: string;
|
|
6
6
|
id: string;
|
|
7
7
|
sortField: string;
|
|
@@ -28,6 +28,29 @@ declare class BasicInput implements ComponentInterface {
|
|
|
28
28
|
renderExport: (value: any, record: Record) => string | null;
|
|
29
29
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
30
30
|
editRender: (p: any) => React.JSX.Element;
|
|
31
|
-
filterConfig: (item: ColumnConfig) =>
|
|
31
|
+
filterConfig: (item: ColumnConfig) => ({
|
|
32
|
+
searchDefaultConditions: "eq";
|
|
33
|
+
type: string;
|
|
34
|
+
id: string;
|
|
35
|
+
name: string;
|
|
36
|
+
filterComponentType: "Cascader";
|
|
37
|
+
props: {
|
|
38
|
+
options: any;
|
|
39
|
+
fieldNames: {
|
|
40
|
+
label: string;
|
|
41
|
+
value: string;
|
|
42
|
+
children: string;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
formatFilterValue: (val: Array<number>) => number | undefined;
|
|
46
|
+
} | {
|
|
47
|
+
searchDefaultConditions: "like";
|
|
48
|
+
type: string;
|
|
49
|
+
id: string;
|
|
50
|
+
name: string;
|
|
51
|
+
filterComponentType: "Input";
|
|
52
|
+
props?: undefined;
|
|
53
|
+
formatFilterValue?: undefined;
|
|
54
|
+
})[];
|
|
32
55
|
}
|
|
33
|
-
export default
|
|
56
|
+
export default BasicPosting;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
3
|
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
4
|
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
5
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
@@ -11,10 +12,29 @@ import GetFormItem from "../GetFormItem";
|
|
|
11
12
|
import ItemView from "../../commonComponents/ItemView";
|
|
12
13
|
import { isNull } from "@kmkf-fe-packages/kmkf-utils";
|
|
13
14
|
import { AddressData } from "@kmkf-fe-packages/kmkf-utils";
|
|
14
|
-
|
|
15
|
+
import { SYMBOL } from "../../constant";
|
|
16
|
+
var typeMap = {
|
|
17
|
+
POSTING: {
|
|
18
|
+
province: "postingProvince",
|
|
19
|
+
city: "postingCity",
|
|
20
|
+
district: "postingDistrict",
|
|
21
|
+
detail: "postingDetail",
|
|
22
|
+
name: "postingReceiverName",
|
|
23
|
+
mobile: "postingReceiverMobile"
|
|
24
|
+
},
|
|
25
|
+
BS_POSTING: {
|
|
26
|
+
province: "bsPostingProvince",
|
|
27
|
+
city: "bsPostingCity",
|
|
28
|
+
district: "bsPostingDistrict",
|
|
29
|
+
detail: "bsPostingDetail",
|
|
30
|
+
name: "bsPostingReceiverName",
|
|
31
|
+
mobile: "bsPostingReceiverMobile"
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
var BasicPosting = /*#__PURE__*/_createClass(function BasicPosting(options) {
|
|
15
35
|
var _this = this,
|
|
16
36
|
_options$componentCon;
|
|
17
|
-
_classCallCheck(this,
|
|
37
|
+
_classCallCheck(this, BasicPosting);
|
|
18
38
|
_defineProperty(this, "name", void 0);
|
|
19
39
|
_defineProperty(this, "id", void 0);
|
|
20
40
|
_defineProperty(this, "sortField", void 0);
|
|
@@ -28,13 +48,13 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
28
48
|
_defineProperty(this, "dataType", void 0);
|
|
29
49
|
_defineProperty(this, "addressDateInstance", void 0);
|
|
30
50
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
31
|
-
var _ref;
|
|
32
|
-
var province = record["".concat(_this.id, "
|
|
33
|
-
var city = record["".concat(_this.id, "
|
|
34
|
-
var district = record["".concat(_this.id, "
|
|
35
|
-
var detail = record["".concat(_this.id, "
|
|
36
|
-
var name = record["".concat(_this.id, "
|
|
37
|
-
var mobile = record["".concat(_this.id, "
|
|
51
|
+
var _typeMap$_this$type, _typeMap$_this$type2, _typeMap$_this$type3, _typeMap$_this$type4, _typeMap$_this$type5, _typeMap$_this$type6, _ref;
|
|
52
|
+
var province = record["".concat(_this.id, "_").concat((_typeMap$_this$type = typeMap[_this.type]) === null || _typeMap$_this$type === void 0 ? void 0 : _typeMap$_this$type.province)];
|
|
53
|
+
var city = record["".concat(_this.id, "_").concat((_typeMap$_this$type2 = typeMap[_this.type]) === null || _typeMap$_this$type2 === void 0 ? void 0 : _typeMap$_this$type2.city)];
|
|
54
|
+
var district = record["".concat(_this.id, "_").concat((_typeMap$_this$type3 = typeMap[_this.type]) === null || _typeMap$_this$type3 === void 0 ? void 0 : _typeMap$_this$type3.district)];
|
|
55
|
+
var detail = record["".concat(_this.id, "_").concat((_typeMap$_this$type4 = typeMap[_this.type]) === null || _typeMap$_this$type4 === void 0 ? void 0 : _typeMap$_this$type4.detail)];
|
|
56
|
+
var name = record["".concat(_this.id, "_").concat((_typeMap$_this$type5 = typeMap[_this.type]) === null || _typeMap$_this$type5 === void 0 ? void 0 : _typeMap$_this$type5.name)];
|
|
57
|
+
var mobile = record["".concat(_this.id, "_").concat((_typeMap$_this$type6 = typeMap[_this.type]) === null || _typeMap$_this$type6 === void 0 ? void 0 : _typeMap$_this$type6.mobile)];
|
|
38
58
|
if (province === undefined) {
|
|
39
59
|
return /*#__PURE__*/React.createElement("span", null, "--");
|
|
40
60
|
}
|
|
@@ -61,13 +81,14 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
61
81
|
return /*#__PURE__*/React.createElement(React.Fragment, null, "".concat(addressText).concat(detail, " ").concat(name).concat(mobile));
|
|
62
82
|
});
|
|
63
83
|
_defineProperty(this, "getComponentValue", function (r) {
|
|
84
|
+
var _typeMap$_this$type7, _typeMap$_this$type8, _typeMap$_this$type9, _typeMap$_this$type10, _typeMap$_this$type11, _typeMap$_this$type12;
|
|
64
85
|
return {
|
|
65
|
-
province: r === null || r === void 0 ? void 0 : r["".concat(_this.id, "
|
|
66
|
-
city: r === null || r === void 0 ? void 0 : r["".concat(_this.id, "
|
|
67
|
-
district: r === null || r === void 0 ? void 0 : r["".concat(_this.id, "
|
|
68
|
-
detail: (r === null || r === void 0 ? void 0 : r["".concat(_this.id, "
|
|
69
|
-
name: (r === null || r === void 0 ? void 0 : r["".concat(_this.id, "
|
|
70
|
-
mobile: (r === null || r === void 0 ? void 0 : r["".concat(_this.id, "
|
|
86
|
+
province: r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat((_typeMap$_this$type7 = typeMap[_this.type]) === null || _typeMap$_this$type7 === void 0 ? void 0 : _typeMap$_this$type7.province)],
|
|
87
|
+
city: r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat((_typeMap$_this$type8 = typeMap[_this.type]) === null || _typeMap$_this$type8 === void 0 ? void 0 : _typeMap$_this$type8.city)],
|
|
88
|
+
district: r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat((_typeMap$_this$type9 = typeMap[_this.type]) === null || _typeMap$_this$type9 === void 0 ? void 0 : _typeMap$_this$type9.district)],
|
|
89
|
+
detail: (r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat((_typeMap$_this$type10 = typeMap[_this.type]) === null || _typeMap$_this$type10 === void 0 ? void 0 : _typeMap$_this$type10.detail)]) || "",
|
|
90
|
+
name: (r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat((_typeMap$_this$type11 = typeMap[_this.type]) === null || _typeMap$_this$type11 === void 0 ? void 0 : _typeMap$_this$type11.name)]) || "",
|
|
91
|
+
mobile: (r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat((_typeMap$_this$type12 = typeMap[_this.type]) === null || _typeMap$_this$type12 === void 0 ? void 0 : _typeMap$_this$type12.mobile)]) || ""
|
|
71
92
|
};
|
|
72
93
|
});
|
|
73
94
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
@@ -88,13 +109,13 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
88
109
|
return "".concat(addressText).concat(detail, " ").concat(name).concat(mobile);
|
|
89
110
|
});
|
|
90
111
|
_defineProperty(this, "renderClient", function (record) {
|
|
91
|
-
var _ref4;
|
|
92
|
-
var province = record["".concat(_this.id, "
|
|
93
|
-
var city = record["".concat(_this.id, "
|
|
94
|
-
var district = record["".concat(_this.id, "
|
|
95
|
-
var detail = record["".concat(_this.id, "
|
|
96
|
-
var name = record["".concat(_this.id, "
|
|
97
|
-
var mobile = record["".concat(_this.id, "
|
|
112
|
+
var _typeMap$_this$type13, _typeMap$_this$type14, _typeMap$_this$type15, _typeMap$_this$type16, _typeMap$_this$type17, _typeMap$_this$type18, _ref4;
|
|
113
|
+
var province = record["".concat(_this.id, "_").concat((_typeMap$_this$type13 = typeMap[_this.type]) === null || _typeMap$_this$type13 === void 0 ? void 0 : _typeMap$_this$type13.province)];
|
|
114
|
+
var city = record["".concat(_this.id, "_").concat((_typeMap$_this$type14 = typeMap[_this.type]) === null || _typeMap$_this$type14 === void 0 ? void 0 : _typeMap$_this$type14.city)];
|
|
115
|
+
var district = record["".concat(_this.id, "_").concat((_typeMap$_this$type15 = typeMap[_this.type]) === null || _typeMap$_this$type15 === void 0 ? void 0 : _typeMap$_this$type15.district)];
|
|
116
|
+
var detail = record["".concat(_this.id, "_").concat((_typeMap$_this$type16 = typeMap[_this.type]) === null || _typeMap$_this$type16 === void 0 ? void 0 : _typeMap$_this$type16.detail)];
|
|
117
|
+
var name = record["".concat(_this.id, "_").concat((_typeMap$_this$type17 = typeMap[_this.type]) === null || _typeMap$_this$type17 === void 0 ? void 0 : _typeMap$_this$type17.name)];
|
|
118
|
+
var mobile = record["".concat(_this.id, "_").concat((_typeMap$_this$type18 = typeMap[_this.type]) === null || _typeMap$_this$type18 === void 0 ? void 0 : _typeMap$_this$type18.mobile)];
|
|
98
119
|
var addressText = (_ref4 = [province, city, district]) === null || _ref4 === void 0 ? void 0 : _ref4.map(function (suffix) {
|
|
99
120
|
return _this.addressDateInstance.getNameByCode(suffix);
|
|
100
121
|
}).join("");
|
|
@@ -114,11 +135,59 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
114
135
|
rules: _this.rules,
|
|
115
136
|
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
116
137
|
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,
|
|
117
|
-
component: /*#__PURE__*/React.createElement(ApaasPosting, _this.componentConfig
|
|
138
|
+
component: /*#__PURE__*/React.createElement(ApaasPosting, _extends({}, _this.componentConfig, {
|
|
139
|
+
type: _this.type === "POSTING" ? "workOrder" : "bs"
|
|
140
|
+
}))
|
|
118
141
|
});
|
|
119
142
|
});
|
|
120
143
|
_defineProperty(this, "filterConfig", function (item) {
|
|
121
|
-
|
|
144
|
+
var _typeMap$_this$type19, _typeMap$_this$type20, _typeMap$_this$type21, _typeMap$_this$type22;
|
|
145
|
+
return [{
|
|
146
|
+
searchDefaultConditions: SYMBOL.eq,
|
|
147
|
+
type: item.type,
|
|
148
|
+
id: "".concat(item.id, "_").concat((_typeMap$_this$type19 = typeMap[_this.type]) === null || _typeMap$_this$type19 === void 0 ? void 0 : _typeMap$_this$type19.district),
|
|
149
|
+
// 过滤组件id
|
|
150
|
+
name: "".concat(item.name, "-\u7701\u5E02\u533A"),
|
|
151
|
+
// 过滤组件名称
|
|
152
|
+
filterComponentType: "Cascader",
|
|
153
|
+
props: {
|
|
154
|
+
options: _this.addressDateInstance.addressOptions || [],
|
|
155
|
+
fieldNames: {
|
|
156
|
+
label: "label",
|
|
157
|
+
value: "value",
|
|
158
|
+
children: "children"
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
formatFilterValue: function formatFilterValue(val) {
|
|
162
|
+
if ((val === null || val === void 0 ? void 0 : val.length) > 2) {
|
|
163
|
+
return val === null || val === void 0 ? void 0 : val[2];
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
}, {
|
|
167
|
+
searchDefaultConditions: SYMBOL.like,
|
|
168
|
+
type: item.type,
|
|
169
|
+
id: "".concat(item.id, "_").concat((_typeMap$_this$type20 = typeMap[_this.type]) === null || _typeMap$_this$type20 === void 0 ? void 0 : _typeMap$_this$type20.detail),
|
|
170
|
+
// 过滤组件id
|
|
171
|
+
name: "".concat(item.name, "-\u8BE6\u7EC6\u5730\u5740"),
|
|
172
|
+
// 过滤组件名称
|
|
173
|
+
filterComponentType: "Input"
|
|
174
|
+
}, {
|
|
175
|
+
searchDefaultConditions: SYMBOL.like,
|
|
176
|
+
type: item.type,
|
|
177
|
+
id: "".concat(item.id, "_").concat((_typeMap$_this$type21 = typeMap[_this.type]) === null || _typeMap$_this$type21 === void 0 ? void 0 : _typeMap$_this$type21.name),
|
|
178
|
+
// 过滤组件id
|
|
179
|
+
name: "".concat(item.name, "-\u59D3\u540D"),
|
|
180
|
+
// 过滤组件名称
|
|
181
|
+
filterComponentType: "Input"
|
|
182
|
+
}, {
|
|
183
|
+
searchDefaultConditions: SYMBOL.like,
|
|
184
|
+
type: item.type,
|
|
185
|
+
id: "".concat(item.id, "_").concat((_typeMap$_this$type22 = typeMap[_this.type]) === null || _typeMap$_this$type22 === void 0 ? void 0 : _typeMap$_this$type22.mobile),
|
|
186
|
+
// 过滤组件id
|
|
187
|
+
name: "".concat(item.name, "-\u7535\u8BDD"),
|
|
188
|
+
// 过滤组件名称
|
|
189
|
+
filterComponentType: "Input"
|
|
190
|
+
}];
|
|
122
191
|
});
|
|
123
192
|
this.name = options.name;
|
|
124
193
|
this.id = options.id;
|
|
@@ -141,4 +210,4 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
141
210
|
}
|
|
142
211
|
}] : [];
|
|
143
212
|
});
|
|
144
|
-
export default
|
|
213
|
+
export default BasicPosting;
|
package/dist/esm/factory.d.ts
CHANGED
|
@@ -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, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, Handler, CompletedUser, LogisticsInterception,
|
|
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, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, Handler, CompletedUser, LogisticsInterception, LogisticsTrajectory, BsLogistics, BsGoods, BsExchange, BsReissue } from "./index";
|
|
2
2
|
import { PickOption } from "./type";
|
|
3
|
-
export declare const factory: (type: string, options: PickOption) =>
|
|
3
|
+
export declare const factory: (type: string, options: PickOption) => ActualPayment | BsExchange | BsGoods | BsLogistics | BsReissue | BasicFile | BasicInput | JstItemSelect | JstLogistics | JstSendGood | JstSupply | LogisticsTrajectory | BasicPosting | BasicDataTime | TradeDateTime | BasicAddress | BasicCascader | BasicCheckbox | BasicSelect | BasicRadio | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | CommonDataTime | TradeId | ErpTradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | Logistics | ReturnLogistics | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | FlowStatusSelect | TemplateSelect | WorkOrderId | LogisticsInterception | PlatForm | ShopInput | Submitter | Handler | CompletedUser;
|
package/dist/esm/factory.js
CHANGED
|
@@ -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, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, Handler, CompletedUser, LogisticsInterception,
|
|
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, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, Handler, CompletedUser, LogisticsInterception, LogisticsTrajectory, BsLogistics, BsGoods, BsExchange, BsReissue } from "./index";
|
|
2
2
|
export var factory = function factory(type, options) {
|
|
3
3
|
var _options$componentCon;
|
|
4
4
|
switch (type) {
|
|
@@ -91,6 +91,8 @@ export var factory = function factory(type, options) {
|
|
|
91
91
|
return new SystemOrderNo(options);
|
|
92
92
|
case "LOGISTICS_INTERCEPTION":
|
|
93
93
|
return new LogisticsInterception(options);
|
|
94
|
+
case "LOGISTICS_TRAJECTORY":
|
|
95
|
+
return new LogisticsTrajectory(options);
|
|
94
96
|
case "WORK_ORDER_ID_INPUT":
|
|
95
97
|
return new WorkOrderId(options);
|
|
96
98
|
case "FLOW_STATUS_SELECT":
|
|
@@ -110,9 +112,16 @@ export var factory = function factory(type, options) {
|
|
|
110
112
|
case "JST_SUPPLY":
|
|
111
113
|
return new JstSupply(options);
|
|
112
114
|
case "JST_SEND_GOOD":
|
|
113
|
-
return new JstSendGood(options);
|
|
114
115
|
case "BS_SEND_GOOD":
|
|
115
|
-
return new
|
|
116
|
+
return new JstSendGood(options);
|
|
117
|
+
case "BS_POSTING":
|
|
118
|
+
return new BasicPosting(options);
|
|
119
|
+
case "BS_GOODS":
|
|
120
|
+
return new BsGoods(options);
|
|
121
|
+
case "BS_EXCHANGE_GOODS":
|
|
122
|
+
return new BsExchange(options);
|
|
123
|
+
case "BS_REISSUE_GOODS":
|
|
124
|
+
return new BsReissue(options);
|
|
116
125
|
default:
|
|
117
126
|
return new BasicInput(options);
|
|
118
127
|
}
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -33,16 +33,19 @@ export { default as SystemOrderNo } from "./components/SystemOrderNo";
|
|
|
33
33
|
export { default as Ordinary } from "./components/Ordinary";
|
|
34
34
|
export { default as ThirdItemSelect } from "./components/ThirdItemSelect";
|
|
35
35
|
export { default as Payment } from "./components/Payment";
|
|
36
|
-
export { default as JstLogistics } from "./components/JstLogistics";
|
|
37
|
-
export { default as JstItemSelect } from "./components/JstItemSelect";
|
|
38
|
-
export { default as JstSendGood } from "./components/JstSendGood";
|
|
39
|
-
export { default as JstSupply } from "./components/JstSupply";
|
|
40
|
-
export { default as
|
|
41
|
-
export { default as
|
|
36
|
+
export { default as JstLogistics } from "./components/JST/JstLogistics";
|
|
37
|
+
export { default as JstItemSelect } from "./components/JST/JstItemSelect";
|
|
38
|
+
export { default as JstSendGood } from "./components/JST/JstSendGood";
|
|
39
|
+
export { default as JstSupply } from "./components/JST/JstSupply";
|
|
40
|
+
export { default as BsLogistics } from "./components/BS/BsLogistics";
|
|
41
|
+
export { default as BsGoods } from "./components/BS/BsGoods";
|
|
42
|
+
export { default as BsExchange } from "./components/BS/BsExchange";
|
|
43
|
+
export { default as BsReissue } from "./components/BS/BsReissue";
|
|
42
44
|
export { default as FlowStatusSelect } from "./components/FlowStatusSelect";
|
|
43
45
|
export { default as TemplateSelect } from "./components/TemplateSelect";
|
|
44
46
|
export { default as WorkOrderId } from "./components/WorkOrderId";
|
|
45
47
|
export { default as LogisticsInterception } from "./components/LogisticsInterception";
|
|
48
|
+
export { default as LogisticsTrajectory } from "./components/LogisticsTrajectory";
|
|
46
49
|
export { default as PlatForm } from "./components/PlatForm";
|
|
47
50
|
export { default as ShopInput } from "./components/ShopInput";
|
|
48
51
|
export { default as Submitter } from "./components/Submitter";
|