@kmkf-fe-packages/services-components 2.2.38-rc.0 → 2.2.38
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/BS/BsLogistics/index.js +0 -2
- package/dist/esm/components/CommonInput/index.js +3 -11
- package/dist/esm/components/Input/index.d.ts +4 -4
- package/dist/esm/components/Input/index.js +31 -35
- package/dist/esm/components/StatusSelect/index.js +0 -4
- package/dist/esm/factory.d.ts +1 -1
- package/dist/esm/factory.js +0 -3
- package/package.json +4 -4
|
@@ -207,7 +207,6 @@ var BsLogistics = /*#__PURE__*/_createClass(function BsLogistics(_options) {
|
|
|
207
207
|
_defineProperty(this, "editRender", function (p) {
|
|
208
208
|
var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4, _this$expressDateInst2, _typeMap$_this$type6;
|
|
209
209
|
var onLogisticsCodeBlur = function onLogisticsCodeBlur(val) {
|
|
210
|
-
var _p$onBlur2;
|
|
211
210
|
if (_this.isChange) {
|
|
212
211
|
var _this$effects, _this$effects$form, _p$onBlur;
|
|
213
212
|
(_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({
|
|
@@ -216,7 +215,6 @@ var BsLogistics = /*#__PURE__*/_createClass(function BsLogistics(_options) {
|
|
|
216
215
|
_this.type === "SKX_RETURN_LOGISTICS" && (p === null || p === void 0 ? void 0 : (_p$onBlur = p.onBlur) === null || _p$onBlur === void 0 ? void 0 : _p$onBlur.call(p, val, "skxReturnTHLogisticsCode"));
|
|
217
216
|
_this.isChange = false;
|
|
218
217
|
}
|
|
219
|
-
_this.type === "SKX_LOGISTICS" && (p === null || p === void 0 ? void 0 : (_p$onBlur2 = p.onBlur) === null || _p$onBlur2 === void 0 ? void 0 : _p$onBlur2.call(p, val, "skxLogisticsCode"));
|
|
220
218
|
};
|
|
221
219
|
var onLogisticsCodeChange = function onLogisticsCodeChange() {
|
|
222
220
|
_this.isChange = true;
|
|
@@ -17,14 +17,6 @@ var INPUT_MAP = {
|
|
|
17
17
|
key: "businessOrderNo",
|
|
18
18
|
disabled: true,
|
|
19
19
|
placeholder: "自动获取无需填写"
|
|
20
|
-
},
|
|
21
|
-
REPAIR_ORDER_SN: {
|
|
22
|
-
key: "repairOrderSn",
|
|
23
|
-
placeholder: "请输入维修单编号"
|
|
24
|
-
},
|
|
25
|
-
REPAIR_ORDER_ID: {
|
|
26
|
-
key: "repairOrderId",
|
|
27
|
-
placeholder: "请输入维修单id"
|
|
28
20
|
}
|
|
29
21
|
};
|
|
30
22
|
var CommonInput = /*#__PURE__*/_createClass(function CommonInput(options) {
|
|
@@ -70,7 +62,7 @@ var CommonInput = /*#__PURE__*/_createClass(function CommonInput(options) {
|
|
|
70
62
|
return (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(INPUT_MAP[_this.type].key)]) !== null && _record !== void 0 ? _record : "--";
|
|
71
63
|
});
|
|
72
64
|
_defineProperty(this, "editRender", function (p) {
|
|
73
|
-
var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4
|
|
65
|
+
var _this$componentConfig, _this$componentConfig2, _this$componentConfig3, _this$componentConfig4;
|
|
74
66
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
75
67
|
title: _this.name,
|
|
76
68
|
name: _this.id,
|
|
@@ -78,10 +70,10 @@ var CommonInput = /*#__PURE__*/_createClass(function CommonInput(options) {
|
|
|
78
70
|
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
79
71
|
display: p === null || p === void 0 ? void 0 : p.display,
|
|
80
72
|
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,
|
|
81
|
-
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 :
|
|
73
|
+
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 : '',
|
|
82
74
|
component: /*#__PURE__*/React.createElement(Input, _extends({}, _this.componentConfig, {
|
|
83
75
|
placeholder: INPUT_MAP[_this.type].placeholder || "\u8BF7\u8F93\u5165".concat(_this.name),
|
|
84
|
-
disabled: INPUT_MAP[_this.type].disabled
|
|
76
|
+
disabled: INPUT_MAP[_this.type].disabled
|
|
85
77
|
}))
|
|
86
78
|
});
|
|
87
79
|
});
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { ComponentInterface, PickOption, ColumnConfig, Record } from
|
|
2
|
-
import React from
|
|
1
|
+
import { ComponentInterface, PickOption, ColumnConfig, Record } from '../../type';
|
|
2
|
+
import React from 'react';
|
|
3
3
|
declare class BasicInput implements ComponentInterface {
|
|
4
4
|
name: string;
|
|
5
5
|
id: string;
|
|
6
6
|
sortField: string;
|
|
7
7
|
type: string;
|
|
8
8
|
rules: any[];
|
|
9
|
-
componentConfig: ComponentInterface[
|
|
9
|
+
componentConfig: ComponentInterface['componentConfig'];
|
|
10
10
|
isCombinationComponent: boolean;
|
|
11
11
|
formField: string;
|
|
12
12
|
canSort: boolean;
|
|
13
13
|
children: ComponentInterface[];
|
|
14
|
-
dataType: ComponentInterface[
|
|
14
|
+
dataType: ComponentInterface['dataType'];
|
|
15
15
|
templateId?: string;
|
|
16
16
|
flowTemplateKey?: string;
|
|
17
17
|
workOrderUniqueKey?: string;
|
|
@@ -9,11 +9,11 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
9
9
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
10
10
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
11
11
|
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
12
|
-
import React from
|
|
13
|
-
import { ApaasInput } from
|
|
12
|
+
import React from 'react';
|
|
13
|
+
import { ApaasInput } from '@kmkf-fe-packages/basic-components';
|
|
14
14
|
import GetFormItem from "../GetFormItem";
|
|
15
15
|
import ItemView from "../../commonComponents/ItemView";
|
|
16
|
-
import { isNull, filterFn as _filterFn } from
|
|
16
|
+
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
17
17
|
import { SYMBOL, batchInput, SEARCH_OPTIONS } from "../../constant";
|
|
18
18
|
import { replaceCheck } from "../../service/api";
|
|
19
19
|
var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
@@ -36,7 +36,7 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
36
36
|
_defineProperty(this, "workOrderUniqueKey", void 0);
|
|
37
37
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
38
38
|
var _record;
|
|
39
|
-
return /*#__PURE__*/React.createElement("span", null, (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_input")]) !== null && _record !== void 0 ? _record :
|
|
39
|
+
return /*#__PURE__*/React.createElement("span", null, (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_input")]) !== null && _record !== void 0 ? _record : '--');
|
|
40
40
|
});
|
|
41
41
|
_defineProperty(this, "renderLog", function (r) {
|
|
42
42
|
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_input")])) return null;
|
|
@@ -48,7 +48,7 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
48
48
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
49
49
|
var _this$componentConfig;
|
|
50
50
|
if (!(record !== null && record !== void 0 && record["".concat(_this.id, "_input")])) {
|
|
51
|
-
return
|
|
51
|
+
return '--';
|
|
52
52
|
}
|
|
53
53
|
return (_this$componentConfig = _this.componentConfig) !== null && _this$componentConfig !== void 0 && _this$componentConfig.isNumber ? Number(record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_input")]) : record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_input")];
|
|
54
54
|
});
|
|
@@ -67,18 +67,14 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
67
67
|
rules: _this.rules,
|
|
68
68
|
hidden: p === null || p === void 0 ? void 0 : p.hidden,
|
|
69
69
|
display: p === null || p === void 0 ? void 0 : p.display,
|
|
70
|
-
validateTrigger: [
|
|
70
|
+
validateTrigger: ['onBlur', 'onChange'],
|
|
71
71
|
required: (_this$componentConfig2 = (_this$componentConfig3 = _this.componentConfig) === null || _this$componentConfig3 === void 0 ? void 0 : _this$componentConfig3.required) !== null && _this$componentConfig2 !== void 0 ? _this$componentConfig2 : false,
|
|
72
|
-
tooltip: (_this$componentConfig4 = _this.componentConfig) !== null && _this$componentConfig4 !== void 0 && _this$componentConfig4.showTooltip ? (_this$componentConfig5 = _this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.tooltip :
|
|
72
|
+
tooltip: (_this$componentConfig4 = _this.componentConfig) !== null && _this$componentConfig4 !== void 0 && _this$componentConfig4.showTooltip ? (_this$componentConfig5 = _this.componentConfig) === null || _this$componentConfig5 === void 0 ? void 0 : _this$componentConfig5.tooltip : '',
|
|
73
73
|
component: /*#__PURE__*/React.createElement(ApaasInput, _extends({}, _this.componentConfig, {
|
|
74
74
|
placeholder: "\u8BF7\u8F93\u5165".concat(_this.name),
|
|
75
75
|
onChange: function onChange(e) {
|
|
76
76
|
var _this$componentConfig6, _e$target;
|
|
77
77
|
return p === null || p === void 0 ? void 0 : p.onChange((_this$componentConfig6 = _this.componentConfig) !== null && _this$componentConfig6 !== void 0 && _this$componentConfig6.isNumber ? e : e === null || e === void 0 ? void 0 : (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.value);
|
|
78
|
-
},
|
|
79
|
-
onBlur: function onBlur(e) {
|
|
80
|
-
var _this$componentConfig7, _e$target2;
|
|
81
|
-
return p === null || p === void 0 ? void 0 : p.onBlur((_this$componentConfig7 = _this.componentConfig) !== null && _this$componentConfig7 !== void 0 && _this$componentConfig7.isNumber ? e : e === null || e === void 0 ? void 0 : (_e$target2 = e.target) === null || _e$target2 === void 0 ? void 0 : _e$target2.value, "input");
|
|
82
78
|
}
|
|
83
79
|
}))
|
|
84
80
|
});
|
|
@@ -94,17 +90,17 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
94
90
|
// 过滤组件id
|
|
95
91
|
name: item.name,
|
|
96
92
|
// 过滤组件名称
|
|
97
|
-
filterComponentType:
|
|
93
|
+
filterComponentType: 'SelectInput',
|
|
98
94
|
props: {
|
|
99
95
|
filterOptions: SEARCH_OPTIONS
|
|
100
96
|
},
|
|
101
97
|
filterFn: function filterFn(value) {
|
|
102
98
|
return function (i) {
|
|
103
|
-
return "".concat(_filterFn.filterTableListItemColumnValue(i, item.id,
|
|
99
|
+
return "".concat(_filterFn.filterTableListItemColumnValue(i, item.id, 'input')).includes(value);
|
|
104
100
|
};
|
|
105
101
|
},
|
|
106
102
|
formatFilterValue: function formatFilterValue(value) {
|
|
107
|
-
if ([
|
|
103
|
+
if (['in', 'anylike'].includes(value.type)) {
|
|
108
104
|
return batchInput(value.keywords);
|
|
109
105
|
} else {
|
|
110
106
|
return value;
|
|
@@ -123,7 +119,7 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
123
119
|
this.workOrderUniqueKey = options === null || options === void 0 ? void 0 : options.workOrderUniqueKey;
|
|
124
120
|
this.rules = [{
|
|
125
121
|
validator: function validator(_, value) {
|
|
126
|
-
var _this$componentConfig8, _this$componentConfig9, _this$componentConfig10, _this$componentConfig11, _this$componentConfig12
|
|
122
|
+
var _this$componentConfig7, _this$componentConfig8, _this$componentConfig9, _this$componentConfig10, _this$componentConfig11, _this$componentConfig12;
|
|
127
123
|
if (!value) {
|
|
128
124
|
return Promise.resolve();
|
|
129
125
|
}
|
|
@@ -131,23 +127,23 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
131
127
|
var mail = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9]+(\.[a-zA-Z0-9-]+)*\.([a-zA-Z]{2,})$/;
|
|
132
128
|
var phone = /^1\d{10}$/;
|
|
133
129
|
var testList = [];
|
|
134
|
-
((_this$
|
|
135
|
-
((_this$
|
|
136
|
-
((_this$
|
|
130
|
+
((_this$componentConfig7 = _this.componentConfig) === null || _this$componentConfig7 === void 0 ? void 0 : _this$componentConfig7.isNumber) && testList.push(number);
|
|
131
|
+
((_this$componentConfig8 = _this.componentConfig) === null || _this$componentConfig8 === void 0 ? void 0 : _this$componentConfig8.isMail) && testList.push(mail);
|
|
132
|
+
((_this$componentConfig9 = _this.componentConfig) === null || _this$componentConfig9 === void 0 ? void 0 : _this$componentConfig9.isPhone) && testList.push(phone);
|
|
137
133
|
var isTest = testList.some(function (item) {
|
|
138
134
|
return item.test(value);
|
|
139
135
|
});
|
|
140
136
|
if (testList.length && !isTest) {
|
|
141
|
-
return Promise.reject(new Error(
|
|
137
|
+
return Promise.reject(new Error('请填写正确的格式'));
|
|
142
138
|
}
|
|
143
|
-
if ((_this$
|
|
144
|
-
return Promise.reject(new Error(
|
|
139
|
+
if ((_this$componentConfig10 = _this.componentConfig) !== null && _this$componentConfig10 !== void 0 && _this$componentConfig10.isNumber && value > Number.MAX_SAFE_INTEGER) {
|
|
140
|
+
return Promise.reject(new Error('输入数值超出最大数字上限,请使用文本框替代当前数字输入框组件'));
|
|
145
141
|
}
|
|
146
|
-
if ((_this$
|
|
147
|
-
var _this$
|
|
148
|
-
var rulesList = (_this$
|
|
149
|
-
var _this$
|
|
150
|
-
return (((_this$
|
|
142
|
+
if ((_this$componentConfig11 = _this.componentConfig) !== null && _this$componentConfig11 !== void 0 && (_this$componentConfig12 = _this$componentConfig11.rulesOptions) !== null && _this$componentConfig12 !== void 0 && _this$componentConfig12.length) {
|
|
143
|
+
var _this$componentConfig13;
|
|
144
|
+
var rulesList = (_this$componentConfig13 = _this.componentConfig) === null || _this$componentConfig13 === void 0 ? void 0 : _this$componentConfig13.rulesOptions.filter(function (item) {
|
|
145
|
+
var _this$componentConfig14;
|
|
146
|
+
return (((_this$componentConfig14 = _this.componentConfig) === null || _this$componentConfig14 === void 0 ? void 0 : _this$componentConfig14.selectRules) || []).includes(item.id);
|
|
151
147
|
});
|
|
152
148
|
if (!rulesList.length) {
|
|
153
149
|
return Promise.resolve();
|
|
@@ -167,11 +163,11 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
167
163
|
return Promise.resolve();
|
|
168
164
|
}
|
|
169
165
|
}, {
|
|
170
|
-
validateTrigger:
|
|
166
|
+
validateTrigger: 'onBlur',
|
|
171
167
|
validator: function () {
|
|
172
168
|
var _validator = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(_, value) {
|
|
173
|
-
var _this$
|
|
174
|
-
var _resultList$, params, _yield$replaceCheck, resultList, _this$
|
|
169
|
+
var _this$componentConfig15;
|
|
170
|
+
var _resultList$, params, _yield$replaceCheck, resultList, _this$componentConfig16, _this$componentConfig17, _this$componentConfig18, messageMap;
|
|
175
171
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
176
172
|
while (1) switch (_context.prev = _context.next) {
|
|
177
173
|
case 0:
|
|
@@ -181,7 +177,7 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
181
177
|
}
|
|
182
178
|
return _context.abrupt("return", Promise.resolve());
|
|
183
179
|
case 2:
|
|
184
|
-
if (!((_this$
|
|
180
|
+
if (!((_this$componentConfig15 = _this.componentConfig) !== null && _this$componentConfig15 !== void 0 && _this$componentConfig15.replaceWarn)) {
|
|
185
181
|
_context.next = 11;
|
|
186
182
|
break;
|
|
187
183
|
}
|
|
@@ -204,11 +200,11 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
204
200
|
break;
|
|
205
201
|
}
|
|
206
202
|
messageMap = {
|
|
207
|
-
currWorkOrder:
|
|
208
|
-
currFlow:
|
|
209
|
-
allWorkOrder:
|
|
203
|
+
currWorkOrder: '数据已存在本模版同节点中,不能重复提交',
|
|
204
|
+
currFlow: '数据已存在本模版中,不能重复提交',
|
|
205
|
+
allWorkOrder: '数据已存在其他模版中,不能重复提交'
|
|
210
206
|
};
|
|
211
|
-
return _context.abrupt("return", Promise.reject(new Error(messageMap[(_this$
|
|
207
|
+
return _context.abrupt("return", Promise.reject(new Error(messageMap[(_this$componentConfig16 = (_this$componentConfig17 = _this.componentConfig) === null || _this$componentConfig17 === void 0 ? void 0 : (_this$componentConfig18 = _this$componentConfig17.repeatConfig) === null || _this$componentConfig18 === void 0 ? void 0 : _this$componentConfig18.repeatRange) !== null && _this$componentConfig16 !== void 0 ? _this$componentConfig16 : ''] || '内容已存在,不能重复提交')));
|
|
212
208
|
case 11:
|
|
213
209
|
case "end":
|
|
214
210
|
return _context.stop();
|
|
@@ -224,6 +220,6 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
224
220
|
this.isCombinationComponent = false;
|
|
225
221
|
this.canSort = true;
|
|
226
222
|
this.children = [];
|
|
227
|
-
this.dataType = options !== null && options !== void 0 && (_options$componentCon = options.componentConfig) !== null && _options$componentCon !== void 0 && _options$componentCon.isNumber ?
|
|
223
|
+
this.dataType = options !== null && options !== void 0 && (_options$componentCon = options.componentConfig) !== null && _options$componentCon !== void 0 && _options$componentCon.isNumber ? 'number' : 'string';
|
|
228
224
|
});
|
|
229
225
|
export default BasicInput;
|
|
@@ -36,10 +36,6 @@ var selectTypeMap = {
|
|
|
36
36
|
key: "agreeRefundStatusValue",
|
|
37
37
|
info: "agreeRefundStatusReason"
|
|
38
38
|
}),
|
|
39
|
-
REPAIR_ORDER_STATUS: getSelectTypeAttribute({
|
|
40
|
-
key: "repairOrderStatusValue",
|
|
41
|
-
info: "repairOrderStatusReason"
|
|
42
|
-
}),
|
|
43
39
|
REJECT_REFUND_STATUS: getSelectTypeAttribute({
|
|
44
40
|
key: "rejectRefundStatusValue",
|
|
45
41
|
info: "rejectRefundStatusReason"
|
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, WlnGoods, BsPosting, MsgStatus, NodeInput, FlowWorkOrderStatus, WdtGoods, WdtReturn, WdtExchange, CommonInput, PaymentVoucherCode, Label, WdtReissue, GyReissue, AfterSalesOrderId, BsE3Goods, PublicGoods, PublicReissueGoods, PublicExchange, GyGoods, BsE3Reissue, MemberLevel, GyReturn, AsyncSelect, WdtShopSelect, KmVideo, BasicTypeInput, SkxIdInputSelect, SkxGoods, BasicSelectOption, OrderSubForm, FlowOverallStatusSelect } from "./index";
|
|
2
2
|
import { PickOption } from "./type";
|
|
3
|
-
export declare const factory: (type: string, options: PickOption) => BsLogistics | CommonInput | BasicInput |
|
|
3
|
+
export declare const factory: (type: string, options: PickOption) => BsLogistics | CommonInput | BasicInput | StatusSelect | BasicTypeInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicSelectOption | 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 | Payment | ReissueLogistics | JstItemSelect | JstSendGood | JstSupply | BsSystemOrder | BsGoods | BsE3Goods | PublicGoods | PublicReissueGoods | PublicExchange | BsE3Reissue | BsExchange | BsReissue | BsReturn | FlowStatusSelect | FlowMarkSelect | FlowTag | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsMoreInterception | LogisticsTrajectory | LogisticsMoreTrajectory | PlatForm | ShopInput | Submitter | PrevSubmitter | FlowCreator | Handler | CompletedUser | FlowWorkOrderId | Calculation | CommonSystemOrder | CommonMultiStatus | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods | BsPosting | NodeInput | FlowWorkOrderStatus | MsgStatus | WdtGoods | WdtReissue | WdtReturn | WdtExchange | WdtShopSelect | KmVideo | PaymentVoucherCode | Label | MemberLevel | AfterSalesOrderId | GyGoods | GyReissue | GyReturn | AsyncSelect | SkxIdInputSelect | SkxGoods | OrderSubForm | FlowOverallStatusSelect;
|
package/dist/esm/factory.js
CHANGED
|
@@ -228,7 +228,6 @@ export var factory = function factory(type, options) {
|
|
|
228
228
|
case "AGREE_RETURN_GOODS_STATUS":
|
|
229
229
|
case "REJECT_RETURN_GOODS_STATUS":
|
|
230
230
|
case "RETURN_EXCHANGE_GOODS_REVIEW_STATUS":
|
|
231
|
-
case "REPAIR_ORDER_STATUS":
|
|
232
231
|
return new StatusSelect(options);
|
|
233
232
|
case "RETURN_GOODS_STATUS":
|
|
234
233
|
case "EXCHANGE_STATUS":
|
|
@@ -265,8 +264,6 @@ export var factory = function factory(type, options) {
|
|
|
265
264
|
// 万里牛商品
|
|
266
265
|
return new WdtGoods(options);
|
|
267
266
|
case "BUSINESS_ORDER_NO":
|
|
268
|
-
case "REPAIR_ORDER_SN":
|
|
269
|
-
case "REPAIR_ORDER_ID":
|
|
270
267
|
return new CommonInput(options);
|
|
271
268
|
case "PAYMENT_VOUCHER_CODE":
|
|
272
269
|
return new PaymentVoucherCode(options);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "2.2.38
|
|
3
|
+
"version": "2.2.38",
|
|
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.2.38
|
|
25
|
-
"@kmkf-fe-packages/kmkf-utils": "2.2.
|
|
24
|
+
"@kmkf-fe-packages/basic-components": "2.2.38",
|
|
25
|
+
"@kmkf-fe-packages/kmkf-utils": "2.2.36",
|
|
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": "741f07c6a183ec58d39233a2eded57eb1f782fa1",
|
|
45
45
|
"gitHooks": {
|
|
46
46
|
"pre-commit": "lint-staged"
|
|
47
47
|
}
|