@kmkf-fe-packages/services-components 0.8.17-alpha.20 → 0.8.17-alpha.21
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
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
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 StatusSelect 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[
|
|
15
|
-
options: ComponentInterface[
|
|
14
|
+
dataType: ComponentInterface['dataType'];
|
|
15
|
+
options: ComponentInterface['options'];
|
|
16
16
|
constructor(options: PickOption);
|
|
17
17
|
editRender: (p: any) => React.JSX.Element;
|
|
18
18
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
@@ -8,69 +8,69 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
8
8
|
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; }
|
|
9
9
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
10
10
|
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); }
|
|
11
|
-
import React from
|
|
12
|
-
import { CommonStatus } from
|
|
11
|
+
import React from 'react';
|
|
12
|
+
import { CommonStatus } from '@kmkf-fe-packages/basic-components';
|
|
13
13
|
import GetFormItem from "../GetFormItem";
|
|
14
14
|
import ItemView from "../../commonComponents/ItemView";
|
|
15
|
-
import { isNull, filterFn as _filterFn } from
|
|
15
|
+
import { isNull, filterFn as _filterFn } from '@kmkf-fe-packages/kmkf-utils';
|
|
16
16
|
import { SYMBOL } from "../../constant";
|
|
17
17
|
// const statusOptions: Array<{ value: string }> = [{ value: '成功' }, { value: '失败' }]
|
|
18
18
|
var selectTypeMap = {
|
|
19
19
|
REISSUE_STATUS: {
|
|
20
20
|
options: [{
|
|
21
|
-
value:
|
|
22
|
-
label:
|
|
23
|
-
color:
|
|
21
|
+
value: '成功',
|
|
22
|
+
label: '成功',
|
|
23
|
+
color: '#52c41a'
|
|
24
24
|
}, {
|
|
25
|
-
value:
|
|
26
|
-
label:
|
|
27
|
-
color:
|
|
25
|
+
value: '失败',
|
|
26
|
+
label: '失败',
|
|
27
|
+
color: '#ff4d4f'
|
|
28
28
|
}],
|
|
29
|
-
key:
|
|
30
|
-
info:
|
|
31
|
-
failValue:
|
|
29
|
+
key: 'reissueStatusValue',
|
|
30
|
+
info: 'reissueReason',
|
|
31
|
+
failValue: '失败'
|
|
32
32
|
},
|
|
33
33
|
EXCHANGE_STATUS: {
|
|
34
34
|
options: [{
|
|
35
|
-
value:
|
|
36
|
-
label:
|
|
37
|
-
color:
|
|
35
|
+
value: '成功',
|
|
36
|
+
label: '成功',
|
|
37
|
+
color: '#52c41a'
|
|
38
38
|
}, {
|
|
39
|
-
value:
|
|
40
|
-
label:
|
|
41
|
-
color:
|
|
39
|
+
value: '失败',
|
|
40
|
+
label: '失败',
|
|
41
|
+
color: '#ff4d4f'
|
|
42
42
|
}],
|
|
43
|
-
key:
|
|
44
|
-
info:
|
|
45
|
-
failValue:
|
|
43
|
+
key: 'exchangeStatusValue',
|
|
44
|
+
info: 'exchangeReason',
|
|
45
|
+
failValue: '失败'
|
|
46
46
|
},
|
|
47
|
-
|
|
47
|
+
ADJUST_WORK_ORDER_STATUS: {
|
|
48
48
|
options: [{
|
|
49
|
-
value:
|
|
50
|
-
label:
|
|
51
|
-
color:
|
|
49
|
+
value: '成功',
|
|
50
|
+
label: '成功',
|
|
51
|
+
color: '#52c41a'
|
|
52
52
|
}, {
|
|
53
|
-
value:
|
|
54
|
-
label:
|
|
55
|
-
color:
|
|
53
|
+
value: '失败',
|
|
54
|
+
label: '失败',
|
|
55
|
+
color: '#ff4d4f'
|
|
56
56
|
}],
|
|
57
|
-
key:
|
|
58
|
-
info:
|
|
59
|
-
failValue:
|
|
57
|
+
key: 'adjustWorkOrderStatusValue',
|
|
58
|
+
info: 'adjustWorkOrderReason',
|
|
59
|
+
failValue: '失败'
|
|
60
60
|
},
|
|
61
61
|
RETURN_GOODS_STATUS: {
|
|
62
62
|
options: [{
|
|
63
|
-
value:
|
|
64
|
-
label:
|
|
65
|
-
color:
|
|
63
|
+
value: '成功',
|
|
64
|
+
label: '成功',
|
|
65
|
+
color: '#52c41a'
|
|
66
66
|
}, {
|
|
67
|
-
value:
|
|
68
|
-
label:
|
|
69
|
-
color:
|
|
67
|
+
value: '失败',
|
|
68
|
+
label: '失败',
|
|
69
|
+
color: '#ff4d4f'
|
|
70
70
|
}],
|
|
71
|
-
key:
|
|
72
|
-
info:
|
|
73
|
-
failValue:
|
|
71
|
+
key: 'returnGoodsStatusValue',
|
|
72
|
+
info: 'returnGoodsReason',
|
|
73
|
+
failValue: '失败'
|
|
74
74
|
}
|
|
75
75
|
};
|
|
76
76
|
var StatusSelect = /*#__PURE__*/_createClass(function StatusSelect(options) {
|
|
@@ -107,7 +107,7 @@ var StatusSelect = /*#__PURE__*/_createClass(function StatusSelect(options) {
|
|
|
107
107
|
var status = record === null || record === void 0 ? void 0 : (_record$_this$id = record[_this.id]) === null || _record$_this$id === void 0 ? void 0 : _record$_this$id.status;
|
|
108
108
|
var statusColor = ((_selectTypeMap$_this$ = selectTypeMap[_this.type].options.find(function (item) {
|
|
109
109
|
return item.value === status;
|
|
110
|
-
})) === null || _selectTypeMap$_this$ === void 0 ? void 0 : _selectTypeMap$_this$.color) ||
|
|
110
|
+
})) === null || _selectTypeMap$_this$ === void 0 ? void 0 : _selectTypeMap$_this$.color) || '#000';
|
|
111
111
|
return !isNull(record === null || record === void 0 ? void 0 : (_record$_this$id2 = record[_this.id]) === null || _record$_this$id2 === void 0 ? void 0 : _record$_this$id2.status) ? /*#__PURE__*/React.createElement(ItemView, {
|
|
112
112
|
id: _this.id,
|
|
113
113
|
label: _this.name,
|
|
@@ -115,7 +115,7 @@ var StatusSelect = /*#__PURE__*/_createClass(function StatusSelect(options) {
|
|
|
115
115
|
style: {
|
|
116
116
|
color: statusColor
|
|
117
117
|
}
|
|
118
|
-
}, record === null || record === void 0 ? void 0 : (_record$_this$id3 = record[_this.id]) === null || _record$_this$id3 === void 0 ? void 0 : _record$_this$id3.status), /*#__PURE__*/React.createElement("div", null, (record === null || record === void 0 ? void 0 : (_record$_this$id4 = record[_this.id]) === null || _record$_this$id4 === void 0 ? void 0 : _record$_this$id4.reason) ||
|
|
118
|
+
}, record === null || record === void 0 ? void 0 : (_record$_this$id3 = record[_this.id]) === null || _record$_this$id3 === void 0 ? void 0 : _record$_this$id3.status), /*#__PURE__*/React.createElement("div", null, (record === null || record === void 0 ? void 0 : (_record$_this$id4 = record[_this.id]) === null || _record$_this$id4 === void 0 ? void 0 : _record$_this$id4.reason) || ''))
|
|
119
119
|
}) : null;
|
|
120
120
|
});
|
|
121
121
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
@@ -123,12 +123,12 @@ var StatusSelect = /*#__PURE__*/_createClass(function StatusSelect(options) {
|
|
|
123
123
|
var status = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(selectTypeMap[_this.type].key)];
|
|
124
124
|
var statusColor = ((_selectTypeMap$_this$2 = selectTypeMap[_this.type].options.find(function (item) {
|
|
125
125
|
return item.value === status;
|
|
126
|
-
})) === null || _selectTypeMap$_this$2 === void 0 ? void 0 : _selectTypeMap$_this$2.color) ||
|
|
126
|
+
})) === null || _selectTypeMap$_this$2 === void 0 ? void 0 : _selectTypeMap$_this$2.color) || '#000';
|
|
127
127
|
return !isNull(status) ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
128
128
|
style: {
|
|
129
129
|
color: statusColor
|
|
130
130
|
}
|
|
131
|
-
}, record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(selectTypeMap[_this.type].key)]), /*#__PURE__*/React.createElement("div", null, (record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(selectTypeMap[_this.type].info)]) ||
|
|
131
|
+
}, record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(selectTypeMap[_this.type].key)]), /*#__PURE__*/React.createElement("div", null, (record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(selectTypeMap[_this.type].info)]) || '')) : '--';
|
|
132
132
|
});
|
|
133
133
|
_defineProperty(this, "renderLog", function (r) {
|
|
134
134
|
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat(selectTypeMap[_this.type].key)])) return null;
|
|
@@ -139,7 +139,7 @@ var StatusSelect = /*#__PURE__*/_createClass(function StatusSelect(options) {
|
|
|
139
139
|
});
|
|
140
140
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
141
141
|
var _record;
|
|
142
|
-
return (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(selectTypeMap[_this.type].key)]) !== null && _record !== void 0 ? _record :
|
|
142
|
+
return (_record = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(selectTypeMap[_this.type].key)]) !== null && _record !== void 0 ? _record : '--';
|
|
143
143
|
});
|
|
144
144
|
_defineProperty(this, "filterConfig", function (item) {
|
|
145
145
|
return {
|
|
@@ -149,7 +149,7 @@ var StatusSelect = /*#__PURE__*/_createClass(function StatusSelect(options) {
|
|
|
149
149
|
// 过滤组件id
|
|
150
150
|
name: item.name,
|
|
151
151
|
// 过滤组件名称
|
|
152
|
-
filterComponentType:
|
|
152
|
+
filterComponentType: 'MultipleSelect',
|
|
153
153
|
props: {
|
|
154
154
|
options: selectTypeMap[_this.type].options
|
|
155
155
|
},
|
|
@@ -172,7 +172,7 @@ var StatusSelect = /*#__PURE__*/_createClass(function StatusSelect(options) {
|
|
|
172
172
|
this.isCombinationComponent = false;
|
|
173
173
|
this.canSort = true;
|
|
174
174
|
this.children = [];
|
|
175
|
-
this.dataType =
|
|
175
|
+
this.dataType = 'string';
|
|
176
176
|
this.options = selectTypeMap[options.type].options;
|
|
177
177
|
});
|
|
178
178
|
export default StatusSelect;
|
package/dist/esm/factory.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { JstLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, CommonDataTime, TradeId, ShopName, ErpTradeId, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, Handler, CompletedUser, LogisticsInterception, LogisticsTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsSystemOrder, StatusSelect, CommonTradeId, DeliveryNo, Calculation } from
|
|
2
|
-
import { PickOption } from
|
|
3
|
-
export declare const factory: (type: string, options: PickOption) =>
|
|
1
|
+
import { JstLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicAddress, BasicCascader, BasicCheckbox, BasicDataTime, BasicSelect, BasicRadio, BasicTextArea, BasicPicture, BasicMultSelect, BasicGrade, BasicRate, BasicFile, BasicPosting, CommonDataTime, TradeId, ShopName, ErpTradeId, BuyerNick, ReceiverName, ReceiverMobile, ReceiverAddress, TradeDateTime, Logistics, ReturnLogistics, ActualPayment, ERemark, AliPay, ItemSelect, ItemId, ItemEnCode, SystemOrderNo, Ordinary, ThirdItemSelect, FlowStatusSelect, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, Handler, CompletedUser, LogisticsInterception, LogisticsTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsSystemOrder, StatusSelect, CommonTradeId, DeliveryNo, Calculation } from './index';
|
|
2
|
+
import { PickOption } from './type';
|
|
3
|
+
export declare const factory: (type: string, options: PickOption) => StatusSelect | BasicInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicRadio | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | BasicFile | BasicPosting | CommonDataTime | TradeId | ErpTradeId | ShopName | BuyerNick | ReceiverName | ReceiverMobile | ReceiverAddress | TradeDateTime | Logistics | ReturnLogistics | ActualPayment | ERemark | AliPay | ItemSelect | ItemId | ItemEnCode | SystemOrderNo | Ordinary | ThirdItemSelect | Payment | JstLogistics | JstItemSelect | JstSendGood | JstSupply | BsSystemOrder | BsGoods | BsExchange | BsReissue | DeliveryNo | FlowStatusSelect | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsTrajectory | PlatForm | ShopInput | Submitter | Handler | CompletedUser | FlowWorkOrderId | CommonTradeId | Calculation;
|
package/dist/esm/factory.js
CHANGED
|
@@ -2,145 +2,145 @@ import { JstLogistics, JstItemSelect, JstSupply, JstSendGood, BasicInput, BasicA
|
|
|
2
2
|
export var factory = function factory(type, options) {
|
|
3
3
|
var _options$componentCon;
|
|
4
4
|
switch (type) {
|
|
5
|
-
case
|
|
5
|
+
case 'PLATFORM_INPUT':
|
|
6
6
|
return new PlatForm();
|
|
7
|
-
case
|
|
7
|
+
case 'SHOP_INPUT':
|
|
8
8
|
return new ShopInput(options);
|
|
9
|
-
case
|
|
9
|
+
case 'OPERATOR_INPUT':
|
|
10
10
|
return new Submitter(options);
|
|
11
|
-
case
|
|
11
|
+
case 'HANDLER_INPUT':
|
|
12
12
|
return new Handler(options);
|
|
13
|
-
case
|
|
13
|
+
case 'COMPLETED_USER_INPUT':
|
|
14
14
|
return new CompletedUser(options);
|
|
15
|
-
case
|
|
15
|
+
case 'INPUT':
|
|
16
16
|
return new BasicInput(options);
|
|
17
|
-
case
|
|
17
|
+
case 'RADIO':
|
|
18
18
|
return new BasicRadio(options);
|
|
19
|
-
case
|
|
19
|
+
case 'TEXTAREA':
|
|
20
20
|
return new BasicTextArea(options);
|
|
21
|
-
case
|
|
21
|
+
case 'CHECKBOX':
|
|
22
22
|
return new BasicCheckbox(options);
|
|
23
|
-
case
|
|
23
|
+
case 'DATETIME':
|
|
24
24
|
return new BasicDataTime(options);
|
|
25
|
-
case
|
|
26
|
-
case
|
|
25
|
+
case 'SELECT':
|
|
26
|
+
case 'BUYER_MESSAGE_NOTICE':
|
|
27
27
|
return new BasicSelect(options);
|
|
28
|
-
case
|
|
28
|
+
case 'PICTURE':
|
|
29
29
|
return new BasicPicture(options);
|
|
30
|
-
case
|
|
30
|
+
case 'BASIC_MULT_SELECT':
|
|
31
31
|
return new BasicMultSelect(options);
|
|
32
|
-
case
|
|
32
|
+
case 'MULT_SELECT':
|
|
33
33
|
return new BasicCascader(options);
|
|
34
|
-
case
|
|
34
|
+
case 'BASIC_ADDRESS':
|
|
35
35
|
return new BasicAddress(options);
|
|
36
|
-
case
|
|
36
|
+
case 'BASIC_GRADE':
|
|
37
37
|
return new BasicGrade(options);
|
|
38
|
-
case
|
|
38
|
+
case 'RATE':
|
|
39
39
|
return new BasicRate(options);
|
|
40
|
-
case
|
|
40
|
+
case 'FILE':
|
|
41
41
|
return new BasicFile(options);
|
|
42
|
-
case
|
|
42
|
+
case 'POSTING':
|
|
43
43
|
return new BasicPosting(options);
|
|
44
|
-
case
|
|
44
|
+
case 'SHOP_NAME_INPUT':
|
|
45
45
|
return new ShopName(options);
|
|
46
|
-
case
|
|
46
|
+
case 'TRADE_ID_INPUT':
|
|
47
47
|
return options !== null && options !== void 0 && (_options$componentCon = options.componentConfig) !== null && _options$componentCon !== void 0 && _options$componentCon.erpFlag ? new ErpTradeId(options) : new TradeId(options);
|
|
48
|
-
case
|
|
48
|
+
case 'BUYER_NICK_INPUT':
|
|
49
49
|
return new BuyerNick(options);
|
|
50
|
-
case
|
|
50
|
+
case 'RECEIVER_NAME_INPUT':
|
|
51
51
|
return new ReceiverName(options);
|
|
52
|
-
case
|
|
52
|
+
case 'RECEIVER_MOBILE_INPUT':
|
|
53
53
|
return new ReceiverMobile(options);
|
|
54
|
-
case
|
|
54
|
+
case 'RECEIVER_ADDRESS_INPUT':
|
|
55
55
|
return new ReceiverAddress(options);
|
|
56
|
-
case
|
|
57
|
-
case
|
|
58
|
-
case
|
|
59
|
-
case
|
|
60
|
-
case
|
|
61
|
-
case
|
|
62
|
-
case
|
|
56
|
+
case 'TRADE_CREATE_DATETIME':
|
|
57
|
+
case 'TRADE_PAYMENT_DATETIME':
|
|
58
|
+
case 'TRADE_DELIVERY_DATETIME':
|
|
59
|
+
case 'TRADE_CLOSING_DATETIME':
|
|
60
|
+
case 'BS_SIGNING_TIME':
|
|
61
|
+
case 'BS_SEND_TIME':
|
|
62
|
+
case 'BS_TRADE_PAYMENT_TIME':
|
|
63
63
|
return new TradeDateTime(options);
|
|
64
|
-
case
|
|
64
|
+
case 'EXPRESS_LOGISTICS_SELECT':
|
|
65
65
|
return new Logistics(options);
|
|
66
|
-
case
|
|
66
|
+
case 'RETURN_LOGISTICS_SELECT':
|
|
67
67
|
return new ReturnLogistics(options);
|
|
68
|
-
case
|
|
69
|
-
case
|
|
70
|
-
case
|
|
71
|
-
case
|
|
68
|
+
case 'ACTUAL_PAYMENT':
|
|
69
|
+
case 'BS_NET_RECEIPTS':
|
|
70
|
+
case 'BS_DEPOSIT':
|
|
71
|
+
case 'BS_PACKAGE_WEIGHT':
|
|
72
72
|
return new ActualPayment(options);
|
|
73
|
-
case
|
|
73
|
+
case 'REMARK_INPUT':
|
|
74
74
|
return new ERemark(options);
|
|
75
|
-
case
|
|
75
|
+
case 'ITEM_SELECT':
|
|
76
76
|
return new ItemSelect(options);
|
|
77
|
-
case
|
|
77
|
+
case 'ITEM_ID':
|
|
78
78
|
return new ItemId(options);
|
|
79
|
-
case
|
|
79
|
+
case 'ITEM_ENCODE':
|
|
80
80
|
return new ItemEnCode(options);
|
|
81
|
-
case
|
|
81
|
+
case 'ALI_PAY_INPUT':
|
|
82
82
|
return new AliPay(options);
|
|
83
|
-
case
|
|
83
|
+
case 'ORDINARY_INVOICE':
|
|
84
84
|
return new Ordinary(options);
|
|
85
|
-
case
|
|
85
|
+
case 'ITEM_SELECT_THIRD':
|
|
86
86
|
return new ThirdItemSelect(options);
|
|
87
|
-
case
|
|
87
|
+
case 'ENTERPRISE_PAYMENT':
|
|
88
88
|
return new Payment(options);
|
|
89
|
-
case
|
|
89
|
+
case 'SYSTEM_ORDER_NO':
|
|
90
90
|
return new SystemOrderNo(options);
|
|
91
|
-
case
|
|
91
|
+
case 'LOGISTICS_INTERCEPTION':
|
|
92
92
|
return new LogisticsInterception(options);
|
|
93
|
-
case
|
|
93
|
+
case 'LOGISTICS_TRAJECTORY':
|
|
94
94
|
return new LogisticsTrajectory(options);
|
|
95
|
-
case
|
|
95
|
+
case 'WORK_ORDER_ID_INPUT':
|
|
96
96
|
return new WorkOrderId(options);
|
|
97
|
-
case
|
|
97
|
+
case 'FLOW_STATUS_SELECT':
|
|
98
98
|
return new FlowStatusSelect(options);
|
|
99
|
-
case
|
|
99
|
+
case 'COMPLETED_DATETIME':
|
|
100
100
|
return new CommonDataTime(options);
|
|
101
|
-
case
|
|
101
|
+
case 'CREATED_DATETIME':
|
|
102
102
|
return new CommonDataTime(options);
|
|
103
|
-
case
|
|
103
|
+
case 'UPDATE_DATETIME':
|
|
104
104
|
return new CommonDataTime(options);
|
|
105
|
-
case
|
|
105
|
+
case 'TEMPLATE_ID_INPUT':
|
|
106
106
|
return new TemplateSelect(options);
|
|
107
|
-
case
|
|
108
|
-
case
|
|
109
|
-
case
|
|
107
|
+
case 'JST_LOGISTICS':
|
|
108
|
+
case 'BS_LOGISTICS':
|
|
109
|
+
case 'REISSUE_LOGISTICS':
|
|
110
110
|
return new JstLogistics(options);
|
|
111
|
-
case
|
|
111
|
+
case 'JST_ITEM_SELECT_THIRD':
|
|
112
112
|
return new JstItemSelect(options);
|
|
113
|
-
case
|
|
113
|
+
case 'JST_SUPPLY':
|
|
114
114
|
return new JstSupply(options);
|
|
115
|
-
case
|
|
115
|
+
case 'BS_SYSTEM_ORDER':
|
|
116
116
|
return new BsSystemOrder(options);
|
|
117
|
-
case
|
|
118
|
-
case
|
|
117
|
+
case 'JST_SEND_GOOD':
|
|
118
|
+
case 'BS_SEND_GOOD':
|
|
119
119
|
return new JstSendGood(options);
|
|
120
|
-
case
|
|
120
|
+
case 'BS_POSTING':
|
|
121
121
|
return new BasicPosting(options);
|
|
122
|
-
case
|
|
122
|
+
case 'BS_GOODS':
|
|
123
123
|
return new BsGoods(options);
|
|
124
|
-
case
|
|
124
|
+
case 'BS_EXCHANGE_GOODS':
|
|
125
125
|
return new BsExchange(options);
|
|
126
|
-
case
|
|
126
|
+
case 'BS_REISSUE_GOODS':
|
|
127
127
|
return new BsReissue(options);
|
|
128
|
-
case
|
|
128
|
+
case 'BS_DELIVERY_NO':
|
|
129
129
|
return new DeliveryNo(options);
|
|
130
|
-
case
|
|
130
|
+
case 'FLOW_WORK_ORDER_ID_INPUT':
|
|
131
131
|
return new FlowWorkOrderId(options);
|
|
132
|
-
case
|
|
132
|
+
case 'OUTER_WORK_ORDER_ID_INPUT':
|
|
133
133
|
return new FlowWorkOrderId(options);
|
|
134
|
-
case
|
|
135
|
-
case
|
|
136
|
-
case
|
|
137
|
-
case
|
|
134
|
+
case 'REISSUE_STATUS':
|
|
135
|
+
case 'EXCHANGE_STATUS':
|
|
136
|
+
case 'ADJUST_WORK_ORDER_STATUS':
|
|
137
|
+
case 'RETURN_GOODS_STATUS':
|
|
138
138
|
return new StatusSelect(options);
|
|
139
|
-
case
|
|
140
|
-
case
|
|
141
|
-
case
|
|
139
|
+
case 'REISSUE_TRADE_ID':
|
|
140
|
+
case 'EXCHANGE_TRADE_ID':
|
|
141
|
+
case 'RETURN_GOODS_TRADE_ID':
|
|
142
142
|
return new CommonTradeId(options);
|
|
143
|
-
case
|
|
143
|
+
case 'NUMERICAL_CALCULATION':
|
|
144
144
|
return new Calculation(options);
|
|
145
145
|
default:
|
|
146
146
|
return new BasicInput(options);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "0.8.17-alpha.
|
|
3
|
+
"version": "0.8.17-alpha.21",
|
|
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": "
|
|
43
|
+
"gitHead": "319b660649aae071fd1c8fb928909761b317638f"
|
|
44
44
|
}
|