@kmkf-fe-packages/services-components 2.0.12-beta.29 → 2.0.12-beta.30
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/Common/index.js +1 -1
- package/dist/esm/components/GY/GyReissue/index.js +1 -3
- package/dist/esm/components/GetFormItem/index.js +1 -10
- package/dist/esm/components/JST/JstSendGood/index.js +1 -1
- package/dist/esm/components/Label/index.d.ts +0 -1
- package/dist/esm/components/Label/index.js +0 -9
- package/dist/esm/components/MsgStatus/index.js +2 -7
- package/dist/esm/components/Payment/PaymentAmount.d.ts +1 -0
- package/dist/esm/components/Payment/PaymentAmount.js +4 -0
- package/dist/esm/components/Select/index.d.ts +1 -1
- package/dist/esm/components/Select/index.js +6 -9
- package/dist/esm/factory.js +0 -1
- package/package.json +3 -3
|
@@ -733,7 +733,7 @@ export var MsgContent = function MsgContent(_ref14) {
|
|
|
733
733
|
var key = item.msgType || "ding";
|
|
734
734
|
var formatMsgContent = /*#__PURE__*/React.createElement("span", {
|
|
735
735
|
key: index
|
|
736
|
-
}, msgTypeCh[key]
|
|
736
|
+
}, msgTypeCh[key], "-", item.ruleName ? "".concat(item.ruleName, "-") : "", currentOption ? currentOption.label : (item === null || item === void 0 ? void 0 : item[valueKey]) || "");
|
|
737
737
|
return /*#__PURE__*/React.createElement("div", {
|
|
738
738
|
key: "wrap_".concat(index),
|
|
739
739
|
style: {
|
|
@@ -94,9 +94,7 @@ var GyReissue = /*#__PURE__*/_createClass(function GyReissue(options) {
|
|
|
94
94
|
required: false,
|
|
95
95
|
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
96
96
|
display: p === null || p === void 0 ? void 0 : p.display,
|
|
97
|
-
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 : ""
|
|
98
|
-
// isGyReissue={true}
|
|
99
|
-
,
|
|
97
|
+
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 : "",
|
|
100
98
|
component: /*#__PURE__*/React.createElement(Reissue, _extends({}, _this.componentConfig, {
|
|
101
99
|
maxLength: ((_this$componentConfig5 = _this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.maxLength) || 20,
|
|
102
100
|
shopId: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.shopId,
|
|
@@ -19,7 +19,7 @@ var GetFormItem = function GetFormItem(_ref) {
|
|
|
19
19
|
style = _ref.style,
|
|
20
20
|
validateTrigger = _ref.validateTrigger,
|
|
21
21
|
_ref$tooltip = _ref.tooltip,
|
|
22
|
-
tooltip = _ref$tooltip === void 0 ?
|
|
22
|
+
tooltip = _ref$tooltip === void 0 ? '' : _ref$tooltip;
|
|
23
23
|
var newRules = rules;
|
|
24
24
|
if (required) {
|
|
25
25
|
newRules = rules.concat({
|
|
@@ -27,15 +27,6 @@ var GetFormItem = function GetFormItem(_ref) {
|
|
|
27
27
|
message: "\u8BF7\u8F93\u5165".concat(title)
|
|
28
28
|
});
|
|
29
29
|
}
|
|
30
|
-
// if (isGyReissue) {
|
|
31
|
-
// newRules.push({
|
|
32
|
-
// validator: async (_: any, value: any) => {
|
|
33
|
-
// if (!value || !value.vipCode) {
|
|
34
|
-
// return Promise.reject(new Error("vipCode 是必填项,请联系管理员"));
|
|
35
|
-
// }
|
|
36
|
-
// },
|
|
37
|
-
// });
|
|
38
|
-
// }
|
|
39
30
|
// 当隐藏时, 不在拥有该组件
|
|
40
31
|
if (hidden) return null;
|
|
41
32
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -176,7 +176,7 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
|
|
|
176
176
|
});
|
|
177
177
|
_defineProperty(this, "filterConfig", function (item) {
|
|
178
178
|
var _typeMap$_this$type8, _typeMap$_this$type9, _typeMap$_this$type11;
|
|
179
|
-
return [["WDT_SEND_GOOD", "BS_E3_SEND_GOOD", "
|
|
179
|
+
return [["WDT_SEND_GOOD", "BS_E3_SEND_GOOD", "GY_SEND_GOOD"].includes(_this.type) ? {
|
|
180
180
|
searchDefaultConditions: SYMBOL.in,
|
|
181
181
|
type: item.type,
|
|
182
182
|
id: "".concat(item.id, "_").concat((_typeMap$_this$type8 = typeMap[_this.type]) === null || _typeMap$_this$type8 === void 0 ? void 0 : _typeMap$_this$type8.sendName),
|
|
@@ -38,7 +38,6 @@ declare class Label implements ComponentInterface {
|
|
|
38
38
|
options: any;
|
|
39
39
|
};
|
|
40
40
|
filterFn: (value: string) => (i: Record) => boolean;
|
|
41
|
-
formatFilterValue: (val: Array<string>) => string[] | undefined;
|
|
42
41
|
};
|
|
43
42
|
formDataTransform: (v: Array<{
|
|
44
43
|
labelShowName: string;
|
|
@@ -140,15 +140,6 @@ var Label = /*#__PURE__*/_createClass(function Label(options) {
|
|
|
140
140
|
return function (i) {
|
|
141
141
|
return intersection(value, _filterFn.filterTableListItemColumnValue(i, item.id, "label")).length > 0;
|
|
142
142
|
};
|
|
143
|
-
},
|
|
144
|
-
formatFilterValue: function formatFilterValue(val) {
|
|
145
|
-
if ((val === null || val === void 0 ? void 0 : val.length) > 0) {
|
|
146
|
-
return val.map(function (item) {
|
|
147
|
-
return JSON.stringify({
|
|
148
|
-
labelShowName: item
|
|
149
|
-
});
|
|
150
|
-
});
|
|
151
|
-
}
|
|
152
143
|
}
|
|
153
144
|
};
|
|
154
145
|
});
|
|
@@ -39,15 +39,10 @@ var typeMap = {
|
|
|
39
39
|
label: "等待执行",
|
|
40
40
|
color: "#e7780f"
|
|
41
41
|
}, {
|
|
42
|
-
oldValue: "
|
|
42
|
+
oldValue: "等待发送",
|
|
43
43
|
value: "不满足条件,无需执行",
|
|
44
44
|
label: "不满足条件,无需执行",
|
|
45
45
|
color: "#8A8A8A"
|
|
46
|
-
}, {
|
|
47
|
-
oldValue: "暂不满足条件,等待执行",
|
|
48
|
-
value: "暂不满足条件,等待执行",
|
|
49
|
-
label: "暂不满足条件,等待执行",
|
|
50
|
-
color: "#4D90F7"
|
|
51
46
|
}],
|
|
52
47
|
key: "msgStatusValues",
|
|
53
48
|
code: "msgStatus4Search",
|
|
@@ -130,7 +125,7 @@ var MsgStatus = /*#__PURE__*/_createClass(function MsgStatus(options) {
|
|
|
130
125
|
return item[(_typeMap$_this$type14 = typeMap[_this.type]) === null || _typeMap$_this$type14 === void 0 ? void 0 : _typeMap$_this$type14.valueKey] === option.value;
|
|
131
126
|
});
|
|
132
127
|
var key = item.msgType || "ding";
|
|
133
|
-
return "".concat(msgTypeCh[key]
|
|
128
|
+
return "".concat(msgTypeCh[key], "-").concat(item.ruleName, ":").concat(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]) || "");
|
|
134
129
|
}).join(",");
|
|
135
130
|
});
|
|
136
131
|
_defineProperty(this, "editRender", function (p) {
|
|
@@ -36,5 +36,6 @@ declare class PaymentAmount implements ComponentInterface {
|
|
|
36
36
|
formatFilterValue: (val: Array<number | null>) => (number | null)[];
|
|
37
37
|
filterFn: (value: string) => (i: Record) => boolean;
|
|
38
38
|
};
|
|
39
|
+
formDataTransform: (value: string) => string | number;
|
|
39
40
|
}
|
|
40
41
|
export default PaymentAmount;
|
|
@@ -132,6 +132,10 @@ var PaymentAmount = /*#__PURE__*/_createClass(function PaymentAmount(options) {
|
|
|
132
132
|
}
|
|
133
133
|
};
|
|
134
134
|
});
|
|
135
|
+
_defineProperty(this, "formDataTransform", function (value) {
|
|
136
|
+
var isNumber = new RegExp(/^[+-]?\d+(\.\d+)?$/);
|
|
137
|
+
return isNumber.test(value) ? Number(value) : value;
|
|
138
|
+
});
|
|
135
139
|
this.name = '打款金额';
|
|
136
140
|
this.id = "".concat(options.id, "_enterprisePaymentRefundFee");
|
|
137
141
|
this.sortField = "".concat(options.id, "_enterprisePaymentRefundFee");
|
|
@@ -13,7 +13,7 @@ declare class BasicSelect implements ComponentInterface {
|
|
|
13
13
|
children: ComponentInterface[];
|
|
14
14
|
dataType: ComponentInterface["dataType"];
|
|
15
15
|
options: ComponentInterface["options"];
|
|
16
|
-
optionsMap: ComponentInterface[
|
|
16
|
+
optionsMap: ComponentInterface['optionsMap'];
|
|
17
17
|
constructor(options: PickOption);
|
|
18
18
|
getKeyByComponentType: (type: string) => any;
|
|
19
19
|
editRender: (p: any) => React.JSX.Element;
|
|
@@ -22,9 +22,6 @@ var typeMap = {
|
|
|
22
22
|
NEW_PAYMENT_STATUS: {
|
|
23
23
|
key: "newPaymentStatus",
|
|
24
24
|
placeholder: "自动获取无需填写"
|
|
25
|
-
},
|
|
26
|
-
ORDER_TYPE: {
|
|
27
|
-
key: "erpOrderType"
|
|
28
25
|
}
|
|
29
26
|
};
|
|
30
27
|
var BasicSelect = /*#__PURE__*/_createClass(function BasicSelect(options) {
|
|
@@ -57,7 +54,7 @@ var BasicSelect = /*#__PURE__*/_createClass(function BasicSelect(options) {
|
|
|
57
54
|
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
58
55
|
display: p === null || p === void 0 ? void 0 : p.display,
|
|
59
56
|
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,
|
|
60
|
-
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 :
|
|
57
|
+
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 : '',
|
|
61
58
|
component: /*#__PURE__*/React.createElement(ApaasSelect, _extends({}, _this.componentConfig, {
|
|
62
59
|
placeholder: typeMap[_this.type].placeholder || "\u8BF7\u8F93\u5165".concat(_this.name),
|
|
63
60
|
showSearch: true,
|
|
@@ -68,7 +65,7 @@ var BasicSelect = /*#__PURE__*/_createClass(function BasicSelect(options) {
|
|
|
68
65
|
_defineProperty(this, "renderClient", function (record) {
|
|
69
66
|
var _this$componentConfig5, _this$optionsMap;
|
|
70
67
|
// 特殊自定义组件为平台状态时匹配出label
|
|
71
|
-
var label = ((_this$componentConfig5 = _this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.webUniqueKey) ===
|
|
68
|
+
var label = ((_this$componentConfig5 = _this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.webUniqueKey) === 'PLATFORM_STATUS' ? (_this$optionsMap = _this.optionsMap) === null || _this$optionsMap === void 0 ? void 0 : _this$optionsMap[record === null || record === void 0 ? void 0 : record[_this.id]] : record === null || record === void 0 ? void 0 : record[_this.id];
|
|
72
69
|
return !isNull(record === null || record === void 0 ? void 0 : record[_this.id]) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
73
70
|
id: _this.id,
|
|
74
71
|
label: _this.name,
|
|
@@ -80,7 +77,7 @@ var BasicSelect = /*#__PURE__*/_createClass(function BasicSelect(options) {
|
|
|
80
77
|
var type = _this.type;
|
|
81
78
|
var key = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(typeMap[type].key)];
|
|
82
79
|
// 特殊自定义组件为平台状态时匹配出label
|
|
83
|
-
var label = ((_this$componentConfig6 = _this.componentConfig) === null || _this$componentConfig6 === void 0 ? void 0 : _this$componentConfig6.webUniqueKey) ===
|
|
80
|
+
var label = ((_this$componentConfig6 = _this.componentConfig) === null || _this$componentConfig6 === void 0 ? void 0 : _this$componentConfig6.webUniqueKey) === 'PLATFORM_STATUS' ? ((_this$optionsMap2 = _this.optionsMap) === null || _this$optionsMap2 === void 0 ? void 0 : _this$optionsMap2[key]) || '' : key;
|
|
84
81
|
return /*#__PURE__*/React.createElement("span", null, label !== null && label !== void 0 ? label : "--");
|
|
85
82
|
});
|
|
86
83
|
_defineProperty(this, "renderLog", function (r) {
|
|
@@ -97,11 +94,11 @@ var BasicSelect = /*#__PURE__*/_createClass(function BasicSelect(options) {
|
|
|
97
94
|
var type = _this.type;
|
|
98
95
|
var key = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(typeMap[type].key)];
|
|
99
96
|
// 特殊自定义组件为平台状态时匹配出label
|
|
100
|
-
var label = ((_this$componentConfig7 = _this.componentConfig) === null || _this$componentConfig7 === void 0 ? void 0 : _this$componentConfig7.webUniqueKey) ===
|
|
97
|
+
var label = ((_this$componentConfig7 = _this.componentConfig) === null || _this$componentConfig7 === void 0 ? void 0 : _this$componentConfig7.webUniqueKey) === 'PLATFORM_STATUS' ? ((_this$optionsMap3 = _this.optionsMap) === null || _this$optionsMap3 === void 0 ? void 0 : _this$optionsMap3[key]) || '' : key;
|
|
101
98
|
return label !== null && label !== void 0 ? label : "--";
|
|
102
99
|
});
|
|
103
100
|
_defineProperty(this, "filterConfig", function (item) {
|
|
104
|
-
var _item$config
|
|
101
|
+
var _item$config;
|
|
105
102
|
var key = _this.getKeyByComponentType(item.type);
|
|
106
103
|
return {
|
|
107
104
|
searchDefaultConditions: SYMBOL.in,
|
|
@@ -112,7 +109,7 @@ var BasicSelect = /*#__PURE__*/_createClass(function BasicSelect(options) {
|
|
|
112
109
|
// 过滤组件名称
|
|
113
110
|
filterComponentType: "MultipleSelect",
|
|
114
111
|
props: {
|
|
115
|
-
options: (item === null || item === void 0 ? void 0 : (_item$config = item.config) === null || _item$config === void 0 ? void 0 : _item$config.options) ||
|
|
112
|
+
options: (item === null || item === void 0 ? void 0 : (_item$config = item.config) === null || _item$config === void 0 ? void 0 : _item$config.options) || []
|
|
116
113
|
},
|
|
117
114
|
filterFn: function filterFn(value) {
|
|
118
115
|
return function (i) {
|
package/dist/esm/factory.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "2.0.12-beta.
|
|
3
|
+
"version": "2.0.12-beta.30",
|
|
4
4
|
"module": "dist/esm/index.js",
|
|
5
5
|
"typings": "dist/esm/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
]
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@kmkf-fe-packages/basic-components": "2.0.12-beta.
|
|
24
|
+
"@kmkf-fe-packages/basic-components": "2.0.12-beta.30",
|
|
25
25
|
"@kmkf-fe-packages/kmkf-utils": "2.0.12-beta.26",
|
|
26
26
|
"b64-to-blob": "^1.2.19",
|
|
27
27
|
"html2canvas": "^1.4.1",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"publishConfig": {
|
|
42
42
|
"access": "public"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "1ca49ca7c532c3106d326c9dd6923483c2666118",
|
|
45
45
|
"gitHooks": {
|
|
46
46
|
"pre-commit": "lint-staged"
|
|
47
47
|
}
|