@kmkf-fe-packages/services-components 0.25.3-alpha.2 → 0.25.3-beta.0
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/components/BS/BsLogistics/index.js +10 -6
- package/dist/esm/components/BS/BsReissue/index.d.ts +9 -9
- package/dist/esm/components/BS/BsReissue/index.js +64 -34
- package/dist/esm/components/BS/BsSystemOrder/index.js +7 -0
- package/dist/esm/components/BS/common/BsMemo.d.ts +4 -4
- package/dist/esm/components/BS/common/BsMemo.js +16 -15
- package/dist/esm/components/BS/common/BsType.d.ts +4 -4
- package/dist/esm/components/BS/common/BsType.js +14 -13
- package/dist/esm/components/BS/common/expressCode.js +4 -1
- package/dist/esm/components/BS/common/expressCompany.js +4 -1
- package/dist/esm/components/BuyerNick/index.d.ts +3 -3
- package/dist/esm/components/BuyerNick/index.js +19 -9
- package/dist/esm/components/Common/index.d.ts +1 -8
- package/dist/esm/components/Common/index.js +303 -255
- package/dist/esm/components/CommonHeaderGood/index.d.ts +27 -0
- package/dist/esm/components/CommonHeaderGood/index.js +193 -0
- package/dist/esm/components/EItemEnCode/index.js +3 -2
- package/dist/esm/components/JST/JstSendGood/index.js +6 -0
- package/dist/esm/components/PostIng/index.js +7 -2
- package/dist/esm/components/{CommonInput → WDT/WdtGoods}/index.d.ts +9 -10
- package/dist/esm/components/WDT/WdtGoods/index.js +121 -0
- package/dist/esm/factory.d.ts +2 -2
- package/dist/esm/factory.js +13 -11
- package/dist/esm/index.d.ts +2 -3
- package/dist/esm/index.js +1 -2
- package/dist/esm/service/api.d.ts +0 -1
- package/dist/esm/service/api.js +0 -8
- package/package.json +4 -4
- package/dist/esm/components/CommonInput/index.js +0 -133
- package/dist/esm/components/PaymentVoucherCode/index.d.ts +0 -33
- package/dist/esm/components/PaymentVoucherCode/index.js +0 -103
|
@@ -30,6 +30,12 @@ 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"
|
|
33
39
|
}
|
|
34
40
|
};
|
|
35
41
|
var BsLogistics = /*#__PURE__*/_createClass(function BsLogistics(_options) {
|
|
@@ -40,8 +46,6 @@ var BsLogistics = /*#__PURE__*/_createClass(function BsLogistics(_options) {
|
|
|
40
46
|
_typeMap$_options$typ4,
|
|
41
47
|
_typeMap$_options$typ5,
|
|
42
48
|
_typeMap$_options$typ6,
|
|
43
|
-
_typeMap$_options$typ7,
|
|
44
|
-
_typeMap$_options$typ8,
|
|
45
49
|
_this$componentConfig3,
|
|
46
50
|
_this$componentConfig4;
|
|
47
51
|
_classCallCheck(this, BsLogistics);
|
|
@@ -165,14 +169,14 @@ var BsLogistics = /*#__PURE__*/_createClass(function BsLogistics(_options) {
|
|
|
165
169
|
this.canSort = false;
|
|
166
170
|
this.expressCompany = new ExpressCompany(_objectSpread(_objectSpread({}, _options), {}, {
|
|
167
171
|
name: "物流公司",
|
|
168
|
-
parentName:
|
|
169
|
-
id: "".concat(_options.id, "_").concat((_typeMap$_options$
|
|
172
|
+
parentName: this.name,
|
|
173
|
+
id: "".concat(_options.id, "_").concat((_typeMap$_options$typ3 = typeMap[_options.type]) === null || _typeMap$_options$typ3 === void 0 ? void 0 : _typeMap$_options$typ3.key, "_").concat((_typeMap$_options$typ4 = typeMap[_options.type]) === null || _typeMap$_options$typ4 === void 0 ? void 0 : _typeMap$_options$typ4.company),
|
|
170
174
|
width: 200
|
|
171
175
|
}));
|
|
172
176
|
this.expressCode = new ExpressCode(_objectSpread(_objectSpread({}, _options), {}, {
|
|
173
177
|
name: "物流单号",
|
|
174
|
-
parentName:
|
|
175
|
-
id: "".concat(_options.id, "_").concat((_typeMap$_options$
|
|
178
|
+
parentName: this.name,
|
|
179
|
+
id: "".concat(_options.id, "_").concat((_typeMap$_options$typ5 = typeMap[_options.type]) === null || _typeMap$_options$typ5 === void 0 ? void 0 : _typeMap$_options$typ5.key, "_").concat((_typeMap$_options$typ6 = typeMap[_options.type]) === null || _typeMap$_options$typ6 === void 0 ? void 0 : _typeMap$_options$typ6.code),
|
|
176
180
|
width: 200
|
|
177
181
|
}));
|
|
178
182
|
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
|
|
1
|
+
import { ComponentInterface, PickOption, ColumnConfig, Record } from '../../../type';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { BsType, BsMemo, BsHeaderGood } from '../common/index';
|
|
4
|
+
import CommonHeaderGoods from '../../CommonHeaderGood';
|
|
4
5
|
declare class BsReissue implements ComponentInterface {
|
|
5
6
|
name: string;
|
|
6
7
|
id: string;
|
|
7
8
|
sortField: string;
|
|
8
9
|
type: string;
|
|
9
10
|
rules: any[];
|
|
10
|
-
componentConfig: ComponentInterface[
|
|
11
|
-
effects: ComponentInterface[
|
|
11
|
+
componentConfig: ComponentInterface['componentConfig'];
|
|
12
|
+
effects: ComponentInterface['effects'];
|
|
12
13
|
isCombinationComponent: boolean;
|
|
13
14
|
formField: string;
|
|
14
15
|
canSort: boolean;
|
|
15
16
|
children: ComponentInterface[];
|
|
16
|
-
dataType: ComponentInterface[
|
|
17
|
+
dataType: ComponentInterface['dataType'];
|
|
17
18
|
bsType: BsType;
|
|
18
19
|
bsMemo: BsMemo;
|
|
19
|
-
reissueGoods: BsHeaderGood;
|
|
20
|
+
reissueGoods: BsHeaderGood | CommonHeaderGoods;
|
|
20
21
|
constructor(options: PickOption);
|
|
21
22
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
22
23
|
renderPc: () => null;
|
|
23
24
|
renderLog: (r: Record) => React.JSX.Element;
|
|
24
25
|
getComponentValue: (r: Record) => {
|
|
25
|
-
|
|
26
|
-
bsReissueGoods: any;
|
|
26
|
+
[key: string]: any;
|
|
27
27
|
};
|
|
28
28
|
renderExport: () => null;
|
|
29
29
|
editRender: (p: any) => React.JSX.Element;
|
|
@@ -8,16 +8,37 @@ 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
|
+
};
|
|
19
36
|
var BsReissue = /*#__PURE__*/_createClass(function BsReissue(options) {
|
|
20
37
|
var _this = this,
|
|
38
|
+
_typeMap$options$type,
|
|
39
|
+
_typeMap$options$type2,
|
|
40
|
+
_typeMap$options$type3,
|
|
41
|
+
_typeMap$options$type4,
|
|
21
42
|
_this$componentConfig4;
|
|
22
43
|
_classCallCheck(this, BsReissue);
|
|
23
44
|
_defineProperty(this, "name", void 0);
|
|
@@ -36,13 +57,14 @@ var BsReissue = /*#__PURE__*/_createClass(function BsReissue(options) {
|
|
|
36
57
|
_defineProperty(this, "bsMemo", void 0);
|
|
37
58
|
_defineProperty(this, "reissueGoods", void 0);
|
|
38
59
|
_defineProperty(this, "renderClient", function (record) {
|
|
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)].
|
|
60
|
+
var _record, _typeMap$_this$type, _record2, _typeMap$_this$type2, _this$componentConfig;
|
|
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 && (_record = record["".concat(_this.id)]) !== null && _record !== void 0 && _record[(_typeMap$_this$type = typeMap[_this.type]) === null || _typeMap$_this$type === void 0 ? void 0 : _typeMap$_this$type.key].length ? /*#__PURE__*/React.createElement(ItemView, {
|
|
41
62
|
id: _this.id,
|
|
42
63
|
label: _this.name,
|
|
43
64
|
value: /*#__PURE__*/React.createElement(BsGoodsTable, {
|
|
44
|
-
list: (record === null || record === void 0 ? void 0 : record["".concat(_this.id)].
|
|
45
|
-
showHeader: ((_this$componentConfig = _this.componentConfig) === null || _this$componentConfig === void 0 ? void 0 : _this$componentConfig.showHeader) || []
|
|
65
|
+
list: (record === null || record === void 0 ? void 0 : (_record2 = record["".concat(_this.id)]) === null || _record2 === void 0 ? void 0 : _record2["".concat((_typeMap$_this$type2 = typeMap[_this.type]) === null || _typeMap$_this$type2 === void 0 ? void 0 : _typeMap$_this$type2.key)]) || [],
|
|
66
|
+
showHeader: ((_this$componentConfig = _this.componentConfig) === null || _this$componentConfig === void 0 ? void 0 : _this$componentConfig.showHeader) || [],
|
|
67
|
+
type: _this.type
|
|
46
68
|
})
|
|
47
69
|
}) : null) : null;
|
|
48
70
|
});
|
|
@@ -50,17 +72,19 @@ var BsReissue = /*#__PURE__*/_createClass(function BsReissue(options) {
|
|
|
50
72
|
return null;
|
|
51
73
|
});
|
|
52
74
|
_defineProperty(this, "renderLog", function (r) {
|
|
53
|
-
var _r, _r2, _this$componentConfig2;
|
|
54
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, r !== null && r !== void 0 && (_r = r["".concat(_this.id, "
|
|
55
|
-
list: (r === null || r === void 0 ? void 0 : r["".concat(_this.id, "
|
|
56
|
-
showHeader: ((_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.showHeader) || []
|
|
75
|
+
var _r, _typeMap$_this$type3, _r2, _typeMap$_this$type4, _typeMap$_this$type5, _this$componentConfig2;
|
|
76
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, r !== null && r !== void 0 && (_r = r["".concat(_this.id, "_").concat((_typeMap$_this$type3 = typeMap[_this.type]) === null || _typeMap$_this$type3 === void 0 ? void 0 : _typeMap$_this$type3.typeName)]) !== 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, "_").concat((_typeMap$_this$type4 = typeMap[_this.type]) === null || _typeMap$_this$type4 === void 0 ? void 0 : _typeMap$_this$type4.key)]) !== null && _r2 !== void 0 && _r2.length ? /*#__PURE__*/React.createElement("div", null, "\u8865\u53D1\u5546\u54C1\uFF1A", /*#__PURE__*/React.createElement(BsGoodsTable, {
|
|
77
|
+
list: (r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat((_typeMap$_this$type5 = typeMap[_this.type]) === null || _typeMap$_this$type5 === void 0 ? void 0 : _typeMap$_this$type5.key)]) || [],
|
|
78
|
+
showHeader: ((_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.showHeader) || [],
|
|
79
|
+
type: _this.type
|
|
57
80
|
})) : 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);
|
|
58
81
|
});
|
|
59
82
|
_defineProperty(this, "getComponentValue", function (r) {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
83
|
+
var _typeMap$_this$type6, _typeMap$_this$type7, _typeMap$_this$type8, _typeMap$_this$type9;
|
|
84
|
+
var obj = {};
|
|
85
|
+
obj["".concat(typeMap === null || typeMap === void 0 ? void 0 : (_typeMap$_this$type6 = typeMap[_this.type]) === null || _typeMap$_this$type6 === void 0 ? void 0 : _typeMap$_this$type6.typeName)] = 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.typeName)];
|
|
86
|
+
obj["".concat(typeMap === null || typeMap === void 0 ? void 0 : (_typeMap$_this$type8 = typeMap[_this.type]) === null || _typeMap$_this$type8 === void 0 ? void 0 : _typeMap$_this$type8.key)] = 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.key)];
|
|
87
|
+
return obj;
|
|
64
88
|
});
|
|
65
89
|
_defineProperty(this, "renderExport", function () {
|
|
66
90
|
return null;
|
|
@@ -78,7 +102,8 @@ var BsReissue = /*#__PURE__*/_createClass(function BsReissue(options) {
|
|
|
78
102
|
shopId: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopId,
|
|
79
103
|
shopList: ((_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.shopList) || [],
|
|
80
104
|
companyKey: (_this$effects3 = _this.effects) === null || _this$effects3 === void 0 ? void 0 : _this$effects3.companyKey,
|
|
81
|
-
width: "90%"
|
|
105
|
+
width: "90%",
|
|
106
|
+
type: _this.type
|
|
82
107
|
}))
|
|
83
108
|
});
|
|
84
109
|
});
|
|
@@ -87,15 +112,15 @@ var BsReissue = /*#__PURE__*/_createClass(function BsReissue(options) {
|
|
|
87
112
|
return [{
|
|
88
113
|
searchDefaultConditions: SYMBOL.in,
|
|
89
114
|
type: item.type,
|
|
90
|
-
id: "".concat(item.id, "
|
|
115
|
+
id: "".concat(item.id, "_").concat(typeMap[_this.type].typeName),
|
|
91
116
|
name: "".concat(item.name, "-\u8865\u53D1\u7C7B\u578B"),
|
|
92
|
-
filterComponentType:
|
|
117
|
+
filterComponentType: 'Cascader',
|
|
93
118
|
props: {
|
|
94
119
|
options: item === null || item === void 0 ? void 0 : (_item$templateConfig = item.templateConfig) === null || _item$templateConfig === void 0 ? void 0 : _item$templateConfig.reasonList,
|
|
95
120
|
fieldNames: {
|
|
96
|
-
label:
|
|
97
|
-
value:
|
|
98
|
-
children:
|
|
121
|
+
label: 'label',
|
|
122
|
+
value: 'value',
|
|
123
|
+
children: 'children'
|
|
99
124
|
}
|
|
100
125
|
},
|
|
101
126
|
formatFilterValue: function formatFilterValue(val) {
|
|
@@ -105,15 +130,16 @@ var BsReissue = /*#__PURE__*/_createClass(function BsReissue(options) {
|
|
|
105
130
|
},
|
|
106
131
|
filterFn: function filterFn(value) {
|
|
107
132
|
return function (i) {
|
|
108
|
-
|
|
133
|
+
var _typeMap$_this$type10;
|
|
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);
|
|
109
135
|
};
|
|
110
136
|
}
|
|
111
137
|
}, {
|
|
112
138
|
searchDefaultConditions: SYMBOL.like,
|
|
113
139
|
type: item.type,
|
|
114
|
-
id: "".concat(item.id, "
|
|
140
|
+
id: "".concat(item.id, "_").concat(typeMap[_this.type].key),
|
|
115
141
|
name: "".concat(_this.name),
|
|
116
|
-
filterComponentType:
|
|
142
|
+
filterComponentType: 'Input'
|
|
117
143
|
}];
|
|
118
144
|
});
|
|
119
145
|
this.name = options.name;
|
|
@@ -125,15 +151,18 @@ var BsReissue = /*#__PURE__*/_createClass(function BsReissue(options) {
|
|
|
125
151
|
this.isCombinationComponent = true;
|
|
126
152
|
this.canSort = false;
|
|
127
153
|
this.bsType = new BsType(_objectSpread(_objectSpread({}, options), {}, {
|
|
128
|
-
id: "".concat(options.id, "
|
|
129
|
-
name:
|
|
154
|
+
id: "".concat(options.id, "_").concat((_typeMap$options$type = typeMap[options.type]) === null || _typeMap$options$type === void 0 ? void 0 : _typeMap$options$type.typeName),
|
|
155
|
+
name: '补发类型'
|
|
130
156
|
}));
|
|
131
157
|
this.bsMemo = new BsMemo(_objectSpread(_objectSpread({}, options), {}, {
|
|
132
|
-
id: "".concat(options.id, "
|
|
133
|
-
name:
|
|
158
|
+
id: "".concat(options.id, "_").concat((_typeMap$options$type2 = typeMap[options.type]) === null || _typeMap$options$type2 === void 0 ? void 0 : _typeMap$options$type2.remark),
|
|
159
|
+
name: '补发备注'
|
|
134
160
|
}));
|
|
135
|
-
this.reissueGoods = new BsHeaderGood(_objectSpread(_objectSpread({}, options), {}, {
|
|
136
|
-
id: "".concat(options.id, "
|
|
161
|
+
this.reissueGoods = this.type === 'BS_REISSUE_GOODS' ? new BsHeaderGood(_objectSpread(_objectSpread({}, options), {}, {
|
|
162
|
+
id: "".concat(options.id, "_").concat((_typeMap$options$type3 = typeMap[options.type]) === null || _typeMap$options$type3 === void 0 ? void 0 : _typeMap$options$type3.key),
|
|
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),
|
|
137
166
|
name: "商品信息"
|
|
138
167
|
}));
|
|
139
168
|
this.children = [this.bsType, this.bsMemo, this.reissueGoods];
|
|
@@ -141,13 +170,14 @@ var BsReissue = /*#__PURE__*/_createClass(function BsReissue(options) {
|
|
|
141
170
|
this.rules = this !== null && this !== void 0 && (_this$componentConfig4 = this.componentConfig) !== null && _this$componentConfig4 !== void 0 && _this$componentConfig4.required ? [{
|
|
142
171
|
required: true,
|
|
143
172
|
validator: function validator(_, value) {
|
|
144
|
-
var _value$
|
|
145
|
-
if (!value || !(value !== null && value !== void 0 && (_value
|
|
146
|
-
|
|
173
|
+
var _value, _typeMap$options$type5;
|
|
174
|
+
if (!value || !(value !== null && value !== void 0 && (_value = value["".concat((_typeMap$options$type5 = typeMap[options.type]) === null || _typeMap$options$type5 === void 0 ? void 0 : _typeMap$options$type5.key)]) !== null && _value !== void 0 && _value.length)) {
|
|
175
|
+
var _typeMap$options$type6;
|
|
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)));
|
|
147
177
|
}
|
|
148
178
|
return Promise.resolve();
|
|
149
179
|
}
|
|
150
180
|
}] : [];
|
|
151
|
-
this.dataType =
|
|
181
|
+
this.dataType = 'object';
|
|
152
182
|
});
|
|
153
183
|
export default BsReissue;
|
|
@@ -30,6 +30,13 @@ 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"
|
|
33
40
|
}
|
|
34
41
|
};
|
|
35
42
|
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,13 +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 } 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:
|
|
18
|
+
BS_EXCHANGE_GOODS: 'bsExchangeType',
|
|
19
|
+
BS_REISSUE_GOODS: 'bsReissueType',
|
|
20
|
+
BS_RETURN_GOODS: 'bsReturnType',
|
|
21
|
+
WDT_REISSUE_GOODS: 'wdtReissueType'
|
|
21
22
|
};
|
|
22
23
|
var BsMemo = /*#__PURE__*/_createClass(function BsMemo(options) {
|
|
23
24
|
var _this = this;
|
|
@@ -35,7 +36,7 @@ var BsMemo = /*#__PURE__*/_createClass(function BsMemo(options) {
|
|
|
35
36
|
_defineProperty(this, "children", void 0);
|
|
36
37
|
_defineProperty(this, "dataType", void 0);
|
|
37
38
|
_defineProperty(this, "getParentId", function () {
|
|
38
|
-
var _this$id$split = _this.id.split(
|
|
39
|
+
var _this$id$split = _this.id.split('_'),
|
|
39
40
|
_this$id$split2 = _slicedToArray(_this$id$split, 2),
|
|
40
41
|
key = _this$id$split2[0],
|
|
41
42
|
name = _this$id$split2[1];
|
|
@@ -43,14 +44,14 @@ var BsMemo = /*#__PURE__*/_createClass(function BsMemo(options) {
|
|
|
43
44
|
});
|
|
44
45
|
_defineProperty(this, "renderClient", function (r) {
|
|
45
46
|
var _r$key$componentType$, _r$key, _r$key$componentType$2, _r$key2, _r$key2$componentType, _find, _this$componentConfig, _find2;
|
|
46
|
-
var _this$getParentId$spl = _this.getParentId().split(
|
|
47
|
+
var _this$getParentId$spl = _this.getParentId().split('_'),
|
|
47
48
|
_this$getParentId$spl2 = _slicedToArray(_this$getParentId$spl, 1),
|
|
48
49
|
key = _this$getParentId$spl2[0];
|
|
49
50
|
if (!(r !== null && r !== void 0 && (_r$key$componentType$ = r[key][componentType[_this.type]]) !== null && _r$key$componentType$ !== void 0 && _r$key$componentType$.length)) {
|
|
50
51
|
return null;
|
|
51
52
|
}
|
|
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] :
|
|
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] : '';
|
|
54
55
|
var children = (_find = (((_this$componentConfig = _this.componentConfig) === null || _this$componentConfig === void 0 ? void 0 : _this$componentConfig.reasonList) || []).find(function (item) {
|
|
55
56
|
return item.value === type;
|
|
56
57
|
})) === null || _find === void 0 ? void 0 : _find.children;
|
|
@@ -65,7 +66,7 @@ var BsMemo = /*#__PURE__*/_createClass(function BsMemo(options) {
|
|
|
65
66
|
});
|
|
66
67
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
67
68
|
var _this$getComponentVal;
|
|
68
|
-
return /*#__PURE__*/React.createElement("span", null, (_this$getComponentVal = _this.getComponentValue(record)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal :
|
|
69
|
+
return /*#__PURE__*/React.createElement("span", null, (_this$getComponentVal = _this.getComponentValue(record)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal : '--');
|
|
69
70
|
});
|
|
70
71
|
_defineProperty(this, "renderLog", function (r) {
|
|
71
72
|
var id = _this.getParentId();
|
|
@@ -75,8 +76,8 @@ var BsMemo = /*#__PURE__*/_createClass(function BsMemo(options) {
|
|
|
75
76
|
_defineProperty(this, "getComponentValue", function (r) {
|
|
76
77
|
var _r$id, _r$id2, _find3, _this$componentConfig2, _find4;
|
|
77
78
|
var id = _this.getParentId();
|
|
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] :
|
|
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] : '';
|
|
80
81
|
var children = (_find3 = (((_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.reasonList) || []).find(function (item) {
|
|
81
82
|
return item.value === type;
|
|
82
83
|
})) === null || _find3 === void 0 ? void 0 : _find3.children;
|
|
@@ -87,7 +88,7 @@ var BsMemo = /*#__PURE__*/_createClass(function BsMemo(options) {
|
|
|
87
88
|
});
|
|
88
89
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
89
90
|
var _this$getComponentVal2;
|
|
90
|
-
return (_this$getComponentVal2 = _this.getComponentValue(record)) !== null && _this$getComponentVal2 !== void 0 ? _this$getComponentVal2 :
|
|
91
|
+
return (_this$getComponentVal2 = _this.getComponentValue(record)) !== null && _this$getComponentVal2 !== void 0 ? _this$getComponentVal2 : '--';
|
|
91
92
|
});
|
|
92
93
|
_defineProperty(this, "editRender", function () {
|
|
93
94
|
return null;
|
|
@@ -101,11 +102,11 @@ var BsMemo = /*#__PURE__*/_createClass(function BsMemo(options) {
|
|
|
101
102
|
this.formField = options.id;
|
|
102
103
|
this.type = options.type;
|
|
103
104
|
this.componentConfig = options.componentConfig;
|
|
104
|
-
this.align =
|
|
105
|
+
this.align = 'left';
|
|
105
106
|
this.width = 140;
|
|
106
107
|
this.isCombinationComponent = false;
|
|
107
108
|
this.canSort = false;
|
|
108
|
-
this.dataType =
|
|
109
|
+
this.dataType = 'string';
|
|
109
110
|
this.children = [];
|
|
110
111
|
});
|
|
111
112
|
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,14 +11,15 @@ 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:
|
|
19
|
+
BS_EXCHANGE_GOODS: 'bsExchangeType',
|
|
20
|
+
BS_REISSUE_GOODS: 'bsReissueType',
|
|
21
|
+
BS_RETURN_GOODS: 'bsReturnType',
|
|
22
|
+
WDT_REISSUE_GOODS: 'wdtReissueType'
|
|
22
23
|
};
|
|
23
24
|
var BsType = /*#__PURE__*/_createClass(function BsType(options) {
|
|
24
25
|
var _this = this;
|
|
@@ -36,7 +37,7 @@ var BsType = /*#__PURE__*/_createClass(function BsType(options) {
|
|
|
36
37
|
_defineProperty(this, "children", void 0);
|
|
37
38
|
_defineProperty(this, "dataType", void 0);
|
|
38
39
|
_defineProperty(this, "getParentId", function () {
|
|
39
|
-
var _this$id$split = _this.id.split(
|
|
40
|
+
var _this$id$split = _this.id.split('_'),
|
|
40
41
|
_this$id$split2 = _slicedToArray(_this$id$split, 2),
|
|
41
42
|
key = _this$id$split2[0],
|
|
42
43
|
name = _this$id$split2[1];
|
|
@@ -44,7 +45,7 @@ var BsType = /*#__PURE__*/_createClass(function BsType(options) {
|
|
|
44
45
|
});
|
|
45
46
|
_defineProperty(this, "renderClient", function (record) {
|
|
46
47
|
var _record$key$component, _find, _this$componentConfig;
|
|
47
|
-
var _this$getParentId$spl = _this.getParentId().split(
|
|
48
|
+
var _this$getParentId$spl = _this.getParentId().split('_'),
|
|
48
49
|
_this$getParentId$spl2 = _slicedToArray(_this$getParentId$spl, 1),
|
|
49
50
|
key = _this$getParentId$spl2[0];
|
|
50
51
|
if (!(record !== null && record !== void 0 && (_record$key$component = record[key][componentType[_this.type]]) !== null && _record$key$component !== void 0 && _record$key$component.length)) {
|
|
@@ -62,7 +63,7 @@ var BsType = /*#__PURE__*/_createClass(function BsType(options) {
|
|
|
62
63
|
});
|
|
63
64
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
64
65
|
var _this$getComponentVal;
|
|
65
|
-
return /*#__PURE__*/React.createElement("span", null, (_this$getComponentVal = _this.getComponentValue(record)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal :
|
|
66
|
+
return /*#__PURE__*/React.createElement("span", null, (_this$getComponentVal = _this.getComponentValue(record)) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal : '--');
|
|
66
67
|
});
|
|
67
68
|
_defineProperty(this, "renderLog", function (r) {
|
|
68
69
|
var id = _this.getParentId();
|
|
@@ -72,7 +73,7 @@ var BsType = /*#__PURE__*/_createClass(function BsType(options) {
|
|
|
72
73
|
_defineProperty(this, "getComponentValue", function (r) {
|
|
73
74
|
var _r$id, _find2, _this$componentConfig2;
|
|
74
75
|
var id = _this.getParentId();
|
|
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] :
|
|
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] : '';
|
|
76
77
|
var text = (_find2 = (((_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.reasonList) || []).find(function (item) {
|
|
77
78
|
return item.value === type;
|
|
78
79
|
})) === null || _find2 === void 0 ? void 0 : _find2.label;
|
|
@@ -80,7 +81,7 @@ var BsType = /*#__PURE__*/_createClass(function BsType(options) {
|
|
|
80
81
|
});
|
|
81
82
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
82
83
|
var _this$getComponentVal2;
|
|
83
|
-
return (_this$getComponentVal2 = _this.getComponentValue(record)) !== null && _this$getComponentVal2 !== void 0 ? _this$getComponentVal2 :
|
|
84
|
+
return (_this$getComponentVal2 = _this.getComponentValue(record)) !== null && _this$getComponentVal2 !== void 0 ? _this$getComponentVal2 : '--';
|
|
84
85
|
});
|
|
85
86
|
_defineProperty(this, "editRender", function () {
|
|
86
87
|
return null;
|
|
@@ -94,7 +95,7 @@ var BsType = /*#__PURE__*/_createClass(function BsType(options) {
|
|
|
94
95
|
type: item.type,
|
|
95
96
|
id: _this.id,
|
|
96
97
|
name: "".concat(item.name, "-\u7C7B\u578B"),
|
|
97
|
-
filterComponentType:
|
|
98
|
+
filterComponentType: 'Cascader',
|
|
98
99
|
props: {
|
|
99
100
|
options: (item === null || item === void 0 ? void 0 : (_item$config = item.config) === null || _item$config === void 0 ? void 0 : _item$config.reasonList) || []
|
|
100
101
|
},
|
|
@@ -116,11 +117,11 @@ var BsType = /*#__PURE__*/_createClass(function BsType(options) {
|
|
|
116
117
|
this.formField = options.id;
|
|
117
118
|
this.type = options.type;
|
|
118
119
|
this.componentConfig = options.componentConfig;
|
|
119
|
-
this.align =
|
|
120
|
+
this.align = 'left';
|
|
120
121
|
this.width = 140;
|
|
121
122
|
this.isCombinationComponent = false;
|
|
122
123
|
this.canSort = false;
|
|
123
|
-
this.dataType =
|
|
124
|
+
this.dataType = 'string';
|
|
124
125
|
this.children = [];
|
|
125
126
|
});
|
|
126
127
|
export default BsType;
|
|
@@ -21,6 +21,9 @@ var typeMap = {
|
|
|
21
21
|
},
|
|
22
22
|
WLN_LOGISTICS: {
|
|
23
23
|
key: "wlnLogisticsItem"
|
|
24
|
+
},
|
|
25
|
+
WDT_LOGISTICS: {
|
|
26
|
+
key: 'wdtLogisticsItem'
|
|
24
27
|
}
|
|
25
28
|
};
|
|
26
29
|
var ExpressCode = /*#__PURE__*/_createClass(function ExpressCode(options) {
|
|
@@ -78,7 +81,7 @@ var ExpressCode = /*#__PURE__*/_createClass(function ExpressCode(options) {
|
|
|
78
81
|
searchDefaultConditions: SYMBOL.in,
|
|
79
82
|
type: item.type,
|
|
80
83
|
id: "".concat(item.id, "_").concat(subKey),
|
|
81
|
-
name: "".concat(_this.parentName, "
|
|
84
|
+
name: "".concat(_this.parentName, "-\u7269\u6D41\u5355\u53F7"),
|
|
82
85
|
filterComponentType: "SelectInput",
|
|
83
86
|
filterFn: function filterFn(value) {
|
|
84
87
|
return function (i) {
|
|
@@ -22,6 +22,9 @@ var typeMap = {
|
|
|
22
22
|
},
|
|
23
23
|
WLN_LOGISTICS: {
|
|
24
24
|
key: "wlnLogisticsItem"
|
|
25
|
+
},
|
|
26
|
+
WDT_LOGISTICS: {
|
|
27
|
+
key: "wdtLogisticsItem"
|
|
25
28
|
}
|
|
26
29
|
};
|
|
27
30
|
var Express = /*#__PURE__*/_createClass(function Express(options) {
|
|
@@ -80,7 +83,7 @@ var Express = /*#__PURE__*/_createClass(function Express(options) {
|
|
|
80
83
|
searchDefaultConditions: SYMBOL.in,
|
|
81
84
|
type: item.type,
|
|
82
85
|
id: "".concat(item.id, "_").concat(subKey),
|
|
83
|
-
name: "".concat(_this.parentName, "
|
|
86
|
+
name: "".concat(_this.parentName, "-\u7269\u6D41\u516C\u53F8"),
|
|
84
87
|
filterComponentType: "MultipleSelect",
|
|
85
88
|
props: {
|
|
86
89
|
options: _this.expressDateInstance.getExpressData() || []
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ComponentInterface, PickOption, ColumnConfig, Record } from
|
|
2
|
-
import React from
|
|
1
|
+
import { ComponentInterface, PickOption, ColumnConfig, Record } from '../../type';
|
|
2
|
+
import React from 'react';
|
|
3
3
|
declare class EBuyerNick implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
@@ -12,7 +12,7 @@ declare class EBuyerNick implements ComponentInterface {
|
|
|
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
|
renderTaoBaoWangWang: (record: any, params: any) => React.JSX.Element;
|
|
18
18
|
renderClient: (record: any, params: any) => React.JSX.Element | null;
|