@kmkf-fe-packages/services-components 0.11.0-alpha.9 → 0.11.0
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 +28 -21
- package/dist/esm/components/BS/BsSystemOrder/index.d.ts +12 -6
- package/dist/esm/components/BS/BsSystemOrder/index.js +23 -14
- package/dist/esm/components/Input/index.js +18 -0
- package/dist/esm/factory.d.ts +2 -2
- package/dist/esm/factory.js +5 -7
- package/dist/esm/type.d.ts +2 -0
- package/package.json +4 -4
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ComponentInterface, PickOption, ColumnConfig, Record } from
|
|
2
|
-
import React from
|
|
3
|
-
import { ExpressData } from
|
|
4
|
-
import ExpressCompany from
|
|
5
|
-
import ExpressCode from
|
|
1
|
+
import { ComponentInterface, PickOption, ColumnConfig, Record } from "../../../type";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { ExpressData } from "@kmkf-fe-packages/kmkf-utils";
|
|
4
|
+
import ExpressCompany from "../common/expressCompany";
|
|
5
|
+
import ExpressCode from "../common/expressCode";
|
|
6
6
|
declare class BsLogistics implements ComponentInterface {
|
|
7
7
|
name: string;
|
|
8
8
|
id: string;
|
|
@@ -15,13 +15,13 @@ declare class BsLogistics implements ComponentInterface {
|
|
|
15
15
|
}[];
|
|
16
16
|
type: string;
|
|
17
17
|
rules: any[];
|
|
18
|
-
componentConfig: ComponentInterface[
|
|
18
|
+
componentConfig: ComponentInterface["componentConfig"];
|
|
19
19
|
expressDateInstance: InstanceType<typeof ExpressData>;
|
|
20
20
|
isCombinationComponent: boolean;
|
|
21
21
|
formField: string;
|
|
22
22
|
canSort: boolean;
|
|
23
23
|
children: ComponentInterface[];
|
|
24
|
-
dataType: ComponentInterface[
|
|
24
|
+
dataType: ComponentInterface["dataType"];
|
|
25
25
|
expressCompany: ExpressCompany;
|
|
26
26
|
expressCode: ExpressCode;
|
|
27
27
|
constructor(options: PickOption);
|
|
@@ -8,28 +8,28 @@ 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 { ExpressData } from
|
|
13
|
-
import some from
|
|
11
|
+
import React from "react";
|
|
12
|
+
import { ExpressData } from "@kmkf-fe-packages/kmkf-utils";
|
|
13
|
+
import some from "lodash/some";
|
|
14
14
|
import GetFormItem from "../../GetFormItem";
|
|
15
15
|
import { JstGoodImage } from "../../Common";
|
|
16
|
-
import { JstGoods } from
|
|
16
|
+
import { JstGoods } from "@kmkf-fe-packages/basic-components";
|
|
17
17
|
import ItemView from "../../../commonComponents/ItemView";
|
|
18
|
-
import { isNull } from
|
|
18
|
+
import { isNull } from "@kmkf-fe-packages/kmkf-utils";
|
|
19
19
|
import ExpressCompany from "../common/expressCompany";
|
|
20
20
|
import ExpressCode from "../common/expressCode";
|
|
21
21
|
var typeMap = {
|
|
22
22
|
BS_LOGISTICS: {
|
|
23
|
-
key:
|
|
24
|
-
name:
|
|
25
|
-
company:
|
|
26
|
-
code:
|
|
23
|
+
key: "bsLogisticsList",
|
|
24
|
+
name: "bs",
|
|
25
|
+
company: "bsLogisticsCompany",
|
|
26
|
+
code: "bsLogisticsCode"
|
|
27
27
|
},
|
|
28
28
|
WLN_LOGISTICS: {
|
|
29
|
-
key:
|
|
30
|
-
name:
|
|
31
|
-
company:
|
|
32
|
-
code:
|
|
29
|
+
key: "wlnLogisticsList",
|
|
30
|
+
name: "万里牛",
|
|
31
|
+
company: "wlnLogisticsCompany",
|
|
32
|
+
code: "wlnLogisticsCode"
|
|
33
33
|
}
|
|
34
34
|
};
|
|
35
35
|
var BsLogistics = /*#__PURE__*/_createClass(function BsLogistics(options) {
|
|
@@ -131,24 +131,31 @@ var BsLogistics = /*#__PURE__*/_createClass(function BsLogistics(options) {
|
|
|
131
131
|
this.isCombinationComponent = true;
|
|
132
132
|
this.canSort = false;
|
|
133
133
|
this.expressCompany = new ExpressCompany(_objectSpread(_objectSpread({}, options), {}, {
|
|
134
|
-
name:
|
|
134
|
+
name: "物流公司",
|
|
135
135
|
parentName: (_typeMap$options$type3 = typeMap[options.type]) === null || _typeMap$options$type3 === void 0 ? void 0 : _typeMap$options$type3.name,
|
|
136
136
|
id: "".concat(options.id, "_").concat((_typeMap$options$type4 = typeMap[options.type]) === null || _typeMap$options$type4 === void 0 ? void 0 : _typeMap$options$type4.key, "_").concat((_typeMap$options$type5 = typeMap[options.type]) === null || _typeMap$options$type5 === void 0 ? void 0 : _typeMap$options$type5.company),
|
|
137
137
|
width: 200
|
|
138
138
|
}));
|
|
139
139
|
this.expressCode = new ExpressCode(_objectSpread(_objectSpread({}, options), {}, {
|
|
140
|
-
name:
|
|
140
|
+
name: "物流单号",
|
|
141
141
|
parentName: (_typeMap$options$type6 = typeMap[options.type]) === null || _typeMap$options$type6 === void 0 ? void 0 : _typeMap$options$type6.name,
|
|
142
142
|
id: "".concat(options.id, "_").concat((_typeMap$options$type7 = typeMap[options.type]) === null || _typeMap$options$type7 === void 0 ? void 0 : _typeMap$options$type7.key, "_").concat((_typeMap$options$type8 = typeMap[options.type]) === null || _typeMap$options$type8 === void 0 ? void 0 : _typeMap$options$type8.code),
|
|
143
143
|
width: 200
|
|
144
144
|
}));
|
|
145
145
|
this.children = [this.expressCompany, this.expressCode];
|
|
146
|
-
this.dataType =
|
|
146
|
+
this.dataType = "object";
|
|
147
147
|
this.rules = (_this$componentConfig3 = this.componentConfig) !== null && _this$componentConfig3 !== void 0 && _this$componentConfig3.required ? [{
|
|
148
148
|
required: true,
|
|
149
149
|
validator: function validator(_, value) {
|
|
150
|
+
var showField = _this.componentConfig.showField;
|
|
150
151
|
var hasNo = (value || []).some(function (item) {
|
|
151
|
-
|
|
152
|
+
if (showField === "logisticsCompany") {
|
|
153
|
+
return item.logisticsCompany;
|
|
154
|
+
} else if (showField === "logisticsCode") {
|
|
155
|
+
return item.logisticsCode;
|
|
156
|
+
} else {
|
|
157
|
+
return item.logisticsCompany && item.logisticsCode;
|
|
158
|
+
}
|
|
152
159
|
});
|
|
153
160
|
if (!hasNo) {
|
|
154
161
|
return Promise.reject(new Error("\u81F3\u5C11\u586B\u5199\u4E00\u4E2A\u5B8C\u6574\u7684\u7269\u6D41\u4FE1\u606F"));
|
|
@@ -158,14 +165,14 @@ var BsLogistics = /*#__PURE__*/_createClass(function BsLogistics(options) {
|
|
|
158
165
|
}] : [];
|
|
159
166
|
this.expressDateInstance = ExpressData.getInstance();
|
|
160
167
|
this.sortChildField = [{
|
|
161
|
-
name:
|
|
168
|
+
name: "物流公司",
|
|
162
169
|
key: "".concat(options.id, "_").concat((_typeMap$options$type9 = typeMap[options.type]) === null || _typeMap$options$type9 === void 0 ? void 0 : _typeMap$options$type9.company),
|
|
163
170
|
options: this.expressDateInstance.getExpressData(),
|
|
164
|
-
dataType:
|
|
171
|
+
dataType: "string"
|
|
165
172
|
}, {
|
|
166
|
-
name:
|
|
173
|
+
name: "物流单号",
|
|
167
174
|
key: "".concat(options.id, "_").concat((_typeMap$options$type10 = typeMap[options.type]) === null || _typeMap$options$type10 === void 0 ? void 0 : _typeMap$options$type10.code),
|
|
168
|
-
dataType:
|
|
175
|
+
dataType: "string"
|
|
169
176
|
}];
|
|
170
177
|
});
|
|
171
178
|
export default BsLogistics;
|
|
@@ -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 BsSystemOrder 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[
|
|
10
|
-
effects: ComponentInterface[
|
|
9
|
+
componentConfig: ComponentInterface['componentConfig'];
|
|
10
|
+
effects: ComponentInterface['effects'];
|
|
11
11
|
isCombinationComponent: boolean;
|
|
12
12
|
formField: string;
|
|
13
13
|
canSort: boolean;
|
|
14
|
-
dataType: ComponentInterface[
|
|
14
|
+
dataType: ComponentInterface['dataType'];
|
|
15
15
|
children: ComponentInterface[];
|
|
16
16
|
constructor(options: PickOption);
|
|
17
17
|
renderClient: (record: any) => React.JSX.Element | null;
|
|
@@ -20,6 +20,12 @@ declare class BsSystemOrder implements ComponentInterface {
|
|
|
20
20
|
getComponentValue: (r: Record) => any;
|
|
21
21
|
renderExport: () => null;
|
|
22
22
|
editRender: (p: any) => React.JSX.Element;
|
|
23
|
-
filterConfig: (item: ColumnConfig) =>
|
|
23
|
+
filterConfig: (item: ColumnConfig) => {
|
|
24
|
+
searchDefaultConditions: "like";
|
|
25
|
+
type: string;
|
|
26
|
+
id: string;
|
|
27
|
+
name: string;
|
|
28
|
+
filterComponentType: "Input";
|
|
29
|
+
}[];
|
|
24
30
|
}
|
|
25
31
|
export default BsSystemOrder;
|
|
@@ -8,25 +8,26 @@ 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
|
|
11
|
+
import React from 'react';
|
|
12
12
|
import GetFormItem from "../../GetFormItem";
|
|
13
13
|
import ItemView from "../../../commonComponents/ItemView";
|
|
14
|
-
import { isNull } from
|
|
15
|
-
import { BsSystemOrder as SystemOrder } from
|
|
14
|
+
import { isNull } from '@kmkf-fe-packages/kmkf-utils';
|
|
15
|
+
import { BsSystemOrder as SystemOrder } from '@kmkf-fe-packages/basic-components';
|
|
16
16
|
import { BsSystemOrderTable } from "../../Common";
|
|
17
17
|
import { BsHeaderChild } from "../common/index";
|
|
18
|
+
import { SYMBOL } from "../../../constant";
|
|
18
19
|
var typeMap = {
|
|
19
20
|
BS_SYSTEM_ORDER: {
|
|
20
|
-
key:
|
|
21
|
-
name:
|
|
22
|
-
typeName:
|
|
23
|
-
tagName:
|
|
21
|
+
key: 'bsSystemShowOrder',
|
|
22
|
+
name: 'bs',
|
|
23
|
+
typeName: '单据类型',
|
|
24
|
+
tagName: '标签'
|
|
24
25
|
},
|
|
25
26
|
WLN_SYSTEM_ORDER: {
|
|
26
|
-
key:
|
|
27
|
-
name:
|
|
28
|
-
typeName:
|
|
29
|
-
tagName:
|
|
27
|
+
key: 'wlnSystemShowOrder',
|
|
28
|
+
name: '万里牛',
|
|
29
|
+
typeName: '订单类型',
|
|
30
|
+
tagName: '标记'
|
|
30
31
|
}
|
|
31
32
|
};
|
|
32
33
|
var BsSystemOrder = /*#__PURE__*/_createClass(function BsSystemOrder(options) {
|
|
@@ -85,7 +86,15 @@ var BsSystemOrder = /*#__PURE__*/_createClass(function BsSystemOrder(options) {
|
|
|
85
86
|
});
|
|
86
87
|
});
|
|
87
88
|
_defineProperty(this, "filterConfig", function (item) {
|
|
88
|
-
return [
|
|
89
|
+
return [{
|
|
90
|
+
searchDefaultConditions: SYMBOL.like,
|
|
91
|
+
type: item.type,
|
|
92
|
+
id: "".concat(item.id, "_").concat(typeMap[_this.type].key),
|
|
93
|
+
// 过滤组件id
|
|
94
|
+
name: item.name,
|
|
95
|
+
// 过滤组件名称
|
|
96
|
+
filterComponentType: 'Input'
|
|
97
|
+
}];
|
|
89
98
|
});
|
|
90
99
|
this.name = options.name;
|
|
91
100
|
this.id = options.id;
|
|
@@ -100,7 +109,7 @@ var BsSystemOrder = /*#__PURE__*/_createClass(function BsSystemOrder(options) {
|
|
|
100
109
|
id: "".concat(options.id, "_").concat(typeMap[options.type].key, "_billType"),
|
|
101
110
|
width: 150
|
|
102
111
|
})), new BsHeaderChild(_objectSpread(_objectSpread({}, options), {}, {
|
|
103
|
-
name:
|
|
112
|
+
name: '系统订单号',
|
|
104
113
|
id: "".concat(options.id, "_").concat(typeMap[options.type].key, "_billNo"),
|
|
105
114
|
width: 150
|
|
106
115
|
})), new BsHeaderChild(_objectSpread(_objectSpread({}, options), {}, {
|
|
@@ -119,6 +128,6 @@ var BsSystemOrder = /*#__PURE__*/_createClass(function BsSystemOrder(options) {
|
|
|
119
128
|
return Promise.resolve();
|
|
120
129
|
}
|
|
121
130
|
}] : [];
|
|
122
|
-
this.dataType =
|
|
131
|
+
this.dataType = 'object';
|
|
123
132
|
});
|
|
124
133
|
export default BsSystemOrder;
|
|
@@ -103,6 +103,24 @@ var BasicInput = /*#__PURE__*/_createClass(function BasicInput(options) {
|
|
|
103
103
|
if (testList.length && !isTest) {
|
|
104
104
|
return Promise.reject(new Error("请填写正确的格式"));
|
|
105
105
|
}
|
|
106
|
+
// if (this.componentConfig?.rulesOptions?.length) {
|
|
107
|
+
// const rulesList = this.componentConfig?.rulesOptions.filter(
|
|
108
|
+
// (item: any) =>
|
|
109
|
+
// (this.componentConfig?.selectRules || []).includes(item.id)
|
|
110
|
+
// );
|
|
111
|
+
|
|
112
|
+
// const hasRule = rulesList.some((item) => {
|
|
113
|
+
// const reg = new RegExp(item.value);
|
|
114
|
+
// return reg.test(value);
|
|
115
|
+
// });
|
|
116
|
+
// if (rulesList.length && !hasRule) {
|
|
117
|
+
// const rulesItem = rulesList.find((item) => {
|
|
118
|
+
// const reg = new RegExp(item.value);
|
|
119
|
+
// return !reg.test(value);
|
|
120
|
+
// });
|
|
121
|
+
// return Promise.reject(new Error(rulesItem?.errorText));
|
|
122
|
+
// }
|
|
123
|
+
// }
|
|
106
124
|
return Promise.resolve();
|
|
107
125
|
}
|
|
108
126
|
}];
|
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 './index';
|
|
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, CommonTradeId, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods } from './index';
|
|
2
2
|
import { PickOption } from './type';
|
|
3
|
-
export declare const factory: (type: string, options: PickOption) =>
|
|
3
|
+
export declare const factory: (type: string, options: PickOption) => BsExchange | BsLogistics | BsReissue | BsSystemOrder | 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 | BsGoods | BsReturn | FlowStatusSelect | FlowMarkSelect | TemplateSelect | WorkOrderId | LogisticsInterception | LogisticsTrajectory | PlatForm | ShopInput | Submitter | Handler | CompletedUser | FlowWorkOrderId | StatusSelect | CommonTradeId | Calculation | CommonSystemOrder | CommonMultiStatus | NodeDeadLine | HandlerDeadLine | NodeStayDuration | WlnGoods;
|
package/dist/esm/factory.js
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
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, WlnGoods } from "./index";
|
|
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, CommonTradeId, CommonSystemOrder, CommonMultiStatus, Calculation, NodeDeadLine, HandlerDeadLine, NodeStayDuration, WlnGoods } from "./index";
|
|
4
2
|
export var factory = function factory(type, options) {
|
|
5
3
|
var _options$componentCon;
|
|
6
4
|
switch (type) {
|
|
@@ -132,9 +130,9 @@ export var factory = function factory(type, options) {
|
|
|
132
130
|
return new BsReissue(options);
|
|
133
131
|
case 'BS_RETURN_GOODS':
|
|
134
132
|
return new BsReturn(options);
|
|
133
|
+
// case 'REISSUE_TRADE_ID':
|
|
135
134
|
case 'BS_DELIVERY_NO':
|
|
136
135
|
case 'RETURN_GOODS_TRADE_ID':
|
|
137
|
-
case 'REISSUE_TRADE_ID':
|
|
138
136
|
case 'EXCHANGE_TRADE_ID':
|
|
139
137
|
return new CommonSystemOrder(options);
|
|
140
138
|
case 'BS_LOGISTICS':
|
|
@@ -152,9 +150,9 @@ export var factory = function factory(type, options) {
|
|
|
152
150
|
case 'RETURN_GOODS_STATUS':
|
|
153
151
|
case 'EXCHANGE_STATUS':
|
|
154
152
|
return new CommonMultiStatus(options);
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
153
|
+
case 'REISSUE_TRADE_ID':
|
|
154
|
+
// case 'EXCHANGE_TRADE_ID':
|
|
155
|
+
return new CommonTradeId(options);
|
|
158
156
|
case 'NUMERICAL_CALCULATION':
|
|
159
157
|
return new Calculation(options);
|
|
160
158
|
case 'NODE_DEAD_LINE_INPUT':
|
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
|
|
3
|
+
"version": "0.11.0",
|
|
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
|
|
30
|
-
"@kmkf-fe-packages/kmkf-utils": "^0.11.0
|
|
29
|
+
"@kmkf-fe-packages/basic-components": "^0.11.0",
|
|
30
|
+
"@kmkf-fe-packages/kmkf-utils": "^0.11.0"
|
|
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": "5c3b2a30e75b89666c21a62bd4553b4482d2a9e1"
|
|
44
44
|
}
|