@kmkf-fe-packages/services-components 2.10.9-beta.79 → 2.10.9-beta.80
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.
|
@@ -16,6 +16,7 @@ declare class BasicMultSelect implements ComponentInterface {
|
|
|
16
16
|
standardDateType: ComponentInterface["standardDateType"];
|
|
17
17
|
exampleValue: ComponentInterface["exampleValue"];
|
|
18
18
|
constructor(options: PickOption);
|
|
19
|
+
getFieldKey: (type: string) => "jyAbnormalFlag" | "basicMultSelect";
|
|
19
20
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
20
21
|
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
21
22
|
renderLog: (r: Record) => React.JSX.Element | null;
|
|
@@ -31,6 +31,9 @@ var BasicMultSelect = /*#__PURE__*/_createClass(function BasicMultSelect(options
|
|
|
31
31
|
_defineProperty(this, "options", void 0);
|
|
32
32
|
_defineProperty(this, "standardDateType", void 0);
|
|
33
33
|
_defineProperty(this, "exampleValue", void 0);
|
|
34
|
+
_defineProperty(this, "getFieldKey", function (type) {
|
|
35
|
+
return type === "JY_ABNORMAL_FLAG" ? "jyAbnormalFlag" : "basicMultSelect";
|
|
36
|
+
});
|
|
34
37
|
_defineProperty(this, "renderClient", function (record) {
|
|
35
38
|
var _record$_this$id;
|
|
36
39
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
@@ -41,24 +44,26 @@ var BasicMultSelect = /*#__PURE__*/_createClass(function BasicMultSelect(options
|
|
|
41
44
|
});
|
|
42
45
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
43
46
|
var _record;
|
|
44
|
-
|
|
47
|
+
var fieldKey = _this.getFieldKey(_this.type);
|
|
48
|
+
if (isNull(record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(fieldKey)])) {
|
|
45
49
|
return /*#__PURE__*/React.createElement("span", null, "--");
|
|
46
50
|
}
|
|
47
|
-
return /*#__PURE__*/React.createElement("span", null, record === null || record === void 0 ? void 0 : (_record = record["".concat(_this.id, "
|
|
51
|
+
return /*#__PURE__*/React.createElement("span", null, record === null || record === void 0 ? void 0 : (_record = record["".concat(_this.id, "_").concat(fieldKey)]) === null || _record === void 0 ? void 0 : _record.join(","));
|
|
48
52
|
});
|
|
49
53
|
_defineProperty(this, "renderLog", function (r) {
|
|
50
|
-
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "
|
|
54
|
+
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat(_this.getFieldKey(_this.type))])) return null;
|
|
51
55
|
return _this.renderPc(undefined, r);
|
|
52
56
|
});
|
|
53
57
|
_defineProperty(this, "getComponentValue", function (r) {
|
|
54
|
-
return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "
|
|
58
|
+
return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat(_this.getFieldKey(_this.type))];
|
|
55
59
|
});
|
|
56
60
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
57
61
|
var _record2;
|
|
58
|
-
|
|
62
|
+
var fieldKey = _this.getFieldKey(_this.type);
|
|
63
|
+
if (isNull(record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(fieldKey)])) {
|
|
59
64
|
return "--";
|
|
60
65
|
}
|
|
61
|
-
return record === null || record === void 0 ? void 0 : (_record2 = record["".concat(_this.id, "
|
|
66
|
+
return record === null || record === void 0 ? void 0 : (_record2 = record["".concat(_this.id, "_").concat(fieldKey)]) === null || _record2 === void 0 ? void 0 : _record2.join(",");
|
|
62
67
|
});
|
|
63
68
|
_defineProperty(this, "editRender", function (p) {
|
|
64
69
|
var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4;
|
|
@@ -77,10 +82,11 @@ var BasicMultSelect = /*#__PURE__*/_createClass(function BasicMultSelect(options
|
|
|
77
82
|
});
|
|
78
83
|
_defineProperty(this, "filterConfig", function (item) {
|
|
79
84
|
var _item$config;
|
|
85
|
+
var fieldKey = _this.getFieldKey(item.type);
|
|
80
86
|
return {
|
|
81
87
|
searchDefaultConditions: SYMBOL.in,
|
|
82
88
|
type: item.type,
|
|
83
|
-
id: "".concat(item.id, "
|
|
89
|
+
id: "".concat(item.id, "_").concat(fieldKey),
|
|
84
90
|
// 过滤组件id
|
|
85
91
|
name: item.name,
|
|
86
92
|
// 过滤组件名称
|
|
@@ -90,16 +96,17 @@ var BasicMultSelect = /*#__PURE__*/_createClass(function BasicMultSelect(options
|
|
|
90
96
|
},
|
|
91
97
|
filterFn: function filterFn(value) {
|
|
92
98
|
return function (i) {
|
|
93
|
-
return intersection(value, _filterFn.filterTableListItemColumnValue(i, item.id,
|
|
99
|
+
return intersection(value, _filterFn.filterTableListItemColumnValue(i, item.id, fieldKey)).length > 0;
|
|
94
100
|
};
|
|
95
101
|
}
|
|
96
102
|
};
|
|
97
103
|
});
|
|
98
104
|
this.name = options.name;
|
|
99
105
|
this.id = options.id;
|
|
100
|
-
this.sortField = "".concat(options.id, "_basicMultSelect");
|
|
101
|
-
this.formField = "".concat(options.id, "_basicMultSelect");
|
|
102
106
|
this.type = options.type;
|
|
107
|
+
var _fieldKey = this.getFieldKey(options.type);
|
|
108
|
+
this.sortField = "".concat(options.id, "_").concat(_fieldKey);
|
|
109
|
+
this.formField = "".concat(options.id, "_").concat(_fieldKey);
|
|
103
110
|
this.componentConfig = options.componentConfig;
|
|
104
111
|
this.rules = [];
|
|
105
112
|
this.isCombinationComponent = false;
|
package/dist/esm/factory.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ReissueLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicPicturePro, 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, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, WdtGoods, WdtReturn, WdtExchange, CommonInput, PaymentVoucherCode, Label, WdtReissue, GyReissue, AfterSalesOrderId, BsE3Goods, PublicGoods, PublicReissueGoods, PublicExchange, GyGoods, BsE3Reissue, MemberLevel, GyReturn, AsyncSelect, WdtShopSelect, DxdShopSelect, KmVideo, BasicTypeInput, SkxIdInputSelect, SkxGoods, BasicSelectOption, OrderSubForm, FlowOverallStatusSelect, ReturnWarehouse, KmExchange } 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 | BasicMultSelect | PublicGoods | BasicInput | BasicTypeInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicSelectOption | BasicRadio | BasicTextArea | BasicPicture | BasicPicturePro | BasicGrade | BasicRate | BasicFile | BasicPosting | SubForm | CommonDataTime | TradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | ReissueLogistics | JstItemSelect | JstSendGood | JstSupply | BsGoods | BsE3Goods | PublicReissueGoods | PublicExchange | 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 | BsPosting | NodeInput | FlowWorkOrderStatus | MsgStatus | WdtGoods | WdtReissue | WdtReturn | WdtExchange | WdtShopSelect | DxdShopSelect | KmVideo | CommonInput | PaymentVoucherCode | Label | MemberLevel | AfterSalesOrderId | ReturnWarehouse | GyGoods | KmExchange | GyReissue | GyReturn | AsyncSelect | SkxIdInputSelect | SkxGoods | OrderSubForm | FlowOverallStatusSelect;
|
package/dist/esm/factory.js
CHANGED
|
@@ -46,6 +46,7 @@ export var factory = function factory(type, options) {
|
|
|
46
46
|
case "PICTURE_PRO":
|
|
47
47
|
return new BasicPicturePro(options);
|
|
48
48
|
case "BASIC_MULT_SELECT":
|
|
49
|
+
case "JY_ABNORMAL_FLAG":
|
|
49
50
|
return new BasicMultSelect(options);
|
|
50
51
|
case "MULT_SELECT":
|
|
51
52
|
return new BasicCascader(options);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "2.10.9-beta.
|
|
3
|
+
"version": "2.10.9-beta.80",
|
|
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": "2.10.9-beta.
|
|
25
|
-
"@kmkf-fe-packages/kmkf-utils": "2.10.9-beta.
|
|
24
|
+
"@kmkf-fe-packages/basic-components": "2.10.9-beta.80",
|
|
25
|
+
"@kmkf-fe-packages/kmkf-utils": "2.10.9-beta.80",
|
|
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": "f7369dcbf465778730e5a468f4ccf52f73f93468",
|
|
45
45
|
"gitHooks": {
|
|
46
46
|
"pre-commit": "lint-staged"
|
|
47
47
|
}
|