@kmkf-fe-packages/services-components 0.24.2-beta.7 → 0.25.0-alpha.1
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/README.md +1 -1
- package/dist/esm/components/BS/BsLogistics/index.js +6 -10
- package/dist/esm/components/BS/BsReissue/index.d.ts +9 -9
- package/dist/esm/components/BS/BsReissue/index.js +34 -64
- package/dist/esm/components/BS/BsSystemOrder/index.js +0 -7
- package/dist/esm/components/BS/common/BsMemo.d.ts +4 -4
- package/dist/esm/components/BS/common/BsMemo.js +15 -16
- package/dist/esm/components/BS/common/BsType.d.ts +4 -4
- package/dist/esm/components/BS/common/BsType.js +13 -14
- package/dist/esm/components/BS/common/expressCode.js +1 -4
- package/dist/esm/components/BS/common/expressCompany.js +1 -4
- package/dist/esm/components/Common/index.d.ts +12 -5
- package/dist/esm/components/Common/index.js +332 -413
- package/dist/esm/components/CompletedUser/index.js +1 -1
- package/dist/esm/components/EItemEnCode/index.js +2 -3
- package/dist/esm/components/FlowMarkSelect/index.js +2 -3
- package/dist/esm/components/FlowStatusSelect/index.js +0 -1
- package/dist/esm/components/FlowTag/index.js +1 -1
- package/dist/esm/components/Handler/index.js +1 -1
- package/dist/esm/components/JST/JstSendGood/index.js +0 -6
- package/dist/esm/components/PlatForm/index.js +1 -1
- package/dist/esm/components/PostIng/index.js +2 -7
- package/dist/esm/components/ShopInput/index.js +1 -1
- package/dist/esm/factory.d.ts +2 -2
- package/dist/esm/factory.js +1 -30
- package/dist/esm/index.d.ts +1 -4
- package/dist/esm/index.js +0 -3
- package/dist/esm/type.d.ts +1 -1
- package/package.json +4 -4
- package/dist/esm/components/CommonHeaderGood/index.d.ts +0 -27
- package/dist/esm/components/CommonHeaderGood/index.js +0 -193
- package/dist/esm/components/FlowWorkOrderStatus/index.d.ts +0 -40
- package/dist/esm/components/FlowWorkOrderStatus/index.js +0 -143
- package/dist/esm/components/NodeInput/index.d.ts +0 -24
- package/dist/esm/components/NodeInput/index.js +0 -58
- package/dist/esm/components/WDT/WdtGoods/index.d.ts +0 -33
- package/dist/esm/components/WDT/WdtGoods/index.js +0 -121
package/README.md
CHANGED
|
@@ -30,12 +30,6 @@ var typeMap = {
|
|
|
30
30
|
name: "万里牛",
|
|
31
31
|
company: "wlnLogisticsCompany",
|
|
32
32
|
code: "wlnLogisticsCode"
|
|
33
|
-
},
|
|
34
|
-
WDT_LOGISTICS: {
|
|
35
|
-
key: "wdtLogisticsList",
|
|
36
|
-
name: "旺店通",
|
|
37
|
-
company: "wdtLogisticsCompany",
|
|
38
|
-
code: "wdtLogisticsCode"
|
|
39
33
|
}
|
|
40
34
|
};
|
|
41
35
|
var BsLogistics = /*#__PURE__*/_createClass(function BsLogistics(_options) {
|
|
@@ -46,6 +40,8 @@ var BsLogistics = /*#__PURE__*/_createClass(function BsLogistics(_options) {
|
|
|
46
40
|
_typeMap$_options$typ4,
|
|
47
41
|
_typeMap$_options$typ5,
|
|
48
42
|
_typeMap$_options$typ6,
|
|
43
|
+
_typeMap$_options$typ7,
|
|
44
|
+
_typeMap$_options$typ8,
|
|
49
45
|
_this$componentConfig3,
|
|
50
46
|
_this$componentConfig4;
|
|
51
47
|
_classCallCheck(this, BsLogistics);
|
|
@@ -169,14 +165,14 @@ var BsLogistics = /*#__PURE__*/_createClass(function BsLogistics(_options) {
|
|
|
169
165
|
this.canSort = false;
|
|
170
166
|
this.expressCompany = new ExpressCompany(_objectSpread(_objectSpread({}, _options), {}, {
|
|
171
167
|
name: "物流公司",
|
|
172
|
-
parentName:
|
|
173
|
-
id: "".concat(_options.id, "_").concat((_typeMap$_options$
|
|
168
|
+
parentName: (_typeMap$_options$typ3 = typeMap[_options.type]) === null || _typeMap$_options$typ3 === void 0 ? void 0 : _typeMap$_options$typ3.name,
|
|
169
|
+
id: "".concat(_options.id, "_").concat((_typeMap$_options$typ4 = typeMap[_options.type]) === null || _typeMap$_options$typ4 === void 0 ? void 0 : _typeMap$_options$typ4.key, "_").concat((_typeMap$_options$typ5 = typeMap[_options.type]) === null || _typeMap$_options$typ5 === void 0 ? void 0 : _typeMap$_options$typ5.company),
|
|
174
170
|
width: 200
|
|
175
171
|
}));
|
|
176
172
|
this.expressCode = new ExpressCode(_objectSpread(_objectSpread({}, _options), {}, {
|
|
177
173
|
name: "物流单号",
|
|
178
|
-
parentName:
|
|
179
|
-
id: "".concat(_options.id, "_").concat((_typeMap$_options$
|
|
174
|
+
parentName: (_typeMap$_options$typ6 = typeMap[_options.type]) === null || _typeMap$_options$typ6 === void 0 ? void 0 : _typeMap$_options$typ6.name,
|
|
175
|
+
id: "".concat(_options.id, "_").concat((_typeMap$_options$typ7 = typeMap[_options.type]) === null || _typeMap$_options$typ7 === void 0 ? void 0 : _typeMap$_options$typ7.key, "_").concat((_typeMap$_options$typ8 = typeMap[_options.type]) === null || _typeMap$_options$typ8 === void 0 ? void 0 : _typeMap$_options$typ8.code),
|
|
180
176
|
width: 200
|
|
181
177
|
}));
|
|
182
178
|
this.children = [this.expressCompany, this.expressCode];
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { ComponentInterface, PickOption, ColumnConfig, Record } from
|
|
2
|
-
import React from
|
|
3
|
-
import { BsType, BsMemo, BsHeaderGood } from
|
|
4
|
-
import CommonHeaderGoods from '../../CommonHeaderGood';
|
|
1
|
+
import { ComponentInterface, PickOption, ColumnConfig, Record } from "../../../type";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { BsType, BsMemo, BsHeaderGood } from "../common/index";
|
|
5
4
|
declare class BsReissue implements ComponentInterface {
|
|
6
5
|
name: string;
|
|
7
6
|
id: string;
|
|
8
7
|
sortField: string;
|
|
9
8
|
type: string;
|
|
10
9
|
rules: any[];
|
|
11
|
-
componentConfig: ComponentInterface[
|
|
12
|
-
effects: ComponentInterface[
|
|
10
|
+
componentConfig: ComponentInterface["componentConfig"];
|
|
11
|
+
effects: ComponentInterface["effects"];
|
|
13
12
|
isCombinationComponent: boolean;
|
|
14
13
|
formField: string;
|
|
15
14
|
canSort: boolean;
|
|
16
15
|
children: ComponentInterface[];
|
|
17
|
-
dataType: ComponentInterface[
|
|
16
|
+
dataType: ComponentInterface["dataType"];
|
|
18
17
|
bsType: BsType;
|
|
19
18
|
bsMemo: BsMemo;
|
|
20
|
-
reissueGoods: BsHeaderGood
|
|
19
|
+
reissueGoods: BsHeaderGood;
|
|
21
20
|
constructor(options: PickOption);
|
|
22
21
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
23
22
|
renderPc: () => null;
|
|
24
23
|
renderLog: (r: Record) => React.JSX.Element;
|
|
25
24
|
getComponentValue: (r: Record) => {
|
|
26
|
-
|
|
25
|
+
bsReissueType: any;
|
|
26
|
+
bsReissueGoods: any;
|
|
27
27
|
};
|
|
28
28
|
renderExport: () => null;
|
|
29
29
|
editRender: (p: any) => React.JSX.Element;
|
|
@@ -8,37 +8,16 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
8
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
9
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
10
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
|
|
11
|
+
import React from "react";
|
|
12
12
|
import GetFormItem from "../../GetFormItem";
|
|
13
13
|
import ItemView from "../../../commonComponents/ItemView";
|
|
14
|
-
import { isNull, filterFn as _filterFn } from
|
|
15
|
-
import { BsReissue as Reissue } from
|
|
14
|
+
import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
|
|
15
|
+
import { BsReissue as Reissue } from "@kmkf-fe-packages/basic-components";
|
|
16
16
|
import { SYMBOL } from "../../../constant";
|
|
17
17
|
import { BsGoodsTable } from "../../Common";
|
|
18
18
|
import { BsType, BsMemo, BsHeaderGood } from "../common/index";
|
|
19
|
-
import CommonHeaderGoods from "../../CommonHeaderGood";
|
|
20
|
-
var typeMap = {
|
|
21
|
-
BS_REISSUE_GOODS: {
|
|
22
|
-
key: 'bsReissueGoods',
|
|
23
|
-
name: 'bs',
|
|
24
|
-
typeName: 'bsReissueType',
|
|
25
|
-
remark: 'bsReissueType_memo',
|
|
26
|
-
errMsg: '请选择bs补发商品'
|
|
27
|
-
},
|
|
28
|
-
WDT_REISSUE_GOODS: {
|
|
29
|
-
key: 'wdtReissueGoods',
|
|
30
|
-
name: '旺店通',
|
|
31
|
-
typeName: 'wdtReissueType',
|
|
32
|
-
remark: 'wdtReissueType_memo',
|
|
33
|
-
errMsg: '请选择旺店通补发商品'
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
19
|
var BsReissue = /*#__PURE__*/_createClass(function BsReissue(options) {
|
|
37
20
|
var _this = this,
|
|
38
|
-
_typeMap$options$type,
|
|
39
|
-
_typeMap$options$type2,
|
|
40
|
-
_typeMap$options$type3,
|
|
41
|
-
_typeMap$options$type4,
|
|
42
21
|
_this$componentConfig4;
|
|
43
22
|
_classCallCheck(this, BsReissue);
|
|
44
23
|
_defineProperty(this, "name", void 0);
|
|
@@ -57,14 +36,13 @@ var BsReissue = /*#__PURE__*/_createClass(function BsReissue(options) {
|
|
|
57
36
|
_defineProperty(this, "bsMemo", void 0);
|
|
58
37
|
_defineProperty(this, "reissueGoods", void 0);
|
|
59
38
|
_defineProperty(this, "renderClient", function (record) {
|
|
60
|
-
var
|
|
61
|
-
return !isNull(record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) ? /*#__PURE__*/React.createElement(React.Fragment, null, _this.bsType.renderClient(record), _this.bsMemo.renderClient(record), record !== null && record !== void 0 &&
|
|
39
|
+
var _this$componentConfig;
|
|
40
|
+
return !isNull(record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) ? /*#__PURE__*/React.createElement(React.Fragment, null, _this.bsType.renderClient(record), _this.bsMemo.renderClient(record), record !== null && record !== void 0 && record["".concat(_this.id)].bsReissueGoods.length ? /*#__PURE__*/React.createElement(ItemView, {
|
|
62
41
|
id: _this.id,
|
|
63
42
|
label: _this.name,
|
|
64
43
|
value: /*#__PURE__*/React.createElement(BsGoodsTable, {
|
|
65
|
-
list: (record === null || record === void 0 ? void 0 :
|
|
66
|
-
showHeader: ((_this$componentConfig = _this.componentConfig) === null || _this$componentConfig === void 0 ? void 0 : _this$componentConfig.showHeader) || []
|
|
67
|
-
type: _this.type
|
|
44
|
+
list: (record === null || record === void 0 ? void 0 : record["".concat(_this.id)].bsReissueGoods) || [],
|
|
45
|
+
showHeader: ((_this$componentConfig = _this.componentConfig) === null || _this$componentConfig === void 0 ? void 0 : _this$componentConfig.showHeader) || []
|
|
68
46
|
})
|
|
69
47
|
}) : null) : null;
|
|
70
48
|
});
|
|
@@ -72,19 +50,17 @@ var BsReissue = /*#__PURE__*/_createClass(function BsReissue(options) {
|
|
|
72
50
|
return null;
|
|
73
51
|
});
|
|
74
52
|
_defineProperty(this, "renderLog", function (r) {
|
|
75
|
-
var _r,
|
|
76
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, r !== null && r !== void 0 && (_r = r["".concat(_this.id, "
|
|
77
|
-
list: (r === null || r === void 0 ? void 0 : r["".concat(_this.id, "
|
|
78
|
-
showHeader: ((_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.showHeader) || []
|
|
79
|
-
type: _this.type
|
|
53
|
+
var _r, _r2, _this$componentConfig2;
|
|
54
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, r !== null && r !== void 0 && (_r = r["".concat(_this.id, "_bsReissueType")]) !== null && _r !== void 0 && _r.length ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", null, "\u5907\u6CE8\u7C7B\u578B:", _this.bsType.renderLog(r)), /*#__PURE__*/React.createElement("div", null, "\u5907\u6CE8\u4FE1\u606F:", _this.bsMemo.renderLog(r))) : null, r !== null && r !== void 0 && (_r2 = r["".concat(_this.id, "_bsReissueGoods")]) !== null && _r2 !== void 0 && _r2.length ? /*#__PURE__*/React.createElement("div", null, "\u8865\u53D1\u5546\u54C1\uFF1A", /*#__PURE__*/React.createElement(BsGoodsTable, {
|
|
55
|
+
list: (r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_bsReissueGoods")]) || [],
|
|
56
|
+
showHeader: ((_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.showHeader) || []
|
|
80
57
|
})) : null, r !== null && r !== void 0 && r["".concat(_this.id, "_shopCode")] ? /*#__PURE__*/React.createElement("div", null, "\u5E97\u94FAid:", r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_shopCode")]) : null);
|
|
81
58
|
});
|
|
82
59
|
_defineProperty(this, "getComponentValue", function (r) {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
return obj;
|
|
60
|
+
return {
|
|
61
|
+
bsReissueType: r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_bsReissueType")],
|
|
62
|
+
bsReissueGoods: r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_bsReissueGoods")]
|
|
63
|
+
};
|
|
88
64
|
});
|
|
89
65
|
_defineProperty(this, "renderExport", function () {
|
|
90
66
|
return null;
|
|
@@ -102,8 +78,7 @@ var BsReissue = /*#__PURE__*/_createClass(function BsReissue(options) {
|
|
|
102
78
|
shopId: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopId,
|
|
103
79
|
shopList: ((_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.shopList) || [],
|
|
104
80
|
companyKey: (_this$effects3 = _this.effects) === null || _this$effects3 === void 0 ? void 0 : _this$effects3.companyKey,
|
|
105
|
-
width: "90%"
|
|
106
|
-
type: _this.type
|
|
81
|
+
width: "90%"
|
|
107
82
|
}))
|
|
108
83
|
});
|
|
109
84
|
});
|
|
@@ -112,15 +87,15 @@ var BsReissue = /*#__PURE__*/_createClass(function BsReissue(options) {
|
|
|
112
87
|
return [{
|
|
113
88
|
searchDefaultConditions: SYMBOL.in,
|
|
114
89
|
type: item.type,
|
|
115
|
-
id: "".concat(item.id, "
|
|
90
|
+
id: "".concat(item.id, "_bsReissueType"),
|
|
116
91
|
name: "".concat(item.name, "-\u8865\u53D1\u7C7B\u578B"),
|
|
117
|
-
filterComponentType:
|
|
92
|
+
filterComponentType: "Cascader",
|
|
118
93
|
props: {
|
|
119
94
|
options: item === null || item === void 0 ? void 0 : (_item$templateConfig = item.templateConfig) === null || _item$templateConfig === void 0 ? void 0 : _item$templateConfig.reasonList,
|
|
120
95
|
fieldNames: {
|
|
121
|
-
label:
|
|
122
|
-
value:
|
|
123
|
-
children:
|
|
96
|
+
label: "label",
|
|
97
|
+
value: "value",
|
|
98
|
+
children: "children"
|
|
124
99
|
}
|
|
125
100
|
},
|
|
126
101
|
formatFilterValue: function formatFilterValue(val) {
|
|
@@ -130,16 +105,15 @@ var BsReissue = /*#__PURE__*/_createClass(function BsReissue(options) {
|
|
|
130
105
|
},
|
|
131
106
|
filterFn: function filterFn(value) {
|
|
132
107
|
return function (i) {
|
|
133
|
-
|
|
134
|
-
return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, "".concat((_typeMap$_this$type10 = typeMap[_this.type]) === null || _typeMap$_this$type10 === void 0 ? void 0 : _typeMap$_this$type10.typeName)), value);
|
|
108
|
+
return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, "bsReissueType"), value);
|
|
135
109
|
};
|
|
136
110
|
}
|
|
137
111
|
}, {
|
|
138
112
|
searchDefaultConditions: SYMBOL.like,
|
|
139
113
|
type: item.type,
|
|
140
|
-
id: "".concat(item.id, "
|
|
114
|
+
id: "".concat(item.id, "_bsReissueGoods"),
|
|
141
115
|
name: "".concat(_this.name),
|
|
142
|
-
filterComponentType:
|
|
116
|
+
filterComponentType: "Input"
|
|
143
117
|
}];
|
|
144
118
|
});
|
|
145
119
|
this.name = options.name;
|
|
@@ -151,18 +125,15 @@ var BsReissue = /*#__PURE__*/_createClass(function BsReissue(options) {
|
|
|
151
125
|
this.isCombinationComponent = true;
|
|
152
126
|
this.canSort = false;
|
|
153
127
|
this.bsType = new BsType(_objectSpread(_objectSpread({}, options), {}, {
|
|
154
|
-
id: "".concat(options.id, "
|
|
155
|
-
name:
|
|
128
|
+
id: "".concat(options.id, "_bsReissueType"),
|
|
129
|
+
name: "补发类型"
|
|
156
130
|
}));
|
|
157
131
|
this.bsMemo = new BsMemo(_objectSpread(_objectSpread({}, options), {}, {
|
|
158
|
-
id: "".concat(options.id, "
|
|
159
|
-
name:
|
|
132
|
+
id: "".concat(options.id, "_bsReissueType_memo"),
|
|
133
|
+
name: "补发备注"
|
|
160
134
|
}));
|
|
161
|
-
this.reissueGoods =
|
|
162
|
-
id: "".concat(options.id, "
|
|
163
|
-
name: '商品信息'
|
|
164
|
-
})) : new CommonHeaderGoods(_objectSpread(_objectSpread({}, options), {}, {
|
|
165
|
-
id: "".concat(options.id, "_").concat((_typeMap$options$type4 = typeMap[options.type]) === null || _typeMap$options$type4 === void 0 ? void 0 : _typeMap$options$type4.key),
|
|
135
|
+
this.reissueGoods = new BsHeaderGood(_objectSpread(_objectSpread({}, options), {}, {
|
|
136
|
+
id: "".concat(options.id, "_bsReissueGoods"),
|
|
166
137
|
name: "商品信息"
|
|
167
138
|
}));
|
|
168
139
|
this.children = [this.bsType, this.bsMemo, this.reissueGoods];
|
|
@@ -170,14 +141,13 @@ var BsReissue = /*#__PURE__*/_createClass(function BsReissue(options) {
|
|
|
170
141
|
this.rules = this !== null && this !== void 0 && (_this$componentConfig4 = this.componentConfig) !== null && _this$componentConfig4 !== void 0 && _this$componentConfig4.required ? [{
|
|
171
142
|
required: true,
|
|
172
143
|
validator: function validator(_, value) {
|
|
173
|
-
var _value
|
|
174
|
-
if (!value || !(value !== null && value !== void 0 && (_value = value
|
|
175
|
-
|
|
176
|
-
return Promise.reject(new Error("".concat((_typeMap$options$type6 = typeMap[options.type]) === null || _typeMap$options$type6 === void 0 ? void 0 : _typeMap$options$type6.errMsg)));
|
|
144
|
+
var _value$bsReissueGoods;
|
|
145
|
+
if (!value || !(value !== null && value !== void 0 && (_value$bsReissueGoods = value.bsReissueGoods) !== null && _value$bsReissueGoods !== void 0 && _value$bsReissueGoods.length)) {
|
|
146
|
+
return Promise.reject(new Error("请选择bs补发商品"));
|
|
177
147
|
}
|
|
178
148
|
return Promise.resolve();
|
|
179
149
|
}
|
|
180
150
|
}] : [];
|
|
181
|
-
this.dataType =
|
|
151
|
+
this.dataType = "object";
|
|
182
152
|
});
|
|
183
153
|
export default BsReissue;
|
|
@@ -30,13 +30,6 @@ var typeMap = {
|
|
|
30
30
|
typeName: '订单类型',
|
|
31
31
|
tagName: '标记',
|
|
32
32
|
selectId: 'wlnSystemSelectIds'
|
|
33
|
-
},
|
|
34
|
-
WDT_SYSTEM_ORDER: {
|
|
35
|
-
key: "wdtSystemShowOrder",
|
|
36
|
-
name: "旺店通",
|
|
37
|
-
typeName: "订单类型",
|
|
38
|
-
tagName: "订单标签",
|
|
39
|
-
selectId: "wdtSystemSelectIds"
|
|
40
33
|
}
|
|
41
34
|
};
|
|
42
35
|
var BsSystemOrder = /*#__PURE__*/_createClass(function BsSystemOrder(options) {
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { ComponentInterface, PickOption, ALignType, Record } from
|
|
2
|
-
import React from
|
|
1
|
+
import { ComponentInterface, PickOption, ALignType, Record } from "../../../type";
|
|
2
|
+
import React from "react";
|
|
3
3
|
declare class BsMemo implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
6
6
|
sortField: string;
|
|
7
7
|
type: string;
|
|
8
|
-
componentConfig: ComponentInterface[
|
|
8
|
+
componentConfig: ComponentInterface["componentConfig"];
|
|
9
9
|
align: ALignType;
|
|
10
10
|
width: number;
|
|
11
11
|
isCombinationComponent: boolean;
|
|
12
12
|
formField: string;
|
|
13
13
|
canSort: boolean;
|
|
14
14
|
children: ComponentInterface[];
|
|
15
|
-
dataType: ComponentInterface[
|
|
15
|
+
dataType: ComponentInterface["dataType"];
|
|
16
16
|
constructor(options: PickOption);
|
|
17
17
|
getParentId: () => string;
|
|
18
18
|
renderClient: (r: any) => React.JSX.Element | null;
|
|
@@ -11,14 +11,13 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
11
11
|
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; }
|
|
12
12
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
13
13
|
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); }
|
|
14
|
-
import React from
|
|
14
|
+
import React from "react";
|
|
15
15
|
import ItemView from "../../../commonComponents/ItemView";
|
|
16
|
-
import { isNull } from
|
|
16
|
+
import { isNull } from "@kmkf-fe-packages/kmkf-utils";
|
|
17
17
|
var componentType = {
|
|
18
|
-
BS_EXCHANGE_GOODS:
|
|
19
|
-
BS_REISSUE_GOODS:
|
|
20
|
-
BS_RETURN_GOODS:
|
|
21
|
-
WDT_REISSUE_GOODS: 'wdtReissueType'
|
|
18
|
+
BS_EXCHANGE_GOODS: "bsExchangeType",
|
|
19
|
+
BS_REISSUE_GOODS: "bsReissueType",
|
|
20
|
+
BS_RETURN_GOODS: "bsReturnType"
|
|
22
21
|
};
|
|
23
22
|
var BsMemo = /*#__PURE__*/_createClass(function BsMemo(options) {
|
|
24
23
|
var _this = this;
|
|
@@ -36,7 +35,7 @@ var BsMemo = /*#__PURE__*/_createClass(function BsMemo(options) {
|
|
|
36
35
|
_defineProperty(this, "children", void 0);
|
|
37
36
|
_defineProperty(this, "dataType", void 0);
|
|
38
37
|
_defineProperty(this, "getParentId", function () {
|
|
39
|
-
var _this$id$split = _this.id.split(
|
|
38
|
+
var _this$id$split = _this.id.split("_"),
|
|
40
39
|
_this$id$split2 = _slicedToArray(_this$id$split, 2),
|
|
41
40
|
key = _this$id$split2[0],
|
|
42
41
|
name = _this$id$split2[1];
|
|
@@ -44,14 +43,14 @@ var BsMemo = /*#__PURE__*/_createClass(function BsMemo(options) {
|
|
|
44
43
|
});
|
|
45
44
|
_defineProperty(this, "renderClient", function (r) {
|
|
46
45
|
var _r$key$componentType$, _r$key, _r$key$componentType$2, _r$key2, _r$key2$componentType, _find, _this$componentConfig, _find2;
|
|
47
|
-
var _this$getParentId$spl = _this.getParentId().split(
|
|
46
|
+
var _this$getParentId$spl = _this.getParentId().split("_"),
|
|
48
47
|
_this$getParentId$spl2 = _slicedToArray(_this$getParentId$spl, 1),
|
|
49
48
|
key = _this$getParentId$spl2[0];
|
|
50
49
|
if (!(r !== null && r !== void 0 && (_r$key$componentType$ = r[key][componentType[_this.type]]) !== null && _r$key$componentType$ !== void 0 && _r$key$componentType$.length)) {
|
|
51
50
|
return null;
|
|
52
51
|
}
|
|
53
|
-
var type = r !== null && r !== void 0 && r[key] ? r === null || r === void 0 ? void 0 : (_r$key = r[key]) === null || _r$key === void 0 ? void 0 : (_r$key$componentType$2 = _r$key[componentType[_this.type]]) === null || _r$key$componentType$2 === void 0 ? void 0 : _r$key$componentType$2[0] :
|
|
54
|
-
var memo = r !== null && r !== void 0 && r[key] ? r === null || r === void 0 ? void 0 : (_r$key2 = r[key]) === null || _r$key2 === void 0 ? void 0 : (_r$key2$componentType = _r$key2[componentType[_this.type]]) === null || _r$key2$componentType === void 0 ? void 0 : _r$key2$componentType[1] :
|
|
52
|
+
var type = r !== null && r !== void 0 && r[key] ? r === null || r === void 0 ? void 0 : (_r$key = r[key]) === null || _r$key === void 0 ? void 0 : (_r$key$componentType$2 = _r$key[componentType[_this.type]]) === null || _r$key$componentType$2 === void 0 ? void 0 : _r$key$componentType$2[0] : "";
|
|
53
|
+
var memo = r !== null && r !== void 0 && r[key] ? r === null || r === void 0 ? void 0 : (_r$key2 = r[key]) === null || _r$key2 === void 0 ? void 0 : (_r$key2$componentType = _r$key2[componentType[_this.type]]) === null || _r$key2$componentType === void 0 ? void 0 : _r$key2$componentType[1] : "";
|
|
55
54
|
var children = (_find = (((_this$componentConfig = _this.componentConfig) === null || _this$componentConfig === void 0 ? void 0 : _this$componentConfig.reasonList) || []).find(function (item) {
|
|
56
55
|
return item.value === type;
|
|
57
56
|
})) === null || _find === void 0 ? void 0 : _find.children;
|
|
@@ -66,7 +65,7 @@ var BsMemo = /*#__PURE__*/_createClass(function BsMemo(options) {
|
|
|
66
65
|
});
|
|
67
66
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
68
67
|
var _this$getComponentVal;
|
|
69
|
-
return /*#__PURE__*/React.createElement("span", null, (_this$getComponentVal = _this.getComponentValue(record)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal :
|
|
68
|
+
return /*#__PURE__*/React.createElement("span", null, (_this$getComponentVal = _this.getComponentValue(record)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal : "--");
|
|
70
69
|
});
|
|
71
70
|
_defineProperty(this, "renderLog", function (r) {
|
|
72
71
|
var id = _this.getParentId();
|
|
@@ -76,8 +75,8 @@ var BsMemo = /*#__PURE__*/_createClass(function BsMemo(options) {
|
|
|
76
75
|
_defineProperty(this, "getComponentValue", function (r) {
|
|
77
76
|
var _r$id, _r$id2, _find3, _this$componentConfig2, _find4;
|
|
78
77
|
var id = _this.getParentId();
|
|
79
|
-
var type = r !== null && r !== void 0 && r[id] ? r === null || r === void 0 ? void 0 : (_r$id = r[id]) === null || _r$id === void 0 ? void 0 : _r$id[0] :
|
|
80
|
-
var memo = r !== null && r !== void 0 && r[id] ? r === null || r === void 0 ? void 0 : (_r$id2 = r[id]) === null || _r$id2 === void 0 ? void 0 : _r$id2[1] :
|
|
78
|
+
var type = r !== null && r !== void 0 && r[id] ? r === null || r === void 0 ? void 0 : (_r$id = r[id]) === null || _r$id === void 0 ? void 0 : _r$id[0] : "";
|
|
79
|
+
var memo = r !== null && r !== void 0 && r[id] ? r === null || r === void 0 ? void 0 : (_r$id2 = r[id]) === null || _r$id2 === void 0 ? void 0 : _r$id2[1] : "";
|
|
81
80
|
var children = (_find3 = (((_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.reasonList) || []).find(function (item) {
|
|
82
81
|
return item.value === type;
|
|
83
82
|
})) === null || _find3 === void 0 ? void 0 : _find3.children;
|
|
@@ -88,7 +87,7 @@ var BsMemo = /*#__PURE__*/_createClass(function BsMemo(options) {
|
|
|
88
87
|
});
|
|
89
88
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
90
89
|
var _this$getComponentVal2;
|
|
91
|
-
return (_this$getComponentVal2 = _this.getComponentValue(record)) !== null && _this$getComponentVal2 !== void 0 ? _this$getComponentVal2 :
|
|
90
|
+
return (_this$getComponentVal2 = _this.getComponentValue(record)) !== null && _this$getComponentVal2 !== void 0 ? _this$getComponentVal2 : "--";
|
|
92
91
|
});
|
|
93
92
|
_defineProperty(this, "editRender", function () {
|
|
94
93
|
return null;
|
|
@@ -102,11 +101,11 @@ var BsMemo = /*#__PURE__*/_createClass(function BsMemo(options) {
|
|
|
102
101
|
this.formField = options.id;
|
|
103
102
|
this.type = options.type;
|
|
104
103
|
this.componentConfig = options.componentConfig;
|
|
105
|
-
this.align =
|
|
104
|
+
this.align = "left";
|
|
106
105
|
this.width = 140;
|
|
107
106
|
this.isCombinationComponent = false;
|
|
108
107
|
this.canSort = false;
|
|
109
|
-
this.dataType =
|
|
108
|
+
this.dataType = "string";
|
|
110
109
|
this.children = [];
|
|
111
110
|
});
|
|
112
111
|
export default BsMemo;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from
|
|
2
|
-
import React from
|
|
1
|
+
import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from "../../../type";
|
|
2
|
+
import React from "react";
|
|
3
3
|
declare class BsType implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
6
6
|
sortField: string;
|
|
7
7
|
type: string;
|
|
8
|
-
componentConfig: ComponentInterface[
|
|
8
|
+
componentConfig: ComponentInterface["componentConfig"];
|
|
9
9
|
align: ALignType;
|
|
10
10
|
width: number;
|
|
11
11
|
isCombinationComponent: boolean;
|
|
12
12
|
formField: string;
|
|
13
13
|
canSort: boolean;
|
|
14
14
|
children: ComponentInterface[];
|
|
15
|
-
dataType: ComponentInterface[
|
|
15
|
+
dataType: ComponentInterface["dataType"];
|
|
16
16
|
constructor(options: PickOption);
|
|
17
17
|
getParentId: () => string;
|
|
18
18
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
@@ -11,15 +11,14 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
11
11
|
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; }
|
|
12
12
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
13
13
|
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); }
|
|
14
|
-
import React from
|
|
14
|
+
import React from "react";
|
|
15
15
|
import ItemView from "../../../commonComponents/ItemView";
|
|
16
|
-
import { isNull, filterFn as _filterFn } from
|
|
16
|
+
import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
|
|
17
17
|
import { SYMBOL } from "../../../constant";
|
|
18
18
|
var componentType = {
|
|
19
|
-
BS_EXCHANGE_GOODS:
|
|
20
|
-
BS_REISSUE_GOODS:
|
|
21
|
-
BS_RETURN_GOODS:
|
|
22
|
-
WDT_REISSUE_GOODS: 'wdtReissueType'
|
|
19
|
+
BS_EXCHANGE_GOODS: "bsExchangeType",
|
|
20
|
+
BS_REISSUE_GOODS: "bsReissueType",
|
|
21
|
+
BS_RETURN_GOODS: "bsReturnType"
|
|
23
22
|
};
|
|
24
23
|
var BsType = /*#__PURE__*/_createClass(function BsType(options) {
|
|
25
24
|
var _this = this;
|
|
@@ -37,7 +36,7 @@ var BsType = /*#__PURE__*/_createClass(function BsType(options) {
|
|
|
37
36
|
_defineProperty(this, "children", void 0);
|
|
38
37
|
_defineProperty(this, "dataType", void 0);
|
|
39
38
|
_defineProperty(this, "getParentId", function () {
|
|
40
|
-
var _this$id$split = _this.id.split(
|
|
39
|
+
var _this$id$split = _this.id.split("_"),
|
|
41
40
|
_this$id$split2 = _slicedToArray(_this$id$split, 2),
|
|
42
41
|
key = _this$id$split2[0],
|
|
43
42
|
name = _this$id$split2[1];
|
|
@@ -45,7 +44,7 @@ var BsType = /*#__PURE__*/_createClass(function BsType(options) {
|
|
|
45
44
|
});
|
|
46
45
|
_defineProperty(this, "renderClient", function (record) {
|
|
47
46
|
var _record$key$component, _find, _this$componentConfig;
|
|
48
|
-
var _this$getParentId$spl = _this.getParentId().split(
|
|
47
|
+
var _this$getParentId$spl = _this.getParentId().split("_"),
|
|
49
48
|
_this$getParentId$spl2 = _slicedToArray(_this$getParentId$spl, 1),
|
|
50
49
|
key = _this$getParentId$spl2[0];
|
|
51
50
|
if (!(record !== null && record !== void 0 && (_record$key$component = record[key][componentType[_this.type]]) !== null && _record$key$component !== void 0 && _record$key$component.length)) {
|
|
@@ -63,7 +62,7 @@ var BsType = /*#__PURE__*/_createClass(function BsType(options) {
|
|
|
63
62
|
});
|
|
64
63
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
65
64
|
var _this$getComponentVal;
|
|
66
|
-
return /*#__PURE__*/React.createElement("span", null, (_this$getComponentVal = _this.getComponentValue(record)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal :
|
|
65
|
+
return /*#__PURE__*/React.createElement("span", null, (_this$getComponentVal = _this.getComponentValue(record)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal : "--");
|
|
67
66
|
});
|
|
68
67
|
_defineProperty(this, "renderLog", function (r) {
|
|
69
68
|
var id = _this.getParentId();
|
|
@@ -73,7 +72,7 @@ var BsType = /*#__PURE__*/_createClass(function BsType(options) {
|
|
|
73
72
|
_defineProperty(this, "getComponentValue", function (r) {
|
|
74
73
|
var _r$id, _find2, _this$componentConfig2;
|
|
75
74
|
var id = _this.getParentId();
|
|
76
|
-
var type = r !== null && r !== void 0 && r[id] ? r === null || r === void 0 ? void 0 : (_r$id = r[id]) === null || _r$id === void 0 ? void 0 : _r$id[0] :
|
|
75
|
+
var type = r !== null && r !== void 0 && r[id] ? r === null || r === void 0 ? void 0 : (_r$id = r[id]) === null || _r$id === void 0 ? void 0 : _r$id[0] : "";
|
|
77
76
|
var text = (_find2 = (((_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.reasonList) || []).find(function (item) {
|
|
78
77
|
return item.value === type;
|
|
79
78
|
})) === null || _find2 === void 0 ? void 0 : _find2.label;
|
|
@@ -81,7 +80,7 @@ var BsType = /*#__PURE__*/_createClass(function BsType(options) {
|
|
|
81
80
|
});
|
|
82
81
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
83
82
|
var _this$getComponentVal2;
|
|
84
|
-
return (_this$getComponentVal2 = _this.getComponentValue(record)) !== null && _this$getComponentVal2 !== void 0 ? _this$getComponentVal2 :
|
|
83
|
+
return (_this$getComponentVal2 = _this.getComponentValue(record)) !== null && _this$getComponentVal2 !== void 0 ? _this$getComponentVal2 : "--";
|
|
85
84
|
});
|
|
86
85
|
_defineProperty(this, "editRender", function () {
|
|
87
86
|
return null;
|
|
@@ -95,7 +94,7 @@ var BsType = /*#__PURE__*/_createClass(function BsType(options) {
|
|
|
95
94
|
type: item.type,
|
|
96
95
|
id: _this.id,
|
|
97
96
|
name: "".concat(item.name, "-\u7C7B\u578B"),
|
|
98
|
-
filterComponentType:
|
|
97
|
+
filterComponentType: "Cascader",
|
|
99
98
|
props: {
|
|
100
99
|
options: (item === null || item === void 0 ? void 0 : (_item$config = item.config) === null || _item$config === void 0 ? void 0 : _item$config.reasonList) || []
|
|
101
100
|
},
|
|
@@ -117,11 +116,11 @@ var BsType = /*#__PURE__*/_createClass(function BsType(options) {
|
|
|
117
116
|
this.formField = options.id;
|
|
118
117
|
this.type = options.type;
|
|
119
118
|
this.componentConfig = options.componentConfig;
|
|
120
|
-
this.align =
|
|
119
|
+
this.align = "left";
|
|
121
120
|
this.width = 140;
|
|
122
121
|
this.isCombinationComponent = false;
|
|
123
122
|
this.canSort = false;
|
|
124
|
-
this.dataType =
|
|
123
|
+
this.dataType = "string";
|
|
125
124
|
this.children = [];
|
|
126
125
|
});
|
|
127
126
|
export default BsType;
|
|
@@ -21,9 +21,6 @@ var typeMap = {
|
|
|
21
21
|
},
|
|
22
22
|
WLN_LOGISTICS: {
|
|
23
23
|
key: "wlnLogisticsItem"
|
|
24
|
-
},
|
|
25
|
-
WDT_LOGISTICS: {
|
|
26
|
-
key: 'wdtLogisticsItem'
|
|
27
24
|
}
|
|
28
25
|
};
|
|
29
26
|
var ExpressCode = /*#__PURE__*/_createClass(function ExpressCode(options) {
|
|
@@ -81,7 +78,7 @@ var ExpressCode = /*#__PURE__*/_createClass(function ExpressCode(options) {
|
|
|
81
78
|
searchDefaultConditions: SYMBOL.in,
|
|
82
79
|
type: item.type,
|
|
83
80
|
id: "".concat(item.id, "_").concat(subKey),
|
|
84
|
-
name: "".concat(_this.parentName, "
|
|
81
|
+
name: "".concat(_this.parentName, "\u7269\u6D41\u5355\u53F7"),
|
|
85
82
|
filterComponentType: "SelectInput",
|
|
86
83
|
filterFn: function filterFn(value) {
|
|
87
84
|
return function (i) {
|
|
@@ -22,9 +22,6 @@ var typeMap = {
|
|
|
22
22
|
},
|
|
23
23
|
WLN_LOGISTICS: {
|
|
24
24
|
key: "wlnLogisticsItem"
|
|
25
|
-
},
|
|
26
|
-
WDT_LOGISTICS: {
|
|
27
|
-
key: "wdtLogisticsItem"
|
|
28
25
|
}
|
|
29
26
|
};
|
|
30
27
|
var Express = /*#__PURE__*/_createClass(function Express(options) {
|
|
@@ -83,7 +80,7 @@ var Express = /*#__PURE__*/_createClass(function Express(options) {
|
|
|
83
80
|
searchDefaultConditions: SYMBOL.in,
|
|
84
81
|
type: item.type,
|
|
85
82
|
id: "".concat(item.id, "_").concat(subKey),
|
|
86
|
-
name: "".concat(_this.parentName, "
|
|
83
|
+
name: "".concat(_this.parentName, "\u7269\u6D41\u516C\u53F8"),
|
|
87
84
|
filterComponentType: "MultipleSelect",
|
|
88
85
|
props: {
|
|
89
86
|
options: _this.expressDateInstance.getExpressData() || []
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from
|
|
1
|
+
import React from "react";
|
|
2
2
|
declare type getFormItemProps = {
|
|
3
3
|
name: string;
|
|
4
4
|
title: string;
|
|
@@ -7,13 +7,14 @@ declare type getFormItemProps = {
|
|
|
7
7
|
component: JSX.Element | string | null;
|
|
8
8
|
};
|
|
9
9
|
export declare const getFormItem: ({ name, title, rules, required, component, }: getFormItemProps) => React.JSX.Element;
|
|
10
|
-
export declare const showImage: ({ item, type, index, }: {
|
|
10
|
+
export declare const showImage: ({ item, type, index, showHeader, }: {
|
|
11
11
|
item: any;
|
|
12
12
|
type: string;
|
|
13
13
|
index: number;
|
|
14
|
+
showHeader: string[];
|
|
14
15
|
}) => React.JSX.Element;
|
|
15
|
-
export declare const ShowTotalImage: ({ total, allImage, type }: any) => React.JSX.Element;
|
|
16
|
-
export declare const GoodImage: ({ list, type }: any) => React.JSX.Element | null;
|
|
16
|
+
export declare const ShowTotalImage: ({ total, allImage, type, showHeader, }: any) => React.JSX.Element;
|
|
17
|
+
export declare const GoodImage: ({ list, type, showHeader }: any) => React.JSX.Element | null;
|
|
17
18
|
export declare const JstGoodImage: ({ list, type }: any) => any;
|
|
18
19
|
export declare const BsExpressRender: ({ list, showField }: any) => any;
|
|
19
20
|
export declare const CommonOrderContent: ({ list, valueKey, failValue, options, }: any) => any;
|
|
@@ -23,7 +24,13 @@ export declare const BsGoodImage: ({ item, index }: {
|
|
|
23
24
|
}) => React.JSX.Element;
|
|
24
25
|
export declare const BsExchangeList: ({ list, showHeader }: any) => React.JSX.Element;
|
|
25
26
|
export declare const BsGoodPic: (list: string[]) => React.JSX.Element[];
|
|
26
|
-
export declare const BsGoodsTable: ({ list, showHeader, text,
|
|
27
|
+
export declare const BsGoodsTable: ({ list, showHeader, text, }: {
|
|
28
|
+
list: any[];
|
|
29
|
+
showHeader: string[];
|
|
30
|
+
text?: string | undefined;
|
|
31
|
+
type?: string | undefined;
|
|
32
|
+
}) => React.JSX.Element;
|
|
33
|
+
export declare const TBGoodTable: ({ list, showHeader, text, }: {
|
|
27
34
|
list: any[];
|
|
28
35
|
showHeader: string[];
|
|
29
36
|
text?: string | undefined;
|