@kmkf-fe-packages/services-components 1.5.0 → 1.6.0-beta.1
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/README.md +3 -1
- package/dist/esm/commonComponents/GlobalContext/index.d.ts +1 -1
- package/dist/esm/commonComponents/GlobalContext/index.js +1 -1
- package/dist/esm/components/ActualPayment/index.js +2 -1
- package/dist/esm/components/Address/index.js +2 -1
- package/dist/esm/components/AfterSalesOrderId/index.js +2 -1
- package/dist/esm/components/Alipay/index.js +6 -5
- package/dist/esm/components/AlipayAccount/index.js +2 -1
- package/dist/esm/components/AlipayName/index.js +2 -1
- package/dist/esm/components/BS/BsExchange/index.js +7 -6
- package/dist/esm/components/BS/BsGoods/index.js +5 -4
- package/dist/esm/components/BS/BsLogistics/index.js +8 -7
- package/dist/esm/components/BS/BsPosting/index.js +3 -2
- package/dist/esm/components/BS/BsReissue/index.js +5 -4
- package/dist/esm/components/BS/BsReturn/index.js +5 -4
- package/dist/esm/components/BS/BsSystemOrder/index.js +4 -2
- package/dist/esm/components/BS/DeliveryNo/index.js +4 -3
- package/dist/esm/components/BuyerNick/index.js +4 -3
- package/dist/esm/components/Calculation/index.js +2 -1
- package/dist/esm/components/Cascader/index.js +5 -4
- package/dist/esm/components/Checkbox/index.js +4 -3
- package/dist/esm/components/Common/index.js +4 -3
- package/dist/esm/components/CommonInput/index.js +2 -1
- package/dist/esm/components/CommonMultiStatus/index.js +4 -3
- package/dist/esm/components/CommonSystemOrder/index.js +4 -3
- package/dist/esm/components/CommonTradeId/index.js +2 -1
- package/dist/esm/components/DataTime/index.js +7 -6
- package/dist/esm/components/EItemEnCode/index.js +6 -5
- package/dist/esm/components/EItemId/index.js +5 -4
- package/dist/esm/components/EItemSelect/index.js +3 -2
- package/dist/esm/components/ErpTradeId/index.js +2 -1
- package/dist/esm/components/Express/index.js +3 -2
- package/dist/esm/components/ExpressCode/index.js +5 -4
- package/dist/esm/components/File/index.js +2 -1
- package/dist/esm/components/FlowMarkSelect/index.js +2 -1
- package/dist/esm/components/FlowStatusSelect/index.js +2 -1
- package/dist/esm/components/FlowTag/index.js +2 -1
- package/dist/esm/components/FlowWorkOrderId/index.js +2 -1
- package/dist/esm/components/FlowWorkOrderStatus/index.js +2 -1
- package/dist/esm/components/GetFormItem/index.d.ts +2 -1
- package/dist/esm/components/GetFormItem/index.js +4 -2
- package/dist/esm/components/Grade/index.js +2 -1
- package/dist/esm/components/Input/index.js +17 -16
- package/dist/esm/components/JST/JstItemSelect/index.js +7 -5
- package/dist/esm/components/JST/JstLogistics/index.js +9 -8
- package/dist/esm/components/JST/JstSendGood/index.js +9 -7
- package/dist/esm/components/JST/JstSupply/index.js +6 -4
- package/dist/esm/components/KmErpSendGood/index.js +9 -7
- package/dist/esm/components/Label/index.js +2 -1
- package/dist/esm/components/Logistics/index.js +9 -8
- package/dist/esm/components/LogisticsInterception/InterceptAddress.js +2 -1
- package/dist/esm/components/LogisticsInterception/index.js +5 -4
- package/dist/esm/components/LogisticsMoreInterception/index.js +4 -3
- package/dist/esm/components/LogisticsMoreTrajectory/index.js +4 -3
- package/dist/esm/components/LogisticsTrajectory/index.js +4 -3
- package/dist/esm/components/MsgStatus/index.js +6 -4
- package/dist/esm/components/MultSelect/index.js +4 -3
- package/dist/esm/components/Ordinary/OrdinaryHeader.js +2 -1
- package/dist/esm/components/Ordinary/OrdinaryMoney.js +2 -1
- package/dist/esm/components/Ordinary/OrdinarySerial.js +2 -1
- package/dist/esm/components/Ordinary/index.js +4 -3
- package/dist/esm/components/Payment/AlipayNick.js +2 -1
- package/dist/esm/components/Payment/AlipayNo.js +2 -1
- package/dist/esm/components/Payment/AlipayTime.js +2 -1
- package/dist/esm/components/Payment/BuyerNick.js +2 -1
- package/dist/esm/components/Payment/PaymentAmount.js +2 -1
- package/dist/esm/components/Payment/PaymentTid.js +2 -1
- package/dist/esm/components/Payment/index.js +8 -7
- package/dist/esm/components/PaymentVoucherCode/index.js +2 -1
- package/dist/esm/components/Picture/index.js +3 -2
- package/dist/esm/components/PostIng/index.js +3 -2
- package/dist/esm/components/Radio/index.js +6 -5
- package/dist/esm/components/Rate/index.js +2 -1
- package/dist/esm/components/ReceiverAddress/index.js +4 -3
- package/dist/esm/components/ReceiverMobile/index.js +2 -1
- package/dist/esm/components/ReceiverName/index.js +2 -1
- package/dist/esm/components/Remark/index.js +6 -5
- package/dist/esm/components/ReturnLogistics/index.js +9 -8
- package/dist/esm/components/Select/index.js +4 -3
- package/dist/esm/components/ShopName/index.js +2 -1
- package/dist/esm/components/StatusSelect/index.js +2 -1
- package/dist/esm/components/SubForm/index.d.ts +33 -0
- package/dist/esm/components/SubForm/index.js +174 -0
- package/dist/esm/components/SystemOrderNo/index.js +2 -1
- package/dist/esm/components/TextArea/index.js +2 -1
- package/dist/esm/components/ThirdItemSelect/index.js +8 -7
- package/dist/esm/components/TradeDateTime/index.js +2 -1
- package/dist/esm/components/TradeId/index.js +2 -1
- package/dist/esm/components/WDT/WdtExchange/index.js +7 -6
- package/dist/esm/components/WDT/WdtGoods/index.js +5 -4
- package/dist/esm/components/WDT/WdtRessuie/index.js +5 -4
- package/dist/esm/components/WDT/WdtReturn/index.js +5 -4
- package/dist/esm/components/WLN/WlnGoods/index.js +5 -4
- package/dist/esm/components/WorkOrderId/index.js +2 -1
- package/dist/esm/factory.d.ts +2 -2
- package/dist/esm/factory.js +5 -4
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/type.d.ts +12 -1
- package/package.json +6 -6
|
@@ -16,7 +16,7 @@ import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
|
|
|
16
16
|
import { SYMBOL } from "../../../constant";
|
|
17
17
|
var JstItemSelect = /*#__PURE__*/_createClass(function JstItemSelect(options) {
|
|
18
18
|
var _this = this,
|
|
19
|
-
_this$
|
|
19
|
+
_this$componentConfig3;
|
|
20
20
|
_classCallCheck(this, JstItemSelect);
|
|
21
21
|
_defineProperty(this, "name", void 0);
|
|
22
22
|
_defineProperty(this, "id", void 0);
|
|
@@ -68,6 +68,7 @@ var JstItemSelect = /*#__PURE__*/_createClass(function JstItemSelect(options) {
|
|
|
68
68
|
}).join(",");
|
|
69
69
|
});
|
|
70
70
|
_defineProperty(this, "editRender", function (p) {
|
|
71
|
+
var _this$componentConfig, _this$componentConfig2;
|
|
71
72
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
72
73
|
title: _this.name,
|
|
73
74
|
name: _this.id,
|
|
@@ -75,6 +76,7 @@ var JstItemSelect = /*#__PURE__*/_createClass(function JstItemSelect(options) {
|
|
|
75
76
|
required: false,
|
|
76
77
|
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
77
78
|
display: p === null || p === void 0 ? void 0 : p.display,
|
|
79
|
+
tooltip: (_this$componentConfig = (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.tooltip) !== null && _this$componentConfig !== void 0 ? _this$componentConfig : '',
|
|
78
80
|
component: /*#__PURE__*/React.createElement(JstItemList, _extends({}, _this.componentConfig, {
|
|
79
81
|
width: "90%"
|
|
80
82
|
}))
|
|
@@ -125,23 +127,23 @@ var JstItemSelect = /*#__PURE__*/_createClass(function JstItemSelect(options) {
|
|
|
125
127
|
this.canSort = false;
|
|
126
128
|
this.children = [];
|
|
127
129
|
this.dataType = "object";
|
|
128
|
-
this.rules = (_this$
|
|
130
|
+
this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
|
|
129
131
|
required: true,
|
|
130
132
|
validator: function validator(_, value) {
|
|
131
|
-
var _this$
|
|
133
|
+
var _this$componentConfig4, _this$componentConfig5;
|
|
132
134
|
if (!value || !value.length) {
|
|
133
135
|
return Promise.reject(new Error("请选择宝贝"));
|
|
134
136
|
}
|
|
135
137
|
var hasNotId = (value || []).some(function (item) {
|
|
136
138
|
return !item.itemId;
|
|
137
139
|
});
|
|
138
|
-
if ((_this$
|
|
140
|
+
if ((_this$componentConfig4 = _this.componentConfig) !== null && _this$componentConfig4 !== void 0 && _this$componentConfig4.enableItemId && hasNotId) {
|
|
139
141
|
return Promise.reject(new Error("请输入供应商编码"));
|
|
140
142
|
}
|
|
141
143
|
var hasNotName = (value || []).some(function (item) {
|
|
142
144
|
return !item.supplierName;
|
|
143
145
|
});
|
|
144
|
-
if ((_this$
|
|
146
|
+
if ((_this$componentConfig5 = _this.componentConfig) !== null && _this$componentConfig5 !== void 0 && _this$componentConfig5.enableSupplierName && hasNotName) {
|
|
145
147
|
return Promise.reject(new Error("请输入供应商名称"));
|
|
146
148
|
}
|
|
147
149
|
return Promise.resolve();
|
|
@@ -33,9 +33,9 @@ var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(_options) {
|
|
|
33
33
|
var _this = this,
|
|
34
34
|
_typeMap$_options$typ,
|
|
35
35
|
_typeMap$_options$typ2,
|
|
36
|
-
_this$
|
|
37
|
-
_this$
|
|
38
|
-
_this$
|
|
36
|
+
_this$componentConfig8,
|
|
37
|
+
_this$componentConfig9,
|
|
38
|
+
_this$componentConfig10;
|
|
39
39
|
_classCallCheck(this, JstLogistics);
|
|
40
40
|
_defineProperty(this, "name", void 0);
|
|
41
41
|
_defineProperty(this, "id", void 0);
|
|
@@ -131,7 +131,7 @@ var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(_options) {
|
|
|
131
131
|
}).join(",");
|
|
132
132
|
});
|
|
133
133
|
_defineProperty(this, "editRender", function (p) {
|
|
134
|
-
var _this$componentConfig3, _this$componentConfig4, _this$componentConfig5;
|
|
134
|
+
var _this$componentConfig3, _this$componentConfig4, _this$componentConfig5, _this$componentConfig6, _this$componentConfig7;
|
|
135
135
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
136
136
|
title: _this.name,
|
|
137
137
|
name: _this.id,
|
|
@@ -139,10 +139,11 @@ var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(_options) {
|
|
|
139
139
|
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
140
140
|
display: p === null || p === void 0 ? void 0 : p.display,
|
|
141
141
|
required: (_this$componentConfig3 = (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.required) !== null && _this$componentConfig3 !== void 0 ? _this$componentConfig3 : false,
|
|
142
|
+
tooltip: (_this$componentConfig5 = (_this$componentConfig6 = _this.componentConfig) === null || _this$componentConfig6 === void 0 ? void 0 : _this$componentConfig6.tooltip) !== null && _this$componentConfig5 !== void 0 ? _this$componentConfig5 : '',
|
|
142
143
|
component: /*#__PURE__*/React.createElement(JstGoods, _extends({}, _this.componentConfig, {
|
|
143
144
|
type: 1,
|
|
144
145
|
options: _this.expressDateInstance.getExpressData(),
|
|
145
|
-
platformType: (_this$
|
|
146
|
+
platformType: (_this$componentConfig7 = _this.componentConfig) === null || _this$componentConfig7 === void 0 ? void 0 : _this$componentConfig7.logistics
|
|
146
147
|
}))
|
|
147
148
|
});
|
|
148
149
|
});
|
|
@@ -204,7 +205,7 @@ var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(_options) {
|
|
|
204
205
|
this.canSort = false;
|
|
205
206
|
this.children = [];
|
|
206
207
|
this.dataType = "object";
|
|
207
|
-
this.rules = (_this$
|
|
208
|
+
this.rules = (_this$componentConfig8 = this.componentConfig) !== null && _this$componentConfig8 !== void 0 && _this$componentConfig8.required ? [{
|
|
208
209
|
required: true,
|
|
209
210
|
validator: function validator(_, value) {
|
|
210
211
|
var hasNo = (value || []).some(function (item) {
|
|
@@ -217,7 +218,7 @@ var JstLogistics = /*#__PURE__*/_createClass(function JstLogistics(_options) {
|
|
|
217
218
|
}
|
|
218
219
|
}] : [];
|
|
219
220
|
this.align = "left";
|
|
220
|
-
this.expressDateInstance = ExpressData.getInstance((_this$
|
|
221
|
-
this.sortChildField = this.getSortChildFields(((_this$
|
|
221
|
+
this.expressDateInstance = ExpressData.getInstance((_this$componentConfig9 = this.componentConfig) === null || _this$componentConfig9 === void 0 ? void 0 : _this$componentConfig9.logistics);
|
|
222
|
+
this.sortChildField = this.getSortChildFields(((_this$componentConfig10 = this.componentConfig) === null || _this$componentConfig10 === void 0 ? void 0 : _this$componentConfig10.showField) || "", _options);
|
|
222
223
|
});
|
|
223
224
|
export default JstLogistics;
|
|
@@ -44,8 +44,8 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
|
|
|
44
44
|
var _this = this,
|
|
45
45
|
_typeMap$_options$typ,
|
|
46
46
|
_typeMap$_options$typ2,
|
|
47
|
-
_this$
|
|
48
|
-
_this$
|
|
47
|
+
_this$componentConfig3,
|
|
48
|
+
_this$componentConfig4;
|
|
49
49
|
_classCallCheck(this, JstSendGood);
|
|
50
50
|
_defineProperty(this, "name", void 0);
|
|
51
51
|
_defineProperty(this, "id", void 0);
|
|
@@ -137,6 +137,7 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
|
|
|
137
137
|
}).join(",");
|
|
138
138
|
});
|
|
139
139
|
_defineProperty(this, "editRender", function (p) {
|
|
140
|
+
var _this$componentConfig, _this$componentConfig2;
|
|
140
141
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
141
142
|
title: _this.name,
|
|
142
143
|
name: _this.id,
|
|
@@ -144,6 +145,7 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
|
|
|
144
145
|
required: false,
|
|
145
146
|
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
146
147
|
display: p === null || p === void 0 ? void 0 : p.display,
|
|
148
|
+
tooltip: (_this$componentConfig = (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.tooltip) !== null && _this$componentConfig !== void 0 ? _this$componentConfig : '',
|
|
147
149
|
component: /*#__PURE__*/React.createElement(JstGoods, _extends({}, _this.componentConfig, {
|
|
148
150
|
type: 3,
|
|
149
151
|
platformType: _this.type === 'WDT_SEND_GOOD' ? 'wdt' : 'default'
|
|
@@ -210,20 +212,20 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
|
|
|
210
212
|
this.sortField = "".concat(_options.id, "_").concat((_typeMap$_options$typ = typeMap[_options.type]) === null || _typeMap$_options$typ === void 0 ? void 0 : _typeMap$_options$typ.key);
|
|
211
213
|
this.formField = "".concat(_options.id, "_").concat((_typeMap$_options$typ2 = typeMap[_options.type]) === null || _typeMap$_options$typ2 === void 0 ? void 0 : _typeMap$_options$typ2.key);
|
|
212
214
|
this.componentConfig = _options.componentConfig;
|
|
213
|
-
this.sortChildField = this.getSortChildFields(((_this$
|
|
215
|
+
this.sortChildField = this.getSortChildFields(((_this$componentConfig3 = this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.showField) || '', _options);
|
|
214
216
|
this.type = _options.type;
|
|
215
217
|
this.dataType = "object";
|
|
216
|
-
this.rules = (_this$
|
|
218
|
+
this.rules = (_this$componentConfig4 = this.componentConfig) !== null && _this$componentConfig4 !== void 0 && _this$componentConfig4.required ? [{
|
|
217
219
|
required: true,
|
|
218
220
|
validator: function validator(_, value) {
|
|
219
221
|
if (!value || !value.length) {
|
|
220
222
|
return Promise.reject(new Error("请选择宝贝"));
|
|
221
223
|
}
|
|
222
224
|
var hasNo = (value || []).some(function (item) {
|
|
223
|
-
var _this$
|
|
224
|
-
if (["sendName"].includes((_this === null || _this === void 0 ? void 0 : (_this$
|
|
225
|
+
var _this$componentConfig5, _this$componentConfig6;
|
|
226
|
+
if (["sendName"].includes((_this === null || _this === void 0 ? void 0 : (_this$componentConfig5 = _this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.showField) || "")) {
|
|
225
227
|
return item.sendName;
|
|
226
|
-
} else if (["sendId"].includes((_this === null || _this === void 0 ? void 0 : (_this$
|
|
228
|
+
} else if (["sendId"].includes((_this === null || _this === void 0 ? void 0 : (_this$componentConfig6 = _this.componentConfig) === null || _this$componentConfig6 === void 0 ? void 0 : _this$componentConfig6.showField) || "")) {
|
|
227
229
|
return item.sendId;
|
|
228
230
|
} else {
|
|
229
231
|
return item.sendId && item.sendName;
|
|
@@ -16,7 +16,7 @@ import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
|
|
|
16
16
|
import { SYMBOL } from "../../../constant";
|
|
17
17
|
var JstSupply = /*#__PURE__*/_createClass(function JstSupply(options) {
|
|
18
18
|
var _this = this,
|
|
19
|
-
_this$
|
|
19
|
+
_this$componentConfig3;
|
|
20
20
|
_classCallCheck(this, JstSupply);
|
|
21
21
|
_defineProperty(this, "name", void 0);
|
|
22
22
|
_defineProperty(this, "id", void 0);
|
|
@@ -70,6 +70,7 @@ var JstSupply = /*#__PURE__*/_createClass(function JstSupply(options) {
|
|
|
70
70
|
}).join(",");
|
|
71
71
|
});
|
|
72
72
|
_defineProperty(this, "editRender", function (p) {
|
|
73
|
+
var _this$componentConfig, _this$componentConfig2;
|
|
73
74
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
74
75
|
title: _this.name,
|
|
75
76
|
name: _this.id,
|
|
@@ -77,6 +78,7 @@ var JstSupply = /*#__PURE__*/_createClass(function JstSupply(options) {
|
|
|
77
78
|
required: false,
|
|
78
79
|
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
79
80
|
display: p === null || p === void 0 ? void 0 : p.display,
|
|
81
|
+
tooltip: (_this$componentConfig = (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.tooltip) !== null && _this$componentConfig !== void 0 ? _this$componentConfig : '',
|
|
80
82
|
component: /*#__PURE__*/React.createElement(JstGoods, _extends({}, _this.componentConfig, {
|
|
81
83
|
type: 2
|
|
82
84
|
}))
|
|
@@ -127,11 +129,11 @@ var JstSupply = /*#__PURE__*/_createClass(function JstSupply(options) {
|
|
|
127
129
|
this.canSort = false;
|
|
128
130
|
this.children = [];
|
|
129
131
|
this.dataType = "object";
|
|
130
|
-
this.rules = (_this$
|
|
132
|
+
this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
|
|
131
133
|
required: true,
|
|
132
134
|
validator: function validator(_, value) {
|
|
133
|
-
var _this$
|
|
134
|
-
var showField = (_this === null || _this === void 0 ? void 0 : (_this$
|
|
135
|
+
var _this$componentConfig4;
|
|
136
|
+
var showField = (_this === null || _this === void 0 ? void 0 : (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.showField) || "";
|
|
135
137
|
if (!value || !value.length) {
|
|
136
138
|
return Promise.reject(new Error("请选择宝贝"));
|
|
137
139
|
}
|
|
@@ -16,8 +16,8 @@ import { isNull, filterFn as _filterFn, WdtSendData } from "@kmkf-fe-packages/km
|
|
|
16
16
|
import { SYMBOL } from "../../constant";
|
|
17
17
|
var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
|
|
18
18
|
var _this = this,
|
|
19
|
-
_this$
|
|
20
|
-
_this$
|
|
19
|
+
_this$componentConfig3,
|
|
20
|
+
_this$componentConfig4;
|
|
21
21
|
_classCallCheck(this, JstSendGood);
|
|
22
22
|
_defineProperty(this, "name", void 0);
|
|
23
23
|
_defineProperty(this, "id", void 0);
|
|
@@ -105,6 +105,7 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
|
|
|
105
105
|
}).join(",");
|
|
106
106
|
});
|
|
107
107
|
_defineProperty(this, "editRender", function (p) {
|
|
108
|
+
var _this$componentConfig, _this$componentConfig2;
|
|
108
109
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
109
110
|
title: _this.name,
|
|
110
111
|
name: _this.id,
|
|
@@ -112,6 +113,7 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
|
|
|
112
113
|
required: false,
|
|
113
114
|
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
114
115
|
display: p === null || p === void 0 ? void 0 : p.display,
|
|
116
|
+
tooltip: (_this$componentConfig = (_this$componentConfig2 = _this.componentConfig) === null || _this$componentConfig2 === void 0 ? void 0 : _this$componentConfig2.tooltip) !== null && _this$componentConfig !== void 0 ? _this$componentConfig : '',
|
|
115
117
|
component: /*#__PURE__*/React.createElement(JstGoods, _extends({}, _this.componentConfig, {
|
|
116
118
|
type: 3,
|
|
117
119
|
platformType: _this.type === 'WDT_SEND_GOOD' ? 'wdt' : 'default'
|
|
@@ -180,20 +182,20 @@ var JstSendGood = /*#__PURE__*/_createClass(function JstSendGood(_options) {
|
|
|
180
182
|
this.sortField = "".concat(_options.id, "_").concat(this.suffixKey);
|
|
181
183
|
this.formField = "".concat(_options.id, "_").concat(this.suffixKey);
|
|
182
184
|
this.componentConfig = _options.componentConfig;
|
|
183
|
-
this.sortChildField = this.getSortChildFields(((_this$
|
|
185
|
+
this.sortChildField = this.getSortChildFields(((_this$componentConfig3 = this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.showField) || '', _options);
|
|
184
186
|
this.type = _options.type;
|
|
185
187
|
this.dataType = "object";
|
|
186
|
-
this.rules = (_this$
|
|
188
|
+
this.rules = (_this$componentConfig4 = this.componentConfig) !== null && _this$componentConfig4 !== void 0 && _this$componentConfig4.required ? [{
|
|
187
189
|
required: true,
|
|
188
190
|
validator: function validator(_, value) {
|
|
189
191
|
if (!value || !value.length) {
|
|
190
192
|
return Promise.reject(new Error("请选择宝贝"));
|
|
191
193
|
}
|
|
192
194
|
var hasNo = (value || []).some(function (item) {
|
|
193
|
-
var _this$
|
|
194
|
-
if (["sendName"].includes((_this === null || _this === void 0 ? void 0 : (_this$
|
|
195
|
+
var _this$componentConfig5, _this$componentConfig6;
|
|
196
|
+
if (["sendName"].includes((_this === null || _this === void 0 ? void 0 : (_this$componentConfig5 = _this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.showField) || "")) {
|
|
195
197
|
return item.sendName;
|
|
196
|
-
} else if (["sendId"].includes((_this === null || _this === void 0 ? void 0 : (_this$
|
|
198
|
+
} else if (["sendId"].includes((_this === null || _this === void 0 ? void 0 : (_this$componentConfig6 = _this.componentConfig) === null || _this$componentConfig6 === void 0 ? void 0 : _this$componentConfig6.showField) || "")) {
|
|
197
199
|
return item.sendId;
|
|
198
200
|
} else {
|
|
199
201
|
return item.sendId && item.sendName;
|
|
@@ -68,7 +68,7 @@ var Label = /*#__PURE__*/_createClass(function Label(options) {
|
|
|
68
68
|
return r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_label")];
|
|
69
69
|
});
|
|
70
70
|
_defineProperty(this, "editRender", function (p) {
|
|
71
|
-
var _this$componentConfig, _this$componentConfig2;
|
|
71
|
+
var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4;
|
|
72
72
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
73
73
|
title: _this.name,
|
|
74
74
|
name: _this.id,
|
|
@@ -76,6 +76,7 @@ var Label = /*#__PURE__*/_createClass(function Label(options) {
|
|
|
76
76
|
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
77
77
|
display: p === null || p === void 0 ? void 0 : p.display,
|
|
78
78
|
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,
|
|
79
|
+
tooltip: (_this$componentConfig3 = (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip) !== null && _this$componentConfig3 !== void 0 ? _this$componentConfig3 : '',
|
|
79
80
|
component: /*#__PURE__*/React.createElement(EditRenderItem, _extends({}, _this.componentConfig, {
|
|
80
81
|
placeholder: "\u7CFB\u7EDF\u81EA\u52A8\u751F\u6210",
|
|
81
82
|
showSearch: true,
|
|
@@ -16,7 +16,7 @@ import ExpressCode from "../ExpressCode";
|
|
|
16
16
|
import GetFormItem from "../GetFormItem";
|
|
17
17
|
var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
18
18
|
var _this = this,
|
|
19
|
-
_this$
|
|
19
|
+
_this$componentConfig5;
|
|
20
20
|
_classCallCheck(this, Logistics);
|
|
21
21
|
_defineProperty(this, "name", void 0);
|
|
22
22
|
_defineProperty(this, "id", void 0);
|
|
@@ -33,7 +33,7 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
33
33
|
_defineProperty(this, "children", void 0);
|
|
34
34
|
_defineProperty(this, "dataType", void 0);
|
|
35
35
|
_defineProperty(this, "editRender", function (p) {
|
|
36
|
-
var _this$componentConfig, _this$componentConfig2;
|
|
36
|
+
var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4;
|
|
37
37
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
38
38
|
title: _this.name,
|
|
39
39
|
name: _this.id,
|
|
@@ -41,6 +41,7 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
41
41
|
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
42
42
|
display: p === null || p === void 0 ? void 0 : p.display,
|
|
43
43
|
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,
|
|
44
|
+
tooltip: (_this$componentConfig3 = (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip) !== null && _this$componentConfig3 !== void 0 ? _this$componentConfig3 : '',
|
|
44
45
|
component: /*#__PURE__*/React.createElement(ExpressLogistics, _extends({}, _this.componentConfig, {
|
|
45
46
|
options: _this.expressDateInstance.getExpressData(),
|
|
46
47
|
onBlur: p === null || p === void 0 ? void 0 : p.onBlur,
|
|
@@ -92,14 +93,14 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
92
93
|
this.canSort = false;
|
|
93
94
|
this.dataType = "object";
|
|
94
95
|
this.children = [this.express, this.expressCode];
|
|
95
|
-
this.rules = (_this$
|
|
96
|
+
this.rules = (_this$componentConfig5 = this.componentConfig) !== null && _this$componentConfig5 !== void 0 && _this$componentConfig5.required ? [{
|
|
96
97
|
validator: function validator(_, value) {
|
|
97
|
-
var _this$
|
|
98
|
-
if ((_this$
|
|
99
|
-
var _this$
|
|
100
|
-
if (((_this$
|
|
98
|
+
var _this$componentConfig6;
|
|
99
|
+
if ((_this$componentConfig6 = _this.componentConfig) !== null && _this$componentConfig6 !== void 0 && _this$componentConfig6.isSingle) {
|
|
100
|
+
var _this$componentConfig7, _this$componentConfig8;
|
|
101
|
+
if (((_this$componentConfig7 = _this.componentConfig) === null || _this$componentConfig7 === void 0 ? void 0 : _this$componentConfig7.showField) === "EXPRESS_COMPANY" && !(value !== null && value !== void 0 && value.company)) {
|
|
101
102
|
return Promise.reject(new Error("请选择物流公司"));
|
|
102
|
-
} else if (((_this$
|
|
103
|
+
} else if (((_this$componentConfig8 = _this.componentConfig) === null || _this$componentConfig8 === void 0 ? void 0 : _this$componentConfig8.showField) === "EXPRESS_WAYBILL_CODE" && !(value !== null && value !== void 0 && value.order)) {
|
|
103
104
|
return Promise.reject(new Error("请输入物流单号"));
|
|
104
105
|
}
|
|
105
106
|
} else {
|
|
@@ -110,7 +110,7 @@ var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
|
|
|
110
110
|
return "".concat(addressText).concat(detail, " ").concat(name).concat(mobile);
|
|
111
111
|
});
|
|
112
112
|
_defineProperty(this, "editRender", function (p) {
|
|
113
|
-
var _this$componentConfig, _this$componentConfig2;
|
|
113
|
+
var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4;
|
|
114
114
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
115
115
|
title: _this.name,
|
|
116
116
|
name: _this.id,
|
|
@@ -118,6 +118,7 @@ var PaymentTid = /*#__PURE__*/_createClass(function PaymentTid(options) {
|
|
|
118
118
|
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
119
119
|
display: p === null || p === void 0 ? void 0 : p.display,
|
|
120
120
|
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,
|
|
121
|
+
tooltip: (_this$componentConfig3 = (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip) !== null && _this$componentConfig3 !== void 0 ? _this$componentConfig3 : '',
|
|
121
122
|
component: /*#__PURE__*/React.createElement(ApaasInput, _this.componentConfig)
|
|
122
123
|
});
|
|
123
124
|
});
|
|
@@ -73,7 +73,7 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
73
73
|
return null;
|
|
74
74
|
});
|
|
75
75
|
_defineProperty(this, "editRender", function (p) {
|
|
76
|
-
var _this$componentConfig, _this$componentConfig2, _this$effects;
|
|
76
|
+
var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4, _this$effects;
|
|
77
77
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
78
78
|
title: _this.name,
|
|
79
79
|
name: _this.id,
|
|
@@ -81,6 +81,7 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
81
81
|
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
82
82
|
display: p === null || p === void 0 ? void 0 : p.display,
|
|
83
83
|
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,
|
|
84
|
+
tooltip: (_this$componentConfig3 = (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip) !== null && _this$componentConfig3 !== void 0 ? _this$componentConfig3 : '',
|
|
84
85
|
component: /*#__PURE__*/React.createElement(LogisticsInterception, _extends({}, _this.componentConfig, {
|
|
85
86
|
logisticsOptions: _this.expressDateInstance.getExpressData(),
|
|
86
87
|
expressInterceptData: _this.expressInterceptData.getExpressData(),
|
|
@@ -129,11 +130,11 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
129
130
|
this.children = [this.express, this.expressCode, this.interceptType, this.interceptAddress, this.interceptLogisticsStatus, this.interceptSnapshot, this.interceptState];
|
|
130
131
|
this.rules = [{
|
|
131
132
|
validator: function validator(_, value) {
|
|
132
|
-
var _this$
|
|
133
|
-
if ((_this$
|
|
133
|
+
var _this$componentConfig5, _this$componentConfig6, _value$interceptAddre, _value$interceptSende;
|
|
134
|
+
if ((_this$componentConfig5 = _this.componentConfig) !== null && _this$componentConfig5 !== void 0 && _this$componentConfig5.required && (!(value !== null && value !== void 0 && value.interceptCompany) || !value.interceptCode)) {
|
|
134
135
|
return Promise.reject(new Error("请填写物流信息"));
|
|
135
136
|
}
|
|
136
|
-
if ((_this$
|
|
137
|
+
if ((_this$componentConfig6 = _this.componentConfig) !== null && _this$componentConfig6 !== void 0 && _this$componentConfig6.required && !(value !== null && value !== void 0 && value.interceptType)) {
|
|
137
138
|
return Promise.reject(new Error("请选择拦截类型"));
|
|
138
139
|
}
|
|
139
140
|
var showAddress = _this.expressInterceptData.getShowNewAddressMap()["".concat(value === null || value === void 0 ? void 0 : value.interceptType)];
|
|
@@ -26,7 +26,7 @@ import QueryLogisticsTrack from "../../commonComponents/QueryLogisticsTrack";
|
|
|
26
26
|
import CopyText from "../../commonComponents/CopyText";
|
|
27
27
|
var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
28
28
|
var _this = this,
|
|
29
|
-
_this$
|
|
29
|
+
_this$componentConfig5;
|
|
30
30
|
_classCallCheck(this, Logistics);
|
|
31
31
|
_defineProperty(this, "name", void 0);
|
|
32
32
|
_defineProperty(this, "columnHeader", void 0);
|
|
@@ -92,13 +92,14 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
92
92
|
return null;
|
|
93
93
|
});
|
|
94
94
|
_defineProperty(this, "editRender", function (p) {
|
|
95
|
-
var _this$componentConfig, _this$componentConfig2, _this$effects;
|
|
95
|
+
var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4, _this$effects;
|
|
96
96
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
97
97
|
title: _this.name,
|
|
98
98
|
name: _this.id,
|
|
99
99
|
rules: _this.rules,
|
|
100
100
|
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
101
101
|
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,
|
|
102
|
+
tooltip: (_this$componentConfig3 = (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip) !== null && _this$componentConfig3 !== void 0 ? _this$componentConfig3 : '',
|
|
102
103
|
component: /*#__PURE__*/React.createElement(LogisticsMoreInterception, _extends({}, _this.componentConfig, {
|
|
103
104
|
expressInterceptData: _this.expressInterceptData.getExpressData(),
|
|
104
105
|
isEditing: (_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : _this$effects.isEditing
|
|
@@ -144,7 +145,7 @@ var Logistics = /*#__PURE__*/_createClass(function Logistics(options) {
|
|
|
144
145
|
this.dataType = 'object';
|
|
145
146
|
this.children = [this.express, this.expressCode, this.interceptType, this.interceptAddress, this.interceptLogisticsStatus, this.interceptSnapshot];
|
|
146
147
|
this.rules = [{
|
|
147
|
-
required: (_this$
|
|
148
|
+
required: (_this$componentConfig5 = this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.required,
|
|
148
149
|
validator: function validator(_, value) {
|
|
149
150
|
if (value.some(function (t) {
|
|
150
151
|
return !(t !== null && t !== void 0 && t.interceptCompany) || !(t !== null && t !== void 0 && t.interceptCode);
|
|
@@ -23,7 +23,7 @@ import { isNull, ExpressInterceptData } from "@kmkf-fe-packages/kmkf-utils";
|
|
|
23
23
|
import CopyText from "../../commonComponents/CopyText";
|
|
24
24
|
var LogisticsMoreTrajectory = /*#__PURE__*/_createClass(function LogisticsMoreTrajectory(options) {
|
|
25
25
|
var _this = this,
|
|
26
|
-
_this$
|
|
26
|
+
_this$componentConfig5;
|
|
27
27
|
_classCallCheck(this, LogisticsMoreTrajectory);
|
|
28
28
|
_defineProperty(this, "name", void 0);
|
|
29
29
|
_defineProperty(this, "id", void 0);
|
|
@@ -45,7 +45,7 @@ var LogisticsMoreTrajectory = /*#__PURE__*/_createClass(function LogisticsMoreTr
|
|
|
45
45
|
_defineProperty(this, "dataType", void 0);
|
|
46
46
|
_defineProperty(this, "expressInterceptInstance", void 0);
|
|
47
47
|
_defineProperty(this, "editRender", function (p) {
|
|
48
|
-
var _this$componentConfig, _this$componentConfig2;
|
|
48
|
+
var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4;
|
|
49
49
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
50
50
|
title: _this.name,
|
|
51
51
|
name: _this.id,
|
|
@@ -53,6 +53,7 @@ var LogisticsMoreTrajectory = /*#__PURE__*/_createClass(function LogisticsMoreTr
|
|
|
53
53
|
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
54
54
|
display: p === null || p === void 0 ? void 0 : p.display,
|
|
55
55
|
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,
|
|
56
|
+
tooltip: (_this$componentConfig3 = (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip) !== null && _this$componentConfig3 !== void 0 ? _this$componentConfig3 : '',
|
|
56
57
|
component: /*#__PURE__*/React.createElement(MoreTrajectory, _this.componentConfig)
|
|
57
58
|
});
|
|
58
59
|
});
|
|
@@ -151,7 +152,7 @@ var LogisticsMoreTrajectory = /*#__PURE__*/_createClass(function LogisticsMoreTr
|
|
|
151
152
|
this.canSort = false;
|
|
152
153
|
this.dataType = "object";
|
|
153
154
|
this.children = [this.express, this.expressCode, this.expressSnapshot, this.trajectoryStatus, this.trajectoryLastUpdateTime, this.trajectoryLastLogisticsInfo];
|
|
154
|
-
this.rules = (_this$
|
|
155
|
+
this.rules = (_this$componentConfig5 = this.componentConfig) !== null && _this$componentConfig5 !== void 0 && _this$componentConfig5.required ? [{
|
|
155
156
|
required: true,
|
|
156
157
|
validator: function validator(_, value) {
|
|
157
158
|
var hasNoCompany = value.some(function (item) {
|
|
@@ -20,7 +20,7 @@ import TrajectoryLastUpdateTime from "./trajectoryLastUpdateTime";
|
|
|
20
20
|
import GetFormItem from "../GetFormItem";
|
|
21
21
|
var LogisticsTrajectory = /*#__PURE__*/_createClass(function LogisticsTrajectory(options) {
|
|
22
22
|
var _this = this,
|
|
23
|
-
_this$
|
|
23
|
+
_this$componentConfig5;
|
|
24
24
|
_classCallCheck(this, LogisticsTrajectory);
|
|
25
25
|
_defineProperty(this, "name", void 0);
|
|
26
26
|
_defineProperty(this, "id", void 0);
|
|
@@ -41,7 +41,7 @@ var LogisticsTrajectory = /*#__PURE__*/_createClass(function LogisticsTrajectory
|
|
|
41
41
|
_defineProperty(this, "children", void 0);
|
|
42
42
|
_defineProperty(this, "dataType", void 0);
|
|
43
43
|
_defineProperty(this, "editRender", function (p) {
|
|
44
|
-
var _this$componentConfig, _this$componentConfig2;
|
|
44
|
+
var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4;
|
|
45
45
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
46
46
|
title: _this.name,
|
|
47
47
|
name: _this.id,
|
|
@@ -49,6 +49,7 @@ var LogisticsTrajectory = /*#__PURE__*/_createClass(function LogisticsTrajectory
|
|
|
49
49
|
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
50
50
|
display: p === null || p === void 0 ? void 0 : p.display,
|
|
51
51
|
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,
|
|
52
|
+
tooltip: (_this$componentConfig3 = (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip) !== null && _this$componentConfig3 !== void 0 ? _this$componentConfig3 : '',
|
|
52
53
|
component: /*#__PURE__*/React.createElement(Trajectory, _extends({}, _this.componentConfig, {
|
|
53
54
|
options: _this.expressDateInstance.getExpressData()
|
|
54
55
|
}))
|
|
@@ -117,7 +118,7 @@ var LogisticsTrajectory = /*#__PURE__*/_createClass(function LogisticsTrajectory
|
|
|
117
118
|
this.canSort = false;
|
|
118
119
|
this.dataType = 'object';
|
|
119
120
|
this.children = [this.express, this.expressCode, this.expressSnapshot, this.trajectoryStatus, this.trajectoryLastUpdateTime, this.trajectoryLastLogisticsInfo];
|
|
120
|
-
this.rules = (_this$
|
|
121
|
+
this.rules = (_this$componentConfig5 = this.componentConfig) !== null && _this$componentConfig5 !== void 0 && _this$componentConfig5.required ? [{
|
|
121
122
|
validator: function validator(_, value) {
|
|
122
123
|
if (!value.trajectoryCompany) {
|
|
123
124
|
return Promise.reject(new Error('请选择物流公司'));
|
|
@@ -49,13 +49,14 @@ var msgTypeCh = {
|
|
|
49
49
|
wechat: '微信',
|
|
50
50
|
qq: 'QQ',
|
|
51
51
|
qywx: '企业微信',
|
|
52
|
-
YZDKH: '
|
|
52
|
+
YZDKH: '邮政拦截',
|
|
53
|
+
YT: '圆通拦截'
|
|
53
54
|
};
|
|
54
55
|
var MsgStatus = /*#__PURE__*/_createClass(function MsgStatus(options) {
|
|
55
56
|
var _this = this,
|
|
56
57
|
_typeMap$options$type,
|
|
57
58
|
_typeMap$options$type2,
|
|
58
|
-
_this$
|
|
59
|
+
_this$componentConfig5;
|
|
59
60
|
_classCallCheck(this, MsgStatus);
|
|
60
61
|
_defineProperty(this, "name", void 0);
|
|
61
62
|
_defineProperty(this, "id", void 0);
|
|
@@ -124,7 +125,7 @@ var MsgStatus = /*#__PURE__*/_createClass(function MsgStatus(options) {
|
|
|
124
125
|
}).join(',');
|
|
125
126
|
});
|
|
126
127
|
_defineProperty(this, "editRender", function (p) {
|
|
127
|
-
var _this$componentConfig, _this$componentConfig2, _typeMap$_this$type16;
|
|
128
|
+
var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4, _typeMap$_this$type16;
|
|
128
129
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
129
130
|
title: _this.name,
|
|
130
131
|
name: _this.id,
|
|
@@ -132,6 +133,7 @@ var MsgStatus = /*#__PURE__*/_createClass(function MsgStatus(options) {
|
|
|
132
133
|
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
133
134
|
display: p === null || p === void 0 ? void 0 : p.display,
|
|
134
135
|
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,
|
|
136
|
+
tooltip: (_this$componentConfig3 = (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip) !== null && _this$componentConfig3 !== void 0 ? _this$componentConfig3 : '',
|
|
135
137
|
component: /*#__PURE__*/React.createElement(Status, _extends({}, _this.componentConfig, {
|
|
136
138
|
type: (_typeMap$_this$type16 = typeMap[_this.type]) === null || _typeMap$_this$type16 === void 0 ? void 0 : _typeMap$_this$type16.type,
|
|
137
139
|
failValue: typeMap[_this.type].failValue
|
|
@@ -173,7 +175,7 @@ var MsgStatus = /*#__PURE__*/_createClass(function MsgStatus(options) {
|
|
|
173
175
|
this.canSort = false;
|
|
174
176
|
this.children = [];
|
|
175
177
|
this.dataType = 'object';
|
|
176
|
-
this.rules = (_this$
|
|
178
|
+
this.rules = (_this$componentConfig5 = this.componentConfig) !== null && _this$componentConfig5 !== void 0 && _this$componentConfig5.required ? [{
|
|
177
179
|
required: true,
|
|
178
180
|
validator: function validator(_, value) {
|
|
179
181
|
var hasNo = (value || []).some(function (item) {
|
|
@@ -15,7 +15,7 @@ import { isNull, filterFn as _filterFn } from "@kmkf-fe-packages/kmkf-utils";
|
|
|
15
15
|
import { SYMBOL } from "../../constant";
|
|
16
16
|
var BasicMultSelect = /*#__PURE__*/_createClass(function BasicMultSelect(options) {
|
|
17
17
|
var _this = this,
|
|
18
|
-
_this$
|
|
18
|
+
_this$componentConfig5;
|
|
19
19
|
_classCallCheck(this, BasicMultSelect);
|
|
20
20
|
_defineProperty(this, "name", void 0);
|
|
21
21
|
_defineProperty(this, "id", void 0);
|
|
@@ -59,7 +59,7 @@ var BasicMultSelect = /*#__PURE__*/_createClass(function BasicMultSelect(options
|
|
|
59
59
|
return record === null || record === void 0 ? void 0 : (_record2 = record["".concat(_this.id, "_basicMultSelect")]) === null || _record2 === void 0 ? void 0 : _record2.join(",");
|
|
60
60
|
});
|
|
61
61
|
_defineProperty(this, "editRender", function (p) {
|
|
62
|
-
var _this$componentConfig, _this$componentConfig2;
|
|
62
|
+
var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4;
|
|
63
63
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
64
64
|
title: _this.name,
|
|
65
65
|
name: _this.id,
|
|
@@ -67,6 +67,7 @@ var BasicMultSelect = /*#__PURE__*/_createClass(function BasicMultSelect(options
|
|
|
67
67
|
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
68
68
|
display: p === null || p === void 0 ? void 0 : p.display,
|
|
69
69
|
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,
|
|
70
|
+
tooltip: (_this$componentConfig3 = (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip) !== null && _this$componentConfig3 !== void 0 ? _this$componentConfig3 : '',
|
|
70
71
|
component: /*#__PURE__*/React.createElement(ApaasMultipleSelect, _extends({}, _this.componentConfig, {
|
|
71
72
|
placeholder: "\u8BF7\u8F93\u5165".concat(_this.name)
|
|
72
73
|
}))
|
|
@@ -103,6 +104,6 @@ var BasicMultSelect = /*#__PURE__*/_createClass(function BasicMultSelect(options
|
|
|
103
104
|
this.canSort = true;
|
|
104
105
|
this.children = [];
|
|
105
106
|
this.dataType = "array";
|
|
106
|
-
this.options = ((_this$
|
|
107
|
+
this.options = ((_this$componentConfig5 = this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.options) || [];
|
|
107
108
|
});
|
|
108
109
|
export default BasicMultSelect;
|
|
@@ -51,7 +51,7 @@ var OrdinaryHeader = /*#__PURE__*/_createClass(function OrdinaryHeader(options)
|
|
|
51
51
|
return value !== null && value !== void 0 ? value : '--';
|
|
52
52
|
});
|
|
53
53
|
_defineProperty(this, "editRender", function (p) {
|
|
54
|
-
var _this$componentConfig, _this$componentConfig2;
|
|
54
|
+
var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4;
|
|
55
55
|
var handleChangeSerial = function handleChangeSerial(value) {
|
|
56
56
|
var _this$effects, _this$effects$form;
|
|
57
57
|
(_this$effects = _this.effects) === null || _this$effects === void 0 ? void 0 : (_this$effects$form = _this$effects.form) === null || _this$effects$form === void 0 ? void 0 : _this$effects$form.setFieldsValue(_defineProperty({}, "".concat(_this.id, "_ordinarySerial"), value));
|
|
@@ -63,6 +63,7 @@ var OrdinaryHeader = /*#__PURE__*/_createClass(function OrdinaryHeader(options)
|
|
|
63
63
|
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
64
64
|
display: p === null || p === void 0 ? void 0 : p.display,
|
|
65
65
|
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,
|
|
66
|
+
tooltip: (_this$componentConfig3 = (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip) !== null && _this$componentConfig3 !== void 0 ? _this$componentConfig3 : '',
|
|
66
67
|
component: /*#__PURE__*/React.createElement(Header, _extends({}, _this.componentConfig, {
|
|
67
68
|
handleChangeSerial: handleChangeSerial
|
|
68
69
|
}))
|
|
@@ -53,7 +53,7 @@ var OrdinaryMoney = /*#__PURE__*/_createClass(function OrdinaryMoney(options) {
|
|
|
53
53
|
}) : null;
|
|
54
54
|
});
|
|
55
55
|
_defineProperty(this, "editRender", function (p) {
|
|
56
|
-
var _this$componentConfig, _this$componentConfig2;
|
|
56
|
+
var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4;
|
|
57
57
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
58
58
|
title: _this.name,
|
|
59
59
|
name: _this.id,
|
|
@@ -61,6 +61,7 @@ var OrdinaryMoney = /*#__PURE__*/_createClass(function OrdinaryMoney(options) {
|
|
|
61
61
|
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
62
62
|
display: p === null || p === void 0 ? void 0 : p.display,
|
|
63
63
|
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,
|
|
64
|
+
tooltip: (_this$componentConfig3 = (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip) !== null && _this$componentConfig3 !== void 0 ? _this$componentConfig3 : '',
|
|
64
65
|
component: /*#__PURE__*/React.createElement(ApaasInput, _this.componentConfig)
|
|
65
66
|
});
|
|
66
67
|
});
|
|
@@ -51,7 +51,7 @@ var OrdinarySerial = /*#__PURE__*/_createClass(function OrdinarySerial(options)
|
|
|
51
51
|
return value !== null && value !== void 0 ? value : '--';
|
|
52
52
|
});
|
|
53
53
|
_defineProperty(this, "editRender", function (p) {
|
|
54
|
-
var _this$componentConfig, _this$componentConfig2;
|
|
54
|
+
var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4;
|
|
55
55
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
56
56
|
title: _this.name,
|
|
57
57
|
name: _this.id,
|
|
@@ -59,6 +59,7 @@ var OrdinarySerial = /*#__PURE__*/_createClass(function OrdinarySerial(options)
|
|
|
59
59
|
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
60
60
|
display: p === null || p === void 0 ? void 0 : p.display,
|
|
61
61
|
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,
|
|
62
|
+
tooltip: (_this$componentConfig3 = (_this$componentConfig4 = _this.componentConfig) === null || _this$componentConfig4 === void 0 ? void 0 : _this$componentConfig4.tooltip) !== null && _this$componentConfig3 !== void 0 ? _this$componentConfig3 : '',
|
|
62
63
|
component: /*#__PURE__*/React.createElement(ApaasInput, _this.componentConfig)
|
|
63
64
|
});
|
|
64
65
|
});
|