@kmkf-fe-packages/services-components 1.22.1-beta.19 → 1.22.1-beta.4
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/BsGoods/index.js +1 -5
- package/dist/esm/components/BS/BsSystemOrder/index.js +1 -1
- package/dist/esm/components/BS/common/BsHeaderGood.js +1 -15
- package/dist/esm/components/Common/index.js +4 -90
- package/dist/esm/components/CommonMultiStatus/index.d.ts +0 -1
- package/dist/esm/components/CommonMultiStatus/index.js +14 -43
- package/dist/esm/components/Radio/index.js +2 -3
- package/dist/esm/factory.d.ts +1 -1
- package/dist/esm/factory.js +0 -1
- package/package.json +4 -4
|
@@ -39,7 +39,6 @@ var BsGoods = /*#__PURE__*/_createClass(function BsGoods(options) {
|
|
|
39
39
|
id: _this.id,
|
|
40
40
|
label: _this.name,
|
|
41
41
|
value: /*#__PURE__*/React.createElement(BsGoodsTable, {
|
|
42
|
-
type: _this.type,
|
|
43
42
|
list: (record === null || record === void 0 ? void 0 : (_record = record["".concat(_this.id)]) === null || _record === void 0 ? void 0 : _record.bsGoods) || [],
|
|
44
43
|
showHeader: ((_this$componentConfig = _this.componentConfig) === null || _this$componentConfig === void 0 ? void 0 : _this$componentConfig.showHeader) || []
|
|
45
44
|
})
|
|
@@ -52,7 +51,6 @@ var BsGoods = /*#__PURE__*/_createClass(function BsGoods(options) {
|
|
|
52
51
|
var _this$componentConfig2;
|
|
53
52
|
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_bsGoods")])) return null;
|
|
54
53
|
return /*#__PURE__*/React.createElement(BsGoodsTable, {
|
|
55
|
-
type: _this.type,
|
|
56
54
|
list: (r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_bsGoods")]) || [],
|
|
57
55
|
showHeader: ((_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.showHeader) || []
|
|
58
56
|
});
|
|
@@ -73,9 +71,7 @@ var BsGoods = /*#__PURE__*/_createClass(function BsGoods(options) {
|
|
|
73
71
|
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
74
72
|
display: p === null || p === void 0 ? void 0 : p.display,
|
|
75
73
|
tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip : '',
|
|
76
|
-
component: /*#__PURE__*/React.createElement(Goods, _extends({
|
|
77
|
-
type: _this.type
|
|
78
|
-
}, _this.componentConfig, {
|
|
74
|
+
component: /*#__PURE__*/React.createElement(Goods, _extends({}, _this.componentConfig, {
|
|
79
75
|
maxLength: ((_this$componentConfig5 = _this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.maxLength) || 20,
|
|
80
76
|
shopId: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopId,
|
|
81
77
|
shopList: ((_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.shopList) || [],
|
|
@@ -123,18 +123,6 @@ var HeaderMap = {
|
|
|
123
123
|
name: "SKU 信息",
|
|
124
124
|
key: "propertiesName",
|
|
125
125
|
width: 140
|
|
126
|
-
},
|
|
127
|
-
batch: {
|
|
128
|
-
component: BsHeaderChild,
|
|
129
|
-
name: "批次号",
|
|
130
|
-
key: "batch",
|
|
131
|
-
width: 140
|
|
132
|
-
},
|
|
133
|
-
expireDate: {
|
|
134
|
-
component: BsHeaderChild,
|
|
135
|
-
name: "有效期",
|
|
136
|
-
key: "expireDate",
|
|
137
|
-
width: 140
|
|
138
126
|
}
|
|
139
127
|
|
|
140
128
|
// title: '商品名称',
|
|
@@ -232,9 +220,7 @@ var BsHeaderGods = /*#__PURE__*/_createClass(function BsHeaderGods(options) {
|
|
|
232
220
|
money: "实付金额",
|
|
233
221
|
number: "数量",
|
|
234
222
|
share: "分摊价",
|
|
235
|
-
type: "赠品类型"
|
|
236
|
-
batch: "批次号",
|
|
237
|
-
expireDate: "有效期"
|
|
223
|
+
type: "赠品类型"
|
|
238
224
|
};
|
|
239
225
|
this.children = _toConsumableArray(Object.keys(HeaderMap).reduce(function (prv, key) {
|
|
240
226
|
var _options$componentCon, _options$componentCon2;
|
|
@@ -239,16 +239,11 @@ export var GoodImage = function GoodImage(_ref5) {
|
|
|
239
239
|
})) : null;
|
|
240
240
|
};
|
|
241
241
|
var content = function content(item, index) {
|
|
242
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
243
|
-
style: {
|
|
244
|
-
maxHeight: '300px',
|
|
245
|
-
overflowY: 'auto'
|
|
246
|
-
}
|
|
247
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
242
|
+
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
|
|
248
243
|
style: {
|
|
249
244
|
textAlign: 'center'
|
|
250
245
|
}
|
|
251
|
-
}, "\u5305\u88F9".concat(index + 1, "\u5546\u54C1\u4FE1\u606F")
|
|
246
|
+
}, "\u5305\u88F9".concat(index + 1, "\u5546\u54C1\u4FE1\u606F")), ((item === null || item === void 0 ? void 0 : item.items) || []).map(function (t, index) {
|
|
252
247
|
return /*#__PURE__*/React.createElement("div", {
|
|
253
248
|
key: index
|
|
254
249
|
}, /*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Image, {
|
|
@@ -264,7 +259,7 @@ export var JstGoodImage = function JstGoodImage(_ref6) {
|
|
|
264
259
|
type = _ref6.type,
|
|
265
260
|
_ref6$platformType = _ref6.platformType,
|
|
266
261
|
platformType = _ref6$platformType === void 0 ? 'default' : _ref6$platformType;
|
|
267
|
-
var getSendName = function getSendName(item) {
|
|
262
|
+
var getSendName = function getSendName(item, platformType) {
|
|
268
263
|
return SendDataCenter.getInstance(platformType).getSendNameByCode(item.sendName);
|
|
269
264
|
};
|
|
270
265
|
return list !== null && list !== void 0 && list.length ? (list || []).map(function (item, index) {
|
|
@@ -285,7 +280,7 @@ export var JstGoodImage = function JstGoodImage(_ref6) {
|
|
|
285
280
|
text: item.logisticsCode
|
|
286
281
|
})) : company ? company : item.logisticsCode ? /*#__PURE__*/React.createElement(CopyText, {
|
|
287
282
|
text: item.logisticsCode
|
|
288
|
-
}) : null) : null, type === 2 ? /*#__PURE__*/React.createElement("span", null, item.supplyName && item.supplyId ? [item.supplyId, item.supplyName].join('/') : item.supplyId ? item.supplyId : item.supplyName) : null, type === 3 ? /*#__PURE__*/React.createElement("span", null, item.sendName && item.sendId ? [item.sendId, getSendName(item)].join("/") : item.sendId ? item.sendId : getSendName(item)) : null, type === 4 ? /*#__PURE__*/React.createElement("span", null, (item === null || item === void 0 ? void 0 : item.deliveryNo) || '') : null));
|
|
283
|
+
}) : null) : null, type === 2 ? /*#__PURE__*/React.createElement("span", null, item.supplyName && item.supplyId ? [item.supplyId, item.supplyName].join('/') : item.supplyId ? item.supplyId : item.supplyName) : null, type === 3 ? /*#__PURE__*/React.createElement("span", null, item.sendName && item.sendId ? [item.sendId, getSendName(item, 'platformType')].join("/") : item.sendId ? item.sendId : getSendName(item, 'platformType')) : null, type === 4 ? /*#__PURE__*/React.createElement("span", null, (item === null || item === void 0 ? void 0 : item.deliveryNo) || '') : null));
|
|
289
284
|
}) : null;
|
|
290
285
|
};
|
|
291
286
|
export var BsExpressRender = function BsExpressRender(_ref7) {
|
|
@@ -905,87 +900,6 @@ export var BsGoodsTable = function BsGoodsTable(_ref11) {
|
|
|
905
900
|
}];
|
|
906
901
|
}
|
|
907
902
|
break;
|
|
908
|
-
case 'BS_GOODS':
|
|
909
|
-
columns = [{
|
|
910
|
-
dataIndex: 'mark',
|
|
911
|
-
title: "\u5546\u54C1\u6807\u8BB0",
|
|
912
|
-
align: 'center',
|
|
913
|
-
ellipsis: true,
|
|
914
|
-
width: 100
|
|
915
|
-
}, {
|
|
916
|
-
dataIndex: 'skuName',
|
|
917
|
-
title: "".concat(text, "sku\u540D\u79F0"),
|
|
918
|
-
align: 'center',
|
|
919
|
-
ellipsis: true,
|
|
920
|
-
width: 200
|
|
921
|
-
}, {
|
|
922
|
-
dataIndex: 'sku',
|
|
923
|
-
title: "".concat(text, "sku\u7F16\u7801"),
|
|
924
|
-
align: 'center',
|
|
925
|
-
ellipsis: true,
|
|
926
|
-
width: 100
|
|
927
|
-
}, {
|
|
928
|
-
dataIndex: 'name',
|
|
929
|
-
title: "".concat(text, "\u540D\u79F0"),
|
|
930
|
-
align: 'center',
|
|
931
|
-
ellipsis: true,
|
|
932
|
-
width: 200
|
|
933
|
-
}, {
|
|
934
|
-
dataIndex: 'pic',
|
|
935
|
-
title: "\u56FE\u7247",
|
|
936
|
-
align: 'center',
|
|
937
|
-
ellipsis: true,
|
|
938
|
-
width: 100,
|
|
939
|
-
render: function render(val) {
|
|
940
|
-
return /*#__PURE__*/React.createElement(Image, {
|
|
941
|
-
width: 60,
|
|
942
|
-
src: val
|
|
943
|
-
});
|
|
944
|
-
}
|
|
945
|
-
}, {
|
|
946
|
-
dataIndex: 'code',
|
|
947
|
-
title: "".concat(text, "\u7F16\u7801"),
|
|
948
|
-
align: 'center',
|
|
949
|
-
ellipsis: true,
|
|
950
|
-
width: 100
|
|
951
|
-
}, {
|
|
952
|
-
dataIndex: 'money',
|
|
953
|
-
title: "\u5B9E\u4ED8\u91D1\u989D",
|
|
954
|
-
align: 'center',
|
|
955
|
-
ellipsis: true,
|
|
956
|
-
width: 100
|
|
957
|
-
}, {
|
|
958
|
-
dataIndex: 'number',
|
|
959
|
-
title: "".concat(text, "\u6570\u91CF"),
|
|
960
|
-
align: 'center',
|
|
961
|
-
ellipsis: true,
|
|
962
|
-
width: 100
|
|
963
|
-
}, {
|
|
964
|
-
dataIndex: 'share',
|
|
965
|
-
title: "\u5206\u644A\u4EF7",
|
|
966
|
-
align: 'center',
|
|
967
|
-
ellipsis: true,
|
|
968
|
-
width: 70
|
|
969
|
-
}, {
|
|
970
|
-
dataIndex: 'type',
|
|
971
|
-
title: "\u8D60\u54C1\u7C7B\u578B",
|
|
972
|
-
align: 'center',
|
|
973
|
-
ellipsis: true,
|
|
974
|
-
width: 100
|
|
975
|
-
}, {
|
|
976
|
-
dataIndex: 'batch',
|
|
977
|
-
title: "\u6279\u6B21\u53F7",
|
|
978
|
-
align: 'center',
|
|
979
|
-
ellipsis: true,
|
|
980
|
-
width: 100
|
|
981
|
-
}, {
|
|
982
|
-
dataIndex: 'expireDate',
|
|
983
|
-
title: "\u6709\u6548\u671F",
|
|
984
|
-
align: 'center',
|
|
985
|
-
ellipsis: true,
|
|
986
|
-
width: 100
|
|
987
|
-
}];
|
|
988
|
-
break;
|
|
989
903
|
default:
|
|
990
904
|
columns = [{
|
|
991
905
|
dataIndex: 'mark',
|
|
@@ -13,7 +13,6 @@ declare class CommonMultiStatus implements ComponentInterface {
|
|
|
13
13
|
canSort: boolean;
|
|
14
14
|
children: ComponentInterface[];
|
|
15
15
|
dataType: ComponentInterface['dataType'];
|
|
16
|
-
isSingleValue: boolean;
|
|
17
16
|
constructor(options: PickOption);
|
|
18
17
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
19
18
|
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
@@ -74,40 +74,13 @@ var typeMap = {
|
|
|
74
74
|
valueKey: 'status',
|
|
75
75
|
idKey: 'systemOrderId',
|
|
76
76
|
failValue: '失败'
|
|
77
|
-
},
|
|
78
|
-
BS_E3_WAREHOUSING_STATUS: {
|
|
79
|
-
options: [{
|
|
80
|
-
value: '2',
|
|
81
|
-
label: '已入库',
|
|
82
|
-
color: '#52c41a'
|
|
83
|
-
}, {
|
|
84
|
-
value: '1',
|
|
85
|
-
label: '部分入库',
|
|
86
|
-
color: '#e7780f'
|
|
87
|
-
}, {
|
|
88
|
-
value: '0',
|
|
89
|
-
label: '未入库',
|
|
90
|
-
color: '#ff4d4f'
|
|
91
|
-
}, {
|
|
92
|
-
value: '3',
|
|
93
|
-
label: '已退回给客户',
|
|
94
|
-
color: '#1B5BF3'
|
|
95
|
-
}],
|
|
96
|
-
key: 'bsE3InStockStatusItemList',
|
|
97
|
-
code: 'bsE3InStockStatusList',
|
|
98
|
-
name: '商品入库状态',
|
|
99
|
-
type: 2,
|
|
100
|
-
valueKey: 'status',
|
|
101
|
-
idKey: 'systemOrderId',
|
|
102
|
-
failValue: '失败'
|
|
103
77
|
}
|
|
104
78
|
};
|
|
105
79
|
var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(options) {
|
|
106
80
|
var _this = this,
|
|
107
81
|
_typeMap$options$type,
|
|
108
82
|
_typeMap$options$type2,
|
|
109
|
-
_this$
|
|
110
|
-
_this$componentConfig6;
|
|
83
|
+
_this$componentConfig8;
|
|
111
84
|
_classCallCheck(this, CommonMultiStatus);
|
|
112
85
|
_defineProperty(this, "name", void 0);
|
|
113
86
|
_defineProperty(this, "id", void 0);
|
|
@@ -121,9 +94,8 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
|
|
|
121
94
|
_defineProperty(this, "canSort", void 0);
|
|
122
95
|
_defineProperty(this, "children", void 0);
|
|
123
96
|
_defineProperty(this, "dataType", void 0);
|
|
124
|
-
_defineProperty(this, "isSingleValue", void 0);
|
|
125
97
|
_defineProperty(this, "renderClient", function (record) {
|
|
126
|
-
var _typeMap$_this$type, _typeMap$_this$type2, _typeMap$_this$type3;
|
|
98
|
+
var _typeMap$_this$type, _typeMap$_this$type2, _typeMap$_this$type3, _this$componentConfig;
|
|
127
99
|
var isShow = Array.isArray(record === null || record === void 0 ? void 0 : record[_this.id]) ? some(record === null || record === void 0 ? void 0 : record[_this.id], function (item) {
|
|
128
100
|
return !isNull(item);
|
|
129
101
|
}) : false;
|
|
@@ -135,12 +107,12 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
|
|
|
135
107
|
valueKey: (_typeMap$_this$type = typeMap[_this.type]) === null || _typeMap$_this$type === void 0 ? void 0 : _typeMap$_this$type.valueKey,
|
|
136
108
|
failValue: (_typeMap$_this$type2 = typeMap[_this.type]) === null || _typeMap$_this$type2 === void 0 ? void 0 : _typeMap$_this$type2.failValue,
|
|
137
109
|
options: (_typeMap$_this$type3 = typeMap[_this.type]) === null || _typeMap$_this$type3 === void 0 ? void 0 : _typeMap$_this$type3.options,
|
|
138
|
-
isShowPopover:
|
|
110
|
+
isShowPopover: ((_this$componentConfig = _this.componentConfig) === null || _this$componentConfig === void 0 ? void 0 : _this$componentConfig.belongType) !== "wdt"
|
|
139
111
|
})
|
|
140
112
|
}) : null;
|
|
141
113
|
});
|
|
142
114
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
143
|
-
var _typeMap$_this$type4, _typeMap$_this$type5, _typeMap$_this$type6, _typeMap$_this$type7;
|
|
115
|
+
var _typeMap$_this$type4, _typeMap$_this$type5, _typeMap$_this$type6, _typeMap$_this$type7, _this$componentConfig2;
|
|
144
116
|
var list = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat((_typeMap$_this$type4 = typeMap[_this.type]) === null || _typeMap$_this$type4 === void 0 ? void 0 : _typeMap$_this$type4.key)];
|
|
145
117
|
//兼容多个商品
|
|
146
118
|
return /*#__PURE__*/React.createElement("span", {
|
|
@@ -152,7 +124,7 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
|
|
|
152
124
|
valueKey: (_typeMap$_this$type5 = typeMap[_this.type]) === null || _typeMap$_this$type5 === void 0 ? void 0 : _typeMap$_this$type5.valueKey,
|
|
153
125
|
failValue: (_typeMap$_this$type6 = typeMap[_this.type]) === null || _typeMap$_this$type6 === void 0 ? void 0 : _typeMap$_this$type6.failValue,
|
|
154
126
|
options: (_typeMap$_this$type7 = typeMap[_this.type]) === null || _typeMap$_this$type7 === void 0 ? void 0 : _typeMap$_this$type7.options,
|
|
155
|
-
isShowPopover:
|
|
127
|
+
isShowPopover: ((_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.belongType) !== "wdt"
|
|
156
128
|
}));
|
|
157
129
|
});
|
|
158
130
|
_defineProperty(this, "renderLog", function (r) {
|
|
@@ -169,12 +141,12 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
|
|
|
169
141
|
var _typeMap$_this$type10;
|
|
170
142
|
var list = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat((_typeMap$_this$type10 = typeMap[_this.type]) === null || _typeMap$_this$type10 === void 0 ? void 0 : _typeMap$_this$type10.key)];
|
|
171
143
|
return (list || []).map(function (item) {
|
|
172
|
-
var _typeMap$_this$type11, _typeMap$_this$type12, _typeMap$_this$type13, _typeMap$_this$type16, _typeMap$_this$type17;
|
|
144
|
+
var _typeMap$_this$type11, _typeMap$_this$type12, _typeMap$_this$type13, _this$componentConfig3, _typeMap$_this$type16, _typeMap$_this$type17;
|
|
173
145
|
var currentOption = (_typeMap$_this$type11 = typeMap[_this.type]) === null || _typeMap$_this$type11 === void 0 ? void 0 : (_typeMap$_this$type12 = _typeMap$_this$type11.options) === null || _typeMap$_this$type12 === void 0 ? void 0 : (_typeMap$_this$type13 = _typeMap$_this$type12.find) === null || _typeMap$_this$type13 === void 0 ? void 0 : _typeMap$_this$type13.call(_typeMap$_this$type12, function (option) {
|
|
174
146
|
var _typeMap$_this$type14;
|
|
175
147
|
return item[(_typeMap$_this$type14 = typeMap[_this.type]) === null || _typeMap$_this$type14 === void 0 ? void 0 : _typeMap$_this$type14.valueKey] === option.value;
|
|
176
148
|
});
|
|
177
|
-
if (_this.
|
|
149
|
+
if (((_this$componentConfig3 = _this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.belongType) === "wdt") {
|
|
178
150
|
var _typeMap$_this$type15;
|
|
179
151
|
return currentOption ? (currentOption === null || currentOption === void 0 ? void 0 : currentOption.label) || '' : (item === null || item === void 0 ? void 0 : item[(_typeMap$_this$type15 = typeMap[_this.type]) === null || _typeMap$_this$type15 === void 0 ? void 0 : _typeMap$_this$type15.valueKey]) || '';
|
|
180
152
|
}
|
|
@@ -182,15 +154,15 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
|
|
|
182
154
|
}).join(',');
|
|
183
155
|
});
|
|
184
156
|
_defineProperty(this, "editRender", function (p) {
|
|
185
|
-
var _this$
|
|
157
|
+
var _this$componentConfig4, _this$componentConfig5, _this$componentConfig6, _this$componentConfig7, _typeMap$_this$type18;
|
|
186
158
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
187
159
|
title: _this.name,
|
|
188
160
|
name: _this.id,
|
|
189
161
|
rules: _this.rules,
|
|
190
162
|
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
191
163
|
display: p === null || p === void 0 ? void 0 : p.display,
|
|
192
|
-
required: (_this$
|
|
193
|
-
tooltip: (_this$
|
|
164
|
+
required: (_this$componentConfig4 = (_this$componentConfig5 = _this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.required) !== null && _this$componentConfig4 !== void 0 ? _this$componentConfig4 : false,
|
|
165
|
+
tooltip: (_this$componentConfig6 = _this.componentConfig) !== null && _this$componentConfig6 !== void 0 && _this$componentConfig6.showTooltip ? (_this$componentConfig7 = _this.componentConfig) === null || _this$componentConfig7 === void 0 ? void 0 : _this$componentConfig7.tooltip : '',
|
|
194
166
|
component: /*#__PURE__*/React.createElement(Status, _extends({}, _this.componentConfig, {
|
|
195
167
|
type: (_typeMap$_this$type18 = typeMap[_this.type]) === null || _typeMap$_this$type18 === void 0 ? void 0 : _typeMap$_this$type18.type,
|
|
196
168
|
failValue: typeMap[_this.type].failValue
|
|
@@ -200,11 +172,11 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
|
|
|
200
172
|
_defineProperty(this, "filterConfig", function (item) {
|
|
201
173
|
var _typeMap$_this$type19, _item$templateConfig;
|
|
202
174
|
return {
|
|
203
|
-
searchDefaultConditions:
|
|
175
|
+
searchDefaultConditions: _this.type === 'WAREHOUSING_STATUS' ? SYMBOL.in : SYMBOL.like,
|
|
204
176
|
type: item.type,
|
|
205
177
|
id: "".concat(item.id, "_").concat((_typeMap$_this$type19 = typeMap[_this.type]) === null || _typeMap$_this$type19 === void 0 ? void 0 : _typeMap$_this$type19.code),
|
|
206
178
|
name: "".concat(_this.name),
|
|
207
|
-
filterComponentType:
|
|
179
|
+
filterComponentType: _this.type === 'WAREHOUSING_STATUS' ? 'MultipleSelect' : 'SelectInput',
|
|
208
180
|
props: {
|
|
209
181
|
options: item === null || item === void 0 ? void 0 : (_item$templateConfig = item.templateConfig) === null || _item$templateConfig === void 0 ? void 0 : _item$templateConfig.reasonList,
|
|
210
182
|
fieldNames: {
|
|
@@ -218,7 +190,7 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
|
|
|
218
190
|
return _filterFn.filterSplitComma(_filterFn.filterTableListItemColumnValue(i, item.id, (_typeMap$_this$type20 = typeMap[_this.type]) === null || _typeMap$_this$type20 === void 0 ? void 0 : _typeMap$_this$type20.code), value);
|
|
219
191
|
};
|
|
220
192
|
},
|
|
221
|
-
formatFilterValue:
|
|
193
|
+
formatFilterValue: _this.type === 'WAREHOUSING_STATUS' ? null : function (value) {
|
|
222
194
|
if (value.type === 'keywords') {
|
|
223
195
|
return value.keywords;
|
|
224
196
|
} else {
|
|
@@ -239,7 +211,7 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
|
|
|
239
211
|
this.canSort = false;
|
|
240
212
|
this.children = [];
|
|
241
213
|
this.dataType = 'object';
|
|
242
|
-
this.rules = (_this$
|
|
214
|
+
this.rules = (_this$componentConfig8 = this.componentConfig) !== null && _this$componentConfig8 !== void 0 && _this$componentConfig8.required ? [{
|
|
243
215
|
required: true,
|
|
244
216
|
validator: function validator(_, value) {
|
|
245
217
|
var hasNo = (value || []).some(function (item) {
|
|
@@ -254,6 +226,5 @@ var CommonMultiStatus = /*#__PURE__*/_createClass(function CommonMultiStatus(opt
|
|
|
254
226
|
}
|
|
255
227
|
}] : [];
|
|
256
228
|
this.align = 'left';
|
|
257
|
-
this.isSingleValue = ((_this$componentConfig6 = this.componentConfig) === null || _this$componentConfig6 === void 0 ? void 0 : _this$componentConfig6.belongType) === "wdt" || this.type === 'BS_E3_WAREHOUSING_STATUS';
|
|
258
229
|
});
|
|
259
230
|
export default CommonMultiStatus;
|
|
@@ -61,8 +61,7 @@ var BasicRadio = /*#__PURE__*/_createClass(function BasicRadio(options) {
|
|
|
61
61
|
if ((record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(typeMap[type])]) === undefined) {
|
|
62
62
|
return "--";
|
|
63
63
|
}
|
|
64
|
-
|
|
65
|
-
return "".concat(record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(typeMap[type])]).concat(other ? " " + other : "");
|
|
64
|
+
return "".concat(record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(typeMap[type])], " ").concat(get(record, "".concat(_this.id, "_").concat(typeMap[type], "Other"), ""));
|
|
66
65
|
});
|
|
67
66
|
_defineProperty(this, "getKeyByComponentType", function (type) {
|
|
68
67
|
return typeMap[type] || "";
|
|
@@ -83,7 +82,7 @@ var BasicRadio = /*#__PURE__*/_createClass(function BasicRadio(options) {
|
|
|
83
82
|
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
84
83
|
display: p === null || p === void 0 ? void 0 : p.display,
|
|
85
84
|
required: (_this$componentConfig = (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.required) !== null && _this$componentConfig !== void 0 ? _this$componentConfig : false,
|
|
86
|
-
tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip :
|
|
85
|
+
tooltip: (_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.showTooltip ? (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip : '',
|
|
87
86
|
component: /*#__PURE__*/React.createElement(ApaasRadio, _extends({}, _this.componentConfig, {
|
|
88
87
|
onChange: p === null || p === void 0 ? void 0 : p.onChange
|
|
89
88
|
}))
|
package/dist/esm/factory.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { JstLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, SubForm, CommonDataTime, TradeId, ShopName, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, FlowMarkSelect, FlowTag, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, PrevSubmitter, FlowCreator, Handler, CompletedUser, LogisticsInterception, LogisticsMoreInterception, LogisticsTrajectory, LogisticsMoreTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, WdtGoods, WdtReturn, WdtExchange, CommonInput, PaymentVoucherCode, Label, WdtReissue, AfterSalesOrderId, BsE3Goods, BsE3Reissue } from "./index";
|
|
2
2
|
import { PickOption } from "./type";
|
|
3
|
-
export declare const factory: (type: string, options: PickOption) =>
|
|
3
|
+
export declare const factory: (type: string, options: PickOption) => BsSystemOrder | ItemEnCode | BasicInput | JstSendGood | MsgStatus | BasicPicture | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicRadio | BasicTextArea | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | SubForm | CommonDataTime | TradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | JstLogistics | JstItemSelect | JstSupply | BsGoods | BsE3Goods | BsE3Reissue | BsExchange | BsReissue | BsReturn | BsLogistics | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsMoreInterception | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | StatusSelect | Calculation | CommonSystemOrder | CommonMultiStatus | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting | NodeInput | FlowWorkOrderStatus | WdtGoods | WdtReissue | WdtReturn | WdtExchange | CommonInput | PaymentVoucherCode | Label | AfterSalesOrderId;
|
package/dist/esm/factory.js
CHANGED
|
@@ -187,7 +187,6 @@ export var factory = function factory(type, options) {
|
|
|
187
187
|
case "RETURN_GOODS_STATUS":
|
|
188
188
|
case "EXCHANGE_STATUS":
|
|
189
189
|
case "WAREHOUSING_STATUS":
|
|
190
|
-
case "BS_E3_WAREHOUSING_STATUS":
|
|
191
190
|
return new CommonMultiStatus(options);
|
|
192
191
|
case "MSG_STATUS":
|
|
193
192
|
return new MsgStatus(options);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "1.22.1-beta.
|
|
3
|
+
"version": "1.22.1-beta.4",
|
|
4
4
|
"module": "dist/esm/index.js",
|
|
5
5
|
"typings": "dist/esm/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
]
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@kmkf-fe-packages/basic-components": "1.22.1-beta.
|
|
25
|
-
"@kmkf-fe-packages/kmkf-utils": "1.22.1-beta.
|
|
24
|
+
"@kmkf-fe-packages/basic-components": "1.22.1-beta.4",
|
|
25
|
+
"@kmkf-fe-packages/kmkf-utils": "1.22.1-beta.4",
|
|
26
26
|
"b64-to-blob": "^1.2.19",
|
|
27
27
|
"html2canvas": "^1.4.1",
|
|
28
28
|
"react-pdf-js": "^5.1.0"
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"publishConfig": {
|
|
42
42
|
"access": "public"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "a8ef6460fb986c7ee7c403a346fdfd2fcce149de",
|
|
45
45
|
"gitHooks": {
|
|
46
46
|
"pre-commit": "lint-staged"
|
|
47
47
|
}
|