@kmkf-fe-packages/services-components 0.7.15-alpha.27 → 0.7.15-alpha.29
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/BsExchange/index.js +139 -76
- package/dist/esm/components/BS/BsGoods/index.d.ts +3 -3
- package/dist/esm/components/BS/BsGoods/index.js +17 -65
- package/dist/esm/components/BS/BsLogistics/index.d.ts +7 -7
- package/dist/esm/components/BS/BsLogistics/index.js +14 -14
- package/dist/esm/components/BS/BsReissue/index.js +52 -27
- package/dist/esm/components/BS/common/{BsChildPic.d.ts → BsHeaderPic.d.ts} +4 -4
- package/dist/esm/components/BS/common/{BsChildPic.js → BsHeaderPic.js} +7 -7
- package/dist/esm/components/BS/common/index.d.ts +10 -10
- package/dist/esm/components/BS/common/index.js +8 -8
- package/dist/esm/components/Cascader/index.js +1 -1
- 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/Popover/index.d.ts +2 -2
- package/dist/esm/components/ThirdItemSelect/ItemEncode.d.ts +2 -2
- package/dist/esm/type.d.ts +1 -0
- package/package.json +3 -3
- /package/dist/esm/components/BS/common/{BsChildCode.d.ts → BsHeaderCode.d.ts} +0 -0
- /package/dist/esm/components/BS/common/{BsChildCode.js → BsHeaderCode.js} +0 -0
- /package/dist/esm/components/BS/common/{BsChildMoney.d.ts → BsHeaderMoney.d.ts} +0 -0
- /package/dist/esm/components/BS/common/{BsChildMoney.js → BsHeaderMoney.js} +0 -0
- /package/dist/esm/components/BS/common/{BsChildName.d.ts → BsHeaderName.d.ts} +0 -0
- /package/dist/esm/components/BS/common/{BsChildName.js → BsHeaderName.js} +0 -0
- /package/dist/esm/components/BS/common/{BsChildNumber.d.ts → BsHeaderNumber.d.ts} +0 -0
- /package/dist/esm/components/BS/common/{BsChildNumber.js → BsHeaderNumber.js} +0 -0
- /package/dist/esm/components/BS/common/{BsChildShare.d.ts → BsHeaderShare.d.ts} +0 -0
- /package/dist/esm/components/BS/common/{BsChildShare.js → BsHeaderShare.js} +0 -0
- /package/dist/esm/components/BS/common/{BsChildSku.d.ts → BsHeaderSku.d.ts} +0 -0
- /package/dist/esm/components/BS/common/{BsChildSku.js → BsHeaderSku.js} +0 -0
- /package/dist/esm/components/BS/common/{BsChildType.d.ts → BsHeaderType.d.ts} +0 -0
- /package/dist/esm/components/BS/common/{BsChildType.js → BsHeaderType.js} +0 -0
|
@@ -1,4 +1,10 @@
|
|
|
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 _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
3
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
4
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
5
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
6
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
7
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
2
8
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
9
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
10
|
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); }
|
|
@@ -16,9 +22,114 @@ import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
|
|
|
16
22
|
import { BsExchange as Exchange } from "@kmkf-fe-packages/basic-components";
|
|
17
23
|
import { SYMBOL } from "../../../constant";
|
|
18
24
|
import BsExchangeImage from "../common/BsExchangeImage";
|
|
19
|
-
import { BsType, BsMemo,
|
|
25
|
+
import { BsType, BsMemo, BsHeaderPic, BsHeaderName, BsHeaderCode, BsHeaderSku, BsHeaderMoney, BsHeaderNumber, BsHeaderShare, BsHeaderType } from "../common/index";
|
|
26
|
+
var returnHeaderMap = {
|
|
27
|
+
pic: {
|
|
28
|
+
component: BsHeaderPic,
|
|
29
|
+
name: "退回图片"
|
|
30
|
+
},
|
|
31
|
+
name: {
|
|
32
|
+
component: BsHeaderName,
|
|
33
|
+
name: "退回名称"
|
|
34
|
+
},
|
|
35
|
+
code: {
|
|
36
|
+
component: BsHeaderCode,
|
|
37
|
+
name: "退回编码"
|
|
38
|
+
},
|
|
39
|
+
sku: {
|
|
40
|
+
component: BsHeaderSku,
|
|
41
|
+
name: "退回sku编码"
|
|
42
|
+
},
|
|
43
|
+
money: {
|
|
44
|
+
component: BsHeaderMoney,
|
|
45
|
+
name: "退回实付金额"
|
|
46
|
+
},
|
|
47
|
+
number: {
|
|
48
|
+
component: BsHeaderNumber,
|
|
49
|
+
name: "退回数量"
|
|
50
|
+
},
|
|
51
|
+
share: {
|
|
52
|
+
component: BsHeaderShare,
|
|
53
|
+
name: "退回分摊价"
|
|
54
|
+
},
|
|
55
|
+
type: {
|
|
56
|
+
component: BsHeaderType,
|
|
57
|
+
name: "退回赠品类型"
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
var swapOutHeaderMap = {
|
|
61
|
+
pic: {
|
|
62
|
+
component: BsHeaderPic,
|
|
63
|
+
name: "换出图片"
|
|
64
|
+
},
|
|
65
|
+
name: {
|
|
66
|
+
component: BsHeaderName,
|
|
67
|
+
name: "换出名称"
|
|
68
|
+
},
|
|
69
|
+
code: {
|
|
70
|
+
component: BsHeaderCode,
|
|
71
|
+
name: "换出编码"
|
|
72
|
+
},
|
|
73
|
+
sku: {
|
|
74
|
+
component: BsHeaderSku,
|
|
75
|
+
name: "换出sku编码"
|
|
76
|
+
},
|
|
77
|
+
money: {
|
|
78
|
+
component: BsHeaderMoney,
|
|
79
|
+
name: "换出实付金额"
|
|
80
|
+
},
|
|
81
|
+
number: {
|
|
82
|
+
component: BsHeaderNumber,
|
|
83
|
+
name: "换出数量"
|
|
84
|
+
},
|
|
85
|
+
share: {
|
|
86
|
+
component: BsHeaderShare,
|
|
87
|
+
name: "换出分摊价"
|
|
88
|
+
},
|
|
89
|
+
type: {
|
|
90
|
+
component: BsHeaderType,
|
|
91
|
+
name: "换出赠品类型"
|
|
92
|
+
}
|
|
93
|
+
};
|
|
94
|
+
var giftHeaderMap = {
|
|
95
|
+
pic: {
|
|
96
|
+
component: BsHeaderPic,
|
|
97
|
+
name: "赠品图片"
|
|
98
|
+
},
|
|
99
|
+
name: {
|
|
100
|
+
component: BsHeaderName,
|
|
101
|
+
name: "赠品名称"
|
|
102
|
+
},
|
|
103
|
+
code: {
|
|
104
|
+
component: BsHeaderCode,
|
|
105
|
+
name: "赠品编码"
|
|
106
|
+
},
|
|
107
|
+
sku: {
|
|
108
|
+
component: BsHeaderSku,
|
|
109
|
+
name: "赠品sku编码"
|
|
110
|
+
},
|
|
111
|
+
money: {
|
|
112
|
+
component: BsHeaderMoney,
|
|
113
|
+
name: "赠品实付金额"
|
|
114
|
+
},
|
|
115
|
+
number: {
|
|
116
|
+
component: BsHeaderNumber,
|
|
117
|
+
name: "赠品数量"
|
|
118
|
+
},
|
|
119
|
+
share: {
|
|
120
|
+
component: BsHeaderShare,
|
|
121
|
+
name: "赠品分摊价"
|
|
122
|
+
},
|
|
123
|
+
type: {
|
|
124
|
+
component: BsHeaderType,
|
|
125
|
+
name: "赠品赠品类型"
|
|
126
|
+
}
|
|
127
|
+
};
|
|
20
128
|
var BsExchange = /*#__PURE__*/_createClass(function BsExchange(options) {
|
|
21
|
-
var _this = this
|
|
129
|
+
var _this = this,
|
|
130
|
+
_options$componentCon,
|
|
131
|
+
_options$componentCon2,
|
|
132
|
+
_options$componentCon3;
|
|
22
133
|
_classCallCheck(this, BsExchange);
|
|
23
134
|
_defineProperty(this, "name", void 0);
|
|
24
135
|
_defineProperty(this, "id", void 0);
|
|
@@ -115,7 +226,7 @@ var BsExchange = /*#__PURE__*/_createClass(function BsExchange(options) {
|
|
|
115
226
|
this.formField = "".concat(options.id);
|
|
116
227
|
this.type = options.type;
|
|
117
228
|
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
118
|
-
this.isCombinationComponent =
|
|
229
|
+
this.isCombinationComponent = true;
|
|
119
230
|
this.canSort = false;
|
|
120
231
|
this.goodImage = new BsExchangeImage(_objectSpread(_objectSpread({}, options), {}, {
|
|
121
232
|
id: "".concat(options.id),
|
|
@@ -135,79 +246,31 @@ var BsExchange = /*#__PURE__*/_createClass(function BsExchange(options) {
|
|
|
135
246
|
})), new BsMemo(_objectSpread(_objectSpread({}, options), {}, {
|
|
136
247
|
id: "".concat(options.id, "_bsReissueType"),
|
|
137
248
|
name: "换货备注"
|
|
138
|
-
}))
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
}
|
|
163
|
-
name: "换出图片",
|
|
164
|
-
id: "".concat(options.id, "_bsExchangeSwapOutGoods")
|
|
165
|
-
})), new BsChildName(_objectSpread(_objectSpread({}, options), {}, {
|
|
166
|
-
name: "换出名称",
|
|
167
|
-
id: "".concat(options.id, "_bsExchangeSwapOutGoods")
|
|
168
|
-
})), new BsChildCode(_objectSpread(_objectSpread({}, options), {}, {
|
|
169
|
-
name: "换出编码",
|
|
170
|
-
id: "".concat(options.id, "_bsExchangeSwapOutGoods")
|
|
171
|
-
})), new BsChildSku(_objectSpread(_objectSpread({}, options), {}, {
|
|
172
|
-
name: "换出sku编码",
|
|
173
|
-
id: "".concat(options.id, "_bsExchangeSwapOutGoods")
|
|
174
|
-
})), new BsChildMoney(_objectSpread(_objectSpread({}, options), {}, {
|
|
175
|
-
name: "换出实付金额",
|
|
176
|
-
id: "".concat(options.id, "_bsExchangeSwapOutGoods")
|
|
177
|
-
})), new BsChildNumber(_objectSpread(_objectSpread({}, options), {}, {
|
|
178
|
-
name: "换出数量",
|
|
179
|
-
id: "".concat(options.id, "_bsExchangeSwapOutGoods")
|
|
180
|
-
})), new BsChildShare(_objectSpread(_objectSpread({}, options), {}, {
|
|
181
|
-
name: "换出分摊价",
|
|
182
|
-
id: "".concat(options.id, "_bsExchangeSwapOutGoods")
|
|
183
|
-
})), new BsChildType(_objectSpread(_objectSpread({}, options), {}, {
|
|
184
|
-
name: "换出赠品类型",
|
|
185
|
-
id: "".concat(options.id, "_bsExchangeSwapOutGoods")
|
|
186
|
-
})), new BsChildPic(_objectSpread(_objectSpread({}, options), {}, {
|
|
187
|
-
name: "赠品图片",
|
|
188
|
-
id: "".concat(options.id, "_bsExchangeGiftGoods")
|
|
189
|
-
})), new BsChildName(_objectSpread(_objectSpread({}, options), {}, {
|
|
190
|
-
name: "赠品名称",
|
|
191
|
-
id: "".concat(options.id, "_bsExchangeGiftGoods")
|
|
192
|
-
})), new BsChildCode(_objectSpread(_objectSpread({}, options), {}, {
|
|
193
|
-
name: "赠品编码",
|
|
194
|
-
id: "".concat(options.id, "_bsExchangeGiftGoods")
|
|
195
|
-
})), new BsChildSku(_objectSpread(_objectSpread({}, options), {}, {
|
|
196
|
-
name: "赠品sku编码",
|
|
197
|
-
id: "".concat(options.id, "_bsExchangeGiftGoods")
|
|
198
|
-
})), new BsChildMoney(_objectSpread(_objectSpread({}, options), {}, {
|
|
199
|
-
name: "赠品实付金额",
|
|
200
|
-
id: "".concat(options.id, "_bsExchangeGiftGoods")
|
|
201
|
-
})), new BsChildNumber(_objectSpread(_objectSpread({}, options), {}, {
|
|
202
|
-
name: "赠品数量",
|
|
203
|
-
id: "".concat(options.id, "_bsExchangeGiftGoods")
|
|
204
|
-
})), new BsChildShare(_objectSpread(_objectSpread({}, options), {}, {
|
|
205
|
-
name: "赠品分摊价",
|
|
206
|
-
id: "".concat(options.id, "_bsExchangeGiftGoods")
|
|
207
|
-
})), new BsChildType(_objectSpread(_objectSpread({}, options), {}, {
|
|
208
|
-
name: "赠品赠品类型",
|
|
209
|
-
id: "".concat(options.id, "_bsExchangeGiftGoods")
|
|
210
|
-
}))];
|
|
249
|
+
}))].concat(_toConsumableArray(((options === null || options === void 0 ? void 0 : (_options$componentCon = options.componentConfig) === null || _options$componentCon === void 0 ? void 0 : _options$componentCon.showHeader) || []).reduce(function (prv, next) {
|
|
250
|
+
if (returnHeaderMap[next]) {
|
|
251
|
+
prv.push(new returnHeaderMap[next].component(_objectSpread(_objectSpread({}, options), {}, {
|
|
252
|
+
name: returnHeaderMap[next].name,
|
|
253
|
+
id: "".concat(options.id, "_bsExchangeReturnGoods")
|
|
254
|
+
})));
|
|
255
|
+
}
|
|
256
|
+
return prv;
|
|
257
|
+
}, [])), _toConsumableArray(((options === null || options === void 0 ? void 0 : (_options$componentCon2 = options.componentConfig) === null || _options$componentCon2 === void 0 ? void 0 : _options$componentCon2.showHeader) || []).reduce(function (prv, next) {
|
|
258
|
+
if (swapOutHeaderMap[next]) {
|
|
259
|
+
prv.push(new swapOutHeaderMap[next].component(_objectSpread(_objectSpread({}, options), {}, {
|
|
260
|
+
name: swapOutHeaderMap[next].name,
|
|
261
|
+
id: "".concat(options.id, "_bsExchangeSwapOutGoods")
|
|
262
|
+
})));
|
|
263
|
+
}
|
|
264
|
+
return prv;
|
|
265
|
+
}, [])), _toConsumableArray(((options === null || options === void 0 ? void 0 : (_options$componentCon3 = options.componentConfig) === null || _options$componentCon3 === void 0 ? void 0 : _options$componentCon3.showHeader) || []).reduce(function (prv, next) {
|
|
266
|
+
if (giftHeaderMap[next]) {
|
|
267
|
+
prv.push(new giftHeaderMap[next].component(_objectSpread(_objectSpread({}, options), {}, {
|
|
268
|
+
name: giftHeaderMap[next].name,
|
|
269
|
+
id: "".concat(options.id, "_bsExchangeGiftGoods")
|
|
270
|
+
})));
|
|
271
|
+
}
|
|
272
|
+
return prv;
|
|
273
|
+
}, [])));
|
|
211
274
|
this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
|
|
212
275
|
this.rules = [{
|
|
213
276
|
required: true,
|
|
@@ -15,8 +15,8 @@ declare class BsGoods implements ComponentInterface {
|
|
|
15
15
|
dataType: ComponentInterface["dataType"];
|
|
16
16
|
constructor(options: PickOption);
|
|
17
17
|
renderClient: (record: any) => any;
|
|
18
|
-
renderPc: (
|
|
19
|
-
renderLog: (r: Record) =>
|
|
18
|
+
renderPc: () => null;
|
|
19
|
+
renderLog: (r: Record) => null;
|
|
20
20
|
getComponentValue: (r: Record) => any;
|
|
21
21
|
renderExport: () => null;
|
|
22
22
|
editRender: (p: any) => React.JSX.Element;
|
|
@@ -26,6 +26,6 @@ declare class BsGoods implements ComponentInterface {
|
|
|
26
26
|
id: string;
|
|
27
27
|
name: string;
|
|
28
28
|
filterComponentType: "Input";
|
|
29
|
-
};
|
|
29
|
+
}[];
|
|
30
30
|
}
|
|
31
31
|
export default BsGoods;
|
|
@@ -11,81 +11,43 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
|
|
|
11
11
|
import React from "react";
|
|
12
12
|
import GetFormItem from "../../GetFormItem";
|
|
13
13
|
import { BsGoodImage } from "../../Common";
|
|
14
|
-
import {
|
|
14
|
+
import { BsHeaderPic, BsHeaderName, BsHeaderCode, BsHeaderSku, BsHeaderMoney, BsHeaderNumber, BsHeaderShare, BsHeaderType } from "../common/index";
|
|
15
15
|
import { isNull } from "@kmkf-fe-packages/kmkf-utils";
|
|
16
16
|
import { BsGoods as Goods } from "@kmkf-fe-packages/basic-components";
|
|
17
17
|
import { SYMBOL } from "../../../constant";
|
|
18
18
|
var childHeaderMap = {
|
|
19
19
|
pic: {
|
|
20
|
-
component:
|
|
20
|
+
component: BsHeaderPic,
|
|
21
21
|
name: "图片"
|
|
22
22
|
},
|
|
23
23
|
name: {
|
|
24
|
-
component:
|
|
24
|
+
component: BsHeaderName,
|
|
25
25
|
name: "名称"
|
|
26
26
|
},
|
|
27
27
|
code: {
|
|
28
|
-
component:
|
|
28
|
+
component: BsHeaderCode,
|
|
29
29
|
name: "编码"
|
|
30
30
|
},
|
|
31
31
|
sku: {
|
|
32
|
-
component:
|
|
32
|
+
component: BsHeaderSku,
|
|
33
33
|
name: "sku编码"
|
|
34
34
|
},
|
|
35
35
|
money: {
|
|
36
|
-
component:
|
|
36
|
+
component: BsHeaderMoney,
|
|
37
37
|
name: "实付金额"
|
|
38
38
|
},
|
|
39
39
|
number: {
|
|
40
|
-
component:
|
|
40
|
+
component: BsHeaderNumber,
|
|
41
41
|
name: "数量"
|
|
42
42
|
},
|
|
43
43
|
share: {
|
|
44
|
-
component:
|
|
44
|
+
component: BsHeaderShare,
|
|
45
45
|
name: "分摊价"
|
|
46
46
|
},
|
|
47
47
|
type: {
|
|
48
|
-
component:
|
|
48
|
+
component: BsHeaderType,
|
|
49
49
|
name: "赠品类型"
|
|
50
50
|
}
|
|
51
|
-
|
|
52
|
-
// return {
|
|
53
|
-
// name: new BsChildName({
|
|
54
|
-
// ...options,
|
|
55
|
-
// name: "名称",
|
|
56
|
-
// id: `${options.id}_bsGoods`,
|
|
57
|
-
// }),
|
|
58
|
-
// code: new BsChildCode({
|
|
59
|
-
// ...options,
|
|
60
|
-
// name: "编码",
|
|
61
|
-
// id: `${options.id}_bsGoods`,
|
|
62
|
-
// }),
|
|
63
|
-
// sku: new BsChildSku({
|
|
64
|
-
// ...options,
|
|
65
|
-
// name: "sku编码",
|
|
66
|
-
// id: `${options.id}_bsGoods`,
|
|
67
|
-
// }),
|
|
68
|
-
// money: new BsChildMoney({
|
|
69
|
-
// ...options,
|
|
70
|
-
// name: "实付金额",
|
|
71
|
-
// id: `${options.id}_bsGoods`,
|
|
72
|
-
// }),
|
|
73
|
-
// number: new BsChildNumber({
|
|
74
|
-
// ...options,
|
|
75
|
-
// name: "数量",
|
|
76
|
-
// id: `${options.id}_bsGoods`,
|
|
77
|
-
// }),
|
|
78
|
-
// share: new BsChildShare({
|
|
79
|
-
// ...options,
|
|
80
|
-
// name: "分摊价",
|
|
81
|
-
// id: `${options.id}_bsGoods`,
|
|
82
|
-
// }),
|
|
83
|
-
// type: new BsChildType({
|
|
84
|
-
// ...options,
|
|
85
|
-
// name: "赠品类型",
|
|
86
|
-
// id: `${options.id}_bsGoods`,
|
|
87
|
-
// }),
|
|
88
|
-
// };
|
|
89
51
|
};
|
|
90
52
|
var BsGoods = /*#__PURE__*/_createClass(function BsGoods(options) {
|
|
91
53
|
var _this = this,
|
|
@@ -112,21 +74,11 @@ var BsGoods = /*#__PURE__*/_createClass(function BsGoods(options) {
|
|
|
112
74
|
});
|
|
113
75
|
}) : null;
|
|
114
76
|
});
|
|
115
|
-
_defineProperty(this, "renderPc", function (
|
|
116
|
-
|
|
117
|
-
return /*#__PURE__*/React.createElement("span", null, "--");
|
|
118
|
-
}
|
|
119
|
-
//兼容多个商品
|
|
120
|
-
return ((record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_bsGoods")]) || []).map(function (item, index) {
|
|
121
|
-
return /*#__PURE__*/React.createElement(BsGoodImage, {
|
|
122
|
-
item: item,
|
|
123
|
-
index: index
|
|
124
|
-
});
|
|
125
|
-
});
|
|
77
|
+
_defineProperty(this, "renderPc", function () {
|
|
78
|
+
return null;
|
|
126
79
|
});
|
|
127
80
|
_defineProperty(this, "renderLog", function (r) {
|
|
128
|
-
|
|
129
|
-
return _this.renderPc(undefined, r);
|
|
81
|
+
return null;
|
|
130
82
|
});
|
|
131
83
|
_defineProperty(this, "getComponentValue", function (r) {
|
|
132
84
|
return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_bsGoods")];
|
|
@@ -151,7 +103,7 @@ var BsGoods = /*#__PURE__*/_createClass(function BsGoods(options) {
|
|
|
151
103
|
});
|
|
152
104
|
});
|
|
153
105
|
_defineProperty(this, "filterConfig", function (item) {
|
|
154
|
-
return {
|
|
106
|
+
return [{
|
|
155
107
|
searchDefaultConditions: SYMBOL.like,
|
|
156
108
|
type: item.type,
|
|
157
109
|
id: "".concat(item.id, "_bsGoods"),
|
|
@@ -159,7 +111,7 @@ var BsGoods = /*#__PURE__*/_createClass(function BsGoods(options) {
|
|
|
159
111
|
name: item.name,
|
|
160
112
|
// 过滤组件名称
|
|
161
113
|
filterComponentType: "Input"
|
|
162
|
-
};
|
|
114
|
+
}];
|
|
163
115
|
});
|
|
164
116
|
this.name = options.name;
|
|
165
117
|
this.id = options.id;
|
|
@@ -167,9 +119,9 @@ var BsGoods = /*#__PURE__*/_createClass(function BsGoods(options) {
|
|
|
167
119
|
this.formField = "".concat(options.id, "_bsGoods");
|
|
168
120
|
this.type = options.type;
|
|
169
121
|
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
170
|
-
this.isCombinationComponent =
|
|
122
|
+
this.isCombinationComponent = true;
|
|
171
123
|
this.canSort = false;
|
|
172
|
-
this.children =
|
|
124
|
+
this.children = ((options === null || options === void 0 ? void 0 : (_options$componentCon = options.componentConfig) === null || _options$componentCon === void 0 ? void 0 : _options$componentCon.showHeader) || []).reduce(function (prv, next) {
|
|
173
125
|
if (childHeaderMap[next]) {
|
|
174
126
|
prv.push(new childHeaderMap[next].component(_objectSpread(_objectSpread({}, options), {}, {
|
|
175
127
|
name: childHeaderMap[next].name,
|
|
@@ -177,7 +129,7 @@ var BsGoods = /*#__PURE__*/_createClass(function BsGoods(options) {
|
|
|
177
129
|
})));
|
|
178
130
|
}
|
|
179
131
|
return prv;
|
|
180
|
-
}, [])
|
|
132
|
+
}, []);
|
|
181
133
|
this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
|
|
182
134
|
this.rules = this !== null && this !== void 0 && (_this$componentConfig2 = this.componentConfig) !== null && _this$componentConfig2 !== void 0 && _this$componentConfig2.required ? [{
|
|
183
135
|
required: true,
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { ComponentInterface, PickOption, ColumnConfig, Record } from
|
|
2
|
-
import React from
|
|
3
|
-
import { ExpressData } from
|
|
4
|
-
import Express from
|
|
5
|
-
import ExpressCode from
|
|
1
|
+
import { ComponentInterface, PickOption, ColumnConfig, Record } from '../../../type';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { ExpressData } from '@kmkf-fe-packages/kmkf-utils';
|
|
4
|
+
import Express from '../../Express';
|
|
5
|
+
import ExpressCode from '../../ExpressCode';
|
|
6
6
|
declare class BsLogistics implements ComponentInterface {
|
|
7
7
|
name: string;
|
|
8
8
|
id: string;
|
|
9
9
|
sortField: string;
|
|
10
10
|
type: string;
|
|
11
11
|
rules: any[];
|
|
12
|
-
componentConfig: ComponentInterface[
|
|
12
|
+
componentConfig: ComponentInterface['componentConfig'];
|
|
13
13
|
expressDateInstance: InstanceType<typeof ExpressData>;
|
|
14
14
|
express: Express;
|
|
15
15
|
expressCode: ExpressCode;
|
|
@@ -17,7 +17,7 @@ declare class BsLogistics implements ComponentInterface {
|
|
|
17
17
|
formField: string;
|
|
18
18
|
canSort: boolean;
|
|
19
19
|
children: ComponentInterface[];
|
|
20
|
-
dataType: ComponentInterface[
|
|
20
|
+
dataType: ComponentInterface['dataType'];
|
|
21
21
|
constructor(options: PickOption);
|
|
22
22
|
editRender: (p: any) => React.JSX.Element;
|
|
23
23
|
renderClient: (record: Record) => React.JSX.Element;
|
|
@@ -8,9 +8,9 @@ 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
|
|
12
|
-
import { ExpressData } from
|
|
13
|
-
import { ExpressLogistics } from
|
|
11
|
+
import React from 'react';
|
|
12
|
+
import { ExpressData } from '@kmkf-fe-packages/kmkf-utils';
|
|
13
|
+
import { ExpressLogistics } from '@kmkf-fe-packages/basic-components';
|
|
14
14
|
import Express from "../../Express";
|
|
15
15
|
import ExpressCode from "../../ExpressCode";
|
|
16
16
|
import GetFormItem from "../../GetFormItem";
|
|
@@ -66,9 +66,9 @@ var BsLogistics = /*#__PURE__*/_createClass(function BsLogistics(options) {
|
|
|
66
66
|
});
|
|
67
67
|
_defineProperty(this, "filterConfig", function (item) {
|
|
68
68
|
return [_this.express.filterConfig(_objectSpread(_objectSpread({}, item), {}, {
|
|
69
|
-
subKey:
|
|
69
|
+
subKey: 'bsLogisticsCompany'
|
|
70
70
|
})), _this.expressCode.filterConfig(_objectSpread(_objectSpread({}, item), {}, {
|
|
71
|
-
subKey:
|
|
71
|
+
subKey: 'bsLogisticsCode'
|
|
72
72
|
}))];
|
|
73
73
|
});
|
|
74
74
|
this.name = options.name;
|
|
@@ -79,33 +79,33 @@ var BsLogistics = /*#__PURE__*/_createClass(function BsLogistics(options) {
|
|
|
79
79
|
this.componentConfig = options.componentConfig;
|
|
80
80
|
this.expressDateInstance = ExpressData.getInstance();
|
|
81
81
|
this.express = new Express(_objectSpread(_objectSpread({}, options), {}, {
|
|
82
|
-
name:
|
|
82
|
+
name: '快递物流公司',
|
|
83
83
|
id: "".concat(this.id, "_bsLogisticsCompany")
|
|
84
84
|
}));
|
|
85
85
|
this.expressCode = new ExpressCode(_objectSpread(_objectSpread({}, options), {}, {
|
|
86
|
-
name:
|
|
86
|
+
name: '快递物流单号',
|
|
87
87
|
id: "".concat(this.id, "_bsLogisticsCode")
|
|
88
88
|
}));
|
|
89
89
|
this.isCombinationComponent = true;
|
|
90
90
|
this.canSort = false;
|
|
91
|
-
this.dataType =
|
|
91
|
+
this.dataType = 'object';
|
|
92
92
|
this.children = [this.express, this.expressCode];
|
|
93
93
|
this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
|
|
94
94
|
validator: function validator(_, value) {
|
|
95
95
|
var _this$componentConfig4;
|
|
96
96
|
if ((_this$componentConfig4 = _this.componentConfig) !== null && _this$componentConfig4 !== void 0 && _this$componentConfig4.isSingle) {
|
|
97
97
|
var _this$componentConfig5, _this$componentConfig6;
|
|
98
|
-
if (((_this$componentConfig5 = _this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.
|
|
99
|
-
return Promise.reject(new Error(
|
|
100
|
-
} else if (((_this$componentConfig6 = _this.componentConfig) === null || _this$componentConfig6 === void 0 ? void 0 : _this$componentConfig6.
|
|
101
|
-
return Promise.reject(new Error(
|
|
98
|
+
if (((_this$componentConfig5 = _this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.showHeader) === 'EXPRESS_COMPANY' && !(value !== null && value !== void 0 && value.company)) {
|
|
99
|
+
return Promise.reject(new Error('请选择物流公司'));
|
|
100
|
+
} else if (((_this$componentConfig6 = _this.componentConfig) === null || _this$componentConfig6 === void 0 ? void 0 : _this$componentConfig6.showHeader) === 'EXPRESS_WAYBILL_CODE' && !(value !== null && value !== void 0 && value.order)) {
|
|
101
|
+
return Promise.reject(new Error('请输入物流单号'));
|
|
102
102
|
}
|
|
103
103
|
} else {
|
|
104
104
|
if (!(value !== null && value !== void 0 && value.company)) {
|
|
105
|
-
return Promise.reject(new Error(
|
|
105
|
+
return Promise.reject(new Error('请选择物流公司'));
|
|
106
106
|
}
|
|
107
107
|
if (!(value !== null && value !== void 0 && value.order)) {
|
|
108
|
-
return Promise.reject(new Error(
|
|
108
|
+
return Promise.reject(new Error('请输入物流单号'));
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
111
|
return Promise.resolve();
|
|
@@ -1,6 +1,12 @@
|
|
|
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
2
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
3
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
5
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
6
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
7
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
8
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
9
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
4
10
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
5
11
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
6
12
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
@@ -15,9 +21,44 @@ import ItemView from "../../../commonComponents/ItemView";
|
|
|
15
21
|
import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
|
|
16
22
|
import { BsReissue as Reissue } from "@kmkf-fe-packages/basic-components";
|
|
17
23
|
import { SYMBOL } from "../../../constant";
|
|
18
|
-
import { BsType, BsMemo,
|
|
24
|
+
import { BsType, BsMemo, BsHeaderPic, BsHeaderName, BsHeaderCode, BsHeaderSku, BsHeaderMoney, BsHeaderNumber, BsHeaderShare, BsHeaderType } from "../common/index";
|
|
25
|
+
var childHeaderMap = {
|
|
26
|
+
pic: {
|
|
27
|
+
component: BsHeaderPic,
|
|
28
|
+
name: "图片"
|
|
29
|
+
},
|
|
30
|
+
name: {
|
|
31
|
+
component: BsHeaderName,
|
|
32
|
+
name: "名称"
|
|
33
|
+
},
|
|
34
|
+
code: {
|
|
35
|
+
component: BsHeaderCode,
|
|
36
|
+
name: "编码"
|
|
37
|
+
},
|
|
38
|
+
sku: {
|
|
39
|
+
component: BsHeaderSku,
|
|
40
|
+
name: "sku编码"
|
|
41
|
+
},
|
|
42
|
+
money: {
|
|
43
|
+
component: BsHeaderMoney,
|
|
44
|
+
name: "实付金额"
|
|
45
|
+
},
|
|
46
|
+
number: {
|
|
47
|
+
component: BsHeaderNumber,
|
|
48
|
+
name: "数量"
|
|
49
|
+
},
|
|
50
|
+
share: {
|
|
51
|
+
component: BsHeaderShare,
|
|
52
|
+
name: "分摊价"
|
|
53
|
+
},
|
|
54
|
+
type: {
|
|
55
|
+
component: BsHeaderType,
|
|
56
|
+
name: "赠品类型"
|
|
57
|
+
}
|
|
58
|
+
};
|
|
19
59
|
var BsReissue = /*#__PURE__*/_createClass(function BsReissue(options) {
|
|
20
60
|
var _this = this,
|
|
61
|
+
_options$componentCon,
|
|
21
62
|
_this$componentConfig2;
|
|
22
63
|
_classCallCheck(this, BsReissue);
|
|
23
64
|
_defineProperty(this, "name", void 0);
|
|
@@ -100,7 +141,7 @@ var BsReissue = /*#__PURE__*/_createClass(function BsReissue(options) {
|
|
|
100
141
|
this.formField = "".concat(options.id);
|
|
101
142
|
this.type = options.type;
|
|
102
143
|
this.effects = options === null || options === void 0 ? void 0 : options.effects;
|
|
103
|
-
this.isCombinationComponent =
|
|
144
|
+
this.isCombinationComponent = true;
|
|
104
145
|
this.canSort = false;
|
|
105
146
|
this.children = [new BsType(_objectSpread(_objectSpread({}, options), {}, {
|
|
106
147
|
id: "".concat(options.id, "_bsReissueType"),
|
|
@@ -108,31 +149,15 @@ var BsReissue = /*#__PURE__*/_createClass(function BsReissue(options) {
|
|
|
108
149
|
})), new BsMemo(_objectSpread(_objectSpread({}, options), {}, {
|
|
109
150
|
id: "".concat(options.id, "_bsReissueType"),
|
|
110
151
|
name: "补发备注"
|
|
111
|
-
}))
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
})), new BsChildSku(_objectSpread(_objectSpread({}, options), {}, {
|
|
121
|
-
name: "sku编码",
|
|
122
|
-
id: "".concat(options.id, "_bsReissueGoods")
|
|
123
|
-
})), new BsChildMoney(_objectSpread(_objectSpread({}, options), {}, {
|
|
124
|
-
name: "实付金额",
|
|
125
|
-
id: "".concat(options.id, "_bsReissueGoods")
|
|
126
|
-
})), new BsChildNumber(_objectSpread(_objectSpread({}, options), {}, {
|
|
127
|
-
name: "数量",
|
|
128
|
-
id: "".concat(options.id, "_bsReissueGoods")
|
|
129
|
-
})), new BsChildShare(_objectSpread(_objectSpread({}, options), {}, {
|
|
130
|
-
name: "分摊价",
|
|
131
|
-
id: "".concat(options.id, "_bsReissueGoods")
|
|
132
|
-
})), new BsChildType(_objectSpread(_objectSpread({}, options), {}, {
|
|
133
|
-
name: "赠品类型",
|
|
134
|
-
id: "".concat(options.id, "_bsReissueGoods")
|
|
135
|
-
}))];
|
|
152
|
+
}))].concat(_toConsumableArray(((options === null || options === void 0 ? void 0 : (_options$componentCon = options.componentConfig) === null || _options$componentCon === void 0 ? void 0 : _options$componentCon.showHeader) || []).reduce(function (prv, next) {
|
|
153
|
+
if (childHeaderMap[next]) {
|
|
154
|
+
prv.push(new childHeaderMap[next].component(_objectSpread(_objectSpread({}, options), {}, {
|
|
155
|
+
name: childHeaderMap[next].name,
|
|
156
|
+
id: "".concat(options.id, "_bsReissueGoods")
|
|
157
|
+
})));
|
|
158
|
+
}
|
|
159
|
+
return prv;
|
|
160
|
+
}, [])));
|
|
136
161
|
this.componentConfig = options === null || options === void 0 ? void 0 : options.componentConfig;
|
|
137
162
|
this.rules = this !== null && this !== void 0 && (_this$componentConfig2 = this.componentConfig) !== null && _this$componentConfig2 !== void 0 && _this$componentConfig2.required ? [{
|
|
138
163
|
required: true,
|
|
@@ -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 BsChildPic 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
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
18
18
|
renderPc: (value: unknown, record: Record) => React.JSX.Element[];
|
|
@@ -5,10 +5,10 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
5
5
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6
6
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
7
7
|
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
8
|
-
import React from
|
|
8
|
+
import React from 'react';
|
|
9
9
|
import ItemView from "../../../commonComponents/ItemView";
|
|
10
10
|
import { BsGoodPic } from "../../Common";
|
|
11
|
-
import { isNull } from
|
|
11
|
+
import { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
12
12
|
var BsChildPic = /*#__PURE__*/_createClass(function BsChildPic(options) {
|
|
13
13
|
var _this = this;
|
|
14
14
|
_classCallCheck(this, BsChildPic);
|
|
@@ -33,7 +33,7 @@ var BsChildPic = /*#__PURE__*/_createClass(function BsChildPic(options) {
|
|
|
33
33
|
});
|
|
34
34
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
35
35
|
var _BsGoodPic;
|
|
36
|
-
return (_BsGoodPic = BsGoodPic(_this.getComponentValue(record))) !== null && _BsGoodPic !== void 0 ? _BsGoodPic :
|
|
36
|
+
return (_BsGoodPic = BsGoodPic(_this.getComponentValue(record))) !== null && _BsGoodPic !== void 0 ? _BsGoodPic : '--';
|
|
37
37
|
});
|
|
38
38
|
_defineProperty(this, "renderLog", function (r) {
|
|
39
39
|
if (isNull(r === null || r === void 0 ? void 0 : r[_this.id])) return null;
|
|
@@ -41,14 +41,14 @@ var BsChildPic = /*#__PURE__*/_createClass(function BsChildPic(options) {
|
|
|
41
41
|
});
|
|
42
42
|
_defineProperty(this, "getComponentValue", function (r) {
|
|
43
43
|
var list = ((r === null || r === void 0 ? void 0 : r[_this.id]) || []).reduce(function (prv, next) {
|
|
44
|
-
next[
|
|
44
|
+
next['pic'] && prv.push(next['pic']);
|
|
45
45
|
return prv;
|
|
46
46
|
}, []);
|
|
47
47
|
return list;
|
|
48
48
|
});
|
|
49
49
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
50
50
|
var _this$getComponentVal;
|
|
51
|
-
return (_this$getComponentVal = _this.getComponentValue(record).join(
|
|
51
|
+
return (_this$getComponentVal = _this.getComponentValue(record).join(',')) !== null && _this$getComponentVal !== void 0 ? _this$getComponentVal : '--';
|
|
52
52
|
});
|
|
53
53
|
_defineProperty(this, "editRender", function () {
|
|
54
54
|
return null;
|
|
@@ -62,11 +62,11 @@ var BsChildPic = /*#__PURE__*/_createClass(function BsChildPic(options) {
|
|
|
62
62
|
this.formField = options.id;
|
|
63
63
|
this.type = options.type;
|
|
64
64
|
this.componentConfig = options.componentConfig;
|
|
65
|
-
this.align =
|
|
65
|
+
this.align = 'left';
|
|
66
66
|
this.width = 200;
|
|
67
67
|
this.isCombinationComponent = false;
|
|
68
68
|
this.canSort = true;
|
|
69
|
-
this.dataType =
|
|
69
|
+
this.dataType = 'string';
|
|
70
70
|
this.children = [];
|
|
71
71
|
});
|
|
72
72
|
export default BsChildPic;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { default as BsType } from
|
|
2
|
-
export { default as BsMemo } from
|
|
3
|
-
export { default as
|
|
4
|
-
export { default as
|
|
5
|
-
export { default as
|
|
6
|
-
export { default as
|
|
7
|
-
export { default as
|
|
8
|
-
export { default as
|
|
9
|
-
export { default as
|
|
10
|
-
export { default as
|
|
1
|
+
export { default as BsType } from './BsType';
|
|
2
|
+
export { default as BsMemo } from './BsMemo';
|
|
3
|
+
export { default as BsHeaderPic } from './BsHeaderPic';
|
|
4
|
+
export { default as BsHeaderName } from './BsHeaderName';
|
|
5
|
+
export { default as BsHeaderCode } from './BsHeaderCode';
|
|
6
|
+
export { default as BsHeaderSku } from './BsHeaderSku';
|
|
7
|
+
export { default as BsHeaderMoney } from './BsHeaderMoney';
|
|
8
|
+
export { default as BsHeaderNumber } from './BsHeaderNumber';
|
|
9
|
+
export { default as BsHeaderShare } from './BsHeaderShare';
|
|
10
|
+
export { default as BsHeaderType } from './BsHeaderType';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export { default as BsType } from "./BsType";
|
|
2
2
|
export { default as BsMemo } from "./BsMemo";
|
|
3
|
-
export { default as
|
|
4
|
-
export { default as
|
|
5
|
-
export { default as
|
|
6
|
-
export { default as
|
|
7
|
-
export { default as
|
|
8
|
-
export { default as
|
|
9
|
-
export { default as
|
|
10
|
-
export { default as
|
|
3
|
+
export { default as BsHeaderPic } from "./BsHeaderPic";
|
|
4
|
+
export { default as BsHeaderName } from "./BsHeaderName";
|
|
5
|
+
export { default as BsHeaderCode } from "./BsHeaderCode";
|
|
6
|
+
export { default as BsHeaderSku } from "./BsHeaderSku";
|
|
7
|
+
export { default as BsHeaderMoney } from "./BsHeaderMoney";
|
|
8
|
+
export { default as BsHeaderNumber } from "./BsHeaderNumber";
|
|
9
|
+
export { default as BsHeaderShare } from "./BsHeaderShare";
|
|
10
|
+
export { default as BsHeaderType } from "./BsHeaderType";
|
|
@@ -139,7 +139,7 @@ var BasicCascader = /*#__PURE__*/_createClass(function BasicCascader(_options) {
|
|
|
139
139
|
this.children = [];
|
|
140
140
|
this.isCombinationComponent = false;
|
|
141
141
|
this.canSort = true;
|
|
142
|
-
this.dataType = '
|
|
142
|
+
this.dataType = 'array';
|
|
143
143
|
}
|
|
144
144
|
|
|
145
145
|
/**
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
declare const DateType: ['DATE', 'DATE_TIME', 'DATE_RANGE', 'DATE_TIME_RANGE'];
|
|
3
3
|
export declare type ButtonType = typeof DateType[number];
|
|
4
4
|
export interface ApaasDate {
|
|
5
5
|
dateType?: ButtonType;
|
|
6
6
|
[propName: string]: any;
|
|
7
7
|
}
|
|
8
|
-
declare const Date: (props: ApaasDate) => JSX.Element;
|
|
8
|
+
declare const Date: (props: ApaasDate) => React.JSX.Element;
|
|
9
9
|
export default Date;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const ItemEncode: (props: JSX.IntrinsicAttributes & any) => JSX.Element;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const ItemEncode: (props: JSX.IntrinsicAttributes & any) => React.JSX.Element;
|
|
3
3
|
export default ItemEncode;
|
|
@@ -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 ItemId: (props: JSX.IntrinsicAttributes & GoodsProps) => JSX.Element;
|
|
3
|
+
declare const ItemId: (props: JSX.IntrinsicAttributes & GoodsProps) => React.JSX.Element;
|
|
4
4
|
export default ItemId;
|
|
@@ -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 ItemSelect: (props: JSX.IntrinsicAttributes & GoodsProps) => JSX.Element;
|
|
3
|
+
declare const ItemSelect: (props: JSX.IntrinsicAttributes & GoodsProps) => React.JSX.Element;
|
|
4
4
|
export default ItemSelect;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const ExpressCompany: (props: any) => JSX.Element;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const ExpressCompany: (props: any) => React.JSX.Element;
|
|
3
3
|
export default ExpressCompany;
|
|
@@ -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,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/type.d.ts
CHANGED
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.29",
|
|
4
4
|
"module": "dist/esm/index.js",
|
|
5
5
|
"typings": "dist/esm/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"father": "^4.1.7"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@kmkf-fe-packages/basic-components": "^0.7.15-alpha.
|
|
29
|
+
"@kmkf-fe-packages/basic-components": "^0.7.15-alpha.28",
|
|
30
30
|
"@kmkf-fe-packages/kmkf-utils": "^0.7.15-alpha.27"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"gitHooks": {
|
|
41
41
|
"pre-commit": "lint-staged"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "2f27e392661410eccae3ef58381ef51f2157588e"
|
|
44
44
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|