@kmkf-fe-packages/services-components 0.7.15-alpha.1 → 0.7.15-alpha.11
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 +48 -0
- package/dist/esm/components/BS/BsExchange/index.js +258 -0
- package/dist/esm/components/BS/BsGoods/index.d.ts +31 -0
- package/dist/esm/components/BS/BsGoods/index.js +136 -0
- 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 +43 -0
- package/dist/esm/components/BS/BsReissue/index.js +149 -0
- package/dist/esm/components/{BsSendGood/index.d.ts → BS/common/BsChildCode.d.ts} +9 -9
- package/dist/esm/components/BS/common/BsChildCode.js +71 -0
- package/dist/esm/components/BS/common/BsChildMoney.d.ts +25 -0
- package/dist/esm/components/BS/common/BsChildMoney.js +71 -0
- package/dist/esm/components/BS/common/BsChildName.d.ts +25 -0
- package/dist/esm/components/BS/common/BsChildName.js +71 -0
- package/dist/esm/components/BS/common/BsChildNumber.d.ts +25 -0
- package/dist/esm/components/BS/common/BsChildNumber.js +71 -0
- package/dist/esm/components/BS/common/BsChildPic.d.ts +25 -0
- package/dist/esm/components/BS/common/BsChildPic.js +72 -0
- package/dist/esm/components/BS/common/BsChildShare.d.ts +25 -0
- package/dist/esm/components/BS/common/BsChildShare.js +71 -0
- package/dist/esm/components/BS/common/BsChildSku.d.ts +25 -0
- package/dist/esm/components/BS/common/BsChildSku.js +71 -0
- package/dist/esm/components/BS/common/BsChildType.d.ts +25 -0
- package/dist/esm/components/BS/common/BsChildType.js +71 -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/BS/common/BsMemo.d.ts +25 -0
- 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/BS/common/index.d.ts +10 -0
- package/dist/esm/components/BS/common/index.js +10 -0
- package/dist/esm/components/Common/index.d.ts +12 -6
- package/dist/esm/components/Common/index.js +115 -50
- package/dist/esm/components/Common/index.module.less +8 -0
- package/dist/esm/components/DataTime/ApaasDate.d.ts +2 -2
- package/dist/esm/components/EItemEnCode/ItemEncode.d.ts +2 -2
- package/dist/esm/components/EItemId/ItemId.d.ts +2 -2
- package/dist/esm/components/EItemSelect/ItemSelect.d.ts +2 -2
- package/dist/esm/components/ExpressCompany/index.d.ts +2 -2
- 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/Popover/index.d.ts +2 -2
- package/dist/esm/components/PostIng/index.d.ts +26 -3
- package/dist/esm/components/PostIng/index.js +94 -25
- package/dist/esm/components/ThirdItemSelect/ItemEncode.d.ts +2 -2
- 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
- package/dist/esm/components/BsSendGood/index.js +0 -116
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const Popover: ({ Overlay, ShowComponent }: any) => JSX.Element;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const Popover: ({ Overlay, ShowComponent }: any) => React.JSX.Element;
|
|
3
3
|
export default Popover;
|
|
@@ -1,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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { GoodsProps } from '@kmkf-fe-packages/basic-components/dist/common/Goods';
|
|
3
|
-
declare const ItemEncode: (props: JSX.IntrinsicAttributes & GoodsProps) => JSX.Element;
|
|
3
|
+
declare const ItemEncode: (props: JSX.IntrinsicAttributes & GoodsProps) => React.JSX.Element;
|
|
4
4
|
export default ItemEncode;
|
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";
|
package/dist/esm/index.js
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";
|
package/dist/esm/type.d.ts
CHANGED
|
@@ -56,7 +56,7 @@ export interface ComponentInterface {
|
|
|
56
56
|
/**
|
|
57
57
|
* @description 显示字段名称
|
|
58
58
|
*/
|
|
59
|
-
showField?: "EXPRESS_COMPANY" | "EXPRESS_WAYBILL_CODE" | "all";
|
|
59
|
+
showField?: "EXPRESS_COMPANY" | "EXPRESS_WAYBILL_CODE" | "EXPRESS_SNAPSHOT" | "all";
|
|
60
60
|
/**
|
|
61
61
|
* @description 是否选择SKU
|
|
62
62
|
*/
|
|
@@ -137,6 +137,7 @@ export interface ComponentInterface {
|
|
|
137
137
|
* @description 针对ERP的订单组件需要特殊展示,此处增加一个特殊标识
|
|
138
138
|
*/
|
|
139
139
|
erpFlag?: boolean;
|
|
140
|
+
reasonList?: any[];
|
|
140
141
|
};
|
|
141
142
|
effects?: {
|
|
142
143
|
queryWorkOrderDetail?: (r: Record) => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "0.7.15-alpha.
|
|
3
|
+
"version": "0.7.15-alpha.11",
|
|
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.7.15-alpha.
|
|
30
|
-
"@kmkf-fe-packages/kmkf-utils": "^0.7.15-alpha.
|
|
29
|
+
"@kmkf-fe-packages/basic-components": "^0.7.15-alpha.11",
|
|
30
|
+
"@kmkf-fe-packages/kmkf-utils": "^0.7.15-alpha.11"
|
|
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": "
|
|
43
|
+
"gitHead": "b2452c95f3529ac1825c4c260a0485fe292ec176"
|
|
44
44
|
}
|
|
@@ -1,116 +0,0 @@
|
|
|
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); }
|
|
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); } }
|
|
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; }
|
|
5
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
7
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
8
|
-
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
9
|
-
import React from "react";
|
|
10
|
-
import some from "lodash/some";
|
|
11
|
-
import GetFormItem from "../GetFormItem";
|
|
12
|
-
import { JstGoodImage } from "../Common";
|
|
13
|
-
import { JstGoods } from "@kmkf-fe-packages/basic-components";
|
|
14
|
-
import ItemView from "../../commonComponents/ItemView";
|
|
15
|
-
import { isNull } from "@kmkf-fe-packages/kmkf-utils";
|
|
16
|
-
var BsSendGood = /*#__PURE__*/_createClass(function BsSendGood(options) {
|
|
17
|
-
var _this = this,
|
|
18
|
-
_this$componentConfig;
|
|
19
|
-
_classCallCheck(this, BsSendGood);
|
|
20
|
-
_defineProperty(this, "name", void 0);
|
|
21
|
-
_defineProperty(this, "id", void 0);
|
|
22
|
-
_defineProperty(this, "sortField", void 0);
|
|
23
|
-
_defineProperty(this, "type", void 0);
|
|
24
|
-
_defineProperty(this, "rules", void 0);
|
|
25
|
-
_defineProperty(this, "componentConfig", void 0);
|
|
26
|
-
_defineProperty(this, "align", void 0);
|
|
27
|
-
_defineProperty(this, "isCombinationComponent", void 0);
|
|
28
|
-
_defineProperty(this, "formField", void 0);
|
|
29
|
-
_defineProperty(this, "canSort", void 0);
|
|
30
|
-
_defineProperty(this, "children", void 0);
|
|
31
|
-
_defineProperty(this, "dataType", void 0);
|
|
32
|
-
_defineProperty(this, "renderClient", function (record) {
|
|
33
|
-
var isShow = Array.isArray(record === null || record === void 0 ? void 0 : record[_this.id]) ? some(record === null || record === void 0 ? void 0 : record[_this.id], function (item) {
|
|
34
|
-
return !isNull(item);
|
|
35
|
-
}) : false;
|
|
36
|
-
return isShow ? /*#__PURE__*/React.createElement(ItemView, {
|
|
37
|
-
id: _this.id,
|
|
38
|
-
label: _this.name,
|
|
39
|
-
value: /*#__PURE__*/React.createElement(JstGoodImage, {
|
|
40
|
-
list: record === null || record === void 0 ? void 0 : record[_this.id],
|
|
41
|
-
type: 3
|
|
42
|
-
})
|
|
43
|
-
}) : null;
|
|
44
|
-
});
|
|
45
|
-
_defineProperty(this, "renderPc", function (value, record) {
|
|
46
|
-
var list = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_bsSendGood")];
|
|
47
|
-
//兼容多个商品
|
|
48
|
-
return /*#__PURE__*/React.createElement(JstGoodImage, {
|
|
49
|
-
list: list,
|
|
50
|
-
type: 3
|
|
51
|
-
});
|
|
52
|
-
});
|
|
53
|
-
_defineProperty(this, "renderLog", function (r) {
|
|
54
|
-
var list = r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_bsSendGood")];
|
|
55
|
-
if (isNull(list)) return null;
|
|
56
|
-
return _this.renderPc(undefined, r);
|
|
57
|
-
});
|
|
58
|
-
_defineProperty(this, "getComponentValue", function (r) {
|
|
59
|
-
return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_bsSendGood")];
|
|
60
|
-
});
|
|
61
|
-
_defineProperty(this, "renderExport", function (value, record) {
|
|
62
|
-
var list = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_bsSendGood")];
|
|
63
|
-
return (list || []).map(function (item) {
|
|
64
|
-
return [item === null || item === void 0 ? void 0 : item.sendId, item === null || item === void 0 ? void 0 : item.sendName].join("/");
|
|
65
|
-
}).join(",");
|
|
66
|
-
});
|
|
67
|
-
_defineProperty(this, "editRender", function (p) {
|
|
68
|
-
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
69
|
-
title: _this.name,
|
|
70
|
-
name: _this.id,
|
|
71
|
-
rules: _this.rules,
|
|
72
|
-
required: false,
|
|
73
|
-
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
74
|
-
component: /*#__PURE__*/React.createElement(JstGoods, _extends({}, _this.componentConfig, {
|
|
75
|
-
type: 3
|
|
76
|
-
}))
|
|
77
|
-
});
|
|
78
|
-
});
|
|
79
|
-
_defineProperty(this, "filterConfig", function (item) {
|
|
80
|
-
return [];
|
|
81
|
-
});
|
|
82
|
-
this.name = options.name;
|
|
83
|
-
this.id = options.id;
|
|
84
|
-
this.sortField = "".concat(options.id, "_bsSendGood");
|
|
85
|
-
this.formField = "".concat(options.id, "_bsSendGood");
|
|
86
|
-
this.type = options.type;
|
|
87
|
-
this.componentConfig = options.componentConfig;
|
|
88
|
-
this.dataType = "object";
|
|
89
|
-
this.rules = (_this$componentConfig = this.componentConfig) !== null && _this$componentConfig !== void 0 && _this$componentConfig.required ? [{
|
|
90
|
-
required: true,
|
|
91
|
-
validator: function validator(_, value) {
|
|
92
|
-
if (!value || !value.length) {
|
|
93
|
-
return Promise.reject(new Error("请选择宝贝"));
|
|
94
|
-
}
|
|
95
|
-
var hasNo = (value || []).some(function (item) {
|
|
96
|
-
var _this$componentConfig2, _this$componentConfig3;
|
|
97
|
-
if (["sendName"].includes((_this === null || _this === void 0 ? void 0 : (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.showField) || "")) {
|
|
98
|
-
return item.sendName;
|
|
99
|
-
} else if (["sendId"].includes((_this === null || _this === void 0 ? void 0 : (_this$componentConfig3 = _this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.showField) || "")) {
|
|
100
|
-
return item.sendId;
|
|
101
|
-
} else {
|
|
102
|
-
return item.sendId && item.sendName;
|
|
103
|
-
}
|
|
104
|
-
});
|
|
105
|
-
if (!hasNo) {
|
|
106
|
-
return Promise.reject(new Error("\u81F3\u5C11\u586B\u5199\u4E00\u4E2A\u5B8C\u6574\u7684\u53D1\u8D27\u4ED3\u4FE1\u606F"));
|
|
107
|
-
}
|
|
108
|
-
return Promise.resolve();
|
|
109
|
-
}
|
|
110
|
-
}] : [];
|
|
111
|
-
this.align = "left";
|
|
112
|
-
this.isCombinationComponent = false;
|
|
113
|
-
this.canSort = false;
|
|
114
|
-
this.children = [];
|
|
115
|
-
});
|
|
116
|
-
export default BsSendGood;
|