@kmkf-fe-packages/services-components 0.10.0-alpha.3 → 0.10.0-alpha.4
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.
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from
|
|
2
|
-
import React from
|
|
1
|
+
import { ComponentInterface, PickOption, ColumnConfig, ALignType, Record } from '../../type';
|
|
2
|
+
import React from 'react';
|
|
3
3
|
declare class CommonSystemOrder 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
|
align: ALignType;
|
|
11
11
|
isCombinationComponent: boolean;
|
|
12
12
|
formField: string;
|
|
13
13
|
canSort: boolean;
|
|
14
14
|
children: ComponentInterface[];
|
|
15
|
-
dataType: ComponentInterface[
|
|
15
|
+
dataType: ComponentInterface['dataType'];
|
|
16
16
|
constructor(options: PickOption);
|
|
17
17
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
18
18
|
renderPc: (value: any, record: Record) => React.JSX.Element;
|
|
@@ -6,28 +6,35 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
6
6
|
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; }
|
|
7
7
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
8
8
|
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); }
|
|
9
|
-
import React from
|
|
10
|
-
import some from
|
|
9
|
+
import React from 'react';
|
|
10
|
+
import some from 'lodash/some';
|
|
11
11
|
import GetFormItem from "../GetFormItem";
|
|
12
12
|
import { CommonOrderContent } from "../Common";
|
|
13
|
-
import { CommonSystemOrder as SystemOrder } from
|
|
13
|
+
import { CommonSystemOrder as SystemOrder } from '@kmkf-fe-packages/basic-components';
|
|
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
|
var typeMap = {
|
|
18
18
|
BS_DELIVERY_NO: {
|
|
19
|
-
key:
|
|
20
|
-
code:
|
|
21
|
-
name:
|
|
19
|
+
key: 'deliveryNoList',
|
|
20
|
+
code: 'deliveryNoIds',
|
|
21
|
+
name: '出库单',
|
|
22
22
|
type: 1,
|
|
23
|
-
valueKey:
|
|
23
|
+
valueKey: 'deliveryNo'
|
|
24
24
|
},
|
|
25
25
|
RETURN_GOODS_TRADE_ID: {
|
|
26
|
-
key:
|
|
27
|
-
code:
|
|
28
|
-
name:
|
|
26
|
+
key: 'returnGoodsTradeItemList',
|
|
27
|
+
code: 'returnGoodsTradeIdList',
|
|
28
|
+
name: '退货单id',
|
|
29
29
|
type: 2,
|
|
30
|
-
valueKey:
|
|
30
|
+
valueKey: 'returnGoodsTradeId'
|
|
31
|
+
},
|
|
32
|
+
REISSUE_TRADE_ID: {
|
|
33
|
+
key: 'tradeItemList',
|
|
34
|
+
code: 'tradeIdList',
|
|
35
|
+
name: '补货单id',
|
|
36
|
+
type: 3,
|
|
37
|
+
valueKey: 'billNo'
|
|
31
38
|
}
|
|
32
39
|
};
|
|
33
40
|
var CommonSystemOrder = /*#__PURE__*/_createClass(function CommonSystemOrder(options) {
|
|
@@ -50,6 +57,7 @@ var CommonSystemOrder = /*#__PURE__*/_createClass(function CommonSystemOrder(opt
|
|
|
50
57
|
_defineProperty(this, "dataType", void 0);
|
|
51
58
|
_defineProperty(this, "renderClient", function (record) {
|
|
52
59
|
var _typeMap$_this$type;
|
|
60
|
+
console.log('record', record, record === null || record === void 0 ? void 0 : record[_this.id]);
|
|
53
61
|
var isShow = Array.isArray(record === null || record === void 0 ? void 0 : record[_this.id]) ? some(record === null || record === void 0 ? void 0 : record[_this.id], function (item) {
|
|
54
62
|
return !isNull(item);
|
|
55
63
|
}) : false;
|
|
@@ -92,7 +100,7 @@ var CommonSystemOrder = /*#__PURE__*/_createClass(function CommonSystemOrder(opt
|
|
|
92
100
|
return (list || []).map(function (item) {
|
|
93
101
|
var _typeMap$_this$type8;
|
|
94
102
|
return item === null || item === void 0 ? void 0 : item[(_typeMap$_this$type8 = typeMap[_this.type]) === null || _typeMap$_this$type8 === void 0 ? void 0 : _typeMap$_this$type8.valueKey];
|
|
95
|
-
}).join(
|
|
103
|
+
}).join(',');
|
|
96
104
|
});
|
|
97
105
|
_defineProperty(this, "editRender", function (p) {
|
|
98
106
|
var _this$componentConfig, _this$componentConfig2, _typeMap$_this$type9;
|
|
@@ -114,7 +122,7 @@ var CommonSystemOrder = /*#__PURE__*/_createClass(function CommonSystemOrder(opt
|
|
|
114
122
|
type: item.type,
|
|
115
123
|
id: "".concat(item.id, "_").concat((_typeMap$_this$type10 = typeMap[_this.type]) === null || _typeMap$_this$type10 === void 0 ? void 0 : _typeMap$_this$type10.code),
|
|
116
124
|
name: "".concat(_this.name),
|
|
117
|
-
filterComponentType:
|
|
125
|
+
filterComponentType: 'Input',
|
|
118
126
|
filterFn: function filterFn(value) {
|
|
119
127
|
return function (i) {
|
|
120
128
|
var _typeMap$_this$type11;
|
|
@@ -132,7 +140,7 @@ var CommonSystemOrder = /*#__PURE__*/_createClass(function CommonSystemOrder(opt
|
|
|
132
140
|
this.isCombinationComponent = false;
|
|
133
141
|
this.canSort = false;
|
|
134
142
|
this.children = [];
|
|
135
|
-
this.dataType =
|
|
143
|
+
this.dataType = 'object';
|
|
136
144
|
this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
|
|
137
145
|
required: true,
|
|
138
146
|
validator: function validator(_, value) {
|
|
@@ -147,6 +155,6 @@ var CommonSystemOrder = /*#__PURE__*/_createClass(function CommonSystemOrder(opt
|
|
|
147
155
|
return Promise.resolve();
|
|
148
156
|
}
|
|
149
157
|
}] : [];
|
|
150
|
-
this.align =
|
|
158
|
+
this.align = 'left';
|
|
151
159
|
});
|
|
152
160
|
export default CommonSystemOrder;
|
|
@@ -73,7 +73,7 @@ var BasicFile = /*#__PURE__*/_createClass(function BasicFile(options) {
|
|
|
73
73
|
});
|
|
74
74
|
_defineProperty(this, "editRender", function (p) {
|
|
75
75
|
var _this$effects2, _this$componentConfig, _this$componentConfig2;
|
|
76
|
-
var canDownload = ((_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.env)
|
|
76
|
+
var canDownload = ![PlatForm.KS, PlatForm.FXG].includes((_this$effects2 = _this.effects) === null || _this$effects2 === void 0 ? void 0 : _this$effects2.env);
|
|
77
77
|
return /*#__PURE__*/React.createElement(GetFormItem, {
|
|
78
78
|
title: _this.name,
|
|
79
79
|
name: _this.id,
|
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, FlowMarkSelect, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, Handler, CompletedUser, LogisticsInterception, LogisticsTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect,
|
|
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, FlowMarkSelect, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, Handler, CompletedUser, LogisticsInterception, LogisticsTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration } from './index';
|
|
2
|
+
import { PickOption } from './type';
|
|
3
|
+
export declare const factory: (type: string, options: PickOption) => CommonSystemOrder | BasicFile | BasicInput | BasicAddress | BasicCascader | BasicCheckbox | BasicDataTime | BasicSelect | BasicRadio | BasicTextArea | BasicPicture | BasicMultSelect | BasicGrade | BasicRate | 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 | BsReturn | BsLogistics | FlowStatusSelect | FlowMarkSelect | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsTrajectory | PlatForm | ShopInput | Submitter | Handler | CompletedUser | FlowWorkOrderId | StatusSelect | Calculation | CommonMultiStatus | NodeDeadLine | HandlerDeadLine | NodeStayDuration;
|
package/dist/esm/factory.js
CHANGED
|
@@ -1,162 +1,166 @@
|
|
|
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, FlowMarkSelect, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, Handler, CompletedUser, LogisticsInterception, LogisticsTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect,
|
|
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, FlowMarkSelect, Payment, TemplateSelect, WorkOrderId, PlatForm, ShopInput, Submitter, Handler, CompletedUser, LogisticsInterception, LogisticsTrajectory, FlowWorkOrderId, BsGoods, BsExchange, BsReissue, BsReturn, BsSystemOrder, BsLogistics, StatusSelect,
|
|
2
|
+
// CommonTradeId,
|
|
3
|
+
CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration } from "./index";
|
|
2
4
|
export var factory = function factory(type, options) {
|
|
3
5
|
var _options$componentCon;
|
|
4
6
|
switch (type) {
|
|
5
|
-
case
|
|
7
|
+
case 'PLATFORM_INPUT':
|
|
6
8
|
return new PlatForm();
|
|
7
|
-
case
|
|
9
|
+
case 'SHOP_INPUT':
|
|
8
10
|
return new ShopInput(options);
|
|
9
|
-
case
|
|
11
|
+
case 'OPERATOR_INPUT':
|
|
10
12
|
return new Submitter(options);
|
|
11
|
-
case
|
|
13
|
+
case 'HANDLER_INPUT':
|
|
12
14
|
return new Handler(options);
|
|
13
|
-
case
|
|
15
|
+
case 'COMPLETED_USER_INPUT':
|
|
14
16
|
return new CompletedUser(options);
|
|
15
|
-
case
|
|
17
|
+
case 'INPUT':
|
|
16
18
|
return new BasicInput(options);
|
|
17
|
-
case
|
|
19
|
+
case 'RADIO':
|
|
18
20
|
return new BasicRadio(options);
|
|
19
|
-
case
|
|
21
|
+
case 'TEXTAREA':
|
|
20
22
|
return new BasicTextArea(options);
|
|
21
|
-
case
|
|
23
|
+
case 'CHECKBOX':
|
|
22
24
|
return new BasicCheckbox(options);
|
|
23
|
-
case
|
|
25
|
+
case 'DATETIME':
|
|
24
26
|
return new BasicDataTime(options);
|
|
25
|
-
case
|
|
26
|
-
case
|
|
27
|
+
case 'SELECT':
|
|
28
|
+
case 'BUYER_MESSAGE_NOTICE':
|
|
27
29
|
return new BasicSelect(options);
|
|
28
|
-
case
|
|
30
|
+
case 'PICTURE':
|
|
29
31
|
return new BasicPicture(options);
|
|
30
|
-
case
|
|
32
|
+
case 'BASIC_MULT_SELECT':
|
|
31
33
|
return new BasicMultSelect(options);
|
|
32
|
-
case
|
|
34
|
+
case 'MULT_SELECT':
|
|
33
35
|
return new BasicCascader(options);
|
|
34
|
-
case
|
|
36
|
+
case 'BASIC_ADDRESS':
|
|
35
37
|
return new BasicAddress(options);
|
|
36
|
-
case
|
|
38
|
+
case 'BASIC_GRADE':
|
|
37
39
|
return new BasicGrade(options);
|
|
38
|
-
case
|
|
40
|
+
case 'RATE':
|
|
39
41
|
return new BasicRate(options);
|
|
40
|
-
case
|
|
42
|
+
case 'FILE':
|
|
41
43
|
return new BasicFile(options);
|
|
42
|
-
case
|
|
44
|
+
case 'POSTING':
|
|
43
45
|
return new BasicPosting(options);
|
|
44
|
-
case
|
|
46
|
+
case 'SHOP_NAME_INPUT':
|
|
45
47
|
return new ShopName(options);
|
|
46
|
-
case
|
|
48
|
+
case 'TRADE_ID_INPUT':
|
|
47
49
|
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
|
|
50
|
+
case 'BUYER_NICK_INPUT':
|
|
49
51
|
return new BuyerNick(options);
|
|
50
|
-
case
|
|
52
|
+
case 'RECEIVER_NAME_INPUT':
|
|
51
53
|
return new ReceiverName(options);
|
|
52
|
-
case
|
|
54
|
+
case 'RECEIVER_MOBILE_INPUT':
|
|
53
55
|
return new ReceiverMobile(options);
|
|
54
|
-
case
|
|
56
|
+
case 'RECEIVER_ADDRESS_INPUT':
|
|
55
57
|
return new ReceiverAddress(options);
|
|
56
|
-
case
|
|
57
|
-
case
|
|
58
|
-
case
|
|
59
|
-
case
|
|
60
|
-
case
|
|
61
|
-
case
|
|
62
|
-
case
|
|
58
|
+
case 'TRADE_CREATE_DATETIME':
|
|
59
|
+
case 'TRADE_PAYMENT_DATETIME':
|
|
60
|
+
case 'TRADE_DELIVERY_DATETIME':
|
|
61
|
+
case 'TRADE_CLOSING_DATETIME':
|
|
62
|
+
case 'BS_SIGNING_TIME':
|
|
63
|
+
case 'BS_SEND_TIME':
|
|
64
|
+
case 'BS_TRADE_PAYMENT_TIME':
|
|
63
65
|
return new TradeDateTime(options);
|
|
64
|
-
case
|
|
66
|
+
case 'EXPRESS_LOGISTICS_SELECT':
|
|
65
67
|
return new Logistics(options);
|
|
66
|
-
case
|
|
68
|
+
case 'RETURN_LOGISTICS_SELECT':
|
|
67
69
|
return new ReturnLogistics(options);
|
|
68
|
-
case
|
|
69
|
-
case
|
|
70
|
-
case
|
|
71
|
-
case
|
|
70
|
+
case 'ACTUAL_PAYMENT':
|
|
71
|
+
case 'BS_NET_RECEIPTS':
|
|
72
|
+
case 'BS_DEPOSIT':
|
|
73
|
+
case 'BS_PACKAGE_WEIGHT':
|
|
72
74
|
return new ActualPayment(options);
|
|
73
|
-
case
|
|
75
|
+
case 'REMARK_INPUT':
|
|
74
76
|
return new ERemark(options);
|
|
75
|
-
case
|
|
77
|
+
case 'ITEM_SELECT':
|
|
76
78
|
return new ItemSelect(options);
|
|
77
|
-
case
|
|
79
|
+
case 'ITEM_ID':
|
|
78
80
|
return new ItemId(options);
|
|
79
|
-
case
|
|
81
|
+
case 'ITEM_ENCODE':
|
|
80
82
|
return new ItemEnCode(options);
|
|
81
|
-
case
|
|
83
|
+
case 'ALI_PAY_INPUT':
|
|
82
84
|
return new AliPay(options);
|
|
83
|
-
case
|
|
85
|
+
case 'ORDINARY_INVOICE':
|
|
84
86
|
return new Ordinary(options);
|
|
85
|
-
case
|
|
87
|
+
case 'ITEM_SELECT_THIRD':
|
|
86
88
|
return new ThirdItemSelect(options);
|
|
87
|
-
case
|
|
89
|
+
case 'ENTERPRISE_PAYMENT':
|
|
88
90
|
return new Payment(options);
|
|
89
|
-
case
|
|
91
|
+
case 'SYSTEM_ORDER_NO':
|
|
90
92
|
return new SystemOrderNo(options);
|
|
91
|
-
case
|
|
93
|
+
case 'LOGISTICS_INTERCEPTION':
|
|
92
94
|
return new LogisticsInterception(options);
|
|
93
|
-
case
|
|
95
|
+
case 'LOGISTICS_TRAJECTORY':
|
|
94
96
|
return new LogisticsTrajectory(options);
|
|
95
|
-
case
|
|
97
|
+
case 'WORK_ORDER_ID_INPUT':
|
|
96
98
|
return new WorkOrderId(options);
|
|
97
|
-
case
|
|
99
|
+
case 'FLOW_STATUS_SELECT':
|
|
98
100
|
return new FlowStatusSelect(options);
|
|
99
|
-
case
|
|
101
|
+
case 'FLOW_MARK_SELECT':
|
|
100
102
|
return new FlowMarkSelect(options);
|
|
101
|
-
case
|
|
103
|
+
case 'COMPLETED_DATETIME':
|
|
102
104
|
return new CommonDataTime(options);
|
|
103
|
-
case
|
|
105
|
+
case 'CREATED_DATETIME':
|
|
104
106
|
return new CommonDataTime(options);
|
|
105
|
-
case
|
|
107
|
+
case 'UPDATE_DATETIME':
|
|
106
108
|
return new CommonDataTime(options);
|
|
107
|
-
case
|
|
109
|
+
case 'TEMPLATE_ID_INPUT':
|
|
108
110
|
return new TemplateSelect(options);
|
|
109
|
-
case
|
|
110
|
-
case
|
|
111
|
+
case 'JST_LOGISTICS':
|
|
112
|
+
case 'REISSUE_LOGISTICS':
|
|
111
113
|
return new JstLogistics(options);
|
|
112
|
-
case
|
|
114
|
+
case 'JST_ITEM_SELECT_THIRD':
|
|
113
115
|
return new JstItemSelect(options);
|
|
114
|
-
case
|
|
116
|
+
case 'JST_SUPPLY':
|
|
115
117
|
return new JstSupply(options);
|
|
116
|
-
case
|
|
118
|
+
case 'BS_SYSTEM_ORDER':
|
|
117
119
|
return new BsSystemOrder(options);
|
|
118
|
-
case
|
|
119
|
-
case
|
|
120
|
+
case 'JST_SEND_GOOD':
|
|
121
|
+
case 'BS_SEND_GOOD':
|
|
120
122
|
return new JstSendGood(options);
|
|
121
|
-
case
|
|
123
|
+
case 'BS_POSTING':
|
|
122
124
|
return new BasicPosting(options);
|
|
123
|
-
case
|
|
125
|
+
case 'BS_GOODS':
|
|
124
126
|
return new BsGoods(options);
|
|
125
|
-
case
|
|
127
|
+
case 'BS_EXCHANGE_GOODS':
|
|
126
128
|
return new BsExchange(options);
|
|
127
|
-
case
|
|
129
|
+
case 'BS_REISSUE_GOODS':
|
|
128
130
|
return new BsReissue(options);
|
|
129
|
-
case
|
|
131
|
+
case 'BS_RETURN_GOODS':
|
|
130
132
|
return new BsReturn(options);
|
|
131
|
-
case
|
|
132
|
-
case
|
|
133
|
+
case 'BS_DELIVERY_NO':
|
|
134
|
+
case 'RETURN_GOODS_TRADE_ID':
|
|
135
|
+
case 'REISSUE_TRADE_ID':
|
|
136
|
+
case 'EXCHANGE_TRADE_ID':
|
|
133
137
|
return new CommonSystemOrder(options);
|
|
134
|
-
case
|
|
138
|
+
case 'BS_LOGISTICS':
|
|
135
139
|
return new BsLogistics(options);
|
|
136
|
-
case
|
|
140
|
+
case 'FLOW_WORK_ORDER_ID_INPUT':
|
|
137
141
|
return new FlowWorkOrderId(options);
|
|
138
|
-
case
|
|
142
|
+
case 'OUTER_WORK_ORDER_ID_INPUT':
|
|
139
143
|
return new FlowWorkOrderId(options);
|
|
140
|
-
case
|
|
141
|
-
case
|
|
142
|
-
case
|
|
143
|
-
case
|
|
144
|
-
case
|
|
144
|
+
case 'REISSUE_STATUS':
|
|
145
|
+
case 'EXCHANGE_STATUS':
|
|
146
|
+
case 'ADJUST_WORK_ORDER_STATUS':
|
|
147
|
+
case 'CREATE_STATUS':
|
|
148
|
+
case 'INVOICE_STATUS':
|
|
145
149
|
return new StatusSelect(options);
|
|
146
|
-
case
|
|
150
|
+
case 'RETURN_GOODS_STATUS':
|
|
147
151
|
return new CommonMultiStatus(options);
|
|
148
|
-
case
|
|
149
|
-
case
|
|
150
|
-
|
|
151
|
-
case
|
|
152
|
+
// case 'REISSUE_TRADE_ID':
|
|
153
|
+
// case 'EXCHANGE_TRADE_ID':
|
|
154
|
+
// return new CommonTradeId(options)
|
|
155
|
+
case 'NUMERICAL_CALCULATION':
|
|
152
156
|
return new Calculation(options);
|
|
153
|
-
case
|
|
157
|
+
case 'NODE_DEAD_LINE_INPUT':
|
|
154
158
|
// 工单时效
|
|
155
159
|
return new NodeDeadLine(options);
|
|
156
|
-
case
|
|
160
|
+
case 'HANDLER_DEAD_LINE_INPUT':
|
|
157
161
|
// 处理人时效
|
|
158
162
|
return new HandlerDeadLine(options);
|
|
159
|
-
case
|
|
163
|
+
case 'NODE_STAY_DURATION_INPUT':
|
|
160
164
|
// 工单停留时长
|
|
161
165
|
return new NodeStayDuration(options);
|
|
162
166
|
default:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "0.10.0-alpha.
|
|
3
|
+
"version": "0.10.0-alpha.4",
|
|
4
4
|
"module": "dist/esm/index.js",
|
|
5
5
|
"typings": "dist/esm/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"father": "^4.1.7"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@kmkf-fe-packages/basic-components": "^0.10.0-alpha.
|
|
29
|
+
"@kmkf-fe-packages/basic-components": "^0.10.0-alpha.4",
|
|
30
30
|
"@kmkf-fe-packages/kmkf-utils": "^0.10.0-alpha.0"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"gitHooks": {
|
|
41
41
|
"pre-commit": "lint-staged"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "d1b0f15627f25ddaa686dc679fc7b19720725cc6"
|
|
44
44
|
}
|