@kmkf-fe-packages/services-components 0.7.15-alpha.36 → 0.7.15-alpha.39
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.
|
@@ -64,7 +64,7 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
64
64
|
return null;
|
|
65
65
|
});
|
|
66
66
|
_defineProperty(this, "editRender", function (p) {
|
|
67
|
-
var _this$componentConfig, _this$componentConfig2, _this$
|
|
67
|
+
var _this$componentConfig, _this$componentConfig2, _this$componentConfig3;
|
|
68
68
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
69
69
|
title: _this.name,
|
|
70
70
|
name: _this.id,
|
|
@@ -72,7 +72,7 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
72
72
|
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
73
73
|
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,
|
|
74
74
|
component: /*#__PURE__*/React.createElement(ApaasPayment, _extends({}, _this.componentConfig, {
|
|
75
|
-
disabled: (_this$
|
|
75
|
+
disabled: (_this$componentConfig3 = _this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.disabled,
|
|
76
76
|
onBlur: p === null || p === void 0 ? void 0 : p.onBlur
|
|
77
77
|
}))
|
|
78
78
|
});
|
|
@@ -99,21 +99,21 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
99
99
|
this.children = [this.alipayNick, this.alipayNo, this.buyerNick, this.paymentAmount, this.paymentStatus, this.paymentTid, this.payTime];
|
|
100
100
|
this.rules = [{
|
|
101
101
|
validator: function validator(_, value) {
|
|
102
|
-
var _this$
|
|
103
|
-
if ((_this$
|
|
102
|
+
var _this$componentConfig4, _this$componentConfig5, _this$componentConfig6, _this$componentConfig7;
|
|
103
|
+
if ((_this$componentConfig4 = _this.componentConfig) !== null && _this$componentConfig4 !== void 0 && _this$componentConfig4.required && !(value !== null && value !== void 0 && value.enterprisePaymentRefundFee)) {
|
|
104
104
|
return Promise.reject(new Error('请输入打款金额'));
|
|
105
105
|
} else if (value !== null && value !== void 0 && value.enterprisePaymentRefundFee && !/^(([1-9]{1}\d*)|(0{1}))(\.\d{1,2})?$/.test(value === null || value === void 0 ? void 0 : value.enterprisePaymentRefundFee)) {
|
|
106
106
|
return Promise.reject(new Error('打款金额最多2位小数'));
|
|
107
107
|
}
|
|
108
|
-
if ((_this$
|
|
108
|
+
if ((_this$componentConfig5 = _this.componentConfig) !== null && _this$componentConfig5 !== void 0 && _this$componentConfig5.required && !(value !== null && value !== void 0 && value.enterprisePaymentTid)) {
|
|
109
109
|
return Promise.reject(new Error('请输入订单编号'));
|
|
110
110
|
} else if (value.enterprisePaymentTid && !/^[0-9a-zA-Z_-]{1,}$/.test(value.enterprisePaymentTid)) {
|
|
111
111
|
return Promise.reject(new Error('请输入正确的订单编号'));
|
|
112
112
|
}
|
|
113
|
-
if ((_this$
|
|
113
|
+
if ((_this$componentConfig6 = _this.componentConfig) !== null && _this$componentConfig6 !== void 0 && _this$componentConfig6.zhiFubaoRequired && !(value !== null && value !== void 0 && value.enterprisePaymentAlipayNick)) {
|
|
114
114
|
return Promise.reject(new Error('请输入支付宝名称'));
|
|
115
115
|
}
|
|
116
|
-
if ((_this$
|
|
116
|
+
if ((_this$componentConfig7 = _this.componentConfig) !== null && _this$componentConfig7 !== void 0 && _this$componentConfig7.zhiFubaoRequired && !(value !== null && value !== void 0 && value.enterprisePaymentAlipayNo)) {
|
|
117
117
|
return Promise.reject(new Error('请输入支付宝账号'));
|
|
118
118
|
} else if (value.enterprisePaymentAlipayNo && !/^(?:1[3-9]\d{9}|[a-zA-Z\d._-]*\@[a-zA-Z\d.-]{1,10}\.[a-zA-Z\d]{1,20})$/.test(value.enterprisePaymentAlipayNo)) {
|
|
119
119
|
return Promise.reject(new Error('请输入正确的支付宝账号格式'));
|
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.39",
|
|
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.38",
|
|
30
30
|
"@kmkf-fe-packages/kmkf-utils": "^0.7.15-alpha.36"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"gitHooks": {
|
|
41
41
|
"pre-commit": "lint-staged"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "78bd766e4c7b024eeb03a6c6054449d9e4937587"
|
|
44
44
|
}
|