@kmkf-fe-packages/services-components 0.11.0-alpha.1 → 0.11.0-alpha.11
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.d.ts +7 -7
- package/dist/esm/components/BS/BsLogistics/index.js +30 -26
- package/dist/esm/components/BS/BsSystemOrder/index.d.ts +12 -6
- package/dist/esm/components/BS/BsSystemOrder/index.js +45 -19
- package/dist/esm/components/BS/common/expressCode.d.ts +1 -0
- package/dist/esm/components/BS/common/expressCode.js +13 -3
- package/dist/esm/components/BS/common/expressCompany.d.ts +7 -6
- package/dist/esm/components/BS/common/expressCompany.js +24 -13
- package/dist/esm/components/Common/index.d.ts +1 -1
- package/dist/esm/components/Common/index.js +13 -4
- package/dist/esm/components/CommonMultiStatus/index.d.ts +4 -4
- package/dist/esm/components/CommonMultiStatus/index.js +50 -31
- package/dist/esm/components/CommonSystemOrder/index.d.ts +4 -4
- package/dist/esm/components/CommonSystemOrder/index.js +48 -50
- package/dist/esm/components/CompletedUser/index.js +1 -1
- package/dist/esm/components/FlowMarkSelect/index.js +1 -1
- package/dist/esm/components/Handler/index.js +1 -1
- package/dist/esm/components/Input/index.js +18 -0
- package/dist/esm/components/PlatForm/index.d.ts +2 -2
- package/dist/esm/components/PlatForm/index.js +2 -2
- package/dist/esm/components/ShopInput/index.js +1 -1
- package/dist/esm/components/StatusSelect/index.d.ts +5 -5
- package/dist/esm/components/StatusSelect/index.js +37 -51
- package/dist/esm/components/Submitter/index.js +1 -1
- package/dist/esm/components/WLN/WlnGoods/index.js +4 -3
- package/dist/esm/factory.d.ts +3 -3
- package/dist/esm/factory.js +91 -90
- package/dist/esm/type.d.ts +2 -0
- package/package.json +4 -4
|
@@ -8,69 +8,55 @@ 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:
|
|
24
|
-
}, {
|
|
25
|
-
value: "失败",
|
|
26
|
-
label: "失败",
|
|
27
|
-
color: "#ff4d4f"
|
|
28
|
-
}],
|
|
29
|
-
key: "reissueStatusValue",
|
|
30
|
-
info: "reissueReason",
|
|
31
|
-
failValue: "失败"
|
|
32
|
-
},
|
|
33
|
-
EXCHANGE_STATUS: {
|
|
34
|
-
options: [{
|
|
35
|
-
value: "成功",
|
|
36
|
-
label: "成功",
|
|
37
|
-
color: "#52c41a"
|
|
21
|
+
value: '成功',
|
|
22
|
+
label: '成功',
|
|
23
|
+
color: '#52c41a'
|
|
38
24
|
}, {
|
|
39
|
-
value:
|
|
40
|
-
label:
|
|
41
|
-
color:
|
|
25
|
+
value: '失败',
|
|
26
|
+
label: '失败',
|
|
27
|
+
color: '#ff4d4f'
|
|
42
28
|
}],
|
|
43
|
-
key:
|
|
44
|
-
info:
|
|
45
|
-
failValue:
|
|
29
|
+
key: 'reissueStatusValue',
|
|
30
|
+
info: 'reissueReason',
|
|
31
|
+
failValue: '失败'
|
|
46
32
|
},
|
|
47
33
|
ADJUST_WORK_ORDER_STATUS: {
|
|
48
34
|
options: [{
|
|
49
|
-
value:
|
|
50
|
-
label:
|
|
51
|
-
color:
|
|
35
|
+
value: '成功',
|
|
36
|
+
label: '成功',
|
|
37
|
+
color: '#52c41a'
|
|
52
38
|
}, {
|
|
53
|
-
value:
|
|
54
|
-
label:
|
|
55
|
-
color:
|
|
39
|
+
value: '失败',
|
|
40
|
+
label: '失败',
|
|
41
|
+
color: '#ff4d4f'
|
|
56
42
|
}],
|
|
57
|
-
key:
|
|
58
|
-
info:
|
|
59
|
-
failValue:
|
|
43
|
+
key: 'adjustWorkOrderStatusValue',
|
|
44
|
+
info: 'adjustWorkOrderReason',
|
|
45
|
+
failValue: '失败'
|
|
60
46
|
},
|
|
61
47
|
CREATE_STATUS: {
|
|
62
48
|
options: [{
|
|
63
|
-
value:
|
|
64
|
-
label:
|
|
65
|
-
color:
|
|
49
|
+
value: '成功',
|
|
50
|
+
label: '成功',
|
|
51
|
+
color: '#52c41a'
|
|
66
52
|
}, {
|
|
67
|
-
value:
|
|
68
|
-
label:
|
|
69
|
-
color:
|
|
53
|
+
value: '失败',
|
|
54
|
+
label: '失败',
|
|
55
|
+
color: '#ff4d4f'
|
|
70
56
|
}],
|
|
71
|
-
key:
|
|
72
|
-
info:
|
|
73
|
-
failValue:
|
|
57
|
+
key: 'createStatusValue',
|
|
58
|
+
info: 'createReason',
|
|
59
|
+
failValue: '失败'
|
|
74
60
|
},
|
|
75
61
|
INVOICE_STATUS: {
|
|
76
62
|
options: [{
|
|
@@ -121,7 +107,7 @@ var StatusSelect = /*#__PURE__*/_createClass(function StatusSelect(options) {
|
|
|
121
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;
|
|
122
108
|
var statusColor = ((_selectTypeMap$_this$ = selectTypeMap[_this.type].options.find(function (item) {
|
|
123
109
|
return item.value === status;
|
|
124
|
-
})) === null || _selectTypeMap$_this$ === void 0 ? void 0 : _selectTypeMap$_this$.color) ||
|
|
110
|
+
})) === null || _selectTypeMap$_this$ === void 0 ? void 0 : _selectTypeMap$_this$.color) || '#000';
|
|
125
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, {
|
|
126
112
|
id: _this.id,
|
|
127
113
|
label: _this.name,
|
|
@@ -129,7 +115,7 @@ var StatusSelect = /*#__PURE__*/_createClass(function StatusSelect(options) {
|
|
|
129
115
|
style: {
|
|
130
116
|
color: statusColor
|
|
131
117
|
}
|
|
132
|
-
}, 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) || ''))
|
|
133
119
|
}) : null;
|
|
134
120
|
});
|
|
135
121
|
_defineProperty(this, "renderPc", function (value, record) {
|
|
@@ -137,12 +123,12 @@ var StatusSelect = /*#__PURE__*/_createClass(function StatusSelect(options) {
|
|
|
137
123
|
var status = record === null || record === void 0 ? void 0 : record["".concat(_this.id, "_").concat(selectTypeMap[_this.type].key)];
|
|
138
124
|
var statusColor = ((_selectTypeMap$_this$2 = selectTypeMap[_this.type].options.find(function (item) {
|
|
139
125
|
return item.value === status;
|
|
140
|
-
})) === 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';
|
|
141
127
|
return !isNull(status) ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
142
128
|
style: {
|
|
143
129
|
color: statusColor
|
|
144
130
|
}
|
|
145
|
-
}, 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)]) || '')) : '--';
|
|
146
132
|
});
|
|
147
133
|
_defineProperty(this, "renderLog", function (r) {
|
|
148
134
|
if (isNull(r === null || r === void 0 ? void 0 : r["".concat(_this.id, "_").concat(selectTypeMap[_this.type].key)])) return null;
|
|
@@ -153,7 +139,7 @@ var StatusSelect = /*#__PURE__*/_createClass(function StatusSelect(options) {
|
|
|
153
139
|
});
|
|
154
140
|
_defineProperty(this, "renderExport", function (value, record) {
|
|
155
141
|
var _record;
|
|
156
|
-
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 : '--';
|
|
157
143
|
});
|
|
158
144
|
_defineProperty(this, "filterConfig", function (item) {
|
|
159
145
|
return {
|
|
@@ -163,7 +149,7 @@ var StatusSelect = /*#__PURE__*/_createClass(function StatusSelect(options) {
|
|
|
163
149
|
// 过滤组件id
|
|
164
150
|
name: item.name,
|
|
165
151
|
// 过滤组件名称
|
|
166
|
-
filterComponentType:
|
|
152
|
+
filterComponentType: 'MultipleSelect',
|
|
167
153
|
props: {
|
|
168
154
|
options: selectTypeMap[_this.type].options
|
|
169
155
|
},
|
|
@@ -186,7 +172,7 @@ var StatusSelect = /*#__PURE__*/_createClass(function StatusSelect(options) {
|
|
|
186
172
|
this.isCombinationComponent = false;
|
|
187
173
|
this.canSort = true;
|
|
188
174
|
this.children = [];
|
|
189
|
-
this.dataType =
|
|
175
|
+
this.dataType = 'string';
|
|
190
176
|
this.options = selectTypeMap[options.type].options;
|
|
191
177
|
});
|
|
192
178
|
export default StatusSelect;
|
|
@@ -73,7 +73,7 @@ var Submitter = /*#__PURE__*/_createClass(function Submitter(options) {
|
|
|
73
73
|
};
|
|
74
74
|
});
|
|
75
75
|
this.name = "提交人";
|
|
76
|
-
this.id = "submitter";
|
|
76
|
+
this.id = (options === null || options === void 0 ? void 0 : options.id) || "submitter";
|
|
77
77
|
this.type = "OPERATOR_INPUT";
|
|
78
78
|
this.sortField = "submitter";
|
|
79
79
|
this.formField = "submitter";
|
|
@@ -34,12 +34,12 @@ var WlnGoods = /*#__PURE__*/_createClass(function WlnGoods(options) {
|
|
|
34
34
|
_defineProperty(this, "dataType", void 0);
|
|
35
35
|
_defineProperty(this, "wlnGoods", void 0);
|
|
36
36
|
_defineProperty(this, "renderClient", function (record) {
|
|
37
|
-
var _this$componentConfig;
|
|
37
|
+
var _record, _this$componentConfig;
|
|
38
38
|
return !isNull(record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) ? /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ItemView, {
|
|
39
39
|
id: _this.id,
|
|
40
40
|
label: _this.name,
|
|
41
41
|
value: /*#__PURE__*/React.createElement(BsGoodsTable, {
|
|
42
|
-
list: (record === null || record === void 0 ? void 0 : record["".concat(_this.id)]) || [],
|
|
42
|
+
list: (record === null || record === void 0 ? void 0 : (_record = record["".concat(_this.id)]) === null || _record === void 0 ? void 0 : _record.wlnGoods) || [],
|
|
43
43
|
showHeader: ((_this$componentConfig = _this.componentConfig) === null || _this$componentConfig === void 0 ? void 0 : _this$componentConfig.showHeader) || []
|
|
44
44
|
})
|
|
45
45
|
})) : null;
|
|
@@ -106,7 +106,8 @@ var WlnGoods = /*#__PURE__*/_createClass(function WlnGoods(options) {
|
|
|
106
106
|
this.rules = this !== null && this !== void 0 && (_this$componentConfig4 = this.componentConfig) !== null && _this$componentConfig4 !== void 0 && _this$componentConfig4.required ? [{
|
|
107
107
|
required: true,
|
|
108
108
|
validator: function validator(_, value) {
|
|
109
|
-
|
|
109
|
+
var _value$wlnGoods;
|
|
110
|
+
if (!value || !(value !== null && value !== void 0 && (_value$wlnGoods = value.wlnGoods) !== null && _value$wlnGoods !== void 0 && _value$wlnGoods.length)) {
|
|
110
111
|
return Promise.reject(new Error("请选择万里牛商品"));
|
|
111
112
|
}
|
|
112
113
|
return Promise.resolve();
|
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, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods } 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, 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, WlnGoods } from './index';
|
|
2
|
+
import { PickOption } from './type';
|
|
3
|
+
export declare const factory: (type: string, options: PickOption) => ActualPayment | BasicAddress | AliPay | BsExchange | BsGoods | BsLogistics | BsReissue | BsReturn | BsSystemOrder | BuyerNick | Calculation | BasicCascader | BasicCheckbox | CommonDataTime | CommonMultiStatus | CommonSystemOrder | CompletedUser | BasicDataTime | ItemEnCode | ItemId | ItemSelect | ErpTradeId | BasicFile | FlowMarkSelect | FlowStatusSelect | FlowWorkOrderId | BasicGrade | Handler | HandlerDeadLine | BasicInput | JstItemSelect | JstLogistics | JstSendGood | JstSupply | Logistics | LogisticsInterception | LogisticsTrajectory | BasicMultSelect | NodeDeadLine | NodeStayDuration | Ordinary | Payment | BasicPicture | PlatForm | BasicPosting | BasicRadio | BasicRate | ReceiverAddress | ReceiverMobile | ReceiverName | ERemark | ReturnLogistics | BasicSelect | ShopInput | ShopName | StatusSelect | Submitter | SystemOrderNo | TemplateSelect | BasicTextArea | ThirdItemSelect | TradeDateTime | TradeId | WlnGoods | WorkOrderId;
|
package/dist/esm/factory.js
CHANGED
|
@@ -4,168 +4,169 @@ CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine
|
|
|
4
4
|
export var factory = function factory(type, options) {
|
|
5
5
|
var _options$componentCon;
|
|
6
6
|
switch (type) {
|
|
7
|
-
case
|
|
8
|
-
return new PlatForm();
|
|
9
|
-
case
|
|
7
|
+
case 'PLATFORM_INPUT':
|
|
8
|
+
return new PlatForm(options);
|
|
9
|
+
case 'SHOP_INPUT':
|
|
10
10
|
return new ShopInput(options);
|
|
11
|
-
case
|
|
11
|
+
case 'OPERATOR_INPUT':
|
|
12
12
|
return new Submitter(options);
|
|
13
|
-
case
|
|
13
|
+
case 'HANDLER_INPUT':
|
|
14
14
|
return new Handler(options);
|
|
15
|
-
case
|
|
15
|
+
case 'COMPLETED_USER_INPUT':
|
|
16
16
|
return new CompletedUser(options);
|
|
17
|
-
case
|
|
17
|
+
case 'INPUT':
|
|
18
18
|
return new BasicInput(options);
|
|
19
|
-
case
|
|
19
|
+
case 'RADIO':
|
|
20
20
|
return new BasicRadio(options);
|
|
21
|
-
case
|
|
21
|
+
case 'TEXTAREA':
|
|
22
22
|
return new BasicTextArea(options);
|
|
23
|
-
case
|
|
23
|
+
case 'CHECKBOX':
|
|
24
24
|
return new BasicCheckbox(options);
|
|
25
|
-
case
|
|
25
|
+
case 'DATETIME':
|
|
26
26
|
return new BasicDataTime(options);
|
|
27
|
-
case
|
|
28
|
-
case
|
|
27
|
+
case 'SELECT':
|
|
28
|
+
case 'BUYER_MESSAGE_NOTICE':
|
|
29
29
|
return new BasicSelect(options);
|
|
30
|
-
case
|
|
30
|
+
case 'PICTURE':
|
|
31
31
|
return new BasicPicture(options);
|
|
32
|
-
case
|
|
32
|
+
case 'BASIC_MULT_SELECT':
|
|
33
33
|
return new BasicMultSelect(options);
|
|
34
|
-
case
|
|
34
|
+
case 'MULT_SELECT':
|
|
35
35
|
return new BasicCascader(options);
|
|
36
|
-
case
|
|
36
|
+
case 'BASIC_ADDRESS':
|
|
37
37
|
return new BasicAddress(options);
|
|
38
|
-
case
|
|
38
|
+
case 'BASIC_GRADE':
|
|
39
39
|
return new BasicGrade(options);
|
|
40
|
-
case
|
|
40
|
+
case 'RATE':
|
|
41
41
|
return new BasicRate(options);
|
|
42
|
-
case
|
|
42
|
+
case 'FILE':
|
|
43
43
|
return new BasicFile(options);
|
|
44
|
-
case
|
|
44
|
+
case 'POSTING':
|
|
45
45
|
return new BasicPosting(options);
|
|
46
|
-
case
|
|
46
|
+
case 'SHOP_NAME_INPUT':
|
|
47
47
|
return new ShopName(options);
|
|
48
|
-
case
|
|
48
|
+
case 'TRADE_ID_INPUT':
|
|
49
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);
|
|
50
|
-
case
|
|
50
|
+
case 'BUYER_NICK_INPUT':
|
|
51
51
|
return new BuyerNick(options);
|
|
52
|
-
case
|
|
52
|
+
case 'RECEIVER_NAME_INPUT':
|
|
53
53
|
return new ReceiverName(options);
|
|
54
|
-
case
|
|
54
|
+
case 'RECEIVER_MOBILE_INPUT':
|
|
55
55
|
return new ReceiverMobile(options);
|
|
56
|
-
case
|
|
56
|
+
case 'RECEIVER_ADDRESS_INPUT':
|
|
57
57
|
return new ReceiverAddress(options);
|
|
58
|
-
case
|
|
59
|
-
case
|
|
60
|
-
case
|
|
61
|
-
case
|
|
62
|
-
case
|
|
63
|
-
case
|
|
64
|
-
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':
|
|
65
65
|
return new TradeDateTime(options);
|
|
66
|
-
case
|
|
66
|
+
case 'EXPRESS_LOGISTICS_SELECT':
|
|
67
67
|
return new Logistics(options);
|
|
68
|
-
case
|
|
68
|
+
case 'RETURN_LOGISTICS_SELECT':
|
|
69
69
|
return new ReturnLogistics(options);
|
|
70
|
-
case
|
|
71
|
-
case
|
|
72
|
-
case
|
|
73
|
-
case
|
|
70
|
+
case 'ACTUAL_PAYMENT':
|
|
71
|
+
case 'BS_NET_RECEIPTS':
|
|
72
|
+
case 'BS_DEPOSIT':
|
|
73
|
+
case 'BS_PACKAGE_WEIGHT':
|
|
74
74
|
return new ActualPayment(options);
|
|
75
|
-
case
|
|
75
|
+
case 'REMARK_INPUT':
|
|
76
76
|
return new ERemark(options);
|
|
77
|
-
case
|
|
77
|
+
case 'ITEM_SELECT':
|
|
78
78
|
return new ItemSelect(options);
|
|
79
|
-
case
|
|
79
|
+
case 'ITEM_ID':
|
|
80
80
|
return new ItemId(options);
|
|
81
|
-
case
|
|
81
|
+
case 'ITEM_ENCODE':
|
|
82
82
|
return new ItemEnCode(options);
|
|
83
|
-
case
|
|
83
|
+
case 'ALI_PAY_INPUT':
|
|
84
84
|
return new AliPay(options);
|
|
85
|
-
case
|
|
85
|
+
case 'ORDINARY_INVOICE':
|
|
86
86
|
return new Ordinary(options);
|
|
87
|
-
case
|
|
87
|
+
case 'ITEM_SELECT_THIRD':
|
|
88
88
|
return new ThirdItemSelect(options);
|
|
89
|
-
case
|
|
89
|
+
case 'ENTERPRISE_PAYMENT':
|
|
90
90
|
return new Payment(options);
|
|
91
|
-
case
|
|
91
|
+
case 'SYSTEM_ORDER_NO':
|
|
92
92
|
return new SystemOrderNo(options);
|
|
93
|
-
case
|
|
93
|
+
case 'LOGISTICS_INTERCEPTION':
|
|
94
94
|
return new LogisticsInterception(options);
|
|
95
|
-
case
|
|
95
|
+
case 'LOGISTICS_TRAJECTORY':
|
|
96
96
|
return new LogisticsTrajectory(options);
|
|
97
|
-
case
|
|
97
|
+
case 'WORK_ORDER_ID_INPUT':
|
|
98
98
|
return new WorkOrderId(options);
|
|
99
|
-
case
|
|
99
|
+
case 'FLOW_STATUS_SELECT':
|
|
100
100
|
return new FlowStatusSelect(options);
|
|
101
|
-
case
|
|
101
|
+
case 'FLOW_MARK_SELECT':
|
|
102
102
|
return new FlowMarkSelect(options);
|
|
103
|
-
case
|
|
103
|
+
case 'COMPLETED_DATETIME':
|
|
104
104
|
return new CommonDataTime(options);
|
|
105
|
-
case
|
|
105
|
+
case 'CREATED_DATETIME':
|
|
106
106
|
return new CommonDataTime(options);
|
|
107
|
-
case
|
|
107
|
+
case 'UPDATE_DATETIME':
|
|
108
108
|
return new CommonDataTime(options);
|
|
109
|
-
case
|
|
109
|
+
case 'TEMPLATE_ID_INPUT':
|
|
110
110
|
return new TemplateSelect(options);
|
|
111
|
-
case
|
|
112
|
-
case
|
|
111
|
+
case 'JST_LOGISTICS':
|
|
112
|
+
case 'REISSUE_LOGISTICS':
|
|
113
113
|
return new JstLogistics(options);
|
|
114
|
-
case
|
|
114
|
+
case 'JST_ITEM_SELECT_THIRD':
|
|
115
115
|
return new JstItemSelect(options);
|
|
116
|
-
case
|
|
116
|
+
case 'JST_SUPPLY':
|
|
117
117
|
return new JstSupply(options);
|
|
118
|
-
case
|
|
118
|
+
case 'BS_SYSTEM_ORDER':
|
|
119
|
+
case 'WLN_SYSTEM_ORDER':
|
|
119
120
|
return new BsSystemOrder(options);
|
|
120
|
-
case
|
|
121
|
-
case
|
|
122
|
-
case
|
|
121
|
+
case 'JST_SEND_GOOD':
|
|
122
|
+
case 'BS_SEND_GOOD':
|
|
123
|
+
case 'WLN_SEND_GOOD':
|
|
123
124
|
return new JstSendGood(options);
|
|
124
|
-
case
|
|
125
|
+
case 'BS_POSTING':
|
|
125
126
|
return new BasicPosting(options);
|
|
126
|
-
case
|
|
127
|
+
case 'BS_GOODS':
|
|
127
128
|
return new BsGoods(options);
|
|
128
|
-
case
|
|
129
|
+
case 'BS_EXCHANGE_GOODS':
|
|
129
130
|
return new BsExchange(options);
|
|
130
|
-
case
|
|
131
|
+
case 'BS_REISSUE_GOODS':
|
|
131
132
|
return new BsReissue(options);
|
|
132
|
-
case
|
|
133
|
+
case 'BS_RETURN_GOODS':
|
|
133
134
|
return new BsReturn(options);
|
|
134
|
-
case
|
|
135
|
-
case
|
|
136
|
-
case
|
|
137
|
-
case
|
|
135
|
+
case 'BS_DELIVERY_NO':
|
|
136
|
+
case 'RETURN_GOODS_TRADE_ID':
|
|
137
|
+
case 'REISSUE_TRADE_ID':
|
|
138
|
+
case 'EXCHANGE_TRADE_ID':
|
|
138
139
|
return new CommonSystemOrder(options);
|
|
139
|
-
case
|
|
140
|
-
case
|
|
140
|
+
case 'BS_LOGISTICS':
|
|
141
|
+
case 'WLN_LOGISTICS':
|
|
141
142
|
return new BsLogistics(options);
|
|
142
|
-
case
|
|
143
|
+
case 'FLOW_WORK_ORDER_ID_INPUT':
|
|
143
144
|
return new FlowWorkOrderId(options);
|
|
144
|
-
case
|
|
145
|
+
case 'OUTER_WORK_ORDER_ID_INPUT':
|
|
145
146
|
return new FlowWorkOrderId(options);
|
|
146
|
-
case
|
|
147
|
-
case
|
|
148
|
-
case
|
|
149
|
-
case
|
|
150
|
-
case "INVOICE_STATUS":
|
|
147
|
+
case 'REISSUE_STATUS':
|
|
148
|
+
case 'ADJUST_WORK_ORDER_STATUS':
|
|
149
|
+
case 'CREATE_STATUS':
|
|
150
|
+
case 'INVOICE_STATUS':
|
|
151
151
|
return new StatusSelect(options);
|
|
152
|
-
case
|
|
152
|
+
case 'RETURN_GOODS_STATUS':
|
|
153
|
+
case 'EXCHANGE_STATUS':
|
|
153
154
|
return new CommonMultiStatus(options);
|
|
154
155
|
// case 'REISSUE_TRADE_ID':
|
|
155
156
|
// case 'EXCHANGE_TRADE_ID':
|
|
156
157
|
// return new CommonTradeId(options)
|
|
157
|
-
case
|
|
158
|
+
case 'NUMERICAL_CALCULATION':
|
|
158
159
|
return new Calculation(options);
|
|
159
|
-
case
|
|
160
|
+
case 'NODE_DEAD_LINE_INPUT':
|
|
160
161
|
// 工单时效
|
|
161
162
|
return new NodeDeadLine(options);
|
|
162
|
-
case
|
|
163
|
+
case 'HANDLER_DEAD_LINE_INPUT':
|
|
163
164
|
// 处理人时效
|
|
164
165
|
return new HandlerDeadLine(options);
|
|
165
|
-
case
|
|
166
|
+
case 'NODE_STAY_DURATION_INPUT':
|
|
166
167
|
// 工单停留时长
|
|
167
168
|
return new NodeStayDuration(options);
|
|
168
|
-
case
|
|
169
|
+
case 'WLN_GOODS':
|
|
169
170
|
// 万里牛商品
|
|
170
171
|
return new WlnGoods(options);
|
|
171
172
|
default:
|
package/dist/esm/type.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "0.11.0-alpha.
|
|
3
|
+
"version": "0.11.0-alpha.11",
|
|
4
4
|
"module": "dist/esm/index.js",
|
|
5
5
|
"typings": "dist/esm/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"father": "^4.1.7"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@kmkf-fe-packages/basic-components": "^0.11.0-alpha.
|
|
30
|
-
"@kmkf-fe-packages/kmkf-utils": "^0.11.0-alpha.
|
|
29
|
+
"@kmkf-fe-packages/basic-components": "^0.11.0-alpha.10",
|
|
30
|
+
"@kmkf-fe-packages/kmkf-utils": "^0.11.0-alpha.8"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
33
|
"@ant-design/icons": "^4.7.0",
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"gitHooks": {
|
|
41
41
|
"pre-commit": "lint-staged"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "d4c93798ef79e3a4de75817cb0bedf0eb4104e1a"
|
|
44
44
|
}
|