@kmkf-fe-packages/services-components 0.7.15-alpha.38 → 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$effects;
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$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.isEditing,
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$componentConfig3, _this$componentConfig4, _this$componentConfig5, _this$componentConfig6;
103
- if ((_this$componentConfig3 = _this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required && !(value !== null && value !== void 0 && value.enterprisePaymentRefundFee)) {
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$componentConfig4 = _this.componentConfig) !== null && _this$componentConfig4 !== void 0 && _this$componentConfig4.required && !(value !== null && value !== void 0 && value.enterprisePaymentTid)) {
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$componentConfig5 = _this.componentConfig) !== null && _this$componentConfig5 !== void 0 && _this$componentConfig5.zhiFubaoRequired && !(value !== null && value !== void 0 && value.enterprisePaymentAlipayNick)) {
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$componentConfig6 = _this.componentConfig) !== null && _this$componentConfig6 !== void 0 && _this$componentConfig6.zhiFubaoRequired && !(value !== null && value !== void 0 && value.enterprisePaymentAlipayNo)) {
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('请输入正确的支付宝账号格式'));
@@ -139,6 +139,7 @@ export interface ComponentInterface {
139
139
  erpFlag?: boolean;
140
140
  showHeader?: string[];
141
141
  reasonList?: any[];
142
+ disabled?: boolean;
142
143
  };
143
144
  effects?: {
144
145
  queryWorkOrderDetail?: (r: Record) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kmkf-fe-packages/services-components",
3
- "version": "0.7.15-alpha.38",
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": [
@@ -40,5 +40,5 @@
40
40
  "gitHooks": {
41
41
  "pre-commit": "lint-staged"
42
42
  },
43
- "gitHead": "d65f522019c81b1f86a99b4af3fbc9892c185f59"
43
+ "gitHead": "78bd766e4c7b024eeb03a6c6054449d9e4937587"
44
44
  }